@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.
- package/dist/consultations/channel-text.d.ts +118 -0
- package/dist/consultations/channel-text.js +40 -0
- package/dist/consultations/index.d.ts +28 -0
- package/dist/consultations/index.js +60 -0
- package/dist/consultations/messages.cs.d.ts +149 -0
- package/dist/consultations/messages.cs.js +143 -0
- package/dist/consultations/messages.d.ts +34 -0
- package/dist/consultations/messages.en.d.ts +143 -0
- package/dist/consultations/messages.en.js +141 -0
- package/dist/consultations/messages.js +48 -0
- package/dist/consultations/outcome.d.ts +121 -0
- package/dist/consultations/outcome.js +161 -0
- package/dist/consultations/public-config.d.ts +71 -0
- package/dist/consultations/public-config.js +104 -0
- package/dist/consultations/reader.d.ts +83 -0
- package/dist/consultations/reader.js +128 -0
- package/dist/consultations/routes.d.ts +214 -0
- package/dist/consultations/routes.js +149 -0
- package/dist/consultations/server/client-ip.d.ts +50 -0
- package/dist/consultations/server/client-ip.js +44 -0
- package/dist/consultations/server/contact.d.ts +23 -0
- package/dist/consultations/server/contact.js +138 -0
- package/dist/consultations/server/context.d.ts +246 -0
- package/dist/consultations/server/context.js +152 -0
- package/dist/consultations/server/cookie.d.ts +60 -0
- package/dist/consultations/server/cookie.js +57 -0
- package/dist/consultations/server/env.d.ts +20 -0
- package/dist/consultations/server/env.js +35 -0
- package/dist/consultations/server/http.d.ts +59 -0
- package/dist/consultations/server/http.js +64 -0
- package/dist/consultations/server/index.d.ts +37 -0
- package/dist/consultations/server/index.js +19 -0
- package/dist/consultations/server/origin.d.ts +39 -0
- package/dist/consultations/server/origin.js +31 -0
- package/dist/consultations/server/server.d.ts +106 -0
- package/dist/consultations/server/server.js +122 -0
- package/dist/consultations/server/session.d.ts +38 -0
- package/dist/consultations/server/session.js +210 -0
- package/dist/consultations/server/transport.d.ts +69 -0
- package/dist/consultations/server/transport.js +117 -0
- package/dist/consultations/server/turnstile.d.ts +44 -0
- package/dist/consultations/server/turnstile.js +31 -0
- package/dist/consultations/site.d.ts +100 -0
- package/dist/consultations/site.js +60 -0
- package/dist/consultations/submit-new.d.ts +103 -0
- package/dist/consultations/submit-new.js +72 -0
- package/dist/core/auth.d.ts +2 -2
- package/dist/core/client.d.ts +25 -4
- package/dist/core/client.js +35 -30
- package/dist/core/consultation-adapter.d.ts +2 -2
- package/dist/core/consultations.d.ts +1 -1
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/errors.js +16 -15
- package/dist/core/index.d.ts +31 -31
- package/dist/core/index.js +35 -34
- package/dist/core/markdown.d.ts +1 -1
- package/dist/core/queries.d.ts +4 -1
- package/dist/core/queries.js +131 -86
- package/dist/core/review/format.d.ts +1 -1
- package/dist/core/review/index.d.ts +2 -2
- package/dist/core/seo.d.ts +1 -1
- package/dist/core/translations/cs.json.js +1 -1
- package/dist/core/translations/en.json.js +1 -1
- package/dist/core/types.d.ts +50 -1
- package/dist/core/view-model.d.ts +12 -2
- package/dist/core/view-model.js +40 -34
- package/dist/{packages/tripmap-core/node_modules → node_modules}/pmtiles/dist/esm/index.js +1 -1
- package/dist/nuxt/composables/useAsyncKb.d.ts +4 -4
- package/dist/nuxt/index.d.ts +1 -1
- package/dist/packages/mdx-render-vue/dist/composables/useGallery.js +12 -11
- package/dist/packages/mdx-render-vue/dist/composables/useTripMap.js +16 -16
- package/dist/packages/mdx-render-vue/dist/edit/TripMapEdit.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/registry.js +21 -22
- package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/button/Button.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +2 -2
- package/dist/packages/tripmap-core/dist/engine.js +3 -3
- package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +1 -1
- package/dist/react/KbMdxContent.d.ts +1 -1
- package/dist/react/KbMdxContent.js +7 -8
- package/dist/react/context.d.ts +4 -4
- package/dist/react/hooks/useImageRenderer.d.ts +1 -1
- package/dist/react/hooks/useKbClient.d.ts +1 -1
- package/dist/react/hooks/useKbContext.d.ts +1 -1
- package/dist/react/hooks/useKbI18n.d.ts +1 -1
- package/dist/react/hooks/useKbLanguage.d.ts +1 -1
- package/dist/react/hooks/useKbSearch.d.ts +1 -1
- package/dist/react/hooks/useMdxContent.d.ts +1 -1
- package/dist/react/index.d.ts +15 -15
- package/dist/react/provider.d.ts +2 -2
- package/dist/react/server/index.d.ts +2 -2
- package/dist/vue/components/KbAccessGate.vue.d.ts +4 -1
- package/dist/vue/components/KbAccessGate.vue.js +42 -32
- package/dist/vue/components/KbArticleCard.vue.d.ts +3 -1
- package/dist/vue/components/KbArticleCard.vue.js +67 -39
- package/dist/vue/components/KbMdxContent.vue2.js +6 -7
- package/dist/vue/composables/useArticles.d.ts +1 -1
- package/dist/vue/composables/useImageRenderer.d.ts +1 -1
- package/dist/vue/composables/useKbAuth.d.ts +1 -1
- package/dist/vue/composables/useKbClient.d.ts +1 -1
- package/dist/vue/composables/useKbComments.d.ts +1 -1
- package/dist/vue/composables/useKbI18n.d.ts +1 -1
- package/dist/vue/composables/useKbLanguage.d.ts +1 -1
- package/dist/vue/composables/useNavigation.d.ts +1 -1
- package/dist/vue/composables/useSearch.d.ts +1 -1
- package/dist/vue/composables/useTags.d.ts +1 -1
- package/dist/vue/index.d.ts +19 -19
- package/dist/vue/plugin.d.ts +4 -4
- package/package.json +15 -5
- package/src/consultations/channel-text.ts +168 -0
- package/src/consultations/index.ts +87 -0
- package/src/consultations/messages.cs.ts +175 -0
- package/src/consultations/messages.en.ts +171 -0
- package/src/consultations/messages.ts +91 -0
- package/src/consultations/outcome.ts +278 -0
- package/src/consultations/public-config.ts +246 -0
- package/src/consultations/reader.ts +281 -0
- package/src/consultations/routes.ts +341 -0
- package/src/consultations/server/client-ip.ts +106 -0
- package/src/consultations/server/contact.ts +267 -0
- package/src/consultations/server/context.ts +403 -0
- package/src/consultations/server/cookie.ts +129 -0
- package/src/consultations/server/env.ts +66 -0
- package/src/consultations/server/http.ts +148 -0
- package/src/consultations/server/index.ts +55 -0
- package/src/consultations/server/origin.ts +71 -0
- package/src/consultations/server/server.ts +322 -0
- package/src/consultations/server/session.ts +414 -0
- package/src/consultations/server/transport.ts +196 -0
- package/src/consultations/server/turnstile.ts +98 -0
- package/src/consultations/site.ts +183 -0
- package/src/consultations/submit-new.ts +266 -0
- package/src/core/auth.ts +1 -1
- package/src/core/client.ts +32 -1
- package/src/core/errors.ts +5 -2
- package/src/core/index.ts +3 -0
- package/src/core/queries.ts +56 -0
- package/src/core/translations/cs.json +2 -1
- package/src/core/translations/en.json +2 -1
- package/src/core/types.ts +51 -0
- package/src/core/view-model.ts +18 -0
- package/src/vue/components/KbAccessGate.vue +14 -1
- package/src/vue/components/KbArticleCard.vue +25 -0
- package/dist/_virtual/constants.js +0 -4
- package/dist/_virtual/index.js +0 -2
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -2
- package/dist/_virtual/re.js +0 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +0 -8
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +0 -60
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -662
- package/dist/node_modules/semver/classes/comparator.js +0 -56
- package/dist/node_modules/semver/classes/range.js +0 -148
- package/dist/node_modules/semver/classes/semver.js +0 -169
- package/dist/node_modules/semver/functions/clean.js +0 -14
- package/dist/node_modules/semver/functions/cmp.js +0 -39
- package/dist/node_modules/semver/functions/coerce.js +0 -33
- package/dist/node_modules/semver/functions/compare-build.js +0 -14
- package/dist/node_modules/semver/functions/compare-loose.js +0 -11
- package/dist/node_modules/semver/functions/compare.js +0 -11
- package/dist/node_modules/semver/functions/diff.js +0 -24
- package/dist/node_modules/semver/functions/eq.js +0 -11
- package/dist/node_modules/semver/functions/gt.js +0 -11
- package/dist/node_modules/semver/functions/gte.js +0 -11
- package/dist/node_modules/semver/functions/inc.js +0 -21
- package/dist/node_modules/semver/functions/lt.js +0 -11
- package/dist/node_modules/semver/functions/lte.js +0 -11
- package/dist/node_modules/semver/functions/major.js +0 -11
- package/dist/node_modules/semver/functions/minor.js +0 -11
- package/dist/node_modules/semver/functions/neq.js +0 -11
- package/dist/node_modules/semver/functions/parse.js +0 -21
- package/dist/node_modules/semver/functions/patch.js +0 -11
- package/dist/node_modules/semver/functions/prerelease.js +0 -14
- package/dist/node_modules/semver/functions/rcompare.js +0 -11
- package/dist/node_modules/semver/functions/rsort.js +0 -11
- package/dist/node_modules/semver/functions/satisfies.js +0 -18
- package/dist/node_modules/semver/functions/sort.js +0 -11
- package/dist/node_modules/semver/functions/valid.js +0 -14
- package/dist/node_modules/semver/index.js +0 -97
- package/dist/node_modules/semver/internal/constants.js +0 -28
- package/dist/node_modules/semver/internal/debug.js +0 -8
- package/dist/node_modules/semver/internal/identifiers.js +0 -18
- package/dist/node_modules/semver/internal/lrucache.js +0 -32
- package/dist/node_modules/semver/internal/parse-options.js +0 -10
- package/dist/node_modules/semver/internal/re.js +0 -32
- package/dist/node_modules/semver/ranges/gtr.js +0 -11
- package/dist/node_modules/semver/ranges/intersects.js +0 -11
- package/dist/node_modules/semver/ranges/ltr.js +0 -11
- package/dist/node_modules/semver/ranges/max-satisfying.js +0 -22
- package/dist/node_modules/semver/ranges/min-satisfying.js +0 -22
- package/dist/node_modules/semver/ranges/min-version.js +0 -42
- package/dist/node_modules/semver/ranges/outside.js +0 -44
- package/dist/node_modules/semver/ranges/simplify.js +0 -24
- package/dist/node_modules/semver/ranges/subset.js +0 -94
- package/dist/node_modules/semver/ranges/to-comparators.js +0 -11
- package/dist/node_modules/semver/ranges/valid.js +0 -17
- package/dist/packages/mdx-schema/dist/composables/useMdxParsing.js +0 -389
- package/dist/packages/mdx-schema/dist/metadata/index.js +0 -526
- package/dist/packages/mdx-schema/dist/prepareProps.js +0 -46
- package/dist/packages/mdx-schema/dist/styles/index.js +0 -147
- package/dist/packages/mdx-schema/dist/tripmap.js +0 -101
- package/dist/packages/mdx-schema/dist/types/index.js +0 -26
- package/dist/packages/sanitize/dist/html.js +0 -89
- /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl-shared.js +0 -0
- /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;
|
package/dist/core/view-model.js
CHANGED
|
@@ -1,47 +1,53 @@
|
|
|
1
|
-
import { ACCESS_LEVEL_ORDER as
|
|
2
|
-
import { localizedHref as
|
|
3
|
-
function
|
|
4
|
-
if (!
|
|
5
|
-
const
|
|
6
|
-
return Number.isNaN(
|
|
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
|
|
9
|
-
const
|
|
10
|
-
return new Date(
|
|
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
|
|
17
|
-
if (!
|
|
18
|
-
let
|
|
19
|
-
for (const
|
|
20
|
-
const
|
|
21
|
-
|
|
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
|
|
23
|
+
return o[e] ?? "public";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
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:
|
|
29
|
-
href:
|
|
30
|
-
title:
|
|
31
|
-
description:
|
|
32
|
-
image:
|
|
33
|
-
isoDate:
|
|
34
|
-
formattedDate:
|
|
35
|
-
tags: (
|
|
36
|
-
label:
|
|
37
|
-
slug:
|
|
38
|
-
href:
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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 "
|
|
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>;
|
package/dist/nuxt/index.d.ts
CHANGED
|
@@ -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 "
|
|
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
|
|
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
|
|
17
|
+
function b(e) {
|
|
17
18
|
const r = n(() => e.columns || 2), g = n(() => {
|
|
18
19
|
const i = r.value;
|
|
19
|
-
return
|
|
20
|
-
}), m = n(() => `gap-${e.gap || 4}`),
|
|
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
|
|
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:
|
|
52
|
+
tileLayout: l,
|
|
52
53
|
getImageSrc: s,
|
|
53
|
-
getImageAlt:
|
|
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
|
-
|
|
64
|
-
|
|
64
|
+
O as galleryTileLayout,
|
|
65
|
+
L as gridColsClasses,
|
|
65
66
|
o as isMediaObject,
|
|
66
67
|
a as isVideoUrl,
|
|
67
|
-
|
|
68
|
+
b as useGallery
|
|
68
69
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { splitTripMapList as n, parseTripMapHandNodes as
|
|
3
|
-
import { tripMapFormatTime as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const a =
|
|
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:
|
|
9
|
-
excludeList:
|
|
10
|
-
handNodes:
|
|
11
|
-
facadeThumbs:
|
|
8
|
+
slugList: s,
|
|
9
|
+
excludeList: i,
|
|
10
|
+
handNodes: l,
|
|
11
|
+
facadeThumbs: p,
|
|
12
12
|
facadeStops: d,
|
|
13
|
-
heightStyle:
|
|
13
|
+
heightStyle: u,
|
|
14
14
|
articleContext: a,
|
|
15
|
-
isAutoMode:
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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 "
|
|
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 "
|
|
3
|
-
import { getComponentMetadata as N, getComponentNames as W } from "
|
|
4
|
-
import { prepareProps as g } from "
|
|
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
|
|
102
|
+
function E(o) {
|
|
104
103
|
const r = d[o];
|
|
105
104
|
return r ? Object.keys(r.render) : [];
|
|
106
105
|
}
|
|
107
|
-
async function
|
|
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
|
|
128
|
-
function
|
|
129
|
-
const e = `${o}:${r}`, t =
|
|
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)),
|
|
136
|
-
return
|
|
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
|
-
|
|
137
|
+
function R() {
|
|
138
|
+
a.clear();
|
|
140
139
|
}
|
|
141
|
-
async function
|
|
140
|
+
async function _(o) {
|
|
142
141
|
const r = d[o];
|
|
143
142
|
return r ? (await r.edit()).default : void 0;
|
|
144
143
|
}
|
|
145
|
-
function
|
|
144
|
+
function x(o) {
|
|
146
145
|
return d[o]?.editor;
|
|
147
146
|
}
|
|
148
147
|
export {
|
|
149
148
|
s as MDX_PREPARED_SENTINEL,
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
R as _resetWrappedRenderCacheForTests,
|
|
150
|
+
T as componentMetadata,
|
|
152
151
|
d as componentRegistry,
|
|
153
152
|
N as getComponentMetadata,
|
|
154
153
|
W as getComponentNames,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
2
|
-
import { Protocol as ke } from "
|
|
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 "
|
|
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() {
|