@almadar/std 16.188.0 → 16.189.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/.hand-authored.json +0 -4
- package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +20 -8
- package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +428 -26
- package/behaviors/lolo/ui/core/atoms/std-related.lolo +5 -1
- package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +80 -0
- package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +213 -0
- package/behaviors/lolo/ui/core/molecules/{ui-rich-block-editor.lolo → ui-rich-text-editor.lolo} +25 -25
- package/behaviors/lolo/ui/game/atoms/std-choice-gate.lolo +100 -0
- package/behaviors/lolo/ui/game/atoms/std-coef-pad.lolo +114 -0
- package/behaviors/lolo/ui/game/atoms/std-curve-fog.lolo +50 -0
- package/behaviors/lolo/ui/game/atoms/std-pad-lock.lolo +5 -1
- package/behaviors/lolo/ui/game/atoms/std-platformer-body.lolo +29 -3
- package/behaviors/lolo/ui/game/atoms/std-zone-card.lolo +95 -0
- package/behaviors/lolo/ui/game/organisms/std-platformer-board-2d.lolo +9 -0
- package/behaviors/registry/ui/core/atoms/std-calendar.orb +51 -27
- package/behaviors/registry/ui/core/atoms/std-record-detail.orb +2399 -180
- package/behaviors/registry/ui/core/atoms/std-related.orb +23 -1
- package/behaviors/registry/ui/core/atoms/std-version-history.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-document-details.orb +342 -0
- package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +655 -0
- package/behaviors/registry/ui/core/molecules/{ui-rich-block-editor.orb → ui-rich-text-editor.orb} +84 -97
- package/behaviors/registry/ui/game/atoms/std-choice-gate.orb +855 -0
- package/behaviors/registry/ui/game/atoms/std-coef-pad.orb +928 -0
- package/behaviors/registry/ui/game/atoms/std-curve-fog.orb +337 -0
- package/behaviors/registry/ui/game/atoms/std-pad-lock.orb +31 -1
- package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +847 -401
- package/behaviors/registry/ui/game/atoms/std-zone-card.orb +642 -0
- package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +38 -6
- package/dist/behaviors/exports-reader.js +6491 -6163
- package/dist/behaviors/functions/index.d.ts +669 -300
- package/dist/behaviors/functions/index.js +6469 -6152
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +6492 -6164
- package/dist/behaviors/query.js +6491 -6163
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +367 -375
- package/dist/behaviors-registry.json +4104 -2597
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6492 -6164
- 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 +4 -4
- package/behaviors/lolo/ui/core/atoms/std-rich-editor.lolo +0 -790
- package/behaviors/registry/ui/core/atoms/std-rich-editor.orb +0 -2225
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "std-record-detail — single primitive: detail-panel. Owns the fetch-one-record state machine (loading → viewing → error, with RETRY), the record counterpart to std-browse's collection machine. Consumers configure fields/sections/actions and the title/subtitle/status bindings; the atom fetches by the id carried on INIT and renders the panel. `detailLook` (panel default / slide-over / page) selects one
|
|
2
|
+
"description": "std-record-detail — single primitive: detail-panel. Owns the fetch-one-record state machine (loading → viewing → error, with RETRY), the record counterpart to std-browse's collection machine. Consumers configure fields/sections/actions and the title/subtitle/status bindings; the atom fetches by the id (or, for slug-routed records, the slug) carried on INIT and renders the panel. `detailLook` (panel default / slide-over / page / document) selects the render body, exactly as std-browse's browseLook selects a collection shape. The `document` look is for records whose shape IS a document (wiki page, note, article): the pure writing surface — a big inline-editable title with the rich-text body DIRECTLY beneath it, Edit/Done and the actions menu tucked into the header corner — where clicking the body drops a cursor in, every typing pause autosaves (CONTENT_SAVED, which the host persists QUIETLY — no refetch, or the editor unmounts mid-keystroke), and Done emits CONTENT_COMMITTED (the host refetches and snapshots version history on this one). Metadata never sits between the title and the words: compose the sibling RecordItemDetails trait beside the doc for a Gutenberg-style settings rail. A row minted blank by a document-first create arrives with draft=1 on INIT and opens straight in the editor. Pair with std-detail-layout for the back + breadcrumb chrome — that atom owns navigation, this one owns the record — exactly as a list page pairs std-browse with std-app-layout.",
|
|
3
3
|
"ledger": {
|
|
4
4
|
"entries": {
|
|
5
5
|
"ent_01M11G7GKTBPP8VHM2QHYFXK9A": {
|
|
@@ -82,6 +82,123 @@
|
|
|
82
82
|
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
83
83
|
"renames": []
|
|
84
84
|
},
|
|
85
|
+
"evt_01M13GHEP20FNRMC2TMPGE7EFF": {
|
|
86
|
+
"bakedName": "EDIT_CONTENT",
|
|
87
|
+
"curName": "EDIT_CONTENT",
|
|
88
|
+
"id": "evt_01M13GHEP20FNRMC2TMPGE7EFF",
|
|
89
|
+
"kind": "event",
|
|
90
|
+
"owner": "workspace",
|
|
91
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
92
|
+
"renames": []
|
|
93
|
+
},
|
|
94
|
+
"evt_01M13GHEP2D9RY9RAKACQANRGC": {
|
|
95
|
+
"bakedName": "CONTENT_COMMITTED",
|
|
96
|
+
"curName": "CONTENT_COMMITTED",
|
|
97
|
+
"id": "evt_01M13GHEP2D9RY9RAKACQANRGC",
|
|
98
|
+
"kind": "event",
|
|
99
|
+
"owner": "workspace",
|
|
100
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
101
|
+
"renames": []
|
|
102
|
+
},
|
|
103
|
+
"evt_01M13GHEP2EC6BDRMTB17V0ZND": {
|
|
104
|
+
"bakedName": "CONTENT_CHANGE",
|
|
105
|
+
"curName": "CONTENT_CHANGE",
|
|
106
|
+
"id": "evt_01M13GHEP2EC6BDRMTB17V0ZND",
|
|
107
|
+
"kind": "event",
|
|
108
|
+
"owner": "workspace",
|
|
109
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
110
|
+
"renames": []
|
|
111
|
+
},
|
|
112
|
+
"evt_01M13GHEP2HNQNFBSM1VQG2KR6": {
|
|
113
|
+
"bakedName": "TITLE_COMMITTED",
|
|
114
|
+
"curName": "TITLE_COMMITTED",
|
|
115
|
+
"id": "evt_01M13GHEP2HNQNFBSM1VQG2KR6",
|
|
116
|
+
"kind": "event",
|
|
117
|
+
"owner": "workspace",
|
|
118
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
119
|
+
"renames": []
|
|
120
|
+
},
|
|
121
|
+
"evt_01M13GHEP2N1Y6TA5BJJC0CZME": {
|
|
122
|
+
"bakedName": "CONTENT_SAVED",
|
|
123
|
+
"curName": "CONTENT_SAVED",
|
|
124
|
+
"id": "evt_01M13GHEP2N1Y6TA5BJJC0CZME",
|
|
125
|
+
"kind": "event",
|
|
126
|
+
"owner": "workspace",
|
|
127
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
128
|
+
"renames": []
|
|
129
|
+
},
|
|
130
|
+
"evt_01M13GHEP2SC7P69RWYXYACGK1": {
|
|
131
|
+
"bakedName": "RecordItemSlugLoaded",
|
|
132
|
+
"curName": "RecordItemSlugLoaded",
|
|
133
|
+
"id": "evt_01M13GHEP2SC7P69RWYXYACGK1",
|
|
134
|
+
"kind": "event",
|
|
135
|
+
"owner": "workspace",
|
|
136
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
137
|
+
"renames": []
|
|
138
|
+
},
|
|
139
|
+
"evt_01M13GHEP2Z0EM00B7ENGRDJQH": {
|
|
140
|
+
"bakedName": "DONE_EDITING",
|
|
141
|
+
"curName": "DONE_EDITING",
|
|
142
|
+
"id": "evt_01M13GHEP2Z0EM00B7ENGRDJQH",
|
|
143
|
+
"kind": "event",
|
|
144
|
+
"owner": "workspace",
|
|
145
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
146
|
+
"renames": []
|
|
147
|
+
},
|
|
148
|
+
"evt_01M13SSYQC70A5E0NP28BRK390": {
|
|
149
|
+
"bakedName": "META_CHANGE",
|
|
150
|
+
"curName": "META_CHANGE",
|
|
151
|
+
"id": "evt_01M13SSYQC70A5E0NP28BRK390",
|
|
152
|
+
"kind": "event",
|
|
153
|
+
"owner": "workspace",
|
|
154
|
+
"parent": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
155
|
+
"renames": []
|
|
156
|
+
},
|
|
157
|
+
"evt_01M13SSYQCDN81Z9CE4Q3BRD2C": {
|
|
158
|
+
"bakedName": "SHOW_DETAILS",
|
|
159
|
+
"curName": "SHOW_DETAILS",
|
|
160
|
+
"id": "evt_01M13SSYQCDN81Z9CE4Q3BRD2C",
|
|
161
|
+
"kind": "event",
|
|
162
|
+
"owner": "workspace",
|
|
163
|
+
"parent": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
164
|
+
"renames": []
|
|
165
|
+
},
|
|
166
|
+
"evt_01M13SSYQCH4EXYN1GGHYYTTRX": {
|
|
167
|
+
"bakedName": "INIT",
|
|
168
|
+
"curName": "INIT",
|
|
169
|
+
"id": "evt_01M13SSYQCH4EXYN1GGHYYTTRX",
|
|
170
|
+
"kind": "event",
|
|
171
|
+
"owner": "workspace",
|
|
172
|
+
"parent": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
173
|
+
"renames": []
|
|
174
|
+
},
|
|
175
|
+
"evt_01M13SSYQCNDB0GT52GRWMT45Z": {
|
|
176
|
+
"bakedName": "META_SAVED",
|
|
177
|
+
"curName": "META_SAVED",
|
|
178
|
+
"id": "evt_01M13SSYQCNDB0GT52GRWMT45Z",
|
|
179
|
+
"kind": "event",
|
|
180
|
+
"owner": "workspace",
|
|
181
|
+
"parent": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
182
|
+
"renames": []
|
|
183
|
+
},
|
|
184
|
+
"evt_01M14AQ4NX83G6JYADSC4FPBR9": {
|
|
185
|
+
"bakedName": "CLOSE",
|
|
186
|
+
"curName": "CLOSE",
|
|
187
|
+
"id": "evt_01M14AQ4NX83G6JYADSC4FPBR9",
|
|
188
|
+
"kind": "event",
|
|
189
|
+
"owner": "workspace",
|
|
190
|
+
"parent": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
191
|
+
"renames": []
|
|
192
|
+
},
|
|
193
|
+
"evt_01M14AQ4NXY91EPYCZ5QSJ8FP0": {
|
|
194
|
+
"bakedName": "OPEN_DETAILS",
|
|
195
|
+
"curName": "OPEN_DETAILS",
|
|
196
|
+
"id": "evt_01M14AQ4NXY91EPYCZ5QSJ8FP0",
|
|
197
|
+
"kind": "event",
|
|
198
|
+
"owner": "workspace",
|
|
199
|
+
"parent": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
200
|
+
"renames": []
|
|
201
|
+
},
|
|
85
202
|
"orb_01M11G7GKT7RY3DH0JWRPW7G7M": {
|
|
86
203
|
"bakedName": "RecordItemOrbital",
|
|
87
204
|
"curName": "RecordItemOrbital",
|
|
@@ -105,6 +222,14 @@
|
|
|
105
222
|
"kind": "trait",
|
|
106
223
|
"owner": "workspace",
|
|
107
224
|
"renames": []
|
|
225
|
+
},
|
|
226
|
+
"trt_01M13SSYQC6GCVFQK8J7QAS1M7": {
|
|
227
|
+
"bakedName": "RecordItemDetails",
|
|
228
|
+
"curName": "RecordItemDetails",
|
|
229
|
+
"id": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
230
|
+
"kind": "trait",
|
|
231
|
+
"owner": "workspace",
|
|
232
|
+
"renames": []
|
|
108
233
|
}
|
|
109
234
|
},
|
|
110
235
|
"schemaVersion": 1
|
|
@@ -144,6 +269,35 @@
|
|
|
144
269
|
"pending"
|
|
145
270
|
]
|
|
146
271
|
},
|
|
272
|
+
{
|
|
273
|
+
"default": "",
|
|
274
|
+
"description": "URL-friendly identifier, for records opened by address instead of id.",
|
|
275
|
+
"name": "slug",
|
|
276
|
+
"synonyms": "permalink, url key, address",
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"default": "",
|
|
281
|
+
"description": "The record's rich-text body as HTML, edited in place by the document look.",
|
|
282
|
+
"name": "content",
|
|
283
|
+
"synonyms": "body, text, document, article body",
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"default": {},
|
|
288
|
+
"description": "The full row exactly as last fetched (relations hydrated when config.include asks). The document look binds it as the panel's entity and hands it to header actions as ?row, so a settings modal seeds from the real record instead of the atom's four mapped columns.",
|
|
289
|
+
"intrinsic": true,
|
|
290
|
+
"name": "loadedRow",
|
|
291
|
+
"type": "object"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"default": "",
|
|
295
|
+
"description": "Set from the navigate payload when the surface was opened on a record that was JUST minted blank; read once the row loads to decide whether the document body opens authoring (draft) or read-only. Absent on a refresh or a normal open, so the draft entry never repeats.",
|
|
296
|
+
"intrinsic": true,
|
|
297
|
+
"name": "openDraft",
|
|
298
|
+
"synonyms": "new document, just created, draft open",
|
|
299
|
+
"type": "string"
|
|
300
|
+
},
|
|
147
301
|
{
|
|
148
302
|
"name": "createdAt",
|
|
149
303
|
"type": "string"
|
|
@@ -164,6 +318,10 @@
|
|
|
164
318
|
{
|
|
165
319
|
"ref": "RecordItemDetail",
|
|
166
320
|
"refId": "trt_01M11G7GKT47CAAQ530NWE10AQ"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"ref": "RecordItemDetails",
|
|
324
|
+
"refId": "trt_01M13SSYQC6GCVFQK8J7QAS1M7"
|
|
167
325
|
}
|
|
168
326
|
]
|
|
169
327
|
}
|
|
@@ -222,6 +380,13 @@
|
|
|
222
380
|
"tier": "presentation",
|
|
223
381
|
"type": "[RecordAction]"
|
|
224
382
|
},
|
|
383
|
+
"autosaveHint": {
|
|
384
|
+
"default": "Saves as you type",
|
|
385
|
+
"description": "Muted caption next to the Done button telling the author their work persists on its own.",
|
|
386
|
+
"label": "Autosave hint",
|
|
387
|
+
"tier": "presentation",
|
|
388
|
+
"type": "string"
|
|
389
|
+
},
|
|
225
390
|
"bodyContent": {
|
|
226
391
|
"default": {
|
|
227
392
|
"children": [
|
|
@@ -247,19 +412,85 @@
|
|
|
247
412
|
"tier": "internal",
|
|
248
413
|
"type": "render-ui"
|
|
249
414
|
},
|
|
415
|
+
"contentField": {
|
|
416
|
+
"default": "content",
|
|
417
|
+
"description": "Name of the field on the loaded record that carries the rich-text HTML body the document look renders and edits (e.g. content, body, articleText).",
|
|
418
|
+
"label": "Which field holds the document body?",
|
|
419
|
+
"synonyms": "body field, content field, document field",
|
|
420
|
+
"tier": "presentation",
|
|
421
|
+
"type": "string"
|
|
422
|
+
},
|
|
250
423
|
"detailLook": {
|
|
251
424
|
"default": "panel",
|
|
252
|
-
"description": "Visual treatment for the record surface. panel = an inline detail-panel in the page flow (bodyContent); slide-over = the same panel as a right-hand drawer over the list behind it (slideOverBodyContent); page = a full-width record page with roomier spacing (pageBodyContent). Selecting a
|
|
425
|
+
"description": "Visual treatment for the record surface. panel = an inline detail-panel in the page flow (bodyContent); slide-over = the same panel as a right-hand drawer over the list behind it (slideOverBodyContent); page = a full-width record page with roomier spacing (pageBodyContent); document = a wiki-page/note/article surface — big editable title over a rich-text body, no labelled field rows, click-to-edit with autosave (documentBodyContent / documentEditingContent). Selecting a look swaps which body tree renders after the record loads; any body may still be overridden directly at the call site.",
|
|
253
426
|
"label": "Detail look",
|
|
254
|
-
"synonyms": "detail style, drawer, slide over, full page",
|
|
427
|
+
"synonyms": "detail style, drawer, slide over, full page, document, wiki page, note, article",
|
|
255
428
|
"tier": "presentation",
|
|
256
429
|
"type": "string",
|
|
257
430
|
"values": [
|
|
258
431
|
"panel",
|
|
259
432
|
"slide-over",
|
|
260
|
-
"page"
|
|
433
|
+
"page",
|
|
434
|
+
"document"
|
|
261
435
|
]
|
|
262
436
|
},
|
|
437
|
+
"documentBodyContent": {
|
|
438
|
+
"default": {
|
|
439
|
+
"actions": "@config.actions",
|
|
440
|
+
"className": "w-full",
|
|
441
|
+
"editEvent": "EDIT_CONTENT",
|
|
442
|
+
"editLabel": "@config.editLabel",
|
|
443
|
+
"entity": "@entity.loadedRow",
|
|
444
|
+
"maxInlineActions": "@config.maxInlineActions",
|
|
445
|
+
"placeholder": "@config.placeholder",
|
|
446
|
+
"subtitle": "@entity.description",
|
|
447
|
+
"title": "@entity.name",
|
|
448
|
+
"titleCommitEvent": "TITLE_COMMITTED",
|
|
449
|
+
"type": "document-panel",
|
|
450
|
+
"value": "@entity.content"
|
|
451
|
+
},
|
|
452
|
+
"description": "Render-ui SExpr for detailLook = document while reading: the pure writing surface — editable title with the rich-text body DIRECTLY beneath it, Edit and the actions menu tucked into the header corner. Metadata never sits between title and content; compose the sibling RecordItemDetails trait beside this one for the settings rail. Binds only @entity fields, never ?data, because it is also painted by arms whose payload is not the record.",
|
|
453
|
+
"label": "Document look body (reading)",
|
|
454
|
+
"tier": "internal",
|
|
455
|
+
"type": "render-ui"
|
|
456
|
+
},
|
|
457
|
+
"documentEditingContent": {
|
|
458
|
+
"default": {
|
|
459
|
+
"actions": "@config.actions",
|
|
460
|
+
"autosaveHint": "@config.autosaveHint",
|
|
461
|
+
"className": "w-full",
|
|
462
|
+
"contentChangeEvent": "CONTENT_CHANGE",
|
|
463
|
+
"doneEvent": "DONE_EDITING",
|
|
464
|
+
"doneLabel": "@config.doneLabel",
|
|
465
|
+
"editing": true,
|
|
466
|
+
"entity": "@entity.loadedRow",
|
|
467
|
+
"maxInlineActions": "@config.maxInlineActions",
|
|
468
|
+
"placeholder": "@config.placeholder",
|
|
469
|
+
"subtitle": "@entity.description",
|
|
470
|
+
"title": "@entity.name",
|
|
471
|
+
"titleCommitEvent": "TITLE_COMMITTED",
|
|
472
|
+
"type": "document-panel",
|
|
473
|
+
"value": "@entity.content"
|
|
474
|
+
},
|
|
475
|
+
"description": "Render-ui SExpr for detailLook = document during an editing session: the same surface with the body live and the header corner showing the autosave hint + Done. Binds only @entity fields, never ?data.",
|
|
476
|
+
"label": "Document look body (editing)",
|
|
477
|
+
"tier": "internal",
|
|
478
|
+
"type": "render-ui"
|
|
479
|
+
},
|
|
480
|
+
"doneLabel": {
|
|
481
|
+
"default": "Done",
|
|
482
|
+
"description": "Label of the button that ends the document editing session; work is already autosaved when it is pressed.",
|
|
483
|
+
"label": "Done button label",
|
|
484
|
+
"tier": "presentation",
|
|
485
|
+
"type": "string"
|
|
486
|
+
},
|
|
487
|
+
"editLabel": {
|
|
488
|
+
"default": "Edit",
|
|
489
|
+
"description": "Label of the quiet button above the document body that starts an editing session (the body itself is also clickable).",
|
|
490
|
+
"label": "Edit button label",
|
|
491
|
+
"tier": "presentation",
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
263
494
|
"fields": {
|
|
264
495
|
"default": [
|
|
265
496
|
{
|
|
@@ -370,6 +601,13 @@
|
|
|
370
601
|
"tier": "internal",
|
|
371
602
|
"type": "render-ui"
|
|
372
603
|
},
|
|
604
|
+
"placeholder": {
|
|
605
|
+
"default": "Start writing…",
|
|
606
|
+
"description": "Placeholder shown in the document body when it is empty.",
|
|
607
|
+
"label": "Placeholder text",
|
|
608
|
+
"tier": "presentation",
|
|
609
|
+
"type": "string"
|
|
610
|
+
},
|
|
373
611
|
"sections": {
|
|
374
612
|
"default": [],
|
|
375
613
|
"description": "Optional titled groups over `fields`, e.g. [{title: Contact, fields: [email, phone]}]. Group into sections of 3-5 once a record carries more than about seven fields — a flat list past that is the cognitive-load problem Almadar_UX.md §1.4 (Miller) describes. Empty = one ungrouped list, the default.",
|
|
@@ -432,9 +670,9 @@
|
|
|
432
670
|
},
|
|
433
671
|
"subtitleField": {
|
|
434
672
|
"default": "description",
|
|
435
|
-
"description": "Name of the field shown under the title (e.g. company, category).
|
|
673
|
+
"description": "Name of the field shown under the title (e.g. company, category). Set to \"\" for no subtitle at all — the right choice for the document look, whose metadata lives in the properties strip, not a second line.",
|
|
436
674
|
"label": "Which field is the subtitle?",
|
|
437
|
-
"synonyms": "subtitle field, secondary field, subheading",
|
|
675
|
+
"synonyms": "subtitle field, secondary field, subheading, no subtitle",
|
|
438
676
|
"tier": "presentation",
|
|
439
677
|
"type": "string"
|
|
440
678
|
},
|
|
@@ -466,6 +704,24 @@
|
|
|
466
704
|
"synonyms": "loaded, received, ready, fetched",
|
|
467
705
|
"tier": "domain"
|
|
468
706
|
},
|
|
707
|
+
{
|
|
708
|
+
"description": "A slug-routed record finished loading; the payload is a collection whose first element is the record. Composing traits that need the loaded row (comments scoping, status controls) listen to this.",
|
|
709
|
+
"event": "RecordItemSlugLoaded",
|
|
710
|
+
"eventId": "evt_01M13GHEP2SC7P69RWYXYACGK1",
|
|
711
|
+
"payloadSchema": [
|
|
712
|
+
{
|
|
713
|
+
"name": "data",
|
|
714
|
+
"type": "[RecordItem]"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "totalCount",
|
|
718
|
+
"type": "number"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
"scope": "internal",
|
|
722
|
+
"synonyms": "loaded by address, slug resolved, record found",
|
|
723
|
+
"tier": "domain"
|
|
724
|
+
},
|
|
469
725
|
{
|
|
470
726
|
"description": "Indicates a failure to load the record.",
|
|
471
727
|
"event": "RecordItemLoadFailed",
|
|
@@ -515,6 +771,22 @@
|
|
|
515
771
|
"name": "status",
|
|
516
772
|
"type": "string"
|
|
517
773
|
},
|
|
774
|
+
{
|
|
775
|
+
"name": "slug",
|
|
776
|
+
"type": "string"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"name": "content",
|
|
780
|
+
"type": "string"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"name": "loadedRow",
|
|
784
|
+
"type": "object"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "openDraft",
|
|
788
|
+
"type": "string"
|
|
789
|
+
},
|
|
518
790
|
{
|
|
519
791
|
"name": "createdAt",
|
|
520
792
|
"type": "string"
|
|
@@ -558,6 +830,22 @@
|
|
|
558
830
|
"name": "status",
|
|
559
831
|
"type": "string"
|
|
560
832
|
},
|
|
833
|
+
{
|
|
834
|
+
"name": "slug",
|
|
835
|
+
"type": "string"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "content",
|
|
839
|
+
"type": "string"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "loadedRow",
|
|
843
|
+
"type": "object"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "openDraft",
|
|
847
|
+
"type": "string"
|
|
848
|
+
},
|
|
561
849
|
{
|
|
562
850
|
"name": "createdAt",
|
|
563
851
|
"type": "string"
|
|
@@ -569,12 +857,86 @@
|
|
|
569
857
|
"scope": "external",
|
|
570
858
|
"synonyms": "remove, discard, delete, archive",
|
|
571
859
|
"tier": "domain"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"description": "The document look's autosave stream: fired at every typing pause while editing, and once more on Done. This atom never persists — the composing organism routes CONTENT_SAVED into a QUIET persist (one that does not refetch or repaint this surface, or the editor unmounts mid-keystroke).",
|
|
863
|
+
"event": "CONTENT_SAVED",
|
|
864
|
+
"eventId": "evt_01M13GHEP2N1Y6TA5BJJC0CZME",
|
|
865
|
+
"payloadSchema": [
|
|
866
|
+
{
|
|
867
|
+
"name": "id",
|
|
868
|
+
"required": true,
|
|
869
|
+
"type": "string"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "content",
|
|
873
|
+
"type": "string"
|
|
874
|
+
}
|
|
875
|
+
],
|
|
876
|
+
"scope": "external",
|
|
877
|
+
"synonyms": "autosave, saved, persist content, draft saved",
|
|
878
|
+
"tier": "domain"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"description": "The author finished the document editing session (pressed Done). Hosts refetch the row, repaint, and snapshot version history on THIS event — never on the CONTENT_SAVED autosave stream.",
|
|
882
|
+
"event": "CONTENT_COMMITTED",
|
|
883
|
+
"eventId": "evt_01M13GHEP2D9RY9RAKACQANRGC",
|
|
884
|
+
"payloadSchema": [
|
|
885
|
+
{
|
|
886
|
+
"name": "id",
|
|
887
|
+
"required": true,
|
|
888
|
+
"type": "string"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "content",
|
|
892
|
+
"type": "string"
|
|
893
|
+
}
|
|
894
|
+
],
|
|
895
|
+
"scope": "external",
|
|
896
|
+
"synonyms": "done, finished editing, commit, snapshot",
|
|
897
|
+
"tier": "domain"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"description": "The viewer renamed the record in place by editing the document title; carries the committed title and the row id for a partial persist.",
|
|
901
|
+
"event": "TITLE_COMMITTED",
|
|
902
|
+
"eventId": "evt_01M13GHEP2HNQNFBSM1VQG2KR6",
|
|
903
|
+
"payloadSchema": [
|
|
904
|
+
{
|
|
905
|
+
"name": "title",
|
|
906
|
+
"type": "string"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"name": "id",
|
|
910
|
+
"type": "string"
|
|
911
|
+
}
|
|
912
|
+
],
|
|
913
|
+
"scope": "external",
|
|
914
|
+
"synonyms": "rename, retitle, change title, edit title",
|
|
915
|
+
"tier": "domain"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"description": "The viewer clicked the document body (or its Edit button) to start an editing session.",
|
|
919
|
+
"event": "EDIT_CONTENT",
|
|
920
|
+
"eventId": "evt_01M13GHEP20FNRMC2TMPGE7EFF",
|
|
921
|
+
"synonyms": "edit, start editing, click to edit",
|
|
922
|
+
"tier": "presentation"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"description": "The viewer pressed Done to end the document editing session.",
|
|
926
|
+
"event": "DONE_EDITING",
|
|
927
|
+
"eventId": "evt_01M13GHEP2Z0EM00B7ENGRDJQH",
|
|
928
|
+
"synonyms": "done, finish, stop editing",
|
|
929
|
+
"tier": "presentation"
|
|
572
930
|
}
|
|
573
931
|
],
|
|
574
932
|
"entityContract": {
|
|
575
933
|
"provides": [
|
|
934
|
+
"content",
|
|
576
935
|
"description",
|
|
577
|
-
"
|
|
936
|
+
"loadedRow",
|
|
937
|
+
"name",
|
|
938
|
+
"openDraft",
|
|
939
|
+
"slug"
|
|
578
940
|
],
|
|
579
941
|
"requires": []
|
|
580
942
|
},
|
|
@@ -590,7 +952,7 @@
|
|
|
590
952
|
"stateMachine": {
|
|
591
953
|
"events": [
|
|
592
954
|
{
|
|
593
|
-
"description": "Opens the detail surface for
|
|
955
|
+
"description": "Opens the detail surface for one record: by id, or by slug for address-routed records (the internal re-fetch after an update still carries id). `draft` is set only by a document-first create's navigate, and opens the document look's body straight in the editor.",
|
|
594
956
|
"id": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
595
957
|
"key": "INIT",
|
|
596
958
|
"name": "Initialize",
|
|
@@ -598,11 +960,75 @@
|
|
|
598
960
|
{
|
|
599
961
|
"name": "id",
|
|
600
962
|
"type": "string"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "slug",
|
|
966
|
+
"type": "string"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"name": "draft",
|
|
970
|
+
"type": "string"
|
|
601
971
|
}
|
|
602
972
|
],
|
|
603
973
|
"synonyms": "open record, view record, show details, drill in",
|
|
604
974
|
"tier": "domain"
|
|
605
975
|
},
|
|
976
|
+
{
|
|
977
|
+
"description": "The document look's autosave stream: fired at every typing pause while editing, and once more on Done. This atom never persists — the composing organism routes CONTENT_SAVED into a QUIET persist (one that does not refetch or repaint this surface, or the editor unmounts mid-keystroke).",
|
|
978
|
+
"id": "evt_01M13GHEP2N1Y6TA5BJJC0CZME",
|
|
979
|
+
"key": "CONTENT_SAVED",
|
|
980
|
+
"name": "Content Saved",
|
|
981
|
+
"payloadSchema": [
|
|
982
|
+
{
|
|
983
|
+
"name": "id",
|
|
984
|
+
"required": true,
|
|
985
|
+
"type": "string"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"name": "content",
|
|
989
|
+
"type": "string"
|
|
990
|
+
}
|
|
991
|
+
],
|
|
992
|
+
"synonyms": "autosave, saved, persist content, draft saved",
|
|
993
|
+
"tier": "domain"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"description": "The author finished the document editing session (pressed Done). Hosts refetch the row, repaint, and snapshot version history on THIS event — never on the CONTENT_SAVED autosave stream.",
|
|
997
|
+
"id": "evt_01M13GHEP2D9RY9RAKACQANRGC",
|
|
998
|
+
"key": "CONTENT_COMMITTED",
|
|
999
|
+
"name": "Content Committed",
|
|
1000
|
+
"payloadSchema": [
|
|
1001
|
+
{
|
|
1002
|
+
"name": "id",
|
|
1003
|
+
"required": true,
|
|
1004
|
+
"type": "string"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "content",
|
|
1008
|
+
"type": "string"
|
|
1009
|
+
}
|
|
1010
|
+
],
|
|
1011
|
+
"synonyms": "done, finished editing, commit, snapshot",
|
|
1012
|
+
"tier": "domain"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"description": "The viewer renamed the record in place by editing the document title; carries the committed title and the row id for a partial persist.",
|
|
1016
|
+
"id": "evt_01M13GHEP2HNQNFBSM1VQG2KR6",
|
|
1017
|
+
"key": "TITLE_COMMITTED",
|
|
1018
|
+
"name": "Title Committed",
|
|
1019
|
+
"payloadSchema": [
|
|
1020
|
+
{
|
|
1021
|
+
"name": "title",
|
|
1022
|
+
"type": "string"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"name": "id",
|
|
1026
|
+
"type": "string"
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"synonyms": "rename, retitle, change title, edit title",
|
|
1030
|
+
"tier": "domain"
|
|
1031
|
+
},
|
|
606
1032
|
{
|
|
607
1033
|
"description": "A row was opened from a list; shows that record in this surface.",
|
|
608
1034
|
"id": "evt_01M11JRVVZSRPRJG40FASZ2Q9H",
|
|
@@ -640,6 +1066,24 @@
|
|
|
640
1066
|
"synonyms": "loaded, received, ready, fetched",
|
|
641
1067
|
"tier": "domain"
|
|
642
1068
|
},
|
|
1069
|
+
{
|
|
1070
|
+
"description": "A slug-routed record finished loading; the payload is a collection whose first element is the record. Composing traits that need the loaded row (comments scoping, status controls) listen to this.",
|
|
1071
|
+
"id": "evt_01M13GHEP2SC7P69RWYXYACGK1",
|
|
1072
|
+
"key": "RecordItemSlugLoaded",
|
|
1073
|
+
"name": "RecordItem slug loaded",
|
|
1074
|
+
"payloadSchema": [
|
|
1075
|
+
{
|
|
1076
|
+
"name": "data",
|
|
1077
|
+
"type": "[RecordItem]"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"name": "totalCount",
|
|
1081
|
+
"type": "number"
|
|
1082
|
+
}
|
|
1083
|
+
],
|
|
1084
|
+
"synonyms": "loaded by address, slug resolved, record found",
|
|
1085
|
+
"tier": "domain"
|
|
1086
|
+
},
|
|
643
1087
|
{
|
|
644
1088
|
"description": "Indicates a failure to load the record.",
|
|
645
1089
|
"id": "evt_01M11G7GKTW27F8E4B51MZXT3J",
|
|
@@ -658,6 +1102,28 @@
|
|
|
658
1102
|
"synonyms": "error, failed, problem, unsuccessful",
|
|
659
1103
|
"tier": "internal"
|
|
660
1104
|
},
|
|
1105
|
+
{
|
|
1106
|
+
"description": "The rich text surface reported an edit (already debounced to typing pauses by the component).",
|
|
1107
|
+
"id": "evt_01M13GHEP2EC6BDRMTB17V0ZND",
|
|
1108
|
+
"key": "CONTENT_CHANGE",
|
|
1109
|
+
"name": "Content Change",
|
|
1110
|
+
"payloadSchema": [
|
|
1111
|
+
{
|
|
1112
|
+
"name": "value",
|
|
1113
|
+
"type": "string"
|
|
1114
|
+
}
|
|
1115
|
+
],
|
|
1116
|
+
"synonyms": "typing, content changed, body edited",
|
|
1117
|
+
"tier": "domain"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"description": "The viewer pressed Done to end the document editing session.",
|
|
1121
|
+
"id": "evt_01M13GHEP2Z0EM00B7ENGRDJQH",
|
|
1122
|
+
"key": "DONE_EDITING",
|
|
1123
|
+
"name": "Done Editing",
|
|
1124
|
+
"synonyms": "done, finish, stop editing",
|
|
1125
|
+
"tier": "presentation"
|
|
1126
|
+
},
|
|
661
1127
|
{
|
|
662
1128
|
"description": "Closes the record surface and returns it to blank.",
|
|
663
1129
|
"id": "evt_01M11JRVVZ5NTTZVC714X45YET",
|
|
@@ -666,6 +1132,14 @@
|
|
|
666
1132
|
"synonyms": "close, dismiss, back to list",
|
|
667
1133
|
"tier": "domain"
|
|
668
1134
|
},
|
|
1135
|
+
{
|
|
1136
|
+
"description": "The viewer clicked the document body (or its Edit button) to start an editing session.",
|
|
1137
|
+
"id": "evt_01M13GHEP20FNRMC2TMPGE7EFF",
|
|
1138
|
+
"key": "EDIT_CONTENT",
|
|
1139
|
+
"name": "Edit Content",
|
|
1140
|
+
"synonyms": "edit, start editing, click to edit",
|
|
1141
|
+
"tier": "presentation"
|
|
1142
|
+
},
|
|
669
1143
|
{
|
|
670
1144
|
"description": "Re-runs the fetch after a failed load.",
|
|
671
1145
|
"id": "evt_01M11G7GKT3BDT1MGPXJQ3AZPK",
|
|
@@ -707,11 +1181,27 @@
|
|
|
707
1181
|
"type": "string"
|
|
708
1182
|
},
|
|
709
1183
|
{
|
|
710
|
-
"name": "
|
|
1184
|
+
"name": "slug",
|
|
711
1185
|
"type": "string"
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"name": "content",
|
|
1189
|
+
"type": "string"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"name": "loadedRow",
|
|
1193
|
+
"type": "object"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"name": "openDraft",
|
|
1197
|
+
"type": "string"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"name": "createdAt",
|
|
1201
|
+
"type": "string"
|
|
1202
|
+
}
|
|
1203
|
+
],
|
|
1204
|
+
"type": "object"
|
|
715
1205
|
}
|
|
716
1206
|
],
|
|
717
1207
|
"synonyms": "modify, update, change",
|
|
@@ -749,6 +1239,22 @@
|
|
|
749
1239
|
"name": "status",
|
|
750
1240
|
"type": "string"
|
|
751
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
"name": "slug",
|
|
1244
|
+
"type": "string"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "content",
|
|
1248
|
+
"type": "string"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "loadedRow",
|
|
1252
|
+
"type": "object"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"name": "openDraft",
|
|
1256
|
+
"type": "string"
|
|
1257
|
+
},
|
|
752
1258
|
{
|
|
753
1259
|
"name": "createdAt",
|
|
754
1260
|
"type": "string"
|
|
@@ -769,6 +1275,9 @@
|
|
|
769
1275
|
{
|
|
770
1276
|
"name": "loading"
|
|
771
1277
|
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "editing"
|
|
1280
|
+
},
|
|
772
1281
|
{
|
|
773
1282
|
"name": "viewing"
|
|
774
1283
|
},
|
|
@@ -784,6 +1293,15 @@
|
|
|
784
1293
|
"@entity.id",
|
|
785
1294
|
"@payload.id"
|
|
786
1295
|
],
|
|
1296
|
+
[
|
|
1297
|
+
"set",
|
|
1298
|
+
"@entity.openDraft",
|
|
1299
|
+
[
|
|
1300
|
+
"str/default",
|
|
1301
|
+
"@payload.draft",
|
|
1302
|
+
""
|
|
1303
|
+
]
|
|
1304
|
+
],
|
|
787
1305
|
[
|
|
788
1306
|
"fetch",
|
|
789
1307
|
"RecordItem",
|
|
@@ -809,9 +1327,21 @@
|
|
|
809
1327
|
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
810
1328
|
"from": "idle",
|
|
811
1329
|
"guard": [
|
|
812
|
-
"
|
|
813
|
-
|
|
814
|
-
|
|
1330
|
+
"and",
|
|
1331
|
+
[
|
|
1332
|
+
"=",
|
|
1333
|
+
"@config.openOn",
|
|
1334
|
+
"init"
|
|
1335
|
+
],
|
|
1336
|
+
[
|
|
1337
|
+
"!=",
|
|
1338
|
+
[
|
|
1339
|
+
"str/default",
|
|
1340
|
+
"@payload.id",
|
|
1341
|
+
""
|
|
1342
|
+
],
|
|
1343
|
+
""
|
|
1344
|
+
]
|
|
815
1345
|
],
|
|
816
1346
|
"to": "loading"
|
|
817
1347
|
},
|
|
@@ -819,8 +1349,17 @@
|
|
|
819
1349
|
"effects": [
|
|
820
1350
|
[
|
|
821
1351
|
"set",
|
|
822
|
-
"@entity.
|
|
823
|
-
"@payload.
|
|
1352
|
+
"@entity.slug",
|
|
1353
|
+
"@payload.slug"
|
|
1354
|
+
],
|
|
1355
|
+
[
|
|
1356
|
+
"set",
|
|
1357
|
+
"@entity.openDraft",
|
|
1358
|
+
[
|
|
1359
|
+
"str/default",
|
|
1360
|
+
"@payload.draft",
|
|
1361
|
+
""
|
|
1362
|
+
]
|
|
824
1363
|
],
|
|
825
1364
|
[
|
|
826
1365
|
"fetch",
|
|
@@ -828,9 +1367,17 @@
|
|
|
828
1367
|
{
|
|
829
1368
|
"emit": {
|
|
830
1369
|
"failure": "RecordItemLoadFailed",
|
|
831
|
-
"success": "
|
|
1370
|
+
"success": "RecordItemSlugLoaded"
|
|
832
1371
|
},
|
|
833
|
-
"
|
|
1372
|
+
"filter": [
|
|
1373
|
+
"=",
|
|
1374
|
+
[
|
|
1375
|
+
"object/get",
|
|
1376
|
+
"@entity",
|
|
1377
|
+
"slug"
|
|
1378
|
+
],
|
|
1379
|
+
"@payload.slug"
|
|
1380
|
+
],
|
|
834
1381
|
"include": "@config.include"
|
|
835
1382
|
}
|
|
836
1383
|
],
|
|
@@ -843,17 +1390,47 @@
|
|
|
843
1390
|
}
|
|
844
1391
|
]
|
|
845
1392
|
],
|
|
846
|
-
"event": "
|
|
847
|
-
"eventId": "
|
|
1393
|
+
"event": "INIT",
|
|
1394
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
848
1395
|
"from": "idle",
|
|
1396
|
+
"guard": [
|
|
1397
|
+
"and",
|
|
1398
|
+
[
|
|
1399
|
+
"=",
|
|
1400
|
+
"@config.openOn",
|
|
1401
|
+
"init"
|
|
1402
|
+
],
|
|
1403
|
+
[
|
|
1404
|
+
"=",
|
|
1405
|
+
[
|
|
1406
|
+
"str/default",
|
|
1407
|
+
"@payload.id",
|
|
1408
|
+
""
|
|
1409
|
+
],
|
|
1410
|
+
""
|
|
1411
|
+
],
|
|
1412
|
+
[
|
|
1413
|
+
"!=",
|
|
1414
|
+
[
|
|
1415
|
+
"str/default",
|
|
1416
|
+
"@payload.slug",
|
|
1417
|
+
""
|
|
1418
|
+
],
|
|
1419
|
+
""
|
|
1420
|
+
]
|
|
1421
|
+
],
|
|
849
1422
|
"to": "loading"
|
|
850
1423
|
},
|
|
851
1424
|
{
|
|
852
1425
|
"effects": [
|
|
853
1426
|
[
|
|
854
1427
|
"set",
|
|
855
|
-
"@entity.
|
|
856
|
-
|
|
1428
|
+
"@entity.openDraft",
|
|
1429
|
+
[
|
|
1430
|
+
"str/default",
|
|
1431
|
+
"@payload.draft",
|
|
1432
|
+
""
|
|
1433
|
+
]
|
|
857
1434
|
],
|
|
858
1435
|
[
|
|
859
1436
|
"fetch",
|
|
@@ -878,83 +1455,52 @@
|
|
|
878
1455
|
],
|
|
879
1456
|
"event": "INIT",
|
|
880
1457
|
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
881
|
-
"from": "
|
|
882
|
-
"
|
|
883
|
-
|
|
884
|
-
{
|
|
885
|
-
"effects": [
|
|
1458
|
+
"from": "idle",
|
|
1459
|
+
"guard": [
|
|
1460
|
+
"and",
|
|
886
1461
|
[
|
|
887
|
-
"
|
|
888
|
-
"@
|
|
889
|
-
|
|
890
|
-
"object/get",
|
|
891
|
-
"@payload.data",
|
|
892
|
-
"@config.titleField"
|
|
893
|
-
]
|
|
1462
|
+
"=",
|
|
1463
|
+
"@config.openOn",
|
|
1464
|
+
"init"
|
|
894
1465
|
],
|
|
895
1466
|
[
|
|
896
|
-
"
|
|
897
|
-
"@entity.description",
|
|
1467
|
+
"=",
|
|
898
1468
|
[
|
|
899
|
-
"
|
|
900
|
-
"@payload.
|
|
901
|
-
"
|
|
902
|
-
]
|
|
1469
|
+
"str/default",
|
|
1470
|
+
"@payload.id",
|
|
1471
|
+
""
|
|
1472
|
+
],
|
|
1473
|
+
""
|
|
903
1474
|
],
|
|
904
1475
|
[
|
|
905
|
-
"
|
|
906
|
-
[
|
|
907
|
-
"=",
|
|
908
|
-
"@config.detailLook",
|
|
909
|
-
"slide-over"
|
|
910
|
-
],
|
|
1476
|
+
"=",
|
|
911
1477
|
[
|
|
912
|
-
"
|
|
913
|
-
"
|
|
914
|
-
"
|
|
1478
|
+
"str/default",
|
|
1479
|
+
"@payload.slug",
|
|
1480
|
+
""
|
|
915
1481
|
],
|
|
916
|
-
|
|
917
|
-
"if",
|
|
918
|
-
[
|
|
919
|
-
"=",
|
|
920
|
-
"@config.detailLook",
|
|
921
|
-
"page"
|
|
922
|
-
],
|
|
923
|
-
[
|
|
924
|
-
"render-ui",
|
|
925
|
-
"main",
|
|
926
|
-
"@config.pageBodyContent"
|
|
927
|
-
],
|
|
928
|
-
[
|
|
929
|
-
"render-ui",
|
|
930
|
-
"main",
|
|
931
|
-
"@config.bodyContent"
|
|
932
|
-
]
|
|
933
|
-
]
|
|
1482
|
+
""
|
|
934
1483
|
]
|
|
935
1484
|
],
|
|
936
|
-
"
|
|
937
|
-
"eventId": "evt_01M11G7GKTPSHKRVR2KJCCXH83",
|
|
938
|
-
"from": "loading",
|
|
939
|
-
"to": "viewing"
|
|
1485
|
+
"to": "loading"
|
|
940
1486
|
},
|
|
941
1487
|
{
|
|
942
|
-
"
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
"event": "
|
|
955
|
-
"eventId": "
|
|
956
|
-
"from": "
|
|
957
|
-
"to": "
|
|
1488
|
+
"event": "CONTENT_SAVED",
|
|
1489
|
+
"eventId": "evt_01M13GHEP2N1Y6TA5BJJC0CZME",
|
|
1490
|
+
"from": "idle",
|
|
1491
|
+
"to": "idle"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"event": "CONTENT_COMMITTED",
|
|
1495
|
+
"eventId": "evt_01M13GHEP2D9RY9RAKACQANRGC",
|
|
1496
|
+
"from": "idle",
|
|
1497
|
+
"to": "idle"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"event": "TITLE_COMMITTED",
|
|
1501
|
+
"eventId": "evt_01M13GHEP2HNQNFBSM1VQG2KR6",
|
|
1502
|
+
"from": "idle",
|
|
1503
|
+
"to": "idle"
|
|
958
1504
|
},
|
|
959
1505
|
{
|
|
960
1506
|
"effects": [
|
|
@@ -974,100 +1520,20 @@
|
|
|
974
1520
|
"id": "@payload.id",
|
|
975
1521
|
"include": "@config.include"
|
|
976
1522
|
}
|
|
977
|
-
]
|
|
978
|
-
],
|
|
979
|
-
"event": "INIT",
|
|
980
|
-
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
981
|
-
"from": "viewing",
|
|
982
|
-
"to": "loading"
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
"effects": [
|
|
986
|
-
[
|
|
987
|
-
"set",
|
|
988
|
-
"@entity.name",
|
|
989
|
-
[
|
|
990
|
-
"object/get",
|
|
991
|
-
"@payload.data",
|
|
992
|
-
"@config.titleField"
|
|
993
|
-
]
|
|
994
|
-
],
|
|
995
|
-
[
|
|
996
|
-
"set",
|
|
997
|
-
"@entity.description",
|
|
998
|
-
[
|
|
999
|
-
"object/get",
|
|
1000
|
-
"@payload.data",
|
|
1001
|
-
"@config.subtitleField"
|
|
1002
|
-
]
|
|
1003
1523
|
],
|
|
1004
|
-
[
|
|
1005
|
-
"if",
|
|
1006
|
-
[
|
|
1007
|
-
"=",
|
|
1008
|
-
"@config.detailLook",
|
|
1009
|
-
"slide-over"
|
|
1010
|
-
],
|
|
1011
|
-
[
|
|
1012
|
-
"render-ui",
|
|
1013
|
-
"main",
|
|
1014
|
-
"@config.slideOverBodyContent"
|
|
1015
|
-
],
|
|
1016
|
-
[
|
|
1017
|
-
"if",
|
|
1018
|
-
[
|
|
1019
|
-
"=",
|
|
1020
|
-
"@config.detailLook",
|
|
1021
|
-
"page"
|
|
1022
|
-
],
|
|
1023
|
-
[
|
|
1024
|
-
"render-ui",
|
|
1025
|
-
"main",
|
|
1026
|
-
"@config.pageBodyContent"
|
|
1027
|
-
],
|
|
1028
|
-
[
|
|
1029
|
-
"render-ui",
|
|
1030
|
-
"main",
|
|
1031
|
-
"@config.bodyContent"
|
|
1032
|
-
]
|
|
1033
|
-
]
|
|
1034
|
-
]
|
|
1035
|
-
],
|
|
1036
|
-
"event": "RecordItemLoaded",
|
|
1037
|
-
"eventId": "evt_01M11G7GKTPSHKRVR2KJCCXH83",
|
|
1038
|
-
"from": "viewing",
|
|
1039
|
-
"to": "viewing"
|
|
1040
|
-
},
|
|
1041
|
-
{
|
|
1042
|
-
"effects": [
|
|
1043
1524
|
[
|
|
1044
1525
|
"render-ui",
|
|
1045
1526
|
"main",
|
|
1046
1527
|
{
|
|
1047
|
-
"
|
|
1048
|
-
"
|
|
1049
|
-
"type": "alert",
|
|
1050
|
-
"variant": "error"
|
|
1528
|
+
"rows": 4.0,
|
|
1529
|
+
"type": "skeleton"
|
|
1051
1530
|
}
|
|
1052
1531
|
]
|
|
1053
1532
|
],
|
|
1054
|
-
"event": "
|
|
1055
|
-
"eventId": "
|
|
1056
|
-
"from": "
|
|
1057
|
-
"to": "
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
"effects": [
|
|
1061
|
-
[
|
|
1062
|
-
"render-ui",
|
|
1063
|
-
"main",
|
|
1064
|
-
null
|
|
1065
|
-
]
|
|
1066
|
-
],
|
|
1067
|
-
"event": "CLOSE_VIEW",
|
|
1068
|
-
"eventId": "evt_01M11JRVVZ5NTTZVC714X45YET",
|
|
1069
|
-
"from": "viewing",
|
|
1070
|
-
"to": "idle"
|
|
1533
|
+
"event": "OPEN_VIEW",
|
|
1534
|
+
"eventId": "evt_01M11JRVVZSRPRJG40FASZ2Q9H",
|
|
1535
|
+
"from": "idle",
|
|
1536
|
+
"to": "loading"
|
|
1071
1537
|
},
|
|
1072
1538
|
{
|
|
1073
1539
|
"effects": [
|
|
@@ -1076,6 +1542,15 @@
|
|
|
1076
1542
|
"@entity.id",
|
|
1077
1543
|
"@payload.id"
|
|
1078
1544
|
],
|
|
1545
|
+
[
|
|
1546
|
+
"set",
|
|
1547
|
+
"@entity.openDraft",
|
|
1548
|
+
[
|
|
1549
|
+
"str/default",
|
|
1550
|
+
"@payload.draft",
|
|
1551
|
+
""
|
|
1552
|
+
]
|
|
1553
|
+
],
|
|
1079
1554
|
[
|
|
1080
1555
|
"fetch",
|
|
1081
1556
|
"RecordItem",
|
|
@@ -1099,20 +1574,51 @@
|
|
|
1099
1574
|
],
|
|
1100
1575
|
"event": "INIT",
|
|
1101
1576
|
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
1102
|
-
"from": "
|
|
1577
|
+
"from": "loading",
|
|
1578
|
+
"guard": [
|
|
1579
|
+
"!=",
|
|
1580
|
+
[
|
|
1581
|
+
"str/default",
|
|
1582
|
+
"@payload.id",
|
|
1583
|
+
""
|
|
1584
|
+
],
|
|
1585
|
+
""
|
|
1586
|
+
],
|
|
1103
1587
|
"to": "loading"
|
|
1104
1588
|
},
|
|
1105
1589
|
{
|
|
1106
1590
|
"effects": [
|
|
1591
|
+
[
|
|
1592
|
+
"set",
|
|
1593
|
+
"@entity.slug",
|
|
1594
|
+
"@payload.slug"
|
|
1595
|
+
],
|
|
1596
|
+
[
|
|
1597
|
+
"set",
|
|
1598
|
+
"@entity.openDraft",
|
|
1599
|
+
[
|
|
1600
|
+
"str/default",
|
|
1601
|
+
"@payload.draft",
|
|
1602
|
+
""
|
|
1603
|
+
]
|
|
1604
|
+
],
|
|
1107
1605
|
[
|
|
1108
1606
|
"fetch",
|
|
1109
1607
|
"RecordItem",
|
|
1110
1608
|
{
|
|
1111
1609
|
"emit": {
|
|
1112
1610
|
"failure": "RecordItemLoadFailed",
|
|
1113
|
-
"success": "
|
|
1611
|
+
"success": "RecordItemSlugLoaded"
|
|
1114
1612
|
},
|
|
1115
|
-
"
|
|
1613
|
+
"filter": [
|
|
1614
|
+
"=",
|
|
1615
|
+
[
|
|
1616
|
+
"object/get",
|
|
1617
|
+
"@entity",
|
|
1618
|
+
"slug"
|
|
1619
|
+
],
|
|
1620
|
+
"@payload.slug"
|
|
1621
|
+
],
|
|
1116
1622
|
"include": "@config.include"
|
|
1117
1623
|
}
|
|
1118
1624
|
],
|
|
@@ -1125,10 +1631,1723 @@
|
|
|
1125
1631
|
}
|
|
1126
1632
|
]
|
|
1127
1633
|
],
|
|
1128
|
-
"event": "
|
|
1129
|
-
"eventId": "
|
|
1130
|
-
"from": "
|
|
1634
|
+
"event": "INIT",
|
|
1635
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
1636
|
+
"from": "loading",
|
|
1637
|
+
"guard": [
|
|
1638
|
+
"and",
|
|
1639
|
+
[
|
|
1640
|
+
"=",
|
|
1641
|
+
[
|
|
1642
|
+
"str/default",
|
|
1643
|
+
"@payload.id",
|
|
1644
|
+
""
|
|
1645
|
+
],
|
|
1646
|
+
""
|
|
1647
|
+
],
|
|
1648
|
+
[
|
|
1649
|
+
"!=",
|
|
1650
|
+
[
|
|
1651
|
+
"str/default",
|
|
1652
|
+
"@payload.slug",
|
|
1653
|
+
""
|
|
1654
|
+
],
|
|
1655
|
+
""
|
|
1656
|
+
]
|
|
1657
|
+
],
|
|
1131
1658
|
"to": "loading"
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"effects": [
|
|
1662
|
+
[
|
|
1663
|
+
"set",
|
|
1664
|
+
"@entity.loadedRow",
|
|
1665
|
+
[
|
|
1666
|
+
"object/merge",
|
|
1667
|
+
"@payload.data",
|
|
1668
|
+
{}
|
|
1669
|
+
]
|
|
1670
|
+
],
|
|
1671
|
+
[
|
|
1672
|
+
"set",
|
|
1673
|
+
"@entity.id",
|
|
1674
|
+
[
|
|
1675
|
+
"object/get",
|
|
1676
|
+
"@payload.data",
|
|
1677
|
+
"id"
|
|
1678
|
+
]
|
|
1679
|
+
],
|
|
1680
|
+
[
|
|
1681
|
+
"set",
|
|
1682
|
+
"@entity.name",
|
|
1683
|
+
[
|
|
1684
|
+
"object/get",
|
|
1685
|
+
"@payload.data",
|
|
1686
|
+
"@config.titleField"
|
|
1687
|
+
]
|
|
1688
|
+
],
|
|
1689
|
+
[
|
|
1690
|
+
"set",
|
|
1691
|
+
"@entity.description",
|
|
1692
|
+
[
|
|
1693
|
+
"str/default",
|
|
1694
|
+
[
|
|
1695
|
+
"object/get",
|
|
1696
|
+
"@payload.data",
|
|
1697
|
+
"@config.subtitleField"
|
|
1698
|
+
],
|
|
1699
|
+
""
|
|
1700
|
+
]
|
|
1701
|
+
],
|
|
1702
|
+
[
|
|
1703
|
+
"set",
|
|
1704
|
+
"@entity.content",
|
|
1705
|
+
[
|
|
1706
|
+
"object/get",
|
|
1707
|
+
"@payload.data",
|
|
1708
|
+
"@config.contentField"
|
|
1709
|
+
]
|
|
1710
|
+
],
|
|
1711
|
+
[
|
|
1712
|
+
"render-ui",
|
|
1713
|
+
"main",
|
|
1714
|
+
"@config.documentEditingContent"
|
|
1715
|
+
]
|
|
1716
|
+
],
|
|
1717
|
+
"event": "RecordItemLoaded",
|
|
1718
|
+
"eventId": "evt_01M11G7GKTPSHKRVR2KJCCXH83",
|
|
1719
|
+
"from": "loading",
|
|
1720
|
+
"guard": [
|
|
1721
|
+
"=",
|
|
1722
|
+
[
|
|
1723
|
+
"str/default",
|
|
1724
|
+
[
|
|
1725
|
+
"object/get",
|
|
1726
|
+
"@entity",
|
|
1727
|
+
"openDraft"
|
|
1728
|
+
],
|
|
1729
|
+
""
|
|
1730
|
+
],
|
|
1731
|
+
"1"
|
|
1732
|
+
],
|
|
1733
|
+
"to": "editing"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"effects": [
|
|
1737
|
+
[
|
|
1738
|
+
"set",
|
|
1739
|
+
"@entity.loadedRow",
|
|
1740
|
+
[
|
|
1741
|
+
"object/merge",
|
|
1742
|
+
"@payload.data",
|
|
1743
|
+
{}
|
|
1744
|
+
]
|
|
1745
|
+
],
|
|
1746
|
+
[
|
|
1747
|
+
"set",
|
|
1748
|
+
"@entity.id",
|
|
1749
|
+
[
|
|
1750
|
+
"object/get",
|
|
1751
|
+
"@payload.data",
|
|
1752
|
+
"id"
|
|
1753
|
+
]
|
|
1754
|
+
],
|
|
1755
|
+
[
|
|
1756
|
+
"set",
|
|
1757
|
+
"@entity.name",
|
|
1758
|
+
[
|
|
1759
|
+
"object/get",
|
|
1760
|
+
"@payload.data",
|
|
1761
|
+
"@config.titleField"
|
|
1762
|
+
]
|
|
1763
|
+
],
|
|
1764
|
+
[
|
|
1765
|
+
"set",
|
|
1766
|
+
"@entity.description",
|
|
1767
|
+
[
|
|
1768
|
+
"str/default",
|
|
1769
|
+
[
|
|
1770
|
+
"object/get",
|
|
1771
|
+
"@payload.data",
|
|
1772
|
+
"@config.subtitleField"
|
|
1773
|
+
],
|
|
1774
|
+
""
|
|
1775
|
+
]
|
|
1776
|
+
],
|
|
1777
|
+
[
|
|
1778
|
+
"set",
|
|
1779
|
+
"@entity.content",
|
|
1780
|
+
[
|
|
1781
|
+
"object/get",
|
|
1782
|
+
"@payload.data",
|
|
1783
|
+
"@config.contentField"
|
|
1784
|
+
]
|
|
1785
|
+
],
|
|
1786
|
+
[
|
|
1787
|
+
"if",
|
|
1788
|
+
[
|
|
1789
|
+
"=",
|
|
1790
|
+
"@config.detailLook",
|
|
1791
|
+
"document"
|
|
1792
|
+
],
|
|
1793
|
+
[
|
|
1794
|
+
"render-ui",
|
|
1795
|
+
"main",
|
|
1796
|
+
"@config.documentBodyContent"
|
|
1797
|
+
],
|
|
1798
|
+
[
|
|
1799
|
+
"if",
|
|
1800
|
+
[
|
|
1801
|
+
"=",
|
|
1802
|
+
"@config.detailLook",
|
|
1803
|
+
"slide-over"
|
|
1804
|
+
],
|
|
1805
|
+
[
|
|
1806
|
+
"render-ui",
|
|
1807
|
+
"main",
|
|
1808
|
+
"@config.slideOverBodyContent"
|
|
1809
|
+
],
|
|
1810
|
+
[
|
|
1811
|
+
"if",
|
|
1812
|
+
[
|
|
1813
|
+
"=",
|
|
1814
|
+
"@config.detailLook",
|
|
1815
|
+
"page"
|
|
1816
|
+
],
|
|
1817
|
+
[
|
|
1818
|
+
"render-ui",
|
|
1819
|
+
"main",
|
|
1820
|
+
"@config.pageBodyContent"
|
|
1821
|
+
],
|
|
1822
|
+
[
|
|
1823
|
+
"render-ui",
|
|
1824
|
+
"main",
|
|
1825
|
+
"@config.bodyContent"
|
|
1826
|
+
]
|
|
1827
|
+
]
|
|
1828
|
+
]
|
|
1829
|
+
]
|
|
1830
|
+
],
|
|
1831
|
+
"event": "RecordItemLoaded",
|
|
1832
|
+
"eventId": "evt_01M11G7GKTPSHKRVR2KJCCXH83",
|
|
1833
|
+
"from": "loading",
|
|
1834
|
+
"guard": [
|
|
1835
|
+
"!=",
|
|
1836
|
+
[
|
|
1837
|
+
"str/default",
|
|
1838
|
+
[
|
|
1839
|
+
"object/get",
|
|
1840
|
+
"@entity",
|
|
1841
|
+
"openDraft"
|
|
1842
|
+
],
|
|
1843
|
+
""
|
|
1844
|
+
],
|
|
1845
|
+
"1"
|
|
1846
|
+
],
|
|
1847
|
+
"to": "viewing"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"effects": [
|
|
1851
|
+
[
|
|
1852
|
+
"set",
|
|
1853
|
+
"@entity.loadedRow",
|
|
1854
|
+
[
|
|
1855
|
+
"array/first",
|
|
1856
|
+
"@payload.data"
|
|
1857
|
+
]
|
|
1858
|
+
],
|
|
1859
|
+
[
|
|
1860
|
+
"set",
|
|
1861
|
+
"@entity.id",
|
|
1862
|
+
[
|
|
1863
|
+
"object/get",
|
|
1864
|
+
[
|
|
1865
|
+
"array/first",
|
|
1866
|
+
"@payload.data"
|
|
1867
|
+
],
|
|
1868
|
+
"id"
|
|
1869
|
+
]
|
|
1870
|
+
],
|
|
1871
|
+
[
|
|
1872
|
+
"set",
|
|
1873
|
+
"@entity.name",
|
|
1874
|
+
[
|
|
1875
|
+
"object/get",
|
|
1876
|
+
[
|
|
1877
|
+
"array/first",
|
|
1878
|
+
"@payload.data"
|
|
1879
|
+
],
|
|
1880
|
+
"@config.titleField"
|
|
1881
|
+
]
|
|
1882
|
+
],
|
|
1883
|
+
[
|
|
1884
|
+
"set",
|
|
1885
|
+
"@entity.description",
|
|
1886
|
+
[
|
|
1887
|
+
"str/default",
|
|
1888
|
+
[
|
|
1889
|
+
"object/get",
|
|
1890
|
+
[
|
|
1891
|
+
"array/first",
|
|
1892
|
+
"@payload.data"
|
|
1893
|
+
],
|
|
1894
|
+
"@config.subtitleField"
|
|
1895
|
+
],
|
|
1896
|
+
""
|
|
1897
|
+
]
|
|
1898
|
+
],
|
|
1899
|
+
[
|
|
1900
|
+
"set",
|
|
1901
|
+
"@entity.content",
|
|
1902
|
+
[
|
|
1903
|
+
"object/get",
|
|
1904
|
+
[
|
|
1905
|
+
"array/first",
|
|
1906
|
+
"@payload.data"
|
|
1907
|
+
],
|
|
1908
|
+
"@config.contentField"
|
|
1909
|
+
]
|
|
1910
|
+
],
|
|
1911
|
+
[
|
|
1912
|
+
"render-ui",
|
|
1913
|
+
"main",
|
|
1914
|
+
"@config.documentEditingContent"
|
|
1915
|
+
]
|
|
1916
|
+
],
|
|
1917
|
+
"event": "RecordItemSlugLoaded",
|
|
1918
|
+
"eventId": "evt_01M13GHEP2SC7P69RWYXYACGK1",
|
|
1919
|
+
"from": "loading",
|
|
1920
|
+
"guard": [
|
|
1921
|
+
"and",
|
|
1922
|
+
[
|
|
1923
|
+
">",
|
|
1924
|
+
[
|
|
1925
|
+
"array/len",
|
|
1926
|
+
"@payload.data"
|
|
1927
|
+
],
|
|
1928
|
+
0.0
|
|
1929
|
+
],
|
|
1930
|
+
[
|
|
1931
|
+
"=",
|
|
1932
|
+
[
|
|
1933
|
+
"str/default",
|
|
1934
|
+
[
|
|
1935
|
+
"object/get",
|
|
1936
|
+
"@entity",
|
|
1937
|
+
"openDraft"
|
|
1938
|
+
],
|
|
1939
|
+
""
|
|
1940
|
+
],
|
|
1941
|
+
"1"
|
|
1942
|
+
]
|
|
1943
|
+
],
|
|
1944
|
+
"to": "editing"
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"effects": [
|
|
1948
|
+
[
|
|
1949
|
+
"set",
|
|
1950
|
+
"@entity.loadedRow",
|
|
1951
|
+
[
|
|
1952
|
+
"array/first",
|
|
1953
|
+
"@payload.data"
|
|
1954
|
+
]
|
|
1955
|
+
],
|
|
1956
|
+
[
|
|
1957
|
+
"set",
|
|
1958
|
+
"@entity.id",
|
|
1959
|
+
[
|
|
1960
|
+
"object/get",
|
|
1961
|
+
[
|
|
1962
|
+
"array/first",
|
|
1963
|
+
"@payload.data"
|
|
1964
|
+
],
|
|
1965
|
+
"id"
|
|
1966
|
+
]
|
|
1967
|
+
],
|
|
1968
|
+
[
|
|
1969
|
+
"set",
|
|
1970
|
+
"@entity.name",
|
|
1971
|
+
[
|
|
1972
|
+
"object/get",
|
|
1973
|
+
[
|
|
1974
|
+
"array/first",
|
|
1975
|
+
"@payload.data"
|
|
1976
|
+
],
|
|
1977
|
+
"@config.titleField"
|
|
1978
|
+
]
|
|
1979
|
+
],
|
|
1980
|
+
[
|
|
1981
|
+
"set",
|
|
1982
|
+
"@entity.description",
|
|
1983
|
+
[
|
|
1984
|
+
"str/default",
|
|
1985
|
+
[
|
|
1986
|
+
"object/get",
|
|
1987
|
+
[
|
|
1988
|
+
"array/first",
|
|
1989
|
+
"@payload.data"
|
|
1990
|
+
],
|
|
1991
|
+
"@config.subtitleField"
|
|
1992
|
+
],
|
|
1993
|
+
""
|
|
1994
|
+
]
|
|
1995
|
+
],
|
|
1996
|
+
[
|
|
1997
|
+
"set",
|
|
1998
|
+
"@entity.content",
|
|
1999
|
+
[
|
|
2000
|
+
"object/get",
|
|
2001
|
+
[
|
|
2002
|
+
"array/first",
|
|
2003
|
+
"@payload.data"
|
|
2004
|
+
],
|
|
2005
|
+
"@config.contentField"
|
|
2006
|
+
]
|
|
2007
|
+
],
|
|
2008
|
+
[
|
|
2009
|
+
"if",
|
|
2010
|
+
[
|
|
2011
|
+
"=",
|
|
2012
|
+
"@config.detailLook",
|
|
2013
|
+
"document"
|
|
2014
|
+
],
|
|
2015
|
+
[
|
|
2016
|
+
"render-ui",
|
|
2017
|
+
"main",
|
|
2018
|
+
"@config.documentBodyContent"
|
|
2019
|
+
],
|
|
2020
|
+
[
|
|
2021
|
+
"if",
|
|
2022
|
+
[
|
|
2023
|
+
"=",
|
|
2024
|
+
"@config.detailLook",
|
|
2025
|
+
"slide-over"
|
|
2026
|
+
],
|
|
2027
|
+
[
|
|
2028
|
+
"render-ui",
|
|
2029
|
+
"main",
|
|
2030
|
+
"@config.slideOverBodyContent"
|
|
2031
|
+
],
|
|
2032
|
+
[
|
|
2033
|
+
"if",
|
|
2034
|
+
[
|
|
2035
|
+
"=",
|
|
2036
|
+
"@config.detailLook",
|
|
2037
|
+
"page"
|
|
2038
|
+
],
|
|
2039
|
+
[
|
|
2040
|
+
"render-ui",
|
|
2041
|
+
"main",
|
|
2042
|
+
"@config.pageBodyContent"
|
|
2043
|
+
],
|
|
2044
|
+
[
|
|
2045
|
+
"render-ui",
|
|
2046
|
+
"main",
|
|
2047
|
+
"@config.bodyContent"
|
|
2048
|
+
]
|
|
2049
|
+
]
|
|
2050
|
+
]
|
|
2051
|
+
]
|
|
2052
|
+
],
|
|
2053
|
+
"event": "RecordItemSlugLoaded",
|
|
2054
|
+
"eventId": "evt_01M13GHEP2SC7P69RWYXYACGK1",
|
|
2055
|
+
"from": "loading",
|
|
2056
|
+
"guard": [
|
|
2057
|
+
"and",
|
|
2058
|
+
[
|
|
2059
|
+
">",
|
|
2060
|
+
[
|
|
2061
|
+
"array/len",
|
|
2062
|
+
"@payload.data"
|
|
2063
|
+
],
|
|
2064
|
+
0.0
|
|
2065
|
+
],
|
|
2066
|
+
[
|
|
2067
|
+
"!=",
|
|
2068
|
+
[
|
|
2069
|
+
"str/default",
|
|
2070
|
+
[
|
|
2071
|
+
"object/get",
|
|
2072
|
+
"@entity",
|
|
2073
|
+
"openDraft"
|
|
2074
|
+
],
|
|
2075
|
+
""
|
|
2076
|
+
],
|
|
2077
|
+
"1"
|
|
2078
|
+
]
|
|
2079
|
+
],
|
|
2080
|
+
"to": "viewing"
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"effects": [
|
|
2084
|
+
[
|
|
2085
|
+
"render-ui",
|
|
2086
|
+
"main",
|
|
2087
|
+
{
|
|
2088
|
+
"description": "No record matches this address.",
|
|
2089
|
+
"icon": "search-x",
|
|
2090
|
+
"title": "Not found",
|
|
2091
|
+
"type": "empty-state"
|
|
2092
|
+
}
|
|
2093
|
+
]
|
|
2094
|
+
],
|
|
2095
|
+
"event": "RecordItemSlugLoaded",
|
|
2096
|
+
"eventId": "evt_01M13GHEP2SC7P69RWYXYACGK1",
|
|
2097
|
+
"from": "loading",
|
|
2098
|
+
"guard": [
|
|
2099
|
+
"=",
|
|
2100
|
+
[
|
|
2101
|
+
"array/len",
|
|
2102
|
+
"@payload.data"
|
|
2103
|
+
],
|
|
2104
|
+
0.0
|
|
2105
|
+
],
|
|
2106
|
+
"to": "error"
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"effects": [
|
|
2110
|
+
[
|
|
2111
|
+
"render-ui",
|
|
2112
|
+
"main",
|
|
2113
|
+
{
|
|
2114
|
+
"message": "@payload.error",
|
|
2115
|
+
"title": "Couldn't load this record",
|
|
2116
|
+
"type": "alert",
|
|
2117
|
+
"variant": "error"
|
|
2118
|
+
}
|
|
2119
|
+
]
|
|
2120
|
+
],
|
|
2121
|
+
"event": "RecordItemLoadFailed",
|
|
2122
|
+
"eventId": "evt_01M11G7GKTW27F8E4B51MZXT3J",
|
|
2123
|
+
"from": "loading",
|
|
2124
|
+
"to": "error"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"effects": [
|
|
2128
|
+
[
|
|
2129
|
+
"set",
|
|
2130
|
+
"@entity.id",
|
|
2131
|
+
"@payload.id"
|
|
2132
|
+
],
|
|
2133
|
+
[
|
|
2134
|
+
"set",
|
|
2135
|
+
"@entity.openDraft",
|
|
2136
|
+
[
|
|
2137
|
+
"str/default",
|
|
2138
|
+
"@payload.draft",
|
|
2139
|
+
""
|
|
2140
|
+
]
|
|
2141
|
+
],
|
|
2142
|
+
[
|
|
2143
|
+
"fetch",
|
|
2144
|
+
"RecordItem",
|
|
2145
|
+
{
|
|
2146
|
+
"emit": {
|
|
2147
|
+
"failure": "RecordItemLoadFailed",
|
|
2148
|
+
"success": "RecordItemLoaded"
|
|
2149
|
+
},
|
|
2150
|
+
"id": "@payload.id",
|
|
2151
|
+
"include": "@config.include"
|
|
2152
|
+
}
|
|
2153
|
+
],
|
|
2154
|
+
[
|
|
2155
|
+
"render-ui",
|
|
2156
|
+
"main",
|
|
2157
|
+
{
|
|
2158
|
+
"rows": 4.0,
|
|
2159
|
+
"type": "skeleton"
|
|
2160
|
+
}
|
|
2161
|
+
]
|
|
2162
|
+
],
|
|
2163
|
+
"event": "INIT",
|
|
2164
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
2165
|
+
"from": "editing",
|
|
2166
|
+
"guard": [
|
|
2167
|
+
"and",
|
|
2168
|
+
[
|
|
2169
|
+
"!=",
|
|
2170
|
+
[
|
|
2171
|
+
"str/default",
|
|
2172
|
+
"@payload.id",
|
|
2173
|
+
""
|
|
2174
|
+
],
|
|
2175
|
+
""
|
|
2176
|
+
],
|
|
2177
|
+
[
|
|
2178
|
+
"!=",
|
|
2179
|
+
"@payload.id",
|
|
2180
|
+
"@entity.id"
|
|
2181
|
+
]
|
|
2182
|
+
],
|
|
2183
|
+
"to": "loading"
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"effects": [
|
|
2187
|
+
[
|
|
2188
|
+
"set",
|
|
2189
|
+
"@entity.slug",
|
|
2190
|
+
"@payload.slug"
|
|
2191
|
+
],
|
|
2192
|
+
[
|
|
2193
|
+
"set",
|
|
2194
|
+
"@entity.openDraft",
|
|
2195
|
+
[
|
|
2196
|
+
"str/default",
|
|
2197
|
+
"@payload.draft",
|
|
2198
|
+
""
|
|
2199
|
+
]
|
|
2200
|
+
],
|
|
2201
|
+
[
|
|
2202
|
+
"fetch",
|
|
2203
|
+
"RecordItem",
|
|
2204
|
+
{
|
|
2205
|
+
"emit": {
|
|
2206
|
+
"failure": "RecordItemLoadFailed",
|
|
2207
|
+
"success": "RecordItemSlugLoaded"
|
|
2208
|
+
},
|
|
2209
|
+
"filter": [
|
|
2210
|
+
"=",
|
|
2211
|
+
[
|
|
2212
|
+
"object/get",
|
|
2213
|
+
"@entity",
|
|
2214
|
+
"slug"
|
|
2215
|
+
],
|
|
2216
|
+
"@payload.slug"
|
|
2217
|
+
],
|
|
2218
|
+
"include": "@config.include"
|
|
2219
|
+
}
|
|
2220
|
+
],
|
|
2221
|
+
[
|
|
2222
|
+
"render-ui",
|
|
2223
|
+
"main",
|
|
2224
|
+
{
|
|
2225
|
+
"rows": 4.0,
|
|
2226
|
+
"type": "skeleton"
|
|
2227
|
+
}
|
|
2228
|
+
]
|
|
2229
|
+
],
|
|
2230
|
+
"event": "INIT",
|
|
2231
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
2232
|
+
"from": "editing",
|
|
2233
|
+
"guard": [
|
|
2234
|
+
"and",
|
|
2235
|
+
[
|
|
2236
|
+
"=",
|
|
2237
|
+
[
|
|
2238
|
+
"str/default",
|
|
2239
|
+
"@payload.id",
|
|
2240
|
+
""
|
|
2241
|
+
],
|
|
2242
|
+
""
|
|
2243
|
+
],
|
|
2244
|
+
[
|
|
2245
|
+
"!=",
|
|
2246
|
+
[
|
|
2247
|
+
"str/default",
|
|
2248
|
+
"@payload.slug",
|
|
2249
|
+
""
|
|
2250
|
+
],
|
|
2251
|
+
""
|
|
2252
|
+
],
|
|
2253
|
+
[
|
|
2254
|
+
"!=",
|
|
2255
|
+
"@payload.slug",
|
|
2256
|
+
"@entity.slug"
|
|
2257
|
+
]
|
|
2258
|
+
],
|
|
2259
|
+
"to": "loading"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"effects": [
|
|
2263
|
+
[
|
|
2264
|
+
"set",
|
|
2265
|
+
"@entity.content",
|
|
2266
|
+
"@payload.value"
|
|
2267
|
+
],
|
|
2268
|
+
[
|
|
2269
|
+
"set",
|
|
2270
|
+
"@entity.loadedRow",
|
|
2271
|
+
[
|
|
2272
|
+
"object/set",
|
|
2273
|
+
"@entity.loadedRow",
|
|
2274
|
+
"@config.contentField",
|
|
2275
|
+
"@payload.value"
|
|
2276
|
+
]
|
|
2277
|
+
],
|
|
2278
|
+
[
|
|
2279
|
+
"emit",
|
|
2280
|
+
"CONTENT_SAVED",
|
|
2281
|
+
{
|
|
2282
|
+
"content": "@entity.content",
|
|
2283
|
+
"id": "@entity.id"
|
|
2284
|
+
}
|
|
2285
|
+
]
|
|
2286
|
+
],
|
|
2287
|
+
"event": "CONTENT_CHANGE",
|
|
2288
|
+
"eventId": "evt_01M13GHEP2EC6BDRMTB17V0ZND",
|
|
2289
|
+
"from": "editing",
|
|
2290
|
+
"to": "editing"
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
"effects": [
|
|
2294
|
+
[
|
|
2295
|
+
"set",
|
|
2296
|
+
"@entity.name",
|
|
2297
|
+
"@payload.title"
|
|
2298
|
+
],
|
|
2299
|
+
[
|
|
2300
|
+
"set",
|
|
2301
|
+
"@entity.loadedRow",
|
|
2302
|
+
[
|
|
2303
|
+
"object/set",
|
|
2304
|
+
"@entity.loadedRow",
|
|
2305
|
+
"@config.titleField",
|
|
2306
|
+
"@payload.title"
|
|
2307
|
+
]
|
|
2308
|
+
]
|
|
2309
|
+
],
|
|
2310
|
+
"event": "TITLE_COMMITTED",
|
|
2311
|
+
"eventId": "evt_01M13GHEP2HNQNFBSM1VQG2KR6",
|
|
2312
|
+
"from": "editing",
|
|
2313
|
+
"to": "editing"
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"effects": [
|
|
2317
|
+
[
|
|
2318
|
+
"emit",
|
|
2319
|
+
"CONTENT_SAVED",
|
|
2320
|
+
{
|
|
2321
|
+
"content": "@entity.content",
|
|
2322
|
+
"id": "@entity.id"
|
|
2323
|
+
}
|
|
2324
|
+
],
|
|
2325
|
+
[
|
|
2326
|
+
"emit",
|
|
2327
|
+
"CONTENT_COMMITTED",
|
|
2328
|
+
{
|
|
2329
|
+
"content": "@entity.content",
|
|
2330
|
+
"id": "@entity.id"
|
|
2331
|
+
}
|
|
2332
|
+
],
|
|
2333
|
+
[
|
|
2334
|
+
"render-ui",
|
|
2335
|
+
"main",
|
|
2336
|
+
"@config.documentBodyContent"
|
|
2337
|
+
]
|
|
2338
|
+
],
|
|
2339
|
+
"event": "DONE_EDITING",
|
|
2340
|
+
"eventId": "evt_01M13GHEP2Z0EM00B7ENGRDJQH",
|
|
2341
|
+
"from": "editing",
|
|
2342
|
+
"to": "viewing"
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"effects": [
|
|
2346
|
+
[
|
|
2347
|
+
"emit",
|
|
2348
|
+
"CONTENT_SAVED",
|
|
2349
|
+
{
|
|
2350
|
+
"content": "@entity.content",
|
|
2351
|
+
"id": "@entity.id"
|
|
2352
|
+
}
|
|
2353
|
+
],
|
|
2354
|
+
[
|
|
2355
|
+
"render-ui",
|
|
2356
|
+
"main",
|
|
2357
|
+
null
|
|
2358
|
+
]
|
|
2359
|
+
],
|
|
2360
|
+
"event": "CLOSE_VIEW",
|
|
2361
|
+
"eventId": "evt_01M11JRVVZ5NTTZVC714X45YET",
|
|
2362
|
+
"from": "editing",
|
|
2363
|
+
"to": "idle"
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"effects": [
|
|
2367
|
+
[
|
|
2368
|
+
"set",
|
|
2369
|
+
"@entity.id",
|
|
2370
|
+
"@payload.id"
|
|
2371
|
+
],
|
|
2372
|
+
[
|
|
2373
|
+
"set",
|
|
2374
|
+
"@entity.openDraft",
|
|
2375
|
+
[
|
|
2376
|
+
"str/default",
|
|
2377
|
+
"@payload.draft",
|
|
2378
|
+
""
|
|
2379
|
+
]
|
|
2380
|
+
],
|
|
2381
|
+
[
|
|
2382
|
+
"fetch",
|
|
2383
|
+
"RecordItem",
|
|
2384
|
+
{
|
|
2385
|
+
"emit": {
|
|
2386
|
+
"failure": "RecordItemLoadFailed",
|
|
2387
|
+
"success": "RecordItemLoaded"
|
|
2388
|
+
},
|
|
2389
|
+
"id": "@payload.id",
|
|
2390
|
+
"include": "@config.include"
|
|
2391
|
+
}
|
|
2392
|
+
]
|
|
2393
|
+
],
|
|
2394
|
+
"event": "INIT",
|
|
2395
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
2396
|
+
"from": "viewing",
|
|
2397
|
+
"guard": [
|
|
2398
|
+
"!=",
|
|
2399
|
+
[
|
|
2400
|
+
"str/default",
|
|
2401
|
+
"@payload.id",
|
|
2402
|
+
""
|
|
2403
|
+
],
|
|
2404
|
+
""
|
|
2405
|
+
],
|
|
2406
|
+
"to": "loading"
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"effects": [
|
|
2410
|
+
[
|
|
2411
|
+
"set",
|
|
2412
|
+
"@entity.slug",
|
|
2413
|
+
"@payload.slug"
|
|
2414
|
+
],
|
|
2415
|
+
[
|
|
2416
|
+
"set",
|
|
2417
|
+
"@entity.openDraft",
|
|
2418
|
+
[
|
|
2419
|
+
"str/default",
|
|
2420
|
+
"@payload.draft",
|
|
2421
|
+
""
|
|
2422
|
+
]
|
|
2423
|
+
],
|
|
2424
|
+
[
|
|
2425
|
+
"fetch",
|
|
2426
|
+
"RecordItem",
|
|
2427
|
+
{
|
|
2428
|
+
"emit": {
|
|
2429
|
+
"failure": "RecordItemLoadFailed",
|
|
2430
|
+
"success": "RecordItemSlugLoaded"
|
|
2431
|
+
},
|
|
2432
|
+
"filter": [
|
|
2433
|
+
"=",
|
|
2434
|
+
[
|
|
2435
|
+
"object/get",
|
|
2436
|
+
"@entity",
|
|
2437
|
+
"slug"
|
|
2438
|
+
],
|
|
2439
|
+
"@payload.slug"
|
|
2440
|
+
],
|
|
2441
|
+
"include": "@config.include"
|
|
2442
|
+
}
|
|
2443
|
+
]
|
|
2444
|
+
],
|
|
2445
|
+
"event": "INIT",
|
|
2446
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
2447
|
+
"from": "viewing",
|
|
2448
|
+
"guard": [
|
|
2449
|
+
"and",
|
|
2450
|
+
[
|
|
2451
|
+
"=",
|
|
2452
|
+
[
|
|
2453
|
+
"str/default",
|
|
2454
|
+
"@payload.id",
|
|
2455
|
+
""
|
|
2456
|
+
],
|
|
2457
|
+
""
|
|
2458
|
+
],
|
|
2459
|
+
[
|
|
2460
|
+
"!=",
|
|
2461
|
+
[
|
|
2462
|
+
"str/default",
|
|
2463
|
+
"@payload.slug",
|
|
2464
|
+
""
|
|
2465
|
+
],
|
|
2466
|
+
""
|
|
2467
|
+
]
|
|
2468
|
+
],
|
|
2469
|
+
"to": "loading"
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"effects": [
|
|
2473
|
+
[
|
|
2474
|
+
"set",
|
|
2475
|
+
"@entity.loadedRow",
|
|
2476
|
+
[
|
|
2477
|
+
"object/merge",
|
|
2478
|
+
"@payload.data",
|
|
2479
|
+
{}
|
|
2480
|
+
]
|
|
2481
|
+
],
|
|
2482
|
+
[
|
|
2483
|
+
"set",
|
|
2484
|
+
"@entity.id",
|
|
2485
|
+
[
|
|
2486
|
+
"object/get",
|
|
2487
|
+
"@payload.data",
|
|
2488
|
+
"id"
|
|
2489
|
+
]
|
|
2490
|
+
],
|
|
2491
|
+
[
|
|
2492
|
+
"set",
|
|
2493
|
+
"@entity.name",
|
|
2494
|
+
[
|
|
2495
|
+
"object/get",
|
|
2496
|
+
"@payload.data",
|
|
2497
|
+
"@config.titleField"
|
|
2498
|
+
]
|
|
2499
|
+
],
|
|
2500
|
+
[
|
|
2501
|
+
"set",
|
|
2502
|
+
"@entity.description",
|
|
2503
|
+
[
|
|
2504
|
+
"str/default",
|
|
2505
|
+
[
|
|
2506
|
+
"object/get",
|
|
2507
|
+
"@payload.data",
|
|
2508
|
+
"@config.subtitleField"
|
|
2509
|
+
],
|
|
2510
|
+
""
|
|
2511
|
+
]
|
|
2512
|
+
],
|
|
2513
|
+
[
|
|
2514
|
+
"set",
|
|
2515
|
+
"@entity.content",
|
|
2516
|
+
[
|
|
2517
|
+
"object/get",
|
|
2518
|
+
"@payload.data",
|
|
2519
|
+
"@config.contentField"
|
|
2520
|
+
]
|
|
2521
|
+
],
|
|
2522
|
+
[
|
|
2523
|
+
"if",
|
|
2524
|
+
[
|
|
2525
|
+
"=",
|
|
2526
|
+
"@config.detailLook",
|
|
2527
|
+
"document"
|
|
2528
|
+
],
|
|
2529
|
+
[
|
|
2530
|
+
"render-ui",
|
|
2531
|
+
"main",
|
|
2532
|
+
"@config.documentBodyContent"
|
|
2533
|
+
],
|
|
2534
|
+
[
|
|
2535
|
+
"if",
|
|
2536
|
+
[
|
|
2537
|
+
"=",
|
|
2538
|
+
"@config.detailLook",
|
|
2539
|
+
"slide-over"
|
|
2540
|
+
],
|
|
2541
|
+
[
|
|
2542
|
+
"render-ui",
|
|
2543
|
+
"main",
|
|
2544
|
+
"@config.slideOverBodyContent"
|
|
2545
|
+
],
|
|
2546
|
+
[
|
|
2547
|
+
"if",
|
|
2548
|
+
[
|
|
2549
|
+
"=",
|
|
2550
|
+
"@config.detailLook",
|
|
2551
|
+
"page"
|
|
2552
|
+
],
|
|
2553
|
+
[
|
|
2554
|
+
"render-ui",
|
|
2555
|
+
"main",
|
|
2556
|
+
"@config.pageBodyContent"
|
|
2557
|
+
],
|
|
2558
|
+
[
|
|
2559
|
+
"render-ui",
|
|
2560
|
+
"main",
|
|
2561
|
+
"@config.bodyContent"
|
|
2562
|
+
]
|
|
2563
|
+
]
|
|
2564
|
+
]
|
|
2565
|
+
]
|
|
2566
|
+
],
|
|
2567
|
+
"event": "RecordItemLoaded",
|
|
2568
|
+
"eventId": "evt_01M11G7GKTPSHKRVR2KJCCXH83",
|
|
2569
|
+
"from": "viewing",
|
|
2570
|
+
"to": "viewing"
|
|
2571
|
+
},
|
|
2572
|
+
{
|
|
2573
|
+
"effects": [
|
|
2574
|
+
[
|
|
2575
|
+
"set",
|
|
2576
|
+
"@entity.loadedRow",
|
|
2577
|
+
[
|
|
2578
|
+
"array/first",
|
|
2579
|
+
"@payload.data"
|
|
2580
|
+
]
|
|
2581
|
+
],
|
|
2582
|
+
[
|
|
2583
|
+
"set",
|
|
2584
|
+
"@entity.id",
|
|
2585
|
+
[
|
|
2586
|
+
"object/get",
|
|
2587
|
+
[
|
|
2588
|
+
"array/first",
|
|
2589
|
+
"@payload.data"
|
|
2590
|
+
],
|
|
2591
|
+
"id"
|
|
2592
|
+
]
|
|
2593
|
+
],
|
|
2594
|
+
[
|
|
2595
|
+
"set",
|
|
2596
|
+
"@entity.name",
|
|
2597
|
+
[
|
|
2598
|
+
"object/get",
|
|
2599
|
+
[
|
|
2600
|
+
"array/first",
|
|
2601
|
+
"@payload.data"
|
|
2602
|
+
],
|
|
2603
|
+
"@config.titleField"
|
|
2604
|
+
]
|
|
2605
|
+
],
|
|
2606
|
+
[
|
|
2607
|
+
"set",
|
|
2608
|
+
"@entity.description",
|
|
2609
|
+
[
|
|
2610
|
+
"str/default",
|
|
2611
|
+
[
|
|
2612
|
+
"object/get",
|
|
2613
|
+
[
|
|
2614
|
+
"array/first",
|
|
2615
|
+
"@payload.data"
|
|
2616
|
+
],
|
|
2617
|
+
"@config.subtitleField"
|
|
2618
|
+
],
|
|
2619
|
+
""
|
|
2620
|
+
]
|
|
2621
|
+
],
|
|
2622
|
+
[
|
|
2623
|
+
"set",
|
|
2624
|
+
"@entity.content",
|
|
2625
|
+
[
|
|
2626
|
+
"object/get",
|
|
2627
|
+
[
|
|
2628
|
+
"array/first",
|
|
2629
|
+
"@payload.data"
|
|
2630
|
+
],
|
|
2631
|
+
"@config.contentField"
|
|
2632
|
+
]
|
|
2633
|
+
],
|
|
2634
|
+
[
|
|
2635
|
+
"if",
|
|
2636
|
+
[
|
|
2637
|
+
"=",
|
|
2638
|
+
"@config.detailLook",
|
|
2639
|
+
"document"
|
|
2640
|
+
],
|
|
2641
|
+
[
|
|
2642
|
+
"render-ui",
|
|
2643
|
+
"main",
|
|
2644
|
+
"@config.documentBodyContent"
|
|
2645
|
+
],
|
|
2646
|
+
[
|
|
2647
|
+
"if",
|
|
2648
|
+
[
|
|
2649
|
+
"=",
|
|
2650
|
+
"@config.detailLook",
|
|
2651
|
+
"slide-over"
|
|
2652
|
+
],
|
|
2653
|
+
[
|
|
2654
|
+
"render-ui",
|
|
2655
|
+
"main",
|
|
2656
|
+
"@config.slideOverBodyContent"
|
|
2657
|
+
],
|
|
2658
|
+
[
|
|
2659
|
+
"if",
|
|
2660
|
+
[
|
|
2661
|
+
"=",
|
|
2662
|
+
"@config.detailLook",
|
|
2663
|
+
"page"
|
|
2664
|
+
],
|
|
2665
|
+
[
|
|
2666
|
+
"render-ui",
|
|
2667
|
+
"main",
|
|
2668
|
+
"@config.pageBodyContent"
|
|
2669
|
+
],
|
|
2670
|
+
[
|
|
2671
|
+
"render-ui",
|
|
2672
|
+
"main",
|
|
2673
|
+
"@config.bodyContent"
|
|
2674
|
+
]
|
|
2675
|
+
]
|
|
2676
|
+
]
|
|
2677
|
+
]
|
|
2678
|
+
],
|
|
2679
|
+
"event": "RecordItemSlugLoaded",
|
|
2680
|
+
"eventId": "evt_01M13GHEP2SC7P69RWYXYACGK1",
|
|
2681
|
+
"from": "viewing",
|
|
2682
|
+
"guard": [
|
|
2683
|
+
">",
|
|
2684
|
+
[
|
|
2685
|
+
"array/len",
|
|
2686
|
+
"@payload.data"
|
|
2687
|
+
],
|
|
2688
|
+
0.0
|
|
2689
|
+
],
|
|
2690
|
+
"to": "viewing"
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
"effects": [
|
|
2694
|
+
[
|
|
2695
|
+
"render-ui",
|
|
2696
|
+
"main",
|
|
2697
|
+
{
|
|
2698
|
+
"description": "No record matches this address.",
|
|
2699
|
+
"icon": "search-x",
|
|
2700
|
+
"title": "Not found",
|
|
2701
|
+
"type": "empty-state"
|
|
2702
|
+
}
|
|
2703
|
+
]
|
|
2704
|
+
],
|
|
2705
|
+
"event": "RecordItemSlugLoaded",
|
|
2706
|
+
"eventId": "evt_01M13GHEP2SC7P69RWYXYACGK1",
|
|
2707
|
+
"from": "viewing",
|
|
2708
|
+
"guard": [
|
|
2709
|
+
"=",
|
|
2710
|
+
[
|
|
2711
|
+
"array/len",
|
|
2712
|
+
"@payload.data"
|
|
2713
|
+
],
|
|
2714
|
+
0.0
|
|
2715
|
+
],
|
|
2716
|
+
"to": "error"
|
|
2717
|
+
},
|
|
2718
|
+
{
|
|
2719
|
+
"effects": [
|
|
2720
|
+
[
|
|
2721
|
+
"render-ui",
|
|
2722
|
+
"main",
|
|
2723
|
+
"@config.documentEditingContent"
|
|
2724
|
+
]
|
|
2725
|
+
],
|
|
2726
|
+
"event": "EDIT_CONTENT",
|
|
2727
|
+
"eventId": "evt_01M13GHEP20FNRMC2TMPGE7EFF",
|
|
2728
|
+
"from": "viewing",
|
|
2729
|
+
"to": "editing"
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"effects": [
|
|
2733
|
+
[
|
|
2734
|
+
"set",
|
|
2735
|
+
"@entity.name",
|
|
2736
|
+
"@payload.title"
|
|
2737
|
+
],
|
|
2738
|
+
[
|
|
2739
|
+
"set",
|
|
2740
|
+
"@entity.loadedRow",
|
|
2741
|
+
[
|
|
2742
|
+
"object/set",
|
|
2743
|
+
"@entity.loadedRow",
|
|
2744
|
+
"@config.titleField",
|
|
2745
|
+
"@payload.title"
|
|
2746
|
+
]
|
|
2747
|
+
]
|
|
2748
|
+
],
|
|
2749
|
+
"event": "TITLE_COMMITTED",
|
|
2750
|
+
"eventId": "evt_01M13GHEP2HNQNFBSM1VQG2KR6",
|
|
2751
|
+
"from": "viewing",
|
|
2752
|
+
"to": "viewing"
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
"effects": [
|
|
2756
|
+
[
|
|
2757
|
+
"render-ui",
|
|
2758
|
+
"main",
|
|
2759
|
+
{
|
|
2760
|
+
"message": "@payload.error",
|
|
2761
|
+
"title": "Couldn't load this record",
|
|
2762
|
+
"type": "alert",
|
|
2763
|
+
"variant": "error"
|
|
2764
|
+
}
|
|
2765
|
+
]
|
|
2766
|
+
],
|
|
2767
|
+
"event": "RecordItemLoadFailed",
|
|
2768
|
+
"eventId": "evt_01M11G7GKTW27F8E4B51MZXT3J",
|
|
2769
|
+
"from": "viewing",
|
|
2770
|
+
"to": "error"
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
"effects": [
|
|
2774
|
+
[
|
|
2775
|
+
"render-ui",
|
|
2776
|
+
"main",
|
|
2777
|
+
null
|
|
2778
|
+
]
|
|
2779
|
+
],
|
|
2780
|
+
"event": "CLOSE_VIEW",
|
|
2781
|
+
"eventId": "evt_01M11JRVVZ5NTTZVC714X45YET",
|
|
2782
|
+
"from": "viewing",
|
|
2783
|
+
"to": "idle"
|
|
2784
|
+
},
|
|
2785
|
+
{
|
|
2786
|
+
"effects": [
|
|
2787
|
+
[
|
|
2788
|
+
"set",
|
|
2789
|
+
"@entity.id",
|
|
2790
|
+
"@payload.id"
|
|
2791
|
+
],
|
|
2792
|
+
[
|
|
2793
|
+
"set",
|
|
2794
|
+
"@entity.openDraft",
|
|
2795
|
+
[
|
|
2796
|
+
"str/default",
|
|
2797
|
+
"@payload.draft",
|
|
2798
|
+
""
|
|
2799
|
+
]
|
|
2800
|
+
],
|
|
2801
|
+
[
|
|
2802
|
+
"fetch",
|
|
2803
|
+
"RecordItem",
|
|
2804
|
+
{
|
|
2805
|
+
"emit": {
|
|
2806
|
+
"failure": "RecordItemLoadFailed",
|
|
2807
|
+
"success": "RecordItemLoaded"
|
|
2808
|
+
},
|
|
2809
|
+
"id": "@payload.id",
|
|
2810
|
+
"include": "@config.include"
|
|
2811
|
+
}
|
|
2812
|
+
],
|
|
2813
|
+
[
|
|
2814
|
+
"render-ui",
|
|
2815
|
+
"main",
|
|
2816
|
+
{
|
|
2817
|
+
"rows": 4.0,
|
|
2818
|
+
"type": "skeleton"
|
|
2819
|
+
}
|
|
2820
|
+
]
|
|
2821
|
+
],
|
|
2822
|
+
"event": "INIT",
|
|
2823
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
2824
|
+
"from": "error",
|
|
2825
|
+
"guard": [
|
|
2826
|
+
"!=",
|
|
2827
|
+
[
|
|
2828
|
+
"str/default",
|
|
2829
|
+
"@payload.id",
|
|
2830
|
+
""
|
|
2831
|
+
],
|
|
2832
|
+
""
|
|
2833
|
+
],
|
|
2834
|
+
"to": "loading"
|
|
2835
|
+
},
|
|
2836
|
+
{
|
|
2837
|
+
"effects": [
|
|
2838
|
+
[
|
|
2839
|
+
"set",
|
|
2840
|
+
"@entity.slug",
|
|
2841
|
+
"@payload.slug"
|
|
2842
|
+
],
|
|
2843
|
+
[
|
|
2844
|
+
"set",
|
|
2845
|
+
"@entity.openDraft",
|
|
2846
|
+
[
|
|
2847
|
+
"str/default",
|
|
2848
|
+
"@payload.draft",
|
|
2849
|
+
""
|
|
2850
|
+
]
|
|
2851
|
+
],
|
|
2852
|
+
[
|
|
2853
|
+
"fetch",
|
|
2854
|
+
"RecordItem",
|
|
2855
|
+
{
|
|
2856
|
+
"emit": {
|
|
2857
|
+
"failure": "RecordItemLoadFailed",
|
|
2858
|
+
"success": "RecordItemSlugLoaded"
|
|
2859
|
+
},
|
|
2860
|
+
"filter": [
|
|
2861
|
+
"=",
|
|
2862
|
+
[
|
|
2863
|
+
"object/get",
|
|
2864
|
+
"@entity",
|
|
2865
|
+
"slug"
|
|
2866
|
+
],
|
|
2867
|
+
"@payload.slug"
|
|
2868
|
+
],
|
|
2869
|
+
"include": "@config.include"
|
|
2870
|
+
}
|
|
2871
|
+
],
|
|
2872
|
+
[
|
|
2873
|
+
"render-ui",
|
|
2874
|
+
"main",
|
|
2875
|
+
{
|
|
2876
|
+
"rows": 4.0,
|
|
2877
|
+
"type": "skeleton"
|
|
2878
|
+
}
|
|
2879
|
+
]
|
|
2880
|
+
],
|
|
2881
|
+
"event": "INIT",
|
|
2882
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
2883
|
+
"from": "error",
|
|
2884
|
+
"guard": [
|
|
2885
|
+
"and",
|
|
2886
|
+
[
|
|
2887
|
+
"=",
|
|
2888
|
+
[
|
|
2889
|
+
"str/default",
|
|
2890
|
+
"@payload.id",
|
|
2891
|
+
""
|
|
2892
|
+
],
|
|
2893
|
+
""
|
|
2894
|
+
],
|
|
2895
|
+
[
|
|
2896
|
+
"!=",
|
|
2897
|
+
[
|
|
2898
|
+
"str/default",
|
|
2899
|
+
"@payload.slug",
|
|
2900
|
+
""
|
|
2901
|
+
],
|
|
2902
|
+
""
|
|
2903
|
+
]
|
|
2904
|
+
],
|
|
2905
|
+
"to": "loading"
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
"effects": [
|
|
2909
|
+
[
|
|
2910
|
+
"fetch",
|
|
2911
|
+
"RecordItem",
|
|
2912
|
+
{
|
|
2913
|
+
"emit": {
|
|
2914
|
+
"failure": "RecordItemLoadFailed",
|
|
2915
|
+
"success": "RecordItemLoaded"
|
|
2916
|
+
},
|
|
2917
|
+
"id": "@entity.id",
|
|
2918
|
+
"include": "@config.include"
|
|
2919
|
+
}
|
|
2920
|
+
],
|
|
2921
|
+
[
|
|
2922
|
+
"render-ui",
|
|
2923
|
+
"main",
|
|
2924
|
+
{
|
|
2925
|
+
"rows": 4.0,
|
|
2926
|
+
"type": "skeleton"
|
|
2927
|
+
}
|
|
2928
|
+
]
|
|
2929
|
+
],
|
|
2930
|
+
"event": "RETRY",
|
|
2931
|
+
"eventId": "evt_01M11G7GKT3BDT1MGPXJQ3AZPK",
|
|
2932
|
+
"from": "error",
|
|
2933
|
+
"to": "loading"
|
|
2934
|
+
}
|
|
2935
|
+
]
|
|
2936
|
+
}
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
"category": "interaction",
|
|
2940
|
+
"config": {
|
|
2941
|
+
"detailsContent": {
|
|
2942
|
+
"default": {
|
|
2943
|
+
"entity": "@entity.loadedRow",
|
|
2944
|
+
"fields": "@config.metaFields",
|
|
2945
|
+
"title": "@config.detailsTitle",
|
|
2946
|
+
"type": "document-details"
|
|
2947
|
+
},
|
|
2948
|
+
"description": "Render-ui SExpr painted into the drawer slot on OPEN_DETAILS; binds the row stashed by SHOW_DETAILS. Info-only by default — no metaCommitEvent, so every row displays rather than edits (editing rides the document's actions menu). Override at the call site to extend the panel or to opt into in-place commits via metaCommitEvent: META_CHANGE.",
|
|
2949
|
+
"label": "Details drawer content tree",
|
|
2950
|
+
"tier": "internal",
|
|
2951
|
+
"type": "render-ui"
|
|
2952
|
+
},
|
|
2953
|
+
"detailsTitle": {
|
|
2954
|
+
"default": "Details",
|
|
2955
|
+
"description": "Heading of the settings card (e.g. Details, Page info, Document settings).",
|
|
2956
|
+
"label": "Details drawer heading",
|
|
2957
|
+
"tier": "presentation",
|
|
2958
|
+
"type": "string"
|
|
2959
|
+
},
|
|
2960
|
+
"metaFields": {
|
|
2961
|
+
"default": [],
|
|
2962
|
+
"description": "The record's metadata shown as read-only INFO in the details drawer (Updated, address, status, …). Editing metadata is a normal action under the document's menu, not an inline affordance here.",
|
|
2963
|
+
"items": {
|
|
2964
|
+
"properties": {
|
|
2965
|
+
"format": {
|
|
2966
|
+
"name": "format",
|
|
2967
|
+
"required": false,
|
|
2968
|
+
"type": "string",
|
|
2969
|
+
"values": [
|
|
2970
|
+
"date",
|
|
2971
|
+
"currency",
|
|
2972
|
+
"number",
|
|
2973
|
+
"boolean",
|
|
2974
|
+
"percent"
|
|
2975
|
+
]
|
|
2976
|
+
},
|
|
2977
|
+
"icon": {
|
|
2978
|
+
"name": "icon",
|
|
2979
|
+
"required": false,
|
|
2980
|
+
"type": "string"
|
|
2981
|
+
},
|
|
2982
|
+
"key": {
|
|
2983
|
+
"name": "key",
|
|
2984
|
+
"required": true,
|
|
2985
|
+
"type": "string"
|
|
2986
|
+
},
|
|
2987
|
+
"kind": {
|
|
2988
|
+
"name": "kind",
|
|
2989
|
+
"required": false,
|
|
2990
|
+
"type": "string",
|
|
2991
|
+
"values": [
|
|
2992
|
+
"text",
|
|
2993
|
+
"boolean",
|
|
2994
|
+
"select",
|
|
2995
|
+
"readonly"
|
|
2996
|
+
]
|
|
2997
|
+
},
|
|
2998
|
+
"label": {
|
|
2999
|
+
"name": "label",
|
|
3000
|
+
"required": false,
|
|
3001
|
+
"type": "string"
|
|
3002
|
+
},
|
|
3003
|
+
"options": {
|
|
3004
|
+
"items": {
|
|
3005
|
+
"type": "string"
|
|
3006
|
+
},
|
|
3007
|
+
"name": "options",
|
|
3008
|
+
"required": false,
|
|
3009
|
+
"type": "array"
|
|
3010
|
+
}
|
|
3011
|
+
},
|
|
3012
|
+
"type": "object"
|
|
3013
|
+
},
|
|
3014
|
+
"label": "Which metadata properties appear in the details drawer?",
|
|
3015
|
+
"synonyms": "properties, metadata fields, document info, page info, front matter",
|
|
3016
|
+
"tier": "presentation",
|
|
3017
|
+
"type": "[MetaFieldSpec]"
|
|
3018
|
+
}
|
|
3019
|
+
},
|
|
3020
|
+
"emits": [
|
|
3021
|
+
{
|
|
3022
|
+
"description": "A property in the settings rail committed in place; patch carries the row id plus the one changed field, ready to hand straight to a persist update. Quiet contract: the host persists without refetching or repainting the open document.",
|
|
3023
|
+
"event": "META_SAVED",
|
|
3024
|
+
"eventId": "evt_01M13SSYQCNDB0GT52GRWMT45Z",
|
|
3025
|
+
"payloadSchema": [
|
|
3026
|
+
{
|
|
3027
|
+
"name": "id",
|
|
3028
|
+
"required": true,
|
|
3029
|
+
"type": "string"
|
|
3030
|
+
},
|
|
3031
|
+
{
|
|
3032
|
+
"name": "patch",
|
|
3033
|
+
"properties": [
|
|
3034
|
+
{
|
|
3035
|
+
"name": "id",
|
|
3036
|
+
"required": true,
|
|
3037
|
+
"type": "string"
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
"name": "name",
|
|
3041
|
+
"required": true,
|
|
3042
|
+
"type": "string"
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
"name": "description",
|
|
3046
|
+
"type": "string"
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
"name": "status",
|
|
3050
|
+
"type": "string"
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
"name": "slug",
|
|
3054
|
+
"type": "string"
|
|
3055
|
+
},
|
|
3056
|
+
{
|
|
3057
|
+
"name": "content",
|
|
3058
|
+
"type": "string"
|
|
3059
|
+
},
|
|
3060
|
+
{
|
|
3061
|
+
"name": "loadedRow",
|
|
3062
|
+
"type": "object"
|
|
3063
|
+
},
|
|
3064
|
+
{
|
|
3065
|
+
"name": "openDraft",
|
|
3066
|
+
"type": "string"
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
"name": "createdAt",
|
|
3070
|
+
"type": "string"
|
|
3071
|
+
}
|
|
3072
|
+
],
|
|
3073
|
+
"type": "object"
|
|
3074
|
+
}
|
|
3075
|
+
],
|
|
3076
|
+
"scope": "external",
|
|
3077
|
+
"synonyms": "property saved, metadata changed, field committed, update property",
|
|
3078
|
+
"tier": "domain"
|
|
3079
|
+
}
|
|
3080
|
+
],
|
|
3081
|
+
"entityContract": {
|
|
3082
|
+
"provides": [
|
|
3083
|
+
"loadedRow"
|
|
3084
|
+
],
|
|
3085
|
+
"requires": []
|
|
3086
|
+
},
|
|
3087
|
+
"entityRebindable": true,
|
|
3088
|
+
"entityRefIds": {
|
|
3089
|
+
"RecordItem": "ent_01M11G7GKTBPP8VHM2QHYFXK9A"
|
|
3090
|
+
},
|
|
3091
|
+
"id": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
3092
|
+
"linkedEntity": "RecordItem",
|
|
3093
|
+
"linkedEntityId": "ent_01M11G7GKTBPP8VHM2QHYFXK9A",
|
|
3094
|
+
"name": "RecordItemDetails",
|
|
3095
|
+
"scope": "instance",
|
|
3096
|
+
"stateMachine": {
|
|
3097
|
+
"events": [
|
|
3098
|
+
{
|
|
3099
|
+
"id": "evt_01M13SSYQCH4EXYN1GGHYYTTRX",
|
|
3100
|
+
"key": "INIT",
|
|
3101
|
+
"name": "Initialize"
|
|
3102
|
+
},
|
|
3103
|
+
{
|
|
3104
|
+
"description": "The document finished loading; stash the row the details drawer will show. Hosts route the doc trait's RecordItemLoaded (or SlugLoaded first element) here.",
|
|
3105
|
+
"id": "evt_01M13SSYQCDN81Z9CE4Q3BRD2C",
|
|
3106
|
+
"key": "SHOW_DETAILS",
|
|
3107
|
+
"name": "Show Details",
|
|
3108
|
+
"payloadSchema": [
|
|
3109
|
+
{
|
|
3110
|
+
"name": "data",
|
|
3111
|
+
"type": "RecordItem"
|
|
3112
|
+
}
|
|
3113
|
+
],
|
|
3114
|
+
"synonyms": "record loaded, show metadata, populate details",
|
|
3115
|
+
"tier": "domain"
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
"description": "Open the details drawer. Hosts route the document's Details action (e.g. Doc.VIEW_INFO) here.",
|
|
3119
|
+
"id": "evt_01M14AQ4NXY91EPYCZ5QSJ8FP0",
|
|
3120
|
+
"key": "OPEN_DETAILS",
|
|
3121
|
+
"name": "Open Details",
|
|
3122
|
+
"payloadSchema": [
|
|
3123
|
+
{
|
|
3124
|
+
"name": "id",
|
|
3125
|
+
"type": "string"
|
|
3126
|
+
}
|
|
3127
|
+
],
|
|
3128
|
+
"synonyms": "show info, open details, document info, page info",
|
|
3129
|
+
"tier": "presentation"
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
"description": "A property in the settings rail committed in place; patch carries the row id plus the one changed field, ready to hand straight to a persist update. Quiet contract: the host persists without refetching or repainting the open document.",
|
|
3133
|
+
"id": "evt_01M13SSYQCNDB0GT52GRWMT45Z",
|
|
3134
|
+
"key": "META_SAVED",
|
|
3135
|
+
"name": "Meta Saved",
|
|
3136
|
+
"payloadSchema": [
|
|
3137
|
+
{
|
|
3138
|
+
"name": "id",
|
|
3139
|
+
"required": true,
|
|
3140
|
+
"type": "string"
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
"name": "patch",
|
|
3144
|
+
"properties": [
|
|
3145
|
+
{
|
|
3146
|
+
"name": "id",
|
|
3147
|
+
"required": true,
|
|
3148
|
+
"type": "string"
|
|
3149
|
+
},
|
|
3150
|
+
{
|
|
3151
|
+
"name": "name",
|
|
3152
|
+
"required": true,
|
|
3153
|
+
"type": "string"
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
"name": "description",
|
|
3157
|
+
"type": "string"
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
"name": "status",
|
|
3161
|
+
"type": "string"
|
|
3162
|
+
},
|
|
3163
|
+
{
|
|
3164
|
+
"name": "slug",
|
|
3165
|
+
"type": "string"
|
|
3166
|
+
},
|
|
3167
|
+
{
|
|
3168
|
+
"name": "content",
|
|
3169
|
+
"type": "string"
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
"name": "loadedRow",
|
|
3173
|
+
"type": "object"
|
|
3174
|
+
},
|
|
3175
|
+
{
|
|
3176
|
+
"name": "openDraft",
|
|
3177
|
+
"type": "string"
|
|
3178
|
+
},
|
|
3179
|
+
{
|
|
3180
|
+
"name": "createdAt",
|
|
3181
|
+
"type": "string"
|
|
3182
|
+
}
|
|
3183
|
+
],
|
|
3184
|
+
"type": "object"
|
|
3185
|
+
}
|
|
3186
|
+
],
|
|
3187
|
+
"synonyms": "property saved, metadata changed, field committed, update property",
|
|
3188
|
+
"tier": "domain"
|
|
3189
|
+
},
|
|
3190
|
+
{
|
|
3191
|
+
"description": "Close the details drawer; the drawer chrome's X / backdrop dismiss emits this.",
|
|
3192
|
+
"id": "evt_01M14AQ4NX83G6JYADSC4FPBR9",
|
|
3193
|
+
"key": "CLOSE",
|
|
3194
|
+
"name": "Close",
|
|
3195
|
+
"payloadSchema": [
|
|
3196
|
+
{
|
|
3197
|
+
"name": "id",
|
|
3198
|
+
"type": "string"
|
|
3199
|
+
}
|
|
3200
|
+
],
|
|
3201
|
+
"synonyms": "dismiss, close drawer, hide details",
|
|
3202
|
+
"tier": "presentation"
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
"description": "A property in the rail committed (switch toggled, select changed, text blurred).",
|
|
3206
|
+
"id": "evt_01M13SSYQC70A5E0NP28BRK390",
|
|
3207
|
+
"key": "META_CHANGE",
|
|
3208
|
+
"name": "Meta Change",
|
|
3209
|
+
"payloadSchema": [
|
|
3210
|
+
{
|
|
3211
|
+
"name": "id",
|
|
3212
|
+
"type": "string"
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
"name": "patch",
|
|
3216
|
+
"type": "RecordItem"
|
|
3217
|
+
}
|
|
3218
|
+
],
|
|
3219
|
+
"synonyms": "property changed, metadata edited, field committed",
|
|
3220
|
+
"tier": "domain"
|
|
3221
|
+
}
|
|
3222
|
+
],
|
|
3223
|
+
"states": [
|
|
3224
|
+
{
|
|
3225
|
+
"isInitial": true,
|
|
3226
|
+
"name": "idle"
|
|
3227
|
+
},
|
|
3228
|
+
{
|
|
3229
|
+
"name": "showing"
|
|
3230
|
+
}
|
|
3231
|
+
],
|
|
3232
|
+
"transitions": [
|
|
3233
|
+
{
|
|
3234
|
+
"event": "INIT",
|
|
3235
|
+
"eventId": "evt_01M13SSYQCH4EXYN1GGHYYTTRX",
|
|
3236
|
+
"from": "idle",
|
|
3237
|
+
"to": "idle"
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
"effects": [
|
|
3241
|
+
[
|
|
3242
|
+
"set",
|
|
3243
|
+
"@entity.loadedRow",
|
|
3244
|
+
[
|
|
3245
|
+
"object/merge",
|
|
3246
|
+
"@payload.data",
|
|
3247
|
+
{}
|
|
3248
|
+
]
|
|
3249
|
+
]
|
|
3250
|
+
],
|
|
3251
|
+
"event": "SHOW_DETAILS",
|
|
3252
|
+
"eventId": "evt_01M13SSYQCDN81Z9CE4Q3BRD2C",
|
|
3253
|
+
"from": "idle",
|
|
3254
|
+
"to": "idle"
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
"effects": [
|
|
3258
|
+
[
|
|
3259
|
+
"render-ui",
|
|
3260
|
+
"drawer",
|
|
3261
|
+
"@config.detailsContent"
|
|
3262
|
+
]
|
|
3263
|
+
],
|
|
3264
|
+
"event": "OPEN_DETAILS",
|
|
3265
|
+
"eventId": "evt_01M14AQ4NXY91EPYCZ5QSJ8FP0",
|
|
3266
|
+
"from": "idle",
|
|
3267
|
+
"to": "showing"
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
"event": "META_SAVED",
|
|
3271
|
+
"eventId": "evt_01M13SSYQCNDB0GT52GRWMT45Z",
|
|
3272
|
+
"from": "idle",
|
|
3273
|
+
"to": "idle"
|
|
3274
|
+
},
|
|
3275
|
+
{
|
|
3276
|
+
"effects": [
|
|
3277
|
+
[
|
|
3278
|
+
"set",
|
|
3279
|
+
"@entity.loadedRow",
|
|
3280
|
+
[
|
|
3281
|
+
"object/merge",
|
|
3282
|
+
"@payload.data",
|
|
3283
|
+
{}
|
|
3284
|
+
]
|
|
3285
|
+
],
|
|
3286
|
+
[
|
|
3287
|
+
"render-ui",
|
|
3288
|
+
"drawer",
|
|
3289
|
+
"@config.detailsContent"
|
|
3290
|
+
]
|
|
3291
|
+
],
|
|
3292
|
+
"event": "SHOW_DETAILS",
|
|
3293
|
+
"eventId": "evt_01M13SSYQCDN81Z9CE4Q3BRD2C",
|
|
3294
|
+
"from": "showing",
|
|
3295
|
+
"to": "showing"
|
|
3296
|
+
},
|
|
3297
|
+
{
|
|
3298
|
+
"effects": [
|
|
3299
|
+
[
|
|
3300
|
+
"render-ui",
|
|
3301
|
+
"drawer",
|
|
3302
|
+
"@config.detailsContent"
|
|
3303
|
+
]
|
|
3304
|
+
],
|
|
3305
|
+
"event": "OPEN_DETAILS",
|
|
3306
|
+
"eventId": "evt_01M14AQ4NXY91EPYCZ5QSJ8FP0",
|
|
3307
|
+
"from": "showing",
|
|
3308
|
+
"to": "showing"
|
|
3309
|
+
},
|
|
3310
|
+
{
|
|
3311
|
+
"effects": [
|
|
3312
|
+
[
|
|
3313
|
+
"render-ui",
|
|
3314
|
+
"drawer",
|
|
3315
|
+
null
|
|
3316
|
+
]
|
|
3317
|
+
],
|
|
3318
|
+
"event": "CLOSE",
|
|
3319
|
+
"eventId": "evt_01M14AQ4NX83G6JYADSC4FPBR9",
|
|
3320
|
+
"from": "showing",
|
|
3321
|
+
"to": "idle"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
"effects": [
|
|
3325
|
+
[
|
|
3326
|
+
"render-ui",
|
|
3327
|
+
"drawer",
|
|
3328
|
+
null
|
|
3329
|
+
]
|
|
3330
|
+
],
|
|
3331
|
+
"event": "INIT",
|
|
3332
|
+
"eventId": "evt_01M13SSYQCH4EXYN1GGHYYTTRX",
|
|
3333
|
+
"from": "showing",
|
|
3334
|
+
"to": "idle"
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
"effects": [
|
|
3338
|
+
[
|
|
3339
|
+
"emit",
|
|
3340
|
+
"META_SAVED",
|
|
3341
|
+
{
|
|
3342
|
+
"id": "@payload.id",
|
|
3343
|
+
"patch": "@payload.patch"
|
|
3344
|
+
}
|
|
3345
|
+
]
|
|
3346
|
+
],
|
|
3347
|
+
"event": "META_CHANGE",
|
|
3348
|
+
"eventId": "evt_01M13SSYQC70A5E0NP28BRK390",
|
|
3349
|
+
"from": "showing",
|
|
3350
|
+
"to": "showing"
|
|
1132
3351
|
}
|
|
1133
3352
|
]
|
|
1134
3353
|
}
|