@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.
- package/lib/components/Buttons/DownloadButton.js +13 -3
- package/lib/components/Catalog/Catalog.d.ts +2 -2
- package/lib/components/Catalog/CatalogActionsRow.d.ts +3 -2
- package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntities.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.js +1 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton.d.ts +3 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton.js +45 -23
- package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar.js +67 -33
- package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityRevisionItem.d.ts +3 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityRevisionItem.js +15 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.d.ts +3 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.js +48 -57
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +1 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +2 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +3 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +3 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +1 -2
- package/lib/components/Catalog/CatalogEntityIcon.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntityTypeTag.d.ts +2 -2
- package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.d.ts +1 -1
- package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.js +1 -2
- package/lib/components/Catalog/CatalogHighlight.d.ts +2 -1
- package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanel.d.ts +2 -1
- package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelHeader.d.ts +1 -1
- package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelOverlay.d.ts +2 -1
- package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.d.ts +2 -2
- package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.d.ts +2 -2
- package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarFiltersButton.d.ts +1 -1
- package/lib/components/Catalog/CatalogSelector.d.ts +3 -2
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +1 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +1 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +2 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +2 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +1 -1
- package/lib/components/Catalog/CatalogTags.d.ts +2 -2
- package/lib/components/Catalog/CatalogViewModeToggle.d.ts +1 -1
- package/lib/components/Catalog/variables.js +24 -33
- package/lib/components/CatalogClassic/CatalogClassicInfoBlock.d.ts +1 -1
- package/lib/components/CatalogClassic/CatalogClassicInfoBlock.js +1 -2
- package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.d.ts +1 -1
- package/lib/components/CodeBlock/CodeBlockControls.d.ts +1 -1
- package/lib/components/Dropdown/Dropdown.js +7 -1
- package/lib/components/Filter/FilterOptionLabel.d.ts +1 -1
- package/lib/components/LoadMore/LoadMore.d.ts +1 -1
- package/lib/components/MCP/McpConnectionTabs.js +2 -2
- package/lib/components/PageActions/PageActions.d.ts +1 -1
- package/lib/components/Search/SearchAiDialog.d.ts +1 -1
- package/lib/components/Search/SearchAiMessage.d.ts +1 -2
- package/lib/components/Search/SearchAiMessage.js +8 -10
- package/lib/components/Search/SearchAiResponse.d.ts +1 -1
- package/lib/components/Search/SearchGroups.d.ts +1 -1
- package/lib/core/constants/markdown.d.ts +2 -0
- package/lib/core/constants/markdown.js +3 -1
- package/lib/core/hooks/catalog/use-catalog-entity-schema.d.ts +1 -1
- package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.d.ts +1 -1
- package/lib/core/hooks/catalog/use-graph.d.ts +3 -3
- package/lib/core/hooks/use-active-section-id.js +6 -0
- package/lib/core/hooks/use-element-size.d.ts +1 -1
- package/lib/core/types/catalog.d.ts +2 -3
- package/lib/core/types/common.d.ts +1 -1
- package/lib/core/types/hooks.d.ts +4 -7
- package/lib/core/utils/mcp.d.ts +0 -1
- package/lib/core/utils/mcp.js +0 -13
- package/lib/core/utils/menu.d.ts +2 -2
- package/lib/core/utils/urls.js +1 -3
- package/lib/ext/use-configure-replay.d.ts +1 -1
- package/lib/layouts/OIDCForbidden.js +1 -1
- package/lib/markdoc/components/CodeWalkthrough/CodePanelPreview.d.ts +1 -2
- package/lib/markdoc/components/Diagram/Diagram.d.ts +1 -1
- package/lib/markdoc/components/Diagram/Diagram.js +1 -2
- package/lib/markdoc/components/Tabs/Tab.d.ts +1 -1
- package/lib/markdoc/components/Tabs/TabList.d.ts +1 -1
- package/lib/markdoc/tags/code-walkthrough.d.ts +1 -1
- package/lib/markdoc/tags/markdoc-example.js +34 -22
- package/package.json +2 -2
- package/src/components/Buttons/DownloadButton.tsx +16 -8
- package/src/components/Catalog/Catalog.tsx +4 -4
- package/src/components/Catalog/CatalogActionsRow.tsx +3 -2
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +3 -2
- package/src/components/Catalog/CatalogEntities.tsx +3 -2
- package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +2 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +6 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsGraph.tsx +4 -5
- package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton.tsx +56 -35
- package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar.tsx +80 -42
- package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityRevisionItem.tsx +18 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.tsx +61 -75
- package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +2 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +1 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +1 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +2 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +3 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +2 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +7 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +2 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +7 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +3 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +3 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +1 -2
- package/src/components/Catalog/CatalogEntityIcon.tsx +3 -2
- package/src/components/Catalog/CatalogEntityTypeTag.tsx +3 -2
- package/src/components/Catalog/CatalogFilter/CatalogFilterContent.tsx +2 -4
- package/src/components/Catalog/CatalogHighlight.tsx +2 -1
- package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanel.tsx +2 -1
- package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelHeader.tsx +2 -1
- package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelOverlay.tsx +2 -1
- package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.tsx +3 -2
- package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.tsx +3 -2
- package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarFiltersButton.tsx +2 -1
- package/src/components/Catalog/CatalogSelector.tsx +3 -2
- package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +1 -1
- package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +1 -1
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +2 -1
- package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +2 -1
- package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +1 -1
- package/src/components/Catalog/CatalogTags.tsx +4 -2
- package/src/components/Catalog/CatalogViewModeToggle.tsx +1 -1
- package/src/components/Catalog/variables.ts +24 -33
- package/src/components/CatalogClassic/CatalogClassicInfoBlock.tsx +2 -5
- package/src/components/CatalogClassic/CatalogClassicVirtualizedGroups.tsx +1 -1
- package/src/components/CodeBlock/CodeBlockControls.tsx +2 -1
- package/src/components/Dropdown/Dropdown.tsx +5 -1
- package/src/components/Filter/FilterOptionLabel.tsx +1 -1
- package/src/components/LoadMore/LoadMore.tsx +2 -1
- package/src/components/MCP/McpConnectionTabs.tsx +3 -4
- package/src/components/PageActions/PageActions.tsx +2 -1
- package/src/components/Search/SearchAiDialog.tsx +1 -1
- package/src/components/Search/SearchAiMessage.tsx +3 -6
- package/src/components/Search/SearchAiResponse.tsx +2 -4
- package/src/components/Search/SearchGroups.tsx +1 -5
- package/src/core/constants/markdown.ts +4 -0
- package/src/core/hooks/catalog/use-catalog-entity-schema.ts +1 -1
- package/src/core/hooks/catalog/use-catalog-table-header-cell-actions.ts +1 -1
- package/src/core/hooks/catalog/use-graph.ts +4 -4
- package/src/core/hooks/menu/__mocks__/use-mobile-menu-items.ts +1 -1
- package/src/core/hooks/use-active-section-id.ts +8 -0
- package/src/core/hooks/use-element-size.ts +2 -1
- package/src/core/types/catalog.ts +7 -3
- package/src/core/types/common.ts +1 -1
- package/src/core/types/hooks.ts +15 -13
- package/src/core/utils/mcp.ts +0 -17
- package/src/core/utils/menu.ts +2 -2
- package/src/core/utils/urls.ts +1 -3
- package/src/ext/use-configure-replay.ts +3 -3
- package/src/layouts/OIDCForbidden.tsx +1 -1
- package/src/markdoc/components/CodeWalkthrough/CodePanelPreview.tsx +2 -2
- package/src/markdoc/components/CodeWalkthrough/CodeWalkthrough.tsx +2 -4
- package/src/markdoc/components/Diagram/Diagram.tsx +2 -5
- package/src/markdoc/components/Tabs/Tab.tsx +1 -1
- package/src/markdoc/components/Tabs/TabList.tsx +1 -1
- package/src/markdoc/tags/code-walkthrough.ts +2 -1
- 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
|
|
477
|
+
--catalog-history-separator-margin: var(--spacing-sm) 0;
|
|
479
478
|
--catalog-history-item-padding: var(--spacing-xxs);
|
|
480
|
-
--catalog-history-item-
|
|
481
|
-
--catalog-history-item-
|
|
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-
|
|
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(--
|
|
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:
|
|
496
|
-
--catalog-history-pill-icon-size:
|
|
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-
|
|
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(--
|
|
518
|
+
--catalog-history-sidebar-header-color: var(--menu-content-color);
|
|
519
519
|
|
|
520
|
-
--catalog-history-sidebar-close-button-size:
|
|
521
|
-
--catalog-history-sidebar-close-button-border-radius: var(--border-radius-
|
|
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-
|
|
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:
|
|
533
|
-
--catalog-history-sidebar-version-icon-color: var(--text-color-
|
|
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-
|
|
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-
|
|
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(--
|
|
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:
|
|
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-
|
|
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
|
|
|
@@ -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,
|
|
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,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 (
|
|
91
|
+
if (openUpward) {
|
|
86
92
|
style.bottom = window.innerHeight - rect.top;
|
|
87
93
|
}
|
|
88
94
|
else {
|
|
@@ -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', '
|
|
117
|
-
react_1.default.createElement(CodeBlock_1.CodeBlock, { lang: "
|
|
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,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 ===
|
|
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 ===
|
|
127
|
-
react_1.default.createElement(MessageContentWrapper, null, role ===
|
|
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 ===
|
|
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 ===
|
|
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 ===
|
|
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 ===
|
|
230
|
-
color: ${({ $role }) => $role ===
|
|
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 {
|
|
2
|
+
import type { SearchFacet, SearchFilterItem } from '../../core/types';
|
|
3
3
|
type SearchGroupsProps = {
|
|
4
4
|
facets: SearchFacet[];
|
|
5
5
|
searchFilter: SearchFilterItem[];
|
|
@@ -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 { 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
|
|
2
|
-
import {
|
|
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,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 {
|
|
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;
|
package/lib/core/utils/mcp.d.ts
CHANGED
|
@@ -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;
|
package/lib/core/utils/mcp.js
CHANGED
|
@@ -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
|
}
|
package/lib/core/utils/menu.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResolvedNavItem, Version } from '@redocly/config';
|
|
2
2
|
import type { Location } from 'react-router';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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;
|
package/lib/core/utils/urls.js
CHANGED
|
@@ -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 {
|
|
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@:%._
|
|
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 + ' '));
|
|
@@ -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,
|
|
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,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;
|