@webority/ui-react 0.33.0 → 0.34.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.
@@ -11,6 +11,10 @@
11
11
  * The viewer fills the box its parent gives it; the theme gives it a default height.
12
12
  *
13
13
  * ```jsx
14
+ * const viewer = useRef(null);
15
+ * <AppButton onClick={() => viewer.current.seekTo(30)}>Jump to 0:30</AppButton>
16
+ * <AppFileViewer ref={viewer} src="/files/briefing.mp4" />
17
+ *
14
18
  * <AppFileViewer
15
19
  * src="/files/contract.pdf"
16
20
  * name="Contract.pdf"
@@ -42,7 +46,10 @@
42
46
  * @param {(detail: { message: string }) => void} [props.onError] Called when the file cannot be opened.
43
47
  * @param {string} [props.className] Extra classes on the element.
44
48
  * @param {import('react').CSSProperties} [props.style] Inline style; lands on the element with `className`. Set a height here to size the viewer.
45
- * @param {import('react').Ref<HTMLElement>} [ref]
49
+ * @param {import('react').Ref<HTMLElement>} [ref] The `<wui-file-viewer>` element. For a video or audio file,
50
+ * `ref.current.seekTo(seconds)` moves the player to that point, kept within the file's length, and returns
51
+ * true; with no video or audio open (another kind of file, or before `onLoad`) it does nothing and returns
52
+ * false. Anything but a finite number of seconds throws.
46
53
  */
47
54
  declare const AppFileViewer: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
48
55
  export default AppFileViewer;
package/dist/ui-react.js CHANGED
@@ -9190,6 +9190,7 @@ function Uc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9190
9190
  }), /* @__PURE__ */ Y(K.Menu, {
9191
9191
  className: "workspace-switcher-menu",
9192
9192
  renderOnMount: !0,
9193
+ popperConfig: { strategy: "fixed" },
9193
9194
  children: [
9194
9195
  r ? /* @__PURE__ */ J("div", {
9195
9196
  className: "workspace-switcher-menu-label",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@webority/theme": "0.33.0",
33
- "@webority/ui-elements": "0.33.0"
32
+ "@webority/theme": "0.34.0",
33
+ "@webority/ui-elements": "0.34.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@webority/analytics": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0",