@docusaurus/theme-common 0.0.0-5551 → 0.0.0-5552
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.
|
@@ -9,8 +9,11 @@ import { type ComponentProps } from 'react';
|
|
|
9
9
|
* The id of the element that should become focused on a page
|
|
10
10
|
* that does not have a <main> html tag.
|
|
11
11
|
* Focusing the Docusaurus Layout children is a reasonable fallback.
|
|
12
|
+
*
|
|
13
|
+
* __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors
|
|
14
|
+
* https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368
|
|
12
15
|
*/
|
|
13
|
-
export declare const SkipToContentFallbackId = "
|
|
16
|
+
export declare const SkipToContentFallbackId = "__docusaurus_skipToContent_fallback";
|
|
14
17
|
type SkipToContentLinkProps = Omit<ComponentProps<'a'>, 'href' | 'onClick'>;
|
|
15
18
|
export declare function SkipToContentLink(props: SkipToContentLinkProps): JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skipToContentUtils.d.ts","sourceRoot":"","sources":["../../src/utils/skipToContentUtils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAc,EAAsB,KAAK,cAAc,EAAC,MAAM,OAAO,CAAC;AAKtE
|
|
1
|
+
{"version":3,"file":"skipToContentUtils.d.ts","sourceRoot":"","sources":["../../src/utils/skipToContentUtils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAc,EAAsB,KAAK,cAAc,EAAC,MAAM,OAAO,CAAC;AAKtE;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,wCAAwC,CAAC;AAiE7E,KAAK,sBAAsB,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAE5E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAmB5E"}
|
|
@@ -12,8 +12,11 @@ import { useLocationChange } from './useLocationChange';
|
|
|
12
12
|
* The id of the element that should become focused on a page
|
|
13
13
|
* that does not have a <main> html tag.
|
|
14
14
|
* Focusing the Docusaurus Layout children is a reasonable fallback.
|
|
15
|
+
*
|
|
16
|
+
* __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors
|
|
17
|
+
* https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368
|
|
15
18
|
*/
|
|
16
|
-
export const SkipToContentFallbackId = '
|
|
19
|
+
export const SkipToContentFallbackId = '__docusaurus_skipToContent_fallback';
|
|
17
20
|
/**
|
|
18
21
|
* Returns the skip to content element to focus when the link is clicked.
|
|
19
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skipToContentUtils.js","sourceRoot":"","sources":["../../src/utils/skipToContentUtils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,MAAM,EAAsB,MAAM,OAAO,CAAC;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"skipToContentUtils.js","sourceRoot":"","sources":["../../src/utils/skipToContentUtils.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,MAAM,EAAsB,MAAM,OAAO,CAAC;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,qCAAqC,CAAC;AAE7E;;GAEG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AAC,CAAC;AAIH,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,IAAI,yBAAyB,CAAC;IAC9D,MAAM,EAAC,YAAY,EAAE,OAAO,EAAC,GAAG,gBAAgB,EAAE,CAAC;IACnD,OAAO,CACL,CAAC,GAAG,CACF,GAAG,CAAC,CAAC,YAAY,CAAC,CAClB,IAAI,CAAC,QAAQ,CACb,UAAU,CAAC,CAAC,yBAAyB,CAAC,CACtC;MAAA,CAAC,wDAAwD,CACzD;MAAA,CAAC,CAAC,CACA,IAAI,KAAK,CAAC;IACV,sDAAsD;IACtD,qGAAqG;IACrG,IAAI,CAAC,CAAC,IAAI,uBAAuB,EAAE,CAAC,CACpC,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB;QAAA,CAAC,SAAS,CACZ;MAAA,EAAE,CAAC,CACL;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-common",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5552",
|
|
4
4
|
"description": "Common code for Docusaurus themes.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
34
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
35
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
36
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
37
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
38
|
-
"@docusaurus/utils": "0.0.0-
|
|
39
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
33
|
+
"@docusaurus/mdx-loader": "0.0.0-5552",
|
|
34
|
+
"@docusaurus/module-type-aliases": "0.0.0-5552",
|
|
35
|
+
"@docusaurus/plugin-content-blog": "0.0.0-5552",
|
|
36
|
+
"@docusaurus/plugin-content-docs": "0.0.0-5552",
|
|
37
|
+
"@docusaurus/plugin-content-pages": "0.0.0-5552",
|
|
38
|
+
"@docusaurus/utils": "0.0.0-5552",
|
|
39
|
+
"@docusaurus/utils-common": "0.0.0-5552",
|
|
40
40
|
"@types/history": "^4.7.11",
|
|
41
41
|
"@types/react": "*",
|
|
42
42
|
"@types/react-router-config": "*",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"utility-types": "^3.10.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@docusaurus/core": "0.0.0-
|
|
52
|
-
"@docusaurus/types": "0.0.0-
|
|
51
|
+
"@docusaurus/core": "0.0.0-5552",
|
|
52
|
+
"@docusaurus/types": "0.0.0-5552",
|
|
53
53
|
"fs-extra": "^11.1.0",
|
|
54
54
|
"lodash": "^4.17.21"
|
|
55
55
|
},
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=16.14"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "157450fd283b5116d09a80f3993b84889745a249"
|
|
64
64
|
}
|
|
@@ -14,8 +14,11 @@ import {useLocationChange} from './useLocationChange';
|
|
|
14
14
|
* The id of the element that should become focused on a page
|
|
15
15
|
* that does not have a <main> html tag.
|
|
16
16
|
* Focusing the Docusaurus Layout children is a reasonable fallback.
|
|
17
|
+
*
|
|
18
|
+
* __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors
|
|
19
|
+
* https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368
|
|
17
20
|
*/
|
|
18
|
-
export const SkipToContentFallbackId = '
|
|
21
|
+
export const SkipToContentFallbackId = '__docusaurus_skipToContent_fallback';
|
|
19
22
|
|
|
20
23
|
/**
|
|
21
24
|
* Returns the skip to content element to focus when the link is clicked.
|