vike-react 0.5.5 → 0.5.6

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/+config.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- export { config };
2
1
  import { ssrEffect } from './integration/ssrEffect.js';
3
- declare const config: {
2
+ declare const _default: {
4
3
  name: string;
5
4
  require: {
6
5
  vike: string;
@@ -141,5 +140,6 @@ declare const config: {
141
140
  };
142
141
  };
143
142
  };
143
+ export default _default;
144
144
  import './types/Config.js';
145
145
  import './types/PageContext.js';
package/dist/+config.js CHANGED
@@ -1,7 +1,6 @@
1
- export { config };
2
1
  import { ssrEffect } from './integration/ssrEffect.js';
3
2
  import { isNotFalse } from './utils/isNotFalse.js';
4
- const config = {
3
+ export default {
5
4
  name: 'vike-react',
6
5
  require: {
7
6
  vike: '>=0.4.182',
@@ -1,6 +1,6 @@
1
1
  export { useData };
2
2
  import { usePageContext } from './usePageContext.js';
3
3
  function useData() {
4
- const { data } = usePageContext();
4
+ const data = usePageContext()?.data;
5
5
  return data;
6
6
  }
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { config as default } from './+config.js';
1
+ export { default } from './+config.js';
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // TODO/next-major-release: remove this file/export
2
2
  console.warn("[vike-react][warning][deprecation] Replace `import vikeReact from 'vike-react'` with `import vikeReact from 'vike-react/config'` (typically in your /pages/+config.js)");
3
- export { config as default } from './+config.js';
3
+ export { default } from './+config.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-react",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "repository": "https://github.com/vikejs/vike-react",
5
5
  "type": "module",
6
6
  "exports": {