@acmekit/docs-ui 2.13.41

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 (236) hide show
  1. package/dist/Items-YPPZD6C6.mjs +312 -0
  2. package/dist/chunk-JD7BP7O5.mjs +13144 -0
  3. package/dist/index.d.mts +1550 -0
  4. package/dist/index.d.ts +1550 -0
  5. package/dist/index.js +15218 -0
  6. package/dist/index.mjs +366 -0
  7. package/package.json +58 -0
  8. package/src/components/Badge/index.tsx +74 -0
  9. package/src/components/BadgesList/index.tsx +18 -0
  10. package/src/components/BetaBadge/index.tsx +24 -0
  11. package/src/components/Bordered/index.tsx +21 -0
  12. package/src/components/BorderedIcon/index.tsx +60 -0
  13. package/src/components/Breadcrumbs/index.tsx +83 -0
  14. package/src/components/Button/index.tsx +100 -0
  15. package/src/components/Card/Layout/Default/index.tsx +124 -0
  16. package/src/components/Card/Layout/Filler/index.tsx +30 -0
  17. package/src/components/Card/Layout/Large/index.tsx +88 -0
  18. package/src/components/Card/Layout/Mini/index.tsx +142 -0
  19. package/src/components/Card/index.tsx +50 -0
  20. package/src/components/CardList/index.tsx +40 -0
  21. package/src/components/ChildDocs/index.tsx +9 -0
  22. package/src/components/CodeBlock/Actions/AskAi/index.tsx +10 -0
  23. package/src/components/CodeBlock/Actions/Copy/index.tsx +59 -0
  24. package/src/components/CodeBlock/Actions/index.tsx +137 -0
  25. package/src/components/CodeBlock/Collapsible/Button/index.tsx +58 -0
  26. package/src/components/CodeBlock/Collapsible/Fade/index.tsx +55 -0
  27. package/src/components/CodeBlock/Collapsible/Lines/index.tsx +22 -0
  28. package/src/components/CodeBlock/Header/Wrapper/index.tsx +46 -0
  29. package/src/components/CodeBlock/Header/index.tsx +67 -0
  30. package/src/components/CodeBlock/Inline/index.tsx +20 -0
  31. package/src/components/CodeBlock/Line/index.tsx +331 -0
  32. package/src/components/CodeBlock/index.tsx +510 -0
  33. package/src/components/CodeMdx/index.tsx +45 -0
  34. package/src/components/CodeTabs/Item/index.tsx +67 -0
  35. package/src/components/CodeTabs/index.tsx +319 -0
  36. package/src/components/ContentMenu/Actions/index.tsx +7 -0
  37. package/src/components/ContentMenu/Products/index.tsx +64 -0
  38. package/src/components/ContentMenu/Toc/index.tsx +148 -0
  39. package/src/components/ContentMenu/Version/index.tsx +77 -0
  40. package/src/components/ContentMenu/index.tsx +31 -0
  41. package/src/components/CopyButton/index.tsx +76 -0
  42. package/src/components/Details/Summary/index.tsx +75 -0
  43. package/src/components/Details/index.tsx +98 -0
  44. package/src/components/DetailsList/index.tsx +32 -0
  45. package/src/components/DottedSeparator/index.tsx +30 -0
  46. package/src/components/EditButton/index.tsx +32 -0
  47. package/src/components/EditDate/index.tsx +33 -0
  48. package/src/components/ErrorPage/Icon/index.tsx +428 -0
  49. package/src/components/ErrorPage/index.tsx +32 -0
  50. package/src/components/Feedback/Solutions/index.tsx +105 -0
  51. package/src/components/Feedback/index.tsx +304 -0
  52. package/src/components/Footer/index.tsx +23 -0
  53. package/src/components/Heading/H1/index.tsx +21 -0
  54. package/src/components/Heading/H2/index.tsx +47 -0
  55. package/src/components/Heading/H3/index.tsx +42 -0
  56. package/src/components/Heading/H4/index.tsx +14 -0
  57. package/src/components/Heading/index.tsx +4 -0
  58. package/src/components/IconHeadline/index.tsx +15 -0
  59. package/src/components/Icons/AiAssistant/index.tsx +462 -0
  60. package/src/components/Icons/ArrowRightDown/index.tsx +30 -0
  61. package/src/components/Icons/BundledProduct/index.tsx +72 -0
  62. package/src/components/Icons/CalendarRefresh/index.tsx +70 -0
  63. package/src/components/Icons/ChefHat/index.tsx +65 -0
  64. package/src/components/Icons/CircleDottedLine/index.tsx +60 -0
  65. package/src/components/Icons/CloudSolid/index.tsx +47 -0
  66. package/src/components/Icons/ColoredAcmeKit/index.tsx +13 -0
  67. package/src/components/Icons/DecisionProcess/index.tsx +58 -0
  68. package/src/components/Icons/Erp/index.tsx +92 -0
  69. package/src/components/Icons/Github/index.tsx +22 -0
  70. package/src/components/Icons/House/index.tsx +23 -0
  71. package/src/components/Icons/ImageBinary/index.tsx +69 -0
  72. package/src/components/Icons/Kapa/index.tsx +22 -0
  73. package/src/components/Icons/Markdown/index.tsx +25 -0
  74. package/src/components/Icons/NavigationDropdown/Admin/index.tsx +33 -0
  75. package/src/components/Icons/NavigationDropdown/Doc/index.tsx +41 -0
  76. package/src/components/Icons/NavigationDropdown/DocV1/index.tsx +37 -0
  77. package/src/components/Icons/NavigationDropdown/Modules/index.tsx +33 -0
  78. package/src/components/Icons/NavigationDropdown/Resources/index.tsx +37 -0
  79. package/src/components/Icons/NavigationDropdown/Store/index.tsx +37 -0
  80. package/src/components/Icons/NavigationDropdown/Ui/index.tsx +37 -0
  81. package/src/components/Icons/NavigationDropdown/User/index.tsx +37 -0
  82. package/src/components/Icons/PuzzleColored/index.tsx +35 -0
  83. package/src/components/Icons/QuestionMark/index.tsx +23 -0
  84. package/src/components/Icons/Restock/index.tsx +55 -0
  85. package/src/components/Icons/ScrollText/index.tsx +68 -0
  86. package/src/components/Icons/ShadedBg/index.tsx +334 -0
  87. package/src/components/Icons/Shop/index.tsx +68 -0
  88. package/src/components/Icons/SidebarLeft/index.tsx +42 -0
  89. package/src/components/Icons/StripeColored/index.tsx +60 -0
  90. package/src/components/Icons/ThumbDown/index.tsx +23 -0
  91. package/src/components/Icons/ThumbUp/index.tsx +23 -0
  92. package/src/components/Icons/WindowPaintbrush/index.tsx +57 -0
  93. package/src/components/Icons/index.tsx +20 -0
  94. package/src/components/InlineCode/index.tsx +42 -0
  95. package/src/components/InlineIcon/index.tsx +21 -0
  96. package/src/components/InlineThemeImage/index.tsx +14 -0
  97. package/src/components/Input/Search/index.tsx +64 -0
  98. package/src/components/Input/Text/index.tsx +39 -0
  99. package/src/components/Kbd/index.tsx +33 -0
  100. package/src/components/Label/index.tsx +19 -0
  101. package/src/components/Link/index.tsx +67 -0
  102. package/src/components/LinkButton/index.tsx +43 -0
  103. package/src/components/Loading/Dots/index.tsx +16 -0
  104. package/src/components/Loading/Spinner/index.tsx +19 -0
  105. package/src/components/Loading/index.tsx +43 -0
  106. package/src/components/MDXComponents/index.tsx +209 -0
  107. package/src/components/MainNav/DesktopMenu/ThemeMenu/index.tsx +76 -0
  108. package/src/components/MainNav/DesktopMenu/index.tsx +100 -0
  109. package/src/components/MainNav/Items/Dropdown/index.tsx +88 -0
  110. package/src/components/MainNav/Items/Link/index.tsx +34 -0
  111. package/src/components/MainNav/Items/index.tsx +61 -0
  112. package/src/components/MainNav/MobileMenu/Main/index.tsx +67 -0
  113. package/src/components/MainNav/MobileMenu/SubMenu/index.tsx +77 -0
  114. package/src/components/MainNav/MobileMenu/index.tsx +103 -0
  115. package/src/components/MainNav/Version/index.tsx +33 -0
  116. package/src/components/MainNav/index.tsx +153 -0
  117. package/src/components/MarkdownContent/index.tsx +41 -0
  118. package/src/components/Menu/Action/index.tsx +43 -0
  119. package/src/components/Menu/Divider/index.tsx +35 -0
  120. package/src/components/Menu/Dropdown/index.tsx +78 -0
  121. package/src/components/Menu/Item/index.tsx +36 -0
  122. package/src/components/Menu/SubMenu/index.tsx +47 -0
  123. package/src/components/Menu/index.tsx +44 -0
  124. package/src/components/Modal/Footer/index.tsx +29 -0
  125. package/src/components/Modal/Header/index.tsx +33 -0
  126. package/src/components/Modal/index.tsx +124 -0
  127. package/src/components/Note/Layout/index.tsx +139 -0
  128. package/src/components/Note/Types/checks.tsx +7 -0
  129. package/src/components/Note/Types/default.tsx +7 -0
  130. package/src/components/Note/Types/error.tsx +7 -0
  131. package/src/components/Note/Types/soon.tsx +7 -0
  132. package/src/components/Note/Types/sucess.tsx +7 -0
  133. package/src/components/Note/Types/warning.tsx +7 -0
  134. package/src/components/Note/index.tsx +32 -0
  135. package/src/components/Notices/DeprecatedNotice/index.tsx +33 -0
  136. package/src/components/Notices/ExpandableNotice/index.tsx +36 -0
  137. package/src/components/Notices/FeatureFlagNotice/index.tsx +36 -0
  138. package/src/components/Notices/VersionNotice/index.tsx +37 -0
  139. package/src/components/Notification/Item/Layout/Default/index.tsx +89 -0
  140. package/src/components/Notification/Item/index.tsx +88 -0
  141. package/src/components/Notification/index.tsx +65 -0
  142. package/src/components/Pagination/Card/index.tsx +80 -0
  143. package/src/components/Pagination/index.tsx +35 -0
  144. package/src/components/Prerequisites/Item/index.tsx +43 -0
  145. package/src/components/Prerequisites/index.tsx +94 -0
  146. package/src/components/RadioItem/index.tsx +38 -0
  147. package/src/components/Rating/index.tsx +133 -0
  148. package/src/components/RootProviders/index.tsx +31 -0
  149. package/src/components/Select/Badge/index.tsx +122 -0
  150. package/src/components/Select/Dropdown/index.tsx +188 -0
  151. package/src/components/Select/Input/index.tsx +123 -0
  152. package/src/components/Select/index.ts +13 -0
  153. package/src/components/Sidebar/Child/index.tsx +43 -0
  154. package/src/components/Sidebar/Item/Category/index.tsx +151 -0
  155. package/src/components/Sidebar/Item/Link/index.tsx +174 -0
  156. package/src/components/Sidebar/Item/Sidebar/index.tsx +67 -0
  157. package/src/components/Sidebar/Item/SubCategory/index.tsx +83 -0
  158. package/src/components/Sidebar/Item/index.tsx +41 -0
  159. package/src/components/Sidebar/Top/MobileClose/index.tsx +21 -0
  160. package/src/components/Sidebar/Top/index.tsx +33 -0
  161. package/src/components/Sidebar/index.tsx +153 -0
  162. package/src/components/SourceCodeLink/index.tsx +37 -0
  163. package/src/components/SplitLists/index.tsx +58 -0
  164. package/src/components/Table/index.tsx +87 -0
  165. package/src/components/Tabs/index.tsx +106 -0
  166. package/src/components/TextArea/index.tsx +30 -0
  167. package/src/components/ThemeImage/index.tsx +26 -0
  168. package/src/components/Toggle/index.tsx +28 -0
  169. package/src/components/Tooltip/index.tsx +65 -0
  170. package/src/components/TypeList/Items/index.tsx +337 -0
  171. package/src/components/TypeList/index.tsx +63 -0
  172. package/src/components/WideSection/index.tsx +25 -0
  173. package/src/components/ZoomImg/index.tsx +17 -0
  174. package/src/components/index.ts +75 -0
  175. package/src/constants.tsx +261 -0
  176. package/src/global-config.ts +11 -0
  177. package/src/hooks/index.ts +14 -0
  178. package/src/hooks/use-active-on-scroll/index.tsx +223 -0
  179. package/src/hooks/use-click-outside/index.tsx +37 -0
  180. package/src/hooks/use-collapsible/index.tsx +128 -0
  181. package/src/hooks/use-collapsible-code-lines/index.tsx +149 -0
  182. package/src/hooks/use-copy/index.tsx +28 -0
  183. package/src/hooks/use-heading-url/index.tsx +32 -0
  184. package/src/hooks/use-is-external-link/index.tsx +19 -0
  185. package/src/hooks/use-keyboard-shortcut/index.tsx +71 -0
  186. package/src/hooks/use-mutation-observer/index.ts +32 -0
  187. package/src/hooks/use-page-scroll-manager/index.tsx +82 -0
  188. package/src/hooks/use-resize-observer/index.ts +20 -0
  189. package/src/hooks/use-scroll-utils/index.tsx +372 -0
  190. package/src/hooks/use-select/index.tsx +99 -0
  191. package/src/hooks/use-tabs/index.tsx +94 -0
  192. package/src/index.ts +8 -0
  193. package/src/layouts/barebone.tsx +18 -0
  194. package/src/layouts/index.ts +4 -0
  195. package/src/layouts/main-content.tsx +86 -0
  196. package/src/layouts/root.tsx +43 -0
  197. package/src/layouts/tight.tsx +29 -0
  198. package/src/layouts/wide.tsx +25 -0
  199. package/src/providers/AiAssistant/index.tsx +65 -0
  200. package/src/providers/BrowserProvider/index.tsx +40 -0
  201. package/src/providers/ColorMode/index.tsx +73 -0
  202. package/src/providers/Layout/index.tsx +52 -0
  203. package/src/providers/MainNav/index.tsx +134 -0
  204. package/src/providers/Mobile/index.tsx +62 -0
  205. package/src/providers/Modal/index.tsx +52 -0
  206. package/src/providers/Notification/index.tsx +149 -0
  207. package/src/providers/Pagination/index.tsx +230 -0
  208. package/src/providers/Search/index.tsx +91 -0
  209. package/src/providers/Sidebar/index.tsx +745 -0
  210. package/src/providers/SiteConfig/index.tsx +70 -0
  211. package/src/providers/index.ts +13 -0
  212. package/src/types/config.ts +34 -0
  213. package/src/types/frontmatter.ts +23 -0
  214. package/src/types/general.ts +1 -0
  215. package/src/types/index.ts +9 -0
  216. package/src/types/menu.ts +40 -0
  217. package/src/types/navigation-dropdown.ts +16 -0
  218. package/src/types/navigation.ts +21 -0
  219. package/src/types/sidebar.ts +109 -0
  220. package/src/types/toc.ts +19 -0
  221. package/src/types/ui.ts +9 -0
  222. package/src/utils/array-same-elms.ts +10 -0
  223. package/src/utils/capitalize.ts +3 -0
  224. package/src/utils/check-sidebar-item-visibility.ts +47 -0
  225. package/src/utils/decode-str.ts +8 -0
  226. package/src/utils/dom-utils.ts +29 -0
  227. package/src/utils/event-parser.ts +54 -0
  228. package/src/utils/get-link-with-base-path.ts +3 -0
  229. package/src/utils/get-navbar-items.ts +55 -0
  230. package/src/utils/get-scrolled-top.ts +8 -0
  231. package/src/utils/index.ts +13 -0
  232. package/src/utils/is-elm-window.ts +3 -0
  233. package/src/utils/is-in-view.ts +10 -0
  234. package/src/utils/os-browser-utils.ts +39 -0
  235. package/src/utils/set-obj-value.ts +38 -0
  236. package/src/utils/sidebar-utils.ts +129 -0
