@studiocms/mdx 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 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 { type StudioCMSPlugin } from 'studiocms/plugins';
8
+ import type { StudioCMSPluginDef } from 'studiocms/schemas';
9
9
  import type { MDXPluginOptions } from './types.js';
10
10
  /**
11
11
  * Creates an internal Astro integration for MDX functionality.
@@ -20,7 +20,7 @@ export declare function internalMDXIntegration(packageIdentifier: string, option
20
20
  * Creates and configures the StudioCMS MDX plugin.
21
21
  *
22
22
  * @param {MDXPluginOptions} [options] - Optional configuration options for the MDX plugin.
23
- * @returns {StudioCMSPlugin} The configured StudioCMS plugin.
23
+ * @returns {StudioCMSPluginDef} The configured StudioCMS plugin.
24
24
  *
25
25
  * @example
26
26
  * ```typescript
@@ -34,5 +34,5 @@ export declare function internalMDXIntegration(packageIdentifier: string, option
34
34
  * ]
35
35
  * ```
36
36
  */
37
- export declare function studiocmsMDX(options?: MDXPluginOptions): StudioCMSPlugin;
37
+ export declare function studiocmsMDX(options?: MDXPluginOptions): StudioCMSPluginDef;
38
38
  export default studiocmsMDX;
package/dist/index.js CHANGED
@@ -46,13 +46,12 @@ function studiocmsMDX(options) {
46
46
  return definePlugin({
47
47
  identifier: packageIdentifier,
48
48
  name: "StudioCMS MDX",
49
- studiocmsMinimumVersion: "0.1.0-beta.21",
50
49
  requires: ["@studiocms/md"],
51
50
  hooks: {
52
- "studiocms:astro-config": ({ addIntegrations }) => {
51
+ "studiocms:astro-config": async ({ addIntegrations }) => {
53
52
  addIntegrations(internalMDXIntegration(packageIdentifier, resolvedOptions));
54
53
  },
55
- "studiocms:rendering": ({ setRendering }) => {
54
+ "studiocms:rendering": async ({ setRendering }) => {
56
55
  setRendering({
57
56
  pageTypes: [
58
57
  // Define the MDX page type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiocms/mdx",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "Add MDX Support to your StudioCMS project with ease!",
5
5
  "author": {
6
6
  "name": "withstudiocms",
@@ -57,23 +57,23 @@
57
57
  "dependencies": {
58
58
  "@mdx-js/mdx": "^3.1.1",
59
59
  "astro-integration-kit": "^0.19.1",
60
- "react": "^19.2.3",
61
- "react-dom": "^19.2.3",
60
+ "react": "^19.2.4",
61
+ "react-dom": "^19.2.4",
62
62
  "rehype-highlight": "^7.0.2",
63
63
  "remark-gfm": "^4.0.1",
64
64
  "unified": "^11.0.5"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/node": "^22.0.0",
68
- "@types/react": "^19.2.7",
69
- "@types/react-dom": "^19.2.3"
70
- },
71
- "peerDependencies": {
68
+ "@types/react": "^19.2.14",
69
+ "@types/react-dom": "^19.2.3",
72
70
  "astro": "^5.12.9",
73
- "effect": "^3.19.14",
74
71
  "vite": "^6.3.4",
75
- "@studiocms/md": "^0.1.1",
76
- "studiocms": "^0.1.1"
72
+ "@studiocms/md": "^0.3.0",
73
+ "studiocms": "^0.4.0"
74
+ },
75
+ "peerDependencies": {
76
+ "effect": "^3.19.19"
77
77
  },
78
78
  "scripts": {
79
79
  "build": "buildkit build 'src/**/*.{ts,astro,css,json,png,d.ts}'",