@ones-editor/editor 2.5.1-beta.6 → 2.5.1-beta.8
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +15 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74235,15 +74235,24 @@ ${codeText}
|
|
|
74235
74235
|
children: []
|
|
74236
74236
|
};
|
|
74237
74237
|
const groups = groupTokens(tokens);
|
|
74238
|
-
groups.forEach((
|
|
74239
|
-
const token = tokens2[0];
|
|
74238
|
+
groups.forEach((childTokens, index2) => {
|
|
74240
74239
|
if (index2 === 0) {
|
|
74240
|
+
const token = childTokens[0];
|
|
74241
74241
|
if (isInlineToken(token)) {
|
|
74242
|
-
ret.text = tokensToText(
|
|
74242
|
+
ret.text = tokensToText(childTokens, {}, options);
|
|
74243
74243
|
return;
|
|
74244
74244
|
}
|
|
74245
74245
|
}
|
|
74246
|
-
|
|
74246
|
+
if (childTokens.every((token) => isInlineToken(token))) {
|
|
74247
|
+
const blockText = tokensToText(childTokens, {}, options);
|
|
74248
|
+
ret.children.push({
|
|
74249
|
+
id: genId(),
|
|
74250
|
+
type: "text",
|
|
74251
|
+
text: blockText
|
|
74252
|
+
});
|
|
74253
|
+
return;
|
|
74254
|
+
}
|
|
74255
|
+
ret.children.push(...tokensToBlocks(childTokens, options));
|
|
74247
74256
|
});
|
|
74248
74257
|
return ret;
|
|
74249
74258
|
}
|
|
@@ -92151,7 +92160,7 @@ ${data2.plantumlText}
|
|
|
92151
92160
|
}
|
|
92152
92161
|
}
|
|
92153
92162
|
});
|
|
92154
|
-
editor.version = "2.5.1-beta.
|
|
92163
|
+
editor.version = "2.5.1-beta.8";
|
|
92155
92164
|
return editor;
|
|
92156
92165
|
}
|
|
92157
92166
|
function isDoc(doc2) {
|
|
@@ -92264,7 +92273,7 @@ ${data2.plantumlText}
|
|
|
92264
92273
|
}
|
|
92265
92274
|
});
|
|
92266
92275
|
OnesEditorToolbar.register(editor);
|
|
92267
|
-
editor.version = "2.5.1-beta.
|
|
92276
|
+
editor.version = "2.5.1-beta.8";
|
|
92268
92277
|
return editor;
|
|
92269
92278
|
}
|
|
92270
92279
|
async function showDocVersions(editor, options, serverUrl) {
|