create-plasmic-app 0.0.65 → 0.0.66

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 (31) hide show
  1. package/cpa-out/gatsby-codegen-js/package.json +4 -5
  2. package/cpa-out/gatsby-codegen-js/plasmic.json +2 -2
  3. package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +3 -1
  4. package/cpa-out/gatsby-codegen-js/src/pages/index.jsx +1 -1
  5. package/cpa-out/gatsby-codegen-ts/package.json +8 -9
  6. package/cpa-out/gatsby-codegen-ts/plasmic.json +2 -2
  7. package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +8 -3
  8. package/cpa-out/gatsby-codegen-ts/src/pages/index.tsx +1 -1
  9. package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +1 -1
  10. package/cpa-out/nextjs-pages-codegen-js/package.json +5 -6
  11. package/cpa-out/nextjs-pages-codegen-js/pages/index.jsx +1 -1
  12. package/cpa-out/nextjs-pages-codegen-js/pages/plasmic-host.jsx +1 -1
  13. package/cpa-out/nextjs-pages-codegen-js/plasmic.json +2 -2
  14. package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +1 -1
  15. package/cpa-out/nextjs-pages-codegen-ts/package.json +6 -7
  16. package/cpa-out/nextjs-pages-codegen-ts/pages/index.tsx +1 -1
  17. package/cpa-out/nextjs-pages-codegen-ts/pages/plasmic-host.tsx +1 -1
  18. package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +2 -2
  19. package/cpa-out/react-codegen-js/package.json +2 -3
  20. package/cpa-out/react-codegen-js/plasmic.json +2 -2
  21. package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +3 -1
  22. package/cpa-out/react-codegen-ts/package.json +2 -3
  23. package/cpa-out/react-codegen-ts/plasmic.json +2 -2
  24. package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +3 -2
  25. package/dist/gatsby/template.js +1 -1
  26. package/dist/nextjs/templates/pages-codegen/plasmic-host.js +1 -1
  27. package/dist/utils/codegen.js +1 -2
  28. package/package.json +2 -2
  29. package/src/gatsby/template.ts +1 -1
  30. package/src/nextjs/templates/pages-codegen/plasmic-host.ts +1 -1
  31. package/src/utils/codegen.ts +1 -4
@@ -14,11 +14,10 @@
14
14
  "clean": "gatsby clean"
15
15
  },
16
16
  "dependencies": {
17
- "@plasmicapp/cli": "^0.1.205",
18
- "@plasmicapp/host": "^1.0.100",
19
- "@plasmicapp/react-web": "^0.2.150",
20
- "gatsby": "^5.5.0",
21
- "gatsby-plugin-react-helmet": "^6.5.0",
17
+ "@plasmicapp/cli": "^0.1.222",
18
+ "@plasmicapp/react-web": "^0.2.167",
19
+ "gatsby": "^5.7.0",
20
+ "gatsby-plugin-react-helmet": "^6.7.0",
22
21
  "react": "^18.2.0",
23
22
  "react-dom": "^18.2.0",
24
23
  "react-helmet": "^6.1.0"
@@ -74,6 +74,6 @@
74
74
  "gatsbyConfig": {
75
75
  "pagesDir": "../pages"
76
76
  },
77
- "cliVersion": "0.1.205",
78
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.205/dist/plasmic.schema.json"
77
+ "cliVersion": "0.1.222",
78
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.222/dist/plasmic.schema.json"
79
79
  }
@@ -10,7 +10,7 @@
10
10
  // Component: 6uuAAE1jiCew
11
11
  import * as React from "react";
12
12
  import * as p from "@plasmicapp/react-web";
13
- import * as ph from "@plasmicapp/host";
13
+ import * as ph from "@plasmicapp/react-web/lib/host";
14
14
  import {
15
15
  hasVariant,
16
16
  classNames,
@@ -48,6 +48,8 @@ function PlasmicHomepage__RenderFunc(props) {
48
48
  ...args,
49
49
  ...variants
50
50
  };
51
+ const refsRef = React.useRef({});
52
+ const $refs = refsRef.current;
51
53
  const currentUser = p.useCurrentUser?.() || {};
52
54
  const [$queries, setDollarQueries] = React.useState({});
53
55
  const globalVariants = ensureGlobalVariants({
@@ -1,7 +1,7 @@
1
1
  // This is a skeleton starter React page generated by Plasmic.
2
2
  // This file is owned by you, feel free to edit as you see fit.
3
3
  import * as React from "react";
4
- import * as ph from "@plasmicapp/host";
4
+ import * as ph from "@plasmicapp/react-web/lib/host";
5
5
  import {
6
6
  PlasmicHomepage,
7
7
  Head
@@ -15,20 +15,19 @@
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
18
- "@plasmicapp/cli": "^0.1.205",
19
- "@plasmicapp/host": "^1.0.100",
20
- "@plasmicapp/react-web": "^0.2.150",
21
- "gatsby": "^5.5.0",
22
- "gatsby-plugin-react-helmet": "^6.5.0",
18
+ "@plasmicapp/cli": "^0.1.222",
19
+ "@plasmicapp/react-web": "^0.2.167",
20
+ "gatsby": "^5.7.0",
21
+ "gatsby-plugin-react-helmet": "^6.7.0",
23
22
  "react": "^18.2.0",
24
23
  "react-dom": "^18.2.0",
25
24
  "react-helmet": "^6.1.0"
26
25
  },
27
26
  "devDependencies": {
28
- "@types/node": "^18.11.18",
29
- "@types/react": "^18.0.27",
30
- "@types/react-dom": "^18.0.10",
27
+ "@types/node": "^18.15.0",
28
+ "@types/react": "^18.0.28",
29
+ "@types/react-dom": "^18.0.11",
31
30
  "@types/react-helmet": "^6.1.6",
32
- "typescript": "^4.9.4"
31
+ "typescript": "^4.9.5"
33
32
  }
34
33
  }
@@ -74,6 +74,6 @@
74
74
  "gatsbyConfig": {
75
75
  "pagesDir": "../pages"
76
76
  },
77
- "cliVersion": "0.1.205",
78
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.205/dist/plasmic.schema.json"
77
+ "cliVersion": "0.1.222",
78
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.222/dist/plasmic.schema.json"
79
79
  }
@@ -12,10 +12,14 @@
12
12
  // Component: 6uuAAE1jiCew
13
13
  import * as React from "react";
14
14
 
15
- import { Link, GatsbyLinkProps as LinkProps } from "gatsby";
15
+ import {
16
+ Link,
17
+ GatsbyLinkProps as LinkProps,
18
+ navigate as __gatsbyNavigate
19
+ } from "gatsby";
16
20
 
17
21
  import * as p from "@plasmicapp/react-web";
18
- import * as ph from "@plasmicapp/host";
22
+ import * as ph from "@plasmicapp/react-web/lib/host";
19
23
 
20
24
  import {
21
25
  hasVariant,
@@ -89,9 +93,10 @@ function PlasmicHomepage__RenderFunc(props: {
89
93
  ...args,
90
94
  ...variants
91
95
  };
96
+ const refsRef = React.useRef({});
97
+ const $refs = refsRef.current;
92
98
 
93
99
  const currentUser = p.useCurrentUser?.() || {};
94
-
95
100
  const [$queries, setDollarQueries] = React.useState({});
96
101
 
97
102
  const globalVariants = ensureGlobalVariants({
@@ -1,7 +1,7 @@
1
1
  // This is a skeleton starter React page generated by Plasmic.
2
2
  // This file is owned by you, feel free to edit as you see fit.
3
3
  import * as React from "react";
4
- import * as ph from "@plasmicapp/host";
4
+ import * as ph from "@plasmicapp/react-web/lib/host";
5
5
 
6
6
  import { ScreenVariantProvider } from "../components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen";
7
7
  import {
@@ -12,7 +12,7 @@ import * as React from "react";
12
12
  import Head from "next/head";
13
13
  import { useRouter } from "next/router";
14
14
  import * as p from "@plasmicapp/react-web";
15
- import * as ph from "@plasmicapp/host";
15
+ import * as ph from "@plasmicapp/react-web/lib/host";
16
16
  import {
17
17
  hasVariant,
18
18
  classNames,
@@ -9,12 +9,11 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.216",
13
- "@plasmicapp/host": "^1.0.107",
14
- "@plasmicapp/react-web": "^0.2.161",
15
- "eslint": "8.35.0",
16
- "eslint-config-next": "13.2.3",
17
- "next": "13.2.3",
12
+ "@plasmicapp/cli": "^0.1.222",
13
+ "@plasmicapp/react-web": "^0.2.167",
14
+ "eslint": "8.36.0",
15
+ "eslint-config-next": "13.2.4",
16
+ "next": "13.2.4",
18
17
  "react": "18.2.0",
19
18
  "react-dom": "18.2.0"
20
19
  }
@@ -1,7 +1,7 @@
1
1
  // This is a skeleton starter React page generated by Plasmic.
2
2
  // This file is owned by you, feel free to edit as you see fit.
3
3
  import * as React from "react";
4
- import * as ph from "@plasmicapp/host";
4
+ import * as ph 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
7
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { PlasmicCanvasHost, registerComponent } from '@plasmicapp/host';
2
+ import { PlasmicCanvasHost, registerComponent } from '@plasmicapp/react-web/lib/host';
3
3
 
4
4
  // You can register any code components that you want to use here; see
5
5
  // https://docs.plasmic.app/learn/code-components-ref/
@@ -74,6 +74,6 @@
74
74
  "nextjsConfig": {
75
75
  "pagesDir": "../pages"
76
76
  },
77
- "cliVersion": "0.1.216",
78
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.216/dist/plasmic.schema.json"
77
+ "cliVersion": "0.1.222",
78
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.222/dist/plasmic.schema.json"
79
79
  }
@@ -17,7 +17,7 @@ import Link, { LinkProps } from "next/link";
17
17
  import { useRouter } from "next/router";
18
18
 
19
19
  import * as p from "@plasmicapp/react-web";
20
- import * as ph from "@plasmicapp/host";
20
+ import * as ph from "@plasmicapp/react-web/lib/host";
21
21
 
22
22
  import {
23
23
  hasVariant,
@@ -9,15 +9,14 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@plasmicapp/cli": "^0.1.216",
13
- "@plasmicapp/host": "^1.0.107",
14
- "@plasmicapp/react-web": "^0.2.161",
15
- "@types/node": "18.14.2",
12
+ "@plasmicapp/cli": "^0.1.222",
13
+ "@plasmicapp/react-web": "^0.2.167",
14
+ "@types/node": "18.15.2",
16
15
  "@types/react": "18.0.28",
17
16
  "@types/react-dom": "18.0.11",
18
- "eslint": "8.35.0",
19
- "eslint-config-next": "13.2.3",
20
- "next": "13.2.3",
17
+ "eslint": "8.36.0",
18
+ "eslint-config-next": "13.2.4",
19
+ "next": "13.2.4",
21
20
  "react": "18.2.0",
22
21
  "react-dom": "18.2.0",
23
22
  "typescript": "4.9.5"
@@ -1,7 +1,7 @@
1
1
  // This is a skeleton starter React page generated by Plasmic.
2
2
  // This file is owned by you, feel free to edit as you see fit.
3
3
  import * as React from "react";
4
- import * as ph from "@plasmicapp/host";
4
+ import * as ph from "@plasmicapp/react-web/lib/host";
5
5
 
6
6
  import { ScreenVariantProvider } from "../components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen";
7
7
  import { PlasmicHomepage } from "../components/plasmic/create_plasmic_app/PlasmicHomepage";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { PlasmicCanvasHost, registerComponent } from '@plasmicapp/host';
2
+ import { PlasmicCanvasHost, registerComponent } from '@plasmicapp/react-web/lib/host';
3
3
 
4
4
  // You can register any code components that you want to use here; see
5
5
  // https://docs.plasmic.app/learn/code-components-ref/
@@ -74,6 +74,6 @@
74
74
  "nextjsConfig": {
75
75
  "pagesDir": "../pages"
76
76
  },
77
- "cliVersion": "0.1.216",
78
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.216/dist/plasmic.schema.json"
77
+ "cliVersion": "0.1.222",
78
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.222/dist/plasmic.schema.json"
79
79
  }
@@ -3,9 +3,8 @@
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@plasmicapp/cli": "^0.1.205",
7
- "@plasmicapp/host": "^1.0.100",
8
- "@plasmicapp/react-web": "^0.2.150",
6
+ "@plasmicapp/cli": "^0.1.222",
7
+ "@plasmicapp/react-web": "^0.2.167",
9
8
  "@testing-library/jest-dom": "^5.14.1",
10
9
  "@testing-library/react": "^13.0.0",
11
10
  "@testing-library/user-event": "^13.2.1",
@@ -71,6 +71,6 @@
71
71
  ]
72
72
  },
73
73
  "wrapPagesWithGlobalContexts": true,
74
- "cliVersion": "0.1.205",
75
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.205/dist/plasmic.schema.json"
74
+ "cliVersion": "0.1.222",
75
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.222/dist/plasmic.schema.json"
76
76
  }
@@ -10,7 +10,7 @@
10
10
  // Component: 6uuAAE1jiCew
11
11
  import * as React from "react";
12
12
  import * as p from "@plasmicapp/react-web";
13
- import * as ph from "@plasmicapp/host";
13
+ import * as ph from "@plasmicapp/react-web/lib/host";
14
14
  import {
15
15
  hasVariant,
16
16
  classNames,
@@ -44,6 +44,8 @@ function PlasmicHomepage__RenderFunc(props) {
44
44
  ...args,
45
45
  ...variants
46
46
  };
47
+ const refsRef = React.useRef({});
48
+ const $refs = refsRef.current;
47
49
  const currentUser = p.useCurrentUser?.() || {};
48
50
  const [$queries, setDollarQueries] = React.useState({});
49
51
  const globalVariants = ensureGlobalVariants({
@@ -3,9 +3,8 @@
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@plasmicapp/cli": "^0.1.205",
7
- "@plasmicapp/host": "^1.0.100",
8
- "@plasmicapp/react-web": "^0.2.150",
6
+ "@plasmicapp/cli": "^0.1.222",
7
+ "@plasmicapp/react-web": "^0.2.167",
9
8
  "@testing-library/jest-dom": "^5.14.1",
10
9
  "@testing-library/react": "^13.0.0",
11
10
  "@testing-library/user-event": "^13.2.1",
@@ -71,6 +71,6 @@
71
71
  ]
72
72
  },
73
73
  "wrapPagesWithGlobalContexts": true,
74
- "cliVersion": "0.1.205",
75
- "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.205/dist/plasmic.schema.json"
74
+ "cliVersion": "0.1.222",
75
+ "$schema": "https://unpkg.com/@plasmicapp/cli@0.1.222/dist/plasmic.schema.json"
76
76
  }
@@ -13,7 +13,7 @@
13
13
  import * as React from "react";
14
14
 
15
15
  import * as p from "@plasmicapp/react-web";
16
- import * as ph from "@plasmicapp/host";
16
+ import * as ph from "@plasmicapp/react-web/lib/host";
17
17
 
18
18
  import {
19
19
  hasVariant,
@@ -83,9 +83,10 @@ function PlasmicHomepage__RenderFunc(props: {
83
83
  ...args,
84
84
  ...variants
85
85
  };
86
+ const refsRef = React.useRef({});
87
+ const $refs = refsRef.current;
86
88
 
87
89
  const currentUser = p.useCurrentUser?.() || {};
88
-
89
90
  const [$queries, setDollarQueries] = React.useState({});
90
91
 
91
92
  const globalVariants = ensureGlobalVariants({
@@ -114,7 +114,7 @@ export default function Host({ data }${(0, file_utils_1.ifTs)(jsOrTs, ": HostPro
114
114
  }
115
115
  else {
116
116
  return `import * as React from "react"
117
- import { PlasmicCanvasHost, registerComponent } from "@plasmicapp/host";
117
+ import { PlasmicCanvasHost, registerComponent } from "@plasmicapp/react-web/lib/host";
118
118
 
119
119
  // You can register any code components that you want to use here; see
120
120
  // https://docs.plasmic.app/learn/code-components-ref/
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makePlasmicHostPage_pages_codegen = void 0;
4
4
  function makePlasmicHostPage_pages_codegen() {
5
5
  return `import * as React from 'react';
6
- import { PlasmicCanvasHost, registerComponent } from '@plasmicapp/host';
6
+ import { PlasmicCanvasHost, registerComponent } from '@plasmicapp/react-web/lib/host';
7
7
 
8
8
  // You can register any code components that you want to use here; see
9
9
  // https://docs.plasmic.app/learn/code-components-ref/
@@ -16,8 +16,7 @@ const npm_utils_1 = require("../utils/npm-utils");
16
16
  function installCodegenDeps(opts) {
17
17
  return __awaiter(this, void 0, void 0, function* () {
18
18
  const { projectPath } = opts;
19
- return ((yield (0, npm_utils_1.installUpgrade)("@plasmicapp/cli", { workingDir: projectPath })) &&
20
- (yield (0, npm_utils_1.installUpgrade)("@plasmicapp/host", { workingDir: projectPath })));
19
+ return yield (0, npm_utils_1.installUpgrade)("@plasmicapp/cli", { workingDir: projectPath });
21
20
  });
22
21
  }
23
22
  exports.installCodegenDeps = installCodegenDeps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-plasmic-app",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "Create Plasmic-powered React apps",
5
5
  "main": "./dist/lib.js",
6
6
  "types": "./dist/lib.d.ts",
@@ -55,5 +55,5 @@
55
55
  "validate-npm-package-name": "^3.0.0",
56
56
  "yargs": "^16.2.0"
57
57
  },
58
- "gitHead": "460d0632e4a2432cdda51630a424335adebd7742"
58
+ "gitHead": "67e119ae46c42a2b4440cd98b4d168d0b69ca229"
59
59
  }
@@ -134,7 +134,7 @@ export default function Host({ data }${ifTs(jsOrTs, ": HostProps")}) {
134
134
  `;
135
135
  } else {
136
136
  return `import * as React from "react"
137
- import { PlasmicCanvasHost, registerComponent } from "@plasmicapp/host";
137
+ import { PlasmicCanvasHost, registerComponent } from "@plasmicapp/react-web/lib/host";
138
138
 
139
139
  // You can register any code components that you want to use here; see
140
140
  // https://docs.plasmic.app/learn/code-components-ref/
@@ -1,6 +1,6 @@
1
1
  export function makePlasmicHostPage_pages_codegen(): string {
2
2
  return `import * as React from 'react';
3
- import { PlasmicCanvasHost, registerComponent } from '@plasmicapp/host';
3
+ import { PlasmicCanvasHost, registerComponent } from '@plasmicapp/react-web/lib/host';
4
4
 
5
5
  // You can register any code components that you want to use here; see
6
6
  // https://docs.plasmic.app/learn/code-components-ref/
@@ -4,10 +4,7 @@ import { installUpgrade } from "../utils/npm-utils";
4
4
 
5
5
  export async function installCodegenDeps(opts: { projectPath: string }) {
6
6
  const { projectPath } = opts;
7
- return (
8
- (await installUpgrade("@plasmicapp/cli", { workingDir: projectPath })) &&
9
- (await installUpgrade("@plasmicapp/host", { workingDir: projectPath }))
10
- );
7
+ return await installUpgrade("@plasmicapp/cli", { workingDir: projectPath });
11
8
  }
12
9
 
13
10
  export async function runCodegenSync(opts: {