create-plasmic-app 0.0.110 → 0.0.112

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 (58) hide show
  1. package/.tool-versions +1 -0
  2. package/README.internal.md +12 -9
  3. package/cpa-out/gatsby-codegen-js/package.json +2 -2
  4. package/cpa-out/gatsby-codegen-js/plasmic.json +2 -2
  5. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +2 -5
  6. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +2 -5
  7. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +8 -0
  8. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +2 -5
  9. package/cpa-out/gatsby-codegen-ts/package.json +2 -2
  10. package/cpa-out/gatsby-codegen-ts/plasmic.json +2 -2
  11. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +2 -4
  12. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +2 -4
  13. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +9 -0
  14. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +2 -4
  15. package/cpa-out/gatsby-loader-js/package.json +1 -1
  16. package/cpa-out/gatsby-loader-ts/package.json +1 -1
  17. package/cpa-out/nextjs-app-loader-js/package.json +3 -3
  18. package/cpa-out/nextjs-app-loader-ts/package.json +3 -3
  19. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +2 -5
  20. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +2 -5
  21. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +8 -0
  22. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +2 -5
  23. package/cpa-out/nextjs-pages-codegen-js/package.json +4 -4
  24. package/cpa-out/nextjs-pages-codegen-js/plasmic.json +2 -2
  25. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +3 -4
  26. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +3 -4
  27. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +9 -0
  28. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +3 -4
  29. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +1 -0
  30. package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
  31. package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +2 -2
  32. package/cpa-out/nextjs-pages-loader-js/package.json +3 -3
  33. package/cpa-out/nextjs-pages-loader-ts/package.json +3 -3
  34. package/cpa-out/react-codegen-js/package.json +11 -11
  35. package/cpa-out/react-codegen-js/plasmic.json +2 -2
  36. package/cpa-out/react-codegen-js/src/App.jsx +1 -0
  37. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +2 -5
  38. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +2 -5
  39. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +2 -5
  40. package/cpa-out/react-codegen-ts/package.json +12 -12
  41. package/cpa-out/react-codegen-ts/plasmic.json +2 -2
  42. package/cpa-out/react-codegen-ts/src/App.tsx +1 -0
  43. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +2 -4
  44. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +2 -4
  45. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +2 -4
  46. package/cpa-out/tanstack-codegen-ts/package.json +8 -11
  47. package/cpa-out/tanstack-codegen-ts/plasmic.json +2 -2
  48. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +2 -4
  49. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +2 -4
  50. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +2 -4
  51. package/cpa-out/tanstack-codegen-ts/src/router.tsx +1 -5
  52. package/cpa-out/tanstack-codegen-ts/vite.config.ts +5 -1
  53. package/dist/tanstack/tanstack.js +18 -5
  54. package/package.json +2 -2
  55. package/src/tanstack/tanstack.ts +23 -6
  56. package/dist/tanstack/templates/file-router/config.d.ts +0 -1
  57. package/dist/tanstack/templates/file-router/config.js +0 -33
  58. package/src/tanstack/templates/file-router/config.ts +0 -29
package/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ nodejs 22.18.0 # gatsby doesn't work on node 24 yet
@@ -1,13 +1,16 @@
1
- # Testing
1
+ # Create Plasmic App - Development
2
2
 
3
- Use `yarn run-cpa` to run CPA with predefined sets of args.
4
- This will update the files in cpa-out, allowing us to review any diffs.
3
+ ## Testing
5
4
 
6
- # Debugging
5
+ Use `yarn run-cpa` to run create-plasmic-app with presets that gets copied to `cpa-out/` on success.
7
6
 
8
- Example invocation:
7
+ `yarn run-cpa` will:
9
8
 
10
- CPA_DEBUG_CHDIR=/path/to/target/project \
11
- node --inspect -r ts-node/register src/index.ts
12
-
13
- - `CPA_DEBUG_CHDIR`: First cd's into the target directory (which typically has its own node_modules etc., so it's tricky to try to run the source from there).
9
+ 1. Let you choose presets to run create-plasmic-app with
10
+ 2. Lint and build create-plasmic-app
11
+ 3. Sequentially run create-plasmic-app on chosen presets
12
+ 4. For each preset,
13
+ 1. Create a new directory in /tmp/cpa-out/<preset>
14
+ 2. Run create-plasmic-app with the preset args
15
+ 3. Build the new app
16
+ 4. Copy the new app to `packages/create-plasmic-app/cpa-out/<preset>` on success
@@ -14,8 +14,8 @@
14
14
  "clean": "gatsby clean"
