@webamoki/web-svelte 0.5.29 → 0.5.31

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,4 +1,3 @@
1
- export * from './handler.js';
2
1
  import { type } from 'arktype';
3
2
  import { type SuperValidated } from 'sveltekit-superforms';
4
3
  export declare function prepareForm<S extends type.Any<Record<string, unknown>>>(validated: SuperValidated<S['infer']> | S['infer'], schema: S, options?: Partial<{
@@ -1,9 +1,8 @@
1
- export * from './handler.js';
2
1
  import { type } from 'arktype';
3
2
  import { toast } from 'svelte-sonner';
4
3
  import { defaults, superForm, superValidate } from 'sveltekit-superforms';
5
4
  import { arktype, arktypeClient } from 'sveltekit-superforms/adapters';
6
- import { dateTransport } from '../datetime/index.js';
5
+ import { dateTransport } from './datetime/index.js';
7
6
  export function prepareForm(validated, schema, options) {
8
7
  const form = superForm(validated, {
9
8
  validators: arktypeClient(schema),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.5.29",
6
+ "version": "0.5.31",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "dist",
@@ -40,8 +40,12 @@
40
40
  "import": "./dist/utils/types/db.js"
41
41
  },
42
42
  "./utils/form": {
43
- "types": "./dist/utils/form/index.d.ts",
44
- "import": "./dist/utils/form/index.js"
43
+ "types": "./dist/utils/form.d.ts",
44
+ "import": "./dist/utils/form.js"
45
+ },
46
+ "./server/form-handler": {
47
+ "types": "./dist/server/form-handler.d.ts",
48
+ "import": "./dist/server/form-handler.js"
45
49
  },
46
50
  "./utils/search": {
47
51
  "types": "./dist/utils/search.d.ts",
@@ -50,20 +54,15 @@
50
54
  },
51
55
  "peerDependencies": {
52
56
  "@internationalized/date": "^3.9.0",
53
- "@lucide/svelte": "^0.544.0",
54
- "@tailwindcss/forms": "^0.5.9",
55
- "@tailwindcss/typography": "^0.5.15",
57
+ "@lucide/svelte": "^0.553.0",
56
58
  "arktype": "^2.1.22",
57
- "ramda": "^0.31.3",
58
- "svelte": "^5.0.0",
59
- "sveltekit-superforms": "^2.27.1",
60
- "tailwindcss": "^4.0.0"
59
+ "svelte": "^5.43.6",
60
+ "sveltekit-superforms": "^2.27.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@changesets/cli": "^2.29.7",
64
64
  "@eslint/compat": "^1.4.1",
65
65
  "@eslint/js": "^9.39.1",
66
- "@lucide/svelte": "^0.544.0",
67
66
  "@sveltejs/adapter-static": "^3.0.10",
68
67
  "@sveltejs/kit": "^2.48.4",
69
68
  "@sveltejs/package": "^2.5.4",
@@ -71,12 +70,10 @@
71
70
  "@tailwindcss/forms": "^0.5.10",
72
71
  "@tailwindcss/typography": "^0.5.19",
73
72
  "@tailwindcss/vite": "^4.1.17",
74
- "@types/node": "^22.19.0",
73
+ "@types/node": "^22.19.1",
75
74
  "@types/pg": "^8.15.6",
76
75
  "@types/ramda": "^0.31.1",
77
76
  "@types/sorted-array-functions": "^1.3.3",
78
- "arktype": "^2.1.25",
79
- "bits-ui": "^2.14.2",
80
77
  "clsx": "^2.1.1",
81
78
  "eslint": "^9.39.1",
82
79
  "eslint-config-prettier": "^10.1.8",
@@ -87,30 +84,33 @@
87
84
  "prettier-plugin-tailwindcss": "^0.6.14",
88
85
  "publint": "^0.3.15",
89
86
  "shiki": "^3.15.0",
90
- "svelte": "^5.43.4",
91
- "svelte-check": "^4.3.3",
92
- "sveltekit-superforms": "^2.28.1",
93
- "tailwind-merge": "^3.3.1",
87
+ "svelte": "^5.43.6",
88
+ "svelte-check": "^4.3.4",
89
+ "tailwind-merge": "^3.4.0",
94
90
  "tailwind-variants": "^3.1.1",
95
91
  "tailwindcss": "^4.1.17",
96
92
  "tw-animate-css": "^1.4.0",
97
93
  "typescript": "^5.9.3",
98
- "typescript-eslint": "^8.46.3",
99
- "vite": "^7.2.1",
94
+ "typescript-eslint": "^8.46.4",
95
+ "vite": "^7.2.2",
100
96
  "vitest": "^3.2.4"
101
97
  },
102
98
  "keywords": [
103
99
  "svelte"
104
100
  ],
105
101
  "dependencies": {
106
- "dotenv": "^17.2.3",
102
+ "@internationalized/date": "^3.10.0",
103
+ "@lucide/svelte": "^0.553.0",
104
+ "arktype": "^2.1.26",
105
+ "bits-ui": "^2.14.3",
107
106
  "drizzle-orm": "^0.44.7",
108
107
  "formsnap": "^2.0.1",
109
108
  "pg": "^8.16.3",
110
109
  "ramda": "^0.31.3",
111
110
  "sorted-array-functions": "^1.3.0",
112
111
  "svelte-awesome-color-picker": "^4.1.0",
113
- "svelte-sonner": "^1.0.5"
112
+ "svelte-sonner": "^1.0.6",
113
+ "sveltekit-superforms": "^2.28.1"
114
114
  },
115
115
  "scripts": {
116
116
  "dev": "vite dev",