@adaptabletools/adaptable-plugin-openfin 22.0.1-canary.3 → 22.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-plugin-openfin",
3
- "version": "22.0.1-canary.3",
3
+ "version": "22.0.2",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
@@ -12,9 +12,7 @@
12
12
  "openfin-notifications": "^0.12.6",
13
13
  "react": "^18.0.0 || ^19.0.0",
14
14
  "react-redux": "^9.2.0",
15
- "rebass": "^3.2.2",
16
15
  "redux": "^5.0.1",
17
- "styled-components": "^4.4.1",
18
16
  "tslib": "^2.8.1"
19
17
  },
20
18
  "type": "module",
@@ -42,7 +42,7 @@ export function OnWorkbookSaved() {
42
42
  return _onWorkbookSaved;
43
43
  }
44
44
  export function isRunningInOpenfin() {
45
- return 'fin' in window && 'desktop' in fin;
45
+ return typeof window !== 'undefined' && 'fin' in window && 'desktop' in fin;
46
46
  }
47
47
  export function isExcelOpenfinLoaded() {
48
48
  return isRunningInOpenfin() && 'Excel' in fin.desktop;
@@ -1,3 +1,3 @@
1
1
  export function isRunningInOpenfin() {
2
- return 'fin' in window && 'desktop' in fin;
2
+ return typeof window !== 'undefined' && 'fin' in window && 'desktop' in fin;
3
3
  }
@@ -4,7 +4,7 @@ import { isRunningInOpenfin } from '../Utilities/isRunningInOpenfin';
4
4
  import * as React from 'react';
5
5
  import * as GeneralConstants from '@adaptabletools/adaptable/src/Utilities/Constants/GeneralConstants';
6
6
  import { StringExtensions } from '@adaptabletools/adaptable/src/Utilities/Extensions/StringExtensions';
7
- import { Flex } from 'rebass';
7
+ import { Flex } from '@adaptabletools/adaptable/src/components/Flex';
8
8
  import Dropdown from '@adaptabletools/adaptable/src/components/Dropdown';
9
9
  import { ButtonPause } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonPause';
10
10
  import { ButtonPlay } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonPlay';
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdaptablePlugin } from '@adaptabletools/adaptable';
1
+ import { AdaptablePlugin } from '@adaptabletools/adaptable/types';
2
2
  import * as Redux from 'redux';
3
3
  import { InternalState } from '@adaptabletools/adaptable/src/AdaptableState/InternalState';
4
4
  import { OpenFinApi } from '@adaptabletools/adaptable/src/Api/OpenFinApi';
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AdaptablePlugin } from '@adaptabletools/adaptable';
1
+ import { AdaptablePlugin } from '@adaptabletools/adaptable/types';
2
2
  import packageJson from '../package.json';
3
3
  import adaptableCorePackageJson from '@adaptabletools/adaptable/package.json';
4
4
  import * as ModuleConstants from '@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants';