diff --git a/docs/bun.lockb b/docs/bun.lockb index ef0fb01..e096756 100755 Binary files a/docs/bun.lockb and b/docs/bun.lockb differ diff --git a/docs/package.json b/docs/package.json index 40eef83..9793fe8 100644 --- a/docs/package.json +++ b/docs/package.json @@ -25,7 +25,7 @@ }, "dependencies": { "@grapp/nextra-theme": "^0.3.8", - "@grapp/stacks": "link:@grapp/stacks", + "@grapp/stacks": "3.0.0", "react-element-to-jsx-string": "^15.0.0", "react-native-web": "^0.19.10" } diff --git a/docs/pages/docs/migration-guide.mdx b/docs/pages/docs/migration-guide.mdx index bd68ee4..5946547 100644 --- a/docs/pages/docs/migration-guide.mdx +++ b/docs/pages/docs/migration-guide.mdx @@ -1,7 +1,15 @@ + +import { Callout } from "nextra/components"; + ## Migration Guide The migration process should be hassle-free for users upgrading from Stacks v2 to v3. However, you should be aware of some notable changes. + +`Stacks` is now published in the `@grapp` scope. So, you need to fix the imports first. Don't worry, it's a quick fix! +~`@mobily/stacks`~ → `@grapp/stacks` + + ### General The `Stacks` library has been completely rewritten in TypeScript, so it no longer supports ReScript. diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 5cb2730..04cd4e6 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -4,7 +4,8 @@ "next-env.d.ts", "./docs/**/*.ts", "./docs/**/*.tsx", - "./examples/**/*.tsx" + "./examples/**/*.tsx", + "./unistyles.ts" ], "compilerOptions": { "incremental": true diff --git a/docs/unistyles.ts b/docs/unistyles.ts index c254f84..ee435d1 100644 --- a/docs/unistyles.ts +++ b/docs/unistyles.ts @@ -25,6 +25,10 @@ declare module 'react-native-unistyles' { export interface UnistylesThemes extends Themes {} } +declare module '@grapp/stacks' { + export interface StacksBreakpoints extends Breakpoints {} +} + UnistylesRegistry.addBreakpoints(breakpoints).addThemes({ light: theme, });