create-plasmic-app 0.0.137 → 0.0.138
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/cpa-out/nextjs-app-loader-js/plasmic-init.js +5 -4
- package/cpa-out/nextjs-app-loader-ts/plasmic-init.ts +5 -4
- package/cpa-out/nextjs-pages-loader-js/plasmic-init.js +6 -1
- package/cpa-out/nextjs-pages-loader-ts/plasmic-init.ts +6 -1
- package/dist/nextjs/templates/app-loader/plasmic-init.js +5 -4
- package/dist/nextjs/templates/pages-loader/plasmic-init.js +6 -1
- package/package.json +2 -2
- package/src/nextjs/templates/app-loader/plasmic-init.ts +5 -4
- package/src/nextjs/templates/pages-loader/plasmic-init.ts +6 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs/react-server-conditional";
|
|
2
|
-
import * as NextNavigation from "next/navigation";
|
|
3
2
|
|
|
4
3
|
export const PLASMIC = initPlasmicLoader({
|
|
5
4
|
projects: [
|
|
@@ -8,13 +7,15 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
8
7
|
token: "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
9
8
|
},
|
|
10
9
|
],
|
|
10
|
+
platformOptions: {
|
|
11
|
+
nextjs: {
|
|
12
|
+
appDir: true,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
11
15
|
|
|
12
16
|
// By default Plasmic will use the last published version of your project.
|
|
13
17
|
// For development, you can set preview to true, which will use the unpublished
|
|
14
18
|
// project, allowing you to see your designs without publishing. Please
|
|
15
19
|
// only use this for development, as this is significantly slower.
|
|
16
20
|
preview: false,
|
|
17
|
-
|
|
18
|
-
// Needed for Next.js app router support.
|
|
19
|
-
nextNavigation: NextNavigation,
|
|
20
21
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs/react-server-conditional";
|
|
2
|
-
import * as NextNavigation from "next/navigation";
|
|
3
2
|
|
|
4
3
|
export const PLASMIC = initPlasmicLoader({
|
|
5
4
|
projects: [
|
|
@@ -8,13 +7,15 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
8
7
|
token: "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
9
8
|
},
|
|
10
9
|
],
|
|
10
|
+
platformOptions: {
|
|
11
|
+
nextjs: {
|
|
12
|
+
appDir: true,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
11
15
|
|
|
12
16
|
// By default Plasmic will use the last published version of your project.
|
|
13
17
|
// For development, you can set preview to true, which will use the unpublished
|
|
14
18
|
// project, allowing you to see your designs without publishing. Please
|
|
15
19
|
// only use this for development, as this is significantly slower.
|
|
16
20
|
preview: false,
|
|
17
|
-
|
|
18
|
-
// Needed for Next.js app router support.
|
|
19
|
-
nextNavigation: NextNavigation,
|
|
20
21
|
});
|
|
@@ -7,7 +7,12 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
7
7
|
token: "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
8
8
|
},
|
|
9
9
|
],
|
|
10
|
-
|
|
10
|
+
platformOptions: {
|
|
11
|
+
nextjs: {
|
|
12
|
+
appDir: false,
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
|
|
11
16
|
// By default Plasmic will use the last published version of your project.
|
|
12
17
|
// For development, you can set preview to true, which will use the unpublished
|
|
13
18
|
// project, allowing you to see your designs without publishing. Please
|
|
@@ -7,7 +7,12 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
7
7
|
token: "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
8
8
|
},
|
|
9
9
|
],
|
|
10
|
-
|
|
10
|
+
platformOptions: {
|
|
11
|
+
nextjs: {
|
|
12
|
+
appDir: false,
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
|
|
11
16
|
// By default Plasmic will use the last published version of your project.
|
|
12
17
|
// For development, you can set preview to true, which will use the unpublished
|
|
13
18
|
// project, allowing you to see your designs without publishing. Please
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.makePlasmicInit_app_loader = void 0;
|
|
4
4
|
function makePlasmicInit_app_loader(projectId, projectApiToken) {
|
|
5
5
|
return `import { initPlasmicLoader } from "@plasmicapp/loader-nextjs/react-server-conditional";
|
|
6
|
-
import * as NextNavigation from "next/navigation";
|
|
7
6
|
|
|
8
7
|
export const PLASMIC = initPlasmicLoader({
|
|
9
8
|
projects: [
|
|
@@ -12,15 +11,17 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
12
11
|
token: "${projectApiToken}",
|
|
13
12
|
},
|
|
14
13
|
],
|
|
14
|
+
platformOptions: {
|
|
15
|
+
nextjs: {
|
|
16
|
+
appDir: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
15
19
|
|
|
16
20
|
// By default Plasmic will use the last published version of your project.
|
|
17
21
|
// For development, you can set preview to true, which will use the unpublished
|
|
18
22
|
// project, allowing you to see your designs without publishing. Please
|
|
19
23
|
// only use this for development, as this is significantly slower.
|
|
20
24
|
preview: false,
|
|
21
|
-
|
|
22
|
-
// Needed for Next.js app router support.
|
|
23
|
-
nextNavigation: NextNavigation,
|
|
24
25
|
});
|
|
25
26
|
`;
|
|
26
27
|
}
|
|
@@ -11,7 +11,12 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
11
11
|
token: "${projectApiToken}",
|
|
12
12
|
},
|
|
13
13
|
],
|
|
14
|
-
|
|
14
|
+
platformOptions: {
|
|
15
|
+
nextjs: {
|
|
16
|
+
appDir: false,
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
|
|
15
20
|
// By default Plasmic will use the last published version of your project.
|
|
16
21
|
// For development, you can set preview to true, which will use the unpublished
|
|
17
22
|
// project, allowing you to see your designs without publishing. Please
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.138",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"validate-npm-package-name": "^3.0.0",
|
|
48
48
|
"yargs": "^16.2.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "cf4b7bfc318b5360730e4e080925370e37870858"
|
|
51
51
|
}
|
|
@@ -3,7 +3,6 @@ export function makePlasmicInit_app_loader(
|
|
|
3
3
|
projectApiToken: string
|
|
4
4
|
): string {
|
|
5
5
|
return `import { initPlasmicLoader } from "@plasmicapp/loader-nextjs/react-server-conditional";
|
|
6
|
-
import * as NextNavigation from "next/navigation";
|
|
7
6
|
|
|
8
7
|
export const PLASMIC = initPlasmicLoader({
|
|
9
8
|
projects: [
|
|
@@ -12,15 +11,17 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
12
11
|
token: "${projectApiToken}",
|
|
13
12
|
},
|
|
14
13
|
],
|
|
14
|
+
platformOptions: {
|
|
15
|
+
nextjs: {
|
|
16
|
+
appDir: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
15
19
|
|
|
16
20
|
// By default Plasmic will use the last published version of your project.
|
|
17
21
|
// For development, you can set preview to true, which will use the unpublished
|
|
18
22
|
// project, allowing you to see your designs without publishing. Please
|
|
19
23
|
// only use this for development, as this is significantly slower.
|
|
20
24
|
preview: false,
|
|
21
|
-
|
|
22
|
-
// Needed for Next.js app router support.
|
|
23
|
-
nextNavigation: NextNavigation,
|
|
24
25
|
});
|
|
25
26
|
`;
|
|
26
27
|
}
|
|
@@ -11,7 +11,12 @@ export const PLASMIC = initPlasmicLoader({
|
|
|
11
11
|
token: "${projectApiToken}",
|
|
12
12
|
},
|
|
13
13
|
],
|
|
14
|
-
|
|
14
|
+
platformOptions: {
|
|
15
|
+
nextjs: {
|
|
16
|
+
appDir: false,
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
|
|
15
20
|
// By default Plasmic will use the last published version of your project.
|
|
16
21
|
// For development, you can set preview to true, which will use the unpublished
|
|
17
22
|
// project, allowing you to see your designs without publishing. Please
|