create-plasmic-app 0.0.131 → 0.0.133

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 (78) hide show
  1. package/cpa-out/gatsby-codegen-js/package.json +4 -4
  2. package/cpa-out/gatsby-codegen-js/plasmic.json +7 -3
  3. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +11 -7
  4. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +32 -8
  5. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +1 -1
  6. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +34 -13
  7. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +2 -0
  8. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx +15 -0
  9. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +1 -1
  10. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.jsx +11 -0
  11. package/cpa-out/gatsby-codegen-ts/package.json +4 -4
  12. package/cpa-out/gatsby-codegen-ts/plasmic.json +7 -3
  13. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +17 -8
  14. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +37 -9
  15. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -1
  16. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +38 -14
  17. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +7 -1
  18. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +19 -0
  19. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +1 -1
  20. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.tsx +14 -0
  21. package/cpa-out/gatsby-loader-js/package.json +3 -3
  22. package/cpa-out/gatsby-loader-ts/package.json +3 -3
  23. package/cpa-out/nextjs-app-loader-js/package.json +3 -3
  24. package/cpa-out/nextjs-app-loader-ts/package.json +3 -3
  25. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +8 -6
  26. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +33 -7
  27. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +1 -1
  28. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +33 -7
  29. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx +2 -10
  30. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +1 -1
  31. package/cpa-out/nextjs-pages-codegen-js/package.json +4 -4
  32. package/cpa-out/nextjs-pages-codegen-js/pages/dynamic/[slug].jsx +10 -7
  33. package/cpa-out/nextjs-pages-codegen-js/pages/index.jsx +10 -7
  34. package/cpa-out/nextjs-pages-codegen-js/plasmic.json +5 -3
  35. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +11 -7
  36. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +37 -8
  37. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -1
  38. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +37 -8
  39. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +3 -1
  40. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +2 -10
  41. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +1 -1
  42. package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
  43. package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +10 -7
  44. package/cpa-out/nextjs-pages-codegen-ts/pages/index.tsx +10 -7
  45. package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +5 -3
  46. package/cpa-out/nextjs-pages-loader-js/package.json +3 -3
  47. package/cpa-out/nextjs-pages-loader-ts/package.json +3 -3
  48. package/cpa-out/react-codegen-js/eslint.config.js +1 -1
  49. package/cpa-out/react-codegen-js/package.json +13 -13
  50. package/cpa-out/react-codegen-js/plasmic.json +3 -2
  51. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +8 -6
  52. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +29 -7
  53. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +29 -7
  54. package/cpa-out/react-codegen-ts/eslint.config.js +1 -1
  55. package/cpa-out/react-codegen-ts/package.json +15 -15
  56. package/cpa-out/react-codegen-ts/plasmic.json +3 -2
  57. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +8 -6
  58. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +29 -7
  59. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +29 -7
  60. package/cpa-out/tanstack-codegen-ts/package.json +26 -22
  61. package/cpa-out/tanstack-codegen-ts/plasmic.json +6 -2
  62. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +22 -18
  63. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +42 -19
  64. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -1
  65. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +42 -23
  66. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +12 -11
  67. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +17 -0
  68. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__CheckSvg.tsx +1 -1
  69. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.tsx +14 -0
  70. package/cpa-out/tanstack-codegen-ts/src/main.tsx +23 -0
  71. package/cpa-out/tanstack-codegen-ts/src/routeTree.gen.ts +3 -3
  72. package/cpa-out/tanstack-codegen-ts/src/router.tsx +8 -8
  73. package/cpa-out/tanstack-codegen-ts/tsconfig.json +5 -5
  74. package/cpa-out/tanstack-codegen-ts/vite.config.ts +8 -9
  75. package/dist/utils/file-utils.js +6 -1
  76. package/package.json +2 -2
  77. package/src/utils/file-utils.ts +8 -1
  78. package/cpa-out/tanstack-codegen-ts/src/components/Header.tsx +0 -21
