@prismatic-io/spectral 8.1.4 → 8.1.5
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.
|
@@ -195,7 +195,7 @@ const convertConfigVar = (key, configVar, referenceKey) => {
|
|
|
195
195
|
}
|
|
196
196
|
if ((0, types_1.isConnectionReferenceConfigVar)(configVar)) {
|
|
197
197
|
const { ref, inputs } = convertComponentReference(configVar.connection);
|
|
198
|
-
return Object.assign(Object.assign({}, (0, lodash_1.pick)(configVar, ["stableKey", "description", "orgOnly"])), { key, dataType: "connection", connection: ref, inputs });
|
|
198
|
+
return Object.assign(Object.assign({}, (0, lodash_1.pick)(configVar, ["stableKey", "description", "orgOnly"])), { key, dataType: "connection", connection: Object.assign(Object.assign({}, ref), { template: configVar.connection.template }), inputs });
|
|
199
199
|
}
|
|
200
200
|
const result = (0, lodash_1.assign)({ meta, key }, (0, lodash_1.pick)(configVar, [
|
|
201
201
|
"stableKey",
|
package/dist/types/Inputs.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare type JSONForm = {
|
|
|
56
56
|
/**
|
|
57
57
|
* Optional default data to use in the inputs of your form
|
|
58
58
|
*/
|
|
59
|
-
data?: Record<string, unknown
|
|
59
|
+
data?: Record<string, unknown> | unknown[];
|
|
60
60
|
};
|
|
61
61
|
export declare type DynamicObjectSelection = string;
|
|
62
62
|
export declare type DynamicFieldSelection = string;
|
|
@@ -118,7 +118,9 @@ declare type DataSourceReferenceConfigVar<TComponents extends ComponentSelector<
|
|
|
118
118
|
export declare type DataSourceConfigVar<TComponents extends ComponentSelector<any>> = DataSourceDefinitionConfigVar | DataSourceReferenceConfigVar<TComponents>;
|
|
119
119
|
declare type ConnectionDefinitionConfigVar = BaseConfigVar & Omit<ConnectionDefinition, "label" | "comments" | "key">;
|
|
120
120
|
declare type ConnectionReferenceConfigVar<TComponents extends ComponentSelector<any>> = BaseConfigVar & {
|
|
121
|
-
connection: ToComponentReferences<"connection", TComponents
|
|
121
|
+
connection: ToComponentReferences<"connection", TComponents> & {
|
|
122
|
+
template?: string;
|
|
123
|
+
};
|
|
122
124
|
};
|
|
123
125
|
/** Defines attributes of a Config Var that represents a Connection. */
|
|
124
126
|
export declare type ConnectionConfigVar<TComponents extends ComponentSelector<any>> = ConnectionDefinitionConfigVar | ConnectionReferenceConfigVar<TComponents>;
|
|
@@ -216,6 +218,7 @@ export interface ComponentReference<TValueType, TConfigPages extends ConfigPages
|
|
|
216
218
|
values?: {
|
|
217
219
|
[key: string]: ValueReference<TValueType, TConfigPages>;
|
|
218
220
|
};
|
|
221
|
+
template?: string;
|
|
219
222
|
}
|
|
220
223
|
export declare const isComponentReference: (ref: unknown) => ref is ComponentReference<any, ConfigPages<any>>;
|
|
221
224
|
export {};
|