create-plasmic-app 0.0.92 → 0.0.93

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 (44) hide show
  1. package/cpa-out/nextjs-app-loader-js/pages/[[...catchall]].jsx +68 -0
  2. package/cpa-out/nextjs-app-loader-js/pages/api/hello.js +5 -0
  3. package/cpa-out/nextjs-app-loader-js/pages/plasmic-host.jsx +7 -0
  4. package/cpa-out/nextjs-app-loader-ts/pages/[[...catchall]].tsx +72 -0
  5. package/cpa-out/nextjs-app-loader-ts/pages/api/hello.ts +13 -0
  6. package/cpa-out/nextjs-app-loader-ts/pages/plasmic-host.tsx +7 -0
  7. package/cpa-out/nextjs-pages-codegen-js/components/Button.jsx +1 -3
  8. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +50 -98
  9. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +36 -30
  10. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +2 -14
  11. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +25 -25
  12. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +45 -59
  13. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +2 -2
  14. package/cpa-out/nextjs-pages-codegen-js/package.json +9 -7
  15. package/cpa-out/nextjs-pages-codegen-js/pages/api/hello.js +1 -1
  16. package/cpa-out/nextjs-pages-codegen-js/pages/dynamic/[slug].jsx +4 -3
  17. package/cpa-out/nextjs-pages-codegen-js/pages/index.jsx +4 -3
  18. package/cpa-out/nextjs-pages-codegen-js/plasmic.json +14 -8
  19. package/cpa-out/nextjs-pages-codegen-ts/components/Button.tsx +4 -5
  20. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +86 -65
  21. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +74 -43
  22. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +2 -14
  23. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +63 -37
  24. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +84 -71
  25. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +3 -3
  26. package/cpa-out/nextjs-pages-codegen-ts/package.json +13 -11
  27. package/cpa-out/nextjs-pages-codegen-ts/pages/api/hello.ts +5 -5
  28. package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +4 -4
  29. package/cpa-out/nextjs-pages-codegen-ts/pages/index.tsx +4 -4
  30. package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +14 -8
  31. package/cpa-out/nextjs-pages-codegen-ts/tsconfig.json +1 -3
  32. package/cpa-out/nextjs-pages-loader-js/package.json +8 -6
  33. package/cpa-out/nextjs-pages-loader-js/pages/[[...catchall]].jsx +2 -0
  34. package/cpa-out/nextjs-pages-loader-js/pages/api/hello.js +1 -1
  35. package/cpa-out/nextjs-pages-loader-ts/package.json +12 -10
  36. package/cpa-out/nextjs-pages-loader-ts/pages/[[...catchall]].tsx +2 -0
  37. package/cpa-out/nextjs-pages-loader-ts/pages/api/hello.ts +5 -5
  38. package/cpa-out/nextjs-pages-loader-ts/tsconfig.json +1 -3
  39. package/dist/nextjs/nextjs.js +5 -23
  40. package/dist/nextjs/templates/pages-loader/catchall-page.js +1 -1
  41. package/package.json +2 -2
  42. package/src/nextjs/nextjs.ts +5 -24
  43. package/src/nextjs/templates/pages-loader/catchall-page.ts +1 -1
  44. package/.tool-versions +0 -1
@@ -11,33 +11,28 @@
11
11
  import * as React from "react";
12
12
  import Head from "next/head";
13
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
14
  import {
17
- hasVariant,
15
+ Stack as Stack__,
18
16
  classNames,
19
17
  createPlasmicElementProxy,
20
18
  deriveRenderOpts,
21
- ensureGlobalVariants
19
+ ensureGlobalVariants,
20
+ hasVariant
22
21
  } from "@plasmicapp/react-web";
22
+ import { useDataEnv } from "@plasmicapp/react-web/lib/host";
23
23
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
24
24
  import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
25
25
  import "@plasmicapp/react-web/lib/plasmic.css";
26
- import projectcss from "./plasmic_create_plasmic_app.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
26
+ import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
27
27
  import sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
28
28
 
29
+ createPlasmicElementProxy;
30
+
29
31
  export const PlasmicHomepage__VariantProps = new Array();
30
32
 
31
33
  export const PlasmicHomepage__ArgProps = new Array();
32
34
 
