@developer_tribe/react-builder 1.2.35 → 1.2.37

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 (98) hide show
  1. package/dist/RenderPage.d.ts +0 -12
  2. package/dist/attributes-editor/Field.d.ts +2 -1
  3. package/dist/attributes-editor/SizeField.d.ts +2 -1
  4. package/dist/attributes-editor/attributesEditorUtils.d.ts +2 -1
  5. package/dist/build-components/BIcon/BIcon.d.ts +0 -3
  6. package/dist/build-components/BIcon/BIconProps.generated.d.ts +1 -0
  7. package/dist/build-components/Button/Button.d.ts +0 -3
  8. package/dist/build-components/CarouselItem/CarouselItem.d.ts +0 -3
  9. package/dist/build-components/CountDown/CountDownProps.generated.d.ts +1 -1
  10. package/dist/build-components/OnboardButton/OnboardButton.d.ts +0 -3
  11. package/dist/build-components/OnboardDot/OnboardDot.d.ts +0 -3
  12. package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +1 -0
  13. package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +0 -3
  14. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +1 -0
  15. package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +1 -0
  16. package/dist/build-components/PaywallCloseButton/PaywallCloseButton.d.ts +0 -3
  17. package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +1 -0
  18. package/dist/build-components/PriceTag/PriceTagProps.generated.d.ts +1 -0
  19. package/dist/build-components/Pricing/PricingProps.generated.d.ts +1 -0
  20. package/dist/build-components/Promo/PromoProps.generated.d.ts +1 -0
  21. package/dist/build-components/Text/TextProps.generated.d.ts +1 -0
  22. package/dist/build-components/patterns.generated.d.ts +9798 -10468
  23. package/dist/components/Breadcrumb.d.ts +1 -1
  24. package/dist/index.cjs.js +1 -1
  25. package/dist/index.cjs.js.map +1 -1
  26. package/dist/index.esm.js +1 -1
  27. package/dist/index.esm.js.map +1 -1
  28. package/dist/index.web.cjs.js +3 -3
  29. package/dist/index.web.cjs.js.map +1 -1
  30. package/dist/index.web.esm.js +3 -3
  31. package/dist/index.web.esm.js.map +1 -1
  32. package/dist/migrations/migratePipe.d.ts +2 -1
  33. package/dist/migrations/semver.d.ts +0 -7
  34. package/dist/pages/DebugJsonPage.d.ts +2 -1
  35. package/dist/pages/ProjectDebug.d.ts +2 -1
  36. package/dist/pages/ProjectMigrationPage.d.ts +2 -1
  37. package/dist/pages/ProjectPage.d.ts +2 -1
  38. package/dist/pages/ProjectValidationPage.d.ts +2 -1
  39. package/dist/pages/tabs/SideTool.d.ts +2 -2
  40. package/dist/utils/parseColor.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/scripts/prebuild/assets/prompt_scheme.md +5 -11
  43. package/scripts/prebuild/generate-prompt-schemes.js +11 -8
  44. package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +50 -0
  45. package/scripts/prebuild/utils/validatePatternJson.js +73 -0
  46. package/src/RenderPage.tsx +1 -10
  47. package/src/assets/meta.json +1 -1
  48. package/src/assets/prompt-scheme-onboard.generated.ts +1 -1
  49. package/src/assets/prompt-scheme-paywall.generated.ts +1 -1
  50. package/src/attributes-editor/Field.tsx +1 -1
  51. package/src/attributes-editor/SizeField.tsx +1 -1
  52. package/src/attributes-editor/attributesEditorUtils.ts +1 -1
  53. package/src/attributes-editor/useAttributesEditorModel.ts +5 -1
  54. package/src/build-components/BIcon/BIcon.tsx +0 -2
  55. package/src/build-components/BIcon/BIconProps.generated.ts +1 -0
  56. package/src/build-components/BackgroundImage/pattern.json +8 -9
  57. package/src/build-components/Button/Button.tsx +0 -2
  58. package/src/build-components/CarouselDots/CarouselDots.tsx +1 -1
  59. package/src/build-components/CarouselDots/pattern.json +1 -1
  60. package/src/build-components/CarouselItem/CarouselItem.tsx +0 -2
  61. package/src/build-components/CountDown/CountDownProps.generated.ts +1 -1
  62. package/src/build-components/OnboardButton/OnboardButton.tsx +1 -4
  63. package/src/build-components/OnboardButtons/pattern.json +2 -4
  64. package/src/build-components/OnboardDot/OnboardDot.tsx +0 -2
  65. package/src/build-components/OnboardDot/pattern.json +0 -1
  66. package/src/build-components/OnboardFooter/OnboardFooter.tsx +5 -6
  67. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +1 -0
  68. package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +0 -3
  69. package/src/build-components/OnboardItem/pattern.json +27 -23
  70. package/src/build-components/OnboardProvider/pattern.json +29 -27
  71. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +1 -0
  72. package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +1 -0
  73. package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +0 -2
  74. package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +1 -0
  75. package/src/build-components/PaywallProvider/PaywallProvider.tsx +0 -10
  76. package/src/build-components/PriceTag/PriceTagProps.generated.ts +1 -0
  77. package/src/build-components/Pricing/PricingProps.generated.ts +1 -0
  78. package/src/build-components/Promo/PromoProps.generated.ts +1 -0
  79. package/src/build-components/RadioButton/pattern.json +2 -4
  80. package/src/build-components/Separator/pattern.json +24 -24
  81. package/src/build-components/Text/TextProps.generated.ts +1 -0
  82. package/src/build-components/Text/pattern.json +2 -1
  83. package/src/build-components/View/pattern.json +265 -265
  84. package/src/build-components/patterns.generated.ts +10019 -10689
  85. package/src/components/Breadcrumb.tsx +1 -1
  86. package/src/migrations/migratePipe.ts +1 -1
  87. package/src/migrations/semver.ts +3 -3
  88. package/src/modals/MockableFeatureModal.tsx +3 -1
  89. package/src/modals/PromptManagerModal.tsx +1 -7
  90. package/src/pages/DebugJsonPage.tsx +1 -1
  91. package/src/pages/ProjectDebug.tsx +1 -1
  92. package/src/pages/ProjectMigrationPage.tsx +1 -1
  93. package/src/pages/ProjectPage.tsx +1 -1
  94. package/src/pages/ProjectValidationPage.tsx +1 -1
  95. package/src/pages/tabs/SideTool.tsx +3 -1
  96. package/src/utils/nodeXml.ts +2 -4
  97. package/src/utils/parseColor.ts +5 -6
  98. package/src/utils/useMergedStyle.ts +1 -1
