@vuetify/one 3.0.0 → 3.0.2

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.
@@ -135,13 +135,12 @@ const V = $("auth-core", () => {
135
135
  window.location.assign(p + "?next=" + encodeURIComponent(window.location.href));
136
136
  return;
137
137
  }
138
- const h = 400, b = 600, W = window.screenX + (window.innerWidth - h) / 2, _ = window.screenY + (window.innerHeight - b) / 2, u = window.open("", "vuetify:authorize:popup", `popup,left=${W},top=${_},width=${h},height=${b},resizable`);
138
+ const h = 400, b = 600, W = window.screenX + (window.innerWidth - h) / 2, _ = window.screenY + (window.innerHeight - b) / 2, u = window.open(p, "vuetify:authorize:popup", `popup,left=${W},top=${_},width=${h},height=${b},resizable`);
139
139
  if (!u) {
140
140
  const E = /* @__PURE__ */ new Error("Failed to open popup");
141
141
  r.value.onError?.(E), s.value = !1;
142
142
  return;
143
143
  }
144
- u.location.href = p;
145
144
  let y = -1, A = -1;
146
145
  function N(E) {
147
146
  if (E.origin === e.url && E.data?.type === "auth-response") {
@@ -607,7 +606,7 @@ const X = $("one", () => {
607
606
  clearTeamQuery: v
608
607
  };
609
608
  }), ce = typeof window < "u", Y = $("auth", () => {
610
- const e = V(), i = U(), t = ae(), s = Q(), r = X(), n = ue(), c = J(), a = P(() => e.user), d = P(() => e.dialog), g = P(() => e.isLoading), R = P(() => e.isAuthenticated), O = P(() => e.isSuper), I = P(() => e.isAdmin), v = P(() => e.isEditor);
609
+ const e = V(), i = U(), t = ae(), s = Q(), r = X(), n = ue(), c = J(), a = P(() => e.user), d = P(e, "dialog"), g = P(() => e.isLoading), R = P(() => e.isAuthenticated), O = P(() => e.isSuper), I = P(() => e.isAdmin), v = P(() => e.isEditor);
611
610
  let T = !!e.lastLoginProvider();
612
611
  j(a, (u) => {
613
612
  if (!ce || !u?.settings)
package/dist/index.d.ts CHANGED
@@ -99,7 +99,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
99
99
  };
100
100
  } | null>>;
101
101
  url: string;
102
- dialog: Readonly<globalThis.Ref<boolean, boolean>>;
102
+ dialog: globalThis.Ref<boolean, boolean>;
103
103
  isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
104
104
  isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
105
105
  isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
@@ -200,7 +200,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
200
200
  };
201
201
  } | null>>;
202
202
  url: string;
203
- dialog: Readonly<globalThis.Ref<boolean, boolean>>;
203
+ dialog: globalThis.Ref<boolean, boolean>;
204
204
  isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
205
205
  isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
206
206
  isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
@@ -301,7 +301,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
301
301
  };
302
302
  } | null>>;
303
303
  url: string;
304
- dialog: Readonly<globalThis.Ref<boolean, boolean>>;
304
+ dialog: globalThis.Ref<boolean, boolean>;
305
305
  isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
306
306
  isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
307
307
  isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, openBlock as d, createBlock as m, unref as e, computed as C, createSlots as U, withCtx as s, createElementVNode as g, toDisplayString as x, createVNode as n, createTextVNode as S, normalizeStyle as it, createCommentVNode as b, renderSlot as w, shallowRef as M, watch as H, withModifiers as _e, useModel as W, mergeModels as rt, createElementBlock as k, Fragment as D, nextTick as be, renderList as K, mergeProps as q, withDirectives as N, vShow as Me, isRef as R, resolveComponent as lt, watchEffect as jt, ref as Z, onMounted as Ie, toRef as ge, normalizeClass as Ht, useSlots as ut, normalizeProps as ct, guardReactiveProps as dt, onBeforeMount as je, onBeforeUnmount as Rt, useCssVars as qt, onServerPrefetch as Gt } from "vue";
2
- import { u as J, a as E, b as P, c as z, d as Ce, e as Ae, f as De, g as ee } from "./auth-Bgoyy62h.js";
3
- import { h as ji } from "./auth-Bgoyy62h.js";
2
+ import { u as J, a as E, b as P, c as z, d as Ce, e as Ae, f as De, g as ee } from "./auth-DqaHPcFk.js";
3
+ import { h as ji } from "./auth-DqaHPcFk.js";
4
4
  import { VSnackbarQueue as Wt } from "vuetify/components/VSnackbarQueue";