33
- const __wrapUserFunction =
34
- globalThis.__PlasmicWrapUserFunction ?? ((loc, fn) => fn());
35
-
36
- const __wrapUserPromise =
37
- globalThis.__PlasmicWrapUserPromise ??
38
- (async (loc, promise) => {
39
- return await promise;
40
- });
35
+ const $$ = {};
41
36
 
42
37
  function useNextRouter() {
43
38
  try {
@@ -48,17 +43,24 @@ function useNextRouter() {
48
43
 
49
44
  function PlasmicHomepage__RenderFunc(props) {
50
45
  const { variants, overrides, forNode } = props;
51
- const __nextRouter = useNextRouter();
52
- const $ctx = ph.useDataEnv?.() || {};
53
- const args = React.useMemo(() => Object.assign({}, props.args), [props.args]);
46
+ const args = React.useMemo(
47
+ () =>
48
+ Object.assign(
49
+ {},
50
+ Object.fromEntries(
51
+ Object.entries(props.args).filter(([_, v]) => v !== undefined)
52
+ )
53
+ ),
54
+ [props.args]
55
+ );
54
56
  const $props = {
55
57
  ...args,
56
58
  ...variants
57
59
  };
60
+ const __nextRouter = useNextRouter();
61
+ const $ctx = useDataEnv?.() || {};
58
62
  const refsRef = React.useRef({});
59
63
  const $refs = refsRef.current;
60
- const currentUser = p.useCurrentUser?.() || {};
61
- const [$queries, setDollarQueries] = React.useState({});
62
64
  const globalVariants = ensureGlobalVariants({
63
65
  screen: useScreenVariantsscBjPxgdxdzbv()
64
66
  });
@@ -83,10 +85,11 @@ function PlasmicHomepage__RenderFunc(props) {
83
85
  projectcss.root_reset,
84
86
  projectcss.plasmic_default_styles,
85
87
  projectcss.plasmic_mixins,
88
+ projectcss.plasmic_tokens,
86
89
  sty.root
87
90
  )}
88
91
  >
89
- <p.Stack
92
+ <Stack__
90
93
  as={"section"}
91
94
  data-plasmic-name={"section"}
92
95
  data-plasmic-override={overrides.section}
@@ -105,7 +108,6 @@ function PlasmicHomepage__RenderFunc(props) {
105
108
  >
106
109
  {"create-plasmic-app"}
107
110
  </h1>
108
-
109
111
  <div
110
112
  data-plasmic-name={"text"}
111
113
  data-plasmic-override={overrides.text}
@@ -133,7 +135,7 @@ function PlasmicHomepage__RenderFunc(props) {
133
135
  <React.Fragment>
134
136
  <React.Fragment>
135
137
  {
136
- "If you haven't already done so, go back and learn the basics by going through the Plasmic Levels tutorial.\n\nIt's always easier to start from examples! Add a new page using a template—do this from the list of pages in the top left (the gray + button).\n\nOr press the big blue + button to start dragging items into this page.\n\nIntegrate this project into your codebase—press the "
138
+ "If you haven't already done so, go back and learn the basics by going through the Plasmic Levels tutorial.\n\nIt's always easier to start from examples! Add a new page using a template\u2014do this from the list of pages in the top left (the gray + button).\n\nOr press the big blue + button to start dragging items into this page.\n\nIntegrate this project into your codebase\u2014press the "
137
139
  }
138
140
  </React.Fragment>
139
141
  <span
@@ -150,7 +152,6 @@ function PlasmicHomepage__RenderFunc(props) {
150
152
  </React.Fragment>
151
153
  )}
152
154
  </div>
153
-
154
155
  <RandomDynamicPageButton
155
156
  data-plasmic-name={"randomDynamicPageButton"}
156
157
  data-plasmic-override={overrides.randomDynamicPageButton}
@@ -159,7 +160,7 @@ function PlasmicHomepage__RenderFunc(props) {
159
160
  sty.randomDynamicPageButton
160
161
  )}
161
162
  />
162
- </p.Stack>
163
+ </Stack__>
163
164
  </div>
164
165
  </div>
165
166
  </React.Fragment>
@@ -180,13 +181,12 @@ function makeNodeComponent(nodeName) {
180
181
  () =>
181
182
  deriveRenderOpts(props, {
182
183
  name: nodeName,
183
- descendantNames: [...PlasmicDescendants[nodeName]],
184
+ descendantNames: PlasmicDescendants[nodeName],
184
185
  internalArgPropNames: PlasmicHomepage__ArgProps,
185
186
  internalVariantPropNames: PlasmicHomepage__VariantProps
186
187
  }),
187
188
  [props, nodeName]
188
189
  );
189
-
190
190
  return PlasmicHomepage__RenderFunc({
191
191
  variants,
192
192
  args,
@@ -10,29 +10,23 @@
10
10
  // Component: Q23H1_1M_P
11
11
  import * as React from "react";
12
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
13
  import {
16
14
  classNames,
17
15
  createPlasmicElementProxy,
18
16
  deriveRenderOpts
19
17
  } from "@plasmicapp/react-web";
18
+ import { useDataEnv } from "@plasmicapp/react-web/lib/host";
20
19
  import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
21
20
  import "@plasmicapp/react-web/lib/plasmic.css";
22
21
  import sty from "./PlasmicRandomDynamicPageButton.module.css"; // plasmic-import: Q23H1_1M_P/css
23
22
 
23
+ createPlasmicElementProxy;
24
+
24
25
  export const PlasmicRandomDynamicPageButton__VariantProps = new Array();
25
26
 
26
27
  export const PlasmicRandomDynamicPageButton__ArgProps = new Array();
27
28
 
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
- });
29
+ const $$ = {};
36
30
 
37
31
  function useNextRouter() {
38
32
  try {
@@ -43,17 +37,24 @@ function useNextRouter() {
43
37
 
44
38
  function PlasmicRandomDynamicPageButton__RenderFunc(props) {
45
39
  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]);
40
+ const args = React.useMemo(
41
+ () =>
42
+ Object.assign(
43
+ {},
44
+ Object.fromEntries(
45
+ Object.entries(props.args).filter(([_, v]) => v !== undefined)
46
+ )
47
+ ),
48
+ [props.args]
49
+ );
49
50
  const $props = {
50
51
  ...args,
51
52
  ...variants
52
53
  };
54
+ const __nextRouter = useNextRouter();
55
+ const $ctx = useDataEnv?.() || {};
53
56
  const refsRef = React.useRef({});
54
57
  const $refs = refsRef.current;
55
- const currentUser = p.useCurrentUser?.() || {};
56
- const [$queries, setDollarQueries] = React.useState({});
57
58
  return (
58
59
  <Button
59
60
  data-plasmic-name={"root"}
@@ -66,57 +67,43 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props) {
66
67
  $steps["goToDynamicPage"] = true
67
68
  ? (() => {
68
69
  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
- )
70
+ destination: `/dynamic/${(() => {
71
+ try {
72
+ return Math.random().toString(36).slice(2);
73
+ } catch (e) {
74
+ if (
75
+ e instanceof TypeError ||
76
+ e?.plasmicType === "PlasmicUndefinedDataError"
77
+ ) {
78
+ return "value";
79
+ }
80
+ throw e;
81
+ }
82
+ })()}`
89
83
  };
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
- );
84
+ return (({ destination }) => {
85
+ if (
86
+ typeof destination === "string" &&
87
+ destination.startsWith("#")
88
+ ) {
89
+ document
90
+ .getElementById(destination.substr(1))
91
+ .scrollIntoView({ behavior: "smooth" });
92
+ } else {
93
+ __nextRouter?.push(destination);
94
+ }
95
+ })?.apply(null, [actionArgs]);
103
96
  })()
104
97
  : undefined;
105
98
  if (
99
+ $steps["goToDynamicPage"] != null &&
106
100
  typeof $steps["goToDynamicPage"] === "object" &&
107
101
  typeof $steps["goToDynamicPage"].then === "function"
108
102
  ) {
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
- );
103
+ $steps["goToDynamicPage"] = await $steps["goToDynamicPage"];
118
104
  }
119
105
  }}
