@redocly/theme 0.69.0 → 0.70.0-next.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 (181) hide show
  1. package/lib/components/Buttons/DownloadButton.js +13 -3
  2. package/lib/components/Catalog/Catalog.d.ts +2 -2
  3. package/lib/components/Catalog/CatalogActionsRow.d.ts +3 -2
  4. package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +2 -2
  5. package/lib/components/Catalog/CatalogEntities.d.ts +2 -2
  6. package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +1 -1
  7. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.d.ts +2 -2
  8. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.js +1 -2
  9. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton.d.ts +3 -1
  10. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton.js +45 -23
  11. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar.js +67 -33
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityRevisionItem.d.ts +3 -1
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityRevisionItem.js +15 -3
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.d.ts +3 -1
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.js +48 -57
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +1 -1
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +1 -1
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +1 -1
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.d.ts +1 -1
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +2 -2
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +1 -1
  22. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +2 -2
  23. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +2 -2
  24. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +2 -2
  25. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.d.ts +2 -2
  26. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +2 -2
  27. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +2 -2
  28. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +1 -2
  29. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +2 -2
  30. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +2 -2
  31. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.d.ts +1 -1
  32. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +2 -3
  33. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +1 -1
  34. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +3 -4
  35. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +3 -4
  36. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +1 -1
  37. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +1 -2
  38. package/lib/components/Catalog/CatalogEntityIcon.d.ts +1 -1
  39. package/lib/components/Catalog/CatalogEntityTypeTag.d.ts +2 -2
  40. package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.d.ts +1 -1
  41. package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.js +1 -2
  42. package/lib/components/Catalog/CatalogHighlight.d.ts +2 -1
  43. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanel.d.ts +2 -1
  44. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelHeader.d.ts +1 -1
  45. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelOverlay.d.ts +2 -1
  46. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.d.ts +2 -2
  47. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.d.ts +2 -2
  48. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarFiltersButton.d.ts +1 -1
  49. package/lib/components/Catalog/CatalogSelector.d.ts +3 -2
  50. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +1 -1
  51. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +1 -1
  52. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +2 -1
  53. package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +2 -1
  54. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +1 -1
  55. package/lib/components/Catalog/CatalogTags.d.ts +2 -2
  56. package/lib/components/Catalog/CatalogViewModeToggle.d.ts +1 -1
  57. package/lib/components/Catalog/variables.js +24 -33
  58. package/lib/components/CatalogClassic/CatalogClassicInfoBlock.d.ts +1 -1
  59. package/lib/components/CatalogClassic/CatalogClassicInfoBlock.js +1 -2
  60. package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.d.ts +1 -1
  61. package/lib/components/CodeBlock/CodeBlockControls.d.ts +1 -1
  62. package/lib/components/Dropdown/Dropdown.js +7 -1
  63. package/lib/components/Filter/FilterOptionLabel.d.ts +1 -1
  64. package/lib/components/LoadMore/LoadMore.d.ts +1 -1
  65. package/lib/components/MCP/McpConnectionTabs.js +2 -2
  66. package/lib/components/PageActions/PageActions.d.ts +1 -1
  67. package/lib/components/Search/SearchAiDialog.d.ts +1 -1
  68. package/lib/components/Search/SearchAiMessage.d.ts +1 -2
  69. package/lib/components/Search/SearchAiMessage.js +8 -10
  70. package/lib/components/Search/SearchAiResponse.d.ts +1 -1
  71. package/lib/components/Search/SearchGroups.d.ts +1 -1
  72. package/lib/core/constants/markdown.d.ts +2 -0
  73. package/lib/core/constants/markdown.js +3 -1
  74. package/lib/core/hooks/catalog/use-catalog-entity-schema.d.ts +1 -1
  75. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.d.ts +1 -1
  76. package/lib/core/hooks/catalog/use-graph.d.ts +3 -3
  77. package/lib/core/hooks/use-active-section-id.js +6 -0
  78. package/lib/core/hooks/use-element-size.d.ts +1 -1
  79. package/lib/core/types/catalog.d.ts +2 -3
  80. package/lib/core/types/common.d.ts +1 -1
  81. package/lib/core/types/hooks.d.ts +4 -7
  82. package/lib/core/utils/mcp.d.ts +0 -1
  83. package/lib/core/utils/mcp.js +0 -13
  84. package/lib/core/utils/menu.d.ts +2 -2
  85. package/lib/core/utils/urls.js +1 -3
  86. package/lib/ext/use-configure-replay.d.ts +1 -1
  87. package/lib/layouts/OIDCForbidden.js +1 -1
  88. package/lib/markdoc/components/CodeWalkthrough/CodePanelPreview.d.ts +1 -2
  89. package/lib/markdoc/components/Diagram/Diagram.d.ts +1 -1
  90. package/lib/markdoc/components/Diagram/Diagram.js +1 -2
  91. package/lib/markdoc/components/Tabs/Tab.d.ts +1 -1
  92. package/lib/markdoc/components/Tabs/TabList.d.ts +1 -1
  93. package/lib/markdoc/tags/code-walkthrough.d.ts +1 -1
  94. package/lib/markdoc/tags/markdoc-example.js +34 -22
  95. package/package.json +2 -2
  96. package/src/components/Buttons/DownloadButton.tsx +16 -8
  97. package/src/components/Catalog/Catalog.tsx +4 -4
  98. package/src/components/Catalog/CatalogActionsRow.tsx +3 -2
  99. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +3 -2
  100. package/src/components/Catalog/CatalogEntities.tsx +3 -2
  101. package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +2 -1
  102. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +6 -2
  103. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.tsx +4 -5
  104. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton.tsx +56 -35
  105. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar.tsx +80 -42
  106. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityRevisionItem.tsx +18 -2
  107. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.tsx +61 -75
  108. package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +2 -1
  109. package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +1 -1
  110. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -1
  111. package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +1 -1
  112. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +3 -2
  113. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +2 -1
  114. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +3 -2
  115. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +3 -2
  116. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +3 -2
  117. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +3 -2
  118. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +3 -2
  119. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +3 -4
  120. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +3 -2
  121. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.tsx +3 -2
  122. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +2 -1
  123. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +7 -4
  124. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +2 -1
  125. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +7 -4
  126. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +3 -4
  127. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +3 -2
  128. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +1 -2
  129. package/src/components/Catalog/CatalogEntityIcon.tsx +3 -2
  130. package/src/components/Catalog/CatalogEntityTypeTag.tsx +3 -2
  131. package/src/components/Catalog/CatalogFilter/CatalogFilterContent.tsx +2 -4
  132. package/src/components/Catalog/CatalogHighlight.tsx +2 -1
  133. package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanel.tsx +2 -1
  134. package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelHeader.tsx +2 -1
  135. package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelOverlay.tsx +2 -1
  136. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.tsx +3 -2
  137. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.tsx +3 -2
  138. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarFiltersButton.tsx +2 -1
  139. package/src/components/Catalog/CatalogSelector.tsx +3 -2
  140. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +1 -1
  141. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +1 -1
  142. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +2 -1
  143. package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +2 -1
  144. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +1 -1
  145. package/src/components/Catalog/CatalogTags.tsx +4 -2
  146. package/src/components/Catalog/CatalogViewModeToggle.tsx +1 -1
  147. package/src/components/Catalog/variables.ts +24 -33
  148. package/src/components/CatalogClassic/CatalogClassicInfoBlock.tsx +2 -5
  149. package/src/components/CatalogClassic/CatalogClassicVirtualizedGroups.tsx +1 -1
  150. package/src/components/CodeBlock/CodeBlockControls.tsx +2 -1
  151. package/src/components/Dropdown/Dropdown.tsx +5 -1
  152. package/src/components/Filter/FilterOptionLabel.tsx +1 -1
  153. package/src/components/LoadMore/LoadMore.tsx +2 -1
  154. package/src/components/MCP/McpConnectionTabs.tsx +3 -4
  155. package/src/components/PageActions/PageActions.tsx +2 -1
  156. package/src/components/Search/SearchAiDialog.tsx +1 -1
  157. package/src/components/Search/SearchAiMessage.tsx +3 -6
  158. package/src/components/Search/SearchAiResponse.tsx +2 -4
  159. package/src/components/Search/SearchGroups.tsx +1 -5
  160. package/src/core/constants/markdown.ts +4 -0
  161. package/src/core/hooks/catalog/use-catalog-entity-schema.ts +1 -1
  162. package/src/core/hooks/catalog/use-catalog-table-header-cell-actions.ts +1 -1
  163. package/src/core/hooks/catalog/use-graph.ts +4 -4
  164. package/src/core/hooks/menu/__mocks__/use-mobile-menu-items.ts +1 -1
  165. package/src/core/hooks/use-active-section-id.ts +8 -0
  166. package/src/core/hooks/use-element-size.ts +2 -1
  167. package/src/core/types/catalog.ts +7 -3
  168. package/src/core/types/common.ts +1 -1
  169. package/src/core/types/hooks.ts +15 -13
  170. package/src/core/utils/mcp.ts +0 -17
  171. package/src/core/utils/menu.ts +2 -2
  172. package/src/core/utils/urls.ts +1 -3
  173. package/src/ext/use-configure-replay.ts +3 -3
  174. package/src/layouts/OIDCForbidden.tsx +1 -1
  175. package/src/markdoc/components/CodeWalkthrough/CodePanelPreview.tsx +2 -2
  176. package/src/markdoc/components/CodeWalkthrough/CodeWalkthrough.tsx +2 -4
  177. package/src/markdoc/components/Diagram/Diagram.tsx +2 -5
  178. package/src/markdoc/components/Tabs/Tab.tsx +1 -1
  179. package/src/markdoc/components/Tabs/TabList.tsx +1 -1
  180. package/src/markdoc/tags/code-walkthrough.ts +2 -1
  181. package/src/markdoc/tags/markdoc-example.ts +45 -28
