create-plasmic-app 0.0.152 → 0.0.154
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-codegen-js/app/layout.jsx +1 -0
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +11 -12
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +15 -16
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.jsx +1 -1
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +11 -16
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx +1 -2
- package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/{plasmic.module.css → plasmic.css} +73 -73
- package/cpa-out/nextjs-app-codegen-js/package.json +4 -4
- package/cpa-out/nextjs-app-codegen-js/plasmic.json +4 -4
- package/cpa-out/nextjs-app-codegen-ts/app/layout.tsx +1 -0
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +11 -12
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +15 -16
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.tsx +1 -1
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +11 -16
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +0 -1
- package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +1 -3
- package/cpa-out/{nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/plasmic.module.css → nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/plasmic.css} +73 -73
- package/cpa-out/nextjs-app-codegen-ts/package.json +4 -4
- package/cpa-out/nextjs-app-codegen-ts/plasmic.json +4 -4
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +11 -12
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +15 -16
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +11 -16
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx +1 -2
- package/cpa-out/{nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/plasmic.module.css → nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/plasmic.css} +73 -73
- package/cpa-out/nextjs-pages-codegen-js/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-js/pages/_app.jsx +1 -0
- package/cpa-out/nextjs-pages-codegen-js/plasmic.json +4 -4
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +11 -12
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +15 -16
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +11 -16
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +0 -1
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +1 -3
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/{plasmic.module.css → plasmic.css} +73 -73
- package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-ts/pages/_app.tsx +1 -0
- package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +4 -4
- package/cpa-out/react-codegen-js/package.json +2 -2
- package/cpa-out/react-codegen-js/plasmic.json +4 -4
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +12 -12
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +16 -16
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +12 -16
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +1 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx +2 -2
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.css +702 -0
- package/cpa-out/react-codegen-ts/package.json +2 -2
- package/cpa-out/react-codegen-ts/plasmic.json +4 -4
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +12 -12
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +16 -16
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +12 -16
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +1 -1
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +2 -2
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.css +702 -0
- package/dist/nextjs/nextjs.js +50 -8
- package/dist/nextjs/templates/app-codegen/layout.d.ts +2 -2
- package/dist/nextjs/templates/app-codegen/layout.js +8 -2
- package/dist/nextjs/templates/pages-codegen/app.d.ts +2 -2
- package/dist/nextjs/templates/pages-codegen/app.js +8 -2
- package/dist/utils/types.d.ts +4 -0
- package/package.json +3 -3
- package/src/nextjs/nextjs.ts +76 -17
- package/src/nextjs/templates/app-codegen/layout.ts +16 -3
- package/src/nextjs/templates/pages-codegen/app.ts +16 -3
- package/src/utils/types.ts +5 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.module.css +0 -702
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.module.css +0 -702
- /package/cpa-out/nextjs-app-codegen-js/components/plasmic/{plasmic__default_style.module.css → plasmic__default_style.css} +0 -0
- /package/cpa-out/nextjs-app-codegen-ts/components/plasmic/{plasmic__default_style.module.css → plasmic__default_style.css} +0 -0
- /package/cpa-out/nextjs-pages-codegen-js/components/plasmic/{plasmic__default_style.module.css → plasmic__default_style.css} +0 -0
- /package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/{plasmic__default_style.module.css → plasmic__default_style.css} +0 -0
- /package/cpa-out/react-codegen-js/src/components/plasmic/{plasmic__default_style.module.css → plasmic__default_style.css} +0 -0
- /package/cpa-out/react-codegen-ts/src/components/plasmic/{plasmic__default_style.module.css → plasmic__default_style.css} +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
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": "inlined",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"projectApiToken": "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
27
27
|
"projectName": "create-plasmic-app",
|
|
28
28
|
"version": "latest",
|
|
29
|
-
"cssFilePath": "plasmic/create_plasmic_app/plasmic.
|
|
29
|
+
"cssFilePath": "plasmic/create_plasmic_app/plasmic.css",
|
|
30
30
|
"components": [
|
|
31
31
|
{
|
|
32
32
|
"id": "6uuAAE1jiCew",
|
|
@@ -132,6 +132,6 @@
|
|
|
132
132
|
},
|
|
133
133
|
"wrapPagesWithGlobalContexts": true,
|
|
134
134
|
"preserveJsImportExtensions": false,
|
|
135
|
-
"cliVersion": "0.1.
|
|
136
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
135
|
+
"cliVersion": "0.1.364",
|
|
136
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.364/dist/plasmic.schema.json"
|
|
137
137
|
}
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx
CHANGED
|
@@ -62,7 +62,7 @@ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-impor
|
|
|
62
62
|
|
|
63
63
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
64
64
|
|
|
65
|
-
import
|
|
65
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
66
66
|
import sty from "./PlasmicButton.module.css"; // plasmic-import: TQcvW_pSKi3/css
|
|
67
67
|
|
|
68
68
|
import CheckSvgIcon from "./icons/PlasmicIcon__CheckSvg"; // plasmic-import: gj-_D7n31Ho/icon
|
|
@@ -268,12 +268,12 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
268
268
|
data-plasmic-root={true}
|
|
269
269
|
data-plasmic-for-node={forNode}
|
|
270
270
|
className={classNames(
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
"all",
|
|
272
|
+
"button",
|
|
273
|
+
"button__47tFX",
|
|
274
|
+
"root_reset_47tFXWjN2C4NyHFGGpaYQ3",
|
|
275
|
+
"plasmic_default_styles",
|
|
276
|
+
"plasmic_mixins",
|
|
277
277
|
styleTokensClassNames,
|
|
278
278
|
sty.root,
|
|
279
279
|
{
|
|
@@ -340,7 +340,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
340
340
|
<div
|
|
341
341
|
data-plasmic-name={"startIconContainer"}
|
|
342
342
|
data-plasmic-override={overrides.startIconContainer}
|
|
343
|
-
className={classNames(
|
|
343
|
+
className={classNames("all", sty.startIconContainer, {
|
|
344
344
|
[sty.startIconContainercolor_blue]: hasVariant(
|
|
345
345
|
$state,
|
|
346
346
|
"color",
|
|
@@ -359,7 +359,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
359
359
|
{renderPlasmicSlot({
|
|
360
360
|
defaultContents: (
|
|
361
361
|
<CheckSvgIcon
|
|
362
|
-
className={classNames(
|
|
362
|
+
className={classNames("all", sty.svg__s6Xxe)}
|
|
363
363
|
role={"img"}
|
|
364
364
|
/>
|
|
365
365
|
),
|
|
@@ -428,7 +428,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
428
428
|
<div
|
|
429
429
|
data-plasmic-name={"contentContainer"}
|
|
430
430
|
data-plasmic-override={overrides.contentContainer}
|
|
431
|
-
className={classNames(
|
|
431
|
+
className={classNames("all", sty.contentContainer, {
|
|
432
432
|
[sty.contentContainer___focusVisibleWithin]:
|
|
433
433
|
triggers.focusVisibleWithin_root,
|
|
434
434
|
[sty.contentContainerisDisabled]: hasVariant(
|
|
@@ -554,7 +554,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
554
554
|
<div
|
|
555
555
|
data-plasmic-name={"endIconContainer"}
|
|
556
556
|
data-plasmic-override={overrides.endIconContainer}
|
|
557
|
-
className={classNames(
|
|
557
|
+
className={classNames("all", sty.endIconContainer, {
|
|
558
558
|
[sty.endIconContainercolor_white]: hasVariant(
|
|
559
559
|
$state,
|
|
560
560
|
"color",
|
|
@@ -575,7 +575,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
575
575
|
{renderPlasmicSlot({
|
|
576
576
|
defaultContents: (
|
|
577
577
|
<IconIcon
|
|
578
|
-
className={classNames(
|
|
578
|
+
className={classNames("all", sty.svg__liJa)}
|
|
579
579
|
role={"img"}
|
|
580
580
|
/>
|
|
581
581
|
),
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx
CHANGED
|
@@ -70,7 +70,7 @@ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-impor
|
|
|
70
70
|
|
|
71
71
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
72
72
|
|
|
73
|
-
import
|
|
73
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
74
74
|
import sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
|
|
75
75
|
|
|
76
76
|
const emptyProxy: any = new Proxy(() => "", {
|
|
@@ -133,7 +133,7 @@ export const serverQueryTree: QueryComponentNode = {
|
|
|
133
133
|
type: "component",
|
|
134
134
|
queries: {
|
|
135
135
|
sha256: {
|
|
136
|
-
id: "custom:krgWtF9Kkesx",
|
|
136
|
+
id: "custom-code:krgWtF9Kkesx",
|
|
137
137
|
fn: async ({ $q, $props, $ctx, $state }) => {
|
|
138
138
|
console.log("Running SHA-256");
|
|
139
139
|
const data = new TextEncoder().encode($ctx.params.slug);
|
|
@@ -195,17 +195,17 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
195
195
|
|
|
196
196
|
return (
|
|
197
197
|
<React.Fragment>
|
|
198
|
-
<div className={
|
|
198
|
+
<div className={"plasmic_page_wrapper"}>
|
|
199
199
|
<div
|
|
200
200
|
data-plasmic-name={"root"}
|
|
201
201
|
data-plasmic-override={overrides.root}
|
|
202
202
|
data-plasmic-root={true}
|
|
203
203
|
data-plasmic-for-node={forNode}
|
|
204
204
|
className={classNames(
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
"all",
|
|
206
|
+
"root_reset_47tFXWjN2C4NyHFGGpaYQ3",
|
|
207
|
+
"plasmic_default_styles",
|
|
208
|
+
"plasmic_mixins",
|
|
209
209
|
styleTokensClassNames,
|
|
210
210
|
sty.root
|
|
211
211
|
)}
|
|
@@ -213,16 +213,16 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
213
213
|
<section
|
|
214
214
|
data-plasmic-name={"section"}
|
|
215
215
|
data-plasmic-override={overrides.section}
|
|
216
|
-
className={classNames(
|
|
216
|
+
className={classNames("all", sty.section)}
|
|
217
217
|
>
|
|
218
218
|
<h2
|
|
219
219
|
data-plasmic-name={"h2"}
|
|
220
220
|
data-plasmic-override={overrides.h2}
|
|
221
221
|
className={classNames(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
"all",
|
|
223
|
+
"h2",
|
|
224
|
+
"h2__47tFX",
|
|
225
|
+
"__wab_text",
|
|
226
226
|
sty.h2
|
|
227
227
|
)}
|
|
228
228
|
>
|
|
@@ -232,10 +232,10 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
232
232
|
data-plasmic-name={"span"}
|
|
233
233
|
data-plasmic-override={overrides.span}
|
|
234
234
|
className={classNames(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
"all",
|
|
236
|
+
"span",
|
|
237
|
+
"span__47tFX",
|
|
238
|
+
"__wab_text",
|
|
239
239
|
sty.span
|
|
240
240
|
)}
|
|
241
241
|
>
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx
CHANGED
|
@@ -61,7 +61,7 @@ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-impor
|
|
|
61
61
|
|
|
62
62
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
63
63
|
|
|
64
|
-
import
|
|
64
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
65
65
|
import sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
|
|
66
66
|
|
|
67
67
|
const emptyProxy: any = new Proxy(() => "", {
|
|
@@ -154,17 +154,17 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
154
154
|
|
|
155
155
|
return (
|
|
156
156
|
<React.Fragment>
|
|
157
|
-
<div className={
|
|
157
|
+
<div className={"plasmic_page_wrapper"}>
|
|
158
158
|
<div
|
|
159
159
|
data-plasmic-name={"root"}
|
|
160
160
|
data-plasmic-override={overrides.root}
|
|
161
161
|
data-plasmic-root={true}
|
|
162
162
|
data-plasmic-for-node={forNode}
|
|
163
163
|
className={classNames(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
"all",
|
|
165
|
+
"root_reset_47tFXWjN2C4NyHFGGpaYQ3",
|
|
166
|
+
"plasmic_default_styles",
|
|
167
|
+
"plasmic_mixins",
|
|
168
168
|
styleTokensClassNames,
|
|
169
169
|
sty.root
|
|
170
170
|
)}
|
|
@@ -172,16 +172,16 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
172
172
|
<section
|
|
173
173
|
data-plasmic-name={"section"}
|
|
174
174
|
data-plasmic-override={overrides.section}
|
|
175
|
-
className={classNames(
|
|
175
|
+
className={classNames("all", sty.section)}
|
|
176
176
|
>
|
|
177
177
|
<h1
|
|
178
178
|
data-plasmic-name={"h1"}
|
|
179
179
|
data-plasmic-override={overrides.h1}
|
|
180
180
|
className={classNames(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
"all",
|
|
182
|
+
"h1",
|
|
183
|
+
"h1__47tFX",
|
|
184
|
+
"__wab_text",
|
|
185
185
|
sty.h1
|
|
186
186
|
)}
|
|
187
187
|
>
|
|
@@ -192,11 +192,7 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
192
192
|
<div
|
|
193
193
|
data-plasmic-name={"text"}
|
|
194
194
|
data-plasmic-override={overrides.text}
|
|
195
|
-
className={classNames(
|
|
196
|
-
projectcss.all,
|
|
197
|
-
projectcss.__wab_text,
|
|
198
|
-
sty.text
|
|
199
|
-
)}
|
|
195
|
+
className={classNames("all", "__wab_text", sty.text)}
|
|
200
196
|
>
|
|
201
197
|
{
|
|
202
198
|
"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"
|
|
@@ -61,7 +61,7 @@ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-impor
|
|
|
61
61
|
|
|
62
62
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
63
63
|
|
|
64
|
-
import
|
|
64
|
+
import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
65
65
|
import sty from "./PlasmicRandomDynamicPageButton.module.css"; // plasmic-import: Q23H1_1M_P/css
|
|
66
66
|
|
|
67
67
|
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
|
|