@myunisoft/design-system 1.3.4-tmp1 → 1.4.0-REV-537

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 (43) hide show
  1. package/dist/assets/I18n/locales/en.d.ts +58 -2
  2. package/dist/assets/I18n/locales/fr.d.ts +59 -2
  3. package/dist/components/Autocomplete/Autocomplete/types.d.ts +4 -0
  4. package/dist/components/Autocomplete/AutocompleteMultiple/Results/styles.d.ts +1 -1
  5. package/dist/components/DocumentComposer/Treeview/SkeletonTreeItem.d.ts +3 -0
  6. package/dist/components/DocumentComposer/Treeview/TreeviewSkeleton.d.ts +2 -0
  7. package/dist/components/DocumentComposer/Treeview/slots/LabelInputSlot.d.ts +1 -0
  8. package/dist/components/DocumentComposer/Treeview/types.d.ts +5 -0
  9. package/dist/components/DocumentComposer/hooks/useTemporarySection.d.ts +2 -2
  10. package/dist/components/RichTextEditor/components/AlignmentSplitButton.d.ts +10 -0
  11. package/dist/components/RichTextEditor/components/EditorToolbarButton.d.ts +7 -0
  12. package/dist/components/RichTextEditor/components/FontColorButton.d.ts +5 -0
  13. package/dist/components/RichTextEditor/components/ImageButton.d.ts +7 -0
  14. package/dist/components/RichTextEditor/components/ImageResizeObserver.d.ts +2 -0
  15. package/dist/components/RichTextEditor/components/LinkButton.d.ts +8 -0
  16. package/dist/components/RichTextEditor/components/SplitButton.d.ts +16 -0
  17. package/dist/components/RichTextEditor/components/TableBubbleMenu.d.ts +2 -0
  18. package/dist/components/RichTextEditor/components/Toolbar.d.ts +22 -0
  19. package/dist/components/RichTextEditor/extensions/TableWithAlignment.d.ts +1 -0
  20. package/dist/components/RichTextEditor/index.d.ts +18 -0
  21. package/dist/components/RichTextEditor/styles.d.ts +1 -0
  22. package/dist/components/VirtualTable/components/Body/Cell/styles.d.ts +1 -1
  23. package/dist/components/VirtualTable/components/ColumnsSetting/Table/index.d.ts +2 -1
  24. package/dist/components/VirtualTable/components/ColumnsSetting/useColumnsConfig.d.ts +102 -0
  25. package/dist/components/VirtualTable/components/Footer/Cell/styles.d.ts +1 -1
  26. package/dist/components/VirtualTable/components/Header/Cell/styles.d.ts +1 -1
  27. package/dist/components/VirtualTable/components/Image/styles.d.ts +1 -1
  28. package/dist/components/VirtualTable/helpers/group.d.ts +1 -1
  29. package/dist/components/VirtualTable/hooks/useGroupHelpers.d.ts +3 -0
  30. package/dist/components/VirtualTable/styles.d.ts +1 -1
  31. package/dist/components/VirtualTable/utils.d.ts +1 -1
  32. package/dist/constants/i18n.d.ts +1 -0
  33. package/dist/helpers/validation/index.d.ts +3 -1
  34. package/dist/helpers/validation/useValidators.d.ts +8 -0
  35. package/dist/helpers/validation/validatorFactories.d.ts +10 -0
  36. package/dist/helpers/validation/validators.d.ts +2 -7
  37. package/dist/hooks/useDSTranslation.d.ts +4 -0
  38. package/dist/i18n/instance.d.ts +1 -0
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.js +5 -5
  41. package/dist/providers/DSProvider/index.d.ts +7 -0
  42. package/package.json +57 -13
  43. package/dist/components/VirtualTable/components/ColumnsSetting/config.d.ts +0 -9
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from 'react';
2
+ type DSProviderProps = {
3
+ children: ReactNode;
4
+ locale?: 'fr' | 'en';
5
+ };
6
+ declare const DSProvider: ({ children, locale }: DSProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default DSProvider;
package/package.json CHANGED
@@ -1,13 +1,20 @@
1
1
  {
2
2
  "name": "@myunisoft/design-system",
3
- "version": "1.3.4-tmp1",
3
+ "version": "1.4.0-REV-537",
4
4
  "description": "Design System of MyUnisoft",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
8
15
  "scripts": {
9
16
  "start": "cd website && npm start -- --port=3002",
10
- "build": "rm -r dist & node esbuild",
17
+ "build": "rm -rf dist && node esbuild",
11
18
  "build-cypress": "rm -r dist & node esbuild-cypress",
12
19
  "prepublishOnly": "npm run build",
13
20
  "test": "jest --transformIgnorePatterns \"node_modules/(?!@exceljs)/\" ",
@@ -34,6 +41,8 @@
34
41
  "@babel/runtime": "7.20.6",
35
42
  "@emotion/react": "11.14.0",
36
43
  "@emotion/styled": "11.14.1",
44
+ "@floating-ui/dom": "1.7.4",
45
+ "@mui/lab": "7.0.1-beta.21",
37
46
  "@mui/material": "7.3.6",
38
47
  "@mui/utils": "7.3.6",
39
48
  "@mui/x-data-grid-pro": "7.29.9",
@@ -41,21 +50,53 @@
41
50
  "@myunisoft/mui-symbols-material-w300-esm": "0.7.3",
42
51
  "@myunisoft/mui-symbols-material-w400-esm": "0.7.3",
43
52
  "@testing-library/dom": "10.1.0",
53
+ "@tiptap/core": "3.15.3",
54
+ "@tiptap/extension-blockquote": "3.15.3",
55
+ "@tiptap/extension-bold": "3.15.3",
56
+ "@tiptap/extension-bubble-menu": "3.15.3",
57
+ "@tiptap/extension-bullet-list": "3.15.3",
58
+ "@tiptap/extension-color": "3.15.3",
59
+ "@tiptap/extension-document": "3.15.3",
60
+ "@tiptap/extension-history": "3.15.3",
61
+ "@tiptap/extension-image": "3.15.3",
62
+ "@tiptap/extension-italic": "3.15.3",
63
+ "@tiptap/extension-link": "3.15.3",
64
+ "@tiptap/extension-list": "3.15.3",
65
+ "@tiptap/extension-list-item": "3.15.3",
66
+ "@tiptap/extension-mention": "3.15.3",
67
+ "@tiptap/extension-ordered-list": "3.15.3",
68
+ "@tiptap/extension-paragraph": "3.15.3",
69
+ "@tiptap/extension-placeholder": "3.15.3",
70
+ "@tiptap/extension-strike": "3.15.3",
71
+ "@tiptap/extension-subscript": "3.15.3",
72
+ "@tiptap/extension-superscript": "3.15.3",
73
+ "@tiptap/extension-table": "3.15.3",
74
+ "@tiptap/extension-table-cell": "3.15.3",
75
+ "@tiptap/extension-table-header": "3.15.3",
76
+ "@tiptap/extension-table-row": "3.15.3",
77
+ "@tiptap/extension-text": "3.15.3",
78
+ "@tiptap/extension-text-align": "3.15.3",
79
+ "@tiptap/extension-text-style": "3.15.3",
80
+ "@tiptap/extension-underline": "3.15.3",
81
+ "@tiptap/extensions": "3.15.3",
82
+ "@tiptap/pm": "3.15.3",
83
+ "@tiptap/react": "3.15.3",
84
+ "@tiptap/suggestion": "3.15.3",
44
85
  "autosuggest-highlight": "3.3.4",
45
86
  "classnames": "2.3.2",
46
87
  "exceljs": "4.4.0",
47
88
  "i18next": "22.4.6",
48
- "jspdf": "3.0.1",
49
- "jspdf-autotable": "3.5.28",
89
+ "jspdf": "4.0.0",
90
+ "jspdf-autotable": "5.0.7",
50
91
  "localforage": "1.10.0",
51
92
  "lodash": "4.17.21",
52
93
  "moment": "2.30.1",
53
94
  "numeral": "2.0.6",
54
95
  "pretty-bytes": "6.0.0",
55
96
  "prop-types": "15.8.1",
56
- "react": "19.2.1",
97
+ "react": "19.2.3",
57
98
  "react-color": "2.19.3",
58
- "react-dom": "19.2.1",
99
+ "react-dom": "19.2.3",
59
100
  "react-draft-wysiwyg": "1.15.0",
60
101
  "react-draggable": "4.4.6",
61
102
  "react-dropzone": "14.2.3",
@@ -71,7 +112,8 @@
71
112
  "resolutions": {
72
113
  "cheerio": "<1.0.0",
73
114
  "@mui/material": "7.3.6",
74
- "@babel/core": "7.26.0"
115
+ "@babel/core": "7.26.0",
116
+ "@types/react": "19.2.8"
75
117
  },
76
118
  "devDependencies": {
77
119
  "@4tw/cypress-drag-drop": "2.3.0",
@@ -85,8 +127,8 @@
85
127
  "@testing-library/react": "16.3.0",
86
128
  "@types/jest": "30.0.0",
87
129
  "@types/mocha": "10.0.10",
88
- "@types/react": "19.1.0",
89
- "@types/react-dom": "19.1.0",
130
+ "@types/react": "19.2.8",
131
+ "@types/react-dom": "19.2.3",
90
132
  "babel-jest": "29.3.1",
91
133
  "babel-loader": "9.1.0",
92
134
  "cheerio": "<1.0.0",
@@ -99,17 +141,19 @@
99
141
  "jest": "29.3.1",
100
142
  "jest-canvas-mock": "2.4.0",
101
143
  "jest-environment-jsdom": "29.3.1",
102
- "react-test-renderer": "18.3.1",
144
+ "react-test-renderer": "19.2.3",
103
145
  "sass": "1.57.1",
104
146
  "sass-loader": "13.2.0",
105
147
  "style-loader": "3.3.1",
106
148
  "svg-inline-loader": "0.8.2",
107
149
  "typescript": "5.5.4",
108
- "webpack": "5.75.0"
150
+ "webpack": "5.75.0",
151
+ "react-i18next": "15.7.1"
109
152
  },
110
153
  "peerDependencies": {
111
154
  "@mui/material": "7.3.6",
112
- "react": "19.2.1",
113
- "react-dom": "19.2.1"
155
+ "react": "19.2.3",
156
+ "react-dom": "19.2.1",
157
+ "react-i18next": ">=15.0.0"
114
158
  }
115
159
  }
@@ -1,9 +0,0 @@
1
- declare const config: ({ config, theme, handleEdit, handleDelete, isColSelectionmode, columnsOptions }: {
2
- config: any;
3
- theme: any;
4
- handleEdit: any;
5
- handleDelete: any;
6
- isColSelectionmode: any;
7
- columnsOptions: any;
8
- }) => any[];
9
- export default config;