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