@prismatic-io/spectral
Advanced tools
Comparing version 7.0.14-pre to 7.0.15-pre
@@ -29,2 +29,4 @@ import { ConditionalExpression } from "./conditional-logic"; | ||
}; | ||
export declare type DynamicObjectSelection = string; | ||
export declare type DynamicFieldSelection = string; | ||
/** InputField type enumeration. */ | ||
@@ -37,3 +39,3 @@ export declare type InputFieldType = InputFieldDefinition["type"]; | ||
}; | ||
export declare type InputFieldDefinition = StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField | CodeInputField | ConditionalInputField | ConnectionInputField | ObjectSelectionInputField | ObjectFieldMapInputField | JSONFormInputField; | ||
export declare type InputFieldDefinition = StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField | CodeInputField | ConditionalInputField | ConnectionInputField | ObjectSelectionInputField | ObjectFieldMapInputField | JSONFormInputField | DynamicObjectSelectionInputField | DynamicFieldSelectionInputField; | ||
export declare type InputCleanFunction<TValue, TResult = TValue> = (value: TValue) => TResult; | ||
@@ -197,2 +199,24 @@ interface BaseInputField { | ||
} | ||
/** Defines attributes of a DynamicObjectSelectionInputField */ | ||
export interface DynamicObjectSelectionInputField extends BaseInputField { | ||
/** Data type the InputField will collect. */ | ||
type: "dynamicObjectSelection"; | ||
/** Collection type of the InputField */ | ||
collection?: InputFieldCollection; | ||
/** Default value for this field. */ | ||
default?: unknown; | ||
/** Clean function */ | ||
clean?: InputCleanFunction<NonNullable<this["default"]>>; | ||
} | ||
/** Defines attributes of a SelectedFieldInputField */ | ||
export interface DynamicFieldSelectionInputField extends BaseInputField { | ||
/** Data type the InputField will collect. */ | ||
type: "dynamicFieldSelection"; | ||
/** Collection type of the InputField */ | ||
collection?: InputFieldCollection; | ||
/** Default value for this field. */ | ||
default?: unknown; | ||
/** Clean function */ | ||
clean?: InputCleanFunction<NonNullable<this["default"]>>; | ||
} | ||
/** Defines a single Choice option for a InputField. */ | ||
@@ -199,0 +223,0 @@ export interface InputFieldChoice { |
@@ -16,2 +16,4 @@ "use strict"; | ||
jsonForm: undefined, | ||
dynamicObjectSelection: "", | ||
dynamicFieldSelection: "", | ||
}; |
{ | ||
"name": "@prismatic-io/spectral", | ||
"version": "7.0.14-pre", | ||
"version": "7.0.15-pre", | ||
"description": "Utility library for building Prismatic components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153034
3425