@dotbase/safe-frame-sync 1.12.3 → 1.13.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/index.d.ts +8 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type MessageType = "editResource" | "createResource" | "closeBuilder" | "closeDocument" | "setBreadcrumbs" | "goToPatient" | "iframeRouteChange" | "sessionExpired" | "iframeReady" | "createDraft" | "createdDraft" | "draftSaved" | "openDocumentCapture" | "documentLoadError" | "reloadDocument";
|
|
1
|
+
export type MessageType = "editResource" | "createResource" | "closeBuilder" | "closeDocument" | "setBreadcrumbs" | "goToPatient" | "iframeRouteChange" | "sessionExpired" | "iframeReady" | "createDraft" | "createdDraft" | "draftSaved" | "openDocumentCapture" | "documentLoadError" | "reloadDocument" | "openDoctorsLetterExport";
|
|
2
2
|
export type WorkflowType = "document" | "patient-report";
|
|
3
3
|
export interface BreadcrumbItemType {
|
|
4
4
|
to: string;
|
|
@@ -70,7 +70,12 @@ export interface DocumentLoadErrorType {
|
|
|
70
70
|
export interface ReloadDocumentType {
|
|
71
71
|
type: "reloadDocument";
|
|
72
72
|
}
|
|
73
|
-
export
|
|
73
|
+
export interface OpenDoctorsLetterExportType {
|
|
74
|
+
type: "openDoctorsLetterExport";
|
|
75
|
+
procedureId: string;
|
|
76
|
+
documentTemplateId: string;
|
|
77
|
+
}
|
|
78
|
+
export type MesssageDataType = EditResourceType | CreateResourceType | CloseBuilderType | CloseDocumentType | SetBreadcrumbsType | GoToPatientType | IframeRouteChangeType | SessionExpiredType | IframeReadyType | CreateDraftType | CreatedDraftType | DraftSavedType | OpenDocumentCaptureType | DocumentLoadErrorType | ReloadDocumentType | OpenDoctorsLetterExportType;
|
|
74
79
|
export interface MessageDataMapType {
|
|
75
80
|
editResource: EditResourceType;
|
|
76
81
|
createResource: CreateResourceType;
|
|
@@ -87,6 +92,7 @@ export interface MessageDataMapType {
|
|
|
87
92
|
openDocumentCapture: OpenDocumentCaptureType;
|
|
88
93
|
documentLoadError: DocumentLoadErrorType;
|
|
89
94
|
reloadDocument: ReloadDocumentType;
|
|
95
|
+
openDoctorsLetterExport: OpenDoctorsLetterExportType;
|
|
90
96
|
}
|
|
91
97
|
export declare const publishMessage: (data: MesssageDataType, target?: Window) => void;
|
|
92
98
|
declare function subscribeMessage<T extends MessageType>(type: T, callback: (data: MessageDataMapType[T]) => void): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotbase/safe-frame-sync",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Typesafe iframe and parent communication between Dotstudio and Dotclinic",
|
|
5
5
|
"homepage": "https://github.com/dot-base/safe-frame-sync",
|
|
6
6
|
"types": "dist/index.d.ts",
|