@shijiu/jsview 2.3.151-test.0 → 3.0.0-next-vue.0

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.
Files changed (78) hide show
  1. package/dom/bin/jsview-dom-browser-engine-core.min.js +1 -1
  2. package/dom/bin/jsview-dom-browser-engine-modules.min.js +1 -1
  3. package/dom/bin/{jsview-dom-browser-forge.1493.9a36.wasm → jsview-dom-browser-forge.1760.0e35.wasm} +0 -0
  4. package/dom/bin/jsview-dom-browser-forge.min.js +1 -1
  5. package/dom/bin/jsview-dom-browser-forge.worker.min.js +1 -1
  6. package/dom/bin/jsview-dom-browser.min.js +1 -1
  7. package/dom/bin/jsview-dom-native.min.js +1 -1
  8. package/dom/bin/jsview-engine-js-native.min.js +1 -1
  9. package/dom/target_core_revision.mjs +2 -2
  10. package/loader/jsv-core-api/jsview-core-api-glue.js +10 -1
  11. package/loader/jsv-core-api/wasm/core-api.js +87 -2
  12. package/loader/jsv-core-api/wasm/wasm-extension.js +5 -0
  13. package/loader/jsview-loader.js +7 -0
  14. package/loader/jsview-main.mjs +2 -1
  15. package/loader/jsview.config.default.js +4 -0
  16. package/package.json +7 -5
  17. package/patches/@vitejs+plugin-vue+4.0.0.patch +51 -0
  18. package/patches/@vitejs+plugin-vue+6.0.6.patch +54 -0
  19. package/patches/@vue+compiler-dom+3.2.45.patch +22 -0
  20. package/patches/@vue+compiler-dom+3.6.0-beta.10.patch +22 -0
  21. package/patches/@vue+compiler-sfc+3.2.45.patch +1986 -0
  22. package/patches/@vue+compiler-sfc+3.6.0-beta.10.patch +69 -0
  23. package/patches/@vue+runtime-core+3.2.45.patch +353 -0
  24. package/patches/@vue+runtime-core+3.6.0-beta.10.patch +196 -0
  25. package/patches/@vue+runtime-dom+3.2.45.patch +81 -0
  26. package/patches/@vue+runtime-dom+3.6.0-beta.10.patch +47 -0
  27. package/patches/postcss-js+5.1.0.patch +20 -0
  28. package/patches/vite+4.0.0.patch +117 -0
  29. package/patches/vite+8.0.9.patch +77 -0
  30. package/patches/vue-router+4.1.6.patch +17 -0
  31. package/patches/vue-router+5.0.6.patch +0 -0
  32. package/{patches/node_modules/@vue/compiler-sfc/dist/jsview-css-to-js.js → thirdparty/@vue/compiler-sfc/jsview-css-to-js.cjs} +15 -10
  33. package/{patches/node_modules/@vue/compiler-sfc/dist/jsview-style-checker.js → thirdparty/@vue/compiler-sfc/jsview-style-checker.cjs} +6 -1
  34. package/{patches/node_modules/@vue/compiler-sfc/dist/jsview-style-formator.cjs.js → thirdparty/@vue/compiler-sfc/jsview-style-formator.cjs} +3 -0
  35. package/thirdparty/@vue/runtime-core/jsview-render-break.mjs +189 -0
  36. package/thirdparty/vite/jsview-vite-extension.mjs +336 -0
  37. package/tools/jsview-build-zip.mjs +7 -2
  38. package/tools/jsview-common.mjs +17 -4
  39. package/tools/{jsview-logger.js → jsview-logger.cjs} +1 -1
  40. package/tools/jsview-post-build.mjs +55 -0
  41. package/tools/jsview-post-install.mjs +105 -103
  42. package/tools/jsview-run-tool.mjs +3 -6
  43. package/tools/jsview-vue-devtools.mjs +1 -1
  44. package/loader/jsview-react-main.js +0 -37
  45. package/loader/jsview-react-script-loader.js +0 -134
  46. package/patches/node_modules/@vitejs/plugin-react/dist/index.cjs +0 -520
  47. package/patches/node_modules/@vitejs/plugin-react/package.json +0 -55
  48. package/patches/node_modules/@vitejs/plugin-vue/dist/index.mjs +0 -2756
  49. package/patches/node_modules/@vitejs/plugin-vue/package.json +0 -51
  50. package/patches/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +0 -3152
  51. package/patches/node_modules/@vue/compiler-dom/package.json +0 -43
  52. package/patches/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +0 -17730
  53. package/patches/node_modules/@vue/compiler-sfc/package.json +0 -59
  54. package/patches/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -8154
  55. package/patches/node_modules/@vue/runtime-core/package.json +0 -38
  56. package/patches/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +0 -1531
  57. package/patches/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +0 -1740
  58. package/patches/node_modules/@vue/runtime-dom/package.json +0 -42
  59. package/patches/node_modules/postcss-js/objectifier.js +0 -94
  60. package/patches/node_modules/postcss-js/package.json +0 -42
  61. package/patches/node_modules/react-dev-utils/WebpackDevServerUtils.js +0 -450
  62. package/patches/node_modules/react-dev-utils/package.json +0 -88
  63. package/patches/node_modules/react-dom/cjs/react-dom.development.js +0 -29868
  64. package/patches/node_modules/react-dom/cjs/react-dom.production.min.js +0 -323
  65. package/patches/node_modules/react-dom/package.json +0 -62
  66. package/patches/node_modules/react-scripts/config/paths.js +0 -179
  67. package/patches/node_modules/react-scripts/config/webpack.config.js +0 -858
  68. package/patches/node_modules/react-scripts/package.json +0 -108
  69. package/patches/node_modules/vite/dist/node/chunks/dep-ed9cb113.js +0 -63182
  70. package/patches/node_modules/vite/dist/node/constants.js +0 -125
  71. package/patches/node_modules/vite/dist/node/jsview-vite-extension.js +0 -245
  72. package/patches/node_modules/vite/package.json +0 -153
  73. package/patches/node_modules/vue-router/dist/vue-router.mjs +0 -3613
  74. package/patches/node_modules/vue-router/package.json +0 -114
  75. package/patches/node_modules/webpack-dev-server/client/utils/reloadApp.js +0 -76
  76. package/patches/node_modules/webpack-dev-server/client/utils/sendMessage.js +0 -21
  77. package/patches/node_modules/webpack-dev-server/package.json +0 -141
  78. /package/patches/{node_modules/@originjs/vite-plugin-federation/1.3.4/@originjs+vite-plugin-federation+1.3.4.patch → @originjs+vite-plugin-federation+1.3.4.patch} +0 -0
