create-plasmic-app 0.0.143 → 0.0.144

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.
Files changed (78) hide show
  1. package/cpa-out/gatsby-codegen-js/package.json +2 -2
  2. package/cpa-out/gatsby-codegen-js/plasmic.json +2 -2
  3. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +1 -0
  4. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +1 -0
  5. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +7 -2
  6. package/cpa-out/gatsby-codegen-ts/package.json +2 -2
  7. package/cpa-out/gatsby-codegen-ts/plasmic.json +2 -2
  8. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +1 -0
  9. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +1 -0
  10. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +7 -2
  11. package/cpa-out/gatsby-loader-js/package.json +1 -1
  12. package/cpa-out/gatsby-loader-ts/package.json +1 -1
  13. package/cpa-out/nextjs-app-codegen-js/app/dynamic/[slug]/page.jsx +11 -3
  14. package/cpa-out/nextjs-app-codegen-js/app/layout.jsx +3 -4
  15. package/cpa-out/nextjs-app-codegen-js/app/page.jsx +4 -3
  16. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +1 -0
  17. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +1 -0
  18. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.jsx +1 -1
  19. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +7 -2
  20. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepageServer.jsx +1 -1
  21. package/cpa-out/nextjs-app-codegen-js/package.json +2 -2
  22. package/cpa-out/nextjs-app-codegen-js/plasmic-init-client.jsx +0 -1
  23. package/cpa-out/nextjs-app-codegen-js/plasmic.json +2 -2
  24. package/cpa-out/nextjs-app-codegen-ts/app/dynamic/[slug]/page.tsx +12 -4
  25. package/cpa-out/nextjs-app-codegen-ts/app/layout.tsx +3 -4
  26. package/cpa-out/nextjs-app-codegen-ts/app/page.tsx +4 -4
  27. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +1 -0
  28. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +1 -0
  29. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.tsx +1 -1
  30. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +7 -2
  31. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepageServer.tsx +1 -1
  32. package/cpa-out/nextjs-app-codegen-ts/package.json +2 -2
  33. package/cpa-out/nextjs-app-codegen-ts/plasmic-init-client.tsx +1 -1
  34. package/cpa-out/nextjs-app-codegen-ts/plasmic.json +2 -2
  35. package/cpa-out/nextjs-app-loader-js/package.json +1 -1
  36. package/cpa-out/nextjs-app-loader-js/plasmic-init.js +5 -0
  37. package/cpa-out/nextjs-app-loader-ts/package.json +1 -1
  38. package/cpa-out/nextjs-app-loader-ts/plasmic-init.ts +5 -0
  39. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +1 -0
  40. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +1 -0
  41. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +7 -2
  42. package/cpa-out/nextjs-pages-codegen-js/package.json +2 -2
  43. package/cpa-out/nextjs-pages-codegen-js/plasmic.json +2 -2
  44. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +1 -0
  45. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +1 -0
  46. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +7 -2
  47. package/cpa-out/nextjs-pages-codegen-ts/package.json +2 -2
  48. package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +2 -2
  49. package/cpa-out/nextjs-pages-loader-js/package.json +1 -1
  50. package/cpa-out/nextjs-pages-loader-ts/package.json +1 -1
  51. package/cpa-out/react-codegen-js/package.json +2 -2
  52. package/cpa-out/react-codegen-js/plasmic.json +2 -2
  53. package/cpa-out/react-codegen-ts/package.json +2 -2
  54. package/cpa-out/react-codegen-ts/plasmic.json +2 -2
  55. package/cpa-out/tanstack-codegen-ts/package.json +7 -8
  56. package/cpa-out/tanstack-codegen-ts/plasmic.json +2 -2
  57. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +1 -5
  58. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +1 -2
  59. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +7 -5
  60. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +2 -0
  61. package/cpa-out/tanstack-codegen-ts/src/router.tsx +0 -1
  62. package/cpa-out/tanstack-codegen-ts/tsconfig.json +0 -1
  63. package/cpa-out/tanstack-codegen-ts/vite.config.ts +1 -2
  64. package/dist/nextjs/nextjs.js +2 -0
  65. package/dist/nextjs/templates/app-codegen/plasmic-init-client.js +1 -2
  66. package/dist/tanstack/tanstack.js +11 -1
  67. package/package.json +2 -2
  68. package/src/nextjs/nextjs.ts +3 -0
  69. package/src/nextjs/templates/app-codegen/plasmic-init-client.ts +4 -2
  70. package/src/tanstack/tanstack.ts +11 -1
  71. package/cpa-out/nextjs-app-codegen-js/app/layout.js +0 -28
  72. package/cpa-out/tanstack-codegen-ts/src/components/Footer.tsx +0 -44
  73. package/cpa-out/tanstack-codegen-ts/src/components/Header.tsx +0 -78
  74. package/cpa-out/tanstack-codegen-ts/src/components/ThemeToggle.tsx +0 -81
  75. /package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/{PlasmicIcon__Checksvg.jsx → PlasmicIcon__CheckSvg.jsx} +0 -0
  76. /package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/{PlasmicIcon__Checksvg.tsx → PlasmicIcon__CheckSvg.tsx} +0 -0
  77. /package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/{PlasmicIcon__Checksvg.jsx → PlasmicIcon__CheckSvg.jsx} +0 -0
  78. /package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/{PlasmicIcon__Checksvg.tsx → PlasmicIcon__CheckSvg.tsx} +0 -0
@@ -14,8 +14,8 @@
14
14
  "clean": "gatsby clean"
15
15
  },
16
16
  "dependencies": {
17
- "@plasmicapp/cli": "^0.1.359",
18
- "@plasmicapp/react-web": "^0.2.425",
17
+ "@plasmicapp/cli": "^0.1.361",
18
+ "@plasmicapp/react-web": "^1.0.6",
19
19
  "gatsby": "^5.14.6",
20
20
  "gatsby-plugin-react-helmet": "^6.16.0",
21
21
  "react": "^18.2.0",
@@ -135,6 +135,6 @@
135
135
  "gatsbyConfig": {
136
136
  "pagesDir": "../pages"
137
137
  },
138
- "cliVersion": "0.1.359",
139
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.359/dist/plasmic.schema.json"
138
+ "cliVersion": "0.1.361",
139
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.361/dist/plasmic.schema.json"
140
140
  }
@@ -137,6 +137,7 @@ function PlasmicButton__RenderFunc(props) {
137
137
  className={classNames(
138
138
  projectcss.all,
139
139
  projectcss.button,
140
+ projectcss.button__47tFX,
140
141
  projectcss.root_reset,
141
142
  projectcss.plasmic_default_styles,
142
143
  projectcss.plasmic_mixins,
@@ -111,6 +111,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
111
111
  className={classNames(
112
112
  projectcss.all,
113
113
  projectcss.h1,
114
+ projectcss.h1__47tFX,
114
115
  projectcss.__wab_text,
115
116
  sty.h1
116
117
  )}
@@ -114,6 +114,7 @@ function PlasmicHomepage__RenderFunc(props) {
114
114
  className={classNames(
115
115
  projectcss.all,
116
116
  projectcss.h1,
117
+ projectcss.h1__47tFX,
117
118
  projectcss.__wab_text,
118
119
  sty.h1
119
120
  )}
@@ -137,7 +138,9 @@ function PlasmicHomepage__RenderFunc(props) {
137
138
  }
138
139
  </React.Fragment>
139
140
  <span
140
- className={"plasmic_default__all plasmic_default__span"}
141
+ className={
142
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
143
+ }
141
144
  style={{ fontWeight: 700 }}
142
145
  >
143
146
  {"Therefore, please avoid changing this project."}
@@ -151,7 +154,9 @@ function PlasmicHomepage__RenderFunc(props) {
151
154
  }
152
155
  </React.Fragment>
153
156
  <span
154
- className={"plasmic_default__all plasmic_default__span"}
157
+ className={
158
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
159
+ }
155
160
  style={{ fontWeight: 700 }}
156
161
  >
157
162
  {"Code"}
@@ -15,8 +15,8 @@
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "@plasmicapp/cli": "^0.1.359",
19
- "@plasmicapp/react-web": "^0.2.425",
18
+ "@plasmicapp/cli": "^0.1.361",
19
+ "@plasmicapp/react-web": "^1.0.6",
20
20
  "gatsby": "^5.14.6",
21
21
  "gatsby-plugin-react-helmet": "^6.16.0",
22
22
  "react": "^18.2.0",
@@ -135,6 +135,6 @@
135
135
  "gatsbyConfig": {
136
136
  "pagesDir": "../pages"
137
137
  },
138
- "cliVersion": "0.1.359",
139
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.359/dist/plasmic.schema.json"
138
+ "cliVersion": "0.1.361",
139
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.361/dist/plasmic.schema.json"
140
140
  }
@@ -275,6 +275,7 @@ function PlasmicButton__RenderFunc(props: {
275
275
  className={classNames(
276
276
  projectcss.all,
277
277
  projectcss.button,
278
+ projectcss.button__47tFX,
278
279
  projectcss.root_reset,
279
280
  projectcss.plasmic_default_styles,
280
281
  projectcss.plasmic_mixins,
@@ -193,6 +193,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
193
193
  className={classNames(
194
194
  projectcss.all,
195
195
  projectcss.h1,
196
+ projectcss.h1__47tFX,
196
197
  projectcss.__wab_text,
197
198
  sty.h1
198
199
  )}
@@ -197,6 +197,7 @@ function PlasmicHomepage__RenderFunc(props: {
197
197
  className={classNames(
198
198
  projectcss.all,
199
199
  projectcss.h1,
200
+ projectcss.h1__47tFX,
200
201
  projectcss.__wab_text,
201
202
  sty.h1
202
203
  )}
@@ -220,7 +221,9 @@ function PlasmicHomepage__RenderFunc(props: {
220
221
  }
221
222
  </React.Fragment>
222
223
  <span
223
- className={"plasmic_default__all plasmic_default__span"}
224
+ className={
225
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
226
+ }
224
227
  style={{ fontWeight: 700 }}
225
228
  >
226
229
  {"Therefore, please avoid changing this project."}
@@ -234,7 +237,9 @@ function PlasmicHomepage__RenderFunc(props: {
234
237
  }
235
238
  </React.Fragment>
236
239
  <span
237
- className={"plasmic_default__all plasmic_default__span"}
240
+ className={
241
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
242
+ }
238
243
  style={{ fontWeight: 700 }}
239
244
  >
240
245
  {"Code"}
@@ -14,7 +14,7 @@
14
14
  "clean": "gatsby clean"
15
15
  },
16
16
  "dependencies": {
17
- "@plasmicapp/loader-gatsby": "^1.0.418",
17
+ "@plasmicapp/loader-gatsby": "^2.0.3",
18
18
  "gatsby": "^5.14.6",
19
19
  "gatsby-plugin-react-helmet": "^6.16.0",
20
20
  "react": "^18.2.0",
@@ -15,7 +15,7 @@
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "@plasmicapp/loader-gatsby": "^1.0.418",
18
+ "@plasmicapp/loader-gatsby": "^2.0.3",
19
19
  "gatsby": "^5.14.6",
20
20
  "gatsby-plugin-react-helmet": "^6.16.0",
21
21
  "react": "^18.2.0",
@@ -7,6 +7,13 @@ import {
7
7
  makeAppRouterPageCtx,
8
8
  generateDynamicMetadata
9
9
  } from "../../../components/plasmic/create_plasmic_app/PlasmicDynamicPageServer";
10
+ // Uncomment and populate to statically pre-render this route at build time.
11
+ // Each entry should be an object whose keys match the dynamic segments in the route path.
12
+ // See https://nextjs.org/docs/app/api-reference/functions/generate-static-params
13
+ //
14
+ // export async function generateStaticParams() {
15
+ // return [];
16
+ // }
10
17
 
11
18
  export async function generateMetadata({ params, searchParams }, parent) {
12
19
  const ctx = await makeAppRouterPageCtx({ params, searchParams });
@@ -31,11 +38,12 @@ async function DynamicPage({ params, searchParams }) {
31
38
  // variant context providers. These wrappers may be moved to
32
39
  // Next.js Custom App component
33
40
  // (https://nextjs.org/docs/advanced-features/custom-app).
41
+ const ctx = await makeAppRouterPageCtx({ params, searchParams });
34
42
  return (
35
43
  <PageParamsProvider__
36
- route="/dynamic/[slug]"
37
- params={await params}
38
- query={await searchParams}
44
+ route={ctx.pageRoute}
45
+ params={ctx.params}
46
+ query={ctx.query}
39
47
  >
40
48
  <PlasmicDynamicPageServer />
41
49
  </PageParamsProvider__>
@@ -1,6 +1,5 @@
1
1
  import '@/app/globals.css'
2
- import { PlasmicRootProvider } from "@plasmicapp/react-web";
3
- import Link from "next/link";
2
+ import { ClientPlasmicRootProvider } from "@/plasmic-init-client";
4
3
 
5
4
  export default function RootLayout({
6
5
  children,
@@ -8,9 +7,9 @@ export default function RootLayout({
8
7
  return (
9
8
  <html lang="en">
10
9
  <body>
11
- <PlasmicRootProvider Link={Link}>
10
+ <ClientPlasmicRootProvider>
12
11
  {children}
13
- </PlasmicRootProvider>
12
+ </ClientPlasmicRootProvider>
14
13
  </body>
15
14
  </html>
16
15
  );
@@ -31,11 +31,12 @@ async function Homepage({ params, searchParams }) {
31
31
  // variant context providers. These wrappers may be moved to
32
32
  // Next.js Custom App component
33
33
  // (https://nextjs.org/docs/advanced-features/custom-app).
34
+ const ctx = await makeAppRouterPageCtx({ params, searchParams });
34
35
  return (
35
36
  <PageParamsProvider__
36
- route="/"
37
- params={await params}
38
- query={await searchParams}
37
+ route={ctx.pageRoute}
38
+ params={ctx.params}
39
+ query={ctx.query}
39
40
  >
40
41
  <PlasmicHomepageServer />
41
42
  </PageParamsProvider__>
@@ -147,6 +147,7 @@ function PlasmicButton__RenderFunc(props) {
147
147
  className={classNames(
148
148
  projectcss.all,
149
149
  projectcss.button,
150
+ projectcss.button__47tFX,
150
151
  projectcss.root_reset,
151
152
  projectcss.plasmic_default_styles,
152
153
  projectcss.plasmic_mixins,
@@ -116,6 +116,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
116
116
  className={classNames(
117
117
  projectcss.all,
118
118
  projectcss.h1,
119
+ projectcss.h1__47tFX,
119
120
  projectcss.__wab_text,
120
121
  sty.h1
121
122
  )}
@@ -46,7 +46,7 @@ export async function makeAppRouterPageCtx({ params, searchParams }) {
46
46
  pageRoute,
47
47
  pagePath,
48
48
  params: pageParams,
49
- query: (await searchParams) ?? {}
49
+ query: {}
50
50
  };
51
51
  return ctx;
52
52
  }
@@ -119,6 +119,7 @@ function PlasmicHomepage__RenderFunc(props) {
119
119
  className={classNames(
120
120
  projectcss.all,
121
121
  projectcss.h1,
122
+ projectcss.h1__47tFX,
122
123
  projectcss.__wab_text,
123
124
  sty.h1
124
125
  )}
@@ -142,7 +143,9 @@ function PlasmicHomepage__RenderFunc(props) {
142
143
  }
143
144
  </React.Fragment>
144
145
  <span
145
- className={"plasmic_default__all plasmic_default__span"}
146
+ className={
147
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
148
+ }
146
149
  style={{ fontWeight: 700 }}
147
150
  >
148
151
  {"Therefore, please avoid changing this project."}
@@ -156,7 +159,9 @@ function PlasmicHomepage__RenderFunc(props) {
156
159
  }
157
160
  </React.Fragment>
158
161
  <span
159
- className={"plasmic_default__all plasmic_default__span"}
162
+ className={
163
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
164
+ }
160
165
  style={{ fontWeight: 700 }}
161
166
  >
162
167
  {"Code"}
@@ -46,7 +46,7 @@ export async function makeAppRouterPageCtx({ params, searchParams }) {
46
46
  pageRoute,
47
47
  pagePath,
48
48
  params: pageParams,
49
- query: (await searchParams) ?? {}
49
+ query: {}
50
50
  };
51
51
  return ctx;
52
52
  }
@@ -9,8 +9,8 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.359",
13
- "@plasmicapp/react-web": "^0.2.425",
12
+ "@plasmicapp/cli": "^0.1.361",
13
+ "@plasmicapp/react-web": "^1.0.6",
14
14
  "next": "14.2.35",
15
15
  "react": "^18",
16
16
  "react-dom": "^18"
@@ -1,6 +1,5 @@
1
1
  "use client";
2
2
 
3
- import * as React from "react";
4
3
  import { PlasmicRootProvider } from "@plasmicapp/react-web";
5
4
  import Link from "next/link";
6
5
 
@@ -143,6 +143,6 @@
143
143
  "nextjsConfig": {
144
144
  "pagesDir": "../app"
145
145
  },
146
- "cliVersion": "0.1.359",
147
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.359/dist/plasmic.schema.json"
146
+ "cliVersion": "0.1.361",
147
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.361/dist/plasmic.schema.json"
148
148
  }
@@ -9,9 +9,16 @@ import {
9
9
  generateDynamicMetadata,
10
10
  DynamicPageServerSkeletonProps
11
11
  } from "../../../components/plasmic/create_plasmic_app/PlasmicDynamicPageServer";
12
-
13
12
  import type { Metadata, ResolvingMetadata } from "next";
14
13
 
14
+ // Uncomment and populate to statically pre-render this route at build time.
15
+ // Each entry should be an object whose keys match the dynamic segments in the route path.
16
+ // See https://nextjs.org/docs/app/api-reference/functions/generate-static-params
17
+ //
18
+ // export async function generateStaticParams() {
19
+ // return [];
20
+ // }
21
+
15
22
  export async function generateMetadata(
16
23
  { params, searchParams }: DynamicPageServerSkeletonProps,
17
24
  parent: ResolvingMetadata
@@ -43,11 +50,12 @@ async function DynamicPage({
43
50
  // Next.js Custom App component
44
51
  // (https://nextjs.org/docs/advanced-features/custom-app).
45
52
 
53
+ const ctx = await makeAppRouterPageCtx({ params, searchParams });
46
54
  return (
47
55
  <PageParamsProvider__
48
- route="/dynamic/[slug]"
49
- params={await params}
50
- query={await searchParams}
56
+ route={ctx.pageRoute}
57
+ params={ctx.params}
58
+ query={ctx.query}
51
59
  >
52
60
  <PlasmicDynamicPageServer />
53
61
  </PageParamsProvider__>
@@ -1,6 +1,5 @@
1
1
  import '@/app/globals.css'
2
- import { PlasmicRootProvider } from "@plasmicapp/react-web";
3
- import Link from "next/link";
2
+ import { ClientPlasmicRootProvider } from "@/plasmic-init-client";
4
3
 
5
4
  export default function RootLayout({
6
5
  children,
@@ -10,9 +9,9 @@ export default function RootLayout({
10
9
  return (
11
10
  <html lang="en">
12
11
  <body>
13
- <PlasmicRootProvider Link={Link}>
12
+ <ClientPlasmicRootProvider>
14
13
  {children}
15
- </PlasmicRootProvider>
14
+ </ClientPlasmicRootProvider>
16
15
  </body>
17
16
  </html>
18
17
  );
@@ -9,7 +9,6 @@ import {
9
9
  generateDynamicMetadata,
10
10
  HomepageServerSkeletonProps
11
11
  } from "../components/plasmic/create_plasmic_app/PlasmicHomepageServer";
12
-
13
12
  import type { Metadata, ResolvingMetadata } from "next";
14
13
 
15
14
  export async function generateMetadata(
@@ -40,11 +39,12 @@ async function Homepage({ params, searchParams }: HomepageServerSkeletonProps) {
40
39
  // Next.js Custom App component
41
40
  // (https://nextjs.org/docs/advanced-features/custom-app).
42
41
 
42
+ const ctx = await makeAppRouterPageCtx({ params, searchParams });
43
43
  return (
44
44
  <PageParamsProvider__
45
- route="/"
46
- params={await params}
47
- query={await searchParams}
45
+ route={ctx.pageRoute}
46
+ params={ctx.params}
47
+ query={ctx.query}
48
48
  >
49
49
  <PlasmicHomepageServer />
50
50
  </PageParamsProvider__>
@@ -284,6 +284,7 @@ function PlasmicButton__RenderFunc(props: {
284
284
  className={classNames(
285
285
  projectcss.all,
286
286
  projectcss.button,
287
+ projectcss.button__47tFX,
287
288
  projectcss.root_reset,
288
289
  projectcss.plasmic_default_styles,
289
290
  projectcss.plasmic_mixins,
@@ -189,6 +189,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
189
189
  className={classNames(
190
190
  projectcss.all,
191
191
  projectcss.h1,
192
+ projectcss.h1__47tFX,
192
193
  projectcss.__wab_text,
193
194
  sty.h1
194
195
  )}
@@ -69,7 +69,7 @@ export async function makeAppRouterPageCtx({
69
69
  pageRoute,
70
70
  pagePath,
71
71
  params: pageParams,
72
- query: (await searchParams) ?? {}
72
+ query: {}
73
73
  };
74
74
  return ctx;
75
75
  }
@@ -193,6 +193,7 @@ function PlasmicHomepage__RenderFunc(props: {
193
193
  className={classNames(
194
194
  projectcss.all,
195
195
  projectcss.h1,
196
+ projectcss.h1__47tFX,
196
197
  projectcss.__wab_text,
197
198
  sty.h1
198
199
  )}
@@ -216,7 +217,9 @@ function PlasmicHomepage__RenderFunc(props: {
216
217
  }
217
218
  </React.Fragment>
218
219
  <span
219
- className={"plasmic_default__all plasmic_default__span"}
220
+ className={
221
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
222
+ }
220
223
  style={{ fontWeight: 700 }}
221
224
  >
222
225
  {"Therefore, please avoid changing this project."}
@@ -230,7 +233,9 @@ function PlasmicHomepage__RenderFunc(props: {
230
233
  }
231
234
  </React.Fragment>
232
235
  <span
233
- className={"plasmic_default__all plasmic_default__span"}
236
+ className={
237
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
238
+ }
234
239
  style={{ fontWeight: 700 }}
235
240
  >
236
241
  {"Code"}
@@ -69,7 +69,7 @@ export async function makeAppRouterPageCtx({
69
69
  pageRoute,
70
70
  pagePath,
71
71
  params: pageParams,
72
- query: (await searchParams) ?? {}
72
+ query: {}
73
73
  };
74
74
  return ctx;
75
75
  }
@@ -9,8 +9,8 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.359",
13
- "@plasmicapp/react-web": "^0.2.425",
12
+ "@plasmicapp/cli": "^0.1.361",
13
+ "@plasmicapp/react-web": "^1.0.6",
14
14
  "next": "14.2.35",
15
15
  "react": "^18",
16
16
  "react-dom": "^18"
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import * as React from "react";
3
+ import type * as React from "react";
4
4
  import { PlasmicRootProvider } from "@plasmicapp/react-web";
5
5
  import Link from "next/link";
6
6
 
@@ -143,6 +143,6 @@
143
143
  "nextjsConfig": {
144
144
  "pagesDir": "../app"
145
145
  },
146
- "cliVersion": "0.1.359",
147
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.359/dist/plasmic.schema.json"
146
+ "cliVersion": "0.1.361",
147
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.361/dist/plasmic.schema.json"
148
148
  }
@@ -9,7 +9,7 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.456",
12
+ "@plasmicapp/loader-nextjs": "^2.0.3",
13
13
  "next": "14.2.35",
14
14
  "react": "^18",
15
15
  "react-dom": "^18"
@@ -19,3 +19,8 @@ export const PLASMIC = initPlasmicLoader({
19
19
  // only use this for development, as this is significantly slower.
20
20
  preview: false,
21
21
  });
22
+
23
+ // Register custom functions here so they are available during SSR.
24
+ // See https://docs.plasmic.app/learn/registering-custom-functions/
25
+ //
26
+ // PLASMIC.registerFunction(...);
@@ -9,7 +9,7 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.456",
12
+ "@plasmicapp/loader-nextjs": "^2.0.3",
13
13
  "next": "14.2.35",
14
14
  "react": "^18",
15
15
  "react-dom": "^18"
@@ -19,3 +19,8 @@ export const PLASMIC = initPlasmicLoader({
19
19
  // only use this for development, as this is significantly slower.
20
20
  preview: false,
21
21
  });
22
+
23
+ // Register custom functions here so they are available during SSR.
24
+ // See https://docs.plasmic.app/learn/registering-custom-functions/
25
+ //
26
+ // PLASMIC.registerFunction(...);
@@ -146,6 +146,7 @@ function PlasmicButton__RenderFunc(props) {
146
146
  className={classNames(
147
147
  projectcss.all,
148
148
  projectcss.button,
149
+ projectcss.button__47tFX,
149
150
  projectcss.root_reset,
150
151
  projectcss.plasmic_default_styles,
151
152
  projectcss.plasmic_mixins,
@@ -123,6 +123,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
123
123
  className={classNames(
124
124
  projectcss.all,
125
125
  projectcss.h1,
126
+ projectcss.h1__47tFX,
126
127
  projectcss.__wab_text,
127
128
  sty.h1
128
129
  )}
@@ -126,6 +126,7 @@ function PlasmicHomepage__RenderFunc(props) {
126
126
  className={classNames(
127
127
  projectcss.all,
128
128
  projectcss.h1,
129
+ projectcss.h1__47tFX,
129
130
  projectcss.__wab_text,
130
131
  sty.h1
131
132
  )}
@@ -149,7 +150,9 @@ function PlasmicHomepage__RenderFunc(props) {
149
150
  }
150
151
  </React.Fragment>
151
152
  <span
152
- className={"plasmic_default__all plasmic_default__span"}
153
+ className={
154
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
155
+ }
153
156
  style={{ fontWeight: 700 }}
154
157
  >
155
158
  {"Therefore, please avoid changing this project."}
@@ -163,7 +166,9 @@ function PlasmicHomepage__RenderFunc(props) {
163
166
  }
164
167
  </React.Fragment>
165
168
  <span
166
- className={"plasmic_default__all plasmic_default__span"}
169
+ className={
170
+ "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
171
+ }
167
172
  style={{ fontWeight: 700 }}
168
173
  >
169
174
  {"Code"}
@@ -9,8 +9,8 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.359",
13
- "@plasmicapp/react-web": "^0.2.425",
12
+ "@plasmicapp/cli": "^0.1.361",
13
+ "@plasmicapp/react-web": "^1.0.6",
14
14
  "next": "14.2.35",
15
15
  "react": "^18",
16
16
  "react-dom": "^18"
@@ -135,6 +135,6 @@
135
135
  "nextjsConfig": {
136
136
  "pagesDir": "../pages"
137
137
  },
138
- "cliVersion": "0.1.359",
139
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.359/dist/plasmic.schema.json"
138
+ "cliVersion": "0.1.361",
139
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.361/dist/plasmic.schema.json"
140
140
  }
@@ -282,6 +282,7 @@ function PlasmicButton__RenderFunc(props: {
282
282
  className={classNames(
283
283
  projectcss.all,
284
284
  projectcss.button,
285
+ projectcss.button__47tFX,
285
286
  projectcss.root_reset,
286
287
  projectcss.plasmic_default_styles,
287
288
  projectcss.plasmic_mixins,
@@ -201,6 +201,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
201
201
  className={classNames(
202
202
  projectcss.all,
203
203
  projectcss.h1,
204
+ projectcss.h1__47tFX,
204
205
  projectcss.__wab_text,
205
206
  sty.h1
206
207
  )}