Compare commits

..

No commits in common. 'master' and 'refactor-wallet' have entirely different histories.

  1. 1
      helpers/app-auth/package.json
  2. 1
      helpers/net-auth/package.json
  3. 14
      helpers/nextgraph-react/package.json
  4. 2
      helpers/nextgraph-react/src/createBrowserNGReactMethods.tsx
  5. 2
      helpers/nextgraph-react/src/createNextGraphAuthMethods.tsx
  6. 2
      ng-app/package.json
  7. 4
      ng-app/src/routes/WalletCreate.svelte
  8. 65
      pnpm-lock.yaml

@ -17,6 +17,7 @@
"svelte-i18n": "^4.0.0", "svelte-i18n": "^4.0.0",
"@nextgraph-monorepo/common": "workspace:*", "@nextgraph-monorepo/common": "workspace:*",
"@nextgraph-monorepo/app-api-web": "workspace:*", "@nextgraph-monorepo/app-api-web": "workspace:*",
"@nextgraph-monorepo/wasm-tools-auth": "workspace:*",
"remote-web-streams": "^0.2.0" "remote-web-streams": "^0.2.0"
}, },
"devDependencies": { "devDependencies": {

@ -16,6 +16,7 @@
"@tailwindcss/typography": "^0.5.13", "@tailwindcss/typography": "^0.5.13",
"svelte-i18n": "^4.0.0", "svelte-i18n": "^4.0.0",
"@nextgraph-monorepo/common": "workspace:*", "@nextgraph-monorepo/common": "workspace:*",
"@nextgraph-monorepo/wasm-tools-auth": "workspace:*",
"async-proxy": "^0.4.1", "async-proxy": "^0.4.1",
"remote-web-streams": "^0.2.0" "remote-web-streams": "^0.2.0"
}, },

@ -1,7 +1,7 @@
{ {
"name": "@ng-org/auth-react", "name": "nextgraph-react",
"version": "0.1.2-alpha.1", "version": "0.1.1-alpha.3",
"description": "React Auth library for LDO and NextGraph", "description": "A React library for LDO and NextGraph",
"type": "module", "type": "module",
"module": "./dist/esm/index.js", "module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts", "types": "./dist/types/index.d.ts",
@ -42,10 +42,10 @@
"typescript": "^5.2.2" "typescript": "^5.2.2"
}, },
"dependencies": { "dependencies": {
"@ldo/connected": "1.0.0-alpha.15", "@ldo/connected": "^1.0.0-alpha.15",
"@ldo/connected-nextgraph": "1.0.0-alpha.15", "@ldo/connected-nextgraph": "^1.0.0-alpha.15",
"@ng-org/web": "0.1.2-alpha.1", "nextgraphweb": "^0.1.1-alpha.4",
"@ldo/react": "1.0.0-alpha.15", "@ldo/react": "^1.0.0-alpha.15",
"@rdfjs/data-model": "^1.2.0", "@rdfjs/data-model": "^1.2.0",
"cross-fetch": "^3.1.6" "cross-fetch": "^3.1.6"
}, },

@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useMemo, useState } from "react";
import type { FunctionComponent, PropsWithChildren } from "react"; import type { FunctionComponent, PropsWithChildren } from "react";
import { NextGraphAuthContext, useNextGraphAuth } from "./NextGraphAuthContext.js"; import { NextGraphAuthContext, useNextGraphAuth } from "./NextGraphAuthContext.js";
import {ng, init} from "@ng-org/web"; import {default as ng, init} from "nextgraphweb";
import type { ConnectedLdoDataset, ConnectedPlugin } from "@ldo/connected"; import type { ConnectedLdoDataset, ConnectedPlugin } from "@ldo/connected";
import type { NextGraphConnectedPlugin, NextGraphConnectedContext } from "@ldo/connected-nextgraph"; import type { NextGraphConnectedPlugin, NextGraphConnectedContext } from "@ldo/connected-nextgraph";

