create-plasmic-app 0.0.67 → 0.0.69

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.
Files changed (101) hide show
  1. package/cpa-out/gatsby-codegen-js/package.json +2 -2
  2. package/cpa-out/gatsby-codegen-js/plasmic.json +54 -3
  3. package/cpa-out/gatsby-codegen-js/src/components/Button.jsx +13 -0
  4. package/cpa-out/gatsby-codegen-js/src/components/RandomDynamicPageButton.jsx +24 -0
  5. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +631 -0
  6. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +176 -0
  7. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
  8. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +162 -0
  9. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
  10. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
  11. package/cpa-out/gatsby-codegen-js/src/pages/dynamic/[slug].jsx +39 -0
  12. package/cpa-out/gatsby-codegen-ts/package.json +2 -2
  13. package/cpa-out/gatsby-codegen-ts/plasmic.json +54 -3
  14. package/cpa-out/gatsby-codegen-ts/src/components/Button.tsx +36 -0
  15. package/cpa-out/gatsby-codegen-ts/src/components/RandomDynamicPageButton.tsx +44 -0
  16. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +736 -0
  17. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +262 -0
  18. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
  19. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -3
  20. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +246 -0
  21. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
  22. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  23. package/cpa-out/gatsby-codegen-ts/src/pages/dynamic/[slug].tsx +41 -0
  24. package/cpa-out/gatsby-loader-js/package.json +1 -1
  25. package/cpa-out/gatsby-loader-ts/package.json +1 -1
  26. package/cpa-out/nextjs-app-loader-js/package.json +1 -1
  27. package/cpa-out/nextjs-app-loader-ts/package.json +2 -2
  28. package/cpa-out/nextjs-pages-codegen-js/components/Button.jsx +13 -0
  29. package/cpa-out/nextjs-pages-codegen-js/components/RandomDynamicPageButton.jsx +24 -0
  30. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +640 -0
  31. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +184 -0
  32. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
  33. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +170 -0
  34. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
  35. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
  36. package/cpa-out/nextjs-pages-codegen-js/package.json +2 -2
  37. package/cpa-out/nextjs-pages-codegen-js/pages/dynamic/[slug].jsx +35 -0
  38. package/cpa-out/nextjs-pages-codegen-js/plasmic.json +54 -3
  39. package/cpa-out/nextjs-pages-codegen-ts/components/Button.tsx +36 -0
  40. package/cpa-out/nextjs-pages-codegen-ts/components/RandomDynamicPageButton.tsx +44 -0
  41. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +742 -0
  42. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +264 -0
  43. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
  44. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -3
  45. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +252 -0
  46. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
  47. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  48. package/cpa-out/nextjs-pages-codegen-ts/package.json +3 -3
  49. package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +37 -0
  50. package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +54 -3
  51. package/cpa-out/nextjs-pages-loader-js/package.json +1 -1
  52. package/cpa-out/nextjs-pages-loader-ts/package.json +2 -2
  53. package/cpa-out/react-codegen-js/package.json +2 -2
  54. package/cpa-out/react-codegen-js/plasmic.json +54 -3
  55. package/cpa-out/react-codegen-js/src/components/Button.jsx +13 -0
  56. package/cpa-out/react-codegen-js/src/components/DynamicPage.jsx +26 -0
  57. package/cpa-out/react-codegen-js/src/components/RandomDynamicPageButton.jsx +24 -0
  58. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +625 -0
  59. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +166 -0
  60. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
  61. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +161 -0
  62. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
  63. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
  64. package/cpa-out/react-codegen-ts/package.json +2 -2
  65. package/cpa-out/react-codegen-ts/plasmic.json +54 -3
  66. package/cpa-out/react-codegen-ts/src/components/Button.tsx +36 -0
  67. package/cpa-out/react-codegen-ts/src/components/DynamicPage.tsx +45 -0
  68. package/cpa-out/react-codegen-ts/src/components/RandomDynamicPageButton.tsx +44 -0
  69. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +725 -0
  70. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +248 -0
  71. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
  72. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -3
  73. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +240 -0
  74. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
  75. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  76. package/cpa-out/react-loader-js/package.json +2 -2
  77. package/cpa-out/react-loader-js/plasmic.json +54 -3
  78. package/cpa-out/react-loader-js/src/components/Button.jsx +13 -0
  79. package/cpa-out/react-loader-js/src/components/DynamicPage.jsx +26 -0
  80. package/cpa-out/react-loader-js/src/components/RandomDynamicPageButton.jsx +24 -0
  81. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +625 -0
  82. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +166 -0
  83. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
  84. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +161 -0
  85. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
  86. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
  87. package/cpa-out/react-loader-ts/package.json +2 -2
  88. package/cpa-out/react-loader-ts/plasmic.json +54 -3
  89. package/cpa-out/react-loader-ts/src/components/Button.tsx +36 -0
  90. package/cpa-out/react-loader-ts/src/components/DynamicPage.tsx +45 -0
  91. package/cpa-out/react-loader-ts/src/components/RandomDynamicPageButton.tsx +44 -0
  92. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +725 -0
  93. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +248 -0
  94. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
  95. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -3
  96. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +240 -0
  97. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
  98. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  99. package/dist/nextjs/nextjs.js +2 -2
  100. package/package.json +2 -2
  101. package/src/nextjs/nextjs.ts +2 -2
