@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 CHANGED
@@ -18,4 +18,5 @@ interface GluharAppOptions {
18
18
  }
19
19
  declare const _default: _nuxt_schema.NuxtModule<GluharAppOptions, GluharAppOptions, false>;
20
20
 
21
- export { type GluharAppOptions, _default as default };
21
+ export { _default as default };
22
+ export type { GluharAppOptions };
package/dist/module.d.ts CHANGED
@@ -18,4 +18,5 @@ interface GluharAppOptions {
18
18
  }
19
19
  declare const _default: _nuxt_schema.NuxtModule<GluharAppOptions, GluharAppOptions, false>;
20
20
 
21
- export { type GluharAppOptions, _default as default };
21
+ export { _default as default };
22
+ export type { GluharAppOptions };
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
3
  "configKey": "gluhar",
4
- "version": "5.2.0",
4
+ "version": "6.0.0-next.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.3",
7
7
  "unbuild": "2.0.0"
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
- terserOptions: {
48
- format: {
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<PickFrom<PI[Extract<keyof PT, string>], KeysOf<PI[Extract<keyof PT, string>]>> | null, PickFrom<PI[Extract<keyof PT, string>], KeysOf<PI[Extract<keyof PT, string>]>> | null>;
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 | null, Page | null>;
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
- import type { Seo } from "@gluhar/sanity/types";
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
@@ -4,4 +4,4 @@ import type { default as Module } from './module.js'
4
4
 
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
- export { type GluharAppOptions, default } from './module.js'
7
+ export { default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -4,4 +4,4 @@ import type { default as Module } from './module'
4
4
 
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
- export { type GluharAppOptions, default } from './module'
7
+ export { default } from './module'
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
- "version": "5.2.0",
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.ts",
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.cjs",
23
- "types": "./dist/types.d.ts",
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": "^4.2.0",
40
- "@gluhar/i18n": "^4.2.0",
41
- "@gluhar/sanity": "^5.2.0",
42
- "@gluhar/theme": "^4.1.0",
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": "^3.13.1",
46
- "@pinia/nuxt": "^0.5.4",
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": "^2.2.2",
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": "^0.5.6",
57
- "@nuxt/module-builder": "^0.8.3",
58
- "@nuxt/schema": "^3.13.1",
59
- "@nuxt/test-utils": "^3.14.1",
60
- "@types/node": "^20.16.5",
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": "^3.13.1",
64
- "vitest": "^2.0.5"
69
+ "nuxt": "^4.5.0",
70
+ "vitest": "^3.2.4"
71
+ },
72
+ "peerDependencies": {
73
+ "nuxt": "^4.5.0"
65
74
  },
66
- "gitHead": "10ebf6500c71e1beeceece4de90467b26aa67a21"
75
+ "gitHead": "8773cd99c43cbe6a7dc415e50af8b13a7b8d4daf"
67
76
  }