@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.
Files changed (102) hide show
  1. package/behaviors/lolo/ui/core/.hand-authored.json +4 -4
  2. package/behaviors/lolo/ui/core/atoms/std-board.lolo +138 -4
  3. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +148 -8
  4. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +161 -11
  5. package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +255 -2
  6. package/behaviors/lolo/ui/core/atoms/std-gallery.lolo +148 -1
  7. package/behaviors/lolo/ui/core/atoms/std-list.lolo +193 -1
  8. package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +731 -0
  9. package/behaviors/lolo/ui/core/atoms/std-related.lolo +5 -1
  10. package/behaviors/lolo/ui/core/atoms/std-selection.lolo +182 -1
  11. package/behaviors/lolo/ui/core/atoms/std-tree.lolo +113 -3
  12. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
  13. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +80 -0
  14. package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +213 -0
  15. package/behaviors/lolo/ui/core/molecules/{ui-rich-block-editor.lolo → ui-rich-text-editor.lolo} +25 -25
  16. package/behaviors/lolo/ui/game/atoms/std-area-fill.lolo +93 -0
  17. package/behaviors/lolo/ui/game/atoms/std-choice-gate.lolo +100 -0
  18. package/behaviors/lolo/ui/game/atoms/std-coef-pad.lolo +114 -0
  19. package/behaviors/lolo/ui/game/atoms/std-curve-fog.lolo +50 -0
  20. package/behaviors/lolo/ui/game/atoms/std-loop-lock.lolo +79 -0
  21. package/behaviors/lolo/ui/game/atoms/std-pad-lock.lolo +97 -0
  22. package/behaviors/lolo/ui/game/atoms/std-patrol-hazard.lolo +14 -7
  23. package/behaviors/lolo/ui/game/atoms/std-platformer-body.lolo +48 -5
  24. package/behaviors/lolo/ui/game/atoms/std-velocity-gate.lolo +101 -0
  25. package/behaviors/lolo/ui/game/atoms/std-zone-card.lolo +95 -0
  26. package/behaviors/lolo/ui/game/organisms/std-platformer-board-2d.lolo +9 -0
  27. package/behaviors/registry/infra/atoms/std-approval-gate.orb +16 -8
  28. package/behaviors/registry/infra/atoms/std-cache-aside.orb +62 -31
  29. package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +32 -16
  30. package/behaviors/registry/infra/atoms/std-data-erasure.orb +16 -8
  31. package/behaviors/registry/infra/atoms/std-mod-queue.orb +16 -8
  32. package/behaviors/registry/infra/atoms/std-rate-limiter.orb +28 -14
  33. package/behaviors/registry/infra/organisms/std-status-lifecycle-control.orb +2 -1
  34. package/behaviors/registry/ml/organisms/std-escalating-decision.orb +10 -5
  35. package/behaviors/registry/ml/organisms/std-knowledge-tracing.orb +4 -2
  36. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +2 -1
  37. package/behaviors/registry/ui/core/atoms/std-board.orb +355 -2
  38. package/behaviors/registry/ui/core/atoms/std-browse.orb +304 -31
  39. package/behaviors/registry/ui/core/atoms/std-calendar.orb +393 -25
  40. package/behaviors/registry/ui/core/atoms/std-dashboard-grid-embedded.orb +2 -1
  41. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +4 -2
  42. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +6 -3
  43. package/behaviors/registry/ui/core/atoms/std-event-log.orb +773 -0
  44. package/behaviors/registry/ui/core/atoms/std-export.orb +4 -2
  45. package/behaviors/registry/ui/core/atoms/std-gallery.orb +390 -0
  46. package/behaviors/registry/ui/core/atoms/std-import.orb +4 -2
  47. package/behaviors/registry/ui/core/atoms/std-list.orb +451 -0
  48. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +3360 -0
  49. package/behaviors/registry/ui/core/atoms/std-related.orb +23 -1
  50. package/behaviors/registry/ui/core/atoms/std-selection.orb +436 -0
  51. package/behaviors/registry/ui/core/atoms/std-tree.orb +292 -1
  52. package/behaviors/registry/ui/core/atoms/std-version-history.orb +1 -1
  53. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +342 -0
  54. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +655 -0
  55. package/behaviors/registry/ui/core/molecules/{ui-rich-block-editor.orb → ui-rich-text-editor.orb} +84 -97
  56. package/behaviors/registry/ui/game/atoms/std-area-fill.orb +955 -0
  57. package/behaviors/registry/ui/game/atoms/std-choice-gate.orb +855 -0
  58. package/behaviors/registry/ui/game/atoms/std-coef-pad.orb +928 -0
  59. package/behaviors/registry/ui/game/atoms/std-curve-fog.orb +337 -0
  60. package/behaviors/registry/ui/game/atoms/std-fx-trail.orb +1 -1
  61. package/behaviors/registry/ui/game/atoms/std-gate-lock.orb +1 -1
  62. package/behaviors/registry/ui/game/atoms/std-lives.orb +1 -1
  63. package/behaviors/registry/ui/game/atoms/std-loop-lock.orb +785 -0
  64. package/behaviors/registry/ui/game/atoms/std-pad-lock.orb +933 -0
  65. package/behaviors/registry/ui/game/atoms/std-patrol-hazard.orb +190 -44
  66. package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +1330 -653
  67. package/behaviors/registry/ui/game/atoms/std-velocity-gate.orb +1040 -0
  68. package/behaviors/registry/ui/game/atoms/std-zone-card.orb +642 -0
  69. package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +8 -4
  70. package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +6 -3
  71. package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +10 -5
  72. package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +8 -4
  73. package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +8 -4
  74. package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +36 -1
  75. package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +8 -4
  76. package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +12 -6
  77. package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +8 -4
  78. package/behaviors/registry/ui/game/organisms/std-worldmap-board-2d.orb +6 -3
  79. package/behaviors/registry/ui/learning/atoms/std-learn-slope-probe.orb +1 -1
  80. package/behaviors/registry/ui/marketing/atoms/std-marketing-article.orb +2 -1
  81. package/behaviors/registry/ui/marketing/atoms/std-marketing-footer.orb +2 -1
  82. package/behaviors/registry/ui/marketing/atoms/std-marketing-split.orb +2 -1
  83. package/behaviors/registry/ui/marketing/atoms/std-marketing-stats.orb +2 -1
  84. package/behaviors/registry/ui/marketing/atoms/std-marketing-steps.orb +2 -1
  85. package/behaviors/registry/ui/marketing/atoms/std-marketing-team.orb +2 -1
  86. package/dist/behaviors/exports-reader.js +10971 -6255
  87. package/dist/behaviors/functions/index.d.ts +1205 -256
  88. package/dist/behaviors/functions/index.js +10932 -6245
  89. package/dist/behaviors/index.d.ts +1 -1
  90. package/dist/behaviors/index.js +10972 -6256
  91. package/dist/behaviors/query.js +10971 -6255
  92. package/dist/behaviors-embeddings.hash.json +3 -3
  93. package/dist/behaviors-embeddings.json +485 -469
  94. package/dist/behaviors-registry.json +6125 -2940
  95. package/dist/index.d.ts +1 -1
  96. package/dist/index.js +10972 -6256
  97. package/dist/knob-embeddings.hash.json +3 -3
  98. package/dist/knob-embeddings.json +1 -1
  99. package/dist/registry/factory-signatures.json +1 -1
  100. package/package.json +4 -4
  101. package/behaviors/lolo/ui/core/atoms/std-rich-editor.lolo +0 -790
  102. package/behaviors/registry/ui/core/atoms/std-rich-editor.orb +0 -2225
