@cbnventures/docusaurus-preset-nova 0.32.0 → 0.34.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 (65) hide show
  1. package/bin/theme-nova.mjs +5 -2
  2. package/build/package.json +3 -2
  3. package/build/src/blocks/stats/index.js +2 -2
  4. package/build/src/lib/docusaurus-utils-validation.d.ts +3 -0
  5. package/build/src/lib/docusaurus-utils-validation.d.ts.map +1 -0
  6. package/build/src/lib/docusaurus-utils-validation.js +9 -0
  7. package/build/src/lib/docusaurus-utils-validation.js.map +1 -0
  8. package/build/src/lib/i18n/site-context.js +6 -6
  9. package/build/src/lib/i18n/site-context.js.map +1 -1
  10. package/build/src/lib/use-navbar-active-item.d.ts +2 -1
  11. package/build/src/lib/use-navbar-active-item.d.ts.map +1 -1
  12. package/build/src/lib/use-navbar-active-item.js +8 -5
  13. package/build/src/lib/use-navbar-active-item.js.map +1 -1
  14. package/build/src/lib/use-navbar-overflow.d.ts +2 -1
  15. package/build/src/lib/use-navbar-overflow.d.ts.map +1 -1
  16. package/build/src/lib/use-navbar-overflow.js +38 -21
  17. package/build/src/lib/use-navbar-overflow.js.map +1 -1
  18. package/build/src/options.d.ts.map +1 -1
  19. package/build/src/options.js +134 -134
  20. package/build/src/options.js.map +1 -1
  21. package/build/src/plugins/icons/base-set.d.ts.map +1 -1
  22. package/build/src/plugins/icons/base-set.js +2 -0
  23. package/build/src/plugins/icons/base-set.js.map +1 -1
  24. package/build/src/styles/grid.css +2 -30
  25. package/build/src/styles/theme/Mermaid/style.css +47 -0
  26. package/build/src/styles/theme/Navbar/Bridge/style.css +6 -1
  27. package/build/src/styles/theme/Navbar/Canopy/style.css +20 -9
  28. package/build/src/styles/theme/Navbar/Compass/style.css +6 -2
  29. package/build/src/styles/theme/Navbar/style.css +8 -8
  30. package/build/src/tests/lib/navbar-overflow.test.d.ts +2 -0
  31. package/build/src/tests/lib/navbar-overflow.test.d.ts.map +1 -0
  32. package/build/src/tests/lib/navbar-overflow.test.js +59 -0
  33. package/build/src/tests/lib/navbar-overflow.test.js.map +1 -0
  34. package/build/src/tests/lib/use-navbar-active-item.test.d.ts +2 -0
  35. package/build/src/tests/lib/use-navbar-active-item.test.d.ts.map +1 -0
  36. package/build/src/tests/lib/use-navbar-active-item.test.js +45 -0
  37. package/build/src/tests/lib/use-navbar-active-item.test.js.map +1 -0
  38. package/build/src/theme/BlogListPage/index.js +1 -1
  39. package/build/src/theme/BlogListPage/index.js.map +1 -1
  40. package/build/src/theme/BlogTagsPostsPage/index.d.ts.map +1 -1
  41. package/build/src/theme/BlogTagsPostsPage/index.js +1 -1
  42. package/build/src/theme/BlogTagsPostsPage/index.js.map +1 -1
  43. package/build/src/theme/Mermaid/index.d.ts.map +1 -1
  44. package/build/src/theme/Mermaid/index.js +87 -7
  45. package/build/src/theme/Mermaid/index.js.map +1 -1
  46. package/build/src/theme/Navbar/Bridge/index.d.ts.map +1 -1
  47. package/build/src/theme/Navbar/Bridge/index.js +2 -2
  48. package/build/src/theme/Navbar/Bridge/index.js.map +1 -1
  49. package/build/src/theme/Navbar/Canopy/index.d.ts.map +1 -1
  50. package/build/src/theme/Navbar/Canopy/index.js +2 -2
  51. package/build/src/theme/Navbar/Canopy/index.js.map +1 -1
  52. package/build/src/theme/Navbar/Compass/index.d.ts.map +1 -1
  53. package/build/src/theme/Navbar/Compass/index.js +2 -2
  54. package/build/src/theme/Navbar/Compass/index.js.map +1 -1
  55. package/build/src/theme/SiteMetadata/index.d.ts.map +1 -1
  56. package/build/src/theme/SiteMetadata/index.js +18 -2
  57. package/build/src/theme/SiteMetadata/index.js.map +1 -1
  58. package/build/src/types/lib/docusaurus-utils-validation.d.ts +33 -0
  59. package/build/src/types/lib/use-navbar-active-item.d.ts +8 -0
  60. package/build/src/types/lib/use-navbar-overflow.d.ts +41 -19
  61. package/build/src/types/tests/lib/navbar-overflow.test.d.ts +22 -0
  62. package/build/src/types/tests/lib/use-navbar-active-item.test.d.ts +55 -0
  63. package/build/src/types/theme/Mermaid/index.d.ts +58 -0
  64. package/build/src/types/theme/SiteMetadata/index.d.ts +30 -0
  65. package/package.json +3 -2
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import Head from '@docusaurus/Head';
3
3
  import { useLocation } from '@docusaurus/router';
