@xleddyl/nuxt-cms 0.1.55 → 0.1.56
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,11 +1,8 @@
|
|
|
1
|
-
import type { AsyncData
|
|
1
|
+
import type { AsyncData } from 'nuxt/app';
|
|
2
|
+
import type { CmsAsyncDataOptions } from './cms-query.js';
|
|
2
3
|
type CmsDisabledResult = Record<string, any>;
|
|
3
4
|
type CmsDisabledVariables = Record<string, any>;
|
|
4
|
-
export
|
|
5
|
-
key?: string;
|
|
6
|
-
default?: () => DefaultT;
|
|
7
|
-
}
|
|
5
|
+
export type { CmsAsyncDataOptions };
|
|
8
6
|
export declare function cmsQueryKey(query: string, variables?: unknown): string;
|
|
9
7
|
export declare function $cmsQuery<const Q extends string>(query: Q, variables?: CmsDisabledVariables): Promise<CmsDisabledResult>;
|
|
10
8
|
export declare function useCms<const Q extends string, DefaultT = undefined>(query: Q, variables?: CmsDisabledVariables, options?: CmsAsyncDataOptions<CmsDisabledResult, DefaultT>): AsyncData<CmsDisabledResult | DefaultT | undefined, Error | undefined>;
|
|
11
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xleddyl/nuxt-cms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.56",
|
|
4
4
|
"description": "Lightweight CMS that ships with your Nuxt app: runs on the Nitro server, content types defined in code, /cms admin panel, GraphQL API, SQLite or Postgres. No external CMS needed!",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Edoardo Alberti (https://github.com/xleddyl)",
|