@bendyline/squisq-editor-react 2.11.15 → 2.11.17
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.md +9 -1
- package/dist/{chunk-ZDWZRVAY.js → chunk-2XXBDECJ.js} +1 -1
- package/dist/{chunk-BJ3TXAIQ.js → chunk-C6QVA6TO.js} +731 -448
- package/dist/{chunk-EN5BYZOE.js → chunk-DPAMJV6A.js} +3 -2
- package/dist/{chunk-DN6XFOY2.js → chunk-EJKGXWNK.js} +1 -1
- package/dist/{chunk-DNB32SU2.js → chunk-HTO5MTTJ.js} +1 -1
- package/dist/{chunk-ENDRPV6T.js → chunk-QZWFSSDE.js} +1 -1
- package/dist/{chunk-WDQFWD7Z.js → chunk-UBFNLWCN.js} +2 -2
- package/dist/{chunk-7B46MJNW.js → chunk-US5DALTZ.js} +871 -692
- package/dist/{chunk-34FRFDQ6.js → chunk-XZVMKR5Q.js} +44 -9
- package/dist/index.d.ts +9 -17
- package/dist/index.js +10 -10
- package/dist/json-editor/index.js +3 -3
- package/dist/recorder/index.d.ts +2 -2
- package/dist/recorder/index.js +3 -3
- package/dist/{recorder-CC3VW9Z7.d.ts → recorder-CRsw0eC7.d.ts} +11 -5
- package/dist/review/index.js +2 -2
- package/dist/shell/index.js +7 -7
- package/dist/styles/index.css +37 -29
- package/dist/teleprompter/index.d.ts +2 -2
- package/dist/teleprompter/index.js +2 -2
- package/dist/{useNarrationStage-D3Sgcf0L.d.ts → useNarrationStage-vKtk6H-V.d.ts} +17 -2
- package/package.json +6 -6
|
@@ -588,7 +588,7 @@ function tiptapToMarkdown(html) {
|
|
|
588
588
|
const imgMatch = remaining.match(/^<img\b([^>]*)>/);
|
|
589
589
|
if (imgMatch) {
|
|
590
590
|
const attrs = imgMatch[1] ?? "";
|
|
591
|
-
const src =
|
|
591
|
+
const src = /(?:^|\s)(?:data-squisq-image-)?src="([^"]*)"/i.exec(attrs)?.[1];
|
|
592
592
|
if (src) {
|
|
593
593
|
const alt = /\balt="([^"]*)"/i.exec(attrs)?.[1] ?? "";
|
|
594
594
|
const serialized = serializeImage(src, alt, attrs);
|
|
@@ -903,6 +903,7 @@ function serializeImage(src, alt, attrs) {
|
|
|
903
903
|
const width = /\bwidth="([^"]*)"/i.exec(attrs)?.[1];
|
|
904
904
|
const height = /\bheight="([^"]*)"/i.exec(attrs)?.[1];
|
|
905
905
|
const title = /\btitle="([^"]*)"/i.exec(attrs)?.[1];
|
|
906
|
+
if (title?.startsWith("squisq-upload:")) return "";
|
|
906
907
|
if (!width && !height) {
|
|
907
908
|
return `})`;
|
|
908
909
|
}
|
|
@@ -1188,7 +1189,7 @@ function htmlToInline(html) {
|
|
|
1188
1189
|
return `[${text}](${escapedDestination(href)}${titlePart})`;
|
|
1189
1190
|
});
|
|
1190
1191
|
result = result.replace(RE_IMG_TAG, (match, attrs) => {
|
|
1191
|
-
const src =
|
|
1192
|
+
const src = /(?:^|\s)(?:data-squisq-image-)?src="([^"]*)"/i.exec(attrs)?.[1];
|
|
1192
1193
|
if (!src) return match;
|
|
1193
1194
|
const alt = /\balt="([^"]*)"/i.exec(attrs)?.[1] ?? "";
|
|
1194
1195
|
const serialized = serializeImage(src, alt, attrs);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MarkdownEscape
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2XXBDECJ.js";
|
|
4
4
|
import {
|
|
5
5
|
markdownToTiptap,
|
|
6
6
|
tiptapToMarkdown
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DPAMJV6A.js";
|
|
8
8
|
|
|
9
9
|
// src/jsonEditor/JsonEditorContext.tsx
|
|
10
10
|
import { createContext, useContext, useEffect, useMemo } from "react";
|