@blogmcp/sdk 0.1.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 (340) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/_virtual/constants.js +4 -0
  3. package/dist/_virtual/index.js +2 -0
  4. package/dist/_virtual/index2.js +4 -0
  5. package/dist/_virtual/index3.js +2 -0
  6. package/dist/_virtual/re.js +4 -0
  7. package/dist/core/article-seo.d.ts +27 -0
  8. package/dist/core/article-seo.js +25 -0
  9. package/dist/core/auth.d.ts +34 -0
  10. package/dist/core/auth.js +89 -0
  11. package/dist/core/blog-config.d.ts +5 -0
  12. package/dist/core/blog-config.js +14 -0
  13. package/dist/core/client-types.d.ts +51 -0
  14. package/dist/core/client.d.ts +159 -0
  15. package/dist/core/client.js +82 -0
  16. package/dist/core/i18n.d.ts +29 -0
  17. package/dist/core/i18n.js +34 -0
  18. package/dist/core/index.d.ts +26 -0
  19. package/dist/core/index.js +67 -0
  20. package/dist/core/markdown.d.ts +69 -0
  21. package/dist/core/markdown.js +47 -0
  22. package/dist/core/navigation.d.ts +70 -0
  23. package/dist/core/navigation.js +71 -0
  24. package/dist/core/queries.d.ts +34 -0
  25. package/dist/core/queries.js +363 -0
  26. package/dist/core/retry.d.ts +9 -0
  27. package/dist/core/retry.js +14 -0
  28. package/dist/core/seo.d.ts +142 -0
  29. package/dist/core/seo.js +166 -0
  30. package/dist/core/theme.d.ts +41 -0
  31. package/dist/core/theme.js +60 -0
  32. package/dist/core/translations/cs.json.js +27 -0
  33. package/dist/core/translations/en.json.js +27 -0
  34. package/dist/core/types.d.ts +184 -0
  35. package/dist/core/types.js +9 -0
  36. package/dist/core/view-model.d.ts +53 -0
  37. package/dist/core/view-model.js +47 -0
  38. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +8 -0
  39. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +60 -0
  40. package/dist/node_modules/dompurify/dist/purify.es.js +662 -0
  41. package/dist/node_modules/semver/classes/comparator.js +56 -0
  42. package/dist/node_modules/semver/classes/range.js +148 -0
  43. package/dist/node_modules/semver/classes/semver.js +169 -0
  44. package/dist/node_modules/semver/functions/clean.js +14 -0
  45. package/dist/node_modules/semver/functions/cmp.js +39 -0
  46. package/dist/node_modules/semver/functions/coerce.js +33 -0
  47. package/dist/node_modules/semver/functions/compare-build.js +14 -0
  48. package/dist/node_modules/semver/functions/compare-loose.js +11 -0
  49. package/dist/node_modules/semver/functions/compare.js +11 -0
  50. package/dist/node_modules/semver/functions/diff.js +24 -0
  51. package/dist/node_modules/semver/functions/eq.js +11 -0
  52. package/dist/node_modules/semver/functions/gt.js +11 -0
  53. package/dist/node_modules/semver/functions/gte.js +11 -0
  54. package/dist/node_modules/semver/functions/inc.js +21 -0
  55. package/dist/node_modules/semver/functions/lt.js +11 -0
  56. package/dist/node_modules/semver/functions/lte.js +11 -0
  57. package/dist/node_modules/semver/functions/major.js +11 -0
  58. package/dist/node_modules/semver/functions/minor.js +11 -0
  59. package/dist/node_modules/semver/functions/neq.js +11 -0
  60. package/dist/node_modules/semver/functions/parse.js +21 -0
  61. package/dist/node_modules/semver/functions/patch.js +11 -0
  62. package/dist/node_modules/semver/functions/prerelease.js +14 -0
  63. package/dist/node_modules/semver/functions/rcompare.js +11 -0
  64. package/dist/node_modules/semver/functions/rsort.js +11 -0
  65. package/dist/node_modules/semver/functions/satisfies.js +18 -0
  66. package/dist/node_modules/semver/functions/sort.js +11 -0
  67. package/dist/node_modules/semver/functions/valid.js +14 -0
  68. package/dist/node_modules/semver/index.js +97 -0
  69. package/dist/node_modules/semver/internal/constants.js +28 -0
  70. package/dist/node_modules/semver/internal/debug.js +8 -0
  71. package/dist/node_modules/semver/internal/identifiers.js +18 -0
  72. package/dist/node_modules/semver/internal/lrucache.js +32 -0
  73. package/dist/node_modules/semver/internal/parse-options.js +10 -0
  74. package/dist/node_modules/semver/internal/re.js +32 -0
  75. package/dist/node_modules/semver/ranges/gtr.js +11 -0
  76. package/dist/node_modules/semver/ranges/intersects.js +11 -0
  77. package/dist/node_modules/semver/ranges/ltr.js +11 -0
  78. package/dist/node_modules/semver/ranges/max-satisfying.js +22 -0
  79. package/dist/node_modules/semver/ranges/min-satisfying.js +22 -0
  80. package/dist/node_modules/semver/ranges/min-version.js +42 -0
  81. package/dist/node_modules/semver/ranges/outside.js +44 -0
  82. package/dist/node_modules/semver/ranges/simplify.js +24 -0
  83. package/dist/node_modules/semver/ranges/subset.js +94 -0
  84. package/dist/node_modules/semver/ranges/to-comparators.js +11 -0
  85. package/dist/node_modules/semver/ranges/valid.js +17 -0
  86. package/dist/nuxt/composables/useAsyncKb.d.ts +32 -0
  87. package/dist/nuxt/composables/useAsyncKb.js +34 -0
  88. package/dist/nuxt/index.d.ts +1 -0
  89. package/dist/nuxt/index.js +6 -0
  90. package/dist/packages/mdx-render-vue/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  91. package/dist/packages/mdx-render-vue/dist/_virtual/constants.js +4 -0
  92. package/dist/packages/mdx-render-vue/dist/_virtual/index.js +5 -0
  93. package/dist/packages/mdx-render-vue/dist/_virtual/index2.js +4 -0
  94. package/dist/packages/mdx-render-vue/dist/composables/useAudioPlayer.js +40 -0
  95. package/dist/packages/mdx-render-vue/dist/composables/useCallout.js +66 -0
  96. package/dist/packages/mdx-render-vue/dist/composables/useCodeBlock.js +62 -0
  97. package/dist/packages/mdx-render-vue/dist/composables/useGallery.js +68 -0
  98. package/dist/packages/mdx-render-vue/dist/composables/useMedia.js +9 -0
  99. package/dist/packages/mdx-render-vue/dist/composables/useYouTube.js +24 -0
  100. package/dist/packages/mdx-render-vue/dist/edit/AlertEdit.vue.js +4 -0
  101. package/dist/packages/mdx-render-vue/dist/edit/AlertEdit.vue2.js +16 -0
  102. package/dist/packages/mdx-render-vue/dist/edit/AudioPlayerEdit.vue.js +102 -0
  103. package/dist/packages/mdx-render-vue/dist/edit/AudioPlayerEdit.vue2.js +4 -0
  104. package/dist/packages/mdx-render-vue/dist/edit/BadgeEdit.vue.js +4 -0
  105. package/dist/packages/mdx-render-vue/dist/edit/BadgeEdit.vue2.js +11 -0
  106. package/dist/packages/mdx-render-vue/dist/edit/ButtonEdit.vue.js +4 -0
  107. package/dist/packages/mdx-render-vue/dist/edit/ButtonEdit.vue2.js +11 -0
  108. package/dist/packages/mdx-render-vue/dist/edit/CalloutEdit.vue.js +78 -0
  109. package/dist/packages/mdx-render-vue/dist/edit/CalloutEdit.vue2.js +4 -0
  110. package/dist/packages/mdx-render-vue/dist/edit/CardEdit.vue.js +4 -0
  111. package/dist/packages/mdx-render-vue/dist/edit/CardEdit.vue2.js +16 -0
  112. package/dist/packages/mdx-render-vue/dist/edit/CodeBlockEdit.vue.js +6 -0
  113. package/dist/packages/mdx-render-vue/dist/edit/CodeBlockEdit.vue2.js +74 -0
  114. package/dist/packages/mdx-render-vue/dist/edit/GalleryEdit.vue.js +56 -0
  115. package/dist/packages/mdx-render-vue/dist/edit/GalleryEdit.vue2.js +4 -0
  116. package/dist/packages/mdx-render-vue/dist/edit/IconEdit.vue.js +4 -0
  117. package/dist/packages/mdx-render-vue/dist/edit/IconEdit.vue2.js +11 -0
  118. package/dist/packages/mdx-render-vue/dist/edit/TooltipEdit.vue.js +4 -0
  119. package/dist/packages/mdx-render-vue/dist/edit/TooltipEdit.vue2.js +20 -0
  120. package/dist/packages/mdx-render-vue/dist/edit/YouTubeEdit.vue.js +34 -0
  121. package/dist/packages/mdx-render-vue/dist/edit/YouTubeEdit.vue2.js +4 -0
  122. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/_virtual/_rolldown/runtime.js +11 -0
  123. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/factory.js +29 -0
  124. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/presence/use-presence-context.js +6 -0
  125. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/presence/use-presence.js +32 -0
  126. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow-tip.js +5 -0
  127. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow-tip.vue_vue_type_script_setup_true_lang.js +18 -0
  128. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow.js +5 -0
  129. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow.vue_vue_type_script_setup_true_lang.js +18 -0
  130. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-content.js +5 -0
  131. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-content.vue_vue_type_script_setup_true_lang.js +20 -0
  132. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-context.js +5 -0
  133. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-context.vue_vue_type_script_setup_true_lang.js +12 -0
  134. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-positioner.js +5 -0
  135. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-positioner.vue_vue_type_script_setup_true_lang.js +19 -0
  136. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root-provider.js +5 -0
  137. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root-provider.vue_vue_type_script_setup_true_lang.js +29 -0
  138. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root.js +5 -0
  139. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root.vue_vue_type_script_setup_true_lang.js +59 -0
  140. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-trigger.js +5 -0
  141. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-trigger.vue_vue_type_script_setup_true_lang.js +21 -0
  142. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip.js +22 -0
  143. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/use-tooltip-context.js +6 -0
  144. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/use-tooltip.js +29 -0
  145. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/providers/environment/use-environment-context.js +12 -0
  146. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/providers/locale/use-locale-context.js +11 -0
  147. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/clean-props.js +8 -0
  148. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/create-context.js +12 -0
  149. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/dynamic.js +25 -0
  150. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/unref-element.js +8 -0
  151. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/use-forward-expose.js +36 -0
  152. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/use-render-strategy.js +5 -0
  153. package/dist/packages/mdx-render-vue/dist/node_modules/@braintree/sanitize-url/dist/constants.js +8 -0
  154. package/dist/packages/mdx-render-vue/dist/node_modules/@braintree/sanitize-url/dist/index.js +60 -0
  155. package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
  156. package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
  157. package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  158. package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  159. package/dist/packages/mdx-render-vue/dist/node_modules/@iconify/vue/dist/iconify.js +1192 -0
  160. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/anatomy/dist/create-anatomy.js +26 -0
  161. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/create-machine.js +21 -0
  162. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/merge-props.js +45 -0
  163. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/scope.js +16 -0
  164. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/state.js +136 -0
  165. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/types.js +5 -0
  166. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js +4 -0
  167. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/computed-style.js +8 -0
  168. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/event.js +31 -0
  169. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/node.js +49 -0
  170. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/overflow.js +19 -0
  171. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/platform.js +16 -0
  172. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/query.js +6 -0
  173. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/raf.js +41 -0
  174. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/set.js +14 -0
  175. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/shared.js +7 -0
  176. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/focus-visible/dist/index.js +90 -0
  177. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-anchor.js +34 -0
  178. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-placement.js +187 -0
  179. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-styles.js +47 -0
  180. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/middleware.js +56 -0
  181. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/placement.js +7 -0
  182. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/presence/dist/presence.connect.js +16 -0
  183. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/presence/dist/presence.machine.js +147 -0
  184. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js +6 -0
  185. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.connect.js +119 -0
  186. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.dom.js +15 -0
  187. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.machine.js +375 -0
  188. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.store.js +9 -0
  189. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/types/dist/prop-types.js +10 -0
  190. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/array.js +6 -0
  191. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/equal.js +27 -0
  192. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/functions.js +10 -0
  193. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/guard.js +15 -0
  194. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/object.js +13 -0
  195. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/store.js +25 -0
  196. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/warning.js +25 -0
  197. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/bindable.js +37 -0
  198. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/machine.js +205 -0
  199. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/normalize-props.js +30 -0
  200. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/refs.js +14 -0
  201. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/track.js +19 -0
  202. package/dist/packages/mdx-render-vue/dist/node_modules/dompurify/dist/purify.es.js +659 -0
  203. package/dist/packages/mdx-render-vue/dist/registry.js +154 -0
  204. package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue.js +4 -0
  205. package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue2.js +37 -0
  206. package/dist/packages/mdx-render-vue/dist/render/audioplayer/AudioPlayerDefault.vue.js +102 -0
  207. package/dist/packages/mdx-render-vue/dist/render/audioplayer/AudioPlayerDefault.vue2.js +4 -0
  208. package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue.js +4 -0
  209. package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue2.js +25 -0
  210. package/dist/packages/mdx-render-vue/dist/render/button/Button.vue.js +4 -0
  211. package/dist/packages/mdx-render-vue/dist/render/button/Button.vue2.js +37 -0
  212. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue.js +79 -0
  213. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue2.js +4 -0
  214. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue.js +22 -0
  215. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue2.js +4 -0
  216. package/dist/packages/mdx-render-vue/dist/render/card/Card.vue.js +4 -0
  217. package/dist/packages/mdx-render-vue/dist/render/card/Card.vue2.js +24 -0
  218. package/dist/packages/mdx-render-vue/dist/render/codeblock/CodeBlockDefault.vue.js +6 -0
  219. package/dist/packages/mdx-render-vue/dist/render/codeblock/CodeBlockDefault.vue2.js +77 -0
  220. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryGrid.vue.js +103 -0
  221. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryGrid.vue2.js +4 -0
  222. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue.js +6 -0
  223. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue2.js +142 -0
  224. package/dist/packages/mdx-render-vue/dist/render/icon/Icon.vue.js +4 -0
  225. package/dist/packages/mdx-render-vue/dist/render/icon/Icon.vue2.js +23 -0
  226. package/dist/packages/mdx-render-vue/dist/render/tooltip/Tooltip.vue.js +4 -0
  227. package/dist/packages/mdx-render-vue/dist/render/tooltip/Tooltip.vue2.js +54 -0
  228. package/dist/packages/mdx-render-vue/dist/render/youtube/YouTubeDefault.vue.js +69 -0
  229. package/dist/packages/mdx-render-vue/dist/render/youtube/YouTubeDefault.vue2.js +4 -0
  230. package/dist/packages/mdx-schema/dist/composables/useMdxParsing.js +139 -0
  231. package/dist/packages/mdx-schema/dist/metadata/index.js +415 -0
  232. package/dist/packages/mdx-schema/dist/prepareProps.js +46 -0
  233. package/dist/packages/mdx-schema/dist/styles/index.js +119 -0
  234. package/dist/packages/mdx-schema/dist/types/index.js +26 -0
  235. package/dist/packages/sanitize/dist/html.js +41 -0
  236. package/dist/react/KbMdxContent.d.ts +35 -0
  237. package/dist/react/KbMdxContent.js +102 -0
  238. package/dist/react/context.d.ts +11 -0
  239. package/dist/react/context.js +5 -0
  240. package/dist/react/hooks/useImageRenderer.d.ts +6 -0
  241. package/dist/react/hooks/useImageRenderer.js +9 -0
  242. package/dist/react/hooks/useKbClient.d.ts +3 -0
  243. package/dist/react/hooks/useKbClient.js +7 -0
  244. package/dist/react/hooks/useKbContext.d.ts +3 -0
  245. package/dist/react/hooks/useKbContext.js +11 -0
  246. package/dist/react/hooks/useKbI18n.d.ts +7 -0
  247. package/dist/react/hooks/useKbI18n.js +8 -0
  248. package/dist/react/hooks/useKbLanguage.d.ts +21 -0
  249. package/dist/react/hooks/useKbLanguage.js +63 -0
  250. package/dist/react/hooks/useKbSearch.d.ts +20 -0
  251. package/dist/react/hooks/useKbSearch.js +22 -0
  252. package/dist/react/hooks/useMdxContent.d.ts +18 -0
  253. package/dist/react/hooks/useMdxContent.js +11 -0
  254. package/dist/react/index.d.ts +21 -0
  255. package/dist/react/index.js +20 -0
  256. package/dist/react/provider.d.ts +25 -0
  257. package/dist/react/provider.js +29 -0
  258. package/dist/react/server/index.d.ts +38 -0
  259. package/dist/react/server/index.js +26 -0
  260. package/dist/sdk.css +1 -0
  261. package/dist/vue/components/KbAccessGate.vue.d.ts +36 -0
  262. package/dist/vue/components/KbAccessGate.vue.js +74 -0
  263. package/dist/vue/components/KbAccessGate.vue2.js +4 -0
  264. package/dist/vue/components/KbArticleCard.vue.d.ts +34 -0
  265. package/dist/vue/components/KbArticleCard.vue.js +87 -0
  266. package/dist/vue/components/KbArticleCard.vue2.js +4 -0
  267. package/dist/vue/components/KbMdxContent.vue.d.ts +5 -0
  268. package/dist/vue/components/KbMdxContent.vue.js +7 -0
  269. package/dist/vue/components/KbMdxContent.vue2.js +82 -0
  270. package/dist/vue/composables/useArticles.d.ts +30 -0
  271. package/dist/vue/composables/useArticles.js +36 -0
  272. package/dist/vue/composables/useImageRenderer.d.ts +6 -0
  273. package/dist/vue/composables/useImageRenderer.js +9 -0
  274. package/dist/vue/composables/useKbAuth.d.ts +27 -0
  275. package/dist/vue/composables/useKbAuth.js +83 -0
  276. package/dist/vue/composables/useKbClient.d.ts +6 -0
  277. package/dist/vue/composables/useKbClient.js +13 -0
  278. package/dist/vue/composables/useKbComments.d.ts +37 -0
  279. package/dist/vue/composables/useKbComments.js +160 -0
  280. package/dist/vue/composables/useKbI18n.d.ts +6 -0
  281. package/dist/vue/composables/useKbI18n.js +8 -0
  282. package/dist/vue/composables/useKbLanguage.d.ts +22 -0
  283. package/dist/vue/composables/useKbLanguage.js +63 -0
  284. package/dist/vue/composables/useNavigation.d.ts +18 -0
  285. package/dist/vue/composables/useNavigation.js +20 -0
  286. package/dist/vue/composables/useSearch.d.ts +21 -0
  287. package/dist/vue/composables/useSearch.js +20 -0
  288. package/dist/vue/composables/useTags.d.ts +17 -0
  289. package/dist/vue/composables/useTags.js +36 -0
  290. package/dist/vue/index.d.ts +22 -0
  291. package/dist/vue/index.js +36 -0
  292. package/dist/vue/plugin.d.ts +30 -0
  293. package/dist/vue/plugin.js +17 -0
  294. package/package.json +97 -0
  295. package/src/core/article-seo.ts +101 -0
  296. package/src/core/auth.ts +138 -0
  297. package/src/core/blog-config.ts +30 -0
  298. package/src/core/client-types.ts +58 -0
  299. package/src/core/client.ts +287 -0
  300. package/src/core/i18n.ts +84 -0
  301. package/src/core/index.ts +147 -0
  302. package/src/core/markdown.ts +178 -0
  303. package/src/core/navigation.ts +152 -0
  304. package/src/core/queries.ts +414 -0
  305. package/src/core/retry.ts +19 -0
  306. package/src/core/seo.ts +374 -0
  307. package/src/core/theme.ts +128 -0
  308. package/src/core/translations/cs.json +225 -0
  309. package/src/core/translations/en.json +225 -0
  310. package/src/core/types.ts +231 -0
  311. package/src/core/view-model.ts +98 -0
  312. package/src/nuxt/composables/useAsyncKb.ts +119 -0
  313. package/src/nuxt/index.ts +6 -0
  314. package/src/react/KbMdxContent.tsx +215 -0
  315. package/src/react/context.ts +25 -0
  316. package/src/react/hooks/useImageRenderer.ts +15 -0
  317. package/src/react/hooks/useKbClient.ts +9 -0
  318. package/src/react/hooks/useKbContext.ts +13 -0
  319. package/src/react/hooks/useKbI18n.ts +15 -0
  320. package/src/react/hooks/useKbLanguage.ts +105 -0
  321. package/src/react/hooks/useKbSearch.ts +50 -0
  322. package/src/react/hooks/useMdxContent.tsx +33 -0
  323. package/src/react/index.ts +31 -0
  324. package/src/react/provider.tsx +70 -0
  325. package/src/react/server/index.ts +70 -0
  326. package/src/vue/components/KbAccessGate.vue +86 -0
  327. package/src/vue/components/KbArticleCard.vue +102 -0
  328. package/src/vue/components/KbMdxContent.vue +211 -0
  329. package/src/vue/composables/useArticles.ts +78 -0
  330. package/src/vue/composables/useImageRenderer.ts +12 -0
  331. package/src/vue/composables/useKbAuth.ts +131 -0
  332. package/src/vue/composables/useKbClient.ts +17 -0
  333. package/src/vue/composables/useKbComments.ts +281 -0
  334. package/src/vue/composables/useKbI18n.ts +11 -0
  335. package/src/vue/composables/useKbLanguage.ts +103 -0
  336. package/src/vue/composables/useNavigation.ts +38 -0
  337. package/src/vue/composables/useSearch.ts +52 -0
  338. package/src/vue/composables/useTags.ts +64 -0
  339. package/src/vue/index.ts +27 -0
  340. package/src/vue/plugin.ts +73 -0
