@hyperfixi/core 2.7.1 → 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.
package/dist/index.mjs CHANGED
@@ -20159,6 +20159,15 @@ let ResetCommand = (() => {
20159
20159
  })();
20160
20160
  const createResetCommand = createFactory(ResetCommand);
20161
20161
 
20162
+ function ensureDomGlobals() {
20163
+ if (typeof globalThis.Element === 'undefined') {
20164
+ globalThis.Element = class {
20165
+ };
20166
+ }
20167
+ return true;
20168
+ }
20169
+ ensureDomGlobals();
20170
+
20162
20171
  // src/morphlex.ts
20163
20172
  var SUPPORTS_MOVE_BEFORE = "moveBefore" in Element.prototype;
20164
20173
  var ELEMENT_NODE_TYPE = 1;
@@ -20710,7 +20719,7 @@ function longestIncreasingSubsequence(sequence) {
20710
20719
  //# debugId=3F4BCB911DEC843864756E2164756E21
20711
20720
 
20712
20721
  function toMorphlexOptions(options) {
20713
- return { preserveChanges: options?.preserveChanges ?? true };
20722
+ return { preserveChanges: (options?.preserveChanges ?? true) };
20714
20723
  }
20715
20724
  const morphAdapter = {
20716
20725
  morph(target, content, options) {
@@ -0,0 +1,2 @@
1
+ export declare const domGlobalsEnsured: boolean;
2
+ //# sourceMappingURL=dom-globals-shim.d.ts.map