@form-engine-ts/react 4.4.0 → 4.6.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/README.md CHANGED
@@ -73,6 +73,17 @@ on the next mount:
73
73
  membership controls and localization editors; pass an `AsyncTranslationAdapter` as `translationAdapter` to enable its
74
74
  batch-translation action.
75
75
 
76
+ `useTranslationWorkspace` exposes locale management, translation slots, completion summaries, manual editing, and
77
+ single-slot or batch translation with stale/manual status handling. The MUI package exports a ready-made
78
+ `TranslationWorkspace` surface. For large forms, set `fieldEditorMode="single"` and use `activeFieldId` or the hook's
79
+ `setActiveFieldId` to keep one field editor open at a time. Set `submissionSettingsOptions={{ enabled: true }}` to expose
80
+ schema-driven pre-submit confirmation controls in the builder.
81
+
82
+ `useTranslationWorkspace` validates added locales against `policy.allowedLocales` and `policy.maxLocales` and returns
83
+ a structured `{ success, error }` result from `addLocale`. Use `validateLocale` for application-specific BCP 47 or
84
+ tenant rules, and `isAddLocaleAllowed` to disable locale controls before submission. Removing a locale also clears its
85
+ localized values and metadata; the default locale remains protected.
86
+
76
87
  ## Headless builder and renderer lifecycle
77
88
 
78
89
  `useFormBuilder({ schema, onChange, policy, idFactory, factories })` exposes controlled field, option, page, condition,