@xyo-network/dapp-template 7.4.0 → 7.4.2

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.
Files changed (77) hide show
  1. package/dist/neutral/CustomDappPathToComponent.d.ts +3 -0
  2. package/dist/neutral/CustomDappPathToComponent.d.ts.map +1 -0
  3. package/dist/neutral/Dapp.d.ts +2 -0
  4. package/dist/neutral/Dapp.d.ts.map +1 -0
  5. package/dist/neutral/Params.d.ts +4 -0
  6. package/dist/neutral/Params.d.ts.map +1 -0
  7. package/dist/neutral/Payloads.d.ts +8 -0
  8. package/dist/neutral/Payloads.d.ts.map +1 -0
  9. package/dist/neutral/ReactDapp.d.ts +13 -0
  10. package/dist/neutral/ReactDapp.d.ts.map +1 -0
  11. package/dist/neutral/UiParams.d.ts +4 -0
  12. package/dist/neutral/UiParams.d.ts.map +1 -0
  13. package/dist/neutral/components/host/DappHost.d.ts +8 -0
  14. package/dist/neutral/components/host/DappHost.d.ts.map +1 -0
  15. package/dist/neutral/components/host/Routable.d.ts +4 -0
  16. package/dist/neutral/components/host/Routable.d.ts.map +1 -0
  17. package/dist/neutral/components/host/Routes.d.ts +4 -0
  18. package/dist/neutral/components/host/Routes.d.ts.map +1 -0
  19. package/dist/neutral/components/host/XyOsHost.d.ts +14 -0
  20. package/dist/neutral/components/host/XyOsHost.d.ts.map +1 -0
  21. package/dist/neutral/components/host/index.d.ts +5 -0
  22. package/dist/neutral/components/host/index.d.ts.map +1 -0
  23. package/dist/neutral/components/index.d.ts +2 -0
  24. package/dist/neutral/components/index.d.ts.map +1 -0
  25. package/dist/neutral/helpers/index.d.ts +2 -0
  26. package/dist/neutral/helpers/index.d.ts.map +1 -0
  27. package/dist/neutral/helpers/registration/index.d.ts +2 -0
  28. package/dist/neutral/helpers/registration/index.d.ts.map +1 -0
  29. package/dist/neutral/helpers/registration/useInitializeDappAdHoc.d.ts +13 -0
  30. package/dist/neutral/helpers/registration/useInitializeDappAdHoc.d.ts.map +1 -0
  31. package/dist/neutral/icon/Icon.d.ts +2 -0
  32. package/dist/neutral/icon/Icon.d.ts.map +1 -0
  33. package/dist/neutral/icon/index.d.ts +3 -0
  34. package/dist/neutral/icon/index.d.ts.map +1 -0
  35. package/dist/neutral/index.d.ts +7 -0
  36. package/dist/neutral/index.d.ts.map +1 -0
  37. package/dist/neutral/index.mjs +353 -0
  38. package/dist/neutral/index.mjs.map +7 -0
  39. package/dist/node/CustomDappPathToComponent.d.ts +3 -0
  40. package/dist/node/CustomDappPathToComponent.d.ts.map +1 -0
  41. package/dist/node/Dapp.d.ts +2 -0
  42. package/dist/node/Dapp.d.ts.map +1 -0
  43. package/dist/node/Params.d.ts +4 -0
  44. package/dist/node/Params.d.ts.map +1 -0
  45. package/dist/node/Payloads.d.ts +8 -0
  46. package/dist/node/Payloads.d.ts.map +1 -0
  47. package/dist/node/ReactDapp.d.ts +13 -0
  48. package/dist/node/ReactDapp.d.ts.map +1 -0
  49. package/dist/node/UiParams.d.ts +4 -0
  50. package/dist/node/UiParams.d.ts.map +1 -0
  51. package/dist/node/components/host/DappHost.d.ts +8 -0
  52. package/dist/node/components/host/DappHost.d.ts.map +1 -0
  53. package/dist/node/components/host/Routable.d.ts +4 -0
  54. package/dist/node/components/host/Routable.d.ts.map +1 -0
  55. package/dist/node/components/host/Routes.d.ts +4 -0
  56. package/dist/node/components/host/Routes.d.ts.map +1 -0
  57. package/dist/node/components/host/XyOsHost.d.ts +14 -0
  58. package/dist/node/components/host/XyOsHost.d.ts.map +1 -0
  59. package/dist/node/components/host/index.d.ts +5 -0
  60. package/dist/node/components/host/index.d.ts.map +1 -0
  61. package/dist/node/components/index.d.ts +2 -0
  62. package/dist/node/components/index.d.ts.map +1 -0
  63. package/dist/node/helpers/index.d.ts +2 -0
  64. package/dist/node/helpers/index.d.ts.map +1 -0
  65. package/dist/node/helpers/registration/index.d.ts +2 -0
  66. package/dist/node/helpers/registration/index.d.ts.map +1 -0
  67. package/dist/node/helpers/registration/useInitializeDappAdHoc.d.ts +13 -0
  68. package/dist/node/helpers/registration/useInitializeDappAdHoc.d.ts.map +1 -0
  69. package/dist/node/icon/Icon.d.ts +2 -0
  70. package/dist/node/icon/Icon.d.ts.map +1 -0
  71. package/dist/node/icon/index.d.ts +3 -0
  72. package/dist/node/icon/index.d.ts.map +1 -0
  73. package/dist/node/index.d.ts +7 -0
  74. package/dist/node/index.d.ts.map +1 -0
  75. package/dist/node/index.mjs +353 -0
  76. package/dist/node/index.mjs.map +7 -0
  77. package/package.json +7 -7
