@bigbinary/neeto-commons-frontend 2.0.51 → 2.0.52

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.
@@ -11,11 +11,18 @@ const rules = require("./rules");
11
11
  const dotEnvFileSuffix =
12
12
  process.env.NODE_ENV === "production" ? "" : `.${process.env.NODE_ENV}`;
13
13
 
14
- let devtool = "source-map";
15
- if (process.env.RAILS_ENV === "test") devtool = undefined;
16
- else if (process.env.RAILS_ENV === "development") devtool = "eval";
14
+ let devtool = "source-map",
15
+ mode = "production";
16
+ if (process.env.RAILS_ENV === "test") {
17
+ devtool = false;
18
+ mode = "none";
19
+ } else if (process.env.RAILS_ENV === "development") {
20
+ devtool = "eval";
21
+ mode = "development";
22
+ }
17
23
 
18
24
  const commonOptions = {
25
+ mode,
19
26
  infrastructureLogging: { level: "warn" },
20
27
  devtool,
21
28
  resolve,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "2.0.51",
3
+ "version": "2.0.52",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -4484,9 +4484,9 @@ var DateRangeFilter = function DateRangeFilter(_ref) {
4484
4484
  autoFocus: true,
4485
4485
  className: "ml-3 w-full",
4486
4486
  dateFormat: initializers.globalProps === null || initializers.globalProps === void 0 ? void 0 : (_globalProps$user = initializers.globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.dateFormat,
4487
- defaultValue: [dayjs__default["default"](startDate), dayjs__default["default"](endDate)],
4488
4487
  picker: "date",
4489
4488
  type: "range",
4489
+ defaultValue: [startDate ? dayjs__default["default"](startDate) : null, endDate ? dayjs__default["default"](endDate) : null],
4490
4490
  onChange: function onChange(_, _ref2) {
4491
4491
  var _ref3 = _slicedToArray(_ref2, 2),
4492
4492
  startDate = _ref3[0],
package/react-utils.js CHANGED
@@ -4447,9 +4447,9 @@ var DateRangeFilter = function DateRangeFilter(_ref) {
4447
4447
  autoFocus: true,
4448
4448
  className: "ml-3 w-full",
4449
4449
  dateFormat: globalProps$1 === null || globalProps$1 === void 0 ? void 0 : (_globalProps$user = globalProps$1.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.dateFormat,
4450
- defaultValue: [dayjs(startDate), dayjs(endDate)],
4451
4450
  picker: "date",
4452
4451
  type: "range",
4452
+ defaultValue: [startDate ? dayjs(startDate) : null, endDate ? dayjs(endDate) : null],
4453
4453
  onChange: function onChange(_, _ref2) {
4454
4454
  var _ref3 = _slicedToArray(_ref2, 2),
4455
4455
  startDate = _ref3[0],