@redocly/theme 0.64.0-next.1 → 0.64.0-next.3

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 (223) hide show
  1. package/lib/components/Admonition/Admonition.d.ts +1 -1
  2. package/lib/components/Admonition/Admonition.js +2 -0
  3. package/lib/components/Admonition/variables.dark.js +3 -0
  4. package/lib/components/Admonition/variables.js +13 -0
  5. package/lib/components/Banner/Banner.js +3 -3
  6. package/lib/components/Button/variables.dark.js +2 -2
  7. package/lib/components/Button/variables.js +3 -3
  8. package/lib/components/Catalog/CatalogActionsRow.d.ts +3 -3
  9. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +4 -6
  10. package/lib/components/Catalog/CatalogEntities.d.ts +2 -2
  11. package/lib/components/Catalog/CatalogEntities.js +1 -1
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +1 -8
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.js +3 -1
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +1 -1
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +1 -1
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +1 -0
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +2 -1
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +2 -6
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +5 -5
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +1 -1
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +15 -7
  22. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +2 -2
  23. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.d.ts +3 -3
  24. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.js +4 -1
  25. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +3 -3
  26. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +14 -2
  27. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +1 -1
  28. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +3 -3
  29. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +1 -1
  30. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +2 -2
  31. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +3 -3
  32. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +13 -3
  33. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +4 -3
  34. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +3 -2
  35. package/lib/components/Catalog/CatalogEntityTypeIcon.js +9 -9
  36. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.d.ts +2 -3
  37. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.d.ts +2 -3
  38. package/lib/components/Catalog/CatalogPageDescription.js +1 -1
  39. package/lib/components/Catalog/CatalogSortButton.d.ts +4 -5
  40. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +6 -2
  41. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +2 -2
  42. package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.d.ts +5 -0
  43. package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.js +45 -0
  44. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +5 -3
  45. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +2 -3
  46. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +3 -2
  47. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +1 -2
  48. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +15 -5
  49. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +3 -2
  50. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +2 -2
  51. package/lib/components/Catalog/CatalogTags.d.ts +11 -0
  52. package/lib/components/Catalog/CatalogTags.js +62 -0
  53. package/lib/components/Catalog/variables.js +22 -14
  54. package/lib/components/Filter/variables.js +1 -1
  55. package/lib/components/Link/Link.js +2 -2
  56. package/lib/components/Menu/MenuItem.js +1 -0
  57. package/lib/components/Menu/variables.dark.js +2 -0
  58. package/lib/components/Menu/variables.js +4 -3
  59. package/lib/components/Search/SearchDialog.js +118 -116
  60. package/lib/components/SvgViewer/variables.dark.js +1 -1
  61. package/lib/components/Switch/variables.dark.js +2 -2
  62. package/lib/components/Switch/variables.js +1 -1
  63. package/lib/components/TableOfContent/TableOfContent.js +1 -0
  64. package/lib/components/TableOfContent/variables.js +3 -2
  65. package/lib/components/Toast/Toast.d.ts +14 -0
  66. package/lib/components/Toast/Toast.js +239 -0
  67. package/lib/components/Toast/variables.d.ts +1 -0
  68. package/lib/components/Toast/variables.js +64 -0
  69. package/lib/components/Tooltip/JsTooltip.js +1 -1
  70. package/lib/core/constants/catalog.d.ts +1 -1
  71. package/lib/core/constants/catalog.js +1 -1
  72. package/lib/core/constants/toast.d.ts +1 -0
  73. package/lib/core/constants/toast.js +5 -0
  74. package/lib/core/contexts/Toast/ToastContext.d.ts +2 -0
  75. package/lib/core/contexts/Toast/ToastContext.js +6 -0
  76. package/lib/core/contexts/Toast/ToastProvider.d.ts +3 -0
  77. package/lib/core/contexts/Toast/ToastProvider.js +156 -0
  78. package/lib/core/contexts/index.d.ts +2 -0
  79. package/lib/core/contexts/index.js +2 -0
  80. package/lib/core/hooks/catalog/use-catalog-entity-link.d.ts +8 -0
  81. package/lib/core/hooks/catalog/use-catalog-entity-link.js +42 -0
  82. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.d.ts +2 -1
  83. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.js +5 -3
  84. package/lib/core/hooks/index.d.ts +3 -0
  85. package/lib/core/hooks/index.js +3 -0
  86. package/lib/core/hooks/use-toast-logic.d.ts +18 -0
  87. package/lib/core/hooks/use-toast-logic.js +141 -0
  88. package/lib/core/hooks/use-toast.d.ts +11 -0
  89. package/lib/core/hooks/use-toast.js +17 -0
  90. package/lib/core/styles/dark.d.ts +3 -1
  91. package/lib/core/styles/dark.js +37 -33
  92. package/lib/core/styles/global.d.ts +6 -2
  93. package/lib/core/styles/global.js +56 -46
  94. package/lib/core/styles/palette.d.ts +6 -0
  95. package/lib/core/styles/palette.dark.d.ts +3 -0
  96. package/lib/core/styles/palette.dark.js +201 -0
  97. package/lib/core/styles/palette.js +175 -0
  98. package/lib/core/types/catalog.d.ts +23 -7
  99. package/lib/core/types/hooks.d.ts +6 -4
  100. package/lib/core/types/index.d.ts +1 -0
  101. package/lib/core/types/search.d.ts +1 -0
  102. package/lib/core/types/toast.d.ts +23 -0
  103. package/lib/core/types/toast.js +3 -0
  104. package/lib/core/utils/get-auto-dismiss-duration.d.ts +2 -0
  105. package/lib/core/utils/get-auto-dismiss-duration.js +15 -0
  106. package/lib/core/utils/index.d.ts +1 -0
  107. package/lib/core/utils/index.js +1 -0
  108. package/lib/icons/CheckboxIcon/CheckboxIcon.js +6 -4
  109. package/lib/icons/CheckboxIcon/variables.dark.js +2 -1
  110. package/lib/icons/CheckboxIcon/variables.js +3 -3
  111. package/lib/icons/IdeaIcon/IdeaIcon.d.ts +9 -0
  112. package/lib/icons/IdeaIcon/IdeaIcon.js +24 -0
  113. package/lib/icons/NewChatIcon/NewChatIcon.d.ts +11 -0
  114. package/lib/icons/NewChatIcon/NewChatIcon.js +25 -0
  115. package/lib/index.d.ts +5 -1
  116. package/lib/index.js +5 -1
  117. package/lib/markdoc/components/Heading/Heading.js +2 -2
  118. package/lib/markdoc/components/Mermaid/Mermaid.js +0 -2
  119. package/lib/markdoc/components/Tabs/variables.js +3 -3
  120. package/lib/markdoc/components/default.d.ts +0 -1
  121. package/lib/markdoc/components/default.js +0 -1
  122. package/lib/markdoc/tags/admonition.js +1 -1
  123. package/package.json +2 -2
  124. package/src/components/Admonition/Admonition.tsx +3 -1
  125. package/src/components/Admonition/variables.dark.ts +3 -0
  126. package/src/components/Admonition/variables.ts +13 -0
  127. package/src/components/Banner/Banner.tsx +7 -7
  128. package/src/components/Button/variables.dark.ts +2 -2
  129. package/src/components/Button/variables.ts +3 -3
  130. package/src/components/Catalog/CatalogActionsRow.tsx +3 -3
  131. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +4 -6
  132. package/src/components/Catalog/CatalogEntities.tsx +3 -3
  133. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +3 -24
  134. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.tsx +3 -1
  135. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -1
  136. package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +1 -1
  137. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +1 -0
  138. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +2 -1
  139. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +8 -10
  140. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +13 -8
  141. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +1 -0
  142. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +27 -15
  143. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +2 -2
  144. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +9 -9
  145. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +17 -9
  146. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +1 -1
  147. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +4 -8
  148. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +2 -2
  149. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +16 -10
  150. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +4 -3
  151. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +18 -11
  152. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.tsx +3 -3
  153. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.tsx +2 -3
  154. package/src/components/Catalog/CatalogPageDescription.tsx +1 -1
  155. package/src/components/Catalog/CatalogSortButton.tsx +5 -6
  156. package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +6 -2
  157. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +2 -2
  158. package/src/components/Catalog/CatalogTableView/CatalogLastUpdateCell.tsx +54 -0
  159. package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +5 -2
  160. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +4 -3
  161. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +17 -7
  162. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +3 -2
  163. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +2 -2
  164. package/src/components/Catalog/CatalogTags.tsx +115 -0
  165. package/src/components/Catalog/variables.ts +22 -14
  166. package/src/components/Filter/variables.ts +1 -1
  167. package/src/components/Link/Link.tsx +1 -1
  168. package/src/components/Menu/MenuItem.tsx +5 -1
  169. package/src/components/Menu/variables.dark.ts +2 -0
  170. package/src/components/Menu/variables.ts +4 -3
  171. package/src/components/Search/SearchDialog.tsx +299 -293
  172. package/src/components/SvgViewer/variables.dark.ts +1 -1
  173. package/src/components/Switch/variables.dark.ts +2 -2
  174. package/src/components/Switch/variables.ts +1 -1
  175. package/src/components/TableOfContent/TableOfContent.tsx +1 -0
  176. package/src/components/TableOfContent/variables.ts +3 -2
  177. package/src/components/Toast/Toast.tsx +289 -0
  178. package/src/components/Toast/variables.ts +61 -0
  179. package/src/components/Tooltip/JsTooltip.tsx +1 -1
  180. package/src/core/constants/catalog.ts +1 -1
  181. package/src/core/constants/toast.ts +1 -0
  182. package/src/core/contexts/Toast/ToastContext.tsx +5 -0
  183. package/src/core/contexts/Toast/ToastProvider.tsx +206 -0
  184. package/src/core/contexts/index.ts +2 -0
  185. package/src/core/hooks/catalog/use-catalog-entity-link.ts +46 -0
  186. package/src/core/hooks/catalog/use-catalog-table-header-cell-actions.ts +10 -2
  187. package/src/core/hooks/index.ts +3 -0
  188. package/src/core/hooks/use-toast-logic.ts +203 -0
  189. package/src/core/hooks/use-toast.ts +47 -0
  190. package/src/core/styles/dark.ts +9 -4
  191. package/src/core/styles/global.ts +30 -20
  192. package/src/core/styles/palette.dark.ts +199 -0
  193. package/src/core/styles/palette.ts +173 -0
  194. package/src/core/types/catalog.ts +24 -8
  195. package/src/core/types/hooks.ts +5 -10
  196. package/src/core/types/index.ts +1 -0
  197. package/src/core/types/search.ts +1 -0
  198. package/src/core/types/toast.ts +28 -0
  199. package/src/core/utils/get-auto-dismiss-duration.ts +20 -0
  200. package/src/core/utils/index.ts +1 -0
  201. package/src/icons/CheckboxIcon/CheckboxIcon.tsx +26 -17
  202. package/src/icons/CheckboxIcon/variables.dark.ts +2 -1
  203. package/src/icons/CheckboxIcon/variables.ts +3 -3
  204. package/src/icons/IdeaIcon/IdeaIcon.tsx +32 -0
  205. package/src/icons/NewChatIcon/NewChatIcon.tsx +39 -0
  206. package/src/index.ts +5 -1
  207. package/src/markdoc/components/Heading/Heading.tsx +2 -1
  208. package/src/markdoc/components/Mermaid/Mermaid.tsx +0 -2
  209. package/src/markdoc/components/Tabs/variables.ts +3 -3
  210. package/src/markdoc/components/default.ts +0 -1
  211. package/src/markdoc/tags/admonition.ts +1 -1
  212. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +0 -10
  213. package/lib/components/Catalog/CatalogTagsWithTooltip.js +0 -57
  214. package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.d.ts +0 -7
  215. package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.js +0 -95
  216. package/lib/markdoc/components/ExcalidrawDiagram/variables.d.ts +0 -1
  217. package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.d.ts +0 -1
  218. package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.js +0 -8
  219. package/lib/markdoc/components/ExcalidrawDiagram/variables.js +0 -15
  220. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +0 -101
  221. package/src/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.tsx +0 -85
  222. package/src/markdoc/components/ExcalidrawDiagram/variables.dark.ts +0 -5
  223. package/src/markdoc/components/ExcalidrawDiagram/variables.ts +0 -12
