@prezly/theme-kit-nextjs 6.6.0 → 6.6.1-alpha.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.
@@ -2,15 +2,15 @@ import type { Story } from '@prezly/sdk';
2
2
  import type { GetServerSidePropsContext, GetServerSidePropsResult, GetStaticPathsResult, GetStaticPropsContext, GetStaticPropsResult } from 'next';
3
3
  import type { PaginationProps } from '../../infinite-loading/types';
4
4
  import type { PropsFunction } from './lib/types';
5
- export interface CategoryPageProps<StoryType extends Story = Story> {
6
- stories: StoryType[];
5
+ export interface CategoryPageProps<Include extends keyof Story.ExtraFields = never> {
6
+ stories: (Story & Pick<Story.ExtraFields, Include>)[];
7
7
  pagination: PaginationProps;
8
8
  }
9
- interface Options {
10
- extraStoryFields?: (keyof Story.ExtraFields)[];
9
+ interface Options<Include extends keyof Story.ExtraFields> {
10
+ extraStoryFields?: Include[];
11
11
  pageSize?: number;
12
12
  }
13
- export declare function getCategoryPageServerSideProps<CustomProps extends Record<string, any>, StoryType extends Story = Story>(customProps: CustomProps | PropsFunction<CustomProps>, options?: Options): (context: GetServerSidePropsContext) => Promise<GetServerSidePropsResult<CategoryPageProps<StoryType> & CustomProps>>;
14
- export declare function getCategoryPageStaticProps<CustomProps extends Record<string, any>, StoryType extends Story = Story>(customProps: CustomProps | PropsFunction<CustomProps, GetStaticPropsContext>, options?: Options): (context: GetStaticPropsContext) => Promise<GetStaticPropsResult<CategoryPageProps<StoryType> & CustomProps>>;
13
+ export declare function getCategoryPageServerSideProps<CustomProps extends Record<string, any>, Include extends keyof Story.ExtraFields = never>(customProps: CustomProps | PropsFunction<CustomProps>, options?: Options<Include>): (context: GetServerSidePropsContext) => Promise<GetServerSidePropsResult<CategoryPageProps<Include> & CustomProps>>;
14
+ export declare function getCategoryPageStaticProps<CustomProps extends Record<string, any>, Include extends keyof Story.ExtraFields = never>(customProps: CustomProps | PropsFunction<CustomProps, GetStaticPropsContext>, options?: Options<Include>): (context: GetStaticPropsContext) => Promise<GetStaticPropsResult<CategoryPageProps<Include> & CustomProps>>;
15
15
  export declare function getCategoryPageStaticPaths(): Promise<GetStaticPathsResult>;
16
16
  export {};
@@ -7,8 +7,8 @@ const getNewsroomServerSideProps_1 = require("../getNewsroomServerSideProps");
7
7
  const getNewsroomStaticProps_1 = require("../getNewsroomStaticProps");
8
8
  const processRequest_1 = require("../processRequest");
9
9
  const processStaticRequest_1 = require("../processStaticRequest");
10
- function getCategoryPageServerSideProps(customProps, options) {
11
- const { pageSize = theme_kit_core_1.DEFAULT_PAGE_SIZE, extraStoryFields } = options || {};
10
+ function getCategoryPageServerSideProps(customProps, options = {}) {
11
+ const { pageSize = theme_kit_core_1.DEFAULT_PAGE_SIZE, extraStoryFields } = options;
12
12
  return async function getServerSideProps(context) {
13
13
  const { api, serverSideProps } = await (0, getNewsroomServerSideProps_1.getNewsroomServerSideProps)(context);
14
14
  const { slug } = context.params;
@@ -30,8 +30,7 @@ function getCategoryPageServerSideProps(customProps, options) {
30
30
  serverSideProps.newsroomContextProps.currentCategory = category;
31
31
  return (0, processRequest_1.processRequest)(context, {
32
32
  ...serverSideProps,
33
- // TODO: This is temporary until return types from API are figured out
34
- stories: stories,
33
+ stories,
35
34
  pagination: {
36
35
  itemsTotal: storiesTotal,
37
36
  currentPage: page ?? 1,
@@ -44,8 +43,8 @@ function getCategoryPageServerSideProps(customProps, options) {
44
43
  };
45
44
  }
46
45
  exports.getCategoryPageServerSideProps = getCategoryPageServerSideProps;
47
- function getCategoryPageStaticProps(customProps, options) {
48
- const { pageSize = theme_kit_core_1.DEFAULT_PAGE_SIZE, extraStoryFields } = options || {};
46
+ function getCategoryPageStaticProps(customProps, options = {}) {
47
+ const { pageSize = theme_kit_core_1.DEFAULT_PAGE_SIZE, extraStoryFields = [] } = options;
49
48
  return async function getStaticProps(context) {
50
49
  const { api, staticProps } = await (0, getNewsroomStaticProps_1.getNewsroomStaticProps)(context);
51
50
  const { slug } = context.params;
@@ -64,8 +63,7 @@ function getCategoryPageStaticProps(customProps, options) {
64
63
  staticProps.newsroomContextProps.currentCategory = category;
65
64
  return (0, processStaticRequest_1.processStaticRequest)(context, {
66
65
  ...staticProps,
67
- // TODO: This is temporary until return types from API are figured out
68
- stories: stories,
66
+ stories,
69
67
  pagination: {
70
68
  itemsTotal: storiesTotal,
71
69
  currentPage: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/category.ts"],"names":[],"mappings":";;;AACA,2DAAmG;AASnG,uDAAuD;AAEvD,8EAA2E;AAC3E,sEAAmE;AACnE,sDAAmD;AACnD,kEAA+D;AAc/D,SAAgB,8BAA8B,CAG5C,WAAqD,EAAE,OAAiB;IACtE,MAAM,EAAE,QAAQ,GAAG,kCAAiB,EAAE,gBAAgB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAEzE,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC;QAElC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,MAAM,IAAA,uDAA0B,EAAC,OAAO,CAAC,CAAC;QAE3E,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,MAA0B,CAAC;QACpD,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAEnD,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO;gBACH,QAAQ,EAAE,IAAI;aACjB,CAAC;SACL;QAED,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAC1B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE3F,MAAM,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC,oBAAoB,CAAC;QAE5D,MAAM,EAAE,OAAO,EAAE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YACjC,GAAG,WAAW;YACd,OAAO;YACP,UAAU,EAAE;gBACR,UAAU,EAAE,YAAY;gBACxB,WAAW,EAAE,CAAC;gBACd,QAAQ;aACX;YACD,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAAiE,CACpE,OAAO,EACP,WAAW,CACd;gBACH,CAAC,CAAC,WAAW,CAAC;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AAjDD,gEAiDC;AAEM,KAAK,UAAU,0BAA0B;IAC5C,MAAM,GAAG,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAC/B,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpD,GAAG,CAAC,aAAa,EAAE;QACnB,GAAG,CAAC,0BAA0B,EAAE;KACnC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,6BAAY,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAE9D,MAAM,KAAK,GAAG,UAAU;SACnB,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;QACd,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,yCAAwB,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,EAAE;YACP,OAAO,SAAS,CAAC;SACpB;QAED,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;IAChC,CAAC,CAAC;SACD,MAAM,CAA+B,OAAc,CAAC,CAAC;IAE1D,OAAO;QACH,KAAK;QACL,QAAQ,EAAE,UAAU;KACvB,CAAC;AACN,CAAC;AAvBD,gEAuBC"}
@@ -2,12 +2,12 @@ import type { Story } from '@prezly/sdk';
2
2
  import type { GetServerSidePropsContext, GetServerSidePropsResult, GetStaticPropsContext, GetStaticPropsResult } from 'next';
3
3
  import type { PaginationProps } from '../../infinite-loading/types';
4
4
  import type { PropsFunction } from './lib/types';
5
- export interface HomePageProps<StoryType extends Story = Story> {
6
- stories: StoryType[];
5
+ export interface HomePageProps<Include extends keyof Story.ExtraFields = never> {
6
+ stories: (Story & Pick<Story.ExtraFields, Include>)[];
7
7
  pagination: PaginationProps;
8
8
  }
9
- interface Options {
10
- extraStoryFields?: (keyof Story.ExtraFields)[];
9
+ interface Options<Include extends keyof Story.ExtraFields> {
10
+ extraStoryFields?: Include[];
11
11
  /**
12
12
  * When set to `true`, the initial `stories` array will include one extra story to place as highlighted story.
13
13
  * This will offset each subsequent page by 1 story to account for that.
@@ -17,6 +17,6 @@ interface Options {
17
17
  pinning?: boolean;
18
18
  filterQuery?: Object;
19
19
  }
20
- export declare function getHomepageServerSideProps<CustomProps extends Record<string, any>, StoryType extends Story = Story>(customProps: CustomProps | PropsFunction<CustomProps>, options?: Options): (context: GetServerSidePropsContext) => Promise<GetServerSidePropsResult<HomePageProps<StoryType> & CustomProps>>;
21
- export declare function getHomepageStaticProps<CustomProps extends Record<string, any>, StoryType extends Story = Story>(customProps: CustomProps | PropsFunction<CustomProps, GetStaticPropsContext>, options?: Options): (context: GetStaticPropsContext) => Promise<GetStaticPropsResult<HomePageProps<StoryType> & CustomProps>>;
20
+ export declare function getHomepageServerSideProps<CustomProps extends Record<string, any>, Include extends keyof Story.ExtraFields = never>(customProps: CustomProps | PropsFunction<CustomProps>, options?: Options<Include>): (context: GetServerSidePropsContext) => Promise<GetServerSidePropsResult<HomePageProps<Include> & CustomProps>>;
21
+ export declare function getHomepageStaticProps<CustomProps extends Record<string, any>, Include extends keyof Story.ExtraFields = never>(customProps: CustomProps | PropsFunction<CustomProps, GetStaticPropsContext>, options?: Options<Include>): (context: GetStaticPropsContext) => Promise<GetStaticPropsResult<HomePageProps<Include> & CustomProps>>;
22
22
  export {};
@@ -27,8 +27,7 @@ function getHomepageServerSideProps(customProps, options) {
27
27
  const { stories, storiesTotal } = storiesPaginated;
28
28
  return (0, processRequest_1.processRequest)(context, {
29
29
  ...serverSideProps,
30
- // TODO: This is temporary until return types from API are figured out
31
- stories: stories,
30
+ stories,
32
31
  pagination: {
33
32
  itemsTotal: storiesTotal,
34
33
  currentPage: page ?? 1,
@@ -42,8 +41,8 @@ function getHomepageServerSideProps(customProps, options) {
42
41
  };
43
42
  }
44
43
  exports.getHomepageServerSideProps = getHomepageServerSideProps;
45
- function getHomepageStaticProps(customProps, options) {
46
- const { pageSize = theme_kit_core_1.DEFAULT_PAGE_SIZE, extraStoryFields, pinning = false } = options || {};
44
+ function getHomepageStaticProps(customProps, options = {}) {
45
+ const { pageSize = theme_kit_core_1.DEFAULT_PAGE_SIZE, extraStoryFields = [], pinning = false } = options;
47
46
  return async function getStaticProps(context) {
48
47
  const { api, staticProps } = await (0, getNewsroomStaticProps_1.getNewsroomStaticProps)(context, {
49
48
  loadHomepageContacts: true,
@@ -58,8 +57,7 @@ function getHomepageStaticProps(customProps, options) {
58
57
  const { stories, storiesTotal } = storiesPaginated;
59
58
  return (0, processStaticRequest_1.processStaticRequest)(context, {
60
59
  ...staticProps,
61
- // TODO: This is temporary until return types from API are figured out
62
- stories: stories,
60
+ stories,
63
61
  pagination: {
64
62
  itemsTotal: storiesTotal,
65
63
  currentPage: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"home.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/home.ts"],"names":[],"mappings":";;;AACA,2DAA2D;AAS3D,8EAA2E;AAC3E,sEAAmE;AACnE,sDAAmD;AACnD,kEAA+D;AAqB/D,SAAgB,0BAA0B,CAGxC,WAAqD,EAAE,OAAiB;IACtE,MAAM,EACF,QAAQ,GAAG,kCAAiB,EAC5B,gBAAgB,EAChB,OAAO,GAAG,KAAK,EACf,oBAAoB,GAAG,KAAK,EAC5B,WAAW,GACd,GAAG,OAAO,IAAI,EAAE,CAAC;IAElB,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC;QAElC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,MAAM,IAAA,uDAA0B,EAAC,OAAO,EA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AAA,+CAAsB,EAAC,OAAO,EAAE;YAC/D,oBAAoB,EAAE,IAAI;SAC7B,CAAC,CAAC;QAEH,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,oBAAoB,CAAC;QAExD,MAAM,gBAAgB,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC;YAC1C,QAAQ;YACR,OAAO;YACP,OAAO,EAAE,gBAAgB;YACzB,UAAU;SACb,CAAC,CAAC;QACH,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,gBAAgB,CAAC;QAEnD,OAAO,IAAA,2CAAoB,EAAC,OAAO,EAAE;YACjC,GAAG,WAAW;YACd,OAAO;YACP,UAAU,EAAE;gBACR,UAAU,EAAE,YAAY;gBACxB,WAAW,EAAE,CAAC;gBACd,QAAQ;aACX;YACD,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAAiE,CACpE,OAAO,EACP,WAAW,CACd;gBACH,CAAC,CAAC,WAAW,CAAC;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AA1CD,wDA0CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/theme-kit-nextjs",
3
- "version": "6.6.0",
3
+ "version": "6.6.1-alpha.1",
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",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@playwright/test": "1.x",
63
- "@prezly/sdk": "^16.1",
63
+ "@prezly/sdk": "^18.2.2",
64
64
  "next": "^12.x || ^13.x",
65
65
  "react": "^17.x || ^18.x",
66
66
  "react-dom": "^17.x || ^18.x"
@@ -71,15 +71,15 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@prezly/theme-kit-core": "^6.6.0",
74
+ "@prezly/theme-kit-core": "^6.6.1-alpha.1",
75
75
  "next-seo": "^5.4.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@sentry/nextjs": "7.74.0"
78
+ "@sentry/nextjs": "7.80.1"
79
79
  },
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
83
  "sideEffects": false,
84
- "gitHead": "3052b81b07bd65b57c2abfec7f07ee9346df4676"
84
+ "gitHead": "f908aacfe2935d0f60279609134e835e434514a1"
85
85
  }