Skip to content

Commit 5bffeff

Browse files
committed
[fix] a JSX type bug
[add] Awesome Badge [optimize] update Upstream packages
1 parent 20c8fff commit 5bffeff

3 files changed

Lines changed: 48 additions & 48 deletions

File tree

ReadMe.md

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
[![Build Status](https://travis-ci.com/EasyWebApp/WebCell.svg?branch=v2)][5]
99

1010
[![Anti 996 license](https://img.shields.io/badge/license-Anti%20996-blue.svg)][6]
11-
[![Slideshow](https://img.shields.io/badge/learn-Slideshow-blue)][7]
12-
[![Gitter](https://badges.gitter.im/EasyWebApp/community.svg)][8]
11+
[![jaywcjlove/sb](https://jaywcjlove.github.io/sb/ico/awesome.svg)][7]
1312

14-
[![Edit WebCell demo](https://codesandbox.io/static/img/play-codesandbox.svg)][9]
13+
[![Slideshow](https://img.shields.io/badge/learn-Slideshow-blue)][8]
14+
[![Gitter](https://badges.gitter.im/EasyWebApp/community.svg)][9]
1515

16-
[![NPM](https://nodei.co/npm/web-cell.png?downloads=true&downloadRank=true&stars=true)][10]
16+
[![Edit WebCell demo](https://codesandbox.io/static/img/play-codesandbox.svg)][10]
17+
18+
[![NPM](https://nodei.co/npm/web-cell.png?downloads=true&downloadRank=true&stars=true)][11]
1719

1820
## Usage
1921

@@ -46,8 +48,8 @@ npm install parcel-bundler -D
4648

4749
```html
4850
<script src="https://polyfill.io/v3/polyfill.min.js?flags=gated&features=Object.fromEntries%2CArray.prototype.flat"></script>
49-
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.4.3/webcomponents-bundle.min.js"></script>
50-
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.4.3/custom-elements-es5-adapter.js"></script>
51+
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.4.4/webcomponents-bundle.min.js"></script>
52+
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.4.4/custom-elements-es5-adapter.js"></script>
5153

5254
<script src="source/SubTag.tsx"></script>
5355
<script src="source/TestTag.tsx"></script>
@@ -169,49 +171,50 @@ export class TestTag extends mixin<Props, State>() {
169171

170172
We recommend these libraries to use with WebCell:
171173

172-
- **State management**: [MobX][11] (also powered by **TypeScript** & **Decorator**)
174+
- **State management**: [MobX][12] (also powered by **TypeScript** & **Decorator**)
173175

174-
- **Router**: [Cell Router][12] (based on **MobX**)
176+
- **Router**: [Cell Router][13] (based on **MobX**)
175177

176178
- **UI components**
177179

178-
- [BootCell][13] (based on **BootStrap v4**)
179-
- [Material Cell][14] (based on **Material Design** & **BootStrap v4**)
180-
- [GitHub Web Widget][15]
180+
- [BootCell][14] (based on **BootStrap v4**)
181+
- [Material Cell][15] (based on **Material Design** & **BootStrap v4**)
182+
- [GitHub Web Widget][16]
181183

182-
- **HTTP request**: [KoAJAX][16] (based on **Koa**-like middlewares)
184+
- **HTTP request**: [KoAJAX][17] (based on **Koa**-like middlewares)
183185

184-
- **Utility**: [Web utility][17] (Methods & Types)
186+
- **Utility**: [Web utility][18] (Methods & Types)
185187

186-
- **Event stream**: [Iterable Observer][18] (**Observable** proposal)
188+
- **Event stream**: [Iterable Observer][19] (**Observable** proposal)
187189

188-
- **MarkDown integration**: [MarkCell][19] (**MDX** implement)
190+
- **MarkDown integration**: [MarkCell][20] (**MDX** implement)
189191

190192
## Roadmap
191193

192-
- [x] (Template) [Document Fragment node][20]
194+
- [x] (Template) [Document Fragment node][21]
193195
- [ ] Server-side Render
194196

195-
Go to [contribute][21]!
197+
Go to [contribute][22]!
196198

197199
[1]: https://www.webcomponents.org/
198200
[2]: https://facebook.github.io/jsx/
199201
[3]: https://www.typescriptlang.org
200202
[4]: https://david-dm.org/EasyWebApp/WebCell
201203
[5]: https://travis-ci.com/EasyWebApp/WebCell
202204
[6]: https://github.com/996icu/996.ICU/blob/master/LICENSE
203-
[7]: https://tech-query.me/programming/web-components-practise/slide.html
204-
[8]: https://gitter.im/EasyWebApp/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
205-
[9]: https://codesandbox.io/s/webcell-demo-9gyll?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FClock.tsx&theme=dark
206-
[10]: https://nodei.co/npm/web-cell/
207-
[11]: https://github.com/EasyWebApp/WebCell/blob/v2/MobX
208-
[12]: https://web-cell.dev/cell-router/
209-
[13]: https://bootstrap.web-cell.dev/
210-
[14]: https://web-cell.dev/material-cell/
211-
[15]: https://tech-query.me/GitHub-Web-Widget/
212-
[16]: https://web-cell.dev/KoAJAX/
213-
[17]: https://web-cell.dev/web-utility/
214-
[18]: https://web-cell.dev/iterable-observer/
215-
[19]: https://github.com/EasyWebApp/MarkCell
216-
[20]: https://github.com/Microsoft/TypeScript/issues/20469
217-
[21]: https://github.com/EasyWebApp/WebCell/blob/v2/Contributing.md
205+
[7]: https://github.com/jaywcjlove/awesome-uikit
206+
[8]: https://tech-query.me/programming/web-components-practise/slide.html
207+
[9]: https://gitter.im/EasyWebApp/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
208+
[10]: https://codesandbox.io/s/webcell-demo-9gyll?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FClock.tsx&theme=dark
209+
[11]: https://nodei.co/npm/web-cell/
210+
[12]: https://github.com/EasyWebApp/WebCell/blob/v2/MobX
211+
[13]: https://web-cell.dev/cell-router/
212+
[14]: https://bootstrap.web-cell.dev/
213+
[15]: https://web-cell.dev/material-cell/
214+
[16]: https://tech-query.me/GitHub-Web-Widget/
215+
[17]: https://web-cell.dev/KoAJAX/
216+
[18]: https://web-cell.dev/web-utility/
217+
[19]: https://web-cell.dev/iterable-observer/
218+
[20]: https://github.com/EasyWebApp/MarkCell
219+
[21]: https://github.com/Microsoft/TypeScript/issues/20469
220+
[22]: https://github.com/EasyWebApp/WebCell/blob/v2/Contributing.md

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-cell",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "Web Components engine based on JSX & TypeScript",
55
"keywords": [
66
"web",
@@ -23,30 +23,30 @@
2323
"source": "source/index.ts",
2424
"types": "dist/index.d.ts",
2525
"peerDependencies": {
26-
"@webcomponents/webcomponentsjs": "^2.4.3",
26+
"@webcomponents/webcomponentsjs": "^2.4.4",
2727
"core-js": "^3.6.5",
28-
"jsdom": "^16.3.0",
29-
"web-utility": "^1.6.1"
28+
"jsdom": "^16.4.0",
29+
"web-utility": "^1.7.0"
3030
},
3131
"devDependencies": {
3232
"@types/core-js": "^2.5.3",
33-
"@types/jest": "^26.0.4",
33+
"@types/jest": "^26.0.9",
3434
"@types/jsdom": "^16.2.3",
35-
"@typescript-eslint/parser": "^3.6.1",
36-
"eslint": "^7.4.0",
35+
"@typescript-eslint/parser": "^3.8.0",
36+
"eslint": "^7.6.0",
3737
"eslint-config-prettier": "^6.11.0",
3838
"eslint-plugin-prettier": "^3.1.4",
3939
"husky": "^4.2.5",
40-
"jest": "^26.1.0",
40+
"jest": "^26.3.0",
4141
"lint-staged": "^10.2.11",
4242
"open-cli": "^6.0.1",
4343
"parcel-bundler": "^1.12.4",
4444
"prettier": "^2.0.5",
4545
"snabbdom": "^1.0.1",
46-
"ts-jest": "^26.1.2",
47-
"typedoc": "^0.17.8",
48-
"typescript": "^3.9.6",
49-
"web-utility": "^1.6.1"
46+
"ts-jest": "^26.1.4",
47+
"typedoc": "^0.18.0",
48+
"typescript": "^3.9.7",
49+
"web-utility": "^1.7.0"
5050
},
5151
"scripts": {
5252
"lint": "lint-staged",

source/utility/vDOM.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ declare global {
2424
defaultSlot: VNodeChildElement[];
2525
}
2626
interface ElementClass {
27-
render: (
28-
props: WebCellProps,
29-
state: Record<string, any>
30-
) => WebCellElement;
27+
render: (props: WebCellProps, state: any) => WebCellElement;
3128
}
3229
}
3330
}

0 commit comments

Comments
 (0)