@akemona-org/strapi-plugin-upload 3.7.2 → 3.7.5
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/admin/src/components/BrowseAssets/index.js +1 -1
- package/admin/src/components/Card/index.js +1 -1
- package/admin/src/components/CardBorder/index.js +1 -1
- package/admin/src/components/CardControl/Wrapper.js +1 -1
- package/admin/src/components/CardControl/index.js +1 -1
- package/admin/src/components/CheckControl/index.js +1 -1
- package/admin/src/components/DropdownButton/index.js +1 -1
- package/admin/src/components/DropdownSection/index.js +1 -1
- package/admin/src/components/Duration/index.js +1 -1
- package/admin/src/components/EditForm/FileDetailsBox.js +1 -1
- package/admin/src/components/EditForm/FileDetailsBoxWrapper.js +1 -1
- package/admin/src/components/EditForm/FileWrapper.js +1 -1
- package/admin/src/components/EditForm/index.js +1 -1
- package/admin/src/components/FileIcon/Wrapper.js +1 -1
- package/admin/src/components/FiltersList/index.js +1 -1
- package/admin/src/components/FiltersList/utils/formatFilter.js +1 -1
- package/admin/src/components/FiltersPicker/FiltersCard/index.js +1 -1
- package/admin/src/components/FiltersPicker/FiltersCard/reducer.js +1 -1
- package/admin/src/components/FiltersPicker/FiltersCard/utils/filtersForm.js +1 -1
- package/admin/src/components/FiltersPicker/index.js +1 -1
- package/admin/src/components/InfiniteLoadingIndicator/Wrapper.js +1 -1
- package/admin/src/components/InfiniteLoadingIndicator/index.js +1 -1
- package/admin/src/components/InputFileModal/Label.js +1 -1
- package/admin/src/components/InputFileModal/index.js +1 -1
- package/admin/src/components/InputMedia/InputFilePreview.js +1 -1
- package/admin/src/components/InputMedia/index.js +1 -1
- package/admin/src/components/InputUploadURL/index.js +1 -1
- package/admin/src/components/List/index.js +1 -1
- package/admin/src/components/ListModal/index.js +1 -1
- package/admin/src/components/ModalHeader/Wrapper.js +1 -1
- package/admin/src/components/ModalHeader/index.js +1 -1
- package/admin/src/components/ModalNavWrapper/Hr.js +1 -1
- package/admin/src/components/ModalSection/index.js +1 -1
- package/admin/src/components/SelectedAssets/DraggableCard.js +1 -1
- package/admin/src/components/SelectedAssets/SortableList.js +1 -1
- package/admin/src/components/SortList/Wrapper.js +1 -1
- package/admin/src/components/SortListItem/Wrapper.js +1 -1
- package/admin/src/components/SortPicker/index.js +1 -1
- package/admin/src/components/Tag/Wrapper.js +1 -1
- package/admin/src/containers/App/index.js +1 -1
- package/admin/src/containers/HomePage/HomePageContent/HomePageList.js +1 -1
- package/admin/src/containers/HomePage/HomePageContent/HomePageSettings.js +6 -1
- package/admin/src/containers/HomePage/HomePageContent/index.js +1 -1
- package/admin/src/containers/HomePage/index.js +1 -1
- package/admin/src/containers/Initializer/index.js +1 -1
- package/admin/src/containers/InputModalStepper/HeaderSearch.js +1 -1
- package/admin/src/containers/InputModalStepper/InputModalStepper.js +7 -1
- package/admin/src/containers/InputModalStepper/Search.js +1 -1
- package/admin/src/containers/InputModalStepper/index.js +1 -1
- package/admin/src/containers/InputModalStepperProvider/index.js +5 -1
- package/admin/src/containers/ModalStepper/index.js +7 -1
- package/admin/src/containers/SettingsPage/index.js +1 -1
- package/admin/src/index.js +1 -1
- package/admin/src/utils/urlYupSchema.js +1 -1
- package/config/functions/bootstrap.js +3 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { isEmpty } from 'lodash';
|
|
3
|
-
import { PageFooter } from 'strapi-helper-plugin';
|
|
3
|
+
import { PageFooter } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { Flex, Padded } from '@buffetjs/core';
|
|
5
5
|
|
|
6
6
|
import { generatePageFromStart, generateStartFromPage } from '../../utils';
|
|
@@ -2,7 +2,7 @@ import React, { memo, useState } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Flex } from '@buffetjs/core';
|
|
4
4
|
import { Tooltip } from '@buffetjs/styles';
|
|
5
|
-
import { getFileExtension, useGlobalContext } from 'strapi-helper-plugin';
|
|
5
|
+
import { getFileExtension, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { formatBytes, getType, getTrad } from '../../utils';
|
|
7
7
|
|
|
8
8
|
import Border from '../CardBorder';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable indent */
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { themePropTypes } from 'strapi-helper-plugin';
|
|
4
|
+
import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
|
|
6
6
|
const Wrapper = styled.div`
|
|
7
7
|
display: flex;
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Pencil, Plus } from '@buffetjs/icons';
|
|
4
4
|
import { Tooltip } from '@buffetjs/styles';
|
|
5
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
5
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
7
|
|
|
8
8
|
import { getTrad } from '../../utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useClickAwayListener } from '@buffetjs/hooks';
|
|
4
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Padded } from '@buffetjs/core';
|
|
6
6
|
|
|
7
7
|
import DoubleFile from '../../icons/DoubleFile';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { themePropTypes } from 'strapi-helper-plugin';
|
|
4
|
+
import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Text } from '@buffetjs/core';
|
|
6
6
|
|
|
7
7
|
const DropdownButton = styled((props) => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { themePropTypes } from 'strapi-helper-plugin';
|
|
3
|
+
import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { Text } from '@buffetjs/core';
|
|
5
5
|
|
|
6
6
|
import formatDuration from './utils/formatDuration';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { dateFormats, dateToUtcTime } from 'strapi-helper-plugin';
|
|
3
|
+
import { dateFormats, dateToUtcTime } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { get } from 'lodash';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { Text, Flex } from '@buffetjs/core';
|
|
@@ -14,7 +14,7 @@ import { get } from 'lodash';
|
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
15
|
import { Row } from 'reactstrap';
|
|
16
16
|
import { Inputs } from '@buffetjs/custom';
|
|
17
|
-
import { useGlobalContext, prefixFileUrlWithBackendUrl } from 'strapi-helper-plugin';
|
|
17
|
+
import { useGlobalContext, prefixFileUrlWithBackendUrl } from '@akemona-org/strapi-helper-plugin';
|
|
18
18
|
import Cropper from 'cropperjs';
|
|
19
19
|
import 'cropperjs/dist/cropper.css';
|
|
20
20
|
import { createFileToDownloadName } from '../../utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
|
-
import { dateFormats, dateToUtcTime } from 'strapi-helper-plugin';
|
|
2
|
+
import { dateFormats, dateToUtcTime } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { formatBytes } from '../../../utils';
|
|
4
4
|
|
|
5
5
|
const formatFilter = (filterToFormat) => {
|
|
@@ -2,7 +2,7 @@ import React, { useReducer } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import { Select } from '@buffetjs/core';
|
|
5
|
-
import { getFilterType, useGlobalContext } from 'strapi-helper-plugin';
|
|
5
|
+
import { getFilterType, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { getTrad, getFileModelTimestamps } from '../../../utils';
|
|
7
7
|
import init from './init';
|
|
8
8
|
import reducer, { initialState } from './reducer';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
|
-
import { FilterIcon } from 'strapi-helper-plugin';
|
|
4
|
+
import { FilterIcon } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Picker } from '@buffetjs/core';
|
|
6
6
|
import FiltersCard from './FiltersCard';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { ClearIcon } from 'strapi-helper-plugin';
|
|
3
|
+
import { ClearIcon } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
import LoadingIndicator from '../LoadingIndicator';
|
|
6
6
|
import IntlText from '../IntlText';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { createRef, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Button } from '@buffetjs/core';
|
|
4
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { getTrad } from '../../utils';
|
|
6
6
|
import Cloud from '../../icons/Cloud';
|
|
7
7
|
import Label from './Label';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { get } from 'lodash';
|
|
4
|
-
import { prefixFileUrlWithBackendUrl } from 'strapi-helper-plugin';
|
|
4
|
+
import { prefixFileUrlWithBackendUrl } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Flex } from '@buffetjs/core';
|
|
6
6
|
|
|
7
7
|
import CardPreview from '../CardPreview';
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
CheckPermissions,
|
|
7
7
|
LabelIconWrapper,
|
|
8
8
|
prefixFileUrlWithBackendUrl,
|
|
9
|
-
} from 'strapi-helper-plugin';
|
|
9
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
import pluginPermissions from '../../permissions';
|
|
11
11
|
import { getTrad, formatFileForEditing } from '../../utils';
|
|
12
12
|
import CardControl from '../CardControl';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Inputs } from '@buffetjs/custom';
|
|
3
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
3
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import Wrapper from './Wrapper';
|
|
6
6
|
import { getTrad } from '../../utils';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Checkbox } from '@buffetjs/core';
|
|
4
4
|
import { get, pick } from 'lodash';
|
|
5
|
-
import { prefixFileUrlWithBackendUrl } from 'strapi-helper-plugin';
|
|
5
|
+
import { prefixFileUrlWithBackendUrl } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { getTrad, getType } from '../../utils';
|
|
7
7
|
import Card from '../Card';
|
|
8
8
|
import CardControlsWrapper from '../CardControlsWrapper';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from '@buffetjs/core';
|
|
3
|
-
import { CheckPermissions } from 'strapi-helper-plugin';
|
|
3
|
+
import { CheckPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import useModalContext from '../../hooks/useModalContext';
|
|
5
5
|
import { getTrad } from '../../utils';
|
|
6
6
|
import pluginPermissions from '../../permissions';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import { ModalHeader as HeaderModal, useGlobalContext } from 'strapi-helper-plugin';
|
|
11
|
+
import { ModalHeader as HeaderModal, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
12
12
|
|
|
13
13
|
const ModalHeader = ({ goBack, headerBreadcrumbs, withBackButton, HeaderComponent }) => {
|
|
14
14
|
const { emitEvent } = useGlobalContext();
|
|
@@ -3,7 +3,7 @@ import { useDrag, useDrop } from 'react-dnd';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { getEmptyImage } from 'react-dnd-html5-backend';
|
|
5
5
|
import { Flex } from '@buffetjs/core';
|
|
6
|
-
import { getFileExtension } from 'strapi-helper-plugin';
|
|
6
|
+
import { getFileExtension } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { formatBytes, getType, ItemTypes } from '../../utils';
|
|
8
8
|
|
|
9
9
|
import Border from '../CardBorder';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Checkbox } from '@buffetjs/core';
|
|
4
4
|
import { get } from 'lodash';
|
|
5
|
-
import { prefixFileUrlWithBackendUrl } from 'strapi-helper-plugin';
|
|
5
|
+
import { prefixFileUrlWithBackendUrl } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import DraggableCard from './DraggableCard';
|
|
7
7
|
import CardControlsWrapper from '../CardControlsWrapper';
|
|
8
8
|
import ListWrapper from '../ListWrapper';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
|
-
import { Carret, useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { Carret, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Picker } from '@buffetjs/core';
|
|
6
6
|
import { getTrad, getFileModelTimestamps } from '../../utils';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Switch, Route, Redirect } from 'react-router-dom';
|
|
3
|
-
import { LoadingIndicatorPage, useUserPermissions } from 'strapi-helper-plugin';
|
|
3
|
+
import { LoadingIndicatorPage, useUserPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import pluginId from '../../pluginId';
|
|
5
5
|
import pluginPermissions from '../../permissions';
|
|
6
6
|
import { AppContext } from '../../contexts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Padded } from '@buffetjs/core';
|
|
4
|
-
import { PageFooter, useQuery } from 'strapi-helper-plugin';
|
|
4
|
+
import { PageFooter, useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { generatePageFromStart, generateStartFromPage } from '../../../utils';
|
|
6
6
|
import { useAppContext } from '../../../hooks';
|
|
7
7
|
import List from '../../../components/List';
|
|
@@ -2,7 +2,12 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useDebounce } from '@buffetjs/hooks';
|
|
4
4
|
import { Padded } from '@buffetjs/core';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
HeaderSearch,
|
|
7
|
+
useGlobalContext,
|
|
8
|
+
useQuery,
|
|
9
|
+
LoadingIndicator,
|
|
10
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
6
11
|
|
|
7
12
|
import { useAppContext } from '../../../hooks';
|
|
8
13
|
import { getTrad, getFileModelTimestamps } from '../../../utils';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { isEmpty } from 'lodash';
|
|
4
4
|
import { useLocation } from 'react-router-dom';
|
|
5
|
-
import { generateFiltersFromSearch, useQuery } from 'strapi-helper-plugin';
|
|
5
|
+
import { generateFiltersFromSearch, useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
|
|
7
7
|
import HomePageSettings from './HomePageSettings';
|
|
8
8
|
import HomePageList from './HomePageList';
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
generateSearchFromFilters,
|
|
11
11
|
request,
|
|
12
12
|
useQuery,
|
|
13
|
-
} from 'strapi-helper-plugin';
|
|
13
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
14
14
|
import { formatFileForEditing, getRequestUrl, getTrad, getFileModelTimestamps } from '../../utils';
|
|
15
15
|
import Container from '../../components/Container';
|
|
16
16
|
import HomePageContent from './HomePageContent';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { useEffect, useRef } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import { request } from 'strapi-helper-plugin';
|
|
9
|
+
import { request } from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
import pluginId from '../../pluginId';
|
|
11
11
|
|
|
12
12
|
const Initializer = ({ updatePlugin }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { HeaderSearch as BaseHeaderSearch } from 'strapi-helper-plugin';
|
|
2
|
+
import { HeaderSearch as BaseHeaderSearch } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
|
|
4
4
|
const HeaderSearch = styled(BaseHeaderSearch)`
|
|
5
5
|
position: relative;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef, memo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Modal,
|
|
5
|
+
ModalFooter,
|
|
6
|
+
PopUpWarning,
|
|
7
|
+
useGlobalContext,
|
|
8
|
+
request,
|
|
9
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
4
10
|
import { Button } from '@buffetjs/core';
|
|
5
11
|
import { get, isEmpty, isEqual } from 'lodash';
|
|
6
12
|
import { getRequestUrl, getTrad } from '../../utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect, memo } from 'react';
|
|
2
2
|
import { useDebounce } from '@buffetjs/hooks';
|
|
3
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
3
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
import getTrad from '../../utils/getTrad';
|
|
6
6
|
import useModalContext from '../../hooks/useModalContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { useUserPermissions } from 'strapi-helper-plugin';
|
|
3
|
+
import { useUserPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { DndProvider } from 'react-dnd';
|
|
5
5
|
import HTML5Backend from 'react-dnd-html5-backend';
|
|
6
6
|
import { omit } from 'lodash';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React, { useReducer, useEffect, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
request,
|
|
5
|
+
generateSearchFromFilters,
|
|
6
|
+
useGlobalContext,
|
|
7
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
4
8
|
import { clone, get, isEmpty, set } from 'lodash';
|
|
5
9
|
import { useIntl } from 'react-intl';
|
|
6
10
|
import axios from 'axios';
|
|
@@ -2,7 +2,13 @@ import React, { useCallback, useEffect, useState, useReducer, useRef } from 'rea
|
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { isEqual, isEmpty, get, set } from 'lodash';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
Modal,
|
|
7
|
+
ModalFooter,
|
|
8
|
+
PopUpWarning,
|
|
9
|
+
useGlobalContext,
|
|
10
|
+
request,
|
|
11
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
6
12
|
import { Button } from '@buffetjs/core';
|
|
7
13
|
import pluginId from '../../pluginId';
|
|
8
14
|
import { getFilesToDownload, getTrad, getYupError, urlSchema } from '../../utils';
|
|
@@ -3,7 +3,7 @@ import { Header, Inputs } from '@buffetjs/custom';
|
|
|
3
3
|
import { Helmet } from 'react-helmet';
|
|
4
4
|
import { Text } from '@buffetjs/core';
|
|
5
5
|
import { isEqual } from 'lodash';
|
|
6
|
-
import { LoadingIndicatorPage, useGlobalContext, request } from 'strapi-helper-plugin';
|
|
6
|
+
import { LoadingIndicatorPage, useGlobalContext, request } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
|
|
8
8
|
import { getRequestUrl, getTrad } from '../../utils';
|
|
9
9
|
import SectionTitleWrapper from './SectionTitleWrapper';
|
package/admin/src/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated
|
|
6
6
|
// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { CheckPagePermissions } from 'strapi-helper-plugin';
|
|
8
|
+
import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
|
|
9
9
|
import pluginPkg from '../../package.json';
|
|
10
10
|
import pluginLogo from './assets/images/logo.svg';
|
|
11
11
|
import pluginPermissions from './permissions';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-template-curly-in-string */
|
|
2
2
|
import * as yup from 'yup';
|
|
3
|
-
import { translatedErrors as errorsTrads } from 'strapi-helper-plugin';
|
|
3
|
+
import { translatedErrors as errorsTrads } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import getTrad from './getTrad';
|
|
5
5
|
|
|
6
6
|
const urlSchema = yup.object().shape({
|
|
@@ -40,7 +40,9 @@ const wrapFunctionForErrors =
|
|
|
40
40
|
|
|
41
41
|
const createProvider = ({ provider, providerOptions, actionOptions = {} }) => {
|
|
42
42
|
try {
|
|
43
|
-
const providerInstance = require(
|
|
43
|
+
const providerInstance = require(`@akemona-org/strapi-provider-upload-${provider}`).init(
|
|
44
|
+
providerOptions
|
|
45
|
+
);
|
|
44
46
|
|
|
45
47
|
return Object.assign(Object.create(baseProvider), {
|
|
46
48
|
...providerInstance,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.7.
|
|
6
|
+
"version": "3.7.5",
|
|
7
7
|
"description": "Makes it easy to upload images and files to your Strapi Application.",
|
|
8
8
|
"strapi": {
|
|
9
9
|
"name": "Media Library",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"test": "echo \"no tests yet\""
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@akemona-org/strapi-helper-plugin": "3.7.
|
|
19
|
-
"@akemona-org/strapi-provider-upload-local": "3.7.
|
|
20
|
-
"@akemona-org/strapi-utils": "3.7.
|
|
18
|
+
"@akemona-org/strapi-helper-plugin": "3.7.5",
|
|
19
|
+
"@akemona-org/strapi-provider-upload-local": "3.7.5",
|
|
20
|
+
"@akemona-org/strapi-utils": "3.7.5",
|
|
21
21
|
"@buffetjs/core": "3.3.8",
|
|
22
22
|
"@buffetjs/custom": "3.3.8",
|
|
23
23
|
"@buffetjs/hooks": "3.3.8",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"npm": ">=6.0.0"
|
|
68
68
|
},
|
|
69
69
|
"license": "SEE LICENSE IN LICENSE",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "c248936761bebd2fe75189c248a761c95a091fe0"
|
|
71
71
|
}
|