@blogmcp/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/_virtual/constants.js +4 -0
  3. package/dist/_virtual/index.js +2 -0
  4. package/dist/_virtual/index2.js +4 -0
  5. package/dist/_virtual/index3.js +2 -0
  6. package/dist/_virtual/re.js +4 -0
  7. package/dist/core/article-seo.d.ts +27 -0
  8. package/dist/core/article-seo.js +25 -0
  9. package/dist/core/auth.d.ts +34 -0
  10. package/dist/core/auth.js +89 -0
  11. package/dist/core/blog-config.d.ts +5 -0
  12. package/dist/core/blog-config.js +14 -0
  13. package/dist/core/client-types.d.ts +51 -0
  14. package/dist/core/client.d.ts +159 -0
  15. package/dist/core/client.js +82 -0
  16. package/dist/core/i18n.d.ts +29 -0
  17. package/dist/core/i18n.js +34 -0
  18. package/dist/core/index.d.ts +26 -0
  19. package/dist/core/index.js +67 -0
  20. package/dist/core/markdown.d.ts +69 -0
  21. package/dist/core/markdown.js +47 -0
  22. package/dist/core/navigation.d.ts +70 -0
  23. package/dist/core/navigation.js +71 -0
  24. package/dist/core/queries.d.ts +34 -0
  25. package/dist/core/queries.js +363 -0
  26. package/dist/core/retry.d.ts +9 -0
  27. package/dist/core/retry.js +14 -0
  28. package/dist/core/seo.d.ts +142 -0
  29. package/dist/core/seo.js +166 -0
  30. package/dist/core/theme.d.ts +41 -0
  31. package/dist/core/theme.js +60 -0
  32. package/dist/core/translations/cs.json.js +27 -0
  33. package/dist/core/translations/en.json.js +27 -0
  34. package/dist/core/types.d.ts +184 -0
  35. package/dist/core/types.js +9 -0
  36. package/dist/core/view-model.d.ts +53 -0
  37. package/dist/core/view-model.js +47 -0
  38. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +8 -0
  39. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +60 -0
  40. package/dist/node_modules/dompurify/dist/purify.es.js +662 -0
  41. package/dist/node_modules/semver/classes/comparator.js +56 -0
  42. package/dist/node_modules/semver/classes/range.js +148 -0
  43. package/dist/node_modules/semver/classes/semver.js +169 -0
  44. package/dist/node_modules/semver/functions/clean.js +14 -0
  45. package/dist/node_modules/semver/functions/cmp.js +39 -0
  46. package/dist/node_modules/semver/functions/coerce.js +33 -0
  47. package/dist/node_modules/semver/functions/compare-build.js +14 -0
  48. package/dist/node_modules/semver/functions/compare-loose.js +11 -0
  49. package/dist/node_modules/semver/functions/compare.js +11 -0
  50. package/dist/node_modules/semver/functions/diff.js +24 -0
  51. package/dist/node_modules/semver/functions/eq.js +11 -0
  52. package/dist/node_modules/semver/functions/gt.js +11 -0
  53. package/dist/node_modules/semver/functions/gte.js +11 -0
  54. package/dist/node_modules/semver/functions/inc.js +21 -0
  55. package/dist/node_modules/semver/functions/lt.js +11 -0
  56. package/dist/node_modules/semver/functions/lte.js +11 -0
  57. package/dist/node_modules/semver/functions/major.js +11 -0
  58. package/dist/node_modules/semver/functions/minor.js +11 -0
  59. package/dist/node_modules/semver/functions/neq.js +11 -0
  60. package/dist/node_modules/semver/functions/parse.js +21 -0
  61. package/dist/node_modules/semver/functions/patch.js +11 -0
  62. package/dist/node_modules/semver/functions/prerelease.js +14 -0
  63. package/dist/node_modules/semver/functions/rcompare.js +11 -0
  64. package/dist/node_modules/semver/functions/rsort.js +11 -0
  65. package/dist/node_modules/semver/functions/satisfies.js +18 -0
  66. package/dist/node_modules/semver/functions/sort.js +11 -0
  67. package/dist/node_modules/semver/functions/valid.js +14 -0
  68. package/dist/node_modules/semver/index.js +97 -0
  69. package/dist/node_modules/semver/internal/constants.js +28 -0
  70. package/dist/node_modules/semver/internal/debug.js +8 -0
  71. package/dist/node_modules/semver/internal/identifiers.js +18 -0
  72. package/dist/node_modules/semver/internal/lrucache.js +32 -0
  73. package/dist/node_modules/semver/internal/parse-options.js +10 -0
  74. package/dist/node_modules/semver/internal/re.js +32 -0
  75. package/dist/node_modules/semver/ranges/gtr.js +11 -0
  76. package/dist/node_modules/semver/ranges/intersects.js +11 -0
  77. package/dist/node_modules/semver/ranges/ltr.js +11 -0
  78. package/dist/node_modules/semver/ranges/max-satisfying.js +22 -0
  79. package/dist/node_modules/semver/ranges/min-satisfying.js +22 -0
  80. package/dist/node_modules/semver/ranges/min-version.js +42 -0
  81. package/dist/node_modules/semver/ranges/outside.js +44 -0
  82. package/dist/node_modules/semver/ranges/simplify.js +24 -0
  83. package/dist/node_modules/semver/ranges/subset.js +94 -0
  84. package/dist/node_modules/semver/ranges/to-comparators.js +11 -0
  85. package/dist/node_modules/semver/ranges/valid.js +17 -0
  86. package/dist/nuxt/composables/useAsyncKb.d.ts +32 -0
  87. package/dist/nuxt/composables/useAsyncKb.js +34 -0
  88. package/dist/nuxt/index.d.ts +1 -0
  89. package/dist/nuxt/index.js +6 -0
  90. package/dist/packages/mdx-render-vue/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  91. package/dist/packages/mdx-render-vue/dist/_virtual/constants.js +4 -0
  92. package/dist/packages/mdx-render-vue/dist/_virtual/index.js +5 -0
  93. package/dist/packages/mdx-render-vue/dist/_virtual/index2.js +4 -0
  94. package/dist/packages/mdx-render-vue/dist/composables/useAudioPlayer.js +40 -0
  95. package/dist/packages/mdx-render-vue/dist/composables/useCallout.js +66 -0
  96. package/dist/packages/mdx-render-vue/dist/composables/useCodeBlock.js +62 -0
  97. package/dist/packages/mdx-render-vue/dist/composables/useGallery.js +68 -0
  98. package/dist/packages/mdx-render-vue/dist/composables/useMedia.js +9 -0
  99. package/dist/packages/mdx-render-vue/dist/composables/useYouTube.js +24 -0
  100. package/dist/packages/mdx-render-vue/dist/edit/AlertEdit.vue.js +4 -0
  101. package/dist/packages/mdx-render-vue/dist/edit/AlertEdit.vue2.js +16 -0
  102. package/dist/packages/mdx-render-vue/dist/edit/AudioPlayerEdit.vue.js +102 -0
  103. package/dist/packages/mdx-render-vue/dist/edit/AudioPlayerEdit.vue2.js +4 -0
  104. package/dist/packages/mdx-render-vue/dist/edit/BadgeEdit.vue.js +4 -0
  105. package/dist/packages/mdx-render-vue/dist/edit/BadgeEdit.vue2.js +11 -0
  106. package/dist/packages/mdx-render-vue/dist/edit/ButtonEdit.vue.js +4 -0
  107. package/dist/packages/mdx-render-vue/dist/edit/ButtonEdit.vue2.js +11 -0
  108. package/dist/packages/mdx-render-vue/dist/edit/CalloutEdit.vue.js +78 -0
  109. package/dist/packages/mdx-render-vue/dist/edit/CalloutEdit.vue2.js +4 -0
  110. package/dist/packages/mdx-render-vue/dist/edit/CardEdit.vue.js +4 -0
  111. package/dist/packages/mdx-render-vue/dist/edit/CardEdit.vue2.js +16 -0
  112. package/dist/packages/mdx-render-vue/dist/edit/CodeBlockEdit.vue.js +6 -0
  113. package/dist/packages/mdx-render-vue/dist/edit/CodeBlockEdit.vue2.js +74 -0
  114. package/dist/packages/mdx-render-vue/dist/edit/GalleryEdit.vue.js +56 -0
  115. package/dist/packages/mdx-render-vue/dist/edit/GalleryEdit.vue2.js +4 -0
  116. package/dist/packages/mdx-render-vue/dist/edit/IconEdit.vue.js +4 -0
  117. package/dist/packages/mdx-render-vue/dist/edit/IconEdit.vue2.js +11 -0
  118. package/dist/packages/mdx-render-vue/dist/edit/TooltipEdit.vue.js +4 -0
  119. package/dist/packages/mdx-render-vue/dist/edit/TooltipEdit.vue2.js +20 -0
  120. package/dist/packages/mdx-render-vue/dist/edit/YouTubeEdit.vue.js +34 -0
  121. package/dist/packages/mdx-render-vue/dist/edit/YouTubeEdit.vue2.js +4 -0
  122. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/_virtual/_rolldown/runtime.js +11 -0
  123. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/factory.js +29 -0
  124. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/presence/use-presence-context.js +6 -0
  125. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/presence/use-presence.js +32 -0
  126. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow-tip.js +5 -0
  127. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow-tip.vue_vue_type_script_setup_true_lang.js +18 -0
  128. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow.js +5 -0
  129. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-arrow.vue_vue_type_script_setup_true_lang.js +18 -0
  130. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-content.js +5 -0
  131. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-content.vue_vue_type_script_setup_true_lang.js +20 -0
  132. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-context.js +5 -0
  133. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-context.vue_vue_type_script_setup_true_lang.js +12 -0
  134. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-positioner.js +5 -0
  135. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-positioner.vue_vue_type_script_setup_true_lang.js +19 -0
  136. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root-provider.js +5 -0
  137. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root-provider.vue_vue_type_script_setup_true_lang.js +29 -0
  138. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root.js +5 -0
  139. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-root.vue_vue_type_script_setup_true_lang.js +59 -0
  140. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-trigger.js +5 -0
  141. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip-trigger.vue_vue_type_script_setup_true_lang.js +21 -0
  142. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/tooltip.js +22 -0
  143. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/use-tooltip-context.js +6 -0
  144. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/components/tooltip/use-tooltip.js +29 -0
  145. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/providers/environment/use-environment-context.js +12 -0
  146. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/providers/locale/use-locale-context.js +11 -0
  147. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/clean-props.js +8 -0
  148. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/create-context.js +12 -0
  149. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/dynamic.js +25 -0
  150. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/unref-element.js +8 -0
  151. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/use-forward-expose.js +36 -0
  152. package/dist/packages/mdx-render-vue/dist/node_modules/@ark-ui/vue/dist/utils/use-render-strategy.js +5 -0
  153. package/dist/packages/mdx-render-vue/dist/node_modules/@braintree/sanitize-url/dist/constants.js +8 -0
  154. package/dist/packages/mdx-render-vue/dist/node_modules/@braintree/sanitize-url/dist/index.js +60 -0
  155. package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
  156. package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
  157. package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  158. package/dist/packages/mdx-render-vue/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  159. package/dist/packages/mdx-render-vue/dist/node_modules/@iconify/vue/dist/iconify.js +1192 -0
  160. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/anatomy/dist/create-anatomy.js +26 -0
  161. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/create-machine.js +21 -0
  162. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/merge-props.js +45 -0
  163. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/scope.js +16 -0
  164. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/state.js +136 -0
  165. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/core/dist/types.js +5 -0
  166. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js +4 -0
  167. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/computed-style.js +8 -0
  168. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/event.js +31 -0
  169. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/node.js +49 -0
  170. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/overflow.js +19 -0
  171. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/platform.js +16 -0
  172. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/query.js +6 -0
  173. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/raf.js +41 -0
  174. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/set.js +14 -0
  175. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/dom-query/dist/shared.js +7 -0
  176. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/focus-visible/dist/index.js +90 -0
  177. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-anchor.js +34 -0
  178. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-placement.js +187 -0
  179. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/get-styles.js +47 -0
  180. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/middleware.js +56 -0
  181. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/popper/dist/placement.js +7 -0
  182. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/presence/dist/presence.connect.js +16 -0
  183. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/presence/dist/presence.machine.js +147 -0
  184. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js +6 -0
  185. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.connect.js +119 -0
  186. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.dom.js +15 -0
  187. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.machine.js +375 -0
  188. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/tooltip/dist/tooltip.store.js +9 -0
  189. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/types/dist/prop-types.js +10 -0
  190. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/array.js +6 -0
  191. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/equal.js +27 -0
  192. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/functions.js +10 -0
  193. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/guard.js +15 -0
  194. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/object.js +13 -0
  195. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/store.js +25 -0
  196. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/utils/dist/warning.js +25 -0
  197. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/bindable.js +37 -0
  198. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/machine.js +205 -0
  199. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/normalize-props.js +30 -0
  200. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/refs.js +14 -0
  201. package/dist/packages/mdx-render-vue/dist/node_modules/@zag-js/vue/dist/track.js +19 -0
  202. package/dist/packages/mdx-render-vue/dist/node_modules/dompurify/dist/purify.es.js +659 -0
  203. package/dist/packages/mdx-render-vue/dist/registry.js +154 -0
  204. package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue.js +4 -0
  205. package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue2.js +37 -0
  206. package/dist/packages/mdx-render-vue/dist/render/audioplayer/AudioPlayerDefault.vue.js +102 -0
  207. package/dist/packages/mdx-render-vue/dist/render/audioplayer/AudioPlayerDefault.vue2.js +4 -0
  208. package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue.js +4 -0
  209. package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue2.js +25 -0
  210. package/dist/packages/mdx-render-vue/dist/render/button/Button.vue.js +4 -0
  211. package/dist/packages/mdx-render-vue/dist/render/button/Button.vue2.js +37 -0
  212. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue.js +79 -0
  213. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue2.js +4 -0
  214. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue.js +22 -0
  215. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue2.js +4 -0
  216. package/dist/packages/mdx-render-vue/dist/render/card/Card.vue.js +4 -0
  217. package/dist/packages/mdx-render-vue/dist/render/card/Card.vue2.js +24 -0
  218. package/dist/packages/mdx-render-vue/dist/render/codeblock/CodeBlockDefault.vue.js +6 -0
  219. package/dist/packages/mdx-render-vue/dist/render/codeblock/CodeBlockDefault.vue2.js +77 -0
  220. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryGrid.vue.js +103 -0
  221. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryGrid.vue2.js +4 -0
  222. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue.js +6 -0
  223. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue2.js +142 -0
  224. package/dist/packages/mdx-render-vue/dist/render/icon/Icon.vue.js +4 -0
  225. package/dist/packages/mdx-render-vue/dist/render/icon/Icon.vue2.js +23 -0
  226. package/dist/packages/mdx-render-vue/dist/render/tooltip/Tooltip.vue.js +4 -0
  227. package/dist/packages/mdx-render-vue/dist/render/tooltip/Tooltip.vue2.js +54 -0
  228. package/dist/packages/mdx-render-vue/dist/render/youtube/YouTubeDefault.vue.js +69 -0
  229. package/dist/packages/mdx-render-vue/dist/render/youtube/YouTubeDefault.vue2.js +4 -0
  230. package/dist/packages/mdx-schema/dist/composables/useMdxParsing.js +139 -0
  231. package/dist/packages/mdx-schema/dist/metadata/index.js +415 -0
  232. package/dist/packages/mdx-schema/dist/prepareProps.js +46 -0
  233. package/dist/packages/mdx-schema/dist/styles/index.js +119 -0
  234. package/dist/packages/mdx-schema/dist/types/index.js +26 -0
  235. package/dist/packages/sanitize/dist/html.js +41 -0
  236. package/dist/react/KbMdxContent.d.ts +35 -0
  237. package/dist/react/KbMdxContent.js +102 -0
  238. package/dist/react/context.d.ts +11 -0
  239. package/dist/react/context.js +5 -0
  240. package/dist/react/hooks/useImageRenderer.d.ts +6 -0
  241. package/dist/react/hooks/useImageRenderer.js +9 -0
  242. package/dist/react/hooks/useKbClient.d.ts +3 -0
  243. package/dist/react/hooks/useKbClient.js +7 -0
  244. package/dist/react/hooks/useKbContext.d.ts +3 -0
  245. package/dist/react/hooks/useKbContext.js +11 -0
  246. package/dist/react/hooks/useKbI18n.d.ts +7 -0
  247. package/dist/react/hooks/useKbI18n.js +8 -0
  248. package/dist/react/hooks/useKbLanguage.d.ts +21 -0
  249. package/dist/react/hooks/useKbLanguage.js +63 -0
  250. package/dist/react/hooks/useKbSearch.d.ts +20 -0
  251. package/dist/react/hooks/useKbSearch.js +22 -0
  252. package/dist/react/hooks/useMdxContent.d.ts +18 -0
  253. package/dist/react/hooks/useMdxContent.js +11 -0
  254. package/dist/react/index.d.ts +21 -0
  255. package/dist/react/index.js +20 -0
  256. package/dist/react/provider.d.ts +25 -0
  257. package/dist/react/provider.js +29 -0
  258. package/dist/react/server/index.d.ts +38 -0
  259. package/dist/react/server/index.js +26 -0
  260. package/dist/sdk.css +1 -0
  261. package/dist/vue/components/KbAccessGate.vue.d.ts +36 -0
  262. package/dist/vue/components/KbAccessGate.vue.js +74 -0
  263. package/dist/vue/components/KbAccessGate.vue2.js +4 -0
  264. package/dist/vue/components/KbArticleCard.vue.d.ts +34 -0
  265. package/dist/vue/components/KbArticleCard.vue.js +87 -0
  266. package/dist/vue/components/KbArticleCard.vue2.js +4 -0
  267. package/dist/vue/components/KbMdxContent.vue.d.ts +5 -0
  268. package/dist/vue/components/KbMdxContent.vue.js +7 -0
  269. package/dist/vue/components/KbMdxContent.vue2.js +82 -0
  270. package/dist/vue/composables/useArticles.d.ts +30 -0
  271. package/dist/vue/composables/useArticles.js +36 -0
  272. package/dist/vue/composables/useImageRenderer.d.ts +6 -0
  273. package/dist/vue/composables/useImageRenderer.js +9 -0
  274. package/dist/vue/composables/useKbAuth.d.ts +27 -0
  275. package/dist/vue/composables/useKbAuth.js +83 -0
  276. package/dist/vue/composables/useKbClient.d.ts +6 -0
  277. package/dist/vue/composables/useKbClient.js +13 -0
  278. package/dist/vue/composables/useKbComments.d.ts +37 -0
  279. package/dist/vue/composables/useKbComments.js +160 -0
  280. package/dist/vue/composables/useKbI18n.d.ts +6 -0
  281. package/dist/vue/composables/useKbI18n.js +8 -0
  282. package/dist/vue/composables/useKbLanguage.d.ts +22 -0
  283. package/dist/vue/composables/useKbLanguage.js +63 -0
  284. package/dist/vue/composables/useNavigation.d.ts +18 -0
  285. package/dist/vue/composables/useNavigation.js +20 -0
  286. package/dist/vue/composables/useSearch.d.ts +21 -0
  287. package/dist/vue/composables/useSearch.js +20 -0
  288. package/dist/vue/composables/useTags.d.ts +17 -0
  289. package/dist/vue/composables/useTags.js +36 -0
  290. package/dist/vue/index.d.ts +22 -0
  291. package/dist/vue/index.js +36 -0
  292. package/dist/vue/plugin.d.ts +30 -0
  293. package/dist/vue/plugin.js +17 -0
  294. package/package.json +97 -0
  295. package/src/core/article-seo.ts +101 -0
  296. package/src/core/auth.ts +138 -0
  297. package/src/core/blog-config.ts +30 -0
  298. package/src/core/client-types.ts +58 -0
  299. package/src/core/client.ts +287 -0
  300. package/src/core/i18n.ts +84 -0
  301. package/src/core/index.ts +147 -0
  302. package/src/core/markdown.ts +178 -0
  303. package/src/core/navigation.ts +152 -0
  304. package/src/core/queries.ts +414 -0
  305. package/src/core/retry.ts +19 -0
  306. package/src/core/seo.ts +374 -0
  307. package/src/core/theme.ts +128 -0
  308. package/src/core/translations/cs.json +225 -0
  309. package/src/core/translations/en.json +225 -0
  310. package/src/core/types.ts +231 -0
  311. package/src/core/view-model.ts +98 -0
  312. package/src/nuxt/composables/useAsyncKb.ts +119 -0
  313. package/src/nuxt/index.ts +6 -0
  314. package/src/react/KbMdxContent.tsx +215 -0
  315. package/src/react/context.ts +25 -0
  316. package/src/react/hooks/useImageRenderer.ts +15 -0
  317. package/src/react/hooks/useKbClient.ts +9 -0
  318. package/src/react/hooks/useKbContext.ts +13 -0
  319. package/src/react/hooks/useKbI18n.ts +15 -0
  320. package/src/react/hooks/useKbLanguage.ts +105 -0
  321. package/src/react/hooks/useKbSearch.ts +50 -0
  322. package/src/react/hooks/useMdxContent.tsx +33 -0
  323. package/src/react/index.ts +31 -0
  324. package/src/react/provider.tsx +70 -0
  325. package/src/react/server/index.ts +70 -0
  326. package/src/vue/components/KbAccessGate.vue +86 -0
  327. package/src/vue/components/KbArticleCard.vue +102 -0
  328. package/src/vue/components/KbMdxContent.vue +211 -0
  329. package/src/vue/composables/useArticles.ts +78 -0
  330. package/src/vue/composables/useImageRenderer.ts +12 -0
  331. package/src/vue/composables/useKbAuth.ts +131 -0
  332. package/src/vue/composables/useKbClient.ts +17 -0
  333. package/src/vue/composables/useKbComments.ts +281 -0
  334. package/src/vue/composables/useKbI18n.ts +11 -0
  335. package/src/vue/composables/useKbLanguage.ts +103 -0
  336. package/src/vue/composables/useNavigation.ts +38 -0
  337. package/src/vue/composables/useSearch.ts +52 -0
  338. package/src/vue/composables/useTags.ts +64 -0
  339. package/src/vue/index.ts +27 -0
  340. package/src/vue/plugin.ts +73 -0
