@dotbase/safe-frame-sync 1.10.0 → 1.11.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" | "documentLoadError";
|
|
1
|
+
export type MessageType = "editResource" | "createResource" | "closeBuilder" | "closeDocument" | "setBreadcrumbs" | "goToPatient" | "iframeRouteChange" | "sessionExpired" | "iframeReady" | "createDraft" | "createdDraft" | "draftSaved" | "openDocumentCapture" | "documentLoadError";
|
|
2
2
|
export type WorkflowType = "document" | "patient-report";
|
|
3
3
|
export interface BreadcrumbItemType {
|
|
4
4
|
to: string;
|
|
@@ -58,11 +58,16 @@ export interface CreatedDraftType {
|
|
|
58
58
|
export interface DraftSavedType {
|
|
59
59
|
type: "draftSaved";
|
|
60
60
|
}
|
|
61
|
+
export interface OpenDocumentCaptureType {
|
|
62
|
+
type: "openDocumentCapture";
|
|
63
|
+
procedureId: string;
|
|
64
|
+
documentTemplateId: string;
|
|
65
|
+
}
|
|
61
66
|
export interface DocumentLoadErrorType {
|
|
62
67
|
type: "documentLoadError";
|
|
63
68
|
documentId: string;
|
|
64
69
|
}
|
|
65
|
-
export type MesssageDataType = EditResourceType | CreateResourceType | CloseBuilderType | CloseDocumentType | SetBreadcrumbsType | GoToPatientType | IframeRouteChangeType | SessionExpiredType | IframeReadyType | CreateDraftType | CreatedDraftType | DraftSavedType | DocumentLoadErrorType;
|
|
70
|
+
export type MesssageDataType = EditResourceType | CreateResourceType | CloseBuilderType | CloseDocumentType | SetBreadcrumbsType | GoToPatientType | IframeRouteChangeType | SessionExpiredType | IframeReadyType | CreateDraftType | CreatedDraftType | DraftSavedType | OpenDocumentCaptureType | DocumentLoadErrorType;
|
|
66
71
|
export interface MessageDataMapType {
|
|
67
72
|
editResource: EditResourceType;
|
|
68
73
|
createResource: CreateResourceType;
|
|
@@ -76,6 +81,7 @@ export interface MessageDataMapType {
|
|
|
76
81
|
createDraft: CreateDraftType;
|
|
77
82
|
createdDraft: CreatedDraftType;
|
|
78
83
|
draftSaved: DraftSavedType;
|
|
84
|
+
openDocumentCapture: OpenDocumentCaptureType;
|
|
79
85
|
documentLoadError: DocumentLoadErrorType;
|
|
80
86
|
}
|
|
81
87
|
export declare const publishMessage: (data: MesssageDataType, target?: Window) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotbase/safe-frame-sync",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.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",
|