15
15
  },
16
16
  "dependencies": {
17
- "@plasmicapp/cli": "^0.1.337",
18
- "@plasmicapp/react-web": "^0.2.381",
17
+ "@plasmicapp/cli": "^0.1.341",
18
+ "@plasmicapp/react-web": "^0.2.397",
19
19
  "gatsby": "^5.14.1",
20
20
  "gatsby-plugin-react-helmet": "^6.14.0",
21
21
  "react": "^18.2.0",
@@ -131,6 +131,6 @@
131
131
  "gatsbyConfig": {
132
132
  "pagesDir": "../pages"
133
133
  },
134
- "cliVersion": "0.1.337",
135
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.337/dist/plasmic.schema.json"
134
+ "cliVersion": "0.1.341",
135
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
136
136
  }
@@ -12,7 +12,6 @@ import * as React from "react";
12
12
  import { Link } from "gatsby";
13
13
  import {
14
14
  PlasmicLink as PlasmicLink__,
15
- Stack as Stack__,
16
15
  classNames,
17
16
  createPlasmicElementProxy,
18
17
  deriveRenderOpts,
@@ -126,13 +125,11 @@ function PlasmicButton__RenderFunc(props) {
126
125
  focusVisibleWithin_root: isRootFocusVisibleWithin
127
126
  };
128
127
  return (
129
- <Stack__
130
- as={"button"}
128
+ <button
131
129
  data-plasmic-name={"root"}
132
130
  data-plasmic-override={overrides.root}
133
131
  data-plasmic-root={true}
134
132
  data-plasmic-for-node={forNode}
135
- hasGap={true}
136
133
  className={classNames(
137
134
  projectcss.all,
138
135
  projectcss.button,
@@ -501,7 +498,7 @@ function PlasmicButton__RenderFunc(props) {
501
498
  })}
502
499
  </div>
503
500
  ) : null}
504
- </Stack__>
501
+ </button>
505
502
  );
506
503
  }
507
504
 
@@ -10,7 +10,6 @@
10
10
  // Component: AO44A-w7hh
11
11
  import * as React from "react";
12
12
  import {
13
- Stack as Stack__,
14
13
  classNames,
15
14
  createPlasmicElementProxy,
16
15
  deriveRenderOpts
@@ -75,11 +74,9 @@ function PlasmicDynamicPage__RenderFunc(props) {
75
74
  sty.root
76
75
  )}
77
76
  >
78
- <Stack__
79
- as={"section"}
77
+ <section
80
78
  data-plasmic-name={"section"}
81
79
  data-plasmic-override={overrides.section}
82
- hasGap={true}
83
80
  className={classNames(projectcss.all, sty.section)}
84
81
  >
85
82
  <h1
@@ -116,7 +113,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
116
113
  sty.randomDynamicPageButton
117
114
  )}
118
115
  />
119
- </Stack__>
116
+ </section>
120
117
  </div>
121
118
  </div>
122
119
  </React.Fragment>
@@ -9,6 +9,14 @@ export const ScreenContext = React.createContext(
9
9
  "PLEASE_RENDER_INSIDE_PROVIDER"
10
10
  );
11
11
 
12
+ export function ScreenContextProvider(props) {
13
+ return (
14
+ <ScreenContext.Provider value={props.value}>
15
+ {props.children}
16
+ </ScreenContext.Provider>
17
+ );
18
+ }
19
+
12
20
  export const useScreenVariants = createUseScreenVariants(true, {
13
21
  desktopOnly: "(min-width:768px)",
14
22
  });
@@ -10,7 +10,6 @@
10
10
  // Component: 6uuAAE1jiCew
11
11
  import * as React from "react";
12
12
  import {
13
- Stack as Stack__,
14
13
  classNames,
15
14
  createPlasmicElementProxy,
16
15
  deriveRenderOpts,
@@ -81,11 +80,9 @@ function PlasmicHomepage__RenderFunc(props) {
81
80
  sty.root
82
81
  )}
83
82
  >
84
- <Stack__
85
- as={"section"}
83
+ <section
86
84
  data-plasmic-name={"section"}
