markdown-design-doc-viewer-embed 1.5.2 → 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/README.ja.md CHANGED
@@ -78,7 +78,7 @@ viewer.destroy();
78
78
  | `tableTreeHighlight` | `true` | 木構造で表示した表の行の親子をハイライトします。 |
79
79
  | `frontMatter` | `true` | front matter を(設計書のヘッダ、または表として)表示します。 |
80
80
  | `headingNumbers` | `true` | 紐付いた見出しに `autonumber` の番号を表示します。 |
81
- | `messageWrapWidth` | `30` | シーケンス図の矢印のラベルをこの文字数(全角は 2 文字と数える)で改行します。`0` にすると改行しません。 |
81
+ | `messageWrapWidth` | `40` | シーケンス図の矢印のラベルをこの文字数(全角は 2 文字と数える)で改行します。`0` にすると改行しません。 |
82
82
  | `onOpenLink` | `openLinkInNewTab` | `(href) => void`: 設計書のリンク(ビューアがスクロールする `#見出し` 以外)を開きます。既定では http(s) と mailto のリンクを新しいタブで開き、ほかは何もしません。 |
83
83
  | `onRevealLine` | | `(line) => void`: ビューアでダブルクリックした Markdown の行(0 始まり)で呼ばれます(エディタでその行を表示するなど)。ないときはダブルクリックしても何もしません。 |
84
84
 
package/README.md CHANGED
@@ -78,7 +78,7 @@ viewer.destroy();
78
78
  | `tableTreeHighlight` | `true` | Highlights the parent and children of a row of a table shown as a tree. |
79
79
  | `frontMatter` | `true` | Shows the front matter (as the header of a design document, or as a table). |
80
80
  | `headingNumbers` | `true` | Shows the `autonumber` numbers on the linked headings. |
81
- | `messageWrapWidth` | `30` | Breaks the labels of the arrows of the sequence diagrams into lines at this many characters (a full-width one counts as 2). `0` does not break them. |
81
+ | `messageWrapWidth` | `40` | Breaks the labels of the arrows of the sequence diagrams into lines at this many characters (a full-width one counts as 2). `0` does not break them. |
82
82
  | `onOpenLink` | `openLinkInNewTab` | `(href) => void`: opens a link of the document (other than `#heading`, which the viewer scrolls to). By default, http(s) and mailto links open in a new tab, and the others do nothing. |
83
83
  | `onRevealLine` | | `(line) => void`: called with the line (0-based) of the Markdown double-clicked in the viewer, e.g. to show it in an editor. Without it, a double-click does nothing. |
84
84
 
package/index.js CHANGED
@@ -20520,7 +20520,7 @@ function stripStepNumber(heading2) {
20520
20520
  }
20521
20521
 
20522
20522
  // src/diagrams/sequenceWrap.ts
20523
- var DEFAULT_MESSAGE_WRAP_WIDTH = 30;
20523
+ var DEFAULT_MESSAGE_WRAP_WIDTH = 40;
20524
20524
  var WIDE_RE = /[ᄀ-ᅟ⺀-〾ぁ-㏿㐀-䶿一-鿿ꀀ-꓏가-힣豈-﫿︰-﹏＀-⦆¢-₩\u{1F300}-\u{1F64F}\u{1F680}-\u{1F6FF}\u{1F900}-\u{1FAFF}\u{20000}-\u{3FFFD}]/u;
20525
20525
  var NO_START = new Set(Array.from("\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309D\u309E\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\uFF09\u3015\uFF3D\uFF5D\u3009\u300B\u300D\u300F\u3011\u3019\u3017\u301F\u2019\u201D\uFF60\xBB,.:;!?)]}"));
20526
20526
  var NO_END = new Set(Array.from("\uFF08\u3014\uFF3B\uFF5B\u3008\u300A\u300C\u300E\u3010\u3018\u3016\u301D\u2018\u201C\uFF5F\xAB([{"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-design-doc-viewer-embed",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "The viewer of Markdown Design Doc Viewer to embed in a web app (React or not): design documents in Markdown with their mermaid sequence diagrams, flowcharts, ER and state diagrams and wireframes linked to the steps after them.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/viewer.css CHANGED
@@ -1107,9 +1107,6 @@ html:has(> body[data-seqnotes-theme=dark]:is(.vscode-light, .vscode-high-contras
1107
1107
  fill: none !important;
1108
1108
  pointer-events: stroke;
1109
1109
  }
1110
- .messageText.seqnotes-linked {
1111
- text-decoration: underline dotted;
1112
- }
1113
1110
  .messageText.seqnotes-active {
1114
1111
  fill: var(--seqnotes-accent) !important;
1115
1112
  font-weight: bold;
@@ -1139,9 +1136,6 @@ text.seqnotes-anchor tspan {
1139
1136
  stroke: var(--seqnotes-accent) !important;
1140
1137
  stroke-dasharray: 5 3;
1141
1138
  }
1142
- .seqnotes-goto :is(text, tspan) {
1143
- text-decoration: underline dotted;
1144
- }
1145
1139
  .seqnotes-goto.seqnotes-jump-hover > rect,
1146
1140
  .seqnotes-note.seqnotes-anchor.seqnotes-jump-hover > rect {
1147
1141
  stroke-width: 3px !important;