@mgamadeus/ddd-agents 0.1.0-alpha.21 → 0.1.0-alpha.23
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/README.md +3 -2
- package/dist/chat.js +22 -72
- package/dist/chat.js.map +1 -1
- package/dist/chunks/{ConversationMarkdown-W7NHglmL.js → ConversationMarkdown-CJhAnuVa.js} +110 -8
- package/dist/chunks/ConversationMarkdown-CJhAnuVa.js.map +1 -0
- package/dist/chunks/{WebSearchResultsConversationWidget-BvnLWHyi.js → WebSearchResultsConversationWidget-DRBQvycE.js} +140 -1125
- package/dist/chunks/WebSearchResultsConversationWidget-DRBQvycE.js.map +1 -0
- package/dist/chunks/{canvasBodies-9SuF6NAB.js → canvasBodies-DLjDkviP.js} +9 -6
- package/dist/chunks/canvasBodies-DLjDkviP.js.map +1 -0
- package/dist/chunks/{canvas-behaviours-BRFR1ALE.js → decide-canvas-open-DBWoWtAC.js} +18 -2
- package/dist/chunks/decide-canvas-open-DBWoWtAC.js.map +1 -0
- package/dist/chunks/entity-detail-name-3A82gDAp.js +15 -0
- package/dist/chunks/entity-detail-name-3A82gDAp.js.map +1 -0
- package/dist/chunks/icon-names-Di6c4zLo.js +86 -0
- package/dist/chunks/icon-names-Di6c4zLo.js.map +1 -0
- package/dist/chunks/index-7Qc_3GbG.js +1046 -0
- package/dist/chunks/index-7Qc_3GbG.js.map +1 -0
- package/dist/chunks/{widget-image-readiness-signal-DeOuL89j.js → widget-image-readiness-signal-D3ci53xr.js} +2 -2
- package/dist/chunks/{widget-image-readiness-signal-DeOuL89j.js.map → widget-image-readiness-signal-D3ci53xr.js.map} +1 -1
- package/dist/chunks/{widget-name-resolver-DyIY6Zu4.js → widget-name-resolver-C8SfpiR5.js} +48 -116
- package/dist/chunks/widget-name-resolver-C8SfpiR5.js.map +1 -0
- package/dist/client-testing.js +68 -1
- package/dist/client-testing.js.map +1 -1
- package/dist/files/chat/Conversation.module.scss +268 -0
- package/dist/files/chat/ConversationViewBody/ConversationViewBody.module.scss +336 -0
- package/dist/files/chat/_conversation-tokens.scss +37 -0
- package/dist/files/image-render/WidgetImageRender.module.scss +22 -0
- package/dist/files/kit/ComposedViewConversationWidget.md +59 -0
- package/dist/files/kit/components/data/data.preview-fixtures.json +3298 -0
- package/dist/files/kit/components/embedding/widget.preview-fixtures.json +147 -0
- package/dist/files/kit/components/entity/entity-link.preview-fixtures.json +340 -0
- package/dist/files/kit/components/form/form.preview-fixtures.json +319 -0
- package/dist/files/kit/components/inputs/button.preview-fixtures.json +301 -0
- package/dist/files/kit/components/inputs/checkbox.preview-fixtures.json +35 -0
- package/dist/files/kit/components/inputs/date-picker.preview-fixtures.json +36 -0
- package/dist/files/kit/components/inputs/input.preview-fixtures.json +55 -0
- package/dist/files/kit/components/inputs/radio-group.preview-fixtures.json +76 -0
- package/dist/files/kit/components/inputs/select.preview-fixtures.json +314 -0
- package/dist/files/kit/components/inputs/slider.preview-fixtures.json +178 -0
- package/dist/files/kit/components/inputs/tabs.preview-fixtures.json +304 -0
- package/dist/files/kit/components/inputs/textarea.preview-fixtures.json +37 -0
- package/dist/files/kit/components/layout/layout.preview-fixtures.json +892 -0
- package/dist/files/kit/components/map/map.preview-fixtures.json +339 -0
- package/dist/files/kit/components/media/image-group.preview-fixtures.json +228 -0
- package/dist/files/kit/components/media/image.preview-fixtures.json +61 -0
- package/dist/files/kit/components/media/video-card/video-card.preview-fixtures.json +121 -0
- package/dist/files/kit/components/media/video.preview-fixtures.json +68 -0
- package/dist/files/kit/components/rich/code.preview-fixtures.json +105 -0
- package/dist/files/kit/components/rich/diagram.preview-fixtures.json +89 -0
- package/dist/files/kit/components/rich/math.preview-fixtures.json +152 -0
- package/dist/files/kit/components/rich/svg.preview-fixtures.json +243 -0
- package/dist/files/kit/components/text/badge.preview-fixtures.json +44 -0
- package/dist/files/kit/components/text/caption.preview-fixtures.json +31 -0
- package/dist/files/kit/components/text/favicon.preview-fixtures.json +69 -0
- package/dist/files/kit/components/text/label.preview-fixtures.json +48 -0
- package/dist/files/kit/components/text/link.preview-fixtures.json +103 -0
- package/dist/files/kit/components/text/markdown.preview-fixtures.json +29 -0
- package/dist/files/kit/components/text/source-ref.preview-fixtures.json +51 -0
- package/dist/files/kit/components/text/text.preview-fixtures.json +106 -0
- package/dist/files/kit/components/text/title.preview-fixtures.json +172 -0
- package/dist/files/kit/composed-view-widget-contract.json +88 -0
- package/dist/files/kit/composed-view.preview-fixtures.json +376 -0
- package/dist/files/renderer/conversation-widget-layout.module.scss +47 -0
- package/dist/files/renderer/widget-tree/composed-node-schema.json +3428 -0
- package/dist/files/styles/_conversation-widget-container.scss +6 -0
- package/dist/files/styles/_media.scss +50 -0
- package/dist/files/styles/_spacings.scss +23 -0
- package/dist/files/styles/_surfaces.scss +28 -0
- package/dist/files/widgets/ClockConversationWidget/ClockConversationWidget.md +53 -0
- package/dist/files/widgets/ClockConversationWidget/clock.preview-fixtures.json +76 -0
- package/dist/files/widgets/ConceptExplainerConversationWidget/ConceptExplainerConversationWidget.md +86 -0
- package/dist/files/widgets/ConceptExplainerConversationWidget/concept-explainer.preview-fixtures.json +23 -0
- package/dist/files/widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsConversationWidget.md +59 -0
- package/dist/files/widgets/ConversationSearchResultsConversationWidget/conversation-search-results.preview-fixtures.json +85 -0
- package/dist/files/widgets/CurrencyConverterConversationWidget/CurrencyConverterConversationWidget.md +51 -0
- package/dist/files/widgets/CurrencyConverterConversationWidget/currency-converter.preview-fixtures.json +73 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/CustomVisualizationConversationWidget.md +83 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/custom-visualization.preview-fixtures.json +227 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/sandbox-frame/custom-visualization-frame.html +188 -0
- package/dist/files/widgets/EntityMentionConversationWidget/EntityMentionConversationWidget.md +55 -0
- package/dist/files/widgets/EntityMentionConversationWidget/entity-mention.preview-fixtures.json +55 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/MultiChoiceConversationWidget.md +61 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/multi-choice-widget-contract.json +43 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/multi-choice.preview-fixtures.json +103 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/QuickRepliesConversationWidget.md +65 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/quick-replies-widget-contract.json +43 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/quick-replies.preview-fixtures.json +45 -0
- package/dist/files/widgets/SuggestedActions/SuggestedActions.md +60 -0
- package/dist/files/widgets/SuggestedActions/suggested-actions.preview-fixtures.json +19 -0
- package/dist/files/widgets/ToolTraceConversationWidget/ToolTraceConversationWidget.md +48 -0
- package/dist/files/widgets/ToolTraceConversationWidget/tool-trace.preview-fixtures.json +32 -0
- package/dist/files/widgets/WebSearchResultsConversationWidget/WebSearchResultsConversationWidget.md +49 -0
- package/dist/files/widgets/WebSearchResultsConversationWidget/web-search-results.preview-fixtures.json +57 -0
- package/dist/files/widgets/WritingDraftConversationWidget/WritingDraftConversationWidget.md +66 -0
- package/dist/files/widgets/WritingDraftConversationWidget/writing-draft.preview-fixtures.json +129 -0
- package/dist/image-render.js +11 -10
- package/dist/image-render.js.map +1 -1
- package/dist/index.js +32 -28
- package/dist/index.js.map +1 -1
- package/dist/kit.js +11 -2
- package/dist/kit.js.map +1 -1
- package/dist/preview.js +7 -6
- package/dist/provider.js +71 -0
- package/dist/provider.js.map +1 -0
- package/dist/renderer.js +138 -63
- package/dist/renderer.js.map +1 -1
- package/dist/styles.css +32 -17
- package/dist/types/client/testing/test-conversation-widgets.d.ts +25 -0
- package/dist/types/client/testing/widget-hydration-stand-ins.d.ts +33 -0
- package/dist/types/entries/chat.d.ts +10 -0
- package/dist/types/entries/client-testing.d.ts +2 -0
- package/dist/types/entries/index.d.ts +4 -3
- package/dist/types/entries/kit.d.ts +7 -0
- package/dist/types/entries/preview.d.ts +1 -0
- package/dist/types/entries/provider.d.ts +1 -0
- package/dist/types/entries/renderer.d.ts +16 -0
- package/dist/types/entries/widgets.d.ts +13 -0
- package/dist/types/kit/components/data/apex-chart-component.d.ts +3 -0
- package/dist/types/kit/components/data/chart-model.d.ts +164 -0
- package/dist/types/kit/components/data/data-value-format.d.ts +44 -0
- package/dist/types/kit/components/data/use-chart-palette.d.ts +9 -0
- package/dist/types/kit/components/data/use-number-locale.d.ts +5 -0
- package/dist/types/provider/index.d.ts +1 -0
- package/dist/types/renderer/_access/ConversationWidgetGateSkeleton.d.ts +6 -0
- package/dist/types/renderer/_agent-space/use-conversation-widget-agent-space-fallback.d.ts +16 -0
- package/dist/types/renderer/canvas/use-anchor-widget-agent-space-key.d.ts +17 -0
- package/dist/types/renderer/conversationWidgetRegistry.d.ts +6 -0
- package/dist/types/renderer/read-conversation-widget-variant.d.ts +22 -0
- package/dist/types/widgets/_shared/CardFooter.d.ts +6 -0
- package/dist/types/widgets/_shared/WidgetLabel.d.ts +8 -0
- package/dist/types/widgets/_shared/entity-update-channel.d.ts +17 -0
- package/dist/types/widgets/_shared/use-element-visible.d.ts +6 -0
- package/dist/widgets.js +120 -27
- package/dist/widgets.js.map +1 -1
- package/package.json +74 -1
- package/public-api.json +761 -0
- package/dist/chunks/ConversationMarkdown-W7NHglmL.js.map +0 -1
- package/dist/chunks/WebSearchResultsConversationWidget-BvnLWHyi.js.map +0 -1
- package/dist/chunks/canvas-behaviours-BRFR1ALE.js.map +0 -1
- package/dist/chunks/canvasBodies-9SuF6NAB.js.map +0 -1
- package/dist/chunks/decide-canvas-open-Ct-wnNEJ.js +0 -20
- package/dist/chunks/decide-canvas-open-Ct-wnNEJ.js.map +0 -1
- package/dist/chunks/widget-name-resolver-DyIY6Zu4.js.map +0 -1
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
{
|
|
2
|
+
"wireName": "ComposedView",
|
|
3
|
+
"fixtures": [
|
|
4
|
+
{
|
|
5
|
+
"name": "tabs-analytics-dashboard",
|
|
6
|
+
"description": "The nested analytics dashboard: a 7/30-day segmented control in the card header switches the KPIs, the visitor line and the channel bars (ChatGPT reference 05).",
|
|
7
|
+
"payload": {
|
|
8
|
+
"state": {
|
|
9
|
+
"period": "7d"
|
|
10
|
+
},
|
|
11
|
+
"data": {
|
|
12
|
+
"week": [
|
|
13
|
+
{
|
|
14
|
+
"day": "Mon",
|
|
15
|
+
"visitors": 980
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"day": "Tue",
|
|
19
|
+
"visitors": 1120
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"day": "Wed",
|
|
23
|
+
"visitors": 1040
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"day": "Thu",
|
|
27
|
+
"visitors": 1260
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"day": "Fri",
|
|
31
|
+
"visitors": 1130
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"day": "Sat",
|
|
35
|
+
"visitors": 1460
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"day": "Sun",
|
|
39
|
+
"visitors": 1210
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"month": [
|
|
43
|
+
{
|
|
44
|
+
"day": "W1",
|
|
45
|
+
"visitors": 7600
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"day": "W2",
|
|
49
|
+
"visitors": 8100
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"day": "W3",
|
|
53
|
+
"visitors": 8900
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"day": "W4",
|
|
57
|
+
"visitors": 9500
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"channelsWeek": [
|
|
61
|
+
{
|
|
62
|
+
"channel": "Organic",
|
|
63
|
+
"share": 54
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"channel": "Paid",
|
|
67
|
+
"share": 28
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"channel": "Direct",
|
|
71
|
+
"share": 18
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"channelsMonth": [
|
|
75
|
+
{
|
|
76
|
+
"channel": "Organic",
|
|
77
|
+
"share": 51
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"channel": "Paid",
|
|
81
|
+
"share": 31
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"channel": "Direct",
|
|
85
|
+
"share": 18
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"computed": {
|
|
90
|
+
"plotted": "period == \"7d\" ? week : month",
|
|
91
|
+
"channels": "period == \"7d\" ? channelsWeek : channelsMonth",
|
|
92
|
+
"visitors": "sum(plotted, r => r.visitors)",
|
|
93
|
+
"visitorsDelta": "period == \"7d\" ? 12.4 : 9.1",
|
|
94
|
+
"conversionRate": "period == \"7d\" ? 4.6 : 4.3",
|
|
95
|
+
"conversionDelta": "period == \"7d\" ? 0.3 : 0.1"
|
|
96
|
+
},
|
|
97
|
+
"view": {
|
|
98
|
+
"type": "Surface",
|
|
99
|
+
"title": "Analytics",
|
|
100
|
+
"subtitle": "Interactive demo · example data",
|
|
101
|
+
"slots": {
|
|
102
|
+
"header": [
|
|
103
|
+
{
|
|
104
|
+
"type": "Tabs",
|
|
105
|
+
"options": [
|
|
106
|
+
{
|
|
107
|
+
"id": "7d",
|
|
108
|
+
"label": "7 days"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "30d",
|
|
112
|
+
"label": "30 days"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"value": {
|
|
116
|
+
"$state": "period"
|
|
117
|
+
},
|
|
118
|
+
"onChange": {
|
|
119
|
+
"set": "period"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"children": [
|
|
125
|
+
{
|
|
126
|
+
"type": "Grid",
|
|
127
|
+
"columns": 2,
|
|
128
|
+
"gap": "small",
|
|
129
|
+
"children": [
|
|
130
|
+
{
|
|
131
|
+
"type": "KpiTile",
|
|
132
|
+
"label": "Visitors",
|
|
133
|
+
"value": {
|
|
134
|
+
"$computed": "visitors"
|
|
135
|
+
},
|
|
136
|
+
"format": "number",
|
|
137
|
+
"delta": {
|
|
138
|
+
"$computed": "visitorsDelta"
|
|
139
|
+
},
|
|
140
|
+
"deltaFormat": "percent",
|
|
141
|
+
"higherIsBetter": true
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "KpiTile",
|
|
145
|
+
"label": "Conversion rate",
|
|
146
|
+
"value": {
|
|
147
|
+
"$computed": "conversionRate"
|
|
148
|
+
},
|
|
149
|
+
"format": "percent",
|
|
150
|
+
"decimals": 1,
|
|
151
|
+
"delta": {
|
|
152
|
+
"$computed": "conversionDelta"
|
|
153
|
+
},
|
|
154
|
+
"deltaLabel": "pp",
|
|
155
|
+
"higherIsBetter": true
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "Chart",
|
|
161
|
+
"kind": "line",
|
|
162
|
+
"title": "Visitor trend",
|
|
163
|
+
"data": {
|
|
164
|
+
"$computed": "plotted"
|
|
165
|
+
},
|
|
166
|
+
"x": "day",
|
|
167
|
+
"series": [
|
|
168
|
+
{
|
|
169
|
+
"field": "visitors",
|
|
170
|
+
"label": "Visitors"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"valueFormat": "number"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "Chart",
|
|
177
|
+
"kind": "bar",
|
|
178
|
+
"horizontal": true,
|
|
179
|
+
"title": "Channels",
|
|
180
|
+
"caption": "Share of traffic",
|
|
181
|
+
"data": {
|
|
182
|
+
"$computed": "channels"
|
|
183
|
+
},
|
|
184
|
+
"x": "channel",
|
|
185
|
+
"series": [
|
|
186
|
+
{
|
|
187
|
+
"field": "share",
|
|
188
|
+
"label": "Share"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"valueFormat": "percent"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"expectedState": "data",
|
|
197
|
+
"width": 528,
|
|
198
|
+
"interactions": [
|
|
199
|
+
{
|
|
200
|
+
"name": "switch to 30 days",
|
|
201
|
+
"click": {
|
|
202
|
+
"text": "30 days"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "back to 7 days",
|
|
207
|
+
"click": {
|
|
208
|
+
"text": "7 days"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "tabs-alone",
|
|
215
|
+
"description": "One segmented control on its own, with a label and three choices (Bear / Base / Bull).",
|
|
216
|
+
"payload": {
|
|
217
|
+
"state": {
|
|
218
|
+
"scenario": "base"
|
|
219
|
+
},
|
|
220
|
+
"view": {
|
|
221
|
+
"type": "Tabs",
|
|
222
|
+
"label": "Scenario",
|
|
223
|
+
"options": [
|
|
224
|
+
"Bear",
|
|
225
|
+
{
|
|
226
|
+
"id": "base",
|
|
227
|
+
"label": "Base"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "bull",
|
|
231
|
+
"label": "Bull"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"value": {
|
|
235
|
+
"$state": "scenario"
|
|
236
|
+
},
|
|
237
|
+
"onChange": {
|
|
238
|
+
"set": "scenario"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"expectedState": "data",
|
|
243
|
+
"width": 528,
|
|
244
|
+
"interactions": [
|
|
245
|
+
{
|
|
246
|
+
"name": "pick Bull",
|
|
247
|
+
"click": {
|
|
248
|
+
"text": "Bull"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "tabs-loading",
|
|
255
|
+
"description": "The choices are bound to a tool result that has not arrived yet — the control's place is a skeleton.",
|
|
256
|
+
"payload": {
|
|
257
|
+
"state": {
|
|
258
|
+
"period": "7d"
|
|
259
|
+
},
|
|
260
|
+
"view": {
|
|
261
|
+
"type": "Tabs",
|
|
262
|
+
"label": "Period",
|
|
263
|
+
"options": {
|
|
264
|
+
"$from": {
|
|
265
|
+
"toolCall": "call_pending",
|
|
266
|
+
"path": "$.periods"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"value": {
|
|
270
|
+
"$state": "period"
|
|
271
|
+
},
|
|
272
|
+
"onChange": {
|
|
273
|
+
"set": "period"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"expectedState": "loading",
|
|
278
|
+
"width": 528
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "tabs-no-options",
|
|
282
|
+
"description": "No usable choice — the control renders nothing inside its card and the block reports failed (INVALID_PROP). The preview sees the card (state data); the block's render report says failed.",
|
|
283
|
+
"payload": {
|
|
284
|
+
"view": {
|
|
285
|
+
"type": "Surface",
|
|
286
|
+
"title": "Analytics",
|
|
287
|
+
"children": [
|
|
288
|
+
{
|
|
289
|
+
"type": "Tabs",
|
|
290
|
+
"label": "Period",
|
|
291
|
+
"options": [
|
|
292
|
+
{
|
|
293
|
+
"description": "no label"
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"expectedState": "error",
|
|
301
|
+
"width": 528
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"wireName": "ComposedView",
|
|
3
|
+
"fixtures": [
|
|
4
|
+
{
|
|
5
|
+
"name": "textarea-note",
|
|
6
|
+
"description": "A multi-line field with a counter.",
|
|
7
|
+
"payload": {
|
|
8
|
+
"state": {
|
|
9
|
+
"note": "Open on Sundays from 10 to 14."
|
|
10
|
+
},
|
|
11
|
+
"view": {
|
|
12
|
+
"type": "Textarea",
|
|
13
|
+
"label": "Note for the team",
|
|
14
|
+
"rows": 4,
|
|
15
|
+
"maxLength": 280,
|
|
16
|
+
"value": {
|
|
17
|
+
"$state": "note"
|
|
18
|
+
},
|
|
19
|
+
"onChange": {
|
|
20
|
+
"set": "note"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"expectedState": "data",
|
|
25
|
+
"width": 528,
|
|
26
|
+
"interactions": [
|
|
27
|
+
{
|
|
28
|
+
"name": "type",
|
|
29
|
+
"fill": {
|
|
30
|
+
"selector": "textarea >> visible=true",
|
|
31
|
+
"value": "Closed on public holidays."
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|