@interopio/groups-ui-react 2.5.0 → 2.6.1
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/cjs/index.js +133 -223
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +146 -236
- package/dist/esm/index.js.map +1 -1
- package/dist/styles/groups.css +17 -29
- package/dist/styles/vars.css +8 -5
- package/package.json +5 -4
- package/dist/GroupElementCreationWrapper.d.ts +0 -49
- package/dist/GroupWrapper.d.ts +0 -9
- package/dist/Portal.d.ts +0 -6
- package/dist/cjs/defaultComponents/channelSelector/multi/ColorRectangle.d.ts +0 -7
- package/dist/defaultComponents/BaseButton.d.ts +0 -4
- package/dist/defaultComponents/CloseButton.d.ts +0 -4
- package/dist/defaultComponents/ExtractButton.d.ts +0 -4
- package/dist/defaultComponents/MaximizeButton.d.ts +0 -4
- package/dist/defaultComponents/MinimizeButton.d.ts +0 -4
- package/dist/defaultComponents/RestoreButton.d.ts +0 -4
- package/dist/defaultComponents/Tab.d.ts +0 -4
- package/dist/defaultComponents/TabCaption.d.ts +0 -4
- package/dist/defaultComponents/TabCloseButton.d.ts +0 -4
- package/dist/defaultComponents/TabHeaderButtons.d.ts +0 -4
- package/dist/defaultComponents/channelSelector/BaseChannelSelector.d.ts +0 -4
- package/dist/defaultComponents/channelSelector/FrameChannelSelector.d.ts +0 -4
- package/dist/defaultComponents/channelSelector/TabChannelSelector.d.ts +0 -4
- package/dist/defaultComponents/channelSelector/utils.d.ts +0 -1
- package/dist/defaultComponents/frameCaptionBar/FrameButtons.d.ts +0 -4
- package/dist/defaultComponents/frameCaptionBar/FrameCaption.d.ts +0 -4
- package/dist/defaultComponents/frameCaptionBar/FrameCaptionBar.d.ts +0 -4
- package/dist/defaultComponents/frameCaptionBar/FrameMoveArea.d.ts +0 -4
- package/dist/defaultComponents/groupCaptionBar/GroupButtons.d.ts +0 -4
- package/dist/defaultComponents/groupCaptionBar/GroupCaption.d.ts +0 -4
- package/dist/defaultComponents/groupCaptionBar/GroupCaptionBar.d.ts +0 -4
- package/dist/defaultComponents/groupCaptionBar/GroupMoveArea.d.ts +0 -4
- package/dist/esm/defaultComponents/channelSelector/multi/ColorRectangle.d.ts +0 -7
- package/dist/index.d.ts +0 -27
- package/dist/index.js +0 -16
- package/dist/index.js.map +0 -1
- package/dist/styles/fonts.css +0 -2
- package/dist/styles/styles.css +0 -574
- package/dist/styles/themes.css +0 -155
- package/dist/types/internal.d.ts +0 -373
- package/dist/webGroupsManager.d.ts +0 -35
package/dist/cjs/index.js
CHANGED
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
|
|
401
401
|
if (reducedHexMatch) {
|
|
402
402
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
403
|
-
return [...arr.slice(0, 3).map(x => parseInt(r
|
|
403
|
+
return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
const hexMatch = hexRegex.exec(normalizedColor);
|
|
@@ -471,11 +471,11 @@
|
|
|
471
471
|
return `#${result}`;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
const r
|
|
474
|
+
const r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');
|
|
475
475
|
|
|
476
|
-
const reducedHexRegex = new RegExp(`^#${r
|
|
477
|
-
const hexRegex = new RegExp(`^#${r
|
|
478
|
-
const rgbaRegex = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r
|
|
476
|
+
const reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');
|
|
477
|
+
const hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');
|
|
478
|
+
const rgbaRegex = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(',\\s*(\\d+)\\s*', 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, 'i');
|
|
479
479
|
const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
|
|
480
480
|
const namedColorRegex = /^[a-z]+$/i;
|
|
481
481
|
|
|
@@ -1988,246 +1988,156 @@
|
|
|
1988
1988
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
|
-
function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=React__default["default"].useState,m=React__default["default"].useEffect,n=React__default["default"].useLayoutEffect,p=React__default["default"].useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
|
|
1992
|
-
function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;var useSyncExternalStore=void 0!==React__default["default"].useSyncExternalStore?React__default["default"].useSyncExternalStore:u;
|
|
1993
|
-
|
|
1994
|
-
var useSyncExternalStoreShim_production_min = {
|
|
1995
|
-
useSyncExternalStore: useSyncExternalStore
|
|
1996
|
-
};
|
|
1997
|
-
|
|
1998
|
-
var useSyncExternalStoreShim_development = createCommonjsModule(function (module, exports) {
|
|
1999
|
-
|
|
2000
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2001
|
-
(function() {
|
|
2002
|
-
|
|
2003
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
2004
|
-
if (
|
|
2005
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
2006
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
2007
|
-
'function'
|
|
2008
|
-
) {
|
|
2009
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2010
|
-
}
|
|
2011
|
-
var React = React__default["default"];
|
|
2012
|
-
|
|
2013
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2014
|
-
|
|
2015
|
-
function error(format) {
|
|
2016
|
-
{
|
|
2017
|
-
{
|
|
2018
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2019
|
-
args[_key2 - 1] = arguments[_key2];
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
printWarning('error', format, args);
|
|
2023
|
-
}
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
function printWarning(level, format, args) {
|
|
2028
|
-
// When changing this logic, you might want to also
|
|
2029
|
-
// update consoleWithStackDev.www.js as well.
|
|
2030
|
-
{
|
|
2031
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2032
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
2033
|
-
|
|
2034
|
-
if (stack !== '') {
|
|
2035
|
-
format += '%s';
|
|
2036
|
-
args = args.concat([stack]);
|
|
2037
|
-
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
var argsWithFormat = args.map(function (item) {
|
|
2041
|
-
return String(item);
|
|
2042
|
-
}); // Careful: RN currently depends on this prefix
|
|
2043
|
-
|
|
2044
|
-
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
2045
|
-
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
2046
|
-
// eslint-disable-next-line react-internal/no-production-logging
|
|
2047
|
-
|
|
2048
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
/**
|
|
2053
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
2054
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
2055
|
-
*/
|
|
2056
1991
|
function is(x, y) {
|
|
2057
|
-
return x === y && (
|
|
2058
|
-
;
|
|
1992
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2059
1993
|
}
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
// will need to track that themselves and return the correct value
|
|
2084
|
-
// from `getSnapshot`.
|
|
2085
|
-
getServerSnapshot) {
|
|
2086
|
-
{
|
|
2087
|
-
if (!didWarnOld18Alpha) {
|
|
2088
|
-
if (React.startTransition !== undefined) {
|
|
2089
|
-
didWarnOld18Alpha = true;
|
|
2090
|
-
|
|
2091
|
-
error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.');
|
|
2092
|
-
}
|
|
2093
|
-
}
|
|
2094
|
-
} // Read the current snapshot from the store on every render. Again, this
|
|
2095
|
-
// breaks the rules of React, and only works here because of specific
|
|
2096
|
-
// implementation details, most importantly that updates are
|
|
2097
|
-
// always synchronous.
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
var value = getSnapshot();
|
|
2101
|
-
|
|
2102
|
-
{
|
|
2103
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
2104
|
-
var cachedValue = getSnapshot();
|
|
2105
|
-
|
|
2106
|
-
if (!objectIs(value, cachedValue)) {
|
|
2107
|
-
error('The result of getSnapshot should be cached to avoid an infinite loop');
|
|
2108
|
-
|
|
2109
|
-
didWarnUncachedGetSnapshot = true;
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
} // Because updates are synchronous, we don't queue them. Instead we force a
|
|
2113
|
-
// re-render whenever the subscribed state changes by updating an some
|
|
2114
|
-
// arbitrary useState hook. Then, during render, we call getSnapshot to read
|
|
2115
|
-
// the current value.
|
|
2116
|
-
//
|
|
2117
|
-
// Because we don't actually use the state returned by the useState hook, we
|
|
2118
|
-
// can save a bit of memory by storing other stuff in that slot.
|
|
2119
|
-
//
|
|
2120
|
-
// To implement the early bailout, we need to track some things on a mutable
|
|
2121
|
-
// object. Usually, we would put that in a useRef hook, but we can stash it in
|
|
2122
|
-
// our useState hook instead.
|
|
2123
|
-
//
|
|
2124
|
-
// To force a re-render, we call forceUpdate({inst}). That works because the
|
|
2125
|
-
// new object always fails an equality check.
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
var _useState = useState({
|
|
2129
|
-
inst: {
|
|
2130
|
-
value: value,
|
|
2131
|
-
getSnapshot: getSnapshot
|
|
2132
|
-
}
|
|
2133
|
-
}),
|
|
2134
|
-
inst = _useState[0].inst,
|
|
2135
|
-
forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
|
|
2136
|
-
// in the layout phase so we can access it during the tearing check that
|
|
2137
|
-
// happens on subscribe.
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
useLayoutEffect(function () {
|
|
2141
|
-
inst.value = value;
|
|
2142
|
-
inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
|
|
2143
|
-
// commit phase if there was an interleaved mutation. In concurrent mode
|
|
2144
|
-
// this can happen all the time, but even in synchronous mode, an earlier
|
|
2145
|
-
// effect may have mutated the store.
|
|
2146
|
-
|
|
2147
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
2148
|
-
// Force a re-render.
|
|
2149
|
-
forceUpdate({
|
|
2150
|
-
inst: inst
|
|
2151
|
-
});
|
|
2152
|
-
}
|
|
2153
|
-
}, [subscribe, value, getSnapshot]);
|
|
2154
|
-
useEffect(function () {
|
|
2155
|
-
// Check for changes right before subscribing. Subsequent changes will be
|
|
2156
|
-
// detected in the subscription handler.
|
|
2157
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
2158
|
-
// Force a re-render.
|
|
2159
|
-
forceUpdate({
|
|
2160
|
-
inst: inst
|
|
1994
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
1995
|
+
useState = React__default["default"].useState,
|
|
1996
|
+
useEffect = React__default["default"].useEffect,
|
|
1997
|
+
useLayoutEffect = React__default["default"].useLayoutEffect,
|
|
1998
|
+
useDebugValue = React__default["default"].useDebugValue;
|
|
1999
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
2000
|
+
var value = getSnapshot(),
|
|
2001
|
+
_useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
|
|
2002
|
+
inst = _useState[0].inst,
|
|
2003
|
+
forceUpdate = _useState[1];
|
|
2004
|
+
useLayoutEffect(
|
|
2005
|
+
function () {
|
|
2006
|
+
inst.value = value;
|
|
2007
|
+
inst.getSnapshot = getSnapshot;
|
|
2008
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
2009
|
+
},
|
|
2010
|
+
[subscribe, value, getSnapshot]
|
|
2011
|
+
);
|
|
2012
|
+
useEffect(
|
|
2013
|
+
function () {
|
|
2014
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
2015
|
+
return subscribe(function () {
|
|
2016
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
2161
2017
|
});
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
// TODO: Because there is no cross-renderer API for batching updates, it's
|
|
2166
|
-
// up to the consumer of this library to wrap their subscription event
|
|
2167
|
-
// with unstable_batchedUpdates. Should we try to detect when this isn't
|
|
2168
|
-
// the case and print a warning in development?
|
|
2169
|
-
// The store changed. Check if the snapshot changed since the last time we
|
|
2170
|
-
// read from the store.
|
|
2171
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
2172
|
-
// Force a re-render.
|
|
2173
|
-
forceUpdate({
|
|
2174
|
-
inst: inst
|
|
2175
|
-
});
|
|
2176
|
-
}
|
|
2177
|
-
}; // Subscribe to the store and return a clean-up function.
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
return subscribe(handleStoreChange);
|
|
2181
|
-
}, [subscribe]);
|
|
2018
|
+
},
|
|
2019
|
+
[subscribe]
|
|
2020
|
+
);
|
|
2182
2021
|
useDebugValue(value);
|
|
2183
2022
|
return value;
|
|
2184
2023
|
}
|
|
2185
|
-
|
|
2186
2024
|
function checkIfSnapshotChanged(inst) {
|
|
2187
2025
|
var latestGetSnapshot = inst.getSnapshot;
|
|
2188
|
-
|
|
2189
|
-
|
|
2026
|
+
inst = inst.value;
|
|
2190
2027
|
try {
|
|
2191
2028
|
var nextValue = latestGetSnapshot();
|
|
2192
|
-
return !objectIs(
|
|
2029
|
+
return !objectIs(inst, nextValue);
|
|
2193
2030
|
} catch (error) {
|
|
2194
|
-
return
|
|
2031
|
+
return !0;
|
|
2195
2032
|
}
|
|
2196
2033
|
}
|
|
2197
|
-
|
|
2198
|
-
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
2199
|
-
// Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
2200
|
-
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
2201
|
-
// will need to track that themselves and return the correct value
|
|
2202
|
-
// from `getSnapshot`.
|
|
2034
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
2203
2035
|
return getSnapshot();
|
|
2204
2036
|
}
|
|
2037
|
+
var shim$1 =
|
|
2038
|
+
"undefined" === typeof window ||
|
|
2039
|
+
"undefined" === typeof window.document ||
|
|
2040
|
+
"undefined" === typeof window.document.createElement
|
|
2041
|
+
? useSyncExternalStore$1
|
|
2042
|
+
: useSyncExternalStore$2;
|
|
2043
|
+
var useSyncExternalStore =
|
|
2044
|
+
void 0 !== React__default["default"].useSyncExternalStore ? React__default["default"].useSyncExternalStore : shim$1;
|
|
2045
|
+
|
|
2046
|
+
var useSyncExternalStoreShim_production = {
|
|
2047
|
+
useSyncExternalStore: useSyncExternalStore
|
|
2048
|
+
};
|
|
2205
2049
|
|
|
2206
|
-
var
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2050
|
+
var useSyncExternalStoreShim_development = createCommonjsModule(function (module, exports) {
|
|
2051
|
+
"production" !== process.env.NODE_ENV &&
|
|
2052
|
+
(function () {
|
|
2053
|
+
function is(x, y) {
|
|
2054
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2055
|
+
}
|
|
2056
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
2057
|
+
didWarnOld18Alpha ||
|
|
2058
|
+
void 0 === React.startTransition ||
|
|
2059
|
+
((didWarnOld18Alpha = !0),
|
|
2060
|
+
console.error(
|
|
2061
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
2062
|
+
));
|
|
2063
|
+
var value = getSnapshot();
|
|
2064
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
2065
|
+
var cachedValue = getSnapshot();
|
|
2066
|
+
objectIs(value, cachedValue) ||
|
|
2067
|
+
(console.error(
|
|
2068
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
2069
|
+
),
|
|
2070
|
+
(didWarnUncachedGetSnapshot = !0));
|
|
2071
|
+
}
|
|
2072
|
+
cachedValue = useState({
|
|
2073
|
+
inst: { value: value, getSnapshot: getSnapshot }
|
|
2074
|
+
});
|
|
2075
|
+
var inst = cachedValue[0].inst,
|
|
2076
|
+
forceUpdate = cachedValue[1];
|
|
2077
|
+
useLayoutEffect(
|
|
2078
|
+
function () {
|
|
2079
|
+
inst.value = value;
|
|
2080
|
+
inst.getSnapshot = getSnapshot;
|
|
2081
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
2082
|
+
},
|
|
2083
|
+
[subscribe, value, getSnapshot]
|
|
2084
|
+
);
|
|
2085
|
+
useEffect(
|
|
2086
|
+
function () {
|
|
2087
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
2088
|
+
return subscribe(function () {
|
|
2089
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
2090
|
+
});
|
|
2091
|
+
},
|
|
2092
|
+
[subscribe]
|
|
2093
|
+
);
|
|
2094
|
+
useDebugValue(value);
|
|
2095
|
+
return value;
|
|
2096
|
+
}
|
|
2097
|
+
function checkIfSnapshotChanged(inst) {
|
|
2098
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
2099
|
+
inst = inst.value;
|
|
2100
|
+
try {
|
|
2101
|
+
var nextValue = latestGetSnapshot();
|
|
2102
|
+
return !objectIs(inst, nextValue);
|
|
2103
|
+
} catch (error) {
|
|
2104
|
+
return !0;
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
2108
|
+
return getSnapshot();
|
|
2109
|
+
}
|
|
2110
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
2111
|
+
"function" ===
|
|
2112
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
2113
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2114
|
+
var React = React__default["default"],
|
|
2115
|
+
objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2116
|
+
useState = React.useState,
|
|
2117
|
+
useEffect = React.useEffect,
|
|
2118
|
+
useLayoutEffect = React.useLayoutEffect,
|
|
2119
|
+
useDebugValue = React.useDebugValue,
|
|
2120
|
+
didWarnOld18Alpha = !1,
|
|
2121
|
+
didWarnUncachedGetSnapshot = !1,
|
|
2122
|
+
shim =
|
|
2123
|
+
"undefined" === typeof window ||
|
|
2124
|
+
"undefined" === typeof window.document ||
|
|
2125
|
+
"undefined" === typeof window.document.createElement
|
|
2126
|
+
? useSyncExternalStore$1
|
|
2127
|
+
: useSyncExternalStore$2;
|
|
2128
|
+
exports.useSyncExternalStore =
|
|
2129
|
+
void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
2130
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
2131
|
+
"function" ===
|
|
2132
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
2133
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2223
2134
|
})();
|
|
2224
|
-
}
|
|
2225
2135
|
});
|
|
2226
2136
|
|
|
2227
2137
|
var shim = createCommonjsModule(function (module) {
|
|
2228
2138
|
|
|
2229
2139
|
if (process.env.NODE_ENV === 'production') {
|
|
2230
|
-
module.exports =
|
|
2140
|
+
module.exports = useSyncExternalStoreShim_production;
|
|
2231
2141
|
} else {
|
|
2232
2142
|
module.exports = useSyncExternalStoreShim_development;
|
|
2233
2143
|
}
|