@heartlandone/vega-react 1.49.0 → 1.50.1
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { camelToDashCase } from './case';
|
|
2
|
+
import { FeatureFlag } from '@heartlandone/vega';
|
|
2
3
|
export const attachProps = (node, newProps, oldProps = {}) => {
|
|
3
4
|
// some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
|
|
4
5
|
if (node instanceof Element) {
|
|
@@ -23,6 +24,9 @@ export const attachProps = (node, newProps, oldProps = {}) => {
|
|
|
23
24
|
syncEvent(node, eventNameLc, newProps[name]);
|
|
24
25
|
}
|
|
25
26
|
}
|
|
27
|
+
else if (FeatureFlag.isEnabled('VEGA_REACT.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD')) {
|
|
28
|
+
attachProp(node, newProps, name);
|
|
29
|
+
}
|
|
26
30
|
else {
|
|
27
31
|
// For Next, the node have componentOnReady method in prototype of node, but no exist in React.
|
|
28
32
|
// so we attach props while componentOnReady in Next, and directly attach in React.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heartlandone/vega-react",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.50.1",
|
|
5
5
|
"description": "React specific wrapper for @heartlandone/vega",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"stencil-postbuild": "node ./src/scripts/stencil-post-build-script.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typescript": "^4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@heartlandone/vega": "1.
|
|
42
|
+
"@heartlandone/vega": "1.50.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.7.0",
|