@griddo/ax 12.11.1-rc.1 → 12.11.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/README.md CHANGED
@@ -25,6 +25,8 @@
25
25
  - `yarn test:watch` - Ejecuta los tests en modo watch
26
26
  - `yarn test:ci` - Ejecuta los tests en modo CI (sin paralelización)
27
27
  - `yarn test:coverage` - Ejecuta los tests y genera reporte de cobertura
28
+ - `yarn test:dev` - Ejecuta los tests en modo watch (alias de `test:watch`)
29
+ - `yarn test:dev:coverage` - Ejecuta los tests con cobertura en modo watch
28
30
 
29
31
  ### Linting y Formato
30
32
 
@@ -381,8 +381,7 @@ module.exports = function (webpackEnv) {
381
381
  {
382
382
  test: /\.(js|mjs|jsx|ts|tsx)$/,
383
383
  include: [paths.appSrc, paths.componentsPath],
384
- // pnpm installs ax under node_modules/.pnpm/<id>/node_modules/@griddo/ax.
385
- exclude: [/node_modules\/(?!(\.pnpm\/[^/]+\/node_modules\/)?@griddo).*/],
384
+ exclude: [/node_modules\/(?!@griddo).*/],
386
385
  loader: require.resolve("babel-loader"),
387
386
  options: {
388
387
  customize: require.resolve("babel-preset-react-app/webpack-overrides"),
@@ -24,13 +24,10 @@ const createConfig = ({ input, output }) => ({
24
24
  resolve: { extensions: [".ts", ".js"] },
25
25
  exclude: /(node_modules|bower_components)/,
26
26
  use: {
27
- loader: require.resolve("babel-loader"),
27
+ loader: "babel-loader",
28
28
  options: {
29
- presets: [
30
- [require.resolve("@babel/preset-env"), { targets: { node: "current" } }],
31
- require.resolve("@babel/preset-typescript"),
32
- ],
33
- plugins: [require.resolve("@babel/plugin-transform-optional-chaining")],
29
+ presets: [["@babel/preset-env", { targets: { node: "current" } }], "@babel/preset-typescript"],
30
+ plugins: ["@babel/plugin-transform-optional-chaining"],
34
31
  },
35
32
  },
36
33
  },
@@ -39,7 +36,7 @@ const createConfig = ({ input, output }) => ({
39
36
  // API crashing (it hasn't webpack)
40
37
  {
41
38
  test: /\.(png|jpe?g|gif)$/i,
42
- use: [{ loader: require.resolve("ignore-loader") }],
39
+ use: [{ loader: "ignore-loader" }],
43
40
  },
44
41
  ],
45
42
  },
package/package.json CHANGED
@@ -1,7 +1,15 @@
1
1
  {
2
2
  "name": "@griddo/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "12.11.1-rc.1",
4
+ "version": "12.11.1",
5
+ "authors": [
6
+ "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
+ "Diego M. Béjar <diego.bejar@secuoyas.com>",
8
+ "Francis Vega <francis.vega@secuoyas.com>",
9
+ "Gonzalo Hernández <gonzalo.hernandez@secuoyas.com>",
10
+ "Sergio Ródenas <sergio.rodenas@secuoyas.com>",
11
+ "Txema León <txema.leon@secuoyas.com>"
12
+ ],
5
13
  "homepage": "https://griddo.io",
6
14
  "repository": {
7
15
  "type": "git",
@@ -12,57 +20,62 @@
12
20
  "griddo-sync-schemas": "./scripts/griddo-sync-schemas.js"
13
21
  },
14
22
  "scripts": {
23
+ "// START": "",
15
24
  "start": "npm run start:dev",
16
25
  "start:local": "node --env-file=./env/.env.local ./scripts/start.js",
17
26
  "start:dev": "node --env-file=./env/.env.development ./scripts/start.js",
18
27
  "start:staging": "node --env-file=./env/.env.staging ./scripts/start.js",
28
+ "// BUILD": "",
19
29
  "build": "node ./scripts/build.js",
20
30
  "build:dev": "node --env-file=./env/.env.development ./scripts/build.js",
31
+ "// TEST": "",
21
32
  "test": "vitest run",
22
33
  "test:watch": "vitest",
23
34
  "test:ci": "vitest run --no-file-parallelism",
24
35
  "test:coverage": "vitest run --coverage",
36
+ "test:dev": "vitest",
37
+ "test:dev:coverage": "vitest --coverage",
38
+ "// TYPES": "",
25
39
  "typecheck": "tsc --noEmit",
40
+ "// LINT": "",
26
41
  "lint": "biome check",
27
42
  "format:write": "biome format --write"
28
43
  },
29
44
  "dependencies": {
30
- "@babel/core": "7.29.7",
31
- "@babel/plugin-transform-optional-chaining": "7.29.7",
32
- "@babel/preset-env": "7.29.7",
33
- "@babel/preset-typescript": "7.29.7",
34
45
  "@dnd-kit/core": "6.3.1",
35
46
  "@dnd-kit/sortable": "10.0.0",
36
- "@dnd-kit/utilities": "3.2.2",
37
- "@griddo/api-types": "1.3.2",
47
+ "@griddo/api-types": "1.1.3",
38
48
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.17",
49
+ "@styled-system/prop-types": "5.1.5",
50
+ "@styled-system/theme-get": "5.1.2",
39
51
  "@svgr/webpack": "8.1.0",
40
52
  "@testing-library/jest-dom": "5.17.0",
41
53
  "@testing-library/react": "13.4.0",
42
- "@testing-library/user-event": "14.6.7",
54
+ "@testing-library/user-event": "14.6.6",
43
55
  "@types/compress.js": "1.1.3",
44
56
  "@types/draft-js": "0.11.20",
45
57
  "@types/lodash.isequal": "4.5.8",
46
58
  "@types/markdown-draft-js": "2.2.7",
47
- "@types/node": "24.12.4",
59
+ "@types/node": "20.19.43",
48
60
  "@types/react": "18.2.79",
61
+ "@types/react-beautiful-dnd": "13.1.8",
49
62
  "@types/react-datepicker": "4.19.6",
50
63
  "@types/react-dom": "18.2.25",
51
64
  "@types/react-draft-wysiwyg": "1.13.9",
52
65
  "@types/react-redux": "7.1.34",
53
- "@types/react-router": "5.1.20",
54
66
  "@types/react-router-dom": "5.3.3",
55
67
  "@types/react-slick": "0.23.13",
68
+ "@types/react-test-renderer": "17.0.9",
56
69
  "@types/styled-components": "5.1.36",
57
- "@types/testing-library__jest-dom": "5.14.9",
58
70
  "@types/uuid": "8.3.4",
71
+ "@types/webpack-env": "1.18.8",
59
72
  "axios": "0.19.0",
60
73
  "babel-loader": "9.2.1",
61
74
  "babel-plugin-named-asset-import": "0.3.8",
75
+ "babel-plugin-root-import": "6.6.0",
62
76
  "babel-plugin-styled-components": "2.3.0",
63
77
  "babel-preset-react-app": "10.1.0",
64
78
  "case-sensitive-paths-webpack-plugin": "2.4.0",
65
- "chalk": "4.1.2",
66
79
  "compress.js": "1.2.2",
67
80
  "connected-react-router": "6.9.3",
68
81
  "css-loader": "6.11.0",
@@ -73,28 +86,30 @@
73
86
  "draft-js": "0.11.7",
74
87
  "draft-js-import-html": "1.4.1",
75
88
  "draftjs-to-html": "0.9.1",
89
+ "enhanced-resolve": "5.18.1",
90
+ "env-cmd": "10.1.0",
76
91
  "find-up": "5.0.0",
77
- "froala-editor": "4.0.4",
78
92
  "fs-extra": "7.0.1",
79
- "history": "4.10.1",
80
93
  "html-to-draftjs": "1.5.0",
81
- "html-to-image": "1.11.13",
94
+ "html-to-image": "1.11.7",
82
95
  "html-webpack-plugin": "5.6.8",
83
96
  "ignore-loader": "0.1.2",
84
- "immutable": "3.7.6",
97
+ "is-wsl": "3.1.0",
85
98
  "jsdom": "20.0.3",
99
+ "jsdom-global": "3.0.2",
86
100
  "lodash.isequal": "4.5.0",
87
101
  "markdown-draft-js": "2.4.0",
88
102
  "mini-css-extract-plugin": "2.10.2",
89
103
  "node-polyfill-webpack-plugin": "3.0.0",
90
104
  "pkg-dir": "5.0.0",
91
105
  "polished": "3.7.2",
92
- "postcss": "8.5.28",
106
+ "postcss": "8.5.26",
93
107
  "postcss-flexbugs-fixes": "5.0.2",
94
108
  "postcss-loader": "7.3.4",
95
109
  "postcss-normalize": "7.0.1",
96
110
  "postcss-preset-env": "6.7.2",
97
111
  "react": "18.2.0",
112
+ "react-app-polyfill": "1.0.6",
98
113
  "react-datepicker": "4.25.0",
99
114
  "react-dev-utils": "12.0.1",
100
115
  "react-dom": "18.2.0",
@@ -105,7 +120,6 @@
105
120
  "react-qr-code": "2.2.0",
106
121
  "react-redux": "7.2.9",
107
122
  "react-refresh": "0.14.2",
108
- "react-router": "5.3.4",
109
123
  "react-router-dom": "5.3.4",
110
124
  "react-select": "5.10.2",
111
125
  "react-slick": "0.30.3",
@@ -114,37 +128,50 @@
114
128
  "redux": "4.2.1",
115
129
  "redux-devtools-extension": "2.13.9",
116
130
  "redux-persist": "6.0.0",
117
- "redux-thunk": "2.4.2",
131
+ "reflect-metadata": "0.1.13",
118
132
  "resolve": "1.22.12",
119
133
  "resolve-url-loader": "4.0.0",
134
+ "sass-alias": "1.0.5",
120
135
  "sass-loader": "16.0.8",
121
136
  "semver": "7.8.5",
122
137
  "slick-carousel": "1.8.1",
138
+ "source-map-loader": "1.1.3",
139
+ "string-replace-loader": "3.1.0",
123
140
  "style-loader": "3.3.4",
124
141
  "styled-components": "5.3.11",
125
142
  "styled-reset": "4.0.1",
143
+ "styled-system": "5.1.5",
126
144
  "terser-webpack-plugin": "5.6.1",
127
145
  "typescript": "6.0.3",
128
146
  "uuid": "8.3.2",
129
- "webpack": "5.111.1",
147
+ "webpack": "5.109.2",
130
148
  "webpack-dev-server": "4.15.2",
131
149
  "webpack-manifest-plugin": "5.0.1"
132
150
  },
133
151
  "devDependencies": {
152
+ "@babel/core": "7.29.7",
153
+ "@babel/helper-environment-visitor": "7.24.7",
154
+ "@babel/helper-function-name": "7.24.7",
155
+ "@babel/helper-hoist-variables": "7.24.7",
156
+ "@babel/helper-split-export-declaration": "7.24.7",
157
+ "@babel/plugin-transform-optional-chaining": "7.29.7",
158
+ "@babel/preset-env": "7.29.7",
159
+ "@babel/preset-react": "7.29.7",
160
+ "@babel/preset-typescript": "7.29.7",
134
161
  "@biomejs/biome": "2.3.8",
135
- "@griddo/core": "12.11.1-rc.1",
136
162
  "@types/redux-mock-store": "1.5.0",
137
- "@vitest/coverage-v8": "4.1.11",
163
+ "@vitest/coverage-v8": "4.1.10",
138
164
  "axios-mock-adapter": "1.22.0",
165
+ "prettier": "3.4.2",
166
+ "react-test-renderer": "18.2.0",
139
167
  "redux-mock-store": "1.5.5",
140
- "vite": "8.3.1",
141
- "vitest": "4.1.11",
168
+ "redux-thunk": "2.4.2",
169
+ "ts-node": "10.9.2",
170
+ "vite": "7.3.6",
171
+ "vitest": "4.1.10",
142
172
  "vitest-mock-extended": "5.1.1",
143
173
  "vitest-styled-components": "1.0.0"
144
174
  },
145
- "peerDependencies": {
146
- "@griddo/core": "12.11.1-rc.1"
147
- },
148
175
  "babel": {
149
176
  "presets": [
150
177
  "react-app"
@@ -162,11 +189,9 @@
162
189
  "last 1 safari version"
163
190
  ]
164
191
  },
165
- "engines": {
166
- "node": ">=24.12.0"
167
- },
168
192
  "files": [
169
193
  "config",
194
+ "patches",
170
195
  "public",
171
196
  "scripts",
172
197
  "src",
@@ -176,5 +201,5 @@
176
201
  "publishConfig": {
177
202
  "access": "public"
178
203
  },
179
- "gitHead": "0a3142a1e81f0a55941363e852dbff188b5d25cd"
204
+ "gitHead": "fd686f96ec397d69623e1827cb2ecb87a06b280f"
180
205
  }
package/src/global.d.ts CHANGED
@@ -3,6 +3,7 @@ declare module "components";
3
3
  declare module "froala-editor";
4
4
  declare module "react-froala-wysiwyg";
5
5
  declare module "lodash.isequal";
6
+ declare module "is-wsl";
6
7
  declare module "react-draft-wysiwyg";
7
8
  declare module "history";
8
9
  declare module "draftjs-to-html";
@@ -1,6 +1,5 @@
1
1
  import type React from "react";
2
2
 
3
- import type { ExportFormat } from "@griddo/api-types";
4
3
  import type { IModal } from "@ax/types";
5
4
  import { FieldsBehavior, Modal } from "@ax/components";
6
5
  import type { IDownloadFormState } from "..";
@@ -15,7 +14,7 @@ const DownloadModal = (props: IDownloadModalProps) => {
15
14
  const setEndDate = (endDate: string) => setForm((state) => ({ ...state, endDate }));
16
15
  const setStartTime = (startTime: string) => setForm((state) => ({ ...state, startTime }));
17
16
  const setMaxEvents = (maxEvents: number) => setForm((state) => ({ ...state, maxEvents }));
18
- const setFormat = (format: ExportFormat) => setForm((state) => ({ ...state, format }));
17
+ const setFormat = (format: string) => setForm((state) => ({ ...state, format }));
19
18
 
20
19
  const secondaryModalAction = { title: "Cancel", onClick: toggleModal };
21
20
 
@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useRef, useState } from "react";
2
2
  import { connect } from "react-redux";
3
3
  import { format, subDays } from "date-fns";
4
4
 
5
- import type { ExportFormat, LogActivityExportRequest, LogActivityPaginationRequest } from "@griddo/api-types";
5
+ import type { LogActivityExportRequest, LogActivityPaginationRequest } from "@griddo/api-types";
6
6
  import type { ILogItemsByDay, ILogItemsByUser, IQueryValue, IRootState, IStructuredData } from "@ax/types";
7
7
  import { EmptyState, ErrorToast, FilterTagsBar, MainWrapper, SearchTagsBar, Select, TableList } from "@ax/components";
8
8
  import { activityLogActions } from "@ax/containers/ActivityLog";
@@ -290,7 +290,7 @@ export interface IDownloadFormState {
290
290
  dateRange: string;
291
291
  startTime: string | null;
292
292
  maxEvents: number | null;
293
- format: ExportFormat;
293
+ format: string;
294
294
  startDate: string | null;
295
295
  endDate: string | null;
296
296
  }
package/tsconfig.json CHANGED
@@ -15,7 +15,15 @@
15
15
  "useUnknownInCatchVariables": false,
16
16
  "noEmit": true,
17
17
  "jsx": "react-jsx",
18
- "types": ["vitest/globals", "react", "node", "react-dom", "@testing-library/jest-dom"]
18
+ "types": [
19
+ "vitest/globals",
20
+ "react",
21
+ "reflect-metadata",
22
+ "node",
23
+ "webpack-env",
24
+ "react-dom",
25
+ "@testing-library/jest-dom"
26
+ ]
19
27
  },
20
28
  "include": ["src"],
21
29
  "extends": "./tsconfig.paths.json"