@soltech/fluid-common 1.13.0 → 1.14.0-sc20572.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/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` (this runs `npm run build` first via the `pub` script, or run `npm run build && npm publish` directly).
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
 
@@ -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",
@@ -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";
@@ -64,10 +64,16 @@ export declare enum Trait {
64
64
  withdrawalCurrencyIcon = "withdrawalCurrencyIcon"
65
65
  }
66
66
  export declare enum Content {
67
+ abandonDepositModalContinueButton = "abandonDepositModalContinueButton",
68
+ abandonDepositModalMessage = "abandonDepositModalMessage",
69
+ abandonDepositModalNegativeButton = "abandonDepositModalNegativeButton",
70
+ abandonDepositModalPositiveButton = "abandonDepositModalPositiveButton",
71
+ abandonDepositModalTitle = "abandonDepositModalTitle",
67
72
  acceptNoBonusAndContinue = "acceptNoBonusAndContinue",
68
73
  amountPlaceholderLabel = "amountPlaceholderLabel",
69
74
  authorisationTitle = "authorisationTitle",
70
75
  backLabel = "backLabel",
76
+ bankLinkingFrameTitle = "bankLinkingFrameTitle",
71
77
  bonus = "bonus",
72
78
  bonusCodeInputPlaceholder = "bonusCodeInputPlaceholder",
73
79
  bonusCodeMessage = "bonusCodeMessage",
@@ -282,6 +288,7 @@ export declare enum ContentVirtual {
282
288
  abandonDepositModalTitle = "abandonDepositModalTitle",
283
289
  authorisationTitle = "authorisationTitle",
284
290
  backLabel = "backLabel",
291
+ bankLinkingFrameTitle = "bankLinkingFrameTitle",
285
292
  cancelWithdrawalsSuccess = "cancelWithdrawalsSuccess",
286
293
  cancelWithdrawalSuccess = "cancelWithdrawalSuccess",
287
294
  cardDetailsGenericError = "cardDetailsGenericError",
@@ -66,10 +66,16 @@ export var Trait;
66
66
  })(Trait || (Trait = {}));
67
67
  export var Content;
68
68
  (function (Content) {
69
+ Content["abandonDepositModalContinueButton"] = "abandonDepositModalContinueButton";
70
+ Content["abandonDepositModalMessage"] = "abandonDepositModalMessage";
71
+ Content["abandonDepositModalNegativeButton"] = "abandonDepositModalNegativeButton";
72
+ Content["abandonDepositModalPositiveButton"] = "abandonDepositModalPositiveButton";
73
+ Content["abandonDepositModalTitle"] = "abandonDepositModalTitle";
69
74
  Content["acceptNoBonusAndContinue"] = "acceptNoBonusAndContinue";
70
75
  Content["amountPlaceholderLabel"] = "amountPlaceholderLabel";
71
76
  Content["authorisationTitle"] = "authorisationTitle";
72
77
  Content["backLabel"] = "backLabel";
78
+ Content["bankLinkingFrameTitle"] = "bankLinkingFrameTitle";
73
79
  Content["bonus"] = "bonus";
74
80
  Content["bonusCodeInputPlaceholder"] = "bonusCodeInputPlaceholder";
75
81
  Content["bonusCodeMessage"] = "bonusCodeMessage";
@@ -285,6 +291,7 @@ export var ContentVirtual;
285
291
  ContentVirtual["abandonDepositModalTitle"] = "abandonDepositModalTitle";
286
292
  ContentVirtual["authorisationTitle"] = "authorisationTitle";
287
293
  ContentVirtual["backLabel"] = "backLabel";
294
+ ContentVirtual["bankLinkingFrameTitle"] = "bankLinkingFrameTitle";
288
295
  ContentVirtual["cancelWithdrawalsSuccess"] = "cancelWithdrawalsSuccess";
289
296
  ContentVirtual["cancelWithdrawalSuccess"] = "cancelWithdrawalSuccess";
290
297
  ContentVirtual["cardDetailsGenericError"] = "cardDetailsGenericError";
package/lib/wallet.d.ts CHANGED
@@ -59,6 +59,7 @@ export interface WalletConfig {
59
59
  contentText: Record<string, string>;
60
60
  expressFlowEnabled: boolean;
61
61
  defaultDepositAmount: number;
62
+ depositAbandonModalEnabled: boolean;
62
63
  fullListOfDepositMethodsDisplayed: boolean;
63
64
  hideMinMaxEnabled: boolean;
64
65
  integration: Integration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.13.0",
3
+ "version": "1.14.0-sc20572.0",
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": {
@@ -70,6 +70,11 @@ export enum Trait {
70
70
  }
71
71
 
72
72
  export enum Content {
73
+ abandonDepositModalContinueButton = 'abandonDepositModalContinueButton',
74
+ abandonDepositModalMessage = 'abandonDepositModalMessage',
75
+ abandonDepositModalNegativeButton = 'abandonDepositModalNegativeButton',
76
+ abandonDepositModalPositiveButton = 'abandonDepositModalPositiveButton',
77
+ abandonDepositModalTitle = 'abandonDepositModalTitle',
73
78
  acceptNoBonusAndContinue = 'acceptNoBonusAndContinue',
74
79
  amountPlaceholderLabel = 'amountPlaceholderLabel',
75
80
  authorisationTitle = 'authorisationTitle',
package/src/wallet.ts CHANGED
@@ -66,6 +66,7 @@ export interface WalletConfig {
66
66
  contentText: Record<string, string>;
67
67
  expressFlowEnabled: boolean;
68
68
  defaultDepositAmount: number;
69
+ depositAbandonModalEnabled: boolean;
69
70
  fullListOfDepositMethodsDisplayed: boolean;
70
71
  hideMinMaxEnabled: boolean;
71
72
  integration: Integration;