markdown-wysiwyg-editor 0.2.2 → 0.2.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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.3] - 2025-12-18
11
+
12
+ ### Changed
13
+
14
+ - Unified heading translation keys to a single `markdown_editor.heading` key and compose the level in the UI.
15
+
10
16
  ## [0.2.2] - 2025-12-18
11
17
 
12
18
  ### Changed
package/dist/index.js CHANGED
@@ -35846,12 +35846,7 @@ const R = {
35846
35846
  italic: "markdown_editor.italic",
35847
35847
  strikethrough: "markdown_editor.strikethrough",
35848
35848
  code: "markdown_editor.code",
35849
- heading1: "markdown_editor.heading1",
35850
- heading2: "markdown_editor.heading2",
35851
- heading3: "markdown_editor.heading3",
35852
- heading4: "markdown_editor.heading4",
35853
- heading5: "markdown_editor.heading5",
35854
- heading6: "markdown_editor.heading6",
35849
+ heading: "markdown_editor.heading",
35855
35850
  bulletList: "markdown_editor.bullet_list",
35856
35851
  orderedList: "markdown_editor.ordered_list",
35857
35852
  blockquote: "markdown_editor.blockquote",
@@ -36387,7 +36382,7 @@ const R = {
36387
36382
  type: "button",
36388
36383
  onClick: () => l(!a),
36389
36384
  disabled: e,
36390
- "data-tooltip": s(R.openHeadingMenu),
36385
+ "data-tooltip": s(R.heading),
36391
36386
  className: `
36392
36387
  w-8 h-8 flex items-center justify-center rounded transition-colors duration-150
36393
36388
  disabled:opacity-50 disabled:cursor-not-allowed
@@ -36411,7 +36406,7 @@ const R = {
36411
36406
  fill: "currentColor",
36412
36407
  viewBox: "0 0 20 20",
36413
36408
  children: [
36414
- /* @__PURE__ */ w("title", { children: s(R.openHeadingMenu) }),
36409
+ /* @__PURE__ */ w("title", { children: s(R.heading) }),
36415
36410
  /* @__PURE__ */ w(
36416
36411
  "path",
36417
36412
  {
@@ -36441,7 +36436,7 @@ const R = {
36441
36436
  {
36442
36437
  className: "absolute top-full left-0 mt-2 w-80 rounded-xl shadow-xl z-20 overflow-hidden animate-in slide-in-from-top-2 duration-200",
36443
36438
  style: {
36444
- backgroundColor: "var(--mw-toolbar-bg)",
36439
+ backgroundColor: "var(--mw-toolbar-bg, #ffffff)",
36445
36440
  borderColor: "var(--mw-toolbar-border)",
36446
36441
  borderWidth: "1px",
36447
36442
  borderStyle: "solid"
@@ -36455,14 +36450,14 @@ const R = {
36455
36450
  w-full text-left px-4 py-3 transition-all duration-150 border-l-4 border-transparent
36456
36451
  `,
36457
36452
  style: {
36458
- backgroundColor: "var(--mw-toolbar-bg)",
36453
+ backgroundColor: "var(--mw-toolbar-bg, #ffffff)",
36459
36454
  borderBottom: oe !== E.length - 1 ? "1px solid var(--mw-toolbar-border)" : "none"
36460
36455
  },
36461
36456
  onMouseEnter: (ie) => {
36462
36457
  ie.currentTarget.style.backgroundColor = "var(--mw-toolbar-hover-bg)";
36463
36458
  },
36464
36459
  onMouseLeave: (ie) => {
36465
- ie.currentTarget.style.backgroundColor = "var(--mw-toolbar-bg)";
36460
+ ie.currentTarget.style.backgroundColor = "var(--mw-toolbar-bg, #ffffff)";
36466
36461
  },
36467
36462
  children: /* @__PURE__ */ L("div", { className: "flex items-center justify-between", children: [
36468
36463
  /* @__PURE__ */ w("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ w("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ w(
@@ -36486,7 +36481,7 @@ const R = {
36486
36481
  color: "var(--mw-toolbar-text)",
36487
36482
  ...b(I.level)
36488
36483
  },
36489
- children: s(R.sampleText)
36484
+ children: `${s(R.heading)}${I.level}`
36490
36485
  }
36491
36486
  ) })
36492
36487
  ] })