@inploi/plugin-kin 2.4.5 → 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 +78 -66
- package/dist/components/button.d.ts +58 -0
- package/dist/components/chat-panel.d.ts +0 -1
- package/dist/components/icons.d.ts +26 -24
- package/dist/components/launcher-input.d.ts +12 -15
- package/dist/components/tooltip.d.ts +6 -0
- package/dist/components/widget.d.ts +0 -5
- package/dist/{highlighted-body-B3W2YXNL-cf1dd1b0.js → highlighted-body-B3W2YXNL-e7489033.js} +1 -1
- package/dist/{highlighted-body-B3W2YXNL-83627bd5.cjs → highlighted-body-B3W2YXNL-f42eaf87.cjs} +1 -1
- package/dist/{index-f5004342.js → index-59d4b2a8.js} +5768 -5636
- package/dist/index-7b10ac82.cjs +167 -0
- package/dist/kin.client.d.ts +2 -1
- package/dist/kin.state.d.ts +17 -11
- package/dist/{mermaid-3ZIDBTTL-600263e6.js → mermaid-3ZIDBTTL-2b1893d6.js} +1 -1
- package/dist/{mermaid-3ZIDBTTL-5bd83464.cjs → mermaid-3ZIDBTTL-afe83fd0.cjs} +1 -1
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -1
- package/package.json +3 -3
- package/dist/index-f96f6514.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,28 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type IconProps = {
|
|
9
|
-
class?: string;
|
|
10
|
-
/** Override aria-hidden for non-decorative uses */
|
|
11
|
-
'aria-hidden'?: boolean | 'true' | 'false';
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Kin Logo - Official inploi logomark
|
|
15
|
-
* Source: /kin/public/inploi-logomark-white.svg
|
|
16
|
-
*/
|
|
17
|
-
export declare function KinIcon({ class: className, 'aria-hidden': ariaHidden }: IconProps): import("preact").JSX.Element;
|
|
18
|
-
/** Arrow up icon for send button */
|
|
19
|
-
export declare function ArrowUpIcon({ class: className, 'aria-hidden': ariaHidden }: IconProps): import("preact").JSX.Element;
|
|
1
|
+
import { JSX } from 'preact';
|
|
2
|
+
|
|
3
|
+
export declare function KinIcon({ class: className }: {
|
|
4
|
+
class: string;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
/** Send icon */
|
|
7
|
+
export declare const SendIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
20
8
|
/** Close X icon */
|
|
21
|
-
export declare
|
|
9
|
+
export declare const CloseIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
22
10
|
/** Trash icon for clear data button */
|
|
23
|
-
export declare
|
|
11
|
+
export declare const TrashIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
12
|
+
export declare const TickIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
24
13
|
/** Attachment/paperclip icon for file upload */
|
|
25
|
-
export declare
|
|
14
|
+
export declare const AttachmentIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
26
15
|
/** Loading spinner icon */
|
|
27
|
-
export declare
|
|
28
|
-
|
|
16
|
+
export declare const SpinnerIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
17
|
+
/** Sparkles icon for generic AI thinking states */
|
|
18
|
+
export declare const SparklesIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
19
|
+
/** Search icon for lookup and knowledge states */
|
|
20
|
+
export declare const SearchIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
21
|
+
/** Briefcase icon for job search states */
|
|
22
|
+
export declare const BriefcaseIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
23
|
+
/** Document icon for profile and CV processing states */
|
|
24
|
+
export declare const DocumentIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
25
|
+
/** Sliders icon for preferences updates */
|
|
26
|
+
export declare const SlidersIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
27
|
+
/** Bookmark icon for saved memory states */
|
|
28
|
+
export declare const BookmarkIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
29
|
+
/** Pencil icon for streaming states */
|
|
30
|
+
export declare const PencilIcon: (props: JSX.SVGAttributes<SVGSVGElement>) => 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-cf1dd1b0.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-83627bd5.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;
|