4
4
  import { PageMetadata, useThemeConfig, } from '@docusaurus/theme-common';
5
- import { DEFAULT_SEARCH_TAG } from '@docusaurus/theme-common/internal';
5
+ import { DEFAULT_SEARCH_TAG, useAlternatePageUtils, } from '@docusaurus/theme-common/internal';
6
6
  import useBaseUrl from '@docusaurus/useBaseUrl';
7
7
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
8
8
  import { applyTrailingSlash } from '@docusaurus/utils-common';
@@ -25,7 +25,23 @@ function SiteMetadata() {
25
25
  baseUrl,
26
26
  });
27
27
  const canonicalUrl = siteUrl + canonicalPathname;
28
- return (_jsxs(_Fragment, { children: [(defaultImage !== undefined) && (_jsx(PageMetadata, { image: defaultImage })), _jsxs(Head, { children: [_jsx("meta", { property: "og:url", content: canonicalUrl }), _jsx("link", { rel: "canonical", href: canonicalUrl }), siteMetadata.map((metadataEntry) => {
28
+ const defaultLocale = siteContext['i18n']['defaultLocale'];
29
+ const localeConfigs = siteContext['i18n']['localeConfigs'];
30
+ const alternatePageUtils = useAlternatePageUtils();
31
+ const localeEntries = Object.entries(localeConfigs);
32
+ const currentLocaleConfig = localeConfigs[currentLocale];
33
+ const currentHtmlLang = (currentLocaleConfig !== undefined) ? currentLocaleConfig['htmlLang'] : currentLocale;
34
+ return (_jsxs(_Fragment, { children: [(defaultImage !== undefined) && (_jsx(PageMetadata, { image: defaultImage })), _jsxs(Head, { children: [_jsx("meta", { property: "og:url", content: canonicalUrl }), _jsx("link", { rel: "canonical", href: canonicalUrl }), localeEntries.map((localeEntry) => {
35
+ const entryLocale = localeEntry[0];
36
+ const entryHtmlLang = localeEntry[1]['htmlLang'];
37
+ return (_jsx("link", { rel: "alternate", href: alternatePageUtils.createUrl({
38
+ locale: entryLocale,
39
+ fullyQualified: true,
40
+ }), hrefLang: entryHtmlLang }, entryLocale));
41
+ }), _jsx("link", { rel: "alternate", href: alternatePageUtils.createUrl({
42
+ locale: defaultLocale,
43
+ fullyQualified: true,
44
+ }), hrefLang: "x-default" }), _jsx("meta", { property: "og:locale", content: currentHtmlLang.replace('-', '_') }), siteMetadata.map((metadataEntry) => {
29
45
  const metadataEntryName = metadataEntry['name'];
30
46
  const metadataEntryContent = metadataEntry['content'];
31
47
  return (_jsx("meta", { name: metadataEntryName, content: metadataEntryContent }, metadataEntryName));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/theme/SiteMetadata/index.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,YAAY,EACZ,cAAc,GACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,oBAAoB,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,cAAc,MAAM,uBAAuB,CAAC;AAmCnD,SAAS,YAAY;IACnB,MAAM,WAAW,GAAsD,oBAAoB,EAAE,CAAC;IAC9F,MAAM,eAAe,GAA0D,cAAc,EAAwH,CAAC;IACtN,MAAM,UAAU,GAAqD,eAAe,CAAC,MAAM,CAAqD,CAAC;IACjJ,MAAM,YAAY,GAAuD,WAAW,EAAE,CAAC;IAEvF,MAAM,OAAO,GAAkD,WAAW,CAAC,YAAY,CAAC,CAAC,KAAK,CAAkD,CAAC;IACjJ,MAAM,OAAO,GAAkD,WAAW,CAAC,YAAY,CAAC,CAAC,SAA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C,CAAC,EACF,eACE,GAAG,EAAC,WAAW,EACf,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC;4BACjC,MAAM,EAAE,aAAa;4BACrB,cAAc,EAAE,IAAI;yBACrB,CAAC,EACF,QAAQ,EAAC,WAAW,GACpB,EACF,eAAM,QAAQ,EAAC,WAAW,EAAC,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,GAAI,EACxE,YAAY,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE;wBAClC,MAAM,iBAAiB,GAAgD,aAAa,CAAC,MAAM,CAAC,CAAC;wBAC7F,MAAM,oBAAoB,GAAmD,aAAa,CAAC,SAAS,CAAC,CAAC;wBAEtG,OAAO,CACL,eAA8B,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,oBAAoB,IAAzE,iBAAiB,CAA4D,CACzF,CAAC;oBACJ,CAAC,CAAC,IACG,EAEP,KAAC,cAAc,IAAC,GAAG,EAAE,kBAAkB,EAAE,MAAM,EAAE,aAAa,GAAI,IACjE,CACJ,CAAC;AACJ,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type * as DocusaurusUtilsValidation from '@docusaurus/utils-validation';
2
+
3
+ /**
4
+ * Lib - Docusaurus Utils Validation - Compatible Validation Module.
5
+ *
6
+ * @since 0.34.0
7
+ */
8
+ export type Lib_DocusaurusUtilsValidation_CompatibleValidationModule_Joi = typeof DocusaurusUtilsValidation.Joi;
9
+
10
+ export type Lib_DocusaurusUtilsValidation_CompatibleValidationModule_Default_Joi = typeof DocusaurusUtilsValidation.Joi;
11
+
12
+ export type Lib_DocusaurusUtilsValidation_CompatibleValidationModule_Default = {
13
+ Joi?: Lib_DocusaurusUtilsValidation_CompatibleValidationModule_Default_Joi;
14
+ };
15
+
16
+ export type Lib_DocusaurusUtilsValidation_CompatibleValidationModule = {
17
+ Joi?: Lib_DocusaurusUtilsValidation_CompatibleValidationModule_Joi;
18
+ default?: Lib_DocusaurusUtilsValidation_CompatibleValidationModule_Default;
19
+ };
20
+
21
+ /**
22
+ * Lib - Docusaurus Utils Validation - Resolved Joi.
23
+ *
24
+ * @since 0.34.0
25
+ */
26
+ export type Lib_DocusaurusUtilsValidation_ResolvedJoi = typeof DocusaurusUtilsValidation.Joi | undefined;
27
+
28
+ /**
29
+ * Lib - Docusaurus Utils Validation - Joi.
30
+ *
31
+ * @since 0.34.0
32
+ */
33
+ export type Lib_DocusaurusUtilsValidation_Joi = typeof DocusaurusUtilsValidation.Joi;
@@ -1,3 +1,5 @@
1
+ import type { BaseUrlUtils } from '@docusaurus/useBaseUrl';
2
+
1
3
  /**
2
4
  * Lib - Use Navbar Active Item.
3
5
  *
@@ -33,6 +35,8 @@ export type Lib_UseNavbarActiveItem_Returns = string | null;
33
35
 
34
36
  export type Lib_UseNavbarActiveItem_Pathname = string;
35
37
 
38
+ export type Lib_UseNavbarActiveItem_WithBaseUrl = BaseUrlUtils['withBaseUrl'];
39
+
36
40
  export type Lib_UseNavbarActiveItem_BestKey = string | null;
37
41
 
38
42
  export type Lib_UseNavbarActiveItem_BestScore = number;
@@ -46,6 +50,8 @@ export type Lib_UseNavbarActiveItem_ClaimLength = number | null;
46
50
  */
47
51
  export type Lib_UseNavbarActiveItem_GetClaimLength_Pathname = string;
48
52
 
53
+ export type Lib_UseNavbarActiveItem_GetClaimLength_WithBaseUrl = BaseUrlUtils['withBaseUrl'];
54
+
49
55
  export type Lib_UseNavbarActiveItem_GetClaimLength_Returns = number | null;
50
56
 
51
57
  export type Lib_UseNavbarActiveItem_GetClaimLength_Match = RegExpMatchArray | null;
@@ -58,6 +64,8 @@ export type Lib_UseNavbarActiveItem_GetClaimLength_To = string | undefined;
58
64
 
59
65
  export type Lib_UseNavbarActiveItem_GetClaimLength_Base = string | undefined;
60
66
 
67
+ export type Lib_UseNavbarActiveItem_GetClaimLength_Resolved = string;
68
+
61
69
  export type Lib_UseNavbarActiveItem_GetClaimLength_Normalized = string;
62
70
 
63
71
  /**
@@ -9,20 +9,23 @@ import type {
9
9
  *
10
10
  * @since 0.18.0
11
11
  */
12
+ export type Lib_UseNavbarOverflow_Cumulative = number;
13
+
14
+ export type Lib_UseNavbarOverflow_Count = number;
15
+
12
16
  export type Lib_UseNavbarOverflow_InputItem = unknown;
13
17
 
14
18
  export type Lib_UseNavbarOverflow_Input_Items = readonly Lib_UseNavbarOverflow_InputItem[];
15
19
 
16
- export type Lib_UseNavbarOverflow_Input_BudgetVariable = string;
17
-
18
20
  export type Lib_UseNavbarOverflow_Input_TriggerVariable = string;
19
21
 
20
22
  export type Lib_UseNavbarOverflow_Input = {
21
23
  items: Lib_UseNavbarOverflow_Input_Items;
22
- budgetVariable: Lib_UseNavbarOverflow_Input_BudgetVariable;
23
24
  triggerVariable: Lib_UseNavbarOverflow_Input_TriggerVariable;
24
25
  };
25
26
 
27
+ export type Lib_UseNavbarOverflow_Returns_AvailableRef = RefObject<HTMLDivElement | null>;
28
+
26
29
  export type Lib_UseNavbarOverflow_Returns_MeasureRef = RefObject<HTMLDivElement | null>;
27
30
 
28
31
  export type Lib_UseNavbarOverflow_Returns_VisibleCount = number;
@@ -32,6 +35,7 @@ export type Lib_UseNavbarOverflow_Returns_HasOverflow = boolean;
32
35
  export type Lib_UseNavbarOverflow_Returns_Measuring = boolean;
33
36
 
34
37
  export type Lib_UseNavbarOverflow_Returns = {
38
+ availableRef: Lib_UseNavbarOverflow_Returns_AvailableRef;
35
39
  measureRef: Lib_UseNavbarOverflow_Returns_MeasureRef;
36
40
  visibleCount: Lib_UseNavbarOverflow_Returns_VisibleCount;
37
41
  hasOverflow: Lib_UseNavbarOverflow_Returns_HasOverflow;
@@ -44,6 +48,8 @@ export type Lib_UseNavbarOverflow_ContainerElement = HTMLDivElement;
44
48
 
45
49
  export type Lib_UseNavbarOverflow_MeasureRef = RefObject<Lib_UseNavbarOverflow_ContainerElement | null>;
46
50
 
51
+ export type Lib_UseNavbarOverflow_AvailableRef = RefObject<Lib_UseNavbarOverflow_ContainerElement | null>;
52
+
47
53
  export type Lib_UseNavbarOverflow_VisibleCountState = [Lib_UseNavbarOverflow_VisibleCount, Lib_UseNavbarOverflow_SetVisibleCount];
48
54
 
49
55
  export type Lib_UseNavbarOverflow_VisibleCount = number;
@@ -58,11 +64,11 @@ export type Lib_UseNavbarOverflow_SetMeasuring = Dispatch<SetStateAction<Lib_Use
58
64
 
59
65
  export type Lib_UseNavbarOverflow_Container = HTMLDivElement;
60
66
 
61
- export type Lib_UseNavbarOverflow_BudgetRaw = string;
67
+ export type Lib_UseNavbarOverflow_AvailableContainer = HTMLDivElement;
62
68
 
63
69
  export type Lib_UseNavbarOverflow_TriggerRaw = string;
64
70
 
65
- export type Lib_UseNavbarOverflow_BudgetPixels = number;
71
+ export type Lib_UseNavbarOverflow_AvailablePixels = number;
66
72
 
67
73
  export type Lib_UseNavbarOverflow_TriggerPixels = number;
68
74
 
@@ -72,18 +78,6 @@ export type Lib_UseNavbarOverflow_ChildWidth = number;
72
78
 
73
79
  export type Lib_UseNavbarOverflow_ChildrenWidths = Lib_UseNavbarOverflow_ChildWidth[];
74
80
 
75
- export type Lib_UseNavbarOverflow_Cumulative = number;
76
-
77
- export type Lib_UseNavbarOverflow_Count = number;
78
-
79
- export type Lib_UseNavbarOverflow_Width = number;
80
-
81
- export type Lib_UseNavbarOverflow_Proposed = number;
82
-
83
- export type Lib_UseNavbarOverflow_IsLast = boolean;
84
-
85
- export type Lib_UseNavbarOverflow_MoreReservation = number;
86
-
87
81
  export type Lib_UseNavbarOverflow_Cancelled = boolean;
88
82
 
89
83
  export type Lib_UseNavbarOverflow_Observer = ResizeObserver;
@@ -103,11 +97,39 @@ export type Lib_UseNavbarOverflow_ParseLength_Numeric = number;
103
97
 
104
98
  export type Lib_UseNavbarOverflow_ParseLength_RootFontSize = number;
105
99
 
100
+ /**
101
+ * Lib - Use Navbar Overflow - Resolve Navbar Visible Count.
102
+ *
103
+ * @since 0.33.0
104
+ */
105
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input_AvailablePixels = number;
106
+
107
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input_ChildrenWidths = number[];
108
+
109
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input_Gap = number;
110
+
111
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input_TriggerPixels = number;
112
+
113
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input = {
114
+ availablePixels: Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input_AvailablePixels;
115
+ childrenWidths: Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input_ChildrenWidths;
116
+ gap: Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input_Gap;
117
+ triggerPixels: Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Input_TriggerPixels;
118
+ };
119
+
120
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Returns = number;
121
+
122
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_FullWidth = number;
123
+
124
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_AvailableForItems = number;
125
+
126
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_ChildWidth = number | undefined;
127
+
128
+ export type Lib_UseNavbarOverflow_ResolveNavbarVisibleCount_Proposed = number;
129
+
106
130
  /**
107
131
  * Lib - Use Navbar Overflow - Use Navbar Overflow - Compute.
108
132
  *
109
133
  * @since 0.18.0
110
134
  */
111
135
  export type Lib_UseNavbarOverflow_UseNavbarOverflow_Compute_Returns = undefined;
112
-
113
- export type Lib_UseNavbarOverflow_UseNavbarOverflow_Compute_ChildWidth = number | undefined;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Tests - Lib - Navbar Overflow - Resolve Navbar Visible Count - Does Not Reserve The More Control When Every Item Fits.
3
+ *
4
+ * @since 0.33.0
5
+ */
6
+ export type Tests_Lib_NavbarOverflow_ResolveNavbarVisibleCount_DoesNotReserveTheMoreControlWhenEveryItemFits_Result = number;
7
+
8
+ /**
9
+ * Tests - Lib - Navbar Overflow - Resolve Navbar Visible Count - Reserves The More Control Only After Overflow Is Confirmed.
10
+ *
11
+ * @since 0.33.0
12
+ */
13
+ export type Tests_Lib_NavbarOverflow_ResolveNavbarVisibleCount_ReservesTheMoreControlOnlyAfterOverflowIsConfirmed_Result = number;
14
+
15
+ /**
16
+ * Tests - Lib - Navbar Overflow - Resolve Navbar Visible Count - Reveals Items Again When The Available Space Grows.
17
+ *
18
+ * @since 0.33.0
19
+ */
20
+ export type Tests_Lib_NavbarOverflow_ResolveNavbarVisibleCount_RevealsItemsAgainWhenTheAvailableSpaceGrows_Narrow = number;
21
+
22
+ export type Tests_Lib_NavbarOverflow_ResolveNavbarVisibleCount_RevealsItemsAgainWhenTheAvailableSpaceGrows_Expanded = number;
@@ -0,0 +1,55 @@
1
+ import type { vi } from 'vitest';
2
+
3
+ /**
4
+ * Tests - Lib - Use Navbar Active Item - DocusaurusRouter - Mock Module.
5
+ *
6
+ * @since 0.33.0
7
+ */
8
+ export type Tests_Lib_UseNavbarActiveItem_DocusaurusRouter_MockModule_UseLocation = ReturnType<typeof vi['fn']>;
9
+
10
+ export type Tests_Lib_UseNavbarActiveItem_DocusaurusRouter_MockModule = Readonly<{
11
+ useLocation: Tests_Lib_UseNavbarActiveItem_DocusaurusRouter_MockModule_UseLocation;
12
+ }>;
13
+
14
+ /**
15
+ * Tests - Lib - Use Navbar Active Item - DocusaurusUseBaseUrl - Mock Module.
16
+ *
17
+ * @since 0.33.0
18
+ */
19
+ export type Tests_Lib_UseNavbarActiveItem_DocusaurusUseBaseUrl_MockModule_UseBaseUrlUtils = ReturnType<typeof vi['fn']>;
20
+
21
+ export type Tests_Lib_UseNavbarActiveItem_DocusaurusUseBaseUrl_MockModule = Readonly<{
22
+ useBaseUrlUtils: Tests_Lib_UseNavbarActiveItem_DocusaurusUseBaseUrl_MockModule_UseBaseUrlUtils;
23
+ }>;
24
+
25
+ /**
26
+ * Tests - Lib - Use Navbar Active Item - Get Claim Length - Claims A Plain Link Under The Site Base Url.
27
+ *
28
+ * @since 0.33.0
29
+ */
30
+ export type Tests_Lib_UseNavbarActiveItem_GetClaimLength_ClaimsAPlainLinkUnderTheSiteBaseUrl_Result = number | null;
31
+
32
+ /**
33
+ * Tests - Lib - Use Navbar Active Item - Get Claim Length - Ignores A Plain Link On Another Route.
34
+ *
35
+ * @since 0.33.0
36
+ */
37
+ export type Tests_Lib_UseNavbarActiveItem_GetClaimLength_IgnoresAPlainLinkOnAnotherRoute_Result = number | null;
38
+
39
+ /**
40
+ * Tests - Lib - Use Navbar Active Item - Get Claim Length - Keeps Doc Paths That Already Carry The Base Url.
41
+ *
42
+ * @since 0.33.0
43
+ */
44
+ export type Tests_Lib_UseNavbarActiveItem_GetClaimLength_KeepsDocPathsThatAlreadyCarryTheBaseUrl_Result = number | null;
45
+
46
+ /**
47
+ * Tests - Lib - Use Navbar Active Item - With Repo Base Url.
48
+ *
49
+ * @since 0.33.0
50
+ */
51
+ export type Tests_Lib_UseNavbarActiveItem_WithRepoBaseUrl_Url = string;
52
+
53
+ export type Tests_Lib_UseNavbarActiveItem_WithRepoBaseUrl_Returns = string;
54
+
55
+ export type Tests_Lib_UseNavbarActiveItem_WithRepoBaseUrl_Relative = string;
@@ -76,6 +76,18 @@ export type Theme_Mermaid_Index_MermaidContent_IsDraggingState = [Theme_Mermaid_
76
76
 
77
77
  export type Theme_Mermaid_Index_MermaidContent_SetIsDragging = Dispatch<SetStateAction<Theme_Mermaid_Index_MermaidContent_IsDragging>>;
78
78
 
79
+ export type Theme_Mermaid_Index_MermaidContent_IsNativeFullscreen = boolean;
80
+
81
+ export type Theme_Mermaid_Index_MermaidContent_IsNativeFullscreenState = [Theme_Mermaid_Index_MermaidContent_IsNativeFullscreen, Dispatch<SetStateAction<Theme_Mermaid_Index_MermaidContent_IsNativeFullscreen>>];
82
+
83
+ export type Theme_Mermaid_Index_MermaidContent_SetIsNativeFullscreen = Dispatch<SetStateAction<Theme_Mermaid_Index_MermaidContent_IsNativeFullscreen>>;
84
+
85
+ export type Theme_Mermaid_Index_MermaidContent_IsFallbackFullscreen = boolean;
86
+
87
+ export type Theme_Mermaid_Index_MermaidContent_IsFallbackFullscreenState = [Theme_Mermaid_Index_MermaidContent_IsFallbackFullscreen, Dispatch<SetStateAction<Theme_Mermaid_Index_MermaidContent_IsFallbackFullscreen>>];
88
+
89
+ export type Theme_Mermaid_Index_MermaidContent_SetIsFallbackFullscreen = Dispatch<SetStateAction<Theme_Mermaid_Index_MermaidContent_IsFallbackFullscreen>>;
90
+
79
91
  export type Theme_Mermaid_Index_MermaidContent_Drag_PointerId = number;
80
92
 
81
93
  export type Theme_Mermaid_Index_MermaidContent_Drag_Start = Shared_MermaidViewportPosition;
@@ -90,14 +102,38 @@ export type Theme_Mermaid_Index_MermaidContent_Drag = {
90
102
 
91
103
  export type Theme_Mermaid_Index_MermaidContent_DragRef = RefObject<Theme_Mermaid_Index_MermaidContent_Drag | null>;
92
104
 
105
+ /**
106
+ * Theme - Mermaid - Mermaid Content - Handle Fullscreen Change.
107
+ *
108
+ * @since 0.33.0
109
+ */
110
+ export type Theme_Mermaid_Index_MermaidContent_HandleFullscreenChange_Returns = undefined;
111
+
112
+ export type Theme_Mermaid_Index_MermaidContent_FullscreenEffect_CleanupReturns = undefined;
113
+
114
+ /**
115
+ * Theme - Mermaid - Mermaid Content - Handle Fallback Key Down.
116
+ *
117
+ * @since 0.33.0
118
+ */
119
+ export type Theme_Mermaid_Index_MermaidContent_HandleFallbackKeyDown_Event = globalThis.KeyboardEvent;
120
+
121
+ export type Theme_Mermaid_Index_MermaidContent_HandleFallbackKeyDown_Returns = undefined;
122
+
123
+ export type Theme_Mermaid_Index_MermaidContent_FallbackFullscreenEffect_CleanupReturns = undefined;
124
+
93
125
  export type Theme_Mermaid_Index_MermaidContent_ClassName = string;
94
126
 
127
+ export type Theme_Mermaid_Index_MermaidContent_FullscreenClassName = string;
128
+
95
129
  export type Theme_Mermaid_Index_MermaidContent_CanZoomIn = boolean;
96
130
 
97
131
  export type Theme_Mermaid_Index_MermaidContent_CanZoomOut = boolean;
98
132
 
99
133
  export type Theme_Mermaid_Index_MermaidContent_IsInteractive = boolean;
100
134
 
135
+ export type Theme_Mermaid_Index_MermaidContent_IsFullscreen = boolean;
136
+
101
137
  export type Theme_Mermaid_Index_MermaidContent_ScaleLabel = string;
102
138
 
103
139
  export type Theme_Mermaid_Index_MermaidContent_ZoomInLabel = string;
@@ -106,12 +142,34 @@ export type Theme_Mermaid_Index_MermaidContent_ZoomOutLabel = string;
106
142
 
107
143
  export type Theme_Mermaid_Index_MermaidContent_ResetLabel = string;
108
144
 
145
+ export type Theme_Mermaid_Index_MermaidContent_EnterFullscreenLabel = string;
146
+
147
+ export type Theme_Mermaid_Index_MermaidContent_ExitFullscreenLabel = string;
148
+
149
+ export type Theme_Mermaid_Index_MermaidContent_FullscreenLabel = string;
150
+
109
151
  export type Theme_Mermaid_Index_MermaidContent_ViewportLabel = string;
110
152
 
111
153
  export type Theme_Mermaid_Index_MermaidContent_StageStyle = CSSProperties;
112
154
 
113
155
  export type Theme_Mermaid_Index_MermaidContent_ViewportClassName = string;
114
156
 
157
+ export type Theme_Mermaid_Index_MermaidContent_RequestFullscreen = (() => Promise<void>) | undefined;
158
+
159
+ /**
160
+ * Theme - Mermaid - Mermaid Content - Reset View.
161
+ *
162
+ * @since 0.33.0
163
+ */
164
+ export type Theme_Mermaid_Index_MermaidContent_ResetView_Returns = undefined;
165
+
166
+ /**
167
+ * Theme - Mermaid - Mermaid Content - Toggle Fullscreen.
168
+ *
169
+ * @since 0.33.0
170
+ */
171
+ export type Theme_Mermaid_Index_MermaidContent_ToggleFullscreen_Returns = undefined;
172
+
115
173
  /**
116
174
  * Theme - Mermaid - Mermaid Content - Handle Key Down.
117
175
  *
@@ -1,3 +1,4 @@
1
+ import type { I18nLocaleConfig } from '@docusaurus/types';
1
2
  import type { Location } from 'history';
2
3
 
3
4
  /**
@@ -61,3 +62,32 @@ export type Theme_SiteMetadata_Index_SiteMetadata_BaseUrlPath = string;
61
62
  export type Theme_SiteMetadata_Index_SiteMetadata_CanonicalPathname = string;
62
63
 
63
64
  export type Theme_SiteMetadata_Index_SiteMetadata_CanonicalUrl = string;
65
+
66
+ export type Theme_SiteMetadata_Index_SiteMetadata_DefaultLocale = string;
67
+
68
+ export type Theme_SiteMetadata_Index_SiteMetadata_LocaleConfigs = Record<string, I18nLocaleConfig>;
69
+
70
+ export type Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtilsCreateUrlParams_Locale = string;
71
+
72
+ export type Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtilsCreateUrlParams_FullyQualified = boolean;
73
+
74
+ export type Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtilsCreateUrlParams = {
75
+ locale: Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtilsCreateUrlParams_Locale;
76
+ fullyQualified: Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtilsCreateUrlParams_FullyQualified;
77
+ };
78
+
79
+ export type Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtils_CreateUrl = (params: Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtilsCreateUrlParams) => string;
80
+
81
+ export type Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtils = {
82
+ createUrl: Theme_SiteMetadata_Index_SiteMetadata_AlternatePageUtils_CreateUrl;
83
+ };
84
+
85
+ export type Theme_SiteMetadata_Index_SiteMetadata_LocaleEntries = [string, I18nLocaleConfig][];
86
+
87
+ export type Theme_SiteMetadata_Index_SiteMetadata_CurrentLocaleConfig = I18nLocaleConfig | undefined;
88
+
89
+ export type Theme_SiteMetadata_Index_SiteMetadata_CurrentHtmlLang = string;
90
+
91
+ export type Theme_SiteMetadata_Index_SiteMetadata_EntryLocale = string;
92
+
93
+ export type Theme_SiteMetadata_Index_SiteMetadata_EntryHtmlLang = string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbnventures/docusaurus-preset-nova",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "Scripts, templates, and project configuration for the common JavaScript and TypeScript developer",
5
5
  "keywords": [
6
6
  "eslint",
@@ -95,6 +95,7 @@
95
95
  "build:fix-shiki-import": "node ../../scripts/fix-shiki-import.mjs",
96
96
  "build:copy-styles": "node ../../scripts/copy-styles.mjs",
97
97
  "build:fix-perms": "shx chmod +x ./build/src/cli/index.js",
98
+ "build:verify-module-loading": "node ../../scripts/verify-docusaurus-module-loading.mjs",
98
99
  "clean": "node ../../scripts/nova-run-scripts.mjs --parallel \"clean:*\"",
99
100
  "clean:build": "shx rm -rf ./build"
100
101
  },
@@ -102,7 +103,7 @@
102
103
  "node": "^22 || ^24"
103
104
  },
104
105
  "dependencies": {
105
- "@cbnventures/nova": "0.32.0",
106
+ "@cbnventures/nova": "0.34.0",
106
107
  "@codesandbox/sandpack-react": "2.20.0",
107
108
  "@docusaurus/plugin-content-blog": "3.10.2",
108
109
  "@docusaurus/plugin-content-docs": "3.10.2",