@@ -0,0 +1,1550 @@
1
+ import React$1, { ReactElement, ReactNode, ComponentProps } from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { IconProps } from '@acmekit/icons/dist/types';
4
+ import { LinkProps as LinkProps$1 } from 'react-router-dom';
5
+ import { HighlightProps as HighlightProps$1, LineInputProps, LineOutputProps, TokenInputProps, TokenOutputProps, Token } from 'prism-react-renderer';
6
+ import { Options as Options$1, Components } from 'react-markdown';
7
+ import { MDXComponents as MDXComponents$1 } from 'mdx/types';
8
+ import { Tabs as Tabs$1, Switch } from '@acmekit/ui';
9
+ import { ITooltip } from 'react-tooltip';
10
+
11
+ type BreadcrumbOptions = {
12
+ startItems?: {
13
+ title: string;
14
+ link: string;
15
+ }[];
16
+ };
17
+ declare type DocsConfig = {
18
+ titleSuffix?: string;
19
+ description?: string;
20
+ baseUrl: string;
21
+ basePath?: string;
22
+ sidebars: Sidebar$1[];
23
+ filesBasePath?: string;
24
+ project: {
25
+ title: string;
26
+ key: string;
27
+ };
28
+ breadcrumbOptions?: BreadcrumbOptions;
29
+ version: {
30
+ number: string;
31
+ releaseUrl: string;
32
+ releaseDate: string;
33
+ hide?: boolean;
34
+ bannerImage?: {
35
+ light: string;
36
+ dark: string;
37
+ };
38
+ };
39
+ reportIssueLink?: string;
40
+ logo: string;
41
+ };
42
+
43
+ declare type FrontMatter = {
44
+ slug?: string;
45
+ sidebar_label?: string;
46
+ sidebar_group?: string;
47
+ sidebar_group_main?: boolean;
48
+ sidebar_position?: number;
49
+ sidebar_autogenerate_exclude?: boolean;
50
+ sidebar_description?: string;
51
+ tags?: (string | {
52
+ name: string;
53
+ label: string;
54
+ })[];
55
+ title?: string;
56
+ description?: string;
57
+ products?: string[];
58
+ toc_max_depth?: number;
59
+ generate_toc?: boolean;
60
+ hide_content_menu?: boolean;
61
+ keywords?: string[];
62
+ };
63
+
64
+ type Ref<T> = React.RefObject<T | null> | ((instance: T | null) => void);
65
+
66
+ type MenuItemLink = {
67
+ type: "link";
68
+ icon?: React$1.ReactNode;
69
+ title: string;
70
+ link: string;
71
+ openInNewTab?: boolean;
72
+ };
73
+ type MenuItemDivider = {
74
+ type: "divider";
75
+ };
76
+ type MenuItemAction = {
77
+ type: "action";
78
+ icon: React$1.ReactNode;
79
+ title: string;
80
+ shortcut?: string;
81
+ action: () => void;
82
+ };
83
+ type MenuItemCustom = {
84
+ type: "custom";
85
+ content: React$1.ReactNode;
86
+ };
87
+ type MenuItemSubMenu = {
88
+ type: "sub-menu";
89
+ items: MenuItem[];
90
+ title: string;
91
+ link?: string;
92
+ };
93
+ type MenuItem = MenuItemLink | MenuItemDivider | MenuItemAction | MenuItemCustom | MenuItemSubMenu;
94
+
95
+ type NavigationItemDropdown = {
96
+ type: "dropdown";
97
+ title: string;
98
+ children: (MenuItem & {
99
+ useAsFallback?: boolean;
100
+ })[];
101
+ project?: string;
102
+ link?: string;
103
+ };
104
+ type NavigationItemLink = {
105
+ type: "link";
106
+ link: string;
107
+ title: string;
108
+ project?: string;
109
+ useAsFallback?: boolean;
110
+ };
111
+ type NavigationItem = NavigationItemLink | NavigationItemDropdown;
112
+
113
+ type Sidebar$1 = {
114
+ sidebar_id: string;
115
+ title: string;
116
+ items: SidebarItem$1[];
117
+ };
118
+ type SidebarItemCommon = {
119
+ title: string;
120
+ children?: SidebarItem$1[];
121
+ loaded?: boolean;
122
+ additionalElms?: React$1.ReactNode;
123
+ badge?: {
124
+ variant: "purple" | "orange" | "green" | "blue" | "red" | "neutral";
125
+ text: string;
126
+ };
127
+ chapterTitle?: string;
128
+ childSidebarTitle?: string;
129
+ hideChildren?: boolean;
130
+ number?: string;
131
+ description?: string;
132
+ };
133
+ type InteractiveSidebarItemTypes = "category" | "sub-category" | "link" | "ref" | "external" | "sidebar";
134
+ type SidebarItemLink = SidebarItemCommon & {
135
+ type: "link" | "ref" | "external";
136
+ path: string;
137
+ isPathHref?: boolean;
138
+ linkProps?: React$1.AllHTMLAttributes<HTMLAnchorElement>;
139
+ childrenSameLevel?: boolean;
140
+ };
141
+ type SidebarItemSidebar = SidebarItemCommon & {
142
+ type: "sidebar";
143
+ sidebar_id: string;
144
+ };
145
+ type SidebarItemCategory = SidebarItemCommon & {
146
+ type: "category";
147
+ onOpen?: () => void;
148
+ initialOpen?: boolean;
149
+ showLoadingIfEmpty?: boolean;
150
+ };
151
+ type SidebarItemSubCategory = SidebarItemCommon & {
152
+ type: "sub-category";
153
+ childrenSameLevel?: boolean;
154
+ };
155
+ type SidebarItemSeparator = {
156
+ type: "separator";
157
+ };
158
+ type InteractiveSidebarItem = SidebarItemLink | SidebarItemCategory | SidebarItemSubCategory | SidebarItemSidebar;
159
+ type SidebarItem$1 = InteractiveSidebarItem | SidebarItemSeparator;
160
+
161
+ type ToCItem = {
162
+ title: string;
163
+ id: string;
164
+ level: number;
165
+ children?: ToCItem[];
166
+ };
167
+ type Product = {
168
+ name: string;
169
+ path: string;
170
+ title: string;
171
+ image: string;
172
+ type: "commerce";
173
+ };
174
+
175
+ declare const GITHUB_ISSUES_LINK = "https://github.com/acmekit/acmekit/issues/new/choose";
176
+ declare const navDropdownItems: NavigationItem[];
177
+ declare const products: Product[];
178
+ declare enum DocsTrackingEvents {
179
+ SURVEY = "survey",
180
+ SURVEY_API = "survey_api-ref",
181
+ CODE_BLOCK_COPY = "code_block_copy",
182
+ AI_ASSISTANT_START_CHAT = "ai_assistant_start_chat",
183
+ AI_ASSISTANT_CALLOUT_CLICK = "ai_assistant_callout_click",
184
+ SEARCH_CALLOUT_CLICK = "search_callout_click"
185
+ }
186
+
187
+ declare const globalConfig: Pick<DocsConfig, "version">;
188
+
189
+ type BadgeVariant = "purple" | "orange" | "green" | "blue" | "red" | "neutral" | "code";
190
+ type BadgeType = "default" | "shaded";
191
+ type BadgeProps = {
192
+ className?: string;
193
+ childrenWrapperClassName?: string;
194
+ variant: BadgeVariant;
195
+ badgeType?: BadgeType;
196
+ } & React$1.HTMLAttributes<HTMLSpanElement>;
197
+ declare const Badge: ({ className, variant, badgeType, children, childrenWrapperClassName, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
198
+
199
+ type BadgesListProps = {
200
+ badges: BadgeProps[];
201
+ className?: string;
202
+ };
203
+ declare const BadgesList: ({ badges, className }: BadgesListProps) => react_jsx_runtime.JSX.Element;
204
+
205
+ type BetaBadgeProps = {
206
+ text?: string;
207
+ tooltipText?: string;
208
+ };
209
+ declare const BetaBadge: ({ text, tooltipText, }: BetaBadgeProps) => react_jsx_runtime.JSX.Element;
210
+
211
+ type BorderedProps = {
212
+ wrapperClassName?: string;
213
+ } & React$1.HTMLAttributes<HTMLSpanElement>;
214
+ declare const Bordered: ({ wrapperClassName, children }: BorderedProps) => react_jsx_runtime.JSX.Element;
215
+
216
+ type BorderedIconProps = {
217
+ icon?: string;
218
+ IconComponent?: React$1.FC<IconProps> | null;
219
+ wrapperClassName?: string;
220
+ iconWrapperClassName?: string;
221
+ iconClassName?: string;
222
+ iconColorClassName?: string;
223
+ iconWidth?: number;
224
+ iconHeight?: number;
225
+ } & React$1.HTMLAttributes<HTMLSpanElement>;
226
+ declare const BorderedIcon: ({ icon, IconComponent, iconWrapperClassName, iconClassName, iconColorClassName, wrapperClassName, iconWidth, iconHeight, ...props }: BorderedIconProps) => react_jsx_runtime.JSX.Element;
227
+
228
+ declare const Breadcrumbs: () => react_jsx_runtime.JSX.Element;
229
+
230
+ type ButtonVariants = "primary" | "secondary" | "transparent" | "transparent-clear";
231
+ type ButtonType = "default" | "icon";
232
+ type ButtonProps = {
233
+ isSelected?: boolean;
234
+ disabled?: boolean;
235
+ variant?: ButtonVariants;
236
+ className?: string;
237
+ buttonType?: ButtonType;
238
+ buttonRef?: React$1.LegacyRef<HTMLButtonElement>;
239
+ type?: "button" | "submit" | "reset";
240
+ } & React$1.HTMLAttributes<HTMLButtonElement>;
241
+ declare const Button: ({ className, children, variant, buttonType, buttonRef, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
242
+
243
+ type CardProps = {
244
+ type?: "default" | "large" | "filler" | "mini";
245
+ icon?: React$1.FC<IconProps>;
246
+ rightIcon?: React$1.FC<IconProps>;
247
+ image?: string;
248
+ themeImage?: {
249
+ light: string;
250
+ dark: string;
251
+ };
252
+ imageDimensions?: {
253
+ width: number;
254
+ height: number;
255
+ };
256
+ title?: string;
257
+ text?: string;
258
+ href?: string;
259
+ className?: string;
260
+ contentClassName?: string;
261
+ iconClassName?: string;
262
+ children?: React$1.ReactNode;
263
+ badge?: BadgeProps;
264
+ highlightText?: string[];
265
+ closeable?: boolean;
266
+ onClose?: () => void;
267
+ onClick?: () => void;
268
+ hrefProps?: Partial<LinkProps$1 & React$1.AllHTMLAttributes<HTMLAnchorElement>>;
269
+ cardRef?: React$1.Ref<HTMLDivElement>;
270
+ };
271
+ declare const Card: ({ type, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
272
+
273
+ type CardListProps = {
274
+ items: CardProps[];
275
+ itemsPerRow?: number;
276
+ defaultItemsPerRow?: number;
277
+ className?: string;
278
+ };
279
+ declare const CardList: ({ items, itemsPerRow, className, defaultItemsPerRow, }: CardListProps) => react_jsx_runtime.JSX.Element;
280
+
281
+ type UseChildDocsProps = {
282
+ onlyTopLevel?: boolean;
283
+ };
284
+ declare const ChildDocs: (_props: UseChildDocsProps) => null;
285
+
286
+ type CodeBlockHeaderMeta = {
287
+ badgeLabel?: string;
288
+ badgeColor?: BadgeVariant;
289
+ };
290
+
291
+ type ApiMethod = string;
292
+ type ApiAuthType = string;
293
+ type ApiDataOptions = Record<string, unknown>;
294
+ type Highlight = {
295
+ line: number;
296
+ text?: string;
297
+ tooltipText?: string;
298
+ };
299
+ type CodeBlockMetaFields = {
300
+ title?: string;
301
+ hasTabs?: boolean;
302
+ npm2yarn?: boolean;
303
+ npx2yarn?: boolean;
304
+ npx2yarnExec?: boolean;
305
+ highlights?: string[][];
306
+ apiTesting?: boolean;
307
+ testApiMethod?: ApiMethod;
308
+ testApiUrl?: string;
309
+ testAuthType?: ApiAuthType;
310
+ testPathParams?: ApiDataOptions;
311
+ testQueryParams?: ApiDataOptions;
312
+ testBodyParams?: ApiDataOptions;
313
+ noCopy?: boolean;
314
+ noReport?: boolean;
315
+ noLineNumbers?: boolean;
316
+ noAskAi?: boolean;
317
+ collapsibleLines?: string;
318
+ expandButtonLabel?: string;
319
+ isTerminal?: boolean;
320
+ forceNoTitle?: boolean;
321
+ collapsed?: boolean;
322
+ wrapperClassName?: string;
323
+ } & CodeBlockHeaderMeta;
324
+ type CodeBlockStyle = "loud" | "subtle" | "inline";
325
+ type CodeBlockProps = {
326
+ source: string;
327
+ lang?: string;
328
+ innerClassName?: string;
329
+ className?: string;
330
+ blockStyle?: CodeBlockStyle;
331
+ children?: React$1.ReactNode;
332
+ style?: React$1.HTMLAttributes<HTMLDivElement>["style"];
333
+ animateTokenHighlights?: boolean;
334
+ overrideColors?: {
335
+ bg?: string;
336
+ innerBg?: string;
337
+ lineNumbersBg?: string;
338
+ border?: string;
339
+ innerBorder?: string;
340
+ boxShadow?: string;
341
+ };
342
+ } & CodeBlockMetaFields & Omit<HighlightProps$1, "code" | "language" | "children">;
343
+ declare const CodeBlock: ({ source, hasTabs, lang, wrapperClassName, innerClassName, className, overrideColors, collapsed, title, highlights, apiTesting, blockStyle, noCopy, noReport, noLineNumbers, children, collapsibleLines, expandButtonLabel, isTerminal, style, forceNoTitle, animateTokenHighlights, noAskAi, ...rest }: CodeBlockProps) => react_jsx_runtime.JSX.Element;
344
+
345
+ type InlineCodeProps = React$1.ComponentProps<"code"> & {
346
+ variant?: "default" | "grey-bg";
347
+ };
348
+ declare const InlineCode: ({ variant, ...props }: InlineCodeProps) => react_jsx_runtime.JSX.Element;
349
+
350
+ type CodeMdxProps = {
351
+ className?: string;
352
+ children?: React$1.ReactNode;
353
+ inlineCodeProps?: Partial<InlineCodeProps>;
354
+ codeBlockProps?: Partial<CodeBlockProps>;
355
+ } & CodeBlockMetaFields;
356
+ declare const CodeMdx: ({ className, children, inlineCodeProps, codeBlockProps, ...rest }: CodeMdxProps) => react_jsx_runtime.JSX.Element;
357
+
358
+ type CodeTabProps$1 = {
359
+ children: React$1.ReactNode;
360
+ className?: string;
361
+ group?: string;
362
+ blockStyle?: CodeBlockStyle;
363
+ };
364
+ declare const CodeTabs: ({ children, className, group, blockStyle, }: CodeTabProps$1) => react_jsx_runtime.JSX.Element;
365
+
366
+ type BaseTabType = {
367
+ label: string;
368
+ value: string;
369
+ };
370
+ type EventData = {
371
+ storageValue: string;
372
+ };
373
+ type TabProps<T> = {
374
+ tabs: T[];
375
+ group?: string;
376
+ };
377
+ declare function useTabs<T extends BaseTabType>({ tabs, group }: TabProps<T>): {
378
+ selectedTab: T | null;
379
+ changeSelectedTab: (tab: T) => void;
380
+ };
381
+
382
+ type CodeTabProps = BaseTabType & {
383
+ children: React$1.ReactNode;
384
+ isSelected?: boolean;
385
+ blockStyle?: string;
386
+ changeSelectedTab?: (tab: BaseTabType) => void;
387
+ pushRef?: (tabButton: HTMLButtonElement | null) => void;
388
+ };
389
+ declare const CodeTab: ({ label, value, isSelected, blockStyle, changeSelectedTab, pushRef, }: CodeTabProps) => react_jsx_runtime.JSX.Element;
390
+
391
+ declare const ContentMenu: () => react_jsx_runtime.JSX.Element;
392
+
393
+ type CopyButtonChildFn = (props: {
394
+ isCopied: boolean;
395
+ }) => React$1.ReactNode;
396
+ type CopyButtonProps = {
397
+ text: string;
398
+ buttonClassName?: string;
399
+ tooltipClassName?: string;
400
+ tooltipInnerClassName?: string;
401
+ tooltipText?: string;
402
+ onCopy?: (e: React$1.MouseEvent<HTMLSpanElement, MouseEvent> | React$1.TouchEvent<HTMLSpanElement>) => void;
403
+ handleTouch?: boolean;
404
+ children?: React$1.ReactNode | CopyButtonChildFn;
405
+ } & Omit<React$1.HTMLAttributes<HTMLDivElement>, "onCopy" | "children">;
406
+ declare const CopyButton: ({ text, buttonClassName, tooltipClassName, tooltipText, children, className, onCopy, handleTouch, tooltipInnerClassName, }: CopyButtonProps) => react_jsx_runtime.JSX.Element;
407
+
408
+ type DetailsProps = {
409
+ openInitial?: boolean;
410
+ summaryContent?: React$1.ReactNode;
411
+ summaryElm?: React$1.ReactNode;
412
+ heightAnimation?: boolean;
413
+ } & React$1.HTMLAttributes<HTMLDetailsElement>;
414
+ declare const Details: ({ openInitial, summaryContent, summaryElm, children, heightAnimation, ...props }: DetailsProps) => react_jsx_runtime.JSX.Element;
415
+
416
+ type DetailsSummaryProps = {
417
+ title?: React$1.ReactNode;
418
+ subtitle?: React$1.ReactNode;
419
+ badge?: React$1.ReactNode;
420
+ expandable?: boolean;
421
+ open?: boolean;
422
+ className?: string;
423
+ titleClassName?: string;
424
+ hideExpandableIcon?: boolean;
425
+ summaryRef?: React$1.LegacyRef<HTMLDivElement>;
426
+ } & Omit<React$1.HTMLAttributes<HTMLElement>, "title">;
427
+ declare const DetailsSummary: ({ title, subtitle, children, badge, expandable, open, className, titleClassName, hideExpandableIcon, summaryRef, ...rest }: DetailsSummaryProps) => react_jsx_runtime.JSX.Element;
428
+
429
+ type TroubleshootingSection = {
430
+ title: string;
431
+ content: React$1.ReactNode;
432
+ };
433
+ type DetailsListProps = {
434
+ sections: TroubleshootingSection[];
435
+ } & React$1.AllHTMLAttributes<HTMLDivElement>;
436
+ declare const DetailsList: ({ sections }: DetailsListProps) => react_jsx_runtime.JSX.Element;
437
+
438
+ type DottedSeparatorProps = {
439
+ wrapperClassName?: string;
440
+ className?: string;
441
+ "data-testid"?: string;
442
+ };
443
+ declare const DottedSeparator: ({ className, wrapperClassName, "data-testid": testId, }: DottedSeparatorProps) => react_jsx_runtime.JSX.Element;
444
+
445
+ type EditButtonProps = {
446
+ filePath: string;
447
+ editDate?: string;
448
+ };
449
+ declare const EditButton: ({ filePath, editDate }: EditButtonProps) => react_jsx_runtime.JSX.Element;
450
+
451
+ type EditDateProps = {
452
+ date: string;
453
+ };
454
+ declare const EditDate: ({ date }: EditDateProps) => react_jsx_runtime.JSX.Element;
455
+
456
+ declare const ErrorPage: () => react_jsx_runtime.JSX.Element;
457
+
458
+ type ExpandableNoticeProps = {
459
+ type?: "request" | "method" | "workflow";
460
+ link: string;
461
+ badgeContent?: React$1.ReactNode;
462
+ badgeClassName?: string;
463
+ };
464
+ declare const ExpandableNotice: ({ type, link, badgeContent, badgeClassName, }: ExpandableNoticeProps) => react_jsx_runtime.JSX.Element;
465
+
466
+ type FeatureFlagNoticeProps = {
467
+ featureFlag: string;
468
+ type?: "endpoint" | "type";
469
+ tooltipTextClassName?: string;
470
+ badgeClassName?: string;
471
+ badgeContent?: React$1.ReactNode;
472
+ };
473
+ declare const FeatureFlagNotice: ({ featureFlag, type, tooltipTextClassName, badgeClassName, badgeContent, }: FeatureFlagNoticeProps) => react_jsx_runtime.JSX.Element;
474
+
475
+ type DeprecatedNoticeProps = {
476
+ description?: string;
477
+ tooltipTextClassName?: string;
478
+ badgeClassName?: string;
479
+ badgeContent?: React$1.ReactNode;
480
+ };
481
+ declare const DeprecatedNotice: ({ description, tooltipTextClassName, badgeClassName, badgeContent, }: DeprecatedNoticeProps) => react_jsx_runtime.JSX.Element;
482
+
483
+ type VersionNoticeProps = {
484
+ version: string;
485
+ tooltipTextClassName?: string;
486
+ badgeClassName?: string;
487
+ badgeContent?: React$1.ReactNode;
488
+ };
489
+ declare const VersionNotice: ({ version, tooltipTextClassName, badgeClassName, badgeContent, }: VersionNoticeProps) => react_jsx_runtime.JSX.Element;
490
+
491
+ type FeedbackProps = {
492
+ event: string;
493
+ reportLink?: string;
494
+ question?: string;
495
+ positiveBtn?: string;
496
+ negativeBtn?: string;
497
+ positiveQuestion?: string;
498
+ negativeQuestion?: string;
499
+ submitBtn?: string;
500
+ submitMessage?: string;
501
+ showPossibleSolutions?: boolean;
502
+ className?: string;
503
+ extraData?: Record<string, unknown>;
504
+ vertical?: boolean;
505
+ showDottedSeparator?: boolean;
506
+ } & React$1.HTMLAttributes<HTMLDivElement>;
507
+ declare const Feedback: ({ event, reportLink: initReportLink, question, positiveBtn, negativeBtn, positiveQuestion, negativeQuestion, submitBtn, submitMessage, showPossibleSolutions, className, extraData, vertical, showDottedSeparator, }: FeedbackProps) => react_jsx_runtime.JSX.Element;
508
+
509
+ type SolutionsProps = {
510
+ feedback: boolean;
511
+ message?: string;
512
+ };
513
+ type GitHubSearchItem = {
514
+ url: string;
515
+ html_url: string;
516
+ title: string;
517
+ [key: string]: unknown;
518
+ };
519
+ declare const Solutions: ({ feedback, message }: SolutionsProps) => react_jsx_runtime.JSX.Element;
520
+
521
+ type FooterProps = {
522
+ editComponent?: React$1.ReactNode;
523
+ showPagination?: boolean;
524
+ feedbackComponent?: React$1.ReactNode;
525
+ editDate?: string;
526
+ };
527
+ declare const Footer: ({ editComponent, showPagination, feedbackComponent, }: FooterProps) => react_jsx_runtime.JSX.Element;
528
+
529
+ type H1Props = React$1.HTMLAttributes<HTMLHeadingElement> & {
530
+ id?: string;
531
+ };
532
+ declare const H1: ({ className, ...props }: H1Props) => react_jsx_runtime.JSX.Element;
533
+
534
+ type H2Props = React$1.HTMLAttributes<HTMLHeadingElement> & {
535
+ id?: string;
536
+ passRef?: React$1.RefObject<HTMLHeadingElement | null>;
537
+ };
538
+ declare const H2: ({ className, children, passRef, ...props }: H2Props) => react_jsx_runtime.JSX.Element;
539
+
540
+ type H3Props = React$1.HTMLAttributes<HTMLHeadingElement> & {
541
+ id?: string;
542
+ };
543
+ declare const H3: ({ className, children, ...props }: H3Props) => react_jsx_runtime.JSX.Element;
544
+
545
+ declare const H4: ({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
546
+
547
+ type IconHeadlineProps = {
548
+ title: string;
549
+ icon: React$1.ReactNode;
550
+ };
551
+ declare const IconHeadline: ({ title, icon }: IconHeadlineProps) => react_jsx_runtime.JSX.Element;
552
+
553
+ declare const AiAssistantIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
554
+
555
+ declare const BundledProductIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
556
+
557
+ declare const CalendarRefreshIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
558
+
559
+ declare const ChefHatIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
560
+
561
+ declare const IconCircleDottedLine: (props: IconProps) => react_jsx_runtime.JSX.Element;
562
+
563
+ declare const IconCloudSolid: (props: IconProps) => react_jsx_runtime.JSX.Element;
564
+
565
+ declare const ColoredAcmeKitIcon: ({ className, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
566
+
567
+ declare const DecisionProcessIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
568
+
569
+ declare const ErpIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
570
+
571
+ declare const ImageBinaryIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
572
+
573
+ declare const PuzzleColoredIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
574
+
575
+ declare const QuestionMarkIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
576
+
577
+ declare const RestockIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
578
+
579
+ declare const ScrollTextIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
580
+
581
+ type ShadedBgIconProps = IconProps & {
582
+ variant?: BadgeVariant;
583
+ };
584
+ declare const ShadedBgIcon: ({ variant, ...props }: ShadedBgIconProps) => react_jsx_runtime.JSX.Element;
585
+
586
+ declare const ShopIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
587
+
588
+ declare const StripeColoredIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
589
+
590
+ declare const ThumbDownIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
591
+
592
+ declare const ThumbUpIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
593
+
594
+ declare const WindowPaintbrushIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
595
+
596
+ type InlineIconProps = IconProps & {
597
+ Icon: React$1.ComponentType<IconProps>;
598
+ alt?: string;
599
+ };
600
+ declare const InlineIcon: ({ Icon, alt, ...props }: InlineIconProps) => react_jsx_runtime.JSX.Element;
601
+
602
+ type ThemeImageProps = {
603
+ light: string;
604
+ dark?: string;
605
+ alt?: string;
606
+ } & React$1.AllHTMLAttributes<HTMLImageElement>;
607
+ declare const ThemeImage: ({ light, dark, alt, ...props }: ThemeImageProps) => react_jsx_runtime.JSX.Element;
608
+
609
+ declare const InlineThemeImage: (props: ThemeImageProps) => react_jsx_runtime.JSX.Element;
610
+
611
+ type InputTextProps = {
612
+ className?: string;
613
+ addGroupStyling?: boolean;
614
+ passedRef?: React$1.Ref<HTMLInputElement>;
615
+ } & React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
616
+ declare const InputText: ({ addGroupStyling, className, passedRef, ...props }: InputTextProps) => react_jsx_runtime.JSX.Element;
617
+
618
+ type SearchInputProps = {
619
+ onChange: (value: string) => void;
620
+ } & Omit<React$1.ComponentProps<"input">, "onChange">;
621
+ declare const SearchInput: ({ value, onChange, className, placeholder, ...props }: SearchInputProps) => react_jsx_runtime.JSX.Element;
622
+
623
+ type KbdProps = React$1.ComponentProps<"kbd"> & {
624
+ variant?: "default" | "small";
625
+ };
626
+ declare const Kbd: ({ children, className, variant, ...props }: KbdProps) => react_jsx_runtime.JSX.Element;
627
+
628
+ type LabelProps = {
629
+ className?: string;
630
+ } & React$1.HTMLAttributes<HTMLSpanElement>;
631
+ declare const Label: ({ children, className }: LabelProps) => react_jsx_runtime.JSX.Element;
632
+
633
+ type LinkProps = React$1.AllHTMLAttributes<HTMLAnchorElement> & {
634
+ href?: string;
635
+ children?: React$1.ReactNode;
636
+ className?: string;
637
+ withIcon?: boolean;
638
+ variant?: "default" | "content";
639
+ };
640
+ declare const Link: ({ href, children, className, withIcon, variant, ...rest }: LinkProps) => react_jsx_runtime.JSX.Element;
641
+
642
+ type LinkButtonProps = LinkProps$1 & {
643
+ variant?: "base" | "interactive" | "subtle" | "muted";
644
+ className?: string;
645
+ };
646
+ declare const LinkButton: ({ variant, className, ...linkProps }: LinkButtonProps) => react_jsx_runtime.JSX.Element;
647
+
648
+ type LoadingProps = {
649
+ className?: string;
650
+ barClassName?: string;
651
+ count?: number;
652
+ };
653
+ declare const Loading: ({ className, count, barClassName, }: LoadingProps) => react_jsx_runtime.JSX.Element;
654
+
655
+ type DotsLoadingProps = {
656
+ className?: string;
657
+ };
658
+ declare const DotsLoading: ({ className }: DotsLoadingProps) => react_jsx_runtime.JSX.Element;
659
+
660
+ type SpinnerLoadingProps = {
661
+ iconProps?: IconProps;
662
+ };
663
+ declare const SpinnerLoading: ({ iconProps }: SpinnerLoadingProps) => react_jsx_runtime.JSX.Element;
664
+
665
+ type MainNavProps = {
666
+ className?: string;
667
+ itemsClassName?: string;
668
+ };
669
+ declare const MainNav: ({ className, itemsClassName }: MainNavProps) => react_jsx_runtime.JSX.Element;
670
+
671
+ type MarkdownContentProps = Options$1 & {
672
+ components?: Partial<Components> | null | undefined;
673
+ };
674
+ declare const MarkdownContent: ({ children, components, ...props }: MarkdownContentProps) => react_jsx_runtime.JSX.Element;
675
+
676
+ declare const MDXComponents: MDXComponents$1;
677
+ declare const Hr: () => React$1.JSX.Element;
678
+
679
+ type DropdownMenuProps = {
680
+ dropdownButtonContent: React$1.ReactNode;
681
+ dropdownButtonClassName?: string;
682
+ menuComponent?: React$1.ReactNode;
683
+ menuItems?: MenuItem[];
684
+ menuClassName?: string;
685
+ className?: string;
686
+ open?: boolean;
687
+ setOpen?: (open: boolean) => void;
688
+ };
689
+ declare const DropdownMenu: ({ dropdownButtonContent, dropdownButtonClassName, menuComponent, menuItems, menuClassName, className, open: externalOpen, setOpen: externalSetOpen, }: DropdownMenuProps) => react_jsx_runtime.JSX.Element | null;
690
+
691
+ type MenuProps = {
692
+ items: MenuItem[];
693
+ className?: string;
694
+ itemsOnClick?: (item: MenuItem) => void;
695
+ };
696
+ declare const Menu: ({ items, className, itemsOnClick }: MenuProps) => react_jsx_runtime.JSX.Element;
697
+
698
+ type ModalProps = {
699
+ className?: string;
700
+ title?: React$1.ReactNode;
701
+ actions?: ButtonProps[];
702
+ modalContainerClassName?: string;
703
+ contentClassName?: string;
704
+ onClose?: React$1.ReactEventHandler<HTMLDialogElement>;
705
+ open?: boolean;
706
+ footerContent?: React$1.ReactNode;
707
+ passedRef?: Ref<HTMLDialogElement>;
708
+ headerClassName?: string;
709
+ } & Omit<React$1.ComponentProps<"dialog">, "ref" | "title" | "key">;
710
+ declare const Modal: ({ className, title, actions, children, contentClassName, modalContainerClassName, onClose, open, footerContent, passedRef, ...props }: ModalProps) => react_jsx_runtime.JSX.Element;
711
+
712
+ type ModalHeaderProps = {
713
+ title?: React$1.ReactNode;
714
+ };
715
+ declare const ModalHeader: ({ title }: ModalHeaderProps) => react_jsx_runtime.JSX.Element;
716
+
717
+ type ModalFooterProps = {
718
+ actions?: ButtonProps[];
719
+ children?: React$1.ReactNode;
720
+ className?: string;
721
+ };
722
+ declare const ModalFooter: ({ actions, children, className, }: ModalFooterProps) => react_jsx_runtime.JSX.Element;
723
+
724
+ type NoteProps = {
725
+ type?: "default" | "warning" | "success" | "error" | "check" | "soon";
726
+ title?: string;
727
+ children?: React$1.ReactNode;
728
+ forceMultiline?: boolean;
729
+ };
730
+ declare const Note: ({ type, ...props }: NoteProps) => react_jsx_runtime.JSX.Element;
731
+
732
+ declare const NotificationContainer: () => react_jsx_runtime.JSX.Element;
733
+
734
+ type NotificationItemProps = {
735
+ layout?: "default" | "empty";
736
+ type?: "info" | "error" | "warning" | "success" | "custom" | "none";
737
+ CustomIcon?: React$1.ReactNode;
738
+ title?: string;
739
+ text?: string;
740
+ className?: string;
741
+ children?: ReactElement;
742
+ isClosable?: boolean;
743
+ placement?: "top" | "bottom";
744
+ show?: boolean;
745
+ setShow?: (value: boolean) => void;
746
+ onClose?: () => void;
747
+ closeButtonText?: string;
748
+ } & React$1.HTMLAttributes<HTMLDivElement>;
749
+ declare const NotificationItem: ({ className, placement, show, layout, setShow, onClose, children, ...rest }: NotificationItemProps) => react_jsx_runtime.JSX.Element;
750
+
751
+ type NotificationItemLayoutDefaultProps = NotificationItemProps & {
752
+ handleClose: () => void;
753
+ closeButtonText?: string;
754
+ };
755
+ declare const NotificationItemLayoutDefault: React$1.FC<NotificationItemLayoutDefaultProps>;
756
+
757
+ declare const Pagination: () => react_jsx_runtime.JSX.Element;
758
+
759
+ type PrerequisiteItemPosition = "top" | "middle" | "bottom" | "alone";
760
+ type PrerequisiteItemType = {
761
+ text: string;
762
+ link?: string;
763
+ position?: PrerequisiteItemPosition;
764
+ };
765
+
766
+ type PrerequisitesProps = {
767
+ items: PrerequisiteItemType[];
768
+ };
769
+ declare const Prerequisites: ({ items }: PrerequisitesProps) => react_jsx_runtime.JSX.Element;
770
+
771
+ type RadioItemProps = React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
772
+ checked?: boolean;
773
+ };
774
+ declare const RadioItem: ({ className, checked, ...props }: RadioItemProps) => react_jsx_runtime.JSX.Element;
775
+
776
+ type RatingProps = {
777
+ event?: string;
778
+ className?: string;
779
+ onRating?: (rating?: number) => void;
780
+ additionalQuestion?: string;
781
+ parentNotificationId?: string;
782
+ } & React$1.HTMLAttributes<HTMLDivElement>;
783
+ declare const Rating: React$1.FC<RatingProps>;
784
+
785
+ type LayoutProviderContextType = {
786
+ mainContentRef: React$1.RefObject<HTMLDivElement | null>;
787
+ showCollapsedNavbar: boolean;
788
+ };
789
+ declare const LayoutProviderContext: React$1.Context<LayoutProviderContextType | null>;
790
+ type LayoutProviderProps = {
791
+ children: React$1.ReactNode;
792
+ disableResizeObserver?: boolean;
793
+ };
794
+ declare const LayoutProvider: ({ children, disableResizeObserver, }: LayoutProviderProps) => react_jsx_runtime.JSX.Element;
795
+ declare const useLayout: () => LayoutProviderContextType;
796
+
797
+ type RootProvidersProps = {
798
+ children: React$1.ReactNode;
799
+ layoutProviderProps?: Omit<LayoutProviderProps, "children">;
800
+ };
801
+ declare const RootProviders: ({ children, layoutProviderProps, }: RootProvidersProps) => react_jsx_runtime.JSX.Element;
802
+
803
+ type ActiveOnScrollItem = {
804
+ heading: HTMLHeadingElement;
805
+ children?: ActiveOnScrollItem[];
806
+ };
807
+ type UseActiveOnScrollProps = {
808
+ rootElm?: Document | HTMLElement;
809
+ enable?: boolean;
810
+ useDefaultIfNoActive?: boolean;
811
+ maxLevel?: number;
812
+ };
813
+ declare const useActiveOnScroll: ({ rootElm, enable, useDefaultIfNoActive, maxLevel, }: UseActiveOnScrollProps) => {
814
+ items: ActiveOnScrollItem[];
815
+ activeItemId: string;
816
+ };
817
+
818
+ declare function useResizeObserver(ref: React.RefObject<HTMLElement | null>, callback: (entry: ResizeObserverEntry) => void): void;
819
+
820
+ type UseClickOutsideProps = {
821
+ elmRef: React$1.RefObject<HTMLElement | null>;
822
+ onClickOutside: (e: MouseEvent) => void;
823
+ };
824
+ declare const useClickOutside: ({ elmRef, onClickOutside, }: UseClickOutsideProps) => void;
825
+
826
+ type CollapsibleProps = {
827
+ initialValue?: boolean;
828
+ heightAnimation?: boolean;
829
+ translateEnabled?: boolean;
830
+ onClose?: () => void;
831
+ unmountOnExit?: boolean;
832
+ childrenRef?: React$1.RefObject<HTMLElement | null>;
833
+ useChild?: boolean;
834
+ };
835
+ type CollapsibleReturn = {
836
+ getCollapsibleElms: (children: React$1.ReactNode) => React$1.JSX.Element;
837
+ collapsed: boolean;
838
+ setCollapsed: React$1.Dispatch<React$1.SetStateAction<boolean>>;
839
+ };
840
+ declare const useCollapsible: ({ initialValue, heightAnimation, translateEnabled, onClose, unmountOnExit, childrenRef, useChild, }: CollapsibleProps) => CollapsibleReturn;
841
+
842
+ type HighlightProps = {
843
+ getLineProps: (input: LineInputProps) => LineOutputProps;
844
+ getTokenProps: (input: TokenInputProps) => TokenOutputProps;
845
+ };
846
+ type CollapsibleCodeLines = {
847
+ collapsibleLinesStr?: string;
848
+ getLines: (token: Token[][], highlightProps: HighlightProps, lineNumberOffset?: number) => React$1.JSX.Element[];
849
+ };
850
+ type CollapsedCodeLinesPosition = "start" | "end";
851
+ declare const useCollapsibleCodeLines: ({ collapsibleLinesStr, getLines, }: CollapsibleCodeLines) => {
852
+ getCollapsibleElms: (children: React$1.ReactNode) => React$1.JSX.Element;
853
+ collapsed: boolean;
854
+ setCollapsed: React$1.Dispatch<React$1.SetStateAction<boolean>>;
855
+ getCollapsedLinesElm: ({ tokens, highlightProps, }: {
856
+ tokens: Token[][];
857
+ highlightProps: HighlightProps;
858
+ }) => react_jsx_runtime.JSX.Element;
859
+ getNonCollapsedLinesElm: ({ tokens, highlightProps, }: {
860
+ tokens: Token[][];
861
+ highlightProps: HighlightProps;
862
+ }) => React$1.JSX.Element[];
863
+ type: CollapsedCodeLinesPosition | undefined;
864
+ isCollapsible: (tokens: Token[][]) => boolean | undefined;
865
+ };
866
+
867
+ type useCopyReturnType = {
868
+ isCopied: boolean;
869
+ handleCopy: () => void;
870
+ };
871
+ declare const useCopy: (text: string) => useCopyReturnType;
872
+
873
+ type useHeadingUrlProps = {
874
+ id: string;
875
+ };
876
+ declare const useHeadingUrl: ({ id }: useHeadingUrlProps) => string;
877
+
878
+ type UseIsExternalLinkProps = {
879
+ href?: string;
880
+ };
881
+ declare const useIsExternalLink: ({ href }: UseIsExternalLinkProps) => boolean | "" | undefined;
882
+
883
+ type UseMutationObserverProps = {
884
+ elm: Document | HTMLElement | undefined;
885
+ callback: () => void;
886
+ options?: {
887
+ attributes?: boolean;
888
+ characterData?: boolean;
889
+ childList?: boolean;
890
+ subtree?: boolean;
891
+ };
892
+ };
893
+ declare const useMutationObserver: ({ elm, callback, options, }: UseMutationObserverProps) => void;
894
+
895
+ type useKeyboardShortcutOptions = {
896
+ metakey?: boolean;
897
+ shortcutKeys: string[];
898
+ action: (e: KeyboardEvent) => void;
899
+ checkEditing?: boolean;
900
+ preventDefault?: boolean;
901
+ isLoading?: boolean;
902
+ };
903
+ declare const useKeyboardShortcut: ({ metakey, shortcutKeys, action, checkEditing, preventDefault, isLoading, }: useKeyboardShortcutOptions) => void;
904
+
905
+ declare const usePageScrollManager: () => void;
906
+
907
+ type EventFunc = (...args: never[]) => unknown;
908
+ declare function useEvent<T extends EventFunc>(callback: T): T;
909
+ /**
910
+ * Gets `value` from the last render.
911
+ */
912
+ declare function usePrevious<T>(value: T): T | undefined;
913
+ type ScrollController = {
914
+ /** A boolean ref tracking whether scroll events are enabled. */
915
+ scrollEventsEnabledRef: React$1.MutableRefObject<boolean>;
916
+ /** Enable scroll events in `useScrollPosition`. */
917
+ enableScrollEvents: () => void;
918
+ /** Disable scroll events in `useScrollPosition`. */
919
+ disableScrollEvents: () => void;
920
+ /** Retrieves the scrollable element. By default, it's window. */
921
+ scrollableElement: Element | Window | undefined;
922
+ /** Retrieves the scroll top if the scrollable element */
923
+ getScrolledTop: () => number;
924
+ /** Scrolls to an element */
925
+ scrollToElement: (elm: HTMLElement) => void;
926
+ /** Scrolls to a top value */
927
+ scrollToTop: (top: number, parentTop?: number) => void;
928
+ };
929
+ declare function ScrollControllerProvider({ children, scrollableSelector, }: {
930
+ children: ReactNode;
931
+ scrollableSelector?: string;
932
+ restoreScrollOnReload?: boolean;
933
+ }): react_jsx_runtime.JSX.Element;
934
+ /**
935
+ * We need a way to update the scroll position while ignoring scroll events
936
+ * so as not to toggle Navbar/BackToTop visibility.
937
+ *
938
+ * This API permits to temporarily disable/ignore scroll events. Motivated by
939
+ * https://github.com/facebook/docusaurus/pull/5618
940
+ */
941
+ declare function useScrollController(): ScrollController;
942
+ type ScrollPosition = {
943
+ scrollX: number;
944
+ scrollY: number;
945
+ };
946
+ /**
947
+ * This hook fires an effect when the scroll position changes. The effect will
948
+ * be provided with the before/after scroll positions. Note that the effect may
949
+ * not be always run: if scrolling is disabled through `useScrollController`, it
950
+ * will be a no-op.
951
+ *
952
+ * @see {@link useScrollController}
953
+ */
954
+ declare function useScrollPosition(effect: (position: ScrollPosition, lastPosition: ScrollPosition | null) => void, deps?: unknown[]): void;
955
+ /**
956
+ * This hook permits to "block" the scroll position of a DOM element.
957
+ * The idea is that we should be able to update DOM content above this element
958
+ * but the screen position of this element should not change.
959
+ *
960
+ * Feature motivated by the Tabs groups: clicking on a tab may affect tabs of
961
+ * the same group upper in the tree, yet to avoid a bad UX, the clicked tab must
962
+ * remain under the user mouse.
963
+ *
964
+ * @see https://github.com/facebook/docusaurus/pull/5618
965
+ */
966
+ declare function useScrollPositionBlocker(): {
967
+ /**
968
+ * Takes an element, and keeps its screen position no matter what's getting
969
+ * rendered above it, until the next render.
970
+ */
971
+ blockElementScrollPositionUntilNextRender: (el: HTMLElement) => void;
972
+ };
973
+
974
+ type OptionType = {
975
+ value: string;
976
+ label: string;
977
+ index?: string;
978
+ isAllOption?: boolean;
979
+ hitsPerPage?: number;
980
+ };
981
+ type SelectOptions = {
982
+ value: string | string[];
983
+ multiple?: boolean;
984
+ options: OptionType[];
985
+ setSelected?: (value: string | string[]) => void;
986
+ addSelected?: (value: string) => void;
987
+ removeSelected?: (value: string) => void;
988
+ handleAddAll?: (isAllSelected: boolean) => void;
989
+ };
990
+ declare const useSelect: ({ value, options, multiple, setSelected, addSelected, removeSelected, handleAddAll, }: SelectOptions) => {
991
+ isValueSelected: (val: string) => boolean;
992
+ hasSelectedValue: number | boolean;
993
+ hasSelectedValues: boolean;
994
+ selectedValues: OptionType[];
995
+ isAllSelected: boolean;
996
+ handleChange: (selectedValue: string, wasSelected: boolean) => void;
997
+ handleSelectAll: () => void;
998
+ setSelectedValues: (values: string[]) => void;
999
+ };
1000
+
1001
+ declare const SelectBadge: ({ value, options, setSelected, addSelected, removeSelected, multiple, className, addAll, handleAddAll, ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
1002
+
1003
+ type SelectDropdownProps = {
1004
+ options: OptionType[];
1005
+ open: boolean;
1006
+ setOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
1007
+ addAll?: boolean;
1008
+ multiple?: boolean;
1009
+ isAllSelected: boolean;
1010
+ isValueSelected: (val: string) => boolean;
1011
+ handleSelectAll: () => void;
1012
+ handleChange?: (selectedValue: string, wasSelected: boolean) => void;
1013
+ parentRef?: React$1.RefObject<HTMLDivElement>;
1014
+ className?: string;
1015
+ passedRef?: Ref<HTMLDivElement>;
1016
+ setSelectedValues?: (values: string[]) => void;
1017
+ };
1018
+ declare const SelectDropdown: ({ open, setOpen, options, addAll, multiple, isAllSelected, isValueSelected, handleSelectAll, handleChange: handleSelectChange, parentRef, className, passedRef, setSelectedValues, }: SelectDropdownProps) => react_jsx_runtime.JSX.Element;
1019
+
1020
+ declare const SelectInput: ({ value, options, setSelected, addSelected, removeSelected, multiple, className, addAll, handleAddAll, showClearButton, ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
1021
+
1022
+ type SelectProps = {
1023
+ options: OptionType[];
1024
+ multiple?: boolean;
1025
+ addAll?: boolean;
1026
+ showClearButton?: boolean;
1027
+ } & SelectOptions & React.ComponentProps<"input">;
1028
+
1029
+ type SidebarProps = {
1030
+ className?: string;
1031
+ };
1032
+ declare const Sidebar: ({ className }: SidebarProps) => react_jsx_runtime.JSX.Element;
1033
+
1034
+ type SidebarItemProps = {
1035
+ item: SidebarItem$1;
1036
+ nested?: boolean;
1037
+ hasNextItems?: boolean;
1038
+ isParentCategoryOpen?: boolean;
1039
+ } & React$1.AllHTMLAttributes<HTMLElement>;
1040
+ declare const SidebarItem: ({ item, hasNextItems, ...props }: SidebarItemProps) => react_jsx_runtime.JSX.Element;
1041
+
1042
+ type SourceCodeLinkProps = {
1043
+ link: string;
1044
+ text?: string;
1045
+ icon?: React$1.ReactNode;
1046
+ className?: string;
1047
+ };
1048
+ declare const SourceCodeLink: ({ link, text, icon, className, }: SourceCodeLinkProps) => react_jsx_runtime.JSX.Element;
1049
+
1050
+ type SplitListItem = {
1051
+ title: string;
1052
+ link: string;
1053
+ description?: string;
1054
+ };
1055
+ type SplitListProps = {
1056
+ items: SplitListItem[];
1057
+ listsNum?: number;
1058
+ };
1059
+ declare const SplitList: ({ items, listsNum }: SplitListProps) => react_jsx_runtime.JSX.Element;
1060
+
1061
+ type RootProps = React$1.HTMLAttributes<HTMLTableElement>;
1062
+ type HeaderProps = React$1.HTMLAttributes<HTMLTableSectionElement>;
1063
+ type HeaderCellProps = React$1.HTMLAttributes<HTMLTableCellElement>;
1064
+ type CellProps = React$1.HTMLAttributes<HTMLTableCellElement>;
1065
+ type BodyProps = React$1.HTMLAttributes<HTMLTableSectionElement>;
1066
+ declare const Table: (({ className, ...props }: RootProps) => react_jsx_runtime.JSX.Element) & {
1067
+ Row: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
1068
+ Cell: ({ className, ...props }: CellProps) => react_jsx_runtime.JSX.Element;
1069
+ Header: ({ className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
1070
+ HeaderCell: ({ className, ...props }: HeaderCellProps) => react_jsx_runtime.JSX.Element;
1071
+ Body: ({ className, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
1072
+ };
1073
+
1074
+ type TabsProps = ComponentProps<typeof Tabs$1> & {
1075
+ layoutType?: "horizontal" | "vertical";
1076
+ };
1077
+ declare const Tabs: ({ layoutType, className, ...props }: TabsProps) => react_jsx_runtime.JSX.Element;
1078
+ declare const TabsList: ({ className, ...props }: ComponentProps<typeof Tabs$1.List>) => react_jsx_runtime.JSX.Element;
1079
+ declare const TabsTrigger: ({ className, ...props }: ComponentProps<typeof Tabs$1.Trigger>) => react_jsx_runtime.JSX.Element;
1080
+ declare const TabsTriggerVertical: ({ className, children, ...props }: ComponentProps<typeof Tabs$1.Trigger>) => react_jsx_runtime.JSX.Element;
1081
+ type TabsContentWrapperProps = {
1082
+ className?: string;
1083
+ children: React$1.ReactNode;
1084
+ };
1085
+ declare const TabsContentWrapper: ({ className, ...props }: TabsContentWrapperProps) => react_jsx_runtime.JSX.Element;
1086
+ declare const TabsContent: (props: ComponentProps<typeof Tabs$1.Content>) => react_jsx_runtime.JSX.Element;
1087
+
1088
+ type TextAreaProps = {
1089
+ className?: string;
1090
+ } & React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
1091
+ declare const TextArea: (props: TextAreaProps) => react_jsx_runtime.JSX.Element;
1092
+
1093
+ declare const Toggle: ({ className, ...props }: React$1.ComponentProps<typeof Switch>) => react_jsx_runtime.JSX.Element;
1094
+
1095
+ type TooltipProps = {
1096
+ text?: string;
1097
+ tooltipClassName?: string;
1098
+ html?: string;
1099
+ tooltipChildren?: React$1.ReactNode;
1100
+ innerClassName?: string;
1101
+ } & React$1.HTMLAttributes<HTMLSpanElement> & ITooltip;
1102
+ declare const Tooltip: React$1.ForwardRefExoticComponent<{
1103
+ text?: string;
1104
+ tooltipClassName?: string;
1105
+ html?: string;
1106
+ tooltipChildren?: React$1.ReactNode;
1107
+ innerClassName?: string;
1108
+ } & React$1.HTMLAttributes<HTMLSpanElement> & ITooltip & React$1.RefAttributes<HTMLSpanElement>>;
1109
+
1110
+ type CommonProps = {
1111
+ expandUrl?: string;
1112
+ sectionTitle?: string;
1113
+ openedLevel?: number;
1114
+ };
1115
+ type Type = {
1116
+ name: string;
1117
+ type: string;
1118
+ optional?: boolean;
1119
+ defaultValue?: string;
1120
+ example?: string;
1121
+ description?: string;
1122
+ featureFlag?: string;
1123
+ expandable: boolean;
1124
+ children?: Type[];
1125
+ deprecated?: {
1126
+ is_deprecated: boolean;
1127
+ description?: string;
1128
+ };
1129
+ since?: string;
1130
+ };
1131
+ type ParameterTypesType = {
1132
+ types: Type[];
1133
+ sectionTitle?: string;
1134
+ } & CommonProps & React$1.HTMLAttributes<HTMLDivElement>;
1135
+ declare const TypeList: ({ types, className, sectionTitle, expandUrl, openedLevel, ...props }: ParameterTypesType) => react_jsx_runtime.JSX.Element;
1136
+
1137
+ type WideSectionProps = React$1.AllHTMLAttributes<HTMLElement> & {
1138
+ as?: "div" | "main";
1139
+ };
1140
+ declare const WideSection: ({ children, className, as, }: WideSectionProps) => react_jsx_runtime.JSX.Element;
1141
+
1142
+ type ZoomImgProps = React$1.DetailedHTMLProps<React$1.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
1143
+ declare const ZoomImg: (props: ZoomImgProps) => react_jsx_runtime.JSX.Element;
1144
+
1145
+ type BareboneLayoutProps = {
1146
+ htmlClassName?: string;
1147
+ children: React$1.ReactNode;
1148
+ };
1149
+ declare const BareboneLayout: ({ htmlClassName, children, }: BareboneLayoutProps) => react_jsx_runtime.JSX.Element;
1150
+
1151
+ type MainContentLayoutProps = {
1152
+ mainWrapperClasses?: string;
1153
+ contentClassName?: string;
1154
+ children: React$1.ReactNode;
1155
+ showContentMenu?: boolean;
1156
+ };
1157
+
1158
+ type RootLayoutProps = {
1159
+ bodyClassName?: string;
1160
+ sidebarProps?: SidebarProps;
1161
+ showBreadcrumbs?: boolean;
1162
+ ProvidersComponent: React$1.FC<{
1163
+ children: React$1.ReactNode;
1164
+ }>;
1165
+ footerComponent?: React$1.ReactNode;
1166
+ } & MainContentLayoutProps;
1167
+ declare const RootLayout: ({ bodyClassName, sidebarProps, ProvidersComponent, ...mainProps }: RootLayoutProps) => react_jsx_runtime.JSX.Element;
1168
+
1169
+ declare const TightLayout: ({ children, footerComponent, showBreadcrumbs, ...props }: RootLayoutProps) => react_jsx_runtime.JSX.Element;
1170
+
1171
+ declare const WideLayout: ({ children, footerComponent, showBreadcrumbs, ...props }: RootLayoutProps) => react_jsx_runtime.JSX.Element;
1172
+
1173
+ type BrowserContextType = {
1174
+ isBrowser: boolean;
1175
+ };
1176
+ type BrowserProviderProps = {
1177
+ children: React$1.ReactNode;
1178
+ };
1179
+ declare const BrowserProvider: ({ children }: BrowserProviderProps) => react_jsx_runtime.JSX.Element;
1180
+ declare const useIsBrowser: () => BrowserContextType;
1181
+
1182
+ type ColorMode = "light" | "dark";
1183
+ type ColorModeContextType = {
1184
+ colorMode: ColorMode;
1185
+ setColorMode: (value: ColorMode) => void;
1186
+ toggleColorMode: () => void;
1187
+ };
1188
+ type ColorModeProviderProps = {
1189
+ children: React$1.ReactNode;
1190
+ };
1191
+ declare const ColorModeProvider: ({ children }: ColorModeProviderProps) => react_jsx_runtime.JSX.Element;
1192
+ declare const useColorMode: () => ColorModeContextType;
1193
+
1194
+ type MobileContextType = {
1195
+ isMobile?: boolean;
1196
+ };
1197
+ type MobileProviderProps = {
1198
+ children: React$1.ReactNode;
1199
+ };
1200
+ declare const MobileProvider: ({ children }: MobileProviderProps) => react_jsx_runtime.JSX.Element;
1201
+ declare const useMobile: () => MobileContextType;
1202
+
1203
+ type ModalContextType = {
1204
+ modalProps: ModalProps | null;
1205
+ setModalProps: (value: ModalProps | null) => void;
1206
+ closeModal: () => void;
1207
+ };
1208
+ type ModalProviderProps = {
1209
+ children?: React$1.ReactNode;
1210
+ };
1211
+ declare const ModalProvider: ({ children }: ModalProviderProps) => react_jsx_runtime.JSX.Element;
1212
+ declare const useModal: () => ModalContextType;
1213
+
1214
+ type NotificationItemType = {
1215
+ id?: string;
1216
+ } & NotificationItemProps;
1217
+ type NotificationContextType = {
1218
+ notifications: NotificationItemType[];
1219
+ addNotification: (value: NotificationItemType) => void;
1220
+ generateId: () => string;
1221
+ removeNotification: (id: string) => void;
1222
+ updateNotification: (id: string, updatedData: Partial<Omit<NotificationItemType, "id">>) => void;
1223
+ };
1224
+ declare enum NotificationReducerActionTypes {
1225
+ ADD = "add",
1226
+ REMOVE = "remove",
1227
+ UPDATE = "update"
1228
+ }
1229
+ type NotificationReducerAction = {
1230
+ type: NotificationReducerActionTypes.ADD;
1231
+ notification: NotificationItemType;
1232
+ } | {
1233
+ type: NotificationReducerActionTypes.REMOVE;
1234
+ id: string;
1235
+ } | {
1236
+ type: NotificationReducerActionTypes.UPDATE;
1237
+ id: string;
1238
+ updatedData: Partial<Omit<NotificationItemType, "id">>;
1239
+ };
1240
+ type NotificationProviderProps = {
1241
+ children?: React$1.ReactNode;
1242
+ initial?: NotificationItemType[];
1243
+ };
1244
+ declare const NotificationProvider: ({ children, initial, }: NotificationProviderProps) => react_jsx_runtime.JSX.Element;
1245
+ declare const useNotifications: (suppressError?: boolean) => NotificationContextType | null;
1246
+
1247
+ type SearchCommand = {
1248
+ name: string;
1249
+ component?: React$1.ReactNode;
1250
+ action?: () => void;
1251
+ icon?: React$1.ReactNode;
1252
+ title: string;
1253
+ badge?: BadgeProps;
1254
+ };
1255
+ type SearchContextType = {
1256
+ isOpen: boolean;
1257
+ setIsOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
1258
+ searchClient: any;
1259
+ commands: SearchCommand[];
1260
+ command: SearchCommand | null;
1261
+ setCommand: React$1.Dispatch<React$1.SetStateAction<SearchCommand | null>>;
1262
+ setCommands: React$1.Dispatch<React$1.SetStateAction<SearchCommand[]>>;
1263
+ modalRef: React$1.RefObject<HTMLDialogElement | null>;
1264
+ indices: AlgoliaIndex[];
1265
+ selectedIndex: string;
1266
+ setSelectedIndex: (value: string) => void;
1267
+ };
1268
+ type AlgoliaIndex = {
1269
+ value: string;
1270
+ title: string;
1271
+ };
1272
+ type AlgoliaProps = {
1273
+ appId: string;
1274
+ apiKey: string;
1275
+ mainIndexName: string;
1276
+ };
1277
+ type SearchProps = {
1278
+ algolia: AlgoliaProps;
1279
+ };
1280
+ type SearchProviderProps = {
1281
+ children: React$1.ReactNode;
1282
+ indices?: AlgoliaIndex[];
1283
+ defaultIndex?: string;
1284
+ algolia?: AlgoliaProps;
1285
+ searchProps?: any;
1286
+ commands?: SearchCommand[];
1287
+ modalClassName?: string;
1288
+ };
1289
+ declare const SearchProvider: ({ children, }: SearchProviderProps) => react_jsx_runtime.JSX.Element;
1290
+ declare const useSearch: () => SearchContextType;
1291
+
1292
+ type SiteConfigContextType = {
1293
+ config: DocsConfig;
1294
+ setConfig: React$1.Dispatch<React$1.SetStateAction<DocsConfig>>;
1295
+ frontmatter: FrontMatter;
1296
+ setFrontmatter: React$1.Dispatch<React$1.SetStateAction<FrontMatter>>;
1297
+ toc: ToCItem[] | null;
1298
+ setToc: React$1.Dispatch<React$1.SetStateAction<ToCItem[] | null>>;
1299
+ };
1300
+ type SiteConfigProviderProps = {
1301
+ config?: DocsConfig;
1302
+ children?: React$1.ReactNode;
1303
+ };
1304
+ declare const SiteConfigProvider: ({ config: initConfig, children, }: SiteConfigProviderProps) => react_jsx_runtime.JSX.Element;
1305
+ declare const useSiteConfig: () => SiteConfigContextType;
1306
+
1307
+ type AiAssistantChatType = "default" | "popover";
1308
+ type AiAssistantContextType = {
1309
+ chatOpened: boolean;
1310
+ setChatOpened: React$1.Dispatch<React$1.SetStateAction<boolean>>;
1311
+ chatType: AiAssistantChatType;
1312
+ inputRef: React$1.RefObject<HTMLInputElement | HTMLTextAreaElement | null>;
1313
+ contentRef: React$1.RefObject<HTMLDivElement | null>;
1314
+ loading: boolean;
1315
+ isCaptchaLoaded: boolean;
1316
+ };
1317
+ type AiAssistantThreadItem = {
1318
+ type: "question" | "answer" | "error";
1319
+ content: string;
1320
+ question_id?: string | null;
1321
+ sources?: any[];
1322
+ isGenerationAborted?: boolean;
1323
+ };
1324
+ type AiAssistantProviderProps = {
1325
+ children?: React$1.ReactNode;
1326
+ integrationId?: string;
1327
+ chatType?: AiAssistantChatType;
1328
+ type?: "search" | "chat";
1329
+ };
1330
+ declare const AiAssistantProvider: ({ children, chatType, }: AiAssistantProviderProps) => react_jsx_runtime.JSX.Element;
1331
+ declare const useAiAssistant: () => AiAssistantContextType;
1332
+
1333
+ type MainNavContext = {
1334
+ navItems: NavigationItem[];
1335
+ activeItemIndex?: number;
1336
+ activeItem?: NavigationItem;
1337
+ editDate?: string;
1338
+ };
1339
+ type MainNavProviderProps = {
1340
+ navItems: NavigationItem[];
1341
+ children?: React$1.ReactNode;
1342
+ };
1343
+ declare const MainNavProvider: ({ navItems, children, }: MainNavProviderProps) => react_jsx_runtime.JSX.Element;
1344
+ declare const useMainNav: () => MainNavContext;
1345
+
1346
+ type SidebarActionOptions = {
1347
+ sidebar_id: string;
1348
+ /**
1349
+ * When specified, the items are added as children of the parent item
1350
+ */
1351
+ parent?: {
1352
+ type: InteractiveSidebarItemTypes;
1353
+ path: string;
1354
+ title: string;
1355
+ /**
1356
+ * Whether to change the loaded state of the parent item
1357
+ */
1358
+ changeLoaded?: boolean;
1359
+ };
1360
+ /**
1361
+ * The position to insert the items at
1362
+ */
1363
+ indexPosition?: number;
1364
+ /**
1365
+ * If enabled, the items are filtered to not add items that already exist
1366
+ */
1367
+ ignoreExisting?: boolean;
1368
+ };
1369
+ type SidebarStyleOptions = {
1370
+ /**
1371
+ * Useful for projects that have nested sidebars.
1372
+ */
1373
+ disableActiveTransition?: boolean;
1374
+ };
1375
+ type UpdateSidebarItemTypes = Partial<Pick<SidebarItemLink, "path" | "title" | "additionalElms">> | Partial<Pick<SidebarItemCategory, "title" | "loaded" | "onOpen" | "children">> | Partial<Pick<SidebarItemSidebar, "title" | "children">>;
1376
+ type UpdateActionType = {
1377
+ sidebar_id: string;
1378
+ items: {
1379
+ existingItem: SidebarItem$1;
1380
+ newItem: UpdateSidebarItemTypes;
1381
+ options?: {
1382
+ setChildrenBehavior: "replace" | "merge";
1383
+ };
1384
+ }[];
1385
+ };
1386
+ type SidebarContextType = {
1387
+ sidebars: Sidebar$1[];
1388
+ /**
1389
+ * The sidebar that is currently shown
1390
+ */
1391
+ shownSidebar: Sidebar$1 | SidebarItemSidebar | undefined;
1392
+ activePath: string | null;
1393
+ activeItem: SidebarItemLink | null;
1394
+ setActivePath: (path: string | null) => void;
1395
+ /**
1396
+ * Check if an item is active. This includes checking its child items,
1397
+ * so for UI links that have children, the `checkLinkChildren` option should be set to `false`
1398
+ * to ensure that the link isn't shown as active if a child link is active.
1399
+ */
1400
+ isItemActive: (options: {
1401
+ item: InteractiveSidebarItem;
1402
+ checkLinkChildren?: boolean;
1403
+ }) => boolean;
1404
+ addItems: (items: SidebarItem$1[], options?: SidebarActionOptions) => void;
1405
+ updateItems: (options: UpdateActionType) => void;
1406
+ removeItems: (options: {
1407
+ items: SidebarItem$1[];
1408
+ sidebar_id: string;
1409
+ }) => void;
1410
+ mobileSidebarOpen: boolean;
1411
+ setMobileSidebarOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
1412
+ desktopSidebarOpen: boolean;
1413
+ setDesktopSidebarOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
1414
+ isSidebarStatic: boolean;
1415
+ /**
1416
+ * Whether the active path should change when the hash changes
1417
+ * This is only used by the API reference
1418
+ */
1419
+ shouldHandleHashChange: boolean;
1420
+ sidebarRef: React$1.RefObject<HTMLDivElement | null>;
1421
+ /**
1422
+ * Go back in the sidebar history
1423
+ */
1424
+ goBack: () => void;
1425
+ /**
1426
+ * The height of the top part of the sidebar
1427
+ */
1428
+ sidebarTopHeight: number;
1429
+ setSidebarTopHeight: React$1.Dispatch<React$1.SetStateAction<number>>;
1430
+ /**
1431
+ * Reset the sidebar to its initial state (the sidebars passed as a prop)
1432
+ */
1433
+ resetItems: () => void;
1434
+ updatePersistedCategoryState: (title: string, opened: boolean) => void;
1435
+ getPersistedCategoryState: (title: string) => boolean | undefined;
1436
+ persistCategoryState: boolean;
1437
+ isSidebarShown: boolean;
1438
+ sidebarHistory: string[];
1439
+ /**
1440
+ * Get the first link child of a sidebar
1441
+ */
1442
+ getSidebarFirstLinkChild: (sidebar: Sidebar$1 | SidebarItemSidebar) => SidebarItemLink | undefined;
1443
+ getSidebar: (sidebar_id: string) => Sidebar$1 | SidebarItemSidebar;
1444
+ } & SidebarStyleOptions;
1445
+ declare const SidebarContext: React$1.Context<SidebarContextType | null>;
1446
+ type ActionType = {
1447
+ type: "add" | "update-child";
1448
+ items: SidebarItem$1[];
1449
+ options?: SidebarActionOptions;
1450
+ } | {
1451
+ type: "replace";
1452
+ sidebars: Sidebar$1[];
1453
+ } | {
1454
+ type: "remove";
1455
+ items: SidebarItem$1[];
1456
+ sidebar_id: string;
1457
+ } | ({
1458
+ type: "update";
1459
+ } & UpdateActionType);
1460
+ declare const reducer: (state: Sidebar$1[], actionData: ActionType) => Sidebar$1[];
1461
+ type SidebarProviderProps = {
1462
+ children?: React$1.ReactNode;
1463
+ isLoading?: boolean;
1464
+ setIsLoading?: React$1.Dispatch<React$1.SetStateAction<boolean>>;
1465
+ sidebars: Sidebar$1[];
1466
+ shouldHandleHashChange?: boolean;
1467
+ shouldHandlePathChange?: boolean;
1468
+ scrollableElement?: Element | Window;
1469
+ isSidebarStatic?: boolean;
1470
+ persistCategoryState?: boolean;
1471
+ disableActiveTransition?: boolean;
1472
+ } & SidebarStyleOptions;
1473
+ declare const SidebarProvider: ({ children, isLoading, setIsLoading, sidebars: initialSidebars, shouldHandleHashChange, shouldHandlePathChange, scrollableElement, isSidebarStatic, persistCategoryState, disableActiveTransition, }: SidebarProviderProps) => react_jsx_runtime.JSX.Element;
1474
+ declare const useSidebar: () => SidebarContextType;
1475
+
1476
+ type Page = {
1477
+ title: string;
1478
+ description?: string;
1479
+ parentTitle?: string;
1480
+ link: string;
1481
+ };
1482
+ type PaginationContextType = {
1483
+ nextPage?: Page;
1484
+ previousPage?: Page;
1485
+ };
1486
+ declare const PaginationContext: React$1.Context<PaginationContextType | null>;
1487
+ type PaginationProviderProps = {
1488
+ children?: React$1.ReactNode;
1489
+ };
1490
+ declare const PaginationProvider: ({ children }: PaginationProviderProps) => react_jsx_runtime.JSX.Element;
1491
+ declare const usePagination: () => PaginationContextType;
1492
+
1493
+ declare function checkArraySameElms(arr1: Array<any>, arr2: Array<any>): boolean;
1494
+
1495
+ declare function capitalize(str: string): string;
1496
+
1497
+ declare function checkSidebarItemVisibility(item: HTMLElement, withTransition?: boolean, topMargin?: number): boolean;
1498
+
1499
+ declare function decodeStr(str: string): string;
1500
+
1501
+ declare function findPrevSibling(element: HTMLElement, selector: string): HTMLElement | null;
1502
+ declare function findNextSibling(element: HTMLElement, selector: string): HTMLElement | null;
1503
+
1504
+ declare function getLinkWithBasePath(path: string, basePath?: string): string;
1505
+
1506
+ type Options = {
1507
+ basePath: string;
1508
+ };
1509
+ declare function getNavDropdownItems({ basePath }: Options): NavigationItem[];
1510
+ declare function normalizeMenuItems({ basePath, items, }: {
1511
+ basePath: string;
1512
+ items: MenuItem[];
1513
+ }): MenuItem[];
1514
+
1515
+ declare function getBrowser(): "Chrome" | "Safari" | "Firefox" | "Internet Explorer" | "Edge" | "unknown";
1516
+ declare function getOsShortcut(): "⌘" | "Ctrl";
1517
+
1518
+ declare function getScrolledTop(elm?: Element | Window): number;
1519
+
1520
+ declare function isElmWindow(elm: unknown): elm is Window;
1521
+
1522
+ declare function isInView(element: Element): boolean;
1523
+
1524
+ declare const isSidebarItemLink: (item: SidebarItem$1 | undefined, options?: {
1525
+ checkRef?: boolean;
1526
+ checkExternal?: boolean;
1527
+ }) => item is SidebarItemLink;
1528
+ declare const areSidebarItemsEqual: ({ itemA, itemB, compareTitles, }: {
1529
+ itemA: SidebarItem$1;
1530
+ itemB: SidebarItem$1;
1531
+ compareTitles?: boolean;
1532
+ }) => boolean;
1533
+ declare const findSidebarItem: ({ sidebarItems, item, checkChildren, compareTitles, }: {
1534
+ sidebarItems: SidebarItem$1[];
1535
+ item: SidebarItem$1;
1536
+ checkChildren?: boolean;
1537
+ compareTitles?: boolean;
1538
+ }) => SidebarItem$1 | undefined;
1539
+ declare const getSidebarItemWithHistory: ({ sidebarItems, item, sidebarHistory, checkChildren, compareTitles, }: {
1540
+ sidebarItems: SidebarItem$1[];
1541
+ item: SidebarItem$1;
1542
+ sidebarHistory?: string[];
1543
+ checkChildren?: boolean;
1544
+ compareTitles?: boolean;
1545
+ }) => {
1546
+ item: SidebarItem$1 | undefined;
1547
+ sidebarHistory: string[];
1548
+ };
1549
+
1550
+ export { type ActionType, type ActiveOnScrollItem, type AiAssistantChatType, type AiAssistantContextType, AiAssistantIcon, AiAssistantProvider, type AiAssistantProviderProps, type AiAssistantThreadItem, type AlgoliaIndex, type AlgoliaProps, Badge, type BadgeProps, type BadgeType, type BadgeVariant, BadgesList, BareboneLayout, type BareboneLayoutProps, type BaseTabType, BetaBadge, Bordered, BorderedIcon, type BorderedIconProps, type BorderedProps, Breadcrumbs, BrowserProvider, BundledProductIcon, Button, type ButtonProps, type ButtonType, type ButtonVariants, CalendarRefreshIcon, Card, CardList, type CardProps, ChefHatIcon, ChildDocs, CodeBlock, type CodeBlockMetaFields, type CodeBlockProps, type CodeBlockStyle, CodeMdx, type CodeMdxProps, CodeTab, CodeTabs, type CollapsedCodeLinesPosition, type CollapsibleCodeLines, type CollapsibleProps, type CollapsibleReturn, type ColorMode, type ColorModeContextType, ColorModeProvider, type ColorModeProviderProps, ColoredAcmeKitIcon, type CommonProps, ContentMenu, CopyButton, type CopyButtonChildFn, type CopyButtonProps, DecisionProcessIcon, DeprecatedNotice, type DeprecatedNoticeProps, Details, DetailsList, type DetailsProps, DetailsSummary, type DetailsSummaryProps, DocsTrackingEvents, DotsLoading, type DotsLoadingProps, DottedSeparator, type DottedSeparatorProps, DropdownMenu, EditButton, EditDate, ErpIcon, ErrorPage, type EventData, ExpandableNotice, type ExpandableNoticeProps, FeatureFlagNotice, type FeatureFlagNoticeProps, Feedback, type FeedbackProps, Footer, type FooterProps, GITHUB_ISSUES_LINK, type GitHubSearchItem, H1, type H1Props, H2, type H2Props, H3, type H3Props, H4, type Highlight, type HighlightProps, Hr, IconCircleDottedLine, IconCloudSolid, IconHeadline, ImageBinaryIcon, InlineCode, type InlineCodeProps, InlineIcon, InlineThemeImage, InputText, type InputTextProps, Kbd, type KbdProps, Label, type LabelProps, LayoutProvider, LayoutProviderContext, type LayoutProviderContextType, type LayoutProviderProps, Link, LinkButton, type LinkProps, Loading, type LoadingProps, MDXComponents, MainNav, type MainNavContext, MainNavProvider, type MainNavProviderProps, MarkdownContent, type MarkdownContentProps, Menu, type MenuProps, type MobileContextType, MobileProvider, type MobileProviderProps, Modal, type ModalContextType, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalProvider, type ModalProviderProps, Note, type NoteProps, NotificationContainer, type NotificationContextType, NotificationItem, NotificationItemLayoutDefault, type NotificationItemLayoutDefaultProps, type NotificationItemProps, type NotificationItemType, NotificationProvider, type NotificationProviderProps, type NotificationReducerAction, NotificationReducerActionTypes, type OptionType, type Page, Pagination, PaginationContext, type PaginationContextType, PaginationProvider, type PaginationProviderProps, Prerequisites, PuzzleColoredIcon, QuestionMarkIcon, RadioItem, type RadioItemProps, Rating, type RatingProps, RestockIcon, RootLayout, type RootLayoutProps, RootProviders, ScrollControllerProvider, ScrollTextIcon, type SearchCommand, type SearchContextType, SearchInput, type SearchProps, SearchProvider, type SearchProviderProps, SelectBadge, SelectDropdown, type SelectDropdownProps, SelectInput, type SelectOptions, type SelectProps, ShadedBgIcon, ShopIcon, Sidebar, type SidebarActionOptions, SidebarContext, type SidebarContextType, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, type SidebarStyleOptions, type SiteConfigContextType, SiteConfigProvider, type SiteConfigProviderProps, Solutions, type SolutionsProps, SourceCodeLink, SpinnerLoading, type SpinnerLoadingProps, SplitList, type SplitListProps, StripeColoredIcon, type TabProps, Table, Tabs, TabsContent, TabsContentWrapper, TabsList, TabsTrigger, TabsTriggerVertical, TextArea, type TextAreaProps, ThemeImage, type ThemeImageProps, ThumbDownIcon, ThumbUpIcon, TightLayout, Toggle, Tooltip, type TooltipProps, type Type, TypeList, type UpdateActionType, type UpdateSidebarItemTypes, type UseActiveOnScrollProps, type UseChildDocsProps, type UseClickOutsideProps, VersionNotice, type VersionNoticeProps, WideLayout, WideSection, WindowPaintbrushIcon, ZoomImg, areSidebarItemsEqual, capitalize, checkArraySameElms, checkSidebarItemVisibility, decodeStr, findNextSibling, findPrevSibling, findSidebarItem, getBrowser, getLinkWithBasePath, getNavDropdownItems, getOsShortcut, getScrolledTop, getSidebarItemWithHistory, globalConfig, isElmWindow, isInView, isSidebarItemLink, navDropdownItems, normalizeMenuItems, products, reducer, useActiveOnScroll, useAiAssistant, useClickOutside, useCollapsible, useCollapsibleCodeLines, useColorMode, useCopy, useEvent, useHeadingUrl, useIsBrowser, useIsExternalLink, useKeyboardShortcut, type useKeyboardShortcutOptions, useLayout, useMainNav, useMobile, useModal, useMutationObserver, useNotifications, usePageScrollManager, usePagination, usePrevious, useResizeObserver, useScrollController, useScrollPosition, useScrollPositionBlocker, useSearch, useSelect, useSidebar, useSiteConfig, useTabs };