@layers-app/shared 0.4.0 → 0.4.1

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 (122) hide show
  1. package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
  2. package/dist/components/AppContainer/AppContainer.d.ts +6 -1
  3. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  4. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +4 -1
  5. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
  7. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
  11. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +7 -2
  12. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/ToolbarNewButton.js +14 -14
  14. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +3 -1
  15. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  16. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +96 -64
  17. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  18. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +60 -47
  19. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
  20. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  21. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +35 -26
  22. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
  23. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  24. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +43 -36
  25. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +7 -0
  26. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
  27. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +17 -0
  28. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
  29. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  30. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
  31. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -18
  32. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  33. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
  34. package/dist/components/ColorPicker/ColorPicker.d.ts +12 -11
  35. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  36. package/dist/components/ColorPicker/ColorPicker.js +1 -1
  37. package/dist/components/ColorPicker/ColorPickerToolbar.js +11 -11
  38. package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
  39. package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
  40. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
  41. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  42. package/dist/components/EntityIcon.d.ts.map +1 -1
  43. package/dist/components/EntityIcon.js +43 -33
  44. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  45. package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
  46. package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
  47. package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
  48. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
  49. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
  50. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +6 -0
  51. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
  52. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
  53. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
  54. package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
  55. package/dist/components/FormViewer/store/formStore.d.ts +248 -248
  56. package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
  57. package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
  58. package/dist/components/FormViewer/types/form.d.ts +1 -1
  59. package/dist/components/FormViewer/types/form.d.ts.map +1 -1
  60. package/dist/components/FormViewer/types/schemes.d.ts +381 -6358
  61. package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
  62. package/dist/components/FormViewer/types/schemes.js +1 -1
  63. package/dist/components/GroupAvatar/index.d.ts +3 -1
  64. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  65. package/dist/components/GroupAvatar/index.js +24 -21
  66. package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
  67. package/dist/components/NavMenu/NavMenu.d.ts +3 -1
  68. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  69. package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
  70. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  71. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +7 -1
  72. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
  73. package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
  74. package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
  75. package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
  76. package/dist/components/NewColorPicker/components/Target.js +48 -43
  77. package/dist/components/Notification/Notification.js +3 -1
  78. package/dist/components/Notification/NotificationCard.d.ts +3 -1
  79. package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
  80. package/dist/components/Notification/NotificationCard.js +87 -86
  81. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +1 -1
  82. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
  83. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +70 -74
  84. package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
  85. package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
  86. package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
  87. package/dist/components/UserAvatar/index.d.ts +2 -1
  88. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  89. package/dist/components/UserAvatar/index.js +38 -35
  90. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
  91. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
  92. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +19 -18
  93. package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
  94. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
  95. package/dist/config/envConfig.d.ts +8 -0
  96. package/dist/config/envConfig.d.ts.map +1 -1
  97. package/dist/config/envConfig.js +21 -13
  98. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  99. package/dist/helpers/getFileIcons.js +63 -45
  100. package/dist/helpers/getFileType.d.ts +1 -1
  101. package/dist/helpers/getFileType.d.ts.map +1 -1
  102. package/dist/helpers/getFileType.js +29 -8
  103. package/dist/helpers/getPartOfTheDay.d.ts +1 -1
  104. package/dist/helpers/offlineSuppression.d.ts +3 -0
  105. package/dist/helpers/offlineSuppression.d.ts.map +1 -0
  106. package/dist/helpers/offlineSuppression.js +8 -0
  107. package/dist/helpers/platform.d.ts +1 -1
  108. package/dist/helpers/platform.d.ts.map +1 -1
  109. package/dist/helpers/platform.js +5 -4
  110. package/dist/helpers/showNotifications.d.ts.map +1 -1
  111. package/dist/helpers/showNotifications.js +30 -29
  112. package/dist/hooks/useOutsideClick.d.ts +1 -1
  113. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  114. package/dist/index.css +1 -1
  115. package/dist/index.d.ts +1 -0
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +336 -331
  118. package/dist/lang/locales/ui_en.json.js +1 -1
  119. package/dist/lang/locales/ui_es.json.js +1 -1
  120. package/dist/lang/locales/ui_ru.json.js +1 -1
  121. package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
  122. package/package.json +13 -13
