@hook-sdk/template 0.28.7 → 0.28.9
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 +65 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +65 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2115,33 +2115,47 @@ function SessionExpiredBanner() {
|
|
|
2115
2115
|
localStorage.setItem(DISMISS_KEY, String(Date.now() + DISMISS_TTL_MS));
|
|
2116
2116
|
setShow(false);
|
|
2117
2117
|
}
|
|
2118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
"
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
children: "
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2119
|
+
"div",
|
|
2120
|
+
{
|
|
2121
|
+
role: "alert",
|
|
2122
|
+
className: "fixed top-0 inset-x-0 px-4 py-3 flex items-center justify-between gap-3 text-sm font-medium shadow-lg",
|
|
2123
|
+
style: {
|
|
2124
|
+
zIndex: 10001,
|
|
2125
|
+
backgroundColor: "#991b1b",
|
|
2126
|
+
color: "#ffffff"
|
|
2127
|
+
},
|
|
2128
|
+
children: [
|
|
2129
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { children: [
|
|
2130
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("strong", { className: "font-bold", children: "Sua sess\xE3o expirou." }),
|
|
2131
|
+
" Fa\xE7a login novamente para continuar."
|
|
2132
|
+
] }),
|
|
2133
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2134
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2135
|
+
"button",
|
|
2136
|
+
{
|
|
2137
|
+
type: "button",
|
|
2138
|
+
onClick: dismiss,
|
|
2139
|
+
className: "px-3 py-1.5 rounded text-xs font-semibold",
|
|
2140
|
+
style: { backgroundColor: "#ffffff", color: "#991b1b" },
|
|
2141
|
+
children: "Fazer login"
|
|
2142
|
+
}
|
|
2143
|
+
),
|
|
2144
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2145
|
+
"button",
|
|
2146
|
+
{
|
|
2147
|
+
type: "button",
|
|
2148
|
+
onClick: dismiss,
|
|
2149
|
+
"aria-label": "Fechar",
|
|
2150
|
+
className: "px-2 py-1 text-xs",
|
|
2151
|
+
style: { color: "#ffffff" },
|
|
2152
|
+
children: "Fechar"
|
|
2153
|
+
}
|
|
2154
|
+
)
|
|
2155
|
+
] })
|
|
2156
|
+
]
|
|
2157
|
+
}
|
|
2158
|
+
);
|
|
2145
2159
|
}
|
|
2146
2160
|
|
|
2147
2161
|
// src/internal/EmailVerifyBanner.tsx
|
|
@@ -2819,6 +2833,29 @@ function PushPrompt2({ texts, onSubscribed, onDeclined, onInstallRequested, clas
|
|
|
2819
2833
|
}
|
|
2820
2834
|
if (state.kind === "ios_needs_install") {
|
|
2821
2835
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className, role: "region", "aria-label": texts.iosInstallTitle, children: [
|
|
2836
|
+
onDeclined && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2837
|
+
"button",
|
|
2838
|
+
{
|
|
2839
|
+
type: "button",
|
|
2840
|
+
onClick: onDeclined,
|
|
2841
|
+
"aria-label": "Fechar",
|
|
2842
|
+
className: "push-prompt-close",
|
|
2843
|
+
style: {
|
|
2844
|
+
position: "absolute",
|
|
2845
|
+
top: 8,
|
|
2846
|
+
right: 8,
|
|
2847
|
+
width: 32,
|
|
2848
|
+
height: 32,
|
|
2849
|
+
border: "none",
|
|
2850
|
+
background: "transparent",
|
|
2851
|
+
fontSize: 20,
|
|
2852
|
+
lineHeight: 1,
|
|
2853
|
+
cursor: "pointer",
|
|
2854
|
+
color: "inherit"
|
|
2855
|
+
},
|
|
2856
|
+
children: "\xD7"
|
|
2857
|
+
}
|
|
2858
|
+
),
|
|
2822
2859
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("h3", { children: texts.iosInstallTitle }),
|
|
2823
2860
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { children: texts.iosInstallBody }),
|
|
2824
2861
|
onInstallRequested && texts.iosInstallCta && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { onClick: onInstallRequested, children: texts.iosInstallCta })
|
|
@@ -4006,7 +4043,7 @@ function CheckoutPageDefault() {
|
|
|
4006
4043
|
navigate(result.redirect.replace(/^.*\/app\/[^/]+/, ""));
|
|
4007
4044
|
return;
|
|
4008
4045
|
}
|
|
4009
|
-
navigate(
|
|
4046
|
+
navigate("/paywall/pronta");
|
|
4010
4047
|
}
|
|
4011
4048
|
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
4049
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex-1 overflow-y-auto px-5 pt-5 pb-6 space-y-6", children: [
|