@interopio/browser 3.0.3 → 3.0.5

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/browser.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable @typescript-eslint/no-empty-interface */
4
4
  import { UnsubscribeFunction } from "callback-registry";
5
5
  import { IOConnectCore } from "@interopio/core";
6
- import { Glue42 } from "@glue42/desktop";
6
+ import { IOConnectDesktop } from "@interopio/desktop";
7
7
  import { IOConnectWorkspaces } from "@interopio/workspaces-api";
8
8
  import { IOConnectSearch } from "@interopio/search-api";
9
9
 
@@ -11,7 +11,7 @@ import { IOConnectSearch } from "@interopio/search-api";
11
11
  * Factory function that creates a new ioconnect instance.
12
12
  * If your application is running in IOConnect Desktop this will return a Glue42.Glue API, which is a super-set of the IOConnectBrowser.API.
13
13
  */
14
- export type IOConnectBrowserFactoryFunction = (config?: IOConnectBrowser.Config) => Promise<IOConnectBrowser.API | Glue42.Glue>;
14
+ export type IOConnectBrowserFactoryFunction = (config?: IOConnectBrowser.Config) => Promise<IOConnectBrowser.API | IOConnectDesktop.API>;
15
15
  declare const IOConnectBrowserFactory: IOConnectBrowserFactoryFunction;
16
16
  export default IOConnectBrowserFactory;
17
17
 
@@ -100,7 +100,7 @@ export namespace IOConnectBrowser {
100
100
  /**
101
101
  * A list of io.Connect libraries which will be initiated internally and provide access to specific functionalities
102
102
  */
103
- libraries?: Array<(io: IOConnectBrowser.API, config?: IOConnectBrowser.Config | Glue42.Config) => Promise<void>>;
103
+ libraries?: Array<(io: IOConnectBrowser.API, config?: IOConnectBrowser.Config | IOConnectDesktop.Config) => Promise<void>>;
104
104
 
105
105
  /* Enable and configure Intents Resolver UI */
106
106
  intents?: IOConnectBrowser.Intents.Config;
@@ -443,7 +443,7 @@ export namespace IOConnectBrowser {
443
443
  * Checks whether Global Layouts are activated in the **io.Connect Browser** environment.
444
444
  */
445
445
  getGlobalTypeState(): Promise<{ activated: boolean }>;
446
-
446
+
447
447
  /**
448
448
  * Retrieves the default Global Layout, if any.
449
449
  */
@@ -1020,6 +1020,16 @@ export namespace IOConnectBrowser {
1020
1020
  errors: Array<{ app: string; error: string }>;
1021
1021
  }
1022
1022
 
1023
+ /**
1024
+ * Configuration for the `sandbox` attribute of the `<iframe>` element in which the app will be started when opened in a Workspace.
1025
+ */
1026
+ export interface WorkspacesSandbox {
1027
+ /**
1028
+ * Collection of flags that will be applied to the `<iframe>` element when the app is opened in a Workspace.
1029
+ */
1030
+ flags: string;
1031
+ }
1032
+
1023
1033
  export interface DefinitionDetails {
1024
1034
  url: string;
1025
1035
 
@@ -1046,6 +1056,11 @@ export namespace IOConnectBrowser {
1046
1056
  * @default 400
1047
1057
  */
1048
1058
  height?: number;
1059
+
1060
+ /**
1061
+ * Configuration for the `sandbox` attribute of the `<iframe>` element in which the app will be started when opened in a Workspace.
1062
+ */
1063
+ workspacesSandbox?: WorkspacesSandbox;
1049
1064
  }
1050
1065
 
1051
1066
  /**
@@ -1427,7 +1442,7 @@ export namespace IOConnectBrowser {
1427
1442
  applicationName: string;
1428
1443
 
1429
1444
  /* The title of the application which registered this intent implementation, as specified in the application configuration. */
1430
- applicationTitle: string;
1445
+ applicationTitle?: string;
1431
1446
 
1432
1447
  /* User friendly (longer) description of the application, as specified in the application configuration. */
1433
1448
  applicationDescription?: string;
package/changelog.md CHANGED
@@ -1,3 +1,5 @@
1
+ 3.0.4
2
+ chore: migrated @glue42/desktop to @interopio/desktop
1
3
  3.0.3
2
4
  chore: updated .d.ts information
3
5
  3.0.2
@@ -1193,7 +1193,7 @@ const setDefaultGlobalConfigDecoder = object({
1193
1193
  const intentsOperationTypesDecoder = oneOf(constant("findIntent"), constant("getIntents"), constant("raiseIntent"), constant("raise"));
1194
1194
  const intentHandlerDecoder = object({
1195
1195
  applicationName: nonEmptyStringDecoder,
1196
- applicationTitle: string(),
1196
+ applicationTitle: optional(string()),
1197
1197
  applicationDescription: optional(string()),
1198
1198
  applicationIcon: optional(string()),
1199
1199
  type: oneOf(constant("app"), constant("instance")),
@@ -4774,7 +4774,7 @@ class IoC {
4774
4774
  }
4775
4775
  }
4776
4776
 
4777
- var version$2 = "3.0.3";
4777
+ var version$2 = "3.0.5";
4778
4778
 
4779
4779
  const createFactoryFunction = (coreFactoryFunction) => {
4780
4780
  return (userConfig) => __awaiter$1(void 0, void 0, void 0, function* () {
@@ -8416,7 +8416,7 @@ var ContextMessageReplaySpec = {
8416
8416
  }
8417
8417
  };
8418
8418
 
8419
- var version = "6.0.3";
8419
+ var version = "6.0.4";
8420
8420
 
8421
8421
  function prepareConfig (configuration, ext, glue42gd) {
8422
8422
  var _a, _b, _c, _d;