diff --git a/lerna.json b/lerna.json index fad9c5b9..4782b275 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", "useWorkspaces": true, - "version": "2.0.0" + "version": "2.0.1" } diff --git a/netlify.toml b/netlify.toml index b5267c7c..ab8b97a7 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,7 @@ [[plugins]] package = "@netlify/plugin-nextjs" +[[redirects]] + from = "https://staticjscms.netlify.app/*" + to = "https://www.staticcms.org/:splat" + status = 301 diff --git a/packages/app/package.json b/packages/app/package.json index 15c01baa..81cfc07f 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -1,6 +1,6 @@ { "name": "@staticcms/app", - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "description": "Static CMS application.", "repository": "https://github.com/StaticJsCMS/static-cms", @@ -40,7 +40,7 @@ "@babel/eslint-parser": "7.21.3", "@babel/runtime": "7.21.0", "@emotion/babel-preset-css-prop": "11.10.0", - "@staticcms/core": "^2.0.0", + "@staticcms/core": "^2.0.1", "buffer": "6.0.3", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/packages/core/package.json b/packages/core/package.json index 537727ec..19cf1f19 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@staticcms/core", - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "description": "Static CMS core application.", "repository": "https://github.com/StaticJsCMS/static-cms", diff --git a/packages/core/src/lib/registry.ts b/packages/core/src/lib/registry.ts index dcb9d290..1541fba3 100644 --- a/packages/core/src/lib/registry.ts +++ b/packages/core/src/lib/registry.ts @@ -118,7 +118,10 @@ export function getPreviewStyles() { /** * Preview Templates */ -export function registerPreviewTemplate(name: string, component: TemplatePreviewComponent) { +export function registerPreviewTemplate( + name: string, + component: TemplatePreviewComponent, +) { registry.templates[name] = component as TemplatePreviewComponent; } @@ -129,7 +132,10 @@ export function getPreviewTemplate(name: string): TemplatePreviewComponent(name: string, component: TemplatePreviewCardComponent) { +export function registerPreviewCard( + name: string, + component: TemplatePreviewCardComponent, +) { registry.cards[name] = component as TemplatePreviewCardComponent; } @@ -140,10 +146,10 @@ export function getPreviewCard(name: string): TemplatePreviewCardComponent( +export function registerFieldPreview( collectionName: string, fieldName: string, - component: FieldPreviewComponent, + component: FieldPreviewComponent, ) { if (!(collectionName in registry.fieldPreviews)) { registry.fieldPreviews[collectionName] = {};