@edifice.io/react 2.4.2-develop-b2school-actualites.20251124104623 → 2.4.2-develop-b2school-actualites.20251124143817

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.
@@ -110,7 +110,7 @@ interface ShareResourceProps {
110
110
  * ```
111
111
  */
112
112
  export interface ShareResourcesRef {
113
- handleShare: () => void;
113
+ handleShare: (notify?: boolean) => void;
114
114
  isSharing: () => boolean;
115
115
  }
116
116
  /**
@@ -54,7 +54,7 @@ export default function useShare({ resourceId, resourceRights, resourceCreatorId
54
54
  currentIsAuthor: () => boolean;
55
55
  myAvatar: string;
56
56
  handleDeleteRow: (shareRight: ShareRight) => void;
57
- handleShare: () => Promise<void>;
57
+ handleShare: (notify?: boolean) => Promise<void>;
58
58
  toggleRight: (shareRight: ShareRight, actionName: ShareRightActionDisplayName) => void;
59
59
  isDirty: boolean;
60
60
  };
@@ -149,7 +149,7 @@ function useShare({
149
149
  }
150
150
  });
151
151
  },
152
- handleShare: async () => {
152
+ handleShare: async (notify = !0) => {
153
153
  dispatch({
154
154
  type: "isSharing",
155
155
  payload: !0
@@ -175,10 +175,10 @@ function useShare({
175
175
  resourceId,
176
176
  rights: shares
177
177
  });
178
- notifySuccess(result);
178
+ notify && notifySuccess(result);
179
179
  } else {
180
180
  const result = await odeServices.share().saveRights(appCode, resourceId, shares, urls);
181
- notifySuccess(result);
181
+ notify && notifySuccess(result);
182
182
  }
183
183
  urls != null && urls.getResourceRights && odeServices.cache().clearCache(urls.getResourceRights), onSuccess();
184
184
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.4.2-develop-b2school-actualites.20251124104623",
3
+ "version": "2.4.2-develop-b2school-actualites.20251124143817",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -131,9 +131,9 @@
131
131
  "react-slugify": "^3.0.3",
132
132
  "swiper": "^10.1.0",
133
133
  "ua-parser-js": "^1.0.36",
134
- "@edifice.io/bootstrap": "2.4.2-develop-b2school-actualites.20251124104623",
135
- "@edifice.io/tiptap-extensions": "2.4.2-develop-b2school-actualites.20251124104623",
136
- "@edifice.io/utilities": "2.4.2-develop-b2school-actualites.20251124104623"
134
+ "@edifice.io/bootstrap": "2.4.2-develop-b2school-actualites.20251124143817",
135
+ "@edifice.io/utilities": "2.4.2-develop-b2school-actualites.20251124143817",
136
+ "@edifice.io/tiptap-extensions": "2.4.2-develop-b2school-actualites.20251124143817"
137
137
  },
138
138
  "devDependencies": {
139
139
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -164,8 +164,8 @@
164
164
  "vite": "^5.4.11",
165
165
  "vite-plugin-dts": "^4.1.0",
166
166
  "vite-tsconfig-paths": "^5.0.1",
167
- "@edifice.io/client": "2.4.2-develop-b2school-actualites.20251124104623",
168
- "@edifice.io/config": "2.4.2-develop-b2school-actualites.20251124104623"
167
+ "@edifice.io/config": "2.4.2-develop-b2school-actualites.20251124143817",
168
+ "@edifice.io/client": "2.4.2-develop-b2school-actualites.20251124143817"
169
169
  },
170
170
  "peerDependencies": {
171
171
  "@react-spring/web": "^9.7.5",