@kilivi/payloadcms-theme-management 0.2.13 → 0.2.14
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.
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Theme Preview View - Server Component
|
|
3
3
|
* Custom admin view for live theme preview
|
|
4
4
|
*/
|
|
5
|
-
import type { AdminViewServerProps } from 'payload';
|
|
6
5
|
import React from 'react';
|
|
7
|
-
export default function ThemePreviewView(
|
|
6
|
+
export default function ThemePreviewView(): Promise<React.JSX.Element>;
|
|
8
7
|
//# sourceMappingURL=ThemePreviewView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemePreviewView.d.ts","sourceRoot":"","sources":["../../src/views/ThemePreviewView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemePreviewView.d.ts","sourceRoot":"","sources":["../../src/views/ThemePreviewView.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,wBAA8B,gBAAgB,+BAe7C"}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Theme Preview View - Server Component
|
|
3
|
+
* Custom admin view for live theme preview
|
|
4
|
+
*/ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { Gutter } from '@payloadcms/ui';
|
|
5
6
|
import React from 'react';
|
|
6
7
|
import { ThemeLivePreviewClient } from './ThemePreviewViewClient.js';
|
|
7
|
-
export default async function ThemePreviewView(
|
|
8
|
-
return /*#__PURE__*/ _jsx(
|
|
9
|
-
|
|
10
|
-
locale: initPageResult.locale,
|
|
11
|
-
params: params,
|
|
12
|
-
payload: initPageResult.req.payload,
|
|
13
|
-
permissions: initPageResult.permissions,
|
|
14
|
-
searchParams: searchParams,
|
|
15
|
-
user: initPageResult.req.user || undefined,
|
|
16
|
-
visibleEntities: initPageResult.visibleEntities,
|
|
8
|
+
export default async function ThemePreviewView() {
|
|
9
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
10
|
+
className: "payload-admin-view",
|
|
17
11
|
children: /*#__PURE__*/ _jsxs(Gutter, {
|
|
18
12
|
children: [
|
|
19
13
|
/*#__PURE__*/ _jsxs("div", {
|
|
@@ -25,11 +19,12 @@ export default async function ThemePreviewView({ initPageResult, params, searchP
|
|
|
25
19
|
style: {
|
|
26
20
|
marginBottom: '0.5rem'
|
|
27
21
|
},
|
|
28
|
-
children: "Theme Preview"
|
|
22
|
+
children: "🎨 Theme Preview"
|
|
29
23
|
}),
|
|
30
24
|
/*#__PURE__*/ _jsx("p", {
|
|
31
25
|
style: {
|
|
32
|
-
color: 'var(--theme-elevation-500)'
|
|
26
|
+
color: 'var(--theme-elevation-500)',
|
|
27
|
+
margin: 0
|
|
33
28
|
},
|
|
34
29
|
children: "Real-time preview of your theme configuration. Changes are reflected instantly as you edit theme settings."
|
|
35
30
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/views/ThemePreviewView.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../src/views/ThemePreviewView.tsx"],"sourcesContent":["/**\n * Theme Preview View - Server Component\n * Custom admin view for live theme preview\n */\n\nimport { Gutter } from '@payloadcms/ui'\nimport React from 'react'\nimport { ThemeLivePreviewClient } from './ThemePreviewViewClient.js'\n\nexport default async function ThemePreviewView() {\n return (\n <div className=\"payload-admin-view\">\n <Gutter>\n <div style={{ marginBottom: '2rem' }}>\n <h1 style={{ marginBottom: '0.5rem' }}>🎨 Theme Preview</h1>\n <p style={{ color: 'var(--theme-elevation-500)', margin: 0 }}>\n Real-time preview of your theme configuration. Changes are reflected instantly as you\n edit theme settings.\n </p>\n </div>\n <ThemeLivePreviewClient />\n </Gutter>\n </div>\n )\n}\n"],"names":["Gutter","React","ThemeLivePreviewClient","ThemePreviewView","div","className","style","marginBottom","h1","p","color","margin"],"mappings":"AAAA;;;CAGC;AAED,SAASA,MAAM,QAAQ,iBAAgB;AACvC,OAAOC,WAAW,QAAO;AACzB,SAASC,sBAAsB,QAAQ,8BAA6B;AAEpE,eAAe,eAAeC;IAC5B,qBACE,KAACC;QAAIC,WAAU;kBACb,cAAA,MAACL;;8BACC,MAACI;oBAAIE,OAAO;wBAAEC,cAAc;oBAAO;;sCACjC,KAACC;4BAAGF,OAAO;gCAAEC,cAAc;4BAAS;sCAAG;;sCACvC,KAACE;4BAAEH,OAAO;gCAAEI,OAAO;gCAA8BC,QAAQ;4BAAE;sCAAG;;;;8BAKhE,KAACT;;;;AAIT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kilivi/payloadcms-theme-management",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Theme configuration plugin for Payload CMS v3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,17 +50,16 @@
|
|
|
50
50
|
"theme",
|
|
51
51
|
"configuration"
|
|
52
52
|
],
|
|
53
|
-
"author": "",
|
|
54
|
-
"license": "
|
|
53
|
+
"author": "Kilián Vít",
|
|
54
|
+
"license": "MIT",
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"payload": "^3.0.0",
|
|
57
|
+
"@payloadcms/ui": "^3.0.0",
|
|
57
58
|
"react": "^18.3.0 || ^19.0.0-rc",
|
|
58
59
|
"react-dom": "^18.3.0 || ^19.0.0-rc"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@payloadcms/db-mongodb": "^3.0.0",
|
|
62
|
-
"@payloadcms/richtext-lexical": "^3.0.0",
|
|
63
|
-
"@payloadcms/richtext-slate": "^3.59.1",
|
|
64
63
|
"@playwright/test": "^1.56.0",
|
|
65
64
|
"@swc/cli": "^0.1.65",
|
|
66
65
|
"@swc/core": "^1.6.3",
|