@jbpark/live-editor 2.0.2 → 2.0.3

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.
Files changed (32) hide show
  1. package/dist/{ast-BKQmEBj9.js → ast-BhbOxomw.js} +2 -2
  2. package/dist/{ast-BKQmEBj9.js.map → ast-BhbOxomw.js.map} +1 -1
  3. package/dist/{boundary-b-U70XU_.js → boundary-DOBK2HnX.js} +2 -2
  4. package/dist/{boundary-b-U70XU_.js.map → boundary-DOBK2HnX.js.map} +1 -1
  5. package/dist/{context-Yb81ZxnN.js → context-DOMX_RsU.js} +3 -3
  6. package/dist/{context-Yb81ZxnN.js.map → context-DOMX_RsU.js.map} +1 -1
  7. package/dist/{core-mdFWxqB2.js → core-D-ZvVhdn.js} +2 -2
  8. package/dist/{core-mdFWxqB2.js.map → core-D-ZvVhdn.js.map} +1 -1
  9. package/dist/dnd/index.js +1 -1
  10. package/dist/{dnd-Cyuif73L.js → dnd-E8LbmRfE.js} +26 -12
  11. package/dist/dnd-E8LbmRfE.js.map +1 -0
  12. package/dist/{document-DEx4WyCn.js → document-Ddw-tfnt.js} +37 -155
  13. package/dist/{document-DEx4WyCn.js.map → document-Ddw-tfnt.js.map} +1 -1
  14. package/dist/editor/index.js +2 -2
  15. package/dist/{editor-jzeeLkwi.js → editor-ka05eWyz.js} +3 -3
  16. package/dist/{editor-jzeeLkwi.js.map → editor-ka05eWyz.js.map} +1 -1
  17. package/dist/error/index.js +2 -2
  18. package/dist/{error-C47PVZgY.js → error-fzPGTaFe.js} +2 -2
  19. package/dist/{error-C47PVZgY.js.map → error-fzPGTaFe.js.map} +1 -1
  20. package/dist/index.js +5 -5
  21. package/dist/preview/index.js +1 -1
  22. package/dist/{preview-8OZDsfGT.js → preview-EsfzEjis.js} +4 -4
  23. package/dist/{preview-8OZDsfGT.js.map → preview-EsfzEjis.js.map} +1 -1
  24. package/dist/provider/index.js +1 -1
  25. package/dist/{use-dynamic-tailwind-_3tC-S5j.js → use-dynamic-tailwind-CRMGuKnH.js} +2 -2
  26. package/dist/{use-dynamic-tailwind-_3tC-S5j.js.map → use-dynamic-tailwind-CRMGuKnH.js.map} +1 -1
  27. package/dist/utils/ast/index.js +2 -2
  28. package/dist/utils/index.js +2 -2
  29. package/dist/{utils-CXq1KaM3.js → utils-B6zpA7mT.js} +2 -2
  30. package/dist/{utils-CXq1KaM3.js.map → utils-B6zpA7mT.js.map} +1 -1
  31. package/package.json +1 -1
  32. package/dist/dnd-Cyuif73L.js.map +0 -1
@@ -18829,7 +18829,6 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
18829
18829
  return validate(arrayOfType(...typeNames));
18830
18830
  }
