@edifice.io/react 2.4.2-develop-b2school-actualites.20251113165447 → 2.4.2-develop-b2school-actualites.20251119110458

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.
@@ -41,6 +41,8 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
41
41
  handleReplyToComment
42
42
  } = useCommentsContext(), replies = (defaultComments == null ? void 0 : defaultComments.filter((comm) => comm.replyTo === comment.id)) ?? [], hasReplies = replies.length > 0, hasAllDeletedReplies = replies.every((reply) => reply.deleted), isEditing = editCommentId === comment.id, handleChangeContent = (event) => {
43
43
  resizeTextarea(), setValue(event.target.value);
44
+ }, handleDeleteComment = (id2) => {
45
+ onDeleteComment(id2), setIsDeleteModalOpen(!1);
44
46
  };
45
47
  return /* @__PURE__ */ jsxs(Fragment, { children: [
46
48
  comment.deleted && hasReplies && !hasAllDeletedReplies && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -83,7 +85,7 @@ const DeleteModal = /* @__PURE__ */ lazy(() => import("./DeleteModal.js")), Comm
83
85
  ] })
84
86
  ] }, id),
85
87
  /* @__PURE__ */ jsx(CommentReplies, { parentComment: comment }),
86
- /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingScreen, { position: !1 }), children: isDeleteModalOpen && /* @__PURE__ */ jsx(DeleteModal, { isOpen: isDeleteModalOpen, onCancel: () => setIsDeleteModalOpen(!1), onSuccess: () => onDeleteComment(id) }) })
88
+ /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingScreen, { position: !1 }), children: isDeleteModalOpen && /* @__PURE__ */ jsx(DeleteModal, { isOpen: isDeleteModalOpen, onCancel: () => setIsDeleteModalOpen(!1), onSuccess: () => handleDeleteComment(id) }) })
87
89
  ] })
88
90
  ] });
89
91
  };
@@ -41,7 +41,7 @@ const EditorPreview = ({
41
41
  /* @__PURE__ */ jsx("div", { onClick: handleMediaClick, tabIndex: hasMediaCallback ? -1 : void 0, role: hasMediaCallback ? "button" : void 0, className: "d-flex align-items-center justify-content-center gap-24 px-32 pt-16", children: medias.slice(0, maxMediaDisplayed).map((media, index) => /* @__PURE__ */ jsxs("div", { className: clsx("position-relative col-12 col-md-4 ", {
42
42
  "d-none d-md-block": index >= 1
43
43
  }), children: [
44
- /* @__PURE__ */ jsx(Image, { alt: media.alt, objectFit: "cover", ratio: "16", className: "rounded", src: media.url, sizes: "" }),
44
+ /* @__PURE__ */ jsx(Image, { alt: media.alt, objectFit: "cover", ratio: "16", className: "rounded", loading: "lazy", src: media.url, sizes: "" }),
45
45
  (index === 0 || index === 2) && medias.length - (index + 1) > 0 && /* @__PURE__ */ jsx("div", { className: clsx("position-absolute top-0 bottom-0 start-0 end-0 d-flex justify-content-center align-items-center rounded text-light bg-dark bg-opacity-50", {
46
46
  "d-flex d-md-none": index === 0,
47
47
  "d-none d-md-flex": index === 2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.4.2-develop-b2school-actualites.20251113165447",
3
+ "version": "2.4.2-develop-b2school-actualites.20251119110458",
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.20251113165447",
135
- "@edifice.io/tiptap-extensions": "2.4.2-develop-b2school-actualites.20251113165447",
136
- "@edifice.io/utilities": "2.4.2-develop-b2school-actualites.20251113165447"
134
+ "@edifice.io/bootstrap": "2.4.2-develop-b2school-actualites.20251119110458",
135
+ "@edifice.io/utilities": "2.4.2-develop-b2school-actualites.20251119110458",
136
+ "@edifice.io/tiptap-extensions": "2.4.2-develop-b2school-actualites.20251119110458"
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.20251113165447",
168
- "@edifice.io/config": "2.4.2-develop-b2school-actualites.20251113165447"
167
+ "@edifice.io/client": "2.4.2-develop-b2school-actualites.20251119110458",
168
+ "@edifice.io/config": "2.4.2-develop-b2school-actualites.20251119110458"
169
169
  },
170
170
  "peerDependencies": {
171
171
  "@react-spring/web": "^9.7.5",