@interopio/browser-platform 3.4.10 → 3.5.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.
@@ -2,10 +2,11 @@
2
2
  import { IOConnectCore } from "@interopio/core";
3
3
  import { IOConnectBrowser } from "@interopio/browser";
4
4
  import { IOConnectDesktop } from "@interopio/desktop";
5
+ import { IOBrowserWidget } from "@interopio/widget";
5
6
 
6
7
  export namespace IOConnectBrowserPlatform {
7
8
 
8
- export type LibDomains = "system" | "windows" | "appManager" | "layouts" | "workspaces" | "intents" | "channels" | "notifications" | "extension" | "search" | "themes" | "manager" | "prefs";
9
+ export type LibDomains = "system" | "windows" | "appManager" | "layouts" | "workspaces" | "intents" | "channels" | "notifications" | "extension" | "search" | "themes" | "manager" | "prefs" | "ui";
9
10
 
10
11
  export interface RemoteStore {
11
12
  /**
@@ -60,8 +61,35 @@ export namespace IOConnectBrowserPlatform {
60
61
  }
61
62
 
62
63
  export namespace Channels {
64
+ /**
65
+ * Provide display hints for FDC3 User Channels intended to be visualized and selectable by end users.
66
+ */
67
+ export interface FDC3ChannelDisplayMetadata {
68
+ /**
69
+ * A user-readable name for this channel, e.g: `"Red"`. */
70
+ name?: string;
71
+ /**
72
+ * The color that should be associated within this channel when displaying
73
+ * this channel in a UI, e.g: `#FF0000`. May be any color value supported by
74
+ * CSS, e.g. name, hex, rgba, etc.. */
75
+ color?: string;
76
+
77
+ /**
78
+ * A URL of an image that can be used to display this channel. */
79
+ glyph?: string;
80
+ }
81
+
82
+ export interface FDC3ChannelMeta {
83
+ id: string;
84
+ displayMetadata?: FDC3ChannelDisplayMetadata;
85
+ }
86
+
63
87
  export interface ChannelMeta {
64
88
  color: string;
89
+ /**
90
+ * Provide to enable FDC3 channel support.
91
+ */
92
+ fdc3?: FDC3ChannelMeta;
65
93
  [key: string]: any;
66
94
  }
67
95
 
@@ -73,6 +101,10 @@ export namespace IOConnectBrowserPlatform {
73
101
 
74
102
  export interface Config {
75
103
  definitions: ChannelDefinition[];
104
+ /**
105
+ * @default single
106
+ */
107
+ mode?: IOConnectBrowser.Channels.Mode;
76
108
  }
77
109
  }
78
110
 
@@ -121,7 +153,7 @@ export namespace IOConnectBrowserPlatform {
121
153
  */
122
154
  metrics?: MetricDefinition[];
123
155
  }
124
-
156
+
125
157
  /**
126
158
  * Definition of an OpenTelemetry metric.
127
159
  */
@@ -259,6 +291,7 @@ export namespace IOConnectBrowserPlatform {
259
291
  preferred?: PreferredConnectionSettings;
260
292
  enableManualSwitching?: boolean;
261
293
  allowedClientFallbackOrigin?: string;
294
+ blockList?: string[];
262
295
  }
263
296
  }
264
297
 
@@ -384,6 +417,29 @@ export namespace IOConnectBrowserPlatform {
384
417
  clearOld?: boolean;
385
418
  }
386
419
 
420
+ /**
421
+ * Settings for configuring what stores to be pulled from **io.Manager**.
422
+ */
423
+ export interface ManagerFeatures {
424
+ /**
425
+ * If `true`, the library will pull the latest application definitions from **io.Manager**.
426
+ * @default true
427
+ */
428
+ applicationsStore?: boolean;
429
+
430
+ /**
431
+ * If `true`, the library will pull the latest layouts definitions from **io.Manager**.
432
+ * @default true
433
+ */
434
+ layoutsStore?: boolean;
435
+
436
+ /**
437
+ * If `true`, the library will pull the latest applications preferences from **io.Manager**.
438
+ * @default true
439
+ */
440
+ preferencesStore?: boolean;
441
+ }
442
+
387
443
  export interface Config {
388
444
  /**
389
445
  * URL pointing to **io.Manager**.
@@ -436,6 +492,11 @@ export namespace IOConnectBrowserPlatform {
436
492
  */
437
493
  tokenRefreshIntervalMS?: number;
438
494
 
495
+ /**
496
+ * Settings for configuring what stores to be pulled from **io.Manager**.
497
+ */
498
+ features?: ManagerFeatures
499
+
439
500
  /**
440
501
  * Deprecated. Use `requests.timeout` instead. Interval in milliseconds to wait for a response from **io.Manager**.
441
502
  * @default 10000
@@ -468,6 +529,21 @@ export namespace IOConnectBrowserPlatform {
468
529
  commandId: string;
469
530
  }
470
531
 
532
+ export namespace Widget {
533
+ export type DefaultConfig = Omit<IOBrowserWidget.Config, "enable">;
534
+
535
+ export interface Config {
536
+ sources: Sources;
537
+ defaultConfig?: DefaultConfig;
538
+ blockList?: string[];
539
+ }
540
+
541
+ export interface Sources {
542
+ bundle: string;
543
+ styles: string[];
544
+ }
545
+ }
546
+
471
547
  export interface Config {
472
548
  licenseKey: string;
473
549
  clientOnly?: boolean;
@@ -488,6 +564,7 @@ export namespace IOConnectBrowserPlatform {
488
564
  environment?: any;
489
565
  applicationPreferences?: Prefs.Config;
490
566
  otel?: Otel.Config;
567
+ widget?: Widget.Config;
491
568
  browserFactory?: (config?: IOConnectBrowser.Config) => Promise<IOConnectBrowser.API>;
492
569
  }
493
570
 
package/changelog.md CHANGED
@@ -1,3 +1,13 @@
1
+ 3.5.0
2
+ feat: io.CB 3.5
3
+ feat: Event methods in intents
4
+ feat: Block origins from platform config
5
+ feat: Multi channels
6
+ feat: New widget initialization + UIControllers in Platform and Client
7
+ feat: io.CB support granular io.Manager features configuration
8
+ feat: Add fdc3 channel dynamically
9
+ 3.4.11
10
+ fix: fixed an issue where the default window bounds were set, and app was started with 0 set bounds
1
11
  3.4.9
2
12
  feat: added support for channel leave by windowId
3
13
  feat: added support for window.onChannelsChanged