@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.
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/constants.js +4 -0
- package/dist/_virtual/index.js +2 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +2 -0
- package/dist/_virtual/re.js +4 -0
- package/dist/core/article-seo.d.ts +27 -0
- package/dist/core/article-seo.js +25 -0
- package/dist/core/auth.d.ts +34 -0
- package/dist/core/auth.js +89 -0
- package/dist/core/blog-config.d.ts +5 -0
- package/dist/core/blog-config.js +14 -0
- package/dist/core/client-types.d.ts +51 -0
- package/dist/core/client.d.ts +159 -0
- package/dist/core/client.js +82 -0
- package/dist/core/i18n.d.ts +29 -0
- package/dist/core/i18n.js +34 -0
- package/dist/core/index.d.ts +26 -0
- package/dist/core/index.js +67 -0
- package/dist/core/markdown.d.ts +69 -0
- package/dist/core/markdown.js +47 -0
- package/dist/core/navigation.d.ts +70 -0
- package/dist/core/navigation.js +71 -0
- package/dist/core/queries.d.ts +34 -0
- package/dist/core/queries.js +363 -0
- package/dist/core/retry.d.ts +9 -0
- package/dist/core/retry.js +14 -0
- package/dist/core/seo.d.ts +142 -0
- package/dist/core/seo.js +166 -0
- package/dist/core/theme.d.ts +41 -0
- package/dist/core/theme.js +60 -0
- package/dist/core/translations/cs.json.js +27 -0
- package/dist/core/translations/en.json.js +27 -0
- package/dist/core/types.d.ts +184 -0
- package/dist/core/types.js +9 -0
- package/dist/core/view-model.d.ts +53 -0
- package/dist/core/view-model.js +47 -0
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +8 -0
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +60 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +662 -0
- package/dist/node_modules/semver/classes/comparator.js +56 -0
- package/dist/node_modules/semver/classes/range.js +148 -0
- package/dist/node_modules/semver/classes/semver.js +169 -0
- package/dist/node_modules/semver/functions/clean.js +14 -0
- package/dist/node_modules/semver/functions/cmp.js +39 -0
- package/dist/node_modules/semver/functions/coerce.js +33 -0
- package/dist/node_modules/semver/functions/compare-build.js +14 -0
- package/dist/node_modules/semver/functions/compare-loose.js +11 -0
- package/dist/node_modules/semver/functions/compare.js +11 -0
- package/dist/node_modules/semver/functions/diff.js +24 -0
- package/dist/node_modules/semver/functions/eq.js +11 -0
- package/dist/node_modules/semver/functions/gt.js +11 -0
- package/dist/node_modules/semver/functions/gte.js +11 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +11 -0
- package/dist/node_modules/semver/functions/lte.js +11 -0
- package/dist/node_modules/semver/functions/major.js +11 -0
- package/dist/node_modules/semver/functions/minor.js +11 -0
- package/dist/node_modules/semver/functions/neq.js +11 -0
- package/dist/node_modules/semver/functions/parse.js +21 -0
- package/dist/node_modules/semver/functions/patch.js +11 -0
- package/dist/node_modules/semver/functions/prerelease.js +14 -0
- package/dist/node_modules/semver/functions/rcompare.js +11 -0
- package/dist/node_modules/semver/functions/rsort.js +11 -0
- package/dist/node_modules/semver/functions/satisfies.js +18 -0
- package/dist/node_modules/semver/functions/sort.js +11 -0
- package/dist/node_modules/semver/functions/valid.js +14 -0
- package/dist/node_modules/semver/index.js +97 -0
- package/dist/node_modules/semver/internal/constants.js +28 -0
- package/dist/node_modules/semver/internal/debug.js +8 -0
- package/dist/node_modules/semver/internal/identifiers.js +18 -0
- package/dist/node_modules/semver/internal/lrucache.js +32 -0
- package/dist/node_modules/semver/internal/parse-options.js +10 -0
- package/dist/node_modules/semver/internal/re.js +32 -0
- package/dist/node_modules/semver/ranges/gtr.js +11 -0
- package/dist/node_modules/semver/ranges/intersects.js +11 -0
- package/dist/node_modules/semver/ranges/ltr.js +11 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +22 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +22 -0
- package/dist/node_modules/semver/ranges/min-version.js +42 -0
- package/dist/node_modules/semver/ranges/outside.js +44 -0
- package/dist/node_modules/semver/ranges/simplify.js +24 -0
- package/dist/node_modules/semver/ranges/subset.js +94 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +11 -0
- package/dist/node_modules/semver/ranges/valid.js +17 -0
- package/dist/nuxt/composables/useAsyncKb.d.ts +32 -0
- package/dist/nuxt/composables/useAsyncKb.js +34 -0
- package/dist/nuxt/index.d.ts +1 -0
- package/dist/nuxt/index.js +6 -0
- package/dist/packages/mdx-render-vue/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/packages/mdx-render-vue/dist/_virtual/constants.js +4 -0
- package/dist/packages/mdx-render-vue/dist/_virtual/index.js +5 -0
- package/dist/packages/mdx-render-vue/dist/_virtual/index2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/composables/useAudioPlayer.js +40 -0
- package/dist/packages/mdx-render-vue/dist/composables/useCallout.js +66 -0
- package/dist/packages/mdx-render-vue/dist/composables/useCodeBlock.js +62 -0
- package/dist/packages/mdx-render-vue/dist/composables/useGallery.js +68 -0
- package/dist/packages/mdx-render-vue/dist/composables/useMedia.js +9 -0
- package/dist/packages/mdx-render-vue/dist/composables/useYouTube.js +24 -0
- package/dist/packages/mdx-render-vue/dist/edit/AlertEdit.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/AlertEdit.vue2.js +16 -0
- package/dist/packages/mdx-render-vue/dist/edit/AudioPlayerEdit.vue.js +102 -0
- package/dist/packages/mdx-render-vue/dist/edit/AudioPlayerEdit.vue2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/BadgeEdit.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/BadgeEdit.vue2.js +11 -0
- package/dist/packages/mdx-render-vue/dist/edit/ButtonEdit.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/ButtonEdit.vue2.js +11 -0
- package/dist/packages/mdx-render-vue/dist/edit/CalloutEdit.vue.js +78 -0
- package/dist/packages/mdx-render-vue/dist/edit/CalloutEdit.vue2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/CardEdit.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/CardEdit.vue2.js +16 -0
- package/dist/packages/mdx-render-vue/dist/edit/CodeBlockEdit.vue.js +6 -0
- package/dist/packages/mdx-render-vue/dist/edit/CodeBlockEdit.vue2.js +74 -0
- package/dist/packages/mdx-render-vue/dist/edit/GalleryEdit.vue.js +56 -0
- package/dist/packages/mdx-render-vue/dist/edit/GalleryEdit.vue2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/IconEdit.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/IconEdit.vue2.js +11 -0
- package/dist/packages/mdx-render-vue/dist/edit/TooltipEdit.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/edit/TooltipEdit.vue2.js +20 -0
- package/dist/packages/mdx-render-vue/dist/edit/YouTubeEdit.vue.js +34 -0
- package/dist/packages/mdx-render-vue/dist/edit/YouTubeEdit.vue2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/factory.js +29 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/presence/use-presence-context.js +6 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/presence/use-presence.js +32 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow-tip.js +5 -0
- 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
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow.js +5 -0
- 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
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-content.js +5 -0
- 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
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-context.js +5 -0
- 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
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-positioner.js +5 -0
- 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
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root-provider.js +5 -0
- 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
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root.js +5 -0
- 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
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-trigger.js +5 -0
- 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
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip.js +22 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/use-tooltip-context.js +6 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/use-tooltip.js +29 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/providers/environment/use-environment-context.js +12 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/providers/locale/use-locale-context.js +11 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/clean-props.js +8 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/create-context.js +12 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/dynamic.js +25 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/unref-element.js +8 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/use-forward-expose.js +36 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/use-render-strategy.js +5 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@braintree/sanitize-url/dist/constants.js +8 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@braintree/sanitize-url/dist/index.js +60 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@iconify/vue/dist/iconify.js +1192 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/anatomy/dist/create-anatomy.js +26 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/create-machine.js +21 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/merge-props.js +45 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/scope.js +16 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/state.js +136 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/types.js +5 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/computed-style.js +8 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/event.js +31 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/node.js +49 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/overflow.js +19 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/platform.js +16 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/query.js +6 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/raf.js +41 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/set.js +14 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/shared.js +7 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/focus-visible/dist/index.js +90 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-anchor.js +34 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-placement.js +187 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-styles.js +47 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/middleware.js +56 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/placement.js +7 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/presence/dist/presence.connect.js +16 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/presence/dist/presence.machine.js +147 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js +6 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.connect.js +119 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.dom.js +15 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.machine.js +375 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.store.js +9 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/types/dist/prop-types.js +10 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/array.js +6 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/equal.js +27 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/functions.js +10 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/guard.js +15 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/object.js +13 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/store.js +25 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/warning.js +25 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/bindable.js +37 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/machine.js +205 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/normalize-props.js +30 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/refs.js +14 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/track.js +19 -0
- package/dist/packages/mdx-render-vue/dist/node_modules/dompurify/dist/purify.es.js +659 -0
- package/dist/packages/mdx-render-vue/dist/registry.js +154 -0
- package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue2.js +37 -0
- package/dist/packages/mdx-render-vue/dist/render/audioplayer/AudioPlayerDefault.vue.js +102 -0
- package/dist/packages/mdx-render-vue/dist/render/audioplayer/AudioPlayerDefault.vue2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue2.js +25 -0
- package/dist/packages/mdx-render-vue/dist/render/button/Button.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/button/Button.vue2.js +37 -0
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue.js +79 -0
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue.js +22 -0
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/card/Card.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/card/Card.vue2.js +24 -0
- package/dist/packages/mdx-render-vue/dist/render/codeblock/CodeBlockDefault.vue.js +6 -0
- package/dist/packages/mdx-render-vue/dist/render/codeblock/CodeBlockDefault.vue2.js +77 -0
- package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryGrid.vue.js +103 -0
- package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryGrid.vue2.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue.js +6 -0
- package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue2.js +142 -0
- package/dist/packages/mdx-render-vue/dist/render/icon/Icon.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/icon/Icon.vue2.js +23 -0
- package/dist/packages/mdx-render-vue/dist/render/tooltip/Tooltip.vue.js +4 -0
- package/dist/packages/mdx-render-vue/dist/render/tooltip/Tooltip.vue2.js +54 -0
- package/dist/packages/mdx-render-vue/dist/render/youtube/YouTubeDefault.vue.js +69 -0
- package/dist/packages/mdx-render-vue/dist/render/youtube/YouTubeDefault.vue2.js +4 -0
- package/dist/packages/mdx-schema/dist/composables/useMdxParsing.js +139 -0
- package/dist/packages/mdx-schema/dist/metadata/index.js +415 -0
- package/dist/packages/mdx-schema/dist/prepareProps.js +46 -0
- package/dist/packages/mdx-schema/dist/styles/index.js +119 -0
- package/dist/packages/mdx-schema/dist/types/index.js +26 -0
- package/dist/packages/sanitize/dist/html.js +41 -0
- package/dist/react/KbMdxContent.d.ts +35 -0
- package/dist/react/KbMdxContent.js +102 -0
- package/dist/react/context.d.ts +11 -0
- package/dist/react/context.js +5 -0
- package/dist/react/hooks/useImageRenderer.d.ts +6 -0
- package/dist/react/hooks/useImageRenderer.js +9 -0
- package/dist/react/hooks/useKbClient.d.ts +3 -0
- package/dist/react/hooks/useKbClient.js +7 -0
- package/dist/react/hooks/useKbContext.d.ts +3 -0
- package/dist/react/hooks/useKbContext.js +11 -0
- package/dist/react/hooks/useKbI18n.d.ts +7 -0
- package/dist/react/hooks/useKbI18n.js +8 -0
- package/dist/react/hooks/useKbLanguage.d.ts +21 -0
- package/dist/react/hooks/useKbLanguage.js +63 -0
- package/dist/react/hooks/useKbSearch.d.ts +20 -0
- package/dist/react/hooks/useKbSearch.js +22 -0
- package/dist/react/hooks/useMdxContent.d.ts +18 -0
- package/dist/react/hooks/useMdxContent.js +11 -0
- package/dist/react/index.d.ts +21 -0
- package/dist/react/index.js +20 -0
- package/dist/react/provider.d.ts +25 -0
- package/dist/react/provider.js +29 -0
- package/dist/react/server/index.d.ts +38 -0
- package/dist/react/server/index.js +26 -0
- package/dist/sdk.css +1 -0
- package/dist/vue/components/KbAccessGate.vue.d.ts +36 -0
- package/dist/vue/components/KbAccessGate.vue.js +74 -0
- package/dist/vue/components/KbAccessGate.vue2.js +4 -0
- package/dist/vue/components/KbArticleCard.vue.d.ts +34 -0
- package/dist/vue/components/KbArticleCard.vue.js +87 -0
- package/dist/vue/components/KbArticleCard.vue2.js +4 -0
- package/dist/vue/components/KbMdxContent.vue.d.ts +5 -0
- package/dist/vue/components/KbMdxContent.vue.js +7 -0
- package/dist/vue/components/KbMdxContent.vue2.js +82 -0
- package/dist/vue/composables/useArticles.d.ts +30 -0
- package/dist/vue/composables/useArticles.js +36 -0
- package/dist/vue/composables/useImageRenderer.d.ts +6 -0
- package/dist/vue/composables/useImageRenderer.js +9 -0
- package/dist/vue/composables/useKbAuth.d.ts +27 -0
- package/dist/vue/composables/useKbAuth.js +83 -0
- package/dist/vue/composables/useKbClient.d.ts +6 -0
- package/dist/vue/composables/useKbClient.js +13 -0
- package/dist/vue/composables/useKbComments.d.ts +37 -0
- package/dist/vue/composables/useKbComments.js +160 -0
- package/dist/vue/composables/useKbI18n.d.ts +6 -0
- package/dist/vue/composables/useKbI18n.js +8 -0
- package/dist/vue/composables/useKbLanguage.d.ts +22 -0
- package/dist/vue/composables/useKbLanguage.js +63 -0
- package/dist/vue/composables/useNavigation.d.ts +18 -0
- package/dist/vue/composables/useNavigation.js +20 -0
- package/dist/vue/composables/useSearch.d.ts +21 -0
- package/dist/vue/composables/useSearch.js +20 -0
- package/dist/vue/composables/useTags.d.ts +17 -0
- package/dist/vue/composables/useTags.js +36 -0
- package/dist/vue/index.d.ts +22 -0
- package/dist/vue/index.js +36 -0
- package/dist/vue/plugin.d.ts +30 -0
- package/dist/vue/plugin.js +17 -0
- package/package.json +97 -0
- package/src/core/article-seo.ts +101 -0
- package/src/core/auth.ts +138 -0
- package/src/core/blog-config.ts +30 -0
- package/src/core/client-types.ts +58 -0
- package/src/core/client.ts +287 -0
- package/src/core/i18n.ts +84 -0
- package/src/core/index.ts +147 -0
- package/src/core/markdown.ts +178 -0
- package/src/core/navigation.ts +152 -0
- package/src/core/queries.ts +414 -0
- package/src/core/retry.ts +19 -0
- package/src/core/seo.ts +374 -0
- package/src/core/theme.ts +128 -0
- package/src/core/translations/cs.json +225 -0
- package/src/core/translations/en.json +225 -0
- package/src/core/types.ts +231 -0
- package/src/core/view-model.ts +98 -0
- package/src/nuxt/composables/useAsyncKb.ts +119 -0
- package/src/nuxt/index.ts +6 -0
- package/src/react/KbMdxContent.tsx +215 -0
- package/src/react/context.ts +25 -0
- package/src/react/hooks/useImageRenderer.ts +15 -0
- package/src/react/hooks/useKbClient.ts +9 -0
- package/src/react/hooks/useKbContext.ts +13 -0
- package/src/react/hooks/useKbI18n.ts +15 -0
- package/src/react/hooks/useKbLanguage.ts +105 -0
- package/src/react/hooks/useKbSearch.ts +50 -0
- package/src/react/hooks/useMdxContent.tsx +33 -0
- package/src/react/index.ts +31 -0
- package/src/react/provider.tsx +70 -0
- package/src/react/server/index.ts +70 -0
- package/src/vue/components/KbAccessGate.vue +86 -0
- package/src/vue/components/KbArticleCard.vue +102 -0
- package/src/vue/components/KbMdxContent.vue +211 -0
- package/src/vue/composables/useArticles.ts +78 -0
- package/src/vue/composables/useImageRenderer.ts +12 -0
- package/src/vue/composables/useKbAuth.ts +131 -0
- package/src/vue/composables/useKbClient.ts +17 -0
- package/src/vue/composables/useKbComments.ts +281 -0
- package/src/vue/composables/useKbI18n.ts +11 -0
- package/src/vue/composables/useKbLanguage.ts +103 -0
- package/src/vue/composables/useNavigation.ts +38 -0
- package/src/vue/composables/useSearch.ts +52 -0
- package/src/vue/composables/useTags.ts +64 -0
- package/src/vue/index.ts +27 -0
- package/src/vue/plugin.ts +73 -0
|
@@ -0,0 +1,414 @@
|
|
|
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
|
+
|
|
9
|
+
// ==================== Articles ====================
|
|
10
|
+
|
|
11
|
+
export const ACCESSIBLE_ARTICLES = `
|
|
12
|
+
query AccessibleArticles($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int) {
|
|
13
|
+
accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset) {
|
|
14
|
+
articles {
|
|
15
|
+
id
|
|
16
|
+
filename
|
|
17
|
+
title
|
|
18
|
+
description
|
|
19
|
+
contentType
|
|
20
|
+
status
|
|
21
|
+
publishedAt
|
|
22
|
+
updatedAt
|
|
23
|
+
tags
|
|
24
|
+
featuredImageUrl
|
|
25
|
+
}
|
|
26
|
+
totalCount
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`
|
|
30
|
+
|
|
31
|
+
export const ARTICLE_WITH_TRANSLATION = `
|
|
32
|
+
query ArticleWithTranslation($filename: String!, $languageCode: String!) {
|
|
33
|
+
articleWithTranslation(filename: $filename, languageCode: $languageCode) {
|
|
34
|
+
id
|
|
35
|
+
filename
|
|
36
|
+
contentType
|
|
37
|
+
status
|
|
38
|
+
description
|
|
39
|
+
sourceLanguageCode
|
|
40
|
+
createdAt
|
|
41
|
+
updatedAt
|
|
42
|
+
publishedAt
|
|
43
|
+
title
|
|
44
|
+
content
|
|
45
|
+
languageCode
|
|
46
|
+
isSource
|
|
47
|
+
isFallback
|
|
48
|
+
featuredImageUrl
|
|
49
|
+
featuredImageGeo {
|
|
50
|
+
latitude
|
|
51
|
+
longitude
|
|
52
|
+
altitude
|
|
53
|
+
placeName
|
|
54
|
+
}
|
|
55
|
+
contentImagesGeo {
|
|
56
|
+
url
|
|
57
|
+
latitude
|
|
58
|
+
longitude
|
|
59
|
+
altitude
|
|
60
|
+
placeName
|
|
61
|
+
}
|
|
62
|
+
accessRights
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`
|
|
66
|
+
|
|
67
|
+
export const ARTICLE_ALIAS_TARGET = `
|
|
68
|
+
query ArticleAliasTarget($filename: String!) {
|
|
69
|
+
articleAliasTarget(filename: $filename)
|
|
70
|
+
}
|
|
71
|
+
`
|
|
72
|
+
|
|
73
|
+
// ==================== Search ====================
|
|
74
|
+
|
|
75
|
+
export const SEARCH_KNOWLEDGE_BASE = `
|
|
76
|
+
query SearchKnowledgeBase($query: String!, $tags: [String!], $contentType: String, $limit: Int, $minSimilarity: Float, $searchMode: SearchMode) {
|
|
77
|
+
searchKnowledgeBase(query: $query, tags: $tags, contentType: $contentType, limit: $limit, minSimilarity: $minSimilarity, searchMode: $searchMode) {
|
|
78
|
+
articleId
|
|
79
|
+
filename
|
|
80
|
+
title
|
|
81
|
+
chunkText
|
|
82
|
+
similarity
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`
|
|
86
|
+
|
|
87
|
+
export const GET_KB_CONTEXT = `
|
|
88
|
+
query GetKBContext($query: String!, $maxChunks: Int) {
|
|
89
|
+
getKBContext(query: $query, maxChunks: $maxChunks) {
|
|
90
|
+
chunks {
|
|
91
|
+
filename
|
|
92
|
+
title
|
|
93
|
+
text
|
|
94
|
+
similarity
|
|
95
|
+
}
|
|
96
|
+
totalChunks
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`
|
|
100
|
+
|
|
101
|
+
// ==================== Navigation ====================
|
|
102
|
+
|
|
103
|
+
export const KB_NAVIGATION = `
|
|
104
|
+
query KbNavigation($scope: String, $locale: String) {
|
|
105
|
+
kbNavigation(scope: $scope, locale: $locale)
|
|
106
|
+
}
|
|
107
|
+
`
|
|
108
|
+
|
|
109
|
+
// ==================== Tags ====================
|
|
110
|
+
|
|
111
|
+
export const ACCESSIBLE_TAGS = `
|
|
112
|
+
query AccessibleTags {
|
|
113
|
+
accessibleKbTags {
|
|
114
|
+
tags {
|
|
115
|
+
id
|
|
116
|
+
slug
|
|
117
|
+
name
|
|
118
|
+
description
|
|
119
|
+
color
|
|
120
|
+
}
|
|
121
|
+
totalCount
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
`
|
|
125
|
+
|
|
126
|
+
export const LOCALIZED_TAGS = `
|
|
127
|
+
query LocalizedTags($languageCode: String!) {
|
|
128
|
+
localizedTags(languageCode: $languageCode) {
|
|
129
|
+
id
|
|
130
|
+
name
|
|
131
|
+
slug
|
|
132
|
+
description
|
|
133
|
+
color
|
|
134
|
+
accessLevel
|
|
135
|
+
languageCode
|
|
136
|
+
isFallback
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
`
|
|
140
|
+
|
|
141
|
+
// ==================== Languages ====================
|
|
142
|
+
|
|
143
|
+
export const KB_LANGUAGES = `
|
|
144
|
+
query KBLanguages {
|
|
145
|
+
kbLanguages {
|
|
146
|
+
id
|
|
147
|
+
code
|
|
148
|
+
name
|
|
149
|
+
nativeName
|
|
150
|
+
isSource
|
|
151
|
+
isEnabled
|
|
152
|
+
sortOrder
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
`
|
|
156
|
+
|
|
157
|
+
// ==================== Translations ====================
|
|
158
|
+
|
|
159
|
+
export const ARTICLE_TRANSLATIONS = `
|
|
160
|
+
query ArticleTranslations($sourceFilename: String!) {
|
|
161
|
+
listArticleTranslations(sourceFilename: $sourceFilename) {
|
|
162
|
+
id
|
|
163
|
+
languageCode
|
|
164
|
+
title
|
|
165
|
+
syncStatus
|
|
166
|
+
reviewed
|
|
167
|
+
updatedAt
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
`
|
|
171
|
+
|
|
172
|
+
export const GET_TRANSLATION = `
|
|
173
|
+
query GetTranslation($sourceFilename: String!, $languageCode: String!) {
|
|
174
|
+
getTranslation(sourceFilename: $sourceFilename, languageCode: $languageCode) {
|
|
175
|
+
id
|
|
176
|
+
articleId
|
|
177
|
+
languageCode
|
|
178
|
+
title
|
|
179
|
+
content
|
|
180
|
+
syncStatus
|
|
181
|
+
reviewed
|
|
182
|
+
translatedBy
|
|
183
|
+
updatedAt
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
`
|
|
187
|
+
|
|
188
|
+
// ==================== Comments ====================
|
|
189
|
+
|
|
190
|
+
const COMMENT_FIELDS = `
|
|
191
|
+
id
|
|
192
|
+
articleId
|
|
193
|
+
userId
|
|
194
|
+
userName
|
|
195
|
+
parentCommentId
|
|
196
|
+
displayContent
|
|
197
|
+
displayLanguageCode
|
|
198
|
+
sourceLanguageCode
|
|
199
|
+
sourceContent
|
|
200
|
+
isPendingTranslation
|
|
201
|
+
isTranslated
|
|
202
|
+
isEdited
|
|
203
|
+
createdAt
|
|
204
|
+
`
|
|
205
|
+
|
|
206
|
+
export const ARTICLE_COMMENTS = `
|
|
207
|
+
query ArticleComments($articleId: ID!, $languageCode: String!) {
|
|
208
|
+
articleComments(articleId: $articleId, languageCode: $languageCode) {
|
|
209
|
+
comments {
|
|
210
|
+
${COMMENT_FIELDS}
|
|
211
|
+
replies {
|
|
212
|
+
${COMMENT_FIELDS}
|
|
213
|
+
replies {
|
|
214
|
+
${COMMENT_FIELDS}
|
|
215
|
+
replies {
|
|
216
|
+
${COMMENT_FIELDS}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
totalCount
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
`
|
|
225
|
+
|
|
226
|
+
export const GET_COMMENT = `
|
|
227
|
+
query GetComment($commentId: ID!, $languageCode: String!) {
|
|
228
|
+
comment(commentId: $commentId, languageCode: $languageCode) {
|
|
229
|
+
${COMMENT_FIELDS}
|
|
230
|
+
replies {
|
|
231
|
+
${COMMENT_FIELDS}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
`
|
|
236
|
+
|
|
237
|
+
export const CREATE_COMMENT = `
|
|
238
|
+
mutation CreateComment($articleId: ID!, $content: String!, $sourceLanguageCode: String!, $parentCommentId: ID) {
|
|
239
|
+
createComment(articleId: $articleId, content: $content, sourceLanguageCode: $sourceLanguageCode, parentCommentId: $parentCommentId) {
|
|
240
|
+
success
|
|
241
|
+
error
|
|
242
|
+
comment {
|
|
243
|
+
${COMMENT_FIELDS}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
`
|
|
248
|
+
|
|
249
|
+
export const UPDATE_COMMENT = `
|
|
250
|
+
mutation UpdateComment($commentId: ID!, $content: String!) {
|
|
251
|
+
updateComment(commentId: $commentId, content: $content) {
|
|
252
|
+
success
|
|
253
|
+
error
|
|
254
|
+
comment {
|
|
255
|
+
${COMMENT_FIELDS}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
`
|
|
260
|
+
|
|
261
|
+
export const DELETE_COMMENT = `
|
|
262
|
+
mutation DeleteComment($commentId: ID!) {
|
|
263
|
+
deleteComment(commentId: $commentId) {
|
|
264
|
+
success
|
|
265
|
+
error
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
`
|
|
269
|
+
|
|
270
|
+
export const COMMENT_UPDATES_SUBSCRIPTION = `
|
|
271
|
+
subscription CommentUpdates($articleId: ID!) {
|
|
272
|
+
commentUpdates(articleId: $articleId) {
|
|
273
|
+
type
|
|
274
|
+
commentId
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
`
|
|
278
|
+
|
|
279
|
+
// ==================== Auth Mutations ====================
|
|
280
|
+
|
|
281
|
+
export const LOGIN = `
|
|
282
|
+
mutation Login($email: String!, $password: String!) {
|
|
283
|
+
login(email: $email, password: $password) {
|
|
284
|
+
success
|
|
285
|
+
token
|
|
286
|
+
user {
|
|
287
|
+
id
|
|
288
|
+
email
|
|
289
|
+
name
|
|
290
|
+
accessLevel
|
|
291
|
+
}
|
|
292
|
+
error
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
`
|
|
296
|
+
|
|
297
|
+
export const REGISTER = `
|
|
298
|
+
mutation Register($email: String!, $password: String!, $name: String) {
|
|
299
|
+
register(email: $email, password: $password, name: $name) {
|
|
300
|
+
success
|
|
301
|
+
message
|
|
302
|
+
error
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
`
|
|
306
|
+
|
|
307
|
+
export const VERIFY_EMAIL = `
|
|
308
|
+
mutation VerifyEmail($token: String!) {
|
|
309
|
+
verifyEmail(token: $token) {
|
|
310
|
+
success
|
|
311
|
+
error
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
`
|
|
315
|
+
|
|
316
|
+
export const FORGOT_PASSWORD = `
|
|
317
|
+
mutation ForgotPassword($email: String!) {
|
|
318
|
+
forgotPassword(email: $email) {
|
|
319
|
+
success
|
|
320
|
+
message
|
|
321
|
+
error
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
`
|
|
325
|
+
|
|
326
|
+
export const RESET_PASSWORD = `
|
|
327
|
+
mutation ResetPassword($token: String!, $password: String!) {
|
|
328
|
+
resetPassword(token: $token, password: $password) {
|
|
329
|
+
success
|
|
330
|
+
error
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
`
|
|
334
|
+
|
|
335
|
+
export const RESEND_VERIFICATION = `
|
|
336
|
+
mutation ResendVerification($email: String!) {
|
|
337
|
+
resendVerification(email: $email) {
|
|
338
|
+
success
|
|
339
|
+
message
|
|
340
|
+
error
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
`
|
|
344
|
+
|
|
345
|
+
export const CHANGE_PASSWORD = `
|
|
346
|
+
mutation ChangePassword($currentPassword: String!, $newPassword: String!) {
|
|
347
|
+
changePassword(currentPassword: $currentPassword, newPassword: $newPassword) {
|
|
348
|
+
success
|
|
349
|
+
error
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
`
|
|
353
|
+
|
|
354
|
+
export const UPDATE_MY_PROFILE = `
|
|
355
|
+
mutation UpdateMyProfile($name: String, $email: String) {
|
|
356
|
+
updateMyProfile(name: $name, email: $email) {
|
|
357
|
+
success
|
|
358
|
+
emailChanged
|
|
359
|
+
user {
|
|
360
|
+
id
|
|
361
|
+
email
|
|
362
|
+
name
|
|
363
|
+
accessLevel
|
|
364
|
+
}
|
|
365
|
+
error
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
`
|
|
369
|
+
|
|
370
|
+
// ==================== Report Settings ====================
|
|
371
|
+
|
|
372
|
+
export const MY_REPORT_SETTINGS = `
|
|
373
|
+
query MyReportSettings {
|
|
374
|
+
myReportSettings {
|
|
375
|
+
autoReportErrors
|
|
376
|
+
autoReportContent
|
|
377
|
+
autoReportPerformance
|
|
378
|
+
includeContextData
|
|
379
|
+
rateLimitPerHour
|
|
380
|
+
emailNotifications
|
|
381
|
+
feedbackNotifications
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
`
|
|
385
|
+
|
|
386
|
+
export const UPDATE_MY_REPORT_SETTINGS = `
|
|
387
|
+
mutation UpdateMyReportSettings(
|
|
388
|
+
$autoReportErrors: String
|
|
389
|
+
$autoReportContent: String
|
|
390
|
+
$autoReportPerformance: String
|
|
391
|
+
$includeContextData: Boolean
|
|
392
|
+
$rateLimitPerHour: Int
|
|
393
|
+
$emailNotifications: String
|
|
394
|
+
$feedbackNotifications: String
|
|
395
|
+
) {
|
|
396
|
+
updateMyReportSettings(
|
|
397
|
+
autoReportErrors: $autoReportErrors
|
|
398
|
+
autoReportContent: $autoReportContent
|
|
399
|
+
autoReportPerformance: $autoReportPerformance
|
|
400
|
+
includeContextData: $includeContextData
|
|
401
|
+
rateLimitPerHour: $rateLimitPerHour
|
|
402
|
+
emailNotifications: $emailNotifications
|
|
403
|
+
feedbackNotifications: $feedbackNotifications
|
|
404
|
+
) {
|
|
405
|
+
autoReportErrors
|
|
406
|
+
autoReportContent
|
|
407
|
+
autoReportPerformance
|
|
408
|
+
includeContextData
|
|
409
|
+
rateLimitPerHour
|
|
410
|
+
emailNotifications
|
|
411
|
+
feedbackNotifications
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retry a function with exponential backoff.
|
|
3
|
+
* Used for startup fetches that may fail if upstream services aren't ready yet.
|
|
4
|
+
*/
|
|
5
|
+
export async function retryWithBackoff<T>(
|
|
6
|
+
fn: () => Promise<T>,
|
|
7
|
+
{ retries = 3, initialDelay = 500, maxDelay = 5000 } = {},
|
|
8
|
+
): Promise<T> {
|
|
9
|
+
for (let attempt = 1; attempt <= retries; attempt++) {
|
|
10
|
+
try {
|
|
11
|
+
return await fn()
|
|
12
|
+
} catch (error) {
|
|
13
|
+
if (attempt === retries) throw error
|
|
14
|
+
const delay = Math.min(initialDelay * Math.pow(2, attempt - 1), maxDelay)
|
|
15
|
+
await new Promise((r) => setTimeout(r, delay))
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
throw new Error('Unreachable')
|
|
19
|
+
}
|