Skip to content

Commit 757cce3

Browse files
authored
port tweaks and fixes from details page PoC, bump dependencies (#2005)
1 parent e1ca792 commit 757cce3

8 files changed

Lines changed: 129 additions & 158 deletions

File tree

bun.lock

Lines changed: 67 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/styleguide.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import * as HtmlElements from '@expo/html-elements';
22
import { type TextProps } from '@expo/html-elements/build/primitives/Text';
33
import Link from 'next/link';
4-
import { type ComponentType, type PropsWithChildren, useContext, useState } from 'react';
4+
import {
5+
type ComponentType,
6+
type CSSProperties,
7+
type PropsWithChildren,
8+
useContext,
9+
useState,
10+
} from 'react';
511
import {
612
StyleSheet,
713
type TextStyle,
814
View,
915
useWindowDimensions,
10-
type ViewStyle,
1116
type StyleProp,
1217
} from 'react-native';
1318

@@ -121,6 +126,7 @@ export const H2 = createTextComponent(HtmlElements.H2, textStyles.h2);
121126
export const H3 = createTextComponent(HtmlElements.H3, textStyles.h3);
122127
export const H4 = createTextComponent(HtmlElements.H4, textStyles.h4);
123128
export const H5 = createTextComponent(HtmlElements.H5, textStyles.h5);
129+
export const H6 = createTextComponent(HtmlElements.H6, textStyles.h6);
124130
export const P = createTextComponent(HtmlElements.P, textStyles.p);
125131
export const Headline = createTextComponent(HtmlElements.P, textStyles.headline);
126132
export const Caption = createTextComponent(HtmlElements.P, textStyles.caption);
@@ -131,7 +137,7 @@ type AProps = PropsWithChildren<{
131137
target?: string;
132138
href: string;
133139
hoverStyle?: StyleProp<TextStyle>;
134-
containerStyle?: StyleProp<ViewStyle>;
140+
containerStyle?: CSSProperties | undefined;
135141
}>;
136142

137143
export function A({ href, target, children, style, hoverStyle, containerStyle, ...rest }: AProps) {
@@ -160,10 +166,10 @@ export function A({ href, target, children, style, hoverStyle, containerStyle, .
160166
}
161167

162168
return (
163-
<View
169+
<span
164170
onPointerEnter={() => setIsHovered(true)}
165171
onPointerLeave={() => setIsHovered(false)}
166-
style={containerStyle}>
172+
style={{ display: 'contents', ...containerStyle }}>
167173
<HtmlElements.A
168174
{...rest}
169175
href={href}
@@ -173,7 +179,7 @@ export function A({ href, target, children, style, hoverStyle, containerStyle, .
173179
style={[linkStyles, isHovered && linkHoverStyles, style, isHovered && hoverStyle]}>
174180
{children}
175181
</HtmlElements.A>
176-
</View>
182+
</span>
177183
);
178184
}
179185

next.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export default withPlugins([withExpo, withImages, withFonts, withBundleAnalyzer]
3434
forceSwcTransforms: true,
3535
webpackBuildWorker: true,
3636
browserDebugInfoInTerminal: true,
37-
clientSegmentCache: true,
3837
useLightningcss: true,
3938
optimizePackageImports: PACKAGES_TO_OPTIMIZE,
4039
},

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,37 @@
2525
"@radix-ui/react-tooltip": "^1.2.8",
2626
"@react-native-async-storage/async-storage": "^2.2.0",
2727
"@react-native-picker/picker": "^2.11.4",
28-
"@sentry/react": "^10.25.0",
29-
"es-toolkit": "^1.41.0",
30-
"expo": "54.0.23",
28+
"@sentry/react": "^10.26.0",
29+
"es-toolkit": "^1.42.0",
30+
"expo": "54.0.25",
3131
"expo-font": "^14.0.9",
32-
"next": "^16.0.1",
32+
"next": "^16.0.3",
3333
"node-emoji": "^2.2.0",
3434
"react": "19.2.0",
3535
"react-content-loader": "^7.1.1",
3636
"react-dom": "19.2.0",
3737
"react-easy-linkify": "^1.0.8",
3838
"react-native": "0.82.1",
3939
"react-native-safe-area-context": "^5.6.2",
40-
"react-native-svg": "^15.14.0",
40+
"react-native-svg": "^15.15.0",
4141
"react-native-web": "^0.21.2",
4242
"use-debounce": "^10.0.6"
4343
},
4444
"devDependencies": {
4545
"@expo/next-adapter": "^6.0.0",
46-
"@next/bundle-analyzer": "^16.0.1",
47-
"@prettier/plugin-oxc": "^0.0.4",
46+
"@next/bundle-analyzer": "^16.0.3",
47+
"@prettier/plugin-oxc": "^0.0.5",
4848
"@types/bun": "^1.3.2",
49-
"@types/react": "^19.2.3",
49+
"@types/react": "^19.2.6",
5050
"@vercel/blob": "^0.27.3",
5151
"ajv-cli": "^5.0.0",
5252
"browserslist": "^4.28.0",
5353
"cheerio": "^1.1.2",
5454
"dotenv": "^17.2.3",
5555
"eslint": "^9.39.1",
56-
"eslint-config-next": "^16.0.1",
56+
"eslint-config-next": "^16.0.3",
5757
"eslint-config-universe": "^15.0.3",
58-
"lint-staged": "^16.2.6",
58+
"lint-staged": "^16.2.7",
5959
"next-compose-plugins": "^2.2.1",
6060
"next-fonts": "^1.5.1",
6161
"next-images": "^1.8.5",

pages/tools.tsx

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ import CustomAppearanceContext from '~/context/CustomAppearanceContext';
1111

1212
export default function Tools() {
1313
const { isDark } = useContext(CustomAppearanceContext);
14+
1415
const textColorStyle = {
1516
color: isDark ? colors.gray2 : colors.black,
1617
};
17-
18-
const primaryButtonColorStyle = {
19-
backgroundColor: isDark ? darkColors.primaryDark : colors.primary,
20-
};
2118
const buttonColorStyle = {
2219
backgroundColor: isDark ? darkColors.border : colors.gray3,
2320
color: isDark ? colors.white : colors.black,
@@ -41,12 +38,7 @@ export default function Tools() {
4138
package inside the built-in editor Command Palette.
4239
</P>
4340
<View style={styles.buttonsContainer}>
44-
<Button
45-
openInNewTab
46-
href="https://github.com/react-native-community/vscode-react-native-directory"
47-
style={[styles.button, primaryButtonColorStyle]}>
48-
<GitHub width={16} /> <span>GitHub</span>
49-
</Button>
41+
<GitHubButton href="https://github.com/react-native-community/vscode-react-native-directory" />
5042
<Button
5143
openInNewTab
5244
href="https://marketplace.visualstudio.com/items?itemName=react-native-directory.vscode-react-native-directory"
@@ -65,12 +57,7 @@ export default function Tools() {
6557
A searchable and filterable list of React Native libraries inside Raycast.
6658
</P>
6759
<View style={styles.buttonsContainer}>
68-
<Button
69-
openInNewTab
70-
href="https://github.com/raycast/extensions/tree/main/extensions/react-native-directory"
71-
style={[styles.button, primaryButtonColorStyle]}>
72-
<GitHub width={16} /> <span>GitHub</span>
73-
</Button>
60+
<GitHubButton href="https://github.com/raycast/extensions/tree/main/extensions/react-native-directory" />
7461
<Button
7562
openInNewTab
7663
href="https://www.raycast.com/shubh_porwal/react-native-directory"
@@ -83,12 +70,7 @@ export default function Tools() {
8370
CLI to check your Expo project for known issues and used libraries compatibility.
8471
</P>
8572
<View style={styles.buttonsContainer}>
86-
<Button
87-
openInNewTab
88-
href="https://github.com/expo/expo/tree/main/packages/expo-doctor"
89-
style={[styles.button, primaryButtonColorStyle]}>
90-
<GitHub width={16} /> <span>GitHub</span>
91-
</Button>
73+
<GitHubButton href="https://github.com/expo/expo/tree/main/packages/expo-doctor" />
9274
<Button
9375
openInNewTab
9476
href="https://www.npmjs.com/package/expo-doctor"
@@ -102,19 +84,14 @@ export default function Tools() {
10284
at once, get detailed insights, and export reports.
10385
</P>
10486
<View style={styles.buttonsContainer}>
105-
<Button
106-
openInNewTab
107-
href="https://github.com/sandipshiwakoti/react-native-package-checker"
108-
style={[styles.button, primaryButtonColorStyle]}>
109-
<GitHub width={16} /> <span>GitHub</span>
110-
</Button>
87+
<GitHubButton href="https://github.com/sandipshiwakoti/react-native-package-checker" />
11188
<Button
11289
openInNewTab
11390
href="https://react-native-package-checker.vercel.app/"
11491
style={[styles.button, buttonColorStyle]}>
11592
<span>Website</span>
11693
</Button>
117-
</View>{' '}
94+
</View>
11895
<H3 style={[styles.subHeader, textColorStyle]}>
11996
React Native Package Checker VS Code Extension
12097
</H3>
@@ -123,12 +100,7 @@ export default function Tools() {
123100
inside VS Code.
124101
</P>
125102
<View style={styles.buttonsContainer}>
126-
<Button
127-
openInNewTab
128-
href="https://github.com/sandipshiwakoti/vscode-react-native-package-checker"
129-
style={[styles.button, primaryButtonColorStyle]}>
130-
<GitHub width={16} /> <span>GitHub</span>
131-
</Button>
103+
<GitHubButton href="https://github.com/sandipshiwakoti/vscode-react-native-package-checker" />
132104
<Button
133105
openInNewTab
134106
href="https://marketplace.visualstudio.com/items?itemName=sandipshiwakoti.vscode-react-native-package-checker"
@@ -149,6 +121,26 @@ export default function Tools() {
149121
);
150122
}
151123

124+
type GitHubButtonProps = {
125+
href: string;
126+
};
127+
128+
function GitHubButton({ href }: GitHubButtonProps) {
129+
const { isDark } = useContext(CustomAppearanceContext);
130+
const primaryButtonColorStyle = {
131+
backgroundColor: isDark ? darkColors.primaryDark : colors.primary,
132+
};
133+
return (
134+
<Button
135+
openInNewTab
136+
href="https://github.com/raycast/extensions/tree/main/extensions/react-native-directory"
137+
style={[styles.button, primaryButtonColorStyle]}>
138+
<GitHub width={16} />
139+
<P style={styles.githubButtonLabel}>GitHub</P>
140+
</Button>
141+
);
142+
}
143+
152144
const styles = StyleSheet.create({
153145
container: {
154146
marginTop: 32,
@@ -176,6 +168,10 @@ const styles = StyleSheet.create({
176168
paddingHorizontal: 12,
177169
minHeight: 32,
178170
fontSize: 14,
179-
gap: 2,
171+
gap: 6,
172+
},
173+
githubButtonLabel: {
174+
color: 'inherit',
175+
fontSize: 14,
180176
},
181177
});

react-native-libraries.json

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14580,9 +14580,9 @@
1458014580
"newArchitecture": true
1458114581
},
1458214582
{
14583-
"githubUrl": "https://github.com/litecoin-foundation/react-native-turbo-scrypt",
14583+
"githubUrl": "https://github.com/litecoin-foundation/react-native-nitro-scrypt",
1458414584
"examples": [
14585-
"https://github.com/litecoin-foundation/react-native-turbo-scrypt/tree/master/example"
14585+
"https://github.com/litecoin-foundation/react-native-nitro-scrypt/tree/master/example"
1458614586
],
1458714587
"android": true,
1458814588
"ios": true
@@ -17455,11 +17455,6 @@
1745517455
"android": true,
1745617456
"ios": true
1745717457
},
17458-
{
17459-
"githubUrl": "https://github.com/GG11HEDR/react-native-google-places-textinput",
17460-
"android": true,
17461-
"ios": true
17462-
},
1746317458
{
1746417459
"githubUrl": "https://github.com/DanielAraldi/react-native-blur-view",
1746517460
"npmPkg": "@danielsaraldi/react-native-blur-view",
@@ -18331,9 +18326,7 @@
1833118326
{
1833218327
"githubUrl": "https://github.com/BANG88/react-native-markdown/tree/main/packages/react-native-markdown",
1833318328
"npmPkg": "@hake/react-native-markdown",
18334-
"examples": [
18335-
"https://github.com/BANG88/react-native-markdown/tree/main/apps/example"
18336-
],
18329+
"examples": ["https://github.com/BANG88/react-native-markdown/tree/main/apps/example"],
1833718330
"images": [
1833818331
"https://raw.githubusercontent.com/BANG88/react-native-markdown/main/screenshots/1.png",
1833918332
"https://raw.githubusercontent.com/BANG88/react-native-markdown/main/screenshots/2.png",
@@ -18345,22 +18338,17 @@
1834518338
"web": true,
1834618339
"expoGo": true,
1834718340
"newArchitecture": true
18348-
},
18349-
{
18341+
},
18342+
{
1835018343
"githubUrl": "https://github.com/arbazz/react-native-ocr-fast",
18351-
"npmPkg": "react-native-ocr-fast",
1835218344
"ios": true,
1835318345
"android": true,
1835418346
"newArchitecture": true
1835518347
},
1835618348
{
1835718349
"githubUrl": "https://github.com/oblador/react-native-variable-blur",
18358-
"npmPkg": "react-native-variable-blur",
18359-
"examples": [
18360-
"https://github.com/oblador/react-native-variable-blur/tree/master/example"
18361-
],
18350+
"examples": ["https://github.com/oblador/react-native-variable-blur/tree/master/example"],
1836218351
"ios": true,
18363-
"android": false,
1836418352
"newArchitecture": true
1836518353
},
1836618354
{
@@ -18373,10 +18361,7 @@
1837318361
},
1837418362
{
1837518363
"githubUrl": "https://github.com/Fiyaz6772/react-native-fn-forms",
18376-
"npmPkg": "react-native-fn-forms",
18377-
"examples": [
18378-
"https://github.com/Fiyaz6772/react-native-fn-forms/tree/main/example"
18379-
],
18364+
"examples": ["https://github.com/Fiyaz6772/react-native-fn-forms/tree/main/example"],
1838018365
"ios": true,
1838118366
"android": true,
1838218367
"web": true,

scripts/queries/GitHubRepositoryQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const GitHubRepositoryQuery = `
4848
url
4949
id
5050
}
51-
repositoryTopics(first: 10) {
51+
repositoryTopics(first: 15) {
5252
nodes {
5353
topic {
5454
name

types/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,6 @@ export type LibraryType = LibraryDataEntryType & {
106106
dependencies?: number;
107107
};
108108
license: LibraryLicenseType;
109-
lastRelease?: {
110-
name: string;
111-
tagName: string;
112-
createdAt: Date | string;
113-
publishedAt: Date | string;
114-
isPrerelease: boolean;
115-
};
116109
};
117110
npm?: {
118111
downloads?: number;

0 commit comments

Comments
 (0)