dishui 0.0.104 → 0.0.106

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 (62) hide show
  1. package/dist/.release-verified.json +2 -2
  2. package/dist/components/ChoicePicker/index.js +8 -6
  3. package/dist/components/ChoicePicker/index.js.map +1 -1
  4. package/dist/components/Column/index.d.ts +3 -2
  5. package/dist/components/Column/index.js +5 -17
  6. package/dist/components/Column/index.js.map +1 -1
  7. package/dist/components/ConfirmDialog/index.d.ts +20 -0
  8. package/dist/components/ConfirmDialog/index.js +84 -0
  9. package/dist/components/ConfirmDialog/index.js.map +1 -0
  10. package/dist/components/DateTimeInput/index.js +28 -26
  11. package/dist/components/DateTimeInput/index.js.map +1 -1
  12. package/dist/components/Input/index.js +1 -1
  13. package/dist/components/Input/index.js.map +1 -1
  14. package/dist/components/MultipleChoice/index.js +2 -1
  15. package/dist/components/MultipleChoice/index.js.map +1 -1
  16. package/dist/components/Row/index.d.ts +3 -2
  17. package/dist/components/Row/index.js +5 -17
  18. package/dist/components/Row/index.js.map +1 -1
  19. package/dist/components/Tab/index.js +80 -0
  20. package/dist/components/Tab/index.js.map +1 -0
  21. package/dist/components/Tabs/index.js +28 -33
  22. package/dist/components/Tabs/index.js.map +1 -1
  23. package/dist/components/Tabs/tabNavigation.d.ts +2 -0
  24. package/dist/components/Tabs/tabNavigation.js +14 -0
  25. package/dist/components/Tabs/tabNavigation.js.map +1 -0
  26. package/dist/components/pro/CodeEditor/editors/MarkdownEditor.d.ts +1 -1
  27. package/dist/components/pro/CodeEditor/editors/MarkdownEditor.js +25 -26
  28. package/dist/components/pro/CodeEditor/editors/MarkdownEditor.js.map +1 -1
  29. package/dist/components/pro/FileExplorer/Breadcrumb.js +8 -11
  30. package/dist/components/pro/FileExplorer/Breadcrumb.js.map +1 -1
  31. package/dist/components/pro/Flow/Flow.js +184 -182
  32. package/dist/components/pro/Flow/Flow.js.map +1 -1
  33. package/dist/components/pro/Flow/archify/convert.js +26 -26
  34. package/dist/components/pro/Flow/archify/convert.js.map +1 -1
  35. package/dist/components/pro/Flow/hooks/useLayoutActions.js +13 -11
  36. package/dist/components/pro/Flow/hooks/useLayoutActions.js.map +1 -1
  37. package/dist/components/pro/Flow/nodes/MediaContent.d.ts +2 -1
  38. package/dist/components/pro/Flow/nodes/MediaContent.js +15 -15
  39. package/dist/components/pro/Flow/nodes/MediaContent.js.map +1 -1
  40. package/dist/components/pro/Flow/nodes/MediaOverlay.js +8 -7
  41. package/dist/components/pro/Flow/nodes/MediaOverlay.js.map +1 -1
  42. package/dist/components/pro/RichTextEditor/BubbleToolbar.js +73 -83
  43. package/dist/components/pro/RichTextEditor/BubbleToolbar.js.map +1 -1
  44. package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.d.ts +2 -0
  45. package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.js +73 -49
  46. package/dist/components/pro/RichTextEditor/Toolbar/ColorPicker.js.map +1 -1
  47. package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.d.ts +1 -0
  48. package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.js +12 -14
  49. package/dist/components/pro/RichTextEditor/Toolbar/SelectDropdown.js.map +1 -1
  50. package/dist/components/pro/RichTextEditor/extensions/CodeBlockView.js +113 -113
  51. package/dist/components/pro/RichTextEditor/extensions/CodeBlockView.js.map +1 -1
  52. package/dist/css.d.ts +1 -0
  53. package/dist/dishui.css +1 -1
  54. package/dist/index-nostyled.d.ts +2 -0
  55. package/dist/index.d.ts +4 -0
  56. package/dist/index.js +113 -111
  57. package/dist/layouts/Sidebar.js +201 -107
  58. package/dist/layouts/Sidebar.js.map +1 -1
  59. package/dist/utils/flexLayout.d.ts +5 -0
  60. package/dist/utils/flexLayout.js +19 -0
  61. package/dist/utils/flexLayout.js.map +1 -0
  62. package/package.json +63 -57
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flexLayout.js","names":[],"sources":["../../src/utils/flexLayout.ts"],"sourcesContent":["export type FlexAlign = 'start' | 'center' | 'end' | 'baseline' | 'stretch';\nexport type FlexJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\n\nexport const FLEX_ALIGN_CLASS: Record<FlexAlign, string> = {\n start: 'items-start',\n center: 'items-center',\n end: 'items-end',\n baseline: 'items-baseline',\n stretch: 'items-stretch',\n};\n\nexport const FLEX_JUSTIFY_CLASS: Record<FlexJustify, string> = {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n between: 'justify-between',\n around: 'justify-around',\n evenly: 'justify-evenly',\n};\n\nexport const flexGap = (value: number | string | undefined): string | undefined =>\n typeof value === 'number' ? `${value}px` : value;\n"],"mappings":";AAGA,IAAa,IAA8C;CACzD,OAAO;CACP,QAAQ;CACR,KAAK;CACL,UAAU;CACV,SAAS;AACX,GAEa,IAAkD;CAC7D,OAAO;CACP,QAAQ;CACR,KAAK;CACL,SAAS;CACT,QAAQ;CACR,QAAQ;AACV,GAEa,KAAW,MACtB,OAAO,KAAU,WAAW,GAAG,EAAM,MAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dishui",
3
- "version": "0.0.104",
3
+ "version": "0.0.106",
4
4
  "description": "New Components UI Framework with AI Powered",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.12.0",
