@qwanyx/ai-editor 1.5.1 → 1.5.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/dist/components/ImageMetadataDialog.d.ts.map +1 -1
- package/dist/components/ImageMetadataDialog.js +1 -1
- package/dist/components/SectionOptionsModal.d.ts.map +1 -1
- package/dist/components/SectionOptionsModal.js +21 -4
- package/dist/layouts/OgilvyLayout.d.ts.map +1 -1
- package/dist/layouts/OgilvyLayout.js +57 -57
- package/dist/types/page.d.ts +6 -0
- package/dist/types/page.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageMetadataDialog.d.ts","sourceRoot":"","sources":["../../src/components/ImageMetadataDialog.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAmID,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,KAAgC,GACjC,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ImageMetadataDialog.d.ts","sourceRoot":"","sources":["../../src/components/ImageMetadataDialog.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAmID,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,KAAgC,GACjC,EAAE,wBAAwB,kDAsM1B;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -171,7 +171,7 @@ function ImageMetadataDialog({ isOpen, onClose, onSave, initialData, title = 'Pr
|
|
|
171
171
|
if (!isOpen)
|
|
172
172
|
return null;
|
|
173
173
|
const canSave = src.trim().length > 0;
|
|
174
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: styles.overlay, onClick: onClose, children: (0, jsx_runtime_1.jsxs)("div", { style: styles.dialog, onClick: (e) => e.stopPropagation(), children: [(0, jsx_runtime_1.jsx)("div", { style: styles.header, children: (0, jsx_runtime_1.jsx)("h3", { style: styles.headerTitle, children: title }) }), (0, jsx_runtime_1.jsxs)("div", { style: styles.content, children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsxs)("label", { style: styles.label, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: styles.labelIcon, children: "link" }), "URL de l'image *"] }), (0, jsx_runtime_1.jsx)("input", { type: "url", value: src, onChange: (e) => {
|
|
174
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: styles.overlay, onClick: onClose, children: (0, jsx_runtime_1.jsxs)("div", { style: styles.dialog, onClick: (e) => e.stopPropagation(), onKeyDown: (e) => e.stopPropagation(), children: [(0, jsx_runtime_1.jsx)("div", { style: styles.header, children: (0, jsx_runtime_1.jsx)("h3", { style: styles.headerTitle, children: title }) }), (0, jsx_runtime_1.jsxs)("div", { style: styles.content, children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsxs)("label", { style: styles.label, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: styles.labelIcon, children: "link" }), "URL de l'image *"] }), (0, jsx_runtime_1.jsx)("input", { type: "url", value: src, onChange: (e) => {
|
|
175
175
|
setSrc(e.target.value);
|
|
176
176
|
setPreviewError(false);
|
|
177
177
|
}, placeholder: "https://example.com/image.jpg", style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), src && !previewError && ((0, jsx_runtime_1.jsx)("img", { src: src, alt: "Preview", style: styles.preview, onError: () => setPreviewError(true) })), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsxs)("label", { style: styles.label, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: styles.labelIcon, children: "title" }), "Titre"] }), (0, jsx_runtime_1.jsx)("input", { type: "text", value: imageTitle, onChange: (e) => setImageTitle(e.target.value), placeholder: "Titre de l'image", style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsxs)("label", { style: styles.label, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: styles.labelIcon, children: "description" }), "Texte alternatif"] }), (0, jsx_runtime_1.jsx)("input", { type: "text", value: alt, onChange: (e) => setAlt(e.target.value), placeholder: "Description de l'image", style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsx)("hr", { style: styles.separator }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsxs)("label", { style: styles.label, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: styles.labelIcon, children: "photo_camera" }), "Photographe"] }), (0, jsx_runtime_1.jsx)("input", { type: "text", value: photographer, onChange: (e) => setPhotographer(e.target.value), placeholder: "Nom du photographe", style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsxs)("label", { style: styles.label, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: styles.labelIcon, children: "copyright" }), "Copyright"] }), (0, jsx_runtime_1.jsx)("input", { type: "text", value: copyright, onChange: (e) => setCopyright(e.target.value), placeholder: "Ex: \u00A9 2024 Nom", style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsxs)("div", { style: { ...styles.field, marginBottom: 0 }, children: [(0, jsx_runtime_1.jsxs)("label", { style: styles.label, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: styles.labelIcon, children: "chat" }), "Commentaire / L\u00E9gende"] }), (0, jsx_runtime_1.jsx)("textarea", { value: comment, onChange: (e) => setComment(e.target.value), placeholder: "L\u00E9gende ou commentaire affich\u00E9 sous l'image", rows: 3, style: styles.textarea, onFocus: handleInputFocus, onBlur: handleInputBlur })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.footer, children: [(0, jsx_runtime_1.jsx)("button", { onClick: onClose, style: styles.cancelButton, children: "Annuler" }), (0, jsx_runtime_1.jsx)("button", { onClick: handleSave, disabled: !canSave, style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionOptionsModal.d.ts","sourceRoot":"","sources":["../../src/components/SectionOptionsModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAOvC,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IACtD,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C;AAgMD,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,eAAe,GAChB,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"SectionOptionsModal.d.ts","sourceRoot":"","sources":["../../src/components/SectionOptionsModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAOvC,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IACtD,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C;AAgMD,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,eAAe,GAChB,EAAE,wBAAwB,kDAua1B;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -204,7 +204,13 @@ function SectionOptionsModal({ isOpen, onClose, section, onUpdateSettings, onUpd
|
|
|
204
204
|
const [columns, setColumns] = (0, react_1.useState)(content.columns || 2);
|
|
205
205
|
const [columnLines, setColumnLines] = (0, react_1.useState)(content.columnLines || 0);
|
|
206
206
|
const [dropCapEnabled, setDropCapEnabled] = (0, react_1.useState)(content.dropCap?.enabled || false);
|
|
207
|
-
|
|
207
|
+
// Ogilvy image options
|
|
208
|
+
const [showImage, setShowImage] = (0, react_1.useState)(content.showImage !== false);
|
|
209
|
+
const [imageWidth, setImageWidth] = (0, react_1.useState)(content.imageWidth || 100);
|
|
210
|
+
const [imageWidthUnit, setImageWidthUnit] = (0, react_1.useState)(content.imageWidthUnit || '%');
|
|
211
|
+
// Ogilvy end comment options
|
|
212
|
+
const [endCommentFontSize, setEndCommentFontSize] = (0, react_1.useState)(content.endCommentFontSize || 14);
|
|
213
|
+
const [endCommentItalic, setEndCommentItalic] = (0, react_1.useState)(content.endCommentItalic || false);
|
|
208
214
|
// Gallery options
|
|
209
215
|
const [galleryLayout, setGalleryLayout] = (0, react_1.useState)(content.layout || 'grid');
|
|
210
216
|
const [imageHeight, setImageHeight] = (0, react_1.useState)(content.imageHeight || 200);
|
|
@@ -222,7 +228,14 @@ function SectionOptionsModal({ isOpen, onClose, section, onUpdateSettings, onUpd
|
|
|
222
228
|
setColumns(content.columns || 2);
|
|
223
229
|
setColumnLines(content.columnLines || 0);
|
|
224
230
|
setDropCapEnabled(content.dropCap?.enabled || false);
|
|
225
|
-
|
|
231
|
+
// Ogilvy image options
|
|
232
|
+
setShowImage(content.showImage !== false);
|
|
233
|
+
setImageWidth(content.imageWidth || 100);
|
|
234
|
+
setImageWidthUnit(content.imageWidthUnit || '%');
|
|
235
|
+
// Ogilvy end comment options
|
|
236
|
+
setEndCommentFontSize(content.endCommentFontSize || 14);
|
|
237
|
+
setEndCommentItalic(content.endCommentItalic || false);
|
|
238
|
+
// Gallery options
|
|
226
239
|
setGalleryLayout(content.layout || 'grid');
|
|
227
240
|
setImageHeight(content.imageHeight || 200);
|
|
228
241
|
setGalleryAlignment(content.alignment || 'left');
|
|
@@ -248,7 +261,11 @@ function SectionOptionsModal({ isOpen, onClose, section, onUpdateSettings, onUpd
|
|
|
248
261
|
columns,
|
|
249
262
|
columnLines: columnLines > 0 ? columnLines : undefined,
|
|
250
263
|
dropCap: { ...(content.dropCap || {}), enabled: dropCapEnabled },
|
|
251
|
-
|
|
264
|
+
showImage,
|
|
265
|
+
imageWidth,
|
|
266
|
+
imageWidthUnit,
|
|
267
|
+
endCommentFontSize,
|
|
268
|
+
endCommentItalic,
|
|
252
269
|
});
|
|
253
270
|
}
|
|
254
271
|
else if (section.layoutType === 'gallery') {
|
|
@@ -272,6 +289,6 @@ function SectionOptionsModal({ isOpen, onClose, section, onUpdateSettings, onUpd
|
|
|
272
289
|
};
|
|
273
290
|
if (!isOpen)
|
|
274
291
|
return null;
|
|
275
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: styles.overlay, onClick: onClose, children: (0, jsx_runtime_1.jsxs)("div", { style: styles.dialog, onClick: (e) => e.stopPropagation(), children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.header, children: [(0, jsx_runtime_1.jsxs)("h3", { style: styles.headerTitle, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '20px' }, children: "tune" }), "Options de la section", (0, jsx_runtime_1.jsx)("span", { style: styles.layoutBadge, children: section.layoutType })] }), (0, jsx_runtime_1.jsx)("button", { style: styles.closeButton, onClick: onClose, children: (0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '20px' }, children: "close" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.content, children: [section.layoutType === 'ogilvy' && ((0, jsx_runtime_1.jsxs)("div", { style: styles.section, children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.sectionTitle, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '18px' }, children: "view_column" }), "Options Ogilvy"] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Colonnes" }), (0, jsx_runtime_1.jsxs)("select", { value: columns, onChange: (e) => setColumns(Number(e.target.value)), style: styles.select, onFocus: handleInputFocus, onBlur: handleInputBlur, children: [(0, jsx_runtime_1.jsx)("option", { value: 2, children: "2 colonnes" }), (0, jsx_runtime_1.jsx)("option", { value: 3, children: "3 colonnes" })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Hauteur (lignes)" }), (0, jsx_runtime_1.jsx)("input", { type: "number", value: columnLines || '', onChange: (e) => setColumnLines(Number(e.target.value) || 0), placeholder: "auto", min: 5, max: 100, style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsx)("div", { style: styles.field, children: (0, jsx_runtime_1.jsxs)("label", { style: styles.checkbox, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: dropCapEnabled, onChange: (e) => setDropCapEnabled(e.target.checked) }), "Lettrine"] }) }), (0, jsx_runtime_1.jsx)("div", { style: styles.field, children: (0, jsx_runtime_1.jsxs)("label", { style: styles.checkbox, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked:
|
|
292
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: styles.overlay, onClick: onClose, children: (0, jsx_runtime_1.jsxs)("div", { style: styles.dialog, onClick: (e) => e.stopPropagation(), children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.header, children: [(0, jsx_runtime_1.jsxs)("h3", { style: styles.headerTitle, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '20px' }, children: "tune" }), "Options de la section", (0, jsx_runtime_1.jsx)("span", { style: styles.layoutBadge, children: section.layoutType })] }), (0, jsx_runtime_1.jsx)("button", { style: styles.closeButton, onClick: onClose, children: (0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '20px' }, children: "close" }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.content, children: [section.layoutType === 'ogilvy' && ((0, jsx_runtime_1.jsxs)("div", { style: styles.section, children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.sectionTitle, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '18px' }, children: "view_column" }), "Options Ogilvy"] }), (0, jsx_runtime_1.jsx)("div", { style: styles.field, children: (0, jsx_runtime_1.jsxs)("label", { style: styles.checkbox, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: showImage, onChange: (e) => setShowImage(e.target.checked) }), "Afficher l'image"] }) }), showImage && ((0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Largeur de l'image" }), (0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', gap: '8px' }, children: [(0, jsx_runtime_1.jsx)("input", { type: "number", value: imageWidth, onChange: (e) => setImageWidth(Number(e.target.value)), min: 10, max: imageWidthUnit === '%' ? 100 : 2000, style: { ...styles.input, flex: 1 }, onFocus: handleInputFocus, onBlur: handleInputBlur }), (0, jsx_runtime_1.jsxs)("select", { value: imageWidthUnit, onChange: (e) => setImageWidthUnit(e.target.value), style: { ...styles.select, width: '80px' }, onFocus: handleInputFocus, onBlur: handleInputBlur, children: [(0, jsx_runtime_1.jsx)("option", { value: "%", children: "%" }), (0, jsx_runtime_1.jsx)("option", { value: "px", children: "px" })] })] })] })), (0, jsx_runtime_1.jsx)("hr", { style: styles.separator }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Colonnes" }), (0, jsx_runtime_1.jsxs)("select", { value: columns, onChange: (e) => setColumns(Number(e.target.value)), style: styles.select, onFocus: handleInputFocus, onBlur: handleInputBlur, children: [(0, jsx_runtime_1.jsx)("option", { value: 2, children: "2 colonnes" }), (0, jsx_runtime_1.jsx)("option", { value: 3, children: "3 colonnes" })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Hauteur (lignes)" }), (0, jsx_runtime_1.jsx)("input", { type: "number", value: columnLines || '', onChange: (e) => setColumnLines(Number(e.target.value) || 0), placeholder: "auto", min: 5, max: 100, style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsx)("div", { style: styles.field, children: (0, jsx_runtime_1.jsxs)("label", { style: styles.checkbox, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: dropCapEnabled, onChange: (e) => setDropCapEnabled(e.target.checked) }), "Lettrine"] }) }), (0, jsx_runtime_1.jsx)("hr", { style: styles.separator }), (0, jsx_runtime_1.jsxs)("div", { style: styles.sectionTitle, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '18px' }, children: "comment" }), "Commentaire de fin"] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Taille de la fonte (px)" }), (0, jsx_runtime_1.jsx)("input", { type: "number", value: endCommentFontSize, onChange: (e) => setEndCommentFontSize(Number(e.target.value)), min: 8, max: 32, style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsx)("div", { style: styles.field, children: (0, jsx_runtime_1.jsxs)("label", { style: styles.checkbox, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: endCommentItalic, onChange: (e) => setEndCommentItalic(e.target.checked) }), "Italique"] }) })] })), section.layoutType === 'gallery' && ((0, jsx_runtime_1.jsxs)("div", { style: styles.section, children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.sectionTitle, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '18px' }, children: "collections" }), "Options Galerie"] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Mode d'affichage" }), (0, jsx_runtime_1.jsxs)("select", { value: galleryLayout, onChange: (e) => setGalleryLayout(e.target.value), style: styles.select, onFocus: handleInputFocus, onBlur: handleInputBlur, children: [(0, jsx_runtime_1.jsx)("option", { value: "grid", children: "Grille (hauteur fixe)" }), (0, jsx_runtime_1.jsx)("option", { value: "masonry", children: "Masonry (largeur fixe)" })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Hauteur des images (px)" }), (0, jsx_runtime_1.jsx)("input", { type: "number", value: imageHeight, onChange: (e) => setImageHeight(Number(e.target.value)), min: 50, max: 800, step: 10, style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Alignement" }), (0, jsx_runtime_1.jsxs)("select", { value: galleryAlignment, onChange: (e) => setGalleryAlignment(e.target.value), style: styles.select, onFocus: handleInputFocus, onBlur: handleInputBlur, children: [(0, jsx_runtime_1.jsx)("option", { value: "left", children: "Gauche" }), (0, jsx_runtime_1.jsx)("option", { value: "center", children: "Centre" }), (0, jsx_runtime_1.jsx)("option", { value: "right", children: "Droite" }), (0, jsx_runtime_1.jsx)("option", { value: "distribute", children: "Distribuer" })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Espacement (px)" }), (0, jsx_runtime_1.jsx)("input", { type: "number", value: galleryGap, onChange: (e) => setGalleryGap(Number(e.target.value)), min: 0, max: 50, style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] }), (0, jsx_runtime_1.jsx)("div", { style: styles.field, children: (0, jsx_runtime_1.jsxs)("label", { style: styles.checkbox, children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: showCaptions, onChange: (e) => setShowCaptions(e.target.checked) }), "Afficher les legendes"] }) }), showCaptions && ((0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Alignement des legendes" }), (0, jsx_runtime_1.jsxs)("select", { value: captionAlign, onChange: (e) => setCaptionAlign(e.target.value), style: styles.select, onFocus: handleInputFocus, onBlur: handleInputBlur, children: [(0, jsx_runtime_1.jsx)("option", { value: "left", children: "Gauche" }), (0, jsx_runtime_1.jsx)("option", { value: "right", children: "Droite" })] })] }))] })), (0, jsx_runtime_1.jsx)("hr", { style: styles.separator }), (0, jsx_runtime_1.jsxs)("div", { style: styles.section, children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.sectionTitle, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: { fontSize: '18px' }, children: "palette" }), "Apparence"] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsx)("label", { style: styles.label, children: "Couleur de fond" }), (0, jsx_runtime_1.jsxs)("div", { style: styles.colorRow, children: [(0, jsx_runtime_1.jsx)("input", { type: "color", value: backgroundColor || '#ffffff', onChange: (e) => setBackgroundColor(e.target.value), style: styles.colorInput }), (0, jsx_runtime_1.jsx)("input", { type: "text", value: backgroundColor, onChange: (e) => setBackgroundColor(e.target.value), placeholder: "transparent", style: { ...styles.input, flex: 1 }, onFocus: handleInputFocus, onBlur: handleInputBlur }), (0, jsx_runtime_1.jsx)("button", { style: styles.resetButton, onClick: () => setBackgroundColor(''), children: "Reset" })] })] }), (0, jsx_runtime_1.jsx)(PaddingEditor_1.PaddingEditor, { value: padding, onChange: setPadding, label: "Padding" })] }), (0, jsx_runtime_1.jsx)("hr", { style: styles.separator }), (0, jsx_runtime_1.jsxs)("div", { style: styles.field, children: [(0, jsx_runtime_1.jsxs)("label", { style: styles.label, children: [(0, jsx_runtime_1.jsx)("span", { className: "material-icons", style: styles.labelIcon, children: "code" }), "Classe CSS"] }), (0, jsx_runtime_1.jsx)("input", { type: "text", value: className, onChange: (e) => setClassName(e.target.value), placeholder: "ex: my-custom-class", style: styles.input, onFocus: handleInputFocus, onBlur: handleInputBlur })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: styles.footer, children: [(0, jsx_runtime_1.jsx)("button", { style: { ...styles.button, ...styles.cancelButton }, onClick: onClose, children: "Annuler" }), (0, jsx_runtime_1.jsx)("button", { style: { ...styles.button, ...styles.saveButton }, onClick: handleSave, children: "Enregistrer" })] })] }) }));
|
|
276
293
|
}
|
|
277
294
|
exports.default = SectionOptionsModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OgilvyLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/OgilvyLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAId,MAAM,eAAe,CAAA;AACtB,OAAO,EAAkB,oBAAoB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"OgilvyLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/OgilvyLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAId,MAAM,eAAe,CAAA;AACtB,OAAO,EAAkB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA+H9D,wBAAgB,0BAA0B,IAAI,aAAa,CAqB1D;AA0PD,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,eAAe,GAChB,EAAE,oBAAoB,CAAC,aAAa,CAAC,2CAoIrC"}
|
|
@@ -9,6 +9,7 @@ const page_1 = require("../types/page");
|
|
|
9
9
|
const index_1 = require("./index");
|
|
10
10
|
const RichTextEditor_1 = require("../components/RichTextEditor");
|
|
11
11
|
const RichTextViewer_1 = require("../components/RichTextViewer");
|
|
12
|
+
const ImageMetadataDialog_1 = require("../components/ImageMetadataDialog");
|
|
12
13
|
// ============================================
|
|
13
14
|
// Styles
|
|
14
15
|
// ============================================
|
|
@@ -111,6 +112,10 @@ const styles = {
|
|
|
111
112
|
paddingTop: '1rem',
|
|
112
113
|
marginTop: '1rem',
|
|
113
114
|
},
|
|
115
|
+
endComment: {
|
|
116
|
+
marginTop: '1.5rem',
|
|
117
|
+
color: '#555',
|
|
118
|
+
},
|
|
114
119
|
editableField: {
|
|
115
120
|
border: '1px solid transparent',
|
|
116
121
|
borderRadius: '4px',
|
|
@@ -130,14 +135,20 @@ function createDefaultOgilvyContent() {
|
|
|
130
135
|
src: '',
|
|
131
136
|
altText: '',
|
|
132
137
|
},
|
|
133
|
-
|
|
134
|
-
|
|
138
|
+
showImage: true,
|
|
139
|
+
imageWidth: 100,
|
|
140
|
+
imageWidthUnit: '%',
|
|
141
|
+
legend: '', // Deprecated, kept for backward compatibility
|
|
142
|
+
legendAsterisk: false, // Deprecated, kept for backward compatibility
|
|
135
143
|
title: 'Titre de la section',
|
|
136
144
|
subtitle: 'Sous-titre descriptif',
|
|
137
145
|
bodyText: '',
|
|
138
146
|
columns: 2,
|
|
139
147
|
dropCap: { ...page_1.DEFAULT_DROP_CAP },
|
|
140
148
|
footnote: '',
|
|
149
|
+
endComment: '',
|
|
150
|
+
endCommentFontSize: 14,
|
|
151
|
+
endCommentItalic: false,
|
|
141
152
|
};
|
|
142
153
|
}
|
|
143
154
|
function EditableText({ value, onChange, isEditing, placeholder = 'Cliquez pour éditer...', style = {}, inputStyle = {}, multiline = false, as: Component = 'p', }) {
|
|
@@ -159,69 +170,47 @@ function EditableText({ value, onChange, isEditing, placeholder = 'Cliquez pour
|
|
|
159
170
|
}
|
|
160
171
|
return ((0, jsx_runtime_1.jsx)("input", { type: "text", value: value, onChange: (e) => onChange(e.target.value), placeholder: placeholder, style: combinedStyle, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false) }));
|
|
161
172
|
}
|
|
162
|
-
function ImagePicker({ image, onChange, isEditing }) {
|
|
173
|
+
function ImagePicker({ image, onChange, isEditing, imageWidth, imageWidthUnit }) {
|
|
163
174
|
const [showDialog, setShowDialog] = (0, react_1.useState)(false);
|
|
164
|
-
const [tempUrl, setTempUrl] = (0, react_1.useState)(image.src);
|
|
165
175
|
const handleClick = () => {
|
|
166
176
|
if (isEditing) {
|
|
167
|
-
setTempUrl(image.src);
|
|
168
177
|
setShowDialog(true);
|
|
169
178
|
}
|
|
170
179
|
};
|
|
171
|
-
const handleSave = () => {
|
|
172
|
-
onChange({
|
|
180
|
+
const handleSave = (metadata) => {
|
|
181
|
+
onChange({
|
|
182
|
+
src: metadata.src,
|
|
183
|
+
altText: metadata.alt,
|
|
184
|
+
title: metadata.title,
|
|
185
|
+
photographer: metadata.photographer,
|
|
186
|
+
copyright: metadata.copyright,
|
|
187
|
+
comment: metadata.comment,
|
|
188
|
+
});
|
|
173
189
|
setShowDialog(false);
|
|
174
190
|
};
|
|
191
|
+
const imageStyle = {
|
|
192
|
+
...styles.image,
|
|
193
|
+
width: `${imageWidth}${imageWidthUnit}`,
|
|
194
|
+
cursor: isEditing ? 'pointer' : 'default',
|
|
195
|
+
};
|
|
175
196
|
if (!image.src) {
|
|
176
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: styles.imagePlaceholder, onClick: handleClick, children: isEditing ? 'Cliquez pour ajouter une image' : 'Aucune image' }),
|
|
197
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: styles.imagePlaceholder, onClick: handleClick, children: isEditing ? 'Cliquez pour ajouter une image' : 'Aucune image' }), (0, jsx_runtime_1.jsx)(ImageMetadataDialog_1.ImageMetadataDialog, { isOpen: showDialog, onClose: () => setShowDialog(false), onSave: handleSave, initialData: {
|
|
198
|
+
src: '',
|
|
199
|
+
alt: '',
|
|
200
|
+
title: '',
|
|
201
|
+
photographer: '',
|
|
202
|
+
copyright: '',
|
|
203
|
+
comment: '',
|
|
204
|
+
} })] }));
|
|
177
205
|
}
|
|
178
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: styles.imageContainer, children: (0, jsx_runtime_1.jsx)("img", { src: image.src, alt: image.altText || '', style: {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
top: 0,
|
|
187
|
-
left: 0,
|
|
188
|
-
right: 0,
|
|
189
|
-
bottom: 0,
|
|
190
|
-
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
191
|
-
display: 'flex',
|
|
192
|
-
alignItems: 'center',
|
|
193
|
-
justifyContent: 'center',
|
|
194
|
-
zIndex: 1000,
|
|
195
|
-
}, onClick: onCancel, children: (0, jsx_runtime_1.jsxs)("div", { style: {
|
|
196
|
-
backgroundColor: 'white',
|
|
197
|
-
padding: '1.5rem',
|
|
198
|
-
borderRadius: '8px',
|
|
199
|
-
minWidth: '400px',
|
|
200
|
-
}, onClick: (e) => e.stopPropagation(), children: [(0, jsx_runtime_1.jsx)("h3", { style: { margin: '0 0 1rem 0' }, children: "URL de l'image" }), (0, jsx_runtime_1.jsx)("input", { type: "text", value: url, onChange: (e) => onUrlChange(e.target.value), placeholder: "https://...", style: {
|
|
201
|
-
width: '100%',
|
|
202
|
-
padding: '0.5rem',
|
|
203
|
-
marginBottom: '1rem',
|
|
204
|
-
border: '1px solid #ccc',
|
|
205
|
-
borderRadius: '4px',
|
|
206
|
-
} }), url && ((0, jsx_runtime_1.jsx)("img", { src: url, alt: "Preview", style: {
|
|
207
|
-
maxWidth: '100%',
|
|
208
|
-
maxHeight: '200px',
|
|
209
|
-
marginBottom: '1rem',
|
|
210
|
-
display: 'block',
|
|
211
|
-
} })), (0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', gap: '0.5rem', justifyContent: 'flex-end' }, children: [(0, jsx_runtime_1.jsx)("button", { onClick: onCancel, style: {
|
|
212
|
-
padding: '0.5rem 1rem',
|
|
213
|
-
border: '1px solid #ccc',
|
|
214
|
-
borderRadius: '4px',
|
|
215
|
-
backgroundColor: 'white',
|
|
216
|
-
cursor: 'pointer',
|
|
217
|
-
}, children: "Annuler" }), (0, jsx_runtime_1.jsx)("button", { onClick: onSave, style: {
|
|
218
|
-
padding: '0.5rem 1rem',
|
|
219
|
-
border: 'none',
|
|
220
|
-
borderRadius: '4px',
|
|
221
|
-
backgroundColor: '#007bff',
|
|
222
|
-
color: 'white',
|
|
223
|
-
cursor: 'pointer',
|
|
224
|
-
}, children: "Enregistrer" })] })] }) }));
|
|
206
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: { ...styles.imageContainer, width: `${imageWidth}${imageWidthUnit}` }, children: (0, jsx_runtime_1.jsx)("img", { src: image.src, alt: image.altText || '', style: imageStyle, onClick: handleClick }) }), (0, jsx_runtime_1.jsx)(ImageMetadataDialog_1.ImageMetadataDialog, { isOpen: showDialog, onClose: () => setShowDialog(false), onSave: handleSave, initialData: {
|
|
207
|
+
src: image.src,
|
|
208
|
+
alt: image.altText || '',
|
|
209
|
+
title: image.title || '',
|
|
210
|
+
photographer: image.photographer || '',
|
|
211
|
+
copyright: image.copyright || '',
|
|
212
|
+
comment: image.comment || '',
|
|
213
|
+
} })] }));
|
|
225
214
|
}
|
|
226
215
|
function DropCapText({ text, dropCap }) {
|
|
227
216
|
if (!text || !dropCap.enabled) {
|
|
@@ -265,13 +254,24 @@ function Columns({ text, columns, dropCap }) {
|
|
|
265
254
|
// ============================================
|
|
266
255
|
function OgilvyLayout({ section, isEditing, onContentChange, }) {
|
|
267
256
|
const content = section.content;
|
|
257
|
+
// Defaults for backward compatibility
|
|
258
|
+
const showImage = content.showImage !== false;
|
|
259
|
+
const imageWidth = content.imageWidth || 100;
|
|
260
|
+
const imageWidthUnit = content.imageWidthUnit || '%';
|
|
261
|
+
const endCommentFontSize = content.endCommentFontSize || 14;
|
|
262
|
+
const endCommentItalic = content.endCommentItalic || false;
|
|
268
263
|
const updateField = (0, react_1.useCallback)((field, value) => {
|
|
269
264
|
onContentChange({
|
|
270
265
|
...content,
|
|
271
266
|
[field]: value,
|
|
272
267
|
});
|
|
273
268
|
}, [content, onContentChange]);
|
|
274
|
-
|
|
269
|
+
const endCommentStyle = {
|
|
270
|
+
...styles.endComment,
|
|
271
|
+
fontSize: `${endCommentFontSize}px`,
|
|
272
|
+
fontStyle: endCommentItalic ? 'italic' : 'normal',
|
|
273
|
+
};
|
|
274
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: styles.container, children: [showImage && ((0, jsx_runtime_1.jsx)(ImagePicker, { image: content.image, onChange: (img) => updateField('image', img), isEditing: isEditing, imageWidth: imageWidth, imageWidthUnit: imageWidthUnit })), (0, jsx_runtime_1.jsxs)("div", { style: styles.titleContainer, children: [(0, jsx_runtime_1.jsx)(EditableText, { value: content.title, onChange: (v) => updateField('title', v), isEditing: isEditing, placeholder: "Titre", style: styles.title, inputStyle: styles.titleInput, as: "h1" }), (0, jsx_runtime_1.jsx)(EditableText, { value: content.subtitle, onChange: (v) => updateField('subtitle', v), isEditing: isEditing, placeholder: "Sous-titre", style: styles.subtitle, inputStyle: styles.subtitleInput, as: "h2" })] }), (0, jsx_runtime_1.jsxs)("div", { className: content.dropCap.enabled ? 'ogilvy-drop-cap' : '', style: {
|
|
275
275
|
['--drop-cap-size']: `${content.dropCap.fontSize || 3}em`,
|
|
276
276
|
['--drop-cap-color']: content.dropCap.color || 'inherit',
|
|
277
277
|
['--drop-cap-font']: content.dropCap.fontFamily || 'Georgia, serif',
|
|
@@ -285,7 +285,7 @@ function OgilvyLayout({ section, isEditing, onContentChange, }) {
|
|
|
285
285
|
margin-right: 0.1em;
|
|
286
286
|
margin-top: 0.1em;
|
|
287
287
|
}
|
|
288
|
-
` }), isEditing ? ((0, jsx_runtime_1.jsx)(RichTextEditor_1.RichTextEditor, { initialContent: content.bodyText, onChange: (_html, json) => updateField('bodyText', json), placeholder: "Corps du texte...", columns: content.columns, minHeight: content.columnLines ? `calc(${content.columnLines * 1.7}em + 60px)` : "200px", autoGrow: !content.columnLines })) : ((0, jsx_runtime_1.jsx)(RichTextViewer_1.RichTextViewer, { content: content.bodyText, columns: content.columns }))] }), (content.footnote || (isEditing && content.legendAsterisk)) && ((0, jsx_runtime_1.jsx)("div", { style: styles.footnote, children: (0, jsx_runtime_1.jsx)(EditableText, { value: content.footnote || '', onChange: (v) => updateField('footnote', v), isEditing: isEditing, placeholder: "* Note explicative...", style: styles.footnote }) }))] }));
|
|
288
|
+
` }), isEditing ? ((0, jsx_runtime_1.jsx)(RichTextEditor_1.RichTextEditor, { initialContent: content.bodyText, onChange: (_html, json) => updateField('bodyText', json), placeholder: "Corps du texte...", columns: content.columns, minHeight: content.columnLines ? `calc(${content.columnLines * 1.7}em + 60px)` : "200px", autoGrow: !content.columnLines })) : ((0, jsx_runtime_1.jsx)(RichTextViewer_1.RichTextViewer, { content: content.bodyText, columns: content.columns }))] }), (content.footnote || (isEditing && content.legendAsterisk)) && ((0, jsx_runtime_1.jsx)("div", { style: styles.footnote, children: (0, jsx_runtime_1.jsx)(EditableText, { value: content.footnote || '', onChange: (v) => updateField('footnote', v), isEditing: isEditing, placeholder: "* Note explicative...", style: styles.footnote }) })), (content.endComment || isEditing) && ((0, jsx_runtime_1.jsx)("div", { style: endCommentStyle, children: isEditing ? ((0, jsx_runtime_1.jsx)(RichTextEditor_1.RichTextEditor, { initialContent: content.endComment || '', onChange: (_html, json) => updateField('endComment', json), placeholder: "Commentaire de fin de section...", minHeight: "80px", autoGrow: true })) : (content.endComment && ((0, jsx_runtime_1.jsx)(RichTextViewer_1.RichTextViewer, { content: content.endComment }))) }))] }));
|
|
289
289
|
}
|
|
290
290
|
// ============================================
|
|
291
291
|
// Register Layout
|
package/dist/types/page.d.ts
CHANGED
|
@@ -54,6 +54,9 @@ export interface Section<T = unknown> {
|
|
|
54
54
|
}
|
|
55
55
|
export interface OgilvyContent {
|
|
56
56
|
image: ImageData;
|
|
57
|
+
showImage: boolean;
|
|
58
|
+
imageWidth: number;
|
|
59
|
+
imageWidthUnit: '%' | 'px';
|
|
57
60
|
legend: string;
|
|
58
61
|
legendAsterisk: boolean;
|
|
59
62
|
title: string;
|
|
@@ -63,6 +66,9 @@ export interface OgilvyContent {
|
|
|
63
66
|
columnLines?: number;
|
|
64
67
|
dropCap: DropCapConfig;
|
|
65
68
|
footnote?: string;
|
|
69
|
+
endComment?: string;
|
|
70
|
+
endCommentFontSize?: number;
|
|
71
|
+
endCommentItalic?: boolean;
|
|
66
72
|
}
|
|
67
73
|
export interface GalleryContent {
|
|
68
74
|
images: GalleryImage[];
|
package/dist/types/page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/types/page.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAKnD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAOnD,CAAC;AAMF,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,MAAM,GACN,YAAY,GACZ,aAAa,GACb,UAAU,GACV,YAAY,GACZ,SAAS,GACT,UAAU,CAAC;AAEf,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IAExB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,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