@griddo/ax 1.75.197 → 1.75.199

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.75.197",
4
+ "version": "1.75.199",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -235,5 +235,5 @@
235
235
  "publishConfig": {
236
236
  "access": "public"
237
237
  },
238
- "gitHead": "9a7963740f608977095bbb777ddc40eb9887705d"
238
+ "gitHead": "9d16a4ec24450d9b86401d868d885f5f1a2de880"
239
239
  }
@@ -92,6 +92,7 @@ const PageItem = (props: IPageItemProps): JSX.Element => {
92
92
  const isGlobal = origin === "GLOBAL";
93
93
  const isTranslated = pageLanguages.length > 1;
94
94
  const activeColumns = Object.keys(columns).filter((col: string) => columns[col].show);
95
+ const API_URL = process.env.REACT_APP_API_ENDPOINT;
95
96
 
96
97
  const publishedTooltip: any = {
97
98
  active: "Live",
@@ -376,9 +377,7 @@ const PageItem = (props: IPageItemProps): JSX.Element => {
376
377
  }
377
378
  };
378
379
 
379
- const viewPage = () => {
380
- window.open(page.fullUrl, "_blank");
381
- };
380
+ const viewPage = () => window.open(page.fullUrl || `${API_URL}/page/go/${page.id}`, "_blank");
382
381
 
383
382
  const viewOption = {
384
383
  label: "View live",
@@ -67,6 +67,7 @@ const GlobalPageItem = (props: IGlobalPageItemProps): JSX.Element => {
67
67
  const theme: any = useTheme();
68
68
  const nameCellPadding = Number(theme.spacing.s.slice(0, -2));
69
69
  const title = useAdaptiveText(nameCellRef, globalPage.title, nameCellPadding);
70
+ const API_URL = process.env.REACT_APP_API_ENDPOINT;
70
71
 
71
72
  const { locale } = lang;
72
73
  const {
@@ -221,9 +222,7 @@ const GlobalPageItem = (props: IGlobalPageItemProps): JSX.Element => {
221
222
  }
222
223
  };
223
224
 
224
- const viewPage = () => {
225
- window.open(globalPage.fullUrl, "_blank");
226
- };
225
+ const viewPage = () => window.open(globalPage.fullUrl || `${API_URL}/page/go/${globalPage.id}`, "_blank");
227
226
 
228
227
  const viewOption = {
229
228
  label: "View live",
package/tsconfig.json CHANGED
@@ -28,12 +28,11 @@
28
28
  "webpack-env",
29
29
  "react/next",
30
30
  "react-dom/next",
31
- "@testing-library/jest-dom",
32
- "cypress",
31
+ "@testing-library/jest-dom",
33
32
  ],
34
33
  },
35
34
  "include": [
36
- "src"
35
+ "src",
37
36
  ],
38
37
  "extends": "./tsconfig.paths.json"
39
38
  }