@teamnovu/nuxt-statamic-formbuilder 1.3.1 → 1.4.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.
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "1.3.1",
7
+ "version": "1.4.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "3.6.1"
@@ -20,6 +20,8 @@ export type BaseFieldConfig = {
20
20
  validateOn?: ValidationTrigger[];
21
21
  /** When true, UI layers may float the label over the control. */
22
22
  floating_label?: boolean;
23
+ /** When true, the field label is not rendered above the control. */
24
+ hide_label?: boolean;
23
25
  };
24
26
  export type FormFieldOption = {
25
27
  id?: string;
@@ -6,7 +6,7 @@ function normalizeField(field) {
6
6
  config: {
7
7
  ...normalizedConfig,
8
8
  // Editors often only set Statamic `display`; fieldtype `label` may be empty.
9
- label: normalizedConfig.label ?? field.display ?? void 0
9
+ label: normalizedConfig.hide_label ? void 0 : normalizedConfig.label ?? field.display ?? void 0
10
10
  }
11
11
  };
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamnovu/nuxt-statamic-formbuilder",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "Headless Nuxt form builder with Statamic submit adapter",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/teamnovu/nuxt-statamic-formbuilder#readme",