shogun-button-react 5.0.0 → 6.0.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.
@@ -83,5 +83,3 @@
83
83
  * @copyright Chen, Yi-Cyuan 2015-2018
84
84
  * @license MIT
85
85
  */
86
-
87
- //!opt && console.log("WHAT IS T?", JSON.stringify(t).length);
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ export { ShogunButton, ShogunButtonProvider, useShogun } from './components/ShogunButton.js';
2
+ export { shogunConnector } from './connector.js';
3
+
@@ -1,9 +1,4 @@
1
1
  import { ShogunCore, IGunInstance } from "shogun-core";
2
- export interface TransportConfig {
3
- type: "gun" | "sqlite" | "postgresql" | "mongodb" | "custom";
4
- options?: any;
5
- customTransport?: any;
6
- }
7
2
  export interface ShogunConnectorOptions {
8
3
  appName: string;
9
4
  appDescription?: string;
@@ -16,7 +11,7 @@ export interface ShogunConnectorOptions {
16
11
  darkMode?: boolean;
17
12
  gunInstance?: IGunInstance;
18
13
  gunOptions?: any;
19
- transport?: TransportConfig;
14
+ useQuickStart?: boolean;
20
15
  timeouts?: {
21
16
  login?: number;
22
17
  signup?: number;
@@ -24,6 +19,8 @@ export interface ShogunConnectorOptions {
24
19
  };
25
20
  webauthn?: {
26
21
  enabled?: boolean;
22
+ rpName?: string;
23
+ rpId?: string;
27
24
  };
28
25
  nostr?: {
29
26
  enabled?: boolean;
@@ -34,6 +31,8 @@ export interface ShogunConnectorOptions {
34
31
  zkproof?: {
35
32
  enabled?: boolean;
36
33
  defaultGroupId?: string;
34
+ deterministic?: boolean;
35
+ minEntropy?: number;
37
36
  };
38
37
  enableGunDebug?: boolean;
39
38
  enableConnectionMonitoring?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shogun-button-react",
3
3
  "description": "Shogun connector button",
4
- "version": "5.0.0",
4
+ "version": "6.0.2",
5
5
  "files": [
6
6
  "dist",
7
7
  "src/styles/index.css"
@@ -19,7 +19,11 @@
19
19
  "license": "MIT",
20
20
  "type": "module",
21
21
  "exports": {
22
- ".": "./dist/index.js",
22
+ ".": {
23
+ "import": "./dist/index.mjs",
24
+ "default": "./dist/index.js",
25
+ "types": "./dist/index.d.ts"
26
+ },
23
27
  "./styles.css": "./dist/index.css"
24
28
  },
25
29
  "main": "./dist/index.js",
@@ -40,7 +44,7 @@
40
44
  "prettier": "^3.5.3",
41
45
  "process": "^0.11.10",
42
46
  "rxjs": "^7.8.2",
43
- "shogun-core": "^5.0.0",
47
+ "shogun-core": "^6.0.1",
44
48
  "stream-browserify": "^3.0.0",
45
49
  "util": "^0.12.5"
46
50
  },