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
@@ -14,10 +14,10 @@
14
14
  "clean": "gatsby clean"
15
15
  },
16
16
  "dependencies": {
17
- "@plasmicapp/cli": "^0.1.341",
18
- "@plasmicapp/react-web": "^0.2.397",
19
- "gatsby": "^5.14.1",
20
- "gatsby-plugin-react-helmet": "^6.14.0",
17
+ "@plasmicapp/cli": "^0.1.359",
18
+ "@plasmicapp/react-web": "^0.2.422",
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"
@@ -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": "files",
@@ -100,6 +100,9 @@
100
100
  "indirect": false,
101
101
  "globalContextsFilePath": "",
102
102
  "splitsProviderFilePath": "",
103
+ "styleTokensProviderFilePath": "plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx",
104
+ "dataTokensFilePath": "",
105
+ "projectModuleFilePath": "plasmic/create_plasmic_app/plasmic.jsx",
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
  "gatsbyConfig": {
132
136
  "pagesDir": "../pages"
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
  }
@@ -22,6 +22,7 @@ import {
22
22
  } from "@plasmicapp/react-web";
23
23
  import { useDataEnv } from "@plasmicapp/react-web/lib/host";
24
24
  import * as pp from "@plasmicapp/react-web";
25
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
25
26
  import "@plasmicapp/react-web/lib/plasmic.css";
26
27
  import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
27
28
  import * as sty from "./PlasmicButton.module.css"; // plasmic-import: TQcvW_pSKi3/css
@@ -75,37 +76,38 @@ function PlasmicButton__RenderFunc(props) {
75
76
  path: "showStartIcon",
76
77
  type: "private",
77
78
  variableType: "variant",
78
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
79
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
80
+ $props.showStartIcon
79
81
  },
80
82
  {
81
83
  path: "showEndIcon",
82
84
  type: "private",
83
85
  variableType: "variant",
84
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
86
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.showEndIcon
85
87
  },
86
88
  {
87
89
  path: "isDisabled",
88
90
  type: "private",
89
91
  variableType: "variant",
90
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.isDisabled
92
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.isDisabled
91
93
  },
92
94
  {
93
95
  path: "shape",
94
96
  type: "private",
95
97
  variableType: "variant",
96
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.shape
98
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.shape
97
99
  },
98
100
  {
99
101
  path: "size",
100
102
  type: "private",
101
103
  variableType: "variant",
102
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.size
104
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.size
103
105
  },
104
106
  {
105
107
  path: "color",
106
108
  type: "private",
107
109
  variableType: "variant",
108
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.color
110
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.color
109
111
  }
110
112
  ],
111
113
 
@@ -115,6 +117,7 @@ function PlasmicButton__RenderFunc(props) {
115
117
  $props,
116
118
  $ctx,
117
119
  $queries: {},
120
+ $q: {},
118
121
  $refs
119
122
  });
120
123
  const [isRootFocusVisibleWithin, triggerRootFocusVisibleWithinProps] =
