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