@openfin/fdc3-api 43.100.90 → 43.100.91
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/out/fdc3-api-alpha.d.ts +17 -1
- package/out/fdc3-api-beta.d.ts +17 -1
- package/out/fdc3-api-public.d.ts +17 -1
- package/out/fdc3-api.d.ts +17 -1
- package/out/fdc3-api.js +6 -0
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -4575,7 +4575,22 @@ declare type DomainSettings = {
|
|
|
4575
4575
|
};
|
|
4576
4576
|
|
|
4577
4577
|
/**
|
|
4578
|
-
*
|
|
4578
|
+
* Enables or disables specific preload scripts by URL.
|
|
4579
|
+
*
|
|
4580
|
+
* Uses the script's full URL as the key and an object
|
|
4581
|
+
* with an `enabled` boolean property as the value.
|
|
4582
|
+
* @example
|
|
4583
|
+
* ```js
|
|
4584
|
+
* {
|
|
4585
|
+
"match": ["<all_urls>"],
|
|
4586
|
+
"options": {
|
|
4587
|
+
"preloadScripts": {
|
|
4588
|
+
"http://localhost:53000/block-preload.js": { "enabled": false }
|
|
4589
|
+
"http://localhost:53000/allow-preload.js": { "enabled": true }
|
|
4590
|
+
}
|
|
4591
|
+
}
|
|
4592
|
+
}
|
|
4593
|
+
* ```
|
|
4579
4594
|
*/
|
|
4580
4595
|
declare type DomainSettingsPreloadScripts = Record<string, {
|
|
4581
4596
|
enabled: boolean;
|
|
@@ -6978,6 +6993,7 @@ declare class InteropBroker extends Base {
|
|
|
6978
6993
|
private sessionContextGroupMap;
|
|
6979
6994
|
private channel;
|
|
6980
6995
|
private logging;
|
|
6996
|
+
private privateChannelProviderMap;
|
|
6981
6997
|
/* Excluded from this release type: __constructor */
|
|
6982
6998
|
private getProvider;
|
|
6983
6999
|
static createClosedConstructor(...args: ConstructorParameters<typeof InteropBroker>): {
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -4575,7 +4575,22 @@ declare type DomainSettings = {
|
|
|
4575
4575
|
};
|
|
4576
4576
|
|
|
4577
4577
|
/**
|
|
4578
|
-
*
|
|
4578
|
+
* Enables or disables specific preload scripts by URL.
|
|
4579
|
+
*
|
|
4580
|
+
* Uses the script's full URL as the key and an object
|
|
4581
|
+
* with an `enabled` boolean property as the value.
|
|
4582
|
+
* @example
|
|
4583
|
+
* ```js
|
|
4584
|
+
* {
|
|
4585
|
+
"match": ["<all_urls>"],
|
|
4586
|
+
"options": {
|
|
4587
|
+
"preloadScripts": {
|
|
4588
|
+
"http://localhost:53000/block-preload.js": { "enabled": false }
|
|
4589
|
+
"http://localhost:53000/allow-preload.js": { "enabled": true }
|
|
4590
|
+
}
|
|
4591
|
+
}
|
|
4592
|
+
}
|
|
4593
|
+
* ```
|
|
4579
4594
|
*/
|
|
4580
4595
|
declare type DomainSettingsPreloadScripts = Record<string, {
|
|
4581
4596
|
enabled: boolean;
|
|
@@ -6978,6 +6993,7 @@ declare class InteropBroker extends Base {
|
|
|
6978
6993
|
private sessionContextGroupMap;
|
|
6979
6994
|
private channel;
|
|
6980
6995
|
private logging;
|
|
6996
|
+
private privateChannelProviderMap;
|
|
6981
6997
|
/* Excluded from this release type: __constructor */
|
|
6982
6998
|
private getProvider;
|
|
6983
6999
|
static createClosedConstructor(...args: ConstructorParameters<typeof InteropBroker>): {
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -4575,7 +4575,22 @@ declare type DomainSettings = {
|
|
|
4575
4575
|
};
|
|
4576
4576
|
|
|
4577
4577
|
/**
|
|
4578
|
-
*
|
|
4578
|
+
* Enables or disables specific preload scripts by URL.
|
|
4579
|
+
*
|
|
4580
|
+
* Uses the script's full URL as the key and an object
|
|
4581
|
+
* with an `enabled` boolean property as the value.
|
|
4582
|
+
* @example
|
|
4583
|
+
* ```js
|
|
4584
|
+
* {
|
|
4585
|
+
"match": ["<all_urls>"],
|
|
4586
|
+
"options": {
|
|
4587
|
+
"preloadScripts": {
|
|
4588
|
+
"http://localhost:53000/block-preload.js": { "enabled": false }
|
|
4589
|
+
"http://localhost:53000/allow-preload.js": { "enabled": true }
|
|
4590
|
+
}
|
|
4591
|
+
}
|
|
4592
|
+
}
|
|
4593
|
+
* ```
|
|
4579
4594
|
*/
|
|
4580
4595
|
declare type DomainSettingsPreloadScripts = Record<string, {
|
|
4581
4596
|
enabled: boolean;
|
|
@@ -6978,6 +6993,7 @@ declare class InteropBroker extends Base {
|
|
|
6978
6993
|
private sessionContextGroupMap;
|
|
6979
6994
|
private channel;
|
|
6980
6995
|
private logging;
|
|
6996
|
+
private privateChannelProviderMap;
|
|
6981
6997
|
/* Excluded from this release type: __constructor */
|
|
6982
6998
|
private getProvider;
|
|
6983
6999
|
static createClosedConstructor(...args: ConstructorParameters<typeof InteropBroker>): {
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -4634,7 +4634,22 @@ declare type DomainSettings = {
|
|
|
4634
4634
|
};
|
|
4635
4635
|
|
|
4636
4636
|
/**
|
|
4637
|
-
*
|
|
4637
|
+
* Enables or disables specific preload scripts by URL.
|
|
4638
|
+
*
|
|
4639
|
+
* Uses the script's full URL as the key and an object
|
|
4640
|
+
* with an `enabled` boolean property as the value.
|
|
4641
|
+
* @example
|
|
4642
|
+
* ```js
|
|
4643
|
+
* {
|
|
4644
|
+
"match": ["<all_urls>"],
|
|
4645
|
+
"options": {
|
|
4646
|
+
"preloadScripts": {
|
|
4647
|
+
"http://localhost:53000/block-preload.js": { "enabled": false }
|
|
4648
|
+
"http://localhost:53000/allow-preload.js": { "enabled": true }
|
|
4649
|
+
}
|
|
4650
|
+
}
|
|
4651
|
+
}
|
|
4652
|
+
* ```
|
|
4638
4653
|
*/
|
|
4639
4654
|
declare type DomainSettingsPreloadScripts = Record<string, {
|
|
4640
4655
|
enabled: boolean;
|
|
@@ -7084,6 +7099,7 @@ declare class InteropBroker extends Base {
|
|
|
7084
7099
|
private sessionContextGroupMap;
|
|
7085
7100
|
private channel;
|
|
7086
7101
|
private logging;
|
|
7102
|
+
private privateChannelProviderMap;
|
|
7087
7103
|
/**
|
|
7088
7104
|
* @internal
|
|
7089
7105
|
*/
|
package/out/fdc3-api.js
CHANGED
|
@@ -1537,6 +1537,12 @@ class FDC3ModuleBase {
|
|
|
1537
1537
|
this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
|
|
1538
1538
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
1539
1539
|
});
|
|
1540
|
+
const hasChannelIdBeenUsed = await InteropClient_1$1.InteropClient.ferryFdc3Call(this.client, 'isIdUsedByPrivateChannel', {
|
|
1541
|
+
channelId
|
|
1542
|
+
});
|
|
1543
|
+
if (hasChannelIdBeenUsed) {
|
|
1544
|
+
throw new Error(utils_1$2.ChannelError.AccessDenied);
|
|
1545
|
+
}
|
|
1540
1546
|
const systemChannels = await this._getChannels();
|
|
1541
1547
|
const userChannel = systemChannels.find((channel) => channel.id === channelId);
|
|
1542
1548
|
if (userChannel) {
|