Merge branch 'master' into feat/integrated-title-bar

This commit is contained in:
Konstantinos Kaloutas
2023-05-22 18:07:28 +03:00
27 changed files with 470 additions and 124 deletions

View File

@@ -105,6 +105,8 @@
:config {}
:block/component-editing-mode? false
:editor/op nil
:editor/latest-op nil
:editor/hidden-editors #{} ;; page names
:editor/draw-mode? false
:editor/action nil
@@ -123,6 +125,9 @@
:editor/on-paste? false
:editor/last-key-code nil
;; Stores deleted refed blocks, indexed by repo
:editor/last-replace-ref-content-tx nil
;; for audio record
:editor/record-status "NONE"
@@ -1694,13 +1699,18 @@ Similar to re-frame subscriptions"
;; TODO: Move those to the uni `state`
(defonce editor-op (atom nil))
(defn set-editor-op!
[value]
(reset! editor-op value))
(set-state! :editor/op value)
(when value (set-state! :editor/latest-op value)))
(defn get-editor-op
[]
@editor-op)
(:editor/op @state))
(defn get-editor-latest-op
[]
(:editor/latest-op @state))
(defn get-events-chan
[]