@@ -0,0 +1,56 @@
1
+ import { __require as q } from "../internal/parse-options.js";
2
+ import { __require as p } from "../internal/re.js";
3
+ import { __require as _ } from "../functions/cmp.js";
4
+ import { __require as d } from "../internal/debug.js";
5
+ import { __require as W } from "./semver.js";
6
+ import { __require as R } from "./range.js";
7
+ var o, m;
8
+ function S() {
9
+ if (m) return o;
10
+ m = 1;
11
+ const t = Symbol("SemVer ANY");
12
+ class i {
13
+ static get ANY() {
14
+ return t;
15
+ }
16
+ constructor(r, e) {
17
+ if (e = h(e), r instanceof i) {
18
+ if (r.loose === !!e.loose)
19
+ return r;
20
+ r = r.value;
21
+ }
22
+ r = r.trim().split(/\s+/).join(" "), u("comparator", r, e), this.options = e, this.loose = !!e.loose, this.parse(r), this.semver === t ? this.value = "" : this.value = this.operator + this.semver.version, u("comp", this);
23
+ }
24
+ parse(r) {
25
+ const e = this.options.loose ? n[l.COMPARATORLOOSE] : n[l.COMPARATOR], s = r.match(e);
26
+ if (!s)
27
+ throw new TypeError(`Invalid comparator: ${r}`);
28
+ this.operator = s[1] !== void 0 ? s[1] : "", this.operator === "=" && (this.operator = ""), s[2] ? this.semver = new f(s[2], this.options.loose) : this.semver = t;
29
+ }
30
+ toString() {
31
+ return this.value;
32
+ }
33
+ test(r) {
34
+ if (u("Comparator.test", r, this.options.loose), this.semver === t || r === t)
35
+ return !0;
36
+ if (typeof r == "string")
37
+ try {
38
+ r = new f(r, this.options);
39
+ } catch {
40
+ return !1;
41
+ }
42
+ return a(r, this.operator, this.semver, this.options);
43
+ }
44
+ intersects(r, e) {
45
+ if (!(r instanceof i))
46
+ throw new TypeError("a Comparator is required");
47
+ return this.operator === "" ? this.value === "" ? !0 : new v(r.value, e).test(this.value) : r.operator === "" ? r.value === "" ? !0 : new v(this.value, e).test(r.semver) : (e = h(e), e.includePrerelease && (this.value === "<0.0.0-0" || r.value === "<0.0.0-0") || !e.includePrerelease && (this.value.startsWith("<0.0.0") || r.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && r.operator.startsWith(">") || this.operator.startsWith("<") && r.operator.startsWith("<") || this.semver.version === r.semver.version && this.operator.includes("=") && r.operator.includes("=") || a(this.semver, "<", r.semver, e) && this.operator.startsWith(">") && r.operator.startsWith("<") || a(this.semver, ">", r.semver, e) && this.operator.startsWith("<") && r.operator.startsWith(">")));
48
+ }
49
+ }
50
+ o = i;
51
+ const h = q(), { safeRe: n, t: l } = p(), a = _(), u = d(), f = W(), v = R();
52
+ return o;
53
+ }
54
+ export {
55
+ S as __require
56
+ };
@@ -0,0 +1,148 @@
1
+ import { __require as F } from "../internal/lrucache.js";
2
+ import { __require as V } from "../internal/parse-options.js";
3
+ import { __require as B } from "./comparator.js";
4
+ import { __require as K } from "../internal/debug.js";
5
+ import { __require as J } from "./semver.js";
6
+ import { __require as Q } from "../internal/re.js";
7
+ import { __require as W } from "../internal/constants.js";
8
+ var A, L;
9
+ function le() {
10
+ if (L) return A;
11
+ L = 1;
12
+ const w = /\s+/g;
13
+ class E {
14
+ constructor(e, i) {
15
+ if (i = _(i), e instanceof E)
16
+ return e.loose === !!i.loose && e.includePrerelease === !!i.includePrerelease ? e : new E(e.raw, i);
17
+ if (e instanceof p)
18
+ return this.raw = e.value, this.set = [[e]], this.formatted = void 0, this;
19
+ if (this.options = i, this.loose = !!i.loose, this.includePrerelease = !!i.includePrerelease, this.raw = e.trim().replace(w, " "), this.set = this.raw.split("||").map((t) => this.parseRange(t.trim())).filter((t) => t.length), !this.set.length)
20
+ throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
21
+ if (this.set.length > 1) {
22
+ const t = this.set[0];
23
+ if (this.set = this.set.filter((l) => !S(l[0])), this.set.length === 0)
24
+ this.set = [t];
25
+ else if (this.set.length > 1) {
26
+ for (const l of this.set)
27
+ if (l.length === 1 && x(l[0])) {
28
+ this.set = [l];
29
+ break;
30
+ }
31
+ }
32
+ }
33
+ this.formatted = void 0;
34
+ }
35
+ get range() {
36
+ if (this.formatted === void 0) {
37
+ this.formatted = "";
38
+ for (let e = 0; e < this.set.length; e++) {
39
+ e > 0 && (this.formatted += "||");
40
+ const i = this.set[e];
41
+ for (let t = 0; t < i.length; t++)
42
+ t > 0 && (this.formatted += " "), this.formatted += i[t].toString().trim();
43
+ }
44
+ }
45
+ return this.formatted;
46
+ }
47
+ format() {
48
+ return this.range;
49
+ }
50
+ toString() {
51
+ return this.range;
52
+ }
53
+ parseRange(e) {
54
+ const t = ((this.options.includePrerelease && I) | (this.options.loose && N)) + ":" + e, l = O.get(t);
55
+ if (l)
56
+ return l;
57
+ const s = this.options.loose, n = s ? h[o.HYPHENRANGELOOSE] : h[o.HYPHENRANGE];
58
+ e = e.replace(n, k(this.options.includePrerelease)), f("hyphen replace", e), e = e.replace(h[o.COMPARATORTRIM], y), f("comparator trim", e), e = e.replace(h[o.TILDETRIM], G), f("tilde trim", e), e = e.replace(h[o.CARETTRIM], v), f("caret trim", e);
59
+ let $ = e.split(" ").map((u) => m(u, this.options)).join(" ").split(/\s+/).map((u) => Y(u, this.options));
60
+ s && ($ = $.filter((u) => (f("loose invalid filter", u, this.options), !!u.match(h[o.COMPARATORLOOSE])))), f("range list", $);
61
+ const a = /* @__PURE__ */ new Map(), c = $.map((u) => new p(u, this.options));
62
+ for (const u of c) {
63
+ if (S(u))
64
+ return [u];
65
+ a.set(u.value, u);
66
+ }
67
+ a.size > 1 && a.has("") && a.delete("");
68
+ const R = [...a.values()];
69
+ return O.set(t, R), R;
70
+ }
71
+ intersects(e, i) {
72
+ if (!(e instanceof E))
73
+ throw new TypeError("a Range is required");
74
+ return this.set.some((t) => q(t, i) && e.set.some((l) => q(l, i) && t.every((s) => l.every((n) => s.intersects(n, i)))));
75
+ }
76
+ // if ANY of the sets match ALL of its comparators, then pass
77
+ test(e) {
78
+ if (!e)
79
+ return !1;
80
+ if (typeof e == "string")
81
+ try {
82
+ e = new P(e, this.options);
83
+ } catch {
84
+ return !1;
85
+ }
86
+ for (let i = 0; i < this.set.length; i++)
87
+ if (z(this.set[i], e, this.options))
88
+ return !0;
89
+ return !1;
90
+ }
91
+ }
92
+ A = E;
93
+ const C = F(), O = new C(), _ = V(), p = B(), f = K(), P = J(), {
94
+ safeRe: h,
95
+ t: o,
96
+ comparatorTrimReplace: y,
97
+ tildeTrimReplace: G,
98
+ caretTrimReplace: v
99
+ } = Q(), { FLAG_INCLUDE_PRERELEASE: I, FLAG_LOOSE: N } = W(), S = (r) => r.value === "<0.0.0-0", x = (r) => r.value === "", q = (r, e) => {
100
+ let i = !0;
101
+ const t = r.slice();
102
+ let l = t.pop();
103
+ for (; i && t.length; )
104
+ i = t.every((s) => l.intersects(s, e)), l = t.pop();
105
+ return i;
106
+ }, m = (r, e) => (r = r.replace(h[o.BUILD], ""), f("comp", r, e), r = j(r, e), f("caret", r), r = X(r, e), f("tildes", r), r = b(r, e), f("xrange", r), r = U(r, e), f("stars", r), r), d = (r) => !r || r.toLowerCase() === "x" || r === "*", X = (r, e) => r.trim().split(/\s+/).map((i) => g(i, e)).join(" "), g = (r, e) => {
107
+ const i = e.loose ? h[o.TILDELOOSE] : h[o.TILDE];
108
+ return r.replace(i, (t, l, s, n, $) => {
109
+ f("tilde", r, t, l, s, n, $);
110
+ let a;
111
+ return d(l) ? a = "" : d(s) ? a = `>=${l}.0.0 <${+l + 1}.0.0-0` : d(n) ? a = `>=${l}.${s}.0 <${l}.${+s + 1}.0-0` : $ ? (f("replaceTilde pr", $), a = `>=${l}.${s}.${n}-${$} <${l}.${+s + 1}.0-0`) : a = `>=${l}.${s}.${n} <${l}.${+s + 1}.0-0`, f("tilde return", a), a;
112
+ });
113
+ }, j = (r, e) => r.trim().split(/\s+/).map((i) => D(i, e)).join(" "), D = (r, e) => {
114
+ f("caret", r, e);
115
+ const i = e.loose ? h[o.CARETLOOSE] : h[o.CARET], t = e.includePrerelease ? "-0" : "";
116
+ return r.replace(i, (l, s, n, $, a) => {
117
+ f("caret", r, l, s, n, $, a);
118
+ let c;
119
+ return d(s) ? c = "" : d(n) ? c = `>=${s}.0.0${t} <${+s + 1}.0.0-0` : d($) ? s === "0" ? c = `>=${s}.${n}.0${t} <${s}.${+n + 1}.0-0` : c = `>=${s}.${n}.0${t} <${+s + 1}.0.0-0` : a ? (f("replaceCaret pr", a), s === "0" ? n === "0" ? c = `>=${s}.${n}.${$}-${a} <${s}.${n}.${+$ + 1}-0` : c = `>=${s}.${n}.${$}-${a} <${s}.${+n + 1}.0-0` : c = `>=${s}.${n}.${$}-${a} <${+s + 1}.0.0-0`) : (f("no pr"), s === "0" ? n === "0" ? c = `>=${s}.${n}.${$}${t} <${s}.${n}.${+$ + 1}-0` : c = `>=${s}.${n}.${$}${t} <${s}.${+n + 1}.0-0` : c = `>=${s}.${n}.${$} <${+s + 1}.0.0-0`), f("caret return", c), c;
120
+ });
121
+ }, b = (r, e) => (f("replaceXRanges", r, e), r.split(/\s+/).map((i) => H(i, e)).join(" ")), H = (r, e) => {
122
+ r = r.trim();
123
+ const i = e.loose ? h[o.XRANGELOOSE] : h[o.XRANGE];
124
+ return r.replace(i, (t, l, s, n, $, a) => {
125
+ f("xRange", r, t, l, s, n, $, a);
126
+ const c = d(s), R = c || d(n), u = R || d($), T = u;
127
+ return l === "=" && T && (l = ""), a = e.includePrerelease ? "-0" : "", c ? l === ">" || l === "<" ? t = "<0.0.0-0" : t = "*" : l && T ? (R && (n = 0), $ = 0, l === ">" ? (l = ">=", R ? (s = +s + 1, n = 0, $ = 0) : (n = +n + 1, $ = 0)) : l === "<=" && (l = "<", R ? s = +s + 1 : n = +n + 1), l === "<" && (a = "-0"), t = `${l + s}.${n}.${$}${a}`) : R ? t = `>=${s}.0.0${a} <${+s + 1}.0.0-0` : u && (t = `>=${s}.${n}.0${a} <${s}.${+n + 1}.0-0`), f("xRange return", t), t;
128
+ });
129
+ }, U = (r, e) => (f("replaceStars", r, e), r.trim().replace(h[o.STAR], "")), Y = (r, e) => (f("replaceGTE0", r, e), r.trim().replace(h[e.includePrerelease ? o.GTE0PRE : o.GTE0], "")), k = (r) => (e, i, t, l, s, n, $, a, c, R, u, T) => (d(t) ? i = "" : d(l) ? i = `>=${t}.0.0${r ? "-0" : ""}` : d(s) ? i = `>=${t}.${l}.0${r ? "-0" : ""}` : n ? i = `>=${i}` : i = `>=${i}${r ? "-0" : ""}`, d(c) ? a = "" : d(R) ? a = `<${+c + 1}.0.0-0` : d(u) ? a = `<${c}.${+R + 1}.0-0` : T ? a = `<=${c}.${R}.${u}-${T}` : r ? a = `<${c}.${R}.${+u + 1}-0` : a = `<=${a}`, `${i} ${a}`.trim()), z = (r, e, i) => {
130
+ for (let t = 0; t < r.length; t++)
131
+ if (!r[t].test(e))
132
+ return !1;
133
+ if (e.prerelease.length && !i.includePrerelease) {
134
+ for (let t = 0; t < r.length; t++)
135
+ if (f(r[t].semver), r[t].semver !== p.ANY && r[t].semver.prerelease.length > 0) {
136
+ const l = r[t].semver;
137
+ if (l.major === e.major && l.minor === e.minor && l.patch === e.patch)
138
+ return !0;
139
+ }
140
+ return !1;
141
+ }
142
+ return !0;
143
+ };
144
+ return A;
145
+ }
146
+ export {
147
+ le as __require
148
+ };
@@ -0,0 +1,169 @@
1
+ import { __require as w } from "../internal/debug.js";
2
+ import { __require as g } from "../internal/constants.js";
3
+ import { __require as E } from "../internal/re.js";
4
+ import { __require as b } from "../internal/parse-options.js";
5
+ import { __require as d } from "../internal/identifiers.js";
6
+ var c, f;
7
+ function k() {
8
+ if (f) return c;
9
+ f = 1;
10
+ const a = w(), { MAX_LENGTH: u, MAX_SAFE_INTEGER: h } = g(), { safeRe: l, t: o } = E(), m = b(), { compareIdentifiers: p } = d();
11
+ class n {
12
+ constructor(e, r) {
13
+ if (r = m(r), e instanceof n) {
14
+ if (e.loose === !!r.loose && e.includePrerelease === !!r.includePrerelease)
15
+ return e;
16
+ e = e.version;
17
+ } else if (typeof e != "string")
18
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);
19
+ if (e.length > u)
20
+ throw new TypeError(
21
+ `version is longer than ${u} characters`
22
+ );
23
+ a("SemVer", e, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
24
+ const s = e.trim().match(r.loose ? l[o.LOOSE] : l[o.FULL]);
25
+ if (!s)
26
+ throw new TypeError(`Invalid Version: ${e}`);
27
+ if (this.raw = e, this.major = +s[1], this.minor = +s[2], this.patch = +s[3], this.major > h || this.major < 0)
28
+ throw new TypeError("Invalid major version");
29
+ if (this.minor > h || this.minor < 0)
30
+ throw new TypeError("Invalid minor version");
31
+ if (this.patch > h || this.patch < 0)
32
+ throw new TypeError("Invalid patch version");
33
+ s[4] ? this.prerelease = s[4].split(".").map((t) => {
34
+ if (/^[0-9]+$/.test(t)) {
35
+ const i = +t;
36
+ if (i >= 0 && i < h)
37
+ return i;
38
+ }
39
+ return t;
40
+ }) : this.prerelease = [], this.build = s[5] ? s[5].split(".") : [], this.format();
41
+ }
42
+ format() {
43
+ return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
44
+ }
45
+ toString() {
46
+ return this.version;
47
+ }
48
+ compare(e) {
49
+ if (a("SemVer.compare", this.version, this.options, e), !(e instanceof n)) {
50
+ if (typeof e == "string" && e === this.version)
51
+ return 0;
52
+ e = new n(e, this.options);
53
+ }
54
+ return e.version === this.version ? 0 : this.compareMain(e) || this.comparePre(e);
55
+ }
56
+ compareMain(e) {
57
+ return e instanceof n || (e = new n(e, this.options)), this.major < e.major ? -1 : this.major > e.major ? 1 : this.minor < e.minor ? -1 : this.minor > e.minor ? 1 : this.patch < e.patch ? -1 : this.patch > e.patch ? 1 : 0;
58
+ }
59
+ comparePre(e) {
60
+ if (e instanceof n || (e = new n(e, this.options)), this.prerelease.length && !e.prerelease.length)
61
+ return -1;
62
+ if (!this.prerelease.length && e.prerelease.length)
63
+ return 1;
64
+ if (!this.prerelease.length && !e.prerelease.length)
65
+ return 0;
66
+ let r = 0;
67
+ do {
68
+ const s = this.prerelease[r], t = e.prerelease[r];
69
+ if (a("prerelease compare", r, s, t), s === void 0 && t === void 0)
70
+ return 0;
71
+ if (t === void 0)
72
+ return 1;
73
+ if (s === void 0)
74
+ return -1;
75
+ if (s === t)
76
+ continue;
77
+ return p(s, t);
78
+ } while (++r);
79
+ }
80
+ compareBuild(e) {
81
+ e instanceof n || (e = new n(e, this.options));
82
+ let r = 0;
83
+ do {
84
+ const s = this.build[r], t = e.build[r];
85
+ if (a("build compare", r, s, t), s === void 0 && t === void 0)
86
+ return 0;
87
+ if (t === void 0)
88
+ return 1;
89
+ if (s === void 0)
90
+ return -1;
91
+ if (s === t)
92
+ continue;
93
+ return p(s, t);
94
+ } while (++r);
95
+ }
96
+ // preminor will bump the version up to the next minor release, and immediately
97
+ // down to pre-release. premajor and prepatch work the same way.
98
+ inc(e, r, s) {
99
+ if (e.startsWith("pre")) {
100
+ if (!r && s === !1)
101
+ throw new Error("invalid increment argument: identifier is empty");
102
+ if (r) {
103
+ const t = `-${r}`.match(this.options.loose ? l[o.PRERELEASELOOSE] : l[o.PRERELEASE]);
104
+ if (!t || t[1] !== r)
105
+ throw new Error(`invalid identifier: ${r}`);
106
+ }
107
+ }
108
+ switch (e) {
109
+ case "premajor":
110
+ this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", r, s);
111
+ break;
112
+ case "preminor":
113
+ this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", r, s);
114
+ break;
115
+ case "prepatch":
116
+ this.prerelease.length = 0, this.inc("patch", r, s), this.inc("pre", r, s);
117
+ break;
118
+ // If the input is a non-prerelease version, this acts the same as
119
+ // prepatch.
120
+ case "prerelease":
121
+ this.prerelease.length === 0 && this.inc("patch", r, s), this.inc("pre", r, s);
122
+ break;
123
+ case "release":
124
+ if (this.prerelease.length === 0)
125
+ throw new Error(`version ${this.raw} is not a prerelease`);
126
+ this.prerelease.length = 0;
127
+ break;
128
+ case "major":
129
+ (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
130
+ break;
131
+ case "minor":
132
+ (this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
133
+ break;
134
+ case "patch":
135
+ this.prerelease.length === 0 && this.patch++, this.prerelease = [];
136
+ break;
137
+ // This probably shouldn't be used publicly.
138
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
139
+ case "pre": {
140
+ const t = Number(s) ? 1 : 0;
141
+ if (this.prerelease.length === 0)
142
+ this.prerelease = [t];
143
+ else {
144
+ let i = this.prerelease.length;
145
+ for (; --i >= 0; )
146
+ typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
147
+ if (i === -1) {
148
+ if (r === this.prerelease.join(".") && s === !1)
149
+ throw new Error("invalid increment argument: identifier already exists");
150
+ this.prerelease.push(t);
151
+ }
152
+ }
153
+ if (r) {
154
+ let i = [r, t];
155
+ s === !1 && (i = [r]), p(this.prerelease[0], r) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = i) : this.prerelease = i;
156
+ }
157
+ break;
158
+ }
159
+ default:
160
+ throw new Error(`invalid increment argument: ${e}`);
161
+ }
162
+ return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
163
+ }
164
+ }
165
+ return c = n, c;
166
+ }
167
+ export {
168
+ k as __require
169
+ };
@@ -0,0 +1,14 @@
1
+ import { __require as t } from "./parse.js";
2
+ var r, n;
3
+ function l() {
4
+ if (n) return r;
5
+ n = 1;
6
+ const a = t();
7
+ return r = (i, s) => {
8
+ const e = a(i.trim().replace(/^[=v]+/, ""), s);
9
+ return e ? e.version : null;
10
+ }, r;
11
+ }
12
+ export {
13
+ l as __require
14
+ };
@@ -0,0 +1,39 @@
1
+ import { __require as p } from "./eq.js";
2
+ import { __require as _ } from "./neq.js";
3
+ import { __require as a } from "./gt.js";
4
+ import { __require as v } from "./gte.js";
5
+ import { __require as y } from "./lt.js";
6
+ import { __require as j } from "./lte.js";
7
+ var i, c;
8
+ function L() {
9
+ if (c) return i;
10
+ c = 1;
11
+ const n = p(), o = _(), s = a(), q = v(), f = y(), m = j();
12
+ return i = (r, u, e, t) => {
13
+ switch (u) {
14
+ case "===":
15
+ return typeof r == "object" && (r = r.version), typeof e == "object" && (e = e.version), r === e;
16
+ case "!==":
17
+ return typeof r == "object" && (r = r.version), typeof e == "object" && (e = e.version), r !== e;
18
+ case "":
19
+ case "=":
20
+ case "==":
21
+ return n(r, e, t);
22
+ case "!=":
23
+ return o(r, e, t);
24
+ case ">":
25
+ return s(r, e, t);
26
+ case ">=":
27
+ return q(r, e, t);
28
+ case "<":
29
+ return f(r, e, t);
30
+ case "<=":
31
+ return m(r, e, t);
32
+ default:
33
+ throw new TypeError(`Invalid operator: ${u}`);
34
+ }
35
+ }, i;
36
+ }
37
+ export {
38
+ L as __require
39
+ };
@@ -0,0 +1,33 @@
1
+ import { __require as C } from "../classes/semver.js";
2
+ import { __require as g } from "./parse.js";
3
+ import { __require as q } from "../internal/re.js";
4
+ var a, i;
5
+ function L() {
6
+ if (i) return a;
7
+ i = 1;
8
+ const f = C(), m = g(), { safeRe: c, t: n } = q();
9
+ return a = (r, t) => {
10
+ if (r instanceof f)
11
+ return r;
12
+ if (typeof r == "number" && (r = String(r)), typeof r != "string")
13
+ return null;
14
+ t = t || {};
15
+ let e = null;
16
+ if (!t.rtl)
17
+ e = r.match(t.includePrerelease ? c[n.COERCEFULL] : c[n.COERCE]);
18
+ else {
19
+ const u = t.includePrerelease ? c[n.COERCERTLFULL] : c[n.COERCERTL];
20
+ let l;
21
+ for (; (l = u.exec(r)) && (!e || e.index + e[0].length !== r.length); )
22
+ (!e || l.index + l[0].length !== e.index + e[0].length) && (e = l), u.lastIndex = l.index + l[1].length + l[2].length;
23
+ u.lastIndex = -1;
24
+ }
25
+ if (e === null)
26
+ return null;
27
+ const s = e[2], d = e[3] || "0", h = e[4] || "0", R = t.includePrerelease && e[5] ? `-${e[5]}` : "", x = t.includePrerelease && e[6] ? `+${e[6]}` : "";
28
+ return m(`${s}.${d}.${h}${R}${x}`, t);
29
+ }, a;
30
+ }
31
+ export {
32
+ L as __require
33
+ };
@@ -0,0 +1,14 @@
1
+ import { __require as c } from "../classes/semver.js";
2
+ var r, n;
3
+ function s() {
4
+ if (n) return r;
5
+ n = 1;
6
+ const e = c();
7
+ return r = (a, m, i) => {
8
+ const o = new e(a, i), u = new e(m, i);
9
+ return o.compare(u) || o.compareBuild(u);
10
+ }, r;
11
+ }
12
+ export {
13
+ s as __require
14
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as m } from "./compare.js";
2
+ var e, r;
3
+ function i() {
4
+ if (r) return e;
5
+ r = 1;
6
+ const o = m();
7
+ return e = (a, s) => o(a, s, !0), e;
8
+ }
9
+ export {
10
+ i as __require
11
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as n } from "../classes/semver.js";
2
+ var r, m;
3
+ function c() {
4
+ if (m) return r;
5
+ m = 1;
6
+ const e = n();
7
+ return r = (o, i, a) => new e(o, a).compare(new e(i, a)), r;
8
+ }
9
+ export {
10
+ c as __require
11
+ };
@@ -0,0 +1,24 @@
1
+ import { __require as h } from "./parse.js";
2
+ var o, u;
3
+ function v() {
4
+ if (u) return o;
5
+ u = 1;
6
+ const t = h();
7
+ return o = (p, m) => {
8
+ const r = t(p, null, !0), e = t(m, null, !0), a = r.compare(e);
9
+ if (a === 0)
10
+ return null;
11
+ const s = a > 0, f = s ? r : e, n = s ? e : r, c = !!f.prerelease.length;
12
+ if (!!n.prerelease.length && !c) {
13
+ if (!n.patch && !n.minor)
14
+ return "major";
15
+ if (n.compareMain(f) === 0)
16
+ return n.minor && !n.patch ? "minor" : "patch";
17
+ }
18
+ const i = c ? "pre" : "";
19
+ return r.major !== e.major ? i + "major" : r.minor !== e.minor ? i + "minor" : r.patch !== e.patch ? i + "patch" : "prerelease";
20
+ }, o;
21
+ }
22
+ export {
23
+ v as __require
24
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as a } from "./compare.js";
2
+ var r, e;
3
+ function s() {
4
+ if (e) return r;
5
+ e = 1;
6
+ const q = a();
7
+ return r = (i, o, u) => q(i, o, u) === 0, r;
8
+ }
9
+ export {
10
+ s as __require
11
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as a } from "./compare.js";
2
+ var r, e;
3
+ function s() {
4
+ if (e) return r;
5
+ e = 1;
6
+ const t = a();
7
+ return r = (i, o, u) => t(i, o, u) > 0, r;
8
+ }
9
+ export {
10
+ s as __require
11
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as a } from "./compare.js";
2
+ var e, r;
3
+ function s() {
4
+ if (r) return e;
5
+ r = 1;
6
+ const t = a();
7
+ return e = (i, o, u) => t(i, o, u) >= 0, e;
8
+ }
9
+ export {
10
+ s as __require
11
+ };
@@ -0,0 +1,21 @@
1
+ import { __require as _ } from "../classes/semver.js";
2
+ var c, a;
3
+ function s() {
4
+ if (a) return c;
5
+ a = 1;
6
+ const u = _();
7
+ return c = (e, q, r, n, t) => {
8
+ typeof r == "string" && (t = n, n = r, r = void 0);
9
+ try {
10
+ return new u(
11
+ e instanceof u ? e.version : e,
12
+ r
13
+ ).inc(q, n, t).version;
14
+ } catch {
15
+ return null;
16
+ }
17
+ }, c;
18
+ }
19
+ export {
20
+ s as __require
21
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as a } from "./compare.js";
2
+ var r, e;
3
+ function s() {
4
+ if (e) return r;
5
+ e = 1;
6
+ const t = a();
7
+ return r = (i, o, u) => t(i, o, u) < 0, r;
8
+ }
9
+ export {
10
+ s as __require
11
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as a } from "./compare.js";
2
+ var e, r;
3
+ function s() {
4
+ if (r) return e;
5
+ r = 1;
6
+ const t = a();
7
+ return e = (i, o, u) => t(i, o, u) <= 0, e;
8
+ }
9
+ export {
10
+ s as __require
11
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as m } from "../classes/semver.js";
2
+ var r, e;
3
+ function t() {
4
+ if (e) return r;
5
+ e = 1;
6
+ const o = m();
7
+ return r = (a, i) => new o(a, i).major, r;
8
+ }
9
+ export {
10
+ t as __require
11
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as m } from "../classes/semver.js";
2
+ var r, e;
3
+ function a() {
4
+ if (e) return r;
5
+ e = 1;
6
+ const i = m();
7
+ return r = (n, o) => new i(n, o).minor, r;
8
+ }
9
+ export {
10
+ a as __require
11
+ };
@@ -0,0 +1,11 @@
1
+ import { __require as u } from "./compare.js";
2
+ var e, r;
3
+ function s() {
4
+ if (r) return e;
5
+ r = 1;
6
+ const q = u();
7
+ return e = (n, i, o) => q(n, i, o) !== 0, e;
8
+ }
9
+ export {
10
+ s as __require
11
+ };
@@ -0,0 +1,21 @@
1
+ import { __require as i } from "../classes/semver.js";
2
+ var e, a;
3
+ function o() {
4
+ if (a) return e;
5
+ a = 1;
6
+ const t = i();
7
+ return e = (r, u, n = !1) => {
8
+ if (r instanceof t)
9
+ return r;
10
+ try {
11
+ return new t(r, u);
12
+ } catch (s) {
13
+ if (!n)
14
+ return null;
15
+ throw s;
16
+ }
17
+ }, e;
18
+ }
19
+ export {
20
+ o as __require
21
+ };