87
85
  data-plasmic-override={overrides.section}
88
- hasGap={true}
89
86
  className={classNames(projectcss.all, sty.section)}
90
87
  >
91
88
  <h1
@@ -152,7 +149,7 @@ function PlasmicHomepage__RenderFunc(props) {
152
149
  sty.randomDynamicPageButton
153
150
  )}
154
151
  />
155
- </Stack__>
152
+ </section>
156
153
  </div>
157
154
  </div>
158
155
  </React.Fragment>
@@ -15,8 +15,8 @@
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "@plasmicapp/cli": "^0.1.337",
19
- "@plasmicapp/react-web": "^0.2.381",
18
+ "@plasmicapp/cli": "^0.1.341",
19
+ "@plasmicapp/react-web": "^0.2.397",
20
20
  "gatsby": "^5.14.1",
21
21
  "gatsby-plugin-react-helmet": "^6.14.0",
22
22
  "react": "^18.2.0",
@@ -131,6 +131,6 @@
131
131
  "gatsbyConfig": {
132
132
  "pagesDir": "../pages"
133
133
  },
134
- "cliVersion": "0.1.337",
135
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.337/dist/plasmic.schema.json"
134
+ "cliVersion": "0.1.341",
135
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
136
136
  }
@@ -260,13 +260,11 @@ function PlasmicButton__RenderFunc(props: {
260
260
  };
261
261
 
262
262
  return (
263
- <Stack__
264
- as={"button"}
263
+ <button
265
264
  data-plasmic-name={"root"}
266
265
  data-plasmic-override={overrides.root}
267
266
  data-plasmic-root={true}
268
267
  data-plasmic-for-node={forNode}
269
- hasGap={true}
270
268
  className={classNames(
271
269
  projectcss.all,
272
270
  projectcss.button,
@@ -635,7 +633,7 @@ function PlasmicButton__RenderFunc(props: {
635
633
  })}
636
634
  </div>
637
635
  ) : null}
638
- </Stack__>
636
+ </button>
639
637
  ) as React.ReactElement | null;
640
638
  }
641
639
 
@@ -147,11 +147,9 @@ function PlasmicDynamicPage__RenderFunc(props: {
147
147
  sty.root
148
148
  )}
149
149
  >
150
- <Stack__
151
- as={"section"}
150
+ <section
152
151
  data-plasmic-name={"section"}
153
152
  data-plasmic-override={overrides.section}
154
- hasGap={true}
155
153
  className={classNames(projectcss.all, sty.section)}
156
154
  >
157
155
  <h1
@@ -188,7 +186,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
188
186
  sty.randomDynamicPageButton
189
187
  )}
190
188
  />
191
- </Stack__>
189
+ </section>
192
190
  </div>
193
191
  </div>
194
192
  </React.Fragment>
@@ -10,6 +10,15 @@ export type ScreenValue = "desktopOnly";
10
10
  export const ScreenContext = React.createContext<ScreenValue[] | undefined>(
11
11
  "PLEASE_RENDER_INSIDE_PROVIDER" as any
12
12
  );
13
+ export function ScreenContextProvider(
14
+ props: React.PropsWithChildren<{ value: ScreenValue[] | undefined }>
15
+ ) {
16
+ return (
17
+ <ScreenContext.Provider value={props.value}>
18
+ {props.children}
19
+ </ScreenContext.Provider>
20
+ );
21
+ }
13
22
 
