@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 +8 -8
- package/scripts/griddo-sync-schemas.js +10 -10
- package/scripts/start/build-dev.sh +2 -0
- package/scripts/start/build.sh +2 -0
- package/scripts/start/check-node-version.sh +2 -0
- package/scripts/start/start-dev.sh +2 -0
- package/scripts/start/start-local.sh +2 -0
- package/scripts/start/start-staging.sh +2 -0
- package/scripts/start/start-test.sh +2 -0
- package/src/containers/Navigation/Menu/constants.tsx +9 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "
|
|
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": "
|
|
26
|
-
"start:dev": "
|
|
27
|
-
"start:staging": "
|
|
28
|
-
"build": "
|
|
29
|
-
"build:dev": "
|
|
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": "
|
|
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": "
|
|
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
|
-
|
|
89
|
-
|
|
88
|
+
const value = structuredDataSchemas[structuredData];
|
|
89
|
+
const fields = value.schema?.fields;
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
if (!fields) continue;
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
for (const field of fields) {
|
|
94
|
+
const { computed = null } = field;
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
if (computed) field.computed = computed.toString();
|
|
97
|
+
}
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export const NAME
|
|
1
|
+
export const NAME = "menu";
|
|
2
2
|
|
|
3
|
-
export const SET_ORIGINAL_MENUS
|
|
4
|
-
export const SET_ORIGINAL_MENU
|
|
5
|
-
export const SET_EDITOR_MENU
|
|
6
|
-
export const SET_ID
|
|
7
|
-
export const SET_ITEM
|
|
8
|
-
export const SET_MENU_FORM_DATA
|
|
9
|
-
export const SET_TOTAL_ITEMS
|
|
10
|
-
export const 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`;
|