@griddo/ax 11.0.18-alpha.2 → 11.0.18

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.18-alpha.2",
4
+ "version": "11.0.18",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -35,18 +35,17 @@
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",
39
38
  "format": "prettier -w .",
40
39
  "start:test": "env-cmd -f env/.env.development node scripts/dev.js"
41
40
  },
42
41
  "dependencies": {
43
- "@atlaskit/tree": "8.12.0",
42
+ "@atlaskit/tree": "^8.2.0",
44
43
  "@babel/plugin-transform-optional-chaining": "7.24.5",
45
44
  "@babel/preset-react": "^7.14.5",
46
45
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.0-rc.0",
47
- "@styled-system/prop-types": "5.1.5",
48
- "@styled-system/theme-get": "5.1.2",
49
- "@svgr/webpack": "5.5.0",
46
+ "@styled-system/prop-types": "5.1.2",
47
+ "@styled-system/theme-get": "^5.1.2",
48
+ "@svgr/webpack": "^5.5.0",
50
49
  "@testing-library/jest-dom": "^5.16.4",
51
50
  "@testing-library/react": "^13.0.0",
52
51
  "@testing-library/user-event": "^14.0.4",
@@ -54,11 +53,11 @@
54
53
  "@types/draft-js": "^0.10.44",
55
54
  "@types/lodash.isequal": "^4.5.5",
56
55
  "@types/markdown-draft-js": "^2.2.2",
57
- "@types/node": "20.17.10",
58
- "@types/react": "18.2.11",
56
+ "@types/node": "^20",
57
+ "@types/react": "^18.0.1",
59
58
  "@types/react-beautiful-dnd": "^13.1.2",
60
59
  "@types/react-datepicker": "^3.1.1",
61
- "@types/react-dom": "18.0.11",
60
+ "@types/react-dom": "^18.0.0",
62
61
  "@types/react-draft-wysiwyg": "^1.13.1",
63
62
  "@types/react-redux": "^7.1.23",
64
63
  "@types/react-router-dom": "5.3.3",
@@ -67,10 +66,10 @@
67
66
  "@types/react-test-renderer": "17.0.1",
68
67
  "@types/react-textarea-autosize": "^4.3.5",
69
68
  "@types/styled-components": "^5.1.25",
70
- "@types/uuid": "8.3.4",
69
+ "@types/uuid": "^8.3.1",
71
70
  "@types/webpack-env": "^1.14.1",
72
- "@typescript-eslint/eslint-plugin": "7.18.0",
73
- "@typescript-eslint/parser": "7.18.0",
71
+ "@typescript-eslint/eslint-plugin": "^5.45.0",
72
+ "@typescript-eslint/parser": "^6.0.0",
74
73
  "add": "^2.0.6",
75
74
  "axios": "0.19.0",
76
75
  "babel-eslint": "10.0.3",
@@ -121,12 +120,12 @@
121
120
  "postcss-normalize": "7.0.1",
122
121
  "postcss-preset-env": "6.7.0",
123
122
  "postcss-safe-parser": "^6.0.0",
124
- "react": "18.1.0",
123
+ "react": "*",
125
124
  "react-app-polyfill": "^1.0.4",
126
125
  "react-beautiful-dnd": "^13.1.0",
127
126
  "react-datepicker": "^3.2.2",
128
127
  "react-dev-utils": "^11.0.4",
129
- "react-dom": "18.1.0",
128
+ "react-dom": "*",
130
129
  "react-draft-wysiwyg": "^1.14.5",
131
130
  "react-error-boundary": "4.0.13",
132
131
  "react-frame-component": "^5.2.1",
@@ -146,23 +145,24 @@
146
145
  "resolve-url-loader": "^4.0.0",
147
146
  "sass-alias": "^1.0.5",
148
147
  "sass-loader": "^10.0.0",
149
- "semver": "7.6.3",
150
- "slick-carousel": "1.8.1",
148
+ "semver": "^7.3.5",
149
+ "slick-carousel": "^1.8.1",
151
150
  "source-map-loader": "^1.1.2",
152
151
  "string-replace-loader": "^3.0.1",
153
152
  "style-loader": "^1.2.1",
154
153
  "styled-components": "^5.3.5",
155
154
  "styled-reset": "4.0.1",
156
- "styled-system": "5.1.5",
155
+ "styled-system": "^5.1.5",
157
156
  "terser-webpack-plugin": "1.4.1",
158
157
  "ts-pnp": "1.1.4",
159
- "typescript": "5.7.2",
160
- "url-loader": "4.1.1",
161
- "uuid": "8.3.2",
158
+ "typescript": "^4.6.3",
159
+ "url-loader": "^4.1.1",
160
+ "uuid": "^8.3.2",
162
161
  "webpack": "4.44.2",
163
162
  "webpack-dev-server": "3.11.1",
164
163
  "webpack-manifest-plugin": "2.2.0",
165
- "workbox-webpack-plugin": "5.1.4"
164
+ "workbox-webpack-plugin": "5.1.4",
165
+ "yarn": "^1.22.11"
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.57.1",
175
+ "eslint": "^8.0.0",
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": "3.4.2",
184
+ "prettier": "^2.3.0",
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,8 +222,12 @@
222
222
  "tsconfig.json",
223
223
  "tsconfig.paths.json"
224
224
  ],
