@isardsat/editorial-common 6.21.0 → 6.22.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,17 @@
1
1
  # @isardsat/editorial-common
2
2
 
3
+ ## 6.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c8b059c: Adds allowFreeInput option to schema, allowing users to enter custom items in select and multiselect inputs.
8
+
9
+ ## 6.21.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 9a46a5b: Fix create new singleton item
14
+
3
15
  ## 6.21.0
4
16
 
5
17
  ### Minor Changes
package/dist/schemas.d.ts CHANGED
@@ -81,6 +81,7 @@ export declare const EditorialSchemaItemFieldSchema: z.ZodObject<{
81
81
  showInSummary: z.ZodOptional<z.ZodBoolean>;
82
82
  choicesFixed: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
83
  isMultiple: z.ZodOptional<z.ZodBoolean>;
84
+ allowFreeInput: z.ZodOptional<z.ZodBoolean>;
84
85
  maxSelectedChoices: z.ZodOptional<z.ZodNumber>;
85
86
  minSelectedChoices: z.ZodOptional<z.ZodNumber>;
86
87
  isUploadedFile: z.ZodOptional<z.ZodBoolean>;
@@ -109,6 +110,7 @@ export declare const EditorialSchemaItemSchema: z.ZodObject<{
109
110
  showInSummary: z.ZodOptional<z.ZodBoolean>;
110
111
  choicesFixed: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
112
  isMultiple: z.ZodOptional<z.ZodBoolean>;
113
+ allowFreeInput: z.ZodOptional<z.ZodBoolean>;
112
114
  maxSelectedChoices: z.ZodOptional<z.ZodNumber>;
113
115
  minSelectedChoices: z.ZodOptional<z.ZodNumber>;
114
116
  isUploadedFile: z.ZodOptional<z.ZodBoolean>;
@@ -138,6 +140,7 @@ export declare const EditorialSchemaSchema: z.ZodRecord<z.ZodString, z.ZodObject
138
140
  showInSummary: z.ZodOptional<z.ZodBoolean>;
139
141
  choicesFixed: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
142
  isMultiple: z.ZodOptional<z.ZodBoolean>;
143
+ allowFreeInput: z.ZodOptional<z.ZodBoolean>;
141
144
  maxSelectedChoices: z.ZodOptional<z.ZodNumber>;
142
145
  minSelectedChoices: z.ZodOptional<z.ZodNumber>;
143
146
  isUploadedFile: z.ZodOptional<z.ZodBoolean>;
package/dist/schemas.js CHANGED
@@ -74,6 +74,7 @@ export const EditorialSchemaItemFieldSchema = z.looseObject({
74
74
  choicesFixed: z.array(z.string()).optional(),
75
75
  //backwards compatibility and will be removed in future versions
76
76
  isMultiple: z.boolean().optional(),
77
+ allowFreeInput: z.boolean().optional(),
77
78
  maxSelectedChoices: z.number().optional(),
78
79
  minSelectedChoices: z.number().optional(),
79
80
  isUploadedFile: z.boolean().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isardsat/editorial-common",
3
- "version": "6.21.0",
3
+ "version": "6.22.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/schemas.ts CHANGED
@@ -96,6 +96,7 @@ export const EditorialSchemaItemFieldSchema = z.looseObject({
96
96
  choicesFixed: z.array(z.string()).optional(),
97
97
  //backwards compatibility and will be removed in future versions
98
98
  isMultiple: z.boolean().optional(),
99
+ allowFreeInput: z.boolean().optional(),
99
100
  maxSelectedChoices: z.number().optional(),
100
101
  minSelectedChoices: z.number().optional(),
101
102
  isUploadedFile: z.boolean().optional(),