@pixui-dev/pxw 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -316,5 +316,54 @@ export namespace JSXInternal {
316
316
  title: HTMLAttributes<HTMLTitleElement>;
317
317
  video: HTMLAttributes<HTMLVideoElement>;
318
318
  pixslot: HTMLAttributes<HTMLSlotElement>;
319
+ cef: HTMLAttributes<HTMLCefElement>;
320
+ /**
321
+ * 默认样式的 div 标签(语义化为 h1 标题)
322
+ * - 字体大小: `2em` (约 32px)
323
+ * - 上下边距: `0.67em`
324
+ * - 字体粗细: `bold`
325
+ * - 语义化标题层级: 页面主标题
326
+ */
327
+ h1: HTMLAttributes<HTMLDivElement>;
328
+ /**
329
+ * 默认样式的 div 标签(语义化为 h2 标题)
330
+ * - 字体大小: `1.5em` (约 24px)
331
+ * - 上下边距: `0.83em`
332
+ * - 字体粗细: `bold`
333
+ * - 语义化标题层级: 主要章节标题
334
+ */
335
+ h2: HTMLAttributes<HTMLDivElement>;
336
+ /**
337
+ * 默认样式的 div 标签(语义化为 h3 标题)
338
+ * - 字体大小: `1.17em` (约 18.72px)
339
+ * - 上下边距: `1em`
340
+ * - 字体粗细: `bold`
341
+ * - 语义化标题层级: 子章节标题
342
+ */
343
+ h3: HTMLAttributes<HTMLDivElement>;
344
+ /**
345
+ * 默认样式的 div 标签(语义化为 h4 标题)
346
+ * - 字体大小: `1em` (约 16px)
347
+ * - 上下边距: `1.33em`
348
+ * - 字体粗细: `bold`
349
+ * - 语义化标题层级: 深层子标题
350
+ */
351
+ h4: HTMLAttributes<HTMLDivElement>;
352
+ /**
353
+ * 默认样式的 div 标签(语义化为 h5 标题)
354
+ * - 字体大小: `0.83em` (约 13.28px)
355
+ * - 上下边距: `1.67em`
356
+ * - 字体粗细: `bold`
357
+ * - 语义化标题层级: 辅助性小标题
358
+ */
359
+ h5: HTMLAttributes<HTMLDivElement>;
360
+ /**
361
+ * 默认样式的 div 标签(语义化为 h6 标题)
362
+ * - 字体大小: `0.67em` (约 10.72px)
363
+ * - 上下边距: `2.33em`
364
+ * - 字体粗细: `bold`
365
+ * - 语义化标题层级: 最低级标题
366
+ */
367
+ h6: HTMLAttributes<HTMLDivElement>;
319
368
  }
320
369
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixui-dev/pxw",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "private": false,
5
5
  "directories": {
6
6
  "lib": "lib"
@@ -25,10 +25,16 @@
25
25
  "scripts": {
26
26
  "b": "npx webpack --mode=production --config config/webpack.js",
27
27
  "d": "node scripts/run-pxw.js",
28
+ "dd": "cross-env PXW_WATCHFILE=.cache/pxw-reload bin/pxw.js -d",
28
29
  "p": "node scripts/pack.js",
29
30
  "lint": "yarn prettier-eslint --write bin/*.js config/*.js scripts/*.js",
30
31
  "postinstall": "node scripts/postinstall.js"
31
32
  },
33
+ "peerDependencies": {
34
+ "typescript": "^5.8.3",
35
+ "webpack": "^5.52.0",
36
+ "webpack-cli": "^5.1.4"
37
+ },
32
38
  "dependencies": {
33
39
  "@babel/core": "^7.20.2",
34
40
  "@babel/plugin-proposal-decorators": "^7.8.3",
@@ -61,7 +67,7 @@
61
67
  "babel-plugin-module-resolver": "^4.0.0",
62
68
  "babel-plugin-transform-decorators-legacy": "^1.3.5",
63
69
  "babel-plugin-transform-remove-console": "^6.9.4",
64
- "chokidar": "^4.0.3",
70
+ "chokidar": "^3.5.3",
65
71
  "clean-webpack-plugin": "^3.0.0",
66
72
  "comment-json": "^4.2.5",
67
73
  "css-loader": "^6.2.0",
@@ -82,6 +88,8 @@
82
88
  "module-alias": "^2.2.2",
83
89
  "multer": "^1.4.5-lts.1",
84
90
  "node-fetch": "2",
91
+ "pixelmatch": "^5.3.0",
92
+ "pngjs": "^7.0.0",
85
93
  "prettier": "2.8.8",
86
94
  "prettier-eslint": "16.1.1",
87
95
  "prettier-eslint-cli": "8.0.1",
@@ -102,7 +110,7 @@
102
110
  "systeminformation": "^5.25.11",
103
111
  "ts-protoc-gen": "^0.10.0",
104
112
  "tsconfig-paths-webpack-plugin": "^4.2.0",
105
- "typescript": "^3.9.7",
113
+ "typescript": "^5.8.3",
106
114
  "url-loader": "^4.1.1",
107
115
  "webpack": "^5.52.0",
108
116
  "webpack-bundle-analyzer": "^3.7.0",
@@ -110,5 +118,10 @@
110
118
  "webpack-dev-middleware": "^6.1.1",
111
119
  "webpack-dev-server": "^4.15.2",
112
120
  "yargs": "^17.7.2"
121
+ },
122
+ "devDependencies": {
123
+ "cross-env": "^7.0.3",
124
+ "jquery-images-compare": "^0.2.5",
125
+ "websocket": "^1.0.35"
113
126
  }
114
127
  }