@artsy/palette-mobile 19.7.0--canary.373.4386.0 → 19.7.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.
package/README.md CHANGED
@@ -45,9 +45,20 @@ If you'd like to add a new component to Palette please create an issue using the
45
45
 
46
46
  ## Local development
47
47
 
48
+ ```sh
49
+ mise install
50
+ ```
51
+
52
+ If you are still using asdf:
53
+
54
+ ```sh
55
+ asdf install
56
+ ```
57
+
48
58
  Set up using:
49
59
 
50
60
  ```sh
61
+ yarn install
51
62
  yarn setup:artsy
52
63
  yarn install:all
53
64
  ```
@@ -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 { trigger } from "react-native-haptic-feedback";
4
+ import Haptic 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
- trigger(haptic === true ? "impactLight" : haptic);
48
+ Haptic.trigger(haptic === true ? "impactLight" : haptic);
49
49
  }
50
50
  onPress(event);
51
51
  };
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react" />
3
3
  import { EventEmitter } from "events";
4
4
  import { TextInput, TextInputProps } from "react-native";
5
- export declare const inputEvents: EventEmitter;
5
+ export declare const inputEvents: EventEmitter<[never]>;
6
6
  export declare const emitInputClearEvent: () => void;
7
7
  export interface InputProps extends Omit<TextInputProps, "placeholder" | "onChangeText"> {
8
8
  addClearListener?: boolean;
@@ -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.skip("Input", () => {
5
+ describe("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 { FlashListProps, FlashListRef } from "@shopify/flash-list";
1
+ import { MasonryFlashListProps, MasonryFlashListRef } from "@shopify/flash-list";
2
2
  import { Ref } from "react";
3
- export declare function TabMasonry<T>(props: FlashListProps<T> & {
4
- innerRef?: Ref<FlashListRef<T>> | null;
3
+ export declare function TabMasonry<T>(props: MasonryFlashListProps<T> & {
4
+ innerRef?: Ref<MasonryFlashListRef<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.FlashList, { masonry: true, contentContainerStyle: {
9
+ return (_jsx(Tabs.MasonryFlashList, { 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.7.0--canary.373.4386.0",
3
+ "version": "19.7.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.12.0",
39
- "@shopify/flash-list": "^2.0.3",
39
+ "@shopify/flash-list": "^1.8.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,7 +47,6 @@
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",
51
50
  "react-spring": "8.0.23",
52
51
  "styled-system": "^5.1.5"
53
52
  },
@@ -127,7 +126,7 @@
127
126
  "react-native-device-info": "14.0.4",
128
127
  "react-native-haptic-feedback": "1.14.0",
129
128
  "react-native-linear-gradient": "2.6.2",
130
- "react-native-reanimated": "^4.1.0",
129
+ "react-native-reanimated": "3.16.7",
131
130
  "react-native-safe-area-context": "5.4.1",
132
131
  "react-native-svg": "15.10.1",
133
132
  "react-test-renderer": "18.3.1",
@@ -139,7 +138,7 @@
139
138
  "@types/react": "18.3.12"
140
139
  },
141
140
  "engines": {
142
- "yarn": "1.x"
141
+ "yarn": "4.x"
143
142
  },
144
143
  "files": [
145
144
  "dist"
@@ -168,5 +167,5 @@
168
167
  "prettier --write --ignore-unknown"
169
168
  ]
170
169
  },
171
- "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
170
+ "packageManager": "yarn@4.10.0"
172
171
  }