@snack-uikit/table 0.39.5 → 0.39.6-preview-4e8bfebd.0

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/README.md CHANGED
@@ -169,7 +169,6 @@ const columnDefinitions: ColumnDefinition<TableData>[] = [
169
169
  | name | type | default value | description |
170
170
  |------|------|---------------|-------------|
171
171
  | filter | `FiltersState` | - | |
172
- | ordering | `FieldSort[]` | - | |
173
172
  | search | `string` | - | |
174
173
  | pagination | `PaginationState \| PaginationParams` | - | |
175
174
  | sorting | `SortingState` | - | |
@@ -1,4 +1,4 @@
1
- import debounce from 'lodash.debounce';
1
+ import { debounce } from 'lodash';
2
2
  type ChangeHandler = (newValue: string) => void;
3
3
  type SearchHandler = (newValue: string, onChange: ChangeHandler) => void;
4
4
  type OnSearchDebouncedType = ReturnType<typeof debounce<SearchHandler>>;
@@ -1,16 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
4
- return mod && mod.__esModule ? mod : {
5
- "default": mod
6
- };
7
- };
8
3
  Object.defineProperty(exports, "__esModule", {
9
4
  value: true
10
5
  });
11
6
  exports.onSearchDebounced = void 0;
12
- const lodash_debounce_1 = __importDefault(require("lodash.debounce"));
7
+ const lodash_1 = require("lodash");
13
8
  const constants_1 = require("./constants");
14
- exports.onSearchDebounced = (0, lodash_debounce_1.default)((newValue, onChange) => {
9
+ exports.onSearchDebounced = (0, lodash_1.debounce)((newValue, onChange) => {
15
10
  onChange(newValue);
16
11
  }, constants_1.SEARCH_DELAY);
@@ -1,4 +1,4 @@
1
- import debounce from 'lodash.debounce';
1
+ import { debounce } from 'lodash';
2
2
  type ChangeHandler = (newValue: string) => void;
3
3
  type SearchHandler = (newValue: string, onChange: ChangeHandler) => void;
4
4
  type OnSearchDebouncedType = ReturnType<typeof debounce<SearchHandler>>;
@@ -1,4 +1,4 @@
1
- import debounce from 'lodash.debounce';
1
+ import { debounce } from 'lodash';
2
2
  import { SEARCH_DELAY } from './constants';
3
3
  export const onSearchDebounced = debounce((newValue, onChange) => {
4
4
  onChange(newValue);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Table",
7
- "version": "0.39.5",
7
+ "version": "0.39.6-preview-4e8bfebd.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -42,28 +42,28 @@
42
42
  "@dnd-kit/sortable": "10.0.0",
43
43
  "@dnd-kit/utilities": "3.2.2",
44
44
  "@snack-uikit/button": "0.19.19",
45
- "@snack-uikit/chips": "0.30.2",
46
- "@snack-uikit/icons": "0.27.7",
47
- "@snack-uikit/info-block": "0.6.43",
48
- "@snack-uikit/list": "0.33.3",
49
- "@snack-uikit/pagination": "0.10.26",
45
+ "@snack-uikit/chips": "0.30.3-preview-4e8bfebd.0",
46
+ "@snack-uikit/icons": "0.27.8-preview-4e8bfebd.0",
47
+ "@snack-uikit/info-block": "0.6.44-preview-4e8bfebd.0",
48
+ "@snack-uikit/list": "0.33.4-preview-4e8bfebd.0",
49
+ "@snack-uikit/pagination": "0.10.27-preview-4e8bfebd.0",
50
50
  "@snack-uikit/scroll": "0.11.0",
51
51
  "@snack-uikit/skeleton": "0.6.11",
52
- "@snack-uikit/toggles": "0.13.27",
53
- "@snack-uikit/toolbar": "0.14.29",
54
- "@snack-uikit/truncate-string": "0.7.14",
52
+ "@snack-uikit/toggles": "0.13.28-preview-4e8bfebd.0",
53
+ "@snack-uikit/toolbar": "0.14.30-preview-4e8bfebd.0",
54
+ "@snack-uikit/truncate-string": "0.7.15-preview-4e8bfebd.0",
55
55
  "@snack-uikit/typography": "0.8.13",
56
56
  "@snack-uikit/utils": "4.0.2",
57
57
  "@tanstack/match-sorter-utils": "8.11.8",
58
58
  "@tanstack/react-table": "8.12.0",
59
59
  "classnames": "2.5.1",
60
60
  "copy-to-clipboard": "3.3.3",
61
- "lodash.debounce": "4.0.8",
61
+ "lodash": "4.18.1",
62
62
  "uncontrollable": "8.0.4",
63
63
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@snack-uikit/locale": "*"
67
67
  },
68
- "gitHead": "864821fceaa6bbb61080166d14f1682fa16e3f85"
68
+ "gitHead": "d52534cac02c3b621615686607bfba56762150ac"
69
69
  }
@@ -1,4 +1,4 @@
1
- import debounce from 'lodash.debounce';
1
+ import { debounce } from 'lodash';
2
2
 
3
3
  import { SEARCH_DELAY } from './constants';
4
4