@inploi/plugin-kin 2.5.1 → 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 +58 -96
- 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-e7489033.js → highlighted-body-B3W2YXNL-1b29102a.js} +1 -1
- package/dist/{highlighted-body-B3W2YXNL-f42eaf87.cjs → highlighted-body-B3W2YXNL-78604331.cjs} +1 -1
- package/dist/{index-59d4b2a8.js → index-8135527e.js} +4307 -4264
- package/dist/index-e3cd5251.cjs +129 -0
- 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-2b1893d6.js → mermaid-3ZIDBTTL-d797a68f.js} +1 -1
- package/dist/{mermaid-3ZIDBTTL-afe83fd0.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-7b10ac82.cjs +0 -167
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { kinPlugin, type Kin, type KinPlugin, type KinPluginParams, type KinTheme } from './kin';
|
|
1
|
+
export { kinPlugin, type Kin, type KinPlacement, type KinPlugin, type KinPluginParams, type KinRounded, type KinTheme, } from './kin';
|
package/dist/kin.d.ts
CHANGED
|
@@ -12,7 +12,11 @@ export type KinTheme = {
|
|
|
12
12
|
neutralColor?: string;
|
|
13
13
|
/** Light or dark mode */
|
|
14
14
|
mode: 'light' | 'dark';
|
|
15
|
+
/** Global rounding preset */
|
|
16
|
+
rounded?: KinRounded;
|
|
15
17
|
};
|
|
18
|
+
export type KinPlacement = 'left' | 'center' | 'right' | 'embedded';
|
|
19
|
+
export type KinRounded = 'sm' | 'md' | 'lg';
|
|
16
20
|
export type KinPluginParams = {
|
|
17
21
|
/** Override the agents service URL. Defaults to production (wss://agents.inploi.com). Only needed for local development. */
|
|
18
22
|
serviceUrl?: string;
|
|
@@ -21,14 +25,14 @@ export type KinPluginParams = {
|
|
|
21
25
|
/** Starter prompts shown in empty state to help users begin */
|
|
22
26
|
starterPrompts?: StarterPrompt[];
|
|
23
27
|
/**
|
|
24
|
-
*
|
|
25
|
-
* - '
|
|
26
|
-
* - 'embedded':
|
|
28
|
+
* Widget placement:
|
|
29
|
+
* - 'left' | 'center' | 'right': Floating positions on desktop
|
|
30
|
+
* - 'embedded': Inline mode (fills the provided container)
|
|
27
31
|
*/
|
|
28
|
-
|
|
32
|
+
placement?: KinPlacement;
|
|
29
33
|
/**
|
|
30
|
-
* Container element or selector for embedded
|
|
31
|
-
* If not provided in embedded
|
|
34
|
+
* Container element or selector for embedded placement.
|
|
35
|
+
* If not provided in embedded placement, creates its own container.
|
|
32
36
|
*/
|
|
33
37
|
container?: HTMLElement | string;
|
|
34
38
|
};
|
|
@@ -37,7 +41,7 @@ export type Kin = ReturnType<ReturnType<KinPlugin>>;
|
|
|
37
41
|
/**
|
|
38
42
|
* Creates the Kin plugin
|
|
39
43
|
*/
|
|
40
|
-
export declare const kinPlugin: ({ serviceUrl, theme, starterPrompts,
|
|
44
|
+
export declare const kinPlugin: ({ serviceUrl, theme, starterPrompts, placement, container: containerOption, }: KinPluginParams) => ({ logger, publishableKey }: {
|
|
41
45
|
apiClient: import('@inploi/sdk').ApiClient;
|
|
42
46
|
rpcClient: import('@inploi/sdk').InploiRpcClient;
|
|
43
47
|
logger: import('@inploi/sdk').Logger;
|
package/dist/kin.vars.d.ts
CHANGED
|
@@ -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");exports.Mermaid=e.Nt;
|
package/dist/plugin-kin.cjs
CHANGED
|
@@ -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");exports.kinPlugin=e.kinPlugin;
|
package/dist/plugin-kin.js
CHANGED