@griddo/ax 11.0.20 → 11.0.21

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": "11.0.20",
4
+ "version": "11.0.21",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -35,17 +35,18 @@
35
35
  "test:dev": "npm run test -- --watch",
36
36
  "test:dev:coverage": "npm run test:coverage -- --watch",
37
37
  "lint": "eslint .",
38
+ "lint:errors": "eslint . --quiet",
38
39
  "format": "prettier -w .",
39
40
  "start:test": "env-cmd -f env/.env.development node scripts/dev.js"
40
41
  },
41
42
  "dependencies": {
42
- "@atlaskit/tree": "^8.2.0",
43
+ "@atlaskit/tree": "8.12.0",
43
44
  "@babel/plugin-transform-optional-chaining": "7.24.5",
44
45
  "@babel/preset-react": "^7.14.5",
45
46
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.0-rc.0",
46
- "@styled-system/prop-types": "5.1.2",
47
- "@styled-system/theme-get": "^5.1.2",
48
- "@svgr/webpack": "^5.5.0",
47
+ "@styled-system/prop-types": "5.1.5",
48
+ "@styled-system/theme-get": "5.1.2",
49
+ "@svgr/webpack": "5.5.0",
49
50
  "@testing-library/jest-dom": "^5.16.4",
50
51
  "@testing-library/react": "^13.0.0",
51
52
  "@testing-library/user-event": "^14.0.4",
@@ -53,11 +54,11 @@
53
54
  "@types/draft-js": "^0.10.44",
54
55
  "@types/lodash.isequal": "^4.5.5",
55
56
  "@types/markdown-draft-js": "^2.2.2",
56
- "@types/node": "^20",
57
- "@types/react": "^18.0.1",
57
+ "@types/node": "20.17.10",
58
+ "@types/react": "18.2.11",
58
59
  "@types/react-beautiful-dnd": "^13.1.2",
59
60
  "@types/react-datepicker": "^3.1.1",
60
- "@types/react-dom": "^18.0.0",
61
+ "@types/react-dom": "18.0.11",
61
62
  "@types/react-draft-wysiwyg": "^1.13.1",
62
63
  "@types/react-redux": "^7.1.23",
63
64
  "@types/react-router-dom": "5.3.3",
@@ -66,10 +67,10 @@
66
67
  "@types/react-test-renderer": "17.0.1",
67
68
  "@types/react-textarea-autosize": "^4.3.5",
68
69
  "@types/styled-components": "^5.1.25",
69
- "@types/uuid": "^8.3.1",
70
+ "@types/uuid": "8.3.4",
70
71
  "@types/webpack-env": "^1.14.1",
71
- "@typescript-eslint/eslint-plugin": "^5.45.0",
72
- "@typescript-eslint/parser": "^6.0.0",
72
+ "@typescript-eslint/eslint-plugin": "7.18.0",
73
+ "@typescript-eslint/parser": "7.18.0",
73
74
  "add": "^2.0.6",
74
75
  "axios": "0.19.0",
75
76
  "babel-eslint": "10.0.3",
@@ -120,12 +121,12 @@
120
121
  "postcss-normalize": "7.0.1",
121
122
  "postcss-preset-env": "6.7.0",
122
123
  "postcss-safe-parser": "^6.0.0",
123
- "react": "*",
124
+ "react": "18.1.0",
124
125
  "react-app-polyfill": "^1.0.4",
125
126
  "react-beautiful-dnd": "^13.1.0",
126
127
  "react-datepicker": "^3.2.2",
127
128
  "react-dev-utils": "^11.0.4",
128
- "react-dom": "*",
129
+ "react-dom": "18.1.0",
129
130
  "react-draft-wysiwyg": "^1.14.5",
130
131
  "react-error-boundary": "4.0.13",
131
132
  "react-frame-component": "^5.2.1",
@@ -145,24 +146,23 @@
145
146
  "resolve-url-loader": "^4.0.0",
146
147
  "sass-alias": "^1.0.5",
147
148
  "sass-loader": "^10.0.0",
148
- "semver": "^7.3.5",
149
- "slick-carousel": "^1.8.1",
149
+ "semver": "7.6.3",
150
+ "slick-carousel": "1.8.1",
150
151
  "source-map-loader": "^1.1.2",
151
152
  "string-replace-loader": "^3.0.1",
152
153
  "style-loader": "^1.2.1",
153
154
  "styled-components": "^5.3.5",
154
155
  "styled-reset": "4.0.1",
155
- "styled-system": "^5.1.5",
156
+ "styled-system": "5.1.5",
156
157
  "terser-webpack-plugin": "1.4.1",
157
158
  "ts-pnp": "1.1.4",
158
159
  "typescript": "^4.6.3",
159
- "url-loader": "^4.1.1",
160
- "uuid": "^8.3.2",
160
+ "url-loader": "4.1.1",
161
+ "uuid": "8.3.2",
161
162
  "webpack": "4.44.2",
162
163
  "webpack-dev-server": "3.11.1",
163
164
  "webpack-manifest-plugin": "2.2.0",
164
- "workbox-webpack-plugin": "5.1.4",
165
- "yarn": "^1.22.11"
165
+ "workbox-webpack-plugin": "5.1.4"
166
166
  },
