@corto-ai/integrations-messenger 0.0.10-dev.3 → 0.0.10-dev.5

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/README.md CHANGED
@@ -58,28 +58,29 @@ messenger.registerChild(iframe.contentWindow, 'my-integration-app');
58
58
 
59
59
  `messenger.actions` groups all supported actions by the entity/flow they affect:
60
60
 
61
- | Group | Action | Description |
62
- | ---------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
63
- | `matter` | `sendOpenMatter` / `handleOpenMatter` | Open a matter by `matterId`. |
64
- | `matter` | `sendOpenChatSession` / `handleOpenChatSession` | Open a specific chat session (`sessionId`) on a matter. |
65
- | `matter` | `sendOpenAgentSession` / `handleOpenAgentSession` | Open a specific agent session (`sessionId`) on a matter. |
66
- | `matter` | `sendOpenDetails` / `handleOpenDetails` | Open the details view for a matter. |
67
- | `matter` | `sendOpenEdit` / `handleOpenEdit` | Open the edit view for a matter. |
68
- | `matter` | `sendOpenDocumentStatus` / `handleOpenDocumentStatus` | Open the document status view for a matter. |
69
- | `matter` | `sendOpenPrompt` / `handleOpenPrompt` | Open a specific prompt (`promptId`) on a matter. |
70
- | `matter` | `sendOpenPromptLibrary` / `handleOpenPromptLibrary` | Open the prompt library for a matter. |
71
- | `matter` | `sendPreviewDocument` / `handlePreviewDocument` | Preview a document (`documentId`, `documentName`) on a matter. |
72
- | `matter` | `sendSetFullscreen` / `handleSetFullscreen` | Show/hide the matter nav and list. Clear automatically on navigation in the host application |
73
- | `contact` | `sendOpenContact` / `handleOpenContact` | Open a contact by `contactId`. |
74
- | `contact` | `sendOpenEditContact` / `handleOpenEditContact` | Open the edit view for a contact. |
75
- | `settings` | `sendOpenSettings` / `handleOpenSettings` | Open the host application's settings. |
76
- | `branding` | `sendGetBranding` / `handleGetBranding` | Request the active brand name and logo URL, or pass an optional `brandName` to request a specific brand instead of the active one. |
77
- | `auth` | `sendExchangeTokenRequest` / `handleExchangeTokenRequest` | Exchange a `clientId` for an auth token. |
78
- | `auth` | `sendUserDataRequest` / `handleUserDataRequest` | Request the current user's data from the host (currently returns `userId`). |
79
- | `pubsub` | `sendNotificationRequest` / `handleNotificationRequest` | Subscribe to (or publish) notifications on a `channel`, supporting multiple responses over time. |
80
- | `window` | `sendUpdateUrl` / `handleUpdateUrl` | Update the url in the host application _without navigating_. Used to support routing/refreshing within an integration |
81
- | `window` | `sendOpenModal` / `handleOpenModal` | Opens a modal overlay that can be used to host integration iframes. Appends the provided path to the root target origin. |
82
- | `window` | `sendCloseModal` / `handleCloseModal` | Closes a modal overlay that was previously opened with the `sendOpenModal` command |
61
+ | Group | Action | Description |
62
+ | ---------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
63
+ | `matter` | `sendOpenMatter` / `handleOpenMatter` | Open a matter by `matterId`. |
64
+ | `matter` | `sendOpenChatSession` / `handleOpenChatSession` | Open a specific chat session (`sessionId`) on a matter. |
65
+ | `matter` | `sendOpenAgentSession` / `handleOpenAgentSession` | Open a specific agent session (`sessionId`) on a matter. |
66
+ | `matter` | `sendOpenDetails` / `handleOpenDetails` | Open the details view for a matter. |
67
+ | `matter` | `sendOpenEdit` / `handleOpenEdit` | Open the edit view for a matter. |
68
+ | `matter` | `sendOpenDocumentStatus` / `handleOpenDocumentStatus` | Open the document status view for a matter. |
69
+ | `matter` | `sendOpenPrompt` / `handleOpenPrompt` | Open a specific prompt (`promptId`) on a matter. |
70
+ | `matter` | `sendOpenPromptLibrary` / `handleOpenPromptLibrary` | Open the prompt library for a matter. |
71
+ | `matter` | `sendPreviewDocument` / `handlePreviewDocument` | Preview a document (`documentId`, `documentName`) on a matter. |
72
+ | `matter` | `sendSetFullscreen` / `handleSetFullscreen` | Show/hide the matter nav and list. Clear automatically on navigation in the host application |
73
+ | `contact` | `sendOpenContact` / `handleOpenContact` | Open a contact by `contactId`. |
74
+ | `contact` | `sendOpenEditContact` / `handleOpenEditContact` | Open the edit view for a contact. |
75
+ | `settings` | `sendOpenSettings` / `handleOpenSettings` | Open the host application's settings. |
76
+ | `branding` | `sendGetBranding` / `handleGetBranding` | Request the active brand name and logo URL, or pass an optional `brandName` to request a specific brand instead of the active one. |
77
+ | `auth` | `sendExchangeTokenRequest` / `handleExchangeTokenRequest` | Exchange a `clientId` for an auth token. |
78
+ | `auth` | `sendUserDataRequest` / `handleUserDataRequest` | Request the current user's data from the host (currently returns `userId`). |
79
+ | `pubsub` | `sendNotificationRequest` / `handleNotificationRequest` | Subscribe to (or publish) notifications on a `channel`, supporting multiple responses over time. |
80
+ | `window` | `sendUpdateUrl` / `handleUpdateUrl` | Update the url in the host application _without navigating_. Used to support routing/refreshing within an integration |
81
+ | `window` | `sendOpenModal` / `handleOpenModal` | Opens a modal overlay that can be used to host integration iframes. Appends the provided path to the root target origin. |
82
+ | `window` | `sendCloseModal` / `handleCloseModal` | Closes a modal overlay that was previously opened with the `sendOpenModal` command |
83
+ | `window` | `sendOpenConfirmation` / `handleOpenConfirmation` | Opens a confirmation dialog. Supports custom `title`, `message`, `confirmLabel`, and `cancelLabel`, and returns whether the user confirmed. |
83
84
 
