@limetech/kompendium 1.1.1

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 (348) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +313 -0
  3. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +13 -0
  4. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +1 -0
  5. package/dist/cjs/anchor-scroll-BmplAyR0.js +69 -0
  6. package/dist/cjs/anchor-scroll-BmplAyR0.js.map +1 -0
  7. package/dist/cjs/index-DYiJ6dQL.js +1866 -0
  8. package/dist/cjs/index-DYiJ6dQL.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +3 -0
  10. package/dist/cjs/index.cjs.js.map +1 -0
  11. package/dist/cjs/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.cjs.js.map +1 -0
  12. package/dist/cjs/kompendium-app_7.cjs.entry.js +2924 -0
  13. package/dist/cjs/kompendium-code.cjs.entry.js +2724 -0
  14. package/dist/cjs/kompendium-code.entry.cjs.js.map +1 -0
  15. package/dist/cjs/kompendium-component.cjs.entry.js +207 -0
  16. package/dist/cjs/kompendium-component.entry.cjs.js.map +1 -0
  17. package/dist/cjs/kompendium-debug.cjs.entry.js +47 -0
  18. package/dist/cjs/kompendium-debug.entry.cjs.js.map +1 -0
  19. package/dist/cjs/kompendium-example-code.cjs.entry.js +20 -0
  20. package/dist/cjs/kompendium-example-code.entry.cjs.js.map +1 -0
  21. package/dist/cjs/kompendium-example-markdown.cjs.entry.js +165 -0
  22. package/dist/cjs/kompendium-example-markdown.entry.cjs.js.map +1 -0
  23. package/dist/cjs/kompendium-guide.cjs.entry.js +33 -0
  24. package/dist/cjs/kompendium-guide.entry.cjs.js.map +1 -0
  25. package/dist/cjs/kompendium-markdown.cjs.entry.js +48923 -0
  26. package/dist/cjs/kompendium-markdown.entry.cjs.js.map +1 -0
  27. package/dist/cjs/kompendium-playground.cjs.entry.js +89 -0
  28. package/dist/cjs/kompendium-playground.entry.cjs.js.map +1 -0
  29. package/dist/cjs/kompendium-proplist.kompendium-taglist.entry.cjs.js.map +1 -0
  30. package/dist/cjs/kompendium-proplist_2.cjs.entry.js +49 -0
  31. package/dist/cjs/kompendium-type.cjs.entry.js +83 -0
  32. package/dist/cjs/kompendium-type.entry.cjs.js.map +1 -0
  33. package/dist/cjs/kompendium.cjs.js +25 -0
  34. package/dist/cjs/kompendium.cjs.js.map +1 -0
  35. package/dist/cjs/loader.cjs.js +13 -0
  36. package/dist/cjs/loader.cjs.js.map +1 -0
  37. package/dist/cjs/markdown-types-B884tLd-.js +15 -0
  38. package/dist/cjs/markdown-types-B884tLd-.js.map +1 -0
  39. package/dist/cjs/methods-DoA78dOH.js +97 -0
  40. package/dist/cjs/methods-DoA78dOH.js.map +1 -0
  41. package/dist/cjs/types-SjA7Kcy_.js +8 -0
  42. package/dist/cjs/types-SjA7Kcy_.js.map +1 -0
  43. package/dist/collection/assets/favicon.svg +65 -0
  44. package/dist/collection/assets/icons/bookmark-fill.svg +1 -0
  45. package/dist/collection/assets/icons/danger.svg +1 -0
  46. package/dist/collection/assets/icons/debug.svg +1 -0
  47. package/dist/collection/assets/icons/important.svg +1 -0
  48. package/dist/collection/assets/icons/info.svg +1 -0
  49. package/dist/collection/assets/icons/logo.svg +1 -0
  50. package/dist/collection/assets/icons/note.svg +1 -0
  51. package/dist/collection/assets/icons/search.svg +1 -0
  52. package/dist/collection/assets/icons/tip.svg +1 -0
  53. package/dist/collection/assets/icons/warning.svg +1 -0
  54. package/dist/collection/assets/logotype.svg +64 -0
  55. package/dist/collection/collection-manifest.json +35 -0
  56. package/dist/collection/components/anchor-scroll.js +61 -0
  57. package/dist/collection/components/anchor-scroll.js.map +1 -0
  58. package/dist/collection/components/app/app.css +125 -0
  59. package/dist/collection/components/app/app.js +149 -0
  60. package/dist/collection/components/app/app.js.map +1 -0
  61. package/dist/collection/components/code/code.css +250 -0
  62. package/dist/collection/components/code/code.js +82 -0
  63. package/dist/collection/components/code/code.js.map +1 -0
  64. package/dist/collection/components/code/examples/code.js +14 -0
  65. package/dist/collection/components/code/examples/code.js.map +1 -0
  66. package/dist/collection/components/component/component.css +383 -0
  67. package/dist/collection/components/component/component.js +191 -0
  68. package/dist/collection/components/component/component.js.map +1 -0
  69. package/dist/collection/components/component/templates/events.js +32 -0
  70. package/dist/collection/components/component/templates/events.js.map +1 -0
  71. package/dist/collection/components/component/templates/examples.js +17 -0
  72. package/dist/collection/components/component/templates/examples.js.map +1 -0
  73. package/dist/collection/components/component/templates/methods.js +54 -0
  74. package/dist/collection/components/component/templates/methods.js.map +1 -0
  75. package/dist/collection/components/component/templates/props.js +36 -0
  76. package/dist/collection/components/component/templates/props.js.map +1 -0
  77. package/dist/collection/components/component/templates/slots.js +14 -0
  78. package/dist/collection/components/component/templates/slots.js.map +1 -0
  79. package/dist/collection/components/component/templates/style.js +14 -0
  80. package/dist/collection/components/component/templates/style.js.map +1 -0
  81. package/dist/collection/components/darkmode-switch/darkmode-switch.css +141 -0
  82. package/dist/collection/components/darkmode-switch/darkmode-switch.js +90 -0
  83. package/dist/collection/components/darkmode-switch/darkmode-switch.js.map +1 -0
  84. package/dist/collection/components/darkmode-switch/types.js +2 -0
  85. package/dist/collection/components/darkmode-switch/types.js.map +1 -0
  86. package/dist/collection/components/debug/debug.js +146 -0
  87. package/dist/collection/components/debug/debug.js.map +1 -0
  88. package/dist/collection/components/guide/guide.js +61 -0
  89. package/dist/collection/components/guide/guide.js.map +1 -0
  90. package/dist/collection/components/markdown/examples/markdown-example.js +150 -0
  91. package/dist/collection/components/markdown/examples/markdown-example.js.map +1 -0
  92. package/dist/collection/components/markdown/examples/markdown.js +14 -0
  93. package/dist/collection/components/markdown/examples/markdown.js.map +1 -0
  94. package/dist/collection/components/markdown/markdown-types.js +8 -0
  95. package/dist/collection/components/markdown/markdown-types.js.map +1 -0
  96. package/dist/collection/components/markdown/markdown.css +660 -0
  97. package/dist/collection/components/markdown/markdown.js +83 -0
  98. package/dist/collection/components/markdown/markdown.js.map +1 -0
  99. package/dist/collection/components/navigation/navigation.css +403 -0
  100. package/dist/collection/components/navigation/navigation.js +184 -0
  101. package/dist/collection/components/navigation/navigation.js.map +1 -0
  102. package/dist/collection/components/playground/playground.css +198 -0
  103. package/dist/collection/components/playground/playground.js +174 -0
  104. package/dist/collection/components/playground/playground.js.map +1 -0
  105. package/dist/collection/components/playground/playground.types.js +2 -0
  106. package/dist/collection/components/playground/playground.types.js.map +1 -0
  107. package/dist/collection/components/proplist/proplist.css +334 -0
  108. package/dist/collection/components/proplist/proplist.js +53 -0
  109. package/dist/collection/components/proplist/proplist.js.map +1 -0
  110. package/dist/collection/components/search/search.css +183 -0
  111. package/dist/collection/components/search/search.js +76 -0
  112. package/dist/collection/components/search/search.js.map +1 -0
  113. package/dist/collection/components/taglist/taglist.css +58 -0
  114. package/dist/collection/components/taglist/taglist.js +82 -0
  115. package/dist/collection/components/taglist/taglist.js.map +1 -0
  116. package/dist/collection/components/type/templates/alias.js +11 -0
  117. package/dist/collection/components/type/templates/alias.js.map +1 -0
  118. package/dist/collection/components/type/templates/enum.js +25 -0
  119. package/dist/collection/components/type/templates/enum.js.map +1 -0
  120. package/dist/collection/components/type/templates/interface.js +13 -0
  121. package/dist/collection/components/type/templates/interface.js.map +1 -0
  122. package/dist/collection/components/type/type.js +97 -0
  123. package/dist/collection/components/type/type.js.map +1 -0
  124. package/dist/collection/index.js +4 -0
  125. package/dist/collection/index.js.map +1 -0
  126. package/dist/collection/kompendium/config.js +7 -0
  127. package/dist/collection/kompendium/config.js.map +1 -0
  128. package/dist/collection/kompendium/filesystem.js +9 -0
  129. package/dist/collection/kompendium/filesystem.js.map +1 -0
  130. package/dist/collection/kompendium/generator.js +217 -0
  131. package/dist/collection/kompendium/generator.js.map +1 -0
  132. package/dist/collection/kompendium/guides.js +30 -0
  133. package/dist/collection/kompendium/guides.js.map +1 -0
  134. package/dist/collection/kompendium/index.js +2 -0
  135. package/dist/collection/kompendium/index.js.map +1 -0
  136. package/dist/collection/kompendium/markdown-admonitions.js +82 -0
  137. package/dist/collection/kompendium/markdown-admonitions.js.map +1 -0
  138. package/dist/collection/kompendium/markdown-code.js +40 -0
  139. package/dist/collection/kompendium/markdown-code.js.map +1 -0
  140. package/dist/collection/kompendium/markdown-frontmatter.js +12 -0
  141. package/dist/collection/kompendium/markdown-frontmatter.js.map +1 -0
  142. package/dist/collection/kompendium/markdown-nodes.js +10 -0
  143. package/dist/collection/kompendium/markdown-nodes.js.map +1 -0
  144. package/dist/collection/kompendium/markdown-typelinks.js +115 -0
  145. package/dist/collection/kompendium/markdown-typelinks.js.map +1 -0
  146. package/dist/collection/kompendium/markdown.js +35 -0
  147. package/dist/collection/kompendium/markdown.js.map +1 -0
  148. package/dist/collection/kompendium/menu.js +149 -0
  149. package/dist/collection/kompendium/menu.js.map +1 -0
  150. package/dist/collection/kompendium/schema.js +167 -0
  151. package/dist/collection/kompendium/schema.js.map +1 -0
  152. package/dist/collection/kompendium/search.js +144 -0
  153. package/dist/collection/kompendium/search.js.map +1 -0
  154. package/dist/collection/kompendium/source.js +81 -0
  155. package/dist/collection/kompendium/source.js.map +1 -0
  156. package/dist/collection/kompendium/test/fixtures/basic.js +48 -0
  157. package/dist/collection/kompendium/test/fixtures/basic.js.map +1 -0
  158. package/dist/collection/kompendium/test/fixtures/filtering/example-type.js +2 -0
  159. package/dist/collection/kompendium/test/fixtures/filtering/example-type.js.map +1 -0
  160. package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js +2 -0
  161. package/dist/collection/kompendium/test/fixtures/filtering/node-modules-type.js.map +1 -0
  162. package/dist/collection/kompendium/test/fixtures/filtering/private-types.js +2 -0
  163. package/dist/collection/kompendium/test/fixtures/filtering/private-types.js.map +1 -0
  164. package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js +2 -0
  165. package/dist/collection/kompendium/test/fixtures/filtering/stencil-component-types.js.map +1 -0
  166. package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js +2 -0
  167. package/dist/collection/kompendium/test/fixtures/filtering/test-helper-type.js.map +1 -0
  168. package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js +29 -0
  169. package/dist/collection/kompendium/test/fixtures/filtering/valid-types.js.map +1 -0
  170. package/dist/collection/kompendium/typedoc.js +481 -0
  171. package/dist/collection/kompendium/typedoc.js.map +1 -0
  172. package/dist/collection/kompendium/watch.js +9 -0
  173. package/dist/collection/kompendium/watch.js.map +1 -0
  174. package/dist/collection/types.js +2 -0
  175. package/dist/collection/types.js.map +1 -0
  176. package/dist/config.ts +8 -0
  177. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +10 -0
  178. package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +1 -0
  179. package/dist/esm/anchor-scroll-BAGXN2n6.js +65 -0
  180. package/dist/esm/anchor-scroll-BAGXN2n6.js.map +1 -0
  181. package/dist/esm/index-9UrzenzW.js +1857 -0
  182. package/dist/esm/index-9UrzenzW.js.map +1 -0
  183. package/dist/esm/index.js +2 -0
  184. package/dist/esm/index.js.map +1 -0
  185. package/dist/esm/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.js.map +1 -0
  186. package/dist/esm/kompendium-app_7.entry.js +2916 -0
  187. package/dist/esm/kompendium-code.entry.js +2722 -0
  188. package/dist/esm/kompendium-code.entry.js.map +1 -0
  189. package/dist/esm/kompendium-component.entry.js +205 -0
  190. package/dist/esm/kompendium-component.entry.js.map +1 -0
  191. package/dist/esm/kompendium-debug.entry.js +45 -0
  192. package/dist/esm/kompendium-debug.entry.js.map +1 -0
  193. package/dist/esm/kompendium-example-code.entry.js +18 -0
  194. package/dist/esm/kompendium-example-code.entry.js.map +1 -0
  195. package/dist/esm/kompendium-example-markdown.entry.js +163 -0
  196. package/dist/esm/kompendium-example-markdown.entry.js.map +1 -0
  197. package/dist/esm/kompendium-guide.entry.js +31 -0
  198. package/dist/esm/kompendium-guide.entry.js.map +1 -0
  199. package/dist/esm/kompendium-markdown.entry.js +48921 -0
  200. package/dist/esm/kompendium-markdown.entry.js.map +1 -0
  201. package/dist/esm/kompendium-playground.entry.js +87 -0
  202. package/dist/esm/kompendium-playground.entry.js.map +1 -0
  203. package/dist/esm/kompendium-proplist.kompendium-taglist.entry.js.map +1 -0
  204. package/dist/esm/kompendium-proplist_2.entry.js +46 -0
  205. package/dist/esm/kompendium-type.entry.js +81 -0
  206. package/dist/esm/kompendium-type.entry.js.map +1 -0
  207. package/dist/esm/kompendium.js +21 -0
  208. package/dist/esm/kompendium.js.map +1 -0
  209. package/dist/esm/loader.js +11 -0
  210. package/dist/esm/loader.js.map +1 -0
  211. package/dist/esm/markdown-types-Ajsawr_9.js +12 -0
  212. package/dist/esm/markdown-types-Ajsawr_9.js.map +1 -0
  213. package/dist/esm/methods-BAjd6f7g.js +94 -0
  214. package/dist/esm/methods-BAjd6f7g.js.map +1 -0
  215. package/dist/esm/types-BIPLEi1G.js +6 -0
  216. package/dist/esm/types-BIPLEi1G.js.map +1 -0
  217. package/dist/filesystem.ts +9 -0
  218. package/dist/generator.ts +302 -0
  219. package/dist/guides.ts +49 -0
  220. package/dist/index.cjs.js +1 -0
  221. package/dist/index.js +1 -0
  222. package/dist/index.ts +1 -0
  223. package/dist/kompendium/index.esm.js +2 -0
  224. package/dist/kompendium/index.esm.js.map +1 -0
  225. package/dist/kompendium/kompendium-app.kompendium-darkmode-switch.kompendium-navigation.kompendium-search.stencil-route.stencil-route-switch.stencil-router.entry.esm.js.map +1 -0
  226. package/dist/kompendium/kompendium-code.entry.esm.js.map +1 -0
  227. package/dist/kompendium/kompendium-component.entry.esm.js.map +1 -0
  228. package/dist/kompendium/kompendium-debug.entry.esm.js.map +1 -0
  229. package/dist/kompendium/kompendium-example-code.entry.esm.js.map +1 -0
  230. package/dist/kompendium/kompendium-example-markdown.entry.esm.js.map +1 -0
  231. package/dist/kompendium/kompendium-guide.entry.esm.js.map +1 -0
  232. package/dist/kompendium/kompendium-markdown.entry.esm.js.map +1 -0
  233. package/dist/kompendium/kompendium-playground.entry.esm.js.map +1 -0
  234. package/dist/kompendium/kompendium-proplist.kompendium-taglist.entry.esm.js.map +1 -0
  235. package/dist/kompendium/kompendium-type.entry.esm.js.map +1 -0
  236. package/dist/kompendium/kompendium.css +47 -0
  237. package/dist/kompendium/kompendium.esm.js +2 -0
  238. package/dist/kompendium/kompendium.esm.js.map +1 -0
  239. package/dist/kompendium/loader.esm.js.map +1 -0
  240. package/dist/kompendium/p-15e4b2c0.entry.js +2 -0
  241. package/dist/kompendium/p-15e4b2c0.entry.js.map +1 -0
  242. package/dist/kompendium/p-1cf0168f.entry.js +2 -0
  243. package/dist/kompendium/p-1cf0168f.entry.js.map +1 -0
  244. package/dist/kompendium/p-29c23c89.entry.js +2 -0
  245. package/dist/kompendium/p-29c23c89.entry.js.map +1 -0
  246. package/dist/kompendium/p-3981d11f.entry.js +2 -0
  247. package/dist/kompendium/p-3981d11f.entry.js.map +1 -0
  248. package/dist/kompendium/p-93f0548d.entry.js +2 -0
  249. package/dist/kompendium/p-93f0548d.entry.js.map +1 -0
  250. package/dist/kompendium/p-97b02575.entry.js +2 -0
  251. package/dist/kompendium/p-97b02575.entry.js.map +1 -0
  252. package/dist/kompendium/p-9UrzenzW.js +3 -0
  253. package/dist/kompendium/p-9UrzenzW.js.map +1 -0
  254. package/dist/kompendium/p-Ajsawr_9.js +2 -0
  255. package/dist/kompendium/p-Ajsawr_9.js.map +1 -0
  256. package/dist/kompendium/p-BAGXN2n6.js +2 -0
  257. package/dist/kompendium/p-BAGXN2n6.js.map +1 -0
  258. package/dist/kompendium/p-BFTU3MAI.js +2 -0
  259. package/dist/kompendium/p-BFTU3MAI.js.map +1 -0
  260. package/dist/kompendium/p-BIPLEi1G.js +2 -0
  261. package/dist/kompendium/p-BIPLEi1G.js.map +1 -0
  262. package/dist/kompendium/p-CnQEA7KO.js +2 -0
  263. package/dist/kompendium/p-CnQEA7KO.js.map +1 -0
  264. package/dist/kompendium/p-b0f95bd6.entry.js +2 -0
  265. package/dist/kompendium/p-b0f95bd6.entry.js.map +1 -0
  266. package/dist/kompendium/p-d9bcc473.entry.js +10 -0
  267. package/dist/kompendium/p-d9bcc473.entry.js.map +1 -0
  268. package/dist/kompendium/p-e36f3f1e.entry.js +2 -0
  269. package/dist/kompendium/p-e36f3f1e.entry.js.map +1 -0
  270. package/dist/kompendium/p-e52a2f57.entry.js +2 -0
  271. package/dist/kompendium/p-e52a2f57.entry.js.map +1 -0
  272. package/dist/kompendium/p-ec5861de.entry.js +2 -0
  273. package/dist/kompendium/p-ec5861de.entry.js.map +1 -0
  274. package/dist/markdown-admonitions.ts +112 -0
  275. package/dist/markdown-code.ts +51 -0
  276. package/dist/markdown-frontmatter.ts +19 -0
  277. package/dist/markdown-nodes.ts +23 -0
  278. package/dist/markdown-typelinks.ts +166 -0
  279. package/dist/markdown.ts +49 -0
  280. package/dist/menu.ts +189 -0
  281. package/dist/schema.ts +233 -0
  282. package/dist/search.ts +197 -0
  283. package/dist/source.ts +129 -0
  284. package/dist/typedoc.ts +665 -0
  285. package/dist/types/components/anchor-scroll.d.ts +36 -0
  286. package/dist/types/components/app/app.d.ts +22 -0
  287. package/dist/types/components/code/code.d.ts +26 -0
  288. package/dist/types/components/code/examples/code.d.ts +3 -0
  289. package/dist/types/components/component/component.d.ts +32 -0
  290. package/dist/types/components/component/templates/events.d.ts +5 -0
  291. package/dist/types/components/component/templates/examples.d.ts +9 -0
  292. package/dist/types/components/component/templates/methods.d.ts +5 -0
  293. package/dist/types/components/component/templates/props.d.ts +5 -0
  294. package/dist/types/components/component/templates/slots.d.ts +5 -0
  295. package/dist/types/components/component/templates/style.d.ts +5 -0
  296. package/dist/types/components/darkmode-switch/darkmode-switch.d.ts +18 -0
  297. package/dist/types/components/darkmode-switch/types.d.ts +2 -0
  298. package/dist/types/components/debug/debug.d.ts +24 -0
  299. package/dist/types/components/guide/guide.d.ts +14 -0
  300. package/dist/types/components/markdown/examples/markdown-example.d.ts +1 -0
  301. package/dist/types/components/markdown/examples/markdown.d.ts +7 -0
  302. package/dist/types/components/markdown/markdown-types.d.ts +2 -0
  303. package/dist/types/components/markdown/markdown.d.ts +20 -0
  304. package/dist/types/components/navigation/navigation.d.ts +35 -0
  305. package/dist/types/components/playground/playground.d.ts +32 -0
  306. package/dist/types/components/playground/playground.types.d.ts +1 -0
  307. package/dist/types/components/proplist/proplist.d.ts +12 -0
  308. package/dist/types/components/search/search.d.ts +15 -0
  309. package/dist/types/components/taglist/taglist.d.ts +16 -0
  310. package/dist/types/components/type/templates/alias.d.ts +4 -0
  311. package/dist/types/components/type/templates/enum.d.ts +4 -0
  312. package/dist/types/components/type/templates/interface.d.ts +4 -0
  313. package/dist/types/components/type/type.d.ts +15 -0
  314. package/dist/types/components.d.ts +517 -0
  315. package/dist/types/index.d.ts +5 -0
  316. package/dist/types/kompendium/config.d.ts +2 -0
  317. package/dist/types/kompendium/filesystem.d.ts +1 -0
  318. package/dist/types/kompendium/generator.d.ts +4 -0
  319. package/dist/types/kompendium/guides.d.ts +9 -0
  320. package/dist/types/kompendium/index.d.ts +1 -0
  321. package/dist/types/kompendium/markdown-admonitions.d.ts +3 -0
  322. package/dist/types/kompendium/markdown-code.d.ts +2 -0
  323. package/dist/types/kompendium/markdown-frontmatter.d.ts +6 -0
  324. package/dist/types/kompendium/markdown-nodes.d.ts +12 -0
  325. package/dist/types/kompendium/markdown-typelinks.d.ts +21 -0
  326. package/dist/types/kompendium/markdown.d.ts +8 -0
  327. package/dist/types/kompendium/menu.d.ts +12 -0
  328. package/dist/types/kompendium/schema.d.ts +9 -0
  329. package/dist/types/kompendium/search.d.ts +3 -0
  330. package/dist/types/kompendium/source.d.ts +10 -0
  331. package/dist/types/kompendium/test/fixtures/basic.d.ts +65 -0
  332. package/dist/types/kompendium/test/fixtures/filtering/example-type.d.ts +8 -0
  333. package/dist/types/kompendium/test/fixtures/filtering/node-modules-type.d.ts +8 -0
  334. package/dist/types/kompendium/test/fixtures/filtering/private-types.d.ts +23 -0
  335. package/dist/types/kompendium/test/fixtures/filtering/stencil-component-types.d.ts +19 -0
  336. package/dist/types/kompendium/test/fixtures/filtering/test-helper-type.d.ts +8 -0
  337. package/dist/types/kompendium/test/fixtures/filtering/valid-types.d.ts +42 -0
  338. package/dist/types/kompendium/typedoc.d.ts +2 -0
  339. package/dist/types/kompendium/watch.d.ts +1 -0
  340. package/dist/types/stencil-public-runtime.d.ts +1746 -0
  341. package/dist/types/types.d.ts +119 -0
  342. package/dist/watch.ts +14 -0
  343. package/loader/cdn.js +1 -0
  344. package/loader/index.cjs.js +1 -0
  345. package/loader/index.d.ts +24 -0
  346. package/loader/index.es2017.js +1 -0
  347. package/loader/index.js +2 -0
  348. package/package.json +116 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium-component.entry.cjs.js","sources":["src/components/component/templates/events.tsx","src/components/component/templates/slots.tsx","src/components/component/templates/style.tsx","src/components/component/templates/examples.tsx","node_modules/lodash/negate.js","src/components/component/component.scss?tag=kompendium-component&encapsulation=shadow","src/components/component/component.tsx"],"sourcesContent":["import { JsonDocsEvent } from '@stencil/core/internal';\nimport { h } from '@stencil/core';\nimport { ProplistItem } from '../../proplist/proplist';\n\nexport function EventList({\n events,\n id,\n}: {\n id: string;\n events: JsonDocsEvent[];\n}): HTMLElement[] {\n if (!events.length) {\n return;\n }\n\n return [\n <h3 class=\"docs-layout-section-heading\" id={id}>\n Events\n </h3>,\n ...events.map(renderEvent),\n ];\n}\n\nfunction renderEvent(event: JsonDocsEvent) {\n const items: ProplistItem[] = [\n {\n key: 'Detail',\n value: event.detail,\n },\n {\n key: 'Bubbles',\n value: String(event.bubbles),\n },\n {\n key: 'Cancelable',\n value: String(event.cancelable),\n },\n {\n key: 'Composed',\n value: String(event.composed),\n },\n ];\n\n return (\n <div class=\"props-events-layout\">\n <h4>{event.event}</h4>\n <kompendium-taglist tags={event.docsTags} />\n <div class=\"markdown-props\">\n <kompendium-markdown text={event.docs} />\n <kompendium-proplist items={items} />\n </div>\n </div>\n );\n}\n","import { JsonDocsSlot } from '@stencil/core/internal';\nimport { h } from '@stencil/core';\n\nexport function SlotList({\n slots,\n id,\n}: {\n id: string;\n slots: JsonDocsSlot[];\n}): HTMLElement[] {\n if (!slots.length) {\n return;\n }\n\n return [\n <h3 class=\"docs-layout-section-heading\" id={id}>\n Slots\n </h3>,\n ...slots.map(renderSlot),\n ];\n}\n\nfunction renderSlot(slot: JsonDocsSlot) {\n return (\n <div>\n <h4>{slot.name}</h4>\n <kompendium-markdown text={slot.docs} />\n </div>\n );\n}\n","import { JsonDocsStyle } from '@stencil/core/internal';\nimport { h } from '@stencil/core';\n\nexport function StyleList({\n styles,\n id,\n}: {\n id: string;\n styles: JsonDocsStyle[];\n}): HTMLElement[] {\n if (!styles.length) {\n return;\n }\n\n return [\n <h3 class=\"docs-layout-section-heading\" id={id}>\n Styles\n </h3>,\n ...styles.map(renderStyle),\n ];\n}\n\nfunction renderStyle(style: JsonDocsStyle) {\n return (\n <div class=\"styles-layout\">\n <div class=\"styles-title\">\n <code>{style.name}</code>\n </div>\n <div class=\"styles-content\">\n <kompendium-markdown text={style.docs} />\n </div>\n </div>\n );\n}\n","import { JsonDocsComponent, JsonDocsTag } from '@stencil/core/internal';\nimport { h } from '@stencil/core';\nimport { PropsFactory } from '../../playground/playground.types';\n\nexport function ExampleList({\n examples,\n id,\n schema,\n propsFactory,\n}: {\n id: string;\n examples: JsonDocsComponent[];\n schema: Record<string, any>;\n propsFactory?: PropsFactory;\n}): HTMLElement[] {\n if (!examples.length) {\n return;\n }\n\n return [\n <h3 class=\"docs-layout-section-heading\" id={id}>\n Examples\n </h3>,\n examples.map(renderExample(schema, propsFactory)),\n ];\n}\n\nconst renderExample =\n (schema: Record<string, any>, factory: PropsFactory) =>\n (example: JsonDocsComponent) => {\n return (\n <kompendium-playground\n component={example}\n schema={schema}\n propsFactory={factory}\n />\n );\n };\n\nexport const isExampleTag =\n (name: string) =>\n (tag: JsonDocsTag): boolean => {\n return tag.text.startsWith(name);\n };\n","/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\nfunction negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n}\n\nmodule.exports = negate;\n","@use '../../style/reset.scss';\n@use '../../style/variables.scss';\n@use '../../style/mixins.scss';\n@use '../../style/functions.scss';\n@use '../../style/typography.scss';\n@use '../../style/global-layout-rules.scss';\n\n:host {\n display: block;\n}\n\n.docs {\n kompendium-markdown {\n display: block;\n width: 100%;\n max-width: functions.pxToRem(960);\n }\n}\n","import { Component, h, Prop, Element } from '@stencil/core';\nimport {\n JsonDocs,\n JsonDocsComponent,\n JsonDocsTag,\n} from '@stencil/core/internal';\nimport { MatchResults } from '@limetech/stencil-router';\nimport { PropertyList } from './templates/props';\nimport { EventList } from './templates/events';\nimport { MethodList } from './templates/methods';\nimport { SlotList } from './templates/slots';\nimport { StyleList } from './templates/style';\nimport { ExampleList } from './templates/examples';\nimport negate from 'lodash/negate';\nimport { PropsFactory } from '../playground/playground.types';\nimport { getRoute, scrollToElement } from '../anchor-scroll';\n\n@Component({\n tag: 'kompendium-component',\n shadow: true,\n styleUrl: 'component.scss',\n})\nexport class KompendiumComponent {\n /**\n * The generated documentation data\n */\n @Prop()\n public docs: JsonDocs;\n\n /**\n * Component schemas\n */\n @Prop()\n public schemas: Array<Record<string, any>>;\n\n /**\n * Matched route parameters\n */\n @Prop()\n public match: MatchResults;\n\n /**\n * Factory for creating props for example components\n */\n @Prop()\n public examplePropsFactory: PropsFactory;\n\n @Element()\n private host: HTMLKompendiumComponentElement;\n\n private scrollToOnNextUpdate: string = null;\n\n constructor() {\n this.handleRouteChange = this.handleRouteChange.bind(this);\n }\n\n protected connectedCallback(): void {\n window.addEventListener('hashchange', this.handleRouteChange);\n }\n\n protected disconnectedCallback(): void {\n window.removeEventListener('hashchange', this.handleRouteChange);\n }\n\n protected componentDidLoad(): void {\n const route = getRoute().split('#')[0];\n scrollToElement(this.host.shadowRoot, route);\n }\n\n protected componentDidUpdate(): void {\n if (this.scrollToOnNextUpdate) {\n const route = this.scrollToOnNextUpdate.split('#')[0];\n scrollToElement(this.host.shadowRoot, route);\n this.scrollToOnNextUpdate = null;\n }\n }\n\n private handleRouteChange() {\n this.scrollToOnNextUpdate = getRoute().split('#')[0];\n }\n\n public render(): HTMLElement {\n const tag = this.match.params.name;\n const component = findComponent(tag, this.docs);\n\n return (\n <article class=\"component\">\n <section class=\"docs\">\n {this.renderDocs(tag, component)}\n </section>\n </article>\n );\n }\n\n private renderDocs(tag: string, component: JsonDocsComponent) {\n let title = tag.split('-').slice(1).join(' ');\n title = title[0].toLocaleUpperCase() + title.slice(1);\n const examples = findExamples(component, this.docs);\n const tags = component.docsTags\n .filter(negate(isTag('slot')))\n .filter(negate(isTag('exampleComponent')));\n const schema = this.schemas.find((s) => s.$id === tag);\n\n return [\n <h1 id={this.getId()}>{title}</h1>,\n <kompendium-markdown text={component.docs} />,\n <kompendium-taglist tags={tags} />,\n <ExampleList\n examples={examples}\n id={this.getId('examples')}\n schema={schema}\n propsFactory={this.examplePropsFactory}\n />,\n <PropertyList\n props={component.props}\n id={this.getId('properties')}\n />,\n <EventList events={component.events} id={this.getId('events')} />,\n <MethodList\n methods={component.methods}\n id={this.getId('methods')}\n />,\n <SlotList slots={component.slots} id={this.getId('slots')} />,\n <StyleList styles={component.styles} id={this.getId('styles')} />,\n ];\n }\n\n private getId(name?: string) {\n const route = getRoute().split('#')[0].split('/').slice(0, 3).join('/');\n\n return [route, name].filter((item) => !!item).join('/') + '/';\n }\n}\n\nfunction findExamples(component: JsonDocsComponent, docs: JsonDocs) {\n return component.docsTags\n .filter(isTag('exampleComponent'))\n .map(findComponentByTag(docs));\n}\n\nfunction findComponent(tag: string, docs: JsonDocs) {\n return docs.components.find((doc) => doc.tag === tag);\n}\n\nconst findComponentByTag = (docs: JsonDocs) => (tag: JsonDocsTag) => {\n return docs.components.find((component) => component.tag === tag.text);\n};\n\nconst isTag = (name: string) => (tag: JsonDocsTag) => {\n return tag.name === name;\n};\n"],"names":["h","getRoute","scrollToElement","PropertyList","MethodList"],"mappings":";;;;;;;SAIgB,SAAS,CAAC,EACtB,MAAM,EACN,EAAE,GAIL,EAAA;AACG,IAAA,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;QAChB;;IAGJ,OAAO;AACH,QAAAA,OAAA,CAAA,IAAA,EAAA,EAAI,KAAK,EAAC,6BAA6B,EAAC,EAAE,EAAE,EAAE,EAEzC,EAAA,QAAA,CAAA;AACL,QAAA,GAAG,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC;KAC7B;AACL;AAEA,SAAS,WAAW,CAAC,KAAoB,EAAA;AACrC,IAAA,MAAM,KAAK,GAAmB;AAC1B,QAAA;AACI,YAAA,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,KAAK,CAAC,MAAM;AACtB,SAAA;AACD,QAAA;AACI,YAAA,GAAG,EAAE,SAAS;AACd,YAAA,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;AAC/B,SAAA;AACD,QAAA;AACI,YAAA,GAAG,EAAE,YAAY;AACjB,YAAA,KAAK,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B,GAAG,CAAC,IAAc,KAAK,CAAC,GAAgB,KAAI;AAChE,IAAA,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,CAAC;AAC1E,CAAC;AAED,MAAM,KAAK,GAAG,CAAC,IAAY,KAAK,CAAC,GAAgB,KAAI;AACjD,IAAA,OAAO,GAAG,CAAC,IAAI,KAAK,IAAI;AAC5B,CAAC;;;;;","x_google_ignoreList":[4]}
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-DYiJ6dQL.js');
4
+
5
+ const KompendiumDebug = class {
6
+ constructor(hostRef) {
7
+ index.registerInstance(this, hostRef);
8
+ /**
9
+ * Factory for creating props for example components
10
+ * @returns {Record<string, unknown>} props
11
+ */
12
+ this.examplePropsFactory = () => ({});
13
+ }
14
+ render() {
15
+ const tag = this.match.params.name;
16
+ const component = findComponent(tag, this.docs);
17
+ return (index.h("article", { key: '29c045c23cd107d1d0006467db9abad681bb7e2e', class: "component" }, index.h("section", { key: 'ae3e9fe451f3663a720d2113d140f1efb42a5da8', class: "docs debug" }, this.renderComponent(component))));
18
+ }
19
+ renderComponent(component) {
20
+ const ExampleComponent = component.tag;
21
+ const ownerComponent = this.docs.components.find(isOwnerOf(component));
22
+ const schema = this.schemas.find((s) => s.$id === ownerComponent.tag);
23
+ const factory = this.examplePropsFactory;
24
+ const props = {
25
+ schema: schema,
26
+ ...factory(ExampleComponent),
27
+ };
28
+ return (index.h("div", { class: "show-case" }, index.h("div", { class: "show-case_component" }, index.h(ExampleComponent, { ...props }))));
29
+ }
30
+ };
31
+ function findComponent(tag, docs) {
32
+ return docs.components.find((doc) => doc.tag === tag);
33
+ }
34
+ const isOwnerOf = (example) => (component) => {
35
+ return !!component.docsTags
36
+ .filter(isTag('exampleComponent'))
37
+ .find(hasText(example.tag));
38
+ };
39
+ const isTag = (name) => (tag) => {
40
+ return tag.name === name;
41
+ };
42
+ const hasText = (name) => (tag) => {
43
+ return tag.text === name;
44
+ };
45
+
46
+ exports.kompendium_debug = KompendiumDebug;
47
+ //# sourceMappingURL=kompendium-debug.entry.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium-debug.entry.cjs.js","sources":["src/components/debug/debug.tsx"],"sourcesContent":["import { Component, h, Prop } from '@stencil/core';\nimport {\n JsonDocs,\n JsonDocsComponent,\n JsonDocsTag,\n} from '@stencil/core/internal';\nimport { MatchResults } from '@limetech/stencil-router';\nimport { PropsFactory } from '../playground/playground.types';\n\n@Component({\n tag: 'kompendium-debug',\n shadow: true,\n})\nexport class KompendiumDebug {\n /**\n * The generated documentation data\n */\n @Prop()\n public docs: JsonDocs;\n\n /**\n * Component schemas\n */\n @Prop()\n public schemas: Array<Record<string, any>>;\n\n /**\n * Matched route parameters\n */\n @Prop()\n public match: MatchResults;\n\n /**\n * Factory for creating props for example components\n * @returns {Record<string, unknown>} props\n */\n @Prop()\n public examplePropsFactory?: PropsFactory = () => ({});\n\n public render(): HTMLElement {\n const tag = this.match.params.name;\n const component = findComponent(tag, this.docs);\n\n return (\n <article class=\"component\">\n <section class=\"docs debug\">\n {this.renderComponent(component)}\n </section>\n </article>\n );\n }\n\n private renderComponent(component: JsonDocsComponent) {\n const ExampleComponent = component.tag;\n const ownerComponent = this.docs.components.find(isOwnerOf(component));\n const schema = this.schemas.find((s) => s.$id === ownerComponent.tag);\n const factory = this.examplePropsFactory;\n const props = {\n schema: schema,\n ...factory(ExampleComponent),\n };\n\n return (\n <div class=\"show-case\">\n <div class=\"show-case_component\">\n <ExampleComponent {...props} />\n </div>\n </div>\n );\n }\n}\n\nfunction findComponent(tag: string, docs: JsonDocs) {\n return docs.components.find((doc) => doc.tag === tag);\n}\n\nconst isOwnerOf =\n (example: JsonDocsComponent) => (component: JsonDocsComponent) => {\n return !!component.docsTags\n .filter(isTag('exampleComponent'))\n .find(hasText(example.tag));\n };\n\nconst isTag = (name: string) => (tag: JsonDocsTag) => {\n return tag.name === name;\n};\n\nconst hasText = (name: string) => (tag: JsonDocsTag) => {\n return tag.text === name;\n};\n"],"names":["h"],"mappings":";;;;MAaa,eAAe,GAAA,MAAA;AAJ5B,IAAA,WAAA,CAAA,OAAA,EAAA;;AAuBI;;;AAGG;QAEI,IAAA,CAAA,mBAAmB,GAAkB,OAAO,EAAE,CAAC;AAiCzD;IA/BU,MAAM,GAAA;QACT,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;QAClC,MAAM,SAAS,GAAG,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC;AAE/C,QAAA,QACIA,OAAA,CAAA,SAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAS,KAAK,EAAC,WAAW,EAAA,EACtBA,OAAA,CAAA,SAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAS,KAAK,EAAC,YAAY,EAAA,EACtB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAC1B,CACJ;;AAIV,IAAA,eAAe,CAAC,SAA4B,EAAA;AAChD,QAAA,MAAM,gBAAgB,GAAG,SAAS,CAAC,GAAG;AACtC,QAAA,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,cAAc,CAAC,GAAG,CAAC;AACrE,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB;AACxC,QAAA,MAAM,KAAK,GAAG;AACV,YAAA,MAAM,EAAE,MAAM;YACd,GAAG,OAAO,CAAC,gBAAgB,CAAC;SAC/B;AAED,QAAA,QACIA,OAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,WAAW,EAAA,EAClBA,OAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,qBAAqB,EAAA,EAC5BA,OAAA,CAAC,gBAAgB,EAAK,EAAA,GAAA,KAAK,GAAI,CAC7B,CACJ;;;AAKlB,SAAS,aAAa,CAAC,GAAW,EAAE,IAAc,EAAA;AAC9C,IAAA,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC;AACzD;AAEA,MAAM,SAAS,GACX,CAAC,OAA0B,KAAK,CAAC,SAA4B,KAAI;AAC7D,IAAA,OAAO,CAAC,CAAC,SAAS,CAAC;AACd,SAAA,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC;SAChC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAEL,MAAM,KAAK,GAAG,CAAC,IAAY,KAAK,CAAC,GAAgB,KAAI;AACjD,IAAA,OAAO,GAAG,CAAC,IAAI,KAAK,IAAI;AAC5B,CAAC;AAED,MAAM,OAAO,GAAG,CAAC,IAAY,KAAK,CAAC,GAAgB,KAAI;AACnD,IAAA,OAAO,GAAG,CAAC,IAAI,KAAK,IAAI;AAC5B,CAAC;;;;"}
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-DYiJ6dQL.js');
4
+
5
+ const code = `
6
+ import foo from 'foo';
7
+
8
+ foo();
9
+ `;
10
+ const CodeExample = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ }
14
+ render() {
15
+ return index.h("kompendium-code", { key: '03405a3a1ab839b1b9caa99cf938230a1ff61c18', language: "ts" }, code);
16
+ }
17
+ };
18
+
19
+ exports.kompendium_example_code = CodeExample;
20
+ //# sourceMappingURL=kompendium-example-code.entry.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium-example-code.entry.cjs.js","sources":["src/components/code/examples/code.tsx"],"sourcesContent":["import { Component, h } from '@stencil/core';\n\nconst code = `\nimport foo from 'foo';\n\nfoo();\n`;\n\n@Component({\n tag: 'kompendium-example-code',\n shadow: true,\n})\nexport class CodeExample {\n public render(): HTMLElement {\n return <kompendium-code language=\"ts\">{code}</kompendium-code>;\n }\n}\n"],"names":["h"],"mappings":";;;;AAEA,MAAM,IAAI,GAAG;;;;CAIZ;MAMY,WAAW,GAAA,MAAA;;;;IACb,MAAM,GAAA;AACT,QAAA,OAAOA,8EAAiB,QAAQ,EAAC,IAAI,EAAE,EAAA,IAAI,CAAmB;;;;;;"}
@@ -0,0 +1,165 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-DYiJ6dQL.js');
4
+
5
+ const markdownExample = `
6
+ ## Headings
7
+
8
+ The following HTML \`<h1>\`—\`<h6>\` elements represent six levels of section headings. \`<h1>\` is the highest section level while \`<h6>\` is the lowest.
9
+
10
+ # H1
11
+ ## H2
12
+ ### H3
13
+ #### H4
14
+ ##### H5
15
+ ###### H6
16
+
17
+ ## Paragraph
18
+
19
+ Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
20
+
21
+ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
22
+
23
+ ## Blockquotes
24
+
25
+ The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a \`footer\` or \`cite\` element, and optionally with in-line changes such as annotations and abbreviations.
26
+
27
+ #### Blockquote without attribution
28
+
29
+ > Tiam, ad mint andaepu dandae nostion secatur sequo quae.
30
+ > **Note** that you can use *Markdown syntax* within a blockquote.
31
+
32
+ #### Blockquote with attribution
33
+
34
+ > Don't communicate by sharing memory, share memory by communicating.</p>
35
+ > — <cite>Rob Pike[^1]</cite>
36
+
37
+
38
+ [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
39
+
40
+ ## Tables
41
+
42
+ Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
43
+
44
+ | Name | Age |
45
+ | ----- | --- |
46
+ | Bob | 27 |
47
+ | Alice | 23 |
48
+
49
+ #### Inline Markdown within tables
50
+
51
+ | Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |
52
+ | ------------------------ | -------------------------- | ----------------------------------- | ------ |
53
+ | *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | \`code\` |
54
+
55
+ ## Code Blocks
56
+
57
+ #### Code block with backticks
58
+
59
+ \`\`\`
60
+ html
61
+ <!DOCTYPE html>
62
+ <html lang="en">
63
+ <head>
64
+ <meta charset="UTF-8">
65
+ <title>Example HTML5 Document</title>
66
+ </head>
67
+ <body>
68
+ <p>Test</p>
69
+ </body>
70
+ </html>
71
+ \`\`\`
72
+
73
+ #### Code block indented with four spaces
74
+
75
+ <!DOCTYPE html>
76
+ <html lang="en">
77
+ <head>
78
+ <meta charset="UTF-8">
79
+ <title>Example HTML5 Document</title>
80
+ </head>
81
+ <body>
82
+ <p>Test</p>
83
+ </body>
84
+ </html>
85
+
86
+ ## List Types
87
+
88
+ #### Ordered List
89
+
90
+ 1. First item
91
+ 2. Second item
92
+ 3. Third item
93
+
94
+ #### Unordered List
95
+
96
+ * List item
97
+ * Another item
98
+ * And another item
99
+
100
+ #### Nested list
101
+
102
+ * Fruit
103
+ * Apple
104
+ * Orange
105
+ * Banana
106
+ * Dairy
107
+ * Milk
108
+ * Cheese
109
+
110
+ ## Other Elements — abbr, sub, sup, kbd, mark
111
+
112
+ <abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
113
+
114
+ H<sub>2</sub>O
115
+
116
+ X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
117
+
118
+ Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
119
+
120
+ Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
121
+
122
+ ## Emoji Rendering
123
+
124
+ <p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
125
+ <br>
126
+
127
+ ## Callout Rendering
128
+
129
+ :::note
130
+ Some important note.
131
+ :::
132
+
133
+ :::tip
134
+ A very useful tip!
135
+ :::
136
+
137
+ :::warning
138
+ Just be careful.
139
+ :::
140
+
141
+ :::danger
142
+ This is too risky.
143
+ :::
144
+
145
+ :::important
146
+ This is vey important!
147
+ :::
148
+
149
+ :::info
150
+ Just for your information…
151
+ :::
152
+
153
+ `;
154
+
155
+ const MarkdownExample = class {
156
+ constructor(hostRef) {
157
+ index.registerInstance(this, hostRef);
158
+ }
159
+ render() {
160
+ return index.h("kompendium-markdown", { key: '6db38675f45e524403707a714226b9f794ea1285', text: markdownExample });
161
+ }
162
+ };
163
+
164
+ exports.kompendium_example_markdown = MarkdownExample;
165
+ //# sourceMappingURL=kompendium-example-markdown.entry.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium-example-markdown.entry.cjs.js","sources":["src/components/markdown/examples/markdown-example.ts","src/components/markdown/examples/markdown.tsx"],"sourcesContent":["export const markdownExample = `\n## Headings\n\nThe following HTML \\`<h1>\\`—\\`<h6>\\` elements represent six levels of section headings. \\`<h1>\\` is the highest section level while \\`<h6>\\` is the lowest.\n\n# H1\n## H2\n### H3\n#### H4\n##### H5\n###### H6\n\n## Paragraph\n\nXerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.\n\nItatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.\n\n## Blockquotes\n\nThe blockquote element represents content that is quoted from another source, optionally with a citation which must be within a \\`footer\\` or \\`cite\\` element, and optionally with in-line changes such as annotations and abbreviations.\n\n#### Blockquote without attribution\n\n> Tiam, ad mint andaepu dandae nostion secatur sequo quae.\n> **Note** that you can use *Markdown syntax* within a blockquote.\n\n#### Blockquote with attribution\n\n> Don't communicate by sharing memory, share memory by communicating.</p>\n> — <cite>Rob Pike[^1]</cite>\n\n\n[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.\n\n## Tables\n\nTables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.\n\n | Name | Age |\n | ----- | --- |\n | Bob | 27 |\n | Alice | 23 |\n\n#### Inline Markdown within tables\n\n| Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |\n| ------------------------ | -------------------------- | ----------------------------------- | ------ |\n| *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | \\`code\\` |\n\n## Code Blocks\n\n#### Code block with backticks\n\n\\`\\`\\`\nhtml\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Example HTML5 Document</title>\n</head>\n<body>\n <p>Test</p>\n</body>\n</html>\n\\`\\`\\`\n\n#### Code block indented with four spaces\n\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title>Example HTML5 Document</title>\n </head>\n <body>\n <p>Test</p>\n </body>\n </html>\n\n## List Types\n\n#### Ordered List\n\n1. First item\n2. Second item\n3. Third item\n\n#### Unordered List\n\n* List item\n* Another item\n* And another item\n\n#### Nested list\n\n* Fruit\n * Apple\n * Orange\n * Banana\n* Dairy\n * Milk\n * Cheese\n\n## Other Elements — abbr, sub, sup, kbd, mark\n\n<abbr title=\"Graphics Interchange Format\">GIF</abbr> is a bitmap image format.\n\nH<sub>2</sub>O\n\nX<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>\n\nPress <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.\n\nMost <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.\n\n## Emoji Rendering\n\n<p><span class=\"nowrap\"><span class=\"emojify\">🙈</span> <code>:see_no_evil:</code></span> <span class=\"nowrap\"><span class=\"emojify\">🙉</span> <code>:hear_no_evil:</code></span> <span class=\"nowrap\"><span class=\"emojify\">🙊</span> <code>:speak_no_evil:</code></span></p>\n<br>\n\n## Callout Rendering\n\n:::note\nSome important note.\n:::\n\n:::tip\nA very useful tip!\n:::\n\n:::warning\nJust be careful.\n:::\n\n:::danger\nThis is too risky.\n:::\n\n:::important\nThis is vey important!\n:::\n\n:::info\nJust for your information…\n:::\n\n`;\n","import { Component, h } from '@stencil/core';\nimport { markdownExample } from './markdown-example';\n\n/**\n * This is a simple example of how the `kompendium-markdown` component is used\n * @sourceFile markdown-example.ts\n */\n@Component({\n tag: 'kompendium-example-markdown',\n shadow: true,\n})\nexport class MarkdownExample {\n public render(): HTMLElement {\n return <kompendium-markdown text={markdownExample} />;\n }\n}\n"],"names":["h"],"mappings":";;;;AAAO,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJ9B;;MCzIY,eAAe,GAAA,MAAA;;;;IACjB,MAAM,GAAA;AACT,QAAA,OAAOA,OAAqB,CAAA,qBAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAE,eAAe,GAAI;;;;;;"}
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-DYiJ6dQL.js');
4
+
5
+ const Guide = class {
6
+ constructor(hostRef) {
7
+ index.registerInstance(this, hostRef);
8
+ this.setRoute = this.setRoute.bind(this);
9
+ }
10
+ connectedCallback() {
11
+ window.addEventListener('hashchange', this.setRoute);
12
+ this.setRoute();
13
+ }
14
+ disconnectedCallback() {
15
+ window.removeEventListener('hashchange', this.setRoute);
16
+ }
17
+ setRoute() {
18
+ this.route = location.hash.replace('#', '');
19
+ }
20
+ render() {
21
+ this.findGuide();
22
+ return index.h("kompendium-markdown", { key: '8df12c70deaae9f377a9e0674b7f274bc62076df', text: this.text });
23
+ }
24
+ findGuide() {
25
+ const guide = this.data.guides.find((g) => g.data.path + '/' === this.route);
26
+ if (guide) {
27
+ this.text = guide.content;
28
+ }
29
+ }
30
+ };
31
+
32
+ exports.kompendium_guide = Guide;
33
+ //# sourceMappingURL=kompendium-guide.entry.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kompendium-guide.entry.cjs.js","sources":["src/components/guide/guide.tsx"],"sourcesContent":["import { Component, h, Prop, State } from '@stencil/core';\nimport { KompendiumData } from '../../types';\n\n@Component({\n tag: 'kompendium-guide',\n shadow: true,\n})\nexport class Guide {\n /**\n */\n @Prop()\n public data: KompendiumData;\n\n @State()\n public route: string;\n\n private text: string;\n\n constructor() {\n this.setRoute = this.setRoute.bind(this);\n }\n\n protected connectedCallback(): void {\n window.addEventListener('hashchange', this.setRoute);\n this.setRoute();\n }\n\n protected disconnectedCallback(): void {\n window.removeEventListener('hashchange', this.setRoute);\n }\n\n private setRoute() {\n this.route = location.hash.replace('#', '');\n }\n\n render(): HTMLElement {\n this.findGuide();\n\n return <kompendium-markdown text={this.text} />;\n }\n\n private findGuide() {\n const guide = this.data.guides.find(\n (g) => g.data.path + '/' === this.route,\n );\n\n if (guide) {\n this.text = guide.content;\n }\n }\n}\n"],"names":["h"],"mappings":";;;;MAOa,KAAK,GAAA,MAAA;AAWd,IAAA,WAAA,CAAA,OAAA,EAAA;;QACI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3C;IAES,iBAAiB,GAAA;QACvB,MAAM,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC;QACpD,IAAI,CAAC,QAAQ,EAAE;;IAGT,oBAAoB,GAAA;QAC1B,MAAM,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC;;IAGnD,QAAQ,GAAA;AACZ,QAAA,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;;IAG/C,MAAM,GAAA;QACF,IAAI,CAAC,SAAS,EAAE;AAEhB,QAAA,OAAOA,kFAAqB,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI;;IAG3C,SAAS,GAAA;QACb,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAC/B,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,KAAK,IAAI,CAAC,KAAK,CAC1C;QAED,IAAI,KAAK,EAAE;AACP,YAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO;;;;;;;"}