@sprucelabs/heartwood-view-controllers 124.1.5 → 124.2.0

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.
@@ -459,10 +459,15 @@ export interface ViewControllerOptions {
459
459
  log: Log;
460
460
  }
461
461
  export type RenderAsInputComponentType = 'colorPicker' | 'number' | 'textarea' | 'ratings' | 'checkbox' | 'autocomplete' | 'tags' | 'signature' | 'password' | 'search' | 'slider' | 'markdownInput';
462
- export type RenderAsInputComponent = RenderAsInputComponentType | RatingsInputComponent;
462
+ export type RenderAsInputComponent = RenderAsInputComponentType | RatingsInputComponent | MediaInputComponent;
463
463
  export type RatingsInputComponent = Pick<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Ratings, 'steps' | 'leftLabel' | 'rightLabel' | 'middleLabel' | 'icon'> & {
464
464
  type: 'ratings';
465
465
  };
466
+ export type SupportedMedia = 'image' | 'video' | 'audio';
467
+ export interface MediaInputComponent {
468
+ type: 'media';
469
+ supportedMedia: SupportedMedia[];
470
+ }
466
471
  export interface InputComponent {
467
472
  type: string;
468
473
  }
@@ -459,10 +459,15 @@ export interface ViewControllerOptions {
459
459
  log: Log;
460
460
  }
461
461
  export type RenderAsInputComponentType = 'colorPicker' | 'number' | 'textarea' | 'ratings' | 'checkbox' | 'autocomplete' | 'tags' | 'signature' | 'password' | 'search' | 'slider' | 'markdownInput';
462
- export type RenderAsInputComponent = RenderAsInputComponentType | RatingsInputComponent;
462
+ export type RenderAsInputComponent = RenderAsInputComponentType | RatingsInputComponent | MediaInputComponent;
463
463
  export type RatingsInputComponent = Pick<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Ratings, 'steps' | 'leftLabel' | 'rightLabel' | 'middleLabel' | 'icon'> & {
464
464
  type: 'ratings';
465
465
  };
466
+ export type SupportedMedia = 'image' | 'video' | 'audio';
467
+ export interface MediaInputComponent {
468
+ type: 'media';
469
+ supportedMedia: SupportedMedia[];
470
+ }
466
471
  export interface InputComponent {
467
472
  type: string;
468
473
  }
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "sideEffects": false,
14
14
  "license": "MIT",
15
15
  "description": "All the power of Heartwood in one, convenient package.",
16
- "version": "124.1.5",
16
+ "version": "124.2.0",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {
@@ -74,7 +74,7 @@
74
74
  "@babel/preset-env": "^7.28.0",
75
75
  "@babel/preset-typescript": "^7.27.1",
76
76
  "@babel/runtime": "^7.28.2",
77
- "@sprucelabs/calendar-utils": "^43.0.59",
77
+ "@sprucelabs/calendar-utils": "^43.0.60",
78
78
  "@sprucelabs/error": "^7.0.27",
79
79
  "@sprucelabs/globby": "^2.0.506",
80
80
  "@sprucelabs/mercury-core-events": "^27.0.55",