@burdenoff/microfe-bigconsole 2026.1118.3 → 2026.1118.5

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,3 +1,4 @@
1
+ import { EditorProps, OnMount } from '@monaco-editor/react';
1
2
  import { ParserType } from '../../types';
2
3
  interface ExpressionEditorProps {
3
4
  /** Current value */
@@ -18,6 +19,9 @@ interface ExpressionEditorProps {
18
19
  error?: string | null;
19
20
  /** Override language (json, plaintext, etc.) */
20
21
  language?: string;
22
+ onEditorMount?: OnMount;
23
+ saveViewState?: boolean;
24
+ inputOptions?: Pick<NonNullable<EditorProps['options']>, 'ariaLabel' | 'wordBasedSuggestions'>;
21
25
  }
22
- export declare const ExpressionEditor: import('react').MemoExoticComponent<({ value, type, onChange, readOnly, height, lineNumbers, placeholder, error, language, }: ExpressionEditorProps) => import('react').JSX.Element>;
26
+ export declare const ExpressionEditor: import('react').MemoExoticComponent<({ value, type, onChange, readOnly, height, lineNumbers, placeholder, error, language, onEditorMount, saveViewState, inputOptions, }: ExpressionEditorProps) => import('react').JSX.Element>;
23
27
  export default ExpressionEditor;
@@ -9,8 +9,8 @@ function a(e) {
9
9
  default: return "plaintext";
10
10
  }
11
11
  }
12
- var o = e(function({ value: e, type: o, onChange: s, readOnly: c = !1, height: l = "300px", lineNumbers: u = !0, placeholder: d, error: f, language: p }) {
13
- let m = t(null), h = (e) => {
12
+ var o = e(function({ value: e, type: o, onChange: s, readOnly: c = !1, height: l = "300px", lineNumbers: u = !0, placeholder: d, error: f, language: p, onEditorMount: m, saveViewState: h, inputOptions: g }) {
13
+ let _ = t(null), v = (e) => {
14
14
  e.editor.defineTheme("bigconsole-dark", {
15
15
  base: "vs-dark",
16
16
  inherit: !0,
@@ -22,38 +22,39 @@ var o = e(function({ value: e, type: o, onChange: s, readOnly: c = !1, height: l
22
22
  "editor.lineHighlightBackground": "#2a2a2a"
23
23
  }
24
24
  });
25
- }, g = (t) => {
26
- m.current = t;
27
- let n = t;
25
+ }, y = (t, n) => {
26
+ m?.(t, n), _.current = t;
27
+ let r = t;
28
28
  if (!e && d) {
29
- n.setValue(d), s?.(d);
30
- let e = n.getModel();
31
- e && n.setSelection({
29
+ r.setValue(d), s?.(d);
30
+ let e = r.getModel();
31
+ e && r.setSelection({
32
32
  startLineNumber: 1,
33
33
  startColumn: 1,
34
34
  endLineNumber: e.getLineCount(),
35
35
  endColumn: e.getLineMaxColumn(e.getLineCount())
36
36
  });
37
37
  }
38
- }, _ = (e) => {
38
+ }, b = (e) => {
39
39
  s && e !== void 0 && s(e);
40
- }, v = p ?? a(o), y = l.includes("%");
40
+ }, x = p ?? a(o), S = l.includes("%");
41
41
  return /* @__PURE__ */ r("div", {
42
- className: `relative min-w-0 ${y ? "h-full flex flex-col" : ""}`,
42
+ className: `relative min-w-0 ${S ? "h-full flex flex-col" : ""}`,
43
43
  children: [/* @__PURE__ */ n("div", {
44
44
  className: `
45
45
  min-w-0 border rounded-md overflow-hidden
46
- ${y ? "flex-1 min-h-0" : ""}
46
+ ${S ? "flex-1 min-h-0" : ""}
47
47
  ${f ? "border-status-error-border" : "border-[var(--color-border-default)]"}
48
48
  `,
49
- style: y ? { height: "100%" } : void 0,
49
+ style: S ? { height: "100%" } : void 0,
50
50
  children: /* @__PURE__ */ n(i, {
51
- height: y ? "100%" : l,
52
- language: v,
51
+ height: S ? "100%" : l,
52
+ language: x,
53
53
  value: e,
54
- onChange: _,
55
- beforeMount: h,
56
- onMount: g,
54
+ onChange: b,
55
+ beforeMount: v,
56
+ onMount: y,
57
+ saveViewState: h,
57
58
  options: {
58
59
  readOnly: c,
59
60
  editContext: !1,
@@ -86,6 +87,7 @@ var o = e(function({ value: e, type: o, onChange: s, readOnly: c = !1, height: l
86
87
  acceptSuggestionOnEnter: "on",
87
88
  tabCompletion: "on",
88
89
  wordBasedSuggestions: "matchingDocuments",
90
+ ...g,
89
91
  parameterHints: { enabled: !c },
90
92
  suggest: {
91
93
  showKeywords: !0,
@@ -1,3 +1,6 @@
1
1
  import { FC } from 'react';
2
- export declare const DataSinksPage: FC;
2
+ export declare const DataSinksPage: FC<{
3
+ workspaceId?: string;
4
+ actorId?: string;
5
+ }>;
3
6
  export default DataSinksPage;