Patch Changes
-
#484
48630ef
Thanks @studiocms-no-reply! - Translation Updated (PR: #484) -
#483
3612916
Thanks @Adammatthiesen! - Fix Missing CSS on DB start pages for the code blocks -
#489
77f89d6
Thanks @Adammatthiesen! - Update dependencies -
#490
5780894
Thanks @studiocms-no-reply! - Translation Updated (PR: #490) -
#476
a430661
Thanks @Adammatthiesen! - fix(auth): Re-enable the verification for usernames and passwords to ensure data safety -
#474
4fc5d6b
Thanks @Adammatthiesen! - Refactor internal integration logic to cleanup old logic and simplify main integration -
#480
3f8b220
Thanks @Adammatthiesen! - NEW: HTML pageType available for pages, build HTML pages with the new SunEditor HTML builder. -
#488
501d11c
Thanks @studiocms-no-reply! - Translation Updated (PR: #488) -
#485
ab1714c
Thanks @Adammatthiesen! - Update Diff page- Update pageMetaData section to use disabled inputs to display previous/current data
- Implement diff endpoint for reverting changes
- Add interactive buttons for reverting changes
- Add helpful information to the top section to display info about the diff
-
#477
0901215
Thanks @Adammatthiesen! - Remove oldtestingAndDemoMode
developer option and add newdemoMode
option with a simple interfaceDemo mode can either be
false
or an object with the following type{ username: string; password: string; }
. This will allow you to create demo user credentials that are public.Please note, this does not prevent changes and resetting the DB is up to the developer to configure on their own. (a github action that clears the tables and adds the desired values back on a schedule is one idea for this.)
-
#478
df24828
Thanks @Adammatthiesen! - Refactor rendering system to rely on plugin PageTypes instead of the old built-in system, this will allow new page types to easily bring their own renderer that can get called from the main renderer component.Breaking Changes
- Removed MDX, and MarkDoc from built-in renderer. These will be replaced by plugins.
- Rendering system is now directly tied into the plugin PageTypes defined within plugins. Instead of passing just the content to the renderer, you now must pass the entire PageData from the SDK.
- New Rendering Component is now able to auto adapt to the pageType's provided renderer. (This means you can use the provided
<StudioCMSRenderer />
component to render any pageType that has been configured for StudioCMS through plugins. or use the data directly and render it yourself.)
OLD Method (
[...slug].astro
)--- import { StudioCMSRenderer } from 'studiocms:renderer'; import studioCMS_SDK from 'studiocms:sdk'; import Layout from '../layouts/Layout.astro'; let { slug } = Astro.params; if (!slug) { slug = 'index'; } const page = await studioCMS_SDK.GET.databaseEntry.pages.bySlug(slug); if (!page) { return new Response(null, { status: 404 }); } const { title, description, heroImage, defaultContent } = page; const content = defaultContent.content || ''; --- <Layout title={title} description={description} heroImage={heroImage}> <main> <StudioCMSRenderer content={content} /> </main> </Layout>
New Method (
[...slug].astro
)--- import { StudioCMSRenderer } from 'studiocms:renderer'; import studioCMS_SDK from 'studiocms:sdk'; import Layout from '../layouts/Layout.astro'; let { slug } = Astro.params; if (!slug) { slug = 'index'; } const page = await studioCMS_SDK.GET.databaseEntry.pages.bySlug(slug); if (!page) { return new Response(null, { status: 404 }); } const { title, description, heroImage } = page; --- <Layout title={title} description={description} heroImage={heroImage}> <main> <StudioCMSRenderer data={page} /> </main> </Layout>
-
#481
dae7795
Thanks @studiocms-no-reply! - Translation Updated (PR: #481) -
#473
ddc7eb8
Thanks @Adammatthiesen! - Fix ambient types, and remove now unused stub files and type injectionConsolidate all virtual types into a single file,
- Previous exports such as
studiocms/v/core.d.ts
are now all understudiocms/v/types
- Previous exports such as
-
#479
4880ce8
Thanks @Adammatthiesen! - Remove unused dependencies and references -
#471
9512aac
Thanks @Adammatthiesen! - Update Arctic to v3.5.0 and implement new required code verifier for auth0 and discord -
#486
ddee17d
Thanks @studiocms-no-reply! - Translation Updated (PR: #486) -
#473
ddc7eb8
Thanks @Adammatthiesen! - Update READMEs