0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

♻️ Move common libraries_helpers to libraries_common_helpers

This commit is contained in:
Pablo Alba 2024-04-19 11:58:27 +02:00
parent 716211524b
commit e1cd6d04d9
4 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,7 @@
[app.common.files.changes :as cp]
[app.common.files.changes-builder :as fcb]
[app.common.files.helpers :as cfh]
[app.common.files.libraries-helpers :as cflh]
[app.common.files.libraries-common-helpers :as cflch]
[app.common.files.migrations :as fmg]
[app.common.files.shapes-helpers :as cfsh]
[app.common.files.validate :as cfv]
@ -1451,7 +1451,7 @@
(cons shape children))
[_ _ changes2]
(cflh/generate-add-component nil
(cflch/generate-add-component nil
[shape]
(:objects page)
(:id page)

View file

@ -4,7 +4,7 @@
;;
;; Copyright (c) KALEIDOS INC
(ns app.common.files.libraries-helpers
(ns app.common.files.libraries-common-helpers
(:require
[app.common.data :as d]
[app.common.files.changes-builder :as pcb]

View file

@ -11,7 +11,7 @@
[app.common.files.changes :as ch]
[app.common.files.changes-builder :as pcb]
[app.common.files.helpers :as cfh]
[app.common.files.libraries-helpers :as cflh]
[app.common.files.libraries-common-helpers :as cflch]
[app.common.files.shapes-helpers :as cfsh]
[app.common.geom.point :as gpt]
[app.common.logging :as log]
@ -345,7 +345,7 @@
parents (into #{} (map :parent-id) shapes)]
(when-not (empty? shapes)
(let [[root _ changes]
(cflh/generate-add-component it shapes objects page-id file-id components-v2
(cflch/generate-add-component it shapes objects page-id file-id components-v2
dwg/prepare-create-group
cfsh/prepare-create-artboard-from-selection)]
(when-not (empty? (:redo-changes changes))

View file

@ -11,7 +11,7 @@
[app.common.files.changes-builder :as pcb]
[app.common.files.focus :as cpf]
[app.common.files.helpers :as cfh]
[app.common.files.libraries-helpers :as cflh]
[app.common.files.libraries-common-helpers :as cflch]
[app.common.geom.point :as gpt]
[app.common.geom.rect :as grc]
[app.common.geom.shapes :as gsh]
@ -498,7 +498,7 @@
regenerate-component
(fn [changes shape]
(let [components-v2 (dm/get-in library-data [:options :components-v2])
[_ changes] (cflh/generate-add-component-changes changes shape objects file-id (:id page) components-v2)]
[_ changes] (cflch/generate-add-component-changes changes shape objects file-id (:id page) components-v2)]
changes))
new-obj