sykpcomposer 0.0.87 → 0.0.88
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/index.es.js +12 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -45048,7 +45048,7 @@ const xp = 8, wp = 72, Ms = {
|
|
|
45048
45048
|
i(String(w)), u({ "font-size": `${w}px` });
|
|
45049
45049
|
}
|
|
45050
45050
|
}, y = (x) => {
|
|
45051
|
-
const w = f[l].fontSize, S = x ? Math.min(w + 2, wp) : Math.max(w - 2, xp);
|
|
45051
|
+
const w = f && f[l] ? f[l].fontSize : "10px", S = x ? Math.min(w + 2, wp) : Math.max(w - 2, xp);
|
|
45052
45052
|
i(String(S)), u({ "font-size": `${l}px` });
|
|
45053
45053
|
}, v = (x) => {
|
|
45054
45054
|
p.update(() => {
|
|
@@ -45078,10 +45078,10 @@ const xp = 8, wp = 72, Ms = {
|
|
|
45078
45078
|
w = 0;
|
|
45079
45079
|
}
|
|
45080
45080
|
const S = f.heading[w];
|
|
45081
|
-
i(String(S.fontSize)), d(x), o(x);
|
|
45081
|
+
i(String(S ? S.fontSize : "10")), d(x), o(x);
|
|
45082
45082
|
const C = {
|
|
45083
45083
|
title: `${S.title}`,
|
|
45084
|
-
"font-size": `${S.fontSize}px`,
|
|
45084
|
+
"font-size": `${S ? S.fontSize : "11"}px`,
|
|
45085
45085
|
color: S.fontColor,
|
|
45086
45086
|
"font-family": S.fontFamily,
|
|
45087
45087
|
"margin-bottom": `${S.trailingSpace}em`,
|
|
@@ -45121,7 +45121,7 @@ const xp = 8, wp = 72, Ms = {
|
|
|
45121
45121
|
o("paragraph"), i("11");
|
|
45122
45122
|
break;
|
|
45123
45123
|
case "H1":
|
|
45124
|
-
|
|
45124
|
+
o("h1"), i(
|
|
45125
45125
|
f.heading.find(
|
|
45126
45126
|
(x) => x.title === "Heading1"
|
|
45127
45127
|
).fontSize
|
|
@@ -45142,7 +45142,7 @@ const xp = 8, wp = 72, Ms = {
|
|
|
45142
45142
|
);
|
|
45143
45143
|
break;
|
|
45144
45144
|
case "default":
|
|
45145
|
-
o("paragraph"), i("11")
|
|
45145
|
+
o("paragraph"), i("11");
|
|
45146
45146
|
break;
|
|
45147
45147
|
}
|
|
45148
45148
|
}, [n]), Hn.useEffect(() => {
|
|
@@ -45169,7 +45169,7 @@ const xp = 8, wp = 72, Ms = {
|
|
|
45169
45169
|
);
|
|
45170
45170
|
break;
|
|
45171
45171
|
case "paragraph":
|
|
45172
|
-
o("paragraph"), i("11")
|
|
45172
|
+
o("paragraph"), i("11");
|
|
45173
45173
|
break;
|
|
45174
45174
|
default:
|
|
45175
45175
|
console.warn("Unknown element type:", e);
|
|
@@ -45671,10 +45671,7 @@ function tk({ renderOnlineUsers: m, styleConfig: c }) {
|
|
|
45671
45671
|
k("");
|
|
45672
45672
|
const q = Ee();
|
|
45673
45673
|
let H = ["Heading1", "Heading2", "Heading3", "paragraph"], M = "";
|
|
45674
|
-
return q && q.style && (q.style.split(";")[0] && H.includes(q.style.split(";")[0].split(":")[1].trim("")) && (M = q.style.split(";")[0].split(":")[1].trim("")), q.style.split(";")[1] && H.includes(q.style.split(";")[1].split(":")[1].trim("")) && (M = q.style.split(";")[1].split(":")[1].trim("")), q.style.split(";")[2] && H.includes(q.style.split(";")[2].split(":")[1].trim("")) && (M = q.style.split(";")[2].split(":")[1].trim("")), q.style.split(";")[3] && H.includes(q.style.split(";")[3].split(":")[1].trim("")) && (M = q.style.split(";")[3].split(":")[1].trim(""))),
|
|
45675
|
-
"SELECTION_CHANGE_COMMAND",
|
|
45676
|
-
q && q.style && M
|
|
45677
|
-
), R(
|
|
45674
|
+
return q && q.style && (q.style.split(";")[0] && H.includes(q.style.split(";")[0].split(":")[1].trim("")) && (M = q.style.split(";")[0].split(":")[1].trim("")), q.style.split(";")[1] && H.includes(q.style.split(";")[1].split(":")[1].trim("")) && (M = q.style.split(";")[1].split(":")[1].trim("")), q.style.split(";")[2] && H.includes(q.style.split(";")[2].split(":")[1].trim("")) && (M = q.style.split(";")[2].split(":")[1].trim("")), q.style.split(";")[3] && H.includes(q.style.split(";")[3].split(":")[1].trim("")) && (M = q.style.split(";")[3].split(":")[1].trim(""))), R(
|
|
45678
45675
|
q && q.style ? M : "paragraph"
|
|
45679
45676
|
), A(), !1;
|
|
45680
45677
|
},
|
|
@@ -47442,7 +47439,7 @@ const gO = ({ initialHtml: m, onHtmlChanged: c }) => {
|
|
|
47442
47439
|
qb,
|
|
47443
47440
|
{
|
|
47444
47441
|
onChange: (r) => {
|
|
47445
|
-
|
|
47442
|
+
r.read(() => {
|
|
47446
47443
|
c(Jh(p));
|
|
47447
47444
|
});
|
|
47448
47445
|
}
|
|
@@ -47472,6 +47469,9 @@ function EO({ collabApiKey: m, styleConfig: c, userObj: p, docId: t }) {
|
|
|
47472
47469
|
id: l,
|
|
47473
47470
|
email: a
|
|
47474
47471
|
},
|
|
47472
|
+
showCursor: !1,
|
|
47473
|
+
cursorAlwaysOn: !1,
|
|
47474
|
+
showPointer: !1,
|
|
47475
47475
|
hooks: {
|
|
47476
47476
|
contentChanged: ({ source: S, content: C }) => {
|
|
47477
47477
|
},
|
|
@@ -47564,6 +47564,7 @@ function EO({ collabApiKey: m, styleConfig: c, userObj: p, docId: t }) {
|
|
|
47564
47564
|
padding: ${d || "56px"};
|
|
47565
47565
|
`, w = Zy.div`
|
|
47566
47566
|
opacity: 0;
|
|
47567
|
+
height: "20px";
|
|
47567
47568
|
`;
|
|
47568
47569
|
return wn(() => {
|
|
47569
47570
|
(async () => {
|