@inkeep/cxkit-docusaurus 0.0.0-dev-20250226022822
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/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/define-config.cjs +1 -0
- package/dist/define-config.d.cts +3 -0
- package/dist/define-config.d.ts +3 -0
- package/dist/define-config.js +4 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +33 -0
- package/dist/theme/ChatButton.d.cts +1 -0
- package/dist/theme/ChatButton.d.ts +1 -0
- package/dist/theme/Root.d.cts +4 -0
- package/dist/theme/Root.d.ts +4 -0
- package/dist/theme/SearchBar.d.cts +1 -0
- package/dist/theme/SearchBar.d.ts +1 -0
- package/dist/utils/config.d.cts +3 -0
- package/dist/utils/config.d.ts +3 -0
- package/dist/utils/consts.cjs +1 -0
- package/dist/utils/consts.d.cts +1 -0
- package/dist/utils/consts.d.ts +1 -0
- package/dist/utils/consts.js +4 -0
- package/package.json +66 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Chakra UI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# @inkeep/cxkit-docusaurus
|
|
2
|
+
|
|
3
|
+
A Docusaurus plugin that integrates Inkeep Chat Button and Search Bar components into your documentation site.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @inkeep/cxkit-docusaurus
|
|
9
|
+
# or
|
|
10
|
+
yarn add @inkeep/cxkit-docusaurus
|
|
11
|
+
# or
|
|
12
|
+
pnpm add @inkeep/cxkit-docusaurus
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Configuration
|
|
16
|
+
|
|
17
|
+
Add the plugin to your `docusaurus.config.js`:
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
const baseSettings = {
|
|
21
|
+
apiKey: 'YOUR_API_KEY',
|
|
22
|
+
}
|
|
23
|
+
module.exports = {
|
|
24
|
+
plugins: [
|
|
25
|
+
[
|
|
26
|
+
'@inkeep/cxkit-docusaurus',
|
|
27
|
+
{
|
|
28
|
+
ChatButton: {
|
|
29
|
+
// Props for InkeepChatButton component
|
|
30
|
+
baseSettings,
|
|
31
|
+
modalSettings: {
|
|
32
|
+
// Props for InkeepChatButton modal
|
|
33
|
+
shortcutKey: null,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
SearchBar: {
|
|
37
|
+
// Props for InkeepSearchBar component
|
|
38
|
+
baseSettings,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
],
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
> Adding the component key to plugin options means enabling it, removing it means disabling it.
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
Inkeep, Inc. Customer License (IICL) v1.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=e=>e;exports.defineConfig=n;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("path"),g=require("./utils/consts.cjs"),l=require("./define-config.cjs");function u(o,n){const{siteConfig:r,siteDir:i}=o;return r.themeConfig.inkeep||(r.themeConfig.inkeep=n),{name:g.PLUGIN_NAME,getThemePath(){return e.resolve(__dirname,"./theme")},getTypeScriptThemePath(){return e.resolve(__dirname,"./theme")},getClientModules(){const s=[n.config,"inkeep.config.ts","inkeep.config.js"].filter(Boolean);for(const f of s){const t=e.resolve(i,f);try{return require.resolve(t),[t]}catch(c){console.error("Error resolving Inkeep config:",c)}}return[]}}}exports.defineConfig=l.defineConfig;exports.default=u;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from '@docusaurus/types';
|
|
2
|
+
import { InkeepPluginOptions, PluginTheme } from './types';
|
|
3
|
+
export * from './define-config';
|
|
4
|
+
export default function inkeepPlugin(context: {
|
|
5
|
+
siteConfig: {
|
|
6
|
+
themeConfig: PluginTheme;
|
|
7
|
+
};
|
|
8
|
+
siteDir: string;
|
|
9
|
+
}, options: InkeepPluginOptions): Plugin;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from '@docusaurus/types';
|
|
2
|
+
import { InkeepPluginOptions, PluginTheme } from './types';
|
|
3
|
+
export * from './define-config';
|
|
4
|
+
export default function inkeepPlugin(context: {
|
|
5
|
+
siteConfig: {
|
|
6
|
+
themeConfig: PluginTheme;
|
|
7
|
+
};
|
|
8
|
+
siteDir: string;
|
|
9
|
+
}, options: InkeepPluginOptions): Plugin;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import e from "path";
|
|
2
|
+
import { PLUGIN_NAME as c } from "./utils/consts.js";
|
|
3
|
+
import { defineConfig as u } from "./define-config.js";
|
|
4
|
+
function a(t, r) {
|
|
5
|
+
const { siteConfig: o, siteDir: i } = t;
|
|
6
|
+
return o.themeConfig.inkeep || (o.themeConfig.inkeep = r), {
|
|
7
|
+
name: c,
|
|
8
|
+
getThemePath() {
|
|
9
|
+
return e.resolve(__dirname, "./theme");
|
|
10
|
+
},
|
|
11
|
+
getTypeScriptThemePath() {
|
|
12
|
+
return e.resolve(__dirname, "./theme");
|
|
13
|
+
},
|
|
14
|
+
getClientModules() {
|
|
15
|
+
const f = [r.config, "inkeep.config.ts", "inkeep.config.js"].filter(
|
|
16
|
+
Boolean
|
|
17
|
+
);
|
|
18
|
+
for (const s of f) {
|
|
19
|
+
const n = e.resolve(i, s);
|
|
20
|
+
try {
|
|
21
|
+
return require.resolve(n), [n];
|
|
22
|
+
} catch (g) {
|
|
23
|
+
console.error("Error resolving Inkeep config:", g);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
a as default,
|
|
32
|
+
u as defineConfig
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ChatButtonWrapper(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ChatButtonWrapper(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SearchBarWrapper(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SearchBarWrapper(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="docusaurus-plugin-inkeep";exports.PLUGIN_NAME=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PLUGIN_NAME = "docusaurus-plugin-inkeep";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PLUGIN_NAME = "docusaurus-plugin-inkeep";
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@inkeep/cxkit-docusaurus",
|
|
3
|
+
"version": "0.0.0-dev-20250226022822",
|
|
4
|
+
"description": "Docusaurus plugin for Inkeep Chat and Search components",
|
|
5
|
+
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
|
+
"homepage": "",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/inkeep/widget",
|
|
10
|
+
"directory": "packages/docusaurus"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "dist/index.cjs",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"clean-package": "../../clean-package.config.json",
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": ">=16.8.0",
|
|
24
|
+
"react-dom": ">=16.8.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@biomejs/biome": "1.9.4",
|
|
28
|
+
"@docusaurus/module-type-aliases": "3.7.0",
|
|
29
|
+
"@docusaurus/types": "^3.0.0",
|
|
30
|
+
"@types/node": "22.10.2",
|
|
31
|
+
"@types/react": "19.0.10",
|
|
32
|
+
"clean-package": "2.2.0",
|
|
33
|
+
"globby": "14.0.2",
|
|
34
|
+
"react": "19.0.0",
|
|
35
|
+
"typescript": "5.7.3",
|
|
36
|
+
"vite": "5.4.11",
|
|
37
|
+
"vite-plugin-dts": "4.4.0",
|
|
38
|
+
"@inkeep/cxkit-types": "0.0.0-dev-20250226022822"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"merge-anything": "6.0.2",
|
|
42
|
+
"path": "^0.12.7",
|
|
43
|
+
"@inkeep/cxkit-react": "0.0.0-dev-20250226022822"
|
|
44
|
+
},
|
|
45
|
+
"module": "dist/index.js",
|
|
46
|
+
"types": "dist/index.d.ts",
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"source": "./src/index.ts",
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/index.d.ts",
|
|
52
|
+
"default": "./dist/index.js"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/index.d.cts",
|
|
56
|
+
"default": "./dist/index.cjs"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"./package.json": "./package.json"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "vite build",
|
|
63
|
+
"lint": "biome lint ./src",
|
|
64
|
+
"typecheck": "tsc"
|
|
65
|
+
}
|
|
66
|
+
}
|