@novasamatech/host-papp-ui 0.5.0-10 → 0.5.0-12

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,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { createContext as i, useContext as u, useDebugValue as n, useState as c, useEffect as l } from "react";
3
- import { usePapp as d } from "../flow/PappProvider.js";
3
+ import { usePapp as a } from "../flow/PappProvider.js";
4
4
  const t = i(null), v = () => {
5
5
  const s = u(t);
6
6
  if (s === null)
@@ -8,18 +8,18 @@ const t = i(null), v = () => {
8
8
  return s;
9
9
  }, x = ({ children: s }) => {
10
10
  const o = {
11
- session: a()
11
+ session: S()
12
12
  };
13
13
  return /* @__PURE__ */ r(t.Provider, { value: o, children: s });
14
- }, S = () => {
15
- const s = d(), [e, o] = c([]);
14
+ }, d = () => {
15
+ const s = a(), [e, o] = c([]);
16
16
  return l(() => s.sessions.sessions.subscribe(o), [s]), n(`Sessions: ${e.length}`), e;
17
- }, a = () => {
18
- const e = S().at(0) ?? null;
19
- return n(`Selected user: ${e?.remoteAccount.accountId.toString() ?? "None"}`), e;
17
+ }, S = () => {
18
+ const e = d().at(0) ?? null;
19
+ return n(`Selected user: ${e?.localAccount.accountId.toString() ?? "None"}`), e;
20
20
  };
21
21
  export {
22
22
  x as SessionsProvider,
23
23
  v as useSession,
24
- a as useUserSession
24
+ S as useUserSession
25
25
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/host-papp-ui",
3
3
  "type": "module",
4
- "version": "0.5.0-10",
4
+ "version": "0.5.0-12",
5
5
  "description": "Polkadot app UI Flow",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {