@almadar/std 16.241.0 → 16.242.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/behaviors-registry.json +4650 -535
- package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +38 -1
- package/behaviors/lolo/agent/atoms/std-agent-session.lolo +1074 -47
- package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +8 -7
- package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +56 -37
- package/behaviors/lolo/infra/atoms/std-page-open.lolo +59 -0
- package/behaviors/lolo/infra/atoms/std-page-search.lolo +134 -0
- package/behaviors/lolo/infra/atoms/std-page-treat.lolo +59 -0
- package/behaviors/lolo/infra/atoms/std-page-watch.lolo +86 -0
- package/behaviors/lolo/ui/core/atoms/std-book-reader.lolo +25 -1
- package/behaviors/lolo/ui/core/atoms/std-card-grid.lolo +9 -0
- package/behaviors/lolo/ui/core/atoms/std-doc-page.lolo +153 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-arrangement.lolo +124 -92
- package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +114 -55
- package/behaviors/lolo/ui/learning/atoms/std-learn-compare.lolo +40 -14
- package/behaviors/lolo/ui/learning/atoms/std-learn-coupled-sim.lolo +363 -123
- package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +93 -48
- package/behaviors/lolo/ui/learning/atoms/std-learn-diagram.lolo +60 -28
- package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +193 -96
- package/behaviors/lolo/ui/learning/atoms/std-learn-estimate.lolo +75 -32
- package/behaviors/lolo/ui/learning/atoms/std-learn-goal-seek.lolo +142 -86
- package/behaviors/lolo/ui/learning/atoms/std-learn-grid-sim.lolo +266 -98
- package/behaviors/lolo/ui/learning/atoms/std-learn-hotspot.lolo +103 -65
- package/behaviors/lolo/ui/learning/atoms/std-learn-live-sim.lolo +223 -109
- package/behaviors/lolo/ui/learning/atoms/std-learn-measure.lolo +232 -64
- package/behaviors/lolo/ui/learning/atoms/std-learn-param-explorer.lolo +69 -29
- package/behaviors/lolo/ui/learning/atoms/std-learn-perturb.lolo +363 -123
- package/behaviors/lolo/ui/learning/atoms/std-learn-predict.lolo +73 -41
- package/behaviors/lolo/ui/learning/atoms/std-learn-sample-accumulator.lolo +96 -38
- package/behaviors/lolo/ui/learning/atoms/std-learn-sandbox.lolo +65 -45
- package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +243 -117
- package/behaviors/lolo/ui/learning/atoms/std-learn-scenario.lolo +76 -28
- package/behaviors/lolo/ui/learning/atoms/std-learn-sim-3d.lolo +228 -109
- package/behaviors/lolo/ui/learning/atoms/std-learn-speed-drill.lolo +95 -44
- package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +199 -125
- package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +92 -48
- package/behaviors/lolo/ui/learning/atoms/std-learn-trace-player.lolo +239 -78
- package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +147 -38
- package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +123 -58
- package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +22 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +26 -0
- package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +26 -0
- package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +27 -1
- package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +27 -1
- package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +29 -9
- package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +26 -0
- package/behaviors/lolo-behavior-contracts.json +1 -1
- package/behaviors/registry/agent/atoms/std-agent-memory.orb +372 -2
- package/behaviors/registry/agent/atoms/std-agent-session.orb +4752 -348
- package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +54 -42
- package/behaviors/registry/agent/organisms/std-agent-assistant.orb +356 -122
- package/behaviors/registry/factory-signatures.json +1 -1
- package/behaviors/registry/infra/atoms/std-page-open.orb +435 -0
- package/behaviors/registry/infra/atoms/std-page-search.orb +867 -0
- package/behaviors/registry/infra/atoms/std-page-treat.orb +494 -0
- package/behaviors/registry/infra/atoms/std-page-watch.orb +554 -0
- package/behaviors/registry/ui/core/atoms/std-book-reader.orb +119 -0
- package/behaviors/registry/ui/core/atoms/std-card-grid.orb +61 -0
- package/behaviors/registry/ui/core/atoms/std-doc-page.orb +594 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +903 -369
- package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1002 -232
- package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +253 -74
- package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +3624 -921
- package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +685 -144
- package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +404 -52
- package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1787 -210
- package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +699 -71
- package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1102 -578
- package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +2760 -872
- package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +689 -152
- package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1431 -633
- package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +2485 -512
- package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +501 -197
- package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +3642 -928
- package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +705 -125
- package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +624 -114
- package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +405 -153
- package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1911 -611
- package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +436 -128
- package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +2482 -485
- package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +896 -192
- package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +2001 -759
- package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +734 -228
- package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +2501 -764
- package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1591 -173
- package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +883 -122
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +176 -0
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +211 -0
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +211 -0
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +212 -1
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +212 -1
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +203 -9
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +211 -0
- package/behaviors/signatures.lolo +325 -655
- package/dist/behaviors/exports-reader.js +16092 -9747
- package/dist/behaviors/functions/index.d.ts +1052 -136
- package/dist/behaviors/functions/index.js +16063 -9745
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +16093 -9748
- package/dist/behaviors/query.js +16092 -9747
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +45 -25
- package/dist/behaviors-registry.json +4650 -535
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16093 -9748
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +607 -263
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "std-page-treat — applies a declared visual treatment to one element of a browser tab (hide, blur, highlight, or label it with text) or restores it, and reports which element it treated. TREAT takes the tab and element id std-page-watch reports. The treatments are a fixed, declared set: no arbitrary styles or scripts. Needs a host with the `page` service (a browser extension).",
|
|
3
|
+
"ledger": {
|
|
4
|
+
"entries": {
|
|
5
|
+
"ent_01M431PMWEZFEQMV1ZADZ4AR3S": {
|
|
6
|
+
"bakedName": "PageTreatRecord",
|
|
7
|
+
"curName": "PageTreatRecord",
|
|
8
|
+
"id": "ent_01M431PMWEZFEQMV1ZADZ4AR3S",
|
|
9
|
+
"kind": "entity",
|
|
10
|
+
"owner": "workspace",
|
|
11
|
+
"renames": []
|
|
12
|
+
},
|
|
13
|
+
"evt_01M431PMWE4VVYTJQ6GD0DRJ28": {
|
|
14
|
+
"bakedName": "TREAT",
|
|
15
|
+
"curName": "TREAT",
|
|
16
|
+
"id": "evt_01M431PMWE4VVYTJQ6GD0DRJ28",
|
|
17
|
+
"kind": "event",
|
|
18
|
+
"owner": "workspace",
|
|
19
|
+
"parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
|
|
20
|
+
"renames": []
|
|
21
|
+
},
|
|
22
|
+
"evt_01M431PMWEAB7ZC4WPP859PDC7": {
|
|
23
|
+
"bakedName": "APPLIED",
|
|
24
|
+
"curName": "APPLIED",
|
|
25
|
+
"id": "evt_01M431PMWEAB7ZC4WPP859PDC7",
|
|
26
|
+
"kind": "event",
|
|
27
|
+
"owner": "workspace",
|
|
28
|
+
"parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
|
|
29
|
+
"renames": []
|
|
30
|
+
},
|
|
31
|
+
"evt_01M431PMWEBZK1KCZAB9FG6AE1": {
|
|
32
|
+
"bakedName": "TREAT_FAILED",
|
|
33
|
+
"curName": "TREAT_FAILED",
|
|
34
|
+
"id": "evt_01M431PMWEBZK1KCZAB9FG6AE1",
|
|
35
|
+
"kind": "event",
|
|
36
|
+
"owner": "workspace",
|
|
37
|
+
"parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
|
|
38
|
+
"renames": []
|
|
39
|
+
},
|
|
40
|
+
"evt_01M431PMWEC98MRRW9ZBPEGHEK": {
|
|
41
|
+
"bakedName": "INIT",
|
|
42
|
+
"curName": "INIT",
|
|
43
|
+
"id": "evt_01M431PMWEC98MRRW9ZBPEGHEK",
|
|
44
|
+
"kind": "event",
|
|
45
|
+
"owner": "workspace",
|
|
46
|
+
"parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
|
|
47
|
+
"renames": []
|
|
48
|
+
},
|
|
49
|
+
"evt_01M431PMWETQ15DFSCY7X3S3DQ": {
|
|
50
|
+
"bakedName": "APPLY_FAILED",
|
|
51
|
+
"curName": "APPLY_FAILED",
|
|
52
|
+
"id": "evt_01M431PMWETQ15DFSCY7X3S3DQ",
|
|
53
|
+
"kind": "event",
|
|
54
|
+
"owner": "workspace",
|
|
55
|
+
"parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
|
|
56
|
+
"renames": []
|
|
57
|
+
},
|
|
58
|
+
"evt_01M431PMWEYV983BES8KAC6K4E": {
|
|
59
|
+
"bakedName": "TREATED",
|
|
60
|
+
"curName": "TREATED",
|
|
61
|
+
"id": "evt_01M431PMWEYV983BES8KAC6K4E",
|
|
62
|
+
"kind": "event",
|
|
63
|
+
"owner": "workspace",
|
|
64
|
+
"parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
|
|
65
|
+
"renames": []
|
|
66
|
+
},
|
|
67
|
+
"orb_01M431PMWEGB77DC3DGPK02RAP": {
|
|
68
|
+
"bakedName": "PageTreatOrbital",
|
|
69
|
+
"curName": "PageTreatOrbital",
|
|
70
|
+
"id": "orb_01M431PMWEGB77DC3DGPK02RAP",
|
|
71
|
+
"kind": "orbital",
|
|
72
|
+
"owner": "workspace",
|
|
73
|
+
"renames": []
|
|
74
|
+
},
|
|
75
|
+
"pag_01M431PMWEF9RN6XNBYXP13BJ4": {
|
|
76
|
+
"bakedName": "PageTreatPage",
|
|
77
|
+
"curName": "PageTreatPage",
|
|
78
|
+
"id": "pag_01M431PMWEF9RN6XNBYXP13BJ4",
|
|
79
|
+
"kind": "page",
|
|
80
|
+
"owner": "workspace",
|
|
81
|
+
"renames": []
|
|
82
|
+
},
|
|
83
|
+
"trt_01M431PMWE8GVWK42G31TJKSYS": {
|
|
84
|
+
"bakedName": "PageTreat",
|
|
85
|
+
"curName": "PageTreat",
|
|
86
|
+
"id": "trt_01M431PMWE8GVWK42G31TJKSYS",
|
|
87
|
+
"kind": "trait",
|
|
88
|
+
"owner": "workspace",
|
|
89
|
+
"renames": []
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"schemaVersion": 1
|
|
93
|
+
},
|
|
94
|
+
"name": "std-page-treat",
|
|
95
|
+
"orbitals": [
|
|
96
|
+
{
|
|
97
|
+
"entity": {
|
|
98
|
+
"fields": [
|
|
99
|
+
{
|
|
100
|
+
"default": 0.0,
|
|
101
|
+
"description": "How many treatments were applied",
|
|
102
|
+
"name": "treated",
|
|
103
|
+
"synonyms": "count, applied",
|
|
104
|
+
"type": "number"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"default": "",
|
|
108
|
+
"description": "Why the last treatment failed; blank = none",
|
|
109
|
+
"name": "errorMessage",
|
|
110
|
+
"synonyms": "error, failure reason",
|
|
111
|
+
"type": "string"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"id": "ent_01M431PMWEZFEQMV1ZADZ4AR3S",
|
|
115
|
+
"name": "PageTreatRecord",
|
|
116
|
+
"persistence": "runtime"
|
|
117
|
+
},
|
|
118
|
+
"id": "orb_01M431PMWEGB77DC3DGPK02RAP",
|
|
119
|
+
"name": "PageTreatOrbital",
|
|
120
|
+
"pages": [
|
|
121
|
+
{
|
|
122
|
+
"id": "pag_01M431PMWEF9RN6XNBYXP13BJ4",
|
|
123
|
+
"name": "PageTreatPage",
|
|
124
|
+
"path": "/page-treat",
|
|
125
|
+
"traits": [
|
|
126
|
+
{
|
|
127
|
+
"ref": "PageTreat",
|
|
128
|
+
"refId": "trt_01M431PMWE8GVWK42G31TJKSYS"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"traits": [
|
|
134
|
+
{
|
|
135
|
+
"category": "interaction",
|
|
136
|
+
"config": {
|
|
137
|
+
"statusSlot": {
|
|
138
|
+
"default": "main",
|
|
139
|
+
"description": "Where the atom shows its one-line status; an organism running it in the background sends it to `system`",
|
|
140
|
+
"label": "Status slot",
|
|
141
|
+
"synonyms": "status area, slot",
|
|
142
|
+
"tier": "presentation",
|
|
143
|
+
"type": "slot"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"effectRow": [
|
|
147
|
+
{
|
|
148
|
+
"kind": "call-service",
|
|
149
|
+
"resource": "page.apply"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"kind": "emit",
|
|
153
|
+
"resource": "TREATED"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"kind": "emit",
|
|
157
|
+
"resource": "TREAT_FAILED"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"kind": "render-ui",
|
|
161
|
+
"resolved": false,
|
|
162
|
+
"resource": "@config.statusSlot"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"kind": "set",
|
|
166
|
+
"resource": "@entity.errorMessage"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"kind": "set",
|
|
170
|
+
"resource": "@entity.treated"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"emits": [
|
|
174
|
+
{
|
|
175
|
+
"description": "The page service applied the treatment",
|
|
176
|
+
"event": "APPLIED",
|
|
177
|
+
"eventId": "evt_01M431PMWEAB7ZC4WPP859PDC7",
|
|
178
|
+
"payloadSchema": [
|
|
179
|
+
{
|
|
180
|
+
"name": "applied",
|
|
181
|
+
"required": true,
|
|
182
|
+
"type": "boolean"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "tab",
|
|
186
|
+
"required": true,
|
|
187
|
+
"type": "number"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "elementId",
|
|
191
|
+
"required": true,
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "treatment",
|
|
196
|
+
"type": "string"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"tier": "secondary"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"description": "The page service could not apply the treatment",
|
|
203
|
+
"event": "APPLY_FAILED",
|
|
204
|
+
"eventId": "evt_01M431PMWETQ15DFSCY7X3S3DQ",
|
|
205
|
+
"payloadSchema": [
|
|
206
|
+
{
|
|
207
|
+
"name": "error",
|
|
208
|
+
"required": true,
|
|
209
|
+
"type": "string"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"tier": "secondary"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"description": "The element now shows the treatment (or, for restore, is back as it was)",
|
|
216
|
+
"event": "TREATED",
|
|
217
|
+
"eventId": "evt_01M431PMWEYV983BES8KAC6K4E",
|
|
218
|
+
"payloadSchema": [
|
|
219
|
+
{
|
|
220
|
+
"name": "tab",
|
|
221
|
+
"required": true,
|
|
222
|
+
"type": "number"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "elementId",
|
|
226
|
+
"required": true,
|
|
227
|
+
"type": "string"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "treatment",
|
|
231
|
+
"type": "string"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"scope": "external",
|
|
235
|
+
"synonyms": "hidden, blurred, highlighted, labelled, restored",
|
|
236
|
+
"tier": "primary"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"description": "The treatment could not be applied (the element is gone, or the tab closed)",
|
|
240
|
+
"event": "TREAT_FAILED",
|
|
241
|
+
"eventId": "evt_01M431PMWEBZK1KCZAB9FG6AE1",
|
|
242
|
+
"payloadSchema": [
|
|
243
|
+
{
|
|
244
|
+
"name": "error",
|
|
245
|
+
"required": true,
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"scope": "external",
|
|
250
|
+
"tier": "primary"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"entityRefIds": {
|
|
254
|
+
"PageTreatRecord": "ent_01M431PMWEZFEQMV1ZADZ4AR3S"
|
|
255
|
+
},
|
|
256
|
+
"id": "trt_01M431PMWE8GVWK42G31TJKSYS",
|
|
257
|
+
"linkedEntity": "PageTreatRecord",
|
|
258
|
+
"linkedEntityId": "ent_01M431PMWEZFEQMV1ZADZ4AR3S",
|
|
259
|
+
"name": "PageTreat",
|
|
260
|
+
"scope": "instance",
|
|
261
|
+
"stateMachine": {
|
|
262
|
+
"events": [
|
|
263
|
+
{
|
|
264
|
+
"id": "evt_01M431PMWEC98MRRW9ZBPEGHEK",
|
|
265
|
+
"key": "INIT",
|
|
266
|
+
"name": "Initialize"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"description": "Treat one page element; `label` is the text shown with it (for example why it was hidden)",
|
|
270
|
+
"external": true,
|
|
271
|
+
"id": "evt_01M431PMWE4VVYTJQ6GD0DRJ28",
|
|
272
|
+
"key": "TREAT",
|
|
273
|
+
"name": "Treat",
|
|
274
|
+
"payloadSchema": [
|
|
275
|
+
{
|
|
276
|
+
"name": "tab",
|
|
277
|
+
"required": true,
|
|
278
|
+
"type": "number"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "elementId",
|
|
282
|
+
"required": true,
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "treatment",
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "label",
|
|
291
|
+
"type": "string"
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"description": "The page service applied the treatment",
|
|
297
|
+
"id": "evt_01M431PMWEAB7ZC4WPP859PDC7",
|
|
298
|
+
"key": "APPLIED",
|
|
299
|
+
"name": "Applied",
|
|
300
|
+
"payloadSchema": [
|
|
301
|
+
{
|
|
302
|
+
"name": "applied",
|
|
303
|
+
"required": true,
|
|
304
|
+
"type": "boolean"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "tab",
|
|
308
|
+
"required": true,
|
|
309
|
+
"type": "number"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "elementId",
|
|
313
|
+
"required": true,
|
|
314
|
+
"type": "string"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "treatment",
|
|
318
|
+
"type": "string"
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"tier": "secondary"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"description": "The page service could not apply the treatment",
|
|
325
|
+
"id": "evt_01M431PMWETQ15DFSCY7X3S3DQ",
|
|
326
|
+
"key": "APPLY_FAILED",
|
|
327
|
+
"name": "Apply Failed",
|
|
328
|
+
"payloadSchema": [
|
|
329
|
+
{
|
|
330
|
+
"name": "error",
|
|
331
|
+
"required": true,
|
|
332
|
+
"type": "string"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"tier": "secondary"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"description": "The element now shows the treatment (or, for restore, is back as it was)",
|
|
339
|
+
"id": "evt_01M431PMWEYV983BES8KAC6K4E",
|
|
340
|
+
"key": "TREATED",
|
|
341
|
+
"name": "Treated",
|
|
342
|
+
"payloadSchema": [
|
|
343
|
+
{
|
|
344
|
+
"name": "tab",
|
|
345
|
+
"required": true,
|
|
346
|
+
"type": "number"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"name": "elementId",
|
|
350
|
+
"required": true,
|
|
351
|
+
"type": "string"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "treatment",
|
|
355
|
+
"type": "string"
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"synonyms": "hidden, blurred, highlighted, labelled, restored",
|
|
359
|
+
"tier": "primary"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"description": "The treatment could not be applied (the element is gone, or the tab closed)",
|
|
363
|
+
"id": "evt_01M431PMWEBZK1KCZAB9FG6AE1",
|
|
364
|
+
"key": "TREAT_FAILED",
|
|
365
|
+
"name": "Treat Failed",
|
|
366
|
+
"payloadSchema": [
|
|
367
|
+
{
|
|
368
|
+
"name": "error",
|
|
369
|
+
"required": true,
|
|
370
|
+
"type": "string"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"tier": "primary"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"states": [
|
|
377
|
+
{
|
|
378
|
+
"isInitial": true,
|
|
379
|
+
"name": "ready"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"transitions": [
|
|
383
|
+
{
|
|
384
|
+
"effects": [
|
|
385
|
+
[
|
|
386
|
+
"render-ui",
|
|
387
|
+
"@config.statusSlot",
|
|
388
|
+
{
|
|
389
|
+
"content": "Ready to treat page elements",
|
|
390
|
+
"role": "status",
|
|
391
|
+
"type": "typography",
|
|
392
|
+
"variant": "body"
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
],
|
|
396
|
+
"event": "INIT",
|
|
397
|
+
"eventId": "evt_01M431PMWEC98MRRW9ZBPEGHEK",
|
|
398
|
+
"from": "ready",
|
|
399
|
+
"to": "ready"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"effects": [
|
|
403
|
+
[
|
|
404
|
+
"call-service",
|
|
405
|
+
"page",
|
|
406
|
+
"apply",
|
|
407
|
+
{
|
|
408
|
+
"elementId": "@payload.elementId",
|
|
409
|
+
"label": "@payload.label",
|
|
410
|
+
"tab": "@payload.tab",
|
|
411
|
+
"treatment": "@payload.treatment"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"emit": {
|
|
415
|
+
"failure": "APPLY_FAILED",
|
|
416
|
+
"success": "APPLIED"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
]
|
|
420
|
+
],
|
|
421
|
+
"event": "TREAT",
|
|
422
|
+
"eventId": "evt_01M431PMWE4VVYTJQ6GD0DRJ28",
|
|
423
|
+
"from": "ready",
|
|
424
|
+
"to": "ready"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"effects": [
|
|
428
|
+
[
|
|
429
|
+
"set",
|
|
430
|
+
"@entity.treated",
|
|
431
|
+
[
|
|
432
|
+
"+",
|
|
433
|
+
"@entity.treated",
|
|
434
|
+
1.0
|
|
435
|
+
]
|
|
436
|
+
],
|
|
437
|
+
[
|
|
438
|
+
"emit",
|
|
439
|
+
"TREATED",
|
|
440
|
+
{
|
|
441
|
+
"elementId": "@payload.elementId",
|
|
442
|
+
"tab": "@payload.tab",
|
|
443
|
+
"treatment": "@payload.treatment"
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
],
|
|
447
|
+
"event": "APPLIED",
|
|
448
|
+
"eventId": "evt_01M431PMWEAB7ZC4WPP859PDC7",
|
|
449
|
+
"from": "ready",
|
|
450
|
+
"to": "ready"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"effects": [
|
|
454
|
+
[
|
|
455
|
+
"set",
|
|
456
|
+
"@entity.errorMessage",
|
|
457
|
+
"@payload.error"
|
|
458
|
+
],
|
|
459
|
+
[
|
|
460
|
+
"emit",
|
|
461
|
+
"TREAT_FAILED",
|
|
462
|
+
{
|
|
463
|
+
"error": "@payload.error"
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
[
|
|
467
|
+
"render-ui",
|
|
468
|
+
"@config.statusSlot",
|
|
469
|
+
{
|
|
470
|
+
"content": [
|
|
471
|
+
"str/concat",
|
|
472
|
+
"Couldn't treat a page element: ",
|
|
473
|
+
"@payload.error"
|
|
474
|
+
],
|
|
475
|
+
"role": "status",
|
|
476
|
+
"type": "typography",
|
|
477
|
+
"variant": "body"
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
],
|
|
481
|
+
"event": "APPLY_FAILED",
|
|
482
|
+
"eventId": "evt_01M431PMWETQ15DFSCY7X3S3DQ",
|
|
483
|
+
"from": "ready",
|
|
484
|
+
"to": "ready"
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
"schemaVersion": 1,
|
|
493
|
+
"version": "1.0.0"
|
|
494
|
+
}
|