@the-portland-company/shell 0.105.0 → 0.106.0

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.
@@ -2626,7 +2626,20 @@ function NavSidebar({
2626
2626
  },
2627
2627
  o.id
2628
2628
  );
2629
- })
2629
+ }),
2630
+ org.createOrgHref ? /* @__PURE__ */ jsxRuntime.jsxs(
2631
+ "a",
2632
+ {
2633
+ href: safeHref(org.createOrgHref),
2634
+ "data-org-create": true,
2635
+ onClick: (e) => e.currentTarget.closest("details")?.removeAttribute("open"),
2636
+ className: "mt-1 flex w-full items-center gap-2.5 border-t border-[color:var(--line)] px-3 py-2 text-left text-sm font-medium text-[color:var(--foreground)] hover:bg-[color:var(--panel)]",
2637
+ children: [
2638
+ /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-[color:var(--line)] text-base leading-none", children: "+" }),
2639
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "New organization" })
2640
+ ]
2641
+ }
2642
+ ) : null
2630
2643
  ] })
2631
2644
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(
2632
2645
  "button",
@@ -4846,7 +4859,10 @@ function FrameBody({
4846
4859
  iconUrl: activeCoreOrg.iconUrl ?? null,
4847
4860
  brandColor: activeCoreOrg.brandColor,
4848
4861
  organizations: coreOrgs,
4849
- onSwitch: chrome?.setOrgId
4862
+ onSwitch: chrome?.setOrgId,
4863
+ // Left-Navigation v34: create another organization without
4864
+ // signing out (Politogy ID's /new-organization).
4865
+ createOrgHref: `${authBaseUrl()}/new-organization${orgIdTail(activeCoreOrg.id) ? `?${ORG_ID_QUERY_PARAM}=${orgIdTail(activeCoreOrg.id)}` : ""}`
4850
4866
  } : chrome?.orgsLoading ? { name: null, id: null, loading: true } : { name: session.accountName, id: session.accountId },
4851
4867
  mode,
4852
4868
  footer,