@absolutejs/absolute 0.19.0-beta.694 → 0.19.0-beta.696

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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist/angular/browser.js +48 -40
  3. package/dist/angular/browser.js.map +4 -4
  4. package/dist/angular/index.js +3090 -2890
  5. package/dist/angular/index.js.map +15 -14
  6. package/dist/angular/server.js +3083 -2883
  7. package/dist/angular/server.js.map +15 -15
  8. package/dist/build.js +42942 -6408
  9. package/dist/build.js.map +9 -20
  10. package/dist/cli/index.js +2 -1
  11. package/dist/core/streamingSlotRegistrar.js +24 -16
  12. package/dist/core/streamingSlotRegistrar.js.map +2 -2
  13. package/dist/core/streamingSlotRegistry.js +42 -29
  14. package/dist/core/streamingSlotRegistry.js.map +2 -2
  15. package/dist/index.js +41443 -4405
  16. package/dist/index.js.map +28 -40
  17. package/dist/islands/index.js +135 -11
  18. package/dist/islands/index.js.map +3 -3
  19. package/dist/react/components/index.js +24 -16
  20. package/dist/react/components/index.js.map +2 -2
  21. package/dist/react/index.js +1056 -873
  22. package/dist/react/index.js.map +13 -13
  23. package/dist/react/server.js +903 -843
  24. package/dist/react/server.js.map +11 -11
  25. package/dist/src/build/compileTailwind.d.ts +3 -0
  26. package/dist/src/build/stylePreprocessor.d.ts +2 -1
  27. package/dist/src/core/build.d.ts +1 -1
  28. package/dist/src/core/pageHandlers.d.ts +0 -1
  29. package/dist/src/core/ssrCache.d.ts +3 -0
  30. package/dist/svelte/index.js +1104 -916
  31. package/dist/svelte/index.js.map +15 -14
  32. package/dist/svelte/server.js +891 -702
  33. package/dist/svelte/server.js.map +13 -13
  34. package/dist/types/build.d.ts +18 -4
  35. package/dist/types/index.d.ts +0 -1
  36. package/dist/types/island.d.ts +14 -11
  37. package/dist/vue/components/index.js +24 -16
  38. package/dist/vue/components/index.js.map +2 -2
  39. package/dist/vue/index.js +1144 -956
  40. package/dist/vue/index.js.map +13 -13
  41. package/dist/vue/server.js +908 -841
  42. package/dist/vue/server.js.map +11 -11
  43. package/package.json +20 -8
package/README.md CHANGED
@@ -45,9 +45,9 @@ import { file } from 'bun';
45
45
  import { build } from 'absolutejs/core/build';
46
46
  import {
47
47
  handleHTMLPageRequest,
48
- handleReactPageRequest,
49
48
  handleSveltePageRequest
50
49
  } from 'absolutejs/core/pageHandlers';
50
+ import { handleReactPageRequest } from 'absolutejs/react';
51
51
 
52
52
  import { ReactExample } from './react/pages/ReactExample';
53
53
  import SvelteExample from './svelte/pages/SvelteExample.svelte';
