@cbnventures/docusaurus-preset-nova 0.18.0 → 0.19.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 (136) hide show
  1. package/build/src/index.d.ts.map +1 -1
  2. package/build/src/index.js +7 -1
  3. package/build/src/index.js.map +1 -1
  4. package/build/src/lib/bundle-size.d.ts +3 -0
  5. package/build/src/lib/bundle-size.d.ts.map +1 -0
  6. package/build/src/lib/bundle-size.js +22 -0
  7. package/build/src/lib/bundle-size.js.map +1 -0
  8. package/build/src/lib/regex.d.ts +4 -0
  9. package/build/src/lib/regex.d.ts.map +1 -1
  10. package/build/src/lib/regex.js +5 -1
  11. package/build/src/lib/regex.js.map +1 -1
  12. package/build/src/lib/search/perform-search.d.ts +2 -2
  13. package/build/src/lib/search/perform-search.d.ts.map +1 -1
  14. package/build/src/lib/search/perform-search.js +2 -2
  15. package/build/src/lib/search/perform-search.js.map +1 -1
  16. package/build/src/lib/search/use-search-worker.d.ts.map +1 -1
  17. package/build/src/lib/search/use-search-worker.js +3 -1
  18. package/build/src/lib/search/use-search-worker.js.map +1 -1
  19. package/build/src/lib/search/worker.js +4 -3
  20. package/build/src/lib/search/worker.js.map +1 -1
  21. package/build/src/options.d.ts.map +1 -1
  22. package/build/src/options.js +4 -2
  23. package/build/src/options.js.map +1 -1
  24. package/build/src/plugins/bundle-guard/index.d.ts +4 -0
  25. package/build/src/plugins/bundle-guard/index.d.ts.map +1 -0
  26. package/build/src/plugins/bundle-guard/index.js +33 -0
  27. package/build/src/plugins/bundle-guard/index.js.map +1 -0
  28. package/build/src/plugins/icons/base-set.d.ts +3 -0
  29. package/build/src/plugins/icons/base-set.d.ts.map +1 -0
  30. package/build/src/plugins/icons/base-set.js +52 -0
  31. package/build/src/plugins/icons/base-set.js.map +1 -0
  32. package/build/src/plugins/icons/generate.d.ts +3 -0
  33. package/build/src/plugins/icons/generate.d.ts.map +1 -0
  34. package/build/src/plugins/icons/generate.js +220 -0
  35. package/build/src/plugins/icons/generate.js.map +1 -0
  36. package/build/src/plugins/icons/index.d.ts +4 -0
  37. package/build/src/plugins/icons/index.d.ts.map +1 -0
  38. package/build/src/plugins/icons/index.js +61 -0
  39. package/build/src/plugins/icons/index.js.map +1 -0
  40. package/build/src/preset.d.ts.map +1 -1
  41. package/build/src/preset.js +14 -0
  42. package/build/src/preset.js.map +1 -1
  43. package/build/src/presets/envoy/preset.d.ts.map +1 -1
  44. package/build/src/presets/envoy/preset.js +0 -1
  45. package/build/src/presets/envoy/preset.js.map +1 -1
  46. package/build/src/presets/foundry/preset.d.ts.map +1 -1
  47. package/build/src/presets/foundry/preset.js +0 -1
  48. package/build/src/presets/foundry/preset.js.map +1 -1
  49. package/build/src/presets/lantern/preset.d.ts.map +1 -1
  50. package/build/src/presets/lantern/preset.js +0 -1
  51. package/build/src/presets/lantern/preset.js.map +1 -1
  52. package/build/src/presets/marshal/preset.d.ts.map +1 -1
  53. package/build/src/presets/marshal/preset.js +0 -1
  54. package/build/src/presets/marshal/preset.js.map +1 -1
  55. package/build/src/presets/sample/preset.d.ts.map +1 -1
  56. package/build/src/presets/sample/preset.js +0 -1
  57. package/build/src/presets/sample/preset.js.map +1 -1
  58. package/build/src/presets/sentinel/preset.d.ts.map +1 -1
  59. package/build/src/presets/sentinel/preset.js +0 -1
  60. package/build/src/presets/sentinel/preset.js.map +1 -1
  61. package/build/src/presets/signal/preset.d.ts.map +1 -1
  62. package/build/src/presets/signal/preset.js +0 -1
  63. package/build/src/presets/signal/preset.js.map +1 -1
  64. package/build/src/styles/theme/Navbar/style.css +25 -0
  65. package/build/src/tests/bundle-size.test.d.ts +2 -0
  66. package/build/src/tests/bundle-size.test.d.ts.map +1 -0
  67. package/build/src/tests/bundle-size.test.js +30 -0
  68. package/build/src/tests/bundle-size.test.js.map +1 -0
  69. package/build/src/tests/config-drift.test.js +141 -6
  70. package/build/src/tests/config-drift.test.js.map +1 -1
  71. package/build/src/tests/demo-coverage.test.js +0 -2
  72. package/build/src/tests/demo-coverage.test.js.map +1 -1
  73. package/build/src/tests/icons.test.d.ts +2 -0
  74. package/build/src/tests/icons.test.d.ts.map +1 -0
  75. package/build/src/tests/icons.test.js +110 -0
  76. package/build/src/tests/icons.test.js.map +1 -0
  77. package/build/src/tests/lib/css-generator.test.js +0 -18
  78. package/build/src/tests/lib/css-generator.test.js.map +1 -1
  79. package/build/src/tests/lib/search/worker.test.js +20 -7
  80. package/build/src/tests/lib/search/worker.test.js.map +1 -1
  81. package/build/src/tests/options.test.js +0 -3
  82. package/build/src/tests/options.test.js.map +1 -1
  83. package/build/src/tests/preset.test.js +6 -6
  84. package/build/src/theme/Layout/index.d.ts.map +1 -1
  85. package/build/src/theme/Layout/index.js +5 -1
  86. package/build/src/theme/Layout/index.js.map +1 -1
  87. package/build/src/theme/Navbar/Bridge/index.d.ts.map +1 -1
  88. package/build/src/theme/Navbar/Bridge/index.js +1 -1
  89. package/build/src/theme/Navbar/Bridge/index.js.map +1 -1
  90. package/build/src/theme/Navbar/Canopy/index.d.ts.map +1 -1
  91. package/build/src/theme/Navbar/Canopy/index.js +1 -1
  92. package/build/src/theme/Navbar/Canopy/index.js.map +1 -1
  93. package/build/src/theme/Navbar/Compass/index.d.ts.map +1 -1
  94. package/build/src/theme/Navbar/Compass/index.js +1 -1
  95. package/build/src/theme/Navbar/Compass/index.js.map +1 -1
  96. package/build/src/theme/Navbar/index.d.ts.map +1 -1
  97. package/build/src/theme/Navbar/index.js +4 -3
  98. package/build/src/theme/Navbar/index.js.map +1 -1
  99. package/build/src/theme/Root/icons.d.ts +1 -1
  100. package/build/src/theme/Root/icons.d.ts.map +1 -1
  101. package/build/src/theme/Root/icons.js +1 -13
  102. package/build/src/theme/Root/icons.js.map +1 -1
  103. package/build/src/theme/SearchBar/search-input.d.ts.map +1 -1
  104. package/build/src/theme/SearchBar/search-input.js +39 -2
  105. package/build/src/theme/SearchBar/search-input.js.map +1 -1
  106. package/build/src/theme/SearchBar/search-provider.d.ts.map +1 -1
  107. package/build/src/theme/SearchBar/search-provider.js +6 -1
  108. package/build/src/theme/SearchBar/search-provider.js.map +1 -1
  109. package/build/src/theme/SearchPage/index.d.ts.map +1 -1
  110. package/build/src/theme/SearchPage/index.js +8 -2
  111. package/build/src/theme/SearchPage/index.js.map +1 -1
  112. package/build/src/types/index.d.ts +17 -0
  113. package/build/src/types/lib/bundle-size.d.ts +18 -0
  114. package/build/src/types/lib/search/perform-search.d.ts +2 -0
  115. package/build/src/types/lib/search/use-search-worker.d.ts +8 -0
  116. package/build/src/types/lib/search/worker.d.ts +5 -0
  117. package/build/src/types/options.d.ts +12 -3
  118. package/build/src/types/plugins/bundle-guard/index.d.ts +45 -0
  119. package/build/src/types/plugins/icons/base-set.d.ts +6 -0
  120. package/build/src/types/plugins/icons/generate.d.ts +250 -0
  121. package/build/src/types/plugins/icons/index.d.ts +76 -0
  122. package/build/src/types/preset.d.ts +10 -0
  123. package/build/src/types/shared.d.ts +88 -3
  124. package/build/src/types/tests/bundle-size.test.d.ts +12 -0
  125. package/build/src/types/tests/config-drift.test.d.ts +154 -4
  126. package/build/src/types/tests/icons.test.d.ts +93 -0
  127. package/build/src/types/tests/lib/search/worker.test.d.ts +11 -0
  128. package/build/src/types/tests/options.test.d.ts +0 -2
  129. package/build/src/types/theme/Layout/index.d.ts +15 -0
  130. package/build/src/types/theme/Navbar/index.d.ts +3 -8
  131. package/build/src/types/theme/Root/icons.d.ts +1 -0
  132. package/build/src/types/theme/SearchBar/search-input.d.ts +49 -0
  133. package/build/src/types/theme/SearchBar/search-provider.d.ts +20 -0
  134. package/build/src/types/theme/SearchPage/index.d.ts +25 -0
  135. package/nova-config.d.ts +87 -73
  136. package/package.json +3 -8
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Tests - Icons - Create Fixture Site.
3
+ *
4
+ * @since 0.18.1
5
+ */
6
+ export type Tests_Icons_CreateFixtureSite_File_Path = string;
7
+
8
+ export type Tests_Icons_CreateFixtureSite_File_Content = string;
9
+
10
+ export type Tests_Icons_CreateFixtureSite_File = {
11
+ path: Tests_Icons_CreateFixtureSite_File_Path;
12
+ content: Tests_Icons_CreateFixtureSite_File_Content;
13
+ };
14
+
15
+ export type Tests_Icons_CreateFixtureSite_Files = Tests_Icons_CreateFixtureSite_File[];
16
+
17
+ export type Tests_Icons_CreateFixtureSite_Returns = string;
18
+
19
+ export type Tests_Icons_CreateFixtureSite_Directory = string;
20
+
21
+ export type Tests_Icons_CreateFixtureSite_FilePath = string;
22
+
23
+ /**
24
+ * Tests - Icons - Generate Icon Module - Discovers Icons From Content Theme Config And The Safelist.
25
+ *
26
+ * @since 0.18.1
27
+ */
28
+ export type Tests_Icons_GenerateIconModule_DiscoversIconsFromContentThemeConfigAndTheSafelist_SiteDir = string;
29
+
30
+ export type Tests_Icons_GenerateIconModule_DiscoversIconsFromContentThemeConfigAndTheSafelist_Source = string;
31
+
32
+ export type Tests_Icons_GenerateIconModule_DiscoversIconsFromContentThemeConfigAndTheSafelist_Registered = string[];
33
+
34
+ /**
35
+ * Tests - Icons - Generate Icon Module - Registers The Entire Preset Base Set.
36
+ *
37
+ * @since 0.18.1
38
+ */
39
+ export type Tests_Icons_GenerateIconModule_RegistersTheEntirePresetBaseSet_SiteDir = string;
40
+
41
+ export type Tests_Icons_GenerateIconModule_RegistersTheEntirePresetBaseSet_Source = string;
42
+
43
+ export type Tests_Icons_GenerateIconModule_RegistersTheEntirePresetBaseSet_Registered = string[];
44
+
45
+ /**
46
+ * Tests - Icons - Generate Icon Module - Skips Unresolved Names And Ignores Non Collection Prefixes.
47
+ *
48
+ * @since 0.18.1
49
+ */
50
+ export type Tests_Icons_GenerateIconModule_SkipsUnresolvedNamesAndIgnoresNonCollectionPrefixes_SiteDir = string;
51
+
52
+ export type Tests_Icons_GenerateIconModule_SkipsUnresolvedNamesAndIgnoresNonCollectionPrefixes_Source = string;
53
+
54
+ export type Tests_Icons_GenerateIconModule_SkipsUnresolvedNamesAndIgnoresNonCollectionPrefixes_Registered = string[];
55
+
56
+ /**
57
+ * Tests - Icons - Parse Registered Identifiers.
58
+ *
59
+ * @since 0.18.1
60
+ */
61
+ export type Tests_Icons_ParseRegisteredIdentifiers_Source = string;
62
+
63
+ export type Tests_Icons_ParseRegisteredIdentifiers_Returns = string[];
64
+
65
+ export type Tests_Icons_ParseRegisteredIdentifiers_AddCollectionPrefix = string;
66
+
67
+ export type Tests_Icons_ParseRegisteredIdentifiers_AddCollectionSuffix = string;
68
+
69
+ export type Tests_Icons_ParseRegisteredIdentifiers_Identifiers = string[];
70
+
71
+ export type Tests_Icons_ParseRegisteredIdentifiers_Lines = string[];
72
+
73
+ export type Tests_Icons_ParseRegisteredIdentifiers_Json = string;
74
+
75
+ export type Tests_Icons_ParseRegisteredIdentifiers_Collection_Prefix = string;
76
+
77
+ export type Tests_Icons_ParseRegisteredIdentifiers_Collection_Icons = Record<string, unknown>;
78
+
79
+ export type Tests_Icons_ParseRegisteredIdentifiers_Collection_Aliases = Record<string, unknown> | undefined;
80
+
81
+ export type Tests_Icons_ParseRegisteredIdentifiers_Collection = {
82
+ prefix: Tests_Icons_ParseRegisteredIdentifiers_Collection_Prefix;
83
+ icons: Tests_Icons_ParseRegisteredIdentifiers_Collection_Icons;
84
+ aliases?: Tests_Icons_ParseRegisteredIdentifiers_Collection_Aliases;
85
+ };
86
+
87
+ export type Tests_Icons_ParseRegisteredIdentifiers_Prefix = string;
88
+
89
+ export type Tests_Icons_ParseRegisteredIdentifiers_IconNames = string[];
90
+
91
+ export type Tests_Icons_ParseRegisteredIdentifiers_Aliases = Record<string, unknown> | undefined;
92
+
93
+ export type Tests_Icons_ParseRegisteredIdentifiers_AliasNames = string[];
@@ -48,6 +48,10 @@ export type Tests_Lib_Search_Worker_Results = Tests_Lib_Search_Worker_Hit[];
48
48
 
