@hyperfixi/core 2.7.0 → 2.7.2

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.
@@ -1,2 +1,2 @@
1
- let t=null;async function n(){if(!t)try{t=await import("./browser-modular-DegkWQ8d.js").then(function(t){return t.m})}catch{throw Error("@lokascript/framework is required for LSE support. Install it: npm install @lokascript/framework")}return t}function r(){if(t)return!0;try{return require.resolve("@lokascript/framework"),!0}catch{return!1}}async function a(t,r){return(await n()).parseExplicit(t,r)}async function o(t){return(await n()).isExplicitSyntax(t)}async function i(t){return(await n()).renderExplicit(t)}async function e(t){return(await n()).fromInterchangeNode(t)}async function c(t){return(await n()).toProtocolJSON(t)}async function u(t){return(await n()).fromProtocolJSON(t)}async function s(t){return(await n()).validateProtocolJSON(t)}async function f(t){return(await n()).toEnvelopeJSON(t)}async function l(t){return(await n()).fromEnvelopeJSON(t)}async function w(t){return(await n()).isEnvelope(t)}async function p(t){return(await n()).semanticNodeToRuntimeAST(t)}export{l as fromEnvelopeJSON,e as fromInterchangeNode,u as fromProtocolJSON,w as isEnvelope,o as isExplicitSyntax,r as isLSEAvailable,a as parseExplicit,i as renderExplicit,p as semanticNodeToRuntimeAST,f as toEnvelopeJSON,c as toProtocolJSON,s as validateProtocolJSON};
2
- //# sourceMappingURL=index-i_j9Z-1e.js.map
1
+ let t=null;async function n(){if(!t)try{t=await import("./browser-modular-DW4nC6lH.js").then(function(t){return t.m})}catch{throw Error("@lokascript/framework is required for LSE support. Install it: npm install @lokascript/framework")}return t}function r(){if(t)return!0;try{return require.resolve("@lokascript/framework"),!0}catch{return!1}}async function a(t,r){return(await n()).parseExplicit(t,r)}async function o(t){return(await n()).isExplicitSyntax(t)}async function i(t){return(await n()).renderExplicit(t)}async function e(t){return(await n()).fromInterchangeNode(t)}async function c(t){return(await n()).toProtocolJSON(t)}async function u(t){return(await n()).fromProtocolJSON(t)}async function s(t){return(await n()).validateProtocolJSON(t)}async function f(t){return(await n()).toEnvelopeJSON(t)}async function l(t){return(await n()).fromEnvelopeJSON(t)}async function w(t){return(await n()).isEnvelope(t)}async function p(t){return(await n()).semanticNodeToRuntimeAST(t)}export{l as fromEnvelopeJSON,e as fromInterchangeNode,u as fromProtocolJSON,w as isEnvelope,o as isExplicitSyntax,r as isLSEAvailable,a as parseExplicit,i as renderExplicit,p as semanticNodeToRuntimeAST,f as toEnvelopeJSON,c as toProtocolJSON,s as validateProtocolJSON};
2
+ //# sourceMappingURL=index-D2WUNSCR.js.map
@@ -14427,6 +14427,15 @@ let ResetCommand = (() => {
14427
14427
  })();
14428
14428
  const createResetCommand = createFactory(ResetCommand);
14429
14429
 
14430
+ function ensureDomGlobals() {
14431
+ if (typeof globalThis.Element === 'undefined') {
14432
+ globalThis.Element = class {
14433
+ };
14434
+ }
14435
+ return true;
14436
+ }
14437
+ ensureDomGlobals();
14438
+
14430
14439
  // src/morphlex.ts
14431
14440
  var SUPPORTS_MOVE_BEFORE = "moveBefore" in Element.prototype;
14432
14441
  var ELEMENT_NODE_TYPE = 1;
@@ -14978,7 +14987,7 @@ function longestIncreasingSubsequence(sequence) {
14978
14987
  //# debugId=3F4BCB911DEC843864756E2164756E21
14979
14988
 
14980
14989
  function toMorphlexOptions(options) {
14981
- return { preserveChanges: options?.preserveChanges ?? true };
14990
+ return { preserveChanges: (options?.preserveChanges ?? true) };
14982
14991
  }
14983
14992
  const morphAdapter = {
14984
14993
  morph(target, content, options) {
@@ -14425,6 +14425,15 @@ let ResetCommand = (() => {
14425
14425
  })();
14426
14426
  const createResetCommand = createFactory(ResetCommand);
14427
14427
 
14428
+ function ensureDomGlobals() {
14429
+ if (typeof globalThis.Element === 'undefined') {
14430
+ globalThis.Element = class {
14431
+ };
14432
+ }
14433
+ return true;
14434
+ }
14435
+ ensureDomGlobals();
14436
+
14428
14437
  // src/morphlex.ts
14429
14438
  var SUPPORTS_MOVE_BEFORE = "moveBefore" in Element.prototype;
14430
14439
  var ELEMENT_NODE_TYPE = 1;
@@ -14976,7 +14985,7 @@ function longestIncreasingSubsequence(sequence) {
14976
14985
  //# debugId=3F4BCB911DEC843864756E2164756E21
14977
14986
 
14978
14987
  function toMorphlexOptions(options) {
14979
- return { preserveChanges: options?.preserveChanges ?? true };
14988
+ return { preserveChanges: (options?.preserveChanges ?? true) };
14980
14989
  }
14981
14990
  const morphAdapter = {
14982
14991
  morph(target, content, options) {