ballerina-core 1.0.188 → 1.0.190

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.188",
5
+ "version": "1.0.190",
6
6
  "main": "main.ts",
7
7
  "scripts": {
8
8
  "prettier": "prettier --write ."
@@ -1542,7 +1542,9 @@ export const dispatchFromAPIRawValue =
1542
1542
  types,
1543
1543
  converters,
1544
1544
  injectedPrimitives,
1545
- )(readOnlyResult.ReadOnly);
1545
+ )(readOnlyResult.ReadOnly).Then((value) =>
1546
+ ValueOrErrors.Default.return(PredicateValue.Default.readonly(value)),
1547
+ );
1546
1548
  }
1547
1549
 
1548
1550
  // TODO -- this can be more functional
@@ -55,7 +55,7 @@ export const ReadOnlyAbstractRenderer = <
55
55
  ) => ({
56
56
  disabled: _.disabled,
57
57
  locked: _.locked,
58
- value: _.value,
58
+ value: _.value.ReadOnly,
59
59
  ...(_.childFormState || GetDefaultChildState()),
60
60
  bindings: _.bindings,
61
61
  extraContext: _.extraContext,
@@ -69,6 +69,7 @@ export const PredicateValueExtractor = {
69
69
  List(
70
70
  traverseRecordFields
71
71
  .entrySeq()
72
+ .filter(([k, _]) => v.fields.has(k))
72
73
  .map(([k, traverseField]) =>
73
74
  traverseField(v.fields.get(k)!),
74
75
  ),