@diplodoc/client 3.3.0 → 3.3.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/CHANGELOG.md +14 -0
- package/build/client/app.css +1 -1
- package/build/client/app.css.map +1 -1
- package/build/client/app.js +1 -1
- package/build/client/app.js.map +1 -1
- package/build/client/app.rtl.css +1 -1
- package/build/client/vendor.css +89 -37
- package/build/client/vendor.css.map +1 -1
- package/build/client/vendor.js +1 -1
- package/build/client/vendor.js.map +1 -1
- package/build/client/vendor.rtl.css +89 -37
- package/build/server/app.js +5 -3
- package/build/server/app.js.map +1 -1
- package/build/server/vendor.js +380 -142
- package/build/server/vendor.js.map +1 -1
- package/package.json +2 -2
|
@@ -162,6 +162,77 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
162
162
|
@charset "UTF-8";
|
|
163
163
|
|
|
164
164
|
/* src/scss/yfm.scss */
|
|
165
|
+
.yfm ol {
|
|
166
|
+
--hier-list-start: 0;
|
|
167
|
+
counter-reset: hier-list-item 0;
|
|
168
|
+
counter-reset: hier-list-item var(--hier-list-start);
|
|
169
|
+
}
|
|
170
|
+
.yfm ol > li {
|
|
171
|
+
counter-increment: hier-list-item;
|
|
172
|
+
}
|
|
173
|
+
.yfm ol > li::marker {
|
|
174
|
+
content: counter(hier-list-item) ". ";
|
|
175
|
+
}
|
|
176
|
+
.yfm ol > li > ol {
|
|
177
|
+
--hier-list-start: 0;
|
|
178
|
+
counter-reset: sub-hier-list-item 0;
|
|
179
|
+
counter-reset: sub-hier-list-item var(--hier-list-start);
|
|
180
|
+
}
|
|
181
|
+
.yfm ol > li > ol > li {
|
|
182
|
+
counter-increment: sub-hier-list-item;
|
|
183
|
+
}
|
|
184
|
+
.yfm ol > li > ol > li::marker {
|
|
185
|
+
content: counter(hier-list-item) "." counter(sub-hier-list-item) ". ";
|
|
186
|
+
}
|
|
187
|
+
.yfm ol > li > ol > li > ol {
|
|
188
|
+
--hier-list-start: 0;
|
|
189
|
+
counter-reset: sub-sub-hier-list-item 0;
|
|
190
|
+
counter-reset: sub-sub-hier-list-item var(--hier-list-start);
|
|
191
|
+
}
|
|
192
|
+
.yfm ol > li > ol > li > ol > li {
|
|
193
|
+
counter-increment: sub-sub-hier-list-item;
|
|
194
|
+
}
|
|
195
|
+
.yfm ol > li > ol > li > ol > li::marker {
|
|
196
|
+
content: counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) ". ";
|
|
197
|
+
}
|
|
198
|
+
.yfm ol > li > ol > li > ol > li > ol {
|
|
199
|
+
--hier-list-start: 0;
|
|
200
|
+
counter-reset: sub-sub-sub-hier-list-item 0;
|
|
201
|
+
counter-reset: sub-sub-sub-hier-list-item var(--hier-list-start);
|
|
202
|
+
}
|
|
203
|
+
.yfm ol > li > ol > li > ol > li > ol > li {
|
|
204
|
+
counter-increment: sub-sub-sub-hier-list-item;
|
|
205
|
+
}
|
|
206
|
+
.yfm ol > li > ol > li > ol > li > ol > li::marker {
|
|
207
|
+
content: counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) "." counter(sub-sub-sub-hier-list-item) ". ";
|
|
208
|
+
}
|
|
209
|
+
.yfm ol > li > ol > li > ol > li > ol > li > ol {
|
|
210
|
+
--hier-list-start: 0;
|
|
211
|
+
counter-reset: sub-sub-sub-sub-hier-list-item 0;
|
|
212
|
+
counter-reset: sub-sub-sub-sub-hier-list-item var(--hier-list-start);
|
|
213
|
+
}
|
|
214
|
+
.yfm ol > li > ol > li > ol > li > ol > li > ol > li {
|
|
215
|
+
counter-increment: sub-sub-sub-sub-hier-list-item;
|
|
216
|
+
}
|
|
217
|
+
.yfm ol > li > ol > li > ol > li > ol > li > ol > li::marker {
|
|
218
|
+
content: counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) "." counter(sub-sub-sub-hier-list-item) "." counter(sub-sub-sub-sub-hier-list-item) ". ";
|
|
219
|
+
}
|
|
220
|
+
.yfm ol > li > ol > li > ol > li > ol > li > ol > li > ol {
|
|
221
|
+
--hier-list-start: 0;
|
|
222
|
+
counter-reset: sub-sub-sub-sub-sub-hier-list-item 0;
|
|
223
|
+
counter-reset: sub-sub-sub-sub-sub-hier-list-item var(--hier-list-start);
|
|
224
|
+
}
|
|
225
|
+
.yfm ol > li > ol > li > ol > li > ol > li > ol > li > ol > li {
|
|
226
|
+
counter-increment: sub-sub-sub-sub-sub-hier-list-item;
|
|
227
|
+
}
|
|
228
|
+
.yfm ol > li > ol > li > ol > li > ol > li > ol > li > ol > li::marker {
|
|
229
|
+
content: counter(hier-list-item) "." counter(sub-hier-list-item) "." counter(sub-sub-hier-list-item) "." counter(sub-sub-sub-hier-list-item) "." counter(sub-sub-sub-sub-hier-list-item) "." counter(sub-sub-sub-sub-sub-hier-list-item) ". ";
|
|
230
|
+
}
|
|
231
|
+
.yfm.yfm_no-list-reset ol > li::marker,
|
|
232
|
+
.yfm ol.yfm_no-list-reset > li::marker {
|
|
233
|
+
content: normal;
|
|
234
|
+
content: initial;
|
|
235
|
+
}
|
|
165
236
|
.yfm {
|
|
166
237
|
--yfm-color-text-private: rgba(0, 0, 0, 0.7);
|
|
167
238
|
--yfm-color-link-private: #027bf3;
|
|
@@ -340,6 +411,8 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
340
411
|
.yfm svg {
|
|
341
412
|
box-sizing: content-box;
|
|
342
413
|
max-width: 100%;
|
|
414
|
+
max-height: -moz-fit-content;
|
|
415
|
+
max-height: fit-content;
|
|
343
416
|
border: none;
|
|
344
417
|
vertical-align: middle;
|
|
345
418
|
}
|
|
@@ -375,6 +448,8 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
375
448
|
.yfm pre {
|
|
376
449
|
margin-block: 0 15px;
|
|
377
450
|
margin-block: var(--yfm-text-block-margin-block, 0 15px);
|
|
451
|
+
margin-inline: 0;
|
|
452
|
+
margin-inline: var(--yfm-text-block-margin-inline, 0);
|
|
378
453
|
}
|
|
379
454
|
.yfm ul pre,
|
|
380
455
|
.yfm ol pre,
|
|
@@ -521,27 +596,6 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
521
596
|
margin-top: 0;
|
|
522
597
|
margin-bottom: 0;
|
|
523
598
|
}
|
|
524
|
-
.yfm ol {
|
|
525
|
-
counter-reset: list;
|
|
526
|
-
}
|
|
527
|
-
.yfm ol > li {
|
|
528
|
-
position: relative;
|
|
529
|
-
counter-increment: list;
|
|
530
|
-
}
|
|
531
|
-
.yfm ol > li > ol > li::marker {
|
|
532
|
-
content: counters(list, ".") ". ";
|
|
533
|
-
}
|
|
534
|
-
.yfm :not(ol > li) > ol > li::marker {
|
|
535
|
-
content: counter(list) ". ";
|
|
536
|
-
}
|
|
537
|
-
.yfm.yfm_no-list-reset ol {
|
|
538
|
-
counter-reset: none;
|
|
539
|
-
counter-reset: initial;
|
|
540
|
-
}
|
|
541
|
-
.yfm.yfm_no-list-reset ol li::marker {
|
|
542
|
-
content: normal;
|
|
543
|
-
content: initial;
|
|
544
|
-
}
|
|
545
599
|
.yfm li {
|
|
546
600
|
word-wrap: break-word;
|
|
547
601
|
}
|
|
@@ -551,13 +605,20 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
|
|
|
551
605
|
}
|
|
552
606
|
.yfm li p,
|
|
553
607
|
.yfm li blockquote {
|
|
554
|
-
margin-block: 15px;
|
|
555
|
-
margin-block: var(--yfm-list-text-margin-block, 15px);
|
|
556
|
-
}
|
|
557
|
-
.yfm li > p:
|
|
558
|
-
.yfm li > blockquote:
|
|
559
|
-
margin-block:
|
|
560
|
-
margin-block: var(--yfm-list-text-
|
|
608
|
+
margin-block: 0 15px;
|
|
609
|
+
margin-block: var(--yfm-list-text-margin-block, 0 15px);
|
|
610
|
+
}
|
|
611
|
+
.yfm li > p:only-child,
|
|
612
|
+
.yfm li > blockquote:only-child {
|
|
613
|
+
margin-block: 0;
|
|
614
|
+
margin-block: var(--yfm-list-text-only-margin-block, 0);
|
|
615
|
+
}
|
|
616
|
+
@supports selector(:has(br)) {
|
|
617
|
+
.yfm li > p:only-child:has(br),
|
|
618
|
+
.yfm li > blockquote:only-child:has(br) {
|
|
619
|
+
margin-block: 0 15px;
|
|
620
|
+
margin-block: var(--yfm-list-text-margin-block, 0 15px);
|
|
621
|
+
}
|
|
561
622
|
}
|
|
562
623
|
.yfm code {
|
|
563
624
|
padding: 0.1em 0.4em 0.15em;
|
|
@@ -1069,15 +1130,6 @@ details.yfm-cut > .yfm-cut-content {
|
|
|
1069
1130
|
.yfm-tabs {
|
|
1070
1131
|
margin-bottom: 15px;
|
|
1071
1132
|
}
|
|
1072
|
-
.yfm:not(.yfm_no-list-reset) .yfm-tabs ol {
|
|
1073
|
-
counter-reset: tabs-list;
|
|
1074
|
-
}
|
|
1075
|
-
.yfm:not(.yfm_no-list-reset) .yfm-tabs ol > li {
|
|
1076
|
-
counter-increment: tabs-list;
|
|
1077
|
-
}
|
|
1078
|
-
.yfm:not(.yfm_no-list-reset) .yfm-tabs ol > li:before {
|
|
1079
|
-
content: counters(tabs-list, ".") ". ";
|
|
1080
|
-
}
|
|
1081
1133
|
.yfm-tab-list {
|
|
1082
1134
|
display: flex;
|
|
1083
1135
|
flex-wrap: wrap;
|
package/build/server/app.js
CHANGED
|
@@ -26,12 +26,12 @@ var defineProperty = __webpack_require__(43693);
|
|
|
26
26
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
27
27
|
// EXTERNAL MODULE: ./node_modules/@gravity-ui/uikit/build/esm/components/theme/ThemeProvider.js + 7 modules
|
|
28
28
|
var ThemeProvider = __webpack_require__(45593);
|
|
29
|
-
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/config/index.js + 2 modules
|
|
30
|
-
var config = __webpack_require__(64216);
|
|
31
29
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/constants.js
|
|
32
30
|
var constants = __webpack_require__(81836);
|
|
33
31
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/models/index.js
|
|
34
32
|
var models = __webpack_require__(78184);
|
|
33
|
+
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/config/index.js + 2 modules
|
|
34
|
+
var config = __webpack_require__(64216);
|
|
35
35
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/components/ConsentPopup/ConsentPopup.js + 50 modules
|
|
36
36
|
var ConsentPopup = __webpack_require__(31703);
|
|
37
37
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/transform/dist/js/yfm.js
|
|
@@ -1006,8 +1006,10 @@ function App(props) {
|
|
|
1006
1006
|
var settings = useSettings();
|
|
1007
1007
|
var langData = useLangs(props);
|
|
1008
1008
|
var mobileView = useMobile();
|
|
1009
|
+
var fixedLang = constants/* SUPPORTED_LANGS */.Lq.includes(lang) ? lang : models/* Lang */.JA.En;
|
|
1009
1010
|
(0,config/* configure */.jK)({
|
|
1010
|
-
lang:
|
|
1011
|
+
lang: fixedLang,
|
|
1012
|
+
localeCode: fixedLang
|
|
1011
1013
|
});
|
|
1012
1014
|
var theme = settings.theme,
|
|
1013
1015
|
textSize = settings.textSize,
|