@fluxdown/vue-lynx-plugins 0.0.0-stage → 0.2.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/CHANGELOG.md +24 -0
- package/LICENSE +21 -0
- package/README.md +4 -2
- package/dist/esm/base/components/animated-text/animation.d.ts +6 -0
- package/dist/esm/base/components/animated-text/animation.js +67 -0
- package/dist/esm/base/components/animated-text/index.d.ts +16 -0
- package/dist/esm/base/components/animated-text/index.js +86 -0
- package/dist/esm/base/components/index.d.ts +1 -0
- package/dist/esm/base/components/index.js +3 -0
- package/dist/esm/base/consts/defaults.d.ts +1 -0
- package/dist/esm/base/consts/defaults.js +3 -0
- package/dist/esm/base/consts/index.d.ts +1 -0
- package/dist/esm/base/consts/index.js +3 -0
- package/dist/esm/base/context/index.d.ts +2 -0
- package/dist/esm/base/context/index.js +5 -0
- package/dist/esm/base/context/text-animation/index.d.ts +14 -0
- package/dist/esm/base/context/text-animation/index.js +22 -0
- package/dist/esm/base/context/text-animation/type.d.ts +4 -0
- package/dist/esm/base/context/text-animation/type.js +2 -0
- package/dist/esm/base/context/text-layout-width/index.d.ts +11 -0
- package/dist/esm/base/context/text-layout-width/index.js +20 -0
- package/dist/esm/base/index.d.ts +6 -0
- package/dist/esm/base/index.js +13 -0
- package/dist/esm/base/render/index.d.ts +2 -0
- package/dist/esm/base/render/index.js +5 -0
- package/dist/esm/base/render/layout.d.ts +9 -0
- package/dist/esm/base/render/layout.js +111 -0
- package/dist/esm/base/render/props.d.ts +3 -0
- package/dist/esm/base/render/props.js +43 -0
- package/dist/esm/base/slot/base.d.ts +5 -0
- package/dist/esm/base/slot/base.js +8 -0
- package/dist/esm/base/slot/index.d.ts +3 -0
- package/dist/esm/base/slot/index.js +7 -0
- package/dist/esm/base/slot/type.d.ts +92 -0
- package/dist/esm/base/slot/type.js +2 -0
- package/dist/esm/base/slot/utils/create.d.ts +3 -0
- package/dist/esm/base/slot/utils/create.js +7 -0
- package/dist/esm/base/slot/utils/index.d.ts +3 -0
- package/dist/esm/base/slot/utils/index.js +7 -0
- package/dist/esm/base/slot/utils/style.d.ts +1 -0
- package/dist/esm/base/slot/utils/style.js +3 -0
- package/dist/esm/base/slot/utils/url.d.ts +4 -0
- package/dist/esm/base/slot/utils/url.js +21 -0
- package/dist/esm/base/theme/index.d.ts +25 -0
- package/dist/esm/base/theme/index.js +78 -0
- package/dist/esm/base/theme/presets/base.d.ts +2 -0
- package/dist/esm/base/theme/presets/base.js +117 -0
- package/dist/esm/base/theme/presets/dark.d.ts +2 -0
- package/dist/esm/base/theme/presets/dark.js +33 -0
- package/dist/esm/base/theme/presets/index.d.ts +4 -0
- package/dist/esm/base/theme/presets/index.js +13 -0
- package/dist/esm/base/theme/presets/light.d.ts +2 -0
- package/dist/esm/base/theme/presets/light.js +33 -0
- package/dist/esm/base/theme/type.d.ts +141 -0
- package/dist/esm/base/theme/type.js +2 -0
- package/dist/esm/base/theme/utils.d.ts +4 -0
- package/dist/esm/base/theme/utils.js +38 -0
- package/dist/esm/env.d.ts +1 -0
- package/dist/esm/jsx-runtime.d.ts +27 -0
- package/dist/esm/jsx-runtime.js +6 -0
- package/dist/esm/plugins/blockquote/index.d.ts +2 -0
- package/dist/esm/plugins/blockquote/index.js +19 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/index.d.ts +13 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/index.js +14 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/blockquote/slot/blockquote/renderer/index.js +38 -0
- package/dist/esm/plugins/blockquote/slot/index.d.ts +1 -0
- package/dist/esm/plugins/blockquote/slot/index.js +3 -0
- package/dist/esm/plugins/break-line/index.d.ts +2 -0
- package/dist/esm/plugins/break-line/index.js +19 -0
- package/dist/esm/plugins/break-line/slot/break-line/index.d.ts +13 -0
- package/dist/esm/plugins/break-line/slot/break-line/index.js +14 -0
- package/dist/esm/plugins/break-line/slot/break-line/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/break-line/slot/break-line/renderer/index.js +18 -0
- package/dist/esm/plugins/break-line/slot/index.d.ts +1 -0
- package/dist/esm/plugins/break-line/slot/index.js +3 -0
- package/dist/esm/plugins/code/index.d.ts +4 -0
- package/dist/esm/plugins/code/index.js +23 -0
- package/dist/esm/plugins/code/render/code/index.d.ts +13 -0
- package/dist/esm/plugins/code/render/code/index.js +45 -0
- package/dist/esm/plugins/code/render/code/utils.d.ts +7 -0
- package/dist/esm/plugins/code/render/code/utils.js +61 -0
- package/dist/esm/plugins/code/render/index.d.ts +1 -0
- package/dist/esm/plugins/code/render/index.js +3 -0
- package/dist/esm/plugins/code/slot/code-block/index.d.ts +13 -0
- package/dist/esm/plugins/code/slot/code-block/index.js +14 -0
- package/dist/esm/plugins/code/slot/code-block/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code/slot/code-block/renderer/index.js +43 -0
- package/dist/esm/plugins/code/slot/code-header/index.d.ts +24 -0
- package/dist/esm/plugins/code/slot/code-header/index.js +14 -0
- package/dist/esm/plugins/code/slot/code-header/renderer/index.d.ts +13 -0
- package/dist/esm/plugins/code/slot/code-header/renderer/index.js +122 -0
- package/dist/esm/plugins/code/slot/code-highlighter/index.d.ts +14 -0
- package/dist/esm/plugins/code/slot/code-highlighter/index.js +16 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/index.d.ts +9 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/index.js +61 -0
- package/dist/esm/plugins/code/slot/code-highlighter/renderer/style.css +4 -0
- package/dist/esm/plugins/code/slot/index.d.ts +3 -0
- package/dist/esm/plugins/code/slot/index.js +7 -0
- package/dist/esm/plugins/code-prism/index.d.ts +3 -0
- package/dist/esm/plugins/code-prism/index.js +19 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/index.d.ts +16 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/index.js +14 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/hooks.d.ts +5 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/hooks.js +36 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/index.js +64 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/languages.d.ts +298 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/languages.js +899 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/runtime.d.ts +2 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/runtime.js +11 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/utils.d.ts +9 -0
- package/dist/esm/plugins/code-prism/slot/code-prism/renderer/utils.js +98 -0
- package/dist/esm/plugins/code-prism/slot/index.d.ts +1 -0
- package/dist/esm/plugins/code-prism/slot/index.js +3 -0
- package/dist/esm/plugins/code-shiki/index.d.ts +3 -0
- package/dist/esm/plugins/code-shiki/index.js +19 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/index.d.ts +16 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/index.js +14 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/hooks.d.ts +2 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/hooks.js +22 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/index.js +80 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/utils.d.ts +5 -0
- package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/utils.js +142 -0
- package/dist/esm/plugins/code-shiki/slot/index.d.ts +1 -0
- package/dist/esm/plugins/code-shiki/slot/index.js +3 -0
- package/dist/esm/plugins/effect-chunk/index.d.ts +2 -0
- package/dist/esm/plugins/effect-chunk/index.js +19 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/index.d.ts +17 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/index.js +16 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/index.js +54 -0
- package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/style.css +6 -0
- package/dist/esm/plugins/effect-chunk/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-chunk/slot/index.js +3 -0
- package/dist/esm/plugins/effect-scale/index.d.ts +4 -0
- package/dist/esm/plugins/effect-scale/index.js +22 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/index.d.ts +13 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/index.js +48 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/utils.d.ts +8 -0
- package/dist/esm/plugins/effect-scale/render/effect-scale/utils.js +27 -0
- package/dist/esm/plugins/effect-scale/render/index.d.ts +1 -0
- package/dist/esm/plugins/effect-scale/render/index.js +3 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/index.d.ts +17 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/index.js +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/animation.d.ts +12 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/animation.js +123 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/index.js +82 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/style.css +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/index.d.ts +14 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/index.js +16 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/renderer/index.d.ts +8 -0
- package/dist/esm/plugins/effect-scale/slot/effect-scale-word/renderer/index.js +35 -0
- package/dist/esm/plugins/effect-scale/slot/index.d.ts +2 -0
- package/dist/esm/plugins/effect-scale/slot/index.js +5 -0
- package/dist/esm/plugins/effect-shad/index.d.ts +4 -0
- package/dist/esm/plugins/effect-shad/index.js +21 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/index.d.ts +13 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/index.js +36 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/utils.d.ts +5 -0
- package/dist/esm/plugins/effect-shad/render/effect-shad/utils.js +21 -0
- package/dist/esm/plugins/effect-shad/render/index.d.ts +1 -0
- package/dist/esm/plugins/effect-shad/render/index.js +3 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/index.d.ts +17 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/index.js +16 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/index.d.ts +10 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/index.js +193 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/style.css +19 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/utils.d.ts +23 -0
- package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/utils.js +137 -0
- package/dist/esm/plugins/effect-shad/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-shad/slot/index.js +3 -0
- package/dist/esm/plugins/effect-suffix/index.d.ts +2 -0
- package/dist/esm/plugins/effect-suffix/index.js +19 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/index.d.ts +14 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/index.js +16 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/index.d.ts +9 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/index.js +62 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/style.css +63 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/utils.d.ts +17 -0
- package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/utils.js +36 -0
- package/dist/esm/plugins/effect-suffix/slot/index.d.ts +1 -0
- package/dist/esm/plugins/effect-suffix/slot/index.js +3 -0
- package/dist/esm/plugins/emphasis/index.d.ts +2 -0
- package/dist/esm/plugins/emphasis/index.js +19 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/index.d.ts +13 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/index.js +14 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/emphasis/slot/emphasis/renderer/index.js +33 -0
- package/dist/esm/plugins/emphasis/slot/index.d.ts +1 -0
- package/dist/esm/plugins/emphasis/slot/index.js +3 -0
- package/dist/esm/plugins/fallback/index.d.ts +4 -0
- package/dist/esm/plugins/fallback/index.js +21 -0
- package/dist/esm/plugins/fallback/render/fallback/index.d.ts +18 -0
- package/dist/esm/plugins/fallback/render/fallback/index.js +61 -0
- package/dist/esm/plugins/fallback/render/index.d.ts +1 -0
- package/dist/esm/plugins/fallback/render/index.js +3 -0
- package/dist/esm/plugins/fallback/slot/element/index.d.ts +13 -0
- package/dist/esm/plugins/fallback/slot/element/index.js +14 -0
- package/dist/esm/plugins/fallback/slot/element/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/fallback/slot/element/renderer/index.js +305 -0
- package/dist/esm/plugins/fallback/slot/index.d.ts +1 -0
- package/dist/esm/plugins/fallback/slot/index.js +3 -0
- package/dist/esm/plugins/heading/index.d.ts +2 -0
- package/dist/esm/plugins/heading/index.js +19 -0
- package/dist/esm/plugins/heading/slot/heading/index.d.ts +13 -0
- package/dist/esm/plugins/heading/slot/heading/index.js +14 -0
- package/dist/esm/plugins/heading/slot/heading/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/heading/slot/heading/renderer/index.js +44 -0
- package/dist/esm/plugins/heading/slot/index.d.ts +1 -0
- package/dist/esm/plugins/heading/slot/index.js +3 -0
- package/dist/esm/plugins/image/index.d.ts +2 -0
- package/dist/esm/plugins/image/index.js +19 -0
- package/dist/esm/plugins/image/slot/image/index.d.ts +13 -0
- package/dist/esm/plugins/image/slot/image/index.js +14 -0
- package/dist/esm/plugins/image/slot/image/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/image/slot/image/renderer/index.js +48 -0
- package/dist/esm/plugins/image/slot/index.d.ts +1 -0
- package/dist/esm/plugins/image/slot/index.js +3 -0
- package/dist/esm/plugins/link/index.d.ts +2 -0
- package/dist/esm/plugins/link/index.js +19 -0
- package/dist/esm/plugins/link/slot/index.d.ts +1 -0
- package/dist/esm/plugins/link/slot/index.js +3 -0
- package/dist/esm/plugins/link/slot/link/index.d.ts +13 -0
- package/dist/esm/plugins/link/slot/link/index.js +14 -0
- package/dist/esm/plugins/link/slot/link/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/link/slot/link/renderer/index.js +43 -0
- package/dist/esm/plugins/list/index.d.ts +2 -0
- package/dist/esm/plugins/list/index.js +19 -0
- package/dist/esm/plugins/list/slot/index.d.ts +1 -0
- package/dist/esm/plugins/list/slot/index.js +3 -0
- package/dist/esm/plugins/list/slot/list/index.d.ts +13 -0
- package/dist/esm/plugins/list/slot/list/index.js +14 -0
- package/dist/esm/plugins/list/slot/list/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/list/slot/list/renderer/index.js +26 -0
- package/dist/esm/plugins/paragraph/index.d.ts +2 -0
- package/dist/esm/plugins/paragraph/index.js +19 -0
- package/dist/esm/plugins/paragraph/slot/index.d.ts +1 -0
- package/dist/esm/plugins/paragraph/slot/index.js +3 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/index.d.ts +13 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/index.js +14 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/paragraph/slot/paragraph/renderer/index.js +29 -0
- package/dist/esm/plugins/strong/index.d.ts +2 -0
- package/dist/esm/plugins/strong/index.js +19 -0
- package/dist/esm/plugins/strong/slot/index.d.ts +1 -0
- package/dist/esm/plugins/strong/slot/index.js +3 -0
- package/dist/esm/plugins/strong/slot/strong/index.d.ts +13 -0
- package/dist/esm/plugins/strong/slot/strong/index.js +14 -0
- package/dist/esm/plugins/strong/slot/strong/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/strong/slot/strong/renderer/index.js +34 -0
- package/dist/esm/plugins/table/index.d.ts +4 -0
- package/dist/esm/plugins/table/index.js +23 -0
- package/dist/esm/plugins/table/render/index.d.ts +2 -0
- package/dist/esm/plugins/table/render/index.js +5 -0
- package/dist/esm/plugins/table/render/table/index.d.ts +13 -0
- package/dist/esm/plugins/table/render/table/index.js +64 -0
- package/dist/esm/plugins/table/render/table-cell/index.d.ts +13 -0
- package/dist/esm/plugins/table/render/table-cell/index.js +45 -0
- package/dist/esm/plugins/table/slot/index.d.ts +2 -0
- package/dist/esm/plugins/table/slot/index.js +5 -0
- package/dist/esm/plugins/table/slot/table/index.d.ts +13 -0
- package/dist/esm/plugins/table/slot/table/index.js +14 -0
- package/dist/esm/plugins/table/slot/table/renderer/index.d.ts +6 -0
- package/dist/esm/plugins/table/slot/table/renderer/index.js +38 -0
- package/dist/esm/plugins/table/slot/table/renderer/style.css +11 -0
- package/dist/esm/plugins/table/slot/table-cell/index.d.ts +13 -0
- package/dist/esm/plugins/table/slot/table-cell/index.js +14 -0
- package/dist/esm/plugins/table/slot/table-cell/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/table/slot/table-cell/renderer/index.js +52 -0
- package/dist/esm/plugins/tex/index.d.ts +2 -0
- package/dist/esm/plugins/tex/index.js +19 -0
- package/dist/esm/plugins/tex/slot/index.d.ts +1 -0
- package/dist/esm/plugins/tex/slot/index.js +3 -0
- package/dist/esm/plugins/tex/slot/tex/index.d.ts +14 -0
- package/dist/esm/plugins/tex/slot/tex/index.js +16 -0
- package/dist/esm/plugins/tex/slot/tex/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/tex/slot/tex/renderer/index.js +36 -0
- package/dist/esm/plugins/tex-mathjax/index.d.ts +3 -0
- package/dist/esm/plugins/tex-mathjax/index.js +19 -0
- package/dist/esm/plugins/tex-mathjax/slot/index.d.ts +1 -0
- package/dist/esm/plugins/tex-mathjax/slot/index.js +3 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/index.d.ts +14 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/index.js +16 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/index.d.ts +5 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/index.js +55 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/utils.d.ts +35 -0
- package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/utils.js +197 -0
- package/dist/esm/presets/full/index.d.ts +2 -0
- package/dist/esm/presets/full/index.js +85 -0
- package/dist/esm/presets/lite/index.d.ts +2 -0
- package/dist/esm/presets/lite/index.js +77 -0
- package/dist/esm/typings/index.d.ts +2 -0
- package/dist/esm/typings/index.js +7 -0
- package/dist/esm/typings/plugins/index.d.ts +1 -0
- package/dist/esm/typings/plugins/index.js +5 -0
- package/dist/esm/typings/plugins/plugins.d.ts +20 -0
- package/package.json +88 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { IntrinsicElements as LynxElements } from '@lynx-js/types';
|
|
2
|
+
import type { VNode, VNodeChild, VNodeRef } from 'vue';
|
|
3
|
+
export { Fragment, h as jsx, h as jsxDEV, h as jsxs } from 'vue';
|
|
4
|
+
type NativeElements = {
|
|
5
|
+
[K in keyof LynxElements]: Omit<LynxElements[K], 'children' | 'ref' | 'class'> & {
|
|
6
|
+
children?: VNodeChild;
|
|
7
|
+
class?: LynxElements['view']['class'];
|
|
8
|
+
key?: string | number | symbol;
|
|
9
|
+
ref?: VNodeRef;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare namespace JSX {
|
|
13
|
+
interface Element extends VNode {
|
|
14
|
+
}
|
|
15
|
+
interface ElementClass {
|
|
16
|
+
$props: {};
|
|
17
|
+
}
|
|
18
|
+
interface ElementAttributesProperty {
|
|
19
|
+
$props: {};
|
|
20
|
+
}
|
|
21
|
+
interface IntrinsicElements extends NativeElements {
|
|
22
|
+
}
|
|
23
|
+
interface IntrinsicAttributes {
|
|
24
|
+
key?: string | number | symbol;
|
|
25
|
+
ref?: VNodeRef;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { pluginExtends } from "@fluxdown/vue-base-plugins/base";
|
|
2
|
+
import { BlockquotePlugin } from "@fluxdown/vue-base-plugins/plugins/blockquote";
|
|
3
|
+
import { BlockquoteSlotPlugin } from "./slot/index.js";
|
|
4
|
+
|
|
5
|
+
export * from "./slot/index.js";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const blockquote_BlockquotePlugin = /*#__PURE__*/ pluginExtends(BlockquotePlugin, {
|
|
14
|
+
slots: [
|
|
15
|
+
BlockquoteSlotPlugin
|
|
16
|
+
]
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export { blockquote_BlockquotePlugin as BlockquotePlugin };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import { BaseSlotPlugin } from '../../../../base/index.js';
|
|
3
|
+
import { BlockquoteRenderer } from './renderer/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface VueSlotConfigs {
|
|
6
|
+
'slot-blockquote': IPluggableConfig<void>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class BlockquoteSlotPlugin extends BaseSlotPlugin<'Blockquote'> {
|
|
10
|
+
static readonly key = "slot-blockquote";
|
|
11
|
+
readonly Component: typeof BlockquoteRenderer;
|
|
12
|
+
readonly type = "Blockquote";
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseSlotPlugin } from "../../../../base/index.js";
|
|
2
|
+
import { BlockquoteRenderer } from "./renderer/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BlockquoteSlotPlugin extends BaseSlotPlugin {
|
|
9
|
+
static key = 'slot-blockquote';
|
|
10
|
+
Component = BlockquoteRenderer;
|
|
11
|
+
type = 'Blockquote';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { BlockquoteSlotPlugin };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BlockquoteProps } from '../../../../../base/index.js';
|
|
2
|
+
export declare function BlockquoteRenderer({ Raw: _Raw, children, class: className, current, parents, render: _render, style, ...elementProps }: BlockquoteProps): import("../../../../../jsx-runtime.js").JSX.Element;
|
|
3
|
+
export declare namespace BlockquoteRenderer {
|
|
4
|
+
var inheritAttrs: boolean;
|
|
5
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createVNode, mergeProps } from "vue";
|
|
2
|
+
import { TextStyleProvider, joinClassNames, useBlockStyle, useTextStyle, useTheme } from "../../../../../base/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const BlockquoteRenderer = ({ Raw: _Raw, children, class: className, current, parents, render: _render, style, ...elementProps })=>{
|
|
9
|
+
const { tokens } = useTheme();
|
|
10
|
+
const blockStyle = useBlockStyle(current, parents);
|
|
11
|
+
const textStyle = useTextStyle({
|
|
12
|
+
color: tokens.colors.fgMuted
|
|
13
|
+
});
|
|
14
|
+
return createVNode(TextStyleProvider, {
|
|
15
|
+
"value": textStyle
|
|
16
|
+
}, {
|
|
17
|
+
default: ()=>[
|
|
18
|
+
createVNode("view", mergeProps(elementProps, {
|
|
19
|
+
"class": joinClassNames('fluxdown-blockquote', className),
|
|
20
|
+
"style": {
|
|
21
|
+
display: 'flex',
|
|
22
|
+
flexDirection: 'column',
|
|
23
|
+
...blockStyle,
|
|
24
|
+
padding: `${tokens.spacing.sm} ${tokens.spacing.lg}`,
|
|
25
|
+
borderLeft: `3px solid ${tokens.colors.borderEmphasis}`,
|
|
26
|
+
borderRadius: `0 ${tokens.radius.md} ${tokens.radius.md} 0`,
|
|
27
|
+
backgroundColor: tokens.colors.surfaceSubtle,
|
|
28
|
+
...style
|
|
29
|
+
}
|
|
30
|
+
}), [
|
|
31
|
+
children
|
|
32
|
+
])
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
BlockquoteRenderer.inheritAttrs = false;
|
|
37
|
+
|
|
38
|
+
export { BlockquoteRenderer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './blockquote/index.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { pluginExtends } from "@fluxdown/vue-base-plugins/base";
|
|
2
|
+
import { BreakLinePlugin } from "@fluxdown/vue-base-plugins/plugins/break-line";
|
|
3
|
+
import { BreakLineSlotPlugin } from "./slot/index.js";
|
|
4
|
+
|
|
5
|
+
export * from "./slot/index.js";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const break_line_BreakLinePlugin = /*#__PURE__*/ pluginExtends(BreakLinePlugin, {
|
|
14
|
+
slots: [
|
|
15
|
+
BreakLineSlotPlugin
|
|
16
|
+
]
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export { break_line_BreakLinePlugin as BreakLinePlugin };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import { BaseSlotPlugin } from '../../../../base/index.js';
|
|
3
|
+
import { BreakLineRenderer } from './renderer/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface VueSlotConfigs {
|
|
6
|
+
'slot-break-line': IPluggableConfig<void>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class BreakLineSlotPlugin extends BaseSlotPlugin<'BreakLine'> {
|
|
10
|
+
static readonly key = "slot-break-line";
|
|
11
|
+
readonly Component: typeof BreakLineRenderer;
|
|
12
|
+
readonly type = "BreakLine";
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseSlotPlugin } from "../../../../base/index.js";
|
|
2
|
+
import { BreakLineRenderer } from "./renderer/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BreakLineSlotPlugin extends BaseSlotPlugin {
|
|
9
|
+
static key = 'slot-break-line';
|
|
10
|
+
Component = BreakLineRenderer;
|
|
11
|
+
type = 'BreakLine';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { BreakLineSlotPlugin };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BreakLineProps } from '../../../../../base/index.js';
|
|
2
|
+
export declare function BreakLineRenderer({ Raw: _Raw, class: className, style, ...elementProps }: BreakLineProps): import("../../../../../jsx-runtime.js").JSX.Element;
|
|
3
|
+
export declare namespace BreakLineRenderer {
|
|
4
|
+
var inheritAttrs: boolean;
|
|
5
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createVNode, mergeProps } from "vue";
|
|
2
|
+
import { AnimatedText, useTextStyle } from "../../../../../base/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const BreakLineRenderer = ({ Raw: _Raw, class: className, style, ...elementProps })=>createVNode(AnimatedText, mergeProps(elementProps, {
|
|
9
|
+
"class": className,
|
|
10
|
+
"style": useTextStyle(style)
|
|
11
|
+
}), {
|
|
12
|
+
default: ()=>[
|
|
13
|
+
'\n'
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
BreakLineRenderer.inheritAttrs = false;
|
|
17
|
+
|
|
18
|
+
export { BreakLineRenderer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './break-line/index.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CodeRenderPlugin } from "./render/index.js";
|
|
2
|
+
import { CodeBlockSlotPlugin, CodeHeaderSlotPlugin, CodeHighlighterSlotPlugin } from "./slot/index.js";
|
|
3
|
+
|
|
4
|
+
export * from "./render/index.js";
|
|
5
|
+
export * from "./slot/index.js";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const CodePlugin = {
|
|
13
|
+
renders: [
|
|
14
|
+
CodeRenderPlugin
|
|
15
|
+
],
|
|
16
|
+
slots: [
|
|
17
|
+
CodeHeaderSlotPlugin,
|
|
18
|
+
CodeBlockSlotPlugin,
|
|
19
|
+
CodeHighlighterSlotPlugin
|
|
20
|
+
]
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { CodePlugin };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import type { VueRenderMatchParams, VueRenderParams } from '@fluxdown/vue-base-plugins/base';
|
|
3
|
+
import { BaseVueRenderPlugin } from '@fluxdown/vue-base-plugins/base';
|
|
4
|
+
declare global {
|
|
5
|
+
interface VueRenderConfigs {
|
|
6
|
+
'render-code': IPluggableConfig<void>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class CodeRenderPlugin extends BaseVueRenderPlugin {
|
|
10
|
+
static readonly key = "render-code";
|
|
11
|
+
match({ node }: VueRenderMatchParams): boolean;
|
|
12
|
+
render({ getProps, node, parents, render, renderChildren }: VueRenderParams): import("../../../../jsx-runtime.js").JSX.Element;
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createVNode, mergeProps } from "vue";
|
|
2
|
+
import { assert } from "@fluxdown/utils";
|
|
3
|
+
import { BaseVueRenderPlugin, isElementWithTag } from "@fluxdown/vue-base-plugins/base";
|
|
4
|
+
import { createTypeOfSlot } from "../../../../base/index.js";
|
|
5
|
+
import { getCode, getCodeElement, getCodeSuffix, getLanguage, getMeta } from "./utils.js";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
const CodeBlock = /*#__PURE__*/ createTypeOfSlot('CodeBlock');
|
|
18
|
+
class CodeRenderPlugin extends BaseVueRenderPlugin {
|
|
19
|
+
static key = 'render-code';
|
|
20
|
+
match({ node }) {
|
|
21
|
+
return isElementWithTag(node, 'pre');
|
|
22
|
+
}
|
|
23
|
+
render({ getProps, node, parents, render, renderChildren }) {
|
|
24
|
+
assert(isElementWithTag(node, 'pre'));
|
|
25
|
+
const codeElement = getCodeElement(node);
|
|
26
|
+
const suffix = getCodeSuffix(node);
|
|
27
|
+
const { 'data-meta': _dataMeta, dataMeta: _camelDataMeta, ...props } = getProps(node);
|
|
28
|
+
return createVNode(CodeBlock, mergeProps(props, {
|
|
29
|
+
"current": node,
|
|
30
|
+
"parents": parents,
|
|
31
|
+
"render": render,
|
|
32
|
+
"code": getCode(node, codeElement),
|
|
33
|
+
"language": getLanguage(node, codeElement) ?? 'plaintext',
|
|
34
|
+
"meta": getMeta(node, codeElement),
|
|
35
|
+
"suffix": suffix ? codeElement ? renderChildren({
|
|
36
|
+
...codeElement,
|
|
37
|
+
children: [
|
|
38
|
+
suffix
|
|
39
|
+
]
|
|
40
|
+
}) : render(suffix) : undefined
|
|
41
|
+
}), null);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { CodeRenderPlugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Element } from 'hast';
|
|
2
|
+
export declare const getCodeElement: (node: Element) => Element | undefined;
|
|
3
|
+
export declare const getLanguage: (pre: Element, code: Element | undefined) => string | undefined;
|
|
4
|
+
export declare const getMeta: (pre: Element, code: Element | undefined) => string | undefined;
|
|
5
|
+
export declare const getCode: (pre: Element, code: Element | undefined) => string;
|
|
6
|
+
/** Code slots render highlighted text independently; retain its tail decoration. */
|
|
7
|
+
export declare const getCodeSuffix: (node: Element) => Element | undefined;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { isSuffixNode } from "@fluxdown/core-plugins/plugins/mapper/suffix";
|
|
2
|
+
import { getStringProperty, getTextContent, isElementWithTag } from "@fluxdown/vue-base-plugins/base";
|
|
3
|
+
import { isString } from "lodash-es";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const getCodeElement = (node)=>node.children.find((child)=>isElementWithTag(child, 'code'));
|
|
12
|
+
const getClassNames = (node)=>{
|
|
13
|
+
const value = node?.properties?.className;
|
|
14
|
+
if (Array.isArray(value)) {
|
|
15
|
+
return value.flatMap((item)=>String(item).split(/\s+/));
|
|
16
|
+
}
|
|
17
|
+
return isString(value) ? value.split(/\s+/) : [];
|
|
18
|
+
};
|
|
19
|
+
const getLanguage = (pre, code)=>{
|
|
20
|
+
const explicit = getStringProperty(code?.properties?.dataLanguage) ?? getStringProperty(pre.properties?.dataLanguage);
|
|
21
|
+
if (explicit) {
|
|
22
|
+
return explicit;
|
|
23
|
+
}
|
|
24
|
+
for (const className of [
|
|
25
|
+
...getClassNames(code),
|
|
26
|
+
...getClassNames(pre)
|
|
27
|
+
]){
|
|
28
|
+
const match = /^(?:lang|language)-(.+)$/.exec(className);
|
|
29
|
+
if (match?.[1]) {
|
|
30
|
+
return match[1];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
};
|
|
35
|
+
const getMeta = (pre, code)=>{
|
|
36
|
+
const codeMeta = code?.data && 'meta' in code.data ? code.data.meta : undefined;
|
|
37
|
+
const preMeta = pre.data && 'meta' in pre.data ? pre.data.meta : undefined;
|
|
38
|
+
const meta = getStringProperty(code?.properties?.dataMeta) ?? getStringProperty(pre.properties?.dataMeta) ?? getStringProperty(codeMeta) ?? getStringProperty(preMeta);
|
|
39
|
+
if (!meta) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
const publicMeta = meta.split(/\s+/).filter((token)=>token && !token.startsWith('__')).join(' ');
|
|
43
|
+
return publicMeta || undefined;
|
|
44
|
+
};
|
|
45
|
+
const getCode = (pre, code)=>getTextContent(code ?? pre).replace(/\r?\n$/, ''); /** Code slots render highlighted text independently; retain its tail decoration. */
|
|
46
|
+
const getCodeSuffix = (node)=>{
|
|
47
|
+
if (isSuffixNode(node)) {
|
|
48
|
+
return node;
|
|
49
|
+
}
|
|
50
|
+
for (const child of node.children){
|
|
51
|
+
if (child.type === 'element') {
|
|
52
|
+
const suffix = getCodeSuffix(child);
|
|
53
|
+
if (suffix) {
|
|
54
|
+
return suffix;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export { getCode, getCodeElement, getCodeSuffix, getLanguage, getMeta };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './code/index.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import { BaseSlotPlugin } from '../../../../base/index.js';
|
|
3
|
+
import { CodeBlockRenderer } from './renderer/index.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface VueSlotConfigs {
|
|
6
|
+
'slot-code-block': IPluggableConfig<void>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class CodeBlockSlotPlugin extends BaseSlotPlugin<'CodeBlock'> {
|
|
10
|
+
static readonly key = "slot-code-block";
|
|
11
|
+
readonly Component: typeof CodeBlockRenderer;
|
|
12
|
+
readonly type = "CodeBlock";
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseSlotPlugin } from "../../../../base/index.js";
|
|
2
|
+
import { CodeBlockRenderer } from "./renderer/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CodeBlockSlotPlugin extends BaseSlotPlugin {
|
|
9
|
+
static key = 'slot-code-block';
|
|
10
|
+
Component = CodeBlockRenderer;
|
|
11
|
+
type = 'CodeBlock';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { CodeBlockSlotPlugin };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CodeBlockProps } from '../../../../../base/index.js';
|
|
2
|
+
export declare function CodeBlockRenderer({ Raw: _Raw, class: className, code, current, language, loading: _loading, meta, onCopy, parents, render: _render, showHeader, style, suffix, ...elementProps }: CodeBlockProps): import("../../../../../jsx-runtime.js").JSX.Element;
|
|
3
|
+
export declare namespace CodeBlockRenderer {
|
|
4
|
+
var inheritAttrs: boolean;
|
|
5
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { createVNode, mergeProps } from "vue";
|
|
2
|
+
import { createTypeOfSlot, joinClassNames, useBlockStyle, useTheme } from "../../../../../base/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const CodeHeader = /*#__PURE__*/ createTypeOfSlot('CodeHeader');
|
|
9
|
+
const CodeHighlighter = /*#__PURE__*/ createTypeOfSlot('CodeHighlighter');
|
|
10
|
+
const CodeBlockRenderer = ({ Raw: _Raw, class: className, code, current, language, loading: _loading, meta, onCopy, parents, render: _render, showHeader = true, style, suffix, ...elementProps })=>{
|
|
11
|
+
const { tokens } = useTheme();
|
|
12
|
+
const blockStyle = useBlockStyle(current, parents);
|
|
13
|
+
return createVNode("view", mergeProps(elementProps, {
|
|
14
|
+
"class": joinClassNames('fluxdown-code', className),
|
|
15
|
+
"style": {
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flexDirection: 'column',
|
|
18
|
+
minWidth: '0px',
|
|
19
|
+
...blockStyle,
|
|
20
|
+
border: `1px solid ${tokens.colors.border}`,
|
|
21
|
+
borderRadius: tokens.radius.lg,
|
|
22
|
+
overflow: 'hidden',
|
|
23
|
+
backgroundColor: tokens.colors.surfaceSubtle,
|
|
24
|
+
...style
|
|
25
|
+
}
|
|
26
|
+
}), [
|
|
27
|
+
showHeader ? createVNode(CodeHeader, {
|
|
28
|
+
"code": code,
|
|
29
|
+
"language": language,
|
|
30
|
+
"meta": meta,
|
|
31
|
+
"onCopy": onCopy
|
|
32
|
+
}, null) : null,
|
|
33
|
+
createVNode(CodeHighlighter, {
|
|
34
|
+
"code": code,
|
|
35
|
+
"language": language,
|
|
36
|
+
"meta": meta,
|
|
37
|
+
"suffix": suffix
|
|
38
|
+
}, null)
|
|
39
|
+
]);
|
|
40
|
+
};
|
|
41
|
+
CodeBlockRenderer.inheritAttrs = false;
|
|
42
|
+
|
|
43
|
+
export { CodeBlockRenderer };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IPluggableConfig } from '@fluxdown/types';
|
|
2
|
+
import { BaseSlotPlugin } from '../../../../base/index.js';
|
|
3
|
+
declare global {
|
|
4
|
+
interface VueSlotConfigs {
|
|
5
|
+
'slot-code-header': IPluggableConfig<void>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare class CodeHeaderSlotPlugin extends BaseSlotPlugin<'CodeHeader'> {
|
|
9
|
+
static readonly key = "slot-code-header";
|
|
10
|
+
readonly Component: import("vue").DefineSetupFnComponent<Omit<import("@fluxdown/vue-base-plugins/base").CodeHeaderProps, "Raw" | "onCopy" | keyof import("../../../../base/index.js").SlotBaseAttributes> & import("../../../../base/index.js").SlotBaseAttributes & {
|
|
11
|
+
onCopy?: import("../../../../base/index.js").CodeBlockHandleCopyFunction;
|
|
12
|
+
} & {
|
|
13
|
+
Raw: import("@fluxdown/vue-base-plugins/base").SlotPositionType<Omit<import("@fluxdown/vue-base-plugins/base").CodeHeaderProps, "Raw" | "onCopy" | keyof import("../../../../base/index.js").SlotBaseAttributes> & import("../../../../base/index.js").SlotBaseAttributes & {
|
|
14
|
+
onCopy?: import("../../../../base/index.js").CodeBlockHandleCopyFunction;
|
|
15
|
+
}>;
|
|
16
|
+
}, {}, {}, Omit<import("@fluxdown/vue-base-plugins/base").CodeHeaderProps, "Raw" | "onCopy" | keyof import("../../../../base/index.js").SlotBaseAttributes> & import("../../../../base/index.js").SlotBaseAttributes & {
|
|
17
|
+
onCopy?: import("../../../../base/index.js").CodeBlockHandleCopyFunction;
|
|
18
|
+
} & {
|
|
19
|
+
Raw: import("@fluxdown/vue-base-plugins/base").SlotPositionType<Omit<import("@fluxdown/vue-base-plugins/base").CodeHeaderProps, "Raw" | "onCopy" | keyof import("../../../../base/index.js").SlotBaseAttributes> & import("../../../../base/index.js").SlotBaseAttributes & {
|
|
20
|
+
onCopy?: import("../../../../base/index.js").CodeBlockHandleCopyFunction;
|
|
21
|
+
}>;
|
|
22
|
+
} & {}, import("vue").PublicProps>;
|
|
23
|
+
readonly type = "CodeHeader";
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseSlotPlugin } from "../../../../base/index.js";
|
|
2
|
+
import { CodeHeaderRenderer } from "./renderer/index.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CodeHeaderSlotPlugin extends BaseSlotPlugin {
|
|
9
|
+
static key = 'slot-code-header';
|
|
10
|
+
Component = CodeHeaderRenderer;
|
|
11
|
+
type = 'CodeHeader';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { CodeHeaderSlotPlugin };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const CodeHeaderRenderer: import("vue").DefineSetupFnComponent<Omit<import("@fluxdown/vue-base-plugins/base").CodeHeaderProps, "Raw" | "onCopy" | keyof import("../../../../../base/index.js").SlotBaseAttributes> & import("../../../../../base/index.js").SlotBaseAttributes & {
|
|
2
|
+
onCopy?: import("../../../../../base/index.js").CodeBlockHandleCopyFunction;
|
|
3
|
+
} & {
|
|
4
|
+
Raw: import("@fluxdown/vue-base-plugins/base").SlotPositionType<Omit<import("@fluxdown/vue-base-plugins/base").CodeHeaderProps, "Raw" | "onCopy" | keyof import("../../../../../base/index.js").SlotBaseAttributes> & import("../../../../../base/index.js").SlotBaseAttributes & {
|
|
5
|
+
onCopy?: import("../../../../../base/index.js").CodeBlockHandleCopyFunction;
|
|
6
|
+
}>;
|
|
7
|
+
}, {}, {}, Omit<import("@fluxdown/vue-base-plugins/base").CodeHeaderProps, "Raw" | "onCopy" | keyof import("../../../../../base/index.js").SlotBaseAttributes> & import("../../../../../base/index.js").SlotBaseAttributes & {
|
|
8
|
+
onCopy?: import("../../../../../base/index.js").CodeBlockHandleCopyFunction;
|
|
9
|
+
} & {
|
|
10
|
+
Raw: import("@fluxdown/vue-base-plugins/base").SlotPositionType<Omit<import("@fluxdown/vue-base-plugins/base").CodeHeaderProps, "Raw" | "onCopy" | keyof import("../../../../../base/index.js").SlotBaseAttributes> & import("../../../../../base/index.js").SlotBaseAttributes & {
|
|
11
|
+
onCopy?: import("../../../../../base/index.js").CodeBlockHandleCopyFunction;
|
|
12
|
+
}>;
|
|
13
|
+
} & {}, import("vue").PublicProps>;
|