@artsy/palette-mobile 13.2.45 → 14.0.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,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FlatList, FlatListProps } from "react-native";
3
- export type ScreenFlatListProps<T> = FlatListProps<T> & {
3
+ export type ScreenFlatListProps<T> = Omit<FlatListProps<T>, "CellRendererComponent"> & {
4
4
  innerRef?: React.ForwardedRef<FlatList<T>>;
5
5
  };
6
6
  export declare function ScreenFlatList<T>(props: ScreenFlatListProps<T>): JSX.Element;
package/dist/setupJest.js CHANGED
@@ -1,10 +1,9 @@
1
1
  // @ts-expect-error
2
2
  global.__TEST__ = true;
3
- // @ts-expect-error
4
3
  import mockSafeAreaContext from "react-native-safe-area-context/jest/mock";
5
4
  jest.mock("react-native-safe-area-context", () => mockSafeAreaContext);
6
5
  jest.mock("react-native/Libraries/Animated/NativeAnimatedHelper");
7
- require("react-native-reanimated/src/reanimated2/jestUtils").setUpTests();
6
+ require("react-native-reanimated").setUpTests();
8
7
  // @ts-expect-error
9
8
  global.__reanimatedWorkletInit = () => { };
10
9
  jest.mock("react-native-reanimated", () => require("react-native-reanimated/mock"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "13.2.45",
3
+ "version": "14.0.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "RCT_METRO_PORT=8082 react-native run-android --port 8082 --terminal terminal",
@@ -15,7 +15,7 @@
15
15
  "local-palette-dev": "./scripts/sync-after-change",
16
16
  "open-xcode": "open ios/PaletteMobile.xcworkspace",
17
17
  "pod-install": "cd ios && bundle exec pod install && cd ..",
18
- "prepare": "husky install",
18
+ "prepare": "patch-package && husky install",
19
19
  "prepublishOnly": "yarn clean && yarn compile",
20
20
  "prestart": "sb-rn-get-stories",
21
21
  "prettier-write": "prettier --write --ignore-unknown",
@@ -25,7 +25,7 @@
25
25
  "start:reset-cache": "react-native start --reset-cache --port 8082",
26
26
  "start": "react-native start --port 8082",
27
27
  "storybook-watcher": "sb-rn-watcher",
28
- "test": "jest",
28
+ "test": "jest --maxWorkers=2",
29
29
  "type-check": "tsc --noEmit"
30
30
  },
31
31
  "dependenciesComments": [
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@artsy/palette-tokens": "^6.0.3",
37
- "@shopify/flash-list": "^1.6.4",
37
+ "@shopify/flash-list": "1.7.1",
38
38
  "@styled-system/core": "^5.1.2",
39
39
  "@styled-system/theme-get": "^5.1.2",
40
40
  "events": "^3.3.0",
@@ -44,7 +44,7 @@
44
44
  "react-native-blurhash": "^1.1.11",
45
45
  "react-native-collapsible-tab-view": "^8.0.0",
46
46
  "react-native-fast-image": "^8.6.3",
47
- "react-native-pager-view": "^6.2.0",
47
+ "react-native-pager-view": "6.5.0",
48
48
  "react-native-popover-view": "^5.1.7",
49
49
  "react-spring": "8.0.23",
50
50
  "styled-system": "^5.1.5"
@@ -74,19 +74,17 @@
74
74
  "@babel/preset-typescript": "7.18.6",
75
75
  "@babel/runtime": "^7.20.13",
76
76
  "@react-native-async-storage/async-storage": "1.19.8",
77
- "@react-native/babel-preset": "0.73.21",
78
- "@react-native/eslint-config": "^0.73.2",
79
- "@react-native/metro-config": "^0.73.5",
80
- "@react-native/typescript-config": "0.73.1",
77
+ "@react-native/babel-preset": "0.75.4",
78
+ "@react-native/eslint-config": "0.75.4",
79
+ "@react-native/metro-config": "0.75.4",
80
+ "@react-native/typescript-config": "0.75.4",
81
81
  "@storybook/react-native": "6.0.1-beta.11",
82
- "@testing-library/jest-native": "^5.4.2",
83
- "@testing-library/react-hooks": "8.0.1",
84
- "@testing-library/react-native": "11.5.1",
82
+ "@testing-library/react-native": "12.8.1",
85
83
  "@types/events": "^3.0.0",
86
84
  "@types/jest": "29.4.0",
87
85
  "@types/lodash": "4.14.191",
88
86
  "@types/react": "^17.0.39",
89
- "@types/react-test-renderer": "^18.0.0",
87
+ "@types/react-test-renderer": "18.3.0",
90
88
  "@types/styled-components": "^5.1.26",
91
89
  "@types/styled-components-react-native": "^5.2.1",
92
90
  "@types/styled-system": "^5.1.16",
@@ -116,21 +114,21 @@
116
114
  "lint-staged": "13.1.2",
117
115
  "metro-react-native-babel-preset": "0.76.8",
118
116
  "nodemon": "^2.0.20",
117
+ "patch-package": "^8.0.0",
118
+ "postinstall-prepare": "^2.0.0",
119
119
  "prettier": "^2.8.8",
120
120
  "pull-lock": "1.0.0",
121
- "react": "18.2.0",
121
+ "react": "18.3.1",
122
122
  "react-dom": "18.2.0",
123
- "react-native": "0.73.10",
123
+ "react-native": "0.75.4",
124
124
  "react-native-device-info": "10.3.0",
125
- "react-native-flipper": "0.265.0",
126
125
  "react-native-haptic-feedback": "1.14.0",
127
126
  "react-native-linear-gradient": "2.6.2",
128
- "react-native-reanimated": "3.8.1",
129
- "react-native-safe-area-context": "4.5.0",
127
+ "react-native-reanimated": "3.16.1",
128
+ "react-native-safe-area-context": "4.11.1",
130
129
  "react-native-svg": "14.1.0",
131
- "react-test-renderer": "18.2.0",
130
+ "react-test-renderer": "18.3.1",
132
131
  "rimraf": "4.1.2",
133
- "rn-flipper-async-storage-advanced": "1.0.4",
134
132
  "styled-components": "^5.3.6",
135
133
  "typescript": "5.0.4"
136
134
  },