@epam/ai-dial-visualizer-connector 1.3.0-dev.179 → 1.3.0-dev.182

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 CHANGED
@@ -3,7 +3,7 @@ export { VisualizerConnector } from './lib/VisualizerConnector';
3
3
  export { AppsEditorHost, type AppsEditorHostOptions, } from './lib/AppsEditorHost';
4
4
  export { AppsEditorClient, type AppsEditorClientOptions, } from './lib/AppsEditorClient';
5
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';
6
+ export type { AppsEditorClientMessage, AppsEditorHostMessage, AppsEditorTriggerSaveMessage, AppsEditorToolsetResultMessage, AppsEditorLifecycleMessage, AppsEditorUpdatedMessage, AppsEditorSaveSuccessMessage, AppsEditorSaveErrorMessage, AppsEditorValidityMessage, AppsEditorDirtyMessage, AppsEditorToolsetRequestMessage, AppsEditorCredentialsRequestMessage, AppsEditorExternalServiceLoginRequestMessage, AppsEditorExternalServiceLoginResultMessage, } from './models/apps-editor';
7
7
  export type { AppsEditorMessage, ChatVisualizerCallbacks, VisualizerAttachmentData, VisualizerGroupedAttachmentItem, VisualizerGroupedAttachmentsData, VisualizerConnectorLoaderStyles, VisualizerConnectorOptions, VisualizerConnectorRequest, } from './models/visualizer-connector';
8
8
  export { AppsEditorEvents, AppsEditorMessages, VisualizerConnectorEvents, VisualizerConnectorRequests, } from './types/visualizer-connector';
9
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,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"}
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,EACnC,4CAA4C,EAC5C,2CAA2C,GAC5C,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
@@ -6,7 +6,7 @@ var e = /* @__PURE__ */ function(e) {
6
6
  }({}), n = /* @__PURE__ */ function(e) {
7
7
  return e.ReadyToInteract = "readyToInteract", e.ReadyToSave = "readyToSave", e.LoggedOut = "loggedOut", e.UpdatedApplicationSuccess = "updatedApplicationSuccess", e;
8
8
  }({}), r = /* @__PURE__ */ function(e) {
9
- return e.TriggerSave = "TRIGGER_SAVE", e.SaveSuccess = "SAVE_SUCCESS", e.SaveError = "SAVE_ERROR", e.ValidityState = "VALIDITY_STATE", e.DirtyState = "DIRTY_STATE", e.RequestToolsetLogin = "REQUEST_TOOLSET_LOGIN", e.ToolsetLoginResult = "TOOLSET_LOGIN_RESULT", e.RequestToolsetLogout = "REQUEST_TOOLSET_LOGOUT", e.ToolsetLogoutResult = "TOOLSET_LOGOUT_RESULT", e.RequestApplicationCredentials = "REQUEST_APPLICATION_CREDENTIALS", e;
9
+ return e.TriggerSave = "TRIGGER_SAVE", e.SaveSuccess = "SAVE_SUCCESS", e.SaveError = "SAVE_ERROR", e.ValidityState = "VALIDITY_STATE", e.DirtyState = "DIRTY_STATE", e.RequestToolsetLogin = "REQUEST_TOOLSET_LOGIN", e.ToolsetLoginResult = "TOOLSET_LOGIN_RESULT", e.RequestToolsetLogout = "REQUEST_TOOLSET_LOGOUT", e.ToolsetLogoutResult = "TOOLSET_LOGOUT_RESULT", e.RequestApplicationCredentials = "REQUEST_APPLICATION_CREDENTIALS", e.RequestExternalServiceLogin = "REQUEST_EXTERNAL_SERVICE_LOGIN", e.ExternalServiceLoginResult = "EXTERNAL_SERVICE_LOGIN_RESULT", e;
10
10
  }({}), i = "*", a = new Set(Object.values(r)), o = "/RESPONSE", s = (e) => typeof e == "object" && !!e, c = (e, t) => t.every((t) => Object.prototype.hasOwnProperty.call(e, t)), l = (e) => {
11
11
  let t = e.length;
12
12
  for (; t > 0 && e[t - 1] === "/";) t--;
@@ -296,6 +296,12 @@ var e = /* @__PURE__ */ function(e) {
296
296
  type: e.type,
297
297
  appId: e.appId
298
298
  } : null;
299
+ case r.RequestExternalServiceLogin: return S(e.appId) && S(e.serviceId) && typeof e.offlineUsageConsent == "boolean" ? {
300
+ type: e.type,
301
+ appId: e.appId,
302
+ serviceId: e.serviceId,
303
+ offlineUsageConsent: e.offlineUsageConsent
304
+ } : null;
299
305
  default: return null;
300
306
  }
