@redocly/theme 0.64.0-next.0 → 0.64.0-next.2

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 (143) hide show
  1. package/lib/components/Banner/Banner.js +3 -3
  2. package/lib/components/Catalog/CatalogActionsRow.d.ts +3 -3
  3. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +4 -6
  4. package/lib/components/Catalog/CatalogEntities.d.ts +2 -2
  5. package/lib/components/Catalog/CatalogEntities.js +1 -1
  6. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +1 -8
  7. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +1 -1
  8. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +1 -1
  9. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +1 -0
  10. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +2 -1
  11. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +2 -6
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +5 -5
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +1 -1
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +15 -7
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +2 -2
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.d.ts +3 -3
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.js +4 -1
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +3 -3
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +14 -2
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +1 -1
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +3 -3
  22. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +1 -1
  23. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +2 -2
  24. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +3 -3
  25. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +13 -3
  26. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +4 -3
  27. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +3 -2
  28. package/lib/components/Catalog/CatalogEntityTypeIcon.js +9 -9
  29. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.d.ts +2 -3
  30. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.d.ts +2 -3
  31. package/lib/components/Catalog/CatalogPageDescription.js +1 -1
  32. package/lib/components/Catalog/CatalogSortButton.d.ts +4 -5
  33. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +6 -2
  34. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +2 -2
  35. package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.d.ts +5 -0
  36. package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.js +45 -0
  37. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +5 -3
  38. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +2 -3
  39. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +3 -2
  40. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +1 -2
  41. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +15 -5
  42. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +3 -2
  43. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +2 -2
  44. package/lib/components/Catalog/CatalogTags.d.ts +11 -0
  45. package/lib/components/Catalog/CatalogTags.js +62 -0
  46. package/lib/components/Catalog/variables.js +22 -14
  47. package/lib/components/Search/SearchDialog.js +118 -116
  48. package/lib/components/SvgViewer/variables.dark.js +1 -1
  49. package/lib/core/constants/catalog.d.ts +1 -1
  50. package/lib/core/constants/catalog.js +1 -1
  51. package/lib/core/hooks/catalog/use-catalog-entity-link.d.ts +8 -0
  52. package/lib/core/hooks/catalog/use-catalog-entity-link.js +42 -0
  53. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.d.ts +2 -1
  54. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.js +5 -3
  55. package/lib/core/hooks/index.d.ts +1 -0
  56. package/lib/core/hooks/index.js +1 -0
  57. package/lib/core/styles/dark.d.ts +3 -1
  58. package/lib/core/styles/dark.js +42 -31
  59. package/lib/core/styles/global.d.ts +6 -2
  60. package/lib/core/styles/global.js +54 -39
  61. package/lib/core/styles/palette.d.ts +6 -0
  62. package/lib/core/styles/palette.dark.d.ts +3 -0
  63. package/lib/core/styles/palette.dark.js +216 -0
  64. package/lib/core/styles/palette.js +179 -0
  65. package/lib/core/types/catalog.d.ts +23 -7
  66. package/lib/core/types/hooks.d.ts +6 -4
  67. package/lib/icons/ColorPaletteIcon/ColorPaletteIcon.d.ts +9 -0
  68. package/lib/icons/ColorPaletteIcon/ColorPaletteIcon.js +27 -0
  69. package/lib/icons/StopIcon/StopIcon.d.ts +9 -0
  70. package/lib/icons/StopIcon/StopIcon.js +22 -0
  71. package/lib/index.d.ts +3 -1
  72. package/lib/index.js +3 -1
  73. package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.d.ts +7 -0
  74. package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.js +95 -0
  75. package/lib/markdoc/components/ExcalidrawDiagram/variables.d.ts +1 -0
  76. package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.d.ts +1 -0
  77. package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.js +8 -0
  78. package/lib/markdoc/components/ExcalidrawDiagram/variables.js +15 -0
  79. package/lib/markdoc/components/Heading/Heading.js +2 -2
  80. package/lib/markdoc/components/Mermaid/Mermaid.js +2 -0
  81. package/lib/markdoc/components/default.d.ts +1 -0
  82. package/lib/markdoc/components/default.js +1 -0
  83. package/package.json +2 -2
  84. package/src/components/Banner/Banner.tsx +7 -7
  85. package/src/components/Catalog/CatalogActionsRow.tsx +3 -3
  86. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +4 -6
  87. package/src/components/Catalog/CatalogEntities.tsx +3 -3
  88. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +3 -24
  89. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -1
  90. package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +1 -1
  91. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +1 -0
  92. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +2 -1
  93. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +8 -10
  94. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +13 -8
  95. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +1 -0
  96. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +27 -15
  97. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +2 -2
  98. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +9 -9
  99. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +17 -9
  100. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +1 -1
  101. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +4 -8
  102. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +2 -2
  103. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +16 -10
  104. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +4 -3
  105. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +18 -11
  106. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.tsx +3 -3
  107. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.tsx +2 -3
  108. package/src/components/Catalog/CatalogPageDescription.tsx +1 -1
  109. package/src/components/Catalog/CatalogSortButton.tsx +5 -6
  110. package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +6 -2
  111. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +2 -2
  112. package/src/components/Catalog/CatalogTableView/CatalogLastUpdateCell.tsx +54 -0
  113. package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +5 -2
  114. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +4 -3
  115. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +17 -7
  116. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +3 -2
  117. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +2 -2
  118. package/src/components/Catalog/CatalogTags.tsx +115 -0
  119. package/src/components/Catalog/variables.ts +22 -14
  120. package/src/components/Search/SearchDialog.tsx +299 -293
  121. package/src/components/SvgViewer/variables.dark.ts +1 -1
  122. package/src/core/constants/catalog.ts +1 -1
  123. package/src/core/hooks/catalog/use-catalog-entity-link.ts +46 -0
  124. package/src/core/hooks/catalog/use-catalog-table-header-cell-actions.ts +10 -2
  125. package/src/core/hooks/index.ts +1 -0
  126. package/src/core/styles/dark.ts +14 -2
  127. package/src/core/styles/global.ts +28 -13
  128. package/src/core/styles/palette.dark.ts +214 -0
  129. package/src/core/styles/palette.ts +177 -0
  130. package/src/core/types/catalog.ts +24 -8
  131. package/src/core/types/hooks.ts +5 -10
  132. package/src/icons/ColorPaletteIcon/ColorPaletteIcon.tsx +28 -0
  133. package/src/icons/StopIcon/StopIcon.tsx +23 -0
  134. package/src/index.ts +3 -1
  135. package/src/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.tsx +85 -0
  136. package/src/markdoc/components/ExcalidrawDiagram/variables.dark.ts +5 -0
  137. package/src/markdoc/components/ExcalidrawDiagram/variables.ts +12 -0
  138. package/src/markdoc/components/Heading/Heading.tsx +2 -1
  139. package/src/markdoc/components/Mermaid/Mermaid.tsx +2 -0
  140. package/src/markdoc/components/default.ts +1 -0
  141. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +0 -10
  142. package/lib/components/Catalog/CatalogTagsWithTooltip.js +0 -57
  143. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +0 -101