49
49
  export type Tests_Lib_Search_Worker_FirstHit = Tests_Lib_Search_Worker_Hit | undefined;
50
50
 
51
+ export type Tests_Lib_Search_Worker_NarrowResults = Tests_Lib_Search_Worker_Hit[];
52
+
53
+ export type Tests_Lib_Search_Worker_WiderResults = Tests_Lib_Search_Worker_Hit[];
54
+
51
55
  export type Tests_Lib_Search_Worker_Paths = string[];
52
56
 
53
57
  export type Tests_Lib_Search_Worker_UniquePaths = Set<string>;
@@ -134,6 +138,13 @@ export type Tests_Lib_Search_Worker_PerformSearchExact_ReturnsMatchingDocumentsF
134
138
  */
135
139
  export type Tests_Lib_Search_Worker_PerformSearchFuzzy_MatchesNearMissQueriesViaFuzzyStrategy_Index = unknown;
136
140
 
141
+ /**
142
+ * Tests - Lib - Search - Worker - PerformSearch Fuzzy Distance - Widens Fuzzy Matching As The Distance Increases.
143
+ *
144
+ * @since 0.18.1
145
+ */
146
+ export type Tests_Lib_Search_Worker_PerformSearchFuzzyDistance_WidensFuzzyMatchingAsTheDistanceIncreases_Index = unknown;
147
+
137
148
  /**
138
149
  * Tests - Lib - Search - Worker - PerformSearch Limit - Caps Results At The Specified Limit.
139
150
  *
@@ -422,8 +422,6 @@ export type Tests_Options_ValidateThemeConfig_AcceptsSiteNamespaceWithTitleAndMe
422
422
 
423
423
  export type Tests_Options_ValidateThemeConfig_AcceptsSiteNamespaceWithTitleAndMetadata_Site = Record<string, unknown>;
424
424
 
425
- export type Tests_Options_ValidateThemeConfig_AcceptsSiteNamespaceWithTitleAndMetadata_SiteTitle = string;
426
-
427
425
  export type Tests_Options_ValidateThemeConfig_AcceptsSiteNamespaceWithTitleAndMetadata_SiteMetadata = unknown[];
428
426
 
429
427
  /**
@@ -30,4 +30,19 @@ export type Theme_Layout_Index_Layout_Props = {
30
30
  [key: string]: unknown;
31
31
  };
32
32
 
33
+ export type Theme_Layout_Index_Layout_PluginData_Search_HighlightSearchTermsOnTargetPage = boolean;
34
+
35
+ export type Theme_Layout_Index_Layout_PluginData_Search = {
36
+ highlightSearchTermsOnTargetPage?: Theme_Layout_Index_Layout_PluginData_Search_HighlightSearchTermsOnTargetPage;
37
+ } | undefined;
38
+
39
+ export type Theme_Layout_Index_Layout_PluginData = {
40
+ search?: Theme_Layout_Index_Layout_PluginData_Search;
41
+ [key: string]: unknown;
42
+ };
43
+
44
+ export type Theme_Layout_Index_Layout_SearchSettings = Theme_Layout_Index_Layout_PluginData_Search;
45
+
46
+ export type Theme_Layout_Index_Layout_HighlightSearchTerms = boolean;
47
+
33
48
  export type Theme_Layout_Index_Layout_MetadataSpread = Record<string, unknown>;
@@ -50,8 +50,6 @@ export type Theme_Navbar_Index_UserLogoWordmark_Value = {
50
50
 
51
51
  export type Theme_Navbar_Index_UserLogoWordmark = Theme_Navbar_Index_UserLogoWordmark_Value | undefined;
52
52
 
53
- export type Theme_Navbar_Index_UserLogoTitle = string | undefined;
54
-
55
53
  export type Theme_Navbar_Index_UserLogoAlt = string | undefined;
56
54
 
57
55
  export type Theme_Navbar_Index_UserLogoHref = string | undefined;
@@ -64,8 +62,6 @@ export type Theme_Navbar_Index_UserLogoAriaLabel = string | undefined;
64
62
 
65
63
  export type Theme_Navbar_Index_PresetLogoSrc = string | undefined;
66
64
 
67
- export type Theme_Navbar_Index_PresetLogoTitle = string | undefined;
68
-
69
65
  export type Theme_Navbar_Index_PresetLogoAlt = string | undefined;
70
66
 
71
67
  export type Theme_Navbar_Index_SiteLogo_Src_Value_Light = string | undefined;
@@ -225,10 +221,11 @@ export type Theme_Navbar_Index_Navbar_ThemeConfigCast = unknown;
225
221
 
226
222
  export type Theme_Navbar_Index_Navbar_ThemeConfig = Record<string, unknown>;
227
223
 
228
- export type Theme_Navbar_Index_Navbar_SiteConfig_Title = string;
224
+ export type Theme_Navbar_Index_Navbar_DocusaurusContext = ReturnType<typeof import('@docusaurus/useDocusaurusContext').default>;
225
+
226
+ export type Theme_Navbar_Index_Navbar_SiteTitle = string;
229
227
 
230
228
  export type Theme_Navbar_Index_Navbar_SiteConfig = {
231
- title: Theme_Navbar_Index_Navbar_SiteConfig_Title;
232
229
  [key: string]: unknown;
233
230
  };
234
231
 
@@ -274,8 +271,6 @@ export type Theme_Navbar_Index_Navbar_ColorModeChoice = Theme_Navbar_Index_Navba
274
271
 
275
272
  export type Theme_Navbar_Index_Navbar_SetColorMode = (colorMode: Theme_Navbar_Index_Navbar_ColorModeChoice) => void;
276
273
 
277
- export type Theme_Navbar_Index_Navbar_SiteTitle = string;
278
-
279
274
  export type Theme_Navbar_Index_Navbar_Items = Theme_Navbar_Index_Navbar_Item[];
280
275
 
281
276
  export type Theme_Navbar_Index_Navbar_Variant = Shared_Preset_Navbar;
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * @since 0.15.0
5
5
  */
