@tamagui/core 1.132.13 → 1.132.15

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.
@@ -5352,10 +5352,12 @@ var require_getSplitStyles_native = __commonJS({
5352
5352
  }
5353
5353
  } else if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return;
5354
5354
  } else if (isGroupMedia) {
5355
- var _groupContext_groupName, _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupState = groupContext == null || (_groupContext_groupName = groupContext[groupName]) === null || _groupContext_groupName === void 0 ? void 0 : _groupContext_groupName.state;
5356
- if (!groupState)
5355
+ var _groupContext_groupName, _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupState = groupContext == null || (_groupContext_groupName = groupContext[groupName]) === null || _groupContext_groupName === void 0 ? void 0 : _groupContext_groupName.state, groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media;
5356
+ if (!groupState) {
5357
+ pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());
5357
5358
  return;
5358
- var groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media, componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
5359
+ }
5360
+ var componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
5359
5361
  if (groupMediaKey) {
5360
5362
  mediaGroups || (mediaGroups = /* @__PURE__ */ new Set()), mediaGroups.add(groupMediaKey);
5361
5363
  var mediaState1 = componentGroupState == null ? void 0 : componentGroupState.media, isActive = mediaState1 == null ? void 0 : mediaState1[groupMediaKey];
@@ -5825,7 +5827,9 @@ var require_subscribeToContextGroup_native = __commonJS({
5825
5827
  }
5826
5828
  }, createGroupListener = function(name, param) {
5827
5829
  var { setStateShallow, pseudoGroups, mediaGroups, groupContext } = param, parent = groupContext == null ? void 0 : groupContext[name];
5828
- return parent ? parent.subscribe(function(param2) {
5830
+ if (!parent) return function() {
5831
+ };
5832
+ var dispose = parent.subscribe(function(param2) {
5829
5833
  var { layout, pseudo } = param2;
5830
5834
  setStateShallow(function(prev) {
5831
5835
  var _prev_group, didChange = !1, group = ((_prev_group = prev.group) === null || _prev_group === void 0 ? void 0 : _prev_group[name]) || {
@@ -5850,7 +5854,11 @@ var require_subscribeToContextGroup_native = __commonJS({
5850
5854
  }
5851
5855
  } : prev;
5852
5856
  });
5853
- }) : function() {
5857
+ });
5858
+ return function() {
5859
+ dispose(), setStateShallow({
5860
+ group: {}
5861
+ });
5854
5862
  };
5855
5863
  };
5856
5864
  }
@@ -6695,9 +6703,9 @@ var require_ClientOnly_native = __commonJS({
6695
6703
  });
6696
6704
  module2.exports = __toCommonJS2(ClientOnly_exports);
6697
6705
  var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
6698
- var { children, value = !0 } = param;
6706
+ var { children, enabled } = param, existingValue = (0, import_react3.useContext)(ClientOnlyContext2);
6699
6707
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ClientOnlyContext2.Provider, {
6700
- value,
6708
+ value: enabled ?? existingValue,
6701
6709
  children
6702
6710
  });
6703
6711
  };
