create-plasmic-app 0.0.151 → 0.0.152

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 (145) hide show
  1. package/cpa-out/.gitignore +4 -2
  2. package/cpa-out/gatsby-codegen-js/package.json +2 -2
  3. package/cpa-out/gatsby-codegen-js/plasmic.json +2 -2
  4. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
  5. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +61 -26
  6. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
  7. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +6 -39
  8. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
  9. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
  10. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
  11. package/cpa-out/gatsby-codegen-js/src/components/plasmic/plasmic__default_style.module.css +363 -0
  12. package/cpa-out/gatsby-codegen-ts/package.json +2 -2
  13. package/cpa-out/gatsby-codegen-ts/plasmic.json +2 -2
  14. package/cpa-out/gatsby-codegen-ts/src/components/RandomDynamicPageButton.tsx +1 -2
  15. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
  16. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
  17. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +74 -28
  18. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
  19. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
  20. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
  21. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
  22. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/plasmic__default_style.module.css +363 -0
  23. package/cpa-out/gatsby-loader-js/package.json +1 -1
  24. package/cpa-out/gatsby-loader-js/src/templates/defaultPlasmicPage.jsx +1 -0
  25. package/cpa-out/gatsby-loader-ts/package.json +1 -1
  26. package/cpa-out/gatsby-loader-ts/src/templates/defaultPlasmicPage.tsx +1 -0
  27. package/cpa-out/nextjs-app-codegen-js/app/dynamic/[slug]/page.jsx +13 -3
  28. package/cpa-out/nextjs-app-codegen-js/app/globals.css +10 -0
  29. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
  30. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +62 -27
  31. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
  32. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.jsx +103 -2
  33. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +6 -39
  34. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
  35. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
  36. package/cpa-out/nextjs-app-codegen-js/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
  37. package/cpa-out/nextjs-app-codegen-js/components/plasmic/plasmic__default_style.module.css +363 -0
  38. package/cpa-out/nextjs-app-codegen-js/eslint.config.mjs +16 -0
  39. package/cpa-out/nextjs-app-codegen-js/jsconfig.json +7 -0
  40. package/cpa-out/nextjs-app-codegen-js/package.json +4 -4
  41. package/cpa-out/nextjs-app-codegen-js/plasmic.json +2 -2
  42. package/cpa-out/nextjs-app-codegen-ts/app/dynamic/[slug]/page.tsx +13 -3
  43. package/cpa-out/nextjs-app-codegen-ts/app/globals.css +10 -0
  44. package/cpa-out/nextjs-app-codegen-ts/components/RandomDynamicPageButton.tsx +1 -2
  45. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
  46. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
  47. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +69 -29
  48. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPageServer.tsx +110 -2
  49. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
  50. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
  51. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
  52. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
  53. package/cpa-out/nextjs-app-codegen-ts/components/plasmic/plasmic__default_style.module.css +363 -0
  54. package/cpa-out/nextjs-app-codegen-ts/eslint.config.mjs +18 -0
  55. package/cpa-out/nextjs-app-codegen-ts/package.json +4 -4
  56. package/cpa-out/nextjs-app-codegen-ts/plasmic.json +2 -2
  57. package/cpa-out/nextjs-app-loader-js/app/[[...catchall]]/page.jsx +1 -0
  58. package/cpa-out/nextjs-app-loader-js/app/globals.css +10 -0
  59. package/cpa-out/nextjs-app-loader-js/eslint.config.mjs +16 -0
  60. package/cpa-out/nextjs-app-loader-js/jsconfig.json +7 -0
  61. package/cpa-out/nextjs-app-loader-js/package.json +3 -3
  62. package/cpa-out/nextjs-app-loader-ts/app/[[...catchall]]/page.tsx +1 -0
  63. package/cpa-out/nextjs-app-loader-ts/app/globals.css +10 -0
  64. package/cpa-out/nextjs-app-loader-ts/eslint.config.mjs +18 -0
  65. package/cpa-out/nextjs-app-loader-ts/package.json +3 -3
  66. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
  67. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +62 -27
  68. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
  69. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +6 -39
  70. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
  71. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
  72. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
  73. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/plasmic__default_style.module.css +363 -0
  74. package/cpa-out/nextjs-pages-codegen-js/eslint.config.mjs +16 -0
  75. package/cpa-out/nextjs-pages-codegen-js/jsconfig.json +7 -0
  76. package/cpa-out/nextjs-pages-codegen-js/package.json +4 -4
  77. package/cpa-out/nextjs-pages-codegen-js/pages/dynamic/[slug].jsx +24 -2
  78. package/cpa-out/nextjs-pages-codegen-js/plasmic.json +2 -2
  79. package/cpa-out/nextjs-pages-codegen-js/styles/Home.module.css +141 -0
  80. package/cpa-out/nextjs-pages-codegen-js/styles/globals.css +10 -0
  81. package/cpa-out/nextjs-pages-codegen-ts/components/RandomDynamicPageButton.tsx +1 -2
  82. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
  83. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
  84. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +75 -29
  85. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
  86. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
  87. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
  88. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
  89. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/plasmic__default_style.module.css +363 -0
  90. package/cpa-out/nextjs-pages-codegen-ts/eslint.config.mjs +18 -0
  91. package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
  92. package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +25 -2
  93. package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +2 -2
  94. package/cpa-out/nextjs-pages-codegen-ts/styles/Home.module.css +141 -0
  95. package/cpa-out/nextjs-pages-codegen-ts/styles/globals.css +10 -0
  96. package/cpa-out/nextjs-pages-loader-js/eslint.config.mjs +16 -0
  97. package/cpa-out/nextjs-pages-loader-js/jsconfig.json +7 -0
  98. package/cpa-out/nextjs-pages-loader-js/package.json +3 -3
  99. package/cpa-out/nextjs-pages-loader-js/pages/[[...catchall]].jsx +1 -0
  100. package/cpa-out/nextjs-pages-loader-js/styles/Home.module.css +141 -0
  101. package/cpa-out/nextjs-pages-loader-js/styles/globals.css +10 -0
  102. package/cpa-out/nextjs-pages-loader-ts/eslint.config.mjs +18 -0
  103. package/cpa-out/nextjs-pages-loader-ts/package.json +3 -3
  104. package/cpa-out/nextjs-pages-loader-ts/pages/[[...catchall]].tsx +1 -0
  105. package/cpa-out/nextjs-pages-loader-ts/styles/Home.module.css +141 -0
  106. package/cpa-out/nextjs-pages-loader-ts/styles/globals.css +10 -0
  107. package/cpa-out/react-codegen-js/package.json +2 -2
  108. package/cpa-out/react-codegen-js/plasmic.json +2 -2
  109. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
  110. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +61 -26
  111. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
  112. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +6 -39
  113. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
  114. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
  115. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
  116. package/cpa-out/react-codegen-js/src/components/plasmic/plasmic__default_style.module.css +363 -0
  117. package/cpa-out/react-codegen-js/src/index.css +68 -0
  118. package/cpa-out/react-codegen-ts/package.json +2 -2
  119. package/cpa-out/react-codegen-ts/plasmic.json +2 -2
  120. package/cpa-out/react-codegen-ts/src/components/RandomDynamicPageButton.tsx +1 -2
  121. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.module.css +468 -0
  122. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.module.css +44 -0
  123. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +74 -28
  124. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.module.css +43 -0
  125. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
  126. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.module.css +16 -0
  127. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.module.css +702 -0
  128. package/cpa-out/react-codegen-ts/src/components/plasmic/plasmic__default_style.module.css +363 -0
  129. package/cpa-out/react-codegen-ts/src/index.css +68 -0
  130. package/cpa-out/tanstack-codegen-ts/package.json +3 -3
  131. package/cpa-out/tanstack-codegen-ts/plasmic.json +2 -2
  132. package/cpa-out/tanstack-codegen-ts/src/components/RandomDynamicPageButton.tsx +1 -2
  133. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.css +495 -0
  134. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.css +44 -0
  135. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +74 -28
  136. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.css +43 -0
  137. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +6 -40
  138. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.css +16 -0
  139. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.css +354 -0
  140. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/plasmic__default_style.css +363 -0
  141. package/cpa-out/tanstack-codegen-ts/src/routes/dynamic/$slug/index.tsx +31 -8
  142. package/cpa-out/tanstack-codegen-ts/src/styles.css +17 -0
  143. package/dist/nextjs/nextjs.js +30 -0
  144. package/package.json +2 -2
  145. package/src/nextjs/nextjs.ts +34 -1