@@ -473,33 +473,31 @@ exports.catalog = (0, styled_components_1.css) `
473
473
  * @tokens Catalog history button
474
474
  */
475
475
  --catalog-history-button-width: 252px;
476
- --catalog-history-button-item-width: 244px;
477
476
  --catalog-history-separator-border-color: var(--border-color-secondary);
478
- --catalog-history-separator-margin-bottom: var(--spacing-sm);
477
+ --catalog-history-separator-margin: var(--spacing-sm) 0;
479
478
  --catalog-history-item-padding: var(--spacing-xxs);
480
- --catalog-history-item-margin-bottom: calc(var(--spacing-xxs) * -1);
481
- --catalog-history-item-gap: var(--spacing-xs);
482
- --catalog-history-item-border-radius: var(--menu-item-label-border-radius);
479
+ --catalog-history-item-gap: var(--spacing-xxs);
480
+ --catalog-history-item-border-radius: var(--border-radius-lg);
483
481
  --catalog-history-item-bg-color-hover: var(--menu-item-bg-color-hover);
484
482
  --catalog-history-icon-size: 16px;
485
- --catalog-history-content-max-width: 212px;
483
+ --catalog-history-icon-gap: 2px;
486
484
  --catalog-history-text-font-family: var(--font-family-base);
487
485
  --catalog-history-text-font-size: var(--font-size-base);
488
486
  --catalog-history-text-font-weight: var(--font-weight-regular);
489
487
  --catalog-history-text-line-height: var(--line-height-base);
490
- --catalog-history-text-color: var(--text-color-primary);
488
+ --catalog-history-text-color: var(--menu-content-color);
491
489
  --catalog-history-pill-gap: var(--spacing-xxs);
490
+ --catalog-history-pill-height: 22px;
492
491
  --catalog-history-pill-padding-vertical: 1px;
493
492
  --catalog-history-pill-padding-horizontal: var(--spacing-xs);
494
493
  --catalog-history-pill-border-color: var(--border-color-primary);
495
- --catalog-history-pill-border-radius: 12px;
496
- --catalog-history-pill-icon-size: 16px;
494
+ --catalog-history-pill-border-radius: var(--border-radius-xl);
495
+ --catalog-history-pill-icon-size: 14px;
497
496
  --catalog-history-pill-icon-color: var(--color-green-8);
498
497
  --catalog-history-pill-font-family: var(--font-family-base);
499
498
  --catalog-history-pill-font-size: var(--font-size-base);
500
499
  --catalog-history-pill-line-height: var(--line-height-base);
501
500
  --catalog-history-pill-text-color: var(--text-color-primary);
502
- --catalog-history-pill-min-width: calc(100% - 118px - var(--catalog-history-item-gap));
503
501
  // @tokens End
504
502
 
505
503
  /**
@@ -508,50 +506,44 @@ exports.catalog = (0, styled_components_1.css) `
508
506
  --catalog-history-sidebar-width: 320px;
