@studiocms/markdoc 0.1.1 → 0.3.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.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -3
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/// <reference types="./virtual.d.ts" preserve="true" />
|
|
7
7
|
import type { AstroIntegration } from 'astro';
|
|
8
|
-
import {
|
|
8
|
+
import type { StudioCMSPluginDef } from 'studiocms/schemas';
|
|
9
9
|
import type { MarkDocPluginOptions } from './types.js';
|
|
10
10
|
/**
|
|
11
11
|
* Creates an internal Astro integration for MarkDoc rendering.
|
|
@@ -16,5 +16,5 @@ import type { MarkDocPluginOptions } from './types.js';
|
|
|
16
16
|
* @returns {AstroIntegration} The configured Astro integration.
|
|
17
17
|
*/
|
|
18
18
|
export declare function internalMarkDocIntegration(packageIdentifier: string, options?: MarkDocPluginOptions): AstroIntegration;
|
|
19
|
-
export declare function studiocmsMarkDoc(options?: MarkDocPluginOptions):
|
|
19
|
+
export declare function studiocmsMarkDoc(options?: MarkDocPluginOptions): StudioCMSPluginDef;
|
|
20
20
|
export default studiocmsMarkDoc;
|
package/dist/index.js
CHANGED
|
@@ -44,13 +44,12 @@ function studiocmsMarkDoc(options) {
|
|
|
44
44
|
return definePlugin({
|
|
45
45
|
identifier: packageIdentifier,
|
|
46
46
|
name: "StudioCMS MarkDoc",
|
|
47
|
-
studiocmsMinimumVersion: "0.1.0-beta.21",
|
|
48
47
|
requires: ["@studiocms/md"],
|
|
49
48
|
hooks: {
|
|
50
|
-
"studiocms:astro-config": ({ addIntegrations }) => {
|
|
49
|
+
"studiocms:astro-config": async ({ addIntegrations }) => {
|
|
51
50
|
addIntegrations(internalMarkDocIntegration(packageIdentifier, resolvedOptions));
|
|
52
51
|
},
|
|
53
|
-
"studiocms:rendering": ({ setRendering }) => {
|
|
52
|
+
"studiocms:rendering": async ({ setRendering }) => {
|
|
54
53
|
setRendering({
|
|
55
54
|
pageTypes: [
|
|
56
55
|
// Define the MarkDoc page type
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiocms/markdoc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Add MarkDoc Support to your StudioCMS project with ease!",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "withstudiocms",
|
|
@@ -55,22 +55,22 @@
|
|
|
55
55
|
},
|
|
56
56
|
"type": "module",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@markdoc/markdoc": "^0.5.
|
|
58
|
+
"@markdoc/markdoc": "^0.5.5",
|
|
59
59
|
"astro-integration-kit": "^0.19.1",
|
|
60
|
-
"react": "^19.2.
|
|
61
|
-
"react-dom": "^19.2.
|
|
60
|
+
"react": "^19.2.4",
|
|
61
|
+
"react-dom": "^19.2.4"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/node": "^22.0.0",
|
|
65
|
-
"@types/react": "^19.2.
|
|
66
|
-
"@types/react-dom": "^19.2.3"
|
|
67
|
-
},
|
|
68
|
-
"peerDependencies": {
|
|
65
|
+
"@types/react": "^19.2.14",
|
|
66
|
+
"@types/react-dom": "^19.2.3",
|
|
69
67
|
"astro": "^5.12.9",
|
|
70
|
-
"effect": "^3.19.14",
|
|
71
68
|
"vite": "^6.3.4",
|
|
72
|
-
"@studiocms/md": "^0.
|
|
73
|
-
"studiocms": "^0.
|
|
69
|
+
"@studiocms/md": "^0.3.0",
|
|
70
|
+
"studiocms": "^0.4.0"
|
|
71
|
+
},
|
|
72
|
+
"peerDependencies": {
|
|
73
|
+
"effect": "^3.19.19"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "buildkit build 'src/**/*.{ts,astro,css,json,png,d.ts}'",
|