@trii/components 3.1.16 → 3.1.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.
@@ -0,0 +1,4 @@
1
+ import type { IContactField, IIntegrationButton } from '@trii/types/dist/Contacts';
2
+ import type { SidebarApiConfig } from '../context/SidebarPropsContext';
3
+ export declare function fetchSidebarFields(api: SidebarApiConfig, userId: string | undefined, isBusiness: boolean): Promise<IContactField[]>;
4
+ export declare function fetchSidebarButtons(api: SidebarApiConfig, userId: string | undefined): Promise<IIntegrationButton[]>;
@@ -1,3 +1,2 @@
1
1
  import { IBusiness, IContact } from '@trii/types/dist/Contacts';
2
- /** La API de contactos todavía serializa owner; el contrato nuevo usa ownerUserId. */
3
2
  export declare function getContactOwner(entity: IContact | IBusiness | null | undefined): string | null | undefined;
package/package.json CHANGED
@@ -1,195 +1,202 @@
1
- {
2
- "name": "@trii/components",
3
- "version": "3.1.16",
4
- "description": "Trii components package",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist",
10
- "async-state",
11
- "theme"
12
- ],
13
- "scripts": {
14
- "dev": "npm-run-all --parallel dev:types dev:js",
15
- "dev:types": "tsc --watch",
16
- "dev:js": "rollup -c --watch",
17
- "build": "npm-run-all --serial build:types build:js",
18
- "build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly",
19
- "build:js": "rollup -c",
20
- "test": "jest",
21
- "test:watch": "jest --watchAll --verbose",
22
- "storybook": "storybook dev -p 6006",
23
- "build-storybook": "storybook build"
24
- },
25
- "author": "Ezequiel",
26
- "license": "MIT",
27
- "babel": {
28
- "sourceType": "unambiguous",
29
- "presets": [
30
- [
31
- "@babel/preset-env",
32
- {
33
- "targets": {
34
- "chrome": 100,
35
- "safari": 15,
36
- "firefox": 91
37
- }
38
- }
39
- ],
40
- [
41
- "@babel/preset-react",
42
- {
43
- "runtime": "automatic"
44
- }
45
- ],
46
- "@babel/preset-typescript"
47
- ]
48
- },
49
- "postcss": {
50
- "plugins": {
51
- "postcss-import": {}
52
- }
53
- },
54
- "devDependencies": {
55
- "@babel/core": "^7.23.0",
56
- "@babel/preset-env": "^7.22.20",
57
- "@babel/preset-react": "^7.22.15",
58
- "@babel/preset-typescript": "^7.23.0",
59
- "@emotion/react": "^11.11.4",
60
- "@emotion/styled": "^11.11.5",
61
- "@fontsource/material-icons": "^5.0.18",
62
- "@fontsource/roboto": "^5.0.13",
63
- "@mdi/js": "^7.4.47",
64
- "@mdi/react": "^1.6.1",
65
- "@mui/icons-material": "^5.15.15",
66
- "@mui/lab": "^5.0.0-alpha.176",
67
- "@mui/material": "^5.18.0",
68
- "@reduxjs/toolkit": "^2.11.2",
69
- "@rollup/plugin-commonjs": "^25.0.4",
70
- "@rollup/plugin-image": "^3.0.3",
71
- "@rollup/plugin-json": "^6.1.0",
72
- "@rollup/plugin-node-resolve": "^15.2.1",
73
- "@storybook/addon-essentials": "^8.5.3",
74
- "@storybook/addon-interactions": "^8.5.3",
75
- "@storybook/addon-links": "^8.5.3",
76
- "@storybook/addon-onboarding": "^8.5.3",
77
- "@storybook/addon-themes": "^8.5.3",
78
- "@storybook/addon-webpack5-compiler-babel": "^3.0.5",
79
- "@storybook/addon-webpack5-compiler-swc": "^2.0.0",
80
- "@storybook/blocks": "^8.5.3",
81
- "@storybook/react": "^8.5.3",
82
- "@storybook/react-webpack5": "^8.5.3",
83
- "@storybook/test": "^8.5.3",
84
- "@testing-library/jest-dom": "^6.1.3",
85
- "@testing-library/react": "^14.0.0",
86
- "@types/google-libphonenumber": "^7.4.30",
87
- "@types/google.maps": "^3.58.1",
88
- "@types/jest": "^29.5.5",
89
- "@types/react": "^18.2.23",
90
- "@typescript-eslint/eslint-plugin": "^8.53.0",
91
- "@typescript-eslint/parser": "^8.53.0",
92
- "axios": "^1.14.0",
93
- "babel-jest": "^29.7.0",
94
- "date-fns": "^2.30.0",
95
- "dompurify": "^2.5.8",
96
- "esbuild": "^0.27.2",
97
- "eslint": "^9.39.2",
98
- "eslint-config-prettier": "^10.1.8",
99
- "eslint-plugin-import": "^2.32.0",
100
- "eslint-plugin-prettier": "^5.5.5",
101
- "eslint-plugin-react": "^7.37.5",
102
- "eslint-plugin-react-hooks": "^7.0.1",
103
- "google-libphonenumber": "^3.2.44",
104
- "handlebars": "^4.7.8",
105
- "immer": "^11.1.4",
106
- "jest": "^29.7.0",
107
- "jest-environment-jsdom": "^29.7.0",
108
- "markdown-it": "^14.1.0",
109
- "markdown-it-emoji": "^3.0.0",
110
- "npm-run-all": "^4.1.5",
111
- "postcss": "^8.4.31",
112
- "postcss-import": "^15.1.0",
113
- "prettier": "^3.8.0",
114
- "react": "^18.2.0",
115
- "react-dom": "^18.2.0",
116
- "react-file-icon": "^1.6.0",
117
- "react-to-print": "^2.14.15",
118
- "react-virtuoso": "^4.17.0",
119
- "rollup": "^3.29.4",
120
- "rollup-plugin-dts": "^6.0.2",
121
- "rollup-plugin-esbuild": "^6.2.1",
122
- "rollup-plugin-postcss": "^4.0.2",
123
- "single-spa": "^5.9.3",
124
- "single-spa-react": "^6.0.2",
125
- "storybook": "^8.5.3",
126
- "tslib": "^2.6.2",
127
- "typescript": "^5.2.2",
128
- "uuid": "^10.0.0",
129
- "wavesurfer.js": "^6.6.3"
130
- },
131
- "peerDependencies": {
132
- "@emotion/react": "^11.11.4",
133
- "@mui/x-date-pickers": "^8.24.0",
134
- "@mui/x-date-pickers-pro": "^8.24.0",
135
- "@reduxjs/toolkit": ">=1.9.0",
136
- "axios": ">=1.0.0",
137
- "dayjs": "^1.11.19",
138
- "google-libphonenumber": "^3.2.43",
139
- "handlebars": "^4.7.8",
140
- "i18next": "^25.8.0",
141
- "moment": "^2.30.1",
142
- "react": ">=17.0.2 <19.0.0",
143
- "react-dom": ">=17.0.2 <19.0.0",
144
- "react-i18next": "^16.5.3",
145
- "single-spa": "^5.9.3",
146
- "single-spa-react": ">=4.0.0"
147
- },
148
- "peerDependenciesMeta": {
149
- "@mui/x-date-pickers": {
150
- "optional": true
151
- },
152
- "@mui/x-date-pickers-pro": {
153
- "optional": true
154
- },
155
- "dayjs": {
156
- "optional": true
157
- },
158
- "google-libphonenumber": {
159
- "optional": true
160
- },
161
- "handlebars": {
162
- "optional": true
163
- },
164
- "i18next": {
165
- "optional": true
166
- },
167
- "moment": {
168
- "optional": true
169
- },
170
- "react-i18next": {
171
- "optional": true
172
- },
173
- "single-spa": {
174
- "optional": true
175
- },
176
- "single-spa-react": {
177
- "optional": true
178
- }
179
- },
180
- "dependencies": {
181
- "@mdi/js": "^7.4.47",
182
- "@mdi/react": "^1.6.1",
183
- "@trii/types": "^2.10.790",
184
- "date-fns": "^2.30.0",
185
- "dompurify": "^2.5.8",
186
- "lucide-react": "^1.61.0",
187
- "markdown-it": "^14.1.0",
188
- "markdown-it-emoji": "^3.0.0",
189
- "react-file-icon": "^1.6.0",
190
- "react-to-print": "^2.14.15",
191
- "react-virtuoso": "^4.17.0",
192
- "uuid": "^10.0.0",
193
- "wavesurfer.js": "^6.6.3"
194
- }
195
- }
1
+ {
2
+ "name": "@trii/components",
3
+ "version": "3.1.18",
4
+ "description": "Trii components package",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "async-state",
11
+ "theme"
12
+ ],
13
+ "scripts": {
14
+ "dev": "npm-run-all --parallel dev:types dev:js",
15
+ "dev:types": "tsc --watch",
16
+ "dev:js": "rollup -c --watch",
17
+ "build": "npm-run-all --serial build:types build:js",
18
+ "build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly",
19
+ "build:js": "rollup -c",
20
+ "test": "jest",
21
+ "test:watch": "jest --watchAll --verbose",
22
+ "storybook": "storybook dev -p 6006",
23
+ "build-storybook": "storybook build",
24
+ "lint": "eslint src"
25
+ },
26
+ "author": "Ezequiel",
27
+ "license": "MIT",
28
+ "babel": {
29
+ "sourceType": "unambiguous",
30
+ "presets": [
31
+ [
32
+ "@babel/preset-env",
33
+ {
34
+ "targets": {
35
+ "chrome": 100,
36
+ "safari": 15,
37
+ "firefox": 91
38
+ }
39
+ }
40
+ ],
41
+ [
42
+ "@babel/preset-react",
43
+ {
44
+ "runtime": "automatic"
45
+ }
46
+ ],
47
+ "@babel/preset-typescript"
48
+ ]
49
+ },
50
+ "postcss": {
51
+ "plugins": {
52
+ "postcss-import": {}
53
+ }
54
+ },
55
+ "devDependencies": {
56
+ "@babel/core": "^7.23.0",
57
+ "@babel/preset-env": "^7.22.20",
58
+ "@babel/preset-react": "^7.22.15",
59
+ "@babel/preset-typescript": "^7.23.0",
60
+ "@emotion/react": "^11.11.4",
61
+ "@emotion/styled": "^11.11.5",
62
+ "@eslint/js": "^9.39.2",
63
+ "@fontsource/material-icons": "^5.0.18",
64
+ "@fontsource/roboto": "^5.0.13",
65
+ "@mdi/js": "^7.4.47",
66
+ "@mdi/react": "^1.6.1",
67
+ "@mui/icons-material": "^5.15.15",
68
+ "@mui/lab": "^5.0.0-alpha.176",
69
+ "@mui/material": "^5.18.0",
70
+ "@reduxjs/toolkit": "^2.11.2",
71
+ "@rollup/plugin-commonjs": "^25.0.4",
72
+ "@rollup/plugin-image": "^3.0.3",
73
+ "@rollup/plugin-json": "^6.1.0",
74
+ "@rollup/plugin-node-resolve": "^15.2.1",
75
+ "@storybook/addon-essentials": "^8.5.3",
76
+ "@storybook/addon-interactions": "^8.5.3",
77
+ "@storybook/addon-links": "^8.5.3",
78
+ "@storybook/addon-onboarding": "^8.5.3",
79
+ "@storybook/addon-themes": "^8.5.3",
80
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.5",
81
+ "@storybook/addon-webpack5-compiler-swc": "^2.0.0",
82
+ "@storybook/blocks": "^8.5.3",
83
+ "@storybook/react": "^8.5.3",
84
+ "@storybook/react-webpack5": "^8.5.3",
85
+ "@storybook/test": "^8.5.3",
86
+ "@testing-library/jest-dom": "^6.1.3",
87
+ "@testing-library/react": "^14.0.0",
88
+ "@types/google-libphonenumber": "^7.4.30",
89
+ "@types/google.maps": "^3.58.1",
90
+ "@types/jest": "^29.5.5",
91
+ "@types/react": "^18.2.23",
92
+ "@typescript-eslint/eslint-plugin": "^8.53.0",
93
+ "@typescript-eslint/parser": "^8.53.0",
94
+ "axios": "^1.14.0",
95
+ "babel-jest": "^29.7.0",
96
+ "date-fns": "^2.30.0",
97
+ "dompurify": "^2.5.8",
98
+ "esbuild": "^0.27.2",
99
+ "eslint": "^9.39.2",
100
+ "eslint-config-prettier": "^10.1.8",
101
+ "eslint-plugin-import": "^2.32.0",
102
+ "eslint-plugin-prettier": "^5.5.5",
103
+ "eslint-plugin-react": "^7.37.5",
104
+ "eslint-plugin-react-hooks": "^7.0.1",
105
+ "globals": "^16.0.0",
106
+ "google-libphonenumber": "^3.2.44",
107
+ "handlebars": "^4.7.8",
108
+ "immer": "^11.1.4",
109
+ "jest": "^29.7.0",
110
+ "jest-environment-jsdom": "^29.7.0",
111
+ "markdown-it": "^14.1.0",
112
+ "markdown-it-emoji": "^3.0.0",
113
+ "npm-run-all": "^4.1.5",
114
+ "postcss": "^8.4.31",
115
+ "postcss-import": "^15.1.0",
116
+ "prettier": "^3.8.0",
117
+ "react": "^18.2.0",
118
+ "react-dom": "^18.2.0",
119
+ "react-file-icon": "^1.6.0",
120
+ "react-to-print": "^2.14.15",
121
+ "react-virtuoso": "^4.17.0",
122
+ "rollup": "^3.29.4",
123
+ "rollup-plugin-dts": "^6.0.2",
124
+ "rollup-plugin-esbuild": "^6.2.1",
125
+ "rollup-plugin-postcss": "^4.0.2",
126
+ "single-spa": "^5.9.3",
127
+ "single-spa-react": "^6.0.2",
128
+ "storybook": "^8.5.3",
129
+ "tslib": "^2.6.2",
130
+ "typescript": "^5.2.2",
131
+ "uuid": "^10.0.0",
132
+ "wavesurfer.js": "^6.6.3"
133
+ },
134
+ "peerDependencies": {
135
+ "@emotion/react": "^11.11.4",
136
+ "@emotion/styled": "^11.11.5",
137
+ "@mui/icons-material": "^5.15.15",
138
+ "@mui/lab": "^5.0.0-alpha.176",
139
+ "@mui/material": "^5.18.0",
140
+ "@mui/x-date-pickers": "^8.24.0",
141
+ "@mui/x-date-pickers-pro": "^8.24.0",
142
+ "@reduxjs/toolkit": ">=1.9.0",
143
+ "axios": ">=1.0.0",
144
+ "dayjs": "^1.11.19",
145
+ "google-libphonenumber": "^3.2.43",
146
+ "handlebars": "^4.7.8",
147
+ "i18next": "^25.8.0",
148
+ "moment": "^2.30.1",
149
+ "react": ">=18.2.0 <19.0.0",
150
+ "react-dom": ">=18.2.0 <19.0.0",
151
+ "react-i18next": "^16.5.3",
152
+ "single-spa": "^5.9.3",
153
+ "single-spa-react": ">=4.0.0"
154
+ },
155
+ "peerDependenciesMeta": {
156
+ "@mui/x-date-pickers": {
157
+ "optional": true
158
+ },
159
+ "@mui/x-date-pickers-pro": {
160
+ "optional": true
161
+ },
162
+ "dayjs": {
163
+ "optional": true
164
+ },
165
+ "google-libphonenumber": {
166
+ "optional": true
167
+ },
168
+ "handlebars": {
169
+ "optional": true
170
+ },
171
+ "i18next": {
172
+ "optional": true
173
+ },
174
+ "moment": {
175
+ "optional": true
176
+ },
177
+ "react-i18next": {
178
+ "optional": true
179
+ },
180
+ "single-spa": {
181
+ "optional": true
182
+ },
183
+ "single-spa-react": {
184
+ "optional": true
185
+ }
186
+ },
187
+ "dependencies": {
188
+ "@mdi/js": "^7.4.47",
189
+ "@mdi/react": "^1.6.1",
190
+ "@trii/types": "^2.10.790",
191
+ "date-fns": "^2.30.0",
192
+ "dompurify": "^2.5.8",
193
+ "lucide-react": "^1.61.0",
194
+ "markdown-it": "^14.1.0",
195
+ "markdown-it-emoji": "^3.0.0",
196
+ "react-file-icon": "^1.6.0",
197
+ "react-to-print": "^2.14.15",
198
+ "react-virtuoso": "^4.17.0",
199
+ "uuid": "^10.0.0",
200
+ "wavesurfer.js": "^6.6.3"
201
+ }
202
+ }