@ghentcdh/crouton-api 0.0.1-alpha.59 → 0.0.1-alpha.60

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/index.cjs CHANGED
@@ -769,6 +769,11 @@ var FieldInputSchema = import_zod9.z.object({
769
769
  * `parseValue({})` (see `@ghentcdh/crouton-vue`'s `form-def.ts`) applies when
770
770
  * opening a blank record. Not applicable to `format: "relation"` fields —
771
771
  * relation columns are excluded from the picked data schema entirely.
772
+ *
773
+ * Supports dynamic default tokens evaluated at form-open time:
774
+ * - `"$now"` — current datetime ISO string
775
+ * - `"$today"` — current date ISO string (date only, e.g. `"2025-03-14"`)
776
+ * - `"$user.id"` — current user id (requires `user` on `CroutonPlugin` config)
772
777
  */
773
778
  defaultValue: import_zod9.z.unknown().optional(),
774
779
  options: import_zod9.z.union([