@form-engine-ts/core 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
@@ -53,6 +53,22 @@ safe maximum-length corrections while purging unregistered locale content. Pass
53
53
  `{ policy: { allowedLocales, maxLocales } }` to `populateSchemaTranslations` to reject inadmissible targets before the
54
54
  translation adapter runs.
55
55
 
56
+ Fields can use a `displayRule` with nested `all`/`any` condition groups and `show` or `hide` actions. Supported
57
+ operators include equality, containment, emptiness, and numeric comparisons; the legacy `displayCondition` and
58
+ `not_empty` forms remain supported. `submissionSettings` can enable pre-submit confirmation and select its
59
+ `dialog`, `inline`, or `replace` presentation.
60
+
61
+ `collectTranslationSlots`, `computeSourceTextHash`, and `getTranslationStatus` expose canonical translation targets
62
+ and missing, translated, stale, or manual states for authoring tools. `populateSchemaTranslations` can populate stale
63
+ and missing entries while preserving manual translations and reports skipped reasons.
64
+
65
+ Legacy translation metadata can be recognized with `isManualTranslationMetadata` and migrated with
66
+ `migrateSchemaTranslationMetadata`; pass a custom migrator when legacy fields need application-specific conversion.
67
+ `PopulateTranslationsOptions` is a compatibility alias for `PopulateTranslationOptions`, which also accepts custom
68
+ manual-translation detection and metadata normalization callbacks. `removeLocaleFromSchema(schema, locale)` removes
69
+ the locale from registrations and all form, page, field, option translation values and metadata; the default locale
70
+ cannot be removed.
71
+
56
72
  The React builder uses canonical keys with legacy aliases when resolving UI translations:
57
73
 
58
74
  | Canonical key | Legacy alias |