cedar-embeddable-editor 2.0.1 → 2.0.2

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.
@@ -4,6 +4,6 @@
4
4
  "main.js",
5
5
  "polyfills.js"
6
6
  ],
7
- "bytes": 2183778,
8
- "sha256": "01038a3f14ee94b63e119579dd950f291f9270fad490f70835cdafcfc0c7a1b3"
7
+ "bytes": 2183062,
8
+ "sha256": "bbcd976e2baed672c9a68851ebbadbed55544247daeb59adcd4422b79f219269"
9
9
  }
@@ -147,16 +147,32 @@ export interface CeeValidationProblem {
147
147
  /**
148
148
  * What CEE thinks of the instance currently in the form.
149
149
  *
150
- * Read through `dataQualityReport`. Typed here as what a host can rely on; the
151
- * report object also carries CEE's internal working views, which are not part of
152
- * this contract and may change.
150
+ * Read through `dataQualityReport`. These four members are the whole object: it
151
+ * carried three of CEE's internal working views as well, and the interface was a
152
+ * subset of what a host actually received.
153
153
  */
154
154
  export interface CeeDataQualityReport {
155
- /** How many required fields the template declares. */
155
+ /**
156
+ * How many required fields the template declares.
157
+ *
158
+ * One per declaration, whatever its cardinality — a required field repeated
159
+ * five times counts once, as does a required field inside an element repeated
160
+ * five times.
161
+ */
156
162
  requiredFieldValueCount: number;
157
- /** How many of those the instance actually fills. */
163
+ /**
164
+ * How many of those the instance fills.
165
+ *
166
+ * A requirement is met when any occurrence carries a value, so this is
167
+ * unaffected by which page the form is showing.
168
+ */
158
169
  nonNullRequiredFieldValueCount: number;
159
- /** Constraint violations. Empty when every present value satisfies its constraints. */
170
+ /**
171
+ * Validation problems.
172
+ *
173
+ * Includes one `required` problem for each unsatisfied required field
174
+ * declaration, while the two counters retain their existing aggregate view.
175
+ */
160
176
  problems: CeeValidationProblem[];
161
177
  /** True when every required field is filled and no constraint is violated. */
162
178
  isValid: boolean;