@inkeep/cxkit-docusaurus 0.0.0-dev-20250723223321 → 0.0.0-rc-20250807041404
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/package.json +3 -3
- package/dist/ChatButton.d.cts +0 -13
- package/dist/ChatButton.d.ts +0 -13
- package/dist/Root.d.cts +0 -16
- package/dist/Root.d.ts +0 -16
- package/dist/SearchBar.d.cts +0 -13
- package/dist/SearchBar.d.ts +0 -13
- package/dist/define-config.cjs +0 -1
- package/dist/define-config.js +0 -6
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -26
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -46
- package/dist/theme/ChatButton.cjs +0 -1
- package/dist/theme/ChatButton.js +0 -10
- package/dist/theme/Root.cjs +0 -1
- package/dist/theme/Root.js +0 -8
- package/dist/theme/SearchBar.cjs +0 -1
- package/dist/theme/SearchBar.js +0 -10
- package/dist/utils/config.cjs +0 -13
- package/dist/utils/config.js +0 -52
- package/dist/utils/consts.cjs +0 -1
- package/dist/utils/consts.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/cxkit-docusaurus",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-rc-20250807041404",
|
|
4
4
|
"description": "Docusaurus plugin for Inkeep Chat and Search components",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"typescript": "5.7.3",
|
|
36
36
|
"vite": "5.4.11",
|
|
37
37
|
"vite-plugin-dts": "4.4.0",
|
|
38
|
-
"@inkeep/cxkit-types": "0.0.0-
|
|
38
|
+
"@inkeep/cxkit-types": "0.0.0-rc-20250807041404"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"merge-anything": "5.1.7",
|
|
42
42
|
"path": "^0.12.7",
|
|
43
|
-
"@inkeep/cxkit-react": "0.0.0-
|
|
43
|
+
"@inkeep/cxkit-react": "0.0.0-rc-20250807041404"
|
|
44
44
|
},
|
|
45
45
|
"module": "dist/index.js",
|
|
46
46
|
"types": "dist/index.d.ts",
|
package/dist/ChatButton.d.cts
DELETED
package/dist/ChatButton.d.ts
DELETED
package/dist/Root.d.cts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as default_2 } from 'react';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
declare function Root({ children }: {
|
|
5
|
-
children: default_2.ReactNode;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
export default Root;
|
|
8
|
-
|
|
9
|
-
export { }
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare global {
|
|
13
|
-
interface Window {
|
|
14
|
-
InkeepConfig: PluginConfig;
|
|
15
|
-
}
|
|
16
|
-
}
|
package/dist/Root.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as default_2 } from 'react';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
declare function Root({ children }: {
|
|
5
|
-
children: default_2.ReactNode;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
export default Root;
|
|
8
|
-
|
|
9
|
-
export { }
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare global {
|
|
13
|
-
interface Window {
|
|
14
|
-
InkeepConfig: PluginConfig;
|
|
15
|
-
}
|
|
16
|
-
}
|
package/dist/SearchBar.d.cts
DELETED
package/dist/SearchBar.d.ts
DELETED
package/dist/define-config.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=e=>{typeof window<"u"&&(window.InkeepConfig=e)};exports.defineConfig=n;
|
package/dist/define-config.js
DELETED
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("path"),u=require("./utils/consts.cjs"),l=require("./define-config.cjs");function c(i,t){const{siteConfig:n,siteDir:o}=i;return n.themeConfig.inkeep||(n.themeConfig.inkeep=t),{name:u.PLUGIN_NAME,configureWebpack(){return{module:{rules:[{test:/\.m?js/,resolve:{fullySpecified:!1}}]}}},getThemePath(){return e.resolve(__dirname,"./theme")},getTypeScriptThemePath(){return e.resolve(__dirname,"./theme")},getClientModules(){const s=[t.config,"inkeep.config.ts","inkeep.config.js"].filter(Boolean);for(const f of s){const r=e.resolve(o,f);try{return require.resolve(r),[r]}catch{}}return[]}}}exports.defineConfig=l.defineConfig;exports.default=c;
|
package/dist/index.d.cts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { InkeepPluginOptions } from './types';
|
|
2
|
-
import { Plugin as Plugin_2 } from '@docusaurus/types';
|
|
3
|
-
import { PluginConfig } from './types';
|
|
4
|
-
import { PluginTheme } from './types';
|
|
5
|
-
|
|
6
|
-
export declare const defineConfig: (config: PluginConfig) => void;
|
|
7
|
-
|
|
8
|
-
declare function inkeepPlugin(context: {
|
|
9
|
-
siteConfig: {
|
|
10
|
-
themeConfig: PluginTheme;
|
|
11
|
-
};
|
|
12
|
-
siteDir: string;
|
|
13
|
-
}, options: InkeepPluginOptions): Plugin_2;
|
|
14
|
-
export default inkeepPlugin;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export * from "@inkeep/cxkit-react";
|
|
18
|
-
|
|
19
|
-
export { }
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
declare global {
|
|
23
|
-
interface Window {
|
|
24
|
-
InkeepConfig: PluginConfig;
|
|
25
|
-
}
|
|
26
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { InkeepPluginOptions } from './types';
|
|
2
|
-
import { Plugin as Plugin_2 } from '@docusaurus/types';
|
|
3
|
-
import { PluginConfig } from './types';
|
|
4
|
-
import { PluginTheme } from './types';
|
|
5
|
-
|
|
6
|
-
export declare const defineConfig: (config: PluginConfig) => void;
|
|
7
|
-
|
|
8
|
-
declare function inkeepPlugin(context: {
|
|
9
|
-
siteConfig: {
|
|
10
|
-
themeConfig: PluginTheme;
|
|
11
|
-
};
|
|
12
|
-
siteDir: string;
|
|
13
|
-
}, options: InkeepPluginOptions): Plugin_2;
|
|
14
|
-
export default inkeepPlugin;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export * from "@inkeep/cxkit-react";
|
|
18
|
-
|
|
19
|
-
export { }
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
declare global {
|
|
23
|
-
interface Window {
|
|
24
|
-
InkeepConfig: PluginConfig;
|
|
25
|
-
}
|
|
26
|
-
}
|
package/dist/index.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import e from "path";
|
|
2
|
-
import { PLUGIN_NAME as l } from "./utils/consts.js";
|
|
3
|
-
import { defineConfig as h } from "./define-config.js";
|
|
4
|
-
function u(n, r) {
|
|
5
|
-
const { siteConfig: t, siteDir: i } = n;
|
|
6
|
-
return t.themeConfig.inkeep || (t.themeConfig.inkeep = r), {
|
|
7
|
-
name: l,
|
|
8
|
-
configureWebpack() {
|
|
9
|
-
return {
|
|
10
|
-
module: {
|
|
11
|
-
rules: [
|
|
12
|
-
{
|
|
13
|
-
test: /\.m?js/,
|
|
14
|
-
resolve: {
|
|
15
|
-
fullySpecified: !1
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
getThemePath() {
|
|
23
|
-
return e.resolve(__dirname, "./theme");
|
|
24
|
-
},
|
|
25
|
-
getTypeScriptThemePath() {
|
|
26
|
-
return e.resolve(__dirname, "./theme");
|
|
27
|
-
},
|
|
28
|
-
getClientModules() {
|
|
29
|
-
const f = [r.config, "inkeep.config.ts", "inkeep.config.js"].filter(
|
|
30
|
-
Boolean
|
|
31
|
-
);
|
|
32
|
-
for (const s of f) {
|
|
33
|
-
const o = e.resolve(i, s);
|
|
34
|
-
try {
|
|
35
|
-
return require.resolve(o), [o];
|
|
36
|
-
} catch {
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return [];
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
u as default,
|
|
45
|
-
h as defineConfig
|
|
46
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react"),c=require("@inkeep/cxkit-react"),a=require("../utils/config.cjs");function i(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=i(u);function l(){const e=a.useConfig("ChatButton");return e?r.createElement(r.Fragment,null,r.createElement(c.InkeepChatButton,{...e})):null}exports.default=l;
|
package/dist/theme/ChatButton.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as t from "react";
|
|
2
|
-
import { InkeepChatButton as n } from "@inkeep/cxkit-react";
|
|
3
|
-
import { useConfig as r } from "../utils/config.js";
|
|
4
|
-
function u() {
|
|
5
|
-
const e = r("ChatButton");
|
|
6
|
-
return e ? /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(n, { ...e })) : null;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
u as default
|
|
10
|
-
};
|
package/dist/theme/Root.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react"),u=require("./ChatButton.cjs");function r({children:t}){return e.createElement(e.Fragment,null,t,e.createElement(u.default,null))}exports.default=r;
|
package/dist/theme/Root.js
DELETED
package/dist/theme/SearchBar.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),o=require("@inkeep/cxkit-react"),u=require("../utils/config.cjs");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=i(a);function l(){const e=u.useConfig("SearchBar");return e?n.createElement(n.Fragment,null,n.createElement(o.InkeepSearchBar,{...e})):null}exports.default=l;
|
package/dist/theme/SearchBar.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
import { InkeepSearchBar as t } from "@inkeep/cxkit-react";
|
|
3
|
-
import { useConfig as a } from "../utils/config.js";
|
|
4
|
-
function c() {
|
|
5
|
-
const e = a("SearchBar");
|
|
6
|
-
return e ? /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(t, { ...e })) : null;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
c as default
|
|
10
|
-
};
|
package/dist/utils/config.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@docusaurus/useDocusaurusContext"),a=require("merge-anything"),n={key:"inkeep-docusaurus-default-styles",type:"style",value:`
|
|
2
|
-
@media (max-width: 33em) {
|
|
3
|
-
.ikp-search-bar__button {
|
|
4
|
-
padding-inline: 7px;
|
|
5
|
-
}
|
|
6
|
-
.ikp-search-bar__text {
|
|
7
|
-
display: none;
|
|
8
|
-
}
|
|
9
|
-
.ikp-search-bar__kbd-wrapper {
|
|
10
|
-
display: none;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`};function u(r){const{siteConfig:i}=c(),s=i.themeConfig,l=typeof window<"u"?window.InkeepConfig:{},e=a.merge(s.inkeep??{},l??{})[r];if(!e)return null;const o=s.prism.theme,m=s.prism.darkTheme||o;if(e.baseSettings?.theme?.styles){const t=e.baseSettings.theme.styles;t.some(g=>g.key===n.key)||(e.baseSettings.theme.styles=[n,...t])}const d={baseSettings:{primaryBrandColor:"",colorMode:{sync:{target:"html",attributes:["data-theme"],isDarkMode:t=>t["data-theme"]==="dark"}},organizationDisplayName:i.title,theme:{styles:[n],syntaxHighlighter:{lightTheme:o,darkTheme:m}}}};return a.merge(d,e??{})}exports.useConfig=u;
|
package/dist/utils/config.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import p from "@docusaurus/useDocusaurusContext";
|
|
2
|
-
import { merge as a } from "merge-anything";
|
|
3
|
-
const i = {
|
|
4
|
-
key: "inkeep-docusaurus-default-styles",
|
|
5
|
-
type: "style",
|
|
6
|
-
value: `
|
|
7
|
-
@media (max-width: 33em) {
|
|
8
|
-
.ikp-search-bar__button {
|
|
9
|
-
padding-inline: 7px;
|
|
10
|
-
}
|
|
11
|
-
.ikp-search-bar__text {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
.ikp-search-bar__kbd-wrapper {
|
|
15
|
-
display: none;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
`
|
|
19
|
-
};
|
|
20
|
-
function u(r) {
|
|
21
|
-
const { siteConfig: n } = p(), s = n.themeConfig, m = typeof window < "u" ? window.InkeepConfig : {}, e = a(s.inkeep ?? {}, m ?? {})[r];
|
|
22
|
-
if (!e) return null;
|
|
23
|
-
const o = s.prism.theme, l = s.prism.darkTheme || o;
|
|
24
|
-
if (e.baseSettings?.theme?.styles) {
|
|
25
|
-
const t = e.baseSettings.theme.styles;
|
|
26
|
-
t.some((h) => h.key === i.key) || (e.baseSettings.theme.styles = [i, ...t]);
|
|
27
|
-
}
|
|
28
|
-
const d = {
|
|
29
|
-
baseSettings: {
|
|
30
|
-
primaryBrandColor: "",
|
|
31
|
-
colorMode: {
|
|
32
|
-
sync: {
|
|
33
|
-
target: "html",
|
|
34
|
-
attributes: ["data-theme"],
|
|
35
|
-
isDarkMode: (t) => t["data-theme"] === "dark"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
organizationDisplayName: n.title,
|
|
39
|
-
theme: {
|
|
40
|
-
styles: [i],
|
|
41
|
-
syntaxHighlighter: {
|
|
42
|
-
lightTheme: o,
|
|
43
|
-
darkTheme: l
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
return a(d, e ?? {});
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
u as useConfig
|
|
52
|
-
};
|
package/dist/utils/consts.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="docusaurus-plugin-inkeep";exports.PLUGIN_NAME=e;
|
package/dist/utils/consts.js
DELETED