@comitor/ui 3.4.0 → 3.5.0

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 (45) hide show
  1. package/README.md +17 -5
  2. package/dist/components/ui/item.d.ts +1 -1
  3. package/dist/data-grid/use-data-grid.d.ts +2 -2
  4. package/dist/editor/bubble-toolbar.d.ts +34 -0
  5. package/dist/editor/bubble-toolbar.js +391 -0
  6. package/dist/editor/bubble-toolbar.js.map +1 -0
  7. package/dist/editor/image-upload.d.ts +57 -0
  8. package/dist/editor/image-upload.js +136 -0
  9. package/dist/editor/image-upload.js.map +1 -0
  10. package/dist/editor/index.d.ts +5 -0
  11. package/dist/editor/index.js +11 -0
  12. package/dist/editor/index.js.map +1 -0
  13. package/dist/editor/markdown-editor-classes.d.ts +16 -0
  14. package/dist/editor/markdown-editor-classes.js +117 -0
  15. package/dist/editor/markdown-editor-classes.js.map +1 -0
  16. package/dist/editor/markdown-editor-constants.d.ts +92 -0
  17. package/dist/editor/markdown-editor-constants.js +6 -0
  18. package/dist/editor/markdown-editor-constants.js.map +1 -0
  19. package/dist/editor/markdown-editor.d.ts +125 -0
  20. package/dist/editor/markdown-editor.js +325 -0
  21. package/dist/editor/markdown-editor.js.map +1 -0
  22. package/dist/editor/markdown-extensions.d.ts +71 -0
  23. package/dist/editor/markdown-extensions.js +172 -0
  24. package/dist/editor/markdown-extensions.js.map +1 -0
  25. package/dist/editor/markdown-syntax.d.ts +87 -0
  26. package/dist/editor/markdown-syntax.js +58 -0
  27. package/dist/editor/markdown-syntax.js.map +1 -0
  28. package/dist/editor/slash-commands.d.ts +62 -0
  29. package/dist/editor/slash-commands.js +186 -0
  30. package/dist/editor/slash-commands.js.map +1 -0
  31. package/dist/editor/suggestion-menu.d.ts +38 -0
  32. package/dist/editor/suggestion-menu.js +144 -0
  33. package/dist/editor/suggestion-menu.js.map +1 -0
  34. package/dist/editor/suggestion-store.d.ts +47 -0
  35. package/dist/editor/suggestion-store.js +49 -0
  36. package/dist/editor/suggestion-store.js.map +1 -0
  37. package/dist/i18n/locale-provider.d.ts +1 -0
  38. package/dist/i18n/messages.d.ts +2 -0
  39. package/dist/i18n/messages.js +3 -0
  40. package/dist/i18n/messages.js.map +1 -1
  41. package/dist/i18n/namespaces/markdown-editor.d.ts +6 -0
  42. package/dist/i18n/namespaces/markdown-editor.js +127 -0
  43. package/dist/i18n/namespaces/markdown-editor.js.map +1 -0
  44. package/dist/index.d.ts +1 -0
  45. package/package.json +79 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comitor/ui",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Comitor design system — Shadcn/UI tùy biến theo brand Comitor + component dùng chung cho hệ sinh thái SaaS (Tasks, Chat, CRM, HR…)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -50,6 +50,10 @@
50
50
  "types": "./dist/uploader/index.d.ts",
51
51
  "import": "./dist/uploader/index.js"
52
52
  },
53
+ "./editor": {
54
+ "types": "./dist/editor/index.d.ts",
55
+ "import": "./dist/editor/index.js"
56
+ },
53
57
  "./form": {
54
58
  "types": "./dist/form.d.ts",
55
59
  "import": "./dist/form.js"
@@ -71,17 +75,32 @@
71
75
  "test:a11y-gate": "node scripts/a11y/self-test.mjs",
72
76
  "test:nav-active": "node scripts/check-nav-active.mjs",
73
77
  "test:grid-render": "node scripts/check-data-grid-render.mjs",
78
+ "test:editor-markdown": "node scripts/check-editor-markdown.mjs",
74
79
  "verify:directives": "node scripts/verify-directives.mjs",
75
80
  "smoke:entries": "node scripts/smoke-entries.mjs",
76
81
  "check:exports": "publint --strict && attw --pack . --profile esm-only --exclude-entrypoints styles.css",
77
- "prepublishOnly": "pnpm run typecheck && pnpm run test:i18n && pnpm run build && pnpm run verify:directives && pnpm run smoke:entries && pnpm run check:exports && pnpm run test:nav-active && pnpm run test:grid-contract && pnpm run test:grid-render && pnpm run test:a11y-gate && pnpm run lint:a11y",
82
+ "prepublishOnly": "pnpm run typecheck && pnpm run test:i18n && pnpm run build && pnpm run verify:directives && pnpm run smoke:entries && pnpm run check:exports && pnpm run test:nav-active && pnpm run test:grid-contract && pnpm run test:grid-render && pnpm run test:editor-markdown && pnpm run test:a11y-gate && pnpm run lint:a11y",
78
83
  "test:grid-contract": "node scripts/check-grid-contract.mjs",
79
84
  "test:i18n": "node scripts/check-i18n.mjs --self-test && node scripts/check-i18n.mjs"
80
85
  },