@@ -6774,9 +6782,9 @@ var require_index_native7 = __commonJS({
6774
6782
  var React3 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native(), useIsClientOnly = function() {
6775
6783
  return React3.useContext(import_ClientOnly.ClientOnlyContext);
6776
6784
  };
6777
- function useDidFinishSSR(value) {
6785
+ function useDidFinishSSR() {
6778
6786
  var clientOnly = React3.useContext(import_ClientOnly.ClientOnlyContext);
6779
- return value ?? !0;
6787
+ return !0;
6780
6788
  }
6781
6789
  function useClientValue(value) {
6782
6790
  var done = useDidFinishSSR();
@@ -6829,24 +6837,22 @@ var require_useComponentState_native = __commonJS({
6829
6837
  });
6830
6838
  module2.exports = __toCommonJS2(useComponentState_exports);
6831
6839
  var import_constants = require_index_native2(), import_is_equal_shallow = require_index_native5(), import_use_did_finish_ssr = require_index_native7(), import_react3 = require("react"), import_defaultComponentState = require_defaultComponentState_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), useComponentState = function(props, animationDriver, staticConfig, config) {
6832
- var _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, stateRef = (0, import_react3.useRef)(void 0);
6833
- stateRef.current || (stateRef.current = {});
6834
- var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
6840
+ var _animationDriver_usePresence, isHydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), needsHydration = !(0, import_use_did_finish_ssr.useIsClientOnly)(), [startedUnhydrated] = (0, import_react3.useState)(needsHydration && !isHydrated), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, { isHOC } = staticConfig, stateRef = (0, import_react3.useRef)({}), hasAnimationProp = !!(!isHOC && "animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
6835
6841
  !needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
6836
6842
  var willBeAnimatedClient = function() {
6837
- var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
6843
+ var next = !!(hasAnimationProp && !isHOC && useAnimations);
6838
6844
  return !!(next || curStateRef.hasAnimated);
6839
6845
  }(), willBeAnimated = !import_constants.isServer && willBeAnimatedClient;
6840
6846
  willBeAnimated && !curStateRef.hasAnimated && (curStateRef.hasAnimated = !0);
6841
- var { disableClassName } = props, presence = willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver == null ? void 0 : animationDriver.isReactNative) || !supportsCSS), hasEnterState = hasEnterStyle || isEntering, shouldEnter = hasEnterState || hasAnimationThatNeedsHydrate || // disableClassName doesnt work server side, only client, so needs hydrate
6847
+ var { disableClassName } = props, presence = !isHOC && willBeAnimated && props.animatePresence !== !1 && (animationDriver == null || (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasAnimationThatNeedsHydrate = hasAnimationProp && !isHydrated && ((animationDriver == null ? void 0 : animationDriver.isReactNative) || !supportsCSS), canImmediatelyEnter = hasEnterStyle || isEntering, shouldEnter = !isHOC && (hasEnterStyle || isEntering || hasAnimationThatNeedsHydrate || // disableClassName doesnt work server side, only client, so needs hydrate
6842
6848
  // this is just for a better ux, supports css variables for light/dark, media queries, etc
6843
- disableClassName, initialState = shouldEnter ? (
6849
+ disableClassName), initialState = shouldEnter ? (
6844
6850
  // on the very first render we switch all spring animation drivers to css rendering
6845
6851
  // this is because we need to use css variables, which they don't support to do proper SSR
6846
6852
  // without flickers of the wrong colors.
6847
6853
  // but once we do that initial hydration and we are in client side rendering mode,
6848
6854
  // we can avoid the extra re-render on mount
6849
- hasEnterState ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState
6855
+ canImmediatelyEnter ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState
6850
6856
  ) : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
6851
6857
  disabled != null && (initialState.disabled = disabled);
6852
6858
  var states = (0, import_react3.useState)(initialState), state = props.forceStyle ? {
@@ -7120,7 +7126,7 @@ var require_createComponent_native = __commonJS({
7120
7126
  }
7121
7127
  });
7122
7128
  module2.exports = __toCommonJS2(createComponent_exports);
7123
- var import_jsx_runtime2 = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_is_equal_shallow = require_index_native5(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_GroupContext = require_GroupContext_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(), NextState = /* @__PURE__ */ new WeakMap(), NextMedia = /* @__PURE__ */ new WeakMap(), componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set([
7129
+ var import_jsx_runtime2 = require("react/jsx-runtime"), import_compose_refs = require_index_native4(), import_constants = require_index_native2(), import_helpers2 = require_index_native3(), import_is_equal_shallow = require_index_native5(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_constants2 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_ComponentContext = require_ComponentContext_native(), import_GroupContext = require_GroupContext_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_objectIdentityKey = require_objectIdentityKey_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(), avoidReRenderKeys = /* @__PURE__ */ new Set([
7124
7130
  "hover",
7125
7131
  "press",
7126
7132
  "pressIn",
@@ -7184,16 +7190,15 @@ var require_createComponent_native = __commonJS({
7184
7190
  } : defaultProps, props = propsIn;
7185
7191
  curDefaultProps && (props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn));
7186
7192
  var componentName2 = props.componentName || staticConfig.componentName, componentContext = import_react3.default.useContext(import_ComponentContext.ComponentContext), groupContextParent = import_react3.default.useContext(import_GroupContext.GroupContext), animationDriver = componentContext.animationDriver, useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = (0, import_useComponentState.useComponentState)(props, animationDriver, staticConfig, config), { disabled, groupName, hasAnimationProp, hasEnterStyle, isAnimated, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, supportsCSS, willBeAnimated, willBeAnimatedClient, startedUnhydrated } = componentState;
7187
- if (hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders) {
7188
- var pendingState = NextState.get(stateRef);
7189
- pendingState && (NextState.set(stateRef, void 0), componentState.setStateShallow(pendingState));
7190
- }
7193
+ hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders && (0, import_constants.useIsomorphicLayoutEffect)(function() {
7194
+ var pendingState = stateRef.current.nextState;
7195
+ pendingState && (stateRef.current.nextState = void 0, componentState.setStateShallow(pendingState));
7196
+ });
7191
7197
  var allGroupContexts = (0, import_react3.useMemo)(function() {
7192
- var _stateRef_current_group;
7198
+ var _stateRef_current_group_listeners, _stateRef_current_group;
7193
7199
  if (!groupName || props.passThrough) return groupContextParent;
7194
- (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
7195
7200
  var listeners = /* @__PURE__ */ new Set();
7196
- return stateRef.current.group = {
7201
+ return (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || (_stateRef_current_group_listeners = _stateRef_current_group.listeners) === null || _stateRef_current_group_listeners === void 0 || _stateRef_current_group_listeners.clear(), stateRef.current.group = {
7197
7202
  listeners,
7198
7203
  emit(state2) {
7199
7204
  listeners.forEach(function(l) {
@@ -7262,8 +7267,8 @@ var require_createComponent_native = __commonJS({
7262
7267
  isAnimated,
7263
7268
  willBeAnimated,
7264
7269
  styledContextProps
7265
- }, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
7266
- if (splitStyles && groupContext && // avoids onLayout if we don't need it
7270
+ }, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), isPassthrough = !splitStyles, groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
7271
+ if (!isPassthrough && groupContext && // avoids onLayout if we don't need it
7267
7272
  props.containerType !== "normal") {
7268
7273
  var groupState = groupContext == null ? void 0 : groupContext.state;
7269
7274
  if (groupState && groupState.layout === void 0) {
@@ -7274,31 +7279,35 @@ var require_createComponent_native = __commonJS({
7274
7279
  });
7275
7280
  }
7276
7281
  }
7277
- if (splitStyles && (hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
7278
- var _componentContext, ogSetStateShallow = setStateShallow;
7282
+ if (!isPassthrough && (hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
7283
+ var updateGroupListeners2 = function() {
7284
+ var updatedState = stateRef.current.nextState;
7285
+ if (groupContext) {
7286
+ var { group, hasDynGroupChildren, unmounted, animation, ...childrenGroupState } = updatedState;
7287
+ notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
7288
+ }
7289
+ }, updateGroupListeners = updateGroupListeners2, _componentContext, ogSetStateShallow = setStateShallow;
7279
7290
  stateRef.current.updateStyleListener = function() {
7280
- var updatedState = NextState.get(stateRef) || state, mediaState22 = NextMedia.get(stateRef), { group, hasDynGroupChildren, unmounted, animation, ...childrenGroupState } = updatedState;
7281
- groupContext && notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
7282
- var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, mediaState22 ? {
7291
+ var updatedState = stateRef.current.nextState || state, mediaState22 = stateRef.current.nextMedia, nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, mediaState22 ? {
7283
7292
  ...styleProps,
7284
7293
  mediaState: mediaState22
7285
7294
  } : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), useStyleListener = stateRef.current.useStyleListener;
7286
7295
  useStyleListener == null || useStyleListener((nextStyles == null ? void 0 : nextStyles.style) || {});
7287
7296
  }, (_componentContext = componentContext).mediaEmit || (_componentContext.mediaEmit = function(next) {
7288
7297
  var _stateRef_current_updateStyleListener, _stateRef_current;
7289
- NextMedia.set(stateRef, next), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
7298
+ stateRef.current.nextMedia = next, (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
7290
7299
  }), stateRef.current.setStateShallow = function(nextOrGetNext) {
7291
- var prev = NextState.get(stateRef) || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
7300
+ var prev = stateRef.current.nextState || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
7292
7301
  if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
7293
7302
  var canAvoidReRender = Object.keys(next).every(function(key3) {
7294
7303
  return avoidReRenderKeys.has(key3);
7295
- });
7296
- if (canAvoidReRender) {
7297
- var _stateRef_current_updateStyleListener, _stateRef_current, updatedState = {
7298
- ...prev,
7299
- ...next
7300
- };
7301
- NextState.set(stateRef, updatedState), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
7304
+ }), updatedState = {
7305
+ ...prev,
7306
+ ...next
7307
+ };
7308
+ if (stateRef.current.nextState = updatedState, canAvoidReRender) {
7309
+ var _stateRef_current_updateStyleListener, _stateRef_current;
7310
+ updateGroupListeners2(), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
7302
7311
  } else ogSetStateShallow(next);
7303
7312
  }
7304
7313
  }, setStateShallow = function(state2) {
@@ -7366,7 +7375,7 @@ var require_createComponent_native = __commonJS({
7366
7375
  });
7367
7376
  animations && (animations.ref && (animatedRef = animations.ref), isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)));
7368
7377
  }
7369
- splitStyles && groupContext && // avoids onLayout if we don't need it
7378
+ !isPassthrough && groupContext && // avoids onLayout if we don't need it
7370
7379
  props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
7371
7380
  var _stateRef_current_group, layout = e.nativeEvent.layout;
7372
7381
  groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
@@ -7422,12 +7431,8 @@ var require_createComponent_native = __commonJS({
7422
7431
  }, [
7423
7432
  allGroupContexts,
7424
7433
  disabled,
7425
- pseudoGroups ? Object.keys([
7426
- ...pseudoGroups
7427
- ]).join("") : 0,
7428
- mediaGroups ? Object.keys([
7429
- ...mediaGroups
7430
- ]).join("") : 0
7434
+ pseudoGroups ? (0, import_objectIdentityKey.objectIdentityKey)(pseudoGroups) : 0,
7435
+ mediaGroups ? (0, import_objectIdentityKey.objectIdentityKey)(mediaGroups) : 0
7431
7436
  ]);
7432
7437
  var groupEmitter = stateRef.current.group;
7433
7438
  (0, import_constants.useIsomorphicLayoutEffect)(function() {
@@ -7508,7 +7513,7 @@ var require_createComponent_native = __commonJS({
7508
7513
  onPress,
7509
7514
  onLongPress
7510
7515
  });
7511
- splitStyles || (content = propsIn.children, elementType = BaseViewComponent, viewProps = {
7516
+ isPassthrough && (content = propsIn.children, elementType = BaseViewComponent, viewProps = {
7512
7517
  style: {
7513
7518
  display: "contents"
7514
7519
  }
@@ -9922,6 +9927,7 @@ var require_TamaguiProvider_native = __commonJS({
9922
9927
  })
9923
9928
  });
9924
9929
  return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_use_did_finish_ssr.ClientOnly, {
9930
+ enabled: !0,
9925
9931
  children: contents
9926
9932
  })), /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, {
9927
9933
  children: [
@@ -10002,16 +10008,15 @@ var require_Configuration_native = __commonJS({
10002
10008
  });
10003
10009
  module2.exports = __toCommonJS2(Configuration_exports);
10004
10010
  var import_jsx_runtime2 = require("react/jsx-runtime"), import_use_did_finish_ssr = require_index_native7(), import_react3 = __toESM2(require("react")), import_ComponentContext = require_ComponentContext_native(), Configuration = function(props) {
10005
- var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
10011
+ var current = import_react3.default.useContext(import_ComponentContext.ComponentContext), _props_disableSSR;
10006
10012
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_use_did_finish_ssr.ClientOnly, {
10007
- value: typeof props.disableSSR == "boolean" && props.disableSSR !== current.disableSSR ? props.disableSSR : current.disableSSR,
10013
+ enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
10008
10014
  children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
10009
10015
  ...current,
10010
10016
  ...props
10011
10017
  })
10012
10018
  });
10013
10019
  };
10014
- Configuration.displayName = "Configuration";
10015
10020
  }
10016
10021
  });
10017
10022