@@ -0,0 +1,175 @@
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 'slate':
8
+ return (0, styled_components_1.css) `
9
+ --color-brand-1: #ededf2; // @presenter Color
10
+ --color-brand-2: #dcdde5; // @presenter Color
11
+ --color-brand-3: #c4c6d1; // @presenter Color
12
+ --color-brand-4: #9b9ca8; // @presenter Color
13
+ --color-brand-5: #6e6f7a; // @presenter Color
14
+ --color-brand-6: #1a1c21; // @presenter Color
15
+ --color-brand-7: #22242b; // @presenter Color
16
+ --color-brand-8: #2a2b33; // @presenter Color
17
+ --color-brand-9: #3b3c45; // @presenter Color
18
+ --color-brand-10: #555761; // @presenter Color
19
+ --color-brand-11: #6e6f7a; // @presenter Color
20
+ --text-color-on-color: #ffffff; // @presenter Color
21
+ `;
22
+ case 'pink':
23
+ return (0, styled_components_1.css) `
24
+ --color-brand-1: #ffe8f7; // @presenter Color
25
+ --color-brand-2: #f7bfe2; // @presenter Color
26
+ --color-brand-3: #ef99cf; // @presenter Color
27
+ --color-brand-4: #e677bd; // @presenter Color
28
+ --color-brand-5: #de59ad; // @presenter Color
29
+ --color-brand-6: #d6409f; // @presenter Color
30
+ --color-brand-7: #bb3d8d; // @presenter Color
31
+ --color-brand-8: #a03a7b; // @presenter Color
32
+ --color-brand-9: #853668; // @presenter Color
33
+ --color-brand-10: #6a3055; // @presenter Color
34
+ --color-brand-11: #4f2841; // @presenter Color
35
+ --text-color-on-color: #ffffff; // @presenter Color
36
+ `;
37
+ case 'coral':
38
+ return (0, styled_components_1.css) `
39
+ --color-brand-1: #ffe8ea; // @presenter Color
40
+ --color-brand-2: #fac5c9; // @presenter Color
41
+ --color-brand-3: #f5a3aa; // @presenter Color
42
+ --color-brand-4: #ef858d; // @presenter Color
43
+ --color-brand-5: #ea6a75; // @presenter Color
44
+ --color-brand-6: #e5535f; // @presenter Color
45
+ --color-brand-7: #c74b55; // @presenter Color
46
+ --color-brand-8: #a9434c; // @presenter Color
47
+ --color-brand-9: #8b3c42; // @presenter Color
48
+ --color-brand-10: #6d3338; // @presenter Color
49
+ --color-brand-11: #4f282b; // @presenter Color
50
+ --text-color-on-color: #ffffff; // @presenter Color
51
+ `;
52
+ case 'amber':
53
+ return (0, styled_components_1.css) `
54
+ --color-brand-1: #fff4e8; // @presenter Color
55
+ --color-brand-2: #feddba; // @presenter Color
56
+ --color-brand-3: #fdc78c; // @presenter Color
57
+ --color-brand-4: #fcb261; // @presenter Color
58
+ --color-brand-5: #fb9f3a; // @presenter Color
59
+ --color-brand-6: #fa8d15; // @presenter Color
60
+ --color-brand-7: #d88121; // @presenter Color
61
+ --color-brand-8: #b6732a; // @presenter Color
62
+ --color-brand-9: #93632f; // @presenter Color
63
+ --color-brand-10: #71512e; // @presenter Color
64
+ --color-brand-11: #4f3c28; // @presenter Color
65
+ --text-color-on-color: #ffffff; // @presenter Color
66
+ `;
67
+ case 'jade':
68
+ return (0, styled_components_1.css) `
69
+ --color-brand-1: #e8fff9; // @presenter Color
70
+ --color-brand-2: #b5edde; // @presenter Color
71
+ --color-brand-3: #88dac4; // @presenter Color
72
+ --color-brand-4: #61c8ad; // @presenter Color
73
+ --color-brand-5: #42b597; // @presenter Color
74
+ --color-brand-6: #29a383; // @presenter Color
75
+ --color-brand-7: #2a9277; // @presenter Color
76
+ --color-brand-8: #2b816b; // @presenter Color
77
+ --color-brand-9: #2b715e; // @presenter Color
78
+ --color-brand-10: #2a6052; // @presenter Color
79
+ --color-brand-11: #284f45; // @presenter Color
80
+ --text-color-on-color: #ffffff; // @presenter Color
81
+ `;
82
+ case 'cyan':
83
+ return (0, styled_components_1.css) `
84
+ --color-brand-1: #e8fbff; // @presenter Color
85
+ --color-brand-2: #aee7f4; // @presenter Color
86
+ --color-brand-3: #79d4e9; // @presenter Color
87
+ --color-brand-4: #4ac2dd; // @presenter Color
88
+ --color-brand-5: #22b2d2; // @presenter Color
89
+ --color-brand-6: #00a2c7; // @presenter Color
90
+ --color-brand-7: #0f91af; // @presenter Color
91
+ --color-brand-8: #1b8097; // @presenter Color
92
+ --color-brand-9: #246e7f; // @presenter Color
93
+ --color-brand-10: #285c67; // @presenter Color
94
+ --color-brand-11: #28484f; // @presenter Color
95
+ --text-color-on-color: #ffffff; // @presenter Color
96
+ `;
97
+ case 'ocean':
98
+ return (0, styled_components_1.css) `
99
+ --color-brand-1: #e8f5ff; // @presenter Color
100
+ --color-brand-2: #b6dfff; // @presenter Color
101
+ --color-brand-3: #85caff; // @presenter Color
102
+ --color-brand-4: #56b5ff; // @presenter Color
103
+ --color-brand-5: #29a2ff; // @presenter Color
104
+ --color-brand-6: #0090ff; // @presenter Color
105
+ --color-brand-7: #1384dc; // @presenter Color
106
+ --color-brand-8: #2277b9; // @presenter Color
107
+ --color-brand-9: #2a6795; // @presenter Color
108
+ --color-brand-10: #2d5472; // @presenter Color
109
+ --color-brand-11: #283e4f; // @presenter Color
110
+ --text-color-on-color: #ffffff; // @presenter Color
111
+ `;
112
+ case 'indigo':
113
+ return (0, styled_components_1.css) `
114
+ --color-brand-1: #e8edff; // @presenter Color
115
+ --color-brand-2: #b5d7ff; // @presenter Color
116
+ --color-brand-3: #99aef1; // @presenter Color
117
+ --color-brand-4: #7691eb; // @presenter Color
118
+ --color-brand-5: #5879e4; // @presenter Color
119
+ --color-brand-6: #3e63dd; // @presenter Color
120
+ --color-brand-7: #3c5bc1; // @presenter Color
121
+ --color-brand-8: #3952a4; // @presenter Color
122
+ --color-brand-9: #364988; // @presenter Color
123
+ --color-brand-10: #303e6b; // @presenter Color
124
+ --color-brand-11: #28314f; // @presenter Color
125
+ --text-color-on-color: #ffffff; // @presenter Color
126
+ `;
127
+ case 'iris':
128
+ return (0, styled_components_1.css) `
129
+ --color-brand-1: #ebebff; // @presenter Color
130
+ --color-brand-2: #c8c8f7; // @presenter Color
131
+ --color-brand-3: #a7a7ef; // @presenter Color
132
+ --color-brand-4: #8a8ae6; // @presenter Color
133
+ --color-brand-5: #7070de; // @presenter Color
134
+ --color-brand-6: #5b5bd6; // @presenter Color
135
+ --color-brand-7: #5353bb; // @presenter Color
136
+ --color-brand-8: #4c4ca0; // @presenter Color
137
+ --color-brand-9: #434385; // @presenter Color
138
+ --color-brand-10: #3a3a6a; // @presenter Color
139
+ --color-brand-11: #2e2e4f; // @presenter Color
140
+ --text-color-on-color: #ffffff; // @presenter Color
141
+ `;
142
+ default:
143
+ return (0, styled_components_1.css) `
144
+ --button-bg-color-primary-legacy: var(--color-blue-6); // @presenter Color
145
+ --button-bg-color-primary-hover-legacy: var(--color-blue-7); // @presenter Color
146
+ --button-bg-color-primary-pressed-legacy: var(--color-blue-8); // @presenter Color
147
+
148
+ --toc-item-text-color-active-legacy: var(--text-color-primary); // @presenter Color
149
+ --toc-item-border-color-active-legacy: var(--border-color-invers); // @presenter Color
150
+
151
+ --checkbox-border-color-legacy: var(--border-color-primary); // @presenter Color
152
+ --checkbox-box-color-active-legacy: var(--color-warm-grey-10); // @presenter Color
153
+
154
+ --switch-bg-color-selected-legacy: var(--color-warm-grey-9); // @presenter Color
155
+
156
+ --md-tabs-active-tab-bg-color-legacy: var(--bg-color-active); // @presenter Color
157
+ --md-tabs-active-tab-text-color-legacy: var(--text-color-primary); // @presenter Color
158
+ --md-tabs-active-tab-border-color-legacy: var(--text-color-primary); // @presenter Color
159
+
160
+ --admonition-default-bg-color-legacy: var(--color-warm-grey-2); // @presenter Color
161
+ --admonition-default-icon-color-legacy: var(--color-warm-grey-11); // @presenter Color
162
+ --admonition-default-border-color-legacy: var(--color-warm-grey-4); // @presenter Color
163
+
164
+ --menu-item-bg-color-active-legacy: var(--tree-bg-color-active); // @presenter Color
165
+ --menu-item-color-active-legacy: var(--tree-content-color-default); // @presenter Color
166
+ `;
167
+ }
168
+ }
169
+ /**
170
+ * @tokens Palette
171
+ */
172
+ exports.activeBrandPaletteLight = (0, styled_components_1.css) `
173
+ ${({ palette }) => brandPaletteLight(palette)}
174
+ `;
175
+ //# 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 & {
@@ -20,3 +20,4 @@ export type * from './page-actions';
20
20
  export type * from './open-api-info';
