@diplodoc/client 3.2.0 → 3.3.1

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.
@@ -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:last-child,
558
- .yfm li > blockquote:last-child {
559
- margin-block: 15px;
560
- margin-block: var(--yfm-list-text-last-margin-block, 15px);
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;
@@ -202,8 +202,6 @@ var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectW
202
202
  var Provider = __webpack_require__(47658);
203
203
  // EXTERNAL MODULE: ./node_modules/@gravity-ui/page-constructor/build/esm/containers/PageConstructor/PageConstructor.js + 10 modules
204
204
  var PageConstructor = __webpack_require__(95168);
205
- // EXTERNAL MODULE: ./node_modules/@diplodoc/tabs-extension/build/react/index.js
206
- var build_react = __webpack_require__(81397);
207
205
  // EXTERNAL MODULE: ./node_modules/bem-cn-lite/lib/index.js
208
206
  var lib = __webpack_require__(23614);
209
207
  ;// ./src/components/Layout/index.tsx
@@ -764,11 +762,7 @@ var useNavigation = function useNavigation(data, controls, CustomControls, Custo
764
762
  };
765
763
  ;// ./src/components/App/Page.tsx
766
764
 
767
-
768
765
  var _excluded = ["data"];
769
- function Page_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
770
- function Page_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Page_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_default()(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Page_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
771
-
772
766
 
773
767
 
774
768
 
@@ -783,15 +777,6 @@ function Page(_ref) {
783
777
  pageProps = objectWithoutProperties_default()(_ref, _excluded);
784
778
  var type = (0,utils/* getPageType */.M5)(data);
785
779
  var Page = (0,utils/* getPageByType */.$T)(type);
786
- var tabs = (0,build_react.useDiplodocTabs)();
787
- tabs.configure({
788
- saveTabsToLocalStorage: true,
789
- saveTabsToQueryStateMode: 'page'
790
- });
791
- (0,react.useEffect)(function () {
792
- tabs.onPageChanged();
793
- tabs.restoreTabs(Page_objectSpread(Page_objectSpread({}, tabs.getTabsFromLocalStorage()), tabs.getTabsFromSearchQuery()));
794
- }, [tabs]);
795
780
  return /*#__PURE__*/react.createElement(Layout, {
796
781
  headerHeight: pageProps.headerHeight
797
782
  }, /*#__PURE__*/react.createElement(Layout.Content, null, /*#__PURE__*/react.createElement(Page, Object.assign({}, data, pageProps))));
@@ -875,13 +860,15 @@ function filterControls(controls, omitProps) {
875
860
  }, {});
876
861
  }
877
862
  // EXTERNAL MODULE: ./node_modules/@diplodoc/mermaid-extension/build/react/index.js
878
- var mermaid_extension_build_react = __webpack_require__(58498);
863
+ var build_react = __webpack_require__(58498);
879
864
  // EXTERNAL MODULE: ./node_modules/@diplodoc/latex-extension/build/react/index.js
880
865
  var latex_extension_build_react = __webpack_require__(89457);
881
866
  // EXTERNAL MODULE: ./node_modules/@diplodoc/openapi-extension/build/runtime/index.min.js + 14 modules
882
867
  var index_min = __webpack_require__(93745);
883
868
  // EXTERNAL MODULE: ./node_modules/@gravity-ui/uikit/build/esm/components/theme/useTheme.js
884
869
  var theme_useTheme = __webpack_require__(65277);
870
+ // EXTERNAL MODULE: ./node_modules/@diplodoc/tabs-extension/build/react/index.js
871
+ var tabs_extension_build_react = __webpack_require__(81397);
885
872
  ;// ./src/components/App/Runtime.tsx
886
873
 
887
874
 
@@ -889,14 +876,18 @@ var theme_useTheme = __webpack_require__(65277);
889
876
 
890
877
 
891
878
 
879
+
892
880
  function Runtime() {
893
881
  var theme = (0,theme_useTheme/* useTheme */.D)();
894
- return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(index_min/* Runtime */.v, null), /*#__PURE__*/react.createElement(latex_extension_build_react/* LatexRuntime */.l, null), /*#__PURE__*/react.createElement(mermaid_extension_build_react/* MermaidRuntime */.A, {
882
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(index_min/* Runtime */.v, null), /*#__PURE__*/react.createElement(latex_extension_build_react/* LatexRuntime */.l, null), /*#__PURE__*/react.createElement(build_react/* MermaidRuntime */.A, {
895
883
  theme: theme === models/* Theme */.Sx.Dark ? 'dark' : 'neutral',
896
884
  zoom: {
897
885
  showMenu: true,
898
886
  bindKeys: true
899
887
  }
888
+ }), /*#__PURE__*/react.createElement(tabs_extension_build_react.TabsRuntime, {
889
+ saveTabsToLocalStorage: true,
890
+ saveTabsToQueryStateMode: "page"
900
891
  }));
901
892
  }
902
893
  ;// ./src/components/App/useLangs.ts