@graphcommerce/framer-next-pages 9.0.0-canary.114 → 9.0.0-canary.116

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.116
4
+
5
+ ## 9.0.0-canary.115
6
+
3
7
  ## 9.0.0-canary.114
4
8
 
5
9
  ## 9.0.0-canary.113
package/index.ts CHANGED
@@ -5,7 +5,6 @@ export type { PageOptions, PageComponent } from './types'
5
5
 
6
6
  export * from './hooks/useGo'
7
7
  export * from './hooks/usePageContext'
8
- export * from './hooks/usePageRouter'
9
8
  export * from './hooks/useHistoryLink'
10
9
  export * from './hooks/usePrevUp'
11
10
  export * from './hooks/useScrollOffsetY'
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.0-canary.114",
5
+ "version": "9.0.0-canary.116",
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.0-canary.114",
16
- "@graphcommerce/framer-utils": "^9.0.0-canary.114",
17
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.114",
18
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.114",
15
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.116",
16
+ "@graphcommerce/framer-utils": "^9.0.0-canary.116",
17
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.116",
18
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.116",
19
19
  "framer-motion": "^11.0.0",
20
20
  "next": "*",
21
21
  "react": "^18.2.0",
@@ -1,9 +0,0 @@
1
- import { useRouter } from 'next/router'
2
-
3
- /**
4
- * @deprecated Use next/router useRouter instead
5
- */
6
- export const usePageRouter = () => {
7
- console.warn('usePageRouter does nothing, use next/router useRouter instead')
8
- return useRouter()
9
- }
@@ -1,15 +0,0 @@
1
- import type { NextRouter } from 'next/router'
2
-
3
- export type OverrideProps = Partial<Pick<NextRouter, 'asPath' | 'pathname' | 'query' | 'locale'>>
4
-
5
- export function createRouterProxy(router: NextRouter, override?: OverrideProps): NextRouter {
6
- // We create an object with the current stale properties
7
- const { asPath, pathname, query, locale } = router
8
-
9
- const overrideProps: OverrideProps = { asPath, pathname, query, locale, ...override }
10
-
11
- return new Proxy<NextRouter>(router, {
12
- get: (target, prop: string, receiver) =>
13
- overrideProps[prop] ?? Reflect.get(target, prop, receiver),
14
- })
15
- }