@@ -0,0 +1,468 @@
1
+ .root {
2
+ display: flex;
3
+ position: relative;
4
+ flex-direction: row;
5
+ align-items: center;
6
+ justify-content: center;
7
+ background: #232320;
8
+ cursor: pointer;
9
+ transition-property: background;
10
+ transition-duration: 0.1s;
11
+ column-gap: 8px;
12
+ -webkit-transition-property: background;
13
+ -webkit-transition-duration: 0.1s;
14
+ border-radius: 6px;
15
+ padding: 12px 20px;
16
+ border-width: 0px;
17
+ }
18
+ .rootshowStartIcon {
19
+ padding-left: 16px;
20
+ }
21
+ .rootshowEndIcon {
22
+ padding-right: 16px;
23
+ }
24
+ .rootisDisabled {
25
+ cursor: not-allowed;
26
+ opacity: 0.6;
27
+ }
28
+ .rootshape_rounded {
29
+ padding-left: 20px;
30
+ padding-right: 20px;
31
+ min-width: 100px;
32
+ border-radius: 999px;
33
+ }
34
+ .rootshape_round {
35
+ border-radius: 50%;
36
+ padding: 12px;
37
+ }
38
+ .rootshape_sharp {
39
+ border-radius: 0px;
40
+ }
41
+ .rootsize_compact {
42
+ padding: 6px 16px;
43
+ }
44
+ .rootsize_minimal {
45
+ padding: 0px;
46
+ }
47
+ .rootcolor_blue {
48
+ background: #0091ff;
49
+ }
50
+ .rootcolor_green {
51
+ background: #30a46c;
52
+ }
53
+ .rootcolor_yellow {
54
+ background: #f5d90a;
55
+ }
56
+ .rootcolor_red {
57
+ background: #e54d2e;
58
+ }
59
+ .rootcolor_sand {
60
+ background: #717069;
61
+ }
62
+ .rootcolor_white {
63
+ background: #ffffff;
64
+ }
65
+ .rootcolor_softBlue {
66
+ background: #edf6ff;
67
+ }
68
+ .rootcolor_softGreen {
69
+ background: #e9f9ee;
70
+ }
71
+ .rootcolor_softYellow {
72
+ background: #fffbd1;
73
+ }
74
+ .rootcolor_softRed {
75
+ background: #fff0ee;
76
+ }
77
+ .rootcolor_softSand {
78
+ background: #eeeeec;
79
+ }
80
+ .rootcolor_clear {
81
+ background: #ffffff00;
82
+ }
83
+ .rootcolor_link {
84
+ background: #ffffff00;
85
+ }
86
+ .rootshape_rounded_showStartIcon {
87
+ padding-left: 16px;
88
+ }
89
+ .rootshowEndIcon_shape_rounded {
90
+ padding-right: 16px;
91
+ }
92
+ .rootshape_round_size_compact {
93
+ padding: 6px;
94
+ }
95
+ .root___focusVisibleWithin {
96
+ box-shadow: 0px 0px 0px 3px #96c7f2;
97
+ outline: none;
98
+ }
99
+ .root:focus-within:focus-within {
100
+ box-shadow: 0px 0px 0px 3px #96c7f2;
101
+ outline: none;
102
+ }
103
+ .root:hover:hover {
104
+ background: #282826;
105
+ }
106
+ .root:active:active {
107
+ background: #2e2e2b;
108
+ }
109
+ .rootcolor_blue:hover:hover {
110
+ background: #369eff;
111
+ }
112
+ .rootcolor_blue:active:active {
113
+ background: #52a9ff;
114
+ }
115
+ .rootcolor_green:hover:hover {
116
+ background: #3cb179;
117
+ }
118
+ .rootcolor_green:active:active {
119
+ background: #4cc38a;
120
+ }
121
+ .rootcolor_yellow:hover:hover {
122
+ background: #ffef5c;
123
+ }
124
+ .rootcolor_yellow:active:active {
125
+ background: #f0c000;
126
+ }
127
+ .rootcolor_red:hover:hover {
128
+ background: #ec5e41;
129
+ }
130
+ .rootcolor_red:active:active {
131
+ background: #f16a50;
132
+ }
133
+ .rootcolor_sand:hover:hover {
134
+ background: #7f7e77;
135
+ }
136
+ .rootcolor_sand:active:active {
137
+ background: #a1a09a;
138
+ }
139
+ .rootcolor_white:hover:hover {
140
+ background: #ffef5c;
141
+ }
142
+ .rootcolor_white:active:active {
143
+ background: #f0c000;
144
+ }
145
+ .rootcolor_softBlue:hover:hover {
146
+ background: #e1f0ff;
147
+ }
148
+ .rootcolor_softBlue:active:active {
149
+ background: #cee7fe;
150
+ }
151
+ .rootcolor_softGreen:active:active {
152
+ background: #ccebd7;
153
+ }
154
+ .rootcolor_softGreen:hover:hover {
155
+ background: #ddf3e4;
156
+ }
157
+ .rootcolor_softYellow:active:active {
158
+ background: #fef2a4;
159
+ }
160
+ .rootcolor_softYellow:hover:hover {
161
+ background: #fff8bb;
162
+ }
163
+ .rootcolor_softRed:active:active {
164
+ background: #fdd8d3;
165
+ }
166
+ .rootcolor_softRed:hover:hover {
167
+ background: #ffe6e2;
168
+ }
169
+ .rootcolor_softSand:hover:hover {
170
+ background: #e9e9e6;
171
+ }
172
+ .rootcolor_softSand:active:active {
173
+ background: #e3e3e0;
174
+ }
175
+ .rootcolor_clear:hover:hover {
176
+ background: #e9e9e6;
177
+ }
178
+ .rootcolor_clear:active:active {
179
+ background: #e3e3e0;
180
+ }
181
+ .rootcolor_link:hover:hover {
182
+ background: #ffffff00;
183
+ }
184
+ .rootcolor_link:active:active {
185
+ background: #ffffff00;
186
+ }
187
+ .startIconContainer {
188
+ display: flex;
189
+ position: relative;
190
+ flex-direction: row;
191
+ align-items: stretch;
192
+ justify-content: flex-start;
193
+ }
194
+ .startIconContainershowStartIcon {
195
+ display: flex;
196
+ }
197
+ .slotTargetStartIcon {
198
+ color: #ededec;
199
+ }
200
+ .slotTargetStartIconcolor_yellow {
201
+ color: #35290f;
202
+ }
203
+ .slotTargetStartIconcolor_white {
204
+ color: #35290f;
205
+ }
206
+ .slotTargetStartIconcolor_softBlue {
207
+ color: #006adc;
208
+ }
209
+ .slotTargetStartIconcolor_softGreen {
210
+ color: #18794e;
211
+ }
212
+ .slotTargetStartIconcolor_softYellow {
213
+ color: #946800;
214
+ }
215
+ .slotTargetStartIconcolor_softRed {
216
+ color: #ca3214;
217
+ }
218
+ .slotTargetStartIconcolor_softSand {
219
+ color: #706f6c;
220
+ }
221
+ .slotTargetStartIconcolor_clear {
222
+ color: #1b1b18;
223
+ }
224
+ .slotTargetStartIconcolor_link {
225
+ color: #0091ff;
226
+ }
227
+ .rootcolor_link:hover .slotTargetStartIconcolor_link {
228
+ color: #0081f1;
229
+ }
230
+ .rootcolor_link:active .slotTargetStartIconcolor_link {
231
+ color: #006adc;
232
+ }
233
+ .svg__s6Xxe {
234
+ position: relative;
235
+ object-fit: cover;
236
+ width: auto;
237
+ height: 1em;
238
+ }
239
+ .contentContainer {
240
+ display: flex;
241
+ position: relative;
242
+ flex-direction: row;
243
+ align-items: stretch;
244
+ justify-content: flex-start;
245
+ }
246
+ .root .contentContainer___focusVisibleWithin {
247
+ outline: none;
248
+ }
249
+ .slotTargetChildren {
250
+ color: #ededec;
251
+ font-weight: 500;
252
+ white-space: pre;
253
+ }
254
+ .slotTargetChildrencolor_blue {
255
+ color: #ffffff;
256
+ }
257
+ .slotTargetChildrencolor_green {
258
+ color: #ffffff;
259
+ }
260
+ .slotTargetChildrencolor_yellow {
261
+ color: #35290f;
262
+ }
263
+ .slotTargetChildrencolor_red {
264
+ color: #ffffff;
265
+ }
266
+ .slotTargetChildrencolor_sand {
267
+ color: #ffffff;
268
+ }
269
+ .slotTargetChildrencolor_white {
270
+ color: #1b1b18;
271
+ }
272
+ .slotTargetChildrencolor_softBlue {
273
+ color: #006adc;
274
+ }
275
+ .slotTargetChildrencolor_softGreen {
276
+ color: #18794e;
277
+ }
278
+ .slotTargetChildrencolor_softYellow {
279
+ color: #946800;
280
+ }
281
+ .slotTargetChildrencolor_softRed {
282
+ color: #ca3214;
283
+ }
284
+ .slotTargetChildrencolor_softSand {
285
+ color: #1b1b18;
286
+ }
287
+ .slotTargetChildrencolor_clear {
288
+ color: #1b1b18;
289
+ }
290
+ .slotTargetChildrencolor_link {
291
+ color: #0091ff;
292
+ }
293
+ .root:focus-within .slotTargetChildren > *,
294
+ .root:focus-within .slotTargetChildren > :global(.__wab_slot) > *,
295
+ .root:focus-within
296
+ .slotTargetChildren
297
+ > :global(.__wab_slot)
298
+ > :global(.__wab_slot)
299
+ > *,
300
+ .root:focus-within
301
+ .slotTargetChildren
302
+ > :global(.__wab_slot)
303
+ > :global(.__wab_slot)
304
+ > :global(.__wab_slot)
305
+ > *,
306
+ .root:focus-within .slotTargetChildren > picture > img,
307
+ .root:focus-within .slotTargetChildren > :global(.__wab_slot) > picture > img,
308
+ .root:focus-within
309
+ .slotTargetChildren
310
+ > :global(.__wab_slot)
311
+ > :global(.__wab_slot)
312
+ > picture
313
+ > img,
314
+ .root:focus-within
315
+ .slotTargetChildren
316
+ > :global(.__wab_slot)
317
+ > :global(.__wab_slot)
318
+ > :global(.__wab_slot)
319
+ > picture
320
+ > img {
321
+ outline: none;
322
+ }
323
+ .root .slotTargetChildren___focusVisibleWithin > *,
324
+ .root .slotTargetChildren___focusVisibleWithin > :global(.__wab_slot) > *,
325
+ .root
326
+ .slotTargetChildren___focusVisibleWithin
327
+ > :global(.__wab_slot)
328
+ > :global(.__wab_slot)
329
+ > *,
330
+ .root
331
+ .slotTargetChildren___focusVisibleWithin
332
+ > :global(.__wab_slot)
333
+ > :global(.__wab_slot)
334
+ > :global(.__wab_slot)
335
+ > *,
336
+ .root .slotTargetChildren___focusVisibleWithin > picture > img,
337
+ .root
338
+ .slotTargetChildren___focusVisibleWithin
339
+ > :global(.__wab_slot)
340
+ > picture
341
+ > img,
342
+ .root
343
+ .slotTargetChildren___focusVisibleWithin
344
+ > :global(.__wab_slot)
345
+ > :global(.__wab_slot)
346
+ > picture
347
+ > img,
348
+ .root
349
+ .slotTargetChildren___focusVisibleWithin
350
+ > :global(.__wab_slot)
351
+ > :global(.__wab_slot)
352
+ > :global(.__wab_slot)
353
+ > picture
354
+ > img {
355
+ outline: none;
356
+ }
357
+ .rootcolor_link:hover .slotTargetChildrencolor_link {
358
+ color: #0081f1;
359
+ }
360
+ .rootcolor_link:hover .slotTargetChildrencolor_link > :global(.__wab_text),
361
+ .rootcolor_link:hover
362
+ .slotTargetChildrencolor_link
363
+ > :global(.__wab_expr_html_text),
364
+ .rootcolor_link:hover
365
+ .slotTargetChildrencolor_link
366
+ > :global(.__wab_slot-string-wrapper),
367
+ .rootcolor_link:hover
368
+ .slotTargetChildrencolor_link
369
+ > :global(.__wab_slot)
370
+ > :global(.__wab_text),
371
+ .rootcolor_link:hover
372
+ .slotTargetChildrencolor_link
373
+ > :global(.__wab_slot)
374
+ > :global(.__wab_expr_html_text),
375
+ .rootcolor_link:hover
376
+ .slotTargetChildrencolor_link
377
+ > :global(.__wab_slot)
378
+ > :global(.__wab_slot-string-wrapper),
379
+ .rootcolor_link:hover
380
+ .slotTargetChildrencolor_link
381
+ > :global(.__wab_slot)
382
+ > :global(.__wab_slot)
383
+ > :global(.__wab_text),
384
+ .rootcolor_link:hover
385
+ .slotTargetChildrencolor_link
386
+ > :global(.__wab_slot)
387
+ > :global(.__wab_slot)
388
+ > :global(.__wab_expr_html_text),
389
+ .rootcolor_link:hover
390
+ .slotTargetChildrencolor_link
391
+ > :global(.__wab_slot)
392
+ > :global(.__wab_slot)
393
+ > :global(.__wab_slot-string-wrapper),
394
+ .rootcolor_link:hover
395
+ .slotTargetChildrencolor_link
396
+ > :global(.__wab_slot)
397
+ > :global(.__wab_slot)
398
+ > :global(.__wab_slot)
399
+ > :global(.__wab_text),
400
+ .rootcolor_link:hover
401
+ .slotTargetChildrencolor_link
402
+ > :global(.__wab_slot)
403
+ > :global(.__wab_slot)
404
+ > :global(.__wab_slot)
405
+ > :global(.__wab_expr_html_text),
406
+ .rootcolor_link:hover
407
+ .slotTargetChildrencolor_link
408
+ > :global(.__wab_slot)
409
+ > :global(.__wab_slot)
410
+ > :global(.__wab_slot)
411
+ > :global(.__wab_slot-string-wrapper) {
412
+ text-decoration-line: underline;
413
+ }
414
+ .rootcolor_link:active .slotTargetChildrencolor_link {
415
+ color: #006adc;
416
+ }
417
+ .endIconContainer {
418
+ display: flex;
419
+ position: relative;
420
+ flex-direction: row;
421
+ align-items: stretch;
422
+ justify-content: flex-start;
423
+ }
424
+ .endIconContainershowEndIcon {
425
+ display: flex;
426
+ }
427
+ .slotTargetEndIcon {
428
+ color: #ededec;
429
+ }
430
+ .slotTargetEndIconcolor_yellow {
431
+ color: #35290f;
432
+ }
433
+ .slotTargetEndIconcolor_white {
434
+ color: #35290f;
435
+ }
436
+ .slotTargetEndIconcolor_softBlue {
437
+ color: #006adc;
438
+ }
439
+ .slotTargetEndIconcolor_softGreen {
440
+ color: #18794e;
441
+ }
442
+ .slotTargetEndIconcolor_softYellow {
443
+ color: #946800;
444
+ }
445
+ .slotTargetEndIconcolor_softRed {
446
+ color: #ca3214;
447
+ }
448
+ .slotTargetEndIconcolor_softSand {
449
+ color: #706f6c;
450
+ }
451
+ .slotTargetEndIconcolor_clear {
452
+ color: #1b1b18;
453
+ }
454
+ .slotTargetEndIconcolor_link {
455
+ color: #0091ff;
456
+ }
457
+ .rootcolor_link:hover .slotTargetEndIconcolor_link {
458
+ color: #0081f1;
459
+ }
460
+ .rootcolor_link:active .slotTargetEndIconcolor_link {
461
+ color: #006adc;
462
+ }
463
+ .svg__liJa {
464
+ position: relative;
465
+ object-fit: cover;
466
+ width: auto;
467
+ height: 1em;
468
+ }
@@ -17,6 +17,7 @@ import {
17
17
  deriveRenderOpts
18
18
  } from "@plasmicapp/react-web";
