create-plasmic-app 0.0.151 → 0.0.153

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 (153) 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 +80 -8
  144. package/dist/nextjs/templates/app-codegen/layout.d.ts +2 -2
  145. package/dist/nextjs/templates/app-codegen/layout.js +8 -2
  146. package/dist/nextjs/templates/pages-codegen/app.d.ts +2 -2
  147. package/dist/nextjs/templates/pages-codegen/app.js +8 -2
  148. package/dist/utils/types.d.ts +4 -0
  149. package/package.json +3 -3
  150. package/src/nextjs/nextjs.ts +110 -18
  151. package/src/nextjs/templates/app-codegen/layout.ts +16 -3
  152. package/src/nextjs/templates/pages-codegen/app.ts +16 -3
  153. package/src/utils/types.ts +5 -0
@@ -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
+ }
@@ -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
+ }
@@ -55,6 +55,15 @@ import {
55
55
  useGlobalActions
56
56
  } from "@plasmicapp/react-web/lib/host";
57
57
 
58
+ import { useMutablePlasmicQueryData } from "@plasmicapp/query";
59
+
60
+ import { unstable_usePlasmicQueries } from "@plasmicapp/react-web/lib/data-sources";
61
+ import type {
62
+ PlasmicQuery,
63
+ PlasmicQueryResult
64
+ } from "@plasmicapp/react-web/lib/data-sources";
65
+ import type { QueryComponentNode } from "@plasmicapp/react-web/lib/data-sources";
66
+
58
67
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
59
68
  import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
60
69
  import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
@@ -109,7 +118,8 @@ export const PlasmicDynamicPage__ArgProps = new Array<ArgPropType>();
109
118
  export type PlasmicDynamicPage__OverridesType = {
110
119
  root?: Flex__<"div">;
111
120
  section?: Flex__<"section">;
112
- h1?: Flex__<"h1">;
121
+ h2?: Flex__<"h2">;
122
+ span?: Flex__<"span">;
113
123
  randomDynamicPageButton?: Flex__<typeof RandomDynamicPageButton>;
114
124
  };
115
125
 
