@inkeep/cxkit-primitives 0.5.0 → 0.5.2
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/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/dist/utils/default-settings.cjs +1 -1
- package/dist/utils/default-settings.d.cts +5 -0
- package/dist/utils/default-settings.d.ts +5 -0
- package/dist/utils/default-settings.js +2 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),t=require("react"),m=require("../atoms/api/analytics/events.cjs"),B=require("./config-provider.cjs"),b=require("./user-provider.cjs"),E=t.createContext(void 0),x=({children:e})=>{const{baseSettings:s,interactionType:n}=B.useInkeepConfig(),{apiKey:o,analyticsBaseUrl:r,tags:i,analytics:d,env:g}=s,{userProperties:a}=b.useUser(),c=t.useMemo(()=>({widgetLibraryVersion:"0.5.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),t=require("react"),m=require("../atoms/api/analytics/events.cjs"),B=require("./config-provider.cjs"),b=require("./user-provider.cjs"),E=t.createContext(void 0),x=({children:e})=>{const{baseSettings:s,interactionType:n}=B.useInkeepConfig(),{apiKey:o,analyticsBaseUrl:r,tags:i,analytics:d,env:g}=s,{userProperties:a}=b.useUser(),c=t.useMemo(()=>({widgetLibraryVersion:"0.5.2",interactionType:n,tags:i}),[n,i]),u=!d.optOutAllAnalytics&&g!=="DEVELOPMENT",p={logEvent:t.useCallback(async v=>{const P={...c,...v.properties},l={eventName:v.eventName,properties:P,userProperties:a};u&&m.logEvent(l,o,r),s.logEventCallback?.(l)},[u,s,o,r,a,c])};return y.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=x;exports.useBaseEvents=C;
|
|
@@ -7,7 +7,7 @@ import { useUser as b } from "./user-provider.js";
|
|
|
7
7
|
const m = x(void 0), M = ({ children: e }) => {
|
|
8
8
|
const { baseSettings: t, interactionType: o } = P(), { apiKey: s, analyticsBaseUrl: n, tags: r, analytics: p, env: u } = t, { userProperties: a } = b(), i = d(
|
|
9
9
|
() => ({
|
|
10
|
-
widgetLibraryVersion: "0.5.
|
|
10
|
+
widgetLibraryVersion: "0.5.2",
|
|
11
11
|
interactionType: o,
|
|
12
12
|
tags: r
|
|
13
13
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@inkeep/cxkit-theme"),t=require("./transform-source/index.cjs"),a=require("./tools/links-schema.cjs"),s={model:"inkeep-qa-expert",placeholder:"How do I get started?",botName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{enabled:!1,label:"Usage policy"},isChatSharingEnabled:!1,isViewOnly:!1,quickQuestionsLabel:"Example questions",quickQuestions:[],shouldHighlightFirstQuickQuestion:!0,shouldShowCopyChatButton:!1,getHelpCallToActions:[],workflowsHeader:"Workflows",workflows:[],actionButtonLabels:{clearButtonLabel:"Clear",shareButtonLabel:"Share",getHelpButtonLabel:"Get help",stopButtonLabel:"Stop",copyChatButtonLabel:"Copy"},prompts:[],tools:[{type:"function",function:{name:"provideLinks",description:"Provides links",parameters:a.linksSchema}}]},l={env:"PRODUCTION",apiKey:"",baseUrl:"https://api.inkeep.com",analyticsBaseUrl:"https://api.analytics.inkeep.com",bypassChallenge:!1,analytics:{optOutAnalyticalCookies:!1,optOutAllAnalytics:!1,optOutFunctionalCookies:!1},tags:[],userProperties:{},primaryBrandColor:e.DEFAULT_PRIMARY_BRAND_COLOR,theme:{varsClassName:"inkeep-widget-vars",...e.theme},transformSource:t.defaultTransformSource},o={shouldOpenLinksInNewTab:!1,maximumHitsLimit:40,defaultQuery:"",debounceTime:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],searchQueryParamKey:"q"};exports.defaultInkeepAIChatSettings=s;exports.defaultInkeepBaseSettings=l;exports.defaultInkeepSearchSettings=o;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@inkeep/cxkit-theme"),t=require("./transform-source/index.cjs"),a=require("./tools/links-schema.cjs"),s={model:"inkeep-qa-expert",placeholder:"How do I get started?",botName:void 0,shouldOpenLinksInNewTab:!0,disclaimerSettings:{enabled:!1,label:"Usage policy"},isChatSharingEnabled:!1,isViewOnly:!1,quickQuestionsLabel:"Example questions",quickQuestions:[],shouldHighlightFirstQuickQuestion:!0,shouldShowCopyChatButton:!1,getHelpCallToActions:[],workflowsHeader:"Workflows",workflows:[],actionButtonLabels:{clearButtonLabel:"Clear",shareButtonLabel:"Share",getHelpButtonLabel:"Get help",stopButtonLabel:"Stop",copyChatButtonLabel:"Copy"},prompts:[],tools:[{type:"function",function:{name:"provideLinks",description:"Provides links",parameters:a.linksSchema}}]},l={env:"PRODUCTION",apiKey:"",baseUrl:"https://api.inkeep.com",analyticsBaseUrl:"https://api.analytics.inkeep.com",bypassChallenge:!1,analytics:{optOutAnalyticalCookies:!1,optOutAllAnalytics:!1,optOutFunctionalCookies:!1},tags:[],userProperties:{},primaryBrandColor:e.DEFAULT_PRIMARY_BRAND_COLOR,theme:{varsClassName:"inkeep-widget-vars",...e.theme},transformSource:t.defaultTransformSource},o={shouldOpenLinksInNewTab:!1,maximumHitsLimit:40,defaultQuery:"",debounceTime:0,tabs:["All","Publications","PDFs","GitHub","Forums","Discord","Slack","StackOverflow"],searchQueryParamKey:"q",placeholder:"Search for anything..."};exports.defaultInkeepAIChatSettings=s;exports.defaultInkeepBaseSettings=l;exports.defaultInkeepSearchSettings=o;
|
|
@@ -169,6 +169,10 @@ export declare const defaultInkeepBaseSettings: {
|
|
|
169
169
|
100: string;
|
|
170
170
|
50: string;
|
|
171
171
|
};
|
|
172
|
+
overlay: {
|
|
173
|
+
light: string;
|
|
174
|
+
dark: string;
|
|
175
|
+
};
|
|
172
176
|
inkeepPrimary: {
|
|
173
177
|
textColorOnPrimary: string;
|
|
174
178
|
};
|
|
@@ -238,6 +242,7 @@ export declare const defaultInkeepSearchSettings: {
|
|
|
238
242
|
debounceTime: number;
|
|
239
243
|
tabs: string[];
|
|
240
244
|
searchQueryParamKey: string;
|
|
245
|
+
placeholder: string;
|
|
241
246
|
};
|
|
242
247
|
export type DefaultInkeepAIChatSettings = typeof defaultInkeepAIChatSettings;
|
|
243
248
|
export type DefaultInkeepBaseSettings = typeof defaultInkeepBaseSettings;
|
|
@@ -169,6 +169,10 @@ export declare const defaultInkeepBaseSettings: {
|
|
|
169
169
|
100: string;
|
|
170
170
|
50: string;
|
|
171
171
|
};
|
|
172
|
+
overlay: {
|
|
173
|
+
light: string;
|
|
174
|
+
dark: string;
|
|
175
|
+
};
|
|
172
176
|
inkeepPrimary: {
|
|
173
177
|
textColorOnPrimary: string;
|
|
174
178
|
};
|
|
@@ -238,6 +242,7 @@ export declare const defaultInkeepSearchSettings: {
|
|
|
238
242
|
debounceTime: number;
|
|
239
243
|
tabs: string[];
|
|
240
244
|
searchQueryParamKey: string;
|
|
245
|
+
placeholder: string;
|
|
241
246
|
};
|
|
242
247
|
export type DefaultInkeepAIChatSettings = typeof defaultInkeepAIChatSettings;
|
|
243
248
|
export type DefaultInkeepBaseSettings = typeof defaultInkeepBaseSettings;
|
|
@@ -66,7 +66,8 @@ const n = {
|
|
|
66
66
|
defaultQuery: "",
|
|
67
67
|
debounceTime: 0,
|
|
68
68
|
tabs: ["All", "Publications", "PDFs", "GitHub", "Forums", "Discord", "Slack", "StackOverflow"],
|
|
69
|
-
searchQueryParamKey: "q"
|
|
69
|
+
searchQueryParamKey: "q",
|
|
70
|
+
placeholder: "Search for anything..."
|
|
70
71
|
};
|
|
71
72
|
export {
|
|
72
73
|
n as defaultInkeepAIChatSettings,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/cxkit-primitives",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"react-textarea-autosize": "8.5.7",
|
|
54
54
|
"rehype-raw": "7.0.0",
|
|
55
55
|
"unist-util-visit": "^5.0.0",
|
|
56
|
-
"@inkeep/cxkit-color-mode": "0.5.
|
|
57
|
-
"@inkeep/cxkit-theme": "0.5.
|
|
58
|
-
"@inkeep/cxkit-types": "0.5.
|
|
56
|
+
"@inkeep/cxkit-color-mode": "0.5.2",
|
|
57
|
+
"@inkeep/cxkit-theme": "0.5.2",
|
|
58
|
+
"@inkeep/cxkit-types": "0.5.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@biomejs/biome": "1.9.4",
|