@openfin/core 30.74.13 → 30.74.14
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 +1 -1
- package/src/api/events/webcontents.d.ts +54 -5
- package/src/mock.d.ts +1 -1
- package/src/mock.js +3 -2
package/package.json
CHANGED
|
@@ -67,10 +67,6 @@ export declare 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 declare type NonPropagatedWebContentsEvent = FoundInPageEvent | CertificateErrorEvent;
|
|
74
70
|
export declare type BlurredEvent = NamedEvent & {
|
|
75
71
|
type: 'blurred';
|
|
76
72
|
};
|
|
@@ -89,9 +85,62 @@ export declare type ChildContentOpenedInBrowserEvent = NamedEvent & {
|
|
|
89
85
|
export declare type ChildViewCreatedEvent = NamedEvent & {
|
|
90
86
|
type: 'child-view-created';
|
|
91
87
|
};
|
|
88
|
+
export declare 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 declare type FileDownloadStartedEvent = FileDownloadEvent & {
|
|
126
|
+
type: 'file-download-started';
|
|
127
|
+
state: 'started';
|
|
128
|
+
};
|
|
129
|
+
export declare type FileDownloadProgressEvent = FileDownloadEvent & {
|
|
130
|
+
type: 'file-download-progress';
|
|
131
|
+
state: 'progressing' | 'interrupted';
|
|
132
|
+
};
|
|
133
|
+
export declare 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 declare type WillPropagateWebContentsEvent = BlurredEvent | CertificateSelectionShownEvent | CrashedEvent | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | FaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent;
|
|
140
|
+
export declare 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 declare type NonPropagatedWebContentsEvent = FoundInPageEvent | CertificateErrorEvent;
|
|
96
145
|
export declare type WebContentsEvent = NonPropagatedWebContentsEvent | WillPropagateWebContentsEvent;
|
|
97
146
|
export {};
|
package/src/mock.d.ts
CHANGED
package/src/mock.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fin = void 0;
|
|
3
|
+
exports.default = exports.fin = void 0;
|
|
4
4
|
/* eslint-disable import/prefer-default-export */
|
|
5
5
|
/* eslint-disable spaced-comment */
|
|
6
6
|
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
@@ -20,4 +20,5 @@ exports.fin = ((typeof window !== 'undefined' && (window === null || window ===
|
|
|
20
20
|
});
|
|
21
21
|
return new fin_1.default(transport);
|
|
22
22
|
})());
|
|
23
|
-
|
|
23
|
+
// eslint-disable-next-line no-restricted-exports
|
|
24
|
+
exports.default = require("./OpenFin");
|