@griddo/ax 10.7.9 → 11.0.1

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": "10.7.9",
4
+ "version": "11.0.1",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "scripts": {
24
24
  "start": "npm run start:dev",
25
- "start:local": "env-cmd -f env/.env.local node scripts/start.js",
26
- "start:dev": "env-cmd -f env/.env.development node scripts/start.js",
27
- "start:staging": "env-cmd -f env/.env.staging node scripts/start.js",
28
- "build": "node scripts/build.js",
29
- "build:dev": "env-cmd -f env/.env.development node scripts/build.js",
25
+ "start:local": "sh ./scripts/start/start-local.sh",
26
+ "start:dev": "sh ./scripts/start/start-dev.sh",
27
+ "start:staging": "sh ./scripts/start/start-staging.sh",
28
+ "build": "sh ./scripts/start/build.sh",
29
+ "build:dev": "sh ./scripts/start/build-dev.sh",
30
30
  "build:bitbucket": "env-cmd -f env/.env npm run build",
31
31
  "test": "jest",
32
32
  "test:watch": "jest --watch",
@@ -53,7 +53,7 @@
53
53
  "@types/draft-js": "^0.10.44",
54
54
  "@types/lodash.isequal": "^4.5.5",
55
55
  "@types/markdown-draft-js": "^2.2.2",
56
- "@types/node": "12.11.1",
56
+ "@types/node": "^20",
57
57
  "@types/react": "^18.0.1",
58
58
  "@types/react-beautiful-dnd": "^13.1.2",
59
59
  "@types/react-datepicker": "^3.1.1",
@@ -229,5 +229,5 @@
229
229
  "publishConfig": {
230
230
  "access": "public"
231
231
  },
232
- "gitHead": "406e9f612d8587a5b08436e7e822bcc8782e0094"
232
+ "gitHead": "af8ad67ec86fe5dfb587c6885bcbd7988adc74e9"
233
233
  }
@@ -52,8 +52,8 @@ async function main() {
52
52
  const griddoConfig = _griddoConfig.default || _griddoConfig;
53
53
 
54
54
  // La propiedad computed en los schemas de datos estructurados se perderá si no la stringificamos primero
55
- checkComputedSchemas(griddoConfig.schemas)
56
-
55
+ checkComputedSchemas(griddoConfig.schemas);
56
+
57
57
  const { version } = require(resolveComponentsPath("package.json"));
58
58
 
59
59
  const emptySchemas = {
@@ -81,20 +81,20 @@ async function main() {
81
81
  }
82
82
  }
83
83
 
84
- const checkComputedSchemas = schemas => {
84
+ const checkComputedSchemas = (schemas) => {
85
85
  const structuredDataSchemas = schemas.structuredData;
86
86
 
87
87
  for (const structuredData in structuredDataSchemas) {
88
- const value = structuredDataSchemas[structuredData];
89
- const fields = value.schema?.fields;
88
+ const value = structuredDataSchemas[structuredData];
89
+ const fields = value.schema?.fields;
90
90
 
91
- if (!fields) continue;
91
+ if (!fields) continue;
92
92
 
93
- for (const field of fields) {
94
- const { computed = null } = field;
93
+ for (const field of fields) {
94
+ const { computed = null } = field;
95
95
 
96
- if (computed) field.computed = computed.toString();
97
- }
96
+ if (computed) field.computed = computed.toString();
97
+ }
98
98
  }
99
99
  };
100
100
 
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ source ./scripts/start/check-node-version.sh && export NODE_OPTIONS=--openssl-legacy-provider && env-cmd -f env/.env.development node scripts/build.js
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ source ./scripts/start/check-node-version.sh && export NODE_OPTIONS=--openssl-legacy-provider && node scripts/build.js
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ [[ $(node -v | cut -d. -f1 | tr -d 'v') -ge 18 ]]
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ source ./scripts/start/check-node-version.sh && export NODE_OPTIONS=--openssl-legacy-provider && env-cmd -f env/.env.development node scripts/start.js
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ source ./scripts/start/check-node-version.sh && export NODE_OPTIONS=--openssl-legacy-provider && env-cmd -f env/.env.local node scripts/start.js
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ source ./scripts/start/check-node-version.sh && export NODE_OPTIONS=--openssl-legacy-provider && env-cmd -f env/.env.staging node scripts/start.js
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ source ./scripts/start/check-node-version.sh && export NODE_OPTIONS=--openssl-legacy-provider && env-cmd -f env/.env.development node scripts/dev.js
@@ -1,10 +1,10 @@
1
- export const NAME: string = "menu";
1
+ export const NAME = "menu";
2
2
 
3
- export const SET_ORIGINAL_MENUS: string = `${NAME}/SET_ORIGINAL_MENUS`;
4
- export const SET_ORIGINAL_MENU: string = `${NAME}/SET_CURRENT_ORIGINAL_MENU`;
5
- export const SET_EDITOR_MENU: string = `${NAME}/SET_EDITOR_MENU`;
6
- export const SET_ID: string = `${NAME}/SET_ID`;
7
- export const SET_ITEM: string = `${NAME}/SET_ITEM`;
8
- export const SET_MENU_FORM_DATA: string = `${NAME}/SET_MENU_FORM_DATA`;
9
- export const SET_TOTAL_ITEMS: string = `${NAME}/SET_TOTAL_ITEMS`;
10
- export const SET_CURRENT_MENU: string = `${NAME}/SET_CURRENT_MENU`;
3
+ export const SET_ORIGINAL_MENUS = `${NAME}/SET_ORIGINAL_MENUS`;
4
+ export const SET_ORIGINAL_MENU = `${NAME}/SET_CURRENT_ORIGINAL_MENU`;
5
+ export const SET_EDITOR_MENU = `${NAME}/SET_EDITOR_MENU`;
6
+ export const SET_ID = `${NAME}/SET_ID`;
7
+ export const SET_ITEM = `${NAME}/SET_ITEM`;
8
+ export const SET_MENU_FORM_DATA = `${NAME}/SET_MENU_FORM_DATA`;
9
+ export const SET_TOTAL_ITEMS = `${NAME}/SET_TOTAL_ITEMS`;
10
+ export const SET_CURRENT_MENU = `${NAME}/SET_CURRENT_MENU`;