@trii/components 3.1.17 → 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[]>;
|
package/package.json
CHANGED
|
@@ -1,195 +1,202 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@trii/components",
|
|
3
|
-
"version": "3.1.
|
|
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
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"@babel/
|
|
57
|
-
"@babel/preset-
|
|
58
|
-
"@babel/preset-
|
|
59
|
-
"@
|
|
60
|
-
"@emotion/
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@mui/material": "^5.
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@rollup/plugin-
|
|
72
|
-
"@rollup/plugin-
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@storybook/addon-
|
|
76
|
-
"@storybook/addon-
|
|
77
|
-
"@storybook/addon-
|
|
78
|
-
"@storybook/addon-
|
|
79
|
-
"@storybook/addon-
|
|
80
|
-
"@storybook/
|
|
81
|
-
"@storybook/
|
|
82
|
-
"@storybook/
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@types/
|
|
89
|
-
"@types/
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"eslint
|
|
100
|
-
"eslint-
|
|
101
|
-
"eslint-plugin-
|
|
102
|
-
"eslint-plugin-
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"react
|
|
118
|
-
"react-
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"rollup
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"@
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"
|
|
189
|
-
"react
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
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
|
+
}
|