@ai-matrx/sharing 0.1.2 → 0.1.3

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.
@@ -473,6 +473,8 @@ import { ErrorNotice } from "@ai-matrx/design-system";
473
473
  import {
474
474
  archivedExplanation,
475
475
  archivedHeadline,
476
+ archivedOrganizationExplanation,
477
+ archivedOrganizationHeadline,
476
478
  mayRestoreArchived
477
479
  } from "@ai-matrx/data/access";
478
480
  import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
@@ -527,6 +529,7 @@ function headline(context) {
527
529
  const kind = context.entity.label.toLowerCase();
528
530
  switch (context.status) {
529
531
  case "denied":
532
+ if (context.organizationArchived) return archivedOrganizationHeadline(context);
530
533
  return `You don't have access to this ${kind}`;
531
534
  case "deleted":
532
535
  return archivedHeadline(context);
@@ -544,6 +547,7 @@ function explanation(context) {
544
547
  const kind = context.entity.label.toLowerCase();
545
548
  switch (context.status) {
546
549
  case "denied": {
550
+ if (context.organizationArchived) return archivedOrganizationExplanation(context);
547
551
  const owner = context.organization ? context.organization.name : context.owner?.displayName;
548
552
  if (!context.canRequest && context.request?.status !== "pending") {
549
553
  return owner ? `It belongs to ${owner}, and there's no one for us to pass a request to.` : `It belongs to someone else, and there's no one for us to pass a request to.`;
@@ -685,7 +689,7 @@ function AccessDeniedView({
685
689
  }
686
690
  ) : null
687
691
  ] }) : null,
688
- context.status === "denied" && !absolute ? /* @__PURE__ */ jsx4("div", { className: "mt-4", children: /* @__PURE__ */ jsx4(
692
+ context.status === "denied" && !absolute && !context.organizationArchived ? /* @__PURE__ */ jsx4("div", { className: "mt-4", children: /* @__PURE__ */ jsx4(
689
693
  RequestAccessPanel,
690
694
  {
691
695
  context,