18831
18831
  function assertEach(callback) {
18832
- const childValidator = process.env.BABEL_TYPES_8_BREAKING ? _validate.validateChild : () => {};
18833
18832
  function validator(node, key, val) {
18834
18833
  if (!Array.isArray(val)) return;
18835
18834
  let i = 0;
@@ -18839,7 +18838,6 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
18839
18838
  for (; i < val.length; i++) {
18840
18839
  const v = val[i];
18841
18840
  callback(node, subKey, v);
18842
- childValidator(node, subKey, v);
18843
18841
  }
18844
18842
  }
18845
18843
  validator.each = callback;
@@ -19028,9 +19026,9 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
19028
19026
  var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19029
19027
  Object.defineProperty(exports, "__esModule", { value: true });
19030
19028
  exports.patternLikeCommon = exports.importAttributes = exports.functionTypeAnnotationCommon = exports.functionDeclarationCommon = exports.functionCommon = exports.classMethodOrPropertyUnionShapeCommon = exports.classMethodOrPropertyCommon = exports.classMethodOrDeclareMethodCommon = void 0;
19031
- var _is = require_is();
19032
- var _isValidIdentifier = require_isValidIdentifier();
19033
- var _helperValidatorIdentifier = require_lib$6();
19029
+ require_is();
19030
+ require_isValidIdentifier();
19031
+ require_lib$6();
19034
19032
  var _helperStringParser = require_lib$5();
19035
19033
  var _index = require_constants();
19036
19034
  var _utils = require_utils();
@@ -19051,21 +19049,15 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19051
19049
  defineType("ArrayExpression", {
19052
19050
  fields: { elements: {
19053
19051
  validate: (0, _utils.arrayOf)((0, _utils.assertNodeOrValueType)("null", "Expression", "SpreadElement")),
19054
- default: !process.env.BABEL_TYPES_8_BREAKING ? [] : void 0
19052
+ default: []
19055
19053
  } },
19056
19054
  visitor: ["elements"],
19057
19055
  aliases: ["Expression"]
19058
19056
  });
19059
19057
  defineType("AssignmentExpression", {
19060
19058
  fields: {
19061
- operator: { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("string") : Object.assign(function() {
19062
- const identifier = (0, _utils.assertOneOf)(..._index.ASSIGNMENT_OPERATORS);
19063
- const pattern = (0, _utils.assertOneOf)("=");
19064
- return function(node, key, val) {
19065
- ((0, _is.default)("Pattern", node.left) ? pattern : identifier)(node, key, val);
19066
- };
19067
- }(), { oneOf: _index.ASSIGNMENT_OPERATORS }) },
19068
- left: { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal", "OptionalMemberExpression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") },
19059
+ operator: { validate: (0, _utils.assertValueType)("string") },
19060
+ left: { validate: (0, _utils.assertNodeType)("LVal", "OptionalMemberExpression") },
19069
19061
  right: { validate: (0, _utils.assertNodeType)("Expression") }
19070
19062
  },
19071
19063
  builder: [
@@ -19153,7 +19145,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19153
19145
  validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
19154
19146
  optional: true
19155
19147
  }
19156
- }, process.env.BABEL_TYPES_8_BREAKING ? {} : {
19148
+ }, {
19157
19149
  optional: {
19158
19150
  validate: (0, _utils.assertValueType)("boolean"),
19159
19151
  optional: true
@@ -19232,7 +19224,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19232
19224
  fields: {
19233
19225
  program: { validate: (0, _utils.assertNodeType)("Program") },
19234
19226
  comments: {
19235
- validate: !process.env.BABEL_TYPES_8_BREAKING ? Object.assign(() => {}, { each: { oneOfNodeTypes: ["CommentBlock", "CommentLine"] } }) : (0, _utils.assertEach)((0, _utils.assertNodeType)("CommentBlock", "CommentLine")),
19227
+ validate: Object.assign(() => {}, { each: { oneOfNodeTypes: ["CommentBlock", "CommentLine"] } }),
19236
19228
  optional: true
19237
19229
  },
19238
19230
  tokens: {
@@ -19256,7 +19248,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19256
19248
  "ForXStatement"
19257
19249
  ],
19258
19250
  fields: {
19259
- left: { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("VariableDeclaration", "LVal") : (0, _utils.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") },
19251
+ left: { validate: (0, _utils.assertNodeType)("VariableDeclaration", "LVal") },
19260
19252
  right: { validate: (0, _utils.assertNodeType)("Expression") },
19261
19253
  body: { validate: (0, _utils.assertNodeType)("Statement") }
19262
19254
  }
@@ -19351,12 +19343,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19351
19343
  "Pureish",
19352
19344
  "Declaration"
19353
19345
  ],
19354
- validate: !process.env.BABEL_TYPES_8_BREAKING ? void 0 : function() {
19355
- const identifier = (0, _utils.assertNodeType)("Identifier");
19356
- return function(parent, key, node) {
19357
- if (!(0, _is.default)("ExportDefaultDeclaration", parent)) identifier(node, "id", node.id);
19358
- };
19359
- }()
19346
+ validate: void 0
19360
19347
  });
19361
19348
  defineType("FunctionExpression", {
19362
19349
  inherits: "FunctionDeclaration",
@@ -19405,29 +19392,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19405
19392
  "LVal",
19406
19393
  "TSEntityName"
19407
19394
  ],
19408
- fields: Object.assign({}, patternLikeCommon(), { name: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function(node, key, val) {
19409
- if (!(0, _isValidIdentifier.default)(val, false)) throw new TypeError(`"${val}" is not a valid identifier name`);
19410
- }, { type: "string" })) : (0, _utils.assertValueType)("string") } }),
19411
- validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key, node) {
19412
- const match = /\.(\w+)$/.exec(key.toString());
19413
- if (!match) return;
19414
- const [, parentKey] = match;
19415
- const nonComp = { computed: false };
19416
- if (parentKey === "property") {
19417
- if ((0, _is.default)("MemberExpression", parent, nonComp)) return;
19418
- if ((0, _is.default)("OptionalMemberExpression", parent, nonComp)) return;
19419
- } else if (parentKey === "key") {
19420
- if ((0, _is.default)("Property", parent, nonComp)) return;
19421
- if ((0, _is.default)("Method", parent, nonComp)) return;
19422
- } else if (parentKey === "exported") {
19423
- if ((0, _is.default)("ExportSpecifier", parent)) return;
19424
- } else if (parentKey === "imported") {
19425
- if ((0, _is.default)("ImportSpecifier", parent, { imported: node })) return;
19426
- } else if (parentKey === "meta") {
19427
- if ((0, _is.default)("MetaProperty", parent, { meta: node })) return;
19428
- }
19429
- if (((0, _helperValidatorIdentifier.isKeyword)(node.name) || (0, _helperValidatorIdentifier.isReservedWord)(node.name, false)) && node.name !== "this") throw new TypeError(`"${node.name}" is not a valid identifier`);
19430
- } : void 0
19395
+ fields: Object.assign({}, patternLikeCommon(), { name: { validate: (0, _utils.assertValueType)("string") } }),
19396
+ validate: void 0
19431
19397
  });
