quicksnack 3.29.0 → 3.30.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.
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FormPositioner = void 0;
7
7
  var immer_1 = __importDefault(require("immer"));
8
- var chunk_1 = __importDefault(require("lodash/chunk"));
8
+ var lodash_chunk_1 = __importDefault(require("lodash.chunk"));
9
9
  var Grid_1 = require("./Grid");
10
10
  var assertGridIsValid_1 = require("./assertGridIsValid");
11
11
  var responsiveProps_1 = require("../../../responsiveness/responsiveProps");
@@ -76,7 +76,7 @@ var FormPositioner = /** @class */ (function () {
76
76
  */
77
77
  FormPositioner.prototype.setVertical = function (breakPoint, numColumns, columns) {
78
78
  if (numColumns === void 0) { numColumns = 1; }
79
- return this.setGrid(breakPoint, columns !== null && columns !== void 0 ? columns : (0, equalColumns_1.equalColumns)(numColumns, false), (0, chunk_1.default)(Object.keys(this.fields), numColumns));
79
+ return this.setGrid(breakPoint, columns !== null && columns !== void 0 ? columns : (0, equalColumns_1.equalColumns)(numColumns, false), (0, lodash_chunk_1.default)(Object.keys(this.fields), numColumns));
80
80
  };
81
81
  /**
82
82
  * Aligns all input-fields horizontally.
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.assertGridIsValid = void 0;
7
- var difference_1 = __importDefault(require("lodash/difference"));
7
+ var lodash_difference_1 = __importDefault(require("lodash.difference"));
8
8
  /**
9
9
  * Makes sure all values in the grid have a rectangular shape.
10
10
  * We don't support Tetris types.
@@ -13,7 +13,7 @@ var assertGridIsValid = function (availableKeys, grid) {
13
13
  var distinctValues = grid.getDistinctValues();
14
14
  // Check if all `availableKeys` have a place in the given grid
15
15
  if (distinctValues.length < availableKeys.length) {
16
- throw new Error("Not all given fields are present in the grid. Please add these fields ".concat((0, difference_1.default)(distinctValues, availableKeys).map(function (_) { return "\"".concat(_, "\""); }).join(", ")));
16
+ throw new Error("Not all given fields are present in the grid. Please add these fields ".concat((0, lodash_difference_1.default)(distinctValues, availableKeys).map(function (_) { return "\"".concat(_, "\""); }).join(", ")));
17
17
  }
18
18
  // We don't support tetris-shaped values:
19
19
  // E.g:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quicksnack",
3
3
  "description": "Quickly create beautiful admin layouts using react",
4
- "version": "3.29.0",
4
+ "version": "3.30.0",
5
5
  "private": false,
6
6
  "files": [
7
7
  "dist/**"
@@ -70,7 +70,8 @@
70
70
  "@testing-library/react": "13.2.0",
71
71
  "@testing-library/user-event": "14.2.0",
72
72
  "@types/jest": "27.5.1",
73
- "@types/lodash": "4.14.182",
73
+ "@types/lodash.chunk": "^4.2.7",
74
+ "@types/lodash.difference": "^4.5.7",
74
75
  "@types/node": "16.11.36",
75
76
  "@types/react": "18.0.9",
76
77
  "@types/react-dom": "18.0.5",