@dartech/arsenal-ui 1.3.16 → 1.3.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.3.16",
3
+ "version": "1.3.18",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -11,6 +11,7 @@
11
11
  "react-hook-form": "^7.5.2",
12
12
  "@uiw/codemirror-extensions-langs": "^4.19.16",
13
13
  "@uiw/react-codemirror": "^4.19.16",
14
+ "@uiw/codemirror-theme-abcdef": "^4.21.3",
14
15
  "@mui/x-date-pickers": "^5.0.0-alpha.0",
15
16
  "@mui/x-data-grid": "^5.17.18",
16
17
  "@mui/icons-material": "^5.11.0",
@@ -20,14 +21,15 @@
20
21
  "@emotion/styled": "^11.10.5",
21
22
  "date-fns": "^2.22.1",
22
23
  "duration-fns": "^3.0.2",
23
- "react-ace": "^10.1.0",
24
24
  "ace-builds": "^1.5.3",
25
25
  "react-router-dom": "6.8.0",
26
26
  "react-toastify": "^9.1.1",
27
27
  "classnames": "^2.3.1",
28
28
  "@tanstack/react-query": "^4.24.10",
29
29
  "@rollup/plugin-node-resolve": "13.3.0",
30
- "qs": "6.11.0"
30
+ "@uiw/codemirror-theme-material": "4.21.3",
31
+ "qs": "6.11.0",
32
+ "react-ace": "10.1.0"
31
33
  },
32
34
  "module": "./index.js",
33
35
  "main": "./index.js",
@@ -1,17 +1,13 @@
1
1
  /// <reference types="react" />
2
- import AceEditor from 'react-ace';
3
- import 'ace-builds/src-noconflict/mode-python';
4
- import 'ace-builds/src-noconflict/theme-monokai';
5
- import 'ace-builds/src-noconflict/ext-language_tools';
2
+ import { ReactCodeMirrorRef } from '@uiw/react-codemirror';
6
3
  import { Control } from 'react-hook-form';
7
4
  export interface ControlAceEditorProps {
8
5
  name: string;
9
6
  control: Control<any>;
10
- mode?: string;
7
+ mode?: 'json' | 'javascript' | 'python';
11
8
  label?: string;
12
9
  width?: string;
13
10
  height?: string;
14
- theme?: string;
15
11
  readOnly?: boolean;
16
12
  required?: boolean;
17
13
  validateJson?: boolean;
@@ -20,5 +16,5 @@ export interface ControlAceEditorProps {
20
16
  parseValue?: boolean;
21
17
  [key: string]: unknown;
22
18
  }
23
- export declare const ControlAceEditor: import("react").ForwardRefExoticComponent<Omit<ControlAceEditorProps, "ref"> & import("react").RefAttributes<AceEditor>>;
19
+ export declare const ControlAceEditor: import("react").ForwardRefExoticComponent<Omit<ControlAceEditorProps, "ref"> & import("react").RefAttributes<ReactCodeMirrorRef>>;
24
20
  export default ControlAceEditor;
@@ -1,6 +1,4 @@
1
1
  /// <reference types="react" />
2
- import 'ace-builds/src-noconflict/ace';
3
- import 'ace-builds/src-noconflict/mode-json';
4
2
  type Props = {
5
3
  title: string;
6
4
  text?: string;
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
- import 'ace-builds/src-noconflict/ace';
3
- import 'ace-builds/src-noconflict/mode-json';
4
2
  type Props = {
5
3
  open: boolean;
6
4
  value: string;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import 'ace-builds/src-noconflict/mode-json';
3
2
  import { RefCallBack } from 'react-hook-form';
4
3
  type Props = {
5
4
  validate?: boolean;
@@ -1,6 +1,4 @@
1
1
  /// <reference types="react" />
2
- import 'ace-builds/src-noconflict/ace';
3
- import 'ace-builds/src-noconflict/mode-json';
4
2
  type Props = {
5
3
  name: string;
6
4
  label?: string;