@@ -1,114 +0,0 @@
1
- {
2
- "name": "vue-router",
3
- "version": "4.1.6",
4
- "main": "index.js",
5
- "unpkg": "dist/vue-router.global.js",
6
- "jsdelivr": "dist/vue-router.global.js",
7
- "module": "dist/vue-router.mjs",
8
- "types": "dist/vue-router.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/vue-router.d.ts",
12
- "node": {
13
- "import": {
14
- "production": "./dist/vue-router.node.mjs",
15
- "development": "./dist/vue-router.node.mjs",
16
- "default": "./dist/vue-router.node.mjs"
17
- },
18
- "require": {
19
- "production": "./dist/vue-router.prod.cjs",
20
- "development": "./dist/vue-router.cjs",
21
- "default": "./index.js"
22
- }
23
- },
24
- "import": "./dist/vue-router.mjs",
25
- "require": "./index.js"
26
- },
27
- "./dist/*": "./dist/*",
28
- "./vetur/*": "./vetur/*",
29
- "./package.json": "./package.json"
30
- },
31
- "sideEffects": false,
32
- "funding": "https://github.com/sponsors/posva",
33
- "license": "MIT",
34
- "repository": {
35
- "type": "git",
36
- "url": "git+https://github.com/vuejs/router.git"
37
- },
38
- "bugs": {
39
- "url": "https://github.com/vuejs/router/issues"
40
- },
41
- "homepage": "https://github.com/vuejs/router#readme",
42
- "files": [
43
- "index.js",
44
- "dist/*.{js,cjs,mjs}",
45
- "dist/vue-router.d.ts",
46
- "vetur/tags.json",
47
- "vetur/attributes.json",
48
- "README.md"
49
- ],
50
- "peerDependencies": {
51
- "vue": "^3.2.0"
52
- },
53
- "vetur": {
54
- "tags": "vetur/tags.json",
55
- "attributes": "vetur/attributes.json"
56
- },
57
- "dependencies": {
58
- "@vue/devtools-api": "^6.4.5"
59
- },
60
- "devDependencies": {
61
- "@microsoft/api-extractor": "^7.29.2",
62
- "@rollup/plugin-alias": "^3.1.4",
63
- "@rollup/plugin-commonjs": "^22.0.2",
64
- "@rollup/plugin-node-resolve": "^13.0.5",
65
- "@rollup/plugin-replace": "^4.0.0",
66
- "@sucrase/jest-plugin": "^2.1.1",
67
- "@types/jest": "^27.4.1",
68
- "@types/jsdom": "^16.2.13",
69
- "@types/nightwatch": "^2.3.12",
70
- "@vitejs/plugin-vue": "^2.3.3",
71
- "@vue/compiler-sfc": "^3.2.41",
72
- "@vue/server-renderer": "^3.2.41",
73
- "@vue/test-utils": "^2.2.0",
74
- "browserstack-local": "^1.4.5",
75
- "chromedriver": "^106.0.1",
76
- "connect-history-api-fallback": "^1.6.0",
77
- "conventional-changelog-cli": "^2.1.1",
78
- "dotenv": "^16.0.3",
79
- "faked-promise": "^2.2.2",
80
- "geckodriver": "^3.2.0",
81
- "jest": "^27.5.1",
82
- "jest-mock-warn": "^1.1.0",
83
- "nightwatch": "^2.4.1",
84
- "nightwatch-helpers": "^1.2.0",
85
- "rimraf": "^3.0.2",
86
- "rollup": "^2.78.0",
87
- "rollup-plugin-analyzer": "^4.0.0",
88
- "rollup-plugin-terser": "^7.0.2",
89
- "rollup-plugin-typescript2": "^0.32.1",
90
- "typescript": "~4.7.4",
91
- "vite": "^3.1.8",
92
- "vue": "^3.2.41"
93
- },
94
- "scripts": {
95
- "dev": "jest --watch",
96
- "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
97
- "build": "rimraf dist && rollup -c rollup.config.js",
98
- "build:dts": "api-extractor run --local --verbose && tail -n +10 src/globalExtensions.ts >> dist/vue-router.d.ts",
99
- "build:playground": "vue-tsc --noEmit && vite build --config playground/vite.config.js",
100
- "build:e2e": "vue-tsc --noEmit && vite build --config e2e/vite.config.js",
101
- "build:size": "pnpm run build && rollup -c size-checks/rollup.config.js",
102
- "dev:e2e": "vite --config e2e/vite.config.js",
103
- "test:types": "tsc --build tsconfig.json",
104
- "test:dts": "tsc -p ./test-dts/tsconfig.json",
105
- "test:unit": "jest --coverage",
106
- "test": "pnpm run test:types && pnpm run test:unit && pnpm run build && pnpm run build:dts && pnpm run test:e2e",
107
- "test:e2e": "pnpm run test:e2e:headless",
108
- "test:e2e:headless": "node e2e/runner.js --env chrome-headless",
109
- "test:e2e:native": "node e2e/runner.js --env chrome",
110
- "test:e2e:ci": "node e2e/runner.js --env chrome-headless --retries 2",
111
- "test:e2e:bs": "node e2e/runner.js --local -e android5 --tag browserstack",
112
- "test:e2e:bs-test": "node e2e/runner.js --local --env browserstack.local_chrome --tag browserstack"
113
- }
114
- }
@@ -1,76 +0,0 @@
1
- import hotEmitter from "webpack/hot/emitter.js";
2
- import { log } from "./log.js";
3
- /** @typedef {import("../index").Options} Options
4
- /** @typedef {import("../index").Status} Status
5
-
6
- /**
7
- * @param {Options} options
8
- * @param {Status} status
9
- */
10
-
11
- function reloadApp(_ref, status) {
12
- var hot = _ref.hot,
13
- liveReload = _ref.liveReload;
14
-
15
- if (status.isUnloading) {
16
- return;
17
- }
18
-
19
- var currentHash = status.currentHash,
20
- previousHash = status.previousHash;
21
- var isInitial = currentHash.indexOf(
22
- /** @type {string} */
23
- previousHash) >= 0;
24
-
25
- if (isInitial) {
26
- return;
27
- }
28
- /**
29
- * @param {Window} rootWindow
30
- * @param {number} intervalId
31
- */
32
-
33
-
34
- function applyReload(rootWindow, intervalId) {
35
- clearInterval(intervalId);
36
- log.info("App updated. Reloading...");
37
- rootWindow.location.reload();
38
- }
39
-
40
- var search = self.location.search.toLowerCase();
41
- var allowToHot = search.indexOf("webpack-dev-server-hot=false") === -1;
42
- var allowToLiveReload = search.indexOf("webpack-dev-server-live-reload=false") === -1;
43
-
44
- if (hot && allowToHot) {
45
- log.info("App hot update...");
46
- hotEmitter.emit("webpackHotUpdate", status.currentHash);
47
-
48
- if (typeof self !== "undefined" && self.window) {
49
- // broadcast update to window
50
- // JsView Modified >>>
51
- // 忽略盒子不支持的self.postMessage
52
- // self.postMessage("webpackHotUpdate".concat(status.currentHash), "*");
53
- self.postMessage?.("webpackHotUpdate".concat(status.currentHash), "*");
54
- // JsView Modified <<<
55
- }
56
- } // allow refreshing the page only if liveReload isn't disabled
57
- else if (liveReload && allowToLiveReload) {
58
- var rootWindow = self; // use parent window for reload (in case we're in an iframe with no valid src)
59
-
60
- var intervalId = self.setInterval(function () {
61
- if (rootWindow.location.protocol !== "about:") {
62
- // reload immediately if protocol is valid
63
- applyReload(rootWindow, intervalId);
64
- } else {
65
- rootWindow = rootWindow.parent;
66
-
67
- if (rootWindow.parent === rootWindow) {
68
- // if parent equals current window we've reached the root which would continue forever, so trigger a reload anyways
69
- applyReload(rootWindow, intervalId);
70
- }
71
- }
72
- });
73
- }
74
- }
75
-
76
- export default reloadApp;
@@ -1,21 +0,0 @@
1
- /* global __resourceQuery WorkerGlobalScope */
2
- // Send messages to the outside, so plugins can consume it.
3
-
4
- /**
5
- * @param {string} type
6
- * @param {any} [data]
7
- */
8
- function sendMsg(type, data) {
9
- if (typeof self !== "undefined" && (typeof WorkerGlobalScope === "undefined" || !(self instanceof WorkerGlobalScope))) {
10
- // JsView Modified >>>
11
- // 忽略盒子不支持的self.postMessage
12
- // self.postMessage({
13
- self.postMessage?.({
14
- // JsView Modified <<<
15
- type: "webpack".concat(type),
16
- data: data
17
- }, "*");
18
- }
19
- }
20
-
21
- export default sendMsg;
@@ -1,141 +0,0 @@
1
- {
2
- "name": "webpack-dev-server",
3
- "version": "4.11.1",
4
- "description": "Serves a webpack app. Updates the browser on changes.",
5
- "bin": "bin/webpack-dev-server.js",
6
- "main": "lib/Server.js",
7
- "types": "types/lib/Server.d.ts",
8
- "author": "Tobias Koppers @sokra",
9
- "bugs": "https://github.com/webpack/webpack-dev-server/issues",
10
- "homepage": "https://github.com/webpack/webpack-dev-server#readme",
11
- "repository": "https://github.com/webpack/webpack-dev-server",
12
- "license": "MIT",
13
- "funding": {
14
- "type": "opencollective",
15
- "url": "https://opencollective.com/webpack"
16
- },
17
- "files": [
18
- "bin",
19
- "lib",
20
- "client",
21
- "types"
22
- ],
23
- "engines": {
24
- "node": ">= 12.13.0"
25
- },
26
- "scripts": {
27
- "fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
28
- "lint:js": "eslint . --cache",
29
- "lint:types": "tsc --pretty --noEmit",
30
- "lint": "npm-run-all -p \"fmt:**\" \"lint:**\"",
31
- "fmt": "npm run fmt:check -- --write",
32
- "fix:js": "npm run lint:js -- --fix",
33
- "fix": "npm-run-all fix:js fmt",
34
- "commitlint": "commitlint --from=master",
35
- "build:client": "rimraf ./client/* && babel client-src/ --out-dir client/ --ignore \"client-src/webpack.config.js\" --ignore \"client-src/modules\" && webpack --config client-src/webpack.config.js",
36
- "build:types": "rimraf ./types/* && tsc --declaration --emitDeclarationOnly --outDir types && node ./scripts/extend-webpack-types.js && prettier \"types/**/*.ts\" --write && prettier \"types/**/*.ts\" --write",
37
- "build": "npm-run-all -p \"build:**\"",
38
- "test:only": "jest",
39
- "test:coverage": "npm run test:only -- --coverage",
40
- "test:watch": "npm run test:coverage --watch",
41
- "test": "npm run test:coverage",
42
- "pretest": "npm run lint",
43
- "prepare": "husky install && npm run build",
44
- "release": "standard-version"
45
- },
46
- "dependencies": {
47
- "@types/bonjour": "^3.5.9",
48
- "@types/connect-history-api-fallback": "^1.3.5",
49
- "@types/express": "^4.17.13",
50
- "@types/serve-index": "^1.9.1",
51
- "@types/serve-static": "^1.13.10",
52
- "@types/sockjs": "^0.3.33",
53
- "@types/ws": "^8.5.1",
54
- "ansi-html-community": "^0.0.8",
55
- "bonjour-service": "^1.0.11",
56
- "chokidar": "^3.5.3",
57
- "colorette": "^2.0.10",
58
- "compression": "^1.7.4",
59
- "connect-history-api-fallback": "^2.0.0",
60
- "default-gateway": "^6.0.3",
61
- "express": "^4.17.3",
62
- "graceful-fs": "^4.2.6",
63
- "html-entities": "^2.3.2",
64
- "http-proxy-middleware": "^2.0.3",
65
- "ipaddr.js": "^2.0.1",
66
- "open": "^8.0.9",
67
- "p-retry": "^4.5.0",
68
- "rimraf": "^3.0.2",
69
- "schema-utils": "^4.0.0",
70
- "selfsigned": "^2.1.1",
71
- "serve-index": "^1.9.1",
72
- "sockjs": "^0.3.24",
73
- "spdy": "^4.0.2",
74
- "webpack-dev-middleware": "^5.3.1",
75
- "ws": "^8.4.2"
76
- },
77
- "devDependencies": {
78
- "@babel/cli": "^7.17.3",
79
- "@babel/core": "^7.17.5",
80
- "@babel/eslint-parser": "^7.17.0",
81
- "@babel/plugin-transform-object-assign": "^7.14.5",
82
- "@babel/plugin-transform-runtime": "^7.17.0",
83
- "@babel/preset-env": "^7.16.11",
84
- "@babel/runtime": "^7.17.2",
85
- "@commitlint/cli": "^16.2.3",
86
- "@commitlint/config-conventional": "^16.2.1",
87
- "@types/compression": "^1.7.2",
88
- "@types/default-gateway": "^3.0.1",
89
- "@types/node-forge": "^1.0.4",
90
- "@types/rimraf": "^3.0.2",
91
- "@types/sockjs-client": "^1.5.1",
92
- "@types/trusted-types": "^2.0.2",
93
- "acorn": "^8.2.4",
94
- "babel-jest": "^28.1.3",
95
- "babel-loader": "^8.2.4",
96
- "body-parser": "^1.19.2",
97
- "core-js": "^3.21.1",
98
- "css-loader": "^5.2.4",
99
- "eslint": "^8.12.0",
100
- "eslint-config-prettier": "^8.4.0",
101
- "eslint-config-webpack": "^1.2.5",
102
- "eslint-plugin-import": "^2.23.2",
103
- "execa": "^5.1.1",
104
- "file-loader": "^6.2.0",
105
- "html-webpack-plugin": "^4.5.2",
106
- "http-proxy": "^1.18.1",
107
- "husky": "^7.0.0",
108
- "jest": "^28.1.3",
109
- "jest-environment-jsdom": "^28.1.3",
110
- "klona": "^2.0.4",
111
- "less": "^4.1.1",
112
- "less-loader": "^7.3.0",
113
- "lint-staged": "^12.3.4",
114
- "marked": "^4.0.12",
115
- "memfs": "^3.2.2",
116
- "npm-run-all": "^4.1.5",
117
- "prettier": "^2.6.1",
118
- "puppeteer": "^13.4.1",
119
- "require-from-string": "^2.0.2",
120
- "rimraf": "^3.0.2",
121
- "sockjs-client": "^1.6.1",
122
- "standard-version": "^9.3.0",
123
- "strip-ansi-v6": "npm:strip-ansi@^6.0.0",
124
- "style-loader": "^2.0.0",
125
- "supertest": "^6.1.3",
126
- "tcp-port-used": "^1.0.2",
127
- "typescript": "^4.7.2",
128
- "url-loader": "^4.1.1",
129
- "webpack": "^5.71.0",
130
- "webpack-cli": "^4.7.2",
131
- "webpack-merge": "^5.8.0"
132
- },
133
- "peerDependencies": {
134
- "webpack": "^4.37.0 || ^5.0.0"
135
- },
136
- "peerDependenciesMeta": {
137
- "webpack-cli": {
138
- "optional": true
139
- }
140
- }
141
- }