@prezly/theme-kit-nextjs 4.3.5-alpha.1 → 4.5.0
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/README.md +13 -7
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/api-handlers/fetchGalleries.js +2 -2
- package/build/adapter-nextjs/api-handlers/fetchGalleries.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/api-handlers/fetchStories.js +2 -2
- package/build/adapter-nextjs/api-handlers/fetchStories.js.map +1 -0
- package/build/adapter-nextjs/api-handlers/index.d.ts +2 -0
- package/build/adapter-nextjs/api-handlers/index.js +8 -0
- package/build/adapter-nextjs/api-handlers/index.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/getNewsroomServerSideProps.d.ts +2 -2
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/getNewsroomServerSideProps.js +2 -2
- package/build/adapter-nextjs/getNewsroomServerSideProps.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/getNewsroomStaticProps.d.ts +2 -2
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/getNewsroomStaticProps.js +2 -2
- package/build/adapter-nextjs/getNewsroomStaticProps.js.map +1 -0
- package/build/adapter-nextjs/index.d.ts +6 -0
- package/build/{cjs/server.js → adapter-nextjs/index.js} +7 -8
- package/build/adapter-nextjs/index.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/category.js +10 -10
- package/build/adapter-nextjs/page-props/category.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/gallery.js +8 -8
- package/build/adapter-nextjs/page-props/gallery.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/galleryAlbum.js +10 -10
- package/build/adapter-nextjs/page-props/galleryAlbum.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/home.js +8 -8
- package/build/adapter-nextjs/page-props/home.js.map +1 -0
- package/build/{types/adapter-nextjs → adapter-nextjs}/page-props/index.d.ts +8 -8
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/index.js +24 -24
- package/build/adapter-nextjs/page-props/index.js.map +1 -0
- package/build/adapter-nextjs/page-props/lib/types.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/search.js +8 -8
- package/build/adapter-nextjs/page-props/search.js.map +1 -0
- package/build/adapter-nextjs/page-props/sitemap/SitemapBuilder.js.map +1 -0
- package/build/adapter-nextjs/page-props/sitemap/createPaths.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/getServerSideProps.js +6 -6
- package/build/adapter-nextjs/page-props/sitemap/getServerSideProps.js.map +1 -0
- package/build/adapter-nextjs/page-props/sitemap/index.d.ts +4 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/index.js +7 -7
- package/build/adapter-nextjs/page-props/sitemap/index.js.map +1 -0
- package/build/adapter-nextjs/page-props/sitemap/types.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/story.js +14 -14
- package/build/adapter-nextjs/page-props/story.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/storyPreview.js +6 -6
- package/build/adapter-nextjs/page-props/storyPreview.js.map +1 -0
- package/build/{cjs/adapter-nextjs → adapter-nextjs}/processRequest.js +2 -2
- package/build/adapter-nextjs/processRequest.js.map +1 -0
- package/build/adapter-nextjs/processStaticRequest.js.map +1 -0
- package/build/{cjs/components-nextjs → components-nextjs}/PageSeo/PageSeo.js +14 -15
- package/build/components-nextjs/PageSeo/PageSeo.js.map +1 -0
- package/build/components-nextjs/PageSeo/index.d.ts +1 -0
- package/build/{cjs/components-nextjs → components-nextjs}/PageSeo/index.js +2 -2
- package/build/components-nextjs/PageSeo/index.js.map +1 -0
- package/build/components-nextjs/PageSeo/lib/getAbsoluteUrl.js.map +1 -0
- package/build/components-nextjs/PageSeo/lib/index.d.ts +1 -0
- package/build/{cjs/components-nextjs → components-nextjs}/PageSeo/lib/index.js +2 -2
- package/build/components-nextjs/PageSeo/lib/index.js.map +1 -0
- package/build/{cjs/components-nextjs → components-nextjs}/StorySeo/StorySeo.js +0 -1
- package/build/components-nextjs/StorySeo/StorySeo.js.map +1 -0
- package/build/components-nextjs/StorySeo/index.d.ts +1 -0
- package/build/{cjs/components-nextjs → components-nextjs}/StorySeo/index.js +2 -2
- package/build/components-nextjs/StorySeo/index.js.map +1 -0
- package/build/{types/components-nextjs → components-nextjs}/document.d.ts +1 -1
- package/build/{cjs/components-nextjs → components-nextjs}/document.js +3 -4
- package/build/components-nextjs/document.js.map +1 -0
- package/build/components-nextjs/index.d.ts +3 -0
- package/build/components-nextjs/index.js +10 -0
- package/build/components-nextjs/index.js.map +1 -0
- package/build/{cjs/data-fetching → data-fetching}/NextPrezlyApi.js +2 -2
- package/build/data-fetching/NextPrezlyApi.js.map +1 -0
- package/build/{cjs/data-fetching → data-fetching}/getNextPrezlyApi.d.ts +1 -1
- package/build/{cjs/data-fetching → data-fetching}/getNextPrezlyApi.js +2 -2
- package/build/data-fetching/getNextPrezlyApi.js.map +1 -0
- package/build/data-fetching/index.d.ts +1 -0
- package/build/{cjs/data-fetching → data-fetching}/index.js +2 -2
- package/build/data-fetching/index.js.map +1 -0
- package/build/index.d.ts +8 -0
- package/build/{cjs/adapter-nextjs/index.js → index.js} +8 -6
- package/build/index.js.map +1 -0
- package/build/{cjs/infinite-loading → infinite-loading}/index.d.ts +4 -4
- package/build/{cjs/infinite-loading → infinite-loading}/index.js +7 -7
- package/build/infinite-loading/index.js.map +1 -0
- package/build/{esm → infinite-loading}/types.js.map +1 -1
- package/build/{cjs/infinite-loading → infinite-loading}/useInfiniteGalleriesLoading.js +2 -2
- package/build/infinite-loading/useInfiniteGalleriesLoading.js.map +1 -0
- package/build/infinite-loading/useInfiniteLoading.js.map +1 -0
- package/build/{cjs/infinite-loading → infinite-loading}/useInfiniteStoriesLoading.js +4 -4
- package/build/infinite-loading/useInfiniteStoriesLoading.js.map +1 -0
- package/build/intl/index.d.ts +2 -0
- package/build/{cjs/intl → intl}/index.js +2 -2
- package/build/intl/index.js.map +1 -0
- package/build/{cjs/intl → intl}/languages.js +2 -2
- package/build/intl/languages.js.map +1 -0
- package/build/intl/locale.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/context.js +0 -1
- package/build/newsroom-context/context.js.map +1 -0
- package/build/newsroom-context/hooks/index.d.ts +11 -0
- package/build/{cjs → newsroom-context/hooks}/index.js +11 -8
- package/build/newsroom-context/hooks/index.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useAlgoliaSettings.js +2 -2
- package/build/newsroom-context/hooks/useAlgoliaSettings.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCategories.js +2 -2
- package/build/newsroom-context/hooks/useCategories.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCompanyInformation.js +2 -2
- package/build/newsroom-context/hooks/useCompanyInformation.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCurrentCategory.js +2 -2
- package/build/newsroom-context/hooks/useCurrentCategory.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCurrentLocale.js +2 -2
- package/build/newsroom-context/hooks/useCurrentLocale.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCurrentStory.js +2 -2
- package/build/newsroom-context/hooks/useCurrentStory.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useGetLinkLocaleSlug.js +4 -4
- package/build/newsroom-context/hooks/useGetLinkLocaleSlug.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useGetTranslationUrl.js +6 -6
- package/build/newsroom-context/hooks/useGetTranslationUrl.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useLanguages.js +2 -2
- package/build/newsroom-context/hooks/useLanguages.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useNewsroom.js +2 -2
- package/build/newsroom-context/hooks/useNewsroom.js.map +1 -0
- package/build/{cjs/newsroom-context → newsroom-context}/hooks/useNewsroomContext.js +2 -2
- package/build/newsroom-context/hooks/useNewsroomContext.js.map +1 -0
- package/build/newsroom-context/index.d.ts +2 -0
- package/build/{cjs/newsroom-context → newsroom-context}/index.js +4 -4
- package/build/newsroom-context/index.js.map +1 -0
- package/build/{cjs/sentry → sentry}/client.js +2 -2
- package/build/sentry/client.js.map +1 -0
- package/build/{esm/sentry → sentry}/common.js.map +1 -1
- package/build/sentry/index.d.ts +2 -0
- package/build/{cjs/sentry → sentry}/index.js +4 -4
- package/build/sentry/index.js.map +1 -0
- package/build/{cjs/sentry → sentry}/server.js +2 -2
- package/build/sentry/server.js.map +1 -0
- package/build/{cjs/types.d.ts → types.d.ts} +1 -1
- package/build/types.js.map +1 -0
- package/package.json +10 -42
- package/build/cjs/adapter-nextjs/api-handlers/fetchGalleries.js.map +0 -1
- package/build/cjs/adapter-nextjs/api-handlers/fetchStories.js.map +0 -1
- package/build/cjs/adapter-nextjs/api-handlers/index.d.ts +0 -2
- package/build/cjs/adapter-nextjs/api-handlers/index.js +0 -8
- package/build/cjs/adapter-nextjs/api-handlers/index.js.map +0 -1
- package/build/cjs/adapter-nextjs/getNewsroomServerSideProps.js.map +0 -1
- package/build/cjs/adapter-nextjs/getNewsroomStaticProps.js.map +0 -1
- package/build/cjs/adapter-nextjs/index.d.ts +0 -6
- package/build/cjs/adapter-nextjs/index.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/category.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/gallery.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/galleryAlbum.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/home.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/index.d.ts +0 -8
- package/build/cjs/adapter-nextjs/page-props/index.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/lib/types.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/search.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/sitemap/SitemapBuilder.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/sitemap/createPaths.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/sitemap/getServerSideProps.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/sitemap/index.d.ts +0 -4
- package/build/cjs/adapter-nextjs/page-props/sitemap/index.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/sitemap/types.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/story.js.map +0 -1
- package/build/cjs/adapter-nextjs/page-props/storyPreview.js.map +0 -1
- package/build/cjs/adapter-nextjs/processRequest.js.map +0 -1
- package/build/cjs/adapter-nextjs/processStaticRequest.js.map +0 -1
- package/build/cjs/client.d.ts +0 -7
- package/build/cjs/client.js +0 -24
- package/build/cjs/client.js.map +0 -1
- package/build/cjs/components-nextjs/PageSeo/PageSeo.js.map +0 -1
- package/build/cjs/components-nextjs/PageSeo/index.d.ts +0 -1
- package/build/cjs/components-nextjs/PageSeo/index.js.map +0 -1
- package/build/cjs/components-nextjs/PageSeo/lib/getAbsoluteUrl.js.map +0 -1
- package/build/cjs/components-nextjs/PageSeo/lib/index.d.ts +0 -1
- package/build/cjs/components-nextjs/PageSeo/lib/index.js.map +0 -1
- package/build/cjs/components-nextjs/StorySeo/StorySeo.js.map +0 -1
- package/build/cjs/components-nextjs/StorySeo/index.d.ts +0 -1
- package/build/cjs/components-nextjs/StorySeo/index.js.map +0 -1
- package/build/cjs/components-nextjs/document.d.ts +0 -6
- package/build/cjs/components-nextjs/document.js.map +0 -1
- package/build/cjs/components-nextjs/index.d.ts +0 -3
- package/build/cjs/components-nextjs/index.js +0 -10
- package/build/cjs/components-nextjs/index.js.map +0 -1
- package/build/cjs/data-fetching/NextPrezlyApi.js.map +0 -1
- package/build/cjs/data-fetching/getNextPrezlyApi.js.map +0 -1
- package/build/cjs/data-fetching/index.d.ts +0 -1
- package/build/cjs/data-fetching/index.js.map +0 -1
- package/build/cjs/i18nConfig.cjs +0 -21
- package/build/cjs/i18nConfig.cjs.map +0 -1
- package/build/cjs/i18nConfig.d.cts +0 -3
- package/build/cjs/index.d.ts +0 -8
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/infinite-loading/index.js.map +0 -1
- package/build/cjs/infinite-loading/types.js.map +0 -1
- package/build/cjs/infinite-loading/useInfiniteGalleriesLoading.js.map +0 -1
- package/build/cjs/infinite-loading/useInfiniteLoading.js.map +0 -1
- package/build/cjs/infinite-loading/useInfiniteStoriesLoading.js.map +0 -1
- package/build/cjs/intl/index.d.ts +0 -2
- package/build/cjs/intl/index.js.map +0 -1
- package/build/cjs/intl/languages.js.map +0 -1
- package/build/cjs/intl/locale.js.map +0 -1
- package/build/cjs/newsroom-context/context.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/index.d.ts +0 -11
- package/build/cjs/newsroom-context/hooks/index.js +0 -28
- package/build/cjs/newsroom-context/hooks/index.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useAlgoliaSettings.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useCategories.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useCompanyInformation.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useCurrentCategory.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useCurrentLocale.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useCurrentStory.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useGetLinkLocaleSlug.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useGetTranslationUrl.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useLanguages.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useNewsroom.js.map +0 -1
- package/build/cjs/newsroom-context/hooks/useNewsroomContext.js.map +0 -1
- package/build/cjs/newsroom-context/index.d.ts +0 -2
- package/build/cjs/newsroom-context/index.js.map +0 -1
- package/build/cjs/sentry/client.js.map +0 -1
- package/build/cjs/sentry/common.js.map +0 -1
- package/build/cjs/sentry/index.d.ts +0 -2
- package/build/cjs/sentry/index.js.map +0 -1
- package/build/cjs/sentry/server.js.map +0 -1
- package/build/cjs/server.d.ts +0 -7
- package/build/cjs/server.js.map +0 -1
- package/build/cjs/types.js.map +0 -1
- package/build/esm/adapter-nextjs/api-handlers/fetchGalleries.js +0 -19
- package/build/esm/adapter-nextjs/api-handlers/fetchGalleries.js.map +0 -1
- package/build/esm/adapter-nextjs/api-handlers/fetchStories.js +0 -29
- package/build/esm/adapter-nextjs/api-handlers/fetchStories.js.map +0 -1
- package/build/esm/adapter-nextjs/api-handlers/index.js +0 -3
- package/build/esm/adapter-nextjs/api-handlers/index.js.map +0 -1
- package/build/esm/adapter-nextjs/getNewsroomServerSideProps.js +0 -15
- package/build/esm/adapter-nextjs/getNewsroomServerSideProps.js.map +0 -1
- package/build/esm/adapter-nextjs/getNewsroomStaticProps.js +0 -15
- package/build/esm/adapter-nextjs/getNewsroomStaticProps.js.map +0 -1
- package/build/esm/adapter-nextjs/index.js +0 -7
- package/build/esm/adapter-nextjs/index.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/category.js +0 -97
- package/build/esm/adapter-nextjs/page-props/category.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/gallery.js +0 -66
- package/build/esm/adapter-nextjs/page-props/gallery.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/galleryAlbum.js +0 -49
- package/build/esm/adapter-nextjs/page-props/galleryAlbum.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/home.js +0 -70
- package/build/esm/adapter-nextjs/page-props/home.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/index.js +0 -9
- package/build/esm/adapter-nextjs/page-props/index.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/lib/types.js +0 -2
- package/build/esm/adapter-nextjs/page-props/lib/types.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/search.js +0 -27
- package/build/esm/adapter-nextjs/page-props/search.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/sitemap/SitemapBuilder.js +0 -47
- package/build/esm/adapter-nextjs/page-props/sitemap/SitemapBuilder.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/sitemap/createPaths.js +0 -15
- package/build/esm/adapter-nextjs/page-props/sitemap/createPaths.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/sitemap/getServerSideProps.js +0 -32
- package/build/esm/adapter-nextjs/page-props/sitemap/getServerSideProps.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/sitemap/index.js +0 -5
- package/build/esm/adapter-nextjs/page-props/sitemap/index.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/sitemap/types.js +0 -2
- package/build/esm/adapter-nextjs/page-props/sitemap/types.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/story.js +0 -63
- package/build/esm/adapter-nextjs/page-props/story.js.map +0 -1
- package/build/esm/adapter-nextjs/page-props/storyPreview.js +0 -22
- package/build/esm/adapter-nextjs/page-props/storyPreview.js.map +0 -1
- package/build/esm/adapter-nextjs/processRequest.js +0 -33
- package/build/esm/adapter-nextjs/processRequest.js.map +0 -1
- package/build/esm/adapter-nextjs/processStaticRequest.js +0 -22
- package/build/esm/adapter-nextjs/processStaticRequest.js.map +0 -1
- package/build/esm/client.js +0 -8
- package/build/esm/client.js.map +0 -1
- package/build/esm/components-nextjs/PageSeo/PageSeo.js +0 -78
- package/build/esm/components-nextjs/PageSeo/PageSeo.js.map +0 -1
- package/build/esm/components-nextjs/PageSeo/index.js +0 -2
- package/build/esm/components-nextjs/PageSeo/index.js.map +0 -1
- package/build/esm/components-nextjs/PageSeo/lib/getAbsoluteUrl.js +0 -7
- package/build/esm/components-nextjs/PageSeo/lib/getAbsoluteUrl.js.map +0 -1
- package/build/esm/components-nextjs/PageSeo/lib/index.js +0 -2
- package/build/esm/components-nextjs/PageSeo/lib/index.js.map +0 -1
- package/build/esm/components-nextjs/StorySeo/StorySeo.js +0 -53
- package/build/esm/components-nextjs/StorySeo/StorySeo.js.map +0 -1
- package/build/esm/components-nextjs/StorySeo/index.js +0 -2
- package/build/esm/components-nextjs/StorySeo/index.js.map +0 -1
- package/build/esm/components-nextjs/document.js +0 -22
- package/build/esm/components-nextjs/document.js.map +0 -1
- package/build/esm/components-nextjs/index.js +0 -4
- package/build/esm/components-nextjs/index.js.map +0 -1
- package/build/esm/data-fetching/NextPrezlyApi.js +0 -36
- package/build/esm/data-fetching/NextPrezlyApi.js.map +0 -1
- package/build/esm/data-fetching/getNextPrezlyApi.js +0 -17
- package/build/esm/data-fetching/getNextPrezlyApi.js.map +0 -1
- package/build/esm/data-fetching/index.js +0 -2
- package/build/esm/data-fetching/index.js.map +0 -1
- package/build/esm/i18nConfig.cjs +0 -20
- package/build/esm/i18nConfig.cjs.map +0 -1
- package/build/esm/index.js +0 -9
- package/build/esm/index.js.map +0 -1
- package/build/esm/infinite-loading/index.js +0 -5
- package/build/esm/infinite-loading/index.js.map +0 -1
- package/build/esm/infinite-loading/types.js +0 -2
- package/build/esm/infinite-loading/types.js.map +0 -1
- package/build/esm/infinite-loading/useInfiniteGalleriesLoading.js +0 -41
- package/build/esm/infinite-loading/useInfiniteGalleriesLoading.js.map +0 -1
- package/build/esm/infinite-loading/useInfiniteLoading.js +0 -40
- package/build/esm/infinite-loading/useInfiniteLoading.js.map +0 -1
- package/build/esm/infinite-loading/useInfiniteStoriesLoading.js +0 -58
- package/build/esm/infinite-loading/useInfiniteStoriesLoading.js.map +0 -1
- package/build/esm/intl/index.js +0 -3
- package/build/esm/intl/index.js.map +0 -1
- package/build/esm/intl/languages.js +0 -26
- package/build/esm/intl/languages.js.map +0 -1
- package/build/esm/intl/locale.js +0 -25
- package/build/esm/intl/locale.js.map +0 -1
- package/build/esm/newsroom-context/context.js +0 -26
- package/build/esm/newsroom-context/context.js.map +0 -1
- package/build/esm/newsroom-context/hooks/index.js +0 -12
- package/build/esm/newsroom-context/hooks/index.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useAlgoliaSettings.js +0 -6
- package/build/esm/newsroom-context/hooks/useAlgoliaSettings.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useCategories.js +0 -6
- package/build/esm/newsroom-context/hooks/useCategories.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useCompanyInformation.js +0 -6
- package/build/esm/newsroom-context/hooks/useCompanyInformation.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useCurrentCategory.js +0 -6
- package/build/esm/newsroom-context/hooks/useCurrentCategory.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useCurrentLocale.js +0 -6
- package/build/esm/newsroom-context/hooks/useCurrentLocale.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useCurrentStory.js +0 -6
- package/build/esm/newsroom-context/hooks/useCurrentStory.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useGetLinkLocaleSlug.js +0 -25
- package/build/esm/newsroom-context/hooks/useGetLinkLocaleSlug.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useGetTranslationUrl.js +0 -71
- package/build/esm/newsroom-context/hooks/useGetTranslationUrl.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useLanguages.js +0 -6
- package/build/esm/newsroom-context/hooks/useLanguages.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useNewsroom.js +0 -6
- package/build/esm/newsroom-context/hooks/useNewsroom.js.map +0 -1
- package/build/esm/newsroom-context/hooks/useNewsroomContext.js +0 -12
- package/build/esm/newsroom-context/hooks/useNewsroomContext.js.map +0 -1
- package/build/esm/newsroom-context/index.js +0 -3
- package/build/esm/newsroom-context/index.js.map +0 -1
- package/build/esm/sentry/client.js +0 -5
- package/build/esm/sentry/client.js.map +0 -1
- package/build/esm/sentry/common.js +0 -62
- package/build/esm/sentry/index.js +0 -3
- package/build/esm/sentry/index.js.map +0 -1
- package/build/esm/sentry/server.js +0 -5
- package/build/esm/sentry/server.js.map +0 -1
- package/build/esm/server.js +0 -8
- package/build/esm/server.js.map +0 -1
- package/build/esm/types.js +0 -2
- package/build/tsconfig.cjs.tsbuildinfo +0 -1
- package/build/tsconfig.esm.tsbuildinfo +0 -1
- package/build/types/adapter-nextjs/api-handlers/fetchGalleries.d.ts +0 -2
- package/build/types/adapter-nextjs/api-handlers/fetchStories.d.ts +0 -2
- package/build/types/adapter-nextjs/api-handlers/index.d.ts +0 -2
- package/build/types/adapter-nextjs/getNewsroomServerSideProps.d.ts +0 -15
- package/build/types/adapter-nextjs/getNewsroomStaticProps.d.ts +0 -15
- package/build/types/adapter-nextjs/index.d.ts +0 -6
- package/build/types/adapter-nextjs/page-props/category.d.ts +0 -16
- package/build/types/adapter-nextjs/page-props/gallery.d.ts +0 -14
- package/build/types/adapter-nextjs/page-props/galleryAlbum.d.ts +0 -9
- package/build/types/adapter-nextjs/page-props/home.d.ts +0 -22
- package/build/types/adapter-nextjs/page-props/lib/types.d.ts +0 -3
- package/build/types/adapter-nextjs/page-props/search.d.ts +0 -4
- package/build/types/adapter-nextjs/page-props/sitemap/SitemapBuilder.d.ts +0 -11
- package/build/types/adapter-nextjs/page-props/sitemap/createPaths.d.ts +0 -2
- package/build/types/adapter-nextjs/page-props/sitemap/getServerSideProps.d.ts +0 -7
- package/build/types/adapter-nextjs/page-props/sitemap/index.d.ts +0 -4
- package/build/types/adapter-nextjs/page-props/sitemap/types.d.ts +0 -5
- package/build/types/adapter-nextjs/page-props/story.d.ts +0 -14
- package/build/types/adapter-nextjs/page-props/storyPreview.d.ts +0 -3
- package/build/types/adapter-nextjs/processRequest.d.ts +0 -12
- package/build/types/adapter-nextjs/processStaticRequest.d.ts +0 -11
- package/build/types/client.d.ts +0 -7
- package/build/types/components-nextjs/PageSeo/PageSeo.d.ts +0 -12
- package/build/types/components-nextjs/PageSeo/index.d.ts +0 -1
- package/build/types/components-nextjs/PageSeo/lib/getAbsoluteUrl.d.ts +0 -1
- package/build/types/components-nextjs/PageSeo/lib/index.d.ts +0 -1
- package/build/types/components-nextjs/StorySeo/StorySeo.d.ts +0 -12
- package/build/types/components-nextjs/StorySeo/index.d.ts +0 -1
- package/build/types/components-nextjs/index.d.ts +0 -3
- package/build/types/data-fetching/NextPrezlyApi.d.ts +0 -8
- package/build/types/data-fetching/getNextPrezlyApi.d.ts +0 -4
- package/build/types/data-fetching/index.d.ts +0 -1
- package/build/types/i18nConfig.d.cts +0 -3
- package/build/types/index.d.ts +0 -8
- package/build/types/infinite-loading/index.d.ts +0 -4
- package/build/types/infinite-loading/types.d.ts +0 -9
- package/build/types/infinite-loading/useInfiniteGalleriesLoading.d.ts +0 -13
- package/build/types/infinite-loading/useInfiniteLoading.d.ts +0 -16
- package/build/types/infinite-loading/useInfiniteStoriesLoading.d.ts +0 -13
- package/build/types/intl/index.d.ts +0 -2
- package/build/types/intl/languages.d.ts +0 -6
- package/build/types/intl/locale.d.ts +0 -5
- package/build/types/newsroom-context/context.d.ts +0 -62
- package/build/types/newsroom-context/hooks/index.d.ts +0 -11
- package/build/types/newsroom-context/hooks/useAlgoliaSettings.d.ts +0 -1
- package/build/types/newsroom-context/hooks/useCategories.d.ts +0 -1
- package/build/types/newsroom-context/hooks/useCompanyInformation.d.ts +0 -1
- package/build/types/newsroom-context/hooks/useCurrentCategory.d.ts +0 -1
- package/build/types/newsroom-context/hooks/useCurrentLocale.d.ts +0 -1
- package/build/types/newsroom-context/hooks/useCurrentStory.d.ts +0 -1
- package/build/types/newsroom-context/hooks/useGetLinkLocaleSlug.d.ts +0 -2
- package/build/types/newsroom-context/hooks/useGetTranslationUrl.d.ts +0 -6
- package/build/types/newsroom-context/hooks/useLanguages.d.ts +0 -1
- package/build/types/newsroom-context/hooks/useNewsroom.d.ts +0 -1
- package/build/types/newsroom-context/hooks/useNewsroomContext.d.ts +0 -2
- package/build/types/newsroom-context/index.d.ts +0 -2
- package/build/types/sentry/client.d.ts +0 -2
- package/build/types/sentry/common.d.ts +0 -2
- package/build/types/sentry/index.d.ts +0 -2
- package/build/types/sentry/server.d.ts +0 -2
- package/build/types/server.d.ts +0 -7
- package/build/types/types.d.ts +0 -14
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/api-handlers/fetchGalleries.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/api-handlers/fetchStories.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/category.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/gallery.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/galleryAlbum.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/home.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/lib/types.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/lib/types.js +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/search.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/SitemapBuilder.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/SitemapBuilder.js +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/createPaths.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/createPaths.js +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/getServerSideProps.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/types.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/sitemap/types.js +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/story.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/page-props/storyPreview.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/processRequest.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/processStaticRequest.d.ts +0 -0
- /package/build/{cjs/adapter-nextjs → adapter-nextjs}/processStaticRequest.js +0 -0
- /package/build/{cjs/components-nextjs → components-nextjs}/PageSeo/PageSeo.d.ts +0 -0
- /package/build/{cjs/components-nextjs → components-nextjs}/PageSeo/lib/getAbsoluteUrl.d.ts +0 -0
- /package/build/{cjs/components-nextjs → components-nextjs}/PageSeo/lib/getAbsoluteUrl.js +0 -0
- /package/build/{cjs/components-nextjs → components-nextjs}/StorySeo/StorySeo.d.ts +0 -0
- /package/build/{cjs/data-fetching → data-fetching}/NextPrezlyApi.d.ts +0 -0
- /package/build/{cjs/infinite-loading → infinite-loading}/types.d.ts +0 -0
- /package/build/{cjs/infinite-loading → infinite-loading}/types.js +0 -0
- /package/build/{cjs/infinite-loading → infinite-loading}/useInfiniteGalleriesLoading.d.ts +0 -0
- /package/build/{cjs/infinite-loading → infinite-loading}/useInfiniteLoading.d.ts +0 -0
- /package/build/{cjs/infinite-loading → infinite-loading}/useInfiniteLoading.js +0 -0
- /package/build/{cjs/infinite-loading → infinite-loading}/useInfiniteStoriesLoading.d.ts +0 -0
- /package/build/{cjs/intl → intl}/languages.d.ts +0 -0
- /package/build/{cjs/intl → intl}/locale.d.ts +0 -0
- /package/build/{cjs/intl → intl}/locale.js +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/context.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useAlgoliaSettings.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCategories.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCompanyInformation.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCurrentCategory.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCurrentLocale.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useCurrentStory.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useGetLinkLocaleSlug.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useGetTranslationUrl.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useLanguages.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useNewsroom.d.ts +0 -0
- /package/build/{cjs/newsroom-context → newsroom-context}/hooks/useNewsroomContext.d.ts +0 -0
- /package/build/{cjs/sentry → sentry}/client.d.ts +0 -0
- /package/build/{cjs/sentry → sentry}/common.d.ts +0 -0
- /package/build/{cjs/sentry → sentry}/common.js +0 -0
- /package/build/{cjs/sentry → sentry}/server.d.ts +0 -0
- /package/build/{cjs/types.js → types.js} +0 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useInfiniteStoriesLoading = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const newsroom_context_1 = require("../newsroom-context");
|
|
6
|
+
const useInfiniteLoading_1 = require("./useInfiniteLoading");
|
|
7
7
|
async function fetchStories(page, pageSize, withHighlightedStory, category, locale, include, pinning, filterQuery) {
|
|
8
8
|
const result = await fetch('/api/fetch-stories', {
|
|
9
9
|
method: 'POST',
|
|
@@ -36,9 +36,9 @@ async function fetchStories(page, pageSize, withHighlightedStory, category, loca
|
|
|
36
36
|
* See https://github.com/prezly/theme-nextjs-bea/blob/d381e9878187ca98815d240d3ffdf10a75993c14/pages/index.tsx#L24 for usage example
|
|
37
37
|
*/
|
|
38
38
|
function useInfiniteStoriesLoading(initialStories, pagination, category, include, pinning, filterQuery) {
|
|
39
|
-
const currentLocale = (0,
|
|
39
|
+
const currentLocale = (0, newsroom_context_1.useCurrentLocale)();
|
|
40
40
|
const { withHighlightedStory = false } = pagination;
|
|
41
|
-
const { canLoadMore, data, isLoading, loadMore, resetData } = (0,
|
|
41
|
+
const { canLoadMore, data, isLoading, loadMore, resetData } = (0, useInfiniteLoading_1.useInfiniteLoading)({
|
|
42
42
|
fetchingFn: async (nextPage, pageSize) => {
|
|
43
43
|
const { stories } = await fetchStories(nextPage, pageSize, withHighlightedStory, category, currentLocale, include, pinning, filterQuery);
|
|
44
44
|
return stories;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInfiniteStoriesLoading.js","sourceRoot":"","sources":["../../src/infinite-loading/useInfiniteStoriesLoading.ts"],"names":[],"mappings":";;;AAEA,iCAAkC;AAElC,0DAAuD;AAGvD,6DAA0D;AAE1D,KAAK,UAAU,YAAY,CACvB,IAAY,EACZ,QAAgB,EAChB,oBAA6B,EAC7B,QAAmB,EACnB,MAAqB,EACrB,OAAqC,EACrC,OAAiB,EACjB,WAAoB;IAEpB,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,oBAAoB,EAAE;QAC7C,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACL,gEAAgE;YAChE,cAAc,EAAE,kBAAkB;SACrC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACjB,IAAI;YACJ,QAAQ;YACR,oBAAoB;YACpB,QAAQ;YACR,OAAO;YACP,OAAO;YACP,GAAG,CAAC,MAAM,IAAI;gBACV,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE;aACxC,CAAC;YACF,WAAW;SACd,CAAC;KACL,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;QACZ,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KAC5B;IAED,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACzB,CAAC;AAED;;;;GAIG;AACH,SAAgB,yBAAyB,CACrC,cAAmB,EACnB,UAA2B,EAC3B,QAAmB,EACnB,OAAqC,EACrC,OAAiB,EACjB,WAAoB;IAEpB,MAAM,aAAa,GAAG,IAAA,mCAAgB,GAAE,CAAC;IACzC,MAAM,EAAE,oBAAoB,GAAG,KAAK,EAAE,GAAG,UAAU,CAAC;IAEpD,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,uCAAkB,EAAI;QAChF,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;YACrC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,YAAY,CAClC,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,aAAa,EACb,OAAO,EACP,OAAO,EACP,WAAW,CACd,CAAC;YACF,OAAO,OAAO,CAAC;QACnB,CAAC;QACD,WAAW,EAAE,cAAc;QAC3B,UAAU;KACb,CAAC,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,IAAI,QAAQ,EAAE,EAAE,EAAE;YACd,SAAS,EAAE,CAAC;SACf;IACL,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC;IAE9B,OAAO;QACH,WAAW;QACX,SAAS;QACT,eAAe,EAAE,QAAQ;QACzB,OAAO,EAAE,IAAI;KAChB,CAAC;AACN,CAAC;AAzCD,8DAyCC"}
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./languages
|
|
18
|
-
__exportStar(require("./locale
|
|
17
|
+
__exportStar(require("./languages"), exports);
|
|
18
|
+
__exportStar(require("./locale"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/intl/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2CAAyB"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getLanguageFromNextLocaleIsoCode = void 0;
|
|
4
4
|
const theme_kit_core_1 = require("@prezly/theme-kit-core");
|
|
5
|
-
const
|
|
5
|
+
const locale_1 = require("./locale");
|
|
6
6
|
/**
|
|
7
7
|
* Retrieve a culture with fallback to legacy codes support.
|
|
8
8
|
* Pulled from https://github.com/prezly/prezly/blob/de9900d9890a33502780494aa3fb85c9a732b3c3/lib/model/CulturePeer.php#L91-L114
|
|
9
9
|
*/
|
|
10
10
|
function getLanguageFromNextLocaleIsoCode(languages, nextLocaleIsoCode) {
|
|
11
11
|
const defaultLanguage = (0, theme_kit_core_1.getDefaultLanguage)(languages);
|
|
12
|
-
if (!nextLocaleIsoCode || nextLocaleIsoCode ===
|
|
12
|
+
if (!nextLocaleIsoCode || nextLocaleIsoCode === locale_1.DUMMY_DEFAULT_LOCALE) {
|
|
13
13
|
return defaultLanguage;
|
|
14
14
|
}
|
|
15
15
|
const locale = theme_kit_core_1.LocaleObject.fromAnyCode(nextLocaleIsoCode);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"languages.js","sourceRoot":"","sources":["../../src/intl/languages.ts"],"names":[],"mappings":";;;AACA,2DAMgC;AAEhC,qCAAgD;AAEhD;;;GAGG;AACH,SAAgB,gCAAgC,CAC5C,SAAqC,EACrC,iBAA0B;IAE1B,MAAM,eAAe,GAAG,IAAA,mCAAkB,EAAC,SAAS,CAAC,CAAC;IAEtD,IAAI,CAAC,iBAAiB,IAAI,iBAAiB,KAAK,6BAAoB,EAAE;QAClE,OAAO,eAAe,CAAC;KAC1B;IAED,MAAM,MAAM,GAAG,6BAAY,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC3D,IAAI,cAAoD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,CAAC,EAAE,CAAC;QAErD,OAAO;YACH,WAAW,EAAE,kBAAkB;gBAC3B,CAAC,CAAC,IAAI,kBAAkB,GAAG,YAAY,GAAG,QAAQ,EAAE;gBACpD,CAAC,CAAC,GAAG,YAAY,GAAG,QAAQ,EAAE;YAClC,SAAS,EAAE,KAAK;SACnB,CAAC;KACL;IAED,OAAO,SAAS,CAAC;AACrB,CAAC;AA9BD,oEA8BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/newsroom-context/context.tsx"],"names":[],"mappings":";;;;AAWA,2DAAsE;AAEtE,iCAA+C;AAwDlC,QAAA,eAAe,GAAG,IAAA,qBAAa,EAAkC,SAAS,CAAC,CAAC;AAEzF;;;GAGG;AACH,SAAgB,uBAAuB,CAAC,EACpC,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,aAAa,EACb,WAAW,EACX,eAAe,EACf,QAAQ,GAC8B;IACtC,MAAM,MAAM,GAAG,IAAA,eAAO,EAClB,GAAG,EAAE,CAAC,6BAAY,CAAC,WAAW,CAAC,UAAU,IAAI,+BAAc,CAAC,EAC5D,CAAC,UAAU,CAAC,CACf,CAAC;IAEF,OAAO,CACH,uBAAC,uBAAe,CAAC,QAAQ,IACrB,KAAK,EAAE;YACH,UAAU;YACV,QAAQ;YACR,QAAQ;YACR,eAAe;YACf,YAAY;YACZ,kBAAkB;YAClB,SAAS;YACT,MAAM;YACN,aAAa;YACb,WAAW;YACX,eAAe;SAClB,YAEA,QAAQ,GACc,CAC9B,CAAC;AACN,CAAC;AAtCD,0DAsCC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './useAlgoliaSettings';
|
|
2
|
+
export * from './useCategories';
|
|
3
|
+
export * from './useCompanyInformation';
|
|
4
|
+
export * from './useCurrentCategory';
|
|
5
|
+
export * from './useCurrentLocale';
|
|
6
|
+
export * from './useCurrentStory';
|
|
7
|
+
export * from './useGetLinkLocaleSlug';
|
|
8
|
+
export * from './useGetTranslationUrl';
|
|
9
|
+
export * from './useLanguages';
|
|
10
|
+
export * from './useNewsroom';
|
|
11
|
+
export * from './useNewsroomContext';
|
|
@@ -14,12 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./useAlgoliaSettings"), exports);
|
|
18
|
+
__exportStar(require("./useCategories"), exports);
|
|
19
|
+
__exportStar(require("./useCompanyInformation"), exports);
|
|
20
|
+
__exportStar(require("./useCurrentCategory"), exports);
|
|
21
|
+
__exportStar(require("./useCurrentLocale"), exports);
|
|
22
|
+
__exportStar(require("./useCurrentStory"), exports);
|
|
23
|
+
__exportStar(require("./useGetLinkLocaleSlug"), exports);
|
|
24
|
+
__exportStar(require("./useGetTranslationUrl"), exports);
|
|
25
|
+
__exportStar(require("./useLanguages"), exports);
|
|
26
|
+
__exportStar(require("./useNewsroom"), exports);
|
|
27
|
+
__exportStar(require("./useNewsroomContext"), exports);
|
|
25
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,kDAAgC;AAChC,0DAAwC;AACxC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,iDAA+B;AAC/B,gDAA8B;AAC9B,uDAAqC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useAlgoliaSettings = void 0;
|
|
4
|
-
const
|
|
4
|
+
const useNewsroomContext_1 = require("./useNewsroomContext");
|
|
5
5
|
function useAlgoliaSettings() {
|
|
6
|
-
const context = (0,
|
|
6
|
+
const context = (0, useNewsroomContext_1.useNewsroomContext)();
|
|
7
7
|
return context.algoliaSettings;
|
|
8
8
|
}
|
|
9
9
|
exports.useAlgoliaSettings = useAlgoliaSettings;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAlgoliaSettings.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useAlgoliaSettings.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,SAAgB,kBAAkB;IAC9B,MAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,eAAe,CAAC;AACnC,CAAC;AAJD,gDAIC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCategories = void 0;
|
|
4
|
-
const
|
|
4
|
+
const useNewsroomContext_1 = require("./useNewsroomContext");
|
|
5
5
|
function useCategories() {
|
|
6
|
-
const context = (0,
|
|
6
|
+
const context = (0, useNewsroomContext_1.useNewsroomContext)();
|
|
7
7
|
return context.categories;
|
|
8
8
|
}
|
|
9
9
|
exports.useCategories = useCategories;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCategories.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useCategories.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,SAAgB,aAAa;IACzB,MAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,UAAU,CAAC;AAC9B,CAAC;AAJD,sCAIC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCompanyInformation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const useNewsroomContext_1 = require("./useNewsroomContext");
|
|
5
5
|
function useCompanyInformation() {
|
|
6
|
-
const context = (0,
|
|
6
|
+
const context = (0, useNewsroomContext_1.useNewsroomContext)();
|
|
7
7
|
return context.companyInformation;
|
|
8
8
|
}
|
|
9
9
|
exports.useCompanyInformation = useCompanyInformation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompanyInformation.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useCompanyInformation.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,SAAgB,qBAAqB;IACjC,MAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,kBAAkB,CAAC;AACtC,CAAC;AAJD,sDAIC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCurrentCategory = void 0;
|
|
4
|
-
const
|
|
4
|
+
const useNewsroomContext_1 = require("./useNewsroomContext");
|
|
5
5
|
function useCurrentCategory() {
|
|
6
|
-
const context = (0,
|
|
6
|
+
const context = (0, useNewsroomContext_1.useNewsroomContext)();
|
|
7
7
|
return context.currentCategory;
|
|
8
8
|
}
|
|
9
9
|
exports.useCurrentCategory = useCurrentCategory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCurrentCategory.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useCurrentCategory.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,SAAgB,kBAAkB;IAC9B,MAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,eAAe,CAAC;AACnC,CAAC;AAJD,gDAIC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCurrentLocale = void 0;
|
|
4
|
-
const
|
|
4
|
+
const useNewsroomContext_1 = require("./useNewsroomContext");
|
|
5
5
|
function useCurrentLocale() {
|
|
6
|
-
const context = (0,
|
|
6
|
+
const context = (0, useNewsroomContext_1.useNewsroomContext)();
|
|
7
7
|
return context.locale;
|
|
8
8
|
}
|
|
9
9
|
exports.useCurrentLocale = useCurrentLocale;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCurrentLocale.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useCurrentLocale.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,SAAgB,gBAAgB;IAC5B,MAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,MAAM,CAAC;AAC1B,CAAC;AAJD,4CAIC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCurrentStory = void 0;
|
|
4
|
-
const
|
|
4
|
+
const useNewsroomContext_1 = require("./useNewsroomContext");
|
|
5
5
|
function useCurrentStory() {
|
|
6
|
-
const context = (0,
|
|
6
|
+
const context = (0, useNewsroomContext_1.useNewsroomContext)();
|
|
7
7
|
return context.currentStory;
|
|
8
8
|
}
|
|
9
9
|
exports.useCurrentStory = useCurrentStory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCurrentStory.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useCurrentStory.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,SAAgB,eAAe;IAC3B,MAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,YAAY,CAAC;AAChC,CAAC;AAJD,0CAIC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useGetLinkLocaleSlug = void 0;
|
|
4
4
|
const theme_kit_core_1 = require("@prezly/theme-kit-core");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const useCurrentLocale_1 = require("./useCurrentLocale");
|
|
7
|
+
const useLanguages_1 = require("./useLanguages");
|
|
8
8
|
/**
|
|
9
9
|
* Determines correct locale slug for the link (trying to shorten the locale code if possible).
|
|
10
10
|
* E.g. if newsroom has a single locale for Dutch (`nl_BE`), it will be shortened to `nl`.
|
|
@@ -20,8 +20,8 @@ function getLinkLocaleSlug(languages, locale) {
|
|
|
20
20
|
return theme_kit_core_1.LocaleObject.fromAnyCode(shortestLocaleCode).toUrlSlug();
|
|
21
21
|
}
|
|
22
22
|
function useGetLinkLocaleSlug() {
|
|
23
|
-
const currentLocale = (0,
|
|
24
|
-
const languages = (0,
|
|
23
|
+
const currentLocale = (0, useCurrentLocale_1.useCurrentLocale)();
|
|
24
|
+
const languages = (0, useLanguages_1.useLanguages)();
|
|
25
25
|
// The `locale` parameter is mainly used for Language Dropdown
|
|
26
26
|
return (0, react_1.useCallback)((locale) => getLinkLocaleSlug(languages, locale || currentLocale), [languages, currentLocale]);
|
|
27
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetLinkLocaleSlug.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useGetLinkLocaleSlug.ts"],"names":[],"mappings":";;;AACA,2DAA6E;AAC7E,iCAAoC;AAEpC,yDAAsD;AACtD,iDAA8C;AAE9C;;;;;GAKG;AACH,SAAS,iBAAiB,CACtB,SAAqC,EACrC,MAAoB;IAEpB,MAAM,kBAAkB,GAAG,IAAA,sCAAqB,EAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACpE,8EAA8E;IAC9E,IAAI,CAAC,kBAAkB,EAAE;QACrB,OAAO,kBAAkB,CAAC;KAC7B;IAED,OAAO,6BAAY,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,SAAS,EAAE,CAAC;AACpE,CAAC;AAED,SAAgB,oBAAoB;IAChC,MAAM,aAAa,GAAG,IAAA,mCAAgB,GAAE,CAAC;IACzC,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IAEjC,8DAA8D;IAC9D,OAAO,IAAA,mBAAW,EACd,CAAC,MAAqB,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,EAAE,MAAM,IAAI,aAAa,CAAC,EAChF,CAAC,SAAS,EAAE,aAAa,CAAC,CAC7B,CAAC;AACN,CAAC;AATD,oDASC"}
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useGetTranslationUrl = void 0;
|
|
4
4
|
const sdk_1 = require("@prezly/sdk");
|
|
5
5
|
const theme_kit_core_1 = require("@prezly/theme-kit-core");
|
|
6
|
-
const
|
|
6
|
+
const router_1 = require("next/router");
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const useCurrentCategory_1 = require("./useCurrentCategory");
|
|
9
|
+
const useCurrentStory_1 = require("./useCurrentStory");
|
|
10
10
|
// Pulled from SDK types to not leak the `@prezly/sdk` dependency into the client bundle
|
|
11
11
|
// It looks like a hack, but the name of enum must be the same as in SDK
|
|
12
12
|
var Visibility;
|
|
@@ -66,9 +66,9 @@ function getTranslationUrl(locale, path, currentCategory, currentStory, noFallba
|
|
|
66
66
|
* `noFallback` parameter is useful for alternate language links in the `head` section of the document (so that there are no unwanted links to the homepage).
|
|
67
67
|
*/
|
|
68
68
|
function useGetTranslationUrl() {
|
|
69
|
-
const { asPath } = (0,
|
|
70
|
-
const currentCategory = (0,
|
|
71
|
-
const currentStory = (0,
|
|
69
|
+
const { asPath } = (0, router_1.useRouter)();
|
|
70
|
+
const currentCategory = (0, useCurrentCategory_1.useCurrentCategory)();
|
|
71
|
+
const currentStory = (0, useCurrentStory_1.useCurrentStory)();
|
|
72
72
|
return (0, react_1.useCallback)((locale, noFallback) => getTranslationUrl(locale, asPath, currentCategory, currentStory, noFallback), [asPath, currentCategory, currentStory]);
|
|
73
73
|
}
|
|
74
74
|
exports.useGetTranslationUrl = useGetTranslationUrl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetTranslationUrl.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useGetTranslationUrl.ts"],"names":[],"mappings":";;;AACA,qCAAoC;AAEpC,2DAAmF;AACnF,wCAAwC;AACxC,iCAAoC;AAEpC,6DAA0D;AAC1D,uDAAoD;AAEpD,wFAAwF;AACxF,wEAAwE;AACxE,IAAK,UAKJ;AALD,WAAK,UAAU;IACX,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,2CAA6B,CAAA;AACjC,CAAC,EALI,UAAU,KAAV,UAAU,QAKd;AAED,SAAS,qCAAqC,CAAC,KAAoB;IAC/D,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAE7B,QAAQ,UAAU,EAAE;QAChB,KAAK,UAAU,CAAC,OAAO;YACnB,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QACnD,KAAK,UAAU,CAAC,OAAO;YACnB,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QACnD,KAAK,UAAU,CAAC,YAAY;YACxB,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAC5E;YACI,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;K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MAAoB,EAAE,UAAoB,EAAE,EAAE,CAC3C,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,CAAC,EAChF,CAAC,MAAM,EAAE,eAAe,EAAE,YAAY,CAAC,CAC1C,CAAC;AACN,CAAC;AAVD,oDAUC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLanguages = void 0;
|
|
4
|
-
const
|
|
4
|
+
const useNewsroomContext_1 = require("./useNewsroomContext");
|
|
5
5
|
function useLanguages() {
|
|
6
|
-
const context = (0,
|
|
6
|
+
const context = (0, useNewsroomContext_1.useNewsroomContext)();
|
|
7
7
|
return context.languages;
|
|
8
8
|
}
|
|
9
9
|
exports.useLanguages = useLanguages;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLanguages.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useLanguages.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,SAAgB,YAAY;IACxB,MAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,SAAS,CAAC;AAC7B,CAAC;AAJD,oCAIC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useNewsroom = void 0;
|
|
4
|
-
const
|
|
4
|
+
const useNewsroomContext_1 = require("./useNewsroomContext");
|
|
5
5
|
function useNewsroom() {
|
|
6
|
-
const context = (0,
|
|
6
|
+
const context = (0, useNewsroomContext_1.useNewsroomContext)();
|
|
7
7
|
return context.newsroom;
|
|
8
8
|
}
|
|
9
9
|
exports.useNewsroom = useNewsroom;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNewsroom.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useNewsroom.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,SAAgB,WAAW;IACvB,MAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,QAAQ,CAAC;AAC5B,CAAC;AAJD,kCAIC"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useNewsroomContext = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const
|
|
5
|
+
const context_1 = require("../context");
|
|
6
6
|
function useNewsroomContext() {
|
|
7
7
|
// TS Compiler is having a hard time figuring this type implicitly, so we have to set it explicitly
|
|
8
8
|
// See https://github.com/microsoft/TypeScript/issues/5711#issuecomment-340283439
|
|
9
|
-
const newsroomContext = (0, react_1.useContext)(
|
|
9
|
+
const newsroomContext = (0, react_1.useContext)(context_1.NewsroomContext);
|
|
10
10
|
if (!newsroomContext) {
|
|
11
11
|
throw new Error('No `NewsroomContextProvider` found when calling `useNewsroomContext`');
|
|
12
12
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNewsroomContext.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useNewsroomContext.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AAGnC,wCAA6C;AAE7C,SAAgB,kBAAkB;IAC9B,mGAAmG;IACnG,iFAAiF;IACjF,MAAM,eAAe,GAAoC,IAAA,kBAAU,EAAC,yBAAe,CAAC,CAAC;IACrF,IAAI,CAAC,eAAe,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;KAC3F;IAED,OAAO,eAAe,CAAC;AAC3B,CAAC;AATD,gDASC"}
|
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.NewsroomContextProvider = exports.NewsroomContext = void 0;
|
|
18
|
-
var
|
|
19
|
-
Object.defineProperty(exports, "NewsroomContext", { enumerable: true, get: function () { return
|
|
20
|
-
Object.defineProperty(exports, "NewsroomContextProvider", { enumerable: true, get: function () { return
|
|
21
|
-
__exportStar(require("./hooks
|
|
18
|
+
var context_1 = require("./context");
|
|
19
|
+
Object.defineProperty(exports, "NewsroomContext", { enumerable: true, get: function () { return context_1.NewsroomContext; } });
|
|
20
|
+
Object.defineProperty(exports, "NewsroomContextProvider", { enumerable: true, get: function () { return context_1.NewsroomContextProvider; } });
|
|
21
|
+
__exportStar(require("./hooks"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/newsroom-context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAgG;AAAvF,0GAAA,eAAe,OAAA;AAAE,kHAAA,uBAAuB,OAAA;AACjD,0CAAwB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSentryClientOptions = void 0;
|
|
4
|
-
const
|
|
4
|
+
const common_1 = require("./common");
|
|
5
5
|
function getSentryClientOptions(dsn, themeName) {
|
|
6
|
-
return (0,
|
|
6
|
+
return (0, common_1.getCommonClientOptions)(dsn, themeName);
|
|
7
7
|
}
|
|
8
8
|
exports.getSentryClientOptions = getSentryClientOptions;
|
|
9
9
|
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/sentry/client.ts"],"names":[],"mappings":";;;AAEA,qCAAkD;AAElD,SAAgB,sBAAsB,CAClC,GAAW,EACX,SAAwB;IAExB,OAAO,IAAA,+BAAsB,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC;AAClD,CAAC;AALD,wDAKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/sentry/common.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC3B,0EAA0E;IAC1E,4IAA4I;IAC5I,sGAAsG;IACtG,aAAa;IACb,gBAAgB;IAChB,aAAa;CAChB,CAAC;AAEF,SAAS,yBAAyB,CAAC,KAAiB;IAChD,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAEpD,IACI,QAAQ;QACR,sBAAsB,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,EACpF;QACE,OAAO,IAAI,CAAC;KACf;IAED,IACI,aAAa;QACb,sBAAsB,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,EACzF;QACE,OAAO,IAAI,CAAC;KACf;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,wBAAwB,CAAC,SAAoB;IAClD,MAAM,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IAEjC,0EAA0E;IAC1E,2EAA2E;IAC3E,IAAI,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,yBAAyB,CAAC,EAAE;QAClE,OAAO,IAAI,CAAC;KACf;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,sBAAsB,CAClC,GAAW,EACX,SAAwB;IAExB,OAAO;QACH,GAAG;QACH,4EAA4E;QAC5E,gBAAgB,EAAE,IAAI;QACtB,MAAM;QACN,0EAA0E;QAC1E,2EAA2E;QAC3E,qDAAqD;QAErD,YAAY,EAAE;YACV,2EAA2E;YAC3E,kGAAkG;YAClG,yGAAyG;YACzG,8BAA8B;YAC9B,oIAAoI;YACpI,oBAAoB;SACvB;QAED,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,IAAI,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC,EAAE;gBAC1D,OAAO,IAAI,CAAC;aACf;YAED,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,iCAAiC;QACjC,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE;YACpB,IAAI,SAAS,EAAE;gBACX,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC;aAC9C;YACD,OAAO,KAAK,CAAC;QACjB,CAAC;KACJ,CAAC;AACN,CAAC;AAtCD,wDAsCC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSentryServerOptions = exports.getSentryClientOptions = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "getSentryClientOptions", { enumerable: true, get: function () { return
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "getSentryServerOptions", { enumerable: true, get: function () { return
|
|
4
|
+
var client_1 = require("./client");
|
|
5
|
+
Object.defineProperty(exports, "getSentryClientOptions", { enumerable: true, get: function () { return client_1.getSentryClientOptions; } });
|
|
6
|
+
var server_1 = require("./server");
|
|
7
|
+
Object.defineProperty(exports, "getSentryServerOptions", { enumerable: true, get: function () { return server_1.getSentryServerOptions; } });
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sentry/index.ts"],"names":[],"mappings":";;;AAAA,mCAAkD;AAAzC,gHAAA,sBAAsB,OAAA;AAC/B,mCAAkD;AAAzC,gHAAA,sBAAsB,OAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSentryServerOptions = void 0;
|
|
4
|
-
const
|
|
4
|
+
const common_1 = require("./common");
|
|
5
5
|
function getSentryServerOptions(dsn, themeName) {
|
|
6
|
-
return (0,
|
|
6
|
+
return (0, common_1.getCommonClientOptions)(dsn, themeName);
|
|
7
7
|
}
|
|
8
8
|
exports.getSentryServerOptions = getSentryServerOptions;
|
|
9
9
|
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/sentry/server.ts"],"names":[],"mappings":";;;AAEA,qCAAkD;AAElD,SAAgB,sBAAsB,CAClC,GAAW,EACX,SAAwB;IAExB,OAAO,IAAA,+BAAsB,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC;AAClD,CAAC;AALD,wDAKC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NewsroomContextProps } from './newsroom-context
|
|
1
|
+
import type { NewsroomContextProps } from './newsroom-context';
|
|
2
2
|
export interface ServerSidePageProps {
|
|
3
3
|
/**
|
|
4
4
|
* Indicates whether the locale requested by the Next application was correctly resolved to an active newsroom locale.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,38 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prezly/theme-kit-nextjs",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "Data layer and utility library for developing Prezly themes with NextJS",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"types": "build/types/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./build/esm/index.js",
|
|
11
|
-
"require": "./build/cjs/index.js",
|
|
12
|
-
"default": "./build/esm/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./client": {
|
|
15
|
-
"import": "./build/esm/client.js",
|
|
16
|
-
"require": "./build/cjs/client.js",
|
|
17
|
-
"default": "./build/esm/client.js"
|
|
18
|
-
},
|
|
19
|
-
"./server": {
|
|
20
|
-
"import": "./build/esm/server.js",
|
|
21
|
-
"require": "./build/cjs/server.js",
|
|
22
|
-
"default": "./build/esm/server.js"
|
|
23
|
-
},
|
|
24
|
-
"./i18nConfig": "./build/cjs/i18nConfig.cjs"
|
|
25
|
-
},
|
|
26
|
-
"typesVersions": {
|
|
27
|
-
"*": {
|
|
28
|
-
"client": [
|
|
29
|
-
"build/types/client.d.ts"
|
|
30
|
-
],
|
|
31
|
-
"server": [
|
|
32
|
-
"build/types/server.d.ts"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
},
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"types": "build/index.d.ts",
|
|
36
7
|
"files": [
|
|
37
8
|
"build",
|
|
38
9
|
"README.md"
|
|
@@ -62,16 +33,14 @@
|
|
|
62
33
|
"homepage": "https://github.com/prezly/theme-kit-js/tree/main/packages/nextjs#readme",
|
|
63
34
|
"scripts": {
|
|
64
35
|
"prebuild": "rimraf build/* *.tsbuildinfo",
|
|
65
|
-
"build
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"dev": "tsc --watch --preserveWatchOutput --project tsconfig.base.json",
|
|
69
|
-
"typecheck": "tsc --noEmit --incremental --project tsconfig.base.json",
|
|
36
|
+
"build": "tsc --project .",
|
|
37
|
+
"dev": "tsc --watch --preserveWatchOutput --project .",
|
|
38
|
+
"typecheck": "tsc --noEmit --incremental --project .",
|
|
70
39
|
"lint": "eslint src",
|
|
71
40
|
"test": "jest"
|
|
72
41
|
},
|
|
73
42
|
"peerDependencies": {
|
|
74
|
-
"@prezly/theme-kit-core": "^4.
|
|
43
|
+
"@prezly/theme-kit-core": "^4.0.1-alpha",
|
|
75
44
|
"next": "^12.x || ^13.x",
|
|
76
45
|
"react": "^17.x || ^18.x",
|
|
77
46
|
"react-dom": "^17.x || ^18.x"
|
|
@@ -82,13 +51,12 @@
|
|
|
82
51
|
"next-seo": "^5.4.0"
|
|
83
52
|
},
|
|
84
53
|
"devDependencies": {
|
|
85
|
-
"@prezly/theme-kit-core": "^4.
|
|
86
|
-
"@sentry/nextjs": "7.49.0"
|
|
87
|
-
"rimraf": "3.0.2"
|
|
54
|
+
"@prezly/theme-kit-core": "^4.2.0",
|
|
55
|
+
"@sentry/nextjs": "7.49.0"
|
|
88
56
|
},
|
|
89
57
|
"publishConfig": {
|
|
90
58
|
"access": "public"
|
|
91
59
|
},
|
|
92
60
|
"sideEffects": false,
|
|
93
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "40768fae7e50678dedb2f4b173fa7f17ea9ed1eb"
|
|
94
62
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchGalleries.js","sourceRoot":"","sources":["../../../../src/adapter-nextjs/api-handlers/fetchGalleries.ts"],"names":[],"mappings":";;;AAEA,2DAAgE;AAEzD,KAAK,UAAU,cAAc,CAAC,GAAmB,EAAE,GAAoB;IAC1E,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE;QACvB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChB,OAAO;KACV;IAED,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAEpC,IAAI;QACA,MAAM,GAAG,GAAG,IAAA,2BAAgB,EAAC,GAAG,CAAC,CAAC;QAElC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEjE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;KACvC;IAAC,OAAO,KAAK,EAAE;QACZ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACjB,OAAO,EAAG,KAAe,CAAC,OAAO;SACpC,CAAC,CAAC;KACN;AACL,CAAC;AAnBD,wCAmBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchStories.js","sourceRoot":"","sources":["../../../../src/adapter-nextjs/api-handlers/fetchStories.ts"],"names":[],"mappings":";;;AAEA,2DAAgE;AAEzD,KAAK,UAAU,YAAY,CAAC,GAAmB,EAAE,GAAoB;IACxE,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE;QACvB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChB,OAAO;KACV;IAED,MAAM,EACF,IAAI,EACJ,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,OAAO,EACP,UAAU,EACV,OAAO,EACP,WAAW,GACd,GAAG,GAAG,CAAC,IAAI,CAAC;IAEb,IAAI;QACA,MAAM,GAAG,GAAG,IAAA,2BAAgB,EAAC,GAAG,CAAC,CAAC;QAElC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,QAAQ;YAC/B,CAAC,CAAC,GAAG,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;YAC/E,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC;gBACX,IAAI;gBACJ,QAAQ;gBACR,OAAO;gBACP,UAAU;gBACV,oBAAoB;gBACpB,OAAO;gBACP,WAAW;aACd,CAAC,CAAC,CAAC;QAEV,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;KACrC;IAAC,OAAO,KAAK,EAAE;QACZ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACjB,OAAO,EAAG,KAAe,CAAC,OAAO;SACpC,CAAC,CAAC;KACN;AACL,CAAC;AAtCD,oCAsCC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchStories = exports.fetchGalleries = void 0;
|
|
4
|
-
var fetchGalleries_js_1 = require("./fetchGalleries.js");
|
|
5
|
-
Object.defineProperty(exports, "fetchGalleries", { enumerable: true, get: function () { return fetchGalleries_js_1.fetchGalleries; } });
|
|
6
|
-
var fetchStories_js_1 = require("./fetchStories.js");
|
|
7
|
-
Object.defineProperty(exports, "fetchStories", { enumerable: true, get: function () { return fetchStories_js_1.fetchStories; } });
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapter-nextjs/api-handlers/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAA5C,mHAAA,cAAc,OAAA;AACvB,qDAAiD;AAAxC,+GAAA,YAAY,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNewsroomServerSideProps.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/getNewsroomServerSideProps.ts"],"names":[],"mappings":";;;AAGA,wDAA6D;AAO7D;;;GAGG;AACI,KAAK,UAAU,0BAA0B,CAC5C,OAAkC,EAClC,UAAmB,EAAE;IAErB,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEzC,MAAM,GAAG,GAAG,IAAA,2BAAgB,EAAC,OAAO,CAAC,CAAC;IACtC,MAAM,eAAe,GAAG,MAAM,GAAG,CAAC,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE7F,IAAI,OAAO,CAAC,oBAAoB,EAAE;QAC9B,eAAe,CAAC,oBAAoB,CAAC,QAAQ,GAAG,MAAM,GAAG,CAAC,mBAAmB,EAAE,CAAC;KACnF;IAED,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;AACpC,CAAC;AAdD,gEAcC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNewsroomStaticProps.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/getNewsroomStaticProps.ts"],"names":[],"mappings":";;;AAGA,wDAA6D;AAO7D;;;GAGG;AACI,KAAK,UAAU,sBAAsB,CACxC,OAA8B,EAC9B,UAAmB,EAAE;IAErB,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE3B,MAAM,GAAG,GAAG,IAAA,2BAAgB,GAAE,CAAC;IAC/B,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE3F,IAAI,OAAO,CAAC,oBAAoB,EAAE;QAC9B,WAAW,CAAC,oBAAoB,CAAC,QAAQ,GAAG,MAAM,GAAG,CAAC,mBAAmB,EAAE,CAAC;KAC/E;IAED,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;AAChC,CAAC;AAdD,wDAcC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,kEAAgD;AAChD,8DAA4C;AAC5C,wDAAsC;AACtC,sDAAoC;AACpC,4DAA0C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../../src/adapter-nextjs/page-props/category.ts"],"names":[],"mappings":";;;AACA,2DAAmG;AASnG,2DAAgE;AAEhE,oFAA8E;AAC9E,4EAAsE;AACtE,4DAAsD;AACtD,wEAAkE;AAclE,SAAgB,8BAA8B,CAG5C,WAAqD,EAAE,OAAiB;IACtE,MAAM,EAAE,QAAQ,GAAG,kCAAiB,EAAE,gBAAgB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAEzE,OAAO,KAAK,UAAU,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