@diplodoc/client 3.7.2 → 3.8.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.
- package/CHANGELOG.md +27 -0
- package/build/client/app.js +1 -1
- package/build/client/app.js.map +1 -1
- package/build/client/react.js +1 -1
- package/build/client/react.js.LICENSE.txt +0 -20
- package/build/client/react.js.map +1 -1
- package/build/client/search.js +1 -1
- package/build/client/search.js.map +1 -1
- package/build/client/vendor.css +1 -1
- 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 +1 -1
- package/build/components/App/index.d.ts +3 -2
- package/build/server/app.js +59 -5
- package/build/server/app.js.map +1 -1
- package/build/server/vendor.js +324 -924
- package/build/server/vendor.js.map +1 -1
- package/build/utils.d.ts +12 -1
- package/package.json +4 -4
package/build/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PageData } from './components/App';
|
|
2
|
-
import { Lang, Theme } from '@diplodoc/components';
|
|
2
|
+
import type { Lang, Theme } from '@diplodoc/components';
|
|
3
3
|
import { DEFAULT_USER_SETTINGS, TextDirection } from './constants';
|
|
4
4
|
export declare function isBrowser(): boolean;
|
|
5
5
|
export declare function updateThemeClassName({ theme }: {
|
|
@@ -24,3 +24,14 @@ export declare function getSettings(): {
|
|
|
24
24
|
export declare function getLandingPage(data: PageData): boolean;
|
|
25
25
|
export declare function getMobileView(): boolean;
|
|
26
26
|
export declare function setSetting<T>(name: string, value: T): void;
|
|
27
|
+
export declare function isHeaderTag(el: HTMLElement): boolean;
|
|
28
|
+
export declare function isCutTag(el: HTMLElement): boolean;
|
|
29
|
+
export declare function focusActiveTab(cutNode: HTMLElement): void;
|
|
30
|
+
/**
|
|
31
|
+
* Scrolls to the element.
|
|
32
|
+
* If the element is a heading - simply scrolls to it, since needed offset is already in css.
|
|
33
|
+
* If the element is of any other type - calculate the offset form the element position in heading and scroll to it.
|
|
34
|
+
* @param {HTMLElement} el
|
|
35
|
+
*/
|
|
36
|
+
export declare function scrollToElement(el: HTMLElement | null): void;
|
|
37
|
+
export declare function scrollToHash(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diplodoc/client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/server/app.js",
|
|
6
6
|
"scripts": {
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@diplodoc/latex-extension": "^1.3.2",
|
|
44
|
-
"@diplodoc/mdx-extension": "^1.
|
|
44
|
+
"@diplodoc/mdx-extension": "^1.6.1",
|
|
45
45
|
"@diplodoc/page-constructor-extension": "^0.9.0",
|
|
46
46
|
"@diplodoc/transform": "^4.51.0",
|
|
47
47
|
"@gravity-ui/icons": "^2.11.0",
|
|
48
48
|
"url": "^0.11.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@diplodoc/mermaid-extension": "^1.3.3",
|
|
52
51
|
"@diplodoc/babel-preset": "^1.0.3",
|
|
53
|
-
"@diplodoc/components": "^4.
|
|
52
|
+
"@diplodoc/components": "^4.30.0",
|
|
54
53
|
"@diplodoc/lint": "^1.1.1",
|
|
54
|
+
"@diplodoc/mermaid-extension": "^1.3.3",
|
|
55
55
|
"@diplodoc/openapi-extension": "^2.7.0",
|
|
56
56
|
"@diplodoc/tabs-extension": "^3.7.2",
|
|
57
57
|
"@diplodoc/tsconfig": "^1.0.2",
|