@openfin/ui-library 0.1.14 → 0.1.15-alpha.1621453610

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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '@modulz/radix-icons/dist/types';
2
3
  /**
3
4
  * OVERRIDE!
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '@modulz/radix-icons/dist/types';
2
3
  /**
3
4
  * OpenFin Icon
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '@modulz/radix-icons/dist/types';
2
3
  /**
3
4
  * OpenFin Workspace Icon
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Color --
3
4
  * Color maps names to values.
@@ -1 +1 @@
1
- export declare function usePrevious<T>(value: T): T | undefined;
1
+ export declare const usePrevious: <T>(value: T) => T | undefined;
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.usePrevious = void 0;
4
4
  const react_1 = require("react");
5
- function usePrevious(value) {
5
+ const usePrevious = (value) => {
6
6
  const ref = react_1.useRef();
7
7
  react_1.useEffect(() => {
8
8
  ref.current = value;
9
9
  }, [value]);
10
10
  return ref.current;
11
- }
11
+ };
12
12
  exports.usePrevious = usePrevious;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfin/ui-library",
3
3
  "description": "OpenFin UI Component Library",
4
- "version": "0.1.14",
4
+ "version": "0.1.15-alpha.1621453610",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",