@contentful/create-studio-experiences 4.0.1-dev-20261009T1101-69142b9.0 → 4.0.2-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/create-studio-experiences",
3
- "version": "4.0.1-dev-20261009T1101-69142b9.0",
3
+ "version": "4.0.2-beta.0",
4
4
  "description": "A CLI tool to get up and running with Contentful Studio Experiences quickly",
5
5
  "homepage": "https://github.com/contentful/experience-builder/tree/next/packages/create-studio-experiences#readme",
6
6
  "repository": {
@@ -45,19 +45,19 @@
45
45
  "author": "Contentful GmbH",
46
46
  "license": "MIT",
47
47
  "devDependencies": {
48
- "@types/node": "^20",
48
+ "@types/node": "^20.19.43",
49
49
  "@types/yargs": "^17.0.35",
50
- "typescript": "^7.0.2"
50
+ "typescript": "^5.9.3"
51
51
  },
52
52
  "bin": {
53
53
  "create-studio-experiences": "./dist/index.js"
54
54
  },
55
55
  "dependencies": {
56
- "@clack/prompts": "^1.7.0",
56
+ "@clack/prompts": "^1.8.1",
57
57
  "cross-spawn": "^7.0.6",
58
58
  "kleur": "^4.1.5",
59
59
  "open": "^11.0.4",
60
- "yargs": "^18.1.0"
60
+ "yargs": "^18.2.0"
61
61
  },
62
- "gitHead": "f35fbe4d60d4d8227fe16ea9694b1e618e267336"
62
+ "gitHead": "f8202937500a855595c8279d3ef423c34f5d94d6"
63
63
  }
@@ -1,28 +0,0 @@
1
- import PageLayout from '@/components/PageLayout';
2
- import { getExperience } from '@/getExperience';
3
- import { detachExperienceStyles } from '@contentful/experiences-sdk-react';
4
- import '../../../design-tokens';
5
-
6
- type Page = {
7
- params: Promise<{ locale?: string; slug?: string; preview?: string }>;
8
- searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
9
- };
10
-
11
- export default async function ExperiencePage({ params, searchParams }: Page) {
12
- const { locale = 'en-US', slug = 'home-page' } = (await params) || {};
13
- const { isPreview, expEditorMode } = await searchParams;
14
- const preview = isPreview === 'true';
15
- const editorMode = expEditorMode === 'true';
16
- const { experience, error } = await getExperience(slug, locale, preview, editorMode);
17
-
18
- if (error) {
19
- return <>{error.message}</>;
20
- }
21
-
22
- // extract the styles from the experience
23
- const stylesheet = experience ? detachExperienceStyles(experience) : null;
24
-
25
- // experience currently needs to be stringified manually to be passed to the component
26
- const experienceJSON = experience ? JSON.stringify(experience) : null;
27
- return <PageLayout stylesheet={stylesheet} experienceJSON={experienceJSON} locale={locale} />;
28
- }