@rpcbase/client 0.164.0 → 0.166.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,7 +1,7 @@
1
1
  /* @flow */
2
2
  import assert from "assert"
3
- import page from "page"
4
3
 
4
+ import page from "../../page"
5
5
  import getInitials from "../../helpers/getInitials"
6
6
  import Avatar from "../../ui/Avatar"
7
7
 
@@ -4,8 +4,8 @@ import debug from "debug"
4
4
  import {useState, useEffect} from "react"
5
5
  import useSearchParam from "react-use/lib/useSearchParam"
6
6
  import isEmail from "validator/lib/isEmail"
7
- import page from "page"
8
7
 
8
+ import page from "../../page"
9
9
  import post from "../../helpers/post"
10
10
  import {reconnect as rts_reconnect} from "../../rts/rts"
11
11
  import {set_is_signed_in, setUid, set_tenant_id} from "../index"
@@ -3,10 +3,10 @@ import assert from "assert"
3
3
  import {useState, useEffect} from "react"
4
4
  import {ActivityIndicator} from "react-native"
5
5
  import Alert from "react-bootstrap/Alert"
6
- import page from "page"
7
6
 
8
7
  import authConfig from "@rpcbase/dot-rb/auth"
9
8
 
9
+ import page from "../../page"
10
10
  import {sign_out} from "../sign_out"
11
11
 
12
12
  import post from "../../helpers/post"
@@ -1,7 +1,7 @@
1
1
  /* @flow */
2
2
  import {useState} from "react"
3
- import page from "page"
4
3
 
4
+ import page from "../../page"
5
5
  import {reconnect as rts_reconnect} from "../../rts/rts"
6
6
 
7
7
  import {set_is_signed_in, setUid, set_tenant_id} from "../index"
@@ -1,5 +1,5 @@
1
1
  /* @flow */
2
- import page from "page"
2
+ import page from "../../page"
3
3
 
4
4
  const redirect_sign_in = (ctx) => {
5
5
  const redirect_path = ctx.canonicalPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.164.0",
3
+ "version": "0.166.0",
4
4
  "scripts": {
5
5
  "test": "../../node_modules/.bin/wireit"
6
6
  },
package/page.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /* @flow */
2
2
  import page from "page"
3
3
 
4
- import {hashStateMiddleware} from "../hashState"
4
+ import {hashStateMiddleware} from "./hashState"
5
5
 
6
+ // custom event handler to get hash state changes when navigating with url
6
7
  page(hashStateMiddleware)
7
8
 
8
9
  export default page