@pexip/components 20.2.0 → 20.4.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 (37) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/api-docs/variables/CircleCountDown.mdx +1 -0
  3. package/api-docs/variables/Draggable.mdx +2 -1
  4. package/api-docs/variables/InteractiveElement.mdx +1 -1
  5. package/api-docs/variables/RefButton.mdx +1 -1
  6. package/api-docs/variables/RefInteractiveElement.mdx +1 -1
  7. package/api-docs/variables/RefSimpleButton.mdx +1 -1
  8. package/design-tokens/tokens/zIndex.tokens.scss +2 -1
  9. package/dist/components-no-global-styles.css +1 -1
  10. package/dist/components.cjs +2 -2
  11. package/dist/components.css +1 -1
  12. package/dist/components.js +3769 -3582
  13. package/dist/types/src/components/elements/Button/Button.d.ts +1 -0
  14. package/dist/types/src/components/elements/Button/Button.d.ts.map +1 -1
  15. package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts +3 -1
  16. package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts.map +1 -1
  17. package/dist/types/src/components/elements/InteractiveElement/InteractiveElement.d.ts +6 -8
  18. package/dist/types/src/components/elements/InteractiveElement/InteractiveElement.d.ts.map +1 -1
  19. package/dist/types/src/components/elements/SimpleButton/SimpleButton.d.ts +1 -0
  20. package/dist/types/src/components/elements/SimpleButton/SimpleButton.d.ts.map +1 -1
  21. package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts +2 -0
  22. package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts.map +1 -1
  23. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts +4 -0
  24. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts.map +1 -1
  25. package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts.map +1 -1
  26. package/dist/types/src/components/modules/CircleCountDown/CircleCountDown.view.d.ts +1 -0
  27. package/dist/types/src/components/modules/CircleCountDown/CircleCountDown.view.d.ts.map +1 -1
  28. package/dist/types/src/components/modules/CondensedTabs/CondensedTabs.view.d.ts.map +1 -1
  29. package/dist/types/src/components/modules/DropContent/DropContent.d.ts +1 -0
  30. package/dist/types/src/components/modules/DropContent/DropContent.d.ts.map +1 -1
  31. package/dist/types/src/components/modules/Modal/Modal.d.ts +1 -0
  32. package/dist/types/src/components/modules/Modal/Modal.d.ts.map +1 -1
  33. package/dist/types/src/hooks/useAriaTooltip.d.ts +12 -2
  34. package/dist/types/src/hooks/useAriaTooltip.d.ts.map +1 -1
  35. package/dist/types/src/hooks/useNotificationTooltipInteractions.d.ts +34 -0
  36. package/dist/types/src/hooks/useNotificationTooltipInteractions.d.ts.map +1 -0
  37. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # Changelog
2
2
 
3
+ ## 20.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b72433f: Stop in-meeting notification tooltips painting over the panels.
8
+
9
+ - The meeting was wrapped in two `position: fixed` elements, which establish a
10
+ stacking context around the whole app. Everything portalled to `<body>` —
11
+ tooltips, modals — landed outside it, so no `z-index` could order them
12
+ against anything inside, such as the side panels. Both wrappers are now
13
+ `position: absolute`, leaving the page in a single stacking context where
14
+ the design tokens actually govern the order.
15
+ - `NotificationTooltip` takes a `zIndex` prop to override where it stacks and
16
+ defaults it to the `components-z-index-tooltip` token, whose base value is
17
+ react-aria's top layer (`100000`) so ordinary tooltips float above content
18
+ while apps can still tune stacking via the token (e.g. trieste). The
19
+ in-meeting controls, the folded selfview, the input control balloon and the
20
+ user menu pass `TOOLTIP_Z_INDEX_BELOW_OVERLAYS` so they sit just under the
21
+ panels and modals that cover their triggers.
22
+ - Fix the preflight "no audio detected" tooltip painting over modals.
23
+ - The permissions help-video modal stacks one above the tooltip token so it
24
+ opens above the (top-layer) tooltip it is launched from.
25
+
26
+ - eb69d83: `DropContent` supports `anchorRef` prop.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [8b563f5]
31
+ - @pexip/utils@17.5.0
32
+ - @pexip/hooks@21.0.10
33
+
34
+ ## 20.3.0
35
+
36
+ ### Minor Changes
37
+
38
+ - f0569ae: Adds support for custom focus styles to `InteractiveElement`.
39
+
40
+ ### Patch Changes
41
+
42
+ - 3f7ea58: Describe the microphone test before it starts, and announce
43
+ countdowns, recording completion, and sound-test label changes without
44
+ competing modal refocus.
45
+ - 8d38605: Fix keyboard focus order across interactive components:
46
+
47
+ - Place `NotificationTooltip` actions after their trigger and restore focus
48
+ when dismissed
49
+ - Close `AriaMenu` when Tab is pressed on a menu item
50
+ - Allow focused drag handles to move `Draggable` elements with arrow keys
51
+ - Remove single-item `CondensedTabs` from the tab order
52
+
3
53
  ## 20.2.0
