@orangecheck/app-design 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/dist/chrome.d.mts +3 -2
- package/dist/chrome.d.ts +3 -2
- package/dist/chrome.js +9 -5
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +9 -5
- package/dist/chrome.mjs.map +1 -1
- package/dist/components.d.mts +6 -4
- package/dist/components.d.ts +6 -4
- package/dist/components.js +170 -152
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +170 -152
- package/dist/components.mjs.map +1 -1
- package/dist/{docs-BB9gK4KF.d.ts → docs-ByUx4t-D.d.ts} +2 -1
- package/dist/{docs-D-T-nHiu.d.mts → docs-CFE5mU_6.d.mts} +2 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +223 -195
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +223 -195
- package/dist/index.mjs.map +1 -1
- package/dist/mdx.d.mts +1 -1
- package/dist/mdx.d.ts +1 -1
- package/dist/mdx.js +7 -2
- package/dist/mdx.js.map +1 -1
- package/dist/mdx.mjs +7 -2
- package/dist/mdx.mjs.map +1 -1
- package/dist/primitives.d.mts +3 -3
- package/dist/primitives.d.ts +3 -3
- package/dist/primitives.js +10 -1
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +10 -1
- package/dist/primitives.mjs.map +1 -1
- package/dist/session.js +1 -1
- package/dist/session.js.map +1 -1
- package/dist/session.mjs +1 -1
- package/dist/session.mjs.map +1 -1
- package/package.json +3 -2
package/dist/chrome.mjs
CHANGED
|
@@ -1231,12 +1231,14 @@ function SignInFrame({
|
|
|
1231
1231
|
error,
|
|
1232
1232
|
fineprint,
|
|
1233
1233
|
brand,
|
|
1234
|
-
home
|
|
1234
|
+
home,
|
|
1235
|
+
protocol: protocol2,
|
|
1235
1236
|
back,
|
|
1236
1237
|
art,
|
|
1237
1238
|
caption,
|
|
1238
1239
|
className
|
|
1239
1240
|
}) {
|
|
1241
|
+
const homeHref = home ?? (protocol2 ? protocolSite(protocol2).pageHref : OCHK_IO);
|
|
1240
1242
|
return /* @__PURE__ */ jsxs(
|
|
1241
1243
|
"main",
|
|
1242
1244
|
{
|
|
@@ -1245,14 +1247,14 @@ function SignInFrame({
|
|
|
1245
1247
|
children: [
|
|
1246
1248
|
/* @__PURE__ */ jsxs("section", { className: "flex flex-col px-4 pb-8 pt-5 sm:px-8 lg:px-14 lg:pt-8", children: [
|
|
1247
1249
|
/* @__PURE__ */ jsxs("header", { className: "flex items-center justify-between gap-4", children: [
|
|
1248
|
-
/* @__PURE__ */ jsxs(Link, { href:
|
|
1250
|
+
/* @__PURE__ */ jsxs(Link, { href: homeHref, className: "w-fit rounded-lg", children: [
|
|
1249
1251
|
brand ?? /* @__PURE__ */ jsx(Lockup, { size: 28 }),
|
|
1250
1252
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: " home" })
|
|
1251
1253
|
] }),
|
|
1252
1254
|
back === void 0 ? /* @__PURE__ */ jsx(
|
|
1253
1255
|
Link,
|
|
1254
1256
|
{
|
|
1255
|
-
href:
|
|
1257
|
+
href: homeHref,
|
|
1256
1258
|
className: "text-[0.9375rem] text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",
|
|
1257
1259
|
children: "Back to home"
|
|
1258
1260
|
}
|
|
@@ -1599,6 +1601,7 @@ function DocsShell({
|
|
|
1599
1601
|
footer ?? /* @__PURE__ */ jsx(OchkIoFooter, {})
|
|
1600
1602
|
] });
|
|
1601
1603
|
}
|
|
1604
|
+
var SiteHomeContext = sharedContext("site-home", void 0);
|
|
1602
1605
|
var OCHK_APP_ACCOUNT = "https://ochk.app/me/account";
|
|
1603
1606
|
function onHistory(change) {
|
|
1604
1607
|
window.addEventListener("popstate", change);
|
|
@@ -1670,6 +1673,7 @@ function ToolShell({
|
|
|
1670
1673
|
children
|
|
1671
1674
|
}) {
|
|
1672
1675
|
const p = protocolSite(protocol2);
|
|
1676
|
+
const homeHref = home ?? p.pageHref;
|
|
1673
1677
|
const app = variant === "app";
|
|
1674
1678
|
const tabs = app ? null : tabsFor([{ items: [...tools] }]);
|
|
1675
1679
|
const about = /* @__PURE__ */ jsxs(
|
|
@@ -1699,7 +1703,7 @@ function ToolShell({
|
|
|
1699
1703
|
SiteHeader,
|
|
1700
1704
|
{
|
|
1701
1705
|
variant: "tool",
|
|
1702
|
-
home:
|
|
1706
|
+
home: homeHref,
|
|
1703
1707
|
product: p.label,
|
|
1704
1708
|
family: protocol2,
|
|
1705
1709
|
nav: tools.map((t) => ({ href: t.href, label: t.label, active: t.active })),
|
|
@@ -1724,7 +1728,7 @@ function ToolShell({
|
|
|
1724
1728
|
{
|
|
1725
1729
|
id: "main-content",
|
|
1726
1730
|
className: cn("min-w-0 flex-1", app ? "flex min-h-0 flex-col" : "px-4 pb-16 pt-8 md:px-8 md:pt-10"),
|
|
1727
|
-
children: app ? children : /* @__PURE__ */ jsx("div", { className: "mx-auto w-full max-w-[72rem]", children })
|
|
1731
|
+
children: /* @__PURE__ */ jsx(SiteHomeContext.Provider, { value: homeHref, children: app ? children : /* @__PURE__ */ jsx("div", { className: "mx-auto w-full max-w-[72rem]", children }) })
|
|
1728
1732
|
}
|
|
1729
1733
|
)
|
|
1730
1734
|
] }),
|