@embeddables/cli 0.9.6 → 0.11.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 (85) hide show
  1. package/.prompts/embeddables-cli.md +66 -3
  2. package/README.md +1 -0
  3. package/dist/assets-manifest.d.ts +31 -0
  4. package/dist/assets-manifest.d.ts.map +1 -0
  5. package/dist/assets-manifest.js +59 -0
  6. package/dist/assets-manifest.js.map +1 -0
  7. package/dist/cli.js +119 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/command-history.d.ts +13 -0
  10. package/dist/command-history.d.ts.map +1 -0
  11. package/dist/command-history.js +35 -0
  12. package/dist/command-history.js.map +1 -0
  13. package/dist/commands/assets-sync.d.ts +6 -0
  14. package/dist/commands/assets-sync.d.ts.map +1 -0
  15. package/dist/commands/assets-sync.js +35 -0
  16. package/dist/commands/assets-sync.js.map +1 -0
  17. package/dist/commands/assets-upload.d.ts +13 -0
  18. package/dist/commands/assets-upload.d.ts.map +1 -0
  19. package/dist/commands/assets-upload.js +475 -0
  20. package/dist/commands/assets-upload.js.map +1 -0
  21. package/dist/commands/diff.d.ts +90 -0
  22. package/dist/commands/diff.d.ts.map +1 -0
  23. package/dist/commands/diff.js +738 -0
  24. package/dist/commands/diff.js.map +1 -0
  25. package/dist/commands/experiments-connect.js +22 -19
  26. package/dist/commands/experiments-connect.js.map +1 -1
  27. package/dist/commands/feedback.d.ts +29 -0
  28. package/dist/commands/feedback.d.ts.map +1 -0
  29. package/dist/commands/feedback.js +275 -0
  30. package/dist/commands/feedback.js.map +1 -0
  31. package/dist/commands/init.d.ts.map +1 -1
  32. package/dist/commands/init.js +11 -90
  33. package/dist/commands/init.js.map +1 -1
  34. package/dist/commands/pull.d.ts.map +1 -1
  35. package/dist/commands/pull.js +3 -0
  36. package/dist/commands/pull.js.map +1 -1
  37. package/dist/compiler/errors.d.ts +7 -0
  38. package/dist/compiler/errors.d.ts.map +1 -1
  39. package/dist/compiler/errors.js +10 -0
  40. package/dist/compiler/errors.js.map +1 -1
  41. package/dist/compiler/index.d.ts.map +1 -1
  42. package/dist/compiler/index.js +4 -2
  43. package/dist/compiler/index.js.map +1 -1
  44. package/dist/constants/defaultTagStylesV4.d.ts +6 -0
  45. package/dist/constants/defaultTagStylesV4.d.ts.map +1 -0
  46. package/dist/constants/defaultTagStylesV4.js +659 -0
  47. package/dist/constants/defaultTagStylesV4.js.map +1 -0
  48. package/dist/constants.d.ts +2 -0
  49. package/dist/constants.d.ts.map +1 -1
  50. package/dist/constants.js +2 -0
  51. package/dist/constants.js.map +1 -1
  52. package/dist/group-context.d.ts +2 -0
  53. package/dist/group-context.d.ts.map +1 -0
  54. package/dist/group-context.js +29 -0
  55. package/dist/group-context.js.map +1 -0
  56. package/dist/helpers/typeStubs.d.ts +25 -0
  57. package/dist/helpers/typeStubs.d.ts.map +1 -0
  58. package/dist/helpers/typeStubs.js +153 -0
  59. package/dist/helpers/typeStubs.js.map +1 -0
  60. package/dist/logger.d.ts +5 -2
  61. package/dist/logger.d.ts.map +1 -1
  62. package/dist/logger.js +33 -12
  63. package/dist/logger.js.map +1 -1
  64. package/dist/prompts/experiments.d.ts +3 -1
  65. package/dist/prompts/experiments.d.ts.map +1 -1
  66. package/dist/prompts/experiments.js +12 -5
  67. package/dist/prompts/experiments.js.map +1 -1
  68. package/dist/stdout.d.ts +4 -0
  69. package/dist/stdout.d.ts.map +1 -1
  70. package/dist/stdout.js +33 -3
  71. package/dist/stdout.js.map +1 -1
  72. package/dist/workbench/FieldEditorPanel.d.ts +2 -1
  73. package/dist/workbench/FieldEditorPanel.d.ts.map +1 -1
  74. package/dist/workbench/FieldEditorPanel.js +21 -10
  75. package/dist/workbench/FieldEditorPanel.js.map +1 -1
  76. package/dist/workbench/UserDataPanel.d.ts.map +1 -1
  77. package/dist/workbench/UserDataPanel.js +103 -3
  78. package/dist/workbench/UserDataPanel.js.map +1 -1
  79. package/dist/{commands/build-workbench.d.ts → workbench/build.d.ts} +1 -1
  80. package/dist/workbench/build.d.ts.map +1 -0
  81. package/dist/{commands/build-workbench.js → workbench/build.js} +1 -1
  82. package/dist/workbench/build.js.map +1 -0
  83. package/package.json +1 -1
  84. package/dist/commands/build-workbench.d.ts.map +0 -1
  85. package/dist/commands/build-workbench.js.map +0 -1
