@tinycloud/web-sdk 3.16.0 → 3.17.0
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/modals.cjs +1 -2
- package/dist/modals.mjs +1 -2
- package/dist/modules/tcw.d.ts +25 -0
- package/dist/notifications/permissionExpansion.d.ts +6 -0
- package/dist/notifications/permissionExpansionBridge.d.ts +2 -0
- package/package.json +3 -3
- package/dist/modals.cjs.LICENSE.txt +0 -23
- package/dist/modals.mjs.LICENSE.txt +0 -23
package/dist/modules/tcw.d.ts
CHANGED
|
@@ -53,6 +53,14 @@ export interface Config extends ClientConfig {
|
|
|
53
53
|
* `expiryChangeable: true` asks OpenKey to let the user change the session expiry in the approval. The SDK then
|
|
54
54
|
* accepts the changed expiry and builds the session with the SIGNED value. It is a pass-through: `@openkey/sdk`
|
|
55
55
|
* >= 0.13.0 (beta: 0.13.0-beta.0) forwards it; it is inert on 0.12.x, so the expiry stays as requested.
|
|
56
|
+
*
|
|
57
|
+
* On a third-party site, an owner with no registry record is refused before OpenKey is asked to approve anything, or,
|
|
58
|
+
* for an app that asks only for its own `applications` space, after the approval when the default node does not host
|
|
59
|
+
* that space (the hosted-owner proof). With `@openkey/sdk` >= 0.13.0-beta.5 (`setupAccount`) and a managed OpenKey key,
|
|
60
|
+
* `signIn()` then opens OpenKey's account setup, and once the owner has set the account up it signs in again, which
|
|
61
|
+
* OpenKey asks the owner to approve. In popup mode, if the browser blocks that popup, it asks in OpenKey's frame
|
|
62
|
+
* instead. When the owner cancels or setup fails, for wallet keys and older clients, and for any other refusal after
|
|
63
|
+
* the approval, `signIn()` rejects with the `AccountSetupRequiredError` as before.
|
|
56
64
|
*/
|
|
57
65
|
openkey?: {
|
|
58
66
|
client: OpenKeyAuthorizeTinyCloud;
|
|
@@ -449,6 +457,23 @@ export declare class TinyCloudWeb {
|
|
|
449
457
|
* `maxExpiresAt` is forwarded only with it.
|
|
450
458
|
*/
|
|
451
459
|
private openKeySignInOptions;
|
|
460
|
+
/**
|
|
461
|
+
* The OpenKey key to set up after a refusal setup is offered for, or undefined when OpenKey can't set it up from here:
|
|
462
|
+
* the client has no `setupAccount` (`@openkey/sdk` before 0.13.0-beta.5), or the key is not a managed OpenKey key
|
|
463
|
+
* of the account signing in. A wallet key is set up in TinyCloud One; with no keyId, OpenKey would set up the
|
|
464
|
+
* account's primary key, which may be another account.
|
|
465
|
+
*/
|
|
466
|
+
private openKeyAccountSetupKey;
|
|
467
|
+
/**
|
|
468
|
+
* Opens OpenKey's account setup for `keyId` and waits for it. True when OpenKey reports the account set up; false
|
|
469
|
+
* when the owner cancelled or setup did not finish, so the caller keeps its `AccountSetupRequiredError`.
|
|
470
|
+
*/
|
|
471
|
+
private setUpOpenKeyAccount;
|
|
472
|
+
/**
|
|
473
|
+
* The sign-in again once OpenKey set the account up; its preparation reads the registry afresh. The owner's clicks
|
|
474
|
+
* went to OpenKey's window, so this one may no longer open a popup: a blocked popup asks in OpenKey's frame instead.
|
|
475
|
+
*/
|
|
476
|
+
private signInWithOpenKeyAfterAccountSetup;
|
|
452
477
|
signIn: (options?: SignInOptions) => Promise<ClientSignInResult>;
|
|
453
478
|
private performSignIn;
|
|
454
479
|
/**
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* sdk-core's permission expansion, for the prompt's derived line. In the built prompt chunk this module is replaced by
|
|
3
|
+
* permissionExpansionBridge.ts, which takes the root bundle's own copy, so the chunk carries none of sdk-core (TC-4294).
|
|
4
|
+
*/
|
|
5
|
+
export { expandPermissionEntries } from "@tinycloud/sdk-core";
|
|
6
|
+
//# sourceMappingURL=permissionExpansion.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinycloud/web-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"description": "A set of tools and utilities to help you build your app with TinyCloud.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"@multiformats/multiaddr": "^13.0.1",
|
|
69
69
|
"@multiformats/multiaddr-to-uri": "^12.0.0",
|
|
70
70
|
"@noble/curves": "^1.9.7",
|
|
71
|
-
"@tinycloud/node-sdk": "3.16.
|
|
71
|
+
"@tinycloud/node-sdk": "3.16.1",
|
|
72
72
|
"@tinycloud/replica": "0.4.8",
|
|
73
73
|
"@tinycloud/sdk-core": "3.15.0",
|
|
74
|
-
"@tinycloud/share-envelope": "1.
|
|
74
|
+
"@tinycloud/share-envelope": "1.7.0",
|
|
75
75
|
"@tinycloud/share-sdk": "1.6.0",
|
|
76
76
|
"@tinycloud/web-sdk-wasm": "1.8.0",
|
|
77
77
|
"axios": "^1.7.9",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
|
|
10
|
-
/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */
|
|
11
|
-
|
|
12
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
13
|
-
|
|
14
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
18
|
-
*
|
|
19
|
-
* @version 0.8.0
|
|
20
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
21
|
-
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
22
|
-
* @license MIT
|
|
23
|
-
*/
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
|
|
10
|
-
/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */
|
|
11
|
-
|
|
12
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
13
|
-
|
|
14
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
18
|
-
*
|
|
19
|
-
* @version 0.8.0
|
|
20
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
21
|
-
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
22
|
-
* @license MIT
|
|
23
|
-
*/
|