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.
Files changed (111) hide show
  1. package/.tool-versions +1 -0
  2. package/cpa-out/gatsby-codegen-js/package.json +2 -2
  3. package/cpa-out/gatsby-codegen-js/plasmic.json +54 -3
  4. package/cpa-out/gatsby-codegen-js/src/components/Button.jsx +13 -0
  5. package/cpa-out/gatsby-codegen-js/src/components/RandomDynamicPageButton.jsx +24 -0
  6. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +631 -0
  7. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +176 -0
  8. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
  9. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +162 -0
  10. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
  11. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
  12. package/cpa-out/gatsby-codegen-js/src/pages/dynamic/[slug].jsx +39 -0
  13. package/cpa-out/gatsby-codegen-ts/package.json +2 -2
  14. package/cpa-out/gatsby-codegen-ts/plasmic.json +54 -3
  15. package/cpa-out/gatsby-codegen-ts/src/components/Button.tsx +36 -0
  16. package/cpa-out/gatsby-codegen-ts/src/components/RandomDynamicPageButton.tsx +44 -0
  17. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +736 -0
  18. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +262 -0
  19. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
  20. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -5
  21. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +246 -0
  22. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
  23. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  24. package/cpa-out/gatsby-codegen-ts/src/pages/dynamic/[slug].tsx +41 -0
  25. package/cpa-out/gatsby-loader-js/package.json +3 -3
  26. package/cpa-out/gatsby-loader-ts/package.json +7 -7
  27. package/cpa-out/nextjs-app-loader-js/package.json +4 -4
  28. package/cpa-out/nextjs-app-loader-ts/package.json +6 -6
  29. package/cpa-out/nextjs-pages-codegen-js/components/Button.jsx +13 -0
  30. package/cpa-out/nextjs-pages-codegen-js/components/RandomDynamicPageButton.jsx +24 -0
  31. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +640 -0
  32. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +184 -0
  33. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
  34. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +170 -0
  35. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
  36. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
  37. package/cpa-out/nextjs-pages-codegen-js/package.json +2 -2
  38. package/cpa-out/nextjs-pages-codegen-js/pages/dynamic/[slug].jsx +35 -0
  39. package/cpa-out/nextjs-pages-codegen-js/plasmic.json +54 -3
  40. package/cpa-out/nextjs-pages-codegen-ts/components/Button.tsx +36 -0
  41. package/cpa-out/nextjs-pages-codegen-ts/components/RandomDynamicPageButton.tsx +44 -0
  42. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +742 -0
  43. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +264 -0
  44. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
  45. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -5
  46. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +252 -0
  47. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
  48. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  49. package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
  50. package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +37 -0
  51. package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +54 -3
  52. package/cpa-out/nextjs-pages-loader-js/package.json +4 -4
  53. package/cpa-out/nextjs-pages-loader-ts/package.json +6 -6
  54. package/cpa-out/react-codegen-js/package.json +2 -2
  55. package/cpa-out/react-codegen-js/plasmic.json +54 -3
  56. package/cpa-out/react-codegen-js/src/components/Button.jsx +13 -0
  57. package/cpa-out/react-codegen-js/src/components/DynamicPage.jsx +26 -0
  58. package/cpa-out/react-codegen-js/src/components/RandomDynamicPageButton.jsx +24 -0
  59. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +625 -0
  60. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +166 -0
  61. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +15 -3
  62. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +161 -0
  63. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
  64. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
  65. package/cpa-out/react-codegen-ts/package.json +2 -2
  66. package/cpa-out/react-codegen-ts/plasmic.json +54 -3
  67. package/cpa-out/react-codegen-ts/src/components/Button.tsx +36 -0
  68. package/cpa-out/react-codegen-ts/src/components/DynamicPage.tsx +45 -0
  69. package/cpa-out/react-codegen-ts/src/components/RandomDynamicPageButton.tsx +44 -0
  70. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +725 -0
  71. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +248 -0
  72. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
  73. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +18 -5
  74. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +240 -0
  75. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
  76. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  77. package/cpa-out/react-loader-js/package.json +2 -3
  78. package/cpa-out/react-loader-js/plasmic.json +54 -3
  79. package/cpa-out/react-loader-js/src/components/Button.jsx +13 -0
  80. package/cpa-out/react-loader-js/src/components/DynamicPage.jsx +26 -0
  81. package/cpa-out/react-loader-js/src/components/RandomDynamicPageButton.jsx +24 -0
  82. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +625 -0
  83. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +166 -0
  84. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +18 -4
  85. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +161 -0
  86. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +39 -0
  87. package/cpa-out/react-loader-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +37 -0
  88. package/cpa-out/react-loader-ts/package.json +2 -3
  89. package/cpa-out/react-loader-ts/plasmic.json +54 -3
  90. package/cpa-out/react-loader-ts/src/components/Button.tsx +36 -0
  91. package/cpa-out/react-loader-ts/src/components/DynamicPage.tsx +45 -0
  92. package/cpa-out/react-loader-ts/src/components/RandomDynamicPageButton.tsx +44 -0
  93. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +725 -0
  94. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +248 -0
  95. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -0
  96. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +21 -7
  97. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +240 -0
  98. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +44 -0
  99. package/cpa-out/react-loader-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  100. package/dist/gatsby/gatsby.js +16 -2
  101. package/dist/nextjs/nextjs.js +11 -7
  102. package/dist/react/react.js +17 -5
  103. package/dist/utils/file-utils.d.ts +15 -9
  104. package/dist/utils/file-utils.js +4 -59
  105. package/package.json +2 -2
  106. package/src/gatsby/gatsby.ts +32 -3
  107. package/src/nextjs/nextjs.ts +19 -5
  108. package/src/react/react.ts +28 -6
  109. package/src/utils/file-utils.ts +5 -88
  110. /package/cpa-out/gatsby-codegen-js/src/pages/{404.js → 404.jsx} +0 -0
  111. /package/cpa-out/gatsby-codegen-ts/src/pages/{404.js → 404.tsx} +0 -0
