@absolutejs/absolute 0.19.0-beta.821 → 0.19.0-beta.823
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/svelte/router/Link.svelte +1 -1
- package/dist/svelte/router/Route.svelte +2 -2
- package/dist/svelte/router/Router.svelte +3 -3
- package/dist/svelte/router/browser.ts +1 -1
- package/dist/svelte/router/goto.ts +1 -1
- package/dist/svelte/router/index.ts +1 -1
- package/dist/svelte/router/page.d.ts +24 -0
- package/dist/svelte/router/pushState.ts +1 -1
- package/package.json +1 -1
- /package/dist/svelte/router/{page.svelte.js → page.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-4bK9Mx/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-
|
|
4
|
+
// .angular-partial-tmp-4bK9Mx/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-
|
|
51
|
+
// .angular-partial-tmp-4bK9Mx/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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onDestroy, onMount, type Snippet } from 'svelte';
|
|
3
|
-
import type { LinkPrefetchMode } from '
|
|
3
|
+
import type { LinkPrefetchMode } from '../../types/svelteRouter';
|
|
4
4
|
import { goto } from './goto';
|
|
5
5
|
import { prefetch, scheduleHoverPrefetch } from './prefetchCache';
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts" generics="Path extends string">
|
|
2
2
|
import { getContext, onDestroy, type Snippet } from 'svelte';
|
|
3
|
-
import type { ExtractRouteParams } from '
|
|
3
|
+
import type { ExtractRouteParams } from '../../types/svelteRouter';
|
|
4
4
|
import type { RouterRegistry } from './Router.svelte';
|
|
5
5
|
import { compilePattern, joinBasepath, matchPattern } from './matchPath';
|
|
6
|
-
import { page } from './page.
|
|
6
|
+
import { page } from './page.js';
|
|
7
7
|
|
|
8
8
|
const ROUTER_CONTEXT_KEY = Symbol.for('absolutejs.svelte-router');
|
|
9
9
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
export type RouterRegistry = {
|
|
10
10
|
basepath: string;
|
|
11
|
-
mode: import('
|
|
11
|
+
mode: import('../../types/svelteRouter').RouterMode;
|
|
12
12
|
register: (id: string, entry: CompiledPatternBox) => void;
|
|
13
13
|
deregister: (id: string) => void;
|
|
14
14
|
isWinner: (id: string) => boolean;
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
<script lang="ts">
|
|
20
20
|
import { getContext, onMount, setContext, type Snippet } from 'svelte';
|
|
21
|
-
import type { RouterMode } from '
|
|
21
|
+
import type { RouterMode } from '../../types/svelteRouter';
|
|
22
22
|
import { setRouterMode } from './goto';
|
|
23
23
|
import { hashPathnameOf } from './hashMode';
|
|
24
24
|
import { joinBasepath, matchPattern } from './matchPath';
|
|
25
|
-
import { page, seedPage, setPage } from './page.
|
|
25
|
+
import { page, seedPage, setPage } from './page.js';
|
|
26
26
|
|
|
27
27
|
const ROUTER_CONTEXT_KEY = Symbol.for('absolutejs.svelte-router');
|
|
28
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GotoOptions, RouterMode } from '../../types/svelteRouter';
|
|
2
2
|
import { buildHashHref } from './hashMode';
|
|
3
|
-
import { setPage } from './page.
|
|
3
|
+
import { setPage } from './page.js';
|
|
4
4
|
import { consumePrefetch } from './prefetchCache';
|
|
5
5
|
import { withViewTransition } from './viewTransitions';
|
|
6
6
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { PageState } from '../../types/svelteRouter';
|
|
2
|
+
/**
|
|
3
|
+
* Reactive route state. Mirrors SvelteKit's `page` from `$app/state`:
|
|
4
|
+
*
|
|
5
|
+
* import { page } from '@absolutejs/absolute/svelte/router';
|
|
6
|
+
* page.url.pathname // current path (reactive)
|
|
7
|
+
* page.url.searchParams // parsed URLSearchParams (reactive)
|
|
8
|
+
* page.params.id // active route params (reactive)
|
|
9
|
+
* page.state // history.state for the current entry
|
|
10
|
+
*
|
|
11
|
+
* Backed by `$state`. Direct property access in templates re-renders.
|
|
12
|
+
*/
|
|
13
|
+
export declare const page: PageState;
|
|
14
|
+
/**
|
|
15
|
+
* Internal — only Router.svelte and the navigation primitives call this.
|
|
16
|
+
* Replaces the entire page state in one assignment so subscribers fire
|
|
17
|
+
* once per navigation rather than once per mutated field.
|
|
18
|
+
*/
|
|
19
|
+
export declare const setPage: (next: Partial<PageState>) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Internal — used during SSR to seed the page state before render so
|
|
22
|
+
* `<Route>` blocks see the correct `page.url`.
|
|
23
|
+
*/
|
|
24
|
+
export declare const seedPage: (url: URL, params?: Record<string, string | undefined>) => void;
|
package/package.json
CHANGED
|
File without changes
|