@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 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
  }