@elliemae/ds-codeeditor 2.3.0-alpha.8 → 2.3.0-next.2

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,69 +0,0 @@
1
- import * as React from "react";
2
- import React2, { Component } from "react";
3
- import AceEditor from "react-ace";
4
- import DSModal from "@elliemae/ds-modal";
5
- import DSCodeEditorForm from "./DSCodeEditorForm";
6
- import "brace/mode/javascript.js";
7
- import "brace/theme/tomorrow.js";
8
- class DSCodeEditorImpl extends Component {
9
- constructor(props) {
10
- super(props);
11
- this.state = {
12
- value: props.value,
13
- errors: []
14
- };
15
- this.reactAceComponent = React2.createRef();
16
- }
17
- render() {
18
- const {
19
- onSave,
20
- onClose,
21
- onReject,
22
- isOpen,
23
- fileName,
24
- confirmLabel,
25
- maxLines,
26
- minLines,
27
- modalTitle,
28
- modalType,
29
- rejectLabel,
30
- size,
31
- style,
32
- containerProps
33
- } = this.props;
34
- const { value, errors } = this.state;
35
- return /* @__PURE__ */ React2.createElement(DSModal, {
36
- centered: false,
37
- confirmLabel,
38
- containerProps,
39
- isOpen,
40
- modalTitle,
41
- modalType,
42
- onClose: () => onClose(value, fileName, errors),
43
- onConfirm: () => onSave(value, fileName, errors),
44
- onReject: () => onReject(value, fileName, errors),
45
- rejectLabel,
46
- size,
47
- style
48
- }, /* @__PURE__ */ React2.createElement(DSCodeEditorForm, {
49
- fileName,
50
- reactAceComponent: this.reactAceComponent
51
- }), /* @__PURE__ */ React2.createElement(AceEditor, {
52
- ref: this.reactAceComponent,
53
- editorProps: { $blockScrolling: true },
54
- maxLines,
55
- minLines,
56
- mode: "javascript",
57
- name: "ace-code-edior",
58
- onChange: (val) => this.setState({ value: val }),
59
- onValidate: (annotations) => this.setState({ errors: annotations }),
60
- theme: "tomorrow",
61
- value
62
- }));
63
- }
64
- }
65
- var DSCodeEditorImpl_default = DSCodeEditorImpl;
66
- export {
67
- DSCodeEditorImpl_default as default
68
- };
69
- //# sourceMappingURL=DSCodeEditorImpl.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/DSCodeEditorImpl.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { Component } from 'react';\nimport AceEditor from 'react-ace';\nimport DSModal from '@elliemae/ds-modal';\nimport DSCodeEditorForm from './DSCodeEditorForm';\nimport 'brace/mode/javascript.js';\nimport 'brace/theme/tomorrow.js';\n\nclass DSCodeEditorImpl extends Component {\n constructor(props) {\n super(props);\n this.state = {\n value: props.value,\n errors: [],\n };\n this.reactAceComponent = React.createRef();\n }\n\n render() {\n const {\n onSave,\n onClose,\n onReject,\n isOpen,\n fileName,\n confirmLabel,\n maxLines,\n minLines,\n modalTitle,\n modalType,\n rejectLabel,\n size,\n style,\n containerProps,\n } = this.props;\n\n const { value, errors } = this.state;\n return (\n <DSModal\n centered={false}\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n isOpen={isOpen}\n modalTitle={modalTitle}\n modalType={modalType}\n onClose={() => onClose(value, fileName, errors)}\n onConfirm={() => onSave(value, fileName, errors)}\n onReject={() => onReject(value, fileName, errors)}\n rejectLabel={rejectLabel}\n size={size}\n style={style}\n >\n <DSCodeEditorForm\n fileName={fileName}\n reactAceComponent={this.reactAceComponent}\n />\n <AceEditor\n ref={this.reactAceComponent}\n editorProps={{ $blockScrolling: true }}\n maxLines={maxLines}\n minLines={minLines}\n mode=\"javascript\"\n name=\"ace-code-edior\"\n onChange={val => this.setState({ value: val })}\n onValidate={annotations => this.setState({ errors: annotations })}\n theme=\"tomorrow\"\n value={value}\n />\n </DSModal>\n );\n }\n}\n\nexport default DSCodeEditorImpl;\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA,+BAA+B,UAAU;AAAA,EACvC,YAAY,OAAO;AACjB,UAAM;AACN,SAAK,QAAQ;AAAA,MACX,OAAO,MAAM;AAAA,MACb,QAAQ;AAAA;AAEV,SAAK,oBAAoB,OAAM;AAAA;AAAA,EAGjC,SAAS;AACP,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,QACE,KAAK;AAET,UAAM,EAAE,OAAO,WAAW,KAAK;AAC/B,WACE,qCAAC,SAAD;AAAA,MACE,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS,MAAM,QAAQ,OAAO,UAAU;AAAA,MACxC,WAAW,MAAM,OAAO,OAAO,UAAU;AAAA,MACzC,UAAU,MAAM,SAAS,OAAO,UAAU;AAAA,MAC1C;AAAA,MACA;AAAA,MACA;AAAA,OAEA,qCAAC,kBAAD;AAAA,MACE;AAAA,MACA,mBAAmB,KAAK;AAAA,QAE1B,qCAAC,WAAD;AAAA,MACE,KAAK,KAAK;AAAA,MACV,aAAa,EAAE,iBAAiB;AAAA,MAChC;AAAA,MACA;AAAA,MACA,MAAK;AAAA,MACL,MAAK;AAAA,MACL,UAAU,SAAO,KAAK,SAAS,EAAE,OAAO;AAAA,MACxC,YAAY,iBAAe,KAAK,SAAS,EAAE,QAAQ;AAAA,MACnD,OAAM;AAAA,MACN;AAAA;AAAA;AAAA;AAOV,IAAO,2BAAQ;",
6
- "names": []
7
- }
package/dist/esm/index.js DELETED
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import { default as default2, CodeEditorWithSchema } from "./DSCodeEditor";
3
- export {
4
- CodeEditorWithSchema,
5
- default2 as default
6
- };
7
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { default, CodeEditorWithSchema } from './DSCodeEditor';\n"],
5
- "mappings": "AAAA;ACAA;",
6
- "names": []
7
- }