@peaske7/readit 0.1.5 → 0.1.7
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/biome.json +1 -1
- package/bun.lock +86 -72
- package/docs/plans/2026-03-13-client-mode-design.md +86 -0
- package/docs/plans/2026-03-13-client-mode-plan.md +605 -0
- package/package.json +12 -11
- package/src/App.tsx +23 -6
- package/src/cli/index.ts +312 -25
- package/src/components/ActionsMenu.tsx +12 -10
- package/src/components/DocumentViewer/CodeBlock.tsx +131 -54
- package/src/components/DocumentViewer/DocumentViewer.tsx +6 -6
- package/src/components/DocumentViewer/InlineCode.tsx +60 -0
- package/src/components/FloatingTOC.tsx +4 -2
- package/src/components/Header.tsx +3 -1
- package/src/components/InlineEditor.tsx +4 -2
- package/src/components/MarginNote.tsx +17 -8
- package/src/components/RawModal.tsx +9 -7
- package/src/components/ReanchorConfirm.tsx +6 -3
- package/src/components/SettingsModal.tsx +112 -23
- package/src/components/ShortcutCapture.tsx +4 -1
- package/src/components/ShortcutList.tsx +50 -9
- package/src/components/comments/CommentBadge.tsx +7 -1
- package/src/components/comments/CommentInput.tsx +13 -18
- package/src/components/comments/CommentListItem.tsx +15 -5
- package/src/components/comments/CommentManager.tsx +14 -7
- package/src/components/comments/CommentNav.tsx +8 -3
- package/src/contexts/CommentContext.tsx +16 -9
- package/src/contexts/LayoutContext.tsx +17 -5
- package/src/contexts/LocaleContext.tsx +35 -0
- package/src/hooks/useClipboard.ts +11 -8
- package/src/hooks/useDocument.ts +35 -10
- package/src/hooks/useEditorScheme.ts +51 -0
- package/src/hooks/useFontPreference.ts +5 -22
- package/src/hooks/useKeybindings.ts +6 -18
- package/src/hooks/useLocalePreference.ts +42 -0
- package/src/index.css +87 -26
- package/src/lib/editor-links.ts +59 -0
- package/src/lib/highlight/dom.ts +126 -54
- package/src/lib/highlight/highlighter.ts +10 -10
- package/src/lib/i18n/completeness.test.ts +51 -0
- package/src/lib/i18n/en.ts +139 -0
- package/src/lib/i18n/index.ts +3 -0
- package/src/lib/i18n/ja.ts +141 -0
- package/src/lib/i18n/translations.test.ts +39 -0
- package/src/lib/i18n/translations.ts +27 -0
- package/src/lib/i18n/types.ts +145 -0
- package/src/lib/shortcut-registry.ts +1 -1
- package/src/lib/utils.ts +11 -0
- package/src/main.tsx +4 -1
- package/src/server/index.ts +263 -103
- package/src/store/index.test.ts +22 -0
- package/src/store/index.ts +24 -4
- package/src/types/index.ts +12 -0
package/src/types/index.ts
CHANGED
|
@@ -67,6 +67,16 @@ export interface Document {
|
|
|
67
67
|
clean: boolean;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
// Editor scheme options - const object pattern per style guide 6.3
|
|
71
|
+
export const EditorSchemes = {
|
|
72
|
+
NONE: "none",
|
|
73
|
+
VSCODE: "vscode",
|
|
74
|
+
VSCODE_INSIDERS: "vscode-insiders",
|
|
75
|
+
CURSOR: "cursor",
|
|
76
|
+
} as const;
|
|
77
|
+
|
|
78
|
+
export type EditorScheme = (typeof EditorSchemes)[keyof typeof EditorSchemes];
|
|
79
|
+
|
|
70
80
|
// Font family options - const object pattern per style guide 6.3
|
|
71
81
|
export const FontFamilies = {
|
|
72
82
|
SERIF: "serif",
|
|
@@ -111,5 +121,7 @@ export interface KeybindingOverride {
|
|
|
111
121
|
export interface DocumentSettings {
|
|
112
122
|
version: number;
|
|
113
123
|
fontFamily: FontFamily;
|
|
124
|
+
editorScheme?: EditorScheme;
|
|
114
125
|
keybindings?: KeybindingOverride[];
|
|
126
|
+
onboarded?: boolean;
|
|
115
127
|
}
|