@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.
- package/CHANGELOG.md +5 -0
- package/dist/access-react.cjs +3 -1
- package/dist/access-react.cjs.map +1 -1
- package/dist/access-react.js +5 -1
- package/dist/access-react.js.map +1 -1
- package/dist/core.cjs +2 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +2 -2
- package/dist/core.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
6
|
+
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/sharing/src`.
|
|
7
|
+
|
|
3
8
|
## 0.1.2
|
|
4
9
|
|
|
5
10
|
- `ShareLinkPanel` options `linkSettings`, `showLinkDetails`, `showOpenLink`, `extraUrls`, `appOrigin`, `onLinksChange`; `shareLinkUrl`/`shareUrlForLink` take an optional origin (the one share-link manager).
|
package/dist/access-react.cjs
CHANGED
|
@@ -578,6 +578,7 @@ function headline(context) {
|
|
|
578
578
|
const kind = context.entity.label.toLowerCase();
|
|
579
579
|
switch (context.status) {
|
|
580
580
|
case "denied":
|
|
581
|
+
if (context.organizationArchived) return (0, import_access6.archivedOrganizationHeadline)(context);
|
|
581
582
|
return `You don't have access to this ${kind}`;
|
|
582
583
|
case "deleted":
|
|
583
584
|
return (0, import_access6.archivedHeadline)(context);
|
|
@@ -595,6 +596,7 @@ function explanation(context) {
|
|
|
595
596
|
const kind = context.entity.label.toLowerCase();
|
|
596
597
|
switch (context.status) {
|
|
597
598
|
case "denied": {
|
|
599
|
+
if (context.organizationArchived) return (0, import_access6.archivedOrganizationExplanation)(context);
|
|
598
600
|
const owner = context.organization ? context.organization.name : context.owner?.displayName;
|
|
599
601
|
if (!context.canRequest && context.request?.status !== "pending") {
|
|
600
602
|
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.`;
|
|
@@ -736,7 +738,7 @@ function AccessDeniedView({
|
|
|
736
738
|
}
|
|
737
739
|
) : null
|
|
738
740
|
] }) : null,
|
|
739
|
-
context.status === "denied" && !absolute ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
741
|
+
context.status === "denied" && !absolute && !context.organizationArchived ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
740
742
|
RequestAccessPanel,
|
|
741
743
|
{
|
|
742
744
|
context,
|