@makeswift/runtime 0.11.16 → 0.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/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/react-page.cjs.js +9 -0
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +9 -0
- package/dist/react-page.es.js.map +1 -1
- package/dist/types/src/controls/rich-text-v2/__tests__/fixtures/nested-paragraph-edge-case-3728.d.ts +10 -0
- package/dist/types/src/controls/rich-text-v2/__tests__/fixtures/nested-paragraph-edge-case-3728.d.ts.map +1 -0
- package/dist/types/src/slate/BlockPlugin/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1251,7 +1251,7 @@ async function fonts(_req, res, { getFonts } = {}) {
|
|
|
1251
1251
|
const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
|
|
1252
1252
|
return res.json(fonts2);
|
|
1253
1253
|
}
|
|
1254
|
-
const version = "0.11.
|
|
1254
|
+
const version = "0.11.17";
|
|
1255
1255
|
async function handler(req, res, { apiKey, siteVersions }) {
|
|
1256
1256
|
if (req.query.secret !== apiKey) {
|
|
1257
1257
|
return res.status(401).json({ message: "Unauthorized" });
|
package/dist/index.es.js
CHANGED
|
@@ -1218,7 +1218,7 @@ async function fonts(_req, res, { getFonts } = {}) {
|
|
|
1218
1218
|
const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
|
|
1219
1219
|
return res.json(fonts2);
|
|
1220
1220
|
}
|
|
1221
|
-
const version = "0.11.
|
|
1221
|
+
const version = "0.11.17";
|
|
1222
1222
|
async function handler(req, res, { apiKey, siteVersions }) {
|
|
1223
1223
|
if (req.query.secret !== apiKey) {
|
|
1224
1224
|
return res.status(401).json({ message: "Unauthorized" });
|
package/dist/react-page.cjs.js
CHANGED
|
@@ -3212,6 +3212,15 @@ function withBlock(editor) {
|
|
|
3212
3212
|
});
|
|
3213
3213
|
return;
|
|
3214
3214
|
}
|
|
3215
|
+
if (normalizationPath.length === 1 && ElementUtils.isRootBlock(normalizationNode) && !ElementUtils.isList(normalizationNode)) {
|
|
3216
|
+
const children = Array.from(slate.Node.children(editor, normalizationPath));
|
|
3217
|
+
if (children.findIndex(([child]) => ElementUtils.isRootBlock(child)) !== -1) {
|
|
3218
|
+
slate.Transforms.unwrapNodes(editor, {
|
|
3219
|
+
at: normalizationPath
|
|
3220
|
+
});
|
|
3221
|
+
return;
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3215
3224
|
if (ElementUtils.isListItem(normalizationNode)) {
|
|
3216
3225
|
const pathToListItemText = [...normalizationPath, LIST_ITEM_CHILD_POSITION];
|
|
3217
3226
|
if (slate.Node.has(editor, pathToListItemText)) {
|