@vuetify/v0 0.0.20 → 0.0.22

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
- import "../index-4jSy8KIt.mjs";
2
- import { _ as range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "../index-CjzlIAtF.mjs";
3
- export { clamp, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
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";
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 range, a as isBoolean, c as isNull, d as isObject, f as isPrimitive, g as mergeDeep, h as isUndefined, i as isArray, l as isNullOrUndefined, m as isSymbol, n as debounce, o as isFunction, p as isString, r as genId, s as isNaN, t as clamp, u as isNumber } from "../utilities-BrFKLHFS.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-CKvM4p7S.mjs";
2
2
 
3
- export { clamp, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
3
+ export { clamp, debounce, genId, instanceExists, instanceName, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
@@ -1,3 +1,5 @@
1
+ import * as Vue from "vue";
2
+
1
3
  //#region src/utilities/helpers.ts
2
4
  /**
3
5
  * Checks if a value is a function
@@ -256,18 +258,24 @@ function isNaN(item) {
256
258
  * mergeDeep({ arr: [1, 2] }, { arr: [3] }) // { arr: [3] }
257
259
  * ```
258
260
  */
261
+ const UNSAFE_KEYS = new Set([
262
+ "__proto__",
263
+ "constructor",
264
+ "prototype"
265
+ ]);
259
266
  /* @__NO_SIDE_EFFECTS__ */
260
267
  function mergeDeep(target, ...sources) {
261
268
  if (sources.length === 0) return target;
262
269
  const source = sources.shift();
263
- if (/* @__PURE__ */ isObject(target) && /* @__PURE__ */ isObject(source)) {
264
- for (const key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
265
- const sourceValue = source[key];
266
- const targetValue = target[key];
267
- if (/* @__PURE__ */ isObject(sourceValue)) {
268
- if (!/* @__PURE__ */ isObject(targetValue)) Object.assign(target, { [key]: {} });
269
- } else Object.assign(target, { [key]: sourceValue });
270
- }
270
+ if (/* @__PURE__ */ isObject(target) && /* @__PURE__ */ isObject(source)) for (const key in source) {
271
+ if (UNSAFE_KEYS.has(key)) continue;
272
+ if (!Object.prototype.hasOwnProperty.call(source, key)) continue;
273
+ const sourceValue = source[key];
274
+ const targetValue = target[key];
275
+ if (/* @__PURE__ */ isObject(sourceValue)) {
276
+ if (!/* @__PURE__ */ isObject(targetValue)) Object.assign(target, { [key]: {} });
277
+ target[key];
278
+ } else Object.assign(target, { [key]: sourceValue });
271
279
  }
272
280
  return /* @__PURE__ */ mergeDeep(target, ...sources);
273
281
  }
@@ -360,4 +368,15 @@ function debounce(fn, delay) {
360
368
  }
361
369
 
362
370
  //#endregion
363
- export { range as _, isBoolean as a, isNull as c, isObject as d, isPrimitive as f, mergeDeep as g, isUndefined as h, isArray as i, isNullOrUndefined as l, isSymbol as m, debounce as n, isFunction as o, isString as p, genId as r, isNaN as s, clamp as t, isNumber as u };
371
+ //#region src/utilities/instance.ts
372
+ function instanceExists() {
373
+ if (Vue.version.startsWith("3.6.")) return Vue.currentInstance !== null;
374
+ return Vue.getCurrentInstance() !== null;
375
+ }
376
+ function instanceName() {
377
+ if (Vue.version.startsWith("3.6.")) return Vue.currentInstance?.type?.name;
378
+ return Vue.getCurrentInstance()?.type?.name;
379
+ }
380
+
381
+ //#endregion
382
+ export { isUndefined as _, genId as a, isFunction as c, isNullOrUndefined as d, isNumber as f, isSymbol as g, isString as h, debounce as i, isNaN as l, isPrimitive as m, instanceName as n, isArray as o, isObject as p, clamp as r, isBoolean as s, instanceExists as t, isNull as u, mergeDeep as v, range as y };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/v0",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "Vuetify0",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.mjs",
@@ -16,26 +16,8 @@
16
16
  "directory": "packages/0"
17
17
  },
18
18
  "peerDependencies": {
19
- "markdown": "^0.5.0",
20
- "markdown-it": "^14.1.0",
21
- "marked": "^16.1.1",
22
- "micromark": "^4.0.2",
23
19
  "vue": ">=3.3.0"
24
20
  },
25
- "peerDependenciesMeta": {
26
- "markdown": {
27
- "optional": true
28
- },
29
- "markdown-it": {
30
- "optional": true
31
- },
32
- "marked": {
33
- "optional": true
34
- },
35
- "micromark": {
36
- "optional": true
37
- }
38
- },
39
21
  "devDependencies": {
40
22
  "@vue/test-utils": "^2.4.6",
41
23
  "tsdown": "^0.16.1",