@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.
- package/dom/bin/jsview-dom-browser-engine-core.min.js +1 -1
- package/dom/bin/jsview-dom-browser-engine-modules.min.js +1 -1
- package/dom/bin/{jsview-dom-browser-forge.1493.9a36.wasm → jsview-dom-browser-forge.1760.0e35.wasm} +0 -0
- package/dom/bin/jsview-dom-browser-forge.min.js +1 -1
- package/dom/bin/jsview-dom-browser-forge.worker.min.js +1 -1
- package/dom/bin/jsview-dom-browser.min.js +1 -1
- package/dom/bin/jsview-dom-native.min.js +1 -1
- package/dom/bin/jsview-engine-js-native.min.js +1 -1
- package/dom/target_core_revision.mjs +2 -2
- package/loader/jsv-core-api/jsview-core-api-glue.js +10 -1
- package/loader/jsv-core-api/wasm/core-api.js +87 -2
- package/loader/jsv-core-api/wasm/wasm-extension.js +5 -0
- package/loader/jsview-loader.js +7 -0
- package/loader/jsview-main.mjs +2 -1
- package/loader/jsview.config.default.js +4 -0
- package/package.json +7 -5
- package/patches/@vitejs+plugin-vue+4.0.0.patch +51 -0
- package/patches/@vitejs+plugin-vue+6.0.6.patch +54 -0
- package/patches/@vue+compiler-dom+3.2.45.patch +22 -0
- package/patches/@vue+compiler-dom+3.6.0-beta.10.patch +22 -0
- package/patches/@vue+compiler-sfc+3.2.45.patch +1986 -0
- package/patches/@vue+compiler-sfc+3.6.0-beta.10.patch +69 -0
- package/patches/@vue+runtime-core+3.2.45.patch +353 -0
- package/patches/@vue+runtime-core+3.6.0-beta.10.patch +196 -0
- package/patches/@vue+runtime-dom+3.2.45.patch +81 -0
- package/patches/@vue+runtime-dom+3.6.0-beta.10.patch +47 -0
- package/patches/postcss-js+5.1.0.patch +20 -0
- package/patches/vite+4.0.0.patch +117 -0
- package/patches/vite+8.0.9.patch +77 -0
- package/patches/vue-router+4.1.6.patch +17 -0
- package/patches/vue-router+5.0.6.patch +0 -0
- package/{patches/node_modules/@vue/compiler-sfc/dist/jsview-css-to-js.js → thirdparty/@vue/compiler-sfc/jsview-css-to-js.cjs} +15 -10
- package/{patches/node_modules/@vue/compiler-sfc/dist/jsview-style-checker.js → thirdparty/@vue/compiler-sfc/jsview-style-checker.cjs} +6 -1
- package/{patches/node_modules/@vue/compiler-sfc/dist/jsview-style-formator.cjs.js → thirdparty/@vue/compiler-sfc/jsview-style-formator.cjs} +3 -0
- package/thirdparty/@vue/runtime-core/jsview-render-break.mjs +189 -0
- package/thirdparty/vite/jsview-vite-extension.mjs +336 -0
- package/tools/jsview-build-zip.mjs +7 -2
- package/tools/jsview-common.mjs +17 -4
- package/tools/{jsview-logger.js → jsview-logger.cjs} +1 -1
- package/tools/jsview-post-build.mjs +55 -0
- package/tools/jsview-post-install.mjs +105 -103
- package/tools/jsview-run-tool.mjs +3 -6
- package/tools/jsview-vue-devtools.mjs +1 -1
- package/loader/jsview-react-main.js +0 -37
- package/loader/jsview-react-script-loader.js +0 -134
- package/patches/node_modules/@vitejs/plugin-react/dist/index.cjs +0 -520
- package/patches/node_modules/@vitejs/plugin-react/package.json +0 -55
- package/patches/node_modules/@vitejs/plugin-vue/dist/index.mjs +0 -2756
- package/patches/node_modules/@vitejs/plugin-vue/package.json +0 -51
- package/patches/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +0 -3152
- package/patches/node_modules/@vue/compiler-dom/package.json +0 -43
- package/patches/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +0 -17730
- package/patches/node_modules/@vue/compiler-sfc/package.json +0 -59
- package/patches/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -8154
- package/patches/node_modules/@vue/runtime-core/package.json +0 -38
- package/patches/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +0 -1531
- package/patches/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +0 -1740
- package/patches/node_modules/@vue/runtime-dom/package.json +0 -42
- package/patches/node_modules/postcss-js/objectifier.js +0 -94
- package/patches/node_modules/postcss-js/package.json +0 -42
- package/patches/node_modules/react-dev-utils/WebpackDevServerUtils.js +0 -450
- package/patches/node_modules/react-dev-utils/package.json +0 -88
- package/patches/node_modules/react-dom/cjs/react-dom.development.js +0 -29868
- package/patches/node_modules/react-dom/cjs/react-dom.production.min.js +0 -323
- package/patches/node_modules/react-dom/package.json +0 -62
- package/patches/node_modules/react-scripts/config/paths.js +0 -179
- package/patches/node_modules/react-scripts/config/webpack.config.js +0 -858
- package/patches/node_modules/react-scripts/package.json +0 -108
- package/patches/node_modules/vite/dist/node/chunks/dep-ed9cb113.js +0 -63182
- package/patches/node_modules/vite/dist/node/constants.js +0 -125
- package/patches/node_modules/vite/dist/node/jsview-vite-extension.js +0 -245
- package/patches/node_modules/vite/package.json +0 -153
- package/patches/node_modules/vue-router/dist/vue-router.mjs +0 -3613
- package/patches/node_modules/vue-router/package.json +0 -114
- package/patches/node_modules/webpack-dev-server/client/utils/reloadApp.js +0 -76
- package/patches/node_modules/webpack-dev-server/client/utils/sendMessage.js +0 -21
- package/patches/node_modules/webpack-dev-server/package.json +0 -141
- /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,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-dom",
|
|
3
|
-
"version": "18.2.0",
|
|
4
|
-
"description": "React package for working with the DOM.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/facebook/react.git",
|
|
9
|
-
"directory": "packages/react-dom"
|
|
10
|
-
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
"react"
|
|
13
|
-
],
|
|
14
|
-
"license": "MIT",
|
|
15
|
-
"bugs": {
|
|
16
|
-
"url": "https://github.com/facebook/react/issues"
|
|
17
|
-
},
|
|
18
|
-
"homepage": "https://reactjs.org/",
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"loose-envify": "^1.1.0",
|
|
21
|
-
"scheduler": "^0.23.0"
|
|
22
|
-
},
|
|
23
|
-
"peerDependencies": {
|
|
24
|
-
"react": "^18.2.0"
|
|
25
|
-
},
|
|
26
|
-
"files": [
|
|
27
|
-
"LICENSE",
|
|
28
|
-
"README.md",
|
|
29
|
-
"index.js",
|
|
30
|
-
"client.js",
|
|
31
|
-
"profiling.js",
|
|
32
|
-
"server.js",
|
|
33
|
-
"server.browser.js",
|
|
34
|
-
"server.node.js",
|
|
35
|
-
"test-utils.js",
|
|
36
|
-
"cjs/",
|
|
37
|
-
"umd/"
|
|
38
|
-
],
|
|
39
|
-
"exports": {
|
|
40
|
-
".": "./index.js",
|
|
41
|
-
"./client": "./client.js",
|
|
42
|
-
"./server": {
|
|
43
|
-
"deno": "./server.browser.js",
|
|
44
|
-
"worker": "./server.browser.js",
|
|
45
|
-
"browser": "./server.browser.js",
|
|
46
|
-
"default": "./server.node.js"
|
|
47
|
-
},
|
|
48
|
-
"./server.browser": "./server.browser.js",
|
|
49
|
-
"./server.node": "./server.node.js",
|
|
50
|
-
"./profiling": "./profiling.js",
|
|
51
|
-
"./test-utils": "./test-utils.js",
|
|
52
|
-
"./package.json": "./package.json"
|
|
53
|
-
},
|
|
54
|
-
"browser": {
|
|
55
|
-
"./server.js": "./server.browser.js"
|
|
56
|
-
},
|
|
57
|
-
"browserify": {
|
|
58
|
-
"transform": [
|
|
59
|
-
"loose-envify"
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
// @remove-on-eject-begin
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
// @remove-on-eject-end
|
|
9
|
-
'use strict';
|
|
10
|
-
|
|
11
|
-
const path = require('path');
|
|
12
|
-
const fs = require('fs');
|
|
13
|
-
const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath');
|
|
14
|
-
|
|
15
|
-
// Make sure any symlinks in the project folder are resolved:
|
|
16
|
-
// https://github.com/facebook/create-react-app/issues/637
|
|
17
|
-
const appDirectory = fs.realpathSync(process.cwd());
|
|
18
|
-
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
|
|
19
|
-
|
|
20
|
-
// We use `PUBLIC_URL` environment variable or "homepage" field to infer
|
|
21
|
-
// "public path" at which the app is served.
|
|
22
|
-
// webpack needs to know it to put the right <script> hrefs into HTML even in
|
|
23
|
-
// single-page apps that may serve index.html for nested URLs like /todos/42.
|
|
24
|
-
// We can't use a relative path in HTML because we don't want to load something
|
|
25
|
-
// like /todos/42/static/js/bundle.7289d.js. We have to know the root.
|
|
26
|
-
const publicUrlOrPath = getPublicUrlOrPath(
|
|
27
|
-
process.env.NODE_ENV === 'development',
|
|
28
|
-
// JsView Modified >>>
|
|
29
|
-
// index.html 使用相对路径
|
|
30
|
-
//require(resolveApp('package.json')).homepage,
|
|
31
|
-
require(resolveApp('package.json')).homepage ?? './',
|
|
32
|
-
// JsView Modified <<<
|
|
33
|
-
process.env.PUBLIC_URL
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
// JsView Modified >>>
|
|
37
|
-
// 将默认build目录改为 dist。
|
|
38
|
-
// const buildPath = process.env.BUILD_PATH || 'build';
|
|
39
|
-
const buildPath = process.env.BUILD_PATH || 'dist';
|
|
40
|
-
// JsView Modified <<<
|
|
41
|
-
|
|
42
|
-
const moduleFileExtensions = [
|
|
43
|
-
'web.mjs',
|
|
44
|
-
'mjs',
|
|
45
|
-
'web.js',
|
|
46
|
-
'js',
|
|
47
|
-
'web.ts',
|
|
48
|
-
'ts',
|
|
49
|
-
'web.tsx',
|
|
50
|
-
'tsx',
|
|
51
|
-
'json',
|
|
52
|
-
'web.jsx',
|
|
53
|
-
'jsx',
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
// Resolve file paths in the same order as webpack
|
|
57
|
-
const resolveModule = (resolveFn, filePath) => {
|
|
58
|
-
const extension = moduleFileExtensions.find(extension =>
|
|
59
|
-
fs.existsSync(resolveFn(`${filePath}.${extension}`))
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
if (extension) {
|
|
63
|
-
return resolveFn(`${filePath}.${extension}`);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return resolveFn(`${filePath}.js`);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// config after eject: we're in ./config/
|
|
70
|
-
module.exports = {
|
|
71
|
-
dotenv: resolveApp('.env'),
|
|
72
|
-
appPath: resolveApp('.'),
|
|
73
|
-
appBuild: resolveApp(buildPath),
|
|
74
|
-
appPublic: resolveApp('public'),
|
|
75
|
-
appHtml: resolveApp('public/index.html'),
|
|
76
|
-
// JsView Modified >>>
|
|
77
|
-
// 重定义react entry 和 jsview路径。
|
|
78
|
-
// workaround: 因为React的npm run build后,不能支持top-level-await,
|
|
79
|
-
// 所以只能在这里使用jsview-react-main.js加载 JsViewReactWidget/BrowserDebugWidget,
|
|
80
|
-
// 期待下一个版本的Webpack能修复此问题。
|
|
81
|
-
// appIndexJs: resolveModule(resolveApp, 'src/index'),
|
|
82
|
-
appIndexJs: resolveModule(resolveApp, 'node_modules/@shijiu/jsview/loader/jsview-react-main'),
|
|
83
|
-
jsviewPath: resolveApp('node_modules/@shijiu'),
|
|
84
|
-
jsviewDebugPath: resolveApp('../../@shijiu'),
|
|
85
|
-
// JsView Modified <<<
|
|
86
|
-
appPackageJson: resolveApp('package.json'),
|
|
87
|
-
appSrc: resolveApp('src'),
|
|
88
|
-
appTsConfig: resolveApp('tsconfig.json'),
|
|
89
|
-
appJsConfig: resolveApp('jsconfig.json'),
|
|
90
|
-
yarnLockFile: resolveApp('yarn.lock'),
|
|
91
|
-
testsSetup: resolveModule(resolveApp, 'src/setupTests'),
|
|
92
|
-
proxySetup: resolveApp('src/setupProxy.js'),
|
|
93
|
-
appNodeModules: resolveApp('node_modules'),
|
|
94
|
-
appWebpackCache: resolveApp('node_modules/.cache'),
|
|
95
|
-
appTsBuildInfoFile: resolveApp('node_modules/.cache/tsconfig.tsbuildinfo'),
|
|
96
|
-
swSrc: resolveModule(resolveApp, 'src/service-worker'),
|
|
97
|
-
publicUrlOrPath,
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// @remove-on-eject-begin
|
|
101
|
-
const resolveOwn = relativePath => path.resolve(__dirname, '..', relativePath);
|
|
102
|
-
|
|
103
|
-
// config before eject: we're in ./node_modules/react-scripts/config/
|
|
104
|
-
module.exports = {
|
|
105
|
-
dotenv: resolveApp('.env'),
|
|
106
|
-
appPath: resolveApp('.'),
|
|
107
|
-
appBuild: resolveApp(buildPath),
|
|
108
|
-
appPublic: resolveApp('public'),
|
|
109
|
-
appHtml: resolveApp('public/index.html'),
|
|
110
|
-
// JsView Modified >>>
|
|
111
|
-
// 重定义react entry 和 jsview路径。
|
|
112
|
-
// workaround: 因为React的npm run build后,不能支持top-level-await,
|
|
113
|
-
// 所以只能在这里使用jsview-react-main.js加载 JsViewReactWidget/BrowserDebugWidget,
|
|
114
|
-
// 期待下一个版本的Webpack能修复此问题。
|
|
115
|
-
// appIndexJs: resolveModule(resolveApp, 'src/index'),
|
|
116
|
-
appIndexJs: resolveModule(resolveApp, 'node_modules/@shijiu/jsview/loader/jsview-react-main'),
|
|
117
|
-
jsviewPath: resolveApp('node_modules/@shijiu'),
|
|
118
|
-
jsviewDebugPath: resolveApp('../../@shijiu'),
|
|
119
|
-
// JsView Modified <<<
|
|
120
|
-
appPackageJson: resolveApp('package.json'),
|
|
121
|
-
appSrc: resolveApp('src'),
|
|
122
|
-
appTsConfig: resolveApp('tsconfig.json'),
|
|
123
|
-
appJsConfig: resolveApp('jsconfig.json'),
|
|
124
|
-
yarnLockFile: resolveApp('yarn.lock'),
|
|
125
|
-
testsSetup: resolveModule(resolveApp, 'src/setupTests'),
|
|
126
|
-
proxySetup: resolveApp('src/setupProxy.js'),
|
|
127
|
-
appNodeModules: resolveApp('node_modules'),
|
|
128
|
-
appWebpackCache: resolveApp('node_modules/.cache'),
|
|
129
|
-
appTsBuildInfoFile: resolveApp('node_modules/.cache/tsconfig.tsbuildinfo'),
|
|
130
|
-
swSrc: resolveModule(resolveApp, 'src/service-worker'),
|
|
131
|
-
publicUrlOrPath,
|
|
132
|
-
// These properties only exist before ejecting:
|
|
133
|
-
ownPath: resolveOwn('.'),
|
|
134
|
-
ownNodeModules: resolveOwn('node_modules'), // This is empty on npm 3
|
|
135
|
-
appTypeDeclarations: resolveApp('src/react-app-env.d.ts'),
|
|
136
|
-
ownTypeDeclarations: resolveOwn('lib/react-app.d.ts'),
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
const ownPackageJson = require('../package.json');
|
|
140
|
-
const reactScriptsPath = resolveApp(`node_modules/${ownPackageJson.name}`);
|
|
141
|
-
const reactScriptsLinked =
|
|
142
|
-
fs.existsSync(reactScriptsPath) &&
|
|
143
|
-
fs.lstatSync(reactScriptsPath).isSymbolicLink();
|
|
144
|
-
|
|
145
|
-
// config before publish: we're in ./packages/react-scripts/config/
|
|
146
|
-
if (
|
|
147
|
-
!reactScriptsLinked &&
|
|
148
|
-
__dirname.indexOf(path.join('packages', 'react-scripts', 'config')) !== -1
|
|
149
|
-
) {
|
|
150
|
-
const templatePath = '../cra-template/template';
|
|
151
|
-
module.exports = {
|
|
152
|
-
dotenv: resolveOwn(`${templatePath}/.env`),
|
|
153
|
-
appPath: resolveApp('.'),
|
|
154
|
-
appBuild: resolveOwn(path.join('../..', buildPath)),
|
|
155
|
-
appPublic: resolveOwn(`${templatePath}/public`),
|
|
156
|
-
appHtml: resolveOwn(`${templatePath}/public/index.html`),
|
|
157
|
-
appIndexJs: resolveModule(resolveOwn, `${templatePath}/src/index`),
|
|
158
|
-
appPackageJson: resolveOwn('package.json'),
|
|
159
|
-
appSrc: resolveOwn(`${templatePath}/src`),
|
|
160
|
-
appTsConfig: resolveOwn(`${templatePath}/tsconfig.json`),
|
|
161
|
-
appJsConfig: resolveOwn(`${templatePath}/jsconfig.json`),
|
|
162
|
-
yarnLockFile: resolveOwn(`${templatePath}/yarn.lock`),
|
|
163
|
-
testsSetup: resolveModule(resolveOwn, `${templatePath}/src/setupTests`),
|
|
164
|
-
proxySetup: resolveOwn(`${templatePath}/src/setupProxy.js`),
|
|
165
|
-
appNodeModules: resolveOwn('node_modules'),
|
|
166
|
-
appWebpackCache: resolveOwn('node_modules/.cache'),
|
|
167
|
-
appTsBuildInfoFile: resolveOwn('node_modules/.cache/tsconfig.tsbuildinfo'),
|
|
168
|
-
swSrc: resolveModule(resolveOwn, `${templatePath}/src/service-worker`),
|
|
169
|
-
publicUrlOrPath,
|
|
170
|
-
// These properties only exist before ejecting:
|
|
171
|
-
ownPath: resolveOwn('.'),
|
|
172
|
-
ownNodeModules: resolveOwn('node_modules'),
|
|
173
|
-
appTypeDeclarations: resolveOwn(`${templatePath}/src/react-app-env.d.ts`),
|
|
174
|
-
ownTypeDeclarations: resolveOwn('lib/react-app.d.ts'),
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
// @remove-on-eject-end
|
|
178
|
-
|
|
179
|
-
module.exports.moduleFileExtensions = moduleFileExtensions;
|