@@ -38,11 +38,11 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
38
38
  max?: number | undefined;
39
39
  } | {
40
40
  id: string;
41
+ controlType: "multipleChoice";
41
42
  options: {
42
- id: string;
43
43
  label: string;
44
+ id: string;
44
45
  }[];
45
- controlType: "multipleChoice";
46
46
  title?: string | undefined;
47
47
  description?: string | undefined;
48
48
  icon?: string | undefined;
@@ -59,16 +59,16 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
59
59
  description?: string | undefined;
60
60
  icon?: string | undefined;
61
61
  required?: boolean | undefined;
62
- variableName?: string | undefined;
63
62
  min?: number | undefined;
64
63
  max?: number | undefined;
64
+ variableName?: string | undefined;
65
65
  } | {
66
66
  id: string;
67
+ controlType: "dropdown";
67
68
  options: {
68
- id: string;
69
69
  label: string;
70
+ id: string;
70
71
  }[];
71
- controlType: "dropdown";
72
72
  title?: string | undefined;
73
73
  description?: string | undefined;
74
74
  icon?: string | undefined;
@@ -77,25 +77,25 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
77
77
  variableName?: string | undefined;
78
78
  } | {
79
79
  id: string;
80
+ controlType: "choice";
80
81
  options: {
81
- id: string;
82
82
  label: string;
83
+ id: string;
83
84
  }[];
84
- controlType: "choice";
85
85
  title?: string | undefined;
86
86
  description?: string | undefined;
87
87
  required?: boolean | undefined;
88
- variableName?: string | undefined;
89
88
  showInput?: boolean | undefined;
89
+ variableName?: string | undefined;
90
90
  otherOption?: boolean | undefined;
91
91
  } | {
92
92
  id: string;
93
+ controlType: "pictureChoice";
93
94
  options: {
94
- id: string;
95
95
  label: string;
96
+ id: string;
96
97
  image?: string | undefined;
97
98
  }[];
98
- controlType: "pictureChoice";
99
99
  title?: string | undefined;
100
100
  description?: string | undefined;
101
101
  icon?: string | undefined;
@@ -108,13 +108,13 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
108
108
  title?: string | undefined;
109
109
  description?: string | undefined;
110
110
  icon?: string | undefined;
111
- required?: boolean | undefined;
112
- variableName?: string | undefined;
113
111
  multiple?: boolean | undefined;
114
112
  maxFiles?: number | undefined;
115
113
  minFiles?: number | undefined;
116
114
  accept?: string[] | undefined;
117
115
  maxSize?: number | undefined;
116
+ required?: boolean | undefined;
117
+ variableName?: string | undefined;
118
118
  } | {
119
119
  id: string;
120
120
  controlType: "location";
@@ -148,10 +148,10 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
148
148
  title?: string | undefined;
149
149
  description?: string | undefined;
150
150
  icon?: string | undefined;
151
- required?: boolean | undefined;
152
- variableName?: string | undefined;
153
151
  yesLabel?: string | undefined;
154
152
  noLabel?: string | undefined;
153
+ required?: boolean | undefined;
154
+ variableName?: string | undefined;
155
155
  } | {
156
156
  id: string;
157
157
  controlType: "longText";
@@ -170,9 +170,9 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
170
170
  description?: string | undefined;
171
171
  icon?: string | undefined;
172
172
  required?: boolean | undefined;
173
- label?: string | undefined;
174
173
  showButton?: boolean | undefined;
175
174
  buttonIcon?: string | undefined;
175
+ label?: string | undefined;
176
176
  showIconButton?: boolean | undefined;
177
177
  } | {
178
178
  id: string;
@@ -180,25 +180,25 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
180
180
  title?: string | undefined;
181
181
  description?: string | undefined;
182
182
  required?: boolean | undefined;
183
- label?: string | undefined;
184
183
  showButton?: boolean | undefined;
185
184
  buttonIcon?: string | undefined;
186
185
  link?: string | undefined;
186
+ label?: string | undefined;
187
187
  } | {
188
188
  id: string;
189
189
  controlType: "button";
190
190
  title?: string | undefined;
191
191
  description?: string | undefined;
192
- required?: boolean | undefined;
193
192
  label?: string | undefined;
194
- buttonIcon?: string | undefined;
195
- showIconButton?: boolean | undefined;
196
193
  link?: string | undefined;
194
+ showIconButton?: boolean | undefined;
195
+ buttonIcon?: string | undefined;
197
196
  alignButton?: "start" | "center" | "end" | undefined;
198
197
  buttons?: any[] | undefined;
199
198
  orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
200
199
  width?: number | undefined;
201
200
  enableTooltip?: boolean | undefined;
201
+ required?: boolean | undefined;
202
202
  fullWidthMobile?: boolean | undefined;
203
203
  } | {
204
204
  id: string;
@@ -215,9 +215,9 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
215
215
  autoSubmit?: boolean | undefined;
216
216
  confirmLabel?: string | undefined;
217
217
  media?: {
218
- image?: string | undefined;
219
218
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
220
219
  brightness?: number | undefined;
220
+ image?: string | undefined;
221
221
  video?: string | undefined;
222
222
  videoThumb?: string | undefined;
223
223
  color?: string | undefined;
@@ -225,52 +225,52 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
225
225
  blur?: number | undefined;
226
226
  } | undefined;
227
227
  conditions?: {
228
- trigger: string;
229
228
  controlId: string;
230
229
  operator: string;
230
+ trigger: string;
231
231
  compareValue?: string | undefined;
232
232
  }[] | undefined;
233
233
  theme?: {
234
+ size?: "sm" | "md" | "lg" | undefined;
235
+ align?: "start" | "center" | "end" | undefined;
236
+ listStyle?: string | undefined;
237
+ borderRadius?: "sm" | "md" | "lg" | undefined;
238
+ primaryColor?: string | undefined;
234
239
  title?: {
235
- color?: string | undefined;
236
240
  fontSize?: number | undefined;
237
241
  fontWeight?: number | undefined;
238
242
  fontFamily?: string | undefined;
243
+ color?: string | undefined;
239
244
  } | undefined;
240
245
  description?: {
241
- color?: string | undefined;
242
246
  fontSize?: number | undefined;
243
247
  fontWeight?: number | undefined;
244
248
  fontFamily?: string | undefined;
245
- } | undefined;
246
- background?: {
247
- image?: string | undefined;
248
- brightness?: number | undefined;
249
249
  color?: string | undefined;
250
- blur?: number | undefined;
251
- opacity?: number | undefined;
252
- fit?: string | undefined;
253
- blendMode?: string | undefined;
254
250
  } | undefined;
255
- size?: "sm" | "md" | "lg" | undefined;
256
- align?: "start" | "center" | "end" | undefined;
257
- listStyle?: string | undefined;
258
- borderRadius?: "sm" | "md" | "lg" | undefined;
259
- primaryColor?: string | undefined;
260
251
  font?: {
261
- color?: string | undefined;
262
252
  fontSize?: number | undefined;
263
253
  fontWeight?: number | undefined;
264
254
  fontFamily?: string | undefined;
255
+ color?: string | undefined;
265
256
  } | undefined;
266
257
  container?: {
267
258
  color?: string | undefined;
268
- blur?: number | undefined;
269
259
  opacity?: number | undefined;
260
+ blur?: number | undefined;
270
261
  backgroundImage?: string | undefined;
271
262
  shadowSize?: number | undefined;
272
263
  shadowColor?: string | undefined;
273
264
  } | undefined;
265
+ background?: {
266
+ color?: string | undefined;
267
+ image?: string | undefined;
268
+ blur?: number | undefined;
269
+ brightness?: number | undefined;
270
+ opacity?: number | undefined;
271
+ fit?: string | undefined;
272
+ blendMode?: string | undefined;
273
+ } | undefined;
274
274
  input?: {
275
275
  backgroundColor?: string | undefined;
276
276
  borderColor?: string | undefined;
@@ -37,11 +37,11 @@ export declare const sortSteps: (steps: StepData[]) => {
37
37
  max?: number | undefined;
38
38
  } | {
39
39
  id: string;
40
+ controlType: "multipleChoice";
40
41
  options: {
41
- id: string;
42
42
  label: string;
43
+ id: string;
43
44
  }[];
44
- controlType: "multipleChoice";
45
45
  title?: string | undefined;
46
46
  description?: string | undefined;
47
47
  icon?: string | undefined;
@@ -58,16 +58,16 @@ export declare const sortSteps: (steps: StepData[]) => {
58
58
  description?: string | undefined;
59
59
  icon?: string | undefined;
60
60
  required?: boolean | undefined;
61
- variableName?: string | undefined;
62
61
  min?: number | undefined;
63
62
  max?: number | undefined;
63
+ variableName?: string | undefined;
64
64
  } | {
65
65
  id: string;
66
+ controlType: "dropdown";
66
67
  options: {
67
- id: string;
68
68
  label: string;
69
+ id: string;
69
70
  }[];
70
- controlType: "dropdown";
71
71
  title?: string | undefined;
72
72
  description?: string | undefined;
73
73
  icon?: string | undefined;
@@ -76,25 +76,25 @@ export declare const sortSteps: (steps: StepData[]) => {
76
76
  variableName?: string | undefined;
77
77
  } | {
78
78
  id: string;
79
+ controlType: "choice";
79
80
  options: {
80
- id: string;
81
81
  label: string;
82
+ id: string;
82
83
  }[];
83
- controlType: "choice";
84
84
  title?: string | undefined;
85
85
  description?: string | undefined;
86
86
  required?: boolean | undefined;
87
- variableName?: string | undefined;
88
87
  showInput?: boolean | undefined;
88
+ variableName?: string | undefined;
89
89
  otherOption?: boolean | undefined;
90
90
  } | {
91
91
  id: string;
92
+ controlType: "pictureChoice";
92
93
  options: {
93
- id: string;
94
94
  label: string;
95
+ id: string;
95
96
  image?: string | undefined;
96
97
  }[];
97
- controlType: "pictureChoice";
98
98
  title?: string | undefined;
99
99
  description?: string | undefined;
100
100
  icon?: string | undefined;
@@ -107,13 +107,13 @@ export declare const sortSteps: (steps: StepData[]) => {
107
107
  title?: string | undefined;
108
108
  description?: string | undefined;
109
109
  icon?: string | undefined;
110
- required?: boolean | undefined;
111
- variableName?: string | undefined;
112
110
  multiple?: boolean | undefined;
113
111
  maxFiles?: number | undefined;
114
112
  minFiles?: number | undefined;
115
113
  accept?: string[] | undefined;
116
114
  maxSize?: number | undefined;
115
+ required?: boolean | undefined;
116
+ variableName?: string | undefined;
117
117
  } | {
118
118
  id: string;
119
119
  controlType: "location";
@@ -147,10 +147,10 @@ export declare const sortSteps: (steps: StepData[]) => {
147
147
  title?: string | undefined;
148
148
  description?: string | undefined;
149
149
  icon?: string | undefined;
150
- required?: boolean | undefined;
151
- variableName?: string | undefined;
152
150
  yesLabel?: string | undefined;
153
151
  noLabel?: string | undefined;
152
+ required?: boolean | undefined;
153
+ variableName?: string | undefined;
154
154
  } | {
155
155
  id: string;
156
156
  controlType: "longText";
@@ -169,9 +169,9 @@ export declare const sortSteps: (steps: StepData[]) => {
169
169
  description?: string | undefined;
170
170
  icon?: string | undefined;
171
171
  required?: boolean | undefined;
172
- label?: string | undefined;
173
172
  showButton?: boolean | undefined;
174
173
  buttonIcon?: string | undefined;
174
+ label?: string | undefined;
175
175
  showIconButton?: boolean | undefined;
176
176
  } | {
177
177
  id: string;
@@ -179,25 +179,25 @@ export declare const sortSteps: (steps: StepData[]) => {
179
179
  title?: string | undefined;
180
180
  description?: string | undefined;
181
181
  required?: boolean | undefined;
182
- label?: string | undefined;
183
182
  showButton?: boolean | undefined;
184
183
  buttonIcon?: string | undefined;
185
184
  link?: string | undefined;
185
+ label?: string | undefined;
186
186
  } | {
187
187
  id: string;
188
188
  controlType: "button";
189
189
  title?: string | undefined;
190
190
  description?: string | undefined;
191
- required?: boolean | undefined;
192
191
  label?: string | undefined;
193
- buttonIcon?: string | undefined;
194
- showIconButton?: boolean | undefined;
195
192
  link?: string | undefined;
193
+ showIconButton?: boolean | undefined;
194
+ buttonIcon?: string | undefined;
196
195
  alignButton?: "start" | "center" | "end" | undefined;
197
196
  buttons?: any[] | undefined;
198
197
  orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
199
198
  width?: number | undefined;
200
199
  enableTooltip?: boolean | undefined;
200
+ required?: boolean | undefined;
201
201
  fullWidthMobile?: boolean | undefined;
202
202
  } | {
203
203
  id: string;
@@ -214,9 +214,9 @@ export declare const sortSteps: (steps: StepData[]) => {
214
214
  autoSubmit?: boolean | undefined;
215
215
  confirmLabel?: string | undefined;
216
216
  media?: {
217
- image?: string | undefined;
218
217
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
219
218
  brightness?: number | undefined;
219
+ image?: string | undefined;
220
220
  video?: string | undefined;
221
221
  videoThumb?: string | undefined;
222
222
  color?: string | undefined;
@@ -224,52 +224,52 @@ export declare const sortSteps: (steps: StepData[]) => {
224
224
  blur?: number | undefined;
225
225
  } | undefined;
226
226
  conditions?: {
227
- trigger: string;
228
227
  controlId: string;
229
228
  operator: string;
229
+ trigger: string;
230
230
  compareValue?: string | undefined;
231
231
  }[] | undefined;
232
232
  theme?: {
233
+ size?: "sm" | "md" | "lg" | undefined;
234
+ align?: "start" | "center" | "end" | undefined;
235
+ listStyle?: string | undefined;
236
+ borderRadius?: "sm" | "md" | "lg" | undefined;
237
+ primaryColor?: string | undefined;
233
238
  title?: {
234
- color?: string | undefined;
235
239
  fontSize?: number | undefined;
236
240
  fontWeight?: number | undefined;
237
241
  fontFamily?: string | undefined;
242
+ color?: string | undefined;
238
243
  } | undefined;
239
244
  description?: {
240
- color?: string | undefined;
241
245
  fontSize?: number | undefined;
242
246
  fontWeight?: number | undefined;
243
247
  fontFamily?: string | undefined;
244
- } | undefined;
245
- background?: {
246
- image?: string | undefined;
247
- brightness?: number | undefined;
248
248
  color?: string | undefined;
249
- blur?: number | undefined;
250
- opacity?: number | undefined;
251
- fit?: string | undefined;
252
- blendMode?: string | undefined;
253
249
  } | undefined;
254
- size?: "sm" | "md" | "lg" | undefined;
255
- align?: "start" | "center" | "end" | undefined;
256
- listStyle?: string | undefined;
257
- borderRadius?: "sm" | "md" | "lg" | undefined;
258
- primaryColor?: string | undefined;
259
250
  font?: {
260
- color?: string | undefined;
261
251
  fontSize?: number | undefined;
262
252
  fontWeight?: number | undefined;
263
253
  fontFamily?: string | undefined;
254
+ color?: string | undefined;
264
255
  } | undefined;
265
256
  container?: {
266
257
  color?: string | undefined;
267
- blur?: number | undefined;
268
258
  opacity?: number | undefined;
259
+ blur?: number | undefined;
269
260
  backgroundImage?: string | undefined;
270
261
  shadowSize?: number | undefined;
271
262
  shadowColor?: string | undefined;
272
263
  } | undefined;
264
+ background?: {
265
+ color?: string | undefined;
266
+ image?: string | undefined;
267
+ blur?: number | undefined;
268
+ brightness?: number | undefined;
269
+ opacity?: number | undefined;
270
+ fit?: string | undefined;
271
+ blendMode?: string | undefined;
272
+ } | undefined;
273
273
  input?: {
274
274
  backgroundColor?: string | undefined;
275
275
  borderColor?: string | undefined;
@@ -37,11 +37,11 @@ export declare const getFirstStep: (steps: StepData[]) => {
37
37
  max?: number | undefined;
38
38
  } | {
39
39
  id: string;
40
+ controlType: "multipleChoice";
40
41
  options: {
41
- id: string;
42
42
  label: string;
43
+ id: string;
43
44
  }[];
44
- controlType: "multipleChoice";
45
45
  title?: string | undefined;
46
46
  description?: string | undefined;
47
47
  icon?: string | undefined;
@@ -58,16 +58,16 @@ export declare const getFirstStep: (steps: StepData[]) => {
58
58
  description?: string | undefined;
59
59
  icon?: string | undefined;
60
60
  required?: boolean | undefined;
61
- variableName?: string | undefined;
62
61
  min?: number | undefined;
63
62
  max?: number | undefined;
63
+ variableName?: string | undefined;
64
64
  } | {
65
65
  id: string;
66
+ controlType: "dropdown";
66
67
  options: {
67
- id: string;
68
68
  label: string;
69
+ id: string;
69
70
  }[];
70
- controlType: "dropdown";
71
71
  title?: string | undefined;
72
72
  description?: string | undefined;
73
73
  icon?: string | undefined;
@@ -76,25 +76,25 @@ export declare const getFirstStep: (steps: StepData[]) => {
76
76
  variableName?: string | undefined;
77
77
  } | {
78
78
  id: string;
79
+ controlType: "choice";
79
80
  options: {
80
- id: string;
81
81
  label: string;
82
+ id: string;
82
83
  }[];
83
- controlType: "choice";
84
84
  title?: string | undefined;
85
85
  description?: string | undefined;
86
86
  required?: boolean | undefined;
87
- variableName?: string | undefined;
88
87
  showInput?: boolean | undefined;
88
+ variableName?: string | undefined;
89
89
  otherOption?: boolean | undefined;
90
90
  } | {
91
91
  id: string;
92
+ controlType: "pictureChoice";
92
93
  options: {
93
- id: string;
94
94
  label: string;
95
+ id: string;
95
96
  image?: string | undefined;
96
97
  }[];
97
- controlType: "pictureChoice";
98
98
  title?: string | undefined;
99
99
  description?: string | undefined;
100
100
  icon?: string | undefined;
@@ -107,13 +107,13 @@ export declare const getFirstStep: (steps: StepData[]) => {
107
107
  title?: string | undefined;
108
108
  description?: string | undefined;
109
109
  icon?: string | undefined;
110
- required?: boolean | undefined;
111
- variableName?: string | undefined;
112
110
  multiple?: boolean | undefined;
113
111
  maxFiles?: number | undefined;
114
112
  minFiles?: number | undefined;
115
113
  accept?: string[] | undefined;
116
114
  maxSize?: number | undefined;
115
+ required?: boolean | undefined;
116
+ variableName?: string | undefined;
117
117
  } | {
118
118
  id: string;
119
119
  controlType: "location";
@@ -147,10 +147,10 @@ export declare const getFirstStep: (steps: StepData[]) => {
147
147
  title?: string | undefined;
148
148
  description?: string | undefined;
149
149
  icon?: string | undefined;
150
- required?: boolean | undefined;
151
- variableName?: string | undefined;
152
150
  yesLabel?: string | undefined;
153
151
  noLabel?: string | undefined;
152
+ required?: boolean | undefined;
153
+ variableName?: string | undefined;
154
154
  } | {
155
155
  id: string;
156
156
  controlType: "longText";
@@ -169,9 +169,9 @@ export declare const getFirstStep: (steps: StepData[]) => {
169
169
  description?: string | undefined;
170
170
  icon?: string | undefined;
171
171
  required?: boolean | undefined;
172
- label?: string | undefined;
173
172
  showButton?: boolean | undefined;
174
173
  buttonIcon?: string | undefined;
174
+ label?: string | undefined;
175
175
  showIconButton?: boolean | undefined;
176
176
  } | {
177
177
  id: string;
@@ -179,25 +179,25 @@ export declare const getFirstStep: (steps: StepData[]) => {
179
179
  title?: string | undefined;
180
180
  description?: string | undefined;
181
181
  required?: boolean | undefined;
182
- label?: string | undefined;
183
182
  showButton?: boolean | undefined;
184
183
  buttonIcon?: string | undefined;
185
184
  link?: string | undefined;
185
+ label?: string | undefined;
186
186
  } | {
187
187
  id: string;
188
188
  controlType: "button";
189
189
  title?: string | undefined;
190
190
  description?: string | undefined;
191
- required?: boolean | undefined;
192
191
  label?: string | undefined;
193
- buttonIcon?: string | undefined;
194
- showIconButton?: boolean | undefined;
195
192
  link?: string | undefined;
193
+ showIconButton?: boolean | undefined;
194
+ buttonIcon?: string | undefined;
196
195
  alignButton?: "start" | "center" | "end" | undefined;
197
196
  buttons?: any[] | undefined;
198
197
  orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
199
198
  width?: number | undefined;
200
199
  enableTooltip?: boolean | undefined;
200
+ required?: boolean | undefined;
201
201
  fullWidthMobile?: boolean | undefined;
202
202
  } | {
203
203
  id: string;
@@ -214,9 +214,9 @@ export declare const getFirstStep: (steps: StepData[]) => {
214
214
  autoSubmit?: boolean | undefined;
215
215
  confirmLabel?: string | undefined;
216
216
  media?: {
217
- image?: string | undefined;
218
217
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
219
218
  brightness?: number | undefined;
219
+ image?: string | undefined;
220
220
  video?: string | undefined;
221
221
  videoThumb?: string | undefined;
222
222
  color?: string | undefined;
@@ -224,52 +224,52 @@ export declare const getFirstStep: (steps: StepData[]) => {
224
224
  blur?: number | undefined;
225
225
  } | undefined;
226
226
  conditions?: {
227
- trigger: string;
228
227
  controlId: string;
229
228
  operator: string;
229
+ trigger: string;
230
230
  compareValue?: string | undefined;
231
231
  }[] | undefined;
232
232
  theme?: {
233
+ size?: "sm" | "md" | "lg" | undefined;
234
+ align?: "start" | "center" | "end" | undefined;
235
+ listStyle?: string | undefined;
236
+ borderRadius?: "sm" | "md" | "lg" | undefined;
237
+ primaryColor?: string | undefined;
233
238
  title?: {
234
- color?: string | undefined;
235
239
  fontSize?: number | undefined;
236
240
  fontWeight?: number | undefined;
237
241
  fontFamily?: string | undefined;
242
+ color?: string | undefined;
238
243
  } | undefined;
239
244
  description?: {
240
- color?: string | undefined;
241
245
  fontSize?: number | undefined;
242
246
  fontWeight?: number | undefined;
243
247
  fontFamily?: string | undefined;
244
- } | undefined;
245
- background?: {
246
- image?: string | undefined;
247
- brightness?: number | undefined;
248
248
  color?: string | undefined;
249
- blur?: number | undefined;
250
- opacity?: number | undefined;
251
- fit?: string | undefined;
252
- blendMode?: string | undefined;
253
249
  } | undefined;
254
- size?: "sm" | "md" | "lg" | undefined;
255
- align?: "start" | "center" | "end" | undefined;
256
- listStyle?: string | undefined;
257
- borderRadius?: "sm" | "md" | "lg" | undefined;
258
- primaryColor?: string | undefined;
259
250
  font?: {
260
- color?: string | undefined;
261
251
  fontSize?: number | undefined;
262
252
  fontWeight?: number | undefined;
263
253
  fontFamily?: string | undefined;
254
+ color?: string | undefined;
264
255
  } | undefined;
265
256
  container?: {
266
257
  color?: string | undefined;
267
- blur?: number | undefined;
268
258
  opacity?: number | undefined;
259
+ blur?: number | undefined;
269
260
  backgroundImage?: string | undefined;
270
261
  shadowSize?: number | undefined;
271
262
  shadowColor?: string | undefined;
272
263
  } | undefined;
264
+ background?: {
265
+ color?: string | undefined;
266
+ image?: string | undefined;
267
+ blur?: number | undefined;
268
+ brightness?: number | undefined;
269
+ opacity?: number | undefined;
270
+ fit?: string | undefined;
271
+ blendMode?: string | undefined;
272
+ } | undefined;
273
273
  input?: {
274
274
  backgroundColor?: string | undefined;
275
275
  borderColor?: string | undefined;