oolib 2.68.1 → 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.
@@ -60,6 +60,7 @@ var styled_1 = require("./styled");
60
60
  var useResizeTableColumns_1 = require("./useResizeTableColumns");
61
61
  var convertColHeaderConfigToRowData_1 = require("./utils/convertColHeaderConfigToRowData");
62
62
  var prepInitValueFromConfigIfNoValue_1 = require("./utils/prepInitValueFromConfigIfNoValue");
63
+ var lodash_1 = require("lodash");
63
64
  var greyColor100 = themes_1.colors.greyColor100;
64
65
  /*pending:
65
66
  - first test whatever is done on okf
@@ -78,16 +79,20 @@ function SimpleTable(_a) {
78
79
  } : _b, _value = _a.value, onChange = _a.onChange, _c = _a.defaultColWidth, defaultColWidth = _c === void 0 ? 200 : _c;
79
80
  var props = arguments[0];
80
81
  var theme = (0, styled_components_1.useTheme)();
81
- var _d = theme || {}, _RichTextEditor = _d.RichTextEditor, convertToRichText = _d.convertToRichText;
82
+ var _d = theme || {}, RichTextEditor = _d.RichTextEditor /*: _RichTextEditor*/, convertToRichText = _d.convertToRichText;
82
83
  //memoizing cuz we dont want all cell rtes to render everytime one cell changes
83
- var RichTextEditor = (0, react_1.useMemo)(function () {
84
- var checkMemoFn = function (prevProps, currentProps) {
85
- var prevVal = prevProps.value;
86
- var currentVal = currentProps.value;
87
- return isEqual(prevVal, currentVal);
88
- };
89
- return _RichTextEditor && react_1.default.memo(_RichTextEditor, checkMemoFn);
90
- }, []);
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
+ // },[])
91
96
  var _e = (0, react_1.useMemo)(function () { return (0, prepInitValueFromConfigIfNoValue_1.prepInitValueFromConfigIfNoValue)({
92
97
  _value: _value,
93
98
  config: config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.68.1",
3
+ "version": "2.68.3",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",