@inploi/plugin-kin 2.4.6 → 2.6.0
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 +63 -89
- package/dist/components/button.d.ts +58 -0
- package/dist/components/chat-panel.d.ts +2 -2
- package/dist/components/icons.d.ts +2 -0
- package/dist/components/launcher-input.d.ts +13 -15
- package/dist/components/widget.d.ts +4 -11
- package/dist/{highlighted-body-B3W2YXNL-0ae08105.js → highlighted-body-B3W2YXNL-1b29102a.js} +1 -1
- package/dist/{highlighted-body-B3W2YXNL-933fd530.cjs → highlighted-body-B3W2YXNL-78604331.cjs} +1 -1
- package/dist/{index-2f826588.js → index-8135527e.js} +5071 -4963
- package/dist/index-e3cd5251.cjs +129 -0
- package/dist/index.d.ts +1 -1
- package/dist/kin.d.ts +11 -7
- package/dist/kin.state.d.ts +6 -5
- package/dist/kin.vars.d.ts +2 -1
- package/dist/{mermaid-3ZIDBTTL-132e74b7.js → mermaid-3ZIDBTTL-d797a68f.js} +1 -1
- package/dist/{mermaid-3ZIDBTTL-1c6420c6.cjs → mermaid-3ZIDBTTL-fd11e7e1.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" | 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,8 +1,8 @@
|
|
|
1
1
|
type ChatPanelProps = {
|
|
2
|
+
embedded?: boolean;
|
|
2
3
|
onClose: () => void;
|
|
3
4
|
onClearData: () => void;
|
|
4
|
-
/** Called when skip link is clicked to focus the input (hash links don't work in Shadow DOM) */
|
|
5
5
|
onSkipToInput: () => void;
|
|
6
6
|
};
|
|
7
|
-
export declare function ChatPanel({ onClose, onClearData, onSkipToInput }: ChatPanelProps): import("preact").JSX.Element;
|
|
7
|
+
export declare function ChatPanel({ embedded, onClose, onClearData, onSkipToInput }: ChatPanelProps): import("preact").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -28,3 +28,5 @@ export declare const SlidersIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => J
|
|
|
28
28
|
export declare const BookmarkIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
29
29
|
/** Pencil icon for streaming states */
|
|
30
30
|
export declare const PencilIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
31
|
+
/** Chevron down icon */
|
|
32
|
+
export declare const ChevronDownIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export declare function LauncherInput({ embedded, panelOpen, suggestions, onSubmit, onEscape, onFocus, onBlur, onUploadFile, inputRef: externalInputRef, }: {
|
|
2
|
+
embedded?: boolean;
|
|
3
|
+
panelOpen: boolean;
|
|
4
|
+
suggestions: {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
onSubmit: (content: string) => void;
|
|
10
|
+
onEscape: () => void;
|
|
11
|
+
onFocus: () => void;
|
|
12
|
+
onBlur: (relatedTarget: EventTarget | null) => void;
|
|
12
13
|
onUploadFile: (file: File, fileType: string) => void;
|
|
13
|
-
/** External ref for the input element (used by skip link in Shadow DOM) */
|
|
14
14
|
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 {};
|
|
15
|
+
}): import("preact").JSX.Element;
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import { StarterPrompt } from '../kin';
|
|
1
|
+
import { KinPlacement, StarterPrompt } from '../kin';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
/** Starter prompts shown in empty state */
|
|
3
|
+
export declare function Widget({ starterPrompts, onSendMessage, onOpen, onClose, onConnect, onClearData, onUploadFile, placement, }: {
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
export declare function Widget({ starterPrompts, onSendMessage, onOpen, onClose, onConnect, onClearData, onUploadFile, embedded, }: WidgetProps): import("preact").JSX.Element;
|
|
19
|
-
export {};
|
|
11
|
+
placement: KinPlacement;
|
|
12
|
+
}): import("preact").JSX.Element;
|
package/dist/{highlighted-body-B3W2YXNL-0ae08105.js → highlighted-body-B3W2YXNL-1b29102a.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-8135527e.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-78604331.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-e3cd5251.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;
|