stream-connect-sdk 0.8.4 → 0.8.5

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 CHANGED
@@ -4,6 +4,34 @@ All notable changes to the `stream-connect-sdk` npm package. The
4
4
  companion React Native hook (`stream-connect-sdk-hook`) is on its own
5
5
  release line; see [`sdk-hook/docs/README.md`](./sdk-hook/docs/README.md).
6
6
 
7
+ ## 0.8.5
8
+
9
+ ### Broken logins surface on the entry screen (TPA-6662)
10
+
11
+ A member opening the widget in member-portal mode saw no signal that
12
+ any of their carrier logins were broken until they clicked into
13
+ "Manage your carriers", so broken logins sat unnoticed exactly where
14
+ the member already was. The entry screen's Manage tile now carries a
15
+ pill reading "X logins need attention", where X is the combined
16
+ critical + warning count from the same `severityFor` classification
17
+ the carrier list uses (a warning with a successful sync in the last
18
+ seven days still counts as healthy). The pill is red if any critical
19
+ problem exists, amber otherwise, and renders nothing at zero. The
20
+ count is computed from the policy holders already in widget state, so
21
+ it costs no extra request, and because the widget refetches member
22
+ state after each validation completes, fixing a login updates the
23
+ count without a reload.
24
+
25
+ ### The widget reports the page it is mounted on (TPA-6661)
26
+
27
+ Cross-origin requests carry only the embedding page's origin; the path
28
+ never reaches the server. The SDK now sends the hosting page's
29
+ pathname as `X-SDK-Page-Path` on every request, and the backend stamps
30
+ (origin, path) per SDK token and tenant. That stamped location is what
31
+ lets fix-credentials emails link members of SDK-only tenants back to
32
+ the portal page that actually hosts the widget instead of a TPA Stream
33
+ portal they have never seen. Older backends ignore the header.
34
+
7
35
  ## 0.8.4
8
36
 
9
37
  ### Validations that outlive one stream connection keep reporting live
package/README.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  ## Version
6
6
 
7
+ ### 0.8.5
8
+
9
+ The entry screen's "Manage your carriers" tile now carries an "X logins need attention" pill (red if any critical problem exists, amber otherwise, hidden at zero), so members in portal mode see broken logins without clicking in. The SDK also reports the hosting page's pathname (`X-SDK-Page-Path`) so fix-credentials emails can route members of SDK-only tenants back to the portal page that embeds the widget.
10
+
7
11
  ### 0.8.4
8
12
 
9
13
  Credential validations that outlive a single progress stream now keep reporting live. A stream connection is capped at about ten minutes server-side; the SDK reattaches to the running validation instead of showing "Still working on it" and going quiet, so members on slow carriers or long MFA waits see the flow finish rather than having to reload.
@@ -33,6 +37,18 @@ This SDK embeds the [EasyEnrollment platform](https://www.easyenrollment.net) in
33
37
  Latest highlights below. The full per-version changelog lives in
34
38
  [CHANGELOG.md](./CHANGELOG.md).
35
39
 
40
+ ### 0.8.5 highlights
41
+
42
+ * "X logins need attention" pill on the entry screen's Manage tile:
43
+ combined critical + warning count from the same severity
44
+ classification the carrier list uses, red when any critical problem
45
+ exists, amber otherwise, absent at zero. Updates live as
46
+ validations complete, with no extra requests.
47
+ * The widget reports the page it is mounted on via `X-SDK-Page-Path`,
48
+ letting the backend stamp the embed location per SDK token and
49
+ tenant and route fix-credentials emails back to the hosting portal
50
+ page. Older backends ignore the header.
51
+
36
52
  ### 0.8.4 highlights
37
53
 
38
54
  * A validation that outlives one progress-stream connection keeps
package/docs/faq.md CHANGED
@@ -32,7 +32,7 @@ Embed the SDK in a WebView via [`react-native-webview`](https://github.com/react
32
32
  The older `stream-connect-sdk-hook` npm package (v0.6.2) is deprecated. Existing integrations keep working but won't receive feature updates: no SSE-driven validation, no inline 2FA, no fix-credentials status badges, no PAA support. New integrations should use the WebView pattern.
33
33
 
34
34
  ## I'd like to create a more customized flow for how a user enters credentials and validation.
35
- The default recommendation for customizing the SDK flow is to use the various sdk [Callbacks](client-usage.md#callbacks).
35
+ The default recommendation for customizing the SDK flow is to use the various sdk [Callbacks](client-usage.md#lifecycle-callbacks-in-detail).
36
36
 
37
37
  The SDK renders various steps with default templates which should be editted post render using JS and CSS. However, if you would like
38
38
  to create more customized widgets it is possible to turn off the default rendering using the various `renderXStep` values within the
@@ -42,7 +42,7 @@ If you are to turn of the default template rendering, the callbacks associated w
42
42
  objects in their parameters which will allow an implementor to mirror all of the functionality previously defined in the default
43
43
  template.
44
44
 
45
- Each of the provided information is present in the [Callbacks](client-usage.md#callbacks) docs.
45
+ Each of the provided information is present in the [Callbacks](client-usage.md#lifecycle-callbacks-in-detail) docs.
46
46
 
47
47
  ## How do I use the data from the SDK?
48
48
  The StreamConnect SDK is designed to take in carrier credentials, save them to the TPAStream sytem, and then validate the credentials.
@@ -32,7 +32,11 @@ StreamConnect({
32
32
 
33
33
  When a returning user opens the SDK in fix-credentials mode, the
34
34
  first screen offers two paths: add a new carrier, or manage existing
35
- ones.
35
+ ones. When any connected carrier needs attention, the "Manage your
36
+ carriers" tile carries a pill reading "N logins need attention": red
37
+ if any login is critical, amber otherwise, and absent at zero. The
38
+ count uses the same severity rules as the status badges below and
39
+ updates as validations finish.
36
40
 
37
41
  ![Select enroll process](https://tpastream-public.s3.amazonaws.com/sdk-docs/fix-credentials/select-enroll-widget.png)
38
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-connect-sdk",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "A JavaScript SDK implementing TPAStream's Connect Platform",
5
5
  "scripts": {
6
6
  "build": "webpack --config webpack.prod-sdk.js --mode=production",