@gluhar/app 5.2.0 → 6.0.0-next.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/dist/module.d.mts +2 -1
- package/dist/module.d.ts +2 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -7
- package/dist/runtime/composables/useSanityPage.d.ts +4 -6
- package/dist/runtime/stores/useGStore.d.ts +1 -80
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +30 -21
package/dist/module.d.mts
CHANGED
package/dist/module.d.ts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -40,14 +40,9 @@ const module = defineNuxtModule({
|
|
|
40
40
|
addImportsDir(resolve("runtime/stores"));
|
|
41
41
|
addImportsDir(resolve("runtime/utils"));
|
|
42
42
|
nuxt.options.vite = defu(nuxt.options.vite, {
|
|
43
|
-
esbuild: {
|
|
44
|
-
legalComments: "none"
|
|
45
|
-
},
|
|
46
43
|
build: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
comments: false
|
|
50
|
-
}
|
|
44
|
+
rolldownOptions: {
|
|
45
|
+
output: { comments: false }
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
48
|
});
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { AsyncDataRequestStatus } from "#app";
|
|
2
|
-
import type { KeysOf, PickFrom } from "#app/composables/asyncData";
|
|
3
1
|
import type { SanityPage } from "@gluhar/sanity/types";
|
|
4
2
|
interface Page extends SanityPage {
|
|
5
3
|
_type: "page";
|
|
@@ -14,10 +12,10 @@ type PageTypes<PI extends PageInterfaces> = Record<keyof PI, {
|
|
|
14
12
|
export declare const useSanityPage: <PI extends PageInterfaces = {
|
|
15
13
|
page: Page;
|
|
16
14
|
}, PT extends PageTypes<PI> = PageTypes<PI>>(types?: PT, slug?: string | string[]) => Promise<{
|
|
17
|
-
page: import("vue").Ref<
|
|
18
|
-
status: import("vue").Ref<AsyncDataRequestStatus, AsyncDataRequestStatus>;
|
|
15
|
+
page: import("vue").Ref<PI[Extract<keyof PT, string>] | undefined, PI[Extract<keyof PT, string>] | undefined>;
|
|
16
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
19
17
|
} | {
|
|
20
|
-
page: import("vue").Ref<Page |
|
|
21
|
-
status: import("vue").Ref<AsyncDataRequestStatus, AsyncDataRequestStatus>;
|
|
18
|
+
page: import("vue").Ref<Page | undefined, Page | undefined>;
|
|
19
|
+
status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
|
|
22
20
|
}>;
|
|
23
21
|
export {};
|
|
@@ -1,80 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useGStore: import("pinia").StoreDefinition<"gluhar", Pick<{
|
|
3
|
-
defaultSeo: import("vue").Ref<{
|
|
4
|
-
title?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
5
|
-
description?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
6
|
-
ogImage?: {
|
|
7
|
-
asset?: {
|
|
8
|
-
url: string;
|
|
9
|
-
} | undefined;
|
|
10
|
-
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
11
|
-
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
12
|
-
} | undefined;
|
|
13
|
-
}, Seo | {
|
|
14
|
-
title?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
15
|
-
description?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
16
|
-
ogImage?: {
|
|
17
|
-
asset?: {
|
|
18
|
-
url: string;
|
|
19
|
-
} | undefined;
|
|
20
|
-
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
21
|
-
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
22
|
-
} | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
setDefaultSeo: (seo: Seo) => void;
|
|
25
|
-
mobileMenuActive: import("vue").Ref<boolean, boolean>;
|
|
26
|
-
toggleMobileMenu: () => void;
|
|
27
|
-
closeMobileMenu: () => void;
|
|
28
|
-
}, "defaultSeo" | "mobileMenuActive">, Pick<{
|
|
29
|
-
defaultSeo: import("vue").Ref<{
|
|
30
|
-
title?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
31
|
-
description?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
32
|
-
ogImage?: {
|
|
33
|
-
asset?: {
|
|
34
|
-
url: string;
|
|
35
|
-
} | undefined;
|
|
36
|
-
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
37
|
-
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
}, Seo | {
|
|
40
|
-
title?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
41
|
-
description?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
42
|
-
ogImage?: {
|
|
43
|
-
asset?: {
|
|
44
|
-
url: string;
|
|
45
|
-
} | undefined;
|
|
46
|
-
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
47
|
-
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
48
|
-
} | undefined;
|
|
49
|
-
}>;
|
|
50
|
-
setDefaultSeo: (seo: Seo) => void;
|
|
51
|
-
mobileMenuActive: import("vue").Ref<boolean, boolean>;
|
|
52
|
-
toggleMobileMenu: () => void;
|
|
53
|
-
closeMobileMenu: () => void;
|
|
54
|
-
}, never>, Pick<{
|
|
55
|
-
defaultSeo: import("vue").Ref<{
|
|
56
|
-
title?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
57
|
-
description?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
58
|
-
ogImage?: {
|
|
59
|
-
asset?: {
|
|
60
|
-
url: string;
|
|
61
|
-
} | undefined;
|
|
62
|
-
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
63
|
-
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
}, Seo | {
|
|
66
|
-
title?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
67
|
-
description?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
68
|
-
ogImage?: {
|
|
69
|
-
asset?: {
|
|
70
|
-
url: string;
|
|
71
|
-
} | undefined;
|
|
72
|
-
caption?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
73
|
-
alt?: import("@gluhar/i18n/types").LocaleString | undefined;
|
|
74
|
-
} | undefined;
|
|
75
|
-
}>;
|
|
76
|
-
setDefaultSeo: (seo: Seo) => void;
|
|
77
|
-
mobileMenuActive: import("vue").Ref<boolean, boolean>;
|
|
78
|
-
toggleMobileMenu: () => void;
|
|
79
|
-
closeMobileMenu: () => void;
|
|
80
|
-
}, "setDefaultSeo" | "toggleMobileMenu" | "closeMobileMenu">>;
|
|
1
|
+
export declare const useGStore: any;
|
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gluhar/app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-next.0",
|
|
4
4
|
"description": "Gluhar main package. This combines and configures @gluhar/theme, @gluhar/i18n, @gluhar/sanity and @gluhar/core into one main package. Provides numerous components, composables, utils and types.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/gluharco/gluhar.git",
|
|
8
|
+
"directory": "packages/app"
|
|
9
|
+
},
|
|
5
10
|
"license": "MIT",
|
|
6
11
|
"type": "module",
|
|
7
12
|
"exports": {
|
|
8
13
|
".": {
|
|
9
|
-
"types": "./dist/types.d.
|
|
10
|
-
"import": "./dist/module.mjs"
|
|
11
|
-
"require": "./dist/module.cjs"
|
|
14
|
+
"types": "./dist/types.d.mts",
|
|
15
|
+
"import": "./dist/module.mjs"
|
|
12
16
|
},
|
|
13
17
|
"./utils/*": {
|
|
14
18
|
"types": "./dist/runtime/utils/*.d.ts",
|
|
@@ -19,8 +23,8 @@
|
|
|
19
23
|
"import": "./dist/runtime/types/index.js"
|
|
20
24
|
}
|
|
21
25
|
},
|
|
22
|
-
"main": "./dist/module.
|
|
23
|
-
"types": "./dist/types.d.
|
|
26
|
+
"main": "./dist/module.mjs",
|
|
27
|
+
"types": "./dist/types.d.mts",
|
|
24
28
|
"files": [
|
|
25
29
|
"dist",
|
|
26
30
|
"CHANGELOG.md"
|
|
@@ -28,6 +32,7 @@
|
|
|
28
32
|
"scripts": {
|
|
29
33
|
"gluhar": "npm run gluhar --prefix ../.. -- --cwd=$PWD",
|
|
30
34
|
"build": "npm run gluhar build -- -t module",
|
|
35
|
+
"prepack": "npm run build",
|
|
31
36
|
"dev": "nuxi dev playground",
|
|
32
37
|
"dev:build": "nuxi build playground",
|
|
33
38
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
@@ -36,32 +41,36 @@
|
|
|
36
41
|
"test:watch": "vitest watch"
|
|
37
42
|
},
|
|
38
43
|
"dependencies": {
|
|
39
|
-
"@gluhar/core": "^
|
|
40
|
-
"@gluhar/i18n": "^
|
|
41
|
-
"@gluhar/sanity": "^
|
|
42
|
-
"@gluhar/theme": "^
|
|
44
|
+
"@gluhar/core": "^6.0.0-next.0",
|
|
45
|
+
"@gluhar/i18n": "^6.0.0-next.0",
|
|
46
|
+
"@gluhar/sanity": "^6.0.0-next.0",
|
|
47
|
+
"@gluhar/theme": "^6.0.0-next.0",
|
|
43
48
|
"@gluhar/v-gsap-nuxt": "^1.5.1",
|
|
44
49
|
"@nuxt/image": "^1.10.0",
|
|
45
|
-
"@nuxt/kit": "^
|
|
46
|
-
"@pinia/nuxt": "^0.
|
|
50
|
+
"@nuxt/kit": "^4.5.0",
|
|
51
|
+
"@pinia/nuxt": "^0.11.2",
|
|
47
52
|
"@sanity/image-url": "^1.1.0",
|
|
48
53
|
"dayjs-nuxt": "^2.1.11",
|
|
49
54
|
"defu": "^6.1.4",
|
|
50
55
|
"lenis": "^1.3.11",
|
|
51
|
-
"pinia": "^
|
|
56
|
+
"pinia": "^3.0.3",
|
|
52
57
|
"v-gsap-nuxt": "^1.4.2"
|
|
53
58
|
},
|
|
54
59
|
"devDependencies": {
|
|
60
|
+
"@gluhar/fluid": "^6.0.0-next.0",
|
|
55
61
|
"@nuxt/devtools": "latest",
|
|
56
|
-
"@nuxt/eslint-config": "^
|
|
57
|
-
"@nuxt/module-builder": "^0.
|
|
58
|
-
"@nuxt/schema": "^
|
|
59
|
-
"@nuxt/test-utils": "^3.
|
|
60
|
-
"@types/node": "^
|
|
62
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
63
|
+
"@nuxt/module-builder": "^1.0.3",
|
|
64
|
+
"@nuxt/schema": "^4.5.0",
|
|
65
|
+
"@nuxt/test-utils": "^3.19.2",
|
|
66
|
+
"@types/node": "^22.5.4",
|
|
61
67
|
"changelogen": "^0.5.5",
|
|
62
68
|
"eslint": "^9.10.0",
|
|
63
|
-
"nuxt": "^
|
|
64
|
-
"vitest": "^2.
|
|
69
|
+
"nuxt": "^4.5.0",
|
|
70
|
+
"vitest": "^3.2.4"
|
|
71
|
+
},
|
|
72
|
+
"peerDependencies": {
|
|
73
|
+
"nuxt": "^4.5.0"
|
|
65
74
|
},
|
|
66
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "8773cd99c43cbe6a7dc415e50af8b13a7b8d4daf"
|
|
67
76
|
}
|