509
507
  --catalog-history-sidebar-bg-color: var(--sidebar-bg-color);
510
508
  --catalog-history-sidebar-border-color: var(--border-color-secondary);
509
+ --catalog-history-sidebar-padding: var(--spacing-base) var(--spacing-base) 0;
510
+ --catalog-history-sidebar-divider-margin: var(--spacing-sm) 0 0;
511
511
 
512
- --catalog-history-sidebar-header-padding: var(--spacing-base) var(--spacing-sm) var(--spacing-base);
512
+ --catalog-history-sidebar-header-padding: var(--spacing-xxs);
513
513
  --catalog-history-sidebar-header-font-family: var(--font-family-base);
514
514
  --catalog-history-sidebar-header-font-size: var(--font-size-base);
515
515
  --catalog-history-sidebar-header-font-weight: var(--font-weight-regular);
516
516
  --catalog-history-sidebar-header-line-height: var(--line-height-base);
517
517
  --catalog-history-sidebar-header-letter-spacing: 0;
518
- --catalog-history-sidebar-header-color: var(--text-color-primary);
518
+ --catalog-history-sidebar-header-color: var(--menu-content-color);
519
519
 
520
- --catalog-history-sidebar-close-button-size: 32px;
521
- --catalog-history-sidebar-close-button-border-radius: var(--border-radius-md);
520
+ --catalog-history-sidebar-close-button-size: 22px;
521
+ --catalog-history-sidebar-close-button-border-radius: var(--border-radius-xl);
522
522
  --catalog-history-sidebar-close-button-bg-color-hover: var(--color-hover-base);
523
523
  --catalog-history-sidebar-close-icon-color: var(--text-color-primary);
524
524
 
525
- --catalog-history-sidebar-content-padding: 0 var(--spacing-sm);
526
- --catalog-history-sidebar-content-margin-top: calc(var(--spacing-xxs) * -1);
527
-
528
- --catalog-history-sidebar-version-header-padding: var(--spacing-xs) var(--spacing-xxs);
525
+ --catalog-history-sidebar-version-header-padding: var(--spacing-xxs);
529
526
  --catalog-history-sidebar-version-header-border-radius: var(--border-radius-md);
530
527
  --catalog-history-sidebar-version-header-bg-color-hover: var(--color-hover-base);
528
+ --catalog-history-sidebar-version-header-bg-color-current: var(--menu-item-bg-color-active);
531
529
 
532
- --catalog-history-sidebar-version-icon-size: 32px;
533
- --catalog-history-sidebar-version-icon-color: var(--text-color-secondary);
530
+ --catalog-history-sidebar-version-icon-size: 20px;
531
+ --catalog-history-sidebar-version-icon-color: var(--text-color-primary);
534
532
  --catalog-history-sidebar-version-icon-color-current: var(--color-static-white);
535
- --catalog-history-sidebar-version-icon-margin-right: var(--spacing-xs);
533
+ --catalog-history-sidebar-version-icon-margin-right: var(--spacing-xxs);
536
534
  --catalog-history-sidebar-chevron-icon-color: var(--text-color-secondary);
537
- --catalog-history-sidebar-version-info-gap: 2px;
538
535
 
539
536
  --catalog-history-sidebar-version-title-font-family: var(--font-family-base);
540
537
  --catalog-history-sidebar-version-title-font-size: var(--font-size-base);
541
- --catalog-history-sidebar-version-title-font-weight: var(--font-weight-medium);
538
+ --catalog-history-sidebar-version-title-font-weight: var(--font-weight-regular);
542
539
  --catalog-history-sidebar-version-title-line-height: var(--line-height-base);