4
54
 
5
55
  ### Minor Changes
@@ -1,5 +1,6 @@
1
1
  ```ts
2
2
  const CircleCountDown: React.FC<{
3
+ currentCount?: number;
3
4
  startCountFrom?: number;
4
5
  msInterval?: number;
5
6
  shouldStartCountDown?: boolean;
@@ -20,7 +20,8 @@ whole element should be draggable.
20
20
  - data-drag-handle: Marks a descendant that *can* initiate a drag even
21
21
  ```
22
22
  when it sits inside a `data-no-drag` region. Use it to expose a dedicated
23
- grab handle within an otherwise non-draggable area.
23
+ grab handle within an otherwise non-draggable area. A focusable handle can also
24
+ move the Draggable with arrow keys when `isMoveableWithArrowKeys` is set.
24
25
 
25
26
  Both attributes are resolved with `Element.closest`, so they apply to the
26
27
  tagged element and everything nested within it.
@@ -1,3 +1,3 @@
1
1
  ```ts
2
- const InteractiveElement: React.FC<React.ComponentPropsWithoutRef<InteractiveElementHTMLTag> & object>;
2
+ const InteractiveElement: React.FC<InteractiveElementBaseProps>;
3
3
  ```
@@ -1,3 +1,3 @@
1
1
  ```ts
2
- const RefButton: ForwardRefExoticComponent<((((Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> | Omit<...> | Omit<...> | Omit<...>) & { ...; }) & { ...; }) & EnhancerProps) & LoadingBoxProps & Pick<...> & { ...; } & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
2
+ const RefButton: ForwardRefExoticComponent<((InteractiveElementBaseProps & { colorScheme?: "dark" | "light" | undefined; isActive?: boolean | undefined; isDisabled?: boolean | undefined; ... 5 more ...; backgroundTransparency?: number | undefined; }) & EnhancerProps) & LoadingBoxProps & Pick<...> & { ...; } & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
3
3
  ```
@@ -1,3 +1,3 @@
1
1
  ```ts
2
- const RefInteractiveElement: ForwardRefExoticComponent<(Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> | Omit<DetailedHTMLProps<HTMLAttributes<...>, HTMLElement>, "ref"> | Omit<...> | Omit<...>) & { ...; } & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
2
+ const RefInteractiveElement: ForwardRefExoticComponent<InteractiveElementBaseProps & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
3
3
  ```
@@ -1,3 +1,3 @@
1
1
  ```ts
2
- const RefSimpleButton: ForwardRefExoticComponent<((Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> | Omit<DetailedHTMLProps<...>, "ref"> | Omit<...> | Omit<...>) & { ...; }) & { ...; } & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
2
+ const RefSimpleButton: ForwardRefExoticComponent<InteractiveElementBaseProps & { colorScheme?: "dark" | "light" | undefined; isActive?: boolean | undefined; isDisabled?: boolean | undefined; modifier?: "fullWidth" | ... 3 more ... | undefined; noBorderRadius?: boolean | undefined; noHover?: boolean | undefined; size?: "small" | ... 4 more ... | undefined; variant?... & RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
3
3
  ```
@@ -17,7 +17,8 @@
17
17
  @include create-token(components-z-index-drop-content, 99);
18
18
  @include create-token(components-z-index-table-sticky-pagination, 98);
19
19
  @include create-token(components-z-index-checkbox-input, 1);
20
- @include create-token(components-z-index-tooltip, 1);
20
+ // Tooltips portal to react-aria's top layer; keep the default there.
21
+ @include create-token(components-z-index-tooltip, 100000);
21
22
  @include create-token(components-z-index-line-heading-text, 1);
22
23
  @include create-token(components-z-index-line-heading-visual-line, 0);
23
24
  @include create-token(components-z-index-file-upload-input, -1);