@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,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nuxt SSR adapters for blog-sdk composables.
|
|
3
|
+
*
|
|
4
|
+
* These wrap the Vue composables with Nuxt's useAsyncData for
|
|
5
|
+
* server-side rendering and hydration.
|
|
6
|
+
*
|
|
7
|
+
* Usage in Nuxt pages:
|
|
8
|
+
* const { articles, totalCount } = await useAsyncArticleList('home', { status: 'published' })
|
|
9
|
+
*/
|
|
10
|
+
import type { Ref } from 'vue';
|
|
11
|
+
import type { ArticleListParams } from '../../vue/composables/useArticles';
|
|
12
|
+
/**
|
|
13
|
+
* SSR-hydrated article list.
|
|
14
|
+
*
|
|
15
|
+
* Wraps useArticleList with Nuxt's useAsyncData.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useAsyncArticleList(key: string, params?: ArticleListParams, watchDeps?: unknown[]): Promise<import("../../vue").UseArticleListReturn>;
|
|
18
|
+
/**
|
|
19
|
+
* SSR-hydrated single article.
|
|
20
|
+
*
|
|
21
|
+
* Wraps useArticle with Nuxt's useAsyncData.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAsyncArticle(key: string, filename: Ref<string> | string, languageCode: Ref<string> | string, watchDeps?: unknown[]): Promise<import("../../vue").UseArticleReturn>;
|
|
24
|
+
/**
|
|
25
|
+
* SSR-hydrated navigation menu.
|
|
26
|
+
*
|
|
27
|
+
* Wraps useNavigation with Nuxt's useAsyncData.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useAsyncNavigation(key: string, params?: {
|
|
30
|
+
scope?: string;
|
|
31
|
+
locale?: string;
|
|
32
|
+
}, watchDeps?: unknown[]): Promise<import("../../vue").UseNavigationReturn>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useArticleList as i, useArticle as l } from "../../vue/composables/useArticles.js";
|
|
2
|
+
import { useNavigation as r } from "../../vue/composables/useNavigation.js";
|
|
3
|
+
async function f(n, c, e) {
|
|
4
|
+
const t = i(c), { data: a } = await useAsyncData(
|
|
5
|
+
n,
|
|
6
|
+
async () => (await t.fetch(c), {
|
|
7
|
+
articles: t.articles.value,
|
|
8
|
+
totalCount: t.totalCount.value
|
|
9
|
+
}),
|
|
10
|
+
e ? { watch: e } : void 0
|
|
11
|
+
);
|
|
12
|
+
return a.value && (t.articles.value = a.value.articles, t.totalCount.value = a.value.totalCount), t;
|
|
13
|
+
}
|
|
14
|
+
async function A(n, c, e, t) {
|
|
15
|
+
const a = l(), s = () => typeof c == "string" ? c : c.value, o = () => typeof e == "string" ? e : e.value, { data: u } = await useAsyncData(
|
|
16
|
+
n,
|
|
17
|
+
async () => (await a.fetch(s(), o()), a.article.value),
|
|
18
|
+
t ? { watch: t } : void 0
|
|
19
|
+
);
|
|
20
|
+
return u.value && (a.article.value = u.value), a;
|
|
21
|
+
}
|
|
22
|
+
async function w(n, c, e) {
|
|
23
|
+
const t = r(), { data: a } = await useAsyncData(
|
|
24
|
+
n,
|
|
25
|
+
async () => (await t.fetch(c), t.tree.value),
|
|
26
|
+
e ? { watch: e } : void 0
|
|
27
|
+
);
|
|
28
|
+
return a.value && (t.tree.value = a.value), t;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
A as useAsyncArticle,
|
|
32
|
+
f as useAsyncArticleList,
|
|
33
|
+
w as useAsyncNavigation
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useAsyncArticleList, useAsyncArticle, useAsyncNavigation, } from './composables/useAsyncKb';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { computed as l, ref as i } from "vue";
|
|
2
|
+
function y(t) {
|
|
3
|
+
const f = l(() => !!t.title), d = l(() => t.title || t.slug || "Audio"), v = l(() => t.showTranscription ?? !1), g = l(() => t.slug ? `/api/media/file/${t.slug}` : ""), r = l(() => t.slug ? `/api/media/transcription/${t.slug}` : ""), n = i(null), s = i(null), e = i(!1), a = i(!1);
|
|
4
|
+
async function o() {
|
|
5
|
+
if (!(!t.slug || n.value !== null)) {
|
|
6
|
+
e.value = !0;
|
|
7
|
+
try {
|
|
8
|
+
const c = await fetch(r.value);
|
|
9
|
+
if (c.ok) {
|
|
10
|
+
const u = await c.json();
|
|
11
|
+
n.value = u.fullText || u.full_text || "", s.value = u.summary || null;
|
|
12
|
+
} else
|
|
13
|
+
n.value = "";
|
|
14
|
+
} catch {
|
|
15
|
+
n.value = "";
|
|
16
|
+
} finally {
|
|
17
|
+
e.value = !1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function m() {
|
|
22
|
+
a.value = !a.value, a.value && n.value === null && o();
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
hasTitle: f,
|
|
26
|
+
displayTitle: d,
|
|
27
|
+
showTranscription: v,
|
|
28
|
+
audioUrl: g,
|
|
29
|
+
transcriptionUrl: r,
|
|
30
|
+
transcriptionText: n,
|
|
31
|
+
transcriptionSummary: s,
|
|
32
|
+
transcriptionLoading: e,
|
|
33
|
+
transcriptionExpanded: a,
|
|
34
|
+
loadTranscription: o,
|
|
35
|
+
toggleTranscription: m
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
y as useAudioPlayer
|
|
40
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { computed as e } from "vue";
|
|
2
|
+
const i = {
|
|
3
|
+
info: {
|
|
4
|
+
icon: "info-circle",
|
|
5
|
+
colors: {
|
|
6
|
+
bg: "bg-blue-900/20",
|
|
7
|
+
border: "border-blue-500",
|
|
8
|
+
text: "text-blue-200",
|
|
9
|
+
iconColor: "text-blue-400"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
warning: {
|
|
13
|
+
icon: "warning-triangle",
|
|
14
|
+
colors: {
|
|
15
|
+
bg: "bg-yellow-900/20",
|
|
16
|
+
border: "border-yellow-500",
|
|
17
|
+
text: "text-yellow-200",
|
|
18
|
+
iconColor: "text-yellow-400"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
tip: {
|
|
22
|
+
icon: "lightbulb",
|
|
23
|
+
colors: {
|
|
24
|
+
bg: "bg-green-900/20",
|
|
25
|
+
border: "border-green-500",
|
|
26
|
+
text: "text-green-200",
|
|
27
|
+
iconColor: "text-green-400"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
danger: {
|
|
31
|
+
icon: "alert-circle",
|
|
32
|
+
colors: {
|
|
33
|
+
bg: "bg-red-900/20",
|
|
34
|
+
border: "border-red-500",
|
|
35
|
+
text: "text-red-200",
|
|
36
|
+
iconColor: "text-red-400"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, a = {
|
|
40
|
+
"info-circle": "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
41
|
+
"warning-triangle": "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",
|
|
42
|
+
lightbulb: "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",
|
|
43
|
+
"alert-circle": "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
44
|
+
};
|
|
45
|
+
function s(l) {
|
|
46
|
+
const r = e(() => l.type || "info"), o = e(() => ({
|
|
47
|
+
type: r.value,
|
|
48
|
+
...i[r.value]
|
|
49
|
+
})), t = e(() => [
|
|
50
|
+
o.value.colors.bg,
|
|
51
|
+
o.value.colors.border,
|
|
52
|
+
o.value.colors.text
|
|
53
|
+
]), c = e(() => a[o.value.icon]), n = e(() => o.value.colors.iconColor);
|
|
54
|
+
return {
|
|
55
|
+
effectiveType: r,
|
|
56
|
+
config: o,
|
|
57
|
+
containerClasses: t,
|
|
58
|
+
iconPath: c,
|
|
59
|
+
iconClasses: n
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
i as calloutConfigs,
|
|
64
|
+
a as calloutIconPaths,
|
|
65
|
+
s as useCallout
|
|
66
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ref as i, computed as t } from "vue";
|
|
2
|
+
const o = {
|
|
3
|
+
js: "JavaScript",
|
|
4
|
+
javascript: "JavaScript",
|
|
5
|
+
ts: "TypeScript",
|
|
6
|
+
typescript: "TypeScript",
|
|
7
|
+
vue: "Vue",
|
|
8
|
+
html: "HTML",
|
|
9
|
+
css: "CSS",
|
|
10
|
+
json: "JSON",
|
|
11
|
+
python: "Python",
|
|
12
|
+
py: "Python",
|
|
13
|
+
bash: "Bash",
|
|
14
|
+
sh: "Shell",
|
|
15
|
+
sql: "SQL",
|
|
16
|
+
text: "Plain Text",
|
|
17
|
+
rust: "Rust",
|
|
18
|
+
go: "Go",
|
|
19
|
+
java: "Java",
|
|
20
|
+
cpp: "C++",
|
|
21
|
+
c: "C",
|
|
22
|
+
csharp: "C#",
|
|
23
|
+
php: "PHP",
|
|
24
|
+
ruby: "Ruby",
|
|
25
|
+
swift: "Swift",
|
|
26
|
+
kotlin: "Kotlin",
|
|
27
|
+
yaml: "YAML",
|
|
28
|
+
yml: "YAML",
|
|
29
|
+
xml: "XML",
|
|
30
|
+
markdown: "Markdown",
|
|
31
|
+
md: "Markdown",
|
|
32
|
+
graphql: "GraphQL",
|
|
33
|
+
dockerfile: "Dockerfile"
|
|
34
|
+
};
|
|
35
|
+
function p(a) {
|
|
36
|
+
if (!a) return "Plain Text";
|
|
37
|
+
const e = a.toLowerCase();
|
|
38
|
+
return o[e] ? o[e] : e.charAt(0).toUpperCase() + e.slice(1);
|
|
39
|
+
}
|
|
40
|
+
function g(a) {
|
|
41
|
+
const e = i(!1), r = t(() => p(a.language)), n = t(() => `language-${a.language || "text"}`);
|
|
42
|
+
async function c(l) {
|
|
43
|
+
try {
|
|
44
|
+
await navigator.clipboard.writeText(l), e.value = !0, setTimeout(() => {
|
|
45
|
+
e.value = !1;
|
|
46
|
+
}, 2e3);
|
|
47
|
+
} catch (s) {
|
|
48
|
+
console.error("Failed to copy code:", s);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
copied: e,
|
|
53
|
+
languageLabel: r,
|
|
54
|
+
languageClass: n,
|
|
55
|
+
copyCode: c
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
p as getLanguageLabel,
|
|
60
|
+
o as languageLabels,
|
|
61
|
+
g as useCodeBlock
|
|
62
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { computed as n } from "vue";
|
|
2
|
+
import { galleryTileLayout as E } from "../../../mdx-schema/dist/styles/index.js";
|
|
3
|
+
const h = /\.(mp4|webm|mov|avi|mkv|m4v)(\?.*)?$/i, $ = /\/api\/media\/file\/([^/?#]+)/;
|
|
4
|
+
function o(e) {
|
|
5
|
+
return typeof e == "object" && e !== null && "src" in e && typeof e.src == "string";
|
|
6
|
+
}
|
|
7
|
+
function a(e) {
|
|
8
|
+
return h.test(e);
|
|
9
|
+
}
|
|
10
|
+
const V = {
|
|
11
|
+
1: "grid-cols-1",
|
|
12
|
+
2: "grid-cols-2",
|
|
13
|
+
3: "grid-cols-3",
|
|
14
|
+
4: "grid-cols-4"
|
|
15
|
+
};
|
|
16
|
+
function D(e) {
|
|
17
|
+
const r = n(() => e.columns || 2), g = n(() => {
|
|
18
|
+
const i = r.value;
|
|
19
|
+
return V[i] || "grid-cols-2";
|
|
20
|
+
}), m = n(() => `gap-${e.gap || 4}`), u = n(() => E(e));
|
|
21
|
+
function s(i) {
|
|
22
|
+
const t = e.images[i];
|
|
23
|
+
return o(t) ? t.src : t;
|
|
24
|
+
}
|
|
25
|
+
function l(i) {
|
|
26
|
+
const t = e.images[i];
|
|
27
|
+
return o(t) ? t.alt || `Gallery image ${i + 1}` : `Gallery image ${i + 1}`;
|
|
28
|
+
}
|
|
29
|
+
function f(i) {
|
|
30
|
+
const t = e.images[i];
|
|
31
|
+
return o(t) ? t.description : void 0;
|
|
32
|
+
}
|
|
33
|
+
function d(i) {
|
|
34
|
+
const t = e.images[i];
|
|
35
|
+
if (o(t))
|
|
36
|
+
return t.description || t.alt || void 0;
|
|
37
|
+
}
|
|
38
|
+
function y(i) {
|
|
39
|
+
const t = e.images[i];
|
|
40
|
+
return o(t) ? t.type === "video" ? !0 : t.type === "image" ? !1 : a(t.src) : a(t);
|
|
41
|
+
}
|
|
42
|
+
function I(i) {
|
|
43
|
+
const c = s(i).match($);
|
|
44
|
+
return c ? `/api/media/poster/${c[1]}` : void 0;
|
|
45
|
+
}
|
|
46
|
+
const v = n(() => e.images && e.images.length > 0), C = n(() => e.images?.length || 0);
|
|
47
|
+
return {
|
|
48
|
+
effectiveColumns: r,
|
|
49
|
+
gridColsClass: g,
|
|
50
|
+
gapClass: m,
|
|
51
|
+
tileLayout: u,
|
|
52
|
+
getImageSrc: s,
|
|
53
|
+
getImageAlt: l,
|
|
54
|
+
getImageDescription: f,
|
|
55
|
+
getImageCaption: d,
|
|
56
|
+
isVideo: y,
|
|
57
|
+
getVideoPoster: I,
|
|
58
|
+
hasImages: v,
|
|
59
|
+
imageCount: C
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
E as galleryTileLayout,
|
|
64
|
+
V as gridColsClasses,
|
|
65
|
+
o as isMediaObject,
|
|
66
|
+
a as isVideoUrl,
|
|
67
|
+
D as useGallery
|
|
68
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { computed as t } from "vue";
|
|
2
|
+
const a = "https://www.youtube.com/embed/", o = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture";
|
|
3
|
+
function m(e) {
|
|
4
|
+
const r = t(() => `${a}${e.id}`), i = t(() => e.title || "YouTube video"), u = t(() => !!e.title), c = t(() => e.id ? `https://img.youtube.com/vi/${e.id}/maxresdefault.jpg` : ""), l = t(() => ({
|
|
5
|
+
src: r.value,
|
|
6
|
+
title: i.value,
|
|
7
|
+
frameborder: "0",
|
|
8
|
+
allow: o,
|
|
9
|
+
allowfullscreen: !0
|
|
10
|
+
}));
|
|
11
|
+
return {
|
|
12
|
+
embedUrl: r,
|
|
13
|
+
iframeTitle: i,
|
|
14
|
+
hasTitle: u,
|
|
15
|
+
thumbnailUrl: c,
|
|
16
|
+
iframeAttrs: l,
|
|
17
|
+
YOUTUBE_IFRAME_ALLOW: o
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
a as YOUTUBE_EMBED_BASE,
|
|
22
|
+
o as YOUTUBE_IFRAME_ALLOW,
|
|
23
|
+
m as useYouTube
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent as t, createBlock as r, openBlock as o, normalizeProps as a, guardReactiveProps as n, withCtx as s, renderSlot as p } from "vue";
|
|
2
|
+
import i from "../render/alert/Alert.vue2.js";
|
|
3
|
+
const f = /* @__PURE__ */ t({
|
|
4
|
+
__name: "AlertEdit",
|
|
5
|
+
setup(l) {
|
|
6
|
+
return (e, m) => (o(), r(i, a(n(e.$attrs)), {
|
|
7
|
+
default: s(() => [
|
|
8
|
+
p(e.$slots, "default")
|
|
9
|
+
]),
|
|
10
|
+
_: 3
|
|
11
|
+
}, 16));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
f as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent as g, createElementBlock as o, openBlock as s, createElementVNode as r, createCommentVNode as n, unref as t, toDisplayString as i, createTextVNode as h, normalizeClass as _, Fragment as f } from "vue";
|
|
2
|
+
import { useAudioPlayer as w } from "../composables/useAudioPlayer.js";
|
|
3
|
+
const T = { class: "audio-player my-4 rounded-lg bg-vscode-bg-secondary p-4 border border-vscode-border" }, C = { class: "flex items-center gap-3 mb-3" }, B = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "text-sm text-vscode-text font-medium"
|
|
6
|
+
}, E = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "text-sm text-vscode-text-muted italic"
|
|
9
|
+
}, N = ["src"], L = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "mt-3"
|
|
12
|
+
}, M = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "mt-2 p-3 bg-vscode-bg rounded border border-vscode-border text-xs text-vscode-text-muted leading-relaxed max-h-48 overflow-y-auto"
|
|
15
|
+
}, S = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "italic opacity-60"
|
|
18
|
+
}, V = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "italic opacity-60"
|
|
21
|
+
}, j = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "mb-2 pb-2 border-b border-vscode-border"
|
|
24
|
+
}, z = { class: "text-vscode-text" }, A = { class: "whitespace-pre-wrap" }, H = /* @__PURE__ */ g({
|
|
25
|
+
__name: "AudioPlayerEdit",
|
|
26
|
+
props: {
|
|
27
|
+
slug: {},
|
|
28
|
+
title: {},
|
|
29
|
+
showTranscription: { type: Boolean }
|
|
30
|
+
},
|
|
31
|
+
setup(a) {
|
|
32
|
+
const u = a, {
|
|
33
|
+
audioUrl: m,
|
|
34
|
+
displayTitle: x,
|
|
35
|
+
hasTitle: v,
|
|
36
|
+
showTranscription: b,
|
|
37
|
+
transcriptionText: d,
|
|
38
|
+
transcriptionSummary: l,
|
|
39
|
+
transcriptionLoading: y,
|
|
40
|
+
transcriptionExpanded: c,
|
|
41
|
+
toggleTranscription: p
|
|
42
|
+
} = w(u);
|
|
43
|
+
return (P, e) => (s(), o("div", T, [
|
|
44
|
+
r("div", C, [
|
|
45
|
+
e[1] || (e[1] = r("svg", {
|
|
46
|
+
class: "w-5 h-5 text-vscode-text-muted flex-shrink-0",
|
|
47
|
+
fill: "none",
|
|
48
|
+
stroke: "currentColor",
|
|
49
|
+
viewBox: "0 0 24 24"
|
|
50
|
+
}, [
|
|
51
|
+
r("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(v) ? (s(), o("span", B, i(t(x)), 1)) : (s(), o("span", E, i(a.slug), 1))
|
|
59
|
+
]),
|
|
60
|
+
r("audio", {
|
|
61
|
+
src: t(m),
|
|
62
|
+
controls: "",
|
|
63
|
+
preload: "metadata",
|
|
64
|
+
class: "w-full h-8"
|
|
65
|
+
}, null, 8, N),
|
|
66
|
+
t(b) ? (s(), o("div", L, [
|
|
67
|
+
r("button", {
|
|
68
|
+
class: "flex items-center gap-2 text-xs text-vscode-text-muted hover:text-vscode-text transition-colors cursor-pointer bg-transparent border-0 p-0",
|
|
69
|
+
onClick: e[0] || (e[0] = //@ts-ignore
|
|
70
|
+
(...k) => t(p) && t(p)(...k))
|
|
71
|
+
}, [
|
|
72
|
+
(s(), o("svg", {
|
|
73
|
+
class: _(["w-3.5 h-3.5 transition-transform", { "rotate-90": t(c) }]),
|
|
74
|
+
fill: "none",
|
|
75
|
+
stroke: "currentColor",
|
|
76
|
+
viewBox: "0 0 24 24"
|
|
77
|
+
}, [...e[2] || (e[2] = [
|
|
78
|
+
r("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] = h(" Transcription ", -1))
|
|
86
|
+
]),
|
|
87
|
+
t(c) ? (s(), o("div", M, [
|
|
88
|
+
t(y) ? (s(), o("p", S, "Loading transcription...")) : t(d) ? (s(), o(f, { key: 2 }, [
|
|
89
|
+
t(l) ? (s(), o("div", j, [
|
|
90
|
+
e[4] || (e[4] = r("div", { class: "text-[10px] uppercase tracking-wide opacity-50 mb-0.5" }, "Summary", -1)),
|
|
91
|
+
r("div", z, i(t(l)), 1)
|
|
92
|
+
])) : n("", !0),
|
|
93
|
+
r("div", A, i(t(d)), 1)
|
|
94
|
+
], 64)) : (s(), o("p", V, "No transcription available."))
|
|
95
|
+
])) : n("", !0)
|
|
96
|
+
])) : n("", !0)
|
|
97
|
+
]));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
H as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineComponent as r, createBlock as o, openBlock as t, normalizeProps as a, guardReactiveProps as n } from "vue";
|
|
2
|
+
import p from "../render/badge/Badge.vue2.js";
|
|
3
|
+
const i = /* @__PURE__ */ r({
|
|
4
|
+
__name: "BadgeEdit",
|
|
5
|
+
setup(c) {
|
|
6
|
+
return (e, m) => (t(), o(p, a(n(e.$attrs)), null, 16));
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
i as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineComponent as o, createBlock as r, openBlock as t, normalizeProps as n, guardReactiveProps as a } from "vue";
|
|
2
|
+
import p from "../render/button/Button.vue2.js";
|
|
3
|
+
const i = /* @__PURE__ */ o({
|
|
4
|
+
__name: "ButtonEdit",
|
|
5
|
+
setup(c) {
|
|
6
|
+
return (e, m) => (t(), r(p, n(a(e.$attrs)), null, 16));
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
i as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as p, createElementBlock as n, openBlock as r, normalizeClass as s, unref as e, createElementVNode as l, createCommentVNode as k, renderSlot as m } from "vue";
|
|
2
|
+
import { useCallout as v, calloutIconPaths as f } from "../composables/useCallout.js";
|
|
3
|
+
const h = { class: "flex items-start gap-3" }, w = { class: "flex-shrink-0 mt-0.5" }, g = { class: "flex-1 text-sm" }, M = /* @__PURE__ */ p({
|
|
4
|
+
__name: "CalloutEdit",
|
|
5
|
+
props: {
|
|
6
|
+
type: {}
|
|
7
|
+
},
|
|
8
|
+
setup(a) {
|
|
9
|
+
const d = a, { effectiveType: t, containerClasses: u, iconClasses: i } = v(d);
|
|
10
|
+
return f[t.value === "info" ? "info-circle" : t.value === "warning" ? "warning-triangle" : t.value === "tip" ? "lightbulb" : "alert-circle"], (c, o) => (r(), n("div", {
|
|
11
|
+
class: s(["callout my-4 p-4 rounded-lg border-l-4", e(u)])
|
|
12
|
+
}, [
|
|
13
|
+
l("div", h, [
|
|
14
|
+
l("div", w, [
|
|
15
|
+
e(t) === "info" ? (r(), n("svg", {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: s(["w-5 h-5", e(i)]),
|
|
18
|
+
fill: "none",
|
|
19
|
+
stroke: "currentColor",
|
|
20
|
+
viewBox: "0 0 24 24"
|
|
21
|
+
}, [...o[0] || (o[0] = [
|
|
22
|
+
l("path", {
|
|
23
|
+
"stroke-linecap": "round",
|
|
24
|
+
"stroke-linejoin": "round",
|
|
25
|
+
"stroke-width": "2",
|
|
26
|
+
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
27
|
+
}, null, -1)
|
|
28
|
+
])], 2)) : e(t) === "warning" ? (r(), n("svg", {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: s(["w-5 h-5", e(i)]),
|
|
31
|
+
fill: "none",
|
|
32
|
+
stroke: "currentColor",
|
|
33
|
+
viewBox: "0 0 24 24"
|
|
34
|
+
}, [...o[1] || (o[1] = [
|
|
35
|
+
l("path", {
|
|
36
|
+
"stroke-linecap": "round",
|
|
37
|
+
"stroke-linejoin": "round",
|
|
38
|
+
"stroke-width": "2",
|
|
39
|
+
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"
|
|
40
|
+
}, null, -1)
|
|
41
|
+
])], 2)) : e(t) === "tip" ? (r(), n("svg", {
|
|
42
|
+
key: 2,
|
|
43
|
+
class: s(["w-5 h-5", e(i)]),
|
|
44
|
+
fill: "none",
|
|
45
|
+
stroke: "currentColor",
|
|
46
|
+
viewBox: "0 0 24 24"
|
|
47
|
+
}, [...o[2] || (o[2] = [
|
|
48
|
+
l("path", {
|
|
49
|
+
"stroke-linecap": "round",
|
|
50
|
+
"stroke-linejoin": "round",
|
|
51
|
+
"stroke-width": "2",
|
|
52
|
+
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"
|
|
53
|
+
}, null, -1)
|
|
54
|
+
])], 2)) : e(t) === "danger" ? (r(), n("svg", {
|
|
55
|
+
key: 3,
|
|
56
|
+
class: s(["w-5 h-5", e(i)]),
|
|
57
|
+
fill: "none",
|
|
58
|
+
stroke: "currentColor",
|
|
59
|
+
viewBox: "0 0 24 24"
|
|
60
|
+
}, [...o[3] || (o[3] = [
|
|
61
|
+
l("path", {
|
|
62
|
+
"stroke-linecap": "round",
|
|
63
|
+
"stroke-linejoin": "round",
|
|
64
|
+
"stroke-width": "2",
|
|
65
|
+
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
66
|
+
}, null, -1)
|
|
67
|
+
])], 2)) : k("", !0)
|
|
68
|
+
]),
|
|
69
|
+
l("div", g, [
|
|
70
|
+
m(c.$slots, "default")
|
|
71
|
+
])
|
|
72
|
+
])
|
|
73
|
+
], 2));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
M as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineComponent as r, createBlock as t, openBlock as o, normalizeProps as a, guardReactiveProps as n, withCtx as s, renderSlot as p } from "vue";
|
|
2
|
+
import i from "../render/card/Card.vue2.js";
|
|
3
|
+
const f = /* @__PURE__ */ r({
|
|
4
|
+
__name: "CardEdit",
|
|
5
|
+
setup(m) {
|
|
6
|
+
return (e, _) => (o(), t(i, a(n(e.$attrs)), {
|
|
7
|
+
default: s(() => [
|
|
8
|
+
p(e.$slots, "default")
|
|
9
|
+
]),
|
|
10
|
+
_: 3
|
|
11
|
+
}, 16));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
f as default
|
|
16
|
+
};
|