@ghentcdh/create-crouton 0.0.1-alpha.44 → 0.0.1-alpha.46

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 CHANGED
@@ -19538,11 +19538,17 @@ var ViewColumnConfigSchema = external_exports.object({
19538
19538
  fieldInput: FieldInputSchema.optional()
19539
19539
  });
19540
19540
  var ViewConfigSchema = external_exports.object({
19541
- json_schema: external_exports.record(external_exports.string(), external_exports.unknown()),
19542
- ui_schema: external_exports.record(external_exports.string(), external_exports.unknown()),
19541
+ // TODO why we have both?
19542
+ json_schema: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
19543
+ ui_schema: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
19544
+ // TODO why we have both?
19545
+ ui: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
19546
+ data: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
19543
19547
  columns: external_exports.array(ViewColumnConfigSchema),
19544
19548
  defaultSort: external_exports.string().optional()
19545
19549
  });
19550
+ var viewDefList = ["table", "view", "form"];
19551
+ var ViewDefEnum = external_exports.enum(viewDefList);
19546
19552
 
19547
19553
  // ../crouton-core/src/lib/i18n/Translations.schema.ts
19548
19554
  var NestedStringRecord = external_exports.lazy(
@@ -19837,7 +19843,7 @@ var runCreate = async (name, opts) => {
19837
19843
  const tokens = {
19838
19844
  name,
19839
19845
  Name: toTitle(name),
19840
- version: true ? "0.0.1-alpha.44" : "latest",
19846
+ version: true ? "0.0.1-alpha.46" : "latest",
19841
19847
  year: String((/* @__PURE__ */ new Date()).getFullYear()),
19842
19848
  pmRun: pm === "npm" ? "npm run" : pm,
19843
19849
  urlEnv: "DATABASE_URL",