84
85
  All `matter`, `contact`, and `settings` actions accept an optional `newTab` flag to indicate the host should open the target in a new tab, and `matter` actions also accept an optional `matterId` beyond what's called out above.
85
86
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@corto-ai/integrations-messenger",
3
- "version": "0.0.10-dev.3",
4
- "devVersion": "3",
3
+ "version": "0.0.10-dev.5",
4
+ "devVersion": "5",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "main": "./src/index.js",
package/src/index.d.ts CHANGED
@@ -58,6 +58,8 @@ declare const _default: {
58
58
  handleUpdateUrl: import(".").ActionHandlerFn<import(".").ActionTypeEnum.WindowUpdateUrl>;
59
59
  sendOpenModal: import(".").ActionCreatorFn<import(".").ActionTypeEnum.WindowOpenModal>;
60
60
  handleOpenModal: import(".").ActionHandlerFn<import(".").ActionTypeEnum.WindowOpenModal>;
61
+ sendOpenConfirmation: import(".").ActionCreatorFn<import(".").ActionTypeEnum.WindowOpenConfirmation>;
62
+ handleOpenConfirmation: import(".").ActionHandlerFn<import(".").ActionTypeEnum.WindowOpenConfirmation>;
61
63
  sendCloseModal: import(".").ActionCreatorFn<import(".").ActionTypeEnum.WindowCloseModal>;
62
64
  handleCloseModal: import(".").ActionHandlerFn<import(".").ActionTypeEnum.WindowCloseModal>;
63
65
  };
@@ -18,6 +18,7 @@ import { type MatterSetFullScreenDataTypeDTO } from './matter/set-fullscreen';
18
18
  import { type PubsubNotificationDataTypeDTO } from './pubsub/notification';
19
19
  import { type SettingsOpenDataTypeDTO } from './settings/open';
20
20
  import { type WindowCloseModalDataTypeDTO } from './window/close-modal';
21
+ import { type WindowOpenConfirmationDataTypeDTO } from './window/open-confirmation';
21
22
  import { type WindowOpenModalDataTypeDTO } from './window/open-modal';
22
23
  import { type WindowUpdateUrlDataTypeDTO } from './window/update-url';
