@graphcommerce/framer-next-pages 9.0.3 → 9.0.4-canary.1
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/CHANGELOG.md +2 -10
- package/components/Pages.tsx +1 -1
- package/package.json +5 -5
- package/types.ts +4 -1
package/CHANGELOG.md
CHANGED
package/components/Pages.tsx
CHANGED
|
@@ -104,7 +104,7 @@ export function FramerNextPages(props: PagesProps) {
|
|
|
104
104
|
|
|
105
105
|
let renderItems = [...items.current]
|
|
106
106
|
|
|
107
|
-
/**
|
|
107
|
+
/** Removes the page if the up path equls the path of a overlay and there is no history present * */
|
|
108
108
|
const upPath = (renderItems.at(0)?.pageProps?.up as { href: string; title: string })?.href
|
|
109
109
|
const overlayPath = renderItems.at(-1)?.routerContext.pageInfo.asPath
|
|
110
110
|
if (
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/framer-next-pages",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.
|
|
5
|
+
"version": "9.0.4-canary.1",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.
|
|
16
|
-
"@graphcommerce/framer-utils": "^9.0.
|
|
17
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.
|
|
18
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.1",
|
|
16
|
+
"@graphcommerce/framer-utils": "^9.0.4-canary.1",
|
|
17
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.1",
|
|
18
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.1",
|
|
19
19
|
"framer-motion": "^11.0.0",
|
|
20
20
|
"next": "*",
|
|
21
21
|
"react": "^18.2.0",
|
package/types.ts
CHANGED
|
@@ -131,7 +131,10 @@ export type PageComponent<T = Record<string, unknown>> = NextComponentType<NextP
|
|
|
131
131
|
pageOptions?: PageOptions<Record<string, unknown>>
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
/**
|
|
134
|
+
/**
|
|
135
|
+
* Provide the href and title of the page that is above the current page. To navigate 'up' instead
|
|
136
|
+
* of 'back'
|
|
137
|
+
*/
|
|
135
138
|
export type UpPage = { href: string; title: string }
|
|
136
139
|
|
|
137
140
|
/**
|