@team-monolith/cds 0.29.2 → 0.29.3
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.
|
@@ -52,11 +52,10 @@ import { useCallback, useRef } from "react";
|
|
|
52
52
|
import TOOLS from "./tools";
|
|
53
53
|
import I18n from "./i18n";
|
|
54
54
|
import Layout from "./Layout";
|
|
55
|
-
import * as Sentry from "@sentry/react";
|
|
56
55
|
/** useForm에서 사용되는 ReactEditorJS 컴포넌트입니다. */
|
|
57
56
|
export function FormEditorJS(props) {
|
|
58
57
|
var _this = this;
|
|
59
|
-
var className = props.className, name = props.name, control = props.control, _a = props.readOnly, readOnly = _a === void 0 ? false : _a;
|
|
58
|
+
var className = props.className, name = props.name, control = props.control, _a = props.readOnly, readOnly = _a === void 0 ? false : _a, onError = props.onError;
|
|
60
59
|
var ReactEditorJS = createReactEditorJS();
|
|
61
60
|
var editorCore = useRef(null);
|
|
62
61
|
var handleInitialize = useCallback(function (instance) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -72,7 +71,7 @@ export function FormEditorJS(props) {
|
|
|
72
71
|
return [3 /*break*/, 3];
|
|
73
72
|
case 2:
|
|
74
73
|
e_1 = _a.sent();
|
|
75
|
-
|
|
74
|
+
onError === null || onError === void 0 ? void 0 : onError(e_1);
|
|
76
75
|
return [3 /*break*/, 3];
|
|
77
76
|
case 3: return [2 /*return*/];
|
|
78
77
|
}
|
|
@@ -48,13 +48,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
49
|
import { useCallback, useEffect, useRef } from "react";
|
|
50
50
|
import { createReactEditorJS } from "react-editor-js";
|
|
51
|
-
import * as Sentry from "@sentry/react";
|
|
52
51
|
import Layout from "./Layout";
|
|
53
52
|
import TOOLS from "./tools";
|
|
54
53
|
import I18n from "./i18n";
|
|
55
54
|
export function ReactEditorJS(props) {
|
|
56
55
|
var _this = this;
|
|
57
|
-
var className = props.className, _a = props.readOnly, readOnly = _a === void 0 ? false : _a, blocks = props.blocks, onChange = props.onChange;
|
|
56
|
+
var className = props.className, _a = props.readOnly, readOnly = _a === void 0 ? false : _a, blocks = props.blocks, onChange = props.onChange, onError = props.onError;
|
|
58
57
|
var ReactEditorJS = createReactEditorJS();
|
|
59
58
|
var editorCore = useRef(null);
|
|
60
59
|
var handleInitialize = useCallback(function (instance) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -70,7 +69,7 @@ export function ReactEditorJS(props) {
|
|
|
70
69
|
return [3 /*break*/, 3];
|
|
71
70
|
case 2:
|
|
72
71
|
e_1 = _a.sent();
|
|
73
|
-
|
|
72
|
+
onError === null || onError === void 0 ? void 0 : onError(e_1);
|
|
74
73
|
return [3 /*break*/, 3];
|
|
75
74
|
case 3: return [2 /*return*/];
|
|
76
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-monolith/cds",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
"@editorjs/underline": "^1.1.0",
|
|
17
17
|
"@emotion/react": "^11.8.2",
|
|
18
18
|
"@emotion/styled": "^11.8.1",
|
|
19
|
-
"@mui/material": "^5.13.6",
|
|
20
|
-
"@sentry/react": "^7.80.1",
|
|
19
|
+
"@mui/material": "^5.13.6",
|
|
21
20
|
"@types/node": "^16.11.26",
|
|
22
21
|
"@types/react": "^17.0.39",
|
|
23
22
|
"@types/react-dom": "^17.0.11",
|