@norskvideo/norsk-studio-aws 1.11.0 → 1.27.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.
package/client/info.js CHANGED
@@ -626,6 +626,10 @@ function info_default({ defineComponent, Av, validation: { Z } }) {
626
626
  component: OutputSelection2,
627
627
  validation: Z.string().min(1, "Choosing an output is mandatory")
628
628
  }
629
+ },
630
+ notes: {
631
+ help: "Additional notes about this component",
632
+ hint: { type: "text", optional: true }
629
633
  }
630
634
  }
631
635
  }
@@ -653,8 +657,8 @@ function info_default2({ defineComponent, validation: { Z }, All }) {
653
657
  }
654
658
  },
655
659
  extraValidation: function(ctx) {
656
- const audioStreams = ctx.subscriptions.filter((s) => s.streams.select.includes("audio"));
657
- const videoStreams = ctx.subscriptions.filter((s) => s.streams.select.includes("video"));
660
+ const audioStreams = ctx.subscriptions.filter((s) => s.validatedStreams.select.includes("audio"));
661
+ const videoStreams = ctx.subscriptions.filter((s) => s.validatedStreams.select.includes("video"));
658
662
  if (audioStreams.length == 0) {
659
663
  ctx.addWarning("Output has no audio, is this intentional");
660
664
  }
@@ -707,6 +711,10 @@ function info_default2({ defineComponent, validation: { Z }, All }) {
707
711
  component: UrlSelection2,
708
712
  validation: Z.number().min(0, "Choosing a url is mandatory")
709
713
  }
714
+ },
715
+ notes: {
716
+ help: "Additional notes about this component",
717
+ hint: { type: "text", optional: true }
710
718
  }
711
719
  }
712
720
  }
@@ -768,7 +776,11 @@ function info_default3({ defineComponent, Av, Subtitle, validation: { LanguageTa
768
776
  configForm: {
769
777
  form: {
770
778
  language: { help: "Source language to transcribe", hint: { type: "custom", component: TranscribeLanguageSelection2, defaultValue: "en-US", validation: LanguageTagWithCountry } },
771
- targetLanguage: { help: "Target language to translate to (optional).", hint: { type: "custom", component: TranslateLanguageSelection2, defaultValue: "", validation: Z.union([LanguageTagOptionalCountry, Z.string().length(0)]) } }
779
+ targetLanguage: { help: "Target language to translate to (optional).", hint: { type: "custom", component: TranslateLanguageSelection2, defaultValue: "", validation: Z.union([LanguageTagOptionalCountry, Z.string().length(0)]) } },
780
+ notes: {
781
+ help: "Additional notes about this component",
782
+ hint: { type: "text", optional: true }
783
+ }
772
784
  }
773
785
  }
774
786
  });