301
307
  }, T = (e) => {
@@ -317,6 +323,16 @@ var e = /* @__PURE__ */ function(e) {
317
323
  credentials: a
318
324
  };
319
325
  }
326
+ case r.ExternalServiceLoginResult: {
327
+ let { appId: t, serviceId: n, success: r, reason: i } = e;
328
+ return !S(t) || !S(n) || typeof r != "boolean" || i !== void 0 && typeof i != "string" ? null : {
329
+ type: e.type,
330
+ appId: t,
331
+ serviceId: n,
332
+ success: r,
333
+ reason: i
334
+ };
335
+ }
320
336
  default: return null;
321
337
  }
322
338
  }, E = (e, t) => {
@@ -425,6 +441,14 @@ var e = /* @__PURE__ */ function(e) {
425
441
  appId: e
426
442
  });
427
443
  }
444
+ requestExternalServiceLogin(e, t, n) {
445
+ this.send({
446
+ type: r.RequestExternalServiceLogin,
447
+ appId: e,
448
+ serviceId: t,
449
+ offlineUsageConsent: n.offlineUsageConsent
450
+ });
451
+ }
428
452
  destroy() {
429
453
  this.isDestroyed || (this.isDestroyed = !0, window.removeEventListener("message", this.handleMessage));
430
454
  }
