@webstudio-is/sdk 0.208.0 → 0.209.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 +10 -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 +9842 -3202
- 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 +6 -6
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
|
|
|
@@ -965,7 +971,6 @@ var WsComponentMeta = z16.object({
|
|
|
965
971
|
icon: z16.string(),
|
|
966
972
|
presetStyle: z16.optional(z16.record(z16.string(), z16.array(PresetStyleDecl))),
|
|
967
973
|
states: z16.optional(z16.array(ComponentState)),
|
|
968
|
-
template: z16.optional(WsEmbedTemplate),
|
|
969
974
|
order: z16.number().optional()
|
|
970
975
|
});
|
|
971
976
|
|
|
@@ -1328,6 +1333,9 @@ var lintExpression = ({
|
|
|
1328
1333
|
return diagnostics;
|
|
1329
1334
|
};
|
|
1330
1335
|
var isLiteralNode = (node) => {
|
|
1336
|
+
if (node.type === "Identifier" && node.name === "undefined") {
|
|
1337
|
+
return true;
|
|
1338
|
+
}
|
|
1331
1339
|
if (node.type === "Literal") {
|
|
1332
1340
|
return true;
|
|
1333
1341
|
}
|