@absolutejs/absolute 0.19.0-beta.963 → 0.19.0-beta.965

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-sz98NP/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-q3SpoL/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-sz98NP/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-q3SpoL/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-sz98NP/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-q3SpoL/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";
@@ -14686,16 +14686,8 @@ init_ssrRender();
14686
14686
  var lastSelector = "angular-page";
14687
14687
  var isRecord5 = (value) => typeof value === "object" && value !== null;
14688
14688
  var isAngularComponent2 = (value) => typeof value === "function";
14689
- var isAngularPageDefinition = (value) => isRecord5(value) && isAngularComponent2(value.component);
14690
14689
  var resolvePageComponent = (pageModule) => {
14691
- const page = Reflect.get(pageModule, "page");
14692
- if (isAngularPageDefinition(page)) {
14693
- return page.component;
14694
- }
14695
14690
  const defaultExport = pageModule.default;
14696
- if (isAngularPageDefinition(defaultExport)) {
14697
- return defaultExport.component;
14698
- }
14699
14691
  if (isAngularComponent2(defaultExport)) {
14700
14692
  return defaultExport;
14701
14693
  }
@@ -14864,15 +14856,14 @@ var handleAngularPageRequest = async (input) => {
14864
14856
  }
14865
14857
  });
14866
14858
  };
14867
- // src/angular/page.ts
14868
- var defineAngularPage = (definition) => definition;
14869
14859
  // src/angular/composables/useResource.ts
14870
14860
  import { DestroyRef, inject, signal } from "@angular/core";
14871
14861
  var useResource = (fetcher, options = {}) => {
14872
14862
  const destroyRef = inject(DestroyRef);
14863
+ const start = options.start ?? "immediate";
14873
14864
  const data = signal(null);
14874
14865
  const error = signal(null);
14875
- const loading = signal(false);
14866
+ const loading = signal(start !== "idle");
14876
14867
  let controller = null;
14877
14868
  let destroyed = false;
14878
14869
  const cancel = () => {
@@ -14920,7 +14911,7 @@ var useResource = (fetcher, options = {}) => {
14920
14911
  destroyed = true;
14921
14912
  cancel();
14922
14913
  });
14923
- if (options.immediate !== false) {
14914
+ if (start === "immediate") {
14924
14915
  refresh();
14925
14916
  }
14926
14917
  return { cancel, data, error, loading, mutate, refresh };
@@ -15365,7 +15356,6 @@ export {
15365
15356
  preserveAcrossHmr,
15366
15357
  handleAngularPageRequest,
15367
15358
  getCachedRouteData,
15368
- defineAngularPage,
15369
15359
  createTypedIsland,
15370
15360
  createDeterministicRandom,
15371
15361
  buildAbsoluteHttpTransferCacheOptions,
@@ -15378,5 +15368,5 @@ export {
15378
15368
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
15379
15369
  };
15380
15370
 
15381
- //# debugId=D2DC5A8B92142CFA64756E2164756E21
15371
+ //# debugId=9905ACD7A4AB876764756E2164756E21
15382
15372
  //# sourceMappingURL=index.js.map