@qwanyx/ai-editor 1.7.1 → 1.7.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.
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnsLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/ColumnsLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAEd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAkB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAQ9D,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,CAAC,GAAG,CAAC,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,aAAa,CAAA;CACvB;AAcD,wBAAgB,2BAA2B,IAAI,cAAc,CAM5D;AAMD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,eAAe,GAChB,EAAE,oBAAoB,CAAC,cAAc,CAAC,2CA2DtC"}
1
+ {"version":3,"file":"ColumnsLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/ColumnsLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAEd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAkB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAQ9D,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,CAAC,GAAG,CAAC,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,aAAa,CAAA;CACvB;AAcD,wBAAgB,2BAA2B,IAAI,cAAc,CAM5D;AAMD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,eAAe,GAChB,EAAE,oBAAoB,CAAC,cAAc,CAAC,2CA4DtC"}
@@ -38,12 +38,13 @@ function ColumnsLayout({ section, isEditing, onContentChange, }) {
38
38
  }, [content, onContentChange]);
39
39
  return ((0, jsx_runtime_1.jsx)("div", { style: styles.container, children: (0, jsx_runtime_1.jsxs)("div", { className: content.dropCap.enabled ? 'columns-drop-cap' : '', style: {
40
40
  ['--drop-cap-size']: `${content.dropCap.fontSize || 3}em`,
41
+ ['--drop-cap-lines']: `${Math.round(content.dropCap.fontSize || 3)}`,
41
42
  ['--drop-cap-color']: content.dropCap.color || 'inherit',
42
43
  ['--drop-cap-font']: content.dropCap.fontFamily || 'inherit',
43
44
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
44
45
  .columns-drop-cap .editor-paragraph:first-of-type::first-letter {
45
- -webkit-initial-letter: 3;
46
- initial-letter: 3;
46
+ -webkit-initial-letter: var(--drop-cap-lines, 3);
47
+ initial-letter: var(--drop-cap-lines, 3);
47
48
  font-size: var(--drop-cap-size, 3em);
48
49
  font-family: var(--drop-cap-font, inherit);
49
50
  color: var(--drop-cap-color, inherit);
@@ -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;AA6F9D,wBAAgB,0BAA0B,IAAI,aAAa,CAmB1D;AAyED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,eAAe,GAChB,EAAE,oBAAoB,CAAC,aAAa,CAAC,2CA4HrC"}
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;AA6F9D,wBAAgB,0BAA0B,IAAI,aAAa,CAmB1D;AAyED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,eAAe,GAChB,EAAE,oBAAoB,CAAC,aAAa,CAAC,2CA6HrC"}
@@ -155,12 +155,13 @@ function OgilvyLayout({ section, isEditing, onContentChange, }) {
155
155
  };
156
156
  return ((0, jsx_runtime_1.jsxs)("div", { style: styles.container, children: [(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: {
157
157
  ['--drop-cap-size']: `${content.dropCap.fontSize || 3}em`,
158
+ ['--drop-cap-lines']: `${Math.round(content.dropCap.fontSize || 3)}`,
158
159
  ['--drop-cap-color']: content.dropCap.color || 'inherit',
159
160
  ['--drop-cap-font']: content.dropCap.fontFamily || 'inherit',
160
161
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
161
162
  .ogilvy-drop-cap .editor-paragraph:first-of-type::first-letter {
162
- -webkit-initial-letter: 3;
163
- initial-letter: 3;
163
+ -webkit-initial-letter: var(--drop-cap-lines, 3);
164
+ initial-letter: var(--drop-cap-lines, 3);
164
165
  font-size: var(--drop-cap-size, 3em);
165
166
  font-family: var(--drop-cap-font, inherit);
166
167
  color: var(--drop-cap-color, inherit);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwanyx/ai-editor",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "AI-powered WYSIWYG rich text editor",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",