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.
@@ -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-edf96681.js"));
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-faa53bd0.js"));
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-7363f2ab.js"));
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
- (g) => Jt(g) && g.getTextContent().startsWith("Figure")
14502
- ).length + 1}`, u = er(i);
14503
- u.setStyle(
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, f, u, m), ua([p]), ao(d.getParentOrThrow()) && ay(d, Ln).selectEnd(), t.update(() => {
14512
- const v = Wn().getChildren().filter((_) => Jr(_));
14513
- let b = 1;
14514
- v.forEach((_) => {
14515
- const w = _.getChildren().find(
14516
- (x) => x.getTextContent().startsWith("Figure")
14517
- ), E = `Figure ${b}:`;
14518
- if (w) {
14519
- const x = new ns(
14520
- E,
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
- w.replace(x), b++;
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}`, r = er(o);
14536
- r.setStyle(
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(), u = er(".");
14542
- u.setStyle(
14539
+ const l = Mi();
14540
+ er(".").setStyle(
14543
14541
  "color: black; font-style: italic; font-weight: bold;"
14544
- ), a.append(l, r, u), ua([a]), t.update(() => {
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
- const r = er(`Figure ${s}:`);
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 = Mi(), u = n.trim() === "" ? "." : n, d = er(u);
14579
- d.setStyle(
14580
- u ? "color: black; font-style: italic; font-weight: bold;" : "color: gray; font-style: italic; font-weight: normal;"
14581
- ), l.append(a, i, r, d), ua([l]), ao(a.getParentOrThrow()) && ay(a, Ln).selectEnd();
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" && (C.preventDefault(), c.getEditorState().read(() => {
60510
- const O = At();
60511
- if (Et(O)) {
60512
- const F = O.getTextContent();
60513
- s(F);
60514
- }
60515
- }), n(!0)), C.key === "Enter" && d.current === document.activeElement && (C.preventDefault(), x());
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-26eecbcf.js.map
66677
+ //# sourceMappingURL=index-bbfc5e64.js.map