@redocly/theme 0.56.0-next.2 → 0.56.0-next.4

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 (227) hide show
  1. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +4 -2
  2. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +1 -3
  3. package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +4 -11
  4. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +7 -1
  5. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +4 -0
  6. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +3 -3
  7. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +7 -2
  8. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.d.ts +6 -0
  9. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +19 -0
  10. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +1 -0
  11. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +11 -8
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +31 -6
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +0 -1
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +2 -1
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +11 -5
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.d.ts +6 -0
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +55 -0
  18. package/lib/components/Catalog/CatalogEntityIcon.d.ts +2 -1
  19. package/lib/components/Catalog/CatalogEntityIcon.js +22 -23
  20. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +2 -1
  21. package/lib/components/Catalog/CatalogEntityTypeIcon.js +11 -23
  22. package/lib/components/Catalog/CatalogEntityTypeTag.d.ts +7 -0
  23. package/lib/components/Catalog/CatalogEntityTypeTag.js +36 -0
  24. package/lib/components/Catalog/CatalogPageDescription.js +2 -2
  25. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +6 -4
  26. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +2 -14
  27. package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.d.ts +3 -0
  28. package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.js +11 -0
  29. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +1 -1
  30. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +1 -2
  31. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +3 -26
  32. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +0 -2
  33. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +5 -26
  34. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +1 -1
  35. package/lib/components/Catalog/CatalogTagsWithTooltip.js +5 -6
  36. package/lib/components/Catalog/variables.js +36 -7
  37. package/lib/components/Menu/variables.js +2 -0
  38. package/lib/components/Tag/Tag.d.ts +2 -1
  39. package/lib/components/Tag/Tag.js +3 -3
  40. package/lib/components/Tag/variables.js +14 -0
  41. package/lib/components/Tags/CounterTag.d.ts +1 -1
  42. package/lib/components/Tags/HttpTag.d.ts +1 -1
  43. package/lib/core/constants/catalog.d.ts +3 -0
  44. package/lib/core/constants/catalog.js +55 -1
  45. package/lib/core/constants/index.d.ts +5 -5
  46. package/lib/core/constants/index.js +5 -5
  47. package/lib/core/constants/search.d.ts +1 -1
  48. package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughControlsContext.d.ts +1 -1
  49. package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.d.ts +1 -1
  50. package/lib/core/contexts/ThemeDataContext.d.ts +1 -1
  51. package/lib/core/contexts/index.d.ts +3 -3
  52. package/lib/core/contexts/index.js +3 -3
  53. package/lib/core/hoc/index.d.ts +1 -1
  54. package/lib/core/hoc/index.js +1 -1
  55. package/lib/core/hooks/__mocks__/index.d.ts +28 -28
  56. package/lib/core/hooks/__mocks__/index.js +28 -28
  57. package/lib/core/hooks/catalog/useCatalogEntities.d.ts +1 -1
  58. package/lib/core/hooks/catalog/useCatalogTableViewRow.js +2 -2
  59. package/lib/core/hooks/code-walkthrough/use-code-panel.js +6 -5
  60. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-controls.js +8 -5
  61. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.d.ts +1 -1
  62. package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.js +9 -9
  63. package/lib/core/hooks/code-walkthrough/use-code-walkthrough.d.ts +2 -2
  64. package/lib/core/hooks/code-walkthrough/use-code-walkthrough.js +4 -3
  65. package/lib/core/hooks/code-walkthrough/use-renderable-files.js +6 -4
  66. package/lib/core/hooks/feedback/use-report-dialog.js +4 -3
  67. package/lib/core/hooks/index.d.ts +42 -42
  68. package/lib/core/hooks/index.js +42 -42
  69. package/lib/core/hooks/menu/use-menu-item-expanded.d.ts +1 -1
  70. package/lib/core/hooks/menu/use-mobile-menu-items.d.ts +1 -1
  71. package/lib/core/hooks/menu/use-mobile-menu-items.js +13 -12
  72. package/lib/core/hooks/menu/use-mobile-menu-levels.d.ts +1 -1
  73. package/lib/core/hooks/menu/use-mobile-menu-levels.js +8 -7
  74. package/lib/core/hooks/menu/use-nested-menu.d.ts +1 -1
  75. package/lib/core/hooks/menu/use-nested-menu.js +8 -6
  76. package/lib/core/hooks/search/use-recent-searches.js +3 -3
  77. package/lib/core/hooks/search/use-search-dialog.js +4 -3
  78. package/lib/core/hooks/search/use-search-filter.d.ts +1 -1
  79. package/lib/core/hooks/search/use-suggested-pages.js +2 -2
  80. package/lib/core/hooks/use-active-page-version.js +2 -2
  81. package/lib/core/hooks/use-active-section-id.js +2 -2
  82. package/lib/core/hooks/use-color-switcher.js +4 -3
  83. package/lib/core/hooks/use-input-key-commands.js +2 -2
  84. package/lib/core/hooks/use-language-picker.d.ts +1 -1
  85. package/lib/core/hooks/use-language-picker.js +4 -4
  86. package/lib/core/hooks/use-mobile-menu.js +2 -2
  87. package/lib/core/hooks/use-navbar-height.js +3 -3
  88. package/lib/core/hooks/use-page-versions.js +2 -2
  89. package/lib/core/hooks/use-product-picker.js +2 -2
  90. package/lib/core/hooks/use-theme-config.js +2 -2
  91. package/lib/core/hooks/use-theme-hooks.d.ts +1 -1
  92. package/lib/core/hooks/use-theme-hooks.js +2 -2
  93. package/lib/core/hooks/use-time-ago.js +2 -2
  94. package/lib/core/hooks/use-user-teams.js +2 -2
  95. package/lib/core/index.d.ts +7 -7
  96. package/lib/core/index.js +7 -7
  97. package/lib/core/openapi/index.d.ts +18 -0
  98. package/lib/core/openapi/index.js +48 -0
  99. package/lib/core/styles/global.js +1 -1
  100. package/lib/core/styles/index.d.ts +2 -2
  101. package/lib/core/styles/index.js +2 -2
  102. package/lib/core/templates/Markdown.d.ts +1 -1
  103. package/lib/core/templates/Markdown.js +8 -6
  104. package/lib/core/types/catalog.d.ts +6 -2
  105. package/lib/core/types/code-walkthrough.d.ts +1 -1
  106. package/lib/core/types/feedback.d.ts +1 -1
  107. package/lib/core/types/filter.d.ts +1 -1
  108. package/lib/core/types/hooks.d.ts +11 -3
  109. package/lib/core/types/index.d.ts +18 -18
  110. package/lib/core/types/index.js +18 -18
  111. package/lib/core/types/l10n.d.ts +1 -1
  112. package/lib/core/types/search.d.ts +1 -1
  113. package/lib/core/types/sidebar.d.ts +1 -1
  114. package/lib/core/utils/download-code-walkthrough.js +6 -4
  115. package/lib/core/utils/get-code-walkthrough-file-text.js +4 -3
  116. package/lib/core/utils/index.d.ts +35 -35
  117. package/lib/core/utils/index.js +35 -35
  118. package/lib/core/utils/load-and-navigate.js +2 -2
  119. package/lib/core/utils/match-code-walkthrough-conditions.js +3 -3
  120. package/lib/core/utils/menu.d.ts +3 -2
  121. package/lib/core/utils/menu.js +12 -12
  122. package/lib/core/utils/toc.d.ts +1 -1
  123. package/lib/core/utils/type-guards.d.ts +1 -1
  124. package/lib/core/utils/type-guards.js +5 -5
  125. package/lib/core/utils/urls.d.ts +1 -1
  126. package/lib/core/utils/urls.js +2 -2
  127. package/lib/icons/MoleculesIcon/MoleculesIcon.d.ts +9 -0
  128. package/lib/icons/MoleculesIcon/MoleculesIcon.js +22 -0
  129. package/lib/icons/NetworkIcon/NetworkIcon.d.ts +9 -0
  130. package/lib/icons/NetworkIcon/NetworkIcon.js +23 -0
  131. package/lib/icons/NotesIcon/NotesIcon.d.ts +9 -0
  132. package/lib/icons/NotesIcon/NotesIcon.js +26 -0
  133. package/lib/markdoc/components/Tabs/TabList.js +2 -0
  134. package/package.json +2 -2
  135. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +6 -3
  136. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +7 -15
  137. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +7 -1
  138. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +4 -0
  139. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +2 -3
  140. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +10 -3
  141. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +36 -0
  142. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +19 -22
  143. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +8 -2
  144. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +0 -1
  145. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +16 -3
  146. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +52 -0
  147. package/src/components/Catalog/CatalogEntityIcon.tsx +33 -27
  148. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +23 -28
  149. package/src/components/Catalog/CatalogEntityTypeTag.tsx +43 -0
  150. package/src/components/Catalog/CatalogPageDescription.tsx +4 -3
  151. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +7 -20
  152. package/src/components/Catalog/CatalogTableView/CatalogEntityRelationCell.tsx +19 -0
  153. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +4 -2
  154. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +3 -31
  155. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +5 -31
  156. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +10 -19
  157. package/src/components/Catalog/variables.ts +36 -7
  158. package/src/components/Menu/variables.ts +2 -0
  159. package/src/components/Tag/Tag.tsx +11 -2
  160. package/src/components/Tag/variables.ts +14 -0
  161. package/src/core/constants/catalog.ts +58 -0
  162. package/src/core/constants/index.ts +5 -5
  163. package/src/core/constants/search.ts +1 -1
  164. package/src/core/contexts/CodeWalkthrough/CodeWalkthroughControlsContext.tsx +1 -1
  165. package/src/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.tsx +1 -1
  166. package/src/core/contexts/ThemeDataContext.tsx +3 -3
  167. package/src/core/contexts/index.ts +3 -3
  168. package/src/core/hoc/index.ts +1 -1
  169. package/src/core/hooks/__mocks__/index.ts +28 -28
  170. package/src/core/hooks/catalog/useCatalogEntities.ts +1 -1
  171. package/src/core/hooks/catalog/useCatalogTableViewRow.ts +1 -1
  172. package/src/core/hooks/code-walkthrough/use-code-panel.ts +3 -5
  173. package/src/core/hooks/code-walkthrough/use-code-walkthrough-controls.ts +4 -6
  174. package/src/core/hooks/code-walkthrough/use-code-walkthrough-steps.ts +4 -3
  175. package/src/core/hooks/code-walkthrough/use-code-walkthrough.ts +3 -3
  176. package/src/core/hooks/code-walkthrough/use-renderable-files.ts +4 -6
  177. package/src/core/hooks/feedback/use-report-dialog.ts +3 -2
  178. package/src/core/hooks/index.ts +42 -42
  179. package/src/core/hooks/menu/use-menu-item-expanded.ts +1 -1
  180. package/src/core/hooks/menu/use-mobile-menu-items.ts +4 -7
  181. package/src/core/hooks/menu/use-mobile-menu-levels.ts +3 -2
  182. package/src/core/hooks/menu/use-nested-menu.ts +5 -3
  183. package/src/core/hooks/search/use-recent-searches.ts +1 -1
  184. package/src/core/hooks/search/use-search-dialog.ts +2 -1
  185. package/src/core/hooks/search/use-search-filter.ts +1 -1
  186. package/src/core/hooks/search/use-suggested-pages.ts +1 -1
  187. package/src/core/hooks/use-active-page-version.ts +1 -1
  188. package/src/core/hooks/use-active-section-id.ts +1 -1
  189. package/src/core/hooks/use-codeblock-tabs-controls.ts +1 -1
  190. package/src/core/hooks/use-color-switcher.ts +2 -1
  191. package/src/core/hooks/use-input-key-commands.ts +1 -1
  192. package/src/core/hooks/use-language-picker.ts +3 -3
  193. package/src/core/hooks/use-mobile-menu.ts +1 -1
  194. package/src/core/hooks/use-navbar-height.ts +1 -1
  195. package/src/core/hooks/use-page-versions.ts +1 -1
  196. package/src/core/hooks/use-product-picker.ts +1 -1
  197. package/src/core/hooks/use-theme-config.ts +2 -2
  198. package/src/core/hooks/use-theme-hooks.ts +2 -2
  199. package/src/core/hooks/use-time-ago.ts +3 -2
  200. package/src/core/hooks/use-user-teams.ts +1 -1
  201. package/src/core/index.ts +7 -7
  202. package/src/core/openapi/index.ts +31 -0
  203. package/src/core/styles/global.ts +2 -1
  204. package/src/core/styles/index.ts +2 -2
  205. package/src/core/templates/Markdown.tsx +8 -4
  206. package/src/core/types/catalog.ts +15 -2
  207. package/src/core/types/code-walkthrough.ts +1 -1
  208. package/src/core/types/feedback.ts +6 -6
  209. package/src/core/types/filter.ts +1 -1
  210. package/src/core/types/hooks.ts +17 -16
  211. package/src/core/types/index.ts +18 -18
  212. package/src/core/types/l10n.ts +4 -0
  213. package/src/core/types/search.ts +1 -1
  214. package/src/core/types/sidebar.ts +1 -1
  215. package/src/core/utils/download-code-walkthrough.ts +3 -5
  216. package/src/core/utils/get-code-walkthrough-file-text.ts +2 -1
  217. package/src/core/utils/index.ts +35 -35
  218. package/src/core/utils/load-and-navigate.ts +1 -1
  219. package/src/core/utils/match-code-walkthrough-conditions.ts +1 -1
  220. package/src/core/utils/menu.ts +4 -3
  221. package/src/core/utils/toc.ts +1 -1
  222. package/src/core/utils/type-guards.ts +2 -2
  223. package/src/core/utils/urls.ts +2 -2
  224. package/src/icons/MoleculesIcon/MoleculesIcon.tsx +23 -0
  225. package/src/icons/NetworkIcon/NetworkIcon.tsx +31 -0
  226. package/src/icons/NotesIcon/NotesIcon.tsx +43 -0
  227. package/src/markdoc/components/Tabs/TabList.tsx +1 -0