225
+ "peerDependencies": {
226
+ "react": "*",
227
+ "react-dom": "*"
228
+ },
225
229
  "publishConfig": {
226
230
  "access": "public"
227
231
  },
228
- "gitHead": "f14ead144d35aab2bad62fef043c4a9c1de845ec"
232
+ "gitHead": "9d2d527ba1cce8195db081b51b2ae4cdb08dd74d"
229
233
  }
@@ -30,18 +30,12 @@ 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 =
42
- | ISetData
43
- | ISetIsLoading
44
- | ISetIsSaving
45
- | ISetIsUploading
46
- | ISetUploadSuccess
47
- | ISetUploadError;
41
+ export type GalleryActionsCreators = ISetData & ISetIsLoading & ISetIsSaving & ISetIsUploading & ISetUploadSuccess & ISetUploadError;
@@ -21,8 +21,4 @@ export interface ISetCopyIntegration {
21
21
  payload: { integrationCopy: { date: Date; integration: Partial<IIntegration> } | null };
22
22
  }
23
23
 
24
- export type IntegrationsActionsCreators =
25
- | ISetIntegrations
26
- | ISetTotalItems
27
- | ISetCurrentIntegration
28
- | ISetCopyIntegration;
24
+ export type IntegrationsActionsCreators = ISetIntegrations;
@@ -16,7 +16,7 @@ export const initialState = {
16
16
  integrationCopy: null,
17
17
  };
18
18
 
19
- export function reducer(state = initialState, action: IntegrationsActionsCreators) {
19
+ export function reducer(state = initialState, action: IntegrationsActionsCreators): IIntegrationsState {
20
20
  switch (action.type) {
21
21
  case SET_INTEGRATIONS:
22
22
  case SET_TOTAL_ITEMS:
@@ -18,6 +18,7 @@ import {
18
18
  SET_COPY_MODULE,
19
19
  SET_NAV_PAGES,
20
20
  } from "./constants";
21
+ import { NavigationActionsCreators } from "./interfaces";
21
22
 
22
23
  export interface INavigationState {
23
24
  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,6 +28,8 @@ import {
28
28
  SET_SCROLL_EDITOR_ID,
29
29
  } from "./constants";
30
30
 
31
+ import { PageEditorActionsCreators } from "./interfaces";
32
+
31
33
  export interface IPageEditorState {
32
34
  editorContent: IPage | Record<string, unknown> | { path: string; slug: string; [key: string]: unknown };
33
35
  template: string;
@@ -20,4 +20,4 @@ export interface ISetTotalImports {
20
20
  payload: { totalImports: number };
21
21
  }
22
22
 
23
- export type RedirectsActionsCreators = ISetRedirects | ISetTotalItems | ISetImports | ISetTotalImports;
23
+ export type RedirectsActionsCreators = ISetRedirects;
@@ -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(String.raw`(\p{L}{1})\p{L}+`, "gu");
44
+ const rgx = new RegExp(/(\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 || "";