@@ -78,43 +78,6 @@ var __legacyMetadataTS = (k, v) => {
78
78
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
79
79
  var __require = import.meta.require;
80
80
 
81
- // src/core/streamingSlotRegistrar.ts
82
- var STREAMING_SLOT_REGISTRAR_KEY, STREAMING_SLOT_WARNING_STORAGE_KEY, STREAMING_SLOT_COLLECTION_STORAGE_KEY, getRegisteredStreamingSlotRegistrar = () => {
83
- const value = Reflect.get(globalThis, STREAMING_SLOT_REGISTRAR_KEY);
84
- if (typeof value === "function" || value === null) {
85
- return value;
86
- }
87
- return;
88
- }, isObjectRecord = (value) => Boolean(value) && typeof value === "object", isStreamingSlotWarningController = (value) => isObjectRecord(value) && ("maybeWarn" in value) && typeof value.maybeWarn === "function", isStreamingSlotCollectionController = (value) => isObjectRecord(value) && ("isCollecting" in value) && typeof value.isCollecting === "function", getWarningController = () => {
89
- const value = Reflect.get(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY);
90
- if (value === null || typeof value === "undefined")
91
- return;
92
- return isStreamingSlotWarningController(value) ? value : undefined;
93
- }, getCollectionController = () => {
94
- const value = Reflect.get(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY);
95
- if (value === null || typeof value === "undefined")
96
- return;
97
- return isStreamingSlotCollectionController(value) ? value : undefined;
98
- }, hasRegisteredStreamingSlotRegistrar = () => typeof getRegisteredStreamingSlotRegistrar() === "function", isStreamingSlotCollectionActive = () => getCollectionController()?.isCollecting() === true, registerStreamingSlot = (slot) => {
99
- getRegisteredStreamingSlotRegistrar()?.(slot);
100
- }, setStreamingSlotCollectionController = (controller) => {
101
- Reflect.set(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY, controller);
102
- }, setStreamingSlotRegistrar = (nextRegistrar) => {
103
- Reflect.set(globalThis, STREAMING_SLOT_REGISTRAR_KEY, nextRegistrar);
104
- }, setStreamingSlotWarningController = (controller) => {
105
- Reflect.set(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY, controller);
106
- }, warnMissingStreamingSlotCollector = (primitiveName) => {
107
- if (isStreamingSlotCollectionActive()) {
108
- return;
109
- }
110
- getWarningController()?.maybeWarn(primitiveName);
111
- };
112
- var init_streamingSlotRegistrar = __esm(() => {
113
- STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
114
- STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
115
- STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
116
- });
117
-
118
81
  // src/core/islandManifest.ts
119
82
  var toIslandFrameworkSegment = (framework) => framework[0]?.toUpperCase() + framework.slice(1), collectFrameworkIslands = (manifest, prefix) => {
120
83
  const entries = {};
@@ -9281,6 +9244,53 @@ var init_imageProcessing = __esm(() => {
9281
9244
  };
9282
9245
  });
9283
9246
 
9247
+ // src/core/streamingSlotRegistrar.ts
9248
+ var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
9249
+ var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
9250
+ var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
9251
+ var getRegisteredStreamingSlotRegistrar = () => {
9252
+ const value = Reflect.get(globalThis, STREAMING_SLOT_REGISTRAR_KEY);
9253
+ if (typeof value === "function" || value === null) {
9254
+ return value;
9255
+ }
9256
+ return;
9257
+ };
9258
+ var isObjectRecord = (value) => Boolean(value) && typeof value === "object";
9259
+ var isStreamingSlotWarningController = (value) => isObjectRecord(value) && ("maybeWarn" in value) && typeof value.maybeWarn === "function";
9260
+ var isStreamingSlotCollectionController = (value) => isObjectRecord(value) && ("isCollecting" in value) && typeof value.isCollecting === "function";
9261
+ var getWarningController = () => {
9262
+ const value = Reflect.get(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY);
9263
+ if (value === null || typeof value === "undefined")
9264
+ return;
9265
+ return isStreamingSlotWarningController(value) ? value : undefined;
9266
+ };
9267
+ var getCollectionController = () => {
9268
+ const value = Reflect.get(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY);
9269
+ if (value === null || typeof value === "undefined")
9270
+ return;
9271
+ return isStreamingSlotCollectionController(value) ? value : undefined;
9272
+ };
9273
+ var hasRegisteredStreamingSlotRegistrar = () => typeof getRegisteredStreamingSlotRegistrar() === "function";
9274
+ var isStreamingSlotCollectionActive = () => getCollectionController()?.isCollecting() === true;
9275
+ var registerStreamingSlot = (slot) => {
9276
+ getRegisteredStreamingSlotRegistrar()?.(slot);
9277
+ };
9278
+ var setStreamingSlotCollectionController = (controller) => {
9279
+ Reflect.set(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY, controller);
9280
+ };
9281
+ var setStreamingSlotRegistrar = (nextRegistrar) => {
9282
+ Reflect.set(globalThis, STREAMING_SLOT_REGISTRAR_KEY, nextRegistrar);
9283
+ };
9284
+ var setStreamingSlotWarningController = (controller) => {
9285
+ Reflect.set(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY, controller);
9286
+ };
9287
+ var warnMissingStreamingSlotCollector = (primitiveName) => {
9288
+ if (isStreamingSlotCollectionActive()) {
9289
+ return;
9290
+ }
9291
+ getWarningController()?.maybeWarn(primitiveName);
9292
+ };
9293
+
9284
9294
  // src/angular/Island.browser.ts
9285
9295
  import"@angular/compiler";
9286
9296
  import {
@@ -9575,7 +9585,6 @@ Injectable({
9575
9585
  })(IslandStoreImpl);
9576
9586
  var IslandStore = IslandStoreImpl;
9577
9587
  // src/angular/components/defer-slot.component.ts
9578
- init_streamingSlotRegistrar();
9579
9588
  import {
9580
9589
  ChangeDetectionStrategy,
9581
9590
  ChangeDetectorRef,
@@ -9907,7 +9916,6 @@ ImageComponent = __legacyDecorateClassTS([
9907
9916
  })
9908
9917
  ], ImageComponent);
9909
9918
  // src/angular/components/stream-slot.component.ts
9910
- init_streamingSlotRegistrar();
9911
9919
  import {
9912
9920
  ChangeDetectionStrategy as ChangeDetectionStrategy2,
9913
9921
  ChangeDetectorRef as ChangeDetectorRef2,
@@ -10034,5 +10042,5 @@ export {
10034
10042
  DeferErrorTemplateDirective
10035
10043
  };
10036
10044
 
10037
- //# debugId=D11E845E70D86F1164756E2164756E21
10045
+ //# debugId=5F1EEC33A8B57B9264756E2164756E21
10038
10046
  //# sourceMappingURL=browser.js.map