tamagui 1.129.3 → 1.129.4
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/native.js +120 -101
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +101 -82
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -3594,57 +3594,6 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
3594
3594
|
}
|
|
3595
3595
|
});
|
|
3596
3596
|
|
|
3597
|
-
// ../../core/web/dist/cjs/helpers/consoleLog.native.js
|
|
3598
|
-
var require_consoleLog_native = __commonJS({
|
|
3599
|
-
"../../core/web/dist/cjs/helpers/consoleLog.native.js"(exports2, module2) {
|
|
3600
|
-
"use strict";
|
|
3601
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3602
|
-
for (var name in all) __defProp2(target, name, {
|
|
3603
|
-
get: all[name],
|
|
3604
|
-
enumerable: !0
|
|
3605
|
-
});
|
|
3606
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
3607
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3608
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3609
|
-
for (var _loop = function() {
|
|
3610
|
-
var key = _step.value;
|
|
3611
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3612
|
-
get: function() {
|
|
3613
|
-
return from[key];
|
|
3614
|
-
},
|
|
3615
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3616
|
-
});
|
|
3617
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3618
|
-
} catch (err) {
|
|
3619
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
3620
|
-
} finally {
|
|
3621
|
-
try {
|
|
3622
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3623
|
-
} finally {
|
|
3624
|
-
if (_didIteratorError)
|
|
3625
|
-
throw _iteratorError;
|
|
3626
|
-
}
|
|
3627
|
-
}
|
|
3628
|
-
return to;
|
|
3629
|
-
}, __toCommonJS2 = function(mod) {
|
|
3630
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3631
|
-
value: !0
|
|
3632
|
-
}), mod);
|
|
3633
|
-
}, consoleLog_native_exports = {};
|
|
3634
|
-
__export2(consoleLog_native_exports, {
|
|
3635
|
-
groupCollapsed: function() {
|
|
3636
|
-
return groupCollapsed;
|
|
3637
|
-
},
|
|
3638
|
-
groupEnd: function() {
|
|
3639
|
-
return groupEnd;
|
|
3640
|
-
}
|
|
3641
|
-
});
|
|
3642
|
-
module2.exports = __toCommonJS2(consoleLog_native_exports);
|
|
3643
|
-
var groupEnd = function() {
|
|
3644
|
-
}, groupCollapsed = console.info;
|
|
3645
|
-
}
|
|
3646
|
-
});
|
|
3647
|
-
|
|
3648
3597
|
// ../../core/web/dist/cjs/helpers/getShorthandValue.native.js
|
|
3649
3598
|
var require_getShorthandValue_native = __commonJS({
|
|
3650
3599
|
"../../core/web/dist/cjs/helpers/getShorthandValue.native.js"(exports2, module2) {
|
|
@@ -6162,7 +6111,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6162
6111
|
}
|
|
6163
6112
|
});
|
|
6164
6113
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6165
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(),
|
|
6114
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
|
|
6166
6115
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6167
6116
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6168
6117
|
}
|
|
@@ -7673,6 +7622,62 @@ var require_wrapStyleTags_native = __commonJS({
|
|
|
7673
7622
|
}
|
|
7674
7623
|
});
|
|
7675
7624
|
|
|
7625
|
+
// ../../core/use-did-finish-ssr/dist/cjs/ClientOnly.native.js
|
|
7626
|
+
var require_ClientOnly_native = __commonJS({
|
|
7627
|
+
"../../core/use-did-finish-ssr/dist/cjs/ClientOnly.native.js"(exports2, module2) {
|
|
7628
|
+
"use strict";
|
|
7629
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
7630
|
+
for (var name in all) __defProp2(target, name, {
|
|
7631
|
+
get: all[name],
|
|
7632
|
+
enumerable: !0
|
|
7633
|
+
});
|
|
7634
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
7635
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
7636
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
7637
|
+
for (var _loop = function() {
|
|
7638
|
+
var key = _step.value;
|
|
7639
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
7640
|
+
get: function() {
|
|
7641
|
+
return from[key];
|
|
7642
|
+
},
|
|
7643
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
7644
|
+
});
|
|
7645
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
7646
|
+
} catch (err) {
|
|
7647
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
7648
|
+
} finally {
|
|
7649
|
+
try {
|
|
7650
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
7651
|
+
} finally {
|
|
7652
|
+
if (_didIteratorError)
|
|
7653
|
+
throw _iteratorError;
|
|
7654
|
+
}
|
|
7655
|
+
}
|
|
7656
|
+
return to;
|
|
7657
|
+
}, __toCommonJS2 = function(mod) {
|
|
7658
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
7659
|
+
value: !0
|
|
7660
|
+
}), mod);
|
|
7661
|
+
}, ClientOnly_exports = {};
|
|
7662
|
+
__export2(ClientOnly_exports, {
|
|
7663
|
+
ClientOnly: function() {
|
|
7664
|
+
return ClientOnly2;
|
|
7665
|
+
},
|
|
7666
|
+
ClientOnlyContext: function() {
|
|
7667
|
+
return ClientOnlyContext2;
|
|
7668
|
+
}
|
|
7669
|
+
});
|
|
7670
|
+
module2.exports = __toCommonJS2(ClientOnly_exports);
|
|
7671
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
|
|
7672
|
+
var { children } = param;
|
|
7673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ClientOnlyContext2.Provider, {
|
|
7674
|
+
value: !0,
|
|
7675
|
+
children
|
|
7676
|
+
});
|
|
7677
|
+
};
|
|
7678
|
+
}
|
|
7679
|
+
});
|
|
7680
|
+
|
|
7676
7681
|
// ../../core/use-did-finish-ssr/dist/cjs/index.native.js
|
|
7677
7682
|
var require_index_native13 = __commonJS({
|
|
7678
7683
|
"../../core/use-did-finish-ssr/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -7723,6 +7728,12 @@ var require_index_native13 = __commonJS({
|
|
|
7723
7728
|
}), mod);
|
|
7724
7729
|
}, index_exports2 = {};
|
|
7725
7730
|
__export2(index_exports2, {
|
|
7731
|
+
ClientOnly: function() {
|
|
7732
|
+
return import_ClientOnly2.ClientOnly;
|
|
7733
|
+
},
|
|
7734
|
+
ClientOnlyContext: function() {
|
|
7735
|
+
return import_ClientOnly2.ClientOnlyContext;
|
|
7736
|
+
},
|
|
7726
7737
|
useClientValue: function() {
|
|
7727
7738
|
return useClientValue;
|
|
7728
7739
|
},
|
|
@@ -7731,8 +7742,9 @@ var require_index_native13 = __commonJS({
|
|
|
7731
7742
|
}
|
|
7732
7743
|
});
|
|
7733
7744
|
module2.exports = __toCommonJS2(index_exports2);
|
|
7734
|
-
var React4 = __toESM2(require("react"));
|
|
7745
|
+
var React4 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native();
|
|
7735
7746
|
function useDidFinishSSR2(value) {
|
|
7747
|
+
var clientOnly = React4.useContext(import_ClientOnly.ClientOnlyContext);
|
|
7736
7748
|
return value ?? !0;
|
|
7737
7749
|
}
|
|
7738
7750
|
function useClientValue(value) {
|
|
@@ -8098,7 +8110,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8098
8110
|
}
|
|
8099
8111
|
});
|
|
8100
8112
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8101
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(),
|
|
8113
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_getShorthandValue = require_getShorthandValue_native(), import_getSplitStyles = require_getSplitStyles_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_setElementProps = require_setElementProps_native(), import_subscribeToContextGroup = require_subscribeToContextGroup_native(), import_themeable = require_themeable_native(), import_wrapStyleTags = require_wrapStyleTags_native(), import_useComponentState = require_useComponentState_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), componentSetStates = /* @__PURE__ */ new Set();
|
|
8102
8114
|
typeof document < "u" && (cancelTouches = function() {
|
|
8103
8115
|
componentSetStates.forEach(function(setState) {
|
|
8104
8116
|
return setState(function(prev) {
|
|
@@ -8244,7 +8256,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8244
8256
|
staticConfig,
|
|
8245
8257
|
stateRef
|
|
8246
8258
|
});
|
|
8247
|
-
|
|
8259
|
+
animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`));
|
|
8248
8260
|
}
|
|
8249
8261
|
groupName && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8250
8262
|
var layout = e.nativeEvent.layout;
|
|
@@ -9732,9 +9744,9 @@ var require_styled_native = __commonJS({
|
|
|
9732
9744
|
});
|
|
9733
9745
|
module2.exports = __toCommonJS2(styled_exports);
|
|
9734
9746
|
var import_createComponent = require_createComponent_native(), import_mergeVariants = require_mergeVariants_native(), import_setupReactNative = require_setupReactNative_native();
|
|
9735
|
-
function styled8(ComponentIn, options,
|
|
9747
|
+
function styled8(ComponentIn, options, config) {
|
|
9736
9748
|
if (!ComponentIn) throw new Error("No component given to styled()");
|
|
9737
|
-
var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig ||
|
|
9749
|
+
var parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), isNonStyledHOC = (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC), Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig || config != null && config.isReactNative || parentStaticConfig != null && parentStaticConfig.isReactNative), staticConfigProps = function() {
|
|
9738
9750
|
var { variants, name, defaultVariants, acceptsClassName: acceptsClassNameProp, context, ...defaultProps } = options || {}, parentDefaultVariants, parentDefaultProps;
|
|
9739
9751
|
if (parentStaticConfig) {
|
|
9740
9752
|
var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;
|
|
@@ -9753,9 +9765,9 @@ var require_styled_native = __commonJS({
|
|
|
9753
9765
|
...defaultProps,
|
|
9754
9766
|
...defaultVariants
|
|
9755
9767
|
}), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
9756
|
-
var isText = !!(
|
|
9768
|
+
var isText = !!(config != null && config.isText || parentStaticConfig != null && parentStaticConfig.isText), _config_acceptsClassName, _ref, acceptsClassName = (_ref = (_config_acceptsClassName = config == null ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : acceptsClassNameProp) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName), conf = {
|
|
9757
9769
|
...parentStaticConfig,
|
|
9758
|
-
...
|
|
9770
|
+
...config,
|
|
9759
9771
|
...!isPlainStyledComponent && {
|
|
9760
9772
|
Component
|
|
9761
9773
|
},
|
|
@@ -10798,13 +10810,13 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10798
10810
|
}
|
|
10799
10811
|
});
|
|
10800
10812
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10801
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(),
|
|
10813
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_use_did_finish_ssr = require_index_native13(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_useMedia = require_useMedia_native(), import_ThemeProvider = require_ThemeProvider_native(), listeners = /* @__PURE__ */ new Set(), didRender = !1;
|
|
10802
10814
|
function ___onDidFinishClientRender(cb) {
|
|
10803
10815
|
didRender ? cb() : listeners.add(cb);
|
|
10804
10816
|
}
|
|
10805
10817
|
function TamaguiProvider2(param) {
|
|
10806
10818
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
10807
|
-
|
|
10819
|
+
(0, import_react3.useEffect)(function() {
|
|
10808
10820
|
return listeners.forEach(function(cb) {
|
|
10809
10821
|
return cb();
|
|
10810
10822
|
}), didRender = !0, function() {
|
|
@@ -10822,21 +10834,25 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10822
10834
|
disableInjectCSS
|
|
10823
10835
|
]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
10824
10836
|
(0, import_useMedia.updateMediaListeners)();
|
|
10825
|
-
}, [])
|
|
10837
|
+
}, []);
|
|
10838
|
+
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnmountedClassName, {
|
|
10839
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10840
|
+
animationDriver: config == null ? void 0 : config.animations,
|
|
10841
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
10842
|
+
themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
|
|
10843
|
+
disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
|
|
10844
|
+
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
10845
|
+
reset,
|
|
10846
|
+
className,
|
|
10847
|
+
children
|
|
10848
|
+
})
|
|
10849
|
+
})
|
|
10850
|
+
});
|
|
10851
|
+
return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10852
|
+
children: contents
|
|
10853
|
+
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
10826
10854
|
children: [
|
|
10827
|
-
|
|
10828
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10829
|
-
animationDriver: config == null ? void 0 : config.animations,
|
|
10830
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeProvider.ThemeProvider, {
|
|
10831
|
-
themeClassNameOnRoot: themeClassNameOnRoot ?? (0, import_config.getSetting)("themeClassNameOnRoot"),
|
|
10832
|
-
disableRootThemeClass: disableRootThemeClass ?? (0, import_config.getSetting)("disableRootThemeClass"),
|
|
10833
|
-
defaultTheme: defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
10834
|
-
reset,
|
|
10835
|
-
className,
|
|
10836
|
-
children
|
|
10837
|
-
})
|
|
10838
|
-
})
|
|
10839
|
-
}),
|
|
10855
|
+
contents,
|
|
10840
10856
|
!1
|
|
10841
10857
|
]
|
|
10842
10858
|
});
|
|
@@ -10912,12 +10928,14 @@ var require_Configuration_native = __commonJS({
|
|
|
10912
10928
|
}
|
|
10913
10929
|
});
|
|
10914
10930
|
module2.exports = __toCommonJS2(Configuration_exports);
|
|
10915
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
|
|
10916
|
-
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext)
|
|
10917
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10931
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native13(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration2 = function(props) {
|
|
10932
|
+
var current = import_react3.default.useContext(import_ComponentContext.ComponentContext), clientOnly = (0, import_react3.useContext)(import_use_did_finish_ssr.ClientOnlyContext), children = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
10918
10933
|
...current,
|
|
10919
10934
|
...props
|
|
10920
10935
|
});
|
|
10936
|
+
return clientOnly ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_use_did_finish_ssr.ClientOnly, {
|
|
10937
|
+
children
|
|
10938
|
+
}) : children;
|
|
10921
10939
|
};
|
|
10922
10940
|
Configuration2.displayName = "Configuration";
|
|
10923
10941
|
}
|
|
@@ -15984,10 +16002,9 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
15984
16002
|
});
|
|
15985
16003
|
});
|
|
15986
16004
|
function PortalHostWeb(props) {
|
|
15987
|
-
var [mounted, setMounted] = (0, import_react3.useState)(!1);
|
|
15988
16005
|
return (0, import_react3.useEffect)(function() {
|
|
15989
|
-
return
|
|
15990
|
-
|
|
16006
|
+
return function() {
|
|
16007
|
+
import_constants22.allPortalHosts.delete(props.name);
|
|
15991
16008
|
};
|
|
15992
16009
|
}, [
|
|
15993
16010
|
props.name
|
|
@@ -15996,7 +16013,7 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
15996
16013
|
display: "contents"
|
|
15997
16014
|
},
|
|
15998
16015
|
ref: function(node) {
|
|
15999
|
-
if (node
|
|
16016
|
+
if (node) {
|
|
16000
16017
|
var _portalListeners_props_name;
|
|
16001
16018
|
import_constants22.allPortalHosts.set(props.name, node), (_portalListeners_props_name = import_constants22.portalListeners[props.name]) === null || _portalListeners_props_name === void 0 || _portalListeners_props_name.forEach(function(x) {
|
|
16002
16019
|
return x(node);
|
|
@@ -20135,6 +20152,8 @@ var require_Square_native = __commonJS({
|
|
|
20135
20152
|
":number": import_getShapeSize.getShapeSize
|
|
20136
20153
|
}
|
|
20137
20154
|
}
|
|
20155
|
+
}, {
|
|
20156
|
+
memo: !0
|
|
20138
20157
|
});
|
|
20139
20158
|
}
|
|
20140
20159
|
});
|