@griddo/ax 1.67.4 → 1.67.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "1.67.4",
4
+ "version": "1.67.7",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -221,5 +221,5 @@
221
221
  "publishConfig": {
222
222
  "access": "public"
223
223
  },
224
- "gitHead": "a356dd64d48cd9d3043adc038e43e6158d8f6241"
224
+ "gitHead": "1f30909d372622d6dac5eebcce131d7d6b086fd5"
225
225
  }
@@ -77,7 +77,6 @@ export const ModalHeader = styled.div`
77
77
  export const ModalContent = styled.div`
78
78
  position: relative;
79
79
  flex-grow: 1;
80
- overflow: auto;
81
80
  `;
82
81
 
83
82
  export const Title = styled.div`
@@ -98,4 +97,4 @@ export const ModalFooter = styled.div`
98
97
  margin-left: ${(p) => p.theme.spacing.s};
99
98
  }
100
99
  border-radius: 0 0 4px 4px;
101
- `;
100
+ `;
@@ -1,4 +1,4 @@
1
- import { deepClone } from "@ax/helpers";
1
+ import { deepClone, getDisplayName } from "@ax/helpers";
2
2
  import { IPage, IBreadcrumbItem } from "@ax/types";
3
3
 
4
4
  const configKeys = ["headerConfig", "footerConfig"];
@@ -89,7 +89,11 @@ const getNewBreadcrumb = (componentsTree: any, editorID: number, isFiltered?: bo
89
89
 
90
90
  if (leaf.element.component) {
91
91
  newBreadcrumb = [
92
- { editorID: leaf.element.editorID, displayName: leaf.element.component, component: leaf.element.component },
92
+ {
93
+ editorID: leaf.element.editorID,
94
+ displayName: getDisplayName(leaf.element.component) || leaf.element.component,
95
+ component: leaf.element.component,
96
+ },
93
97
  ...newBreadcrumb,
94
98
  ];
95
99
  }
@@ -29,8 +29,8 @@ const getTemplateThumbnails = (name: string, theme?: string) => {
29
29
  const getDataPackSchema = (name: string) => schemas.dataPacks[name];
30
30
 
31
31
  const getDisplayName = (component: string) => {
32
- const { displayName } = getSchema(component);
33
- return displayName;
32
+ const schema = getSchema(component);
33
+ return schema?.displayName;
34
34
  };
35
35
 
36
36
  const getSchemaType = (component: string) => {
@@ -96,6 +96,7 @@ const CopyModal = (props: ICopyModal): JSX.Element => {
96
96
  <S.ModalContent>
97
97
  <p>
98
98
  <strong>Select a site to copy this page. </strong>
99
+ <br/>
99
100
  You can only select sites with the same language as this page.
100
101
  </p>
101
102
  <S.SelectWrapper>
@@ -130,4 +131,4 @@ interface ICopyModal extends IModal {
130
131
  site: string | null;
131
132
  }
132
133
 
133
- export { DeleteModal, MainActionButton, SecondaryActionButton, CopyModal };
134
+ export { DeleteModal, CopyModal, MainActionButton, SecondaryActionButton };