tamagui 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.cjs +10 -3
- package/package.json +55 -55
package/dist/native.cjs
CHANGED
|
@@ -3865,9 +3865,16 @@ function _type_of$4(obj) {
|
|
|
3865
3865
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
3866
3866
|
}
|
|
3867
3867
|
var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
3868
|
-
var _animationDriver_usePresence, isHydrated = useDidFinishSSR(), needsHydration = !useIsClientOnly(),
|
|
3868
|
+
var _animationDriver_usePresence, isHydrated = useDidFinishSSR(), needsHydration = !useIsClientOnly(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, {
|
|
3869
3869
|
isHOC
|
|
3870
|
-
} = staticConfig, stateRef = React.useRef(
|
|
3870
|
+
} = staticConfig, stateRef = React.useRef(
|
|
3871
|
+
// performance: avoid creating object every render
|
|
3872
|
+
void 0
|
|
3873
|
+
);
|
|
3874
|
+
stateRef.current || (stateRef.current = {
|
|
3875
|
+
startedUnhydrated: needsHydration && !isHydrated
|
|
3876
|
+
});
|
|
3877
|
+
var hasAnimationProp = !!(!isHOC && "animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
3871
3878
|
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = true);
|
|
3872
3879
|
var willBeAnimatedClient = (function() {
|
|
3873
3880
|
var next = !!(hasAnimationProp && !isHOC && useAnimations);
|
|
@@ -3907,7 +3914,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
3907
3914
|
}
|
|
3908
3915
|
var noClass = !isWeb;
|
|
3909
3916
|
return {
|
|
3910
|
-
startedUnhydrated,
|
|
3917
|
+
startedUnhydrated: curStateRef.startedUnhydrated,
|
|
3911
3918
|
curStateRef,
|
|
3912
3919
|
disabled,
|
|
3913
3920
|
groupName,
|
package/dist/test.cjs
CHANGED
|
@@ -4107,9 +4107,16 @@ function _type_of$4(obj) {
|
|
|
4107
4107
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
4108
4108
|
}
|
|
4109
4109
|
var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
4110
|
-
var _animationDriver_usePresence, isHydrated = useDidFinishSSR(), needsHydration = !useIsClientOnly(),
|
|
4110
|
+
var _animationDriver_usePresence, isHydrated = useDidFinishSSR(), needsHydration = !useIsClientOnly(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, {
|
|
4111
4111
|
isHOC
|
|
4112
|
-
} = staticConfig, stateRef = React.useRef(
|
|
4112
|
+
} = staticConfig, stateRef = React.useRef(
|
|
4113
|
+
// performance: avoid creating object every render
|
|
4114
|
+
void 0
|
|
4115
|
+
);
|
|
4116
|
+
stateRef.current || (stateRef.current = {
|
|
4117
|
+
startedUnhydrated: needsHydration && !isHydrated
|
|
4118
|
+
});
|
|
4119
|
+
var hasAnimationProp = !!(!isHOC && "animation" in props || props.style && hasAnimatedStyleValue(props.style)), supportsCSS = animationDriver == null ? void 0 : animationDriver.supportsCSS, curStateRef = stateRef.current;
|
|
4113
4120
|
!needsHydration && hasAnimationProp && (curStateRef.hasAnimated = true);
|
|
4114
4121
|
var willBeAnimatedClient = (function() {
|
|
4115
4122
|
var next = !!(hasAnimationProp && !isHOC && useAnimations);
|
|
@@ -4149,7 +4156,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
4149
4156
|
}
|
|
4150
4157
|
var noClass = !isWeb;
|
|
4151
4158
|
return {
|
|
4152
|
-
startedUnhydrated,
|
|
4159
|
+
startedUnhydrated: curStateRef.startedUnhydrated,
|
|
4153
4160
|
curStateRef,
|
|
4154
4161
|
disabled,
|
|
4155
4162
|
groupName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui",
|
|
3
|
-
"version": "1.138.
|
|
3
|
+
"version": "1.138.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Style and UI for React (web and native) meet an optimizing compiler",
|
|
6
6
|
"removeSideEffects": true,
|
|
@@ -81,62 +81,62 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@tamagui/accordion": "1.138.
|
|
85
|
-
"@tamagui/adapt": "1.138.
|
|
86
|
-
"@tamagui/alert-dialog": "1.138.
|
|
87
|
-
"@tamagui/animate-presence": "1.138.
|
|
88
|
-
"@tamagui/avatar": "1.138.
|
|
89
|
-
"@tamagui/button": "1.138.
|
|
90
|
-
"@tamagui/card": "1.138.
|
|
91
|
-
"@tamagui/checkbox": "1.138.
|
|
92
|
-
"@tamagui/compose-refs": "1.138.
|
|
93
|
-
"@tamagui/constants": "1.138.
|
|
94
|
-
"@tamagui/core": "1.138.
|
|
95
|
-
"@tamagui/create-context": "1.138.
|
|
96
|
-
"@tamagui/dialog": "1.138.
|
|
97
|
-
"@tamagui/elements": "1.138.
|
|
98
|
-
"@tamagui/fake-react-native": "1.138.
|
|
99
|
-
"@tamagui/focusable": "1.138.
|
|
100
|
-
"@tamagui/font-size": "1.138.
|
|
101
|
-
"@tamagui/form": "1.138.
|
|
102
|
-
"@tamagui/get-button-sized": "1.138.
|
|
103
|
-
"@tamagui/get-font-sized": "1.138.
|
|
104
|
-
"@tamagui/get-token": "1.138.
|
|
105
|
-
"@tamagui/group": "1.138.
|
|
106
|
-
"@tamagui/helpers-tamagui": "1.138.
|
|
107
|
-
"@tamagui/image": "1.138.
|
|
108
|
-
"@tamagui/label": "1.138.
|
|
109
|
-
"@tamagui/linear-gradient": "1.138.
|
|
110
|
-
"@tamagui/list-item": "1.138.
|
|
111
|
-
"@tamagui/polyfill-dev": "1.138.
|
|
112
|
-
"@tamagui/popover": "1.138.
|
|
113
|
-
"@tamagui/popper": "1.138.
|
|
114
|
-
"@tamagui/portal": "1.138.
|
|
115
|
-
"@tamagui/progress": "1.138.
|
|
116
|
-
"@tamagui/radio-group": "1.138.
|
|
117
|
-
"@tamagui/react-native-media-driver": "1.138.
|
|
118
|
-
"@tamagui/scroll-view": "1.138.
|
|
119
|
-
"@tamagui/select": "1.138.
|
|
120
|
-
"@tamagui/separator": "1.138.
|
|
121
|
-
"@tamagui/shapes": "1.138.
|
|
122
|
-
"@tamagui/sheet": "1.138.
|
|
123
|
-
"@tamagui/slider": "1.138.
|
|
124
|
-
"@tamagui/stacks": "1.138.
|
|
125
|
-
"@tamagui/switch": "1.138.
|
|
126
|
-
"@tamagui/tabs": "1.138.
|
|
127
|
-
"@tamagui/text": "1.138.
|
|
128
|
-
"@tamagui/theme": "1.138.
|
|
129
|
-
"@tamagui/toggle-group": "1.138.
|
|
130
|
-
"@tamagui/tooltip": "1.138.
|
|
131
|
-
"@tamagui/use-controllable-state": "1.138.
|
|
132
|
-
"@tamagui/use-debounce": "1.138.
|
|
133
|
-
"@tamagui/use-force-update": "1.138.
|
|
134
|
-
"@tamagui/use-window-dimensions": "1.138.
|
|
135
|
-
"@tamagui/visually-hidden": "1.138.
|
|
136
|
-
"@tamagui/z-index-stack": "1.138.
|
|
84
|
+
"@tamagui/accordion": "1.138.2",
|
|
85
|
+
"@tamagui/adapt": "1.138.2",
|
|
86
|
+
"@tamagui/alert-dialog": "1.138.2",
|
|
87
|
+
"@tamagui/animate-presence": "1.138.2",
|
|
88
|
+
"@tamagui/avatar": "1.138.2",
|
|
89
|
+
"@tamagui/button": "1.138.2",
|
|
90
|
+
"@tamagui/card": "1.138.2",
|
|
91
|
+
"@tamagui/checkbox": "1.138.2",
|
|
92
|
+
"@tamagui/compose-refs": "1.138.2",
|
|
93
|
+
"@tamagui/constants": "1.138.2",
|
|
94
|
+
"@tamagui/core": "1.138.2",
|
|
95
|
+
"@tamagui/create-context": "1.138.2",
|
|
96
|
+
"@tamagui/dialog": "1.138.2",
|
|
97
|
+
"@tamagui/elements": "1.138.2",
|
|
98
|
+
"@tamagui/fake-react-native": "1.138.2",
|
|
99
|
+
"@tamagui/focusable": "1.138.2",
|
|
100
|
+
"@tamagui/font-size": "1.138.2",
|
|
101
|
+
"@tamagui/form": "1.138.2",
|
|
102
|
+
"@tamagui/get-button-sized": "1.138.2",
|
|
103
|
+
"@tamagui/get-font-sized": "1.138.2",
|
|
104
|
+
"@tamagui/get-token": "1.138.2",
|
|
105
|
+
"@tamagui/group": "1.138.2",
|
|
106
|
+
"@tamagui/helpers-tamagui": "1.138.2",
|
|
107
|
+
"@tamagui/image": "1.138.2",
|
|
108
|
+
"@tamagui/label": "1.138.2",
|
|
109
|
+
"@tamagui/linear-gradient": "1.138.2",
|
|
110
|
+
"@tamagui/list-item": "1.138.2",
|
|
111
|
+
"@tamagui/polyfill-dev": "1.138.2",
|
|
112
|
+
"@tamagui/popover": "1.138.2",
|
|
113
|
+
"@tamagui/popper": "1.138.2",
|
|
114
|
+
"@tamagui/portal": "1.138.2",
|
|
115
|
+
"@tamagui/progress": "1.138.2",
|
|
116
|
+
"@tamagui/radio-group": "1.138.2",
|
|
117
|
+
"@tamagui/react-native-media-driver": "1.138.2",
|
|
118
|
+
"@tamagui/scroll-view": "1.138.2",
|
|
119
|
+
"@tamagui/select": "1.138.2",
|
|
120
|
+
"@tamagui/separator": "1.138.2",
|
|
121
|
+
"@tamagui/shapes": "1.138.2",
|
|
122
|
+
"@tamagui/sheet": "1.138.2",
|
|
123
|
+
"@tamagui/slider": "1.138.2",
|
|
124
|
+
"@tamagui/stacks": "1.138.2",
|
|
125
|
+
"@tamagui/switch": "1.138.2",
|
|
126
|
+
"@tamagui/tabs": "1.138.2",
|
|
127
|
+
"@tamagui/text": "1.138.2",
|
|
128
|
+
"@tamagui/theme": "1.138.2",
|
|
129
|
+
"@tamagui/toggle-group": "1.138.2",
|
|
130
|
+
"@tamagui/tooltip": "1.138.2",
|
|
131
|
+
"@tamagui/use-controllable-state": "1.138.2",
|
|
132
|
+
"@tamagui/use-debounce": "1.138.2",
|
|
133
|
+
"@tamagui/use-force-update": "1.138.2",
|
|
134
|
+
"@tamagui/use-window-dimensions": "1.138.2",
|
|
135
|
+
"@tamagui/visually-hidden": "1.138.2",
|
|
136
|
+
"@tamagui/z-index-stack": "1.138.2"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
139
|
-
"@tamagui/build": "1.138.
|
|
139
|
+
"@tamagui/build": "1.138.2",
|
|
140
140
|
"react": "*",
|
|
141
141
|
"react-native": "0.81.5",
|
|
142
142
|
"react-native-web": "^0.21.0"
|