@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
package/package.json
CHANGED
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
|
-
|
|
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
|
}
|