@trii/components 3.1.3 → 3.1.4

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.
Files changed (40) hide show
  1. package/async-state/package.json +9 -9
  2. package/dist/cjs/async-state.js.map +1 -1
  3. package/dist/cjs/index.js +100 -100
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/theme.js +1 -1
  6. package/dist/cjs/theme.js.map +1 -1
  7. package/dist/esm/async-state.js.map +1 -1
  8. package/dist/esm/index.js +101 -101
  9. package/dist/esm/index.js.map +1 -1
  10. package/dist/esm/theme.js +1 -1
  11. package/dist/esm/theme.js.map +1 -1
  12. package/dist/types/asyncState/__tests__/asyncState.test.d.ts +1 -0
  13. package/dist/types/asyncState/__tests__/useAsyncData.test.d.ts +1 -0
  14. package/dist/types/components/AsyncContent/__tests__/AsyncContent.test.d.ts +1 -0
  15. package/dist/types/components/AsyncContent/__tests__/AsyncContentI18n.test.d.ts +1 -0
  16. package/dist/types/components/ContactInfoPopup/ContactInfoPopup.stories.d.ts +9 -0
  17. package/dist/types/components/ContactSidebar/ContactSidebar.stories.d.ts +58 -0
  18. package/dist/types/components/EditContactModal/EditContactModal.stories.d.ts +9 -0
  19. package/dist/types/components/EventsDialog/components/LinkContactsSelect/styles.d.ts +6 -0
  20. package/dist/types/components/EventsDialog/components/LocationTextField/MapLocationPicker.d.ts +8 -0
  21. package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/index.d.ts +1 -0
  22. package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/index.d.ts +1 -0
  23. package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/index.d.ts +3 -0
  24. package/dist/types/components/EventsDialog/hooks/index.d.ts +9 -0
  25. package/dist/types/components/EventsDialog/hooks/useSelect.d.ts +14 -0
  26. package/dist/types/components/EventsDialog/utils/eventValidation.d.ts +37 -0
  27. package/dist/types/components/EventsDialog/utils/googleMapsUtils.d.ts +5 -0
  28. package/dist/types/components/EventsDialog/utils/keyboardNavigation.d.ts +24 -0
  29. package/dist/types/components/PanelErrorBoundary/__tests__/PanelErrorBoundary.test.d.ts +1 -0
  30. package/dist/types/theme/MuiComponentsConfig.test.d.ts +1 -0
  31. package/dist/types/theme/darkThemeComponents.d.ts +3 -0
  32. package/dist/types/theme/themeProvider.test.d.ts +1 -0
  33. package/package.json +194 -174
  34. package/readme +71 -71
  35. package/theme/package.json +9 -9
  36. package/dist/types/components/EditContactModal/context/LanguageContext.d.ts +0 -9
  37. package/dist/types/components/EventsDialog/theme/MuiComponentsConfig.d.ts +0 -3
  38. package/dist/types/components/EventsDialog/theme/index.d.ts +0 -4
  39. package/dist/types/components/EventsDialog/theme/themeProvider.d.ts +0 -74
  40. package/dist/types/components/EventsDialog/theme/themeSlice.d.ts +0 -52
