@elementor/editor-props 4.1.0-manual → 4.2.0-839

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
@@ -149,7 +149,8 @@ var imageSrcPropTypeUtil = createPropUtils(
149
149
  }).or(
150
150
  z12.strictObject({
151
151
  id: z12.null(),
152
- url: unknownChildrenSchema
152
+ url: unknownChildrenSchema,
153
+ alt: unknownChildrenSchema
153
154
  })
154
155
  )
155
156
  );
@@ -238,42 +239,46 @@ var sizePropTypeUtil = createPropUtils(
238
239
  )
239
240
  );
240
241
 
241
- // src/prop-types/string.ts
242
+ // src/prop-types/span.ts
242
243
  import { z as z19 } from "@elementor/schema";
243
- var stringPropTypeUtil = createPropUtils("string", z19.string().nullable());
244
+ var spanPropTypeUtil = createPropUtils("span", z19.number().nullable());
245
+
246
+ // src/prop-types/string.ts
247
+ import { z as z20 } from "@elementor/schema";
248
+ var stringPropTypeUtil = createPropUtils("string", z20.string().nullable());
244
249
 
245
250
  // src/prop-types/string-array.ts
246
251
  var stringArrayPropTypeUtil = createArrayPropUtils(stringPropTypeUtil.key, stringPropTypeUtil.schema);
247
252
 
248
253
  // src/prop-types/stroke.ts
