create-plasmic-app 0.0.167 → 0.0.169
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/README.internal.md +6 -4
- package/cpa-out/gatsby-codegen-js/package.json +3 -2
- package/cpa-out/gatsby-codegen-js/plasmic.json +5 -8
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +12 -12
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +18 -18
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +12 -16
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +1 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx +2 -2
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/{plasmic.module.css → plasmic.css} +89 -73
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/{plasmic__default_style.module.css → plasmic__default_style.css} +16 -0
- package/cpa-out/gatsby-codegen-ts/package.json +3 -2
- package/cpa-out/gatsby-codegen-ts/plasmic.json +5 -8
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +12 -12
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +18 -18
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +12 -16
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +1 -1
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +2 -2
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/{plasmic.module.css → plasmic.css} +89 -73
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/{plasmic__default_style.module.css → plasmic__default_style.css} +16 -0
- package/cpa-out/gatsby-loader-js/package.json +1 -1
- package/cpa-out/gatsby-loader-ts/package.json +1 -1
- package/cpa-out/nextjs-app-codegen-js/app/dynamic/[slug]/page.jsx +5 -5
- package/cpa-out/nextjs-app-codegen-js/app/robots.js +24 -0
- package/cpa-out/nextjs-app-codegen-js/app/sitemap.js +38 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +2 -2
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.jsx +2 -2
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/plasmic.css +16 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/plasmic__default_style.css +16 -0
- package/cpa-out/nextjs-app-codegen-js/package.json +7 -6
- package/cpa-out/nextjs-app-codegen-js/plasmic.json +3 -6
- package/cpa-out/nextjs-app-codegen-ts/app/dynamic/[slug]/page.tsx +8 -11
- package/cpa-out/nextjs-app-codegen-ts/app/page.tsx +4 -4
- package/cpa-out/nextjs-app-codegen-ts/app/robots.ts +25 -0
- package/cpa-out/nextjs-app-codegen-ts/app/sitemap.ts +41 -0
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +2 -2
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.tsx +7 -13
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepageServer.tsx +5 -11
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/plasmic.css +16 -0
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/plasmic__default_style.css +16 -0
- package/cpa-out/nextjs-app-codegen-ts/package.json +7 -6
- package/cpa-out/nextjs-app-codegen-ts/plasmic.json +3 -6
- package/cpa-out/nextjs-app-loader-js/app/robots.js +24 -0
- package/cpa-out/nextjs-app-loader-js/app/sitemap.js +29 -0
- package/cpa-out/nextjs-app-loader-js/package.json +5 -5
- package/cpa-out/nextjs-app-loader-ts/app/layout.tsx +1 -5
- package/cpa-out/nextjs-app-loader-ts/app/robots.ts +25 -0
- package/cpa-out/nextjs-app-loader-ts/app/sitemap.ts +30 -0
- package/cpa-out/nextjs-app-loader-ts/package.json +5 -5
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +2 -2
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/plasmic.css +16 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/plasmic__default_style.css +16 -0
- package/cpa-out/nextjs-pages-codegen-js/package.json +7 -6
- package/cpa-out/nextjs-pages-codegen-js/pages/robots.txt.js +25 -0
- package/cpa-out/nextjs-pages-codegen-js/pages/sitemap.xml.js +53 -0
- package/cpa-out/nextjs-pages-codegen-js/plasmic.json +3 -6
- package/cpa-out/nextjs-pages-codegen-js/styles/Home.module.css +8 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +2 -2
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/plasmic.css +16 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/plasmic__default_style.css +16 -0
- package/cpa-out/nextjs-pages-codegen-ts/package.json +7 -6
- package/cpa-out/nextjs-pages-codegen-ts/pages/robots.txt.ts +27 -0
- package/cpa-out/nextjs-pages-codegen-ts/pages/sitemap.xml.ts +56 -0
- package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +3 -6
- package/cpa-out/nextjs-pages-codegen-ts/styles/Home.module.css +8 -0
- package/cpa-out/nextjs-pages-loader-js/package.json +5 -5
- package/cpa-out/nextjs-pages-loader-js/pages/robots.txt.js +25 -0
- package/cpa-out/nextjs-pages-loader-js/pages/sitemap.xml.js +46 -0
- package/cpa-out/nextjs-pages-loader-js/styles/Home.module.css +8 -0
- package/cpa-out/nextjs-pages-loader-ts/package.json +5 -5
- package/cpa-out/nextjs-pages-loader-ts/pages/robots.txt.ts +27 -0
- package/cpa-out/nextjs-pages-loader-ts/pages/sitemap.xml.ts +47 -0
- package/cpa-out/nextjs-pages-loader-ts/styles/Home.module.css +8 -0
- package/cpa-out/react-codegen-js/package.json +3 -2
- package/cpa-out/react-codegen-js/plasmic.json +3 -6
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +2 -2
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.css +16 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/plasmic__default_style.css +16 -0
- package/cpa-out/react-codegen-ts/package.json +3 -2
- package/cpa-out/react-codegen-ts/plasmic.json +3 -6
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +2 -2
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.css +16 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/plasmic__default_style.css +16 -0
- package/cpa-out/tanstack-codegen-ts/package.json +8 -13
- package/cpa-out/tanstack-codegen-ts/plasmic.json +3 -6
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +3 -3
- package/cpa-out/tanstack-codegen-ts/src/components/plasmic/plasmic__default_style.css +16 -0
- package/cpa-out/tanstack-codegen-ts/src/routeTree.gen.ts +13 -13
- package/cpa-out/tanstack-codegen-ts/src/routes/dynamic/$slug/index.tsx +2 -2
- package/dist/gatsby/gatsby.js +23 -17
- package/dist/index.js +6 -0
- package/dist/lib.d.ts +2 -1
- package/dist/lib.js +9 -4
- package/dist/nextjs/nextjs.js +30 -6
- package/dist/nextjs/templates/app-seo.d.ts +4 -0
- package/dist/nextjs/templates/app-seo.js +92 -0
- package/dist/nextjs/templates/pages-seo.d.ts +4 -0
- package/dist/nextjs/templates/pages-seo.js +121 -0
- package/dist/react/react.js +9 -4
- package/dist/tanstack/tanstack.js +12 -5
- package/dist/utils/codegen.d.ts +3 -0
- package/dist/utils/codegen.js +17 -4
- package/dist/utils/file-utils.d.ts +2 -2
- package/dist/utils/file-utils.js +2 -1
- package/dist/utils/npm-utils.d.ts +24 -9
- package/dist/utils/npm-utils.js +66 -21
- package/dist/utils/strategy.d.ts +5 -1
- package/dist/utils/types.d.ts +1 -0
- package/package.json +2 -4
- package/run-cpa.ts +17 -6
- package/src/gatsby/gatsby.ts +40 -22
- package/src/index.ts +9 -0
- package/src/lib.ts +18 -6
- package/src/nextjs/nextjs.ts +85 -7
- package/src/nextjs/templates/app-seo.ts +104 -0
- package/src/nextjs/templates/pages-seo.ts +131 -0
- package/src/react/react.ts +11 -4
- package/src/tanstack/tanstack.ts +19 -6
- package/src/utils/codegen.ts +28 -6
- package/src/utils/file-utils.ts +6 -2
- package/src/utils/npm-utils.ts +76 -23
- package/src/utils/strategy.ts +10 -1
- package/src/utils/types.ts +1 -0
|
@@ -7,17 +7,13 @@
|
|
|
7
7
|
},
|
|
8
8
|
"style": {
|
|
9
9
|
"scheme": "css-modules",
|
|
10
|
-
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.
|
|
10
|
+
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.css"
|
|
11
11
|
},
|
|
12
12
|
"images": {
|
|
13
13
|
"scheme": "files",
|
|
14
14
|
"publicDir": "../../static",
|
|
15
15
|
"publicUrlPrefix": "/"
|
|
16
16
|
},
|
|
17
|
-
"tokens": {
|
|
18
|
-
"scheme": "theo",
|
|
19
|
-
"tokensFilePath": "plasmic-tokens.theo.json"
|
|
20
|
-
},
|
|
21
17
|
"srcDir": "src/components",
|
|
22
18
|
"defaultPlasmicDir": "./plasmic",
|
|
23
19
|
"projects": [
|
|
@@ -26,7 +22,7 @@
|
|
|
26
22
|
"projectApiToken": "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
27
23
|
"projectName": "create-plasmic-app",
|
|
28
24
|
"version": "latest",
|
|
29
|
-
"cssFilePath": "plasmic/create_plasmic_app/plasmic.
|
|
25
|
+
"cssFilePath": "plasmic/create_plasmic_app/plasmic.css",
|
|
30
26
|
"components": [
|
|
31
27
|
{
|
|
32
28
|
"id": "6uuAAE1jiCew",
|
|
@@ -135,6 +131,7 @@
|
|
|
135
131
|
"gatsbyConfig": {
|
|
136
132
|
"pagesDir": "../pages"
|
|
137
133
|
},
|
|
138
|
-
"cliVersion": "0.1.
|
|
139
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
134
|
+
"cliVersion": "0.1.372",
|
|
135
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.372/dist/plasmic.schema.json",
|
|
136
|
+
"packageManager": "npm"
|
|
140
137
|
}
|
package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx
CHANGED
|
@@ -68,7 +68,7 @@ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-impor
|
|
|
68
68
|
|
|
69
69
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
70
70
|
|
|
71
|
-
import
|
|
71
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
72
72
|
import * as sty from "./PlasmicButton.module.css"; // plasmic-import: TQcvW_pSKi3/css
|
|
73
73
|
|
|
74
74
|
import CheckSvgIcon from "./icons/PlasmicIcon__CheckSvg"; // plasmic-import: gj-_D7n31Ho/icon
|
|
@@ -274,12 +274,12 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
274
274
|
data-plasmic-root={true}
|
|
275
275
|
data-plasmic-for-node={forNode}
|
|
276
276
|
className={classNames(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
277
|
+
"all",
|
|
278
|
+
"button",
|
|
279
|
+
"button__47tFX",
|
|
280
|
+
"root_reset_47tFXWjN2C4NyHFGGpaYQ3",
|
|
281
|
+
"plasmic_default_styles",
|
|
282
|
+
"plasmic_mixins",
|
|
283
283
|
styleTokensClassNames,
|
|
284
284
|
sty.root,
|
|
285
285
|
{
|
|
@@ -346,7 +346,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
346
346
|
<div
|
|
347
347
|
data-plasmic-name={"startIconContainer"}
|
|
348
348
|
data-plasmic-override={overrides.startIconContainer}
|
|
349
|
-
className={classNames(
|
|
349
|
+
className={classNames("all", sty.startIconContainer, {
|
|
350
350
|
[sty.startIconContainercolor_blue]: hasVariant(
|
|
351
351
|
$state,
|
|
352
352
|
"color",
|
|
@@ -365,7 +365,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
365
365
|
{renderPlasmicSlot({
|
|
366
366
|
defaultContents: (
|
|
367
367
|
<CheckSvgIcon
|
|
368
|
-
className={classNames(
|
|
368
|
+
className={classNames("all", sty.svg__s6Xxe)}
|
|
369
369
|
role={"img"}
|
|
370
370
|
/>
|
|
371
371
|
),
|
|
@@ -434,7 +434,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
434
434
|
<div
|
|
435
435
|
data-plasmic-name={"contentContainer"}
|
|
436
436
|
data-plasmic-override={overrides.contentContainer}
|
|
437
|
-
className={classNames(
|
|
437
|
+
className={classNames("all", sty.contentContainer, {
|
|
438
438
|
[sty.contentContainer___focusVisibleWithin]:
|
|
439
439
|
triggers.focusVisibleWithin_root,
|
|
440
440
|
[sty.contentContainerisDisabled]: hasVariant(
|
|
@@ -560,7 +560,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
560
560
|
<div
|
|
561
561
|
data-plasmic-name={"endIconContainer"}
|
|
562
562
|
data-plasmic-override={overrides.endIconContainer}
|
|
563
|
-
className={classNames(
|
|
563
|
+
className={classNames("all", sty.endIconContainer, {
|
|
564
564
|
[sty.endIconContainercolor_white]: hasVariant(
|
|
565
565
|
$state,
|
|
566
566
|
"color",
|
|
@@ -581,7 +581,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
581
581
|
{renderPlasmicSlot({
|
|
582
582
|
defaultContents: (
|
|
583
583
|
<IconIcon
|
|
584
|
-
className={classNames(
|
|
584
|
+
className={classNames("all", sty.svg__liJa)}
|
|
585
585
|
role={"img"}
|
|
586
586
|
/>
|
|
587
587
|
),
|
package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx
CHANGED
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
|
|
64
64
|
import { useMutablePlasmicQueryData } from "@plasmicapp/query";
|
|
65
65
|
|
|
66
|
-
import {
|
|
66
|
+
import { usePlasmicQueries } from "@plasmicapp/react-web/lib/data-sources";
|
|
67
67
|
import type {
|
|
68
68
|
PlasmicQuery,
|
|
69
69
|
PlasmicQueryResult
|
|
@@ -76,7 +76,7 @@ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-impor
|
|
|
76
76
|
|
|
77
77
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
78
78
|
|
|
79
|
-
import
|
|
79
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
80
80
|
import * as sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
|
|
81
81
|
|
|
82
82
|
const emptyProxy: any = new Proxy(() => "", {
|
|
@@ -139,7 +139,7 @@ export const serverQueryTree: QueryComponentNode = {
|
|
|
139
139
|
type: "component",
|
|
140
140
|
queries: {
|
|
141
141
|
sha256: {
|
|
142
|
-
id: "custom:krgWtF9Kkesx",
|
|
142
|
+
id: "custom-code:krgWtF9Kkesx",
|
|
143
143
|
fn: async ({ $q, $props, $ctx, $state }) => {
|
|
144
144
|
console.log("Running SHA-256");
|
|
145
145
|
const data = new TextEncoder().encode($ctx.params.slug);
|
|
@@ -199,7 +199,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
199
199
|
const refsRef = React.useRef({});
|
|
200
200
|
const $refs = refsRef.current;
|
|
201
201
|
|
|
202
|
-
const $q =
|
|
202
|
+
const $q = usePlasmicQueries(serverQueryTree, { $ctx, $props, $state: null });
|
|
203
203
|
|
|
204
204
|
const styleTokensClassNames = _useStyleTokens();
|
|
205
205
|
|
|
@@ -211,17 +211,17 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
211
211
|
}
|
|
212
212
|
`}</style>
|
|
213
213
|
|
|
214
|
-
<div className={
|
|
214
|
+
<div className={"plasmic_page_wrapper"}>
|
|
215
215
|
<div
|
|
216
216
|
data-plasmic-name={"root"}
|
|
217
217
|
data-plasmic-override={overrides.root}
|
|
218
218
|
data-plasmic-root={true}
|
|
219
219
|
data-plasmic-for-node={forNode}
|
|
220
220
|
className={classNames(
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
"all",
|
|
222
|
+
"root_reset_47tFXWjN2C4NyHFGGpaYQ3",
|
|
223
|
+
"plasmic_default_styles",
|
|
224
|
+
"plasmic_mixins",
|
|
225
225
|
styleTokensClassNames,
|
|
226
226
|
sty.root
|
|
227
227
|
)}
|
|
@@ -229,16 +229,16 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
229
229
|
<section
|
|
230
230
|
data-plasmic-name={"section"}
|
|
231
231
|
data-plasmic-override={overrides.section}
|
|
232
|
-
className={classNames(
|
|
232
|
+
className={classNames("all", sty.section)}
|
|
233
233
|
>
|
|
234
234
|
<h2
|
|
235
235
|
data-plasmic-name={"h2"}
|
|
236
236
|
data-plasmic-override={overrides.h2}
|
|
237
237
|
className={classNames(
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
238
|
+
"all",
|
|
239
|
+
"h2",
|
|
240
|
+
"h2__47tFX",
|
|
241
|
+
"__wab_text",
|
|
242
242
|
sty.h2
|
|
243
243
|
)}
|
|
244
244
|
>
|
|
@@ -248,10 +248,10 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
248
248
|
data-plasmic-name={"span"}
|
|
249
249
|
data-plasmic-override={overrides.span}
|
|
250
250
|
className={classNames(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
"all",
|
|
252
|
+
"span",
|
|
253
|
+
"span__47tFX",
|
|
254
|
+
"__wab_text",
|
|
255
255
|
sty.span
|
|
256
256
|
)}
|
|
257
257
|
>
|
package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx
CHANGED
|
@@ -67,7 +67,7 @@ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-impor
|
|
|
67
67
|
|
|
68
68
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
69
69
|
|
|
70
|
-
import
|
|
70
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
71
71
|
import * as sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
|
|
72
72
|
|
|
73
73
|
const emptyProxy: any = new Proxy(() => "", {
|
|
@@ -170,17 +170,17 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
170
170
|
}
|
|
171
171
|
`}</style>
|
|
172
172
|
|
|
173
|
-
<div className={
|
|
173
|
+
<div className={"plasmic_page_wrapper"}>
|
|
174
174
|
<div
|
|
175
175
|
data-plasmic-name={"root"}
|
|
176
176
|
data-plasmic-override={overrides.root}
|
|
177
177
|
data-plasmic-root={true}
|
|
178
178
|
data-plasmic-for-node={forNode}
|
|
179
179
|
className={classNames(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
"all",
|
|
181
|
+
"root_reset_47tFXWjN2C4NyHFGGpaYQ3",
|
|
182
|
+
"plasmic_default_styles",
|
|
183
|
+
"plasmic_mixins",
|
|
184
184
|
styleTokensClassNames,
|
|
185
185
|
sty.root
|
|
186
186
|
)}
|
|
@@ -188,16 +188,16 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
188
188
|
<section
|
|
189
189
|
data-plasmic-name={"section"}
|
|
190
190
|
data-plasmic-override={overrides.section}
|
|
191
|
-
className={classNames(
|
|
191
|
+
className={classNames("all", sty.section)}
|
|
192
192
|
>
|
|
193
193
|
<h1
|
|
194
194
|
data-plasmic-name={"h1"}
|
|
195
195
|
data-plasmic-override={overrides.h1}
|
|
196
196
|
className={classNames(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
"all",
|
|
198
|
+
"h1",
|
|
199
|
+
"h1__47tFX",
|
|
200
|
+
"__wab_text",
|
|
201
201
|
sty.h1
|
|
202
202
|
)}
|
|
203
203
|
>
|
|
@@ -208,11 +208,7 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
208
208
|
<div
|
|
209
209
|
data-plasmic-name={"text"}
|
|
210
210
|
data-plasmic-override={overrides.text}
|
|
211
|
-
className={classNames(
|
|
212
|
-
projectcss.all,
|
|
213
|
-
projectcss.__wab_text,
|
|
214
|
-
sty.text
|
|
215
|
-
)}
|
|
211
|
+
className={classNames("all", "__wab_text", sty.text)}
|
|
216
212
|
>
|
|
217
213
|
{
|
|
218
214
|
"This project is used by run-cpa.ts in the create-plasmic-app repo.\n\n\nrun-cpa.ts runs create-plasmic-app for many combinations of args (e.g. nextjs + appDir + loader + typescript) to check for changes in generated files. Any changes to this project will result in lots of changes to the generated files. Therefore, please avoid changing this project.\n"
|
|
@@ -67,7 +67,7 @@ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-impor
|
|
|
67
67
|
|
|
68
68
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
69
69
|
|
|
70
|
-
import
|
|
70
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
71
71
|
import * as sty from "./PlasmicRandomDynamicPageButton.module.css"; // plasmic-import: Q23H1_1M_P/css
|
|
72
72
|
|
|
73
73
|
import CheckSvgIcon from "./icons/PlasmicIcon__CheckSvg"; // plasmic-import: gj-_D7n31Ho/icon
|
|
@@ -9,10 +9,10 @@ import { createUseStyleTokens } from "@plasmicapp/react-web";
|
|
|
9
9
|
|
|
10
10
|
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
11
11
|
|
|
12
|
-
import
|
|
12
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
13
13
|
|
|
14
14
|
const data = {
|
|
15
|
-
base: `${
|
|
15
|
+
base: `${"plasmic_tokens_47tFXWjN2C4NyHFGGpaYQ3"}`,
|
|
16
16
|
varianted: []
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css2?family=Inter%3Aital%2Cwght%400%2C400%3B0%2C500%3B0%2C600%3B0%2C700%3B0%2C900&family=Inconsolata%3Aital%2Cwght%400%2C400%3B0%2C500%3B0%2C600%3B0%2C700%3B0%2C900&display=swap");
|
|
2
2
|
|
|
3
|
-
.
|
|
3
|
+
.plasmic_tokens_47tFXWjN2C4NyHFGGpaYQ3 {
|
|
4
4
|
--token-Tker7_vSXsP_: #777777;
|
|
5
5
|
--plasmic-token-foreground: var(--token-Tker7_vSXsP_);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
8
|
+
.plasmic_tokens_47tFXWjN2C4NyHFGGpaYQ3 {
|
|
9
9
|
--plsmc-standard-width: 800px;
|
|
10
10
|
--plsmc-wide-width: 1280px;
|
|
11
11
|
--plsmc-viewport-gap: 16px;
|
|
@@ -323,6 +323,22 @@
|
|
|
323
323
|
text-transform: inherit;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
:where(.b) {
|
|
327
|
+
font-family: inherit;
|
|
328
|
+
line-height: inherit;
|
|
329
|
+
font-size: inherit;
|
|
330
|
+
color: inherit;
|
|
331
|
+
text-transform: inherit;
|
|
332
|
+
}
|
|
333
|
+
:where(.__wab_expr_html_text b) {
|
|
334
|
+
white-space: inherit;
|
|
335
|
+
font-family: inherit;
|
|
336
|
+
line-height: inherit;
|
|
337
|
+
font-size: inherit;
|
|
338
|
+
color: inherit;
|
|
339
|
+
text-transform: inherit;
|
|
340
|
+
}
|
|
341
|
+
|
|
326
342
|
:where(.i) {
|
|
327
343
|
font-family: inherit;
|
|
328
344
|
line-height: inherit;
|
|
@@ -498,7 +514,7 @@
|
|
|
498
514
|
.__wab_expr_html_text {
|
|
499
515
|
white-space: normal;
|
|
500
516
|
}
|
|
501
|
-
:where(.
|
|
517
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) {
|
|
502
518
|
font-family: var(--mixin-prihNuSPt-kU_font-family);
|
|
503
519
|
font-size: var(--mixin-prihNuSPt-kU_font-size);
|
|
504
520
|
font-weight: var(--mixin-prihNuSPt-kU_font-weight);
|
|
@@ -511,51 +527,51 @@
|
|
|
511
527
|
white-space: var(--mixin-prihNuSPt-kU_white-space);
|
|
512
528
|
}
|
|
513
529
|
|
|
514
|
-
:where(.
|
|
515
|
-
h4:where(.
|
|
516
|
-
:where(.
|
|
517
|
-
:where(.
|
|
518
|
-
h4:where(.
|
|
530
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) h4:where(.h4__47tFX),
|
|
531
|
+
h4:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.h4__47tFX),
|
|
532
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) h4,
|
|
533
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) h4,
|
|
534
|
+
h4:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
519
535
|
font-size: var(--mixin-pKcLzBwr6rlS_font-size);
|
|
520
536
|
font-weight: var(--mixin-pKcLzBwr6rlS_font-weight);
|
|
521
537
|
letter-spacing: var(--mixin-pKcLzBwr6rlS_letter-spacing);
|
|
522
538
|
line-height: var(--mixin-pKcLzBwr6rlS_line-height);
|
|
523
539
|
}
|
|
524
540
|
|
|
525
|
-
:where(.
|
|
526
|
-
h5:where(.
|
|
527
|
-
:where(.
|
|
528
|
-
:where(.
|
|
529
|
-
h5:where(.
|
|
541
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) h5:where(.h5__47tFX),
|
|
542
|
+
h5:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.h5__47tFX),
|
|
543
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) h5,
|
|
544
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) h5,
|
|
545
|
+
h5:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
530
546
|
font-size: var(--mixin-Q3MZaojcv1qw_font-size);
|
|
531
547
|
font-weight: var(--mixin-Q3MZaojcv1qw_font-weight);
|
|
532
548
|
letter-spacing: var(--mixin-Q3MZaojcv1qw_letter-spacing);
|
|
533
549
|
line-height: var(--mixin-Q3MZaojcv1qw_line-height);
|
|
534
550
|
}
|
|
535
551
|
|
|
536
|
-
:where(.
|
|
537
|
-
h6:where(.
|
|
538
|
-
:where(.
|
|
539
|
-
:where(.
|
|
540
|
-
h6:where(.
|
|
552
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) h6:where(.h6__47tFX),
|
|
553
|
+
h6:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.h6__47tFX),
|
|
554
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) h6,
|
|
555
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) h6,
|
|
556
|
+
h6:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
541
557
|
font-size: var(--mixin-WQN-U7Y-Mt0i_font-size);
|
|
542
558
|
font-weight: var(--mixin-WQN-U7Y-Mt0i_font-weight);
|
|
543
559
|
line-height: var(--mixin-WQN-U7Y-Mt0i_line-height);
|
|
544
560
|
}
|
|
545
561
|
|
|
546
|
-
:where(.
|
|
547
|
-
a:where(.
|
|
548
|
-
:where(.
|
|
549
|
-
:where(.
|
|
550
|
-
a:where(.
|
|
562
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) a:where(.a__47tFX),
|
|
563
|
+
a:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.a__47tFX),
|
|
564
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) a,
|
|
565
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) a,
|
|
566
|
+
a:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
551
567
|
color: var(--mixin-_NIhBtBbqybq_color);
|
|
552
568
|
}
|
|
553
569
|
|
|
554
|
-
:where(.
|
|
555
|
-
blockquote:where(.
|
|
556
|
-
:where(.
|
|
557
|
-
:where(.
|
|
558
|
-
blockquote:where(.
|
|
570
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) blockquote:where(.blockquote__47tFX),
|
|
571
|
+
blockquote:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.blockquote__47tFX),
|
|
572
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) blockquote,
|
|
573
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) blockquote,
|
|
574
|
+
blockquote:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
559
575
|
color: var(--mixin-5965DRLFNjWi_color);
|
|
560
576
|
padding-left: var(--mixin-5965DRLFNjWi_padding-left);
|
|
561
577
|
border-left: var(--mixin-5965DRLFNjWi_border-left-width)
|
|
@@ -563,44 +579,44 @@ blockquote:where(.root_reset_tags) {
|
|
|
563
579
|
var(--mixin-5965DRLFNjWi_border-left-color);
|
|
564
580
|
}
|
|
565
581
|
|
|
566
|
-
:where(.
|
|
567
|
-
h1:where(.
|
|
568
|
-
:where(.
|
|
569
|
-
:where(.
|
|
570
|
-
h1:where(.
|
|
582
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) h1:where(.h1__47tFX),
|
|
583
|
+
h1:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.h1__47tFX),
|
|
584
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) h1,
|
|
585
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) h1,
|
|
586
|
+
h1:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
571
587
|
font-size: var(--mixin-_J1_6dhZex0j_font-size);
|
|
572
588
|
font-weight: var(--mixin-_J1_6dhZex0j_font-weight);
|
|
573
589
|
letter-spacing: var(--mixin-_J1_6dhZex0j_letter-spacing);
|
|
574
590
|
line-height: var(--mixin-_J1_6dhZex0j_line-height);
|
|
575
591
|
}
|
|
576
592
|
|
|
577
|
-
:where(.
|
|
578
|
-
h2:where(.
|
|
579
|
-
:where(.
|
|
580
|
-
:where(.
|
|
581
|
-
h2:where(.
|
|
593
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) h2:where(.h2__47tFX),
|
|
594
|
+
h2:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.h2__47tFX),
|
|
595
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) h2,
|
|
596
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) h2,
|
|
597
|
+
h2:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
582
598
|
font-size: var(--mixin-tyWR-eqFmXa2R_font-size);
|
|
583
599
|
font-weight: var(--mixin-tyWR-eqFmXa2R_font-weight);
|
|
584
600
|
letter-spacing: var(--mixin-tyWR-eqFmXa2R_letter-spacing);
|
|
585
601
|
line-height: var(--mixin-tyWR-eqFmXa2R_line-height);
|
|
586
602
|
}
|
|
587
603
|
|
|
588
|
-
:where(.
|
|
589
|
-
h3:where(.
|
|
590
|
-
:where(.
|
|
591
|
-
:where(.
|
|
592
|
-
h3:where(.
|
|
604
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) h3:where(.h3__47tFX),
|
|
605
|
+
h3:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.h3__47tFX),
|
|
606
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) h3,
|
|
607
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) h3,
|
|
608
|
+
h3:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
593
609
|
font-size: var(--mixin-VSfYlZt0xLESb_font-size);
|
|
594
610
|
font-weight: var(--mixin-VSfYlZt0xLESb_font-weight);
|
|
595
611
|
letter-spacing: var(--mixin-VSfYlZt0xLESb_letter-spacing);
|
|
596
612
|
line-height: var(--mixin-VSfYlZt0xLESb_line-height);
|
|
597
613
|
}
|
|
598
614
|
|
|
599
|
-
:where(.
|
|
600
|
-
code:where(.
|
|
601
|
-
:where(.
|
|
602
|
-
:where(.
|
|
603
|
-
code:where(.
|
|
615
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) code:where(.code__47tFX),
|
|
616
|
+
code:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.code__47tFX),
|
|
617
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) code,
|
|
618
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) code,
|
|
619
|
+
code:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
604
620
|
background: #f8f8f8;
|
|
605
621
|
font-family: var(--mixin-2Dy3yomrqskwe_font-family);
|
|
606
622
|
border-radius: var(--mixin-2Dy3yomrqskwe_border-top-left-radius)
|
|
@@ -625,11 +641,11 @@ code:where(.root_reset_tags) {
|
|
|
625
641
|
var(--mixin-2Dy3yomrqskwe_border-left-color);
|
|
626
642
|
}
|
|
627
643
|
|
|
628
|
-
:where(.
|
|
629
|
-
pre:where(.
|
|
630
|
-
:where(.
|
|
631
|
-
:where(.
|
|
632
|
-
pre:where(.
|
|
644
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) pre:where(.pre__47tFX),
|
|
645
|
+
pre:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.pre__47tFX),
|
|
646
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) pre,
|
|
647
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) pre,
|
|
648
|
+
pre:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
633
649
|
background: #f8f8f8;
|
|
634
650
|
font-family: var(--mixin-0u7VwjXF8Kvpe_font-family);
|
|
635
651
|
border-radius: var(--mixin-0u7VwjXF8Kvpe_border-top-left-radius)
|
|
@@ -654,11 +670,11 @@ pre:where(.root_reset_tags) {
|
|
|
654
670
|
var(--mixin-0u7VwjXF8Kvpe_border-left-color);
|
|
655
671
|
}
|
|
656
672
|
|
|
657
|
-
:where(.
|
|
658
|
-
ol:where(.
|
|
659
|
-
:where(.
|
|
660
|
-
:where(.
|
|
661
|
-
ol:where(.
|
|
673
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) ol:where(.ol__47tFX),
|
|
674
|
+
ol:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.ol__47tFX),
|
|
675
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) ol,
|
|
676
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) ol,
|
|
677
|
+
ol:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
662
678
|
display: var(--mixin-D70_omI9mm34j_display);
|
|
663
679
|
flex-direction: var(--mixin-D70_omI9mm34j_flex-direction);
|
|
664
680
|
align-items: var(--mixin-D70_omI9mm34j_align-items);
|
|
@@ -670,11 +686,11 @@ ol:where(.root_reset_tags) {
|
|
|
670
686
|
column-gap: var(--mixin-D70_omI9mm34j_column-gap);
|
|
671
687
|
}
|
|
672
688
|
|
|
673
|
-
:where(.
|
|
674
|
-
ul:where(.
|
|
675
|
-
:where(.
|
|
676
|
-
:where(.
|
|
677
|
-
ul:where(.
|
|
689
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) ul:where(.ul__47tFX),
|
|
690
|
+
ul:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.ul__47tFX),
|
|
691
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) ul,
|
|
692
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) ul,
|
|
693
|
+
ul:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
678
694
|
display: var(--mixin-6zRO9vzPQi4g5_display);
|
|
679
695
|
flex-direction: var(--mixin-6zRO9vzPQi4g5_flex-direction);
|
|
680
696
|
align-items: var(--mixin-6zRO9vzPQi4g5_align-items);
|
|
@@ -686,17 +702,17 @@ ul:where(.root_reset_tags) {
|
|
|
686
702
|
column-gap: var(--mixin-6zRO9vzPQi4g5_column-gap);
|
|
687
703
|
}
|
|
688
704
|
|
|
689
|
-
:where(.
|
|
690
|
-
a:where(.
|
|
691
|
-
:where(.
|
|
692
|
-
:where(.
|
|
693
|
-
a:where(.
|
|
705
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) a:where(.a__47tFX):hover,
|
|
706
|
+
a:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.a__47tFX):hover,
|
|
707
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) a:hover,
|
|
708
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) a:hover,
|
|
709
|
+
a:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags):hover {
|
|
694
710
|
color: var(--mixin-u1gAzUhZSVyWj_color);
|
|
695
711
|
}
|
|
696
712
|
|
|
697
|
-
:where(.
|
|
698
|
-
li:where(.
|
|
699
|
-
:where(.
|
|
700
|
-
:where(.
|
|
701
|
-
li:where(.
|
|
713
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3) li:where(.li__47tFX),
|
|
714
|
+
li:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3.li__47tFX),
|
|
715
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3 .__wab_expr_html_text) li,
|
|
716
|
+
:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) li,
|
|
717
|
+
li:where(.root_reset_47tFXWjN2C4NyHFGGpaYQ3_tags) {
|
|
702
718
|
}
|
|
@@ -186,6 +186,22 @@
|
|
|
186
186
|
text-transform: inherit;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
:where(.b) {
|
|
190
|
+
font-family: inherit;
|
|
191
|
+
line-height: inherit;
|
|
192
|
+
font-size: inherit;
|
|
193
|
+
color: inherit;
|
|
194
|
+
text-transform: inherit;
|
|
195
|
+
}
|
|
196
|
+
:where(.__wab_expr_html_text b) {
|
|
197
|
+
white-space: inherit;
|
|
198
|
+
font-family: inherit;
|
|
199
|
+
line-height: inherit;
|
|
200
|
+
font-size: inherit;
|
|
201
|
+
color: inherit;
|
|
202
|
+
text-transform: inherit;
|
|
203
|
+
}
|
|
204
|
+
|
|
189
205
|
:where(.i) {
|
|
190
206
|
font-family: inherit;
|
|
191
207
|
line-height: inherit;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
generateDynamicMetadata,
|
|
9
9
|
serverQueryTree
|
|
10
10
|
} from "../../../components/plasmic/create_plasmic_app/PlasmicDynamicPageServer";
|
|
11
|
-
import {
|
|
11
|
+
import { executePlasmicQueries } from "@plasmicapp/react-web/lib/data-sources";
|
|
12
12
|
// Uncomment and populate to statically pre-render this route at build time.
|
|
13
13
|
// Each entry should be an object whose keys match the dynamic segments in the route path.
|
|
14
14
|
// See https://nextjs.org/docs/app/api-reference/functions/generate-static-params
|
|
@@ -23,10 +23,10 @@ const metadataQueryTree = { ...serverQueryTree, children: [] };
|
|
|
23
23
|
|
|
24
24
|
export async function generateMetadata({ params, searchParams }, parent) {
|
|
25
25
|
const ctx = await makeAppRouterPageCtx({ params, searchParams });
|
|
26
|
-
const { queries: $q } = await
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
26
|
+
const { queries: $q } = await executePlasmicQueries(metadataQueryTree, {
|
|
27
|
+
$props: {},
|
|
28
|
+
$ctx: ctx
|
|
29
|
+
});
|
|
30
30
|
const metadata = generateDynamicMetadata($q, ctx);
|
|
31
31
|
return { ...(await parent), ...metadata };
|
|
32
32
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { headers } from "next/headers";
|
|
2
|
+
|
|
3
|
+
// Set NEXT_PUBLIC_SITE_URL to pin the origin and keep this route static;
|
|
4
|
+
// otherwise it is derived per-request, which opts the route out of prerendering.
|
|
5
|
+
async function getSiteUrl() {
|
|
6
|
+
if (process.env.NEXT_PUBLIC_SITE_URL) {
|
|
7
|
+
return process.env.NEXT_PUBLIC_SITE_URL;
|
|
8
|
+
}
|
|
9
|
+
if (process.env.VERCEL_PROJECT_PRODUCTION_URL) {
|
|
10
|
+
return `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`;
|
|
11
|
+
}
|
|
12
|
+
const h = await headers();
|
|
13
|
+
const proto = h.get("x-forwarded-proto") ?? "http";
|
|
14
|
+
return `${proto}://${h.get("x-forwarded-host") ?? h.get("host")}`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default async function robots() {
|
|
18
|
+
const siteUrl = await getSiteUrl();
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
rules: { userAgent: "*", allow: "/" },
|
|
22
|
+
sitemap: new URL("/sitemap.xml", siteUrl).toString(),
|
|
23
|
+
};
|
|
24
|
+
}
|