@blogmcp/mdx-render-react 0.5.0 → 0.6.1

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.
@@ -10,6 +10,13 @@ import type { TripMapFacadeMedia } from '@blogmcp/mdx-schema/tripmap';
10
10
  export interface MdxArticleContextValue {
11
11
  filename: string;
12
12
  language?: string;
13
+ /**
14
+ * Set ONLY by a draft preview: the draft-preview token of the page (`/preview/<token>`).
15
+ * AUTO mode then asks kb-api for the article's WORKING COPY photo set; without it a draft
16
+ * maps nothing (a reader's request for a draft is a 404) and an article with unpublished
17
+ * edits maps its published photos. Never set it on a published page.
18
+ */
19
+ previewToken?: string;
13
20
  /**
14
21
  * The article's geotagged media (`contentImagesGeo`), when the host has
15
22
  * them: the SERVER-RENDERED facade then carries real thumbnails with alt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blogmcp/mdx-render-react",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "React renderer for MDX components — implements the @blogmcp/mdx-schema contract alongside @blogmcp/mdx-render-vue. Server-Component-first with two client islands (Tooltip, AudioPlayer).",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@ark-ui/react": "^5.0.0",
41
- "@blogmcp/mdx-schema": "^0.5.0",
41
+ "@blogmcp/mdx-schema": "^0.6.1",
42
42
  "@blogmcp/tripmap-core": "^0.1.2",
43
- "@blogmcp/sanitize": "^0.3.0",
44
- "@blogmcp/sdk": "^0.3.2",
43
+ "@blogmcp/sanitize": "^0.6.1",
44
+ "@blogmcp/sdk": "^0.6.1",
45
45
  "@iconify/react": "^6.0.0",
46
46
  "marked": "^15.0.7"
47
47
  },
@@ -14,6 +14,13 @@ import type { TripMapFacadeMedia } from '@blogmcp/mdx-schema/tripmap'
14
14
  export interface MdxArticleContextValue {
15
15
  filename: string
16
16
  language?: string
17
+ /**
18
+ * Set ONLY by a draft preview: the draft-preview token of the page (`/preview/<token>`).
19
+ * AUTO mode then asks kb-api for the article's WORKING COPY photo set; without it a draft
20
+ * maps nothing (a reader's request for a draft is a 404) and an article with unpublished
21
+ * edits maps its published photos. Never set it on a published page.
22
+ */
23
+ previewToken?: string
17
24
  /**
18
25
  * The article's geotagged media (`contentImagesGeo`), when the host has
19
26
  * them: the SERVER-RENDERED facade then carries real thumbnails with alt