@plannotator/ui 0.22.0 → 0.24.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/components/AnnotationPanel.tsx +68 -37
- package/components/AnnotationToolbar.tsx +1 -1
- package/components/BlockRenderer.tsx +1 -1
- package/components/EditorAnnotationCard.tsx +13 -10
- package/components/ImageAnnotator/index.tsx +1 -1
- package/components/OpenInAppButton.tsx +25 -29
- package/components/PopoutDialog.tsx +46 -32
- package/components/Popover.tsx +18 -12
- package/components/SearchableSelect.tsx +4 -7
- package/components/Tooltip.tsx +50 -20
- package/components/Viewer.tsx +23 -9
- package/components/blocks/CodeBlock.tsx +2 -2
- package/components/blocks/HtmlBlock.tsx +1 -1
- package/components/blocks/TableBlock.tsx +1 -1
- package/components/blocks/TablePopout.tsx +1 -1
- package/components/ui/badge.tsx +15 -10
- package/components/ui/button.tsx +10 -10
- package/components/ui/dialog.tsx +17 -17
- package/components/ui/dropdown-menu.tsx +80 -66
- package/components/ui/tabs.tsx +11 -11
- package/hooks/useAnnotationHighlighter.ts +44 -6
- package/hooks/useCodeAnnotationDraft.ts +0 -5
- package/hooks/usePinpoint.ts +2 -2
- package/package.json +5 -12
- package/styles.css +1 -1
- package/theme.css +17 -0
- package/utils/parser.ts +1 -1
- package/utils/sharing.ts +1 -1
package/theme.css
CHANGED
|
@@ -891,3 +891,20 @@ body:has([data-popout="true"]) [data-sidebar-tabs="true"] {
|
|
|
891
891
|
filter: brightness(1.2);
|
|
892
892
|
cursor: pointer;
|
|
893
893
|
}
|
|
894
|
+
|
|
895
|
+
/* Reduced motion: Base UI popups (dialogs, menus, popovers, tooltips) animate
|
|
896
|
+
via [data-starting-style]/[data-ending-style] transitions — those attributes
|
|
897
|
+
only exist during the enter/exit phases, so zeroing transitions here makes
|
|
898
|
+
open/close instant without touching any other transition in the app. Base UI
|
|
899
|
+
detects the absence of a running transition and unmounts immediately.
|
|
900
|
+
The doubled .popover-enter selector out-specifies the app-level keyframe
|
|
901
|
+
rule without !important. */
|
|
902
|
+
@media (prefers-reduced-motion: reduce) {
|
|
903
|
+
[data-starting-style],
|
|
904
|
+
[data-ending-style] {
|
|
905
|
+
transition: none;
|
|
906
|
+
}
|
|
907
|
+
.popover-enter.popover-enter {
|
|
908
|
+
animation: none;
|
|
909
|
+
}
|
|
910
|
+
}
|
package/utils/parser.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Block,
|
|
1
|
+
import type { Block, Annotation, CodeAnnotation, EditorAnnotation, ImageAttachment } from '../types';
|
|
2
2
|
import { planDenyFeedback } from '@plannotator/core/feedback-templates';
|
|
3
3
|
|
|
4
4
|
/**
|
package/utils/sharing.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Inspired by textarea.my's approach.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { AnnotationType, type Annotation, type ImageAttachment } from '../types';
|
|
12
12
|
import { compress, decompress } from '@plannotator/core/compress';
|
|
13
13
|
import { encrypt, decrypt } from '@plannotator/core/crypto';
|
|
14
14
|
|