@@ -119,6 +129,38 @@ export interface DefaultDynamicPageProps {
119
129
 
120
130
  const $$ = {};
121
131
 
132
+ export const serverQueryTree: QueryComponentNode = {
133
+ type: "component",
134
+ queries: {
135
+ sha256: {
136
+ id: "custom:krgWtF9Kkesx",
137
+ fn: async ({ $q, $props, $ctx, $state }) => {
138
+ console.log("Running SHA-256");
139
+ const data = new TextEncoder().encode($ctx.params.slug);
140
+ const hash = await crypto.subtle.digest("SHA-256", data);
141
+ return [...new Uint8Array(hash)]
142
+ .map(b => b.toString(16).padStart(2, "0"))
143
+ .join("-");
144
+ },
145
+ args: ({ $q, $props, $ctx, $state }) => {
146
+ return [
147
+ {
148
+ $ctx: {
149
+ params: $ctx["params"]
150
+ },
151
+ $props: {},
152
+ $q: {},
153
+ $state: {}
154
+ }
155
+ ];
156
+ }
157
+ }
158
+ },
159
+ propsContext: {},
160
+ stateSpecs: [],
161
+ children: []
162
+ };
163
+
122
164
  function PlasmicDynamicPage__RenderFunc(props: {
123
165
  variants: PlasmicDynamicPage__VariantsArgs;
124
166
  args: PlasmicDynamicPage__ArgsType;
@@ -147,6 +189,8 @@ function PlasmicDynamicPage__RenderFunc(props: {
147
189
  const refsRef = React.useRef({});
148
190
  const $refs = refsRef.current;
149
191
 
192
+ const $q = unstable_usePlasmicQueries(serverQueryTree, $ctx, $props, null);
193
+
150
194
  const styleTokensClassNames = _useStyleTokens();
151
195
 
152
196
  return (
@@ -171,33 +215,32 @@ function PlasmicDynamicPage__RenderFunc(props: {
171
215
  data-plasmic-override={overrides.section}
172
216
  className={classNames(projectcss.all, sty.section)}
173
217
  >
174
- <h1
175
- data-plasmic-name={"h1"}
176
- data-plasmic-override={overrides.h1}
218
+ <h2
219
+ data-plasmic-name={"h2"}
220
+ data-plasmic-override={overrides.h2}
221
+ className={classNames(
222
+ projectcss.all,
223
+ projectcss.h2,
224
+ projectcss.h2__47tFX,
225
+ projectcss.__wab_text,
226
+ sty.h2
227
+ )}
228
+ >
229
+ <React.Fragment>{$ctx.params.slug}</React.Fragment>
230
+ </h2>
231
+ <span
232
+ data-plasmic-name={"span"}
233
+ data-plasmic-override={overrides.span}
177
234
  className={classNames(
178
235
  projectcss.all,
179
- projectcss.h1,
180
- projectcss.h1__47tFX,
236
+ projectcss.span,
237
+ projectcss.span__47tFX,
181
238
  projectcss.__wab_text,
182
- sty.h1
239
+ sty.span
183
240
  )}
184
241
  >
185
- <React.Fragment>
186
- {(() => {
187
- try {
188
- return $ctx.params.slug;
189
- } catch (e) {
190
- if (
191
- e instanceof TypeError ||
192
- e?.plasmicType === "PlasmicUndefinedDataError"
193
- ) {
194
- return "Page 1";
195
- }
196
- throw e;
197
- }
198
- })()}
199
- </React.Fragment>
200
- </h1>
242
+ <React.Fragment>{`SHA-256(${$ctx.params.slug}): ${$q.sha256.data}`}</React.Fragment>
243
+ </span>
201
244
  <RandomDynamicPageButton
202
245
  data-plasmic-name={"randomDynamicPageButton"}
203
246
  data-plasmic-override={overrides.randomDynamicPageButton}
@@ -214,9 +257,10 @@ function PlasmicDynamicPage__RenderFunc(props: {
214
257
  }
215
258
 
216
259
  const PlasmicDescendants = {
217
- root: ["root", "section", "h1", "randomDynamicPageButton"],
218
- section: ["section", "h1", "randomDynamicPageButton"],
219
- h1: ["h1"],
260
+ root: ["root", "section", "h2", "span", "randomDynamicPageButton"],
261
+ section: ["section", "h2", "span", "randomDynamicPageButton"],
262
+ h2: ["h2"],
263
+ span: ["span"],
220
264
  randomDynamicPageButton: ["randomDynamicPageButton"]
221
265
  } as const;
222
266
  type NodeNameType = keyof typeof PlasmicDescendants;
@@ -225,7 +269,8 @@ type DescendantsType<T extends NodeNameType> =
225
269
  type NodeDefaultElementType = {
226
270
  root: "div";
227
271
  section: "section";
228
- h1: "h1";
272
+ h2: "h2";
273
+ span: "span";
229
274
  randomDynamicPageButton: typeof RandomDynamicPageButton;
230
275
  };
231
276
 
@@ -292,7 +337,8 @@ export const PlasmicDynamicPage = Object.assign(
292
337
  {
293
338
  // Helper components rendering sub-elements
294
339
  section: makeNodeComponent("section"),
295
- h1: makeNodeComponent("h1"),
340
+ h2: makeNodeComponent("h2"),
341
+ span: makeNodeComponent("span"),
296
342
  randomDynamicPageButton: makeNodeComponent("randomDynamicPageButton"),
297
343
 
298
344
  // Metadata about props expected for PlasmicDynamicPage
@@ -0,0 +1,43 @@
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
+ .h1 {
27
+ position: relative;
28
+ max-width: 800px;
29
+ height: auto;
30
+ width: 100%;
31
+ min-width: 0;
32
+ }
33
+ .text {
34
+ position: relative;
35
+ max-width: 800px;
36
+ height: auto;
37
+ width: 100%;
38
+ min-width: 0;
39
+ }
40
+ .randomDynamicPageButton:global(.__wab_instance):global(.__wab_instance) {
41
+ max-width: 100%;
42
+ position: relative;
43
+ }