@absolutejs/absolute 0.20.0-beta.57 → 0.20.0-beta.59

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,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-CCRvv4/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-SZCyBG/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-CCRvv4/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-SZCyBG/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-CCRvv4/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-SZCyBG/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/build.js CHANGED
@@ -980,9 +980,10 @@ var indexContentCache, resolveDevClientDir = () => {
980
980
  `,
981
981
  `// Attempt hydration with error handling`,
982
982
  `const shouldClientRender = window.__ABSOLUTE_PAGE_RENDER_MODE__ === 'client';`,
983
- `// Use document (not document.body) when the page renders <html><head><body>`,
984
- `// to avoid "In HTML, <html> cannot be a child of <body>" hydration error`,
985
- `const container = typeof document !== 'undefined' ? (shouldClientRender ? document.getElementById('root') : document) : null;`,
983
+ `// AbsoluteJS routes are document components. Mobile data-envelope renders`,
984
+ `// must therefore use document too: mounting <html><head><body> inside #root`,
985
+ `// makes React's document singletons corrupt the persistent native shell.`,
986
+ `const container = typeof document !== 'undefined' ? document : null;`,
986
987
  `if (!container) {`,
987
988
  ` throw new Error('React root container not found: document is null');`,
988
989
  `}
@@ -30463,5 +30464,5 @@ export {
30463
30464
  devBuild
30464
30465
  };
30465
30466
 
30466
- //# debugId=CFF7FB4C22060B5364756E2164756E21
30467
+ //# debugId=6E3A4F2DB493AC6964756E2164756E21
30467
30468
  //# sourceMappingURL=build.js.map