@ansible/ansible-ui-framework 2.4.519 → 2.4.521

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.
@@ -1,5 +1,5 @@
1
+ import { ReactNode } from 'react';
1
2
  import { FieldPathByValue, FieldValues, Validate } from 'react-hook-form';
2
- import { FormGroupTextInputProps } from '../..';
3
3
  export type PageFormDataEditorInputProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, undefined | string> = FieldPathByValue<TFieldValues, undefined | string>> = {
4
4
  name: TFieldName;
5
5
  validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>;
@@ -9,5 +9,12 @@ export type PageFormDataEditorInputProps<TFieldValues extends FieldValues = Fiel
9
9
  allowCopy?: boolean;
10
10
  allowDownload?: boolean;
11
11
  defaultExpanded?: boolean;
12
- } & Omit<FormGroupTextInputProps, 'onChange'>;
12
+ id?: string;
13
+ label?: string;
14
+ isReadOnly?: boolean;
15
+ isRequired?: boolean;
16
+ additionalControls?: ReactNode;
17
+ labelHelp?: ReactNode;
18
+ labelHelpTitle?: string;
19
+ };
13
20
  export declare function PageFormDataEditor<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, undefined | string> = FieldPathByValue<TFieldValues, undefined | string>>(props: PageFormDataEditorInputProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
+ import { AlertProps } from '@patternfly/react-core';
2
+ type TimeoutType = AlertProps['timeout'];
1
3
  type UseClipboardResult = {
2
4
  writeToClipboard: (text: string) => void;
3
5
  copySuccess: boolean;
4
6
  };
5
- export declare function useClipboard(): UseClipboardResult;
7
+ export declare function useClipboard(timeout?: TimeoutType): UseClipboardResult;
6
8
  export {};
@@ -24,7 +24,6 @@ export * from './PageDialogs/BulkConfirmationDialog';
24
24
  export * from './PageDialogs/MultiSelectDialog';
25
25
  export * from './PageDialogs/PageDialog';
26
26
  export * from './PageDialogs/useSelectDialog';
27
- export * from './PageForm/Inputs/FormGroupTextInput';
28
27
  export * from './PageForm/Inputs/PageFormCheckbox';
29
28
  export * from './PageForm/Inputs/PageFormDataEditor';
30
29
  export * from './PageForm/Inputs/PageFormSelect';
package/index.js CHANGED
@@ -5012,31 +5012,31 @@ function MAe(e) {
5012
5012
  ] })
5013
5013
  ] });
5014
5014
  }
