tamagui 1.132.4 → 1.132.5-1752435204050
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 +6 -5
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +6 -5
- package/dist/test.native.js.map +1 -1
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -8745,8 +8745,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8745
8745
|
}
|
|
8746
8746
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
8747
8747
|
var _stateRef_current_group;
|
|
8748
|
-
if (!groupName || props.passThrough
|
|
8749
|
-
props.containerType === "normal") return groupContextParent;
|
|
8748
|
+
if (!groupName || props.passThrough) return groupContextParent;
|
|
8750
8749
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
8751
8750
|
var listeners = /* @__PURE__ */ new Set();
|
|
8752
8751
|
return stateRef.current.group = {
|
|
@@ -8849,7 +8848,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8849
8848
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
8850
8849
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
8851
8850
|
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;
|
|
8852
|
-
if (splitStyles && groupContext
|
|
8851
|
+
if (splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
8852
|
+
props.containerType !== "normal") {
|
|
8853
8853
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
8854
8854
|
if (groupState && groupState.layout === void 0) {
|
|
8855
8855
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -8959,7 +8959,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8959
8959
|
}
|
|
8960
8960
|
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.
|
|
8961
8961
|
|
|
8962
|
-
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 &&
|
|
8962
|
+
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
|
|
8963
|
+
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8963
8964
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
8964
8965
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
8965
8966
|
layout
|
|
@@ -17167,7 +17168,7 @@ var require_Adapt_native = __commonJS({
|
|
|
17167
17168
|
portalName
|
|
17168
17169
|
]);
|
|
17169
17170
|
var [when, setWhen] = import_react3.default.useState(null), [platform2, setPlatform] = import_react3.default.useState(null), [children2, setChildren] = import_react3.default.useState(null);
|
|
17170
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastAdaptContextScope, {
|
|
17171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastAdaptContextScope.Provider, {
|
|
17171
17172
|
value: scope,
|
|
17172
17173
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProvideAdaptContext, {
|
|
17173
17174
|
Contents: FinalContents,
|