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