14
23
  export const useScreenVariants = createUseScreenVariants(true, {
15
24
  desktopOnly: "(min-width:768px)",
@@ -155,11 +155,9 @@ function PlasmicHomepage__RenderFunc(props: {
155
155
  sty.root
156
156
  )}
157
157
  >
158
- <Stack__
159
- as={"section"}
158
+ <section
160
159
  data-plasmic-name={"section"}
161
160
  data-plasmic-override={overrides.section}
162
- hasGap={true}
163
161
  className={classNames(projectcss.all, sty.section)}
164
162
  >
165
163
  <h1
@@ -226,7 +224,7 @@ function PlasmicHomepage__RenderFunc(props: {
226
224
  sty.randomDynamicPageButton
227
225
  )}
228
226
  />
229
- </Stack__>
227
+ </section>
230
228
  </div>
231
229
  </div>
232
230
  </React.Fragment>
@@ -14,7 +14,7 @@
14
14
  "clean": "gatsby clean"
15
15
  },
16
16
  "dependencies": {
17
- "@plasmicapp/loader-gatsby": "^1.0.397",
17
+ "@plasmicapp/loader-gatsby": "^1.0.398",
18
18
  "gatsby": "^5.14.1",
19
19
  "gatsby-plugin-react-helmet": "^6.14.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.397",
18
+ "@plasmicapp/loader-gatsby": "^1.0.398",
19
19
  "gatsby": "^5.14.1",
20
20
  "gatsby-plugin-react-helmet": "^6.14.0",
21
21
  "react": "^18.2.0",
@@ -9,13 +9,13 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.422",
13
- "next": "14.2.20",
12
+ "@plasmicapp/loader-nextjs": "^1.0.435",
13
+ "next": "14.2.17",
14
14
  "react": "^18",
15
15
  "react-dom": "^18"
16
16
  },
17
17
  "devDependencies": {
18
18
  "eslint": "^8",
19
- "eslint-config-next": "14.2.20"
19
+ "eslint-config-next": "14.2.17"
20
20
  }
21
21
  }
@@ -9,8 +9,8 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.422",
13
- "next": "14.2.20",
12
+ "@plasmicapp/loader-nextjs": "^1.0.435",
13
+ "next": "14.2.17",
14
14
  "react": "^18",
15
15
  "react-dom": "^18"
16
16
  },
@@ -19,7 +19,7 @@
19
19
  "@types/react": "^18",
20
20
  "@types/react-dom": "^18",
21
21
  "eslint": "^8",
22
- "eslint-config-next": "14.2.20",
22
+ "eslint-config-next": "14.2.17",
23
23
  "typescript": "^5"
24
24
  }
25
25
  }
@@ -13,7 +13,6 @@ import Link from "next/link";
13
13
  import { useRouter } from "next/router";
14
14
  import {
15
15
  PlasmicLink as PlasmicLink__,
16
- Stack as Stack__,
17
16
  classNames,
18
17
  createPlasmicElementProxy,
19
18
  deriveRenderOpts,
@@ -135,13 +134,11 @@ function PlasmicButton__RenderFunc(props) {
135
134
  focusVisibleWithin_root: isRootFocusVisibleWithin
136
135
  };
137
136
  return (
138
- <Stack__
139
- as={"button"}
137
+ <button
140
138
  data-plasmic-name={"root"}
141
139
  data-plasmic-override={overrides.root}
142
140
  data-plasmic-root={true}
143
141
  data-plasmic-for-node={forNode}
144
- hasGap={true}
145
142
  className={classNames(
146
143
  projectcss.all,
147
144
  projectcss.button,
@@ -510,7 +507,7 @@ function PlasmicButton__RenderFunc(props) {
510
507
  })}
511
508
  </div>
512
509
  ) : null}
513
- </Stack__>
510
+ </button>
514
511
  );
515
512
  }
516
513
 
@@ -12,7 +12,6 @@ import * as React from "react";
12
12
  import Head from "next/head";
13
13
  import { useRouter } from "next/router";
14
14
  import {
15
- Stack as Stack__,
16
15
  classNames,
17
16
  createPlasmicElementProxy,
18
17
  deriveRenderOpts
@@ -83,11 +82,9 @@ function PlasmicDynamicPage__RenderFunc(props) {
83
82
  sty.root
84
83
  )}
85
84
  >
86
- <Stack__
87
- as={"section"}
85
+ <section
88
86
  data-plasmic-name={"section"}
89
87
  data-plasmic-override={overrides.section}
90
- hasGap={true}
91
88
  className={classNames(projectcss.all, sty.section)}
92
89
  >
93
90
  <h1
@@ -124,7 +121,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
124
121
  sty.randomDynamicPageButton
125
122
  )}
126
123
  />
127
- </Stack__>
124
+ </section>
128
125
  </div>
129
126
  </div>
130
127
  </React.Fragment>
@@ -9,6 +9,14 @@ export const ScreenContext = React.createContext(
9
9
  "PLEASE_RENDER_INSIDE_PROVIDER"
10
10
  );
11
11
 
12
+ export function ScreenContextProvider(props) {
13
+ return (
14
+ <ScreenContext.Provider value={props.value}>
15
+ {props.children}
16
+ </ScreenContext.Provider>
17
+ );
18
+ }
19
+
12
20
  export const useScreenVariants = createUseScreenVariants(true, {
13
21
  desktopOnly: "(min-width:768px)",
14
22
  });
