@almadar/std 16.187.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 +4 -4
- package/behaviors/lolo/ui/core/atoms/std-board.lolo +138 -4
- package/behaviors/lolo/ui/core/atoms/std-browse.lolo +148 -8
- package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +161 -11
- package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +255 -2
- package/behaviors/lolo/ui/core/atoms/std-gallery.lolo +148 -1
- package/behaviors/lolo/ui/core/atoms/std-list.lolo +193 -1
- package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +731 -0
- package/behaviors/lolo/ui/core/atoms/std-related.lolo +5 -1
- package/behaviors/lolo/ui/core/atoms/std-selection.lolo +182 -1
- package/behaviors/lolo/ui/core/atoms/std-tree.lolo +113 -3
- 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-area-fill.lolo +93 -0
- 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-loop-lock.lolo +79 -0
- package/behaviors/lolo/ui/game/atoms/std-pad-lock.lolo +97 -0
- package/behaviors/lolo/ui/game/atoms/std-patrol-hazard.lolo +14 -7
- package/behaviors/lolo/ui/game/atoms/std-platformer-body.lolo +48 -5
- package/behaviors/lolo/ui/game/atoms/std-velocity-gate.lolo +101 -0
- 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/infra/atoms/std-approval-gate.orb +16 -8
- package/behaviors/registry/infra/atoms/std-cache-aside.orb +62 -31
- package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +32 -16
- package/behaviors/registry/infra/atoms/std-data-erasure.orb +16 -8
- package/behaviors/registry/infra/atoms/std-mod-queue.orb +16 -8
- package/behaviors/registry/infra/atoms/std-rate-limiter.orb +28 -14
- package/behaviors/registry/infra/organisms/std-status-lifecycle-control.orb +2 -1
- package/behaviors/registry/ml/organisms/std-escalating-decision.orb +10 -5
- package/behaviors/registry/ml/organisms/std-knowledge-tracing.orb +4 -2
- package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +2 -1
- package/behaviors/registry/ui/core/atoms/std-board.orb +355 -2
- package/behaviors/registry/ui/core/atoms/std-browse.orb +304 -31
- package/behaviors/registry/ui/core/atoms/std-calendar.orb +393 -25
- package/behaviors/registry/ui/core/atoms/std-dashboard-grid-embedded.orb +2 -1
- package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +4 -2
- package/behaviors/registry/ui/core/atoms/std-esign-request.orb +6 -3
- package/behaviors/registry/ui/core/atoms/std-event-log.orb +773 -0
- package/behaviors/registry/ui/core/atoms/std-export.orb +4 -2
- package/behaviors/registry/ui/core/atoms/std-gallery.orb +390 -0
- package/behaviors/registry/ui/core/atoms/std-import.orb +4 -2
- package/behaviors/registry/ui/core/atoms/std-list.orb +451 -0
- package/behaviors/registry/ui/core/atoms/std-record-detail.orb +3360 -0
- package/behaviors/registry/ui/core/atoms/std-related.orb +23 -1
- package/behaviors/registry/ui/core/atoms/std-selection.orb +436 -0
- package/behaviors/registry/ui/core/atoms/std-tree.orb +292 -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-area-fill.orb +955 -0
- 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-fx-trail.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-gate-lock.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-lives.orb +1 -1
- package/behaviors/registry/ui/game/atoms/std-loop-lock.orb +785 -0
- package/behaviors/registry/ui/game/atoms/std-pad-lock.orb +933 -0
- package/behaviors/registry/ui/game/atoms/std-patrol-hazard.orb +190 -44
- package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +1330 -653
- package/behaviors/registry/ui/game/atoms/std-velocity-gate.orb +1040 -0
- package/behaviors/registry/ui/game/atoms/std-zone-card.orb +642 -0
- package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +6 -3
- package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +10 -5
- package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +36 -1
- package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +12 -6
- package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-worldmap-board-2d.orb +6 -3
- package/behaviors/registry/ui/learning/atoms/std-learn-slope-probe.orb +1 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-article.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-footer.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-split.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-stats.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-steps.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-team.orb +2 -1
- package/dist/behaviors/exports-reader.js +10971 -6255
- package/dist/behaviors/functions/index.d.ts +1205 -256
- package/dist/behaviors/functions/index.js +10932 -6245
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +10972 -6256
- package/dist/behaviors/query.js +10971 -6255
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +485 -469
- package/dist/behaviors-registry.json +6125 -2940
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10972 -6256
- 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
|
@@ -0,0 +1,3360 @@
|
|
|
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 (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
|
+
"ledger": {
|
|
4
|
+
"entries": {
|
|
5
|
+
"ent_01M11G7GKTBPP8VHM2QHYFXK9A": {
|
|
6
|
+
"bakedName": "RecordItem",
|
|
7
|
+
"curName": "RecordItem",
|
|
8
|
+
"id": "ent_01M11G7GKTBPP8VHM2QHYFXK9A",
|
|
9
|
+
"kind": "entity",
|
|
10
|
+
"owner": "workspace",
|
|
11
|
+
"renames": []
|
|
12
|
+
},
|
|
13
|
+
"evt_01M11G7GKT2W4J3T30YBM3SFZV": {
|
|
14
|
+
"bakedName": "EDIT",
|
|
15
|
+
"curName": "EDIT",
|
|
16
|
+
"id": "evt_01M11G7GKT2W4J3T30YBM3SFZV",
|
|
17
|
+
"kind": "event",
|
|
18
|
+
"owner": "workspace",
|
|
19
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
20
|
+
"renames": []
|
|
21
|
+
},
|
|
22
|
+
"evt_01M11G7GKT3BDT1MGPXJQ3AZPK": {
|
|
23
|
+
"bakedName": "RETRY",
|
|
24
|
+
"curName": "RETRY",
|
|
25
|
+
"id": "evt_01M11G7GKT3BDT1MGPXJQ3AZPK",
|
|
26
|
+
"kind": "event",
|
|
27
|
+
"owner": "workspace",
|
|
28
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
29
|
+
"renames": []
|
|
30
|
+
},
|
|
31
|
+
"evt_01M11G7GKTCPVY3J7BKGBCXK3T": {
|
|
32
|
+
"bakedName": "DELETE",
|
|
33
|
+
"curName": "DELETE",
|
|
34
|
+
"id": "evt_01M11G7GKTCPVY3J7BKGBCXK3T",
|
|
35
|
+
"kind": "event",
|
|
36
|
+
"owner": "workspace",
|
|
37
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
38
|
+
"renames": []
|
|
39
|
+
},
|
|
40
|
+
"evt_01M11G7GKTPSHKRVR2KJCCXH83": {
|
|
41
|
+
"bakedName": "RecordItemLoaded",
|
|
42
|
+
"curName": "RecordItemLoaded",
|
|
43
|
+
"id": "evt_01M11G7GKTPSHKRVR2KJCCXH83",
|
|
44
|
+
"kind": "event",
|
|
45
|
+
"owner": "workspace",
|
|
46
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
47
|
+
"renames": []
|
|
48
|
+
},
|
|
49
|
+
"evt_01M11G7GKTQS53CSYF3WN812EB": {
|
|
50
|
+
"bakedName": "INIT",
|
|
51
|
+
"curName": "INIT",
|
|
52
|
+
"id": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
53
|
+
"kind": "event",
|
|
54
|
+
"owner": "workspace",
|
|
55
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
56
|
+
"renames": []
|
|
57
|
+
},
|
|
58
|
+
"evt_01M11G7GKTW27F8E4B51MZXT3J": {
|
|
59
|
+
"bakedName": "RecordItemLoadFailed",
|
|
60
|
+
"curName": "RecordItemLoadFailed",
|
|
61
|
+
"id": "evt_01M11G7GKTW27F8E4B51MZXT3J",
|
|
62
|
+
"kind": "event",
|
|
63
|
+
"owner": "workspace",
|
|
64
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
65
|
+
"renames": []
|
|
66
|
+
},
|
|
67
|
+
"evt_01M11JRVVZ5NTTZVC714X45YET": {
|
|
68
|
+
"bakedName": "CLOSE_VIEW",
|
|
69
|
+
"curName": "CLOSE_VIEW",
|
|
70
|
+
"id": "evt_01M11JRVVZ5NTTZVC714X45YET",
|
|
71
|
+
"kind": "event",
|
|
72
|
+
"owner": "workspace",
|
|
73
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
74
|
+
"renames": []
|
|
75
|
+
},
|
|
76
|
+
"evt_01M11JRVVZSRPRJG40FASZ2Q9H": {
|
|
77
|
+
"bakedName": "OPEN_VIEW",
|
|
78
|
+
"curName": "OPEN_VIEW",
|
|
79
|
+
"id": "evt_01M11JRVVZSRPRJG40FASZ2Q9H",
|
|
80
|
+
"kind": "event",
|
|
81
|
+
"owner": "workspace",
|
|
82
|
+
"parent": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
83
|
+
"renames": []
|
|
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
|
+
},
|
|
202
|
+
"orb_01M11G7GKT7RY3DH0JWRPW7G7M": {
|
|
203
|
+
"bakedName": "RecordItemOrbital",
|
|
204
|
+
"curName": "RecordItemOrbital",
|
|
205
|
+
"id": "orb_01M11G7GKT7RY3DH0JWRPW7G7M",
|
|
206
|
+
"kind": "orbital",
|
|
207
|
+
"owner": "workspace",
|
|
208
|
+
"renames": []
|
|
209
|
+
},
|
|
210
|
+
"pag_01M11G7GKTE2460QW8F66B5Z2D": {
|
|
211
|
+
"bakedName": "RecordItemDetailPage",
|
|
212
|
+
"curName": "RecordItemDetailPage",
|
|
213
|
+
"id": "pag_01M11G7GKTE2460QW8F66B5Z2D",
|
|
214
|
+
"kind": "page",
|
|
215
|
+
"owner": "workspace",
|
|
216
|
+
"renames": []
|
|
217
|
+
},
|
|
218
|
+
"trt_01M11G7GKT47CAAQ530NWE10AQ": {
|
|
219
|
+
"bakedName": "RecordItemDetail",
|
|
220
|
+
"curName": "RecordItemDetail",
|
|
221
|
+
"id": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
222
|
+
"kind": "trait",
|
|
223
|
+
"owner": "workspace",
|
|
224
|
+
"renames": []
|
|
225
|
+
},
|
|
226
|
+
"trt_01M13SSYQC6GCVFQK8J7QAS1M7": {
|
|
227
|
+
"bakedName": "RecordItemDetails",
|
|
228
|
+
"curName": "RecordItemDetails",
|
|
229
|
+
"id": "trt_01M13SSYQC6GCVFQK8J7QAS1M7",
|
|
230
|
+
"kind": "trait",
|
|
231
|
+
"owner": "workspace",
|
|
232
|
+
"renames": []
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"schemaVersion": 1
|
|
236
|
+
},
|
|
237
|
+
"name": "std-record-detail",
|
|
238
|
+
"orbitals": [
|
|
239
|
+
{
|
|
240
|
+
"entity": {
|
|
241
|
+
"fields": [
|
|
242
|
+
{
|
|
243
|
+
"name": "id",
|
|
244
|
+
"required": true,
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"description": "The record's title or identifier.",
|
|
249
|
+
"name": "name",
|
|
250
|
+
"required": true,
|
|
251
|
+
"synonyms": "title, label, heading",
|
|
252
|
+
"type": "string"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"description": "A textual explanation or summary of the record.",
|
|
256
|
+
"name": "description",
|
|
257
|
+
"synonyms": "summary, details, notes",
|
|
258
|
+
"type": "string"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"default": "active",
|
|
262
|
+
"description": "The record's current state.",
|
|
263
|
+
"name": "status",
|
|
264
|
+
"synonyms": "state, condition, stage",
|
|
265
|
+
"type": "string",
|
|
266
|
+
"values": [
|
|
267
|
+
"active",
|
|
268
|
+
"inactive",
|
|
269
|
+
"pending"
|
|
270
|
+
]
|
|
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
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "createdAt",
|
|
303
|
+
"type": "string"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"id": "ent_01M11G7GKTBPP8VHM2QHYFXK9A",
|
|
307
|
+
"name": "RecordItem",
|
|
308
|
+
"persistence": "runtime"
|
|
309
|
+
},
|
|
310
|
+
"id": "orb_01M11G7GKT7RY3DH0JWRPW7G7M",
|
|
311
|
+
"name": "RecordItemOrbital",
|
|
312
|
+
"pages": [
|
|
313
|
+
{
|
|
314
|
+
"id": "pag_01M11G7GKTE2460QW8F66B5Z2D",
|
|
315
|
+
"name": "RecordItemDetailPage",
|
|
316
|
+
"path": "/recorditems",
|
|
317
|
+
"traits": [
|
|
318
|
+
{
|
|
319
|
+
"ref": "RecordItemDetail",
|
|
320
|
+
"refId": "trt_01M11G7GKT47CAAQ530NWE10AQ"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"ref": "RecordItemDetails",
|
|
324
|
+
"refId": "trt_01M13SSYQC6GCVFQK8J7QAS1M7"
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"traits": [
|
|
330
|
+
{
|
|
331
|
+
"category": "interaction",
|
|
332
|
+
"config": {
|
|
333
|
+
"actions": {
|
|
334
|
+
"default": [
|
|
335
|
+
{
|
|
336
|
+
"event": "EDIT",
|
|
337
|
+
"label": "Edit",
|
|
338
|
+
"variant": "secondary"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"event": "DELETE",
|
|
342
|
+
"label": "Delete",
|
|
343
|
+
"variant": "danger"
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
"description": "Buttons on the panel header. One primary at most; the rest collapse past maxInlineActions.",
|
|
347
|
+
"items": {
|
|
348
|
+
"properties": {
|
|
349
|
+
"event": {
|
|
350
|
+
"name": "event",
|
|
351
|
+
"required": true,
|
|
352
|
+
"type": "string"
|
|
353
|
+
},
|
|
354
|
+
"icon": {
|
|
355
|
+
"name": "icon",
|
|
356
|
+
"required": false,
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
"label": {
|
|
360
|
+
"name": "label",
|
|
361
|
+
"required": true,
|
|
362
|
+
"type": "string"
|
|
363
|
+
},
|
|
364
|
+
"variant": {
|
|
365
|
+
"name": "variant",
|
|
366
|
+
"required": false,
|
|
367
|
+
"type": "string",
|
|
368
|
+
"values": [
|
|
369
|
+
"primary",
|
|
370
|
+
"secondary",
|
|
371
|
+
"ghost",
|
|
372
|
+
"danger"
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"type": "object"
|
|
377
|
+
},
|
|
378
|
+
"label": "What actions can users take on this record?",
|
|
379
|
+
"synonyms": "record actions, detail actions, panel buttons",
|
|
380
|
+
"tier": "presentation",
|
|
381
|
+
"type": "[RecordAction]"
|
|
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
|
+
},
|
|
390
|
+
"bodyContent": {
|
|
391
|
+
"default": {
|
|
392
|
+
"children": [
|
|
393
|
+
{
|
|
394
|
+
"actions": "@config.actions",
|
|
395
|
+
"entity": "@payload.data",
|
|
396
|
+
"fields": "@config.fields",
|
|
397
|
+
"initialData": "@payload.data",
|
|
398
|
+
"maxInlineActions": "@config.maxInlineActions",
|
|
399
|
+
"sections": "@config.sections",
|
|
400
|
+
"showActions": "@config.showActions",
|
|
401
|
+
"subtitle": "@entity.description",
|
|
402
|
+
"title": "@entity.name",
|
|
403
|
+
"type": "detail-panel"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"direction": "vertical",
|
|
407
|
+
"gap": "lg",
|
|
408
|
+
"type": "stack"
|
|
409
|
+
},
|
|
410
|
+
"description": "Render-ui SExpr rendered after the record loads when detailLook = panel (the default). See slideOverBodyContent/pageBodyContent for the other looks; any may be overridden directly while inheriting the same trait, state machine, emits, and listens.",
|
|
411
|
+
"label": "Body content tree",
|
|
412
|
+
"tier": "internal",
|
|
413
|
+
"type": "render-ui"
|
|
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
|
+
},
|
|
423
|
+
"detailLook": {
|
|
424
|
+
"default": "panel",
|
|
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.",
|
|
426
|
+
"label": "Detail look",
|
|
427
|
+
"synonyms": "detail style, drawer, slide over, full page, document, wiki page, note, article",
|
|
428
|
+
"tier": "presentation",
|
|
429
|
+
"type": "string",
|
|
430
|
+
"values": [
|
|
431
|
+
"panel",
|
|
432
|
+
"slide-over",
|
|
433
|
+
"page",
|
|
434
|
+
"document"
|
|
435
|
+
]
|
|
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
|
+
},
|
|
494
|
+
"fields": {
|
|
495
|
+
"default": [
|
|
496
|
+
{
|
|
497
|
+
"header": "Name",
|
|
498
|
+
"key": "name"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"header": "Description",
|
|
502
|
+
"key": "description"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"header": "Status",
|
|
506
|
+
"key": "status"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"format": "date",
|
|
510
|
+
"header": "Created",
|
|
511
|
+
"key": "createdAt"
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
"description": "Each entry maps one entity field to a labelled row in the panel. Unlike a list row, a detail panel SHOULD label every field — the value stands alone here with no column header or repeated row position to name it.",
|
|
515
|
+
"items": {
|
|
516
|
+
"properties": {
|
|
517
|
+
"format": {
|
|
518
|
+
"name": "format",
|
|
519
|
+
"required": false,
|
|
520
|
+
"type": "string",
|
|
521
|
+
"values": [
|
|
522
|
+
"date",
|
|
523
|
+
"currency",
|
|
524
|
+
"number",
|
|
525
|
+
"boolean",
|
|
526
|
+
"percent"
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
"header": {
|
|
530
|
+
"name": "header",
|
|
531
|
+
"required": false,
|
|
532
|
+
"type": "string"
|
|
533
|
+
},
|
|
534
|
+
"key": {
|
|
535
|
+
"name": "key",
|
|
536
|
+
"required": true,
|
|
537
|
+
"type": "string"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"type": "object"
|
|
541
|
+
},
|
|
542
|
+
"label": "Which fields appear in the record panel?",
|
|
543
|
+
"synonyms": "detail fields, record fields, panel fields, shown fields",
|
|
544
|
+
"tier": "presentation",
|
|
545
|
+
"type": "[RecordFieldSpec]"
|
|
546
|
+
},
|
|
547
|
+
"include": {
|
|
548
|
+
"default": [],
|
|
549
|
+
"description": "Entity relation field names to hydrate on fetch, so panel fields can use dot-paths like owner.name. Empty = no hydration, the default.",
|
|
550
|
+
"items": {
|
|
551
|
+
"type": "string"
|
|
552
|
+
},
|
|
553
|
+
"label": "Which relation fields to hydrate?",
|
|
554
|
+
"synonyms": "relation hydration, populate relations, joined fields",
|
|
555
|
+
"tier": "internal",
|
|
556
|
+
"type": "[string]"
|
|
557
|
+
},
|
|
558
|
+
"maxInlineActions": {
|
|
559
|
+
"default": 3.0,
|
|
560
|
+
"description": "Actions beyond this count collapse into a '⋯' overflow menu.",
|
|
561
|
+
"label": "How many actions before collapsing?",
|
|
562
|
+
"synonyms": "inline actions limit, overflow threshold",
|
|
563
|
+
"tier": "presentation",
|
|
564
|
+
"type": "number"
|
|
565
|
+
},
|
|
566
|
+
"openOn": {
|
|
567
|
+
"default": "init",
|
|
568
|
+
"description": "init = a routed detail page; the record loads as soon as the page mounts (the default). event = an overlay that stays blank until a row-click OPEN_VIEW hands it an id, which is what a list-embedded slide-over needs — mounting an init-loading surface on a list page would fetch a record it has no id for.",
|
|
569
|
+
"label": "When does this surface load?",
|
|
570
|
+
"synonyms": "open on click, slide over, row click, blank until opened, list embedded",
|
|
571
|
+
"tier": "policy",
|
|
572
|
+
"type": "string",
|
|
573
|
+
"values": [
|
|
574
|
+
"init",
|
|
575
|
+
"event"
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
"pageBodyContent": {
|
|
579
|
+
"default": {
|
|
580
|
+
"children": [
|
|
581
|
+
{
|
|
582
|
+
"actions": "@config.actions",
|
|
583
|
+
"entity": "@payload.data",
|
|
584
|
+
"fields": "@config.fields",
|
|
585
|
+
"initialData": "@payload.data",
|
|
586
|
+
"maxInlineActions": "@config.maxInlineActions",
|
|
587
|
+
"sections": "@config.sections",
|
|
588
|
+
"showActions": "@config.showActions",
|
|
589
|
+
"subtitle": "@entity.description",
|
|
590
|
+
"title": "@entity.name",
|
|
591
|
+
"type": "detail-panel"
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"className": "w-full max-w-4xl",
|
|
595
|
+
"direction": "vertical",
|
|
596
|
+
"gap": "lg",
|
|
597
|
+
"type": "stack"
|
|
598
|
+
},
|
|
599
|
+
"description": "Render-ui SExpr rendered after the record loads when detailLook = page: a full record page, width-capped so field rows do not stretch past a readable measure (Almadar_UI_Beauty.md §3).",
|
|
600
|
+
"label": "Page look body",
|
|
601
|
+
"tier": "internal",
|
|
602
|
+
"type": "render-ui"
|
|
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
|
+
},
|
|
611
|
+
"sections": {
|
|
612
|
+
"default": [],
|
|
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.",
|
|
614
|
+
"items": {
|
|
615
|
+
"properties": {
|
|
616
|
+
"fields": {
|
|
617
|
+
"items": {
|
|
618
|
+
"type": "string"
|
|
619
|
+
},
|
|
620
|
+
"name": "fields",
|
|
621
|
+
"required": false,
|
|
622
|
+
"type": "array"
|
|
623
|
+
},
|
|
624
|
+
"title": {
|
|
625
|
+
"name": "title",
|
|
626
|
+
"required": true,
|
|
627
|
+
"type": "string"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"type": "object"
|
|
631
|
+
},
|
|
632
|
+
"label": "How should the fields be grouped?",
|
|
633
|
+
"synonyms": "field groups, grouped fields, panel sections, fieldsets",
|
|
634
|
+
"tier": "presentation",
|
|
635
|
+
"type": "[RecordSection]"
|
|
636
|
+
},
|
|
637
|
+
"showActions": {
|
|
638
|
+
"default": true,
|
|
639
|
+
"description": "Set false for a read-only record view; a panel with actions nothing listens to is a dead affordance.",
|
|
640
|
+
"label": "Show the action buttons?",
|
|
641
|
+
"synonyms": "read only, hide actions, view only",
|
|
642
|
+
"tier": "presentation",
|
|
643
|
+
"type": "boolean"
|
|
644
|
+
},
|
|
645
|
+
"slideOverBodyContent": {
|
|
646
|
+
"default": {
|
|
647
|
+
"children": [
|
|
648
|
+
{
|
|
649
|
+
"actions": "@config.actions",
|
|
650
|
+
"entity": "@payload.data",
|
|
651
|
+
"fields": "@config.fields",
|
|
652
|
+
"initialData": "@payload.data",
|
|
653
|
+
"maxInlineActions": "@config.maxInlineActions",
|
|
654
|
+
"sections": "@config.sections",
|
|
655
|
+
"showActions": "@config.showActions",
|
|
656
|
+
"slideOver": true,
|
|
657
|
+
"subtitle": "@entity.description",
|
|
658
|
+
"title": "@entity.name",
|
|
659
|
+
"type": "detail-panel"
|
|
660
|
+
}
|
|
661
|
+
],
|
|
662
|
+
"direction": "vertical",
|
|
663
|
+
"gap": "none",
|
|
664
|
+
"type": "stack"
|
|
665
|
+
},
|
|
666
|
+
"description": "Render-ui SExpr rendered after the record loads when detailLook = slide-over: the same panel as a right-hand drawer, so the list behind stays in place. Use when the record is a glance, not a workspace.",
|
|
667
|
+
"label": "Slide-over look body",
|
|
668
|
+
"tier": "internal",
|
|
669
|
+
"type": "render-ui"
|
|
670
|
+
},
|
|
671
|
+
"subtitleField": {
|
|
672
|
+
"default": "description",
|
|
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.",
|
|
674
|
+
"label": "Which field is the subtitle?",
|
|
675
|
+
"synonyms": "subtitle field, secondary field, subheading, no subtitle",
|
|
676
|
+
"tier": "presentation",
|
|
677
|
+
"type": "string"
|
|
678
|
+
},
|
|
679
|
+
"titleField": {
|
|
680
|
+
"default": "name",
|
|
681
|
+
"description": "Name of the field on the loaded record shown as the panel title (e.g. contactName, subject, title).",
|
|
682
|
+
"label": "Which field is the record's title?",
|
|
683
|
+
"synonyms": "title field, heading field, name field, label field",
|
|
684
|
+
"tier": "presentation",
|
|
685
|
+
"type": "string"
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"emits": [
|
|
689
|
+
{
|
|
690
|
+
"description": "Signals that the record has been successfully loaded.",
|
|
691
|
+
"event": "RecordItemLoaded",
|
|
692
|
+
"eventId": "evt_01M11G7GKTPSHKRVR2KJCCXH83",
|
|
693
|
+
"payloadSchema": [
|
|
694
|
+
{
|
|
695
|
+
"name": "data",
|
|
696
|
+
"type": "RecordItem"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"name": "totalCount",
|
|
700
|
+
"type": "number"
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
"scope": "internal",
|
|
704
|
+
"synonyms": "loaded, received, ready, fetched",
|
|
705
|
+
"tier": "domain"
|
|
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
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"description": "Indicates a failure to load the record.",
|
|
727
|
+
"event": "RecordItemLoadFailed",
|
|
728
|
+
"eventId": "evt_01M11G7GKTW27F8E4B51MZXT3J",
|
|
729
|
+
"payloadSchema": [
|
|
730
|
+
{
|
|
731
|
+
"name": "error",
|
|
732
|
+
"type": "string"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"name": "code",
|
|
736
|
+
"type": "string"
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
"scope": "internal",
|
|
740
|
+
"synonyms": "error, failed, problem, unsuccessful",
|
|
741
|
+
"tier": "internal"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"description": "Signals a request to edit the record being viewed.",
|
|
745
|
+
"event": "EDIT",
|
|
746
|
+
"eventId": "evt_01M11G7GKT2W4J3T30YBM3SFZV",
|
|
747
|
+
"payloadSchema": [
|
|
748
|
+
{
|
|
749
|
+
"name": "id",
|
|
750
|
+
"required": true,
|
|
751
|
+
"type": "string"
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "row",
|
|
755
|
+
"properties": [
|
|
756
|
+
{
|
|
757
|
+
"name": "id",
|
|
758
|
+
"required": true,
|
|
759
|
+
"type": "string"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "name",
|
|
763
|
+
"required": true,
|
|
764
|
+
"type": "string"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "description",
|
|
768
|
+
"type": "string"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"name": "status",
|
|
772
|
+
"type": "string"
|
|
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
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"name": "createdAt",
|
|
792
|
+
"type": "string"
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"type": "object"
|
|
796
|
+
}
|
|
797
|
+
],
|
|
798
|
+
"scope": "external",
|
|
799
|
+
"synonyms": "modify, update, change",
|
|
800
|
+
"tier": "domain"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"description": "Signals a request to remove the record being viewed.",
|
|
804
|
+
"event": "DELETE",
|
|
805
|
+
"eventId": "evt_01M11G7GKTCPVY3J7BKGBCXK3T",
|
|
806
|
+
"payloadSchema": [
|
|
807
|
+
{
|
|
808
|
+
"name": "id",
|
|
809
|
+
"required": true,
|
|
810
|
+
"type": "string"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"name": "row",
|
|
814
|
+
"properties": [
|
|
815
|
+
{
|
|
816
|
+
"name": "id",
|
|
817
|
+
"required": true,
|
|
818
|
+
"type": "string"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "name",
|
|
822
|
+
"required": true,
|
|
823
|
+
"type": "string"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"name": "description",
|
|
827
|
+
"type": "string"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"name": "status",
|
|
831
|
+
"type": "string"
|
|
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
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"name": "createdAt",
|
|
851
|
+
"type": "string"
|
|
852
|
+
}
|
|
853
|
+
],
|
|
854
|
+
"type": "object"
|
|
855
|
+
}
|
|
856
|
+
],
|
|
857
|
+
"scope": "external",
|
|
858
|
+
"synonyms": "remove, discard, delete, archive",
|
|
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"
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
"entityContract": {
|
|
933
|
+
"provides": [
|
|
934
|
+
"content",
|
|
935
|
+
"description",
|
|
936
|
+
"loadedRow",
|
|
937
|
+
"name",
|
|
938
|
+
"openDraft",
|
|
939
|
+
"slug"
|
|
940
|
+
],
|
|
941
|
+
"requires": []
|
|
942
|
+
},
|
|
943
|
+
"entityRebindable": true,
|
|
944
|
+
"entityRefIds": {
|
|
945
|
+
"RecordItem": "ent_01M11G7GKTBPP8VHM2QHYFXK9A"
|
|
946
|
+
},
|
|
947
|
+
"id": "trt_01M11G7GKT47CAAQ530NWE10AQ",
|
|
948
|
+
"linkedEntity": "RecordItem",
|
|
949
|
+
"linkedEntityId": "ent_01M11G7GKTBPP8VHM2QHYFXK9A",
|
|
950
|
+
"name": "RecordItemDetail",
|
|
951
|
+
"scope": "instance",
|
|
952
|
+
"stateMachine": {
|
|
953
|
+
"events": [
|
|
954
|
+
{
|
|
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.",
|
|
956
|
+
"id": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
957
|
+
"key": "INIT",
|
|
958
|
+
"name": "Initialize",
|
|
959
|
+
"payloadSchema": [
|
|
960
|
+
{
|
|
961
|
+
"name": "id",
|
|
962
|
+
"type": "string"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "slug",
|
|
966
|
+
"type": "string"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"name": "draft",
|
|
970
|
+
"type": "string"
|
|
971
|
+
}
|
|
972
|
+
],
|
|
973
|
+
"synonyms": "open record, view record, show details, drill in",
|
|
974
|
+
"tier": "domain"
|
|
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
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"description": "A row was opened from a list; shows that record in this surface.",
|
|
1034
|
+
"id": "evt_01M11JRVVZSRPRJG40FASZ2Q9H",
|
|
1035
|
+
"key": "OPEN_VIEW",
|
|
1036
|
+
"name": "Open View",
|
|
1037
|
+
"payloadSchema": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "id",
|
|
1040
|
+
"required": true,
|
|
1041
|
+
"type": "string"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "row",
|
|
1045
|
+
"type": "RecordItem"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"synonyms": "open record, view row, show details, drill in, expand",
|
|
1049
|
+
"tier": "domain"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"description": "Signals that the record has been successfully loaded.",
|
|
1053
|
+
"id": "evt_01M11G7GKTPSHKRVR2KJCCXH83",
|
|
1054
|
+
"key": "RecordItemLoaded",
|
|
1055
|
+
"name": "RecordItem loaded",
|
|
1056
|
+
"payloadSchema": [
|
|
1057
|
+
{
|
|
1058
|
+
"name": "data",
|
|
1059
|
+
"type": "RecordItem"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"name": "totalCount",
|
|
1063
|
+
"type": "number"
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"synonyms": "loaded, received, ready, fetched",
|
|
1067
|
+
"tier": "domain"
|
|
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
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"description": "Indicates a failure to load the record.",
|
|
1089
|
+
"id": "evt_01M11G7GKTW27F8E4B51MZXT3J",
|
|
1090
|
+
"key": "RecordItemLoadFailed",
|
|
1091
|
+
"name": "RecordItem load failed",
|
|
1092
|
+
"payloadSchema": [
|
|
1093
|
+
{
|
|
1094
|
+
"name": "error",
|
|
1095
|
+
"type": "string"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"name": "code",
|
|
1099
|
+
"type": "string"
|
|
1100
|
+
}
|
|
1101
|
+
],
|
|
1102
|
+
"synonyms": "error, failed, problem, unsuccessful",
|
|
1103
|
+
"tier": "internal"
|
|
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
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"description": "Closes the record surface and returns it to blank.",
|
|
1129
|
+
"id": "evt_01M11JRVVZ5NTTZVC714X45YET",
|
|
1130
|
+
"key": "CLOSE_VIEW",
|
|
1131
|
+
"name": "Close View",
|
|
1132
|
+
"synonyms": "close, dismiss, back to list",
|
|
1133
|
+
"tier": "domain"
|
|
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
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"description": "Re-runs the fetch after a failed load.",
|
|
1145
|
+
"id": "evt_01M11G7GKT3BDT1MGPXJQ3AZPK",
|
|
1146
|
+
"key": "RETRY",
|
|
1147
|
+
"name": "Retry",
|
|
1148
|
+
"synonyms": "try again, reload, refresh",
|
|
1149
|
+
"tier": "domain"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"description": "Signals a request to edit the record being viewed.",
|
|
1153
|
+
"id": "evt_01M11G7GKT2W4J3T30YBM3SFZV",
|
|
1154
|
+
"key": "EDIT",
|
|
1155
|
+
"name": "Edit",
|
|
1156
|
+
"payloadSchema": [
|
|
1157
|
+
{
|
|
1158
|
+
"name": "id",
|
|
1159
|
+
"required": true,
|
|
1160
|
+
"type": "string"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "row",
|
|
1164
|
+
"properties": [
|
|
1165
|
+
{
|
|
1166
|
+
"name": "id",
|
|
1167
|
+
"required": true,
|
|
1168
|
+
"type": "string"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"name": "name",
|
|
1172
|
+
"required": true,
|
|
1173
|
+
"type": "string"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"name": "description",
|
|
1177
|
+
"type": "string"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"name": "status",
|
|
1181
|
+
"type": "string"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"name": "slug",
|
|
1185
|
+
"type": "string"
|
|
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"
|
|
1205
|
+
}
|
|
1206
|
+
],
|
|
1207
|
+
"synonyms": "modify, update, change",
|
|
1208
|
+
"tier": "domain"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"description": "Signals a request to remove the record being viewed.",
|
|
1212
|
+
"id": "evt_01M11G7GKTCPVY3J7BKGBCXK3T",
|
|
1213
|
+
"key": "DELETE",
|
|
1214
|
+
"name": "Delete",
|
|
1215
|
+
"payloadSchema": [
|
|
1216
|
+
{
|
|
1217
|
+
"name": "id",
|
|
1218
|
+
"required": true,
|
|
1219
|
+
"type": "string"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"name": "row",
|
|
1223
|
+
"properties": [
|
|
1224
|
+
{
|
|
1225
|
+
"name": "id",
|
|
1226
|
+
"required": true,
|
|
1227
|
+
"type": "string"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"name": "name",
|
|
1231
|
+
"required": true,
|
|
1232
|
+
"type": "string"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "description",
|
|
1236
|
+
"type": "string"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"name": "status",
|
|
1240
|
+
"type": "string"
|
|
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
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"name": "createdAt",
|
|
1260
|
+
"type": "string"
|
|
1261
|
+
}
|
|
1262
|
+
],
|
|
1263
|
+
"type": "object"
|
|
1264
|
+
}
|
|
1265
|
+
],
|
|
1266
|
+
"synonyms": "remove, discard, delete, archive",
|
|
1267
|
+
"tier": "domain"
|
|
1268
|
+
}
|
|
1269
|
+
],
|
|
1270
|
+
"states": [
|
|
1271
|
+
{
|
|
1272
|
+
"isInitial": true,
|
|
1273
|
+
"name": "idle"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"name": "loading"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "editing"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"name": "viewing"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"name": "error"
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
"transitions": [
|
|
1289
|
+
{
|
|
1290
|
+
"effects": [
|
|
1291
|
+
[
|
|
1292
|
+
"set",
|
|
1293
|
+
"@entity.id",
|
|
1294
|
+
"@payload.id"
|
|
1295
|
+
],
|
|
1296
|
+
[
|
|
1297
|
+
"set",
|
|
1298
|
+
"@entity.openDraft",
|
|
1299
|
+
[
|
|
1300
|
+
"str/default",
|
|
1301
|
+
"@payload.draft",
|
|
1302
|
+
""
|
|
1303
|
+
]
|
|
1304
|
+
],
|
|
1305
|
+
[
|
|
1306
|
+
"fetch",
|
|
1307
|
+
"RecordItem",
|
|
1308
|
+
{
|
|
1309
|
+
"emit": {
|
|
1310
|
+
"failure": "RecordItemLoadFailed",
|
|
1311
|
+
"success": "RecordItemLoaded"
|
|
1312
|
+
},
|
|
1313
|
+
"id": "@payload.id",
|
|
1314
|
+
"include": "@config.include"
|
|
1315
|
+
}
|
|
1316
|
+
],
|
|
1317
|
+
[
|
|
1318
|
+
"render-ui",
|
|
1319
|
+
"main",
|
|
1320
|
+
{
|
|
1321
|
+
"rows": 4.0,
|
|
1322
|
+
"type": "skeleton"
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
],
|
|
1326
|
+
"event": "INIT",
|
|
1327
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
1328
|
+
"from": "idle",
|
|
1329
|
+
"guard": [
|
|
1330
|
+
"and",
|
|
1331
|
+
[
|
|
1332
|
+
"=",
|
|
1333
|
+
"@config.openOn",
|
|
1334
|
+
"init"
|
|
1335
|
+
],
|
|
1336
|
+
[
|
|
1337
|
+
"!=",
|
|
1338
|
+
[
|
|
1339
|
+
"str/default",
|
|
1340
|
+
"@payload.id",
|
|
1341
|
+
""
|
|
1342
|
+
],
|
|
1343
|
+
""
|
|
1344
|
+
]
|
|
1345
|
+
],
|
|
1346
|
+
"to": "loading"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"effects": [
|
|
1350
|
+
[
|
|
1351
|
+
"set",
|
|
1352
|
+
"@entity.slug",
|
|
1353
|
+
"@payload.slug"
|
|
1354
|
+
],
|
|
1355
|
+
[
|
|
1356
|
+
"set",
|
|
1357
|
+
"@entity.openDraft",
|
|
1358
|
+
[
|
|
1359
|
+
"str/default",
|
|
1360
|
+
"@payload.draft",
|
|
1361
|
+
""
|
|
1362
|
+
]
|
|
1363
|
+
],
|
|
1364
|
+
[
|
|
1365
|
+
"fetch",
|
|
1366
|
+
"RecordItem",
|
|
1367
|
+
{
|
|
1368
|
+
"emit": {
|
|
1369
|
+
"failure": "RecordItemLoadFailed",
|
|
1370
|
+
"success": "RecordItemSlugLoaded"
|
|
1371
|
+
},
|
|
1372
|
+
"filter": [
|
|
1373
|
+
"=",
|
|
1374
|
+
[
|
|
1375
|
+
"object/get",
|
|
1376
|
+
"@entity",
|
|
1377
|
+
"slug"
|
|
1378
|
+
],
|
|
1379
|
+
"@payload.slug"
|
|
1380
|
+
],
|
|
1381
|
+
"include": "@config.include"
|
|
1382
|
+
}
|
|
1383
|
+
],
|
|
1384
|
+
[
|
|
1385
|
+
"render-ui",
|
|
1386
|
+
"main",
|
|
1387
|
+
{
|
|
1388
|
+
"rows": 4.0,
|
|
1389
|
+
"type": "skeleton"
|
|
1390
|
+
}
|
|
1391
|
+
]
|
|
1392
|
+
],
|
|
1393
|
+
"event": "INIT",
|
|
1394
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
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
|
+
],
|
|
1422
|
+
"to": "loading"
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"effects": [
|
|
1426
|
+
[
|
|
1427
|
+
"set",
|
|
1428
|
+
"@entity.openDraft",
|
|
1429
|
+
[
|
|
1430
|
+
"str/default",
|
|
1431
|
+
"@payload.draft",
|
|
1432
|
+
""
|
|
1433
|
+
]
|
|
1434
|
+
],
|
|
1435
|
+
[
|
|
1436
|
+
"fetch",
|
|
1437
|
+
"RecordItem",
|
|
1438
|
+
{
|
|
1439
|
+
"emit": {
|
|
1440
|
+
"failure": "RecordItemLoadFailed",
|
|
1441
|
+
"success": "RecordItemLoaded"
|
|
1442
|
+
},
|
|
1443
|
+
"id": "@payload.id",
|
|
1444
|
+
"include": "@config.include"
|
|
1445
|
+
}
|
|
1446
|
+
],
|
|
1447
|
+
[
|
|
1448
|
+
"render-ui",
|
|
1449
|
+
"main",
|
|
1450
|
+
{
|
|
1451
|
+
"rows": 4.0,
|
|
1452
|
+
"type": "skeleton"
|
|
1453
|
+
}
|
|
1454
|
+
]
|
|
1455
|
+
],
|
|
1456
|
+
"event": "INIT",
|
|
1457
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
1458
|
+
"from": "idle",
|
|
1459
|
+
"guard": [
|
|
1460
|
+
"and",
|
|
1461
|
+
[
|
|
1462
|
+
"=",
|
|
1463
|
+
"@config.openOn",
|
|
1464
|
+
"init"
|
|
1465
|
+
],
|
|
1466
|
+
[
|
|
1467
|
+
"=",
|
|
1468
|
+
[
|
|
1469
|
+
"str/default",
|
|
1470
|
+
"@payload.id",
|
|
1471
|
+
""
|
|
1472
|
+
],
|
|
1473
|
+
""
|
|
1474
|
+
],
|
|
1475
|
+
[
|
|
1476
|
+
"=",
|
|
1477
|
+
[
|
|
1478
|
+
"str/default",
|
|
1479
|
+
"@payload.slug",
|
|
1480
|
+
""
|
|
1481
|
+
],
|
|
1482
|
+
""
|
|
1483
|
+
]
|
|
1484
|
+
],
|
|
1485
|
+
"to": "loading"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
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"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"effects": [
|
|
1507
|
+
[
|
|
1508
|
+
"set",
|
|
1509
|
+
"@entity.id",
|
|
1510
|
+
"@payload.id"
|
|
1511
|
+
],
|
|
1512
|
+
[
|
|
1513
|
+
"fetch",
|
|
1514
|
+
"RecordItem",
|
|
1515
|
+
{
|
|
1516
|
+
"emit": {
|
|
1517
|
+
"failure": "RecordItemLoadFailed",
|
|
1518
|
+
"success": "RecordItemLoaded"
|
|
1519
|
+
},
|
|
1520
|
+
"id": "@payload.id",
|
|
1521
|
+
"include": "@config.include"
|
|
1522
|
+
}
|
|
1523
|
+
],
|
|
1524
|
+
[
|
|
1525
|
+
"render-ui",
|
|
1526
|
+
"main",
|
|
1527
|
+
{
|
|
1528
|
+
"rows": 4.0,
|
|
1529
|
+
"type": "skeleton"
|
|
1530
|
+
}
|
|
1531
|
+
]
|
|
1532
|
+
],
|
|
1533
|
+
"event": "OPEN_VIEW",
|
|
1534
|
+
"eventId": "evt_01M11JRVVZSRPRJG40FASZ2Q9H",
|
|
1535
|
+
"from": "idle",
|
|
1536
|
+
"to": "loading"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"effects": [
|
|
1540
|
+
[
|
|
1541
|
+
"set",
|
|
1542
|
+
"@entity.id",
|
|
1543
|
+
"@payload.id"
|
|
1544
|
+
],
|
|
1545
|
+
[
|
|
1546
|
+
"set",
|
|
1547
|
+
"@entity.openDraft",
|
|
1548
|
+
[
|
|
1549
|
+
"str/default",
|
|
1550
|
+
"@payload.draft",
|
|
1551
|
+
""
|
|
1552
|
+
]
|
|
1553
|
+
],
|
|
1554
|
+
[
|
|
1555
|
+
"fetch",
|
|
1556
|
+
"RecordItem",
|
|
1557
|
+
{
|
|
1558
|
+
"emit": {
|
|
1559
|
+
"failure": "RecordItemLoadFailed",
|
|
1560
|
+
"success": "RecordItemLoaded"
|
|
1561
|
+
},
|
|
1562
|
+
"id": "@payload.id",
|
|
1563
|
+
"include": "@config.include"
|
|
1564
|
+
}
|
|
1565
|
+
],
|
|
1566
|
+
[
|
|
1567
|
+
"render-ui",
|
|
1568
|
+
"main",
|
|
1569
|
+
{
|
|
1570
|
+
"rows": 4.0,
|
|
1571
|
+
"type": "skeleton"
|
|
1572
|
+
}
|
|
1573
|
+
]
|
|
1574
|
+
],
|
|
1575
|
+
"event": "INIT",
|
|
1576
|
+
"eventId": "evt_01M11G7GKTQS53CSYF3WN812EB",
|
|
1577
|
+
"from": "loading",
|
|
1578
|
+
"guard": [
|
|
1579
|
+
"!=",
|
|
1580
|
+
[
|
|
1581
|
+
"str/default",
|
|
1582
|
+
"@payload.id",
|
|
1583
|
+
""
|
|
1584
|
+
],
|
|
1585
|
+
""
|
|
1586
|
+
],
|
|
1587
|
+
"to": "loading"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
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
|
+
],
|
|
1605
|
+
[
|
|
1606
|
+
"fetch",
|
|
1607
|
+
"RecordItem",
|
|
1608
|
+
{
|
|
1609
|
+
"emit": {
|
|
1610
|
+
"failure": "RecordItemLoadFailed",
|
|
1611
|
+
"success": "RecordItemSlugLoaded"
|
|
1612
|
+
},
|
|
1613
|
+
"filter": [
|
|
1614
|
+
"=",
|
|
1615
|
+
[
|
|
1616
|
+
"object/get",
|
|
1617
|
+
"@entity",
|
|
1618
|
+
"slug"
|
|
1619
|
+
],
|
|
1620
|
+
"@payload.slug"
|
|
1621
|
+
],
|
|
1622
|
+
"include": "@config.include"
|
|
1623
|
+
}
|
|
1624
|
+
],
|
|
1625
|
+
[
|
|
1626
|
+
"render-ui",
|
|
1627
|
+
"main",
|
|
1628
|
+
{
|
|
1629
|
+
"rows": 4.0,
|
|
1630
|
+
"type": "skeleton"
|
|
1631
|
+
}
|
|
1632
|
+
]
|
|
1633
|
+
],
|
|
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
|
+
],
|
|
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"
|
|
3351
|
+
}
|
|
3352
|
+
]
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
]
|
|
3356
|
+
}
|
|
3357
|
+
],
|
|
3358
|
+
"schemaVersion": 1,
|
|
3359
|
+
"version": "1.0.0"
|
|
3360
|
+
}
|