@griddo/ax 1.58.7 → 1.59.0

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.
Files changed (120) hide show
  1. package/package.json +2 -2
  2. package/src/GlobalStore.tsx +3 -1
  3. package/src/api/checkgroups.tsx +1 -1
  4. package/src/api/domains.tsx +26 -0
  5. package/src/api/index.tsx +3 -1
  6. package/src/api/sites.tsx +25 -8
  7. package/src/api/utils.tsx +1 -1
  8. package/src/components/Browser/index.tsx +8 -3
  9. package/src/components/ElementsTooltip/index.tsx +23 -8
  10. package/src/components/ElementsTooltip/style.tsx +4 -5
  11. package/src/components/ErrorCenter/index.tsx +11 -1
  12. package/src/components/ErrorCenter/style.tsx +4 -3
  13. package/src/components/Fields/CheckGroup/index.tsx +5 -4
  14. package/src/components/Fields/ComponentArray/MixableComponentArray/AddItemButton/index.tsx +1 -0
  15. package/src/components/Fields/ReferenceField/Context/index.tsx +10 -6
  16. package/src/components/Fields/ReferenceField/ItemList/Item/index.tsx +2 -2
  17. package/src/components/Fields/ReferenceField/ItemList/index.tsx +15 -14
  18. package/src/components/FieldsBehavior/index.tsx +2 -1
  19. package/src/components/FloatingMenu/index.tsx +3 -1
  20. package/src/components/FloatingMenu/style.tsx +7 -5
  21. package/src/components/Gallery/GalleryPanel/DetailPanel/index.tsx +17 -19
  22. package/src/components/Gallery/GalleryPanel/DetailPanel/style.tsx +32 -19
  23. package/src/components/Gallery/style.tsx +1 -1
  24. package/src/components/Icon/components/Category.js +5 -6
  25. package/src/components/Icon/components/Refresh.js +12 -0
  26. package/src/components/Icon/svgs/Category.svg +1 -1
  27. package/src/components/Icon/svgs/Refresh.svg +3 -0
  28. package/src/components/Lists/style.tsx +10 -9
  29. package/src/components/MainWrapper/AppBar/index.tsx +16 -5
  30. package/src/components/MainWrapper/AppBar/style.tsx +2 -1
  31. package/src/components/SideModal/index.tsx +10 -4
  32. package/src/components/TableCounter/style.tsx +1 -4
  33. package/src/components/TableFilters/CategoryFilter/index.tsx +92 -0
  34. package/src/{modules/Content/HeaderMenus/Translations → components/TableFilters/CategoryFilter}/style.tsx +4 -3
  35. package/src/components/TableFilters/CustomizeFilters/index.tsx +52 -0
  36. package/src/components/TableFilters/CustomizeFilters/style.tsx +28 -0
  37. package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Live → components/TableFilters/LiveFilter}/index.tsx +18 -6
  38. package/src/{modules/Content/HeaderMenus/Live → components/TableFilters/LiveFilter}/style.tsx +0 -0
  39. package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Name → components/TableFilters/NameFilter}/index.tsx +18 -9
  40. package/src/{modules/Content/HeaderMenus/Name → components/TableFilters/NameFilter}/style.tsx +0 -0
  41. package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Site → components/TableFilters/SiteFilter}/index.tsx +3 -3
  42. package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Site → components/TableFilters/SiteFilter}/style.tsx +1 -1
  43. package/src/{modules/Content/HeaderMenus/Status → components/TableFilters/StatusFilter}/index.tsx +7 -4
  44. package/src/{modules/Content/HeaderMenus/Status → components/TableFilters/StatusFilter}/style.tsx +0 -0
  45. package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Translations → components/TableFilters/TranslationsFilter}/index.tsx +4 -4
  46. package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Translations → components/TableFilters/TranslationsFilter}/style.tsx +0 -0
  47. package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Types → components/TableFilters/TypeFilter}/index.tsx +13 -9
  48. package/src/{modules/StructuredData/StructuredDataList/HeaderMenus/Types → components/TableFilters/TypeFilter}/style.tsx +1 -1
  49. package/src/components/TableFilters/index.tsx +19 -0
  50. package/src/components/Tag/index.tsx +1 -1
  51. package/src/components/Tag/style.tsx +10 -11
  52. package/src/components/index.tsx +19 -0
  53. package/src/containers/Domains/actions.tsx +51 -0
  54. package/src/containers/Domains/constants.tsx +5 -0
  55. package/src/containers/Domains/index.tsx +4 -0
  56. package/src/containers/Domains/interfaces.tsx +9 -0
  57. package/src/containers/Domains/reducer.tsx +22 -0
  58. package/src/containers/Gallery/actions.tsx +0 -1
  59. package/src/containers/PageEditor/actions.tsx +7 -0
  60. package/src/containers/PageEditor/utils.tsx +1 -1
  61. package/src/containers/Settings/Languages/constants.tsx +3 -3
  62. package/src/containers/Settings/Languages/index.tsx +2 -5
  63. package/src/containers/Sites/actions.tsx +3 -2
  64. package/src/containers/StructuredData/actions.tsx +62 -3
  65. package/src/containers/StructuredData/constants.tsx +4 -0
  66. package/src/containers/StructuredData/interfaces.tsx +13 -1
  67. package/src/containers/StructuredData/reducer.tsx +9 -1
  68. package/src/forms/editor.tsx +4 -0
  69. package/src/forms/elements.tsx +2 -5
  70. package/src/forms/index.tsx +2 -1
  71. package/src/forms/validators.tsx +12 -5
  72. package/src/helpers/arrays.tsx +12 -1
  73. package/src/helpers/index.tsx +4 -1
  74. package/src/helpers/strings.tsx +7 -0
  75. package/src/hooks/content.tsx +41 -0
  76. package/src/hooks/index.tsx +3 -1
  77. package/src/modules/Categories/CategoriesList/CategoryNav/NavItem/style.tsx +9 -9
  78. package/src/modules/Content/BulkHeader/TableHeader/index.tsx +95 -24
  79. package/src/modules/Content/BulkHeader/TableHeader/style.tsx +6 -19
  80. package/src/modules/Content/BulkHeader/index.tsx +16 -0
  81. package/src/modules/Content/ContentFilters/index.tsx +4 -4
  82. package/src/modules/Content/OptionTable/style.tsx +1 -1
  83. package/src/modules/Content/PageItem/atoms.tsx +28 -0
  84. package/src/modules/Content/PageItem/index.tsx +67 -24
  85. package/src/modules/Content/PageItem/style.tsx +14 -7
  86. package/src/modules/Content/hooks.tsx +27 -17
  87. package/src/modules/Content/index.tsx +53 -6
  88. package/src/modules/GlobalEditor/index.tsx +5 -11
  89. package/src/modules/GlobalSettings/Robots/Item/RobotsPanel/index.tsx +61 -0
  90. package/src/modules/GlobalSettings/Robots/Item/RobotsPanel/style.tsx +30 -0
  91. package/src/modules/GlobalSettings/Robots/Item/index.tsx +33 -0
  92. package/src/modules/GlobalSettings/Robots/Item/style.tsx +28 -0
  93. package/src/modules/GlobalSettings/Robots/index.tsx +120 -0
  94. package/src/modules/GlobalSettings/Robots/style.tsx +32 -0
  95. package/src/modules/GlobalSettings/index.tsx +26 -0
  96. package/src/modules/PageEditor/index.tsx +2 -5
  97. package/src/modules/Settings/Globals/style.tsx +1 -1
  98. package/src/modules/StructuredData/Form/ConnectedField/index.tsx +10 -2
  99. package/src/modules/StructuredData/Form/index.tsx +48 -9
  100. package/src/modules/StructuredData/Form/style.tsx +3 -6
  101. package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/index.tsx +84 -35
  102. package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/style.tsx +6 -25
  103. package/src/modules/StructuredData/StructuredDataList/BulkHeader/index.tsx +10 -1
  104. package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/atoms.tsx +24 -3
  105. package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/index.tsx +53 -22
  106. package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/style.tsx +16 -9
  107. package/src/modules/StructuredData/StructuredDataList/OptionTable/style.tsx +1 -1
  108. package/src/modules/StructuredData/StructuredDataList/hooks.tsx +9 -2
  109. package/src/modules/StructuredData/StructuredDataList/index.tsx +45 -5
  110. package/src/routes/multisite.tsx +8 -0
  111. package/src/types/index.tsx +28 -11
  112. package/src/modules/Content/HeaderMenus/Live/index.tsx +0 -93
  113. package/src/modules/Content/HeaderMenus/Name/index.tsx +0 -52
  114. package/src/modules/Content/HeaderMenus/Translations/index.tsx +0 -62
  115. package/src/modules/Content/HeaderMenus/Types/index.tsx +0 -73
  116. package/src/modules/Content/HeaderMenus/Types/style.tsx +0 -34
  117. package/src/modules/StructuredData/StructuredDataList/HeaderMenus/Live/style.tsx +0 -37
  118. package/src/modules/StructuredData/StructuredDataList/HeaderMenus/Name/style.tsx +0 -29
  119. package/src/modules/StructuredData/StructuredDataList/HeaderMenus/Status/index.tsx +0 -47
  120. package/src/modules/StructuredData/StructuredDataList/HeaderMenus/Status/style.tsx +0 -30
