@elementor/editor-props 4.0.0-682 → 4.0.0-beta5
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.d.mts +210 -40
- package/dist/index.d.ts +210 -40
- package/dist/index.js +135 -114
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -114
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/index.ts +1 -0
- package/src/prop-types/size.ts +5 -3
- package/src/prop-types/svg-src.ts +26 -0
package/dist/index.mjs
CHANGED
|
@@ -154,30 +154,48 @@ var imageSrcPropTypeUtil = createPropUtils(
|
|
|
154
154
|
)
|
|
155
155
|
);
|
|
156
156
|
|
|
157
|
-
// src/prop-types/
|
|
157
|
+
// src/prop-types/svg-src.ts
|
|
158
158
|
import { z as z13 } from "@elementor/schema";
|
|
159
|
-
var
|
|
159
|
+
var svgSrcValueSchema = z13.strictObject({
|
|
160
|
+
id: unknownChildrenSchema,
|
|
161
|
+
url: z13.null()
|
|
162
|
+
}).or(
|
|
163
|
+
z13.strictObject({
|
|
164
|
+
id: z13.null(),
|
|
165
|
+
url: unknownChildrenSchema
|
|
166
|
+
})
|
|
167
|
+
).or(
|
|
168
|
+
z13.strictObject({
|
|
169
|
+
id: unknownChildrenSchema,
|
|
170
|
+
url: unknownChildrenSchema
|
|
171
|
+
})
|
|
172
|
+
);
|
|
173
|
+
var svgSrcPropTypeUtil = createPropUtils("svg-src", svgSrcValueSchema);
|
|
160
174
|
|
|
161
|
-
// src/prop-types/video-
|
|
175
|
+
// src/prop-types/video-attachment-id.ts
|
|
162
176
|
import { z as z14 } from "@elementor/schema";
|
|
177
|
+
var videoAttachmentIdPropType = createPropUtils("video-attachment-id", z14.number());
|
|
178
|
+
|
|
179
|
+
// src/prop-types/video-src.ts
|
|
180
|
+
import { z as z15 } from "@elementor/schema";
|
|
163
181
|
var videoSrcPropTypeUtil = createPropUtils(
|
|
164
182
|
"video-src",
|
|
165
|
-
|
|
183
|
+
z15.strictObject({
|
|
166
184
|
id: unknownChildrenSchema,
|
|
167
|
-
url:
|
|
185
|
+
url: z15.null()
|
|
168
186
|
}).or(
|
|
169
|
-
|
|
170
|
-
id:
|
|
187
|
+
z15.strictObject({
|
|
188
|
+
id: z15.null(),
|
|
171
189
|
url: unknownChildrenSchema
|
|
172
190
|
})
|
|
173
191
|
)
|
|
174
192
|
);
|
|
175
193
|
|
|
176
194
|
// src/prop-types/dimensions.ts
|
|
177
|
-
import { z as
|
|
195
|
+
import { z as z16 } from "@elementor/schema";
|
|
178
196
|
var dimensionsPropTypeUtil = createPropUtils(
|
|
179
197
|
"dimensions",
|
|
180
|
-
|
|
198
|
+
z16.strictObject({
|
|
181
199
|
"block-start": unknownChildrenSchema,
|
|
182
200
|
"block-end": unknownChildrenSchema,
|
|
183
201
|
"inline-start": unknownChildrenSchema,
|
|
@@ -186,75 +204,76 @@ var dimensionsPropTypeUtil = createPropUtils(
|
|
|
186
204
|
);
|
|
187
205
|
|
|
188
206
|
// src/prop-types/number.ts
|
|
189
|
-
import { z as
|
|
190
|
-
var numberPropTypeUtil = createPropUtils("number",
|
|
207
|
+
import { z as z17 } from "@elementor/schema";
|
|
208
|
+
var numberPropTypeUtil = createPropUtils("number", z17.number().nullable());
|
|
191
209
|
|
|
192
210
|
// src/prop-types/size.ts
|
|
193
|
-
import { z as
|
|
211
|
+
import { z as z18 } from "@elementor/schema";
|
|
212
|
+
var sizeNumberOrEmpty = z18.union([z18.number(), z18.literal("")]);
|
|
194
213
|
var sizePropTypeUtil = createPropUtils(
|
|
195
214
|
"size",
|
|
196
|
-
|
|
197
|
-
unit:
|
|
198
|
-
size:
|
|
215
|
+
z18.strictObject({
|
|
216
|
+
unit: z18.enum(["px", "em", "rem", "%", "vw", "vh", "ch"]),
|
|
217
|
+
size: sizeNumberOrEmpty
|
|
199
218
|
}).or(
|
|
200
|
-
|
|
201
|
-
unit:
|
|
202
|
-
size:
|
|
219
|
+
z18.strictObject({
|
|
220
|
+
unit: z18.enum(["deg", "rad", "grad", "turn"]),
|
|
221
|
+
size: sizeNumberOrEmpty
|
|
203
222
|
})
|
|
204
223
|
).or(
|
|
205
|
-
|
|
206
|
-
unit:
|
|
207
|
-
size:
|
|
224
|
+
z18.strictObject({
|
|
225
|
+
unit: z18.enum(["s", "ms"]),
|
|
226
|
+
size: sizeNumberOrEmpty
|
|
208
227
|
})
|
|
209
228
|
).or(
|
|
210
|
-
|
|
211
|
-
unit:
|
|
212
|
-
size:
|
|
229
|
+
z18.strictObject({
|
|
230
|
+
unit: z18.literal("auto"),
|
|
231
|
+
size: z18.literal("")
|
|
213
232
|
})
|
|
214
233
|
).or(
|
|
215
|
-
|
|
216
|
-
unit:
|
|
217
|
-
size:
|
|
234
|
+
z18.strictObject({
|
|
235
|
+
unit: z18.literal("custom"),
|
|
236
|
+
size: z18.string()
|
|
218
237
|
})
|
|
219
238
|
)
|
|
220
239
|
);
|
|
221
240
|
|
|
222
241
|
// src/prop-types/string.ts
|
|
223
|
-
import { z as
|
|
224
|
-
var stringPropTypeUtil = createPropUtils("string",
|
|
242
|
+
import { z as z19 } from "@elementor/schema";
|
|
243
|
+
var stringPropTypeUtil = createPropUtils("string", z19.string().nullable());
|
|
225
244
|
|
|
226
245
|
// src/prop-types/string-array.ts
|
|
227
246
|
var stringArrayPropTypeUtil = createArrayPropUtils(stringPropTypeUtil.key, stringPropTypeUtil.schema);
|
|
228
247
|
|
|
229
248
|
// src/prop-types/stroke.ts
|
|
230
|
-
import { z as
|
|
249
|
+
import { z as z20 } from "@elementor/schema";
|
|
231
250
|
var strokePropTypeUtil = createPropUtils(
|
|
232
251
|
"stroke",
|
|
233
|
-
|
|
252
|
+
z20.strictObject({
|
|
234
253
|
color: unknownChildrenSchema,
|
|
235
254
|
width: unknownChildrenSchema
|
|
236
255
|
})
|
|
237
256
|
);
|
|
238
257
|
|
|
239
258
|
// src/prop-types/url.ts
|
|
240
|
-
import { z as
|
|
241
|
-
var urlPropTypeUtil = createPropUtils("url",
|
|
259
|
+
import { z as z21 } from "@elementor/schema";
|
|
260
|
+
var urlPropTypeUtil = createPropUtils("url", z21.string().nullable());
|
|
242
261
|
|
|
243
262
|
// src/prop-types/layout-direction.ts
|
|
244
|
-
import { z as
|
|
263
|
+
import { z as z22 } from "@elementor/schema";
|
|
245
264
|
var layoutDirectionPropTypeUtil = createPropUtils(
|
|
246
265
|
"layout-direction",
|
|
247
|
-
|
|
248
|
-
row:
|
|
249
|
-
column:
|
|
266
|
+
z22.object({
|
|
267
|
+
row: z22.any(),
|
|
268
|
+
column: z22.any()
|
|
250
269
|
})
|
|
251
270
|
);
|
|
252
271
|
|
|
253
272
|
// src/prop-types/link.ts
|
|
254
|
-
import { z as
|
|
273
|
+
import { z as z23 } from "@elementor/schema";
|
|
255
274
|
var linkPropTypeUtil = createPropUtils(
|
|
256
275
|
"link",
|
|
257
|
-
|
|
276
|
+
z23.strictObject({
|
|
258
277
|
destination: unknownChildrenSchema,
|
|
259
278
|
isTargetBlank: unknownChildrenSchema,
|
|
260
279
|
tag: unknownChildrenSchema
|
|
@@ -262,10 +281,10 @@ var linkPropTypeUtil = createPropUtils(
|
|
|
262
281
|
);
|
|
263
282
|
|
|
264
283
|
// src/prop-types/email.ts
|
|
265
|
-
import { z as
|
|
284
|
+
import { z as z24 } from "@elementor/schema";
|
|
266
285
|
var emailPropTypeUtil = createPropUtils(
|
|
267
286
|
"email",
|
|
268
|
-
|
|
287
|
+
z24.strictObject({
|
|
269
288
|
to: unknownChildrenSchema,
|
|
270
289
|
subject: unknownChildrenSchema,
|
|
271
290
|
message: unknownChildrenSchema,
|
|
@@ -280,13 +299,13 @@ var emailPropTypeUtil = createPropUtils(
|
|
|
280
299
|
);
|
|
281
300
|
|
|
282
301
|
// src/prop-types/selection-size.ts
|
|
283
|
-
import { z as
|
|
302
|
+
import { z as z26 } from "@elementor/schema";
|
|
284
303
|
|
|
285
304
|
// src/prop-types/key-value.ts
|
|
286
|
-
import { z as
|
|
305
|
+
import { z as z25 } from "@elementor/schema";
|
|
287
306
|
var keyValuePropTypeUtil = createPropUtils(
|
|
288
307
|
"key-value",
|
|
289
|
-
|
|
308
|
+
z25.strictObject({
|
|
290
309
|
key: unknownChildrenSchema,
|
|
291
310
|
value: unknownChildrenSchema
|
|
292
311
|
})
|
|
@@ -295,17 +314,17 @@ var keyValuePropTypeUtil = createPropUtils(
|
|
|
295
314
|
// src/prop-types/selection-size.ts
|
|
296
315
|
var selectionSizePropTypeUtil = createPropUtils(
|
|
297
316
|
"selection-size",
|
|
298
|
-
|
|
299
|
-
selection:
|
|
317
|
+
z26.strictObject({
|
|
318
|
+
selection: z26.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
|
|
300
319
|
size: unknownChildrenSchema
|
|
301
320
|
})
|
|
302
321
|
);
|
|
303
322
|
|
|
304
323
|
// src/prop-types/background-prop-types/background.ts
|
|
305
|
-
import { z as
|
|
324
|
+
import { z as z27 } from "@elementor/schema";
|
|
306
325
|
var backgroundPropTypeUtil = createPropUtils(
|
|
307
326
|
"background",
|
|
308
|
-
|
|
327
|
+
z27.strictObject({
|
|
309
328
|
color: unknownChildrenSchema,
|
|
310
329
|
clip: unknownChildrenSchema,
|
|
311
330
|
"background-overlay": unknownChildrenSchema
|
|
@@ -313,7 +332,7 @@ var backgroundPropTypeUtil = createPropUtils(
|
|
|
313
332
|
);
|
|
314
333
|
|
|
315
334
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
316
|
-
import { z as
|
|
335
|
+
import { z as z28 } from "@elementor/schema";
|
|
317
336
|
|
|
318
337
|
// src/prop-types/background-prop-types/background-color-overlay.ts
|
|
319
338
|
var backgroundColorOverlayPropTypeUtil = createPropUtils("background-color-overlay", unknownChildrenSchema);
|
|
@@ -329,7 +348,7 @@ var backgroundImageOverlayPropTypeUtil = createPropUtils("background-image-overl
|
|
|
329
348
|
|
|
330
349
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
331
350
|
var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema);
|
|
332
|
-
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay",
|
|
351
|
+
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z28.array(backgroundOverlayItem));
|
|
333
352
|
|
|
334
353
|
// src/prop-types/background-prop-types/background-image-position-offset.ts
|
|
335
354
|
var backgroundImagePositionOffsetPropTypeUtil = createPropUtils(
|
|
@@ -344,92 +363,92 @@ var backgroundImageSizeScalePropTypeUtil = createPropUtils(
|
|
|
344
363
|
);
|
|
345
364
|
|
|
346
365
|
// src/prop-types/boolean.ts
|
|
347
|
-
import { z as
|
|
348
|
-
var booleanPropTypeUtil = createPropUtils("boolean",
|
|
366
|
+
import { z as z29 } from "@elementor/schema";
|
|
367
|
+
var booleanPropTypeUtil = createPropUtils("boolean", z29.boolean().nullable());
|
|
349
368
|
|
|
350
369
|
// src/prop-types/color-stop.ts
|
|
351
|
-
import { z as
|
|
370
|
+
import { z as z30 } from "@elementor/schema";
|
|
352
371
|
var colorStopPropTypeUtil = createPropUtils(
|
|
353
372
|
"color-stop",
|
|
354
|
-
|
|
373
|
+
z30.strictObject({
|
|
355
374
|
color: unknownChildrenSchema,
|
|
356
375
|
offset: unknownChildrenSchema
|
|
357
376
|
})
|
|
358
377
|
);
|
|
359
378
|
|
|
360
379
|
// src/prop-types/gradient-color-stop.ts
|
|
361
|
-
import { z as
|
|
380
|
+
import { z as z31 } from "@elementor/schema";
|
|
362
381
|
var gradientColorStopPropTypeUtil = createPropUtils(
|
|
363
382
|
"gradient-color-stop",
|
|
364
|
-
|
|
383
|
+
z31.array(colorStopPropTypeUtil.schema)
|
|
365
384
|
);
|
|
366
385
|
|
|
367
386
|
// src/prop-types/date-time.ts
|
|
368
|
-
import { z as
|
|
387
|
+
import { z as z32 } from "@elementor/schema";
|
|
369
388
|
var DateTimePropTypeUtil = createPropUtils(
|
|
370
389
|
"date-time",
|
|
371
|
-
|
|
390
|
+
z32.strictObject({
|
|
372
391
|
date: unknownChildrenSchema,
|
|
373
392
|
time: unknownChildrenSchema
|
|
374
393
|
})
|
|
375
394
|
);
|
|
376
395
|
|
|
377
396
|
// src/prop-types/position.ts
|
|
378
|
-
import { z as
|
|
397
|
+
import { z as z33 } from "@elementor/schema";
|
|
379
398
|
var positionPropTypeUtil = createPropUtils(
|
|
380
399
|
"object-position",
|
|
381
|
-
|
|
400
|
+
z33.strictObject({
|
|
382
401
|
x: unknownChildrenSchema,
|
|
383
402
|
y: unknownChildrenSchema
|
|
384
403
|
})
|
|
385
404
|
);
|
|
386
405
|
|
|
387
406
|
// src/prop-types/query.ts
|
|
388
|
-
import { z as
|
|
407
|
+
import { z as z34 } from "@elementor/schema";
|
|
389
408
|
var queryPropTypeUtil = createPropUtils(
|
|
390
409
|
"query",
|
|
391
|
-
|
|
410
|
+
z34.strictObject({
|
|
392
411
|
id: unknownChildrenSchema,
|
|
393
412
|
label: unknownChildrenSchema
|
|
394
413
|
})
|
|
395
414
|
);
|
|
396
415
|
|
|
397
416
|
// src/prop-types/html.ts
|
|
398
|
-
import { z as
|
|
399
|
-
var htmlPropTypeUtil = createPropUtils("html",
|
|
417
|
+
import { z as z35 } from "@elementor/schema";
|
|
418
|
+
var htmlPropTypeUtil = createPropUtils("html", z35.string().nullable());
|
|
400
419
|
|
|
401
420
|
// src/prop-types/html-v2.ts
|
|
402
|
-
import { z as
|
|
403
|
-
var childElementSchema =
|
|
404
|
-
() =>
|
|
405
|
-
id:
|
|
406
|
-
type:
|
|
407
|
-
content:
|
|
408
|
-
children:
|
|
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()
|
|
409
428
|
})
|
|
410
429
|
);
|
|
411
|
-
var htmlV2ValueSchema =
|
|
412
|
-
content:
|
|
413
|
-
children:
|
|
430
|
+
var htmlV2ValueSchema = z36.object({
|
|
431
|
+
content: z36.string().nullable(),
|
|
432
|
+
children: z36.array(childElementSchema)
|
|
414
433
|
});
|
|
415
434
|
var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema);
|
|
416
435
|
|
|
417
436
|
// src/prop-types/html-v3.ts
|
|
418
|
-
import { z as
|
|
419
|
-
var htmlV3ValueSchema =
|
|
437
|
+
import { z as z37 } from "@elementor/schema";
|
|
438
|
+
var htmlV3ValueSchema = z37.object({
|
|
420
439
|
content: stringPropTypeUtil.schema.nullable(),
|
|
421
|
-
children:
|
|
440
|
+
children: z37.array(z37.unknown())
|
|
422
441
|
});
|
|
423
442
|
var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
|
|
424
443
|
|
|
425
444
|
// src/prop-types/filter-prop-types/filter.ts
|
|
426
|
-
import { z as
|
|
445
|
+
import { z as z43 } from "@elementor/schema";
|
|
427
446
|
|
|
428
447
|
// src/prop-types/filter-prop-types/drop-shadow-filter.ts
|
|
429
|
-
import { z as
|
|
448
|
+
import { z as z38 } from "@elementor/schema";
|
|
430
449
|
var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
431
450
|
"drop-shadow",
|
|
432
|
-
|
|
451
|
+
z38.object({
|
|
433
452
|
xAxis: unknownChildrenSchema,
|
|
434
453
|
yAxis: unknownChildrenSchema,
|
|
435
454
|
blur: unknownChildrenSchema,
|
|
@@ -438,37 +457,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
|
438
457
|
);
|
|
439
458
|
|
|
440
459
|
// src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
|
|
441
|
-
import { z as
|
|
460
|
+
import { z as z39 } from "@elementor/schema";
|
|
442
461
|
var blurFilterPropTypeUtil = createPropUtils(
|
|
443
462
|
"blur",
|
|
444
|
-
|
|
463
|
+
z39.strictObject({
|
|
445
464
|
size: unknownChildrenSchema
|
|
446
465
|
})
|
|
447
466
|
);
|
|
448
467
|
|
|
449
468
|
// src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
|
|
450
|
-
import { z as
|
|
469
|
+
import { z as z40 } from "@elementor/schema";
|
|
451
470
|
var colorToneFilterPropTypeUtil = createPropUtils(
|
|
452
471
|
"color-tone",
|
|
453
|
-
|
|
472
|
+
z40.strictObject({
|
|
454
473
|
size: unknownChildrenSchema
|
|
455
474
|
})
|
|
456
475
|
);
|
|
457
476
|
|
|
458
477
|
// src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
|
|
459
|
-
import { z as
|
|
478
|
+
import { z as z41 } from "@elementor/schema";
|
|
460
479
|
var hueRotateFilterPropTypeUtil = createPropUtils(
|
|
461
480
|
"hue-rotate",
|
|
462
|
-
|
|
481
|
+
z41.strictObject({
|
|
463
482
|
size: unknownChildrenSchema
|
|
464
483
|
})
|
|
465
484
|
);
|
|
466
485
|
|
|
467
486
|
// src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
|
|
468
|
-
import { z as
|
|
487
|
+
import { z as z42 } from "@elementor/schema";
|
|
469
488
|
var intensityFilterPropTypeUtil = createPropUtils(
|
|
470
489
|
"intensity",
|
|
471
|
-
|
|
490
|
+
z42.strictObject({
|
|
472
491
|
size: unknownChildrenSchema
|
|
473
492
|
})
|
|
474
493
|
);
|
|
@@ -476,9 +495,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
|
|
|
476
495
|
// src/prop-types/filter-prop-types/filter.ts
|
|
477
496
|
var cssFilterFunctionPropUtil = createPropUtils(
|
|
478
497
|
"css-filter-func",
|
|
479
|
-
|
|
498
|
+
z43.object({
|
|
480
499
|
func: stringPropTypeUtil.schema,
|
|
481
|
-
args:
|
|
500
|
+
args: z43.union([
|
|
482
501
|
blurFilterPropTypeUtil.schema,
|
|
483
502
|
intensityFilterPropTypeUtil.schema,
|
|
484
503
|
colorToneFilterPropTypeUtil.schema,
|
|
@@ -487,13 +506,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
487
506
|
])
|
|
488
507
|
})
|
|
489
508
|
);
|
|
490
|
-
var filterPropTypeUtil = createPropUtils("filter",
|
|
509
|
+
var filterPropTypeUtil = createPropUtils("filter", z43.array(cssFilterFunctionPropUtil.schema));
|
|
491
510
|
|
|
492
511
|
// src/prop-types/transform-prop-types/transform.ts
|
|
493
|
-
import { z as
|
|
512
|
+
import { z as z44 } from "@elementor/schema";
|
|
494
513
|
var transformPropTypeUtil = createPropUtils(
|
|
495
514
|
"transform",
|
|
496
|
-
|
|
515
|
+
z44.strictObject({
|
|
497
516
|
"transform-functions": unknownChildrenSchema,
|
|
498
517
|
"transform-origin": unknownChildrenSchema,
|
|
499
518
|
perspective: unknownChildrenSchema,
|
|
@@ -502,10 +521,10 @@ var transformPropTypeUtil = createPropUtils(
|
|
|
502
521
|
);
|
|
503
522
|
|
|
504
523
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
505
|
-
import { z as
|
|
524
|
+
import { z as z49 } from "@elementor/schema";
|
|
506
525
|
|
|
507
526
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
508
|
-
import { z as
|
|
527
|
+
import { z as z45 } from "@elementor/schema";
|
|
509
528
|
|
|
510
529
|
// src/prop-types/transform-prop-types/types.ts
|
|
511
530
|
var TransformFunctionKeys = {
|
|
@@ -518,7 +537,7 @@ var TransformFunctionKeys = {
|
|
|
518
537
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
519
538
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
520
539
|
TransformFunctionKeys.move,
|
|
521
|
-
|
|
540
|
+
z45.strictObject({
|
|
522
541
|
x: unknownChildrenSchema,
|
|
523
542
|
y: unknownChildrenSchema,
|
|
524
543
|
z: unknownChildrenSchema
|
|
@@ -526,10 +545,10 @@ var moveTransformPropTypeUtil = createPropUtils(
|
|
|
526
545
|
);
|
|
527
546
|
|
|
528
547
|
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
529
|
-
import { z as
|
|
548
|
+
import { z as z46 } from "@elementor/schema";
|
|
530
549
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
531
550
|
TransformFunctionKeys.rotate,
|
|
532
|
-
|
|
551
|
+
z46.strictObject({
|
|
533
552
|
x: unknownChildrenSchema,
|
|
534
553
|
y: unknownChildrenSchema,
|
|
535
554
|
z: unknownChildrenSchema
|
|
@@ -537,10 +556,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
|
|
|
537
556
|
);
|
|
538
557
|
|
|
539
558
|
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
540
|
-
import { z as
|
|
559
|
+
import { z as z47 } from "@elementor/schema";
|
|
541
560
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
542
561
|
TransformFunctionKeys.scale,
|
|
543
|
-
|
|
562
|
+
z47.strictObject({
|
|
544
563
|
x: numberPropTypeUtil.schema.nullable(),
|
|
545
564
|
y: numberPropTypeUtil.schema.nullable(),
|
|
546
565
|
z: numberPropTypeUtil.schema.nullable()
|
|
@@ -548,10 +567,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
|
|
|
548
567
|
);
|
|
549
568
|
|
|
550
569
|
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
551
|
-
import { z as
|
|
570
|
+
import { z as z48 } from "@elementor/schema";
|
|
552
571
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
553
572
|
TransformFunctionKeys.skew,
|
|
554
|
-
|
|
573
|
+
z48.strictObject({
|
|
555
574
|
x: unknownChildrenSchema,
|
|
556
575
|
y: unknownChildrenSchema
|
|
557
576
|
})
|
|
@@ -559,13 +578,13 @@ var skewTransformPropTypeUtil = createPropUtils(
|
|
|
559
578
|
|
|
560
579
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
561
580
|
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
562
|
-
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions",
|
|
581
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z49.array(filterTypes));
|
|
563
582
|
|
|
564
583
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
565
|
-
import { z as
|
|
584
|
+
import { z as z50 } from "@elementor/schema";
|
|
566
585
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
567
586
|
"transform-origin",
|
|
568
|
-
|
|
587
|
+
z50.strictObject({
|
|
569
588
|
x: unknownChildrenSchema,
|
|
570
589
|
y: unknownChildrenSchema,
|
|
571
590
|
z: unknownChildrenSchema
|
|
@@ -573,20 +592,20 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
573
592
|
);
|
|
574
593
|
|
|
575
594
|
// src/prop-types/transform-prop-types/perspective-origin.ts
|
|
576
|
-
import { z as
|
|
595
|
+
import { z as z51 } from "@elementor/schema";
|
|
577
596
|
var perspectiveOriginPropTypeUtil = createPropUtils(
|
|
578
597
|
"perspective-origin",
|
|
579
|
-
|
|
598
|
+
z51.strictObject({
|
|
580
599
|
x: unknownChildrenSchema,
|
|
581
600
|
y: unknownChildrenSchema
|
|
582
601
|
})
|
|
583
602
|
);
|
|
584
603
|
|
|
585
604
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
586
|
-
import { z as
|
|
605
|
+
import { z as z52 } from "@elementor/schema";
|
|
587
606
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
588
607
|
"backdrop-filter",
|
|
589
|
-
|
|
608
|
+
z52.array(cssFilterFunctionPropUtil.schema)
|
|
590
609
|
);
|
|
591
610
|
|
|
592
611
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
@@ -1011,11 +1030,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1011
1030
|
};
|
|
1012
1031
|
|
|
1013
1032
|
// src/utils/is-transformable.ts
|
|
1014
|
-
import { z as
|
|
1015
|
-
var transformableSchema =
|
|
1016
|
-
$$type:
|
|
1017
|
-
value:
|
|
1018
|
-
disabled:
|
|
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()
|
|
1019
1038
|
});
|
|
1020
1039
|
var isTransformable = (value) => {
|
|
1021
1040
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1288,6 +1307,7 @@ export {
|
|
|
1288
1307
|
stringArrayPropTypeUtil,
|
|
1289
1308
|
stringPropTypeUtil,
|
|
1290
1309
|
strokePropTypeUtil,
|
|
1310
|
+
svgSrcPropTypeUtil,
|
|
1291
1311
|
transformFunctionsPropTypeUtil,
|
|
1292
1312
|
transformOriginPropTypeUtil,
|
|
1293
1313
|
transformPropTypeUtil,
|