@comitor/ui 3.3.4 → 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.
- package/README.md +19 -5
- package/dist/components/composite/form-section.js.map +1 -1
- package/dist/components/composite/relative-time.d.ts +13 -2
- package/dist/components/composite/relative-time.js +12 -1
- package/dist/components/composite/relative-time.js.map +1 -1
- package/dist/components/composite/stat-card.d.ts +3 -0
- package/dist/components/composite/stat-card.js +2 -1
- package/dist/components/composite/stat-card.js.map +1 -1
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/field.js.map +1 -1
- package/dist/components/ui/item.d.ts +1 -1
- package/dist/data-grid/use-data-grid.js +24 -10
- package/dist/data-grid/use-data-grid.js.map +1 -1
- package/dist/editor/bubble-toolbar.d.ts +34 -0
- package/dist/editor/bubble-toolbar.js +391 -0
- package/dist/editor/bubble-toolbar.js.map +1 -0
- package/dist/editor/image-upload.d.ts +57 -0
- package/dist/editor/image-upload.js +136 -0
- package/dist/editor/image-upload.js.map +1 -0
- package/dist/editor/index.d.ts +5 -0
- package/dist/editor/index.js +11 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/editor/markdown-editor-classes.d.ts +16 -0
- package/dist/editor/markdown-editor-classes.js +117 -0
- package/dist/editor/markdown-editor-classes.js.map +1 -0
- package/dist/editor/markdown-editor-constants.d.ts +92 -0
- package/dist/editor/markdown-editor-constants.js +6 -0
- package/dist/editor/markdown-editor-constants.js.map +1 -0
- package/dist/editor/markdown-editor.d.ts +125 -0
- package/dist/editor/markdown-editor.js +325 -0
- package/dist/editor/markdown-editor.js.map +1 -0
- package/dist/editor/markdown-extensions.d.ts +71 -0
- package/dist/editor/markdown-extensions.js +172 -0
- package/dist/editor/markdown-extensions.js.map +1 -0
- package/dist/editor/markdown-syntax.d.ts +87 -0
- package/dist/editor/markdown-syntax.js +58 -0
- package/dist/editor/markdown-syntax.js.map +1 -0
- package/dist/editor/slash-commands.d.ts +62 -0
- package/dist/editor/slash-commands.js +186 -0
- package/dist/editor/slash-commands.js.map +1 -0
- package/dist/editor/suggestion-menu.d.ts +38 -0
- package/dist/editor/suggestion-menu.js +144 -0
- package/dist/editor/suggestion-menu.js.map +1 -0
- package/dist/editor/suggestion-store.d.ts +47 -0
- package/dist/editor/suggestion-store.js +49 -0
- package/dist/editor/suggestion-store.js.map +1 -0
- package/dist/i18n/locale-provider.d.ts +1 -0
- package/dist/i18n/messages.d.ts +2 -0
- package/dist/i18n/messages.js +3 -0
- package/dist/i18n/messages.js.map +1 -1
- package/dist/i18n/namespaces/markdown-editor.d.ts +6 -0
- package/dist/i18n/namespaces/markdown-editor.js +127 -0
- package/dist/i18n/namespaces/markdown-editor.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +80 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comitor/ui",
|
|
3
|
-
"version": "3.
|
|
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
|
},
|
|
@@ -115,6 +176,7 @@
|
|
|
115
176
|
}
|
|
116
177
|
},
|
|
117
178
|
"dependencies": {
|
|
179
|
+
"@date-fns/tz": "^1.5.0",
|
|
118
180
|
"@diceui/mention": "^1.0.0",
|
|
119
181
|
"@diceui/tags-input": "^1.0.0",
|
|
120
182
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -157,6 +219,7 @@
|
|
|
157
219
|
"date-fns": "4.4.0",
|
|
158
220
|
"embla-carousel-react": "8.6.0",
|
|
159
221
|
"input-otp": "1.4.2",
|
|
222
|
+
"marked": "^17.0.6",
|
|
160
223
|
"react-day-picker": "9.13.2",
|
|
161
224
|
"react-resizable-panels": "^2.1.7",
|
|
162
225
|
"sonner": "^2.0.0",
|
|
@@ -168,11 +231,26 @@
|
|
|
168
231
|
"@arethetypeswrong/cli": "^0.18.4",
|
|
169
232
|
"@biomejs/biome": "^2.4.11",
|
|
170
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",
|
|
171
247
|
"@types/node": "^22.0.0",
|
|
172
248
|
"@types/react": "^19.0.0",
|
|
173
249
|
"@types/react-dom": "^19.0.0",
|
|
174
250
|
"@uppy/core": "^6.0.0",
|
|
175
251
|
"@uppy/xhr-upload": "^6.0.0",
|
|
252
|
+
"highlight.js": "^11.11.1",
|
|
253
|
+
"lowlight": "^3.3.0",
|
|
176
254
|
"lucide-react": "^1.41.0",
|
|
177
255
|
"next": "^16.3.4",
|
|
178
256
|
"next-themes": "^0.4.6",
|