@bwalletx/connect 0.5.6 → 0.7.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/CHANGELOG.md +28 -0
- package/README.md +22 -2
- package/dist/bwalletx-connect.global.js +15 -10
- package/dist/bwalletx-connect.global.js.map +1 -1
- package/dist/{choice-DCh-tgpT.d.cts → choice-B97AjqF4.d.cts} +87 -3
- package/dist/{choice-DCh-tgpT.d.ts → choice-B97AjqF4.d.ts} +87 -3
- package/dist/{chunk-LS6AYEBO.js → chunk-6EFFOIHK.js} +596 -41
- package/dist/chunk-6EFFOIHK.js.map +1 -0
- package/dist/{chunk-34DKBQNN.js → chunk-DIKJFKND.js} +22 -5
- package/dist/chunk-DIKJFKND.js.map +1 -0
- package/dist/{chunk-IFGOAROM.js → chunk-TNRI7ARM.js} +14 -63
- package/dist/chunk-TNRI7ARM.js.map +1 -0
- package/dist/{element-D9Zl-x12.d.cts → element-BXEoOdXY.d.cts} +11 -4
- package/dist/{element-D9Zl-x12.d.ts → element-BXEoOdXY.d.ts} +11 -4
- package/dist/element.cjs +480 -50
- package/dist/element.cjs.map +1 -1
- package/dist/element.d.cts +7 -2
- package/dist/element.d.ts +7 -2
- package/dist/element.js +8 -2
- package/dist/element.js.map +1 -1
- package/dist/index.cjs +676 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +169 -11
- package/dist/index.d.ts +169 -11
- package/dist/index.js +92 -6
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +683 -103
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +43 -4
- package/dist/react.d.ts +43 -4
- package/dist/react.js +147 -12
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-34DKBQNN.js.map +0 -1
- package/dist/chunk-IFGOAROM.js.map +0 -1
- package/dist/chunk-LS6AYEBO.js.map +0 -1
package/dist/element.d.cts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
export { A as AuthorizeParams, G as GET_URL, M as MENU_CSS, P as PENDING_LABEL, e as PENDING_LABEL_OTHER, f as PENDING_NOTE, g as SIGNIN_CSS, h as SIGNIN_TAG, i as SigninAccount, c as SigninBrand, b as SigninLabel,
|
|
1
|
+
export { A as AuthorizeParams, C as CONTINUE_OTHER_LABEL, G as GET_URL, M as MENU_CSS, P as PENDING_LABEL, e as PENDING_LABEL_OTHER, f as PENDING_NOTE, g as SIGNIN_CSS, h as SIGNIN_TAG, i as SWITCH_NOTE, j as SigninAccount, c as SigninBrand, b as SigninLabel, k as SigninMode, S as SigninSize, d as SigninState, a as SigninTheme, W as WEB_WALLET_URL, l as buildAuthorizeUrl, m as defineBwalletxSignin, n as markSvg, s as signinText } from './element-BXEoOdXY.cjs';
|
|
2
2
|
|
|
3
3
|
declare const BUTTON_TAG = "bwalletx-button";
|
|
4
4
|
/** Legacy (0.5.5) localStorage key that held the identity key. Deleted on load since 0.5.6; never written. */
|
|
5
5
|
declare const CONNECTED_KEY = "bwx:connected";
|
|
6
|
+
/**
|
|
7
|
+
* (0.6.0) Migrate the 0.5.5 `bwx:connected` entry to the type-only record: the user had connected bWalletX here, so
|
|
8
|
+
* remember { type: 'bwalletx' } (unless a choice is already remembered) and delete the key. True when one was there.
|
|
9
|
+
*/
|
|
10
|
+
declare function migrateConnectedKey(): boolean;
|
|
6
11
|
/** Delete the 0.5.5 `bwx:connected` entry (it held the identity key). True when one was there. */
|
|
7
12
|
declare function dropLegacyConnectedKey(): boolean;
|
|
8
13
|
type ButtonState = 'checking' | 'none' | 'available' | 'connecting' | 'connected';
|
|
@@ -21,4 +26,4 @@ declare function defineBwalletxButton(tag?: string): void;
|
|
|
21
26
|
/** Test hook: forget which button owns the page. */
|
|
22
27
|
declare function _resetBwalletxButtons(): void;
|
|
23
28
|
|
|
24
|
-
export { BUTTON_TAG, type ButtonState, CONNECTED_KEY, _resetBwalletxButtons, defineBwalletxButton, dropLegacyConnectedKey, getUrlFor, handleLabel, stateFor };
|
|
29
|
+
export { BUTTON_TAG, type ButtonState, CONNECTED_KEY, _resetBwalletxButtons, defineBwalletxButton, dropLegacyConnectedKey, getUrlFor, handleLabel, migrateConnectedKey, stateFor };
|
package/dist/element.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
export { A as AuthorizeParams, G as GET_URL, M as MENU_CSS, P as PENDING_LABEL, e as PENDING_LABEL_OTHER, f as PENDING_NOTE, g as SIGNIN_CSS, h as SIGNIN_TAG, i as SigninAccount, c as SigninBrand, b as SigninLabel,
|
|
1
|
+
export { A as AuthorizeParams, C as CONTINUE_OTHER_LABEL, G as GET_URL, M as MENU_CSS, P as PENDING_LABEL, e as PENDING_LABEL_OTHER, f as PENDING_NOTE, g as SIGNIN_CSS, h as SIGNIN_TAG, i as SWITCH_NOTE, j as SigninAccount, c as SigninBrand, b as SigninLabel, k as SigninMode, S as SigninSize, d as SigninState, a as SigninTheme, W as WEB_WALLET_URL, l as buildAuthorizeUrl, m as defineBwalletxSignin, n as markSvg, s as signinText } from './element-BXEoOdXY.js';
|
|
2
2
|
|
|
3
3
|
declare const BUTTON_TAG = "bwalletx-button";
|
|
4
4
|
/** Legacy (0.5.5) localStorage key that held the identity key. Deleted on load since 0.5.6; never written. */
|
|
5
5
|
declare const CONNECTED_KEY = "bwx:connected";
|
|
6
|
+
/**
|
|
7
|
+
* (0.6.0) Migrate the 0.5.5 `bwx:connected` entry to the type-only record: the user had connected bWalletX here, so
|
|
8
|
+
* remember { type: 'bwalletx' } (unless a choice is already remembered) and delete the key. True when one was there.
|
|
9
|
+
*/
|
|
10
|
+
declare function migrateConnectedKey(): boolean;
|
|
6
11
|
/** Delete the 0.5.5 `bwx:connected` entry (it held the identity key). True when one was there. */
|
|
7
12
|
declare function dropLegacyConnectedKey(): boolean;
|
|
8
13
|
type ButtonState = 'checking' | 'none' | 'available' | 'connecting' | 'connected';
|
|
@@ -21,4 +26,4 @@ declare function defineBwalletxButton(tag?: string): void;
|
|
|
21
26
|
/** Test hook: forget which button owns the page. */
|
|
22
27
|
declare function _resetBwalletxButtons(): void;
|
|
23
28
|
|
|
24
|
-
export { BUTTON_TAG, type ButtonState, CONNECTED_KEY, _resetBwalletxButtons, defineBwalletxButton, dropLegacyConnectedKey, getUrlFor, handleLabel, stateFor };
|
|
29
|
+
export { BUTTON_TAG, type ButtonState, CONNECTED_KEY, _resetBwalletxButtons, defineBwalletxButton, dropLegacyConnectedKey, getUrlFor, handleLabel, migrateConnectedKey, stateFor };
|
package/dist/element.js
CHANGED
|
@@ -6,9 +6,11 @@ import {
|
|
|
6
6
|
dropLegacyConnectedKey,
|
|
7
7
|
getUrlFor,
|
|
8
8
|
handleLabel,
|
|
9
|
+
migrateConnectedKey,
|
|
9
10
|
stateFor
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DIKJFKND.js";
|
|
11
12
|
import {
|
|
13
|
+
CONTINUE_OTHER_LABEL,
|
|
12
14
|
GET_URL,
|
|
13
15
|
MENU_CSS,
|
|
14
16
|
PENDING_LABEL,
|
|
@@ -16,12 +18,13 @@ import {
|
|
|
16
18
|
PENDING_NOTE,
|
|
17
19
|
SIGNIN_CSS,
|
|
18
20
|
SIGNIN_TAG,
|
|
21
|
+
SWITCH_NOTE,
|
|
19
22
|
WEB_WALLET_URL,
|
|
20
23
|
buildAuthorizeUrl,
|
|
21
24
|
defineBwalletxSignin,
|
|
22
25
|
markSvg,
|
|
23
26
|
signinText
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6EFFOIHK.js";
|
|
25
28
|
import "./chunk-MWD4BCO5.js";
|
|
26
29
|
|
|
27
30
|
// src/define.ts
|
|
@@ -30,6 +33,7 @@ defineBwalletxButton();
|
|
|
30
33
|
export {
|
|
31
34
|
BUTTON_TAG,
|
|
32
35
|
CONNECTED_KEY,
|
|
36
|
+
CONTINUE_OTHER_LABEL,
|
|
33
37
|
GET_URL,
|
|
34
38
|
MENU_CSS,
|
|
35
39
|
PENDING_LABEL,
|
|
@@ -37,6 +41,7 @@ export {
|
|
|
37
41
|
PENDING_NOTE,
|
|
38
42
|
SIGNIN_CSS,
|
|
39
43
|
SIGNIN_TAG,
|
|
44
|
+
SWITCH_NOTE,
|
|
40
45
|
WEB_WALLET_URL,
|
|
41
46
|
_resetBwalletxButtons,
|
|
42
47
|
buildAuthorizeUrl,
|
|
@@ -46,6 +51,7 @@ export {
|
|
|
46
51
|
getUrlFor,
|
|
47
52
|
handleLabel,
|
|
48
53
|
markSvg,
|
|
54
|
+
migrateConnectedKey,
|
|
49
55
|
signinText,
|
|
50
56
|
stateFor
|
|
51
57
|
};
|
package/dist/element.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/define.ts"],"sourcesContent":["// `import '@bwalletx/connect/element'` registers <bwalletx-signin> and <bwalletx-button> as a side effect.\nimport { defineBwalletxSignin } from './element.js';\nimport { defineBwalletxButton } from './wallet-button.js';\n\nexport * from './element.js';\nexport * from './wallet-button.js';\ndefineBwalletxSignin();\ndefineBwalletxButton();\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/define.ts"],"sourcesContent":["// `import '@bwalletx/connect/element'` registers <bwalletx-signin> and <bwalletx-button> as a side effect.\nimport { defineBwalletxSignin } from './element.js';\nimport { defineBwalletxButton } from './wallet-button.js';\n\nexport * from './element.js';\nexport * from './wallet-button.js';\ndefineBwalletxSignin();\ndefineBwalletxButton();\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,qBAAqB;AACrB,qBAAqB;","names":[]}
|