@studiocms/markdoc 0.1.0-beta.21 → 0.1.0-beta.22
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/LICENSE +1 -1
- package/dist/components/editor.astro +8 -0
- package/dist/index.js +4 -3
- package/dist/lib/shared.js +1 -1
- package/package.json +15 -12
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 StudioCMS -
|
|
3
|
+
Copyright (c) 2025-present StudioCMS - withstudiocms (https://github.com/withstudiocms)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ function studiocmsMarkDoc(options) {
|
|
|
5
5
|
const { resolve } = createResolver(import.meta.url);
|
|
6
6
|
const packageIdentifier = "@studiocms/markdoc";
|
|
7
7
|
const renderer = resolve("./components/MarkDocRenderer.astro");
|
|
8
|
+
const editor = resolve("./components/editor.astro");
|
|
8
9
|
const internalRenderer = resolve("./lib/render.js");
|
|
9
10
|
const resolvedOptions = {
|
|
10
11
|
type: options?.type || "html",
|
|
@@ -14,7 +15,8 @@ function studiocmsMarkDoc(options) {
|
|
|
14
15
|
return definePlugin({
|
|
15
16
|
identifier: packageIdentifier,
|
|
16
17
|
name: "StudioCMS MarkDoc",
|
|
17
|
-
studiocmsMinimumVersion: "0.1.0-beta.
|
|
18
|
+
studiocmsMinimumVersion: "0.1.0-beta.21",
|
|
19
|
+
requires: ["@studiocms/md"],
|
|
18
20
|
hooks: {
|
|
19
21
|
"studiocms:astro:config": ({ addIntegrations }) => {
|
|
20
22
|
addIntegrations({
|
|
@@ -45,8 +47,7 @@ function studiocmsMarkDoc(options) {
|
|
|
45
47
|
{
|
|
46
48
|
identifier: "studiocms/markdoc",
|
|
47
49
|
label: "MarkDoc",
|
|
48
|
-
pageContentComponent:
|
|
49
|
-
// Fallback to the default content editor for now, might build a custom MarkDoc editor in the future
|
|
50
|
+
pageContentComponent: editor,
|
|
50
51
|
rendererComponent: renderer
|
|
51
52
|
}
|
|
52
53
|
]
|
package/dist/lib/shared.js
CHANGED
|
@@ -2,7 +2,7 @@ const symbol = Symbol.for("@studiocms/markdoc");
|
|
|
2
2
|
const shared = (
|
|
3
3
|
// @ts-ignore
|
|
4
4
|
globalThis[symbol] || // @ts-ignore
|
|
5
|
-
// biome-ignore lint/suspicious/noAssignInExpressions:
|
|
5
|
+
// biome-ignore lint/suspicious/noAssignInExpressions: This is a valid use case for assignment in expressions.
|
|
6
6
|
(globalThis[symbol] = {
|
|
7
7
|
markDocConfig: {}
|
|
8
8
|
})
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiocms/markdoc",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.22",
|
|
4
4
|
"description": "Add MarkDoc Support to your StudioCMS project with ease!",
|
|
5
5
|
"author": {
|
|
6
|
-
"name": "
|
|
6
|
+
"name": "withstudiocms",
|
|
7
7
|
"url": "https://studiocms.dev"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/withstudiocms/studiocms.git",
|
|
12
|
-
"directory": "packages/
|
|
12
|
+
"directory": "packages/@studiocms/markdoc"
|
|
13
13
|
},
|
|
14
14
|
"contributors": [
|
|
15
15
|
"Adammatthiesen",
|
|
@@ -61,21 +61,23 @@
|
|
|
61
61
|
},
|
|
62
62
|
"type": "module",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@markdoc/markdoc": "^0.5.
|
|
64
|
+
"@markdoc/markdoc": "^0.5.2",
|
|
65
65
|
"astro-integration-kit": "^0.18",
|
|
66
|
-
"react": "^19.
|
|
67
|
-
"react-dom": "^19.
|
|
66
|
+
"react": "^19.1.1",
|
|
67
|
+
"react-dom": "^19.1.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "^22.0.0",
|
|
71
|
-
"@types/react": "^19.
|
|
72
|
-
"@types/react-dom": "^19.
|
|
71
|
+
"@types/react": "^19.1.9",
|
|
72
|
+
"@types/react-dom": "^19.1.7"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@astrojs/react": "^4.
|
|
76
|
-
"astro": "^5.
|
|
75
|
+
"@astrojs/react": "^4.3.0",
|
|
76
|
+
"astro": "^5.12.6",
|
|
77
|
+
"effect": "^3.17.3",
|
|
77
78
|
"vite": "^6.3.4",
|
|
78
|
-
"studiocms": "0.1.0-beta.
|
|
79
|
+
"@studiocms/md": "0.1.0-beta.22",
|
|
80
|
+
"studiocms": "0.1.0-beta.22"
|
|
79
81
|
},
|
|
80
82
|
"peerDependenciesMeta": {
|
|
81
83
|
"@astrojs/react": {
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
},
|
|
85
87
|
"scripts": {
|
|
86
88
|
"build": "buildkit build 'src/**/*.{ts,astro,css,json,png}'",
|
|
87
|
-
"dev": "buildkit dev 'src/**/*.{ts,astro,css,json,png}'"
|
|
89
|
+
"dev": "buildkit dev 'src/**/*.{ts,astro,css,json,png}'",
|
|
90
|
+
"typecheck": "tspc -p tsconfig.tspc.json"
|
|
88
91
|
}
|
|
89
92
|
}
|