@griddo/ax 1.67.2 → 1.67.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "1.67.2",
4
+ "version": "1.67.5",
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": "433ce2d1f77d7b616c46d74a1c050b30f5cd8000"
224
+ "gitHead": "3acb4a0eba1d07138ac7cef7a1eb7dc3ca55e948"
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
  }
@@ -305,6 +305,7 @@ const findPackagesActivationErrors = (
305
305
  selectedContent: { component },
306
306
  } = pageEditor;
307
307
 
308
+ const isGlobal = component === "GlobalPage";
308
309
  let deactivatedModules: string[] = [];
309
310
  let isCurrentTemplateActivated = true;
310
311
  let hasDeactivatedModules = false;
@@ -313,7 +314,7 @@ const findPackagesActivationErrors = (
313
314
  editorContent: { template },
314
315
  } = pageEditor?.editorContent;
315
316
 
316
- if (template) {
317
+ if (template && !isGlobal) {
317
318
  const mainContentModules = template?.mainContent?.modules;
318
319
 
319
320
  if (mainContentModules) {
@@ -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 };