@elementor/editor-props 4.2.0-939 → 4.2.0-940
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 +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +164 -149
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +163 -149
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/font-family.ts +22 -0
- package/src/prop-types/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -125,30 +125,43 @@ var flexPropTypeUtil = createPropUtils(
|
|
|
125
125
|
})
|
|
126
126
|
);
|
|
127
127
|
|
|
128
|
-
// src/prop-types/
|
|
128
|
+
// src/prop-types/font-family.ts
|
|
129
129
|
import { z as z10 } from "@elementor/schema";
|
|
130
|
+
var baseUtil = createPropUtils("font-family", z10.string().nullable());
|
|
131
|
+
var fontFamilyPropTypeUtil = Object.assign(baseUtil, {
|
|
132
|
+
getEnqueueFontFamily: (value) => {
|
|
133
|
+
const trimmed = value.trim();
|
|
134
|
+
if (trimmed.startsWith('"') && trimmed.endsWith('"') || trimmed.startsWith("'") && trimmed.endsWith("'")) {
|
|
135
|
+
return trimmed.slice(1, -1).trim();
|
|
136
|
+
}
|
|
137
|
+
return trimmed;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
// src/prop-types/image.ts
|
|
142
|
+
import { z as z11 } from "@elementor/schema";
|
|
130
143
|
var imagePropTypeUtil = createPropUtils(
|
|
131
144
|
"image",
|
|
132
|
-
|
|
145
|
+
z11.strictObject({
|
|
133
146
|
src: unknownChildrenSchema,
|
|
134
147
|
size: unknownChildrenSchema
|
|
135
148
|
})
|
|
136
149
|
);
|
|
137
150
|
|
|
138
151
|
// src/prop-types/image-attachment-id.ts
|
|
139
|
-
import { z as
|
|
140
|
-
var imageAttachmentIdPropType = createPropUtils("image-attachment-id",
|
|
152
|
+
import { z as z12 } from "@elementor/schema";
|
|
153
|
+
var imageAttachmentIdPropType = createPropUtils("image-attachment-id", z12.number());
|
|
141
154
|
|
|
142
155
|
// src/prop-types/image-src.ts
|
|
143
|
-
import { z as
|
|
156
|
+
import { z as z13 } from "@elementor/schema";
|
|
144
157
|
var imageSrcPropTypeUtil = createPropUtils(
|
|
145
158
|
"image-src",
|
|
146
|
-
|
|
159
|
+
z13.strictObject({
|
|
147
160
|
id: unknownChildrenSchema,
|
|
148
|
-
url:
|
|
161
|
+
url: z13.null(),
|
|
149
162
|
alt: unknownChildrenSchema.optional().default(null)
|
|
150
163
|
}).or(
|
|
151
|
-
|
|
164
|
+
z13.strictObject({
|
|
152
165
|
id: unknownChildrenSchema.optional().default(null),
|
|
153
166
|
url: unknownChildrenSchema,
|
|
154
167
|
alt: unknownChildrenSchema.optional().default(null)
|
|
@@ -157,17 +170,17 @@ var imageSrcPropTypeUtil = createPropUtils(
|
|
|
157
170
|
);
|
|
158
171
|
|
|
159
172
|
// src/prop-types/svg-src.ts
|
|
160
|
-
import { z as
|
|
161
|
-
var svgSrcValueSchema =
|
|
173
|
+
import { z as z14 } from "@elementor/schema";
|
|
174
|
+
var svgSrcValueSchema = z14.strictObject({
|
|
162
175
|
id: unknownChildrenSchema,
|
|
163
|
-
url:
|
|
176
|
+
url: z14.null()
|
|
164
177
|
}).or(
|
|
165
|
-
|
|
166
|
-
id:
|
|
178
|
+
z14.strictObject({
|
|
179
|
+
id: z14.null(),
|
|
167
180
|
url: unknownChildrenSchema
|
|
168
181
|
})
|
|
169
182
|
).or(
|
|
170
|
-
|
|
183
|
+
z14.strictObject({
|
|
171
184
|
id: unknownChildrenSchema,
|
|
172
185
|
url: unknownChildrenSchema
|
|
173
186
|
})
|
|
@@ -175,29 +188,29 @@ var svgSrcValueSchema = z13.strictObject({
|
|
|
175
188
|
var svgSrcPropTypeUtil = createPropUtils("svg-src", svgSrcValueSchema);
|
|
176
189
|
|
|
177
190
|
// src/prop-types/video-attachment-id.ts
|
|
178
|
-
import { z as
|
|
179
|
-
var videoAttachmentIdPropType = createPropUtils("video-attachment-id",
|
|
191
|
+
import { z as z15 } from "@elementor/schema";
|
|
192
|
+
var videoAttachmentIdPropType = createPropUtils("video-attachment-id", z15.number());
|
|
180
193
|
|
|
181
194
|
// src/prop-types/video-src.ts
|
|
182
|
-
import { z as
|
|
195
|
+
import { z as z16 } from "@elementor/schema";
|
|
183
196
|
var videoSrcPropTypeUtil = createPropUtils(
|
|
184
197
|
"video-src",
|
|
185
|
-
|
|
198
|
+
z16.strictObject({
|
|
186
199
|
id: unknownChildrenSchema,
|
|
187
|
-
url:
|
|
200
|
+
url: z16.null()
|
|
188
201
|
}).or(
|
|
189
|
-
|
|
190
|
-
id:
|
|
202
|
+
z16.strictObject({
|
|
203
|
+
id: z16.null(),
|
|
191
204
|
url: unknownChildrenSchema
|
|
192
205
|
})
|
|
193
206
|
)
|
|
194
207
|
);
|
|
195
208
|
|
|
196
209
|
// src/prop-types/dimensions.ts
|
|
197
|
-
import { z as
|
|
210
|
+
import { z as z17 } from "@elementor/schema";
|
|
198
211
|
var dimensionsPropTypeUtil = createPropUtils(
|
|
199
212
|
"dimensions",
|
|
200
|
-
|
|
213
|
+
z17.strictObject({
|
|
201
214
|
"block-start": unknownChildrenSchema,
|
|
202
215
|
"block-end": unknownChildrenSchema,
|
|
203
216
|
"inline-start": unknownChildrenSchema,
|
|
@@ -206,95 +219,95 @@ var dimensionsPropTypeUtil = createPropUtils(
|
|
|
206
219
|
);
|
|
207
220
|
|
|
208
221
|
// src/prop-types/number.ts
|
|
209
|
-
import { z as
|
|
210
|
-
var numberPropTypeUtil = createPropUtils("number",
|
|
222
|
+
import { z as z18 } from "@elementor/schema";
|
|
223
|
+
var numberPropTypeUtil = createPropUtils("number", z18.number().nullable());
|
|
211
224
|
|
|
212
225
|
// src/prop-types/size.ts
|
|
213
|
-
import { z as
|
|
214
|
-
var sizeNumberOrEmpty =
|
|
226
|
+
import { z as z19 } from "@elementor/schema";
|
|
227
|
+
var sizeNumberOrEmpty = z19.union([z19.number(), z19.literal("")]);
|
|
215
228
|
var sizePropTypeUtil = createPropUtils(
|
|
216
229
|
"size",
|
|
217
|
-
|
|
218
|
-
unit:
|
|
230
|
+
z19.strictObject({
|
|
231
|
+
unit: z19.enum(["px", "em", "rem", "%", "vw", "vh", "ch"]),
|
|
219
232
|
size: sizeNumberOrEmpty
|
|
220
233
|
}).or(
|
|
221
|
-
|
|
222
|
-
unit:
|
|
234
|
+
z19.strictObject({
|
|
235
|
+
unit: z19.enum(["deg", "rad", "grad", "turn"]),
|
|
223
236
|
size: sizeNumberOrEmpty
|
|
224
237
|
})
|
|
225
238
|
).or(
|
|
226
|
-
|
|
227
|
-
unit:
|
|
239
|
+
z19.strictObject({
|
|
240
|
+
unit: z19.enum(["s", "ms"]),
|
|
228
241
|
size: sizeNumberOrEmpty
|
|
229
242
|
})
|
|
230
243
|
).or(
|
|
231
|
-
|
|
232
|
-
unit:
|
|
233
|
-
size:
|
|
244
|
+
z19.strictObject({
|
|
245
|
+
unit: z19.literal("auto"),
|
|
246
|
+
size: z19.literal("")
|
|
234
247
|
})
|
|
235
248
|
).or(
|
|
236
|
-
|
|
237
|
-
unit:
|
|
238
|
-
size:
|
|
249
|
+
z19.strictObject({
|
|
250
|
+
unit: z19.literal("custom"),
|
|
251
|
+
size: z19.string()
|
|
239
252
|
})
|
|
240
253
|
)
|
|
241
254
|
);
|
|
242
255
|
|
|
243
256
|
// src/prop-types/grid-track-size.ts
|
|
244
|
-
import { z as
|
|
257
|
+
import { z as z20 } from "@elementor/schema";
|
|
245
258
|
var gridTrackSizePropTypeUtil = createPropUtils(
|
|
246
259
|
"grid-track-size",
|
|
247
|
-
|
|
248
|
-
unit:
|
|
249
|
-
size:
|
|
260
|
+
z20.strictObject({
|
|
261
|
+
unit: z20.literal("fr"),
|
|
262
|
+
size: z20.union([z20.number(), z20.literal("")])
|
|
250
263
|
}).or(
|
|
251
|
-
|
|
252
|
-
unit:
|
|
253
|
-
size:
|
|
264
|
+
z20.strictObject({
|
|
265
|
+
unit: z20.literal("custom"),
|
|
266
|
+
size: z20.string()
|
|
254
267
|
})
|
|
255
268
|
)
|
|
256
269
|
);
|
|
257
270
|
|
|
258
271
|
// src/prop-types/span.ts
|
|
259
|
-
import { z as
|
|
260
|
-
var spanPropTypeUtil = createPropUtils("span",
|
|
272
|
+
import { z as z21 } from "@elementor/schema";
|
|
273
|
+
var spanPropTypeUtil = createPropUtils("span", z21.string().nullable());
|
|
261
274
|
|
|
262
275
|
// src/prop-types/string.ts
|
|
263
|
-
import { z as
|
|
264
|
-
var stringPropTypeUtil = createPropUtils("string",
|
|
276
|
+
import { z as z22 } from "@elementor/schema";
|
|
277
|
+
var stringPropTypeUtil = createPropUtils("string", z22.string().nullable());
|
|
265
278
|
|
|
266
279
|
// src/prop-types/string-array.ts
|
|
267
280
|
var stringArrayPropTypeUtil = createArrayPropUtils(stringPropTypeUtil.key, stringPropTypeUtil.schema);
|
|
268
281
|
|
|
269
282
|
// src/prop-types/stroke.ts
|
|
270
|
-
import { z as
|
|
283
|
+
import { z as z23 } from "@elementor/schema";
|
|
271
284
|
var strokePropTypeUtil = createPropUtils(
|
|
272
285
|
"stroke",
|
|
273
|
-
|
|
286
|
+
z23.strictObject({
|
|
274
287
|
color: unknownChildrenSchema,
|
|
275
288
|
width: unknownChildrenSchema
|
|
276
289
|
})
|
|
277
290
|
);
|
|
278
291
|
|
|
279
292
|
// src/prop-types/url.ts
|
|
280
|
-
import { z as
|
|
281
|
-
var urlPropTypeUtil = createPropUtils("url",
|
|
293
|
+
import { z as z24 } from "@elementor/schema";
|
|
294
|
+
var urlPropTypeUtil = createPropUtils("url", z24.string().nullable());
|
|
282
295
|
|
|
283
296
|
// src/prop-types/layout-direction.ts
|
|
284
|
-
import { z as
|
|
297
|
+
import { z as z25 } from "@elementor/schema";
|
|
285
298
|
var layoutDirectionPropTypeUtil = createPropUtils(
|
|
286
299
|
"layout-direction",
|
|
287
|
-
|
|
288
|
-
row:
|
|
289
|
-
column:
|
|
300
|
+
z25.object({
|
|
301
|
+
row: z25.any(),
|
|
302
|
+
column: z25.any()
|
|
290
303
|
})
|
|
291
304
|
);
|
|
292
305
|
|
|
293
306
|
// src/prop-types/link.ts
|
|
294
|
-
import { z as
|
|
307
|
+
import { z as z26 } from "@elementor/schema";
|
|
295
308
|
var linkPropTypeUtil = createPropUtils(
|
|
296
309
|
"link",
|
|
297
|
-
|
|
310
|
+
z26.strictObject({
|
|
298
311
|
destination: unknownChildrenSchema,
|
|
299
312
|
isTargetBlank: unknownChildrenSchema,
|
|
300
313
|
tag: unknownChildrenSchema
|
|
@@ -302,10 +315,10 @@ var linkPropTypeUtil = createPropUtils(
|
|
|
302
315
|
);
|
|
303
316
|
|
|
304
317
|
// src/prop-types/email.ts
|
|
305
|
-
import { z as
|
|
318
|
+
import { z as z27 } from "@elementor/schema";
|
|
306
319
|
var emailPropTypeUtil = createPropUtils(
|
|
307
320
|
"email",
|
|
308
|
-
|
|
321
|
+
z27.strictObject({
|
|
309
322
|
to: unknownChildrenSchema,
|
|
310
323
|
subject: unknownChildrenSchema,
|
|
311
324
|
message: unknownChildrenSchema,
|
|
@@ -320,10 +333,10 @@ var emailPropTypeUtil = createPropUtils(
|
|
|
320
333
|
);
|
|
321
334
|
|
|
322
335
|
// src/prop-types/emails.ts
|
|
323
|
-
import { z as
|
|
336
|
+
import { z as z28 } from "@elementor/schema";
|
|
324
337
|
var emailsPropTypeUtil = createPropUtils(
|
|
325
338
|
"emails",
|
|
326
|
-
|
|
339
|
+
z28.strictObject({
|
|
327
340
|
to: unknownChildrenSchema,
|
|
328
341
|
subject: unknownChildrenSchema,
|
|
329
342
|
message: unknownChildrenSchema,
|
|
@@ -338,13 +351,13 @@ var emailsPropTypeUtil = createPropUtils(
|
|
|
338
351
|
);
|
|
339
352
|
|
|
340
353
|
// src/prop-types/selection-size.ts
|
|
341
|
-
import { z as
|
|
354
|
+
import { z as z30 } from "@elementor/schema";
|
|
342
355
|
|
|
343
356
|
// src/prop-types/key-value.ts
|
|
344
|
-
import { z as
|
|
357
|
+
import { z as z29 } from "@elementor/schema";
|
|
345
358
|
var keyValuePropTypeUtil = createPropUtils(
|
|
346
359
|
"key-value",
|
|
347
|
-
|
|
360
|
+
z29.strictObject({
|
|
348
361
|
key: unknownChildrenSchema,
|
|
349
362
|
value: unknownChildrenSchema
|
|
350
363
|
})
|
|
@@ -353,17 +366,17 @@ var keyValuePropTypeUtil = createPropUtils(
|
|
|
353
366
|
// src/prop-types/selection-size.ts
|
|
354
367
|
var selectionSizePropTypeUtil = createPropUtils(
|
|
355
368
|
"selection-size",
|
|
356
|
-
|
|
357
|
-
selection:
|
|
369
|
+
z30.strictObject({
|
|
370
|
+
selection: z30.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
|
|
358
371
|
size: unknownChildrenSchema
|
|
359
372
|
})
|
|
360
373
|
);
|
|
361
374
|
|
|
362
375
|
// src/prop-types/background-prop-types/background.ts
|
|
363
|
-
import { z as
|
|
376
|
+
import { z as z31 } from "@elementor/schema";
|
|
364
377
|
var backgroundPropTypeUtil = createPropUtils(
|
|
365
378
|
"background",
|
|
366
|
-
|
|
379
|
+
z31.strictObject({
|
|
367
380
|
color: unknownChildrenSchema,
|
|
368
381
|
clip: unknownChildrenSchema,
|
|
369
382
|
"background-overlay": unknownChildrenSchema
|
|
@@ -371,7 +384,7 @@ var backgroundPropTypeUtil = createPropUtils(
|
|
|
371
384
|
);
|
|
372
385
|
|
|
373
386
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
374
|
-
import { z as
|
|
387
|
+
import { z as z32 } from "@elementor/schema";
|
|
375
388
|
|
|
376
389
|
// src/prop-types/background-prop-types/background-color-overlay.ts
|
|
377
390
|
var backgroundColorOverlayPropTypeUtil = createPropUtils("background-color-overlay", unknownChildrenSchema);
|
|
@@ -387,7 +400,7 @@ var backgroundImageOverlayPropTypeUtil = createPropUtils("background-image-overl
|
|
|
387
400
|
|
|
388
401
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
389
402
|
var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema);
|
|
390
|
-
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay",
|
|
403
|
+
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z32.array(backgroundOverlayItem));
|
|
391
404
|
|
|
392
405
|
// src/prop-types/background-prop-types/background-image-position-offset.ts
|
|
393
406
|
var backgroundImagePositionOffsetPropTypeUtil = createPropUtils(
|
|
@@ -402,71 +415,71 @@ var backgroundImageSizeScalePropTypeUtil = createPropUtils(
|
|
|
402
415
|
);
|
|
403
416
|
|
|
404
417
|
// src/prop-types/boolean.ts
|
|
405
|
-
import { z as
|
|
406
|
-
var booleanPropTypeUtil = createPropUtils("boolean",
|
|
418
|
+
import { z as z33 } from "@elementor/schema";
|
|
419
|
+
var booleanPropTypeUtil = createPropUtils("boolean", z33.boolean().nullable());
|
|
407
420
|
|
|
408
421
|
// src/prop-types/color-stop.ts
|
|
409
|
-
import { z as
|
|
422
|
+
import { z as z34 } from "@elementor/schema";
|
|
410
423
|
var colorStopPropTypeUtil = createPropUtils(
|
|
411
424
|
"color-stop",
|
|
412
|
-
|
|
425
|
+
z34.strictObject({
|
|
413
426
|
color: unknownChildrenSchema,
|
|
414
427
|
offset: unknownChildrenSchema
|
|
415
428
|
})
|
|
416
429
|
);
|
|
417
430
|
|
|
418
431
|
// src/prop-types/gradient-color-stop.ts
|
|
419
|
-
import { z as
|
|
432
|
+
import { z as z35 } from "@elementor/schema";
|
|
420
433
|
var gradientColorStopPropTypeUtil = createPropUtils(
|
|
421
434
|
"gradient-color-stop",
|
|
422
|
-
|
|
435
|
+
z35.array(colorStopPropTypeUtil.schema)
|
|
423
436
|
);
|
|
424
437
|
|
|
425
438
|
// src/prop-types/number-range.ts
|
|
426
|
-
import { z as
|
|
439
|
+
import { z as z36 } from "@elementor/schema";
|
|
427
440
|
var numberRangePropTypeUtil = createPropUtils(
|
|
428
441
|
"number-range",
|
|
429
|
-
|
|
442
|
+
z36.strictObject({
|
|
430
443
|
min: unknownChildrenSchema,
|
|
431
444
|
max: unknownChildrenSchema
|
|
432
445
|
})
|
|
433
446
|
);
|
|
434
447
|
|
|
435
448
|
// src/prop-types/date-time.ts
|
|
436
|
-
import { z as
|
|
449
|
+
import { z as z37 } from "@elementor/schema";
|
|
437
450
|
var DateTimePropTypeUtil = createPropUtils(
|
|
438
451
|
"date-time",
|
|
439
|
-
|
|
452
|
+
z37.strictObject({
|
|
440
453
|
date: unknownChildrenSchema,
|
|
441
454
|
time: unknownChildrenSchema
|
|
442
455
|
})
|
|
443
456
|
);
|
|
444
457
|
|
|
445
458
|
// src/prop-types/position.ts
|
|
446
|
-
import { z as
|
|
459
|
+
import { z as z38 } from "@elementor/schema";
|
|
447
460
|
var positionPropTypeUtil = createPropUtils(
|
|
448
461
|
"object-position",
|
|
449
|
-
|
|
462
|
+
z38.strictObject({
|
|
450
463
|
x: unknownChildrenSchema,
|
|
451
464
|
y: unknownChildrenSchema
|
|
452
465
|
})
|
|
453
466
|
);
|
|
454
467
|
|
|
455
468
|
// src/prop-types/query.ts
|
|
456
|
-
import { z as
|
|
469
|
+
import { z as z39 } from "@elementor/schema";
|
|
457
470
|
var queryPropTypeUtil = createPropUtils(
|
|
458
471
|
"query",
|
|
459
|
-
|
|
472
|
+
z39.strictObject({
|
|
460
473
|
id: unknownChildrenSchema,
|
|
461
474
|
label: unknownChildrenSchema
|
|
462
475
|
})
|
|
463
476
|
);
|
|
464
477
|
|
|
465
478
|
// src/prop-types/query-filter.ts
|
|
466
|
-
import { z as
|
|
479
|
+
import { z as z40 } from "@elementor/schema";
|
|
467
480
|
var queryFilterPropTypeUtil = createPropUtils(
|
|
468
481
|
"query-filter",
|
|
469
|
-
|
|
482
|
+
z40.strictObject({
|
|
470
483
|
key: unknownChildrenSchema,
|
|
471
484
|
values: unknownChildrenSchema,
|
|
472
485
|
taxonomies: unknownChildrenSchema
|
|
@@ -478,41 +491,41 @@ var queryFilterArrayPropTypeUtil = createArrayPropUtils(
|
|
|
478
491
|
);
|
|
479
492
|
|
|
480
493
|
// src/prop-types/html.ts
|
|
481
|
-
import { z as
|
|
482
|
-
var htmlPropTypeUtil = createPropUtils("html",
|
|
494
|
+
import { z as z41 } from "@elementor/schema";
|
|
495
|
+
var htmlPropTypeUtil = createPropUtils("html", z41.string().nullable());
|
|
483
496
|
|
|
484
497
|
// src/prop-types/html-v2.ts
|
|
485
|
-
import { z as
|
|
486
|
-
var childElementSchema =
|
|
487
|
-
() =>
|
|
488
|
-
id:
|
|
489
|
-
type:
|
|
490
|
-
content:
|
|
491
|
-
children:
|
|
498
|
+
import { z as z42 } from "@elementor/schema";
|
|
499
|
+
var childElementSchema = z42.lazy(
|
|
500
|
+
() => z42.object({
|
|
501
|
+
id: z42.string(),
|
|
502
|
+
type: z42.string(),
|
|
503
|
+
content: z42.string().optional(),
|
|
504
|
+
children: z42.array(childElementSchema).optional()
|
|
492
505
|
})
|
|
493
506
|
);
|
|
494
|
-
var htmlV2ValueSchema =
|
|
495
|
-
content:
|
|
496
|
-
children:
|
|
507
|
+
var htmlV2ValueSchema = z42.object({
|
|
508
|
+
content: z42.string().nullable(),
|
|
509
|
+
children: z42.array(childElementSchema)
|
|
497
510
|
});
|
|
498
511
|
var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema);
|
|
499
512
|
|
|
500
513
|
// src/prop-types/html-v3.ts
|
|
501
|
-
import { z as
|
|
502
|
-
var htmlV3ValueSchema =
|
|
514
|
+
import { z as z43 } from "@elementor/schema";
|
|
515
|
+
var htmlV3ValueSchema = z43.object({
|
|
503
516
|
content: stringPropTypeUtil.schema.nullable(),
|
|
504
|
-
children:
|
|
517
|
+
children: z43.array(z43.unknown())
|
|
505
518
|
});
|
|
506
519
|
var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
|
|
507
520
|
|
|
508
521
|
// src/prop-types/filter-prop-types/filter.ts
|
|
509
|
-
import { z as
|
|
522
|
+
import { z as z49 } from "@elementor/schema";
|
|
510
523
|
|
|
511
524
|
// src/prop-types/filter-prop-types/drop-shadow-filter.ts
|
|
512
|
-
import { z as
|
|
525
|
+
import { z as z44 } from "@elementor/schema";
|
|
513
526
|
var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
514
527
|
"drop-shadow",
|
|
515
|
-
|
|
528
|
+
z44.object({
|
|
516
529
|
xAxis: unknownChildrenSchema,
|
|
517
530
|
yAxis: unknownChildrenSchema,
|
|
518
531
|
blur: unknownChildrenSchema,
|
|
@@ -521,37 +534,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
|
521
534
|
);
|
|
522
535
|
|
|
523
536
|
// src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
|
|
524
|
-
import { z as
|
|
537
|
+
import { z as z45 } from "@elementor/schema";
|
|
525
538
|
var blurFilterPropTypeUtil = createPropUtils(
|
|
526
539
|
"blur",
|
|
527
|
-
|
|
540
|
+
z45.strictObject({
|
|
528
541
|
size: unknownChildrenSchema
|
|
529
542
|
})
|
|
530
543
|
);
|
|
531
544
|
|
|
532
545
|
// src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
|
|
533
|
-
import { z as
|
|
546
|
+
import { z as z46 } from "@elementor/schema";
|
|
534
547
|
var colorToneFilterPropTypeUtil = createPropUtils(
|
|
535
548
|
"color-tone",
|
|
536
|
-
|
|
549
|
+
z46.strictObject({
|
|
537
550
|
size: unknownChildrenSchema
|
|
538
551
|
})
|
|
539
552
|
);
|
|
540
553
|
|
|
541
554
|
// src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
|
|
542
|
-
import { z as
|
|
555
|
+
import { z as z47 } from "@elementor/schema";
|
|
543
556
|
var hueRotateFilterPropTypeUtil = createPropUtils(
|
|
544
557
|
"hue-rotate",
|
|
545
|
-
|
|
558
|
+
z47.strictObject({
|
|
546
559
|
size: unknownChildrenSchema
|
|
547
560
|
})
|
|
548
561
|
);
|
|
549
562
|
|
|
550
563
|
// src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
|
|
551
|
-
import { z as
|
|
564
|
+
import { z as z48 } from "@elementor/schema";
|
|
552
565
|
var intensityFilterPropTypeUtil = createPropUtils(
|
|
553
566
|
"intensity",
|
|
554
|
-
|
|
567
|
+
z48.strictObject({
|
|
555
568
|
size: unknownChildrenSchema
|
|
556
569
|
})
|
|
557
570
|
);
|
|
@@ -559,9 +572,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
|
|
|
559
572
|
// src/prop-types/filter-prop-types/filter.ts
|
|
560
573
|
var cssFilterFunctionPropUtil = createPropUtils(
|
|
561
574
|
"css-filter-func",
|
|
562
|
-
|
|
575
|
+
z49.object({
|
|
563
576
|
func: stringPropTypeUtil.schema,
|
|
564
|
-
args:
|
|
577
|
+
args: z49.union([
|
|
565
578
|
blurFilterPropTypeUtil.schema,
|
|
566
579
|
intensityFilterPropTypeUtil.schema,
|
|
567
580
|
colorToneFilterPropTypeUtil.schema,
|
|
@@ -570,13 +583,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
570
583
|
])
|
|
571
584
|
})
|
|
572
585
|
);
|
|
573
|
-
var filterPropTypeUtil = createPropUtils("filter",
|
|
586
|
+
var filterPropTypeUtil = createPropUtils("filter", z49.array(cssFilterFunctionPropUtil.schema));
|
|
574
587
|
|
|
575
588
|
// src/prop-types/transform-prop-types/transform.ts
|
|
576
|
-
import { z as
|
|
589
|
+
import { z as z50 } from "@elementor/schema";
|
|
577
590
|
var transformPropTypeUtil = createPropUtils(
|
|
578
591
|
"transform",
|
|
579
|
-
|
|
592
|
+
z50.strictObject({
|
|
580
593
|
"transform-functions": unknownChildrenSchema,
|
|
581
594
|
"transform-origin": unknownChildrenSchema,
|
|
582
595
|
perspective: unknownChildrenSchema,
|
|
@@ -585,10 +598,10 @@ var transformPropTypeUtil = createPropUtils(
|
|
|
585
598
|
);
|
|
586
599
|
|
|
587
600
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
588
|
-
import { z as
|
|
601
|
+
import { z as z55 } from "@elementor/schema";
|
|
589
602
|
|
|
590
603
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
591
|
-
import { z as
|
|
604
|
+
import { z as z51 } from "@elementor/schema";
|
|
592
605
|
|
|
593
606
|
// src/prop-types/transform-prop-types/types.ts
|
|
594
607
|
var TransformFunctionKeys = {
|
|
@@ -601,7 +614,7 @@ var TransformFunctionKeys = {
|
|
|
601
614
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
602
615
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
603
616
|
TransformFunctionKeys.move,
|
|
604
|
-
|
|
617
|
+
z51.strictObject({
|
|
605
618
|
x: unknownChildrenSchema,
|
|
606
619
|
y: unknownChildrenSchema,
|
|
607
620
|
z: unknownChildrenSchema
|
|
@@ -609,10 +622,10 @@ var moveTransformPropTypeUtil = createPropUtils(
|
|
|
609
622
|
);
|
|
610
623
|
|
|
611
624
|
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
612
|
-
import { z as
|
|
625
|
+
import { z as z52 } from "@elementor/schema";
|
|
613
626
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
614
627
|
TransformFunctionKeys.rotate,
|
|
615
|
-
|
|
628
|
+
z52.strictObject({
|
|
616
629
|
x: unknownChildrenSchema,
|
|
617
630
|
y: unknownChildrenSchema,
|
|
618
631
|
z: unknownChildrenSchema
|
|
@@ -620,10 +633,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
|
|
|
620
633
|
);
|
|
621
634
|
|
|
622
635
|
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
623
|
-
import { z as
|
|
636
|
+
import { z as z53 } from "@elementor/schema";
|
|
624
637
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
625
638
|
TransformFunctionKeys.scale,
|
|
626
|
-
|
|
639
|
+
z53.strictObject({
|
|
627
640
|
x: numberPropTypeUtil.schema.nullable(),
|
|
628
641
|
y: numberPropTypeUtil.schema.nullable(),
|
|
629
642
|
z: numberPropTypeUtil.schema.nullable()
|
|
@@ -631,10 +644,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
|
|
|
631
644
|
);
|
|
632
645
|
|
|
633
646
|
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
634
|
-
import { z as
|
|
647
|
+
import { z as z54 } from "@elementor/schema";
|
|
635
648
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
636
649
|
TransformFunctionKeys.skew,
|
|
637
|
-
|
|
650
|
+
z54.strictObject({
|
|
638
651
|
x: unknownChildrenSchema,
|
|
639
652
|
y: unknownChildrenSchema
|
|
640
653
|
})
|
|
@@ -642,13 +655,13 @@ var skewTransformPropTypeUtil = createPropUtils(
|
|
|
642
655
|
|
|
643
656
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
644
657
|
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
645
|
-
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions",
|
|
658
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z55.array(filterTypes));
|
|
646
659
|
|
|
647
660
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
648
|
-
import { z as
|
|
661
|
+
import { z as z56 } from "@elementor/schema";
|
|
649
662
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
650
663
|
"transform-origin",
|
|
651
|
-
|
|
664
|
+
z56.strictObject({
|
|
652
665
|
x: unknownChildrenSchema,
|
|
653
666
|
y: unknownChildrenSchema,
|
|
654
667
|
z: unknownChildrenSchema
|
|
@@ -656,49 +669,49 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
656
669
|
);
|
|
657
670
|
|
|
658
671
|
// src/prop-types/transform-prop-types/perspective-origin.ts
|
|
659
|
-
import { z as
|
|
672
|
+
import { z as z57 } from "@elementor/schema";
|
|
660
673
|
var perspectiveOriginPropTypeUtil = createPropUtils(
|
|
661
674
|
"perspective-origin",
|
|
662
|
-
|
|
675
|
+
z57.strictObject({
|
|
663
676
|
x: unknownChildrenSchema,
|
|
664
677
|
y: unknownChildrenSchema
|
|
665
678
|
})
|
|
666
679
|
);
|
|
667
680
|
|
|
668
681
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
669
|
-
import { z as
|
|
682
|
+
import { z as z58 } from "@elementor/schema";
|
|
670
683
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
671
684
|
"backdrop-filter",
|
|
672
|
-
|
|
685
|
+
z58.array(cssFilterFunctionPropUtil.schema)
|
|
673
686
|
);
|
|
674
687
|
|
|
675
688
|
// src/prop-types/date-range.ts
|
|
676
|
-
import { z as
|
|
689
|
+
import { z as z59 } from "@elementor/schema";
|
|
677
690
|
var dateRangePropTypeUtil = createPropUtils(
|
|
678
691
|
"date-range",
|
|
679
|
-
|
|
692
|
+
z59.strictObject({
|
|
680
693
|
min: unknownChildrenSchema,
|
|
681
694
|
max: unknownChildrenSchema
|
|
682
695
|
})
|
|
683
696
|
);
|
|
684
697
|
|
|
685
698
|
// src/prop-types/date-string.ts
|
|
686
|
-
import { z as
|
|
687
|
-
var dateStringPropTypeUtil = createPropUtils("date-string",
|
|
699
|
+
import { z as z60 } from "@elementor/schema";
|
|
700
|
+
var dateStringPropTypeUtil = createPropUtils("date-string", z60.string());
|
|
688
701
|
|
|
689
702
|
// src/prop-types/time-range.ts
|
|
690
|
-
import { z as
|
|
703
|
+
import { z as z61 } from "@elementor/schema";
|
|
691
704
|
var timeRangePropTypeUtil = createPropUtils(
|
|
692
705
|
"time-range",
|
|
693
|
-
|
|
706
|
+
z61.strictObject({
|
|
694
707
|
min: unknownChildrenSchema,
|
|
695
708
|
max: unknownChildrenSchema
|
|
696
709
|
})
|
|
697
710
|
);
|
|
698
711
|
|
|
699
712
|
// src/prop-types/time-string.ts
|
|
700
|
-
import { z as
|
|
701
|
-
var timeStringPropTypeUtil = createPropUtils("time-string",
|
|
713
|
+
import { z as z62 } from "@elementor/schema";
|
|
714
|
+
var timeStringPropTypeUtil = createPropUtils("time-string", z62.string());
|
|
702
715
|
|
|
703
716
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
704
717
|
var ensureNotNull = (v, fallback) => v === null ? fallback : v;
|
|
@@ -1162,11 +1175,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1162
1175
|
};
|
|
1163
1176
|
|
|
1164
1177
|
// src/utils/is-transformable.ts
|
|
1165
|
-
import { z as
|
|
1166
|
-
var transformableSchema =
|
|
1167
|
-
$$type:
|
|
1168
|
-
value:
|
|
1169
|
-
disabled:
|
|
1178
|
+
import { z as z63 } from "@elementor/schema";
|
|
1179
|
+
var transformableSchema = z63.object({
|
|
1180
|
+
$$type: z63.string(),
|
|
1181
|
+
value: z63.any(),
|
|
1182
|
+
disabled: z63.boolean().optional()
|
|
1170
1183
|
});
|
|
1171
1184
|
var isTransformable = (value) => {
|
|
1172
1185
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1439,6 +1452,7 @@ export {
|
|
|
1439
1452
|
filterEmptyValues,
|
|
1440
1453
|
filterPropTypeUtil,
|
|
1441
1454
|
flexPropTypeUtil,
|
|
1455
|
+
fontFamilyPropTypeUtil,
|
|
1442
1456
|
getPropSchemaFromCache,
|
|
1443
1457
|
gradientColorStopPropTypeUtil,
|
|
1444
1458
|
gridTrackSizePropTypeUtil,
|