@@ -124,6 +127,7 @@ function PlasmicButton__RenderFunc(props) {
124
127
  const triggers = {
125
128
  focusVisibleWithin_root: isRootFocusVisibleWithin
126
129
  };
130
+ const styleTokensClassNames = _useStyleTokens();
127
131
  return (
128
132
  <button
129
133
  data-plasmic-name={"root"}
@@ -136,7 +140,7 @@ function PlasmicButton__RenderFunc(props) {
136
140
  projectcss.root_reset,
137
141
  projectcss.plasmic_default_styles,
138
142
  projectcss.plasmic_mixins,
139
- projectcss.plasmic_tokens,
143
+ styleTokensClassNames,
140
144
  sty.root,
141
145
  {
142
146
  [sty.root___focusVisibleWithin]: triggers.focusVisibleWithin_root,
@@ -16,10 +16,35 @@ import {
16
16
  } from "@plasmicapp/react-web";
17
17
  import { useDataEnv } from "@plasmicapp/react-web/lib/host";
18
18
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
19
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
19
20
  import "@plasmicapp/react-web/lib/plasmic.css";
20
21
  import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
21
22
  import * as sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
22
23
 
24
+ const emptyProxy = new Proxy(() => "", {
25
+ get(_, prop) {
26
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
27
+ }
28
+ });
29
+
30
+ function wrapQueriesWithLoadingProxy($q) {
31
+ return new Proxy($q, {
32
+ get(target, queryName) {
33
+ const query = target[queryName];
34
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
35
+ }
36
+ });
37
+ }
38
+
39
+ export function generateDynamicMetadata($q, $ctx) {
40
+ return {
41
+ openGraph: {},
42
+ twitter: {
43
+ card: "summary"
44
+ }
45
+ };
46
+ }
47
+
23
48
  createPlasmicElementProxy;
24
49
 
25
50
  export const PlasmicDynamicPage__VariantProps = new Array();
@@ -51,6 +76,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
51
76
  const $ctx = useDataEnv?.() || {};
52
77
  const refsRef = React.useRef({});
53
78
  const $refs = refsRef.current;
79
+ const styleTokensClassNames = _useStyleTokens();
54
80
  return (
55
81
  <React.Fragment>
56
82
  <style>{`
@@ -70,7 +96,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
70
96
  projectcss.root_reset,
71
97
  projectcss.plasmic_default_styles,
72
98
  projectcss.plasmic_mixins,
73
- projectcss.plasmic_tokens,
99
+ styleTokensClassNames,
74
100
  sty.root
75
101
  )}
76
102
  >
@@ -165,13 +191,11 @@ export const PlasmicDynamicPage = Object.assign(
165
191
  // Metadata about props expected for PlasmicDynamicPage
166
192
  internalVariantProps: PlasmicDynamicPage__VariantProps,
167
193
  internalArgProps: PlasmicDynamicPage__ArgProps,
168
- // Page metadata
169
- pageMetadata: {
170
- title: "",
171
- description: "",
172
- ogImageSrc: "",
173
- canonical: ""
174
- }
194
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
195
+ pagePath: "/dynamic/[slug]",
196
+ searchParams: {},
197
+ params: {}
198
+ })
175
199
  }
176
200
  );
177
201
 
@@ -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;
@@ -13,16 +13,40 @@ import {
13
13
  classNames,
14
14
  createPlasmicElementProxy,
15
15
  deriveRenderOpts,
16
- ensureGlobalVariants,
17
16
  hasVariant
18
17
  } from "@plasmicapp/react-web";
19
18
  import { useDataEnv } from "@plasmicapp/react-web/lib/host";
20
19
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
21
- import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
20
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
21
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
22
22
  import "@plasmicapp/react-web/lib/plasmic.css";
23
23
  import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
24
24
  import * as sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/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 PlasmicHomepage__VariantProps = new Array();
@@ -54,9 +78,8 @@ function PlasmicHomepage__RenderFunc(props) {
54
78
  const $ctx = useDataEnv?.() || {};
55
79
  const refsRef = React.useRef({});
56
80
  const $refs = refsRef.current;
57
- const globalVariants = ensureGlobalVariants({
58
- screen: useScreenVariantsscBjPxgdxdzbv()
59
- });
81
+ const globalVariants = _useGlobalVariants();
82
+ const styleTokensClassNames = _useStyleTokens();
60
83
  return (
61
84
  <React.Fragment>
62
85
  <style>{`
@@ -76,7 +99,7 @@ function PlasmicHomepage__RenderFunc(props) {
76
99
  projectcss.root_reset,
77
100
  projectcss.plasmic_default_styles,
78
101
  projectcss.plasmic_mixins,
79
- projectcss.plasmic_tokens,
102
+ styleTokensClassNames,
80
103
  sty.root
81
104
  )}
82
105
  >
@@ -203,13 +226,11 @@ export const PlasmicHomepage = Object.assign(
203
226
  // Metadata about props expected for PlasmicHomepage
204
227
  internalVariantProps: PlasmicHomepage__VariantProps,
205
228
  internalArgProps: PlasmicHomepage__ArgProps,
206
- // Page metadata
207
- pageMetadata: {
208
- title: "",
209
- description: "",
210
- ogImageSrc: "",
211
- canonical: ""
212
- }
229
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
230
+ pagePath: "/",
231
+ searchParams: {},
232
+ params: {}
233
+ })
213
234
  }
214
235
  );
215
236
 
@@ -17,6 +17,7 @@ import {
17
17
  } from "@plasmicapp/react-web";
18
18
  import { useDataEnv } from "@plasmicapp/react-web/lib/host";
19
19
  import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
20
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
20
21
  import "@plasmicapp/react-web/lib/plasmic.css";
21
22
  import * as sty from "./PlasmicRandomDynamicPageButton.module.css"; // plasmic-import: Q23H1_1M_P/css
22
23
 
@@ -47,6 +48,7 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props) {
47
48
  const $ctx = useDataEnv?.() || {};
48
49
  const refsRef = React.useRef({});
49
50
  const $refs = refsRef.current;
51
+ const styleTokensClassNames = _useStyleTokens();
50
52
  return (
51
53
  <Button
52
54
  data-plasmic-name={"root"}
@@ -0,0 +1,15 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ // This code is auto-generated by Plasmic; please do not edit!
5
+ // Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
6
+ import { createUseStyleTokens } from "@plasmicapp/react-web";
7
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
8
+ import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
9
+
10
+ const data = {
11
+ base: `${projectcss.plasmic_tokens}`,
12
+ varianted: []
13
+ };
14
+
15
+ export const _useStyleTokens = createUseStyleTokens(data, _useGlobalVariants);
@@ -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}
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ // This code is auto-generated by Plasmic; please do not edit!
5
+ // Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
6
+ import { createUseGlobalVariants } from "@plasmicapp/react-web";
7
+ import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
8
+
9
+ export const _useGlobalVariants = createUseGlobalVariants({
10
+ screen: useScreenVariantsscBjPxgdxdzbv
11
+ });
@@ -15,10 +15,10 @@
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "@plasmicapp/cli": "^0.1.341",
19
- "@plasmicapp/react-web": "^0.2.397",
20
- "gatsby": "^5.14.1",
21
- "gatsby-plugin-react-helmet": "^6.14.0",
18
+ "@plasmicapp/cli": "^0.1.359",
19
+ "@plasmicapp/react-web": "^0.2.422",
20
+ "gatsby": "^5.14.6",
21
+ "gatsby-plugin-react-helmet": "^6.16.0",
22
22
  "react": "^18.2.0",
23
23
  "react-dom": "^18.2.0",
24
24
  "react-helmet": "^6.1.0"
@@ -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": "files",
@@ -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
  "gatsbyConfig": {
132
136
  "pagesDir": "../pages"
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
  }
@@ -63,6 +63,9 @@ import {
63
63
 
64
64
  import * as pp from "@plasmicapp/react-web";
65
65
 
66
+ import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
67
+ import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
68
+
66
69
  import "@plasmicapp/react-web/lib/plasmic.css";
67
70
 
68
71
  import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
@@ -209,37 +212,38 @@ function PlasmicButton__RenderFunc(props: {
209
212
  path: "showStartIcon",
210
213
  type: "private",
211
214
  variableType: "variant",
212
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
215
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) =>
216
+ $props.showStartIcon
213
217
  },
214
218
  {
215
219
  path: "showEndIcon",
216
220
  type: "private",
217
221
  variableType: "variant",
218
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
222
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.showEndIcon
219
223
  },
220
224
  {
221
225
  path: "isDisabled",
222
226
  type: "private",
223
227
  variableType: "variant",
224
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.isDisabled
228
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.isDisabled
225
229
  },
226
230
  {
227
231
  path: "shape",
228
232
  type: "private",
229
233
  variableType: "variant",
230
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.shape
234
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.shape
231
235
  },
232
236
  {
233
237
  path: "size",
234
238
  type: "private",
235
239
  variableType: "variant",
236
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.size
240
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.size
237
241
  },
238
242
  {
239
243
  path: "color",
240
244
  type: "private",
241
245
  variableType: "variant",
242
- initFunc: ({ $props, $state, $queries, $ctx }) => $props.color
246
+ initFunc: ({ $props, $state, $queries, $q, $ctx }) => $props.color
243
247
  }
244
248
  ],
245
249
  [$props, $ctx, $refs]
@@ -248,6 +252,7 @@ function PlasmicButton__RenderFunc(props: {
248
252
  $props,
249
253
  $ctx,
250
254
  $queries: {},
255
+ $q: {},
251
256
  $refs
252
257
  });
253
258
 
@@ -259,6 +264,8 @@ function PlasmicButton__RenderFunc(props: {
259
264
  focusVisibleWithin_root: isRootFocusVisibleWithin
260
265
  };
261
266
 
267
+ const styleTokensClassNames = _useStyleTokens();
268
+
262
269
  return (
263
270
  <button
264
271
  data-plasmic-name={"root"}
@@ -271,7 +278,7 @@ function PlasmicButton__RenderFunc(props: {
271
278
  projectcss.root_reset,
272
279
  projectcss.plasmic_default_styles,
273
280
  projectcss.plasmic_mixins,
274
- projectcss.plasmic_tokens,
281
+ styleTokensClassNames,
275
282
  sty.root,
276
283
  {
277
284
  [sty.root___focusVisibleWithin]: triggers.focusVisibleWithin_root,
@@ -693,7 +700,9 @@ type NodeComponentProps<T extends NodeNameType> =
693
700
  variants?: PlasmicButton__VariantsArgs;
694
701
  args?: PlasmicButton__ArgsType;
695
702
  overrides?: NodeOverridesType<T>;
696
- } & Omit<PlasmicButton__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
703
+ } &
704
+ // Specify variants directly as props
705
+ Omit<PlasmicButton__VariantsArgs, ReservedPropsType> &
697
706
  // Specify args directly as props
698
707
  Omit<PlasmicButton__ArgsType, ReservedPropsType> &
699
708
  // Specify overrides for each element directly as props
@@ -62,12 +62,38 @@ import {
62
62
  } from "@plasmicapp/react-web/lib/host";
63
63
 
64
64
  import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/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
 
68
70
  import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
69
71
  import * as sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
70
72
 
73
+ const emptyProxy: any = new Proxy(() => "", {
74
+ get(_, prop) {
75
+ return prop === Symbol.toPrimitive ? () => "" : emptyProxy;
76
+ }
77
+ });
78
+
79
+ function wrapQueriesWithLoadingProxy($q: any): any {
80
+ return new Proxy($q, {
81
+ get(target, queryName) {
82
+ const query = target[queryName];
83
+ return !query || query.isLoading || !query.data ? emptyProxy : query;
84
+ }
85
+ });
86
+ }
87
+
88
+ export function generateDynamicMetadata($q: any, $ctx: any) {
89
+ return {
90
+ openGraph: {},
91
+ twitter: {
92
+ card: "summary"
93
+ }
94
+ };
95
+ }
96
+
71
97
  createPlasmicElementProxy;
72
98
 
73
99
  export type PlasmicDynamicPage__VariantMembers = {};
@@ -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>{`
@@ -143,7 +171,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
143
171
  projectcss.root_reset,
144
172
  projectcss.plasmic_default_styles,
145
173
  projectcss.plasmic_mixins,
146
- projectcss.plasmic_tokens,
174
+ styleTokensClassNames,
147
175
  sty.root
148
176
  )}
149
177
  >
@@ -220,7 +248,9 @@ type NodeComponentProps<T extends NodeNameType> =
220
248
  variants?: PlasmicDynamicPage__VariantsArgs;
221
249
  args?: PlasmicDynamicPage__ArgsType;
222
250
  overrides?: NodeOverridesType<T>;
223
- } & Omit<PlasmicDynamicPage__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
251
+ } &
252
+ // Specify variants directly as props
253
+ Omit<PlasmicDynamicPage__VariantsArgs, ReservedPropsType> &
224
254
  // Specify args directly as props
225
255
  Omit<PlasmicDynamicPage__ArgsType, ReservedPropsType> &
226
256
  // Specify overrides for each element directly as props
@@ -277,13 +307,11 @@ export const PlasmicDynamicPage = Object.assign(
277
307
  internalVariantProps: PlasmicDynamicPage__VariantProps,
278
308
  internalArgProps: PlasmicDynamicPage__ArgProps,
279
309
 
280
- // Page metadata
281
- pageMetadata: {
282
- title: "",
283
- description: "",
284
- ogImageSrc: "",
285
- canonical: ""
286
- }
310
+ pageMetadata: generateDynamicMetadata(wrapQueriesWithLoadingProxy({}), {
311
+ pagePath: "/dynamic/[slug]",
312
+ searchParams: {},
313
+ params: {}
314
+ })
287
315
  }
288
316
  );
289
317
 
@@ -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;