mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 13:26:37 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
390ad34b13
6 changed files with 60 additions and 25 deletions
|
@ -50,11 +50,14 @@
|
||||||
- Improved share link options. Now you can allow non-team members to comment and/or inspect [Taiga #3056] (https://tree.taiga.io/project/penpot/us/3056)
|
- Improved share link options. Now you can allow non-team members to comment and/or inspect [Taiga #3056] (https://tree.taiga.io/project/penpot/us/3056)
|
||||||
- Signin/Signup from shared link [Taiga #3472](https://tree.taiga.io/project/penpot/us/3472)
|
- Signin/Signup from shared link [Taiga #3472](https://tree.taiga.io/project/penpot/us/3472)
|
||||||
- Support for import/export binary format [Taiga #2991](https://tree.taiga.io/project/penpot/us/2991)
|
- Support for import/export binary format [Taiga #2991](https://tree.taiga.io/project/penpot/us/2991)
|
||||||
- Comments positioning [Taiga #https://2007](tree.taiga.io/project/penpot/us/2007)
|
- Comments positioning [Taiga #2007](https://tree.taiga.io/project/penpot/us/2007)
|
||||||
|
- Select all inside a group select only the objects at this group level [Taiga #2382](https://tree.taiga.io/project/penpot/issue/2382)
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
- Fix font rendering on grid thumbnails [Taiga #3473](https://tree.taiga.io/project/penpot/issue/3473)
|
- Fix font rendering on grid thumbnails [Taiga #3473](https://tree.taiga.io/project/penpot/issue/3473)
|
||||||
|
- Fix intro action in multi input [Taiga #3541](https://tree.taiga.io/project/penpot/issue/3541)
|
||||||
|
- Fix team default image [Taiga #3919](https://tree.taiga.io/project/penpot/issue/3919)
|
||||||
- Fix problem with group coordinates [#2008](https://github.com/penpot/penpot/issues/2008)
|
- Fix problem with group coordinates [#2008](https://github.com/penpot/penpot/issues/2008)
|
||||||
- Fix problem with line-height and texts [Taiga #3578](https://tree.taiga.io/project/penpot/issue/3578)
|
- Fix problem with line-height and texts [Taiga #3578](https://tree.taiga.io/project/penpot/issue/3578)
|
||||||
- Fix moving frame-guides outside frames [Taiga #3839](https://tree.taiga.io/project/penpot/issue/3839)
|
- Fix moving frame-guides outside frames [Taiga #3839](https://tree.taiga.io/project/penpot/issue/3839)
|
||||||
|
@ -64,7 +67,7 @@
|
||||||
- Fix copy and paste layers order [Taiga #1617](https://tree.taiga.io/project/penpot/issue/1617)
|
- Fix copy and paste layers order [Taiga #1617](https://tree.taiga.io/project/penpot/issue/1617)
|
||||||
- Fix unexpected removal of guides on copy&paste frames [Taiga #3887](https://tree.taiga.io/project/penpot/issue/3887) by @andrewzhurov
|
- Fix unexpected removal of guides on copy&paste frames [Taiga #3887](https://tree.taiga.io/project/penpot/issue/3887) by @andrewzhurov
|
||||||
- Fix props preserving on copy&paste texts [Taiga #3629](https://tree.taiga.io/project/penpot/issue/3629) by @andrewzhurov
|
- Fix props preserving on copy&paste texts [Taiga #3629](https://tree.taiga.io/project/penpot/issue/3629) by @andrewzhurov
|
||||||
|
- Fix unexpected layers ungrouping on moving it [Taiga #3932](https://tree.taiga.io/project/penpot/issue/3932) by @andrewzhurov
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
|
@ -172,11 +172,18 @@
|
||||||
(let [objects (wsh/lookup-page-objects state)]
|
(let [objects (wsh/lookup-page-objects state)]
|
||||||
(rx/of (dwc/expand-all-parents ids objects))))))
|
(rx/of (dwc/expand-all-parents ids objects))))))
|
||||||
|
|
||||||
(defn select-all
|
|
||||||
[]
|
|
||||||
(ptk/reify ::select-all
|
(defn- select-siblings
|
||||||
ptk/WatchEvent
|
[state parent]
|
||||||
(watch [_ state _]
|
(let [children (wsh/lookup-shapes state (:shapes parent))
|
||||||
|
selected (into (d/ordered-set)
|
||||||
|
(comp (remove :blocked) (map :id))
|
||||||
|
children)]
|
||||||
|
(rx/of (select-shapes selected))))
|
||||||
|
|
||||||
|
(defn- select-all-frame
|
||||||
|
[state]
|
||||||
(let [focus (:workspace-focus-selected state)
|
(let [focus (:workspace-focus-selected state)
|
||||||
objects (-> (wsh/lookup-page-objects state)
|
objects (-> (wsh/lookup-page-objects state)
|
||||||
(cp/focus-objects focus))
|
(cp/focus-objects focus))
|
||||||
|
@ -194,7 +201,27 @@
|
||||||
(comp (remove :blocked) (map :id))
|
(comp (remove :blocked) (map :id))
|
||||||
selected)]
|
selected)]
|
||||||
|
|
||||||
(rx/of (select-shapes selected))))))
|
(rx/of (select-shapes selected))))
|
||||||
|
|
||||||
|
|
||||||
|
(defn select-all
|
||||||
|
[]
|
||||||
|
(ptk/reify ::select-all
|
||||||
|
ptk/WatchEvent
|
||||||
|
(watch [_ state _]
|
||||||
|
(let [current-selection-parents (->> (wsh/lookup-selected state)
|
||||||
|
(wsh/lookup-shapes state)
|
||||||
|
(into #{} (map :parent-id)))
|
||||||
|
num-parents (count current-selection-parents)
|
||||||
|
parent (when (= num-parents 1)
|
||||||
|
(wsh/lookup-shape state (first current-selection-parents)))]
|
||||||
|
|
||||||
|
(case num-parents
|
||||||
|
0 (select-all-frame state)
|
||||||
|
1 (if (cph/frame-shape? parent)
|
||||||
|
(select-all-frame state)
|
||||||
|
(select-siblings state parent))
|
||||||
|
nil)))))
|
||||||
|
|
||||||
(defn deselect-all
|
(defn deselect-all
|
||||||
"Clear all possible state of drawing, edition
|
"Clear all possible state of drawing, edition
|
||||||
|
|
|
@ -737,7 +737,7 @@
|
||||||
displ (gmt/translate-matrix delta)]
|
displ (gmt/translate-matrix delta)]
|
||||||
|
|
||||||
(rx/of (set-modifiers [id] {:displacement displ} false true)
|
(rx/of (set-modifiers [id] {:displacement displ} false true)
|
||||||
(apply-modifiers))))))
|
(apply-modifiers [id]))))))
|
||||||
|
|
||||||
(defn- calculate-frame-for-move
|
(defn- calculate-frame-for-move
|
||||||
[ids]
|
[ids]
|
||||||
|
|
|
@ -243,7 +243,7 @@
|
||||||
(into [] (distinct) (conj coll item)))
|
(into [] (distinct) (conj coll item)))
|
||||||
|
|
||||||
(mf/defc multi-input
|
(mf/defc multi-input
|
||||||
[{:keys [form label class name trim valid-item-fn] :as props}]
|
[{:keys [form label class name trim valid-item-fn on-submit] :as props}]
|
||||||
(let [form (or form (mf/use-ctx form-ctx))
|
(let [form (or form (mf/use-ctx form-ctx))
|
||||||
input-name (get props :name)
|
input-name (get props :name)
|
||||||
touched? (get-in @form [:touched input-name])
|
touched? (get-in @form [:touched input-name])
|
||||||
|
@ -297,8 +297,11 @@
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(let [val (cond-> @value trim str/trim)]
|
(let [val (cond-> @value trim str/trim)]
|
||||||
|
(when (and (kbd/enter? event) (str/empty? @value) (not-empty @items))
|
||||||
|
(on-submit form))
|
||||||
|
(when (not (str/empty? @value))
|
||||||
(reset! value "")
|
(reset! value "")
|
||||||
(swap! items conj-dedup {:text val :valid (valid-item-fn val)})))
|
(swap! items conj-dedup {:text val :valid (valid-item-fn val)}))))
|
||||||
|
|
||||||
(and (kbd/backspace? event)
|
(and (kbd/backspace? event)
|
||||||
(str/empty? @value))
|
(str/empty? @value))
|
||||||
|
|
|
@ -142,7 +142,8 @@
|
||||||
:auto-focus? true
|
:auto-focus? true
|
||||||
:trim true
|
:trim true
|
||||||
:valid-item-fn us/parse-email
|
:valid-item-fn us/parse-email
|
||||||
:label (tr "modals.invite-member.emails")}]
|
:label (tr "modals.invite-member.emails")
|
||||||
|
:on-submit on-submit}]
|
||||||
[:& fm/select {:name :role :options roles}]]
|
[:& fm/select {:name :role :options roles}]]
|
||||||
|
|
||||||
[:div.action-buttons
|
[:div.action-buttons
|
||||||
|
@ -605,7 +606,7 @@
|
||||||
[:div.label (tr "dashboard.team-info")]
|
[:div.label (tr "dashboard.team-info")]
|
||||||
[:div.name (:name team)]
|
[:div.name (:name team)]
|
||||||
[:div.icon
|
[:div.icon
|
||||||
[:span.update-overlay {:on-click on-image-click} i/exit]
|
[:span.update-overlay {:on-click on-image-click} i/image]
|
||||||
[:img {:src (cfg/resolve-team-photo-url team)}]
|
[:img {:src (cfg/resolve-team-photo-url team)}]
|
||||||
[:& file-uploader {:accept "image/jpeg,image/png"
|
[:& file-uploader {:accept "image/jpeg,image/png"
|
||||||
:multi false
|
:multi false
|
||||||
|
|
|
@ -185,6 +185,7 @@
|
||||||
:auto-focus? true
|
:auto-focus? true
|
||||||
:trim true
|
:trim true
|
||||||
:valid-item-fn us/parse-email
|
:valid-item-fn us/parse-email
|
||||||
|
:on-submit on-submit
|
||||||
:label (tr "modals.invite-member.emails")}]]
|
:label (tr "modals.invite-member.emails")}]]
|
||||||
|
|
||||||
[:div.buttons
|
[:div.buttons
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue