@edifice.io/react 2.5.8-develop-b2school.20260123114940 → 2.5.8-develop-b2school.20260123153909
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.
|
@@ -7,6 +7,7 @@ import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
|
7
7
|
* @property {ID} resourceId - Unique identifier of the resource to share
|
|
8
8
|
* @property {RightStringified[]} resourceRights - Current rights assigned to the resource
|
|
9
9
|
* @property {string} resourceCreatorId - User ID of the resource creator
|
|
10
|
+
* @property {string} resourceCreatorDisplayName - (optional) Name of the resource creator to display
|
|
10
11
|
* @property {ShareRightActionDisplayName[]} [filteredActions] - Optional list of allowed actions to display
|
|
11
12
|
* @property {ShareUrls} [shareUrls] - Optional custom URLs for API endpoints related to sharing operations default endpoints are used if not provided
|
|
12
13
|
* default: {
|
|
@@ -42,6 +43,7 @@ import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
|
42
43
|
* resourceId: '12345',
|
|
43
44
|
* resourceRights: [],
|
|
44
45
|
* resourceCreatorId: 'user-67890',
|
|
46
|
+
* resourceCreatorDisplayName: 'Jim',
|
|
45
47
|
* filteredActions: ['read', 'contrib'],
|
|
46
48
|
* defaultActions: [
|
|
47
49
|
* {
|
|
@@ -61,6 +63,7 @@ export type ShareOptions = {
|
|
|
61
63
|
resourceId: ID;
|
|
62
64
|
resourceRights: RightStringified[];
|
|
63
65
|
resourceCreatorId: string;
|
|
66
|
+
resourceCreatorDisplayName?: string;
|
|
64
67
|
filteredActions?: ShareRightActionDisplayName[];
|
|
65
68
|
shareUrls?: ShareUrls;
|
|
66
69
|
defaultActions?: ShareRightAction[];
|
|
@@ -32,6 +32,7 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
32
32
|
const {
|
|
33
33
|
resourceId,
|
|
34
34
|
resourceCreatorId,
|
|
35
|
+
resourceCreatorDisplayName,
|
|
35
36
|
resourceRights,
|
|
36
37
|
filteredActions,
|
|
37
38
|
shareUrls,
|
|
@@ -125,7 +126,7 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
125
126
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
126
127
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
127
128
|
/* @__PURE__ */ jsx("th", { scope: "row", children: /* @__PURE__ */ jsx(Avatar, { alt: t("explorer.modal.share.avatar.me.alt"), size: "xs", src: userIsAuthor ? myAvatar : getAvatarURL(resourceCreatorId, "user"), variant: "circle" }) }),
|
|
128
|
-
/* @__PURE__ */ jsx("td", { children:
|
|
129
|
+
/* @__PURE__ */ jsx("td", { children: userIsAuthor ? t("share.me") : resourceCreatorDisplayName ?? t("share.author") }),
|
|
129
130
|
shareRightActions.map((shareRightAction) => /* @__PURE__ */ jsx("td", { style: {
|
|
130
131
|
width: "80px"
|
|
131
132
|
}, className: "text-center text-white", children: /* @__PURE__ */ jsx(Checkbox, { checked: !0, disabled: !0 }) }, shareRightAction.displayName)),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.8-develop-b2school.
|
|
3
|
+
"version": "2.5.8-develop-b2school.20260123153909",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -134,9 +134,9 @@
|
|
|
134
134
|
"react-slugify": "^3.0.3",
|
|
135
135
|
"swiper": "^10.1.0",
|
|
136
136
|
"ua-parser-js": "^1.0.36",
|
|
137
|
-
"@edifice.io/bootstrap": "2.5.8-develop-b2school.
|
|
138
|
-
"@edifice.io/
|
|
139
|
-
"@edifice.io/
|
|
137
|
+
"@edifice.io/bootstrap": "2.5.8-develop-b2school.20260123153909",
|
|
138
|
+
"@edifice.io/tiptap-extensions": "2.5.8-develop-b2school.20260123153909",
|
|
139
|
+
"@edifice.io/utilities": "2.5.8-develop-b2school.20260123153909"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
142
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -167,8 +167,8 @@
|
|
|
167
167
|
"vite": "^5.4.11",
|
|
168
168
|
"vite-plugin-dts": "^4.1.0",
|
|
169
169
|
"vite-tsconfig-paths": "^5.0.1",
|
|
170
|
-
"@edifice.io/client": "2.5.8-develop-b2school.
|
|
171
|
-
"@edifice.io/config": "2.5.8-develop-b2school.
|
|
170
|
+
"@edifice.io/client": "2.5.8-develop-b2school.20260123153909",
|
|
171
|
+
"@edifice.io/config": "2.5.8-develop-b2school.20260123153909"
|
|
172
172
|
},
|
|
173
173
|
"peerDependencies": {
|
|
174
174
|
"@react-spring/web": "^9.7.5",
|