@isardsat/editorial-common 6.14.0 → 6.15.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @isardsat/editorial-common
2
2
 
3
+ ## 6.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7ff5f4d: - Adds a new /api/v1/meta-schema endpoint that returns the JSON Schema for the Editorial configuration.
8
+ - Includes optional `allowedExtraFields` parameter to allow additional fields not defined in the meta-schema.
9
+ - - Updated the CLI `init` command to automatically add the line `# yaml-language-server: $schema=http://localhost:3001/api/v1/meta-schema` to schema.yml
10
+
3
11
  ## 6.14.0
4
12
 
5
13
  ### Minor Changes
package/dist/schemas.d.ts CHANGED
@@ -69,11 +69,12 @@ export declare const EditorialSchemaItemFieldSchema: z.ZodObject<{
69
69
  displayName: z.ZodString;
70
70
  displayExtra: z.ZodOptional<z.ZodString>;
71
71
  placeholder: z.ZodOptional<z.ZodString>;
72
- optional: z.ZodDefault<z.ZodBoolean>;
72
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
73
73
  showInSummary: z.ZodOptional<z.ZodBoolean>;
74
74
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
75
  maxSelectedOptions: z.ZodOptional<z.ZodNumber>;
76
76
  minSelectedOptions: z.ZodOptional<z.ZodNumber>;
77
+ isUploadedFile: z.ZodOptional<z.ZodBoolean>;
77
78
  }, z.core.$loose>;
78
79
  export declare const EditorialSchemaItemSchema: z.ZodObject<{
79
80
  displayName: z.ZodString;
@@ -95,11 +96,12 @@ export declare const EditorialSchemaItemSchema: z.ZodObject<{
95
96
  displayName: z.ZodString;
96
97
  displayExtra: z.ZodOptional<z.ZodString>;
97
98
  placeholder: z.ZodOptional<z.ZodString>;
98
- optional: z.ZodDefault<z.ZodBoolean>;
99
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
99
100
  showInSummary: z.ZodOptional<z.ZodBoolean>;
100
101
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
102
  maxSelectedOptions: z.ZodOptional<z.ZodNumber>;
102
103
  minSelectedOptions: z.ZodOptional<z.ZodNumber>;
104
+ isUploadedFile: z.ZodOptional<z.ZodBoolean>;
103
105
  }, z.core.$loose>>;
104
106
  }, z.core.$strip>;
105
107
  export declare const EditorialSchemaSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -122,11 +124,12 @@ export declare const EditorialSchemaSchema: z.ZodRecord<z.ZodString, z.ZodObject
122
124
  displayName: z.ZodString;
123
125
  displayExtra: z.ZodOptional<z.ZodString>;
124
126
  placeholder: z.ZodOptional<z.ZodString>;
125
- optional: z.ZodDefault<z.ZodBoolean>;
127
+ optional: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
126
128
  showInSummary: z.ZodOptional<z.ZodBoolean>;
127
129
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
130
  maxSelectedOptions: z.ZodOptional<z.ZodNumber>;
129
131
  minSelectedOptions: z.ZodOptional<z.ZodNumber>;
132
+ isUploadedFile: z.ZodOptional<z.ZodBoolean>;
130
133
  }, z.core.$loose>>;
131
134
  }, z.core.$strip>>;
132
135
  export declare const BaseEditorialFileSchema: z.ZodObject<{
package/dist/schemas.js CHANGED
@@ -65,11 +65,12 @@ export const EditorialSchemaItemFieldSchema = z.looseObject({
65
65
  displayName: z.string(),
66
66
  displayExtra: z.string().optional(),
67
67
  placeholder: z.string().optional(),
68
- optional: z.boolean().default(false),
68
+ optional: z.boolean().optional().default(false),
69
69
  showInSummary: z.boolean().optional(),
70
70
  options: z.array(z.string()).optional(),
71
71
  maxSelectedOptions: z.number().optional(),
72
72
  minSelectedOptions: z.number().optional(),
73
+ isUploadedFile: z.boolean().optional(),
73
74
  });
74
75
  export const EditorialSchemaItemSchema = z.object({
75
76
  displayName: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isardsat/editorial-common",
3
- "version": "6.14.0",
3
+ "version": "6.15.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/schemas.ts CHANGED
@@ -85,11 +85,12 @@ export const EditorialSchemaItemFieldSchema = z.looseObject({
85
85
  displayName: z.string(),
86
86
  displayExtra: z.string().optional(),
87
87
  placeholder: z.string().optional(),
88
- optional: z.boolean().default(false),
88
+ optional: z.boolean().optional().default(false),
89
89
  showInSummary: z.boolean().optional(),
90
90
  options: z.array(z.string()).optional(),
91
91
  maxSelectedOptions: z.number().optional(),
92
92
  minSelectedOptions: z.number().optional(),
93
+ isUploadedFile: z.boolean().optional(),
93
94
  });
94
95
 
95
96
  export const EditorialSchemaItemSchema = z.object({