@openfin/core 33.76.19 → 33.76.21
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.
|
Binary file
|
package/package.json
CHANGED
package/src/OpenFin.d.ts
CHANGED
|
@@ -2628,6 +2628,10 @@ export type ContentCreationRule<T = ContentCreationBehaviorNames> = {
|
|
|
2628
2628
|
* Options for newly-created view or window (if applicable).
|
|
2629
2629
|
*/
|
|
2630
2630
|
options?: T extends 'window' ? Partial<WindowOptions> : T extends 'view' ? Partial<ViewOptions> : never;
|
|
2631
|
+
/**
|
|
2632
|
+
* custom property
|
|
2633
|
+
*/
|
|
2634
|
+
data?: unknown;
|
|
2631
2635
|
};
|
|
2632
2636
|
/**
|
|
2633
2637
|
* Configures how new content (e,g, from `window.open` or a link) is opened.
|
|
@@ -121,23 +121,65 @@ export type DidChangeThemeColorEvent = NamedEvent & {
|
|
|
121
121
|
export type FocusedEvent = NamedEvent & {
|
|
122
122
|
type: 'focused';
|
|
123
123
|
};
|
|
124
|
+
export type ContentCreationRulesEvent = NamedEvent & {
|
|
125
|
+
/**
|
|
126
|
+
* The absolute url which triggered this event.
|
|
127
|
+
*/
|
|
128
|
+
url: string;
|
|
129
|
+
/**
|
|
130
|
+
* The features string passed to `window.open()`
|
|
131
|
+
*/
|
|
132
|
+
features: string;
|
|
133
|
+
/**
|
|
134
|
+
* The frame name passed to `window.open()`
|
|
135
|
+
*/
|
|
136
|
+
frameName: string;
|
|
137
|
+
/**
|
|
138
|
+
* The rule which triggered this event. May be undefined on `child-window-created` where no rule corresponds to the child Window creation
|
|
139
|
+
*/
|
|
140
|
+
rule: OpenFin.ContentCreationRule;
|
|
141
|
+
/**
|
|
142
|
+
* The features string passed to `window.open()` converted to OpenFin window options
|
|
143
|
+
*/
|
|
144
|
+
parsedFeatures: Partial<OpenFin.WindowOptions>;
|
|
145
|
+
disposition: string;
|
|
146
|
+
};
|
|
124
147
|
/**
|
|
125
148
|
* Generated when a child content is blocked to load.
|
|
126
149
|
*/
|
|
127
|
-
export type ChildContentBlockedEvent =
|
|
150
|
+
export type ChildContentBlockedEvent = ContentCreationRulesEvent & {
|
|
128
151
|
type: 'child-content-blocked';
|
|
129
152
|
};
|
|
130
153
|
/**
|
|
131
154
|
* Generated when a child content is loaded into a browser.
|
|
132
155
|
*/
|
|
133
|
-
export type ChildContentOpenedInBrowserEvent =
|
|
156
|
+
export type ChildContentOpenedInBrowserEvent = ContentCreationRulesEvent & {
|
|
134
157
|
type: 'child-content-opened-in-browser';
|
|
135
158
|
};
|
|
136
159
|
/**
|
|
137
160
|
* Generated when a child View is created.
|
|
138
161
|
*/
|
|
139
|
-
export type ChildViewCreatedEvent =
|
|
162
|
+
export type ChildViewCreatedEvent = ContentCreationRulesEvent & {
|
|
140
163
|
type: 'child-view-created';
|
|
164
|
+
/**
|
|
165
|
+
* The options the child View was created with.
|
|
166
|
+
*/
|
|
167
|
+
childOptions: OpenFin.ViewOptions;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Generated when a child Window is created.
|
|
171
|
+
*/
|
|
172
|
+
export type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
|
|
173
|
+
type: 'child-window-created';
|
|
174
|
+
/**
|
|
175
|
+
* The options the child Window was created with.
|
|
176
|
+
*/
|
|
177
|
+
childOptions: OpenFin.WindowOptions;
|
|
178
|
+
/**
|
|
179
|
+
* On `child-window-created` rule may be undefined.
|
|
180
|
+
* It is only defined if the rules engine found a match for a user-supplied rule, not in the case of an api call or the default behavior.
|
|
181
|
+
*/
|
|
182
|
+
rule?: OpenFin.ContentCreationRule;
|
|
141
183
|
};
|
|
142
184
|
/**
|
|
143
185
|
* A general file download event without event type.
|
|
@@ -212,7 +254,7 @@ export type FileDownloadCompletedEvent = FileDownloadEvent & {
|
|
|
212
254
|
/**
|
|
213
255
|
* A WebContents event that does propagate to (republish on) parent topics.
|
|
214
256
|
*/
|
|
215
|
-
export type WillPropagateWebContentsEvent = BlurredEvent | CertificateSelectionShownEvent | CrashedEvent | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | FaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent | FileDownloadStartedEvent | FileDownloadProgressEvent | FileDownloadCompletedEvent;
|
|
257
|
+
export type WillPropagateWebContentsEvent = BlurredEvent | CertificateSelectionShownEvent | CrashedEvent | DidChangeThemeColorEvent | FocusedEvent | NavigationRejectedEvent | UrlChangedEvent | DidFailLoadEvent | DidFinishLoadEvent | FaviconUpdatedEvent | PageTitleUpdatedEvent | ResourceLoadFailedEvent | ResourceResponseReceivedEvent | ChildContentBlockedEvent | ChildContentOpenedInBrowserEvent | ChildViewCreatedEvent | ChildWindowCreatedEvent | FileDownloadStartedEvent | FileDownloadProgressEvent | FileDownloadCompletedEvent;
|
|
216
258
|
/**
|
|
217
259
|
* A WebContents event that does not propagate to (republish on) parent topics.
|
|
218
260
|
*/
|
package/src/api/view/Instance.js
CHANGED
|
Binary file
|