@@ -31,20 +31,22 @@ const variables_26 = require("../../components/Markdown/variables");
31
31
  const variables_27 = require("../../components/Banner/variables");
32
32
  const variables_28 = require("../../markdoc/components/Tabs/variables");
33
33
  const variables_29 = require("../../markdoc/components/Mermaid/variables");
34
- const variables_30 = require("../../components/LastUpdated/variables");
35
- const variables_31 = require("../../components/Logo/variables");
36
- const variables_32 = require("../../components/StatusCode/variables");
37
- const variables_33 = require("../../components/Segmented/variables");
38
- const variables_34 = require("../../components/UserMenu/variables");
39
- const variables_35 = require("../../components/Tags/variables");
40
- const variables_36 = require("../../components/VersionPicker/variables");
41
- const variables_37 = require("../../components/DatePicker/variables");
42
- const variables_38 = require("../../components/Switch/variables");
43
- const variables_39 = require("../../markdoc/components/Cards/variables");
44
- const variables_40 = require("../../markdoc/components/CodeWalkthrough/variables");
45
- const variables_41 = require("../../components/SkipContent/variables");
46
- const variables_42 = require("../../components/PageActions/variables");
47
- const variables_43 = require("../../components/SvgViewer/variables");
34
+ const variables_30 = require("../../markdoc/components/ExcalidrawDiagram/variables");
35
+ const variables_31 = require("../../components/LastUpdated/variables");
36
+ const variables_32 = require("../../components/Logo/variables");
37
+ const variables_33 = require("../../components/StatusCode/variables");
38
+ const variables_34 = require("../../components/Segmented/variables");
39
+ const variables_35 = require("../../components/UserMenu/variables");
40
+ const variables_36 = require("../../components/Tags/variables");
41
+ const variables_37 = require("../../components/VersionPicker/variables");
42
+ const variables_38 = require("../../components/DatePicker/variables");
43
+ const variables_39 = require("../../components/Switch/variables");
44
+ const variables_40 = require("../../markdoc/components/Cards/variables");
45
+ const variables_41 = require("../../markdoc/components/CodeWalkthrough/variables");
46
+ const variables_42 = require("../../components/SkipContent/variables");
47
+ const variables_43 = require("../../components/PageActions/variables");
48
+ const variables_44 = require("../../components/SvgViewer/variables");
49
+ const palette_1 = require("./palette");
48
50
  const dark_1 = require("./dark");
49
51
  const themeColors = (0, styled_components_1.css) `
50
52
  /* === Palette === */
@@ -225,16 +227,22 @@ const themeColors = (0, styled_components_1.css) `
225
227
  --color-white: #ffffff;
226
228
  --color-static-white: #ffffff;
227
229
 
