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