@akemona-org/strapi-plugin-content-manager 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/InjectedComponents/ContentTypeBuilder/ConfigureViewButton/index.js +1 -1
- package/admin/src/components/ComponentInitializer/index.js +1 -1
- package/admin/src/components/CustomTable/Headers/Header.js +1 -1
- package/admin/src/components/CustomTable/Row/index.js +1 -1
- package/admin/src/components/CustomTable/index.js +1 -1
- package/admin/src/components/CustomTable/styledComponents.js +1 -1
- package/admin/src/components/DraggedField/index.js +1 -1
- package/admin/src/components/DraggedFieldWithPreview/DynamicComponent.js +1 -1
- package/admin/src/components/DynamicZone/index.js +1 -1
- package/admin/src/components/DynamicZone/utils/select.js +1 -1
- package/admin/src/components/FieldComponent/index.js +1 -1
- package/admin/src/components/FieldComponent/utils/select.js +1 -1
- package/admin/src/components/FilterPicker/index.js +1 -1
- package/admin/src/components/FilterPicker/init.js +1 -1
- package/admin/src/components/FilterPickerOption/index.js +1 -1
- package/admin/src/components/InputJSONWithErrors/index.js +1 -1
- package/admin/src/components/InputUID/RightLabel.js +1 -1
- package/admin/src/components/InputUID/index.js +1 -1
- package/admin/src/components/Inputs/index.js +1 -1
- package/admin/src/components/Inputs/utils/select.js +1 -1
- package/admin/src/components/MediaPreviewList/index.js +1 -1
- package/admin/src/components/PopupForm/index.js +1 -1
- package/admin/src/components/RelationPreviewList/RelationPreviewTooltip.js +1 -1
- package/admin/src/components/RepeatableComponent/DraggedItem/utils/select.js +1 -1
- package/admin/src/components/RepeatableComponent/utils/select.js +1 -1
- package/admin/src/components/Search/index.js +1 -1
- package/admin/src/components/SelectMany/Relation.js +1 -1
- package/admin/src/components/SelectOne/SingleValue.js +1 -1
- package/admin/src/components/SelectWrapper/Option.js +1 -1
- package/admin/src/components/SelectWrapper/index.js +1 -1
- package/admin/src/components/SelectWrapper/utils/select.js +1 -1
- package/admin/src/components/SettingsViewWrapper/index.js +1 -1
- package/admin/src/components/Wysiwyg/MediaLib.js +1 -1
- package/admin/src/components/Wysiwyg/customSelect.js +1 -1
- package/admin/src/components/WysiwygWithErrors/index.js +1 -1
- package/admin/src/containers/CollectionTypeFormWrapper/index.js +1 -1
- package/admin/src/containers/CollectionTypeRecursivePath/index.js +5 -1
- package/admin/src/containers/ComponentSetttingsView/index.js +5 -1
- package/admin/src/containers/EditSettingsView/index.js +1 -1
- package/admin/src/containers/EditView/DeleteLink/index.js +1 -1
- package/admin/src/containers/EditView/DeleteLink/utils/select.js +1 -1
- package/admin/src/containers/EditView/Header/index.js +1 -1
- package/admin/src/containers/EditView/Header/utils/select.js +1 -1
- package/admin/src/containers/EditView/InformationCard.js +4 -1
- package/admin/src/containers/EditView/index.js +1 -1
- package/admin/src/containers/EditView/utils/getFieldsActionMatchingPermissions.js +1 -1
- package/admin/src/containers/EditViewDataManagerProvider/index.js +1 -1
- package/admin/src/containers/EditViewDataManagerProvider/utils/schema.js +1 -1
- package/admin/src/containers/EditViewLayoutManager/Permissions.js +1 -1
- package/admin/src/containers/EditViewLayoutManager/index.js +1 -1
- package/admin/src/containers/ListSettingsView/index.js +1 -1
- package/admin/src/containers/ListView/FieldPicker/ConfigureLink/index.js +1 -1
- package/admin/src/containers/ListView/FieldPicker/Fields/Wrapper.js +1 -1
- package/admin/src/containers/ListView/FieldPicker/Header/index.js +1 -1
- package/admin/src/containers/ListView/FieldPicker/index.js +1 -1
- package/admin/src/containers/ListView/Filter.js +1 -1
- package/admin/src/containers/ListView/Footer.js +1 -1
- package/admin/src/containers/ListView/components.js +1 -1
- package/admin/src/containers/ListView/index.js +1 -1
- package/admin/src/containers/ListViewLayoutManager/Permissions.js +1 -1
- package/admin/src/containers/ListViewLayoutManager/index.js +1 -1
- package/admin/src/containers/Main/index.js +1 -1
- package/admin/src/containers/SingleTypeFormWrapper/index.js +1 -1
- package/admin/src/containers/SingleTypeRecursivePath/index.js +1 -1
- package/admin/src/hooks/useFetchContentTypeLayout/index.js +1 -1
- package/admin/src/hooks/useFindRedirectionLink/index.js +1 -1
- package/admin/src/utils/dateFormats.js +1 -1
- package/admin/src/utils/removePasswordFieldsFromData.js +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { LayoutIcon, CheckPermissions } from 'strapi-helper-plugin';
|
|
4
|
+
import { LayoutIcon, CheckPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Button as Base } from '@buffetjs/core';
|
|
6
6
|
import { useHistory } from 'react-router-dom';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
@@ -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 { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
|
|
4
|
+
import { useContentManagerEditViewDataManager } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import pluginId from '../../pluginId';
|
|
6
6
|
|
|
7
7
|
import NonRepeatableWrapper from '../NonRepeatableWrapper';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { Carret, useGlobalContext } from 'strapi-helper-plugin';
|
|
3
|
+
import { Carret, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { useListView } from '../../../hooks';
|
|
5
5
|
|
|
6
6
|
const Header = ({ fieldSchema: { type }, metadatas: { label, sortable, mainField }, name }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useCallback, useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { toString } from 'lodash';
|
|
4
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { IconLinks } from '@buffetjs/core';
|
|
6
6
|
import { Duplicate } from '@buffetjs/icons';
|
|
7
7
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { useLocation, useHistory } from 'react-router-dom';
|
|
4
4
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
5
5
|
import { upperFirst, isEmpty } from 'lodash';
|
|
6
|
-
import { LoadingIndicator, useGlobalContext } from 'strapi-helper-plugin';
|
|
6
|
+
import { LoadingIndicator, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { parse, stringify } from 'qs';
|
|
8
8
|
import useListView from '../../hooks/useListView';
|
|
9
9
|
import { getTrad } from '../../utils';
|
|
@@ -4,7 +4,7 @@ import { isEmpty } from 'lodash';
|
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
6
6
|
import { Grab, GrabLarge, Pencil } from '@buffetjs/icons';
|
|
7
|
-
import { CheckPermissions } from 'strapi-helper-plugin';
|
|
7
|
+
import { CheckPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
8
8
|
import pluginId from '../../pluginId';
|
|
9
9
|
import pluginPermissions from '../../permissions';
|
|
10
10
|
import useLayoutDnd from '../../hooks/useLayoutDnd';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { useHistory } from 'react-router-dom';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { hasPermissions, useUser } from 'strapi-helper-plugin';
|
|
4
|
+
import { hasPermissions, useUser } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import pluginId from '../../pluginId';
|
|
6
6
|
import pluginPermissions from '../../permissions';
|
|
7
7
|
import DynamicComponentCard from '../DynamicComponentCard';
|
|
@@ -4,7 +4,7 @@ import isEqual from 'react-fast-compare';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import { Flex } from '@buffetjs/core';
|
|
7
|
-
import { LabelIconWrapper, NotAllowedInput } from 'strapi-helper-plugin';
|
|
7
|
+
import { LabelIconWrapper, NotAllowedInput } from '@akemona-org/strapi-helper-plugin';
|
|
8
8
|
import pluginId from '../../pluginId';
|
|
9
9
|
import connect from './utils/connect';
|
|
10
10
|
import select from './utils/select';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { get } from 'lodash';
|
|
3
|
-
import { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
|
|
3
|
+
import { useContentManagerEditViewDataManager } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
function useSelect(name) {
|
|
6
6
|
const {
|
|
@@ -5,7 +5,7 @@ import { size } from 'lodash';
|
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
7
|
import isEqual from 'react-fast-compare';
|
|
8
|
-
import { NotAllowedInput, LabelIconWrapper } from 'strapi-helper-plugin';
|
|
8
|
+
import { NotAllowedInput, LabelIconWrapper } from '@akemona-org/strapi-helper-plugin';
|
|
9
9
|
import pluginId from '../../pluginId';
|
|
10
10
|
import ComponentInitializer from '../ComponentInitializer';
|
|
11
11
|
import NonRepeatableComponent from '../NonRepeatableComponent';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { get, take } from 'lodash';
|
|
3
|
-
import { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
|
|
3
|
+
import { useContentManagerEditViewDataManager } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
import { getFieldName } from '../../../utils';
|
|
6
6
|
import { useContentTypeLayout } from '../../../hooks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { get, isEmpty } from 'lodash';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { CircleButton, getFilterType } from 'strapi-helper-plugin';
|
|
4
|
+
import { CircleButton, getFilterType } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Select } from '@buffetjs/core';
|
|
6
6
|
|
|
7
7
|
import { InputWrapper, Wrapper } from './components';
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { isEmpty, isFunction } from 'lodash';
|
|
10
10
|
import cn from 'classnames';
|
|
11
|
-
import { LabelIconWrapper } from 'strapi-helper-plugin';
|
|
11
|
+
import { LabelIconWrapper } from '@akemona-org/strapi-helper-plugin';
|
|
12
12
|
import { Description, ErrorMessage, Label } from '@buffetjs/styles';
|
|
13
13
|
import { Error } from '@buffetjs/core';
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Success, Remove } from '@buffetjs/icons';
|
|
4
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
|
|
6
6
|
import pluginId from '../../pluginId';
|
|
7
7
|
import getTrad from '../../utils/getTrad';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
LoadingIndicator,
|
|
12
12
|
useGlobalContext,
|
|
13
13
|
useContentManagerEditViewDataManager,
|
|
14
|
-
} from 'strapi-helper-plugin';
|
|
14
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
15
15
|
import { FormattedMessage } from 'react-intl';
|
|
16
16
|
import { get } from 'lodash';
|
|
17
17
|
import getTrad from '../../utils/getTrad';
|
|
@@ -4,7 +4,7 @@ import { get, omit, take } from 'lodash';
|
|
|
4
4
|
import isEqual from 'react-fast-compare';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { Inputs as InputsIndex } from '@buffetjs/custom';
|
|
7
|
-
import { NotAllowedInput, useStrapi } from 'strapi-helper-plugin';
|
|
7
|
+
import { NotAllowedInput, useStrapi } from '@akemona-org/strapi-helper-plugin';
|
|
8
8
|
import { useContentTypeLayout } from '../../hooks';
|
|
9
9
|
import { getFieldName } from '../../utils';
|
|
10
10
|
import InputJSONWithErrors from '../InputJSONWithErrors';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { get } from 'lodash';
|
|
3
|
-
import { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
|
|
3
|
+
import { useContentManagerEditViewDataManager } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
function useSelect(keys) {
|
|
6
6
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { get, isArray, includes, isEmpty } from 'lodash';
|
|
4
|
-
import { getFileExtension, prefixFileUrlWithBackendUrl } from 'strapi-helper-plugin';
|
|
4
|
+
import { getFileExtension, prefixFileUrlWithBackendUrl } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import DefaultIcon from '../../icons/Na';
|
|
6
6
|
import {
|
|
7
7
|
StyledMediaPreviewList,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ModalBody,
|
|
8
8
|
ModalFooter,
|
|
9
9
|
ModalForm,
|
|
10
|
-
} from 'strapi-helper-plugin';
|
|
10
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
11
11
|
import { FormattedMessage } from 'react-intl';
|
|
12
12
|
import { upperFirst } from 'lodash';
|
|
13
13
|
import { AttributeIcon, Button } from '@buffetjs/core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect, useCallback, useRef, useLayoutEffect } from 'react';
|
|
2
2
|
import { Text, Padded } from '@buffetjs/core';
|
|
3
|
-
import { request } from 'strapi-helper-plugin';
|
|
3
|
+
import { request } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { LoadingIndicator, Tooltip } from '@buffetjs/styles';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { getDisplayedValue, getRequestUrl } from '../../utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { get, toString } from 'lodash';
|
|
3
|
-
import { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
|
|
3
|
+
import { useContentManagerEditViewDataManager } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
function useSelect({ schema, componentFieldName }) {
|
|
6
6
|
const {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
|
|
1
|
+
import { useContentManagerEditViewDataManager } from '@akemona-org/strapi-helper-plugin';
|
|
2
2
|
|
|
3
3
|
function useSelect() {
|
|
4
4
|
const { addRepeatableComponentToField, formErrors } = useContentManagerEditViewDataManager();
|
|
@@ -8,7 +8,7 @@ import React, { memo } from 'react';
|
|
|
8
8
|
import { isEmpty, upperFirst } from 'lodash';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import { FormattedMessage } from 'react-intl';
|
|
11
|
-
import { HeaderSearch, GlobalContext } from 'strapi-helper-plugin';
|
|
11
|
+
import { HeaderSearch, GlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
12
12
|
import getTrad from '../../utils/getTrad';
|
|
13
13
|
|
|
14
14
|
const WAIT = 400;
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { Link, useLocation } from 'react-router-dom';
|
|
5
5
|
import { isEmpty } from 'lodash';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import { RelationDPState } from 'strapi-helper-plugin';
|
|
7
|
+
import { RelationDPState } from '@akemona-org/strapi-helper-plugin';
|
|
8
8
|
import { getDisplayedValue, getTrad } from '../../utils';
|
|
9
9
|
import IconRemove from '../../assets/images/icon_remove.svg';
|
|
10
10
|
import { Span } from './components';
|
|
@@ -3,7 +3,7 @@ import { components } from 'react-select';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { get, has, isEmpty } from 'lodash';
|
|
5
5
|
import { Flex, Padded, Text } from '@buffetjs/core';
|
|
6
|
-
import { RelationDPState } from 'strapi-helper-plugin';
|
|
6
|
+
import { RelationDPState } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { getDisplayedValue } from '../../utils';
|
|
8
8
|
|
|
9
9
|
const SingleValue = (props) => {
|
|
@@ -5,7 +5,7 @@ import { useIntl } from 'react-intl';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { get, has, isEmpty } from 'lodash';
|
|
7
7
|
import { Flex, Text } from '@buffetjs/core';
|
|
8
|
-
import { RelationDPState } from 'strapi-helper-plugin';
|
|
8
|
+
import { RelationDPState } from '@akemona-org/strapi-helper-plugin';
|
|
9
9
|
import { getDisplayedValue, getTrad } from '../../utils';
|
|
10
10
|
|
|
11
11
|
const TextGrow = styled(Text)`
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
request,
|
|
11
11
|
useContentManagerEditViewDataManager,
|
|
12
12
|
useQueryParams,
|
|
13
|
-
} from 'strapi-helper-plugin';
|
|
13
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
14
14
|
import { Flex, Text, Padded } from '@buffetjs/core';
|
|
15
15
|
import { stringify } from 'qs';
|
|
16
16
|
import pluginId from '../../pluginId';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
|
|
2
|
+
import { useContentManagerEditViewDataManager } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
|
|
4
4
|
function useSelect({ isUserAllowedToEditField, isUserAllowedToReadField, name }) {
|
|
5
5
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { useStrapi, prefixFileUrlWithBackendUrl } from 'strapi-helper-plugin';
|
|
2
|
+
import { useStrapi, prefixFileUrlWithBackendUrl } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
5
|
const MediaLib = ({ isOpen, onChange, onToggle }) => {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import { InputSelect as Select } from 'strapi-helper-plugin';
|
|
10
|
+
import { InputSelect as Select } from '@akemona-org/strapi-helper-plugin';
|
|
11
11
|
import useWysiwyg from '../../hooks/useWysiwyg';
|
|
12
12
|
import { SELECT_OPTIONS } from './constants';
|
|
13
13
|
import SelectWrapper from './SelectWrapper';
|
|
@@ -10,7 +10,7 @@ import { isEmpty, isFunction } from 'lodash';
|
|
|
10
10
|
import cn from 'classnames';
|
|
11
11
|
import { Description, ErrorMessage, Label } from '@buffetjs/styles';
|
|
12
12
|
import { Error } from '@buffetjs/core';
|
|
13
|
-
import { LabelIconWrapper } from 'strapi-helper-plugin';
|
|
13
|
+
import { LabelIconWrapper } from '@akemona-org/strapi-helper-plugin';
|
|
14
14
|
import Wysiwyg from '../Wysiwyg';
|
|
15
15
|
import Wrapper from './Wrapper';
|
|
16
16
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
useQueryParams,
|
|
8
8
|
formatComponentData,
|
|
9
9
|
contentManagementUtilRemoveFieldsFromData,
|
|
10
|
-
} from 'strapi-helper-plugin';
|
|
10
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
11
11
|
import { useSelector, useDispatch } from 'react-redux';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
13
|
import isEqual from 'react-fast-compare';
|
|
@@ -3,7 +3,11 @@ import { Switch, Route } from 'react-router-dom';
|
|
|
3
3
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
4
4
|
import { get } from 'lodash';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
ErrorFallback,
|
|
8
|
+
LoadingIndicatorPage,
|
|
9
|
+
CheckPagePermissions,
|
|
10
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
7
11
|
import pluginPermissions from '../../permissions';
|
|
8
12
|
import { ContentTypeLayoutContext } from '../../contexts';
|
|
9
13
|
import { useFetchContentTypeLayout } from '../../hooks';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React, { memo, useEffect, useMemo, useReducer } from 'react';
|
|
2
2
|
import { useParams } from 'react-router-dom';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
CheckPagePermissions,
|
|
5
|
+
LoadingIndicatorPage,
|
|
6
|
+
request,
|
|
7
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
4
8
|
import { useSelector, shallowEqual } from 'react-redux';
|
|
5
9
|
import { getRequestUrl, mergeMetasWithSchema } from '../../utils';
|
|
6
10
|
import { makeSelectModelAndComponentSchemas } from '../Main/selectors';
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
4
|
import { useSelector, shallowEqual } from 'react-redux';
|
|
5
5
|
import { cloneDeep, flatMap, get, set, pick } from 'lodash';
|
|
6
|
-
import { request, useGlobalContext } from 'strapi-helper-plugin';
|
|
6
|
+
import { request, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { Inputs as Input } from '@buffetjs/custom';
|
|
8
8
|
import { FormattedMessage } from 'react-intl';
|
|
9
9
|
import pluginId from '../../pluginId';
|
|
@@ -4,7 +4,7 @@ import { get } from 'lodash';
|
|
|
4
4
|
import isEqual from 'react-fast-compare';
|
|
5
5
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
6
6
|
import { Text } from '@buffetjs/core';
|
|
7
|
-
import { PopUpWarning } from 'strapi-helper-plugin';
|
|
7
|
+
import { PopUpWarning } from '@akemona-org/strapi-helper-plugin';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import pluginId from '../../../pluginId';
|
|
10
10
|
import { getTrad } from '../../../utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from 'lodash';
|
|
2
|
-
import { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
|
|
2
|
+
import { useContentManagerEditViewDataManager } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
|
|
4
4
|
function useSelect() {
|
|
5
5
|
const { hasDraftAndPublish, modifiedData } = useContentManagerEditViewDataManager();
|
|
@@ -5,7 +5,7 @@ import { get, isEqual, isEmpty, toString } from 'lodash';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import isEqualFastCompare from 'react-fast-compare';
|
|
7
7
|
import { Text } from '@buffetjs/core';
|
|
8
|
-
import { templateObject, ModalConfirm } from 'strapi-helper-plugin';
|
|
8
|
+
import { templateObject, ModalConfirm } from '@akemona-org/strapi-helper-plugin';
|
|
9
9
|
import { getTrad } from '../../../utils';
|
|
10
10
|
import { connect, getDraftRelations, select } from './utils';
|
|
11
11
|
|
|
@@ -4,7 +4,10 @@ import { get, isEmpty } from 'lodash';
|
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
InjectionZone,
|
|
9
|
+
useContentManagerEditViewDataManager,
|
|
10
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
8
11
|
import { SubWrapper, StatusWrapper } from './components';
|
|
9
12
|
import pluginId from '../../pluginId';
|
|
10
13
|
import { getTrad } from '../../utils';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
LiLink,
|
|
8
8
|
CheckPermissions,
|
|
9
9
|
useGlobalContext,
|
|
10
|
-
} from 'strapi-helper-plugin';
|
|
10
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
11
11
|
import { Padded } from '@buffetjs/core';
|
|
12
12
|
import pluginId from '../../pluginId';
|
|
13
13
|
import pluginPermissions from '../../permissions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { uniq, flatMap } from 'lodash';
|
|
2
|
-
import { findMatchingPermissions } from 'strapi-helper-plugin';
|
|
2
|
+
import { findMatchingPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
|
|
4
4
|
const getFieldsActionMatchingPermissions = (userPermissions, slug) => {
|
|
5
5
|
const getMatchingPermissions = (action) => {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
useGlobalContext,
|
|
8
8
|
OverlayBlocker,
|
|
9
9
|
ContentManagerEditViewDataManagerContext,
|
|
10
|
-
} from 'strapi-helper-plugin';
|
|
10
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
11
11
|
import { getTrad, removeKeyInObject } from '../../utils';
|
|
12
12
|
import reducer, { initialState } from './reducer';
|
|
13
13
|
import { cleanData, createYupSchema, getYupInnerErrors } from './utils';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from 'lodash';
|
|
12
12
|
import moment from 'moment';
|
|
13
13
|
import * as yup from 'yup';
|
|
14
|
-
import { translatedErrors as errorsTrads } from 'strapi-helper-plugin';
|
|
14
|
+
import { translatedErrors as errorsTrads } from '@akemona-org/strapi-helper-plugin';
|
|
15
15
|
|
|
16
16
|
yup.addMethod(yup.mixed, 'defined', function() {
|
|
17
17
|
return this.test('defined', errorsTrads.required, (value) => value !== undefined);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { useUserPermissions, LoadingIndicatorPage } from 'strapi-helper-plugin';
|
|
3
|
+
import { useUserPermissions, LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import isEqual from 'react-fast-compare';
|
|
5
5
|
import EditView from '../EditView';
|
|
6
6
|
import { generatePermissionsObject } from '../../utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import { LoadingIndicatorPage, useQueryParams } from 'strapi-helper-plugin';
|
|
4
|
+
import { LoadingIndicatorPage, useQueryParams } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import useSyncRbac from '../RBACManager/useSyncRbac';
|
|
6
6
|
import { resetProps, setLayout } from './actions';
|
|
7
7
|
import selectLayout from './selectors';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useMemo, useReducer, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { get, pick } from 'lodash';
|
|
4
|
-
import { request, useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { request, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import { useDrop } from 'react-dnd';
|
|
7
7
|
import { DropdownItem } from 'reactstrap';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { LayoutIcon, useGlobalContext } from 'strapi-helper-plugin';
|
|
3
|
+
import { LayoutIcon, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import Link from './StyledLink';
|
|
6
6
|
import Wrapper from './Wrapper';
|
|
@@ -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
|
const Wrapper = styled((props) => <Text as="ul" fontSize="md" {...props} />)`
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import { Flex, Padded, Text } from '@buffetjs/core';
|
|
5
|
-
import { BaselineAlignment, useGlobalContext } from 'strapi-helper-plugin';
|
|
5
|
+
import { BaselineAlignment, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { getTrad } from '../../../../utils';
|
|
7
7
|
import Reset from './Reset';
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Flex, Padded, Picker } from '@buffetjs/core';
|
|
4
4
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
5
|
-
import { Carret } from 'strapi-helper-plugin';
|
|
5
|
+
import { Carret } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import Fields from './Fields';
|
|
7
7
|
import Header from './Header';
|
|
8
8
|
import Wrapper from './Wrapper';
|
|
@@ -2,7 +2,7 @@ import React, { memo, useCallback } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { get, toString } from 'lodash';
|
|
4
4
|
import moment from 'moment';
|
|
5
|
-
import { FilterButton } from 'strapi-helper-plugin';
|
|
5
|
+
import { FilterButton } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { dateFormats, formatFiltersToQuery } from '../../utils';
|
|
7
7
|
|
|
8
8
|
function Filter({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { GlobalPagination, InputSelect, useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { GlobalPagination, InputSelect, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
|
|
6
6
|
import { FooterWrapper, SelectWrapper, Label } from './components';
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Button, FilterIcon as Filter } from 'strapi-helper-plugin';
|
|
2
|
+
import { Button, FilterIcon as Filter } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import RemoveIcon from '../../assets/images/icon-cross-blue.svg';
|
|
4
4
|
|
|
5
5
|
const Wrapper = styled.div`
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
useQueryParams,
|
|
19
19
|
useUser,
|
|
20
20
|
request,
|
|
21
|
-
} from 'strapi-helper-plugin';
|
|
21
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
22
22
|
import pluginId from '../../pluginId';
|
|
23
23
|
import pluginPermissions from '../../permissions';
|
|
24
24
|
import { formatFiltersFromQuery, getRequestUrl, getTrad } from '../../utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { useUserPermissions, LoadingIndicatorPage } from 'strapi-helper-plugin';
|
|
3
|
+
import { useUserPermissions, LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import isEqual from 'react-fast-compare';
|
|
5
5
|
import ListView from '../ListView';
|
|
6
6
|
import { generatePermissionsObject } from '../../utils';
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import { useDispatch } from 'react-redux';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useHistory } from 'react-router-dom';
|
|
5
|
-
import { useQueryParams } from 'strapi-helper-plugin';
|
|
5
|
+
import { useQueryParams } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { useFindRedirectionLink } from '../../hooks';
|
|
7
7
|
import { resetProps, setLayout } from '../ListView/actions';
|
|
8
8
|
import useSyncRbac from '../RBACManager/useSyncRbac';
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
LoadingIndicatorPage,
|
|
9
9
|
NotFound,
|
|
10
10
|
request,
|
|
11
|
-
} from 'strapi-helper-plugin';
|
|
11
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
12
12
|
import { DndProvider } from 'react-dnd';
|
|
13
13
|
import HTML5Backend from 'react-dnd-html5-backend';
|
|
14
14
|
import pluginId from '../../pluginId';
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
useGlobalContext,
|
|
7
7
|
formatComponentData,
|
|
8
8
|
useQueryParams,
|
|
9
|
-
} from 'strapi-helper-plugin';
|
|
9
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
import { useSelector, useDispatch } from 'react-redux';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import { createDefaultForm, getTrad, removePasswordFieldsFromData } from '../../utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
2
|
import { Switch, Route } from 'react-router-dom';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { LoadingIndicatorPage, CheckPagePermissions } from 'strapi-helper-plugin';
|
|
4
|
+
import { LoadingIndicatorPage, CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import pluginPermissions from '../../permissions';
|
|
6
6
|
import { ContentTypeLayoutContext } from '../../contexts';
|
|
7
7
|
import { useFetchContentTypeLayout } from '../../hooks';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useReducer, useRef } from 'react';
|
|
2
2
|
import { useSelector, shallowEqual } from 'react-redux';
|
|
3
|
-
import { request } from 'strapi-helper-plugin';
|
|
3
|
+
import { request } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import formatLayouts from './utils/formatLayouts';
|
|
5
5
|
import reducer, { initialState } from './reducer';
|
|
6
6
|
import { makeSelectModelAndComponentSchemas } from '../../containers/Main/selectors';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSelector } from 'react-redux';
|
|
2
|
-
import { useQueryParams } from 'strapi-helper-plugin';
|
|
2
|
+
import { useQueryParams } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import selectMenuLinks from './selectors';
|
|
4
4
|
import getRedirectionLink from './utils/getRedirectionLink';
|
|
5
5
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated
|
|
5
5
|
// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED
|
|
6
6
|
|
|
7
|
-
import { dateFormats as defaultDateFormats } from 'strapi-helper-plugin';
|
|
7
|
+
import { dateFormats as defaultDateFormats } from '@akemona-org/strapi-helper-plugin';
|
|
8
8
|
|
|
9
9
|
const dateFormats = {
|
|
10
10
|
...defaultDateFormats,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get } from 'lodash';
|
|
2
|
-
import { getType, getOtherInfos } from 'strapi-helper-plugin';
|
|
2
|
+
import { getType, getOtherInfos } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
|
|
4
4
|
const removePasswordFieldsFromData = (data, contentTypeSchema, componentSchema) => {
|
|
5
5
|
const recursiveCleanData = (data, schema) => {
|
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": "A powerful UI to easily manage your data.",
|
|
8
8
|
"strapi": {
|
|
9
9
|
"name": "Content Manager",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"required": true
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@akemona-org/strapi-helper-plugin": "3.7.
|
|
16
|
-
"@akemona-org/strapi-utils": "3.7.
|
|
15
|
+
"@akemona-org/strapi-helper-plugin": "3.7.5",
|
|
16
|
+
"@akemona-org/strapi-utils": "3.7.5",
|
|
17
17
|
"@buffetjs/core": "3.3.8",
|
|
18
18
|
"@buffetjs/custom": "3.3.8",
|
|
19
19
|
"@buffetjs/hooks": "3.3.8",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"npm": ">=6.0.0"
|
|
74
74
|
},
|
|
75
75
|
"license": "SEE LICENSE IN LICENSE",
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c248936761bebd2fe75189c248a761c95a091fe0"
|
|
77
77
|
}
|