zudoku 0.21.15 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/dist/app/demo.js +1 -1
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +1 -15
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +1 -2
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/sentry.js +1 -1
  9. package/dist/app/sentry.js.map +1 -1
  10. package/dist/app/standalone.js +1 -1
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cmds/build.js +1 -0
  13. package/dist/cli/cmds/build.js.map +1 -1
  14. package/dist/config/validators/common.d.ts +104 -104
  15. package/dist/config/validators/icon-types.d.ts +1 -1
  16. package/dist/config/validators/validate.d.ts +90 -90
  17. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  18. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  19. package/dist/lib/authentication/components/SignIn.js +1 -1
  20. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  21. package/dist/lib/authentication/components/SignOut.js +1 -1
  22. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  23. package/dist/lib/components/AnchorLink.d.ts +1 -1
  24. package/dist/lib/components/AnchorLink.js +1 -1
  25. package/dist/lib/components/AnchorLink.js.map +1 -1
  26. package/dist/lib/components/Bootstrap.d.ts +1 -2
  27. package/dist/lib/components/Bootstrap.js +3 -3
  28. package/dist/lib/components/Bootstrap.js.map +1 -1
  29. package/dist/lib/components/Header.js +1 -1
  30. package/dist/lib/components/Header.js.map +1 -1
  31. package/dist/lib/components/Layout.js +1 -1
  32. package/dist/lib/components/Layout.js.map +1 -1
  33. package/dist/lib/components/Markdown.js +1 -1
  34. package/dist/lib/components/Markdown.js.map +1 -1
  35. package/dist/lib/components/NotFoundPage.js +1 -1
  36. package/dist/lib/components/NotFoundPage.js.map +1 -1
  37. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  38. package/dist/lib/components/ReactMarkdown.js +182 -0
  39. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  40. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  41. package/dist/lib/components/TopNavigation.js +1 -1
  42. package/dist/lib/components/TopNavigation.js.map +1 -1
  43. package/dist/lib/components/Zudoku.js +1 -1
  44. package/dist/lib/components/Zudoku.js.map +1 -1
  45. package/dist/lib/components/context/ZudokuContext.js +1 -1
  46. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  47. package/dist/lib/components/index.d.ts +4 -4
  48. package/dist/lib/components/index.js +1 -1
  49. package/dist/lib/components/index.js.map +1 -1
  50. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  51. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  52. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  53. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  54. package/dist/lib/components/navigation/utils.js +1 -1
  55. package/dist/lib/components/navigation/utils.js.map +1 -1
  56. package/dist/lib/core/plugins.d.ts +3 -5
  57. package/dist/lib/core/plugins.js.map +1 -1
  58. package/dist/lib/errors/RouterError.js +1 -1
  59. package/dist/lib/errors/RouterError.js.map +1 -1
  60. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  61. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  62. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  63. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  64. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  65. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  66. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  67. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  68. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  69. package/dist/lib/plugins/markdown/index.js.map +1 -1
  70. package/dist/lib/plugins/openapi/Route.js +1 -1
  71. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  72. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  73. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  74. package/dist/lib/plugins/openapi/index.js +1 -1
  75. package/dist/lib/plugins/openapi/index.js.map +1 -1
  76. package/dist/lib/plugins/redirect/index.js +1 -1
  77. package/dist/lib/plugins/redirect/index.js.map +1 -1
  78. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  79. package/dist/lib/plugins/search-inkeep/index.js +27 -5
  80. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  81. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  82. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  83. package/dist/lib/util/MdxComponents.d.ts +16 -16
  84. package/dist/lib/util/MdxComponents.js +1 -3
  85. package/dist/lib/util/MdxComponents.js.map +1 -1
  86. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  87. package/dist/lib/util/useExposedProps.js +1 -1
  88. package/dist/lib/util/useExposedProps.js.map +1 -1
  89. package/dist/lib/util/useOnScreen.d.ts +1 -1
  90. package/dist/lib/util/useScrollToAnchor.js +1 -1
  91. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  92. package/dist/lib/util/useScrollToTop.js +1 -1
  93. package/dist/lib/util/useScrollToTop.js.map +1 -1
  94. package/dist/vite/config.js +15 -8
  95. package/dist/vite/config.js.map +1 -1
  96. package/dist/vite/css/collect.d.ts +2 -0
  97. package/dist/vite/css/collect.js +27 -0
  98. package/dist/vite/css/collect.js.map +1 -0
  99. package/dist/vite/css/plugin.d.ts +5 -0
  100. package/dist/vite/css/plugin.js +79 -0
  101. package/dist/vite/css/plugin.js.map +1 -0
  102. package/dist/vite/dev-server.js +7 -3
  103. package/dist/vite/dev-server.js.map +1 -1
  104. package/dist/vite/plugin-mdx.js +2 -0
  105. package/dist/vite/plugin-mdx.js.map +1 -1
  106. package/dist/vite/plugin.js +4 -0
  107. package/dist/vite/plugin.js.map +1 -1
  108. package/lib/{AnchorLink-BR0MvI7n.js → AnchorLink-DFZZbmvr.js} +13 -14
  109. package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
  110. package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-DQy635W9.js} +15 -16
  111. package/lib/AuthenticationPlugin-DQy635W9.js.map +1 -0
  112. package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
  113. package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
  114. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
  115. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
  116. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  117. package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
  118. package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
  119. package/lib/{Markdown-CdkU5HcM.js → Markdown-CZDLNOFc.js} +13235 -13225
  120. package/lib/Markdown-CZDLNOFc.js.map +1 -0
  121. package/lib/{MdxPage-ChziqNPp.js → MdxPage-CBa4X6L5.js} +9 -9
  122. package/lib/MdxPage-CBa4X6L5.js.map +1 -0
  123. package/lib/OperationList-Bj-6EKhp.js +4889 -0
  124. package/lib/{OperationList-CQKkyrZH.js.map → OperationList-Bj-6EKhp.js.map} +1 -1
  125. package/lib/Route-C9cYcP-j.js +11 -0
  126. package/lib/Route-C9cYcP-j.js.map +1 -0
  127. package/lib/{Select-O9ZM3ZgX.js → Select-Bb_Hqc70.js} +5 -5
  128. package/lib/{Select-O9ZM3ZgX.js.map → Select-Bb_Hqc70.js.map} +1 -1
  129. package/lib/{SidebarBadge-DxFJcJ6V.js → SidebarBadge-Bm793GDY.js} +3 -3
  130. package/lib/{SidebarBadge-DxFJcJ6V.js.map → SidebarBadge-Bm793GDY.js.map} +1 -1
  131. package/lib/SlotletProvider-pfc9oejW.js +221 -0
  132. package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
  133. package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
  134. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
  135. package/lib/{SyntaxHighlight-C31iouiO.js → SyntaxHighlight-Bz-lOJtH.js} +8 -10
  136. package/lib/{SyntaxHighlight-C31iouiO.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
  137. package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
  138. package/lib/assets/index-C7jnHK4b.js.map +1 -0
  139. package/lib/assets/{worker-C_2va8B8.js → worker-BmEAZjUP.js} +5249 -4922
  140. package/lib/assets/worker-BmEAZjUP.js.map +1 -0
  141. package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
  142. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
  143. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  144. package/lib/cn-qaFjX9_3.js.map +1 -0
  145. package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
  146. package/lib/{context-D1nXWxm7.js.map → context-h_UkBLvr.js.map} +1 -1
  147. package/lib/{createServer-BCAHdrpE.js → createServer-BVFp6Bl3.js} +4521 -4195
  148. package/lib/createServer-BVFp6Bl3.js.map +1 -0
  149. package/lib/{hook-hEqe7fPB.js → hook-DMHiUaIV.js} +3 -3
  150. package/lib/{hook-hEqe7fPB.js.map → hook-DMHiUaIV.js.map} +1 -1
  151. package/lib/{index-DjB6H4GT.js → index-B6rTMjdI.js} +47 -47
  152. package/lib/{index-DjB6H4GT.js.map → index-B6rTMjdI.js.map} +1 -1
  153. package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
  154. package/lib/index-CBXSgjaE.js.map +1 -0
  155. package/lib/index-CPNSgwSb.js +36 -0
  156. package/lib/index-CPNSgwSb.js.map +1 -0
  157. package/lib/index-LNp6rxyU.js.map +1 -1
  158. package/lib/index.esm-BSV1C092.js +692 -0
  159. package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-BSV1C092.js.map} +1 -1
  160. package/lib/index.esm-BnnBRKJX.js +1214 -0
  161. package/lib/index.esm-BnnBRKJX.js.map +1 -0
  162. package/lib/invariant-Caa8-XvF.js.map +1 -1
  163. package/lib/jsx-runtime-Dx-03ztt.js +446 -0
  164. package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
  165. package/lib/object_hash-BNWPnMN9.js +787 -0
  166. package/lib/object_hash-BNWPnMN9.js.map +1 -0
  167. package/lib/post-processors/removeExtensions.js.map +1 -1
  168. package/lib/post-processors/removePaths.js.map +1 -1
  169. package/lib/post-processors/traverse.js.map +1 -1
  170. package/lib/prism-csharp.min-DUwvItt4.js +63 -0
  171. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
  172. package/lib/prism-java.min-BtgBR4yd.js +35 -0
  173. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
  174. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  175. package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
  176. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
  177. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  178. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  179. package/lib/state-CFQsUZUP.js +202 -0
  180. package/lib/state-CFQsUZUP.js.map +1 -0
  181. package/lib/ui/Accordion.js +2 -2
  182. package/lib/ui/Accordion.js.map +1 -1
  183. package/lib/ui/ActionButton.js +4 -4
  184. package/lib/ui/ActionButton.js.map +1 -1
  185. package/lib/ui/Alert.js +3 -3
  186. package/lib/ui/Alert.js.map +1 -1
  187. package/lib/ui/AlertDialog.js +2 -2
  188. package/lib/ui/AlertDialog.js.map +1 -1
  189. package/lib/ui/Badge.js +3 -3
  190. package/lib/ui/Badge.js.map +1 -1
  191. package/lib/ui/Breadcrumb.js +2 -2
  192. package/lib/ui/Breadcrumb.js.map +1 -1
  193. package/lib/ui/Button.js +3 -3
  194. package/lib/ui/Button.js.map +1 -1
  195. package/lib/ui/Callout.js +2 -2
  196. package/lib/ui/Callout.js.map +1 -1
  197. package/lib/ui/Card.js +2 -2
  198. package/lib/ui/Card.js.map +1 -1
  199. package/lib/ui/Carousel.js +407 -401
  200. package/lib/ui/Carousel.js.map +1 -1
  201. package/lib/ui/Checkbox.js +2 -2
  202. package/lib/ui/Checkbox.js.map +1 -1
  203. package/lib/ui/Command.js +111 -108
  204. package/lib/ui/Command.js.map +1 -1
  205. package/lib/ui/Dialog.js +2 -2
  206. package/lib/ui/Dialog.js.map +1 -1
  207. package/lib/ui/Drawer.js +2 -2
  208. package/lib/ui/Drawer.js.map +1 -1
  209. package/lib/ui/DropdownMenu.js +2 -2
  210. package/lib/ui/DropdownMenu.js.map +1 -1
  211. package/lib/ui/Form.js +3 -3
  212. package/lib/ui/Form.js.map +1 -1
  213. package/lib/ui/HoverCard.js +2 -2
  214. package/lib/ui/Input.js +2 -2
  215. package/lib/ui/Input.js.map +1 -1
  216. package/lib/ui/Label.js +3 -3
  217. package/lib/ui/Pagination.js +2 -2
  218. package/lib/ui/Pagination.js.map +1 -1
  219. package/lib/ui/Popover.js +2 -2
  220. package/lib/ui/Popover.js.map +1 -1
  221. package/lib/ui/Progress.js +2 -2
  222. package/lib/ui/Progress.js.map +1 -1
  223. package/lib/ui/RadioGroup.js +2 -2
  224. package/lib/ui/RadioGroup.js.map +1 -1
  225. package/lib/ui/ScrollArea.js +2 -2
  226. package/lib/ui/ScrollArea.js.map +1 -1
  227. package/lib/ui/Select.js +2 -2
  228. package/lib/ui/Select.js.map +1 -1
  229. package/lib/ui/Skeleton.js +2 -2
  230. package/lib/ui/Skeleton.js.map +1 -1
  231. package/lib/ui/Slider.js +2 -2
  232. package/lib/ui/Switch.js +2 -2
  233. package/lib/ui/Switch.js.map +1 -1
  234. package/lib/ui/Tabs.js +2 -2
  235. package/lib/ui/Textarea.js +2 -2
  236. package/lib/ui/Textarea.js.map +1 -1
  237. package/lib/ui/Toggle.js +3 -3
  238. package/lib/ui/Toggle.js.map +1 -1
  239. package/lib/ui/ToggleGroup.js +2 -2
  240. package/lib/ui/ToggleGroup.js.map +1 -1
  241. package/lib/ui/Tooltip.js +2 -2
  242. package/lib/useExposedProps-DE9lR6MF.js +9 -0
  243. package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
  244. package/lib/{utils-DcpDOncX.js → utils-R0j3Raw1.js} +30 -31
  245. package/lib/{utils-DcpDOncX.js.map → utils-R0j3Raw1.js.map} +1 -1
  246. package/lib/zudoku.auth-auth0.js +1 -1
  247. package/lib/zudoku.auth-auth0.js.map +1 -1
  248. package/lib/zudoku.auth-clerk.js +2 -2
  249. package/lib/zudoku.auth-clerk.js.map +1 -1
  250. package/lib/zudoku.auth-openid.js +348 -346
  251. package/lib/zudoku.auth-openid.js.map +1 -1
  252. package/lib/zudoku.components.js +679 -939
  253. package/lib/zudoku.components.js.map +1 -1
  254. package/lib/zudoku.openapi-worker.js +1 -1
  255. package/lib/zudoku.openapi-worker.js.map +1 -1
  256. package/lib/zudoku.plugin-api-catalog.js +3 -3
  257. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  258. package/lib/zudoku.plugin-api-keys.js +15 -16
  259. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  260. package/lib/zudoku.plugin-custom-pages.js +4 -4
  261. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  262. package/lib/zudoku.plugin-markdown.js +2 -2
  263. package/lib/zudoku.plugin-markdown.js.map +1 -1
  264. package/lib/zudoku.plugin-openapi.js +5 -5
  265. package/lib/zudoku.plugin-redirect.js +1 -1
  266. package/lib/zudoku.plugin-redirect.js.map +1 -1
  267. package/lib/zudoku.plugin-search-inkeep.js +45 -24
  268. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  269. package/package.json +43 -37
  270. package/src/app/demo.tsx +1 -1
  271. package/src/app/entry.client.tsx +1 -15
  272. package/src/app/entry.server.tsx +2 -2
  273. package/src/app/main.tsx +1 -1
  274. package/src/app/sentry.ts +1 -1
  275. package/src/app/standalone.tsx +1 -1
  276. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  277. package/src/lib/authentication/components/SignIn.tsx +1 -1
  278. package/src/lib/authentication/components/SignOut.tsx +1 -1
  279. package/src/lib/components/AnchorLink.tsx +1 -1
  280. package/src/lib/components/Bootstrap.tsx +4 -6
  281. package/src/lib/components/Header.tsx +1 -1
  282. package/src/lib/components/Layout.tsx +1 -1
  283. package/src/lib/components/Markdown.tsx +1 -1
  284. package/src/lib/components/NotFoundPage.tsx +1 -1
  285. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  286. package/src/lib/components/ReactMarkdown.tsx +264 -0
  287. package/src/lib/components/SlotletProvider.tsx +1 -1
  288. package/src/lib/components/TopNavigation.tsx +1 -1
  289. package/src/lib/components/Zudoku.tsx +1 -1
  290. package/src/lib/components/context/ZudokuContext.ts +1 -1
  291. package/src/lib/components/index.ts +1 -1
  292. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  293. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  294. package/src/lib/components/navigation/utils.ts +1 -1
  295. package/src/lib/core/plugins.ts +3 -7
  296. package/src/lib/errors/RouterError.tsx +1 -1
  297. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  298. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  299. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  300. package/src/lib/plugins/api-keys/index.tsx +1 -1
  301. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  302. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  303. package/src/lib/plugins/markdown/index.tsx +2 -1
  304. package/src/lib/plugins/openapi/Route.tsx +1 -1
  305. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  306. package/src/lib/plugins/openapi/index.tsx +1 -1
  307. package/src/lib/plugins/redirect/index.tsx +1 -1
  308. package/src/lib/plugins/search-inkeep/index.tsx +59 -23
  309. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  310. package/src/lib/util/MdxComponents.tsx +1 -3
  311. package/src/lib/util/createVariantComponent.tsx +2 -2
  312. package/src/lib/util/useExposedProps.tsx +1 -1
  313. package/src/lib/util/useScrollToAnchor.ts +1 -1
  314. package/src/lib/util/useScrollToTop.ts +1 -1
  315. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  316. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  317. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  318. package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
  319. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  320. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  321. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  322. package/lib/Markdown-CdkU5HcM.js.map +0 -1
  323. package/lib/MdxPage-ChziqNPp.js.map +0 -1
  324. package/lib/OperationList-CQKkyrZH.js +0 -4706
  325. package/lib/Route-DlG_HTMu.js +0 -11
  326. package/lib/Route-DlG_HTMu.js.map +0 -1
  327. package/lib/SlotletProvider-D77pO-fA.js +0 -252
  328. package/lib/SlotletProvider-D77pO-fA.js.map +0 -1
  329. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  330. package/lib/assets/worker-C_2va8B8.js.map +0 -1
  331. package/lib/cn-BmFQLtkS.js.map +0 -1
  332. package/lib/createServer-BCAHdrpE.js.map +0 -1
  333. package/lib/index-BuAyrJe3.js +0 -46
  334. package/lib/index-BuAyrJe3.js.map +0 -1
  335. package/lib/index-CkwDvuPt.js.map +0 -1
  336. package/lib/index-Czzd9rjU.js +0 -899
  337. package/lib/index-Czzd9rjU.js.map +0 -1
  338. package/lib/index-Yn8c3UWE.js +0 -921
  339. package/lib/index-Yn8c3UWE.js.map +0 -1
  340. package/lib/index.esm-Bm8pj-bc.js +0 -675
  341. package/lib/index.esm-C5mr_sKO.js +0 -1193
  342. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  343. package/lib/jsx-runtime-B6kdoens.js +0 -635
  344. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  345. package/lib/object_hash-CvlLgU-M.js +0 -785
  346. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  347. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  348. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  349. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  350. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  351. package/lib/router-lfyopgBI.js +0 -3024
  352. package/lib/router-lfyopgBI.js.map +0 -1
  353. package/lib/state-tsXBLONe.js +0 -203
  354. package/lib/state-tsXBLONe.js.map +0 -1
  355. package/lib/useExposedProps-CTPtylCV.js +0 -10
  356. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  357. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
