@edifice.io/react 2.3.2-develop-integration.20251006200420 → 2.3.2-develop-integration.20251007111128
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.
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId } from "react";
|
|
3
3
|
import { odeServices } from "@edifice.io/client";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
|
-
import { useForm
|
|
5
|
+
import { useForm } from "react-hook-form";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { TextareaCounter } from "../../../components/TextArea/TextareaCounter.js";
|
|
8
8
|
import ImagePicker from "../../multimedia/ImagePicker/ImagePicker.js";
|
|
@@ -18,7 +18,6 @@ import FormControl from "../../../components/Form/FormControl.js";
|
|
|
18
18
|
import Label from "../../../components/Label/Label.js";
|
|
19
19
|
import Input from "../../../components/Input/Input.js";
|
|
20
20
|
import TextArea from "../../../components/TextArea/TextArea.js";
|
|
21
|
-
import Checkbox from "../../../components/Checkbox/Checkbox.js";
|
|
22
21
|
import Button from "../../../components/Button/Button.js";
|
|
23
22
|
import MediaLibrary from "../../multimedia/MediaLibrary/MediaLibrary.js";
|
|
24
23
|
const DEFAULT_INPUT_MAX_LENGTH = 60, DEFAULT_TEXTAREA_MAX_LENGTH = 400, ResourceModal = ({
|
|
@@ -45,7 +44,6 @@ const DEFAULT_INPUT_MAX_LENGTH = 60, DEFAULT_TEXTAREA_MAX_LENGTH = 400, Resource
|
|
|
45
44
|
register,
|
|
46
45
|
handleSubmit,
|
|
47
46
|
setValue,
|
|
48
|
-
control,
|
|
49
47
|
formState: {
|
|
50
48
|
isSubmitting,
|
|
51
49
|
isValid
|
|
@@ -146,9 +144,10 @@ const DEFAULT_INPUT_MAX_LENGTH = 60, DEFAULT_TEXTAREA_MAX_LENGTH = 400, Resource
|
|
|
146
144
|
}), placeholder: ((_f = customT.placeholder) == null ? void 0 : _f.description) ?? t("explorer.resource.editModal.description.placeholder"), size: "md", maxLength: textareaMaxLength }),
|
|
147
145
|
watchedDescription && /* @__PURE__ */ jsx(TextareaCounter, { content: watchedDescription, maxLength: textareaMaxLength })
|
|
148
146
|
] }),
|
|
149
|
-
application === "blog" && /* @__PURE__ */
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
application === "blog" && /* @__PURE__ */ jsxs(FormControl, { id: "allowReplies", className: "d-flex gap-8 mt-16 mb-8", children: [
|
|
148
|
+
/* @__PURE__ */ jsx(FormControl.Input, { type: "checkbox", defaultChecked: isUpdating ? resource.allowReplies : !1, ...register("allowReplies"), className: "form-check-input mt-0", size: "sm" }),
|
|
149
|
+
/* @__PURE__ */ jsx(FormControl.Label, { className: "form-check-label mb-0", children: "Autoriser les réponses aux commentaires" })
|
|
150
|
+
] })
|
|
152
151
|
] })
|
|
153
152
|
] }),
|
|
154
153
|
typeof children == "function" ? children(resource, isUpdating, watch, setValue, register) : children
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.3.2-develop-integration.
|
|
3
|
+
"version": "2.3.2-develop-integration.20251007111128",
|
|
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.3.2-develop-integration.
|
|
135
|
-
"@edifice.io/tiptap-extensions": "2.3.2-develop-integration.
|
|
136
|
-
"@edifice.io/utilities": "2.3.2-develop-integration.
|
|
134
|
+
"@edifice.io/bootstrap": "2.3.2-develop-integration.20251007111128",
|
|
135
|
+
"@edifice.io/tiptap-extensions": "2.3.2-develop-integration.20251007111128",
|
|
136
|
+
"@edifice.io/utilities": "2.3.2-develop-integration.20251007111128"
|
|
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.3.2-develop-integration.
|
|
168
|
-
"@edifice.io/config": "2.3.2-develop-integration.
|
|
167
|
+
"@edifice.io/client": "2.3.2-develop-integration.20251007111128",
|
|
168
|
+
"@edifice.io/config": "2.3.2-develop-integration.20251007111128"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@react-spring/web": "^9.7.5",
|