@ai-matrx/sharing 0.1.1 → 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 +12 -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 +29 -26
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +6 -6
- package/dist/core.d.ts +6 -6
- package/dist/core.js +29 -26
- package/dist/core.js.map +1 -1
- package/dist/react.cjs +224 -86
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +24 -3
- package/dist/react.d.ts +24 -3
- package/dist/react.js +225 -86
- package/dist/react.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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
|
+
|
|
8
|
+
## 0.1.2
|
|
9
|
+
|
|
10
|
+
- `ShareLinkPanel` options `linkSettings`, `showLinkDetails`, `showOpenLink`, `extraUrls`, `appOrigin`, `onLinksChange`; `shareLinkUrl`/`shareUrlForLink` take an optional origin (the one share-link manager).
|
|
11
|
+
|
|
12
|
+
- **One ladder implementation.** `normalizePermissionLevel` and `parsePermissionLevel` are now re-exported from `@ai-matrx/data/access` (identical answers for every input; the unrecognised-level log now names `@ai-matrx/data/access` instead of the stale `utils/permissions/levels.ts`). `PERMISSION_LEVEL_RANK` and `permissionLevelRank` stay local: they rank the retired `edit_content` as Edit, which data's do not. Every export unchanged. **Consumer action:** none.
|
|
13
|
+
|
|
3
14
|
## 0.1.1
|
|
4
15
|
|
|
5
16
|
- **"Can't remove it" is a summon overlay (X3).** `offerOwnerChoices` / `ensureRemovable` open `CANT_REMOVE_DIALOG` (`"cantRemoveDialog"`) through the host's overlay doors and await summon's `requestOverlay`; new `requestCantRemove(request): Promise<"hidden" | "closed">` (one screen per record). Removed: `cantRemoveOpener` (kit opener), `CantRemoveDialogHostBody`, the `ensureDialogHosts` env field. New env field `overlays: { open(id, instanceId, data), close(id, instanceId) }`; new public module `./access/react/cantRemoveDialog.render`. **Consumer action:** pass `overlays` to `configureAccessUi` (dispatch summon open/close), register overlay `cantRemoveDialog` with that render; matrx-frontend's own copy (`features/access-gate/cant-remove/*`) then goes.
|
|
@@ -14,3 +25,4 @@ Skeleton release: the name's sections exist (`/core`, `/react`) and export nothi
|
|
|
14
25
|
|
|
15
26
|
None. Do not adopt until a unit ships the API.
|
|
16
27
|
|
|
28
|
+
|
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,
|