@prismatic-io/spectral 7.0.14-pre → 7.0.15-pre

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.
@@ -26,6 +26,8 @@ export declare type JSONForm = {
26
26
  uiSchema: Record<string, unknown>;
27
27
  data: unknown;
28
28
  };
29
+ export declare type DynamicObjectSelection = string;
30
+ export declare type DynamicFieldSelection = string;
29
31
  /** InputField type enumeration. */
30
32
  export declare type InputFieldType = InputFieldDefinition["type"];
31
33
  export declare const InputFieldDefaultMap: Record<InputFieldType, string | undefined>;
@@ -33,7 +35,7 @@ export declare type Inputs = Record<string, InputFieldDefinition>;
33
35
  export declare type ConnectionInput = (StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField) & {
34
36
  shown?: boolean;
35
37
  };
36
- export declare type InputFieldDefinition = StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField | CodeInputField | ConditionalInputField | ConnectionInputField | ObjectSelectionInputField | ObjectFieldMapInputField | JSONFormInputField;
38
+ export declare type InputFieldDefinition = StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField | CodeInputField | ConditionalInputField | ConnectionInputField | ObjectSelectionInputField | ObjectFieldMapInputField | JSONFormInputField | DynamicObjectSelectionInputField | DynamicFieldSelectionInputField;
37
39
  export declare type InputCleanFunction<TValue, TResult = TValue> = (value: TValue) => TResult;
38
40
  interface BaseInputField {
39
41
  /** Interface label of the InputField. */
@@ -192,6 +194,28 @@ export interface JSONFormInputField extends BaseInputField {
192
194
  /** Clean function */
193
195
  clean?: InputCleanFunction<NonNullable<this["default"]>>;
194
196
  }
197
+ /** Defines attributes of a DynamicObjectSelectionInputField */
198
+ export interface DynamicObjectSelectionInputField extends BaseInputField {
199
+ /** Data type the InputField will collect. */
200
+ type: "dynamicObjectSelection";
201
+ /** Collection type of the InputField */
202
+ collection?: InputFieldCollection;
203
+ /** Default value for this field. */
204
+ default?: unknown;
205
+ /** Clean function */
206
+ clean?: InputCleanFunction<NonNullable<this["default"]>>;
207
+ }
208
+ /** Defines attributes of a SelectedFieldInputField */
209
+ export interface DynamicFieldSelectionInputField extends BaseInputField {
210
+ /** Data type the InputField will collect. */
211
+ type: "dynamicFieldSelection";
212
+ /** Collection type of the InputField */
213
+ collection?: InputFieldCollection;
214
+ /** Default value for this field. */
215
+ default?: unknown;
216
+ /** Clean function */
217
+ clean?: InputCleanFunction<NonNullable<this["default"]>>;
218
+ }
195
219
  /** Defines a single Choice option for a InputField. */
196
220
  export interface InputFieldChoice {
197
221
  /** Label to display for this Choice. */
@@ -13,4 +13,6 @@ exports.InputFieldDefaultMap = {
13
13
  objectSelection: undefined,
14
14
  objectFieldMap: undefined,
15
15
  jsonForm: undefined,
16
+ dynamicObjectSelection: "",
17
+ dynamicFieldSelection: "",
16
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "7.0.14-pre",
3
+ "version": "7.0.15-pre",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"