@plasmicapp/loader-react
Advanced tools
Comparing version 1.0.308 to 1.0.309
@@ -406,2 +406,3 @@ "use client"; | ||
Link, | ||
pageRoute, | ||
pageParams, | ||
@@ -493,3 +494,11 @@ pageQuery, | ||
} | ||
), /* @__PURE__ */ React2.createElement(import_host.PageParamsProvider, { params: pageParams, query: pageQuery }, children)) | ||
), /* @__PURE__ */ React2.createElement( | ||
import_host.PageParamsProvider, | ||
{ | ||
route: pageRoute, | ||
params: pageParams, | ||
query: pageQuery | ||
}, | ||
children | ||
)) | ||
); | ||
@@ -496,0 +505,0 @@ } |
@@ -360,2 +360,3 @@ "use client"; | ||
Link, | ||
pageRoute, | ||
pageParams, | ||
@@ -447,3 +448,11 @@ pageQuery, | ||
} | ||
), /* @__PURE__ */ React2.createElement(PageParamsProvider, { params: pageParams, query: pageQuery }, children)) | ||
), /* @__PURE__ */ React2.createElement( | ||
PageParamsProvider, | ||
{ | ||
route: pageRoute, | ||
params: pageParams, | ||
query: pageQuery | ||
}, | ||
children | ||
)) | ||
); | ||
@@ -450,0 +459,0 @@ } |
@@ -406,2 +406,3 @@ "use client"; | ||
Link, | ||
pageRoute, | ||
pageParams, | ||
@@ -493,3 +494,11 @@ pageQuery, | ||
} | ||
), /* @__PURE__ */ React2.createElement(import_host.PageParamsProvider, { params: pageParams, query: pageQuery }, children)) | ||
), /* @__PURE__ */ React2.createElement( | ||
import_host.PageParamsProvider, | ||
{ | ||
route: pageRoute, | ||
params: pageParams, | ||
query: pageQuery | ||
}, | ||
children | ||
)) | ||
); | ||
@@ -496,0 +505,0 @@ } |
@@ -89,2 +89,6 @@ import { PlasmicDataSourceContextValue } from "@plasmicapp/data-sources-context"; | ||
/** | ||
* Page route without params substitution (e.g. /products/[slug]). | ||
*/ | ||
pageRoute?: string; | ||
/** | ||
* Page path parameters (e.g. {slug: "foo"} if page path is | ||
@@ -91,0 +95,0 @@ * /products/[slug] and URI is /products/foo). |
{ | ||
"name": "@plasmicapp/loader-react", | ||
"version": "1.0.308", | ||
"version": "1.0.309", | ||
"types": "./dist/index.d.ts", | ||
@@ -87,3 +87,3 @@ "main": "./dist/index.js", | ||
"license": "MIT", | ||
"gitHead": "b7c15971507dbbf0b610f86e595cfc199d0985bd" | ||
"gitHead": "8e8d0cd80c2346b371774aed51c0de68cb412202" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
452122
5643