167
167
  "devDependencies": {
168
168
  "@babel/core": "^7.21.0",
@@ -172,7 +172,7 @@
172
172
  "@types/redux-mock-store": "^1.0.3",
173
173
  "axios-mock-adapter": "^1.21.2",
174
174
  "babel-jest": "^27.5.1",
175
- "eslint": "^8.0.0",
175
+ "eslint": "8.57.1",
176
176
  "eslint-loader": "^4.0.2",
177
177
  "eslint-plugin-import": "^2.23.4",
178
178
  "eslint-plugin-jsx-a11y": "6.2.3",
@@ -181,7 +181,7 @@
181
181
  "jest": "^27.5.1",
182
182
  "jest-mock-extended": "^2.0.5",
183
183
  "jest-styled-components": "^7.0.8",
184
- "prettier": "^2.3.0",
184
+ "prettier": "3.4.2",
185
185
  "react-test-render": "1.1.2",
186
186
  "react-test-renderer": "^18.2.0",
187
187
  "redux-mock-store": "^1.5.4",
@@ -222,12 +222,8 @@
222
222
  "tsconfig.json",
223
223
  "tsconfig.paths.json"
224
224
  ],
225
- "peerDependencies": {
226
- "react": "*",
227
- "react-dom": "*"
228
- },
229
225
  "publishConfig": {
230
226
  "access": "public"
231
227
  },
232
- "gitHead": "0fbed6734ed008044d435f2b5e4587563445cf1c"
228
+ "gitHead": "fe8a800d8704c7d366e8b5cc82da08fea597086f"
233
229
  }
@@ -30,12 +30,18 @@ export interface ISetIsUploading {
30
30
 
31
31
  export interface ISetUploadSuccess {
32
32
  type: typeof SET_UPLOAD_SUCCESS;
33
- payload: { isUploading: boolean, isSuccess: boolean };
33
+ payload: { isUploading: boolean; isSuccess: boolean };
34
34
  }
35
35
 
36
36
  export interface ISetUploadError {
37
37
  type: typeof SET_UPLOAD_ERROR;
38
- payload: { isUploading: boolean, isError: boolean, errorMsg: string };
38
+ payload: { isUploading: boolean; isError: boolean; errorMsg: string };
39
39
  }
40
40
 
41
- export type GalleryActionsCreators = ISetData & ISetIsLoading & ISetIsSaving & ISetIsUploading & ISetUploadSuccess & ISetUploadError;
41
+ export type GalleryActionsCreators =
42
+ | ISetData
43
+ | ISetIsLoading
44
+ | ISetIsSaving
45
+ | ISetIsUploading
46
+ | ISetUploadSuccess
47
+ | ISetUploadError;
@@ -21,4 +21,8 @@ export interface ISetCopyIntegration {
21
21
  payload: { integrationCopy: { date: Date; integration: Partial<IIntegration> } | null };
22
22
  }
23
23
 
24
- export type IntegrationsActionsCreators = ISetIntegrations;
24
+ export type IntegrationsActionsCreators =
25
+ | ISetIntegrations
26
+ | ISetTotalItems
27
+ | ISetCurrentIntegration
28
+ | ISetCopyIntegration;
@@ -16,7 +16,7 @@ export const initialState = {
16
16
  integrationCopy: null,
17
17
  };
18
18
 
19
- export function reducer(state = initialState, action: IntegrationsActionsCreators): IIntegrationsState {
19
+ export function reducer(state = initialState, action: IntegrationsActionsCreators) {
20
20
  switch (action.type) {
21
21
  case SET_INTEGRATIONS:
22
22
  case SET_TOTAL_ITEMS:
@@ -18,7 +18,6 @@ import {
18
18
  SET_COPY_MODULE,
19
19
  SET_NAV_PAGES,
20
20
  } from "./constants";
21
- import { NavigationActionsCreators } from "./interfaces";
22
21
 
23
22
  export interface INavigationState {
24
23
  editorContent: any | undefined;
@@ -49,4 +49,4 @@ export interface ISetCurrentMenu {
49
49
  payload: { currentMenu: string };
50
50
  }
51
51
 
52
- export type MenuActionsCreators = ISetSavedMenus & ISetEditorMenu & ISetItem & ISetTotalItems;
52
+ export type MenuActionsCreators = ISetSavedMenus | ISetEditorMenu | ISetItem | ISetTotalItems;
@@ -28,8 +28,6 @@ import {
28
28
  SET_SCROLL_EDITOR_ID,
29
29
  } from "./constants";
30
30
 
31
- import { PageEditorActionsCreators } from "./interfaces";
32
-
33
31
  export interface IPageEditorState {
34
32
  editorContent: IPage | Record<string, unknown> | { path: string; slug: string; [key: string]: unknown };
35
33
  template: string;
@@ -20,4 +20,4 @@ export interface ISetTotalImports {
20
20
  payload: { totalImports: number };
21
21
  }
22
22
 
23
- export type RedirectsActionsCreators = ISetRedirects;
23
+ export type RedirectsActionsCreators = ISetRedirects | ISetTotalItems | ISetImports | ISetTotalImports;
@@ -41,7 +41,7 @@ const capitalize = (s: string): string => {
41
41
  const getInitials = (name?: string): string => {
42
42
  if (!name) return "";
43
43
 
44
- const rgx = new RegExp(/(\p{L}{1})\p{L}+/, "gu");
44
+ const rgx = new RegExp(String.raw`(\p{L}{1})\p{L}+`, "gu");
45
45
  const words: string[] = name.match(rgx) || [];
46
46
  const initials = words.reduce((previous: string[], current: string) => [...previous, current[0]], []);
47
47
  return initials.join("").slice(0, 2).toUpperCase();
@@ -123,7 +123,7 @@ const copyTextToClipboard = (text: string): Promise<void> => {
123
123
  };
124
124
 
125
125
  const stripHtml = (html: string | null) => {
126
- if(!html || typeof html !== "string") return "";
126
+ if (!html || typeof html !== "string") return "";
127
127
  const tmp = document.createElement("DIV");
128
128
  tmp.innerHTML = html;
129
129
  return tmp.textContent || tmp.innerText || "";