@object-ui/plugin-form 3.3.1 → 3.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # @object-ui/plugin-form
2
2
 
3
+ ## 3.4.0
4
+
5
+ ### Patch Changes
6
+
7
+ - de881ef: Mobile UX round 3 — Form: sticky save bar, fullscreen long-text editor, and auto-stepper for long forms on small viewports.
8
+
9
+ **`@object-ui/types`** — `ObjectFormSchema.mobile` (new) lets a single form opt into all three behaviours:
10
+
11
+ ```ts
12
+ {
13
+ type: 'object-form',
14
+ objectName: 'leads',
15
+ mode: 'create',
16
+ mobile: {
17
+ stickyActions: true, // pin Submit/Cancel to bottom on phones
18
+ stepper: 'auto', // long forms render one field per step
19
+ stepperMinFields: 8, // …but only past this many fields
20
+ stepperFieldsPerStep: 1, // … (default 1)
21
+ fullscreenLongText: true, // textarea fields get an "expand" affordance
22
+ },
23
+ }
24
+ ```
25
+
26
+ `FormSchema.mobileStickyActions` (new) is the lower-level escape hatch — applied automatically when `mobile.stickyActions` is set on `ObjectFormSchema`.
27
+
28
+ **`@object-ui/plugin-form`** — `ObjectForm` now:
29
+ - propagates `mobile.fullscreenLongText` to every textarea/markdown/html field as `mobile_fullscreen: true`,
30
+ - sets `mobileStickyActions` on the inner form schema and adds `pb-20` padding so content isn't covered by the fixed bar,
31
+ - when `mobile.stepper === true` (or `'auto'` + `useIsMobile()` + > `stepperMinFields` fields), routes the flat field list through the existing `WizardForm` with synthetic single-field "steps" — keeping per-step validation and the existing `Next`/`Back`/`Submit` flow.
32
+
33
+ **`@object-ui/components`** — the registered `form` renderer adds:
34
+ - a `mobileStickyActions` opt-in that turns the action row into a `position: sticky; bottom: 0` bar on small viewports, and
35
+ - an inline `FullscreenTextarea` wrapper used when no field-package widget is registered, providing the same expand-button + edit-dialog UX so the feature works even in lighter setups.
36
+
37
+ **`@object-ui/fields`** — `TextAreaField` ships the actual fullscreen UX: a top-right `Maximize2` button opens a near-fullscreen `Dialog` containing a full-height `Textarea` with a draft-then-commit save model (Cancel reverts).
38
+
39
+ All three behaviours are off by default — existing forms render unchanged.
40
+
41
+ - Updated dependencies [a2d7023]
42
+ - Updated dependencies [f1ca238]
43
+ - Updated dependencies [de881ef]
44
+ - @object-ui/components@3.4.0
45
+ - @object-ui/fields@3.4.0
46
+ - @object-ui/types@3.4.0
47
+ - @object-ui/core@3.4.0
48
+ - @object-ui/react@3.4.0
49
+
50
+ ## 3.3.2
51
+
52
+ ### Patch Changes
53
+
54
+ - @object-ui/types@3.3.2
55
+ - @object-ui/core@3.3.2
56
+ - @object-ui/react@3.3.2
57
+ - @object-ui/components@3.3.2
58
+ - @object-ui/fields@3.3.2
59
+
3
60
  ## 3.3.1
4
61
 
5
62
  ### Patch Changes