@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useMemo, useState } from "react";
import type { FunctionComponent, PropsWithChildren } from "react"; import type { FunctionComponent, PropsWithChildren } from "react";
import { NextGraphAuthContext, useNextGraphAuth } from "./NextGraphAuthContext.js"; import { NextGraphAuthContext, useNextGraphAuth } from "./NextGraphAuthContext.js";
import type { NextGraphConnectedContext } from "@ldo/connected-nextgraph"; import type { NextGraphConnectedContext } from "@ldo/connected-nextgraph";
import {ng, init} from "@ng-org/web"; import {default as ng, init} from "nextgraphweb";
/** /**
* Creates special react methods specific to the NextGraph Auth * Creates special react methods specific to the NextGraph Auth

@ -8,8 +8,6 @@
"webdev": "shx cp index-web.html index.html && cross-env NG_APP_WEB=1 NG_PUBLIC_DEV=1 TAURI_DEBUG=1 vite", "webdev": "shx cp index-web.html index.html && cross-env NG_APP_WEB=1 NG_PUBLIC_DEV=1 TAURI_DEBUG=1 vite",
"webbuild": "shx cp index-web.html index.html && cross-env NG_APP_WEB=1 vite build && shx rm -f ./dist-web/assets/*.svg && tar --exclude .DS_Store -zcvf dist-web.tar.gz dist-web", "webbuild": "shx cp index-web.html index.html && cross-env NG_APP_WEB=1 vite build && shx rm -f ./dist-web/assets/*.svg && tar --exclude .DS_Store -zcvf dist-web.tar.gz dist-web",
"webfilebuild": "shx cp index-web.html index.html && cross-env NG_APP_WEB=1 NG_APP_FILE=1 vite build && node prepare-app-file.cjs && shx rm -rf ./dist-file/assets && tar --exclude .DS_Store -zcvf dist-file.tar.gz dist-file", "webfilebuild": "shx cp index-web.html index.html && cross-env NG_APP_WEB=1 NG_APP_FILE=1 vite build && node prepare-app-file.cjs && shx rm -rf ./dist-file/assets && tar --exclude .DS_Store -zcvf dist-file.tar.gz dist-file",
"webfilebuilddev": "shx cp index-web.html index.html && cross-env NG_DEV=1 NG_APP_WEB=1 NG_APP_FILE=1 vite build && node prepare-app-file.cjs && shx rm -rf ./dist-file/assets && tar --exclude .DS_Store -zcvf dist-file.tar.gz dist-file",
"webfilebuilddev3": "shx cp index-web.html index.html && cross-env NG_DEV3=1 NG_APP_WEB=1 NG_APP_FILE=1 vite build && node prepare-app-file.cjs && shx rm -rf ./dist-file/assets && tar --exclude .DS_Store -zcvf dist-file.tar.gz dist-file",
"webfilebuilddebug": "shx cp index-web.html index.html && cross-env NG_APP_WEB=1 NG_APP_FILE=1 TAURI_DEBUG=1 vite build -m debug", "webfilebuilddebug": "shx cp index-web.html index.html && cross-env NG_APP_WEB=1 NG_APP_FILE=1 TAURI_DEBUG=1 vite build -m debug",
"build": "shx cp index-native.html index.html && vite build && shx rm -f ./dist/assets/*.svg", "build": "shx cp index-native.html index.html && vite build && shx rm -f ./dist/assets/*.svg",
"buildfile": "shx cp index-native.html index.html && cross-env NG_APP_FILE=1 vite build && shx rm -rf ./dist/assets && tar --exclude .DS_Store -zcvf dist.tar.gz dist", "buildfile": "shx cp index-native.html index.html && cross-env NG_APP_FILE=1 vite build && shx rm -rf ./dist/assets && tar --exclude .DS_Store -zcvf dist.tar.gz dist",

@ -210,9 +210,9 @@
? "http://localhost:14403/#/?b=" ? "http://localhost:14403/#/?b="
: import.meta.env.NG_DEV : import.meta.env.NG_DEV
? "http://localhost:1421/bootstrap.html#/?b=" ? "http://localhost:1421/bootstrap.html#/?b="
: import.meta.env.NG_DEV3
? "http://127.0.0.1:3033/bootstrap/#/?b="
: `https://${redirect_server}/bootstrap/#/?b=`; : `https://${redirect_server}/bootstrap/#/?b=`;
// to test ngnet
//const bootstrap_redirect = "http://127.0.0.1:3033/bootstrap/#/?b=";
async function bootstrap() { async function bootstrap() {
//console.log(await ng.client_info()); //console.log(await ng.client_info());

@ -170,6 +170,9 @@ importers:
'@nextgraph-monorepo/common': '@nextgraph-monorepo/common':
specifier: workspace:* specifier: workspace:*
version: link:../../common version: link:../../common
'@nextgraph-monorepo/wasm-tools-auth':
specifier: workspace:*
version: link:../wasm-tools/pkg
'@tailwindcss/typography': '@tailwindcss/typography':
specifier: ^0.5.13 specifier: ^0.5.13
version: 0.5.16(tailwindcss@3.4.17) version: 0.5.16(tailwindcss@3.4.17)
@ -243,6 +246,9 @@ importers:
'@nextgraph-monorepo/common': '@nextgraph-monorepo/common':
specifier: workspace:* specifier: workspace:*
version: link:../../common version: link:../../common
'@nextgraph-monorepo/wasm-tools-auth':
specifier: workspace:*
version: link:../wasm-tools/pkg
'@tailwindcss/typography': '@tailwindcss/typography':
specifier: ^0.5.13 specifier: ^0.5.13
version: 0.5.16(tailwindcss@3.4.17) version: 0.5.16(tailwindcss@3.4.17)
@ -342,23 +348,23 @@ importers:
helpers/nextgraph-react: helpers/nextgraph-react:
dependencies: dependencies:
'@ldo/connected': '@ldo/connected':
specifier: 1.0.0-alpha.15 specifier: ^1.0.0-alpha.15
version: 1.0.0-alpha.15 version: 1.0.0-alpha.28
'@ldo/connected-nextgraph': '@ldo/connected-nextgraph':
specifier: 1.0.0-alpha.15 specifier: ^1.0.0-alpha.15
version: 1.0.0-alpha.15 version: 1.0.0-alpha.28
'@ldo/react': '@ldo/react':
specifier: 1.0.0-alpha.15 specifier: ^1.0.0-alpha.15
version: 1.0.0-alpha.15 version: 1.0.0-alpha.28
'@ng-org/web':
specifier: 0.1.2-alpha.1
version: 0.1.2-alpha.1
'@rdfjs/data-model': '@rdfjs/data-model':
specifier: ^1.2.0 specifier: ^1.2.0
version: 1.3.4 version: 1.3.4
cross-fetch: cross-fetch:
specifier: ^3.1.6 specifier: ^3.1.6
version: 3.2.0 version: 3.2.0
nextgraphweb:
specifier: ^0.1.1-alpha.4
version: 0.1.1-alpha.4
devDependencies: devDependencies:
'@babel/core': '@babel/core':
specifier: ^7.26.10 specifier: ^7.26.10
@ -496,6 +502,8 @@ importers:
specifier: ^2.2.1 specifier: ^2.2.1
version: 2.2.1(svelte@3.59.2)(vite@4.5.9(@types/node@18.19.76)(sass@1.85.0)) version: 2.2.1(svelte@3.59.2)(vite@4.5.9(@types/node@18.19.76)(sass@1.85.0))
helpers/wasm-tools/pkg: {}
ng-app: ng-app:
dependencies: dependencies:
'@automerge/automerge': '@automerge/automerge':
@ -2013,11 +2021,11 @@ packages:
'@jridgewell/trace-mapping@0.3.29': '@jridgewell/trace-mapping@0.3.29':
resolution: {integrity: sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==} resolution: {integrity: sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==}
'@ldo/connected-nextgraph@1.0.0-alpha.15': '@ldo/connected-nextgraph@1.0.0-alpha.28':
resolution: {integrity: sha512-NBnUqk7l5BbsVx1kb/rWRcLx4xpstpRFJIV6BLMDTL7Rv+t3MQRwzGQvdvGPgUgQa1TKkcY3rPpochsNzH+cYg==} resolution: {integrity: sha512-EFkm944rL9gFY3NJ5RBR2a9F1WF87A/zK9j8Q40nVF4qU6Mi4svy26GjElGZdMZmpc4Q0eTBqOmuCuf9wQzbNQ==}
'@ldo/connected@1.0.0-alpha.15': '@ldo/connected@1.0.0-alpha.28':
resolution: {integrity: sha512-B+L8HDozIiuufmqWBrOGwJOkpsrhtPUuibaEhFjM8kO9NHP0hJxxPBMdRYxGVgL5AOla0YOVfUk075KKtVhIjA==} resolution: {integrity: sha512-T7gRGtf+pb5uV0dv0zL0S84TjOJALcMnJ23kt9MZe49CP6ZpO44gzgjEOkDvuTQf9T6R/NS1JFVDGazaN48q+g==}
'@ldo/dataset@1.0.0-alpha.28': '@ldo/dataset@1.0.0-alpha.28':
resolution: {integrity: sha512-pxhAig41HczKyjnfnT+wgBhVBFqTHVVhv0ijWSuUEortYDrnXDTGWKZp+KV9ORrIUQ1AObfbOhl8cH4fncJfVw==} resolution: {integrity: sha512-pxhAig41HczKyjnfnT+wgBhVBFqTHVVhv0ijWSuUEortYDrnXDTGWKZp+KV9ORrIUQ1AObfbOhl8cH4fncJfVw==}
@ -2031,8 +2039,8 @@ packages:
'@ldo/rdf-utils@1.0.0-alpha.28': '@ldo/rdf-utils@1.0.0-alpha.28':
resolution: {integrity: sha512-qNhUeVdX0GSGd0sl3PDLiWsZufmJgy3PcGhYna96BmU7S/b9A/82vDeHWJ+hTMV+2s6ywdwyUY4xIoG8ODN36w==} resolution: {integrity: sha512-qNhUeVdX0GSGd0sl3PDLiWsZufmJgy3PcGhYna96BmU7S/b9A/82vDeHWJ+hTMV+2s6ywdwyUY4xIoG8ODN36w==}
'@ldo/react@1.0.0-alpha.15': '@ldo/react@1.0.0-alpha.28':
resolution: {integrity: sha512-KPruUI4zTLWtmwNjzeeRbQD+qA8RojGEVyFbGa+RH1dfrVXnOpUkGHXvJJiVWqiL4DS9y5c3m12uyVTS3GAcuA==} resolution: {integrity: sha512-yawM3/m6kK1WRtAQSP9Yn5tC2zNUtFKojucgVdlF0jvwPhhXymgIBXNUBf0VpMAv6MkkCt4AwLOU51XMmrZhyA==}
'@ldo/subscribable-dataset@1.0.0-alpha.28': '@ldo/subscribable-dataset@1.0.0-alpha.28':
resolution: {integrity: sha512-QFZbSOEXSgQt4bj5piCSoeJbMXhmeFAqA6CDoMPZgHmnA3pU5AlunznHt4iBs3w6SJj0ue2lynQn7b7ZXgh7Lg==} resolution: {integrity: sha512-QFZbSOEXSgQt4bj5piCSoeJbMXhmeFAqA6CDoMPZgHmnA3pU5AlunznHt4iBs3w6SJj0ue2lynQn7b7ZXgh7Lg==}
@ -2190,9 +2198,6 @@ packages:
'@milkdown/prose': ^7.2.0 '@milkdown/prose': ^7.2.0
'@milkdown/transformer': ^7.2.0 '@milkdown/transformer': ^7.2.0
'@ng-org/web@0.1.2-alpha.1':
resolution: {integrity: sha512-V2OSaEvuGFJZMAF1Yof6Rr45mQ/Ezhq6A9oea+v7RVsTmvQHHObK7JAf4LS/JWiXDD6GX0NOTRtfSQZYLgIHAw==}
'@nodelib/fs.scandir@2.1.5': '@nodelib/fs.scandir@2.1.5':
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
@ -4206,6 +4211,9 @@ packages:
next-tick@1.1.0: next-tick@1.1.0:
resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==}
nextgraphweb@0.1.1-alpha.4:
resolution: {integrity: sha512-2vX7+VAx7pp+iJG/KrzWJhzwgur04WdZegkjAOQHCSpVa5Q+3CYN+Jyo3A+BHjpXJmr/jWyVZRJr/K/lRXhnfg==}
node-addon-api@7.1.1: node-addon-api@7.1.1:
resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==}
@ -6520,22 +6528,21 @@ snapshots:
'@jridgewell/resolve-uri': 3.1.2 '@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0
'@ldo/connected-nextgraph@1.0.0-alpha.15': '@ldo/connected-nextgraph@1.0.0-alpha.28':
dependencies: dependencies:
'@ldo/connected': 1.0.0-alpha.15 '@ldo/connected': 1.0.0-alpha.28
'@ldo/dataset': 1.0.0-alpha.28 '@ldo/dataset': 1.0.0-alpha.28
'@ldo/ldo': 1.0.0-alpha.28 '@ldo/ldo': 1.0.0-alpha.28
'@ldo/rdf-utils': 1.0.0-alpha.28 '@ldo/rdf-utils': 1.0.0-alpha.28
'@solid-notifications/subscription': 0.1.2 '@solid-notifications/subscription': 0.1.2
cross-fetch: 3.2.0 cross-fetch: 3.2.0
http-link-header: 1.1.3
ws: 8.18.3 ws: 8.18.3
transitivePeerDependencies: transitivePeerDependencies:
- bufferutil - bufferutil
- encoding - encoding
- utf-8-validate - utf-8-validate
'@ldo/connected@1.0.0-alpha.15': '@ldo/connected@1.0.0-alpha.28':
dependencies: dependencies:
'@ldo/dataset': 1.0.0-alpha.28 '@ldo/dataset': 1.0.0-alpha.28
'@ldo/ldo': 1.0.0-alpha.28 '@ldo/ldo': 1.0.0-alpha.28
@ -6574,14 +6581,13 @@ snapshots:
n3: 1.26.0 n3: 1.26.0
rdf-string: 1.6.3 rdf-string: 1.6.3
'@ldo/react@1.0.0-alpha.15': '@ldo/react@1.0.0-alpha.28':
dependencies: dependencies:
'@ldo/connected': 1.0.0-alpha.15 '@ldo/connected': 1.0.0-alpha.28
'@ldo/jsonld-dataset-proxy': 1.0.0-alpha.28 '@ldo/jsonld-dataset-proxy': 1.0.0-alpha.28
'@ldo/ldo': 1.0.0-alpha.28 '@ldo/ldo': 1.0.0-alpha.28
'@ldo/rdf-utils': 1.0.0-alpha.28 '@ldo/rdf-utils': 1.0.0-alpha.28
'@ldo/subscribable-dataset': 1.0.0-alpha.28 '@ldo/subscribable-dataset': 1.0.0-alpha.28
'@rdfjs/data-model': 1.3.4
cross-fetch: 3.2.0 cross-fetch: 3.2.0
transitivePeerDependencies: transitivePeerDependencies:
- encoding - encoding
@ -6886,10 +6892,6 @@ snapshots:
nanoid: 5.1.0 nanoid: 5.1.0
tslib: 2.8.1 tslib: 2.8.1
'@ng-org/web@0.1.2-alpha.1':
dependencies:
async-proxy: 0.4.1
'@nodelib/fs.scandir@2.1.5': '@nodelib/fs.scandir@2.1.5':
dependencies: dependencies:
'@nodelib/fs.stat': 2.0.5 '@nodelib/fs.stat': 2.0.5
@ -9210,6 +9212,11 @@ snapshots:
next-tick@1.1.0: {} next-tick@1.1.0: {}
nextgraphweb@0.1.1-alpha.4:
dependencies:
async-proxy: 0.4.1
remote-web-streams: 0.2.0
node-addon-api@7.1.1: node-addon-api@7.1.1:
optional: true optional: true

Loading…
Cancel
Save