@@ -0,0 +1,532 @@
1
+ import { evaluate as L, getSide as j, getSideAxis as T, getOppositePlacement as Z, getExpandedPlacements as ee, getOppositeAxisPlacements as te, getAlignmentSides as ne, clamp as $, getPaddingObject as U, getAlignmentAxis as q, getAlignment as _, min as Y, max as B, rectToClientRect as z, getOppositeAxis as G, getAxisLength as J, sides as ie } from "../../utils/dist/floating-ui.utils.js";
2
+ function X(t, e, d) {
3
+ let {
4
+ reference: a,
5
+ floating: m
6
+ } = t;
7
+ const n = T(e), i = q(e), l = J(i), g = j(e), p = n === "y", r = a.x + a.width / 2 - m.width / 2, o = a.y + a.height / 2 - m.height / 2, f = a[l] / 2 - m[l] / 2;
8
+ let s;
9
+ switch (g) {
10
+ case "top":
11
+ s = {
12
+ x: r,
13
+ y: a.y - m.height
14
+ };
15
+ break;
16
+ case "bottom":
17
+ s = {
18
+ x: r,
19
+ y: a.y + a.height
20
+ };
21
+ break;
22
+ case "right":
23
+ s = {
24
+ x: a.x + a.width,
25
+ y: o
26
+ };
27
+ break;
28
+ case "left":
29
+ s = {
30
+ x: a.x - m.width,
31
+ y: o
32
+ };
33
+ break;
34
+ default:
35
+ s = {
36
+ x: a.x,
37
+ y: a.y
38
+ };
39
+ }
40
+ switch (_(e)) {
41
+ case "start":
42
+ s[i] -= f * (d && p ? -1 : 1);
43
+ break;
44
+ case "end":
45
+ s[i] += f * (d && p ? -1 : 1);
46
+ break;
47
+ }
48
+ return s;
49
+ }
50
+ async function se(t, e) {
51
+ var d;
52
+ e === void 0 && (e = {});
53
+ const {
54
+ x: a,
55
+ y: m,
56
+ platform: n,
57
+ rects: i,
58
+ elements: l,
59
+ strategy: g
60
+ } = t, {
61
+ boundary: p = "clippingAncestors",
62
+ rootBoundary: r = "viewport",
63
+ elementContext: o = "floating",
64
+ altBoundary: f = !1,
65
+ padding: s = 0
66
+ } = L(e, t), c = U(s), h = l[f ? o === "floating" ? "reference" : "floating" : o], v = z(await n.getClippingRect({
67
+ element: (d = await (n.isElement == null ? void 0 : n.isElement(h))) == null || d ? h : h.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(l.floating)),
68
+ boundary: p,
69
+ rootBoundary: r,
70
+ strategy: g
71
+ })), y = o === "floating" ? {
72
+ x: a,
73
+ y: m,
74
+ width: i.floating.width,
75
+ height: i.floating.height
76
+ } : i.reference, u = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(l.floating)), w = await (n.isElement == null ? void 0 : n.isElement(u)) ? await (n.getScale == null ? void 0 : n.getScale(u)) || {
77
+ x: 1,
78
+ y: 1
79
+ } : {
80
+ x: 1,
81
+ y: 1
82
+ }, A = z(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
83
+ elements: l,
84
+ rect: y,
85
+ offsetParent: u,
86
+ strategy: g
87
+ }) : y);
88
+ return {
89
+ top: (v.top - A.top + c.top) / w.y,
90
+ bottom: (A.bottom - v.bottom + c.bottom) / w.y,
91
+ left: (v.left - A.left + c.left) / w.x,
92
+ right: (A.right - v.right + c.right) / w.x
93
+ };
94
+ }
95
+ const oe = 50, le = async (t, e, d) => {
96
+ const {
97
+ placement: a = "bottom",
98
+ strategy: m = "absolute",
99
+ middleware: n = [],
100
+ platform: i
101
+ } = d, l = i.detectOverflow ? i : {
102
+ ...i,
103
+ detectOverflow: se
104
+ }, g = await (i.isRTL == null ? void 0 : i.isRTL(e));
105
+ let p = await i.getElementRects({
106
+ reference: t,
107
+ floating: e,
108
+ strategy: m
109
+ }), {
110
+ x: r,
111
+ y: o
112
+ } = X(p, a, g), f = a, s = 0;
113
+ const c = {};
114
+ for (let x = 0; x < n.length; x++) {
115
+ const h = n[x];
116
+ if (!h)
117
+ continue;
118
+ const {
119
+ name: v,
120
+ fn: y
121
+ } = h, {
122
+ x: u,
123
+ y: w,
124
+ data: A,
125
+ reset: b
126
+ } = await y({
127
+ x: r,
128
+ y: o,
129
+ initialPlacement: a,
130
+ placement: f,
131
+ strategy: m,
132
+ middlewareData: c,
133
+ rects: p,
134
+ platform: l,
135
+ elements: {
136
+ reference: t,
137
+ floating: e
138
+ }
139
+ });
140
+ r = u ?? r, o = w ?? o, c[v] = {
141
+ ...c[v],
142
+ ...A
143
+ }, b && s < oe && (s++, typeof b == "object" && (b.placement && (f = b.placement), b.rects && (p = b.rects === !0 ? await i.getElementRects({
144
+ reference: t,
145
+ floating: e,
146
+ strategy: m
147
+ }) : b.rects), {
148
+ x: r,
149
+ y: o
150
+ } = X(p, f, g)), x = -1);
151
+ }
152
+ return {
153
+ x: r,
154
+ y: o,
155
+ placement: f,
156
+ strategy: m,
157
+ middlewareData: c
158
+ };
159
+ }, re = (t) => ({
160
+ name: "arrow",
161
+ options: t,
162
+ async fn(e) {
163
+ const {
164
+ x: d,
165
+ y: a,
166
+ placement: m,
167
+ rects: n,
168
+ platform: i,
169
+ elements: l,
170
+ middlewareData: g
171
+ } = e, {
172
+ element: p,
173
+ padding: r = 0
174
+ } = L(t, e) || {};
175
+ if (p == null)
176
+ return {};
177
+ const o = U(r), f = {
178
+ x: d,
179
+ y: a
180
+ }, s = q(m), c = J(s), x = await i.getDimensions(p), h = s === "y", v = h ? "top" : "left", y = h ? "bottom" : "right", u = h ? "clientHeight" : "clientWidth", w = n.reference[c] + n.reference[s] - f[s] - n.floating[c], A = f[s] - n.reference[s], b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(p));
181
+ let C = b ? b[u] : 0;
182
+ (!C || !await (i.isElement == null ? void 0 : i.isElement(b))) && (C = l.floating[u] || n.floating[c]);
183
+ const E = w / 2 - A / 2, D = C / 2 - x[c] / 2 - 1, P = Y(o[v], D), H = Y(o[y], D), k = P, F = C - x[c] - H, O = C / 2 - x[c] / 2 + E, W = $(k, O, F), M = !g.arrow && _(m) != null && O !== W && n.reference[c] / 2 - (O < k ? P : H) - x[c] / 2 < 0, S = M ? O < k ? O - k : O - F : 0;
184
+ return {
185
+ [s]: f[s] + S,
186
+ data: {
187
+ [s]: W,
188
+ centerOffset: O - W - S,
189
+ ...M && {
190
+ alignmentOffset: S
191
+ }
192
+ },
193
+ reset: M
194
+ };
195
+ }
196
+ }), fe = function(t) {
197
+ return t === void 0 && (t = {}), {
198
+ name: "flip",
199
+ options: t,
200
+ async fn(e) {
201
+ var d, a;
202
+ const {
203
+ placement: m,
204
+ middlewareData: n,
205
+ rects: i,
206
+ initialPlacement: l,
207
+ platform: g,
208
+ elements: p
209
+ } = e, {
210
+ mainAxis: r = !0,
211
+ crossAxis: o = !0,
212
+ fallbackPlacements: f,
213
+ fallbackStrategy: s = "bestFit",
214
+ fallbackAxisSideDirection: c = "none",
215
+ flipAlignment: x = !0,
216
+ ...h
217
+ } = L(t, e);
218
+ if ((d = n.arrow) != null && d.alignmentOffset)
219
+ return {};
220
+ const v = j(m), y = T(l), u = j(l) === l, w = await (g.isRTL == null ? void 0 : g.isRTL(p.floating)), A = f || (u || !x ? [Z(l)] : ee(l)), b = c !== "none";
221
+ !f && b && A.push(...te(l, x, c, w));
222
+ const C = [l, ...A], E = await g.detectOverflow(e, h), D = [];
223
+ let P = ((a = n.flip) == null ? void 0 : a.overflows) || [];
224
+ if (r && D.push(E[v]), o) {
225
+ const O = ne(m, i, w);
226
+ D.push(E[O[0]], E[O[1]]);
227
+ }
228
+ if (P = [...P, {
229
+ placement: m,
230
+ overflows: D
231
+ }], !D.every((O) => O <= 0)) {
232
+ var H, k;
233
+ const O = (((H = n.flip) == null ? void 0 : H.index) || 0) + 1, W = C[O];
234
+ if (W && (!(o === "alignment" ? y !== T(W) : !1) || // We leave the current main axis only if every placement on that axis
235
+ // overflows the main axis.
236
+ P.every((R) => T(R.placement) === y ? R.overflows[0] > 0 : !0)))
237
+ return {
238
+ data: {
239
+ index: O,
240
+ overflows: P
241
+ },
242
+ reset: {
243
+ placement: W
244
+ }
245
+ };
246
+ let M = (k = P.filter((S) => S.overflows[0] <= 0).sort((S, R) => S.overflows[1] - R.overflows[1])[0]) == null ? void 0 : k.placement;
247
+ if (!M)
248
+ switch (s) {
249
+ case "bestFit": {
250
+ var F;
251
+ const S = (F = P.filter((R) => {
252
+ if (b) {
253
+ const V = T(R.placement);
254
+ return V === y || // Create a bias to the `y` side axis due to horizontal
255
+ // reading directions favoring greater width.
256
+ V === "y";
257
+ }
258
+ return !0;
259
+ }).map((R) => [R.placement, R.overflows.filter((V) => V > 0).reduce((V, Q) => V + Q, 0)]).sort((R, V) => R[1] - V[1])[0]) == null ? void 0 : F[0];
260
+ S && (M = S);
261
+ break;
262
+ }
263
+ case "initialPlacement":
264
+ M = l;
265
+ break;
266
+ }
267
+ if (m !== M)
268
+ return {
269
+ reset: {
270
+ placement: M
271
+ }
272
+ };
273
+ }
274
+ return {};
275
+ }
276
+ };
277
+ };
278
+ function I(t, e) {
279
+ return {
280
+ top: t.top - e.height,
281
+ right: t.right - e.width,
282
+ bottom: t.bottom - e.height,
283
+ left: t.left - e.width
284
+ };
285
+ }
286
+ function N(t) {
287
+ return ie.some((e) => t[e] >= 0);
288
+ }
289
+ const me = function(t) {
290
+ return t === void 0 && (t = {}), {
291
+ name: "hide",
292
+ options: t,
293
+ async fn(e) {
294
+ const {
295
+ rects: d,
296
+ platform: a
297
+ } = e, {
298
+ strategy: m = "referenceHidden",
299
+ ...n
300
+ } = L(t, e);
301
+ switch (m) {
302
+ case "referenceHidden": {
303
+ const i = await a.detectOverflow(e, {
304
+ ...n,
305
+ elementContext: "reference"
306
+ }), l = I(i, d.reference);
307
+ return {
308
+ data: {
309
+ referenceHiddenOffsets: l,
310
+ referenceHidden: N(l)
311
+ }
312
+ };
313
+ }
314
+ case "escaped": {
315
+ const i = await a.detectOverflow(e, {
316
+ ...n,
317
+ altBoundary: !0
318
+ }), l = I(i, d.floating);
319
+ return {
320
+ data: {
321
+ escapedOffsets: l,
322
+ escaped: N(l)
323
+ }
324
+ };
325
+ }
326
+ default:
327
+ return {};
328
+ }
329
+ }
330
+ };
331
+ }, K = /* @__PURE__ */ new Set(["left", "top"]);
332
+ async function ce(t, e) {
333
+ const {
334
+ placement: d,
335
+ platform: a,
336
+ elements: m
337
+ } = t, n = await (a.isRTL == null ? void 0 : a.isRTL(m.floating)), i = j(d), l = _(d), g = T(d) === "y", p = K.has(i) ? -1 : 1, r = n && g ? -1 : 1, o = L(e, t);
338
+ let {
339
+ mainAxis: f,
340
+ crossAxis: s,
341
+ alignmentAxis: c
342
+ } = typeof o == "number" ? {
343
+ mainAxis: o,
344
+ crossAxis: 0,
345
+ alignmentAxis: null
346
+ } : {
347
+ mainAxis: o.mainAxis || 0,
348
+ crossAxis: o.crossAxis || 0,
349
+ alignmentAxis: o.alignmentAxis
350
+ };
351
+ return l && typeof c == "number" && (s = l === "end" ? c * -1 : c), g ? {
352
+ x: s * r,
353
+ y: f * p
354
+ } : {
355
+ x: f * p,
356
+ y: s * r
357
+ };
358
+ }
359
+ const de = function(t) {
360
+ return t === void 0 && (t = 0), {
361
+ name: "offset",
362
+ options: t,
363
+ async fn(e) {
364
+ var d, a;
365
+ const {
366
+ x: m,
367
+ y: n,
368
+ placement: i,
369
+ middlewareData: l
370
+ } = e, g = await ce(e, t);
371
+ return i === ((d = l.offset) == null ? void 0 : d.placement) && (a = l.arrow) != null && a.alignmentOffset ? {} : {
372
+ x: m + g.x,
373
+ y: n + g.y,
374
+ data: {
375
+ ...g,
376
+ placement: i
377
+ }
378
+ };
379
+ }
380
+ };
381
+ }, xe = function(t) {
382
+ return t === void 0 && (t = {}), {
383
+ name: "shift",
384
+ options: t,
385
+ async fn(e) {
386
+ const {
387
+ x: d,
388
+ y: a,
389
+ placement: m,
390
+ platform: n
391
+ } = e, {
392
+ mainAxis: i = !0,
393
+ crossAxis: l = !1,
394
+ limiter: g = {
395
+ fn: (v) => {
396
+ let {
397
+ x: y,
398
+ y: u
399
+ } = v;
400
+ return {
401
+ x: y,
402
+ y: u
403
+ };
404
+ }
405
+ },
406
+ ...p
407
+ } = L(t, e), r = {
408
+ x: d,
409
+ y: a
410
+ }, o = await n.detectOverflow(e, p), f = T(j(m)), s = G(f);
411
+ let c = r[s], x = r[f];
412
+ if (i) {
413
+ const v = s === "y" ? "top" : "left", y = s === "y" ? "bottom" : "right", u = c + o[v], w = c - o[y];
414
+ c = $(u, c, w);
415
+ }
416
+ if (l) {
417
+ const v = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", u = x + o[v], w = x - o[y];
418
+ x = $(u, x, w);
419
+ }
420
+ const h = g.fn({
421
+ ...e,
422
+ [s]: c,
423
+ [f]: x
424
+ });
425
+ return {
426
+ ...h,
427
+ data: {
428
+ x: h.x - d,
429
+ y: h.y - a,
430
+ enabled: {
431
+ [s]: i,
432
+ [f]: l
433
+ }
434
+ }
435
+ };
436
+ }
437
+ };
438
+ }, ge = function(t) {
439
+ return t === void 0 && (t = {}), {
440
+ options: t,
441
+ fn(e) {
442
+ const {
443
+ x: d,
444
+ y: a,
445
+ placement: m,
446
+ rects: n,
447
+ middlewareData: i
448
+ } = e, {
449
+ offset: l = 0,
450
+ mainAxis: g = !0,
451
+ crossAxis: p = !0
452
+ } = L(t, e), r = {
453
+ x: d,
454
+ y: a
455
+ }, o = T(m), f = G(o);
456
+ let s = r[f], c = r[o];
457
+ const x = L(l, e), h = typeof x == "number" ? {
458
+ mainAxis: x,
459
+ crossAxis: 0
460
+ } : {
461
+ mainAxis: 0,
462
+ crossAxis: 0,
463
+ ...x
464
+ };
465
+ if (g) {
466
+ const u = f === "y" ? "height" : "width", w = n.reference[f] - n.floating[u] + h.mainAxis, A = n.reference[f] + n.reference[u] - h.mainAxis;
467
+ s < w ? s = w : s > A && (s = A);
468
+ }
469
+ if (p) {
470
+ var v, y;
471
+ const u = f === "y" ? "width" : "height", w = K.has(j(m)), A = n.reference[o] - n.floating[u] + (w && ((v = i.offset) == null ? void 0 : v[o]) || 0) + (w ? 0 : h.crossAxis), b = n.reference[o] + n.reference[u] + (w ? 0 : ((y = i.offset) == null ? void 0 : y[o]) || 0) - (w ? h.crossAxis : 0);
472
+ c < A ? c = A : c > b && (c = b);
473
+ }
474
+ return {
475
+ [f]: s,
476
+ [o]: c
477
+ };
478
+ }
479
+ };
480
+ }, ue = function(t) {
481
+ return t === void 0 && (t = {}), {
482
+ name: "size",
483
+ options: t,
484
+ async fn(e) {
485
+ var d, a;
486
+ const {
487
+ placement: m,
488
+ rects: n,
489
+ platform: i,
490
+ elements: l
491
+ } = e, {
492
+ apply: g = () => {
493
+ },
494
+ ...p
495
+ } = L(t, e), r = await i.detectOverflow(e, p), o = j(m), f = _(m), s = T(m) === "y", {
496
+ width: c,
497
+ height: x
498
+ } = n.floating;
499
+ let h, v;
500
+ o === "top" || o === "bottom" ? (h = o, v = f === (await (i.isRTL == null ? void 0 : i.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (v = o, h = f === "end" ? "top" : "bottom");
501
+ const y = x - r.top - r.bottom, u = c - r.left - r.right, w = Y(x - r[h], y), A = Y(c - r[v], u), b = !e.middlewareData.shift;
502
+ let C = w, E = A;
503
+ if ((d = e.middlewareData.shift) != null && d.enabled.x && (E = u), (a = e.middlewareData.shift) != null && a.enabled.y && (C = y), b && !f) {
504
+ const P = B(r.left, 0), H = B(r.right, 0), k = B(r.top, 0), F = B(r.bottom, 0);
505
+ s ? E = c - 2 * (P !== 0 || H !== 0 ? P + H : B(r.left, r.right)) : C = x - 2 * (k !== 0 || F !== 0 ? k + F : B(r.top, r.bottom));
506
+ }
507
+ await g({
508
+ ...e,
509
+ availableWidth: E,
510
+ availableHeight: C
511
+ });
512
+ const D = await i.getDimensions(l.floating);
513
+ return c !== D.width || x !== D.height ? {
514
+ reset: {
515
+ rects: !0
516
+ }
517
+ } : {};
518
+ }
519
+ };
520
+ };
521
+ export {
522
+ re as arrow,
523
+ le as computePosition,
524
+ se as detectOverflow,
525
+ fe as flip,
526
+ me as hide,
527
+ ge as limitShift,
528
+ de as offset,
529
+ z as rectToClientRect,
530
+ xe as shift,
531
+ ue as size
532
+ };