grep-components 1.24.0-GREPF-2060.4 → 1.24.0-GREPF-2126.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/dist/components/ConfirmationDialog/index.d.ts +2 -4
- package/dist/components/DropdownMenu/index.d.ts +1 -2
- package/dist/components/GDPR/index.d.ts +2 -4
- package/dist/components/GrepDialog/index.d.ts +2 -4
- package/dist/components/GreyCover/index.d.ts +0 -1
- package/dist/index.js +73 -42
- package/dist/index.js.map +1 -1
- package/package.json +10 -11
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ConfirmationOptions } from './components/dialog';
|
|
3
|
-
export declare const ConfirmationServiceProvider: React.FC
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}>;
|
|
3
|
+
export declare const ConfirmationServiceProvider: React.FC;
|
|
6
4
|
export declare const useConfirmation: () => (options: ConfirmationOptions) => Promise<void>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MenuItemProps, MenuProps } from '@mui/material';
|
|
3
|
-
declare type BooleanFunction<T> = (context?: T) => boolean;
|
|
4
3
|
export declare type DropdownMenuItem<T> = Omit<MenuItemProps, 'disabled'> & {
|
|
5
4
|
label: string;
|
|
6
5
|
tooltipText?: string;
|
|
7
|
-
disabled?:
|
|
6
|
+
disabled?: boolean;
|
|
8
7
|
children?: Array<DropdownMenuItem<T>>;
|
|
9
8
|
handleClick?: (context?: T) => void;
|
|
10
9
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { GrepDialogOptions } from './dialog';
|
|
3
|
-
export declare const GrepDialogServiceProvider: React.FC
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}>;
|
|
3
|
+
export declare const GrepDialogServiceProvider: React.FC;
|
|
6
4
|
export declare const useGrepDialog: () => (options: GrepDialogOptions) => void;
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import LocalizedFormatPlugin from 'dayjs/plugin/localizedFormat';
|
|
|
4
4
|
import isBetweenPlugin from 'dayjs/plugin/isBetween';
|
|
5
5
|
import { red, pink, purple, deepPurple, indigo, blue, lightBlue, cyan, teal, green, lightGreen, lime, yellow, amber, orange, deepOrange, brown, grey, blueGrey } from '@mui/material/colors';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import React__default, { useRef, useContext,
|
|
7
|
+
import React__default, { useRef, useContext, createContext, createElement, Fragment, forwardRef, useMemo as useMemo$1, useState, useCallback as useCallback$1, useEffect, useLayoutEffect } from 'react';
|
|
8
8
|
import AccountCircle from '@mui/icons-material/AccountCircle';
|
|
9
9
|
import ArrowDropdown from '@mui/icons-material/ArrowDropDown';
|
|
10
10
|
import { Button, Box, Typography, IconButton, Menu, MenuItem, Tabs, Tab, Collapse, MenuList, Tooltip, Container, List, ListItem, ListItemText, ListItemIcon, Divider, ListItemButton, styled, TableCell, TableRow, TableSortLabel, TableHead, TablePagination, TableContainer, Table, TableBody, TableFooter, CircularProgress, Link, TextField, FormControl, InputLabel, Select, OutlinedInput, Input, Checkbox, FormHelperText, Grid, ToggleButtonGroup, AppBar as AppBar$1, Toolbar as Toolbar$1, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions } from '@mui/material';
|
|
@@ -552,7 +552,6 @@ function murmur2(str) {
|
|
|
552
552
|
|
|
553
553
|
var unitlessKeys = {
|
|
554
554
|
animationIterationCount: 1,
|
|
555
|
-
aspectRatio: 1,
|
|
556
555
|
borderImageOutset: 1,
|
|
557
556
|
borderImageSlice: 1,
|
|
558
557
|
borderImageWidth: 1,
|
|
@@ -651,7 +650,7 @@ var processStyleValue$1 = function processStyleValue(key, value) {
|
|
|
651
650
|
};
|
|
652
651
|
|
|
653
652
|
if (process.env.NODE_ENV !== 'production') {
|
|
654
|
-
var contentValuePattern = /(var|attr|counters?|url|
|
|
653
|
+
var contentValuePattern = /(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
655
654
|
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
|
|
656
655
|
var oldProcessStyleValue = processStyleValue$1;
|
|
657
656
|
var msPattern = /^-ms-/;
|
|
@@ -1311,7 +1310,6 @@ var RULESET = 'rule';
|
|
|
1311
1310
|
var DECLARATION = 'decl';
|
|
1312
1311
|
var IMPORT = '@import';
|
|
1313
1312
|
var KEYFRAMES = '@keyframes';
|
|
1314
|
-
var LAYER = '@layer';
|
|
1315
1313
|
|
|
1316
1314
|
/**
|
|
1317
1315
|
* @param {number}
|
|
@@ -1726,7 +1724,7 @@ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
1726
1724
|
// \0 }
|
|
1727
1725
|
case 0: case 125: scanning = 0;
|
|
1728
1726
|
// ;
|
|
1729
|
-
case 59 + offset:
|
|
1727
|
+
case 59 + offset:
|
|
1730
1728
|
if (property > 0 && (strlen(characters) - length))
|
|
1731
1729
|
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
|
1732
1730
|
break
|
|
@@ -1741,8 +1739,8 @@ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
1741
1739
|
parse$1(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
1742
1740
|
else
|
|
1743
1741
|
switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
1744
|
-
// d
|
|
1745
|
-
case 100: case
|
|
1742
|
+
// d m s
|
|
1743
|
+
case 100: case 109: case 115:
|
|
1746
1744
|
parse$1(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
|
|
1747
1745
|
break
|
|
1748
1746
|
default:
|
|
@@ -1861,7 +1859,6 @@ function serialize (children, callback) {
|
|
|
1861
1859
|
*/
|
|
1862
1860
|
function stringify (element, index, children, callback) {
|
|
1863
1861
|
switch (element.type) {
|
|
1864
|
-
case LAYER: if (element.children.length) break
|
|
1865
1862
|
case IMPORT: case DECLARATION: return element.return = element.return || element.value
|
|
1866
1863
|
case COMMENT: return ''
|
|
1867
1864
|
case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
|
|
@@ -2572,19 +2569,10 @@ function _extends() {
|
|
|
2572
2569
|
return _extends.apply(this, arguments);
|
|
2573
2570
|
}
|
|
2574
2571
|
|
|
2575
|
-
var isBrowser$1 = typeof document !== 'undefined';
|
|
2576
|
-
|
|
2577
|
-
var syncFallback = function syncFallback(create) {
|
|
2578
|
-
return create();
|
|
2579
|
-
};
|
|
2580
|
-
|
|
2581
|
-
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
|
|
2582
|
-
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
|
|
2583
|
-
|
|
2584
2572
|
var isBrowser = typeof document !== 'undefined';
|
|
2585
2573
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
2586
2574
|
|
|
2587
|
-
var EmotionCacheContext = /* #__PURE__ */
|
|
2575
|
+
var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
2588
2576
|
// because this module is primarily intended for the browser and node
|
|
2589
2577
|
// but it's also required in react native and similar environments sometimes
|
|
2590
2578
|
// and we could have a special build just for that
|
|
@@ -2626,7 +2614,7 @@ if (!isBrowser) {
|
|
|
2626
2614
|
cache = createCache({
|
|
2627
2615
|
key: 'css'
|
|
2628
2616
|
});
|
|
2629
|
-
return /*#__PURE__*/
|
|
2617
|
+
return /*#__PURE__*/createElement(EmotionCacheContext.Provider, {
|
|
2630
2618
|
value: cache
|
|
2631
2619
|
}, func(props, cache));
|
|
2632
2620
|
} else {
|
|
@@ -2636,12 +2624,24 @@ if (!isBrowser) {
|
|
|
2636
2624
|
};
|
|
2637
2625
|
}
|
|
2638
2626
|
|
|
2639
|
-
var ThemeContext = /* #__PURE__ */
|
|
2627
|
+
var ThemeContext = /* #__PURE__ */createContext({});
|
|
2640
2628
|
|
|
2641
2629
|
if (process.env.NODE_ENV !== 'production') {
|
|
2642
2630
|
ThemeContext.displayName = 'EmotionThemeContext';
|
|
2643
2631
|
}
|
|
2644
2632
|
|
|
2633
|
+
var isBrowser$1 = typeof document !== 'undefined';
|
|
2634
|
+
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : function useInsertionEffect(create) {
|
|
2635
|
+
create();
|
|
2636
|
+
};
|
|
2637
|
+
function useInsertionEffectMaybe(create) {
|
|
2638
|
+
if (!isBrowser$1) {
|
|
2639
|
+
return create();
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
useInsertionEffect(create);
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
2645
|
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
2646
2646
|
var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
|
|
2647
2647
|
|
|
@@ -2650,7 +2650,7 @@ var Insertion = function Insertion(_ref) {
|
|
|
2650
2650
|
serialized = _ref.serialized,
|
|
2651
2651
|
isStringTag = _ref.isStringTag;
|
|
2652
2652
|
registerStyles(cache, serialized, isStringTag);
|
|
2653
|
-
var rules =
|
|
2653
|
+
var rules = useInsertionEffectMaybe(function () {
|
|
2654
2654
|
return insertStyles(cache, serialized, isStringTag);
|
|
2655
2655
|
});
|
|
2656
2656
|
|
|
@@ -2665,7 +2665,7 @@ var Insertion = function Insertion(_ref) {
|
|
|
2665
2665
|
next = next.next;
|
|
2666
2666
|
}
|
|
2667
2667
|
|
|
2668
|
-
return /*#__PURE__*/
|
|
2668
|
+
return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
2669
2669
|
__html: rules
|
|
2670
2670
|
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
2671
2671
|
}
|
|
@@ -2692,7 +2692,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2692
2692
|
className = props.className + " ";
|
|
2693
2693
|
}
|
|
2694
2694
|
|
|
2695
|
-
var serialized = serializeStyles(registeredStyles, undefined,
|
|
2695
|
+
var serialized = serializeStyles(registeredStyles, undefined, useContext(ThemeContext));
|
|
2696
2696
|
|
|
2697
2697
|
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
|
2698
2698
|
var labelFromStack = props[labelPropName];
|
|
@@ -2713,11 +2713,11 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2713
2713
|
|
|
2714
2714
|
newProps.ref = ref;
|
|
2715
2715
|
newProps.className = className;
|
|
2716
|
-
return /*#__PURE__*/
|
|
2716
|
+
return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Insertion, {
|
|
2717
2717
|
cache: cache,
|
|
2718
2718
|
serialized: serialized,
|
|
2719
2719
|
isStringTag: typeof WrappedComponent === 'string'
|
|
2720
|
-
}), /*#__PURE__*/
|
|
2720
|
+
}), /*#__PURE__*/createElement(WrappedComponent, newProps));
|
|
2721
2721
|
});
|
|
2722
2722
|
|
|
2723
2723
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3124,9 +3124,13 @@ var CollapsableMenu = function (_a) {
|
|
|
3124
3124
|
};
|
|
3125
3125
|
|
|
3126
3126
|
var TooltipMenuItem = function (_a) {
|
|
3127
|
-
var children = _a.children, tooltipText = _a.tooltipText,
|
|
3127
|
+
var children = _a.children, tooltipText = _a.tooltipText,
|
|
3128
|
+
//disabled,
|
|
3129
|
+
props = __rest$1(_a, ["children", "tooltipText"]);
|
|
3128
3130
|
return (React__default.createElement(Tooltip, { title: tooltipText },
|
|
3129
|
-
React__default.createElement(MenuItem, __assign({ role: "menuitem",
|
|
3131
|
+
React__default.createElement(MenuItem, __assign({ role: "menuitem",
|
|
3132
|
+
//disabled={disabled}
|
|
3133
|
+
sx: { pointerEvents: 'inherit !important' } }, props), children)));
|
|
3130
3134
|
};
|
|
3131
3135
|
|
|
3132
3136
|
var useStyles$g = makeStyles()(function (_a, _b) {
|
|
@@ -3187,17 +3191,20 @@ var CollapsableMenuItem = function (_a) {
|
|
|
3187
3191
|
var onStatusChange = useCallback$1(function (type) { return new CollapsableMenuStatusEvent(type, listItemRef); }, [listItemRef]);
|
|
3188
3192
|
var expand = useCallback$1(function () {
|
|
3189
3193
|
var event = onStatusChange('expand');
|
|
3194
|
+
if (!event.defaultPrevented)
|
|
3195
|
+
console.log('expand');
|
|
3190
3196
|
!event.defaultPrevented && setOpen(true);
|
|
3191
3197
|
return !event.defaultPrevented;
|
|
3192
|
-
}, [onStatusChange
|
|
3198
|
+
}, [onStatusChange]);
|
|
3193
3199
|
var collapse = useCallback$1(function () {
|
|
3194
3200
|
var event = onStatusChange('collapse');
|
|
3195
3201
|
if (!event.defaultPrevented) {
|
|
3202
|
+
console.log('collapse');
|
|
3196
3203
|
setOpen(false);
|
|
3197
3204
|
requestAnimationFrame(function () { var _a; return (_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
3198
3205
|
}
|
|
3199
3206
|
return !event.defaultPrevented;
|
|
3200
|
-
}, [onStatusChange,
|
|
3207
|
+
}, [onStatusChange, listItemRef]);
|
|
3201
3208
|
var handleKey = function (e) {
|
|
3202
3209
|
if (items) {
|
|
3203
3210
|
switch (e.keyCode) {
|
|
@@ -3210,11 +3217,19 @@ var CollapsableMenuItem = function (_a) {
|
|
|
3210
3217
|
}
|
|
3211
3218
|
}
|
|
3212
3219
|
};
|
|
3213
|
-
|
|
3220
|
+
// const onToggleClick = useCallback(
|
|
3221
|
+
// (e: React.MouseEvent) => {
|
|
3222
|
+
// e.preventDefault();
|
|
3223
|
+
// e.stopPropagation();
|
|
3224
|
+
// open ? collapse() : expand();
|
|
3225
|
+
// },
|
|
3226
|
+
// [open, collapse, expand],
|
|
3227
|
+
// );
|
|
3228
|
+
var onToggleClick = function (e) {
|
|
3214
3229
|
e.preventDefault();
|
|
3215
3230
|
e.stopPropagation();
|
|
3216
3231
|
open ? collapse() : expand();
|
|
3217
|
-
}
|
|
3232
|
+
};
|
|
3218
3233
|
var onScrimClick = useCallback$1(function (e) {
|
|
3219
3234
|
var _a;
|
|
3220
3235
|
var scrimClick = !((_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target));
|
|
@@ -3222,6 +3237,7 @@ var CollapsableMenuItem = function (_a) {
|
|
|
3222
3237
|
}, [listItemRef, collapse]);
|
|
3223
3238
|
var handleClick = items ? onToggleClick : onClick;
|
|
3224
3239
|
useEffect(function () {
|
|
3240
|
+
console.log('scrim');
|
|
3225
3241
|
document.addEventListener('click', onScrimClick, { capture: true });
|
|
3226
3242
|
return function () { return document.removeEventListener('click', onScrimClick); };
|
|
3227
3243
|
}, [listItemRef, onScrimClick]);
|
|
@@ -3235,7 +3251,7 @@ var CollapsableMenuItem = function (_a) {
|
|
|
3235
3251
|
return window.dispatchEvent(new Event('resize'));
|
|
3236
3252
|
});
|
|
3237
3253
|
} }, items)))); };
|
|
3238
|
-
return tooltipText ? (React__default.createElement(TooltipMenuItem, { className: classes.root, tooltipText: tooltipText, onMouseOver: function (e) { return e.currentTarget.focus(); },
|
|
3254
|
+
return tooltipText ? (React__default.createElement(TooltipMenuItem, { sx: disabled && !items ? { cursor: 'not-allowed' } : {}, className: classes.root, tooltipText: tooltipText, onMouseOver: function (e) { return e.currentTarget.focus(); }, selected: open, onClick: handleClick, onKeyDown: handleKey }, renderInner())) : (React__default.createElement(MenuItem, __assign({ sx: disabled && !items ? { cursor: 'not-allowed' } : {}, className: classes.root, ref: listItemRef, selected: open, onClick: handleClick, onKeyDown: handleKey }, props), renderInner()));
|
|
3239
3255
|
};
|
|
3240
3256
|
|
|
3241
3257
|
var useStyles$f = makeStyles()(function (_a) {
|
|
@@ -3251,20 +3267,36 @@ var useStyles$f = makeStyles()(function (_a) {
|
|
|
3251
3267
|
var DropdownMenu = function (_a) {
|
|
3252
3268
|
var context = _a.context, menuItems = _a.menuItems, menuProps = __rest$1(_a, ["context", "menuItems"]);
|
|
3253
3269
|
var classes = useStyles$f().classes;
|
|
3254
|
-
var renderChild = function (level) {
|
|
3270
|
+
var renderChild = function (level, parentDisabled) {
|
|
3255
3271
|
if (level === void 0) { level = 0; }
|
|
3272
|
+
if (parentDisabled === void 0) { parentDisabled = false; }
|
|
3256
3273
|
// eslint-disable-next-line react/display-name
|
|
3257
3274
|
return function (item, index) {
|
|
3275
|
+
var _a;
|
|
3258
3276
|
var label = item.label, children = item.children, handleClick = item.handleClick, disabled = item.disabled, props = __rest$1(item, ["label", "children", "handleClick", "disabled"]);
|
|
3277
|
+
var itemOrParentDisabled = (_a = (parentDisabled || disabled)) !== null && _a !== void 0 ? _a : false;
|
|
3259
3278
|
props.key = "child-item-".concat(index);
|
|
3260
3279
|
props.classes = { selected: classes.selected };
|
|
3261
3280
|
// ninja way, since rewriting existing code on lpu and admin is daunting
|
|
3262
3281
|
props.onClick = function (e) {
|
|
3282
|
+
if (itemOrParentDisabled) {
|
|
3283
|
+
console.log('e.preventDefault()');
|
|
3284
|
+
e.preventDefault();
|
|
3285
|
+
e.stopPropagation();
|
|
3286
|
+
return;
|
|
3287
|
+
}
|
|
3263
3288
|
menuProps.onClose && menuProps.onClose(e, 'backdropClick');
|
|
3264
|
-
handleClick && handleClick(context);
|
|
3289
|
+
!itemOrParentDisabled && handleClick && handleClick(context);
|
|
3265
3290
|
};
|
|
3266
|
-
|
|
3267
|
-
|
|
3291
|
+
var style = !itemOrParentDisabled
|
|
3292
|
+
? { paddingLeft: "".concat(level * 0.5, "rem") }
|
|
3293
|
+
: {
|
|
3294
|
+
paddingLeft: "".concat(level * 0.5, "rem"),
|
|
3295
|
+
textDecoration: 'line-through',
|
|
3296
|
+
opacity: 0.5,
|
|
3297
|
+
};
|
|
3298
|
+
return (React__default.createElement(CollapsableMenuItem, __assign({ sx: itemOrParentDisabled && !children ? { cursor: 'not-allowed' } : {}, level: level, id: label, disabled: itemOrParentDisabled, items: children === null || children === void 0 ? void 0 : children.map(renderChild(level + 1, itemOrParentDisabled)) }, props),
|
|
3299
|
+
React__default.createElement("span", { style: style }, label)));
|
|
3268
3300
|
};
|
|
3269
3301
|
};
|
|
3270
3302
|
return (React__default.createElement(Menu, __assign({}, menuProps, { anchorOrigin: (menuProps === null || menuProps === void 0 ? void 0 : menuProps.anchorOrigin) || {
|
|
@@ -4059,14 +4091,13 @@ var useStyles$7 = makeStyles()(function (theme) {
|
|
|
4059
4091
|
});
|
|
4060
4092
|
});
|
|
4061
4093
|
|
|
4062
|
-
var GDPR = function (
|
|
4063
|
-
var children = _a.children;
|
|
4094
|
+
var GDPR = function (props) {
|
|
4064
4095
|
var classes = useStyles$7().classes;
|
|
4065
4096
|
return (React.createElement(Box, { className: classes.container },
|
|
4066
4097
|
React.createElement(Info, { className: classes.icon }),
|
|
4067
4098
|
React.createElement(Box, { className: classes.content },
|
|
4068
4099
|
React.createElement(Typography, { className: classes.title }, "Personlig informasjon og personvern"),
|
|
4069
|
-
React.createElement(Typography, { className: classes.body }, children))));
|
|
4100
|
+
React.createElement(Typography, { className: classes.body }, props.children))));
|
|
4070
4101
|
};
|
|
4071
4102
|
|
|
4072
4103
|
var GrepInput = function (_a) {
|
|
@@ -4839,7 +4870,7 @@ function invariant$1(condition, message) {
|
|
|
4839
4870
|
throw new Error(prefix$2);
|
|
4840
4871
|
}
|
|
4841
4872
|
var provided = typeof message === 'function' ? message() : message;
|
|
4842
|
-
var value = provided ?
|
|
4873
|
+
var value = provided ? prefix$2 + ": " + provided : prefix$2;
|
|
4843
4874
|
throw new Error(value);
|
|
4844
4875
|
}
|
|
4845
4876
|
|
|
@@ -10505,8 +10536,8 @@ function useHiddenTextElement(_ref2) {
|
|
|
10505
10536
|
var AppContext = React__default.createContext(null);
|
|
10506
10537
|
|
|
10507
10538
|
var peerDependencies = {
|
|
10508
|
-
react: "^16.8.5 || ^17.0.0
|
|
10509
|
-
"react-dom": "^16.8.5 || ^17.0.0
|
|
10539
|
+
react: "^16.8.5 || ^17.0.0",
|
|
10540
|
+
"react-dom": "^16.8.5 || ^17.0.0"
|
|
10510
10541
|
};
|
|
10511
10542
|
|
|
10512
10543
|
var semver = /(\d+)\.(\d+)\.(\d+)/;
|