nextgen-block-editor 0.5.0 → 0.5.1

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/index.cjs CHANGED
@@ -79,22 +79,40 @@ function renderFrameMarkup(data) {
79
79
  const device = data.device && ["iphone", "samsung", "macbook", "laptop", "browser"].includes(data.device) ? data.device : "iphone";
80
80
  const src = String(data.src || "").trim();
81
81
  const isIframe = data.contentType === "url";
82
- const inner = !src ? '<div class="editor-frame-empty">Add an image or URL to preview inside the device frame</div>' : isIframe ? `<iframe src="${escHtml(src)}" title="${escHtml(data.caption || device)}" loading="lazy"></iframe>` : `<img src="${escHtml(src)}" alt="${escHtml(data.caption || device)}" loading="lazy" />`;
83
- let chrome = "";
82
+ const inner = !src ? `<div class="editor-frame-empty">
83
+ <svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" style="opacity:0.45"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="m21 15-5-5L5 21"/></svg>
84
+ <span>Add an image or URL to preview</span>
85
+ </div>` : isIframe ? `<iframe src="${escHtml(src)}" title="${escHtml(data.caption || device)}" loading="lazy"></iframe>` : `<img src="${escHtml(src)}" alt="${escHtml(data.caption || device)}" loading="lazy" />`;
86
+ let chromeTop = "";
87
+ let chromeBottom = "";
84
88
  if (device === "iphone") {
85
- chrome = '<div class="editor-frame-island" aria-hidden="true"></div>';
89
+ chromeTop = '<div class="editor-frame-statusbar"><span>9:41</span><div class="editor-frame-island" aria-hidden="true"><span></span></div><span>5G \u25AE\u25AE\u25AE</span></div>';
90
+ chromeBottom = '<div class="editor-frame-homebar" aria-hidden="true"></div>';
86
91
  } else if (device === "samsung") {
87
- chrome = '<div class="editor-frame-punch" aria-hidden="true"></div>';
92
+ chromeTop = '<div class="editor-frame-statusbar"><span>12:45</span><div class="editor-frame-punch" aria-hidden="true"></div><span>5G 100%</span></div>';
93
+ chromeBottom = '<div class="editor-frame-homebar is-pill" aria-hidden="true"></div>';
88
94
  } else if (device === "browser") {
89
- chrome = `<div class="editor-frame-browser-bar"><span class="editor-frame-dots"><i></i><i></i><i></i></span><span class="editor-frame-addr">${escHtml(
90
- data.address || src || "https://example.com"
91
- )}</span></div>`;
95
+ chromeTop = `<div class="editor-frame-browser-bar">
96
+ <span class="editor-frame-dots"><i></i><i></i><i></i></span>
97
+ <span class="editor-frame-nav-icons">\u2190 \u2192 \u21BB</span>
98
+ <span class="editor-frame-addr">\u{1F512} ${escHtml(data.address || src || "https://nextgen-editor.dev")}</span>
99
+ </div>`;
100
+ } else if (device === "macbook") {
101
+ chromeTop = '<div class="editor-frame-notch" aria-hidden="true"><span></span></div>';
92
102
  } else {
93
- chrome = '<div class="editor-frame-cam" aria-hidden="true"></div>';
103
+ chromeTop = '<div class="editor-frame-cam" aria-hidden="true"></div>';
94
104
  }
95
- const base = device === "macbook" || device === "laptop" ? '<div class="editor-frame-base" aria-hidden="true"></div>' : "";
105
+ const base = device === "macbook" || device === "laptop" ? `<div class="editor-frame-base is-${device}" aria-hidden="true"><div class="editor-frame-hinge"></div></div>` : "";
96
106
  const caption = data.caption ? `<figcaption class="editor-frame-caption">${escHtml(data.caption)}</figcaption>` : "";
97
- return `<figure class="editor-frame-block" data-device="${device}"><div class="editor-frame-shell is-${device}">${chrome}<div class="editor-frame-screen">${inner}</div></div>${base}${caption}</figure>`;
107
+ return `<figure class="editor-frame-block" data-device="${device}">
108
+ <div class="editor-frame-shell is-${device}">
109
+ ${chromeTop}
110
+ <div class="editor-frame-screen">${inner}</div>
111
+ ${chromeBottom}
112
+ </div>
113
+ ${base}
114
+ ${caption}
115
+ </figure>`;
98
116
  }