@@ -12,7 +12,6 @@ import * as React from "react";
12
12
  import Head from "next/head";
13
13
  import { useRouter } from "next/router";
14
14
  import {
15
- Stack as Stack__,
16
15
  classNames,
17
16
  createPlasmicElementProxy,
18
17
  deriveRenderOpts,
@@ -89,11 +88,9 @@ function PlasmicHomepage__RenderFunc(props) {
89
88
  sty.root
90
89
  )}
91
90
  >
92
- <Stack__
93
- as={"section"}
91
+ <section
94
92
  data-plasmic-name={"section"}
95
93
  data-plasmic-override={overrides.section}
96
- hasGap={true}
97
94
  className={classNames(projectcss.all, sty.section)}
98
95
  >
99
96
  <h1
@@ -160,7 +157,7 @@ function PlasmicHomepage__RenderFunc(props) {
160
157
  sty.randomDynamicPageButton
161
158
  )}
162
159
  />
163
- </Stack__>
160
+ </section>
164
161
  </div>
165
162
  </div>
166
163
  </React.Fragment>
@@ -9,14 +9,14 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.337",
13
- "@plasmicapp/react-web": "^0.2.381",
14
- "next": "14.2.20",
12
+ "@plasmicapp/cli": "^0.1.341",
13
+ "@plasmicapp/react-web": "^0.2.397",
14
+ "next": "14.2.17",
15
15
  "react": "^18",
16
16
  "react-dom": "^18"
17
17
  },
18
18
  "devDependencies": {
19
19
  "eslint": "^8",
20
- "eslint-config-next": "14.2.20"
20
+ "eslint-config-next": "14.2.17"
21
21
  }
22
22
  }
@@ -131,6 +131,6 @@
131
131
  "nextjsConfig": {
132
132
  "pagesDir": "../pages"
133
133
  },
134
- "cliVersion": "0.1.337",
135
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.337/dist/plasmic.schema.json"
134
+ "cliVersion": "0.1.341",
135
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
136
136
  }
@@ -205,6 +205,7 @@ function PlasmicButton__RenderFunc(props: {
205
205
  };
206
206
 
207
207
  const __nextRouter = useNextRouter();
208
+
208
209
  const $ctx = useDataEnv?.() || {};
209
210
  const refsRef = React.useRef({});
210
211
  const $refs = refsRef.current;
@@ -266,13 +267,11 @@ function PlasmicButton__RenderFunc(props: {
266
267
  };
267
268
 
268
269
  return (
269
- <Stack__
270
- as={"button"}
270
+ <button
271
271
  data-plasmic-name={"root"}
272
272
  data-plasmic-override={overrides.root}
273
273
  data-plasmic-root={true}
274
274
  data-plasmic-for-node={forNode}
275
- hasGap={true}
276
275
  className={classNames(
277
276
  projectcss.all,
278
277
  projectcss.button,
@@ -641,7 +640,7 @@ function PlasmicButton__RenderFunc(props: {
641
640
  })}
642
641
  </div>
643
642
  ) : null}
644
- </Stack__>
643
+ </button>
645
644
  ) as React.ReactElement | null;
646
645
  }
647
646
 
@@ -120,6 +120,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
120
120
  };
121
121
 
122
122
  const __nextRouter = useNextRouter();
123
+
123
124
  const $ctx = useDataEnv?.() || {};
124
125
  const refsRef = React.useRef({});
125
126
  const $refs = refsRef.current;
@@ -149,11 +150,9 @@ function PlasmicDynamicPage__RenderFunc(props: {
149
150
  sty.root
150
151
  )}
151
152
  >
152
- <Stack__
153
- as={"section"}
153
+ <section
154
154
  data-plasmic-name={"section"}
155
155
  data-plasmic-override={overrides.section}
156
- hasGap={true}
157
156
  className={classNames(projectcss.all, sty.section)}
158
157
  >
159
158
  <h1
@@ -190,7 +189,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
190
189
  sty.randomDynamicPageButton
191
190
  )}
192
191
  />
193
- </Stack__>
192
+ </section>
194
193
  </div>
195
194
  </div>
196
195
  </React.Fragment>
