@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.
package/dist/native.js CHANGED
@@ -5676,12 +5676,12 @@ var require_getSplitStyles_native = __commonJS({
5676
5676
  }
5677
5677
  } else if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return;
5678
5678
  } else if (isGroupMedia) {
5679
- 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;
5679
+ 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;
5680
5680
  if (!groupState) {
5681
- process.env.NODE_ENV === "development" && debug && (0, import_log.log)(`No parent with group prop, skipping styles: ${groupName}`);
5681
+ process.env.NODE_ENV === "development" && debug && (0, import_log.log)(`No parent with group prop, skipping styles: ${groupName}`), pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());
5682
5682
  return;
5683
5683
  }
5684
- var groupPseudoKey = groupInfo.pseudo, groupMediaKey = groupInfo.media, componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
5684
+ var componentGroupState = (_componentState_group = componentState.group) === null || _componentState_group === void 0 ? void 0 : _componentState_group[groupName];
5685
5685
  if (groupMediaKey) {
5686
5686
  mediaGroups || (mediaGroups = /* @__PURE__ */ new Set()), mediaGroups.add(groupMediaKey);
5687
5687
  var mediaState1 = componentGroupState == null ? void 0 : componentGroupState.media, isActive = mediaState1 == null ? void 0 : mediaState1[groupMediaKey];
@@ -6203,7 +6203,9 @@ var require_subscribeToContextGroup_native = __commonJS({
6203
6203
  }
6204
6204
  }, createGroupListener = function(name, param) {
6205
6205
  var { setStateShallow, pseudoGroups, mediaGroups, groupContext } = param, parent = groupContext == null ? void 0 : groupContext[name];
6206
- return parent ? parent.subscribe(function(param2) {
6206
+ if (!parent) return function() {
6207
+ };
6208
+ var dispose = parent.subscribe(function(param2) {
6207
6209
  var { layout, pseudo } = param2;
6208
6210
  setStateShallow(function(prev) {
6209
6211
  var _prev_group, didChange = !1, group = ((_prev_group = prev.group) === null || _prev_group === void 0 ? void 0 : _prev_group[name]) || {
@@ -6228,7 +6230,11 @@ var require_subscribeToContextGroup_native = __commonJS({
6228
6230
  }
6229
6231
  } : prev;
6230
6232
  });
6231
- }) : function() {
6233
+ });
6234
+ return function() {
6235
+ dispose(), setStateShallow({
6236
+ group: {}
6237
+ });
6232
6238
  };
6233
6239
  };
6234
6240
  }
@@ -7111,9 +7117,9 @@ var require_ClientOnly_native = __commonJS({
7111
7117
  });
7112
7118
  module2.exports = __toCommonJS2(ClientOnly_exports);
7113
7119
  var import_jsx_runtime2 = require("react/jsx-runtime"), import_react3 = require("react"), ClientOnlyContext2 = /* @__PURE__ */ (0, import_react3.createContext)(!1), ClientOnly2 = function(param) {
7114
- var { children, value = !0 } = param;
7120
+ var { children, enabled } = param, existingValue = (0, import_react3.useContext)(ClientOnlyContext2);
7115
7121
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ClientOnlyContext2.Provider, {
7116
- value,
7122
+ value: enabled ?? existingValue,
7117
7123
  children
7118
7124
  });
7119
7125
  };
@@ -7190,9 +7196,9 @@ var require_index_native7 = __commonJS({
7190
7196
  var React3 = __toESM2(require("react")), import_ClientOnly = require_ClientOnly_native(), import_ClientOnly2 = require_ClientOnly_native(), useIsClientOnly = function() {
7191
7197
  return React3.useContext(import_ClientOnly.ClientOnlyContext);
7192
7198
  };
7193
- function useDidFinishSSR(value) {
7199
+ function useDidFinishSSR() {
7194
7200
  var clientOnly = React3.useContext(import_ClientOnly.ClientOnlyContext);
7195
- return value ?? !0;
7201
+ return !0;
7196
7202
  }
7197
7203
  function useClientValue(value) {
7198
7204
  var done = useDidFinishSSR();
@@ -7245,24 +7251,22 @@ var require_useComponentState_native = __commonJS({
7245
7251
  });
7246
7252
  module2.exports = __toCommonJS2(useComponentState_exports);
7247
7253
  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) {
7248
- 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);
7249
- stateRef.current || (stateRef.current = {});
7250
- var hasAnimationProp = !!("animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
7254
+ 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;
7251
7255
  !needsHydration && hasAnimationProp && (curStateRef.hasAnimated = !0);
7252
7256
  var willBeAnimatedClient = function() {
7253
- var next = !!(hasAnimationProp && !staticConfig.isHOC && useAnimations);
7257
+ var next = !!(hasAnimationProp && !isHOC && useAnimations);
7254
7258
  return !!(next || curStateRef.hasAnimated);
7255
7259
  }(), willBeAnimated = !import_constants.isServer && willBeAnimatedClient;
7256
7260
  willBeAnimated && !curStateRef.hasAnimated && (curStateRef.hasAnimated = !0);
7257
- 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
7261
+ 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
7258
7262
  // this is just for a better ux, supports css variables for light/dark, media queries, etc
7259
- disableClassName, initialState = shouldEnter ? (
7263
+ disableClassName), initialState = shouldEnter ? (
7260
7264
  // on the very first render we switch all spring animation drivers to css rendering
7261
7265
  // this is because we need to use css variables, which they don't support to do proper SSR
7262
7266
  // without flickers of the wrong colors.
7263
7267
  // but once we do that initial hydration and we are in client side rendering mode,
7264
7268
  // we can avoid the extra re-render on mount
7265
- hasEnterState ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState
7269
+ canImmediatelyEnter ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState
7266
7270
  ) : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
7267
7271
  disabled != null && (initialState.disabled = disabled);
7268
7272
  var states = (0, import_react3.useState)(initialState), state = props.forceStyle ? {
@@ -7541,7 +7545,7 @@ var require_createComponent_native = __commonJS({
7541
7545
  }
7542
7546
  });
7543
7547
  module2.exports = __toCommonJS2(createComponent_exports);
7544
- 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(), time2, NextState = /* @__PURE__ */ new WeakMap(), NextMedia = /* @__PURE__ */ new WeakMap(), debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set([
7548
+ 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(), time2, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set([
7545
7549
  "hover",
7546
7550
  "press",
7547
7551
  "pressIn",
@@ -7636,16 +7640,15 @@ var require_createComponent_native = __commonJS({
7636
7640
  componentName2
7637
7641
  ]);
7638
7642
  var 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;
7639
- if (hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders) {
7640
- var pendingState = NextState.get(stateRef);
7641
- pendingState && (NextState.set(stateRef, void 0), componentState.setStateShallow(pendingState));
7642
- }
7643
+ hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders && (0, import_constants.useIsomorphicLayoutEffect)(function() {
7644
+ var pendingState = stateRef.current.nextState;
7645
+ pendingState && (stateRef.current.nextState = void 0, componentState.setStateShallow(pendingState));
7646
+ });
7643
7647
  var allGroupContexts = (0, import_react3.useMemo)(function() {
7644
- var _stateRef_current_group;
7648
+ var _stateRef_current_group_listeners, _stateRef_current_group;
7645
7649
  if (!groupName || props.passThrough) return groupContextParent;
7646
- (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
7647
7650
  var listeners = /* @__PURE__ */ new Set();
7648
- return stateRef.current.group = {
7651
+ 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 = {
7649
7652
  listeners,
7650
7653
  emit(state2) {
7651
7654
  listeners.forEach(function(l) {
@@ -7744,8 +7747,8 @@ var require_createComponent_native = __commonJS({
7744
7747
  styledContextProps
7745
7748
  }, themeName = (themeState == null ? void 0 : themeState.name) || "";
7746
7749
  process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
7747
- var 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;
7748
- if (splitStyles && groupContext && // avoids onLayout if we don't need it
7750
+ var 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;
7751
+ if (!isPassthrough && groupContext && // avoids onLayout if we don't need it
7749
7752
  props.containerType !== "normal") {
7750
7753
  var groupState = groupContext == null ? void 0 : groupContext.state;
7751
7754
  if (groupState && groupState.layout === void 0) {
@@ -7756,34 +7759,38 @@ var require_createComponent_native = __commonJS({
7756
7759
  });
7757
7760
  }
7758
7761
  }
7759
- if (splitStyles && (hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
7760
- var _componentContext, ogSetStateShallow = setStateShallow;
7762
+ if (!isPassthrough && (hasAnimationProp || groupName) && animationDriver != null && animationDriver.avoidReRenders) {
7763
+ var updateGroupListeners2 = function() {
7764
+ var updatedState = stateRef.current.nextState;
7765
+ if (groupContext) {
7766
+ var { group, hasDynGroupChildren, unmounted, animation, ...childrenGroupState } = updatedState;
7767
+ notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
7768
+ }
7769
+ }, updateGroupListeners = updateGroupListeners2, _componentContext, ogSetStateShallow = setStateShallow;
7761
7770
  stateRef.current.updateStyleListener = function() {
7762
- var updatedState = NextState.get(stateRef) || state, mediaState22 = NextMedia.get(stateRef), { group, hasDynGroupChildren, unmounted, animation, ...childrenGroupState } = updatedState;
7763
- groupContext && notifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);
7764
- var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, mediaState22 ? {
7771
+ var updatedState = stateRef.current.nextState || state, mediaState22 = stateRef.current.nextMedia, nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, mediaState22 ? {
7765
7772
  ...styleProps,
7766
7773
  mediaState: mediaState22
7767
7774
  } : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), useStyleListener = stateRef.current.useStyleListener;
7768
7775
  useStyleListener == null || useStyleListener((nextStyles == null ? void 0 : nextStyles.style) || {});
7769
7776
  }, (_componentContext = componentContext).mediaEmit || (_componentContext.mediaEmit = function(next) {
7770
7777
  var _stateRef_current_updateStyleListener, _stateRef_current;
7771
- NextMedia.set(stateRef, next), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
7778
+ stateRef.current.nextMedia = next, (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
7772
7779
  }), stateRef.current.setStateShallow = function(nextOrGetNext) {
7773
- var prev = NextState.get(stateRef) || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
7780
+ var prev = stateRef.current.nextState || state, next = typeof nextOrGetNext == "function" ? nextOrGetNext(prev) : nextOrGetNext;
7774
7781
  if (!(next === prev || (0, import_is_equal_shallow.isEqualShallow)(prev, next))) {
7775
7782
  var canAvoidReRender = Object.keys(next).every(function(key3) {
7776
7783
  return avoidReRenderKeys.has(key3);
7777
- });
7778
- if (canAvoidReRender) {
7779
- var _stateRef_current_updateStyleListener, _stateRef_current, updatedState = {
7780
- ...prev,
7781
- ...next
7782
- };
7783
- NextState.set(stateRef, updatedState), process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed("[\u26A1\uFE0F] avoid setState", next, {
7784
+ }), updatedState = {
7785
+ ...prev,
7786
+ ...next
7787
+ };
7788
+ if (stateRef.current.nextState = updatedState, canAvoidReRender) {
7789
+ var _stateRef_current_updateStyleListener, _stateRef_current;
7790
+ process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && (console.groupCollapsed("[\u26A1\uFE0F] avoid setState", componentName2, next, {
7784
7791
  updatedState,
7785
7792
  props
7786
- }), console.info(stateRef.current.host), console.groupEnd()), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
7793
+ }), console.info(stateRef.current.host), console.groupEnd()), updateGroupListeners2(), (_stateRef_current_updateStyleListener = (_stateRef_current = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current);
7787
7794
  } else process.env.NODE_ENV === "development" && debugProp && debugProp !== "profile" && console.info("[\u{1F40C}] re-render", {
7788
7795
  canAvoidReRender,
7789
7796
  next
@@ -7856,7 +7863,7 @@ var require_createComponent_native = __commonJS({
7856
7863
  }
7857
7864
  process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
7858
7865
 
7859
- If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, splitStyles && groupContext && // avoids onLayout if we don't need it
7866
+ If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, !isPassthrough && groupContext && // avoids onLayout if we don't need it
7860
7867
  props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
7861
7868
  var _stateRef_current_group, layout = e.nativeEvent.layout;
7862
7869
  groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
@@ -7926,12 +7933,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
7926
7933
  }, [
7927
7934
  allGroupContexts,
7928
7935
  disabled,
7929
- pseudoGroups ? Object.keys([
7930
- ...pseudoGroups
7931
- ]).join("") : 0,
7932
- mediaGroups ? Object.keys([
7933
- ...mediaGroups
7934
- ]).join("") : 0
7936
+ pseudoGroups ? (0, import_objectIdentityKey.objectIdentityKey)(pseudoGroups) : 0,
7937
+ mediaGroups ? (0, import_objectIdentityKey.objectIdentityKey)(mediaGroups) : 0
7935
7938
  ]);
7936
7939
  var groupEmitter = stateRef.current.group;
7937
7940
  (0, import_constants.useIsomorphicLayoutEffect)(function() {
@@ -8031,7 +8034,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8031
8034
  onPress,
8032
8035
  onLongPress
8033
8036
  });
8034
- process.env.NODE_ENV === "development" && time2 && time2`spaced-as-child`, splitStyles || (content = propsIn.children, elementType = BaseViewComponent, viewProps = {
8037
+ process.env.NODE_ENV === "development" && time2 && time2`spaced-as-child`, isPassthrough && (content = propsIn.children, elementType = BaseViewComponent, viewProps = {
8035
8038
  style: {
8036
8039
  display: "contents"
8037
8040
  }
@@ -8103,7 +8106,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
8103
8106
  styleProps,
8104
8107
  themeState,
8105
8108
  viewProps,
8106
- willBeAnimated
8109
+ willBeAnimated,
8110
+ startedUnhydrated
8107
8111
  });
8108
8112
  } catch {
8109
8113
  } finally {
@@ -10489,6 +10493,7 @@ var require_TamaguiProvider_native = __commonJS({
10489
10493
  })
10490
10494
  });
10491
10495
  return (0, import_config.getSetting)("disableSSR") && (contents = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_use_did_finish_ssr.ClientOnly, {
10496
+ enabled: !0,
10492
10497
  children: contents
10493
10498
  })), /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, {
10494
10499
  children: [
@@ -10569,16 +10574,15 @@ var require_Configuration_native = __commonJS({
10569
10574
  });
10570
10575
  module2.exports = __toCommonJS2(Configuration_exports);
10571
10576
  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) {
10572
- var current = import_react3.default.useContext(import_ComponentContext.ComponentContext);
10577
+ var current = import_react3.default.useContext(import_ComponentContext.ComponentContext), _props_disableSSR;
10573
10578
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_use_did_finish_ssr.ClientOnly, {
10574
- value: typeof props.disableSSR == "boolean" && props.disableSSR !== current.disableSSR ? props.disableSSR : current.disableSSR,
10579
+ enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
10575
10580
  children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
10576
10581
  ...current,
10577
10582
  ...props
10578
10583
  })
10579
10584
  });
10580
10585
  };
10581
- Configuration.displayName = "Configuration";
10582
10586
  }
10583
10587
  });
10584
10588