@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.
Files changed (300) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +21 -0
  3. package/README.md +4 -2
  4. package/dist/esm/base/components/animated-text/animation.d.ts +6 -0
  5. package/dist/esm/base/components/animated-text/animation.js +67 -0
  6. package/dist/esm/base/components/animated-text/index.d.ts +16 -0
  7. package/dist/esm/base/components/animated-text/index.js +86 -0
  8. package/dist/esm/base/components/index.d.ts +1 -0
  9. package/dist/esm/base/components/index.js +3 -0
  10. package/dist/esm/base/consts/defaults.d.ts +1 -0
  11. package/dist/esm/base/consts/defaults.js +3 -0
  12. package/dist/esm/base/consts/index.d.ts +1 -0
  13. package/dist/esm/base/consts/index.js +3 -0
  14. package/dist/esm/base/context/index.d.ts +2 -0
  15. package/dist/esm/base/context/index.js +5 -0
  16. package/dist/esm/base/context/text-animation/index.d.ts +14 -0
  17. package/dist/esm/base/context/text-animation/index.js +22 -0
  18. package/dist/esm/base/context/text-animation/type.d.ts +4 -0
  19. package/dist/esm/base/context/text-animation/type.js +2 -0
  20. package/dist/esm/base/context/text-layout-width/index.d.ts +11 -0
  21. package/dist/esm/base/context/text-layout-width/index.js +20 -0
  22. package/dist/esm/base/index.d.ts +6 -0
  23. package/dist/esm/base/index.js +13 -0
  24. package/dist/esm/base/render/index.d.ts +2 -0
  25. package/dist/esm/base/render/index.js +5 -0
  26. package/dist/esm/base/render/layout.d.ts +9 -0
  27. package/dist/esm/base/render/layout.js +111 -0
  28. package/dist/esm/base/render/props.d.ts +3 -0
  29. package/dist/esm/base/render/props.js +43 -0
  30. package/dist/esm/base/slot/base.d.ts +5 -0
  31. package/dist/esm/base/slot/base.js +8 -0
  32. package/dist/esm/base/slot/index.d.ts +3 -0
  33. package/dist/esm/base/slot/index.js +7 -0
  34. package/dist/esm/base/slot/type.d.ts +92 -0
  35. package/dist/esm/base/slot/type.js +2 -0
  36. package/dist/esm/base/slot/utils/create.d.ts +3 -0
  37. package/dist/esm/base/slot/utils/create.js +7 -0
  38. package/dist/esm/base/slot/utils/index.d.ts +3 -0
  39. package/dist/esm/base/slot/utils/index.js +7 -0
  40. package/dist/esm/base/slot/utils/style.d.ts +1 -0
  41. package/dist/esm/base/slot/utils/style.js +3 -0
  42. package/dist/esm/base/slot/utils/url.d.ts +4 -0
  43. package/dist/esm/base/slot/utils/url.js +21 -0
  44. package/dist/esm/base/theme/index.d.ts +25 -0
  45. package/dist/esm/base/theme/index.js +78 -0
  46. package/dist/esm/base/theme/presets/base.d.ts +2 -0
  47. package/dist/esm/base/theme/presets/base.js +117 -0
  48. package/dist/esm/base/theme/presets/dark.d.ts +2 -0
  49. package/dist/esm/base/theme/presets/dark.js +33 -0
  50. package/dist/esm/base/theme/presets/index.d.ts +4 -0
  51. package/dist/esm/base/theme/presets/index.js +13 -0
  52. package/dist/esm/base/theme/presets/light.d.ts +2 -0
  53. package/dist/esm/base/theme/presets/light.js +33 -0
  54. package/dist/esm/base/theme/type.d.ts +141 -0
  55. package/dist/esm/base/theme/type.js +2 -0
  56. package/dist/esm/base/theme/utils.d.ts +4 -0
  57. package/dist/esm/base/theme/utils.js +38 -0
  58. package/dist/esm/env.d.ts +1 -0
  59. package/dist/esm/jsx-runtime.d.ts +27 -0
  60. package/dist/esm/jsx-runtime.js +6 -0
  61. package/dist/esm/plugins/blockquote/index.d.ts +2 -0
  62. package/dist/esm/plugins/blockquote/index.js +19 -0
  63. package/dist/esm/plugins/blockquote/slot/blockquote/index.d.ts +13 -0
  64. package/dist/esm/plugins/blockquote/slot/blockquote/index.js +14 -0
  65. package/dist/esm/plugins/blockquote/slot/blockquote/renderer/index.d.ts +5 -0
  66. package/dist/esm/plugins/blockquote/slot/blockquote/renderer/index.js +38 -0
  67. package/dist/esm/plugins/blockquote/slot/index.d.ts +1 -0
  68. package/dist/esm/plugins/blockquote/slot/index.js +3 -0
  69. package/dist/esm/plugins/break-line/index.d.ts +2 -0
  70. package/dist/esm/plugins/break-line/index.js +19 -0
  71. package/dist/esm/plugins/break-line/slot/break-line/index.d.ts +13 -0
  72. package/dist/esm/plugins/break-line/slot/break-line/index.js +14 -0
  73. package/dist/esm/plugins/break-line/slot/break-line/renderer/index.d.ts +5 -0
  74. package/dist/esm/plugins/break-line/slot/break-line/renderer/index.js +18 -0
  75. package/dist/esm/plugins/break-line/slot/index.d.ts +1 -0
  76. package/dist/esm/plugins/break-line/slot/index.js +3 -0
  77. package/dist/esm/plugins/code/index.d.ts +4 -0
  78. package/dist/esm/plugins/code/index.js +23 -0
  79. package/dist/esm/plugins/code/render/code/index.d.ts +13 -0
  80. package/dist/esm/plugins/code/render/code/index.js +45 -0
  81. package/dist/esm/plugins/code/render/code/utils.d.ts +7 -0
  82. package/dist/esm/plugins/code/render/code/utils.js +61 -0
  83. package/dist/esm/plugins/code/render/index.d.ts +1 -0
  84. package/dist/esm/plugins/code/render/index.js +3 -0
  85. package/dist/esm/plugins/code/slot/code-block/index.d.ts +13 -0
  86. package/dist/esm/plugins/code/slot/code-block/index.js +14 -0
  87. package/dist/esm/plugins/code/slot/code-block/renderer/index.d.ts +5 -0
  88. package/dist/esm/plugins/code/slot/code-block/renderer/index.js +43 -0
  89. package/dist/esm/plugins/code/slot/code-header/index.d.ts +24 -0
  90. package/dist/esm/plugins/code/slot/code-header/index.js +14 -0
  91. package/dist/esm/plugins/code/slot/code-header/renderer/index.d.ts +13 -0
  92. package/dist/esm/plugins/code/slot/code-header/renderer/index.js +122 -0
  93. package/dist/esm/plugins/code/slot/code-highlighter/index.d.ts +14 -0
  94. package/dist/esm/plugins/code/slot/code-highlighter/index.js +16 -0
  95. package/dist/esm/plugins/code/slot/code-highlighter/renderer/index.d.ts +9 -0
  96. package/dist/esm/plugins/code/slot/code-highlighter/renderer/index.js +61 -0
  97. package/dist/esm/plugins/code/slot/code-highlighter/renderer/style.css +4 -0
  98. package/dist/esm/plugins/code/slot/index.d.ts +3 -0
  99. package/dist/esm/plugins/code/slot/index.js +7 -0
  100. package/dist/esm/plugins/code-prism/index.d.ts +3 -0
  101. package/dist/esm/plugins/code-prism/index.js +19 -0
  102. package/dist/esm/plugins/code-prism/slot/code-prism/index.d.ts +16 -0
  103. package/dist/esm/plugins/code-prism/slot/code-prism/index.js +14 -0
  104. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/hooks.d.ts +5 -0
  105. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/hooks.js +36 -0
  106. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/index.d.ts +5 -0
  107. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/index.js +64 -0
  108. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/languages.d.ts +298 -0
  109. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/languages.js +899 -0
  110. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/runtime.d.ts +2 -0
  111. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/runtime.js +11 -0
  112. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/utils.d.ts +9 -0
  113. package/dist/esm/plugins/code-prism/slot/code-prism/renderer/utils.js +98 -0
  114. package/dist/esm/plugins/code-prism/slot/index.d.ts +1 -0
  115. package/dist/esm/plugins/code-prism/slot/index.js +3 -0
  116. package/dist/esm/plugins/code-shiki/index.d.ts +3 -0
  117. package/dist/esm/plugins/code-shiki/index.js +19 -0
  118. package/dist/esm/plugins/code-shiki/slot/code-shiki/index.d.ts +16 -0
  119. package/dist/esm/plugins/code-shiki/slot/code-shiki/index.js +14 -0
  120. package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/hooks.d.ts +2 -0
  121. package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/hooks.js +22 -0
  122. package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/index.d.ts +5 -0
  123. package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/index.js +80 -0
  124. package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/utils.d.ts +5 -0
  125. package/dist/esm/plugins/code-shiki/slot/code-shiki/renderer/utils.js +142 -0
  126. package/dist/esm/plugins/code-shiki/slot/index.d.ts +1 -0
  127. package/dist/esm/plugins/code-shiki/slot/index.js +3 -0
  128. package/dist/esm/plugins/effect-chunk/index.d.ts +2 -0
  129. package/dist/esm/plugins/effect-chunk/index.js +19 -0
  130. package/dist/esm/plugins/effect-chunk/slot/effect-chunk/index.d.ts +17 -0
  131. package/dist/esm/plugins/effect-chunk/slot/effect-chunk/index.js +16 -0
  132. package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/index.d.ts +10 -0
  133. package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/index.js +54 -0
  134. package/dist/esm/plugins/effect-chunk/slot/effect-chunk/renderer/style.css +6 -0
  135. package/dist/esm/plugins/effect-chunk/slot/index.d.ts +1 -0
  136. package/dist/esm/plugins/effect-chunk/slot/index.js +3 -0
  137. package/dist/esm/plugins/effect-scale/index.d.ts +4 -0
  138. package/dist/esm/plugins/effect-scale/index.js +22 -0
  139. package/dist/esm/plugins/effect-scale/render/effect-scale/index.d.ts +13 -0
  140. package/dist/esm/plugins/effect-scale/render/effect-scale/index.js +48 -0
  141. package/dist/esm/plugins/effect-scale/render/effect-scale/utils.d.ts +8 -0
  142. package/dist/esm/plugins/effect-scale/render/effect-scale/utils.js +27 -0
  143. package/dist/esm/plugins/effect-scale/render/index.d.ts +1 -0
  144. package/dist/esm/plugins/effect-scale/render/index.js +3 -0
  145. package/dist/esm/plugins/effect-scale/slot/effect-scale/index.d.ts +17 -0
  146. package/dist/esm/plugins/effect-scale/slot/effect-scale/index.js +16 -0
  147. package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/animation.d.ts +12 -0
  148. package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/animation.js +123 -0
  149. package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/index.d.ts +10 -0
  150. package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/index.js +82 -0
  151. package/dist/esm/plugins/effect-scale/slot/effect-scale/renderer/style.css +16 -0
  152. package/dist/esm/plugins/effect-scale/slot/effect-scale-word/index.d.ts +14 -0
  153. package/dist/esm/plugins/effect-scale/slot/effect-scale-word/index.js +16 -0
  154. package/dist/esm/plugins/effect-scale/slot/effect-scale-word/renderer/index.d.ts +8 -0
  155. package/dist/esm/plugins/effect-scale/slot/effect-scale-word/renderer/index.js +35 -0
  156. package/dist/esm/plugins/effect-scale/slot/index.d.ts +2 -0
  157. package/dist/esm/plugins/effect-scale/slot/index.js +5 -0
  158. package/dist/esm/plugins/effect-shad/index.d.ts +4 -0
  159. package/dist/esm/plugins/effect-shad/index.js +21 -0
  160. package/dist/esm/plugins/effect-shad/render/effect-shad/index.d.ts +13 -0
  161. package/dist/esm/plugins/effect-shad/render/effect-shad/index.js +36 -0
  162. package/dist/esm/plugins/effect-shad/render/effect-shad/utils.d.ts +5 -0
  163. package/dist/esm/plugins/effect-shad/render/effect-shad/utils.js +21 -0
  164. package/dist/esm/plugins/effect-shad/render/index.d.ts +1 -0
  165. package/dist/esm/plugins/effect-shad/render/index.js +3 -0
  166. package/dist/esm/plugins/effect-shad/slot/effect-shad/index.d.ts +17 -0
  167. package/dist/esm/plugins/effect-shad/slot/effect-shad/index.js +16 -0
  168. package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/index.d.ts +10 -0
  169. package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/index.js +193 -0
  170. package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/style.css +19 -0
  171. package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/utils.d.ts +23 -0
  172. package/dist/esm/plugins/effect-shad/slot/effect-shad/renderer/utils.js +137 -0
  173. package/dist/esm/plugins/effect-shad/slot/index.d.ts +1 -0
  174. package/dist/esm/plugins/effect-shad/slot/index.js +3 -0
  175. package/dist/esm/plugins/effect-suffix/index.d.ts +2 -0
  176. package/dist/esm/plugins/effect-suffix/index.js +19 -0
  177. package/dist/esm/plugins/effect-suffix/slot/effect-suffix/index.d.ts +14 -0
  178. package/dist/esm/plugins/effect-suffix/slot/effect-suffix/index.js +16 -0
  179. package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/index.d.ts +9 -0
  180. package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/index.js +62 -0
  181. package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/style.css +63 -0
  182. package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/utils.d.ts +17 -0
  183. package/dist/esm/plugins/effect-suffix/slot/effect-suffix/renderer/utils.js +36 -0
  184. package/dist/esm/plugins/effect-suffix/slot/index.d.ts +1 -0
  185. package/dist/esm/plugins/effect-suffix/slot/index.js +3 -0
  186. package/dist/esm/plugins/emphasis/index.d.ts +2 -0
  187. package/dist/esm/plugins/emphasis/index.js +19 -0
  188. package/dist/esm/plugins/emphasis/slot/emphasis/index.d.ts +13 -0
  189. package/dist/esm/plugins/emphasis/slot/emphasis/index.js +14 -0
  190. package/dist/esm/plugins/emphasis/slot/emphasis/renderer/index.d.ts +5 -0
  191. package/dist/esm/plugins/emphasis/slot/emphasis/renderer/index.js +33 -0
  192. package/dist/esm/plugins/emphasis/slot/index.d.ts +1 -0
  193. package/dist/esm/plugins/emphasis/slot/index.js +3 -0
  194. package/dist/esm/plugins/fallback/index.d.ts +4 -0
  195. package/dist/esm/plugins/fallback/index.js +21 -0
  196. package/dist/esm/plugins/fallback/render/fallback/index.d.ts +18 -0
  197. package/dist/esm/plugins/fallback/render/fallback/index.js +61 -0
  198. package/dist/esm/plugins/fallback/render/index.d.ts +1 -0
  199. package/dist/esm/plugins/fallback/render/index.js +3 -0
  200. package/dist/esm/plugins/fallback/slot/element/index.d.ts +13 -0
  201. package/dist/esm/plugins/fallback/slot/element/index.js +14 -0
  202. package/dist/esm/plugins/fallback/slot/element/renderer/index.d.ts +5 -0
  203. package/dist/esm/plugins/fallback/slot/element/renderer/index.js +305 -0
  204. package/dist/esm/plugins/fallback/slot/index.d.ts +1 -0
  205. package/dist/esm/plugins/fallback/slot/index.js +3 -0
  206. package/dist/esm/plugins/heading/index.d.ts +2 -0
  207. package/dist/esm/plugins/heading/index.js +19 -0
  208. package/dist/esm/plugins/heading/slot/heading/index.d.ts +13 -0
  209. package/dist/esm/plugins/heading/slot/heading/index.js +14 -0
  210. package/dist/esm/plugins/heading/slot/heading/renderer/index.d.ts +5 -0
  211. package/dist/esm/plugins/heading/slot/heading/renderer/index.js +44 -0
  212. package/dist/esm/plugins/heading/slot/index.d.ts +1 -0
  213. package/dist/esm/plugins/heading/slot/index.js +3 -0
  214. package/dist/esm/plugins/image/index.d.ts +2 -0
  215. package/dist/esm/plugins/image/index.js +19 -0
  216. package/dist/esm/plugins/image/slot/image/index.d.ts +13 -0
  217. package/dist/esm/plugins/image/slot/image/index.js +14 -0
  218. package/dist/esm/plugins/image/slot/image/renderer/index.d.ts +5 -0
  219. package/dist/esm/plugins/image/slot/image/renderer/index.js +48 -0
  220. package/dist/esm/plugins/image/slot/index.d.ts +1 -0
  221. package/dist/esm/plugins/image/slot/index.js +3 -0
  222. package/dist/esm/plugins/link/index.d.ts +2 -0
  223. package/dist/esm/plugins/link/index.js +19 -0
  224. package/dist/esm/plugins/link/slot/index.d.ts +1 -0
  225. package/dist/esm/plugins/link/slot/index.js +3 -0
  226. package/dist/esm/plugins/link/slot/link/index.d.ts +13 -0
  227. package/dist/esm/plugins/link/slot/link/index.js +14 -0
  228. package/dist/esm/plugins/link/slot/link/renderer/index.d.ts +5 -0
  229. package/dist/esm/plugins/link/slot/link/renderer/index.js +43 -0
  230. package/dist/esm/plugins/list/index.d.ts +2 -0
  231. package/dist/esm/plugins/list/index.js +19 -0
  232. package/dist/esm/plugins/list/slot/index.d.ts +1 -0
  233. package/dist/esm/plugins/list/slot/index.js +3 -0
  234. package/dist/esm/plugins/list/slot/list/index.d.ts +13 -0
  235. package/dist/esm/plugins/list/slot/list/index.js +14 -0
  236. package/dist/esm/plugins/list/slot/list/renderer/index.d.ts +5 -0
  237. package/dist/esm/plugins/list/slot/list/renderer/index.js +26 -0
  238. package/dist/esm/plugins/paragraph/index.d.ts +2 -0
  239. package/dist/esm/plugins/paragraph/index.js +19 -0
  240. package/dist/esm/plugins/paragraph/slot/index.d.ts +1 -0
  241. package/dist/esm/plugins/paragraph/slot/index.js +3 -0
  242. package/dist/esm/plugins/paragraph/slot/paragraph/index.d.ts +13 -0
  243. package/dist/esm/plugins/paragraph/slot/paragraph/index.js +14 -0
  244. package/dist/esm/plugins/paragraph/slot/paragraph/renderer/index.d.ts +5 -0
  245. package/dist/esm/plugins/paragraph/slot/paragraph/renderer/index.js +29 -0
  246. package/dist/esm/plugins/strong/index.d.ts +2 -0
  247. package/dist/esm/plugins/strong/index.js +19 -0
  248. package/dist/esm/plugins/strong/slot/index.d.ts +1 -0
  249. package/dist/esm/plugins/strong/slot/index.js +3 -0
  250. package/dist/esm/plugins/strong/slot/strong/index.d.ts +13 -0
  251. package/dist/esm/plugins/strong/slot/strong/index.js +14 -0
  252. package/dist/esm/plugins/strong/slot/strong/renderer/index.d.ts +5 -0
  253. package/dist/esm/plugins/strong/slot/strong/renderer/index.js +34 -0
  254. package/dist/esm/plugins/table/index.d.ts +4 -0
  255. package/dist/esm/plugins/table/index.js +23 -0
  256. package/dist/esm/plugins/table/render/index.d.ts +2 -0
  257. package/dist/esm/plugins/table/render/index.js +5 -0
  258. package/dist/esm/plugins/table/render/table/index.d.ts +13 -0
  259. package/dist/esm/plugins/table/render/table/index.js +64 -0
  260. package/dist/esm/plugins/table/render/table-cell/index.d.ts +13 -0
  261. package/dist/esm/plugins/table/render/table-cell/index.js +45 -0
  262. package/dist/esm/plugins/table/slot/index.d.ts +2 -0
  263. package/dist/esm/plugins/table/slot/index.js +5 -0
  264. package/dist/esm/plugins/table/slot/table/index.d.ts +13 -0
  265. package/dist/esm/plugins/table/slot/table/index.js +14 -0
  266. package/dist/esm/plugins/table/slot/table/renderer/index.d.ts +6 -0
  267. package/dist/esm/plugins/table/slot/table/renderer/index.js +38 -0
  268. package/dist/esm/plugins/table/slot/table/renderer/style.css +11 -0
  269. package/dist/esm/plugins/table/slot/table-cell/index.d.ts +13 -0
  270. package/dist/esm/plugins/table/slot/table-cell/index.js +14 -0
  271. package/dist/esm/plugins/table/slot/table-cell/renderer/index.d.ts +5 -0
  272. package/dist/esm/plugins/table/slot/table-cell/renderer/index.js +52 -0
  273. package/dist/esm/plugins/tex/index.d.ts +2 -0
  274. package/dist/esm/plugins/tex/index.js +19 -0
  275. package/dist/esm/plugins/tex/slot/index.d.ts +1 -0
  276. package/dist/esm/plugins/tex/slot/index.js +3 -0
  277. package/dist/esm/plugins/tex/slot/tex/index.d.ts +14 -0
  278. package/dist/esm/plugins/tex/slot/tex/index.js +16 -0
  279. package/dist/esm/plugins/tex/slot/tex/renderer/index.d.ts +5 -0
  280. package/dist/esm/plugins/tex/slot/tex/renderer/index.js +36 -0
  281. package/dist/esm/plugins/tex-mathjax/index.d.ts +3 -0
  282. package/dist/esm/plugins/tex-mathjax/index.js +19 -0
  283. package/dist/esm/plugins/tex-mathjax/slot/index.d.ts +1 -0
  284. package/dist/esm/plugins/tex-mathjax/slot/index.js +3 -0
  285. package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/index.d.ts +14 -0
  286. package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/index.js +16 -0
  287. package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/index.d.ts +5 -0
  288. package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/index.js +55 -0
  289. package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/utils.d.ts +35 -0
  290. package/dist/esm/plugins/tex-mathjax/slot/tex-mathjax/renderer/utils.js +197 -0
  291. package/dist/esm/presets/full/index.d.ts +2 -0
  292. package/dist/esm/presets/full/index.js +85 -0
  293. package/dist/esm/presets/lite/index.d.ts +2 -0
  294. package/dist/esm/presets/lite/index.js +77 -0
  295. package/dist/esm/typings/index.d.ts +2 -0
  296. package/dist/esm/typings/index.js +7 -0
  297. package/dist/esm/typings/plugins/index.d.ts +1 -0
  298. package/dist/esm/typings/plugins/index.js +5 -0
  299. package/dist/esm/typings/plugins/plugins.d.ts +20 -0
  300. package/package.json +88 -3
