ssovee-os-web-ui 0.1.67 → 0.1.70

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.cjs CHANGED
@@ -3,8 +3,11 @@
3
3
  var React22 = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var react = require('@phosphor-icons/react');
6
+ var Editor = require('@monaco-editor/react');
6
7
  var uaParserJs = require('ua-parser-js');
7
8
 
9
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
+
8
11
  function _interopNamespace(e) {
9
12
  if (e && e.__esModule) return e;
10
13
  var n = Object.create(null);
@@ -24,6 +27,7 @@ function _interopNamespace(e) {
24
27
  }
25
28
 
26
29
  var React22__namespace = /*#__PURE__*/_interopNamespace(React22);
30
+ var Editor__default = /*#__PURE__*/_interopDefault(Editor);
27
31
 
28
32
  // src/components/Button.tsx
29
33
 
@@ -302,6 +306,28 @@ var TextArea = React22__namespace.default.forwardRef(
302
306
  );
303
307
  TextArea.displayName = "TextArea";
304
308
  var TextArea_default = TextArea;
309
+ var JsonEditor = ({
310
+ value,
311
+ onChange,
312
+ language = "json",
313
+ theme = "light",
314
+ height = "100%",
315
+ options,
316
+ className
317
+ }) => {
318
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className, style: { height }, children: /* @__PURE__ */ jsxRuntime.jsx(
319
+ Editor__default.default,
320
+ {
321
+ height: "100%",
322
+ language,
323
+ theme,
324
+ value,
325
+ onChange: (nextValue) => onChange(nextValue ?? ""),
326
+ options
327
+ }
328
+ ) });
329
+ };
330
+ var JsonEditor_default = JsonEditor;
305
331
  var Select = React22__namespace.default.forwardRef(
306
332
  ({
307
333
  className,
@@ -3430,6 +3456,7 @@ exports.Dropdown = Dropdown_default;
3430
3456
  exports.FileUpload = FileUpload_default;
3431
3457
  exports.ImageWithPlaceholder = ImageWithPlaceholder_default;
3432
3458
  exports.Input = Input_default;
3459
+ exports.JsonEditor = JsonEditor_default;
3433
3460
  exports.Loading = Loading_default;
3434
3461
  exports.Modal = Modal_default;
3435
3462
  exports.Pagination = Pagination_default;