@openfin/ui-library 0.22.0 → 0.23.0-alpha.1695920750

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.
@@ -6,7 +6,7 @@
6
6
  * @returns A number in the range [min, max]
7
7
  * @type Number
8
8
  */
9
- export declare const clamp: (num: number, min?: number, max?: number) => number;
9
+ export declare const clamp: (num: number, min: number | undefined, max: number | undefined) => number;
10
10
  /**
11
11
  * Generates a random integer.
12
12
  */
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,5 @@
1
+ export type DeepPartial<T> = {
2
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
3
+ } & {
4
+ [key: string]: unknown;
5
+ };
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.22.0",
4
+ "version": "0.23.0-alpha.1695920750",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",