@@ -1,34 +0,0 @@
1
- import styled from "styled-components";
2
- import { Header } from "@ax/components/TableList/style";
3
-
4
- const Types = styled(Header)<{ isActive: boolean }>`
5
- width: 140px;
6
- justify-content: center;
7
- &:hover {
8
- color: ${(p) => p.theme.color.interactive01};
9
- }
10
- `;
11
-
12
- const IconsWrapper = styled.div`
13
- display: flex;
14
- align-items: center;
15
- flex-direction: row;
16
- svg {
17
- margin-left: 4px;
18
- }
19
- `;
20
-
21
- const InteractiveArrow = styled.div`
22
- display: flex;
23
- svg {
24
- path {
25
- fill: ${(p) => p.theme.color.interactive01};
26
- }
27
- }
28
- `;
29
-
30
- const ChecksWrapper = styled.div`
31
- padding: ${(p) => p.theme.spacing.xs} ${(p) => p.theme.spacing.s};
32
- `;
33
-
34
- export { Types, IconsWrapper, InteractiveArrow, ChecksWrapper };
@@ -1,37 +0,0 @@
1
- import styled from "styled-components";
2
- import { Header } from "@ax/components/TableList/style";
3
-
4
- const LiveOptions = styled(Header)<{ isActive: boolean }>`
5
- width: 80px;
6
- justify-content: center;
7
- &:hover {
8
- color: ${(p) => p.theme.color.interactive01};
9
- }
10
- `;
11
-
12
- const IconsWrapper = styled.div`
13
- display: flex;
14
- align-items: center;
15
- flex-direction: row;
16
- svg {
17
- margin-left: 4px;
18
- }
19
- `;
20
-
21
- const InteractiveArrow = styled.div`
22
- display: flex;
23
- svg {
24
- path {
25
- fill: ${(p) => p.theme.color.interactive01};
26
- }
27
- }
28
- `;
29
-
30
- const ChecksWrapper = styled.div`
31
- padding: ${(p) => p.theme.spacing.xs} ${(p) => p.theme.spacing.s} 0;
32
- `;
33
-
34
- const MenuWrapper = styled.div`
35
- position: relative;
36
- `;
37
- export { LiveOptions, IconsWrapper, InteractiveArrow, ChecksWrapper, MenuWrapper };
@@ -1,29 +0,0 @@
1
- import styled from "styled-components";
2
- import { Header } from "@ax/components/TableList/style";
3
-
4
- const NameHeader = styled(Header)<{ isActive: boolean }>`
5
- width: 100%;
6
- &:hover {
7
- color: ${(p) => p.theme.color.interactive01};
8
- }
9
- `;
10
-
11
- const IconsWrapper = styled.div`
12
- display: flex;
13
- align-items: center;
14
- flex-direction: row;
15
- svg {
16
- margin-left: 4px;
17
- }
18
- `;
19
-
20
- const InteractiveArrow = styled.div`
21
- display: flex;
22
- svg {
23
- path {
24
- fill: ${(p) => p.theme.color.interactive01};
25
- }
26
- }
27
- `;
28
-
29
- export { NameHeader, IconsWrapper, InteractiveArrow };
@@ -1,47 +0,0 @@
1
- import React from "react";
2
-
3
- import { Icon, FloatingMenu, ListTitle, ListItem } from "@ax/components";
4
-
5
- import * as S from "./style";
6
-
7
- const Status = ({ sortItems, sortedState }: IStatusProps) => {
8
- const { isAscending, sortedByDate } = sortedState;
9
- const sortByModifiedDate = (isAscending: boolean) => sortItems("modified", isAscending);
10
-
11
- const sortOldestModifiedDate = () => sortByModifiedDate(true);
12
- const sortMostRecentModifiedDate = () => sortByModifiedDate(false);
13
-
14
- const SortedStateArrow = () =>
15
- isAscending ? <Icon name="FullArrowUp" size="16" /> : <Icon name="FullArrowDown" size="16" />;
16
-
17
- const Header = () => (
18
- <S.Status isActive={sortedByDate}>
19
- Status
20
- <S.IconsWrapper>
21
- {sortedByDate && <SortedStateArrow />}
22
- <S.InteractiveArrow>
23
- <Icon name="DownArrow" size="16" />
24
- </S.InteractiveArrow>
25
- </S.IconsWrapper>
26
- </S.Status>
27
- );
28
-
29
- return (
30
- <FloatingMenu Button={Header} position="left">
31
- <ListTitle>Sort by modified date</ListTitle>
32
- <ListItem isSelected={sortedByDate && !isAscending} onClick={sortMostRecentModifiedDate}>
33
- Most recent
34
- </ListItem>
35
- <ListItem isSelected={sortedByDate && isAscending} onClick={sortOldestModifiedDate}>
36
- Oldest
37
- </ListItem>
38
- </FloatingMenu>
39
- );
40
- };
41
-
42
- interface IStatusProps {
43
- sortedState: any;
44
- sortItems(orderPointer: string, isAscendent: boolean): any;
45
- }
46
-
47
- export default Status;
@@ -1,30 +0,0 @@
1
- import styled from "styled-components";
2
- import { Header } from "@ax/components/TableList/style";
3
-
4
- const Status = styled(Header)<{ isActive: boolean }>`
5
- width: 170px;
6
- justify-content: center;
7
- &:hover {
8
- color: ${(p) => p.theme.color.interactive01};
9
- }
10
- `;
11
-
12
- const IconsWrapper = styled.div`
13
- display: flex;
14
- align-items: center;
15
- flex-direction: row;
16
- svg {
17
- margin-left: 4px;
18
- }
19
- `;
20
-
21
- const InteractiveArrow = styled.div`
22
- display: flex;
23
- svg {
24
- path {
25
- fill: ${(p) => p.theme.color.interactive01};
26
- }
27
- }
28
- `;
29
-
30
- export { Status, IconsWrapper, InteractiveArrow };