Skip to content

Commit 54d805c

Browse files
committed
(feat): Cleanup composer
Changelog: enhancement
1 parent 99b97a3 commit 54d805c

20 files changed

Lines changed: 4954 additions & 4684 deletions

apps/polycentric/package.json

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@
1717
},
1818
"dependencies": {
1919
"@codeherence/react-native-header": "^1.0.1",
20+
"@expo/dom-webview": "~55.0.6",
2021
"@expo/metro-runtime": "~55.0.11",
21-
"@expo/vector-icons": "^15.0.3",
22-
"@gorhom/bottom-sheet": "^5.2.8",
22+
"@expo/vector-icons": "^15.1.1",
23+
"@gorhom/bottom-sheet": "^5.2.14",
2324
"@lodev09/react-native-true-sheet": "^3.10.1",
2425
"@noble/hashes": "catalog:",
2526
"@polycentric/react-native": "workspace:*",
2627
"@react-native-async-storage/async-storage": "^2.2.0",
27-
"@react-navigation/bottom-tabs": "^7.15.4",
28-
"@react-navigation/elements": "^2.8.0",
29-
"@react-navigation/native": "^7.1.32",
28+
"@react-navigation/bottom-tabs": "^7.17.2",
29+
"@react-navigation/elements": "^2.9.22",
30+
"@react-navigation/native": "^7.3.0",
3031
"@rn-primitives/dropdown-menu": "^1.4.0",
3132
"@rn-primitives/hover-card": "^1.4.0",
3233
"@rn-primitives/popover": "^1.4.0",
@@ -35,59 +36,62 @@
3536
"@rn-primitives/toast": "^1.4.0",
3637
"@shopify/flash-list": "^2.3.1",
3738
"@types/react-native-web": "^0.19.2",
38-
"better-sqlite3": "^12.6.2",
39+
"better-sqlite3": "^12.10.0",
3940
"expo": "~55.0.26",
40-
"expo-blur": "~55.0.8",
41-
"expo-build-properties": "~55.0.9",
41+
"expo-blur": "~55.0.14",
42+
"expo-build-properties": "~55.0.14",
4243
"expo-clipboard": "~55.0.13",
43-
"expo-constants": "~55.0.7",
44-
"expo-dev-client": "~55.0.10",
45-
"expo-device": "~55.0.0",
46-
"expo-document-picker": "~55.0.8",
47-
"expo-file-system": "~55.0.17",
48-
"expo-font": "~55.0.4",
49-
"expo-haptics": "~55.0.8",
50-
"expo-image": "~55.0.5",
44+
"expo-constants": "~55.0.16",
45+
"expo-dev-client": "~55.0.35",
46+
"expo-device": "~55.0.17",
47+
"expo-document-picker": "~55.0.13",
48+
"expo-file-system": "~55.0.22",
49+
"expo-font": "~55.0.8",
50+
"expo-haptics": "~55.0.14",
51+
"expo-image": "~55.0.11",
5152
"expo-image-manipulator": "~55.0.17",
52-
"expo-image-picker": "~55.0.10",
53-
"expo-linking": "~55.0.7",
54-
"expo-notifications": "~55.0.0",
55-
"expo-router": "~55.0.3",
53+
"expo-image-picker": "~55.0.20",
54+
"expo-linking": "~55.0.15",
55+
"expo-notifications": "~55.0.23",
56+
"expo-router": "~55.0.16",
5657
"expo-screen-orientation": "~55.0.16",
57-
"expo-server": "~55.0.8",
58-
"expo-splash-screen": "~55.0.10",
59-
"expo-sqlite": "~55.0.15",
60-
"expo-status-bar": "~55.0.4",
61-
"expo-symbols": "~55.0.4",
62-
"expo-system-ui": "~55.0.9",
63-
"expo-web-browser": "~55.0.9",
58+
"expo-server": "~55.0.11",
59+
"expo-splash-screen": "~55.0.21",
60+
"expo-sqlite": "~55.0.16",
61+
"expo-status-bar": "~55.0.6",
62+
"expo-symbols": "~55.0.9",
63+
"expo-system-ui": "~55.0.18",
64+
"expo-web-browser": "~55.0.16",
6465
"react": "19.2.0",
6566
"react-dom": "19.2.0",
66-
"react-native": "0.83.2",
67+
"react-native": "0.83.9",
6768
"react-native-draggable-flatlist": "^4.0.3",
68-
"react-native-gesture-handler": "~2.30.0",
69+
"react-native-gesture-handler": "~2.30.1",
6970
"react-native-qrcode-svg": "^6.3.21",
70-
"react-native-reanimated": "~4.2.1",
71+
"react-native-reanimated": "~4.2.3",
7172
"react-native-safe-area-context": "5.6.2",
7273
"react-native-screens": "~4.23.0",
7374
"react-native-toast-message": "^2.3.3",
74-
"react-native-vision-camera": "^4.7.2",
75+
"react-native-vision-camera": "^4.7.3",
7576
"react-native-web": "~0.21.2",
7677
"react-native-webview": "13.16.0",
7778
"react-native-worklets": "0.7.2",
7879
"rn-emoji-picker": "^1.1.6",
79-
"zustand": "^5.0.11"
80+
"zustand": "^5.0.14"
8081
},
8182
"devDependencies": {
82-
"@babel/core": "^7.28.5",
83+
"@babel/core": "^7.29.7",
84+
"@testing-library/react-native": "^14.0.0",
8385
"@types/jest": "^29.5.14",
84-
"@types/react": "~19.2.14",
85-
"eslint": "^9.38.0",
86-
"eslint-config-expo": "~55.0.0",
86+
"@types/react": "~19.2.17",
87+
"@types/react-test-renderer": "^19.1.0",
88+
"eslint": "^9.39.4",
89+
"eslint-config-expo": "~55.0.1",
8790
"jest": "^29.7.0",
8891
"jest-expo": "~55.0.18",
89-
"only-allow": "^1.2.1",
90-
"prettier": "^3.8.1",
92+
"only-allow": "^1.2.2",
93+
"prettier": "^3.8.4",
94+
"react-test-renderer": "19.2.0",
9195
"typescript": "catalog:"
9296
},
9397
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"

apps/polycentric/src/common/components/TextArea.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
import {
22
forwardRef,
3+
useCallback,
4+
useEffect,
35
useImperativeHandle,
46
useLayoutEffect,
57
useRef,
8+
useState,
69
} from 'react';
7-
import { Platform, TextInput as RNTextInput } from 'react-native';
10+
import {
11+
Platform,
12+
TextInput as RNTextInput,
13+
type TextInputContentSizeChangeEventData,
14+
type NativeSyntheticEvent,
15+
TextInputContentSizeChangeEvent,
16+
} from 'react-native';
817
import { TextInput, type TextInputProps } from './primitives/TextInput';
918

1019
export interface TextAreaProps extends Omit<TextInputProps, 'multiline'> {
@@ -32,16 +41,15 @@ export const TextArea = forwardRef<RNTextInput, TextAreaProps>(
3241
<TextInput
3342
ref={innerRef}
3443
multiline
35-
numberOfLines={1}
36-
scrollEnabled={scrollEnabled ?? false}
44+
textAlignVertical="top"
3745
value={value}
3846
style={[
3947
{ minHeight },
4048
Platform.OS === 'web'
4149
? // Suppress the corner resize grip and the vertical
4250
// scrollbar — we drive height via scrollHeight.
4351
({ resize: 'none', overflow: 'hidden' } as object)
44-
: null,
52+
: {},
4553
style,
4654
]}
4755
{...props}

apps/polycentric/src/common/lib/images/normalizeImage.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)