@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/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, type Annotation, type CodeAnnotation, type EditorAnnotation, type ImageAttachment } from '../types';
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 { Annotation, AnnotationType, type ImageAttachment } from '../types';
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