@bigbinary/neeto-commons-frontend 2.0.54 → 2.0.56

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
@@ -50,28 +50,14 @@ Category
50
50
  - [useDisplayErrorPage](./docs/react/hooks.md#usedisplayerrorpage)
51
51
  - [useErrorDisplayStore](./docs/react/hooks.md#useerrordisplaystore)
52
52
  - [useHotKeys](./docs/react/hooks.md#useHotKeys)
53
- - [PrivateRoute](./docs/react/components.md#privateroute)
54
- - [HoneybadgerErrorBoundary](./docs/react/components.md#honeybadgererrorboundary)
55
- - [Sidebar](./docs/react/components.md#sidebar)
56
- - [Error page](./docs/react/components.md#error-page)
57
- - [Login page](./docs/react/components.md#login-page)
58
- - [DateFormat/TimeFormat](./docs/react/components.md#dateformattimeformat)
59
- - [Columns](./docs/react/components.md#columns)
60
- - [NeetoWidget.EmbedCode](./docs/react/components.md#neetowidgetembedcode)
61
- - [Schedule](./docs/react/components.md#schedule)
62
- - [CustomDomain](./docs/react/components.md#customdomain)
63
- - [BrowserSupport](./docs/react/components.md#browsersupport)
64
- - [IpRestriction](./docs/react/components.md#iprestriction)
65
- - [PublishBlock](./docs/react/components.md#publishblock)
66
- - [DateRangeFilter](./docs/react/components.md#daterangefilter)
67
- - [KeyboardShortcutsPane](./docs/react/components.md#keyboardshortcutspane)
68
- - [ShareViaLink](./docs/react/components.md#sharevialink)
69
53
  - [withImmutableActions](./docs/react/utils.md#withimmutableactions)
70
54
  - [withTitle](./docs/react/utils.md#withtitle)
71
55
  - [registerBrowserNotifications](./docs/react/utils.md#registerbrowsernotifications)
72
56
  - [destroyBrowserSubscription](./docs/react/utils.md#destroybrowsersubscription)
73
57
  - [handleMetaClick](./docs/react/utils.md#handlemetaclick)
74
58
  - [isMetaKeyPressed](./docs/react/utils.md#ismetakeypressed)
59
+ - [PrivateRoute](./docs/react/components.md#privateroute)
60
+ - [HoneybadgerErrorBoundary](./docs/react/components.md#honeybadgererrorboundary)
75
61
 
76
62
  </td>
77
63
  <td style="vertical-align: top;">
@@ -20,5 +20,11 @@ module.exports = {
20
20
  "no-redeclare": "off",
21
21
  },
22
22
  },
23
+ {
24
+ files: ["**/*.spec.js", "**/*.spec.jsx"],
25
+ env: {
26
+ jest: true,
27
+ },
28
+ },
23
29
  ],
24
30
  };
@@ -3,7 +3,7 @@ module.exports = {
3
3
  purge: {
4
4
  enabled: process.env.NODE_ENV === "production",
5
5
  content: [
6
- "./{src,example}/**/*.{js,jsx}",
6
+ "./{src,example,stories}/**/*.{js,jsx}",
7
7
  "./node_modules/@bigbinary/**/*.js",
8
8
  ],
9
9
  defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [],
@@ -11,13 +11,13 @@ 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",
14
+ let devtool = "hidden-source-map",
15
15
  mode = "production";
16
16
  if (process.env.RAILS_ENV === "test") {
17
17
  devtool = false;
18
18
  mode = "none";
19
19
  } else if (process.env.RAILS_ENV === "development") {
20
- devtool = "eval";
20
+ devtool = "eval-cheap-module-source-map";
21
21
  mode = "development";
22
22
  }
23
23
 
@@ -40,4 +40,9 @@ module.exports = [
40
40
  fullySpecified: false, // allows webpack to ignore some package rules as the Strict EcmaScript Module mode.
41
41
  },
42
42
  },
43
+ {
44
+ test: /\.js$/,
45
+ enforce: "pre",
46
+ use: ["source-map-loader"],
47
+ },
43
48
  ];