@blogmcp/sdk 0.6.0 → 0.7.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 (208) hide show
  1. package/dist/consultations/channel-text.d.ts +118 -0
  2. package/dist/consultations/channel-text.js +40 -0
  3. package/dist/consultations/index.d.ts +28 -0
  4. package/dist/consultations/index.js +60 -0
  5. package/dist/consultations/messages.cs.d.ts +149 -0
  6. package/dist/consultations/messages.cs.js +143 -0
  7. package/dist/consultations/messages.d.ts +34 -0
  8. package/dist/consultations/messages.en.d.ts +143 -0
  9. package/dist/consultations/messages.en.js +141 -0
  10. package/dist/consultations/messages.js +48 -0
  11. package/dist/consultations/outcome.d.ts +121 -0
  12. package/dist/consultations/outcome.js +161 -0
  13. package/dist/consultations/public-config.d.ts +71 -0
  14. package/dist/consultations/public-config.js +104 -0
  15. package/dist/consultations/reader.d.ts +83 -0
  16. package/dist/consultations/reader.js +128 -0
  17. package/dist/consultations/routes.d.ts +214 -0
  18. package/dist/consultations/routes.js +149 -0
  19. package/dist/consultations/server/client-ip.d.ts +50 -0
  20. package/dist/consultations/server/client-ip.js +44 -0
  21. package/dist/consultations/server/contact.d.ts +23 -0
  22. package/dist/consultations/server/contact.js +138 -0
  23. package/dist/consultations/server/context.d.ts +246 -0
  24. package/dist/consultations/server/context.js +152 -0
  25. package/dist/consultations/server/cookie.d.ts +60 -0
  26. package/dist/consultations/server/cookie.js +57 -0
  27. package/dist/consultations/server/env.d.ts +20 -0
  28. package/dist/consultations/server/env.js +35 -0
  29. package/dist/consultations/server/http.d.ts +59 -0
  30. package/dist/consultations/server/http.js +64 -0
  31. package/dist/consultations/server/index.d.ts +37 -0
  32. package/dist/consultations/server/index.js +19 -0
  33. package/dist/consultations/server/origin.d.ts +39 -0
  34. package/dist/consultations/server/origin.js +31 -0
  35. package/dist/consultations/server/server.d.ts +106 -0
  36. package/dist/consultations/server/server.js +122 -0
  37. package/dist/consultations/server/session.d.ts +38 -0
  38. package/dist/consultations/server/session.js +210 -0
  39. package/dist/consultations/server/transport.d.ts +69 -0
  40. package/dist/consultations/server/transport.js +117 -0
  41. package/dist/consultations/server/turnstile.d.ts +44 -0
  42. package/dist/consultations/server/turnstile.js +31 -0
  43. package/dist/consultations/site.d.ts +100 -0
  44. package/dist/consultations/site.js +60 -0
  45. package/dist/consultations/submit-new.d.ts +103 -0
  46. package/dist/consultations/submit-new.js +72 -0
  47. package/dist/core/auth.d.ts +2 -2
  48. package/dist/core/client.d.ts +25 -4
  49. package/dist/core/client.js +35 -30
  50. package/dist/core/consultation-adapter.d.ts +2 -2
  51. package/dist/core/consultations.d.ts +1 -1
  52. package/dist/core/errors.d.ts +1 -1
  53. package/dist/core/errors.js +16 -15
  54. package/dist/core/index.d.ts +31 -31
  55. package/dist/core/index.js +35 -34
  56. package/dist/core/markdown.d.ts +1 -1
  57. package/dist/core/queries.d.ts +4 -1
  58. package/dist/core/queries.js +131 -86
  59. package/dist/core/review/format.d.ts +1 -1
  60. package/dist/core/review/index.d.ts +2 -2
  61. package/dist/core/seo.d.ts +1 -1
  62. package/dist/core/translations/cs.json.js +1 -1
  63. package/dist/core/translations/en.json.js +1 -1
  64. package/dist/core/types.d.ts +50 -1
  65. package/dist/core/view-model.d.ts +12 -2
  66. package/dist/core/view-model.js +40 -34
  67. package/dist/{packages/tripmap-core/node_modules → node_modules}/pmtiles/dist/esm/index.js +1 -1
  68. package/dist/nuxt/composables/useAsyncKb.d.ts +4 -4
  69. package/dist/nuxt/index.d.ts +1 -1
  70. package/dist/packages/mdx-render-vue/dist/composables/useGallery.js +12 -11
  71. package/dist/packages/mdx-render-vue/dist/composables/useTripMap.js +16 -16
  72. package/dist/packages/mdx-render-vue/dist/edit/TripMapEdit.vue.js +1 -1
  73. package/dist/packages/mdx-render-vue/dist/registry.js +21 -22
  74. package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue2.js +1 -1
  75. package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue2.js +1 -1
  76. package/dist/packages/mdx-render-vue/dist/render/button/Button.vue2.js +1 -1
  77. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue.js +1 -1
  78. package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue.js +1 -1
  79. package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +2 -2
  80. package/dist/packages/tripmap-core/dist/engine.js +3 -3
  81. package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +1 -1
  82. package/dist/react/KbMdxContent.d.ts +1 -1
  83. package/dist/react/KbMdxContent.js +7 -8
  84. package/dist/react/context.d.ts +4 -4
  85. package/dist/react/hooks/useImageRenderer.d.ts +1 -1
  86. package/dist/react/hooks/useKbClient.d.ts +1 -1
  87. package/dist/react/hooks/useKbContext.d.ts +1 -1
  88. package/dist/react/hooks/useKbI18n.d.ts +1 -1
  89. package/dist/react/hooks/useKbLanguage.d.ts +1 -1
  90. package/dist/react/hooks/useKbSearch.d.ts +1 -1
  91. package/dist/react/hooks/useMdxContent.d.ts +1 -1
  92. package/dist/react/index.d.ts +15 -15
  93. package/dist/react/provider.d.ts +2 -2
  94. package/dist/react/server/index.d.ts +2 -2
  95. package/dist/vue/components/KbAccessGate.vue.d.ts +4 -1
  96. package/dist/vue/components/KbAccessGate.vue.js +42 -32
  97. package/dist/vue/components/KbArticleCard.vue.d.ts +3 -1
  98. package/dist/vue/components/KbArticleCard.vue.js +67 -39
  99. package/dist/vue/components/KbMdxContent.vue2.js +6 -7
  100. package/dist/vue/composables/useArticles.d.ts +1 -1
  101. package/dist/vue/composables/useImageRenderer.d.ts +1 -1
  102. package/dist/vue/composables/useKbAuth.d.ts +1 -1
  103. package/dist/vue/composables/useKbClient.d.ts +1 -1
  104. package/dist/vue/composables/useKbComments.d.ts +1 -1
  105. package/dist/vue/composables/useKbI18n.d.ts +1 -1
  106. package/dist/vue/composables/useKbLanguage.d.ts +1 -1
  107. package/dist/vue/composables/useNavigation.d.ts +1 -1
  108. package/dist/vue/composables/useSearch.d.ts +1 -1
  109. package/dist/vue/composables/useTags.d.ts +1 -1
  110. package/dist/vue/index.d.ts +19 -19
  111. package/dist/vue/plugin.d.ts +4 -4
  112. package/package.json +15 -5
  113. package/src/consultations/channel-text.ts +168 -0
  114. package/src/consultations/index.ts +87 -0
  115. package/src/consultations/messages.cs.ts +175 -0
  116. package/src/consultations/messages.en.ts +171 -0
  117. package/src/consultations/messages.ts +91 -0
  118. package/src/consultations/outcome.ts +278 -0
  119. package/src/consultations/public-config.ts +246 -0
  120. package/src/consultations/reader.ts +281 -0
  121. package/src/consultations/routes.ts +341 -0
  122. package/src/consultations/server/client-ip.ts +106 -0
  123. package/src/consultations/server/contact.ts +267 -0
  124. package/src/consultations/server/context.ts +403 -0
  125. package/src/consultations/server/cookie.ts +129 -0
  126. package/src/consultations/server/env.ts +66 -0
  127. package/src/consultations/server/http.ts +148 -0
  128. package/src/consultations/server/index.ts +55 -0
  129. package/src/consultations/server/origin.ts +71 -0
  130. package/src/consultations/server/server.ts +322 -0
  131. package/src/consultations/server/session.ts +414 -0
  132. package/src/consultations/server/transport.ts +196 -0
  133. package/src/consultations/server/turnstile.ts +98 -0
  134. package/src/consultations/site.ts +183 -0
  135. package/src/consultations/submit-new.ts +266 -0
  136. package/src/core/auth.ts +1 -1
  137. package/src/core/client.ts +32 -1
  138. package/src/core/errors.ts +5 -2
  139. package/src/core/index.ts +3 -0
  140. package/src/core/queries.ts +56 -0
  141. package/src/core/translations/cs.json +2 -1
  142. package/src/core/translations/en.json +2 -1
  143. package/src/core/types.ts +51 -0
  144. package/src/core/view-model.ts +18 -0
  145. package/src/vue/components/KbAccessGate.vue +14 -1
  146. package/src/vue/components/KbArticleCard.vue +25 -0
  147. package/dist/_virtual/constants.js +0 -4
  148. package/dist/_virtual/index.js +0 -2
  149. package/dist/_virtual/index2.js +0 -4
  150. package/dist/_virtual/index3.js +0 -2
  151. package/dist/_virtual/re.js +0 -4
  152. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +0 -8
  153. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +0 -60
  154. package/dist/node_modules/dompurify/dist/purify.es.js +0 -662
  155. package/dist/node_modules/semver/classes/comparator.js +0 -56
  156. package/dist/node_modules/semver/classes/range.js +0 -148
  157. package/dist/node_modules/semver/classes/semver.js +0 -169
  158. package/dist/node_modules/semver/functions/clean.js +0 -14
  159. package/dist/node_modules/semver/functions/cmp.js +0 -39
  160. package/dist/node_modules/semver/functions/coerce.js +0 -33
  161. package/dist/node_modules/semver/functions/compare-build.js +0 -14
  162. package/dist/node_modules/semver/functions/compare-loose.js +0 -11
  163. package/dist/node_modules/semver/functions/compare.js +0 -11
  164. package/dist/node_modules/semver/functions/diff.js +0 -24
  165. package/dist/node_modules/semver/functions/eq.js +0 -11
  166. package/dist/node_modules/semver/functions/gt.js +0 -11
  167. package/dist/node_modules/semver/functions/gte.js +0 -11
  168. package/dist/node_modules/semver/functions/inc.js +0 -21
  169. package/dist/node_modules/semver/functions/lt.js +0 -11
  170. package/dist/node_modules/semver/functions/lte.js +0 -11
  171. package/dist/node_modules/semver/functions/major.js +0 -11
  172. package/dist/node_modules/semver/functions/minor.js +0 -11
  173. package/dist/node_modules/semver/functions/neq.js +0 -11
  174. package/dist/node_modules/semver/functions/parse.js +0 -21
  175. package/dist/node_modules/semver/functions/patch.js +0 -11
  176. package/dist/node_modules/semver/functions/prerelease.js +0 -14
  177. package/dist/node_modules/semver/functions/rcompare.js +0 -11
  178. package/dist/node_modules/semver/functions/rsort.js +0 -11
  179. package/dist/node_modules/semver/functions/satisfies.js +0 -18
  180. package/dist/node_modules/semver/functions/sort.js +0 -11
  181. package/dist/node_modules/semver/functions/valid.js +0 -14
  182. package/dist/node_modules/semver/index.js +0 -97
  183. package/dist/node_modules/semver/internal/constants.js +0 -28
  184. package/dist/node_modules/semver/internal/debug.js +0 -8
  185. package/dist/node_modules/semver/internal/identifiers.js +0 -18
  186. package/dist/node_modules/semver/internal/lrucache.js +0 -32
  187. package/dist/node_modules/semver/internal/parse-options.js +0 -10
  188. package/dist/node_modules/semver/internal/re.js +0 -32
  189. package/dist/node_modules/semver/ranges/gtr.js +0 -11
  190. package/dist/node_modules/semver/ranges/intersects.js +0 -11
  191. package/dist/node_modules/semver/ranges/ltr.js +0 -11
  192. package/dist/node_modules/semver/ranges/max-satisfying.js +0 -22
  193. package/dist/node_modules/semver/ranges/min-satisfying.js +0 -22
  194. package/dist/node_modules/semver/ranges/min-version.js +0 -42
  195. package/dist/node_modules/semver/ranges/outside.js +0 -44
  196. package/dist/node_modules/semver/ranges/simplify.js +0 -24
  197. package/dist/node_modules/semver/ranges/subset.js +0 -94
  198. package/dist/node_modules/semver/ranges/to-comparators.js +0 -11
  199. package/dist/node_modules/semver/ranges/valid.js +0 -17
  200. package/dist/packages/mdx-schema/dist/composables/useMdxParsing.js +0 -389
  201. package/dist/packages/mdx-schema/dist/metadata/index.js +0 -526
  202. package/dist/packages/mdx-schema/dist/prepareProps.js +0 -46
  203. package/dist/packages/mdx-schema/dist/styles/index.js +0 -147
  204. package/dist/packages/mdx-schema/dist/tripmap.js +0 -101
  205. package/dist/packages/mdx-schema/dist/types/index.js +0 -26
  206. package/dist/packages/sanitize/dist/html.js +0 -89
  207. /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl-shared.js +0 -0
  208. /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl.js +0 -0
@@ -5,8 +5,8 @@
5
5
  * resolution) computed once in pure code so the Nuxt and Next.js blogs render
6
6
  * identical data and only differ in template markup.
7
7
  */
8
- import type { Article, AccessLevel } from './types';
9
- import { type SeoConfig } from './seo';
8
+ import type { Article, AccessLevel } from './types.js';
9
+ import { type SeoConfig } from './seo.js';
10
10
  /**
11
11
  * Normalize a date value to an ISO 8601 string for `<time datetime>` and
12
12
  * machine-readable SEO fields. The KB list API (`accessibleKbArticles`) can
@@ -25,6 +25,12 @@ export declare function formatArticleDate(iso: string, locale: string): string;
25
25
  * must gate identically, so this is single-sourced.
26
26
  */
27
27
  export declare function resolveArticleAccessLevel(accessRights: string[] | null | undefined): AccessLevel;
28
+ /**
29
+ * The lowest tier that opens a locked article (premium before partners) — what a locked
30
+ * card asks the reader for. Mirrors the KB API's rule; null when a public reader can open
31
+ * it or nobody outside the team can.
32
+ */
33
+ export declare function lockedRequiredAccess(access: string[] | null | undefined): 'premium' | 'partners' | null;
28
34
  /** Render-ready view model for an article card / list item. */
