create-plasmic-app 0.0.131 → 0.0.132

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 (76) 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/package.json +2 -2
  76. package/cpa-out/tanstack-codegen-ts/src/components/Header.tsx +0 -21
@@ -63,14 +63,38 @@ import {
63
63
 
64
64
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
65
65
  import { Fetcher } from "@plasmicapp/react-web/lib/data-sources";
66
-
67
- import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
66
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
67
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
68
68
 
69
69
  import "@plasmicapp/react-web/lib/plasmic.css";
70
70
 
71
71
  import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
72
72
  import * as sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
73
73
 
74
+ const emptyProxy: any = new Proxy(() => "", {
75
+ get(_, prop) {
76
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
77
+ }
78
+ });
79
+
80
+ function wrapQueriesWithLoadingProxy($q: any): any {
81
+ return new Proxy($q, {
82
+ get(target, queryName) {
83
+ const query = target[queryName];
84
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
85
+ }
86
+ });
87
+ }
88
+
89
+ export function generateDynamicMetadata($q: any, $ctx: any) {
90
+ return {
91
+ openGraph: {},
92
+ twitter: {
93
+ card: "summary"
94
+ }
95
+ };
96
+ }
97
+
74
98
  createPlasmicElementProxy;
75
99
 
76
100
  export type PlasmicHomepage__VariantMembers = {};
@@ -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>
@@ -151,7 +175,7 @@ function PlasmicHomepage__RenderFunc(props: {
151
175
  projectcss.root_reset,
152
176
  projectcss.plasmic_default_styles,
153
177
  projectcss.plasmic_mixins,
154
- projectcss.plasmic_tokens,
178
+ styleTokensClassNames,
155
179
  sty.root
156
180
  )}
157
181
  >
@@ -260,7 +284,9 @@ type NodeComponentProps<T extends NodeNameType> =
260
284
  variants?: PlasmicHomepage__VariantsArgs;
261
285
  args?: PlasmicHomepage__ArgsType;
262
286
  overrides?: NodeOverridesType<T>;
263
- } & Omit<PlasmicHomepage__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
287
+ } &
288
+ // Specify variants directly as props
289
+ Omit<PlasmicHomepage__VariantsArgs, ReservedPropsType> &
264
290
  // Specify args directly as props
265
291
  Omit<PlasmicHomepage__ArgsType, ReservedPropsType> &
266
292
  // Specify overrides for each element directly as props
@@ -318,13 +344,11 @@ export const PlasmicHomepage = Object.assign(
318
344
  internalVariantProps: PlasmicHomepage__VariantProps,
319
345
  internalArgProps: PlasmicHomepage__ArgProps,
320
346
 
321
- // Page metadata
322
- pageMetadata: {
323
- title: "",
324
- description: "",
325
- ogImageSrc: "",
326
- canonical: ""
327
- }
347
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
348
+ pagePath: "/",
349
+ searchParams: {},
350
+ params: {}
351
+ })
328
352
  }
329
353
  );
330
354
 
@@ -62,6 +62,8 @@ import {
62
62
  } from "@plasmicapp/react-web/lib/host";
63
63
 
64
64
  import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
65
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
66
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
65
67
 
66
68
  import "@plasmicapp/react-web/lib/plasmic.css";
67
69
 
@@ -122,6 +124,8 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props: {
122
124
  const refsRef = React.useRef({});
123
125
  const $refs = refsRef.current;
124
126
 
127
+ const styleTokensClassNames = _useStyleTokens();
128
+
125
129
  return (
126
130
  <Button
127
131
  data-plasmic-name={"root"}
@@ -199,7 +203,9 @@ type NodeComponentProps<T extends NodeNameType> =
199
203
  variants?: PlasmicRandomDynamicPageButton__VariantsArgs;
200
204
  args?: PlasmicRandomDynamicPageButton__ArgsType;
201
205
  overrides?: NodeOverridesType<T>;
202
- } & Omit<PlasmicRandomDynamicPageButton__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
206
+ } &
207
+ // Specify variants directly as props
208
+ Omit<PlasmicRandomDynamicPageButton__VariantsArgs, ReservedPropsType> &
203
209
  // Specify args directly as props
204
210
  Omit<PlasmicRandomDynamicPageButton__ArgsType, ReservedPropsType> &