@@ -0,0 +1,6 @@
1
+ export declare const SelectPrimaryContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/system").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/system").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
4
+ export declare const SelectSecondaryContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/system").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
6
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/system").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface MapLocationPickerProps {
3
+ onLocationSelect: (address: string, lat: number, lng: number) => void;
4
+ initialAddress?: string;
5
+ onClose?: () => void;
6
+ }
7
+ declare const MapLocationPicker: React.FC<MapLocationPickerProps>;
8
+ export default MapLocationPicker;
@@ -0,0 +1 @@
1
+ export { default as GoogleMapStandalone } from './GoogleMap/GoogleMapStandalone';
@@ -0,0 +1,3 @@
1
+ export { default } from './LocationSelectorModal';
2
+ export { default as LocationSelectorModal } from './LocationSelectorModal';
3
+ export type { LocationData } from './types';
@@ -0,0 +1,9 @@
1
+ export { default as useField, useFieldInitialState, type UseFieldType } from './useField';
2
+ export { default as useSelect, type UseSelect } from './useSelect';
3
+ export { default as useDialog, useDialogInitialState, type UseDialog } from './useDialog';
4
+ export { default as useEvent, useEventInitialState, type UseEvent, type UseDateState, type UseLinkContact, } from './useEvent';
5
+ export { type UseNotificationsType } from './useNotifications';
6
+ export { default as useTask, useTaskInitialState, type UseTask } from './useTask';
7
+ export { default as useCalendar, useCalendarInitialState, type UseCalendarType, } from './useCalendar';
8
+ export { default as useCalendarEvents, useCalendarEventsInitialState, type UseCalendarEventsType, type CalendarEvent, } from './useCalendarEvents';
9
+ export { default as useCalendarTasks, useCalendarTasksInitialState, type UseCalendarTasksType, type CalendarTask, } from './useCalendarTasks';
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { SelectChangeEvent } from '@mui/material';
3
+ export interface UseSelect {
4
+ actions: {
5
+ resetValue: () => void;
6
+ changeValue: (newValue: string | number) => void;
7
+ };
8
+ attributes: {
9
+ value: string | number;
10
+ onChange: (event: SelectChangeEvent<string>, child: ReactNode) => void;
11
+ };
12
+ }
13
+ declare const useSelect: (initialValue: string | number) => UseSelect;
14
+ export default useSelect;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Utilidades para validación de eventos del calendario
3
+ */
4
+ export interface CalendarItem {
5
+ id?: string;
6
+ start: Date | string;
7
+ end: Date | string;
8
+ title?: string;
9
+ kind?: 'event' | 'task';
10
+ }
11
+ /**
12
+ * Verifica si dos eventos se solapan en el tiempo
13
+ */
14
+ export declare const eventsOverlap: (event1: CalendarItem, event2: CalendarItem) => boolean;
15
+ /**
16
+ * Encuentra todos los eventos que se solapan con un evento dado
17
+ */
18
+ export declare const findOverlappingEvents: (targetEvent: CalendarItem, allEvents: CalendarItem[]) => CalendarItem[];
19
+ /**
20
+ * Valida que un evento tenga fechas válidas
21
+ */
22
+ export declare const validateEventDates: (event: CalendarItem) => {
23
+ isValid: boolean;
24
+ error?: string;
25
+ };
26
+ /**
27
+ * Genera un mensaje descriptivo sobre eventos solapados
28
+ */
29
+ export declare const getOverlapWarningMessage: (overlappingEvents: CalendarItem[]) => string;
30
+ /**
31
+ * Calcula la duración de un evento en minutos
32
+ */
33
+ export declare const getEventDuration: (event: CalendarItem) => number;
34
+ /**
35
+ * Verifica si un evento es de todo el día
36
+ */
37
+ export declare const isAllDayEvent: (event: CalendarItem) => boolean;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Re-exportaciones de googleMapsLoader para mantener compatibilidad
3
+ * Este archivo actúa como alias para las funciones de Google Maps
4
+ */
5
+ export { GOOGLE_MAPS_CONFIG, GOOGLE_MAPS_SCRIPT_CONFIG, useGoogleMapsLoader, loadGoogleMapsAsync, getStaticMapUrl, geocodeAddress, } from './googleMapsLoader';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Utilidades para navegación por teclado en el calendario
3
+ */
4
+ type View = 'month' | 'week' | 'day' | 'work_week' | 'agenda';
5
+ export interface KeyboardNavigationConfig {
6
+ onNavigate: (action: 'PREV' | 'NEXT' | 'TODAY' | 'DATE', date?: Date) => void;
7
+ onViewChange: (view: View) => void;
8
+ onCreateEvent?: () => void;
9
+ currentDate: Date;
10
+ currentView: View;
11
+ }
12
+ /**
13
+ * Maneja los eventos de teclado para el calendario
14
+ */
15
+ export declare const handleCalendarKeyDown: (event: KeyboardEvent, config: KeyboardNavigationConfig) => void;
16
+ /**
17
+ * Genera el mensaje de ayuda para atajos de teclado
18
+ */
19
+ export declare const getKeyboardShortcutsHelp: () => string;
20
+ /**
21
+ * Genera los atributos ARIA para el calendario
22
+ */
23
+ export declare const getCalendarAriaAttributes: (currentView: View, currentDate: Date) => Record<string, string>;
24
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ /** Aplica los ajustes de contraste compartidos exclusivamente en modo oscuro. */
3
+ export declare const applyDarkThemeComponents: (sharedTheme: Theme) => Theme;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,174 +1,194 @@
1
- {
2
- "name": "@trii/components",
3
- "version": "3.1.3",
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": { "optional": true },
150
- "@mui/x-date-pickers-pro": { "optional": true },
151
- "dayjs": { "optional": true },
152
- "google-libphonenumber": { "optional": true },
153
- "handlebars": { "optional": true },
154
- "i18next": { "optional": true },
155
- "moment": { "optional": true },
156
- "react-i18next": { "optional": true },
157
- "single-spa": { "optional": true },
158
- "single-spa-react": { "optional": true }
159
- },
160
- "dependencies": {
161
- "@mdi/js": "^7.4.47",
162
- "@mdi/react": "^1.6.1",
163
- "@trii/types": "^2.10.638",
164
- "date-fns": "^2.30.0",
165
- "dompurify": "^2.5.8",
166
- "markdown-it": "^14.1.0",
167
- "markdown-it-emoji": "^3.0.0",
168
- "react-file-icon": "^1.6.0",
169
- "react-to-print": "^2.14.15",
170
- "react-virtuoso": "^4.17.0",
171
- "uuid": "^10.0.0",
172
- "wavesurfer.js": "^6.6.3"
173
- }
174
- }
1
+ {
2
+ "name": "@trii/components",
3
+ "version": "3.1.4",
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.638",
184
+ "date-fns": "^2.30.0",
185
+ "dompurify": "^2.5.8",
186
+ "markdown-it": "^14.1.0",
187
+ "markdown-it-emoji": "^3.0.0",
188
+ "react-file-icon": "^1.6.0",
189
+ "react-to-print": "^2.14.15",
190
+ "react-virtuoso": "^4.17.0",
191
+ "uuid": "^10.0.0",
192
+ "wavesurfer.js": "^6.6.3"
193
+ }
194
+ }
package/readme CHANGED
@@ -1,71 +1,71 @@
1
- # Trii Components
2
-
3
- ## Introduction
4
-
5
- This project contains reusable components for the Trii application.
6
-
7
- ## Prerequisites
8
-
9
- - Node.js (v14 or higher)
10
- - npm (v6 or higher) or yarn (v1.22 or higher)
11
-
12
- ## Installation
13
-
14
- 1. Clone the repository:
15
- ```sh
16
- git clone https://github.com/yourusername/trii-components.git
17
- ```
18
- 2. Navigate to the project directory:
19
- ```sh
20
- cd trii-components
21
- ```
22
- 3. Install dependencies:
23
- ```sh
24
- npm install
25
- ```
26
- or
27
- ```sh
28
- yarn install
29
- ```
30
-
31
- ## Running the Project
32
-
33
- To start the development server, run:
34
-
35
- ```sh
36
- npm run storybook
37
- ```
38
-
39
- or
40
-
41
- ```sh
42
- yarn storybook
43
- ```
44
-
45
- ## Building the Project
46
-
47
- To build the project, run:
48
-
49
- ```sh
50
- npm run build
51
- ```
52
-
53
- or
54
-
55
- ```sh
56
- yarn build
57
- ```
58
-
59
- ## Upload build to NPM
60
-
61
- To upload the build to NPM, run:
62
-
63
- ```sh
64
- npm publish
65
- ```
66
-
67
- or
68
-
69
- ```sh
70
- yarn publish
71
- ```
1
+ # Trii Components
2
+
3
+ ## Introduction
4
+
5
+ This project contains reusable components for the Trii application.
6
+
7
+ ## Prerequisites
8
+
9
+ - Node.js (v14 or higher)
10
+ - npm (v6 or higher) or yarn (v1.22 or higher)
11
+
12
+ ## Installation
13
+
14
+ 1. Clone the repository:
15
+ ```sh
16
+ git clone https://github.com/yourusername/trii-components.git
17
+ ```
18
+ 2. Navigate to the project directory:
19
+ ```sh
20
+ cd trii-components
21
+ ```
22
+ 3. Install dependencies:
23
+ ```sh
24
+ npm install
25
+ ```
26
+ or
27
+ ```sh
28
+ yarn install
29
+ ```
30
+
31
+ ## Running the Project
32
+
33
+ To start the development server, run:
34
+
35
+ ```sh
36
+ npm run storybook
37
+ ```
38
+
39
+ or
40
+
41
+ ```sh
42
+ yarn storybook
43
+ ```
44
+
45
+ ## Building the Project
46
+
47
+ To build the project, run:
48
+
49
+ ```sh
50
+ npm run build
51
+ ```
52
+
53
+ or
54
+
55
+ ```sh
56
+ yarn build
57
+ ```
58
+
59
+ ## Upload build to NPM
60
+
61
+ To upload the build to NPM, run:
62
+
63
+ ```sh
64
+ npm publish
65
+ ```
66
+
67
+ or
68
+
69
+ ```sh
70
+ yarn publish
71
+ ```