@allbluecn/web-app 0.18.1 → 0.18.2

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 (555) hide show
  1. package/package.json +3 -5
  2. package/src/__tests__/{knowledge/public → knowledge-public}/canonical-id.test.ts +1 -1
  3. package/src/__tests__/{knowledge/public → knowledge-public}/favicon.test.ts +1 -1
  4. package/src/__tests__/{knowledge/public → knowledge-public}/github-sync.test.ts +1 -1
  5. package/src/__tests__/{knowledge/public → knowledge-public}/share-merge.test.ts +1 -1
  6. package/src/__tests__/visual/theme-surface.vrt.test.tsx +1 -1
  7. package/src/components/agents/agent-bindings-tab.tsx +3 -3
  8. package/src/components/agents/agent-card.tsx +4 -4
  9. package/src/components/agents/agent-form-dialog.tsx +9 -9
  10. package/src/components/agents/agent-selector.tsx +1 -1
  11. package/src/components/agents/agents-page.tsx +1 -1
  12. package/src/components/agents/skill-card.tsx +1 -1
  13. package/src/components/agents/skill-form-dialog.tsx +5 -5
  14. package/src/components/agents/use-agent-handlers.ts +1 -1
  15. package/src/components/ai/__tests__/prompt-input-actions.test.tsx +1 -1
  16. package/src/components/ai/ai-chat-prompt.tsx +3 -3
  17. package/src/components/ai/ai-prompt-input/components/action-buttons.tsx +3 -3
  18. package/src/components/ai/ai-prompt-input/components/agent-mode-select.tsx +1 -1
  19. package/src/components/ai/ai-prompt-input/components/model-select.tsx +1 -1
  20. package/src/components/ai/ai-prompt-input/index.tsx +3 -3
  21. package/src/components/ai/ai-suggested-prompts.tsx +5 -5
  22. package/src/components/ai/global-harness-sidebar/index.tsx +5 -5
  23. package/src/components/ai/tool-parts/tool-call-part.tsx +1 -1
  24. package/src/components/ai/tool-parts/tool-result-part.tsx +1 -1
  25. package/src/components/anyhub/anyhub-app-card.tsx +5 -5
  26. package/src/components/anyhub/anyhub-install-dialog.tsx +4 -4
  27. package/src/components/anyhub/anyhub-management-view.tsx +1 -1
  28. package/src/components/anyhub/anyhub-marketplace-view.tsx +4 -4
  29. package/src/components/anyhub/anyhub-permission-panel.tsx +4 -4
  30. package/src/components/anyhub/anyhub-top-nav.tsx +2 -2
  31. package/src/components/auth/icon-input.tsx +2 -2
  32. package/src/components/auth/oauth-section.tsx +2 -2
  33. package/src/components/auth/password-input.tsx +2 -2
  34. package/src/components/auth/sso-section.tsx +1 -1
  35. package/src/components/billing/__tests__/seats-manager.test.tsx +1 -1
  36. package/src/components/billing/checkout-redirect.ts +1 -1
  37. package/src/components/billing/login-prompt-dialog.tsx +3 -3
  38. package/src/components/billing/seats-manager.tsx +2 -2
  39. package/src/components/bug/__tests__/bug-display-dropdown.test.tsx +1 -1
  40. package/src/components/bug/__tests__/bug-toolbar.test.tsx +1 -1
  41. package/src/components/bug/__tests__/create-bug-dialog.test.tsx +2 -2
  42. package/src/components/bug/__tests__/use-paged-bug-groups.test.tsx +1 -1
  43. package/src/components/bug/bug-list-table.tsx +1 -1
  44. package/src/components/bug/bug-list-view.tsx +1 -1
  45. package/src/components/bug/bug-panel-header.tsx +5 -5
  46. package/src/components/bug/bug-toolbar.tsx +3 -3
  47. package/src/components/bug/collect/__tests__/collect-form.test.tsx +1 -1
  48. package/src/components/bug/collect/collect-form.tsx +5 -5
  49. package/src/components/bug/columns.tsx +1 -1
  50. package/src/components/bug/create-bug-dialog.tsx +4 -4
  51. package/src/components/bug/detail/__tests__/error-context.test.tsx +1 -1
  52. package/src/components/bug/detail/__tests__/repro-report-card.test.tsx +1 -1
  53. package/src/components/bug/detail/activity-tabs.tsx +1 -1
  54. package/src/components/bug/detail/bug-detail-body.tsx +6 -6
  55. package/src/components/bug/detail/comment-input.tsx +3 -3
  56. package/src/components/bug/detail/comment-item.tsx +5 -5
  57. package/src/components/bug/detail/events-timeline.tsx +1 -1
  58. package/src/components/bug/detail/fix-timeline.tsx +3 -3
  59. package/src/components/bug/detail/props-section.tsx +2 -2
  60. package/src/components/bug/detail/regression-section.tsx +3 -3
  61. package/src/components/bug/detail/repro-report-card.tsx +6 -6
  62. package/src/components/bug/display/display-dropdown.tsx +2 -2
  63. package/src/components/bug/filters/add-filter-dropdown.tsx +1 -1
  64. package/src/components/bug/filters/applied-filters.tsx +1 -1
  65. package/src/components/bug/filters/filter-row.tsx +1 -1
  66. package/src/components/bug/filters/filter-toggle.tsx +2 -2
  67. package/src/components/bug/filters/filter-value-input.tsx +1 -1
  68. package/src/components/bug/inline-editors/assignee-editor.tsx +1 -1
  69. package/src/components/bug/inline-editors/date-editor.tsx +1 -1
  70. package/src/components/bug/inline-editors/inline-trigger.tsx +2 -2
  71. package/src/components/bug/peek-panel.tsx +1 -1
  72. package/src/components/bug/reproduce-steps-editor.tsx +3 -3
  73. package/src/components/bug/settings/bug-settings-panel.tsx +4 -4
  74. package/src/components/bug/settings/collect-page-manager.tsx +9 -9
  75. package/src/components/bug/settings/install-commands.tsx +3 -3
  76. package/src/components/bug/settings/token-list.tsx +7 -7
  77. package/src/components/bug/settings/webhook-manager.tsx +9 -9
  78. package/src/components/bug/views/bug-list/batch-toolbar.tsx +4 -4
  79. package/src/components/bug/views/bug-list/group.tsx +2 -2
  80. package/src/components/bug/views/bug-list/index.tsx +1 -1
  81. package/src/components/bug/views/bug-list/inline-bug-creator.tsx +1 -1
  82. package/src/components/bug/views/bug-list/row.tsx +2 -2
  83. package/src/components/bug/views/view-switcher.tsx +1 -1
  84. package/src/components/changelog/changelog-page.tsx +1 -1
  85. package/{allblue-ui/src → src}/components/confirm-dialog.tsx +2 -2
  86. package/src/components/design/canvas/panels/appearance-text-panel.tsx +3 -3
  87. package/src/components/design/canvas/panels/controls/add-button.tsx +1 -1
  88. package/src/components/design/canvas/panels/controls/constraint-select.tsx +1 -1
  89. package/src/components/design/canvas/panels/controls/gradient-editor.tsx +1 -1
  90. package/src/components/design/canvas/panels/controls/pattern-params.tsx +2 -2
  91. package/src/components/design/canvas/panels/controls/rows.tsx +3 -3
  92. package/src/components/design/canvas/panels/controls/shader-picker.tsx +3 -3
  93. package/src/components/design/canvas/panels/controls/text-style-button.tsx +1 -1
  94. package/src/components/design/canvas/panels/controls/toolbar-button.tsx +2 -2
  95. package/src/components/design/canvas/panels/frame-property-panel.tsx +3 -3
  96. package/src/components/design/canvas/panels/layer-panel.tsx +2 -2
  97. package/src/components/design/canvas/panels/paint-lists-panel.tsx +1 -1
  98. package/src/components/design/canvas/panels/property-panel.tsx +3 -3
  99. package/src/components/design/canvas/panels/shape-corners-panel.tsx +2 -2
  100. package/src/components/design/canvas/panels/toolbar.tsx +4 -4
  101. package/src/components/design/canvas/panels/transform-layout-panel.tsx +3 -3
  102. package/src/components/design/canvas/react/__tests__/hooks.test.tsx +2 -2
  103. package/src/components/design/canvas/react/hooks.ts +1 -1
  104. package/src/components/design/canvas/react/workbench.tsx +2 -2
  105. package/src/components/design/editor/annotation/annotation-node/annotation-node-view.tsx +1 -1
  106. package/src/components/design/editor/collaboration/__tests__/design-agent-panel-regenerate.test.tsx +1 -1
  107. package/src/components/design/editor/collaboration/__tests__/design-agent-panel-stream.test.tsx +2 -2
  108. package/src/components/design/editor/collaboration/agent-input.tsx +2 -2
  109. package/src/components/design/editor/collaboration/design-agent-panel.tsx +2 -2
  110. package/src/components/design/editor/collaboration/design-comment-review-panel.tsx +4 -4
  111. package/src/components/design/editor/dashboard/create-design-dialog.tsx +3 -3
  112. package/src/components/design/editor/dashboard/design-dashboard.tsx +4 -4
  113. package/src/components/design/editor/layout/__tests__/context-menu.test.tsx +1 -1
  114. package/src/components/design/editor/layout/__tests__/no-page-save-toast.test.tsx +2 -2
  115. package/src/components/design/editor/layout/__tests__/persistence-restore.test.tsx +1 -1
  116. package/src/components/design/editor/layout/__tests__/ssr-localstorage-smoke.test.tsx +1 -1
  117. package/src/components/design/editor/layout/context-menu.tsx +1 -1
  118. package/src/components/design/editor/layout/design-doc-panel.tsx +2 -2
  119. package/src/components/design/editor/layout/design-editor-layout.tsx +1 -1
  120. package/src/components/design/editor/layout/design-navigation.tsx +4 -4
  121. package/src/components/design/editor/layout/design-right-sidebar.tsx +2 -2
  122. package/src/components/design/editor/layout/hooks/use-design-auto-save.ts +1 -1
  123. package/src/components/design/editor/pages/design-detail-page.tsx +1 -1
  124. package/src/components/design/editor/pages/share-design-page.tsx +1 -1
  125. package/src/components/design/editor/pages-tree/design-tree-page-tab.tsx +3 -3
  126. package/src/components/design/editor/share/design-share-panel/components/single-version-share-card.tsx +6 -6
  127. package/src/components/design/editor/share/design-share-panel/index.tsx +9 -9
  128. package/src/components/design/editor/share/share-comment-panel.tsx +4 -4
  129. package/src/components/design/editor/share/share-nav-bar.tsx +3 -3
  130. package/src/components/design/editor/share/share-password-gate.tsx +3 -3
  131. package/src/components/design/editor/share/share-review-panel.tsx +4 -4
  132. package/src/components/design/editor/versions/components/create-version-dialog.tsx +2 -2
  133. package/src/components/design/editor/versions/components/delete-version-dialog.tsx +2 -2
  134. package/src/components/design/editor/versions/components/edit-version-dialog.tsx +2 -2
  135. package/src/components/design/editor/versions/components/page-tree-selector.tsx +4 -4
  136. package/src/components/design/editor/versions/components/page-version-timeline.tsx +2 -2
  137. package/src/components/design/editor/versions/page-version-panel.tsx +5 -5
  138. package/src/components/design/editor/versions/page-version-tree.tsx +3 -3
  139. package/src/components/design/editor/versions/restore-version-dialog.tsx +2 -2
  140. package/src/components/error/global-error-boundary.tsx +1 -1
  141. package/src/components/forms/app-array-field.tsx +1 -1
  142. package/src/components/forms/app-checkbox.tsx +1 -1
  143. package/src/components/forms/app-combobox.tsx +1 -1
  144. package/src/components/forms/app-date-picker.tsx +1 -1
  145. package/src/components/forms/app-field.tsx +1 -1
  146. package/src/components/forms/app-form-dialog.tsx +2 -2
  147. package/src/components/forms/app-input.tsx +1 -1
  148. package/src/components/forms/app-section.tsx +1 -1
  149. package/src/components/forms/app-select.tsx +1 -1
  150. package/src/components/forms/app-switch.tsx +1 -1
  151. package/src/components/forms/app-textarea.tsx +1 -1
  152. package/src/components/forms/hooks/use-form-submit.ts +1 -1
  153. package/src/components/harness/__tests__/media-route.test.tsx +1 -1
  154. package/src/components/harness/agent-preset-picker.tsx +3 -3
  155. package/src/components/harness/ai-chat-history/components/conversation-header.tsx +2 -2
  156. package/src/components/harness/ai-chat-history/components/conversation-item.tsx +3 -3
  157. package/src/components/harness/ai-chat-history/components/conversation-search.tsx +1 -1
  158. package/src/components/harness/ai-chat-history/components/empty-state.tsx +1 -1
  159. package/src/components/harness/ai-chat-history/index.tsx +2 -2
  160. package/src/components/harness/ai-citations/components/citation-item.tsx +1 -1
  161. package/src/components/harness/ai-citations/components/source-components.tsx +1 -1
  162. package/src/components/harness/ai-citations/index.tsx +1 -1
  163. package/src/components/harness/ai-thinking.tsx +1 -1
  164. package/src/components/harness/code/file-tree.tsx +1 -1
  165. package/src/components/harness/code/preview-panel.tsx +2 -2
  166. package/src/components/harness/code/workspace-picker.tsx +3 -3
  167. package/src/components/harness/composer/harness-composer.tsx +3 -3
  168. package/src/components/harness/composer/model-select.tsx +1 -1
  169. package/src/components/harness/connection-indicator.tsx +1 -1
  170. package/src/components/harness/gallery/gallery-card.tsx +5 -5
  171. package/src/components/harness/gallery/gallery-grid.tsx +5 -5
  172. package/src/components/harness/gallery/lightbox-viewer.tsx +2 -2
  173. package/src/components/harness/gallery/retranscribe-dialog.tsx +5 -5
  174. package/src/components/harness/harness-workbench-page.tsx +2 -2
  175. package/src/components/harness/image-lightbox.tsx +1 -1
  176. package/src/components/harness/interrupt-approval.tsx +2 -2
  177. package/src/components/harness/message-actions.tsx +2 -2
  178. package/src/components/harness/plan-approval-card.tsx +2 -2
  179. package/src/components/harness/plugin-define-approval.tsx +2 -2
  180. package/src/components/harness/plugin-panel.tsx +3 -3
  181. package/src/components/harness/queue-bar.tsx +1 -1
  182. package/src/components/harness/queue-item.tsx +1 -1
  183. package/src/components/harness/retry-countdown-bar.tsx +1 -1
  184. package/src/components/hextaui/ai-citations.tsx +1 -1
  185. package/src/components/hextaui/ai-file-upload.tsx +2 -2
  186. package/src/components/hextaui/ai-message.tsx +2 -2
  187. package/src/components/hextaui/ai-thinking.tsx +1 -1
  188. package/src/components/hotkeys/shortcuts-panel.tsx +2 -2
  189. package/src/components/iteration/auto-schedule-dialog.tsx +5 -5
  190. package/src/components/iteration/create-iteration-dialog.tsx +5 -5
  191. package/src/components/iteration/iteration-editor.tsx +3 -3
  192. package/src/components/knowledge/dialog/knowledge-form-dialog.tsx +3 -3
  193. package/src/components/knowledge/doc-properties.tsx +2 -2
  194. package/src/components/knowledge/kb-filter-popover.tsx +2 -2
  195. package/src/components/knowledge/knowledge-tag-input.tsx +2 -2
  196. package/src/components/knowledge/knowledge-toolbar.tsx +9 -9
  197. package/src/components/knowledge/knowledge-tree-item.tsx +5 -5
  198. package/src/components/knowledge/knowledge-tree.tsx +3 -3
  199. package/src/components/{knowledge/public → knowledge-public}/bookmark-card.tsx +3 -3
  200. package/src/components/{knowledge/public → knowledge-public}/bookmark-form-dialog.tsx +10 -10
  201. package/src/components/{knowledge/public → knowledge-public}/knowledge-card.tsx +2 -2
  202. package/src/components/{knowledge/public → knowledge-public}/knowledge-form-dialog.tsx +15 -15
  203. package/src/components/{knowledge/public → knowledge-public}/knowledge-search-bar.tsx +2 -2
  204. package/src/components/{knowledge/public → knowledge-public}/legal-compliance-editor.tsx +7 -7
  205. package/src/components/{knowledge/public → knowledge-public}/markdown-editor.tsx +2 -2
  206. package/src/components/{knowledge/public → knowledge-public}/sharers-avatar-group.tsx +1 -1
  207. package/src/components/layout/sidebar-03/__tests__/nav-workspace.test.tsx +2 -2
  208. package/src/components/layout/sidebar-03/__tests__/user-menu-anonymous.test.tsx +3 -3
  209. package/src/components/layout/sidebar-03/app-sidebar.tsx +1 -1
  210. package/src/components/layout/sidebar-03/index.tsx +1 -1
  211. package/src/components/layout/sidebar-03/nav-anyhub.tsx +2 -2
  212. package/src/components/layout/sidebar-03/nav-knowledge.tsx +4 -4
  213. package/src/components/layout/sidebar-03/nav-main.tsx +4 -4
  214. package/src/components/layout/sidebar-03/nav-notifications.tsx +1 -1
  215. package/src/components/layout/sidebar-03/nav-search-trigger.tsx +1 -1
  216. package/src/components/layout/sidebar-03/nav-secondary.tsx +1 -1
  217. package/src/components/layout/sidebar-03/nav-workspace.tsx +2 -2
  218. package/src/components/layout/sidebar-03/team-switcher.tsx +2 -2
  219. package/src/components/layout/sidebar-03/user-menu.tsx +3 -3
  220. package/src/components/notifications/settings-notifications.tsx +6 -6
  221. package/src/components/notifications/team-notifications.tsx +6 -6
  222. package/src/components/project/create-project-dialog.tsx +4 -4
  223. package/src/components/project/invite-member-dialog.tsx +6 -6
  224. package/src/components/project/project-member-manager.tsx +5 -5
  225. package/src/components/project/project-module-card.tsx +1 -1
  226. package/src/components/settings/ai/api-key-field.tsx +3 -3
  227. package/src/components/settings/ai/byok-section.tsx +2 -2
  228. package/src/components/settings/ai/create-custom-model-dialog.tsx +5 -5
  229. package/src/components/settings/ai/create-custom-provider-dialog.tsx +5 -5
  230. package/src/components/settings/ai/local-agent-panel.tsx +3 -3
  231. package/src/components/settings/ai/model-card.tsx +2 -2
  232. package/src/components/settings/ai/model-manager.tsx +4 -4
  233. package/src/components/settings/ai/provider-card.tsx +1 -1
  234. package/src/components/settings/ai/provider-detail-form.tsx +6 -6
  235. package/src/components/settings/ai/provider-grid.tsx +3 -3
  236. package/src/components/settings/ai/source/model-source-picker.tsx +2 -2
  237. package/src/components/settings/language-selector.tsx +2 -2
  238. package/src/components/settings/personal-team/account/account-client.tsx +2 -2
  239. package/src/components/settings/personal-team/account/avatar/notion-avatar-editor.tsx +3 -3
  240. package/src/components/settings/personal-team/account/settings-profile.tsx +8 -8
  241. package/src/components/settings/personal-team/team/invitation-cards/invitation-badges.tsx +1 -1
  242. package/src/components/settings/personal-team/team/invitation-cards/invitation-history-list.tsx +5 -5
  243. package/src/components/settings/personal-team/team/invitation-cards/invite-email-card.tsx +5 -5
  244. package/src/components/settings/personal-team/team/invitation-cards/invite-link-card.tsx +3 -3
  245. package/src/components/settings/personal-team/team/team-client.tsx +6 -6
  246. package/src/components/settings/personal-team/team/team-invitations.tsx +1 -1
  247. package/src/components/settings/personal-team/team/team-member-list.tsx +7 -7
  248. package/src/components/shared-kit/avatars/notion-avatar.tsx +109 -3
  249. package/src/components/shared-kit/avatars/user-avatar.tsx +65 -3
  250. package/src/components/shared-kit/data-viz/contribution-graph-tooltip.tsx +1 -1
  251. package/src/components/shared-kit/dialogs/name-confirm-dialog.tsx +5 -5
  252. package/src/components/shared-kit/i18n/language-switcher.tsx +2 -2
  253. package/src/components/shared-kit/icons/lucide-icon-picker/index.tsx +1 -1
  254. package/src/components/shared-kit/icons/lucide-icon-picker/panel.tsx +1 -1
  255. package/src/components/shared-kit/theme/theme-surface.tsx +4 -4
  256. package/src/components/shared-kit/theme/theme-toggle.tsx +1 -1
  257. package/src/components/shared-kit/timezone/timezone-select.tsx +1 -1
  258. package/src/components/story/__tests__/story-list-view-restore.test.tsx +2 -2
  259. package/src/components/story/__tests__/story-list-view-ssr.test.tsx +2 -2
  260. package/src/components/story/ai/handlers/more-popover.tsx +2 -2
  261. package/src/components/story/ai/handlers/stream-text.ts +1 -1
  262. package/src/components/story/ai/prototype-dialog.tsx +4 -4
  263. package/src/components/story/ai/split-dialog.tsx +6 -6
  264. package/src/components/story/ai/story-ai-panel.tsx +4 -4
  265. package/src/components/story/ai/story-ai-preview-list.tsx +4 -4
  266. package/src/components/story/ai/story-ai-toolbar.tsx +3 -3
  267. package/src/components/story/columns.tsx +1 -1
  268. package/src/components/story/create-story-dialog.tsx +4 -4
  269. package/src/components/story/detail/__tests__/associated-attachments-panel.test.tsx +1 -1
  270. package/src/components/story/detail/__tests__/categories.test.tsx +1 -1
  271. package/src/components/story/detail/__tests__/dependencies-button.test.tsx +1 -1
  272. package/src/components/story/detail/comment-input.tsx +3 -3
  273. package/src/components/story/detail/comment-item.tsx +3 -3
  274. package/src/components/story/detail/reaction-bar.tsx +1 -1
  275. package/src/components/story/detail/story-detail-body.tsx +5 -5
  276. package/src/components/story/detail/story-detail-toolbar/__tests__/related-test-cases.test.tsx +1 -1
  277. package/src/components/story/detail/story-detail-toolbar/associated-attachments-panel.tsx +4 -4
  278. package/src/components/story/detail/story-detail-toolbar/categories.tsx +1 -1
  279. package/src/components/story/detail/story-detail-toolbar/children.tsx +5 -5
  280. package/src/components/story/detail/story-detail-toolbar/dependencies.tsx +1 -1
  281. package/src/components/story/detail/story-detail-toolbar/dependency-panel.tsx +3 -3
  282. package/src/components/story/detail/story-detail-toolbar/related-test-cases.tsx +1 -1
  283. package/src/components/story/detail/story-detail-toolbar.tsx +2 -2
  284. package/src/components/story/detail/story-properties.tsx +1 -1
  285. package/src/components/story/display/__tests__/display-dropdown.test.tsx +1 -1
  286. package/src/components/story/display/display-dropdown.tsx +3 -3
  287. package/src/components/story/filters/add-filter-dropdown.tsx +1 -1
  288. package/src/components/story/filters/applied-filters.tsx +1 -1
  289. package/src/components/story/filters/filter-row.tsx +1 -1
  290. package/src/components/story/filters/filter-toggle.tsx +2 -2
  291. package/src/components/story/inline-editors/__tests__/dependency-type-select.test.tsx +2 -2
  292. package/src/components/story/inline-editors/__tests__/labels-editor.test.tsx +2 -2
  293. package/src/components/story/inline-editors/__tests__/priority-editor.test.tsx +1 -1
  294. package/src/components/story/inline-editors/__tests__/state-editor.test.tsx +1 -1
  295. package/src/components/story/inline-editors/assignee-editor.tsx +1 -1
  296. package/src/components/story/inline-editors/date-editor.tsx +1 -1
  297. package/src/components/story/inline-editors/dependency-type-select.tsx +2 -2
  298. package/src/components/story/inline-editors/inline-trigger.tsx +2 -2
  299. package/src/components/story/inline-editors/labels-editor.tsx +2 -2
  300. package/src/components/story/inline-editors/parent-story-editor.tsx +1 -1
  301. package/src/components/story/inline-editors/story-select-dialog.tsx +6 -6
  302. package/src/components/story/peek-panel.tsx +2 -2
  303. package/src/components/story/relations/__tests__/attachment-manage-dialog.test.tsx +4 -4
  304. package/src/components/story/relations/__tests__/knowledge-select-dialog.test.tsx +2 -2
  305. package/src/components/story/relations/__tests__/link-manage-dialog.test.tsx +1 -1
  306. package/src/components/story/relations/attachment-manage-dialog.tsx +4 -4
  307. package/src/components/story/relations/knowledge-select-dialog.tsx +5 -5
  308. package/src/components/story/relations/link-manage-dialog.tsx +5 -5
  309. package/src/components/story/relations/story-ref-row.tsx +5 -5
  310. package/src/components/story/search-popover.tsx +1 -1
  311. package/src/components/story/story-list-table.tsx +1 -1
  312. package/src/components/story/story-list-view.tsx +2 -2
  313. package/src/components/story/story-panel-header.tsx +5 -5
  314. package/src/components/story/story-toolbar.tsx +4 -4
  315. package/src/components/story/transfer-story-popover.tsx +4 -4
  316. package/src/components/story/views/calendar-view.tsx +3 -3
  317. package/src/components/story/views/create-view-dialog.tsx +2 -2
  318. package/src/components/story/views/kanban-board.tsx +2 -2
  319. package/src/components/story/views/story-list/__tests__/batch-toolbar.test.tsx +1 -1
  320. package/src/components/story/views/story-list/__tests__/group-header.test.tsx +1 -1
  321. package/src/components/story/views/story-list/batch-preview-dialog.tsx +7 -7
  322. package/src/components/story/views/story-list/batch-toolbar.tsx +3 -3
  323. package/src/components/story/views/story-list/group.tsx +2 -2
  324. package/src/components/story/views/story-list/index.tsx +1 -1
  325. package/src/components/story/views/story-list/row.tsx +1 -1
  326. package/src/components/story/views/timeline-view.tsx +3 -3
  327. package/src/components/story/views/view-list-section.tsx +1 -1
  328. package/src/components/story/views/view-selector-button.tsx +2 -2
  329. package/src/components/story/views/view-switcher.tsx +1 -1
  330. package/src/components/tags/nav-tag.tsx +6 -6
  331. package/src/components/tags/tag-badge.tsx +1 -1
  332. package/src/components/tags/tag-manager.tsx +5 -5
  333. package/src/components/tags/tag-selector.tsx +1 -1
  334. package/src/components/testcase/__tests__/artifact-panel.test.tsx +1 -1
  335. package/src/components/testcase/__tests__/case-row.test.tsx +2 -2
  336. package/src/components/testcase/__tests__/convert-bug.test.tsx +2 -2
  337. package/src/components/testcase/__tests__/folder-tree.test.tsx +2 -2
  338. package/src/components/testcase/__tests__/generate-dialog.test.tsx +1 -1
  339. package/src/components/testcase/__tests__/review-layout.test.tsx +1 -1
  340. package/src/components/testcase/__tests__/step-editor.test.tsx +2 -2
  341. package/src/components/testcase/ai/generate-dialog.tsx +4 -4
  342. package/src/components/testcase/automation/artifact-diff.tsx +1 -1
  343. package/src/components/testcase/automation/artifact-panel.tsx +6 -6
  344. package/src/components/testcase/automation/verify-report.tsx +1 -1
  345. package/src/components/testcase/create-testcase-dialog.tsx +5 -5
  346. package/src/components/testcase/detail/case-detail-body.tsx +1 -1
  347. package/src/components/testcase/detail/properties.tsx +1 -1
  348. package/src/components/testcase/detail/story-link-editor.tsx +1 -1
  349. package/src/components/testcase/filters/index.tsx +2 -2
  350. package/src/components/testcase/folder-tree.tsx +2 -2
  351. package/src/components/testcase/generation/batch-actions.tsx +1 -1
  352. package/src/components/testcase/generation/draft-card.tsx +5 -5
  353. package/src/components/testcase/generation/review-layout.tsx +2 -2
  354. package/src/components/testcase/inline-editors/assignee-editor.tsx +1 -1
  355. package/src/components/testcase/list/case-row.tsx +1 -1
  356. package/src/components/testcase/list/grouped-list.tsx +1 -1
  357. package/src/components/testcase/list-view.tsx +1 -1
  358. package/src/components/testcase/peek-panel.tsx +4 -4
  359. package/src/components/testcase/plans/add-to-plan-bar.tsx +2 -2
  360. package/src/components/testcase/plans/add-to-plan-dialog.tsx +4 -4
  361. package/src/components/testcase/plans/create-plan-dialog.tsx +5 -5
  362. package/src/components/testcase/plans/plan-detail.tsx +7 -7
  363. package/src/components/testcase/plans/plan-list.tsx +3 -3
  364. package/src/components/testcase/plans/plan-state-badge.tsx +1 -1
  365. package/src/components/testcase/runs/case-checklist.tsx +3 -3
  366. package/src/components/testcase/runs/convert-bug-button.tsx +1 -1
  367. package/src/components/testcase/runs/failure-list.tsx +2 -2
  368. package/src/components/testcase/runs/pending-bugs.tsx +3 -3
  369. package/src/components/testcase/runs/run-header.tsx +1 -1
  370. package/src/components/testcase/runs/step-row.tsx +2 -2
  371. package/src/components/testcase/step-editor.tsx +2 -2
  372. package/src/components/testcase/table/table-view.tsx +1 -1
  373. package/src/components/testcase/testcase-toolbar.tsx +3 -3
  374. package/src/components/testcase/views/create-view-dialog.tsx +2 -2
  375. package/src/components/testcase/views/view-selector-button.tsx +2 -2
  376. package/src/components/testcase/views/view-switcher.tsx +1 -1
  377. package/src/components/tiptap/mindmap/mind-map-context-menu.tsx +1 -1
  378. package/src/components/tiptap/mindmap/mind-map-controls.tsx +2 -2
  379. package/src/components/tiptap/mindmap/mindmap-fullscreen-dialog.tsx +1 -1
  380. package/src/components/tiptap/notion-like/notion-like-editor-header.tsx +2 -2
  381. package/src/components/tiptap/ui/ai-menu/ai-menu.tsx +1 -1
  382. package/src/components/tiptap/ui/mention-dropdown-menu/mention-dropdown-menu.tsx +1 -1
  383. package/src/components/ui/__tests__/select.test.tsx +1 -1
  384. package/src/components/ui/button-group.tsx +1 -1
  385. package/src/components/ui/calendar.tsx +1 -1
  386. package/src/components/ui/command.tsx +2 -2
  387. package/src/components/ui/item.tsx +1 -1
  388. package/src/components/ui/message-scroller.tsx +1 -1
  389. package/src/components/ui/questionnaire.tsx +1 -1
  390. package/{allblue-ui/src → src/components}/ui/sidebar.tsx +1 -1
  391. package/src/components/workspace/__tests__/dialogs/create-workspace-dialog.test.tsx +3 -3
  392. package/src/components/workspace/__tests__/dialogs/delete-workspace-options.test.tsx +3 -3
  393. package/src/components/workspace/__tests__/dialogs/edit-workspace-dialog.test.tsx +3 -3
  394. package/src/components/workspace/__tests__/header/workspace-header.test.tsx +3 -3
  395. package/src/components/workspace/__tests__/kb/workspace-kb-card.test.tsx +2 -2
  396. package/src/components/workspace/__tests__/members/workspace-members-manager.test.tsx +5 -5
  397. package/src/components/workspace/__tests__/projects/workspace-project-list.test.tsx +2 -2
  398. package/src/components/workspace/dialogs/create-workspace-dialog.tsx +3 -3
  399. package/src/components/workspace/dialogs/delete-workspace-options.tsx +3 -3
  400. package/src/components/workspace/dialogs/edit-workspace-dialog.tsx +3 -3
  401. package/src/components/workspace/header/workspace-header.tsx +3 -3
  402. package/src/components/workspace/kb/workspace-kb-card.tsx +6 -6
  403. package/src/components/workspace/kb/workspace-kb-manage-dialog.tsx +5 -5
  404. package/src/components/workspace/kb/workspace-quick-doc-dialog.tsx +6 -6
  405. package/src/components/workspace/members/workspace-members-manager.tsx +6 -6
  406. package/src/components/workspace/projects/workspace-project-list.tsx +2 -2
  407. package/src/hooks/use-notifications.ts +1 -1
  408. package/src/lib/changelog/sdk-versions.ts +1 -1
  409. package/src/lib/collections/reference/bookmark-categories-collection.ts +1 -1
  410. package/src/lib/datetime.ts +209 -4
  411. package/src/lib/sanitize.ts +17 -19
  412. package/src/lib/toast-error.ts +1 -1
  413. package/src/providers/index.tsx +2 -2
  414. package/src/routes/__desktop/onboarding/route.lazy.tsx +6 -6
  415. package/src/routes/__root.tsx +2 -2
  416. package/src/routes/_login/forgot-password/route.lazy.tsx +1 -1
  417. package/src/routes/_login/login/route.lazy.tsx +4 -4
  418. package/src/routes/_login/register/route.lazy.tsx +2 -2
  419. package/src/routes/_login/reset-password/route.lazy.tsx +1 -1
  420. package/src/routes/_login/verify-email/route.lazy.tsx +1 -1
  421. package/src/routes/_nav/-components/nav-not-found.tsx +1 -1
  422. package/src/routes/_nav/bugs/$bugId/route.tsx +1 -1
  423. package/src/routes/_nav/dashboard/-components/activity-feed.tsx +1 -1
  424. package/src/routes/_nav/dashboard/-components/quick-actions.tsx +1 -1
  425. package/src/routes/_nav/dashboard/-components/stats-grid.tsx +1 -1
  426. package/src/routes/_nav/dashboard/route.lazy.tsx +1 -1
  427. package/src/routes/_nav/knowledge/$kbId/-components/knowledge-workspace-pending.tsx +1 -1
  428. package/src/routes/_nav/knowledge/$kbId/doc/$docId/route.tsx +1 -1
  429. package/src/routes/_nav/knowledge/$kbId/route.lazy.tsx +1 -1
  430. package/src/routes/_nav/knowledge/bookmarks/$id.lazy.tsx +12 -12
  431. package/src/routes/_nav/knowledge/bookmarks/index.lazy.tsx +11 -11
  432. package/src/routes/_nav/knowledge/compliance/$id.lazy.tsx +12 -12
  433. package/src/routes/_nav/knowledge/compliance/edit/$id.lazy.tsx +1 -1
  434. package/src/routes/_nav/knowledge/compliance/index.lazy.tsx +8 -8
  435. package/src/routes/_nav/knowledge/dictionaries/$id.lazy.tsx +7 -7
  436. package/src/routes/_nav/knowledge/dictionaries/index.lazy.tsx +6 -6
  437. package/src/routes/_nav/knowledge/index.lazy.tsx +6 -6
  438. package/src/routes/_nav/knowledge/laws/$id.lazy.tsx +12 -12
  439. package/src/routes/_nav/knowledge/laws/edit/$id.lazy.tsx +1 -1
  440. package/src/routes/_nav/knowledge/laws/index.lazy.tsx +9 -9
  441. package/src/routes/_nav/knowledge/summary/index.lazy.tsx +1 -1
  442. package/src/routes/_nav/projects/$projectId/$storyId/route.lazy.tsx +2 -2
  443. package/src/routes/_nav/projects/$projectId/index.lazy.tsx +1 -1
  444. package/src/routes/_nav/projects/$projectId/iterations/$iterationId/route.lazy.tsx +5 -5
  445. package/src/routes/_nav/projects/$projectId/iterations/index.lazy.tsx +1 -1
  446. package/src/routes/_nav/projects/$projectId/settings/route.lazy.tsx +8 -8
  447. package/src/routes/_nav/settings/ai/hosted/route.lazy.tsx +2 -2
  448. package/src/routes/_nav/settings/ai/index/route.lazy.tsx +1 -1
  449. package/src/routes/_nav/settings/billing/route.lazy.tsx +1 -1
  450. package/src/routes/_nav/settings/connection/route.lazy.tsx +3 -3
  451. package/src/routes/_nav/settings/general/route.lazy.tsx +3 -3
  452. package/src/routes/_nav/settings/privacy/route.lazy.tsx +5 -5
  453. package/src/routes/_nav/settings/route.tsx +1 -1
  454. package/src/routes/_nav/stories/-components/story-detail-skeleton.tsx +1 -1
  455. package/src/routes/_nav/test-cases/$caseId/route.tsx +1 -1
  456. package/src/routes/_nav/test-cases/generation/$generationId/route.tsx +1 -1
  457. package/src/routes/_nav/test-cases/plans/$planId/route.tsx +1 -1
  458. package/src/routes/_nav/test-cases/runs/$runId/route.tsx +1 -1
  459. package/src/routes/_nav/workspaces/$workspaceId/activities/route.lazy.tsx +1 -1
  460. package/src/routes/_nav/workspaces/$workspaceId/settings/route.lazy.tsx +6 -6
  461. package/src/routes/_nav/workspaces/index.lazy.tsx +5 -5
  462. package/src/routes/api/knowledge/sync-github.ts +1 -1
  463. package/src/routes/invite/$token/route.lazy.tsx +2 -2
  464. package/src/routes/share/compliance/$id/route.lazy.tsx +5 -5
  465. package/src/routes/share/compliance/$id/route.tsx +1 -1
  466. package/src/routes/share/law/$id/route.lazy.tsx +5 -5
  467. package/src/routes/share/law/$id/route.tsx +1 -1
  468. package/src/server/__tests__/agent-client-graph.test.ts +1 -1
  469. package/src/server/serverFns/__tests__/read-write-merge.test.ts +2 -2
  470. package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/create.ts +3 -3
  471. package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/detail.ts +1 -1
  472. package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/list.ts +1 -1
  473. package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/refresh-favicon.ts +1 -1
  474. package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/share.ts +1 -1
  475. package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/sync-github.ts +1 -1
  476. package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/update.ts +3 -3
  477. package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/create.ts +1 -1
  478. package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/detail.ts +1 -1
  479. package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/list.ts +1 -1
  480. package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/share.ts +1 -1
  481. package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/update.ts +1 -1
  482. package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/create.ts +1 -1
  483. package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/detail.ts +1 -1
  484. package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/list.ts +1 -1
  485. package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/share.ts +1 -1
  486. package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/update.ts +1 -1
  487. package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/create.ts +1 -1
  488. package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/detail.ts +1 -1
  489. package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/list.ts +1 -1
  490. package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/share.ts +1 -1
  491. package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/update.ts +1 -1
  492. package/src/start.ts +1 -1
  493. package/src/styles/globals.css +0 -1
  494. package/allblue-ui/package.json +0 -6
  495. package/allblue-ui/src/components/notion-avatar.tsx +0 -126
  496. package/allblue-ui/src/components/user-avatar.tsx +0 -82
  497. package/allblue-ui/src/data-table/data-table-pagination.tsx +0 -121
  498. package/allblue-ui/src/data-table/data-table.tsx +0 -218
  499. package/allblue-ui/src/data-table/table-detail-layout.tsx +0 -97
  500. package/allblue-ui/src/index.ts +0 -31
  501. package/allblue-ui/src/lib/avatar.ts +0 -41
  502. package/allblue-ui/src/lib/datetime.ts +0 -226
  503. package/allblue-ui/src/lib/sanitize.ts +0 -18
  504. package/allblue-ui/src/lib/utils.ts +0 -1
  505. /package/{allblue-ui/src → src}/components/infinite-scroll-sentinel.tsx +0 -0
  506. /package/src/components/{knowledge/public → knowledge-public}/category-icon.tsx +0 -0
  507. /package/src/components/{knowledge/public → knowledge-public}/chip-utils.ts +0 -0
  508. /package/src/components/{knowledge/public → knowledge-public}/knowledge-card-grid.tsx +0 -0
  509. /package/src/components/{knowledge/public → knowledge-public}/knowledge-filters.tsx +0 -0
  510. /package/src/components/{knowledge/public → knowledge-public}/markdown-view.tsx +0 -0
  511. /package/src/components/{knowledge/public → knowledge-public}/tag-filter.tsx +0 -0
  512. /package/{allblue-ui/src → src/components}/ui/alert-dialog.tsx +0 -0
  513. /package/{allblue-ui/src → src/components}/ui/alert.tsx +0 -0
  514. /package/{allblue-ui/src → src/components}/ui/avatar.tsx +0 -0
  515. /package/{allblue-ui/src → src/components}/ui/badge.tsx +0 -0
  516. /package/{allblue-ui/src → src/components}/ui/button.tsx +0 -0
  517. /package/{allblue-ui/src → src/components}/ui/card.tsx +0 -0
  518. /package/{allblue-ui/src → src/components}/ui/checkbox.tsx +0 -0
  519. /package/{allblue-ui/src → src/components}/ui/collapsible.tsx +0 -0
  520. /package/{allblue-ui/src → src/components}/ui/dialog.tsx +0 -0
  521. /package/{allblue-ui/src → src/components}/ui/dropdown-menu.tsx +0 -0
  522. /package/{allblue-ui/src → src/components}/ui/field.tsx +0 -0
  523. /package/{allblue-ui/src → src/components}/ui/input-group.tsx +0 -0
  524. /package/{allblue-ui/src → src/components}/ui/input.tsx +0 -0
  525. /package/{allblue-ui/src → src/components}/ui/label.tsx +0 -0
  526. /package/{allblue-ui/src → src/components}/ui/pagination.tsx +0 -0
  527. /package/{allblue-ui/src → src/components}/ui/select.tsx +0 -0
  528. /package/{allblue-ui/src → src/components}/ui/separator.tsx +0 -0
  529. /package/{allblue-ui/src → src/components}/ui/sheet.tsx +0 -0
  530. /package/{allblue-ui/src → src/components}/ui/skeleton.tsx +0 -0
  531. /package/{allblue-ui/src → src/components}/ui/switch.tsx +0 -0
  532. /package/{allblue-ui/src → src/components}/ui/table.tsx +0 -0
  533. /package/{allblue-ui/src → src/components}/ui/textarea.tsx +0 -0
  534. /package/{allblue-ui/src → src/components}/ui/toast.tsx +0 -0
  535. /package/{allblue-ui/src → src/components}/ui/tooltip.tsx +0 -0
  536. /package/{allblue-ui/src → src}/hooks/use-load-more.ts +0 -0
  537. /package/{allblue-ui/src → src}/hooks/use-mobile.ts +0 -0
  538. /package/src/server/{knowledge/public → knowledge-public}/canonical-id.ts +0 -0
  539. /package/src/server/{knowledge/public → knowledge-public}/favicon.ts +0 -0
  540. /package/src/server/{knowledge/public → knowledge-public}/github-sync.ts +0 -0
  541. /package/src/server/{knowledge/public → knowledge-public}/share-merge.ts +0 -0
  542. /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/categories.ts +0 -0
  543. /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/delete.ts +0 -0
  544. /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/favorite.ts +0 -0
  545. /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/unshare.ts +0 -0
  546. /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/delete.ts +0 -0
  547. /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/public.ts +0 -0
  548. /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/unshare.ts +0 -0
  549. /package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/delete.ts +0 -0
  550. /package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/unshare.ts +0 -0
  551. /package/src/server/serverFns/{knowledge/public → knowledge-public}/entity-tags.ts +0 -0
  552. /package/src/server/serverFns/{knowledge/public → knowledge-public}/favorite.ts +0 -0
  553. /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/delete.ts +0 -0
  554. /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/public.ts +0 -0
  555. /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/unshare.ts +0 -0
