oolib 2.68.2 → 2.68.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.
|
@@ -79,16 +79,20 @@ function SimpleTable(_a) {
|
|
|
79
79
|
} : _b, _value = _a.value, onChange = _a.onChange, _c = _a.defaultColWidth, defaultColWidth = _c === void 0 ? 200 : _c;
|
|
80
80
|
var props = arguments[0];
|
|
81
81
|
var theme = (0, styled_components_1.useTheme)();
|
|
82
|
-
var _d = theme || {},
|
|
82
|
+
var _d = theme || {}, RichTextEditor = _d.RichTextEditor /*: _RichTextEditor*/, convertToRichText = _d.convertToRichText;
|
|
83
83
|
//memoizing cuz we dont want all cell rtes to render everytime one cell changes
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
84
|
+
// const RichTextEditor = useMemo(() => {
|
|
85
|
+
// const checkMemoFn = (prevProps, currentProps) => {
|
|
86
|
+
// const {
|
|
87
|
+
// value: prevVal,
|
|
88
|
+
// } = prevProps
|
|
89
|
+
// const {
|
|
90
|
+
// value: currentVal
|
|
91
|
+
// } = currentProps
|
|
92
|
+
// return isEqual(prevVal, currentVal)
|
|
93
|
+
// }
|
|
94
|
+
// return _RichTextEditor && React.memo(_RichTextEditor, checkMemoFn)
|
|
95
|
+
// },[])
|
|
92
96
|
var _e = (0, react_1.useMemo)(function () { return (0, prepInitValueFromConfigIfNoValue_1.prepInitValueFromConfigIfNoValue)({
|
|
93
97
|
_value: _value,
|
|
94
98
|
config: config,
|