@@ -9,9 +9,9 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.222",
13
- "@plasmicapp/react-web": "^0.2.167",
14
- "@types/node": "18.15.2",
12
+ "@plasmicapp/cli": "^0.1.231",
13
+ "@plasmicapp/react-web": "^0.2.174",
14
+ "@types/node": "18.15.3",
15
15
  "@types/react": "18.0.28",
16
16
  "@types/react-dom": "18.0.11",
17
17
  "eslint": "8.36.0",
@@ -19,6 +19,6 @@
19
19
  "next": "13.2.4",
20
20
  "react": "18.2.0",
21
21
  "react-dom": "18.2.0",
22
- "typescript": "4.9.5"
22
+ "typescript": "5.0.2"
23
23
  }
24
24
  }
@@ -0,0 +1,37 @@
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
+
6
+ import { ScreenVariantProvider } from "../../components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen";
7
+ import { PlasmicDynamicPage } from "../../components/plasmic/create_plasmic_app/PlasmicDynamicPage";
8
+ import { useRouter } from "next/router";
9
+
10
+ function DynamicPage() {
11
+ // Use PlasmicDynamicPage to render this component as it was
12
+ // designed in Plasmic, by activating the appropriate variants,
13
+ // attaching the appropriate event handlers, etc. You
14
+ // can also install whatever React hooks you need here to manage state or
15
+ // fetch data.
16
+ //
17
+ // Props you can pass into PlasmicDynamicPage are:
18
+ // 1. Variants you want to activate,
19
+ // 2. Contents for slots you want to fill,
20
+ // 3. Overrides for any named node in the component to attach behavior and data,
21
+ // 4. Props to set on the root node.
22
+ //
23
+ // By default, PlasmicDynamicPage is wrapped by your project's global
24
+ // variant context providers. These wrappers may be moved to
25
+ // Next.js Custom App component
26
+ // (https://nextjs.org/docs/advanced-features/custom-app).
27
+ return (
28
+ <ph.PageParamsProvider
29
+ params={useRouter()?.query}
30
+ query={useRouter()?.query}
31
+ >
32
+ <PlasmicDynamicPage />
33
+ </ph.PageParamsProvider>
34
+ );
35
+ }
36
+
37
+ 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.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
  "nextjsConfig": {
75
126
  "pagesDir": "../pages"
76
127
  },
77
- "cliVersion": "0.1.222",
78
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.222/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
  }
@@ -9,10 +9,10 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.233",
13
- "eslint": "8.35.0",
14
- "eslint-config-next": "13.2.3",
15
- "next": "13.2.3",
12
+ "@plasmicapp/loader-nextjs": "^1.0.245",
13
+ "eslint": "8.36.0",
14
+ "eslint-config-next": "13.2.4",
15
+ "next": "13.2.4",
16
16
  "react": "18.2.0",