29
35
  export interface ArticleListItemVM {
30
36
  slug: string;
@@ -43,6 +49,10 @@ export interface ArticleListItemVM {
43
49
  slug: string;
44
50
  href: string;
45
51
  }[];
52
+ /** The reader may not open the article (listed with `includeLocked`): show a lock. */
53
+ locked: boolean;
54
+ /** For a locked article, the tier that opens it; null otherwise. */
55
+ requiredAccess: 'premium' | 'partners' | null;
46
56
  }
47
57
  export interface BuildArticleListItemOptions {
48
58
  article: Article;
@@ -1,47 +1,53 @@
1
- import { ACCESS_LEVEL_ORDER as c } from "./types.js";
2
- import { localizedHref as a } from "./seo.js";
3
- function s(e) {
4
- if (!e) return null;
5
- const t = new Date(e);
6
- return Number.isNaN(t.getTime()) ? e : t.toISOString();
1
+ import { ACCESS_LEVEL_ORDER as o } from "./types.js";
2
+ import { localizedHref as c } from "./seo.js";
3
+ function a(t) {
4
+ if (!t) return null;
5
+ const e = new Date(t);
6
+ return Number.isNaN(e.getTime()) ? t : e.toISOString();
7
7
  }
8
- function f(e, t) {
9
- const n = t === "cs" ? "cs-CZ" : "en-US";
10
- return new Date(e).toLocaleDateString(n, {
8
+ function d(t, e) {
9
+ const r = e === "cs" ? "cs-CZ" : "en-US";
10
+ return new Date(t).toLocaleDateString(r, {
11
11
  year: "numeric",
12
12
  month: "long",
13
13
  day: "numeric"
14
14
  });
15
15
  }
16
- function p(e) {
17
- if (!e || e.length === 0) return "public";
18
- let t = 0;
19
- for (const n of e) {
20
- const r = c.indexOf(n);
21
- r > t && (t = r);
16
+ function g(t) {
17
+ if (!t || t.length === 0) return "public";
18
+ let e = 0;
19
+ for (const r of t) {
20
+ const n = o.indexOf(r);
21
+ n > e && (e = n);
22
22
  }
23
- return c[t] ?? "public";
23
+ return o[e] ?? "public";
24
24
  }
25
- function g(e) {
26
- const { article: t, config: n, locale: r } = e, o = t.slug || t.filename.replace(/\.(md|mdx)$/, ""), i = t.publishedAt || t.updatedAt || null, u = s(i);
25
+ function f(t) {
26
+ return !t || t.includes("public") ? null : t.includes("premium") ? "premium" : t.includes("partners") ? "partners" : null;
27
+ }
28
+ function A(t) {
29
+ const { article: e, config: r, locale: n } = t, u = e.slug || e.filename.replace(/\.(md|mdx)$/, ""), l = e.publishedAt || e.updatedAt || null, s = a(l);
27
30
  return {
28
- slug: o,
29
- href: a(`/articles/${o}`, r, n),
30
- title: t.title || "",
31
- description: t.description ?? null,
32
- image: t.featuredImageUrl ?? null,
33
- isoDate: u,
34
- formattedDate: i ? f(i, r) : null,
35
- tags: (t.tags || []).map((l) => ({
36
- label: l,
37
- slug: l,
38
- href: a(`/topics/${l}`, r, n)
39
- }))
31
+ slug: u,
32
+ href: c(`/articles/${u}`, n, r),
33
+ title: e.title || "",
34
+ description: e.description ?? null,
35
+ image: e.featuredImageUrl ?? null,
36
+ isoDate: s,
37
+ formattedDate: l ? d(l, n) : null,
38
+ tags: (e.tags || []).map((i) => ({
39
+ label: i,
40
+ slug: i,
41
+ href: c(`/topics/${i}`, n, r)
42
+ })),
43
+ locked: e.locked === !0,
44
+ requiredAccess: e.locked === !0 ? f(e.access) : null
40
45
  };
41
46
  }
42
47
  export {
43
- g as buildArticleListItem,
44
- f as formatArticleDate,
45
- p as resolveArticleAccessLevel,
46
- s as toIsoDate
48
+ A as buildArticleListItem,
49
+ d as formatArticleDate,
50
+ f as lockedRequiredAccess,
51
+ g as resolveArticleAccessLevel,
52
+ a as toIsoDate
47
53
  };
@@ -1,4 +1,4 @@
1
- import { decompressSync as k } from "../../../../../../node_modules/fflate/esm/browser.js";
1
+ import { decompressSync as k } from "../../../fflate/esm/browser.js";
2
2
  var K = Object.defineProperty, F = Math.pow, h = (i, t) => K(i, "name", { value: t, configurable: !0 }), g = (i, t, e) => new Promise((r, n) => {
3
3
  var s = (l) => {
4
4
  try {
@@ -8,19 +8,19 @@
8
8
  * const { articles, totalCount } = await useAsyncArticleList('home', { status: 'published' })
9
9
  */
10
10
  import type { Ref } from 'vue';
11
- import type { ArticleListParams } from '../../vue/composables/useArticles';
11
+ import type { ArticleListParams } from '../../vue/composables/useArticles.js';
12
12
  /**
13
13
  * SSR-hydrated article list.
14
14
  *
15
15
  * Wraps useArticleList with Nuxt's useAsyncData.
16
16
  */
17
- export declare function useAsyncArticleList(key: string, params?: ArticleListParams, watchDeps?: unknown[]): Promise<import("../../vue").UseArticleListReturn>;
17
+ export declare function useAsyncArticleList(key: string, params?: ArticleListParams, watchDeps?: unknown[]): Promise<import("../../vue/index.js").UseArticleListReturn>;
18
18
  /**
19
19
  * SSR-hydrated single article.
20
20
  *
21
21
  * Wraps useArticle with Nuxt's useAsyncData.
22
22
  */
23
- export declare function useAsyncArticle(key: string, filename: Ref<string> | string, languageCode: Ref<string> | string, watchDeps?: unknown[]): Promise<import("../../vue").UseArticleReturn>;
23
+ export declare function useAsyncArticle(key: string, filename: Ref<string> | string, languageCode: Ref<string> | string, watchDeps?: unknown[]): Promise<import("../../vue/index.js").UseArticleReturn>;
24
24
  /**
25
25
  * SSR-hydrated navigation menu.
26
26
  *
@@ -29,4 +29,4 @@ export declare function useAsyncArticle(key: string, filename: Ref<string> | str
29
29
  export declare function useAsyncNavigation(key: string, params?: {
30
30
  scope?: string;
31
31
  locale?: string;
32
- }, watchDeps?: unknown[]): Promise<import("../../vue").UseNavigationReturn>;
32
+ }, watchDeps?: unknown[]): Promise<import("../../vue/index.js").UseNavigationReturn>;
@@ -1 +1 @@
1
- export { useAsyncArticleList, useAsyncArticle, useAsyncNavigation, } from './composables/useAsyncKb';
1
+ export { useAsyncArticleList, useAsyncArticle, useAsyncNavigation, } from './composables/useAsyncKb.js';
@@ -1,5 +1,6 @@
1
1
  import { computed as n } from "vue";
2
- import { galleryTileLayout as E } from "../../../mdx-schema/dist/styles/index.js";
2
+ import { galleryTileLayout as E } from "@blogmcp/mdx-schema/styles";
3
+ import { galleryTileLayout as O } from "@blogmcp/mdx-schema/styles";
3
4
  const h = /\.(mp4|webm|mov|avi|mkv|m4v)(\?.*)?$/i, $ = /\/api\/media\/file\/([^/?#]+)/;
4
5
  function o(e) {
5
6
  return typeof e == "object" && e !== null && "src" in e && typeof e.src == "string";
@@ -7,22 +8,22 @@ function o(e) {
7
8
  function a(e) {
8
9
  return h.test(e);
9
10
  }
10
- const V = {
11
+ const L = {
11
12
  1: "grid-cols-1",
12
13
  2: "grid-cols-2",
13
14
  3: "grid-cols-3",
14
15
  4: "grid-cols-4"
15
16
  };
16
- function D(e) {
17
+ function b(e) {
17
18
  const r = n(() => e.columns || 2), g = n(() => {
18
19
  const i = r.value;
19
- return V[i] || "grid-cols-2";
20
- }), m = n(() => `gap-${e.gap || 4}`), u = n(() => E(e));
20
+ return L[i] || "grid-cols-2";
21
+ }), m = n(() => `gap-${e.gap || 4}`), l = n(() => E(e));
21
22
  function s(i) {
22
23
  const t = e.images[i];
23
24
  return o(t) ? t.src : t;
24
25
  }
25
- function l(i) {
26
+ function u(i) {
26
27
  const t = e.images[i];
27
28
  return o(t) ? t.alt || `Gallery image ${i + 1}` : `Gallery image ${i + 1}`;
28
29
  }
@@ -48,9 +49,9 @@ function D(e) {
48
49
  effectiveColumns: r,
49
50
  gridColsClass: g,
50
51
  gapClass: m,
51
- tileLayout: u,
52
+ tileLayout: l,
52
53
  getImageSrc: s,
53
- getImageAlt: l,
54
+ getImageAlt: u,
54
55
  getImageDescription: f,
55
56
  getImageCaption: d,
56
57
  isVideo: y,
@@ -60,9 +61,9 @@ function D(e) {
60
61
  };
61
62
  }
62
63
  export {
63
- E as galleryTileLayout,
64
- V as gridColsClasses,
64
+ O as galleryTileLayout,
65
+ L as gridColsClasses,
65
66
  o as isMediaObject,
66
67
  a as isVideoUrl,
67
- D as useGallery
68
+ b as useGallery
68
69
  };
@@ -1,18 +1,18 @@
1
- import { inject as h, computed as t } from "vue";
2
- import { splitTripMapList as n, parseTripMapHandNodes as M, tripMapFacade as f, TRIPMAP_DEFAULT_HEIGHT as x, buildTripMapGeoUrl as b, tripMapPlaybackLabels as L, tripMapUiTexts as E } from "../../../mdx-schema/dist/tripmap.js";
3
- import { tripMapFormatTime as N } from "../../../mdx-schema/dist/tripmap.js";
4
- const _ = /* @__PURE__ */ Symbol.for("blogmcp:mdx-article-context");
5
- function A(e) {
6
- const a = h(_, null), o = t(() => n(e.slugs)), l = t(() => n(e.exclude)), c = t(() => M(e.nodes)), i = t(() => o.value.length === 0), r = t(() => o.value.length === 0 && !a?.filename), s = t(() => f(e, a)), u = t(() => s.value.thumbs), d = t(() => s.value.stops), p = t(() => ({ height: e.height || x })), g = t(() => b(e, a)), m = t(() => L(a?.language)), T = t(() => E(a?.language));
1
+ import { inject as M, computed as t } from "vue";
2
+ import { splitTripMapList as n, parseTripMapHandNodes as h, tripMapFacade as f, TRIPMAP_DEFAULT_HEIGHT as x, buildTripMapGeoUrl as b, tripMapPlaybackLabels as L, tripMapUiTexts as E } from "@blogmcp/mdx-schema/tripmap";
3
+ import { parseTripMapHandNodes as C, tripMapFormatTime as U } from "@blogmcp/mdx-schema/tripmap";
4
+ const H = /* @__PURE__ */ Symbol.for("blogmcp:mdx-article-context");
5
+ function v(e) {
6
+ const a = M(H, null), s = t(() => n(e.slugs)), i = t(() => n(e.exclude)), l = t(() => h(e.nodes)), c = t(() => s.value.length === 0), r = t(() => s.value.length === 0 && !a?.filename), o = t(() => f(e, a)), p = t(() => o.value.thumbs), d = t(() => o.value.stops), u = t(() => ({ height: e.height || x })), g = t(() => b(e, a)), m = t(() => L(a?.language)), T = t(() => E(a?.language));
7
7
  return {
8
- slugList: o,
9
- excludeList: l,
10
- handNodes: c,
11
- facadeThumbs: u,
8
+ slugList: s,
9
+ excludeList: i,
10
+ handNodes: l,
11
+ facadeThumbs: p,
12
12
  facadeStops: d,
13
- heightStyle: p,
13
+ heightStyle: u,
14
14
  articleContext: a,
15
- isAutoMode: i,
15
+ isAutoMode: c,
16
16
  isConfigOnly: r,
17
17
  geoUrl: g,
18
18
  labels: m,
@@ -20,8 +20,8 @@ function A(e) {
20
20
  };
21
21
  }
22
22
  export {
23
- _ as MDX_ARTICLE_CONTEXT_KEY,
24
- M as parseHandNodes,
25
- N as tripMapFormatTime,
26
- A as useTripMap
23
+ H as MDX_ARTICLE_CONTEXT_KEY,
24
+ C as parseHandNodes,
25
+ U as tripMapFormatTime,
26
+ v as useTripMap
27
27
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as m, createElementBlock as e, openBlock as t, createElementVNode as o, toDisplayString as n, createCommentVNode as y, Fragment as a, createTextVNode as s } from "vue";
2
- import { parseTripMapHandNodes as g } from "../../../mdx-schema/dist/tripmap.js";
2
+ import { parseTripMapHandNodes as g } from "@blogmcp/mdx-schema/tripmap";
3
3
  const f = {
4
4
  class: "flex items-center gap-3 rounded-lg border border-blue-500/40 bg-blue-500/5 px-3 py-2",
5
5
  "data-mdx-component": "TripMap"
@@ -1,8 +1,7 @@
1
1
  import { defineAsyncComponent as m, defineComponent as u, h as b } from "vue";
2
- import { componentMetadata as f } from "../../mdx-schema/dist/metadata/index.js";
3
- import { getComponentMetadata as N, getComponentNames as W } from "../../mdx-schema/dist/metadata/index.js";
4
- import { prepareProps as g } from "../../mdx-schema/dist/prepareProps.js";
5
- import "../../../_virtual/index3.js";
2
+ import { componentMetadata as f } from "@blogmcp/mdx-schema/metadata";
3
+ import { componentMetadata as T, getComponentMetadata as N, getComponentNames as W } from "@blogmcp/mdx-schema/metadata";
4
+ import { prepareProps as g } from "@blogmcp/mdx-schema";
6
5
  const s = "__mdxPreparePropsAppliedFor", C = {
7
6
  Callout: {
8
7
  editor: { icon: "info", color: "#569cd6", borderColor: "#569cd6", bgColor: "rgba(86, 156, 214, 0.08)" },
@@ -100,11 +99,11 @@ const s = "__mdxPreparePropsAppliedFor", C = {
100
99
  return [o.name, { metadata: o, ...r }];
101
100
  })
102
101
  );
103
- function M(o) {
102
+ function E(o) {
104
103
  const r = d[o];
105
104
  return r ? Object.keys(r.render) : [];
106
105
  }
107
- async function P(o, r = "default") {
106
+ async function M(o, r = "default") {
108
107
  const e = d[o];
109
108
  if (!e) return;
110
109
  const t = e.render[r] || e.render.default;
@@ -124,38 +123,38 @@ function y(o, r, e = "default") {
124
123
  });
125
124
  return t[s] = r.name, t;
126
125
  }
127
- const p = /* @__PURE__ */ new Map();
128
- function R(o, r = "default") {
129
- const e = `${o}:${r}`, t = p.get(e);
126
+ const a = /* @__PURE__ */ new Map();
127
+ function P(o, r = "default") {
128
+ const e = `${o}:${r}`, t = a.get(e);
130
129
  if (t) return t;
131
130
  const n = d[o];
132
131
  if (!n) return;
133
132
  const i = n.render[r] || n.render.default;
134
133
  if (!i) return;
135
- const c = m(() => i().then((l) => l.default)), a = y(c, n.metadata, r);
136
- return p.set(e, a), a;
134
+ const c = m(() => i().then((l) => l.default)), p = y(c, n.metadata, r);
135
+ return a.set(e, p), p;
137
136
  }
138
- function _() {
139
- p.clear();
137
+ function R() {
138
+ a.clear();
140
139
  }
141
- async function x(o) {
140
+ async function _(o) {
142
141
  const r = d[o];
143
142
  return r ? (await r.edit()).default : void 0;
144
143
  }
145
- function $(o) {
144
+ function x(o) {
146
145
  return d[o]?.editor;
147
146
  }
148
147
  export {
149
148
  s as MDX_PREPARED_SENTINEL,
150
- _ as _resetWrappedRenderCacheForTests,
151
- f as componentMetadata,
149
+ R as _resetWrappedRenderCacheForTests,
150
+ T as componentMetadata,
152
151
  d as componentRegistry,
153
152
  N as getComponentMetadata,
154
153
  W as getComponentNames,
155
- M as getComponentVariants,
156
- x as getEditComponentAsync,
157
- $ as getEditorConfig,
158
- P as getRenderComponentAsync,
159
- R as getWrappedRenderComponent,
154
+ E as getComponentVariants,
155
+ _ as getEditComponentAsync,
156
+ x as getEditorConfig,
157
+ M as getRenderComponentAsync,
158
+ P as getWrappedRenderComponent,
160
159
  y as wrapVueComponentForMdx
161
160
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, computed as d, createElementBlock as o, openBlock as s, normalizeClass as l, unref as n, createVNode as f, createElementVNode as r, createCommentVNode as u, toDisplayString as p, renderSlot as v } from "vue";
2
2
  import { Icon as h } from "../../node_modules/@iconify/vue/dist/iconify.js";
3
- import { alertStyles as i } from "../../../../mdx-schema/dist/styles/index.js";
3
+ import { alertStyles as i } from "@blogmcp/mdx-schema/styles";
4
4
  const _ = { class: "min-w-0 flex-1" }, y = {
5
5
  key: 0,
6
6
  class: "mb-0.5 font-semibold"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, computed as l, createElementBlock as r, openBlock as s, normalizeClass as c, toDisplayString as m } from "vue";
2
- import { badgeStyles as o } from "../../../../mdx-schema/dist/styles/index.js";
2
+ import { badgeStyles as o } from "@blogmcp/mdx-schema/styles";
3
3
  const f = /* @__PURE__ */ n({
4
4
  __name: "Badge",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, computed as s, createElementBlock as l, openBlock as r, normalizeClass as i, toDisplayString as c } from "vue";
2
- import { buttonStyles as e } from "../../../../mdx-schema/dist/styles/index.js";
2
+ import { buttonStyles as e } from "@blogmcp/mdx-schema/styles";
3
3
  import "../../packages/sanitize/dist/html.js";
4
4
  import { d as u } from "../../_virtual/index.js";
5
5
  const d = ["href"], z = /* @__PURE__ */ m({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, computed as a, createElementBlock as n, openBlock as r, normalizeClass as s, unref as p, createElementVNode as l, createCommentVNode as m, renderSlot as k } from "vue";
2
- import { calloutStyles as i } from "../../../../mdx-schema/dist/styles/index.js";
2
+ import { calloutStyles as i } from "@blogmcp/mdx-schema/styles";
3
3
  const f = { class: "flex items-start gap-3" }, h = { class: "flex-shrink-0 mt-0.5" }, C = { class: "flex-1 text-sm leading-relaxed" }, g = /* @__PURE__ */ c({
4
4
  __name: "CalloutDefault",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as t, createElementBlock as c, openBlock as m, normalizeClass as i, unref as p, createElementVNode as d, renderSlot as u } from "vue";
2
- import { calloutStyles as o } from "../../../../mdx-schema/dist/styles/index.js";
2
+ import { calloutStyles as o } from "@blogmcp/mdx-schema/styles";
3
3
  const f = { class: "text-sm leading-relaxed" }, y = /* @__PURE__ */ r({
4
4
  __name: "CalloutMinimal",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as H, ref as f, onMounted as L, onBeforeUnmount as P, createElementBlock as n, openBlock as s, normalizeClass as i, unref as e, createCommentVNode as d, createElementVNode as p, toDisplayString as v, Fragment as B, renderList as F, normalizeStyle as j } from "vue";
2
- import { tripMapStyles as r } from "../../../../mdx-schema/dist/styles/index.js";
2
+ import { tripMapStyles as r } from "@blogmcp/mdx-schema/styles";
3
3
  import { useTripMap as D } from "../../composables/useTripMap.js";
4
- import { tripMapFormatTime as G } from "../../../../mdx-schema/dist/tripmap.js";
4
+ import { tripMapFormatTime as G } from "@blogmcp/mdx-schema/tripmap";
5
5
  const W = ["aria-label"], $ = ["src", "alt"], R = /* @__PURE__ */ H({
6
6
  __name: "TripMapDefault",
7
7
  props: {
@@ -1,5 +1,5 @@
1
- import { Map as be, NavigationControl as we, FullscreenControl as ve, GeolocateControl as xe, Popup as Ce, setWorkerUrl as Ee, Marker as Le } from "../node_modules/maplibre-gl/dist/maplibre-gl.js";
2
- import { Protocol as ke } from "../node_modules/pmtiles/dist/esm/index.js";
1
+ import { Map as be, NavigationControl as we, FullscreenControl as ve, GeolocateControl as xe, Popup as Ce, setWorkerUrl as Ee, Marker as Le } from "../../../node_modules/maplibre-gl/dist/maplibre-gl.js";
2
+ import { Protocol as ke } from "../../../node_modules/pmtiles/dist/esm/index.js";
3
3
  import { ImagePreloader as Me } from "./preload.js";
4
4
  import { mapyRouteUrl as Ne, googleMapsRouteUrl as _e, buildGpx as Se, gpxFileName as Ae } from "./export.js";
5
5
  import { Lightbox as De } from "./lightbox.js";
@@ -15,7 +15,7 @@ import { createPopupContent as qe, setMarkerActive as W, MarkerPool as $e, creat
15
15
  import { formatTimeHHMM as Ze, lineNodes as Ve } from "./nodes.js";
16
16
  import { startPlayback as Ye } from "./playback.js";
17
17
  import { watchSystemTheme as Je, resolveTheme as Z, carryTripMapLayers as Ke } from "./theme.js";
18
- import { Mn as Qe } from "../node_modules/maplibre-gl/dist/maplibre-gl-shared.js";
18
+ import { Mn as Qe } from "../../../node_modules/maplibre-gl/dist/maplibre-gl-shared.js";
19
19
  const w = "tripmap-nodes", V = "tripmap-line", Xe = "tripmap-line-layer", et = "tripmap-nodes-anchor", tt = 17;
20
20
  let ae = !1;
21
21
  function rt() {