@inploi/plugin-kin 2.5.1 → 2.6.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 +60 -98
- package/dist/components/button.d.ts +1 -1
- package/dist/components/chat-panel.d.ts +2 -1
- package/dist/components/icons.d.ts +2 -0
- package/dist/components/launcher-input.d.ts +2 -1
- package/dist/components/widget.d.ts +4 -6
- package/dist/{highlighted-body-B3W2YXNL-f42eaf87.cjs → highlighted-body-B3W2YXNL-1cf7ed25.cjs} +1 -1
- package/dist/{highlighted-body-B3W2YXNL-e7489033.js → highlighted-body-B3W2YXNL-538506c1.js} +1 -1
- package/dist/index-9221fd1a.cjs +129 -0
- package/dist/{index-59d4b2a8.js → index-dde00d97.js} +4390 -4316
- package/dist/index.d.ts +1 -1
- package/dist/kin.d.ts +11 -7
- package/dist/kin.vars.d.ts +2 -1
- package/dist/{mermaid-3ZIDBTTL-afe83fd0.cjs → mermaid-3ZIDBTTL-98f9127b.cjs} +1 -1
- package/dist/{mermaid-3ZIDBTTL-2b1893d6.js → mermaid-3ZIDBTTL-dd68905c.js} +1 -1
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -1
- package/package.json +1 -1
- package/dist/index-7b10ac82.cjs +0 -167
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const iconBtn: (props?: ({
|
|
2
2
|
variant?: "ghost" | "neutral" | "accent" | undefined;
|
|
3
|
-
size?: "sm" | "md" |
|
|
3
|
+
size?: "sm" | "md" | undefined;
|
|
4
4
|
} & ({
|
|
5
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
6
|
[x: string]: any;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
type ChatPanelProps = {
|
|
2
|
+
embedded?: boolean;
|
|
2
3
|
onClose: () => void;
|
|
3
4
|
onClearData: () => void;
|
|
4
5
|
onSkipToInput: () => void;
|
|
5
6
|
};
|
|
6
|
-
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;
|
|
7
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,4 +1,5 @@
|
|
|
1
|
-
export declare function LauncherInput({ panelOpen, suggestions, onSubmit, onEscape, onFocus, onBlur, onUploadFile, inputRef: externalInputRef, }: {
|
|
1
|
+
export declare function LauncherInput({ embedded, panelOpen, suggestions, onSubmit, onEscape, onFocus, onBlur, onUploadFile, inputRef: externalInputRef, }: {
|
|
2
|
+
embedded?: boolean;
|
|
2
3
|
panelOpen: boolean;
|
|
3
4
|
suggestions: {
|
|
4
5
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StarterPrompt } from '../kin';
|
|
1
|
+
import { KinPlacement, StarterPrompt } from '../kin';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export declare function Widget({ starterPrompts, onSendMessage, onOpen, onClose, onConnect, onClearData, onUploadFile, placement, }: {
|
|
4
4
|
starterPrompts: StarterPrompt[];
|
|
5
5
|
onSendMessage: (content: string) => void;
|
|
6
6
|
onOpen: () => void;
|
|
@@ -8,7 +8,5 @@ type WidgetProps = {
|
|
|
8
8
|
onConnect: () => void;
|
|
9
9
|
onClearData: () => void;
|
|
10
10
|
onUploadFile: (file: File, fileType: string) => void;
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
export declare function Widget({ starterPrompts, onSendMessage, onOpen, onClose, onConnect, onClearData, onUploadFile, embedded, }: WidgetProps): import("preact").JSX.Element;
|
|
14
|
-
export {};
|
|
11
|
+
placement: KinPlacement;
|
|
12
|
+
}): import("preact").JSX.Element;
|
package/dist/{highlighted-body-B3W2YXNL-f42eaf87.cjs → highlighted-body-B3W2YXNL-1cf7ed25.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-9221fd1a.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;
|
package/dist/{highlighted-body-B3W2YXNL-e7489033.js → highlighted-body-B3W2YXNL-538506c1.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-dde00d97.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);
|