@plannotator/ui 0.54.0 → 0.56.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 (59) hide show
  1. package/HANDOFF.md +102 -6
  2. package/README.md +128 -3
  3. package/components/AnnotationPanel.tsx +2 -1
  4. package/components/AttachmentsButton.tsx +1 -1
  5. package/components/BlockRenderer.tsx +4 -1
  6. package/components/CodeFilePopout.tsx +6 -4
  7. package/components/CodeSnippetPreview.tsx +174 -0
  8. package/components/ComposerTokenTextarea.tsx +43 -2
  9. package/components/DeferredMarkdownContentsRail.tsx +38 -0
  10. package/components/DiffFileTree.tsx +7 -6
  11. package/components/DocBadges.tsx +47 -35
  12. package/components/DocumentContents.tsx +74 -0
  13. package/components/ImageLightbox.tsx +121 -63
  14. package/components/ImageZoomStage.tsx +32 -4
  15. package/components/InlineMarkdown.tsx +15 -150
  16. package/components/MarkdownContentsRail.tsx +777 -0
  17. package/components/Settings.tsx +2 -1
  18. package/components/TableOfContents.tsx +22 -7
  19. package/components/Viewer.tsx +51 -19
  20. package/components/blocks/QuestionBlock.tsx +14 -4
  21. package/components/chat/ChatComposer.tsx +192 -0
  22. package/components/chat/ChatFrame.tsx +524 -0
  23. package/components/chat/ChatTranscript.tsx +422 -0
  24. package/components/chat/chatMarkdown.ts +436 -0
  25. package/components/chat/chatRecipes.tsx +39 -0
  26. package/components/chat/chatWindowStore.ts +196 -0
  27. package/components/chat/index.ts +72 -0
  28. package/components/diagram/DiagramCanvas.tsx +7 -0
  29. package/components/diagram/DiagramComposer.tsx +15 -3
  30. package/components/diagram/DiagramViewer.tsx +1 -0
  31. package/components/docBadgesWidth.ts +29 -0
  32. package/components/html-viewer/HtmlViewer.tsx +36 -1
  33. package/components/imageZoom.ts +21 -0
  34. package/components/inbox-thread/FileName.tsx +118 -0
  35. package/components/inbox-thread/GuideCard.tsx +39 -0
  36. package/components/inbox-thread/ReaskNote.tsx +25 -0
  37. package/components/inbox-thread/SkillsLine.tsx +40 -0
  38. package/components/inbox-thread/Tip.tsx +105 -0
  39. package/components/inbox-thread/icons.tsx +262 -0
  40. package/components/inbox-thread/reask.ts +222 -0
  41. package/contents-rail.css +337 -0
  42. package/hooks/useActiveSection.ts +46 -63
  43. package/hooks/useAnnotationHighlighter.ts +40 -1
  44. package/hooks/useFileBrowser.ts +4 -3
  45. package/hooks/useHeadingScrollSpy.ts +77 -0
  46. package/hooks/useHoverPreview.ts +94 -0
  47. package/hooks/usePrefersReducedMotion.ts +23 -0
  48. package/hooks/useSwipeStep.ts +597 -0
  49. package/inbox-thread.css +4542 -0
  50. package/package.json +13 -4
  51. package/styles.css +1 -1
  52. package/theme.css +1 -0
  53. package/themes/tokyo-night-moon.css +34 -0
  54. package/utils/aiChatFormat.ts +32 -11
  55. package/utils/annotationHelpers.ts +32 -4
  56. package/utils/blockParse.ts +45 -0
  57. package/utils/headingScrollSpy.ts +105 -0
  58. package/utils/syntaxTheme.ts +1 -0
  59. package/utils/themeRegistry.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plannotator/ui",
3
- "version": "0.54.0",
3
+ "version": "0.56.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,8 +9,11 @@
9
9
  "./components/ai/*": "./components/ai/*.tsx",
10
10
  "./components/core/*": "./components/core/*.tsx",
11
11
  "./components/goal-setup/*": "./components/goal-setup/*.tsx",
12
+ "./components/inbox-thread/*": "./components/inbox-thread/*.tsx",
13
+ "./components/inbox-thread/reask": "./components/inbox-thread/reask.ts",
12
14
  "./components/ImageAnnotator": "./components/ImageAnnotator/index.tsx",
13
15
  "./components/html-viewer": "./components/html-viewer/index.ts",
16
+ "./components/chat": "./components/chat/index.ts",
14
17
  "./components/diagram": "./components/diagram/index.ts",
15
18
  "./components/diagramLanguages": "./components/diagramLanguages.ts",
16
19
  "./components/diagram/*": "./components/diagram/*.tsx",
@@ -29,7 +32,9 @@
29
32
  "./theme-modes": "./components/themeModes.tsx",
30
33
  "./types": "./types.ts",
31
34
  "./theme": "./theme.css",
32
- "./styles.css": "./styles.css"
35
+ "./styles.css": "./styles.css",
36
+ "./contents-rail.css": "./contents-rail.css",
37
+ "./inbox-thread.css": "./inbox-thread.css"
33
38
  },
34
39
  "files": [
35
40
  "components",
@@ -51,6 +56,8 @@
51
56
  "theme.css",
52
57
  "print.css",
53
58
  "styles.css",
59
+ "contents-rail.css",
60
+ "inbox-thread.css",
54
61
  "plannotator.webp",
55
62
  "HANDOFF.md",
56
63
  "!**/*.test.ts",
@@ -87,7 +94,7 @@
87
94
  "clsx": "^2.1.1",
88
95
  "diff": "^8.0.4",
89
96
  "dompurify": "^3.4.17",
90
- "katex": "^0.18.11",
97
+ "katex": "^0.19.0",
91
98
  "lucide-react": "^1.59.0",
92
99
  "marked": "^17.0.6",
93
100
  "mermaid": "12.2.0",
@@ -107,6 +114,7 @@
107
114
  "@types/bun": "^1.2.0",
108
115
  "@types/react": "^19.3.0",
109
116
  "@types/react-dom": "^19.3.0",
117
+ "postcss": "8.5.28",
110
118
  "react": "^19.3.1",
111
119
  "react-dom": "^19.3.1",
112
120
  "tailwindcss": "^4.1.18",
@@ -117,7 +125,8 @@
117
125
  "typecheck": "tsc --noEmit -p tsconfig.json",
118
126
  "build:css": "vite build --config vite.css.config.ts && rm -f styles.js",
119
127
  "build:bridge-assets": "bun run scripts/build-bridge-assets.ts",
128
+ "build:inbox-thread-css": "bun run scripts/build-inbox-thread-css.ts",
120
129
  "smoke:package": "bun run scripts/package-smoke.ts",
121
- "prepack": "bun run build:css && bun run build:bridge-assets"
130
+ "prepack": "bun run build:css && bun run build:bridge-assets && bun run build:inbox-thread-css"
122
131
  }
123
132
  }