sykpcomposer 1.19.78 → 1.19.79
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/ImageComponent-16bda209.js +933 -0
- package/dist/ImageComponent-16bda209.js.map +1 -0
- package/dist/{InlineImageComponent-faa53bd0.js → InlineImageComponent-5656f011.js} +3 -3
- package/dist/{InlineImageComponent-faa53bd0.js.map → InlineImageComponent-5656f011.js.map} +1 -1
- package/dist/{LexicalNestedComposer.prod-96d2d62e.js → LexicalNestedComposer.prod-ad2829c0.js} +2 -2
- package/dist/{LexicalNestedComposer.prod-96d2d62e.js.map → LexicalNestedComposer.prod-ad2829c0.js.map} +1 -1
- package/dist/{PollComponent-7363f2ab.js → PollComponent-e54def31.js} +2 -2
- package/dist/{PollComponent-7363f2ab.js.map → PollComponent-e54def31.js.map} +1 -1
- package/dist/{index-26eecbcf.js → index-bbfc5e64.js} +42 -40
- package/dist/index-bbfc5e64.js.map +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +80 -80
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/ImageComponent-edf96681.js +0 -924
- package/dist/ImageComponent-edf96681.js.map +0 -1
- package/dist/index-26eecbcf.js.map +0 -1
|
@@ -11568,7 +11568,7 @@ class qh extends O0 {
|
|
|
11568
11568
|
function yO(c) {
|
|
11569
11569
|
return new qh(c);
|
|
11570
11570
|
}
|
|
11571
|
-
const bO = sr.lazy(() => import("./ImageComponent-
|
|
11571
|
+
const bO = sr.lazy(() => import("./ImageComponent-16bda209.js"));
|
|
11572
11572
|
function vO(c) {
|
|
11573
11573
|
const t = c;
|
|
11574
11574
|
if (t.src.startsWith("file:///"))
|
|
@@ -11714,7 +11714,7 @@ function Qc({
|
|
|
11714
11714
|
function _O(c) {
|
|
11715
11715
|
return c instanceof hu;
|
|
11716
11716
|
}
|
|
11717
|
-
const xO = sr.lazy(() => import("./InlineImageComponent-
|
|
11717
|
+
const xO = sr.lazy(() => import("./InlineImageComponent-5656f011.js"));
|
|
11718
11718
|
function wO(c) {
|
|
11719
11719
|
if (c instanceof HTMLImageElement) {
|
|
11720
11720
|
const { alt: t, src: n, width: e, height: s } = c;
|
|
@@ -12153,7 +12153,7 @@ function JS() {
|
|
|
12153
12153
|
function NO(c) {
|
|
12154
12154
|
return c instanceof cf;
|
|
12155
12155
|
}
|
|
12156
|
-
const AO = sr.lazy(() => import("./PollComponent-
|
|
12156
|
+
const AO = sr.lazy(() => import("./PollComponent-e54def31.js"));
|
|
12157
12157
|
function jO() {
|
|
12158
12158
|
return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
|
|
12159
12159
|
}
|
|
@@ -14498,30 +14498,28 @@ function $1(c, t) {
|
|
|
14498
14498
|
const e = n.result, o = { altText: c.name, src: e };
|
|
14499
14499
|
t.update(() => {
|
|
14500
14500
|
const i = `Figure ${Wn().getChildren().filter(
|
|
14501
|
-
(
|
|
14502
|
-
).length + 1}
|
|
14503
|
-
|
|
14501
|
+
(m) => Jt(m) && m.getTextContent().startsWith("Figure")
|
|
14502
|
+
).length + 1}`;
|
|
14503
|
+
er(i).setStyle(
|
|
14504
14504
|
"font-weight: bold; display: block; text-align: center; margin-top: 5px; font-size: 14px;"
|
|
14505
14505
|
);
|
|
14506
14506
|
const d = Qc({ ...o, figureLabel: i }), p = Ln();
|
|
14507
|
-
p.setFormat("left")
|
|
14508
|
-
const f = Mi(), m = er(".");
|
|
14509
|
-
m.setStyle(
|
|
14507
|
+
p.setFormat("left"), Mi(), er(".").setStyle(
|
|
14510
14508
|
"color: black; font-style: italic; font-weight: bold;"
|
|
14511
|
-
), p.append(d
|
|
14512
|
-
const
|
|
14513
|
-
let
|
|
14514
|
-
|
|
14515
|
-
const
|
|
14516
|
-
(
|
|
14517
|
-
),
|
|
14518
|
-
if (
|
|
14519
|
-
const
|
|
14520
|
-
|
|
14509
|
+
), p.append(d), ua([p]), ao(d.getParentOrThrow()) && ay(d, Ln).selectEnd(), t.update(() => {
|
|
14510
|
+
const g = Wn().getChildren().filter((b) => Jr(b));
|
|
14511
|
+
let v = 1;
|
|
14512
|
+
g.forEach((b) => {
|
|
14513
|
+
const _ = b.getChildren().find(
|
|
14514
|
+
(E) => E.getTextContent().startsWith("Figure")
|
|
14515
|
+
), w = `Figure ${v}:`;
|
|
14516
|
+
if (_) {
|
|
14517
|
+
const E = new ns(
|
|
14518
|
+
w,
|
|
14521
14519
|
"black",
|
|
14522
14520
|
`Image_caption_307_${Math.random()}`
|
|
14523
14521
|
);
|
|
14524
|
-
|
|
14522
|
+
_.replace(E), v++;
|
|
14525
14523
|
}
|
|
14526
14524
|
});
|
|
14527
14525
|
});
|
|
@@ -14532,16 +14530,16 @@ function IN(c, t) {
|
|
|
14532
14530
|
t.update(() => {
|
|
14533
14531
|
const o = `Text ${Wn().getChildren().filter(
|
|
14534
14532
|
(d) => Jt(d) && d.getTextContent().startsWith("Text")
|
|
14535
|
-
).length + 1}
|
|
14536
|
-
|
|
14533
|
+
).length + 1}`;
|
|
14534
|
+
er(o).setStyle(
|
|
14537
14535
|
"font-weight: bold; display: block; text-align: center; margin-top: 5px; font-size: 14px;"
|
|
14538
14536
|
), er(c);
|
|
14539
14537
|
const a = Ln();
|
|
14540
14538
|
a.setFormat("left");
|
|
14541
|
-
const l = Mi()
|
|
14542
|
-
|
|
14539
|
+
const l = Mi();
|
|
14540
|
+
er(".").setStyle(
|
|
14543
14541
|
"color: black; font-style: italic; font-weight: bold;"
|
|
14544
|
-
), a.append(l
|
|
14542
|
+
), a.append(l), ua([a]), t.update(() => {
|
|
14545
14543
|
const p = Wn().getChildren().filter((h) => Jr(h));
|
|
14546
14544
|
let f = 1;
|
|
14547
14545
|
p.forEach((h) => {
|
|
@@ -14569,16 +14567,15 @@ function pE({
|
|
|
14569
14567
|
Kh,
|
|
14570
14568
|
(o) => {
|
|
14571
14569
|
if (s += 1, c) {
|
|
14572
|
-
|
|
14573
|
-
r.setStyle(
|
|
14570
|
+
er(`Figure ${s}:`).setStyle(
|
|
14574
14571
|
"font-weight: bold; display: block; text-align: center; margin-top: 5px; font-size: 14px;"
|
|
14575
14572
|
);
|
|
14576
14573
|
const a = Qc({ ...o }), l = Ln();
|
|
14577
|
-
l.setFormat("left");
|
|
14578
|
-
const i =
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
), l.append(a
|
|
14574
|
+
l.setFormat("left"), Mi();
|
|
14575
|
+
const i = n.trim() === "" ? "." : n;
|
|
14576
|
+
er(i).setStyle(
|
|
14577
|
+
i ? "color: black; font-style: italic; font-weight: bold;" : "color: gray; font-style: italic; font-weight: normal;"
|
|
14578
|
+
), l.append(a), ua([l]), ao(a.getParentOrThrow()) && ay(a, Ln).selectEnd();
|
|
14582
14579
|
} else {
|
|
14583
14580
|
const r = Qc(o), a = Ln();
|
|
14584
14581
|
a.setFormat("left");
|
|
@@ -60506,13 +60503,18 @@ function xC() {
|
|
|
60506
60503
|
u(C), E(C);
|
|
60507
60504
|
}, [i, a, E]), S = mn(
|
|
60508
60505
|
(C) => {
|
|
60509
|
-
(C.ctrlKey || C.metaKey) && C.key === "f"
|
|
60510
|
-
|
|
60511
|
-
|
|
60512
|
-
|
|
60513
|
-
|
|
60514
|
-
|
|
60515
|
-
|
|
60506
|
+
if ((C.ctrlKey || C.metaKey) && C.key === "f") {
|
|
60507
|
+
if (!c.getRootElement().contains(document.activeElement))
|
|
60508
|
+
return;
|
|
60509
|
+
C.preventDefault(), c.getEditorState().read(() => {
|
|
60510
|
+
const F = At();
|
|
60511
|
+
if (Et(F)) {
|
|
60512
|
+
const z = F.getTextContent();
|
|
60513
|
+
s(z);
|
|
60514
|
+
}
|
|
60515
|
+
}), n(!0);
|
|
60516
|
+
}
|
|
60517
|
+
C.key === "Enter" && d.current === document.activeElement && (C.preventDefault(), x());
|
|
60516
60518
|
},
|
|
60517
60519
|
[c, x]
|
|
60518
60520
|
);
|
|
@@ -66672,4 +66674,4 @@ export {
|
|
|
66672
66674
|
Kl as y,
|
|
66673
66675
|
n3 as z
|
|
66674
66676
|
};
|
|
66675
|
-
//# sourceMappingURL=index-
|
|
66677
|
+
//# sourceMappingURL=index-bbfc5e64.js.map
|