create-plasmic-app 0.0.95 → 0.0.96
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.
package/dist/gatsby/template.js
CHANGED
|
@@ -206,11 +206,12 @@ exports.makeGatsbyPlasmicInit = makeGatsbyPlasmicInit;
|
|
|
206
206
|
function wrapAppRootForCodegen() {
|
|
207
207
|
return `import React from "react";
|
|
208
208
|
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
209
|
+
import { Link } from "gatsby";
|
|
209
210
|
import Helmet from "react-helmet";
|
|
210
211
|
|
|
211
212
|
export const wrapRootElement = ({ element }) => {
|
|
212
213
|
return (
|
|
213
|
-
<PlasmicRootProvider Head={Helmet}>
|
|
214
|
+
<PlasmicRootProvider Head={Helmet} Link={Link}>
|
|
214
215
|
{element}
|
|
215
216
|
</PlasmicRootProvider>
|
|
216
217
|
);
|
|
@@ -7,10 +7,11 @@ function makeCustomApp_pages_codegen(jsOrTs) {
|
|
|
7
7
|
import { PlasmicRootProvider } from "@plasmicapp/react-web";${(0, file_utils_1.ifTs)(jsOrTs, `
|
|
8
8
|
import type { AppProps } from "next/app";`)}
|
|
9
9
|
import Head from "next/head";
|
|
10
|
+
import Link from "next/link";
|
|
10
11
|
|
|
11
12
|
export default function MyApp({ Component, pageProps }${(0, file_utils_1.ifTs)(jsOrTs, `: AppProps`)}) {
|
|
12
13
|
return (
|
|
13
|
-
<PlasmicRootProvider Head={Head}>
|
|
14
|
+
<PlasmicRootProvider Head={Head} Link={Link}>
|
|
14
15
|
<Component {...pageProps} />
|
|
15
16
|
</PlasmicRootProvider>
|
|
16
17
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.96",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"validate-npm-package-name": "^3.0.0",
|
|
55
55
|
"yargs": "^16.2.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "72c4754ab2eb51cc331f1492b78adc383e942cae"
|
|
58
58
|
}
|
package/src/gatsby/template.ts
CHANGED
|
@@ -233,11 +233,12 @@ export function initPlasmicLoaderWithRegistrations(plasmicOptions${ifTs(
|
|
|
233
233
|
export function wrapAppRootForCodegen(): string {
|
|
234
234
|
return `import React from "react";
|
|
235
235
|
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
236
|
+
import { Link } from "gatsby";
|
|
236
237
|
import Helmet from "react-helmet";
|
|
237
238
|
|
|
238
239
|
export const wrapRootElement = ({ element }) => {
|
|
239
240
|
return (
|
|
240
|
-
<PlasmicRootProvider Head={Helmet}>
|
|
241
|
+
<PlasmicRootProvider Head={Helmet} Link={Link}>
|
|
241
242
|
{element}
|
|
242
243
|
</PlasmicRootProvider>
|
|
243
244
|
);
|
|
@@ -9,13 +9,14 @@ import { PlasmicRootProvider } from "@plasmicapp/react-web";${ifTs(
|
|
|
9
9
|
import type { AppProps } from "next/app";`
|
|
10
10
|
)}
|
|
11
11
|
import Head from "next/head";
|
|
12
|
+
import Link from "next/link";
|
|
12
13
|
|
|
13
14
|
export default function MyApp({ Component, pageProps }${ifTs(
|
|
14
15
|
jsOrTs,
|
|
15
16
|
`: AppProps`
|
|
16
17
|
)}) {
|
|
17
18
|
return (
|
|
18
|
-
<PlasmicRootProvider Head={Head}>
|
|
19
|
+
<PlasmicRootProvider Head={Head} Link={Link}>
|
|
19
20
|
<Component {...pageProps} />
|
|
20
21
|
</PlasmicRootProvider>
|
|
21
22
|
);
|