23
24
  export declare enum InternalActionTypeEnum {
@@ -43,7 +44,8 @@ export declare enum ActionTypeEnum {
43
44
  RequestUserData = "RequestUserData",
44
45
  WindowUpdateUrl = "WindowUpdateUrl",
45
46
  WindowOpenModal = "WindowOpenModal",
46
- WindowCloseModal = "WindowCloseModal"
47
+ WindowCloseModal = "WindowCloseModal",
48
+ WindowOpenConfirmation = "WindowOpenConfirmation"
47
49
  }
48
50
  export declare const AdditionalMessageConfig: {
49
51
  [key in ActionTypeEnum]?: AdditionalMessageConfigDTO;
@@ -70,4 +72,5 @@ export type DataTypeMapDTO = {
70
72
  [ActionTypeEnum.WindowUpdateUrl]: WindowUpdateUrlDataTypeDTO;
71
73
  [ActionTypeEnum.WindowOpenModal]: WindowOpenModalDataTypeDTO;
72
74
  [ActionTypeEnum.WindowCloseModal]: WindowCloseModalDataTypeDTO;
75
+ [ActionTypeEnum.WindowOpenConfirmation]: WindowOpenConfirmationDataTypeDTO;
73
76
  };
@@ -24,6 +24,7 @@ export var ActionTypeEnum;
24
24
  ActionTypeEnum["WindowUpdateUrl"] = "WindowUpdateUrl";
25
25
  ActionTypeEnum["WindowOpenModal"] = "WindowOpenModal";
26
26
  ActionTypeEnum["WindowCloseModal"] = "WindowCloseModal";
27
+ ActionTypeEnum["WindowOpenConfirmation"] = "WindowOpenConfirmation";
27
28
  })(ActionTypeEnum || (ActionTypeEnum = {}));
