create-plasmic-app 0.0.62 → 0.0.64
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 -2
- package/cpa-out/.gitignore +15 -0
- package/cpa-out/gatsby-codegen-js/gatsby-browser.jsx +11 -0
- package/cpa-out/gatsby-codegen-js/gatsby-config.js +9 -0
- package/cpa-out/gatsby-codegen-js/gatsby-node.js +0 -0
- package/cpa-out/gatsby-codegen-js/gatsby-ssr.jsx +11 -0
- package/cpa-out/gatsby-codegen-js/package.json +26 -0
- package/cpa-out/gatsby-codegen-js/plasmic.json +79 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +29 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +206 -0
- package/cpa-out/gatsby-codegen-js/src/pages/404.js +4 -0
- package/cpa-out/gatsby-codegen-js/src/pages/index.jsx +39 -0
- package/cpa-out/gatsby-codegen-ts/gatsby-browser.tsx +11 -0
- package/cpa-out/gatsby-codegen-ts/gatsby-config.ts +14 -0
- package/cpa-out/gatsby-codegen-ts/gatsby-node.ts +0 -0
- package/cpa-out/gatsby-codegen-ts/gatsby-ssr.tsx +11 -0
- package/cpa-out/gatsby-codegen-ts/package.json +34 -0
- package/cpa-out/gatsby-codegen-ts/plasmic.json +79 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +30 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +290 -0
- package/cpa-out/gatsby-codegen-ts/src/pages/404.js +4 -0
- package/cpa-out/gatsby-codegen-ts/src/pages/index.tsx +41 -0
- package/cpa-out/gatsby-codegen-ts/tsconfig.json +102 -0
- package/cpa-out/gatsby-loader-js/gatsby-config.js +25 -0
- package/cpa-out/gatsby-loader-js/gatsby-node.js +0 -0
- package/cpa-out/gatsby-loader-js/gatsby-ssr.jsx +44 -0
- package/cpa-out/gatsby-loader-js/package.json +24 -0
- package/cpa-out/gatsby-loader-js/src/pages/404.js +4 -0
- package/cpa-out/gatsby-loader-js/src/pages/plasmic-host.jsx +19 -0
- package/cpa-out/gatsby-loader-js/src/plasmic-init.js +18 -0
- package/cpa-out/gatsby-loader-js/src/templates/defaultPlasmicPage.jsx +44 -0
- package/cpa-out/gatsby-loader-ts/gatsby-config.ts +31 -0
- package/cpa-out/gatsby-loader-ts/gatsby-node.ts +0 -0
- package/cpa-out/gatsby-loader-ts/gatsby-ssr.tsx +44 -0
- package/cpa-out/gatsby-loader-ts/package.json +32 -0
- package/cpa-out/gatsby-loader-ts/src/pages/404.ts +4 -0
- package/cpa-out/gatsby-loader-ts/src/pages/plasmic-host.tsx +24 -0
- package/cpa-out/gatsby-loader-ts/src/plasmic-init.ts +19 -0
- package/cpa-out/gatsby-loader-ts/src/templates/defaultPlasmicPage.tsx +52 -0
- package/cpa-out/gatsby-loader-ts/tsconfig.json +102 -0
- package/cpa-out/nextjs-app-loader-js/app/[[...catchall]]/page.jsx +56 -0
- package/cpa-out/nextjs-app-loader-js/app/head.js +10 -0
- package/cpa-out/nextjs-app-loader-js/app/layout.js +14 -0
- package/cpa-out/nextjs-app-loader-js/app/plasmic-host/page.jsx +6 -0
- package/cpa-out/nextjs-app-loader-js/next.config.js +13 -0
- package/cpa-out/nextjs-app-loader-js/package.json +20 -0
- package/cpa-out/nextjs-app-loader-js/pages/api/hello.js +5 -0
- package/cpa-out/nextjs-app-loader-js/plasmic-init-client.jsx +65 -0
- package/cpa-out/nextjs-app-loader-js/plasmic-init.js +16 -0
- package/cpa-out/nextjs-app-loader-ts/app/[[...catchall]]/page.tsx +59 -0
- package/cpa-out/nextjs-app-loader-ts/app/head.tsx +10 -0
- package/cpa-out/nextjs-app-loader-ts/app/layout.tsx +18 -0
- package/cpa-out/nextjs-app-loader-ts/app/plasmic-host/page.tsx +6 -0
- package/cpa-out/nextjs-app-loader-ts/next.config.js +13 -0
- package/cpa-out/nextjs-app-loader-ts/package.json +24 -0
- package/cpa-out/nextjs-app-loader-ts/pages/api/hello.ts +13 -0
- package/cpa-out/nextjs-app-loader-ts/plasmic-init-client.tsx +65 -0
- package/cpa-out/nextjs-app-loader-ts/plasmic-init.ts +16 -0
- package/cpa-out/nextjs-app-loader-ts/tsconfig.json +29 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +29 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +205 -0
- package/cpa-out/nextjs-pages-codegen-js/next.config.js +10 -0
- package/cpa-out/nextjs-pages-codegen-js/package.json +22 -0
- package/cpa-out/nextjs-pages-codegen-js/pages/_app.jsx +11 -0
- package/cpa-out/nextjs-pages-codegen-js/pages/api/hello.js +5 -0
- package/cpa-out/nextjs-pages-codegen-js/pages/index.jsx +35 -0
- package/cpa-out/nextjs-pages-codegen-js/pages/plasmic-host.jsx +15 -0
- package/cpa-out/nextjs-pages-codegen-js/plasmic.json +79 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +30 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +287 -0
- package/cpa-out/nextjs-pages-codegen-ts/next.config.js +10 -0
- package/cpa-out/nextjs-pages-codegen-ts/package.json +26 -0
- package/cpa-out/nextjs-pages-codegen-ts/pages/_app.tsx +12 -0
- package/cpa-out/nextjs-pages-codegen-ts/pages/api/hello.ts +13 -0
- package/cpa-out/nextjs-pages-codegen-ts/pages/index.tsx +37 -0
- package/cpa-out/nextjs-pages-codegen-ts/pages/plasmic-host.tsx +15 -0
- package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +79 -0
- package/cpa-out/nextjs-pages-codegen-ts/tsconfig.json +24 -0
- package/cpa-out/nextjs-pages-loader-js/next.config.js +10 -0
- package/cpa-out/nextjs-pages-loader-js/package.json +20 -0
- package/cpa-out/nextjs-pages-loader-js/pages/[[...catchall]].jsx +66 -0
- package/cpa-out/nextjs-pages-loader-js/pages/api/hello.js +5 -0
- package/cpa-out/nextjs-pages-loader-js/pages/plasmic-host.jsx +7 -0
- package/cpa-out/nextjs-pages-loader-js/plasmic-init.js +25 -0
- package/cpa-out/nextjs-pages-loader-ts/next.config.js +10 -0
- package/cpa-out/nextjs-pages-loader-ts/package.json +24 -0
- package/cpa-out/nextjs-pages-loader-ts/pages/[[...catchall]].tsx +70 -0
- package/cpa-out/nextjs-pages-loader-ts/pages/api/hello.ts +13 -0
- package/cpa-out/nextjs-pages-loader-ts/pages/plasmic-host.tsx +7 -0
- package/cpa-out/nextjs-pages-loader-ts/plasmic-init.ts +25 -0
- package/cpa-out/nextjs-pages-loader-ts/tsconfig.json +24 -0
- package/cpa-out/react-codegen-js/package.json +41 -0
- package/cpa-out/react-codegen-js/plasmic.json +76 -0
- package/cpa-out/react-codegen-js/src/App.jsx +9 -0
- package/cpa-out/react-codegen-js/src/components/Homepage.jsx +26 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +29 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +196 -0
- package/cpa-out/react-codegen-js/src/index.js +17 -0
- package/cpa-out/react-codegen-js/src/reportWebVitals.js +13 -0
- package/cpa-out/react-codegen-js/src/setupTests.js +5 -0
- package/cpa-out/react-codegen-ts/package.json +46 -0
- package/cpa-out/react-codegen-ts/plasmic.json +76 -0
- package/cpa-out/react-codegen-ts/src/App.tsx +9 -0
- package/cpa-out/react-codegen-ts/src/components/Homepage.tsx +45 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +30 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +280 -0
- package/cpa-out/react-codegen-ts/src/index.tsx +19 -0
- package/cpa-out/react-codegen-ts/src/react-app-env.d.ts +1 -0
- package/cpa-out/react-codegen-ts/src/reportWebVitals.ts +15 -0
- package/cpa-out/react-codegen-ts/src/setupTests.ts +5 -0
- package/cpa-out/react-codegen-ts/tsconfig.json +26 -0
- package/cpa-out/react-loader-js/package.json +41 -0
- package/cpa-out/react-loader-js/plasmic.json +76 -0
- package/cpa-out/react-loader-js/src/App.jsx +9 -0
- package/cpa-out/react-loader-js/src/components/Homepage.jsx +26 -0
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +29 -0
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +196 -0
- package/cpa-out/react-loader-js/src/index.js +17 -0
- package/cpa-out/react-loader-js/src/reportWebVitals.js +13 -0
- package/cpa-out/react-loader-js/src/setupTests.js +5 -0
- package/cpa-out/react-loader-ts/package.json +46 -0
- package/cpa-out/react-loader-ts/plasmic.json +76 -0
- package/cpa-out/react-loader-ts/src/App.tsx +9 -0
- package/cpa-out/react-loader-ts/src/components/Homepage.tsx +45 -0
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +30 -0
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +280 -0
- package/cpa-out/react-loader-ts/src/index.tsx +19 -0
- package/cpa-out/react-loader-ts/src/react-app-env.d.ts +1 -0
- package/cpa-out/react-loader-ts/src/reportWebVitals.ts +15 -0
- package/cpa-out/react-loader-ts/src/setupTests.ts +5 -0
- package/cpa-out/react-loader-ts/tsconfig.json +26 -0
- package/dist/gatsby/gatsby.d.ts +6 -0
- package/dist/{strategies → gatsby}/gatsby.js +26 -29
- package/dist/gatsby/template.d.ts +11 -0
- package/dist/{templates/gatsby.js → gatsby/template.js} +34 -42
- package/dist/index.d.ts +1 -1
- package/dist/index.js +57 -27
- package/dist/lib.d.ts +3 -4
- package/dist/lib.js +22 -12
- package/dist/nextjs/nextjs.d.ts +2 -0
- package/dist/nextjs/nextjs.js +155 -0
- package/dist/nextjs/templates/app-loader/catchall-page.d.ts +2 -0
- package/dist/nextjs/templates/app-loader/catchall-page.js +67 -0
- package/dist/nextjs/templates/app-loader/plasmic-host.d.ts +1 -0
- package/dist/nextjs/templates/app-loader/plasmic-host.js +13 -0
- package/dist/nextjs/templates/app-loader/plasmic-init-client.d.ts +2 -0
- package/dist/nextjs/templates/app-loader/plasmic-init-client.js +73 -0
- package/dist/nextjs/templates/app-loader/plasmic-init.d.ts +1 -0
- package/dist/nextjs/templates/app-loader/plasmic-init.js +23 -0
- package/dist/nextjs/templates/pages-codegen/app.d.ts +2 -0
- package/dist/nextjs/templates/pages-codegen/app.js +20 -0
- package/dist/nextjs/templates/pages-codegen/plasmic-host.d.ts +1 -0
- package/dist/nextjs/templates/pages-codegen/plasmic-host.js +22 -0
- package/dist/nextjs/templates/pages-loader/catchall-page.d.ts +2 -0
- package/dist/nextjs/templates/pages-loader/catchall-page.js +77 -0
- package/dist/nextjs/templates/pages-loader/plasmic-host.d.ts +1 -0
- package/dist/nextjs/templates/pages-loader/plasmic-host.js +14 -0
- package/dist/nextjs/templates/pages-loader/plasmic-init.d.ts +1 -0
- package/dist/nextjs/templates/pages-loader/plasmic-init.js +32 -0
- package/dist/react/react.d.ts +2 -0
- package/dist/{strategies → react}/react.js +10 -10
- package/dist/templates/readme.d.ts +2 -2
- package/dist/templates/readme.js +5 -4
- package/dist/templates/welcomePage.d.ts +2 -2
- package/dist/templates/welcomePage.js +5 -5
- package/dist/{strategies/common.d.ts → utils/codegen.d.ts} +0 -0
- package/dist/{strategies/common.js → utils/codegen.js} +0 -0
- package/dist/utils/file-utils.d.ts +2 -2
- package/dist/utils/file-utils.js +3 -3
- package/dist/{strategies/types.d.ts → utils/strategy.d.ts} +16 -14
- package/dist/{strategies/types.js → utils/strategy.js} +0 -0
- package/dist/utils/types.d.ts +9 -0
- package/dist/utils/types.js +7 -0
- package/package.json +4 -3
- package/run-cpa.ts +151 -0
- package/src/{strategies → gatsby}/gatsby.ts +28 -46
- package/src/{templates/gatsby.ts → gatsby/template.ts} +41 -51
- package/src/index.ts +86 -56
- package/src/lib.ts +30 -15
- package/src/nextjs/nextjs.ts +180 -0
- package/src/nextjs/templates/app-loader/catchall-page.ts +71 -0
- package/src/nextjs/templates/app-loader/plasmic-host.ts +9 -0
- package/src/nextjs/templates/app-loader/plasmic-init-client.ts +74 -0
- package/src/nextjs/templates/app-loader/plasmic-init.ts +22 -0
- package/src/nextjs/templates/pages-codegen/app.ts +24 -0
- package/src/nextjs/templates/pages-codegen/plasmic-host.ts +18 -0
- package/src/nextjs/templates/pages-loader/catchall-page.ts +81 -0
- package/src/nextjs/templates/pages-loader/plasmic-host.ts +10 -0
- package/src/nextjs/templates/pages-loader/plasmic-init.ts +31 -0
- package/src/{strategies → react}/react.ts +8 -10
- package/src/templates/readme.ts +5 -5
- package/src/templates/welcomePage.ts +6 -7
- package/src/{strategies/common.ts → utils/codegen.ts} +0 -0
- package/src/utils/file-utils.ts +4 -4
- package/src/utils/strategy.ts +48 -0
- package/src/utils/types.ts +12 -0
- package/dist/strategies/gatsby.d.ts +0 -7
- package/dist/strategies/index.d.ts +0 -2
- package/dist/strategies/index.js +0 -22
- package/dist/strategies/nextjs.d.ts +0 -3
- package/dist/strategies/nextjs.js +0 -104
- package/dist/strategies/react.d.ts +0 -3
- package/dist/templates/gatsby.d.ts +0 -11
- package/dist/templates/nextjs.d.ts +0 -5
- package/dist/templates/nextjs.js +0 -162
- package/src/strategies/index.ts +0 -21
- package/src/strategies/nextjs.ts +0 -131
- package/src/strategies/types.ts +0 -42
- package/src/templates/nextjs.ts +0 -170
package/README.internal.md
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# https://jasonstitt.com/gitignore-whitelisting-patterns
|
|
2
|
+
# Ignore everything
|
|
3
|
+
*
|
|
4
|
+
# But descend into directories
|
|
5
|
+
!*/
|
|
6
|
+
|
|
7
|
+
# Whitelist - only add files that we want to track
|
|
8
|
+
!/.gitignore
|
|
9
|
+
!**/package.json
|
|
10
|
+
!**/plasmic.json
|
|
11
|
+
!**/tsconfig.json
|
|
12
|
+
!**/*.js
|
|
13
|
+
!**/*.jsx
|
|
14
|
+
!**/*.ts
|
|
15
|
+
!**/*.tsx
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
3
|
+
import Helmet from "react-helmet";
|
|
4
|
+
|
|
5
|
+
export const wrapRootElement = ({ element }) => {
|
|
6
|
+
return (
|
|
7
|
+
<PlasmicRootProvider Head={Helmet}>
|
|
8
|
+
{element}
|
|
9
|
+
</PlasmicRootProvider>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
3
|
+
import Helmet from "react-helmet";
|
|
4
|
+
|
|
5
|
+
export const wrapRootElement = ({ element }) => {
|
|
6
|
+
return (
|
|
7
|
+
<PlasmicRootProvider Head={Helmet}>
|
|
8
|
+
{element}
|
|
9
|
+
</PlasmicRootProvider>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gatsby-codegen-js",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "Plasmic app for 47tFXWjN2C4NyHFGGpaYQ3",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"gatsby"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"develop": "gatsby develop",
|
|
11
|
+
"start": "gatsby develop",
|
|
12
|
+
"build": "gatsby build",
|
|
13
|
+
"serve": "gatsby serve",
|
|
14
|
+
"clean": "gatsby clean"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@plasmicapp/cli": "^0.1.205",
|
|
18
|
+
"@plasmicapp/host": "^1.0.100",
|
|
19
|
+
"@plasmicapp/react-web": "^0.2.150",
|
|
20
|
+
"gatsby": "^5.5.0",
|
|
21
|
+
"gatsby-plugin-react-helmet": "^6.5.0",
|
|
22
|
+
"react": "^18.2.0",
|
|
23
|
+
"react-dom": "^18.2.0",
|
|
24
|
+
"react-helmet": "^6.1.0"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"platform": "gatsby",
|
|
3
|
+
"code": {
|
|
4
|
+
"lang": "js",
|
|
5
|
+
"scheme": "blackbox",
|
|
6
|
+
"reactRuntime": "classic"
|
|
7
|
+
},
|
|
8
|
+
"style": {
|
|
9
|
+
"scheme": "css-modules",
|
|
10
|
+
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.css"
|
|
11
|
+
},
|
|
12
|
+
"images": {
|
|
13
|
+
"scheme": "files",
|
|
14
|
+
"publicDir": "../../static",
|
|
15
|
+
"publicUrlPrefix": "/"
|
|
16
|
+
},
|
|
17
|
+
"tokens": {
|
|
18
|
+
"scheme": "theo",
|
|
19
|
+
"tokensFilePath": "plasmic-tokens.theo.json"
|
|
20
|
+
},
|
|
21
|
+
"srcDir": "src/components",
|
|
22
|
+
"defaultPlasmicDir": "./plasmic",
|
|
23
|
+
"projects": [
|
|
24
|
+
{
|
|
25
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
26
|
+
"projectApiToken": "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
27
|
+
"projectName": "create-plasmic-app",
|
|
28
|
+
"version": "latest",
|
|
29
|
+
"cssFilePath": "plasmic/create_plasmic_app/plasmic_create_plasmic_app.module.css",
|
|
30
|
+
"components": [
|
|
31
|
+
{
|
|
32
|
+
"id": "6uuAAE1jiCew",
|
|
33
|
+
"name": "Homepage",
|
|
34
|
+
"type": "managed",
|
|
35
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
36
|
+
"renderModuleFilePath": "plasmic/create_plasmic_app/PlasmicHomepage.jsx",
|
|
37
|
+
"importSpec": {
|
|
38
|
+
"modulePath": "../pages/index.jsx"
|
|
39
|
+
},
|
|
40
|
+
"cssFilePath": "plasmic/create_plasmic_app/PlasmicHomepage.module.css",
|
|
41
|
+
"scheme": "blackbox",
|
|
42
|
+
"componentType": "page"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"icons": [],
|
|
46
|
+
"images": [],
|
|
47
|
+
"indirect": false,
|
|
48
|
+
"globalContextsFilePath": "",
|
|
49
|
+
"codeComponents": [
|
|
50
|
+
{
|
|
51
|
+
"id": "P6aGdYWZ2R",
|
|
52
|
+
"name": "PlasmicHead",
|
|
53
|
+
"componentImportPath": "@plasmicapp/react-web"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "8G2A-uTjGa",
|
|
57
|
+
"name": "Fetcher",
|
|
58
|
+
"componentImportPath": "@plasmicapp/react-web/lib/data-sources"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"globalVariants": {
|
|
64
|
+
"variantGroups": [
|
|
65
|
+
{
|
|
66
|
+
"id": "SCBjPXGDXDZBV",
|
|
67
|
+
"name": "Screen",
|
|
68
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
69
|
+
"contextFilePath": "plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"wrapPagesWithGlobalContexts": true,
|
|
74
|
+
"gatsbyConfig": {
|
|
75
|
+
"pagesDir": "../pages"
|
|
76
|
+
},
|
|
77
|
+
"cliVersion": "0.1.205",
|
|
78
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.205/dist/plasmic.schema.json"
|
|
79
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* prettier-ignore-start */
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import * as p from "@plasmicapp/react-web";
|
|
7
|
+
|
|
8
|
+
export const ScreenContext = React.createContext(
|
|
9
|
+
"PLEASE_RENDER_INSIDE_PROVIDER"
|
|
10
|
+
);
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Plasmic now uses a custom hook for Screen variants, which is
|
|
13
|
+
* automatically included in your components. Please remove this provider
|
|
14
|
+
* from your code.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export function ScreenVariantProvider(props) {
|
|
18
|
+
console.warn(
|
|
19
|
+
"DEPRECATED: Plasmic now uses a custom hook for Screen variants, which is automatically included in your components. Please remove this provider from your code."
|
|
20
|
+
);
|
|
21
|
+
return props.children;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const useScreenVariants = p.createUseScreenVariants(true, {
|
|
25
|
+
desktopOnly: "(min-width:768px)",
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export default ScreenContext;
|
|
29
|
+
/* prettier-ignore-end */
|
package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* prettier-ignore-start */
|
|
5
|
+
/** @jsxRuntime classic */
|
|
6
|
+
/** @jsx createPlasmicElementProxy */
|
|
7
|
+
/** @jsxFrag React.Fragment */
|
|
8
|
+
// This class is auto-generated by Plasmic; please do not edit!
|
|
9
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
10
|
+
// Component: 6uuAAE1jiCew
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import * as p from "@plasmicapp/react-web";
|
|
13
|
+
import * as ph from "@plasmicapp/host";
|
|
14
|
+
import {
|
|
15
|
+
hasVariant,
|
|
16
|
+
classNames,
|
|
17
|
+
createPlasmicElementProxy,
|
|
18
|
+
deriveRenderOpts,
|
|
19
|
+
ensureGlobalVariants
|
|
20
|
+
} from "@plasmicapp/react-web";
|
|
21
|
+
import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
|
|
22
|
+
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
23
|
+
import * as projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
24
|
+
import * as sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
|
|
25
|
+
|
|
26
|
+
export const PlasmicHomepage__VariantProps = new Array();
|
|
27
|
+
|
|
28
|
+
export const PlasmicHomepage__ArgProps = new Array();
|
|
29
|
+
|
|
30
|
+
const __wrapUserFunction =
|
|
31
|
+
globalThis.__PlasmicWrapUserFunction ?? ((loc, fn) => fn());
|
|
32
|
+
|
|
33
|
+
const __wrapUserPromise =
|
|
34
|
+
globalThis.__PlasmicWrapUserPromise ??
|
|
35
|
+
(async (loc, promise) => {
|
|
36
|
+
return await promise;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function Head() {
|
|
40
|
+
return <></>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function PlasmicHomepage__RenderFunc(props) {
|
|
44
|
+
const { variants, overrides, forNode } = props;
|
|
45
|
+
const $ctx = ph.useDataEnv?.() || {};
|
|
46
|
+
const args = React.useMemo(() => Object.assign({}, props.args), [props.args]);
|
|
47
|
+
const $props = {
|
|
48
|
+
...args,
|
|
49
|
+
...variants
|
|
50
|
+
};
|
|
51
|
+
const currentUser = p.useCurrentUser?.() || {};
|
|
52
|
+
const [$queries, setDollarQueries] = React.useState({});
|
|
53
|
+
const globalVariants = ensureGlobalVariants({
|
|
54
|
+
screen: useScreenVariantsscBjPxgdxdzbv()
|
|
55
|
+
});
|
|
56
|
+
return (
|
|
57
|
+
<React.Fragment>
|
|
58
|
+
<style>{`
|
|
59
|
+
body {
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
`}</style>
|
|
63
|
+
|
|
64
|
+
<div className={projectcss.plasmic_page_wrapper}>
|
|
65
|
+
<div
|
|
66
|
+
data-plasmic-name={"root"}
|
|
67
|
+
data-plasmic-override={overrides.root}
|
|
68
|
+
data-plasmic-root={true}
|
|
69
|
+
data-plasmic-for-node={forNode}
|
|
70
|
+
className={classNames(
|
|
71
|
+
projectcss.all,
|
|
72
|
+
projectcss.root_reset,
|
|
73
|
+
projectcss.plasmic_default_styles,
|
|
74
|
+
projectcss.plasmic_mixins,
|
|
75
|
+
sty.root
|
|
76
|
+
)}
|
|
77
|
+
>
|
|
78
|
+
<p.Stack
|
|
79
|
+
as={"section"}
|
|
80
|
+
data-plasmic-name={"section"}
|
|
81
|
+
data-plasmic-override={overrides.section}
|
|
82
|
+
hasGap={true}
|
|
83
|
+
className={classNames(projectcss.all, sty.section)}
|
|
84
|
+
>
|
|
85
|
+
<h1
|
|
86
|
+
data-plasmic-name={"h1"}
|
|
87
|
+
data-plasmic-override={overrides.h1}
|
|
88
|
+
className={classNames(
|
|
89
|
+
projectcss.all,
|
|
90
|
+
projectcss.h1,
|
|
91
|
+
projectcss.__wab_text,
|
|
92
|
+
sty.h1
|
|
93
|
+
)}
|
|
94
|
+
>
|
|
95
|
+
{"create-plasmic-app"}
|
|
96
|
+
</h1>
|
|
97
|
+
|
|
98
|
+
<div
|
|
99
|
+
data-plasmic-name={"text"}
|
|
100
|
+
data-plasmic-override={overrides.text}
|
|
101
|
+
className={classNames(
|
|
102
|
+
projectcss.all,
|
|
103
|
+
projectcss.__wab_text,
|
|
104
|
+
sty.text
|
|
105
|
+
)}
|
|
106
|
+
>
|
|
107
|
+
{hasVariant(globalVariants, "screen", "desktopOnly") ? (
|
|
108
|
+
<React.Fragment>
|
|
109
|
+
<React.Fragment>
|
|
110
|
+
{
|
|
111
|
+
"This project is used by run-cpa.ts in the create-plasmic-app repo.\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. "
|
|
112
|
+
}
|
|
113
|
+
</React.Fragment>
|
|
114
|
+
<span
|
|
115
|
+
className={"plasmic_default__all plasmic_default__span"}
|
|
116
|
+
style={{ fontWeight: 700 }}
|
|
117
|
+
>
|
|
118
|
+
{"Therefore, please avoid changing this project."}
|
|
119
|
+
</span>
|
|
120
|
+
</React.Fragment>
|
|
121
|
+
) : (
|
|
122
|
+
<React.Fragment>
|
|
123
|
+
<React.Fragment>
|
|
124
|
+
{
|
|
125
|
+
"If you haven't already done so, go back and learn the basics by going through the Plasmic Levels tutorial.\n\nIt's always easier to start from examples! Add a new page using a template—do this from the list of pages in the top left (the gray + button).\n\nOr press the big blue + button to start dragging items into this page.\n\nIntegrate this project into your codebase—press the "
|
|
126
|
+
}
|
|
127
|
+
</React.Fragment>
|
|
128
|
+
<span
|
|
129
|
+
className={"plasmic_default__all plasmic_default__span"}
|
|
130
|
+
style={{ fontWeight: 700 }}
|
|
131
|
+
>
|
|
132
|
+
{"Code"}
|
|
133
|
+
</span>
|
|
134
|
+
<React.Fragment>
|
|
135
|
+
{
|
|
136
|
+
" button in the top right and follow the quickstart instructions.\n\nJoin our Slack community (icon in bottom left) for help any time."
|
|
137
|
+
}
|
|
138
|
+
</React.Fragment>
|
|
139
|
+
</React.Fragment>
|
|
140
|
+
)}
|
|
141
|
+
</div>
|
|
142
|
+
</p.Stack>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</React.Fragment>
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const PlasmicDescendants = {
|
|
150
|
+
root: ["root", "section", "h1", "text"],
|
|
151
|
+
section: ["section", "h1", "text"],
|
|
152
|
+
h1: ["h1"],
|
|
153
|
+
text: ["text"]
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
function makeNodeComponent(nodeName) {
|
|
157
|
+
const func = function (props) {
|
|
158
|
+
const { variants, args, overrides } = React.useMemo(
|
|
159
|
+
() =>
|
|
160
|
+
deriveRenderOpts(props, {
|
|
161
|
+
name: nodeName,
|
|
162
|
+
descendantNames: [...PlasmicDescendants[nodeName]],
|
|
163
|
+
internalArgPropNames: PlasmicHomepage__ArgProps,
|
|
164
|
+
internalVariantPropNames: PlasmicHomepage__VariantProps
|
|
165
|
+
}),
|
|
166
|
+
[props, nodeName]
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
return PlasmicHomepage__RenderFunc({
|
|
170
|
+
variants,
|
|
171
|
+
args,
|
|
172
|
+
overrides,
|
|
173
|
+
forNode: nodeName
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
if (nodeName === "root") {
|
|
177
|
+
func.displayName = "PlasmicHomepage";
|
|
178
|
+
} else {
|
|
179
|
+
func.displayName = `PlasmicHomepage.${nodeName}`;
|
|
180
|
+
}
|
|
181
|
+
return func;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export const PlasmicHomepage = Object.assign(
|
|
185
|
+
// Top-level PlasmicHomepage renders the root element
|
|
186
|
+
makeNodeComponent("root"),
|
|
187
|
+
{
|
|
188
|
+
// Helper components rendering sub-elements
|
|
189
|
+
section: makeNodeComponent("section"),
|
|
190
|
+
h1: makeNodeComponent("h1"),
|
|
191
|
+
text: makeNodeComponent("text"),
|
|
192
|
+
// Metadata about props expected for PlasmicHomepage
|
|
193
|
+
internalVariantProps: PlasmicHomepage__VariantProps,
|
|
194
|
+
internalArgProps: PlasmicHomepage__ArgProps,
|
|
195
|
+
// Page metadata
|
|
196
|
+
pageMetadata: {
|
|
197
|
+
title: "",
|
|
198
|
+
description: "",
|
|
199
|
+
ogImageSrc: "",
|
|
200
|
+
canonical: ""
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
|
|
205
|
+
export default PlasmicHomepage;
|
|
206
|
+
/* prettier-ignore-end */
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// This is a skeleton starter React page generated by Plasmic.
|
|
2
|
+
// This file is owned by you, feel free to edit as you see fit.
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as ph from "@plasmicapp/host";
|
|
5
|
+
import {
|
|
6
|
+
PlasmicHomepage,
|
|
7
|
+
Head
|
|
8
|
+
} from "../components/plasmic/create_plasmic_app/PlasmicHomepage";
|
|
9
|
+
|
|
10
|
+
export { Head };
|
|
11
|
+
|
|
12
|
+
function Homepage({ location, params }) {
|
|
13
|
+
// Use PlasmicHomepage to render this component as it was
|
|
14
|
+
// designed in Plasmic, by activating the appropriate variants,
|
|
15
|
+
// attaching the appropriate event handlers, etc. You
|
|
16
|
+
// can also install whatever React hooks you need here to manage state or
|
|
17
|
+
// fetch data.
|
|
18
|
+
//
|
|
19
|
+
// Props you can pass into PlasmicHomepage are:
|
|
20
|
+
// 1. Variants you want to activate,
|
|
21
|
+
// 2. Contents for slots you want to fill,
|
|
22
|
+
// 3. Overrides for any named node in the component to attach behavior and data,
|
|
23
|
+
// 4. Props to set on the root node.
|
|
24
|
+
//
|
|
25
|
+
// By default, PlasmicHomepage is wrapped by your project's global
|
|
26
|
+
// variant context providers. These wrappers may be moved to
|
|
27
|
+
// Gatsby "wrapRootElement" function
|
|
28
|
+
// (https://www.gatsbyjs.com/docs/reference/config-files/gatsby-ssr#wrapRootElement).
|
|
29
|
+
return (
|
|
30
|
+
<ph.PageParamsProvider
|
|
31
|
+
params={params}
|
|
32
|
+
query={Object.fromEntries(new URLSearchParams(location.search))}
|
|
33
|
+
>
|
|
34
|
+
<PlasmicHomepage />
|
|
35
|
+
</ph.PageParamsProvider>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default Homepage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
3
|
+
import Helmet from "react-helmet";
|
|
4
|
+
|
|
5
|
+
export const wrapRootElement = ({ element }) => {
|
|
6
|
+
return (
|
|
7
|
+
<PlasmicRootProvider Head={Helmet}>
|
|
8
|
+
{element}
|
|
9
|
+
</PlasmicRootProvider>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { GatsbyConfig } from "gatsby"
|
|
2
|
+
|
|
3
|
+
const config: GatsbyConfig = {
|
|
4
|
+
siteMetadata: {
|
|
5
|
+
siteUrl: `https://www.yourdomain.tld`,
|
|
6
|
+
},
|
|
7
|
+
// More easily incorporate content into your pages through automatic TypeScript type generation and better GraphQL IntelliSense.
|
|
8
|
+
// If you use VSCode you can also use the GraphQL plugin
|
|
9
|
+
// Learn more at: https://gatsby.dev/graphql-typegen
|
|
10
|
+
graphqlTypegen: true,
|
|
11
|
+
plugins: [],
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default config
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
3
|
+
import Helmet from "react-helmet";
|
|
4
|
+
|
|
5
|
+
export const wrapRootElement = ({ element }) => {
|
|
6
|
+
return (
|
|
7
|
+
<PlasmicRootProvider Head={Helmet}>
|
|
8
|
+
{element}
|
|
9
|
+
</PlasmicRootProvider>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gatsby-codegen-ts",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "Plasmic app for 47tFXWjN2C4NyHFGGpaYQ3",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"gatsby"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"develop": "gatsby develop",
|
|
11
|
+
"start": "gatsby develop",
|
|
12
|
+
"build": "gatsby build",
|
|
13
|
+
"serve": "gatsby serve",
|
|
14
|
+
"clean": "gatsby clean",
|
|
15
|
+
"typecheck": "tsc --noEmit"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@plasmicapp/cli": "^0.1.205",
|
|
19
|
+
"@plasmicapp/host": "^1.0.100",
|
|
20
|
+
"@plasmicapp/react-web": "^0.2.150",
|
|
21
|
+
"gatsby": "^5.5.0",
|
|
22
|
+
"gatsby-plugin-react-helmet": "^6.5.0",
|
|
23
|
+
"react": "^18.2.0",
|
|
24
|
+
"react-dom": "^18.2.0",
|
|
25
|
+
"react-helmet": "^6.1.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^18.11.18",
|
|
29
|
+
"@types/react": "^18.0.27",
|
|
30
|
+
"@types/react-dom": "^18.0.10",
|
|
31
|
+
"@types/react-helmet": "^6.1.6",
|
|
32
|
+
"typescript": "^4.9.4"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"platform": "gatsby",
|
|
3
|
+
"code": {
|
|
4
|
+
"lang": "ts",
|
|
5
|
+
"scheme": "blackbox",
|
|
6
|
+
"reactRuntime": "classic"
|
|
7
|
+
},
|
|
8
|
+
"style": {
|
|
9
|
+
"scheme": "css-modules",
|
|
10
|
+
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.css"
|
|
11
|
+
},
|
|
12
|
+
"images": {
|
|
13
|
+
"scheme": "files",
|
|
14
|
+
"publicDir": "../../static",
|
|
15
|
+
"publicUrlPrefix": "/"
|
|
16
|
+
},
|
|
17
|
+
"tokens": {
|
|
18
|
+
"scheme": "theo",
|
|
19
|
+
"tokensFilePath": "plasmic-tokens.theo.json"
|
|
20
|
+
},
|
|
21
|
+
"srcDir": "src/components",
|
|
22
|
+
"defaultPlasmicDir": "./plasmic",
|
|
23
|
+
"projects": [
|
|
24
|
+
{
|
|
25
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
26
|
+
"projectApiToken": "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
27
|
+
"projectName": "create-plasmic-app",
|
|
28
|
+
"version": "latest",
|
|
29
|
+
"cssFilePath": "plasmic/create_plasmic_app/plasmic_create_plasmic_app.module.css",
|
|
30
|
+
"components": [
|
|
31
|
+
{
|
|
32
|
+
"id": "6uuAAE1jiCew",
|
|
33
|
+
"name": "Homepage",
|
|
34
|
+
"type": "managed",
|
|
35
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
36
|
+
"renderModuleFilePath": "plasmic/create_plasmic_app/PlasmicHomepage.tsx",
|
|
37
|
+
"importSpec": {
|
|
38
|
+
"modulePath": "../pages/index.tsx"
|
|
39
|
+
},
|
|
40
|
+
"cssFilePath": "plasmic/create_plasmic_app/PlasmicHomepage.module.css",
|
|
41
|
+
"scheme": "blackbox",
|
|
42
|
+
"componentType": "page"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"icons": [],
|
|
46
|
+
"images": [],
|
|
47
|
+
"indirect": false,
|
|
48
|
+
"globalContextsFilePath": "",
|
|
49
|
+
"codeComponents": [
|
|
50
|
+
{
|
|
51
|
+
"id": "P6aGdYWZ2R",
|
|
52
|
+
"name": "PlasmicHead",
|
|
53
|
+
"componentImportPath": "@plasmicapp/react-web"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "8G2A-uTjGa",
|
|
57
|
+
"name": "Fetcher",
|
|
58
|
+
"componentImportPath": "@plasmicapp/react-web/lib/data-sources"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"globalVariants": {
|
|
64
|
+
"variantGroups": [
|
|
65
|
+
{
|
|
66
|
+
"id": "SCBjPXGDXDZBV",
|
|
67
|
+
"name": "Screen",
|
|
68
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
69
|
+
"contextFilePath": "plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"wrapPagesWithGlobalContexts": true,
|
|
74
|
+
"gatsbyConfig": {
|
|
75
|
+
"pagesDir": "../pages"
|
|
76
|
+
},
|
|
77
|
+
"cliVersion": "0.1.205",
|
|
78
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.205/dist/plasmic.schema.json"
|
|
79
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* prettier-ignore-start */
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import * as p from "@plasmicapp/react-web";
|
|
7
|
+
|
|
8
|
+
export type ScreenValue = "desktopOnly";
|
|
9
|
+
export const ScreenContext = React.createContext<ScreenValue[] | undefined>(
|
|
10
|
+
"PLEASE_RENDER_INSIDE_PROVIDER" as any
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Plasmic now uses a custom hook for Screen variants, which is
|
|
15
|
+
* automatically included in your components. Please remove this provider
|
|
16
|
+
* from your code.
|
|
17
|
+
*/
|
|
18
|
+
export function ScreenVariantProvider(props: React.PropsWithChildren) {
|
|
19
|
+
console.warn(
|
|
20
|
+
"DEPRECATED: Plasmic now uses a custom hook for Screen variants, which is automatically included in your components. Please remove this provider from your code."
|
|
21
|
+
);
|
|
22
|
+
return props.children;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const useScreenVariants = p.createUseScreenVariants(true, {
|
|
26
|
+
desktopOnly: "(min-width:768px)",
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export default ScreenContext;
|
|
30
|
+
/* prettier-ignore-end */
|