19
19
  import { useDataEnv } from "@plasmicapp/react-web/lib/host";
20
+ import { unstable_usePlasmicQueries } from "@plasmicapp/react-web/lib/data-sources";
20
21
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
21
22
  import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
22
23
  import "@plasmicapp/react-web/lib/plasmic.css";
@@ -55,6 +56,38 @@ export const PlasmicDynamicPage__ArgProps = new Array();
55
56
 
56
57
  const $$ = {};
57
58
 
59
+ export const serverQueryTree = {
60
+ type: "component",
61
+ queries: {
62
+ sha256: {
63
+ id: "custom:krgWtF9Kkesx",
64
+ fn: async ({ $q, $props, $ctx, $state }) => {
65
+ console.log("Running SHA-256");
66
+ const data = new TextEncoder().encode($ctx.params.slug);
67
+ const hash = await crypto.subtle.digest("SHA-256", data);
68
+ return [...new Uint8Array(hash)]
69
+ .map(b => b.toString(16).padStart(2, "0"))
70
+ .join("-");
71
+ },
72
+ args: ({ $q, $props, $ctx, $state }) => {
73
+ return [
74
+ {
75
+ $ctx: {
76
+ params: $ctx["params"]
77
+ },
78
+ $props: {},
79
+ $q: {},
80
+ $state: {}
81
+ }
82
+ ];
83
+ }
84
+ }
85
+ },
86
+ propsContext: {},
87
+ stateSpecs: [],
88
+ children: []
89
+ };
90
+
58
91
  function useNextRouter() {
59
92
  try {
60
93
  return useRouter();
@@ -82,8 +115,9 @@ function PlasmicDynamicPage__RenderFunc(props) {
82
115
  const $ctx = useDataEnv?.() || {};
83
116
  const refsRef = React.useRef({});
84
117
  const $refs = refsRef.current;
118
+ const $q = unstable_usePlasmicQueries(serverQueryTree, $ctx, $props, null);
85
119
  const pageMetadata = generateDynamicMetadata(
86
- wrapQueriesWithLoadingProxy({}),
120
+ wrapQueriesWithLoadingProxy($q),
87
121
  $ctx
88
122
  );
89
123
  const styleTokensClassNames = _useStyleTokens();
@@ -117,33 +151,32 @@ function PlasmicDynamicPage__RenderFunc(props) {
117
151
  data-plasmic-override={overrides.section}
118
152
  className={classNames(projectcss.all, sty.section)}
119
153
  >
120
- <h1
121
- data-plasmic-name={"h1"}
122
- data-plasmic-override={overrides.h1}
154
+ <h2
155
+ data-plasmic-name={"h2"}
156
+ data-plasmic-override={overrides.h2}
157
+ className={classNames(
158
+ projectcss.all,
159
+ projectcss.h2,
160
+ projectcss.h2__47tFX,
161
+ projectcss.__wab_text,
162
+ sty.h2
163
+ )}
164
+ >
165
+ <React.Fragment>{$ctx.params.slug}</React.Fragment>
166
+ </h2>
167
+ <span
168
+ data-plasmic-name={"span"}
169
+ data-plasmic-override={overrides.span}
123
170
  className={classNames(
124
171
  projectcss.all,
125
- projectcss.h1,
126
- projectcss.h1__47tFX,
172
+ projectcss.span,
173
+ projectcss.span__47tFX,
127
174
  projectcss.__wab_text,
128
- sty.h1
175
+ sty.span
129
176
  )}
130
177
  >
131
- <React.Fragment>
132
- {(() => {
133
- try {
134
- return $ctx.params.slug;
135
- } catch (e) {
136
- if (
137
- e instanceof TypeError ||
138
- e?.plasmicType === "PlasmicUndefinedDataError"
139
- ) {
140
- return "Page 1";
141
- }
142
- throw e;
143
- }
144
- })()}
145
- </React.Fragment>
146
- </h1>
178
+ <React.Fragment>{`SHA-256(${$ctx.params.slug}): ${$q.sha256.data}`}</React.Fragment>
179
+ </span>
147
180
  <RandomDynamicPageButton
148
181
  data-plasmic-name={"randomDynamicPageButton"}
149
182
  data-plasmic-override={overrides.randomDynamicPageButton}
@@ -160,9 +193,10 @@ function PlasmicDynamicPage__RenderFunc(props) {
160
193
  }
161
194
 
162
195
  const PlasmicDescendants = {
163
- root: ["root", "section", "h1", "randomDynamicPageButton"],
164
- section: ["section", "h1", "randomDynamicPageButton"],
165
- h1: ["h1"],
196
+ root: ["root", "section", "h2", "span", "randomDynamicPageButton"],
197
+ section: ["section", "h2", "span", "randomDynamicPageButton"],
198
+ h2: ["h2"],
199
+ span: ["span"],
166
200
  randomDynamicPageButton: ["randomDynamicPageButton"]
167
201
  };
168
202
 
@@ -199,7 +233,8 @@ export const PlasmicDynamicPage = Object.assign(
199
233
  {
200
234
  // Helper components rendering sub-elements
201
235
  section: makeNodeComponent("section"),
202
- h1: makeNodeComponent("h1"),
236
+ h2: makeNodeComponent("h2"),
237
+ span: makeNodeComponent("span"),
203
238
  randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
204
239
  // Metadata about props expected for PlasmicDynamicPage
205
240
  internalVariantProps: PlasmicDynamicPage__VariantProps,
@@ -0,0 +1,44 @@
1
+ .root {
2
+ display: flex;
3
+ position: relative;
4
+ width: 100%;
5
+ height: 100%;
6
+ flex-direction: column;
7
+ justify-content: flex-start;
8
+ align-items: center;
9
+ min-width: 0;
10
+ min-height: 0;
11
+ padding: 0px;
12
+ }
13
+ .section {
14
+ display: flex;
15
+ position: relative;
16
+ flex-direction: column;
17
+ align-items: center;
18
+ justify-content: flex-start;
19
+ width: 100%;
20
+ height: auto;
21
+ max-width: 100%;
22
+ row-gap: 16px;
23
+ min-width: 0;
24
+ padding: 96px 24px;
25
+ }
26
+ .h2 {
27
+ position: relative;
28
+ width: 100%;
29
+ height: auto;
30
+ max-width: 800px;
31
+ text-align: center;
32
+ min-width: 0;
33
+ }
34
+ .span {
35
+ position: relative;
36
+ width: 100%;
37
+ height: auto;
38
+ max-width: 800px;
39
+ text-align: center;
40
+ min-width: 0;
41
+ }
42
+ .randomDynamicPageButton:global(.__wab_instance):global(.__wab_instance) {
43
+ position: relative;
44
+ }
@@ -131,7 +131,9 @@ function PlasmicHomepage__RenderFunc(props) {
131
131
  sty.h1
132
132
  )}
133
133
  >
134
- {"create-plasmic-app"}
134
+ {hasVariant(globalVariants, "screen", "desktopOnly")
135
+ ? "create-plasmic-app"
136
+ : "cpa"}
135
137
  </h1>
136
138
  <div
137
139
  data-plasmic-name={"text"}
@@ -142,44 +144,9 @@ function PlasmicHomepage__RenderFunc(props) {
142
144
  sty.text
143
145
  )}
144
146
  >
145
- {hasVariant(globalVariants, "screen", "desktopOnly") ? (
146
- <React.Fragment>
147
- <React.Fragment>
148
- {
149
- "This project is used by run-cpa.ts in the create-plasmic-app repo.\n\nrun-cpa.ts runs create-plasmic-app for many combinations of args (e.g. nextjs + appDir + loader + typescript) to check for changes in generated files. Any changes to this project will result in lots of changes to the generated files. "
150
- }
151
- </React.Fragment>
152
- <span
153
- className={
154
- "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
155
- }
156
- style={{ fontWeight: 700 }}
157
- >
158
- {"Therefore, please avoid changing this project."}
159
- </span>
160
- </React.Fragment>
161
- ) : (
162
- <React.Fragment>
163
- <React.Fragment>
164
- {
165
- "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 "
166
- }
167
- </React.Fragment>
168
- <span
169
- className={
170
- "plasmic_default__all plasmic_default__span plasmic_default__span__47tFX"
171
- }
172
- style={{ fontWeight: 700 }}
173
- >
174
- {"Code"}
175
- </span>
176
- <React.Fragment>
177
- {
178
- " button in the top right and follow the quickstart instructions.\n\nJoin our Slack community (icon in bottom left) for help any time."
179
- }
180
- </React.Fragment>
181
- </React.Fragment>
182
- )}
147
+ {
148
+ "This project is used by run-cpa.ts in the create-plasmic-app repo.\n\n\nrun-cpa.ts runs create-plasmic-app for many combinations of args (e.g. nextjs + appDir + loader + typescript) to check for changes in generated files. Any changes to this project will result in lots of changes to the generated files. Therefore, please avoid changing this project.\n"
149
+ }
183
150
  </div>
184
151
  <RandomDynamicPageButton
185
152
  data-plasmic-name={"randomDynamicPageButton"}