205
211
  // Specify overrides for each element directly as props
@@ -0,0 +1,19 @@
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
+ import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
13
+
14
+ const data = {
15
+ base: `${projectcss.plasmic_tokens}`,
16
+ varianted: []
17
+ };
18
+
19
+ 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}
@@ -0,0 +1,14 @@
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 { createUseGlobalVariants } from "@plasmicapp/react-web";
9
+
10
+ import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
11
+
12
+ export const _useGlobalVariants = createUseGlobalVariants({
13
+ screen: useScreenVariantsscBjPxgdxdzbv
14
+ });
@@ -14,9 +14,9 @@
14
14
  "clean": "gatsby clean"
15
15
  },
16
16
  "dependencies": {
17
- "@plasmicapp/loader-gatsby": "^1.0.398",
18
- "gatsby": "^5.14.1",
19
- "gatsby-plugin-react-helmet": "^6.14.0",
17
+ "@plasmicapp/loader-gatsby": "^1.0.416",
18
+ "gatsby": "^5.14.6",
19
+ "gatsby-plugin-react-helmet": "^6.16.0",
20
20
  "react": "^18.2.0",
21
21
  "react-dom": "^18.2.0",
22
22
  "react-helmet": "^6.1.0"
@@ -15,9 +15,9 @@
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "@plasmicapp/loader-gatsby": "^1.0.398",
19
- "gatsby": "^5.14.1",
20
- "gatsby-plugin-react-helmet": "^6.14.0",
18
+ "@plasmicapp/loader-gatsby": "^1.0.416",
19
+ "gatsby": "^5.14.6",
20
+ "gatsby-plugin-react-helmet": "^6.16.0",
21
21
  "react": "^18.2.0",
22
22
  "react-dom": "^18.2.0",
23
23
  "react-helmet": "^6.1.0"
@@ -9,13 +9,13 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.438",
13
- "next": "14.2.32",
12
+ "@plasmicapp/loader-nextjs": "^1.0.454",
13
+ "next": "14.2.35",
14
14
  "react": "^18",
15
15
  "react-dom": "^18"
16
16
  },
17
17
  "devDependencies": {
18
18
  "eslint": "^8",
19
- "eslint-config-next": "14.2.32"
19
+ "eslint-config-next": "14.2.35"
20
20
  }
21
21
  }
@@ -9,8 +9,8 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/loader-nextjs": "^1.0.438",
13
- "next": "14.2.32",
12
+ "@plasmicapp/loader-nextjs": "^1.0.454",
13
+ "next": "14.2.35",
14
14
  "react": "^18",
15
15
  "react-dom": "^18"
16
16
  },
@@ -19,7 +19,7 @@
19
19
  "@types/react": "^18",
20
20
  "@types/react-dom": "^18",
21
21
  "eslint": "^8",
22
- "eslint-config-next": "14.2.32",
22
+ "eslint-config-next": "14.2.35",
23
23
  "typescript": "^5"
24
24
  }
25
25
  }
@@ -85,37 +85,38 @@ function PlasmicButton__RenderFunc(props) {
85
85
  path: "showStartIcon",
86
86
  type: "private",
87
87
  variableType: "variant",
88
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
88
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
89
+ $props.showStartIcon
89
90
  },
90
91
  {
91
92
  path: "showEndIcon",
92
93
  type: "private",
93
94
  variableType: "variant",
94
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
95
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.showEndIcon
95
96
  },
96
97
  {
97
98
  path: "isDisabled",
98
99
  type: "private",
99
100
  variableType: "variant",
100
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.isDisabled
101
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.isDisabled
101
102
  },
102
103
  {
103
104
  path: "shape",
104
105
  type: "private",
105
106
  variableType: "variant",
106
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.shape
107
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.shape
107
108
  },
108
109
  {
109
110
  path: "size",
110
111
  type: "private",
111
112
  variableType: "variant",
112
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.size
113
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.size
113
114
  },
114
115
  {
115
116
  path: "color",
116
117
  type: "private",
117
118
  variableType: "variant",
118
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.color
119
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.color
119
120
  }
120
121
  ],
121
122
 