249
- import { z as z20 } from "@elementor/schema";
254
+ import { z as z21 } from "@elementor/schema";
250
255
  var strokePropTypeUtil = createPropUtils(
251
256
  "stroke",
252
- z20.strictObject({
257
+ z21.strictObject({
253
258
  color: unknownChildrenSchema,
254
259
  width: unknownChildrenSchema
255
260
  })
256
261
  );
257
262
 
258
263
  // src/prop-types/url.ts
259
- import { z as z21 } from "@elementor/schema";
260
- var urlPropTypeUtil = createPropUtils("url", z21.string().nullable());
264
+ import { z as z22 } from "@elementor/schema";
265
+ var urlPropTypeUtil = createPropUtils("url", z22.string().nullable());
261
266
 
262
267
  // src/prop-types/layout-direction.ts
263
- import { z as z22 } from "@elementor/schema";
268
+ import { z as z23 } from "@elementor/schema";
264
269
  var layoutDirectionPropTypeUtil = createPropUtils(
265
270
  "layout-direction",
266
- z22.object({
267
- row: z22.any(),
268
- column: z22.any()
271
+ z23.object({
272
+ row: z23.any(),
273
+ column: z23.any()
269
274
  })
270
275
  );
271
276
 
272
277
  // src/prop-types/link.ts
273
- import { z as z23 } from "@elementor/schema";
278
+ import { z as z24 } from "@elementor/schema";
274
279
  var linkPropTypeUtil = createPropUtils(
275
280
  "link",
276
- z23.strictObject({
281
+ z24.strictObject({
277
282
  destination: unknownChildrenSchema,
278
283
  isTargetBlank: unknownChildrenSchema,
279
284
  tag: unknownChildrenSchema
@@ -281,10 +286,10 @@ var linkPropTypeUtil = createPropUtils(
281
286
  );
282
287
 
283
288
  // src/prop-types/email.ts
284
- import { z as z24 } from "@elementor/schema";
289
+ import { z as z25 } from "@elementor/schema";
285
290
  var emailPropTypeUtil = createPropUtils(
286
291
  "email",
287
- z24.strictObject({
292
+ z25.strictObject({
288
293
  to: unknownChildrenSchema,
289
294
  subject: unknownChildrenSchema,
290
295
  message: unknownChildrenSchema,
@@ -299,13 +304,13 @@ var emailPropTypeUtil = createPropUtils(
299
304
  );
300
305
 
301
306
  // src/prop-types/selection-size.ts
302
- import { z as z26 } from "@elementor/schema";
307
+ import { z as z27 } from "@elementor/schema";
303
308
 
304
309
  // src/prop-types/key-value.ts
305
- import { z as z25 } from "@elementor/schema";
310
+ import { z as z26 } from "@elementor/schema";
306
311
  var keyValuePropTypeUtil = createPropUtils(
307
312
  "key-value",
308
- z25.strictObject({
313
+ z26.strictObject({
309
314
  key: unknownChildrenSchema,
310
315
  value: unknownChildrenSchema
311
316
  })
@@ -314,17 +319,17 @@ var keyValuePropTypeUtil = createPropUtils(
314
319
  // src/prop-types/selection-size.ts
315
320
  var selectionSizePropTypeUtil = createPropUtils(
316
321
  "selection-size",
317
- z26.strictObject({
318
- selection: z26.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
322
+ z27.strictObject({
323
+ selection: z27.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
319
324
  size: unknownChildrenSchema
320
325
  })
321
326
  );
322
327
 
323
328
  // src/prop-types/background-prop-types/background.ts
324
- import { z as z27 } from "@elementor/schema";
329
+ import { z as z28 } from "@elementor/schema";
325
330
  var backgroundPropTypeUtil = createPropUtils(
326
331
  "background",
327
- z27.strictObject({
332
+ z28.strictObject({
328
333
  color: unknownChildrenSchema,
329
334
  clip: unknownChildrenSchema,
330
335
  "background-overlay": unknownChildrenSchema
@@ -332,7 +337,7 @@ var backgroundPropTypeUtil = createPropUtils(
332
337
  );
333
338
 
334
339
  // src/prop-types/background-prop-types/background-overlay.ts
335
- import { z as z28 } from "@elementor/schema";
340
+ import { z as z29 } from "@elementor/schema";
336
341
 
337
342
  // src/prop-types/background-prop-types/background-color-overlay.ts
338
343
  var backgroundColorOverlayPropTypeUtil = createPropUtils("background-color-overlay", unknownChildrenSchema);
@@ -348,7 +353,7 @@ var backgroundImageOverlayPropTypeUtil = createPropUtils("background-image-overl
348
353
 
349
354
  // src/prop-types/background-prop-types/background-overlay.ts
350
355
  var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema);
351
- var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z28.array(backgroundOverlayItem));
356
+ var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z29.array(backgroundOverlayItem));
352
357
 
353
358
  // src/prop-types/background-prop-types/background-image-position-offset.ts
354
359
  var backgroundImagePositionOffsetPropTypeUtil = createPropUtils(
@@ -363,92 +368,102 @@ var backgroundImageSizeScalePropTypeUtil = createPropUtils(
363
368
  );
364
369
 
365
370
  // src/prop-types/boolean.ts
366
- import { z as z29 } from "@elementor/schema";
367
- var booleanPropTypeUtil = createPropUtils("boolean", z29.boolean().nullable());
371
+ import { z as z30 } from "@elementor/schema";
372
+ var booleanPropTypeUtil = createPropUtils("boolean", z30.boolean().nullable());
368
373
 
369
374
  // src/prop-types/color-stop.ts
370
- import { z as z30 } from "@elementor/schema";
375
+ import { z as z31 } from "@elementor/schema";
371
376
  var colorStopPropTypeUtil = createPropUtils(
372
377
  "color-stop",
373
- z30.strictObject({
378
+ z31.strictObject({
374
379
  color: unknownChildrenSchema,
375
380
  offset: unknownChildrenSchema
376
381
  })
377
382
  );
378
383
 
379
384
  // src/prop-types/gradient-color-stop.ts
380
- import { z as z31 } from "@elementor/schema";
385
+ import { z as z32 } from "@elementor/schema";
381
386
  var gradientColorStopPropTypeUtil = createPropUtils(
382
387
  "gradient-color-stop",
383
- z31.array(colorStopPropTypeUtil.schema)
388
+ z32.array(colorStopPropTypeUtil.schema)
389
+ );
390
+
391
+ // src/prop-types/number-range.ts
392
+ import { z as z33 } from "@elementor/schema";
393
+ var numberRangePropTypeUtil = createPropUtils(
394
+ "number-range",
395
+ z33.strictObject({
396
+ min: unknownChildrenSchema,
397
+ max: unknownChildrenSchema
398
+ })
384
399
  );
385
400
 
386
401
  // src/prop-types/date-time.ts
387
- import { z as z32 } from "@elementor/schema";
402
+ import { z as z34 } from "@elementor/schema";
388
403
  var DateTimePropTypeUtil = createPropUtils(
389
404
  "date-time",
390
- z32.strictObject({
405
+ z34.strictObject({
391
406
  date: unknownChildrenSchema,
392
407
  time: unknownChildrenSchema
393
408
  })
394
409
  );
395
410
 
396
411
  // src/prop-types/position.ts
397
- import { z as z33 } from "@elementor/schema";
412
+ import { z as z35 } from "@elementor/schema";
398
413
  var positionPropTypeUtil = createPropUtils(
399
414
  "object-position",
400
- z33.strictObject({
415
+ z35.strictObject({
401
416
  x: unknownChildrenSchema,
402
417
  y: unknownChildrenSchema
403
418
  })
404
419
  );
405
420
 
406
421
  // src/prop-types/query.ts
407
- import { z as z34 } from "@elementor/schema";
422
+ import { z as z36 } from "@elementor/schema";
408
423
  var queryPropTypeUtil = createPropUtils(
409
424
  "query",
410
- z34.strictObject({
425
+ z36.strictObject({
411
426
  id: unknownChildrenSchema,
412
427
  label: unknownChildrenSchema
413
428
  })
414
429
  );
415
430
 
416
431
  // src/prop-types/html.ts
417
- import { z as z35 } from "@elementor/schema";
418
- var htmlPropTypeUtil = createPropUtils("html", z35.string().nullable());
432
+ import { z as z37 } from "@elementor/schema";
433
+ var htmlPropTypeUtil = createPropUtils("html", z37.string().nullable());
419
434
 
420
435
  // src/prop-types/html-v2.ts
421
- import { z as z36 } from "@elementor/schema";
422
- var childElementSchema = z36.lazy(
423
- () => z36.object({
424
- id: z36.string(),
425
- type: z36.string(),
426
- content: z36.string().optional(),
427
- children: z36.array(childElementSchema).optional()
436
+ import { z as z38 } from "@elementor/schema";
437
+ var childElementSchema = z38.lazy(
438
+ () => z38.object({
439
+ id: z38.string(),
440
+ type: z38.string(),
441
+ content: z38.string().optional(),
442
+ children: z38.array(childElementSchema).optional()
428
443
  })
429
444
  );
430
- var htmlV2ValueSchema = z36.object({
431
- content: z36.string().nullable(),
432
- children: z36.array(childElementSchema)
445
+ var htmlV2ValueSchema = z38.object({
446
+ content: z38.string().nullable(),
447
+ children: z38.array(childElementSchema)
433
448
  });
434
449
  var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema);
435
450
 
436
451
  // src/prop-types/html-v3.ts
437
- import { z as z37 } from "@elementor/schema";
438
- var htmlV3ValueSchema = z37.object({
452
+ import { z as z39 } from "@elementor/schema";
453
+ var htmlV3ValueSchema = z39.object({
439
454
  content: stringPropTypeUtil.schema.nullable(),
440
- children: z37.array(z37.unknown())
455
+ children: z39.array(z39.unknown())
441
456
  });
442
457
  var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
443
458
 
444
459
  // src/prop-types/filter-prop-types/filter.ts
445
- import { z as z43 } from "@elementor/schema";
460
+ import { z as z45 } from "@elementor/schema";
446
461
 
447
462
  // src/prop-types/filter-prop-types/drop-shadow-filter.ts
448
- import { z as z38 } from "@elementor/schema";
463
+ import { z as z40 } from "@elementor/schema";
449
464
  var dropShadowFilterPropTypeUtil = createPropUtils(
450
465
  "drop-shadow",
451
- z38.object({
466
+ z40.object({
452
467
  xAxis: unknownChildrenSchema,
453
468
  yAxis: unknownChildrenSchema,
454
469
  blur: unknownChildrenSchema,
@@ -457,37 +472,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
457
472
  );
458
473
 
459
474
  // src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
460
- import { z as z39 } from "@elementor/schema";
475
+ import { z as z41 } from "@elementor/schema";
461
476
  var blurFilterPropTypeUtil = createPropUtils(
462
477
  "blur",
463
- z39.strictObject({
478
+ z41.strictObject({
464
479
  size: unknownChildrenSchema
465
480
  })
466
481
  );
467
482
 
468
483
  // src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
469
- import { z as z40 } from "@elementor/schema";
484
+ import { z as z42 } from "@elementor/schema";
470
485
  var colorToneFilterPropTypeUtil = createPropUtils(
471
486
  "color-tone",
472
- z40.strictObject({
487
+ z42.strictObject({
473
488
  size: unknownChildrenSchema
474
489
  })
475
490
  );
476
491
 
477
492
  // src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
478
- import { z as z41 } from "@elementor/schema";
493
+ import { z as z43 } from "@elementor/schema";
479
494
  var hueRotateFilterPropTypeUtil = createPropUtils(
480
495
  "hue-rotate",
481
- z41.strictObject({
496
+ z43.strictObject({
482
497
  size: unknownChildrenSchema
483
498
  })
484
499
  );
485
500
 
486
501
  // src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
487
- import { z as z42 } from "@elementor/schema";
502
+ import { z as z44 } from "@elementor/schema";
488
503
  var intensityFilterPropTypeUtil = createPropUtils(
489
504
  "intensity",
490
- z42.strictObject({
505
+ z44.strictObject({
491
506
  size: unknownChildrenSchema
492
507
  })
493
508
  );
@@ -495,9 +510,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
495
510
  // src/prop-types/filter-prop-types/filter.ts
496
511
  var cssFilterFunctionPropUtil = createPropUtils(
497
512
  "css-filter-func",
498
- z43.object({
513
+ z45.object({
499
514
  func: stringPropTypeUtil.schema,
500
- args: z43.union([
515
+ args: z45.union([
501
516
  blurFilterPropTypeUtil.schema,
502
517
  intensityFilterPropTypeUtil.schema,
503
518
  colorToneFilterPropTypeUtil.schema,
@@ -506,13 +521,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
506
521
  ])
507
522
  })
508
523
  );
509
- var filterPropTypeUtil = createPropUtils("filter", z43.array(cssFilterFunctionPropUtil.schema));
524
+ var filterPropTypeUtil = createPropUtils("filter", z45.array(cssFilterFunctionPropUtil.schema));
510
525
 
511
526
  // src/prop-types/transform-prop-types/transform.ts
512
- import { z as z44 } from "@elementor/schema";
527
+ import { z as z46 } from "@elementor/schema";
513
528
  var transformPropTypeUtil = createPropUtils(
514
529
  "transform",
515
- z44.strictObject({
530
+ z46.strictObject({
516
531
  "transform-functions": unknownChildrenSchema,
517
532
  "transform-origin": unknownChildrenSchema,
518
533
  perspective: unknownChildrenSchema,
@@ -521,10 +536,10 @@ var transformPropTypeUtil = createPropUtils(
521
536
  );
522
537
 
523
538
  // src/prop-types/transform-prop-types/transform-functions.ts
524
- import { z as z49 } from "@elementor/schema";
539
+ import { z as z51 } from "@elementor/schema";
525
540
 
526
541
  // src/prop-types/transform-prop-types/transform-functions/move-transform.ts
527
- import { z as z45 } from "@elementor/schema";
542
+ import { z as z47 } from "@elementor/schema";
528
543
 
529
544
  // src/prop-types/transform-prop-types/types.ts
530
545
  var TransformFunctionKeys = {
@@ -537,7 +552,7 @@ var TransformFunctionKeys = {
537
552
  // src/prop-types/transform-prop-types/transform-functions/move-transform.ts
538
553
  var moveTransformPropTypeUtil = createPropUtils(
539
554
  TransformFunctionKeys.move,
540
- z45.strictObject({
555
+ z47.strictObject({
541
556
  x: unknownChildrenSchema,
542
557
  y: unknownChildrenSchema,
543
558
  z: unknownChildrenSchema
@@ -545,10 +560,10 @@ var moveTransformPropTypeUtil = createPropUtils(
545
560
  );
546
561
 
547
562
  // src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
548
- import { z as z46 } from "@elementor/schema";
563
+ import { z as z48 } from "@elementor/schema";
549
564
  var rotateTransformPropTypeUtil = createPropUtils(
550
565
  TransformFunctionKeys.rotate,
551
- z46.strictObject({
566
+ z48.strictObject({
552
567
  x: unknownChildrenSchema,
553
568
  y: unknownChildrenSchema,
554
569
  z: unknownChildrenSchema
@@ -556,10 +571,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
556
571
  );
557
572
 
558
573
  // src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
559
- import { z as z47 } from "@elementor/schema";
574
+ import { z as z49 } from "@elementor/schema";
560
575
  var scaleTransformPropTypeUtil = createPropUtils(
561
576
  TransformFunctionKeys.scale,
562
- z47.strictObject({
577
+ z49.strictObject({
563
578
  x: numberPropTypeUtil.schema.nullable(),
564
579
  y: numberPropTypeUtil.schema.nullable(),
565
580
  z: numberPropTypeUtil.schema.nullable()
@@ -567,10 +582,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
567
582
  );
568
583
 
569
584
  // src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
570
- import { z as z48 } from "@elementor/schema";
585
+ import { z as z50 } from "@elementor/schema";
571
586
  var skewTransformPropTypeUtil = createPropUtils(
572
587
  TransformFunctionKeys.skew,
573
- z48.strictObject({
588
+ z50.strictObject({
574
589
  x: unknownChildrenSchema,
575
590
  y: unknownChildrenSchema
576
591
  })
@@ -578,13 +593,13 @@ var skewTransformPropTypeUtil = createPropUtils(
578
593
 
579
594
  // src/prop-types/transform-prop-types/transform-functions.ts
580
595
  var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
581
- var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z49.array(filterTypes));
596
+ var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z51.array(filterTypes));
582
597
 
583
598
  // src/prop-types/transform-prop-types/transform-origin.ts
584
- import { z as z50 } from "@elementor/schema";
599
+ import { z as z52 } from "@elementor/schema";
585
600
  var transformOriginPropTypeUtil = createPropUtils(
586
601
  "transform-origin",
587
- z50.strictObject({
602
+ z52.strictObject({
588
603
  x: unknownChildrenSchema,
589
604
  y: unknownChildrenSchema,
590
605
  z: unknownChildrenSchema
@@ -592,22 +607,50 @@ var transformOriginPropTypeUtil = createPropUtils(
592
607
  );
593
608
 
594
609
  // src/prop-types/transform-prop-types/perspective-origin.ts
595
- import { z as z51 } from "@elementor/schema";
610
+ import { z as z53 } from "@elementor/schema";
596
611
  var perspectiveOriginPropTypeUtil = createPropUtils(
597
612
  "perspective-origin",
598
- z51.strictObject({
613
+ z53.strictObject({
599
614
  x: unknownChildrenSchema,
600
615
  y: unknownChildrenSchema
601
616
  })
602
617
  );
603
618
 
604
619
  // src/prop-types/filter-prop-types/backdrop-filter.ts
605
- import { z as z52 } from "@elementor/schema";
620
+ import { z as z54 } from "@elementor/schema";
606
621
  var backdropFilterPropTypeUtil = createPropUtils(
607
622
  "backdrop-filter",
608
- z52.array(cssFilterFunctionPropUtil.schema)
623
+ z54.array(cssFilterFunctionPropUtil.schema)
624
+ );
625
+
626
+ // src/prop-types/date-range.ts
627
+ import { z as z55 } from "@elementor/schema";
628
+ var dateRangePropTypeUtil = createPropUtils(
629
+ "date-range",
630
+ z55.strictObject({
631
+ min: unknownChildrenSchema,
632
+ max: unknownChildrenSchema
633
+ })
634
+ );
635
+
636
+ // src/prop-types/date-string.ts
637
+ import { z as z56 } from "@elementor/schema";
638
+ var dateStringPropTypeUtil = createPropUtils("date-string", z56.string());
639
+
640
+ // src/prop-types/time-range.ts
641
+ import { z as z57 } from "@elementor/schema";
642
+ var timeRangePropTypeUtil = createPropUtils(
643
+ "time-range",
644
+ z57.strictObject({
645
+ min: unknownChildrenSchema,
646
+ max: unknownChildrenSchema
647
+ })
609
648
  );
610
649
 
650
+ // src/prop-types/time-string.ts
651
+ import { z as z58 } from "@elementor/schema";
652
+ var timeStringPropTypeUtil = createPropUtils("time-string", z58.string());
653
+
611
654
  // src/utils/adjust-llm-prop-value-schema.ts
612
655
  var ensureNotNull = (v, fallback) => v === null ? fallback : v;
613
656
  var defaultOptions = {
@@ -924,11 +967,14 @@ function convertPropTypeToJsonSchema(propType) {
924
967
  return propTypeToJsonSchema(propType);
925
968
  }
926
969
  var nonConfigurablePropKeys = ["_cssid", "classes", "attributes"];
927
- function isPropKeyConfigurable(propKey) {
928
- return !nonConfigurablePropKeys.includes(propKey);
970
+ function isPropKeyConfigurable(propKey, propType) {
971
+ if (!nonConfigurablePropKeys.includes(propKey)) {
972
+ return true;
973
+ }
974
+ return !!(!Array.isArray(propType?.meta) && propType?.meta?.llm_configurable);
929
975
  }
930
976
  function configurableKeys(schema) {
931
- return Object.keys(schema).filter(isPropKeyConfigurable);
977
+ return Object.keys(schema).filter((key) => isPropKeyConfigurable(key, schema[key]));
932
978
  }
933
979
  function enrichWithIntention(jsonSchema, text = "Describe the desired outcome") {
934
980
  const result = structuredClone(jsonSchema);
@@ -1030,11 +1076,11 @@ var validatePropValue = (schema, value) => {
1030
1076
  };
1031
1077
 
1032
1078
  // src/utils/is-transformable.ts
1033
- import { z as z53 } from "@elementor/schema";
1034
- var transformableSchema = z53.object({
1035
- $$type: z53.string(),
1036
- value: z53.any(),
1037
- disabled: z53.boolean().optional()
1079
+ import { z as z59 } from "@elementor/schema";
1080
+ var transformableSchema = z59.object({
1081
+ $$type: z59.string(),
1082
+ value: z59.any(),
1083
+ disabled: z59.boolean().optional()
1038
1084
  });
1039
1085
  var isTransformable = (value) => {
1040
1086
  return transformableSchema.safeParse(value).success;
@@ -1067,6 +1113,20 @@ var isNullishObject = (value) => {
1067
1113
  return typeof value === "object" && isNullishArray(Object.values(value));
1068
1114
  };
1069
1115
 
1116
+ // src/utils/is-overridable.ts
1117
+ function isOverridable(value) {
1118
+ return isTransformable(value) && value.$$type === "overridable";
1119
+ }
1120
+ function rewrapOverridableValue(existing, newInner) {
1121
+ return {
1122
+ ...existing,
1123
+ value: {
1124
+ ...existing.value,
1125
+ origin_value: newInner
1126
+ }
1127
+ };
1128
+ }
1129
+
1070
1130
  // src/utils/merge-props.ts
1071
1131
  function mergeProps(current, updates) {
1072
1132
  let props = {};
@@ -1153,17 +1213,32 @@ function getRelationMethod(relation) {
1153
1213
  throw new Error(`Relation not supported ${relation}`);
1154
1214
  }
1155
1215
  }
1156
- function extractValue(path, elementValues, nestedPath = []) {
1216
+ function extractValue(path, elementValues, nestedPath = [], options = {}) {
1217
+ const { unwrapOverridableLeaf = true } = options;
1157
1218
  const extractedValue = path.reduce((acc, key, index) => {
1158
1219
  const value = acc?.[key];
1159
- return index !== path.length - 1 && isTransformable(value) ? value.value ?? null : value;
1220
+ if (index === path.length - 1) {
1221
+ return value;
1222
+ }
1223
+ if (isOverridable(value)) {
1224
+ const inner = value.value.origin_value;
1225
+ return isTransformable(inner) ? inner.value ?? null : inner;
1226
+ }
1227
+ if (isTransformable(value)) {
1228
+ return value.value ?? null;
1229
+ }
1230
+ return value;
1160
1231
  }, elementValues);
1232
+ let resolved = extractedValue;
1233
+ if (unwrapOverridableLeaf && resolved && isOverridable(resolved)) {
1234
+ resolved = resolved.value.origin_value ?? null;
1235
+ }
1161
1236
  if (!nestedPath?.length) {
1162
- return extractedValue;
1237
+ return resolved;
1163
1238
  }
1164
1239
  const nestedValue = nestedPath.reduce(
1165
1240
  (acc, key) => acc?.[key],
1166
- extractedValue?.value
1241
+ resolved?.value
1167
1242
  );
1168
1243
  return {
1169
1244
  $$type: "unknown",
@@ -1266,6 +1341,8 @@ export {
1266
1341
  createArrayPropUtils,
1267
1342
  createPropUtils,
1268
1343
  cssFilterFunctionPropUtil,
1344
+ dateRangePropTypeUtil,
1345
+ dateStringPropTypeUtil,
1269
1346
  dimensionsPropTypeUtil,
1270
1347
  dropShadowFilterPropTypeUtil,
1271
1348
  emailPropTypeUtil,
@@ -1287,6 +1364,7 @@ export {
1287
1364
  isDependency,
1288
1365
  isDependencyMet,
1289
1366
  isEmpty,
1367
+ isOverridable,
1290
1368
  isTransformable,
1291
1369
  keyValuePropTypeUtil,
1292
1370
  layoutDirectionPropTypeUtil,
@@ -1294,20 +1372,25 @@ export {
1294
1372
  mergeProps,
1295
1373
  moveTransformPropTypeUtil,
1296
1374
  numberPropTypeUtil,
1375
+ numberRangePropTypeUtil,
1297
1376
  parseHtmlChildren,
1298
1377
  perspectiveOriginPropTypeUtil,
1299
1378
  positionPropTypeUtil,
1300
1379
  queryPropTypeUtil,
1380
+ rewrapOverridableValue,
1301
1381
  rotateTransformPropTypeUtil,
1302
1382
  scaleTransformPropTypeUtil,
1303
1383
  selectionSizePropTypeUtil,
1304
1384
  shadowPropTypeUtil,
1305
1385
  sizePropTypeUtil,
1306
1386
  skewTransformPropTypeUtil,
1387
+ spanPropTypeUtil,
1307
1388
  stringArrayPropTypeUtil,
1308
1389
  stringPropTypeUtil,
1309
1390
  strokePropTypeUtil,
1310
1391
  svgSrcPropTypeUtil,
1392
+ timeRangePropTypeUtil,
1393
+ timeStringPropTypeUtil,
1311
1394
  transformFunctionsPropTypeUtil,
1312
1395
  transformOriginPropTypeUtil,
1313
1396
  transformPropTypeUtil,