@@ -206,37 +206,38 @@ function PlasmicButton__RenderFunc(props: {
206
206
  path: "showStartIcon",
207
207
  type: "private",
208
208
  variableType: "variant",
209
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
209
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
210
+ $props.showStartIcon
210
211
  },
211
212
  {
212
213
  path: "showEndIcon",
213
214
  type: "private",
214
215
  variableType: "variant",
215
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
216
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.showEndIcon
216
217
  },
217
218
  {
218
219
  path: "isDisabled",
219
220
  type: "private",
220
221
  variableType: "variant",
221
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.isDisabled
222
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.isDisabled
222
223
  },
223
224
  {
224
225
  path: "shape",
225
226
  type: "private",
226
227
  variableType: "variant",
227
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.shape
228
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.shape
228
229
  },
229
230
  {
230
231
  path: "size",
231
232
  type: "private",
232
233
  variableType: "variant",
233
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.size
234
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.size
234
235
  },
235
236
  {
236
237
  path: "color",
237
238
  type: "private",
238
239
  variableType: "variant",
239
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.color
240
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.color
240
241
  }
241
242
  ],
242
243
  [$props, $ctx, $refs]
@@ -245,6 +246,7 @@ function PlasmicButton__RenderFunc(props: {
245
246
  $props,
246
247
  $ctx,
247
248
  $queries: {},
249
+ $q: {},
248
250
  $refs
249
251
  });
250
252
 
@@ -64,6 +64,30 @@ import "@plasmicapp/react-web/lib/plasmic.css";
64
64
  import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
65
65
  import sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
66
66
 
67
+ const emptyProxy: any = new Proxy(() => "", {
68
+ get(_, prop) {
69
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
70
+ }
71
+ });
72
+
73
+ function wrapQueriesWithLoadingProxy($q: any): any {
74
+ return new Proxy($q, {
75
+ get(target, queryName) {
76
+ const query = target[queryName];
77
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
78
+ }
79
+ });
80
+ }
81
+
82
+ export function generateDynamicMetadata($q: any, $ctx: any) {
83
+ return {
84
+ openGraph: {},
85
+ twitter: {
86
+ card: "summary"
87
+ }
88
+ };
89
+ }
90
+
67
91
  createPlasmicElementProxy;
68
92
 
69
93
  export type PlasmicDynamicPage__VariantMembers = {};
@@ -267,13 +291,11 @@ export const PlasmicDynamicPage = Object.assign(
267
291
  internalVariantProps: PlasmicDynamicPage__VariantProps,
268
292
  internalArgProps: PlasmicDynamicPage__ArgProps,
269
293
 
270
- // Page metadata
271
- pageMetadata: {
272
- title: "",
273
- description: "",
274
- ogImageSrc: "",
275
- canonical: ""
276
- }
294
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
295
+ pagePath: "/dynamic/[slug]",
296
+ searchParams: {},
297
+ params: {}
298
+ })
277
299
  }
278
300
  );
279
301
 
@@ -65,6 +65,30 @@ import "@plasmicapp/react-web/lib/plasmic.css";
65
65
  import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
66
66
  import sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
67
67
 
68
+ const emptyProxy: any = new Proxy(() => "", {
69
+ get(_, prop) {
70
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
71
+ }
72
+ });
73
+
74
+ function wrapQueriesWithLoadingProxy($q: any): any {
75
+ return new Proxy($q, {
76
+ get(target, queryName) {
77
+ const query = target[queryName];
78
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
79
+ }
80
+ });
81
+ }
82
+
83
+ export function generateDynamicMetadata($q: any, $ctx: any) {
84
+ return {
85
+ openGraph: {},
86
+ twitter: {
87
+ card: "summary"
88
+ }
89
+ };
90
+ }
91
+
68
92
  createPlasmicElementProxy;
69
93
 
70
94
  export type PlasmicHomepage__VariantMembers = {};
@@ -304,13 +328,11 @@ export const PlasmicHomepage = Object.assign(
304
328
  internalVariantProps: PlasmicHomepage__VariantProps,
305
329
  internalArgProps: PlasmicHomepage__ArgProps,
306
330
 
307
- // Page metadata
308
- pageMetadata: {
309
- title: "",
310
- description: "",
311
- ogImageSrc: "",
312
- canonical: ""
313
- }
331
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
332
+ pagePath: "/",
333
+ searchParams: {},
334
+ params: {}
335
+ })
314
336
  }
315
337
  );
316
338
 
@@ -2,38 +2,42 @@
2
2
  "name": "tanstack-codegen-ts",
3
3
  "private": true,
4
4
  "type": "module",
