@sfxcode/formkit-primevue 2.9.5 → 2.9.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.
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useFormKitSection = useFormKitSection;
7
- var _uuid = require("uuid");
8
7
  var _vue = require("vue");
9
8
  function useFormKitSection(context) {
10
9
  const hasPrefix = (0, _vue.computed)(() => {
@@ -20,7 +19,7 @@ function useFormKitSection(context) {
20
19
  return Boolean(context?.suffix?.length > 0);
21
20
  });
22
21
  function generateId() {
23
- return (0, _uuid.v4)();
22
+ return typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2);
24
23
  }
25
24
  return {
26
25
  generateId,
@@ -1,4 +1,3 @@
1
- import { v4 as uuidv4 } from "uuid";
2
1
  import { computed } from "vue";
3
2
  export function useFormKitSection(context) {
4
3
  const hasPrefix = computed(() => {
@@ -14,7 +13,7 @@ export function useFormKitSection(context) {
14
13
  return Boolean(context?.suffix?.length > 0);
15
14
  });
16
15
  function generateId() {
17
- return uuidv4();
16
+ return typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2);
18
17
  }
19
18
  return { generateId, hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon };
20
19
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
3
  "type": "module",
4
- "version": "2.9.5",
4
+ "version": "2.9.6",
5
5
  "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39",
6
6
  "author": {
7
7
  "name": "Tom",
@@ -91,45 +91,44 @@
91
91
  "@formkit/i18n": "^1.6.9",
92
92
  "@formkit/inputs": "^1.6.9",
93
93
  "@formkit/vue": "^1.6.9",
94
- "@intlify/core": "^11.1.5",
94
+ "@intlify/core": "^11.1.6",
95
95
  "primeicons": "^7.0.0",
96
96
  "primevue": "^4.3.5",
97
- "uuid": "^11.1.0",
98
- "vue-i18n": "^11.1.5"
97
+ "vue-i18n": "^11.1.6"
99
98
  },
100
99
  "devDependencies": {
101
- "@antfu/eslint-config": "^4.13.2",
100
+ "@antfu/eslint-config": "^4.14.1",
102
101
  "@formkit/core": "^1.6.9",
103
102
  "@formkit/drag-and-drop": "^0.5.3",
104
- "@primeuix/themes": "^1.1.1",
105
- "@types/node": "^22.15.29",
103
+ "@primeuix/themes": "^1.1.2",
104
+ "@types/node": "^24.0.3",
106
105
  "@types/uuid": "^10.0.0",
107
- "@unocss/preset-icons": "66.1.2",
108
- "@unocss/preset-uno": "66.1.2",
106
+ "@unocss/preset-icons": "66.2.3",
107
+ "@unocss/preset-uno": "66.2.3",
109
108
  "@vitejs/plugin-vue": "^5.2.4",
110
- "@vitest/coverage-v8": "^3.2.1",
111
- "@vitest/ui": "^3.2.1",
112
- "@vue/compiler-sfc": "^3.5.16",
113
- "@vue/server-renderer": "^3.5.16",
109
+ "@vitest/coverage-v8": "^3.2.4",
110
+ "@vitest/ui": "^3.2.4",
111
+ "@vue/compiler-sfc": "^3.5.17",
112
+ "@vue/server-renderer": "^3.5.17",
114
113
  "@vue/test-utils": "^2.4.6",
115
114
  "@vue/tsconfig": "^0.7.0",
116
115
  "@vueuse/core": "^13.3.0",
117
116
  "@vueuse/head": "^2.0.0",
118
117
  "changelogen": "^0.6.1",
119
- "chart.js": "^4.4.9",
118
+ "chart.js": "^4.5.0",
120
119
  "consola": "^3.4.2",
121
120
  "cookie": "^1.0.2",
122
121
  "esbuild": "^0.25.5",
123
- "eslint": "^9.28.0",
124
- "happy-dom": "^17.6.1",
122
+ "eslint": "^9.29.0",
123
+ "happy-dom": "^18.0.1",
125
124
  "json-editor-vue": "^0.18.1",
126
125
  "mkdist": "^2.3.0",
127
126
  "quill": "^2.0.3",
128
- "sass": "^1.89.1",
127
+ "sass": "^1.89.2",
129
128
  "tslib": "^2.8.1",
130
129
  "typescript": "^5.8.3",
131
130
  "unbuild": "^3.5.0",
132
- "unocss": "66.1.2",
131
+ "unocss": "66.2.3",
133
132
  "unplugin-auto-import": "^19.3.0",
134
133
  "unplugin-vue-components": "^28.7.0",
135
134
  "vite": "^6.3.5",
@@ -138,8 +137,8 @@
138
137
  "vite-plugin-pages": "^0.33.0",
139
138
  "vite-ssg": "^27.0.1",
140
139
  "vitepress": "^1.6.3",
141
- "vitest": "^3.2.1",
142
- "vue": "^3.5.16",
140
+ "vitest": "^3.2.4",
141
+ "vue": "^3.5.17",
143
142
  "vue-demi": "^0.14.10",
144
143
  "vue-router": "^4.5.1",
145
144
  "vue-tsc": "^2.2.10"