@mdxui/payload 6.0.1 → 6.0.7
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/CHANGELOG.md +50 -0
- package/package.json +5 -5
- package/src/index.ts +1 -1
- package/src/mdx-preview/MDXPreview.tsx +1 -1
- package/src/mdx-preview/MDXProvider.tsx +1 -1
- package/src/mdx-preview/PayloadMDXField.tsx +1 -1
- package/src/mdx-preview/index.ts +1 -1
- package/src/site-preview/SitePreview.tsx +5 -11
- package/src/site-preview/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @mdxui/payload
|
|
2
2
|
|
|
3
|
+
## 6.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @mdxui/auth@1.5.2
|
|
9
|
+
- @mdxui/cockpit@7.0.5
|
|
10
|
+
|
|
11
|
+
## 6.0.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @mdxui/auth@1.5.1
|
|
17
|
+
- @mdxui/cockpit@7.0.4
|
|
18
|
+
|
|
19
|
+
## 6.0.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [e103ac5]
|
|
24
|
+
- @mdxui/auth@1.5.0
|
|
25
|
+
- @mdxui/cockpit@7.0.3
|
|
26
|
+
|
|
27
|
+
## 6.0.4
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [3bca343]
|
|
32
|
+
- @mdxui/auth@1.4.2
|
|
33
|
+
- @mdxui/cockpit@7.0.2
|
|
34
|
+
|
|
35
|
+
## 6.0.3
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [c4ba99d]
|
|
40
|
+
- @mdxui/auth@1.4.0
|
|
41
|
+
- @mdxui/cockpit@7.0.1
|
|
42
|
+
|
|
43
|
+
## 6.0.2
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies [7071d7c]
|
|
48
|
+
- mdxui@6.1.0
|
|
49
|
+
- @mdxui/auth@1.3.0
|
|
50
|
+
- @mdxui/beacon@7.0.0
|
|
51
|
+
- @mdxui/cockpit@7.0.0
|
|
52
|
+
|
|
3
53
|
## 6.0.1
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdxui/payload",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.7",
|
|
4
4
|
"description": "Payload CMS admin components and field UI for mdxui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"react": "^19.2.3",
|
|
24
24
|
"react-error-boundary": "^5.0.0",
|
|
25
25
|
"shiki": "^3.20.0",
|
|
26
|
-
"@mdxui/auth": "1.
|
|
27
|
-
"@mdxui/
|
|
28
|
-
"@mdxui/cockpit": "6.0.1",
|
|
26
|
+
"@mdxui/auth": "1.5.2",
|
|
27
|
+
"@mdxui/cockpit": "7.0.5",
|
|
29
28
|
"@mdxui/primitives": "6.0.0",
|
|
30
|
-
"mdxui": "6.
|
|
29
|
+
"mdxui": "6.1.0",
|
|
30
|
+
"@mdxui/neo": "0.1.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/react": "^19.2.7",
|
package/src/index.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* // MDX preview
|
|
23
23
|
* import { MDXPreview, MDXProvider } from '@mdxui/payload/mdx-preview'
|
|
24
24
|
*
|
|
25
|
-
* // Site preview (uses @mdxui/
|
|
25
|
+
* // Site preview (uses @mdxui/neo components)
|
|
26
26
|
* import { SitePreview, PayloadSiteField } from '@mdxui/payload/site-preview'
|
|
27
27
|
*
|
|
28
28
|
* // App preview (uses @mdxui/cockpit components)
|
|
@@ -83,7 +83,7 @@ function DefaultLoadingComponent() {
|
|
|
83
83
|
* @example
|
|
84
84
|
* ```tsx
|
|
85
85
|
* import { MDXPreview } from '@mdxui/payload/mdx-preview'
|
|
86
|
-
* import { Hero, Features } from '@mdxui/
|
|
86
|
+
* import { Hero, Features } from '@mdxui/neo'
|
|
87
87
|
*
|
|
88
88
|
* <MDXPreview
|
|
89
89
|
* source={mdxSource}
|
|
@@ -31,7 +31,7 @@ export interface MDXProviderProps {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```tsx
|
|
34
|
-
* import { Hero, Features } from '@mdxui/
|
|
34
|
+
* import { Hero, Features } from '@mdxui/neo'
|
|
35
35
|
*
|
|
36
36
|
* <MDXProvider components={{ Hero, Features }}>
|
|
37
37
|
* <MDXPreview source={mdxSource} />
|
package/src/mdx-preview/index.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @example
|
|
7
7
|
* ```tsx
|
|
8
8
|
* import { MDXProvider, MDXPreview } from '@mdxui/payload/mdx-preview'
|
|
9
|
-
* import { Hero, Features } from '@mdxui/
|
|
9
|
+
* import { Hero, Features } from '@mdxui/neo'
|
|
10
10
|
*
|
|
11
11
|
* // Wrap your app with MDXProvider
|
|
12
12
|
* <MDXProvider components={{ Hero, Features }}>
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { Hero, Features, Pricing, FAQ, Navbar, Footer } from '@mdxui/neo'
|
|
4
4
|
import { MDXLiveRenderer } from 'mdxui'
|
|
5
5
|
import { useMemo } from 'react'
|
|
6
6
|
|
|
7
|
-
const { Hero, Features, Pricing, FAQs, Header, Footer, LandingLayout, Directory } = BeaconComponents
|
|
8
|
-
|
|
9
7
|
/**
|
|
10
8
|
* Site components available for live preview
|
|
11
|
-
* These are the actual beacon implementations, not strictly typed to SiteComponents
|
|
12
|
-
* to allow for flexibility in MDX usage
|
|
13
9
|
*/
|
|
14
10
|
const siteComponents = {
|
|
15
11
|
Hero,
|
|
16
12
|
Features,
|
|
17
13
|
Pricing,
|
|
18
|
-
FAQ
|
|
19
|
-
FAQs,
|
|
20
|
-
Header,
|
|
14
|
+
FAQ,
|
|
15
|
+
FAQs: FAQ,
|
|
16
|
+
Header: Navbar,
|
|
17
|
+
Navbar,
|
|
21
18
|
Footer,
|
|
22
|
-
LandingLayout,
|
|
23
|
-
LandingPage: LandingLayout,
|
|
24
|
-
Directory,
|
|
25
19
|
} as const
|
|
26
20
|
|
|
27
21
|
export interface SitePreviewProps {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* SitePreview - Live preview for Site templates in Payload admin
|
|
3
3
|
*
|
|
4
4
|
* This module provides real-time MDX preview components for Site content,
|
|
5
|
-
* using the MDXLiveRenderer with SiteComponents from @mdxui/
|
|
5
|
+
* using the MDXLiveRenderer with SiteComponents from @mdxui/neo.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```tsx
|