@codella-software/react 2.2.1 → 2.2.2
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react/src/filters-and-sort/useFiltersAndSort.d.ts +1 -1
- package/dist/react/src/filters-and-sort/useFiltersAndSort.d.ts.map +1 -1
- package/dist/react/src/form-builder/useFormBuilder.d.ts +1 -1
- package/dist/react/src/form-builder/useFormBuilder.d.ts.map +1 -1
- package/dist/react/src/rich-content/useRichContent.d.ts.map +1 -1
- package/dist/react/src/table-builder/useTableService.d.ts +1 -1
- package/dist/react/src/table-builder/useTableService.d.ts.map +1 -1
- package/dist/react/src/useFiltersAndSort.d.ts +1 -1
- package/dist/react/src/useFiltersAndSort.d.ts.map +1 -1
- package/dist/react/src/useFormBuilder.d.ts +1 -1
- package/dist/react/src/useFormBuilder.d.ts.map +1 -1
- package/dist/react/src/useTableService.d.ts +1 -1
- package/dist/react/src/useTableService.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const react = require("react");
|
|
4
|
-
const
|
|
4
|
+
const utils = require("@codella-software/utils");
|
|
5
5
|
const jsxRuntime = require("react/jsx-runtime");
|
|
6
6
|
const rxjs = require("rxjs");
|
|
7
7
|
const operators = require("rxjs/operators");
|
|
@@ -2410,7 +2410,7 @@ function useRichContent(options = {}) {
|
|
|
2410
2410
|
function useTableService(options) {
|
|
2411
2411
|
const { config: config2, data } = options;
|
|
2412
2412
|
const builder = react.useMemo(() => {
|
|
2413
|
-
const tb = new
|
|
2413
|
+
const tb = new utils.TableBuilder(config2);
|
|
2414
2414
|
tb.setData(data);
|
|
2415
2415
|
return tb;
|
|
2416
2416
|
}, [config2]);
|