@@ -44,6 +44,13 @@ export declare class AppsEditorClient {
44
44
  requestToolsetLogout(toolsetId: string): void;
45
45
  /** Requests the host's credential form for an application. */
46
46
  requestApplicationCredentials(appId: string): void;
47
+ /**
48
+ * Requests a host-run, user-level sign-in to one external service of an application. `offlineUsageConsent`
49
+ * is the person's choice collected by the editor; the host answers with `ExternalServiceLoginResult`.
50
+ */
51
+ requestExternalServiceLogin(appId: string, serviceId: string, options: {
52
+ offlineUsageConsent: boolean;
53
+ }): void;
47
54
  /** Stops receiving and sending messages; repeated calls are harmless. */
48
55
  destroy(): void;
49
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AppsEditorClient.d.ts","sourceRoot":"","sources":["../../src/lib/AppsEditorClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAW/B,kFAAkF;AAClF,MAAM,WAAW,uBAAuB;IACtC,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,UAAU,EAAE,MAAM,CAAC;IACnB,2DAA2D;IAC3D,eAAe,EAAE,MAAM,CAAC;IACxB,qGAAqG;IACrG,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACtD;AAED,2GAA2G;AAC3G,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuC;IACjE,OAAO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xC,IAAI;IASP,yEAAyE;IACzE,OAAO,IAAI,IAAI;CAKhB"}
@@ -1 +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"}
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,IA+D5B,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,0BAA0B,GACrC,MAAM,OAAO,KACZ,qBAAqB,GAAG,IA0C1B,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,gCAAgC,GAC3C,SAAS,uBAAuB,EAChC,iBAAiB,MAAM,KACtB;IAAE,IAAI,EAAE,MAAM,CAAA;CAUhB,CAAC"}
@@ -21,8 +21,21 @@ export interface AppsEditorToolsetResultMessage<TCredentials = unknown> {
21
21
  /** Application-defined credential status; the receiver validates its structure. */
22
22
  credentials?: TCredentials;
23
23
  }
24
+ /** Host response containing the outcome of an external-service login. */
25
+ export interface AppsEditorExternalServiceLoginResultMessage {
26
+ /** Unprefixed result of the external-service login request. */
27
+ type: AppsEditorMessages.ExternalServiceLoginResult;
28
+ /** The application identifier from the request, as sent. */
29
+ appId: string;
30
+ /** The external-service identifier from the request, as sent. */
31
+ serviceId: string;
32
+ /** Whether the person is now signed in to the service. */
33
+ success: boolean;
34
+ /** Failure reason, when available; its vocabulary belongs to the host. */
35
+ reason?: string;
36
+ }
24
37
  /** 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>;
38
+ export type AppsEditorHostMessage<TGeneral = unknown, TCredentials = unknown> = AppsEditorTriggerSaveMessage<TGeneral> | AppsEditorToolsetResultMessage<TCredentials> | AppsEditorExternalServiceLoginResultMessage;
26
39
  /** Editor lifecycle notification; the wire type is prefixed with the application name. */
27
40
  export interface AppsEditorLifecycleMessage {
28
41
  /** UI readiness, model readiness, or signed-out state; these signals are independent. */
@@ -86,6 +99,17 @@ export interface AppsEditorCredentialsRequestMessage {
86
99
  /** Nonempty application identifier; no credential material is sent. */
87
100
  appId: string;
88
101
  }
102
+ /** Editor request for the host to sign the person in to one external service of an application. */
103
+ export interface AppsEditorExternalServiceLoginRequestMessage {
104
+ /** Unprefixed external-service login request. */
105
+ type: AppsEditorMessages.RequestExternalServiceLogin;
106
+ /** Nonempty application identifier; no credential material is sent. */
107
+ appId: string;
108
+ /** Nonempty external-service identifier within the application. */
109
+ serviceId: string;
110
+ /** The person's own choice, collected by the editor, to let the application use the sign-in while they are away. */
111
+ offlineUsageConsent: boolean;
112
+ }
89
113
  /** Validated editor-to-host messages, with normalized lifecycle names and payload placement. */
90
- export type AppsEditorClientMessage = AppsEditorLifecycleMessage | AppsEditorUpdatedMessage | AppsEditorSaveSuccessMessage | AppsEditorSaveErrorMessage | AppsEditorValidityMessage | AppsEditorDirtyMessage | AppsEditorToolsetRequestMessage | AppsEditorCredentialsRequestMessage;
114
+ export type AppsEditorClientMessage = AppsEditorLifecycleMessage | AppsEditorUpdatedMessage | AppsEditorSaveSuccessMessage | AppsEditorSaveErrorMessage | AppsEditorValidityMessage | AppsEditorDirtyMessage | AppsEditorToolsetRequestMessage | AppsEditorCredentialsRequestMessage | AppsEditorExternalServiceLoginRequestMessage;
91
115
  //# sourceMappingURL=apps-editor.d.ts.map
@@ -1 +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,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ACrB,OAAO,EAAE;QACP,iCAAiC;QACjC,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC,2CAA2C;IAC3C,IAAI,EAAE,kBAAkB,CAAC,UAAU,CAAC;IACpC,yBAAyB;IACzB,OAAO,EAAE;QACP,4CAA4C;QAC5C,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED,wEAAwE;AACxE,MAAM,WAAW,+BAA+B;IAC9C,yCAAyC;IACzC,IAAI,EACA,kBAAkB,CAAC,mBAAmB,GACtC,kBAAkB,CAAC,oBAAoB,CAAC;IAC5C,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mCAAmC;IAClD,2CAA2C;IAC3C,IAAI,EAAE,kBAAkB,CAAC,6BAA6B,CAAC;IACvD,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,mGAAmG;AACnG,MAAM,WAAW,4CAA4C;IAC3D,iDAAiD;IACjD,IAAI,EAAE,kBAAkB,CAAC,2BAA2B,CAAC;IACrD,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,oHAAoH;IACpH,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,gGAAgG;AAChG,MAAM,MAAM,uBAAuB,GAC/B,0BAA0B,GAC1B,wBAAwB,GACxB,4BAA4B,GAC5B,0BAA0B,GAC1B,yBAAyB,GACzB,sBAAsB,GACtB,+BAA+B,GAC/B,mCAAmC,GACnC,4CAA4C,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-visualizer-connector",
3
3
  "description": "Host-side and iframe-side postMessage connectors for DIAL Chat custom visualizers and application editors",
4
- "version": "1.3.0-dev.179",
4
+ "version": "1.3.0-dev.182",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -56,6 +56,13 @@ export declare enum AppsEditorMessages {
56
56
  /** Host → editor: outcome of `RequestToolsetLogout`. */
57
57
  ToolsetLogoutResult = "TOOLSET_LOGOUT_RESULT",
58
58
  /** Editor → host: open the host's credential forms; `appId: string`. No credential crosses the frame. */
59
- RequestApplicationCredentials = "REQUEST_APPLICATION_CREDENTIALS"
59
+ RequestApplicationCredentials = "REQUEST_APPLICATION_CREDENTIALS",
60
+ /**
61
+ * Editor → host: sign the person in to one external service at user level;
62
+ * `appId: string`, `serviceId: string`, `offlineUsageConsent: boolean`. No credential crosses the frame.
63
+ */
64
+ RequestExternalServiceLogin = "REQUEST_EXTERNAL_SERVICE_LOGIN",
65
+ /** Host → editor: outcome of `RequestExternalServiceLogin`. */
66
+ ExternalServiceLoginResult = "EXTERNAL_SERVICE_LOGIN_RESULT"
60
67
  }
61
68
  //# sourceMappingURL=visualizer-connector.d.ts.map
@@ -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,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"}
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;IACjE;;;OAGG;IACH,2BAA2B,mCAAmC;IAC9D,+DAA+D;IAC/D,0BAA0B,kCAAkC;CAC7D"}