@ginjou/nuxt 0.1.0-beta.3 → 0.1.0-beta.5

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.cjs CHANGED
@@ -37,6 +37,28 @@ const composables$2 = [
37
37
  {
38
38
  from: "./runtime/composables/select",
39
39
  name: "useAsyncSelect"
40
+ },
41
+ {
42
+ from: "./runtime/composables/infinite-list",
43
+ name: "useAsyncInfiniteList"
44
+ },
45
+ // Auth
46
+ {
47
+ from: "./runtime/composables/authenticated",
48
+ name: "useAsyncAuthenticated"
49
+ },
50
+ {
51
+ from: "./runtime/composables/identity",
52
+ name: "useAsyncGetIdentity"
53
+ },
54
+ // Authz
55
+ {
56
+ from: "./runtime/composables/permissions",
57
+ name: "useAsyncPermissions"
58
+ },
59
+ {
60
+ from: "./runtime/composables/can",
61
+ name: "useAsyncCanAccess"
40
62
  }
41
63
  ];
42
64
  function ImportListForAsync(resolve) {
@@ -69,6 +91,7 @@ const composables$1 = [
69
91
  "useGetOne",
70
92
  "useGo",
71
93
  "useI18nContext",
94
+ "useInfiniteList",
72
95
  "useList",
73
96
  "useLocale",
74
97
  "useLocation",
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ginjou",
3
3
  "configKey": "ginjou",
4
- "version": "0.1.0-beta.3",
4
+ "version": "0.1.0-beta.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -34,6 +34,28 @@ const composables$2 = [
34
34
  {
35
35
  from: "./runtime/composables/select",
36
36
  name: "useAsyncSelect"
37
+ },
38
+ {
39
+ from: "./runtime/composables/infinite-list",
40
+ name: "useAsyncInfiniteList"
41
+ },
42
+ // Auth
43
+ {
44
+ from: "./runtime/composables/authenticated",
45
+ name: "useAsyncAuthenticated"
46
+ },
47
+ {
48
+ from: "./runtime/composables/identity",
49
+ name: "useAsyncGetIdentity"
50
+ },
51
+ // Authz
52
+ {
53
+ from: "./runtime/composables/permissions",
54
+ name: "useAsyncPermissions"
55
+ },
56
+ {
57
+ from: "./runtime/composables/can",
58
+ name: "useAsyncCanAccess"
37
59
  }
38
60
  ];
39
61
  function ImportListForAsync(resolve) {
@@ -66,6 +88,7 @@ const composables$1 = [
66
88
  "useGetOne",
67
89
  "useGo",
68
90
  "useI18nContext",
91
+ "useInfiniteList",
69
92
  "useList",
70
93
  "useLocale",
71
94
  "useLocation",
@@ -0,0 +1,3 @@
1
+ import type { UseAuthenticatedContext, UseAuthenticatedProps, UseAuthenticatedResult } from '@ginjou/vue';
2
+ import type { AsyncResult } from '../utils/async.js';
3
+ export declare function useAsyncAuthenticated<TParams = unknown, TError = unknown>(props?: UseAuthenticatedProps<TParams, TError>, context?: UseAuthenticatedContext): AsyncResult<UseAuthenticatedResult<TError>>;
@@ -0,0 +1,8 @@
1
+ import { useAuthenticated } from "@ginjou/vue";
2
+ import { withAsync } from "../utils/async.js";
3
+ export function useAsyncAuthenticated(props, context) {
4
+ const query = useAuthenticated(props, context);
5
+ return withAsync(query, async () => {
6
+ await query.suspense();
7
+ });
8
+ }
@@ -0,0 +1,3 @@
1
+ import type { UseCanAccessContext, UseCanAccessProps, UseCanAccessResult } from '@ginjou/vue';
2
+ import type { AsyncResult } from '../utils/async.js';
3
+ export declare function useAsyncCanAccess<TError = unknown>(props: UseCanAccessProps<TError>, context?: UseCanAccessContext): AsyncResult<UseCanAccessResult<TError>>;
@@ -0,0 +1,8 @@
1
+ import { useCanAccess } from "@ginjou/vue";
2
+ import { withAsync } from "../utils/async.js";
3
+ export function useAsyncCanAccess(props, context) {
4
+ const query = useCanAccess(props, context);
5
+ return withAsync(query, async () => {
6
+ await query.suspense();
7
+ });
8
+ }
@@ -0,0 +1,3 @@
1
+ import type { UseGetIdentityContext, UseGetIdentityProps, UseGetIdentityResult } from '@ginjou/vue';
2
+ import type { AsyncResult } from '../utils/async.js';
3
+ export declare function useAsyncGetIdentity<TData = unknown, TParams = unknown, TError = unknown>(props?: UseGetIdentityProps<TData, TParams, TError>, context?: UseGetIdentityContext): AsyncResult<UseGetIdentityResult<TData, TError>>;
@@ -0,0 +1,8 @@
1
+ import { useGetIdentity } from "@ginjou/vue";
2
+ import { withAsync } from "../utils/async.js";
3
+ export function useAsyncGetIdentity(props, context) {
4
+ const query = useGetIdentity(props, context);
5
+ return withAsync(query, async () => {
6
+ await query.suspense();
7
+ });
8
+ }
@@ -0,0 +1,4 @@
1
+ import type { BaseRecord } from '@ginjou/core';
2
+ import type { UseInfiniteListContext, UseInfiniteListProps, UseInfiniteListResult } from '@ginjou/vue';
3
+ import type { AsyncResult } from '../utils/async.js';
4
+ export declare function useAsyncInfiniteList<TData extends BaseRecord = BaseRecord, TError = unknown, TResultData extends BaseRecord = TData, TPageParam = number>(props?: UseInfiniteListProps<TData, TError, TResultData, TPageParam>, context?: UseInfiniteListContext): AsyncResult<UseInfiniteListResult<TError, TResultData, TPageParam>>;
@@ -0,0 +1,8 @@
1
+ import { useInfiniteList } from "@ginjou/vue";
2
+ import { withAsync } from "../utils/async.js";
3
+ export function useAsyncInfiniteList(props, context) {
4
+ const query = useInfiniteList(props, context);
5
+ return withAsync(query, async () => {
6
+ await query.suspense();
7
+ });
8
+ }
@@ -0,0 +1,3 @@
1
+ import type { UsePermissionsProps, UsePermissionsResult, UserPermissionsContext } from '@ginjou/vue';
2
+ import type { AsyncResult } from '../utils/async.js';
3
+ export declare function useAsyncPermissions<TData = unknown, TParams = unknown, TError = unknown>(props?: UsePermissionsProps<TData, TParams, TError>, context?: UserPermissionsContext): AsyncResult<UsePermissionsResult<TData, TError>>;
@@ -0,0 +1,8 @@
1
+ import { usePermissions } from "@ginjou/vue";
2
+ import { withAsync } from "../utils/async.js";
3
+ export function useAsyncPermissions(props, context) {
4
+ const query = usePermissions(props, context);
5
+ return withAsync(query, async () => {
6
+ await query.suspense();
7
+ });
8
+ }
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.3",
4
+ "version": "0.1.0-beta.5",
5
5
  "author": "zhong666 <hi@zhong666.me>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/aa900031/ginjou#readme",
@@ -37,15 +37,15 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@nuxt/kit": "^3.17.1",
41
- "@ginjou/vue": "^0.1.0-beta.7",
42
- "@ginjou/with-vue-router": "^0.1.0-beta.2"
40
+ "@nuxt/kit": "^3.17.5",
41
+ "@ginjou/vue": "^0.1.0-beta.9",
42
+ "@ginjou/with-vue-router": "^0.1.0-beta.3"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@nuxt/module-builder": "^1.0.1",
46
- "@nuxt/schema": "^3.17.1",
47
- "@nuxt/test-utils": "^3.17.2",
48
- "nuxt": "^3.17.1"
46
+ "@nuxt/schema": "^3.17.5",
47
+ "@nuxt/test-utils": "^3.19.1",
48
+ "nuxt": "^3.17.5"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "run-s build:prepare build:bundle",