@webstudio-is/sdk 0.205.0 → 0.207.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/__generated__/normalize.css.js +247 -151
- package/lib/core-templates.js +5 -5
- package/lib/index.js +72 -10
- package/lib/types/__generated__/normalize.css.d.ts +2 -2
- package/lib/types/core-metas.d.ts +35 -0
- package/lib/types/instances-utils.d.ts +3 -0
- package/lib/types/schema/animation-schema.d.ts +26 -0
- package/lib/types/schema/component-meta.d.ts +3971 -379
- package/lib/types/schema/prop-meta.d.ts +21 -0
- package/lib/types/schema/props.d.ts +28 -0
- package/lib/types/schema/styles.d.ts +4 -4
- package/lib/types/schema/webstudio.d.ts +22 -4
- package/package.json +10 -10
package/lib/core-templates.js
CHANGED
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
// src/__generated__/normalize.css.ts
|
|
20
20
|
var html = [
|
|
21
21
|
{ property: "display", value: { type: "keyword", value: "grid" } },
|
|
22
|
-
{ property: "
|
|
22
|
+
{ property: "min-height", value: { type: "unit", unit: "%", value: 100 } },
|
|
23
23
|
{
|
|
24
|
-
property: "
|
|
24
|
+
property: "font-family",
|
|
25
25
|
value: { type: "fontFamily", value: ["Arial", "Roboto", "sans-serif"] }
|
|
26
26
|
},
|
|
27
|
-
{ property: "
|
|
27
|
+
{ property: "font-size", value: { type: "unit", unit: "px", value: 16 } },
|
|
28
28
|
{
|
|
29
|
-
property: "
|
|
29
|
+
property: "line-height",
|
|
30
30
|
value: { type: "unit", unit: "number", value: 1.2 }
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
property: "
|
|
33
|
+
property: "white-space-collapse",
|
|
34
34
|
value: { type: "keyword", value: "preserve" }
|
|
35
35
|
}
|
|
36
36
|
];
|
package/lib/index.js
CHANGED
|
@@ -405,6 +405,7 @@ var viewRangeOptionsSchema = z6.object({
|
|
|
405
405
|
var baseAnimation = z6.object({
|
|
406
406
|
name: z6.string().optional(),
|
|
407
407
|
description: z6.string().optional(),
|
|
408
|
+
enabled: z6.array(z6.tuple([z6.string().describe("breakpointId"), z6.boolean()])).optional(),
|
|
408
409
|
keyframes: z6.array(animationKeyframeSchema)
|
|
409
410
|
});
|
|
410
411
|
var scrollAnimationSchema = baseAnimation.merge(
|
|
@@ -587,7 +588,7 @@ var StyleDeclRaw = z11.object({
|
|
|
587
588
|
// @todo can't figure out how to make property to be enum
|
|
588
589
|
property: z11.string(),
|
|
589
590
|
value: StyleValue2,
|
|
590
|
-
listed: z11.boolean().optional()
|
|
591
|
+
listed: z11.boolean().optional().describe("Whether the style is from the Advanced panel")
|
|
591
592
|
});
|
|
592
593
|
var StyleDecl = StyleDeclRaw;
|
|
593
594
|
var getStyleDeclKey = (styleDecl) => {
|
|
@@ -670,6 +671,12 @@ var Text = z14.object({
|
|
|
670
671
|
*/
|
|
671
672
|
rows: z14.number().optional()
|
|
672
673
|
});
|
|
674
|
+
var Resource2 = z14.object({
|
|
675
|
+
...common,
|
|
676
|
+
control: z14.literal("resource"),
|
|
677
|
+
type: z14.literal("resource"),
|
|
678
|
+
defaultValue: z14.string().optional()
|
|
679
|
+
});
|
|
673
680
|
var Code = z14.object({
|
|
674
681
|
...common,
|
|
675
682
|
control: z14.literal("code"),
|
|
@@ -787,6 +794,7 @@ var PropMeta = z14.union([
|
|
|
787
794
|
Number,
|
|
788
795
|
Range,
|
|
789
796
|
Text,
|
|
797
|
+
Resource2,
|
|
790
798
|
Code,
|
|
791
799
|
CodeText,
|
|
792
800
|
Color,
|
|
@@ -897,6 +905,13 @@ var WsEmbedTemplate = z15.lazy(
|
|
|
897
905
|
|
|
898
906
|
// src/schema/component-meta.ts
|
|
899
907
|
import { z as z16 } from "zod";
|
|
908
|
+
import { StyleValue as StyleValue4 } from "@webstudio-is/css-engine";
|
|
909
|
+
var PresetStyleDecl = z16.object({
|
|
910
|
+
// State selector, e.g. :hover
|
|
911
|
+
state: z16.optional(z16.string()),
|
|
912
|
+
property: z16.string(),
|
|
913
|
+
value: StyleValue4
|
|
914
|
+
});
|
|
900
915
|
var WsComponentPropsMeta = z16.object({
|
|
901
916
|
props: z16.record(PropMeta),
|
|
902
917
|
// Props that will be always visible in properties panel.
|
|
@@ -948,9 +963,7 @@ var WsComponentMeta = z16.object({
|
|
|
948
963
|
label: z16.optional(z16.string()),
|
|
949
964
|
description: z16.string().optional(),
|
|
950
965
|
icon: z16.string(),
|
|
951
|
-
presetStyle: z16.optional(
|
|
952
|
-
z16.record(z16.string(), z16.array(EmbedTemplateStyleDecl))
|
|
953
|
-
),
|
|
966
|
+
presetStyle: z16.optional(z16.record(z16.string(), z16.array(PresetStyleDecl))),
|
|
954
967
|
states: z16.optional(z16.array(ComponentState)),
|
|
955
968
|
template: z16.optional(WsEmbedTemplate),
|
|
956
969
|
order: z16.number().optional()
|
|
@@ -968,18 +981,18 @@ import {
|
|
|
968
981
|
// src/__generated__/normalize.css.ts
|
|
969
982
|
var html = [
|
|
970
983
|
{ property: "display", value: { type: "keyword", value: "grid" } },
|
|
971
|
-
{ property: "
|
|
984
|
+
{ property: "min-height", value: { type: "unit", unit: "%", value: 100 } },
|
|
972
985
|
{
|
|
973
|
-
property: "
|
|
986
|
+
property: "font-family",
|
|
974
987
|
value: { type: "fontFamily", value: ["Arial", "Roboto", "sans-serif"] }
|
|
975
988
|
},
|
|
976
|
-
{ property: "
|
|
989
|
+
{ property: "font-size", value: { type: "unit", unit: "px", value: 16 } },
|
|
977
990
|
{
|
|
978
|
-
property: "
|
|
991
|
+
property: "line-height",
|
|
979
992
|
value: { type: "unit", unit: "number", value: 1.2 }
|
|
980
993
|
},
|
|
981
994
|
{
|
|
982
|
-
property: "
|
|
995
|
+
property: "white-space-collapse",
|
|
983
996
|
value: { type: "keyword", value: "preserve" }
|
|
984
997
|
}
|
|
985
998
|
];
|
|
@@ -1146,6 +1159,51 @@ var parseComponentName = (componentName) => {
|
|
|
1146
1159
|
}
|
|
1147
1160
|
return [namespace, name];
|
|
1148
1161
|
};
|
|
1162
|
+
var getIndexesWithinAncestors = (metas, instances, rootIds) => {
|
|
1163
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
1164
|
+
for (const meta of metas.values()) {
|
|
1165
|
+
if (meta.indexWithinAncestor !== void 0) {
|
|
1166
|
+
ancestors.add(meta.indexWithinAncestor);
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
const indexes = /* @__PURE__ */ new Map();
|
|
1170
|
+
const traverseInstances2 = (instances2, instanceId, latestIndexes2 = /* @__PURE__ */ new Map()) => {
|
|
1171
|
+
const instance = instances2.get(instanceId);
|
|
1172
|
+
if (instance === void 0) {
|
|
1173
|
+
return;
|
|
1174
|
+
}
|
|
1175
|
+
const meta = metas.get(instance.component);
|
|
1176
|
+
if (ancestors.has(instance.component)) {
|
|
1177
|
+
latestIndexes2 = new Map(latestIndexes2);
|
|
1178
|
+
latestIndexes2.set(instance.component, /* @__PURE__ */ new Map());
|
|
1179
|
+
}
|
|
1180
|
+
if (instance.component === blockTemplateComponent) {
|
|
1181
|
+
latestIndexes2 = new Map(latestIndexes2);
|
|
1182
|
+
for (const key of latestIndexes2.keys()) {
|
|
1183
|
+
latestIndexes2.set(key, /* @__PURE__ */ new Map());
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
if (meta?.indexWithinAncestor !== void 0) {
|
|
1187
|
+
const ancestorIndexes = latestIndexes2.get(meta.indexWithinAncestor);
|
|
1188
|
+
if (ancestorIndexes) {
|
|
1189
|
+
let index = ancestorIndexes.get(instance.component) ?? -1;
|
|
1190
|
+
index += 1;
|
|
1191
|
+
ancestorIndexes.set(instance.component, index);
|
|
1192
|
+
indexes.set(instance.id, index);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
for (const child of instance.children) {
|
|
1196
|
+
if (child.type === "id") {
|
|
1197
|
+
traverseInstances2(instances2, child.value, latestIndexes2);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
const latestIndexes = /* @__PURE__ */ new Map();
|
|
1202
|
+
for (const instanceId of rootIds) {
|
|
1203
|
+
traverseInstances2(instances, instanceId, latestIndexes);
|
|
1204
|
+
}
|
|
1205
|
+
return indexes;
|
|
1206
|
+
};
|
|
1149
1207
|
|
|
1150
1208
|
// src/expression.ts
|
|
1151
1209
|
import {
|
|
@@ -1727,7 +1785,9 @@ var replaceFormActionsWithResources = ({
|
|
|
1727
1785
|
name: "action",
|
|
1728
1786
|
method: getMethod(method),
|
|
1729
1787
|
url: JSON.stringify(action),
|
|
1730
|
-
headers: [
|
|
1788
|
+
headers: [
|
|
1789
|
+
{ name: "Content-Type", value: JSON.stringify("application/json") }
|
|
1790
|
+
]
|
|
1731
1791
|
});
|
|
1732
1792
|
}
|
|
1733
1793
|
}
|
|
@@ -2090,6 +2150,7 @@ export {
|
|
|
2090
2150
|
PageRedirect,
|
|
2091
2151
|
PageTitle,
|
|
2092
2152
|
Pages,
|
|
2153
|
+
PresetStyleDecl,
|
|
2093
2154
|
ProjectNewRedirectPath,
|
|
2094
2155
|
Prop,
|
|
2095
2156
|
PropMeta,
|
|
@@ -2142,6 +2203,7 @@ export {
|
|
|
2142
2203
|
generatePageMeta,
|
|
2143
2204
|
generateResources,
|
|
2144
2205
|
getExpressionIdentifiers,
|
|
2206
|
+
getIndexesWithinAncestors,
|
|
2145
2207
|
getPagePath,
|
|
2146
2208
|
getStaticSiteMapXml,
|
|
2147
2209
|
getStyleDeclKey,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CssProperty, StyleValue } from "@webstudio-is/css-engine";
|
|
2
2
|
type StyleDecl = {
|
|
3
3
|
state?: string;
|
|
4
|
-
property:
|
|
4
|
+
property: CssProperty;
|
|
5
5
|
value: StyleValue;
|
|
6
6
|
};
|
|
7
7
|
export declare const div: StyleDecl[];
|
|
@@ -37,6 +37,13 @@ export declare const corePropsMetas: {
|
|
|
37
37
|
rows?: number | undefined;
|
|
38
38
|
label?: string | undefined;
|
|
39
39
|
description?: string | undefined;
|
|
40
|
+
} | {
|
|
41
|
+
type: "resource";
|
|
42
|
+
required: boolean;
|
|
43
|
+
control: "resource";
|
|
44
|
+
defaultValue?: string | undefined;
|
|
45
|
+
label?: string | undefined;
|
|
46
|
+
description?: string | undefined;
|
|
40
47
|
} | {
|
|
41
48
|
type: "string";
|
|
42
49
|
required: boolean;
|
|
@@ -190,6 +197,13 @@ export declare const corePropsMetas: {
|
|
|
190
197
|
rows?: number | undefined;
|
|
191
198
|
label?: string | undefined;
|
|
192
199
|
description?: string | undefined;
|
|
200
|
+
} | {
|
|
201
|
+
type: "resource";
|
|
202
|
+
required: boolean;
|
|
203
|
+
control: "resource";
|
|
204
|
+
defaultValue?: string | undefined;
|
|
205
|
+
label?: string | undefined;
|
|
206
|
+
description?: string | undefined;
|
|
193
207
|
} | {
|
|
194
208
|
type: "string";
|
|
195
209
|
required: boolean;
|
|
@@ -343,6 +357,13 @@ export declare const corePropsMetas: {
|
|
|
343
357
|
rows?: number | undefined;
|
|
344
358
|
label?: string | undefined;
|
|
345
359
|
description?: string | undefined;
|
|
360
|
+
} | {
|
|
361
|
+
type: "resource";
|
|
362
|
+
required: boolean;
|
|
363
|
+
control: "resource";
|
|
364
|
+
defaultValue?: string | undefined;
|
|
365
|
+
label?: string | undefined;
|
|
366
|
+
description?: string | undefined;
|
|
346
367
|
} | {
|
|
347
368
|
type: "string";
|
|
348
369
|
required: boolean;
|
|
@@ -496,6 +517,13 @@ export declare const corePropsMetas: {
|
|
|
496
517
|
rows?: number | undefined;
|
|
497
518
|
label?: string | undefined;
|
|
498
519
|
description?: string | undefined;
|
|
520
|
+
} | {
|
|
521
|
+
type: "resource";
|
|
522
|
+
required: boolean;
|
|
523
|
+
control: "resource";
|
|
524
|
+
defaultValue?: string | undefined;
|
|
525
|
+
label?: string | undefined;
|
|
526
|
+
description?: string | undefined;
|
|
499
527
|
} | {
|
|
500
528
|
type: "string";
|
|
501
529
|
required: boolean;
|
|
@@ -649,6 +677,13 @@ export declare const corePropsMetas: {
|
|
|
649
677
|
rows?: number | undefined;
|
|
650
678
|
label?: string | undefined;
|
|
651
679
|
description?: string | undefined;
|
|
680
|
+
} | {
|
|
681
|
+
type: "resource";
|
|
682
|
+
required: boolean;
|
|
683
|
+
control: "resource";
|
|
684
|
+
defaultValue?: string | undefined;
|
|
685
|
+
label?: string | undefined;
|
|
686
|
+
description?: string | undefined;
|
|
652
687
|
} | {
|
|
653
688
|
type: "string";
|
|
654
689
|
required: boolean;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import type { WsComponentMeta } from "./schema/component-meta";
|
|
1
2
|
import type { Instance, Instances } from "./schema/instances";
|
|
2
3
|
export declare const ROOT_INSTANCE_ID = ":root";
|
|
3
4
|
export declare const findTreeInstanceIds: (instances: Instances, rootInstanceId: Instance["id"]) => Set<string>;
|
|
4
5
|
export declare const findTreeInstanceIdsExcludingSlotDescendants: (instances: Instances, rootInstanceId: Instance["id"]) => Set<string>;
|
|
5
6
|
export declare const parseComponentName: (componentName: string) => readonly [string | undefined, string];
|
|
7
|
+
export type IndexesWithinAncestors = Map<Instance["id"], number>;
|
|
8
|
+
export declare const getIndexesWithinAncestors: (metas: Map<Instance["component"], WsComponentMeta>, instances: Instances, rootIds: Instance["id"][]) => IndexesWithinAncestors;
|
|
@@ -3822,6 +3822,7 @@ export declare const viewRangeOptionsSchema: z.ZodObject<{
|
|
|
3822
3822
|
export declare const scrollAnimationSchema: z.ZodObject<{
|
|
3823
3823
|
name: z.ZodOptional<z.ZodString>;
|
|
3824
3824
|
description: z.ZodOptional<z.ZodString>;
|
|
3825
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodBoolean], null>, "many">>;
|
|
3825
3826
|
keyframes: z.ZodArray<z.ZodObject<{
|
|
3826
3827
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
3827
3828
|
styles: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -6255,6 +6256,7 @@ export declare const scrollAnimationSchema: z.ZodObject<{
|
|
|
6255
6256
|
};
|
|
6256
6257
|
name?: string | undefined;
|
|
6257
6258
|
description?: string | undefined;
|
|
6259
|
+
enabled?: [string, boolean][] | undefined;
|
|
6258
6260
|
}, {
|
|
6259
6261
|
keyframes: {
|
|
6260
6262
|
styles: Record<string, {
|
|
@@ -6553,6 +6555,7 @@ export declare const scrollAnimationSchema: z.ZodObject<{
|
|
|
6553
6555
|
};
|
|
6554
6556
|
name?: string | undefined;
|
|
6555
6557
|
description?: string | undefined;
|
|
6558
|
+
enabled?: [string, boolean][] | undefined;
|
|
6556
6559
|
}>;
|
|
6557
6560
|
export declare const scrollActionSchema: z.ZodObject<{
|
|
6558
6561
|
type: z.ZodLiteral<"scroll">;
|
|
@@ -6561,6 +6564,7 @@ export declare const scrollActionSchema: z.ZodObject<{
|
|
|
6561
6564
|
animations: z.ZodArray<z.ZodObject<{
|
|
6562
6565
|
name: z.ZodOptional<z.ZodString>;
|
|
6563
6566
|
description: z.ZodOptional<z.ZodString>;
|
|
6567
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodBoolean], null>, "many">>;
|
|
6564
6568
|
keyframes: z.ZodArray<z.ZodObject<{
|
|
6565
6569
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
6566
6570
|
styles: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -8994,6 +8998,7 @@ export declare const scrollActionSchema: z.ZodObject<{
|
|
|
8994
8998
|
};
|
|
8995
8999
|
name?: string | undefined;
|
|
8996
9000
|
description?: string | undefined;
|
|
9001
|
+
enabled?: [string, boolean][] | undefined;
|
|
8997
9002
|
}, {
|
|
8998
9003
|
keyframes: {
|
|
8999
9004
|
styles: Record<string, {
|
|
@@ -9292,6 +9297,7 @@ export declare const scrollActionSchema: z.ZodObject<{
|
|
|
9292
9297
|
};
|
|
9293
9298
|
name?: string | undefined;
|
|
9294
9299
|
description?: string | undefined;
|
|
9300
|
+
enabled?: [string, boolean][] | undefined;
|
|
9295
9301
|
}>, "many">;
|
|
9296
9302
|
isPinned: z.ZodOptional<z.ZodBoolean>;
|
|
9297
9303
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -9595,6 +9601,7 @@ export declare const scrollActionSchema: z.ZodObject<{
|
|
|
9595
9601
|
};
|
|
9596
9602
|
name?: string | undefined;
|
|
9597
9603
|
description?: string | undefined;
|
|
9604
|
+
enabled?: [string, boolean][] | undefined;
|
|
9598
9605
|
}[];
|
|
9599
9606
|
source?: "closest" | "nearest" | "root" | undefined;
|
|
9600
9607
|
axis?: "x" | "block" | "inline" | "y" | undefined;
|
|
@@ -9900,6 +9907,7 @@ export declare const scrollActionSchema: z.ZodObject<{
|
|
|
9900
9907
|
};
|
|
9901
9908
|
name?: string | undefined;
|
|
9902
9909
|
description?: string | undefined;
|
|
9910
|
+
enabled?: [string, boolean][] | undefined;
|
|
9903
9911
|
}[];
|
|
9904
9912
|
source?: "closest" | "nearest" | "root" | undefined;
|
|
9905
9913
|
axis?: "x" | "block" | "inline" | "y" | undefined;
|
|
@@ -9909,6 +9917,7 @@ export declare const scrollActionSchema: z.ZodObject<{
|
|
|
9909
9917
|
export declare const viewAnimationSchema: z.ZodObject<{
|
|
9910
9918
|
name: z.ZodOptional<z.ZodString>;
|
|
9911
9919
|
description: z.ZodOptional<z.ZodString>;
|
|
9920
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodBoolean], null>, "many">>;
|
|
9912
9921
|
keyframes: z.ZodArray<z.ZodObject<{
|
|
9913
9922
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
9914
9923
|
styles: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -12342,6 +12351,7 @@ export declare const viewAnimationSchema: z.ZodObject<{
|
|
|
12342
12351
|
};
|
|
12343
12352
|
name?: string | undefined;
|
|
12344
12353
|
description?: string | undefined;
|
|
12354
|
+
enabled?: [string, boolean][] | undefined;
|
|
12345
12355
|
}, {
|
|
12346
12356
|
keyframes: {
|
|
12347
12357
|
styles: Record<string, {
|
|
@@ -12640,6 +12650,7 @@ export declare const viewAnimationSchema: z.ZodObject<{
|
|
|
12640
12650
|
};
|
|
12641
12651
|
name?: string | undefined;
|
|
12642
12652
|
description?: string | undefined;
|
|
12653
|
+
enabled?: [string, boolean][] | undefined;
|
|
12643
12654
|
}>;
|
|
12644
12655
|
export declare const viewActionSchema: z.ZodObject<{
|
|
12645
12656
|
type: z.ZodLiteral<"view">;
|
|
@@ -12648,6 +12659,7 @@ export declare const viewActionSchema: z.ZodObject<{
|
|
|
12648
12659
|
animations: z.ZodArray<z.ZodObject<{
|
|
12649
12660
|
name: z.ZodOptional<z.ZodString>;
|
|
12650
12661
|
description: z.ZodOptional<z.ZodString>;
|
|
12662
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodBoolean], null>, "many">>;
|
|
12651
12663
|
keyframes: z.ZodArray<z.ZodObject<{
|
|
12652
12664
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
12653
12665
|
styles: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -15081,6 +15093,7 @@ export declare const viewActionSchema: z.ZodObject<{
|
|
|
15081
15093
|
};
|
|
15082
15094
|
name?: string | undefined;
|
|
15083
15095
|
description?: string | undefined;
|
|
15096
|
+
enabled?: [string, boolean][] | undefined;
|
|
15084
15097
|
}, {
|
|
15085
15098
|
keyframes: {
|
|
15086
15099
|
styles: Record<string, {
|
|
@@ -15379,6 +15392,7 @@ export declare const viewActionSchema: z.ZodObject<{
|
|
|
15379
15392
|
};
|
|
15380
15393
|
name?: string | undefined;
|
|
15381
15394
|
description?: string | undefined;
|
|
15395
|
+
enabled?: [string, boolean][] | undefined;
|
|
15382
15396
|
}>, "many">;
|
|
15383
15397
|
insetStart: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
15384
15398
|
type: z.ZodLiteral<"unit">;
|
|
@@ -15744,6 +15758,7 @@ export declare const viewActionSchema: z.ZodObject<{
|
|
|
15744
15758
|
};
|
|
15745
15759
|
name?: string | undefined;
|
|
15746
15760
|
description?: string | undefined;
|
|
15761
|
+
enabled?: [string, boolean][] | undefined;
|
|
15747
15762
|
}[];
|
|
15748
15763
|
subject?: string | undefined;
|
|
15749
15764
|
axis?: "x" | "block" | "inline" | "y" | undefined;
|
|
@@ -16071,6 +16086,7 @@ export declare const viewActionSchema: z.ZodObject<{
|
|
|
16071
16086
|
};
|
|
16072
16087
|
name?: string | undefined;
|
|
16073
16088
|
description?: string | undefined;
|
|
16089
|
+
enabled?: [string, boolean][] | undefined;
|
|
16074
16090
|
}[];
|
|
16075
16091
|
subject?: string | undefined;
|
|
16076
16092
|
axis?: "x" | "block" | "inline" | "y" | undefined;
|
|
@@ -16106,6 +16122,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
16106
16122
|
animations: z.ZodArray<z.ZodObject<{
|
|
16107
16123
|
name: z.ZodOptional<z.ZodString>;
|
|
16108
16124
|
description: z.ZodOptional<z.ZodString>;
|
|
16125
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodBoolean], null>, "many">>;
|
|
16109
16126
|
keyframes: z.ZodArray<z.ZodObject<{
|
|
16110
16127
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
16111
16128
|
styles: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -18539,6 +18556,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
18539
18556
|
};
|
|
18540
18557
|
name?: string | undefined;
|
|
18541
18558
|
description?: string | undefined;
|
|
18559
|
+
enabled?: [string, boolean][] | undefined;
|
|
18542
18560
|
}, {
|
|
18543
18561
|
keyframes: {
|
|
18544
18562
|
styles: Record<string, {
|
|
@@ -18837,6 +18855,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
18837
18855
|
};
|
|
18838
18856
|
name?: string | undefined;
|
|
18839
18857
|
description?: string | undefined;
|
|
18858
|
+
enabled?: [string, boolean][] | undefined;
|
|
18840
18859
|
}>, "many">;
|
|
18841
18860
|
isPinned: z.ZodOptional<z.ZodBoolean>;
|
|
18842
18861
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -19140,6 +19159,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
19140
19159
|
};
|
|
19141
19160
|
name?: string | undefined;
|
|
19142
19161
|
description?: string | undefined;
|
|
19162
|
+
enabled?: [string, boolean][] | undefined;
|
|
19143
19163
|
}[];
|
|
19144
19164
|
source?: "closest" | "nearest" | "root" | undefined;
|
|
19145
19165
|
axis?: "x" | "block" | "inline" | "y" | undefined;
|
|
@@ -19445,6 +19465,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
19445
19465
|
};
|
|
19446
19466
|
name?: string | undefined;
|
|
19447
19467
|
description?: string | undefined;
|
|
19468
|
+
enabled?: [string, boolean][] | undefined;
|
|
19448
19469
|
}[];
|
|
19449
19470
|
source?: "closest" | "nearest" | "root" | undefined;
|
|
19450
19471
|
axis?: "x" | "block" | "inline" | "y" | undefined;
|
|
@@ -19457,6 +19478,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
19457
19478
|
animations: z.ZodArray<z.ZodObject<{
|
|
19458
19479
|
name: z.ZodOptional<z.ZodString>;
|
|
19459
19480
|
description: z.ZodOptional<z.ZodString>;
|
|
19481
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodBoolean], null>, "many">>;
|
|
19460
19482
|
keyframes: z.ZodArray<z.ZodObject<{
|
|
19461
19483
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
19462
19484
|
styles: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -21890,6 +21912,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
21890
21912
|
};
|
|
21891
21913
|
name?: string | undefined;
|
|
21892
21914
|
description?: string | undefined;
|
|
21915
|
+
enabled?: [string, boolean][] | undefined;
|
|
21893
21916
|
}, {
|
|
21894
21917
|
keyframes: {
|
|
21895
21918
|
styles: Record<string, {
|
|
@@ -22188,6 +22211,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
22188
22211
|
};
|
|
22189
22212
|
name?: string | undefined;
|
|
22190
22213
|
description?: string | undefined;
|
|
22214
|
+
enabled?: [string, boolean][] | undefined;
|
|
22191
22215
|
}>, "many">;
|
|
22192
22216
|
insetStart: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
22193
22217
|
type: z.ZodLiteral<"unit">;
|
|
@@ -22553,6 +22577,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
22553
22577
|
};
|
|
22554
22578
|
name?: string | undefined;
|
|
22555
22579
|
description?: string | undefined;
|
|
22580
|
+
enabled?: [string, boolean][] | undefined;
|
|
22556
22581
|
}[];
|
|
22557
22582
|
subject?: string | undefined;
|
|
22558
22583
|
axis?: "x" | "block" | "inline" | "y" | undefined;
|
|
@@ -22880,6 +22905,7 @@ export declare const animationActionSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
22880
22905
|
};
|
|
22881
22906
|
name?: string | undefined;
|
|
22882
22907
|
description?: string | undefined;
|
|
22908
|
+
enabled?: [string, boolean][] | undefined;
|
|
22883
22909
|
}[];
|
|
22884
22910
|
subject?: string | undefined;
|
|
22885
22911
|
axis?: "x" | "block" | "inline" | "y" | undefined;
|