@cloudcannon/configuration-types
Advanced tools
Comparing version 0.0.15 to 0.0.16
{ | ||
"name": "@cloudcannon/configuration-types", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Contains TypeScript declarations and generates JSONSchema files for the CloudCannon configuration file.", | ||
@@ -5,0 +5,0 @@ "author": "CloudCannon <support@cloudcannon.com>", |
@@ -790,3 +790,6 @@ import Scrapbooker from '@cloudcannon/snippet-types'; | ||
export interface SelectInputOptions<EmptyType = EmptyTypeText> extends BaseInputOptions<EmptyType> { | ||
export interface SelectInputOptions<EmptyType = EmptyTypeText> | ||
extends BaseInputOptions<EmptyType>, | ||
Previewable, | ||
PickerPreviewable { | ||
/** | ||
@@ -816,2 +819,10 @@ * Allows new text values to be created at edit time. | ||
value_key?: string; | ||
/** | ||
* Controls how selected items are rendered. | ||
*/ | ||
view?: 'card' | 'text' | 'gallery' | 'gallery-left'; | ||
/** | ||
* Controls how selectable options are rendered. | ||
*/ | ||
picker_view?: 'card' | 'text' | 'gallery' | 'gallery-left'; | ||
} | ||
@@ -830,8 +841,3 @@ | ||
export interface ChoiceInputOptions<EmptyType = EmptyTypeText> | ||
extends Omit<SelectInputOptions<EmptyType>, 'allow_create'> { | ||
/** | ||
* The preview definition for changing the way selected and available options are displayed. | ||
*/ | ||
preview?: SelectPreview; | ||
} | ||
extends Omit<SelectInputOptions<EmptyType>, 'allow_create'> {} | ||
@@ -856,3 +862,3 @@ export interface ChoiceInput extends BaseInput<ChoiceInputOptions> { | ||
export interface ObjectInputOptions extends BaseInputOptions<EmptyTypeObject> { | ||
export interface ObjectInputOptions extends BaseInputOptions<EmptyTypeObject>, Previewable { | ||
/** | ||
@@ -885,8 +891,2 @@ * Changes the appearance and behavior of the input. | ||
/** | ||
* The preview definition for changing the way data within an object input is previewed before | ||
* being expanded. If the input has `structures`, the preview from the structure value is used | ||
* instead. | ||
*/ | ||
preview?: ObjectPreview; | ||
/** | ||
* Provides data formats for value of this object. When choosing an item, team members are | ||
@@ -920,8 +920,2 @@ * prompted to choose from a number of values you have defined. `structures` applies to the object | ||
/** | ||
* The preview definition for changing the way data within an array input's items are previewed | ||
* before being expanded. If the input has structures, the preview from the structure value is | ||
* used instead. | ||
*/ | ||
preview?: ObjectPreview; | ||
/** | ||
* Provides data formats for value of this object. When choosing an item, team members are | ||
@@ -1064,2 +1058,3 @@ * prompted to choose from a number of values you have defined. | ||
IconPreviewable, | ||
IconColorPreviewable, | ||
IconColorPreviewable { | ||
@@ -1078,10 +1073,2 @@ /** | ||
export interface ObjectPreview | ||
extends TextPreviewable, | ||
ImagePreviewable, | ||
IconPreviewable, | ||
SubtextPreviewable {} | ||
export interface SelectPreview extends TextPreviewable, IconPreviewable {} | ||
export interface Preview | ||
@@ -1424,2 +1411,6 @@ extends TextPreviewable, | ||
/** | ||
* Allows you to group the inputs inside this object together without changing the data structure. | ||
*/ | ||
groups?: ObjectInputGroup[]; | ||
/** | ||
* The actual value used when items are added after selection. | ||
@@ -1426,0 +1417,0 @@ */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1875465
49155