@inploi/plugin-kin 2.4.6 → 2.5.1
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/cdn/index.js +66 -54
- package/dist/components/button.d.ts +58 -0
- package/dist/components/chat-panel.d.ts +0 -1
- package/dist/components/launcher-input.d.ts +12 -15
- package/dist/components/widget.d.ts +0 -5
- package/dist/{highlighted-body-B3W2YXNL-0ae08105.js → highlighted-body-B3W2YXNL-e7489033.js} +1 -1
- package/dist/{highlighted-body-B3W2YXNL-933fd530.cjs → highlighted-body-B3W2YXNL-f42eaf87.cjs} +1 -1
- package/dist/{index-2f826588.js → index-59d4b2a8.js} +4060 -3995
- package/dist/index-7b10ac82.cjs +167 -0
- package/dist/kin.state.d.ts +6 -5
- package/dist/{mermaid-3ZIDBTTL-132e74b7.js → mermaid-3ZIDBTTL-2b1893d6.js} +1 -1
- package/dist/{mermaid-3ZIDBTTL-1c6420c6.cjs → mermaid-3ZIDBTTL-afe83fd0.cjs} +1 -1
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -1
- package/package.json +1 -1
- package/dist/index-2d61bdd5.cjs +0 -155
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const iconBtn: (props?: ({
|
|
2
|
+
variant?: "ghost" | "neutral" | "accent" | undefined;
|
|
3
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
4
|
+
} & ({
|
|
5
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
} | null | undefined)[] | {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
} | null | undefined)[] | {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
} | null | undefined)[] | {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
} | null | undefined)[] | {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
} | null | undefined)[] | {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
} | null | undefined)[] | {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
} | null | undefined)[] | {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
} | null | undefined)[] | {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
} | null | undefined)[] | {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
} | null | undefined)[] | {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
} | null | undefined)[] | {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
} | null | undefined;
|
|
30
|
+
className?: never;
|
|
31
|
+
} | {
|
|
32
|
+
class?: never;
|
|
33
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
} | null | undefined)[] | {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
} | null | undefined)[] | {
|
|
38
|
+
[x: string]: any;
|
|
39
|
+
} | null | undefined)[] | {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
} | null | undefined)[] | {
|
|
42
|
+
[x: string]: any;
|
|
43
|
+
} | null | undefined)[] | {
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
} | null | undefined)[] | {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
} | null | undefined)[] | {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
} | null | undefined)[] | {
|
|
50
|
+
[x: string]: any;
|
|
51
|
+
} | null | undefined)[] | {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
} | null | undefined)[] | {
|
|
54
|
+
[x: string]: any;
|
|
55
|
+
} | null | undefined)[] | {
|
|
56
|
+
[x: string]: any;
|
|
57
|
+
} | null | undefined;
|
|
58
|
+
})) | undefined) => string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
type ChatPanelProps = {
|
|
2
2
|
onClose: () => void;
|
|
3
3
|
onClearData: () => void;
|
|
4
|
-
/** Called when skip link is clicked to focus the input (hash links don't work in Shadow DOM) */
|
|
5
4
|
onSkipToInput: () => void;
|
|
6
5
|
};
|
|
7
6
|
export declare function ChatPanel({ onClose, onClearData, onSkipToInput }: ChatPanelProps): import("preact").JSX.Element;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export declare function LauncherInput({ panelOpen, suggestions, onSubmit, onEscape, onFocus, onBlur, onUploadFile, inputRef: externalInputRef, }: {
|
|
2
|
+
panelOpen: boolean;
|
|
3
|
+
suggestions: {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
onSubmit: (content: string) => void;
|
|
9
|
+
onEscape: () => void;
|
|
10
|
+
onFocus: () => void;
|
|
11
|
+
onBlur: (relatedTarget: EventTarget | null) => void;
|
|
12
12
|
onUploadFile: (file: File, fileType: string) => void;
|
|
13
|
-
/** External ref for the input element (used by skip link in Shadow DOM) */
|
|
14
13
|
inputRef?: preact.RefObject<HTMLInputElement>;
|
|
15
|
-
};
|
|
16
|
-
export declare function LauncherInput({ isOpen, starterPrompts, onOpen, onClose, onSendMessage, onConnect, onUploadFile, inputRef: externalInputRef, }: LauncherInputProps): import("preact").JSX.Element;
|
|
17
|
-
export {};
|
|
14
|
+
}): import("preact").JSX.Element;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { StarterPrompt } from '../kin';
|
|
2
2
|
|
|
3
3
|
type WidgetProps = {
|
|
4
|
-
/** Starter prompts shown in empty state */
|
|
5
4
|
starterPrompts: StarterPrompt[];
|
|
6
5
|
onSendMessage: (content: string) => void;
|
|
7
6
|
onOpen: () => void;
|
|
8
7
|
onClose: () => void;
|
|
9
|
-
/** Called when input is focused to initiate connection early */
|
|
10
8
|
onConnect: () => void;
|
|
11
|
-
/** Called when user requests to clear their data */
|
|
12
9
|
onClearData: () => void;
|
|
13
|
-
/** Called when user selects a file to upload */
|
|
14
10
|
onUploadFile: (file: File, fileType: string) => void;
|
|
15
|
-
/** Whether running in embedded mode (always open, no launcher) */
|
|
16
11
|
embedded?: boolean;
|
|
17
12
|
};
|
|
18
13
|
export declare function Widget({ starterPrompts, onSendMessage, onOpen, onClose, onConnect, onClearData, onUploadFile, embedded, }: WidgetProps): import("preact").JSX.Element;
|
package/dist/{highlighted-body-B3W2YXNL-0ae08105.js → highlighted-body-B3W2YXNL-e7489033.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as u, R as c, K as d, h as n, p, o as f, Q as k } from "./index-
|
|
1
|
+
import { q as u, R as c, K as d, h as n, p, o as f, Q as k } from "./index-59d4b2a8.js";
|
|
2
2
|
import "@inploi/sdk";
|
|
3
3
|
var N = ({ code: o, language: e, raw: a, className: s, ...h }) => {
|
|
4
4
|
let { shikiTheme: r } = u(c), l = d(), [t, g] = n(a);
|
package/dist/{highlighted-body-B3W2YXNL-933fd530.cjs → highlighted-body-B3W2YXNL-f42eaf87.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-7b10ac82.cjs");require("@inploi/sdk");var c=({code:g,language:l,raw:r,className:u,...s})=>{let{shikiTheme:t}=e.q(e.R),a=e.Ks(),[h,i]=e.h(r);return e.p(()=>{if(!a){i(r);return}let o=a.highlight({code:g,language:l,themes:t},n=>{i(n)});o&&i(o)},[g,l,t,a,r]),e.o(e.Qe,{className:u,language:l,result:h,...s})};exports.HighlightedCodeBlockBody=c;
|