19432
19398
  defineType("IfStatement", {
19433
19399
  visitor: [
@@ -19503,10 +19469,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19503
19469
  fields: {
19504
19470
  pattern: { validate: (0, _utils.assertValueType)("string") },
19505
19471
  flags: {
19506
- validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function(node, key, val) {
19507
- const invalid = /[^dgimsuvy]/.exec(val);
19508
- if (invalid) throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`);
19509
- }, { type: "string" })) : (0, _utils.assertValueType)("string"),
19472
+ validate: (0, _utils.assertValueType)("string"),
19510
19473
  default: ""
19511
19474
  }
19512
19475
  }
@@ -19530,7 +19493,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19530
19493
  "object",
19531
19494
  "property",
19532
19495
  "computed",
19533
- ...!process.env.BABEL_TYPES_8_BREAKING ? ["optional"] : []
19496
+ ...["optional"]
19534
19497
  ],
19535
19498
  visitor: ["object", "property"],
19536
19499
  aliases: [
@@ -19566,10 +19529,10 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19566
19529
  return validator;
19567
19530
  }() },
19568
19531
  computed: { default: false }
19569
- }, !process.env.BABEL_TYPES_8_BREAKING ? { optional: {
19532
+ }, { optional: {
19570
19533
  validate: (0, _utils.assertValueType)("boolean"),
19571
19534
  optional: true
19572
- } } : {})
19535
+ } })
19573
19536
  });
19574
19537
  defineType("NewExpression", {
19575
19538
  inherits: "CallExpression",
@@ -19637,7 +19600,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19637
19600
  ]
19638
19601
  }, classMethodOrPropertyUnionShapeCommon(), {
19639
19602
  fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
19640
- kind: Object.assign({ validate: (0, _utils.assertOneOf)("method", "get", "set") }, !process.env.BABEL_TYPES_8_BREAKING ? { default: "method" } : {}),
19603
+ kind: Object.assign({ validate: (0, _utils.assertOneOf)("method", "get", "set") }, { default: "method" }),
19641
19604
  computed: { default: false },
19642
19605
  key: { validate: function() {
19643
19606
  const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral");
@@ -19676,7 +19639,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19676
19639
  "value",
19677
19640
  "computed",
19678
19641
  "shorthand",
19679
- ...!process.env.BABEL_TYPES_8_BREAKING ? ["decorators"] : []
19642
+ ...["decorators"]
19680
19643
  ],
19681
19644
  unionShape: {
19682
19645
  discriminator: "computed",
@@ -19709,11 +19672,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19709
19672
  }() },
19710
19673
  value: { validate: (0, _utils.assertNodeType)("Expression", "PatternLike") },
19711
19674
  shorthand: {
19712
- validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function(node, key, shorthand) {
19713
- if (!shorthand) return;
19714
- if (node.computed) throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");
19715
- if (!(0, _is.default)("Identifier", node.key)) throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier");
19716
- }, { type: "boolean" })) : (0, _utils.assertValueType)("boolean"),
19675
+ validate: (0, _utils.assertValueType)("boolean"),
19717
19676
  default: false
19718
19677
  },
19719
19678
  decorators: {
@@ -19731,13 +19690,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19731
19690
  "Property",
19732
19691
  "ObjectMember"
19733
19692
  ],
19734
- validate: !process.env.BABEL_TYPES_8_BREAKING ? void 0 : function() {
19735
- const pattern = (0, _utils.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssertion");
19736
- const expression = (0, _utils.assertNodeType)("Expression");
19737
- return function(parent, key, node) {
19738
- ((0, _is.default)("ObjectPattern", parent) ? pattern : expression)(node, "value", node.value);
19739
- };
19740
- }()
19693
+ validate: void 0
19741
19694
  });
19742
19695
  defineType("RestElement", {
19743
19696
  visitor: ["argument", "typeAnnotation"],
@@ -19748,13 +19701,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19748
19701
  "LVal"
19749
19702
  ],
19750
19703
  deprecatedAlias: "RestProperty",
19751
- fields: Object.assign({}, patternLikeCommon(), { argument: { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression", "RestElement", "AssignmentPattern") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") } }),
19752
- validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key) {
19753
- const match = /(\w+)\[(\d+)\]/.exec(key.toString());
19754
- if (!match) throw new Error("Internal Babel error: malformed key.");
19755
- const [, listKey, index] = match;
19756
- if (parent[listKey].length > +index + 1) throw new TypeError(`RestElement must be last element of ${listKey}`);
19757
- } : void 0
19704
+ fields: Object.assign({}, patternLikeCommon(), { argument: { validate: (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression", "RestElement", "AssignmentPattern") } }),
19705
+ validate: void 0
19758
19706
  });
19759
19707
  defineType("ReturnStatement", {
19760
19708
  visitor: ["argument"],
@@ -19818,9 +19766,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19818
19766
  ],
19819
19767
  aliases: ["Statement"],
19820
19768
  fields: {
19821
- block: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("BlockStatement"), Object.assign(function(node) {
19822
- if (!node.handler && !node.finalizer) throw new TypeError("TryStatement expects either a handler or finalizer, or both");
19823
- }, { oneOfNodeTypes: ["BlockStatement"] })) : (0, _utils.assertNodeType)("BlockStatement") },
19769
+ block: { validate: (0, _utils.assertNodeType)("BlockStatement") },
19824
19770
  handler: {
19825
19771
  optional: true,
19826
19772
  validate: (0, _utils.assertNodeType)("CatchClause")
@@ -19853,7 +19799,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19853
19799
  ],
19854
19800
  fields: {
19855
19801
  prefix: { default: false },
19856
- argument: { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Expression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression") },
19802
+ argument: { validate: (0, _utils.assertNodeType)("Expression") },
19857
19803
  operator: { validate: (0, _utils.assertOneOf)(..._index.UPDATE_OPERATORS) }
19858
19804
  },
19859
19805
  visitor: ["argument"],
@@ -19871,27 +19817,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
19871
19817
  kind: { validate: (0, _utils.assertOneOf)("var", "let", "const", "using", "await using") },
19872
19818
  declarations: (0, _utils.validateArrayOfType)("VariableDeclarator")
19873
19819
  },
19874
- validate: process.env.BABEL_TYPES_8_BREAKING ? (() => {
19875
- const withoutInit = (0, _utils.assertNodeType)("Identifier", "Placeholder");
19876
- const constOrLetOrVar = (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "Placeholder");
19877
- const usingOrAwaitUsing = (0, _utils.assertNodeType)("Identifier", "VoidPattern", "Placeholder");
19878
- return function(parent, key, node) {
19879
- const { kind, declarations } = node;
19880
- const parentIsForX = (0, _is.default)("ForXStatement", parent, { left: node });
19881
- if (parentIsForX) {
19882
- if (declarations.length !== 1) throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${parent.type}`);
19883
- }
19884
- for (const decl of declarations) if (kind === "const" || kind === "let" || kind === "var") {
19885
- if (!parentIsForX && !decl.init) withoutInit(decl, "id", decl.id);
19886
- else constOrLetOrVar(decl, "id", decl.id);
19887
- } else usingOrAwaitUsing(decl, "id", decl.id);
19888
- };
19889
- })() : void 0
19820
+ validate: void 0
19890
19821
  });