@@ -1,675 +0,0 @@
1
- var ee = Object.defineProperty;
2
- var te = (e, t, r) => t in e ? ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var y = (e, t, r) => te(e, typeof t != "symbol" ? t + "" : t, r);
4
- import T, { Component as j } from "react";
5
- import { g as L } from "./_commonjsHelpers-BkfeUUK-.js";
6
- var re = typeof Element < "u", ne = typeof Map == "function", se = typeof Set == "function", ie = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
7
- function x(e, t) {
8
- if (e === t) return !0;
9
- if (e && t && typeof e == "object" && typeof t == "object") {
10
- if (e.constructor !== t.constructor) return !1;
11
- var r, n, s;
12
- if (Array.isArray(e)) {
13
- if (r = e.length, r != t.length) return !1;
14
- for (n = r; n-- !== 0; )
15
- if (!x(e[n], t[n])) return !1;
16
- return !0;
17
- }
18
- var i;
19
- if (ne && e instanceof Map && t instanceof Map) {
20
- if (e.size !== t.size) return !1;
21
- for (i = e.entries(); !(n = i.next()).done; )
22
- if (!t.has(n.value[0])) return !1;
23
- for (i = e.entries(); !(n = i.next()).done; )
24
- if (!x(n.value[1], t.get(n.value[0]))) return !1;
25
- return !0;
26
- }
27
- if (se && e instanceof Set && t instanceof Set) {
28
- if (e.size !== t.size) return !1;
29
- for (i = e.entries(); !(n = i.next()).done; )
30
- if (!t.has(n.value[0])) return !1;
31
- return !0;
32
- }
33
- if (ie && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
34
- if (r = e.length, r != t.length) return !1;
35
- for (n = r; n-- !== 0; )
36
- if (e[n] !== t[n]) return !1;
37
- return !0;
38
- }
39
- if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
40
- if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
41
- if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
42
- if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
43
- for (n = r; n-- !== 0; )
44
- if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
45
- if (re && e instanceof Element) return !1;
46
- for (n = r; n-- !== 0; )
47
- if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !x(e[s[n]], t[s[n]]))
48
- return !1;
49
- return !0;
50
- }
51
- return e !== e && t !== t;
52
- }
53
- var ae = function(t, r) {
54
- try {
55
- return x(t, r);
56
- } catch (n) {
57
- if ((n.message || "").match(/stack|recursion/i))
58
- return console.warn("react-fast-compare cannot handle circular refs"), !1;
59
- throw n;
60
- }
61
- };
62
- const oe = /* @__PURE__ */ L(ae);
63
- var le = function(e, t, r, n, s, i, c, a) {
64
- if (process.env.NODE_ENV !== "production" && t === void 0)
65
- throw new Error("invariant requires an error message argument");
66
- if (!e) {
67
- var l;
68
- if (t === void 0)
69
- l = new Error(
70
- "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
71
- );
72
- else {
73
- var o = [r, n, s, i, c, a], u = 0;
74
- l = new Error(
75
- t.replace(/%s/g, function() {
76
- return o[u++];
77
- })
78
- ), l.name = "Invariant Violation";
79
- }
80
- throw l.framesToPop = 1, l;
81
- }
82
- }, ce = le;
83
- const K = /* @__PURE__ */ L(ce);
84
- var ue = function(t, r, n, s) {
85
- var i = n ? n.call(s, t, r) : void 0;
86
- if (i !== void 0)
87
- return !!i;
88
- if (t === r)
89
- return !0;
90
- if (typeof t != "object" || !t || typeof r != "object" || !r)
91
- return !1;
92
- var c = Object.keys(t), a = Object.keys(r);
93
- if (c.length !== a.length)
94
- return !1;
95
- for (var l = Object.prototype.hasOwnProperty.bind(r), o = 0; o < c.length; o++) {
96
- var u = c[o];
97
- if (!l(u))
98
- return !1;
99
- var f = t[u], m = r[u];
100
- if (i = n ? n.call(s, f, m, u) : void 0, i === !1 || i === void 0 && f !== m)
101
- return !1;
102
- }
103
- return !0;
104
- };
105
- const fe = /* @__PURE__ */ L(ue);
106
- var B = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(B || {}), P = {
107
- link: { rel: ["amphtml", "canonical", "alternate"] },
108
- script: { type: ["application/ld+json"] },
109
- meta: {
110
- charset: "",
111
- name: ["generator", "robots", "description"],
112
- property: [
113
- "og:type",
114
- "og:title",
115
- "og:url",
116
- "og:image",
117
- "og:image:alt",
118
- "og:description",
119
- "twitter:url",
120
- "twitter:title",
121
- "twitter:description",
122
- "twitter:image",
123
- "twitter:image:alt",
124
- "twitter:card",
125
- "twitter:site"
126
- ]
127
- }
128
- }, z = Object.values(B), F = {
129
- accesskey: "accessKey",
130
- charset: "charSet",
131
- class: "className",
132
- contenteditable: "contentEditable",
133
- contextmenu: "contextMenu",
134
- "http-equiv": "httpEquiv",
135
- itemprop: "itemProp",
136
- tabindex: "tabIndex"
137
- }, pe = Object.entries(F).reduce(
138
- (e, [t, r]) => (e[r] = t, e),
139
- {}
140
- ), h = "data-rh", E = {
141
- DEFAULT_TITLE: "defaultTitle",
142
- DEFER: "defer",
143
- ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
144
- ON_CHANGE_CLIENT_STATE: "onChangeClientState",
145
- TITLE_TEMPLATE: "titleTemplate",
146
- PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
147
- }, b = (e, t) => {
148
- for (let r = e.length - 1; r >= 0; r -= 1) {
149
- const n = e[r];
150
- if (Object.prototype.hasOwnProperty.call(n, t))
151
- return n[t];
152
- }
153
- return null;
154
- }, de = (e) => {
155
- let t = b(
156
- e,
157
- "title"
158
- /* TITLE */
159
- );
160
- const r = b(e, E.TITLE_TEMPLATE);
161
- if (Array.isArray(t) && (t = t.join("")), r && t)
162
- return r.replace(/%s/g, () => t);
163
- const n = b(e, E.DEFAULT_TITLE);
164
- return t || n || void 0;
165
- }, me = (e) => b(e, E.ON_CHANGE_CLIENT_STATE) || (() => {
166
- }), I = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), he = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
167
- if (!r.length) {
168
- const s = Object.keys(n);
169
- for (let i = 0; i < s.length; i += 1) {
170
- const a = s[i].toLowerCase();
171
- if (e.indexOf(a) !== -1 && n[a])
172
- return r.concat(n);
173
- }
174
- }
175
- return r;
176
- }, []), ye = (e) => console && typeof console.warn == "function" && console.warn(e), O = (e, t, r) => {
177
- const n = {};
178
- return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && ye(
179
- `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
180
- ), !1)).map((s) => s[e]).reverse().reduce((s, i) => {
181
- const c = {};
182
- i.filter((l) => {
183
- let o;
184
- const u = Object.keys(l);
185
- for (let m = 0; m < u.length; m += 1) {
186
- const p = u[m], g = p.toLowerCase();
187
- t.indexOf(g) !== -1 && !(o === "rel" && l[o].toLowerCase() === "canonical") && !(g === "rel" && l[g].toLowerCase() === "stylesheet") && (o = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (o = p);
188
- }
189
- if (!o || !l[o])
190
- return !1;
191
- const f = l[o].toLowerCase();
192
- return n[o] || (n[o] = {}), c[o] || (c[o] = {}), n[o][f] ? !1 : (c[o][f] = !0, !0);
193
- }).reverse().forEach((l) => s.push(l));
194
- const a = Object.keys(c);
195
- for (let l = 0; l < a.length; l += 1) {
196
- const o = a[l], u = {
197
- ...n[o],
198
- ...c[o]
199
- };
200
- n[o] = u;
201
- }
202
- return s;
203
- }, []).reverse();
204
- }, Te = (e, t) => {
205
- if (Array.isArray(e) && e.length) {
206
- for (let r = 0; r < e.length; r += 1)
207
- if (e[r][t])
208
- return !0;
209
- }
210
- return !1;
211
- }, ge = (e) => ({
212
- baseTag: he([
213
- "href"
214
- /* HREF */
215
- ], e),
216
- bodyAttributes: I("bodyAttributes", e),
217
- defer: b(e, E.DEFER),
218
- encode: b(e, E.ENCODE_SPECIAL_CHARACTERS),
219
- htmlAttributes: I("htmlAttributes", e),
220
- linkTags: O(
221
- "link",
222
- [
223
- "rel",
224
- "href"
225
- /* HREF */
226
- ],
227
- e
228
- ),
229
- metaTags: O(
230
- "meta",
231
- [
232
- "name",
233
- "charset",
234
- "http-equiv",
235
- "property",
236
- "itemprop"
237
- /* ITEM_PROP */
238
- ],
239
- e
240
- ),
241
- noscriptTags: O("noscript", [
242
- "innerHTML"
243
- /* INNER_HTML */
244
- ], e),
245
- onChangeClientState: me(e),
246
- scriptTags: O(
247
- "script",
248
- [
249
- "src",
250
- "innerHTML"
251
- /* INNER_HTML */
252
- ],
253
- e
254
- ),
255
- styleTags: O("style", [
256
- "cssText"
257
- /* CSS_TEXT */
258
- ], e),
259
- title: de(e),
260
- titleAttributes: I("titleAttributes", e),
261
- prioritizeSeoTags: Te(e, E.PRIORITIZE_SEO_TAGS)
262
- }), Z = (e) => Array.isArray(e) ? e.join("") : e, ve = (e, t) => {
263
- const r = Object.keys(e);
264
- for (let n = 0; n < r.length; n += 1)
265
- if (t[r[n]] && t[r[n]].includes(e[r[n]]))
266
- return !0;
267
- return !1;
268
- }, H = (e, t) => Array.isArray(e) ? e.reduce(
269
- (r, n) => (ve(n, t) ? r.priority.push(n) : r.default.push(n), r),
270
- { priority: [], default: [] }
271
- ) : { default: e, priority: [] }, N = (e, t) => ({
272
- ...e,
273
- [t]: void 0
274
- }), Ae = [
275
- "noscript",
276
- "script",
277
- "style"
278
- /* STYLE */
279
- ], D = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), G = (e) => Object.keys(e).reduce((t, r) => {
280
- const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
281
- return t ? `${t} ${n}` : n;
282
- }, ""), Ee = (e, t, r, n) => {
283
- const s = G(r), i = Z(t);
284
- return s ? `<${e} ${h}="true" ${s}>${D(
285
- i,
286
- n
287
- )}</${e}>` : `<${e} ${h}="true">${D(
288
- i,
289
- n
290
- )}</${e}>`;
291
- }, be = (e, t, r = !0) => t.reduce((n, s) => {
292
- const i = s, c = Object.keys(i).filter(
293
- (o) => !(o === "innerHTML" || o === "cssText")
294
- ).reduce((o, u) => {
295
- const f = typeof i[u] > "u" ? u : `${u}="${D(i[u], r)}"`;
296
- return o ? `${o} ${f}` : f;
297
- }, ""), a = i.innerHTML || i.cssText || "", l = Ae.indexOf(e) === -1;
298
- return `${n}<${e} ${h}="true" ${c}${l ? "/>" : `>${a}</${e}>`}`;
299
- }, ""), W = (e, t = {}) => Object.keys(e).reduce((r, n) => {
300
- const s = F[n];
301
- return r[s || n] = e[n], r;
302
- }, t), Oe = (e, t, r) => {
303
- const n = {
304
- key: t,
305
- [h]: !0
306
- }, s = W(r, n);
307
- return [T.createElement("title", s, t)];
308
- }, $ = (e, t) => t.map((r, n) => {
309
- const s = {
310
- key: n,
311
- [h]: !0
312
- };
313
- return Object.keys(r).forEach((i) => {
314
- const a = F[i] || i;
315
- if (a === "innerHTML" || a === "cssText") {
316
- const l = r.innerHTML || r.cssText;
317
- s.dangerouslySetInnerHTML = { __html: l };
318
- } else
319
- s[a] = r[i];
320
- }), T.createElement(e, s);
321
- }), d = (e, t, r = !0) => {
322
- switch (e) {
323
- case "title":
324
- return {
325
- toComponent: () => Oe(e, t.title, t.titleAttributes),
326
- toString: () => Ee(e, t.title, t.titleAttributes, r)
327
- };
328
- case "bodyAttributes":
329
- case "htmlAttributes":
330
- return {
331
- toComponent: () => W(t),
332
- toString: () => G(t)
333
- };
334
- default:
335
- return {
336
- toComponent: () => $(e, t),
337
- toString: () => be(e, t, r)
338
- };
339
- }
340
- }, Ce = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
341
- const s = H(e, P.meta), i = H(t, P.link), c = H(r, P.script);
342
- return {
343
- priorityMethods: {
344
- toComponent: () => [
345
- ...$("meta", s.priority),
346
- ...$("link", i.priority),
347
- ...$("script", c.priority)
348
- ],
349
- toString: () => (
350
- // generate all the tags as strings and concatenate them
351
- `${d("meta", s.priority, n)} ${d(
352
- "link",
353
- i.priority,
354
- n
355
- )} ${d("script", c.priority, n)}`
356
- )
357
- },
358
- metaTags: s.default,
359
- linkTags: i.default,
360
- scriptTags: c.default
361
- };
362
- }, Se = (e) => {
363
- const {
364
- baseTag: t,
365
- bodyAttributes: r,
366
- encode: n = !0,
367
- htmlAttributes: s,
368
- noscriptTags: i,
369
- styleTags: c,
370
- title: a = "",
371
- titleAttributes: l,
372
- prioritizeSeoTags: o
373
- } = e;
374
- let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
375
- toComponent: () => {
376
- },
377
- toString: () => ""
378
- };
379
- return o && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = Ce(e)), {
380
- priority: p,
381
- base: d("base", t, n),
382
- bodyAttributes: d("bodyAttributes", r, n),
383
- htmlAttributes: d("htmlAttributes", s, n),
384
- link: d("link", u, n),
385
- meta: d("meta", f, n),
386
- noscript: d("noscript", i, n),
387
- script: d("script", m, n),
388
- style: d("style", c, n),
389
- title: d("title", { title: a, titleAttributes: l }, n)
390
- };
391
- }, M = Se, w = [], J = !!(typeof window < "u" && window.document && window.document.createElement), k = class {
392
- constructor(e, t) {
393
- y(this, "instances", []);
394
- y(this, "canUseDOM", J);
395
- y(this, "context");
396
- y(this, "value", {
397
- setHelmet: (e) => {
398
- this.context.helmet = e;
399
- },
400
- helmetInstances: {
401
- get: () => this.canUseDOM ? w : this.instances,
402
- add: (e) => {
403
- (this.canUseDOM ? w : this.instances).push(e);
404
- },
405
- remove: (e) => {
406
- const t = (this.canUseDOM ? w : this.instances).indexOf(e);
407
- (this.canUseDOM ? w : this.instances).splice(t, 1);
408
- }
409
- }
410
- });
411
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = M({
412
- baseTag: [],
413
- bodyAttributes: {},
414
- encodeSpecialCharacters: !0,
415
- htmlAttributes: {},
416
- linkTags: [],
417
- metaTags: [],
418
- noscriptTags: [],
419
- scriptTags: [],
420
- styleTags: [],
421
- title: "",
422
- titleAttributes: {}
423
- }));
424
- }
425
- }, we = {}, Q = T.createContext(we), v, xe = (v = class extends j {
426
- constructor(r) {
427
- super(r);
428
- y(this, "helmetData");
429
- this.helmetData = new k(this.props.context || {}, v.canUseDOM);
430
- }
431
- render() {
432
- return /* @__PURE__ */ T.createElement(Q.Provider, { value: this.helmetData.value }, this.props.children);
433
- }
434
- }, y(v, "canUseDOM", J), v), A = (e, t) => {
435
- const r = document.head || document.querySelector(
436
- "head"
437
- /* HEAD */
438
- ), n = r.querySelectorAll(`${e}[${h}]`), s = [].slice.call(n), i = [];
439
- let c;
440
- return t && t.length && t.forEach((a) => {
441
- const l = document.createElement(e);
442
- for (const o in a)
443
- if (Object.prototype.hasOwnProperty.call(a, o))
444
- if (o === "innerHTML")
445
- l.innerHTML = a.innerHTML;
446
- else if (o === "cssText")
447
- l.styleSheet ? l.styleSheet.cssText = a.cssText : l.appendChild(document.createTextNode(a.cssText));
448
- else {
449
- const u = o, f = typeof a[u] > "u" ? "" : a[u];
450
- l.setAttribute(o, f);
451
- }
452
- l.setAttribute(h, "true"), s.some((o, u) => (c = u, l.isEqualNode(o))) ? s.splice(c, 1) : i.push(l);
453
- }), s.forEach((a) => {
454
- var l;
455
- return (l = a.parentNode) == null ? void 0 : l.removeChild(a);
456
- }), i.forEach((a) => r.appendChild(a)), {
457
- oldTags: s,
458
- newTags: i
459
- };
460
- }, R = (e, t) => {
461
- const r = document.getElementsByTagName(e)[0];
462
- if (!r)
463
- return;
464
- const n = r.getAttribute(h), s = n ? n.split(",") : [], i = [...s], c = Object.keys(t);
465
- for (const a of c) {
466
- const l = t[a] || "";
467
- r.getAttribute(a) !== l && r.setAttribute(a, l), s.indexOf(a) === -1 && s.push(a);
468
- const o = i.indexOf(a);
469
- o !== -1 && i.splice(o, 1);
470
- }
471
- for (let a = i.length - 1; a >= 0; a -= 1)
472
- r.removeAttribute(i[a]);
473
- s.length === i.length ? r.removeAttribute(h) : r.getAttribute(h) !== c.join(",") && r.setAttribute(h, c.join(","));
474
- }, $e = (e, t) => {
475
- typeof e < "u" && document.title !== e && (document.title = Z(e)), R("title", t);
476
- }, V = (e, t) => {
477
- const {
478
- baseTag: r,
479
- bodyAttributes: n,
480
- htmlAttributes: s,
481
- linkTags: i,
482
- metaTags: c,
483
- noscriptTags: a,
484
- onChangeClientState: l,
485
- scriptTags: o,
486
- styleTags: u,
487
- title: f,
488
- titleAttributes: m
489
- } = e;
490
- R("body", n), R("html", s), $e(f, m);
491
- const p = {
492
- baseTag: A("base", r),
493
- linkTags: A("link", i),
494
- metaTags: A("meta", c),
495
- noscriptTags: A("noscript", a),
496
- scriptTags: A("script", o),
497
- styleTags: A("style", u)
498
- }, g = {}, U = {};
499
- Object.keys(p).forEach((S) => {
500
- const { newTags: q, oldTags: X } = p[S];
501
- q.length && (g[S] = q), X.length && (U[S] = p[S].oldTags);
502
- }), t && t(), l(e, g, U);
503
- }, C = null, Pe = (e) => {
504
- C && cancelAnimationFrame(C), e.defer ? C = requestAnimationFrame(() => {
505
- V(e, () => {
506
- C = null;
507
- });
508
- }) : (V(e), C = null);
509
- }, Ie = Pe, Y = class extends j {
510
- constructor() {
511
- super(...arguments);
512
- y(this, "rendered", !1);
513
- }
514
- shouldComponentUpdate(t) {
515
- return !fe(t, this.props);
516
- }
517
- componentDidUpdate() {
518
- this.emitChange();
519
- }
520
- componentWillUnmount() {
521
- const { helmetInstances: t } = this.props.context;
522
- t.remove(this), this.emitChange();
523
- }
524
- emitChange() {
525
- const { helmetInstances: t, setHelmet: r } = this.props.context;
526
- let n = null;
527
- const s = ge(
528
- t.get().map((i) => {
529
- const c = { ...i.props };
530
- return delete c.context, c;
531
- })
532
- );
533
- xe.canUseDOM ? Ie(s) : M && (n = M(s)), r(n);
534
- }
535
- // componentWillMount will be deprecated
536
- // for SSR, initialize on first render
537
- // constructor is also unsafe in StrictMode
538
- init() {
539
- if (this.rendered)
540
- return;
541
- this.rendered = !0;
542
- const { helmetInstances: t } = this.props.context;
543
- t.add(this), this.emitChange();
544
- }
545
- render() {
546
- return this.init(), null;
547
- }
548
- }, _, Me = (_ = class extends j {
549
- shouldComponentUpdate(e) {
550
- return !oe(N(this.props, "helmetData"), N(e, "helmetData"));
551
- }
552
- mapNestedChildrenToProps(e, t) {
553
- if (!t)
554
- return null;
555
- switch (e.type) {
556
- case "script":
557
- case "noscript":
558
- return {
559
- innerHTML: t
560
- };
561
- case "style":
562
- return {
563
- cssText: t
564
- };
565
- default:
566
- throw new Error(
567
- `<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
568
- );
569
- }
570
- }
571
- flattenArrayTypeChildren(e, t, r, n) {
572
- return {
573
- ...t,
574
- [e.type]: [
575
- ...t[e.type] || [],
576
- {
577
- ...r,
578
- ...this.mapNestedChildrenToProps(e, n)
579
- }
580
- ]
581
- };
582
- }
583
- mapObjectTypeChildren(e, t, r, n) {
584
- switch (e.type) {
585
- case "title":
586
- return {
587
- ...t,
588
- [e.type]: n,
589
- titleAttributes: { ...r }
590
- };
591
- case "body":
592
- return {
593
- ...t,
594
- bodyAttributes: { ...r }
595
- };
596
- case "html":
597
- return {
598
- ...t,
599
- htmlAttributes: { ...r }
600
- };
601
- default:
602
- return {
603
- ...t,
604
- [e.type]: { ...r }
605
- };
606
- }
607
- }
608
- mapArrayTypeChildrenToProps(e, t) {
609
- let r = { ...t };
610
- return Object.keys(e).forEach((n) => {
611
- r = {
612
- ...r,
613
- [n]: e[n]
614
- };
615
- }), r;
616
- }
617
- warnOnInvalidChildren(e, t) {
618
- return K(
619
- z.some((r) => e.type === r),
620
- typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${z.join(
621
- ", "
622
- )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
623
- ), K(
624
- !t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
625
- `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
626
- ), !0;
627
- }
628
- mapChildrenToProps(e, t) {
629
- let r = {};
630
- return T.Children.forEach(e, (n) => {
631
- if (!n || !n.props)
632
- return;
633
- const { children: s, ...i } = n.props, c = Object.keys(i).reduce((l, o) => (l[pe[o] || o] = i[o], l), {});
634
- let { type: a } = n;
635
- switch (typeof a == "symbol" ? a = a.toString() : this.warnOnInvalidChildren(n, s), a) {
636
- case "Symbol(react.fragment)":
637
- t = this.mapChildrenToProps(s, t);
638
- break;
639
- case "link":
640
- case "meta":
641
- case "noscript":
642
- case "script":
643
- case "style":
644
- r = this.flattenArrayTypeChildren(
645
- n,
646
- r,
647
- c,
648
- s
649
- );
650
- break;
651
- default:
652
- t = this.mapObjectTypeChildren(n, t, c, s);
653
- break;
654
- }
655
- }), this.mapArrayTypeChildrenToProps(r, t);
656
- }
657
- render() {
658
- const { children: e, ...t } = this.props;
659
- let r = { ...t }, { helmetData: n } = t;
660
- if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof k)) {
661
- const s = n;
662
- n = new k(s.context, !0), delete r.helmetData;
663
- }
664
- return n ? /* @__PURE__ */ T.createElement(Y, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(Q.Consumer, null, (s) => /* @__PURE__ */ T.createElement(Y, { ...r, context: s }));
665
- }
666
- }, y(_, "defaultProps", {
667
- defer: !0,
668
- encodeSpecialCharacters: !0,
669
- prioritizeSeoTags: !1
670
- }), _);
671
- export {
672
- Me as H,
673
- xe as a
674
- };
675
- //# sourceMappingURL=index.esm-Bm8pj-bc.js.map