@ssgoi/svelte 7.1.1 → 7.1.3-beta.0

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/README.md CHANGED
@@ -12,6 +12,17 @@ npm install @ssgoi/svelte
12
12
 
13
13
  Agent setup guide: https://ssgoi.dev/llms/svelte.txt
14
14
 
15
+ ## Router helpers
16
+
17
+ Install this framework package once; router helpers are optional subpaths.
18
+ These router helpers are experimental APIs and may change.
19
+
20
+ | Router | Import | API |
21
+ | --------- | ------------------------- | -------------------- |
22
+ | SvelteKit | `@ssgoi/svelte/sveltekit` | `SsgoiRouteBoundary` |
23
+
24
+ See the [framework guide](https://ssgoi.dev/docs/frameworks/svelte) for wiring and limits.
25
+
15
26
  ## Root
16
27
 
17
28
  ```svelte
@@ -1,2 +1,3 @@
1
+ /** @experimental SvelteKit route boundary. The API may change. */
1
2
  export { default as SsgoiRouteBoundary } from "./ssgoi-route-boundary.svelte";
2
3
  export type { RouteBoundaryState, SveltekitRouteLocation, SsgoiRouteBoundaryProps, } from "./types.js";
@@ -1 +1,2 @@
1
+ /** @experimental SvelteKit route boundary. The API may change. */
1
2
  export { default as SsgoiRouteBoundary } from "./ssgoi-route-boundary.svelte";
@@ -1,3 +1,6 @@
1
+ <!-- @component
2
+ @experimental SvelteKit route boundary. The API may change.
3
+ -->
1
4
  <script lang="ts">
2
5
  import { onNavigate } from "$app/navigation";
3
6
  // Stores work throughout SvelteKit 2, including releases before $app/state.
@@ -1,4 +1,5 @@
1
1
  import type { SsgoiRouteBoundaryProps } from "./types.js";
2
+ /** @experimental SvelteKit route boundary. The API may change. */
2
3
  declare const SsgoiRouteBoundary: import("svelte").Component<SsgoiRouteBoundaryProps, {}, "">;
3
4
  type SsgoiRouteBoundary = ReturnType<typeof SsgoiRouteBoundary>;
4
5
  export default SsgoiRouteBoundary;
@@ -8,6 +8,7 @@ export interface SveltekitRouteLocation {
8
8
  pathname: string;
9
9
  url: URL;
10
10
  }
11
+ /** @experimental SvelteKit route boundary options. */
11
12
  export interface SsgoiRouteBoundaryProps extends HTMLAttributes<HTMLElement> {
12
13
  children: Snippet;
13
14
  as?: keyof HTMLElementTagNameMap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssgoi/svelte",
3
- "version": "7.1.1",
3
+ "version": "7.1.3-beta.0",
4
4
  "description": "Svelte bindings for SSGOI - Native app-like page transitions for Svelte and SvelteKit applications",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -14,7 +14,7 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "type": "module",
16
16
  "dependencies": {
17
- "@ssgoi/core": "^7.1.1"
17
+ "@ssgoi/core": "^7.1.3-beta.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "svelte": "^5.0.0",
@@ -91,9 +91,9 @@
91
91
  "import": "./dist/view-transitions.js"
92
92
  },
93
93
  "./sveltekit": {
94
- "types": "./dist/sveltekit/index.d.ts",
95
- "svelte": "./dist/sveltekit/index.js",
96
- "import": "./dist/sveltekit/index.js"
94
+ "types": "./dist/routers/sveltekit/index.d.ts",
95
+ "svelte": "./dist/routers/sveltekit/index.js",
96
+ "import": "./dist/routers/sveltekit/index.js"
97
97
  }
98
98
  },
99
99
  "peerDependenciesMeta": {
File without changes