5
+ "imports": {
6
+ "#/*": "./src/*"
7
+ },
5
8
  "scripts": {
6
9
  "dev": "vite dev --port 3000",
7
- "start": "node .output/server/index.mjs",
8
10
  "build": "vite build",
9
- "serve": "vite preview",
11
+ "preview": "vite preview",
10
12
  "test": "vitest run"
11
13
  },
12
14
  "dependencies": {
13
- "@plasmicapp/cli": "^0.1.341",
14
- "@plasmicapp/react-web": "^0.2.397",
15
- "@tailwindcss/vite": "^4.0.6",
16
- "@tanstack/react-query": "^5.84.2",
17
- "@tanstack/react-router": "^1.130.2",
18
- "@tanstack/react-router-devtools": "^1.130.2",
19
- "@tanstack/react-router-with-query": "^1.130.2",
20
- "@tanstack/react-start": "^1.130.2",
21
- "@tanstack/router-plugin": "^1.121.2",
22
- "react": "^19.0.0",
23
- "react-dom": "^19.0.0",
24
- "tailwindcss": "^4.0.6",
25
- "vite-tsconfig-paths": "^5.1.4"
15
+ "@plasmicapp/cli": "^0.1.359",
16
+ "@plasmicapp/react-web": "^0.2.422",
17
+ "@tailwindcss/vite": "^4.1.18",
18
+ "@tanstack/react-devtools": "^0.7.0",
19
+ "@tanstack/react-query": "^5.90.21",
20
+ "@tanstack/react-router": "^1.132.0",
21
+ "@tanstack/react-router-devtools": "^1.132.0",
22
+ "@tanstack/router-plugin": "^1.132.0",
23
+ "lucide-react": "^0.545.0",
24
+ "react": "^19.2.0",
25
+ "react-dom": "^19.2.0",
26
+ "tailwindcss": "^4.1.18"
26
27
  },
27
28
  "devDependencies": {
29
+ "@tanstack/devtools-vite": "^0.3.11",
30
+ "@tanstack/router-plugin": "^1.132.0",
28
31
  "@testing-library/dom": "^10.4.0",
29
32
  "@testing-library/react": "^16.2.0",
30
- "@types/react": "^19.0.8",
31
- "@types/react-dom": "^19.0.3",
32
- "@vitejs/plugin-react": "^4.3.4",
33
- "jsdom": "^26.0.0",
33
+ "@types/node": "^22.10.2",
34
+ "@types/react": "^19.2.0",
35
+ "@types/react-dom": "^19.2.0",
36
+ "@vitejs/plugin-react": "^5.0.4",
37
+ "jsdom": "^27.0.0",
34
38
  "typescript": "^5.7.2",
35
- "vite": "^6.3.5",
36
- "vitest": "^3.0.5",
37
- "web-vitals": "^4.2.4"
39
+ "vite": "^7.1.7",
40
+ "vite-tsconfig-paths": "^5.1.4",
41
+ "vitest": "^3.0.5"
38
42
  }
39
43
  }
@@ -100,6 +100,9 @@
100
100
  "indirect": false,
101
101
  "globalContextsFilePath": "",
102
102
  "splitsProviderFilePath": "",
103
+ "styleTokensProviderFilePath": "plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx",
104
+ "dataTokensFilePath": "",
105
+ "projectModuleFilePath": "plasmic/create_plasmic_app/plasmic.tsx",
103
106
  "codeComponents": [
104
107
  {
105
108
  "id": "P6aGdYWZ2R",
@@ -128,9 +131,10 @@
128
131
  ]
129
132
  },
130
133
  "wrapPagesWithGlobalContexts": true,
134
+ "preserveJsImportExtensions": false,
131
135
  "tanstackConfig": {
132
136
  "pagesDir": "../routes"
133
137
  },
134
- "cliVersion": "0.1.341",
135
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.341/dist/plasmic.schema.json"
138
+ "cliVersion": "0.1.359",
139
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.359/dist/plasmic.schema.json"
136
140
  }