228
- --color-primary-bg: var(--color-blueberry-1);
229
- --color-primary-bg-hover: var(--color-blueberry-2);
230
- --color-primary-border: var(--color-blueberry-3);
231
- --color-primary-border-hover: var(--color-blueberry-4);
232
- --color-primary-hover: var(--color-blueberry-5);
233
- --color-primary-base: var(--color-blueberry-6);
234
- --color-primary-active: var(--color-blueberry-7);
235
- --color-primary-text-hover: var(--color-blueberry-8);
236
- --color-primary-text: var(--color-blueberry-9);
237
- --color-primary-text-active: var(--color-blueberry-10);
230
+ --color-primary-bg: var(--color-brand-1);
231
+ --color-primary-bg-hover: var(--color-brand-2);
232
+ --color-primary-border: var(--color-brand-3);
233
+ --color-primary-border-hover: var(--color-brand-4);
234
+ --color-primary-hover: var(--color-brand-8);
235
+ --color-primary-base: var(--color-brand-6);
236
+ --color-primary-active: var(--color-brand-7);
237
+ --color-primary-text-hover: var(--color-brand-9);
238
+ --color-primary-text: var(--color-brand-8);
239
+ --color-primary-text-active: var(--color-brand-7);
240
+ --color-primary-text-on-color: var(--text-color-on-color);
241
+
242
+ --color-brand-pink-subtle-bg: var(--color-brand-1);
243
+ --color-brand-pink-subtle-bg-hover: var(--color-brand-2);
244
+ --color-brand-pink-subtle-border: var(--color-brand-3);
245
+ --color-brand-pink-subtle-border-hover: var(--color-brand-4);
238
246
 
239
247
  --color-success-bg: var(--color-green-1);
240
248
  --color-success-bg-hover: var(--color-green-2);
@@ -1148,7 +1156,7 @@ const icon = (0, styled_components_1.css) `
1148
1156
 
1149
1157
  --icon-color-primary: var(--color-warm-grey-11); // @presenter Color
1150
1158
  --icon-color-secondary: var(--color-warm-grey-8); // @presenter Color
1151
- --icon-color-on-color: var(--color-warm-grey-1); // @presenter Color
1159
+ --icon-color-on-color: var(--color-static-white); // @presenter Color
1152
1160
  --icon-color-interactive: var(--color-blueberry-6); // @presenter Color
1153
1161
  --icon-color-inverse: var(--color-white); // @presenter Color
1154
1162
  --icon-color-disabled: var(--color-warm-grey-5); // @presenter Color
@@ -1230,6 +1238,11 @@ const replay = (0, styled_components_1.css) `
1230
1238
  --replay-runtime-expression-bg-color: rgba(54, 90, 249, 0.08); // @presenter Color
1231
1239
  --replay-operators-color: rgba(193, 142, 31, 1); // @presenter Color
1232
1240
 
1241
+ --replay-ai-gradient-soft: linear-gradient(62.6deg, rgba(113, 94, 254, 0.16) 0%, rgba(255, 92, 220, 0.16) 100%);
1242
+ --replay-ai-gradient-disabled: linear-gradient(62.6deg, rgba(113, 94, 254, 0.6) 0%, rgba(255, 92, 220, 0.6) 100%);
1243
+ --replay-ai-user-message-gradient: linear-gradient(73.52deg, rgba(113, 94, 254, 0.08) 10.13%, rgba(255, 92, 220, 0.08) 87.29%);
1244
+
1245
+ --replay-ai-send-button-disabled-border: 1px solid #ffffff33;
1233
1246
  // @tokens End
1234
1247
  `;
1235
1248
  exports.styles = (0, styled_components_1.css) `
@@ -1245,27 +1258,28 @@ exports.styles = (0, styled_components_1.css) `
1245
1258
  ${variables_19.button}
1246
1259
  ${variables_20.aiAssistantButton}
1247
1260
  ${variables_20.connectMCPButton}
1248
- ${variables_39.cards}
1261
+ ${variables_40.cards}
1249
1262
  ${variables_8.catalog}
1250
1263
  ${variables_10.catalogClassic}
1251
1264
  ${variables_24.code}
1252
- ${variables_40.codeWalkthrough}
1265
+ ${variables_41.codeWalkthrough}
1253
1266
  ${docsDropdown}
1254
1267
  ${variables_14.dropdown}
1255
1268
  ${error}
1256
1269
  ${variables_9.filter}
1257
1270
  ${variables_18.footer}
1258
1271
  ${headingsTypography}
1259
- ${variables_35.httpTag}
1272
+ ${variables_36.httpTag}
1260
1273
  ${inputs}
1261
1274
  ${variables_1.languagePicker}
1262
- ${variables_30.lastUpdated}
1275
+ ${variables_31.lastUpdated}
1263
1276
  ${links}
1264
1277
  ${loadProgressBar}
1265
- ${variables_31.logo}
1278
+ ${variables_32.logo}
1266
1279
  ${variables_26.markdown}
1267
1280
  ${variables_28.markdownTabs}
1268
1281
  ${variables_29.mermaid}
1282
+ ${variables_30.excalidraw}
1269
1283
  ${variables_23.menu}
1270
1284
  ${variables_23.mobileMenu}
1271
1285
  ${modal}
@@ -1279,28 +1293,29 @@ exports.styles = (0, styled_components_1.css) `
1279
1293
  ${sizeAndSpace}
1280
1294
  ${variables_6.tag}
1281
1295
  ${themeColors}
1296
+ ${palette_1.activeBrandPaletteLight}
1282
1297
  ${tile}
1283
1298
  ${variables_7.toc}
1284
1299
  ${variables_15.tooltip}