@@ -125,6 +126,7 @@ function PlasmicButton__RenderFunc(props) {
125
126
  $props,
126
127
  $ctx,
127
128
  $queries: {},
129
+ $q: {},
128
130
  $refs
129
131
  });
130
132
  const [isRootFocusVisibleWithin, triggerRootFocusVisibleWithinProps] =
@@ -23,6 +23,30 @@ import "@plasmicapp/react-web/lib/plasmic.css";
23
23
  import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
24
24
  import sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
25
25
 
26
+ const emptyProxy = new Proxy(() => "", {
27
+ get(_, prop) {
28
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
29
+ }
30
+ });
31
+
32
+ function wrapQueriesWithLoadingProxy($q) {
33
+ return new Proxy($q, {
34
+ get(target, queryName) {
35
+ const query = target[queryName];
36
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
37
+ }
38
+ });
39
+ }
40
+
41
+ export function generateDynamicMetadata($q, $ctx) {
42
+ return {
43
+ openGraph: {},
44
+ twitter: {
45
+ card: "summary"
46
+ }
47
+ };
48
+ }
49
+
26
50
  createPlasmicElementProxy;
27
51
 
28
52
  export const PlasmicDynamicPage__VariantProps = new Array();
@@ -58,6 +82,10 @@ function PlasmicDynamicPage__RenderFunc(props) {
58
82
  const $ctx = useDataEnv?.() || {};
59
83
  const refsRef = React.useRef({});
60
84
  const $refs = refsRef.current;
85
+ const pageMetadata = generateDynamicMetadata(
86
+ wrapQueriesWithLoadingProxy({}),
87
+ $ctx
88
+ );
61
89
  const styleTokensClassNames = _useStyleTokens();
62
90
  return (
63
91
  <React.Fragment>
@@ -175,13 +203,11 @@ export const PlasmicDynamicPage = Object.assign(
175
203
  // Metadata about props expected for PlasmicDynamicPage
176
204
  internalVariantProps: PlasmicDynamicPage__VariantProps,
177
205
  internalArgProps: PlasmicDynamicPage__ArgProps,
178
- // Page metadata
179
- pageMetadata: {
180
- title: "",
181
- description: "",
182
- ogImageSrc: "",
183
- canonical: ""
184
- }
206
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
207
+ pagePath: "/dynamic/[slug]",
208
+ searchParams: {},
209
+ params: {}
210
+ })
185
211
  }
186
212
  );
187
213
 
@@ -18,7 +18,7 @@ export function ScreenContextProvider(props) {
18
18
  }
19
19
 
20
20
  export const useScreenVariants = createUseScreenVariants(true, {
21
- desktopOnly: "(min-width:768px)",
21
+ desktopOnly: "(min-width:768px)"
22
22
  });
23
23
 
24
24
  export default ScreenContext;
@@ -25,6 +25,30 @@ import "@plasmicapp/react-web/lib/plasmic.css";
25
25
  import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
26
26
  import sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
27
27
 
28
+ const emptyProxy = new Proxy(() => "", {
29
+ get(_, prop) {
30
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
31
+ }
32
+ });
33
+
34
+ function wrapQueriesWithLoadingProxy($q) {
35
+ return new Proxy($q, {
36
+ get(target, queryName) {
37
+ const query = target[queryName];
38
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
39
+ }
40
+ });
41
+ }
42
+
43
+ export function generateDynamicMetadata($q, $ctx) {
44
+ return {
45
+ openGraph: {},
46
+ twitter: {
47
+ card: "summary"
48
+ }
49
+ };
50
+ }
51
+
28
52
  createPlasmicElementProxy;
29
53
 
30
54
  export const PlasmicHomepage__VariantProps = new Array();
@@ -61,6 +85,10 @@ function PlasmicHomepage__RenderFunc(props) {
61
85
  const refsRef = React.useRef({});
62
86
  const $refs = refsRef.current;
63
87
  const globalVariants = _useGlobalVariants();
88
+ const pageMetadata = generateDynamicMetadata(
89
+ wrapQueriesWithLoadingProxy({}),
90
+ $ctx
91
+ );
64
92
  const styleTokensClassNames = _useStyleTokens();
65
93
  return (
66
94
  <React.Fragment>
@@ -210,13 +238,11 @@ export const PlasmicHomepage = Object.assign(
210
238
  // Metadata about props expected for PlasmicHomepage
211
239
  internalVariantProps: PlasmicHomepage__VariantProps,
212
240
  internalArgProps: PlasmicHomepage__ArgProps,
213
- // Page metadata
214
- pageMetadata: {
215
- title: "",
216
- description: "",
217
- ogImageSrc: "",
218
- canonical: ""
219
- }
241
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
242
+ pagePath: "/",
243
+ searchParams: {},
244
+ params: {}
245
+ })
220
246
  }
