@webstudio-is/sdk 0.208.0 → 0.210.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 +11 -2
- package/lib/types/core-metas.d.ts +115 -115
- package/lib/types/schema/animation-schema.d.ts +43644 -13660
- package/lib/types/schema/assets.d.ts +12 -84
- package/lib/types/schema/breakpoints.d.ts +8 -8
- package/lib/types/schema/component-meta.d.ts +9844 -3204
- package/lib/types/schema/embed-template.d.ts +3885 -881
- package/lib/types/schema/instances.d.ts +9 -0
- package/lib/types/schema/pages.d.ts +125 -125
- package/lib/types/schema/prop-meta.d.ts +46 -46
- package/lib/types/schema/props.d.ts +28880 -8948
- package/lib/types/schema/resources.d.ts +4 -4
- package/lib/types/schema/styles.d.ts +4903 -1239
- package/lib/types/schema/webstudio.d.ts +18062 -5510
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -187,7 +187,13 @@ var MatcherOperation = z3.object({
|
|
|
187
187
|
var Matcher = z3.object({
|
|
188
188
|
relation: MatcherRelation,
|
|
189
189
|
component: MatcherOperation.optional(),
|
|
190
|
-
tag: MatcherOperation.optional()
|
|
190
|
+
tag: MatcherOperation.optional(),
|
|
191
|
+
text: z3.literal(false).describe(
|
|
192
|
+
`
|
|
193
|
+
To disallow text editing on a container instance,
|
|
194
|
+
use: { relation: 'child', text: false }
|
|
195
|
+
`
|
|
196
|
+
).optional()
|
|
191
197
|
});
|
|
192
198
|
var Matchers = z3.union([Matcher, z3.array(Matcher)]);
|
|
193
199
|
|
|
@@ -921,6 +927,7 @@ var componentCategories = [
|
|
|
921
927
|
"general",
|
|
922
928
|
"typography",
|
|
923
929
|
"media",
|
|
930
|
+
"animations",
|
|
924
931
|
"data",
|
|
925
932
|
"forms",
|
|
926
933
|
"localization",
|
|
@@ -965,7 +972,6 @@ var WsComponentMeta = z16.object({
|
|
|
965
972
|
icon: z16.string(),
|
|
966
973
|
presetStyle: z16.optional(z16.record(z16.string(), z16.array(PresetStyleDecl))),
|
|
967
974
|
states: z16.optional(z16.array(ComponentState)),
|
|
968
|
-
template: z16.optional(WsEmbedTemplate),
|
|
969
975
|
order: z16.number().optional()
|
|
970
976
|
});
|
|
971
977
|
|
|
@@ -1328,6 +1334,9 @@ var lintExpression = ({
|
|
|
1328
1334
|
return diagnostics;
|
|
1329
1335
|
};
|
|
1330
1336
|
var isLiteralNode = (node) => {
|
|
1337
|
+
if (node.type === "Identifier" && node.name === "undefined") {
|
|
1338
|
+
return true;
|
|
1339
|
+
}
|
|
1331
1340
|
if (node.type === "Literal") {
|
|
1332
1341
|
return true;
|
|
1333
1342
|
}
|