@uform/core
Advanced tools
Comparing version 0.1.20 to 0.2.0
@@ -159,2 +159,6 @@ "use strict"; | ||
_proto.publishState = function publishState() { | ||
return (0, _utils.publishFieldState)(this); | ||
}; | ||
_proto.syncContextValue = function syncContextValue() { | ||
if (this.visible) { | ||
@@ -172,4 +176,2 @@ var contextValue = this.context.getValue(this.name, true); | ||
} | ||
return (0, _utils.publishFieldState)(this); | ||
}; | ||
@@ -176,0 +178,0 @@ |
@@ -86,2 +86,3 @@ "use strict"; | ||
if (field) { | ||
field.syncContextValue(); | ||
return (0, _utils.isFn)(callback) ? callback(field.publishState()) : field.publishState(); | ||
@@ -88,0 +89,0 @@ } |
{ | ||
"name": "@uform/core", | ||
"version": "0.1.20", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -21,4 +21,4 @@ "main": "lib", | ||
"dependencies": { | ||
"@uform/utils": "^0.1.20", | ||
"@uform/validator": "^0.1.20", | ||
"@uform/utils": "^0.2.0", | ||
"@uform/validator": "^0.2.0", | ||
"dot-match": "^0.1.18", | ||
@@ -31,3 +31,3 @@ "rxjs": "^6.3.3", | ||
}, | ||
"gitHead": "ee7c2f0b943e734cd6ece678ad96e6a60288b2eb" | ||
"gitHead": "d73125e1a27b97f08375d5b866c4c6169df4f847" | ||
} |
@@ -158,2 +158,6 @@ import { | ||
publishState() { | ||
return publishFieldState(this) | ||
} | ||
syncContextValue() { | ||
if (this.visible) { | ||
@@ -172,3 +176,2 @@ const contextValue = this.context.getValue(this.name, true) | ||
} | ||
return publishFieldState(this) | ||
} | ||
@@ -175,0 +178,0 @@ |
@@ -154,2 +154,3 @@ import { | ||
if (field) { | ||
field.syncContextValue() | ||
return isFn(callback) | ||
@@ -156,0 +157,0 @@ ? callback(field.publishState()) |
82610
2527
+ Added@uform/utils@0.2.3(transitive)
+ Added@uform/validator@0.2.3(transitive)
- Removed@uform/utils@0.1.20(transitive)
- Removed@uform/validator@0.1.20(transitive)
Updated@uform/utils@^0.2.0
Updated@uform/validator@^0.2.0