@hook-sdk/template 0.28.7 → 0.28.8

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/dist/index.cjs CHANGED
@@ -2819,6 +2819,29 @@ function PushPrompt2({ texts, onSubscribed, onDeclined, onInstallRequested, clas
2819
2819
  }
2820
2820
  if (state.kind === "ios_needs_install") {
2821
2821
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className, role: "region", "aria-label": texts.iosInstallTitle, children: [
2822
+ onDeclined && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2823
+ "button",
2824
+ {
2825
+ type: "button",
2826
+ onClick: onDeclined,
2827
+ "aria-label": "Fechar",
2828
+ className: "push-prompt-close",
2829
+ style: {
2830
+ position: "absolute",
2831
+ top: 8,
2832
+ right: 8,
2833
+ width: 32,
2834
+ height: 32,
2835
+ border: "none",
2836
+ background: "transparent",
2837
+ fontSize: 20,
2838
+ lineHeight: 1,
2839
+ cursor: "pointer",
2840
+ color: "inherit"
2841
+ },
2842
+ children: "\xD7"
2843
+ }
2844
+ ),
2822
2845
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("h3", { children: texts.iosInstallTitle }),
2823
2846
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { children: texts.iosInstallBody }),
2824
2847
  onInstallRequested && texts.iosInstallCta && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { onClick: onInstallRequested, children: texts.iosInstallCta })
@@ -4006,7 +4029,7 @@ function CheckoutPageDefault() {
4006
4029
  navigate(result.redirect.replace(/^.*\/app\/[^/]+/, ""));
4007
4030
  return;
4008
4031
  }
4009
- navigate(result.redirect.replace(/^.*\/app\/[^/]+/, "") || "/");
4032
+ navigate("/paywall/pronta");
4010
4033
  }
4011
4034
  return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex-1 flex flex-col bg-background min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("form", { onSubmit, className: "flex-1 flex flex-col min-h-0", children: [
4012
4035
  /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex-1 overflow-y-auto px-5 pt-5 pb-6 space-y-6", children: [