create-plasmic-app 0.0.66 → 0.0.68
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/cpa-out/gatsby-codegen-js/package.json +2 -2
- package/cpa-out/gatsby-codegen-js/plasmic.json +54 -3
- package/cpa-out/gatsby-codegen-js/src/components/Button.jsx +13 -0
- package/cpa-out/gatsby-codegen-js/src/components/RandomDynamicPageButton.jsx +24 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +631 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +176 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +162 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
- package/cpa-out/gatsby-codegen-js/src/pages/dynamic/[slug].jsx +39 -0
- package/cpa-out/gatsby-codegen-ts/package.json +2 -2
- package/cpa-out/gatsby-codegen-ts/plasmic.json +54 -3
- package/cpa-out/gatsby-codegen-ts/src/components/Button.tsx +36 -0
- package/cpa-out/gatsby-codegen-ts/src/components/RandomDynamicPageButton.tsx +44 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +736 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +262 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -5
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +246 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
- package/cpa-out/gatsby-codegen-ts/src/pages/dynamic/[slug].tsx +41 -0
- package/cpa-out/gatsby-loader-js/package.json +3 -3
- package/cpa-out/gatsby-loader-ts/package.json +7 -7
- package/cpa-out/nextjs-app-loader-js/package.json +4 -4
- package/cpa-out/nextjs-app-loader-ts/package.json +6 -6
- package/cpa-out/nextjs-pages-codegen-js/components/Button.jsx +13 -0
- package/cpa-out/nextjs-pages-codegen-js/components/RandomDynamicPageButton.jsx +24 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +640 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +184 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +170 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
- package/cpa-out/nextjs-pages-codegen-js/package.json +2 -2
- package/cpa-out/nextjs-pages-codegen-js/pages/dynamic/[slug].jsx +35 -0
- package/cpa-out/nextjs-pages-codegen-js/plasmic.json +54 -3
- package/cpa-out/nextjs-pages-codegen-ts/components/Button.tsx +36 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/RandomDynamicPageButton.tsx +44 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +742 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +264 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -5
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +252 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
- package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +37 -0
- package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +54 -3
- package/cpa-out/nextjs-pages-loader-js/package.json +4 -4
- package/cpa-out/nextjs-pages-loader-ts/package.json +6 -6
- package/cpa-out/react-codegen-js/package.json +2 -2
- package/cpa-out/react-codegen-js/plasmic.json +54 -3
- package/cpa-out/react-codegen-js/src/components/Button.jsx +13 -0
- package/cpa-out/react-codegen-js/src/components/DynamicPage.jsx +26 -0
- package/cpa-out/react-codegen-js/src/components/RandomDynamicPageButton.jsx +24 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +625 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +166 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +161 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
- package/cpa-out/react-codegen-ts/package.json +2 -2
- package/cpa-out/react-codegen-ts/plasmic.json +54 -3
- package/cpa-out/react-codegen-ts/src/components/Button.tsx +36 -0
- package/cpa-out/react-codegen-ts/src/components/DynamicPage.tsx +45 -0
- package/cpa-out/react-codegen-ts/src/components/RandomDynamicPageButton.tsx +44 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +725 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +248 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -5
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +240 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
- package/cpa-out/react-loader-js/package.json +2 -3
- package/cpa-out/react-loader-js/plasmic.json +54 -3
- package/cpa-out/react-loader-js/src/components/Button.jsx +13 -0
- package/cpa-out/react-loader-js/src/components/DynamicPage.jsx +26 -0
- package/cpa-out/react-loader-js/src/components/RandomDynamicPageButton.jsx +24 -0
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +625 -0
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +166 -0
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +18 -4
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +161 -0
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
- package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
- package/cpa-out/react-loader-ts/package.json +2 -3
- package/cpa-out/react-loader-ts/plasmic.json +54 -3
- package/cpa-out/react-loader-ts/src/components/Button.tsx +36 -0
- package/cpa-out/react-loader-ts/src/components/DynamicPage.tsx +45 -0
- package/cpa-out/react-loader-ts/src/components/RandomDynamicPageButton.tsx +44 -0
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +725 -0
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +248 -0
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +21 -7
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +240 -0
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
- package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
- package/dist/gatsby/gatsby.js +16 -2
- package/dist/nextjs/nextjs.js +11 -7
- package/dist/react/react.js +17 -5
- package/dist/utils/file-utils.d.ts +15 -9
- package/dist/utils/file-utils.js +4 -59
- package/package.json +2 -2
- package/src/gatsby/gatsby.ts +32 -3
- package/src/nextjs/nextjs.ts +19 -5
- package/src/react/react.ts +28 -6
- package/src/utils/file-utils.ts +5 -88
- /package/cpa-out/gatsby-codegen-js/src/pages/{404.js → 404.jsx} +0 -0
- /package/cpa-out/gatsby-codegen-ts/src/pages/{404.js → 404.tsx} +0 -0
package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
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 */
|
package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// Component: 6uuAAE1jiCew
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import * as p from "@plasmicapp/react-web";
|
|
13
|
-
import * as ph from "@plasmicapp/host";
|
|
13
|
+
import * as ph from "@plasmicapp/react-web/lib/host";
|
|
14
14
|
import {
|
|
15
15
|
hasVariant,
|
|
16
16
|
classNames,
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
deriveRenderOpts,
|
|
19
19
|
ensureGlobalVariants
|
|
20
20
|
} from "@plasmicapp/react-web";
|
|
21
|
+
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
21
22
|
import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
|
|
22
23
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
23
24
|
import projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
@@ -44,6 +45,8 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
44
45
|
...args,
|
|
45
46
|
...variants
|
|
46
47
|
};
|
|
48
|
+
const refsRef = React.useRef({});
|
|
49
|
+
const $refs = refsRef.current;
|
|
47
50
|
const currentUser = p.useCurrentUser?.() || {};
|
|
48
51
|
const [$queries, setDollarQueries] = React.useState({});
|
|
49
52
|
const globalVariants = ensureGlobalVariants({
|
|
@@ -129,6 +132,15 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
129
132
|
</React.Fragment>
|
|
130
133
|
)}
|
|
131
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
|
+
/>
|
|
132
144
|
</p.Stack>
|
|
133
145
|
</div>
|
|
134
146
|
</div>
|
|
@@ -137,10 +149,11 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
137
149
|
}
|
|
138
150
|
|
|
139
151
|
const PlasmicDescendants = {
|
|
140
|
-
root: ["root", "section", "h1", "text"],
|
|
141
|
-
section: ["section", "h1", "text"],
|
|
152
|
+
root: ["root", "section", "h1", "text", "randomDynamicPageButton"],
|
|
153
|
+
section: ["section", "h1", "text", "randomDynamicPageButton"],
|
|
142
154
|
h1: ["h1"],
|
|
143
|
-
text: ["text"]
|
|
155
|
+
text: ["text"],
|
|
156
|
+
randomDynamicPageButton: ["randomDynamicPageButton"]
|
|
144
157
|
};
|
|
145
158
|
|
|
146
159
|
function makeNodeComponent(nodeName) {
|
|
@@ -179,6 +192,7 @@ export const PlasmicHomepage = Object.assign(
|
|
|
179
192
|
section: makeNodeComponent("section"),
|
|
180
193
|
h1: makeNodeComponent("h1"),
|
|
181
194
|
text: makeNodeComponent("text"),
|
|
195
|
+
randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
|
|
182
196
|
// Metadata about props expected for PlasmicHomepage
|
|
183
197
|
internalVariantProps: PlasmicHomepage__VariantProps,
|
|
184
198
|
internalArgProps: PlasmicHomepage__ArgProps,
|
|
@@ -0,0 +1,161 @@
|
|
|
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 */
|
|
@@ -0,0 +1,39 @@
|
|
|
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 */
|
|
@@ -0,0 +1,37 @@
|
|
|
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 */
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@plasmicapp/cli": "^0.1.
|
|
7
|
-
"@plasmicapp/
|
|
8
|
-
"@plasmicapp/react-web": "^0.2.150",
|
|
6
|
+
"@plasmicapp/cli": "^0.1.231",
|
|
7
|
+
"@plasmicapp/react-web": "^0.2.174",
|
|
9
8
|
"@testing-library/jest-dom": "^5.14.1",
|
|
10
9
|
"@testing-library/react": "^13.0.0",
|
|
11
10
|
"@testing-library/user-event": "^13.2.1",
|
|
@@ -40,9 +40,60 @@
|
|
|
40
40
|
"cssFilePath": "plasmic/create_plasmic_app/PlasmicHomepage.module.css",
|
|
41
41
|
"scheme": "blackbox",
|
|
42
42
|
"componentType": "page"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "AO44A-w7hh",
|
|
46
|
+
"name": "DynamicPage",
|
|
47
|
+
"type": "managed",
|
|
48
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
49
|
+
"renderModuleFilePath": "plasmic/create_plasmic_app/PlasmicDynamicPage.tsx",
|
|
50
|
+
"importSpec": {
|
|
51
|
+
"modulePath": "DynamicPage.tsx"
|
|
52
|
+
},
|
|
53
|
+
"cssFilePath": "plasmic/create_plasmic_app/PlasmicDynamicPage.module.css",
|
|
54
|
+
"scheme": "blackbox",
|
|
55
|
+
"componentType": "page"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "TQcvW_pSKi3",
|
|
59
|
+
"name": "Button",
|
|
60
|
+
"type": "managed",
|
|
61
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
62
|
+
"renderModuleFilePath": "plasmic/create_plasmic_app/PlasmicButton.tsx",
|
|
63
|
+
"importSpec": {
|
|
64
|
+
"modulePath": "Button.tsx"
|
|
65
|
+
},
|
|
66
|
+
"cssFilePath": "plasmic/create_plasmic_app/PlasmicButton.module.css",
|
|
67
|
+
"scheme": "blackbox",
|
|
68
|
+
"componentType": "component",
|
|
69
|
+
"plumeType": "button"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "Q23H1_1M_P",
|
|
73
|
+
"name": "RandomDynamicPageButton",
|
|
74
|
+
"type": "managed",
|
|
75
|
+
"projectId": "47tFXWjN2C4NyHFGGpaYQ3",
|
|
76
|
+
"renderModuleFilePath": "plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx",
|
|
77
|
+
"importSpec": {
|
|
78
|
+
"modulePath": "RandomDynamicPageButton.tsx"
|
|
79
|
+
},
|
|
80
|
+
"cssFilePath": "plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css",
|
|
81
|
+
"scheme": "blackbox",
|
|
82
|
+
"componentType": "component"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"icons": [
|
|
86
|
+
{
|
|
87
|
+
"id": "gj-_D7n31Ho",
|
|
88
|
+
"name": "ChecksvgIcon",
|
|
89
|
+
"moduleFilePath": "plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "6PNxx3YMyDQ",
|
|
93
|
+
"name": "IconIcon",
|
|
94
|
+
"moduleFilePath": "plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx"
|
|
43
95
|
}
|
|
44
96
|
],
|
|
45
|
-
"icons": [],
|
|
46
97
|
"images": [],
|
|
47
98
|
"indirect": false,
|
|
48
99
|
"globalContextsFilePath": "",
|
|
@@ -71,6 +122,6 @@
|
|
|
71
122
|
]
|
|
72
123
|
},
|
|
73
124
|
"wrapPagesWithGlobalContexts": true,
|
|
74
|
-
"cliVersion": "0.1.
|
|
75
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
125
|
+
"cliVersion": "0.1.231",
|
|
126
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.231/dist/plasmic.schema.json"
|
|
76
127
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import {
|
|
3
|
+
PlasmicButton,
|
|
4
|
+
DefaultButtonProps
|
|
5
|
+
} from "./plasmic/create_plasmic_app/PlasmicButton";
|
|
6
|
+
import {
|
|
7
|
+
ButtonRef,
|
|
8
|
+
HtmlAnchorOnlyProps,
|
|
9
|
+
HtmlButtonOnlyProps
|
|
10
|
+
} from "@plasmicapp/react-web";
|
|
11
|
+
|
|
12
|
+
interface ButtonProps extends DefaultButtonProps {
|
|
13
|
+
// Feel free to add any additional props that this component should receive
|
|
14
|
+
}
|
|
15
|
+
function Button_(props: ButtonProps, ref: ButtonRef) {
|
|
16
|
+
const { plasmicProps } = PlasmicButton.useBehavior<ButtonProps>(props, ref);
|
|
17
|
+
return <PlasmicButton {...plasmicProps} />;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type ButtonComponentType = {
|
|
21
|
+
(
|
|
22
|
+
props: Omit<ButtonProps, HtmlAnchorOnlyProps> & {
|
|
23
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
24
|
+
}
|
|
25
|
+
): React.ReactElement;
|
|
26
|
+
(
|
|
27
|
+
props: Omit<ButtonProps, HtmlButtonOnlyProps> & {
|
|
28
|
+
ref?: React.Ref<HTMLAnchorElement>;
|
|
29
|
+
}
|
|
30
|
+
): React.ReactElement;
|
|
31
|
+
};
|
|
32
|
+
const Button = React.forwardRef(Button_) as any as ButtonComponentType;
|
|
33
|
+
|
|
34
|
+
export default Object.assign(Button, {
|
|
35
|
+
__plumeType: "button"
|
|
36
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This is a skeleton starter React component 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 {
|
|
5
|
+
PlasmicDynamicPage,
|
|
6
|
+
DefaultDynamicPageProps
|
|
7
|
+
} from "./plasmic/create_plasmic_app/PlasmicDynamicPage";
|
|
8
|
+
import { HTMLElementRefOf } from "@plasmicapp/react-web";
|
|
9
|
+
|
|
10
|
+
// Your component props start with props for variants and slots you defined
|
|
11
|
+
// in Plasmic, but you can add more here, like event handlers that you can
|
|
12
|
+
// attach to named nodes in your component.
|
|
13
|
+
//
|
|
14
|
+
// If you don't want to expose certain variants or slots as a prop, you can use
|
|
15
|
+
// Omit to hide them:
|
|
16
|
+
//
|
|
17
|
+
// interface DynamicPageProps extends Omit<DefaultDynamicPageProps, "hideProps1"|"hideProp2"> {
|
|
18
|
+
// // etc.
|
|
19
|
+
// }
|
|
20
|
+
//
|
|
21
|
+
// You can also stop extending from DefaultDynamicPageProps altogether and have
|
|
22
|
+
// total control over the props for your component.
|
|
23
|
+
export interface DynamicPageProps extends DefaultDynamicPageProps {}
|
|
24
|
+
|
|
25
|
+
function DynamicPage_(props: DynamicPageProps, ref: HTMLElementRefOf<"div">) {
|
|
26
|
+
// Use PlasmicDynamicPage to render this component as it was
|
|
27
|
+
// designed in Plasmic, by activating the appropriate variants,
|
|
28
|
+
// attaching the appropriate event handlers, etc. You
|
|
29
|
+
// can also install whatever React hooks you need here to manage state or
|
|
30
|
+
// fetch data.
|
|
31
|
+
//
|
|
32
|
+
// Props you can pass into PlasmicDynamicPage are:
|
|
33
|
+
// 1. Variants you want to activate,
|
|
34
|
+
// 2. Contents for slots you want to fill,
|
|
35
|
+
// 3. Overrides for any named node in the component to attach behavior and data,
|
|
36
|
+
// 4. Props to set on the root node.
|
|
37
|
+
//
|
|
38
|
+
// By default, we are just piping all DynamicPageProps here, but feel free
|
|
39
|
+
// to do whatever works for you.
|
|
40
|
+
|
|
41
|
+
return <PlasmicDynamicPage root={{ ref }} {...props} />;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const DynamicPage = React.forwardRef(DynamicPage_);
|
|
45
|
+
export default DynamicPage;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This is a skeleton starter React component 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 {
|
|
5
|
+
PlasmicRandomDynamicPageButton,
|
|
6
|
+
DefaultRandomDynamicPageButtonProps
|
|
7
|
+
} from "./plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton";
|
|
8
|
+
|
|
9
|
+
// Your component props start with props for variants and slots you defined
|
|
10
|
+
// in Plasmic, but you can add more here, like event handlers that you can
|
|
11
|
+
// attach to named nodes in your component.
|
|
12
|
+
//
|
|
13
|
+
// If you don't want to expose certain variants or slots as a prop, you can use
|
|
14
|
+
// Omit to hide them:
|
|
15
|
+
//
|
|
16
|
+
// interface RandomDynamicPageButtonProps extends Omit<DefaultRandomDynamicPageButtonProps, "hideProps1"|"hideProp2"> {
|
|
17
|
+
// // etc.
|
|
18
|
+
// }
|
|
19
|
+
//
|
|
20
|
+
// You can also stop extending from DefaultRandomDynamicPageButtonProps altogether and have
|
|
21
|
+
// total control over the props for your component.
|
|
22
|
+
export interface RandomDynamicPageButtonProps
|
|
23
|
+
extends DefaultRandomDynamicPageButtonProps {}
|
|
24
|
+
|
|
25
|
+
function RandomDynamicPageButton(props: RandomDynamicPageButtonProps) {
|
|
26
|
+
// Use PlasmicRandomDynamicPageButton to render this component as it was
|
|
27
|
+
// designed in Plasmic, by activating the appropriate variants,
|
|
28
|
+
// attaching the appropriate event handlers, etc. You
|
|
29
|
+
// can also install whatever React hooks you need here to manage state or
|
|
30
|
+
// fetch data.
|
|
31
|
+
//
|
|
32
|
+
// Props you can pass into PlasmicRandomDynamicPageButton are:
|
|
33
|
+
// 1. Variants you want to activate,
|
|
34
|
+
// 2. Contents for slots you want to fill,
|
|
35
|
+
// 3. Overrides for any named node in the component to attach behavior and data,
|
|
36
|
+
// 4. Props to set on the root node.
|
|
37
|
+
//
|
|
38
|
+
// By default, we are just piping all RandomDynamicPageButtonProps here, but feel free
|
|
39
|
+
// to do whatever works for you.
|
|
40
|
+
|
|
41
|
+
return <PlasmicRandomDynamicPageButton {...props} />;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default RandomDynamicPageButton;
|