@prismatic-io/spectral 7.0.5-pre → 7.0.6-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.
@@ -14,4 +14,6 @@ export interface DataSourceDefinition<TInputs extends Inputs, TDataSourceResult
14
14
  inputs: TInputs;
15
15
  /** An example of the payload outputted by this Data Source. */
16
16
  examplePayload?: Awaited<ReturnType<this["perform"]>>;
17
+ /** Specifies the name of a Data Source in this Component which can provide additional details about the content for this Data Source, such as example values when selecting particular API object fields. */
18
+ detailDataSource?: string;
17
19
  }
@@ -8,7 +8,9 @@ export declare type DataSourceResultType = ObjectSelection | ObjectFieldMap | JS
8
8
  export declare type DataSourceResult<TDataSourceResultType> = {
9
9
  /** The resulting data that is returned from the data source. */
10
10
  result: TDataSourceResultType;
11
- /** Additional data that may be useful for out-of-band processing at a later time. */
11
+ /** Additional data that may be useful for out-of-band processing at a later time.
12
+ * NOTE: This is only available when the Data Source is called as part of fetching
13
+ * contents for a Configuration Wizard Page. */
12
14
  supplementalData?: {
13
15
  data: unknown;
14
16
  contentType: string;
@@ -19,9 +19,7 @@ export declare type ObjectFieldMap = {
19
19
  };
20
20
  defaultValue?: {
21
21
  objectKey: string;
22
- objectLabel?: string;
23
22
  fieldKey: string;
24
- fieldLabel?: string;
25
23
  };
26
24
  }[];
27
25
  export declare type JSONForm = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "7.0.5-pre",
3
+ "version": "7.0.6-pre",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"