@tamagui/core 1.138.0 → 1.138.2
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.cjs +10 -3
- package/dist/test.native.cjs +10 -3
- package/package.json +11 -11
package/dist/native.cjs
CHANGED
|
@@ -3434,9 +3434,16 @@ function _type_of$1(obj) {
|
|
|
3434
3434
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
3435
3435
|
}
|
|
3436
3436
|
var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
3437
|
-
var _animationDriver_usePresence, isHydrated = useDidFinishSSR(), needsHydration = !useIsClientOnly(),
|
|
3437
|
+
var _animationDriver_usePresence, isHydrated = useDidFinishSSR(), needsHydration = !useIsClientOnly(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, {
|
|
3438
3438
|
isHOC
|
|
3439
|
-
} = staticConfig, stateRef = React.useRef(
|
|
3439
|
+
} = staticConfig, stateRef = React.useRef(
|
|
3440
|
+
// performance: avoid creating object every render
|
|
3441
|
+
void 0
|
|
3442
|
+
);
|
|
3443
|
+
stateRef.current || (stateRef.current = {
|
|
3444
|
+
startedUnhydrated: needsHydration && !isHydrated
|
|
3445
|
+
});
|
|
3446
|
+
var hasAnimationProp = !!(!isHOC && "animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
3440
3447
|
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = true);
|
|
3441
3448
|
var willBeAnimatedClient = (function() {
|
|
3442
3449
|
var next = !!(hasAnimationProp && !isHOC && useAnimations);
|
|
@@ -3476,7 +3483,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
3476
3483
|
}
|
|
3477
3484
|
var noClass = !isWeb;
|
|
3478
3485
|
return {
|
|
3479
|
-
startedUnhydrated,
|
|
3486
|
+
startedUnhydrated: curStateRef.startedUnhydrated,
|
|
3480
3487
|
curStateRef,
|
|
3481
3488
|
disabled,
|
|
3482
3489
|
groupName,
|
package/dist/test.native.cjs
CHANGED
|
@@ -3260,9 +3260,16 @@ function _type_of$1(obj) {
|
|
|
3260
3260
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
3261
3261
|
}
|
|
3262
3262
|
var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
3263
|
-
var _animationDriver_usePresence, isHydrated = useDidFinishSSR(), needsHydration = !useIsClientOnly(),
|
|
3263
|
+
var _animationDriver_usePresence, isHydrated = useDidFinishSSR(), needsHydration = !useIsClientOnly(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, {
|
|
3264
3264
|
isHOC
|
|
3265
|
-
} = staticConfig, stateRef = React.useRef(
|
|
3265
|
+
} = staticConfig, stateRef = React.useRef(
|
|
3266
|
+
// performance: avoid creating object every render
|
|
3267
|
+
void 0
|
|
3268
|
+
);
|
|
3269
|
+
stateRef.current || (stateRef.current = {
|
|
3270
|
+
startedUnhydrated: needsHydration && !isHydrated
|
|
3271
|
+
});
|
|
3272
|
+
var hasAnimationProp = !!(!isHOC && "animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
3266
3273
|
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = true);
|
|
3267
3274
|
var willBeAnimatedClient = (function() {
|
|
3268
3275
|
var next = !!(hasAnimationProp && !isHOC && useAnimations);
|
|
@@ -3302,7 +3309,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
3302
3309
|
}
|
|
3303
3310
|
var noClass = !isWeb;
|
|
3304
3311
|
return {
|
|
3305
|
-
startedUnhydrated,
|
|
3312
|
+
startedUnhydrated: curStateRef.startedUnhydrated,
|
|
3306
3313
|
curStateRef,
|
|
3307
3314
|
disabled,
|
|
3308
3315
|
groupName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "1.138.
|
|
3
|
+
"version": "1.138.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"native-test.d.ts"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tamagui/helpers": "1.138.
|
|
37
|
-
"@tamagui/react-native-media-driver": "1.138.
|
|
38
|
-
"@tamagui/react-native-use-pressable": "1.138.
|
|
39
|
-
"@tamagui/react-native-use-responder-events": "1.138.
|
|
40
|
-
"@tamagui/use-element-layout": "1.138.
|
|
41
|
-
"@tamagui/use-event": "1.138.
|
|
42
|
-
"@tamagui/web": "1.138.
|
|
36
|
+
"@tamagui/helpers": "1.138.2",
|
|
37
|
+
"@tamagui/react-native-media-driver": "1.138.2",
|
|
38
|
+
"@tamagui/react-native-use-pressable": "1.138.2",
|
|
39
|
+
"@tamagui/react-native-use-responder-events": "1.138.2",
|
|
40
|
+
"@tamagui/use-element-layout": "1.138.2",
|
|
41
|
+
"@tamagui/use-event": "1.138.2",
|
|
42
|
+
"@tamagui/web": "1.138.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@tamagui/build": "1.138.
|
|
46
|
-
"@tamagui/native-bundle": "1.138.
|
|
47
|
-
"@tamagui/react-native-web-lite": "1.138.
|
|
45
|
+
"@tamagui/build": "1.138.2",
|
|
46
|
+
"@tamagui/native-bundle": "1.138.2",
|
|
47
|
+
"@tamagui/react-native-web-lite": "1.138.2",
|
|
48
48
|
"@testing-library/react": "^16.1.0",
|
|
49
49
|
"csstype": "^3.0.10",
|
|
50
50
|
"react": "*",
|