6
+ declare module '@nova-generated-icons';
@@ -1,5 +1,29 @@
1
1
  import type { Shared_SearchWorkerSearchHit } from '../../shared.d.ts';
2
2
 
3
+ /**
4
+ * Theme - Search Bar - Search Input - Parse Shortcut Keymap.
5
+ *
6
+ * @since 0.18.1
7
+ */
8
+ export type Theme_SearchBar_SearchInput_ParseShortcutKeymap_Keymap = string;
9
+
10
+ export type Theme_SearchBar_SearchInput_ParseShortcutKeymap_Returns_Key = string;
11
+
12
+ export type Theme_SearchBar_SearchInput_ParseShortcutKeymap_Returns_Modifiers = string[];
13
+
14
+ export type Theme_SearchBar_SearchInput_ParseShortcutKeymap_Returns = {
15
+ key: Theme_SearchBar_SearchInput_ParseShortcutKeymap_Returns_Key;
16
+ modifiers: Theme_SearchBar_SearchInput_ParseShortcutKeymap_Returns_Modifiers;
17
+ };
18
+
19
+ export type Theme_SearchBar_SearchInput_ParseShortcutKeymap_Function = (keymap: Theme_SearchBar_SearchInput_ParseShortcutKeymap_Keymap) => Theme_SearchBar_SearchInput_ParseShortcutKeymap_Returns;
20
+
21
+ export type Theme_SearchBar_SearchInput_ParseShortcutKeymap_Tokens = string[];
22
+
23
+ export type Theme_SearchBar_SearchInput_ParseShortcutKeymap_Key = string;
24
+
25
+ export type Theme_SearchBar_SearchInput_ParseShortcutKeymap_Modifiers = string[];
26
+
3
27
  /**
4
28
  * Theme - Search Bar - Search Input - Search Input.
5
29
  *
@@ -25,6 +49,21 @@ export type Theme_SearchBar_SearchInput_HandleQueryChange = import('./search-con
25
49
 
26
50
  export type Theme_SearchBar_SearchInput_InputRef = import('./search-context.d.ts').Theme_SearchBar_SearchContext_Value_InputRef;
27
51
 
52
+ export type Theme_SearchBar_SearchInput_PluginData_Search_SearchBarShortcutKeymap = string;
53
+
54
+ export type Theme_SearchBar_SearchInput_PluginData_Search = {
55
+ searchBarShortcutKeymap?: Theme_SearchBar_SearchInput_PluginData_Search_SearchBarShortcutKeymap;
56
+ } | undefined;
57
+
58
+ export type Theme_SearchBar_SearchInput_PluginData = {
59
+ search?: Theme_SearchBar_SearchInput_PluginData_Search;
60
+ [key: string]: unknown;
61
+ };
62
+
63
+ export type Theme_SearchBar_SearchInput_SearchSettings = Theme_SearchBar_SearchInput_PluginData_Search;
64
+
65
+ export type Theme_SearchBar_SearchInput_ShortcutKeymap = string;
66
+
28
67
  export type Theme_SearchBar_SearchInput_IsActive = boolean;
29
68
 
30
69
  export type Theme_SearchBar_SearchInput_PreviousIsActiveRef = React.RefObject<boolean>;
@@ -41,10 +80,20 @@ export type Theme_SearchBar_SearchInput_SearchInput_OnSwapEnd_Function = (event:
41
80
 
42
81
  export type Theme_SearchBar_SearchInput_SearchInput_HandleKeyDown_Function = (event: Theme_SearchBar_SearchInput_KeyboardEvent) => void;
43
82
 
83
+ export type Theme_SearchBar_SearchInput_ParsedKeymap = Theme_SearchBar_SearchInput_ParseShortcutKeymap_Returns;
84
+
85
+ export type Theme_SearchBar_SearchInput_ShortcutKey = string;
86
+
87
+ export type Theme_SearchBar_SearchInput_ShortcutModifiers = string[];
88
+
44
89
  export type Theme_SearchBar_SearchInput_KeyboardEvent = KeyboardEvent;
45
90
 
46
91
  export type Theme_SearchBar_SearchInput_IsMac = boolean;
47
92
 
93
+ export type Theme_SearchBar_SearchInput_ModifiersMatch = boolean;
94
+
95
+ export type Theme_SearchBar_SearchInput_Modifier = string;
96
+
48
97
  export type Theme_SearchBar_SearchInput_IsShortcutMatch = boolean;
49
98
 
50
99
  export type Theme_SearchBar_SearchInput_HandleInputChangeFunction = (event: Theme_SearchBar_SearchInput_InputChangeEvent) => void;
@@ -21,6 +21,26 @@ export type Theme_SearchBar_SearchProvider_WorkerUrl = string;
21
21
 
22
22
  export type Theme_SearchBar_SearchProvider_ManifestUrl = string;
23
23
 
24
+ export type Theme_SearchBar_SearchProvider_PluginData_Search_SearchResultLimits = number;
25
+
26
+ export type Theme_SearchBar_SearchProvider_PluginData_Search_FuzzyMatchingDistance = number;
27
+
28
+ export type Theme_SearchBar_SearchProvider_PluginData_Search = {
29
+ searchResultLimits?: Theme_SearchBar_SearchProvider_PluginData_Search_SearchResultLimits;
30
+ fuzzyMatchingDistance?: Theme_SearchBar_SearchProvider_PluginData_Search_FuzzyMatchingDistance;
31
+ } | undefined;
32
+
33
+ export type Theme_SearchBar_SearchProvider_PluginData = {
34
+ search?: Theme_SearchBar_SearchProvider_PluginData_Search;
35
+ [key: string]: unknown;
36
+ };
37
+
38
+ export type Theme_SearchBar_SearchProvider_SearchSettings = Theme_SearchBar_SearchProvider_PluginData_Search;
39
+
40
+ export type Theme_SearchBar_SearchProvider_SearchResultLimits = number;
41
+
42
+ export type Theme_SearchBar_SearchProvider_FuzzyMatchingDistance = number;
43
+
24
44
  export type Theme_SearchBar_SearchProvider_SearchWorker = import('../../lib/search/use-search-worker.d.ts').Lib_Search_UseSearchWorker_Returns;
25
45
 
26
46
  export type Theme_SearchBar_SearchProvider_QueryState = [Theme_SearchBar_SearchProvider_Query, Theme_SearchBar_SearchProvider_SetQuery];
@@ -25,6 +25,31 @@ export type Theme_SearchPage_Index_SearchPage_WorkerUrl = string;
25
25
 
26
26
  export type Theme_SearchPage_Index_SearchPage_ManifestUrl = string;
27
27
 
28
+ export type Theme_SearchPage_Index_SearchPage_PluginData_Search_SearchResultLimits = number;
29
+
30
+ export type Theme_SearchPage_Index_SearchPage_PluginData_Search_FuzzyMatchingDistance = number;
31
+
32
+ export type Theme_SearchPage_Index_SearchPage_PluginData_Search_HighlightSearchTermsOnTargetPage = boolean;
33
+
34
+ export type Theme_SearchPage_Index_SearchPage_PluginData_Search = {
35
+ searchResultLimits?: Theme_SearchPage_Index_SearchPage_PluginData_Search_SearchResultLimits;
36
+ fuzzyMatchingDistance?: Theme_SearchPage_Index_SearchPage_PluginData_Search_FuzzyMatchingDistance;
37
+ highlightSearchTermsOnTargetPage?: Theme_SearchPage_Index_SearchPage_PluginData_Search_HighlightSearchTermsOnTargetPage;
38
+ } | undefined;
39
+
40
+ export type Theme_SearchPage_Index_SearchPage_PluginData = {
41
+ search?: Theme_SearchPage_Index_SearchPage_PluginData_Search;
42
+ [key: string]: unknown;
43
+ };
44
+
45
+ export type Theme_SearchPage_Index_SearchPage_SearchSettings = Theme_SearchPage_Index_SearchPage_PluginData_Search;
46
+
47
+ export type Theme_SearchPage_Index_SearchPage_SearchResultLimits = number;
48
+
49
+ export type Theme_SearchPage_Index_SearchPage_FuzzyMatchingDistance = number;
50
+
51
+ export type Theme_SearchPage_Index_SearchPage_HighlightSearchTerms = boolean;
52
+
28
53
  export type Theme_SearchPage_Index_SearchPage_SearchWorker = import('../../lib/search/use-search-worker.d.ts').Lib_Search_UseSearchWorker_Returns;
29
54
 
30
55
  export type Theme_SearchPage_Index_SearchPage_SearchParams = URLSearchParams;
package/nova-config.d.ts CHANGED
@@ -6,106 +6,120 @@ import type {
6
6
  RouteConfig,
7
7
  } from '@docusaurus/types';
8
8
 
9
- // Primary brand color - hex format (e.g., "#DC2626").
10
- export type NovaPresetOverridesColorsPrimary = string | undefined;
9
+ // Primary brand color - light mode hex (e.g., "#DC2626").
10
+ export type NovaPresetOverridesColorsPrimaryLight = string | undefined;
11
11
 
12
- // Accent color for highlights and CTAs - hex format (e.g., "#FFBA33").
13
- export type NovaPresetOverridesColorsAccent = string | undefined;
12
+ // Primary brand color - dark mode hex (e.g., "#F87171").
13
+ export type NovaPresetOverridesColorsPrimaryDark = string | undefined;
14
14
 
15
- // Neutral color for borders and muted text - hex format (e.g., "#78716C").
16
- export type NovaPresetOverridesColorsNeutral = string | undefined;
15
+ // Primary brand color override - light/dark hex pair.
16
+ export type NovaPresetOverridesColorsPrimary = {
17
+ light: NovaPresetOverridesColorsPrimaryLight;
18
+ dark: NovaPresetOverridesColorsPrimaryDark;
19
+ };
17
20
 
18
- // Brand color overrides.
19
- export type NovaPresetOverridesColors = {
20
- primary: NovaPresetOverridesColorsPrimary;
21
- accent: NovaPresetOverridesColorsAccent;
22
- neutral: NovaPresetOverridesColorsNeutral;
21
+ // Secondary accent color - light mode hex (e.g., "#FBBF24").
22
+ export type NovaPresetOverridesColorsSecondaryLight = string | undefined;
23
+
24
+ // Secondary accent color - dark mode hex (e.g., "#FBBF24").
25
+ export type NovaPresetOverridesColorsSecondaryDark = string | undefined;
26
+
27
+ // Secondary accent color override - light/dark hex pair.
28
+ export type NovaPresetOverridesColorsSecondary = {
29
+ light: NovaPresetOverridesColorsSecondaryLight;
30
+ dark: NovaPresetOverridesColorsSecondaryDark;
23
31
  };
24
32
 
25
- // Display/heading font family (e.g., "Sora", "Plus Jakarta Sans").
26
- export type NovaPresetOverridesFontsDisplay = string | undefined;
33
+ // Body text color - light mode hex (e.g., "#1C1917").
34
+ export type NovaPresetOverridesColorsTextLight = string | undefined;
27
35
 
28
- // Body text font family (e.g., "Inter", "DM Sans").
29
- export type NovaPresetOverridesFontsBody = string | undefined;
36
+ // Body text color - dark mode hex (e.g., "#E7E5E4").
37
+ export type NovaPresetOverridesColorsTextDark = string | undefined;
30
38
 
31
- // Code/monospace font family (e.g., "Fira Code", "JetBrains Mono").
32
- export type NovaPresetOverridesFontsCode = string | undefined;
39
+ // Body text color override - light/dark hex pair.
40
+ export type NovaPresetOverridesColorsText = {
41
+ light: NovaPresetOverridesColorsTextLight;
42
+ dark: NovaPresetOverridesColorsTextDark;
43
+ };
33
44
 
34
- // Font family overrides.
35
- export type NovaPresetOverridesFonts = {
36
- display: NovaPresetOverridesFontsDisplay;
37
- body: NovaPresetOverridesFontsBody;
38
- code: NovaPresetOverridesFontsCode;
45
+ // Border and divider color - light mode hex (e.g., "#D6D3D1").
46
+ export type NovaPresetOverridesColorsBorderLight = string | undefined;
47
+
48
+ // Border and divider color - dark mode hex (e.g., "#44403C").
49
+ export type NovaPresetOverridesColorsBorderDark = string | undefined;
50
+
51
+ // Border and divider color override - light/dark hex pair.
52
+ export type NovaPresetOverridesColorsBorder = {
53
+ light: NovaPresetOverridesColorsBorderLight;
54
+ dark: NovaPresetOverridesColorsBorderDark;
39
55
  };
40
56
 
41
- // Border radius style.
42
- export type NovaPresetOverridesShapeRadius = 'sharp' | 'rounded' | 'pill' | undefined;
57
+ // Warning admonition color - light mode hex (e.g., "#F59E0B").
58
+ export type NovaPresetOverridesColorsWarningLight = string | undefined;
43
59
 
44
- // Spacing density - affects padding and margins.
45
- export type NovaPresetOverridesShapeDensity = 'compact' | 'comfortable' | 'spacious' | undefined;
60
+ // Warning admonition color - dark mode hex (e.g., "#FBBF24").
61
+ export type NovaPresetOverridesColorsWarningDark = string | undefined;
46
62
 
47
- // Shape and spacing overrides.
48
- export type NovaPresetOverridesShape = {
49
- radius: NovaPresetOverridesShapeRadius;
50
- density: NovaPresetOverridesShapeDensity;
63
+ // Warning admonition color override - light/dark hex pair.
64
+ export type NovaPresetOverridesColorsWarning = {
65
+ light: NovaPresetOverridesColorsWarningLight;
66
+ dark: NovaPresetOverridesColorsWarningDark;
51
67
  };
52
68
 
53
- // Card surface style.
54
- export type NovaPresetOverridesDepthCards = 'flat' | 'elevated' | 'glass' | undefined;
69
+ // Danger/error admonition color - light mode hex (e.g., "#EF4444").
70
+ export type NovaPresetOverridesColorsDangerLight = string | undefined;
55
71
 
56
- // Code block surface style.
57
- export type NovaPresetOverridesDepthCodeBlocks = 'flat' | 'bordered' | 'elevated' | undefined;
72
+ // Danger/error admonition color - dark mode hex (e.g., "#F87171").
73
+ export type NovaPresetOverridesColorsDangerDark = string | undefined;
58
74
 
59
- // Surface depth overrides.
60
- export type NovaPresetOverridesDepth = {
61
- cards: NovaPresetOverridesDepthCards;
62
- codeBlocks: NovaPresetOverridesDepthCodeBlocks;
75
+ // Danger/error admonition color override - light/dark hex pair.
76
+ export type NovaPresetOverridesColorsDanger = {
77
+ light: NovaPresetOverridesColorsDangerLight;
78
+ dark: NovaPresetOverridesColorsDangerDark;
63
79
  };
64
80
 
65
- // Animation speed.
66
- export type NovaPresetOverridesMotionSpeed = 'none' | 'subtle' | 'normal' | 'expressive' | undefined;
81
+ // Brand color overrides - each category is a light/dark hex pair.
82
+ export type NovaPresetOverridesColors = {
83
+ primary: NovaPresetOverridesColorsPrimary;
84
+ secondary: NovaPresetOverridesColorsSecondary;
85
+ text: NovaPresetOverridesColorsText;
86
+ border: NovaPresetOverridesColorsBorder;
87
+ warning: NovaPresetOverridesColorsWarning;
88
+ danger: NovaPresetOverridesColorsDanger;
89
+ };
67
90
 
68
- // Stagger reveal animations on page load.
69
- export type NovaPresetOverridesMotionStaggeredReveals = boolean | undefined;
91
+ // Display/heading font family (e.g., "Sora", "Plus Jakarta Sans").
92
+ export type NovaPresetOverridesFontsDisplay = string | undefined;
93
+
94
+ // Body text font family (e.g., "Inter", "DM Sans").
95
+ export type NovaPresetOverridesFontsBody = string | undefined;
70
96
 
71
- // Enable hover effects on interactive elements.
72
- export type NovaPresetOverridesMotionHoverEffects = boolean | undefined;
97
+ // Code/monospace font family (e.g., "Fira Code", "JetBrains Mono").
98
+ export type NovaPresetOverridesFontsCode = string | undefined;
73
99
 
74
- // Animation and motion overrides.
75
- export type NovaPresetOverridesMotion = {
76
- speed: NovaPresetOverridesMotionSpeed;
77
- staggeredReveals: NovaPresetOverridesMotionStaggeredReveals;
78
- hoverEffects: NovaPresetOverridesMotionHoverEffects;
100
+ // Font family overrides.
101
+ export type NovaPresetOverridesFonts = {
102
+ display: NovaPresetOverridesFontsDisplay;
103
+ body: NovaPresetOverridesFontsBody;
104
+ code: NovaPresetOverridesFontsCode;
79
105
  };
80
106
 
81
- // Override preset brand colors (e.g., { primary: "#DC2626" }).
107
+ // Override preset brand colors (e.g., { primary: { light: "#DC2626" } }).
82
108
  export type NovaPresetOverridesColorsPartial = Partial<NovaPresetOverridesColors> | undefined;
83
109
 
84
110
  // Override preset font families (e.g., { display: "Sora" }).
85
111
  export type NovaPresetOverridesFontsPartial = Partial<NovaPresetOverridesFonts> | undefined;
86
112
 
87
- // Override preset border radius and spacing density.
88
- export type NovaPresetOverridesShapePartial = Partial<NovaPresetOverridesShape> | undefined;
89
-
90
- // Override preset card and code block depth styling.
91
- export type NovaPresetOverridesDepthPartial = Partial<NovaPresetOverridesDepth> | undefined;
92
-
93
- // Override preset animation speed and effects.
94
- export type NovaPresetOverridesMotionPartial = Partial<NovaPresetOverridesMotion> | undefined;
95
-
96
113
  // Navbar variant override.
97
114
  export type NovaPresetOverridesNavbar = 'bridge' | 'canopy' | 'monolith' | 'compass' | undefined;
98
115
 
99
116
  // Footer variant override.
100
117
  export type NovaPresetOverridesFooter = 'commons' | 'embassy' | 'ledger' | 'launchpad' | undefined;
101
118
 
102
- // Preset visual overrides - colors, fonts, shape, depth, motion, and layout variants.
119
+ // Preset visual overrides - colors, fonts, and navbar/footer layout variants.
103
120
  export type NovaPresetOverrides = {
104
121
  colors?: NovaPresetOverridesColorsPartial;
105
122
  fonts?: NovaPresetOverridesFontsPartial;
106
- shape?: NovaPresetOverridesShapePartial;
107
- depth?: NovaPresetOverridesDepthPartial;
108
- motion?: NovaPresetOverridesMotionPartial;
109
123
  navbar?: NovaPresetOverridesNavbar;
110
124
  footer?: NovaPresetOverridesFooter;
111
125
  };
@@ -774,7 +788,13 @@ export type NovaPresetOptionsProgressBar = NovaPresetProgressBar | undefined;
774
788
  // Local search configuration, or false to disable search entirely. Defaults to false.
775
789
  export type NovaPresetOptionsSearch = NovaPresetSearch | undefined;
776
790
 
777
- // Nova preset options - identity, overrides, plugins, analytics, progress bar, and search.
791
+ // Icon identifiers to always bundle, for names built dynamically that the build-time scan cannot see. Defaults to [].
792
+ export type NovaPresetOptionsIconSafelist = string[] | undefined;
793
+
794
+ // Maximum size in MiB any emitted JavaScript bundle file may reach before the build fails, or false to disable. Defaults to 3.
795
+ export type NovaPresetOptionsMaxBundleFileSize = number | false | undefined;
796
+
797
+ // Nova preset options - identity, overrides, plugins, analytics, progress bar, search, icon safelist, and bundle size guard.
778
798
  export type NovaPresetOptions = {
779
799
  preset: NovaPresetName;
780
800
  overrides?: NovaPresetOptionsOverrides;
@@ -782,6 +802,8 @@ export type NovaPresetOptions = {
782
802
  analytics?: NovaPresetOptionsAnalytics;
783
803
  progressBar?: NovaPresetOptionsProgressBar;
784
804
  search?: NovaPresetOptionsSearch;
805
+ iconSafelist?: NovaPresetOptionsIconSafelist;
806
+ maxBundleFileSize?: NovaPresetOptionsMaxBundleFileSize;
785
807
  };
786
808
 
787
809
  // Meta tag name attribute (e.g., "twitter:card", "og:description").
@@ -796,9 +818,6 @@ export type NovaThemeConfigSiteMetadataEntry = {
796
818
  content: NovaThemeConfigSiteMetadataEntryContent;
797
819
  };
798
820
 
799
- // Site title shown in the browser tab and SEO (e.g., "Nova", "Foundry"). Defaults to "".
800
- export type NovaThemeConfigSiteTitle = string | undefined;
801
-
802
821
  // Alt text for the logo image (e.g., "Nova"). Defaults to "".
803
822
  export type NovaThemeConfigSiteLogoAlt = string | undefined;
804
823
 
@@ -838,9 +857,6 @@ export type NovaThemeConfigSiteLogoWordmark = {
838
857
  dark?: NovaThemeConfigSiteLogoWordmarkDark;
839
858
  } | undefined;
840
859
 
841
- // Brand title text shown in the navbar (e.g., "Envoy"). Not used for SEO.
842
- export type NovaThemeConfigSiteLogoTitle = string | undefined;
843
-
844
860
  // Site logo configuration.
845
861
  export type NovaThemeConfigSiteLogo = {
846
862
  alt?: NovaThemeConfigSiteLogoAlt;
@@ -850,7 +866,6 @@ export type NovaThemeConfigSiteLogo = {
850
866
  rel?: NovaThemeConfigSiteLogoRel;
851
867
  ariaLabel?: NovaThemeConfigSiteLogoAriaLabel;
852
868
  wordmark?: NovaThemeConfigSiteLogoWordmark;
853
- title?: NovaThemeConfigSiteLogoTitle;
854
869
  } | undefined;
855
870
 
856
871
  // Default social sharing image - URL path from static dir (e.g., "/thumbnails/brand.png"). Defaults to "".
@@ -859,9 +874,8 @@ export type NovaThemeConfigSiteImage = string | undefined;
859
874
  // HTML <meta> tags for SEO (e.g., [{ name: "twitter:card", content: "summary_large_image" }]). Defaults to [].
860
875
  export type NovaThemeConfigSiteMetadata = NovaThemeConfigSiteMetadataEntry[] | undefined;
861
876
 
862
- // Site identity - title, logo, image, and metadata.
877
+ // Site identity - logo, image, and metadata.
863
878
  export type NovaThemeConfigSite = {
864
- title?: NovaThemeConfigSiteTitle;
865
879
  logo?: NovaThemeConfigSiteLogo;
866
880
  image?: NovaThemeConfigSiteImage;
867
881
  metadata?: NovaThemeConfigSiteMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbnventures/docusaurus-preset-nova",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Scripts, templates, and project configuration for the common JavaScript and TypeScript developer",
5
5
  "keywords": [
6
6
  "eslint",
@@ -87,7 +87,7 @@
87
87
  "node": "^20 || ^22 || ^24"
88
88
  },
89
89
  "dependencies": {
90
- "@cbnventures/nova": "0.18.0",
90
+ "@cbnventures/nova": "0.19.0",
91
91
  "@codesandbox/sandpack-react": "2.20.0",
92
92
  "@docusaurus/plugin-content-blog": "3.10.0",
93
93
  "@docusaurus/plugin-content-docs": "3.10.0",
@@ -98,12 +98,7 @@
98
98
  "@docusaurus/theme-common": "3.10.0",
99
99
  "@docusaurus/theme-translations": "3.10.0",
100
100
  "@docusaurus/utils-validation": "3.10.0",
101
- "@iconify-json/logos": "1.2.11",
102
- "@iconify-json/lucide": "1.2.101",
103
- "@iconify-json/mdi": "1.2.3",
104
- "@iconify-json/openmoji": "1.2.27",
105
- "@iconify-json/ri": "1.2.10",
106
- "@iconify-json/simple-icons": "1.2.80",
101
+ "@iconify/json": "2.2.488",
107
102
  "@iconify/react": "6.0.2",
108
103
  "@mdx-js/react": "3.1.1",
109
104
  "cheerio": "1.2.0",