@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
- export{O as ObjectPool,P as Parser,R as Runtime,d as debug,h as default,a as defaultAttributeProcessor,b as detectFeatures,e as evalHyperScript,c as evalHyperScriptAsync,f as evalHyperScriptSmart,g as getLoadedFeatures,i as hyperscript,j as isFeatureLoaded,l as loadRequiredFeatures,p as preloadDocumentFeatures,k as preloadFeatures,s as styleBatcher,t as tokenize}from"./chunks/browser-modular-DegkWQ8d.js";import"./chunks/feature-sockets-CrYvjZ4j.js";
1
+ export{O as ObjectPool,P as Parser,R as Runtime,d as debug,h as default,a as defaultAttributeProcessor,b as detectFeatures,e as evalHyperScript,c as evalHyperScriptAsync,f as evalHyperScriptSmart,g as getLoadedFeatures,i as hyperscript,j as isFeatureLoaded,l as loadRequiredFeatures,p as preloadDocumentFeatures,k as preloadFeatures,s as styleBatcher,t as tokenize}from"./chunks/browser-modular-DW4nC6lH.js";import"./chunks/feature-sockets-CrYvjZ4j.js";
2
2
  //# sourceMappingURL=hyperfixi.mjs.map
package/dist/index.js CHANGED
@@ -20161,6 +20161,15 @@ let ResetCommand = (() => {
20161
20161
  })();
20162
20162
  const createResetCommand = createFactory(ResetCommand);
20163
20163
 
20164
+ function ensureDomGlobals() {
20165
+ if (typeof globalThis.Element === 'undefined') {
20166
+ globalThis.Element = class {
20167
+ };
20168
+ }
20169
+ return true;
20170
+ }
20171
+ ensureDomGlobals();
20172
+
20164
20173
  // src/morphlex.ts
20165
20174
  var SUPPORTS_MOVE_BEFORE = "moveBefore" in Element.prototype;
20166
20175
  var ELEMENT_NODE_TYPE = 1;
@@ -20712,7 +20721,7 @@ function longestIncreasingSubsequence(sequence) {
20712
20721
  //# debugId=3F4BCB911DEC843864756E2164756E21
20713
20722
 
20714
20723
  function toMorphlexOptions(options) {
20715
- return { preserveChanges: options?.preserveChanges ?? true };
20724
+ return { preserveChanges: (options?.preserveChanges ?? true) };
20716
20725
  }
20717
20726
  const morphAdapter = {
20718
20727
  morph(target, content, options) {