@blogmcp/mdx-render-vue 0.5.0 → 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.
@@ -26,6 +26,13 @@ export type { TripMapGeoNode, TripMapGeoResponse };
26
26
  export interface MdxArticleContext {
27
27
  filename: string;
28
28
  language?: string;
29
+ /**
30
+ * Set ONLY by a draft preview: the draft-preview token of the page (`/preview/<token>`).
31
+ * AUTO mode then asks kb-api for the article's WORKING COPY photo set; without it a draft
32
+ * maps nothing (a reader's request for a draft is a 404) and an article with unpublished
33
+ * edits maps its published photos. Never set it on a published page.
34
+ */
35
+ previewToken?: string;
29
36
  /**
30
37
  * The article's geotagged media (the GraphQL `contentImagesGeo` rows),
31
38
  * when the host already has them. Lets the SERVER-RENDERED facade carry
@@ -24,6 +24,13 @@ export declare const MDX_ARTICLE_CONTEXT_KEY: InjectionKey<MdxArticleContext | n
24
24
  export declare interface MdxArticleContext {
25
25
  filename: string;
26
26
  language?: string;
27
+ /**
28
+ * Set ONLY by a draft preview: the draft-preview token of the page (`/preview/<token>`).
29
+ * AUTO mode then asks kb-api for the article's WORKING COPY photo set; without it a draft
30
+ * maps nothing (a reader's request for a draft is a 404) and an article with unpublished
31
+ * edits maps its published photos. Never set it on a published page.
32
+ */
33
+ previewToken?: string;
27
34
  /**
28
35
  * The article's geotagged media (the GraphQL `contentImagesGeo` rows),
29
36
  * when the host already has them. Lets the SERVER-RENDERED facade carry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blogmcp/mdx-render-vue",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Vue renderer for MDX components — edit + render SFCs wired to @blogmcp/mdx-schema",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -98,8 +98,8 @@
98
98
  "typecheck": "vue-tsc --noEmit"
99
99
  },
100
100
  "dependencies": {
101
- "@blogmcp/mdx-schema": "^0.5.0",
102
- "@blogmcp/sanitize": "^0.3.0",
101
+ "@blogmcp/mdx-schema": "^0.6.0",
102
+ "@blogmcp/sanitize": "^0.6.0",
103
103
  "@blogmcp/tripmap-core": "^0.1.2",
104
104
  "@ark-ui/vue": "^5.0.0",
105
105
  "@iconify/vue": "^5.0.0"
@@ -47,6 +47,13 @@ export type { TripMapGeoNode, TripMapGeoResponse }
47
47
  export interface MdxArticleContext {
48
48
  filename: string
49
49
  language?: string
50
+ /**
51
+ * Set ONLY by a draft preview: the draft-preview token of the page (`/preview/<token>`).
52
+ * AUTO mode then asks kb-api for the article's WORKING COPY photo set; without it a draft
53
+ * maps nothing (a reader's request for a draft is a 404) and an article with unpublished
54
+ * edits maps its published photos. Never set it on a published page.
55
+ */
56
+ previewToken?: string
50
57
  /**
51
58
  * The article's geotagged media (the GraphQL `contentImagesGeo` rows),
52
59
  * when the host already has them. Lets the SERVER-RENDERED facade carry