@epam/ai-dial-visualizer-connector 1.3.0-dev.161 → 1.3.0-dev.164
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/index.d.ts +4 -0
- package/index.d.ts.map +1 -1
- package/index.js +179 -1
- package/lib/AppsEditorClient.d.ts +50 -0
- package/lib/AppsEditorClient.d.ts.map +1 -0
- package/lib/AppsEditorHost.d.ts +31 -0
- package/lib/AppsEditorHost.d.ts.map +1 -0
- package/lib/ChatVisualizerConnector.d.ts +1 -0
- package/lib/ChatVisualizerConnector.d.ts.map +1 -1
- package/lib/apps-editor-protocol.d.ts +12 -0
- package/lib/apps-editor-protocol.d.ts.map +1 -0
- package/models/apps-editor.d.ts +91 -0
- package/models/apps-editor.d.ts.map +1 -0
- package/models/visualizer-connector.d.ts +4 -1
- package/models/visualizer-connector.d.ts.map +1 -1
- package/package.json +1 -1
- package/types/visualizer-connector.d.ts +1 -1
- package/types/visualizer-connector.d.ts.map +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export { ChatVisualizerConnector, type ChatVisualizerEventType, } from './lib/ChatVisualizerConnector';
|
|
2
2
|
export { VisualizerConnector } from './lib/VisualizerConnector';
|
|
3
|
+
export { AppsEditorHost, type AppsEditorHostOptions, } from './lib/AppsEditorHost';
|
|
4
|
+
export { AppsEditorClient, type AppsEditorClientOptions, } from './lib/AppsEditorClient';
|
|
5
|
+
export { parseAppsEditorClientMessage, parseAppsEditorHostMessage, serializeAppsEditorClientMessage, } from './lib/apps-editor-protocol';
|
|
6
|
+
export type { AppsEditorClientMessage, AppsEditorHostMessage, AppsEditorTriggerSaveMessage, AppsEditorToolsetResultMessage, AppsEditorLifecycleMessage, AppsEditorUpdatedMessage, AppsEditorSaveSuccessMessage, AppsEditorSaveErrorMessage, AppsEditorValidityMessage, AppsEditorDirtyMessage, AppsEditorToolsetRequestMessage, AppsEditorCredentialsRequestMessage, } from './models/apps-editor';
|
|
3
7
|
export type { AppsEditorMessage, ChatVisualizerCallbacks, VisualizerAttachmentData, VisualizerGroupedAttachmentItem, VisualizerGroupedAttachmentsData, VisualizerConnectorLoaderStyles, VisualizerConnectorOptions, VisualizerConnectorRequest, } from './models/visualizer-connector';
|
|
4
8
|
export { AppsEditorEvents, AppsEditorMessages, VisualizerConnectorEvents, VisualizerConnectorRequests, } from './types/visualizer-connector';
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,KAAK,uBAAuB,GAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,YAAY,EACV,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,gCAAgC,EAChC,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,KAAK,uBAAuB,GAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,cAAc,EACd,KAAK,qBAAqB,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,KAAK,uBAAuB,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,+BAA+B,EAC/B,mCAAmC,GACpC,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,gCAAgC,EAChC,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC"}
|
package/index.js
CHANGED
|
@@ -250,6 +250,184 @@ var e = /* @__PURE__ */ function(e) {
|
|
|
250
250
|
hideLoader() {
|
|
251
251
|
m(this.loader, { display: "none" });
|
|
252
252
|
}
|
|
253
|
+
}, x = (e) => typeof e == "object" && !!e && !Array.isArray(e), S = (e) => typeof e == "string" && e.length > 0, C = (e) => {
|
|
254
|
+
let t = new URL(e).origin;
|
|
255
|
+
if (t === "null") throw Error("An application editor requires a non-opaque origin");
|
|
256
|
+
return t;
|
|
257
|
+
}, w = (e, t) => {
|
|
258
|
+
if (!x(e)) return null;
|
|
259
|
+
let i = x(e.payload) ? e.payload : void 0;
|
|
260
|
+
switch (e.type) {
|
|
261
|
+
case `${t}/${n.ReadyToInteract}`: return { type: n.ReadyToInteract };
|
|
262
|
+
case `${t}/${n.ReadyToSave}`: return { type: n.ReadyToSave };
|
|
263
|
+
case `${t}/${n.LoggedOut}`: return { type: n.LoggedOut };
|
|
264
|
+
case `${t}/${n.UpdatedApplicationSuccess}`: return {
|
|
265
|
+
type: n.UpdatedApplicationSuccess,
|
|
266
|
+
...i ? { payload: { application: i.application } } : {}
|
|
267
|
+
};
|
|
268
|
+
case r.SaveSuccess: return {
|
|
269
|
+
type: r.SaveSuccess,
|
|
270
|
+
hasChanges: e.hasChanges === !0
|
|
271
|
+
};
|
|
272
|
+
case r.SaveError: {
|
|
273
|
+
let t = e.error ?? i?.error ?? "";
|
|
274
|
+
return typeof t == "string" ? {
|
|
275
|
+
type: r.SaveError,
|
|
276
|
+
error: t
|
|
277
|
+
} : null;
|
|
278
|
+
}
|
|
279
|
+
case r.ValidityState: return typeof i?.isValid == "boolean" ? {
|
|
280
|
+
type: r.ValidityState,
|
|
281
|
+
payload: { isValid: i.isValid }
|
|
282
|
+
} : null;
|
|
283
|
+
case r.DirtyState: {
|
|
284
|
+
let t = i?.isDirty ?? e.isDirty;
|
|
285
|
+
return typeof t == "boolean" ? {
|
|
286
|
+
type: r.DirtyState,
|
|
287
|
+
payload: { isDirty: t }
|
|
288
|
+
} : null;
|
|
289
|
+
}
|
|
290
|
+
case r.RequestToolsetLogin:
|
|
291
|
+
case r.RequestToolsetLogout: return S(e.toolsetId) ? {
|
|
292
|
+
type: e.type,
|
|
293
|
+
toolsetId: e.toolsetId
|
|
294
|
+
} : null;
|
|
295
|
+
case r.RequestApplicationCredentials: return S(e.appId) ? {
|
|
296
|
+
type: e.type,
|
|
297
|
+
appId: e.appId
|
|
298
|
+
} : null;
|
|
299
|
+
default: return null;
|
|
300
|
+
}
|
|
301
|
+
}, T = (e) => {
|
|
302
|
+
if (!x(e)) return null;
|
|
303
|
+
switch (e.type) {
|
|
304
|
+
case r.TriggerSave: return {
|
|
305
|
+
type: e.type,
|
|
306
|
+
general: e.general
|
|
307
|
+
};
|
|
308
|
+
case r.ToolsetLoginResult:
|
|
309
|
+
case r.ToolsetLogoutResult: {
|
|
310
|
+
let { toolsetId: t, success: n, credentialsLevel: r, reason: i, credentials: a } = e;
|
|
311
|
+
return !S(t) || typeof n != "boolean" || r !== void 0 && typeof r != "string" || i !== void 0 && typeof i != "string" ? null : {
|
|
312
|
+
type: e.type,
|
|
313
|
+
toolsetId: t,
|
|
314
|
+
success: n,
|
|
315
|
+
credentialsLevel: r,
|
|
316
|
+
reason: i,
|
|
317
|
+
credentials: a
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
default: return null;
|
|
321
|
+
}
|
|
322
|
+
}, E = (e, t) => {
|
|
323
|
+
switch (e.type) {
|
|
324
|
+
case n.ReadyToInteract:
|
|
325
|
+
case n.ReadyToSave:
|
|
326
|
+
case n.LoggedOut:
|
|
327
|
+
case n.UpdatedApplicationSuccess: return {
|
|
328
|
+
...e,
|
|
329
|
+
type: `${t}/${e.type}`
|
|
330
|
+
};
|
|
331
|
+
default: return e;
|
|
332
|
+
}
|
|
333
|
+
}, D = class {
|
|
334
|
+
targetWindow;
|
|
335
|
+
targetOrigin;
|
|
336
|
+
applicationName;
|
|
337
|
+
onMessage;
|
|
338
|
+
onActivity;
|
|
339
|
+
isDestroyed = !1;
|
|
340
|
+
constructor(e) {
|
|
341
|
+
this.targetWindow = e.targetWindow, this.targetOrigin = C(e.targetOrigin), this.applicationName = e.applicationName, this.onMessage = e.onMessage, this.onActivity = e.onActivity, window.addEventListener("message", this.handleMessage);
|
|
342
|
+
}
|
|
343
|
+
handleMessage = (e) => {
|
|
344
|
+
if (this.isDestroyed || e.source !== this.targetWindow || e.origin !== this.targetOrigin || (this.onActivity?.(), this.isDestroyed)) return;
|
|
345
|
+
let t = w(e.data, this.applicationName);
|
|
346
|
+
t && this.onMessage(t);
|
|
347
|
+
};
|
|
348
|
+
send(e) {
|
|
349
|
+
this.isDestroyed || this.targetWindow.postMessage(e, this.targetOrigin);
|
|
350
|
+
}
|
|
351
|
+
destroy() {
|
|
352
|
+
this.isDestroyed || (this.isDestroyed = !0, window.removeEventListener("message", this.handleMessage));
|
|
353
|
+
}
|
|
354
|
+
}, O = class {
|
|
355
|
+
hostWindow;
|
|
356
|
+
hostOrigin;
|
|
357
|
+
applicationName;
|
|
358
|
+
onMessage;
|
|
359
|
+
isDestroyed = !1;
|
|
360
|
+
constructor(e) {
|
|
361
|
+
this.hostWindow = e.hostWindow ?? window.parent, this.hostOrigin = C(e.hostOrigin), this.applicationName = e.applicationName, this.onMessage = e.onMessage, window.addEventListener("message", this.handleMessage);
|
|
362
|
+
}
|
|
363
|
+
handleMessage = (e) => {
|
|
364
|
+
if (this.isDestroyed || e.source !== this.hostWindow || e.origin !== this.hostOrigin) return;
|
|
365
|
+
let t = T(e.data);
|
|
366
|
+
t && this.onMessage?.(t);
|
|
367
|
+
};
|
|
368
|
+
send(e) {
|
|
369
|
+
this.isDestroyed || this.hostWindow.postMessage(E(e, this.applicationName), this.hostOrigin);
|
|
370
|
+
}
|
|
371
|
+
sendReadyToInteract() {
|
|
372
|
+
this.send({ type: n.ReadyToInteract });
|
|
373
|
+
}
|
|
374
|
+
sendReadyToSave() {
|
|
375
|
+
this.send({ type: n.ReadyToSave });
|
|
376
|
+
}
|
|
377
|
+
sendLoggedOut() {
|
|
378
|
+
this.send({ type: n.LoggedOut });
|
|
379
|
+
}
|
|
380
|
+
sendUpdatedApplication(e) {
|
|
381
|
+
this.send({
|
|
382
|
+
type: n.UpdatedApplicationSuccess,
|
|
383
|
+
payload: { application: e }
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
sendSaveSuccess(e = !1) {
|
|
387
|
+
this.send({
|
|
388
|
+
type: r.SaveSuccess,
|
|
389
|
+
hasChanges: e
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
sendSaveError(e) {
|
|
393
|
+
this.send({
|
|
394
|
+
type: r.SaveError,
|
|
395
|
+
error: e
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
sendValidityState(e) {
|
|
399
|
+
this.send({
|
|
400
|
+
type: r.ValidityState,
|
|
401
|
+
payload: { isValid: e }
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
sendDirtyState(e) {
|
|
405
|
+
this.send({
|
|
406
|
+
type: r.DirtyState,
|
|
407
|
+
payload: { isDirty: e }
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
requestToolsetLogin(e) {
|
|
411
|
+
this.send({
|
|
412
|
+
type: r.RequestToolsetLogin,
|
|
413
|
+
toolsetId: e
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
requestToolsetLogout(e) {
|
|
417
|
+
this.send({
|
|
418
|
+
type: r.RequestToolsetLogout,
|
|
419
|
+
toolsetId: e
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
requestApplicationCredentials(e) {
|
|
423
|
+
this.send({
|
|
424
|
+
type: r.RequestApplicationCredentials,
|
|
425
|
+
appId: e
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
destroy() {
|
|
429
|
+
this.isDestroyed || (this.isDestroyed = !0, window.removeEventListener("message", this.handleMessage));
|
|
430
|
+
}
|
|
253
431
|
};
|
|
254
432
|
//#endregion
|
|
255
|
-
export { n as AppsEditorEvents, r as AppsEditorMessages, u as ChatVisualizerConnector, b as VisualizerConnector, t as VisualizerConnectorEvents, e as VisualizerConnectorRequests };
|
|
433
|
+
export { O as AppsEditorClient, n as AppsEditorEvents, D as AppsEditorHost, r as AppsEditorMessages, u as ChatVisualizerConnector, b as VisualizerConnector, t as VisualizerConnectorEvents, e as VisualizerConnectorRequests, w as parseAppsEditorClientMessage, T as parseAppsEditorHostMessage, E as serializeAppsEditorClientMessage };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AppsEditorClientMessage, AppsEditorHostMessage } from '../models/apps-editor';
|
|
2
|
+
/** Endpoint and callbacks for the application running inside an editor iframe. */
|
|
3
|
+
export interface AppsEditorClientOptions {
|
|
4
|
+
/** The hosting window. Defaults to window.parent. */
|
|
5
|
+
hostWindow?: Window;
|
|
6
|
+
/** The host's absolute origin or URL; wildcard and opaque origins are rejected. */
|
|
7
|
+
hostOrigin: string;
|
|
8
|
+
/** Namespace shared with the host for lifecycle events. */
|
|
9
|
+
applicationName: string;
|
|
10
|
+
/** Receives validated host messages; application-specific general and credentials remain unknown. */
|
|
11
|
+
onMessage?: (message: AppsEditorHostMessage) => void;
|
|
12
|
+
}
|
|
13
|
+
/** Sends editor lifecycle events and receives host messages without announcing readiness automatically. */
|
|
14
|
+
export declare class AppsEditorClient {
|
|
15
|
+
private readonly hostWindow;
|
|
16
|
+
private readonly hostOrigin;
|
|
17
|
+
private readonly applicationName;
|
|
18
|
+
private readonly onMessage;
|
|
19
|
+
private isDestroyed;
|
|
20
|
+
/** Starts listening for messages from the configured host endpoint. */
|
|
21
|
+
constructor(options: AppsEditorClientOptions);
|
|
22
|
+
private handleMessage;
|
|
23
|
+
/** Posts an editor message using the shared wire format; does nothing after destroy(). */
|
|
24
|
+
send(message: AppsEditorClientMessage): void;
|
|
25
|
+
/** Reports that the editor's interface has rendered. */
|
|
26
|
+
sendReadyToInteract(): void;
|
|
27
|
+
/** Reports that the editor's application model is loaded and safe to save. */
|
|
28
|
+
sendReadyToSave(): void;
|
|
29
|
+
/** Reports that the editor's session is signed out. */
|
|
30
|
+
sendLoggedOut(): void;
|
|
31
|
+
/** Reports an intermediate application update, with optional application data. */
|
|
32
|
+
sendUpdatedApplication(application?: unknown): void;
|
|
33
|
+
/** Reports a successful save; hasChanges defaults to false. */
|
|
34
|
+
sendSaveSuccess(hasChanges?: boolean): void;
|
|
35
|
+
/** Reports a failed save with an application-provided explanation. */
|
|
36
|
+
sendSaveError(error: string): void;
|
|
37
|
+
/** Reports whether the editor's current form values are valid. */
|
|
38
|
+
sendValidityState(isValid: boolean): void;
|
|
39
|
+
/** Reports whether the editor has unsaved changes. */
|
|
40
|
+
sendDirtyState(isDirty: boolean): void;
|
|
41
|
+
/** Requests host-managed authentication for a toolset. */
|
|
42
|
+
requestToolsetLogin(toolsetId: string): void;
|
|
43
|
+
/** Requests host-managed logout for a toolset. */
|
|
44
|
+
requestToolsetLogout(toolsetId: string): void;
|
|
45
|
+
/** Requests the host's credential form for an application. */
|
|
46
|
+
requestApplicationCredentials(appId: string): void;
|
|
47
|
+
/** Stops receiving and sending messages; repeated calls are harmless. */
|
|
48
|
+
destroy(): void;
|
|
49
|
+
}
|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,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAIzC,sDAAsD;IACtD,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAItC,0DAA0D;IAC1D,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAI5C,kDAAkD;IAClD,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAI7C,8DAA8D;IAC9D,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOlD,yEAAyE;IACzE,OAAO,IAAI,IAAI;CAKhB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AppsEditorClientMessage, AppsEditorHostMessage } from '../models/apps-editor';
|
|
2
|
+
/** Endpoint and callbacks for an application editor hosted in an existing iframe. */
|
|
3
|
+
export interface AppsEditorHostOptions {
|
|
4
|
+
/** The editor iframe's content window. */
|
|
5
|
+
targetWindow: Window;
|
|
6
|
+
/** The editor's absolute origin or URL; wildcard and opaque origins are rejected. */
|
|
7
|
+
targetOrigin: string;
|
|
8
|
+
/** Namespace shared with the editor for lifecycle events. */
|
|
9
|
+
applicationName: string;
|
|
10
|
+
/** Receives validated editor messages with unprefixed lifecycle event types. */
|
|
11
|
+
onMessage: (message: AppsEditorClientMessage) => void;
|
|
12
|
+
/** Receives any message from the configured window and origin, including unknown messages. */
|
|
13
|
+
onActivity?: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** Exchanges typed editor messages with an existing iframe without managing its DOM or readiness. */
|
|
16
|
+
export declare class AppsEditorHost<TGeneral = unknown, TCredentials = unknown> {
|
|
17
|
+
private readonly targetWindow;
|
|
18
|
+
private readonly targetOrigin;
|
|
19
|
+
private readonly applicationName;
|
|
20
|
+
private readonly onMessage;
|
|
21
|
+
private readonly onActivity;
|
|
22
|
+
private isDestroyed;
|
|
23
|
+
/** Starts listening for messages from the configured editor endpoint. */
|
|
24
|
+
constructor(options: AppsEditorHostOptions);
|
|
25
|
+
private handleMessage;
|
|
26
|
+
/** Posts a host message to the editor; does nothing after destroy(). */
|
|
27
|
+
send(message: AppsEditorHostMessage<TGeneral, TCredentials>): void;
|
|
28
|
+
/** Stops receiving and sending messages; repeated calls are harmless. */
|
|
29
|
+
destroy(): void;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=AppsEditorHost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppsEditorHost.d.ts","sourceRoot":"","sources":["../../src/lib/AppsEditorHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAM/B,qFAAqF;AACrF,MAAM,WAAW,qBAAqB;IACpC,0CAA0C;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,qFAAqF;IACrF,YAAY,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,eAAe,EAAE,MAAM,CAAC;IACxB,gFAAgF;IAChF,SAAS,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACtD,8FAA8F;IAC9F,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,qGAAqG;AACrG,qBAAa,cAAc,CAAC,QAAQ,GAAG,OAAO,EAAE,YAAY,GAAG,OAAO;IACpE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqC;IAC/D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsC;IACjE,OAAO,CAAC,WAAW,CAAS;IAE5B,yEAAyE;gBAC7D,OAAO,EAAE,qBAAqB;IAS1C,OAAO,CAAC,aAAa,CAgBnB;IAEF,wEAAwE;IACxE,IAAI,CAAC,OAAO,EAAE,qBAAqB,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,IAAI;IAKlE,yEAAyE;IACzE,OAAO,IAAI,IAAI;CAKhB"}
|
|
@@ -31,6 +31,7 @@ export declare class ChatVisualizerConnector {
|
|
|
31
31
|
/**
|
|
32
32
|
* Posts an application-editor message as is — no `${appName}/` prefix — to every configured host,
|
|
33
33
|
* or only to `dialHost` when given. Fields go where the host reads them (see `AppsEditorMessages`).
|
|
34
|
+
* @deprecated Use `AppsEditorClient` for direction-safe messages and validated incoming requests.
|
|
34
35
|
*/
|
|
35
36
|
sendEditorMessage(message: {
|
|
36
37
|
type: AppsEditorMessages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatVisualizerConnector.d.ts","sourceRoot":"","sources":["../../src/lib/ChatVisualizerConnector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAE3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EAE1B,MAAM,+BAA+B,CAAC;AA0BvC,uFAAuF;AACvF,MAAM,MAAM,uBAAuB,GACjC,yBAAyB,GAAG,gBAAgB,CAAC;AAE/C;;;GAGG;AACH,qBAAa,uBAAuB;IAClC,gGAAgG;IAChG,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAC9B,+EAA+E;IAC/E,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAE7C;;;;;;;OAOG;gBAED,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,EAC3B,OAAO,EAAE,MAAM,EACf,SAAS,EACP,CAAC,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC,GAAG,uBAAuB;IAgBxE,6FAA6F;IAC7F,IAAI,CAAC,EACH,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,EAAE;QACD,IAAI,EAAE,uB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AAE,MAAM,GAChB,IAAI;IAUP,qGAAqG;IACrG,cAAc,CAAC,EACb,IAAI,EACJ,SAAS,EACT,OAAO,EACP,QAAQ,GACT,EAAE,0BAA0B,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAO3D,0FAA0F;IAC1F,mBAAmB,GACjB,OAAO,YAAY,CAAC,0BAA0B,CAAC,KAC9C,IAAI,CAsDL;IAEF,uDAAuD;IACvD,SAAS,IAAI,IAAI;IAIjB,sEAAsE;IACtE,mBAAmB,IAAI,IAAI;IAI3B,gGAAgG;IAChG,eAAe,IAAI,IAAI;IAIvB,yFAAyF;IACzF,aAAa,IAAI,IAAI;IAIrB,mGAAmG;IAC7F,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOjD,mEAAmE;IACnE,OAAO,IAAI,IAAI;IAQf,OAAO,CAAC,eAAe;CAKxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppsEditorClientMessage, AppsEditorHostMessage } from '../models/apps-editor';
|
|
2
|
+
/** Returns an exact, non-opaque origin or throws for an invalid target. */
|
|
3
|
+
export declare const normalizeAppsEditorOrigin: (value: string) => string;
|
|
4
|
+
/** Validates editor-to-host wire messages and normalizes supported legacy field placements. */
|
|
5
|
+
export declare const parseAppsEditorClientMessage: (data: unknown, applicationName: string) => AppsEditorClientMessage | null;
|
|
6
|
+
/** Validates host-to-editor protocol fields; General values and credential status remain opaque. */
|
|
7
|
+
export declare const parseAppsEditorHostMessage: (data: unknown) => AppsEditorHostMessage | null;
|
|
8
|
+
/** Serializes normalized editor messages using the existing namespaced lifecycle wire format. */
|
|
9
|
+
export declare const serializeAppsEditorClientMessage: (message: AppsEditorClientMessage, applicationName: string) => {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=apps-editor-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps-editor-protocol.d.ts","sourceRoot":"","sources":["../../src/lib/apps-editor-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAY/B,2EAA2E;AAC3E,eAAO,MAAM,yBAAyB,GAAI,OAAO,MAAM,KAAG,MAMzD,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,4BAA4B,GACvC,MAAM,OAAO,EACb,iBAAiB,MAAM,KACtB,uBAAuB,GAAG,IAoD5B,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,0BAA0B,GACrC,MAAM,OAAO,KACZ,qBAAqB,GAAG,IA8B1B,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,gCAAgC,GAC3C,SAAS,uBAAuB,EAChC,iBAAiB,MAAM,KACtB;IAAE,IAAI,EAAE,MAAM,CAAA;CAUhB,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { AppsEditorEvents, AppsEditorMessages } from '../types/visualizer-connector';
|
|
2
|
+
/** Host request to persist the editor's model, optionally merging host-owned General values. */
|
|
3
|
+
export interface AppsEditorTriggerSaveMessage<TGeneral = unknown> {
|
|
4
|
+
/** Unprefixed save request. */
|
|
5
|
+
type: AppsEditorMessages.TriggerSave;
|
|
6
|
+
/** Application-defined General values; their validation belongs to the receiving application. */
|
|
7
|
+
general?: TGeneral;
|
|
8
|
+
}
|
|
9
|
+
/** Host response containing a toolset login/logout outcome and optional application-defined status. */
|
|
10
|
+
export interface AppsEditorToolsetResultMessage<TCredentials = unknown> {
|
|
11
|
+
/** Unprefixed result of the corresponding toolset request. */
|
|
12
|
+
type: AppsEditorMessages.ToolsetLoginResult | AppsEditorMessages.ToolsetLogoutResult;
|
|
13
|
+
/** The toolset identifier from the request. */
|
|
14
|
+
toolsetId: string;
|
|
15
|
+
/** Whether the requested action succeeded. */
|
|
16
|
+
success: boolean;
|
|
17
|
+
/** Application-defined credentials scope. */
|
|
18
|
+
credentialsLevel?: string;
|
|
19
|
+
/** Failure reason, when available. */
|
|
20
|
+
reason?: string;
|
|
21
|
+
/** Application-defined credential status; the receiver validates its structure. */
|
|
22
|
+
credentials?: TCredentials;
|
|
23
|
+
}
|
|
24
|
+
/** Messages the host may send to an application editor. Domain bodies remain application-owned. */
|
|
25
|
+
export type AppsEditorHostMessage<TGeneral = unknown, TCredentials = unknown> = AppsEditorTriggerSaveMessage<TGeneral> | AppsEditorToolsetResultMessage<TCredentials>;
|
|
26
|
+
/** Editor lifecycle notification; the wire type is prefixed with the application name. */
|
|
27
|
+
export interface AppsEditorLifecycleMessage {
|
|
28
|
+
/** UI readiness, model readiness, or signed-out state; these signals are independent. */
|
|
29
|
+
type: AppsEditorEvents.ReadyToInteract | AppsEditorEvents.ReadyToSave | AppsEditorEvents.LoggedOut;
|
|
30
|
+
}
|
|
31
|
+
/** Editor notification that its application was updated. */
|
|
32
|
+
export interface AppsEditorUpdatedMessage {
|
|
33
|
+
/** Namespaced on the wire, unprefixed in typed callbacks. */
|
|
34
|
+
type: AppsEditorEvents.UpdatedApplicationSuccess;
|
|
35
|
+
/** Optional application-defined update data. */
|
|
36
|
+
payload?: {
|
|
37
|
+
/** The updated application; its structure is owned by the application. */
|
|
38
|
+
application?: unknown;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/** Successful editor save; older editors omit the change indicator. */
|
|
42
|
+
export interface AppsEditorSaveSuccessMessage {
|
|
43
|
+
/** Unprefixed save completion. */
|
|
44
|
+
type: AppsEditorMessages.SaveSuccess;
|
|
45
|
+
/** Whether user-editable values changed. Missing or invalid inbound values normalize to false. */
|
|
46
|
+
hasChanges?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/** Failed editor save. */
|
|
49
|
+
export interface AppsEditorSaveErrorMessage {
|
|
50
|
+
/** Unprefixed save failure. */
|
|
51
|
+
type: AppsEditorMessages.SaveError;
|
|
52
|
+
/** Failure description; an omitted inbound description normalizes to an empty string. */
|
|
53
|
+
error: string;
|
|
54
|
+
}
|
|
55
|
+
/** Current validity of the editor form, independent of model readiness and dirty state. */
|
|
56
|
+
export interface AppsEditorValidityMessage {
|
|
57
|
+
/** Unprefixed validity notification. */
|
|
58
|
+
type: AppsEditorMessages.ValidityState;
|
|
59
|
+
/** Form validity. */
|
|
60
|
+
payload: {
|
|
61
|
+
/** Whether the form is valid. */
|
|
62
|
+
isValid: boolean;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/** Current unsaved-change state of the editor form. */
|
|
66
|
+
export interface AppsEditorDirtyMessage {
|
|
67
|
+
/** Unprefixed dirty-state notification. */
|
|
68
|
+
type: AppsEditorMessages.DirtyState;
|
|
69
|
+
/** Form change state. */
|
|
70
|
+
payload: {
|
|
71
|
+
/** Whether the editor has unsaved edits. */
|
|
72
|
+
isDirty: boolean;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/** Editor request for the host to perform a toolset login or logout. */
|
|
76
|
+
export interface AppsEditorToolsetRequestMessage {
|
|
77
|
+
/** Unprefixed toolset action request. */
|
|
78
|
+
type: AppsEditorMessages.RequestToolsetLogin | AppsEditorMessages.RequestToolsetLogout;
|
|
79
|
+
/** Nonempty toolset identifier, interpreted by the host application. */
|
|
80
|
+
toolsetId: string;
|
|
81
|
+
}
|
|
82
|
+
/** Editor request to open host-owned credential forms. */
|
|
83
|
+
export interface AppsEditorCredentialsRequestMessage {
|
|
84
|
+
/** Unprefixed credentials-form request. */
|
|
85
|
+
type: AppsEditorMessages.RequestApplicationCredentials;
|
|
86
|
+
/** Nonempty application identifier; no credential material is sent. */
|
|
87
|
+
appId: string;
|
|
88
|
+
}
|
|
89
|
+
/** Validated editor-to-host messages, with normalized lifecycle names and payload placement. */
|
|
90
|
+
export type AppsEditorClientMessage = AppsEditorLifecycleMessage | AppsEditorUpdatedMessage | AppsEditorSaveSuccessMessage | AppsEditorSaveErrorMessage | AppsEditorValidityMessage | AppsEditorDirtyMessage | AppsEditorToolsetRequestMessage | AppsEditorCredentialsRequestMessage;
|
|
91
|
+
//# sourceMappingURL=apps-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps-editor.d.ts","sourceRoot":"","sources":["../../src/models/apps-editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAEvC,gGAAgG;AAChG,MAAM,WAAW,4BAA4B,CAAC,QAAQ,GAAG,OAAO;IAC9D,+BAA+B;IAC/B,IAAI,EAAE,kBAAkB,CAAC,WAAW,CAAC;IACrC,iGAAiG;IACjG,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,uGAAuG;AACvG,MAAM,WAAW,8BAA8B,CAAC,YAAY,GAAG,OAAO;IACpE,8DAA8D;IAC9D,IAAI,EACA,kBAAkB,CAAC,kBAAkB,GACrC,kBAAkB,CAAC,mBAAmB,CAAC;IAC3C,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED,mGAAmG;AACnG,MAAM,MAAM,qBAAqB,CAAC,QAAQ,GAAG,OAAO,EAAE,YAAY,GAAG,OAAO,IACxE,4BAA4B,CAAC,QAAQ,CAAC,GACtC,8BAA8B,CAAC,YAAY,CAAC,CAAC;AAEjD,0FAA0F;AAC1F,MAAM,WAAW,0BAA0B;IACzC,yFAAyF;IACzF,IAAI,EACA,gBAAgB,CAAC,eAAe,GAChC,gBAAgB,CAAC,WAAW,GAC5B,gBAAgB,CAAC,SAAS,CAAC;CAChC;AAED,4DAA4D;AAC5D,MAAM,WAAW,wBAAwB;IACvC,6DAA6D;IAC7D,IAAI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wBAAwB,GACxB,4BAA4B,GAC5B,0BAA0B,GAC1B,yBAAyB,GACzB,sBAAsB,GACtB,+BAA+B,GAC/B,mCAAmC,CAAC"}
|
|
@@ -45,7 +45,10 @@ export interface VisualizerGroupedAttachmentsData {
|
|
|
45
45
|
/** Presentation layout hints shared by every item. */
|
|
46
46
|
layout: Record<string, unknown>;
|
|
47
47
|
}
|
|
48
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* An unprefixed legacy application-editor message with application-defined fields.
|
|
50
|
+
* @deprecated Use `AppsEditorHostMessage` / `AppsEditorClientMessage` with the dedicated editor connectors.
|
|
51
|
+
*/
|
|
49
52
|
export interface AppsEditorMessage {
|
|
50
53
|
/** The message, as posted, with no `${applicationName}/` prefix. */
|
|
51
54
|
type: AppsEditorMessages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualizer-connector.d.ts","sourceRoot":"","sources":["../../src/models/visualizer-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,sEAAsE;AACtE,MAAM,MAAM,+BAA+B,GAAG;KAC3C,QAAQ,IAAI,MAAM,mBAAmB,CAAC,CAAC,EAAE,MAAM;CACjD,CAAC;AAEF,oDAAoD;AACpD,MAAM,WAAW,0BAA0B;IACzC,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,cAAc,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,+BAA+B,CAAC;IAC/C,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wGAAwG;IACxG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,2FAA2F;AAC3F,MAAM,WAAW,wBAAwB;IACvC,mHAAmH;IACnH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,qEAAqE;AACrE,MAAM,WAAW,+BAAgC,SAAQ,wBAAwB;IAC/E,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,GAAG,EAAE,MAAM,CAAC;CACb;AAED,0GAA0G;AAC1G,MAAM,WAAW,gCAAgC;IAC/C,uEAAuE;IACvE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IAC/C,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED
|
|
1
|
+
{"version":3,"file":"visualizer-connector.d.ts","sourceRoot":"","sources":["../../src/models/visualizer-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,sEAAsE;AACtE,MAAM,MAAM,+BAA+B,GAAG;KAC3C,QAAQ,IAAI,MAAM,mBAAmB,CAAC,CAAC,EAAE,MAAM;CACjD,CAAC;AAEF,oDAAoD;AACpD,MAAM,WAAW,0BAA0B;IACzC,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,cAAc,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,+BAA+B,CAAC;IAC/C,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wGAAwG;IACxG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,2FAA2F;AAC3F,MAAM,WAAW,wBAAwB;IACvC,mHAAmH;IACnH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,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-side postMessage connectors for DIAL Chat custom visualizers and application editors",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.164",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -25,7 +25,7 @@ export declare enum VisualizerConnectorEvents {
|
|
|
25
25
|
export declare enum AppsEditorEvents {
|
|
26
26
|
/** The editor's UI has rendered; the host drops its loading overlay. */
|
|
27
27
|
ReadyToInteract = "readyToInteract",
|
|
28
|
-
/** The editor's
|
|
28
|
+
/** The editor's model is loaded and can handle `TRIGGER_SAVE`; form validity is reported separately. May repeat. */
|
|
29
29
|
ReadyToSave = "readyToSave",
|
|
30
30
|
/** The editor's session resolved signed out, so `ReadyToSave` will not arrive. */
|
|
31
31
|
LoggedOut = "loggedOut",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualizer-connector.d.ts","sourceRoot":"","sources":["../../src/types/visualizer-connector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,2BAA2B;IACrC,iBAAiB,wBAAwB;IACzC,wBAAwB,gCAAgC;IACxD,oBAAoB,2BAA2B;CAChD;AAED,qGAAqG;AACrG,oBAAY,yBAAyB;IACnC,SAAS,eAAe;IACxB,KAAK,UAAU;IACf,eAAe,sBAAsB;IACrC,WAAW,iBAAiB;IAC5B,0BAA0B,iCAAiC;IAC3D,0BAA0B,iCAAiC;IAC3D,yBAAyB,gCAAgC;CAC1D;AAED;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B,wEAAwE;IACxE,eAAe,oBAAoB;IACnC,
|
|
1
|
+
{"version":3,"file":"visualizer-connector.d.ts","sourceRoot":"","sources":["../../src/types/visualizer-connector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,2BAA2B;IACrC,iBAAiB,wBAAwB;IACzC,wBAAwB,gCAAgC;IACxD,oBAAoB,2BAA2B;CAChD;AAED,qGAAqG;AACrG,oBAAY,yBAAyB;IACnC,SAAS,eAAe;IACxB,KAAK,UAAU;IACf,eAAe,sBAAsB;IACrC,WAAW,iBAAiB;IAC5B,0BAA0B,iCAAiC;IAC3D,0BAA0B,iCAAiC;IAC3D,yBAAyB,gCAAgC;CAC1D;AAED;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B,wEAAwE;IACxE,eAAe,oBAAoB;IACnC,oHAAoH;IACpH,WAAW,gBAAgB;IAC3B,kFAAkF;IAClF,SAAS,cAAc;IACvB,yEAAyE;IACzE,yBAAyB,8BAA8B;CACxD;AAED;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,4FAA4F;IAC5F,WAAW,iBAAiB;IAC5B,6DAA6D;IAC7D,WAAW,iBAAiB;IAC5B,sEAAsE;IACtE,SAAS,eAAe;IACxB,sEAAsE;IACtE,aAAa,mBAAmB;IAChC,gGAAgG;IAChG,UAAU,gBAAgB;IAC1B,uEAAuE;IACvE,mBAAmB,0BAA0B;IAC7C,uDAAuD;IACvD,kBAAkB,yBAAyB;IAC3C,6DAA6D;IAC7D,oBAAoB,2BAA2B;IAC/C,wDAAwD;IACxD,mBAAmB,0BAA0B;IAC7C,yGAAyG;IACzG,6BAA6B,oCAAoC;CAClE"}
|