@shijiu/jsview 2.1.200 → 2.1.340-test.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.min.js +1 -1
- package/dom/bin/jsview-dom-native.min.js +1 -1
- package/dom/bin/jsview-engine-js-browser.min.js +1 -1
- package/dom/bin/jsview-forge-define.min.js +1 -1
- package/dom/index.mjs +3 -6
- package/dom/target_core_revision.mjs +5 -5
- package/package.json +1 -1
- package/patches/node_modules/@vitejs/plugin-vue/dist/index.mjs +337 -123
- package/patches/node_modules/@vitejs/plugin-vue/package.json +16 -18
- package/patches/node_modules/@vue/compiler-sfc/dist/jsview-css-to-js.js +8 -2
- package/patches/node_modules/@vue/compiler-sfc/dist/jsview-style-checker.js +4 -4
- package/patches/node_modules/@vue/compiler-sfc/dist/jsview-style-formator.cjs.js +5 -0
- package/patches/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +21 -1
- package/patches/node_modules/vite/dist/node/chunks/{dep-ed9cb113.js → dep-V3BH7oO1.js} +48169 -42865
- package/patches/node_modules/vite/dist/node/constants.js +7 -1
- package/patches/node_modules/vite/dist/node/jsview-vite-extension.js +19 -8
- package/patches/node_modules/vite/package.json +86 -64
- package/tools/jsview-logger.js +3 -1
- package/tsconfig.json +0 -34
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/plugin-vue",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Evan You",
|
|
6
6
|
"files": [
|
|
@@ -11,19 +11,12 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
14
|
"import": "./dist/index.mjs",
|
|
16
15
|
"require": "./dist/index.cjs"
|
|
17
16
|
}
|
|
18
17
|
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"dev": "unbuild --stub",
|
|
21
|
-
"build": "unbuild && pnpm run patch-cjs",
|
|
22
|
-
"patch-cjs": "tsx ../../scripts/patchCJS.ts",
|
|
23
|
-
"prepublishOnly": "npm run build"
|
|
24
|
-
},
|
|
25
18
|
"engines": {
|
|
26
|
-
"node": "^
|
|
19
|
+
"node": "^18.0.0 || >=20.0.0"
|
|
27
20
|
},
|
|
28
21
|
"repository": {
|
|
29
22
|
"type": "git",
|
|
@@ -35,17 +28,22 @@
|
|
|
35
28
|
},
|
|
36
29
|
"homepage": "https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#readme",
|
|
37
30
|
"peerDependencies": {
|
|
38
|
-
"vite": "^
|
|
31
|
+
"vite": "^5.0.0",
|
|
39
32
|
"vue": "^3.2.25"
|
|
40
33
|
},
|
|
41
34
|
"devDependencies": {
|
|
42
|
-
"@jridgewell/gen-mapping": "^0.3.
|
|
43
|
-
"@jridgewell/trace-mapping": "^0.3.
|
|
35
|
+
"@jridgewell/gen-mapping": "^0.3.3",
|
|
36
|
+
"@jridgewell/trace-mapping": "^0.3.20",
|
|
44
37
|
"debug": "^4.3.4",
|
|
45
|
-
"rollup": "^
|
|
46
|
-
"slash": "^5.
|
|
47
|
-
"source-map": "^0.
|
|
48
|
-
"vite": "^
|
|
49
|
-
"vue": "^3.
|
|
38
|
+
"rollup": "^4.9.2",
|
|
39
|
+
"slash": "^5.1.0",
|
|
40
|
+
"source-map-js": "^1.0.2",
|
|
41
|
+
"vite": "^5.0.10",
|
|
42
|
+
"vue": "^3.4.5"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"dev": "unbuild --stub",
|
|
46
|
+
"build": "unbuild && pnpm run patch-cjs",
|
|
47
|
+
"patch-cjs": "tsx ../../scripts/patchCJS.ts"
|
|
50
48
|
}
|
|
51
|
-
}
|
|
49
|
+
}
|
|
@@ -41,7 +41,7 @@ function compileCssToJs(sfc, options) {
|
|
|
41
41
|
const compiledJsContent = compileCssToJsImpl(sfc, options)
|
|
42
42
|
return compiledJsContent;
|
|
43
43
|
} catch (exception) {
|
|
44
|
-
Logger.
|
|
44
|
+
Logger.ErrorAndExit(Logger.GetFileTag(sfc.filename), 'Failed to call compileCssToJs()!', exception);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -444,6 +444,12 @@ function parseUnscopedStyleSheets(node, selector, declarations, scopedId) {
|
|
|
444
444
|
let styleRules = {};
|
|
445
445
|
|
|
446
446
|
for (let [name, value] of Object.entries(declarations)) {
|
|
447
|
+
if (name == 'objectFit' || name == 'overflow') {
|
|
448
|
+
// 因为<style>标签中添加objectFit和overflow的操作滞后于Element的ClipView创建,
|
|
449
|
+
// 所以 class 不支持'objectFit' 和 styleName == 'overflow'
|
|
450
|
+
const errMsg = "Unimplemented style name: " + name + ", please set the " + name + " attribute directly in the element's style.";
|
|
451
|
+
Logger.Warn(Logger.GetFileTag(node.source.input.file), errMsg);
|
|
452
|
+
}
|
|
447
453
|
if (value instanceof Array) { // 同一个name定义了多次
|
|
448
454
|
Logger.Warn(Logger.GetFileTag(node.source.input.file), 'Multi defined CSS name "' + name + '" from ' + selector + '.\n');
|
|
449
455
|
value = value[value.length - 1];
|
|
@@ -478,4 +484,4 @@ function parseUnscopedStyleSheets(node, selector, declarations, scopedId) {
|
|
|
478
484
|
|
|
479
485
|
exports.ensureSfcDescriptor = ensureSfcDescriptor;
|
|
480
486
|
exports.compileCssToJs = compileCssToJs;
|
|
481
|
-
// exports.compileAndSaveImportedNode = compileAndSaveImportedNode;
|
|
487
|
+
// exports.compileAndSaveImportedNode = compileAndSaveImportedNode;
|
|
@@ -33,7 +33,7 @@ class StyleChecker {
|
|
|
33
33
|
case StyleName.Effect.ClipPath:
|
|
34
34
|
case StyleName.Effect.Display:
|
|
35
35
|
case StyleName.Effect.ObjectFit:
|
|
36
|
-
case StyleName.Effect.Opacity:
|
|
36
|
+
// case StyleName.Effect.Opacity:
|
|
37
37
|
case StyleName.Effect.Overflow:
|
|
38
38
|
case StyleName.Effect.Perspective:
|
|
39
39
|
case StyleName.Effect.PerspectiveOrigin:
|
|
@@ -139,9 +139,9 @@ class StyleChecker {
|
|
|
139
139
|
static #GetEffectValue(fileName, propName, propValue) {
|
|
140
140
|
let formattedValue = null;
|
|
141
141
|
switch (propName) {
|
|
142
|
-
case StyleName.Effect.Opacity:
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
// case StyleName.Effect.Opacity:
|
|
143
|
+
// formattedValue = StyleFormator.ConvertToFloat(propName, propValue);
|
|
144
|
+
// break;
|
|
145
145
|
case StyleName.Effect.ZIndex:
|
|
146
146
|
formattedValue = StyleFormator.ConvertToInt32(propName, propValue);
|
|
147
147
|
break;
|
|
@@ -156,6 +156,7 @@ class StyleName {
|
|
|
156
156
|
static Motion = class {
|
|
157
157
|
static Animation = "animation";
|
|
158
158
|
static Transition = "transition";
|
|
159
|
+
static AnimationFillMode = "animationFillMode";
|
|
159
160
|
constructor() { throw new Error("new StyleName.Motion() is forbidden."); }
|
|
160
161
|
};
|
|
161
162
|
static HasGetterMethod(name) {
|
|
@@ -301,6 +302,9 @@ class StyleName {
|
|
|
301
302
|
else if (name == StyleName.Motion.Transition) {
|
|
302
303
|
return StyleName.Motion.Transition;
|
|
303
304
|
}
|
|
305
|
+
else if (name == StyleName.Motion.AnimationFillMode) {
|
|
306
|
+
return StyleName.Motion.AnimationFillMode;
|
|
307
|
+
}
|
|
304
308
|
return null;
|
|
305
309
|
}
|
|
306
310
|
constructor() { throw new Error("new StyleName() is forbidden."); }
|
|
@@ -1204,3 +1208,4 @@ exports.StyleFormator = StyleFormator;
|
|
|
1204
1208
|
exports.StyleName = StyleName;
|
|
1205
1209
|
exports.StyleValue = StyleValue;
|
|
1206
1210
|
exports.StyleVariable = StyleVariable;
|
|
1211
|
+
//# sourceMappingURL=jsview-style-formator.cjs.js.map
|
|
@@ -1143,7 +1143,14 @@ const isElementRoot = (vnode) => {
|
|
|
1143
1143
|
};
|
|
1144
1144
|
function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
1145
1145
|
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
1146
|
-
|
|
1146
|
+
// JsView Modified >>>
|
|
1147
|
+
// const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
1148
|
+
const { props: nextProps, children: nextChildren, patchFlag, key } = nextVNode;
|
|
1149
|
+
if (key == "__QcodeJsviewFreezeComponent") {
|
|
1150
|
+
return;
|
|
1151
|
+
}
|
|
1152
|
+
// JsView Modified <<<
|
|
1153
|
+
|
|
1147
1154
|
const emits = component.emitsOptions;
|
|
1148
1155
|
// Parent component's render function was hot-updated. Since this may have
|
|
1149
1156
|
// caused the child component's slots content to have changed, we need to
|
|
@@ -5707,6 +5714,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5707
5714
|
const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => {
|
|
5708
5715
|
const componentUpdateFn = () => {
|
|
5709
5716
|
if (!instance.isMounted) {
|
|
5717
|
+
// JsView Added >>>
|
|
5718
|
+
startMeasure(instance, "react-mount");
|
|
5719
|
+
// JsView Added <<<
|
|
5710
5720
|
let vnodeHook;
|
|
5711
5721
|
const { el, props } = initialVNode;
|
|
5712
5722
|
const { bm, m, parent } = instance;
|
|
@@ -5794,9 +5804,16 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5794
5804
|
}
|
|
5795
5805
|
// #2458: deference mount-only object parameters to prevent memleaks
|
|
5796
5806
|
initialVNode = container = anchor = null;
|
|
5807
|
+
|
|
5808
|
+
// JsView Added >>>
|
|
5809
|
+
endMeasure(instance, "react-mount");
|
|
5810
|
+
// JsView Added <<<
|
|
5797
5811
|
}
|
|
5798
5812
|
else {
|
|
5799
5813
|
// updateComponent
|
|
5814
|
+
// JsView Added >>>
|
|
5815
|
+
startMeasure(instance, "reactive");
|
|
5816
|
+
// JsView Added <<<
|
|
5800
5817
|
// This is triggered by mutation of component's own state (next: null)
|
|
5801
5818
|
// OR parent calling processComponent (next: VNode)
|
|
5802
5819
|
let { next, bu, u, parent, vnode } = instance;
|
|
@@ -5899,6 +5916,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5899
5916
|
if ((process.env.NODE_ENV !== 'production')) {
|
|
5900
5917
|
popWarningContext();
|
|
5901
5918
|
}
|
|
5919
|
+
// JsView Added >>>
|
|
5920
|
+
endMeasure(instance, "reactive");
|
|
5921
|
+
// JsView Added <<<
|
|
5902
5922
|
}
|
|
5903
5923
|
};
|
|
5904
5924
|
// create reactive effect for rendering
|