Skip to content

Commit 49e4491

Browse files
[add] Horizontal & Vertical Marquee components (#56)
Co-authored-by: Five-great <[email protected]>
1 parent dc4e9ba commit 49e4491

File tree

9 files changed

+10652
-8328
lines changed

9 files changed

+10652
-8328
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ jobs:
77
Build-and-Publish:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111

12-
- uses: pnpm/action-setup@v2
12+
- uses: pnpm/action-setup@v4
1313
with:
14-
version: 8
15-
- uses: actions/setup-node@v3
14+
version: 9
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 18
17+
node-version: 20
1818
registry-url: https://registry.npmjs.org
1919
cache: pnpm
2020
- name: Install Dependencies
2121
run: pnpm i --frozen-lockfile
2222

2323
- name: Build & Publish
24-
run: npm publish
24+
run: npm publish --access public --provenance
2525
env:
2626
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2727

2828
- name: Update document
29-
uses: peaceiris/actions-gh-pages@v3
29+
uses: peaceiris/actions-gh-pages@v4
3030
with:
3131
publish_dir: ./docs
3232
personal_token: ${{ secrets.GITHUB_TOKEN }}

ReadMe.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,21 @@ A **[React][1] advanced components library** based on [TypeScript][2] & [Bootstr
2828
3. [Avatar](source/Avatar.tsx)
2929
4. [Nameplate](source/Nameplate.tsx)
3030
5. [Type Echo](source/TypeEcho.tsx)
31-
6. [Click Boundary](source/ClickBoundary.tsx)
32-
7. [Spinner Button](source/SpinnerButton.tsx)
33-
8. [Select](source/Select.tsx)
34-
9. [Month Calendar](source/MonthCalendar.tsx)
35-
10. [Code Block](source/CodeBlock.tsx)
36-
11. [Page Nav](source/PageNav.tsx)
37-
12. [Editor](source/Editor.tsx)
38-
13. [Editor HTML](source/EditorHTML.tsx)
39-
14. [Table Spinner](source/TableSpinner.tsx)
40-
15. [Loading](source/Loading.tsx)
41-
16. [Share Box](source/ShareBox.tsx)
42-
17. [Overlay Box](source/OverlayBox.tsx)
43-
18. [Dialog](source/Dialog.tsx)
31+
6. [Horizontal Marquee](source/HorizontalMarquee.tsx)
32+
7. [Vertical Marquee](source/VerticalMarquee.tsx)
33+
8. [Click Boundary](source/ClickBoundary.tsx)
34+
9. [Spinner Button](source/SpinnerButton.tsx)
35+
10. [Select](source/Select.tsx)
36+
11. [Month Calendar](source/MonthCalendar.tsx)
37+
12. [Code Block](source/CodeBlock.tsx)
38+
13. [Page Nav](source/PageNav.tsx)
39+
14. [Editor](source/Editor.tsx)
40+
15. [Editor HTML](source/EditorHTML.tsx)
41+
16. [Table Spinner](source/TableSpinner.tsx)
42+
17. [Loading](source/Loading.tsx)
43+
18. [Share Box](source/ShareBox.tsx)
44+
19. [Overlay Box](source/OverlayBox.tsx)
45+
20. [Dialog](source/Dialog.tsx)
4446

4547
#### Data components
4648

@@ -67,7 +69,7 @@ Open Map component & model, have been migrated to https://github.com/idea2app/Op
6769
```html
6870
<link
6971
rel="stylesheet"
70-
href="https://unpkg.com/[email protected].2/dist/css/bootstrap.min.css"
72+
href="https://unpkg.com/[email protected].3/dist/css/bootstrap.min.css"
7173
/>
7274
<link
7375
rel="stylesheet"
@@ -81,6 +83,7 @@ Open Map component & model, have been migrated to https://github.com/idea2app/Op
8183
rel="stylesheet"
8284
href="https://unpkg.com/[email protected]/themes/prism.min.css"
8385
/>
86+
<link rel="stylesheet" href="https://unpkg.com/idea-react/dist/index.css" />
8487
```
8588

8689
### `tsconfig.json`

package.json

Lines changed: 49 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "idea-react",
3-
"version": "2.0.0-rc.2",
3+
"version": "2.0.0-rc.4",
44
"license": "LGPL-3.0-or-later",
55
"author": "[email protected]",
66
"description": "A React advanced components library based on TypeScript & Bootstrap, built by idea2app remote developers team.",
@@ -22,74 +22,75 @@
2222
"types": "dist/index.d.ts",
2323
"main": "dist/index.js",
2424
"dependencies": {
25-
"@editorjs/editorjs": "^2.29.0",
26-
"@editorjs/paragraph": "^2.11.3",
25+
"@editorjs/editorjs": "^2.30.6",
26+
"@editorjs/paragraph": "^2.11.6",
2727
"@react-editor-js/core": "^2.1.0",
28-
"@swc/helpers": "^0.5.3",
28+
"@swc/helpers": "^0.5.13",
2929
"classnames": "^2.5.1",
3030
"editorjs-html": "^3.4.3",
3131
"html2canvas": "^1.4.1",
32-
"iterable-observer": "^1.0.1",
32+
"iterable-observer": "^1.1.0",
3333
"lodash": "^4.17.21",
34-
"mobx": ">=6.12.0",
35-
"mobx-react": ">=9.1.0",
34+
"mobx": ">=6.11",
35+
"mobx-react": ">=9.1",
3636
"mobx-react-helper": "^0.3.1",
3737
"prismjs": "^1.29.0",
38-
"react-bootstrap": "^2.10.0",
38+
"react-bootstrap": "^2.10.5",
3939
"react-editor-js": "^2.1.0",
4040
"react-element-to-jsx-string": "^15.0.0",
41-
"web-utility": "^4.1.3"
41+
"web-utility": "^4.4.1"
4242
},
4343
"peerDependencies": {
4444
"react": ">=16",
4545
"react-dom": ">=16"
4646
},
4747
"devDependencies": {
48-
"@babel/plugin-proposal-decorators": "^7.23.9",
49-
"@babel/preset-typescript": "^7.23.3",
50-
"@microsoft/api-extractor": "^7.39.4",
51-
"@parcel/config-default": "~2.11.0",
52-
"@parcel/packager-ts": "~2.11.0",
53-
"@parcel/transformer-typescript-tsc": "~2.11.0",
54-
"@parcel/transformer-typescript-types": "~2.11.0",
48+
"@babel/plugin-proposal-decorators": "^7.25.7",
49+
"@babel/preset-typescript": "^7.25.7",
50+
"@microsoft/api-extractor": "^7.47.11",
51+
"@parcel/config-default": "~2.12.0",
52+
"@parcel/packager-ts": "~2.12.0",
53+
"@parcel/transformer-less": "2.12.0",
54+
"@parcel/transformer-typescript-tsc": "~2.12.0",
55+
"@parcel/transformer-typescript-types": "~2.12.0",
5556
"@storybook/addon-console": "^3.0.0",
56-
"@storybook/addon-essentials": "^7.6.12",
57-
"@storybook/addon-interactions": "^7.6.12",
58-
"@storybook/addon-links": "^7.6.12",
59-
"@storybook/addon-storysource": "^7.6.12",
60-
"@storybook/blocks": "^7.6.12",
61-
"@storybook/react": "^7.6.12",
62-
"@storybook/react-vite": "^7.6.12",
57+
"@storybook/addon-essentials": "^7.6.20",
58+
"@storybook/addon-interactions": "^7.6.20",
59+
"@storybook/addon-links": "^7.6.20",
60+
"@storybook/addon-storysource": "^7.6.20",
61+
"@storybook/blocks": "^7.6.20",
62+
"@storybook/react": "^7.6.20",
63+
"@storybook/react-vite": "^7.6.20",
6364
"@storybook/testing-library": "^0.2.2",
64-
"@types/lodash": "^4.14.202",
65-
"@types/node": "^18.19.14",
66-
"@types/prismjs": "^1.26.3",
67-
"@types/react": "^18.2.52",
68-
"@types/react-dom": "^18.2.18",
69-
"@typescript-eslint/eslint-plugin": "^6.20.0",
70-
"@typescript-eslint/parser": "^6.20.0",
71-
"@vitejs/plugin-react": "^4.2.1",
72-
"eslint": "^8.56.0",
65+
"@types/lodash": "^4.17.10",
66+
"@types/node": "^20.16.12",
67+
"@types/prismjs": "^1.26.4",
68+
"@types/react": "^18.3.11",
69+
"@types/react-dom": "^18.3.1",
70+
"@typescript-eslint/eslint-plugin": "^8.10.0",
71+
"@typescript-eslint/parser": "^8.10.0",
72+
"@vitejs/plugin-react": "^4.3.2",
73+
"eslint": "^8.57.1",
7374
"eslint-config-prettier": "^9.1.0",
74-
"eslint-plugin-import": "^2.29.1",
75-
"eslint-plugin-simple-import-sort": "^10.0.0",
76-
"husky": "^9.0.10",
75+
"eslint-plugin-import": "^2.31.0",
76+
"eslint-plugin-simple-import-sort": "^12.1.1",
77+
"husky": "^9.1.6",
7778
"koapache": "^2.2.2",
7879
"less": "^4.2.0",
79-
"lint-staged": "^15.2.1",
80-
"parcel": "~2.11.0",
81-
"postcss-preset-env": "^9.3.0",
82-
"prettier": "^3.2.4",
80+
"lint-staged": "^15.2.10",
81+
"parcel": "~2.12.0",
82+
"postcss-preset-env": "^10.0.7",
83+
"prettier": "^3.3.3",
8384
"process": "^0.11.10",
8485
"prop-types": "15.8.1",
85-
"react": "^18.2.0",
86-
"react-dom": "^18.2.0",
87-
"rimraf": "^5.0.5",
88-
"storybook": "^7.6.12",
89-
"typedoc": "^0.25.7",
90-
"typedoc-plugin-mdn-links": "^3.1.14",
91-
"typescript": "~5.3.3",
92-
"vite": "^5.0.12"
86+
"react": "^18.3.1",
87+
"react-dom": "^18.3.1",
88+
"rimraf": "^6.0.1",
89+
"storybook": "^7.6.20",
90+
"typedoc": "^0.26.10",
91+
"typedoc-plugin-mdn-links": "^3.3.3",
92+
"typescript": "~5.6.3",
93+
"vite": "^5.4.9"
9394
},
9495
"prettier": {
9596
"singleQuote": true,
@@ -113,7 +114,7 @@
113114
"api-extractor": "tsc --project tsconfig.build.json --outDir dist/dts && api-extractor run && rimraf dist/dts",
114115
"pack-preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel build --public-url=. --dist-dir=../docs/preview/",
115116
"pack-docs": "rimraf docs/ && typedoc source/",
116-
"pack-dist": "rimraf .parcel-cache/ dist/ && parcel build",
117+
"pack-dist": "rimraf .parcel-cache/ dist/ && parcel build && sed -i 's/^require(\"\\.\\/index\\.css\");//' dist/index.js && rimraf dist/index.js.map",
117118
"start": "npm run pack-docs && npm run pack-preview && web-server docs/ -p 8080 -o",
118119
"build": "npm run pack-docs && npm run pack-preview && npm run pack-dist && npm run api-extractor",
119120
"prepublishOnly": "npm test && npm run build",

0 commit comments

Comments
 (0)