28
29
  export const AdditionalMessageConfig = {
29
30
  [ActionTypeEnum.PubsubNotification]: { keepAlive: true }
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../libs/integrations-messenger/src/lib/actions/base.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAChC,iDAAuB,CAAA;AACzB,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC;AAED,MAAM,CAAN,IAAY,cA2BX;AA3BD,WAAY,cAAc;IACxB,iEAA+C,CAAA;IAC/C,mEAAiD,CAAA;IACjD,qEAAmD,CAAA;IACnD,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;IACvC,mDAAiC,CAAA;IACjC,uEAAqD,CAAA;IACrD,iEAA+C,CAAA;IAC/C,2CAAyB,CAAA;IACzB,6DAA2C,CAAA;IAE3C,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IAEnC,+CAA6B,CAAA;IAE7B,6CAA2B,CAAA;IAE3B,2DAAyC,CAAA;IAEzC,+DAA6C,CAAA;IAC7C,qDAAmC,CAAA;IAEnC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;AACvC,CAAC,EA3BW,cAAc,KAAd,cAAc,QA2BzB;AAED,MAAM,CAAC,MAAM,uBAAuB,GAA6D;IAC/F,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../libs/integrations-messenger/src/lib/actions/base.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAChC,iDAAuB,CAAA;AACzB,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC;AAED,MAAM,CAAN,IAAY,cA4BX;AA5BD,WAAY,cAAc;IACxB,iEAA+C,CAAA;IAC/C,mEAAiD,CAAA;IACjD,qEAAmD,CAAA;IACnD,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;IACvC,mDAAiC,CAAA;IACjC,uEAAqD,CAAA;IACrD,iEAA+C,CAAA;IAC/C,2CAAyB,CAAA;IACzB,6DAA2C,CAAA;IAE3C,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IAEnC,+CAA6B,CAAA;IAE7B,6CAA2B,CAAA;IAE3B,2DAAyC,CAAA;IAEzC,+DAA6C,CAAA;IAC7C,qDAAmC,CAAA;IAEnC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mEAAiD,CAAA;AACnD,CAAC,EA5BW,cAAc,KAAd,cAAc,QA4BzB;AAED,MAAM,CAAC,MAAM,uBAAuB,GAA6D;IAC/F,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;CACzD,CAAC"}
@@ -50,6 +50,8 @@ declare const _default: {
50
50
  handleUpdateUrl: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.WindowUpdateUrl>;
51
51
  sendOpenModal: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.WindowOpenModal>;
52
52
  handleOpenModal: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.WindowOpenModal>;
53
+ sendOpenConfirmation: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.WindowOpenConfirmation>;
54
+ handleOpenConfirmation: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.WindowOpenConfirmation>;
53
55
  sendCloseModal: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.WindowCloseModal>;
54
56
  handleCloseModal: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.WindowCloseModal>;
55
57
  };
@@ -3,6 +3,8 @@ declare const _default: {
3
3
  handleUpdateUrl: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.WindowUpdateUrl>;
4
4
  sendOpenModal: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.WindowOpenModal>;
5
5
  handleOpenModal: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.WindowOpenModal>;
6
+ sendOpenConfirmation: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.WindowOpenConfirmation>;
7
+ handleOpenConfirmation: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.WindowOpenConfirmation>;
6
8
  sendCloseModal: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.WindowCloseModal>;
7
9
  handleCloseModal: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.WindowCloseModal>;
8
10
  };
@@ -1,8 +1,10 @@
1
1
  import closeModal from './close-modal';
2
+ import openConfirmation from './open-confirmation';
2
3
  import openModal from './open-modal';
3
4
  import updateUrl from './update-url';
4
5
  export default {
5
6
  ...closeModal,
7
+ ...openConfirmation,
6
8
  ...openModal,
7
9
  ...updateUrl
8
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/window/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,eAAe;IACb,GAAG,UAAU;IACb,GAAG,SAAS;IACZ,GAAG,SAAS;CACb,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/window/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,eAAe;IACb,GAAG,UAAU;IACb,GAAG,gBAAgB;IACnB,GAAG,SAAS;IACZ,GAAG,SAAS;CACb,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ActionTypeEnum } from '../../models';
2
+ import { type ActionDataTypeDTO } from '../utils';
3
+ type WindowOpenConfirmationDTO = {
4
+ title: string;
5
+ message: string;
6
+ confirmLabel?: string;
7
+ cancelLabel?: string;
8
+ };
9
+ type WindowOpenConfirmationResponseDTO = {
10
+ confirmed: boolean;
11
+ };
12
+ export type WindowOpenConfirmationDataTypeDTO = ActionDataTypeDTO<WindowOpenConfirmationDTO, WindowOpenConfirmationResponseDTO>;
13
+ declare const _default: {
14
+ sendOpenConfirmation: import("../../models").ActionCreatorFn<ActionTypeEnum.WindowOpenConfirmation>;
15
+ handleOpenConfirmation: import("../../models").ActionHandlerFn<ActionTypeEnum.WindowOpenConfirmation>;
16
+ };
17
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { ActionTypeEnum } from '../../models';
2
+ import { buildActionCreatorFn, buildActionHandlerFn } from '../utils';
3
+ const sendOpenConfirmation = buildActionCreatorFn(ActionTypeEnum.WindowOpenConfirmation);
4
+ const handleOpenConfirmation = buildActionHandlerFn(ActionTypeEnum.WindowOpenConfirmation);
5
+ export default { sendOpenConfirmation, handleOpenConfirmation };
6
+ //# sourceMappingURL=open-confirmation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-confirmation.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/window/open-confirmation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAkB9F,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC;AACzF,MAAM,sBAAsB,GAAG,oBAAoB,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC;AAE3F,eAAe,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1,8 +1,10 @@
1
+ import { v4 as uuid } from 'uuid';
1
2
  import listener from './listener';
2
3
  import logger from './logger';
3
4
  import target from './target';
4
5
  import { ActionTypeEnum, InternalActionTypeEnum } from '../actions/base';
5
6
  import { isInternalActionType } from '../actions/utils';
7
+ import { TARGET_WILDCARD } from '../models';
6
8
  const unhandledInternalMsgMap = new Map();
7
9
  const addUnhandledInternalMsg = (msg) => {
8
10
  unhandledInternalMsgMap.set(msg.data.src, msg);
@@ -73,6 +75,15 @@ const init = (parentRef = window.parent) => new Promise((resolve) => {
73
75
  handler.remove();
74
76
  resolve({ parentId: data.src });
75
77
  });
78
+ sendDataInternal({
79
+ id: uuid(),
80
+ type: InternalActionTypeEnum.Handshake,
81
+ target: TARGET_WILDCARD,
82
+ src: target.getSourceId(),
83
+ data: void 0
84
+ },
85
+ // Bootstrap only: parent origin is unknown before handshake; subsequent sends use the pinned target origin.
86
+ { window: parentRef, origin: '*', id: '' });
76
87
  });
77
88
  export default { sendData, sendDataInternal, forward, init, addUnhandledInternalMsg, fetchUnhandledInternalMsg };
78
89
  //# sourceMappingURL=emitter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"emitter.js","sourceRoot":"","sources":["../../../../../../libs/integrations-messenger/src/lib/core/emitter.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AASxD,MAAM,uBAAuB,GAAG,IAAI,GAAG,EAA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