221
247
  );
222
248
 
@@ -3,21 +3,13 @@
3
3
  // @ts-nocheck
4
4
  // This code is auto-generated by Plasmic; please do not edit!
5
5
  // Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
6
- import {
7
- createStyleTokensProvider,
8
- createUseStyleTokens
9
- } from "@plasmicapp/react-web";
6
+ import { createUseStyleTokens } from "@plasmicapp/react-web";
10
7
  import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
11
8
  import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
12
9
 
13
10
  const data = {
14
- base: projectcss.plasmic_tokens,
11
+ base: `${projectcss.plasmic_tokens}`,
15
12
  varianted: []
16
13
  };
17
14
 
18
15
  export const _useStyleTokens = createUseStyleTokens(data, _useGlobalVariants);
19
-
20
- export const StyleTokensProvider = createStyleTokensProvider(
21
- data,
22
- _useGlobalVariants
23
- );
@@ -16,7 +16,7 @@ export function CheckSvgIcon(props) {
16
16
  width={"1em"}
17
17
  style={{
18
18
  fill: "currentcolor",
19
- ...(style || {}),
19
+ ...(style || {})
20
20
  }}
21
21
  className={classNames("plasmic-default__svg", className)}
22
22
  {...restProps}
@@ -9,14 +9,14 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.343",
13
- "@plasmicapp/react-web": "^0.2.401",
14
- "next": "14.2.32",
12
+ "@plasmicapp/cli": "^0.1.359",
13
+ "@plasmicapp/react-web": "^0.2.422",
14
+ "next": "14.2.35",
15
15
  "react": "^18",
16
16
  "react-dom": "^18"
17
17
  },
18
18
  "devDependencies": {
19
19
  "eslint": "^8",
20
- "eslint-config-next": "14.2.32"
20
+ "eslint-config-next": "14.2.35"
21
21
  }
22
22
  }
@@ -4,6 +4,7 @@ import * as React from "react";
4
4
  import { PageParamsProvider as PageParamsProvider__ } from "@plasmicapp/react-web/lib/host";
5
5
  import { PlasmicDynamicPage } from "../../components/plasmic/create_plasmic_app/PlasmicDynamicPage";
6
6
  import { useRouter } from "next/router";
7
+ import { PlasmicQueryDataProvider } from "@plasmicapp/react-web/lib/query";
7
8
 
