@artsy/palette-mobile 11.2.10 → 11.2.11

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v11.2.11 (Fri Jul 28 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - build: bumps palette to reanimated 3 [#125](https://github.com/artsy/palette-mobile/pull/125) ([@gkartalis](https://github.com/gkartalis))
6
+
7
+ #### Authors: 1
8
+
9
+ - George ([@gkartalis](https://github.com/gkartalis))
10
+
11
+ ---
12
+
1
13
  # v11.2.10 (Fri Jul 28 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -80,7 +80,6 @@ const Button = ({ children, disabled: disabledProp, haptic, icon, iconPosition =
80
80
  };
81
81
  const colorsForVariantAndState = (0, colors_1.useColorsForVariantAndState)();
82
82
  const containerColorsAnim = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
83
- "worklet";
84
83
  const colors = colorsForVariantAndState[variant];
85
84
  if (disabled) {
86
85
  return {
@@ -94,7 +93,6 @@ const Button = ({ children, disabled: disabledProp, haptic, icon, iconPosition =
94
93
  };
95
94
  });
96
95
  const textAnim = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
97
- "worklet";
98
96
  const colors = colorsForVariantAndState[variant];
99
97
  if (loading) {
100
98
  return { color: "rgba(0, 0, 0, 0)" };
@@ -125,7 +123,6 @@ const useStateWithProp = (prop) => {
125
123
  setState(!!prop);
126
124
  }, [prop]);
127
125
  const stateV = (0, react_native_reanimated_1.useDerivedValue)(() => {
128
- "worklet";
129
126
  if (!!state) {
130
127
  return 1;
131
128
  }
@@ -41,7 +41,6 @@ const Pill = ({ variant = "default", src, selected, disabled, Icon, children, on
41
41
  const stateString = selected ? "selected" : disabled ? "disabled" : "default";
42
42
  const color = TEXT_COLOR[variant][stateString];
43
43
  return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { ...rest, children: (0, jsx_runtime_1.jsxs)(Container, { variant: variant, selected: selected, disabled: disabled, onPress: onPress, animate: (0, react_1.useMemo)(() => ({ hovered, pressed }) => {
44
- "worklet";
45
44
  return {
46
45
  opacity: hovered || pressed ? 0.5 : 1,
47
46
  };
@@ -35,7 +35,6 @@ const ProgressBar = ({ animationDuration = 200, backgroundColor = "black30", hei
35
35
  const width = (0, react_native_reanimated_1.useSharedValue)("0%");
36
36
  const progress = clamp(unclampedProgress, 0, 100);
37
37
  const progressAnim = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
38
- "worklet";
39
38
  return { width: width.value };
40
39
  });
41
40
  const [onCompletionCalled, setOnCompletionCalled] = (0, react_1.useState)(false);
@@ -20,10 +20,8 @@ const useAnimatedHeaderScrolling = (scrollY) => {
20
20
  };
21
21
  }, [listenForScroll]);
22
22
  (0, react_native_reanimated_1.useAnimatedReaction)(() => {
23
- "worklet";
24
23
  return [scrollY.value, listenForScroll.value];
25
24
  }, ([animatedScrollY, isListeningForScroll], previousScroll) => {
26
- "worklet";
27
25
  const [prevScrollY] = previousScroll ?? [0, false];
28
26
  // Hacky way to avoid some weird header behavior.
29
27
  // look at HACKS.md for more info.
@@ -11,7 +11,6 @@ const useListenForScreenScroll = () => {
11
11
  const scrollY = (0, useAnimatedHeaderScrolling_1.useAnimatedHeaderScrolling)(animatedScrollY);
12
12
  const scrollHandler = (0, react_native_reanimated_1.useAnimatedScrollHandler)({
13
13
  onScroll: (event) => {
14
- "worklet";
15
14
  animatedScrollY.value = event.contentOffset.y;
16
15
  },
17
16
  });
@@ -43,7 +43,6 @@ const Skeleton = ({ children }) => {
43
43
  const opacity = (0, react_native_reanimated_1.useSharedValue)(0.5);
44
44
  opacity.value = (0, react_native_reanimated_1.withRepeat)((0, react_native_reanimated_1.withTiming)(1, { duration: 1000, easing: react_native_reanimated_1.Easing.ease }), -1, true);
45
45
  const fadeLoopAnim = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
46
- "worklet";
47
46
  return { opacity: opacity.value };
48
47
  }, []);
49
48
  return (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: fadeLoopAnim, children: children });
@@ -17,7 +17,6 @@ const SubTabBar = ({ children }) => {
17
17
  const scrollY = (0, react_native_collapsible_tab_view_1.useCurrentTabScrollY)();
18
18
  const space = (0, useSpace_1.useSpace)();
19
19
  const style = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
20
- "worklet";
21
20
  return {
22
21
  transform: [
23
22
  {
@@ -35,7 +35,6 @@ const ToolTipFlyout = ({ containerStyle, tapToDismiss, height, width, onClose, o
35
35
  const initialBoxDimensions = { height: 0, width: 0 };
36
36
  const boxDimensions = (0, react_native_reanimated_1.useSharedValue)(initialBoxDimensions);
37
37
  const animationStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
38
- "worklet";
39
38
  return {
40
39
  height: (0, react_native_reanimated_1.withTiming)(boxDimensions.value.height, {
41
40
  duration: 500,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "11.2.10",
3
+ "version": "11.2.11",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "react-native run-android",
@@ -116,7 +116,7 @@
116
116
  "react-native-flipper": "0.178.1",
117
117
  "react-native-haptic-feedback": "1.14.0",
118
118
  "react-native-linear-gradient": "2.6.2",
119
- "react-native-reanimated": "2.14.4",
119
+ "react-native-reanimated": "^3.3.0",
120
120
  "react-native-safe-area-context": "4.5.0",
121
121
  "react-native-svg": "13.7.0",
122
122
  "react-test-renderer": "18.2.0",