@bendyline/squisq-editor-react 2.11.3 → 2.11.5
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/{chunk-PMNNJYFD.js → chunk-34FRFDQ6.js} +138 -30
- package/dist/{chunk-7RRYZULY.js → chunk-BJ3TXAIQ.js} +155 -15
- package/dist/{chunk-VH45VMPL.js → chunk-DN6XFOY2.js} +1 -1
- package/dist/chunk-DUO5XZQK.js +1653 -0
- package/dist/{chunk-UNOKKSAC.js → chunk-ENDRPV6T.js} +1 -1
- package/dist/{chunk-A2W4GYPG.js → chunk-ES6CPRCW.js} +5 -4
- package/dist/{chunk-SK3MQSHQ.js → chunk-UYKOTWJM.js} +1 -1
- package/dist/{chunk-AAIZHMVD.js → chunk-WMNH5ROU.js} +2802 -3764
- package/dist/index.d.ts +9 -57
- package/dist/index.js +19 -17
- package/dist/json-editor/index.js +2 -2
- package/dist/proofing/index.d.ts +2 -2
- package/dist/recorder/index.d.ts +2 -2
- package/dist/recorder/index.js +3 -3
- package/dist/{recorder-GrEh4xE8.d.ts → recorder-B6MtQH5u.d.ts} +4 -2
- package/dist/review/index.d.ts +285 -0
- package/dist/review/index.js +103 -0
- package/dist/shell/index.d.ts +4 -2
- package/dist/shell/index.js +9 -7
- package/dist/{shell-CJkHDwpz.d.ts → shell-Dwf_W4K4.d.ts} +116 -3
- package/dist/styles/index.css +152 -0
- package/dist/teleprompter/index.d.ts +2 -2
- package/dist/teleprompter/index.js +2 -2
- package/dist/types-C0puuw-M.d.ts +81 -0
- package/dist/{types-B_aHRuSc.d.ts → types-De4z-gGb.d.ts} +1 -1
- package/dist/{useNarrationStage-B6r9Zlq-.d.ts → useNarrationStage-D3Sgcf0L.d.ts} +19 -0
- package/package.json +10 -6
|
@@ -10,8 +10,8 @@ var RE_BOLD_UNDER = /(?<![\p{L}\p{N}_])__(?![\s_])(.+?)(?<![\s_])__(?![\p{L}\p{N
|
|
|
10
10
|
var RE_ITALIC_STAR = /\*(?![\s*])(.+?)(?<![\s*])\*/g;
|
|
11
11
|
var RE_ITALIC_UNDER = /(?<![\p{L}\p{N}_])_(?![\s_])(.+?)(?<![\s_])_(?![\p{L}\p{N}_])/gu;
|
|
12
12
|
var RE_STRIKETHROUGH = /~~(.+?)~~/g;
|
|
13
|
-
var RE_LEGACY_BOLD_STAR = /\*\*(?![\s*])(
|
|
14
|
-
var RE_LEGACY_ITALIC_STAR = /(?<!\*)\*(?![\s*])(
|
|
13
|
+
var RE_LEGACY_BOLD_STAR = /\*\*(?![\s*])((?:(?!\*\*).)+?)(?<![\s*])([ \t]+)\*\*(?=$|[^\s*])/g;
|
|
14
|
+
var RE_LEGACY_ITALIC_STAR = /(?<!\*)\*(?![\s*])([^*]+?)(?<![\s*])([ \t]+)\*(?=$|[^\s*])/g;
|
|
15
15
|
var ESCAPABLE_MD_CHARS = ["*", "_", "~", "\\"];
|
|
16
16
|
var RE_MD_ESCAPE = /\\([*_~\\])/g;
|
|
17
17
|
var RE_INLINE_CODE = /`(.+?)`/g;
|
|
@@ -445,7 +445,7 @@ function tiptapToMarkdown(html) {
|
|
|
445
445
|
while ((cellExec = cellRegex.exec(rowHtml)) !== null) {
|
|
446
446
|
const tag = cellExec[1];
|
|
447
447
|
const attrs = cellExec[2];
|
|
448
|
-
const content = htmlToTableCell(cellExec[3]
|
|
448
|
+
const content = htmlToTableCell(cellExec[3]);
|
|
449
449
|
const alignExec = attrs.match(/text-align:\s*(left|center|right)/);
|
|
450
450
|
cells.push({
|
|
451
451
|
content,
|
|
@@ -1075,7 +1075,8 @@ function htmlToInline(html) {
|
|
|
1075
1075
|
return restoreLeadingSpaces(unescapeHtml(result));
|
|
1076
1076
|
}
|
|
1077
1077
|
function htmlToTableCell(html) {
|
|
1078
|
-
|
|
1078
|
+
const withParagraphBreaks = html.replace(/<\/p>\s*<p(?:\s[^>]*)?>/gi, "<br>").replace(/^\s*<p(?:\s[^>]*)?>/i, "").replace(/<\/p>\s*$/i, "");
|
|
1079
|
+
return htmlToInline(withParagraphBreaks).replace(/ {2}\n/g, "<br>");
|
|
1079
1080
|
}
|
|
1080
1081
|
function preserveLeadingSpaces(html) {
|
|
1081
1082
|
return html.replace(/^ +/, (spaces) => " ".repeat(spaces.length));
|