@varlet/use 3.2.6-alpha.1713972861390 → 3.2.6

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/lib/index.cjs CHANGED
@@ -423,7 +423,7 @@ var import_shared6 = require("@varlet/shared");
423
423
  function useClientId() {
424
424
  const instance = (0, import_vue10.getCurrentInstance)();
425
425
  const name = (0, import_shared6.kebabCase)(instance.type.name);
426
- const id = (0, import_vue10.ref)(process.env.NODE_ENV === "test" ? `${name}-mock-id` : "");
426
+ const id = (0, import_vue10.ref)(process.env.NODE_ENV === "test" ? `${name}-mock-id` : void 0);
427
427
  (0, import_vue10.onMounted)(() => {
428
428
  if (process.env.NODE_ENV !== "test") {
429
429
  id.value = `${name}-${instance.uid}`;
package/lib/index.d.cts CHANGED
@@ -69,7 +69,7 @@ declare function useTouch(): {
69
69
 
70
70
  declare function useId(): vue.Ref<string | undefined>;
71
71
 
72
- declare function useClientId(): vue.Ref<string>;
72
+ declare function useClientId(): vue.Ref<string | undefined>;
73
73
 
74
74
  interface UseWindowSizeOptions {
75
75
  initialWidth?: number;
package/lib/index.d.ts CHANGED
@@ -69,7 +69,7 @@ declare function useTouch(): {
69
69
 
70
70
  declare function useId(): vue.Ref<string | undefined>;
71
71
 
72
- declare function useClientId(): vue.Ref<string>;
72
+ declare function useClientId(): vue.Ref<string | undefined>;
73
73
 
74
74
  interface UseWindowSizeOptions {
75
75
  initialWidth?: number;
package/lib/index.js CHANGED
@@ -400,7 +400,7 @@ import { kebabCase as kebabCase2 } from "@varlet/shared";
400
400
  function useClientId() {
401
401
  const instance = getCurrentInstance4();
402
402
  const name = kebabCase2(instance.type.name);
403
- const id = ref4(process.env.NODE_ENV === "test" ? `${name}-mock-id` : "");
403
+ const id = ref4(process.env.NODE_ENV === "test" ? `${name}-mock-id` : void 0);
404
404
  onMounted3(() => {
405
405
  if (process.env.NODE_ENV !== "test") {
406
406
  id.value = `${name}-${instance.uid}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/use",
3
- "version": "3.2.6-alpha.1713972861390",
3
+ "version": "3.2.6",
4
4
  "type": "module",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.js",
@@ -33,7 +33,7 @@
33
33
  "url": "https://github.com/varletjs/varlet/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@varlet/shared": "3.2.6-alpha.1713972861390"
36
+ "@varlet/shared": "3.2.6"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^18.7.18",