@harnessio/yaml-editor 0.24.0 → 0.25.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/dist/index.js CHANGED
@@ -655,12 +655,12 @@ const ae = {
655
655
  const { themeConfig: t, editor: r, theme: n } = e, { defaultTheme: o } = t ?? {}, [i, a] = R(n ?? o ?? "vs-dark");
656
656
  return N(() => {
657
657
  var u;
658
- (u = t == null ? void 0 : t.monacoThemes) == null || u.forEach((l) => {
658
+ (u = t == null ? void 0 : t.themes) == null || u.forEach((l) => {
659
659
  F.editor.defineTheme(l.themeName, l.themeData);
660
660
  });
661
- }, [F]), N(() => {
661
+ }, [F, t]), N(() => {
662
662
  F.editor && n && (F.editor.setTheme(n), a(n));
663
- }, [r, n]), { theme: i };
663
+ }, [r, n, t]), { theme: i };
664
664
  };
665
665
  function xe(e) {
666
666
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";