@semiont/react-ui 0.4.12 → 0.4.13

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.d.mts CHANGED
@@ -2608,10 +2608,11 @@ interface FooterProps {
2608
2608
  onClose: () => void;
2609
2609
  }>;
2610
2610
  onOpenKeyboardHelp?: () => void;
2611
- apiDocsUrl?: string;
2612
2611
  sourceCodeUrl?: string;
2612
+ /** Show About, Privacy Policy, Terms of Service, Cookie Preferences links. False for desktop apps. */
2613
+ showPolicyLinks?: boolean;
2613
2614
  }
2614
- declare function Footer({ Link, routes, t, CookiePreferences, onOpenKeyboardHelp, apiDocsUrl, sourceCodeUrl }: FooterProps): react_jsx_runtime.JSX.Element;
2615
+ declare function Footer({ Link, routes, t, CookiePreferences, onOpenKeyboardHelp, sourceCodeUrl, showPolicyLinks, }: FooterProps): react_jsx_runtime.JSX.Element;
2615
2616
 
2616
2617
  type TranslateFn$2 = (key: string, params?: Record<string, any>) => string;
2617
2618
  interface NavigationMenuProps {
@@ -3677,7 +3678,7 @@ interface SignInFormProps {
3677
3678
  * When backendUrl is provided (re-auth to known workspace) the URL field is locked.
3678
3679
  * When backendUrl is omitted (new connection) the user enters the URL themselves.
3679
3680
  */
3680
- declare function SignInForm({ onGoogleSignIn, onCredentialsSignIn, backendUrl, error, showCredentialsAuth, isLoading, Link, translations: t, }: SignInFormProps): react_jsx_runtime.JSX.Element;
3681
+ declare function SignInForm({ onGoogleSignIn, onCredentialsSignIn, backendUrl, error, showCredentialsAuth, isLoading, translations: t, }: SignInFormProps): react_jsx_runtime.JSX.Element;
3681
3682
 
3682
3683
  interface SignUpFormProps {
3683
3684
  /**
package/dist/index.mjs CHANGED
@@ -48598,38 +48598,48 @@ function Footer({
48598
48598
  t: t12,
48599
48599
  CookiePreferences,
48600
48600
  onOpenKeyboardHelp,
48601
- apiDocsUrl = "/api/docs",
48602
- sourceCodeUrl = "https://github.com/The-AI-Alliance/semiont"
48601
+ sourceCodeUrl = "https://github.com/The-AI-Alliance/semiont",
48602
+ showPolicyLinks = true
48603
48603
  }) {
48604
48604
  const [showCookiePreferences, setShowCookiePreferences] = useState27(false);
48605
48605
  return /* @__PURE__ */ jsxs36(Fragment9, { children: [
48606
48606
  /* @__PURE__ */ jsx44("footer", { role: "contentinfo", className: "semiont-footer", children: /* @__PURE__ */ jsx44("div", { className: "semiont-footer__container", children: /* @__PURE__ */ jsxs36("div", { className: "semiont-footer__content", children: [
48607
48607
  /* @__PURE__ */ jsx44("div", { className: "semiont-footer__copyright", children: t12("copyright", { year: (/* @__PURE__ */ new Date()).getFullYear() }) }),
48608
48608
  /* @__PURE__ */ jsxs36("div", { className: "semiont-footer__links", children: [
48609
- /* @__PURE__ */ jsx44(
48610
- Link,
48611
- {
48612
- href: routes.about?.() || "/about",
48613
- className: "semiont-footer__link",
48614
- children: t12("about")
48615
- }
48616
- ),
48617
- /* @__PURE__ */ jsx44(
48618
- Link,
48619
- {
48620
- href: routes.privacy?.() || "/privacy",
48621
- className: "semiont-footer__link",
48622
- children: t12("privacyPolicy")
48623
- }
48624
- ),
48625
- CookiePreferences && /* @__PURE__ */ jsx44(
48626
- "button",
48627
- {
48628
- onClick: () => setShowCookiePreferences(true),
48629
- className: "semiont-footer__link",
48630
- children: t12("cookiePreferences")
48631
- }
48632
- ),
48609
+ showPolicyLinks && /* @__PURE__ */ jsxs36(Fragment9, { children: [
48610
+ /* @__PURE__ */ jsx44(
48611
+ Link,
48612
+ {
48613
+ href: routes.about?.() || "/about",
48614
+ className: "semiont-footer__link",
48615
+ children: t12("about")
48616
+ }
48617
+ ),
48618
+ /* @__PURE__ */ jsx44(
48619
+ Link,
48620
+ {
48621
+ href: routes.privacy?.() || "/privacy",
48622
+ className: "semiont-footer__link",
48623
+ children: t12("privacyPolicy")
48624
+ }
48625
+ ),
48626
+ CookiePreferences && /* @__PURE__ */ jsx44(
48627
+ "button",
48628
+ {
48629
+ onClick: () => setShowCookiePreferences(true),
48630
+ className: "semiont-footer__link",
48631
+ children: t12("cookiePreferences")
48632
+ }
48633
+ ),
48634
+ /* @__PURE__ */ jsx44(
48635
+ Link,
48636
+ {
48637
+ href: routes.terms?.() || "/terms",
48638
+ className: "semiont-footer__link",
48639
+ children: t12("termsOfService")
48640
+ }
48641
+ )
48642
+ ] }),
48633
48643
  onOpenKeyboardHelp && /* @__PURE__ */ jsxs36(
48634
48644
  "button",
48635
48645
  {
@@ -48641,24 +48651,6 @@ function Footer({
48641
48651
  ]
48642
48652
  }
48643
48653
  ),
48644
- /* @__PURE__ */ jsx44(
48645
- Link,
48646
- {
48647
- href: routes.terms?.() || "/terms",
48648
- className: "semiont-footer__link",
48649
- children: t12("termsOfService")
48650
- }
48651
- ),
48652
- /* @__PURE__ */ jsx44(
48653
- "a",
48654
- {
48655
- href: apiDocsUrl,
48656
- target: "_blank",
48657
- rel: "noopener noreferrer",
48658
- className: "semiont-footer__link",
48659
- children: t12("apiDocs")
48660
- }
48661
- ),
48662
48654
  /* @__PURE__ */ jsx44(
48663
48655
  "a",
48664
48656
  {
@@ -48671,7 +48663,7 @@ function Footer({
48671
48663
  )
48672
48664
  ] })
48673
48665
  ] }) }) }),
48674
- CookiePreferences && /* @__PURE__ */ jsx44(
48666
+ showPolicyLinks && CookiePreferences && /* @__PURE__ */ jsx44(
48675
48667
  CookiePreferences,
48676
48668
  {
48677
48669
  isOpen: showCookiePreferences,
@@ -55735,7 +55727,8 @@ function usePanelBrowse() {
55735
55727
  const [activePanel, setActivePanel] = useState41(() => {
55736
55728
  if (typeof window !== "undefined") {
55737
55729
  const saved = localStorage.getItem("activeToolbarPanel");
55738
- return saved || null;
55730
+ if (saved) return saved;
55731
+ if ("__TAURI_INTERNALS__" in window) return "knowledge-base";
55739
55732
  }
55740
55733
  return null;
55741
55734
  });
@@ -56741,7 +56734,6 @@ function SignInForm({
56741
56734
  error,
56742
56735
  showCredentialsAuth = false,
56743
56736
  isLoading = false,
56744
- Link,
56745
56737
  translations: t12
56746
56738
  }) {
56747
56739
  const handleGoogleClick = () => {
@@ -56771,12 +56763,7 @@ function SignInForm({
56771
56763
  t12.continueWithGoogle
56772
56764
  ] }),
56773
56765
  /* @__PURE__ */ jsx79("div", { className: "semiont-auth__info", children: showCredentialsAuth ? t12.credentialsAuthEnabled : t12.approvedDomainsOnly })
56774
- ] }) : /* @__PURE__ */ jsx79("div", { className: "semiont-auth__loading", "aria-busy": "true", "aria-live": "polite", children: /* @__PURE__ */ jsx79("div", { style: { height: "200px" } }) }) }),
56775
- /* @__PURE__ */ jsxs68("div", { className: "semiont-auth__links", children: [
56776
- /* @__PURE__ */ jsx79(Link, { href: "/", className: buttonStyles.secondary.base, children: t12.backToHome }),
56777
- /* @__PURE__ */ jsx79(Link, { href: "/about", className: buttonStyles.secondary.base, children: t12.learnMore }),
56778
- /* @__PURE__ */ jsx79(Link, { href: "/auth/signup", className: buttonStyles.primary.base, children: t12.signUpInstead })
56779
- ] })
56766
+ ] }) : /* @__PURE__ */ jsx79("div", { className: "semiont-auth__loading", "aria-busy": "true", "aria-live": "polite", children: /* @__PURE__ */ jsx79("div", { style: { height: "200px" } }) }) })
56780
56767
  ] }) }) });
56781
56768
  }
56782
56769