@@ -88,23 +88,6 @@
88
88
  "sort": 4
89
89
  }
90
90
  },
91
- "styles": {
92
- "backgroundColor": {
93
- "label": "Background Color",
94
- "description": "Background fill color.",
95
- "category": "style",
96
- "specialCategory": null,
97
- "sort": 20
98
- },
99
- "borderRadius": {
100
- "label": "Border Radius",
101
- "description": "Corner rounding amount.",
102
- "category": "style",
103
- "specialCategory": null,
104
- "sort": 21,
105
- "preferredScale": "s"
106
- }
107
- },
108
91
  "attributes": {
109
92
  "scrollable": {
110
93
  "label": "Scrollable",
@@ -113,254 +96,271 @@
113
96
  "specialCategory": null,
114
97
  "sort": -1
115
98
  },
116
- "flexDirection": {
117
- "label": "Flex Direction",
118
- "description": "Sets row or column layout.",
119
- "category": "container",
120
- "specialCategory": null,
121
- "sort": 4
122
- },
123
- "flexWrap": {
124
- "label": "Flex Wrap",
125
- "description": "Controls whether flex items wrap to multiple lines.",
126
- "category": "container",
127
- "specialCategory": null,
128
- "sort": 4.5
129
- },
130
- "alignItems": {
131
- "label": "Align Items",
132
- "description": "Controls cross-axis alignment.",
133
- "category": "container",
134
- "specialCategory": null,
135
- "sort": 3
136
- },
137
- "justifyContent": {
138
- "label": "Justify Content",
139
- "description": "Controls main-axis alignment.",
140
- "category": "container",
141
- "specialCategory": null,
142
- "sort": 5
143
- },
144
- "gap": {
145
- "label": "Gap",
146
- "description": "Space between children.",
147
- "category": "container",
148
- "specialCategory": null,
149
- "sort": 10,
150
- "preferredScale": "s"
151
- },
152
- "padding": {
153
- "label": "Padding",
154
- "description": "Uniform padding on all sides.",
155
- "category": "container",
156
- "specialCategory": "padding",
157
- "sort": 6,
158
- "preferredScale": "s"
159
- },
160
- "paddingHorizontal": {
161
- "label": "Padding Horizontal",
162
- "description": "Left and right padding.",
163
- "category": "container",
164
- "specialCategory": "padding",
165
- "sort": 7,
166
- "preferredScale": "s"
167
- },
168
- "paddingVertical": {
169
- "label": "Padding Vertical",
170
- "description": "Top and bottom padding.",
171
- "category": "container",
172
- "specialCategory": "padding",
173
- "sort": 8,
174
- "preferredScale": "vs"
175
- },
176
- "paddingTop": {
177
- "label": "Padding Top",
178
- "description": "Top padding only.",
179
- "category": "container",
180
- "specialCategory": "padding",
181
- "sort": 9,
182
- "preferredScale": "vs"
183
- },
184
- "paddingBottom": {
185
- "label": "Padding Bottom",
186
- "description": "Bottom padding only.",
187
- "category": "container",
188
- "specialCategory": "padding",
189
- "sort": 10,
190
- "preferredScale": "vs"
191
- },
192
- "paddingLeft": {
193
- "label": "Padding Left",
194
- "description": "Left padding only.",
195
- "category": "container",
196
- "specialCategory": "padding",
197
- "sort": 11,
198
- "preferredScale": "s"
199
- },
200
- "paddingRight": {
201
- "label": "Padding Right",
202
- "description": "Right padding only.",
203
- "category": "container",
204
- "specialCategory": "padding",
205
- "sort": 12,
206
- "preferredScale": "s"
207
- },
208
- "margin": {
209
- "label": "Margin",
210
- "description": "Uniform margin on all sides.",
211
- "category": "container",
212
- "specialCategory": "margin",
213
- "sort": 13,
214
- "preferredScale": "s"
215
- },
216
- "marginHorizontal": {
217
- "label": "Margin Horizontal",
218
- "description": "Left and right margin.",
219
- "category": "container",
220
- "specialCategory": "margin",
221
- "sort": 14,
222
- "preferredScale": "s"
223
- },
224
- "marginVertical": {
225
- "label": "Margin Vertical",
226
- "description": "Top and bottom margin.",
227
- "category": "container",
228
- "specialCategory": "margin",
229
- "sort": 15,
230
- "preferredScale": "vs"
231
- },
232
- "marginTop": {
233
- "label": "Margin Top",
234
- "description": "Top margin only.",
235
- "category": "container",
236
- "specialCategory": "margin",
237
- "sort": 16,
238
- "preferredScale": "vs"
239
- },
240
- "marginBottom": {
241
- "label": "Margin Bottom",
242
- "description": "Bottom margin only.",
243
- "category": "container",
244
- "specialCategory": "margin",
245
- "sort": 17,
246
- "preferredScale": "vs"
247
- },
248
- "marginLeft": {
249
- "label": "Margin Left",
250
- "description": "Left margin only.",
251
- "category": "container",
252
- "specialCategory": "margin",
253
- "sort": 18,
254
- "preferredScale": "s"
255
- },
256
- "marginRight": {
257
- "label": "Margin Right",
258
- "description": "Right margin only.",
259
- "category": "container",
260
- "specialCategory": "margin",
261
- "sort": 19,
262
- "preferredScale": "s"
263
- },
264
- "width": {
265
- "label": "Width",
266
- "description": "Fixed width value.",
267
- "category": "container",
268
- "specialCategory": "size",
269
- "sort": 0,
270
- "preferredScale": "s"
271
- },
272
- "minWidth": {
273
- "label": "Min Width",
274
- "description": "Minimum width constraint.",
275
- "category": "container",
276
- "specialCategory": "size",
277
- "sort": 1,
278
- "preferredScale": "s"
279
- },
280
- "maxWidth": {
281
- "label": "Max Width",
282
- "description": "Maximum width constraint.",
283
- "category": "container",
284
- "specialCategory": "size",
285
- "sort": 2,
286
- "preferredScale": "s"
287
- },
288
- "height": {
289
- "label": "Height",
290
- "description": "Fixed height value.",
291
- "category": "container",
292
- "specialCategory": "size",
293
- "sort": 3,
294
- "preferredScale": "vs"
295
- },
296
- "minHeight": {
297
- "label": "Min Height",
298
- "description": "Minimum height constraint.",
299
- "category": "container",
300
- "specialCategory": "size",
301
- "sort": 4,
302
- "preferredScale": "vs"
303
- },
304
- "maxHeight": {
305
- "label": "Max Height",
306
- "description": "Maximum height constraint.",
307
- "category": "container",
308
- "specialCategory": "size",
309
- "sort": 5,
310
- "preferredScale": "vs"
311
- },
312
- "flex": {
313
- "label": "Flex",
314
- "description": "Flex grow factor (e.g. 1 fills available space).",
315
- "category": "container",
316
- "specialCategory": "size",
317
- "sort": 6
318
- },
319
- "position": {
320
- "label": "Position",
321
- "description": "Sets layout positioning mode.",
322
- "category": "container",
323
- "specialCategory": null,
324
- "sort": 3
325
- },
326
- "top": {
327
- "label": "Top",
328
- "description": "Offset from the top edge.",
329
- "category": "container",
330
- "specialCategory": "offset",
331
- "sort": 22,
332
- "preferredScale": "vs"
333
- },
334
- "bottom": {
335
- "label": "Bottom",
336
- "description": "Offset from the bottom edge.",
337
- "category": "container",
338
- "specialCategory": "offset",
339
- "sort": 23,
340
- "preferredScale": "vs"
341
- },
342
- "left": {
343
- "label": "Left",
344
- "description": "Offset from the left edge.",
345
- "category": "container",
346
- "specialCategory": "offset",
347
- "sort": 24,
348
- "preferredScale": "s"
349
- },
350
- "right": {
351
- "label": "Right",
352
- "description": "Offset from the right edge.",
353
- "category": "container",
354
- "specialCategory": "offset",
355
- "sort": 25,
356
- "preferredScale": "s"
357
- },
358
- "zIndex": {
359
- "label": "Z-Index",
360
- "description": "Controls stacking order.",
361
- "category": "container",
362
- "specialCategory": null,
363
- "sort": 26
99
+ "styles": {
100
+ "backgroundColor": {
101
+ "label": "Background Color",
102
+ "description": "Background fill color.",
103
+ "category": "style",
104
+ "specialCategory": null,
105
+ "sort": 20
106
+ },
107
+ "borderRadius": {
108
+ "label": "Border Radius",
109
+ "description": "Corner rounding amount.",
110
+ "category": "style",
111
+ "specialCategory": null,
112
+ "sort": 21,
113
+ "preferredScale": "s"
114
+ },
115
+ "flexDirection": {
116
+ "label": "Flex Direction",
117
+ "description": "Sets row or column layout.",
118
+ "category": "container",
119
+ "specialCategory": null,
120
+ "sort": 4
121
+ },
122
+ "flexWrap": {
123
+ "label": "Flex Wrap",
124
+ "description": "Controls whether flex items wrap to multiple lines.",
125
+ "category": "container",
126
+ "specialCategory": null,
127
+ "sort": 4.5
128
+ },
129
+ "alignItems": {
130
+ "label": "Align Items",
131
+ "description": "Controls cross-axis alignment.",
132
+ "category": "container",
133
+ "specialCategory": null,
134
+ "sort": 3
135
+ },
136
+ "justifyContent": {
137
+ "label": "Justify Content",
138
+ "description": "Controls main-axis alignment.",
139
+ "category": "container",
140
+ "specialCategory": null,
141
+ "sort": 5
142
+ },
143
+ "gap": {
144
+ "label": "Gap",
145
+ "description": "Space between children.",
146
+ "category": "container",
147
+ "specialCategory": null,
148
+ "sort": 10,
149
+ "preferredScale": "s"
150
+ },
151
+ "padding": {
152
+ "label": "Padding",
153
+ "description": "Uniform padding on all sides.",
154
+ "category": "container",
155
+ "specialCategory": "padding",
156
+ "sort": 6,
157
+ "preferredScale": "s"
158
+ },
159
+ "paddingHorizontal": {
160
+ "label": "Padding Horizontal",
161
+ "description": "Left and right padding.",
162
+ "category": "container",
163
+ "specialCategory": "padding",
164
+ "sort": 7,
165
+ "preferredScale": "s"
166
+ },
167
+ "paddingVertical": {
168
+ "label": "Padding Vertical",
169
+ "description": "Top and bottom padding.",
170
+ "category": "container",
171
+ "specialCategory": "padding",
172
+ "sort": 8,
173
+ "preferredScale": "vs"
174
+ },
175
+ "paddingTop": {
176
+ "label": "Padding Top",
177
+ "description": "Top padding only.",
178
+ "category": "container",
179
+ "specialCategory": "padding",
180
+ "sort": 9,
181
+ "preferredScale": "vs"
182
+ },
183
+ "paddingBottom": {
184
+ "label": "Padding Bottom",
185
+ "description": "Bottom padding only.",
186
+ "category": "container",
187
+ "specialCategory": "padding",
188
+ "sort": 10,
189
+ "preferredScale": "vs"
190
+ },
191
+ "paddingLeft": {
192
+ "label": "Padding Left",
193
+ "description": "Left padding only.",
194
+ "category": "container",
195
+ "specialCategory": "padding",
196
+ "sort": 11,
197
+ "preferredScale": "s"
198
+ },
199
+ "paddingRight": {
200
+ "label": "Padding Right",
201
+ "description": "Right padding only.",
202
+ "category": "container",
203
+ "specialCategory": "padding",
204
+ "sort": 12,
205
+ "preferredScale": "s"
206
+ },
207
+ "margin": {
208
+ "label": "Margin",
209
+ "description": "Uniform margin on all sides.",
210
+ "category": "container",
211
+ "specialCategory": "margin",
212
+ "sort": 13,
213
+ "preferredScale": "s"
214
+ },
215
+ "marginHorizontal": {
216
+ "label": "Margin Horizontal",
217
+ "description": "Left and right margin.",
218
+ "category": "container",
219
+ "specialCategory": "margin",
220
+ "sort": 14,
221
+ "preferredScale": "s"
222
+ },
223
+ "marginVertical": {
224
+ "label": "Margin Vertical",
225
+ "description": "Top and bottom margin.",
226
+ "category": "container",
227
+ "specialCategory": "margin",
228
+ "sort": 15,
229
+ "preferredScale": "vs"
230
+ },
231
+ "marginTop": {
232
+ "label": "Margin Top",
233
+ "description": "Top margin only.",
234
+ "category": "container",
235
+ "specialCategory": "margin",
236
+ "sort": 16,
237
+ "preferredScale": "vs"
238
+ },
239
+ "marginBottom": {
240
+ "label": "Margin Bottom",
241
+ "description": "Bottom margin only.",
242
+ "category": "container",
243
+ "specialCategory": "margin",
244
+ "sort": 17,
245
+ "preferredScale": "vs"
246
+ },
247
+ "marginLeft": {
248
+ "label": "Margin Left",
249
+ "description": "Left margin only.",
250
+ "category": "container",
251
+ "specialCategory": "margin",
252
+ "sort": 18,
253
+ "preferredScale": "s"
254
+ },
255
+ "marginRight": {
256
+ "label": "Margin Right",
257
+ "description": "Right margin only.",
258
+ "category": "container",
259
+ "specialCategory": "margin",
260
+ "sort": 19,
261
+ "preferredScale": "s"
262
+ },
263
+ "width": {
264
+ "label": "Width",
265
+ "description": "Fixed width value.",
266
+ "category": "container",
267
+ "specialCategory": "size",
268
+ "sort": 0,
269
+ "preferredScale": "s"
270
+ },
271
+ "minWidth": {
272
+ "label": "Min Width",
273
+ "description": "Minimum width constraint.",
274
+ "category": "container",
275
+ "specialCategory": "size",
276
+ "sort": 1,
277
+ "preferredScale": "s"
278
+ },
279
+ "maxWidth": {
280
+ "label": "Max Width",
281
+ "description": "Maximum width constraint.",
282
+ "category": "container",
283
+ "specialCategory": "size",
284
+ "sort": 2,
285
+ "preferredScale": "s"
286
+ },
287
+ "height": {
288
+ "label": "Height",
289
+ "description": "Fixed height value.",
290
+ "category": "container",
291
+ "specialCategory": "size",
292
+ "sort": 3,
293
+ "preferredScale": "vs"
294
+ },
295
+ "minHeight": {
296
+ "label": "Min Height",
297
+ "description": "Minimum height constraint.",
298
+ "category": "container",
299
+ "specialCategory": "size",
300
+ "sort": 4,
301
+ "preferredScale": "vs"
302
+ },
303
+ "maxHeight": {
304
+ "label": "Max Height",
305
+ "description": "Maximum height constraint.",
306
+ "category": "container",
307
+ "specialCategory": "size",
308
+ "sort": 5,
309
+ "preferredScale": "vs"
310
+ },
311
+ "flex": {
312
+ "label": "Flex",
313
+ "description": "Flex grow factor (e.g. 1 fills available space).",
314
+ "category": "container",
315
+ "specialCategory": "size",
316
+ "sort": 6
317
+ },
318
+ "position": {
319
+ "label": "Position",
320
+ "description": "Sets layout positioning mode.",
321
+ "category": "container",
322
+ "specialCategory": null,
323
+ "sort": 3
324
+ },
325
+ "top": {
326
+ "label": "Top",
327
+ "description": "Offset from the top edge.",
328
+ "category": "container",
329
+ "specialCategory": "offset",
330
+ "sort": 22,
331
+ "preferredScale": "vs"
332
+ },
333
+ "bottom": {
334
+ "label": "Bottom",
335
+ "description": "Offset from the bottom edge.",
336
+ "category": "container",
337
+ "specialCategory": "offset",
338
+ "sort": 23,
339
+ "preferredScale": "vs"
340
+ },
341
+ "left": {
342
+ "label": "Left",
343
+ "description": "Offset from the left edge.",
344
+ "category": "container",
345
+ "specialCategory": "offset",
346
+ "sort": 24,
347
+ "preferredScale": "s"
348
+ },
349
+ "right": {
350
+ "label": "Right",
351
+ "description": "Offset from the right edge.",
352
+ "category": "container",
353
+ "specialCategory": "offset",
354
+ "sort": 25,
355
+ "preferredScale": "s"
356
+ },
357
+ "zIndex": {
358
+ "label": "Z-Index",
359
+ "description": "Controls stacking order.",
360
+ "category": "container",
361
+ "specialCategory": null,
362
+ "sort": 26
363
+ }
364
364
  }
365
365
  }
366
366
  },