543
- --catalog-history-sidebar-version-title-color: var(--color-warm-grey-7);
544
-
545
- --catalog-history-sidebar-version-date-font-family: var(--font-family-base);
546
- --catalog-history-sidebar-version-date-font-size: var(--font-size-sm);
547
- --catalog-history-sidebar-version-date-font-weight: var(--font-weight-regular);
548
- --catalog-history-sidebar-version-date-line-height: var(--line-height-sm);
549
- --catalog-history-sidebar-version-date-color: var(--color-warm-grey-7);
540
+ --catalog-history-sidebar-version-title-color: var(--menu-content-color);
550
541
 
551
- --catalog-history-sidebar-revisions-padding-left: 40px;
542
+ --catalog-history-sidebar-revisions-padding-left: 28px;
552
543
  --catalog-history-sidebar-revisions-padding-bottom: var(--spacing-base);
544
+ --catalog-history-sidebar-revision-line-left: 14px;
553
545
 
554
- --catalog-history-sidebar-revision-item-padding: var(--spacing-xs) var(--spacing-sm);
546
+ --catalog-history-sidebar-revision-item-padding: var(--spacing-xxs) var(--spacing-sm);
555
547
  --catalog-history-sidebar-revision-item-border-radius: var(--border-radius-md);
556
548
  --catalog-history-sidebar-revision-item-bg-color-hover: var(--bg-color-hover);
557
549
 
@@ -575,7 +567,6 @@ exports.catalog = (0, styled_components_1.css) `
575
567
  /**
576
568
  * @tokens Catalog history tag border radius
577
569
  */
578
- --catalog-history-sidebar-version-tag-border-radius: var(--border-radius-xl);
579
570
  --catalog-history-sidebar-revision-tag-border-radius: var(--border-radius-xl);
580
571
  // @tokens End
581
572
 
@@ -1,4 +1,4 @@
1
- import type { JSX } from 'react';
1
+ import { type JSX } from 'react';
2
2
  export type CatalogClassicInfoBlockProps = {
3
3
  metadata?: {
4
4
  scorecardLevel?: string;
@@ -10,7 +10,6 @@ const hooks_1 = require("../../core/hooks");
10
10
  const utils_1 = require("../../core/utils");
11
11
  const Tag_1 = require("../../components/Tag/Tag");
12
12
  const Link_1 = require("../../components/Link/Link");
13
- const utils_2 = require("../../core/utils");
14
13
  function CatalogClassicInfoBlock(props) {
15
14
  var _a, _b, _c, _d;
16
15
  const scorecardBadge = ((_a = props.metadata) === null || _a === void 0 ? void 0 : _a.scorecardLevel) ? (react_1.default.createElement(ScorecardBadge, { level: props.metadata.scorecardLevel, slug: (_b = props.metadata) === null || _b === void 0 ? void 0 : _b.scoreCardSlug, colorVariable: (0, utils_1.getScorecardColorVariable)(((_c = props.metadata) === null || _c === void 0 ? void 0 : _c.scorecardLevelIdx) || 0, Object.keys(((_d = props.metadata) === null || _d === void 0 ? void 0 : _d.scorecardLevels) || {}).length) })) : null;
@@ -22,7 +21,7 @@ function ScorecardBadge(props) {
22
21
  const { useTelemetry } = (0, hooks_1.useThemeHooks)();
23
22
  const telemetry = useTelemetry();
24
23
  return (react_1.default.createElement(Link_1.Link, { to: slug },
25
- react_1.default.createElement(Tag_1.Tag, { onClick: () => telemetry.sendScorecardLinkClickedMessage([(0, utils_2.getBaseDataAttributes)('scorecardLink', 'tag')]), withStatusDot: true, statusDotColor: `var(${colorVariable})` }, level)));
24
+ react_1.default.createElement(Tag_1.Tag, { onClick: () => telemetry.sendScorecardLinkClickedMessage([(0, utils_1.getBaseDataAttributes)('scorecardLink', 'tag')]), withStatusDot: true, statusDotColor: `var(${colorVariable})` }, level)));
26
25
  }
27
26
  const CatalogInfoBlockWrapper = styled_components_1.default.div `
28
27
  position: relative;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CatalogItem, ResolvedFilter } from '../../core/types';
