@plannotator/ui 0.37.0 → 0.38.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/HANDOFF.md +4 -2
- package/README.md +8 -1
- package/components/ActionMenu.tsx +22 -24
- package/components/AnnotationToolbar.tsx +3 -1
- package/components/ApproveDropdown.tsx +15 -18
- package/components/CommentPopover.tsx +9 -4
- package/components/DecisionControl.tsx +626 -0
- package/components/FloatingQuickLabelPicker.tsx +4 -1
- package/components/KeyboardShortcuts.tsx +1 -0
- package/components/PlanHeaderMenu.tsx +1 -1
- package/components/Settings.tsx +67 -6
- package/components/ToolbarButtons.tsx +31 -9
- package/components/Viewer.tsx +5 -1
- package/components/blocks/AlertBlock.tsx +51 -4
- package/config/reviewView.ts +1 -0
- package/config/settings.ts +48 -3
- package/configure.ts +9 -0
- package/hooks/useDismissablePopover.ts +65 -0
- package/hooks/useVimDocumentFocus.ts +6 -0
- package/package.json +22 -22
- package/shortcuts/decisionControl.shortcuts.ts +31 -0
- package/shortcuts/index.ts +1 -0
- package/shortcuts/plan-review/documentView.shortcuts.ts +13 -0
- package/styles.css +1 -1
- package/theme.css +11 -0
- package/utils/alertTitle.ts +69 -0
- package/utils/decisionSpec.ts +430 -0
- package/utils/platform.ts +16 -0
- package/sprite_package_additional/index.html +0 -34
- package/sprite_package_new/index.html +0 -34
- package/sprite_package_pulluphang/index.html +0 -34
|
@@ -7,6 +7,11 @@ import { createShortcutScopeHook } from '../runtime';
|
|
|
7
7
|
* Focus mode is the keyboard entry point to the same view state the document
|
|
8
8
|
* card's `Focus` control drives: both side panels collapse in one press and the
|
|
9
9
|
* previous arrangement comes back on the next one.
|
|
10
|
+
*
|
|
11
|
+
* Edit mode is its sibling: the same chord the card's `Edit` / `Done` control
|
|
12
|
+
* drives, opening the markdown source editor in place and committing back to
|
|
13
|
+
* the viewer — the scroll position survives both directions, so a mid-document
|
|
14
|
+
* fix never costs a scroll to the top and back.
|
|
10
15
|
*/
|
|
11
16
|
export const documentViewShortcuts = defineShortcutScope({
|
|
12
17
|
id: 'document-view',
|
|
@@ -20,6 +25,14 @@ export const documentViewShortcuts = defineShortcutScope({
|
|
|
20
25
|
displayOrder: 10,
|
|
21
26
|
preventDefault: true,
|
|
22
27
|
},
|
|
28
|
+
toggleEditMode: {
|
|
29
|
+
description: 'Toggle edit mode',
|
|
30
|
+
bindings: ['Mod+E'],
|
|
31
|
+
section: 'View',
|
|
32
|
+
hint: 'Opens the markdown source editor in place, keeping your scroll position; press again to commit your edits and return to annotating.',
|
|
33
|
+
displayOrder: 20,
|
|
34
|
+
preventDefault: true,
|
|
35
|
+
},
|
|
23
36
|
},
|
|
24
37
|
});
|
|
25
38
|
|