@almadar/std 16.184.0 → 16.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/behaviors/lolo/ui/core/atoms/std-rich-editor.lolo +268 -15
- package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +6 -0
- package/behaviors/registry/ui/core/atoms/std-rich-editor.orb +528 -37
- package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +9 -0
- package/dist/behaviors/exports-reader.js +498 -24
- package/dist/behaviors/functions/index.d.ts +3 -1
- package/dist/behaviors/functions/index.js +498 -24
- package/dist/behaviors/index.js +498 -24
- package/dist/behaviors/query.js +498 -24
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +345 -345
- package/dist/behaviors-registry.json +2 -4
- package/dist/index.js +498 -24
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -71506,6 +71506,34 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71506
71506
|
{
|
|
71507
71507
|
"category": "interaction",
|
|
71508
71508
|
"config": {
|
|
71509
|
+
"editLabel": {
|
|
71510
|
+
"default": "Edit content",
|
|
71511
|
+
"description": "Label of the button above the read-only body that opens the editor.",
|
|
71512
|
+
"label": "Edit button label",
|
|
71513
|
+
"tier": "presentation",
|
|
71514
|
+
"type": "string"
|
|
71515
|
+
},
|
|
71516
|
+
"emptyActionLabel": {
|
|
71517
|
+
"default": "Start writing",
|
|
71518
|
+
"description": "Label of the button that opens the editor from the empty body state.",
|
|
71519
|
+
"label": "Empty action label",
|
|
71520
|
+
"tier": "presentation",
|
|
71521
|
+
"type": "string"
|
|
71522
|
+
},
|
|
71523
|
+
"emptyDescription": {
|
|
71524
|
+
"default": "This page has no content yet. Start writing to fill it in.",
|
|
71525
|
+
"description": "Supporting line shown with the empty body state.",
|
|
71526
|
+
"label": "Empty description",
|
|
71527
|
+
"tier": "presentation",
|
|
71528
|
+
"type": "string"
|
|
71529
|
+
},
|
|
71530
|
+
"emptyTitle": {
|
|
71531
|
+
"default": "Nothing written yet",
|
|
71532
|
+
"description": "Heading shown in place of the body when the row has no blocks yet.",
|
|
71533
|
+
"label": "Empty heading",
|
|
71534
|
+
"tier": "presentation",
|
|
71535
|
+
"type": "string"
|
|
71536
|
+
},
|
|
71509
71537
|
"placeholder": {
|
|
71510
71538
|
"default": "Start writing\u2026",
|
|
71511
71539
|
"description": "Placeholder shown in the block editor when it is empty.",
|
|
@@ -71515,7 +71543,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71515
71543
|
},
|
|
71516
71544
|
"title": {
|
|
71517
71545
|
"default": "Edit content",
|
|
71518
|
-
"description": "Heading shown
|
|
71546
|
+
"description": "Heading shown above the editor while the body is being edited.",
|
|
71519
71547
|
"label": "Editor heading",
|
|
71520
71548
|
"tier": "presentation",
|
|
71521
71549
|
"type": "string"
|
|
@@ -71541,7 +71569,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71541
71569
|
"tier": "domain"
|
|
71542
71570
|
},
|
|
71543
71571
|
{
|
|
71544
|
-
"description": "
|
|
71572
|
+
"description": "Leaves the editor without saving; the body returns to its read-only render.",
|
|
71545
71573
|
"event": "CLOSE",
|
|
71546
71574
|
"synonyms": "dismiss, hide, cancel, close",
|
|
71547
71575
|
"tier": "domain"
|
|
@@ -71576,7 +71604,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71576
71604
|
"name": "Initialize"
|
|
71577
71605
|
},
|
|
71578
71606
|
{
|
|
71579
|
-
"description": "
|
|
71607
|
+
"description": "Hands the editor the row whose body it renders \u2014 the caller supplies the row's id and current blocks, since this trait never fetches them itself. Re-firing it repaints the body (e.g. after the host refetches a saved row).",
|
|
71580
71608
|
"key": "OPEN",
|
|
71581
71609
|
"name": "Open",
|
|
71582
71610
|
"payloadSchema": [
|
|
@@ -71608,6 +71636,39 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71608
71636
|
"synonyms": "show, launch, reveal, edit",
|
|
71609
71637
|
"tier": "domain"
|
|
71610
71638
|
},
|
|
71639
|
+
{
|
|
71640
|
+
"description": "Hands the editor a row that was just created as a blank draft: same payload as OPEN, but the body opens straight in the authoring editor instead of the read-only render, so a document-first 'New page' lands the author on a cursor rather than an empty state.",
|
|
71641
|
+
"key": "OPEN_DRAFT",
|
|
71642
|
+
"name": "Open Draft",
|
|
71643
|
+
"payloadSchema": [
|
|
71644
|
+
{
|
|
71645
|
+
"name": "id",
|
|
71646
|
+
"required": true,
|
|
71647
|
+
"type": "string"
|
|
71648
|
+
},
|
|
71649
|
+
{
|
|
71650
|
+
"name": "blocksJson",
|
|
71651
|
+
"properties": [
|
|
71652
|
+
{
|
|
71653
|
+
"name": "type",
|
|
71654
|
+
"required": true,
|
|
71655
|
+
"type": "string"
|
|
71656
|
+
},
|
|
71657
|
+
{
|
|
71658
|
+
"name": "content",
|
|
71659
|
+
"type": "string"
|
|
71660
|
+
},
|
|
71661
|
+
{
|
|
71662
|
+
"name": "id",
|
|
71663
|
+
"type": "string"
|
|
71664
|
+
}
|
|
71665
|
+
],
|
|
71666
|
+
"type": "[object]"
|
|
71667
|
+
}
|
|
71668
|
+
],
|
|
71669
|
+
"synonyms": "new document, start writing, blank draft, compose",
|
|
71670
|
+
"tier": "domain"
|
|
71671
|
+
},
|
|
71611
71672
|
{
|
|
71612
71673
|
"description": "Signals a row's block content is ready to persist. This atom never persists \u2014 the composing organism routes BLOCKS_SAVED into its own persistor's update event.",
|
|
71613
71674
|
"key": "BLOCKS_SAVED",
|
|
@@ -71626,6 +71687,10 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71626
71687
|
"synonyms": "saved, persist, update, commit",
|
|
71627
71688
|
"tier": "domain"
|
|
71628
71689
|
},
|
|
71690
|
+
{
|
|
71691
|
+
"key": "EDIT_BLOCKS",
|
|
71692
|
+
"name": "Edit Blocks"
|
|
71693
|
+
},
|
|
71629
71694
|
{
|
|
71630
71695
|
"description": "Signals that the content of a block has been modified while editing.",
|
|
71631
71696
|
"key": "BLOCKS_CHANGE",
|
|
@@ -71655,11 +71720,11 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71655
71720
|
"tier": "domain"
|
|
71656
71721
|
},
|
|
71657
71722
|
{
|
|
71658
|
-
"key": "
|
|
71659
|
-
"name": "Save"
|
|
71723
|
+
"key": "SAVE_BLOCKS",
|
|
71724
|
+
"name": "Save Blocks"
|
|
71660
71725
|
},
|
|
71661
71726
|
{
|
|
71662
|
-
"description": "
|
|
71727
|
+
"description": "Leaves the editor without saving; the body returns to its read-only render.",
|
|
71663
71728
|
"key": "CLOSE",
|
|
71664
71729
|
"name": "Close",
|
|
71665
71730
|
"synonyms": "dismiss, hide, cancel, close",
|
|
@@ -71671,6 +71736,9 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71671
71736
|
"isInitial": true,
|
|
71672
71737
|
"name": "idle"
|
|
71673
71738
|
},
|
|
71739
|
+
{
|
|
71740
|
+
"name": "viewing"
|
|
71741
|
+
},
|
|
71674
71742
|
{
|
|
71675
71743
|
"name": "editing"
|
|
71676
71744
|
}
|
|
@@ -71695,7 +71763,107 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71695
71763
|
],
|
|
71696
71764
|
[
|
|
71697
71765
|
"render-ui",
|
|
71698
|
-
"
|
|
71766
|
+
"main",
|
|
71767
|
+
{
|
|
71768
|
+
"children": [
|
|
71769
|
+
{
|
|
71770
|
+
"children": [
|
|
71771
|
+
{
|
|
71772
|
+
"action": "EDIT_BLOCKS",
|
|
71773
|
+
"icon": "edit",
|
|
71774
|
+
"label": "@config.editLabel",
|
|
71775
|
+
"type": "button",
|
|
71776
|
+
"variant": "secondary"
|
|
71777
|
+
}
|
|
71778
|
+
],
|
|
71779
|
+
"direction": "horizontal",
|
|
71780
|
+
"gap": "sm",
|
|
71781
|
+
"justify": "end",
|
|
71782
|
+
"type": "stack"
|
|
71783
|
+
},
|
|
71784
|
+
{
|
|
71785
|
+
"action": "EDIT_BLOCKS",
|
|
71786
|
+
"children": [
|
|
71787
|
+
{
|
|
71788
|
+
"initialBlocks": "@entity.blocksJson",
|
|
71789
|
+
"readOnly": true,
|
|
71790
|
+
"type": "rich-block-editor"
|
|
71791
|
+
}
|
|
71792
|
+
],
|
|
71793
|
+
"className": "cursor-text rounded-md transition-colors hover:bg-muted/40",
|
|
71794
|
+
"type": "box"
|
|
71795
|
+
}
|
|
71796
|
+
],
|
|
71797
|
+
"direction": "vertical",
|
|
71798
|
+
"gap": "sm",
|
|
71799
|
+
"type": "stack"
|
|
71800
|
+
}
|
|
71801
|
+
]
|
|
71802
|
+
],
|
|
71803
|
+
"event": "OPEN",
|
|
71804
|
+
"from": "idle",
|
|
71805
|
+
"guard": [
|
|
71806
|
+
">",
|
|
71807
|
+
[
|
|
71808
|
+
"array/len",
|
|
71809
|
+
"@payload.blocksJson"
|
|
71810
|
+
],
|
|
71811
|
+
0
|
|
71812
|
+
],
|
|
71813
|
+
"to": "viewing"
|
|
71814
|
+
},
|
|
71815
|
+
{
|
|
71816
|
+
"effects": [
|
|
71817
|
+
[
|
|
71818
|
+
"set",
|
|
71819
|
+
"@entity.id",
|
|
71820
|
+
"@payload.id"
|
|
71821
|
+
],
|
|
71822
|
+
[
|
|
71823
|
+
"set",
|
|
71824
|
+
"@entity.blocksJson",
|
|
71825
|
+
"@payload.blocksJson"
|
|
71826
|
+
],
|
|
71827
|
+
[
|
|
71828
|
+
"render-ui",
|
|
71829
|
+
"main",
|
|
71830
|
+
{
|
|
71831
|
+
"actionEvent": "EDIT_BLOCKS",
|
|
71832
|
+
"actionLabel": "@config.emptyActionLabel",
|
|
71833
|
+
"description": "@config.emptyDescription",
|
|
71834
|
+
"icon": "file-text",
|
|
71835
|
+
"title": "@config.emptyTitle",
|
|
71836
|
+
"type": "empty-state"
|
|
71837
|
+
}
|
|
71838
|
+
]
|
|
71839
|
+
],
|
|
71840
|
+
"event": "OPEN",
|
|
71841
|
+
"from": "idle",
|
|
71842
|
+
"guard": [
|
|
71843
|
+
"=",
|
|
71844
|
+
[
|
|
71845
|
+
"array/len",
|
|
71846
|
+
"@payload.blocksJson"
|
|
71847
|
+
],
|
|
71848
|
+
0
|
|
71849
|
+
],
|
|
71850
|
+
"to": "viewing"
|
|
71851
|
+
},
|
|
71852
|
+
{
|
|
71853
|
+
"effects": [
|
|
71854
|
+
[
|
|
71855
|
+
"set",
|
|
71856
|
+
"@entity.id",
|
|
71857
|
+
"@payload.id"
|
|
71858
|
+
],
|
|
71859
|
+
[
|
|
71860
|
+
"set",
|
|
71861
|
+
"@entity.blocksJson",
|
|
71862
|
+
"@payload.blocksJson"
|
|
71863
|
+
],
|
|
71864
|
+
[
|
|
71865
|
+
"render-ui",
|
|
71866
|
+
"main",
|
|
71699
71867
|
{
|
|
71700
71868
|
"children": [
|
|
71701
71869
|
{
|
|
@@ -71708,16 +71876,13 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71708
71876
|
{
|
|
71709
71877
|
"content": "@config.title",
|
|
71710
71878
|
"type": "typography",
|
|
71711
|
-
"variant": "
|
|
71879
|
+
"variant": "h4"
|
|
71712
71880
|
}
|
|
71713
71881
|
],
|
|
71714
71882
|
"direction": "horizontal",
|
|
71715
71883
|
"gap": "sm",
|
|
71716
71884
|
"type": "stack"
|
|
71717
71885
|
},
|
|
71718
|
-
{
|
|
71719
|
-
"type": "divider"
|
|
71720
|
-
},
|
|
71721
71886
|
{
|
|
71722
71887
|
"changeEvent": "BLOCKS_CHANGE",
|
|
71723
71888
|
"initialBlocks": "@entity.blocksJson",
|
|
@@ -71726,10 +71891,9 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71726
71891
|
"type": "rich-block-editor"
|
|
71727
71892
|
},
|
|
71728
71893
|
{
|
|
71729
|
-
"align": "center",
|
|
71730
71894
|
"children": [
|
|
71731
71895
|
{
|
|
71732
|
-
"action": "
|
|
71896
|
+
"action": "SAVE_BLOCKS",
|
|
71733
71897
|
"label": "Save",
|
|
71734
71898
|
"type": "button",
|
|
71735
71899
|
"variant": "primary"
|
|
@@ -71743,6 +71907,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71743
71907
|
],
|
|
71744
71908
|
"direction": "horizontal",
|
|
71745
71909
|
"gap": "sm",
|
|
71910
|
+
"justify": "end",
|
|
71746
71911
|
"type": "stack"
|
|
71747
71912
|
}
|
|
71748
71913
|
],
|
|
@@ -71752,7 +71917,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71752
71917
|
}
|
|
71753
71918
|
]
|
|
71754
71919
|
],
|
|
71755
|
-
"event": "
|
|
71920
|
+
"event": "OPEN_DRAFT",
|
|
71756
71921
|
"from": "idle",
|
|
71757
71922
|
"to": "editing"
|
|
71758
71923
|
},
|
|
@@ -71763,23 +71928,252 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71763
71928
|
},
|
|
71764
71929
|
{
|
|
71765
71930
|
"effects": [
|
|
71931
|
+
[
|
|
71932
|
+
"set",
|
|
71933
|
+
"@entity.id",
|
|
71934
|
+
"@payload.id"
|
|
71935
|
+
],
|
|
71766
71936
|
[
|
|
71767
71937
|
"set",
|
|
71768
71938
|
"@entity.blocksJson",
|
|
71769
|
-
"@payload.
|
|
71939
|
+
"@payload.blocksJson"
|
|
71940
|
+
],
|
|
71941
|
+
[
|
|
71942
|
+
"render-ui",
|
|
71943
|
+
"main",
|
|
71944
|
+
{
|
|
71945
|
+
"children": [
|
|
71946
|
+
{
|
|
71947
|
+
"align": "center",
|
|
71948
|
+
"children": [
|
|
71949
|
+
{
|
|
71950
|
+
"name": "file-text",
|
|
71951
|
+
"type": "icon"
|
|
71952
|
+
},
|
|
71953
|
+
{
|
|
71954
|
+
"content": "@config.title",
|
|
71955
|
+
"type": "typography",
|
|
71956
|
+
"variant": "h4"
|
|
71957
|
+
}
|
|
71958
|
+
],
|
|
71959
|
+
"direction": "horizontal",
|
|
71960
|
+
"gap": "sm",
|
|
71961
|
+
"type": "stack"
|
|
71962
|
+
},
|
|
71963
|
+
{
|
|
71964
|
+
"changeEvent": "BLOCKS_CHANGE",
|
|
71965
|
+
"initialBlocks": "@entity.blocksJson",
|
|
71966
|
+
"placeholder": "@config.placeholder",
|
|
71967
|
+
"showToolbar": true,
|
|
71968
|
+
"type": "rich-block-editor"
|
|
71969
|
+
},
|
|
71970
|
+
{
|
|
71971
|
+
"children": [
|
|
71972
|
+
{
|
|
71973
|
+
"action": "SAVE_BLOCKS",
|
|
71974
|
+
"label": "Save",
|
|
71975
|
+
"type": "button",
|
|
71976
|
+
"variant": "primary"
|
|
71977
|
+
},
|
|
71978
|
+
{
|
|
71979
|
+
"action": "CLOSE",
|
|
71980
|
+
"label": "Cancel",
|
|
71981
|
+
"type": "button",
|
|
71982
|
+
"variant": "ghost"
|
|
71983
|
+
}
|
|
71984
|
+
],
|
|
71985
|
+
"direction": "horizontal",
|
|
71986
|
+
"gap": "sm",
|
|
71987
|
+
"justify": "end",
|
|
71988
|
+
"type": "stack"
|
|
71989
|
+
}
|
|
71990
|
+
],
|
|
71991
|
+
"direction": "vertical",
|
|
71992
|
+
"gap": "md",
|
|
71993
|
+
"type": "stack"
|
|
71994
|
+
}
|
|
71770
71995
|
]
|
|
71771
71996
|
],
|
|
71772
|
-
"event": "
|
|
71773
|
-
"from": "
|
|
71997
|
+
"event": "OPEN_DRAFT",
|
|
71998
|
+
"from": "viewing",
|
|
71774
71999
|
"to": "editing"
|
|
71775
72000
|
},
|
|
71776
72001
|
{
|
|
71777
72002
|
"effects": [
|
|
72003
|
+
[
|
|
72004
|
+
"set",
|
|
72005
|
+
"@entity.id",
|
|
72006
|
+
"@payload.id"
|
|
72007
|
+
],
|
|
72008
|
+
[
|
|
72009
|
+
"set",
|
|
72010
|
+
"@entity.blocksJson",
|
|
72011
|
+
"@payload.blocksJson"
|
|
72012
|
+
],
|
|
72013
|
+
[
|
|
72014
|
+
"render-ui",
|
|
72015
|
+
"main",
|
|
72016
|
+
{
|
|
72017
|
+
"children": [
|
|
72018
|
+
{
|
|
72019
|
+
"children": [
|
|
72020
|
+
{
|
|
72021
|
+
"action": "EDIT_BLOCKS",
|
|
72022
|
+
"icon": "edit",
|
|
72023
|
+
"label": "@config.editLabel",
|
|
72024
|
+
"type": "button",
|
|
72025
|
+
"variant": "secondary"
|
|
72026
|
+
}
|
|
72027
|
+
],
|
|
72028
|
+
"direction": "horizontal",
|
|
72029
|
+
"gap": "sm",
|
|
72030
|
+
"justify": "end",
|
|
72031
|
+
"type": "stack"
|
|
72032
|
+
},
|
|
72033
|
+
{
|
|
72034
|
+
"action": "EDIT_BLOCKS",
|
|
72035
|
+
"children": [
|
|
72036
|
+
{
|
|
72037
|
+
"initialBlocks": "@entity.blocksJson",
|
|
72038
|
+
"readOnly": true,
|
|
72039
|
+
"type": "rich-block-editor"
|
|
72040
|
+
}
|
|
72041
|
+
],
|
|
72042
|
+
"className": "cursor-text rounded-md transition-colors hover:bg-muted/40",
|
|
72043
|
+
"type": "box"
|
|
72044
|
+
}
|
|
72045
|
+
],
|
|
72046
|
+
"direction": "vertical",
|
|
72047
|
+
"gap": "sm",
|
|
72048
|
+
"type": "stack"
|
|
72049
|
+
}
|
|
72050
|
+
]
|
|
72051
|
+
],
|
|
72052
|
+
"event": "OPEN",
|
|
72053
|
+
"from": "viewing",
|
|
72054
|
+
"guard": [
|
|
72055
|
+
">",
|
|
72056
|
+
[
|
|
72057
|
+
"array/len",
|
|
72058
|
+
"@payload.blocksJson"
|
|
72059
|
+
],
|
|
72060
|
+
0
|
|
72061
|
+
],
|
|
72062
|
+
"to": "viewing"
|
|
72063
|
+
},
|
|
72064
|
+
{
|
|
72065
|
+
"effects": [
|
|
72066
|
+
[
|
|
72067
|
+
"set",
|
|
72068
|
+
"@entity.id",
|
|
72069
|
+
"@payload.id"
|
|
72070
|
+
],
|
|
72071
|
+
[
|
|
72072
|
+
"set",
|
|
72073
|
+
"@entity.blocksJson",
|
|
72074
|
+
"@payload.blocksJson"
|
|
72075
|
+
],
|
|
71778
72076
|
[
|
|
71779
72077
|
"render-ui",
|
|
71780
|
-
"
|
|
71781
|
-
|
|
72078
|
+
"main",
|
|
72079
|
+
{
|
|
72080
|
+
"actionEvent": "EDIT_BLOCKS",
|
|
72081
|
+
"actionLabel": "@config.emptyActionLabel",
|
|
72082
|
+
"description": "@config.emptyDescription",
|
|
72083
|
+
"icon": "file-text",
|
|
72084
|
+
"title": "@config.emptyTitle",
|
|
72085
|
+
"type": "empty-state"
|
|
72086
|
+
}
|
|
72087
|
+
]
|
|
72088
|
+
],
|
|
72089
|
+
"event": "OPEN",
|
|
72090
|
+
"from": "viewing",
|
|
72091
|
+
"guard": [
|
|
72092
|
+
"=",
|
|
72093
|
+
[
|
|
72094
|
+
"array/len",
|
|
72095
|
+
"@payload.blocksJson"
|
|
71782
72096
|
],
|
|
72097
|
+
0
|
|
72098
|
+
],
|
|
72099
|
+
"to": "viewing"
|
|
72100
|
+
},
|
|
72101
|
+
{
|
|
72102
|
+
"effects": [
|
|
72103
|
+
[
|
|
72104
|
+
"render-ui",
|
|
72105
|
+
"main",
|
|
72106
|
+
{
|
|
72107
|
+
"children": [
|
|
72108
|
+
{
|
|
72109
|
+
"align": "center",
|
|
72110
|
+
"children": [
|
|
72111
|
+
{
|
|
72112
|
+
"name": "file-text",
|
|
72113
|
+
"type": "icon"
|
|
72114
|
+
},
|
|
72115
|
+
{
|
|
72116
|
+
"content": "@config.title",
|
|
72117
|
+
"type": "typography",
|
|
72118
|
+
"variant": "h4"
|
|
72119
|
+
}
|
|
72120
|
+
],
|
|
72121
|
+
"direction": "horizontal",
|
|
72122
|
+
"gap": "sm",
|
|
72123
|
+
"type": "stack"
|
|
72124
|
+
},
|
|
72125
|
+
{
|
|
72126
|
+
"changeEvent": "BLOCKS_CHANGE",
|
|
72127
|
+
"initialBlocks": "@entity.blocksJson",
|
|
72128
|
+
"placeholder": "@config.placeholder",
|
|
72129
|
+
"showToolbar": true,
|
|
72130
|
+
"type": "rich-block-editor"
|
|
72131
|
+
},
|
|
72132
|
+
{
|
|
72133
|
+
"children": [
|
|
72134
|
+
{
|
|
72135
|
+
"action": "SAVE_BLOCKS",
|
|
72136
|
+
"label": "Save",
|
|
72137
|
+
"type": "button",
|
|
72138
|
+
"variant": "primary"
|
|
72139
|
+
},
|
|
72140
|
+
{
|
|
72141
|
+
"action": "CLOSE",
|
|
72142
|
+
"label": "Cancel",
|
|
72143
|
+
"type": "button",
|
|
72144
|
+
"variant": "ghost"
|
|
72145
|
+
}
|
|
72146
|
+
],
|
|
72147
|
+
"direction": "horizontal",
|
|
72148
|
+
"gap": "sm",
|
|
72149
|
+
"justify": "end",
|
|
72150
|
+
"type": "stack"
|
|
72151
|
+
}
|
|
72152
|
+
],
|
|
72153
|
+
"direction": "vertical",
|
|
72154
|
+
"gap": "md",
|
|
72155
|
+
"type": "stack"
|
|
72156
|
+
}
|
|
72157
|
+
]
|
|
72158
|
+
],
|
|
72159
|
+
"event": "EDIT_BLOCKS",
|
|
72160
|
+
"from": "viewing",
|
|
72161
|
+
"to": "editing"
|
|
72162
|
+
},
|
|
72163
|
+
{
|
|
72164
|
+
"effects": [
|
|
72165
|
+
[
|
|
72166
|
+
"set",
|
|
72167
|
+
"@entity.blocksJson",
|
|
72168
|
+
"@payload.blocks"
|
|
72169
|
+
]
|
|
72170
|
+
],
|
|
72171
|
+
"event": "BLOCKS_CHANGE",
|
|
72172
|
+
"from": "editing",
|
|
72173
|
+
"to": "editing"
|
|
72174
|
+
},
|
|
72175
|
+
{
|
|
72176
|
+
"effects": [
|
|
71783
72177
|
[
|
|
71784
72178
|
"emit",
|
|
71785
72179
|
"BLOCKS_SAVED",
|
|
@@ -71787,23 +72181,94 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
71787
72181
|
"blocksJson": "@entity.blocksJson",
|
|
71788
72182
|
"id": "@entity.id"
|
|
71789
72183
|
}
|
|
72184
|
+
],
|
|
72185
|
+
[
|
|
72186
|
+
"render-ui",
|
|
72187
|
+
"main",
|
|
72188
|
+
{
|
|
72189
|
+
"children": [
|
|
72190
|
+
{
|
|
72191
|
+
"children": [
|
|
72192
|
+
{
|
|
72193
|
+
"action": "EDIT_BLOCKS",
|
|
72194
|
+
"icon": "edit",
|
|
72195
|
+
"label": "@config.editLabel",
|
|
72196
|
+
"type": "button",
|
|
72197
|
+
"variant": "secondary"
|
|
72198
|
+
}
|
|
72199
|
+
],
|
|
72200
|
+
"direction": "horizontal",
|
|
72201
|
+
"gap": "sm",
|
|
72202
|
+
"justify": "end",
|
|
72203
|
+
"type": "stack"
|
|
72204
|
+
},
|
|
72205
|
+
{
|
|
72206
|
+
"action": "EDIT_BLOCKS",
|
|
72207
|
+
"children": [
|
|
72208
|
+
{
|
|
72209
|
+
"initialBlocks": "@entity.blocksJson",
|
|
72210
|
+
"readOnly": true,
|
|
72211
|
+
"type": "rich-block-editor"
|
|
72212
|
+
}
|
|
72213
|
+
],
|
|
72214
|
+
"className": "cursor-text rounded-md transition-colors hover:bg-muted/40",
|
|
72215
|
+
"type": "box"
|
|
72216
|
+
}
|
|
72217
|
+
],
|
|
72218
|
+
"direction": "vertical",
|
|
72219
|
+
"gap": "sm",
|
|
72220
|
+
"type": "stack"
|
|
72221
|
+
}
|
|
71790
72222
|
]
|
|
71791
72223
|
],
|
|
71792
|
-
"event": "
|
|
72224
|
+
"event": "SAVE_BLOCKS",
|
|
71793
72225
|
"from": "editing",
|
|
71794
|
-
"to": "
|
|
72226
|
+
"to": "viewing"
|
|
71795
72227
|
},
|
|
71796
72228
|
{
|
|
71797
72229
|
"effects": [
|
|
71798
72230
|
[
|
|
71799
72231
|
"render-ui",
|
|
71800
|
-
"
|
|
71801
|
-
|
|
72232
|
+
"main",
|
|
72233
|
+
{
|
|
72234
|
+
"children": [
|
|
72235
|
+
{
|
|
72236
|
+
"children": [
|
|
72237
|
+
{
|
|
72238
|
+
"action": "EDIT_BLOCKS",
|
|
72239
|
+
"icon": "edit",
|
|
72240
|
+
"label": "@config.editLabel",
|
|
72241
|
+
"type": "button",
|
|
72242
|
+
"variant": "secondary"
|
|
72243
|
+
}
|
|
72244
|
+
],
|
|
72245
|
+
"direction": "horizontal",
|
|
72246
|
+
"gap": "sm",
|
|
72247
|
+
"justify": "end",
|
|
72248
|
+
"type": "stack"
|
|
72249
|
+
},
|
|
72250
|
+
{
|
|
72251
|
+
"action": "EDIT_BLOCKS",
|
|
72252
|
+
"children": [
|
|
72253
|
+
{
|
|
72254
|
+
"initialBlocks": "@entity.blocksJson",
|
|
72255
|
+
"readOnly": true,
|
|
72256
|
+
"type": "rich-block-editor"
|
|
72257
|
+
}
|
|
72258
|
+
],
|
|
72259
|
+
"className": "cursor-text rounded-md transition-colors hover:bg-muted/40",
|
|
72260
|
+
"type": "box"
|
|
72261
|
+
}
|
|
72262
|
+
],
|
|
72263
|
+
"direction": "vertical",
|
|
72264
|
+
"gap": "sm",
|
|
72265
|
+
"type": "stack"
|
|
72266
|
+
}
|
|
71802
72267
|
]
|
|
71803
72268
|
],
|
|
71804
72269
|
"event": "CLOSE",
|
|
71805
72270
|
"from": "editing",
|
|
71806
|
-
"to": "
|
|
72271
|
+
"to": "viewing"
|
|
71807
72272
|
}
|
|
71808
72273
|
]
|
|
71809
72274
|
}
|
|
@@ -144690,6 +145155,13 @@ function stdUiDetailPanelDetailPanelOrbital(params = {}) {
|
|
|
144690
145155
|
"tier": "presentation",
|
|
144691
145156
|
"type": "string"
|
|
144692
145157
|
},
|
|
145158
|
+
"onTitleCommit": {
|
|
145159
|
+
"default": "",
|
|
145160
|
+
"description": "When bound, the title becomes editable in place: clicking it swaps the heading for an input, Enter or blur commits, Escape reverts. Receives the committed title and the record's id so the host can persist a partial update. Unbound, the title stays a plain heading.",
|
|
145161
|
+
"label": "On Title Commit",
|
|
145162
|
+
"tier": "presentation",
|
|
145163
|
+
"type": "string"
|
|
145164
|
+
},
|
|
144693
145165
|
"pageProp": {
|
|
144694
145166
|
"description": "Current page number",
|
|
144695
145167
|
"label": "Page",
|
|
@@ -144973,6 +145445,7 @@ function stdUiDetailPanelDetailPanelOrbital(params = {}) {
|
|
|
144973
145445
|
"isLoading": "@config.isLoading",
|
|
144974
145446
|
"maxInlineActions": "@config.maxInlineActions",
|
|
144975
145447
|
"mode": "@config.mode",
|
|
145448
|
+
"onTitleCommit": "@config.onTitleCommit",
|
|
144976
145449
|
"page": "@config.pageProp",
|
|
144977
145450
|
"pageSize": "@config.pageSize",
|
|
144978
145451
|
"position": "@config.position",
|
|
@@ -145018,6 +145491,7 @@ function stdUiDetailPanelDetailPanelOrbital(params = {}) {
|
|
|
145018
145491
|
"isLoading": "@config.isLoading",
|
|
145019
145492
|
"maxInlineActions": "@config.maxInlineActions",
|
|
145020
145493
|
"mode": "@config.mode",
|
|
145494
|
+
"onTitleCommit": "@config.onTitleCommit",
|
|
145021
145495
|
"page": "@config.pageProp",
|
|
145022
145496
|
"pageSize": "@config.pageSize",
|
|
145023
145497
|
"position": "@config.position",
|