@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,376 @@
|
|
|
1
|
+
{
|
|
2
|
+
"wireName": "ComposedView",
|
|
3
|
+
"fixtures": [
|
|
4
|
+
{
|
|
5
|
+
"name": "video-card",
|
|
6
|
+
"description": "One stub component: a single Video node (the core declares its schema, lane L4 builds its component) — the ChatGPT video reference.",
|
|
7
|
+
"payload": {
|
|
8
|
+
"view": {
|
|
9
|
+
"type": "Video",
|
|
10
|
+
"title": "Münster walking tour — old town and Prinzipalmarkt",
|
|
11
|
+
"videoId": "x5-yoDUoz5k",
|
|
12
|
+
"thumbnail": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiA5Ij48cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iOSIgZmlsbD0iIzQ0NTU2NiIvPjxwb2x5Z29uIHBvaW50cz0iNiwyIDYsNyAxMSw0LjUiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",
|
|
13
|
+
"durationSeconds": 1418,
|
|
14
|
+
"channel": "Walking Germany"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"stubComposedViewComponents": true,
|
|
18
|
+
"expectedState": "data",
|
|
19
|
+
"width": 528
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "tree",
|
|
23
|
+
"description": "A ComposedView tree with state, inline rows, a computed value and a Video root rendered through the preview stub — the richest tree the core can render before the lanes ship their layout and data components.",
|
|
24
|
+
"payload": {
|
|
25
|
+
"title": "Videos about Münster",
|
|
26
|
+
"state": {
|
|
27
|
+
"period": "7d"
|
|
28
|
+
},
|
|
29
|
+
"data": {
|
|
30
|
+
"rows": [
|
|
31
|
+
{
|
|
32
|
+
"x": "Mo",
|
|
33
|
+
"visits": 980
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"x": "Di",
|
|
37
|
+
"visits": 1120
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"computed": {
|
|
42
|
+
"total": "sum(rows, r => r.visits)"
|
|
43
|
+
},
|
|
44
|
+
"view": {
|
|
45
|
+
"type": "Video",
|
|
46
|
+
"title": "Münster in 4K — a summer evening",
|
|
47
|
+
"url": "https://www.youtube.com/watch?v=x5-yoDUoz5k",
|
|
48
|
+
"durationSeconds": 734,
|
|
49
|
+
"channel": "City Walks",
|
|
50
|
+
"source": {
|
|
51
|
+
"name": "YouTube",
|
|
52
|
+
"url": "https://www.youtube.com"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"stubComposedViewComponents": true,
|
|
57
|
+
"expectedState": "data",
|
|
58
|
+
"width": 528
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "kit-example",
|
|
62
|
+
"description": "The kit's taught example (ComposedViewKitSpec::JSON_FENCE_SPEC, round 10 K1) with its two $from bindings resolved: Tabs switch a computed between the two datasets, a Repeat of TableRows shows each channel with a sparkline over its own days.",
|
|
63
|
+
"payload": {
|
|
64
|
+
"title": "Visits per channel",
|
|
65
|
+
"state": {
|
|
66
|
+
"period": "7d"
|
|
67
|
+
},
|
|
68
|
+
"data": {
|
|
69
|
+
"d7": {
|
|
70
|
+
"$from": {
|
|
71
|
+
"toolCall": "call_7",
|
|
72
|
+
"path": "$.rows[*]",
|
|
73
|
+
"state": "resolved",
|
|
74
|
+
"value": [
|
|
75
|
+
{
|
|
76
|
+
"channel": "Google Search",
|
|
77
|
+
"days": [
|
|
78
|
+
{
|
|
79
|
+
"day": "Mon",
|
|
80
|
+
"visits": 120
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"day": "Tue",
|
|
84
|
+
"visits": 130
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"day": "Wed",
|
|
88
|
+
"visits": 139
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"day": "Thu",
|
|
92
|
+
"visits": 149
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"day": "Fri",
|
|
96
|
+
"visits": 158
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"day": "Sat",
|
|
100
|
+
"visits": 168
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"day": "Sun",
|
|
104
|
+
"visits": 178
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"channel": "Google Maps",
|
|
110
|
+
"days": [
|
|
111
|
+
{
|
|
112
|
+
"day": "Mon",
|
|
113
|
+
"visits": 80
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"day": "Tue",
|
|
117
|
+
"visits": 86
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"day": "Wed",
|
|
121
|
+
"visits": 93
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"day": "Thu",
|
|
125
|
+
"visits": 99
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"day": "Fri",
|
|
129
|
+
"visits": 106
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"day": "Sat",
|
|
133
|
+
"visits": 112
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"day": "Sun",
|
|
137
|
+
"visits": 118
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"channel": "Direct",
|
|
143
|
+
"days": [
|
|
144
|
+
{
|
|
145
|
+
"day": "Mon",
|
|
146
|
+
"visits": 40
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"day": "Tue",
|
|
150
|
+
"visits": 43
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"day": "Wed",
|
|
154
|
+
"visits": 46
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"day": "Thu",
|
|
158
|
+
"visits": 50
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"day": "Fri",
|
|
162
|
+
"visits": 53
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"day": "Sat",
|
|
166
|
+
"visits": 56
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"day": "Sun",
|
|
170
|
+
"visits": 59
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"rowCount": 3,
|
|
176
|
+
"resolvedAt": "2026-10-26T09:00:00Z"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"d30": {
|
|
180
|
+
"$from": {
|
|
181
|
+
"toolCall": "call_8",
|
|
182
|
+
"path": "$.rows[*]",
|
|
183
|
+
"state": "resolved",
|
|
184
|
+
"value": [
|
|
185
|
+
{
|
|
186
|
+
"channel": "Google Search",
|
|
187
|
+
"days": [
|
|
188
|
+
{
|
|
189
|
+
"day": "Mon",
|
|
190
|
+
"visits": 504
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"day": "Tue",
|
|
194
|
+
"visits": 544
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"day": "Wed",
|
|
198
|
+
"visits": 585
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"day": "Thu",
|
|
202
|
+
"visits": 625
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"day": "Fri",
|
|
206
|
+
"visits": 665
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"day": "Sat",
|
|
210
|
+
"visits": 706
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"day": "Sun",
|
|
214
|
+
"visits": 746
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"channel": "Google Maps",
|
|
220
|
+
"days": [
|
|
221
|
+
{
|
|
222
|
+
"day": "Mon",
|
|
223
|
+
"visits": 336
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"day": "Tue",
|
|
227
|
+
"visits": 363
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"day": "Wed",
|
|
231
|
+
"visits": 390
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"day": "Thu",
|
|
235
|
+
"visits": 417
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"day": "Fri",
|
|
239
|
+
"visits": 444
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"day": "Sat",
|
|
243
|
+
"visits": 470
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"day": "Sun",
|
|
247
|
+
"visits": 497
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"channel": "Direct",
|
|
253
|
+
"days": [
|
|
254
|
+
{
|
|
255
|
+
"day": "Mon",
|
|
256
|
+
"visits": 168
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"day": "Tue",
|
|
260
|
+
"visits": 181
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"day": "Wed",
|
|
264
|
+
"visits": 195
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"day": "Thu",
|
|
268
|
+
"visits": 208
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"day": "Fri",
|
|
272
|
+
"visits": 222
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"day": "Sat",
|
|
276
|
+
"visits": 235
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"day": "Sun",
|
|
280
|
+
"visits": 249
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"rowCount": 3,
|
|
286
|
+
"resolvedAt": "2026-10-26T09:00:00Z"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"computed": {
|
|
291
|
+
"rows": "period == '7d' ? d7 : d30"
|
|
292
|
+
},
|
|
293
|
+
"view": {
|
|
294
|
+
"type": "Stack",
|
|
295
|
+
"children": [
|
|
296
|
+
{
|
|
297
|
+
"type": "Tabs",
|
|
298
|
+
"options": [
|
|
299
|
+
{
|
|
300
|
+
"id": "7d",
|
|
301
|
+
"label": "7 days"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "30d",
|
|
305
|
+
"label": "30 days"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"value": {
|
|
309
|
+
"$state": "period"
|
|
310
|
+
},
|
|
311
|
+
"onChange": {
|
|
312
|
+
"set": "period"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "Table",
|
|
317
|
+
"source": {
|
|
318
|
+
"name": "getVisits"
|
|
319
|
+
},
|
|
320
|
+
"children": [
|
|
321
|
+
{
|
|
322
|
+
"type": "Repeat",
|
|
323
|
+
"items": {
|
|
324
|
+
"$computed": "rows"
|
|
325
|
+
},
|
|
326
|
+
"children": [
|
|
327
|
+
{
|
|
328
|
+
"type": "TableRow",
|
|
329
|
+
"children": [
|
|
330
|
+
{
|
|
331
|
+
"type": "TableCell",
|
|
332
|
+
"value": {
|
|
333
|
+
"$item": "channel"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"type": "TableCell",
|
|
338
|
+
"children": [
|
|
339
|
+
{
|
|
340
|
+
"type": "Chart",
|
|
341
|
+
"kind": "line",
|
|
342
|
+
"data": {
|
|
343
|
+
"$item": "days"
|
|
344
|
+
},
|
|
345
|
+
"x": "day",
|
|
346
|
+
"series": [
|
|
347
|
+
{
|
|
348
|
+
"field": "visits",
|
|
349
|
+
"label": "Visits"
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"expectedState": "data",
|
|
365
|
+
"width": 528,
|
|
366
|
+
"interactions": [
|
|
367
|
+
{
|
|
368
|
+
"name": "switch to 30 days",
|
|
369
|
+
"click": {
|
|
370
|
+
"text": "30 days"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.narrow {
|
|
2
|
+
width: 60%;
|
|
3
|
+
margin-left: auto;
|
|
4
|
+
margin-right: auto;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* This file is loaded by postcss-modules via `composes: ... from` (see
|
|
9
|
+
ConversationMarkdown.module.scss / Conversation.module.scss), which parses it with
|
|
10
|
+
the plain CSS parser — keep it free of Sass-only syntax (`//` comments,
|
|
11
|
+
`$vars`). */
|
|
12
|
+
|
|
13
|
+
/* Break out of the content column to 5/3 of its width, but never wider than
|
|
14
|
+
the chatPane container minus a 48px gutter each side — on mid-size panes
|
|
15
|
+
(~800–1400px) the unclamped overhang is wider than the pane and clips at
|
|
16
|
+
its edge. */
|
|
17
|
+
.wide {
|
|
18
|
+
--agents-wide-breakout-width: clamp(100%, 100cqw - 96px, calc(100% * 5 / 3));
|
|
19
|
+
width: var(--agents-wide-breakout-width);
|
|
20
|
+
margin-left: calc((100% - var(--agents-wide-breakout-width)) / 2);
|
|
21
|
+
margin-right: calc((100% - var(--agents-wide-breakout-width)) / 2);
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@container chatPane (max-width: 768px) {
|
|
26
|
+
.narrow {
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.wide {
|
|
31
|
+
width: 100%;
|
|
32
|
+
margin-left: 0;
|
|
33
|
+
margin-right: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (max-width: 768px) {
|
|
38
|
+
.narrow {
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.wide {
|
|
43
|
+
width: 100%;
|
|
44
|
+
margin-left: 0;
|
|
45
|
+
margin-right: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|