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