@@ -0,0 +1,3 @@
1
+ import type { PathToComponent } from '@xyo-network/os-react-runtime';
2
+ export declare const CustomDappPathToComponent: PathToComponent[];
3
+ //# sourceMappingURL=CustomDappPathToComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDappPathToComponent.d.ts","sourceRoot":"","sources":["../../src/CustomDappPathToComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAGpE,eAAO,MAAM,yBAAyB,EAAE,eAAe,EAKtD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const CustomDapp: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Dapp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dapp.d.ts","sourceRoot":"","sources":["../../src/Dapp.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU,+CAWtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { UnregisteredDapp } from '@xyo-network/os-model';
2
+ export declare const CustomDappParams: UnregisteredDapp['params'];
3
+ export default CustomDappParams;
4
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAO7D,eAAO,MAAM,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ,CAGvD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { DappConfig, DappIcon, DappName, DappNavItem, DappNavMenuConfig } from '@xyo-network/os-model';
2
+ export declare const CustomDappName: DappName;
3
+ export declare const CustomDappConfig: DappConfig;
4
+ export declare const CustomDappIcon: DappIcon;
5
+ export declare const DappPayloads: (DappConfig | DappIcon)[];
6
+ export type CustomDappMenuItemPaths = 'home' | 'settings';
7
+ export declare const CustomDappMenuPayloads: (DappNavItem<CustomDappMenuItemPaths> | DappNavMenuConfig)[];
8
+ //# sourceMappingURL=Payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payloads.d.ts","sourceRoot":"","sources":["../../src/Payloads.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,iBAAiB,EAGlB,MAAM,uBAAuB,CAAA;AAW9B,eAAO,MAAM,cAAc,EAAE,QAAiC,CAAA;AAI9D,eAAO,MAAM,gBAAgB,EAAE,UAO9B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,QAO5B,CAAA;AAED,eAAO,MAAM,YAAY,2BAAqC,CAAA;AAE9D,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,UAAU,CAAA;AA4BzD,eAAO,MAAM,sBAAsB,8DAAiD,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { JsonObject } from '@xylabs/sdk-js';
2
+ import type { DappParams } from '@xyo-network/os-model';
3
+ import type { DappReactParams } from '@xyo-network/os-react-model';
4
+ import type { Payload } from '@xyo-network/payload-model';
5
+ export * from './UiParams.ts';
6
+ export interface Dapp<TParams extends DappParams> {
7
+ manifest: JsonObject;
8
+ params: TParams;
9
+ payloads: Payload[];
10
+ }
11
+ export interface ReactDapp extends Dapp<DappReactParams> {
12
+ }
13
+ //# sourceMappingURL=ReactDapp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactDapp.d.ts","sourceRoot":"","sources":["../../src/ReactDapp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,cAAc,eAAe,CAAA;AAE7B,MAAM,WAAW,IAAI,CAAC,OAAO,SAAS,UAAU;IAC9C,QAAQ,EAAE,UAAU,CAAA;IACpB,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,eAAe,CAAC;CAAG"}
@@ -0,0 +1,4 @@
1
+ import type { UnregisteredReactDapp } from '@xyo-network/os-react-model';
2
+ export declare const CustomDappUiParams: UnregisteredReactDapp['params'];
3
+ export default CustomDappUiParams;
4
+ //# sourceMappingURL=UiParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiParams.d.ts","sourceRoot":"","sources":["../../src/UiParams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAKxE,eAAO,MAAM,kBAAkB,EAAE,qBAAqB,CAAC,QAAQ,CAG9D,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { RegisteredReactDapp } from '@xyo-network/os-react-model';
2
+ import React from 'react';
3
+ export interface DappHostProps {
4
+ dapp: RegisteredReactDapp;
5
+ }
6
+ export declare const DappHostInner: React.FC<DappHostProps>;
7
+ export declare const DappHost: React.FC<DappHostProps>;
8
+ //# sourceMappingURL=DappHost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DappHost.d.ts","sourceRoot":"","sources":["../../../../src/components/host/DappHost.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,mBAAmB,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiBjD,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAI5C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DappHostProps } from './DappHost.tsx';
3
+ export declare const RoutableDapp: React.FC<DappHostProps>;
4
+ //# sourceMappingURL=Routable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Routable.d.ts","sourceRoot":"","sources":["../../../../src/components/host/Routable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAInD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAOhD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type DappHostProps } from './DappHost.tsx';
3
+ export declare const DappRoutes: React.FC<DappHostProps>;
4
+ //# sourceMappingURL=Routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Routes.d.ts","sourceRoot":"","sources":["../../../../src/components/host/Routes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE7D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2B9C,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { KernelExternal } from '@xyo-network/kernel-model';
2
+ import { EventBus } from '@xyo-network/os-runtime';
3
+ import { ModuleFactoryLocator } from '@xyo-network/sdk-js';
4
+ import type { WalletInstance } from '@xyo-network/wallet-model';
5
+ import React from 'react';
6
+ export interface XyOsHostProps {
7
+ children?: React.ReactNode;
8
+ eventBus?: EventBus;
9
+ kernel?: KernelExternal;
10
+ locator?: ModuleFactoryLocator;
11
+ wallet?: WalletInstance;
12
+ }
13
+ export declare const XyOsHost: React.FC<XyOsHostProps>;
14
+ //# sourceMappingURL=XyOsHost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XyOsHost.d.ts","sourceRoot":"","sources":["../../../../src/components/host/XyOsHost.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,EAAE,QAAQ,EAAQ,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAY,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwC5C,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './DappHost.tsx';
2
+ export * from './Routable.tsx';
3
+ export * from './Routes.tsx';
4
+ export * from './XyOsHost.tsx';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/host/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './host/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './registration/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './useInitializeDappAdHoc.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/registration/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { RegisteredReactDapp } from '@xyo-network/os-react-model';
2
+ export declare const useInitializeDappAdHoc: (dapp: RegisteredReactDapp) => {
3
+ context: import("@xyo-network/os-model").XyOsContext | null | undefined;
4
+ dappMenu: import("@xyo-network/os-react-runtime").DappMenuProperties;
5
+ dappState: {
6
+ active: boolean;
7
+ minimized: boolean;
8
+ closed: boolean;
9
+ };
10
+ dappWallet: import("@xyo-network/wallet-model").WalletInstance | undefined;
11
+ errors: (Error | undefined)[];
12
+ };
13
+ //# sourceMappingURL=useInitializeDappAdHoc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInitializeDappAdHoc.d.ts","sourceRoot":"","sources":["../../../../src/helpers/registration/useInitializeDappAdHoc.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAUtE,eAAO,MAAM,sBAAsB,GAAI,MAAM,mBAAmB;;;;;;;;;;CA+B/D,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const CustomDappIconSvg = "\n<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\">\n <path\n fill=\"transparent\"\n d=\"M6.44,27.12c-.78,0-1.44.28-2,.83-.55.55-.83,1.21-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83Z\"\n />\n <path\n fill=\"transparent\"\n d=\"M18.01,27.91c-.55.55-.83,1.22-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83s-1.44.28-2,.83Z\"\n />\n <path\n fill=\"transparent\"\n d=\"M33.56,27.12c-.78,0-1.44.28-2,.83-.55.55-.83,1.21-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M36.55,26.94c-.82-.82-1.82-1.23-3-1.23-.32,0-.63.04-.93.11-.3.07-.59.17-.87.31l-5.87-8.09c-.18.03-.36.05-.56.05h-1.13l6.42,8.83c-.39.4-.7.85-.93,1.36-.23.51-.35,1.06-.35,1.66,0,1.18.41,2.17,1.23,3s1.82,1.23,3,1.23,2.17-.41,3-1.23,1.23-1.82,1.23-3-.41-2.17-1.23-3ZM35.55,31.93c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M19.29,25.73c-1,.16-1.84.64-2.52,1.42-.67.79-1.01,1.7-1.01,2.75,0,1.18.41,2.17,1.23,3,.82.82,1.82,1.23,3,1.23s2.17-.41,3-1.23c.82-.82,1.23-1.82,1.23-3,0-1.05-.34-1.97-1.01-2.74-.67-.78-1.51-1.25-2.52-1.43v-7.65h-1.41v7.65ZM22,27.91c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M14.1,18l-5.89,8.08c-.28-.13-.56-.22-.86-.28-.29-.06-.6-.09-.91-.09-1.18,0-2.17.41-3,1.23-.82.82-1.23,1.82-1.23,3s.41,2.17,1.23,3,1.82,1.23,3,1.23,2.17-.41,3-1.23,1.23-1.82,1.23-3c0-.6-.12-1.15-.36-1.66s-.56-.96-.95-1.36l6.45-8.83h-1c-.25,0-.48-.03-.7-.08ZM8.44,31.93c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99Z\"\n />\n <path\n fill=\"transparent\"\n d=\"M20,12.91c1.26,0,2.46.19,3.61.56,1.15.37,2.23.88,3.23,1.54V4.86c0-.44-.15-.82-.46-1.12s-.68-.46-1.12-.46h-10.52c-.44,0-.82.15-1.12.46s-.46.68-.46,1.12v10.15c1-.66,2.08-1.17,3.23-1.54s2.36-.56,3.61-.56ZM17.7,5.83c.63-.63,1.4-.95,2.3-.95s1.66.32,2.3.95.95,1.4.95,2.3-.32,1.66-.95,2.3-1.4.95-2.3.95-1.66-.32-2.3-.95-.95-1.4-.95-2.3.32-1.66.95-2.3Z\"\n />\n <path\n fill=\"transparent\"\n d=\"M20,10.32c.6,0,1.12-.21,1.55-.64.43-.43.65-.94.65-1.55s-.22-1.12-.65-1.55c-.43-.43-.95-.65-1.55-.65s-1.12.22-1.55.65-.64.95-.64,1.55.21,1.12.64,1.55.94.64,1.55.64Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M20,11.37c.9,0,1.66-.32,2.3-.95s.95-1.4.95-2.3-.32-1.66-.95-2.3-1.4-.95-2.3-.95-1.66.32-2.3.95-.95,1.4-.95,2.3.32,1.66.95,2.3,1.4.95,2.3.95ZM18.45,6.58c.43-.43.95-.65,1.55-.65s1.12.22,1.55.65c.43.43.65.95.65,1.55s-.22,1.12-.65,1.55c-.43.43-.95.64-1.55.64s-1.12-.21-1.55-.64-.64-.95-.64-1.55.21-1.12.64-1.55Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M27.21,2.9c-.5-.5-1.15-.75-1.95-.75h-10.52c-.8,0-1.45.25-1.95.75-.5.5-.75,1.15-.75,1.95v10.52c0,.8.25,1.45.75,1.95.35.35.77.56,1.25.67.22.05.45.08.7.08h10.52c.2,0,.38-.02.56-.05.55-.09,1.01-.33,1.39-.71.5-.5.75-1.15.75-1.95V4.86c0-.8-.25-1.45-.75-1.95ZM25.93,16.74c-.26.14-.55.22-.86.22h-10.15s-.08-.01-.12-.01c-.25-.02-.5-.08-.74-.2-.28-.14-.45-.35-.5-.63.99-.7,2.03-1.22,3.12-1.57s2.19-.52,3.31-.52,2.27.18,3.4.55c1.13.36,2.18.88,3.16,1.54-.15.27-.36.48-.63.63ZM26.84,15.01c-1-.66-2.08-1.17-3.23-1.54-1.15-.37-2.36-.56-3.61-.56s-2.46.19-3.61.56-2.23.88-3.23,1.54V4.86c0-.44.15-.82.46-1.12s.68-.46,1.12-.46h10.52c.44,0,.82.15,1.12.46s.46.68.46,1.12v10.15Z\"\n />\n </svg>\n ";
2
+ //# sourceMappingURL=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/icon/Icon.tsx"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,i4HA2C3B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Icon.tsx';
2
+ export { CustomDappIconSvg as default } from './Icon.tsx';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './components/index.ts';
2
+ export { default as accountsDappManifest } from './dapp.manifest.json';
3
+ export * from './helpers/index.ts';
4
+ export * from './Params.ts';
5
+ export * from './Payloads.ts';
6
+ export * from './UiParams.ts';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAsB;AAC5F,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA"}
@@ -0,0 +1,353 @@
1
+ // src/components/host/DappHost.tsx
2
+ import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
3
+ import { DappRendered } from "@xyo-network/os-react-runtime";
4
+
5
+ // src/helpers/registration/useInitializeDappAdHoc.tsx
6
+ import { usePromise } from "@xylabs/react-promise";
7
+ import {
8
+ useDappMenu,
9
+ useManageDappInjectableParamsFromRoute,
10
+ useManageDappPathFromRoute,
11
+ useXyOsUiContext
12
+ } from "@xyo-network/os-react-runtime";
13
+ import { DappInitializer } from "@xyo-network/os-runtime";
14
+ var dappState = {
15
+ active: true,
16
+ minimized: false,
17
+ closed: false
18
+ };
19
+ var useInitializeDappAdHoc = (dapp) => {
20
+ const xyOs = useXyOsUiContext();
21
+ const [installedDapp, nodeCreateError] = usePromise(async () => {
22
+ if (xyOs && dapp) {
23
+ const installer = new DappInitializer({
24
+ allowedNames: [dapp.config.name],
25
+ dapp,
26
+ xnsNetwork: void 0,
27
+ xnsNodeUrl: void 0,
28
+ xyOs
29
+ });
30
+ return await installer.install();
31
+ }
32
+ }, [xyOs, dapp]);
33
+ const { dappWallet, context } = installedDapp ?? {};
34
+ const routingError = useManageDappPathFromRoute(context, dapp.config.name);
35
+ const injectableErrors = useManageDappInjectableParamsFromRoute(context);
36
+ const dappMenu = useDappMenu(context, dapp.config.name);
37
+ return {
38
+ context,
39
+ dappMenu,
40
+ dappState,
41
+ dappWallet,
42
+ errors: [routingError, nodeCreateError, ...injectableErrors].filter(Boolean)
43
+ };
44
+ };
45
+
46
+ // src/components/host/XyOsHost.tsx
47
+ import { Typography } from "@mui/material";
48
+ import { FlexCol } from "@xylabs/react-flexbox";
49
+ import { usePromise as usePromise2 } from "@xylabs/react-promise";
50
+ import { Kernel } from "@xyo-network/kernel";
51
+ import { XyOsUiContextProvider } from "@xyo-network/os-react-runtime";
52
+ import { EventBus, XyOs } from "@xyo-network/os-runtime";
53
+ import { HDWallet, ModuleFactoryLocator } from "@xyo-network/sdk-js";
54
+ import { useMemo } from "react";
55
+ import { jsx, jsxs } from "react/jsx-runtime";
56
+ var XyOsHost = ({
57
+ children,
58
+ eventBus,
59
+ kernel,
60
+ locator: locator2,
61
+ wallet
62
+ }) => {
63
+ const [walletToUse] = usePromise2(async () => wallet ?? await HDWallet.random(), [wallet]);
64
+ const eventBusToUse = useMemo(() => eventBus ?? new EventBus(), [kernel]);
65
+ const kernelToUse = useMemo(() => kernel ?? new Kernel(), [kernel]);
66
+ const locatorToUse = useMemo(() => locator2 ?? new ModuleFactoryLocator(), [locator2]);
67
+ const [os, error] = usePromise2(async () => {
68
+ if (walletToUse && kernelToUse && eventBusToUse && locatorToUse) {
69
+ const os2 = new XyOs({
70
+ kernel: kernelToUse,
71
+ eventBus: new EventBus(),
72
+ locator: locatorToUse
73
+ });
74
+ await os2.boot(walletToUse, locatorToUse);
75
+ return os2;
76
+ }
77
+ }, [kernelToUse, walletToUse, locator2, eventBusToUse, locatorToUse]);
78
+ return os ? /* @__PURE__ */ jsx(XyOsUiContextProvider, { value: os, children }) : /* @__PURE__ */ jsxs(FlexCol, { children: [
79
+ /* @__PURE__ */ jsxs(Typography, { children: [
80
+ "wallet:",
81
+ walletToUse ? "ready" : "loading"
82
+ ] }),
83
+ /* @__PURE__ */ jsxs(Typography, { children: [
84
+ "kernel:",
85
+ kernelToUse ? "ready" : "loading"
86
+ ] }),
87
+ /* @__PURE__ */ jsxs(Typography, { children: [
88
+ "os:",
89
+ os ? "ready" : "loading"
90
+ ] }),
91
+ /* @__PURE__ */ jsxs(Typography, { children: [
92
+ "os-error:",
93
+ error?.message
94
+ ] })
95
+ ] });
96
+ };
97
+
98
+ // src/components/host/DappHost.tsx
99
+ import { jsx as jsx2 } from "react/jsx-runtime";
100
+ var DappHostInner = ({ dapp }) => {
101
+ const {
102
+ context,
103
+ dappMenu,
104
+ dappState: dappState2,
105
+ dappWallet,
106
+ errors
107
+ } = useInitializeDappAdHoc(dapp);
108
+ return /* @__PURE__ */ jsx2(FlexCol2, { children: /* @__PURE__ */ jsx2(
109
+ DappRendered,
110
+ {
111
+ context,
112
+ dapp,
113
+ dappMenuProperties: dappMenu,
114
+ dappState: dappState2,
115
+ dappWallet,
116
+ errors
117
+ }
118
+ ) });
119
+ };
120
+ var DappHost = ({ dapp }) => /* @__PURE__ */ jsx2(XyOsHost, { children: /* @__PURE__ */ jsx2(DappHostInner, { dapp }) });
121
+
122
+ // src/components/host/Routable.tsx
123
+ import { BrowserRouter } from "react-router-dom";
124
+
125
+ // src/components/host/Routes.tsx
126
+ import { Route, Routes } from "react-router-dom";
127
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
128
+ var DappRoutes = (args) => /* @__PURE__ */ jsxs2(Routes, { children: [
129
+ /* @__PURE__ */ jsx3(
130
+ Route,
131
+ {
132
+ path: "/",
133
+ element: /* @__PURE__ */ jsx3(DappHost, { ...args })
134
+ }
135
+ ),
136
+ /* @__PURE__ */ jsx3(
137
+ Route,
138
+ {
139
+ path: "/:dappName",
140
+ element: /* @__PURE__ */ jsx3(DappHost, { ...args })
141
+ }
142
+ ),
143
+ /* @__PURE__ */ jsx3(
144
+ Route,
145
+ {
146
+ path: "/:dappName/:path/*",
147
+ element: /* @__PURE__ */ jsx3(DappHost, { ...args })
148
+ }
149
+ ),
150
+ /* @__PURE__ */ jsx3(
151
+ Route,
152
+ {
153
+ path: "*",
154
+ element: /* @__PURE__ */ jsx3(DappHost, { ...args })
155
+ }
156
+ )
157
+ ] });
158
+
159
+ // src/components/host/Routable.tsx
160
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
161
+ var RoutableDapp = ({ dapp }) => {
162
+ return /* @__PURE__ */ jsxs3(BrowserRouter, { children: [
163
+ /* @__PURE__ */ jsx4(DappRoutes, { dapp }),
164
+ /* @__PURE__ */ jsx4(DappHost, { dapp })
165
+ ] });
166
+ };
167
+
168
+ // src/dapp.manifest.json
169
+ var dapp_manifest_default = {
170
+ $schema: "https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/compilations/dapp-package-manifest-schema.json",
171
+ nodes: [
172
+ {
173
+ config: {
174
+ accountPath: "0'",
175
+ name: "CustomDappNode",
176
+ schema: "network.xyo.node.config"
177
+ },
178
+ modules: {
179
+ private: [],
180
+ public: [
181
+ {
182
+ config: {
183
+ accountPath: "1'",
184
+ name: "DappArchivist",
185
+ schema: "network.xyo.archivist.config"
186
+ }
187
+ }
188
+ ]
189
+ }
190
+ }
191
+ ],
192
+ schema: "network.xyo.manifest.package.dapp"
193
+ };
194
+
195
+ // src/Params.ts
196
+ import { ModuleFactoryLocator as ModuleFactoryLocator2 } from "@xyo-network/sdk-js";
197
+
198
+ // src/icon/Icon.tsx
199
+ var CustomDappIconSvg = `
200
+ <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40">
201
+ <path
202
+ fill="transparent"
203
+ d="M6.44,27.12c-.78,0-1.44.28-2,.83-.55.55-.83,1.21-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83Z"
204
+ />
205
+ <path
206
+ fill="transparent"
207
+ d="M18.01,27.91c-.55.55-.83,1.22-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83s-1.44.28-2,.83Z"
208
+ />
209
+ <path
210
+ fill="transparent"
211
+ d="M33.56,27.12c-.78,0-1.44.28-2,.83-.55.55-.83,1.21-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83Z"
212
+ />
213
+ <path
214
+ fill="currentColor"
215
+ d="M36.55,26.94c-.82-.82-1.82-1.23-3-1.23-.32,0-.63.04-.93.11-.3.07-.59.17-.87.31l-5.87-8.09c-.18.03-.36.05-.56.05h-1.13l6.42,8.83c-.39.4-.7.85-.93,1.36-.23.51-.35,1.06-.35,1.66,0,1.18.41,2.17,1.23,3s1.82,1.23,3,1.23,2.17-.41,3-1.23,1.23-1.82,1.23-3-.41-2.17-1.23-3ZM35.55,31.93c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99Z"
216
+ />
217
+ <path
218
+ fill="currentColor"
219
+ d="M19.29,25.73c-1,.16-1.84.64-2.52,1.42-.67.79-1.01,1.7-1.01,2.75,0,1.18.41,2.17,1.23,3,.82.82,1.82,1.23,3,1.23s2.17-.41,3-1.23c.82-.82,1.23-1.82,1.23-3,0-1.05-.34-1.97-1.01-2.74-.67-.78-1.51-1.25-2.52-1.43v-7.65h-1.41v7.65ZM22,27.91c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83Z"
220
+ />
221
+ <path
222
+ fill="currentColor"
223
+ d="M14.1,18l-5.89,8.08c-.28-.13-.56-.22-.86-.28-.29-.06-.6-.09-.91-.09-1.18,0-2.17.41-3,1.23-.82.82-1.23,1.82-1.23,3s.41,2.17,1.23,3,1.82,1.23,3,1.23,2.17-.41,3-1.23,1.23-1.82,1.23-3c0-.6-.12-1.15-.36-1.66s-.56-.96-.95-1.36l6.45-8.83h-1c-.25,0-.48-.03-.7-.08ZM8.44,31.93c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99Z"
224
+ />
225
+ <path
226
+ fill="transparent"
227
+ d="M20,12.91c1.26,0,2.46.19,3.61.56,1.15.37,2.23.88,3.23,1.54V4.86c0-.44-.15-.82-.46-1.12s-.68-.46-1.12-.46h-10.52c-.44,0-.82.15-1.12.46s-.46.68-.46,1.12v10.15c1-.66,2.08-1.17,3.23-1.54s2.36-.56,3.61-.56ZM17.7,5.83c.63-.63,1.4-.95,2.3-.95s1.66.32,2.3.95.95,1.4.95,2.3-.32,1.66-.95,2.3-1.4.95-2.3.95-1.66-.32-2.3-.95-.95-1.4-.95-2.3.32-1.66.95-2.3Z"
228
+ />
229
+ <path
230
+ fill="transparent"
231
+ d="M20,10.32c.6,0,1.12-.21,1.55-.64.43-.43.65-.94.65-1.55s-.22-1.12-.65-1.55c-.43-.43-.95-.65-1.55-.65s-1.12.22-1.55.65-.64.95-.64,1.55.21,1.12.64,1.55.94.64,1.55.64Z"
232
+ />
233
+ <path
234
+ fill="currentColor"
235
+ d="M20,11.37c.9,0,1.66-.32,2.3-.95s.95-1.4.95-2.3-.32-1.66-.95-2.3-1.4-.95-2.3-.95-1.66.32-2.3.95-.95,1.4-.95,2.3.32,1.66.95,2.3,1.4.95,2.3.95ZM18.45,6.58c.43-.43.95-.65,1.55-.65s1.12.22,1.55.65c.43.43.65.95.65,1.55s-.22,1.12-.65,1.55c-.43.43-.95.64-1.55.64s-1.12-.21-1.55-.64-.64-.95-.64-1.55.21-1.12.64-1.55Z"
236
+ />
237
+ <path
238
+ fill="currentColor"
239
+ d="M27.21,2.9c-.5-.5-1.15-.75-1.95-.75h-10.52c-.8,0-1.45.25-1.95.75-.5.5-.75,1.15-.75,1.95v10.52c0,.8.25,1.45.75,1.95.35.35.77.56,1.25.67.22.05.45.08.7.08h10.52c.2,0,.38-.02.56-.05.55-.09,1.01-.33,1.39-.71.5-.5.75-1.15.75-1.95V4.86c0-.8-.25-1.45-.75-1.95ZM25.93,16.74c-.26.14-.55.22-.86.22h-10.15s-.08-.01-.12-.01c-.25-.02-.5-.08-.74-.2-.28-.14-.45-.35-.5-.63.99-.7,2.03-1.22,3.12-1.57s2.19-.52,3.31-.52,2.27.18,3.4.55c1.13.36,2.18.88,3.16,1.54-.15.27-.36.48-.63.63ZM26.84,15.01c-1-.66-2.08-1.17-3.23-1.54-1.15-.37-2.36-.56-3.61-.56s-2.46.19-3.61.56-2.23.88-3.23,1.54V4.86c0-.44.15-.82.46-1.12s.68-.46,1.12-.46h10.52c.44,0,.82.15,1.12.46s.46.68.46,1.12v10.15Z"
240
+ />
241
+ </svg>
242
+ `;
243
+
244
+ // src/Params.ts
245
+ var locator = new ModuleFactoryLocator2();
246
+ var CustomDappParams = {
247
+ iconSvg: CustomDappIconSvg,
248
+ locator
249
+ };
250
+
251
+ // src/Payloads.ts
252
+ import {
253
+ DappConfigSchema,
254
+ DappIconSchema,
255
+ DappMode,
256
+ DappNavItemSchema,
257
+ DappNavMenuConfigSchema
258
+ } from "@xyo-network/os-model";
259
+ var CustomDappName = "Custom Dapp";
260
+ var version = "1.0.0";
261
+ var CustomDappConfig = {
262
+ manifest: dapp_manifest_default,
263
+ modes: [DappMode.Window],
264
+ name: CustomDappName,
265
+ schema: DappConfigSchema,
266
+ sources: ["network.xyo.dapp.accounts.source"],
267
+ version
268
+ };
269
+ var CustomDappIcon = {
270
+ active: false,
271
+ installed: "installed",
272
+ name: CustomDappName,
273
+ schema: DappIconSchema,
274
+ type: "system",
275
+ version
276
+ };
277
+ var DappPayloads = [CustomDappConfig, CustomDappIcon];
278
+ var CustomDappMenuItems = [
279
+ {
280
+ path: "home",
281
+ primaryText: "Home",
282
+ schema: DappNavItemSchema,
283
+ svgIcon: `
284
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24" fill="none"><path fill="currentColor" d="M420-360h120l-23-129q20-10 31.5-29t11.5-42q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 23 11.5 42t31.5 29l-23 129Zm60 280q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"/></svg>
285
+ `,
286
+ weight: 0
287
+ },
288
+ {
289
+ path: "settings",
290
+ primaryText: "Settings",
291
+ schema: DappNavItemSchema,
292
+ svgIcon: `
293
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24" fill="none"><path fill="currentColor" d="M420-360h120l-23-129q20-10 31.5-29t11.5-42q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 23 11.5 42t31.5 29l-23 129Zm60 280q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"/></svg>
294
+ `,
295
+ weight: 0
296
+ }
297
+ ];
298
+ var CustomDappMenuConfig = {
299
+ defaultPath: "home",
300
+ schema: DappNavMenuConfigSchema
301
+ };
302
+ var CustomDappMenuPayloads = [...CustomDappMenuItems, CustomDappMenuConfig];
303
+
304
+ // src/Dapp.tsx
305
+ import { ErrorRender } from "@xylabs/react-error";
306
+ import { DappPathSwitcher, useAddDappMenuItems } from "@xyo-network/os-react-runtime";
307
+
308
+ // src/CustomDappPathToComponent.tsx
309
+ import { FlexRow } from "@xylabs/react-flexbox";
310
+ import { jsx as jsx5 } from "react/jsx-runtime";
311
+ var CustomDappPathToComponent = [
312
+ {
313
+ component: /* @__PURE__ */ jsx5(FlexRow, {}),
314
+ path: "home"
315
+ }
316
+ ];
317
+
318
+ // src/Dapp.tsx
319
+ import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
320
+ var CustomDapp = () => {
321
+ const {
322
+ menuConfig,
323
+ path,
324
+ error
325
+ } = useAddDappMenuItems(CustomDappMenuPayloads);
326
+ return /* @__PURE__ */ jsxs4(Fragment, { children: [
327
+ /* @__PURE__ */ jsx6(ErrorRender, { error, scope: "CustomDapp" }),
328
+ /* @__PURE__ */ jsx6(DappPathSwitcher, { activePath: path?.path ?? menuConfig?.defaultPath, pathToComponent: CustomDappPathToComponent })
329
+ ] });
330
+ };
331
+
332
+ // src/UiParams.ts
333
+ var CustomDappUiParams = {
334
+ ...CustomDappParams,
335
+ modes: { window: { component: CustomDapp } }
336
+ };
337
+ export {
338
+ CustomDappConfig,
339
+ CustomDappIcon,
340
+ CustomDappMenuPayloads,
341
+ CustomDappName,
342
+ CustomDappParams,
343
+ CustomDappUiParams,
344
+ DappHost,
345
+ DappHostInner,
346
+ DappPayloads,
347
+ DappRoutes,
348
+ RoutableDapp,
349
+ XyOsHost,
350
+ dapp_manifest_default as accountsDappManifest,
351
+ useInitializeDappAdHoc
352
+ };
353
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/host/DappHost.tsx", "../../src/helpers/registration/useInitializeDappAdHoc.tsx", "../../src/components/host/XyOsHost.tsx", "../../src/components/host/Routable.tsx", "../../src/components/host/Routes.tsx", "../../src/dapp.manifest.json", "../../src/Params.ts", "../../src/icon/Icon.tsx", "../../src/Payloads.ts", "../../src/Dapp.tsx", "../../src/CustomDappPathToComponent.tsx", "../../src/UiParams.ts"],
4
+ "sourcesContent": ["import { FlexCol } from '@xylabs/react-flexbox'\nimport type { RegisteredReactDapp } from '@xyo-network/os-react-model'\nimport { DappRendered } from '@xyo-network/os-react-runtime'\nimport React from 'react'\n\nimport { useInitializeDappAdHoc } from '../../helpers/index.ts'\nimport { XyOsHost } from './XyOsHost.tsx'\n\nexport interface DappHostProps {\n dapp: RegisteredReactDapp\n}\n\nexport const DappHostInner: React.FC<DappHostProps> = ({ dapp }) => {\n const {\n context, dappMenu, dappState, dappWallet, errors,\n } = useInitializeDappAdHoc(dapp)\n\n return (\n <FlexCol>\n <DappRendered\n context={context}\n dapp={dapp}\n dappMenuProperties={dappMenu}\n dappState={dappState}\n dappWallet={dappWallet}\n errors={errors}\n />\n </FlexCol>\n )\n}\n\nexport const DappHost: React.FC<DappHostProps> = ({ dapp }) => (\n <XyOsHost>\n <DappHostInner dapp={dapp} />\n </XyOsHost>\n)\n", "import { usePromise } from '@xylabs/react-promise'\nimport type { RegisteredReactDapp } from '@xyo-network/os-react-model'\nimport {\n useDappMenu, useManageDappInjectableParamsFromRoute, useManageDappPathFromRoute, useXyOsUiContext,\n} from '@xyo-network/os-react-runtime'\nimport { DappInitializer } from '@xyo-network/os-runtime'\n\nconst dappState = {\n active: true, minimized: false, closed: false,\n}\n\nexport const useInitializeDappAdHoc = (dapp: RegisteredReactDapp) => {\n const xyOs = useXyOsUiContext()\n\n const [installedDapp, nodeCreateError] = usePromise(async () => {\n if (xyOs && dapp) {\n const installer = new DappInitializer({\n allowedNames: [dapp.config.name],\n dapp,\n xnsNetwork: undefined,\n xnsNodeUrl: undefined,\n xyOs,\n })\n return await installer.install()\n }\n }, [xyOs, dapp])\n\n const { dappWallet, context } = installedDapp ?? {}\n\n // support for routing\n const routingError = useManageDappPathFromRoute(context, dapp.config.name)\n const injectableErrors = useManageDappInjectableParamsFromRoute(context)\n\n const dappMenu = useDappMenu(context, dapp.config.name)\n\n return {\n context,\n dappMenu,\n dappState,\n dappWallet,\n errors: [routingError, nodeCreateError, ...injectableErrors].filter(Boolean),\n }\n}\n", "import { Typography } from '@mui/material'\nimport { FlexCol } from '@xylabs/react-flexbox'\nimport { usePromise } from '@xylabs/react-promise'\nimport { Kernel } from '@xyo-network/kernel'\nimport type { KernelExternal } from '@xyo-network/kernel-model'\nimport { XyOsUiContextProvider } from '@xyo-network/os-react-runtime'\nimport { EventBus, XyOs } from '@xyo-network/os-runtime'\nimport { HDWallet, ModuleFactoryLocator } from '@xyo-network/sdk-js'\nimport type { WalletInstance } from '@xyo-network/wallet-model'\nimport React, { useMemo } from 'react'\n\nexport interface XyOsHostProps {\n children?: React.ReactNode\n eventBus?: EventBus\n kernel?: KernelExternal\n locator?: ModuleFactoryLocator\n wallet?: WalletInstance\n}\n\nexport const XyOsHost: React.FC<XyOsHostProps> = ({\n children, eventBus, kernel, locator, wallet,\n}) => {\n const [walletToUse] = usePromise(async () => wallet ?? await HDWallet.random(), [wallet])\n const eventBusToUse: EventBus = useMemo(() => eventBus ?? new EventBus(), [kernel])\n const kernelToUse: KernelExternal = useMemo(() => kernel ?? new Kernel(), [kernel])\n const locatorToUse = useMemo(() => locator ?? new ModuleFactoryLocator(), [locator])\n\n const [os, error] = usePromise(async () => {\n if (walletToUse && kernelToUse && eventBusToUse && locatorToUse) {\n const os = new XyOs({\n kernel: kernelToUse, eventBus: new EventBus(), locator: locatorToUse,\n })\n await os.boot(walletToUse, locatorToUse)\n return os\n }\n }, [kernelToUse, walletToUse, locator, eventBusToUse, locatorToUse])\n\n return os\n ? <XyOsUiContextProvider value={os}>{children}</XyOsUiContextProvider>\n : (\n <FlexCol>\n <Typography>\n wallet:\n {walletToUse ? 'ready' : 'loading'}\n </Typography>\n <Typography>\n kernel:\n {kernelToUse ? 'ready' : 'loading'}\n </Typography>\n <Typography>\n os:\n {os ? 'ready' : 'loading'}\n </Typography>\n <Typography>\n os-error:\n {error?.message}\n </Typography>\n </FlexCol>\n )\n}\n", "import React from 'react'\nimport { BrowserRouter } from 'react-router-dom'\n\nimport type { DappHostProps } from './DappHost.tsx'\nimport { DappHost } from './DappHost.tsx'\nimport { DappRoutes } from './Routes.tsx'\n\nexport const RoutableDapp: React.FC<DappHostProps> = ({ dapp }) => {\n return (\n <BrowserRouter>\n <DappRoutes dapp={dapp} />\n <DappHost dapp={dapp} />\n </BrowserRouter>\n )\n}\n", "import React from 'react'\nimport { Route, Routes } from 'react-router-dom'\n\nimport { DappHost, type DappHostProps } from './DappHost.tsx'\n\nexport const DappRoutes: React.FC<DappHostProps> = args => (\n <Routes>\n <Route\n path=\"/\"\n element={(\n <DappHost {...args} />\n )}\n />\n <Route\n path=\"/:dappName\"\n element={(\n <DappHost {...args} />\n )}\n />\n <Route\n path=\"/:dappName/:path/*\"\n element={(\n <DappHost {...args} />\n )}\n />\n <Route\n path=\"*\"\n element={(\n <DappHost {...args} />\n )}\n />\n </Routes>\n)\n", "{\n \"$schema\": \"https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/compilations/dapp-package-manifest-schema.json\",\n \"nodes\": [\n {\n \"config\": {\n \"accountPath\": \"0'\",\n \"name\": \"CustomDappNode\",\n \"schema\": \"network.xyo.node.config\"\n },\n \"modules\": {\n \"private\": [],\n \"public\": [\n {\n \"config\": {\n \"accountPath\": \"1'\",\n \"name\": \"DappArchivist\",\n \"schema\": \"network.xyo.archivist.config\"\n }\n }\n ]\n }\n }\n ],\n \"schema\": \"network.xyo.manifest.package.dapp\"\n}", "import type { UnregisteredDapp } from '@xyo-network/os-model'\nimport { ModuleFactoryLocator } from '@xyo-network/sdk-js'\n\nimport { CustomDappIconSvg } from './icon/index.ts'\n\nconst locator = new ModuleFactoryLocator()\n\nexport const CustomDappParams: UnregisteredDapp['params'] = {\n iconSvg: CustomDappIconSvg,\n locator,\n}\n\nexport default CustomDappParams\n", "/* eslint-disable @stylistic/max-len */\nexport const CustomDappIconSvg = `\n<svg id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\">\n <path\n fill=\"transparent\"\n d=\"M6.44,27.12c-.78,0-1.44.28-2,.83-.55.55-.83,1.21-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83Z\"\n />\n <path\n fill=\"transparent\"\n d=\"M18.01,27.91c-.55.55-.83,1.22-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83s-1.44.28-2,.83Z\"\n />\n <path\n fill=\"transparent\"\n d=\"M33.56,27.12c-.78,0-1.44.28-2,.83-.55.55-.83,1.21-.83,1.99s.28,1.44.83,2c.55.55,1.21.83,1.99.83s1.44-.28,2-.83c.55-.55.83-1.21.83-1.99s-.28-1.44-.83-2c-.55-.55-1.21-.83-1.99-.83Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M36.55,26.94c-.82-.82-1.82-1.23-3-1.23-.32,0-.63.04-.93.11-.3.07-.59.17-.87.31l-5.87-8.09c-.18.03-.36.05-.56.05h-1.13l6.42,8.83c-.39.4-.7.85-.93,1.36-.23.51-.35,1.06-.35,1.66,0,1.18.41,2.17,1.23,3s1.82,1.23,3,1.23,2.17-.41,3-1.23,1.23-1.82,1.23-3-.41-2.17-1.23-3ZM35.55,31.93c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M19.29,25.73c-1,.16-1.84.64-2.52,1.42-.67.79-1.01,1.7-1.01,2.75,0,1.18.41,2.17,1.23,3,.82.82,1.82,1.23,3,1.23s2.17-.41,3-1.23c.82-.82,1.23-1.82,1.23-3,0-1.05-.34-1.97-1.01-2.74-.67-.78-1.51-1.25-2.52-1.43v-7.65h-1.41v7.65ZM22,27.91c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M14.1,18l-5.89,8.08c-.28-.13-.56-.22-.86-.28-.29-.06-.6-.09-.91-.09-1.18,0-2.17.41-3,1.23-.82.82-1.23,1.82-1.23,3s.41,2.17,1.23,3,1.82,1.23,3,1.23,2.17-.41,3-1.23,1.23-1.82,1.23-3c0-.6-.12-1.15-.36-1.66s-.56-.96-.95-1.36l6.45-8.83h-1c-.25,0-.48-.03-.7-.08ZM8.44,31.93c-.55.55-1.22.83-2,.83s-1.44-.28-1.99-.83c-.55-.55-.83-1.22-.83-2s.28-1.44.83-1.99c.55-.55,1.22-.83,2-.83s1.44.28,1.99.83c.55.55.83,1.22.83,2s-.28,1.44-.83,1.99Z\"\n />\n <path\n fill=\"transparent\"\n d=\"M20,12.91c1.26,0,2.46.19,3.61.56,1.15.37,2.23.88,3.23,1.54V4.86c0-.44-.15-.82-.46-1.12s-.68-.46-1.12-.46h-10.52c-.44,0-.82.15-1.12.46s-.46.68-.46,1.12v10.15c1-.66,2.08-1.17,3.23-1.54s2.36-.56,3.61-.56ZM17.7,5.83c.63-.63,1.4-.95,2.3-.95s1.66.32,2.3.95.95,1.4.95,2.3-.32,1.66-.95,2.3-1.4.95-2.3.95-1.66-.32-2.3-.95-.95-1.4-.95-2.3.32-1.66.95-2.3Z\"\n />\n <path\n fill=\"transparent\"\n d=\"M20,10.32c.6,0,1.12-.21,1.55-.64.43-.43.65-.94.65-1.55s-.22-1.12-.65-1.55c-.43-.43-.95-.65-1.55-.65s-1.12.22-1.55.65-.64.95-.64,1.55.21,1.12.64,1.55.94.64,1.55.64Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M20,11.37c.9,0,1.66-.32,2.3-.95s.95-1.4.95-2.3-.32-1.66-.95-2.3-1.4-.95-2.3-.95-1.66.32-2.3.95-.95,1.4-.95,2.3.32,1.66.95,2.3,1.4.95,2.3.95ZM18.45,6.58c.43-.43.95-.65,1.55-.65s1.12.22,1.55.65c.43.43.65.95.65,1.55s-.22,1.12-.65,1.55c-.43.43-.95.64-1.55.64s-1.12-.21-1.55-.64-.64-.95-.64-1.55.21-1.12.64-1.55Z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M27.21,2.9c-.5-.5-1.15-.75-1.95-.75h-10.52c-.8,0-1.45.25-1.95.75-.5.5-.75,1.15-.75,1.95v10.52c0,.8.25,1.45.75,1.95.35.35.77.56,1.25.67.22.05.45.08.7.08h10.52c.2,0,.38-.02.56-.05.55-.09,1.01-.33,1.39-.71.5-.5.75-1.15.75-1.95V4.86c0-.8-.25-1.45-.75-1.95ZM25.93,16.74c-.26.14-.55.22-.86.22h-10.15s-.08-.01-.12-.01c-.25-.02-.5-.08-.74-.2-.28-.14-.45-.35-.5-.63.99-.7,2.03-1.22,3.12-1.57s2.19-.52,3.31-.52,2.27.18,3.4.55c1.13.36,2.18.88,3.16,1.54-.15.27-.36.48-.63.63ZM26.84,15.01c-1-.66-2.08-1.17-3.23-1.54-1.15-.37-2.36-.56-3.61-.56s-2.46.19-3.61.56-2.23.88-3.23,1.54V4.86c0-.44.15-.82.46-1.12s.68-.46,1.12-.46h10.52c.44,0,.82.15,1.12.46s.46.68.46,1.12v10.15Z\"\n />\n </svg>\n `\n", "/* eslint-disable @stylistic/max-len */\nimport type {\n DappConfig,\n DappIcon,\n DappName,\n DappNavItem,\n DappNavMenuConfig,\n DappPackageManifestPayload,\n DappVersion,\n} from '@xyo-network/os-model'\nimport {\n DappConfigSchema,\n DappIconSchema,\n DappMode,\n DappNavItemSchema,\n DappNavMenuConfigSchema,\n} from '@xyo-network/os-model'\n\nimport dappManifest from './dapp.manifest.json' with { type: 'json' }\n\nexport const CustomDappName: DappName = 'Custom Dapp' as const\n\nconst version: DappVersion = '1.0.0'\n\nexport const CustomDappConfig: DappConfig = {\n manifest: dappManifest as unknown as DappPackageManifestPayload,\n modes: [DappMode.Window],\n name: CustomDappName,\n schema: DappConfigSchema,\n sources: ['network.xyo.dapp.accounts.source'],\n version,\n}\n\nexport const CustomDappIcon: DappIcon = {\n active: false,\n installed: 'installed',\n name: CustomDappName,\n schema: DappIconSchema,\n type: 'system',\n version,\n}\n\nexport const DappPayloads = [CustomDappConfig, CustomDappIcon]\n\nexport type CustomDappMenuItemPaths = 'home' | 'settings'\n\nconst CustomDappMenuItems: DappNavItem<CustomDappMenuItemPaths>[] = [\n {\n path: 'home',\n primaryText: 'Home',\n schema: DappNavItemSchema,\n svgIcon: `\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\" fill=\"none\"><path fill=\"currentColor\" d=\"M420-360h120l-23-129q20-10 31.5-29t11.5-42q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 23 11.5 42t31.5 29l-23 129Zm60 280q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z\"/></svg>\n `,\n weight: 0,\n },\n {\n path: 'settings',\n primaryText: 'Settings',\n schema: DappNavItemSchema,\n svgIcon: `\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\" fill=\"none\"><path fill=\"currentColor\" d=\"M420-360h120l-23-129q20-10 31.5-29t11.5-42q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 23 11.5 42t31.5 29l-23 129Zm60 280q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z\"/></svg>\n `,\n weight: 0,\n },\n]\n\nconst CustomDappMenuConfig: DappNavMenuConfig = {\n defaultPath: 'home',\n schema: DappNavMenuConfigSchema,\n}\n\nexport const CustomDappMenuPayloads = [...CustomDappMenuItems, CustomDappMenuConfig]\n", "import { ErrorRender } from '@xylabs/react-error'\nimport { DappPathSwitcher, useAddDappMenuItems } from '@xyo-network/os-react-runtime'\nimport React from 'react'\n\nimport { CustomDappPathToComponent } from './CustomDappPathToComponent.tsx'\nimport { CustomDappMenuPayloads } from './Payloads.ts'\n\nexport const CustomDapp = () => {\n const {\n menuConfig, path, error,\n } = useAddDappMenuItems(CustomDappMenuPayloads)\n\n return (\n <>\n <ErrorRender error={error} scope=\"CustomDapp\" />\n <DappPathSwitcher activePath={path?.path ?? menuConfig?.defaultPath} pathToComponent={CustomDappPathToComponent} />\n </>\n )\n}\n", "import { FlexRow } from '@xylabs/react-flexbox'\nimport type { PathToComponent } from '@xyo-network/os-react-runtime'\nimport React from 'react'\n\nexport const CustomDappPathToComponent: PathToComponent[] = [\n {\n component: <FlexRow />,\n path: 'home',\n },\n]\n", "import type { UnregisteredReactDapp } from '@xyo-network/os-react-model'\n\nimport { CustomDapp } from './Dapp.tsx'\nimport { CustomDappParams } from './Params.ts'\n\nexport const CustomDappUiParams: UnregisteredReactDapp['params'] = {\n ...CustomDappParams,\n modes: { window: { component: CustomDapp } },\n}\n\nexport default CustomDappUiParams\n"],
5
+ "mappings": ";AAAA,SAAS,WAAAA,gBAAe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;AAAA;AAAA,IAGT,QAAQ;AAAA,EACV;AACF;AAEA,IAAM,uBAA0C;AAAA,EAC9C,aAAa;AAAA,EACb,QAAQ;AACV;AAEO,IAAM,yBAAyB,CAAC,GAAG,qBAAqB,oBAAoB;;;ACxEnF,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB,2BAA2B;;;ACDtD,SAAS,eAAe;AAMT,gBAAAC,YAAA;AAFR,IAAM,4BAA+C;AAAA,EAC1D;AAAA,IACE,WAAW,gBAAAA,KAAC,WAAQ;AAAA,IACpB,MAAM;AAAA,EACR;AACF;;;ADII,mBACE,OAAAC,MADF,QAAAC,aAAA;AANG,IAAM,aAAa,MAAM;AAC9B,QAAM;AAAA,IACJ;AAAA,IAAY;AAAA,IAAM;AAAA,EACpB,IAAI,oBAAoB,sBAAsB;AAE9C,SACE,gBAAAA,MAAA,YACE;AAAA,oBAAAD,KAAC,eAAY,OAAc,OAAM,cAAa;AAAA,IAC9C,gBAAAA,KAAC,oBAAiB,YAAY,MAAM,QAAQ,YAAY,aAAa,iBAAiB,2BAA2B;AAAA,KACnH;AAEJ;;;AEbO,IAAM,qBAAsD;AAAA,EACjE,GAAG;AAAA,EACH,OAAO,EAAE,QAAQ,EAAE,WAAW,WAAW,EAAE;AAC7C;",
6
+ "names": ["FlexCol", "usePromise", "locator", "os", "jsx", "dappState", "FlexCol", "jsx", "jsxs", "jsx", "jsxs", "ModuleFactoryLocator", "ModuleFactoryLocator", "jsx", "jsx", "jsxs"]
7
+ }
@@ -0,0 +1,3 @@
1
+ import type { PathToComponent } from '@xyo-network/os-react-runtime';
2
+ export declare const CustomDappPathToComponent: PathToComponent[];
3
+ //# sourceMappingURL=CustomDappPathToComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDappPathToComponent.d.ts","sourceRoot":"","sources":["../../src/CustomDappPathToComponent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAGpE,eAAO,MAAM,yBAAyB,EAAE,eAAe,EAKtD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const CustomDapp: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Dapp.d.ts.map