19891
19822
  defineType("VariableDeclarator", {
19892
19823
  visitor: ["id", "init"],
19893
19824
  fields: {
19894
- id: { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal", "VoidPattern") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "VoidPattern") },
19825
+ id: { validate: (0, _utils.assertNodeType)("LVal", "VoidPattern") },
19895
19826
  definite: {
19896
19827
  optional: true,
19897
19828
  validate: (0, _utils.assertValueType)("boolean")
@@ -20092,12 +20023,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
20092
20023
  optional: true
20093
20024
  }
20094
20025
  },
20095
- validate: !process.env.BABEL_TYPES_8_BREAKING ? void 0 : function() {
20096
- const identifier = (0, _utils.assertNodeType)("Identifier");
20097
- return function(parent, key, node) {
20098
- if (!(0, _is.default)("ExportDefaultDeclaration", parent)) identifier(node, "id", node.id);
20099
- };
20100
- }()
20026
+ validate: void 0
20101
20027
  });
20102
20028
  const importAttributes = exports.importAttributes = { attributes: {
20103
20029
  optional: true,
@@ -20161,24 +20087,14 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
20161
20087
  ],
20162
20088
  fields: Object.assign({ declaration: {
20163
20089
  optional: true,
20164
- validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("Declaration"), Object.assign(function(node, key, val) {
20165
- if (val && node.specifiers.length) throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");
20166
- if (val && node.source) throw new TypeError("Cannot export a declaration from a source");
20167
- }, { oneOfNodeTypes: ["Declaration"] })) : (0, _utils.assertNodeType)("Declaration")
20090
+ validate: (0, _utils.assertNodeType)("Declaration")
20168
20091
  } }, importAttributes, {
20169
20092
  specifiers: {
20170
20093
  default: [],
20171
20094
  validate: (0, _utils.arrayOf)(function() {
20172
20095
  const sourced = (0, _utils.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier");
20173
- const sourceless = (0, _utils.assertNodeType)("ExportSpecifier");
20174
- if (!process.env.BABEL_TYPES_8_BREAKING) return sourced;
20175
- return Object.assign(function(node, key, val) {
20176
- (node.source ? sourced : sourceless)(node, key, val);
20177
- }, { oneOfNodeTypes: [
20178
- "ExportSpecifier",
20179
- "ExportDefaultSpecifier",
20180
- "ExportNamespaceSpecifier"
20181
- ] });
20096
+ (0, _utils.assertNodeType)("ExportSpecifier");
20097
+ return sourced;
20182
20098
  }())
20183
20099
  },
20184
20100
  source: {
@@ -20222,23 +20138,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
20222
20138
  ],
20223
20139
  fields: {
20224
20140
  left: { validate: function() {
20225
- if (!process.env.BABEL_TYPES_8_BREAKING) return (0, _utils.assertNodeType)("VariableDeclaration", "LVal");
20226
- const declaration = (0, _utils.assertNodeType)("VariableDeclaration");
20227
- const lval = (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression");
20228
- return Object.assign(function(node, key, val) {
20229
- if ((0, _is.default)("VariableDeclaration", val)) declaration(node, key, val);
20230
- else lval(node, key, val);
20231
- }, { oneOfNodeTypes: [
20232
- "VariableDeclaration",
20233
- "Identifier",
20234
- "MemberExpression",
20235
- "ArrayPattern",
20236
- "ObjectPattern",
20237
- "TSAsExpression",
20238
- "TSSatisfiesExpression",
20239
- "TSTypeAssertion",
20240
- "TSNonNullExpression"
20241
- ] });
20141
+ return (0, _utils.assertNodeType)("VariableDeclaration", "LVal");
20242
20142
  }() },
20243
20143
  right: { validate: (0, _utils.assertNodeType)("Expression") },
20244
20144
  body: { validate: (0, _utils.assertNodeType)("Statement") },
@@ -20321,19 +20221,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
20321
20221
  visitor: ["meta", "property"],
20322
20222
  aliases: ["Expression"],
20323
20223
  fields: {
20324
- meta: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertNodeType)("Identifier"), Object.assign(function(node, key, val) {
20325
- let property;
20326
- switch (val.name) {
20327
- case "function":
20328
- property = "sent";
20329
- break;
20330
- case "new":
20331
- property = "target";
20332
- break;
20333
- case "import": property = "meta";
20334
- }
20335
- if (!(0, _is.default)("Identifier", node.property, { name: property })) throw new TypeError("Unrecognised MetaProperty");
20336
- }, { oneOfNodeTypes: ["Identifier"] })) : (0, _utils.assertNodeType)("Identifier") },
20224
+ meta: { validate: (0, _utils.assertNodeType)("Identifier") },
20337
20225
  property: { validate: (0, _utils.assertNodeType)("Identifier") }
20338
20226
  }
20339
20227
  });
@@ -20492,9 +20380,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
20492
20380
  aliases: ["Expression", "Terminatorless"],
20493
20381
  fields: {
20494
20382
  delegate: {
20495
- validate: process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function(node, key, val) {
20496
- if (val && !node.argument) throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument");
20497
- }, { type: "boolean" })) : (0, _utils.assertValueType)("boolean"),
20383
+ validate: (0, _utils.assertValueType)("boolean"),
20498
20384
  default: false
20499
20385
  },
20500
20386
  argument: {
@@ -20544,7 +20430,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
20544
20430
  }, { oneOfNodeTypes: ["Expression", "Identifier"] });
20545
20431
  }() },
20546
20432
  computed: { default: false },
20547
- optional: { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)()) }
20433
+ optional: { validate: (0, _utils.assertValueType)("boolean") }
20548
20434
  }
20549
20435
  });
20550
20436
  defineType("OptionalCallExpression", {
@@ -20563,7 +20449,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
20563
20449
  fields: Object.assign({
20564
20450
  callee: { validate: (0, _utils.assertNodeType)("Expression") },
20565
20451
  arguments: (0, _utils.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
20566
- optional: { validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)()) },
20452
+ optional: { validate: (0, _utils.assertValueType)("boolean") },
20567
20453
  typeArguments: {
20568
20454
  validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
20569
20455
  optional: true
@@ -21531,12 +21417,9 @@ var require_experimental = /* @__PURE__ */ __commonJSMin((() => {
21531
21417
  (0, _utils.default)("BindExpression", {
21532
21418
  visitor: ["object", "callee"],
21533
21419
  aliases: ["Expression"],
21534
- fields: !process.env.BABEL_TYPES_8_BREAKING ? {
21420
+ fields: {
21535
21421
  object: { validate: Object.assign(() => {}, { oneOfNodeTypes: ["Expression"] }) },
21536
21422
  callee: { validate: Object.assign(() => {}, { oneOfNodeTypes: ["Expression"] }) }
21537
- } : {
21538
- object: { validate: (0, _utils.assertNodeType)("Expression") },
21539
- callee: { validate: (0, _utils.assertNodeType)("Expression") }
21540
21423
  }
21541
21424
  });
21542
21425
  (0, _utils.default)("Decorator", {
@@ -28536,7 +28419,6 @@ var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
28536
28419
  buildChildren: _buildChildren.default
28537
28420
  };
28538
28421
  exports.toSequenceExpression = _toSequenceExpression.default;
28539
- if (process.env.BABEL_TYPES_8_BREAKING) console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!");
28540
28422
  }));
28541
28423
  //#endregion
28542
28424
  //#region node_modules/.pnpm/@babel+traverse@7.29.8/node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js
@@ -39979,4 +39861,4 @@ const createSectionPreviewCache = () => {
39979
39861
  //#endregion
39980
39862
  export { __toESM as C, TS_PATTERNS as S, CONFIG as _, generateSectionPreview as a, DRAGGABLE_ITEMS as b, parseDocument as c, createBoundedCache as d, nanoid as f, BINDING_PROP as g, require_lib$7 as h, generateDocumentCode as i, replaceDocumentSections as l, require_lib$4 as m, createSectionPreviewCache as n, generateSectionPreviews as o, require_lib$3 as p, fillSectionIds as r, getSections as s, clearDocumentParseCache as t, traverse as u, DATA_ATTR as v, REGEX as x, DEFAULT_TEMPLATE as y };
39981
39863
 
39982
- //# sourceMappingURL=document-DEx4WyCn.js.map
39864
+ //# sourceMappingURL=document-Ddw-tfnt.js.map