@@ -56,8 +56,14 @@
56
56
  "types": "./dist/components/Markdown/index.d.ts",
57
57
  "import": "./dist/markdown.js"
58
58
  },
59
- "./css": "./dist/dishui.css",
60
- "./dist/dishui.css": "./dist/dishui.css",
59
+ "./css": {
60
+ "types": "./dist/css.d.ts",
61
+ "default": "./dist/dishui.css"
62
+ },
63
+ "./dist/dishui.css": {
64
+ "types": "./dist/css.d.ts",
65
+ "default": "./dist/dishui.css"
66
+ },
61
67
  "./package.json": "./package.json"
62
68
  },
63
69
  "files": [
@@ -124,89 +130,89 @@
124
130
  },
125
131
  "devDependencies": {
126
132
  "@tailwindcss/postcss": "^4.3.3",
127
- "@tanstack/react-router": "^1.170.33",
128
- "@types/d3-geo": "^3.1.0",
133
+ "@tanstack/react-router": "^1.170.38",
134
+ "@types/d3-geo": "^3.1.1",
129
135
  "@types/d3-scale": "^4.0.9",
130
- "@types/d3-shape": "^3.1.7",
136
+ "@types/d3-shape": "^3.2.0",
131
137
  "@types/d3-time": "^3.0.4",
132
- "@types/node": "^26.1.1",
133
- "@types/react": "^19.2.17",
134
- "@types/react-dom": "^19.2.3",
138
+ "@types/node": "^26.6.2",
139
+ "@types/react": "^19.3.0",
140
+ "@types/react-dom": "^19.3.0",
135
141
  "@types/react-syntax-highlighter": "^15.5.13",
136
- "@types/three": "0.180.0",
137
- "@vitejs/plugin-react": "^6.0.3",
138
- "autoprefixer": "^10.5.4",
142
+ "@types/three": "0.186.0",
143
+ "@vitejs/plugin-react": "^6.1.1",
144
+ "autoprefixer": "^10.6.1",
139
145
  "d3-geo": "3.1.1",
140
146
  "d3-scale": "4.0.2",
141
147
  "d3-shape": "3.2.0",
142
148
  "d3-time": "3.1.0",
143
- "daisyui": "^5.7.32",
149
+ "daisyui": "^5.7.43",
144
150
  "esbuild": "0.28.2",
145
- "oxlint": "^1.82.0",
146
- "playwright-core": "1.58.2",
147
- "postcss": "^8.5.19",
148
- "react": "^19.2.7",
149
- "react-dom": "^19.2.7",
150
- "recharts": "^3.9.2",
151
+ "oxlint": "^1.85.0",
152
+ "playwright-core": "1.63.0",
153
+ "postcss": "^8.5.28",
154
+ "react": "^19.3.0",
155
+ "react-dom": "^19.3.0",
156
+ "recharts": "^3.10.1",
151
157
  "tailwindcss": "^4.3.3",
152
158
  "tslib": "^2.8.1",
153
159
  "typescript": "^7.0.2",
154
- "vite": "^8.2.2"
160
+ "vite": "^8.3.0"
155
161
  },