@@ -20,7 +20,7 @@ import { getRequest } from '@tanstack/react-start/server'
20
20
  import { z } from 'zod'
21
21
  import { requireAuth } from '@/server/auth-helpers'
22
22
  import { checkUserActionRateLimit } from '@/server/lib/rate-limit'
23
- import { syncBookmarkFavicon } from '@/server/knowledge/public/favicon'
23
+ import { syncBookmarkFavicon } from '@/server/knowledge-public/favicon'
24
24
 
25
25
  export const refreshFaviconFn = createServerFn({ method: 'POST' })
26
26
  .validator(z.object({ id: z.string() }))
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { shareToPublic, type ShareResult } from '@/server/knowledge/public/share-merge'
23
+ import { shareToPublic, type ShareResult } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  export const shareBookmarkFn = createServerFn({ method: 'POST' })
26
26
  .validator(z.object({ id: z.string() }))
@@ -19,7 +19,7 @@ import { createServerFn } from '@tanstack/react-start'
19
19
  import { getRequest } from '@tanstack/react-start/server'
20
20
  import { z } from 'zod'
21
21
  import { requireAuth } from '@/server/auth-helpers'
22
- import { syncBookmarkGithub } from '@/server/knowledge/public/github-sync'
22
+ import { syncBookmarkGithub } from '@/server/knowledge-public/github-sync'
23
23
 
