@enbox/browser 0.3.9 → 0.3.11
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.
- package/dist/esm/index.js +3 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +4 -7
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -8,17 +8,14 @@
|
|
|
8
8
|
* @example Single-import dapp setup
|
|
9
9
|
* ```ts
|
|
10
10
|
* import {
|
|
11
|
-
* Enbox,
|
|
11
|
+
* Enbox, BrowserConnectHandler,
|
|
12
12
|
* defineProtocol, repository,
|
|
13
|
-
* type AuthSession,
|
|
14
13
|
* } from '@enbox/browser';
|
|
15
14
|
*
|
|
16
|
-
* const
|
|
15
|
+
* const { enbox, session } = await Enbox.connect({
|
|
17
16
|
* connectHandler: BrowserConnectHandler({ appName: 'My App' }),
|
|
17
|
+
* protocols: [MyProtocol],
|
|
18
18
|
* });
|
|
19
|
-
*
|
|
20
|
-
* const session = await auth.connect({ protocols: [MyProtocol] });
|
|
21
|
-
* const enbox = Enbox.connect({ session });
|
|
22
19
|
* ```
|
|
23
20
|
*
|
|
24
21
|
* For non-browser environments (Node.js, CLI, desktop), import from
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,mEAAmE;AACnE,EAAE;AACF,kEAAkE;AAElE,OAAO,EACL,KAAK,EACL,cAAc,EACd,UAAU,GACX,MAAM,YAAY,CAAC;AAUpB,mEAAmE;AACnE,EAAE;AACF,kEAAkE;AAElE,OAAO,EACL,WAAW,EACX,WAAW,EACX,yBAAyB,EACzB,aAAa,GACd,MAAM,aAAa,CAAC;AAwBrB,mEAAmE;AACnE,EAAE;AACF,gDAAgD;AAEhD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,17 +8,14 @@
|
|
|
8
8
|
* @example Single-import dapp setup
|
|
9
9
|
* ```ts
|
|
10
10
|
* import {
|
|
11
|
-
* Enbox,
|
|
11
|
+
* Enbox, BrowserConnectHandler,
|
|
12
12
|
* defineProtocol, repository,
|
|
13
|
-
* type AuthSession,
|
|
14
13
|
* } from '@enbox/browser';
|
|
15
14
|
*
|
|
16
|
-
* const
|
|
15
|
+
* const { enbox, session } = await Enbox.connect({
|
|
17
16
|
* connectHandler: BrowserConnectHandler({ appName: 'My App' }),
|
|
17
|
+
* protocols: [MyProtocol],
|
|
18
18
|
* });
|
|
19
|
-
*
|
|
20
|
-
* const session = await auth.connect({ protocols: [MyProtocol] });
|
|
21
|
-
* const enbox = Enbox.connect({ session });
|
|
22
19
|
* ```
|
|
23
20
|
*
|
|
24
21
|
* For non-browser environments (Node.js, CLI, desktop), import from
|
|
@@ -27,7 +24,7 @@
|
|
|
27
24
|
* @packageDocumentation
|
|
28
25
|
*/
|
|
29
26
|
export { Enbox, defineProtocol, repository, } from '@enbox/api';
|
|
30
|
-
export type { EnboxParams,
|
|
27
|
+
export type { EnboxAnonymousOptions, EnboxConnectOptions, EnboxConnectResult, EnboxParams, EnboxSessionParams, } from '@enbox/api';
|
|
31
28
|
export { AuthManager, AuthSession, normalizeProtocolRequests, WalletConnect, } from '@enbox/auth';
|
|
32
29
|
export type { AuthEvent, AuthEventHandler, AuthManagerOptions, AuthState, ConnectHandler, ConnectOptions, ConnectResult, DisconnectOptions, HandlerConnectOptions, ImportFromPhraseOptions, ImportFromPortableOptions, LocalConnectOptions, Permission, PortableIdentity, ProtocolRequest, RegistrationOptions, StorageAdapter, SyncOption, WalletConnectOptions, } from '@enbox/auth';
|
|
33
30
|
export * from './web-features.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAMH,OAAO,EACL,KAAK,EACL,cAAc,EACd,UAAU,GACX,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAMpB,OAAO,EACL,WAAW,EACX,WAAW,EACX,yBAAyB,EACzB,aAAa,GACd,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAMrB,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACtF,YAAY,EAAE,4BAA4B,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC/F,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enbox/browser",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "Enbox tools and features to use in the browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@enbox/agent": "0.
|
|
61
|
-
"@enbox/api": "0.6.
|
|
62
|
-
"@enbox/auth": "0.6.
|
|
63
|
-
"@enbox/dids": "0.1.
|
|
60
|
+
"@enbox/agent": "0.7.1",
|
|
61
|
+
"@enbox/api": "0.6.25",
|
|
62
|
+
"@enbox/auth": "0.6.33",
|
|
63
|
+
"@enbox/dids": "0.1.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@typescript-eslint/eslint-plugin": "8.32.1",
|
package/src/index.ts
CHANGED
|
@@ -8,17 +8,14 @@
|
|
|
8
8
|
* @example Single-import dapp setup
|
|
9
9
|
* ```ts
|
|
10
10
|
* import {
|
|
11
|
-
* Enbox,
|
|
11
|
+
* Enbox, BrowserConnectHandler,
|
|
12
12
|
* defineProtocol, repository,
|
|
13
|
-
* type AuthSession,
|
|
14
13
|
* } from '@enbox/browser';
|
|
15
14
|
*
|
|
16
|
-
* const
|
|
15
|
+
* const { enbox, session } = await Enbox.connect({
|
|
17
16
|
* connectHandler: BrowserConnectHandler({ appName: 'My App' }),
|
|
17
|
+
* protocols: [MyProtocol],
|
|
18
18
|
* });
|
|
19
|
-
*
|
|
20
|
-
* const session = await auth.connect({ protocols: [MyProtocol] });
|
|
21
|
-
* const enbox = Enbox.connect({ session });
|
|
22
19
|
* ```
|
|
23
20
|
*
|
|
24
21
|
* For non-browser environments (Node.js, CLI, desktop), import from
|
|
@@ -38,8 +35,11 @@ export {
|
|
|
38
35
|
} from '@enbox/api';
|
|
39
36
|
|
|
40
37
|
export type {
|
|
41
|
-
EnboxParams,
|
|
42
38
|
EnboxAnonymousOptions,
|
|
39
|
+
EnboxConnectOptions,
|
|
40
|
+
EnboxConnectResult,
|
|
41
|
+
EnboxParams,
|
|
42
|
+
EnboxSessionParams,
|
|
43
43
|
} from '@enbox/api';
|
|
44
44
|
|
|
45
45
|
// ─── Re-exports from @enbox/auth ────────────────────────────────
|