@void/md 1.1.11 → 1.1.12
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/dist/plugin.mjs +6 -4
- package/package.json +3 -3
package/dist/plugin.mjs
CHANGED
|
@@ -438,8 +438,9 @@ import { inject } from "vue";
|
|
|
438
438
|
export function useFrontmatter() { return inject("__void_frontmatter", {}); }
|
|
439
439
|
`;
|
|
440
440
|
if (adapter === "react") return `
|
|
441
|
-
import {
|
|
442
|
-
|
|
441
|
+
import { useContext } from "react";
|
|
442
|
+
import { FrontmatterContext } from "@void/react";
|
|
443
|
+
export { FrontmatterContext };
|
|
443
444
|
export function useFrontmatter() { return useContext(FrontmatterContext) ?? {}; }
|
|
444
445
|
`;
|
|
445
446
|
if (adapter === "svelte") return `
|
|
@@ -449,8 +450,9 @@ export function setFrontmatter(frontmatter) { setContext(FRONTMATTER_KEY, frontm
|
|
|
449
450
|
export function useFrontmatter() { return getContext(FRONTMATTER_KEY) ?? {}; }
|
|
450
451
|
`;
|
|
451
452
|
if (adapter === "solid") return `
|
|
452
|
-
import {
|
|
453
|
-
|
|
453
|
+
import { useContext } from "solid-js";
|
|
454
|
+
import { FrontmatterContext } from "@void/solid";
|
|
455
|
+
export { FrontmatterContext };
|
|
454
456
|
export function useFrontmatter() { return useContext(FrontmatterContext) ?? {}; }
|
|
455
457
|
`;
|
|
456
458
|
throw new Error("void-md: Adapter is not initialized.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@void/md",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Markdown pages with layouts and interactive islands for Void.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@types/node": "^26.6.5",
|
|
54
54
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.2.0",
|
|
55
55
|
"vite-plus": "1.2.0",
|
|
56
|
-
"void": "1.1.
|
|
56
|
+
"void": "1.1.12"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"vite": "^8.0.0",
|
|
60
|
-
"void": "1.1.
|
|
60
|
+
"void": "1.1.12"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "vp pack",
|