@pdg/react-table 1.0.56 → 1.0.57
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/dist/@util/table.d.ts +3 -3
- package/dist/InfoTable/InfoTable.style.d.ts +6 -41
- package/dist/Table/Table.styles.d.ts +2 -8
- package/dist/TableBodyRow/TableBodyRow.d.ts +2 -8
- package/dist/TableButton/TableButton.d.ts +1 -1
- package/dist/TableIcon/TableIcon.d.ts +1 -1
- package/dist/TableMenuButton/TableMenuButton.d.ts +1 -1
- package/dist/TableTopHead/TableTopHead.style.d.ts +2 -8
- package/dist/index.esm.js +57 -40
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +56 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/@util/table.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import { CommonSxProps } from '../@types';
|
|
|
3
3
|
import { TypographyProps } from '@mui/material';
|
|
4
4
|
export declare function getTableColumnAlign(column: TableColumn, defaultAlign: TableColumn['align']): TableColumn['align'];
|
|
5
5
|
export declare function combineSx(...sx: (boolean | CommonSxProps['sx'])[]): CommonSxProps['sx'];
|
|
6
|
-
export declare function typographyColorToSxColor(color: TypographyProps['color']): string | (string[] | import("csstype").Property.Color | null | undefined)[] | {
|
|
7
|
-
[key: string]: string[] | import("csstype").Property.Color | null | undefined;
|
|
8
|
-
} | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string[] | import("csstype").Property.Color | undefined>) | undefined;
|
|
6
|
+
export declare function typographyColorToSxColor(color: TypographyProps['color']): string | readonly string[] | (readonly string[] | import("csstype").Property.Color | null | undefined)[] | {
|
|
7
|
+
[key: string]: readonly string[] | import("csstype").Property.Color | null | undefined;
|
|
8
|
+
} | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.Color | undefined>) | undefined;
|
|
@@ -1,48 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
component?: import("react").ElementType<any> | undefined;
|
|
5
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
6
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
7
|
-
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
2
|
+
export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
3
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
-
}, ("
|
|
10
|
-
export declare const ValueWrap: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
11
|
-
children?: import("react").ReactNode;
|
|
12
|
-
component?: import("react").ElementType<any> | undefined;
|
|
13
|
-
ref?: import("react").Ref<unknown> | undefined;
|
|
14
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
-
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const ValueWrap: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
6
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
-
}, ("
|
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
18
8
|
export declare const Value: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
9
|
export declare const ValueEllipsis: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
10
|
export declare const ValueClipboard: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
|
-
export declare const ClipboardIconButton: import("@emotion/styled").StyledComponent<{
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
24
|
-
color?: "inherit" | "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | undefined;
|
|
25
|
-
disabled?: boolean | undefined;
|
|
26
|
-
disableFocusRipple?: boolean | undefined;
|
|
27
|
-
edge?: false | "end" | "start" | undefined;
|
|
28
|
-
size?: "small" | "medium" | "large" | undefined;
|
|
29
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
30
|
-
} & Omit<{
|
|
31
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
32
|
-
centerRipple?: boolean | undefined;
|
|
33
|
-
children?: import("react").ReactNode;
|
|
34
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
35
|
-
disabled?: boolean | undefined;
|
|
36
|
-
disableRipple?: boolean | undefined;
|
|
37
|
-
disableTouchRipple?: boolean | undefined;
|
|
38
|
-
focusRipple?: boolean | undefined;
|
|
39
|
-
focusVisibleClassName?: string | undefined;
|
|
40
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
41
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
42
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
43
|
-
tabIndex?: number | undefined;
|
|
44
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
45
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
46
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
11
|
+
export declare const ClipboardIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
47
12
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
48
|
-
}, "
|
|
13
|
+
}, "style" | "className" | "tabIndex" | "color" | "children" | "sx" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "size"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").TableRowClasses> | undefined;
|
|
5
|
-
hover?: boolean | undefined;
|
|
6
|
-
selected?: boolean | undefined;
|
|
7
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof import("react").HTMLAttributes<HTMLTableRowElement>> & {
|
|
2
|
+
export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
|
|
9
3
|
ref?: ((instance: HTMLTableRowElement | null) => void) | import("react").RefObject<HTMLTableRowElement> | null | undefined;
|
|
10
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
5
|
export declare const StyledNoDataDiv: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableBodyRowProps as Props } from './TableBodyRow.types';
|
|
3
|
-
export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
classes?: Partial<import("@mui/material").TableRowClasses> | undefined;
|
|
6
|
-
hover?: boolean | undefined;
|
|
7
|
-
selected?: boolean | undefined;
|
|
8
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof React.HTMLAttributes<HTMLTableRowElement>> & {
|
|
3
|
+
export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
|
|
10
4
|
ref?: ((instance: HTMLTableRowElement | null) => void) | React.RefObject<HTMLTableRowElement> | null | undefined;
|
|
11
|
-
},
|
|
5
|
+
}, "className" | "style" | "classes" | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
12
6
|
declare const TableBodyRow: React.FC<Props>;
|
|
13
7
|
export default TableBodyRow;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableButtonProps as Props } from './TableButton.types';
|
|
3
|
-
declare const TableButton: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const TableButton: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export default TableButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableIconProps as Props } from './TableIcon.types';
|
|
3
|
-
declare const TableIcon: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const TableIcon: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
4
4
|
export default TableIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableMenuButtonProps as Props } from './TableMenuButton.types';
|
|
3
|
-
declare const TableMenuButton: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const TableMenuButton: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export default TableMenuButton;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const TableTopHeadCaptionRow: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").TableRowClasses> | undefined;
|
|
5
|
-
hover?: boolean | undefined;
|
|
6
|
-
selected?: boolean | undefined;
|
|
7
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof import("react").HTMLAttributes<HTMLTableRowElement>> & {
|
|
2
|
+
export declare const TableTopHeadCaptionRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
|
|
9
3
|
ref?: ((instance: HTMLTableRowElement | null) => void) | import("react").RefObject<HTMLTableRowElement> | null | undefined;
|
|
10
|
-
},
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as React from'react';import React__default,{
|
|
1
|
+
import*as React from'react';import React__default,{useRef,useState,useCallback,useEffect,isValidElement,createRef,cloneElement,PureComponent,createContext,useContext,useMemo,useLayoutEffect,useId}from'react';import {styled,TableRow,lighten,TableCell,Box,Checkbox,Tooltip,Stack,Pagination,useTheme,TableHead,TableBody,Icon,TableFooter,Paper,Table as Table$1,Grid,Button,Popper,Grow,ClickAwayListener,IconButton}from'@mui/material';import {findDOMNode}from'react-dom';import {useSortable,sortableKeyboardCoordinates,arrayMove,SortableContext,verticalListSortingStrategy}from'@dnd-kit/sortable';import dayjs from'dayjs';import {useSensors,useSensor,MouseSensor,TouchSensor,KeyboardSensor,DndContext,closestCenter}from'@dnd-kit/core';import {Search,SearchGroup,FormHidden}from'@pdg/react-form';/******************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -62,39 +62,57 @@ function getDefaultExportFromCjs (x) {
|
|
|
62
62
|
|
|
63
63
|
var hasOwn = {}.hasOwnProperty;
|
|
64
64
|
|
|
65
|
-
function classNames() {
|
|
66
|
-
var classes =
|
|
65
|
+
function classNames () {
|
|
66
|
+
var classes = '';
|
|
67
67
|
|
|
68
68
|
for (var i = 0; i < arguments.length; i++) {
|
|
69
69
|
var arg = arguments[i];
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
var argType = typeof arg;
|
|
73
|
-
|
|
74
|
-
if (argType === 'string' || argType === 'number') {
|
|
75
|
-
classes.push(arg);
|
|
76
|
-
} else if (Array.isArray(arg)) {
|
|
77
|
-
if (arg.length) {
|
|
78
|
-
var inner = classNames.apply(null, arg);
|
|
79
|
-
if (inner) {
|
|
80
|
-
classes.push(inner);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
} else if (argType === 'object') {
|
|
84
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
85
|
-
classes.push(arg.toString());
|
|
86
|
-
continue;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
for (var key in arg) {
|
|
90
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
91
|
-
classes.push(key);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
70
|
+
if (arg) {
|
|
71
|
+
classes = appendClass(classes, parseValue(arg));
|
|
94
72
|
}
|
|
95
73
|
}
|
|
96
74
|
|
|
97
|
-
return classes
|
|
75
|
+
return classes;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function parseValue (arg) {
|
|
79
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
80
|
+
return arg;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (typeof arg !== 'object') {
|
|
84
|
+
return '';
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (Array.isArray(arg)) {
|
|
88
|
+
return classNames.apply(null, arg);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
92
|
+
return arg.toString();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
var classes = '';
|
|
96
|
+
|
|
97
|
+
for (var key in arg) {
|
|
98
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
99
|
+
classes = appendClass(classes, key);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return classes;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function appendClass (value, newClass) {
|
|
107
|
+
if (!newClass) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (value) {
|
|
112
|
+
return value + ' ' + newClass;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return value + newClass;
|
|
98
116
|
}
|
|
99
117
|
|
|
100
118
|
if (module.exports) {
|
|
@@ -2246,16 +2264,18 @@ function throttle(func, wait, options) {
|
|
|
2246
2264
|
|
|
2247
2265
|
var throttle_1 = throttle;
|
|
2248
2266
|
|
|
2249
|
-
var throttle$1 = /*@__PURE__*/getDefaultExportFromCjs(throttle_1);/* global Reflect, Promise */
|
|
2267
|
+
var throttle$1 = /*@__PURE__*/getDefaultExportFromCjs(throttle_1);/* global Reflect, Promise, SuppressedError, Symbol */
|
|
2250
2268
|
|
|
2251
2269
|
var extendStatics = function(d, b) {
|
|
2252
2270
|
extendStatics = Object.setPrototypeOf ||
|
|
2253
2271
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2254
|
-
function (d, b) { for (var p in b) if (
|
|
2272
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2255
2273
|
return extendStatics(d, b);
|
|
2256
2274
|
};
|
|
2257
2275
|
|
|
2258
2276
|
function __extends(d, b) {
|
|
2277
|
+
if (typeof b !== "function" && b !== null)
|
|
2278
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2259
2279
|
extendStatics(d, b);
|
|
2260
2280
|
function __() { this.constructor = d; }
|
|
2261
2281
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -2282,7 +2302,12 @@ function __rest(s, e) {
|
|
|
2282
2302
|
t[p[i]] = s[p[i]];
|
|
2283
2303
|
}
|
|
2284
2304
|
return t;
|
|
2285
|
-
}
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2308
|
+
var e = new Error(message);
|
|
2309
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2310
|
+
};var patchResizeCallback = function (resizeCallback, refreshMode, refreshRate, refreshOptions) {
|
|
2286
2311
|
switch (refreshMode) {
|
|
2287
2312
|
case 'debounce':
|
|
2288
2313
|
return debounce$2(resizeCallback, refreshRate, refreshOptions);
|
|
@@ -2498,14 +2523,6 @@ var isDOMElement = function (element) {
|
|
|
2498
2523
|
}, [refElement]);
|
|
2499
2524
|
// adding `current` to make it compatible with useRef shape
|
|
2500
2525
|
onRefChange.current = refElement;
|
|
2501
|
-
useEffect(function () {
|
|
2502
|
-
return function () {
|
|
2503
|
-
// component is unmounted
|
|
2504
|
-
// clear ref to avoid memory leaks
|
|
2505
|
-
setRefElement(null);
|
|
2506
|
-
onRefChange.current = null;
|
|
2507
|
-
};
|
|
2508
|
-
}, []);
|
|
2509
2526
|
var shouldSetSize = useCallback(function (prevSize, nextSize) {
|
|
2510
2527
|
if (prevSize.width === nextSize.width && prevSize.height === nextSize.height) {
|
|
2511
2528
|
// skip if dimensions haven't changed
|
|
@@ -3171,7 +3188,7 @@ for (let i = 0; i < 256; ++i) {
|
|
|
3171
3188
|
function unsafeStringify(arr, offset = 0) {
|
|
3172
3189
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
3173
3190
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
3174
|
-
return
|
|
3191
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
3175
3192
|
}const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
3176
3193
|
var native = {
|
|
3177
3194
|
randomUUID
|