@@ -0,0 +1,659 @@
1
+ export const DEFAULT_TAGS_STYLES_V4 = {
2
+ standard_container: {
3
+ '.Flow-Component.ComponentTag-standard_container': {
4
+ padding: '16px',
5
+ display: 'flex',
6
+ 'flex-direction': 'column',
7
+ 'justify-content': 'flex-start',
8
+ 'align-items': 'center',
9
+ gap: '16px',
10
+ },
11
+ },
12
+ standard_image: {
13
+ '.Flow-Element.ElementType-Image.ComponentTag-standard_image': {
14
+ 'max-width': '100%',
15
+ },
16
+ },
17
+ standard_button: {
18
+ '.Flow-Component.ComponentTag-standard_button': {
19
+ display: 'block',
20
+ padding: '8px 32px',
21
+ color: 'inherit',
22
+ 'background-color': '#FFFFFF',
23
+ 'border-color': '#DDDDDD',
24
+ 'border-width': '1px',
25
+ 'border-style': 'solid',
26
+ 'border-radius': 'var(--border-radius)',
27
+ transition: 'background-color 0.3s, color 0.3s',
28
+ cursor: 'pointer',
29
+ 'text-decoration': 'none',
30
+ 'font-size': 'inherit',
31
+ 'font-family': 'inherit',
32
+ 'font-weight': 'inherit',
33
+ },
34
+ '.Flow-Component.ComponentTag-standard_button[disabled=disabled]': {
35
+ color: '#AAAAAA',
36
+ background: '#EEEEEE',
37
+ cursor: 'default',
38
+ 'pointer-events': 'none',
39
+ },
40
+ '.Flow-Component.ComponentTag-standard_button:focus': {
41
+ 'outline-color': 'var(--color-primary)',
42
+ },
43
+ '.Flow-Component.ComponentType-CustomButton.ComponentTag-standard_button .ElementType-ButtonIcon': {
44
+ 'font-size': '40px',
45
+ color: '#999999',
46
+ },
47
+ '.Flow-Component.ComponentType-CustomButton.ComponentTag-standard_button .ElementType-ButtonIconImage': {
48
+ 'max-width': '100%',
49
+ 'max-height': '50px',
50
+ },
51
+ },
52
+ standard_media_embed: {
53
+ '.Flow-Component.ComponentTag-standard_media_embed': {
54
+ position: 'relative',
55
+ width: '100%',
56
+ },
57
+ },
58
+ standard_slider: {
59
+ '.Flow-Component.ComponentTag-standard_slider': {
60
+ width: '300px',
61
+ 'max-width': '100%',
62
+ position: 'relative',
63
+ display: 'flex',
64
+ 'flex-direction': 'column',
65
+ },
66
+ '.ComponentTag-standard_slider .Flow-Element.ElementType-Label': {
67
+ display: 'flex',
68
+ 'flex-direction': 'row',
69
+ 'align-items': 'flex-end',
70
+ },
71
+ '.Flow-Component.ComponentTag-standard_slider div.slider': {
72
+ display: 'flex',
73
+ 'flex-direction': 'row',
74
+ },
75
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider": {
76
+ width: '100%',
77
+ margin: '12px 0',
78
+ padding: '8px 16px',
79
+ background: 'transparent',
80
+ 'border-radius': 'var(--border-radius)',
81
+ '-webkit-appearance': 'none',
82
+ },
83
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider:focus": {
84
+ outline: '0',
85
+ },
86
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='number'].ComponentTag-standard_slider": {
87
+ width: '100%',
88
+ padding: '8px 16px',
89
+ 'border-width': '1px',
90
+ 'border-style': 'solid',
91
+ 'border-color': '#DDDDDD',
92
+ 'border-radius': 'var(--border-radius)',
93
+ },
94
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-webkit-slider-thumb": {
95
+ height: '24px',
96
+ width: '24px',
97
+ 'margin-top': '-10px',
98
+ background: '#607D8B',
99
+ 'border-width': '2px',
100
+ 'border-style': 'solid',
101
+ 'border-color': '#ECEFF1',
102
+ 'border-radius': '12px',
103
+ cursor: 'default',
104
+ 'box-shadow': '4px 4px 4px #00000033, 0 0 4px #00000033',
105
+ '-webkit-appearance': 'none',
106
+ },
107
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider:disabled::-webkit-slider-thumb": {
108
+ cursor: 'not-allowed',
109
+ },
110
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-webkit-slider-runnable-track": {
111
+ width: '100%',
112
+ height: '8px',
113
+ background: '#ECEFF1',
114
+ 'border-width': '2px',
115
+ 'border-style': 'solid',
116
+ 'border-color': '#CFD8DC',
117
+ 'border-radius': '5px',
118
+ transition: 'all 0.2s ease',
119
+ 'box-shadow': '1px 1px 1px #00000033, 0 0 1px #00000033',
120
+ cursor: 'default',
121
+ },
122
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider:disabled::-webkit-slider-runnable-track": {
123
+ cursor: 'not-allowed',
124
+ },
125
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-moz-range-track": {
126
+ 'box-shadow': '1px 1px 1px #00000033, 0 0 1px #00000033',
127
+ cursor: 'default',
128
+ transition: 'all 0.2s ease',
129
+ width: '100%',
130
+ background: '#ECEFF1',
131
+ 'border-width': '2px',
132
+ 'border-style': 'solid',
133
+ 'border-color': '#CFD8DC',
134
+ 'border-radius': '5px',
135
+ height: '4px',
136
+ },
137
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-moz-range-thumb": {
138
+ 'box-shadow': '4px 4px 4px #00000033, 0 0 4px #00000033',
139
+ background: '#607D8B',
140
+ 'border-width': '2px',
141
+ 'border-style': 'solid',
142
+ 'border-color': '#ECEFF1',
143
+ 'border-radius': '12px',
144
+ 'box-sizing': 'border-box',
145
+ cursor: 'default',
146
+ height: '24px',
147
+ width: '24px',
148
+ },
149
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-ms-track": {
150
+ cursor: 'default',
151
+ height: '8px',
152
+ transition: 'all 0.2s ease',
153
+ width: '100%',
154
+ background: 'transparent',
155
+ 'border-color': 'transparent',
156
+ 'border-width': '12px 0',
157
+ color: 'transparent',
158
+ },
159
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-ms-fill-lower": {
160
+ 'box-shadow': '1px 1px 1px #00000033, 0 0 1px #00000033',
161
+ background: '#ECEFF1',
162
+ 'border-width': '2px',
163
+ 'border-style': 'solid',
164
+ 'border-color': '#CFD8DC',
165
+ 'border-radius': '10px',
166
+ },
167
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-ms-fill-upper": {
168
+ 'box-shadow': '1px 1px 1px #00000033, 0 0 1px #00000033',
169
+ background: '#ECEFF1',
170
+ 'border-width': '2px',
171
+ 'border-style': 'solid',
172
+ 'border-color': '#CFD8DC',
173
+ 'border-radius': '10px',
174
+ },
175
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-ms-thumb": {
176
+ 'box-shadow': '4px 4px 4px #00000033, 0 0 4px #00000033',
177
+ background: '#607D8B',
178
+ 'border-width': '2px',
179
+ 'border-style': 'solid',
180
+ 'border-color': '#ECEFF1',
181
+ 'border-radius': '12px',
182
+ 'box-sizing': 'border-box',
183
+ cursor: 'default',
184
+ height: '24px',
185
+ width: '24px',
186
+ 'margin-top': '1px',
187
+ },
188
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider:disabled::-moz-range-thumb, .Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider:disabled::-ms-thumb, .Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider:disabled::-ms-fill-lower, .Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider:disabled::-ms-fill-upper": {
189
+ cursor: 'not-allowed',
190
+ },
191
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider::-moz-focus-outer": {
192
+ border: '0',
193
+ },
194
+ ".Flow-Component.ComponentType-InputBox div.slider input[type='range'].ComponentTag-standard_slider:focus::-ms-fill-lower": {
195
+ background: 'var(--track-color, #eceff1)',
196
+ },
197
+ },
198
+ standard_input: {
199
+ '.Flow-Component.ComponentTag-standard_input': {
200
+ width: '300px',
201
+ 'max-width': '100%',
202
+ display: 'flex',
203
+ 'flex-direction': 'column',
204
+ position: 'relative',
205
+ },
206
+ '.ComponentTag-standard_input .Flow-Element.ElementType-Label': {
207
+ display: 'flex',
208
+ 'flex-direction': 'row',
209
+ 'align-items': 'flex-end',
210
+ },
211
+ '.Flow-Element.ElementType-InputElement.ComponentTag-standard_input': {
212
+ padding: '8px 16px',
213
+ 'border-radius': 'var(--border-radius)',
214
+ 'border-width': '1px',
215
+ 'border-style': 'solid',
216
+ 'border-color': '#DDDDDD',
217
+ width: '100%',
218
+ 'font-size': 'inherit',
219
+ 'font-family': 'inherit',
220
+ 'font-weight': 'inherit',
221
+ 'text-decoration': 'inherit',
222
+ color: 'inherit',
223
+ },
224
+ '.Flow-Element.ElementType-InputElement.ComponentTag-standard_input:focus': {
225
+ 'outline-color': 'var(--color-primary)',
226
+ },
227
+ '.Flow-Element.ElementType-InputElement.ComponentTag-standard_input[disabled]': {
228
+ cursor: 'default',
229
+ background: '#EEEEEE',
230
+ 'pointer-events': 'none',
231
+ color: '#AAAAAA',
232
+ },
233
+ '.Flow-Element.ElementType-TextareaElement.ComponentTag-standard_input': {
234
+ width: '100%',
235
+ padding: '8px 16px',
236
+ color: 'inherit',
237
+ 'border-width': '1px',
238
+ 'border-style': 'solid',
239
+ 'border-color': '#DDDDDD',
240
+ 'border-radius': 'var(--border-radius)',
241
+ 'font-size': 'inherit',
242
+ 'font-family': 'inherit',
243
+ 'font-weight': 'inherit',
244
+ 'text-decoration': 'inherit',
245
+ },
246
+ '.Flow-Element.ElementType-TextareaElement.ComponentTag-standard_input:focus': {
247
+ 'outline-color': 'var(--color-primary)',
248
+ },
249
+ '.Flow-Element.ElementType-TextareaElement.ComponentTag-standard_input[disabled]': {
250
+ cursor: 'default',
251
+ background: '#EEEEEE',
252
+ 'pointer-events': 'none',
253
+ color: '#AAAAAA',
254
+ },
255
+ '.InputBox.ComponentTag-standard_input .validation-failed': {
256
+ padding: '10px',
257
+ 'margin-top': '-1px',
258
+ color: '#141516',
259
+ background: '#FD8BA0',
260
+ 'font-weight': '400',
261
+ 'line-height': '1.1',
262
+ 'border-bottom-left-radius': '4px',
263
+ 'border-bottom-right-radius': '4px',
264
+ },
265
+ },
266
+ standard_checkbox: {
267
+ '.Flow-Component.ComponentTag-standard_checkbox': {
268
+ display: 'flex',
269
+ 'flex-direction': 'column',
270
+ 'align-items': 'center',
271
+ },
272
+ '.ComponentTag-standard_checkbox .Flow-Element.ElementType-Label': {
273
+ display: 'flex',
274
+ 'flex-direction': 'row',
275
+ 'align-items': 'flex-end',
276
+ },
277
+ },
278
+ standard_option_buttons: {
279
+ '.Flow-Component.ComponentTag-standard_option_buttons': {
280
+ position: 'relative',
281
+ display: 'flex',
282
+ 'flex-direction': 'column',
283
+ },
284
+ '.ComponentTag-standard_option_buttons .Flow-Element.ElementType-Label': {
285
+ display: 'flex',
286
+ 'flex-direction': 'row',
287
+ 'align-items': 'flex-end',
288
+ },
289
+ '.Flow-Element.ElementType-OptionButtonList.ComponentTag-standard_option_buttons': {
290
+ display: 'flex',
291
+ 'align-items': 'stretch',
292
+ 'justify-content': 'center',
293
+ 'flex-wrap': 'wrap',
294
+ },
295
+ '.Flow-Element.ElementType-OptionButtonCard.ComponentTag-standard_option_buttons': {
296
+ padding: '8px 32px',
297
+ margin: '8px',
298
+ flex: '0 0 auto',
299
+ display: 'flex',
300
+ 'flex-direction': 'column',
301
+ 'align-items': 'center',
302
+ 'justify-content': 'space-between',
303
+ 'text-align': 'center',
304
+ 'background-color': 'white',
305
+ 'border-width': '1px',
306
+ 'border-style': 'solid',
307
+ 'border-color': '#DDDDDD',
308
+ 'border-radius': 'var(--border-radius)',
309
+ cursor: 'pointer',
310
+ 'line-height': '1.3',
311
+ transition: 'transform 0.1s, border-color 0.5s, background-color 0.2s',
312
+ },
313
+ '.Flow-Element.ElementType-OptionButtonCard.ComponentTag-standard_option_buttons .ElementType-OptionButtonCardCheckbox': {
314
+ width: '16px',
315
+ height: '16px',
316
+ 'border-style': 'solid',
317
+ 'border-width': '1px',
318
+ 'border-color': '#000000',
319
+ },
320
+ '.Flow-Component.ComponentTag-standard_option_buttons .validation-failed': {
321
+ padding: '10px',
322
+ 'margin-top': '-1px',
323
+ color: '#141516',
324
+ background: '#FD8BA0',
325
+ 'font-weight': '400',
326
+ 'line-height': '1.1',
327
+ 'border-bottom-left-radius': '4px',
328
+ 'border-bottom-right-radius': '4px',
329
+ },
330
+ },
331
+ standard_dropdown: {
332
+ '.Flow-Component.ComponentTag-standard_dropdown': {
333
+ width: '250px',
334
+ position: 'relative',
335
+ display: 'flex',
336
+ 'flex-direction': 'column',
337
+ },
338
+ '.ComponentTag-standard_dropdown .Flow-Element.ElementType-Label': {
339
+ display: 'flex',
340
+ 'flex-direction': 'row',
341
+ 'align-items': 'flex-end',
342
+ },
343
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown': {
344
+ width: 'auto',
345
+ position: 'relative',
346
+ padding: '4px 8px',
347
+ display: 'inline-block',
348
+ 'border-style': 'solid',
349
+ 'border-width': '2px',
350
+ 'border-color': 'gray',
351
+ 'border-radius': 'var(--border-radius)',
352
+ 'user-select': 'none',
353
+ },
354
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown:focus': {
355
+ 'border-color': '#0000FF',
356
+ },
357
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown[data-open]': {
358
+ 'border-bottom-left-radius': '0px',
359
+ 'border-bottom-right-radius': '0px',
360
+ },
361
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown .Flow-Element.ElementType-DropdownMain': {
362
+ width: 'auto',
363
+ padding: '0px',
364
+ position: 'relative',
365
+ flex: '1',
366
+ display: 'flex',
367
+ 'align-items': 'center',
368
+ 'line-height': '1',
369
+ cursor: 'pointer',
370
+ transition: 'all .3s',
371
+ '-webkit-box-align': 'center',
372
+ '-ms-flex-align': 'center',
373
+ },
374
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown .Flow-Element.ElementType-DropdownMain span': {
375
+ flex: '1',
376
+ },
377
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown .Flow-Element.ElementType-DropdownMain::after': {
378
+ width: '10px',
379
+ height: '10px',
380
+ 'margin-left': '8px',
381
+ color: '#BBBBBB',
382
+ 'line-height': '0',
383
+ content: "'⌄'",
384
+ },
385
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown:hover .Flow-Element.ElementType-DropdownMain::after': {
386
+ color: '#999999',
387
+ },
388
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown .Flow-Element.ElementType-DropdownList': {
389
+ 'max-height': '250px',
390
+ position: 'absolute',
391
+ display: 'none',
392
+ left: '0px',
393
+ right: '0px',
394
+ top: '100%',
395
+ 'background-color': '#FFFFFF',
396
+ 'border-style': 'solid',
397
+ 'border-width': '1px',
398
+ 'border-color': '#E8EBF0',
399
+ 'border-bottom-left-radius': 'var(--border-radius)',
400
+ 'border-bottom-right-radius': 'var(--border-radius)',
401
+ 'line-height': '1',
402
+ 'z-index': '2',
403
+ '-webkit-appearance': 'none',
404
+ '-moz-appearance': 'none',
405
+ appearance: 'none',
406
+ },
407
+ '.Flow-Element.ElementType-OptionDropdown.ComponentTag-standard_dropdown[data-open] .Flow-Element.ElementType-DropdownList': {
408
+ display: 'initial',
409
+ },
410
+ '.Flow-Element.ElementType-DropdownListOption.ComponentTag-standard_dropdown': {
411
+ padding: '4px 8px',
412
+ cursor: 'pointer',
413
+ },
414
+ '.Flow-Element.ElementType-DropdownListOption.ComponentTag-standard_dropdown:hover': {
415
+ 'background-color': '#FAFAFA',
416
+ },
417
+ '.Flow-Element.ElementType-DropdownListOption.ComponentTag-standard_dropdown:focus': {
418
+ 'background-color': '#FAFAFA',
419
+ },
420
+ '.Flow-Element.ElementType-DropdownListOption.ComponentTag-standard_dropdown.selected': {
421
+ 'background-color': '#F5F5F5',
422
+ },
423
+ },
424
+ standard_switch: {
425
+ '.Flow-Component.ComponentTag-standard_switch': {
426
+ width: 'fit-content',
427
+ position: 'relative',
428
+ display: 'flex',
429
+ 'flex-direction': 'row',
430
+ 'align-items': 'center',
431
+ gap: '12px',
432
+ },
433
+ '.Flow-Element.ElementType-InputElement.ComponentTag-standard_switch': {
434
+ display: 'flex',
435
+ 'align-items': 'center',
436
+ padding: '8px',
437
+ 'border-width': '1px',
438
+ 'border-style': 'solid',
439
+ 'border-color': '#DDDDDD',
440
+ 'border-radius': 'var(--border-radius)',
441
+ cursor: 'pointer',
442
+ },
443
+ '.Flow-Element.ElementType-InputElement.ComponentTag-standard_switch .switch': {
444
+ width: '30px',
445
+ height: '16px',
446
+ background: '#EDF0F5',
447
+ 'border-radius': '8px',
448
+ 'border-width': '1px',
449
+ 'border-style': 'solid',
450
+ 'border-color': '#CCCCCC',
451
+ transition: 'background-color 0.3s',
452
+ },
453
+ '.Flow-Element.ElementType-InputElement.ComponentTag-standard_switch.isOn .switch': {
454
+ background: 'var(--color-primary)',
455
+ },
456
+ '.Flow-Element.ElementType-InputElement.ComponentTag-standard_switch .switch .knob': {
457
+ height: '14px',
458
+ width: '14px',
459
+ background: 'white',
460
+ 'border-width': '1px',
461
+ 'border-style': 'solid',
462
+ 'border-color': '#CCCCCC',
463
+ 'border-radius': '8px',
464
+ transition: 'margin 0.3s, background-color 0.3s',
465
+ },
466
+ '.Flow-Element.ElementType-InputElement.ComponentTag-standard_switch.isOn .switch .knob': {
467
+ 'margin-left': '14px',
468
+ background: '#EDF0F5',
469
+ },
470
+ },
471
+ standard_file_upload: {
472
+ '.Flow-Element.ElementType-Uploader.ComponentTag-standard_file_upload>label': {
473
+ width: '100%',
474
+ height: '100%',
475
+ padding: '16px',
476
+ position: 'relative',
477
+ display: 'flex',
478
+ 'flex-direction': 'column',
479
+ 'text-align': 'center',
480
+ gap: '16px',
481
+ background: '#FAFAFA',
482
+ 'border-width': '1px',
483
+ 'border-style': 'solid',
484
+ 'border-color': '#DDDDDD',
485
+ 'border-radius': 'var(--border-radius)',
486
+ cursor: 'pointer',
487
+ transition: 'border-color 0.3s',
488
+ },
489
+ '.Flow-Element.ElementType-Uploader.ComponentTag-standard_file_upload>label>.ant-upload-drag-icon': {
490
+ margin: '0',
491
+ 'font-size': '40px',
492
+ },
493
+ '.Flow-Element.ElementType-Uploader.ComponentTag-standard_file_upload>label>.file-upload-text': {
494
+ margin: '0',
495
+ },
496
+ '.Flow-Element.ElementType-Uploader.ComponentTag-standard_file_upload>label>.file-upload-hint': {
497
+ margin: '0',
498
+ },
499
+ '.Flow-Element.ElementType-Uploader.ComponentTag-standard_file_upload .validation-failed': {
500
+ padding: '10px',
501
+ 'margin-top': '-1px',
502
+ color: '#141516',
503
+ background: '#FD8BA0',
504
+ 'font-weight': '400',
505
+ 'line-height': '1.1',
506
+ 'border-bottom-left-radius': '4px',
507
+ 'border-bottom-right-radius': '4px',
508
+ },
509
+ },
510
+ standard_stripe_checkout: {
511
+ '.StripeCheckout2.ComponentTag-standard_stripe_checkout div#payment-form': {
512
+ display: 'flex',
513
+ 'flex-direction': 'column',
514
+ 'align-items': 'stretch',
515
+ gap: '24px',
516
+ },
517
+ '.Flow-Element.ElementType-StripeCheckout2Button.ComponentTag-standard_stripe_checkout': {
518
+ padding: '12px 20px',
519
+ background: 'var(--color-primary)',
520
+ color: '#FFFFFF',
521
+ 'border-radius': 'var(--border-radius)',
522
+ border: 'none',
523
+ cursor: 'pointer',
524
+ transition: 'opacity 0.3s',
525
+ },
526
+ '.StripeCheckout2.ComponentTag-standard_stripe_checkout div#payment-form > button:hover:not([disabled])': {
527
+ opacity: '0.8',
528
+ },
529
+ '.StripeCheckout2.ComponentTag-standard_stripe_checkout div#payment-form > button[disabled]': {
530
+ cursor: 'default',
531
+ 'pointer-events': 'none',
532
+ },
533
+ '.StripeCheckout2.ComponentTag-standard_stripe_checkout div#payment-form > button .Icon': {
534
+ 'font-size': '12px',
535
+ margin: '0 0 0 6px',
536
+ },
537
+ '.StripeCheckout2.ComponentTag-standard_stripe_checkout div#payment-form .payment-messages .Icon': {
538
+ margin: '0 4px -2px 0',
539
+ },
540
+ '.StripeCheckout2.ComponentTag-standard_stripe_checkout div#payment-form .payment-messages .error-message': {
541
+ color: '#DF1B41',
542
+ },
543
+ '.StripeCheckout2.ComponentTag-standard_stripe_checkout div#payment-form .payment-messages .success-message': {
544
+ color: '#008000',
545
+ },
546
+ '.StripeCheckout2.ComponentTag-standard_stripe_checkout div#payment-form .payment-messages .message': {
547
+ display: 'inline',
548
+ },
549
+ },
550
+ standard_calendly: {
551
+ '.Flow-Component.ComponentTag-standard_calendly': {
552
+ position: 'relative',
553
+ overflow: 'hidden',
554
+ },
555
+ '.ComponentType-BookMeeting.ComponentTag-standard_calendly .calendly-container': {
556
+ width: '800px',
557
+ 'max-width': '100%',
558
+ height: '680px',
559
+ },
560
+ },
561
+ standard_hubspot: {
562
+ '.Flow-Component.ComponentTag-standard_hubspot': {
563
+ position: 'relative',
564
+ overflow: 'hidden',
565
+ width: '800px',
566
+ 'max-width': '100%',
567
+ height: '680px',
568
+ },
569
+ },
570
+ standard_progress_bar: {
571
+ '.Flow-Component.ComponentTag-standard_progress_bar': {
572
+ width: '100%',
573
+ height: '26px',
574
+ position: 'relative',
575
+ 'border-radius': 'var(--border-radius)',
576
+ overflow: 'hidden',
577
+ 'border-width': '1px',
578
+ 'border-style': 'solid',
579
+ 'border-color': '#DDDDDD',
580
+ },
581
+ '.FormProgress .bar.ComponentTag-standard_progress_bar': {
582
+ height: '100%',
583
+ background: 'var(--color-primary)',
584
+ transition: 'width 0.3s',
585
+ },
586
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_bar .progress': {
587
+ position: 'absolute',
588
+ top: '4px',
589
+ left: '16px',
590
+ 'font-size': '16px',
591
+ 'line-height': '1',
592
+ color: '#DDDDDD',
593
+ transition: 'color 0.3s',
594
+ },
595
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_bar .progress.altColor': {
596
+ color: '#FFFFFF',
597
+ },
598
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_bar:hover .progress': {
599
+ color: 'var(--color-primary)',
600
+ },
601
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_bar .reset': {
602
+ position: 'absolute',
603
+ top: '4px',
604
+ right: '16px',
605
+ 'font-size': '16px',
606
+ 'line-height': '1',
607
+ color: '#DDDDDD',
608
+ transition: 'color 0.3s',
609
+ cursor: 'pointer',
610
+ },
611
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_bar .reset:hover': {
612
+ color: 'var(--color-primary)',
613
+ },
614
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_bar .reset.percent-100:hover': {
615
+ color: '#FFFFFF',
616
+ },
617
+ },
618
+ standard_progress_circle: {
619
+ '.Flow-Component.ComponentTag-standard_progress_circle': {
620
+ position: 'relative',
621
+ cursor: 'pointer',
622
+ margin: '8px',
623
+ },
624
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_circle g.ep-circle--container': {
625
+ transition: 'inherit',
626
+ 'transform-origin': '50% 50%',
627
+ },
628
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_circle .ep-circle': {
629
+ 'transform-origin': '50% 50%',
630
+ },
631
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_circle .ep-circle .ElementType-ProgressBarBackground': {
632
+ stroke: '#DDDDDD',
633
+ },
634
+ '.Flow-Component.ComponentType-ProgressBar.ComponentTag-standard_progress_circle .ep-circle .ElementType-ProgressBarFilled': {
635
+ stroke: 'var(--color-primary)',
636
+ },
637
+ },
638
+ };
639
+ export const STANDARD_TAGS_WITH_DEFAULT_STYLES = Object.keys(DEFAULT_TAGS_STYLES_V4);
640
+ export function renderDefaultTagStylesCss(stylesMap = DEFAULT_TAGS_STYLES_V4) {
641
+ const lines = [
642
+ '/* Embeddables standard tag defaults (DEFAULT_TAGS_STYLES_V4). */',
643
+ '/* This file is scaffolded by `embeddables init` and should be kept in sync when adding standard-tagged components. */',
644
+ '',
645
+ ];
646
+ for (const [tag, selectors] of Object.entries(stylesMap)) {
647
+ lines.push(`/* ${tag} */`);
648
+ for (const [selector, styles] of Object.entries(selectors)) {
649
+ lines.push(`${selector} {`);
650
+ for (const [property, value] of Object.entries(styles)) {
651
+ lines.push(` ${property}: ${value};`);
652
+ }
653
+ lines.push('}');
654
+ lines.push('');
655
+ }
656
+ }
657
+ return `${lines.join('\n').trimEnd()}\n`;
658
+ }
659
+ //# sourceMappingURL=defaultTagStylesV4.js.map