@openfin/core 32.75.22 → 32.75.24
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/package.json
CHANGED
|
@@ -67,10 +67,6 @@ export type FoundInPageEvent = NamedEvent & {
|
|
|
67
67
|
} & {
|
|
68
68
|
result: OpenFin.FindInPageResult;
|
|
69
69
|
};
|
|
70
|
-
/**
|
|
71
|
-
* A WebContents event that does not propagate to (republish on) parent topics.
|
|
72
|
-
*/
|
|
73
|
-
export type NonPropagatedWebContentsEvent = FoundInPageEvent | CertificateErrorEvent;
|
|
74
70
|
export type BlurredEvent = NamedEvent & {
|
|
75
71
|
type: 'blurred';
|
|
76
72
|
};
|
|
@@ -89,9 +85,62 @@ export type ChildContentOpenedInBrowserEvent = NamedEvent & {
|
|
|
89
85
|
export type ChildViewCreatedEvent = NamedEvent & {
|
|
90
86
|
type: 'child-view-created';
|
|
91
87
|
};
|
|
88
|
+
export type FileDownloadEvent = NamedEvent & {
|
|
89
|
+
state: 'started' | 'progressing' | 'cancelled' | 'interrupted' | 'completed';
|
|
90
|
+
/**
|
|
91
|
+
* The url from which the file is being downloaded.
|
|
92
|
+
*/
|
|
93
|
+
url: string;
|
|
94
|
+
mimeType: string;
|
|
95
|
+
/**
|
|
96
|
+
* Name used to save the file locally.
|
|
97
|
+
*/
|
|
98
|
+
fileName: string;
|
|
99
|
+
/**
|
|
100
|
+
* Original name of the file.
|
|
101
|
+
*/
|
|
102
|
+
originalFileName: string;
|
|
103
|
+
totalBytes: number;
|
|
104
|
+
/**
|
|
105
|
+
* The number of seconds since the UNIX epoch when the download was started.
|
|
106
|
+
*/
|
|
107
|
+
startTime: number;
|
|
108
|
+
/**
|
|
109
|
+
* The value of the Content-Disposition field from the response header.
|
|
110
|
+
*/
|
|
111
|
+
contentDisposition: string;
|
|
112
|
+
/**
|
|
113
|
+
* The value of the Last-Modified header.
|
|
114
|
+
*/
|
|
115
|
+
lastModifiedTime: Date;
|
|
116
|
+
/**
|
|
117
|
+
* The value of the ETag header.
|
|
118
|
+
*/
|
|
119
|
+
eTag: string;
|
|
120
|
+
/**
|
|
121
|
+
* The number of bytes of the item that have already been downloaded.
|
|
122
|
+
*/
|
|
123
|
+
downloadedBytes: number;
|
|
124
|
+
};
|
|
125
|
+
export type FileDownloadStartedEvent = FileDownloadEvent & {
|
|
126
|
+
type: 'file-download-started';
|
|
127
|
+
state: 'started';
|
|
128
|
+
};
|
|
129
|
+
export type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
130
|
+
type: 'file-download-progress';
|
|
131
|
+
state: 'progressing' | 'interrupted';
|
|
132
|
+
};
|
|
133
|
+
export type FileDownloadCompletedEvent = FileDownloadEvent & {
|
|
134
|
+
type: 'file-download-completed';
|
|
135
|
+
state: 'completed' | 'interrupted' | 'cancelled';
|
|
136
|
+
};
|
|
92
137
|
/**
|
|
93
138
|
* A WebContents event that does propagate to (republish on) parent topics.
|
|
94
139
|
*/
|
|
95
|
-
export type WillPropagateWebContentsEvent = BlurredEvent | CertificateSelectionShownEvent | CrashedEvent | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | FaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent;
|
|
140
|
+
export type WillPropagateWebContentsEvent = BlurredEvent | CertificateSelectionShownEvent | CrashedEvent | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | FaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent | FileDownloadStartedEvent | FileDownloadProgressEvent | FileDownloadCompletedEvent;
|
|
141
|
+
/**
|
|
142
|
+
* A WebContents event that does not propagate to (republish on) parent topics.
|
|
143
|
+
*/
|
|
144
|
+
export type NonPropagatedWebContentsEvent = FoundInPageEvent | CertificateErrorEvent;
|
|
96
145
|
export type WebContentsEvent = NonPropagatedWebContentsEvent | WillPropagateWebContentsEvent;
|
|
97
146
|
export {};
|