@absolutejs/absolute 0.19.0-beta.1085 → 0.19.0-beta.1087
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/build.js +4 -3
- package/dist/build.js.map +3 -3
- package/dist/index.js +4 -3
- package/dist/index.js.map +3 -3
- package/dist/types/vue.d.ts +10 -15
- package/package.json +7 -2
package/dist/types/vue.d.ts
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import type { AllowedComponentProps, App, ComponentCustomProps, VNodeProps } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
push: (to: string) => Promise<unknown>;
|
|
13
|
-
isReady: () => Promise<void>;
|
|
14
|
-
beforeEach: (guard: (to: unknown, from: unknown) => unknown) => () => void;
|
|
15
|
-
};
|
|
2
|
+
import type { Router } from 'vue-router';
|
|
3
|
+
/** The vue-router instance AbsoluteJS auto-creates from a page's `routes`
|
|
4
|
+
* export. Aliased to vue-router's own `Router` so consumers get the full,
|
|
5
|
+
* always-current API (`onError`, `afterEach`, `resolve`, …) rather than a
|
|
6
|
+
* hand-mirrored subset that silently drifts out of date — the missing
|
|
7
|
+
* `onError` is exactly the kind of gap a duplicated type hides. `vue-router`
|
|
8
|
+
* is an optional peer dependency: only pages that export `routes` reference
|
|
9
|
+
* this type, and those pages already depend on vue-router. */
|
|
10
|
+
export type VueAutoRouter = Router;
|
|
16
11
|
export type VueSetupAppContext = {
|
|
17
12
|
url: string;
|
|
18
13
|
isServer: boolean;
|
|
19
14
|
/** The vue-router instance AbsoluteJS auto-created from the page's
|
|
20
15
|
* `routes` export, already installed on the app and navigated to
|
|
21
16
|
* the request URL. `null` when the page didn't export `routes`. */
|
|
22
|
-
router:
|
|
17
|
+
router: Router | null;
|
|
23
18
|
/** Server-only. Call to short-circuit SSR and emit an HTTP redirect
|
|
24
19
|
* instead. Pass the destination location and an optional status
|
|
25
20
|
* (defaults to `302`). */
|
package/package.json
CHANGED
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"typescript": "^5.9.3",
|
|
69
69
|
"typescript-eslint": "8.56.1",
|
|
70
70
|
"vue": "3.5.27",
|
|
71
|
+
"vue-router": "^4.5.1",
|
|
71
72
|
"vue-tsc": "^3.2.5"
|
|
72
73
|
},
|
|
73
74
|
"engines": {
|
|
@@ -278,7 +279,8 @@
|
|
|
278
279
|
"svelte": "^5.35.2",
|
|
279
280
|
"tailwindcss": "^4.1.0",
|
|
280
281
|
"typescript": "^5.9.3",
|
|
281
|
-
"vue": "^3.5.27"
|
|
282
|
+
"vue": "^3.5.27",
|
|
283
|
+
"vue-router": "^4.5.1"
|
|
282
284
|
},
|
|
283
285
|
"peerDependenciesMeta": {
|
|
284
286
|
"@angular/animations": {
|
|
@@ -349,6 +351,9 @@
|
|
|
349
351
|
},
|
|
350
352
|
"vue": {
|
|
351
353
|
"optional": true
|
|
354
|
+
},
|
|
355
|
+
"vue-router": {
|
|
356
|
+
"optional": true
|
|
352
357
|
}
|
|
353
358
|
},
|
|
354
359
|
"repository": {
|
|
@@ -418,7 +423,7 @@
|
|
|
418
423
|
]
|
|
419
424
|
}
|
|
420
425
|
},
|
|
421
|
-
"version": "0.19.0-beta.
|
|
426
|
+
"version": "0.19.0-beta.1087",
|
|
422
427
|
"workspaces": [
|
|
423
428
|
"tests/fixtures/*",
|
|
424
429
|
"tests/fixtures/_packages/*"
|