@docusaurus/theme-common 3.4.0 → 3.5.0

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.
Files changed (95) hide show
  1. package/lib/index.d.ts +5 -6
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +18 -6
  4. package/lib/index.js.map +1 -1
  5. package/lib/internal.d.ts +2 -9
  6. package/lib/internal.d.ts.map +1 -1
  7. package/lib/internal.js +2 -9
  8. package/lib/internal.js.map +1 -1
  9. package/lib/translations/blogTranslations.d.ts +19 -0
  10. package/lib/translations/blogTranslations.d.ts.map +1 -0
  11. package/lib/translations/blogTranslations.js +48 -0
  12. package/lib/translations/blogTranslations.js.map +1 -0
  13. package/lib/{utils/unlistedUtils.d.ts → translations/contentVisibilityTranslations.d.ts} +3 -2
  14. package/lib/translations/contentVisibilityTranslations.d.ts.map +1 -0
  15. package/lib/translations/contentVisibilityTranslations.js +39 -0
  16. package/lib/translations/contentVisibilityTranslations.js.map +1 -0
  17. package/lib/utils/ThemeClassNames.d.ts +3 -0
  18. package/lib/utils/ThemeClassNames.d.ts.map +1 -1
  19. package/lib/utils/ThemeClassNames.js +3 -0
  20. package/lib/utils/ThemeClassNames.js.map +1 -1
  21. package/lib/utils/errorBoundaryUtils.d.ts +0 -1
  22. package/lib/utils/errorBoundaryUtils.d.ts.map +1 -1
  23. package/lib/utils/jsUtils.d.ts +1 -0
  24. package/lib/utils/jsUtils.d.ts.map +1 -1
  25. package/lib/utils/jsUtils.js +14 -0
  26. package/lib/utils/jsUtils.js.map +1 -1
  27. package/lib/utils/searchUtils.d.ts +0 -13
  28. package/lib/utils/searchUtils.d.ts.map +1 -1
  29. package/lib/utils/searchUtils.js +0 -39
  30. package/lib/utils/searchUtils.js.map +1 -1
  31. package/lib/utils/storageUtils.d.ts +0 -1
  32. package/lib/utils/storageUtils.d.ts.map +1 -1
  33. package/lib/utils/tabsUtils.d.ts +2 -2
  34. package/lib/utils/tabsUtils.d.ts.map +1 -1
  35. package/lib/utils/useThemeConfig.d.ts +5 -0
  36. package/lib/utils/useThemeConfig.d.ts.map +1 -1
  37. package/lib/utils/useThemeConfig.js.map +1 -1
  38. package/package.json +9 -11
  39. package/src/index.ts +27 -16
  40. package/src/internal.ts +8 -36
  41. package/src/translations/blogTranslations.tsx +79 -0
  42. package/src/{utils/unlistedUtils.tsx → translations/contentVisibilityTranslations.tsx} +25 -2
  43. package/src/types.d.ts +0 -3
  44. package/src/utils/ThemeClassNames.ts +3 -0
  45. package/src/utils/jsUtils.ts +18 -0
  46. package/src/utils/searchUtils.ts +0 -58
  47. package/src/utils/useThemeConfig.ts +6 -0
  48. package/lib/contexts/blogPost.d.ts +0 -33
  49. package/lib/contexts/blogPost.d.ts.map +0 -1
  50. package/lib/contexts/blogPost.js +0 -46
  51. package/lib/contexts/blogPost.js.map +0 -1
  52. package/lib/contexts/doc.d.ts +0 -30
  53. package/lib/contexts/doc.d.ts.map +0 -1
  54. package/lib/contexts/doc.js +0 -48
  55. package/lib/contexts/doc.js.map +0 -1
  56. package/lib/contexts/docSidebarItemsExpandedState.d.ts +0 -31
  57. package/lib/contexts/docSidebarItemsExpandedState.d.ts.map +0 -1
  58. package/lib/contexts/docSidebarItemsExpandedState.js +0 -28
  59. package/lib/contexts/docSidebarItemsExpandedState.js.map +0 -1
  60. package/lib/contexts/docsPreferredVersion.d.ts +0 -30
  61. package/lib/contexts/docsPreferredVersion.d.ts.map +0 -1
  62. package/lib/contexts/docsPreferredVersion.js +0 -130
  63. package/lib/contexts/docsPreferredVersion.js.map +0 -1
  64. package/lib/contexts/docsSidebar.d.ts +0 -26
  65. package/lib/contexts/docsSidebar.d.ts.map +0 -1
  66. package/lib/contexts/docsSidebar.js +0 -30
  67. package/lib/contexts/docsSidebar.js.map +0 -1
  68. package/lib/contexts/docsVersion.d.ts +0 -20
  69. package/lib/contexts/docsVersion.d.ts.map +0 -1
  70. package/lib/contexts/docsVersion.js +0 -26
  71. package/lib/contexts/docsVersion.js.map +0 -1
  72. package/lib/utils/blogUtils.d.ts +0 -13
  73. package/lib/utils/blogUtils.d.ts.map +0 -1
  74. package/lib/utils/blogUtils.js +0 -24
  75. package/lib/utils/blogUtils.js.map +0 -1
  76. package/lib/utils/docsUtils.d.ts +0 -109
  77. package/lib/utils/docsUtils.d.ts.map +0 -1
  78. package/lib/utils/docsUtils.js +0 -276
  79. package/lib/utils/docsUtils.js.map +0 -1
  80. package/lib/utils/structuredDataUtils.d.ts +0 -12
  81. package/lib/utils/structuredDataUtils.d.ts.map +0 -1
  82. package/lib/utils/structuredDataUtils.js +0 -123
  83. package/lib/utils/structuredDataUtils.js.map +0 -1
  84. package/lib/utils/unlistedUtils.d.ts.map +0 -1
  85. package/lib/utils/unlistedUtils.js +0 -26
  86. package/lib/utils/unlistedUtils.js.map +0 -1
  87. package/src/contexts/blogPost.tsx +0 -80
  88. package/src/contexts/doc.tsx +0 -71
  89. package/src/contexts/docSidebarItemsExpandedState.tsx +0 -55
  90. package/src/contexts/docsPreferredVersion.tsx +0 -251
  91. package/src/contexts/docsSidebar.tsx +0 -50
  92. package/src/contexts/docsVersion.tsx +0 -36
  93. package/src/utils/blogUtils.ts +0 -32
  94. package/src/utils/docsUtils.tsx +0 -418
  95. package/src/utils/structuredDataUtils.ts +0 -177
