payload-canvas 0.6.5 → 0.6.6
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 +21 -21
- package/dist/admin/diff/layoutDiff.scss +181 -181
- package/dist/admin/editor/assistant/assistant.scss +944 -944
- package/dist/admin/editor/empty/empty.scss +92 -92
- package/dist/admin/editor/generate/generate.scss +276 -276
- package/dist/admin/editor/layout/layout.scss +240 -240
- package/dist/admin/editor/live/presence.scss +24 -24
- package/dist/admin/editor/locale/locale.scss +154 -154
- package/dist/admin/editor/menu/menu.scss +132 -132
- package/dist/admin/editor/motion/motion.scss +84 -84
- package/dist/admin/editor/tooltip/tooltip.scss +39 -39
- package/dist/admin/editor/topbar/screens/screens.scss +134 -134
- package/dist/admin/editor/topbar/settingsDrawer.scss +32 -32
- package/dist/admin/editor/ui/controls.scss +320 -320
- package/dist/classes/collection.js +2 -0
- package/dist/core/clearAgain.d.ts +6 -0
- package/dist/core/clearAgain.js +14 -0
- package/dist/theme/global.js +7 -2
- package/package.json +1 -1
package/dist/theme/global.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The theme global: colors, fonts, radius and spacing, with the plugin's color, font and slider
|
|
2
2
|
// fields. Server-only (the revalidation hook imports next/cache).
|
|
3
3
|
import { revalidatePath, revalidateTag } from 'next/cache';
|
|
4
|
+
import { clearAgainAfterResponse } from '../core/clearAgain.js';
|
|
4
5
|
import { deriveColors } from './colors.js';
|
|
5
6
|
import { DEFAULT_THEME_SLUG } from './config.js';
|
|
6
7
|
import { forgetThemeVariables } from './server.js';
|
|
@@ -177,8 +178,12 @@ function revalidateTheme(cacheTag) {
|
|
|
177
178
|
if (context?.disableRevalidate)
|
|
178
179
|
return doc;
|
|
179
180
|
try {
|
|
180
|
-
|
|
181
|
-
|
|
181
|
+
const clear = () => {
|
|
182
|
+
revalidateTag(cacheTag, { expire: 0 });
|
|
183
|
+
revalidatePath('/', 'layout');
|
|
184
|
+
};
|
|
185
|
+
clear();
|
|
186
|
+
clearAgainAfterResponse(clear);
|
|
182
187
|
}
|
|
183
188
|
catch (error) {
|
|
184
189
|
payload.logger.debug(`[websiteBuilder] Theme revalidation skipped: ${error instanceof Error ? error.message : String(error)}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload-canvas",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Payload Canvas: a visual drag-and-drop website builder for Payload CMS 3. Nested layout blocks, Tailwind styling, sections, templates, live AI editing over MCP, and the React renderer for your site.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"payload",
|