@@ -1,28 +1,28 @@
1
- export * from '../../../core/hooks/__mocks__/use-theme-config';
2
- export * from '../../../core/hooks/__mocks__/use-theme-hooks';
3
- export * from '../../../core/hooks/__mocks__/use-mobile-menu';
4
- export * from '../../../core/hooks/__mocks__/use-controlled-state';
5
- export * from '../../../core/hooks/__mocks__/search/use-recent-searches';
6
- export * from '../../../core/hooks/__mocks__/search/use-suggested-pages';
7
- export * from '../../../core/hooks/__mocks__/search/use-search-filter';
8
- export * from '../../../core/hooks/menu/__mocks__/use-mobile-menu-items';
9
- export * from '../../../core/hooks/menu/use-collapse';
10
- export * from '../../../core/hooks/use-active-heading';
11
- export * from '../../../core/hooks/use-control';
12
- export * from '../../../core/hooks/use-dialog-hotkeys';
13
- export * from '../../../core/hooks/use-full-height';
14
- export * from '../../../core/hooks/use-modal-scroll-lock';
15
- export * from '../../../core/hooks/use-mount';
16
- export * from '../../../core/hooks/use-outside-click';
17
- export * from '../../../core/hooks/use-unmount';
18
- export * from '../../../core/hooks/use-color-switcher';
19
- export * from '../../../core/hooks/menu/use-nested-menu';
20
- export * from '../../../core/hooks/menu/use-menu-item-expanded';
21
- export * from '../../../core/hooks/menu/use-mobile-menu-levels';
22
- export * from '../../../core/hooks/feedback/use-report-dialog';
23
- export * from '../../../core/hooks/use-product-picker';
24
- export * from '../../../core/hooks/search/use-search-dialog';
25
- export * from '../../../core/hooks/use-language-picker';
26
- export * from '../../../core/hooks/__mocks__/use-element-size';
27
- export * from '../../../core/hooks/__mocks__/use-time-ago';
28
- export * from '../../../core/hooks/__mocks__/use-input-key-commands';
1
+ export * from './use-theme-config';
2
+ export * from './use-theme-hooks';
3
+ export * from './use-mobile-menu';
4
+ export * from './use-controlled-state';
5
+ export * from './search/use-recent-searches';
6
+ export * from './search/use-suggested-pages';
7
+ export * from './search/use-search-filter';
8
+ export * from '../menu/__mocks__/use-mobile-menu-items';
9
+ export * from '../menu/use-collapse';
10
+ export * from '../use-active-heading';
11
+ export * from '../use-control';
12
+ export * from '../use-dialog-hotkeys';
13
+ export * from '../use-full-height';
14
+ export * from '../use-modal-scroll-lock';
15
+ export * from '../use-mount';
16
+ export * from '../use-outside-click';
17
+ export * from '../use-unmount';
18
+ export * from '../use-color-switcher';
19
+ export * from '../menu/use-nested-menu';
20
+ export * from '../menu/use-menu-item-expanded';
21
+ export * from '../menu/use-mobile-menu-levels';
22
+ export * from '../feedback/use-report-dialog';
23
+ export * from '../use-product-picker';
24
+ export * from '../search/use-search-dialog';
25
+ export * from '../use-language-picker';
26
+ export * from './use-element-size';
27
+ export * from './use-time-ago';
28
+ export * from './use-input-key-commands';
@@ -14,32 +14,32 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("../../../core/hooks/__mocks__/use-theme-config"), exports);
18
- __exportStar(require("../../../core/hooks/__mocks__/use-theme-hooks"), exports);
19
- __exportStar(require("../../../core/hooks/__mocks__/use-mobile-menu"), exports);
20
- __exportStar(require("../../../core/hooks/__mocks__/use-controlled-state"), exports);
21
- __exportStar(require("../../../core/hooks/__mocks__/search/use-recent-searches"), exports);
22
- __exportStar(require("../../../core/hooks/__mocks__/search/use-suggested-pages"), exports);
23
- __exportStar(require("../../../core/hooks/__mocks__/search/use-search-filter"), exports);
24
- __exportStar(require("../../../core/hooks/menu/__mocks__/use-mobile-menu-items"), exports);
25
- __exportStar(require("../../../core/hooks/menu/use-collapse"), exports);
26
- __exportStar(require("../../../core/hooks/use-active-heading"), exports);
27
- __exportStar(require("../../../core/hooks/use-control"), exports);
28
- __exportStar(require("../../../core/hooks/use-dialog-hotkeys"), exports);
29
- __exportStar(require("../../../core/hooks/use-full-height"), exports);
30
- __exportStar(require("../../../core/hooks/use-modal-scroll-lock"), exports);
31
- __exportStar(require("../../../core/hooks/use-mount"), exports);
32
- __exportStar(require("../../../core/hooks/use-outside-click"), exports);
33
- __exportStar(require("../../../core/hooks/use-unmount"), exports);
34
- __exportStar(require("../../../core/hooks/use-color-switcher"), exports);
35
- __exportStar(require("../../../core/hooks/menu/use-nested-menu"), exports);
36
- __exportStar(require("../../../core/hooks/menu/use-menu-item-expanded"), exports);
37
- __exportStar(require("../../../core/hooks/menu/use-mobile-menu-levels"), exports);
38
- __exportStar(require("../../../core/hooks/feedback/use-report-dialog"), exports);
39
- __exportStar(require("../../../core/hooks/use-product-picker"), exports);
40
- __exportStar(require("../../../core/hooks/search/use-search-dialog"), exports);
41
- __exportStar(require("../../../core/hooks/use-language-picker"), exports);
42
- __exportStar(require("../../../core/hooks/__mocks__/use-element-size"), exports);
43
- __exportStar(require("../../../core/hooks/__mocks__/use-time-ago"), exports);
44
- __exportStar(require("../../../core/hooks/__mocks__/use-input-key-commands"), exports);
17
+ __exportStar(require("./use-theme-config"), exports);
18
+ __exportStar(require("./use-theme-hooks"), exports);
19
+ __exportStar(require("./use-mobile-menu"), exports);
20
+ __exportStar(require("./use-controlled-state"), exports);
21
+ __exportStar(require("./search/use-recent-searches"), exports);
22
+ __exportStar(require("./search/use-suggested-pages"), exports);
23
+ __exportStar(require("./search/use-search-filter"), exports);
24
+ __exportStar(require("../menu/__mocks__/use-mobile-menu-items"), exports);
25
+ __exportStar(require("../menu/use-collapse"), exports);
26
+ __exportStar(require("../use-active-heading"), exports);
27
+ __exportStar(require("../use-control"), exports);
28
+ __exportStar(require("../use-dialog-hotkeys"), exports);
29
+ __exportStar(require("../use-full-height"), exports);
30
+ __exportStar(require("../use-modal-scroll-lock"), exports);
31
+ __exportStar(require("../use-mount"), exports);
32
+ __exportStar(require("../use-outside-click"), exports);
33
+ __exportStar(require("../use-unmount"), exports);
34
+ __exportStar(require("../use-color-switcher"), exports);
35
+ __exportStar(require("../menu/use-nested-menu"), exports);
36
+ __exportStar(require("../menu/use-menu-item-expanded"), exports);
37
+ __exportStar(require("../menu/use-mobile-menu-levels"), exports);
38
+ __exportStar(require("../feedback/use-report-dialog"), exports);
39
+ __exportStar(require("../use-product-picker"), exports);
40
+ __exportStar(require("../search/use-search-dialog"), exports);
41
+ __exportStar(require("../use-language-picker"), exports);
42
+ __exportStar(require("./use-element-size"), exports);
43
+ __exportStar(require("./use-time-ago"), exports);
44
+ __exportStar(require("./use-input-key-commands"), exports);
45
45
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { UseCatalogEntitiesProps } from '../../../index.js';
1
+ import type { UseCatalogEntitiesProps } from '../../types/catalog';
2
2
  export declare function useCatalogEntities({ entitiesTypes, excludedEntities }: UseCatalogEntitiesProps): {
3
3
  initialFilter: string;
4
4
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useCatalogTableViewRow = useCatalogTableViewRow;
4
- const utils_1 = require("../../utils");
4
+ const urls_1 = require("../../utils/urls");
5
5
  function useCatalogTableViewRow({ entityKey, entityType, catalogConfig, entitiesCatalogConfig, }) {
6
6
  const getCatalogSpecificConfigByEntityTypeIncluded = () => {
7
7
  var _a;
@@ -14,7 +14,7 @@ function useCatalogTableViewRow({ entityKey, entityType, catalogConfig, entities
14
14
  });
15
15
  };
16
16
  const getEntityDetailsLink = () => {
17
- const pathPrefix = (0, utils_1.getPathPrefix)();
17
+ const pathPrefix = (0, urls_1.getPathPrefix)();
18
18
  const catalogSpecificConfig = getCatalogSpecificConfigByEntityTypeIncluded();
19
19
  if (!catalogSpecificConfig || !entitiesCatalogConfig) {
20
20
  return `${pathPrefix}/catalogs/${catalogConfig.slug}/entities/${entityKey}`;
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useCodePanel = useCodePanel;
4
4
  const react_1 = require("react");
5
- const contexts_1 = require("../../../core/contexts");
6
- const hooks_1 = require("../../../core/hooks");
5
+ const CodeWalkthroughControlsContext_1 = require("../../contexts/CodeWalkthrough/CodeWalkthroughControlsContext");
6
+ const CodeWalkthroughStepsContext_1 = require("../../contexts/CodeWalkthrough/CodeWalkthroughStepsContext");
7
+ const use_theme_hooks_1 = require("../use-theme-hooks");
7
8
  const ACTIVE_FILE_MOCK = {
8
9
  content: [],
9
10
  path: '',
@@ -12,9 +13,9 @@ const ACTIVE_FILE_MOCK = {
12
13
  language: '',
13
14
  };
14
15
  function useCodePanel(files) {
15
- const { activeStep } = (0, react_1.useContext)(contexts_1.CodeWalkthroughStepsContext);
16
- const { areConditionsMet, populateInputsWithValue } = (0, react_1.useContext)(contexts_1.CodeWalkthroughControlsStateContext);
17
- const { useCodeHighlight } = (0, hooks_1.useThemeHooks)();
16
+ const { activeStep } = (0, react_1.useContext)(CodeWalkthroughStepsContext_1.CodeWalkthroughStepsContext);
17
+ const { areConditionsMet, populateInputsWithValue } = (0, react_1.useContext)(CodeWalkthroughControlsContext_1.CodeWalkthroughControlsStateContext);
18
+ const { useCodeHighlight } = (0, use_theme_hooks_1.useThemeHooks)();
18
19
  const { highlight } = useCodeHighlight();
19
20
  const findFileIndexByName = (0, react_1.useCallback)((name) => {
20
21
  return files.findIndex((file) => file.path === name);
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useCodeWalkthroughControls = useCodeWalkthroughControls;
4
4
  const react_1 = require("react");
5
5
  const react_router_dom_1 = require("react-router-dom");
6
- const utils_1 = require("../../../core/utils");
6
+ const download_code_walkthrough_1 = require("../../utils/download-code-walkthrough");
7
+ const match_code_walkthrough_conditions_1 = require("../../utils/match-code-walkthrough-conditions");
8
+ const get_code_walkthrough_file_text_1 = require("../../utils/get-code-walkthrough-file-text");
9
+ const replace_inputs_with_value_1 = require("../../utils/replace-inputs-with-value");
7
10
  const defaultControlsValues = {
8
11
  input: '',
9
12
  toggle: false,
@@ -102,7 +105,7 @@ function useCodeWalkthroughControls(filters, inputs, toggles, enableDeepLink) {
102
105
  }
103
106
  };
104
107
  const walkthroughContext = (0, react_1.useMemo)(() => {
105
- const areConditionsMet = (conditions) => (0, utils_1.matchCodeWalkthroughConditions)(conditions, controlsState);
108
+ const areConditionsMet = (conditions) => (0, match_code_walkthrough_conditions_1.matchCodeWalkthroughConditions)(conditions, controlsState);
106
109
  // reset controls
107
110
  for (const control of Object.values(controlsState)) {
108
111
  control.render = true;
@@ -142,9 +145,9 @@ function useCodeWalkthroughControls(filters, inputs, toggles, enableDeepLink) {
142
145
  });
143
146
  }
144
147
  const inputsState = Object.fromEntries(Object.entries(controlsState).filter(([_, controlState]) => controlState.type === 'input'));
145
- const handleDownloadCode = (files) => (0, utils_1.downloadCodeWalkthrough)(files, controlsState, inputsState);
146
- const getFileText = (file) => (0, utils_1.getCodeWalkthroughFileText)(file, controlsState, inputsState);
147
- const populateInputsWithValue = (node) => (0, utils_1.replaceInputsWithValue)(node, inputsState);
148
+ const handleDownloadCode = (files) => (0, download_code_walkthrough_1.downloadCodeWalkthrough)(files, controlsState, inputsState);
149
+ const getFileText = (file) => (0, get_code_walkthrough_file_text_1.getCodeWalkthroughFileText)(file, controlsState, inputsState);
150
+ const populateInputsWithValue = (node) => (0, replace_inputs_with_value_1.replaceInputsWithValue)(node, inputsState);
148
151
  return {
149
152
  activeFilters,
150
153
  areConditionsMet,
@@ -1,5 +1,5 @@
1
1
  import type { CodeWalkthroughStepAttr } from '@redocly/config';
2
- import type { WalkthroughStepsState } from '../../../core/types';
2
+ import type { WalkthroughStepsState } from '../../types/code-walkthrough';
3
3
  type CodeWalkthroughStep = CodeWalkthroughStepAttr & {
4
4
  compRef?: HTMLElement;
5
5
  markerRef?: HTMLElement;
@@ -4,8 +4,8 @@ exports.useCodeWalkthroughSteps = useCodeWalkthroughSteps;
4
4
  exports.getGroupMarkers = getGroupMarkers;
5
5
  const react_1 = require("react");
6
6
  const react_router_dom_1 = require("react-router-dom");
7
- const utils_1 = require("../../../core/utils");
8
- const constants_1 = require("../../../core/constants");
7
+ const js_utils_1 = require("../../utils/js-utils");
8
+ const code_walkthrough_1 = require("../../constants/code-walkthrough");
9
9
  function useCodeWalkthroughSteps({ steps, enableDeepLink, root, }) {
10
10
  const location = (0, react_router_dom_1.useLocation)();
11
11
  const navigate = (0, react_router_dom_1.useNavigate)();
@@ -15,7 +15,7 @@ function useCodeWalkthroughSteps({ steps, enableDeepLink, root, }) {
15
15
  const lockObserver = (0, react_1.useRef)(false);
16
16
  // Track observed elements in case new observer needs to be created
17
17
  const observedElementsRef = (0, react_1.useRef)(new Set());
18
- const [activeStep, setActiveStep] = (0, react_1.useState)(enableDeepLink ? searchParams.get(constants_1.ACTIVE_STEP_QUERY_PARAM) : null);
18
+ const [activeStep, setActiveStep] = (0, react_1.useState)(enableDeepLink ? searchParams.get(code_walkthrough_1.ACTIVE_STEP_QUERY_PARAM) : null);
19
19
  const stepsMap = (0, react_1.useMemo)(() => {
20
20
  const map = new Map();
21
21
  steps.forEach((step, index) => {
@@ -26,7 +26,7 @@ function useCodeWalkthroughSteps({ steps, enableDeepLink, root, }) {
26
26
  }, [JSON.stringify(steps)]);
27
27
  const options = (0, react_1.useMemo)(() => {
28
28
  var _a, _b;
29
- if (!(0, utils_1.isBrowser)()) {
29
+ if (!(0, js_utils_1.isBrowser)()) {
30
30
  return null;
31
31
  }
32
32
  const filtersElementHeight = ((_a = filtersElementRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight) || 0;
@@ -97,7 +97,7 @@ function useCodeWalkthroughSteps({ steps, enableDeepLink, root, }) {
97
97
  return;
98
98
  }
99
99
  step.compRef = element;
100
- setVisibleSteps((prevSteps) => (0, utils_1.insertAt)(prevSteps, step.index, step));
100
+ setVisibleSteps((prevSteps) => (0, js_utils_1.insertAt)(prevSteps, step.index, step));
101
101
  }, [stepsMap]);
102
102
  const removeStep = (0, react_1.useCallback)((stepId) => {
103
103
  const step = stepsMap.get(stepId);
@@ -105,7 +105,7 @@ function useCodeWalkthroughSteps({ steps, enableDeepLink, root, }) {
105
105
  return;
106
106
  }
107
107
  step.compRef = undefined;
108
- setVisibleSteps((prevSteps) => (0, utils_1.removeElement)(prevSteps, step));
108
+ setVisibleSteps((prevSteps) => (0, js_utils_1.removeElement)(prevSteps, step));
109
109
  setActiveStep((prevStep) => (prevStep === stepId ? null : prevStep));
110
110
  }, [stepsMap]);
111
111
  const observerCallback = (0, react_1.useCallback)((entries) => {
@@ -128,7 +128,7 @@ function useCodeWalkthroughSteps({ steps, enableDeepLink, root, }) {
128
128
  continue;
129
129
  }
130
130
  const stepIndex = visibleSteps.findIndex((renderedStep) => renderedStep.id === stepId);
131
- const { next } = (0, utils_1.getAdjacentValues)(visibleSteps, stepIndex);
131
+ const { next } = (0, js_utils_1.getAdjacentValues)(visibleSteps, stepIndex);
132
132
  const intersectionAtTop = (rootBounds === null || rootBounds === void 0 ? void 0 : rootBounds.bottom) !== undefined && boundingClientRect.top < rootBounds.top;
133
133
  const stepGoesIn = isIntersecting;
134
134
  if (intersectionRatio > 0.8 && intersectionRatio < 1 && intersectionAtTop) {
@@ -183,10 +183,10 @@ function useCodeWalkthroughSteps({ steps, enableDeepLink, root, }) {
183
183
  }
184
184
  const newSearchParams = new URLSearchParams(Array.from(searchParams.entries()));
185
185
  if (activeStep) {
186
- newSearchParams.set(constants_1.ACTIVE_STEP_QUERY_PARAM, activeStep);
186
+ newSearchParams.set(code_walkthrough_1.ACTIVE_STEP_QUERY_PARAM, activeStep);
187
187
  }
188
188
  else {
189
- newSearchParams.delete(constants_1.ACTIVE_STEP_QUERY_PARAM);
189
+ newSearchParams.delete(code_walkthrough_1.ACTIVE_STEP_QUERY_PARAM);
190
190
  }
191
191
  const newSearch = newSearchParams.toString();
192
192
  if (newSearch === location.search.substring(1))
@@ -1,6 +1,6 @@
1
1
  import type { CodeWalkthroughFile, CodeWalkthroughStepAttr, CodeWalkthroughAttr } from '@redocly/config';
2
- import type { WalkthroughStepsState } from '../../../core/types';
3
- import { type WalkthroughControlsState } from '../../../core/hooks';
2
+ import type { WalkthroughStepsState } from '../../types/code-walkthrough';
3
+ import { type WalkthroughControlsState } from './use-code-walkthrough-controls';
4
4
  export type WalkthroughState = {
5
5
  stepsState: WalkthroughStepsState;
6
6
  controlsState: WalkthroughControlsState;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useCodeWalkthrough = useCodeWalkthrough;
4
- const hooks_1 = require("../../../core/hooks");
4
+ const use_code_walkthrough_controls_1 = require("./use-code-walkthrough-controls");
5
+ const use_code_walkthrough_steps_1 = require("./use-code-walkthrough-steps");
5
6
  function useCodeWalkthrough({ steps, attributes, root }) {
6
7
  const { filters, filesets, inputs, toggles, __idx } = attributes;
7
8
  /*
@@ -11,8 +12,8 @@ function useCodeWalkthrough({ steps, attributes, root }) {
11
12
  collisions/conflicts in the URL.
12
13
  */
13
14
  const enableDeepLink = __idx === 1;
14
- const stepsState = (0, hooks_1.useCodeWalkthroughSteps)({ steps, enableDeepLink, root });
15
- const controlsState = (0, hooks_1.useCodeWalkthroughControls)(filters, inputs, toggles, enableDeepLink);
15
+ const stepsState = (0, use_code_walkthrough_steps_1.useCodeWalkthroughSteps)({ steps, enableDeepLink, root });
16
+ const controlsState = (0, use_code_walkthrough_controls_1.useCodeWalkthroughControls)(filters, inputs, toggles, enableDeepLink);
16
17
  const files = filesets
17
18
  .filter((fileset) => controlsState.areConditionsMet(fileset))
18
19
  .flatMap((fileset) => fileset.files || []);
@@ -2,16 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useRenderableFiles = useRenderableFiles;
4
4
  const react_1 = require("react");
5
- const utils_1 = require("../../../core/utils");
5
+ const find_closest_common_directory_1 = require("../../utils/find-closest-common-directory");
6
+ const get_file_icon_1 = require("../../utils/get-file-icon");
7
+ const urls_1 = require("../../utils/urls");
6
8
  function useRenderableFiles(files) {
7
9
  return (0, react_1.useMemo)(function () {
8
10
  const filePaths = files.map(({ path }) => path);
9
- const rootDir = (0, utils_1.findClosestCommonDirectory)(filePaths);
11
+ const rootDir = (0, find_closest_common_directory_1.findClosestCommonDirectory)(filePaths);
10
12
  const renderableFiles = files.map((file) => {
11
13
  const FileIcon = getFileTypeIcon(file.basename);
12
14
  const parentFolder = file.path.split('/').slice(-2, -1)[0];
13
15
  const isNameDuplicate = files.some((_file) => file.basename === _file.basename && file.path !== _file.path);
14
- const inRootDir = file.path === `${(0, utils_1.removeLeadingSlash)(rootDir)}/${file.basename}`;
16
+ const inRootDir = file.path === `${(0, urls_1.removeLeadingSlash)(rootDir)}/${file.basename}`;
15
17
  return Object.assign(Object.assign({}, file), { FileIcon,
16
18
  inRootDir,
17
19
  parentFolder,
@@ -23,6 +25,6 @@ function useRenderableFiles(files) {
23
25
  function getFileTypeIcon(basename) {
24
26
  var _a;
25
27
  const extension = ((_a = basename.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '';
26
- return (0, utils_1.getFileIconByExt)(extension);
28
+ return (0, get_file_icon_1.getFileIconByExt)(extension);
27
29
  }
28
30
  //# sourceMappingURL=use-renderable-files.js.map
@@ -2,12 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useReportDialog = useReportDialog;
4
4
  const react_1 = require("react");
5
- const hooks_1 = require("../../../core/hooks");
5
+ const use_theme_hooks_1 = require("../use-theme-hooks");
6
+ const use_theme_config_1 = require("../use-theme-config");
6
7
  function useReportDialog() {
7
- const { codeSnippet: { report = {} } = {} } = (0, hooks_1.useThemeConfig)();
8
+ const { codeSnippet: { report = {} } = {} } = (0, use_theme_config_1.useThemeConfig)();
8
9
  const [isReportDialogShown, setIsReportDialogShown] = (0, react_1.useState)(false);
9
10
  const { tooltipText, buttonText, label } = report;
10
- const { useTranslate, useSubmitFeedback } = (0, hooks_1.useThemeHooks)();
11
+ const { useTranslate, useSubmitFeedback } = (0, use_theme_hooks_1.useThemeHooks)();
11
12
  const { translate } = useTranslate();
12
13
  const { submitFeedback } = useSubmitFeedback();
13
14
  const showReportDialog = () => {
@@ -1,42 +1,42 @@
1
- export * from '../../core/hooks/use-theme-config';
2
- export * from '../../core/hooks/use-control';
3
- export * from '../../core/hooks/use-mount';
4
- export * from '../../core/hooks/use-unmount';
5
- export * from '../../core/hooks/use-active-heading';
6
- export * from '../../core/hooks/use-active-section-id';
7
- export * from '../../core/hooks/use-dialog-hotkeys';
8
- export * from '../../core/hooks/use-full-height';
9
- export * from '../../core/hooks/use-navbar-height';
10
- export * from '../../core/hooks/use-outside-click';
11
- export * from '../../core/hooks/use-theme-hooks';
12
- export * from '../../core/hooks/use-mobile-menu';
13
- export * from '../../core/hooks/use-modal-scroll-lock';
14
- export * from '../../core/hooks/use-color-switcher';
15
- export * from '../../core/hooks/search/use-recent-searches';
16
- export * from '../../core/hooks/search/use-suggested-pages';
17
- export * from '../../core/hooks/menu/use-nested-menu';
18
- export * from '../../core/hooks/menu/use-menu-item-expanded';
19
- export * from '../../core/hooks/menu/use-mobile-menu-items';
20
- export * from '../../core/hooks/menu/use-mobile-menu-levels';
21
- export * from '../../core/hooks/menu/use-collapse';
22
- export * from '../../core/hooks/feedback/use-report-dialog';
23
- export * from '../../core/hooks/use-tabs';
24
- export * from '../../core/hooks/use-focus-trap';
25
- export * from '../../core/hooks/use-language-picker';
26
- export * from '../../core/hooks/use-product-picker';
27
- export * from '../../core/hooks/search/use-search-dialog';
28
- export * from '../../core/hooks/search/use-search-filter';
29
- export * from '../../core/hooks/use-controlled-state';
30
- export * from '../../core/hooks/use-codeblock-tabs-controls';
31
- export * from '../../core/hooks/code-walkthrough/use-code-walkthrough';
32
- export * from '../../core/hooks/code-walkthrough/use-code-walkthrough-steps';
33
- export * from '../../core/hooks/code-walkthrough/use-code-walkthrough-controls';
34
- export * from '../../core/hooks/code-walkthrough/use-code-panel';
35
- export * from '../../core/hooks/code-walkthrough/use-renderable-files';
36
- export * from '../../core/hooks/use-element-size';
37
- export * from '../../core/hooks/use-time-ago';
38
- export * from '../../core/hooks/use-input-key-commands';
39
- export * from '../../core/hooks/catalog/useCatalogEntities';
40
- export * from '../../core/hooks/use-active-page-version';
41
- export * from '../../core/hooks/use-page-versions';
42
- export * from '../../core/hooks/use-user-teams';
1
+ export * from './use-theme-config';
2
+ export * from './use-control';
3
+ export * from './use-mount';
4
+ export * from './use-unmount';
5
+ export * from './use-active-heading';
6
+ export * from './use-active-section-id';
7
+ export * from './use-dialog-hotkeys';
8
+ export * from './use-full-height';
9
+ export * from './use-navbar-height';
10
+ export * from './use-outside-click';
11
+ export * from './use-theme-hooks';
12
+ export * from './use-mobile-menu';
13
+ export * from './use-modal-scroll-lock';
14
+ export * from './use-color-switcher';
15
+ export * from './search/use-recent-searches';
16
+ export * from './search/use-suggested-pages';
17
+ export * from './menu/use-nested-menu';
18
+ export * from './menu/use-menu-item-expanded';
19
+ export * from './menu/use-mobile-menu-items';
20
+ export * from './menu/use-mobile-menu-levels';
21
+ export * from './menu/use-collapse';
22
+ export * from './feedback/use-report-dialog';
23
+ export * from './use-tabs';
24
+ export * from './use-focus-trap';
25
+ export * from './use-language-picker';
26
+ export * from './use-product-picker';
27
+ export * from './search/use-search-dialog';
28
+ export * from './search/use-search-filter';
29
+ export * from './use-controlled-state';
30
+ export * from './use-codeblock-tabs-controls';
31
+ export * from './code-walkthrough/use-code-walkthrough';
32
+ export * from './code-walkthrough/use-code-walkthrough-steps';
33
+ export * from './code-walkthrough/use-code-walkthrough-controls';
34
+ export * from './code-walkthrough/use-code-panel';
35
+ export * from './code-walkthrough/use-renderable-files';
36
+ export * from './use-element-size';
37
+ export * from './use-time-ago';
38
+ export * from './use-input-key-commands';
39
+ export * from './catalog/useCatalogEntities';
40
+ export * from './use-active-page-version';
41
+ export * from './use-page-versions';
42
+ export * from './use-user-teams';
@@ -14,46 +14,46 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("../../core/hooks/use-theme-config"), exports);
18
- __exportStar(require("../../core/hooks/use-control"), exports);
19
- __exportStar(require("../../core/hooks/use-mount"), exports);
20
- __exportStar(require("../../core/hooks/use-unmount"), exports);
21
- __exportStar(require("../../core/hooks/use-active-heading"), exports);
22
- __exportStar(require("../../core/hooks/use-active-section-id"), exports);
23
- __exportStar(require("../../core/hooks/use-dialog-hotkeys"), exports);
24
- __exportStar(require("../../core/hooks/use-full-height"), exports);
25
- __exportStar(require("../../core/hooks/use-navbar-height"), exports);
26
- __exportStar(require("../../core/hooks/use-outside-click"), exports);
27
- __exportStar(require("../../core/hooks/use-theme-hooks"), exports);
28
- __exportStar(require("../../core/hooks/use-mobile-menu"), exports);
29
- __exportStar(require("../../core/hooks/use-modal-scroll-lock"), exports);
30
- __exportStar(require("../../core/hooks/use-color-switcher"), exports);
31
- __exportStar(require("../../core/hooks/search/use-recent-searches"), exports);
32
- __exportStar(require("../../core/hooks/search/use-suggested-pages"), exports);
33
- __exportStar(require("../../core/hooks/menu/use-nested-menu"), exports);
34
- __exportStar(require("../../core/hooks/menu/use-menu-item-expanded"), exports);
35
- __exportStar(require("../../core/hooks/menu/use-mobile-menu-items"), exports);
36
- __exportStar(require("../../core/hooks/menu/use-mobile-menu-levels"), exports);
37
- __exportStar(require("../../core/hooks/menu/use-collapse"), exports);
38
- __exportStar(require("../../core/hooks/feedback/use-report-dialog"), exports);
39
- __exportStar(require("../../core/hooks/use-tabs"), exports);
40
- __exportStar(require("../../core/hooks/use-focus-trap"), exports);
41
- __exportStar(require("../../core/hooks/use-language-picker"), exports);
42
- __exportStar(require("../../core/hooks/use-product-picker"), exports);
43
- __exportStar(require("../../core/hooks/search/use-search-dialog"), exports);
44
- __exportStar(require("../../core/hooks/search/use-search-filter"), exports);
45
- __exportStar(require("../../core/hooks/use-controlled-state"), exports);
46
- __exportStar(require("../../core/hooks/use-codeblock-tabs-controls"), exports);
47
- __exportStar(require("../../core/hooks/code-walkthrough/use-code-walkthrough"), exports);
48
- __exportStar(require("../../core/hooks/code-walkthrough/use-code-walkthrough-steps"), exports);
49
- __exportStar(require("../../core/hooks/code-walkthrough/use-code-walkthrough-controls"), exports);
50
- __exportStar(require("../../core/hooks/code-walkthrough/use-code-panel"), exports);
51
- __exportStar(require("../../core/hooks/code-walkthrough/use-renderable-files"), exports);
52
- __exportStar(require("../../core/hooks/use-element-size"), exports);
53
- __exportStar(require("../../core/hooks/use-time-ago"), exports);
54
- __exportStar(require("../../core/hooks/use-input-key-commands"), exports);
55
- __exportStar(require("../../core/hooks/catalog/useCatalogEntities"), exports);
56
- __exportStar(require("../../core/hooks/use-active-page-version"), exports);
57
- __exportStar(require("../../core/hooks/use-page-versions"), exports);
58
- __exportStar(require("../../core/hooks/use-user-teams"), exports);
17
+ __exportStar(require("./use-theme-config"), exports);
18
+ __exportStar(require("./use-control"), exports);
19
+ __exportStar(require("./use-mount"), exports);
20
+ __exportStar(require("./use-unmount"), exports);
21
+ __exportStar(require("./use-active-heading"), exports);
22
+ __exportStar(require("./use-active-section-id"), exports);
23
+ __exportStar(require("./use-dialog-hotkeys"), exports);
24
+ __exportStar(require("./use-full-height"), exports);
25
+ __exportStar(require("./use-navbar-height"), exports);
26
+ __exportStar(require("./use-outside-click"), exports);
27
+ __exportStar(require("./use-theme-hooks"), exports);
28
+ __exportStar(require("./use-mobile-menu"), exports);
29
+ __exportStar(require("./use-modal-scroll-lock"), exports);
30
+ __exportStar(require("./use-color-switcher"), exports);
31
+ __exportStar(require("./search/use-recent-searches"), exports);
32
+ __exportStar(require("./search/use-suggested-pages"), exports);
33
+ __exportStar(require("./menu/use-nested-menu"), exports);
34
+ __exportStar(require("./menu/use-menu-item-expanded"), exports);
35
+ __exportStar(require("./menu/use-mobile-menu-items"), exports);
36
+ __exportStar(require("./menu/use-mobile-menu-levels"), exports);
37
+ __exportStar(require("./menu/use-collapse"), exports);
38
+ __exportStar(require("./feedback/use-report-dialog"), exports);
39
+ __exportStar(require("./use-tabs"), exports);
40
+ __exportStar(require("./use-focus-trap"), exports);
41
+ __exportStar(require("./use-language-picker"), exports);
42
+ __exportStar(require("./use-product-picker"), exports);
43
+ __exportStar(require("./search/use-search-dialog"), exports);
44
+ __exportStar(require("./search/use-search-filter"), exports);
45
+ __exportStar(require("./use-controlled-state"), exports);
46
+ __exportStar(require("./use-codeblock-tabs-controls"), exports);
47
+ __exportStar(require("./code-walkthrough/use-code-walkthrough"), exports);
48
+ __exportStar(require("./code-walkthrough/use-code-walkthrough-steps"), exports);
49
+ __exportStar(require("./code-walkthrough/use-code-walkthrough-controls"), exports);
50
+ __exportStar(require("./code-walkthrough/use-code-panel"), exports);
51
+ __exportStar(require("./code-walkthrough/use-renderable-files"), exports);
52
+ __exportStar(require("./use-element-size"), exports);
53
+ __exportStar(require("./use-time-ago"), exports);
54
+ __exportStar(require("./use-input-key-commands"), exports);
55
+ __exportStar(require("./catalog/useCatalogEntities"), exports);
56
+ __exportStar(require("./use-active-page-version"), exports);
57
+ __exportStar(require("./use-page-versions"), exports);
58
+ __exportStar(require("./use-user-teams"), exports);
59
59
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  import type { Dispatch, SetStateAction } from 'react';
2
- import type { ItemState } from '../../../core/types';
2
+ import type { ItemState } from '../../types/sidebar';
3
3
  export declare function useMenuItemExpanded(item: ItemState): [boolean, Dispatch<SetStateAction<boolean>>];
@@ -1,4 +1,4 @@
1
- import { MobileMenuType } from '../../../core/constants';
1
+ import { MobileMenuType } from '../../constants/common';
2
2
  export declare const useMobileMenuItems: (menuType: MobileMenuType) => {
3
3
  items: import("../..").ItemState[];
4
4
  popDrilldownState: () => void;