21
21
  export type * from './segmented';
22
22
  export type * from './tooltip';
23
+ export type * from './toast';
@@ -60,6 +60,7 @@ export type SearchFacet = {
60
60
  type: SearchFacetType;
61
61
  values: string[] | SearchFacetCount[];
62
62
  index?: number;
63
+ queryable?: boolean;
63
64
  };
64
65
  export type SearchFacetCount = {
65
66
  value: string;
@@ -0,0 +1,23 @@
1
+ import type { ReactNode } from 'react';
2
+ export type ToastType = 'info' | 'success' | 'warning' | 'error' | 'loading';
3
+ export interface ToastOptions {
4
+ type?: ToastType;
5
+ title: string;
6
+ description?: string;
7
+ duration?: number;
8
+ onClose?: () => void;
9
+ }
10
+ export interface ToastItem extends ToastOptions {
11
+ id: string;
12
+ type: ToastType;
13
+ isExiting: boolean;
14
+ }
15
+ export interface ToastContextValue {
16
+ showToast: (options: ToastOptions) => string;
17
+ dismissToast: (id: string) => void;
18
+ updateToast: (id: string, updates: Partial<ToastOptions>) => void;
19
+ }
20
+ export interface ToastProviderProps {
21
+ children: ReactNode;
22
+ mountId?: string;
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1,2 @@
1
+ import type { ToastType } from '../types/toast';
2
+ export declare function getAutoDismissDuration(hasDetails: boolean, type: ToastType, duration?: number): number | null;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAutoDismissDuration = getAutoDismissDuration;
4
+ const SIMPLE_TOAST_DURATION_MS = 2500;
5
+ const DETAILED_TOAST_DURATION_MS = 4000;
6
+ function getAutoDismissDuration(hasDetails, type, duration) {
7
+ if (duration !== undefined) {
8
+ return duration;
9
+ }
10
+ if (type === 'loading') {
11
+ return null;
12
+ }
13
+ return hasDetails ? DETAILED_TOAST_DURATION_MS : SIMPLE_TOAST_DURATION_MS;
14
+ }
15
+ //# sourceMappingURL=get-auto-dismiss-duration.js.map
@@ -45,3 +45,4 @@ export * from './transform-revisions-to-version-history';
45
45
  export * from './build-revision-url';
46
46
  export * from './content-segments';
47
47
  export * from './custom-catalog-options-casing';
48
+ export * from './get-auto-dismiss-duration';
@@ -61,4 +61,5 @@ __exportStar(require("./transform-revisions-to-version-history"), exports);
61
61
  __exportStar(require("./build-revision-url"), exports);
62
62
  __exportStar(require("./content-segments"), exports);
63
63
  __exportStar(require("./custom-catalog-options-casing"), exports);
64
+ __exportStar(require("./get-auto-dismiss-duration"), exports);
64
65
  //# sourceMappingURL=index.js.map
@@ -6,10 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CheckboxIcon = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const Icon = ({ className, checked = false, onClick, }) => (react_1.default.createElement("span", { className: className, onClick: onClick }, checked ? (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
10
- react_1.default.createElement("path", { d: "M0 4C0 1.79086 1.79086 0 4 0H12C14.2091 0 16 1.79086 16 4V12C16 14.2091 14.2091 16 12 16H4C1.79086 16 0 14.2091 0 12V4Z", fill: "var(--checkbox-box-color-active)" }),
11
- react_1.default.createElement("path", { d: "M3.91308 7.03516H3.91326C3.99256 7.03525 4.07081 7.05331 4.14213 7.08798C4.21341 7.12262 4.27591 7.17295 4.32497 7.2352L3.91308 7.03516ZM3.91308 7.03516H3.09394C2.89031 7.03516 2.7766 7.26975 2.90232 7.4292L2.90237 7.42927L6.11214 11.4957L6.11218 11.4957C6.32247 11.7619 6.72568 11.7611 6.93667 11.4962L6.93708 11.4957L12.6597 4.24398C12.6598 4.24378 12.66 4.24358 12.6602 4.24338C12.7884 4.08295 12.6699 3.85 12.4689 3.85H11.6498C11.4894 3.85 11.3367 3.9235 11.2376 4.05044C11.2375 4.05055 11.2374 4.05066 11.2373 4.05077L6.52403 10.0216M3.91308 7.03516L6.52403 10.0216M6.52403 10.0216L4.32506 7.23531L6.52403 10.0216Z", fill: "var(--checkbox-content-color-inverse)", stroke: "var(--checkbox-content-color-inverse)" }))) : (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "var(--checkbox-box-color)", xmlns: "http://www.w3.org/2000/svg" },
12
- react_1.default.createElement("rect", { x: "0.5", y: "0.5", width: "15", height: "15", rx: "3.5", stroke: "var(--checkbox-border-color)" })))));
9
+ const Icon = ({ className, checked = false, onClick, }) => (react_1.default.createElement("span", { className: className, onClick: onClick }, checked ? (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
10
+ react_1.default.createElement("path", { d: "M0 4C0 1.79086 1.79086 0 4 0H10C12.2091 0 14 1.79086 14 4V10C14 12.2091 12.2091 14 10 14H4C1.79086 14 0 12.2091 0 10V4Z", fill: "var(--checkbox-content-color-inverse)" }),
11
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 1H4C2.34315 1 1 2.34315 1 4V10C1 11.6569 2.34315 13 4 13H10C11.6569 13 13 11.6569 13 10V4C13 2.34315 11.6569 1 10 1ZM4 0C1.79086 0 0 1.79086 0 4V10C0 12.2091 1.79086 14 4 14H10C12.2091 14 14 12.2091 14 10V4C14 1.79086 12.2091 0 10 0H4Z", fill: "var(--checkbox-box-color-active)" }),
12
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.36018 9.98574L10.9106 4.21938C11.0343 4.06448 10.9203 3.83984 10.7272 3.83984H10.0758C9.93597 3.83984 9.80268 3.90389 9.71608 4.01474L9.03424 4.8785L5.99975 8.72257L4.28308 6.54742C4.24025 6.49305 4.18567 6.44909 4.12342 6.41883C4.06118 6.38858 3.99269 6.37282 3.92348 6.37273H3.27208C3.07619 6.37273 2.96673 6.59854 3.08778 6.75208L5.64029 9.98581C5.82388 10.2182 6.17616 10.2168 6.36018 9.98574Z", fill: "var(--checkbox-box-color-active)" }))) : (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "var(--checkbox-box-color)", xmlns: "http://www.w3.org/2000/svg" },
13
+ react_1.default.createElement("path", { d: "M0 4C0 1.79086 1.79086 0 4 0H10C12.2091 0 14 1.79086 14 4V10C14 12.2091 12.2091 14 10 14H4C1.79086 14 0 12.2091 0 10V4Z", fill: "var(--checkbox-content-color-inverse)" }),
14
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 1H4C2.34315 1 1 2.34315 1 4V10C1 11.6569 2.34315 13 4 13H10C11.6569 13 13 11.6569 13 10V4C13 2.34315 11.6569 1 10 1ZM4 0C1.79086 0 0 1.79086 0 4V10C0 12.2091 1.79086 14 4 14H10C12.2091 14 14 12.2091 14 10V4C14 1.79086 12.2091 0 10 0H4Z", fill: "var(--checkbox-border-color)" })))));
13
15
  exports.CheckboxIcon = (0, styled_components_1.default)(Icon).attrs({
14
16
  'data-component-name': 'icons/CheckboxIcon/CheckboxIcon',
15
17
  }) `
@@ -5,6 +5,7 @@ const styled_components_1 = require("styled-components");
5
5
  exports.checkboxDarkMode = (0, styled_components_1.css) `
6
6
  --checkbox-box-color-disabled: var(--color-warm-grey-3);
7
7
  --checkbox-border-color-disabled: var(--border-color-primary);
8
- --checkbox-content-color-inverse: var(--color-warm-grey-1);
8
+ --checkbox-content-color-inverse: transparent;
9
+ --checkbox-border-color: var(--color-brand-subtle-border, var(--checkbox-border-color-legacy));
9
10
  `;
10
11
  //# sourceMappingURL=variables.dark.js.map
@@ -9,14 +9,14 @@ exports.checkbox = (0, styled_components_1.css) `
9
9
  --checkbox-content-color-disabled: var(--text-color-disabled);
10
10
 
11
11
  --checkbox-box-color: transparent;
12
- --checkbox-box-color-active: var(--color-warm-grey-10);
12
+ --checkbox-box-color-active: var(--color-primary-base, var(--checkbox-box-color-active-legacy));
13
13
  --checkbox-box-color-focused: var(--color-warm-grey-9);
14
14
  --checkbox-box-color-disabled: var(--color-warm-grey-1);
15
15
 
16
- --checkbox-border-color: var(--border-color-primary);
16
+ --checkbox-border-color: var(--color-primary-border, var(--checkbox-border-color-legacy));
17
17
  --checkbox-border-color-active: var(--color-warm-grey-8);
18
18
  --checkbox-border-color-disabled: var(--border-color-secondary);
19
19
 
20
- --checkbox-content-color-inverse: var(--color-white);
20
+ --checkbox-content-color-inverse: transparent;
21
21
  `;
22
22
  //# sourceMappingURL=variables.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const IdeaIcon: 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">;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IdeaIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "12", height: "16", viewBox: "0 0 12 16", fill: "none" }, props),
11
+ react_1.default.createElement("path", { d: "M8.44309 12.375H2.81809V13.5H8.44309V12.375Z" }),
12
+ react_1.default.createElement("path", { d: "M7.31809 14.625H3.94309V15.75H7.31809V14.625Z" }),
13
+ react_1.default.createElement("path", { d: "M5.63059 0C4.13874 0 2.708 0.592632 1.65311 1.64752C0.59822 2.70242 0.00558778 4.13316 0.00558778 5.625C-0.0324517 6.4425 0.124148 7.25735 0.462504 8.00252C0.80086 8.74768 1.3113 9.40187 1.95184 9.91125C2.51434 10.4344 2.81809 10.7325 2.81809 11.25H3.94309C3.94309 10.215 3.31871 9.63562 2.71121 9.07875C2.18548 8.67615 1.76648 8.15078 1.49091 7.54866C1.21535 6.94654 1.09163 6.28603 1.13059 5.625C1.13059 4.43153 1.60469 3.28693 2.44861 2.44302C3.29252 1.59911 4.43711 1.125 5.63059 1.125C6.82406 1.125 7.96865 1.59911 8.81257 2.44302C9.65648 3.28693 10.1306 4.43153 10.1306 5.625C10.1689 6.28652 10.0443 6.94734 9.76775 7.5495C9.49119 8.15166 9.0711 8.67676 8.54434 9.07875C7.94246 9.64125 7.31809 10.2037 7.31809 11.25H8.44309C8.44309 10.7325 8.74121 10.4344 9.30934 9.90563C9.94943 9.39711 10.4596 8.74389 10.798 7.99971C11.1364 7.25552 11.2932 6.44163 11.2556 5.625C11.2556 4.88631 11.1101 4.15486 10.8274 3.47241C10.5447 2.78995 10.1304 2.16985 9.60806 1.64752C9.08573 1.12519 8.46564 0.71086 7.78318 0.428178C7.10073 0.145495 6.36927 0 5.63059 0Z" })));
14
+ exports.IdeaIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
15
+ 'data-component-name': 'icons/IdeaIcon/IdeaIcon',
16
+ })) `
17
+ path {
18
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
19
+ }
20
+
21
+ height: ${({ size }) => size || '16px'};
22
+ width: ${({ size }) => size || '16px'};
23
+ `;
24
+ //# sourceMappingURL=IdeaIcon.js.map
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ declare function Icon(props: IconProps): React.JSX.Element;
4
+ export declare const NewChatIcon: import("styled-components").StyledComponent<typeof Icon, any, {
5
+ 'data-component-name': string;
6
+ } & {
7
+ color?: string;
8
+ size?: string;
9
+ className?: string;
10
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
11
+ export {};
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NewChatIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ function Icon(props) {
11
+ return (react_1.default.createElement("svg", Object.assign({ width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
12
+ react_1.default.createElement("path", { fill: "currentColor", d: "M11.375 11.375H2.625V2.625H7V1.75H2.625C2.39301 1.75023 2.17058 1.84249 2.00654 2.00654C1.84249 2.17058 1.75023 2.39301 1.75 2.625V11.375C1.75023 11.607 1.84249 11.8294 2.00654 11.9935C2.17058 12.1575 2.39301 12.2498 2.625 12.25H11.375C11.607 12.2498 11.8294 12.1575 11.9935 11.9935C12.1575 11.8294 12.2498 11.607 12.25 11.375V7H11.375V11.375Z" }),
13
+ react_1.default.createElement("path", { fill: "currentColor", d: "M11.375 2.625V0.875H10.5V2.625H8.75V3.5H10.5V5.25H11.375V3.5H13.125V2.625H11.375Z" })));
14
+ }
15
+ exports.NewChatIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
16
+ 'data-component-name': 'icons/NewChatIcon/NewChatIcon',
17
+ })) `
18
+ path {
19
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
20
+ }
21
+
22
+ height: ${({ size = '14px' }) => size};
23
+ width: ${({ size = '14px' }) => size};
24
+ `;
25
+ //# sourceMappingURL=NewChatIcon.js.map
package/lib/index.d.ts CHANGED
@@ -17,6 +17,8 @@ export * from './components/Loaders/Loading';
17
17
  export * from './components/LoadMore/LoadMore';
18
18
  export * from './components/Link/Link';
19
19
  export * from './components/Portal/Portal';
20
+ export * from './components/Toast/Toast';
21
+ export * from './core/contexts/Toast/ToastProvider';
20
22
  export * from './components/Segmented/Segmented';
21
23
  export * from './components/LanguagePicker/LanguagePicker';
22
24
  export * from './components/Tooltip/Tooltip';
@@ -115,7 +117,7 @@ export * from './components/Catalog/CatalogTableView/CatalogTableHeaderCell';
115
117
  export * from './components/Catalog/CatalogTableView/CatalogTableView';
116
118
  export * from './components/Catalog/CatalogSelector';
117
119
  export * from './components/Catalog/CatalogSortButton';
118
- export * from './components/Catalog/CatalogTagsWithTooltip';
120
+ export * from './components/Catalog/CatalogTags';
119
121
  export * from './components/Catalog/CatalogViewModeToggle';
120
122
  export * from './components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton';
121
123
  export * from './components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar';
@@ -271,6 +273,8 @@ export * from './icons/ShareIcon/ShareIcon';
271
273
  export * from './icons/HashtagIcon/HashtagIcon';
272
274
  export * from './icons/FitToViewIcon/FitToViewIcon';
273
275
  export * from './icons/ColorPaletteIcon/ColorPaletteIcon';
276
+ export * from './icons/IdeaIcon/IdeaIcon';
277
+ export * from './icons/NewChatIcon/NewChatIcon';
274
278
  export * from './layouts/RootLayout';
275
279
  export * from './layouts/PageLayout';
276
280
  export * from './layouts/NotFound';
package/lib/index.js CHANGED
@@ -56,6 +56,8 @@ __exportStar(require("./components/Loaders/Loading"), exports);
56
56
  __exportStar(require("./components/LoadMore/LoadMore"), exports);
57
57
  __exportStar(require("./components/Link/Link"), exports);
58
58
  __exportStar(require("./components/Portal/Portal"), exports);
59
+ __exportStar(require("./components/Toast/Toast"), exports);
60
+ __exportStar(require("./core/contexts/Toast/ToastProvider"), exports);
59
61
  __exportStar(require("./components/Segmented/Segmented"), exports);
60
62
  __exportStar(require("./components/LanguagePicker/LanguagePicker"), exports);
61
63
  __exportStar(require("./components/Tooltip/Tooltip"), exports);
@@ -173,7 +175,7 @@ __exportStar(require("./components/Catalog/CatalogTableView/CatalogTableHeaderCe
173
175
  __exportStar(require("./components/Catalog/CatalogTableView/CatalogTableView"), exports);
174
176
  __exportStar(require("./components/Catalog/CatalogSelector"), exports);
175
177
  __exportStar(require("./components/Catalog/CatalogSortButton"), exports);
176
- __exportStar(require("./components/Catalog/CatalogTagsWithTooltip"), exports);
178
+ __exportStar(require("./components/Catalog/CatalogTags"), exports);
177
179
  __exportStar(require("./components/Catalog/CatalogViewModeToggle"), exports);
178
180
  __exportStar(require("./components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton"), exports);
179
181
  __exportStar(require("./components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar"), exports);
@@ -334,6 +336,8 @@ __exportStar(require("./icons/ShareIcon/ShareIcon"), exports);
334
336
  __exportStar(require("./icons/HashtagIcon/HashtagIcon"), exports);
335
337
  __exportStar(require("./icons/FitToViewIcon/FitToViewIcon"), exports);
336
338
  __exportStar(require("./icons/ColorPaletteIcon/ColorPaletteIcon"), exports);
339
+ __exportStar(require("./icons/IdeaIcon/IdeaIcon"), exports);
340
+ __exportStar(require("./icons/NewChatIcon/NewChatIcon"), exports);
337
341
  /* Layouts */
338
342
  __exportStar(require("./layouts/RootLayout"), exports);
339
343
  __exportStar(require("./layouts/PageLayout"), exports);
@@ -70,11 +70,11 @@ function renderWithSpanWrapper(children) {
70
70
  */
71
71
  const mdClassName = 'md';
72
72
  function Heading({ level, id, children, 'data-source': dataSource, 'data-hash': dataHash, className, __idx, }) {
73
- var _a;
73
+ var _a, _b;
74
74
  const { pathname } = (0, react_router_dom_1.useLocation)();
75
75
  const { usePageProps } = (0, hooks_1.useThemeHooks)();
76
76
  const pageProps = usePageProps();
77
- const isMarkdownPage = ((_a = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _a === void 0 ? void 0 : _a.type) === 'markdown';
77
+ const isMarkdownPage = ((_a = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _a === void 0 ? void 0 : _a.type) === 'markdown' || ((_b = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _b === void 0 ? void 0 : _b.type) === 'asciidoc';
78
78
  const linkEl = (react_1.default.createElement("a", { "aria-label": `link to ${id}`, href: `#${id}`, className: (0, utils_1.concatClassNames)('anchor', 'before') },
79
79
  react_1.default.createElement(LinkIcon_1.LinkIcon, { size: "14px", color: "--heading-anchor-color" })));
80
80
  return (0, react_1.createElement)(`h${level}`, {
@@ -81,8 +81,6 @@ const Wrapper = styled_components_1.default.div `
81
81
  }
82
82
  `;
83
83
  const ViewerContent = styled_components_1.default.div `
84
- background-color: var(--mermaid-bg-color);
85
-
86
84
  * {
87
85
  font-family: var(--mermaid-font-family) !important;
88
86
  }
@@ -54,11 +54,11 @@ exports.markdownTabs = (0, styled_components_1.css) `
54
54
  --md-tabs-small-tab-line-height: var(--line-height-base); // @presenter LineHeight
55
55
  --md-tabs-small-tab-border-radius: var(--border-radius); // @presenter BorderRadius
56
56
 
57
- --md-tabs-active-tab-text-color: var(--text-color-primary); // @presenter Color
57
+ --md-tabs-active-tab-text-color: var(--color-primary-text, var(--md-tabs-active-tab-text-color-legacy)); // @presenter Color
58
58
  --md-tabs-active-tab-font-family: var(--md-tabs-tab-font-family); // @presenter FontFamily
59
59
  --md-tabs-active-tab-font-style: normal; // @presenter FontStyle
60
- --md-tabs-active-tab-bg-color: var(--bg-color-active); // @presenter Color
61
- --md-tabs-active-tab-border-color: var(--text-color-primary); // @presenter Color
60
+ --md-tabs-active-tab-bg-color: var(--color-primary-bg, var(--md-tabs-active-tab-bg-color-legacy)); // @presenter Color
61
+ --md-tabs-active-tab-border-color: var(--color-primary-active, var(--md-tabs-active-tab-border-color-legacy)); // @presenter Color
62
62
 
63
63
  --md-tabs-medium-active-tab-font-size: var(--md-tabs-medium-tab-font-size); // @presenter FontSize
64
64
  --md-tabs-medium-active-tab-font-weight: var(--md-tabs-medium-tab-font-weight); // @presenter FontWeight
@@ -3,7 +3,6 @@ export * from '../../markdoc/components/InlineSvg/InlineSvg';
3
3
  export * from '../../markdoc/components/MarkdocExample/MarkdocExample';
4
4
  export * from '../../markdoc/components/Heading/Heading';
5
5
  export * from '../../markdoc/components/Mermaid/Mermaid';
6
- export * from '../../markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram';
7
6
  export * from '../../markdoc/components/HtmlBlock/HtmlBlock';
8
7
  export * from '../../markdoc/components/Tabs/Tab';
9
8
  export * from '../../markdoc/components/Tabs/TabList';
@@ -19,7 +19,6 @@ __exportStar(require("../../markdoc/components/InlineSvg/InlineSvg"), exports);
19
19
  __exportStar(require("../../markdoc/components/MarkdocExample/MarkdocExample"), exports);
20
20
  __exportStar(require("../../markdoc/components/Heading/Heading"), exports);
21
21
  __exportStar(require("../../markdoc/components/Mermaid/Mermaid"), exports);
22
- __exportStar(require("../../markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram"), exports);
23
22
  __exportStar(require("../../markdoc/components/HtmlBlock/HtmlBlock"), exports);
24
23
  __exportStar(require("../../markdoc/components/Tabs/Tab"), exports);
25
24
  __exportStar(require("../../markdoc/components/Tabs/TabList"), exports);
@@ -8,7 +8,7 @@ exports.admonition = {
8
8
  type: String,
9
9
  required: true,
10
10
  default: 'info',
11
- matches: ['warning', 'info', 'danger', 'success'],
11
+ matches: ['warning', 'info', 'danger', 'success', 'default'],
12
12
  },
13
13
  name: { type: String },
14
14
  },