@@ -10,6 +10,15 @@ export type ScreenValue = "desktopOnly";
10
10
  export const ScreenContext = React.createContext<ScreenValue[] | undefined>(
11
11
  "PLEASE_RENDER_INSIDE_PROVIDER" as any
12
12
  );
13
+ export function ScreenContextProvider(
14
+ props: React.PropsWithChildren<{ value: ScreenValue[] | undefined }>
15
+ ) {
16
+ return (
17
+ <ScreenContext.Provider value={props.value}>
18
+ {props.children}
19
+ </ScreenContext.Provider>
20
+ );
21
+ }
13
22
 
14
23
  export const useScreenVariants = createUseScreenVariants(true, {
15
24
  desktopOnly: "(min-width:768px)",
@@ -124,6 +124,7 @@ function PlasmicHomepage__RenderFunc(props: {
124
124
  };
125
125
 
126
126
  const __nextRouter = useNextRouter();
127
+
127
128
  const $ctx = useDataEnv?.() || {};
128
129
  const refsRef = React.useRef({});
129
130
  const $refs = refsRef.current;
@@ -157,11 +158,9 @@ function PlasmicHomepage__RenderFunc(props: {
157
158
  sty.root
158
159
  )}
159
160
  >
160
- <Stack__
161
- as={"section"}
161
+ <section
162
162
  data-plasmic-name={"section"}
163
163
  data-plasmic-override={overrides.section}
164
- hasGap={true}
165
164
  className={classNames(projectcss.all, sty.section)}
166
165
  >
167
166
  <h1
@@ -228,7 +227,7 @@ function PlasmicHomepage__RenderFunc(props: {
228
227
  sty.randomDynamicPageButton
229
228
  )}
230
229
  />
231
- </Stack__>
230
+ </section>
232
231
  </div>
233
232
  </div>
234
233
  </React.Fragment>
@@ -124,6 +124,7 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props: {
124
124
  };
125
125
 
126
126
  const __nextRouter = useNextRouter();
127
+
127
128
  const $ctx = useDataEnv?.() || {};
128
129
  const refsRef = React.useRef({});
129
130
  const $refs = refsRef.current;
@@ -9,9 +9,9 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.337",
13
- "@plasmicapp/react-web": "^0.2.381",
14
- "next": "14.2.20",
12
+ "@plasmicapp/cli": "^0.1.341",
13
+ "@plasmicapp/react-web": "^0.2.397",
14
+ "next": "14.2.17",
15
15
  "react": "^18",
16
16
  "react-dom": "^18"
17
17
  },
@@ -20,7 +20,7 @@
20
20
  "@types/react": "^18",
21
21
  "@types/react-dom": "^18",
22
22
  "eslint": "^8",
23
- "eslint-config-next": "14.2.20",
23
+ "eslint-config-next": "14.2.17",
24
24
  "typescript": "^5"
25
25
  }
26
26
  }
@@ -131,6 +131,6 @@
131
131
  "nextjsConfig": {
132
132
  "pagesDir": "../pages"
133
133
  },
134
- "cliVersion": "0.1.337",
135
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.337/dist/plasmic.schema.json"
134
+ "cliVersion": "0.1.341",
135
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
136
136
  }
@@ -9,13 +9,13 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.422",
13
- "next": "14.2.20",
12
+ "@plasmicapp/loader-nextjs": "^1.0.435",
13
+ "next": "14.2.17",
14
14
  "react": "^18",
15
15
  "react-dom": "^18"
16
16
  },
17
17
  "devDependencies": {
18
18
  "eslint": "^8",
19
- "eslint-config-next": "14.2.20"
19
+ "eslint-config-next": "14.2.17"
20
20
  }
21
21
  }
@@ -9,8 +9,8 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.422",
13
- "next": "14.2.20",
12
+ "@plasmicapp/loader-nextjs": "^1.0.435",
13
+ "next": "14.2.17",
14
14
  "react": "^18",
15
15
  "react-dom": "^18"
16
16
  },
@@ -19,7 +19,7 @@
19
19
  "@types/react": "^18",
20
20
  "@types/react-dom": "^18",
21
21
  "eslint": "^8",
22
- "eslint-config-next": "14.2.20",
22
+ "eslint-config-next": "14.2.17",
23
23
  "typescript": "^5"
24
24
  }
25
25
  }