zudoku 0.3.0-dev.98 → 0.3.0-dev.99
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/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.js +3 -4
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +19 -2
- package/dist/lib/plugins/search-inkeep/inkeep.js +1 -15
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +19 -25
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +10 -4
- package/src/lib/plugins/search-inkeep/inkeep.ts +3 -18
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { lazy as
|
|
3
|
-
const
|
|
4
|
-
apiKey: "499c156cf7a9798343949c8bb5665ac95e48132c6d68c42e",
|
|
5
|
-
integrationId: "clot3asdz0000s601nc8jwnzx",
|
|
6
|
-
organizationId: "org_dDOlt2uJlMWM8oIS",
|
|
7
|
-
primaryBrandColor: "#ff00bd",
|
|
8
|
-
organizationDisplayName: "Zuplo",
|
|
2
|
+
import { lazy as i } from "react";
|
|
3
|
+
const o = {
|
|
9
4
|
theme: {
|
|
10
5
|
components: {
|
|
11
6
|
AIChatPageWrapper: {
|
|
@@ -23,34 +18,33 @@ const r = {
|
|
|
23
18
|
}
|
|
24
19
|
}
|
|
25
20
|
}
|
|
26
|
-
},
|
|
27
|
-
shareChatUrlBasePath: `${process.env.NODE_ENV === "development" ? "http://localhost:3000" : "https://zuplo.com"}/docs/ask`,
|
|
28
|
-
isChatSharingEnabled: !0,
|
|
29
|
-
quickQuestions: [
|
|
30
|
-
"How do I create a custom policy?",
|
|
31
|
-
"What is the difference between production and preview environments?",
|
|
32
|
-
"How do I set a custom domain?",
|
|
33
|
-
"How do I use environment variables?"
|
|
34
|
-
]
|
|
35
|
-
}, i = a(() => import("./InkeepCustomTrigger-CE5-K5ex.js")), c = ({
|
|
21
|
+
}, a = {}, p = i(() => import("./InkeepCustomTrigger-CE5-K5ex.js")), l = ({
|
|
36
22
|
prefilledQuery: t,
|
|
37
23
|
isOpen: e,
|
|
38
|
-
onClose:
|
|
24
|
+
onClose: r,
|
|
25
|
+
settings: s
|
|
39
26
|
}) => /* @__PURE__ */ n.jsx(
|
|
40
|
-
|
|
27
|
+
p,
|
|
41
28
|
{
|
|
42
29
|
isOpen: e,
|
|
43
|
-
onClose:
|
|
44
|
-
baseSettings:
|
|
45
|
-
aiChatSettings:
|
|
30
|
+
onClose: r,
|
|
31
|
+
baseSettings: { ...o, ...s },
|
|
32
|
+
aiChatSettings: a,
|
|
46
33
|
searchSettings: {
|
|
47
34
|
prefilledQuery: t || void 0
|
|
48
35
|
}
|
|
49
36
|
}
|
|
50
|
-
),
|
|
51
|
-
onRequestSearch: (e) => typeof window > "u" ? null : /* @__PURE__ */ n.jsx(
|
|
37
|
+
), h = (t) => ({
|
|
38
|
+
onRequestSearch: (e) => typeof window > "u" ? null : /* @__PURE__ */ n.jsx(
|
|
39
|
+
l,
|
|
40
|
+
{
|
|
41
|
+
isOpen: e.isOpen,
|
|
42
|
+
onClose: e.onClose,
|
|
43
|
+
settings: t
|
|
44
|
+
}
|
|
45
|
+
)
|
|
52
46
|
});
|
|
53
47
|
export {
|
|
54
|
-
|
|
48
|
+
h as inkeepSearchPlugin
|
|
55
49
|
};
|
|
56
50
|
//# sourceMappingURL=zudoku.plugin-search-inkeep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zudoku.plugin-search-inkeep.js","sources":["../src/lib/plugins/search-inkeep/inkeep.ts","../src/lib/plugins/search-inkeep/index.tsx"],"sourcesContent":["import {\n InkeepAIChatSettings,\n InkeepModalSettings,\n InkeepSearchSettings,\n
|
|
1
|
+
{"version":3,"file":"zudoku.plugin-search-inkeep.js","sources":["../src/lib/plugins/search-inkeep/inkeep.ts","../src/lib/plugins/search-inkeep/index.tsx"],"sourcesContent":["import {\n InkeepAIChatSettings,\n InkeepModalSettings,\n InkeepSearchSettings,\n} from \"@inkeep/widgets\";\n\nconst baseSettings = {\n theme: {\n components: {\n AIChatPageWrapper: {\n defaultProps: {\n size: \"shrink-vertically\",\n variant: \"no-shadow\",\n },\n },\n SearchBarTrigger: {\n defaultProps: {\n size: \"expand\",\n variant: \"subtle\", // Choose from 'emphasized' or 'subtle'\n },\n },\n },\n },\n} as const;\n\nconst modalSettings: InkeepModalSettings = {};\n\nconst searchSettings: InkeepSearchSettings = {};\n\nconst aiChatSettings: InkeepAIChatSettings = {};\n\nexport { aiChatSettings, baseSettings, modalSettings, searchSettings };\n","import type { InkeepWidgetBaseSettings } from \"@inkeep/widgets\";\nimport { lazy } from \"react\";\nimport type { DevPortalPlugin } from \"../../core/plugins.js\";\nimport { aiChatSettings, baseSettings } from \"./inkeep.js\";\n\ntype PickedPluginInkeepBaseSettings =\n | \"apiKey\"\n | \"integrationId\"\n | \"organizationId\"\n | \"primaryBrandColor\"\n | \"organizationDisplayName\";\n\ntype PluginInkeepBaseSettings = Pick<\n InkeepWidgetBaseSettings,\n PickedPluginInkeepBaseSettings\n>;\n\nconst Inkeep = lazy(() => import(\"./InkeepCustomTrigger.js\"));\n\nconst InkeepSearch = ({\n prefilledQuery,\n isOpen,\n onClose,\n settings,\n}: {\n isOpen: boolean;\n onClose: () => void;\n prefilledQuery?: string | null;\n settings: PluginInkeepBaseSettings;\n}) => {\n return (\n <Inkeep\n isOpen={isOpen}\n onClose={onClose}\n baseSettings={{ ...baseSettings, ...settings }}\n aiChatSettings={aiChatSettings}\n searchSettings={{\n prefilledQuery: prefilledQuery || undefined,\n }}\n />\n );\n};\n\nexport const inkeepSearchPlugin = (\n settings: PluginInkeepBaseSettings,\n): DevPortalPlugin => {\n return {\n onRequestSearch: (o: { isOpen: boolean; onClose: () => void }) => {\n if (typeof window === \"undefined\") {\n return null;\n }\n return (\n <InkeepSearch\n isOpen={o.isOpen}\n onClose={o.onClose}\n settings={settings}\n />\n );\n },\n };\n};\n"],"names":["baseSettings","aiChatSettings","Inkeep","lazy","InkeepSearch","prefilledQuery","isOpen","onClose","settings","jsx","inkeepSearchPlugin","o"],"mappings":";;AAMA,MAAMA,IAAe;AAAA,EACnB,OAAO;AAAA,IACL,YAAY;AAAA,MACV,mBAAmB;AAAA,QACjB,cAAc;AAAA,UACZ,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,MACF;AAAA,MACA,kBAAkB;AAAA,QAChB,cAAc;AAAA,UACZ,MAAM;AAAA,UACN,SAAS;AAAA;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,GAMMC,IAAuC,CAAC,GCZxCC,IAASC,EAAK,MAAM,OAAO,mCAA0B,CAAC,GAEtDC,IAAe,CAAC;AAAA,EACpB,gBAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AACF,MAOIC,gBAAAA,EAAA;AAAA,EAACP;AAAA,EAAA;AAAA,IACC,QAAAI;AAAA,IACA,SAAAC;AAAA,IACA,cAAc,EAAE,GAAGP,GAAc,GAAGQ,EAAS;AAAA,IAC7C,gBAAAP;AAAA,IACA,gBAAgB;AAAA,MACd,gBAAgBI,KAAkB;AAAA,IACpC;AAAA,EAAA;AAAA,GAKOK,IAAqB,CAChCF,OAEO;AAAA,EACL,iBAAiB,CAACG,MACZ,OAAO,SAAW,MACb,OAGPF,gBAAAA,EAAA;AAAA,IAACL;AAAA,IAAA;AAAA,MACC,QAAQO,EAAE;AAAA,MACV,SAASA,EAAE;AAAA,MACX,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
package/package.json
CHANGED
|
@@ -89,7 +89,7 @@ export const Header = memo(function HeaderInner() {
|
|
|
89
89
|
</Link>
|
|
90
90
|
</div>
|
|
91
91
|
<div className="grid grid-cols-[--sidecar-grid-cols] items-center gap-8">
|
|
92
|
-
<div className="w-full
|
|
92
|
+
<div className="w-full justify-center flex">
|
|
93
93
|
<Search />
|
|
94
94
|
</div>
|
|
95
95
|
|
|
@@ -16,21 +16,23 @@ type PluginInkeepBaseSettings = Pick<
|
|
|
16
16
|
>;
|
|
17
17
|
|
|
18
18
|
const Inkeep = lazy(() => import("./InkeepCustomTrigger.js"));
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
const InkeepSearch = ({
|
|
21
21
|
prefilledQuery,
|
|
22
22
|
isOpen,
|
|
23
23
|
onClose,
|
|
24
|
+
settings,
|
|
24
25
|
}: {
|
|
25
26
|
isOpen: boolean;
|
|
26
27
|
onClose: () => void;
|
|
27
28
|
prefilledQuery?: string | null;
|
|
28
|
-
|
|
29
|
+
settings: PluginInkeepBaseSettings;
|
|
30
|
+
}) => {
|
|
29
31
|
return (
|
|
30
32
|
<Inkeep
|
|
31
33
|
isOpen={isOpen}
|
|
32
34
|
onClose={onClose}
|
|
33
|
-
baseSettings={baseSettings}
|
|
35
|
+
baseSettings={{ ...baseSettings, ...settings }}
|
|
34
36
|
aiChatSettings={aiChatSettings}
|
|
35
37
|
searchSettings={{
|
|
36
38
|
prefilledQuery: prefilledQuery || undefined,
|
|
@@ -48,7 +50,11 @@ export const inkeepSearchPlugin = (
|
|
|
48
50
|
return null;
|
|
49
51
|
}
|
|
50
52
|
return (
|
|
51
|
-
<InkeepSearch
|
|
53
|
+
<InkeepSearch
|
|
54
|
+
isOpen={o.isOpen}
|
|
55
|
+
onClose={o.onClose}
|
|
56
|
+
settings={settings}
|
|
57
|
+
/>
|
|
52
58
|
);
|
|
53
59
|
},
|
|
54
60
|
};
|
|
@@ -2,15 +2,9 @@ import {
|
|
|
2
2
|
InkeepAIChatSettings,
|
|
3
3
|
InkeepModalSettings,
|
|
4
4
|
InkeepSearchSettings,
|
|
5
|
-
InkeepWidgetBaseSettings,
|
|
6
5
|
} from "@inkeep/widgets";
|
|
7
6
|
|
|
8
|
-
const baseSettings
|
|
9
|
-
apiKey: "499c156cf7a9798343949c8bb5665ac95e48132c6d68c42e",
|
|
10
|
-
integrationId: "clot3asdz0000s601nc8jwnzx",
|
|
11
|
-
organizationId: "org_dDOlt2uJlMWM8oIS",
|
|
12
|
-
primaryBrandColor: "#ff00bd",
|
|
13
|
-
organizationDisplayName: "Zuplo",
|
|
7
|
+
const baseSettings = {
|
|
14
8
|
theme: {
|
|
15
9
|
components: {
|
|
16
10
|
AIChatPageWrapper: {
|
|
@@ -27,21 +21,12 @@ const baseSettings: InkeepWidgetBaseSettings = {
|
|
|
27
21
|
},
|
|
28
22
|
},
|
|
29
23
|
},
|
|
30
|
-
};
|
|
24
|
+
} as const;
|
|
31
25
|
|
|
32
26
|
const modalSettings: InkeepModalSettings = {};
|
|
33
27
|
|
|
34
28
|
const searchSettings: InkeepSearchSettings = {};
|
|
35
29
|
|
|
36
|
-
const aiChatSettings: InkeepAIChatSettings = {
|
|
37
|
-
shareChatUrlBasePath: `${process.env.NODE_ENV === "development" ? "http://localhost:3000" : "https://zuplo.com"}/docs/ask`,
|
|
38
|
-
isChatSharingEnabled: true,
|
|
39
|
-
quickQuestions: [
|
|
40
|
-
"How do I create a custom policy?",
|
|
41
|
-
"What is the difference between production and preview environments?",
|
|
42
|
-
"How do I set a custom domain?",
|
|
43
|
-
"How do I use environment variables?",
|
|
44
|
-
],
|
|
45
|
-
};
|
|
30
|
+
const aiChatSettings: InkeepAIChatSettings = {};
|
|
46
31
|
|
|
47
32
|
export { aiChatSettings, baseSettings, modalSettings, searchSettings };
|