@inploi/plugin-kin 2.0.0 → 2.1.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 +99 -73
- package/dist/{code-block-37QAKDTI-ca6c9b98.cjs → code-block-37QAKDTI-576199ff.cjs} +1 -1
- package/dist/{code-block-37QAKDTI-b5c12d79.js → code-block-37QAKDTI-af2193be.js} +1 -1
- package/dist/components/widget.d.ts +3 -1
- package/dist/{index-e5dbdc11.js → index-40023a17.js} +3763 -3802
- package/dist/{index-ac748070.cjs → index-5fda7aab.cjs} +85 -59
- package/dist/kin.d.ts +12 -1
- package/dist/{mermaid-4DMBBIKO-c9e92f22.cjs → mermaid-4DMBBIKO-532dee41.cjs} +1 -1
- package/dist/{mermaid-4DMBBIKO-807d8577.js → mermaid-4DMBBIKO-86182ec6.js} +1 -1
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -1
- package/package.json +1 -1
package/dist/kin.d.ts
CHANGED
|
@@ -18,13 +18,24 @@ export type KinPluginParams = {
|
|
|
18
18
|
theme?: KinTheme;
|
|
19
19
|
/** Starter prompts shown in empty state to help users begin */
|
|
20
20
|
starterPrompts?: StarterPrompt[];
|
|
21
|
+
/**
|
|
22
|
+
* Display mode:
|
|
23
|
+
* - 'floating' (default): Renders as a floating launcher + panel overlay
|
|
24
|
+
* - 'embedded': Renders inline within a container element
|
|
25
|
+
*/
|
|
26
|
+
mode?: 'floating' | 'embedded';
|
|
27
|
+
/**
|
|
28
|
+
* Container element or selector for embedded mode.
|
|
29
|
+
* If not provided in embedded mode, creates its own container.
|
|
30
|
+
*/
|
|
31
|
+
container?: HTMLElement | string;
|
|
21
32
|
};
|
|
22
33
|
export type KinPlugin = typeof kinPlugin;
|
|
23
34
|
export type Kin = ReturnType<ReturnType<KinPlugin>>;
|
|
24
35
|
/**
|
|
25
36
|
* Creates the Kin plugin
|
|
26
37
|
*/
|
|
27
|
-
export declare const kinPlugin: ({ serviceUrl, publishableKey, theme, starterPrompts }: KinPluginParams) => ({ logger }: {
|
|
38
|
+
export declare const kinPlugin: ({ serviceUrl, publishableKey, theme, starterPrompts, mode, container: containerOption, }: KinPluginParams) => ({ logger }: {
|
|
28
39
|
apiClient: import('@inploi/sdk').ApiClient;
|
|
29
40
|
rpcClient: import('@inploi/sdk').InploiRpcClient;
|
|
30
41
|
logger: import('@inploi/sdk').Logger;
|
|
@@ -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-5fda7aab.cjs");require("@inploi/sdk");exports.Mermaid=e.tt;
|
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-5fda7aab.cjs");require("@inploi/sdk");exports.BRAND_THEMES=e.BRAND_THEMES;exports.kinPlugin=e.kinPlugin;
|
package/dist/plugin-kin.js
CHANGED