5
5
  import { mdiAccountGroupOutline as pt, mdiStorefront as Kt, mdiGoogle as Yt, mdiSync as Qt, mdiSyncOff as Xt, mdiLogoutVariant as Jt, mdiFullscreenExit as eo, mdiFullscreen as to, mdiCheck as ke, mdiSelect as oo, mdiSpaceInvaders as mt, mdiImageFilterHdr as ft, mdiTransmissionTower as vt, mdiRocketLaunchOutline as gt, mdiHome as no, mdiTextBox as so, mdiWhiteBalanceSunny as ao, mdiWeatherNight as io, mdiDesktopTowerMonitor as ro, mdiContrastCircle as lo, mdiCog as uo, mdiCogOutline as co, mdiShieldKeyOutline as po, mdiContentCopy as He, mdiFileDocument as yt, mdiKey as mo, mdiPlus as fo, mdiRefresh as vo, mdiKeyOutline as go, mdiCreditCardSettingsOutline as yo, mdiRocketOutline as _o, mdiCheckCircleOutline as Se, mdiCreditCard as ho, mdiReload as bo, mdiPlaylistCheck as Co, mdiCreditCardOutline as ko, mdiOpenInNew as Te, mdiMedal as Vo, mdiHandHeart as xo, mdiHandHeartOutline as $o, mdiCloudDownload as Lo, mdiTrayArrowDown as tt, mdiAccountGroup as wo, mdiAccount as So, mdiLinkVariant as Mo, mdiShieldLock as ot, mdiAccountRemoveOutline as Io, mdiExitToApp as Ao, mdiPin as Do, mdiPinOutline as To, mdiEmailOpenOutline as Re, mdiEmailVariant as qe, mdiBell as Uo, mdiInboxOutline as Po, mdiInboxFullOutline as Oo, mdiBillboard as zo, mdiBellOutline as Bo, mdiViewDashboardOutline as Eo, mdiCrown as Fo, mdiArrowULeftBottom as Zo, mdiAtomVariant as No, mdiLogin as nt, mdiDotsVertical as jo, mdiShieldStarOutline as Ho } from "@mdi/js";
6
6
  import { VListItem as se, VList as ne, VListSubheader as Ro, VListItemTitle as _t, VListItemSubtitle as qo } from "vuetify/components/VList";
@@ -644,13 +644,13 @@ const gn = { class: "text-body-2" }, wt = /* @__PURE__ */ y({
644
644
  style: { "max-width": "300px" },
645
645
  variant: "outlined"
646
646
  }, {
647
- selection: s(({ item: l }) => [
647
+ selection: s(({ item: l, internalItem: p }) => [
648
648
  n(I, {
649
- icon: l.props.prependIcon,
649
+ icon: p.props.prependIcon,
650
650
  size: "x-small",
651
651
  start: ""
652
652
  }, null, 8, ["icon"]),
653
- S(" " + x(l.title), 1)
653
+ S(" " + x(p.title), 1)
654
654
  ]),
655
655
  _: 1
656
656
  }, 8, ["modelValue"]),
@@ -1067,7 +1067,7 @@ const Oe = Y("settings", () => {
1067
1067
  mandatory: ""
1068
1068
  }, {
1069
1069
  default: s(() => [
1070
- n(fe, { dense: "" }, {
1070
+ n(fe, { density: "compact" }, {
1071
1071
  default: s(() => [
1072
1072
  (d(!0), k(D, null, K(l.value, ($, pe) => (d(), m(le, {
1073
1073
  key: pe,
@@ -1487,8 +1487,7 @@ const Un = /* @__PURE__ */ y({
1487
1487
  n(f),
1488
1488
  !e(t).key || !e(t).regenerated ? (d(), m(fe, {
1489
1489
  key: 0,
1490
- class: "my-4",
1491
- justify: "center"
1490
+ class: "my-4 justify-center"
1492
1491
  }, {
1493
1492
  default: s(() => [
1494
1493
  n(le, { cols: "auto" }, {
@@ -95,7 +95,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
95
95
  };
96
96
  } | null>>;
97
97
  url: string;
98
- dialog: Readonly<globalThis.Ref<boolean, boolean>>;
98
+ dialog: globalThis.Ref<boolean, boolean>;
99
99
  isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
100
100
  isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
101
101
  isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
@@ -196,7 +196,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
196
196
  };
197
197
  } | null>>;
198
198
  url: string;
199
- dialog: Readonly<globalThis.Ref<boolean, boolean>>;
199
+ dialog: globalThis.Ref<boolean, boolean>;
200
200
  isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
201
201
  isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
202
202
  isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
@@ -297,7 +297,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
297
297
  };
298
298
  } | null>>;
299
299
  url: string;
300
- dialog: Readonly<globalThis.Ref<boolean, boolean>>;
300
+ dialog: globalThis.Ref<boolean, boolean>;
301
301
  isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
302
302
  isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
303
303
  isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
@@ -1,4 +1,4 @@
1
- import { a as e } from "../auth-Bgoyy62h.js";
1
+ import { a as e } from "../auth-DqaHPcFk.js";
2
2
  import "lodash-es";
3
3
  import "pinia";
4
4
  import "vue-router";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/one",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -32,10 +32,10 @@
32
32
  "pinia": "^3.0.0",
33
33
  "vue": "^3.5.13",
34
34
  "vue-router": "^4.0.0",
35
- "vuetify": "^3.8.0"
35
+ "vuetify": "^4.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@vuetify/auth": "0.1.6"
38
+ "@vuetify/auth": "0.1.8"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@babel/types": "^7.28.4",
@@ -68,13 +68,13 @@
68
68
  "vite": "^7.0.7",
69
69
  "vite-plugin-pages": "^0.33.1",
70
70
  "vite-plugin-vue-layouts-next": "^1.0.0",
71
- "vite-plugin-vuetify": "^2.1.2",
71
+ "vite-plugin-vuetify": "^2.1.3",
72
72
  "vite-tsconfig-paths": "^5.1.4",
73
73
  "vitest": "^3.2.4",
74
74
  "vue": "^3.5.13",
75
75
  "vue-router": "^4.5.1",
76
76
  "vue-tsc": "^3.0.6",
77
- "vuetify": "^3.8.0"
77
+ "vuetify": "^4.0.0"
78
78
  },
79
79
  "scripts": {
80
80
  "dev": "vite",