@@ -1,28 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import React, { useMemo, useState, useContext } from 'react';
8
- import { ReactContextError } from '../utils/reactUtils';
9
- const EmptyContext = Symbol('EmptyContext');
10
- const Context = React.createContext(EmptyContext);
11
- /**
12
- * Should be used to wrap one sidebar category level. This provider syncs the
13
- * expanded states of all sibling categories, and categories can choose to
14
- * collapse itself if another one is expanded.
15
- */
16
- export function DocSidebarItemsExpandedStateProvider({ children, }) {
17
- const [expandedItem, setExpandedItem] = useState(null);
18
- const contextValue = useMemo(() => ({ expandedItem, setExpandedItem }), [expandedItem]);
19
- return <Context.Provider value={contextValue}>{children}</Context.Provider>;
20
- }
21
- export function useDocSidebarItemsExpandedState() {
22
- const value = useContext(Context);
23
- if (value === EmptyContext) {
24
- throw new ReactContextError('DocSidebarItemsExpandedStateProvider');
25
- }
26
- return value;
27
- }
28
- //# sourceMappingURL=docSidebarItemsExpandedState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docSidebarItemsExpandedState.js","sourceRoot":"","sources":["../../src/contexts/docSidebarItemsExpandedState.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAiB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAgBtD,MAAM,YAAY,GAAkB,MAAM,CAAC,cAAc,CAAC,CAAC;AAC3D,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CACjC,YAAY,CACb,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,oCAAoC,CAAC,EACnD,QAAQ,GAGT;IACC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IACtE,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CAAC,CAAC,EAAC,YAAY,EAAE,eAAe,EAAC,CAAC,EACvC,CAAC,YAAY,CAAC,CACf,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,+BAA+B;IAC7C,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAClC,IAAI,KAAK,KAAK,YAAY,EAAE,CAAC;QAC3B,MAAM,IAAI,iBAAiB,CAAC,sCAAsC,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { type ReactNode } from 'react';
8
- import { type GlobalVersion } from '@docusaurus/plugin-content-docs/client';
9
- /**
10
- * This is a maybe-layer. If the docs plugin is not enabled, this provider is a
11
- * simple pass-through.
12
- */
13
- export declare function DocsPreferredVersionContextProvider({ children, }: {
14
- children: ReactNode;
15
- }): JSX.Element;
16
- /**
17
- * Returns a read-write interface to a plugin's preferred version. The
18
- * "preferred version" is defined as the last version that the user visited.
19
- * For example, if a user is using v3, even when v4 is later published, the user
20
- * would still be browsing v3 docs when she opens the website next time. Note,
21
- * the `preferredVersion` attribute will always be `null` before mount.
22
- */
23
- export declare function useDocsPreferredVersion(pluginId?: string | undefined): {
24
- preferredVersion: GlobalVersion | null;
25
- savePreferredVersionName: (versionName: string) => void;
26
- };
27
- export declare function useDocsPreferredVersionByPluginId(): {
28
- [pluginId: string]: GlobalVersion | null;
29
- };
30
- //# sourceMappingURL=docsPreferredVersion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docsPreferredVersion.d.ts","sourceRoot":"","sources":["../../src/contexts/docsPreferredVersion.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAc,EAMZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,wCAAwC,CAAC;AAsJhD;;;GAGG;AACH,wBAAgB,mCAAmC,CAAC,EAClD,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,GAAG,CAAC,OAAO,CASd;AAUD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,GAAE,MAAM,GAAG,SAA6B,GAC/C;IACD,gBAAgB,EAAE,aAAa,GAAG,IAAI,CAAC;IACvC,wBAAwB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD,CAmBA;AAED,wBAAgB,iCAAiC,IAAI;IACnD,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC;CAC1C,CAkBA"}
@@ -1,130 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import React, { useContext, useEffect, useMemo, useState, useCallback, } from 'react';
8
- import { useAllDocsData, useDocsData, } from '@docusaurus/plugin-content-docs/client';
9
- import { DEFAULT_PLUGIN_ID } from '@docusaurus/constants';
10
- import { useThemeConfig, } from '../utils/useThemeConfig';
11
- import { isDocsPluginEnabled } from '../utils/docsUtils';
12
- import { ReactContextError } from '../utils/reactUtils';
13
- import { createStorageSlot } from '../utils/storageUtils';
14
- const storageKey = (pluginId) => `docs-preferred-version-${pluginId}`;
15
- const DocsPreferredVersionStorage = {
16
- save: (pluginId, persistence, versionName) => {
17
- createStorageSlot(storageKey(pluginId), { persistence }).set(versionName);
18
- },
19
- read: (pluginId, persistence) => createStorageSlot(storageKey(pluginId), { persistence }).get(),
20
- clear: (pluginId, persistence) => {
21
- createStorageSlot(storageKey(pluginId), { persistence }).del();
22
- },
23
- };
24
- /**
25
- * Initial state is always null as we can't read local storage from node SSR
26
- */
27
- const getInitialState = (pluginIds) => Object.fromEntries(pluginIds.map((id) => [id, { preferredVersionName: null }]));
28
- /**
29
- * Read storage for all docs plugins, assigning each doc plugin a preferred
30
- * version (if found)
31
- */
32
- function readStorageState({ pluginIds, versionPersistence, allDocsData, }) {
33
- /**
34
- * The storage value we read might be stale, and belong to a version that does
35
- * not exist in the site anymore. In such case, we remove the storage value to
36
- * avoid downstream errors.
37
- */
38
- function restorePluginState(pluginId) {
39
- const preferredVersionNameUnsafe = DocsPreferredVersionStorage.read(pluginId, versionPersistence);
40
- const pluginData = allDocsData[pluginId];
41
- const versionExists = pluginData.versions.some((version) => version.name === preferredVersionNameUnsafe);
42
- if (versionExists) {
43
- return { preferredVersionName: preferredVersionNameUnsafe };
44
- }
45
- DocsPreferredVersionStorage.clear(pluginId, versionPersistence);
46
- return { preferredVersionName: null };
47
- }
48
- return Object.fromEntries(pluginIds.map((id) => [id, restorePluginState(id)]));
49
- }
50
- function useVersionPersistence() {
51
- return useThemeConfig().docs.versionPersistence;
52
- }
53
- const Context = React.createContext(null);
54
- function useContextValue() {
55
- const allDocsData = useAllDocsData();
56
- const versionPersistence = useVersionPersistence();
57
- const pluginIds = useMemo(() => Object.keys(allDocsData), [allDocsData]);
58
- // Initial state is empty, as we can't read browser storage in node/SSR
59
- const [state, setState] = useState(() => getInitialState(pluginIds));
60
- // On mount, we set the state read from browser storage
61
- useEffect(() => {
62
- setState(readStorageState({ allDocsData, versionPersistence, pluginIds }));
63
- }, [allDocsData, versionPersistence, pluginIds]);
64
- // The API that we expose to consumer hooks (memo for constant object)
65
- const api = useMemo(() => {
66
- function savePreferredVersion(pluginId, versionName) {
67
- DocsPreferredVersionStorage.save(pluginId, versionPersistence, versionName);
68
- setState((s) => ({
69
- ...s,
70
- [pluginId]: { preferredVersionName: versionName },
71
- }));
72
- }
73
- return {
74
- savePreferredVersion,
75
- };
76
- }, [versionPersistence]);
77
- return [state, api];
78
- }
79
- function DocsPreferredVersionContextProviderUnsafe({ children, }) {
80
- const value = useContextValue();
81
- return <Context.Provider value={value}>{children}</Context.Provider>;
82
- }
83
- /**
84
- * This is a maybe-layer. If the docs plugin is not enabled, this provider is a
85
- * simple pass-through.
86
- */
87
- export function DocsPreferredVersionContextProvider({ children, }) {
88
- if (isDocsPluginEnabled) {
89
- return (<DocsPreferredVersionContextProviderUnsafe>
90
- {children}
91
- </DocsPreferredVersionContextProviderUnsafe>);
92
- }
93
- return <>{children}</>;
94
- }
95
- function useDocsPreferredVersionContext() {
96
- const value = useContext(Context);
97
- if (!value) {
98
- throw new ReactContextError('DocsPreferredVersionContextProvider');
99
- }
100
- return value;
101
- }
102
- /**
103
- * Returns a read-write interface to a plugin's preferred version. The
104
- * "preferred version" is defined as the last version that the user visited.
105
- * For example, if a user is using v3, even when v4 is later published, the user
106
- * would still be browsing v3 docs when she opens the website next time. Note,
107
- * the `preferredVersion` attribute will always be `null` before mount.
108
- */
109
- export function useDocsPreferredVersion(pluginId = DEFAULT_PLUGIN_ID) {
110
- const docsData = useDocsData(pluginId);
111
- const [state, api] = useDocsPreferredVersionContext();
112
- const { preferredVersionName } = state[pluginId];
113
- const preferredVersion = docsData.versions.find((version) => version.name === preferredVersionName) ?? null;
114
- const savePreferredVersionName = useCallback((versionName) => {
115
- api.savePreferredVersion(pluginId, versionName);
116
- }, [api, pluginId]);
117
- return { preferredVersion, savePreferredVersionName };
118
- }
119
- export function useDocsPreferredVersionByPluginId() {
120
- const allDocsData = useAllDocsData();
121
- const [state] = useDocsPreferredVersionContext();
122
- function getPluginIdPreferredVersion(pluginId) {
123
- const docsData = allDocsData[pluginId];
124
- const { preferredVersionName } = state[pluginId];
125
- return (docsData.versions.find((version) => version.name === preferredVersionName) ?? null);
126
- }
127
- const pluginIds = Object.keys(allDocsData);
128
- return Object.fromEntries(pluginIds.map((id) => [id, getPluginIdPreferredVersion(id)]));
129
- }
130
- //# sourceMappingURL=docsPreferredVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docsPreferredVersion.js","sourceRoot":"","sources":["../../src/contexts/docsPreferredVersion.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EACZ,UAAU,EACV,SAAS,EACT,OAAO,EACP,QAAQ,EACR,WAAW,GAEZ,MAAM,OAAO,CAAC;AACf,OAAO,EACL,cAAc,EACd,WAAW,GAGZ,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxD,OAAO,EACL,cAAc,GAEf,MAAM,yBAAyB,CA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,IAAI,CAAC,WAAW,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC,WAAW,CACvB,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,2BAA2B,CAAC,EAAE,CAAC,CAAC,CAAC,CAC7D,CAAC;AACJ,CAAC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { type ReactNode } from 'react';
8
- import type { PropSidebar } from '@docusaurus/plugin-content-docs';
9
- type ContextValue = {
10
- name: string;
11
- items: PropSidebar;
12
- };
13
- /**
14
- * Provide the current sidebar to your children.
15
- */
16
- export declare function DocsSidebarProvider({ children, name, items, }: {
17
- children: ReactNode;
18
- name: string | undefined;
19
- items: PropSidebar | undefined;
20
- }): JSX.Element;
21
- /**
22
- * Gets the sidebar that's currently displayed, or `null` if there isn't one
23
- */
24
- export declare function useDocsSidebar(): ContextValue | null;
25
- export {};
26
- //# sourceMappingURL=docsSidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docsSidebar.d.ts","sourceRoot":"","sources":["../../src/contexts/docsSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAc,EAAsB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAEjE,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iCAAiC,CAAC;AAMjE,KAAK,YAAY,GAAG;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,WAAW,CAAA;CAAC,CAAC;AAMvD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,IAAI,EACJ,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,KAAK,EAAE,WAAW,GAAG,SAAS,CAAC;CAChC,GAAG,GAAG,CAAC,OAAO,CAMd;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,YAAY,GAAG,IAAI,CAMpD"}
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import React, { useMemo, useContext } from 'react';
8
- import { ReactContextError } from '../utils/reactUtils';
9
- // Using a Symbol because null is a valid context value (a doc with no sidebar)
10
- // Inspired by https://github.com/jamiebuilds/unstated-next/blob/master/src/unstated-next.tsx
11
- const EmptyContext = Symbol('EmptyContext');
12
- const Context = React.createContext(EmptyContext);
13
- /**
14
- * Provide the current sidebar to your children.
15
- */
16
- export function DocsSidebarProvider({ children, name, items, }) {
17
- const stableValue = useMemo(() => (name && items ? { name, items } : null), [name, items]);
18
- return <Context.Provider value={stableValue}>{children}</Context.Provider>;
19
- }
20
- /**
21
- * Gets the sidebar that's currently displayed, or `null` if there isn't one
22
- */
23
- export function useDocsSidebar() {
24
- const value = useContext(Context);
25
- if (value === EmptyContext) {
26
- throw new ReactContextError('DocsSidebarProvider');
27
- }
28
- return value;
29
- }
30
- //# sourceMappingURL=docsSidebar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docsSidebar.js","sourceRoot":"","sources":["../../src/contexts/docsSidebar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAGtD,+EAA+E;AAC/E,6FAA6F;AAC7F,MAAM,YAAY,GAAkB,MAAM,CAAC,cAAc,CAAC,CAAC;AAI3D,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CACjC,YAAY,CACb,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,IAAI,EACJ,KAAK,GAKN;IACC,MAAM,WAAW,GAAwB,OAAO,CAC9C,GAAG,EAAE,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAC5C,CAAC,IAAI,EAAE,KAAK,CAAC,CACd,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC7E,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAClC,IAAI,KAAK,KAAK,YAAY,EAAE,CAAC;QAC3B,MAAM,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { type ReactNode } from 'react';
8
- import type { PropVersionMetadata } from '@docusaurus/plugin-content-docs';
9
- /**
10
- * Provide the current version's metadata to your children.
11
- */
12
- export declare function DocsVersionProvider({ children, version, }: {
13
- children: ReactNode;
14
- version: PropVersionMetadata | null;
15
- }): JSX.Element;
16
- /**
17
- * Gets the version metadata of the current doc page.
18
- */
19
- export declare function useDocsVersion(): PropVersionMetadata;
20
- //# sourceMappingURL=docsVersion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docsVersion.d.ts","sourceRoot":"","sources":["../../src/contexts/docsVersion.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAc,EAAC,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,iCAAiC,CAAC;AAIzE;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACrC,GAAG,GAAG,CAAC,OAAO,CAEd;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,mBAAmB,CAMpD"}
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import React, { useContext } from 'react';
8
- import { ReactContextError } from '../utils/reactUtils';
9
- const Context = React.createContext(null);
10
- /**
11
- * Provide the current version's metadata to your children.
12
- */
13
- export function DocsVersionProvider({ children, version, }) {
14
- return <Context.Provider value={version}>{children}</Context.Provider>;
15
- }
16
- /**
17
- * Gets the version metadata of the current doc page.
18
- */
19
- export function useDocsVersion() {
20
- const version = useContext(Context);
21
- if (version === null) {
22
- throw new ReactContextError('DocsVersionProvider');
23
- }
24
- return version;
25
- }
26
- //# sourceMappingURL=docsVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docsVersion.js","sourceRoot":"","sources":["../../src/contexts/docsVersion.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAiB,UAAU,EAAC,MAAM,OAAO,CAAC;AACxD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAGtD,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAA6B,IAAI,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,OAAO,GAIR;IACC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import type { BlogSidebarItem } from '@docusaurus/plugin-content-blog';
8
- /**
9
- * Return the visible blog sidebar items to display.
10
- * Unlisted items are filtered.
11
- */
12
- export declare function useVisibleBlogSidebarItems(items: BlogSidebarItem[]): BlogSidebarItem[];
13
- //# sourceMappingURL=blogUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blogUtils.d.ts","sourceRoot":"","sources":["../../src/utils/blogUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AASrE;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,eAAe,EAAE,GACvB,eAAe,EAAE,CAMnB"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { useMemo } from 'react';
8
- import { useLocation } from '@docusaurus/router';
9
- import { isSamePath } from './routesUtils';
10
- function isVisible(item, pathname) {
11
- if (item.unlisted && !isSamePath(item.permalink, pathname)) {
12
- return false;
13
- }
14
- return true;
15
- }
16
- /**
17
- * Return the visible blog sidebar items to display.
18
- * Unlisted items are filtered.
19
- */
20
- export function useVisibleBlogSidebarItems(items) {
21
- const { pathname } = useLocation();
22
- return useMemo(() => items.filter((item) => isVisible(item, pathname)), [items, pathname]);
23
- }
24
- //# sourceMappingURL=blogUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blogUtils.js","sourceRoot":"","sources":["../../src/utils/blogUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAGzC,SAAS,SAAS,CAAC,IAAqB,EAAE,QAAgB;IACxD,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC3D,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CACxC,KAAwB;IAExB,MAAM,EAAC,QAAQ,EAAC,GAAG,WAAW,EAAE,CAAC;IACjC,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,EACvD,CAAC,KAAK,EAAE,QAAQ,CAAC,CAClB,CAAC;AACJ,CAAC"}
@@ -1,109 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- /// <reference types="react" />
8
- import { type GlobalVersion, type GlobalSidebar, type GlobalDoc } from '@docusaurus/plugin-content-docs/client';
9
- import type { Props as DocRootProps } from '@theme/DocRoot';
10
- import type { PropSidebar, PropSidebarItem, PropSidebarItemCategory, PropVersionDoc, PropSidebarBreadcrumbsItem } from '@docusaurus/plugin-content-docs';
11
- export declare const isDocsPluginEnabled: boolean;
12
- /**
13
- * A null-safe way to access a doc's data by ID in the active version.
14
- */
15
- export declare function useDocById(id: string): PropVersionDoc;
16
- /**
17
- * A null-safe way to access a doc's data by ID in the active version.
18
- */
19
- export declare function useDocById(id: string | undefined): PropVersionDoc | undefined;
20
- /**
21
- * Pure function, similar to `Array#find`, but works on the sidebar tree.
22
- */
23
- export declare function findSidebarCategory(sidebar: PropSidebar, predicate: (category: PropSidebarItemCategory) => boolean): PropSidebarItemCategory | undefined;
24
- /**
25
- * Best effort to assign a link to a sidebar category. If the category doesn't
26
- * have a link itself, we link to the first sub item with a link.
27
- */
28
- export declare function findFirstSidebarItemCategoryLink(item: PropSidebarItemCategory): string | undefined;
29
- /**
30
- * Best effort to assign a link to a sidebar item.
31
- */
32
- export declare function findFirstSidebarItemLink(item: PropSidebarItem): string | undefined;
33
- /**
34
- * Gets the category associated with the current location. Should only be used
35
- * on category index pages.
36
- */
37
- export declare function useCurrentSidebarCategory(): PropSidebarItemCategory;
38
- /**
39
- * Checks if a sidebar item should be active, based on the active path.
40
- */
41
- export declare function isActiveSidebarItem(item: PropSidebarItem, activePath: string): boolean;
42
- export declare function isVisibleSidebarItem(item: PropSidebarItem, activePath: string): boolean;
43
- export declare function useVisibleSidebarItems(items: readonly PropSidebarItem[], activePath: string): PropSidebarItem[];
44
- /**
45
- * Gets the breadcrumbs of the current doc page, based on its sidebar location.
46
- * Returns `null` if there's no sidebar or breadcrumbs are disabled.
47
- */
48
- export declare function useSidebarBreadcrumbs(): PropSidebarBreadcrumbsItem[] | null;
49
- /**
50
- * "Version candidates" are mostly useful for the layout components, which must
51
- * be able to work on all pages. For example, if a user has `{ type: "doc",
52
- * docId: "intro" }` as a navbar item, which version does that refer to? We
53
- * believe that it could refer to at most three version candidates:
54
- *
55
- * 1. The **active version**, the one that the user is currently browsing. See
56
- * {@link useActiveDocContext}.
57
- * 2. The **preferred version**, the one that the user last visited. See
58
- * {@link useDocsPreferredVersion}.
59
- * 3. The **latest version**, the "default". See {@link useLatestVersion}.
60
- *
61
- * @param docsPluginId The plugin ID to get versions from.
62
- * @returns An array of 1~3 versions with priorities defined above, guaranteed
63
- * to be unique and non-sparse. Will be memoized, hence stable for deps array.
64
- */
65
- export declare function useDocsVersionCandidates(docsPluginId?: string): [GlobalVersion, ...GlobalVersion[]];
66
- /**
67
- * The layout components, like navbar items, must be able to work on all pages,
68
- * even on non-doc ones where there's no version context, so a sidebar ID could
69
- * be ambiguous. This hook would always return a sidebar to be linked to. See
70
- * also {@link useDocsVersionCandidates} for how this selection is done.
71
- *
72
- * @throws This hook throws if a sidebar with said ID is not found.
73
- */
74
- export declare function useLayoutDocsSidebar(sidebarId: string, docsPluginId?: string): GlobalSidebar;
75
- /**
76
- * The layout components, like navbar items, must be able to work on all pages,
77
- * even on non-doc ones where there's no version context, so a doc ID could be
78
- * ambiguous. This hook would always return a doc to be linked to. See also
79
- * {@link useDocsVersionCandidates} for how this selection is done.
80
- *
81
- * @throws This hook throws if a doc with said ID is not found.
82
- */
83
- export declare function useLayoutDoc(docId: string, docsPluginId?: string): GlobalDoc | null;
84
- /**
85
- * The docs plugin creates nested routes, with the top-level route providing the
86
- * version metadata, and the subroutes creating individual doc pages. This hook
87
- * will match the current location against all known sub-routes.
88
- *
89
- * @param props The props received by `@theme/DocRoot`
90
- * @returns The data of the relevant document at the current location, or `null`
91
- * if no document associated with the current location can be found.
92
- */
93
- export declare function useDocRootMetadata({ route }: DocRootProps): null | {
94
- /** The element that should be rendered at the current location. */
95
- docElement: JSX.Element;
96
- /**
97
- * The name of the sidebar associated with the current doc. `sidebarName` and
98
- * `sidebarItems` correspond to the value of {@link useDocsSidebar}.
99
- */
100
- sidebarName: string | undefined;
101
- /** The items of the sidebar associated with the current doc. */
102
- sidebarItems: PropSidebar | undefined;
103
- };
104
- /**
105
- * Filter items we don't want to display on the doc card list view
106
- * @param items
107
- */
108
- export declare function filterDocCardListItems(items: PropSidebarItem[]): PropSidebarItem[];
109
- //# sourceMappingURL=docsUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docs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