@prezly/theme-kit-nextjs 6.4.2 → 6.4.4

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.
@@ -1,4 +1,4 @@
1
1
  import type { Story } from '@prezly/sdk';
2
2
  import type { GetServerSidePropsContext, GetServerSidePropsResult } from 'next';
3
3
  import type { PropsFunction } from './lib/types';
4
- export declare function getStoryPreviewPageServerSideProps<CustomProps extends Record<string, any>>(customProps: CustomProps | PropsFunction<CustomProps>): (context: GetServerSidePropsContext, formats?: Story.FormatVersion[]) => Promise<GetServerSidePropsResult<CustomProps>>;
4
+ export declare function getStoryPreviewPageServerSideProps<CustomProps extends Record<string, any>>(customProps: CustomProps | PropsFunction<CustomProps>, formats?: Story.FormatVersion[]): (context: GetServerSidePropsContext) => Promise<GetServerSidePropsResult<CustomProps>>;
@@ -4,8 +4,8 @@ exports.getStoryPreviewPageServerSideProps = void 0;
4
4
  const data_fetching_1 = require("../../data-fetching");
5
5
  const getNewsroomServerSideProps_1 = require("../getNewsroomServerSideProps");
6
6
  const processRequest_1 = require("../processRequest");
7
- function getStoryPreviewPageServerSideProps(customProps) {
8
- return async function getServerSideProps(context, formats) {
7
+ function getStoryPreviewPageServerSideProps(customProps, formats) {
8
+ return async function getServerSideProps(context) {
9
9
  const api = (0, data_fetching_1.getNextPrezlyApi)(context.req);
10
10
  const { uuid } = context.params;
11
11
  const story = await api.getStory(uuid, formats);
@@ -1 +1 @@
1
- {"version":3,"file":"storyPreview.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/storyPreview.ts"],"names":[],"mappings":";;;AAGA,uDAAuD;AACvD,8EAA2E;AAC3E,sDAAmD;AAInD,SAAgB,kCAAkC,CAC9C,WAAqD;IAErD,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC,EAClC,OAA+B;QAE/B,MAAM,GAAG,GAAG,IAAA,gCAAgB,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM,EA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DAA0B,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAEjF,eAAe,CAAC,oBAAoB,CAAC,YAAY,GAAG,KAAK,CAAC;QAE1D,OAAO,IAAA,+BAAc,EAAC,OAAO,EAAE;YAC3B,GAAG,eAAe;YAClB,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAA0C,CAAC,OAAO,EAAE,eAAe,CAAC;gBAC7E,CAAC,CAAC,WAAW,CAAC;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AAzBD,gFAyBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/theme-kit-nextjs",
3
- "version": "6.4.2",
3
+ "version": "6.4.4",
4
4
  "description": "Data layer and utility library for developing Prezly themes with NextJS",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -71,15 +71,15 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@prezly/theme-kit-core": "^6.4.2",
74
+ "@prezly/theme-kit-core": "^6.4.4",
75
75
  "next-seo": "^5.4.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@sentry/nextjs": "7.61.1"
78
+ "@sentry/nextjs": "7.63.0"
79
79
  },
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
83
  "sideEffects": false,
84
- "gitHead": "f89456096a4d9b976391d5b48bb0b920dde6a82a"
84
+ "gitHead": "94acf185f557aca8b70597e9d7128129ecd6df65"
85
85
  }