5015
- function KO() {
5016
- const { t: e } = pt(), [t, n] = fe(!1), r = PO(), a = {
5015
+ function KO(e = !0) {
5016
+ const { t } = pt(), [n, r] = fe(!1), a = PO(), i = {
5017
5017
  variant: "success",
5018
- title: e("Copied to clipboard"),
5019
- timeout: !0
5020
- }, i = {
5021
- variant: "danger",
5022
- title: e("Failed to copy to clipboard")
5018
+ title: t("Copied to clipboard"),
5019
+ timeout: e
5023
5020
  }, o = {
5021
+ variant: "danger",
5022
+ title: t("Failed to copy to clipboard")
5023
+ }, l = {
5024
5024
  variant: "warning",
5025
- title: e("Clipboard is not supported in this browser.")
5025
+ title: t("Clipboard is not supported in this browser.")
5026
5026
  };
5027
- return { copySuccess: t, writeToClipboard: (s) => {
5027
+ return { copySuccess: n, writeToClipboard: (c) => {
5028
5028
  (async () => {
5029
5029
  if (!navigator.clipboard) {
5030
- r.addAlert(o);
5030
+ a.addAlert(l);
5031
5031
  return;
5032
5032
  }
5033
5033
  try {
5034
- await navigator.clipboard.writeText(s), r.addAlert(a), n(!0);
5034
+ await navigator.clipboard.writeText(c), a.addAlert(i), r(!0);
5035
5035
  } catch {
5036
- r.removeAlert(a), r.addAlert(i);
5036
+ a.removeAlert(i), a.addAlert(o);
5037
5037
  }
5038
5038
  })().catch(() => {
5039
- r.removeAlert(a), r.addAlert(i);
5039
+ a.removeAlert(i), a.addAlert(o);
5040
5040
  });
5041
5041
  } };
5042
5042
  }
@@ -40856,6 +40856,10 @@ function xOe(e) {
40856
40856
  }
40857
40857
  return typeof t == "object" && t !== null;
40858
40858
  }
40859
+ function wOe(e, t) {
40860
+ const n = new Blob(t.split("/n"), { type: "text/plain" }), r = document.createElement("a");
40861
+ r.href = URL.createObjectURL(n), r.download = e + ".txt", document.body.appendChild(r), r.click(), document.body.removeChild(r);
40862
+ }
40859
40863
  function Qn(e) {
40860
40864
  return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
40861
40865
  }
@@ -40865,21 +40869,21 @@ function $r() {
40865
40869
  throw new Error("Monaco is undefined. Call setMonaco(monaco) first.");
40866
40870
  return bp;
40867
40871
  }
40868
- function wOe(e) {
40872
+ function SOe(e) {
40869
40873
  bp = e;
40870
40874
  }
40871
- function SOe(e) {
40875
+ function OOe(e) {
40872
40876
  const { MarkerSeverity: t } = $r();
40873
40877
  return e === t.Error ? 1 : e === t.Warning ? 2 : e === t.Info ? 3 : 4;
40874
40878
  }
40875
- function OOe(e) {
40879
+ function COe(e) {
40876
40880
  const { MarkerSeverity: t } = $r();
40877
40881
  return e === 1 ? t.Error : e === 2 ? t.Warning : e === 3 ? t.Info : t.Hint;
40878
40882
  }
40879
- function COe(e) {
40883
+ function AOe(e) {
40880
40884
  return e;
40881
40885
  }
40882
- function AOe(e) {
40886
+ function TOe(e) {
40883
40887
  return e;
40884
40888
  }
40885
40889
  function hb(e) {
@@ -40896,7 +40900,7 @@ function hn(e) {
40896
40900
  endColumn: e.end.character + 1
40897
40901
  };
40898
40902
  }
40899
- function TOe(e) {
40903
+ function EOe(e) {
40900
40904
  return {
40901
40905
  location: {
40902
40906
  range: hb(e),
@@ -40905,7 +40909,7 @@ function TOe(e) {
40905
40909
  message: e.message
40906
40910
  };
40907
40911
  }
40908
- function EOe(e) {
40912
+ function kOe(e) {
40909
40913
  const { Uri: t } = $r();
40910
40914
  return {
40911
40915
  ...hn(e.location.range),
@@ -40913,22 +40917,22 @@ function EOe(e) {
40913
40917
  resource: t.parse(e.location.uri)
40914
40918
  };
40915
40919
  }
40916
- function kOe(e) {
40920
+ function POe(e) {
40917
40921
  const t = {
40918
40922
  message: e.message,
40919
40923
  range: hb(e),
40920
- severity: SOe(e.severity)
40924
+ severity: OOe(e.severity)
40921
40925
  };
40922
- return typeof e.code == "string" ? t.code = e.code : e.code != null && (t.code = e.code.value, t.codeDescription = { href: String(e.code.target) }), e.relatedInformation && (t.relatedInformation = e.relatedInformation.map(TOe)), e.tags && (t.tags = e.tags.map(COe)), e.source != null && (t.source = e.source), t;
40926
+ return typeof e.code == "string" ? t.code = e.code : e.code != null && (t.code = e.code.value, t.codeDescription = { href: String(e.code.target) }), e.relatedInformation && (t.relatedInformation = e.relatedInformation.map(EOe)), e.tags && (t.tags = e.tags.map(AOe)), e.source != null && (t.source = e.source), t;
40923
40927
  }
40924
40928
  function l3(e, t) {
40925
40929
  var n;
40926
40930
  const { MarkerSeverity: r, Uri: a } = $r(), i = {
40927
40931
  ...hn(e.range),
40928
40932
  message: e.message,
40929
- severity: e.severity ? OOe(e.severity) : (n = t == null ? void 0 : t.defaultSeverity) !== null && n !== void 0 ? n : r.Error
40933
+ severity: e.severity ? COe(e.severity) : (n = t == null ? void 0 : t.defaultSeverity) !== null && n !== void 0 ? n : r.Error
40930
40934
  };
40931
- return e.code != null && (i.code = e.codeDescription == null ? String(e.code) : { value: String(e.code), target: a.parse(e.codeDescription.href) }), e.relatedInformation && (i.relatedInformation = e.relatedInformation.map(EOe)), e.tags && (i.tags = e.tags.map(AOe)), e.source != null && (i.source = e.source), i;
40935
+ return e.code != null && (i.code = e.codeDescription == null ? String(e.code) : { value: String(e.code), target: a.parse(e.codeDescription.href) }), e.relatedInformation && (i.relatedInformation = e.relatedInformation.map(kOe)), e.tags && (i.tags = e.tags.map(TOe)), e.source != null && (i.source = e.source), i;
40932
40936
  }
40933
40937
  function s3(e) {
40934
40938
  return {
@@ -40936,16 +40940,16 @@ function s3(e) {
40936
40940
  text: e.newText
40937
40941
  };
40938
40942
  }
40939
- function POe(e) {
40943
+ function $Oe(e) {
40940
40944
  const t = {};
40941
40945
  return e.ignoreIfExists != null && (t.ignoreIfExists = e.ignoreIfExists), e.ignoreIfNotExists != null && (t.ignoreIfNotExists = e.ignoreIfNotExists), e.overwrite != null && (t.overwrite = e.overwrite), e.recursive != null && (t.recursive = e.recursive), t;
40942
40946
  }
40943
- function $Oe(e) {
40947
+ function jOe(e) {
40944
40948
  const { Uri: t } = $r(), n = e.kind === "create" ? { newResource: t.parse(e.uri) } : e.kind === "delete" ? { oldResource: t.parse(e.uri) } : {
40945
40949
  oldResource: t.parse(e.oldUri),
40946
40950
  newResource: t.parse(e.newUri)
40947
40951
  };
40948
- return e.options && (n.options = POe(e.options)), n;
40952
+ return e.options && (n.options = $Oe(e.options)), n;
40949
40953
  }
40950
40954
  function TS(e, t, n) {
40951
40955
  const { Uri: r } = $r();
@@ -40955,7 +40959,7 @@ function TS(e, t, n) {
40955
40959
  textEdit: s3(e)
40956
40960
  };
40957
40961
  }
40958
- function jOe(e) {
40962
+ function DOe(e) {
40959
40963
  var t;
40960
40964
  const n = [];
40961
40965
  if (e.changes)
@@ -40968,37 +40972,37 @@ function jOe(e) {
40968
40972
  for (const a of r.edits)
40969
40973
  n.push(TS(a, r.textDocument.uri, (t = r.textDocument.version) !== null && t !== void 0 ? t : void 0));
40970
40974
  else
40971
- n.push($Oe(r));
40975
+ n.push(jOe(r));
40972
40976
  return {
40973
40977
  edits: n
40974
40978
  };
40975
40979
  }
40976
- function DOe(e, t) {
40980
+ function MOe(e, t) {
40977
40981
  const n = {
40978
40982
  title: e.title,
40979
40983
  isPreferred: e.isPreferred
40980
40984
  };
40981
- return e.diagnostics && (n.diagnostics = e.diagnostics.map((r) => l3(r, t))), e.disabled && (n.disabled = e.disabled.reason), e.edit && (n.edit = jOe(e.edit)), e.isPreferred != null && (n.isPreferred = e.isPreferred), e.kind && (n.kind = e.kind), n;
40985
+ return e.diagnostics && (n.diagnostics = e.diagnostics.map((r) => l3(r, t))), e.disabled && (n.disabled = e.disabled.reason), e.edit && (n.edit = DOe(e.edit)), e.isPreferred != null && (n.isPreferred = e.isPreferred), e.kind && (n.kind = e.kind), n;
40982
40986
  }
40983
- function MOe(e) {
40987
+ function IOe(e) {
40984
40988
  const t = {
40985
- diagnostics: e.markers.map(kOe),
40989
+ diagnostics: e.markers.map(POe),
40986
40990
  triggerKind: e.trigger
40987
40991
  };
40988
40992
  return e.only != null && (t.only = [e.only]), t;
40989
40993
  }
40990
- function IOe(e) {
40994
+ function LOe(e) {
40991
40995
  const t = {
40992
40996
  title: e.title,
40993
40997
  id: e.command
40994
40998
  };
40995
40999
  return e.arguments && (t.arguments = e.arguments), t;
40996
41000
  }
40997
- function LOe(e) {
41001
+ function ROe(e) {
40998
41002
  const { CompletionItemKind: t } = $r().languages;
40999
41003
  return e === 1 ? t.Text : e === 2 ? t.Method : e === 3 ? t.Function : e === 4 ? t.Constructor : e === 5 ? t.Field : e === 6 ? t.Variable : e === 7 ? t.Class : e === 8 ? t.Interface : e === 9 ? t.Module : e === 10 ? t.Property : e === 11 ? t.Unit : e === 12 ? t.Value : e === 13 ? t.Enum : e === 14 ? t.Keyword : e === 15 ? t.Snippet : e === 16 ? t.Color : e === 17 ? t.File : e === 18 ? t.Reference : e === 19 ? t.Folder : e === 20 ? t.EnumMember : e === 21 ? t.Constant : e === 22 ? t.Struct : e === 23 ? t.Event : e === 24 ? t.Operator : t.TypeParameter;
41000
41004
  }
41001
- function ROe(e) {
41005
+ function NOe(e) {
41002
41006
  return e;
41003
41007
  }
41004
41008
  function c3(e) {
@@ -41006,57 +41010,57 @@ function c3(e) {
41006
41010
  value: e.value
41007
41011
  };
41008
41012
  }
41009
- function NOe(e) {
41013
+ function FOe(e) {
41010
41014
  return {
41011
41015
  range: hn(e.range),
41012
41016
  text: e.newText
41013
41017
  };
41014
41018
  }
41015
- function FOe(e) {
41019
+ function zOe(e) {
41016
41020
  return "range" in e ? hn(e.range) : "insert" in e && "replace" in e ? {
41017
41021
  insert: hn(e.insert),
41018
41022
  replace: hn(e.replace)
41019
41023
  } : hn(e);
41020
41024
  }
41021
- function zOe(e, t) {
41025
+ function WOe(e, t) {
41022
41026
  var n, r, a, i, o;
41023
41027
  const { CompletionItemInsertTextRule: l, CompletionItemKind: s } = $r().languages, c = (n = t.itemDefaults) !== null && n !== void 0 ? n : {}, u = (r = e.textEdit) !== null && r !== void 0 ? r : c.editRange, f = (a = e.commitCharacters) !== null && a !== void 0 ? a : c.commitCharacters, d = (i = e.insertTextFormat) !== null && i !== void 0 ? i : c.insertTextFormat, h = (o = e.insertTextMode) !== null && o !== void 0 ? o : c.insertTextMode;
41024
41028
  let p = e.insertText, g;
41025
- u ? (g = FOe(u), "newText" in u && (p = u.newText)) : g = { ...t.range };
41029
+ u ? (g = zOe(u), "newText" in u && (p = u.newText)) : g = { ...t.range };
41026
41030
  const y = {
41027
41031
  insertText: p ?? "",
41028
- kind: e.kind == null ? s.Text : LOe(e.kind),
41032
+ kind: e.kind == null ? s.Text : ROe(e.kind),
41029
41033
  label: e.label,
41030
41034
  range: g
41031
41035
  };
41032
- return e.additionalTextEdits && (y.additionalTextEdits = e.additionalTextEdits.map(NOe)), e.command && (y.command = IOe(e.command)), f && (y.commitCharacters = f), e.detail != null && (y.detail = e.detail), typeof e.documentation == "string" ? y.documentation = e.documentation : e.documentation && (y.documentation = c3(e.documentation)), e.filterText != null && (y.filterText = e.filterText), d === 2 ? y.insertTextRules = l.InsertAsSnippet : h === 2 && (y.insertTextRules = l.KeepWhitespace), e.preselect != null && (y.preselect = e.preselect), e.sortText != null && (y.sortText = e.sortText), e.tags && (y.tags = e.tags.map(ROe)), y;
41036
+ return e.additionalTextEdits && (y.additionalTextEdits = e.additionalTextEdits.map(FOe)), e.command && (y.command = LOe(e.command)), f && (y.commitCharacters = f), e.detail != null && (y.detail = e.detail), typeof e.documentation == "string" ? y.documentation = e.documentation : e.documentation && (y.documentation = c3(e.documentation)), e.filterText != null && (y.filterText = e.filterText), d === 2 ? y.insertTextRules = l.InsertAsSnippet : h === 2 && (y.insertTextRules = l.KeepWhitespace), e.preselect != null && (y.preselect = e.preselect), e.sortText != null && (y.sortText = e.sortText), e.tags && (y.tags = e.tags.map(NOe)), y;
41033
41037
  }
41034
- function WOe(e, t) {
41038
+ function BOe(e, t) {
41035
41039
  return {
41036
41040
  incomplete: !!e.isIncomplete,
41037
- suggestions: e.items.map((n) => zOe(n, { range: t.range, itemDefaults: e.itemDefaults }))
41041
+ suggestions: e.items.map((n) => WOe(n, { range: t.range, itemDefaults: e.itemDefaults }))
41038
41042
  };
41039
41043
  }
41040
- function BOe(e) {
41044
+ function VOe(e) {
41041
41045
  const { SymbolKind: t } = $r().languages;
41042
41046
  return e === 1 ? t.File : e === 2 ? t.Module : e === 3 ? t.Namespace : e === 4 ? t.Package : e === 5 ? t.Class : e === 6 ? t.Method : e === 7 ? t.Property : e === 8 ? t.Field : e === 9 ? t.Constructor : e === 10 ? t.Enum : e === 11 ? t.Interface : e === 12 ? t.Function : e === 13 ? t.Variable : e === 14 ? t.Constant : e === 15 ? t.String : e === 16 ? t.Number : e === 17 ? t.Boolean : e === 18 ? t.Array : e === 19 ? t.Object : e === 20 ? t.Key : e === 21 ? t.Null : e === 22 ? t.EnumMember : e === 23 ? t.Struct : e === 24 ? t.Event : e === 25 ? t.Operator : t.TypeParameter;
41043
41047
  }
41044
- function VOe(e) {
41048
+ function UOe(e) {
41045
41049
  return e;
41046
41050
  }
41047
41051
  function u3(e) {
41048
41052
  var t, n, r;
41049
41053
  const a = {
41050
41054
  detail: (t = e.detail) !== null && t !== void 0 ? t : "",
41051
- kind: BOe(e.kind),
41055
+ kind: VOe(e.kind),
41052
41056
  name: e.name,
41053
41057
  range: hn(e.range),
41054
41058
  selectionRange: hn(e.selectionRange),
41055
- tags: (r = (n = e.tags) === null || n === void 0 ? void 0 : n.map(VOe)) !== null && r !== void 0 ? r : []
41059
+ tags: (r = (n = e.tags) === null || n === void 0 ? void 0 : n.map(UOe)) !== null && r !== void 0 ? r : []
41056
41060
  };
41057
41061
  return e.children && (a.children = e.children.map(u3)), a;
41058
41062
  }
41059
- function UOe(e) {
41063
+ function HOe(e) {
41060
41064
  const t = {
41061
41065
  start: e.startLine + 1,
41062
41066
  end: e.endLine + 1
@@ -41068,25 +41072,25 @@ function ES(e) {
41068
41072
  ${e.value}
41069
41073
  \`\`\`` };
41070
41074
  }
41071
- function HOe(e) {
41075
+ function qOe(e) {
41072
41076
  return typeof e == "string" || "language" in e ? [ES(e)] : Array.isArray(e) ? e.map(ES) : [c3(e)];
41073
41077
  }
41074
- function qOe(e) {
41078
+ function GOe(e) {
41075
41079
  const t = {
41076
- contents: HOe(e.contents)
41080
+ contents: qOe(e.contents)
41077
41081
  };
41078
41082
  return e.range && (t.range = hn(e.range)), t;
41079
41083
  }
41080
41084
  function mb(e) {
41081
41085
  return { character: e.column - 1, line: e.lineNumber - 1 };
41082
41086
  }
41083
- function GOe(e) {
41087
+ function YOe(e) {
41084
41088
  const { Uri: t } = $r(), n = {
41085
41089
  range: hn(e.range)
41086
41090
  };
41087
41091
  return e.tooltip != null && (n.tooltip = e.tooltip), e.target != null && (n.url = t.parse(e.target)), n;
41088
41092
  }
41089
- function YOe(e) {
41093
+ function KOe(e) {
41090
41094
  const { Uri: t } = $r(), n = {
41091
41095
  range: hn(e.targetRange),
41092
41096
  targetSelectionRange: hn(e.targetSelectionRange),
@@ -41138,7 +41142,7 @@ function kS(e, t, n) {
41138
41142
  }
41139
41143
  };
41140
41144
  }
41141
- function KOe(e, t) {
41145
+ function ZOe(e, t) {
41142
41146
  let { createData: n, interval: r = 3e4, label: a, moduleId: i, stopWhenIdleFor: o = 12e4 } = t, l, s = 0, c = !1;
41143
41147
  const u = () => {
41144
41148
  l && (l.dispose(), l = void 0);
@@ -41177,13 +41181,13 @@ function PS(e) {
41177
41181
  }
41178
41182
  };
41179
41183
  }
41180
- function ZOe(e) {
41184
+ function XOe(e) {
41181
41185
  return {
41182
41186
  triggerCharacters: [" ", ":"],
41183
41187
  async provideCompletionItems(t, n) {
41184
41188
  const r = t.uri, a = t.getWordUntilPosition(n), o = await (await e(r)).doComplete(String(r), mb(n));
41185
41189
  if (o)
41186
- return WOe(o, {
41190
+ return BOe(o, {
41187
41191
  range: {
41188
41192
  startLineNumber: n.lineNumber,
41189
41193
  startColumn: a.startColumn,
@@ -41194,24 +41198,24 @@ function ZOe(e) {
41194
41198
  }
41195
41199
  };
41196
41200
  }
41197
- function XOe(e) {
41201
+ function JOe(e) {
41198
41202
  return {
41199
41203
  async provideDefinition(t, n) {
41200
41204
  const r = t.uri, i = await (await e(r)).doDefinition(String(r), mb(n));
41201
- return i == null ? void 0 : i.map(YOe);
41205
+ return i == null ? void 0 : i.map(KOe);
41202
41206
  }
41203
41207
  };
41204
41208
  }
41205
- function JOe(e) {
41209
+ function QOe(e) {
41206
41210
  return {
41207
41211
  async provideHover(t, n) {
41208
41212
  const r = t.uri, i = await (await e(r)).doHover(String(r), mb(n));
41209
41213
  if (i)
41210
- return qOe(i);
41214
+ return GOe(i);
41211
41215
  }
41212
41216
  };
41213
41217
  }
41214
- function QOe(e) {
41218
+ function eCe(e) {
41215
41219
  return {
41216
41220
  async provideDocumentSymbols(t) {
41217
41221
  const n = t.uri, a = await (await e(n)).findDocumentSymbols(String(n));
@@ -41219,7 +41223,7 @@ function QOe(e) {
41219
41223
  }
41220
41224
  };
41221
41225
  }
41222
- function eCe(e) {
41226
+ function tCe(e) {
41223
41227
  return {
41224
41228
  async provideDocumentFormattingEdits(t) {
41225
41229
  const n = t.uri, a = await (await e(n)).format(String(n));
@@ -41227,43 +41231,43 @@ function eCe(e) {
41227
41231
  }
41228
41232
  };
41229
41233
  }
41230
- function tCe(e) {
41234
+ function nCe(e) {
41231
41235
  return {
41232
41236
  async provideLinks(t) {
41233
41237
  const n = t.uri, a = await (await e(n)).findLinks(String(n));
41234
41238
  if (a)
41235
41239
  return {
41236
- links: a.map(GOe)
41240
+ links: a.map(YOe)
41237
41241
  };
41238
41242
  }
41239
41243
  };
41240
41244
  }
41241
- function nCe(e) {
41245
+ function rCe(e) {
41242
41246
  return {
41243
41247
  async provideCodeActions(t, n, r) {
41244
41248
  const a = t.uri, o = await (await e(a)).getCodeAction(
41245
41249
  String(a),
41246
41250
  hb(n),
41247
- MOe(r)
41251
+ IOe(r)
41248
41252
  );
41249
41253
  if (o)
41250
41254
  return {
41251
- actions: o.map((l) => DOe(l)),
41255
+ actions: o.map((l) => MOe(l)),
41252
41256
  dispose() {
41253
41257
  }
41254
41258
  };
41255
41259
  }
41256
41260
  };
41257
41261
  }
41258
- function rCe(e) {
41262
+ function aCe(e) {
41259
41263
  return {
41260
41264
  async provideFoldingRanges(t) {
41261
41265
  const n = t.uri, a = await (await e(n)).getFoldingRanges(String(n));
41262
- return a == null ? void 0 : a.map(UOe);
41266
+ return a == null ? void 0 : a.map(HOe);
41263
41267
  }
41264
41268
  };
41265
41269
  }
41266
- function aCe(e, t) {
41270
+ function iCe(e, t) {
41267
41271
  const n = {
41268
41272
  completion: !0,
41269
41273
  customTags: [],
@@ -41276,13 +41280,13 @@ function aCe(e, t) {
41276
41280
  yamlVersion: "1.2",
41277
41281
  ...t
41278
41282
  };
41279
- wOe(e), e.languages.register({
41283
+ SOe(e), e.languages.register({
41280
41284
  id: "yaml",
41281
41285
  extensions: [".yaml", ".yml"],
41282
41286
  aliases: ["YAML", "yaml", "YML", "yml"],
41283
41287
  mimetypes: ["application/x-yaml"]
41284
41288
  });
41285
- const r = KOe(e, {
41289
+ const r = ZOe(e, {
41286
41290
  label: "yaml",
41287
41291
  moduleId: "monaco-yaml/yaml.worker",
41288
41292
  createData: n
@@ -41296,23 +41300,23 @@ function aCe(e, t) {
41296
41300
  r,
41297
41301
  e.languages.registerCompletionItemProvider(
41298
41302
  "yaml",
41299
- ZOe(r.getWorker)
41303
+ XOe(r.getWorker)
41300
41304
  ),
41301
- e.languages.registerHoverProvider("yaml", JOe(r.getWorker)),
41302
- e.languages.registerDefinitionProvider("yaml", XOe(r.getWorker)),
41305
+ e.languages.registerHoverProvider("yaml", QOe(r.getWorker)),
41306
+ e.languages.registerDefinitionProvider("yaml", JOe(r.getWorker)),
41303
41307
  e.languages.registerDocumentSymbolProvider(
41304
41308
  "yaml",
41305
- QOe(r.getWorker)
41309
+ eCe(r.getWorker)
41306
41310
  ),
41307
41311
  e.languages.registerDocumentFormattingEditProvider(
41308
41312
  "yaml",
41309
- eCe(r.getWorker)
41313
+ tCe(r.getWorker)
41310
41314
  ),
41311
- e.languages.registerLinkProvider("yaml", tCe(r.getWorker)),
41312
- e.languages.registerCodeActionProvider("yaml", nCe(r.getWorker)),
41315
+ e.languages.registerLinkProvider("yaml", nCe(r.getWorker)),
41316
+ e.languages.registerCodeActionProvider("yaml", rCe(r.getWorker)),
41313
41317
  e.languages.registerFoldingRangeProvider(
41314
41318
  "yaml",
41315
- rCe(r.getWorker)
41319
+ aCe(r.getWorker)
41316
41320
  ),
41317
41321
  e.languages.setLanguageConfiguration("yaml", {
41318
41322
  comments: {
@@ -41359,11 +41363,11 @@ function aCe(e, t) {
41359
41363
  }
41360
41364
  };
41361
41365
  }
41362
- function iCe(e) {
41366
+ function oCe(e) {
41363
41367
  const { onChange: t, language: n, setError: r, name: a, clearErrors: i } = e, o = "data-editor", l = Je(null), s = Je({}), c = ec();
41364
41368
  return Ce(() => {
41365
41369
  var f;
41366
- aCe(Un, {
41370
+ iCe(Un, {
41367
41371
  validate: !0,
41368
41372
  format: !0,
41369
41373
  schemas: [
@@ -41474,7 +41478,7 @@ function iCe(e) {
41474
41478
  }
41475
41479
  );
41476
41480
  }
41477
- function oCe(e) {
41481
+ function lCe(e) {
41478
41482
  const {
41479
41483
  name: t,
41480
41484
  children: n,
@@ -41502,10 +41506,6 @@ function oCe(e) {
41502
41506
  }
41503
41507
  );
41504
41508
  }
41505
- function lCe(e, t) {
41506
- const n = new Blob(t.split("/n"), { type: "text/plain" }), r = document.createElement("a");
41507
- r.href = URL.createObjectURL(n), r.download = e + ".txt", document.body.appendChild(r), r.click(), document.body.removeChild(r);
41508
- }
41509
41509
  const su = Fe(uu)`
41510
41510
  &&:first-child#copy-button {
41511
41511
  margin-right: auto;
@@ -41641,7 +41641,7 @@ function JAe(e) {
41641
41641
  }, [x, u, P]), ee = de(() => {
41642
41642
  L.current && L.current.click();
41643
41643
  }, []), te = de(() => {
41644
- lCe(u || "codeEditorData", x(u));
41644
+ wOe(u || "codeEditorData", x(u));
41645
41645
  const U = {
41646
41646
  variant: "success",
41647
41647
  title: t("File downloaded")
@@ -41685,7 +41685,7 @@ function JAe(e) {
41685
41685
  const ne = [...new Set((oe = H == null ? void 0 : H.message) == null ? void 0 : oe.split(`
41686
41686
  `))], N = q != null && q !== "";
41687
41687
  return /* @__PURE__ */ v.jsx(
41688
- oCe,
41688
+ lCe,
41689
41689
  {
41690
41690
  ...h,
41691
41691
  label: o ? /* @__PURE__ */ v.jsxs("span", { style: { alignItems: "center" }, children: [
@@ -41738,7 +41738,7 @@ function JAe(e) {
41738
41738
  }
41739
41739
  ),
41740
41740
  /* @__PURE__ */ v.jsx(
41741
- iCe,
41741
+ oCe,
41742
41742
  {
41743
41743
  setError: _,
41744
41744
  clearErrors: b,