24
24
  export const syncBookmarkGithubFn = createServerFn({ method: 'POST' })
25
25
  .validator(z.object({ id: z.string() }))
@@ -20,9 +20,9 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { bookmarkCanonicalId, parseGithubUrl } from '@/server/knowledge/public/canonical-id'
24
- import { fetchGithubData } from '@/server/knowledge/public/github-sync'
25
- import { resolveFavicon } from '@/server/knowledge/public/favicon'
23
+ import { bookmarkCanonicalId, parseGithubUrl } from '@/server/knowledge-public/canonical-id'
24
+ import { fetchGithubData } from '@/server/knowledge-public/github-sync'
25
+ import { resolveFavicon } from '@/server/knowledge-public/favicon'
26
26
 
27
27
  const updateSchema = z.object({
28
28
  id: z.string(),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { complianceCanonicalId } from '@/server/knowledge/public/canonical-id'
23
+ import { complianceCanonicalId } from '@/server/knowledge-public/canonical-id'
24
24
 
25
25
  const createSchema = z.object({
26
26
  title: z.string().min(1).max(200),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { aggregateSharers } from '@/server/knowledge/public/share-merge'
23
+ import { aggregateSharers } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  export const getComplianceDetailFn = createServerFn({ method: 'GET' })
26
26
  .validator(z.object({ id: z.string() }))
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { aggregateSharers } from '@/server/knowledge/public/share-merge'
23
+ import { aggregateSharers } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  const listSchema = z.object({
26
26
  scope: z.enum(['all', 'private', 'share', 'favorite']).default('all'),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { shareToPublic, type ShareResult } from '@/server/knowledge/public/share-merge'
23
+ import { shareToPublic, type ShareResult } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  export const shareComplianceFn = createServerFn({ method: 'POST' })
26
26
  .validator(z.object({ id: z.string() }))
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { complianceCanonicalId } from '@/server/knowledge/public/canonical-id'
23
+ import { complianceCanonicalId } from '@/server/knowledge-public/canonical-id'
24
24
 
25
25
  const updateSchema = z.object({
26
26
  id: z.string(),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { dictionaryCanonicalId } from '@/server/knowledge/public/canonical-id'
23
+ import { dictionaryCanonicalId } from '@/server/knowledge-public/canonical-id'
24
24
 
25
25
  const createSchema = z.object({
26
26
  title: z.string().min(1).max(200),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { aggregateSharers } from '@/server/knowledge/public/share-merge'
23
+ import { aggregateSharers } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  export const getDictionaryDetailFn = createServerFn({ method: 'GET' })
26
26
  .validator(z.object({ id: z.string() }))
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { aggregateSharers } from '@/server/knowledge/public/share-merge'
23
+ import { aggregateSharers } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  const listSchema = z.object({
26
26
  scope: z.enum(['all', 'private', 'share', 'favorite']).default('all'),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { shareToPublic, type ShareResult } from '@/server/knowledge/public/share-merge'
23
+ import { shareToPublic, type ShareResult } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  export const shareDictionaryFn = createServerFn({ method: 'POST' })
26
26
  .validator(z.object({ id: z.string() }))
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { dictionaryCanonicalId } from '@/server/knowledge/public/canonical-id'
23
+ import { dictionaryCanonicalId } from '@/server/knowledge-public/canonical-id'
24
24
 
25
25
  const updateSchema = z.object({
26
26
  id: z.string(),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { legalCanonicalId } from '@/server/knowledge/public/canonical-id'
23
+ import { legalCanonicalId } from '@/server/knowledge-public/canonical-id'
24
24
 
25
25
  const createSchema = z.object({
26
26
  title: z.string().min(1).max(200),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { aggregateSharers } from '@/server/knowledge/public/share-merge'
23
+ import { aggregateSharers } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  export const getLegalDetailFn = createServerFn({ method: 'GET' })
26
26
  .validator(z.object({ id: z.string() }))
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { aggregateSharers } from '@/server/knowledge/public/share-merge'
23
+ import { aggregateSharers } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  const listSchema = z.object({
26
26
  scope: z.enum(['all', 'private', 'share', 'favorite']).default('all'),
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { shareToPublic, type ShareResult } from '@/server/knowledge/public/share-merge'
23
+ import { shareToPublic, type ShareResult } from '@/server/knowledge-public/share-merge'
24
24
 
25
25
  export const shareLegalFn = createServerFn({ method: 'POST' })
26
26
  .validator(z.object({ id: z.string() }))
@@ -20,7 +20,7 @@ import { createServerFn } from '@tanstack/react-start'
20
20
  import { getRequest } from '@tanstack/react-start/server'
21
21
  import { z } from 'zod'
22
22
  import { requireAuth } from '@/server/auth-helpers'
23
- import { legalCanonicalId } from '@/server/knowledge/public/canonical-id'
23
+ import { legalCanonicalId } from '@/server/knowledge-public/canonical-id'
24
24
 
25
25
  const updateSchema = z.object({
26
26
  id: z.string(),
package/src/start.ts CHANGED
@@ -25,7 +25,7 @@ const globalAny = globalThis as any
25
25
  if (import.meta.env.SSR && !globalAny.__githubSyncTimer) {
26
26
  globalAny.__githubSyncTimer = setInterval(async () => {
27
27
  try {
28
- const { syncAllStaleGithubBookmarks } = await import('@/server/knowledge/public/github-sync')
28
+ const { syncAllStaleGithubBookmarks } = await import('@/server/knowledge-public/github-sync')
29
29
  const n = await syncAllStaleGithubBookmarks()
30
30
  if (n > 0) console.log(`[github-sync] synced ${n} bookmarks`)
31
31
  } catch (e) {
@@ -63,7 +63,6 @@
63
63
  }
64
64
 
65
65
  @source "../";
66
- @source "../../../../packages/ui/src/**/*.{ts,tsx}";
67
66
 
68
67
  @custom-variant dark (&:is(.dark *));
69
68
 
@@ -1,6 +0,0 @@
1
- {
2
- "name": "@allbluecn/ui-bundled",
3
- "version": "0.1.0",
4
- "private": true,
5
- "type": "module"
6
- }
@@ -1,126 +0,0 @@
1
- // SPDX-License-Identifier: AGPL-3.0-or-later
2
- // AllBlue - 理想之海
3
- // Copyright (C) 2026 AllBlue Contributors
4
- //
5
- // This program is free software: you can redistribute it and/or modify
6
- // it under the terms of the GNU Affero General Public License as published by
7
- // the Free Software Foundation, either version 3 of the License, or
8
- // (at your option) any later version.
9
- //
10
- // This program is distributed in the hope that it will be useful,
11
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- // GNU Affero General Public License for more details.
14
- //
15
- // You should have received a copy of the GNU Affero General Public License
16
- // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
-
18
-
19
- import { useEffect, useState } from "react"
20
- import type { AvatarConfig, AvatarPart, ShapeType } from "@allbluecn/kernel"
21
- import { sanitizeSvg } from "../lib/sanitize"
22
-
23
- const noneParts: AvatarPart[] = ["glasses", "hair", "accessories", "details", "beard"]
24
-
25
- const partOrder: AvatarPart[] = [
26
- "face",
27
- "nose",
28
- "mouth",
29
- "eyes",
30
- "eyebrows",
31
- "glasses",
32
- "hair",
33
- "accessories",
34
- "details",
35
- "beard",
36
- ]
37
-
38
- function getPreviewImagePath(part: AvatarPart, index: number): string {
39
- return `/avatar/preview/${part}/${index}.svg`
40
- }
41
-
42
- const SVGFilter = `<defs>
43
- <filter id="notion-avatar-filter" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="linearRGB">
44
- <feMorphology operator="dilate" radius="20" in="SourceAlpha" result="morphology"/>
45
- <feFlood flood-color="#ffffff" flood-opacity="1" result="flood"/>
46
- <feComposite in="flood" in2="morphology" operator="in" result="composite"/>
47
- <feMerge result="merge">
48
- <feMergeNode in="composite" result="mergeNode"/>
49
- <feMergeNode in="SourceGraphic" result="mergeNode1"/>
50
- </feMerge>
51
- </filter>
52
- </defs>`
53
-
54
- function extractInnerSvg(svgText: string): string {
55
- return svgText.replace(/<svg[^>]*>/i, "").replace(/<\/svg>/i, "").trim()
56
- }
57
-
58
- const shapeStyle: Record<ShapeType, string> = {
59
- circle: "rounded-full",
60
- rounded: "rounded-lg",
61
- square: "rounded-none",
62
- }
63
-
64
- type NotionAvatarProps = {
65
- config: AvatarConfig
66
- bgColor?: string
67
- shape?: ShapeType
68
- className?: string
69
- style?: React.CSSProperties
70
- flip?: boolean
71
- }
72
-
73
- export function NotionAvatar({
74
- config,
75
- bgColor = "transparent",
76
- shape = "circle",
77
- className,
78
- style,
79
- flip = false,
80
- }: NotionAvatarProps) {
81
- const [svgContent, setSvgContent] = useState<string>("")
82
-
83
- useEffect(() => {
84
- async function buildAvatar() {
85
- const groups = await Promise.all(
86
- partOrder.map(async (part) => {
87
- const index = config[part]
88
- if (noneParts.includes(part) && index === 0) return ""
89
- try {
90
- const res = await fetch(getPreviewImagePath(part, index))
91
- const svgText = await res.text()
92
- const inner = extractInnerSvg(svgText)
93
- return `\n<g id="avatar-${part}"${part === "face" ? ' fill="#ffffff"' : ""}>${inner}</g>`
94
- } catch {
95
- return ""
96
- }
97
- }),
98
- )
99
- const flipAttr = flip ? ' transform="scale(-1,1) translate(-1080, 0)"' : ""
100
- const avatarSvg = `<svg viewBox="0 0 1080 1080" fill="none" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:100%">${SVGFilter}<g id="avatar"${flipAttr}>${groups.join("")}</g></svg>`
101
- setSvgContent(avatarSvg)
102
- }
103
- buildAvatar()
104
- }, [config, flip])
105
-
106
- if (!svgContent) {
107
- return (
108
- <div
109
- className={`${shapeStyle[shape]} overflow-hidden bg-muted animate-pulse ${className ?? ""}`}
110
- style={{ aspectRatio: "1 / 1", ...style }}
111
- />
112
- )
113
- }
114
-
115
- return (
116
- <div
117
- className={`${shapeStyle[shape]} ${className ?? ""}`}
118
- style={{
119
- backgroundColor: bgColor === "transparent" ? undefined : bgColor,
120
- aspectRatio: "1 / 1",
121
- ...style,
122
- }}
123
- dangerouslySetInnerHTML={{ __html: sanitizeSvg(svgContent) }}
124
- />
125
- )
126
- }
@@ -1,82 +0,0 @@
1
- // SPDX-License-Identifier: AGPL-3.0-or-later
2
- // AllBlue - 理想之海
3
- // Copyright (C) 2026 AllBlue Contributors
4
- //
5
- // This program is free software: you can redistribute it and/or modify
6
- // it under the terms of the GNU Affero General Public License as published by
7
- // the Free Software Foundation, either version 3 of the License, or
8
- // (at your option) any later version.
9
- //
10
- // This program is distributed in the hope that it will be useful,
11
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- // GNU Affero General Public License for more details.
14
- //
15
- // You should have received a copy of the GNU Affero General Public License
16
- // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
-
18
-
19
- import { NotionAvatar } from "./notion-avatar"
20
- import type { AvatarConfig, ShapeType } from "@allbluecn/kernel"
21
-
22
- type UserAvatarProps = {
23
- avatarConfig?: AvatarConfig | null
24
- bgShape?: ShapeType | null
25
- bgColor?: string | null
26
- name?: string | null
27
- imageUrl?: string | null
28
- className?: string
29
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl"
30
- }
31
-
32
- const sizeClasses: Record<string, string> = {
33
- xs: "w-5 h-5",
34
- sm: "w-6 h-6",
35
- md: "w-8 h-8",
36
- lg: "w-10 h-10",
37
- xl: "w-12 h-12",
38
- "2xl": "w-16 h-16",
39
- "3xl": "w-20 h-20",
40
- "4xl": "w-24 h-24",
41
- }
42
-
43
- export function UserAvatar({
44
- avatarConfig,
45
- bgShape,
46
- bgColor,
47
- name,
48
- imageUrl,
49
- className,
50
- size = "md",
51
- }: UserAvatarProps) {
52
- const initial = (name || "U").charAt(0).toUpperCase()
53
- const shapeClass =
54
- bgShape === "circle" ? "rounded-full" : bgShape === "square" ? "rounded-none" : "rounded-lg"
55
-
56
- if (avatarConfig) {
57
- return (
58
- <NotionAvatar
59
- config={avatarConfig}
60
- shape={bgShape ?? "square"}
61
- bgColor={bgColor ?? "#fff"}
62
- className={`${sizeClasses[size]} shrink-0 ${className ?? ""}`}
63
- />
64
- )
65
- }
66
-
67
- if (imageUrl) {
68
- return (
69
- <div className={`relative shrink-0 overflow-hidden ${shapeClass} ${sizeClasses[size]} ${className ?? ""}`}>
70
- <img src={imageUrl} alt={name || ""} className="h-full w-full object-cover" />
71
- </div>
72
- )
73
- }
74
-
75
- return (
76
- <div
77
- className={`flex shrink-0 items-center justify-center ${shapeClass} bg-muted text-xs font-medium ${sizeClasses[size]} ${className ?? ""}`}
78
- >
79
- {initial}
80
- </div>
81
- )
82
- }
@@ -1,121 +0,0 @@
1
- // SPDX-License-Identifier: AGPL-3.0-or-later
2
- // AllBlue - 理想之海
3
- // Copyright (C) 2026 AllBlue Contributors
4
- //
5
- // This program is free software: you can redistribute it and/or modify
6
- // it under the terms of the GNU Affero General Public License as published by
7
- // the Free Software Foundation, either version 3 of the License, or
8
- // (at your option) any later version.
9
- //
10
- // This program is distributed in the hope that it will be useful,
11
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- // GNU Affero General Public License for more details.
14
- //
15
- // You should have received a copy of the GNU Affero General Public License
16
- // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
-
18
- import {
19
- Pagination,
20
- PaginationContent,
21
- PaginationEllipsis,
22
- PaginationItem,
23
- PaginationLink,
24
- PaginationNext,
25
- PaginationPrevious,
26
- } from "../ui/pagination";
27
-
28
- // i18n 由消费方注入(包内不依赖 @/paraglide),文案与原 admin 实现逐字对应
29
- export interface DataTablePaginationLabels {
30
- total: string;
31
- previous: string;
32
- next: string;
33
- }
34
-
35
- interface DataTablePaginationProps {
36
- page: number;
37
- totalPages: number;
38
- total: number;
39
- onPageChange: (page: number) => void;
40
- labels: DataTablePaginationLabels;
41
- }
42
-
43
- function getPageNumbers(current: number, total: number): (number | "ellipsis")[] {
44
- if (total <= 5) {
45
- return Array.from({ length: total }, (_, i) => i + 1);
46
- }
47
-
48
- const pages: (number | "ellipsis")[] = [1];
49
-
50
- if (current > 3) {
51
- pages.push("ellipsis");
52
- }
53
-
54
- const start = Math.max(2, current - 1);
55
- const end = Math.min(total - 1, current + 1);
56
-
57
- for (let i = start; i <= end; i++) {
58
- pages.push(i);
59
- }
60
-
61
- if (current < total - 2) {
62
- pages.push("ellipsis");
63
- }
64
-
65
- pages.push(total);
66
-
67
- return pages;
68
- }
69
-
70
- export function DataTablePagination({
71
- page,
72
- totalPages,
73
- total,
74
- onPageChange,
75
- labels,
76
- }: DataTablePaginationProps) {
77
- const pages = getPageNumbers(page, totalPages);
78
-
79
- return (
80
- <div className="flex items-center justify-between gap-4 px-2 py-4">
81
- <div className="text-sm text-muted-foreground whitespace-nowrap shrink-0">
82
- {labels.total}
83
- </div>
84
- <Pagination className="justify-end">
85
- <PaginationContent>
86
- <PaginationItem>
87
- <PaginationPrevious
88
- text={labels.previous}
89
- onClick={() => page > 1 && onPageChange(page - 1)}
90
- className={page <= 1 ? "pointer-events-none opacity-50" : "cursor-pointer"}
91
- />
92
- </PaginationItem>
93
- {pages.map((p, i) =>
94
- p === "ellipsis" ? (
95
- <PaginationItem key={`ellipsis-${i}`}>
96
- <PaginationEllipsis />
97
- </PaginationItem>
98
- ) : (
99
- <PaginationItem key={p}>
100
- <PaginationLink
101
- isActive={p === page}
102
- onClick={() => onPageChange(p)}
103
- className="cursor-pointer"
104
- >
105
- {p}
106
- </PaginationLink>
107
- </PaginationItem>
108
- )
109
- )}
110
- <PaginationItem>
111
- <PaginationNext
112
- text={labels.next}
113
- onClick={() => page < totalPages && onPageChange(page + 1)}
114
- className={page >= totalPages ? "pointer-events-none opacity-50" : "cursor-pointer"}
115
- />
116
- </PaginationItem>
117
- </PaginationContent>
118
- </Pagination>
119
- </div>
120
- );
121
- }