wealthica-sdk-js 0.0.21 → 0.0.23

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/README.md CHANGED
@@ -165,7 +165,7 @@ token = await user.getToken(); // fetches and returns a new token
165
165
  token = await user.getToken({ minimumLifeTime: 600 }); // fetches and returns another new token
166
166
  ```
167
167
 
168
- #### user.getConnectData({ provider, redirectURI, state, lang, theme, providersPerLine, disabledProviders, webhookURI })
168
+ #### user.getConnectData({ provider, redirectURI, state, lang, theme, providersPerLine, disabledProviders, closeButton, webhookURI })
169
169
 
170
170
  This method returns a Wealthica Connect URL and authentication token for user to connect an institution.
171
171
 
@@ -193,6 +193,7 @@ const { url, token } = await user.getConnectData({
193
193
  theme: 'light', // optional (light | dark), 'light' by default
194
194
  providersPerLine: 1, // optional (1 | 2), 2 by default
195
195
  features: 'feature1,feature2', // optional, a comma-separated list of features. undefined by default
196
+ closeButton: false, // optional boolean, `false` hides the widget's header "X" close button (for hosts drawing their own close control). Non-boolean values are ignored.
196
197
  webhookURI: 'YOUR_WEBHOOK_URI', // optional, URL to receive webhook notifications (must be HTTPS)
197
198
  });
198
199
  // {
@@ -229,7 +230,7 @@ const user2 = wealthica.login('USER_ID_2');
229
230
  const { url: url2, token } = await user2.getConnectData();
230
231
  ```
231
232
 
232
- #### user.connect({ provider, providers, disabledProviders, institutionId, lang, theme, providersPerLine, features, origin, webhookURI })
233
+ #### user.connect({ provider, providers, disabledProviders, institutionId, lang, theme, providersPerLine, features, closeButton, origin, webhookURI })
233
234
 
234
235
  This method starts the Wealthica Connect process inside your webpage/app for user to connect their institution.
235
236
 
@@ -252,7 +253,7 @@ user.connect({
252
253
  });
253
254
  ```
254
255
 
255
- #### user.reconnect(institutionId, { lang, theme, features, origin, webhookURI })
256
+ #### user.reconnect(institutionId, { lang, theme, features, closeButton, origin, webhookURI })
256
257
 
257
258
  This method starts the Wealthica Connect process to re-connect an existing institution that has expired/revoked credentials.
258
259
 
@@ -508,9 +509,10 @@ That's useful for developing Connect URL when vite local server used.
508
509
  Token exposed in URL when GET method used what is not secure so this feature should be used only for development goals.
509
510
 
510
511
  ### Release
512
+ Releases are published by GitHub Actions, not from a developer machine (`npm publish` fails locally on purpose):
511
513
  ```
512
- npm version patch # or minor/major
513
- git push && git push --tags
514
- # wait until merged then
515
- npm publish
514
+ npm version patch --no-git-tag-version # or minor/major; add a CHANGELOG entry, PR, squash-merge
515
+ git fetch origin
516
+ git tag vX.Y.Z <squash-commit-sha-on-main>
517
+ git push origin vX.Y.Z # starts .github/workflows/publish.yml; approve the `npm` environment in the run
516
518
  ```
@@ -102,6 +102,7 @@ type ConnectDataOptions = {
102
102
  theme: string;
103
103
  providersPerLine: number | string;
104
104
  features: string;
105
+ closeButton?: boolean;
105
106
  webhookURI: string;
106
107
  }
107
108
 
@@ -102,6 +102,7 @@ type ConnectDataOptions = {
102
102
  theme: string;
103
103
  providersPerLine: number | string;
104
104
  features: string;
105
+ closeButton?: boolean;
105
106
  webhookURI: string;
106
107
  }
107
108