@inkeep/cxkit-primitives 0.5.96 → 0.5.98

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 +1 @@
1
- "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("react");function r(o){const t=s.useId();return e.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[e.jsx("title",{children:"Tag Line Logo Icon"}),e.jsx("path",{d:"M32 4.01845V25.1411C32 26.3154 30.9971 27.2462 29.8223 27.1531L16.9277 26.1507C15.409 26.0361 13.8903 26.3727 12.565 27.1173L8.11641 29.6234C7.72241 29.8454 7.29259 29.3943 7.54332 29.0148L9.77121 25.5922L11.8415 22.4131C12.0636 22.0694 12.4934 21.9119 12.8874 22.0336C16.1397 23.079 19.8075 21.8761 21.7631 18.8831C24.0913 15.2886 23.0741 10.4913 19.4851 8.15706C15.8961 5.82282 11.0965 6.83958 8.76114 10.4269C6.81263 13.427 7.19946 17.272 9.4775 19.8139C9.74972 20.1218 9.77837 20.5729 9.5563 20.9237L6.92724 24.9621C6.76964 25.1984 6.49743 25.3344 6.21804 25.313L1.4184 24.9406C0.616073 24.8834 0 24.2175 0 23.4155V5.7369C0 4.93496 0.616073 4.26905 1.4184 4.21177L29.8294 2.00642C31.0043 1.91334 32 2.84417 32 4.01845ZM15.2586 9.35282C12.3286 9.35282 9.95747 11.7229 9.95747 14.6514C9.95747 16.0763 10.5234 17.3723 11.4403 18.3246C11.9991 18.9046 12.6868 19.3557 13.4605 19.6349C14.0264 19.8354 14.6282 19.95 15.2657 19.95C18.1957 19.95 20.5668 17.5799 20.5668 14.6514C20.5597 11.73 18.1885 9.35282 15.2586 9.35282Z",fill:`url(#${t})`}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:t,x1:"1.5893",y1:"25.285",x2:"24.0784",y2:"10.1057",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"currentColor"}),e.jsx("stop",{offset:"1",stopColor:"currentColor"})]})})]})}exports.default=r;
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime");function o(t){return e.jsxs("svg",{viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("title",{children:"Tag Line Logo Icon"}),e.jsx("path",{d:"M7.2413 7.9244C6.85545 7.9244 6.49892 8.13025 6.30599 8.4644L1.99827 15.9256C1.80535 16.2597 1.80535 16.6714 1.99827 17.0056L6.30599 24.4668C6.49892 24.8009 6.85545 25.0068 7.2413 25.0068L15.8567 25.0068C16.2426 25.0068 16.5991 24.8009 16.792 24.4668L21.0998 17.0056C21.2927 16.6714 21.2927 16.2597 21.0998 15.9256L16.792 8.4644C16.5991 8.13025 16.2426 7.9244 15.8567 7.9244L7.2413 7.9244Z",stroke:"currentColor",strokeWidth:"1.75"}),e.jsx("path",{d:"M24.8143 7.76209C27.3966 8.42659 27.1023 9.89204 28.1732 12.8728C28.8603 14.7852 32.182 17.1565 29.1465 21.766C28.2406 23.1417 25.3276 24.7738 23.2199 25.2265C18.5764 26.2085 15.8404 23.98 13.4131 20.3057C11.592 17.5265 12.2355 13.5253 14.9976 11.5606C17.6151 9.70372 21.4197 6.82238 24.8143 7.76209Z",stroke:"currentColor",strokeWidth:"1.75"})]})}exports.default=o;
@@ -1,34 +1,26 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
3
- import { useId as t } from "react";
4
- function s(n) {
5
- const e = t();
6
- return /* @__PURE__ */ r("svg", { viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n, children: [
2
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
3
+ function n(t) {
4
+ return /* @__PURE__ */ e("svg", { viewBox: "0 0 32 33", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
7
5
  /* @__PURE__ */ o("title", { children: "Tag Line Logo Icon" }),
8
6
  /* @__PURE__ */ o(
9
7
  "path",
10
8
  {
11
- d: "M32 4.01845V25.1411C32 26.3154 30.9971 27.2462 29.8223 27.1531L16.9277 26.1507C15.409 26.0361 13.8903 26.3727 12.565 27.1173L8.11641 29.6234C7.72241 29.8454 7.29259 29.3943 7.54332 29.0148L9.77121 25.5922L11.8415 22.4131C12.0636 22.0694 12.4934 21.9119 12.8874 22.0336C16.1397 23.079 19.8075 21.8761 21.7631 18.8831C24.0913 15.2886 23.0741 10.4913 19.4851 8.15706C15.8961 5.82282 11.0965 6.83958 8.76114 10.4269C6.81263 13.427 7.19946 17.272 9.4775 19.8139C9.74972 20.1218 9.77837 20.5729 9.5563 20.9237L6.92724 24.9621C6.76964 25.1984 6.49743 25.3344 6.21804 25.313L1.4184 24.9406C0.616073 24.8834 0 24.2175 0 23.4155V5.7369C0 4.93496 0.616073 4.26905 1.4184 4.21177L29.8294 2.00642C31.0043 1.91334 32 2.84417 32 4.01845ZM15.2586 9.35282C12.3286 9.35282 9.95747 11.7229 9.95747 14.6514C9.95747 16.0763 10.5234 17.3723 11.4403 18.3246C11.9991 18.9046 12.6868 19.3557 13.4605 19.6349C14.0264 19.8354 14.6282 19.95 15.2657 19.95C18.1957 19.95 20.5668 17.5799 20.5668 14.6514C20.5597 11.73 18.1885 9.35282 15.2586 9.35282Z",
12
- fill: `url(#${e})`
9
+ d: "M7.2413 7.9244C6.85545 7.9244 6.49892 8.13025 6.30599 8.4644L1.99827 15.9256C1.80535 16.2597 1.80535 16.6714 1.99827 17.0056L6.30599 24.4668C6.49892 24.8009 6.85545 25.0068 7.2413 25.0068L15.8567 25.0068C16.2426 25.0068 16.5991 24.8009 16.792 24.4668L21.0998 17.0056C21.2927 16.6714 21.2927 16.2597 21.0998 15.9256L16.792 8.4644C16.5991 8.13025 16.2426 7.9244 15.8567 7.9244L7.2413 7.9244Z",
10
+ stroke: "currentColor",
11
+ strokeWidth: "1.75"
13
12
  }
14
13
  ),
15
- /* @__PURE__ */ o("defs", { children: /* @__PURE__ */ r(
16
- "linearGradient",
14
+ /* @__PURE__ */ o(
15
+ "path",
17
16
  {
18
- id: e,
19
- x1: "1.5893",
20
- y1: "25.285",
21
- x2: "24.0784",
22
- y2: "10.1057",
23
- gradientUnits: "userSpaceOnUse",
24
- children: [
25
- /* @__PURE__ */ o("stop", { stopColor: "currentColor" }),
26
- /* @__PURE__ */ o("stop", { offset: "1", stopColor: "currentColor" })
27
- ]
17
+ d: "M24.8143 7.76209C27.3966 8.42659 27.1023 9.89204 28.1732 12.8728C28.8603 14.7852 32.182 17.1565 29.1465 21.766C28.2406 23.1417 25.3276 24.7738 23.2199 25.2265C18.5764 26.2085 15.8404 23.98 13.4131 20.3057C11.592 17.5265 12.2355 13.5253 14.9976 11.5606C17.6151 9.70372 21.4197 6.82238 24.8143 7.76209Z",
18
+ stroke: "currentColor",
19
+ strokeWidth: "1.75"
28
20
  }
29
- ) })
21
+ )
30
22
  ] });
31
23
  }
32
24
  export {
33
- s as default
25
+ n as default
34
26
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),t=require("react"),f=require("../atoms/api/analytics/events.cjs"),b=require("./config-provider.cjs"),x=require("./user-provider.cjs"),E=t.createContext(void 0),q=({children:e})=>{const{baseSettings:s,componentType:r}=b.useInkeepConfig(),{apiKey:i,analyticsApiBaseUrl:c,tags:a,privacyPreferences:m,env:g,analyticsProperties:v}=s,{userProperties:u}=x.useUser(),l=t.useMemo(()=>({widgetLibraryVersion:"0.5.96",componentType:r,tags:a}),[r,a]),d=!m.optOutAllAnalytics&&g!=="development",P={logEvent:t.useCallback(async n=>{const o={...l,...n.properties,...v},p={eventName:n.eventName,properties:o,userProperties:u},y=["modal_opened","modal_closed"].includes(n.eventName);if(d&&!y){if("conversation"in o&&!o.conversation?.id)return;f.logEvent(p,i,c)}s.onEvent?.(p)},[d,s,i,c,u,l,v])};return B.jsx(E.Provider,{value:P,children:e})},C=()=>{const e=t.useContext(E);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=q;exports.useBaseEvents=C;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),t=require("react"),f=require("../atoms/api/analytics/events.cjs"),b=require("./config-provider.cjs"),x=require("./user-provider.cjs"),E=t.createContext(void 0),q=({children:e})=>{const{baseSettings:s,componentType:r}=b.useInkeepConfig(),{apiKey:i,analyticsApiBaseUrl:c,tags:a,privacyPreferences:m,env:g,analyticsProperties:v}=s,{userProperties:u}=x.useUser(),l=t.useMemo(()=>({widgetLibraryVersion:"0.5.98",componentType:r,tags:a}),[r,a]),d=!m.optOutAllAnalytics&&g!=="development",P={logEvent:t.useCallback(async n=>{const o={...l,...n.properties,...v},p={eventName:n.eventName,properties:o,userProperties:u},y=["modal_opened","modal_closed"].includes(n.eventName);if(d&&!y){if("conversation"in o&&!o.conversation?.id)return;f.logEvent(p,i,c)}s.onEvent?.(p)},[d,s,i,c,u,l,v])};return B.jsx(E.Provider,{value:P,children:e})},C=()=>{const e=t.useContext(E);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=q;exports.useBaseEvents=C;
@@ -7,7 +7,7 @@ import { useUser as A } from "./user-provider.js";
7
7
  const u = B(void 0), $ = ({ children: e }) => {
8
8
  const { baseSettings: t, componentType: s } = w(), { apiKey: r, analyticsApiBaseUrl: i, tags: a, privacyPreferences: d, env: E, analyticsProperties: c } = t, { userProperties: v } = A(), p = P(
9
9
  () => ({
10
- widgetLibraryVersion: "0.5.96",
10
+ widgetLibraryVersion: "0.5.98",
11
11
  componentType: s,
12
12
  tags: a
13
13
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-primitives",
3
- "version": "0.5.96",
3
+ "version": "0.5.98",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -67,9 +67,9 @@
67
67
  "remark-gfm": "^4.0.1",
68
68
  "unist-util-visit": "^5.0.0",
69
69
  "use-sync-external-store": "^1.4.0",
70
- "@inkeep/cxkit-color-mode": "^0.5.96",
71
- "@inkeep/cxkit-theme": "0.5.96",
72
- "@inkeep/cxkit-types": "0.5.96"
70
+ "@inkeep/cxkit-color-mode": "^0.5.98",
71
+ "@inkeep/cxkit-theme": "0.5.98",
72
+ "@inkeep/cxkit-types": "0.5.98"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@biomejs/biome": "1.9.4",