@corto-ai/integrations-messenger 0.0.10-dev.5 → 0.0.10-dev.7
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 +25 -23
- package/package.json +2 -2
- package/src/index.d.ts +4 -0
- package/src/lib/actions/base.d.ts +7 -1
- package/src/lib/actions/base.js +2 -0
- package/src/lib/actions/base.js.map +1 -1
- package/src/lib/actions/index.d.ts +4 -0
- package/src/lib/actions/matter/preview-document.d.ts +10 -2
- package/src/lib/actions/matter/preview-document.js.map +1 -1
- package/src/lib/actions/window/index.d.ts +4 -0
- package/src/lib/actions/window/index.js +5 -1
- package/src/lib/actions/window/index.js.map +1 -1
- package/src/lib/actions/window/set-unsaved-changes.d.ts +10 -0
- package/src/lib/actions/window/set-unsaved-changes.js +6 -0
- package/src/lib/actions/window/set-unsaved-changes.js.map +1 -0
- package/src/lib/actions/window/show-toast.d.ts +30 -0
- package/src/lib/actions/window/show-toast.js +6 -0
- package/src/lib/actions/window/show-toast.js.map +1 -0
package/README.md
CHANGED
|
@@ -58,29 +58,31 @@ 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
|
|
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.
|
|
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 by `documentId` or `presignedUrl`. `documentName` is required. |
|
|
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. |
|
|
84
|
+
| `window` | `sendOpenToast` / `handleOpenToast` | Open a toast message as either a `success`, `error`, `info` or `warning` type. Supports custom `title`, `message`, and `override` to detailed configuration. On click of the action button, a response will be returned. |
|
|
85
|
+
| `window` | `sendSetUnsavedChanges` / `handleSetUnsavedChanges` | Sets a flag on the parent application. When true, if the user tries to navigate away or close the tab, we will pop up a confirmation modal which interupts the navigation and allows the user to cancel |
|
|
84
86
|
|
|
85
87
|
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.
|
|
86
88
|
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -54,8 +54,12 @@ declare const _default: {
|
|
|
54
54
|
handleGetBranding: import(".").ActionHandlerFn<import(".").ActionTypeEnum.GetBranding>;
|
|
55
55
|
};
|
|
56
56
|
window: {
|
|
57
|
+
sendShowToast: import(".").ActionCreatorFn<import(".").ActionTypeEnum.WindowShowToast>;
|
|
58
|
+
handleShowToast: import(".").ActionHandlerFn<import(".").ActionTypeEnum.WindowShowToast>;
|
|
57
59
|
sendUpdateUrl: import(".").ActionCreatorFn<import(".").ActionTypeEnum.WindowUpdateUrl>;
|
|
58
60
|
handleUpdateUrl: import(".").ActionHandlerFn<import(".").ActionTypeEnum.WindowUpdateUrl>;
|
|
61
|
+
sendSetUnsavedChanges: import(".").ActionCreatorFn<import(".").ActionTypeEnum.WindowSetUnsavedChanges>;
|
|
62
|
+
handleSetUnsavedChanges: import(".").ActionHandlerFn<import(".").ActionTypeEnum.WindowSetUnsavedChanges>;
|
|
59
63
|
sendOpenModal: import(".").ActionCreatorFn<import(".").ActionTypeEnum.WindowOpenModal>;
|
|
60
64
|
handleOpenModal: import(".").ActionHandlerFn<import(".").ActionTypeEnum.WindowOpenModal>;
|
|
61
65
|
sendOpenConfirmation: import(".").ActionCreatorFn<import(".").ActionTypeEnum.WindowOpenConfirmation>;
|
|
@@ -20,6 +20,8 @@ import { type SettingsOpenDataTypeDTO } from './settings/open';
|
|
|
20
20
|
import { type WindowCloseModalDataTypeDTO } from './window/close-modal';
|
|
21
21
|
import { type WindowOpenConfirmationDataTypeDTO } from './window/open-confirmation';
|
|
22
22
|
import { type WindowOpenModalDataTypeDTO } from './window/open-modal';
|
|
23
|
+
import { type WindowSetUnsavedChangesDataTypeDTO } from './window/set-unsaved-changes';
|
|
24
|
+
import { type ShowToastDataTypeDTO } from './window/show-toast';
|
|
23
25
|
import { type WindowUpdateUrlDataTypeDTO } from './window/update-url';
|
|
24
26
|
export declare enum InternalActionTypeEnum {
|
|
25
27
|
Handshake = "Handshake"
|
|
@@ -43,9 +45,11 @@ export declare enum ActionTypeEnum {
|
|
|
43
45
|
RequestExchangeToken = "RequestExchangeToken",
|
|
44
46
|
RequestUserData = "RequestUserData",
|
|
45
47
|
WindowUpdateUrl = "WindowUpdateUrl",
|
|
48
|
+
WindowShowToast = "WindowShowToast",
|
|
46
49
|
WindowOpenModal = "WindowOpenModal",
|
|
47
50
|
WindowCloseModal = "WindowCloseModal",
|
|
48
|
-
WindowOpenConfirmation = "WindowOpenConfirmation"
|
|
51
|
+
WindowOpenConfirmation = "WindowOpenConfirmation",
|
|
52
|
+
WindowSetUnsavedChanges = "WindowSetUnsavedChanges"
|
|
49
53
|
}
|
|
50
54
|
export declare const AdditionalMessageConfig: {
|
|
51
55
|
[key in ActionTypeEnum]?: AdditionalMessageConfigDTO;
|
|
@@ -70,7 +74,9 @@ export type DataTypeMapDTO = {
|
|
|
70
74
|
[ActionTypeEnum.RequestExchangeToken]: ExchangeTokenDataTypeDTO;
|
|
71
75
|
[ActionTypeEnum.RequestUserData]: UserDataDataTypeDTO;
|
|
72
76
|
[ActionTypeEnum.WindowUpdateUrl]: WindowUpdateUrlDataTypeDTO;
|
|
77
|
+
[ActionTypeEnum.WindowShowToast]: ShowToastDataTypeDTO;
|
|
73
78
|
[ActionTypeEnum.WindowOpenModal]: WindowOpenModalDataTypeDTO;
|
|
74
79
|
[ActionTypeEnum.WindowCloseModal]: WindowCloseModalDataTypeDTO;
|
|
75
80
|
[ActionTypeEnum.WindowOpenConfirmation]: WindowOpenConfirmationDataTypeDTO;
|
|
81
|
+
[ActionTypeEnum.WindowSetUnsavedChanges]: WindowSetUnsavedChangesDataTypeDTO;
|
|
76
82
|
};
|
package/src/lib/actions/base.js
CHANGED
|
@@ -22,9 +22,11 @@ export var ActionTypeEnum;
|
|
|
22
22
|
ActionTypeEnum["RequestExchangeToken"] = "RequestExchangeToken";
|
|
23
23
|
ActionTypeEnum["RequestUserData"] = "RequestUserData";
|
|
24
24
|
ActionTypeEnum["WindowUpdateUrl"] = "WindowUpdateUrl";
|
|
25
|
+
ActionTypeEnum["WindowShowToast"] = "WindowShowToast";
|
|
25
26
|
ActionTypeEnum["WindowOpenModal"] = "WindowOpenModal";
|
|
26
27
|
ActionTypeEnum["WindowCloseModal"] = "WindowCloseModal";
|
|
27
28
|
ActionTypeEnum["WindowOpenConfirmation"] = "WindowOpenConfirmation";
|
|
29
|
+
ActionTypeEnum["WindowSetUnsavedChanges"] = "WindowSetUnsavedChanges";
|
|
28
30
|
})(ActionTypeEnum || (ActionTypeEnum = {}));
|
|
29
31
|
export const AdditionalMessageConfig = {
|
|
30
32
|
[ActionTypeEnum.PubsubNotification]: { keepAlive: true }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../libs/integrations-messenger/src/lib/actions/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../libs/integrations-messenger/src/lib/actions/base.ts"],"names":[],"mappings":"AA0BA,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAChC,iDAAuB,CAAA;AACzB,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC;AAED,MAAM,CAAN,IAAY,cAgCX;AAhCD,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;IAEnC,qDAAmC,CAAA;IAEnC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mEAAiD,CAAA;IACjD,qEAAmD,CAAA;AACrD,CAAC,EAhCW,cAAc,KAAd,cAAc,QAgCzB;AAED,MAAM,CAAC,MAAM,uBAAuB,GAA6D;IAC/F,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;CACzD,CAAC"}
|
|
@@ -46,8 +46,12 @@ declare const _default: {
|
|
|
46
46
|
handleGetBranding: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.GetBranding>;
|
|
47
47
|
};
|
|
48
48
|
window: {
|
|
49
|
+
sendShowToast: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.WindowShowToast>;
|
|
50
|
+
handleShowToast: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.WindowShowToast>;
|
|
49
51
|
sendUpdateUrl: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.WindowUpdateUrl>;
|
|
50
52
|
handleUpdateUrl: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.WindowUpdateUrl>;
|
|
53
|
+
sendSetUnsavedChanges: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.WindowSetUnsavedChanges>;
|
|
54
|
+
handleSetUnsavedChanges: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.WindowSetUnsavedChanges>;
|
|
51
55
|
sendOpenModal: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.WindowOpenModal>;
|
|
52
56
|
handleOpenModal: import("../models").ActionHandlerFn<import("./base").ActionTypeEnum.WindowOpenModal>;
|
|
53
57
|
sendOpenConfirmation: import("../models").ActionCreatorFn<import("./base").ActionTypeEnum.WindowOpenConfirmation>;
|
|
@@ -2,10 +2,18 @@ import { type ActionResponseBaseDTO } from '../../models';
|
|
|
2
2
|
import { ActionTypeEnum } from '../base';
|
|
3
3
|
import { type ActionDataTypeDTO } from '../utils';
|
|
4
4
|
import { type MatterRequestBaseDTO } from './base';
|
|
5
|
-
type
|
|
6
|
-
documentId: string;
|
|
5
|
+
type PreviewDocumentBaseDTO = MatterRequestBaseDTO & {
|
|
7
6
|
documentName: string;
|
|
8
7
|
};
|
|
8
|
+
type PreviewDocumentByIdDTO = PreviewDocumentBaseDTO & {
|
|
9
|
+
documentId: string;
|
|
10
|
+
presignedUrl?: never;
|
|
11
|
+
};
|
|
12
|
+
type PreviewDocumentByUrlDTO = PreviewDocumentBaseDTO & {
|
|
13
|
+
presignedUrl: string;
|
|
14
|
+
documentId?: never;
|
|
15
|
+
};
|
|
16
|
+
type PreviewDocumentDTO = PreviewDocumentByIdDTO | PreviewDocumentByUrlDTO;
|
|
9
17
|
type PreviewDocumentResponseDTO = ActionResponseBaseDTO;
|
|
10
18
|
export type MatterPreviewDocumentDataTypeDTO = ActionDataTypeDTO<PreviewDocumentDTO, PreviewDocumentResponseDTO>;
|
|
11
19
|
declare const _default: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-document.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/matter/preview-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"preview-document.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/matter/preview-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAuB9F,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC;AACvF,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC;AAEzF,eAAe,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
sendShowToast: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.WindowShowToast>;
|
|
3
|
+
handleShowToast: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.WindowShowToast>;
|
|
2
4
|
sendUpdateUrl: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.WindowUpdateUrl>;
|
|
3
5
|
handleUpdateUrl: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.WindowUpdateUrl>;
|
|
6
|
+
sendSetUnsavedChanges: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.WindowSetUnsavedChanges>;
|
|
7
|
+
handleSetUnsavedChanges: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.WindowSetUnsavedChanges>;
|
|
4
8
|
sendOpenModal: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.WindowOpenModal>;
|
|
5
9
|
handleOpenModal: import("../../models").ActionHandlerFn<import("../base").ActionTypeEnum.WindowOpenModal>;
|
|
6
10
|
sendOpenConfirmation: import("../../models").ActionCreatorFn<import("../base").ActionTypeEnum.WindowOpenConfirmation>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import closeModal from './close-modal';
|
|
2
2
|
import openConfirmation from './open-confirmation';
|
|
3
3
|
import openModal from './open-modal';
|
|
4
|
+
import setUnsavedChanges from './set-unsaved-changes';
|
|
5
|
+
import showToast from './show-toast';
|
|
4
6
|
import updateUrl from './update-url';
|
|
5
7
|
export default {
|
|
6
8
|
...closeModal,
|
|
7
9
|
...openConfirmation,
|
|
8
10
|
...openModal,
|
|
9
|
-
...
|
|
11
|
+
...setUnsavedChanges,
|
|
12
|
+
...updateUrl,
|
|
13
|
+
...showToast
|
|
10
14
|
};
|
|
11
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,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"}
|
|
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,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,eAAe;IACb,GAAG,UAAU;IACb,GAAG,gBAAgB;IACnB,GAAG,SAAS;IACZ,GAAG,iBAAiB;IACpB,GAAG,SAAS;IACZ,GAAG,SAAS;CACb,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ActionResponseBaseDTO, ActionTypeEnum } from '../../models';
|
|
2
|
+
import { type ActionDataTypeDTO } from '../utils';
|
|
3
|
+
type WindowSetUnsavedChangesDTO = boolean;
|
|
4
|
+
type WindowSetUnsavedChangesResponseDTO = ActionResponseBaseDTO;
|
|
5
|
+
export type WindowSetUnsavedChangesDataTypeDTO = ActionDataTypeDTO<WindowSetUnsavedChangesDTO, WindowSetUnsavedChangesResponseDTO>;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
sendSetUnsavedChanges: import("../../models").ActionCreatorFn<ActionTypeEnum.WindowSetUnsavedChanges>;
|
|
8
|
+
handleSetUnsavedChanges: import("../../models").ActionHandlerFn<ActionTypeEnum.WindowSetUnsavedChanges>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionTypeEnum } from '../../models';
|
|
2
|
+
import { buildActionCreatorFn, buildActionHandlerFn } from '../utils';
|
|
3
|
+
const sendSetUnsavedChanges = buildActionCreatorFn(ActionTypeEnum.WindowSetUnsavedChanges);
|
|
4
|
+
const handleSetUnsavedChanges = buildActionHandlerFn(ActionTypeEnum.WindowSetUnsavedChanges);
|
|
5
|
+
export default { sendSetUnsavedChanges, handleSetUnsavedChanges };
|
|
6
|
+
//# sourceMappingURL=set-unsaved-changes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-unsaved-changes.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/window/set-unsaved-changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAW9F,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAC;AAC3F,MAAM,uBAAuB,GAAG,oBAAoB,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAC;AAE7F,eAAe,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ActionTypeEnum } from '../../models';
|
|
2
|
+
import { type ActionDataTypeDTO } from '../utils';
|
|
3
|
+
export type ToastConfigPayload = {
|
|
4
|
+
actionLabel?: string;
|
|
5
|
+
actionAriaLabel?: string;
|
|
6
|
+
dismissAriaLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ToastConfigDTO = {
|
|
9
|
+
payload?: ToastConfigPayload;
|
|
10
|
+
timeOut?: number;
|
|
11
|
+
extendedTimeOut?: number;
|
|
12
|
+
disableTimeOut?: boolean;
|
|
13
|
+
tapToDismiss?: boolean;
|
|
14
|
+
positionClass?: string;
|
|
15
|
+
};
|
|
16
|
+
type ShowToastDTO = {
|
|
17
|
+
type: 'show' | 'success' | 'error' | 'info' | 'warning';
|
|
18
|
+
message: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
override?: Partial<ToastConfigDTO>;
|
|
21
|
+
};
|
|
22
|
+
type ShowToastResponseDTO = {
|
|
23
|
+
actionClicked?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type ShowToastDataTypeDTO = ActionDataTypeDTO<ShowToastDTO, ShowToastResponseDTO>;
|
|
26
|
+
declare const _default: {
|
|
27
|
+
sendShowToast: import("../../models").ActionCreatorFn<ActionTypeEnum.WindowShowToast>;
|
|
28
|
+
handleShowToast: import("../../models").ActionHandlerFn<ActionTypeEnum.WindowShowToast>;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionTypeEnum } from '../../models';
|
|
2
|
+
import { buildActionCreatorFn, buildActionHandlerFn } from '../utils';
|
|
3
|
+
const sendShowToast = buildActionCreatorFn(ActionTypeEnum.WindowShowToast);
|
|
4
|
+
const handleShowToast = buildActionHandlerFn(ActionTypeEnum.WindowShowToast);
|
|
5
|
+
export default { sendShowToast, handleShowToast };
|
|
6
|
+
//# sourceMappingURL=show-toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-toast.js","sourceRoot":"","sources":["../../../../../../../libs/integrations-messenger/src/lib/actions/window/show-toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAA0B,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAgC9F,MAAM,aAAa,GAAG,oBAAoB,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;AAC3E,MAAM,eAAe,GAAG,oBAAoB,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;AAE7E,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC"}
|