@blogmcp/mdx-render-vue 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.
|
@@ -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
|
package/dist/useTripMap.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Vue renderer for MDX components — edit + render SFCs wired to @blogmcp/mdx-schema",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -11,75 +11,75 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.js"
|
|
16
16
|
},
|
|
17
17
|
"./edit": {
|
|
18
|
-
"types": "./
|
|
18
|
+
"types": "./dist/edit/index.d.ts",
|
|
19
19
|
"import": "./dist/edit/index.js"
|
|
20
20
|
},
|
|
21
21
|
"./render": {
|
|
22
|
-
"types": "./
|
|
22
|
+
"types": "./dist/render/index.d.ts",
|
|
23
23
|
"import": "./dist/render/index.js"
|
|
24
24
|
},
|
|
25
25
|
"./composables": {
|
|
26
|
-
"types": "./
|
|
26
|
+
"types": "./dist/composables/index.d.ts",
|
|
27
27
|
"import": "./dist/composables/index.js"
|
|
28
28
|
},
|
|
29
29
|
"./registry": {
|
|
30
|
-
"types": "./
|
|
30
|
+
"types": "./dist/registry.d.ts",
|
|
31
31
|
"import": "./dist/registry.js"
|
|
32
32
|
},
|
|
33
33
|
"./render/callout": {
|
|
34
|
-
"types": "./
|
|
34
|
+
"types": "./dist/render/callout/index.d.ts",
|
|
35
35
|
"import": "./dist/render/callout/index.js"
|
|
36
36
|
},
|
|
37
37
|
"./render/codeblock": {
|
|
38
|
-
"types": "./
|
|
38
|
+
"types": "./dist/render/codeblock/index.d.ts",
|
|
39
39
|
"import": "./dist/render/codeblock/index.js"
|
|
40
40
|
},
|
|
41
41
|
"./render/gallery": {
|
|
42
|
-
"types": "./
|
|
42
|
+
"types": "./dist/render/gallery/index.d.ts",
|
|
43
43
|
"import": "./dist/render/gallery/index.js"
|
|
44
44
|
},
|
|
45
45
|
"./render/youtube": {
|
|
46
|
-
"types": "./
|
|
46
|
+
"types": "./dist/render/youtube/index.d.ts",
|
|
47
47
|
"import": "./dist/render/youtube/index.js"
|
|
48
48
|
},
|
|
49
49
|
"./render/audioplayer": {
|
|
50
|
-
"types": "./
|
|
50
|
+
"types": "./dist/render/audioplayer/index.d.ts",
|
|
51
51
|
"import": "./dist/render/audioplayer/index.js"
|
|
52
52
|
},
|
|
53
53
|
"./composables/gallery": {
|
|
54
|
-
"types": "./
|
|
54
|
+
"types": "./dist/composables/useGallery.d.ts",
|
|
55
55
|
"import": "./dist/composables/useGallery.js"
|
|
56
56
|
},
|
|
57
57
|
"./composables/media": {
|
|
58
|
-
"types": "./
|
|
58
|
+
"types": "./dist/composables/useMedia.d.ts",
|
|
59
59
|
"import": "./dist/composables/useMedia.js"
|
|
60
60
|
},
|
|
61
61
|
"./composables/callout": {
|
|
62
|
-
"types": "./
|
|
62
|
+
"types": "./dist/composables/useCallout.d.ts",
|
|
63
63
|
"import": "./dist/composables/useCallout.js"
|
|
64
64
|
},
|
|
65
65
|
"./composables/codeblock": {
|
|
66
|
-
"types": "./
|
|
66
|
+
"types": "./dist/composables/useCodeBlock.d.ts",
|
|
67
67
|
"import": "./dist/composables/useCodeBlock.js"
|
|
68
68
|
},
|
|
69
69
|
"./composables/youtube": {
|
|
70
|
-
"types": "./
|
|
70
|
+
"types": "./dist/composables/useYouTube.d.ts",
|
|
71
71
|
"import": "./dist/composables/useYouTube.js"
|
|
72
72
|
},
|
|
73
73
|
"./composables/audioplayer": {
|
|
74
|
-
"types": "./
|
|
74
|
+
"types": "./dist/composables/useAudioPlayer.d.ts",
|
|
75
75
|
"import": "./dist/composables/useAudioPlayer.js"
|
|
76
76
|
},
|
|
77
77
|
"./render/tripmap": {
|
|
78
|
-
"types": "./
|
|
78
|
+
"types": "./dist/render/tripmap/index.d.ts",
|
|
79
79
|
"import": "./dist/render/tripmap/index.js"
|
|
80
80
|
},
|
|
81
81
|
"./composables/tripmap": {
|
|
82
|
-
"types": "./
|
|
82
|
+
"types": "./dist/composables/useTripMap.d.ts",
|
|
83
83
|
"import": "./dist/composables/useTripMap.js"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
@@ -95,11 +95,13 @@
|
|
|
95
95
|
"test:e2e": "playwright test --config=test/e2e/playwright.config.ts",
|
|
96
96
|
"test:e2e:ui": "playwright test --config=test/e2e/playwright.config.ts --ui",
|
|
97
97
|
"harness": "vite --config test/e2e/harness/vite.config.ts --port 5099 --open",
|
|
98
|
-
"typecheck": "vue-tsc --noEmit"
|
|
98
|
+
"typecheck": "vue-tsc --noEmit",
|
|
99
|
+
"prepack": "node ../../scripts/pack-dist-types.mjs prepack",
|
|
100
|
+
"postpack": "node ../../scripts/pack-dist-types.mjs postpack"
|
|
99
101
|
},
|
|
100
102
|
"dependencies": {
|
|
101
|
-
"@blogmcp/mdx-schema": "^0.
|
|
102
|
-
"@blogmcp/sanitize": "^0.
|
|
103
|
+
"@blogmcp/mdx-schema": "^0.6.1",
|
|
104
|
+
"@blogmcp/sanitize": "^0.6.1",
|
|
103
105
|
"@blogmcp/tripmap-core": "^0.1.2",
|
|
104
106
|
"@ark-ui/vue": "^5.0.0",
|
|
105
107
|
"@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
|