@prismatic-io/spectral 10.18.7-preview.3 → 10.18.7-preview.4

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.
@@ -291,15 +291,19 @@ export type DateTimeInputField = BaseInputField & {
291
291
  /** Clean function. */
292
292
  clean?: InputCleanFunction<unknown>;
293
293
  } & CollectionOptions<string>;
294
- /** `InputFieldDefinition` minus container input types; used to cap
295
- * structuredObject nesting at one level and to enforce leaf-only positions. */
296
- export type LeafInputFieldDefinition = Exclude<InputFieldDefinition, StructuredObjectInputField | DynamicObjectInputField>;
297
- /** `InputFieldDefinition` minus `DynamicObjectInputField`; used inside a
298
- * dynamicObject's `configurations.<key>.inputs` to allow leaves *and*
299
- * structuredObject children while still rejecting nested dynamicObjects. */
300
- export type StructuredOrLeafInputFieldDefinition = Exclude<InputFieldDefinition, DynamicObjectInputField>;
294
+ /** `InputFieldDefinition` minus container input types and connection
295
+ * pickers. Connections resolve to config-var references outside the
296
+ * parent's value tree, so they're only valid at the top level — never as
297
+ * a child of a structuredObject or a dynamicObject configuration. */
298
+ export type LeafInputFieldDefinition = Exclude<InputFieldDefinition, StructuredObjectInputField | DynamicObjectInputField | ConnectionInputField | ConnectionTemplateInputField>;
299
+ /** `LeafInputFieldDefinition` plus `StructuredObjectInputField`; used
300
+ * inside a dynamicObject's `configurations.<key>.inputs` to allow leaves
301
+ * and structuredObject children while still rejecting nested
302
+ * dynamicObjects and connection pickers. */
303
+ export type StructuredOrLeafInputFieldDefinition = LeafInputFieldDefinition | StructuredObjectInputField;
301
304
  /** Groups related primitive inputs under a single named container.
302
- * Nesting is capped at one level. */
305
+ * Nesting is capped at one level. Connection pickers are rejected as
306
+ * children — they may only appear at the top level. */
303
307
  export type StructuredObjectInputField = Omit<BaseInputField, "dataSource"> & {
304
308
  /** Data type the input will collect. */
305
309
  type: "structuredObject";
@@ -317,9 +321,7 @@ export interface DynamicObjectConfiguration {
317
321
  } | string;
318
322
  /** Additional text to give guidance to the user when this configuration is selected. */
319
323
  comments?: string;
320
- /** Inputs that become available when this configuration is selected. May
321
- * include leaf inputs and structuredObject inputs; nested dynamicObjects
322
- * are rejected at the type level. */
324
+ /** Inputs that become available when this configuration is selected. */
323
325
  inputs: Record<string, StructuredOrLeafInputFieldDefinition>;
324
326
  }
325
327
  /** Presents a discriminated set of input groups; the user picks a configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "10.18.7-preview.3",
3
+ "version": "10.18.7-preview.4",
4
4
  "description": "Utility library for building Prismatic connectors and code-native integrations",
5
5
  "keywords": [
6
6
  "prismatic"