@vuetify/one 2.3.1 → 2.5.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.
@@ -1 +1 @@
1
- .v-footer__image[data-v-31335c0a]{display:flex;height:40px;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.social-link[data-v-7a9688b8] .v-icon{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity));text-decoration:none;transition:.2s ease-in-out}.social-link[data-v-7a9688b8] .v-icon:hover{color:rgb(var(--v-theme-primary))}.v-app-bar[data-v-ad7620cd] .v-toolbar__image:after{content:"";position:absolute;inset:0;-webkit-backdrop-filter:blur(calc(var(--3cb343b4) * 1px));backdrop-filter:blur(calc(var(--3cb343b4) * 1px));background:linear-gradient(15deg,#000000a6,#00000092,#0000007f,#0000006d,#0000005d,#0000004e,#00000041,#00000034,#00000029,#00000020,#00000017,#00000010,#0000000a,#00000006,#00000003,#00000001,#0000)}.v-list-item-subtitle[data-v-ad7620cd]{color:currentColor;opacity:var(--v-high-emphasis-opacity)}
1
+ .v-footer__image[data-v-31335c0a]{display:flex;height:40px;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.social-link[data-v-7a9688b8] .v-icon{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity));text-decoration:none;transition:.2s ease-in-out}.social-link[data-v-7a9688b8] .v-icon:hover{color:rgb(var(--v-theme-primary))}.v-app-bar[data-v-16020f45] .v-toolbar__image:after{content:"";position:absolute;inset:0;-webkit-backdrop-filter:blur(calc(var(--3ce3c21e) * 1px));backdrop-filter:blur(calc(var(--3ce3c21e) * 1px));background:linear-gradient(15deg,#000000a6,#00000092,#0000007f,#0000006d,#0000005d,#0000004e,#00000041,#00000034,#00000029,#00000020,#00000017,#00000010,#0000000a,#00000006,#00000003,#00000001,#0000)}.v-list-item-subtitle[data-v-16020f45]{color:currentColor;opacity:var(--v-high-emphasis-opacity)}
@@ -0,0 +1,65 @@
1
+ import * as pinia from 'pinia';
2
+ import { Ref, ShallowRef } from 'vue';
3
+
4
+ type VOneTeam = {
5
+ id: string;
6
+ name: string;
7
+ inviteCode: string;
8
+ members: {
9
+ id: string;
10
+ name: string;
11
+ picture: string;
12
+ }[];
13
+ owner: {
14
+ id: string;
15
+ name: string;
16
+ picture: string;
17
+ };
18
+ };
19
+
20
+ interface VOneSponsorship {
21
+ id: string;
22
+ platform: string;
23
+ interval: 'month' | 'year' | 'once';
24
+ target: string;
25
+ tierName: string;
26
+ amount: number;
27
+ isActive: boolean;
28
+ createdAt: Date;
29
+ }
30
+ interface VOneIdentity {
31
+ id: string;
32
+ emails: string[];
33
+ provider: string;
34
+ userId: string;
35
+ userHandle: string;
36
+ primary: boolean;
37
+ }
38
+ interface VOneUser {
39
+ id: string;
40
+ isAdmin: boolean;
41
+ role: 'super' | 'admin' | 'editor' | 'user';
42
+ name: string;
43
+ picture: string;
44
+ settings: Record<string, any> | null;
45
+ createdAt: string;
46
+ identities: VOneIdentity[];
47
+ sponsorships: VOneSponsorship[];
48
+ team: VOneTeam;
49
+ }
50
+ interface AuthState {
51
+ user: Ref<VOneUser | null>;
52
+ url: string;
53
+ dialog: Ref<boolean>;
54
+ isLoading: ShallowRef<boolean>;
55
+ verify: (force?: boolean) => Promise<void>;
56
+ findIdentity: (provider: string) => VOneIdentity | undefined;
57
+ login: (provider?: 'github' | 'discord' | 'shopify') => Promise<void>;
58
+ logout: (identity?: string) => Promise<void>;
59
+ lastLoginProvider: () => string | null;
60
+ sync: () => Promise<void>;
61
+ }
62
+ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<AuthState, "isLoading" | "user" | "url" | "dialog">, Pick<AuthState, never>, Pick<AuthState, "sync" | "verify" | "findIdentity" | "login" | "logout" | "lastLoginProvider">>;
63
+
64
+ export { useAuthStore };
65
+ export type { AuthState, VOneIdentity, VOneSponsorship, VOneUser };
@@ -0,0 +1,7 @@
1
+ import "pinia";
2
+ import "vue";
3
+ import { a as e } from "../auth-fh7sX38H.js";
4
+ import "vue-router";
5
+ export {
6
+ e as useAuthStore
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/one",
3
- "version": "2.3.1",
3
+ "version": "2.5.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -15,6 +15,7 @@
15
15
  "types": "./dist/index.d.ts",
16
16
  "default": "./dist/index.js"
17
17
  },
18
+ "./stores/auth": "./dist/stores/auth.js",
18
19
  "./styles": {
19
20
  "import": "./dist/index.css"
20
21
  },
@@ -28,7 +29,7 @@
28
29
  "release": "pnpm build:dev && pnpm version && git push --follow-tags",
29
30
  "watch": "pnpm build:dev --watch",
30
31
  "preview": "vite preview",
31
- "lint": "eslint . --ext .ts,.vue",
32
+ "lint": "eslint . --ext .ts,.vue && vue-tsc --pretty -p tsconfig.json --noEmit",
32
33
  "lint:fix": "eslint . --ext .ts,.vue --fix",
33
34
  "test": "vitest",
34
35
  "coverage": "vitest run --coverage",
@@ -42,49 +43,49 @@
42
43
  "vuetify": "^3.8.0"
43
44
  },
44
45
  "devDependencies": {
45
- "@babel/types": "^7.27.7",
46
+ "@babel/types": "^7.28.4",
46
47
  "@fontsource/roboto": "^5.2.6",
47
48
  "@mdi/js": "7.4.47",
48
49
  "@rollup/plugin-alias": "^5.1.1",
49
50
  "@types/lodash-es": "^4.17.12",
50
- "@types/node": "^24.0.4",
51
- "@vitejs/plugin-vue": "^6.0.0",
52
- "@vitest/eslint-plugin": "^1.2.7",
53
- "@vueuse/router": "^13.4.0",
51
+ "@types/node": "^24.3.1",
52
+ "@vitejs/plugin-vue": "^6.0.1",
53
+ "@vitest/eslint-plugin": "^1.3.9",
54
+ "@vueuse/router": "^13.9.0",
54
55
  "conventional-changelog-cli": "^5.0.0",
55
56
  "conventional-changelog-vuetify": "^2.0.2",
56
57
  "conventional-github-releaser": "^3.1.5",
57
- "core-js": "^3.43.0",
58
+ "core-js": "^3.45.1",
58
59
  "date-fns": "^4.1.0",
59
- "eslint": "^9.29.0",
60
+ "eslint": "^9.35.0",
60
61
  "eslint-config-flat-gitignore": "^2.1.0",
61
- "eslint-config-vuetify": "^4.0.0",
62
+ "eslint-config-vuetify": "^4.1.0",
62
63
  "jsdom": "^26.1.0",
63
64
  "lodash-es": "^4.17.21",
64
65
  "pinia": "^3.0.3",
65
66
  "rimraf": "^6.0.1",
66
- "rollup": "^4.44.1",
67
- "rollup-plugin-dts": "^6.2.1",
68
- "sass": "^1.89.2",
69
- "taze": "^19.1.0",
67
+ "rollup": "^4.50.1",
68
+ "rollup-plugin-dts": "^6.2.3",
69
+ "sass": "^1.92.1",
70
+ "taze": "^19.6.0",
70
71
  "typescript": "5.8.3",
71
- "unplugin-auto-import": "^19.3.0",
72
- "unplugin-fonts": "^1.3.1",
73
- "unplugin-vue-components": "^28.7.0",
74
- "unplugin-vue-router": "^0.12.0",
75
- "vite": "^7.0.0",
76
- "vite-plugin-vuetify": "^2.1.1",
72
+ "unplugin-auto-import": "^20.1.0",
73
+ "unplugin-fonts": "^1.4.0",
74
+ "unplugin-vue-components": "^29.0.0",
75
+ "unplugin-vue-router": "^0.15.0",
76
+ "vite": "^7.0.7",
77
+ "vite-plugin-vuetify": "^2.1.2",
77
78
  "vite-tsconfig-paths": "^5.1.4",
78
79
  "vitest": "^3.2.4",
79
- "vue": "^3.5.17",
80
+ "vue": "^3.5.21",
80
81
  "vue-router": "^4.5.1",
81
- "vue-tsc": "^2.2.10",
82
- "vuetify": "^3.8.11"
82
+ "vue-tsc": "^3.0.6",
83
+ "vuetify": "^3.10.0"
83
84
  },
84
- "packageManager": "pnpm@10.12.3",
85
+ "packageManager": "pnpm@10.15.1",
85
86
  "dependencies": {
86
87
  "vite-plugin-pages": "^0.33.1",
87
- "vite-plugin-vue-layouts-next": "^0.1.5"
88
+ "vite-plugin-vue-layouts-next": "^1.0.0"
88
89
  },
89
90
  "pnpm": {
90
91
  "onlyBuiltDependencies": [
@@ -92,10 +93,6 @@
92
93
  "core-js",
93
94
  "esbuild",
94
95
  "unrs-resolver"
95
- ],
96
- "overrides": {
97
- "unplugin-fonts>vite": "^7.0.0",
98
- "vite-plugin-vue-layouts-next>vite": "^7.0.0"
99
- }
96
+ ]
100
97
  }
101
98
  }