@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,154 @@
|
|
|
1
|
+
import { defineAsyncComponent as m, defineComponent as u, h as f } from "vue";
|
|
2
|
+
import { componentMetadata as b } from "../../mdx-schema/dist/metadata/index.js";
|
|
3
|
+
import { getComponentMetadata as T, getComponentNames as W } from "../../mdx-schema/dist/metadata/index.js";
|
|
4
|
+
import { prepareProps as g } from "../../mdx-schema/dist/prepareProps.js";
|
|
5
|
+
import "../../../_virtual/index3.js";
|
|
6
|
+
const s = "__mdxPreparePropsAppliedFor", C = {
|
|
7
|
+
Callout: {
|
|
8
|
+
editor: { icon: "info", color: "#569cd6", borderColor: "#569cd6", bgColor: "rgba(86, 156, 214, 0.08)" },
|
|
9
|
+
render: {
|
|
10
|
+
default: () => import("./render/callout/CalloutDefault.vue2.js"),
|
|
11
|
+
minimal: () => import("./render/callout/CalloutMinimal.vue2.js")
|
|
12
|
+
},
|
|
13
|
+
edit: () => import("./edit/CalloutEdit.vue2.js")
|
|
14
|
+
},
|
|
15
|
+
YouTube: {
|
|
16
|
+
editor: { icon: "play", color: "#ff4444", borderColor: "#ff4444", bgColor: "rgba(255, 68, 68, 0.08)" },
|
|
17
|
+
render: {
|
|
18
|
+
default: () => import("./render/youtube/YouTubeDefault.vue2.js")
|
|
19
|
+
},
|
|
20
|
+
edit: () => import("./edit/YouTubeEdit.vue2.js")
|
|
21
|
+
},
|
|
22
|
+
Gallery: {
|
|
23
|
+
editor: { icon: "image", color: "#4ec9b0", borderColor: "#4ec9b0", bgColor: "rgba(78, 201, 176, 0.08)" },
|
|
24
|
+
render: {
|
|
25
|
+
default: () => import("./render/gallery/GalleryGrid.vue2.js"),
|
|
26
|
+
grid: () => import("./render/gallery/GalleryGrid.vue2.js")
|
|
27
|
+
},
|
|
28
|
+
edit: () => import("./edit/GalleryEdit.vue2.js")
|
|
29
|
+
},
|
|
30
|
+
CodeBlock: {
|
|
31
|
+
editor: { icon: "code", color: "#ce9178", borderColor: "#ce9178", bgColor: "rgba(206, 145, 120, 0.08)" },
|
|
32
|
+
render: {
|
|
33
|
+
default: () => import("./render/codeblock/CodeBlockDefault.vue.js")
|
|
34
|
+
},
|
|
35
|
+
edit: () => import("./edit/CodeBlockEdit.vue.js")
|
|
36
|
+
},
|
|
37
|
+
AudioPlayer: {
|
|
38
|
+
editor: { icon: "audio", color: "#b48ead", borderColor: "#b48ead", bgColor: "rgba(180, 142, 173, 0.08)" },
|
|
39
|
+
render: {
|
|
40
|
+
default: () => import("./render/audioplayer/AudioPlayerDefault.vue2.js")
|
|
41
|
+
},
|
|
42
|
+
edit: () => import("./edit/AudioPlayerEdit.vue2.js")
|
|
43
|
+
},
|
|
44
|
+
Button: {
|
|
45
|
+
editor: { icon: "button", color: "#2563eb", borderColor: "#2563eb", bgColor: "rgba(37, 99, 235, 0.08)" },
|
|
46
|
+
render: {
|
|
47
|
+
default: () => import("./render/button/Button.vue.js")
|
|
48
|
+
},
|
|
49
|
+
edit: () => import("./edit/ButtonEdit.vue.js")
|
|
50
|
+
},
|
|
51
|
+
Card: {
|
|
52
|
+
editor: { icon: "card", color: "#6b7280", borderColor: "#6b7280", bgColor: "rgba(107, 114, 128, 0.08)" },
|
|
53
|
+
render: {
|
|
54
|
+
default: () => import("./render/card/Card.vue.js")
|
|
55
|
+
},
|
|
56
|
+
edit: () => import("./edit/CardEdit.vue.js")
|
|
57
|
+
},
|
|
58
|
+
Alert: {
|
|
59
|
+
editor: { icon: "alert", color: "#d97706", borderColor: "#d97706", bgColor: "rgba(217, 119, 6, 0.08)" },
|
|
60
|
+
render: {
|
|
61
|
+
default: () => import("./render/alert/Alert.vue.js")
|
|
62
|
+
},
|
|
63
|
+
edit: () => import("./edit/AlertEdit.vue.js")
|
|
64
|
+
},
|
|
65
|
+
Badge: {
|
|
66
|
+
editor: { icon: "badge", color: "#059669", borderColor: "#059669", bgColor: "rgba(5, 150, 105, 0.08)" },
|
|
67
|
+
render: {
|
|
68
|
+
default: () => import("./render/badge/Badge.vue.js")
|
|
69
|
+
},
|
|
70
|
+
edit: () => import("./edit/BadgeEdit.vue.js")
|
|
71
|
+
},
|
|
72
|
+
Icon: {
|
|
73
|
+
editor: { icon: "icon", color: "#7c3aed", borderColor: "#7c3aed", bgColor: "rgba(124, 58, 237, 0.08)" },
|
|
74
|
+
render: {
|
|
75
|
+
default: () => import("./render/icon/Icon.vue.js")
|
|
76
|
+
},
|
|
77
|
+
edit: () => import("./edit/IconEdit.vue.js")
|
|
78
|
+
},
|
|
79
|
+
Tooltip: {
|
|
80
|
+
editor: { icon: "tooltip", color: "#0891b2", borderColor: "#0891b2", bgColor: "rgba(8, 145, 178, 0.08)" },
|
|
81
|
+
render: {
|
|
82
|
+
default: () => import("./render/tooltip/Tooltip.vue.js")
|
|
83
|
+
},
|
|
84
|
+
edit: () => import("./edit/TooltipEdit.vue.js")
|
|
85
|
+
}
|
|
86
|
+
}, d = Object.fromEntries(
|
|
87
|
+
b.map((o) => {
|
|
88
|
+
const r = C[o.name];
|
|
89
|
+
if (!r)
|
|
90
|
+
throw new Error(
|
|
91
|
+
`[mdx-components] No Vue wiring registered for component "${o.name}". Add an entry to vueWiring in registry.ts or remove the schema entry.`
|
|
92
|
+
);
|
|
93
|
+
return [o.name, { metadata: o, ...r }];
|
|
94
|
+
})
|
|
95
|
+
);
|
|
96
|
+
function P(o) {
|
|
97
|
+
const r = d[o];
|
|
98
|
+
return r ? Object.keys(r.render) : [];
|
|
99
|
+
}
|
|
100
|
+
async function R(o, r = "default") {
|
|
101
|
+
const e = d[o];
|
|
102
|
+
if (!e) return;
|
|
103
|
+
const t = e.render[r] || e.render.default;
|
|
104
|
+
return t ? (await t()).default : void 0;
|
|
105
|
+
}
|
|
106
|
+
function y(o, r, e = "default") {
|
|
107
|
+
const t = u({
|
|
108
|
+
name: `MdxPrepared${r.name}${e === "default" ? "" : `_${e}`}`,
|
|
109
|
+
inheritAttrs: !1,
|
|
110
|
+
setup(n, { attrs: i, slots: c }) {
|
|
111
|
+
return () => f(
|
|
112
|
+
o,
|
|
113
|
+
g(i, r),
|
|
114
|
+
c
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
return t[s] = r.name, t;
|
|
119
|
+
}
|
|
120
|
+
const a = /* @__PURE__ */ new Map();
|
|
121
|
+
function _(o, r = "default") {
|
|
122
|
+
const e = `${o}:${r}`, t = a.get(e);
|
|
123
|
+
if (t) return t;
|
|
124
|
+
const n = d[o];
|
|
125
|
+
if (!n) return;
|
|
126
|
+
const i = n.render[r] || n.render.default;
|
|
127
|
+
if (!i) return;
|
|
128
|
+
const c = m(() => i().then((p) => p.default)), l = y(c, n.metadata, r);
|
|
129
|
+
return a.set(e, l), l;
|
|
130
|
+
}
|
|
131
|
+
function x() {
|
|
132
|
+
a.clear();
|
|
133
|
+
}
|
|
134
|
+
async function M(o) {
|
|
135
|
+
const r = d[o];
|
|
136
|
+
return r ? (await r.edit()).default : void 0;
|
|
137
|
+
}
|
|
138
|
+
function $(o) {
|
|
139
|
+
return d[o]?.editor;
|
|
140
|
+
}
|
|
141
|
+
export {
|
|
142
|
+
s as MDX_PREPARED_SENTINEL,
|
|
143
|
+
x as _resetWrappedRenderCacheForTests,
|
|
144
|
+
b as componentMetadata,
|
|
145
|
+
d as componentRegistry,
|
|
146
|
+
T as getComponentMetadata,
|
|
147
|
+
W as getComponentNames,
|
|
148
|
+
P as getComponentVariants,
|
|
149
|
+
M as getEditComponentAsync,
|
|
150
|
+
$ as getEditorConfig,
|
|
151
|
+
R as getRenderComponentAsync,
|
|
152
|
+
_ as getWrappedRenderComponent,
|
|
153
|
+
y as wrapVueComponentForMdx
|
|
154
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as m, computed as d, createElementBlock as o, openBlock as s, normalizeClass as l, unref as n, createVNode as f, createElementVNode as r, createCommentVNode as u, toDisplayString as p, renderSlot as v } from "vue";
|
|
2
|
+
import { Icon as h } from "../../node_modules/@iconify/vue/dist/iconify.js";
|
|
3
|
+
import { alertStyles as i } from "../../../../mdx-schema/dist/styles/index.js";
|
|
4
|
+
const _ = { class: "min-w-0 flex-1" }, y = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "mb-0.5 font-semibold"
|
|
7
|
+
}, k = { class: "prose-sm" }, x = /* @__PURE__ */ m({
|
|
8
|
+
__name: "Alert",
|
|
9
|
+
props: {
|
|
10
|
+
severity: { default: "info" },
|
|
11
|
+
title: {}
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
const a = e, t = d(() => i.severity[a.severity]);
|
|
15
|
+
return (c, C) => (s(), o("div", {
|
|
16
|
+
class: l([n(i).base, t.value.wrap]),
|
|
17
|
+
role: "alert",
|
|
18
|
+
"data-mdx-component": "Alert"
|
|
19
|
+
}, [
|
|
20
|
+
f(n(h), {
|
|
21
|
+
icon: t.value.icon,
|
|
22
|
+
class: l(["mt-0.5 shrink-0", t.value.iconClass]),
|
|
23
|
+
width: 18,
|
|
24
|
+
height: 18
|
|
25
|
+
}, null, 8, ["icon", "class"]),
|
|
26
|
+
r("div", _, [
|
|
27
|
+
e.title ? (s(), o("div", y, p(e.title), 1)) : u("", !0),
|
|
28
|
+
r("div", k, [
|
|
29
|
+
v(c.$slots, "default")
|
|
30
|
+
])
|
|
31
|
+
])
|
|
32
|
+
], 2));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
x as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent as h, createElementBlock as r, openBlock as o, createElementVNode as s, createCommentVNode as a, unref as t, toDisplayString as n, createTextVNode as _, normalizeClass as v, Fragment as f } from "vue";
|
|
2
|
+
import { useAudioPlayer as w } from "../../composables/useAudioPlayer.js";
|
|
3
|
+
const T = {
|
|
4
|
+
class: "audio-player my-6 rounded-lg bg-gray-50 p-5 border border-gray-200",
|
|
5
|
+
"data-mdx-component": "AudioPlayer"
|
|
6
|
+
}, C = { class: "flex items-center gap-3 mb-3" }, B = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "text-base font-semibold text-gray-800 m-0"
|
|
9
|
+
}, N = ["src"], A = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "mt-4"
|
|
12
|
+
}, E = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "mt-2 p-3 bg-white rounded border border-gray-200 text-sm text-gray-700 leading-relaxed max-h-64 overflow-y-auto"
|
|
15
|
+
}, L = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "text-gray-400 italic"
|
|
18
|
+
}, M = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "text-gray-400 italic"
|
|
21
|
+
}, P = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "mb-3 pb-3 border-b border-gray-200"
|
|
24
|
+
}, S = { class: "text-gray-800" }, V = { class: "whitespace-pre-wrap" }, F = /* @__PURE__ */ h({
|
|
25
|
+
__name: "AudioPlayerDefault",
|
|
26
|
+
props: {
|
|
27
|
+
slug: {},
|
|
28
|
+
title: {},
|
|
29
|
+
showTranscription: { type: Boolean }
|
|
30
|
+
},
|
|
31
|
+
setup(p) {
|
|
32
|
+
const m = p, {
|
|
33
|
+
audioUrl: u,
|
|
34
|
+
displayTitle: y,
|
|
35
|
+
hasTitle: g,
|
|
36
|
+
showTranscription: x,
|
|
37
|
+
transcriptionText: i,
|
|
38
|
+
transcriptionSummary: l,
|
|
39
|
+
transcriptionLoading: k,
|
|
40
|
+
transcriptionExpanded: d,
|
|
41
|
+
toggleTranscription: c
|
|
42
|
+
} = w(m);
|
|
43
|
+
return (j, e) => (o(), r("div", T, [
|
|
44
|
+
s("div", C, [
|
|
45
|
+
e[1] || (e[1] = s("svg", {
|
|
46
|
+
class: "w-5 h-5 text-gray-500 flex-shrink-0",
|
|
47
|
+
fill: "none",
|
|
48
|
+
stroke: "currentColor",
|
|
49
|
+
viewBox: "0 0 24 24"
|
|
50
|
+
}, [
|
|
51
|
+
s("path", {
|
|
52
|
+
"stroke-linecap": "round",
|
|
53
|
+
"stroke-linejoin": "round",
|
|
54
|
+
"stroke-width": "2",
|
|
55
|
+
d: "M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z"
|
|
56
|
+
})
|
|
57
|
+
], -1)),
|
|
58
|
+
t(g) ? (o(), r("h3", B, n(t(y)), 1)) : a("", !0)
|
|
59
|
+
]),
|
|
60
|
+
s("audio", {
|
|
61
|
+
src: t(u),
|
|
62
|
+
controls: "",
|
|
63
|
+
preload: "metadata",
|
|
64
|
+
class: "w-full"
|
|
65
|
+
}, null, 8, N),
|
|
66
|
+
t(x) ? (o(), r("div", A, [
|
|
67
|
+
s("button", {
|
|
68
|
+
class: "flex items-center gap-2 text-sm text-gray-600 hover:text-gray-900 transition-colors cursor-pointer bg-transparent border-0 p-0",
|
|
69
|
+
onClick: e[0] || (e[0] = //@ts-ignore
|
|
70
|
+
(...b) => t(c) && t(c)(...b))
|
|
71
|
+
}, [
|
|
72
|
+
(o(), r("svg", {
|
|
73
|
+
class: v(["w-4 h-4 transition-transform", { "rotate-90": t(d) }]),
|
|
74
|
+
fill: "none",
|
|
75
|
+
stroke: "currentColor",
|
|
76
|
+
viewBox: "0 0 24 24"
|
|
77
|
+
}, [...e[2] || (e[2] = [
|
|
78
|
+
s("path", {
|
|
79
|
+
"stroke-linecap": "round",
|
|
80
|
+
"stroke-linejoin": "round",
|
|
81
|
+
"stroke-width": "2",
|
|
82
|
+
d: "M9 5l7 7-7 7"
|
|
83
|
+
}, null, -1)
|
|
84
|
+
])], 2)),
|
|
85
|
+
e[3] || (e[3] = _(" Transcription ", -1))
|
|
86
|
+
]),
|
|
87
|
+
t(d) ? (o(), r("div", E, [
|
|
88
|
+
t(k) ? (o(), r("p", L, "Loading transcription...")) : t(i) ? (o(), r(f, { key: 2 }, [
|
|
89
|
+
t(l) ? (o(), r("div", P, [
|
|
90
|
+
e[4] || (e[4] = s("div", { class: "text-xs uppercase tracking-wide text-gray-400 mb-1" }, "Summary", -1)),
|
|
91
|
+
s("div", S, n(t(l)), 1)
|
|
92
|
+
])) : a("", !0),
|
|
93
|
+
s("div", V, n(t(i)), 1)
|
|
94
|
+
], 64)) : (o(), r("p", M, "No transcription available."))
|
|
95
|
+
])) : a("", !0)
|
|
96
|
+
])) : a("", !0)
|
|
97
|
+
]));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
F as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as n, computed as l, createElementBlock as r, openBlock as s, normalizeClass as c, toDisplayString as m } from "vue";
|
|
2
|
+
import { badgeStyles as o } from "../../../../mdx-schema/dist/styles/index.js";
|
|
3
|
+
const f = /* @__PURE__ */ n({
|
|
4
|
+
__name: "Badge",
|
|
5
|
+
props: {
|
|
6
|
+
label: {},
|
|
7
|
+
color: { default: "neutral" },
|
|
8
|
+
variant: { default: "soft" }
|
|
9
|
+
},
|
|
10
|
+
setup(a) {
|
|
11
|
+
const e = a, t = l(
|
|
12
|
+
() => [
|
|
13
|
+
o.base,
|
|
14
|
+
o.variantColor[e.variant][e.color]
|
|
15
|
+
].join(" ")
|
|
16
|
+
);
|
|
17
|
+
return (p, i) => (s(), r("span", {
|
|
18
|
+
class: c(t.value),
|
|
19
|
+
"data-mdx-component": "Badge"
|
|
20
|
+
}, m(a.label), 3));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
f as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as m, computed as s, createElementBlock as l, openBlock as r, normalizeClass as i, toDisplayString as c } from "vue";
|
|
2
|
+
import { buttonStyles as e } from "../../../../mdx-schema/dist/styles/index.js";
|
|
3
|
+
import "../../node_modules/dompurify/dist/purify.es.js";
|
|
4
|
+
import { d as u } from "../../_virtual/index.js";
|
|
5
|
+
const d = ["href"], z = /* @__PURE__ */ m({
|
|
6
|
+
__name: "Button",
|
|
7
|
+
props: {
|
|
8
|
+
label: {},
|
|
9
|
+
to: {},
|
|
10
|
+
variant: { default: "solid" },
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
size: { default: "md" }
|
|
13
|
+
},
|
|
14
|
+
setup(o) {
|
|
15
|
+
const t = o, a = s(() => t.to ? u.sanitizeUrl(t.to) : void 0), n = s(
|
|
16
|
+
() => [
|
|
17
|
+
e.base,
|
|
18
|
+
e.size[t.size],
|
|
19
|
+
e.variantColor[t.variant][t.color]
|
|
20
|
+
].join(" ")
|
|
21
|
+
);
|
|
22
|
+
return (p, f) => a.value ? (r(), l("a", {
|
|
23
|
+
key: 0,
|
|
24
|
+
href: a.value,
|
|
25
|
+
class: i(n.value),
|
|
26
|
+
"data-mdx-component": "Button"
|
|
27
|
+
}, c(o.label), 11, d)) : (r(), l("button", {
|
|
28
|
+
key: 1,
|
|
29
|
+
type: "button",
|
|
30
|
+
class: i(n.value),
|
|
31
|
+
"data-mdx-component": "Button"
|
|
32
|
+
}, c(o.label), 3));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
z as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as c, computed as a, createElementBlock as n, openBlock as r, normalizeClass as s, unref as p, createElementVNode as l, createCommentVNode as m, renderSlot as k } from "vue";
|
|
2
|
+
import { calloutStyles as i } from "../../../../mdx-schema/dist/styles/index.js";
|
|
3
|
+
const f = { class: "flex items-start gap-3" }, h = { class: "flex-shrink-0 mt-0.5" }, C = { class: "flex-1 text-sm leading-relaxed" }, g = /* @__PURE__ */ c({
|
|
4
|
+
__name: "CalloutDefault",
|
|
5
|
+
props: {
|
|
6
|
+
type: {}
|
|
7
|
+
},
|
|
8
|
+
setup(u) {
|
|
9
|
+
const d = u, t = a(() => d.type || "info"), o = a(() => i.default.type[t.value]);
|
|
10
|
+
return (v, e) => (r(), n("div", {
|
|
11
|
+
class: s([p(i).default.base, o.value.bg, o.value.border, o.value.text]),
|
|
12
|
+
"data-mdx-component": "Callout"
|
|
13
|
+
}, [
|
|
14
|
+
l("div", f, [
|
|
15
|
+
l("div", h, [
|
|
16
|
+
t.value === "info" ? (r(), n("svg", {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: s(["w-5 h-5", o.value.iconColor]),
|
|
19
|
+
fill: "none",
|
|
20
|
+
stroke: "currentColor",
|
|
21
|
+
viewBox: "0 0 24 24"
|
|
22
|
+
}, [...e[0] || (e[0] = [
|
|
23
|
+
l("path", {
|
|
24
|
+
"stroke-linecap": "round",
|
|
25
|
+
"stroke-linejoin": "round",
|
|
26
|
+
"stroke-width": "2",
|
|
27
|
+
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
28
|
+
}, null, -1)
|
|
29
|
+
])], 2)) : t.value === "warning" ? (r(), n("svg", {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: s(["w-5 h-5", o.value.iconColor]),
|
|
32
|
+
fill: "none",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
viewBox: "0 0 24 24"
|
|
35
|
+
}, [...e[1] || (e[1] = [
|
|
36
|
+
l("path", {
|
|
37
|
+
"stroke-linecap": "round",
|
|
38
|
+
"stroke-linejoin": "round",
|
|
39
|
+
"stroke-width": "2",
|
|
40
|
+
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
41
|
+
}, null, -1)
|
|
42
|
+
])], 2)) : t.value === "tip" ? (r(), n("svg", {
|
|
43
|
+
key: 2,
|
|
44
|
+
class: s(["w-5 h-5", o.value.iconColor]),
|
|
45
|
+
fill: "none",
|
|
46
|
+
stroke: "currentColor",
|
|
47
|
+
viewBox: "0 0 24 24"
|
|
48
|
+
}, [...e[2] || (e[2] = [
|
|
49
|
+
l("path", {
|
|
50
|
+
"stroke-linecap": "round",
|
|
51
|
+
"stroke-linejoin": "round",
|
|
52
|
+
"stroke-width": "2",
|
|
53
|
+
d: "M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"
|
|
54
|
+
}, null, -1)
|
|
55
|
+
])], 2)) : t.value === "danger" ? (r(), n("svg", {
|
|
56
|
+
key: 3,
|
|
57
|
+
class: s(["w-5 h-5", o.value.iconColor]),
|
|
58
|
+
fill: "none",
|
|
59
|
+
stroke: "currentColor",
|
|
60
|
+
viewBox: "0 0 24 24"
|
|
61
|
+
}, [...e[3] || (e[3] = [
|
|
62
|
+
l("path", {
|
|
63
|
+
"stroke-linecap": "round",
|
|
64
|
+
"stroke-linejoin": "round",
|
|
65
|
+
"stroke-width": "2",
|
|
66
|
+
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
67
|
+
}, null, -1)
|
|
68
|
+
])], 2)) : m("", !0)
|
|
69
|
+
]),
|
|
70
|
+
l("div", C, [
|
|
71
|
+
k(v.$slots, "default")
|
|
72
|
+
])
|
|
73
|
+
])
|
|
74
|
+
], 2));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
g as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as r, computed as t, createElementBlock as c, openBlock as m, normalizeClass as i, unref as p, createElementVNode as d, renderSlot as u } from "vue";
|
|
2
|
+
import { calloutStyles as o } from "../../../../mdx-schema/dist/styles/index.js";
|
|
3
|
+
const f = { class: "text-sm leading-relaxed" }, y = /* @__PURE__ */ r({
|
|
4
|
+
__name: "CalloutMinimal",
|
|
5
|
+
props: {
|
|
6
|
+
type: {}
|
|
7
|
+
},
|
|
8
|
+
setup(l) {
|
|
9
|
+
const a = l, n = t(() => a.type || "info"), e = t(() => o.minimal.type[n.value]);
|
|
10
|
+
return (s, v) => (m(), c("div", {
|
|
11
|
+
class: i([p(o).minimal.base, e.value.bg, e.value.border, e.value.text]),
|
|
12
|
+
"data-mdx-component": "Callout"
|
|
13
|
+
}, [
|
|
14
|
+
d("div", f, [
|
|
15
|
+
u(s.$slots, "default")
|
|
16
|
+
])
|
|
17
|
+
], 2));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
y as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as s, createElementBlock as t, openBlock as o, createCommentVNode as a, createElementVNode as d, toDisplayString as n, renderSlot as c } from "vue";
|
|
2
|
+
const l = {
|
|
3
|
+
class: "mdx-card rounded-lg border border-gray-200 bg-white p-5 shadow-sm",
|
|
4
|
+
"data-mdx-component": "Card"
|
|
5
|
+
}, i = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "mb-3 text-lg font-semibold text-gray-900"
|
|
8
|
+
}, m = { class: "text-gray-700" }, g = /* @__PURE__ */ s({
|
|
9
|
+
__name: "Card",
|
|
10
|
+
props: {
|
|
11
|
+
title: {}
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
return (r, _) => (o(), t("section", l, [
|
|
15
|
+
e.title ? (o(), t("h3", i, n(e.title), 1)) : a("", !0),
|
|
16
|
+
d("div", m, [
|
|
17
|
+
c(r.$slots, "default")
|
|
18
|
+
])
|
|
19
|
+
]));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
g as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent as x, ref as y, createElementBlock as s, openBlock as n, createElementVNode as e, createCommentVNode as h, toDisplayString as d, unref as o, normalizeClass as i, createTextVNode as k, renderSlot as v } from "vue";
|
|
2
|
+
import { useCodeBlock as _ } from "../../composables/useCodeBlock.js";
|
|
3
|
+
const b = {
|
|
4
|
+
class: "code-block my-6 rounded-lg overflow-hidden border border-gray-200 bg-gray-50",
|
|
5
|
+
"data-mdx-component": "CodeBlock"
|
|
6
|
+
}, C = { class: "flex items-center justify-between px-4 py-2 bg-gray-100 border-b border-gray-200" }, w = { class: "flex items-center gap-2" }, B = { class: "text-xs text-gray-600 font-medium" }, N = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "text-xs text-gray-500"
|
|
9
|
+
}, V = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "w-3.5 h-3.5",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
viewBox: "0 0 24 24"
|
|
15
|
+
}, j = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "w-3.5 h-3.5",
|
|
18
|
+
fill: "none",
|
|
19
|
+
stroke: "currentColor",
|
|
20
|
+
viewBox: "0 0 24 24"
|
|
21
|
+
}, L = { class: "code-block-content p-4 overflow-x-auto" }, z = { class: "m-0" }, M = /* @__PURE__ */ x({
|
|
22
|
+
__name: "CodeBlockDefault",
|
|
23
|
+
props: {
|
|
24
|
+
language: {},
|
|
25
|
+
title: {},
|
|
26
|
+
showLineNumbers: { type: Boolean }
|
|
27
|
+
},
|
|
28
|
+
setup(r) {
|
|
29
|
+
const c = r, { copied: l, languageLabel: u, languageClass: p, copyCode: g } = _(c), a = y(null);
|
|
30
|
+
async function f() {
|
|
31
|
+
a.value && await g(a.value.textContent || "");
|
|
32
|
+
}
|
|
33
|
+
return (m, t) => (n(), s("div", b, [
|
|
34
|
+
e("div", C, [
|
|
35
|
+
e("div", w, [
|
|
36
|
+
e("span", B, d(o(u)), 1),
|
|
37
|
+
r.title ? (n(), s("span", N, d(r.title), 1)) : h("", !0)
|
|
38
|
+
]),
|
|
39
|
+
e("button", {
|
|
40
|
+
class: i(["flex items-center gap-1 px-2 py-1 text-xs rounded transition-colors", o(l) ? "bg-green-500 text-white" : "hover:bg-gray-200 text-gray-500 hover:text-gray-700"]),
|
|
41
|
+
onClick: f
|
|
42
|
+
}, [
|
|
43
|
+
o(l) ? (n(), s("svg", j, [...t[1] || (t[1] = [
|
|
44
|
+
e("path", {
|
|
45
|
+
"stroke-linecap": "round",
|
|
46
|
+
"stroke-linejoin": "round",
|
|
47
|
+
"stroke-width": "2",
|
|
48
|
+
d: "M5 13l4 4L19 7"
|
|
49
|
+
}, null, -1)
|
|
50
|
+
])])) : (n(), s("svg", V, [...t[0] || (t[0] = [
|
|
51
|
+
e("path", {
|
|
52
|
+
"stroke-linecap": "round",
|
|
53
|
+
"stroke-linejoin": "round",
|
|
54
|
+
"stroke-width": "2",
|
|
55
|
+
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"
|
|
56
|
+
}, null, -1)
|
|
57
|
+
])])),
|
|
58
|
+
k(" " + d(o(l) ? "Copied!" : "Copy"), 1)
|
|
59
|
+
], 2)
|
|
60
|
+
]),
|
|
61
|
+
e("div", L, [
|
|
62
|
+
e("pre", z, [
|
|
63
|
+
e("code", {
|
|
64
|
+
ref_key: "codeRef",
|
|
65
|
+
ref: a,
|
|
66
|
+
class: i(o(p))
|
|
67
|
+
}, [
|
|
68
|
+
v(m.$slots, "default", {}, void 0, !0)
|
|
69
|
+
], 2)
|
|
70
|
+
])
|
|
71
|
+
])
|
|
72
|
+
]));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
M as default
|
|
77
|
+
};
|