create-plasmic-app 0.0.95 → 0.0.97
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/react-codegen-js/eslint.config.js +38 -0
- package/cpa-out/react-codegen-js/package.json +22 -32
- package/cpa-out/react-codegen-js/plasmic.json +16 -10
- package/cpa-out/react-codegen-js/src/App.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/Button.jsx +1 -3
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +47 -96
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +35 -29
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +2 -14
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +24 -24
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +44 -58
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +2 -2
- package/cpa-out/react-codegen-js/src/main.jsx +10 -0
- package/cpa-out/react-codegen-js/vite.config.js +7 -0
- package/cpa-out/react-codegen-ts/eslint.config.js +28 -0
- package/cpa-out/react-codegen-ts/package.json +23 -37
- package/cpa-out/react-codegen-ts/plasmic.json +16 -10
- package/cpa-out/react-codegen-ts/src/App.tsx +1 -1
- package/cpa-out/react-codegen-ts/src/components/Button.tsx +4 -5
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +84 -62
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +73 -44
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +2 -14
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +62 -38
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +83 -70
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +3 -3
- package/cpa-out/react-codegen-ts/src/main.tsx +10 -0
- package/cpa-out/react-codegen-ts/src/vite-env.d.ts +1 -0
- package/cpa-out/react-codegen-ts/tsconfig.json +4 -23
- package/cpa-out/react-codegen-ts/vite.config.ts +7 -0
- package/dist/gatsby/template.js +2 -1
- package/dist/lib.js +1 -1
- package/dist/nextjs/templates/pages-codegen/app.js +2 -1
- package/dist/react/react.js +36 -11
- package/package.json +2 -2
- package/src/gatsby/template.ts +2 -1
- package/src/lib.ts +1 -1
- package/src/nextjs/templates/pages-codegen/app.ts +2 -1
- package/src/react/react.ts +47 -16
- package/cpa-out/react-codegen-js/src/index.js +0 -17
- package/cpa-out/react-codegen-js/src/reportWebVitals.js +0 -13
- package/cpa-out/react-codegen-js/src/setupTests.js +0 -5
- package/cpa-out/react-codegen-ts/src/index.tsx +0 -19
- package/cpa-out/react-codegen-ts/src/react-app-env.d.ts +0 -1
- package/cpa-out/react-codegen-ts/src/reportWebVitals.ts +0 -15
- package/cpa-out/react-codegen-ts/src/setupTests.ts +0 -5
- package/cpa-out/react-loader-js/package.json +0 -40
- package/cpa-out/react-loader-js/plasmic.json +0 -127
- package/cpa-out/react-loader-js/src/App.jsx +0 -9
- package/cpa-out/react-loader-js/src/components/Button.jsx +0 -13
- package/cpa-out/react-loader-js/src/components/DynamicPage.jsx +0 -26
- package/cpa-out/react-loader-js/src/components/Homepage.jsx +0 -26
- package/cpa-out/react-loader-js/src/components/RandomDynamicPageButton.jsx +0 -24
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +0 -625
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +0 -166
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +0 -29
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +0 -210
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +0 -161
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +0 -39
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +0 -37
- package/cpa-out/react-loader-js/src/index.js +0 -17
- package/cpa-out/react-loader-js/src/reportWebVitals.js +0 -13
- package/cpa-out/react-loader-js/src/setupTests.js +0 -5
- package/cpa-out/react-loader-ts/package.json +0 -45
- package/cpa-out/react-loader-ts/plasmic.json +0 -127
- package/cpa-out/react-loader-ts/src/App.tsx +0 -9
- package/cpa-out/react-loader-ts/src/components/Button.tsx +0 -36
- package/cpa-out/react-loader-ts/src/components/DynamicPage.tsx +0 -45
- package/cpa-out/react-loader-ts/src/components/Homepage.tsx +0 -45
- package/cpa-out/react-loader-ts/src/components/RandomDynamicPageButton.tsx +0 -44
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +0 -725
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +0 -248
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +0 -31
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +0 -294
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +0 -240
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +0 -44
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +0 -41
- package/cpa-out/react-loader-ts/src/index.tsx +0 -19
- package/cpa-out/react-loader-ts/src/react-app-env.d.ts +0 -1
- package/cpa-out/react-loader-ts/src/reportWebVitals.ts +0 -15
- package/cpa-out/react-loader-ts/src/setupTests.ts +0 -5
- package/cpa-out/react-loader-ts/tsconfig.json +0 -26
package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
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: AO44A-w7hh
|
|
11
|
-
import * as React from "react";
|
|
12
|
-
import * as p from "@plasmicapp/react-web";
|
|
13
|
-
import * as ph from "@plasmicapp/react-web/lib/host";
|
|
14
|
-
import {
|
|
15
|
-
classNames,
|
|
16
|
-
createPlasmicElementProxy,
|
|
17
|
-
deriveRenderOpts
|
|
18
|
-
} from "@plasmicapp/react-web";
|
|
19
|
-
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
20
|
-
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
21
|
-
import projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
22
|
-
import sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
|
|
23
|
-
|
|
24
|
-
export const PlasmicDynamicPage__VariantProps = new Array();
|
|
25
|
-
|
|
26
|
-
export const PlasmicDynamicPage__ArgProps = new Array();
|
|
27
|
-
|
|
28
|
-
const __wrapUserFunction =
|
|
29
|
-
globalThis.__PlasmicWrapUserFunction ?? ((loc, fn) => fn());
|
|
30
|
-
|
|
31
|
-
const __wrapUserPromise =
|
|
32
|
-
globalThis.__PlasmicWrapUserPromise ??
|
|
33
|
-
(async (loc, promise) => {
|
|
34
|
-
return await promise;
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
function PlasmicDynamicPage__RenderFunc(props) {
|
|
38
|
-
const { variants, overrides, forNode } = props;
|
|
39
|
-
const $ctx = ph.useDataEnv?.() || {};
|
|
40
|
-
const args = React.useMemo(() => Object.assign({}, props.args), [props.args]);
|
|
41
|
-
const $props = {
|
|
42
|
-
...args,
|
|
43
|
-
...variants
|
|
44
|
-
};
|
|
45
|
-
const refsRef = React.useRef({});
|
|
46
|
-
const $refs = refsRef.current;
|
|
47
|
-
const currentUser = p.useCurrentUser?.() || {};
|
|
48
|
-
const [$queries, setDollarQueries] = React.useState({});
|
|
49
|
-
return (
|
|
50
|
-
<React.Fragment>
|
|
51
|
-
<div className={projectcss.plasmic_page_wrapper}>
|
|
52
|
-
<div
|
|
53
|
-
data-plasmic-name={"root"}
|
|
54
|
-
data-plasmic-override={overrides.root}
|
|
55
|
-
data-plasmic-root={true}
|
|
56
|
-
data-plasmic-for-node={forNode}
|
|
57
|
-
className={classNames(
|
|
58
|
-
projectcss.all,
|
|
59
|
-
projectcss.root_reset,
|
|
60
|
-
projectcss.plasmic_default_styles,
|
|
61
|
-
projectcss.plasmic_mixins,
|
|
62
|
-
sty.root
|
|
63
|
-
)}
|
|
64
|
-
>
|
|
65
|
-
<p.Stack
|
|
66
|
-
as={"section"}
|
|
67
|
-
data-plasmic-name={"section"}
|
|
68
|
-
data-plasmic-override={overrides.section}
|
|
69
|
-
hasGap={true}
|
|
70
|
-
className={classNames(projectcss.all, sty.section)}
|
|
71
|
-
>
|
|
72
|
-
<h1
|
|
73
|
-
data-plasmic-name={"h1"}
|
|
74
|
-
data-plasmic-override={overrides.h1}
|
|
75
|
-
className={classNames(
|
|
76
|
-
projectcss.all,
|
|
77
|
-
projectcss.h1,
|
|
78
|
-
projectcss.__wab_text,
|
|
79
|
-
sty.h1
|
|
80
|
-
)}
|
|
81
|
-
>
|
|
82
|
-
{(() => {
|
|
83
|
-
try {
|
|
84
|
-
return $ctx.params.slug;
|
|
85
|
-
} catch (e) {
|
|
86
|
-
if (e instanceof TypeError) {
|
|
87
|
-
return "Page 1";
|
|
88
|
-
}
|
|
89
|
-
throw e;
|
|
90
|
-
}
|
|
91
|
-
})()}
|
|
92
|
-
</h1>
|
|
93
|
-
|
|
94
|
-
<RandomDynamicPageButton
|
|
95
|
-
data-plasmic-name={"randomDynamicPageButton"}
|
|
96
|
-
data-plasmic-override={overrides.randomDynamicPageButton}
|
|
97
|
-
className={classNames(
|
|
98
|
-
"__wab_instance",
|
|
99
|
-
sty.randomDynamicPageButton
|
|
100
|
-
)}
|
|
101
|
-
/>
|
|
102
|
-
</p.Stack>
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
</React.Fragment>
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const PlasmicDescendants = {
|
|
110
|
-
root: ["root", "section", "h1", "randomDynamicPageButton"],
|
|
111
|
-
section: ["section", "h1", "randomDynamicPageButton"],
|
|
112
|
-
h1: ["h1"],
|
|
113
|
-
randomDynamicPageButton: ["randomDynamicPageButton"]
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
function makeNodeComponent(nodeName) {
|
|
117
|
-
const func = function (props) {
|
|
118
|
-
const { variants, args, overrides } = React.useMemo(
|
|
119
|
-
() =>
|
|
120
|
-
deriveRenderOpts(props, {
|
|
121
|
-
name: nodeName,
|
|
122
|
-
descendantNames: [...PlasmicDescendants[nodeName]],
|
|
123
|
-
internalArgPropNames: PlasmicDynamicPage__ArgProps,
|
|
124
|
-
internalVariantPropNames: PlasmicDynamicPage__VariantProps
|
|
125
|
-
}),
|
|
126
|
-
[props, nodeName]
|
|
127
|
-
);
|
|
128
|
-
|
|
129
|
-
return PlasmicDynamicPage__RenderFunc({
|
|
130
|
-
variants,
|
|
131
|
-
args,
|
|
132
|
-
overrides,
|
|
133
|
-
forNode: nodeName
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
if (nodeName === "root") {
|
|
137
|
-
func.displayName = "PlasmicDynamicPage";
|
|
138
|
-
} else {
|
|
139
|
-
func.displayName = `PlasmicDynamicPage.${nodeName}`;
|
|
140
|
-
}
|
|
141
|
-
return func;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export const PlasmicDynamicPage = Object.assign(
|
|
145
|
-
// Top-level PlasmicDynamicPage renders the root element
|
|
146
|
-
makeNodeComponent("root"),
|
|
147
|
-
{
|
|
148
|
-
// Helper components rendering sub-elements
|
|
149
|
-
section: makeNodeComponent("section"),
|
|
150
|
-
h1: makeNodeComponent("h1"),
|
|
151
|
-
randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
|
|
152
|
-
// Metadata about props expected for PlasmicDynamicPage
|
|
153
|
-
internalVariantProps: PlasmicDynamicPage__VariantProps,
|
|
154
|
-
internalArgProps: PlasmicDynamicPage__ArgProps,
|
|
155
|
-
// Page metadata
|
|
156
|
-
pageMetadata: {
|
|
157
|
-
title: "",
|
|
158
|
-
description: "",
|
|
159
|
-
ogImageSrc: "",
|
|
160
|
-
canonical: ""
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
|
|
165
|
-
export default PlasmicDynamicPage;
|
|
166
|
-
/* prettier-ignore-end */
|
|
@@ -1,29 +0,0 @@
|
|
|
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/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
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/react-web/lib/host";
|
|
14
|
-
import {
|
|
15
|
-
hasVariant,
|
|
16
|
-
classNames,
|
|
17
|
-
createPlasmicElementProxy,
|
|
18
|
-
deriveRenderOpts,
|
|
19
|
-
ensureGlobalVariants
|
|
20
|
-
} from "@plasmicapp/react-web";
|
|
21
|
-
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
22
|
-
import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
|
|
23
|
-
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
24
|
-
import projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
25
|
-
import sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
|
|
26
|
-
|
|
27
|
-
export const PlasmicHomepage__VariantProps = new Array();
|
|
28
|
-
|
|
29
|
-
export const PlasmicHomepage__ArgProps = new Array();
|
|
30
|
-
|
|
31
|
-
const __wrapUserFunction =
|
|
32
|
-
globalThis.__PlasmicWrapUserFunction ?? ((loc, fn) => fn());
|
|
33
|
-
|
|
34
|
-
const __wrapUserPromise =
|
|
35
|
-
globalThis.__PlasmicWrapUserPromise ??
|
|
36
|
-
(async (loc, promise) => {
|
|
37
|
-
return await promise;
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
function PlasmicHomepage__RenderFunc(props) {
|
|
41
|
-
const { variants, overrides, forNode } = props;
|
|
42
|
-
const $ctx = ph.useDataEnv?.() || {};
|
|
43
|
-
const args = React.useMemo(() => Object.assign({}, props.args), [props.args]);
|
|
44
|
-
const $props = {
|
|
45
|
-
...args,
|
|
46
|
-
...variants
|
|
47
|
-
};
|
|
48
|
-
const refsRef = React.useRef({});
|
|
49
|
-
const $refs = refsRef.current;
|
|
50
|
-
const currentUser = p.useCurrentUser?.() || {};
|
|
51
|
-
const [$queries, setDollarQueries] = React.useState({});
|
|
52
|
-
const globalVariants = ensureGlobalVariants({
|
|
53
|
-
screen: useScreenVariantsscBjPxgdxdzbv()
|
|
54
|
-
});
|
|
55
|
-
return (
|
|
56
|
-
<React.Fragment>
|
|
57
|
-
<div className={projectcss.plasmic_page_wrapper}>
|
|
58
|
-
<div
|
|
59
|
-
data-plasmic-name={"root"}
|
|
60
|
-
data-plasmic-override={overrides.root}
|
|
61
|
-
data-plasmic-root={true}
|
|
62
|
-
data-plasmic-for-node={forNode}
|
|
63
|
-
className={classNames(
|
|
64
|
-
projectcss.all,
|
|
65
|
-
projectcss.root_reset,
|
|
66
|
-
projectcss.plasmic_default_styles,
|
|
67
|
-
projectcss.plasmic_mixins,
|
|
68
|
-
sty.root
|
|
69
|
-
)}
|
|
70
|
-
>
|
|
71
|
-
<p.Stack
|
|
72
|
-
as={"section"}
|
|
73
|
-
data-plasmic-name={"section"}
|
|
74
|
-
data-plasmic-override={overrides.section}
|
|
75
|
-
hasGap={true}
|
|
76
|
-
className={classNames(projectcss.all, sty.section)}
|
|
77
|
-
>
|
|
78
|
-
<h1
|
|
79
|
-
data-plasmic-name={"h1"}
|
|
80
|
-
data-plasmic-override={overrides.h1}
|
|
81
|
-
className={classNames(
|
|
82
|
-
projectcss.all,
|
|
83
|
-
projectcss.h1,
|
|
84
|
-
projectcss.__wab_text,
|
|
85
|
-
sty.h1
|
|
86
|
-
)}
|
|
87
|
-
>
|
|
88
|
-
{"create-plasmic-app"}
|
|
89
|
-
</h1>
|
|
90
|
-
|
|
91
|
-
<div
|
|
92
|
-
data-plasmic-name={"text"}
|
|
93
|
-
data-plasmic-override={overrides.text}
|
|
94
|
-
className={classNames(
|
|
95
|
-
projectcss.all,
|
|
96
|
-
projectcss.__wab_text,
|
|
97
|
-
sty.text
|
|
98
|
-
)}
|
|
99
|
-
>
|
|
100
|
-
{hasVariant(globalVariants, "screen", "desktopOnly") ? (
|
|
101
|
-
<React.Fragment>
|
|
102
|
-
<React.Fragment>
|
|
103
|
-
{
|
|
104
|
-
"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. "
|
|
105
|
-
}
|
|
106
|
-
</React.Fragment>
|
|
107
|
-
<span
|
|
108
|
-
className={"plasmic_default__all plasmic_default__span"}
|
|
109
|
-
style={{ fontWeight: 700 }}
|
|
110
|
-
>
|
|
111
|
-
{"Therefore, please avoid changing this project."}
|
|
112
|
-
</span>
|
|
113
|
-
</React.Fragment>
|
|
114
|
-
) : (
|
|
115
|
-
<React.Fragment>
|
|
116
|
-
<React.Fragment>
|
|
117
|
-
{
|
|
118
|
-
"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 "
|
|
119
|
-
}
|
|
120
|
-
</React.Fragment>
|
|
121
|
-
<span
|
|
122
|
-
className={"plasmic_default__all plasmic_default__span"}
|
|
123
|
-
style={{ fontWeight: 700 }}
|
|
124
|
-
>
|
|
125
|
-
{"Code"}
|
|
126
|
-
</span>
|
|
127
|
-
<React.Fragment>
|
|
128
|
-
{
|
|
129
|
-
" button in the top right and follow the quickstart instructions.\n\nJoin our Slack community (icon in bottom left) for help any time."
|
|
130
|
-
}
|
|
131
|
-
</React.Fragment>
|
|
132
|
-
</React.Fragment>
|
|
133
|
-
)}
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
<RandomDynamicPageButton
|
|
137
|
-
data-plasmic-name={"randomDynamicPageButton"}
|
|
138
|
-
data-plasmic-override={overrides.randomDynamicPageButton}
|
|
139
|
-
className={classNames(
|
|
140
|
-
"__wab_instance",
|
|
141
|
-
sty.randomDynamicPageButton
|
|
142
|
-
)}
|
|
143
|
-
/>
|
|
144
|
-
</p.Stack>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
</React.Fragment>
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
const PlasmicDescendants = {
|
|
152
|
-
root: ["root", "section", "h1", "text", "randomDynamicPageButton"],
|
|
153
|
-
section: ["section", "h1", "text", "randomDynamicPageButton"],
|
|
154
|
-
h1: ["h1"],
|
|
155
|
-
text: ["text"],
|
|
156
|
-
randomDynamicPageButton: ["randomDynamicPageButton"]
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
function makeNodeComponent(nodeName) {
|
|
160
|
-
const func = function (props) {
|
|
161
|
-
const { variants, args, overrides } = React.useMemo(
|
|
162
|
-
() =>
|
|
163
|
-
deriveRenderOpts(props, {
|
|
164
|
-
name: nodeName,
|
|
165
|
-
descendantNames: [...PlasmicDescendants[nodeName]],
|
|
166
|
-
internalArgPropNames: PlasmicHomepage__ArgProps,
|
|
167
|
-
internalVariantPropNames: PlasmicHomepage__VariantProps
|
|
168
|
-
}),
|
|
169
|
-
[props, nodeName]
|
|
170
|
-
);
|
|
171
|
-
|
|
172
|
-
return PlasmicHomepage__RenderFunc({
|
|
173
|
-
variants,
|
|
174
|
-
args,
|
|
175
|
-
overrides,
|
|
176
|
-
forNode: nodeName
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
if (nodeName === "root") {
|
|
180
|
-
func.displayName = "PlasmicHomepage";
|
|
181
|
-
} else {
|
|
182
|
-
func.displayName = `PlasmicHomepage.${nodeName}`;
|
|
183
|
-
}
|
|
184
|
-
return func;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export const PlasmicHomepage = Object.assign(
|
|
188
|
-
// Top-level PlasmicHomepage renders the root element
|
|
189
|
-
makeNodeComponent("root"),
|
|
190
|
-
{
|
|
191
|
-
// Helper components rendering sub-elements
|
|
192
|
-
section: makeNodeComponent("section"),
|
|
193
|
-
h1: makeNodeComponent("h1"),
|
|
194
|
-
text: makeNodeComponent("text"),
|
|
195
|
-
randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
|
|
196
|
-
// Metadata about props expected for PlasmicHomepage
|
|
197
|
-
internalVariantProps: PlasmicHomepage__VariantProps,
|
|
198
|
-
internalArgProps: PlasmicHomepage__ArgProps,
|
|
199
|
-
// Page metadata
|
|
200
|
-
pageMetadata: {
|
|
201
|
-
title: "",
|
|
202
|
-
description: "",
|
|
203
|
-
ogImageSrc: "",
|
|
204
|
-
canonical: ""
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
);
|
|
208
|
-
|
|
209
|
-
export default PlasmicHomepage;
|
|
210
|
-
/* prettier-ignore-end */
|
|
@@ -1,161 +0,0 @@
|
|
|
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: Q23H1_1M_P
|
|
11
|
-
import * as React from "react";
|
|
12
|
-
import * as p from "@plasmicapp/react-web";
|
|
13
|
-
import * as ph from "@plasmicapp/react-web/lib/host";
|
|
14
|
-
import {
|
|
15
|
-
classNames,
|
|
16
|
-
createPlasmicElementProxy,
|
|
17
|
-
deriveRenderOpts
|
|
18
|
-
} from "@plasmicapp/react-web";
|
|
19
|
-
import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
|
|
20
|
-
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
21
|
-
import sty from "./PlasmicRandomDynamicPageButton.module.css"; // plasmic-import: Q23H1_1M_P/css
|
|
22
|
-
|
|
23
|
-
export const PlasmicRandomDynamicPageButton__VariantProps = new Array();
|
|
24
|
-
|
|
25
|
-
export const PlasmicRandomDynamicPageButton__ArgProps = new Array();
|
|
26
|
-
|
|
27
|
-
const __wrapUserFunction =
|
|
28
|
-
globalThis.__PlasmicWrapUserFunction ?? ((loc, fn) => fn());
|
|
29
|
-
|
|
30
|
-
const __wrapUserPromise =
|
|
31
|
-
globalThis.__PlasmicWrapUserPromise ??
|
|
32
|
-
(async (loc, promise) => {
|
|
33
|
-
return await promise;
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
function PlasmicRandomDynamicPageButton__RenderFunc(props) {
|
|
37
|
-
const { variants, overrides, forNode } = props;
|
|
38
|
-
const $ctx = ph.useDataEnv?.() || {};
|
|
39
|
-
const args = React.useMemo(() => Object.assign({}, props.args), [props.args]);
|
|
40
|
-
const $props = {
|
|
41
|
-
...args,
|
|
42
|
-
...variants
|
|
43
|
-
};
|
|
44
|
-
const refsRef = React.useRef({});
|
|
45
|
-
const $refs = refsRef.current;
|
|
46
|
-
const currentUser = p.useCurrentUser?.() || {};
|
|
47
|
-
const [$queries, setDollarQueries] = React.useState({});
|
|
48
|
-
return (
|
|
49
|
-
<Button
|
|
50
|
-
data-plasmic-name={"root"}
|
|
51
|
-
data-plasmic-override={overrides.root}
|
|
52
|
-
data-plasmic-root={true}
|
|
53
|
-
data-plasmic-for-node={forNode}
|
|
54
|
-
className={classNames("__wab_instance", sty.root)}
|
|
55
|
-
onClick={async event => {
|
|
56
|
-
const $steps = {};
|
|
57
|
-
$steps["goToDynamicPage"] = true
|
|
58
|
-
? (() => {
|
|
59
|
-
const actionArgs = {
|
|
60
|
-
destination: __wrapUserFunction(
|
|
61
|
-
{
|
|
62
|
-
type: "InteractionArgLoc",
|
|
63
|
-
actionName: "navigation",
|
|
64
|
-
interactionUuid: "9Y3jL0zxjA",
|
|
65
|
-
componentUuid: "Q23H1_1M_P",
|
|
66
|
-
argName: "destination"
|
|
67
|
-
},
|
|
68
|
-
() =>
|
|
69
|
-
`/dynamic/${(() => {
|
|
70
|
-
try {
|
|
71
|
-
return Math.random().toString(36).slice(2);
|
|
72
|
-
} catch (e) {
|
|
73
|
-
if (e instanceof TypeError) {
|
|
74
|
-
return "value";
|
|
75
|
-
}
|
|
76
|
-
throw e;
|
|
77
|
-
}
|
|
78
|
-
})()}`
|
|
79
|
-
)
|
|
80
|
-
};
|
|
81
|
-
return __wrapUserFunction(
|
|
82
|
-
{
|
|
83
|
-
type: "InteractionLoc",
|
|
84
|
-
actionName: "navigation",
|
|
85
|
-
interactionUuid: "9Y3jL0zxjA",
|
|
86
|
-
componentUuid: "Q23H1_1M_P"
|
|
87
|
-
},
|
|
88
|
-
() =>
|
|
89
|
-
(({ destination }) => {
|
|
90
|
-
location.assign(destination);
|
|
91
|
-
})?.apply(null, [actionArgs]),
|
|
92
|
-
actionArgs
|
|
93
|
-
);
|
|
94
|
-
})()
|
|
95
|
-
: undefined;
|
|
96
|
-
if (
|
|
97
|
-
typeof $steps["goToDynamicPage"] === "object" &&
|
|
98
|
-
typeof $steps["goToDynamicPage"].then === "function"
|
|
99
|
-
) {
|
|
100
|
-
$steps["goToDynamicPage"] = await __wrapUserPromise(
|
|
101
|
-
{
|
|
102
|
-
type: "InteractionLoc",
|
|
103
|
-
actionName: "navigation",
|
|
104
|
-
interactionUuid: "9Y3jL0zxjA",
|
|
105
|
-
componentUuid: "Q23H1_1M_P"
|
|
106
|
-
},
|
|
107
|
-
$steps["goToDynamicPage"]
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
}}
|
|
111
|
-
>
|
|
112
|
-
{"Random Dynamic Page"}
|
|
113
|
-
</Button>
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const PlasmicDescendants = {
|
|
118
|
-
root: ["root"]
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
function makeNodeComponent(nodeName) {
|
|
122
|
-
const func = function (props) {
|
|
123
|
-
const { variants, args, overrides } = React.useMemo(
|
|
124
|
-
() =>
|
|
125
|
-
deriveRenderOpts(props, {
|
|
126
|
-
name: nodeName,
|
|
127
|
-
descendantNames: [...PlasmicDescendants[nodeName]],
|
|
128
|
-
internalArgPropNames: PlasmicRandomDynamicPageButton__ArgProps,
|
|
129
|
-
internalVariantPropNames: PlasmicRandomDynamicPageButton__VariantProps
|
|
130
|
-
}),
|
|
131
|
-
[props, nodeName]
|
|
132
|
-
);
|
|
133
|
-
|
|
134
|
-
return PlasmicRandomDynamicPageButton__RenderFunc({
|
|
135
|
-
variants,
|
|
136
|
-
args,
|
|
137
|
-
overrides,
|
|
138
|
-
forNode: nodeName
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
if (nodeName === "root") {
|
|
142
|
-
func.displayName = "PlasmicRandomDynamicPageButton";
|
|
143
|
-
} else {
|
|
144
|
-
func.displayName = `PlasmicRandomDynamicPageButton.${nodeName}`;
|
|
145
|
-
}
|
|
146
|
-
return func;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export const PlasmicRandomDynamicPageButton = Object.assign(
|
|
150
|
-
// Top-level PlasmicRandomDynamicPageButton renders the root element
|
|
151
|
-
makeNodeComponent("root"),
|
|
152
|
-
{
|
|
153
|
-
// Helper components rendering sub-elements
|
|
154
|
-
// Metadata about props expected for PlasmicRandomDynamicPageButton
|
|
155
|
-
internalVariantProps: PlasmicRandomDynamicPageButton__VariantProps,
|
|
156
|
-
internalArgProps: PlasmicRandomDynamicPageButton__ArgProps
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
|
|
160
|
-
export default PlasmicRandomDynamicPageButton;
|
|
161
|
-
/* prettier-ignore-end */
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* prettier-ignore-start */
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { classNames } from "@plasmicapp/react-web";
|
|
7
|
-
|
|
8
|
-
export function ChecksvgIcon(props) {
|
|
9
|
-
const { className, style, title, ...restProps } = props;
|
|
10
|
-
return (
|
|
11
|
-
<svg
|
|
12
|
-
xmlns={"http://www.w3.org/2000/svg"}
|
|
13
|
-
fill={"none"}
|
|
14
|
-
viewBox={"0 0 24 24"}
|
|
15
|
-
height={"1em"}
|
|
16
|
-
width={"1em"}
|
|
17
|
-
style={{
|
|
18
|
-
fill: "currentcolor",
|
|
19
|
-
...(style || {}),
|
|
20
|
-
}}
|
|
21
|
-
className={classNames("plasmic-default__svg", className)}
|
|
22
|
-
{...restProps}
|
|
23
|
-
>
|
|
24
|
-
{title && <title>{title}</title>}
|
|
25
|
-
|
|
26
|
-
<path
|
|
27
|
-
fillRule={"evenodd"}
|
|
28
|
-
clipRule={"evenodd"}
|
|
29
|
-
d={
|
|
30
|
-
"M18.416 5.876a.75.75 0 01.208 1.04L11.42 17.721a1.75 1.75 0 01-2.871.06l-3.156-4.34a.75.75 0 111.214-.882l3.155 4.339a.25.25 0 00.41-.009l7.204-10.805a.75.75 0 011.04-.208z"
|
|
31
|
-
}
|
|
32
|
-
fill={"currentColor"}
|
|
33
|
-
></path>
|
|
34
|
-
</svg>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default ChecksvgIcon;
|
|
39
|
-
/* prettier-ignore-end */
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* prettier-ignore-start */
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { classNames } from "@plasmicapp/react-web";
|
|
7
|
-
|
|
8
|
-
export function IconIcon(props) {
|
|
9
|
-
const { className, style, title, ...restProps } = props;
|
|
10
|
-
return (
|
|
11
|
-
<svg
|
|
12
|
-
xmlns={"http://www.w3.org/2000/svg"}
|
|
13
|
-
stroke={"currentColor"}
|
|
14
|
-
fill={"currentColor"}
|
|
15
|
-
strokeWidth={"0"}
|
|
16
|
-
viewBox={"0 0 16 16"}
|
|
17
|
-
height={"1em"}
|
|
18
|
-
width={"1em"}
|
|
19
|
-
className={classNames("plasmic-default__svg", className)}
|
|
20
|
-
style={style}
|
|
21
|
-
{...restProps}
|
|
22
|
-
>
|
|
23
|
-
{title && <title>{title}</title>}
|
|
24
|
-
|
|
25
|
-
<path
|
|
26
|
-
fillRule={"evenodd"}
|
|
27
|
-
d={
|
|
28
|
-
"M1 8a.5.5 0 01.5-.5h11.793l-3.147-3.146a.5.5 0 01.708-.708l4 4a.5.5 0 010 .708l-4 4a.5.5 0 01-.708-.708L13.293 8.5H1.5A.5.5 0 011 8z"
|
|
29
|
-
}
|
|
30
|
-
stroke={"none"}
|
|
31
|
-
></path>
|
|
32
|
-
</svg>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default IconIcon;
|
|
37
|
-
/* prettier-ignore-end */
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/client';
|
|
3
|
-
import './index.css';
|
|
4
|
-
import App from './App';
|
|
5
|
-
import reportWebVitals from './reportWebVitals';
|
|
6
|
-
|
|
7
|
-
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
8
|
-
root.render(
|
|
9
|
-
|
|
10
|
-
<App />
|
|
11
|
-
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
// If you want to start measuring performance in your app, pass a function
|
|
15
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
16
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
17
|
-
reportWebVitals();
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const reportWebVitals = onPerfEntry => {
|
|
2
|
-
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
3
|
-
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
|
4
|
-
getCLS(onPerfEntry);
|
|
5
|
-
getFID(onPerfEntry);
|
|
6
|
-
getFCP(onPerfEntry);
|
|
7
|
-
getLCP(onPerfEntry);
|
|
8
|
-
getTTFB(onPerfEntry);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default reportWebVitals;
|