@sprucelabs/heartwood-view-controllers 128.5.0 → 128.5.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.
@@ -156,6 +156,7 @@ class LoginCardViewController extends AbstractViewController {
156
156
  if (this.shouldRequireCheckboxForSmsOptIn) {
157
157
  fields.push({
158
158
  name: 'smsOptIn',
159
+ renderAs: 'checkbox',
159
160
  });
160
161
  }
161
162
  return {
@@ -35,7 +35,7 @@ export default class FormViewController<S extends Schema, V extends ViewModel<S>
35
35
  private normalizeValues;
36
36
  private validateDirtyFields;
37
37
  setErrors(errors: TypedFieldError<S>[]): void;
38
- protected setErrorsByField(errorsByField: FormErrorsByField<S>): void;
38
+ setErrorsByField(errorsByField: FormErrorsByField<S>): void;
39
39
  validate(): FormErrorsByField<S>;
40
40
  isValid(): boolean;
41
41
  protected _isValidForFields(visibleFields: SchemaFieldNames<S>[]): boolean;
@@ -147,6 +147,7 @@ class LoginCardViewController extends Abstract_vc_1.default {
147
147
  if (this.shouldRequireCheckboxForSmsOptIn) {
148
148
  fields.push({
149
149
  name: 'smsOptIn',
150
+ renderAs: 'checkbox',
150
151
  });
151
152
  }
152
153
  return {
@@ -35,7 +35,7 @@ export default class FormViewController<S extends Schema, V extends ViewModel<S>
35
35
  private normalizeValues;
36
36
  private validateDirtyFields;
37
37
  setErrors(errors: TypedFieldError<S>[]): void;
38
- protected setErrorsByField(errorsByField: FormErrorsByField<S>): void;
38
+ setErrorsByField(errorsByField: FormErrorsByField<S>): void;
39
39
  validate(): FormErrorsByField<S>;
40
40
  isValid(): boolean;
41
41
  protected _isValidForFields(visibleFields: SchemaFieldNames<S>[]): boolean;
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "sideEffects": false,
13
13
  "license": "MIT",
14
14
  "description": "All the power of Heartwood in one, convenient package.",
15
- "version": "128.5.0",
15
+ "version": "128.5.2",
16
16
  "skill": {
17
17
  "namespace": "HeartwoodViewControllers",
18
18
  "commandOverrides": {