81
86
  "peerDependencies": {
82
87
  "@tanstack/react-table": ">=8.21.0 <9",
88
+ "@tiptap/core": "^3.31.0",
89
+ "@tiptap/extension-code-block-lowlight": "^3.31.0",
90
+ "@tiptap/extension-image": "^3.31.0",
91
+ "@tiptap/extension-list": "^3.31.0",
92
+ "@tiptap/extension-mention": "^3.31.0",
93
+ "@tiptap/extension-paragraph": "^3.31.0",
94
+ "@tiptap/extension-table": "^3.31.0",
95
+ "@tiptap/extensions": "^3.31.0",
96
+ "@tiptap/markdown": "^3.31.0",
97
+ "@tiptap/pm": "^3.31.0",
98
+ "@tiptap/react": "^3.31.0",
99
+ "@tiptap/starter-kit": "^3.31.0",
100
+ "@tiptap/suggestion": "^3.31.0",
83
101
  "@uppy/core": "^6.0.0",
84
102
  "@uppy/xhr-upload": "^6.0.0",
103
+ "lowlight": "^3.0.0",
85
104
  "lucide-react": ">=0.540.0",
86
105
  "next": ">=15",
87
106
  "next-themes": ">=0.4",
@@ -95,12 +114,54 @@
95
114
  "@tanstack/react-table": {
96
115
  "optional": true
97
116
  },
117
+ "@tiptap/core": {
118
+ "optional": true
119
+ },
120
+ "@tiptap/extension-code-block-lowlight": {
121
+ "optional": true
122
+ },
123
+ "@tiptap/extension-image": {
124
+ "optional": true
125
+ },
126
+ "@tiptap/extension-list": {
127
+ "optional": true
128
+ },
129
+ "@tiptap/extension-mention": {
130
+ "optional": true
131
+ },
132
+ "@tiptap/extension-paragraph": {
133
+ "optional": true
134
+ },
135
+ "@tiptap/extension-table": {
136
+ "optional": true
137
+ },
138
+ "@tiptap/extensions": {
139
+ "optional": true
140
+ },
141
+ "@tiptap/markdown": {
142
+ "optional": true
143
+ },
144
+ "@tiptap/pm": {
145
+ "optional": true
146
+ },
147
+ "@tiptap/react": {
148
+ "optional": true
149
+ },
150
+ "@tiptap/starter-kit": {
151
+ "optional": true
152
+ },
153
+ "@tiptap/suggestion": {
154
+ "optional": true
155
+ },
98
156
  "@uppy/core": {
99
157
  "optional": true
100
158
  },
101
159
  "@uppy/xhr-upload": {
102
160
  "optional": true
103
161
  },
162
+ "lowlight": {
163
+ "optional": true
164
+ },
104
165
  "next": {
105
166
  "optional": true
106
167
  },
@@ -158,6 +219,7 @@
158
219
  "date-fns": "4.4.0",
159
220
  "embla-carousel-react": "8.6.0",
160
221
  "input-otp": "1.4.2",
222
+ "marked": "^17.0.6",
161
223
  "react-day-picker": "9.13.2",
162
224
  "react-resizable-panels": "^2.1.7",
163
225
  "sonner": "^2.0.0",
@@ -169,11 +231,26 @@
169
231
  "@arethetypeswrong/cli": "^0.18.4",
170
232
  "@biomejs/biome": "^2.4.11",
171
233
  "@tanstack/react-table": "^8.21.3",
234
+ "@tiptap/core": "3.31.4",
235
+ "@tiptap/extension-code-block-lowlight": "3.31.4",
236
+ "@tiptap/extension-image": "3.31.4",
237
+ "@tiptap/extension-list": "3.31.4",
238
+ "@tiptap/extension-mention": "3.31.4",
239
+ "@tiptap/extension-paragraph": "3.31.4",
240
+ "@tiptap/extension-table": "3.31.4",
241
+ "@tiptap/extensions": "3.31.4",
242
+ "@tiptap/markdown": "3.31.4",
243
+ "@tiptap/pm": "3.31.4",
244
+ "@tiptap/react": "3.31.4",
245
+ "@tiptap/starter-kit": "3.31.4",
246
+ "@tiptap/suggestion": "3.31.4",
172
247
  "@types/node": "^22.0.0",
173
248
  "@types/react": "^19.0.0",
174
249
  "@types/react-dom": "^19.0.0",
175
250
  "@uppy/core": "^6.0.0",
176
251
  "@uppy/xhr-upload": "^6.0.0",
252
+ "highlight.js": "^11.11.1",
253
+ "lowlight": "^3.3.0",
177
254
  "lucide-react": "^1.41.0",
178
255
  "next": "^16.3.4",
179
256
  "next-themes": "^0.4.6",