@pushwoosh/websdk-common 6.17.0 → 6.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/websdk-common",
3
- "version": "6.17.0",
3
+ "version": "6.17.1",
4
4
  "description": "Code shared by the Pushwoosh WebSDK and the Control Panel, one entry point per module (web-popups: web popup model and renderer; subscription-widget: push subscription widget model and renderer)",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -17,7 +17,7 @@ export declare function SubscriptionLauncherButton({ config, blocked, colors, on
17
17
  onClick?: () => void;
18
18
  }): import("react").JSX.Element;
19
19
  /**
20
- * The launcher plus, while `open`, the prompt; 'live' pins them to the viewport, 'preview' to the
20
+ * The launcher, or while `open` the prompt in its place; 'live' pins it to the viewport, 'preview' to the
21
21
  * nearest positioned parent with no enter animation. The host owns `open` and every side effect.
22
22
  */
23
23
  export declare function SubscriptionWidgetReader({ config, permission, open, mode, colorScheme, busy, onAccept, onDecline, onLauncherClick, }: SubscriptionWidgetReaderProps): import("react").JSX.Element | null;
@@ -246,7 +246,7 @@ export function SubscriptionLauncherButton({
246
246
  });
247
247
  }
248
248
  /**
249
- * The launcher plus, while `open`, the prompt; 'live' pins them to the viewport, 'preview' to the
249
+ * The launcher, or while `open` the prompt in its place; 'live' pins it to the viewport, 'preview' to the
250
250
  * nearest positioned parent with no enter animation. The host owns `open` and every side effect.
251
251
  */
252
252
  export function SubscriptionWidgetReader({
@@ -264,7 +264,7 @@ export function SubscriptionWidgetReader({
264
264
  const colors = resolveWebPopupColors(config, scheme);
265
265
  const live = mode === 'live';
266
266
  const position = live ? 'fixed' : 'absolute';
267
- const launcher = subscriptionWidgetLauncherVisible(config, permission);
267
+ const launcher = !open && subscriptionWidgetLauncherVisible(config, permission);
268
268
  if (!config.enable || !open && !launcher) return null;
269
269
  return _jsxs(_Fragment, {
270
270
  children: [live && _jsx("style", {