@aikaara/chat-sdk 1.2.3 → 1.3.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/dist/{MountTenant-1xXLgB3H.mjs → MountTenant-8zB0FoEP.mjs} +4618 -4777
- package/dist/{MountTenant-DosfgV8Y.cjs → MountTenant-CP_CYdl8.cjs} +97 -107
- package/dist/headless.cjs +1 -1
- package/dist/headless.d.ts +4 -70
- package/dist/headless.mjs +3 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -70
- package/dist/index.mjs +22 -23
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +0 -23
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
- package/dist/cdn/aikaara-chat.iife.js +0 -1495
package/dist/headless.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MountTenant-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MountTenant-CP_CYdl8.cjs");class s extends e.EventEmitter{registration=null;pendingEdits=[];constructor(t){super(),this.setupListeners(t)}registerForm(t){this.registration=t;const i=this.pendingEdits.filter(r=>r.entity_type===t.entityType&&String(r.entity_id)===String(t.entityId));if(i.length>0){for(const r of i)t.onFieldUpdate(r.fields),this.emit("edit:applied",{entityType:r.entity_type,entityId:r.entity_id,fields:r.fields});this.pendingEdits=this.pendingEdits.filter(r=>!(r.entity_type===t.entityType&&String(r.entity_id)===String(t.entityId)))}}unregisterForm(t,i){this.registration?.entityType===t&&String(this.registration?.entityId)===String(i)&&(this.registration=null)}get currentForm(){return this.registration}pushFieldUpdates(t,i,r){this.registration&&this.registration.entityType===t&&String(this.registration.entityId)===String(i)?(this.registration.onFieldUpdate(r),this.emit("edit:applied",{entityType:t,entityId:i,fields:r})):(this.pendingEdits.push({action:"edit_entity",entity_type:t,entity_id:i,fields:r}),this.emit("edit:pending",{entityType:t,entityId:i,fields:r}))}async requestSave(){if(!this.registration)return{success:!1,error:"No form registered"};try{return await this.registration.onSave(),this.emit("save:success",{entityType:this.registration.entityType,entityId:this.registration.entityId}),{success:!0}}catch(t){const i=t instanceof Error?t.message:"Save failed";return this.emit("save:error",{entityType:this.registration.entityType,entityId:this.registration.entityId,error:i}),{success:!1,error:i}}}async requestTest(t){if(!this.registration?.onTest)return{success:!1,error:"Current form does not support testing"};try{return await this.registration.onTest(t),{success:!0}}catch(i){return{success:!1,error:i instanceof Error?i.message:"Test failed"}}}setupListeners(t){t.on("action:edit_entity",i=>{this.pushFieldUpdates(i.entity_type,i.entity_id,i.fields)}),t.on("action:save_entity",i=>{this.requestSave()}),t.on("action:test_tool",i=>{this.emit("test:triggered",{toolId:i.tool_id,parameters:i.parameters}),this.requestTest(i.parameters)})}}exports.ActionCableClient=e.ActionCableClient;exports.AikaaraChatClient=e.AikaaraChatClient;exports.ApiClient=e.ApiClient;exports.ChannelSubscription=e.ChannelSubscription;exports.ConnectionManager=e.ConnectionManager;exports.ConversationManager=e.ConversationManager;exports.EventEmitter=e.EventEmitter;exports.MessageStore=e.MessageStore;exports.SessionAuthAdapter=e.SessionAuthAdapter;exports.SsoExchangeAdapter=e.SsoExchangeAdapter;exports.TiledeskTransport=e.TiledeskTransport;exports.TokenDiscoveryError=e.TokenDiscoveryError;exports.TokenDiscoveryReader=e.TokenDiscoveryReader;exports.clearPersistedConversationId=e.clearPersistedConversationId;exports.collectSsoCredentials=e.collectSsoCredentials;exports.createFetchUploadAdapter=e.createFetchUploadAdapter;exports.createPresigned3StepUploadAdapter=e.createPresigned3StepUploadAdapter;exports.createTiledeskHistoryAdapter=e.createTiledeskHistoryAdapter;exports.discoverToken=e.discoverToken;exports.extractTiledeskFileEnvelope=e.extractTiledeskFileEnvelope;exports.inferTiledeskRole=e.inferTiledeskRole;exports.isTiledeskSelfEcho=e.isTiledeskSelfEcho;exports.mountFromSlug=e.mountFromSlug;exports.mountTenantWidget=e.mount;exports.parseTiledeskTemplate=e.parseTiledeskTemplate;exports.FormBridge=s;
|
package/dist/headless.d.ts
CHANGED
|
@@ -1061,6 +1061,10 @@ export declare interface PostMsgSourceConfig {
|
|
|
1061
1061
|
timeoutMs?: number;
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
|
+
/**
|
|
1065
|
+
* One HTTP call run by the SDK before auth. Failure of `soft: true` steps
|
|
1066
|
+
* is logged and ignored; failure of strict steps aborts the mount.
|
|
1067
|
+
*/
|
|
1064
1068
|
export declare interface PreflightStep {
|
|
1065
1069
|
url: string;
|
|
1066
1070
|
method?: 'GET' | 'POST' | 'PUT';
|
|
@@ -1071,13 +1075,6 @@ export declare interface PreflightStep {
|
|
|
1071
1075
|
authHeaderTemplate?: string;
|
|
1072
1076
|
/** Continue on non-2xx. Default `false` (mount abort). */
|
|
1073
1077
|
soft?: boolean;
|
|
1074
|
-
/**
|
|
1075
|
-
* When this step fires. Absent / `before-chat` runs in the pre-mount
|
|
1076
|
-
* preflight chain as today; `on-method-select` defers it to the hosted
|
|
1077
|
-
* shell's method screen (so `{serviceType}`/`{userType}` resolve from the
|
|
1078
|
-
* user's pick). Fully backward compatible — no trigger means before-chat.
|
|
1079
|
-
*/
|
|
1080
|
-
trigger?: PreflightTrigger;
|
|
1081
1078
|
/**
|
|
1082
1079
|
* When set, parse the response as JSON and capture the value at the
|
|
1083
1080
|
* given dotted path (e.g. `data.token`). The captured value can be
|
|
@@ -1102,24 +1099,6 @@ export declare interface PreflightStep {
|
|
|
1102
1099
|
};
|
|
1103
1100
|
}
|
|
1104
1101
|
|
|
1105
|
-
/**
|
|
1106
|
-
* One HTTP call run by the SDK before auth. Failure of `soft: true` steps
|
|
1107
|
-
* is logged and ignored; failure of strict steps aborts the mount.
|
|
1108
|
-
*/
|
|
1109
|
-
/**
|
|
1110
|
-
* When a preflight step fires. Shared vocabulary across the SDK, the hosted
|
|
1111
|
-
* shell (screen:method handler), and the dashboard editors:
|
|
1112
|
-
* - `before-chat` — pre-mount preflight chain, exactly as today. This is
|
|
1113
|
-
* also the implicit default when `trigger` is absent, so
|
|
1114
|
-
* every existing descriptor keeps byte-identical behaviour.
|
|
1115
|
-
* - `on-method-select` — deferred to the hosted shell's screen:method
|
|
1116
|
-
* handler, fired *after* the user picks a method so the
|
|
1117
|
-
* step's URL/body can interpolate `{serviceType}` and
|
|
1118
|
-
* `{userType}` (e.g. a leader-assignment warmup).
|
|
1119
|
-
* - `during-login` — reserved for the native LoginScreen chain.
|
|
1120
|
-
*/
|
|
1121
|
-
export declare type PreflightTrigger = 'before-chat' | 'on-method-select' | 'during-login';
|
|
1122
|
-
|
|
1123
1102
|
/**
|
|
1124
1103
|
* Three-step presigned-S3 upload (sign → PUT → register). Driven entirely
|
|
1125
1104
|
* by descriptor — no tenant-specific code in host apps.
|
|
@@ -1335,28 +1314,6 @@ export declare interface RouteDef {
|
|
|
1335
1314
|
layout?: string;
|
|
1336
1315
|
}
|
|
1337
1316
|
|
|
1338
|
-
/**
|
|
1339
|
-
* Standalone runner for the `on-method-select` slice of a descriptor's
|
|
1340
|
-
* preflight chain. The hosted shell's method picker (screen:method) calls
|
|
1341
|
-
* this *after* the user picks a method but *before* the chat mounts, so a
|
|
1342
|
-
* leader-assignment (or any warmup) declared as an `on-method-select`
|
|
1343
|
-
* preflight step interpolates `{serviceType}`/`{userType}` from the pick.
|
|
1344
|
-
*
|
|
1345
|
-
* No-op (resolves `{}`) when no step carries `trigger: 'on-method-select'`,
|
|
1346
|
-
* so descriptors without method-select steps are unaffected. Returns the
|
|
1347
|
-
* captured map (same shape as the pre-mount preflight pass).
|
|
1348
|
-
*/
|
|
1349
|
-
export declare function runMethodSelectPreflight(args: {
|
|
1350
|
-
steps?: PreflightStep[];
|
|
1351
|
-
sessionToken: SessionTokenProvider;
|
|
1352
|
-
userId: string;
|
|
1353
|
-
projectId?: string;
|
|
1354
|
-
slug?: string;
|
|
1355
|
-
serviceType?: string;
|
|
1356
|
-
userType?: string;
|
|
1357
|
-
identity?: Record<string, string | undefined>;
|
|
1358
|
-
}): Promise<Record<string, string>>;
|
|
1359
|
-
|
|
1360
1317
|
export declare interface SaveEntityAction {
|
|
1361
1318
|
action: 'save_entity';
|
|
1362
1319
|
}
|
|
@@ -1486,19 +1443,6 @@ export declare interface SlugMountedWidget extends MountedTenantWidget {
|
|
|
1486
1443
|
* `true`; returns `null` immediately otherwise.
|
|
1487
1444
|
*/
|
|
1488
1445
|
refreshPartnerAuth(): Promise<string | null>;
|
|
1489
|
-
/**
|
|
1490
|
-
* Run the descriptor's `on-method-select` preflight steps. The hosted
|
|
1491
|
-
* shell calls this from its screen:method handler after the user picks a
|
|
1492
|
-
* method, passing `{serviceType}`/`{userType}` so a leader-assignment (or
|
|
1493
|
-
* any warmup) declared as an on-method-select preflight step interpolates
|
|
1494
|
-
* the pick correctly. No-op (resolves `{}`) when the descriptor has no
|
|
1495
|
-
* such steps. Returns the captured map (same shape as before-chat preflight).
|
|
1496
|
-
*/
|
|
1497
|
-
runMethodSelectPreflight(sel?: {
|
|
1498
|
-
serviceType?: string;
|
|
1499
|
-
userType?: string;
|
|
1500
|
-
identity?: Record<string, string | undefined>;
|
|
1501
|
-
}): Promise<Record<string, string>>;
|
|
1502
1446
|
}
|
|
1503
1447
|
|
|
1504
1448
|
export declare interface SlugMountOptions {
|
|
@@ -2351,16 +2295,6 @@ export declare interface WidgetConfig extends ChatClientConfig {
|
|
|
2351
2295
|
sendButtonShape?: 'circle' | 'square';
|
|
2352
2296
|
};
|
|
2353
2297
|
templateLayout?: 'inside' | 'outside';
|
|
2354
|
-
/**
|
|
2355
|
-
* Override the header overflow-menu actions. Pass an empty array `[]` to
|
|
2356
|
-
* hide the overflow menu entirely (disables Smart Edit and any future items).
|
|
2357
|
-
* When omitted the SDK uses its built-in defaults (currently "Edit ITR Details").
|
|
2358
|
-
*/
|
|
2359
|
-
chatActions?: {
|
|
2360
|
-
id: string;
|
|
2361
|
-
label: string;
|
|
2362
|
-
icon?: 'edit' | 'mail' | 'star';
|
|
2363
|
-
}[];
|
|
2364
2298
|
showBubble?: boolean;
|
|
2365
2299
|
bubbleText?: string;
|
|
2366
2300
|
bubbleIcon?: string;
|
package/dist/headless.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as s } from "./MountTenant-
|
|
2
|
-
import { A as p, b as l, k as g, C as c, l as h, m as y, M as u, S as m, n as f, T, o as S, p as _, q as v, s as E, t as C, u as F, v as k, w as A, x as I, y as x, z as U, B as q, D as M, F as b
|
|
1
|
+
import { E as s } from "./MountTenant-8zB0FoEP.mjs";
|
|
2
|
+
import { A as p, b as l, k as g, C as c, l as h, m as y, M as u, S as m, n as f, T, o as S, p as _, q as v, s as E, t as C, u as F, v as k, w as A, x as I, y as x, z as U, B as q, D as M, F as b } from "./MountTenant-8zB0FoEP.mjs";
|
|
3
3
|
class a extends s {
|
|
4
4
|
registration = null;
|
|
5
5
|
pendingEdits = [];
|
|
@@ -118,6 +118,5 @@ export {
|
|
|
118
118
|
U as isTiledeskSelfEcho,
|
|
119
119
|
q as mountFromSlug,
|
|
120
120
|
M as mountTenantWidget,
|
|
121
|
-
b as parseTiledeskTemplate
|
|
122
|
-
w as runMethodSelectPreflight
|
|
121
|
+
b as parseTiledeskTemplate
|
|
123
122
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MountTenant-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MountTenant-CP_CYdl8.cjs"),s=require("./headless.cjs");function l(a){e.registerComponents();const t=document.createElement("aikaara-chat-widget"),i={baseUrl:"base-url",userToken:"user-token",apiKey:"api-key",title:"title",subtitle:"subtitle",theme:"theme",primaryColor:"primary-color",position:"position",width:"width",height:"height",placeholder:"placeholder",welcomeMessage:"welcome-message",avatarUrl:"avatar-url"};for(const[o,n]of Object.entries(i)){const r=a[o];r!=null&&t.setAttribute(n,String(r))}return t.configure(a),document.body.appendChild(t),t}function d(){const a=document.querySelector("aikaara-chat-widget");a&&a.remove()}exports.ActionCableClient=e.ActionCableClient;exports.AikaaraChatBubble=e.AikaaraChatBubble;exports.AikaaraChatClient=e.AikaaraChatClient;exports.AikaaraChatHeader=e.AikaaraChatHeader;exports.AikaaraChatInput=e.AikaaraChatInput;exports.AikaaraChatWidget=e.AikaaraChatWidget;exports.AikaaraErrorBanner=e.AikaaraErrorBanner;exports.AikaaraMessageBubble=e.AikaaraMessageBubble;exports.AikaaraMessageList=e.AikaaraMessageList;exports.AikaaraStreamingMessage=e.AikaaraStreamingMessage;exports.AikaaraTypingIndicator=e.AikaaraTypingIndicator;exports.ApiClient=e.ApiClient;exports.ChannelSubscription=e.ChannelSubscription;exports.ConnectionManager=e.ConnectionManager;exports.ConversationManager=e.ConversationManager;exports.EventEmitter=e.EventEmitter;exports.MessageStore=e.MessageStore;exports.SessionAuthAdapter=e.SessionAuthAdapter;exports.SsoExchangeAdapter=e.SsoExchangeAdapter;exports.TiledeskTransport=e.TiledeskTransport;exports.TokenDiscoveryError=e.TokenDiscoveryError;exports.TokenDiscoveryReader=e.TokenDiscoveryReader;exports.clearPersistedConversationId=e.clearPersistedConversationId;exports.collectSsoCredentials=e.collectSsoCredentials;exports.createFetchUploadAdapter=e.createFetchUploadAdapter;exports.createPresigned3StepUploadAdapter=e.createPresigned3StepUploadAdapter;exports.createTiledeskHistoryAdapter=e.createTiledeskHistoryAdapter;exports.discoverToken=e.discoverToken;exports.extractTiledeskFileEnvelope=e.extractTiledeskFileEnvelope;exports.inferTiledeskRole=e.inferTiledeskRole;exports.isTiledeskSelfEcho=e.isTiledeskSelfEcho;exports.mountFromSlug=e.mountFromSlug;exports.mountTenantWidget=e.mount;exports.parseTiledeskTemplate=e.parseTiledeskTemplate;exports.registerComponents=e.registerComponents;exports.FormBridge=s.FormBridge;exports.mount=l;exports.unmount=d;
|
package/dist/index.d.ts
CHANGED
|
@@ -982,6 +982,10 @@ export declare interface PostMsgSourceConfig {
|
|
|
982
982
|
timeoutMs?: number;
|
|
983
983
|
}
|
|
984
984
|
|
|
985
|
+
/**
|
|
986
|
+
* One HTTP call run by the SDK before auth. Failure of `soft: true` steps
|
|
987
|
+
* is logged and ignored; failure of strict steps aborts the mount.
|
|
988
|
+
*/
|
|
985
989
|
export declare interface PreflightStep {
|
|
986
990
|
url: string;
|
|
987
991
|
method?: 'GET' | 'POST' | 'PUT';
|
|
@@ -992,13 +996,6 @@ export declare interface PreflightStep {
|
|
|
992
996
|
authHeaderTemplate?: string;
|
|
993
997
|
/** Continue on non-2xx. Default `false` (mount abort). */
|
|
994
998
|
soft?: boolean;
|
|
995
|
-
/**
|
|
996
|
-
* When this step fires. Absent / `before-chat` runs in the pre-mount
|
|
997
|
-
* preflight chain as today; `on-method-select` defers it to the hosted
|
|
998
|
-
* shell's method screen (so `{serviceType}`/`{userType}` resolve from the
|
|
999
|
-
* user's pick). Fully backward compatible — no trigger means before-chat.
|
|
1000
|
-
*/
|
|
1001
|
-
trigger?: PreflightTrigger;
|
|
1002
999
|
/**
|
|
1003
1000
|
* When set, parse the response as JSON and capture the value at the
|
|
1004
1001
|
* given dotted path (e.g. `data.token`). The captured value can be
|
|
@@ -1023,24 +1020,6 @@ export declare interface PreflightStep {
|
|
|
1023
1020
|
};
|
|
1024
1021
|
}
|
|
1025
1022
|
|
|
1026
|
-
/**
|
|
1027
|
-
* One HTTP call run by the SDK before auth. Failure of `soft: true` steps
|
|
1028
|
-
* is logged and ignored; failure of strict steps aborts the mount.
|
|
1029
|
-
*/
|
|
1030
|
-
/**
|
|
1031
|
-
* When a preflight step fires. Shared vocabulary across the SDK, the hosted
|
|
1032
|
-
* shell (screen:method handler), and the dashboard editors:
|
|
1033
|
-
* - `before-chat` — pre-mount preflight chain, exactly as today. This is
|
|
1034
|
-
* also the implicit default when `trigger` is absent, so
|
|
1035
|
-
* every existing descriptor keeps byte-identical behaviour.
|
|
1036
|
-
* - `on-method-select` — deferred to the hosted shell's screen:method
|
|
1037
|
-
* handler, fired *after* the user picks a method so the
|
|
1038
|
-
* step's URL/body can interpolate `{serviceType}` and
|
|
1039
|
-
* `{userType}` (e.g. a leader-assignment warmup).
|
|
1040
|
-
* - `during-login` — reserved for the native LoginScreen chain.
|
|
1041
|
-
*/
|
|
1042
|
-
export declare type PreflightTrigger = 'before-chat' | 'on-method-select' | 'during-login';
|
|
1043
|
-
|
|
1044
1023
|
/**
|
|
1045
1024
|
* Three-step presigned-S3 upload (sign → PUT → register). Driven entirely
|
|
1046
1025
|
* by descriptor — no tenant-specific code in host apps.
|
|
@@ -1258,28 +1237,6 @@ export declare interface RouteDef {
|
|
|
1258
1237
|
layout?: string;
|
|
1259
1238
|
}
|
|
1260
1239
|
|
|
1261
|
-
/**
|
|
1262
|
-
* Standalone runner for the `on-method-select` slice of a descriptor's
|
|
1263
|
-
* preflight chain. The hosted shell's method picker (screen:method) calls
|
|
1264
|
-
* this *after* the user picks a method but *before* the chat mounts, so a
|
|
1265
|
-
* leader-assignment (or any warmup) declared as an `on-method-select`
|
|
1266
|
-
* preflight step interpolates `{serviceType}`/`{userType}` from the pick.
|
|
1267
|
-
*
|
|
1268
|
-
* No-op (resolves `{}`) when no step carries `trigger: 'on-method-select'`,
|
|
1269
|
-
* so descriptors without method-select steps are unaffected. Returns the
|
|
1270
|
-
* captured map (same shape as the pre-mount preflight pass).
|
|
1271
|
-
*/
|
|
1272
|
-
export declare function runMethodSelectPreflight(args: {
|
|
1273
|
-
steps?: PreflightStep[];
|
|
1274
|
-
sessionToken: SessionTokenProvider;
|
|
1275
|
-
userId: string;
|
|
1276
|
-
projectId?: string;
|
|
1277
|
-
slug?: string;
|
|
1278
|
-
serviceType?: string;
|
|
1279
|
-
userType?: string;
|
|
1280
|
-
identity?: Record<string, string | undefined>;
|
|
1281
|
-
}): Promise<Record<string, string>>;
|
|
1282
|
-
|
|
1283
1240
|
export declare interface SaveEntityAction {
|
|
1284
1241
|
action: 'save_entity';
|
|
1285
1242
|
}
|
|
@@ -1405,19 +1362,6 @@ export declare interface SlugMountedWidget extends MountedTenantWidget {
|
|
|
1405
1362
|
* `true`; returns `null` immediately otherwise.
|
|
1406
1363
|
*/
|
|
1407
1364
|
refreshPartnerAuth(): Promise<string | null>;
|
|
1408
|
-
/**
|
|
1409
|
-
* Run the descriptor's `on-method-select` preflight steps. The hosted
|
|
1410
|
-
* shell calls this from its screen:method handler after the user picks a
|
|
1411
|
-
* method, passing `{serviceType}`/`{userType}` so a leader-assignment (or
|
|
1412
|
-
* any warmup) declared as an on-method-select preflight step interpolates
|
|
1413
|
-
* the pick correctly. No-op (resolves `{}`) when the descriptor has no
|
|
1414
|
-
* such steps. Returns the captured map (same shape as before-chat preflight).
|
|
1415
|
-
*/
|
|
1416
|
-
runMethodSelectPreflight(sel?: {
|
|
1417
|
-
serviceType?: string;
|
|
1418
|
-
userType?: string;
|
|
1419
|
-
identity?: Record<string, string | undefined>;
|
|
1420
|
-
}): Promise<Record<string, string>>;
|
|
1421
1365
|
}
|
|
1422
1366
|
|
|
1423
1367
|
export declare interface SlugMountOptions {
|
|
@@ -2124,16 +2068,6 @@ export declare interface WidgetConfig extends ChatClientConfig {
|
|
|
2124
2068
|
sendButtonShape?: 'circle' | 'square';
|
|
2125
2069
|
};
|
|
2126
2070
|
templateLayout?: 'inside' | 'outside';
|
|
2127
|
-
/**
|
|
2128
|
-
* Override the header overflow-menu actions. Pass an empty array `[]` to
|
|
2129
|
-
* hide the overflow menu entirely (disables Smart Edit and any future items).
|
|
2130
|
-
* When omitted the SDK uses its built-in defaults (currently "Edit ITR Details").
|
|
2131
|
-
*/
|
|
2132
|
-
chatActions?: {
|
|
2133
|
-
id: string;
|
|
2134
|
-
label: string;
|
|
2135
|
-
icon?: 'edit' | 'mail' | 'star';
|
|
2136
|
-
}[];
|
|
2137
2071
|
showBubble?: boolean;
|
|
2138
2072
|
bubbleText?: string;
|
|
2139
2073
|
bubbleIcon?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as o } from "./MountTenant-
|
|
2
|
-
import { A as u, a as m, b as
|
|
3
|
-
import { FormBridge as
|
|
1
|
+
import { r as o } from "./MountTenant-8zB0FoEP.mjs";
|
|
2
|
+
import { A as u, a as m, b as k, c as g, d as h, e as A, f as C, g as T, h as b, i as v, j as f, k as y, C as S, l as w, m as E, E as M, M as x, S as B, n as F, T as U, o as D, p as I, q as j, s as q, t as H, u as P, v as R, w as W, x as z, y as K, z as L, B as O, D as G, F as J } from "./MountTenant-8zB0FoEP.mjs";
|
|
3
|
+
import { FormBridge as Q } from "./headless.mjs";
|
|
4
4
|
function l(e) {
|
|
5
5
|
o();
|
|
6
6
|
const a = document.createElement("aikaara-chat-widget"), r = {
|
|
@@ -31,41 +31,40 @@ function d() {
|
|
|
31
31
|
export {
|
|
32
32
|
u as ActionCableClient,
|
|
33
33
|
m as AikaaraChatBubble,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
k as AikaaraChatClient,
|
|
35
|
+
g as AikaaraChatHeader,
|
|
36
|
+
h as AikaaraChatInput,
|
|
37
37
|
A as AikaaraChatWidget,
|
|
38
38
|
C as AikaaraErrorBanner,
|
|
39
39
|
T as AikaaraMessageBubble,
|
|
40
40
|
b as AikaaraMessageList,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
v as AikaaraStreamingMessage,
|
|
42
|
+
f as AikaaraTypingIndicator,
|
|
43
|
+
y as ApiClient,
|
|
44
|
+
S as ChannelSubscription,
|
|
45
|
+
w as ConnectionManager,
|
|
46
|
+
E as ConversationManager,
|
|
47
|
+
M as EventEmitter,
|
|
48
|
+
Q as FormBridge,
|
|
49
49
|
x as MessageStore,
|
|
50
50
|
B as SessionAuthAdapter,
|
|
51
51
|
F as SsoExchangeAdapter,
|
|
52
52
|
U as TiledeskTransport,
|
|
53
53
|
D as TokenDiscoveryError,
|
|
54
54
|
I as TokenDiscoveryReader,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
j as clearPersistedConversationId,
|
|
56
|
+
q as collectSsoCredentials,
|
|
57
|
+
H as createFetchUploadAdapter,
|
|
58
|
+
P as createPresigned3StepUploadAdapter,
|
|
59
59
|
R as createTiledeskHistoryAdapter,
|
|
60
60
|
W as discoverToken,
|
|
61
61
|
z as extractTiledeskFileEnvelope,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
K as inferTiledeskRole,
|
|
63
|
+
L as isTiledeskSelfEcho,
|
|
64
64
|
l as mount,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
O as mountFromSlug,
|
|
66
|
+
G as mountTenantWidget,
|
|
67
67
|
J as parseTiledeskTemplate,
|
|
68
68
|
o as registerComponents,
|
|
69
|
-
N as runMethodSelectPreflight,
|
|
70
69
|
d as unmount
|
|
71
70
|
};
|
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./MountTenant-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./MountTenant-CP_CYdl8.cjs");exports.AikaaraChat=a.AikaaraChat;exports.AikaaraChatBubble=a.AikaaraChatBubble;exports.AikaaraChatHeader=a.AikaaraChatHeader;exports.AikaaraChatInput=a.AikaaraChatInput;exports.AikaaraChatWidget=a.AikaaraChatWidget;exports.AikaaraComparePlans=a.AikaaraComparePlans;exports.AikaaraErrorBanner=a.AikaaraErrorBanner;exports.AikaaraLinkModal=a.AikaaraLinkModal;exports.AikaaraMessageBubble=a.AikaaraMessageBubble;exports.AikaaraMessageList=a.AikaaraMessageList;exports.AikaaraModalAction=a.AikaaraModalAction;exports.AikaaraOptionList=a.AikaaraOptionList;exports.AikaaraSchemaForm=a.AikaaraSchemaForm;exports.AikaaraSmartEditModal=a.AikaaraSmartEditModal;exports.AikaaraStreamingMessage=a.AikaaraStreamingMessage;exports.AikaaraSubmitAction=a.AikaaraSubmitAction;exports.AikaaraSystemPill=a.AikaaraSystemPill;exports.AikaaraTemplateRenderer=a.AikaaraTemplateRenderer;exports.AikaaraTypingIndicator=a.AikaaraTypingIndicator;exports.registerComponents=a.registerComponents;
|
package/dist/ui.d.ts
CHANGED
|
@@ -357,14 +357,9 @@ export declare class AikaaraOptionList extends HTMLElement {
|
|
|
357
357
|
private shadow;
|
|
358
358
|
private data;
|
|
359
359
|
private selected;
|
|
360
|
-
private preSelectedDisabled;
|
|
361
360
|
constructor();
|
|
362
361
|
connectedCallback(): void;
|
|
363
362
|
setPayload(payload: OptionListPayload): void;
|
|
364
|
-
/** Name of the form field — used by AikaaraTemplateRenderer to match postback keys. */
|
|
365
|
-
getName(): string;
|
|
366
|
-
/** Pre-populate selections from history and lock the list to display-only. */
|
|
367
|
-
setPreSelected(values: string[]): void;
|
|
368
363
|
/** Read selected values — used by parent submit action to collect form state. */
|
|
369
364
|
getValues(): {
|
|
370
365
|
name: string;
|
|
@@ -532,19 +527,11 @@ export declare class AikaaraTemplateRenderer extends HTMLElement {
|
|
|
532
527
|
private payloadData;
|
|
533
528
|
private innerMessage;
|
|
534
529
|
private renderGen;
|
|
535
|
-
private _consumedValues;
|
|
536
530
|
static get observedAttributes(): string[];
|
|
537
531
|
constructor();
|
|
538
532
|
connectedCallback(): void;
|
|
539
533
|
attributeChangedCallback(): void;
|
|
540
534
|
setPayload(payload: unknown, innerMessage?: string): void;
|
|
541
|
-
/**
|
|
542
|
-
* Forward previously-submitted form values to child option lists so they
|
|
543
|
-
* render pre-selected and locked. Values are stored so render() can
|
|
544
|
-
* re-apply them if connectedCallback fires and re-creates the children.
|
|
545
|
-
*/
|
|
546
|
-
setConsumedValues(values: Record<string, string[]>): void;
|
|
547
|
-
private _applyConsumedToChildren;
|
|
548
535
|
private render;
|
|
549
536
|
private mountField;
|
|
550
537
|
/**
|
|
@@ -1440,16 +1427,6 @@ declare interface WidgetConfig extends ChatClientConfig {
|
|
|
1440
1427
|
sendButtonShape?: 'circle' | 'square';
|
|
1441
1428
|
};
|
|
1442
1429
|
templateLayout?: 'inside' | 'outside';
|
|
1443
|
-
/**
|
|
1444
|
-
* Override the header overflow-menu actions. Pass an empty array `[]` to
|
|
1445
|
-
* hide the overflow menu entirely (disables Smart Edit and any future items).
|
|
1446
|
-
* When omitted the SDK uses its built-in defaults (currently "Edit ITR Details").
|
|
1447
|
-
*/
|
|
1448
|
-
chatActions?: {
|
|
1449
|
-
id: string;
|
|
1450
|
-
label: string;
|
|
1451
|
-
icon?: 'edit' | 'mail' | 'star';
|
|
1452
|
-
}[];
|
|
1453
1430
|
showBubble?: boolean;
|
|
1454
1431
|
bubbleText?: string;
|
|
1455
1432
|
bubbleIcon?: string;
|
package/dist/ui.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as i, a as s, c as e, d as t, e as A, H as k, f as n, I as o, g as m, h as d, J as l, K as g, L as h, N as p, i as C, O as M, P as b, Q as c, j as S, r as u } from "./MountTenant-8zB0FoEP.mjs";
|
|
2
2
|
export {
|
|
3
3
|
i as AikaaraChat,
|
|
4
4
|
s as AikaaraChatBubble,
|