@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,67 @@
1
+ import { ACCESS_LEVEL_ORDER as t } from "./types.js";
2
+ import { createKbClient as s } from "./client.js";
3
+ import { findNavNode as n, flattenNav as i, isNavigable as m, navBreadcrumbs as p, navNextPrev as f, navSiblings as c, navSubtree as d, navWalk as x } from "./navigation.js";
4
+ import { createAuthManager as b, createLocalStorageTokenStorage as u, createMemoryTokenStorage as v, decodeJwtUser as S, hasAccessLevel as T } from "./auth.js";
5
+ import { generateDescription as h, stripLeadingH1 as A } from "./article-seo.js";
6
+ import { createMarkedInstance as k, defaultImageHtml as M, parseMarkdownSafe as N } from "./markdown.js";
7
+ import { deepMerge as I } from "./blog-config.js";
8
+ import { retryWithBackoff as E } from "./retry.js";
9
+ import { buildThemeCssVars as R, darkenColor as w, hexToHsl as y, hexToRgb as B, hslToRgb as K, lightenColor as U, rgbTriplet as V } from "./theme.js";
10
+ import { buildArticleSeo as _, buildHomeSeo as q, buildListPageSeo as z, localizedHref as J, pageUrl as O, stripLocalePrefix as j } from "./seo.js";
11
+ import { buildArticleListItem as G, formatArticleDate as Q, resolveArticleAccessLevel as X, toIsoDate as Y } from "./view-model.js";
12
+ import { createKbI18n as $, mergeTranslations as ee } from "./i18n.js";
13
+ import * as e from "./queries.js";
14
+ import { prepareProps as oe } from "../packages/mdx-schema/dist/prepareProps.js";
15
+ import { componentMetadata as ae, getComponentMetadata as se, getComponentNames as le } from "../packages/mdx-schema/dist/metadata/index.js";
16
+ import { default as ie } from "./translations/cs.json.js";
17
+ import { default as pe } from "./translations/en.json.js";
18
+ export {
19
+ t as ACCESS_LEVEL_ORDER,
20
+ G as buildArticleListItem,
21
+ _ as buildArticleSeo,
22
+ q as buildHomeSeo,
23
+ z as buildListPageSeo,
24
+ R as buildThemeCssVars,
25
+ ae as componentMetadata,
26
+ b as createAuthManager,
27
+ s as createKbClient,
28
+ $ as createKbI18n,
29
+ u as createLocalStorageTokenStorage,
30
+ k as createMarkedInstance,
31
+ v as createMemoryTokenStorage,
32
+ ie as csTranslations,
33
+ w as darkenColor,
34
+ S as decodeJwtUser,
35
+ I as deepMerge,
36
+ M as defaultImageHtml,
37
+ pe as enTranslations,
38
+ n as findNavNode,
39
+ i as flattenNav,
40
+ Q as formatArticleDate,
41
+ h as generateDescription,
42
+ se as getComponentMetadata,
43
+ le as getComponentNames,
44
+ T as hasAccessLevel,
45
+ y as hexToHsl,
46
+ B as hexToRgb,
47
+ K as hslToRgb,
48
+ m as isNavigable,
49
+ U as lightenColor,
50
+ J as localizedHref,
51
+ ee as mergeTranslations,
52
+ p as navBreadcrumbs,
53
+ f as navNextPrev,
54
+ c as navSiblings,
55
+ d as navSubtree,
56
+ x as navWalk,
57
+ O as pageUrl,
58
+ N as parseMarkdownSafe,
59
+ oe as prepareProps,
60
+ e as queries,
61
+ X as resolveArticleAccessLevel,
62
+ E as retryWithBackoff,
63
+ V as rgbTriplet,
64
+ A as stripLeadingH1,
65
+ j as stripLocalePrefix,
66
+ Y as toIsoDate
67
+ };
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Configurable marked instance factory.
3
+ *
4
+ * Creates a Marked instance with pluggable image renderer and an optional
5
+ * HTML sanitizer. The default image renderer outputs plain <img> with lazy
6
+ * loading; consumers can provide their own (IPX, Cloudinary, etc.).
7
+ *
8
+ * Sanitization is opt-in via the `sanitize` callback — the SDK core has
9
+ * zero dependency on DOMPurify. Reference renderers wire `sanitizeHtml`
10
+ * from `@blogmcp/sanitize`. Headless consumers either bring their own
11
+ * sanitizer or omit the option and own the trust contract at their
12
+ * downstream render boundary. See:
13
+ * competitor-monitor/docs/internal/sanitization-trust-contract.md
14
+ */
15
+ import { Marked } from 'marked';
16
+ import type { ImageHtmlRenderer, SanitizeFn } from './client-types';
17
+ /** Default image renderer — plain <img> with lazy loading + safe URL */
18
+ export declare function defaultImageHtml(href: string, alt: string, title?: string | null): string;
19
+ export interface CreateMarkedOptions {
20
+ /** Custom image HTML generator. Defaults to plain <img>. */
21
+ imageRenderer?: ImageHtmlRenderer;
22
+ /**
23
+ * Optional HTML sanitizer applied as the last step of `marked.parse()`.
24
+ * Pass a function (e.g. `sanitizeHtml` from `@blogmcp/sanitize`), or
25
+ * omit to skip sanitization.
26
+ *
27
+ * Reference renderers in this monorepo wire this in via `@blogmcp/sanitize`.
28
+ * Headless consumers may pass their own sanitizer or omit the option
29
+ * and own the trust contract at their downstream renderer.
30
+ */
31
+ sanitize?: SanitizeFn;
32
+ }
33
+ /**
34
+ * Create a configured Marked instance.
35
+ *
36
+ * If `sanitize` is provided, every `marked.parse(source)` result is
37
+ * passed through it before being returned. This always-sanitize path
38
+ * is the safe default — call sites don't need to remember anything.
39
+ *
40
+ * Performance: ISR amortizes sanitization to ~one call per cache window.
41
+ * For deeper optimization on hot paths, use {@link parseMarkdownSafe}
42
+ * which adds a source-pre-scan fast-path that skips DOMPurify when the
43
+ * markdown source contains no raw HTML.
44
+ */
45
+ export declare function createMarkedInstance(opts?: CreateMarkedOptions): Marked;
46
+ /**
47
+ * Parse markdown with an optional fast-path skip on the sanitizer.
48
+ *
49
+ * When `sanitize` is provided, the source is pre-scanned for raw HTML
50
+ * (`<` followed by a letter, comment, or closing tag). If none is found,
51
+ * `marked`'s output is safe by construction (it only emits a known tag
52
+ * whitelist for pure markdown), so DOMPurify is skipped — saving ~5–20ms
53
+ * SSR per call on the typical pure-markdown article.
54
+ *
55
+ * For sources containing raw HTML, full sanitization runs.
56
+ *
57
+ * **Use this instead of `marked.parse(source)` when the source string
58
+ * is available and you want the fast-path.** When wiring `createMarkedInstance`
59
+ * with `sanitize`, calling plain `marked.parse(source)` runs sanitize
60
+ * unconditionally — equally safe, slightly slower per call, but immune
61
+ * to consumer wiring mistakes.
62
+ *
63
+ * Beware: if you wired `createMarkedInstance({sanitize})` AND call this
64
+ * helper, sanitization runs twice (once in postprocess, once here). Pick
65
+ * one path per render surface. The recommended pattern for hot surfaces
66
+ * is: `createMarkedInstance({ imageRenderer })` (no sanitize) + always
67
+ * call `parseMarkdownSafe(source, marked, sanitizeHtml)`.
68
+ */
69
+ export declare function parseMarkdownSafe(source: string, marked: Marked, sanitize?: SanitizeFn): string;
@@ -0,0 +1,47 @@
1
+ import { Marked as p } from "marked";
2
+ function o(e) {
3
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
4
+ }
5
+ function l(e) {
6
+ if (!e) return "";
7
+ const n = e.replace(/[\x00-\x1f\x7f]/g, "").trim();
8
+ if (/^(\/|#|\?|\.\/|\.\.\/|\/\/)/.test(n)) return e;
9
+ const r = n.match(/^([a-z][a-z0-9+.-]*):/i);
10
+ if (!r) return e;
11
+ const t = r[1].toLowerCase();
12
+ return ["http", "https", "mailto", "tel", "ftp", "sms"].includes(t) ? e : "about:blank";
13
+ }
14
+ function f(e, n, r) {
15
+ const t = r ? ` title="${o(r)}"` : "";
16
+ return `<img src="${o(l(e))}" alt="${o(n)}"${t} loading="lazy">`;
17
+ }
18
+ const u = /<[a-zA-Z!/]/;
19
+ function g(e = {}) {
20
+ const { imageRenderer: n = f, sanitize: r } = e;
21
+ return new p({
22
+ renderer: {
23
+ image({ href: t, title: a, text: c }) {
24
+ return t ? n(l(t), c, a) : "";
25
+ },
26
+ link({ href: t, title: a, text: c }) {
27
+ const i = a ? ` title="${o(a)}"` : "", s = l(t);
28
+ return s && /^https?:\/\//.test(s) ? `<a href="${o(s)}"${i} target="_blank" rel="noopener noreferrer">${c}</a>` : `<a href="${o(s)}"${i}>${c}</a>`;
29
+ }
30
+ },
31
+ hooks: {
32
+ postprocess(t) {
33
+ const a = t.replace(/<table>/g, '<div class="overflow-x-auto -mx-4 px-4"><table>').replace(/<\/table>/g, "</table></div>").replace(/<th>/g, '<th scope="col">');
34
+ return r ? r(a) : a;
35
+ }
36
+ }
37
+ });
38
+ }
39
+ function d(e, n, r) {
40
+ const t = n.parse(e);
41
+ return !r || !u.test(e) ? t : r(t);
42
+ }
43
+ export {
44
+ g as createMarkedInstance,
45
+ f as defaultImageHtml,
46
+ d as parseMarkdownSafe
47
+ };
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Navigation tree — the resolved + localized menu returned by the `kbNavigation`
3
+ * GraphQL query, plus pure traversal helpers for consumers (breadcrumbs, siblings,
4
+ * prev/next, subtree).
5
+ *
6
+ * This is the SDK-side mirror of the server's localized node shape. The SDK stays
7
+ * standalone (no @blogmcp/nav-core dependency); the server resolves/merges/
8
+ * localizes, the SDK consumes the flat localized result.
9
+ */
10
+ export type NavNodeType = 'article-ref' | 'group' | 'external-link' | 'generated-section' | 'separator';
11
+ export interface NavBadge {
12
+ text: string;
13
+ variant?: string;
14
+ class?: string;
15
+ }
16
+ export type NavGroupLink = {
17
+ kind: 'article';
18
+ ref: string;
19
+ } | {
20
+ kind: 'generated';
21
+ slug: string;
22
+ };
23
+ /** A resolved, localized navigation node (children pre-sorted by the server). */
24
+ export interface NavNode {
25
+ id: string;
26
+ type: NavNodeType;
27
+ /** Resolved label for the requested locale (may be absent for separators). */
28
+ label?: string;
29
+ order?: number;
30
+ badge?: NavBadge;
31
+ icon?: string;
32
+ hidden?: boolean;
33
+ /** article-ref: the article id; external-link: the URL; generated-section: the slug. */
34
+ ref?: string;
35
+ owned?: boolean;
36
+ href?: string;
37
+ slug?: string;
38
+ /** group: optional clickable heading target. */
39
+ link?: NavGroupLink;
40
+ collapsed?: boolean;
41
+ collapsible?: boolean;
42
+ data?: Record<string, unknown>;
43
+ children: NavNode[];
44
+ }
45
+ /** Depth-first pre-order walk. Return `false` from the visitor to stop early. */
46
+ export declare function navWalk(tree: readonly NavNode[], visitor: (node: NavNode, parent: NavNode | null, depth: number) => void | boolean): void;
47
+ /** Find a node by id. */
48
+ export declare function findNavNode(tree: readonly NavNode[], id: string): NavNode | undefined;
49
+ /** Ancestors of a node, root→parent (excludes the node itself). */
50
+ export declare function navBreadcrumbs(tree: readonly NavNode[], id: string): NavNode[];
51
+ /** Siblings of a node (same parent), excluding itself. */
52
+ export declare function navSiblings(tree: readonly NavNode[], id: string): NavNode[];
53
+ /** The node together with its descendants, or undefined. */
54
+ export declare function navSubtree(tree: readonly NavNode[], id: string): NavNode | undefined;
55
+ /** Default "navigable" predicate: visible article references. */
56
+ export declare function isNavigable(node: NavNode): boolean;
57
+ export interface NavNextPrev {
58
+ prev: NavNode | null;
59
+ next: NavNode | null;
60
+ }
61
+ /** Previous/next navigable node in depth-first order (visible article-refs by default). */
62
+ export declare function navNextPrev(tree: readonly NavNode[], id: string, predicate?: (node: NavNode) => boolean): NavNextPrev;
63
+ /** Flatten to id/parentId/depth rows in display order. */
64
+ export interface FlatNavNode {
65
+ id: string;
66
+ parentId: string | null;
67
+ type: NavNodeType;
68
+ depth: number;
69
+ }
70
+ export declare function flattenNav(tree: readonly NavNode[]): FlatNavNode[];
@@ -0,0 +1,71 @@
1
+ function f(n, r) {
2
+ const t = (e, u, i) => {
3
+ for (const l of e)
4
+ if (r(l, u, i) === !1 || l.children?.length && !t(l.children, l, i + 1)) return !1;
5
+ return !0;
6
+ };
7
+ t(n, null, 0);
8
+ }
9
+ function o(n, r) {
10
+ let t;
11
+ return f(n, (e) => {
12
+ if (e.id === r)
13
+ return t = e, !1;
14
+ }), t;
15
+ }
16
+ function c(n, r) {
17
+ const t = [];
18
+ let e = !1;
19
+ const u = (i) => {
20
+ for (const l of i) {
21
+ if (t.push(l), l.id === r)
22
+ return e = !0, !0;
23
+ if (l.children?.length && u(l.children)) return !0;
24
+ t.pop();
25
+ }
26
+ return !1;
27
+ };
28
+ return u(n), e ? t : [];
29
+ }
30
+ function a(n, r) {
31
+ return c(n, r).slice(0, -1);
32
+ }
33
+ function d(n, r) {
34
+ const t = c(n, r);
35
+ if (t.length === 0) return [];
36
+ const e = t.length >= 2 ? t[t.length - 2] : null;
37
+ return (e ? e.children : n).filter((i) => i.id !== r);
38
+ }
39
+ function h(n, r) {
40
+ return o(n, r);
41
+ }
42
+ function s(n) {
43
+ return n.type === "article-ref" && n.hidden !== !0;
44
+ }
45
+ function p(n, r, t = s) {
46
+ const e = [];
47
+ f(n, (i) => {
48
+ t(i) && e.push(i);
49
+ });
50
+ const u = e.findIndex((i) => i.id === r);
51
+ return u === -1 ? { prev: null, next: null } : {
52
+ prev: u > 0 ? e[u - 1] : null,
53
+ next: u < e.length - 1 ? e[u + 1] : null
54
+ };
55
+ }
56
+ function v(n) {
57
+ const r = [];
58
+ return f(n, (t, e, u) => {
59
+ r.push({ id: t.id, parentId: e?.id ?? null, type: t.type, depth: u });
60
+ }), r;
61
+ }
62
+ export {
63
+ o as findNavNode,
64
+ v as flattenNav,
65
+ s as isNavigable,
66
+ a as navBreadcrumbs,
67
+ p as navNextPrev,
68
+ d as navSiblings,
69
+ h as navSubtree,
70
+ f as navWalk
71
+ };
@@ -0,0 +1,34 @@
1
+ /**
2
+ * GraphQL queries as plain template strings.
3
+ *
4
+ * These are the same queries used by the KB blog, but without the Apollo `gql`
5
+ * tag dependency. The blog's executeGraphQL only uses query.loc.source.body
6
+ * anyway — we skip the parse step entirely.
7
+ */
8
+ export declare const ACCESSIBLE_ARTICLES = "\n query AccessibleArticles($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int) {\n accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset) {\n articles {\n id\n filename\n title\n description\n contentType\n status\n publishedAt\n updatedAt\n tags\n featuredImageUrl\n }\n totalCount\n }\n }\n";
9
+ export declare const ARTICLE_WITH_TRANSLATION = "\n query ArticleWithTranslation($filename: String!, $languageCode: String!) {\n articleWithTranslation(filename: $filename, languageCode: $languageCode) {\n id\n filename\n contentType\n status\n description\n sourceLanguageCode\n createdAt\n updatedAt\n publishedAt\n title\n content\n languageCode\n isSource\n isFallback\n featuredImageUrl\n featuredImageGeo {\n latitude\n longitude\n altitude\n placeName\n }\n contentImagesGeo {\n url\n latitude\n longitude\n altitude\n placeName\n }\n accessRights\n }\n }\n";
10
+ export declare const ARTICLE_ALIAS_TARGET = "\n query ArticleAliasTarget($filename: String!) {\n articleAliasTarget(filename: $filename)\n }\n";
11
+ export declare const SEARCH_KNOWLEDGE_BASE = "\n query SearchKnowledgeBase($query: String!, $tags: [String!], $contentType: String, $limit: Int, $minSimilarity: Float, $searchMode: SearchMode) {\n searchKnowledgeBase(query: $query, tags: $tags, contentType: $contentType, limit: $limit, minSimilarity: $minSimilarity, searchMode: $searchMode) {\n articleId\n filename\n title\n chunkText\n similarity\n }\n }\n";
12
+ export declare const GET_KB_CONTEXT = "\n query GetKBContext($query: String!, $maxChunks: Int) {\n getKBContext(query: $query, maxChunks: $maxChunks) {\n chunks {\n filename\n title\n text\n similarity\n }\n totalChunks\n }\n }\n";
13
+ export declare const KB_NAVIGATION = "\n query KbNavigation($scope: String, $locale: String) {\n kbNavigation(scope: $scope, locale: $locale)\n }\n";
14
+ export declare const ACCESSIBLE_TAGS = "\n query AccessibleTags {\n accessibleKbTags {\n tags {\n id\n slug\n name\n description\n color\n }\n totalCount\n }\n }\n";
15
+ export declare const LOCALIZED_TAGS = "\n query LocalizedTags($languageCode: String!) {\n localizedTags(languageCode: $languageCode) {\n id\n name\n slug\n description\n color\n accessLevel\n languageCode\n isFallback\n }\n }\n";
16
+ export declare const KB_LANGUAGES = "\n query KBLanguages {\n kbLanguages {\n id\n code\n name\n nativeName\n isSource\n isEnabled\n sortOrder\n }\n }\n";
17
+ export declare const ARTICLE_TRANSLATIONS = "\n query ArticleTranslations($sourceFilename: String!) {\n listArticleTranslations(sourceFilename: $sourceFilename) {\n id\n languageCode\n title\n syncStatus\n reviewed\n updatedAt\n }\n }\n";
18
+ export declare const GET_TRANSLATION = "\n query GetTranslation($sourceFilename: String!, $languageCode: String!) {\n getTranslation(sourceFilename: $sourceFilename, languageCode: $languageCode) {\n id\n articleId\n languageCode\n title\n content\n syncStatus\n reviewed\n translatedBy\n updatedAt\n }\n }\n";
19
+ export declare const ARTICLE_COMMENTS = "\n query ArticleComments($articleId: ID!, $languageCode: String!) {\n articleComments(articleId: $articleId, languageCode: $languageCode) {\n comments {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n replies {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n replies {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n replies {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n }\n }\n }\n }\n totalCount\n }\n }\n";
20
+ export declare const GET_COMMENT = "\n query GetComment($commentId: ID!, $languageCode: String!) {\n comment(commentId: $commentId, languageCode: $languageCode) {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n replies {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n }\n }\n }\n";
21
+ export declare const CREATE_COMMENT = "\n mutation CreateComment($articleId: ID!, $content: String!, $sourceLanguageCode: String!, $parentCommentId: ID) {\n createComment(articleId: $articleId, content: $content, sourceLanguageCode: $sourceLanguageCode, parentCommentId: $parentCommentId) {\n success\n error\n comment {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n }\n }\n }\n";
22
+ export declare const UPDATE_COMMENT = "\n mutation UpdateComment($commentId: ID!, $content: String!) {\n updateComment(commentId: $commentId, content: $content) {\n success\n error\n comment {\n \n id\n articleId\n userId\n userName\n parentCommentId\n displayContent\n displayLanguageCode\n sourceLanguageCode\n sourceContent\n isPendingTranslation\n isTranslated\n isEdited\n createdAt\n\n }\n }\n }\n";
23
+ export declare const DELETE_COMMENT = "\n mutation DeleteComment($commentId: ID!) {\n deleteComment(commentId: $commentId) {\n success\n error\n }\n }\n";
24
+ export declare const COMMENT_UPDATES_SUBSCRIPTION = "\n subscription CommentUpdates($articleId: ID!) {\n commentUpdates(articleId: $articleId) {\n type\n commentId\n }\n }\n";
25
+ export declare const LOGIN = "\n mutation Login($email: String!, $password: String!) {\n login(email: $email, password: $password) {\n success\n token\n user {\n id\n email\n name\n accessLevel\n }\n error\n }\n }\n";
26
+ export declare const REGISTER = "\n mutation Register($email: String!, $password: String!, $name: String) {\n register(email: $email, password: $password, name: $name) {\n success\n message\n error\n }\n }\n";
27
+ export declare const VERIFY_EMAIL = "\n mutation VerifyEmail($token: String!) {\n verifyEmail(token: $token) {\n success\n error\n }\n }\n";
28
+ export declare const FORGOT_PASSWORD = "\n mutation ForgotPassword($email: String!) {\n forgotPassword(email: $email) {\n success\n message\n error\n }\n }\n";
29
+ export declare const RESET_PASSWORD = "\n mutation ResetPassword($token: String!, $password: String!) {\n resetPassword(token: $token, password: $password) {\n success\n error\n }\n }\n";
30
+ export declare const RESEND_VERIFICATION = "\n mutation ResendVerification($email: String!) {\n resendVerification(email: $email) {\n success\n message\n error\n }\n }\n";
31
+ export declare const CHANGE_PASSWORD = "\n mutation ChangePassword($currentPassword: String!, $newPassword: String!) {\n changePassword(currentPassword: $currentPassword, newPassword: $newPassword) {\n success\n error\n }\n }\n";
32
+ export declare const UPDATE_MY_PROFILE = "\n mutation UpdateMyProfile($name: String, $email: String) {\n updateMyProfile(name: $name, email: $email) {\n success\n emailChanged\n user {\n id\n email\n name\n accessLevel\n }\n error\n }\n }\n";
33
+ export declare const MY_REPORT_SETTINGS = "\n query MyReportSettings {\n myReportSettings {\n autoReportErrors\n autoReportContent\n autoReportPerformance\n includeContextData\n rateLimitPerHour\n emailNotifications\n feedbackNotifications\n }\n }\n";
34
+ export declare const UPDATE_MY_REPORT_SETTINGS = "\n mutation UpdateMyReportSettings(\n $autoReportErrors: String\n $autoReportContent: String\n $autoReportPerformance: String\n $includeContextData: Boolean\n $rateLimitPerHour: Int\n $emailNotifications: String\n $feedbackNotifications: String\n ) {\n updateMyReportSettings(\n autoReportErrors: $autoReportErrors\n autoReportContent: $autoReportContent\n autoReportPerformance: $autoReportPerformance\n includeContextData: $includeContextData\n rateLimitPerHour: $rateLimitPerHour\n emailNotifications: $emailNotifications\n feedbackNotifications: $feedbackNotifications\n ) {\n autoReportErrors\n autoReportContent\n autoReportPerformance\n includeContextData\n rateLimitPerHour\n emailNotifications\n feedbackNotifications\n }\n }\n";