@bigbinary/neeto-image-uploader-frontend 2.0.1 → 2.0.2
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/dist/index.cjs.js +15 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +17 -15
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import require$$0, { useState, useEffect, useRef, createElement } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { noop, keysToCamelCase, findBy, isPresent } from '@bigbinary/neeto-cist';
|
|
4
|
-
import
|
|
4
|
+
import Delete from '@bigbinary/neeto-icons/Delete';
|
|
5
5
|
import Button from '@bigbinary/neetoui/Button';
|
|
6
6
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
7
7
|
import { pipe, values, flatten, map, toUpper, join, equals, isNil, isEmpty, mergeRight, mergeLeft, identity, prop, mergeDeepRight } from 'ramda';
|
|
@@ -11,6 +11,7 @@ import { useDropzone } from 'react-dropzone';
|
|
|
11
11
|
import i18next, { t as t$1 } from 'i18next';
|
|
12
12
|
import Toastr from '@bigbinary/neetoui/Toastr';
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
|
+
import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
|
|
14
15
|
import Dropdown from '@bigbinary/neetoui/Dropdown';
|
|
15
16
|
import NeetoUIModal from '@bigbinary/neetoui/Modal';
|
|
16
17
|
import Tab from '@bigbinary/neetoui/Tab';
|
|
@@ -19,6 +20,7 @@ import { useMutation, useInfiniteQuery, keepPreviousData } from '@tanstack/react
|
|
|
19
20
|
import { useMutationWithInvalidation, useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
20
21
|
import axios from 'axios';
|
|
21
22
|
import { DirectUpload } from '@rails/activestorage';
|
|
23
|
+
import LeftArrow from '@bigbinary/neeto-icons/LeftArrow';
|
|
22
24
|
import { withEventTargetValue } from '@bigbinary/neeto-commons-frontend/utils';
|
|
23
25
|
import Input from '@bigbinary/neetoui/Input';
|
|
24
26
|
import Switch from '@bigbinary/neetoui/Switch';
|
|
@@ -278,9 +280,9 @@ var ImageDirectUpload = function ImageDirectUpload(_ref) {
|
|
|
278
280
|
children: /*#__PURE__*/jsx(Trans, {
|
|
279
281
|
i18nKey: "neetoImageUploader.imageUpload.dragAndDropOrBrowseFile",
|
|
280
282
|
components: {
|
|
281
|
-
span: /*#__PURE__*/jsx(
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
span: /*#__PURE__*/jsx(Button, {
|
|
284
|
+
"data-cy": "neeto-image-uploader-browse-text",
|
|
285
|
+
style: "link"
|
|
284
286
|
})
|
|
285
287
|
}
|
|
286
288
|
})
|
|
@@ -294,9 +296,9 @@ var ImageDirectUpload = function ImageDirectUpload(_ref) {
|
|
|
294
296
|
children: /*#__PURE__*/jsx(Trans, {
|
|
295
297
|
i18nKey: "neetoImageUploader.imageUpload.selectImagefromImageLibrary",
|
|
296
298
|
components: {
|
|
297
|
-
span: /*#__PURE__*/jsx(
|
|
298
|
-
|
|
299
|
-
|
|
299
|
+
span: /*#__PURE__*/jsx(Button, {
|
|
300
|
+
"data-cy": "open-asset-library-button",
|
|
301
|
+
style: "link"
|
|
300
302
|
})
|
|
301
303
|
}
|
|
302
304
|
})
|