@webstudio-is/sdk 0.236.0 → 0.238.0
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/lib/index.js +4 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/schema/animation-schema.d.ts +469 -0
- package/lib/types/schema/props.d.ts +380 -0
- package/lib/types/schema/webstudio.d.ts +226 -0
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -382,6 +382,7 @@ var durationUnitValueSchema = z6.union([
|
|
|
382
382
|
value: z6.string()
|
|
383
383
|
})
|
|
384
384
|
]);
|
|
385
|
+
var iterationsUnitValueSchema = z6.union([z6.number(), z6.literal("infinite")]);
|
|
385
386
|
var insetUnitValueSchema = z6.union([
|
|
386
387
|
rangeUnitValueSchema,
|
|
387
388
|
z6.object({
|
|
@@ -403,7 +404,9 @@ var keyframeEffectOptionsSchema = z6.object({
|
|
|
403
404
|
z6.literal("both")
|
|
404
405
|
]).optional(),
|
|
405
406
|
// FillMode
|
|
406
|
-
duration: durationUnitValueSchema.optional()
|
|
407
|
+
duration: durationUnitValueSchema.optional(),
|
|
408
|
+
delay: durationUnitValueSchema.optional(),
|
|
409
|
+
iterations: iterationsUnitValueSchema.optional()
|
|
407
410
|
});
|
|
408
411
|
var scrollNamedRangeSchema = z6.union([
|
|
409
412
|
z6.literal("start"),
|
package/lib/types/index.d.ts
CHANGED
|
@@ -22,5 +22,5 @@ export * from "./page-meta-generator";
|
|
|
22
22
|
export * from "./url-pattern";
|
|
23
23
|
export * from "./css";
|
|
24
24
|
export * from "./__generated__/tags";
|
|
25
|
-
export type { AnimationAction, AnimationActionScroll, AnimationActionView, AnimationKeyframe, KeyframeStyles, RangeUnit, RangeUnitValue, ScrollNamedRange, ScrollRangeValue, ViewNamedRange, ViewRangeValue, ScrollAnimation, ViewAnimation, InsetUnitValue, DurationUnitValue, TimeUnit, } from "./schema/animation-schema";
|
|
25
|
+
export type { AnimationAction, AnimationActionScroll, AnimationActionView, AnimationKeyframe, KeyframeStyles, RangeUnit, RangeUnitValue, ScrollNamedRange, ScrollRangeValue, ViewNamedRange, ViewRangeValue, ScrollAnimation, ViewAnimation, InsetUnitValue, DurationUnitValue, IterationsUnitValue, TimeUnit, } from "./schema/animation-schema";
|
|
26
26
|
export { animationActionSchema, scrollAnimationSchema, viewAnimationSchema, rangeUnitValueSchema, animationKeyframeSchema, insetUnitValueSchema, durationUnitValueSchema, RANGE_UNITS, } from "./schema/animation-schema";
|