@ghentcdh/create-crouton 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.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18965,6 +18965,11 @@ var FieldInputSchema = external_exports.object({
|
|
|
18965
18965
|
* `parseValue({})` (see `@ghentcdh/crouton-vue`'s `form-def.ts`) applies when
|
|
18966
18966
|
* opening a blank record. Not applicable to `format: "relation"` fields —
|
|
18967
18967
|
* relation columns are excluded from the picked data schema entirely.
|
|
18968
|
+
*
|
|
18969
|
+
* Supports dynamic default tokens evaluated at form-open time:
|
|
18970
|
+
* - `"$now"` — current datetime ISO string
|
|
18971
|
+
* - `"$today"` — current date ISO string (date only, e.g. `"2025-03-14"`)
|
|
18972
|
+
* - `"$user.id"` — current user id (requires `user` on `CroutonPlugin` config)
|
|
18968
18973
|
*/
|
|
18969
18974
|
defaultValue: external_exports.unknown().optional(),
|
|
18970
18975
|
options: external_exports.union([RelationFieldInputOptionsSchema, external_exports.unknown()]).optional(),
|
|
@@ -38966,7 +38971,7 @@ var runCreate = async (name, opts) => {
|
|
|
38966
38971
|
const tokens = {
|
|
38967
38972
|
name,
|
|
38968
38973
|
Name: toTitle(name),
|
|
38969
|
-
version: true ? "0.0.1-alpha.
|
|
38974
|
+
version: true ? "0.0.1-alpha.60" : "latest",
|
|
38970
38975
|
year: String((/* @__PURE__ */ new Date()).getFullYear()),
|
|
38971
38976
|
pmRun: pm === "npm" ? "npm run" : pm,
|
|
38972
38977
|
urlEnv: "DATABASE_URL",
|