@@ -0,0 +1,193 @@
1
+ import { createVNode, defineComponent, mergeProps, shallowRef } from "vue";
2
+ import { pick } from "lodash-es";
3
+ import { AnimatedText, joinClassNames, useTextLayoutWidth, useTextStyle, useTheme } from "../../../../../base/index.js";
4
+ import { getGradient, getShadTokens, splitShadToken } from "./utils.js";
5
+ import "./style.css";
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+ const ShadRenderer = /*#__PURE__*/ defineComponent((props, { attrs })=>{
19
+ const wrapped = shallowRef({});
20
+ const widths = shallowRef({});
21
+ return ()=>{
22
+ const { Raw: _Raw, active, isActive, leading, maskWidth, class: className, style, ...elementProps } = props;
23
+ const textStyle = useTextStyle(style);
24
+ const layoutWidth = useTextLayoutWidth();
25
+ const { tokens } = useTheme();
26
+ const source = isActive ? getShadTokens(leading, active) : {
27
+ leading: [
28
+ leading,
29
+ active
30
+ ],
31
+ tokens: []
32
+ };
33
+ const font = `${textStyle.fontSize}:${textStyle.fontFamily}:${textStyle.fontWeight}:${textStyle.fontStyle}:${textStyle.letterSpacing}:${textStyle.lineHeight}`;
34
+ const layout = `${font}:${layoutWidth}`;
35
+ const content = {
36
+ leading: source.leading,
37
+ tokens: source.tokens.flatMap((token)=>{
38
+ const previous = wrapped.value[token.key];
39
+ return previous?.font === layout && token.text === previous.text ? splitShadToken(token, previous.ends) : [
40
+ token
41
+ ];
42
+ })
43
+ };
44
+ const estimates = Object.fromEntries(content.tokens.map((token)=>{
45
+ const info = {
46
+ fontSize: String(textStyle.fontSize),
47
+ fontFamily: textStyle.fontFamily
48
+ };
49
+ return [
50
+ token.key,
51
+ {
52
+ width: lynx.getTextInfo(token.text, info).width,
53
+ prefix: token.prefixText ? lynx.getTextInfo(token.prefixText, info).width : 0
54
+ }
55
+ ];
56
+ }));
57
+ const measurements = Object.fromEntries(content.tokens.map((token)=>{
58
+ const { width, prefix } = estimates[token.key];
59
+ const current = widths.value[token.key];
60
+ const matches = current?.text === token.text && current.font === font;
61
+ const measured = matches ? current.width ?? width : width;
62
+ const measuredPrefix = matches && current.prefixText === token.prefixText ? current.prefix : undefined;
63
+ return [
64
+ token.key,
65
+ {
66
+ width: measured,
67
+ prefix: measuredPrefix ?? (width > 0 ? prefix * measured / width : 0)
68
+ }
69
+ ];
70
+ }));
71
+ const onMeasure = (key, text, prefixText, measuredFont, value)=>{
72
+ if (Object.values(value).some((width)=>!Number.isFinite(width) || width < 0) || measuredFont !== font || !content.tokens.some((token)=>token.key === key && token.text === text && token.prefixText === prefixText)) return;
73
+ const previous = widths.value;
74
+ const next = pick(previous, content.tokens.map((token)=>token.key));
75
+ const current = next[key];
76
+ const measurement = {
77
+ ...current?.text === text && current.font === font ? current : {},
78
+ ...current?.prefixText === prefixText ? {} : {
79
+ prefix: undefined
80
+ },
81
+ ...value,
82
+ text,
83
+ prefixText,
84
+ font
85
+ };
86
+ if (current?.width === measurement.width && current?.prefix === measurement.prefix && current.text === text && current.prefixText === prefixText && current.font === font && Object.keys(next).length === Object.keys(previous).length) return;
87
+ widths.value = {
88
+ ...next,
89
+ [key]: measurement
90
+ };
91
+ };
92
+ const onWrap = (key, text, measuredFont, ends)=>{
93
+ if (ends.length <= 1 || measuredFont !== layout || !source.tokens.some((token)=>token.key === key && token.text === text)) return; // Preserve normal word boundaries. Only split words that the host has
94
+ // already wrapped, at the host's actual line boundaries. This preserves
95
+ // shaping within each line while preventing the mask from restarting.
96
+ wrapped.value = {
97
+ ...pick(wrapped.value, source.tokens.map((token)=>token.key)),
98
+ [key]: {
99
+ text,
100
+ font: layout,
101
+ ends
102
+ }
103
+ };
104
+ };
105
+ return createVNode(AnimatedText, mergeProps(attrs, elementProps, {
106
+ "class": joinClassNames('fluxdown-shad', className),
107
+ "style": textStyle
108
+ }), {
109
+ default: ()=>[
110
+ createVNode(AnimatedText, {
111
+ "style": textStyle
112
+ }, {
113
+ default: ()=>[
114
+ content.leading
115
+ ]
116
+ }),
117
+ content.tokens.map((token)=>{
118
+ if (/^\s+$/.test(token.text)) return createVNode(AnimatedText, {
119
+ "key": token.key,
120
+ "style": textStyle
121
+ }, {
122
+ default: ()=>[
123
+ token.children
124
+ ]
125
+ });
126
+ const gradient = getGradient(content.tokens, measurements, token.key);
127
+ const width = measurements[token.key]?.width ?? 0; // A native text gradient restarts at each wrapped line. Mask individual
128
+ // words against the same unwrapped range, preserving their text colors.
129
+ // Lynx gradient stops support percentages, not CSS pixel lengths.
130
+ return createVNode("view", {
131
+ "key": token.key,
132
+ "class": "fluxdown-shad-active",
133
+ "style": {
134
+ ...textStyle,
135
+ maskImage: gradient && width > 0 ? `linear-gradient(to right, #000 ${gradient.start / width * 100}%, transparent ${(gradient.start + gradient.width) / width * 100}%)` : undefined
136
+ },
137
+ "bindlayoutchange": ({ detail })=>onMeasure(token.key, token.text, token.prefixText, font, {
138
+ width: detail.width
139
+ })
140
+ }, [
141
+ createVNode(AnimatedText, {
142
+ "style": textStyle,
143
+ "bindlayout": ({ detail })=>onWrap(token.key, token.text, layout, detail.lines.map((line)=>line.end))
144
+ }, {
145
+ default: ()=>[
146
+ token.children
147
+ ]
148
+ }),
149
+ token.prefixText.length > 0 && createVNode("view", {
150
+ "accessibility-elements-hidden": true,
151
+ "class": "fluxdown-shad-prefix",
152
+ "bindlayoutchange": ({ detail })=>onMeasure(token.key, token.text, token.prefixText, font, {
153
+ prefix: detail.width
154
+ })
155
+ }, [
156
+ createVNode(AnimatedText, {
157
+ "style": textStyle
158
+ }, {
159
+ default: ()=>[
160
+ token.prefix
161
+ ]
162
+ })
163
+ ])
164
+ ]);
165
+ }),
166
+ createVNode("view", {
167
+ "accessibility-elements-hidden": true,
168
+ "class": "fluxdown-shad-mask",
169
+ "style": {
170
+ width: `${maskWidth}px`,
171
+ marginLeft: `${-maskWidth}px`,
172
+ opacity: isActive ? 1 : 0,
173
+ backgroundImage: `linear-gradient(to right, transparent, ${tokens.colors.bg})`
174
+ }
175
+ }, null)
176
+ ]
177
+ });
178
+ };
179
+ }, {
180
+ name: 'FluxdownShadRenderer',
181
+ props: [
182
+ 'Raw',
183
+ 'active',
184
+ 'isActive',
185
+ 'leading',
186
+ 'maskWidth',
187
+ 'class',
188
+ 'style'
189
+ ],
190
+ inheritAttrs: false
191
+ });
192
+
193
+ export { ShadRenderer };
@@ -0,0 +1,19 @@
1
+ .fluxdown-shad-active {
2
+ vertical-align: baseline;
3
+ position: relative;
4
+ overflow: visible;
5
+ }
6
+
7
+ .fluxdown-shad-prefix {
8
+ opacity: 0;
9
+ pointer-events: none;
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ }
14
+
15
+ .fluxdown-shad-mask {
16
+ pointer-events: none;
17
+ position: relative;
18
+ }
19
+
@@ -0,0 +1,23 @@
1
+ import type { VNodeChild } from 'vue';
2
+ export declare const getText: (children: VNodeChild) => string;
3
+ export declare const sliceText: (children: VNodeChild, start: number, end: number, keepOpaque?: boolean) => VNodeChild;
4
+ export type ShadToken = {
5
+ key: string;
6
+ text: string;
7
+ children: VNodeChild;
8
+ prefix: VNodeChild;
9
+ prefixText: string;
10
+ };
11
+ export declare const getShadTokens: (leading: VNodeChild, active: VNodeChild, position?: number) => {
12
+ leading: VNodeChild;
13
+ tokens: ShadToken[];
14
+ };
15
+ export type TokenMeasurement = {
16
+ prefix?: number;
17
+ width?: number;
18
+ };
19
+ export declare const splitShadToken: (token: ShadToken, ends: number[]) => ShadToken[];
20
+ export declare const getGradient: (tokens: ShadToken[], measurements: Record<string, TokenMeasurement>, key: string) => {
21
+ start: number;
22
+ width: number;
23
+ } | null;
@@ -0,0 +1,137 @@
1
+ import { getTextUnits, getTextWords } from "@fluxdown/hast";
2
+ import { cloneVNode, isVNode } from "vue";
3
+
4
+
5
+
6
+
7
+
8
+ const mapText = (children, map, opaque = (node)=>node)=>{
9
+ if (Array.isArray(children)) {
10
+ return children.map((child)=>mapText(child, map, opaque));
11
+ }
12
+ if (typeof children === 'string' || typeof children === 'number') {
13
+ return map(String(children));
14
+ }
15
+ if (isVNode(children)) {
16
+ const content = children.props?.children ?? children.children;
17
+ if (typeof content === 'string' || Array.isArray(content)) {
18
+ const mapped = mapText(content, map, opaque);
19
+ const node = cloneVNode(children, {
20
+ children: mapped
21
+ });
22
+ node.children = typeof mapped === 'string' || Array.isArray(mapped) ? mapped : null;
23
+ return node;
24
+ }
25
+ if (content && typeof content === 'object' && 'default' in content && typeof content.default === 'function') {
26
+ const mapped = mapText(content.default(), map, opaque);
27
+ const node = cloneVNode(children, {
28
+ children: mapped
29
+ });
30
+ node.children = {
31
+ default: ()=>mapped
32
+ };
33
+ return node;
34
+ }
35
+ }
36
+ return opaque(children);
37
+ };
38
+ const getText = (children)=>{
39
+ let value = '';
40
+ mapText(children, (text)=>{
41
+ value += text;
42
+ return text;
43
+ });
44
+ return value;
45
+ };
46
+ const sliceText = (children, start, end, keepOpaque = false)=>{
47
+ let offset = 0;
48
+ return mapText(children, (text)=>{
49
+ const from = Math.max(0, start - offset);
50
+ const to = Math.min(text.length, end - offset);
51
+ offset += text.length;
52
+ return from < to ? text.slice(from, to) : null;
53
+ }, (node)=>keepOpaque ? node : null);
54
+ };
55
+ const getShadTokens = (leading, active, position = 0)=>{
56
+ const children = [
57
+ leading,
58
+ active
59
+ ];
60
+ const prefix = getText(leading).length;
61
+ const text = getText(children);
62
+ let offset = 0;
63
+ let settled = prefix;
64
+ const tokens = [];
65
+ for (const word of getTextWords(text)){
66
+ const start = offset;
67
+ const key = /^\s+$/.test(word) ? `space-${position}` : `word-${position}`;
68
+ offset += word.length;
69
+ position += [
70
+ ...getTextUnits(word)
71
+ ].length;
72
+ if (offset <= prefix) {
73
+ continue;
74
+ }
75
+ if (tokens.length === 0) {
76
+ settled = start;
77
+ }
78
+ const prefixEnd = Math.max(start, Math.min(prefix, offset));
79
+ tokens.push({
80
+ key,
81
+ text: word,
82
+ children: sliceText(children, start, offset),
83
+ prefix: sliceText(children, start, prefixEnd),
84
+ prefixText: text.slice(start, prefixEnd)
85
+ });
86
+ } // The base mapper keeps opaque nodes outside the active range. Preserve
87
+ // them once in the leading content instead of copying them into every token.
88
+ return {
89
+ leading: sliceText(children, 0, settled, true),
90
+ tokens
91
+ };
92
+ };
93
+ const splitShadToken = (token, ends)=>{
94
+ let offset = 0;
95
+ return [
96
+ ...ends.filter((end)=>end > 0 && end < token.text.length),
97
+ token.text.length
98
+ ].map((end)=>{
99
+ const start = offset;
100
+ offset = end;
101
+ return {
102
+ key: `${token.key}-${start}`,
103
+ text: token.text.slice(start, offset),
104
+ children: sliceText(token.children, start, offset),
105
+ prefix: sliceText(token.prefix, start, offset),
106
+ prefixText: token.prefixText.slice(start, offset)
107
+ };
108
+ });
109
+ };
110
+ const getGradient = (tokens, measurements, key)=>{
111
+ let width = 0;
112
+ let offset = 0;
113
+ let current;
114
+ for (const token of tokens){
115
+ const measured = measurements[token.key];
116
+ const prefix = token.prefixText.length > 0 ? measured?.prefix : 0;
117
+ if (measured?.width === undefined || prefix === undefined) {
118
+ continue;
119
+ }
120
+ const measurement = {
121
+ width: measured.width,
122
+ prefix
123
+ };
124
+ if (token.key === key) {
125
+ current = measurement;
126
+ } else if (!current) {
127
+ offset += measurement.width - measurement.prefix;
128
+ }
129
+ width += measurement.width - measurement.prefix;
130
+ }
131
+ return current ? {
132
+ start: current.prefix - offset,
133
+ width
134
+ } : null;
135
+ };
136
+
137
+ export { getGradient, getShadTokens, getText, sliceText, splitShadToken };
@@ -0,0 +1 @@
1
+ export * from './effect-shad/index.js';
@@ -0,0 +1,3 @@
1
+ export * from "./effect-shad/index.js";
2
+
3
+
@@ -0,0 +1,2 @@
1
+ export * from './slot/index.js';
2
+ export declare const EffectSuffixPlugin: import("@fluxdown/vue-base-plugins/typings").IPluginItem<import("@fluxdown/vue-base-plugins/typings").PluginConfigs>;
@@ -0,0 +1,19 @@
1
+ import { pluginExtends } from "@fluxdown/vue-base-plugins/base";
2
+ import { EffectSuffixPlugin } from "@fluxdown/vue-base-plugins/plugins/effect-suffix";
3
+ import { EffectSuffixSlotPlugin } from "./slot/index.js";
4
+
5
+ export * from "./slot/index.js";
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+ const effect_suffix_EffectSuffixPlugin = /*#__PURE__*/ pluginExtends(EffectSuffixPlugin, {
14
+ slots: [
15
+ EffectSuffixSlotPlugin
16
+ ]
17
+ });
18
+
19
+ export { effect_suffix_EffectSuffixPlugin as EffectSuffixPlugin };
@@ -0,0 +1,14 @@
1
+ import type { IPluggableConfig } from '@fluxdown/types';
2
+ import { BaseSlotPlugin } from '../../../../base/index.js';
3
+ import { SuffixRenderer } from './renderer/index.js';
4
+ export * from './renderer/index.js';
5
+ declare global {
6
+ interface VueSlotConfigs {
7
+ 'slot-suffix': IPluggableConfig<void>;
8
+ }
9
+ }
10
+ export declare class EffectSuffixSlotPlugin extends BaseSlotPlugin<'Suffix'> {
11
+ static readonly key = "slot-suffix";
12
+ readonly Component: typeof SuffixRenderer;
13
+ readonly type = "Suffix";
14
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseSlotPlugin } from "../../../../base/index.js";
2
+ import { SuffixRenderer } from "./renderer/index.js";
3
+
4
+ export * from "./renderer/index.js";
5
+
6
+
7
+
8
+
9
+
10
+ class EffectSuffixSlotPlugin extends BaseSlotPlugin {
11
+ static key = 'slot-suffix';
12
+ Component = SuffixRenderer;
13
+ type = 'Suffix';
14
+ }
15
+
16
+ export { EffectSuffixSlotPlugin };
@@ -0,0 +1,9 @@
1
+ import type { SuffixProps } from '../../../../../base/index.js';
2
+ import './style.scss';
3
+ export type SuffixRendererProps = Omit<SuffixProps, 'Raw'> & {
4
+ Raw?: SuffixProps['Raw'];
5
+ };
6
+ export declare function SuffixRenderer({ Raw: _Raw, children, type, class: className, style, ...elementProps }: SuffixRendererProps): import("../../../../../jsx-runtime.js").JSX.Element;
7
+ export declare namespace SuffixRenderer {
8
+ var inheritAttrs: boolean;
9
+ }
@@ -0,0 +1,62 @@
1
+ import { createVNode, mergeProps } from "vue";
2
+ import { joinClassNames, useTextStyle } from "../../../../../base/index.js";
3
+ import { INLINE_ADVANCE, getInlineSuffixGeometry, getSuffixGeometry } from "./utils.js";
4
+ import "./style.css";
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+ const SuffixRenderer = ({ Raw: _Raw, children, type, class: className, style, ...elementProps })=>{
15
+ const textStyle = useTextStyle(style);
16
+ const custom = type !== 'cursor' && type !== 'dot'; // iOS text attachments do not paint the children of a zero-width inline view.
17
+ // Paint built-in markers on the attachment itself; opposing margins leave
18
+ // only a subpixel advance while preserving the Web marker's position/size.
19
+ if (!custom) {
20
+ return createVNode("view", mergeProps(elementProps, {
21
+ "accessibility-elements-hidden": true,
22
+ "class": joinClassNames(`fluxdown-suffix fluxdown-suffix-marker fluxdown-suffix-${type}`, className),
23
+ "style": {
24
+ ...textStyle,
25
+ ...getInlineSuffixGeometry(textStyle, type === 'cursor' ? 'cursor' : 'dot'),
26
+ backgroundColor: textStyle.color
27
+ }
28
+ }), null);
29
+ }
30
+ const { height } = getSuffixGeometry(textStyle);
31
+ return createVNode("view", mergeProps(elementProps, {
32
+ "accessibility-elements-hidden": true,
33
+ "class": joinClassNames('fluxdown-suffix', className),
34
+ "style": {
35
+ ...textStyle,
36
+ height,
37
+ marginRight: `${INLINE_ADVANCE}px`
38
+ }
39
+ }), [
40
+ createVNode("view", {
41
+ "class": "fluxdown-suffix-marker fluxdown-suffix-nested-marker fluxdown-suffix-custom",
42
+ "style": {
43
+ ...textStyle,
44
+ backgroundColor: 'transparent',
45
+ whiteSpace: 'nowrap',
46
+ height
47
+ }
48
+ }, [
49
+ createVNode("text", {
50
+ "style": {
51
+ ...textStyle,
52
+ whiteSpace: 'nowrap'
53
+ }
54
+ }, [
55
+ children
56
+ ])
57
+ ])
58
+ ]);
59
+ };
60
+ SuffixRenderer.inheritAttrs = false;
61
+
62
+ export { SuffixRenderer };
@@ -0,0 +1,63 @@
1
+ .fluxdown-suffix {
2
+ vertical-align: top;
3
+ pointer-events: none;
4
+ width: 0;
5
+ position: relative;
6
+ overflow: visible;
7
+ }
8
+
9
+ .fluxdown-suffix-marker {
10
+ animation: 1s ease-in-out infinite fluxdown-suffix-breathe;
11
+ }
12
+
13
+ .fluxdown-suffix-nested-marker {
14
+ position: absolute;
15
+ top: 50%;
16
+ left: .18em;
17
+ transform: translateY(-50%);
18
+ }
19
+
20
+ .fluxdown-suffix-cursor {
21
+ border-radius: .06em;
22
+ height: 1em;
23
+ }
24
+
25
+ .fluxdown-suffix-dot {
26
+ border-radius: 50%;
27
+ width: .624em;
28
+ height: .624em;
29
+ }
30
+
31
+ .fluxdown-suffix-custom {
32
+ top: 0;
33
+ transform: none;
34
+ }
35
+
36
+ @media (prefers-reduced-motion: reduce) {
37
+ .fluxdown-suffix-marker {
38
+ animation-name: none;
39
+ }
40
+ }
41
+
42
+ @keyframes fluxdown-suffix-breathe {
43
+ 0% {
44
+ opacity: 1;
45
+ }
46
+
47
+ 33.3333% {
48
+ opacity: 1;
49
+ }
50
+
51
+ 50% {
52
+ opacity: 0;
53
+ }
54
+
55
+ 83.3333% {
56
+ opacity: 0;
57
+ }
58
+
59
+ 100% {
60
+ opacity: 1;
61
+ }
62
+ }
63
+
@@ -0,0 +1,17 @@
1
+ import type { CSSProperties } from '@lynx-js/types';
2
+ /** Lynx has no `lh` unit; resolve the marker from the same font and line height as its text. */
3
+ export declare const getSuffixGeometry: ({ fontSize, lineHeight }: CSSProperties) => {
4
+ height: string;
5
+ cursorWidth: string;
6
+ };
7
+ /** A subpixel positive advance prevents native text layout from dropping the attachment. */
8
+ export declare const INLINE_ADVANCE: number;
9
+ /** Paint the marker itself so a zero-width attachment cannot clip a child view. */
10
+ export declare const getInlineSuffixGeometry: (style: CSSProperties, type: 'cursor' | 'dot') => {
11
+ width: string;
12
+ height: string;
13
+ marginLeft: string;
14
+ marginRight: string;
15
+ marginTop: string;
16
+ marginBottom: string;
17
+ };
@@ -0,0 +1,36 @@
1
+ /** Lynx has no `lh` unit; resolve the marker from the same font and line height as its text. */ const getSuffixGeometry = ({ fontSize = '16px', lineHeight = 1.65 })=>{
2
+ const font = String(fontSize);
3
+ const line = String(lineHeight);
4
+ const unit = font.replace(/^[\d.]+/, '') || 'px';
5
+ const relative = /^[\d.]+$/.test(line);
6
+ const lineUnit = relative ? unit : line.replace(/^[\d.]+/, '');
7
+ const size = relative ? parseFloat(font) * Number(line) : parseFloat(line);
8
+ return {
9
+ height: `${size}${lineUnit}`,
10
+ cursorWidth: `${size * 0.39 / 1.65}${lineUnit}`
11
+ };
12
+ }; /** A subpixel positive advance prevents native text layout from dropping the attachment. */
13
+ const INLINE_ADVANCE = 1 / 1024; /** Paint the marker itself so a zero-width attachment cannot clip a child view. */
14
+ const getInlineSuffixGeometry = (style, type)=>{
15
+ const { height: lineHeight, cursorWidth } = getSuffixGeometry(style);
16
+ const font = String(style.fontSize ?? '16px');
17
+ const fontSize = parseFloat(font);
18
+ const fontUnit = font.replace(/^[\d.]+/, '') || 'px';
19
+ const lineUnit = lineHeight.replace(/^[\d.]+/, '');
20
+ const markerSize = fontSize * (type === 'dot' ? 0.624 : 1);
21
+ const height = `${markerSize}${fontUnit}`;
22
+ const width = type === 'cursor' ? cursorWidth : height;
23
+ const widthUnit = width.replace(/^[\d.]+/, '');
24
+ const gap = fontSize * 0.18;
25
+ const verticalMargin = lineUnit === fontUnit ? `${(parseFloat(lineHeight) - markerSize) / 2}${fontUnit}` : `calc(${parseFloat(lineHeight) / 2}${lineUnit} - ${markerSize / 2}${fontUnit})`;
26
+ return {
27
+ width,
28
+ height,
29
+ marginLeft: `${gap}${fontUnit}`,
30
+ marginRight: widthUnit === fontUnit && fontUnit === 'px' ? `${-gap - parseFloat(width) + INLINE_ADVANCE}${fontUnit}` : `calc(${-gap}${fontUnit} - ${width} + ${INLINE_ADVANCE}px)`,
31
+ marginTop: verticalMargin,
32
+ marginBottom: verticalMargin
33
+ };
34
+ };
35
+
36
+ export { INLINE_ADVANCE, getInlineSuffixGeometry, getSuffixGeometry };
@@ -0,0 +1 @@
1
+ export * from './effect-suffix/index.js';
@@ -0,0 +1,3 @@
1
+ export * from "./effect-suffix/index.js";
2
+
3
+
@@ -0,0 +1,2 @@
1
+ export * from './slot/index.js';
2
+ export declare const EmphasisPlugin: import("@fluxdown/vue-base-plugins/typings").IPluginItem<import("@fluxdown/vue-base-plugins/typings").PluginConfigs>;
@@ -0,0 +1,19 @@
1
+ import { pluginExtends } from "@fluxdown/vue-base-plugins/base";
2
+ import { EmphasisPlugin } from "@fluxdown/vue-base-plugins/plugins/emphasis";
3
+ import { EmphasisSlotPlugin } from "./slot/index.js";
4
+
5
+ export * from "./slot/index.js";
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+ const emphasis_EmphasisPlugin = /*#__PURE__*/ pluginExtends(EmphasisPlugin, {
14
+ slots: [
15
+ EmphasisSlotPlugin
16
+ ]
17
+ });
18
+
19
+ export { emphasis_EmphasisPlugin as EmphasisPlugin };