@blogmcp/sdk 0.3.1 → 0.6.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/LICENSE +21 -0
- package/dist/core/client-types.d.ts +7 -1
- package/dist/core/client.d.ts +25 -1
- package/dist/core/client.js +38 -34
- package/dist/core/consultation-adapter.d.ts +90 -0
- package/dist/core/consultation-adapter.js +200 -0
- package/dist/core/consultations.d.ts +108 -0
- package/dist/core/consultations.js +95 -0
- package/dist/core/errors.d.ts +52 -0
- package/dist/core/errors.js +73 -0
- package/dist/core/index.d.ts +7 -1
- package/dist/core/index.js +80 -64
- package/dist/core/queries.d.ts +16 -1
- package/dist/core/queries.js +198 -61
- package/dist/core/review/format.d.ts +30 -0
- package/dist/core/review/format.js +78 -0
- package/dist/core/review/index.d.ts +6 -0
- package/dist/core/review/index.js +9 -0
- package/dist/core/review/types.d.ts +176 -0
- package/dist/core/review/types.js +9 -0
- package/dist/core/server-only.d.ts +12 -0
- package/dist/core/server-only.js +11 -0
- package/dist/core/types.d.ts +295 -0
- package/dist/packages/mdx-render-vue/dist/composables/useTripMap.js +21 -25
- package/dist/packages/mdx-render-vue/dist/edit/TripMapEdit.vue.js +1 -0
- package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +105 -94
- package/dist/packages/mdx-schema/dist/metadata/index.js +12 -3
- package/dist/packages/mdx-schema/dist/styles/index.js +9 -1
- package/dist/packages/mdx-schema/dist/tripmap.js +81 -35
- package/dist/packages/tripmap-core/dist/attribution.js +121 -6
- package/dist/packages/tripmap-core/dist/css.js +149 -20
- package/dist/packages/tripmap-core/dist/detail.js +51 -0
- package/dist/packages/tripmap-core/dist/engine.js +367 -174
- package/dist/packages/tripmap-core/dist/export.js +72 -0
- package/dist/packages/tripmap-core/dist/filmstrip.js +30 -17
- package/dist/packages/tripmap-core/dist/framing.js +30 -30
- package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +1 -1
- package/dist/packages/tripmap-core/dist/heading.js +8 -0
- package/dist/packages/tripmap-core/dist/href.js +18 -0
- package/dist/packages/tripmap-core/dist/index.js +60 -36
- package/dist/packages/tripmap-core/dist/lightbox.js +96 -0
- package/dist/packages/tripmap-core/dist/line.js +6 -6
- package/dist/packages/tripmap-core/dist/markers.js +60 -51
- package/dist/packages/tripmap-core/dist/nodes.js +56 -43
- package/dist/packages/tripmap-core/dist/playback.js +20 -16
- package/dist/packages/tripmap-core/dist/preload.js +44 -0
- package/dist/packages/tripmap-core/dist/theme.js +21 -21
- package/dist/{node_modules → packages/tripmap-core/node_modules}/maplibre-gl/dist/maplibre-gl.js +2006 -1791
- package/dist/{node_modules → packages/tripmap-core/node_modules}/pmtiles/dist/esm/index.js +1 -1
- package/package.json +8 -3
- package/src/core/client-types.ts +13 -2
- package/src/core/client.ts +40 -5
- package/src/core/consultation-adapter.ts +408 -0
- package/src/core/consultations.ts +224 -0
- package/src/core/errors.ts +145 -0
- package/src/core/index.ts +68 -0
- package/src/core/queries.ts +167 -3
- package/src/core/review/format.ts +138 -0
- package/src/core/review/index.ts +22 -0
- package/src/core/review/types.ts +168 -0
- package/src/core/server-only.ts +20 -0
- package/src/core/types.ts +337 -0
- /package/dist/{node_modules → packages/tripmap-core/node_modules}/maplibre-gl/dist/maplibre-gl-shared.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
function
|
|
2
|
-
if (
|
|
1
|
+
function o(e) {
|
|
2
|
+
if (e === "light" || e === "dark") return e;
|
|
3
3
|
if (typeof window < "u" && typeof window.matchMedia == "function")
|
|
4
4
|
try {
|
|
5
5
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
@@ -8,35 +8,35 @@ function c(t) {
|
|
|
8
8
|
}
|
|
9
9
|
return "light";
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function s(e) {
|
|
12
12
|
if (typeof window > "u" || typeof window.matchMedia != "function") return () => {
|
|
13
13
|
};
|
|
14
|
-
let
|
|
14
|
+
let r;
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
r = window.matchMedia("(prefers-color-scheme: dark)");
|
|
17
17
|
} catch {
|
|
18
18
|
return () => {
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
return
|
|
21
|
+
const t = (i) => e(i.matches ? "dark" : "light");
|
|
22
|
+
return r.addEventListener("change", t), () => r.removeEventListener("change", t);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
function
|
|
26
|
-
if (!
|
|
27
|
-
const
|
|
28
|
-
for (const [n,
|
|
29
|
-
n.startsWith(
|
|
30
|
-
const
|
|
24
|
+
const c = "tripmap-";
|
|
25
|
+
function d(e, r) {
|
|
26
|
+
if (!e) return r;
|
|
27
|
+
const t = {};
|
|
28
|
+
for (const [n, a] of Object.entries(e.sources ?? {}))
|
|
29
|
+
n.startsWith(c) && (t[n] = a);
|
|
30
|
+
const i = (e.layers ?? []).filter((n) => n.id.startsWith(c));
|
|
31
31
|
return {
|
|
32
|
-
...
|
|
33
|
-
sources: { ...
|
|
34
|
-
layers: [...
|
|
32
|
+
...r,
|
|
33
|
+
sources: { ...r.sources ?? {}, ...t },
|
|
34
|
+
layers: [...r.layers ?? [], ...i]
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
c as TRIPMAP_LAYER_PREFIX,
|
|
39
|
+
d as carryTripMapLayers,
|
|
40
|
+
o as resolveTheme,
|
|
41
|
+
s as watchSystemTheme
|
|
42
42
|
};
|