@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,74 @@
1
+ import { defineComponent as m, ref as h, createElementBlock as s, openBlock as n, createElementVNode as e, createCommentVNode as b, toDisplayString as c, unref as o, normalizeClass as a, createTextVNode as k, renderSlot as g } from "vue";
2
+ import { useCodeBlock as _ } from "../composables/useCodeBlock.js";
3
+ const y = { class: "code-block my-4 rounded-lg overflow-hidden bg-vscode-sidebar border border-vscode-border" }, C = { class: "flex items-center justify-between px-4 py-2 bg-vscode-bg border-b border-vscode-border" }, w = { class: "flex items-center gap-2" }, B = { class: "text-xs text-vscode-accent font-medium" }, N = {
4
+ key: 0,
5
+ class: "text-xs text-vscode-text-muted"
6
+ }, V = {
7
+ key: 0,
8
+ class: "w-3.5 h-3.5",
9
+ fill: "none",
10
+ stroke: "currentColor",
11
+ viewBox: "0 0 24 24"
12
+ }, j = {
13
+ key: 1,
14
+ class: "w-3.5 h-3.5",
15
+ fill: "none",
16
+ stroke: "currentColor",
17
+ viewBox: "0 0 24 24"
18
+ }, E = { class: "code-block-content p-4 overflow-x-auto" }, L = { class: "m-0" }, R = /* @__PURE__ */ m({
19
+ __name: "CodeBlockEdit",
20
+ props: {
21
+ language: {},
22
+ title: {},
23
+ showLineNumbers: { type: Boolean }
24
+ },
25
+ setup(r) {
26
+ const i = r, { copied: d, languageLabel: u, languageClass: v, copyCode: p } = _(i), l = h(null);
27
+ async function x() {
28
+ l.value && await p(l.value.textContent || "");
29
+ }
30
+ return (f, t) => (n(), s("div", y, [
31
+ e("div", C, [
32
+ e("div", w, [
33
+ e("span", B, c(o(u)), 1),
34
+ r.title ? (n(), s("span", N, c(r.title), 1)) : b("", !0)
35
+ ]),
36
+ e("button", {
37
+ class: a(["flex items-center gap-1 px-2 py-1 text-xs rounded transition-colors", o(d) ? "bg-green-600 text-white" : "hover:bg-vscode-active text-vscode-text-muted hover:text-vscode-text"]),
38
+ onClick: x
39
+ }, [
40
+ o(d) ? (n(), s("svg", j, [...t[1] || (t[1] = [
41
+ e("path", {
42
+ "stroke-linecap": "round",
43
+ "stroke-linejoin": "round",
44
+ "stroke-width": "2",
45
+ d: "M5 13l4 4L19 7"
46
+ }, null, -1)
47
+ ])])) : (n(), s("svg", V, [...t[0] || (t[0] = [
48
+ e("path", {
49
+ "stroke-linecap": "round",
50
+ "stroke-linejoin": "round",
51
+ "stroke-width": "2",
52
+ d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
53
+ }, null, -1)
54
+ ])])),
55
+ k(" " + c(o(d) ? "Copied!" : "Copy"), 1)
56
+ ], 2)
57
+ ]),
58
+ e("div", E, [
59
+ e("pre", L, [
60
+ e("code", {
61
+ ref_key: "codeRef",
62
+ ref: l,
63
+ class: a(o(v))
64
+ }, [
65
+ g(f.$slots, "default", {}, void 0, !0)
66
+ ], 2)
67
+ ])
68
+ ])
69
+ ]));
70
+ }
71
+ });
72
+ export {
73
+ R as default
74
+ };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as C, createElementBlock as a, createCommentVNode as n, unref as e, openBlock as s, normalizeClass as r, Fragment as _, renderList as k, createElementVNode as S, normalizeStyle as o, createBlock as h, resolveDynamicComponent as z, toDisplayString as I } from "vue";
2
+ import { useGallery as w } from "../composables/useGallery.js";
3
+ import { useOptimizedImg as B } from "../composables/useMedia.js";
4
+ const E = ["src"], V = {
5
+ key: 0,
6
+ class: "gallery-description px-2 py-1 text-xs text-vscode-text-muted truncate"
7
+ }, A = /* @__PURE__ */ C({
8
+ __name: "GalleryEdit",
9
+ props: {
10
+ images: {},
11
+ columns: {},
12
+ gap: {},
13
+ aspectRatio: {},
14
+ fit: {},
15
+ position: {}
16
+ },
17
+ setup(i) {
18
+ const d = i, { gridColsClass: y, gapClass: p, tileLayout: l, getImageSrc: m, getImageAlt: g, getImageCaption: c, isVideo: u, hasImages: v } = w(d), f = B();
19
+ return (b, x) => e(v) ? (s(), a("div", {
20
+ key: 0,
21
+ class: r(["gallery not-prose my-4", [e(y), e(p)]]),
22
+ style: { display: "grid" }
23
+ }, [
24
+ (s(!0), a(_, null, k(i.images, (D, t) => (s(), a("div", {
25
+ key: t,
26
+ class: "gallery-item"
27
+ }, [
28
+ S("div", {
29
+ class: "gallery-media relative overflow-hidden rounded-lg bg-vscode-sidebar",
30
+ style: o(e(l).tileStyle)
31
+ }, [
32
+ e(u)(t) ? (s(), a("video", {
33
+ key: 0,
34
+ src: `${e(m)(t)}#t=0.1`,
35
+ controls: "",
36
+ preload: "metadata",
37
+ playsinline: "",
38
+ class: r(e(l).mediaSizeClass),
39
+ style: o(e(l).mediaStyle)
40
+ }, null, 14, E)) : (s(), h(z(e(f)), {
41
+ key: 1,
42
+ src: e(m)(t),
43
+ alt: e(g)(t),
44
+ sizes: "100vw sm:50vw md:33vw lg:299px",
45
+ class: r([e(l).mediaSizeClass, "transition-transform hover:scale-105"]),
46
+ style: o(e(l).mediaStyle)
47
+ }, null, 8, ["src", "alt", "class", "style"]))
48
+ ], 4),
49
+ e(c)(t) ? (s(), a("p", V, I(e(c)(t)), 1)) : n("", !0)
50
+ ]))), 128))
51
+ ], 2)) : n("", !0);
52
+ }
53
+ });
54
+ export {
55
+ A as default
56
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./GalleryEdit.vue.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./IconEdit.vue2.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,11 @@
1
+ import { defineComponent as o, createBlock as r, openBlock as t, normalizeProps as n, guardReactiveProps as a } from "vue";
2
+ import c from "../render/icon/Icon.vue2.js";
3
+ const i = /* @__PURE__ */ o({
4
+ __name: "IconEdit",
5
+ setup(p) {
6
+ return (e, m) => (t(), r(c, n(a(e.$attrs)), null, 16));
7
+ }
8
+ });
9
+ export {
10
+ i as default
11
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./TooltipEdit.vue2.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as o, createElementBlock as n, openBlock as a, renderSlot as l, createElementVNode as s, toDisplayString as p } from "vue";
2
+ const r = {
3
+ class: "inline-flex items-center gap-2",
4
+ "data-mdx-component": "Tooltip"
5
+ }, c = { class: "rounded bg-gray-100 px-1.5 py-0.5 text-xs text-gray-600" }, m = /* @__PURE__ */ o({
6
+ __name: "TooltipEdit",
7
+ props: {
8
+ label: {},
9
+ placement: {}
10
+ },
11
+ setup(e) {
12
+ return (t, i) => (a(), n("span", r, [
13
+ l(t.$slots, "default"),
14
+ s("span", c, " 💡 " + p(e.label), 1)
15
+ ]));
16
+ }
17
+ });
18
+ export {
19
+ m as default
20
+ };
@@ -0,0 +1,34 @@
1
+ import { defineComponent as d, createElementBlock as o, openBlock as l, createElementVNode as s, createCommentVNode as m, unref as e, toDisplayString as u } from "vue";
2
+ import { useYouTube as _ } from "../composables/useYouTube.js";
3
+ const f = { class: "youtube-embed my-4" }, p = {
4
+ class: "relative w-full",
5
+ style: { "padding-bottom": "56.25%" }
6
+ }, b = ["src", "title", "allow"], h = {
7
+ key: 0,
8
+ class: "text-center text-sm text-vscode-text-muted mt-2"
9
+ }, T = /* @__PURE__ */ d({
10
+ __name: "YouTubeEdit",
11
+ props: {
12
+ id: {},
13
+ title: {}
14
+ },
15
+ setup(t) {
16
+ const r = t, { embedUrl: n, iframeTitle: c, hasTitle: i, YOUTUBE_IFRAME_ALLOW: a } = _(r);
17
+ return (x, w) => (l(), o("div", f, [
18
+ s("div", p, [
19
+ s("iframe", {
20
+ src: e(n),
21
+ title: e(c),
22
+ class: "absolute inset-0 w-full h-full rounded-lg",
23
+ frameborder: "0",
24
+ allow: e(a),
25
+ allowfullscreen: ""
26
+ }, null, 8, b)
27
+ ]),
28
+ e(i) ? (l(), o("p", h, u(t.title), 1)) : m("", !0)
29
+ ]));
30
+ }
31
+ });
32
+ export {
33
+ T as default
34
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./YouTubeEdit.vue.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,11 @@
1
+ var o = Object.defineProperty, a = (r, l) => {
2
+ let e = {};
3
+ for (var t in r) o(e, t, {
4
+ get: r[t],
5
+ enumerable: !0
6
+ });
7
+ return o(e, Symbol.toStringTag, { value: "Module" }), e;
8
+ };
9
+ export {
10
+ a as __exportAll
11
+ };
@@ -0,0 +1,29 @@
1
+ import { Dynamic as o } from "../utils/dynamic.js";
2
+ import { defineComponent as s, h as n } from "vue";
3
+ var p = "br, hr, img, input, area, textarea".split(", "), f = (r) => typeof r == "string" && p.includes(r), e = (r) => s({
4
+ name: "Polymorphic",
5
+ inheritAttrs: !1,
6
+ props: { asChild: {
7
+ type: Boolean,
8
+ default: !1
9
+ } },
10
+ setup(i, { attrs: t, slots: a }) {
11
+ return i.asChild ? () => n(o, t, a) : () => n(r, t, f(r) ? void 0 : a.default?.());
12
+ }
13
+ });
14
+ function u() {
15
+ const r = /* @__PURE__ */ new Map();
16
+ return new Proxy(e, {
17
+ apply(i, t, a) {
18
+ return e(a[0]);
19
+ },
20
+ get(i, t) {
21
+ return r.has(t) || r.set(t, e(t)), r.get(t);
22
+ }
23
+ });
24
+ }
25
+ var d = u();
26
+ export {
27
+ d as ark,
28
+ u as jsxFactory
29
+ };
@@ -0,0 +1,6 @@
1
+ import { createContext as e } from "../../utils/create-context.js";
2
+ var [t, o] = e("PresenceContext");
3
+ export {
4
+ t as PresenceProvider,
5
+ o as usePresenceContext
6
+ };
@@ -0,0 +1,32 @@
1
+ import { ref as a, computed as r, toValue as u, watch as l } from "vue";
2
+ import { useMachine as v } from "../../../../../@zag-js/vue/dist/machine.js";
3
+ import { connect as m } from "../../../../../@zag-js/presence/dist/presence.connect.js";
4
+ import { machine as f } from "../../../../../@zag-js/presence/dist/presence.machine.js";
5
+ var E = (s, p) => {
6
+ const o = a(!1), n = a(null), i = r(() => ({
7
+ present: u(s).present,
8
+ onExitComplete: () => p?.("exitComplete")
9
+ })), c = v(f, i), e = r(() => m(c));
10
+ return l(() => e.value.present, () => {
11
+ e.value.present && (o.value = !0);
12
+ }), l(n, () => {
13
+ if (n.value) {
14
+ const t = n.value.$el ? n.value.$el : n.value;
15
+ t && e.value.setNode(t);
16
+ }
17
+ }), r(() => {
18
+ const t = u(s);
19
+ return {
20
+ present: e.value.present,
21
+ unmounted: !e.value.present && !o.value && t.lazyMount || t?.unmountOnExit && !e.value?.present && o.value,
22
+ presenceProps: {
23
+ ref: n,
24
+ hidden: !e.value.present,
25
+ "data-state": e.value.skip && t.skipAnimationOnMount ? void 0 : t?.present ? "open" : "closed"
26
+ }
27
+ };
28
+ });
29
+ };
30
+ export {
31
+ E as usePresence
32
+ };
@@ -0,0 +1,5 @@
1
+ import t from "./tooltip-arrow-tip.vue_vue_type_script_setup_true_lang.js";
2
+ var r = t;
3
+ export {
4
+ r as default
5
+ };
@@ -0,0 +1,18 @@
1
+ import { useForwardExpose as p } from "../../utils/use-forward-expose.js";
2
+ import { ark as a } from "../factory.js";
3
+ import { useTooltipContext as i } from "./use-tooltip-context.js";
4
+ import { defineComponent as l, createBlock as s, openBlock as u, unref as o, mergeProps as _, withCtx as n, renderSlot as d } from "vue";
5
+ var C = /* @__PURE__ */ l({
6
+ __name: "tooltip-arrow-tip",
7
+ props: { asChild: { type: Boolean } },
8
+ setup(t) {
9
+ const e = i();
10
+ return p(), (r, m) => (u(), s(o(a).div, _(o(e).getArrowTipProps(), { "as-child": t.asChild }), {
11
+ default: n(() => [d(r.$slots, "default")]),
12
+ _: 3
13
+ }, 16, ["as-child"]));
14
+ }
15
+ });
16
+ export {
17
+ C as default
18
+ };
@@ -0,0 +1,5 @@
1
+ import t from "./tooltip-arrow.vue_vue_type_script_setup_true_lang.js";
2
+ var r = t;
3
+ export {
4
+ r as default
5
+ };
@@ -0,0 +1,18 @@
1
+ import { useForwardExpose as p } from "../../utils/use-forward-expose.js";
2
+ import { ark as a } from "../factory.js";
3
+ import { useTooltipContext as l } from "./use-tooltip-context.js";
4
+ import { defineComponent as s, createBlock as i, openBlock as u, unref as o, mergeProps as n, withCtx as _, renderSlot as d } from "vue";
5
+ var C = /* @__PURE__ */ s({
6
+ __name: "tooltip-arrow",
7
+ props: { asChild: { type: Boolean } },
8
+ setup(t) {
9
+ const e = l();
10
+ return p(), (r, m) => (u(), i(o(a).div, n(o(e).getArrowProps(), { "as-child": t.asChild }), {
11
+ default: _(() => [d(r.$slots, "default")]),
12
+ _: 3
13
+ }, 16, ["as-child"]));
14
+ }
15
+ });
16
+ export {
17
+ C as default
18
+ };
@@ -0,0 +1,5 @@
1
+ import t from "./tooltip-content.vue_vue_type_script_setup_true_lang.js";
2
+ var _ = t;
3
+ export {
4
+ _ as default
5
+ };
@@ -0,0 +1,20 @@
1
+ import { useForwardExpose as s } from "../../utils/use-forward-expose.js";
2
+ import { ark as a } from "../factory.js";
3
+ import { usePresenceContext as m } from "../presence/use-presence-context.js";
4
+ import { useTooltipContext as u } from "./use-tooltip-context.js";
5
+ import { defineComponent as l, computed as c, createBlock as i, createCommentVNode as d, unref as o, openBlock as _, mergeProps as f, withCtx as C, renderSlot as v } from "vue";
6
+ import { mergeProps as P } from "../../../../../@zag-js/core/dist/merge-props.js";
7
+ var $ = /* @__PURE__ */ l({
8
+ __name: "tooltip-content",
9
+ props: { asChild: { type: Boolean } },
10
+ setup(t) {
11
+ const r = u(), e = m(), p = c(() => P(r.value.getContentProps(), e.value.presenceProps));
12
+ return s(), (n, g) => o(e).unmounted ? d("", !0) : (_(), i(o(a).div, f({ key: 0 }, p.value, { "as-child": t.asChild }), {
13
+ default: C(() => [v(n.$slots, "default")]),
14
+ _: 3
15
+ }, 16, ["as-child"]));
16
+ }
17
+ });
18
+ export {
19
+ $ as default
20
+ };
@@ -0,0 +1,5 @@
1
+ import t from "./tooltip-context.vue_vue_type_script_setup_true_lang.js";
2
+ var _ = t;
3
+ export {
4
+ _ as default
5
+ };
@@ -0,0 +1,12 @@
1
+ import { useTooltipContext as o } from "./use-tooltip-context.js";
2
+ import { defineComponent as r, renderSlot as p, normalizeProps as n, guardReactiveProps as _, unref as u } from "vue";
3
+ var c = /* @__PURE__ */ r({
4
+ __name: "tooltip-context",
5
+ setup(a) {
6
+ const t = o();
7
+ return (e, l) => p(e.$slots, "default", n(_(u(t))));
8
+ }
9
+ });
10
+ export {
11
+ c as default
12
+ };
@@ -0,0 +1,5 @@
1
+ import t from "./tooltip-positioner.vue_vue_type_script_setup_true_lang.js";
2
+ var o = t;
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,19 @@
1
+ import { useForwardExpose as s } from "../../utils/use-forward-expose.js";
2
+ import { ark as i } from "../factory.js";
3
+ import { usePresenceContext as n } from "../presence/use-presence-context.js";
4
+ import { useTooltipContext as a } from "./use-tooltip-context.js";
5
+ import { defineComponent as l, createBlock as u, createCommentVNode as m, unref as e, openBlock as d, mergeProps as c, withCtx as _, renderSlot as f } from "vue";
6
+ var g = /* @__PURE__ */ l({
7
+ __name: "tooltip-positioner",
8
+ props: { asChild: { type: Boolean } },
9
+ setup(o) {
10
+ const t = a(), r = n();
11
+ return s(), (p, C) => e(r).unmounted ? m("", !0) : (d(), u(e(i).div, c({ key: 0 }, e(t).getPositionerProps(), { "as-child": o.asChild }), {
12
+ default: _(() => [f(p.$slots, "default")]),
13
+ _: 3
14
+ }, 16, ["as-child"]));
15
+ }
16
+ });
17
+ export {
18
+ g as default
19
+ };
@@ -0,0 +1,5 @@
1
+ import t from "./tooltip-root-provider.vue_vue_type_script_setup_true_lang.js";
2
+ var _ = t;
3
+ export {
4
+ _ as default
5
+ };
@@ -0,0 +1,29 @@
1
+ import { useForwardExpose as m } from "../../utils/use-forward-expose.js";
2
+ import { RenderStrategyPropsProvider as s } from "../../utils/use-render-strategy.js";
3
+ import { usePresence as l } from "../presence/use-presence.js";
4
+ import { PresenceProvider as a } from "../presence/use-presence-context.js";
5
+ import { TooltipProvider as d } from "./use-tooltip-context.js";
6
+ import { defineComponent as _, computed as t, renderSlot as c } from "vue";
7
+ var M = /* @__PURE__ */ _({
8
+ __name: "tooltip-root-provider",
9
+ props: {
10
+ value: {},
11
+ lazyMount: { type: Boolean },
12
+ unmountOnExit: { type: Boolean }
13
+ },
14
+ emits: ["exitComplete"],
15
+ setup(r, { emit: n }) {
16
+ const o = r, p = n, e = t(() => o.value), u = l(t(() => ({
17
+ present: e.value.open,
18
+ lazyMount: o.lazyMount,
19
+ unmountOnExit: o.unmountOnExit
20
+ })), p);
21
+ return d(e), a(u), s(t(() => ({
22
+ lazyMount: o.lazyMount,
23
+ unmountOnExit: o.unmountOnExit
24
+ }))), m(), (i, v) => c(i.$slots, "default");
25
+ }
26
+ });
27
+ export {
28
+ M as default
29
+ };
@@ -0,0 +1,5 @@
1
+ import t from "./tooltip-root.vue_vue_type_script_setup_true_lang.js";
2
+ var _ = t;
3
+ export {
4
+ _ as default
5
+ };
@@ -0,0 +1,59 @@
1
+ import { useForwardExpose as a } from "../../utils/use-forward-expose.js";
2
+ import { RenderStrategyPropsProvider as s } from "../../utils/use-render-strategy.js";
3
+ import { usePresence as u } from "../presence/use-presence.js";
4
+ import { PresenceProvider as d } from "../presence/use-presence-context.js";
5
+ import { TooltipProvider as c } from "./use-tooltip-context.js";
6
+ import { useTooltip as m } from "./use-tooltip.js";
7
+ import { defineComponent as y, mergeDefaults as v, computed as n, renderSlot as f } from "vue";
8
+ var z = /* @__PURE__ */ y({
9
+ __name: "tooltip-root",
10
+ props: /* @__PURE__ */ v({
11
+ "aria-label": {},
12
+ closeDelay: {},
13
+ closeOnClick: { type: Boolean },
14
+ closeOnEscape: { type: Boolean },
15
+ closeOnPointerDown: { type: Boolean },
16
+ closeOnScroll: { type: Boolean },
17
+ defaultOpen: { type: Boolean },
18
+ disabled: { type: Boolean },
19
+ id: {},
20
+ ids: {},
21
+ interactive: { type: Boolean },
22
+ open: { type: Boolean },
23
+ openDelay: {},
24
+ positioning: {},
25
+ triggerValue: {},
26
+ defaultTriggerValue: {},
27
+ lazyMount: { type: Boolean },
28
+ unmountOnExit: { type: Boolean }
29
+ }, {
30
+ closeOnClick: void 0,
31
+ closeOnEscape: void 0,
32
+ closeOnPointerDown: void 0,
33
+ closeOnScroll: void 0,
34
+ defaultOpen: void 0,
35
+ disabled: void 0,
36
+ interactive: void 0,
37
+ open: void 0
38
+ }),
39
+ emits: [
40
+ "exitComplete",
41
+ "openChange",
42
+ "triggerValueChange",
43
+ "update:open"
44
+ ],
45
+ setup(r, { emit: l }) {
46
+ const e = r, o = l, t = m(e, o), i = u(n(() => ({
47
+ present: t.value.open,
48
+ lazyMount: e.lazyMount,
49
+ unmountOnExit: e.unmountOnExit
50
+ })), o);
51
+ return c(t), d(i), s(n(() => ({
52
+ lazyMount: e.lazyMount,
53
+ unmountOnExit: e.unmountOnExit
54
+ }))), a(), (p, O) => f(p.$slots, "default");
55
+ }
56
+ });
57
+ export {
58
+ z as default
59
+ };
@@ -0,0 +1,5 @@
1
+ import t from "./tooltip-trigger.vue_vue_type_script_setup_true_lang.js";
2
+ var _ = t;
3
+ export {
4
+ _ as default
5
+ };
@@ -0,0 +1,21 @@
1
+ import { useForwardExpose as l } from "../../utils/use-forward-expose.js";
2
+ import { ark as a } from "../factory.js";
3
+ import { useTooltipContext as i } from "./use-tooltip-context.js";
4
+ import { defineComponent as s, createBlock as u, openBlock as n, unref as e, mergeProps as d, withCtx as m, renderSlot as _ } from "vue";
5
+ var v = /* @__PURE__ */ s({
6
+ __name: "tooltip-trigger",
7
+ props: {
8
+ value: {},
9
+ asChild: { type: Boolean }
10
+ },
11
+ setup(t) {
12
+ const o = t, r = i();
13
+ return l(), (p, c) => (n(), u(e(a).button, d(e(r).getTriggerProps(o), { "as-child": t.asChild }), {
14
+ default: m(() => [_(p.$slots, "default")]),
15
+ _: 3
16
+ }, 16, ["as-child"]));
17
+ }
18
+ });
19
+ export {
20
+ v as default
21
+ };
@@ -0,0 +1,22 @@
1
+ import { __exportAll as o } from "../../_virtual/_rolldown/runtime.js";
2
+ import t from "./tooltip-arrow-tip.js";
3
+ import r from "./tooltip-arrow.js";
4
+ import i from "./tooltip-content.js";
5
+ import p from "./tooltip-context.js";
6
+ import e from "./tooltip-positioner.js";
7
+ import _ from "./tooltip-root-provider.js";
8
+ import l from "./tooltip-root.js";
9
+ import m from "./tooltip-trigger.js";
10
+ var v = /* @__PURE__ */ o({
11
+ Arrow: () => r,
12
+ ArrowTip: () => t,
13
+ Content: () => i,
14
+ Context: () => p,
15
+ Positioner: () => e,
16
+ Root: () => l,
17
+ RootProvider: () => _,
18
+ Trigger: () => m
19
+ });
20
+ export {
21
+ v as tooltip_exports
22
+ };
@@ -0,0 +1,6 @@
1
+ import { createContext as o } from "../../utils/create-context.js";
2
+ var [e, r] = o("TooltipContext");
3
+ export {
4
+ e as TooltipProvider,
5
+ r as useTooltipContext
6
+ };
@@ -0,0 +1,29 @@
1
+ import { useEnvironmentContext as u, DEFAULT_ENVIRONMENT as g } from "../../providers/environment/use-environment-context.js";
2
+ import { useLocaleContext as s, DEFAULT_LOCALE as l } from "../../providers/locale/use-locale-context.js";
3
+ import { cleanProps as C } from "../../utils/clean-props.js";
4
+ import { useId as f, computed as r, toValue as h } from "vue";
5
+ import { useMachine as v } from "../../../../../@zag-js/vue/dist/machine.js";
6
+ import { connect as E } from "../../../../../@zag-js/tooltip/dist/tooltip.connect.js";
7
+ import { machine as T } from "../../../../../@zag-js/tooltip/dist/tooltip.machine.js";
8
+ import { normalizeProps as d } from "../../../../../@zag-js/vue/dist/normalize-props.js";
9
+ var D = (t = {}, e) => {
10
+ const p = f(), a = u(g), m = s(l), c = r(() => {
11
+ const n = h(t);
12
+ return {
13
+ id: p,
14
+ dir: m.value.dir,
15
+ getRootNode: a?.value.getRootNode,
16
+ ...C(n),
17
+ onOpenChange: (o) => {
18
+ e?.("openChange", o), e?.("update:open", o.open), n.onOpenChange?.(o);
19
+ },
20
+ onTriggerValueChange: (o) => {
21
+ e?.("triggerValueChange", o), n.onTriggerValueChange?.(o);
22
+ }
23
+ };
24
+ }), i = v(T, c);
25
+ return r(() => E(i, d));
26
+ };
27
+ export {
28
+ D as useTooltip
29
+ };
@@ -0,0 +1,12 @@
1
+ import { createContext as t } from "../../utils/create-context.js";
2
+ import { computed as o } from "vue";
3
+ var [r, m] = t("EnvironmentContext"), i = o(() => ({
4
+ getRootNode: () => document,
5
+ getDocument: () => document,
6
+ getWindow: () => window
7
+ }));
8
+ export {
9
+ i as DEFAULT_ENVIRONMENT,
10
+ r as EnvironmentContextProvider,
11
+ m as useEnvironmentContext
12
+ };