@bigbinary/neeto-image-uploader-frontend 2.2.3 → 2.3.1
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/AssetLibrary.js +4 -4
- package/dist/AssetLibrary.js.map +1 -1
- package/dist/BasicImageUploader.js +3 -3
- package/dist/ImageUploader.js +38 -18
- package/dist/ImageUploader.js.map +1 -1
- package/dist/{ImageWithFallback-6087af1a.js → ImageWithFallback-28c61349.js} +6 -4
- package/dist/ImageWithFallback-28c61349.js.map +1 -0
- package/dist/{ImageWithFallback-857a085b.js → ImageWithFallback-85563e43.js} +6 -4
- package/dist/ImageWithFallback-85563e43.js.map +1 -0
- package/dist/cjs/AssetLibrary.js +4 -4
- package/dist/cjs/AssetLibrary.js.map +1 -1
- package/dist/cjs/BasicImageUploader.js +3 -3
- package/dist/cjs/ImageUploader.js +37 -17
- package/dist/cjs/ImageUploader.js.map +1 -1
- package/dist/cjs/hooks.js +3 -3
- package/dist/cjs/index.js +5 -5
- package/dist/hooks.js +3 -3
- package/dist/{index-7f064861.js → index-69559a7a.js} +3 -1
- package/dist/index-69559a7a.js.map +1 -0
- package/dist/{index-b9963255.js → index-c128d963.js} +3 -2
- package/dist/index-c128d963.js.map +1 -0
- package/dist/index.js +5 -5
- package/dist/{useImageUploader-36a03350.js → useImageUploader-1dec0b7c.js} +72 -46
- package/dist/useImageUploader-1dec0b7c.js.map +1 -0
- package/dist/{useImageUploader-550a5fdc.js → useImageUploader-6fb55946.js} +72 -46
- package/dist/useImageUploader-6fb55946.js.map +1 -0
- package/dist/{useProfileImageUpload-f0088c2a.js → useProfileImageUpload-7035b8b4.js} +4 -4
- package/dist/useProfileImageUpload-7035b8b4.js.map +1 -0
- package/dist/{useProfileImageUpload-837e76b8.js → useProfileImageUpload-eeeed267.js} +4 -4
- package/dist/useProfileImageUpload-eeeed267.js.map +1 -0
- package/dist/{utils-fb9d4ca1.js → utils-b5f13248.js} +2 -2
- package/dist/{utils-fb9d4ca1.js.map → utils-b5f13248.js.map} +1 -1
- package/dist/{utils-0360fcc5.js → utils-fc138f60.js} +2 -2
- package/dist/{utils-0360fcc5.js.map → utils-fc138f60.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ImageWithFallback-6087af1a.js.map +0 -1
- package/dist/ImageWithFallback-857a085b.js.map +0 -1
- package/dist/index-7f064861.js.map +0 -1
- package/dist/index-b9963255.js.map +0 -1
- package/dist/useImageUploader-36a03350.js.map +0 -1
- package/dist/useImageUploader-550a5fdc.js.map +0 -1
- package/dist/useProfileImageUpload-837e76b8.js.map +0 -1
- package/dist/useProfileImageUpload-f0088c2a.js.map +0 -1
package/dist/AssetLibrary.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OPTIONS, i as isNilOrEmpty, D as DEFAULT_CROP_CONFIG, a as isItemsCenter, o as onImageLoaded, g as getCroppedImageURL, b as getCropValues, I as IMAGES_PER_PAGE, c as INFINITE_SCROLLER_SIZES, d as INFINITE_SCROLLER_STYLE, T as TABS, A as ASSETS_DESTROY_URL, e as ASSETS_FETCH_URL, U as UNSPLASH_DEFAULT_NAME, f as UNSPLASH_DEFAULT_REQUEST_CONFIG, h as DEFAULT_UPLOAD_CONFIG, u as useUploadDropzone, _ as _objectWithoutProperties$2, j as UNSPLASH_URL } from './utils-
|
|
2
|
-
import { _ as _defineProperty$1, a as _slicedToArray$1, I as IS_DEVELOPMENT_OR_HEROKU_ENV, b as ImageKit } from './index-
|
|
1
|
+
import { O as OPTIONS, i as isNilOrEmpty, D as DEFAULT_CROP_CONFIG, a as isItemsCenter, o as onImageLoaded, g as getCroppedImageURL, b as getCropValues, I as IMAGES_PER_PAGE, c as INFINITE_SCROLLER_SIZES, d as INFINITE_SCROLLER_STYLE, T as TABS, A as ASSETS_DESTROY_URL, e as ASSETS_FETCH_URL, U as UNSPLASH_DEFAULT_NAME, f as UNSPLASH_DEFAULT_REQUEST_CONFIG, h as DEFAULT_UPLOAD_CONFIG, u as useUploadDropzone, _ as _objectWithoutProperties$2, j as UNSPLASH_URL } from './utils-fc138f60.js';
|
|
2
|
+
import { _ as _defineProperty$1, a as _slicedToArray$1, I as IS_DEVELOPMENT_OR_HEROKU_ENV, b as ImageKit } from './index-c128d963.js';
|
|
3
3
|
import require$$0, { useState, useEffect, useRef, createElement, useMemo, memo, Fragment as Fragment$1, useCallback } from 'react';
|
|
4
4
|
import { findBy, isPresent, noop, nullSafe, removeBy, isNotEmpty, findById, toLabelAndValue, keysToSnakeCase, filterBy, slugify, _findBy, replaceById, notEquals, keysToCamelCase } from '@bigbinary/neeto-cist';
|
|
5
5
|
import NeetoUIModal from '@bigbinary/neetoui/Modal';
|
|
@@ -10,7 +10,7 @@ import Toastr from '@bigbinary/neetoui/Toastr';
|
|
|
10
10
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
11
11
|
import { mergeLeft, mergeRight, identity, clamp, curry, prop, pluck, filter, includes, append, isEmpty, identical, isNil, assoc, equals, groupBy, isNotNil, keys, pick, map, not, move, head, reverse, is, modify, __, trim, toLower, concat } from 'ramda';
|
|
12
12
|
import { useTranslation, Trans } from 'react-i18next';
|
|
13
|
-
import { c as commonjsGlobal$1, g as getDefaultExportFromCjs$1, Q as QUERY_KEYS$1, A as ASSETS_STALE_TIME, a as getAugmentedNamespace, U as UNSPLASH_STALE_TIME, d as directUploadsApi, _ as _asyncToGenerator, b as _regeneratorRuntime, u as useCreateBlob, e as useImageUploader } from './useImageUploader-
|
|
13
|
+
import { c as commonjsGlobal$1, g as getDefaultExportFromCjs$1, Q as QUERY_KEYS$1, A as ASSETS_STALE_TIME, a as getAugmentedNamespace, U as UNSPLASH_STALE_TIME, d as directUploadsApi, _ as _asyncToGenerator, b as _regeneratorRuntime, u as useCreateBlob, e as useImageUploader, f as generateASCIIFileName } from './useImageUploader-1dec0b7c.js';
|
|
14
14
|
import classnames from 'classnames';
|
|
15
15
|
import LeftArrow from '@bigbinary/neeto-icons/LeftArrow';
|
|
16
16
|
import { useMutation, useInfiniteQuery, useQueryClient, QueryClient, QueryCache, useQuery, QueryClientProvider, keepPreviousData } from '@tanstack/react-query';
|
|
@@ -10092,7 +10092,7 @@ var Modal = function Modal(_ref) {
|
|
|
10092
10092
|
});
|
|
10093
10093
|
} else {
|
|
10094
10094
|
var payload = {
|
|
10095
|
-
filename: editedImage.name,
|
|
10095
|
+
filename: generateASCIIFileName(editedImage.name),
|
|
10096
10096
|
byte_size: editedImage.size,
|
|
10097
10097
|
content_type: editedImage.fileType,
|
|
10098
10098
|
checksum: editedImage.fileId,
|