@inkeep/cxkit-primitives 0.5.114 → 0.5.115
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/dist/atoms/combobox.cjs +1 -0
- package/dist/atoms/combobox.js +192 -0
- package/dist/components/embedded-chat.cjs +7 -7
- package/dist/components/embedded-chat.js +1080 -1017
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +14 -12
- package/dist/components/intelligent-form.cjs +1 -1
- package/dist/components/intelligent-form.js +434 -369
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +163 -5
- package/dist/index.d.ts +163 -5
- package/dist/index.js +13 -11
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/dist/utils/component-ids.cjs +1 -1
- package/dist/utils/component-ids.js +29 -11
- package/dist/utils/form.cjs +1 -1
- package/dist/utils/form.js +6 -4
- package/package.json +8 -7
package/dist/utils/form.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { toDefaultValueArray as o } from "../atoms/combobox.js";
|
|
2
3
|
const a = {
|
|
3
4
|
text: "",
|
|
4
5
|
email: "",
|
|
@@ -6,12 +7,13 @@ const a = {
|
|
|
6
7
|
textarea: "",
|
|
7
8
|
file: void 0,
|
|
8
9
|
// file inputs are always uncontrolled since their value can only be set by the user so it's ok to use undefined here
|
|
9
|
-
select: ""
|
|
10
|
+
select: "",
|
|
11
|
+
combobox: []
|
|
10
12
|
};
|
|
11
|
-
function
|
|
12
|
-
return
|
|
13
|
+
function l(t) {
|
|
14
|
+
return t ? t?.reduce((u, e) => (e.inputType === "combobox" ? u[e.name] = "defaultValue" in e && e.defaultValue != null ? o(e.defaultValue) : a.combobox : "defaultValue" in e && e.defaultValue ? u[e.name] = e.defaultValue : e.inputType && (u[e.name] = a[e.inputType]), u), {}) : {};
|
|
13
15
|
}
|
|
14
16
|
export {
|
|
15
17
|
a as defaultInputValues,
|
|
16
|
-
|
|
18
|
+
l as getFormDefaultValues
|
|
17
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/cxkit-primitives",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.115",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -45,9 +45,10 @@
|
|
|
45
45
|
"@radix-ui/react-use-callback-ref": "^1.1.0",
|
|
46
46
|
"@radix-ui/react-use-controllable-state": "^1.1.0",
|
|
47
47
|
"@radix-ui/react-use-layout-effect": "^1.1.1",
|
|
48
|
-
"@zag-js/
|
|
49
|
-
"@zag-js/
|
|
50
|
-
"@zag-js/
|
|
48
|
+
"@zag-js/combobox": "^1.33.1",
|
|
49
|
+
"@zag-js/focus-trap": "^1.33.1",
|
|
50
|
+
"@zag-js/presence": "^1.33.1",
|
|
51
|
+
"@zag-js/react": "^1.33.1",
|
|
51
52
|
"altcha-lib": "^1.2.0",
|
|
52
53
|
"aria-hidden": "^1.2.4",
|
|
53
54
|
"dequal": "^2.0.3",
|
|
@@ -67,9 +68,9 @@
|
|
|
67
68
|
"remark-gfm": "^4.0.1",
|
|
68
69
|
"unist-util-visit": "^5.0.0",
|
|
69
70
|
"use-sync-external-store": "^1.4.0",
|
|
70
|
-
"@inkeep/cxkit-color-mode": "^0.5.
|
|
71
|
-
"@inkeep/cxkit-theme": "0.5.
|
|
72
|
-
"@inkeep/cxkit-types": "0.5.
|
|
71
|
+
"@inkeep/cxkit-color-mode": "^0.5.115",
|
|
72
|
+
"@inkeep/cxkit-theme": "0.5.115",
|
|
73
|
+
"@inkeep/cxkit-types": "0.5.115"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@biomejs/biome": "1.9.4",
|