@@ -0,0 +1,176 @@
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 * as projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
22
+ import * as 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
+ export function Head() {
38
+ return <></>;
39
+ }
40
+
41
+ function PlasmicDynamicPage__RenderFunc(props) {
42
+ const { variants, overrides, forNode } = props;
43
+ const $ctx = ph.useDataEnv?.() || {};
44
+ const args = React.useMemo(() => Object.assign({}, props.args), [props.args]);
45
+ const $props = {
46
+ ...args,
47
+ ...variants
48
+ };
49
+ const refsRef = React.useRef({});
50
+ const $refs = refsRef.current;
51
+ const currentUser = p.useCurrentUser?.() || {};
52
+ const [$queries, setDollarQueries] = React.useState({});
53
+ return (
54
+ <React.Fragment>
55
+ <style>{`
56
+ body {
57
+ margin: 0;
58
+ }
59
+ `}</style>
60
+
61
+ <div className={projectcss.plasmic_page_wrapper}>
62
+ <div
63
+ data-plasmic-name={"root"}
64
+ data-plasmic-override={overrides.root}
65
+ data-plasmic-root={true}
66
+ data-plasmic-for-node={forNode}
67
+ className={classNames(
68
+ projectcss.all,
69
+ projectcss.root_reset,
70
+ projectcss.plasmic_default_styles,
71
+ projectcss.plasmic_mixins,
72
+ sty.root
73
+ )}
74
+ >
75
+ <p.Stack
76
+ as={"section"}
77
+ data-plasmic-name={"section"}
78
+ data-plasmic-override={overrides.section}
79
+ hasGap={true}
80
+ className={classNames(projectcss.all, sty.section)}
81
+ >
82
+ <h1
83
+ data-plasmic-name={"h1"}
84
+ data-plasmic-override={overrides.h1}
85
+ className={classNames(
86
+ projectcss.all,
87
+ projectcss.h1,
88
+ projectcss.__wab_text,
89
+ sty.h1
90
+ )}
91
+ >
92
+ {(() => {
93
+ try {
94
+ return $ctx.params.slug;
95
+ } catch (e) {
96
+ if (e instanceof TypeError) {
97
+ return "Page 1";
98
+ }
99
+ throw e;
100
+ }
101
+ })()}
102
+ </h1>
103
+
104
+ <RandomDynamicPageButton
105
+ data-plasmic-name={"randomDynamicPageButton"}
106
+ data-plasmic-override={overrides.randomDynamicPageButton}
107
+ className={classNames(
108
+ "__wab_instance",
109
+ sty.randomDynamicPageButton
110
+ )}
111
+ />
112
+ </p.Stack>
113
+ </div>
114
+ </div>
115
+ </React.Fragment>
116
+ );
117
+ }
118
+
119
+ const PlasmicDescendants = {
120
+ root: ["root", "section", "h1", "randomDynamicPageButton"],
121
+ section: ["section", "h1", "randomDynamicPageButton"],
122
+ h1: ["h1"],
123
+ randomDynamicPageButton: ["randomDynamicPageButton"]
124
+ };
125
+
126
+ function makeNodeComponent(nodeName) {
127
+ const func = function (props) {
128
+ const { variants, args, overrides } = React.useMemo(
129
+ () =>
130
+ deriveRenderOpts(props, {
131
+ name: nodeName,
132
+ descendantNames: [...PlasmicDescendants[nodeName]],
133
+ internalArgPropNames: PlasmicDynamicPage__ArgProps,
134
+ internalVariantPropNames: PlasmicDynamicPage__VariantProps
135
+ }),
136
+ [props, nodeName]
137
+ );
138
+
139
+ return PlasmicDynamicPage__RenderFunc({
140
+ variants,
141
+ args,
142
+ overrides,
143
+ forNode: nodeName
144
+ });
145
+ };
146
+ if (nodeName === "root") {
147
+ func.displayName = "PlasmicDynamicPage";
148
+ } else {
149
+ func.displayName = `PlasmicDynamicPage.${nodeName}`;
150
+ }
151
+ return func;
152
+ }
153
+
154
+ export const PlasmicDynamicPage = Object.assign(
155
+ // Top-level PlasmicDynamicPage renders the root element
156
+ makeNodeComponent("root"),
157
+ {
158
+ // Helper components rendering sub-elements
159
+ section: makeNodeComponent("section"),
160
+ h1: makeNodeComponent("h1"),
161
+ randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
162
+ // Metadata about props expected for PlasmicDynamicPage
163
+ internalVariantProps: PlasmicDynamicPage__VariantProps,
164
+ internalArgProps: PlasmicDynamicPage__ArgProps,
165
+ // Page metadata
166
+ pageMetadata: {
167
+ title: "",
168
+ description: "",
169
+ ogImageSrc: "",
170
+ canonical: ""
171
+ }
172
+ }
173
+ );
174
+
175
+ export default PlasmicDynamicPage;
176
+ /* prettier-ignore-end */
@@ -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 * as projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
@@ -141,6 +142,15 @@ function PlasmicHomepage__RenderFunc(props) {
141
142
  </React.Fragment>
142
143
  )}
