@vuetify/v0 0.0.22 → 0.0.23

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,3 +1,3 @@
1
1
  import "../index-DYSwiS9k.mjs";
2
- import { _ as isUndefined, a as genId, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as debounce, l as isNaN, m as isPrimitive, n as instanceName, o as isArray, p as isObject, r as clamp, s as isBoolean, t as instanceExists, u as isNull, v as mergeDeep, y as range } from "../index-D3xuqKI0.mjs";
2
+ import { _ as isUndefined, a as genId, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as debounce, l as isNaN, m as isPrimitive, n as instanceName, o as isArray, p as isObject, r as clamp, s as isBoolean, t as instanceExists, u as isNull, v as mergeDeep, y as range } from "../index-C8YcMooA.mjs";
3
3
  export { clamp, debounce, genId, instanceExists, instanceName, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
@@ -1,3 +1,3 @@
1
- import { _ as isUndefined, a as genId, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as debounce, l as isNaN, m as isPrimitive, n as instanceName, o as isArray, p as isObject, r as clamp, s as isBoolean, t as instanceExists, u as isNull, v as mergeDeep, y as range } from "../utilities-CKvM4p7S.mjs";
1
+ import { _ as isUndefined, a as genId, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as debounce, l as isNaN, m as isPrimitive, n as instanceName, o as isArray, p as isObject, r as clamp, s as isBoolean, t as instanceExists, u as isNull, v as mergeDeep, y as range } from "../utilities-9i1hJnMd.mjs";
2
2
 
3
3
  export { clamp, debounce, genId, instanceExists, instanceName, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
@@ -369,13 +369,27 @@ function debounce(fn, delay) {
369
369
 
370
370
  //#endregion
371
371
  //#region src/utilities/instance.ts
372
+ /**
373
+ * Vue 3.6+ exposes `currentInstance` for Vapor mode compatibility.
374
+ * `getCurrentInstance()` returns null in Vapor components by design,
375
+ * so we access `currentInstance` directly when available.
376
+ *
377
+ * Uses dynamic key to avoid bundler static analysis warnings.
378
+ *
379
+ * @see https://github.com/orgs/vuejs/discussions/13629
380
+ * @internal
381
+ */
382
+ const INSTANCE_KEY = "currentInstance";
383
+ function getInstanceCompat() {
384
+ const vueExports = Vue;
385
+ if (INSTANCE_KEY in vueExports) return vueExports[INSTANCE_KEY];
386
+ return Vue.getCurrentInstance();
387
+ }
372
388
  function instanceExists() {
373
- if (Vue.version.startsWith("3.6.")) return Vue.currentInstance !== null;
374
- return Vue.getCurrentInstance() !== null;
389
+ return !/* @__PURE__ */ isNull(getInstanceCompat());
375
390
  }
376
391
  function instanceName() {
377
- if (Vue.version.startsWith("3.6.")) return Vue.currentInstance?.type?.name;
378
- return Vue.getCurrentInstance()?.type?.name;
392
+ return getInstanceCompat()?.type?.name;
379
393
  }
380
394
 
381
395
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/v0",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Vuetify0",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.mjs",
@@ -20,10 +20,12 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@vue/test-utils": "^2.4.6",
23
- "tsdown": "^0.16.1",
23
+ "tsdown": "^0.16.8",
24
+ "tsx": "^4.21.0",
24
25
  "typescript": "5.9.3",
25
26
  "unplugin-vue": "^7.1.0",
26
- "vue": "3.5.24"
27
+ "vue": "3.5.24",
28
+ "vue-component-meta": "^3.2.2"
27
29
  },
28
30
  "exports": {
29
31
  ".": "./dist/index.mjs",
@@ -35,8 +37,12 @@
35
37
  "./package.json": "./package.json",
36
38
  "./browser": "./dist/browser/index.js"
37
39
  },
40
+ "dependencies": {
41
+ "@js-temporal/polyfill": "0.5.1"
42
+ },
38
43
  "scripts": {
39
- "build": "tsdown",
44
+ "build": "tsdown && pnpm generate:web-types",
45
+ "generate:web-types": "tsx scripts/generate-web-types.ts",
40
46
  "typecheck": "vue-tsc --noEmit --incremental"
41
47
  }
42
48
  }