1285
1300
  ${typography}
1286
- ${variables_34.userMenu}
1287
- ${variables_36.versionPicker}
1301
+ ${variables_35.userMenu}
1302
+ ${variables_37.versionPicker}
1288
1303
  ${zIndexDepth}
1289
1304
  ${scorecardColors}
1290
- ${variables_32.statusCode}
1305
+ ${variables_33.statusCode}
1291
1306
  ${tab}
1292
1307
  ${icon}
1293
1308
  ${tree}
1294
- ${variables_33.segmented}
1295
- ${variables_38.switcher}
1309
+ ${variables_34.segmented}
1310
+ ${variables_39.switcher}
1296
1311
  ${variables_16.checkbox}
1297
1312
  ${variables_3.feedback}
1298
1313
  ${variables_2.scorecard}
1299
- ${variables_37.datePicker}
1314
+ ${variables_38.datePicker}
1300
1315
  ${replay}
1301
- ${variables_41.skipContent}
1302
- ${variables_42.pageActions}
1303
- ${variables_43.svgViewer}
1316
+ ${variables_42.skipContent}
1317
+ ${variables_43.pageActions}
1318
+ ${variables_44.svgViewer}
1304
1319
 
1305
1320
  background-color: var(--bg-color);
1306
1321
  color: var(--text-color-primary);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @tokens Palette
