@ginjou/nuxt 0.1.0-beta.8 → 0.1.0-beta.9
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/module.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Params } from '@ginjou/core';
|
|
1
2
|
import type { UseAuthenticatedContext, UseAuthenticatedProps, UseAuthenticatedResult } from '@ginjou/vue';
|
|
2
3
|
import type { AsyncResult } from '../utils/async.js';
|
|
3
|
-
export declare function useAsyncAuthenticated<TParams =
|
|
4
|
+
export declare function useAsyncAuthenticated<TParams extends Params = Params, TError = unknown>(props?: UseAuthenticatedProps<TParams, TError>, context?: UseAuthenticatedContext): AsyncResult<UseAuthenticatedResult<TError>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseRecord } from '@ginjou/core';
|
|
1
|
+
import type { BaseRecord, Params } from '@ginjou/core';
|
|
2
2
|
import type { UseFormContext, UseFormProps, UseFormResult } from '@ginjou/vue';
|
|
3
3
|
import type { AsyncResult } from '../utils/async.js';
|
|
4
|
-
export declare function useAsyncForm<TQueryData extends BaseRecord = BaseRecord, TMutationParams =
|
|
4
|
+
export declare function useAsyncForm<TQueryData extends BaseRecord = BaseRecord, TMutationParams extends Params = Params, TQueryError = unknown, TQueryResultData extends BaseRecord = TQueryData, TMutationData extends BaseRecord = TQueryResultData, TMutationError = unknown>(props?: UseFormProps<TQueryData, TMutationParams, TQueryError, TQueryResultData, TMutationData, TMutationError>, context?: UseFormContext): AsyncResult<UseFormResult<TMutationParams, TQueryError, TQueryResultData, TMutationData, TMutationError>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseRecord, Params } from '@ginjou/core';
|
|
1
2
|
import type { UseGetIdentityContext, UseGetIdentityProps, UseGetIdentityResult } from '@ginjou/vue';
|
|
2
3
|
import type { AsyncResult } from '../utils/async.js';
|
|
3
|
-
export declare function useAsyncGetIdentity<TData =
|
|
4
|
+
export declare function useAsyncGetIdentity<TData extends BaseRecord = BaseRecord, TParams extends Params = Params, TError = unknown>(props?: UseGetIdentityProps<TData, TParams, TError>, context?: UseGetIdentityContext): AsyncResult<UseGetIdentityResult<TData, TError>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineNuxtPlugin } from "#imports";
|
|
2
2
|
import { defineRouterContext } from "@ginjou/vue";
|
|
3
|
-
import {
|
|
3
|
+
import { createRouter } from "@ginjou/with-vue-router";
|
|
4
4
|
export default defineNuxtPlugin({
|
|
5
5
|
name: "ginjou/router-plugin",
|
|
6
6
|
setup: (nuxt) => {
|
|
7
7
|
nuxt.hook("vue:setup", () => {
|
|
8
|
-
defineRouterContext(
|
|
8
|
+
defineRouterContext(createRouter());
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ginjou/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.9",
|
|
5
5
|
"author": "zhong666 <hi@zhong666.me>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/aa900031/ginjou#readme",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@nuxt/kit": "^3.19.3",
|
|
41
|
-
"@ginjou/vue": "^0.1.0-beta.
|
|
42
|
-
"@ginjou/with-vue-router": "^0.1.0-beta.
|
|
41
|
+
"@ginjou/vue": "^0.1.0-beta.13",
|
|
42
|
+
"@ginjou/with-vue-router": "^0.1.0-beta.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@nuxt/module-builder": "^1.0.2",
|
|
46
|
-
"@nuxt/schema": "^3.
|
|
46
|
+
"@nuxt/schema": "^3.20.1",
|
|
47
47
|
"@nuxt/test-utils": "^3.20.1",
|
|
48
|
-
"nuxt": "^3.
|
|
48
|
+
"nuxt": "^3.20.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "run-s build:prepare build:bundle",
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"build:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
|
|
54
54
|
"dev:playground": "nuxi dev playground",
|
|
55
55
|
"dev": "run-s build:prepare dev:playground",
|
|
56
|
-
"release": "release-it
|
|
56
|
+
"release": "release-it"
|
|
57
57
|
}
|
|
58
58
|
}
|