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