Skip to content

Commit

Permalink
feat: support nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
WoeOm committed Aug 9, 2023
1 parent 476d2ed commit 3f1b20a
Show file tree
Hide file tree
Showing 3 changed files with 359 additions and 122 deletions.
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subscan/widget-app",
"version": "0.1.28",
"version": "0.1.29-alpha.4",
"private": false,
"main": "./dist/main.js",
"homepage": "/lowcode",
Expand All @@ -10,8 +10,8 @@
},
"dependencies": {
"@subscan/widget-core": "1.0.3",
"@subscan/widget-editor": "1.0.8",
"@subscan/widget-runtime": "1.0.6",
"@subscan/widget-editor": "1.0.10",
"@subscan/widget-runtime": "1.0.8",
"@arco-design/web-react": "^2.34.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
Expand Down Expand Up @@ -74,8 +74,8 @@
"build:local": "REACT_APP_SUBSCAN_PRO_API=https://platform-staging.subscan.io react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"build:sdk": "npx tsup src/main.ts --target es5 --env.NODE_ENV production --clean",
"prepublish": "npx tsup src/main.ts --target es5 --env.NODE_ENV production --clean",
"build:sdk": "npx tsup src/main.ts --target es5 --dts --env.NODE_ENV production --clean",
"prepublish": "npx tsup src/main.ts --target es5 --dts --env.NODE_ENV production --clean",
"add:component": "node ./scripts/component.js",
"add:trait": "node ./scripts/trait.js",
"add:utilMethod": "node ./scripts/utilMethod.js",
Expand Down Expand Up @@ -121,5 +121,9 @@
}
}
]
},
"peerDependencies": {
"react": ">=17.0.2",
"react-dom": ">=17.0.2"
}
}
4 changes: 2 additions & 2 deletions src/ui/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import styled from 'styled-components';
import { Colors } from './theme/colors';
import { Box } from '@chakra-ui/react';

interface FontProps {
type FontProps = {
bold?: boolean;
fontColor?: keyof Colors;
block?: boolean;
nowrap?: boolean;
wordbreak?: string;
}
};

export const StyledFont16 = styled.span<FontProps>`
/* 14 */
Expand Down
Loading

0 comments on commit 3f1b20a

Please sign in to comment.