@@ -60,11 +60,14 @@ import {
60
60
 
61
61
  import * as pp from "@plasmicapp/react-web";
62
62
 
63
- import globalcss from "@plasmicapp/react-web/lib/plasmic.css?url";
64
- import defaultcss from "../plasmic__default_style.css?url"; // plasmic-import: global/defaultcss
63
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
64
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
65
65
 
66
- import projectcss from "./plasmic.css?url"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
67
- import sty from "./PlasmicButton.css?url"; // plasmic-import: TQcvW_pSKi3/css
66
+ import "@plasmicapp/react-web/lib/plasmic.css";
67
+ import "../plasmic__default_style.css"; // plasmic-import: global/defaultcss
68
+
69
+ import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
70
+ import "./PlasmicButton.css"; // plasmic-import: TQcvW_pSKi3/css
68
71
 
69
72
  import CheckSvgIcon from "./icons/PlasmicIcon__CheckSvg"; // plasmic-import: gj-_D7n31Ho/icon
70
73
  import IconIcon from "./icons/PlasmicIcon__Icon"; // plasmic-import: 6PNxx3YMyDQ/icon
@@ -215,37 +218,38 @@ function PlasmicButton__RenderFunc(props: {
215
218
  path: "showStartIcon",
216
219
  type: "private",
217
220
  variableType: "variant",
218
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
221
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
222
+ $props.showStartIcon
219
223
  },
220
224
  {
221
225
  path: "showEndIcon",
222
226
  type: "private",
223
227
  variableType: "variant",
224
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
228
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.showEndIcon
225
229
  },
226
230
  {
227
231
  path: "isDisabled",
228
232
  type: "private",
229
233
  variableType: "variant",
230
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.isDisabled
234
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.isDisabled
231
235
  },
232
236
  {
233
237
  path: "shape",
234
238
  type: "private",
235
239
  variableType: "variant",
236
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.shape
240
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.shape
237
241
  },
238
242
  {
239
243
  path: "size",
240
244
  type: "private",
241
245
  variableType: "variant",
242
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.size
246
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.size
243
247
  },
244
248
  {
245
249
  path: "color",
246
250
  type: "private",
247
251
  variableType: "variant",
248
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.color
252
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.color
249
253
  }
250
254
  ],
251
255
  [$props, $ctx, $refs]
@@ -254,6 +258,7 @@ function PlasmicButton__RenderFunc(props: {
254
258
  $props,
255
259
  $ctx,
256
260
  $queries: {},
261
+ $q: {},
257
262
  $refs
258
263
  });
259
264
 
@@ -265,6 +270,8 @@ function PlasmicButton__RenderFunc(props: {
265
270
  focusVisibleWithin_root: isRootFocusVisibleWithin
266
271
  };
267
272
 
273
+ const styleTokensClassNames = _useStyleTokens();
274
+
268
275
  return (
269
276
  <button
270
277
  data-plasmic-name={"root"}
@@ -277,7 +284,7 @@ function PlasmicButton__RenderFunc(props: {
277
284
  "root_reset_47tFXWjN2C4NyHFGGpaYQ3",
278
285
  "plasmic_default_styles",
279
286
  "plasmic_mixins",
280
- "plasmic_tokens",
287
+ styleTokensClassNames,
281
288
  "Button__root__gpc3K",
282
289
  {
283
290
  Button__root___focusVisibleWithin__gpc3KcjR25:
@@ -792,7 +799,9 @@ type NodeComponentProps<T extends NodeNameType> =
792
799
  variants?: PlasmicButton__VariantsArgs;
793
800
  args?: PlasmicButton__ArgsType;
794
801
  overrides?: NodeOverridesType<T>;
795
- } & Omit<PlasmicButton__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
802
+ } &
803
+ // Specify variants directly as props
804
+ Omit<PlasmicButton__VariantsArgs, ReservedPropsType> &
796
805
  // Specify args directly as props
797
806
  Omit<PlasmicButton__ArgsType, ReservedPropsType> &
798
807
  // Specify overrides for each element directly as props
@@ -856,12 +865,7 @@ export const PlasmicButton = Object.assign(
856
865
  export const PlasmicButton__HeadOptions = {
857
866
  meta: [{ name: "twitter:card", content: "summary" }],
858
867
 
859
- links: [
860
- { rel: "stylesheet", href: globalcss },
861
- { rel: "stylesheet", href: defaultcss },
862
- { rel: "stylesheet", href: projectcss },
863
- { rel: "stylesheet", href: sty }
864
- ]
868
+ links: []
865
869
  } as Record<"meta" | "links", Array<Record<string, string>>>;
866
870
 
867
871
  export default PlasmicButton;
@@ -59,12 +59,38 @@ import {
59
59
  } from "@plasmicapp/react-web/lib/host";
60
60
 
61
61
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
62
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
63
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
62
64
 
63
- import globalcss from "@plasmicapp/react-web/lib/plasmic.css?url";
64
- import defaultcss from "../plasmic__default_style.css?url"; // plasmic-import: global/defaultcss
65
+ import "@plasmicapp/react-web/lib/plasmic.css";
66
+ import "../plasmic__default_style.css"; // plasmic-import: global/defaultcss
65
67
 
66
- import projectcss from "./plasmic.css?url"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
67
- import sty from "./PlasmicDynamicPage.css?url"; // plasmic-import: AO44A-w7hh/css
68
+ import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
69
+ import "./PlasmicDynamicPage.css"; // plasmic-import: AO44A-w7hh/css
70
+
71
+ const emptyProxy: any = new Proxy(() => "", {
72
+ get(_, prop) {
73
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
74
+ }
75
+ });
76
+
77
+ function wrapQueriesWithLoadingProxy($q: any): any {
78
+ return new Proxy($q, {
79
+ get(target, queryName) {
80
+ const query = target[queryName];
81
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
82
+ }
83
+ });
84
+ }
85
+
86
+ export function generateDynamicMetadata($q: any, $ctx: any) {
87
+ return {
88
+ openGraph: {},
89
+ twitter: {
90
+ card: "summary"
91
+ }
92
+ };
93
+ }
68
94
 
69
95
  createPlasmicElementProxy;
70
96
 
@@ -124,6 +150,8 @@ function PlasmicDynamicPage__RenderFunc(props: {
124
150
  const refsRef = React.useRef({});
125
151
  const $refs = refsRef.current;
126
152
 
153
+ const styleTokensClassNames = _useStyleTokens();
154
+
127
155
  return (
128
156
  <React.Fragment>
129
157
  <style>{`
@@ -144,7 +172,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
144
172
  "root_reset_47tFXWjN2C4NyHFGGpaYQ3",
145
173
  "plasmic_default_styles",
146
174
  "plasmic_mixins",
147
- "plasmic_tokens",
175
+ styleTokensClassNames,
148
176
  "DynamicPage__root__hgzte"
149
177
  )}
150
178
  >
@@ -225,7 +253,9 @@ type NodeComponentProps<T extends NodeNameType> =
225
253
  variants?: PlasmicDynamicPage__VariantsArgs;
226
254
  args?: PlasmicDynamicPage__ArgsType;
227
255
  overrides?: NodeOverridesType<T>;
228
- } & Omit<PlasmicDynamicPage__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
256
+ } &
257
+ // Specify variants directly as props
258
+ Omit<PlasmicDynamicPage__VariantsArgs, ReservedPropsType> &
229
259
  // Specify args directly as props
230
260
  Omit<PlasmicDynamicPage__ArgsType, ReservedPropsType> &
231
261
  // Specify overrides for each element directly as props
@@ -282,25 +312,18 @@ export const PlasmicDynamicPage = Object.assign(
282
312
  internalVariantProps: PlasmicDynamicPage__VariantProps,
283
313
  internalArgProps: PlasmicDynamicPage__ArgProps,
284
314
 
285
- // Page metadata
286
- pageMetadata: {
287
- title: "",
288
- description: "",
289
- ogImageSrc: "",
290
- canonical: ""
291
- }
315
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
316
+ pagePath: "/dynamic/[slug]",
317
+ searchParams: {},
318
+ params: {}
319
+ })
292
320
  }
293
321
  );
294
322
 
295
323
  export const PlasmicDynamicPage__HeadOptions = {
296
324
  meta: [{ name: "twitter:card", content: "summary" }],
297
325
 
298
- links: [
299
- { rel: "stylesheet", href: globalcss },
300
- { rel: "stylesheet", href: defaultcss },
301
- { rel: "stylesheet", href: projectcss },
302
- { rel: "stylesheet", href: sty }
303
- ]
326
+ links: []
304
327
  } as Record<"meta" | "links", Array<Record<string, string>>>;
305
328
 
306
329
  export default PlasmicDynamicPage;
@@ -21,7 +21,7 @@ export function ScreenContextProvider(
21
21
  }
22
22
 
23
23
  export const useScreenVariants = createUseScreenVariants(true, {
24
- desktopOnly: "(min-width:768px)",
24
+ desktopOnly: "(min-width:768px)"
25
25
  });
26
26
 
27
27
  export default ScreenContext;
@@ -60,14 +60,38 @@ import {
60
60
 
61
61
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
62
62
  import { Fetcher } from "@plasmicapp/react-web/lib/data-sources";
63
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
64
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
63
65
 
64
- import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
66
+ import "@plasmicapp/react-web/lib/plasmic.css";
67
+ import "../plasmic__default_style.css"; // plasmic-import: global/defaultcss
65
68
 
66
- import globalcss from "@plasmicapp/react-web/lib/plasmic.css?url";
67
- import defaultcss from "../plasmic__default_style.css?url"; // plasmic-import: global/defaultcss
69
+ import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
70
+ import "./PlasmicHomepage.css"; // plasmic-import: 6uuAAE1jiCew/css
68
71
 
69
- import projectcss from "./plasmic.css?url"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
70
- import sty from "./PlasmicHomepage.css?url"; // plasmic-import: 6uuAAE1jiCew/css
72
+ const emptyProxy: any = new Proxy(() => "", {
73
+ get(_, prop) {
74
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
75
+ }
76
+ });
77
+
78
+ function wrapQueriesWithLoadingProxy($q: any): any {
79
+ return new Proxy($q, {
80
+ get(target, queryName) {
81
+ const query = target[queryName];
82
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
83
+ }
84
+ });
85
+ }
86
+
87
+ export function generateDynamicMetadata($q: any, $ctx: any) {
88
+ return {
89
+ openGraph: {},
90
+ twitter: {
91
+ card: "summary"
92
+ }
93
+ };
94
+ }
71
95
 
72
96
  createPlasmicElementProxy;
73
97
 
@@ -128,9 +152,9 @@ function PlasmicHomepage__RenderFunc(props: {
128
152
  const refsRef = React.useRef({});
129
153
  const $refs = refsRef.current;
130
154
 
131
- const globalVariants = ensureGlobalVariants({
132
- screen: useScreenVariantsscBjPxgdxdzbv()
133
- });
155
+ const globalVariants = _useGlobalVariants();
156
+
157
+ const styleTokensClassNames = _useStyleTokens();
134
158
 
135
159
  return (
136
160
  <React.Fragment>
@@ -152,7 +176,7 @@ function PlasmicHomepage__RenderFunc(props: {
152
176
  "root_reset_47tFXWjN2C4NyHFGGpaYQ3",
153
177
  "plasmic_default_styles",
154
178
  "plasmic_mixins",
155
- "plasmic_tokens",
179
+ styleTokensClassNames,
156
180
  "Homepage__root__qtZIr"
157
181
  )}
158
182
  >
@@ -266,7 +290,9 @@ type NodeComponentProps<T extends NodeNameType> =
266
290
  variants?: PlasmicHomepage__VariantsArgs;
267
291
  args?: PlasmicHomepage__ArgsType;
268
292
  overrides?: NodeOverridesType<T>;
269
- } & Omit<PlasmicHomepage__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
293
+ } &
294
+ // Specify variants directly as props
295
+ Omit<PlasmicHomepage__VariantsArgs, ReservedPropsType> &
270
296
  // Specify args directly as props
271
297
  Omit<PlasmicHomepage__ArgsType, ReservedPropsType> &
272
298
  // Specify overrides for each element directly as props
@@ -324,25 +350,18 @@ export const PlasmicHomepage = Object.assign(
324
350
  internalVariantProps: PlasmicHomepage__VariantProps,
325
351
  internalArgProps: PlasmicHomepage__ArgProps,
326
352
 
327
- // Page metadata
328
- pageMetadata: {
329
- title: "",
330
- description: "",
331
- ogImageSrc: "",
332
- canonical: ""
333
- }
353
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
354
+ pagePath: "/",
355
+ searchParams: {},
356
+ params: {}
357
+ })
334
358
  }
335
359
  );
336
360
 
337
361
  export const PlasmicHomepage__HeadOptions = {
338
362
  meta: [{ name: "twitter:card", content: "summary" }],
339
363
 
340
- links: [
341
- { rel: "stylesheet", href: globalcss },
342
- { rel: "stylesheet", href: defaultcss },
343
- { rel: "stylesheet", href: projectcss },
344
- { rel: "stylesheet", href: sty }
345
- ]
364
+ links: []
346
365
  } as Record<"meta" | "links", Array<Record<string, string>>>;
347
366
 
348
367
  export default PlasmicHomepage;
@@ -59,12 +59,14 @@ import {
59
59
  } from "@plasmicapp/react-web/lib/host";
60
60
 
61
61
  import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
62
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
63
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
62
64
 
63
- import globalcss from "@plasmicapp/react-web/lib/plasmic.css?url";
64
- import defaultcss from "../plasmic__default_style.css?url"; // plasmic-import: global/defaultcss
65
+ import "@plasmicapp/react-web/lib/plasmic.css";
66
+ import "../plasmic__default_style.css"; // plasmic-import: global/defaultcss
65
67
 
66
- import projectcss from "./plasmic.css?url"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
67
- import sty from "./PlasmicRandomDynamicPageButton.css?url"; // plasmic-import: Q23H1_1M_P/css
68
+ import "./plasmic.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
69
+ import "./PlasmicRandomDynamicPageButton.css"; // plasmic-import: Q23H1_1M_P/css
68
70
 
69
71
  import CheckSvgIcon from "./icons/PlasmicIcon__CheckSvg"; // plasmic-import: gj-_D7n31Ho/icon
70
72
  import IconIcon from "./icons/PlasmicIcon__Icon"; // plasmic-import: 6PNxx3YMyDQ/icon
@@ -128,6 +130,8 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props: {
128
130
  const refsRef = React.useRef({});
129
131
  const $refs = refsRef.current;
130
132
 
133
+ const styleTokensClassNames = _useStyleTokens();
134
+
131
135
  return (
132
136
  <Button
133
137
  data-plasmic-name={"root"}
@@ -208,7 +212,9 @@ type NodeComponentProps<T extends NodeNameType> =
208
212
  variants?: PlasmicRandomDynamicPageButton__VariantsArgs;
209
213
  args?: PlasmicRandomDynamicPageButton__ArgsType;
210
214
  overrides?: NodeOverridesType<T>;
211
- } & Omit<PlasmicRandomDynamicPageButton__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
215
+ } &
216
+ // Specify variants directly as props
217
+ Omit<PlasmicRandomDynamicPageButton__VariantsArgs, ReservedPropsType> &
212
218
  // Specify args directly as props
213
219
  Omit<PlasmicRandomDynamicPageButton__ArgsType, ReservedPropsType> &
214
220
  // Specify overrides for each element directly as props
@@ -267,12 +273,7 @@ export const PlasmicRandomDynamicPageButton = Object.assign(
267
273
  export const PlasmicRandomDynamicPageButton__HeadOptions = {
268
274
  meta: [{ name: "twitter:card", content: "summary" }],
269
275
 
270
- links: [
271
- { rel: "stylesheet", href: globalcss },
272
- { rel: "stylesheet", href: defaultcss },
273
- { rel: "stylesheet", href: projectcss },
274
- { rel: "stylesheet", href: sty }
275
- ]
276
+ links: []
276
277
  } as Record<"meta" | "links", Array<Record<string, string>>>;
277
278
 
278
279
  export default PlasmicRandomDynamicPageButton;
@@ -0,0 +1,17 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+
5
+ // This code is auto-generated by Plasmic; please do not edit!
6
+ // Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
7
+
8
+ import { createUseStyleTokens } from "@plasmicapp/react-web";
9
+
10
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
11
+
12
+ const data = {
13
+ base: `${"plasmic_tokens_47tFXWjN2C4NyHFGGpaYQ3"}`,
14
+ varianted: []
15
+ };
16
+
17
+ export const _useStyleTokens = createUseStyleTokens(data, _useGlobalVariants);
@@ -21,7 +21,7 @@ export function CheckSvgIcon(props: CheckSvgIconProps) {
21
21
  style={{
22
22
  fill: "currentcolor",
23
23
 
24
- ...(style || {}),
24
+ ...(style || {})
25
25
  }}
26
26
  className={classNames("plasmic-default__svg", className)}
27
27
  {...restProps}