99
117
  var FrameTool = class {
100
118
  data;
@@ -561,7 +579,7 @@ var ChangelogTool = class {
561
579
  const row = document.createElement("div");
562
580
  row.className = "editor-changelog-row";
563
581
  const select = document.createElement("select");
564
- select.className = "cdx-input editor-form-select";
582
+ select.className = `cdx-input editor-form-select editor-changelog-select is-${item.kind}`;
565
583
  ["added", "changed", "fixed"].forEach((k) => {
566
584
  const opt = document.createElement("option");
567
585
  opt.value = k;
@@ -571,6 +589,7 @@ var ChangelogTool = class {
571
589
  });
572
590
  select.addEventListener("change", () => {
573
591
  item.kind = select.value;
592
+ select.className = `cdx-input editor-form-select editor-changelog-select is-${item.kind}`;
574
593
  });
575
594
  const text = createInput("text", "cdx-input", "Change description", item.text, (v) => {
576
595
  item.text = v;
@@ -611,26 +630,76 @@ var ChangelogTool = class {
611
630
  function renderSocialMarkup(d) {
612
631
  const platform = d.platform && ["x", "linkedin", "instagram"].includes(d.platform) ? d.platform : "x";
613
632
  const align = d.align && ["left", "center", "right"].includes(d.align) ? d.align : "center";
614
- const badge = platform === "linkedin" ? "in LinkedIn" : platform === "instagram" ? "\u25CE Instagram" : "\u{1D54F} Post";
633
+ const author = escHtml(d.author || "Alex Rivera");
634
+ const handle = escHtml(d.handle || "@alexrivera");
635
+ const role = escHtml(d.role || d.handle || "Staff Engineer at NextGen");
636
+ const date = escHtml(d.date || "2h");
637
+ const text = escHtml(d.text || "");
615
638
  const initials = String(d.author || "A").trim().slice(0, 2).toUpperCase();
616
- return `<div class="editor-social-wrap" data-align="${align}"><blockquote class="editor-social-card is-${platform}">
617
- <div class="editor-social-top">
618
- <div class="editor-social-avatar" aria-hidden="true">${escHtml(initials)}</div>
619
- <div class="editor-social-meta">
620
- <strong>${escHtml(d.author || "Alex Rivera")}</strong>
621
- <span>${escHtml(platform === "linkedin" ? d.role || d.handle || "Product Engineer" : d.handle || "@alexrivera")}${d.date ? ` \xB7 ${escHtml(d.date)}` : ""}</span>
622
- </div>
623
- <span class="editor-social-platform">${badge}</span>
624
- </div>
625
- ${platform === "instagram" && d.imageUrl ? `<img class="editor-social-media" src="${escHtml(d.imageUrl)}" alt="" loading="lazy" />` : ""}
626
- <p class="editor-social-text">${escHtml(d.text || "")}</p>
627
- <div class="editor-social-foot">
628
- <span>${platform === "linkedin" ? "\u{1F44D} Like \xB7 \u{1F4AC} Comment \xB7 \u2197 Share" : platform === "instagram" ? "\u2661 Like \xB7 \u{1F4AC} Comment \xB7 \u{1F516} Save" : "\u{1F4AC} Reply \xB7 \u21BB Repost \xB7 \u2661 Like"}</span>
629
- ${d.url ? `<a class="editor-social-link" href="${escHtml(
639
+ const postLink = d.url ? `<a class="editor-social-link" href="${escHtml(
630
640
  d.url
631
- )}" target="_blank" rel="noopener noreferrer">View post \u2192</a>` : ""}
632
- </div>
633
- </blockquote></div>`;
641
+ )}" target="_blank" rel="noopener noreferrer">Open \u2197</a>` : "";
642
+ if (platform === "linkedin") {
643
+ return `<div class="editor-social-wrap" data-align="${align}">
644
+ <blockquote class="editor-social-card is-linkedin">
645
+ <div class="editor-social-top">
646
+ <div class="editor-social-avatar is-linkedin" aria-hidden="true">${escHtml(initials)}</div>
647
+ <div class="editor-social-meta">
648
+ <div class="editor-social-name-row"><strong>${author}</strong><span class="editor-social-conn">\u2022 1st</span></div>
649
+ <span class="editor-social-sub">${role}</span>
650
+ <span class="editor-social-sub">${date} \xB7 \u{1F310}</span>
651
+ </div>
652
+ <span class="editor-social-li-logo" aria-label="LinkedIn">in</span>
653
+ </div>
654
+ <p class="editor-social-text">${text}</p>
655
+ ${d.imageUrl ? `<img class="editor-social-media" src="${escHtml(d.imageUrl)}" alt="" loading="lazy" />` : ""}
656
+ <div class="editor-social-li-stats"><span>\u{1F44D} \u{1F44F} \u{1F4A1} 148</span><span>18 comments \xB7 9 reposts</span></div>
657
+ <div class="editor-social-foot is-linkedin">
658
+ <span>\u{1F44D} Like</span><span>\u{1F4AC} Comment</span><span>\u21BB Repost</span><span>\u27A4 Send</span>${postLink}
659
+ </div>
660
+ </blockquote>
661
+ </div>`;
662
+ }
663
+ if (platform === "instagram") {
664
+ const mediaHtml = d.imageUrl ? `<img class="editor-social-ig-media" src="${escHtml(d.imageUrl)}" alt="" loading="lazy" />` : `<div class="editor-social-ig-placeholder"><span>\u25CE</span><p>${text}</p></div>`;
665
+ return `<div class="editor-social-wrap" data-align="${align}">
666
+ <blockquote class="editor-social-card is-instagram">
667
+ <div class="editor-social-top is-instagram">
668
+ <div class="editor-social-ig-ring"><div class="editor-social-avatar is-instagram" aria-hidden="true">${escHtml(initials)}</div></div>
669
+ <div class="editor-social-meta">
670
+ <strong>${handle.replace(/^@/, "")}</strong>
671
+ <span class="editor-social-sub">${date}</span>
672
+ </div>
673
+ <span class="editor-social-more">\u2022\u2022\u2022</span>
674
+ </div>
675
+ ${mediaHtml}
676
+ <div class="editor-social-ig-actions">
677
+ <span>\u2661 &nbsp; \u{1F4AC} &nbsp; \u2197</span>
678
+ <span>\u{1F516}</span>
679
+ </div>
680
+ <div class="editor-social-ig-likes">Liked by <strong>1,284 others</strong></div>
681
+ <p class="editor-social-ig-caption"><strong>${handle.replace(/^@/, "")}</strong> ${text} ${postLink}</p>
682
+ </blockquote>
683
+ </div>`;
684
+ }
685
+ const verifiedSvg = '<svg class="editor-social-verified" width="15" height="15" viewBox="0 0 24 24" fill="#1d9bf0" aria-label="Verified"><path d="M22.5 12.5c0-1.58-.875-2.95-2.148-3.6.154-.435.238-.905.238-1.4 0-2.21-1.71-3.998-3.818-3.998-.47 0-.92.084-1.336.25C14.818 2.415 13.51 1.5 12 1.5s-2.816.917-3.437 2.25c-.415-.165-.866-.25-1.336-.25-2.11 0-3.818 1.79-3.818 4 0 .494.083.964.237 1.4-1.272.65-2.147 2.018-2.147 3.6 0 1.495.782 2.798 1.942 3.486-.02.17-.032.34-.032.514 0 2.21 1.708 4 3.818 4 .47 0 .92-.086 1.335-.25.62 1.334 1.926 2.25 3.437 2.25 1.512 0 2.818-.916 3.437-2.25.415.163.865.248 1.336.248 2.11 0 3.818-1.79 3.818-4 0-.174-.012-.344-.033-.513 1.158-.687 1.943-1.99 1.943-3.484zm-6.616-3.334l-4.334 6.5c-.145.217-.382.334-.625.334-.143 0-.288-.04-.416-.126l-.115-.094-2.415-2.415c-.293-.293-.293-.768 0-1.06s.768-.294 1.06 0l1.77 1.767 3.825-5.74c.23-.345.696-.436 1.04-.207.346.23.44.696.21 1.04z"/></svg>';
686
+ return `<div class="editor-social-wrap" data-align="${align}">
687
+ <blockquote class="editor-social-card is-x">
688
+ <div class="editor-social-top">
689
+ <div class="editor-social-avatar" aria-hidden="true">${escHtml(initials)}</div>
690
+ <div class="editor-social-meta">
691
+ <div class="editor-social-name-row"><strong>${author}</strong>${verifiedSvg}</div>
692
+ <span class="editor-social-sub">${handle} \xB7 ${date}</span>
693
+ </div>
694
+ <span class="editor-social-x-logo" aria-label="X">\u{1D54F}</span>
695
+ </div>
696
+ <p class="editor-social-text">${text}</p>
697
+ ${d.imageUrl ? `<img class="editor-social-media" src="${escHtml(d.imageUrl)}" alt="" loading="lazy" />` : ""}
698
+ <div class="editor-social-foot is-x">
699
+ <span>\u{1F4AC} 24</span><span>\u21BB 86</span><span>\u2661 612</span><span>\u{1F4CA} 14.2K</span>${postLink}
700
+ </div>
701
+ </blockquote>
702
+ </div>`;
634
703
  }
635
704
  var SocialTool = class {
636
705
  data;
@@ -3635,13 +3704,15 @@ var QuizTool = class {
3635
3704
  q.options.forEach((opt, oIdx) => {
3636
3705
  const row = document.createElement("div");
3637
3706
  row.className = "editor-eisenhower-item-row";
3638
- const radio = document.createElement("input");
3639
- radio.type = "radio";
3640
- radio.name = `quiz_correct_${qIdx}_${Math.random().toString(36).slice(2, 6)}`;
3641
- radio.checked = q.correctIndex === oIdx;
3642
- radio.title = "Mark as correct answer";
3643
- radio.addEventListener("change", () => {
3644
- if (radio.checked) q.correctIndex = oIdx;
3707
+ const tickBtn = document.createElement("button");
3708
+ tickBtn.type = "button";
3709
+ tickBtn.className = `editor-quiz-tick-btn${q.correctIndex === oIdx ? " is-selected" : ""}`;
3710
+ tickBtn.title = q.correctIndex === oIdx ? "Unmark as correct answer" : "Mark as correct answer";
3711
+ tickBtn.setAttribute("aria-pressed", String(q.correctIndex === oIdx));
3712
+ tickBtn.innerHTML = q.correctIndex === oIdx ? '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>' : "";
3713
+ tickBtn.addEventListener("click", () => {
3714
+ q.correctIndex = q.correctIndex === oIdx ? -1 : oIdx;
3715
+ renderOpts();
3645
3716
  });
3646
3717
  const optIn = document.createElement("input");
3647
3718
  optIn.type = "text";
@@ -3662,7 +3733,7 @@ var QuizTool = class {
3662
3733
  }
3663
3734
  renderOpts();
3664
3735
  });
3665
- row.append(radio, optIn, rmOpt);
3736
+ row.append(tickBtn, optIn, rmOpt);
3666
3737
  optsWrap.appendChild(row);
3667
3738
  });
3668
3739
  };
@@ -5953,7 +6024,7 @@ var MermaidTool = class {
5953
6024
  head.append(title, presets);
5954
6025
  const textarea = document.createElement("textarea");
5955
6026
  textarea.className = "editor-mermaid-input";
5956
- textarea.rows = 3;
6027
+ textarea.rows = 5;
5957
6028
  textarea.placeholder = "graph TD\n A --> B";
5958
6029
  textarea.value = this.data.code;
5959
6030
  const preview = document.createElement("div");
@@ -6278,19 +6349,15 @@ var AiRewriteInline = class {
6278
6349
  btn.type = "button";
6279
6350
  btn.className = "ce-inline-tool";
6280
6351
  btn.title = "AI Rewrite selection";
6281
- btn.innerHTML = '<span style="font-size:12px;font-weight:700;">\u2726 AI</span>';
6352
+ btn.innerHTML = '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2z"/></svg>';
6282
6353
  return btn;
6283
6354
  }
6284
6355
  surround(range) {
6285
6356
  this.savedRange = range.cloneRange();
6286
- if (this.actionsEl) {
6287
- this.actionsEl.hidden = false;
6288
- }
6289
6357
  }
6290
6358
  renderActions() {
6291
6359
  const wrap = document.createElement("div");
6292
6360
  wrap.className = "ng-inline-ai-actions";
6293
- wrap.hidden = true;
6294
6361
  const status = document.createElement("span");
6295
6362
  status.className = "ng-inline-ai-status";
6296
6363
  const row = document.createElement("div");
@@ -6300,6 +6367,7 @@ var AiRewriteInline = class {
6300
6367
  b.type = "button";
6301
6368
  b.className = "ng-inline-action-btn";
6302
6369
  b.textContent = act.label;
6370
+ b.addEventListener("mousedown", (e) => e.preventDefault());
6303
6371
  b.addEventListener("click", async () => {
6304
6372
  const range = this.savedRange;
6305
6373
  const selected = range?.toString().trim() || "";
@@ -6365,14 +6433,11 @@ var ColorInline = class {
6365
6433
  btn.type = "button";
6366
6434
  btn.className = "ce-inline-tool";
6367
6435
  btn.title = "Text & Highlight Color";
6368
- btn.innerHTML = '<span style="font-weight:700;font-size:12px;border-bottom:2px solid currentColor;">A</span>';
6436
+ btn.innerHTML = '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20h16"/><path d="m6 16 6-12 6 12"/><path d="M8 12h8"/></svg>';
6369
6437
  return btn;
6370
6438
  }
6371
6439
  surround(range) {
6372
6440
  this.savedRange = range.cloneRange();
6373
- if (this.actionsEl) {
6374
- this.actionsEl.hidden = false;
6375
- }
6376
6441
  }
6377
6442
  applyStyle(prop, value) {
6378
6443
  const range = this.savedRange;
@@ -6400,7 +6465,6 @@ var ColorInline = class {
6400
6465
  renderActions() {
6401
6466
  const wrap = document.createElement("div");
6402
6467
  wrap.className = "ng-inline-color-actions";
6403
- wrap.hidden = true;
6404
6468
  const makeRow = (title, swatches, prop) => {
6405
6469
  const row = document.createElement("div");
6406
6470
  row.className = "ng-inline-swatch-row";
@@ -6415,7 +6479,11 @@ var ColorInline = class {
6415
6479
  dot.title = sw.label;
6416
6480
  dot.style.background = sw.value || "transparent";
6417
6481
  if (!sw.value) dot.textContent = "\xD7";
6418
- dot.addEventListener("click", () => this.applyStyle(prop, sw.value));
6482
+ dot.addEventListener("mousedown", (e) => e.preventDefault());
6483
+ dot.addEventListener("click", (e) => {
6484
+ e.preventDefault();
6485
+ this.applyStyle(prop, sw.value);
6486
+ });
6419
6487
  row.appendChild(dot);
6420
6488
  });
6421
6489
  return row;
@@ -7799,7 +7867,9 @@ function getEditorTools(includeLayout = true, enabledTools) {
7799
7867
  };
7800
7868
  if (enabledTools && enabledTools.length > 0) {
7801
7869
  const allowed = new Set(enabledTools);
7802
- const inlineTools = /* @__PURE__ */ new Set([
7870
+ const alwaysKeep = /* @__PURE__ */ new Set([
7871
+ "header",
7872
+ "paragraph",
7803
7873
  "inlineCode",
7804
7874
  "marker",
7805
7875
  "textColor",
@@ -7811,7 +7881,7 @@ function getEditorTools(includeLayout = true, enabledTools) {
7811
7881
  "mention"
7812
7882
  ]);
7813
7883
  return Object.fromEntries(
7814
- Object.entries(tools).filter(([key]) => allowed.has(key) || inlineTools.has(key))
7884
+ Object.entries(tools).filter(([key]) => allowed.has(key) || alwaysKeep.has(key))
7815
7885
  );
7816
7886
  }
7817
7887
  return tools;
package/dist/index.js CHANGED
@@ -32,22 +32,40 @@ function renderFrameMarkup(data) {
32
32
  const device = data.device && ["iphone", "samsung", "macbook", "laptop", "browser"].includes(data.device) ? data.device : "iphone";
33
33
  const src = String(data.src || "").trim();
34
34
  const isIframe = data.contentType === "url";
35
- const inner = !src ? '<div class="editor-frame-empty">Add an image or URL to preview inside the device frame</div>' : isIframe ? `<iframe src="${escHtml(src)}" title="${escHtml(data.caption || device)}" loading="lazy"></iframe>` : `<img src="${escHtml(src)}" alt="${escHtml(data.caption || device)}" loading="lazy" />`;
36
- let chrome = "";
35
+ const inner = !src ? `<div class="editor-frame-empty">
36
+ <svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" style="opacity:0.45"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="m21 15-5-5L5 21"/></svg>
37
+ <span>Add an image or URL to preview</span>
38
+ </div>` : isIframe ? `<iframe src="${escHtml(src)}" title="${escHtml(data.caption || device)}" loading="lazy"></iframe>` : `<img src="${escHtml(src)}" alt="${escHtml(data.caption || device)}" loading="lazy" />`;
39
+ let chromeTop = "";
40
+ let chromeBottom = "";
37
41
  if (device === "iphone") {
38
- chrome = '<div class="editor-frame-island" aria-hidden="true"></div>';
42
+ chromeTop = '<div class="editor-frame-statusbar"><span>9:41</span><div class="editor-frame-island" aria-hidden="true"><span></span></div><span>5G \u25AE\u25AE\u25AE</span></div>';
43
+ chromeBottom = '<div class="editor-frame-homebar" aria-hidden="true"></div>';
39
44
  } else if (device === "samsung") {
40
- chrome = '<div class="editor-frame-punch" aria-hidden="true"></div>';
45
+ chromeTop = '<div class="editor-frame-statusbar"><span>12:45</span><div class="editor-frame-punch" aria-hidden="true"></div><span>5G 100%</span></div>';
46
+ chromeBottom = '<div class="editor-frame-homebar is-pill" aria-hidden="true"></div>';
41
47
  } else if (device === "browser") {
42
- chrome = `<div class="editor-frame-browser-bar"><span class="editor-frame-dots"><i></i><i></i><i></i></span><span class="editor-frame-addr">${escHtml(
43
- data.address || src || "https://example.com"
44
- )}</span></div>`;
48
+ chromeTop = `<div class="editor-frame-browser-bar">
49
+ <span class="editor-frame-dots"><i></i><i></i><i></i></span>
50
+ <span class="editor-frame-nav-icons">\u2190 \u2192 \u21BB</span>
51
+ <span class="editor-frame-addr">\u{1F512} ${escHtml(data.address || src || "https://nextgen-editor.dev")}</span>
52
+ </div>`;
53
+ } else if (device === "macbook") {
54
+ chromeTop = '<div class="editor-frame-notch" aria-hidden="true"><span></span></div>';
45
55
  } else {
46
- chrome = '<div class="editor-frame-cam" aria-hidden="true"></div>';
56
+ chromeTop = '<div class="editor-frame-cam" aria-hidden="true"></div>';
47
57
  }
48
- const base = device === "macbook" || device === "laptop" ? '<div class="editor-frame-base" aria-hidden="true"></div>' : "";
58
+ const base = device === "macbook" || device === "laptop" ? `<div class="editor-frame-base is-${device}" aria-hidden="true"><div class="editor-frame-hinge"></div></div>` : "";
49
59
  const caption = data.caption ? `<figcaption class="editor-frame-caption">${escHtml(data.caption)}</figcaption>` : "";
50
- return `<figure class="editor-frame-block" data-device="${device}"><div class="editor-frame-shell is-${device}">${chrome}<div class="editor-frame-screen">${inner}</div></div>${base}${caption}</figure>`;
60
+ return `<figure class="editor-frame-block" data-device="${device}">
61
+ <div class="editor-frame-shell is-${device}">
62
+ ${chromeTop}
63
+ <div class="editor-frame-screen">${inner}</div>
64
+ ${chromeBottom}
65
+ </div>
66
+ ${base}
67
+ ${caption}
68
+ </figure>`;
51
69
  }
52
70
  var FrameTool = class {
53
71
  data;
@@ -514,7 +532,7 @@ var ChangelogTool = class {
514
532
  const row = document.createElement("div");
515
533
  row.className = "editor-changelog-row";
516
534
  const select = document.createElement("select");
517
- select.className = "cdx-input editor-form-select";
535
+ select.className = `cdx-input editor-form-select editor-changelog-select is-${item.kind}`;
518
536
  ["added", "changed", "fixed"].forEach((k) => {
519
537
  const opt = document.createElement("option");
520
538
  opt.value = k;
@@ -524,6 +542,7 @@ var ChangelogTool = class {
524
542
  });
525
543
  select.addEventListener("change", () => {
526
544
  item.kind = select.value;
545
+ select.className = `cdx-input editor-form-select editor-changelog-select is-${item.kind}`;
527
546
  });
528
547
  const text = createInput("text", "cdx-input", "Change description", item.text, (v) => {
529
548
  item.text = v;
@@ -564,26 +583,76 @@ var ChangelogTool = class {
564
583
  function renderSocialMarkup(d) {
565
584
  const platform = d.platform && ["x", "linkedin", "instagram"].includes(d.platform) ? d.platform : "x";
566
585
  const align = d.align && ["left", "center", "right"].includes(d.align) ? d.align : "center";
567
- const badge = platform === "linkedin" ? "in LinkedIn" : platform === "instagram" ? "\u25CE Instagram" : "\u{1D54F} Post";
586
+ const author = escHtml(d.author || "Alex Rivera");
587
+ const handle = escHtml(d.handle || "@alexrivera");
588
+ const role = escHtml(d.role || d.handle || "Staff Engineer at NextGen");
589
+ const date = escHtml(d.date || "2h");
590
+ const text = escHtml(d.text || "");
568
591
  const initials = String(d.author || "A").trim().slice(0, 2).toUpperCase();
569
- return `<div class="editor-social-wrap" data-align="${align}"><blockquote class="editor-social-card is-${platform}">
570
- <div class="editor-social-top">
571
- <div class="editor-social-avatar" aria-hidden="true">${escHtml(initials)}</div>
572
- <div class="editor-social-meta">
573
- <strong>${escHtml(d.author || "Alex Rivera")}</strong>
574
- <span>${escHtml(platform === "linkedin" ? d.role || d.handle || "Product Engineer" : d.handle || "@alexrivera")}${d.date ? ` \xB7 ${escHtml(d.date)}` : ""}</span>
575
- </div>
576
- <span class="editor-social-platform">${badge}</span>
577
- </div>
578
- ${platform === "instagram" && d.imageUrl ? `<img class="editor-social-media" src="${escHtml(d.imageUrl)}" alt="" loading="lazy" />` : ""}
579
- <p class="editor-social-text">${escHtml(d.text || "")}</p>
580
- <div class="editor-social-foot">
581
- <span>${platform === "linkedin" ? "\u{1F44D} Like \xB7 \u{1F4AC} Comment \xB7 \u2197 Share" : platform === "instagram" ? "\u2661 Like \xB7 \u{1F4AC} Comment \xB7 \u{1F516} Save" : "\u{1F4AC} Reply \xB7 \u21BB Repost \xB7 \u2661 Like"}</span>
582
- ${d.url ? `<a class="editor-social-link" href="${escHtml(
592
+ const postLink = d.url ? `<a class="editor-social-link" href="${escHtml(
583
593
  d.url
584
- )}" target="_blank" rel="noopener noreferrer">View post \u2192</a>` : ""}
585
- </div>
586
- </blockquote></div>`;
594
+ )}" target="_blank" rel="noopener noreferrer">Open \u2197</a>` : "";
595
+ if (platform === "linkedin") {
596
+ return `<div class="editor-social-wrap" data-align="${align}">
597
+ <blockquote class="editor-social-card is-linkedin">
598
+ <div class="editor-social-top">
599
+ <div class="editor-social-avatar is-linkedin" aria-hidden="true">${escHtml(initials)}</div>
600
+ <div class="editor-social-meta">
601
+ <div class="editor-social-name-row"><strong>${author}</strong><span class="editor-social-conn">\u2022 1st</span></div>
602
+ <span class="editor-social-sub">${role}</span>
603
+ <span class="editor-social-sub">${date} \xB7 \u{1F310}</span>
604
+ </div>
605
+ <span class="editor-social-li-logo" aria-label="LinkedIn">in</span>
606
+ </div>
607
+ <p class="editor-social-text">${text}</p>
608
+ ${d.imageUrl ? `<img class="editor-social-media" src="${escHtml(d.imageUrl)}" alt="" loading="lazy" />` : ""}
609
+ <div class="editor-social-li-stats"><span>\u{1F44D} \u{1F44F} \u{1F4A1} 148</span><span>18 comments \xB7 9 reposts</span></div>
610
+ <div class="editor-social-foot is-linkedin">
611
+ <span>\u{1F44D} Like</span><span>\u{1F4AC} Comment</span><span>\u21BB Repost</span><span>\u27A4 Send</span>${postLink}
612
+ </div>
613
+ </blockquote>
614
+ </div>`;
615
+ }
616
+ if (platform === "instagram") {
617
+ const mediaHtml = d.imageUrl ? `<img class="editor-social-ig-media" src="${escHtml(d.imageUrl)}" alt="" loading="lazy" />` : `<div class="editor-social-ig-placeholder"><span>\u25CE</span><p>${text}</p></div>`;
618
+ return `<div class="editor-social-wrap" data-align="${align}">
619
+ <blockquote class="editor-social-card is-instagram">
620
+ <div class="editor-social-top is-instagram">
621
+ <div class="editor-social-ig-ring"><div class="editor-social-avatar is-instagram" aria-hidden="true">${escHtml(initials)}</div></div>
622
+ <div class="editor-social-meta">
623
+ <strong>${handle.replace(/^@/, "")}</strong>
624
+ <span class="editor-social-sub">${date}</span>
625
+ </div>
626
+ <span class="editor-social-more">\u2022\u2022\u2022</span>
627
+ </div>
628
+ ${mediaHtml}
629
+ <div class="editor-social-ig-actions">
630
+ <span>\u2661 &nbsp; \u{1F4AC} &nbsp; \u2197</span>
631
+ <span>\u{1F516}</span>
632
+ </div>
633
+ <div class="editor-social-ig-likes">Liked by <strong>1,284 others</strong></div>
634
+ <p class="editor-social-ig-caption"><strong>${handle.replace(/^@/, "")}</strong> ${text} ${postLink}</p>
635
+ </blockquote>
636
+ </div>`;
637
+ }
638
+ const verifiedSvg = '<svg class="editor-social-verified" width="15" height="15" viewBox="0 0 24 24" fill="#1d9bf0" aria-label="Verified"><path d="M22.5 12.5c0-1.58-.875-2.95-2.148-3.6.154-.435.238-.905.238-1.4 0-2.21-1.71-3.998-3.818-3.998-.47 0-.92.084-1.336.25C14.818 2.415 13.51 1.5 12 1.5s-2.816.917-3.437 2.25c-.415-.165-.866-.25-1.336-.25-2.11 0-3.818 1.79-3.818 4 0 .494.083.964.237 1.4-1.272.65-2.147 2.018-2.147 3.6 0 1.495.782 2.798 1.942 3.486-.02.17-.032.34-.032.514 0 2.21 1.708 4 3.818 4 .47 0 .92-.086 1.335-.25.62 1.334 1.926 2.25 3.437 2.25 1.512 0 2.818-.916 3.437-2.25.415.163.865.248 1.336.248 2.11 0 3.818-1.79 3.818-4 0-.174-.012-.344-.033-.513 1.158-.687 1.943-1.99 1.943-3.484zm-6.616-3.334l-4.334 6.5c-.145.217-.382.334-.625.334-.143 0-.288-.04-.416-.126l-.115-.094-2.415-2.415c-.293-.293-.293-.768 0-1.06s.768-.294 1.06 0l1.77 1.767 3.825-5.74c.23-.345.696-.436 1.04-.207.346.23.44.696.21 1.04z"/></svg>';
639
+ return `<div class="editor-social-wrap" data-align="${align}">
640
+ <blockquote class="editor-social-card is-x">
641
+ <div class="editor-social-top">
642
+ <div class="editor-social-avatar" aria-hidden="true">${escHtml(initials)}</div>
643
+ <div class="editor-social-meta">
644
+ <div class="editor-social-name-row"><strong>${author}</strong>${verifiedSvg}</div>
645
+ <span class="editor-social-sub">${handle} \xB7 ${date}</span>
646
+ </div>
647
+ <span class="editor-social-x-logo" aria-label="X">\u{1D54F}</span>
648
+ </div>
649
+ <p class="editor-social-text">${text}</p>
650
+ ${d.imageUrl ? `<img class="editor-social-media" src="${escHtml(d.imageUrl)}" alt="" loading="lazy" />` : ""}
651
+ <div class="editor-social-foot is-x">
652
+ <span>\u{1F4AC} 24</span><span>\u21BB 86</span><span>\u2661 612</span><span>\u{1F4CA} 14.2K</span>${postLink}
653
+ </div>
654
+ </blockquote>
655
+ </div>`;
587
656
  }
588
657
  var SocialTool = class {
589
658
  data;
@@ -3588,13 +3657,15 @@ var QuizTool = class {
3588
3657
  q.options.forEach((opt, oIdx) => {
3589
3658
  const row = document.createElement("div");
3590
3659
  row.className = "editor-eisenhower-item-row";
3591
- const radio = document.createElement("input");
3592
- radio.type = "radio";
3593
- radio.name = `quiz_correct_${qIdx}_${Math.random().toString(36).slice(2, 6)}`;
3594
- radio.checked = q.correctIndex === oIdx;
3595
- radio.title = "Mark as correct answer";
3596
- radio.addEventListener("change", () => {
3597
- if (radio.checked) q.correctIndex = oIdx;
3660
+ const tickBtn = document.createElement("button");
3661
+ tickBtn.type = "button";
3662
+ tickBtn.className = `editor-quiz-tick-btn${q.correctIndex === oIdx ? " is-selected" : ""}`;
3663
+ tickBtn.title = q.correctIndex === oIdx ? "Unmark as correct answer" : "Mark as correct answer";
3664
+ tickBtn.setAttribute("aria-pressed", String(q.correctIndex === oIdx));
3665
+ tickBtn.innerHTML = q.correctIndex === oIdx ? '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>' : "";
3666
+ tickBtn.addEventListener("click", () => {
3667
+ q.correctIndex = q.correctIndex === oIdx ? -1 : oIdx;
3668
+ renderOpts();
3598
3669
  });
3599
3670
  const optIn = document.createElement("input");
3600
3671
  optIn.type = "text";
@@ -3615,7 +3686,7 @@ var QuizTool = class {
3615
3686
  }
3616
3687
  renderOpts();
3617
3688
  });
3618
- row.append(radio, optIn, rmOpt);
3689
+ row.append(tickBtn, optIn, rmOpt);
3619
3690
  optsWrap.appendChild(row);
3620
3691
  });
3621
3692
  };
@@ -5906,7 +5977,7 @@ var MermaidTool = class {
5906
5977
  head.append(title, presets);
5907
5978
  const textarea = document.createElement("textarea");
5908
5979
  textarea.className = "editor-mermaid-input";
5909
- textarea.rows = 3;
5980
+ textarea.rows = 5;
5910
5981
  textarea.placeholder = "graph TD\n A --> B";
5911
5982
  textarea.value = this.data.code;
5912
5983
  const preview = document.createElement("div");
@@ -6231,19 +6302,15 @@ var AiRewriteInline = class {
6231
6302
  btn.type = "button";
6232
6303
  btn.className = "ce-inline-tool";
6233
6304
  btn.title = "AI Rewrite selection";
6234
- btn.innerHTML = '<span style="font-size:12px;font-weight:700;">\u2726 AI</span>';
6305
+ btn.innerHTML = '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2z"/></svg>';
6235
6306
  return btn;
6236
6307
  }
6237
6308
  surround(range) {
6238
6309
  this.savedRange = range.cloneRange();
6239
- if (this.actionsEl) {
6240
- this.actionsEl.hidden = false;
6241
- }
6242
6310
  }
6243
6311
  renderActions() {
6244
6312
  const wrap = document.createElement("div");
6245
6313
  wrap.className = "ng-inline-ai-actions";
6246
- wrap.hidden = true;
6247
6314
  const status = document.createElement("span");
6248
6315
  status.className = "ng-inline-ai-status";
6249
6316
  const row = document.createElement("div");
@@ -6253,6 +6320,7 @@ var AiRewriteInline = class {
6253
6320
  b.type = "button";
6254
6321
  b.className = "ng-inline-action-btn";
6255
6322
  b.textContent = act.label;
6323
+ b.addEventListener("mousedown", (e) => e.preventDefault());
6256
6324
  b.addEventListener("click", async () => {
6257
6325
  const range = this.savedRange;
6258
6326
  const selected = range?.toString().trim() || "";
@@ -6318,14 +6386,11 @@ var ColorInline = class {
6318
6386
  btn.type = "button";
6319
6387
  btn.className = "ce-inline-tool";
6320
6388
  btn.title = "Text & Highlight Color";
6321
- btn.innerHTML = '<span style="font-weight:700;font-size:12px;border-bottom:2px solid currentColor;">A</span>';
6389
+ btn.innerHTML = '<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20h16"/><path d="m6 16 6-12 6 12"/><path d="M8 12h8"/></svg>';
6322
6390
  return btn;
6323
6391
  }
6324
6392
  surround(range) {
6325
6393
  this.savedRange = range.cloneRange();
6326
- if (this.actionsEl) {
6327
- this.actionsEl.hidden = false;
6328
- }
6329
6394
  }
6330
6395
  applyStyle(prop, value) {
6331
6396
  const range = this.savedRange;
@@ -6353,7 +6418,6 @@ var ColorInline = class {
6353
6418
  renderActions() {
6354
6419
  const wrap = document.createElement("div");
6355
6420
  wrap.className = "ng-inline-color-actions";
6356
- wrap.hidden = true;
6357
6421
  const makeRow = (title, swatches, prop) => {
6358
6422
  const row = document.createElement("div");
6359
6423
  row.className = "ng-inline-swatch-row";
@@ -6368,7 +6432,11 @@ var ColorInline = class {
6368
6432
  dot.title = sw.label;
6369
6433
  dot.style.background = sw.value || "transparent";
6370
6434
  if (!sw.value) dot.textContent = "\xD7";
6371
- dot.addEventListener("click", () => this.applyStyle(prop, sw.value));
6435
+ dot.addEventListener("mousedown", (e) => e.preventDefault());
6436
+ dot.addEventListener("click", (e) => {
6437
+ e.preventDefault();
6438
+ this.applyStyle(prop, sw.value);
6439
+ });
6372
6440
  row.appendChild(dot);
6373
6441
  });
6374
6442
  return row;
@@ -7752,7 +7820,9 @@ function getEditorTools(includeLayout = true, enabledTools) {
7752
7820
  };
7753
7821
  if (enabledTools && enabledTools.length > 0) {
7754
7822
  const allowed = new Set(enabledTools);
7755
- const inlineTools = /* @__PURE__ */ new Set([
7823
+ const alwaysKeep = /* @__PURE__ */ new Set([
7824
+ "header",
7825
+ "paragraph",
7756
7826
  "inlineCode",
7757
7827
  "marker",
7758
7828
  "textColor",
@@ -7764,7 +7834,7 @@ function getEditorTools(includeLayout = true, enabledTools) {
7764
7834
  "mention"
7765
7835
  ]);
7766
7836
  return Object.fromEntries(
7767
- Object.entries(tools).filter(([key]) => allowed.has(key) || inlineTools.has(key))
7837
+ Object.entries(tools).filter(([key]) => allowed.has(key) || alwaysKeep.has(key))
7768
7838
  );
7769
7839
  }
7770
7840
  return tools;
package/dist/styles.css CHANGED
@@ -3971,6 +3971,10 @@ html[data-ng-theme] body {
3971
3971
  background: transparent;
3972
3972
  }
3973
3973
 
3974
+ .editor-spotify-card.is-compact {
3975
+ flex: 0 0 320px;
3976
+ }
3977
+
3974
3978
  .editor-spotify-card iframe {
3975
3979
  width: 100%;
3976
3980
  height: 152px;
@@ -4399,7 +4403,8 @@ html[data-ng-theme] body {
4399
4403
 
4400
4404
  /* ── Tighter Toolbar & Plus/Settings Positioning ────────────────── */
4401
4405
  .nextgen-editor-shell #editorjs {
4402
- padding-left: 72px;
4406
+ padding-left: 44px;
4407
+ padding-right: 44px;
4403
4408
  }
4404
4409
 
4405
4410
  .nextgen-editor-shell .ce-block__content,
@@ -4426,20 +4431,8 @@ html[data-ng-theme] body {
4426
4431
  height: 0;
4427
4432
  }
4428
4433
 
4429
- .nextgen-editor-shell .ce-toolbox .ce-popover,
4430
- .nextgen-editor-shell .ce-settings .ce-popover {
4431
- min-width: 0 !important;
4432
- border: none !important;
4433
- box-shadow: none !important;
4434
- background: transparent !important;
4435
- }
4436
-
4437
4434
  .nextgen-editor-shell .ce-toolbox .ce-popover__container,
4438
4435
  .nextgen-editor-shell .ce-settings .ce-popover__container {
4439
- left: 0 !important;
4440
- right: auto !important;
4441
- top: 0 !important;
4442
- --popover-left: 0px !important;
4443
4436
  min-width: 240px;
4444
4437
  }
4445
4438
 
@@ -6035,3 +6028,313 @@ html[data-ng-theme] body {
6035
6028
  margin: 0;
6036
6029
  white-space: pre-wrap;
6037
6030
  }
6031
+
6032
+ /* ── Quiz Blue-Tick Toggle ──────────────────────────────────────── */
6033
+ .editor-quiz-tick-btn {
6034
+ width: 22px;
6035
+ height: 22px;
6036
+ border-radius: 999px;
6037
+ border: 2px solid var(--ng-border);
6038
+ background: var(--ng-background);
6039
+ color: #ffffff;
6040
+ display: inline-flex;
6041
+ align-items: center;
6042
+ justify-content: center;
6043
+ cursor: pointer;
6044
+ flex-shrink: 0;
6045
+ padding: 0;
6046
+ transition: background-color 140ms ease, border-color 140ms ease;
6047
+ }
6048
+
6049
+ .editor-quiz-tick-btn:hover {
6050
+ border-color: #2563eb;
6051
+ }
6052
+
6053
+ .editor-quiz-tick-btn.is-selected {
6054
+ background: #2563eb;
6055
+ border-color: #2563eb;
6056
+ }
6057
+
6058
+ /* ── Changelog Colored Badges & Selects ─────────────────────────── */
6059
+ .editor-changelog-badge.is-added,
6060
+ .editor-changelog-select.is-added {
6061
+ background: rgba(22, 163, 74, 0.14);
6062
+ color: #15803d;
6063
+ border-color: rgba(22, 163, 74, 0.4);
6064
+ }
6065
+
6066
+ .editor-changelog-badge.is-changed,
6067
+ .editor-changelog-select.is-changed {
6068
+ background: rgba(217, 119, 6, 0.14);
6069
+ color: #b45309;
6070
+ border-color: rgba(217, 119, 6, 0.4);
6071
+ }
6072
+
6073
+ .editor-changelog-badge.is-fixed,
6074
+ .editor-changelog-select.is-fixed {
6075
+ background: rgba(37, 99, 235, 0.14);
6076
+ color: #1d4ed8;
6077
+ border-color: rgba(37, 99, 235, 0.4);
6078
+ }
6079
+
6080
+ /* ── Uniform Inline Toolbar Icon Ratio ──────────────────────────── */
6081
+ .nextgen-editor-shell .ce-inline-tool {
6082
+ width: 28px !important;
6083
+ height: 28px !important;
6084
+ min-width: 28px !important;
6085
+ padding: 0 !important;
6086
+ display: inline-flex !important;
6087
+ align-items: center !important;
6088
+ justify-content: center !important;
6089
+ }
6090
+
6091
+ .nextgen-editor-shell .ce-inline-tool svg {
6092
+ width: 15px !important;
6093
+ height: 15px !important;
6094
+ }
6095
+
6096
+ /* ── Realistic Device Mockup Frames (/frame) ────────────────────── */
6097
+ .editor-frame-shell.is-iphone,
6098
+ .editor-frame-shell.is-samsung {
6099
+ width: 284px;
6100
+ background: linear-gradient(145deg, #27272a, #09090b);
6101
+ border: 2px solid #3f3f46;
6102
+ box-shadow:
6103
+ inset 0 0 0 2px #18181b,
6104
+ 0 24px 48px -14px rgba(0, 0, 0, 0.45);
6105
+ }
6106
+
6107
+ .editor-frame-shell.is-iphone {
6108
+ border-radius: 44px;
6109
+ padding: 12px;
6110
+ }
6111
+
6112
+ .editor-frame-shell.is-samsung {
6113
+ border-radius: 28px;
6114
+ padding: 10px;
6115
+ }
6116
+
6117
+ .editor-frame-statusbar {
6118
+ display: flex;
6119
+ align-items: center;
6120
+ justify-content: space-between;
6121
+ padding: 4px 14px 8px;
6122
+ font-size: 10px;
6123
+ font-weight: 600;
6124
+ color: #e4e4e7;
6125
+ }
6126
+
6127
+ .editor-frame-island {
6128
+ width: 82px;
6129
+ height: 22px;
6130
+ background: #000000;
6131
+ border-radius: 999px;
6132
+ display: flex;
6133
+ align-items: center;
6134
+ justify-content: flex-end;
6135
+ padding-right: 6px;
6136
+ }
6137
+
6138
+ .editor-frame-island span {
6139
+ width: 8px;
6140
+ height: 8px;
6141
+ border-radius: 999px;
6142
+ background: #1e293b;
6143
+ }
6144
+
6145
+ .editor-frame-homebar {
6146
+ width: 100px;
6147
+ height: 4px;
6148
+ border-radius: 999px;
6149
+ background: #52525b;
6150
+ margin: 10px auto 2px;
6151
+ }
6152
+
6153
+ .editor-frame-shell.is-iphone .editor-frame-screen,
6154
+ .editor-frame-shell.is-samsung .editor-frame-screen {
6155
+ aspect-ratio: 9 / 17.5;
6156
+ min-height: 430px;
6157
+ border-radius: 26px;
6158
+ display: flex;
6159
+ flex-direction: column;
6160
+ }
6161
+
6162
+ .editor-frame-shell.is-macbook .editor-frame-screen,
6163
+ .editor-frame-shell.is-laptop .editor-frame-screen {
6164
+ aspect-ratio: 16 / 10;
6165
+ min-height: 320px;
6166
+ }
6167
+
6168
+ .editor-frame-notch {
6169
+ width: 96px;
6170
+ height: 16px;
6171
+ background: #09090b;
6172
+ border-radius: 0 0 8px 8px;
6173
+ margin: -16px auto 6px;
6174
+ display: flex;
6175
+ align-items: center;
6176
+ justify-content: center;
6177
+ }
6178
+
6179
+ .editor-frame-notch span {
6180
+ width: 6px;
6181
+ height: 6px;
6182
+ border-radius: 999px;
6183
+ background: #27272a;
6184
+ }
6185
+
6186
+ .editor-frame-base.is-macbook {
6187
+ width: min(700px, 108%);
6188
+ height: 14px;
6189
+ background: linear-gradient(180deg, #e4e4e7, #a1a1aa);
6190
+ border-radius: 2px 2px 12px 12px;
6191
+ display: flex;
6192
+ justify-content: center;
6193
+ }
6194
+
6195
+ .editor-frame-hinge {
6196
+ width: 90px;
6197
+ height: 4px;
6198
+ background: #71717a;
6199
+ border-radius: 0 0 4px 4px;
6200
+ }
6201
+
6202
+ .editor-frame-nav-icons {
6203
+ font-size: 12px;
6204
+ color: var(--ng-muted-foreground);
6205
+ letter-spacing: 3px;
6206
+ }
6207
+
6208
+ .editor-frame-empty {
6209
+ flex: 1;
6210
+ display: flex;
6211
+ flex-direction: column;
6212
+ align-items: center;
6213
+ justify-content: center;
6214
+ gap: 8px;
6215
+ min-height: 220px;
6216
+ }
6217
+
6218
+ /* ── Authentic X, LinkedIn, Instagram Cards ─────────────────────── */
6219
+ .editor-social-name-row {
6220
+ display: flex;
6221
+ align-items: center;
6222
+ gap: 4px;
6223
+ }
6224
+
6225
+ .editor-social-sub {
6226
+ font-size: 11px;
6227
+ color: var(--ng-muted-foreground);
6228
+ }
6229
+
6230
+ .editor-social-x-logo {
6231
+ font-size: 16px;
6232
+ font-weight: 700;
6233
+ color: var(--ng-foreground);
6234
+ }
6235
+
6236
+ .editor-social-avatar.is-linkedin {
6237
+ border-radius: 999px;
6238
+ background: #0a66c2;
6239
+ color: #ffffff;
6240
+ }
6241
+
6242
+ .editor-social-conn {
6243
+ font-size: 11px;
6244
+ color: var(--ng-muted-foreground);
6245
+ }
6246
+
6247
+ .editor-social-li-logo {
6248
+ width: 22px;
6249
+ height: 22px;
6250
+ border-radius: 4px;
6251
+ background: #0a66c2;
6252
+ color: #ffffff;
6253
+ font-weight: 800;
6254
+ font-size: 12px;
6255
+ display: inline-flex;
6256
+ align-items: center;
6257
+ justify-content: center;
6258
+ }
6259
+
6260
+ .editor-social-li-stats {
6261
+ display: flex;
6262
+ justify-content: space-between;
6263
+ font-size: 11px;
6264
+ color: var(--ng-muted-foreground);
6265
+ }
6266
+
6267
+ .editor-social-card.is-instagram {
6268
+ padding: 0;
6269
+ overflow: hidden;
6270
+ }
6271
+
6272
+ .editor-social-top.is-instagram {
6273
+ padding: 10px 12px;
6274
+ }
6275
+
6276
+ .editor-social-ig-ring {
6277
+ padding: 2px;
6278
+ border-radius: 999px;
6279
+ background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
6280
+ }
6281
+
6282
+ .editor-social-avatar.is-instagram {
6283
+ width: 30px;
6284
+ height: 30px;
6285
+ border: 2px solid var(--ng-card);
6286
+ }
6287
+
6288
+ .editor-social-more {
6289
+ font-size: 12px;
6290
+ color: var(--ng-muted-foreground);
6291
+ }
6292
+
6293
+ .editor-social-ig-media {
6294
+ width: 100%;
6295
+ aspect-ratio: 4 / 3;
6296
+ object-fit: cover;
6297
+ display: block;
6298
+ }
6299
+
6300
+ .editor-social-ig-placeholder {
6301
+ aspect-ratio: 4 / 3;
6302
+ background: linear-gradient(135deg, #27272a, #52525b);
6303
+ color: #fafafa;
6304
+ display: flex;
6305
+ flex-direction: column;
6306
+ align-items: center;
6307
+ justify-content: center;
6308
+ padding: 24px;
6309
+ text-align: center;
6310
+ gap: 8px;
6311
+ }
6312
+
6313
+ .editor-social-ig-placeholder span {
6314
+ font-size: 28px;
6315
+ opacity: 0.7;
6316
+ }
6317
+
6318
+ .editor-social-ig-placeholder p {
6319
+ margin: 0;
6320
+ font-size: 14px;
6321
+ font-weight: 500;
6322
+ }
6323
+
6324
+ .editor-social-ig-actions {
6325
+ display: flex;
6326
+ justify-content: space-between;
6327
+ padding: 8px 12px 4px;
6328
+ font-size: 16px;
6329
+ }
6330
+
6331
+ .editor-social-ig-likes {
6332
+ padding: 0 12px 4px;
6333
+ font-size: 12px;
6334
+ }
6335
+
6336
+ .editor-social-ig-caption {
6337
+ padding: 0 12px 12px;
6338
+ margin: 0;
6339
+ font-size: 13px;
6340
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextgen-block-editor",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "A modular, block-based React + TypeScript rich text editor built on Editor.js with Bento grids, Carousels, Before/After sliders, Lightbox galleries, Slides, Tabs, Accordions, Toggle headings, Alerts, and more.",
5
5
  "type": "module",
6
6
  "sideEffects": [