tamagui 1.129.12-1751358691172 → 1.129.12-1751388824960
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 +30 -44
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +20 -34
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -6749,17 +6749,18 @@ var require_index_native13 = __commonJS({
|
|
|
6749
6749
|
});
|
|
6750
6750
|
module2.exports = __toCommonJS2(index_exports2);
|
|
6751
6751
|
var import_react3 = require("react");
|
|
6752
|
-
function useCreateShallowSetState(setter,
|
|
6752
|
+
function useCreateShallowSetState(setter, debug) {
|
|
6753
6753
|
return (0, import_react3.useCallback)(function(next) {
|
|
6754
6754
|
setter(function(prev) {
|
|
6755
|
-
|
|
6755
|
+
var update = mergeIfNotShallowEqual(prev, next);
|
|
6756
|
+
return update;
|
|
6756
6757
|
});
|
|
6757
6758
|
}, [
|
|
6758
6759
|
setter,
|
|
6759
|
-
|
|
6760
|
+
debug
|
|
6760
6761
|
]);
|
|
6761
6762
|
}
|
|
6762
|
-
function mergeIfNotShallowEqual(prev, next
|
|
6763
|
+
function mergeIfNotShallowEqual(prev, next) {
|
|
6763
6764
|
return !prev || !next || isEqualShallow(prev, next) ? prev || next : {
|
|
6764
6765
|
...prev,
|
|
6765
6766
|
...next
|
|
@@ -7825,7 +7826,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
7825
7826
|
...states[0],
|
|
7826
7827
|
[props.forceStyle]: !0
|
|
7827
7828
|
} : states[0], setState = states[1];
|
|
7828
|
-
stateRef.current.nextComponentState &&
|
|
7829
|
+
stateRef.current.nextComponentState && Object.assign(state, stateRef.current.nextComponentState);
|
|
7829
7830
|
var isAnimated = willBeAnimated;
|
|
7830
7831
|
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState(function(_) {
|
|
7831
7832
|
return {
|
|
@@ -7864,26 +7865,6 @@ var require_useComponentState_native = __commonJS({
|
|
|
7864
7865
|
}
|
|
7865
7866
|
};
|
|
7866
7867
|
}
|
|
7867
|
-
if (!curStateRef.stateEmitter && hasAnimationProp) {
|
|
7868
|
-
var listeners1 = /* @__PURE__ */ new Set();
|
|
7869
|
-
curStateRef.stateEmitter = {
|
|
7870
|
-
listeners: listeners1,
|
|
7871
|
-
emit(state2) {
|
|
7872
|
-
listeners1.forEach(function(l) {
|
|
7873
|
-
return l(state2);
|
|
7874
|
-
});
|
|
7875
|
-
},
|
|
7876
|
-
subscribe(cb) {
|
|
7877
|
-
return listeners1.add(cb), setStateShallow({
|
|
7878
|
-
hasDynGroupChildren: !0
|
|
7879
|
-
}), function() {
|
|
7880
|
-
listeners1.delete(cb), listeners1.size === 0 && setStateShallow({
|
|
7881
|
-
hasDynGroupChildren: !1
|
|
7882
|
-
});
|
|
7883
|
-
};
|
|
7884
|
-
}
|
|
7885
|
-
};
|
|
7886
|
-
}
|
|
7887
7868
|
return {
|
|
7888
7869
|
startedUnhydrated,
|
|
7889
7870
|
curStateRef,
|
|
@@ -8133,7 +8114,13 @@ var require_createComponent_native = __commonJS({
|
|
|
8133
8114
|
}
|
|
8134
8115
|
});
|
|
8135
8116
|
module2.exports = __toCommonJS2(createComponent_exports);
|
|
8136
|
-
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()
|
|
8117
|
+
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(), avoidReRenderKeys = /* @__PURE__ */ new Set([
|
|
8118
|
+
"hover",
|
|
8119
|
+
"press",
|
|
8120
|
+
"pressIn",
|
|
8121
|
+
"group",
|
|
8122
|
+
"media"
|
|
8123
|
+
]);
|
|
8137
8124
|
if (0) var cancelTouches;
|
|
8138
8125
|
var BaseText, BaseView, hasSetupBaseViews = !1, lastInteractionWasKeyboard = {
|
|
8139
8126
|
value: !1
|
|
@@ -8227,19 +8214,18 @@ var require_createComponent_native = __commonJS({
|
|
|
8227
8214
|
if (hasAnimationProp && animationDriver != null && animationDriver.avoidReRenders) {
|
|
8228
8215
|
var styleListener = stateRef.current.useStyleListener, ogSetStateShallow = setStateShallow;
|
|
8229
8216
|
setStateShallow = function(next) {
|
|
8230
|
-
var
|
|
8231
|
-
"hover",
|
|
8232
|
-
"press",
|
|
8233
|
-
"pressIn"
|
|
8234
|
-
]), canAvoidReRender = Object.keys(next).every(function(key3) {
|
|
8217
|
+
var canAvoidReRender = Object.keys(next).every(function(key3) {
|
|
8235
8218
|
return avoidReRenderKeys.has(key3);
|
|
8236
8219
|
});
|
|
8237
8220
|
if (canAvoidReRender && styleListener) {
|
|
8238
|
-
var updatedState = {
|
|
8221
|
+
var _curStateRef_group, _curStateRef_group1, updatedState = {
|
|
8239
8222
|
...state,
|
|
8240
8223
|
...next
|
|
8241
8224
|
};
|
|
8242
|
-
|
|
8225
|
+
(_curStateRef_group1 = curStateRef.group) === null || _curStateRef_group1 === void 0 || _curStateRef_group1.emit(groupName, {
|
|
8226
|
+
pseudo: updatedState,
|
|
8227
|
+
layout: (_curStateRef_group = curStateRef.group) === null || _curStateRef_group === void 0 ? void 0 : _curStateRef_group.layout
|
|
8228
|
+
}), stateRef.current.nextComponentState = updatedState;
|
|
8243
8229
|
var nextStyles = (0, import_getSplitStyles.getSplitStyles)(props, staticConfig, theme, themeName, updatedState, styleProps, null, componentContext, elementType, startedUnhydrated, debugProp);
|
|
8244
8230
|
styleListener(nextStyles.style);
|
|
8245
8231
|
} else ogSetStateShallow(next);
|
|
@@ -8321,7 +8307,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8321
8307
|
});
|
|
8322
8308
|
};
|
|
8323
8309
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
8324
|
-
if (state.unmounted === !0 && hasEnterStyle) {
|
|
8310
|
+
if (stateRef.current.nextComponentState = void 0, state.unmounted === !0 && hasEnterStyle) {
|
|
8325
8311
|
setStateShallow({
|
|
8326
8312
|
unmounted: "should-enter"
|
|
8327
8313
|
});
|