143
144
  </div>
145
+
146
+ <RandomDynamicPageButton
147
+ data-plasmic-name={"randomDynamicPageButton"}
148
+ data-plasmic-override={overrides.randomDynamicPageButton}
149
+ className={classNames(
150
+ "__wab_instance",
151
+ sty.randomDynamicPageButton
152
+ )}
153
+ />
144
154
  </p.Stack>
145
155
  </div>
146
156
  </div>
@@ -149,10 +159,11 @@ function PlasmicHomepage__RenderFunc(props) {
149
159
  }
150
160
 
151
161
  const PlasmicDescendants = {
152
- root: ["root", "section", "h1", "text"],
153
- section: ["section", "h1", "text"],
162
+ root: ["root", "section", "h1", "text", "randomDynamicPageButton"],
163
+ section: ["section", "h1", "text", "randomDynamicPageButton"],
154
164
  h1: ["h1"],
155
- text: ["text"]
165
+ text: ["text"],
166
+ randomDynamicPageButton: ["randomDynamicPageButton"]
156
167
  };
157
168
 
158
169
  function makeNodeComponent(nodeName) {
@@ -191,6 +202,7 @@ export const PlasmicHomepage = Object.assign(
191
202
  section: makeNodeComponent("section"),
192
203
  h1: makeNodeComponent("h1"),
193
204
  text: makeNodeComponent("text"),
205
+ randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
194
206
  // Metadata about props expected for PlasmicHomepage
195
207
  internalVariantProps: PlasmicHomepage__VariantProps,
196
208
  internalArgProps: PlasmicHomepage__ArgProps,
@@ -0,0 +1,162 @@
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 { navigate as __gatsbyNavigate } from "gatsby";
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 * as 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 PlasmicRandomDynamicPageButton__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
+ <Button
51
+ data-plasmic-name={"root"}
52
+ data-plasmic-override={overrides.root}
53
+ data-plasmic-root={true}
54
+ data-plasmic-for-node={forNode}
55
+ className={classNames("__wab_instance", sty.root)}
56
+ onClick={async event => {
57
+ const $steps = {};
58
+ $steps["goToDynamicPage"] = true
59
+ ? (() => {
60
+ const actionArgs = {
61
+ destination: __wrapUserFunction(
62
+ {
63
+ type: "InteractionArgLoc",
64
+ actionName: "navigation",
65
+ interactionUuid: "9Y3jL0zxjA",
66
+ componentUuid: "Q23H1_1M_P",
67
+ argName: "destination"
68
+ },
69
+ () =>
70
+ `/dynamic/${(() => {
71
+ try {
72
+ return Math.random().toString(36).slice(2);
73
+ } catch (e) {
74
+ if (e instanceof TypeError) {
75
+ return "value";
76
+ }
77
+ throw e;
78
+ }
79
+ })()}`
80
+ )
81
+ };
82
+ return __wrapUserFunction(
83
+ {
84
+ type: "InteractionLoc",
85
+ actionName: "navigation",
86
+ interactionUuid: "9Y3jL0zxjA",
87
+ componentUuid: "Q23H1_1M_P"
88
+ },
89
+ () =>
90
+ (({ destination }) => {
91
+ __gatsbyNavigate(destination);
92
+ })?.apply(null, [actionArgs]),
93
+ actionArgs
94
+ );
95
+ })()
96
+ : undefined;
97
+ if (
98
+ typeof $steps["goToDynamicPage"] === "object" &&
99
+ typeof $steps["goToDynamicPage"].then === "function"
100
+ ) {
101
+ $steps["goToDynamicPage"] = await __wrapUserPromise(
102
+ {
103
+ type: "InteractionLoc",
104
+ actionName: "navigation",
105
+ interactionUuid: "9Y3jL0zxjA",
106
+ componentUuid: "Q23H1_1M_P"
107
+ },
108
+ $steps["goToDynamicPage"]
109
+ );
110
+ }
111
+ }}
112
+ >
113
+ {"Random Dynamic Page"}
114
+ </Button>
115
+ );
116
+ }
117
+
118
+ const PlasmicDescendants = {
119
+ root: ["root"]
120
+ };
121
+
122
+ function makeNodeComponent(nodeName) {
123
+ const func = function (props) {
124
+ const { variants, args, overrides } = React.useMemo(
125
+ () =>
126
+ deriveRenderOpts(props, {
127
+ name: nodeName,
128
+ descendantNames: [...PlasmicDescendants[nodeName]],
129
+ internalArgPropNames: PlasmicRandomDynamicPageButton__ArgProps,
130
+ internalVariantPropNames: PlasmicRandomDynamicPageButton__VariantProps
131
+ }),
132
+ [props, nodeName]
133
+ );
134
+
135
+ return PlasmicRandomDynamicPageButton__RenderFunc({
136
+ variants,
137
+ args,
138
+ overrides,
139
+ forNode: nodeName
140
+ });
141
+ };
142
+ if (nodeName === "root") {
143
+ func.displayName = "PlasmicRandomDynamicPageButton";
144
+ } else {
145
+ func.displayName = `PlasmicRandomDynamicPageButton.${nodeName}`;
146
+ }
147
+ return func;
148
+ }
149
+
150
+ export const PlasmicRandomDynamicPageButton = Object.assign(
151
+ // Top-level PlasmicRandomDynamicPageButton renders the root element
152
+ makeNodeComponent("root"),
153
+ {
154
+ // Helper components rendering sub-elements
155
+ // Metadata about props expected for PlasmicRandomDynamicPageButton
156
+ internalVariantProps: PlasmicRandomDynamicPageButton__VariantProps,
157
+ internalArgProps: PlasmicRandomDynamicPageButton__ArgProps
158
+ }
159
+ );
160
+
161
+ export default PlasmicRandomDynamicPageButton;
162
+ /* 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 */
@@ -0,0 +1,39 @@
1
+ // This is a skeleton starter React page generated by Plasmic.
2
+ // This file is owned by you, feel free to edit as you see fit.
3
+ import * as React from "react";
4
+ import * as ph from "@plasmicapp/react-web/lib/host";
5
+ import {
6
+ PlasmicDynamicPage,
7
+ Head
8
+ } from "../../components/plasmic/create_plasmic_app/PlasmicDynamicPage";
9
+
10
+ export { Head };
11
+
12
+ function DynamicPage({ location, params }) {
13
+ // Use PlasmicDynamicPage to render this component as it was
14
+ // designed in Plasmic, by activating the appropriate variants,
15
+ // attaching the appropriate event handlers, etc. You
16
+ // can also install whatever React hooks you need here to manage state or
17
+ // fetch data.
18
+ //
19
+ // Props you can pass into PlasmicDynamicPage are:
20
+ // 1. Variants you want to activate,
21
+ // 2. Contents for slots you want to fill,
22
+ // 3. Overrides for any named node in the component to attach behavior and data,
23
+ // 4. Props to set on the root node.
24
+ //
25
+ // By default, PlasmicDynamicPage is wrapped by your project's global
26
+ // variant context providers. These wrappers may be moved to
27
+ // Gatsby "wrapRootElement" function
28
+ // (https://www.gatsbyjs.com/docs/reference/config-files/gatsby-ssr#wrapRootElement).
29
+ return (
30
+ <ph.PageParamsProvider
31
+ params={params}
32
+ query={Object.fromEntries(new URLSearchParams(location.search))}
33
+ >
34
+ <PlasmicDynamicPage />
35
+ </ph.PageParamsProvider>
36
+ );
37
+ }
38
+
39
+ export default DynamicPage;
@@ -15,8 +15,8 @@
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "@plasmicapp/cli": "^0.1.225",
19
- "@plasmicapp/react-web": "^0.2.170",
18
+ "@plasmicapp/cli": "^0.1.231",
19
+ "@plasmicapp/react-web": "^0.2.174",
20
20
  "gatsby": "^5.7.0",
21
21
  "gatsby-plugin-react-helmet": "^6.7.0",
22
22
  "react": "^18.2.0",
@@ -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": "../pages/dynamic/[slug].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": "",
@@ -74,6 +125,6 @@
74
125
  "gatsbyConfig": {
75
126
  "pagesDir": "../pages"
76
127
  },
77
- "cliVersion": "0.1.225",
78
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.225/dist/plasmic.schema.json"
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;