@reykjavik/hanna-react 0.10.93 → 0.10.94

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/CHANGELOG.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  - ... <!-- Add new lines here. -->
6
6
 
7
- ## 0.10.93
7
+ ## 0.10.93 – 0.10.94
8
8
 
9
9
  _2023-07-06_
10
10
 
@@ -19,6 +19,7 @@ _2023-07-06_
19
19
  - feat: Support passing `options` as simple string array
20
20
  - feat: Make `name` prop optional for groups
21
21
  - fix: Handling of `disabled` as array of indexes
22
+ - fix: Runtime import errors in `FileInput` in ESM mode
22
23
 
23
24
  ## 0.10.92
24
25
 
@@ -1,3 +1,3 @@
1
- import * as reactDropzonePkg from 'react-dropzone';
2
- export declare const ReactDropzone: typeof reactDropzonePkg.default;
3
- export declare const useDropzone: typeof reactDropzonePkg.useDropzone;
1
+ import * as _pkg from 'react-dropzone';
2
+ export declare const ReactDropzone: typeof _pkg.default;
3
+ export declare const useDropzone: typeof _pkg.useDropzone;
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.useDropzone = exports.ReactDropzone = void 0;
5
5
  const tslib_1 = require("tslib");
6
- const reactDropzonePkg = tslib_1.__importStar(require("react-dropzone"));
7
- const _default = reactDropzonePkg.default;
6
+ const _pkg = tslib_1.__importStar(require("react-dropzone"));
8
7
  // This defensive code is required to get around the fact that react-dropzone
9
8
  // mixes default and named exports.
10
9
  // Depending whether this module is run as ESM or CJS, then `_default` may be
11
10
  // either the actual default export or an object with a default property.
12
11
  // Rejoice in the woeful borderlands of modern ESM and legacy CJS interop.
13
- exports.ReactDropzone = 'default' in _default ? _default.default : _default;
12
+ const reactDropzonePkg = 'default' in _pkg.default ? _pkg.default : _pkg;
13
+ exports.ReactDropzone = reactDropzonePkg.default;
14
14
  exports.useDropzone = reactDropzonePkg.useDropzone;
@@ -1,3 +1,3 @@
1
- import * as reactDropzonePkg from 'react-dropzone';
2
- export declare const ReactDropzone: typeof reactDropzonePkg.default;
3
- export declare const useDropzone: typeof reactDropzonePkg.useDropzone;
1
+ import * as _pkg from 'react-dropzone';
2
+ export declare const ReactDropzone: typeof _pkg.default;
3
+ export declare const useDropzone: typeof _pkg.useDropzone;
@@ -1,10 +1,10 @@
1
1
  // See <file://./_WAT.md> for info on why this file exists
2
- import * as reactDropzonePkg from 'react-dropzone';
3
- const _default = reactDropzonePkg.default;
2
+ import * as _pkg from 'react-dropzone';
4
3
  // This defensive code is required to get around the fact that react-dropzone
5
4
  // mixes default and named exports.
6
5
  // Depending whether this module is run as ESM or CJS, then `_default` may be
7
6
  // either the actual default export or an object with a default property.
8
7
  // Rejoice in the woeful borderlands of modern ESM and legacy CJS interop.
9
- export const ReactDropzone = 'default' in _default ? _default.default : _default;
8
+ const reactDropzonePkg = 'default' in _pkg.default ? _pkg.default : _pkg;
9
+ export const ReactDropzone = reactDropzonePkg.default;
10
10
  export const useDropzone = reactDropzonePkg.useDropzone;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/hanna-react",
3
- "version": "0.10.93",
3
+ "version": "0.10.94",
4
4
  "author": "Reykjavík (http://www.reykjavik.is)",
5
5
  "contributors": [
6
6
  "Hugsmiðjan ehf (http://www.hugsmidjan.is)",