@redocly/theme 0.58.0-next.3 → 0.58.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.
@@ -13,7 +13,7 @@ const MoleculesIcon_1 = require("../../../../icons/MoleculesIcon/MoleculesIcon")
13
13
  const NetworkIcon_1 = require("../../../../icons/NetworkIcon/NetworkIcon");
14
14
  function CatalogEntityApiDescriptionRelations({ entity, relations, query, searchQuery, setSearchQuery, setFilter, entitiesCatalogConfig, catalogConfig, sortOption, setSortOption, handleSortClick, isColumnSorted, shouldShowLoadMore, }) {
15
15
  return (react_1.default.createElement("div", { "data-component-name": "Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations" },
16
- react_1.default.createElement(Tabs_1.Tabs, { forceReady: relations.length > 0, size: Tabs_1.TabsSize.MEDIUM },
16
+ react_1.default.createElement(Tabs_1.Tabs, { key: entity.id, forceReady: relations.length > 0, size: Tabs_1.TabsSize.MEDIUM },
17
17
  react_1.default.createElement(TabItem, { label: "Operations", icon: react_1.default.createElement(MoleculesIcon_1.MoleculesIcon, null), onClick: () => setFilter('type:api-operation') },
18
18
  react_1.default.createElement(CatalogEntityDefaultRelations_1.CatalogEntityDefaultRelations, { key: "operations-table", entity: entity, relations: relations, query: query, searchQuery: searchQuery, setSearchQuery: setSearchQuery, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, sortOption: sortOption, setSortOption: setSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted, shouldShowLoadMore: shouldShowLoadMore, shouldShowHeading: false, listType: "api-operation" })),
19
19
  react_1.default.createElement(TabItem, { label: "Schemas", icon: react_1.default.createElement(NetworkIcon_1.NetworkIcon, null), onClick: () => setFilter('type:data-schema') },
@@ -269,10 +269,10 @@ const SearchDialogWrapper = styled_components_1.default.div `
269
269
  border-radius: 0;
270
270
 
271
271
  @media screen and (max-width: ${utils_1.breakpoints.small}) {
272
- min-height: -webkit-fill-available !important;
273
- min-height: 100dvh !important;
274
- height: auto !important;
275
- width: 100vw !important;
272
+ min-height: -webkit-fill-available;
273
+ min-height: 100dvh;
274
+ height: 100dvh;
275
+ width: 100vw;
276
276
  }
277
277
 
278
278
  @media screen and (min-width: ${utils_1.breakpoints.small}) {
@@ -319,6 +319,8 @@ const SearchDialogBodyMainView = styled_components_1.default.div `
319
319
  `;
320
320
  const SearchDialogBodyFilterView = styled_components_1.default.div `
321
321
  overflow: scroll;
322
+ max-width: var(--search-filter-width);
323
+ width: 100%;
322
324
  `;
323
325
  const SearchDialogFooter = styled_components_1.default.footer `
324
326
  display: flex;
@@ -43,7 +43,8 @@ function SearchFilter({ className, facets, filter, query, quickFilterFields, onF
43
43
  React.createElement(SearchFilterFields, null, facets.map((facet, index) => (React.createElement(SearchFilterField_1.SearchFilterField, { key: `${facet.field}-${index}`, facet: facet, filter: filter, query: query, quickFilterFields: quickFilterFields, onFilterChange: onFilterChange, onFacetReset: onFacetReset }))))));
44
44
  }
45
45
  const SearchFilterWrapper = styled_components_1.default.div `
46
- width: var(--search-filter-width);
46
+ width: 100%;
47
+ max-width: var(--search-filter-width);
47
48
  display: flex;
48
49
  flex-direction: column;
49
50
  padding: var(--search-filter-padding);
@@ -57,4 +57,9 @@ export declare const useTelemetryFallback: () => {
57
57
  sendAsyncapiDocsMessageClickedMessage: () => void;
58
58
  sendAsyncapiDocsServerModalOpenedMessage: () => void;
59
59
  sendAsyncapiDocsDownloadDefinitionClickedMessage: () => void;
60
+ sendGraphqlDocsViewedMessage: () => void;
61
+ sendGraphqlDocsPerformanceMetricsMessage: () => void;
62
+ sendGraphqlDocsReferencedInLinkClickedMessage: () => void;
63
+ sendGraphqlDocsRequiredScopesModalOpenedMessage: () => void;
64
+ sendGraphqlDocsDownloadDefinitionClickedMessage: () => void;
60
65
  };
@@ -61,6 +61,11 @@ const useTelemetryFallback = () => ({
61
61
  sendAsyncapiDocsMessageClickedMessage: () => { },
62
62
  sendAsyncapiDocsServerModalOpenedMessage: () => { },
63
63
  sendAsyncapiDocsDownloadDefinitionClickedMessage: () => { },
64
+ sendGraphqlDocsViewedMessage: () => { },
65
+ sendGraphqlDocsPerformanceMetricsMessage: () => { },
66
+ sendGraphqlDocsReferencedInLinkClickedMessage: () => { },
67
+ sendGraphqlDocsRequiredScopesModalOpenedMessage: () => { },
68
+ sendGraphqlDocsDownloadDefinitionClickedMessage: () => { },
64
69
  });
65
70
  exports.useTelemetryFallback = useTelemetryFallback;
66
71
  //# sourceMappingURL=use-telemetry-fallback.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.58.0-next.3",
3
+ "version": "0.58.0-next.4",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -87,8 +87,8 @@
87
87
  "openapi-sampler": "1.6.1",
88
88
  "react-calendar": "5.1.0",
89
89
  "react-date-picker": "11.0.0",
90
- "@redocly/config": "0.31.0",
91
- "@redocly/realm-asyncapi-sdk": "0.4.0-next.1"
90
+ "@redocly/realm-asyncapi-sdk": "0.4.0-next.1",
91
+ "@redocly/config": "0.31.0"
92
92
  },
93
93
  "scripts": {
94
94
  "watch": "tsc -p tsconfig.build.json && (concurrently \"tsc -w -p tsconfig.build.json\" \"tsc-alias -w -p tsconfig.build.json\")",
@@ -46,7 +46,7 @@ export function CatalogEntityApiDescriptionRelations({
46
46
  }: CatalogEntityApiDescriptionRelationsProps): JSX.Element {
47
47
  return (
48
48
  <div data-component-name="Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations">
49
- <Tabs forceReady={relations.length > 0} size={TabsSize.MEDIUM}>
49
+ <Tabs key={entity.id} forceReady={relations.length > 0} size={TabsSize.MEDIUM}>
50
50
  <TabItem
51
51
  label="Operations"
52
52
  icon={<MoleculesIcon />}
@@ -487,10 +487,10 @@ const SearchDialogWrapper = styled.div`
487
487
  border-radius: 0;
488
488
 
489
489
  @media screen and (max-width: ${breakpoints.small}) {
490
- min-height: -webkit-fill-available !important;
491
- min-height: 100dvh !important;
492
- height: auto !important;
493
- width: 100vw !important;
490
+ min-height: -webkit-fill-available;
491
+ min-height: 100dvh;
492
+ height: 100dvh;
493
+ width: 100vw;
494
494
  }
495
495
 
496
496
  @media screen and (min-width: ${breakpoints.small}) {
@@ -542,6 +542,8 @@ const SearchDialogBodyMainView = styled.div`
542
542
 
543
543
  const SearchDialogBodyFilterView = styled.div`
544
544
  overflow: scroll;
545
+ max-width: var(--search-filter-width);
546
+ width: 100%;
545
547
  `;
546
548
 
547
549
  const SearchDialogFooter = styled.footer`
@@ -66,7 +66,8 @@ export function SearchFilter({
66
66
  }
67
67
 
68
68
  const SearchFilterWrapper = styled.div`
69
- width: var(--search-filter-width);
69
+ width: 100%;
70
+ max-width: var(--search-filter-width);
70
71
  display: flex;
71
72
  flex-direction: column;
72
73
  padding: var(--search-filter-padding);
@@ -58,4 +58,9 @@ export const useTelemetryFallback = () => ({
58
58
  sendAsyncapiDocsMessageClickedMessage: () => {},
59
59
  sendAsyncapiDocsServerModalOpenedMessage: () => {},
60
60
  sendAsyncapiDocsDownloadDefinitionClickedMessage: () => {},
61
+ sendGraphqlDocsViewedMessage: () => {},
62
+ sendGraphqlDocsPerformanceMetricsMessage: () => {},
63
+ sendGraphqlDocsReferencedInLinkClickedMessage: () => {},
64
+ sendGraphqlDocsRequiredScopesModalOpenedMessage: () => {},
65
+ sendGraphqlDocsDownloadDefinitionClickedMessage: () => {},
61
66
  });