@openfin/ui-library 0.23.11 → 0.23.12-alpha.1708023891

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.
@@ -14,6 +14,15 @@ object-assign
14
14
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
15
15
  */
16
16
 
17
+ /**
18
+ * @license
19
+ * Lodash <https://lodash.com/>
20
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
21
+ * Released under MIT license <https://lodash.com/license>
22
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
23
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
24
+ */
25
+
17
26
  /** @license React v17.0.2
18
27
  * react-jsx-runtime.production.min.js
19
28
  *
@@ -1,5 +1,3 @@
1
1
  export type DeepPartial<T> = {
2
2
  [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
3
- } & {
4
- [key: string]: unknown;
5
- };
3
+ } | T;
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.23.11",
4
+ "version": "0.23.12-alpha.1708023891",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",
@@ -30,6 +30,7 @@
30
30
  "@modulz/radix-icons": "=>4.0.0 <5.0.0",
31
31
  "focus-trap-react": "=>10.0.1 <11.0.0",
32
32
  "framer-motion": "=>4.1.5 <7.0.0",
33
+ "lodash.merge": "^4.6.2",
33
34
  "react": "=>17.0.1 <18.0.0",
34
35
  "react-calendar": "=>4.0.0 <5.0.0",
35
36
  "react-dom": "=>17.0.1 <18.0.0",
@@ -51,7 +52,7 @@
51
52
  "@testing-library/react": "^12.1.5",
52
53
  "@testing-library/user-event": "^14.2.1",
53
54
  "@types/jest": "^28.1.3",
54
- "@types/lodash.defaultsdeep": "^4.6.7",
55
+ "@types/lodash.merge": "^4.6.2",
55
56
  "@types/node": "^18.15.12",
56
57
  "@types/react": "^17.0.3",
57
58
  "@types/react-calendar": "^3.9.0",
@@ -71,8 +72,9 @@
71
72
  "eslint-plugin-react": "^7.32.2",
72
73
  "file-loader": "^6.2.0",
73
74
  "identity-obj-proxy": "^3.0.0",
74
- "jest": "^28.1.2",
75
- "jest-environment-jsdom": "^28.1.2",
75
+ "jest": "^29.7.0",
76
+ "jest-environment-jsdom": "^29.7.0",
77
+ "jest-transform-stub": "^2.0.0",
76
78
  "postcss-styled-syntax": "^0.4.0",
77
79
  "prettier": "^2.8.8",
78
80
  "react-is": "^17.0.2",
@@ -82,7 +84,7 @@
82
84
  "storybook-addon-performance": "^0.17.1",
83
85
  "stylelint": "^15.10.1",
84
86
  "stylelint-config-recommended": "^12.0.0",
85
- "ts-jest": "^28.0.5",
87
+ "ts-jest": "^29.1.2",
86
88
  "ts-loader": "^9.3.1",
87
89
  "typescript": "^5.0.4",
88
90
  "webpack": "^5.82.1",
@@ -173,6 +175,9 @@
173
175
  "moduleNameMapper": {
174
176
  "\\.(css)$": "<rootDir>/src/test/mocks/styleMock.js"
175
177
  },
178
+ "transform": {
179
+ ".+\\.(ttf|woff|woff2)$": "jest-transform-stub"
180
+ },
176
181
  "testEnvironment": "jsdom",
177
182
  "testMatch": [
178
183
  "<rootDir>/src/**/*.test.tsx",
@@ -1,19 +0,0 @@
1
- import { FlattenSimpleInterpolation } from 'styled-components';
2
- /**
3
- * ThemeProvider Configuration
4
- */
5
- export type ConfigurationType = CDNFontConfig | ImportFontConfig;
6
- /**
7
- * Custom import and handling for font loading.
8
- */
9
- export type ImportFontConfig = {
10
- fontLoading: 'import';
11
- fontCss: FlattenSimpleInterpolation;
12
- };
13
- /**
14
- * Use fonts from the Openfin CDN.
15
- */
16
- export type CDNFontConfig = {
17
- fontLoading: 'cdn';
18
- };
19
- export declare const Configuration: ConfigurationType;
@@ -1 +0,0 @@
1
- export * from './lang';
@@ -1,16 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { Palette } from '../../system/ThemeProvider/lib/palette';
3
- export type LangProps = {
4
- isLocalized?: boolean;
5
- color?: keyof typeof Palette;
6
- title?: string;
7
- children: ReactNode;
8
- };
9
- /**
10
- * ## Text
11
- *
12
- * @example <Text>Okay Cool</Text>
13
- * <Text size="small">Okay Cool</Text>
14
- * <Text weight="bold">Okay Cool</Text>
15
- */
16
- export declare const Lang: React.FC<LangProps>;
@@ -1,9 +0,0 @@
1
- import { RenderOptions } from '@testing-library/react';
2
- import { ReactElement } from 'react';
3
- /**
4
- * Extending `render` to include the ThemeProvider ThemeProvider
5
- * This helps test runs rendering components find the corresponding theme values
6
- */
7
- declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, 'queries'>) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
8
- export * from '@testing-library/react';
9
- export { customRender as render };