156
162
  "dependencies": {
157
163
  "@codemirror/autocomplete": "^6.20.3",
158
- "@codemirror/commands": "^6.10.4",
164
+ "@codemirror/commands": "^6.11.1",
159
165
  "@codemirror/lang-css": "^6.3.1",
160
- "@codemirror/lang-html": "^6.4.11",
166
+ "@codemirror/lang-html": "^6.4.12",
161
167
  "@codemirror/lang-javascript": "^6.2.5",
162
168
  "@codemirror/lang-json": "^6.0.2",
163
- "@codemirror/lang-markdown": "^6.5.1",
169
+ "@codemirror/lang-markdown": "^6.5.2",
164
170
  "@codemirror/lang-python": "^6.2.1",
165
171
  "@codemirror/language": "^6.12.4",
166
172
  "@codemirror/language-data": "^6.5.2",
167
173
  "@codemirror/lint": "^6.9.7",
168
- "@codemirror/search": "^6.7.1",
169
- "@codemirror/state": "^6.7.1",
174
+ "@codemirror/search": "^6.7.2",
175
+ "@codemirror/state": "^6.7.6",
170
176
  "@codemirror/theme-one-dark": "^6.1.3",
171
- "@codemirror/view": "^6.43.6",
177
+ "@codemirror/view": "^6.43.13",
172
178
  "@lezer/highlight": "^1.2.3",
173
179
  "@tailwindcss/vite": "^4.3.3",
174
- "@tanstack/charts": "0.16.2",
175
- "@tanstack/history": "^1.162.2",
176
- "@tanstack/react-charts": "^0.16.2",
180
+ "@tanstack/charts": "0.18.0",
181
+ "@tanstack/history": "^1.162.4",
182
+ "@tanstack/react-charts": "^0.18.0",
177
183
  "@tanstack/react-table": "^9.2.4",
178
- "@tanstack/router-core": "^1.171.28",
184
+ "@tanstack/router-core": "^1.171.32",
179
185
  "@tanstack/table-core": "^9.2.4",
180
- "@tiptap/core": "^3.28.0",
181
- "@tiptap/extension-color": "^3.28.0",
182
- "@tiptap/extension-font-family": "^3.28.0",
183
- "@tiptap/extension-highlight": "^3.28.0",
184
- "@tiptap/extension-image": "^3.28.0",
185
- "@tiptap/extension-link": "^3.28.0",
186
- "@tiptap/extension-placeholder": "^3.28.0",
187
- "@tiptap/extension-subscript": "^3.28.0",
188
- "@tiptap/extension-superscript": "^3.28.0",
189
- "@tiptap/extension-table": "^3.28.0",
190
- "@tiptap/extension-table-cell": "^3.28.0",
191
- "@tiptap/extension-table-header": "^3.28.0",
192
- "@tiptap/extension-table-row": "^3.28.0",
193
- "@tiptap/extension-task-item": "^3.28.0",
194
- "@tiptap/extension-task-list": "^3.28.0",
195
- "@tiptap/extension-text-align": "^3.28.0",
196
- "@tiptap/extension-text-style": "^3.28.0",
197
- "@tiptap/extension-typography": "^3.28.0",
198
- "@tiptap/extension-underline": "^3.28.0",
199
- "@tiptap/pm": "^3.28.0",
200
- "@tiptap/react": "^3.28.0",
201
- "@tiptap/starter-kit": "^3.28.0",
186
+ "@tiptap/core": "^3.31.3",
187
+ "@tiptap/extension-color": "^3.31.3",
188
+ "@tiptap/extension-font-family": "^3.31.3",
189
+ "@tiptap/extension-highlight": "^3.31.3",
190
+ "@tiptap/extension-image": "^3.31.3",
191
+ "@tiptap/extension-link": "^3.31.3",
192
+ "@tiptap/extension-placeholder": "^3.31.3",
193
+ "@tiptap/extension-subscript": "^3.31.3",
194
+ "@tiptap/extension-superscript": "^3.31.3",
195
+ "@tiptap/extension-table": "^3.31.3",
196
+ "@tiptap/extension-table-cell": "^3.31.3",
197
+ "@tiptap/extension-table-header": "^3.31.3",
198
+ "@tiptap/extension-table-row": "^3.31.3",
199
+ "@tiptap/extension-task-item": "^3.31.3",
200
+ "@tiptap/extension-task-list": "^3.31.3",
201
+ "@tiptap/extension-text-align": "^3.31.3",
202
+ "@tiptap/extension-text-style": "^3.31.3",
203
+ "@tiptap/extension-typography": "^3.31.3",
204
+ "@tiptap/extension-underline": "^3.31.3",
205
+ "@tiptap/pm": "^3.31.3",
206
+ "@tiptap/react": "^3.31.3",
207
+ "@tiptap/starter-kit": "^3.31.3",
202
208
  "@types/hast": "^3.0.5",
203
209
  "@types/mdast": "^4.0.4",
204
- "fflate": "^0.8.2",
205
- "katex": "^0.17.0",
210
+ "fflate": "^0.8.3",
211
+ "katex": "^0.18.7",
206
212
  "markmap-lib": "^0.18.12",
207
213
  "markmap-view": "^0.18.12",
208
- "mermaid": "^11.16.0",
209
- "pixi.js": "^8.19.0",
214
+ "mermaid": "^12.0.0",
215
+ "pixi.js": "^8.21.0",
210
216
  "react-markdown": "^10.1.0",
211
217
  "react-syntax-highlighter": "^16.1.1",
212
218
  "rehype-katex": "^7.0.1",
@@ -215,7 +221,7 @@
215
221
  "remark-emoji": "^5.0.2",
216
222
  "remark-gfm": "^4.0.1",
217
223
  "remark-math": "^6.0.0",
218
- "three": "^0.180.0",
224
+ "three": "^0.186.0",
219
225
  "topojson-client": "^3.1.0",
220
226
  "unified": "^11.0.5",
221
227
  "unist-util-visit": "^5.1.0",