@inkeep/cxkit-docusaurus 0.5.14 → 0.5.16

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.
@@ -0,0 +1,13 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare function ChatButtonWrapper(): JSX.Element | null;
4
+ export default ChatButtonWrapper;
5
+
6
+ export { }
7
+
8
+
9
+ declare global {
10
+ interface Window {
11
+ InkeepConfig: PluginConfig;
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare function ChatButtonWrapper(): JSX.Element | null;
4
+ export default ChatButtonWrapper;
5
+
6
+ export { }
7
+
8
+
9
+ declare global {
10
+ interface Window {
11
+ InkeepConfig: PluginConfig;
12
+ }
13
+ }
@@ -0,0 +1,16 @@
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 ADDED
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,13 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare function SearchBarWrapper(): JSX.Element | null;
4
+ export default SearchBarWrapper;
5
+
6
+ export { }
7
+
8
+
9
+ declare global {
10
+ interface Window {
11
+ InkeepConfig: PluginConfig;
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare function SearchBarWrapper(): JSX.Element | null;
4
+ export default SearchBarWrapper;
5
+
6
+ export { }
7
+
8
+
9
+ declare global {
10
+ interface Window {
11
+ InkeepConfig: PluginConfig;
12
+ }
13
+ }
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("path"),u=require("./utils/consts.cjs"),c=require("./define-config.cjs");function g(r,t){const{siteConfig:n,siteDir:o}=r;return n.themeConfig.inkeep||(n.themeConfig.inkeep=t),{name:u.PLUGIN_NAME,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 i=e.resolve(o,f);try{return require.resolve(i),[i]}catch{}}return[]}}}exports.defineConfig=c.defineConfig;exports.default=g;
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 CHANGED
@@ -1,9 +1,26 @@
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;
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 CHANGED
@@ -1,9 +1,26 @@
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;
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 CHANGED
@@ -1,10 +1,24 @@
1
1
  import e from "path";
2
- import { PLUGIN_NAME as m } from "./utils/consts.js";
3
- import { defineConfig as u } from "./define-config.js";
4
- function c(o, t) {
5
- const { siteConfig: r, siteDir: i } = o;
6
- return r.themeConfig.inkeep || (r.themeConfig.inkeep = t), {
7
- name: m,
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
+ },
8
22
  getThemePath() {
9
23
  return e.resolve(__dirname, "./theme");
10
24
  },
@@ -12,13 +26,13 @@ function c(o, t) {
12
26
  return e.resolve(__dirname, "./theme");
13
27
  },
14
28
  getClientModules() {
15
- const f = [t.config, "inkeep.config.ts", "inkeep.config.js"].filter(
29
+ const f = [r.config, "inkeep.config.ts", "inkeep.config.js"].filter(
16
30
  Boolean
17
31
  );
18
32
  for (const s of f) {
19
- const n = e.resolve(i, s);
33
+ const o = e.resolve(i, s);
20
34
  try {
21
- return require.resolve(n), [n];
35
+ return require.resolve(o), [o];
22
36
  } catch {
23
37
  }
24
38
  }
@@ -27,6 +41,6 @@ function c(o, t) {
27
41
  };
28
42
  }
29
43
  export {
30
- c as default,
31
- u as defineConfig
44
+ u as default,
45
+ h as defineConfig
32
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-docusaurus",
3
- "version": "0.5.14",
3
+ "version": "0.5.16",
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.5.14"
38
+ "@inkeep/cxkit-types": "0.5.16"
39
39
  },
40
40
  "dependencies": {
41
41
  "merge-anything": "5.1.7",
42
42
  "path": "^0.12.7",
43
- "@inkeep/cxkit-react": "0.5.14"
43
+ "@inkeep/cxkit-react": "0.5.16"
44
44
  },
45
45
  "module": "dist/index.js",
46
46
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- import { PluginConfig } from './types';
2
- export type * from '@inkeep/cxkit-react';
3
- export declare const defineConfig: (config: PluginConfig) => void;
4
- declare global {
5
- interface Window {
6
- InkeepConfig: PluginConfig;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- import { PluginConfig } from './types';
2
- export type * from '@inkeep/cxkit-react';
3
- export declare const defineConfig: (config: PluginConfig) => void;
4
- declare global {
5
- interface Window {
6
- InkeepConfig: PluginConfig;
7
- }
8
- }
@@ -1 +0,0 @@
1
- export default function ChatButtonWrapper(): import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export default function ChatButtonWrapper(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- export default function Root({ children }: {
3
- children: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- export default function Root({ children }: {
3
- children: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function SearchBarWrapper(): import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export default function SearchBarWrapper(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,3 +0,0 @@
1
- import { PluginConfig } from '../types';
2
- import { InkeepConfig } from '@inkeep/cxkit-react';
3
- export declare function useConfig(component: keyof PluginConfig): InkeepConfig | null;
@@ -1,3 +0,0 @@
1
- import { PluginConfig } from '../types';
2
- import { InkeepConfig } from '@inkeep/cxkit-react';
3
- export declare function useConfig(component: keyof PluginConfig): InkeepConfig | null;
@@ -1 +0,0 @@
1
- export declare const PLUGIN_NAME = "docusaurus-plugin-inkeep";
@@ -1 +0,0 @@
1
- export declare const PLUGIN_NAME = "docusaurus-plugin-inkeep";