17
17
  "react-dom": "18.2.0"
18
18
  }
@@ -9,15 +9,15 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.233",
13
- "@types/node": "18.14.2",
12
+ "@plasmicapp/loader-nextjs": "^1.0.245",
13
+ "@types/node": "18.15.3",
14
14
  "@types/react": "18.0.28",
15
15
  "@types/react-dom": "18.0.11",
16
- "eslint": "8.35.0",
17
- "eslint-config-next": "13.2.3",
18
- "next": "13.2.3",
16
+ "eslint": "8.36.0",
17
+ "eslint-config-next": "13.2.4",
18
+ "next": "13.2.4",
19
19
  "react": "18.2.0",
20
20
  "react-dom": "18.2.0",
21
- "typescript": "4.9.5"
21
+ "typescript": "5.0.2"
22
22
  }
23
23
  }
@@ -3,8 +3,8 @@
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@plasmicapp/cli": "^0.1.222",
7
- "@plasmicapp/react-web": "^0.2.167",
6
+ "@plasmicapp/cli": "^0.1.231",
7
+ "@plasmicapp/react-web": "^0.2.174",
8
8
  "@testing-library/jest-dom": "^5.14.1",
9
9
  "@testing-library/react": "^13.0.0",
10
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.jsx",
50
+ "importSpec": {
51
+ "modulePath": "DynamicPage.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": "",
@@ -71,6 +122,6 @@
71
122
  ]
72
123
  },
73
124
  "wrapPagesWithGlobalContexts": true,
74
- "cliVersion": "0.1.222",
75
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.222/dist/plasmic.schema.json"
125
+ "cliVersion": "0.1.231",
126
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.231/dist/plasmic.schema.json"
76
127
  }
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import { PlasmicButton } from "./plasmic/create_plasmic_app/PlasmicButton";
3
+
4
+ function Button_(props, ref) {
5
+ const { plasmicProps } = PlasmicButton.useBehavior(props, ref);
6
+ return <PlasmicButton {...plasmicProps} />;
7
+ }
8
+
9
+ const Button = React.forwardRef(Button_);
10
+
11
+ export default Object.assign(Button, {
12
+ __plumeType: "button"
13
+ });
@@ -0,0 +1,26 @@
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 { PlasmicDynamicPage } from "./plasmic/create_plasmic_app/PlasmicDynamicPage";
5
+
6
+ function DynamicPage_(props, ref) {
7
+ // Use PlasmicDynamicPage to render this component as it was
8
+ // designed in Plasmic, by activating the appropriate variants,
9
+ // attaching the appropriate event handlers, etc. You
10
+ // can also install whatever React hooks you need here to manage state or
11
+ // fetch data.
12
+ //
13
+ // Props you can pass into PlasmicDynamicPage are:
14
+ // 1. Variants you want to activate,
15
+ // 2. Contents for slots you want to fill,
16
+ // 3. Overrides for any named node in the component to attach behavior and data,
17
+ // 4. Props to set on the root node.
18
+ //
19
+ // By default, we are just piping all DynamicPageProps here, but feel free
20
+ // to do whatever works for you.
21
+ return <PlasmicDynamicPage root={{ ref }} {...props} />;
22
+ }
23
+
24
+ const DynamicPage = React.forwardRef(DynamicPage_);
25
+
26
+ export default DynamicPage;
@@ -0,0 +1,24 @@
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 { PlasmicRandomDynamicPageButton } from "./plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton";
5
+
6
+ function RandomDynamicPageButton(props) {
7
+ // Use PlasmicRandomDynamicPageButton to render this component as it was
8
+ // designed in Plasmic, by activating the appropriate variants,
9
+ // attaching the appropriate event handlers, etc. You
10
+ // can also install whatever React hooks you need here to manage state or
11
+ // fetch data.
12
+ //
13
+ // Props you can pass into PlasmicRandomDynamicPageButton are:
14
+ // 1. Variants you want to activate,
15
+ // 2. Contents for slots you want to fill,
16
+ // 3. Overrides for any named node in the component to attach behavior and data,
17
+ // 4. Props to set on the root node.
18
+ //
19
+ // By default, we are just piping all RandomDynamicPageButtonProps here, but feel free
20
+ // to do whatever works for you.
21
+ return <PlasmicRandomDynamicPageButton {...props} />;
22
+ }
23
+
24
+ export default RandomDynamicPageButton;