@inkeep/cxkit-primitives 0.5.12 → 0.5.14
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/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/atoms/cmdk/command-score.cjs +1 -0
- package/dist/atoms/cmdk/command-score.d.cts +1 -0
- package/dist/atoms/cmdk/command-score.d.ts +1 -0
- package/dist/atoms/cmdk/command-score.js +46 -0
- package/dist/atoms/cmdk/index.cjs +1 -0
- package/dist/atoms/cmdk/index.d.cts +426 -0
- package/dist/atoms/cmdk/index.d.ts +426 -0
- package/dist/atoms/cmdk/index.js +510 -0
- package/dist/atoms/dialog.cjs +1 -0
- package/dist/atoms/dialog.d.cts +29 -2
- package/dist/atoms/dialog.d.ts +29 -2
- package/dist/atoms/dialog.js +216 -0
- package/dist/components/embedded-chat.cjs +3 -3
- package/dist/components/embedded-chat.d.cts +1 -1
- package/dist/components/embedded-chat.d.ts +1 -1
- package/dist/components/embedded-chat.js +1015 -1015
- package/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
- package/dist/components/embedded-search/use-inkeep-search.js +1 -3
- package/dist/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.d.cts +42 -55
- package/dist/components/embedded-search.d.ts +42 -55
- package/dist/components/embedded-search.js +289 -242
- package/dist/components/modal.cjs +1 -1
- package/dist/components/modal.d.cts +1 -1
- package/dist/components/modal.d.ts +1 -1
- package/dist/components/modal.js +26 -26
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/package.json +11 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("../atoms/dialog.cjs"),i=require("./factory.cjs"),d=require("../atoms/icons/custom-icon.cjs"),c=require("./modal/use-inkeep-modal.cjs"),s=require("./modal/modal-provider.cjs"),u=require("../utils/compose-event-handlers.cjs"),m=require("../hooks/use-media-query.cjs"),M=require("../utils/misc.cjs"),p=i.ikp(t.Root,{_id:"modal"}),v=e=>{const{onOpenChange:n,config:l,...a}=e,r=c.useInkeepModal(l);return o.jsx(s.ModalProvider,{modal:r,children:o.jsx(p,{open:r.isOpen,onOpenChange:u.composeEventHandlers(n,r.handleOpenChange),...a})})},C=i.ikp(t.Overlay,{_id:"modal__Overlay"}),y=i.ikp(t.Content,{_id:"modal__Content","aria-describedby":void 0}),_=e=>{const n=m.useMediaQuery("(max-width: 768px)");return o.jsx(y,{"data-mobile":M.dataAttr(n),...e})},q=i.ikp(t.Close,{_id:"modal__Close",children:o.jsx(d.CustomIcon,{iconKey:"close"})}),O=e=>s.useModal()?o.jsx(q,{...e}):null;exports.Close=O;exports.Content=_;exports.Modal=v;exports.Overlay=C;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
3
3
|
import { PolymorphicProps } from './factory';
|
|
4
|
-
import * as DialogPrimitive from '
|
|
4
|
+
import * as DialogPrimitive from '../atoms/dialog';
|
|
5
5
|
declare const Modal: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogProps, "_id"> & Partial<Pick<DialogPrimitive.DialogProps, "_id">>>;
|
|
6
6
|
export interface PrimitiveModalProps extends ComponentPropsWithRef<typeof Modal> {
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
import { InkeepModalSettings } from '@inkeep/cxkit-types';
|
|
3
3
|
import { PolymorphicProps } from './factory';
|
|
4
|
-
import * as DialogPrimitive from '
|
|
4
|
+
import * as DialogPrimitive from '../atoms/dialog';
|
|
5
5
|
declare const Modal: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogProps, "_id"> & Partial<Pick<DialogPrimitive.DialogProps, "_id">>>;
|
|
6
6
|
export interface PrimitiveModalProps extends ComponentPropsWithRef<typeof Modal> {
|
|
7
7
|
/**
|
package/dist/components/modal.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import { Overlay as l, Root as d, Content as m, Close as s } from "../atoms/dialog.js";
|
|
4
4
|
import { ikp as n } from "./factory.js";
|
|
5
|
-
import { CustomIcon as
|
|
6
|
-
import { useInkeepModal as
|
|
7
|
-
import { ModalProvider as
|
|
8
|
-
import { composeEventHandlers as
|
|
9
|
-
import { useMediaQuery as
|
|
10
|
-
import { dataAttr as
|
|
11
|
-
const
|
|
5
|
+
import { CustomIcon as c } from "../atoms/icons/custom-icon.js";
|
|
6
|
+
import { useInkeepModal as p } from "./modal/use-inkeep-modal.js";
|
|
7
|
+
import { ModalProvider as C, useModal as M } from "./modal/modal-provider.js";
|
|
8
|
+
import { composeEventHandlers as f } from "../utils/compose-event-handlers.js";
|
|
9
|
+
import { useMediaQuery as u } from "../hooks/use-media-query.js";
|
|
10
|
+
import { dataAttr as v } from "../utils/misc.js";
|
|
11
|
+
const _ = n(d, {
|
|
12
12
|
_id: "modal"
|
|
13
|
-
}),
|
|
14
|
-
const { onOpenChange: t, config:
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
16
|
-
|
|
13
|
+
}), A = (o) => {
|
|
14
|
+
const { onOpenChange: t, config: i, ...a } = o, r = p(i);
|
|
15
|
+
return /* @__PURE__ */ e(C, { modal: r, children: /* @__PURE__ */ e(
|
|
16
|
+
_,
|
|
17
17
|
{
|
|
18
18
|
open: r.isOpen,
|
|
19
|
-
onOpenChange:
|
|
20
|
-
...
|
|
19
|
+
onOpenChange: f(t, r.handleOpenChange),
|
|
20
|
+
...a
|
|
21
21
|
}
|
|
22
22
|
) });
|
|
23
|
-
},
|
|
23
|
+
}, E = n(l, {
|
|
24
24
|
_id: "modal__Overlay"
|
|
25
|
-
}),
|
|
25
|
+
}), O = n(m, {
|
|
26
26
|
_id: "modal__Content",
|
|
27
27
|
"aria-describedby": void 0
|
|
28
|
-
}),
|
|
29
|
-
const t =
|
|
30
|
-
return /* @__PURE__ */ e(
|
|
31
|
-
},
|
|
28
|
+
}), H = (o) => {
|
|
29
|
+
const t = u("(max-width: 768px)");
|
|
30
|
+
return /* @__PURE__ */ e(O, { "data-mobile": v(t), ...o });
|
|
31
|
+
}, h = n(s, {
|
|
32
32
|
_id: "modal__Close",
|
|
33
|
-
children: /* @__PURE__ */ e(
|
|
34
|
-
}),
|
|
33
|
+
children: /* @__PURE__ */ e(c, { iconKey: "close" })
|
|
34
|
+
}), K = (o) => M() ? /* @__PURE__ */ e(h, { ...o }) : null;
|
|
35
35
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
K as Close,
|
|
37
|
+
H as Content,
|
|
38
|
+
A as Modal,
|
|
39
|
+
E as Overlay
|
|
40
40
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../_virtual/use-sync-external-store-shim.development.cjs"),h=require("react");/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var f;function T(){return f||(f=1,process.env.NODE_ENV!=="production"&&function(){function d(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function S(e,t){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var r=t();if(!l){var u=t();_(r,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}u=p({inst:{value:r,getSnapshot:t}});var n=u[0].inst,s=u[1];return y(function(){n.value=r,n.getSnapshot=t,a(n)&&s({inst:n})},[e,r,t]),E(function(){return a(n)&&s({inst:n}),e(function(){a(n)&&s({inst:n})})},[e]),L(r),r}function a(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!_(e,r)}catch{return!0}}function O(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=h,_=typeof Object.is=="function"?Object.is:d,p=o.useState,E=o.useEffect,y=o.useLayoutEffect,L=o.useDebugValue,c=!1,l=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?O:S;i.__exports.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),i.__exports}exports.__require=T;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exports as s } from "../../../../../../_virtual/use-sync-external-store-shim.development.js";
|
|
3
|
+
import h from "react";
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.development.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var l;
|
|
14
|
+
function A() {
|
|
15
|
+
return l ? s : (l = 1, process.env.NODE_ENV !== "production" && function() {
|
|
16
|
+
function d(e, t) {
|
|
17
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
18
|
+
}
|
|
19
|
+
function S(e, t) {
|
|
20
|
+
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
21
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
22
|
+
));
|
|
23
|
+
var r = t();
|
|
24
|
+
if (!c) {
|
|
25
|
+
var u = t();
|
|
26
|
+
_(r, u) || (console.error(
|
|
27
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
28
|
+
), c = !0);
|
|
29
|
+
}
|
|
30
|
+
u = p({
|
|
31
|
+
inst: { value: r, getSnapshot: t }
|
|
32
|
+
});
|
|
33
|
+
var n = u[0].inst, i = u[1];
|
|
34
|
+
return L(
|
|
35
|
+
function() {
|
|
36
|
+
n.value = r, n.getSnapshot = t, a(n) && i({ inst: n });
|
|
37
|
+
},
|
|
38
|
+
[e, r, t]
|
|
39
|
+
), E(
|
|
40
|
+
function() {
|
|
41
|
+
return a(n) && i({ inst: n }), e(function() {
|
|
42
|
+
a(n) && i({ inst: n });
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
[e]
|
|
46
|
+
), y(r), r;
|
|
47
|
+
}
|
|
48
|
+
function a(e) {
|
|
49
|
+
var t = e.getSnapshot;
|
|
50
|
+
e = e.value;
|
|
51
|
+
try {
|
|
52
|
+
var r = t();
|
|
53
|
+
return !_(e, r);
|
|
54
|
+
} catch {
|
|
55
|
+
return !0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function O(e, t) {
|
|
59
|
+
return t();
|
|
60
|
+
}
|
|
61
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
62
|
+
var o = h, _ = typeof Object.is == "function" ? Object.is : d, p = o.useState, E = o.useEffect, L = o.useLayoutEffect, y = o.useDebugValue, f = !1, c = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : S;
|
|
63
|
+
s.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
64
|
+
}(), s);
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
A as __require
|
|
68
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../_virtual/use-sync-external-store-shim.production.cjs"),h=require("react");/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var s;function m(){if(s)return i.__exports;s=1;var u=h;function f(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S=typeof Object.is=="function"?Object.is:f,d=u.useState,l=u.useEffect,p=u.useLayoutEffect,y=u.useDebugValue;function v(e,t){var r=t(),c=d({inst:{value:r,getSnapshot:t}}),n=c[0].inst,a=c[1];return p(function(){n.value=r,n.getSnapshot=t,o(n)&&a({inst:n})},[e,r,t]),l(function(){return o(n)&&a({inst:n}),e(function(){o(n)&&a({inst:n})})},[e]),y(r),r}function o(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!S(e,r)}catch{return!0}}function E(e,t){return t()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E:v;return i.__exports.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:_,i.__exports}exports.__require=m;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exports as i } from "../../../../../../_virtual/use-sync-external-store-shim.production.js";
|
|
3
|
+
import h from "react";
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var s;
|
|
14
|
+
function x() {
|
|
15
|
+
if (s) return i;
|
|
16
|
+
s = 1;
|
|
17
|
+
var u = h;
|
|
18
|
+
function f(e, t) {
|
|
19
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
20
|
+
}
|
|
21
|
+
var S = typeof Object.is == "function" ? Object.is : f, d = u.useState, l = u.useEffect, p = u.useLayoutEffect, E = u.useDebugValue;
|
|
22
|
+
function v(e, t) {
|
|
23
|
+
var r = t(), a = d({ inst: { value: r, getSnapshot: t } }), n = a[0].inst, c = a[1];
|
|
24
|
+
return p(
|
|
25
|
+
function() {
|
|
26
|
+
n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
|
|
27
|
+
},
|
|
28
|
+
[e, r, t]
|
|
29
|
+
), l(
|
|
30
|
+
function() {
|
|
31
|
+
return o(n) && c({ inst: n }), e(function() {
|
|
32
|
+
o(n) && c({ inst: n });
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
[e]
|
|
36
|
+
), E(r), r;
|
|
37
|
+
}
|
|
38
|
+
function o(e) {
|
|
39
|
+
var t = e.getSnapshot;
|
|
40
|
+
e = e.value;
|
|
41
|
+
try {
|
|
42
|
+
var r = t();
|
|
43
|
+
return !S(e, r);
|
|
44
|
+
} catch {
|
|
45
|
+
return !0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function y(e, t) {
|
|
49
|
+
return t();
|
|
50
|
+
}
|
|
51
|
+
var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : v;
|
|
52
|
+
return i.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : m, i;
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
x as __require
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../_virtual/index.cjs"),r=require("../cjs/use-sync-external-store-shim.production.cjs"),o=require("../cjs/use-sync-external-store-shim.development.cjs");process.env.NODE_ENV==="production"?e.__module.exports=r.__require():e.__module.exports=o.__require();var t=e.__module.exports;exports.shimExports=t;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __module as r } from "../../../../../../_virtual/index.js";
|
|
2
|
+
import { __require as e } from "../cjs/use-sync-external-store-shim.production.js";
|
|
3
|
+
import { __require as o } from "../cjs/use-sync-external-store-shim.development.js";
|
|
4
|
+
process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
|
|
5
|
+
var m = r.exports;
|
|
6
|
+
export {
|
|
7
|
+
m as s
|
|
8
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),t=require("react"),y=require("../atoms/api/analytics/events.cjs"),B=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),f=({children:e})=>{const{baseSettings:s,componentType:n}=B.useInkeepConfig(),{apiKey:o,analyticsApiBaseUrl:r,tags:i,privacyPreferences:d,env:E}=s,{userProperties:c}=b.useUser(),a=t.useMemo(()=>({widgetLibraryVersion:"0.5.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),t=require("react"),y=require("../atoms/api/analytics/events.cjs"),B=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),f=({children:e})=>{const{baseSettings:s,componentType:n}=B.useInkeepConfig(),{apiKey:o,analyticsApiBaseUrl:r,tags:i,privacyPreferences:d,env:E}=s,{userProperties:c}=b.useUser(),a=t.useMemo(()=>({widgetLibraryVersion:"0.5.14",componentType:n,tags:i}),[n,i]),u=!d.optOutAllAnalytics&&E!=="development",g={logEvent:t.useCallback(async v=>{const m={...a,...v.properties},l={eventName:v.eventName,properties:m,userProperties:c};u&&y.logEvent(l,o,r),s.onEvent?.(l)},[u,s,o,r,c,a])};return P.jsx(p.Provider,{value:g,children:e})},x=()=>{const e=t.useContext(p);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=f;exports.useBaseEvents=x;
|
|
@@ -7,7 +7,7 @@ import { useUser as b } from "./user-provider.js";
|
|
|
7
7
|
const m = x(void 0), U = ({ children: e }) => {
|
|
8
8
|
const { baseSettings: t, componentType: o } = C(), { apiKey: n, analyticsApiBaseUrl: s, tags: r, privacyPreferences: u, env: l } = t, { userProperties: i } = b(), a = d(
|
|
9
9
|
() => ({
|
|
10
|
-
widgetLibraryVersion: "0.5.
|
|
10
|
+
widgetLibraryVersion: "0.5.14",
|
|
11
11
|
componentType: o,
|
|
12
12
|
tags: r
|
|
13
13
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/cxkit-primitives",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -20,8 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@radix-ui/primitive": "^1.1.1",
|
|
23
24
|
"@radix-ui/react-avatar": "1.1.2",
|
|
24
25
|
"@radix-ui/react-checkbox": "1.1.3",
|
|
26
|
+
"@radix-ui/react-compose-refs": "^1.1.1",
|
|
25
27
|
"@radix-ui/react-context": "^1.1.1",
|
|
26
28
|
"@radix-ui/react-dialog": "1.1.4",
|
|
27
29
|
"@radix-ui/react-dismissable-layer": "^1.1.5",
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
"@radix-ui/react-hover-card": "^1.1.6",
|
|
31
33
|
"@radix-ui/react-id": "^1.1.0",
|
|
32
34
|
"@radix-ui/react-popover": "1.1.4",
|
|
35
|
+
"@radix-ui/react-portal": "^1.1.4",
|
|
33
36
|
"@radix-ui/react-presence": "^1.1.2",
|
|
34
37
|
"@radix-ui/react-primitive": "^2.0.2",
|
|
35
38
|
"@radix-ui/react-scroll-area": "1.2.2",
|
|
@@ -40,10 +43,10 @@
|
|
|
40
43
|
"@radix-ui/react-use-controllable-state": "^1.1.0",
|
|
41
44
|
"altcha-lib": "^1.2.0",
|
|
42
45
|
"aria-hidden": "^1.2.4",
|
|
43
|
-
"cmdk": "1.0.4",
|
|
46
|
+
"cmdk": "^1.0.4",
|
|
44
47
|
"dequal": "^2.0.3",
|
|
45
48
|
"humps": "2.0.1",
|
|
46
|
-
"merge-anything": "
|
|
49
|
+
"merge-anything": "5.1.7",
|
|
47
50
|
"openai": "4.78.1",
|
|
48
51
|
"prism-react-renderer": "2.4.1",
|
|
49
52
|
"react-hook-form": "7.54.2",
|
|
@@ -54,9 +57,10 @@
|
|
|
54
57
|
"react-textarea-autosize": "8.5.7",
|
|
55
58
|
"rehype-raw": "7.0.0",
|
|
56
59
|
"unist-util-visit": "^5.0.0",
|
|
57
|
-
"
|
|
58
|
-
"@inkeep/cxkit-
|
|
59
|
-
"@inkeep/cxkit-
|
|
60
|
+
"use-sync-external-store": "^1.4.0",
|
|
61
|
+
"@inkeep/cxkit-color-mode": "0.5.14",
|
|
62
|
+
"@inkeep/cxkit-theme": "0.5.14",
|
|
63
|
+
"@inkeep/cxkit-types": "0.5.14"
|
|
60
64
|
},
|
|
61
65
|
"devDependencies": {
|
|
62
66
|
"@biomejs/biome": "1.9.4",
|
|
@@ -68,6 +72,7 @@
|
|
|
68
72
|
"@types/jsdom": "21.1.7",
|
|
69
73
|
"@types/react": "19.0.10",
|
|
70
74
|
"@types/react-dom": "19.0.3",
|
|
75
|
+
"@types/use-sync-external-store": "^0.0.6",
|
|
71
76
|
"@vitejs/plugin-react": "4.3.4",
|
|
72
77
|
"clean-package": "2.2.0",
|
|
73
78
|
"globby": "14.0.2",
|