@rpcbase/client 0.205.0 → 0.207.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.
@@ -1,9 +1,9 @@
1
1
  /* @flow */
2
- import {createXXHash128} from "hash-wasm"
2
+ // import {createXXHash128} from "hash-wasm/dist/xxhash128.umd.min.js"
3
+ import {createXXHash128} from "hash-wasm-xxhash128"
3
4
 
4
5
  import {EVENTS, HASH_CHUNK_SIZE} from "../constants"
5
6
 
6
-
7
7
  // read and hash the file
8
8
  const get_file_hash = async(file) => {
9
9
  if (!file) return
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  /* @flow */
2
2
  import useRPC from "./helpers/useRPC"
3
3
  import useStoredValue from "./helpers/useStoredValue"
4
+ import {getUid} from "./auth/getUid"
4
5
 
5
- export {useRPC, useStoredValue}
6
+ export {useRPC, useStoredValue, getUid}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.205.0",
3
+ "version": "0.207.0",
4
4
  "scripts": {
5
5
  "build": "../../node_modules/.bin/wireit",
6
6
  "test": "../../node_modules/.bin/wireit"
package/ui/Tabs/index.js CHANGED
@@ -11,6 +11,7 @@ import "./tabs.scss"
11
11
  type Props = {
12
12
  active: boolean,
13
13
  onChange: Function,
14
+ scrollIntoView: boolean
14
15
  }
15
16
 
16
17
  export const Tabs = (props: Props) => {
@@ -98,7 +99,10 @@ export const Tabs = (props: Props) => {
98
99
  } else {
99
100
  const id = `tab-${child.key}`
100
101
  const el = document.getElementById(id)
101
- el?.scrollIntoView({behavior: "smooth", block: "end", inline: "nearest"})
102
+
103
+ if (props.scrollIntoView) {
104
+ el?.scrollIntoView({behavior: "smooth", block: "end", inline: "nearest"})
105
+ }
102
106
 
103
107
  props.onChange(child.key)
104
108
  }