@zydon/common 1.1.62 → 1.1.63
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/components/Editor/index.d.ts.map +1 -1
- package/dist/index.cjs +4 -63
- package/dist/index.js +2 -63
- package/dist/style.css +0 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAqCjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("framer-motion"), require("@mui/material"), require("react"), require("@mui/material/styles/index.js"), require("@mui/material/useMediaQuery/index.js"), require("notistack"), require("@iconify/react"), require("react-window"), require("react-color"), require("@mui/x-date-pickers-pro"), require("@mui/x-date-pickers-pro/AdapterDateFns/index.js"), require("date-fns/locale/pt-BR"), require("color"), require("@mui/lab"), require("@mui/x-data-grid-premium"), require("simplebar-react"), require("
|
|
3
|
-
})(this, function(exports2, jsxRuntime, framerMotion, material, React, index_js, useMediaQuery, notistack, react, reactWindow, reactColor, xDatePickersPro, index_js$1, ptBRLocale, Color, lab, xDataGridPremium, SimpleBar,
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("framer-motion"), require("@mui/material"), require("react"), require("@mui/material/styles/index.js"), require("@mui/material/useMediaQuery/index.js"), require("notistack"), require("@iconify/react"), require("react-window"), require("react-color"), require("@mui/x-date-pickers-pro"), require("@mui/x-date-pickers-pro/AdapterDateFns/index.js"), require("date-fns/locale/pt-BR"), require("color"), require("@mui/lab"), require("@mui/x-data-grid-premium"), require("simplebar-react"), require("react-easy-crop"), require("numeral"), require("react-number-format"), require("react-imask"), require("react-dom"), require("@codemirror/lang-sql"), require("@uiw/react-codemirror"), require("react-dropzone"), require("react-hook-form"), require("lodash/isEqual.js"), require("date-fns")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "framer-motion", "@mui/material", "react", "@mui/material/styles/index.js", "@mui/material/useMediaQuery/index.js", "notistack", "@iconify/react", "react-window", "react-color", "@mui/x-date-pickers-pro", "@mui/x-date-pickers-pro/AdapterDateFns/index.js", "date-fns/locale/pt-BR", "color", "@mui/lab", "@mui/x-data-grid-premium", "simplebar-react", "react-easy-crop", "numeral", "react-number-format", "react-imask", "react-dom", "@codemirror/lang-sql", "@uiw/react-codemirror", "react-dropzone", "react-hook-form", "lodash/isEqual.js", "date-fns"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.common = {}, global.jsxRuntime, global.framerMotion, global.material, global.React, global.index_js, global.useMediaQuery, global.notistack, global.react, global.reactWindow, global.reactColor, global.xDatePickersPro, global.index_js$1, global.ptBRLocale, global.Color, global.lab, global.xDataGridPremium, global.SimpleBar, global.Cropper, global.numeral, global.reactNumberFormat, global.reactImask, global.reactDom, global.langSql, global.CodemirrorComponent, global.reactDropzone, global.reactHookForm, global.isEqual, global.dateFns));
|
|
3
|
+
})(this, function(exports2, jsxRuntime, framerMotion, material, React, index_js, useMediaQuery, notistack, react, reactWindow, reactColor, xDatePickersPro, index_js$1, ptBRLocale, Color, lab, xDataGridPremium, SimpleBar, Cropper, numeral, reactNumberFormat, reactImask, reactDom, langSql, CodemirrorComponent, reactDropzone, reactHookForm, isEqual, dateFns) {
|
|
4
4
|
"use strict";
|
|
5
5
|
const TRANSITION = {
|
|
6
6
|
duration: 2,
|
|
@@ -4665,13 +4665,6 @@
|
|
|
4665
4665
|
}
|
|
4666
4666
|
);
|
|
4667
4667
|
};
|
|
4668
|
-
const monokaiSublime = "";
|
|
4669
|
-
hljs.configure({
|
|
4670
|
-
languages: ["javascript", "jsx", "sh", "bash", "html", "scss", "css", "json"]
|
|
4671
|
-
});
|
|
4672
|
-
if (typeof window !== "undefined") {
|
|
4673
|
-
window.hljs = hljs;
|
|
4674
|
-
}
|
|
4675
4668
|
const StyledEditor = index_js.styled(material.Box)(({ theme }) => ({
|
|
4676
4669
|
overflow: "hidden",
|
|
4677
4670
|
position: "relative",
|
|
@@ -4824,31 +4817,6 @@
|
|
|
4824
4817
|
"Título 5",
|
|
4825
4818
|
"Título 6"
|
|
4826
4819
|
];
|
|
4827
|
-
const formats = [
|
|
4828
|
-
"align",
|
|
4829
|
-
"background",
|
|
4830
|
-
"blockquote",
|
|
4831
|
-
"bold",
|
|
4832
|
-
"bullet",
|
|
4833
|
-
"code",
|
|
4834
|
-
"code-block",
|
|
4835
|
-
"color",
|
|
4836
|
-
"direction",
|
|
4837
|
-
"font",
|
|
4838
|
-
"formula",
|
|
4839
|
-
"header",
|
|
4840
|
-
"image",
|
|
4841
|
-
"indent",
|
|
4842
|
-
"italic",
|
|
4843
|
-
"link",
|
|
4844
|
-
"list",
|
|
4845
|
-
"script",
|
|
4846
|
-
"size",
|
|
4847
|
-
"strike",
|
|
4848
|
-
"table",
|
|
4849
|
-
"underline",
|
|
4850
|
-
"video"
|
|
4851
|
-
];
|
|
4852
4820
|
const EditorToolbar = ({
|
|
4853
4821
|
id,
|
|
4854
4822
|
isSimple,
|
|
@@ -4901,27 +4869,10 @@
|
|
|
4901
4869
|
const Editor$1 = ({
|
|
4902
4870
|
id = "minimal-quill",
|
|
4903
4871
|
error,
|
|
4904
|
-
value,
|
|
4905
|
-
onChange,
|
|
4906
4872
|
simple = false,
|
|
4907
4873
|
helperText,
|
|
4908
|
-
sx
|
|
4909
|
-
...other
|
|
4874
|
+
sx
|
|
4910
4875
|
}) => {
|
|
4911
|
-
const modules = {
|
|
4912
|
-
toolbar: {
|
|
4913
|
-
container: `#${id}`
|
|
4914
|
-
},
|
|
4915
|
-
history: {
|
|
4916
|
-
delay: 500,
|
|
4917
|
-
maxStack: 100,
|
|
4918
|
-
userOnly: true
|
|
4919
|
-
},
|
|
4920
|
-
syntax: true,
|
|
4921
|
-
clipboard: {
|
|
4922
|
-
matchVisual: false
|
|
4923
|
-
}
|
|
4924
|
-
};
|
|
4925
4876
|
return /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { children: [
|
|
4926
4877
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4927
4878
|
StyledEditor,
|
|
@@ -4934,17 +4885,7 @@
|
|
|
4934
4885
|
},
|
|
4935
4886
|
children: [
|
|
4936
4887
|
/* @__PURE__ */ jsxRuntime.jsx(EditorToolbar, { id, isSimple: simple }),
|
|
4937
|
-
|
|
4938
|
-
ReactQuill,
|
|
4939
|
-
{
|
|
4940
|
-
value,
|
|
4941
|
-
onChange,
|
|
4942
|
-
modules,
|
|
4943
|
-
formats,
|
|
4944
|
-
placeholder: "Write something awesome...",
|
|
4945
|
-
...other
|
|
4946
|
-
}
|
|
4947
|
-
)
|
|
4888
|
+
"<ReactQuill"
|
|
4948
4889
|
]
|
|
4949
4890
|
}
|
|
4950
4891
|
),
|
package/dist/index.js
CHANGED
|
@@ -16,8 +16,6 @@ import Color from "color";
|
|
|
16
16
|
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
17
17
|
import { useGridApiContext, useGridRootProps, gridColumnsTotalWidthSelector, gridColumnPositionsSelector, GRID_CHECKBOX_SELECTION_COL_DEF, DataGridPremium, useGridApiRef } from "@mui/x-data-grid-premium";
|
|
18
18
|
import SimpleBar from "simplebar-react";
|
|
19
|
-
import hljs from "highlight.js";
|
|
20
|
-
import ReactQuill from "react-quill";
|
|
21
19
|
import Cropper from "react-easy-crop";
|
|
22
20
|
import numeral from "numeral";
|
|
23
21
|
import { NumericFormat } from "react-number-format";
|
|
@@ -4692,13 +4690,6 @@ const Drawer = ({
|
|
|
4692
4690
|
}
|
|
4693
4691
|
);
|
|
4694
4692
|
};
|
|
4695
|
-
const monokaiSublime = "";
|
|
4696
|
-
hljs.configure({
|
|
4697
|
-
languages: ["javascript", "jsx", "sh", "bash", "html", "scss", "css", "json"]
|
|
4698
|
-
});
|
|
4699
|
-
if (typeof window !== "undefined") {
|
|
4700
|
-
window.hljs = hljs;
|
|
4701
|
-
}
|
|
4702
4693
|
const StyledEditor = styled$1(Box)(({ theme }) => ({
|
|
4703
4694
|
overflow: "hidden",
|
|
4704
4695
|
position: "relative",
|
|
@@ -4851,31 +4842,6 @@ const HEADINGS = [
|
|
|
4851
4842
|
"Título 5",
|
|
4852
4843
|
"Título 6"
|
|
4853
4844
|
];
|
|
4854
|
-
const formats = [
|
|
4855
|
-
"align",
|
|
4856
|
-
"background",
|
|
4857
|
-
"blockquote",
|
|
4858
|
-
"bold",
|
|
4859
|
-
"bullet",
|
|
4860
|
-
"code",
|
|
4861
|
-
"code-block",
|
|
4862
|
-
"color",
|
|
4863
|
-
"direction",
|
|
4864
|
-
"font",
|
|
4865
|
-
"formula",
|
|
4866
|
-
"header",
|
|
4867
|
-
"image",
|
|
4868
|
-
"indent",
|
|
4869
|
-
"italic",
|
|
4870
|
-
"link",
|
|
4871
|
-
"list",
|
|
4872
|
-
"script",
|
|
4873
|
-
"size",
|
|
4874
|
-
"strike",
|
|
4875
|
-
"table",
|
|
4876
|
-
"underline",
|
|
4877
|
-
"video"
|
|
4878
|
-
];
|
|
4879
4845
|
const EditorToolbar = ({
|
|
4880
4846
|
id,
|
|
4881
4847
|
isSimple,
|
|
@@ -4928,27 +4894,10 @@ const EditorToolbar = ({
|
|
|
4928
4894
|
const Editor$1 = ({
|
|
4929
4895
|
id = "minimal-quill",
|
|
4930
4896
|
error,
|
|
4931
|
-
value,
|
|
4932
|
-
onChange,
|
|
4933
4897
|
simple = false,
|
|
4934
4898
|
helperText,
|
|
4935
|
-
sx
|
|
4936
|
-
...other
|
|
4899
|
+
sx
|
|
4937
4900
|
}) => {
|
|
4938
|
-
const modules = {
|
|
4939
|
-
toolbar: {
|
|
4940
|
-
container: `#${id}`
|
|
4941
|
-
},
|
|
4942
|
-
history: {
|
|
4943
|
-
delay: 500,
|
|
4944
|
-
maxStack: 100,
|
|
4945
|
-
userOnly: true
|
|
4946
|
-
},
|
|
4947
|
-
syntax: true,
|
|
4948
|
-
clipboard: {
|
|
4949
|
-
matchVisual: false
|
|
4950
|
-
}
|
|
4951
|
-
};
|
|
4952
4901
|
return /* @__PURE__ */ jsxs(Stack, { children: [
|
|
4953
4902
|
/* @__PURE__ */ jsxs(
|
|
4954
4903
|
StyledEditor,
|
|
@@ -4961,17 +4910,7 @@ const Editor$1 = ({
|
|
|
4961
4910
|
},
|
|
4962
4911
|
children: [
|
|
4963
4912
|
/* @__PURE__ */ jsx(EditorToolbar, { id, isSimple: simple }),
|
|
4964
|
-
|
|
4965
|
-
ReactQuill,
|
|
4966
|
-
{
|
|
4967
|
-
value,
|
|
4968
|
-
onChange,
|
|
4969
|
-
modules,
|
|
4970
|
-
formats,
|
|
4971
|
-
placeholder: "Write something awesome...",
|
|
4972
|
-
...other
|
|
4973
|
-
}
|
|
4974
|
-
)
|
|
4913
|
+
"<ReactQuill"
|
|
4975
4914
|
]
|
|
4976
4915
|
}
|
|
4977
4916
|
),
|
package/dist/style.css
CHANGED
|
@@ -944,4 +944,3 @@
|
|
|
944
944
|
border: 1px solid #ccc;
|
|
945
945
|
}
|
|
946
946
|
[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:' ';display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:'';background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
947
|
-
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#23241f;color:#f8f8f2}.hljs-subst,.hljs-tag{color:#f8f8f2}.hljs-emphasis,.hljs-strong{color:#a8a8a2}.hljs-bullet,.hljs-link,.hljs-literal,.hljs-number,.hljs-quote,.hljs-regexp{color:#ae81ff}.hljs-code,.hljs-section,.hljs-selector-class,.hljs-title{color:#a6e22e}.hljs-strong{font-weight:700}.hljs-emphasis{font-style:italic}.hljs-attr,.hljs-keyword,.hljs-name,.hljs-selector-tag{color:#f92672}.hljs-attribute,.hljs-symbol{color:#66d9ef}.hljs-class .hljs-title,.hljs-params,.hljs-title.class_{color:#f8f8f2}.hljs-addition,.hljs-built_in,.hljs-selector-attr,.hljs-selector-id,.hljs-selector-pseudo,.hljs-string,.hljs-template-variable,.hljs-type,.hljs-variable{color:#e6db74}.hljs-comment,.hljs-deletion,.hljs-meta{color:#75715e}
|