Skip to content

Commit e034185

Browse files
committed
chore: update docs
1 parent c2e0b28 commit e034185

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

docs/bun.lockb

118 KB
Binary file not shown.

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"@grapp/nextra-theme": "^0.3.8",
28-
"@grapp/stacks": "link:@grapp/stacks",
28+
"@grapp/stacks": "3.0.0",
2929
"react-element-to-jsx-string": "^15.0.0",
3030
"react-native-web": "^0.19.10"
3131
}

docs/pages/docs/migration-guide.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
2+
import { Callout } from "nextra/components";
3+
14
## Migration Guide
25

36
The migration process should be hassle-free for users upgrading from Stacks v2 to v3. However, you should be aware of some notable changes.
47

8+
<Callout type="warning" emoji="⚠️">
9+
`Stacks` is now published in the `@grapp` scope. So, you need to fix the imports first. Don't worry, it's a quick fix!
10+
~`@mobily/stacks`~`@grapp/stacks`
11+
</Callout>
12+
513
### General
614

715
The `Stacks` library has been completely rewritten in TypeScript, so it no longer supports ReScript.

docs/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"next-env.d.ts",
55
"./docs/**/*.ts",
66
"./docs/**/*.tsx",
7-
"./examples/**/*.tsx"
7+
"./examples/**/*.tsx",
8+
"./unistyles.ts"
89
],
910
"compilerOptions": {
1011
"incremental": true

docs/unistyles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ declare module 'react-native-unistyles' {
2525
export interface UnistylesThemes extends Themes {}
2626
}
2727

28+
declare module '@grapp/stacks' {
29+
export interface StacksBreakpoints extends Breakpoints {}
30+
}
31+
2832
UnistylesRegistry.addBreakpoints(breakpoints).addThemes({
2933
light: theme,
3034
});

0 commit comments

Comments
 (0)