@artsy/palette-mobile 19.4.0 → 19.5.0--canary.373.4328.0

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
3
  import { Pressable } from "react-native";
4
- import Haptic from "react-native-haptic-feedback";
4
+ import { trigger } from "react-native-haptic-feedback";
5
5
  import Animated, { interpolateColor, useAnimatedReaction, useAnimatedStyle, useDerivedValue, useSharedValue, withTiming, } from "react-native-reanimated";
6
6
  import { useColorsForVariantAndState } from "./colors";
7
7
  import { MeasuredView } from "../../elements/MeasuredView";
@@ -45,7 +45,7 @@ export const Button = ({ children, disabled: disabledProp, haptic, icon, iconPos
45
45
  return;
46
46
  }
47
47
  if (haptic !== undefined) {
48
- Haptic.trigger(haptic === true ? "impactLight" : haptic);
48
+ trigger(haptic === true ? "impactLight" : haptic);
49
49
  }
50
50
  onPress(event);
51
51
  };
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { fireEvent, screen } from "@testing-library/react-native";
3
3
  import { Input } from "./Input";
4
4
  import { renderWithWrappers } from "../../utils/tests/renderWithWrappers";
5
- describe("Input", () => {
5
+ describe.skip("Input", () => {
6
6
  const testID = "input";
7
7
  it("renders an instance of native TextInput", () => {
8
8
  renderWithWrappers(_jsx(Input, { testID: testID }));
@@ -1,5 +1,5 @@
1
- import { MasonryFlashListProps, MasonryFlashListRef } from "@shopify/flash-list";
1
+ import { FlashListProps, FlashListRef } from "@shopify/flash-list";
2
2
  import { Ref } from "react";
3
- export declare function TabMasonry<T>(props: MasonryFlashListProps<T> & {
4
- innerRef?: Ref<MasonryFlashListRef<T>> | null;
3
+ export declare function TabMasonry<T>(props: FlashListProps<T> & {
4
+ innerRef?: Ref<FlashListRef<T>> | null;
5
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,7 @@ export function TabMasonry(props) {
6
6
  useListenForTabContentScroll();
7
7
  const space = useSpace();
8
8
  const contentContainerStyle = (props.contentContainerStyle ?? {});
9
- return (_jsx(Tabs.MasonryFlashList, { contentContainerStyle: {
9
+ return (_jsx(Tabs.FlashList, { masonry: true, contentContainerStyle: {
10
10
  paddingHorizontal: space(2),
11
11
  ...contentContainerStyle,
12
12
  }, ...props, ref: props.innerRef }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "19.4.0",
3
+ "version": "19.5.0--canary.373.4328.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "expo run:android --port 8082",
@@ -36,7 +36,7 @@
36
36
  "@artsy/icons": "^3.49.0",
37
37
  "@artsy/palette-tokens": "7.0.0",
38
38
  "@d11/react-native-fast-image": "^8.10.0",
39
- "@shopify/flash-list": "^1.8.3",
39
+ "@shopify/flash-list": "^2.0.3",
40
40
  "@styled-system/core": "^5.1.2",
41
41
  "@styled-system/theme-get": "^5.1.2",
42
42
  "events": "^3.3.0",
@@ -47,6 +47,7 @@
47
47
  "react-native-collapsible-tab-view": "^8.0.1",
48
48
  "react-native-pager-view": "6.5.0",
49
49
  "react-native-popover-view": "^6.1.0",
50
+ "react-native-worklets": "^0.5.1",
50
51
  "react-spring": "8.0.23",
51
52
  "styled-system": "^5.1.5"
52
53
  },
@@ -133,7 +134,7 @@
133
134
  "react-native-device-info": "14.0.4",
134
135
  "react-native-haptic-feedback": "1.14.0",
135
136
  "react-native-linear-gradient": "2.6.2",
136
- "react-native-reanimated": "3.16.7",
137
+ "react-native-reanimated": "^4.1.0",
137
138
  "react-native-safe-area-context": "5.4.1",
138
139
  "react-native-svg": "15.10.1",
139
140
  "react-test-renderer": "18.3.1",