8
9
  function DynamicPage() {
9
10
  // Use PlasmicDynamicPage to render this component as it was
@@ -23,13 +24,15 @@ function DynamicPage() {
23
24
  // Next.js Custom App component
24
25
  // (https://nextjs.org/docs/advanced-features/custom-app).
25
26
  return (
26
- <PageParamsProvider__
27
- route={useRouter()?.pathname}
28
- params={useRouter()?.query}
29
- query={useRouter()?.query}
30
- >
31
- <PlasmicDynamicPage />
32
- </PageParamsProvider__>
27
+ <PlasmicQueryDataProvider>
28
+ <PageParamsProvider__
29
+ route={useRouter()?.pathname}
30
+ params={useRouter()?.query}
31
+ query={useRouter()?.query}
32
+ >
33
+ <PlasmicDynamicPage />
34
+ </PageParamsProvider__>
35
+ </PlasmicQueryDataProvider>
33
36
  );
34
37
  }
35
38
 
@@ -4,6 +4,7 @@ import * as React from "react";
4
4
  import { PageParamsProvider as PageParamsProvider__ } from "@plasmicapp/react-web/lib/host";
5
5
  import { PlasmicHomepage } from "../components/plasmic/create_plasmic_app/PlasmicHomepage";
6
6
  import { useRouter } from "next/router";
7
+ import { PlasmicQueryDataProvider } from "@plasmicapp/react-web/lib/query";
7
8
 
8
9
  function Homepage() {
9
10
  // Use PlasmicHomepage to render this component as it was
@@ -23,13 +24,15 @@ function Homepage() {
23
24
  // Next.js Custom App component
24
25
  // (https://nextjs.org/docs/advanced-features/custom-app).
25
26
  return (
26
- <PageParamsProvider__
27
- route={useRouter()?.pathname}
28
- params={useRouter()?.query}
29
- query={useRouter()?.query}
30
- >
31
- <PlasmicHomepage />
32
- </PageParamsProvider__>
27
+ <PlasmicQueryDataProvider>
28
+ <PageParamsProvider__
29
+ route={useRouter()?.pathname}
30
+ params={useRouter()?.query}
31
+ query={useRouter()?.query}
32
+ >
33
+ <PlasmicHomepage />
34
+ </PageParamsProvider__>
35
+ </PlasmicQueryDataProvider>
33
36
  );
34
37
  }
35
38
 
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "style": {
9
9
  "scheme": "css-modules",
10
- "defaultStyleCssFilePath": "plasmic/plasmic__default_style.css"
10
+ "defaultStyleCssFilePath": "plasmic/plasmic__default_style.module.css"
11
11
  },
12
12
  "images": {
13
13
  "scheme": "public-files",
@@ -101,6 +101,7 @@
101
101
  "globalContextsFilePath": "",
102
102
  "splitsProviderFilePath": "",
103
103
  "styleTokensProviderFilePath": "plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx",
104
+ "dataTokensFilePath": "",
104
105
  "projectModuleFilePath": "plasmic/create_plasmic_app/plasmic.jsx",
105
106
  "codeComponents": [
106
107
  {
@@ -130,9 +131,10 @@
130
131
  ]
131
132
  },
132
133
  "wrapPagesWithGlobalContexts": true,
134
+ "preserveJsImportExtensions": false,
133
135
  "nextjsConfig": {
134
136
  "pagesDir": "../pages"
135
137
  },
136
- "cliVersion": "0.1.343",
137
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.343/dist/plasmic.schema.json"
138
+ "cliVersion": "0.1.359",
139
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.359/dist/plasmic.schema.json"
138
140
  }
@@ -219,37 +219,38 @@ function PlasmicButton__RenderFunc(props: {
219
219
  path: "showStartIcon",
220
220
  type: "private",
221
221
  variableType: "variant",
222
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
222
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
223
+ $props.showStartIcon
223
224
  },
224
225
  {
225
226
  path: "showEndIcon",
226
227
  type: "private",
227
228
  variableType: "variant",
228
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
229
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.showEndIcon
229
230
  },
230
231
  {
231
232
  path: "isDisabled",
232
233
  type: "private",
233
234
  variableType: "variant",
234
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.isDisabled
235
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.isDisabled
235
236
  },
236
237
  {
237
238
  path: "shape",
238
239
  type: "private",
239
240
  variableType: "variant",
240
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.shape
241
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.shape
241
242
  },
242
243
  {
243
244
  path: "size",
244
245
  type: "private",
245
246
  variableType: "variant",
246
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.size
247
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.size
247
248
  },
248
249
  {
249
250
  path: "color",
250
251
  type: "private",
251
252
  variableType: "variant",
252
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.color
253
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.color
253
254
  }
254
255
  ],
255
256
  [$props, $ctx, $refs]
@@ -258,6 +259,7 @@ function PlasmicButton__RenderFunc(props: {
258
259
  $props,
259
260
  $ctx,
260
261
  $queries: {},
262
+ $q: {},
261
263
  $refs
262
264
  });
263
265
 
@@ -705,7 +707,9 @@ type NodeComponentProps<T extends NodeNameType> =
705
707
  variants?: PlasmicButton__VariantsArgs;
706
708
  args?: PlasmicButton__ArgsType;
707
709
  overrides?: NodeOverridesType<T>;
708
- } & Omit<PlasmicButton__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
710
+ } &
711
+ // Specify variants directly as props
712
+ Omit<PlasmicButton__VariantsArgs, ReservedPropsType> &
709
713
  // Specify args directly as props
710
714
  Omit<PlasmicButton__ArgsType, ReservedPropsType> &
711
715
  // Specify overrides for each element directly as props