@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/behaviors/index.js
CHANGED
|
@@ -64865,6 +64865,34 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
64865
64865
|
{
|
|
64866
64866
|
"category": "interaction",
|
|
64867
64867
|
"config": {
|
|
64868
|
+
"editLabel": {
|
|
64869
|
+
"default": "Edit content",
|
|
64870
|
+
"description": "Label of the button above the read-only body that opens the editor.",
|
|
64871
|
+
"label": "Edit button label",
|
|
64872
|
+
"tier": "presentation",
|
|
64873
|
+
"type": "string"
|
|
64874
|
+
},
|
|
64875
|
+
"emptyActionLabel": {
|
|
64876
|
+
"default": "Start writing",
|
|
64877
|
+
"description": "Label of the button that opens the editor from the empty body state.",
|
|
64878
|
+
"label": "Empty action label",
|
|
64879
|
+
"tier": "presentation",
|
|
64880
|
+
"type": "string"
|
|
64881
|
+
},
|
|
64882
|
+
"emptyDescription": {
|
|
64883
|
+
"default": "This page has no content yet. Start writing to fill it in.",
|
|
64884
|
+
"description": "Supporting line shown with the empty body state.",
|
|
64885
|
+
"label": "Empty description",
|
|
64886
|
+
"tier": "presentation",
|
|
64887
|
+
"type": "string"
|
|
64888
|
+
},
|
|
64889
|
+
"emptyTitle": {
|
|
64890
|
+
"default": "Nothing written yet",
|
|
64891
|
+
"description": "Heading shown in place of the body when the row has no blocks yet.",
|
|
64892
|
+
"label": "Empty heading",
|
|
64893
|
+
"tier": "presentation",
|
|
64894
|
+
"type": "string"
|
|
64895
|
+
},
|
|
64868
64896
|
"placeholder": {
|
|
64869
64897
|
"default": "Start writing\u2026",
|
|
64870
64898
|
"description": "Placeholder shown in the block editor when it is empty.",
|
|
@@ -64874,7 +64902,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
64874
64902
|
},
|
|
64875
64903
|
"title": {
|
|
64876
64904
|
"default": "Edit content",
|
|
64877
|
-
"description": "Heading shown
|
|
64905
|
+
"description": "Heading shown above the editor while the body is being edited.",
|
|
64878
64906
|
"label": "Editor heading",
|
|
64879
64907
|
"tier": "presentation",
|
|
64880
64908
|
"type": "string"
|
|
@@ -64900,7 +64928,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
64900
64928
|
"tier": "domain"
|
|
64901
64929
|
},
|
|
64902
64930
|
{
|
|
64903
|
-
"description": "
|
|
64931
|
+
"description": "Leaves the editor without saving; the body returns to its read-only render.",
|
|
64904
64932
|
"event": "CLOSE",
|
|
64905
64933
|
"synonyms": "dismiss, hide, cancel, close",
|
|
64906
64934
|
"tier": "domain"
|
|
@@ -64935,7 +64963,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
64935
64963
|
"name": "Initialize"
|
|
64936
64964
|
},
|
|
64937
64965
|
{
|
|
64938
|
-
"description": "
|
|
64966
|
+
"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).",
|
|
64939
64967
|
"key": "OPEN",
|
|
64940
64968
|
"name": "Open",
|
|
64941
64969
|
"payloadSchema": [
|
|
@@ -64967,6 +64995,39 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
64967
64995
|
"synonyms": "show, launch, reveal, edit",
|
|
64968
64996
|
"tier": "domain"
|
|
64969
64997
|
},
|
|
64998
|
+
{
|
|
64999
|
+
"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.",
|
|
65000
|
+
"key": "OPEN_DRAFT",
|
|
65001
|
+
"name": "Open Draft",
|
|
65002
|
+
"payloadSchema": [
|
|
65003
|
+
{
|
|
65004
|
+
"name": "id",
|
|
65005
|
+
"required": true,
|
|
65006
|
+
"type": "string"
|
|
65007
|
+
},
|
|
65008
|
+
{
|
|
65009
|
+
"name": "blocksJson",
|
|
65010
|
+
"properties": [
|
|
65011
|
+
{
|
|
65012
|
+
"name": "type",
|
|
65013
|
+
"required": true,
|
|
65014
|
+
"type": "string"
|
|
65015
|
+
},
|
|
65016
|
+
{
|
|
65017
|
+
"name": "content",
|
|
65018
|
+
"type": "string"
|
|
65019
|
+
},
|
|
65020
|
+
{
|
|
65021
|
+
"name": "id",
|
|
65022
|
+
"type": "string"
|
|
65023
|
+
}
|
|
65024
|
+
],
|
|
65025
|
+
"type": "[object]"
|
|
65026
|
+
}
|
|
65027
|
+
],
|
|
65028
|
+
"synonyms": "new document, start writing, blank draft, compose",
|
|
65029
|
+
"tier": "domain"
|
|
65030
|
+
},
|
|
64970
65031
|
{
|
|
64971
65032
|
"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.",
|
|
64972
65033
|
"key": "BLOCKS_SAVED",
|
|
@@ -64985,6 +65046,10 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
64985
65046
|
"synonyms": "saved, persist, update, commit",
|
|
64986
65047
|
"tier": "domain"
|
|
64987
65048
|
},
|
|
65049
|
+
{
|
|
65050
|
+
"key": "EDIT_BLOCKS",
|
|
65051
|
+
"name": "Edit Blocks"
|
|
65052
|
+
},
|
|
64988
65053
|
{
|
|
64989
65054
|
"description": "Signals that the content of a block has been modified while editing.",
|
|
64990
65055
|
"key": "BLOCKS_CHANGE",
|
|
@@ -65014,11 +65079,11 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65014
65079
|
"tier": "domain"
|
|
65015
65080
|
},
|
|
65016
65081
|
{
|
|
65017
|
-
"key": "
|
|
65018
|
-
"name": "Save"
|
|
65082
|
+
"key": "SAVE_BLOCKS",
|
|
65083
|
+
"name": "Save Blocks"
|
|
65019
65084
|
},
|
|
65020
65085
|
{
|
|
65021
|
-
"description": "
|
|
65086
|
+
"description": "Leaves the editor without saving; the body returns to its read-only render.",
|
|
65022
65087
|
"key": "CLOSE",
|
|
65023
65088
|
"name": "Close",
|
|
65024
65089
|
"synonyms": "dismiss, hide, cancel, close",
|
|
@@ -65030,6 +65095,9 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65030
65095
|
"isInitial": true,
|
|
65031
65096
|
"name": "idle"
|
|
65032
65097
|
},
|
|
65098
|
+
{
|
|
65099
|
+
"name": "viewing"
|
|
65100
|
+
},
|
|
65033
65101
|
{
|
|
65034
65102
|
"name": "editing"
|
|
65035
65103
|
}
|
|
@@ -65054,7 +65122,107 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65054
65122
|
],
|
|
65055
65123
|
[
|
|
65056
65124
|
"render-ui",
|
|
65057
|
-
"
|
|
65125
|
+
"main",
|
|
65126
|
+
{
|
|
65127
|
+
"children": [
|
|
65128
|
+
{
|
|
65129
|
+
"children": [
|
|
65130
|
+
{
|
|
65131
|
+
"action": "EDIT_BLOCKS",
|
|
65132
|
+
"icon": "edit",
|
|
65133
|
+
"label": "@config.editLabel",
|
|
65134
|
+
"type": "button",
|
|
65135
|
+
"variant": "secondary"
|
|
65136
|
+
}
|
|
65137
|
+
],
|
|
65138
|
+
"direction": "horizontal",
|
|
65139
|
+
"gap": "sm",
|
|
65140
|
+
"justify": "end",
|
|
65141
|
+
"type": "stack"
|
|
65142
|
+
},
|
|
65143
|
+
{
|
|
65144
|
+
"action": "EDIT_BLOCKS",
|
|
65145
|
+
"children": [
|
|
65146
|
+
{
|
|
65147
|
+
"initialBlocks": "@entity.blocksJson",
|
|
65148
|
+
"readOnly": true,
|
|
65149
|
+
"type": "rich-block-editor"
|
|
65150
|
+
}
|
|
65151
|
+
],
|
|
65152
|
+
"className": "cursor-text rounded-md transition-colors hover:bg-muted/40",
|
|
65153
|
+
"type": "box"
|
|
65154
|
+
}
|
|
65155
|
+
],
|
|
65156
|
+
"direction": "vertical",
|
|
65157
|
+
"gap": "sm",
|
|
65158
|
+
"type": "stack"
|
|
65159
|
+
}
|
|
65160
|
+
]
|
|
65161
|
+
],
|
|
65162
|
+
"event": "OPEN",
|
|
65163
|
+
"from": "idle",
|
|
65164
|
+
"guard": [
|
|
65165
|
+
">",
|
|
65166
|
+
[
|
|
65167
|
+
"array/len",
|
|
65168
|
+
"@payload.blocksJson"
|
|
65169
|
+
],
|
|
65170
|
+
0
|
|
65171
|
+
],
|
|
65172
|
+
"to": "viewing"
|
|
65173
|
+
},
|
|
65174
|
+
{
|
|
65175
|
+
"effects": [
|
|
65176
|
+
[
|
|
65177
|
+
"set",
|
|
65178
|
+
"@entity.id",
|
|
65179
|
+
"@payload.id"
|
|
65180
|
+
],
|
|
65181
|
+
[
|
|
65182
|
+
"set",
|
|
65183
|
+
"@entity.blocksJson",
|
|
65184
|
+
"@payload.blocksJson"
|
|
65185
|
+
],
|
|
65186
|
+
[
|
|
65187
|
+
"render-ui",
|
|
65188
|
+
"main",
|
|
65189
|
+
{
|
|
65190
|
+
"actionEvent": "EDIT_BLOCKS",
|
|
65191
|
+
"actionLabel": "@config.emptyActionLabel",
|
|
65192
|
+
"description": "@config.emptyDescription",
|
|
65193
|
+
"icon": "file-text",
|
|
65194
|
+
"title": "@config.emptyTitle",
|
|
65195
|
+
"type": "empty-state"
|
|
65196
|
+
}
|
|
65197
|
+
]
|
|
65198
|
+
],
|
|
65199
|
+
"event": "OPEN",
|
|
65200
|
+
"from": "idle",
|
|
65201
|
+
"guard": [
|
|
65202
|
+
"=",
|
|
65203
|
+
[
|
|
65204
|
+
"array/len",
|
|
65205
|
+
"@payload.blocksJson"
|
|
65206
|
+
],
|
|
65207
|
+
0
|
|
65208
|
+
],
|
|
65209
|
+
"to": "viewing"
|
|
65210
|
+
},
|
|
65211
|
+
{
|
|
65212
|
+
"effects": [
|
|
65213
|
+
[
|
|
65214
|
+
"set",
|
|
65215
|
+
"@entity.id",
|
|
65216
|
+
"@payload.id"
|
|
65217
|
+
],
|
|
65218
|
+
[
|
|
65219
|
+
"set",
|
|
65220
|
+
"@entity.blocksJson",
|
|
65221
|
+
"@payload.blocksJson"
|
|
65222
|
+
],
|
|
65223
|
+
[
|
|
65224
|
+
"render-ui",
|
|
65225
|
+
"main",
|
|
65058
65226
|
{
|
|
65059
65227
|
"children": [
|
|
65060
65228
|
{
|
|
@@ -65067,16 +65235,13 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65067
65235
|
{
|
|
65068
65236
|
"content": "@config.title",
|
|
65069
65237
|
"type": "typography",
|
|
65070
|
-
"variant": "
|
|
65238
|
+
"variant": "h4"
|
|
65071
65239
|
}
|
|
65072
65240
|
],
|
|
65073
65241
|
"direction": "horizontal",
|
|
65074
65242
|
"gap": "sm",
|
|
65075
65243
|
"type": "stack"
|
|
65076
65244
|
},
|
|
65077
|
-
{
|
|
65078
|
-
"type": "divider"
|
|
65079
|
-
},
|
|
65080
65245
|
{
|
|
65081
65246
|
"changeEvent": "BLOCKS_CHANGE",
|
|
65082
65247
|
"initialBlocks": "@entity.blocksJson",
|
|
@@ -65085,10 +65250,9 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65085
65250
|
"type": "rich-block-editor"
|
|
65086
65251
|
},
|
|
65087
65252
|
{
|
|
65088
|
-
"align": "center",
|
|
65089
65253
|
"children": [
|
|
65090
65254
|
{
|
|
65091
|
-
"action": "
|
|
65255
|
+
"action": "SAVE_BLOCKS",
|
|
65092
65256
|
"label": "Save",
|
|
65093
65257
|
"type": "button",
|
|
65094
65258
|
"variant": "primary"
|
|
@@ -65102,6 +65266,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65102
65266
|
],
|
|
65103
65267
|
"direction": "horizontal",
|
|
65104
65268
|
"gap": "sm",
|
|
65269
|
+
"justify": "end",
|
|
65105
65270
|
"type": "stack"
|
|
65106
65271
|
}
|
|
65107
65272
|
],
|
|
@@ -65111,7 +65276,7 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65111
65276
|
}
|
|
65112
65277
|
]
|
|
65113
65278
|
],
|
|
65114
|
-
"event": "
|
|
65279
|
+
"event": "OPEN_DRAFT",
|
|
65115
65280
|
"from": "idle",
|
|
65116
65281
|
"to": "editing"
|
|
65117
65282
|
},
|
|
@@ -65122,23 +65287,252 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65122
65287
|
},
|
|
65123
65288
|
{
|
|
65124
65289
|
"effects": [
|
|
65290
|
+
[
|
|
65291
|
+
"set",
|
|
65292
|
+
"@entity.id",
|
|
65293
|
+
"@payload.id"
|
|
65294
|
+
],
|
|
65125
65295
|
[
|
|
65126
65296
|
"set",
|
|
65127
65297
|
"@entity.blocksJson",
|
|
65128
|
-
"@payload.
|
|
65298
|
+
"@payload.blocksJson"
|
|
65299
|
+
],
|
|
65300
|
+
[
|
|
65301
|
+
"render-ui",
|
|
65302
|
+
"main",
|
|
65303
|
+
{
|
|
65304
|
+
"children": [
|
|
65305
|
+
{
|
|
65306
|
+
"align": "center",
|
|
65307
|
+
"children": [
|
|
65308
|
+
{
|
|
65309
|
+
"name": "file-text",
|
|
65310
|
+
"type": "icon"
|
|
65311
|
+
},
|
|
65312
|
+
{
|
|
65313
|
+
"content": "@config.title",
|
|
65314
|
+
"type": "typography",
|
|
65315
|
+
"variant": "h4"
|
|
65316
|
+
}
|
|
65317
|
+
],
|
|
65318
|
+
"direction": "horizontal",
|
|
65319
|
+
"gap": "sm",
|
|
65320
|
+
"type": "stack"
|
|
65321
|
+
},
|
|
65322
|
+
{
|
|
65323
|
+
"changeEvent": "BLOCKS_CHANGE",
|
|
65324
|
+
"initialBlocks": "@entity.blocksJson",
|
|
65325
|
+
"placeholder": "@config.placeholder",
|
|
65326
|
+
"showToolbar": true,
|
|
65327
|
+
"type": "rich-block-editor"
|
|
65328
|
+
},
|
|
65329
|
+
{
|
|
65330
|
+
"children": [
|
|
65331
|
+
{
|
|
65332
|
+
"action": "SAVE_BLOCKS",
|
|
65333
|
+
"label": "Save",
|
|
65334
|
+
"type": "button",
|
|
65335
|
+
"variant": "primary"
|
|
65336
|
+
},
|
|
65337
|
+
{
|
|
65338
|
+
"action": "CLOSE",
|
|
65339
|
+
"label": "Cancel",
|
|
65340
|
+
"type": "button",
|
|
65341
|
+
"variant": "ghost"
|
|
65342
|
+
}
|
|
65343
|
+
],
|
|
65344
|
+
"direction": "horizontal",
|
|
65345
|
+
"gap": "sm",
|
|
65346
|
+
"justify": "end",
|
|
65347
|
+
"type": "stack"
|
|
65348
|
+
}
|
|
65349
|
+
],
|
|
65350
|
+
"direction": "vertical",
|
|
65351
|
+
"gap": "md",
|
|
65352
|
+
"type": "stack"
|
|
65353
|
+
}
|
|
65129
65354
|
]
|
|
65130
65355
|
],
|
|
65131
|
-
"event": "
|
|
65132
|
-
"from": "
|
|
65356
|
+
"event": "OPEN_DRAFT",
|
|
65357
|
+
"from": "viewing",
|
|
65133
65358
|
"to": "editing"
|
|
65134
65359
|
},
|
|
65135
65360
|
{
|
|
65136
65361
|
"effects": [
|
|
65362
|
+
[
|
|
65363
|
+
"set",
|
|
65364
|
+
"@entity.id",
|
|
65365
|
+
"@payload.id"
|
|
65366
|
+
],
|
|
65367
|
+
[
|
|
65368
|
+
"set",
|
|
65369
|
+
"@entity.blocksJson",
|
|
65370
|
+
"@payload.blocksJson"
|
|
65371
|
+
],
|
|
65372
|
+
[
|
|
65373
|
+
"render-ui",
|
|
65374
|
+
"main",
|
|
65375
|
+
{
|
|
65376
|
+
"children": [
|
|
65377
|
+
{
|
|
65378
|
+
"children": [
|
|
65379
|
+
{
|
|
65380
|
+
"action": "EDIT_BLOCKS",
|
|
65381
|
+
"icon": "edit",
|
|
65382
|
+
"label": "@config.editLabel",
|
|
65383
|
+
"type": "button",
|
|
65384
|
+
"variant": "secondary"
|
|
65385
|
+
}
|
|
65386
|
+
],
|
|
65387
|
+
"direction": "horizontal",
|
|
65388
|
+
"gap": "sm",
|
|
65389
|
+
"justify": "end",
|
|
65390
|
+
"type": "stack"
|
|
65391
|
+
},
|
|
65392
|
+
{
|
|
65393
|
+
"action": "EDIT_BLOCKS",
|
|
65394
|
+
"children": [
|
|
65395
|
+
{
|
|
65396
|
+
"initialBlocks": "@entity.blocksJson",
|
|
65397
|
+
"readOnly": true,
|
|
65398
|
+
"type": "rich-block-editor"
|
|
65399
|
+
}
|
|
65400
|
+
],
|
|
65401
|
+
"className": "cursor-text rounded-md transition-colors hover:bg-muted/40",
|
|
65402
|
+
"type": "box"
|
|
65403
|
+
}
|
|
65404
|
+
],
|
|
65405
|
+
"direction": "vertical",
|
|
65406
|
+
"gap": "sm",
|
|
65407
|
+
"type": "stack"
|
|
65408
|
+
}
|
|
65409
|
+
]
|
|
65410
|
+
],
|
|
65411
|
+
"event": "OPEN",
|
|
65412
|
+
"from": "viewing",
|
|
65413
|
+
"guard": [
|
|
65414
|
+
">",
|
|
65415
|
+
[
|
|
65416
|
+
"array/len",
|
|
65417
|
+
"@payload.blocksJson"
|
|
65418
|
+
],
|
|
65419
|
+
0
|
|
65420
|
+
],
|
|
65421
|
+
"to": "viewing"
|
|
65422
|
+
},
|
|
65423
|
+
{
|
|
65424
|
+
"effects": [
|
|
65425
|
+
[
|
|
65426
|
+
"set",
|
|
65427
|
+
"@entity.id",
|
|
65428
|
+
"@payload.id"
|
|
65429
|
+
],
|
|
65430
|
+
[
|
|
65431
|
+
"set",
|
|
65432
|
+
"@entity.blocksJson",
|
|
65433
|
+
"@payload.blocksJson"
|
|
65434
|
+
],
|
|
65137
65435
|
[
|
|
65138
65436
|
"render-ui",
|
|
65139
|
-
"
|
|
65140
|
-
|
|
65437
|
+
"main",
|
|
65438
|
+
{
|
|
65439
|
+
"actionEvent": "EDIT_BLOCKS",
|
|
65440
|
+
"actionLabel": "@config.emptyActionLabel",
|
|
65441
|
+
"description": "@config.emptyDescription",
|
|
65442
|
+
"icon": "file-text",
|
|
65443
|
+
"title": "@config.emptyTitle",
|
|
65444
|
+
"type": "empty-state"
|
|
65445
|
+
}
|
|
65446
|
+
]
|
|
65447
|
+
],
|
|
65448
|
+
"event": "OPEN",
|
|
65449
|
+
"from": "viewing",
|
|
65450
|
+
"guard": [
|
|
65451
|
+
"=",
|
|
65452
|
+
[
|
|
65453
|
+
"array/len",
|
|
65454
|
+
"@payload.blocksJson"
|
|
65141
65455
|
],
|
|
65456
|
+
0
|
|
65457
|
+
],
|
|
65458
|
+
"to": "viewing"
|
|
65459
|
+
},
|
|
65460
|
+
{
|
|
65461
|
+
"effects": [
|
|
65462
|
+
[
|
|
65463
|
+
"render-ui",
|
|
65464
|
+
"main",
|
|
65465
|
+
{
|
|
65466
|
+
"children": [
|
|
65467
|
+
{
|
|
65468
|
+
"align": "center",
|
|
65469
|
+
"children": [
|
|
65470
|
+
{
|
|
65471
|
+
"name": "file-text",
|
|
65472
|
+
"type": "icon"
|
|
65473
|
+
},
|
|
65474
|
+
{
|
|
65475
|
+
"content": "@config.title",
|
|
65476
|
+
"type": "typography",
|
|
65477
|
+
"variant": "h4"
|
|
65478
|
+
}
|
|
65479
|
+
],
|
|
65480
|
+
"direction": "horizontal",
|
|
65481
|
+
"gap": "sm",
|
|
65482
|
+
"type": "stack"
|
|
65483
|
+
},
|
|
65484
|
+
{
|
|
65485
|
+
"changeEvent": "BLOCKS_CHANGE",
|
|
65486
|
+
"initialBlocks": "@entity.blocksJson",
|
|
65487
|
+
"placeholder": "@config.placeholder",
|
|
65488
|
+
"showToolbar": true,
|
|
65489
|
+
"type": "rich-block-editor"
|
|
65490
|
+
},
|
|
65491
|
+
{
|
|
65492
|
+
"children": [
|
|
65493
|
+
{
|
|
65494
|
+
"action": "SAVE_BLOCKS",
|
|
65495
|
+
"label": "Save",
|
|
65496
|
+
"type": "button",
|
|
65497
|
+
"variant": "primary"
|
|
65498
|
+
},
|
|
65499
|
+
{
|
|
65500
|
+
"action": "CLOSE",
|
|
65501
|
+
"label": "Cancel",
|
|
65502
|
+
"type": "button",
|
|
65503
|
+
"variant": "ghost"
|
|
65504
|
+
}
|
|
65505
|
+
],
|
|
65506
|
+
"direction": "horizontal",
|
|
65507
|
+
"gap": "sm",
|
|
65508
|
+
"justify": "end",
|
|
65509
|
+
"type": "stack"
|
|
65510
|
+
}
|
|
65511
|
+
],
|
|
65512
|
+
"direction": "vertical",
|
|
65513
|
+
"gap": "md",
|
|
65514
|
+
"type": "stack"
|
|
65515
|
+
}
|
|
65516
|
+
]
|
|
65517
|
+
],
|
|
65518
|
+
"event": "EDIT_BLOCKS",
|
|
65519
|
+
"from": "viewing",
|
|
65520
|
+
"to": "editing"
|
|
65521
|
+
},
|
|
65522
|
+
{
|
|
65523
|
+
"effects": [
|
|
65524
|
+
[
|
|
65525
|
+
"set",
|
|
65526
|
+
"@entity.blocksJson",
|
|
65527
|
+
"@payload.blocks"
|
|
65528
|
+
]
|
|
65529
|
+
],
|
|
65530
|
+
"event": "BLOCKS_CHANGE",
|
|
65531
|
+
"from": "editing",
|
|
65532
|
+
"to": "editing"
|
|
65533
|
+
},
|
|
65534
|
+
{
|
|
65535
|
+
"effects": [
|
|
65142
65536
|
[
|
|
65143
65537
|
"emit",
|
|
65144
65538
|
"BLOCKS_SAVED",
|
|
@@ -65146,23 +65540,94 @@ function stdRichEditorDocumentOrbital(params = {}) {
|
|
|
65146
65540
|
"blocksJson": "@entity.blocksJson",
|
|
65147
65541
|
"id": "@entity.id"
|
|
65148
65542
|
}
|
|
65543
|
+
],
|
|
65544
|
+
[
|
|
65545
|
+
"render-ui",
|
|
65546
|
+
"main",
|
|
65547
|
+
{
|
|
65548
|
+
"children": [
|
|
65549
|
+
{
|
|
65550
|
+
"children": [
|
|
65551
|
+
{
|
|
65552
|
+
"action": "EDIT_BLOCKS",
|
|
65553
|
+
"icon": "edit",
|
|
65554
|
+
"label": "@config.editLabel",
|
|
65555
|
+
"type": "button",
|
|
65556
|
+
"variant": "secondary"
|
|
65557
|
+
}
|
|
65558
|
+
],
|
|
65559
|
+
"direction": "horizontal",
|
|
65560
|
+
"gap": "sm",
|
|
65561
|
+
"justify": "end",
|
|
65562
|
+
"type": "stack"
|
|
65563
|
+
},
|
|
65564
|
+
{
|
|
65565
|
+
"action": "EDIT_BLOCKS",
|
|
65566
|
+
"children": [
|
|
65567
|
+
{
|
|
65568
|
+
"initialBlocks": "@entity.blocksJson",
|
|
65569
|
+
"readOnly": true,
|
|
65570
|
+
"type": "rich-block-editor"
|
|
65571
|
+
}
|
|
65572
|
+
],
|
|
65573
|
+
"className": "cursor-text rounded-md transition-colors hover:bg-muted/40",
|
|
65574
|
+
"type": "box"
|
|
65575
|
+
}
|
|
65576
|
+
],
|
|
65577
|
+
"direction": "vertical",
|
|
65578
|
+
"gap": "sm",
|
|
65579
|
+
"type": "stack"
|
|
65580
|
+
}
|
|
65149
65581
|
]
|
|
65150
65582
|
],
|
|
65151
|
-
"event": "
|
|
65583
|
+
"event": "SAVE_BLOCKS",
|
|
65152
65584
|
"from": "editing",
|
|
65153
|
-
"to": "
|
|
65585
|
+
"to": "viewing"
|
|
65154
65586
|
},
|
|
65155
65587
|
{
|
|
65156
65588
|
"effects": [
|
|
65157
65589
|
[
|
|
65158
65590
|
"render-ui",
|
|
65159
|
-
"
|
|
65160
|
-
|
|
65591
|
+
"main",
|
|
65592
|
+
{
|
|
65593
|
+
"children": [
|
|
65594
|
+
{
|
|
65595
|
+
"children": [
|
|
65596
|
+
{
|
|
65597
|
+
"action": "EDIT_BLOCKS",
|
|
65598
|
+
"icon": "edit",
|
|
65599
|
+
"label": "@config.editLabel",
|
|
65600
|
+
"type": "button",
|
|
65601
|
+
"variant": "secondary"
|
|
65602
|
+
}
|
|
65603
|
+
],
|
|
65604
|
+
"direction": "horizontal",
|
|
65605
|
+
"gap": "sm",
|
|
65606
|
+
"justify": "end",
|
|
65607
|
+
"type": "stack"
|
|
65608
|
+
},
|
|
65609
|
+
{
|
|
65610
|
+
"action": "EDIT_BLOCKS",
|
|
65611
|
+
"children": [
|
|
65612
|
+
{
|
|
65613
|
+
"initialBlocks": "@entity.blocksJson",
|
|
65614
|
+
"readOnly": true,
|
|
65615
|
+
"type": "rich-block-editor"
|
|
65616
|
+
}
|
|
65617
|
+
],
|
|
65618
|
+
"className": "cursor-text rounded-md transition-colors hover:bg-muted/40",
|
|
65619
|
+
"type": "box"
|
|
65620
|
+
}
|
|
65621
|
+
],
|
|
65622
|
+
"direction": "vertical",
|
|
65623
|
+
"gap": "sm",
|
|
65624
|
+
"type": "stack"
|
|
65625
|
+
}
|
|
65161
65626
|
]
|
|
65162
65627
|
],
|
|
65163
65628
|
"event": "CLOSE",
|
|
65164
65629
|
"from": "editing",
|
|
65165
|
-
"to": "
|
|
65630
|
+
"to": "viewing"
|
|
65166
65631
|
}
|
|
65167
65632
|
]
|
|
65168
65633
|
}
|
|
@@ -138049,6 +138514,13 @@ function stdUiDetailPanelDetailPanelOrbital(params = {}) {
|
|
|
138049
138514
|
"tier": "presentation",
|
|
138050
138515
|
"type": "string"
|
|
138051
138516
|
},
|
|
138517
|
+
"onTitleCommit": {
|
|
138518
|
+
"default": "",
|
|
138519
|
+
"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.",
|
|
138520
|
+
"label": "On Title Commit",
|
|
138521
|
+
"tier": "presentation",
|
|
138522
|
+
"type": "string"
|
|
138523
|
+
},
|
|
138052
138524
|
"pageProp": {
|
|
138053
138525
|
"description": "Current page number",
|
|
138054
138526
|
"label": "Page",
|
|
@@ -138332,6 +138804,7 @@ function stdUiDetailPanelDetailPanelOrbital(params = {}) {
|
|
|
138332
138804
|
"isLoading": "@config.isLoading",
|
|
138333
138805
|
"maxInlineActions": "@config.maxInlineActions",
|
|
138334
138806
|
"mode": "@config.mode",
|
|
138807
|
+
"onTitleCommit": "@config.onTitleCommit",
|
|
138335
138808
|
"page": "@config.pageProp",
|
|
138336
138809
|
"pageSize": "@config.pageSize",
|
|
138337
138810
|
"position": "@config.position",
|
|
@@ -138377,6 +138850,7 @@ function stdUiDetailPanelDetailPanelOrbital(params = {}) {
|
|
|
138377
138850
|
"isLoading": "@config.isLoading",
|
|
138378
138851
|
"maxInlineActions": "@config.maxInlineActions",
|
|
138379
138852
|
"mode": "@config.mode",
|
|
138853
|
+
"onTitleCommit": "@config.onTitleCommit",
|
|
138380
138854
|
"page": "@config.pageProp",
|
|
138381
138855
|
"pageSize": "@config.pageSize",
|
|
138382
138856
|
"position": "@config.position",
|