3
+ */
4
+ export declare const activeBrandPaletteLight: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
5
+ palette?: string;
6
+ }, any>>;
@@ -0,0 +1,3 @@
1
+ export declare const activeBrandPaletteDark: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
2
+ palette?: string;
3
+ }, any>>;
@@ -0,0 +1,216 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activeBrandPaletteDark = void 0;
4
+ const styled_components_1 = require("styled-components");
5
+ function brandPaletteDark(palette) {
6
+ switch (palette) {
7
+ case 'default':
8
+ return (0, styled_components_1.css) `
9
+ --color-brand-1: var(--color-blueberry-1);
10
+ --color-brand-2: var(--color-blueberry-2);
11
+ --color-brand-3: var(--color-blueberry-3);
12
+ --color-brand-4: var(--color-blueberry-4);
13
+ --color-brand-5: var(--color-blueberry-5);
14
+ --color-brand-6: var(--color-blueberry-6);
15
+ --color-brand-7: var(--color-blueberry-7);
16
+ --color-brand-8: var(--color-blueberry-8);
17
+ --color-brand-9: var(--color-blueberry-9);
18
+ --color-brand-10: var(--color-blueberry-10);
19
+ --color-brand-11: var(--color-blueberry-11);
20
+ `;
21
+ case 'slate':
22
+ return (0, styled_components_1.css) `
23
+ --color-brand-1: #2a2b33;
24
+ --color-brand-2: #3b3c45;
25
+ --color-brand-3: #555761;
26
+ --color-brand-4: #6e6f7a;
27
+ --color-brand-5: #9b9ca8;
28
+ --color-brand-6: #fbfbfc;
29
+ --color-brand-7: #ededf2;
30
+ --color-brand-8: #dcdde5;
31
+ --color-brand-9: #c4c6d1;
32
+ --color-brand-10: #9b9ca8;
33
+ --color-brand-11: #6e6f7a;
34
+ --color-brand-subtle-1: #2a2b3366;
35
+ --color-brand-subtle-2: #3b3c4566;
36
+ --color-brand-subtle-3: #55576166;
37
+ --color-brand-subtle-4: #6e6f7a66;
38
+ --text-color-on-color: #000000;
39
+ `;
40
+ case 'pink':
41
+ return (0, styled_components_1.css) `
42
+ --color-brand-1: #4f2841;
43
+ --color-brand-2: #6a3055;
44
+ --color-brand-3: #853668;
45
+ --color-brand-4: #a03a7b;
46
+ --color-brand-5: #bb3d8d;
47
+ --color-brand-6: #d6409f;
48
+ --color-brand-7: #de59ad;
49
+ --color-brand-8: #e677bd;
50
+ --color-brand-9: #ef99cf;
51
+ --color-brand-10: #f7bfe2;
52
+ --color-brand-11: #ffe8f7;
53
+ --color-brand-subtle-1: #4f284166;
54
+ --color-brand-subtle-2: #6a305566;
55
+ --color-brand-subtle-3: #85366866;
56
+ --color-brand-subtle-4: #a03a7b66;
57
+ --text-color-on-color: #ffffff;
58
+ `;
59
+ case 'coral':
60
+ return (0, styled_components_1.css) `
61
+ --color-brand-1: #4f282b;
62
+ --color-brand-2: #6d3338;
63
+ --color-brand-3: #8b3c42;
64
+ --color-brand-4: #a9434c;
65
+ --color-brand-5: #c74b55;
66
+ --color-brand-6: #e5535f;
67
+ --color-brand-7: #ea6a75;
68
+ --color-brand-8: #ef858d;
69
+ --color-brand-9: #f5a3aa;
70
+ --color-brand-10: #fac5c9;
71
+ --color-brand-11: #ffe8ea;
72
+ --color-brand-subtle-1: #4f282b66;
73
+ --color-brand-subtle-2: #6d333866;
74
+ --color-brand-subtle-3: #8b3c4266;
75
+ --color-brand-subtle-4: #a9434c66;
76
+ --text-color-on-color: #ffffff;
77
+ `;
78
+ case 'amber':
79
+ return (0, styled_components_1.css) `
80
+ --color-brand-1: #4f3c28;
81
+ --color-brand-2: #71512e;
82
+ --color-brand-3: #93632f;
83
+ --color-brand-4: #b6732a;
84
+ --color-brand-5: #d88121;
85
+ --color-brand-6: #fa8d15;
86
+ --color-brand-7: #fb9f3a;
87
+ --color-brand-8: #fcb261;
88
+ --color-brand-9: #fdc78c;
89
+ --color-brand-10: #feddba;
90
+ --color-brand-11: #fff4e8;
91
+ --color-brand-subtle-1: #4f3c2866;
92
+ --color-brand-subtle-2: #71512e66;
93
+ --color-brand-subtle-3: #93632f66;
94
+ --color-brand-subtle-4: #b6732a66;
95
+ --text-color-on-color: #ffffff;
96
+ `;
97
+ case 'jade':
98
+ return (0, styled_components_1.css) `
99
+ --color-brand-1: #284f45;
100
+ --color-brand-2: #2a6052;
101
+ --color-brand-3: #2b715e;
102
+ --color-brand-4: #2b816b;
103
+ --color-brand-5: #2a9277;
104
+ --color-brand-6: #29a383;
105
+ --color-brand-7: #42b597;
106
+ --color-brand-8: #61c8ad;
107
+ --color-brand-9: #88dac4;
108
+ --color-brand-10: #b5edde;
109
+ --color-brand-11: #e8fff9;
110
+ --color-brand-subtle-1: #284f4566;
111
+ --color-brand-subtle-2: #2a605266;
112
+ --color-brand-subtle-3: #2b715e66;
113
+ --color-brand-subtle-4: #2b816b66;
114
+ --text-color-on-color: #ffffff;
115
+ `;
116
+ case 'cyan':
117
+ return (0, styled_components_1.css) `
118
+ --color-brand-1: #28484f;
119
+ --color-brand-2: #285c67;
120
+ --color-brand-3: #246e7f;
121
+ --color-brand-4: #1b8097;
122
+ --color-brand-5: #0f91af;
123
+ --color-brand-6: #00a2c7;
124
+ --color-brand-7: #22b2d2;
125
+ --color-brand-8: #4ac2dd;
126
+ --color-brand-9: #79d4e9;
127
+ --color-brand-10: #aee7f4;
128
+ --color-brand-11: #e8fbff;
129
+ --color-brand-subtle-1: #28484f66;
130
+ --color-brand-subtle-2: #285c6766;
131
+ --color-brand-subtle-3: #246e7f66;
132
+ --color-brand-subtle-4: #1b809766;
133
+ --text-color-on-color: #ffffff;
134
+ `;
135
+ case 'ocean':
136
+ return (0, styled_components_1.css) `
137
+ --color-brand-1: #283e4f;
138
+ --color-brand-2: #2d5472;
139
+ --color-brand-3: #2a6795;
140
+ --color-brand-4: #2277b9;
141
+ --color-brand-5: #1384dc;
142
+ --color-brand-6: #0090ff;
143
+ --color-brand-7: #29a2ff;
144
+ --color-brand-8: #56b5ff;
145
+ --color-brand-9: #85caff;
146
+ --color-brand-10: #b6dfff;
147
+ --color-brand-11: #e8f5ff;
148
+ --color-brand-subtle-1: #283e4f66;
149
+ --color-brand-subtle-2: #2d547266;
150
+ --color-brand-subtle-3: #2a679566;
151
+ --color-brand-subtle-4: #2277b966;
152
+ --text-color-on-color: #ffffff;
153
+ `;
154
+ case 'indigo':
155
+ return (0, styled_components_1.css) `
156
+ --color-brand-1: #28314f;
157
+ --color-brand-2: #303e6b;
158
+ --color-brand-3: #364988;
159
+ --color-brand-4: #3952a4;
160
+ --color-brand-5: #3c5bc1;
161
+ --color-brand-6: #3e63dd;
162
+ --color-brand-7: #5879e4;
163
+ --color-brand-8: #7691eb;
164
+ --color-brand-9: #99aef1;
165
+ --color-brand-10: #bfcdf8;
166
+ --color-brand-11: #e8edff;
167
+ --color-brand-subtle-1: #28314f66;
168
+ --color-brand-subtle-2: #303e6b66;
169
+ --color-brand-subtle-3: #36498866;
170
+ --color-brand-subtle-4: #3952a466;
171
+ --text-color-on-color: #ffffff;
172
+ `;
173
+ case 'iris':
174
+ return (0, styled_components_1.css) `
175
+ --color-brand-1: #2e2e4f;
176
+ --color-brand-2: #3a3a6a;
177
+ --color-brand-3: #434385;
178
+ --color-brand-4: #4c4ca0;
179
+ --color-brand-5: #5353bb;
180
+ --color-brand-6: #5b5bd6;
181
+ --color-brand-7: #7070de;
182
+ --color-brand-8: #8a8ae6;
183
+ --color-brand-9: #a7a7ef;
184
+ --color-brand-10: #c8c8f7;
185
+ --color-brand-11: #ebebff;
186
+ --color-brand-subtle-1: #2e2e4f80;
187
+ --color-brand-subtle-2: #3a3a6a80;
188
+ --color-brand-subtle-3: #43438580;
189
+ --color-brand-subtle-4: #4c4ca080;
190
+ --text-color-on-color: #ffffff;
191
+ `;
192
+ default:
193
+ return (0, styled_components_1.css) `
194
+ --color-brand-1: #232a61;
195
+ --color-brand-2: #222d7a;
196
+ --color-brand-3: #1e2f93;
197
+ --color-brand-4: #2f46b7;
198
+ --color-brand-5: #4561db;
199
+ --color-brand-6: #5f81ff;
200
+ --color-brand-7: #87a3ff;
201
+ --color-brand-8: #9fb7ff;
202
+ --color-brand-9: #bfd0ff;
203
+ --color-brand-10: #dfe8ff;
204
+ --color-brand-11: #f0f4ff;
205
+ --color-brand-subtle-1: #232a6166;
206
+ --color-brand-subtle-2: #222d7a66;
207
+ --color-brand-subtle-3: #1e2f9366;
208
+ --color-brand-subtle-4: #2f46b766;
209
+ --text-color-on-color: #ffffff;
210
+ `;
211
+ }
212
+ }
213
+ exports.activeBrandPaletteDark = (0, styled_components_1.css) `
214
+ ${({ palette }) => brandPaletteDark(palette)}
215
+ `;
216
+ //# sourceMappingURL=palette.dark.js.map
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activeBrandPaletteLight = void 0;
4
+ const styled_components_1 = require("styled-components");
5
+ function brandPaletteLight(palette) {
6
+ switch (palette) {
7
+ case 'default':
8
+ return (0, styled_components_1.css) `
9
+ --color-brand-1: var(--color-blueberry-1);
10
+ --color-brand-2: var(--color-blueberry-2);
11
+ --color-brand-3: var(--color-blueberry-3);
12
+ --color-brand-4: var(--color-blueberry-4);
13
+ --color-brand-5: var(--color-blueberry-5);
14
+ --color-brand-6: var(--color-blueberry-6);
15
+ --color-brand-7: var(--color-blueberry-7);
16
+ --color-brand-8: var(--color-blueberry-8);
17
+ --color-brand-9: var(--color-blueberry-9);
18
+ --color-brand-10: var(--color-blueberry-10);
19
+ --color-brand-11: var(--color-blueberry-11);
20
+ `;
21
+ case 'slate':
22
+ return (0, styled_components_1.css) `
23
+ --color-brand-1: #ededf2;
24
+ --color-brand-2: #dcdde5;
25
+ --color-brand-3: #c4c6d1;
26
+ --color-brand-4: #9b9ca8;
27
+ --color-brand-5: #6e6f7a;
28
+ --color-brand-6: #1a1c21;
29
+ --color-brand-7: #22242b;
30
+ --color-brand-8: #2a2b33;
31
+ --color-brand-9: #3b3c45;
32
+ --color-brand-10: #555761;
33
+ --color-brand-11: #6e6f7a;
34
+ --text-color-on-color: #ffffff;
35
+ `;
36
+ case 'pink':
37
+ return (0, styled_components_1.css) `
38
+ --color-brand-1: #ffe8f7;
39
+ --color-brand-2: #f7bfe2;
40
+ --color-brand-3: #ef99cf;
41
+ --color-brand-4: #e677bd;
42
+ --color-brand-5: #de59ad;
43
+ --color-brand-6: #d6409f;
44
+ --color-brand-7: #bb3d8d;
45
+ --color-brand-8: #a03a7b;
46
+ --color-brand-9: #853668;
47
+ --color-brand-10: #6a3055;
48
+ --color-brand-11: #4f2841;
49
+ --text-color-on-color: #ffffff;
50
+ `;
51
+ case 'coral':
52
+ return (0, styled_components_1.css) `
53
+ --color-brand-1: #ffe8ea;
54
+ --color-brand-2: #fac5c9;
55
+ --color-brand-3: #f5a3aa;
56
+ --color-brand-4: #ef858d;
57
+ --color-brand-5: #ea6a75;
58
+ --color-brand-6: #e5535f;
59
+ --color-brand-7: #c74b55;
60
+ --color-brand-8: #a9434c;
61
+ --color-brand-9: #8b3c42;
62
+ --color-brand-10: #6d3338;
63
+ --color-brand-11: #4f282b;
64
+ --text-color-on-color: #ffffff;
65
+ `;
66
+ case 'amber':
67
+ return (0, styled_components_1.css) `
68
+ --color-brand-1: #fff4e8;
69
+ --color-brand-2: #feddba;
70
+ --color-brand-3: #fdc78c;
71
+ --color-brand-4: #fcb261;
72
+ --color-brand-5: #fb9f3a;
73
+ --color-brand-6: #fa8d15;
74
+ --color-brand-7: #d88121;
75
+ --color-brand-8: #b6732a;
76
+ --color-brand-9: #93632f;
77
+ --color-brand-10: #71512e;
78
+ --color-brand-11: #4f3c28;
79
+ --text-color-on-color: #ffffff;
80
+ `;
81
+ case 'jade':
82
+ return (0, styled_components_1.css) `
83
+ --color-brand-1: #e8fff9;
84
+ --color-brand-2: #b5edde;
85
+ --color-brand-3: #88dac4;
86
+ --color-brand-4: #61c8ad;
87
+ --color-brand-5: #42b597;
88
+ --color-brand-6: #29a383;
89
+ --color-brand-7: #2a9277;
90
+ --color-brand-8: #2b816b;
91
+ --color-brand-9: #2b715e;
92
+ --color-brand-10: #2a6052;
93
+ --color-brand-11: #284f45;
94
+ --text-color-on-color: #ffffff;
95
+ `;
96
+ case 'cyan':
97
+ return (0, styled_components_1.css) `
98
+ --color-brand-1: #e8fbff;
99
+ --color-brand-2: #aee7f4;
100
+ --color-brand-3: #79d4e9;
101
+ --color-brand-4: #4ac2dd;
102
+ --color-brand-5: #22b2d2;
103
+ --color-brand-6: #00a2c7;
104
+ --color-brand-7: #0f91af;
105
+ --color-brand-8: #1b8097;
106
+ --color-brand-9: #246e7f;
107
+ --color-brand-10: #285c67;
108
+ --color-brand-11: #28484f;
109
+ --text-color-on-color: #ffffff;
110
+ `;
111
+ case 'ocean':
112
+ return (0, styled_components_1.css) `
113
+ --color-brand-1: #e8f5ff;
114
+ --color-brand-2: #b6dfff;
115
+ --color-brand-3: #85caff;
116
+ --color-brand-4: #56b5ff;
117
+ --color-brand-5: #29a2ff;
118
+ --color-brand-6: #0090ff;
119
+ --color-brand-7: #1384dc;
120
+ --color-brand-8: #2277b9;
121
+ --color-brand-9: #2a6795;
122
+ --color-brand-10: #2d5472;
123
+ --color-brand-11: #283e4f;
124
+ --text-color-on-color: #ffffff;
125
+ `;
126
+ case 'indigo':
127
+ return (0, styled_components_1.css) `
128
+ --color-brand-1: #e8edff;
129
+ --color-brand-2: #b5d7ff;
130
+ --color-brand-3: #99aef1;
131
+ --color-brand-4: #7691eb;
132
+ --color-brand-5: #5879e4;
133
+ --color-brand-6: #3e63dd;
134
+ --color-brand-7: #3c5bc1;
135
+ --color-brand-8: #3952a4;
136
+ --color-brand-9: #364988;
137
+ --color-brand-10: #303e6b;
138
+ --color-brand-11: #28314f;
139
+ --text-color-on-color: #ffffff;
140
+ `;
141
+ case 'iris':
142
+ return (0, styled_components_1.css) `
143
+ --color-brand-1: #ebebff;
144
+ --color-brand-2: #c8c8f7;
145
+ --color-brand-3: #a7a7ef;
146
+ --color-brand-4: #8a8ae6;
147
+ --color-brand-5: #7070de;
148
+ --color-brand-6: #5b5bd6;
149
+ --color-brand-7: #5353bb;
150
+ --color-brand-8: #4c4ca0;
151
+ --color-brand-9: #434385;
152
+ --color-brand-10: #3a3a6a;
153
+ --color-brand-11: #2e2e4f;
154
+ --text-color-on-color: #ffffff;
155
+ `;
156
+ default:
157
+ return (0, styled_components_1.css) `
158
+ --color-brand-1: #f0f4ff;
159
+ --color-brand-2: #dfe8ff;
160
+ --color-brand-3: #bfd0ff;
161
+ --color-brand-4: #9fb7ff;
162
+ --color-brand-5: #87a3ff;
163
+ --color-brand-6: #5f81ff;
164
+ --color-brand-7: #4561db;
165
+ --color-brand-8: #2f46b7;
166
+ --color-brand-9: #1e2f93;
167
+ --color-brand-10: #222d7a;
168
+ --color-brand-11: #232a61;
169
+ --text-color-on-color: #ffffff;
170
+ `;
171
+ }
172
+ }
173
+ /**
174
+ * @tokens Palette
175
+ */
176
+ exports.activeBrandPaletteLight = (0, styled_components_1.css) `
177
+ ${({ palette }) => brandPaletteLight(palette)}
178
+ `;
179
+ //# sourceMappingURL=palette.js.map
@@ -2,7 +2,6 @@ import { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
2
2
  import { ENTITY_RELATION_TYPES } from '@redocly/config';
3
3
  import type { CatalogEntityConfig, EntitiesCatalogConfig, LayoutVariant } from '@redocly/config';
4
4
  import type { CatalogFilterConfig } from '../../config';
5
- export type SortOption = 'title' | '-title' | 'type' | '-type';
6
5
  export type FilterResult = {
7
6
  value: string;
8
7
  count: number;
@@ -20,8 +19,8 @@ export type UseCatalogResponse = {
20
19
  filterQuery: string;
21
20
  searchQuery: string;
22
21
  setSearchQuery: (query: string) => void;
23
- sortOption: SortOption | null;
24
- setSortOption: (option: SortOption | null) => void;
22
+ sortOption: string | null;
23
+ setSortOption: (option: string | null) => void;
25
24
  handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
26
25
  isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
27
26
  viewMode: CatalogViewMode;
@@ -34,8 +33,8 @@ export type UseCatalogResponse = {
34
33
  collapsedSidebar: boolean;
35
34
  };
36
35
  export type UseCatalogSortResponse = {
37
- sortOption: SortOption | null;
38
- setSortOption: (option: SortOption | null) => void;
36
+ sortOption: string | null;
37
+ setSortOption: (option: string | null) => void;
39
38
  handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
40
39
  isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
41
40
  };
@@ -134,8 +133,8 @@ export type BffCatalogRelatedEntity = {
134
133
  metadata?: Record<string, any>;
135
134
  version?: string | null;
136
135
  revision?: string | null;
137
- readonly createdAt: string | null;
138
- readonly updatedAt: string | null;
136
+ readonly createdAt: string;
137
+ readonly updatedAt: string;
139
138
  };
140
139
  export type BffCatalogEntity = {
141
140
  readonly id: string;
@@ -220,3 +219,20 @@ export type SidebarConnectedEntity = {
220
219
  key: string;
221
220
  version?: string;
222
221
  };
222
+ export type CatalogEntityPageProps = {
223
+ status: 'success';
224
+ entity: BffCatalogEntity;
225
+ relatedEntity: BffCatalogRelatedEntity | null;
226
+ relations: BffCatalogRelatedEntityList;
227
+ entitiesCatalogConfig: EntitiesCatalogConfig;
228
+ catalogConfig: CatalogEntityConfig;
229
+ sharedDataIds?: Record<string, string>;
230
+ };
231
+ export type CatalogEntityProps = {
232
+ RedocSchema: React.ComponentType<any>;
233
+ StoreProvider: React.ComponentType<any>;
234
+ GraphqlTypeRenderer?: React.ComponentType<{
235
+ sdl: string;
236
+ typeName: string;
237
+ }>;
238
+ };
@@ -1,11 +1,12 @@
1
+ import type { ResolvedBannerConfig } from '@redocly/config';
1
2
  import type { AsyncApiRealmUI } from '@redocly/realm-asyncapi-sdk';
2
- import type { BannerConfig, PageData, PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
3
+ import type { PageData, PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
3
4
  import type { ShikiTransformer } from '@shikijs/types';
4
5
  import type { Callback, TFunction as TFunc } from 'i18next';
5
6
  import type { To, Location, NavigateFunction } from 'react-router-dom';
6
7
  import type { UseQueryResult } from '@tanstack/react-query';
7
8
  import type { CatalogConfig, ProductUiConfig } from '../../config';
8
- import type { UseCatalogResponse, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, UseCatalogProps, CatalogApiParams, CatalogApiResults, SortOption } from './catalog';
9
+ import type { UseCatalogResponse, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, UseCatalogProps, CatalogApiParams, CatalogApiResults } from './catalog';
9
10
  import type { UserMenuData } from './user-menu';
10
11
  import type { ItemState } from './sidebar';
11
12
  import type { SearchItemData, SearchFacet, SearchFilterItem, SearchFacetQuery, AiSearchConversationItem, ToolCallName, ContentSegment } from './search';
@@ -65,7 +66,7 @@ export type ThemeHooks = {
65
66
  currentItemSiblings?: BreadcrumbItem[];
66
67
  };
67
68
  useBanner: () => {
68
- banner: BannerConfig | undefined;
69
+ banner: ResolvedBannerConfig | undefined;
69
70
  dismissBanner: (content: string) => void;
70
71
  };
71
72
  useSearch: (product?: string, autoSearchDisabled?: boolean) => {
@@ -111,6 +112,7 @@ export type ThemeHooks = {
111
112
  contentSegments: ContentSegment[];
112
113
  };
113
114
  useMarkdownText: (text: string) => React.ReactNode;
115
+ useMarkdocRenderer: (ast: unknown) => React.ReactNode;
114
116
  useFacetQuery: (field: string) => {
115
117
  searchFacet: SearchFacet | null;
116
118
  setSearchFacet: React.Dispatch<React.SetStateAction<SearchFacet | null>>;
@@ -137,7 +139,7 @@ export type ThemeHooks = {
137
139
  nextPage?: ResolvedNavItemWithLink;
138
140
  } | undefined;
139
141
  useCatalog: (props?: UseCatalogProps) => UseCatalogResponse;
140
- useCatalogSort: (defaultSortOption?: SortOption | null) => UseCatalogSortResponse;
142
+ useCatalogSort: (defaultSortOption?: string | null) => UseCatalogSortResponse;
141
143
  useCatalogSearch: () => UseCatalogSearchResponse;
142
144
  useFetchCatalogEntities: (params: CatalogApiParams, initialData?: BffCatalogEntityList) => CatalogApiResults<BffCatalogEntity>;
143
145
  useFetchCatalogEntitiesRelations: (params: CatalogApiParams & {
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const ColorPaletteIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;