@thanhpv102/easy-email-extensions 4.19.16 → 4.19.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.
@@ -0,0 +1,29 @@
1
+ import "react";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import "codemirror/mode/xml/xml.js";
4
+ import { Controlled as t } from "react-codemirror2";
5
+ var n = { container: "_container_13rz9_1" };
6
+ //#endregion
7
+ //#region src/components/Form/CodemirrorEditor/index.tsx
8
+ function r(r) {
9
+ let { value: i, onChange: a } = r;
10
+ return /* @__PURE__ */ e(t, {
11
+ className: n.container,
12
+ value: i,
13
+ onBeforeChange: (e, t, n) => a(n),
14
+ options: {
15
+ mode: "xml",
16
+ theme: "material",
17
+ lineNumbers: !0,
18
+ autofocus: !0,
19
+ styleActiveLine: !0,
20
+ smartIndent: !0,
21
+ lineWrapping: !0,
22
+ foldGutter: !0
23
+ }
24
+ });
25
+ }
26
+ //#endregion
27
+ export { r as default };
28
+
29
+ //# sourceMappingURL=CodemirrorEditor-CBlfO43b.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodemirrorEditor-CBlfO43b.mjs","names":[],"sources":["../src/components/Form/CodemirrorEditor/index.module.scss","../src/components/Form/CodemirrorEditor/index.tsx"],"sourcesContent":[".container {\n height: 100%;\n}\n.container :global(.CodeMirror) {\n height: 100%;\n}","import React from 'react';\nimport 'codemirror/lib/codemirror.css';\nimport 'codemirror/theme/material.css';\nimport 'codemirror/theme/neat.css';\nimport 'codemirror/mode/xml/xml.js';\nimport { Controlled as CodeMirror } from 'react-codemirror2';\n\nimport styles from './index.module.scss';\n\nexport default function CodemirrorEditor(props: {\n value: string;\n onChange(val: string): void;\n}) {\n const { value, onChange } = props;\n return (\n <CodeMirror\n className={styles.container}\n value={value}\n onBeforeChange={(editor, data, value) => onChange(value)}\n options={{\n mode: 'xml',\n theme: 'material',\n lineNumbers: true,\n autofocus: true,\n styleActiveLine: true,\n smartIndent: true,\n lineWrapping: true,\n foldGutter: true,\n }}\n />\n );\n}\n"],"mappings":";;;;;;;ACSA,SAAwB,EAAiB,GAGtC;CACD,IAAM,EAAE,UAAO,gBAAa;CAC5B,OACE,kBAAC,GAAD;EACE,WAAW,EAAO;EACX;EACP,iBAAiB,GAAQ,GAAM,MAAU,EAAS,CAAK;EACvD,SAAS;GACP,MAAM;GACN,OAAO;GACP,aAAa;GACb,WAAW;GACX,iBAAiB;GACjB,aAAa;GACb,cAAc;GACd,YAAY;EACd;CACD,CAAA;AAEL"}