create-plasmic-app 0.0.111 → 0.0.113
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/.tool-versions +1 -0
- package/README.internal.md +12 -9
- package/cpa-out/gatsby-codegen-js/package.json +2 -2
- package/cpa-out/gatsby-codegen-js/plasmic.json +2 -2
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +2 -5
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +2 -5
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +8 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +2 -5
- package/cpa-out/gatsby-codegen-ts/package.json +2 -2
- package/cpa-out/gatsby-codegen-ts/plasmic.json +2 -2
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +2 -4
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +2 -4
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +9 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +2 -4
- 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-loader-js/package.json +3 -3
- package/cpa-out/nextjs-app-loader-ts/package.json +3 -3
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +5 -6
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +5 -6
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +8 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +7 -11
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +2 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx +23 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/plasmic.jsx +11 -0
- package/cpa-out/nextjs-pages-codegen-js/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-js/plasmic.json +4 -2
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +9 -5
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +8 -5
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +9 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +9 -10
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +5 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +27 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/plasmic.tsx +14 -0
- package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +4 -2
- package/cpa-out/nextjs-pages-loader-js/package.json +3 -3
- package/cpa-out/nextjs-pages-loader-ts/package.json +3 -3
- package/cpa-out/react-codegen-js/package.json +11 -11
- package/cpa-out/react-codegen-js/plasmic.json +2 -2
- package/cpa-out/react-codegen-js/src/App.jsx +1 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +2 -5
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +2 -5
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +2 -5
- package/cpa-out/react-codegen-ts/package.json +12 -12
- package/cpa-out/react-codegen-ts/plasmic.json +2 -2
- package/cpa-out/react-codegen-ts/src/App.tsx +1 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +2 -4
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +2 -4
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +2 -4
- package/package.json +2 -2
package/.tool-versions
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodejs 22.18.0 # gatsby doesn't work on node 24 yet
|
package/README.internal.md
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Create Plasmic App - Development
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
This will update the files in cpa-out, allowing us to review any diffs.
|
|
3
|
+
## Testing
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
Use `yarn run-cpa` to run create-plasmic-app with presets that gets copied to `cpa-out/` on success.
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
`yarn run-cpa` will:
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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.
|
|
18
|
-
"@plasmicapp/react-web": "^0.2.
|
|
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.
|
|
135
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
134
|
+
"cliVersion": "0.1.341",
|
|
135
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
|
|
136
136
|
}
|
package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx
CHANGED
|
@@ -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
|
-
<
|
|
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
|
-
</
|
|
501
|
+
</button>
|
|
505
502
|
);
|
|
506
503
|
}
|
|
507
504
|
|
package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx
CHANGED
|
@@ -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
|
-
<
|
|
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
|
-
</
|
|
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
|
});
|
package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx
CHANGED
|
@@ -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
|
-
<
|
|
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
|
-
</
|
|
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.
|
|
19
|
-
"@plasmicapp/react-web": "^0.2.
|
|
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.
|
|
135
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
134
|
+
"cliVersion": "0.1.341",
|
|
135
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
|
|
136
136
|
}
|
package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx
CHANGED
|
@@ -260,13 +260,11 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
return (
|
|
263
|
-
<
|
|
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
|
-
</
|
|
636
|
+
</button>
|
|
639
637
|
) as React.ReactElement | null;
|
|
640
638
|
}
|
|
641
639
|
|
package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx
CHANGED
|
@@ -147,11 +147,9 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
147
147
|
sty.root
|
|
148
148
|
)}
|
|
149
149
|
>
|
|
150
|
-
<
|
|
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
|
-
</
|
|
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)",
|
package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx
CHANGED
|
@@ -155,11 +155,9 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
155
155
|
sty.root
|
|
156
156
|
)}
|
|
157
157
|
>
|
|
158
|
-
<
|
|
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
|
-
</
|
|
227
|
+
</section>
|
|
230
228
|
</div>
|
|
231
229
|
</div>
|
|
232
230
|
</React.Fragment>
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/loader-nextjs": "^1.0.
|
|
13
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/loader-nextjs": "^1.0.438",
|
|
13
|
+
"next": "14.2.32",
|
|
14
14
|
"react": "^18",
|
|
15
15
|
"react-dom": "^18"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"eslint": "^8",
|
|
19
|
-
"eslint-config-next": "14.2.
|
|
19
|
+
"eslint-config-next": "14.2.32"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/loader-nextjs": "^1.0.
|
|
13
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/loader-nextjs": "^1.0.438",
|
|
13
|
+
"next": "14.2.32",
|
|
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.
|
|
22
|
+
"eslint-config-next": "14.2.32",
|
|
23
23
|
"typescript": "^5"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx
CHANGED
|
@@ -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,
|
|
@@ -24,6 +23,7 @@ import {
|
|
|
24
23
|
} from "@plasmicapp/react-web";
|
|
25
24
|
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
26
25
|
import * as pp from "@plasmicapp/react-web";
|
|
26
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
27
27
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
28
28
|
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
29
29
|
import sty from "./PlasmicButton.module.css"; // plasmic-import: TQcvW_pSKi3/css
|
|
@@ -134,21 +134,20 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
134
134
|
const triggers = {
|
|
135
135
|
focusVisibleWithin_root: isRootFocusVisibleWithin
|
|
136
136
|
};
|
|
137
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
137
138
|
return (
|
|
138
|
-
<
|
|
139
|
-
as={"button"}
|
|
139
|
+
<button
|
|
140
140
|
data-plasmic-name={"root"}
|
|
141
141
|
data-plasmic-override={overrides.root}
|
|
142
142
|
data-plasmic-root={true}
|
|
143
143
|
data-plasmic-for-node={forNode}
|
|
144
|
-
hasGap={true}
|
|
145
144
|
className={classNames(
|
|
146
145
|
projectcss.all,
|
|
147
146
|
projectcss.button,
|
|
148
147
|
projectcss.root_reset,
|
|
149
148
|
projectcss.plasmic_default_styles,
|
|
150
149
|
projectcss.plasmic_mixins,
|
|
151
|
-
|
|
150
|
+
styleTokensClassNames,
|
|
152
151
|
sty.root,
|
|
153
152
|
{
|
|
154
153
|
[sty.root___focusVisibleWithin]: triggers.focusVisibleWithin_root,
|
|
@@ -510,7 +509,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
510
509
|
})}
|
|
511
510
|
</div>
|
|
512
511
|
) : null}
|
|
513
|
-
</
|
|
512
|
+
</button>
|
|
514
513
|
);
|
|
515
514
|
}
|
|
516
515
|
|
package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx
CHANGED
|
@@ -12,13 +12,13 @@ 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
|
|
19
18
|
} from "@plasmicapp/react-web";
|
|
20
19
|
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
21
20
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
21
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
22
22
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
23
23
|
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
24
24
|
import sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
|
|
@@ -58,6 +58,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
|
|
|
58
58
|
const $ctx = useDataEnv?.() || {};
|
|
59
59
|
const refsRef = React.useRef({});
|
|
60
60
|
const $refs = refsRef.current;
|
|
61
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
61
62
|
return (
|
|
62
63
|
<React.Fragment>
|
|
63
64
|
<Head></Head>
|
|
@@ -79,15 +80,13 @@ function PlasmicDynamicPage__RenderFunc(props) {
|
|
|
79
80
|
projectcss.root_reset,
|
|
80
81
|
projectcss.plasmic_default_styles,
|
|
81
82
|
projectcss.plasmic_mixins,
|
|
82
|
-
|
|
83
|
+
styleTokensClassNames,
|
|
83
84
|
sty.root
|
|
84
85
|
)}
|
|
85
86
|
>
|
|
86
|
-
<
|
|
87
|
-
as={"section"}
|
|
87
|
+
<section
|
|
88
88
|
data-plasmic-name={"section"}
|
|
89
89
|
data-plasmic-override={overrides.section}
|
|
90
|
-
hasGap={true}
|
|
91
90
|
className={classNames(projectcss.all, sty.section)}
|
|
92
91
|
>
|
|
93
92
|
<h1
|
|
@@ -124,7 +123,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
|
|
|
124
123
|
sty.randomDynamicPageButton
|
|
125
124
|
)}
|
|
126
125
|
/>
|
|
127
|
-
</
|
|
126
|
+
</section>
|
|
128
127
|
</div>
|
|
129
128
|
</div>
|
|
130
129
|
</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
|
});
|
package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx
CHANGED
|
@@ -12,16 +12,15 @@ 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,
|
|
19
|
-
ensureGlobalVariants,
|
|
20
18
|
hasVariant
|
|
21
19
|
} from "@plasmicapp/react-web";
|
|
22
20
|
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
23
21
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
24
|
-
import {
|
|
22
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
23
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
25
24
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
26
25
|
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
27
26
|
import sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
|
|
@@ -61,9 +60,8 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
61
60
|
const $ctx = useDataEnv?.() || {};
|
|
62
61
|
const refsRef = React.useRef({});
|
|
63
62
|
const $refs = refsRef.current;
|
|
64
|
-
const globalVariants =
|
|
65
|
-
|
|
66
|
-
});
|
|
63
|
+
const globalVariants = _useGlobalVariants();
|
|
64
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
67
65
|
return (
|
|
68
66
|
<React.Fragment>
|
|
69
67
|
<Head></Head>
|
|
@@ -85,15 +83,13 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
85
83
|
projectcss.root_reset,
|
|
86
84
|
projectcss.plasmic_default_styles,
|
|
87
85
|
projectcss.plasmic_mixins,
|
|
88
|
-
|
|
86
|
+
styleTokensClassNames,
|
|
89
87
|
sty.root
|
|
90
88
|
)}
|
|
91
89
|
>
|
|
92
|
-
<
|
|
93
|
-
as={"section"}
|
|
90
|
+
<section
|
|
94
91
|
data-plasmic-name={"section"}
|
|
95
92
|
data-plasmic-override={overrides.section}
|
|
96
|
-
hasGap={true}
|
|
97
93
|
className={classNames(projectcss.all, sty.section)}
|
|
98
94
|
>
|
|
99
95
|
<h1
|
|
@@ -160,7 +156,7 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
160
156
|
sty.randomDynamicPageButton
|
|
161
157
|
)}
|
|
162
158
|
/>
|
|
163
|
-
</
|
|
159
|
+
</section>
|
|
164
160
|
</div>
|
|
165
161
|
</div>
|
|
166
162
|
</React.Fragment>
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from "@plasmicapp/react-web";
|
|
18
18
|
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
19
19
|
import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
|
|
20
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
20
21
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
21
22
|
import sty from "./PlasmicRandomDynamicPageButton.module.css"; // plasmic-import: Q23H1_1M_P/css
|
|
22
23
|
|
|
@@ -55,6 +56,7 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props) {
|
|
|
55
56
|
const $ctx = useDataEnv?.() || {};
|
|
56
57
|
const refsRef = React.useRef({});
|
|
57
58
|
const $refs = refsRef.current;
|
|
59
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
58
60
|
return (
|
|
59
61
|
<Button
|
|
60
62
|
data-plasmic-name={"root"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// This code is auto-generated by Plasmic; please do not edit!
|
|
5
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
6
|
+
import {
|
|
7
|
+
createStyleTokensProvider,
|
|
8
|
+
createUseStyleTokens
|
|
9
|
+
} from "@plasmicapp/react-web";
|
|
10
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
11
|
+
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
12
|
+
|
|
13
|
+
const data = {
|
|
14
|
+
base: projectcss.plasmic_tokens,
|
|
15
|
+
varianted: []
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const _useStyleTokens = createUseStyleTokens(data, _useGlobalVariants);
|
|
19
|
+
|
|
20
|
+
export const StyleTokensProvider = createStyleTokensProvider(
|
|
21
|
+
data,
|
|
22
|
+
_useGlobalVariants
|
|
23
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// This code is auto-generated by Plasmic; please do not edit!
|
|
5
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
6
|
+
import { createUseGlobalVariants } from "@plasmicapp/react-web";
|
|
7
|
+
import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
|
|
8
|
+
|
|
9
|
+
export const _useGlobalVariants = createUseGlobalVariants({
|
|
10
|
+
screen: useScreenVariantsscBjPxgdxdzbv
|
|
11
|
+
});
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/cli": "^0.1.
|
|
13
|
-
"@plasmicapp/react-web": "^0.2.
|
|
14
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/cli": "^0.1.343",
|
|
13
|
+
"@plasmicapp/react-web": "^0.2.401",
|
|
14
|
+
"next": "14.2.32",
|
|
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
|
+
"eslint-config-next": "14.2.32"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -100,6 +100,8 @@
|
|
|
100
100
|
"indirect": false,
|
|
101
101
|
"globalContextsFilePath": "",
|
|
102
102
|
"splitsProviderFilePath": "",
|
|
103
|
+
"styleTokensProviderFilePath": "plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx",
|
|
104
|
+
"projectModuleFilePath": "plasmic/create_plasmic_app/plasmic.jsx",
|
|
103
105
|
"codeComponents": [
|
|
104
106
|
{
|
|
105
107
|
"id": "P6aGdYWZ2R",
|
|
@@ -131,6 +133,6 @@
|
|
|
131
133
|
"nextjsConfig": {
|
|
132
134
|
"pagesDir": "../pages"
|
|
133
135
|
},
|
|
134
|
-
"cliVersion": "0.1.
|
|
135
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
136
|
+
"cliVersion": "0.1.343",
|
|
137
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.343/dist/plasmic.schema.json"
|
|
136
138
|
}
|
package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx
CHANGED
|
@@ -61,6 +61,9 @@ import {
|
|
|
61
61
|
|
|
62
62
|
import * as pp from "@plasmicapp/react-web";
|
|
63
63
|
|
|
64
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
65
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
66
|
+
|
|
64
67
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
65
68
|
|
|
66
69
|
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
@@ -205,6 +208,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
205
208
|
};
|
|
206
209
|
|
|
207
210
|
const __nextRouter = useNextRouter();
|
|
211
|
+
|
|
208
212
|
const $ctx = useDataEnv?.() || {};
|
|
209
213
|
const refsRef = React.useRef({});
|
|
210
214
|
const $refs = refsRef.current;
|
|
@@ -265,21 +269,21 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
265
269
|
focusVisibleWithin_root: isRootFocusVisibleWithin
|
|
266
270
|
};
|
|
267
271
|
|
|
272
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
273
|
+
|
|
268
274
|
return (
|
|
269
|
-
<
|
|
270
|
-
as={"button"}
|
|
275
|
+
<button
|
|
271
276
|
data-plasmic-name={"root"}
|
|
272
277
|
data-plasmic-override={overrides.root}
|
|
273
278
|
data-plasmic-root={true}
|
|
274
279
|
data-plasmic-for-node={forNode}
|
|
275
|
-
hasGap={true}
|
|
276
280
|
className={classNames(
|
|
277
281
|
projectcss.all,
|
|
278
282
|
projectcss.button,
|
|
279
283
|
projectcss.root_reset,
|
|
280
284
|
projectcss.plasmic_default_styles,
|
|
281
285
|
projectcss.plasmic_mixins,
|
|
282
|
-
|
|
286
|
+
styleTokensClassNames,
|
|
283
287
|
sty.root,
|
|
284
288
|
{
|
|
285
289
|
[sty.root___focusVisibleWithin]: triggers.focusVisibleWithin_root,
|
|
@@ -641,7 +645,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
641
645
|
})}
|
|
642
646
|
</div>
|
|
643
647
|
) : null}
|
|
644
|
-
</
|
|
648
|
+
</button>
|
|
645
649
|
) as React.ReactElement | null;
|
|
646
650
|
}
|
|
647
651
|
|
package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx
CHANGED
|
@@ -60,6 +60,8 @@ import {
|
|
|
60
60
|
} from "@plasmicapp/react-web/lib/host";
|
|
61
61
|
|
|
62
62
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
63
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
64
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
63
65
|
|
|
64
66
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
65
67
|
|
|
@@ -120,10 +122,13 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
120
122
|
};
|
|
121
123
|
|
|
122
124
|
const __nextRouter = useNextRouter();
|
|
125
|
+
|
|
123
126
|
const $ctx = useDataEnv?.() || {};
|
|
124
127
|
const refsRef = React.useRef({});
|
|
125
128
|
const $refs = refsRef.current;
|
|
126
129
|
|
|
130
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
131
|
+
|
|
127
132
|
return (
|
|
128
133
|
<React.Fragment>
|
|
129
134
|
<Head></Head>
|
|
@@ -145,15 +150,13 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
145
150
|
projectcss.root_reset,
|
|
146
151
|
projectcss.plasmic_default_styles,
|
|
147
152
|
projectcss.plasmic_mixins,
|
|
148
|
-
|
|
153
|
+
styleTokensClassNames,
|
|
149
154
|
sty.root
|
|
150
155
|
)}
|
|
151
156
|
>
|
|
152
|
-
<
|
|
153
|
-
as={"section"}
|
|
157
|
+
<section
|
|
154
158
|
data-plasmic-name={"section"}
|
|
155
159
|
data-plasmic-override={overrides.section}
|
|
156
|
-
hasGap={true}
|
|
157
160
|
className={classNames(projectcss.all, sty.section)}
|
|
158
161
|
>
|
|
159
162
|
<h1
|
|
@@ -190,7 +193,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
190
193
|
sty.randomDynamicPageButton
|
|
191
194
|
)}
|
|
192
195
|
/>
|
|
193
|
-
</
|
|
196
|
+
</section>
|
|
194
197
|
</div>
|
|
195
198
|
</div>
|
|
196
199
|
</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)",
|
package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx
CHANGED
|
@@ -61,8 +61,8 @@ import {
|
|
|
61
61
|
|
|
62
62
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
63
63
|
import { Fetcher } from "@plasmicapp/react-web/lib/data-sources";
|
|
64
|
-
|
|
65
|
-
import {
|
|
64
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
65
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
66
66
|
|
|
67
67
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
68
68
|
|
|
@@ -124,13 +124,14 @@ 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;
|
|
130
131
|
|
|
131
|
-
const globalVariants =
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
const globalVariants = _useGlobalVariants();
|
|
133
|
+
|
|
134
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
134
135
|
|
|
135
136
|
return (
|
|
136
137
|
<React.Fragment>
|
|
@@ -153,15 +154,13 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
153
154
|
projectcss.root_reset,
|
|
154
155
|
projectcss.plasmic_default_styles,
|
|
155
156
|
projectcss.plasmic_mixins,
|
|
156
|
-
|
|
157
|
+
styleTokensClassNames,
|
|
157
158
|
sty.root
|
|
158
159
|
)}
|
|
159
160
|
>
|
|
160
|
-
<
|
|
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
|
-
</
|
|
230
|
+
</section>
|
|
232
231
|
</div>
|
|
233
232
|
</div>
|
|
234
233
|
</React.Fragment>
|
|
@@ -60,6 +60,8 @@ import {
|
|
|
60
60
|
} from "@plasmicapp/react-web/lib/host";
|
|
61
61
|
|
|
62
62
|
import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
|
|
63
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
64
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
63
65
|
|
|
64
66
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
65
67
|
|
|
@@ -124,10 +126,13 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props: {
|
|
|
124
126
|
};
|
|
125
127
|
|
|
126
128
|
const __nextRouter = useNextRouter();
|
|
129
|
+
|
|
127
130
|
const $ctx = useDataEnv?.() || {};
|
|
128
131
|
const refsRef = React.useRef({});
|
|
129
132
|
const $refs = refsRef.current;
|
|
130
133
|
|
|
134
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
135
|
+
|
|
131
136
|
return (
|
|
132
137
|
<Button
|
|
133
138
|
data-plasmic-name={"root"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// This code is auto-generated by Plasmic; please do not edit!
|
|
6
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
createStyleTokensProvider,
|
|
10
|
+
createUseStyleTokens
|
|
11
|
+
} from "@plasmicapp/react-web";
|
|
12
|
+
|
|
13
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
14
|
+
|
|
15
|
+
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
16
|
+
|
|
17
|
+
const data = {
|
|
18
|
+
base: projectcss.plasmic_tokens,
|
|
19
|
+
varianted: []
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const _useStyleTokens = createUseStyleTokens(data, _useGlobalVariants);
|
|
23
|
+
|
|
24
|
+
export const StyleTokensProvider = createStyleTokensProvider(
|
|
25
|
+
data,
|
|
26
|
+
_useGlobalVariants
|
|
27
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// This code is auto-generated by Plasmic; please do not edit!
|
|
6
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
7
|
+
|
|
8
|
+
import { createUseGlobalVariants } from "@plasmicapp/react-web";
|
|
9
|
+
|
|
10
|
+
import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
|
|
11
|
+
|
|
12
|
+
export const _useGlobalVariants = createUseGlobalVariants({
|
|
13
|
+
screen: useScreenVariantsscBjPxgdxdzbv
|
|
14
|
+
});
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/cli": "^0.1.
|
|
13
|
-
"@plasmicapp/react-web": "^0.2.
|
|
14
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/cli": "^0.1.343",
|
|
13
|
+
"@plasmicapp/react-web": "^0.2.401",
|
|
14
|
+
"next": "14.2.32",
|
|
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.
|
|
23
|
+
"eslint-config-next": "14.2.32",
|
|
24
24
|
"typescript": "^5"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -100,6 +100,8 @@
|
|
|
100
100
|
"indirect": false,
|
|
101
101
|
"globalContextsFilePath": "",
|
|
102
102
|
"splitsProviderFilePath": "",
|
|
103
|
+
"styleTokensProviderFilePath": "plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx",
|
|
104
|
+
"projectModuleFilePath": "plasmic/create_plasmic_app/plasmic.tsx",
|
|
103
105
|
"codeComponents": [
|
|
104
106
|
{
|
|
105
107
|
"id": "P6aGdYWZ2R",
|
|
@@ -131,6 +133,6 @@
|
|
|
131
133
|
"nextjsConfig": {
|
|
132
134
|
"pagesDir": "../pages"
|
|
133
135
|
},
|
|
134
|
-
"cliVersion": "0.1.
|
|
135
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
136
|
+
"cliVersion": "0.1.343",
|
|
137
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.343/dist/plasmic.schema.json"
|
|
136
138
|
}
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/loader-nextjs": "^1.0.
|
|
13
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/loader-nextjs": "^1.0.438",
|
|
13
|
+
"next": "14.2.32",
|
|
14
14
|
"react": "^18",
|
|
15
15
|
"react-dom": "^18"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"eslint": "^8",
|
|
19
|
-
"eslint-config-next": "14.2.
|
|
19
|
+
"eslint-config-next": "14.2.32"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/loader-nextjs": "^1.0.
|
|
13
|
-
"next": "14.2.
|
|
12
|
+
"@plasmicapp/loader-nextjs": "^1.0.438",
|
|
13
|
+
"next": "14.2.32",
|
|
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.
|
|
22
|
+
"eslint-config-next": "14.2.32",
|
|
23
23
|
"typescript": "^5"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@plasmicapp/cli": "^0.1.
|
|
14
|
-
"@plasmicapp/react-web": "^0.2.
|
|
15
|
-
"react": "^19.1.
|
|
16
|
-
"react-dom": "^19.1.
|
|
13
|
+
"@plasmicapp/cli": "^0.1.341",
|
|
14
|
+
"@plasmicapp/react-web": "^0.2.397",
|
|
15
|
+
"react": "^19.1.1",
|
|
16
|
+
"react-dom": "^19.1.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
20
|
-
"@types/react": "^19.1.
|
|
21
|
-
"@types/react-dom": "^19.1.
|
|
22
|
-
"@vitejs/plugin-react": "^4.
|
|
23
|
-
"eslint": "^9.
|
|
19
|
+
"@eslint/js": "^9.32.0",
|
|
20
|
+
"@types/react": "^19.1.9",
|
|
21
|
+
"@types/react-dom": "^19.1.7",
|
|
22
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
23
|
+
"eslint": "^9.32.0",
|
|
24
24
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
25
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
26
|
-
"globals": "^16.
|
|
27
|
-
"vite": "^7.
|
|
26
|
+
"globals": "^16.3.0",
|
|
27
|
+
"vite": "^7.1.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -128,6 +128,6 @@
|
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
130
|
"wrapPagesWithGlobalContexts": true,
|
|
131
|
-
"cliVersion": "0.1.
|
|
132
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
131
|
+
"cliVersion": "0.1.341",
|
|
132
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
|
|
133
133
|
}
|
package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
// Component: TQcvW_pSKi3
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import {
|
|
13
|
-
Stack as Stack__,
|
|
14
13
|
classNames,
|
|
15
14
|
createPlasmicElementProxy,
|
|
16
15
|
deriveRenderOpts,
|
|
@@ -124,13 +123,11 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
124
123
|
focusVisibleWithin_root: isRootFocusVisibleWithin
|
|
125
124
|
};
|
|
126
125
|
return (
|
|
127
|
-
<
|
|
128
|
-
as={"button"}
|
|
126
|
+
<button
|
|
129
127
|
data-plasmic-name={"root"}
|
|
130
128
|
data-plasmic-override={overrides.root}
|
|
131
129
|
data-plasmic-root={true}
|
|
132
130
|
data-plasmic-for-node={forNode}
|
|
133
|
-
hasGap={true}
|
|
134
131
|
className={classNames(
|
|
135
132
|
projectcss.all,
|
|
136
133
|
projectcss.button,
|
|
@@ -499,7 +496,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
499
496
|
})}
|
|
500
497
|
</div>
|
|
501
498
|
) : null}
|
|
502
|
-
</
|
|
499
|
+
</button>
|
|
503
500
|
);
|
|
504
501
|
}
|
|
505
502
|
|
package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx
CHANGED
|
@@ -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
|
|
@@ -65,11 +64,9 @@ function PlasmicDynamicPage__RenderFunc(props) {
|
|
|
65
64
|
sty.root
|
|
66
65
|
)}
|
|
67
66
|
>
|
|
68
|
-
<
|
|
69
|
-
as={"section"}
|
|
67
|
+
<section
|
|
70
68
|
data-plasmic-name={"section"}
|
|
71
69
|
data-plasmic-override={overrides.section}
|
|
72
|
-
hasGap={true}
|
|
73
70
|
className={classNames(projectcss.all, sty.section)}
|
|
74
71
|
>
|
|
75
72
|
<h1
|
|
@@ -106,7 +103,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
|
|
|
106
103
|
sty.randomDynamicPageButton
|
|
107
104
|
)}
|
|
108
105
|
/>
|
|
109
|
-
</
|
|
106
|
+
</section>
|
|
110
107
|
</div>
|
|
111
108
|
</div>
|
|
112
109
|
</React.Fragment>
|
package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx
CHANGED
|
@@ -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,
|
|
@@ -71,11 +70,9 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
71
70
|
sty.root
|
|
72
71
|
)}
|
|
73
72
|
>
|
|
74
|
-
<
|
|
75
|
-
as={"section"}
|
|
73
|
+
<section
|
|
76
74
|
data-plasmic-name={"section"}
|
|
77
75
|
data-plasmic-override={overrides.section}
|
|
78
|
-
hasGap={true}
|
|
79
76
|
className={classNames(projectcss.all, sty.section)}
|
|
80
77
|
>
|
|
81
78
|
<h1
|
|
@@ -142,7 +139,7 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
142
139
|
sty.randomDynamicPageButton
|
|
143
140
|
)}
|
|
144
141
|
/>
|
|
145
|
-
</
|
|
142
|
+
</section>
|
|
146
143
|
</div>
|
|
147
144
|
</div>
|
|
148
145
|
</React.Fragment>
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@plasmicapp/cli": "^0.1.
|
|
14
|
-
"@plasmicapp/react-web": "^0.2.
|
|
15
|
-
"react": "^19.1.
|
|
16
|
-
"react-dom": "^19.1.
|
|
13
|
+
"@plasmicapp/cli": "^0.1.341",
|
|
14
|
+
"@plasmicapp/react-web": "^0.2.397",
|
|
15
|
+
"react": "^19.1.1",
|
|
16
|
+
"react-dom": "^19.1.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
20
|
-
"@types/react": "^19.1.
|
|
21
|
-
"@types/react-dom": "^19.1.
|
|
22
|
-
"@vitejs/plugin-react": "^4.
|
|
23
|
-
"eslint": "^9.
|
|
19
|
+
"@eslint/js": "^9.32.0",
|
|
20
|
+
"@types/react": "^19.1.9",
|
|
21
|
+
"@types/react-dom": "^19.1.7",
|
|
22
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
23
|
+
"eslint": "^9.32.0",
|
|
24
24
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
25
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
26
|
-
"globals": "^16.
|
|
26
|
+
"globals": "^16.3.0",
|
|
27
27
|
"typescript": "~5.8.3",
|
|
28
|
-
"typescript-eslint": "^8.
|
|
29
|
-
"vite": "^7.
|
|
28
|
+
"typescript-eslint": "^8.39.0",
|
|
29
|
+
"vite": "^7.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -128,6 +128,6 @@
|
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
130
|
"wrapPagesWithGlobalContexts": true,
|
|
131
|
-
"cliVersion": "0.1.
|
|
132
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
131
|
+
"cliVersion": "0.1.341",
|
|
132
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
|
|
133
133
|
}
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx
CHANGED
|
@@ -254,13 +254,11 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
254
254
|
};
|
|
255
255
|
|
|
256
256
|
return (
|
|
257
|
-
<
|
|
258
|
-
as={"button"}
|
|
257
|
+
<button
|
|
259
258
|
data-plasmic-name={"root"}
|
|
260
259
|
data-plasmic-override={overrides.root}
|
|
261
260
|
data-plasmic-root={true}
|
|
262
261
|
data-plasmic-for-node={forNode}
|
|
263
|
-
hasGap={true}
|
|
264
262
|
className={classNames(
|
|
265
263
|
projectcss.all,
|
|
266
264
|
projectcss.button,
|
|
@@ -629,7 +627,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
629
627
|
})}
|
|
630
628
|
</div>
|
|
631
629
|
) : null}
|
|
632
|
-
</
|
|
630
|
+
</button>
|
|
633
631
|
) as React.ReactElement | null;
|
|
634
632
|
}
|
|
635
633
|
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx
CHANGED
|
@@ -131,11 +131,9 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
131
131
|
sty.root
|
|
132
132
|
)}
|
|
133
133
|
>
|
|
134
|
-
<
|
|
135
|
-
as={"section"}
|
|
134
|
+
<section
|
|
136
135
|
data-plasmic-name={"section"}
|
|
137
136
|
data-plasmic-override={overrides.section}
|
|
138
|
-
hasGap={true}
|
|
139
137
|
className={classNames(projectcss.all, sty.section)}
|
|
140
138
|
>
|
|
141
139
|
<h1
|
|
@@ -172,7 +170,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
172
170
|
sty.randomDynamicPageButton
|
|
173
171
|
)}
|
|
174
172
|
/>
|
|
175
|
-
</
|
|
173
|
+
</section>
|
|
176
174
|
</div>
|
|
177
175
|
</div>
|
|
178
176
|
</React.Fragment>
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx
CHANGED
|
@@ -139,11 +139,9 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
139
139
|
sty.root
|
|
140
140
|
)}
|
|
141
141
|
>
|
|
142
|
-
<
|
|
143
|
-
as={"section"}
|
|
142
|
+
<section
|
|
144
143
|
data-plasmic-name={"section"}
|
|
145
144
|
data-plasmic-override={overrides.section}
|
|
146
|
-
hasGap={true}
|
|
147
145
|
className={classNames(projectcss.all, sty.section)}
|
|
148
146
|
>
|
|
149
147
|
<h1
|
|
@@ -210,7 +208,7 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
210
208
|
sty.randomDynamicPageButton
|
|
211
209
|
)}
|
|
212
210
|
/>
|
|
213
|
-
</
|
|
211
|
+
</section>
|
|
214
212
|
</div>
|
|
215
213
|
</div>
|
|
216
214
|
</React.Fragment>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.113",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"validate-npm-package-name": "^3.0.0",
|
|
47
47
|
"yargs": "^16.2.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d84b583160c35beda2c17b6fbc2c7231916d18fd"
|
|
50
50
|
}
|