@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.js
CHANGED
|
@@ -2004,33 +2004,47 @@ function SessionExpiredBanner() {
|
|
|
2004
2004
|
localStorage.setItem(DISMISS_KEY, String(Date.now() + DISMISS_TTL_MS));
|
|
2005
2005
|
setShow(false);
|
|
2006
2006
|
}
|
|
2007
|
-
return /* @__PURE__ */ jsxs11(
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
"
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
children: "
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2007
|
+
return /* @__PURE__ */ jsxs11(
|
|
2008
|
+
"div",
|
|
2009
|
+
{
|
|
2010
|
+
role: "alert",
|
|
2011
|
+
className: "fixed top-0 inset-x-0 px-4 py-3 flex items-center justify-between gap-3 text-sm font-medium shadow-lg",
|
|
2012
|
+
style: {
|
|
2013
|
+
zIndex: 10001,
|
|
2014
|
+
backgroundColor: "#991b1b",
|
|
2015
|
+
color: "#ffffff"
|
|
2016
|
+
},
|
|
2017
|
+
children: [
|
|
2018
|
+
/* @__PURE__ */ jsxs11("span", { children: [
|
|
2019
|
+
/* @__PURE__ */ jsx17("strong", { className: "font-bold", children: "Sua sess\xE3o expirou." }),
|
|
2020
|
+
" Fa\xE7a login novamente para continuar."
|
|
2021
|
+
] }),
|
|
2022
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
|
|
2023
|
+
/* @__PURE__ */ jsx17(
|
|
2024
|
+
"button",
|
|
2025
|
+
{
|
|
2026
|
+
type: "button",
|
|
2027
|
+
onClick: dismiss,
|
|
2028
|
+
className: "px-3 py-1.5 rounded text-xs font-semibold",
|
|
2029
|
+
style: { backgroundColor: "#ffffff", color: "#991b1b" },
|
|
2030
|
+
children: "Fazer login"
|
|
2031
|
+
}
|
|
2032
|
+
),
|
|
2033
|
+
/* @__PURE__ */ jsx17(
|
|
2034
|
+
"button",
|
|
2035
|
+
{
|
|
2036
|
+
type: "button",
|
|
2037
|
+
onClick: dismiss,
|
|
2038
|
+
"aria-label": "Fechar",
|
|
2039
|
+
className: "px-2 py-1 text-xs",
|
|
2040
|
+
style: { color: "#ffffff" },
|
|
2041
|
+
children: "Fechar"
|
|
2042
|
+
}
|
|
2043
|
+
)
|
|
2044
|
+
] })
|
|
2045
|
+
]
|
|
2046
|
+
}
|
|
2047
|
+
);
|
|
2034
2048
|
}
|
|
2035
2049
|
|
|
2036
2050
|
// src/internal/EmailVerifyBanner.tsx
|
|
@@ -2708,6 +2722,29 @@ function PushPrompt2({ texts, onSubscribed, onDeclined, onInstallRequested, clas
|
|
|
2708
2722
|
}
|
|
2709
2723
|
if (state.kind === "ios_needs_install") {
|
|
2710
2724
|
return /* @__PURE__ */ jsxs16("div", { className, role: "region", "aria-label": texts.iosInstallTitle, children: [
|
|
2725
|
+
onDeclined && /* @__PURE__ */ jsx24(
|
|
2726
|
+
"button",
|
|
2727
|
+
{
|
|
2728
|
+
type: "button",
|
|
2729
|
+
onClick: onDeclined,
|
|
2730
|
+
"aria-label": "Fechar",
|
|
2731
|
+
className: "push-prompt-close",
|
|
2732
|
+
style: {
|
|
2733
|
+
position: "absolute",
|
|
2734
|
+
top: 8,
|
|
2735
|
+
right: 8,
|
|
2736
|
+
width: 32,
|
|
2737
|
+
height: 32,
|
|
2738
|
+
border: "none",
|
|
2739
|
+
background: "transparent",
|
|
2740
|
+
fontSize: 20,
|
|
2741
|
+
lineHeight: 1,
|
|
2742
|
+
cursor: "pointer",
|
|
2743
|
+
color: "inherit"
|
|
2744
|
+
},
|
|
2745
|
+
children: "\xD7"
|
|
2746
|
+
}
|
|
2747
|
+
),
|
|
2711
2748
|
/* @__PURE__ */ jsx24("h3", { children: texts.iosInstallTitle }),
|
|
2712
2749
|
/* @__PURE__ */ jsx24("p", { children: texts.iosInstallBody }),
|
|
2713
2750
|
onInstallRequested && texts.iosInstallCta && /* @__PURE__ */ jsx24("button", { onClick: onInstallRequested, children: texts.iosInstallCta })
|
|
@@ -3898,7 +3935,7 @@ function CheckoutPageDefault() {
|
|
|
3898
3935
|
navigate(result.redirect.replace(/^.*\/app\/[^/]+/, ""));
|
|
3899
3936
|
return;
|
|
3900
3937
|
}
|
|
3901
|
-
navigate(
|
|
3938
|
+
navigate("/paywall/pronta");
|
|
3902
3939
|
}
|
|
3903
3940
|
return /* @__PURE__ */ jsx48("div", { className: "flex-1 flex flex-col bg-background min-h-0", children: /* @__PURE__ */ jsxs29("form", { onSubmit, className: "flex-1 flex flex-col min-h-0", children: [
|
|
3904
3941
|
/* @__PURE__ */ jsxs29("div", { className: "flex-1 overflow-y-auto px-5 pt-5 pb-6 space-y-6", children: [
|