@qwanyx/ai-editor 1.5.10 → 1.5.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"OgilvyLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/OgilvyLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAGd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAkB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA8F9D,wBAAgB,0BAA0B,IAAI,aAAa,CAmB1D;AAyED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,eAAe,GAChB,EAAE,oBAAoB,CAAC,aAAa,CAAC,2CAqHrC"}
1
+ {"version":3,"file":"OgilvyLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/OgilvyLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAGd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAkB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA8F9D,wBAAgB,0BAA0B,IAAI,aAAa,CAmB1D;AAyED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,eAAe,GAChB,EAAE,oBAAoB,CAAC,aAAa,CAAC,2CA4HrC"}
@@ -160,13 +160,20 @@ function OgilvyLayout({ section, isEditing, onContentChange, }) {
160
160
  ['--drop-cap-font']: content.dropCap.fontFamily || 'Georgia, serif',
161
161
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
162
162
  .ogilvy-drop-cap .editor-paragraph:first-of-type::first-letter {
163
- float: left;
163
+ -webkit-initial-letter: 3;
164
+ initial-letter: 3;
164
165
  font-size: var(--drop-cap-size, 3em);
165
166
  font-family: var(--drop-cap-font, Georgia, serif);
166
167
  color: var(--drop-cap-color, inherit);
167
- line-height: 0.8;
168
168
  margin-right: 0.1em;
169
- margin-top: 0.1em;
169
+ }
170
+ /* Fallback for browsers without initial-letter support */
171
+ @supports not (initial-letter: 3) {
172
+ .ogilvy-drop-cap .editor-paragraph:first-of-type::first-letter {
173
+ float: left;
174
+ line-height: 0.8;
175
+ margin-top: 0.1em;
176
+ }
170
177
  }
171
178
  ` }), 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 }))) }))] }));
172
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwanyx/ai-editor",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "AI-powered WYSIWYG rich text editor",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",