@@ -0,0 +1,655 @@
1
+ {
2
+ "description": "DocumentPanel — a record rendered as one continuous document: editable title over the rich-text body, editing controls tucked into the header corner. — UI factory (1:1 with the @almadar/ui document-panel pattern).",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01M13ZXC5NAPHRZWRBV03GQK46": {
6
+ "bakedName": "DocumentPanelItem",
7
+ "curName": "DocumentPanelItem",
8
+ "id": "ent_01M13ZXC5NAPHRZWRBV03GQK46",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01M13ZXC5N0V3HVHF8B4GR9037": {
14
+ "bakedName": "@config.editEvent",
15
+ "curName": "@config.editEvent",
16
+ "id": "evt_01M13ZXC5N0V3HVHF8B4GR9037",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
20
+ "renames": []
21
+ },
22
+ "evt_01M13ZXC5N14ASYCGJ3EKEDMSQ": {
23
+ "bakedName": "DocumentPanelLoaded",
24
+ "curName": "DocumentPanelLoaded",
25
+ "id": "evt_01M13ZXC5N14ASYCGJ3EKEDMSQ",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
29
+ "renames": []
30
+ },
31
+ "evt_01M13ZXC5N2JWNJQNCQBM7ZV84": {
32
+ "bakedName": "TITLE_COMMIT",
33
+ "curName": "TITLE_COMMIT",
34
+ "id": "evt_01M13ZXC5N2JWNJQNCQBM7ZV84",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
38
+ "renames": []
39
+ },
40
+ "evt_01M13ZXC5NFRPB6WH1N017BAQ8": {
41
+ "bakedName": "INIT",
42
+ "curName": "INIT",
43
+ "id": "evt_01M13ZXC5NFRPB6WH1N017BAQ8",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
47
+ "renames": []
48
+ },
49
+ "evt_01M13ZXC5NGG4N5VG3W0DHZTJJ": {
50
+ "bakedName": "CONTENT_CHANGE",
51
+ "curName": "CONTENT_CHANGE",
52
+ "id": "evt_01M13ZXC5NGG4N5VG3W0DHZTJJ",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
56
+ "renames": []
57
+ },
58
+ "evt_01M13ZXC5NHMYWEH0Q87APMFPE": {
59
+ "bakedName": "@config.doneEvent",
60
+ "curName": "@config.doneEvent",
61
+ "id": "evt_01M13ZXC5NHMYWEH0Q87APMFPE",
62
+ "kind": "event",
63
+ "owner": "workspace",
64
+ "parent": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
65
+ "renames": []
66
+ },
67
+ "evt_01M13ZXC5NM3Y5VQW65DAM1JW7": {
68
+ "bakedName": "@config.contentChangeEvent",
69
+ "curName": "@config.contentChangeEvent",
70
+ "id": "evt_01M13ZXC5NM3Y5VQW65DAM1JW7",
71
+ "kind": "event",
72
+ "owner": "workspace",
73
+ "parent": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
74
+ "renames": []
75
+ },
76
+ "evt_01M13ZXC5NZ2ZF7NK4XFSNNJ3T": {
77
+ "bakedName": "@config.titleCommitEvent",
78
+ "curName": "@config.titleCommitEvent",
79
+ "id": "evt_01M13ZXC5NZ2ZF7NK4XFSNNJ3T",
80
+ "kind": "event",
81
+ "owner": "workspace",
82
+ "parent": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
83
+ "renames": []
84
+ },
85
+ "orb_01M13ZXC5MCMHSA7W7WF77F9BX": {
86
+ "bakedName": "DocumentPanelOrbital",
87
+ "curName": "DocumentPanelOrbital",
88
+ "id": "orb_01M13ZXC5MCMHSA7W7WF77F9BX",
89
+ "kind": "orbital",
90
+ "owner": "workspace",
91
+ "renames": []
92
+ },
93
+ "pag_01M13ZXC5NK5BB95GMHZ8ZEQTV": {
94
+ "bakedName": "DocumentPanelPage",
95
+ "curName": "DocumentPanelPage",
96
+ "id": "pag_01M13ZXC5NK5BB95GMHZ8ZEQTV",
97
+ "kind": "page",
98
+ "owner": "workspace",
99
+ "renames": []
100
+ },
101
+ "trt_01M13ZXC5NZQG6MATNRKA9FPS0": {
102
+ "bakedName": "DocumentPanelRender",
103
+ "curName": "DocumentPanelRender",
104
+ "id": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
105
+ "kind": "trait",
106
+ "owner": "workspace",
107
+ "renames": []
108
+ }
109
+ },
110
+ "schemaVersion": 1
111
+ },
112
+ "name": "ui-document-panel",
113
+ "orbitals": [
114
+ {
115
+ "entity": {
116
+ "fields": [
117
+ {
118
+ "name": "id",
119
+ "required": true,
120
+ "type": "string"
121
+ },
122
+ {
123
+ "name": "title",
124
+ "type": "string"
125
+ },
126
+ {
127
+ "name": "value",
128
+ "type": "string"
129
+ }
130
+ ],
131
+ "id": "ent_01M13ZXC5NAPHRZWRBV03GQK46",
132
+ "name": "DocumentPanelItem",
133
+ "persistence": "runtime"
134
+ },
135
+ "id": "orb_01M13ZXC5MCMHSA7W7WF77F9BX",
136
+ "name": "DocumentPanelOrbital",
137
+ "pages": [
138
+ {
139
+ "id": "pag_01M13ZXC5NK5BB95GMHZ8ZEQTV",
140
+ "name": "DocumentPanelPage",
141
+ "path": "/document-panel",
142
+ "traits": [
143
+ {
144
+ "ref": "DocumentPanelRender",
145
+ "refId": "trt_01M13ZXC5NZQG6MATNRKA9FPS0"
146
+ }
147
+ ]
148
+ }
149
+ ],
150
+ "traits": [
151
+ {
152
+ "category": "interaction",
153
+ "config": {
154
+ "actions": {
155
+ "default": [],
156
+ "description": "Header actions (settings, history, …). At most one explicit primary stays inline; the rest live under a single '⋯' menu — the title owns its row.",
157
+ "items": {
158
+ "properties": {
159
+ "event": {
160
+ "name": "event",
161
+ "required": false,
162
+ "type": "string"
163
+ },
164
+ "icon": {
165
+ "name": "icon",
166
+ "required": false,
167
+ "type": "string"
168
+ },
169
+ "label": {
170
+ "name": "label",
171
+ "required": true,
172
+ "type": "string"
173
+ },
174
+ "variant": {
175
+ "name": "variant",
176
+ "required": false,
177
+ "type": "string",
178
+ "values": [
179
+ "primary",
180
+ "secondary",
181
+ "ghost",
182
+ "danger"
183
+ ]
184
+ }
185
+ },
186
+ "type": "object"
187
+ },
188
+ "label": "Actions",
189
+ "tier": "presentation",
190
+ "type": "[DocumentPanelActionsItem]"
191
+ },
192
+ "autosaveHint": {
193
+ "description": "Muted caption beside Done telling the author work persists on its own",
194
+ "label": "Autosave Hint",
195
+ "tier": "presentation",
196
+ "type": "string"
197
+ },
198
+ "className": {
199
+ "description": "className prop",
200
+ "label": "Class Name",
201
+ "tier": "presentation",
202
+ "type": "string"
203
+ },
204
+ "contentChangeEvent": {
205
+ "default": "CONTENT_CHANGE",
206
+ "description": "Forwarded to the embedded RichTextEditor's autosave stream: { value }",
207
+ "label": "Content Change Event",
208
+ "tier": "presentation",
209
+ "type": "string"
210
+ },
211
+ "doneEvent": {
212
+ "default": "DONE",
213
+ "description": "Emitted by the Done button that ends the editing session: { id }",
214
+ "label": "Done Event",
215
+ "tier": "presentation",
216
+ "type": "string"
217
+ },
218
+ "doneLabel": {
219
+ "description": "doneLabel prop",
220
+ "label": "Done Label",
221
+ "tier": "presentation",
222
+ "type": "string"
223
+ },
224
+ "editEvent": {
225
+ "default": "EDIT",
226
+ "description": "Emitted by the header Edit affordance and a click on the read body: { id }",
227
+ "label": "Edit Event",
228
+ "tier": "presentation",
229
+ "type": "string"
230
+ },
231
+ "editLabel": {
232
+ "description": "editLabel prop",
233
+ "label": "Edit Label",
234
+ "tier": "presentation",
235
+ "type": "string"
236
+ },
237
+ "editing": {
238
+ "default": false,
239
+ "description": "false = read surface with click-to-edit body; true = live editor",
240
+ "label": "Editing",
241
+ "tier": "presentation",
242
+ "type": "boolean"
243
+ },
244
+ "maxInlineActions": {
245
+ "description": "0 collapses even the primary action into the menu",
246
+ "label": "Max Inline Actions",
247
+ "tier": "presentation",
248
+ "type": "number"
249
+ },
250
+ "placeholder": {
251
+ "description": "Placeholder for an empty body",
252
+ "label": "Placeholder",
253
+ "tier": "presentation",
254
+ "type": "string"
255
+ },
256
+ "subtitle": {
257
+ "description": "Muted byline under the title; hidden when empty",
258
+ "label": "Subtitle",
259
+ "tier": "presentation",
260
+ "type": "string"
261
+ },
262
+ "title": {
263
+ "description": "Document title (falls back to 'Untitled' for a blank draft)",
264
+ "label": "Title",
265
+ "tier": "presentation",
266
+ "type": "string"
267
+ },
268
+ "titleCommitEvent": {
269
+ "default": "TITLE_COMMIT",
270
+ "description": "Emitted when the title commits: { title, id }",
271
+ "label": "Title Commit Event",
272
+ "tier": "presentation",
273
+ "type": "string"
274
+ },
275
+ "value": {
276
+ "description": "The document body as rich-text HTML",
277
+ "label": "Value",
278
+ "tier": "presentation",
279
+ "type": "string"
280
+ }
281
+ },
282
+ "emits": [
283
+ {
284
+ "description": "Emitted when the title commits: { title, id }",
285
+ "event": "@config.titleCommitEvent",
286
+ "eventId": "evt_01M13ZXC5NZ2ZF7NK4XFSNNJ3T",
287
+ "payloadSchema": [
288
+ {
289
+ "name": "title",
290
+ "required": true,
291
+ "type": "string"
292
+ },
293
+ {
294
+ "name": "id",
295
+ "required": true,
296
+ "type": "string"
297
+ }
298
+ ],
299
+ "scope": "external",
300
+ "tier": "essential"
301
+ },
302
+ {
303
+ "description": "Forwarded to the embedded RichTextEditor's autosave stream: { value }",
304
+ "event": "@config.contentChangeEvent",
305
+ "eventId": "evt_01M13ZXC5NM3Y5VQW65DAM1JW7",
306
+ "payloadSchema": [
307
+ {
308
+ "name": "value",
309
+ "required": true,
310
+ "type": "string"
311
+ }
312
+ ],
313
+ "scope": "external",
314
+ "tier": "essential"
315
+ },
316
+ {
317
+ "description": "Emitted by the header Edit affordance and a click on the read body: { id }",
318
+ "event": "@config.editEvent",
319
+ "eventId": "evt_01M13ZXC5N0V3HVHF8B4GR9037",
320
+ "payloadSchema": [
321
+ {
322
+ "name": "id",
323
+ "required": true,
324
+ "type": "string"
325
+ }
326
+ ],
327
+ "scope": "external",
328
+ "tier": "essential"
329
+ },
330
+ {
331
+ "description": "Emitted by the Done button that ends the editing session: { id }",
332
+ "event": "@config.doneEvent",
333
+ "eventId": "evt_01M13ZXC5NHMYWEH0Q87APMFPE",
334
+ "payloadSchema": [
335
+ {
336
+ "name": "id",
337
+ "required": true,
338
+ "type": "string"
339
+ }
340
+ ],
341
+ "scope": "external",
342
+ "tier": "essential"
343
+ },
344
+ {
345
+ "description": "DocumentPanel rows finished loading; payload.data holds the collection.",
346
+ "event": "DocumentPanelLoaded",
347
+ "eventId": "evt_01M13ZXC5N14ASYCGJ3EKEDMSQ",
348
+ "payloadSchema": [
349
+ {
350
+ "name": "data",
351
+ "type": "[DocumentPanelItem]"
352
+ }
353
+ ],
354
+ "scope": "internal",
355
+ "synonyms": "loaded, fetched, retrieved",
356
+ "tier": "essential"
357
+ }
358
+ ],
359
+ "entityContract": {
360
+ "provides": [
361
+ "title",
362
+ "value"
363
+ ],
364
+ "requires": []
365
+ },
366
+ "entityRebindable": true,
367
+ "entityRefIds": {
368
+ "DocumentPanelItem": "ent_01M13ZXC5NAPHRZWRBV03GQK46"
369
+ },
370
+ "id": "trt_01M13ZXC5NZQG6MATNRKA9FPS0",
371
+ "linkedEntity": "DocumentPanelItem",
372
+ "linkedEntityId": "ent_01M13ZXC5NAPHRZWRBV03GQK46",
373
+ "name": "DocumentPanelRender",
374
+ "scope": "instance",
375
+ "stateMachine": {
376
+ "events": [
377
+ {
378
+ "id": "evt_01M13ZXC5NFRPB6WH1N017BAQ8",
379
+ "key": "INIT",
380
+ "name": "Initialize"
381
+ },
382
+ {
383
+ "description": "DocumentPanel rows finished loading; payload.data holds the collection.",
384
+ "id": "evt_01M13ZXC5N14ASYCGJ3EKEDMSQ",
385
+ "key": "DocumentPanelLoaded",
386
+ "name": "Document panel loaded",
387
+ "payloadSchema": [
388
+ {
389
+ "name": "data",
390
+ "type": "[DocumentPanelItem]"
391
+ }
392
+ ],
393
+ "synonyms": "loaded, fetched, retrieved",
394
+ "tier": "essential"
395
+ },
396
+ {
397
+ "id": "evt_01M13ZXC5N2JWNJQNCQBM7ZV84",
398
+ "key": "TITLE_COMMIT",
399
+ "name": "Title Commit",
400
+ "payloadSchema": [
401
+ {
402
+ "name": "title",
403
+ "required": true,
404
+ "type": "string"
405
+ },
406
+ {
407
+ "name": "id",
408
+ "required": true,
409
+ "type": "string"
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "id": "evt_01M13ZXC5NGG4N5VG3W0DHZTJJ",
415
+ "key": "CONTENT_CHANGE",
416
+ "name": "Content Change",
417
+ "payloadSchema": [
418
+ {
419
+ "name": "value",
420
+ "required": true,
421
+ "type": "string"
422
+ }
423
+ ]
424
+ },
425
+ {
426
+ "description": "Emitted when the title commits: { title, id }",
427
+ "id": "evt_01M13ZXC5NZ2ZF7NK4XFSNNJ3T",
428
+ "key": "@config.titleCommitEvent",
429
+ "name": "@config.title commit event",
430
+ "payloadSchema": [
431
+ {
432
+ "name": "title",
433
+ "required": true,
434
+ "type": "string"
435
+ },
436
+ {
437
+ "name": "id",
438
+ "required": true,
439
+ "type": "string"
440
+ }
441
+ ],
442
+ "tier": "essential"
443
+ },
444
+ {
445
+ "description": "Forwarded to the embedded RichTextEditor's autosave stream: { value }",
446
+ "id": "evt_01M13ZXC5NM3Y5VQW65DAM1JW7",
447
+ "key": "@config.contentChangeEvent",
448
+ "name": "@config.content change event",
449
+ "payloadSchema": [
450
+ {
451
+ "name": "value",
452
+ "required": true,
453
+ "type": "string"
454
+ }
455
+ ],
456
+ "tier": "essential"
457
+ },
458
+ {
459
+ "description": "Emitted by the header Edit affordance and a click on the read body: { id }",
460
+ "id": "evt_01M13ZXC5N0V3HVHF8B4GR9037",
461
+ "key": "@config.editEvent",
462
+ "name": "@config.edit event",
463
+ "payloadSchema": [
464
+ {
465
+ "name": "id",
466
+ "required": true,
467
+ "type": "string"
468
+ }
469
+ ],
470
+ "tier": "essential"
471
+ },
472
+ {
473
+ "description": "Emitted by the Done button that ends the editing session: { id }",
474
+ "id": "evt_01M13ZXC5NHMYWEH0Q87APMFPE",
475
+ "key": "@config.doneEvent",
476
+ "name": "@config.done event",
477
+ "payloadSchema": [
478
+ {
479
+ "name": "id",
480
+ "required": true,
481
+ "type": "string"
482
+ }
483
+ ],
484
+ "tier": "essential"
485
+ }
486
+ ],
487
+ "states": [
488
+ {
489
+ "isInitial": true,
490
+ "name": "idle"
491
+ }
492
+ ],
493
+ "transitions": [
494
+ {
495
+ "effects": [
496
+ [
497
+ "fetch",
498
+ "DocumentPanelItem",
499
+ {
500
+ "emit": {
501
+ "success": "DocumentPanelLoaded"
502
+ }
503
+ }
504
+ ],
505
+ [
506
+ "set",
507
+ "@entity.title",
508
+ "@config.title"
509
+ ],
510
+ [
511
+ "set",
512
+ "@entity.value",
513
+ "@config.value"
514
+ ],
515
+ [
516
+ "render-ui",
517
+ "main",
518
+ {
519
+ "actions": "@config.actions",
520
+ "autosaveHint": "@config.autosaveHint",
521
+ "className": "@config.className",
522
+ "contentChangeEvent": "@config.contentChangeEvent",
523
+ "doneEvent": "@config.doneEvent",
524
+ "doneLabel": "@config.doneLabel",
525
+ "editEvent": "@config.editEvent",
526
+ "editLabel": "@config.editLabel",
527
+ "editing": "@config.editing",
528
+ "entity": "@entity",
529
+ "maxInlineActions": "@config.maxInlineActions",
530
+ "placeholder": "@config.placeholder",
531
+ "subtitle": "@config.subtitle",
532
+ "title": "@entity.title",
533
+ "titleCommitEvent": "@config.titleCommitEvent",
534
+ "type": "document-panel",
535
+ "value": "@entity.value"
536
+ }
537
+ ]
538
+ ],
539
+ "event": "INIT",
540
+ "eventId": "evt_01M13ZXC5NFRPB6WH1N017BAQ8",
541
+ "from": "idle",
542
+ "to": "idle"
543
+ },
544
+ {
545
+ "effects": [
546
+ [
547
+ "render-ui",
548
+ "main",
549
+ {
550
+ "actions": "@config.actions",
551
+ "autosaveHint": "@config.autosaveHint",
552
+ "className": "@config.className",
553
+ "contentChangeEvent": "@config.contentChangeEvent",
554
+ "doneEvent": "@config.doneEvent",
555
+ "doneLabel": "@config.doneLabel",
556
+ "editEvent": "@config.editEvent",
557
+ "editLabel": "@config.editLabel",
558
+ "editing": "@config.editing",
559
+ "entity": "@payload.data",
560
+ "maxInlineActions": "@config.maxInlineActions",
561
+ "placeholder": "@config.placeholder",
562
+ "subtitle": "@config.subtitle",
563
+ "title": "@entity.title",
564
+ "titleCommitEvent": "@config.titleCommitEvent",
565
+ "type": "document-panel",
566
+ "value": "@entity.value"
567
+ }
568
+ ]
569
+ ],
570
+ "event": "DocumentPanelLoaded",
571
+ "eventId": "evt_01M13ZXC5N14ASYCGJ3EKEDMSQ",
572
+ "from": "idle",
573
+ "to": "idle"
574
+ },
575
+ {
576
+ "effects": [
577
+ [
578
+ "set",
579
+ "@entity.title",
580
+ "@payload.title"
581
+ ],
582
+ [
583
+ "render-ui",
584
+ "main",
585
+ {
586
+ "actions": "@config.actions",
587
+ "autosaveHint": "@config.autosaveHint",
588
+ "className": "@config.className",
589
+ "contentChangeEvent": "@config.contentChangeEvent",
590
+ "doneEvent": "@config.doneEvent",
591
+ "doneLabel": "@config.doneLabel",
592
+ "editEvent": "@config.editEvent",
593
+ "editLabel": "@config.editLabel",
594
+ "editing": "@config.editing",
595
+ "entity": "@entity",
596
+ "maxInlineActions": "@config.maxInlineActions",
597
+ "placeholder": "@config.placeholder",
598
+ "subtitle": "@config.subtitle",
599
+ "title": "@entity.title",
600
+ "titleCommitEvent": "@config.titleCommitEvent",
601
+ "type": "document-panel",
602
+ "value": "@entity.value"
603
+ }
604
+ ]
605
+ ],
606
+ "event": "TITLE_COMMIT",
607
+ "eventId": "evt_01M13ZXC5N2JWNJQNCQBM7ZV84",
608
+ "from": "idle",
609
+ "to": "idle"
610
+ },
611
+ {
612
+ "effects": [
613
+ [
614
+ "set",
615
+ "@entity.value",
616
+ "@payload.value"
617
+ ],
618
+ [
619
+ "render-ui",
620
+ "main",
621
+ {
622
+ "actions": "@config.actions",
623
+ "autosaveHint": "@config.autosaveHint",
624
+ "className": "@config.className",
625
+ "contentChangeEvent": "@config.contentChangeEvent",
626
+ "doneEvent": "@config.doneEvent",
627
+ "doneLabel": "@config.doneLabel",
628
+ "editEvent": "@config.editEvent",
629
+ "editLabel": "@config.editLabel",
630
+ "editing": "@config.editing",
631
+ "entity": "@entity",
632
+ "maxInlineActions": "@config.maxInlineActions",
633
+ "placeholder": "@config.placeholder",
634
+ "subtitle": "@config.subtitle",
635
+ "title": "@entity.title",
636
+ "titleCommitEvent": "@config.titleCommitEvent",
637
+ "type": "document-panel",
638
+ "value": "@entity.value"
639
+ }
640
+ ]
641
+ ],
642
+ "event": "CONTENT_CHANGE",
643
+ "eventId": "evt_01M13ZXC5NGG4N5VG3W0DHZTJJ",
644
+ "from": "idle",
645
+ "to": "idle"
646
+ }
647
+ ]
648
+ }
649
+ }
650
+ ]
651
+ }
652
+ ],
653
+ "schemaVersion": 1,
654
+ "version": "1.0.0"
655
+ }