create-plasmic-app 0.0.67 → 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/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 -3
- 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 +1 -1
- package/cpa-out/gatsby-loader-ts/package.json +1 -1
- package/cpa-out/nextjs-app-loader-js/package.json +1 -1
- package/cpa-out/nextjs-app-loader-ts/package.json +2 -2
- 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 -3
- 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 +3 -3
- 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 +1 -1
- package/cpa-out/nextjs-pages-loader-ts/package.json +2 -2
- 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 -3
- 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 -2
- 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 +15 -3
- 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 -2
- 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 +18 -3
- 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/package.json +2 -2
package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
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 Head from "next/head";
|
|
13
|
+
import { useRouter } from "next/router";
|
|
14
|
+
import * as p from "@plasmicapp/react-web";
|
|
15
|
+
import * as ph from "@plasmicapp/react-web/lib/host";
|
|
16
|
+
import {
|
|
17
|
+
classNames,
|
|
18
|
+
createPlasmicElementProxy,
|
|
19
|
+
deriveRenderOpts
|
|
20
|
+
} from "@plasmicapp/react-web";
|
|
21
|
+
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
22
|
+
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
23
|
+
import projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
24
|
+
import sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
|
|
25
|
+
|
|
26
|
+
export const PlasmicDynamicPage__VariantProps = new Array();
|
|
27
|
+
|
|
28
|
+
export const PlasmicDynamicPage__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
|
+
function useNextRouter() {
|
|
40
|
+
try {
|
|
41
|
+
return useRouter();
|
|
42
|
+
} catch {}
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function PlasmicDynamicPage__RenderFunc(props) {
|
|
47
|
+
const { variants, overrides, forNode } = props;
|
|
48
|
+
const __nextRouter = useNextRouter();
|
|
49
|
+
const $ctx = ph.useDataEnv?.() || {};
|
|
50
|
+
const args = React.useMemo(() => Object.assign({}, props.args), [props.args]);
|
|
51
|
+
const $props = {
|
|
52
|
+
...args,
|
|
53
|
+
...variants
|
|
54
|
+
};
|
|
55
|
+
const refsRef = React.useRef({});
|
|
56
|
+
const $refs = refsRef.current;
|
|
57
|
+
const currentUser = p.useCurrentUser?.() || {};
|
|
58
|
+
const [$queries, setDollarQueries] = React.useState({});
|
|
59
|
+
return (
|
|
60
|
+
<React.Fragment>
|
|
61
|
+
<Head></Head>
|
|
62
|
+
|
|
63
|
+
<style>{`
|
|
64
|
+
body {
|
|
65
|
+
margin: 0;
|
|
66
|
+
}
|
|
67
|
+
`}</style>
|
|
68
|
+
|
|
69
|
+
<div className={projectcss.plasmic_page_wrapper}>
|
|
70
|
+
<div
|
|
71
|
+
data-plasmic-name={"root"}
|
|
72
|
+
data-plasmic-override={overrides.root}
|
|
73
|
+
data-plasmic-root={true}
|
|
74
|
+
data-plasmic-for-node={forNode}
|
|
75
|
+
className={classNames(
|
|
76
|
+
projectcss.all,
|
|
77
|
+
projectcss.root_reset,
|
|
78
|
+
projectcss.plasmic_default_styles,
|
|
79
|
+
projectcss.plasmic_mixins,
|
|
80
|
+
sty.root
|
|
81
|
+
)}
|
|
82
|
+
>
|
|
83
|
+
<p.Stack
|
|
84
|
+
as={"section"}
|
|
85
|
+
data-plasmic-name={"section"}
|
|
86
|
+
data-plasmic-override={overrides.section}
|
|
87
|
+
hasGap={true}
|
|
88
|
+
className={classNames(projectcss.all, sty.section)}
|
|
89
|
+
>
|
|
90
|
+
<h1
|
|
91
|
+
data-plasmic-name={"h1"}
|
|
92
|
+
data-plasmic-override={overrides.h1}
|
|
93
|
+
className={classNames(
|
|
94
|
+
projectcss.all,
|
|
95
|
+
projectcss.h1,
|
|
96
|
+
projectcss.__wab_text,
|
|
97
|
+
sty.h1
|
|
98
|
+
)}
|
|
99
|
+
>
|
|
100
|
+
{(() => {
|
|
101
|
+
try {
|
|
102
|
+
return $ctx.params.slug;
|
|
103
|
+
} catch (e) {
|
|
104
|
+
if (e instanceof TypeError) {
|
|
105
|
+
return "Page 1";
|
|
106
|
+
}
|
|
107
|
+
throw e;
|
|
108
|
+
}
|
|
109
|
+
})()}
|
|
110
|
+
</h1>
|
|
111
|
+
|
|
112
|
+
<RandomDynamicPageButton
|
|
113
|
+
data-plasmic-name={"randomDynamicPageButton"}
|
|
114
|
+
data-plasmic-override={overrides.randomDynamicPageButton}
|
|
115
|
+
className={classNames(
|
|
116
|
+
"__wab_instance",
|
|
117
|
+
sty.randomDynamicPageButton
|
|
118
|
+
)}
|
|
119
|
+
/>
|
|
120
|
+
</p.Stack>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</React.Fragment>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const PlasmicDescendants = {
|
|
128
|
+
root: ["root", "section", "h1", "randomDynamicPageButton"],
|
|
129
|
+
section: ["section", "h1", "randomDynamicPageButton"],
|
|
130
|
+
h1: ["h1"],
|
|
131
|
+
randomDynamicPageButton: ["randomDynamicPageButton"]
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
function makeNodeComponent(nodeName) {
|
|
135
|
+
const func = function (props) {
|
|
136
|
+
const { variants, args, overrides } = React.useMemo(
|
|
137
|
+
() =>
|
|
138
|
+
deriveRenderOpts(props, {
|
|
139
|
+
name: nodeName,
|
|
140
|
+
descendantNames: [...PlasmicDescendants[nodeName]],
|
|
141
|
+
internalArgPropNames: PlasmicDynamicPage__ArgProps,
|
|
142
|
+
internalVariantPropNames: PlasmicDynamicPage__VariantProps
|
|
143
|
+
}),
|
|
144
|
+
[props, nodeName]
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
return PlasmicDynamicPage__RenderFunc({
|
|
148
|
+
variants,
|
|
149
|
+
args,
|
|
150
|
+
overrides,
|
|
151
|
+
forNode: nodeName
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
if (nodeName === "root") {
|
|
155
|
+
func.displayName = "PlasmicDynamicPage";
|
|
156
|
+
} else {
|
|
157
|
+
func.displayName = `PlasmicDynamicPage.${nodeName}`;
|
|
158
|
+
}
|
|
159
|
+
return func;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export const PlasmicDynamicPage = Object.assign(
|
|
163
|
+
// Top-level PlasmicDynamicPage renders the root element
|
|
164
|
+
makeNodeComponent("root"),
|
|
165
|
+
{
|
|
166
|
+
// Helper components rendering sub-elements
|
|
167
|
+
section: makeNodeComponent("section"),
|
|
168
|
+
h1: makeNodeComponent("h1"),
|
|
169
|
+
randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
|
|
170
|
+
// Metadata about props expected for PlasmicDynamicPage
|
|
171
|
+
internalVariantProps: PlasmicDynamicPage__VariantProps,
|
|
172
|
+
internalArgProps: PlasmicDynamicPage__ArgProps,
|
|
173
|
+
// Page metadata
|
|
174
|
+
pageMetadata: {
|
|
175
|
+
title: "",
|
|
176
|
+
description: "",
|
|
177
|
+
ogImageSrc: "",
|
|
178
|
+
canonical: ""
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
export default PlasmicDynamicPage;
|
|
184
|
+
/* prettier-ignore-end */
|
package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
deriveRenderOpts,
|
|
21
21
|
ensureGlobalVariants
|
|
22
22
|
} from "@plasmicapp/react-web";
|
|
23
|
+
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
23
24
|
import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
|
|
24
25
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
25
26
|
import projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
@@ -149,6 +150,15 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
149
150
|
</React.Fragment>
|
|
150
151
|
)}
|
|
151
152
|
</div>
|
|
153
|
+
|
|
154
|
+
<RandomDynamicPageButton
|
|
155
|
+
data-plasmic-name={"randomDynamicPageButton"}
|
|
156
|
+
data-plasmic-override={overrides.randomDynamicPageButton}
|
|
157
|
+
className={classNames(
|
|
158
|
+
"__wab_instance",
|
|
159
|
+
sty.randomDynamicPageButton
|
|
160
|
+
)}
|
|
161
|
+
/>
|
|
152
162
|
</p.Stack>
|
|
153
163
|
</div>
|
|
154
164
|
</div>
|
|
@@ -157,10 +167,11 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
157
167
|
}
|
|
158
168
|
|
|
159
169
|
const PlasmicDescendants = {
|
|
160
|
-
root: ["root", "section", "h1", "text"],
|
|
161
|
-
section: ["section", "h1", "text"],
|
|
170
|
+
root: ["root", "section", "h1", "text", "randomDynamicPageButton"],
|
|
171
|
+
section: ["section", "h1", "text", "randomDynamicPageButton"],
|
|
162
172
|
h1: ["h1"],
|
|
163
|
-
text: ["text"]
|
|
173
|
+
text: ["text"],
|
|
174
|
+
randomDynamicPageButton: ["randomDynamicPageButton"]
|
|
164
175
|
};
|
|
165
176
|
|
|
166
177
|
function makeNodeComponent(nodeName) {
|
|
@@ -199,6 +210,7 @@ export const PlasmicHomepage = Object.assign(
|
|
|
199
210
|
section: makeNodeComponent("section"),
|
|
200
211
|
h1: makeNodeComponent("h1"),
|
|
201
212
|
text: makeNodeComponent("text"),
|
|
213
|
+
randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
|
|
202
214
|
// Metadata about props expected for PlasmicHomepage
|
|
203
215
|
internalVariantProps: PlasmicHomepage__VariantProps,
|
|
204
216
|
internalArgProps: PlasmicHomepage__ArgProps,
|
|
@@ -0,0 +1,170 @@
|
|
|
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 { useRouter } from "next/router";
|
|
13
|
+
import * as p from "@plasmicapp/react-web";
|
|
14
|
+
import * as ph from "@plasmicapp/react-web/lib/host";
|
|
15
|
+
import {
|
|
16
|
+
classNames,
|
|
17
|
+
createPlasmicElementProxy,
|
|
18
|
+
deriveRenderOpts
|
|
19
|
+
} from "@plasmicapp/react-web";
|
|
20
|
+
import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
|
|
21
|
+
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
22
|
+
import sty from "./PlasmicRandomDynamicPageButton.module.css"; // plasmic-import: Q23H1_1M_P/css
|
|
23
|
+
|
|
24
|
+
export const PlasmicRandomDynamicPageButton__VariantProps = new Array();
|
|
25
|
+
|
|
26
|
+
export const PlasmicRandomDynamicPageButton__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 useNextRouter() {
|
|
38
|
+
try {
|
|
39
|
+
return useRouter();
|
|
40
|
+
} catch {}
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function PlasmicRandomDynamicPageButton__RenderFunc(props) {
|
|
45
|
+
const { variants, overrides, forNode } = props;
|
|
46
|
+
const __nextRouter = useNextRouter();
|
|
47
|
+
const $ctx = ph.useDataEnv?.() || {};
|
|
48
|
+
const args = React.useMemo(() => Object.assign({}, props.args), [props.args]);
|
|
49
|
+
const $props = {
|
|
50
|
+
...args,
|
|
51
|
+
...variants
|
|
52
|
+
};
|
|
53
|
+
const refsRef = React.useRef({});
|
|
54
|
+
const $refs = refsRef.current;
|
|
55
|
+
const currentUser = p.useCurrentUser?.() || {};
|
|
56
|
+
const [$queries, setDollarQueries] = React.useState({});
|
|
57
|
+
return (
|
|
58
|
+
<Button
|
|
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("__wab_instance", sty.root)}
|
|
64
|
+
onClick={async event => {
|
|
65
|
+
const $steps = {};
|
|
66
|
+
$steps["goToDynamicPage"] = true
|
|
67
|
+
? (() => {
|
|
68
|
+
const actionArgs = {
|
|
69
|
+
destination: __wrapUserFunction(
|
|
70
|
+
{
|
|
71
|
+
type: "InteractionArgLoc",
|
|
72
|
+
actionName: "navigation",
|
|
73
|
+
interactionUuid: "9Y3jL0zxjA",
|
|
74
|
+
componentUuid: "Q23H1_1M_P",
|
|
75
|
+
argName: "destination"
|
|
76
|
+
},
|
|
77
|
+
() =>
|
|
78
|
+
`/dynamic/${(() => {
|
|
79
|
+
try {
|
|
80
|
+
return Math.random().toString(36).slice(2);
|
|
81
|
+
} catch (e) {
|
|
82
|
+
if (e instanceof TypeError) {
|
|
83
|
+
return "value";
|
|
84
|
+
}
|
|
85
|
+
throw e;
|
|
86
|
+
}
|
|
87
|
+
})()}`
|
|
88
|
+
)
|
|
89
|
+
};
|
|
90
|
+
return __wrapUserFunction(
|
|
91
|
+
{
|
|
92
|
+
type: "InteractionLoc",
|
|
93
|
+
actionName: "navigation",
|
|
94
|
+
interactionUuid: "9Y3jL0zxjA",
|
|
95
|
+
componentUuid: "Q23H1_1M_P"
|
|
96
|
+
},
|
|
97
|
+
() =>
|
|
98
|
+
(({ destination }) => {
|
|
99
|
+
__nextRouter?.push(destination);
|
|
100
|
+
})?.apply(null, [actionArgs]),
|
|
101
|
+
actionArgs
|
|
102
|
+
);
|
|
103
|
+
})()
|
|
104
|
+
: undefined;
|
|
105
|
+
if (
|
|
106
|
+
typeof $steps["goToDynamicPage"] === "object" &&
|
|
107
|
+
typeof $steps["goToDynamicPage"].then === "function"
|
|
108
|
+
) {
|
|
109
|
+
$steps["goToDynamicPage"] = await __wrapUserPromise(
|
|
110
|
+
{
|
|
111
|
+
type: "InteractionLoc",
|
|
112
|
+
actionName: "navigation",
|
|
113
|
+
interactionUuid: "9Y3jL0zxjA",
|
|
114
|
+
componentUuid: "Q23H1_1M_P"
|
|
115
|
+
},
|
|
116
|
+
$steps["goToDynamicPage"]
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
{"Random Dynamic Page"}
|
|
122
|
+
</Button>
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const PlasmicDescendants = {
|
|
127
|
+
root: ["root"]
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
function makeNodeComponent(nodeName) {
|
|
131
|
+
const func = function (props) {
|
|
132
|
+
const { variants, args, overrides } = React.useMemo(
|
|
133
|
+
() =>
|
|
134
|
+
deriveRenderOpts(props, {
|
|
135
|
+
name: nodeName,
|
|
136
|
+
descendantNames: [...PlasmicDescendants[nodeName]],
|
|
137
|
+
internalArgPropNames: PlasmicRandomDynamicPageButton__ArgProps,
|
|
138
|
+
internalVariantPropNames: PlasmicRandomDynamicPageButton__VariantProps
|
|
139
|
+
}),
|
|
140
|
+
[props, nodeName]
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
return PlasmicRandomDynamicPageButton__RenderFunc({
|
|
144
|
+
variants,
|
|
145
|
+
args,
|
|
146
|
+
overrides,
|
|
147
|
+
forNode: nodeName
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
if (nodeName === "root") {
|
|
151
|
+
func.displayName = "PlasmicRandomDynamicPageButton";
|
|
152
|
+
} else {
|
|
153
|
+
func.displayName = `PlasmicRandomDynamicPageButton.${nodeName}`;
|
|
154
|
+
}
|
|
155
|
+
return func;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export const PlasmicRandomDynamicPageButton = Object.assign(
|
|
159
|
+
// Top-level PlasmicRandomDynamicPageButton renders the root element
|
|
160
|
+
makeNodeComponent("root"),
|
|
161
|
+
{
|
|
162
|
+
// Helper components rendering sub-elements
|
|
163
|
+
// Metadata about props expected for PlasmicRandomDynamicPageButton
|
|
164
|
+
internalVariantProps: PlasmicRandomDynamicPageButton__VariantProps,
|
|
165
|
+
internalArgProps: PlasmicRandomDynamicPageButton__ArgProps
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
export default PlasmicRandomDynamicPageButton;
|
|
170
|
+
/* 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 */
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"lint": "next lint"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@plasmicapp/cli": "^0.1.
|
|
13
|
-
"@plasmicapp/react-web": "^0.2.
|
|
12
|
+
"@plasmicapp/cli": "^0.1.231",
|
|
13
|
+
"@plasmicapp/react-web": "^0.2.174",
|
|
14
14
|
"eslint": "8.36.0",
|
|
15
15
|
"eslint-config-next": "13.2.4",
|
|
16
16
|
"next": "13.2.4",
|
|
@@ -0,0 +1,35 @@
|
|
|
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/react-web/lib/host";
|
|
5
|
+
import { PlasmicDynamicPage } from "../../components/plasmic/create_plasmic_app/PlasmicDynamicPage";
|
|
6
|
+
import { useRouter } from "next/router";
|
|
7
|
+
|
|
8
|
+
function DynamicPage() {
|
|
9
|
+
// Use PlasmicDynamicPage to render this component as it was
|
|
10
|
+
// designed in Plasmic, by activating the appropriate variants,
|
|
11
|
+
// attaching the appropriate event handlers, etc. You
|
|
12
|
+
// can also install whatever React hooks you need here to manage state or
|
|
13
|
+
// fetch data.
|
|
14
|
+
//
|
|
15
|
+
// Props you can pass into PlasmicDynamicPage are:
|
|
16
|
+
// 1. Variants you want to activate,
|
|
17
|
+
// 2. Contents for slots you want to fill,
|
|
18
|
+
// 3. Overrides for any named node in the component to attach behavior and data,
|
|
19
|
+
// 4. Props to set on the root node.
|
|
20
|
+
//
|
|
21
|
+
// By default, PlasmicDynamicPage is wrapped by your project's global
|
|
22
|
+
// variant context providers. These wrappers may be moved to
|
|
23
|
+
// Next.js Custom App component
|
|
24
|
+
// (https://nextjs.org/docs/advanced-features/custom-app).
|
|
25
|
+
return (
|
|
26
|
+
<ph.PageParamsProvider
|
|
27
|
+
params={useRouter()?.query}
|
|
28
|
+
query={useRouter()?.query}
|
|
29
|
+
>
|
|
30
|
+
<PlasmicDynamicPage />
|
|
31
|
+
</ph.PageParamsProvider>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default DynamicPage;
|
|
@@ -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.jsx",
|
|
50
|
+
"importSpec": {
|
|
51
|
+
"modulePath": "../pages/dynamic/[slug].jsx"
|
|
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.jsx",
|
|
63
|
+
"importSpec": {
|
|
64
|
+
"modulePath": "Button.jsx"
|
|
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.jsx",
|
|
77
|
+
"importSpec": {
|
|
78
|
+
"modulePath": "RandomDynamicPageButton.jsx"
|
|
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.jsx"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "6PNxx3YMyDQ",
|
|
93
|
+
"name": "IconIcon",
|
|
94
|
+
"moduleFilePath": "plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx"
|
|
43
95
|
}
|
|
44
96
|
],
|
|
45
|
-
"icons": [],
|
|
46
97
|
"images": [],
|
|
47
98
|
"indirect": false,
|
|
48
99
|
"globalContextsFilePath": "",
|
|
@@ -74,6 +125,6 @@
|
|
|
74
125
|
"nextjsConfig": {
|
|
75
126
|
"pagesDir": "../pages"
|
|
76
127
|
},
|
|
77
|
-
"cliVersion": "0.1.
|
|
78
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
128
|
+
"cliVersion": "0.1.231",
|
|
129
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.231/dist/plasmic.schema.json"
|
|
79
130
|
}
|
|
@@ -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,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;
|