@diplodoc/client 5.10.0 → 5.10.2
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/.github/workflows/auto-approve.yml +13 -0
- package/.github/workflows/update-deps.yml +84 -9
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +15 -0
- package/build/client/{app-faa955b9788700db.js → app-3235acdfaf832d3c.js} +2 -2
- package/build/client/{app-faa955b9788700db.js.map → app-3235acdfaf832d3c.js.map} +1 -1
- package/build/client/manifest.json +1 -1
- package/build/react-compat.d.ts +3 -1
- package/build/server/vendor.js +31 -5
- package/build/server/vendor.js.map +1 -1
- package/package.json +5 -5
package/build/react-compat.d.ts
CHANGED
package/build/server/vendor.js
CHANGED
|
@@ -17560,6 +17560,22 @@ var registerTransform = (md, {
|
|
|
17560
17560
|
if (directiveSyntax === "enabled" || directiveSyntax === "only") {
|
|
17561
17561
|
fileDirective(md, { fileExtraAttrs: extraAttrs });
|
|
17562
17562
|
}
|
|
17563
|
+
const yfmFileGuard = (state) => {
|
|
17564
|
+
const tokens = state.tokens;
|
|
17565
|
+
for (let i = 0; i < tokens.length - 3; i++) {
|
|
17566
|
+
const listClose = tokens[i];
|
|
17567
|
+
const inlineToken = tokens[i + 2];
|
|
17568
|
+
const { children } = inlineToken;
|
|
17569
|
+
if ((listClose.type === "bullet_list_close" || listClose.type === "ordered_list_close" || listClose.type === "table_close") && tokens[i + 1].type === "paragraph_open" && inlineToken.type === "inline" && children !== null && children.length === 1 && children[0].type === FILE_TOKEN) {
|
|
17570
|
+
inlineToken.content = "";
|
|
17571
|
+
}
|
|
17572
|
+
}
|
|
17573
|
+
};
|
|
17574
|
+
try {
|
|
17575
|
+
md.core.ruler.before("curly_attributes", "yfm_file_guard", yfmFileGuard);
|
|
17576
|
+
} catch {
|
|
17577
|
+
md.core.ruler.push("yfm_file_guard", yfmFileGuard);
|
|
17578
|
+
}
|
|
17563
17579
|
md.core.ruler.push("yfm_file_after", ({ env }) => {
|
|
17564
17580
|
if (env?.[ENV_FLAG_NAME]) {
|
|
17565
17581
|
env.meta ||= {};
|
|
@@ -19044,11 +19060,10 @@ function findTabs(tokens, idx, closeTokenIdx) {
|
|
|
19044
19060
|
break;
|
|
19045
19061
|
case "ordered_list_close":
|
|
19046
19062
|
case "bullet_list_close":
|
|
19047
|
-
if (
|
|
19048
|
-
|
|
19063
|
+
if (nestedLevel) {
|
|
19064
|
+
pending.tokens.push(token);
|
|
19049
19065
|
}
|
|
19050
19066
|
nestedLevel--;
|
|
19051
|
-
pending.tokens.push(token);
|
|
19052
19067
|
break;
|
|
19053
19068
|
case "paragraph_open":
|
|
19054
19069
|
if (i === closeTokenIdx && tokens[i + 1].content && tokens[i + 1].content.trim() === "{% endlist %}") {
|
|
@@ -22697,9 +22712,20 @@ module.exports = blockAnchor;
|
|
|
22697
22712
|
const utils_1 = __webpack_require__(49963);
|
|
22698
22713
|
const utils_2 = __webpack_require__(29108);
|
|
22699
22714
|
const wrapInFloatingContainer = (element, id, lineWrapping, hasWrap) => {
|
|
22700
|
-
const
|
|
22715
|
+
const buttonClassNames = [
|
|
22716
|
+
'g-button',
|
|
22717
|
+
'g-button_view_flat',
|
|
22718
|
+
'g-button_size_m',
|
|
22719
|
+
'g-button_pin_round-round',
|
|
22720
|
+
'g-md-viewer-code-button',
|
|
22721
|
+
'yfm-code-button',
|
|
22722
|
+
'yfm-wrapping-button',
|
|
22723
|
+
];
|
|
22724
|
+
if (hasWrap) {
|
|
22725
|
+
buttonClassNames.push('g-button_selected');
|
|
22726
|
+
}
|
|
22701
22727
|
const wrappingButton = lineWrapping
|
|
22702
|
-
? `<button role="button" class="${
|
|
22728
|
+
? `<button role="button" class="${buttonClassNames.join(' ')}" tabindex="-1" type="button" aria-label="Toggle line wrapping" aria-pressed="${hasWrap}" data-tabindex="0">
|
|
22703
22729
|
<span class="g-button__icon">
|
|
22704
22730
|
<span class="g-button__icon-inner"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" class="g-icon" fill="currentColor" stroke="none" aria-hidden="true">
|
|
22705
22731
|
<svg class="yfm-code-icon yfm-wrapping-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16">
|