106
+ submitsForm={true}
120
107
  >
121
108
  {"Random Dynamic Page"}
122
109
  </Button>
@@ -133,13 +120,12 @@ function makeNodeComponent(nodeName) {
133
120
  () =>
134
121
  deriveRenderOpts(props, {
135
122
  name: nodeName,
136
- descendantNames: [...PlasmicDescendants[nodeName]],
123
+ descendantNames: PlasmicDescendants[nodeName],
137
124
  internalArgPropNames: PlasmicRandomDynamicPageButton__ArgProps,
138
125
  internalVariantPropNames: PlasmicRandomDynamicPageButton__VariantProps
139
126
  }),
140
127
  [props, nodeName]
141
128
  );
142
-
143
129
  return PlasmicRandomDynamicPageButton__RenderFunc({
144
130
  variants,
145
131
  args,
@@ -5,7 +5,7 @@
5
5
  import React from "react";
6
6
  import { classNames } from "@plasmicapp/react-web";
7
7
 
8
- export function ChecksvgIcon(props) {
8
+ export function CheckSvgIcon(props) {
9
9
  const { className, style, title, ...restProps } = props;
10
10
  return (
11
11
  <svg
@@ -35,5 +35,5 @@ export function ChecksvgIcon(props) {
35
35
  );
36
36
  }
37
37
 
38
- export default ChecksvgIcon;
38
+ export default CheckSvgIcon;
39
39
  /* prettier-ignore-end */
@@ -9,12 +9,14 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.231",
13
- "@plasmicapp/react-web": "^0.2.174",
14
- "eslint": "8.36.0",
15
- "eslint-config-next": "13.2.4",
16
- "next": "13.2.4",
17
- "react": "18.2.0",
18
- "react-dom": "18.2.0"
12
+ "@plasmicapp/cli": "^0.1.331",
13
+ "@plasmicapp/react-web": "^0.2.353",
14
+ "next": "14.2.15",
15
+ "react": "^18",
16
+ "react-dom": "^18"
17
+ },
18
+ "devDependencies": {
19
+ "eslint": "^8",
20
+ "eslint-config-next": "14.2.15"
19
21
  }
20
22
  }
@@ -1,5 +1,5 @@
1
1
  // Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2
2
 
3
3
  export default function handler(req, res) {
4
- res.status(200).json({ name: 'John Doe' })
4
+ res.status(200).json({ name: "John Doe" });
5
5
  }
@@ -1,7 +1,7 @@
1
1
  // This is a skeleton starter React page generated by Plasmic.
2
2
  // This file is owned by you, feel free to edit as you see fit.
3
3
  import * as React from "react";
4
- import * as ph from "@plasmicapp/react-web/lib/host";
4
+ import { PageParamsProvider as PageParamsProvider__ } from "@plasmicapp/react-web/lib/host";
5
5
  import { PlasmicDynamicPage } from "../../components/plasmic/create_plasmic_app/PlasmicDynamicPage";
6
6
  import { useRouter } from "next/router";
7
7
 
@@ -23,12 +23,13 @@ function DynamicPage() {
23
23
  // Next.js Custom App component
24
24
  // (https://nextjs.org/docs/advanced-features/custom-app).
25
25
  return (
26
- <ph.PageParamsProvider
26
+ <PageParamsProvider__
27
+ route={useRouter()?.pathname}
27
28
  params={useRouter()?.query}
28
29
  query={useRouter()?.query}
29
30
  >
30
31
  <PlasmicDynamicPage />
31
- </ph.PageParamsProvider>
32
+ </PageParamsProvider__>
32
33
  );
33
34
  }
34
35
 
@@ -1,7 +1,7 @@
1
1
  // This is a skeleton starter React page generated by Plasmic.
2
2
  // This file is owned by you, feel free to edit as you see fit.
3
3
  import * as React from "react";
4
- import * as ph from "@plasmicapp/react-web/lib/host";
4
+ import { PageParamsProvider as PageParamsProvider__ } from "@plasmicapp/react-web/lib/host";
5
5
  import { PlasmicHomepage } from "../components/plasmic/create_plasmic_app/PlasmicHomepage";
6
6
  import { useRouter } from "next/router";
7
7
 
@@ -23,12 +23,13 @@ function Homepage() {
23
23
  // Next.js Custom App component
24
24
  // (https://nextjs.org/docs/advanced-features/custom-app).
25
25
  return (
26
- <ph.PageParamsProvider
26
+ <PageParamsProvider__
27
+ route={useRouter()?.pathname}
27
28
  params={useRouter()?.query}
28
29
  query={useRouter()?.query}
29
30
  >
30
31
  <PlasmicHomepage />
31
- </ph.PageParamsProvider>
32
+ </PageParamsProvider__>
32
33
  );
33
34
  }
34
35
 
@@ -26,7 +26,7 @@
26
26
  "projectApiToken": "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
27
27
  "projectName": "create-plasmic-app",
28
28
  "version": "latest",
29
- "cssFilePath": "plasmic/create_plasmic_app/plasmic_create_plasmic_app.module.css",
29
+ "cssFilePath": "plasmic/create_plasmic_app/plasmic.module.css",
30
30
  "components": [
31
31
  {
32
32
  "id": "6uuAAE1jiCew",
@@ -39,7 +39,8 @@
39
39
  },
40
40
  "cssFilePath": "plasmic/create_plasmic_app/PlasmicHomepage.module.css",
41
41
  "scheme": "blackbox",
42
- "componentType": "page"
42
+ "componentType": "page",
43
+ "path": "/"
43
44
  },
44
45
  {
45
46
  "id": "AO44A-w7hh",
@@ -52,7 +53,8 @@
52
53
  },
53
54
  "cssFilePath": "plasmic/create_plasmic_app/PlasmicDynamicPage.module.css",
54
55
  "scheme": "blackbox",
55
- "componentType": "page"
56
+ "componentType": "page",
57
+ "path": "/dynamic/[slug]"
56
58
  },
57
59
  {
58
60
  "id": "TQcvW_pSKi3",
@@ -85,8 +87,8 @@
85
87
  "icons": [
86
88
  {
87
89
  "id": "gj-_D7n31Ho",
88
- "name": "ChecksvgIcon",
89
- "moduleFilePath": "plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx"
90
+ "name": "CheckSvgIcon",
91
+ "moduleFilePath": "plasmic/create_plasmic_app/icons/PlasmicIcon__CheckSvg.jsx"
90
92
  },
91
93
  {
92
94
  "id": "6PNxx3YMyDQ",
@@ -97,18 +99,22 @@
97
99
  "images": [],
98
100
  "indirect": false,
99
101
  "globalContextsFilePath": "",
102
+ "splitsProviderFilePath": "",
100
103
  "codeComponents": [
101
104
  {
102
105
  "id": "P6aGdYWZ2R",
103
106
  "name": "PlasmicHead",
107
+ "displayName": "hostless-plasmic-head",
104
108
  "componentImportPath": "@plasmicapp/react-web"
105
109
  },
106
110
  {
107
111
  "id": "8G2A-uTjGa",
108
112
  "name": "Fetcher",
113
+ "displayName": "plasmic-data-source-fetcher",
109
114
  "componentImportPath": "@plasmicapp/react-web/lib/data-sources"
110
115
  }
111
- ]
116
+ ],
117
+ "customFunctions": []
112
118
  }
113
119
  ],
114
120
  "globalVariants": {
@@ -125,6 +131,6 @@
125
131
  "nextjsConfig": {
126
132
  "pagesDir": "../pages"
127
133
  },
128
- "cliVersion": "0.1.231",
129
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.231/dist/plasmic.schema.json"
134
+ "cliVersion": "0.1.331",
135
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.331/dist/plasmic.schema.json"
130
136
  }
@@ -3,13 +3,14 @@ import {
3
3
  PlasmicButton,
4
4
  DefaultButtonProps
5
5
  } from "./plasmic/create_plasmic_app/PlasmicButton";
6
+
6
7
  import {
7
8
  ButtonRef,
8
9
  HtmlAnchorOnlyProps,
9
10
  HtmlButtonOnlyProps
10
11
  } from "@plasmicapp/react-web";
11
12
 
12
- interface ButtonProps extends DefaultButtonProps {
13
+ export interface ButtonProps extends DefaultButtonProps {
13
14
  // Feel free to add any additional props that this component should receive
14
15
  }
15
16
  function Button_(props: ButtonProps, ref: ButtonRef) {
@@ -17,7 +18,7 @@ function Button_(props: ButtonProps, ref: ButtonRef) {
17
18
  return <PlasmicButton {...plasmicProps} />;
18
19
  }
19
20
 
20
- type ButtonComponentType = {
21
+ export type ButtonComponentType = {
21
22
  (
22
23
  props: Omit<ButtonProps, HtmlAnchorOnlyProps> & {
23
24
  ref?: React.Ref<HTMLButtonElement>;
@@ -31,6 +32,4 @@ type ButtonComponentType = {
31
32
  };
32
33
  const Button = React.forwardRef(Button_) as any as ButtonComponentType;
33
34
 
34
- export default Object.assign(Button, {
35
- __plumeType: "button"
36
- });
35
+ export default Object.assign(Button, { __plumeType: "button" });