2
+ import type { CatalogItem, ResolvedFilter } from '../../core/types';
3
3
  export type Group = {
4
4
  title: string;
5
5
  items: CatalogItem[];
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { JSX } from 'react';
3
3
  import type { CodeBlockItems } from '../../components/CodeBlock/CodeBlock';
4
- import { ReportButtonProps } from '../../core/hooks';
4
+ import type { ReportButtonProps } from '../../core/hooks';
5
5
  export type CodeBlockControlsProps = {
6
6
  children?: React.ReactNode;
7
7
  className?: string;
@@ -77,12 +77,18 @@ exports.Dropdown = (0, react_1.forwardRef)(({ children, className, active, trigg
77
77
  }
78
78
  };
79
79
  const updateMenuPosition = (0, react_1.useCallback)(() => {
80
+ var _a;
81
+ var _b;
80
82
  const wrapper = wrapperRef.current;
81
83
  if (!wrapper)
82
84
  return;
83
85
  const rect = wrapper.getBoundingClientRect();
86
+ const menuHeight = (_b = (_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) !== null && _b !== void 0 ? _b : 0;
87
+ const fitsBelow = rect.bottom + menuHeight <= window.innerHeight;
88
+ const fitsAbove = rect.top - menuHeight >= 0;
89
+ const openUpward = placement === 'top' ? fitsAbove || !fitsBelow : !fitsBelow && fitsAbove;
84
90
  const style = { minWidth: rect.width };
85
- if (placement === 'top') {
91
+ if (openUpward) {
86
92
  style.bottom = window.innerHeight - rect.top;
87
93
  }
88
94
  else {
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren, JSX } from 'react';
1
+ import { type JSX, type PropsWithChildren } from 'react';
2
2
  export type FilterOptionLabelProps = PropsWithChildren<{
3
3
  className?: string;
4
4
  }>;
@@ -1,4 +1,4 @@
1
- import { JSX } from 'react';
1
+ import type { JSX } from 'react';
2
2
  export declare function LoadMore({ icon, onClick, disabled, blinking, label, }: {
3
3
  icon: JSX.Element;
4
4
  onClick: () => void;
@@ -113,8 +113,8 @@ function renderTabContent(option, connection, translate, snippetHeader) {
113
113
  {
114
114
  headline: translate('page.mcpNotAllowed.snippets.claudeDesktop.headline', 'Claude Desktop'),
115
115
  content: (react_1.default.createElement(react_1.default.Fragment, null,
116
- react_1.default.createElement(TabHint, null, translate('page.mcpNotAllowed.snippets.claudeDesktop.instruction', 'In Claude Desktop, open Settings → Developer → Edit Config, add this to the configuration file, and restart Claude Desktop:')),
117
- react_1.default.createElement(CodeBlock_1.CodeBlock, { lang: "json", source: (0, utils_1.generateClaudeDesktopConfig)(connection), header: snippetHeader(option, 'claude-desktop') }))),
116
+ react_1.default.createElement(TabHint, null, translate('page.mcpNotAllowed.snippets.claudeDesktop.instruction', 'Open Customize → Connectors → Add custom connector and paste this server URL:')),
117
+ react_1.default.createElement(CodeBlock_1.CodeBlock, { lang: "text", source: connection.url, header: snippetHeader(option, 'claude-desktop') }))),
118
118
  },
119
119
  ]);
120
120
  case 'chatgpt':
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from 'react';
2
- import { PageActionType } from '../../core/hooks';
2
+ import type { PageActionType } from '../../core/hooks';
3
3
  type PageActionProps = {
4
4
  pageSlug?: string;
5
5
  mcpUrl?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { JSX } from 'react';
3
3
  import type { AiSearchConversationItem, SearchAiMessageResource, ToolCall, ContentSegment } from '../../core/types';
4
- import { AiSearchError } from '../../core/constants';
4
+ import type { AiSearchError } from '../../core/constants';
5
5
  export type SearchAiDialogProps = {
6
6
  response: string | undefined;
7
7
  isGeneratingResponse: boolean;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import type { JSX } from 'react';
1
+ import React, { type JSX } from 'react';
3
2
  import { FeedbackType, type SearchAiMessageResource, type ToolCall, type ContentSegment } from '../../core/types';
4
3
  import { AiSearchConversationRole } from '../../core/constants';
5
4
  export type SearchAiMessageProps = {
@@ -41,10 +41,8 @@ const react_1 = __importStar(require("react"));
41
41
  const styled_components_1 = __importDefault(require("styled-components"));
42
42
  const types_1 = require("../../core/types");
43
43
  const constants_1 = require("../../core/constants");
44
- const types_2 = require("../../core/types");
45
44
  const Link_1 = require("../../components/Link/Link");
46
45
  const Tag_1 = require("../../components/Tag/Tag");
47
- const constants_2 = require("../../core/constants");
48
46
  const hooks_1 = require("../../core/hooks");
49
47
  const Markdown_1 = require("../../components/Markdown/Markdown");
50
48
  const DocumentIcon_1 = require("../../icons/DocumentIcon/DocumentIcon");
@@ -70,7 +68,7 @@ function getExecuteDescription(args) {
70
68
  }
71
69
  function getToolCallDisplayText(toolCall) {
72
70
  var _a;
73
- if (toolCall.name === types_2.ToolCallName.Execute) {
71
+ if (toolCall.name === types_1.ToolCallName.Execute) {
74
72
  const description = getExecuteDescription(toolCall.args);
75
73
  if (description) {
76
74
  return { inProgressText: description, completedText: description };
@@ -123,8 +121,8 @@ function SearchAiMessageComponent({ role, content, isThinking, resources, classN
123
121
  }
124
122
  };
125
123
  return (react_1.default.createElement(SearchAiMessageWrapper, { "data-component-name": "Search/SearchAiMessage", $role: role, className: className, "data-testid": "search-ai-message" },
126
- role === constants_2.AiSearchConversationRole.ASSISTANT && (react_1.default.createElement(AiStarsIcon_1.AiStarsIcon, { size: "32px", background: "var(--search-ai-icon-bg-color)", borderRadius: "var(--border-radius-lg)", color: "var(--search-ai-icon-color)", margin: "0 var(--spacing-xs) 0 0" })),
127
- react_1.default.createElement(MessageContentWrapper, null, role === constants_2.AiSearchConversationRole.ASSISTANT ? (react_1.default.createElement(react_1.default.Fragment, null,
124
+ role === constants_1.AiSearchConversationRole.ASSISTANT && (react_1.default.createElement(AiStarsIcon_1.AiStarsIcon, { size: "32px", background: "var(--search-ai-icon-bg-color)", borderRadius: "var(--border-radius-lg)", color: "var(--search-ai-icon-color)", margin: "0 var(--spacing-xs) 0 0" })),
125
+ react_1.default.createElement(MessageContentWrapper, null, role === constants_1.AiSearchConversationRole.ASSISTANT ? (react_1.default.createElement(react_1.default.Fragment, null,
128
126
  react_1.default.createElement(MessageWrapper, { $role: role },
129
127
  contentSegments.map((segment, index) => {
130
128
  if (segment.type === 'tool') {
@@ -189,7 +187,7 @@ const SearchAiMessageWrapper = styled_components_1.default.div `
189
187
  flex-direction: row;
190
188
  align-items: flex-start;
191
189
  width: 100%;
192
- justify-content: ${({ $role }) => $role === constants_2.AiSearchConversationRole.USER ? 'flex-end' : 'flex-start'};
190
+ justify-content: ${({ $role }) => $role === constants_1.AiSearchConversationRole.USER ? 'flex-end' : 'flex-start'};
193
191
  `;
194
192
  const MessageContentWrapper = styled_components_1.default.div `
195
193
  display: flex;
@@ -215,7 +213,7 @@ const ResponseText = (0, styled_components_1.default)(Markdown_1.Markdown) `
215
213
  }
216
214
  `;
217
215
  const MessageWrapper = styled_components_1.default.div `
218
- padding: ${({ $role }) => $role === constants_2.AiSearchConversationRole.USER
216
+ padding: ${({ $role }) => $role === constants_1.AiSearchConversationRole.USER
219
217
  ? 'var(--spacing-sm)'
220
218
  : 'var(--spacing-sm) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)'};
221
219
  border-radius: var(--border-radius-xl);
@@ -223,11 +221,11 @@ const MessageWrapper = styled_components_1.default.div `
223
221
  max-width: 100%;
224
222
  word-wrap: break-word;
225
223
  white-space: pre-wrap;
226
- background-color: ${({ $role }) => $role === constants_2.AiSearchConversationRole.USER
224
+ background-color: ${({ $role }) => $role === constants_1.AiSearchConversationRole.USER
227
225
  ? 'var(--search-ai-user-bg-color)'
228
226
  : 'var(--search-ai-assistant-bg-color)'};
229
- border: ${({ $role }) => $role === constants_2.AiSearchConversationRole.USER ? 'none' : 'var(--search-ai-assistant-border)'};
230
- color: ${({ $role }) => $role === constants_2.AiSearchConversationRole.USER
227
+ border: ${({ $role }) => $role === constants_1.AiSearchConversationRole.USER ? 'none' : 'var(--search-ai-assistant-border)'};
228
+ color: ${({ $role }) => $role === constants_1.AiSearchConversationRole.USER
231
229
  ? 'var(--search-ai-user-text-color)'
232
230
  : 'var(--search-ai-assistant-text-color)'};
233
231
  `;
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from 'react';
2
- import { AiSearchError } from '../../core/constants';
2
+ import type { AiSearchError } from '../../core/constants';
3
3
  export type SearchAiResponseProps = {
4
4
  question: string;
5
5
  isGeneratingResponse: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { JSX } from 'react';
2
- import { type SearchFacet, type SearchFilterItem } from '../../core/types';
2
+ import type { SearchFacet, SearchFilterItem } from '../../core/types';
3
3
  type SearchGroupsProps = {
4
4
  facets: SearchFacet[];
5
5
  searchFilter: SearchFilterItem[];
@@ -1 +1,3 @@
1
1
  export declare const MARKDOWN_CLASS_NAME = "md";
2
+ export declare const MARKDOC_EXAMPLE_TAG = "markdoc-example";
3
+ export declare const EXAMPLE_CONTENT_ATTRIBUTE = "exampleContent";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MARKDOWN_CLASS_NAME = void 0;
3
+ exports.EXAMPLE_CONTENT_ATTRIBUTE = exports.MARKDOC_EXAMPLE_TAG = exports.MARKDOWN_CLASS_NAME = void 0;
4
4
  exports.MARKDOWN_CLASS_NAME = 'md';
5
+ exports.MARKDOC_EXAMPLE_TAG = 'markdoc-example';
6
+ exports.EXAMPLE_CONTENT_ATTRIBUTE = 'exampleContent';
5
7
  //# sourceMappingURL=markdown.js.map
@@ -1,4 +1,4 @@
1
- import { BffCatalogEntity, BffCatalogRelatedEntity } from '../../types';
1
+ import type { BffCatalogEntity, BffCatalogRelatedEntity } from '../../types';
2
2
  type CatalogEntitySchemaProps = {
3
3
  entity: BffCatalogEntity;
4
4
  relatedEntity: BffCatalogRelatedEntity | null;
@@ -1,4 +1,4 @@
1
- import { BaseEntity, CatalogColumn } from '../../../components/Catalog/CatalogTableView/CatalogTableView';
1
+ import type { BaseEntity, CatalogColumn } from '../../../components/Catalog/CatalogTableView/CatalogTableView';
2
2
  type CatalogTableHeaderCellActionsProps<T extends BaseEntity> = {
3
3
  column: CatalogColumn<T>;
4
4
  currentSortOption?: string | null;
@@ -1,6 +1,6 @@
1
- import { type Node, type Edge, type Connection, OnNodesChange, OnEdgesChange } from '@xyflow/react';
2
- import { type CatalogEntityNodeData } from '../../../components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode';
3
- import { BffCatalogEntity, BffCatalogRelatedEntity } from '../../types';
1
+ import { type OnNodesChange, type OnEdgesChange, type Node, type Edge, type Connection } from '@xyflow/react';
2
+ import type { CatalogEntityNodeData } from '../../../components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNode';
3
+ import type { BffCatalogEntity, BffCatalogRelatedEntity } from '../../types';
4
4
  export type UseGraphProps = {
5
5
  entity: BffCatalogEntity;
6
6
  relations: BffCatalogRelatedEntity[];
@@ -32,6 +32,8 @@ function useActiveSectionId(location, hasOverviewPage = false, withNavbar = true
32
32
  const section = sections[i];
33
33
  const rect = section.getBoundingClientRect();
34
34
  if (rect.y < heightOffset && rect.bottom > heightOffset) {
35
+ if (isSkippedContent(section))
36
+ continue;
35
37
  setItemId(section.getAttribute('data-section-id') || '');
36
38
  return;
37
39
  }
@@ -56,4 +58,8 @@ function useActiveSectionId(location, hasOverviewPage = false, withNavbar = true
56
58
  }, [location, heightOffset, scrollListener]);
57
59
  return itemId;
58
60
  }
61
+ function isSkippedContent(element) {
62
+ return (typeof element.checkVisibility === 'function' &&
63
+ !element.checkVisibility({ contentVisibilityAuto: true }));
64
+ }
59
65
  //# sourceMappingURL=use-active-section-id.js.map
@@ -1,4 +1,4 @@
1
- import { RefObject } from 'react';
1
+ import type { RefObject } from 'react';
2
2
  type Size = {
3
3
  width: number;
4
4
  height: number;
@@ -1,6 +1,5 @@
1
- import { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
2
- import { ENTITY_RELATION_TYPES } from '@redocly/config';
3
- import type { CatalogEntityConfig, EntitiesCatalogConfig, LayoutVariant } from '@redocly/config';
1
+ import type { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
2
+ import type { ENTITY_RELATION_TYPES, CatalogEntityConfig, EntitiesCatalogConfig, LayoutVariant } from '@redocly/config';
4
3
  import type { CatalogFilterConfig } from '../../config';
5
4
  export type FilterResult = {
6
5
  value: string;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import { DEFAULT_COLOR_MODES } from '../constants';
2
+ import type { DEFAULT_COLOR_MODES } from '../constants';
3
3
  export type Plural<T extends string> = `${T}s`;
4
4
  export type ColorMode = (typeof DEFAULT_COLOR_MODES)[keyof typeof DEFAULT_COLOR_MODES];
5
5
  export type RenderableChildren<Context> = React.ReactNode | ((context: Context) => React.ReactNode);
@@ -1,21 +1,18 @@
1
- import type { ResolvedBannerConfig } from '@redocly/config';
1
+ import type { ResolvedBannerConfig, PageData, PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
2
2
  import type { AsyncApiRealmUI } from '@redocly/realm-asyncapi-sdk';
3
- import type { PageData, PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
4
3
  import type { ShikiTransformer } from '@shikijs/types';
5
4
  import type { Callback, TFunction as TFunc } from 'i18next';
6
5
  import type { To, Location, NavigateFunction } from 'react-router';
7
6
  import type { UseQueryResult } from '@tanstack/react-query';
8
7
  import type { CatalogConfig, ProductUiConfig } from '../../config';
9
- import type { UseCatalogResponse, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, UseCatalogProps, CatalogApiParams, CatalogApiResults } from './catalog';
8
+ import type { UseCatalogResponse, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, UseCatalogProps, CatalogApiParams, CatalogApiResults, BffCatalogEntity, BffCatalogEntityList, BffCatalogRelatedEntity, BffCatalogRelatedEntityList, BffCatalogEntityRevision, BffCatalogEntityRevisionList } from './catalog';
10
9
  import type { UserMenuData } from './user-menu';
11
- import type { ItemState } from './sidebar';
10
+ import type { ItemState, DrilldownMenuItemDetails } from './sidebar';
12
11
  import type { SearchItemData, SearchFacet, SearchFilterItem, SearchFacetQuery, AiSearchConversationItem, ContentSegment, ToolCall } from './search';
13
12
  import type { SubmitFeedbackParams } from './feedback';
14
13
  import type { TFunction } from './l10n';
15
14
  import type { BreadcrumbItem } from './breadcrumb';
16
- import type { DrilldownMenuItemDetails } from './sidebar';
17
- import { BffCatalogEntity, BffCatalogEntityList, BffCatalogRelatedEntity, BffCatalogRelatedEntityList, BffCatalogEntityRevision, BffCatalogEntityRevisionList } from './catalog';
18
- import { AiSearchError } from '../constants/search';
15
+ import type { AiSearchError } from '../constants/search';
19
16
  export type ThemeHooks = {
20
17
  useAnchorPositioning: () => {
21
18
  isSupported: boolean;
@@ -1,7 +1,6 @@
1
1
  import type { MCPClientType, McpConnectionParams } from '../types';
2
2
  export declare function generateMCPDeepLink(clientType: MCPClientType, config: McpConnectionParams): string;
3
3
  export declare function slugifyMcpServerName(name: string): string;
4
- export declare function generateClaudeDesktopConfig(config: McpConnectionParams): string;
5
4
  export declare function generateClaudeCodeCommand(config: McpConnectionParams): string;
6
5
  export declare function generateCodexCommand(config: McpConnectionParams): string;
7
6
  export declare function generateMcpInstallPrompt(config: McpConnectionParams): string;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generateMCPDeepLink = generateMCPDeepLink;
4
4
  exports.slugifyMcpServerName = slugifyMcpServerName;
5
- exports.generateClaudeDesktopConfig = generateClaudeDesktopConfig;
6
5
  exports.generateClaudeCodeCommand = generateClaudeCodeCommand;
7
6
  exports.generateCodexCommand = generateCodexCommand;
8
7
  exports.generateMcpInstallPrompt = generateMcpInstallPrompt;
@@ -41,18 +40,6 @@ function slugifyMcpServerName(name) {
41
40
  .replace(/[^a-z0-9_-]+/g, '-')
42
41
  .replace(/^-+|-+$/g, '');
43
42
  }
44
- // Claude Desktop's config file only launches stdio commands, so remote servers
45
- // connect through the mcp-remote bridge.
46
- function generateClaudeDesktopConfig(config) {
47
- return JSON.stringify({
48
- mcpServers: {
49
- [slugifyMcpServerName(config.serverName)]: {
50
- command: 'npx',
51
- args: ['-y', 'mcp-remote', config.url],
52
- },
53
- },
54
- }, null, 2);
55
- }
56
43
  function generateClaudeCodeCommand(config) {
57
44
  return `claude mcp add --transport http ${slugifyMcpServerName(config.serverName)} ${config.url}`;
58
45
  }
@@ -1,7 +1,7 @@
1
1
  import type { ResolvedNavItem, Version } from '@redocly/config';
2
2
  import type { Location } from 'react-router';
3
- import { type Locale, type TFunction } from '../types/l10n';
4
- import { type ItemState } from '../types/sidebar';
3
+ import type { Locale, TFunction } from '../types/l10n';
4
+ import type { ItemState } from '../types/sidebar';
5
5
  import { MenuItemType } from '../constants/common';
6
6
  export declare const mapNavbarItems: (items: ResolvedNavItem[], defaultLocale: string, currentLocale: string, locales: Locale[], location: Location) => ItemState[];
7
7
  export declare const isItemActive: (item: ResolvedNavItem, defaultLocale: string, currentLocale: string, locales: Locale[], location: Location) => boolean;
@@ -18,9 +18,7 @@ const common_1 = require("../constants/common");
18
18
  function combineUrls(baseURL, ...relativeURLs) {
19
19
  let res = baseURL;
20
20
  for (let relativeURL of relativeURLs) {
21
- res = relativeURL
22
- ? res.replace(/[\/\\]+$/, '') + '/' + relativeURL.replace(/^[\/\\]+/, '')
23
- : res;
21
+ res = relativeURL ? res.replace(/[/\\]+$/, '') + '/' + relativeURL.replace(/^[/\\]+/, '') : res;
24
22
  }
25
23
  return res;
26
24
  }
@@ -1,4 +1,4 @@
1
- import { type ConfigureRequestValues, type ConfigureServerRequestValues } from '../ext/configure';
1
+ import type { ConfigureRequestValues, ConfigureServerRequestValues } from '../ext/configure';
2
2
  import type { UserClaims, OpenAPIServer, OpenAPIInfo } from '../core/types';
3
3
  type ContextProps = {
4
4
  operation: {
@@ -47,7 +47,7 @@ function OIDCForbidden() {
47
47
  const [searchParams, setSearchParams] = (0, react_router_1.useSearchParams)();
48
48
  const [errorDescription, setErrorDescription] = (0, react_1.useState)('');
49
49
  // use whatever you want here
50
- const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/;
50
+ const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
51
51
  const renderText = (text) => text.split(' ').map((part) => URL_REGEX.test(part) ? (react_1.default.createElement(ErrorDescriptionLink, { key: part, href: part },
52
52
  part,
53
53
  ' ')) : (part + ' '));
@@ -1,3 +1,2 @@
1
- import { PropsWithChildren } from 'react';
2
- import type { JSX } from 'react';
1
+ import type { JSX, PropsWithChildren } from 'react';
3
2
  export declare function CodePanelPreview({ children }: PropsWithChildren): JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { JSX } from 'react';
1
+ import { type JSX } from 'react';
2
2
  type DiagramProps = {
3
3
  id?: string;
4
4
  diagramHtml: string;
@@ -41,10 +41,9 @@ const react_1 = __importStar(require("react"));
41
41
  const styled_components_1 = __importDefault(require("styled-components"));
42
42
  const utils_1 = require("../../../core/utils");
43
43
  const hooks_1 = require("../../../core/hooks");
44
- const hooks_2 = require("../../../core/hooks");
45
44
  const SvgViewer_1 = require("../../../components/SvgViewer/SvgViewer");
46
45
  function Diagram({ id, diagramHtml, diagramHtmlDark, diagramError, diagramType, align, width, 'data-source': dataSource, 'data-hash': dataHash, className, }) {
47
- const { useTranslate } = (0, hooks_2.useThemeHooks)();
46
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
48
47
  const { translate } = useTranslate();
49
48
  const { activeColorMode } = (0, hooks_1.useColorSwitcher)();
50
49
  const [isOpen, setIsOpen] = (0, react_1.useState)(false);
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { JSX } from 'react';
3
- import { TabsSize } from '../../../markdoc/components/Tabs/Tabs';
3
+ import type { TabsSize } from '../../../markdoc/components/Tabs/Tabs';
4
4
  export type TabProps = {
5
5
  tabId: string;
6
6
  label: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { JSX } from 'react';
3
3
  import type { TabItemProps } from '../../../markdoc/components/Tabs/TabItemFragment';
4
- import { TabsSize } from '../../../markdoc/components/Tabs/Tabs';
4
+ import type { TabsSize } from '../../../markdoc/components/Tabs/Tabs';
5
5
  type TabListProps = {
6
6
  childrenArray: React.ReactElement<TabItemProps>[];
7
7
  size: TabsSize;
@@ -1,4 +1,4 @@
1
- import { Node, RenderableTreeNode } from '@markdoc/markdoc';
1
+ import type { Node, RenderableTreeNode } from '@markdoc/markdoc';
2
2
  import type { MarkdocSchemaWrapper } from '../../markdoc/tags/types';
3
3
  import type { CodeWalkthroughConditions, CodeWalkthroughFilter, TogglesMarkdocAttr, InputsMarkdocAttr } from '@redocly/config';
4
4
  export declare const codeWalkthrough: MarkdocSchemaWrapper;