@finsemble/finsemble-core 8.0.0 → 8.0.1

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.
@@ -1,5 +1,6 @@
1
- // This line imports type declarations for Finsemble's globals such as FSBL and fdc3. You can ignore the warning that it is defined but never used.
2
- import * as Finsemble from "@finsemble/finsemble-core";
1
+ // This line imports type declarations for Finsemble's globals such as FSBL and fdc3. You can ignore any warnings that it is defined but never used.
2
+ // Please use global FSBL and fdc3 objects instead of importing from finsemble-core.
3
+ import { types } from "@finsemble/finsemble-core";
3
4
 
4
5
  const main = () => {
5
6
  console.log(
@@ -0,0 +1,18 @@
1
+ // This line imports type declarations for Finsemble's globals such as FSBL and fdc3. You can ignore the warning that it is defined but never used.
2
+ // Important! Please use the global FSBL and fdc3 objects. Do not import functionality from finsemble
3
+ import { types } from "@finsemble/finsemble-core";
4
+
5
+ const main = () => {
6
+ console.log(
7
+ "This is an empty Finsemble app template. Use this as the starting point for building a custom app or app service"
8
+ );
9
+ };
10
+
11
+ /**
12
+ * This initialization pattern is required in preloads. Do not call FSBL or fdc3 without waiting for this pattern.
13
+ */
14
+ if (window.FSBL && FSBL.addEventListener) {
15
+ FSBL.addEventListener("onReady", main);
16
+ } else {
17
+ window.addEventListener("FSBLReady", main);
18
+ }
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "main": "dist/lib/index.js",
30
30
  "module": "dist/lib/index.js",
31
31
  "types": "dist/lib/index.d.ts",
32
- "version": "8.0.0",
32
+ "version": "8.0.1",
33
33
  "bin": {
34
34
  "finsemble": "./bin/cli.cjs"
35
35
  },
@@ -114,7 +114,7 @@
114
114
  "dependencies": {
115
115
  "@apollo/client": "^3.6.9",
116
116
  "@finos/fdc3": "1.2.0",
117
- "@finsemble/finsemble-electron-adapter": "8.0.0",
117
+ "@finsemble/finsemble-electron-adapter": "8.0.1",
118
118
  "@q42/floating-focus-a11y": "^1.3.3",
119
119
  "@reduxjs/toolkit": "1.7.1",
120
120
  "@svgr/webpack": "6.2.1",