@elementor/editor-props 4.0.0-547 → 4.0.0-548

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/dist/index.mjs CHANGED
@@ -204,35 +204,39 @@ var sizePropTypeUtil = createPropUtils(
204
204
  import { z as z16 } from "@elementor/schema";
205
205
  var stringPropTypeUtil = createPropUtils("string", z16.string().nullable());
206
206
 
207
- // src/prop-types/stroke.ts
207
+ // src/prop-types/string-array.ts
208
208
  import { z as z17 } from "@elementor/schema";
209
+ var stringArrayPropTypeUtil = createPropUtils("string-array", z17.array(z17.string()));
210
+
211
+ // src/prop-types/stroke.ts
212
+ import { z as z18 } from "@elementor/schema";
209
213
  var strokePropTypeUtil = createPropUtils(
210
214
  "stroke",
211
- z17.strictObject({
215
+ z18.strictObject({
212
216
  color: unknownChildrenSchema,
213
217
  width: unknownChildrenSchema
214
218
  })
215
219
  );
216
220
 
217
221
  // src/prop-types/url.ts
218
- import { z as z18 } from "@elementor/schema";
219
- var urlPropTypeUtil = createPropUtils("url", z18.string().nullable());
222
+ import { z as z19 } from "@elementor/schema";
223
+ var urlPropTypeUtil = createPropUtils("url", z19.string().nullable());
220
224
 
221
225
  // src/prop-types/layout-direction.ts
222
- import { z as z19 } from "@elementor/schema";
226
+ import { z as z20 } from "@elementor/schema";
223
227
  var layoutDirectionPropTypeUtil = createPropUtils(
224
228
  "layout-direction",
225
- z19.object({
226
- row: z19.any(),
227
- column: z19.any()
229
+ z20.object({
230
+ row: z20.any(),
231
+ column: z20.any()
228
232
  })
229
233
  );
230
234
 
231
235
  // src/prop-types/link.ts
232
- import { z as z20 } from "@elementor/schema";
236
+ import { z as z21 } from "@elementor/schema";
233
237
  var linkPropTypeUtil = createPropUtils(
234
238
  "link",
235
- z20.strictObject({
239
+ z21.strictObject({
236
240
  destination: unknownChildrenSchema,
237
241
  isTargetBlank: unknownChildrenSchema,
238
242
  tag: unknownChildrenSchema
@@ -240,13 +244,13 @@ var linkPropTypeUtil = createPropUtils(
240
244
  );
241
245
 
242
246
  // src/prop-types/selection-size.ts
243
- import { z as z22 } from "@elementor/schema";
247
+ import { z as z23 } from "@elementor/schema";
244
248
 
245
249
  // src/prop-types/key-value.ts
246
- import { z as z21 } from "@elementor/schema";
250
+ import { z as z22 } from "@elementor/schema";
247
251
  var keyValuePropTypeUtil = createPropUtils(
248
252
  "key-value",
249
- z21.strictObject({
253
+ z22.strictObject({
250
254
  key: unknownChildrenSchema,
251
255
  value: unknownChildrenSchema
252
256
  })
@@ -255,17 +259,17 @@ var keyValuePropTypeUtil = createPropUtils(
255
259
  // src/prop-types/selection-size.ts
256
260
  var selectionSizePropTypeUtil = createPropUtils(
257
261
  "selection-size",
258
- z22.strictObject({
259
- selection: z22.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
262
+ z23.strictObject({
263
+ selection: z23.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
260
264
  size: unknownChildrenSchema
261
265
  })
262
266
  );
263
267
 
264
268
  // src/prop-types/background-prop-types/background.ts
265
- import { z as z23 } from "@elementor/schema";
269
+ import { z as z24 } from "@elementor/schema";
266
270
  var backgroundPropTypeUtil = createPropUtils(
267
271
  "background",
268
- z23.strictObject({
272
+ z24.strictObject({
269
273
  color: unknownChildrenSchema,
270
274
  clip: unknownChildrenSchema,
271
275
  "background-overlay": unknownChildrenSchema
@@ -273,7 +277,7 @@ var backgroundPropTypeUtil = createPropUtils(
273
277
  );
274
278
 
275
279
  // src/prop-types/background-prop-types/background-overlay.ts
276
- import { z as z24 } from "@elementor/schema";
280
+ import { z as z25 } from "@elementor/schema";
277
281
 
278
282
  // src/prop-types/background-prop-types/background-color-overlay.ts
279
283
  var backgroundColorOverlayPropTypeUtil = createPropUtils("background-color-overlay", unknownChildrenSchema);
@@ -289,7 +293,7 @@ var backgroundImageOverlayPropTypeUtil = createPropUtils("background-image-overl
289
293
 
290
294
  // src/prop-types/background-prop-types/background-overlay.ts
291
295
  var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema);
292
- var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z24.array(backgroundOverlayItem));
296
+ var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z25.array(backgroundOverlayItem));
293
297
 
294
298
  // src/prop-types/background-prop-types/background-image-position-offset.ts
295
299
  var backgroundImagePositionOffsetPropTypeUtil = createPropUtils(
@@ -304,68 +308,68 @@ var backgroundImageSizeScalePropTypeUtil = createPropUtils(
304
308
  );
305
309
 
306
310
  // src/prop-types/boolean.ts
307
- import { z as z25 } from "@elementor/schema";
308
- var booleanPropTypeUtil = createPropUtils("boolean", z25.boolean().nullable());
311
+ import { z as z26 } from "@elementor/schema";
312
+ var booleanPropTypeUtil = createPropUtils("boolean", z26.boolean().nullable());
309
313
 
310
314
  // src/prop-types/color-stop.ts
311
- import { z as z26 } from "@elementor/schema";
315
+ import { z as z27 } from "@elementor/schema";
312
316
  var colorStopPropTypeUtil = createPropUtils(
313
317
  "color-stop",
314
- z26.strictObject({
318
+ z27.strictObject({
315
319
  color: unknownChildrenSchema,
316
320
  offset: unknownChildrenSchema
317
321
  })
318
322
  );
319
323
 
320
324
  // src/prop-types/gradient-color-stop.ts
321
- import { z as z27 } from "@elementor/schema";
325
+ import { z as z28 } from "@elementor/schema";
322
326
  var gradientColorStopPropTypeUtil = createPropUtils(
323
327
  "gradient-color-stop",
324
- z27.array(colorStopPropTypeUtil.schema)
328
+ z28.array(colorStopPropTypeUtil.schema)
325
329
  );
326
330
 
327
331
  // src/prop-types/date-time.ts
328
- import { z as z28 } from "@elementor/schema";
332
+ import { z as z29 } from "@elementor/schema";
329
333
  var DateTimePropTypeUtil = createPropUtils(
330
334
  "date-time",
331
- z28.strictObject({
335
+ z29.strictObject({
332
336
  date: unknownChildrenSchema,
333
337
  time: unknownChildrenSchema
334
338
  })
335
339
  );
336
340
 
337
341
  // src/prop-types/position.ts
338
- import { z as z29 } from "@elementor/schema";
342
+ import { z as z30 } from "@elementor/schema";
339
343
  var positionPropTypeUtil = createPropUtils(
340
344
  "object-position",
341
- z29.strictObject({
345
+ z30.strictObject({
342
346
  x: unknownChildrenSchema,
343
347
  y: unknownChildrenSchema
344
348
  })
345
349
  );
346
350
 
347
351
  // src/prop-types/query.ts
348
- import { z as z30 } from "@elementor/schema";
352
+ import { z as z31 } from "@elementor/schema";
349
353
  var queryPropTypeUtil = createPropUtils(
350
354
  "query",
351
- z30.strictObject({
355
+ z31.strictObject({
352
356
  id: unknownChildrenSchema,
353
357
  label: unknownChildrenSchema
354
358
  })
355
359
  );
356
360
 
357
361
  // src/prop-types/html.ts
358
- import { z as z31 } from "@elementor/schema";
359
- var htmlPropTypeUtil = createPropUtils("html", z31.string().nullable());
362
+ import { z as z32 } from "@elementor/schema";
363
+ var htmlPropTypeUtil = createPropUtils("html", z32.string().nullable());
360
364
 
361
365
  // src/prop-types/filter-prop-types/filter.ts
362
- import { z as z37 } from "@elementor/schema";
366
+ import { z as z38 } from "@elementor/schema";
363
367
 
364
368
  // src/prop-types/filter-prop-types/drop-shadow-filter.ts
365
- import { z as z32 } from "@elementor/schema";
369
+ import { z as z33 } from "@elementor/schema";
366
370
  var dropShadowFilterPropTypeUtil = createPropUtils(
367
371
  "drop-shadow",
368
- z32.object({
372
+ z33.object({
369
373
  xAxis: unknownChildrenSchema,
370
374
  yAxis: unknownChildrenSchema,
371
375
  blur: unknownChildrenSchema,
@@ -374,37 +378,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
374
378
  );
375
379
 
376
380
  // src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
377
- import { z as z33 } from "@elementor/schema";
381
+ import { z as z34 } from "@elementor/schema";
378
382
  var blurFilterPropTypeUtil = createPropUtils(
379
383
  "blur",
380
- z33.strictObject({
384
+ z34.strictObject({
381
385
  size: unknownChildrenSchema
382
386
  })
383
387
  );
384
388
 
385
389
  // src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
386
- import { z as z34 } from "@elementor/schema";
390
+ import { z as z35 } from "@elementor/schema";
387
391
  var colorToneFilterPropTypeUtil = createPropUtils(
388
392
  "color-tone",
389
- z34.strictObject({
393
+ z35.strictObject({
390
394
  size: unknownChildrenSchema
391
395
  })
392
396
  );
393
397
 
394
398
  // src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
395
- import { z as z35 } from "@elementor/schema";
399
+ import { z as z36 } from "@elementor/schema";
396
400
  var hueRotateFilterPropTypeUtil = createPropUtils(
397
401
  "hue-rotate",
398
- z35.strictObject({
402
+ z36.strictObject({
399
403
  size: unknownChildrenSchema
400
404
  })
401
405
  );
402
406
 
403
407
  // src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
404
- import { z as z36 } from "@elementor/schema";
408
+ import { z as z37 } from "@elementor/schema";
405
409
  var intensityFilterPropTypeUtil = createPropUtils(
406
410
  "intensity",
407
- z36.strictObject({
411
+ z37.strictObject({
408
412
  size: unknownChildrenSchema
409
413
  })
410
414
  );
@@ -412,9 +416,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
412
416
  // src/prop-types/filter-prop-types/filter.ts
413
417
  var cssFilterFunctionPropUtil = createPropUtils(
414
418
  "css-filter-func",
415
- z37.object({
419
+ z38.object({
416
420
  func: stringPropTypeUtil.schema,
417
- args: z37.union([
421
+ args: z38.union([
418
422
  blurFilterPropTypeUtil.schema,
419
423
  intensityFilterPropTypeUtil.schema,
420
424
  colorToneFilterPropTypeUtil.schema,
@@ -423,13 +427,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
423
427
  ])
424
428
  })
425
429
  );
426
- var filterPropTypeUtil = createPropUtils("filter", z37.array(cssFilterFunctionPropUtil.schema));
430
+ var filterPropTypeUtil = createPropUtils("filter", z38.array(cssFilterFunctionPropUtil.schema));
427
431
 
428
432
  // src/prop-types/transform-prop-types/transform.ts
429
- import { z as z38 } from "@elementor/schema";
433
+ import { z as z39 } from "@elementor/schema";
430
434
  var transformPropTypeUtil = createPropUtils(
431
435
  "transform",
432
- z38.strictObject({
436
+ z39.strictObject({
433
437
  "transform-functions": unknownChildrenSchema,
434
438
  "transform-origin": unknownChildrenSchema,
435
439
  perspective: unknownChildrenSchema,
@@ -438,10 +442,10 @@ var transformPropTypeUtil = createPropUtils(
438
442
  );
439
443
 
440
444
  // src/prop-types/transform-prop-types/transform-functions.ts
441
- import { z as z43 } from "@elementor/schema";
445
+ import { z as z44 } from "@elementor/schema";
442
446
 
443
447
  // src/prop-types/transform-prop-types/transform-functions/move-transform.ts
444
- import { z as z39 } from "@elementor/schema";
448
+ import { z as z40 } from "@elementor/schema";
445
449
 
446
450
  // src/prop-types/transform-prop-types/types.ts
447
451
  var TransformFunctionKeys = {
@@ -454,7 +458,7 @@ var TransformFunctionKeys = {
454
458
  // src/prop-types/transform-prop-types/transform-functions/move-transform.ts
455
459
  var moveTransformPropTypeUtil = createPropUtils(
456
460
  TransformFunctionKeys.move,
457
- z39.strictObject({
461
+ z40.strictObject({
458
462
  x: unknownChildrenSchema,
459
463
  y: unknownChildrenSchema,
460
464
  z: unknownChildrenSchema
@@ -462,10 +466,10 @@ var moveTransformPropTypeUtil = createPropUtils(
462
466
  );
463
467
 
464
468
  // src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
465
- import { z as z40 } from "@elementor/schema";
469
+ import { z as z41 } from "@elementor/schema";
466
470
  var rotateTransformPropTypeUtil = createPropUtils(
467
471
  TransformFunctionKeys.rotate,
468
- z40.strictObject({
472
+ z41.strictObject({
469
473
  x: unknownChildrenSchema,
470
474
  y: unknownChildrenSchema,
471
475
  z: unknownChildrenSchema
@@ -473,10 +477,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
473
477
  );
474
478
 
475
479
  // src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
476
- import { z as z41 } from "@elementor/schema";
480
+ import { z as z42 } from "@elementor/schema";
477
481
  var scaleTransformPropTypeUtil = createPropUtils(
478
482
  TransformFunctionKeys.scale,
479
- z41.strictObject({
483
+ z42.strictObject({
480
484
  x: numberPropTypeUtil.schema.nullable(),
481
485
  y: numberPropTypeUtil.schema.nullable(),
482
486
  z: numberPropTypeUtil.schema.nullable()
@@ -484,10 +488,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
484
488
  );
485
489
 
486
490
  // src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
487
- import { z as z42 } from "@elementor/schema";
491
+ import { z as z43 } from "@elementor/schema";
488
492
  var skewTransformPropTypeUtil = createPropUtils(
489
493
  TransformFunctionKeys.skew,
490
- z42.strictObject({
494
+ z43.strictObject({
491
495
  x: unknownChildrenSchema,
492
496
  y: unknownChildrenSchema
493
497
  })
@@ -495,13 +499,13 @@ var skewTransformPropTypeUtil = createPropUtils(
495
499
 
496
500
  // src/prop-types/transform-prop-types/transform-functions.ts
497
501
  var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
498
- var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z43.array(filterTypes));
502
+ var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z44.array(filterTypes));
499
503
 
500
504
  // src/prop-types/transform-prop-types/transform-origin.ts
501
- import { z as z44 } from "@elementor/schema";
505
+ import { z as z45 } from "@elementor/schema";
502
506
  var transformOriginPropTypeUtil = createPropUtils(
503
507
  "transform-origin",
504
- z44.strictObject({
508
+ z45.strictObject({
505
509
  x: unknownChildrenSchema,
506
510
  y: unknownChildrenSchema,
507
511
  z: unknownChildrenSchema
@@ -509,20 +513,20 @@ var transformOriginPropTypeUtil = createPropUtils(
509
513
  );
510
514
 
511
515
  // src/prop-types/transform-prop-types/perspective-origin.ts
512
- import { z as z45 } from "@elementor/schema";
516
+ import { z as z46 } from "@elementor/schema";
513
517
  var perspectiveOriginPropTypeUtil = createPropUtils(
514
518
  "perspective-origin",
515
- z45.strictObject({
519
+ z46.strictObject({
516
520
  x: unknownChildrenSchema,
517
521
  y: unknownChildrenSchema
518
522
  })
519
523
  );
520
524
 
521
525
  // src/prop-types/filter-prop-types/backdrop-filter.ts
522
- import { z as z46 } from "@elementor/schema";
526
+ import { z as z47 } from "@elementor/schema";
523
527
  var backdropFilterPropTypeUtil = createPropUtils(
524
528
  "backdrop-filter",
525
- z46.array(cssFilterFunctionPropUtil.schema)
529
+ z47.array(cssFilterFunctionPropUtil.schema)
526
530
  );
527
531
 
528
532
  // src/utils/adjust-llm-prop-value-schema.ts
@@ -937,11 +941,11 @@ var validatePropValue = (schema, value) => {
937
941
  };
938
942
 
939
943
  // src/utils/is-transformable.ts
940
- import { z as z47 } from "@elementor/schema";
941
- var transformableSchema = z47.object({
942
- $$type: z47.string(),
943
- value: z47.any(),
944
- disabled: z47.boolean().optional()
944
+ import { z as z48 } from "@elementor/schema";
945
+ var transformableSchema = z48.object({
946
+ $$type: z48.string(),
947
+ value: z48.any(),
948
+ disabled: z48.boolean().optional()
945
949
  });
946
950
  var isTransformable = (value) => {
947
951
  return transformableSchema.safeParse(value).success;
@@ -1151,6 +1155,7 @@ export {
1151
1155
  shadowPropTypeUtil,
1152
1156
  sizePropTypeUtil,
1153
1157
  skewTransformPropTypeUtil,
1158
+ stringArrayPropTypeUtil,
1154
1159
  stringPropTypeUtil,
1155
1160
  strokePropTypeUtil,
1156
1161
  transformFunctionsPropTypeUtil,