@soltech/fluid-common 1.13.0 → 1.13.1
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/CLAUDE.md +1 -1
- package/lib/transactions.d.ts +4 -0
- package/lib/transactions.js +4 -0
- package/lib/wallet-config-keys.d.ts +2 -0
- package/lib/wallet-config-keys.js +2 -0
- package/package.json +2 -1
package/CLAUDE.md
CHANGED
|
@@ -43,7 +43,7 @@ The correct sequence before publishing a new version:
|
|
|
43
43
|
3. Run `npm i` (updates `package-lock.json`).
|
|
44
44
|
4. Commit all changes (`src/`, `package.json`, `package-lock.json`).
|
|
45
45
|
5. Push the commit: `git push`.
|
|
46
|
-
6. Publish to npm: `npm publish
|
|
46
|
+
6. Publish to npm: `npm publish`. Its `prepublishOnly` script rebuilds `lib/` first, so the package never ships stale compiled output.
|
|
47
47
|
|
|
48
48
|
Do **not** use `npm run pub` as a single command — it pushes *after* publishing, which means npm gets the package before git has a clean commit.
|
|
49
49
|
|
package/lib/transactions.d.ts
CHANGED
|
@@ -110,8 +110,12 @@ export interface RedirectOutput {
|
|
|
110
110
|
sizeUnit?: string;
|
|
111
111
|
url: string;
|
|
112
112
|
width?: number;
|
|
113
|
+
purpose?: RedirectPurpose;
|
|
113
114
|
}
|
|
114
115
|
export type RedirectContainer = 'iframe' | 'window' | 'redirect';
|
|
116
|
+
export declare enum RedirectPurpose {
|
|
117
|
+
BANK_LINKING = "BANK_LINKING"
|
|
118
|
+
}
|
|
115
119
|
export declare enum TransactionState {
|
|
116
120
|
SUCCESS = "SUCCESS",
|
|
117
121
|
FAIL = "FAIL",
|
package/lib/transactions.js
CHANGED
|
@@ -4,6 +4,10 @@ export var WindowRedirectType;
|
|
|
4
4
|
WindowRedirectType["BROWSER_TAB"] = "browserTab";
|
|
5
5
|
WindowRedirectType["NONE"] = "none";
|
|
6
6
|
})(WindowRedirectType || (WindowRedirectType = {}));
|
|
7
|
+
export var RedirectPurpose;
|
|
8
|
+
(function (RedirectPurpose) {
|
|
9
|
+
RedirectPurpose["BANK_LINKING"] = "BANK_LINKING";
|
|
10
|
+
})(RedirectPurpose || (RedirectPurpose = {}));
|
|
7
11
|
export var TransactionState;
|
|
8
12
|
(function (TransactionState) {
|
|
9
13
|
TransactionState["SUCCESS"] = "SUCCESS";
|
|
@@ -68,6 +68,7 @@ export declare enum Content {
|
|
|
68
68
|
amountPlaceholderLabel = "amountPlaceholderLabel",
|
|
69
69
|
authorisationTitle = "authorisationTitle",
|
|
70
70
|
backLabel = "backLabel",
|
|
71
|
+
bankLinkingFrameTitle = "bankLinkingFrameTitle",
|
|
71
72
|
bonus = "bonus",
|
|
72
73
|
bonusCodeInputPlaceholder = "bonusCodeInputPlaceholder",
|
|
73
74
|
bonusCodeMessage = "bonusCodeMessage",
|
|
@@ -282,6 +283,7 @@ export declare enum ContentVirtual {
|
|
|
282
283
|
abandonDepositModalTitle = "abandonDepositModalTitle",
|
|
283
284
|
authorisationTitle = "authorisationTitle",
|
|
284
285
|
backLabel = "backLabel",
|
|
286
|
+
bankLinkingFrameTitle = "bankLinkingFrameTitle",
|
|
285
287
|
cancelWithdrawalsSuccess = "cancelWithdrawalsSuccess",
|
|
286
288
|
cancelWithdrawalSuccess = "cancelWithdrawalSuccess",
|
|
287
289
|
cardDetailsGenericError = "cardDetailsGenericError",
|
|
@@ -70,6 +70,7 @@ export var Content;
|
|
|
70
70
|
Content["amountPlaceholderLabel"] = "amountPlaceholderLabel";
|
|
71
71
|
Content["authorisationTitle"] = "authorisationTitle";
|
|
72
72
|
Content["backLabel"] = "backLabel";
|
|
73
|
+
Content["bankLinkingFrameTitle"] = "bankLinkingFrameTitle";
|
|
73
74
|
Content["bonus"] = "bonus";
|
|
74
75
|
Content["bonusCodeInputPlaceholder"] = "bonusCodeInputPlaceholder";
|
|
75
76
|
Content["bonusCodeMessage"] = "bonusCodeMessage";
|
|
@@ -285,6 +286,7 @@ export var ContentVirtual;
|
|
|
285
286
|
ContentVirtual["abandonDepositModalTitle"] = "abandonDepositModalTitle";
|
|
286
287
|
ContentVirtual["authorisationTitle"] = "authorisationTitle";
|
|
287
288
|
ContentVirtual["backLabel"] = "backLabel";
|
|
289
|
+
ContentVirtual["bankLinkingFrameTitle"] = "bankLinkingFrameTitle";
|
|
288
290
|
ContentVirtual["cancelWithdrawalsSuccess"] = "cancelWithdrawalsSuccess";
|
|
289
291
|
ContentVirtual["cancelWithdrawalSuccess"] = "cancelWithdrawalSuccess";
|
|
290
292
|
ContentVirtual["cardDetailsGenericError"] = "cardDetailsGenericError";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soltech/fluid-common",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Fluid frontend, API and AI common interfaces & enums",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"pub": "npm run build && npm publish && git push --set-upstream origin HEAD",
|
|
12
12
|
"lint": "npx eslint .",
|
|
13
13
|
"lint:fix": "npx eslint . --fix",
|
|
14
|
+
"prepublishOnly": "npm run build",
|
|
14
15
|
"prepare": "husky"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|