@wexio/messenger-widget-react 1.4.0 → 1.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @wexio/messenger-widget-react
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9383463: Fix the widget still rendering on a site after the operator disabled it.
8
+
9
+ When an integration is `disabled` (operator kill switch) or `plan_blocked` (org below the required plan), the backend correctly answers `status: 'disabled' | 'plan_blocked'`, and the contract is that the launcher hides silently. Only the script-tag loader honoured that (it checks the status before creating its iframe). The React and web-component embeds mount the widget shell directly and never looked at `status`, so they painted a live launcher whose session the backend then refused, and the widget opened straight into an error. The shell now renders nothing for any status other than `active`, so all embeds behave the same. `status` is server-owned (never taken from host props) and falls back to `active` if the gate request fails, so an outage cannot hide a working widget.
10
+
3
11
  ## 1.4.0
4
12
 
5
13
  ### Minor Changes
@@ -23189,7 +23189,7 @@ function rx() {
23189
23189
  }, pr = K(!1), mr = p || u !== "production" || !!P.token || !!P.error;
23190
23190
  mr && (pr.current = !0);
23191
23191
  let hr = pr.current || mr;
23192
- if (b === "publicKeyInvalid" || _ || !hr) return null;
23192
+ if (b === "publicKeyInvalid" || _ || !hr || f.status !== "active") return null;
23193
23193
  return /* @__PURE__ */ X(v, {
23194
23194
  value: En ? kn : null,
23195
23195
  children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wexio/messenger-widget-react",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Native React component embed for the Wexio web messenger. Renders inside a Shadow DOM portal for style isolation.",
5
5
  "license": "MIT",
6
6
  "private": false,