@prezly/theme-kit-nextjs 1.1.4 → 1.2.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.
Files changed (59) hide show
  1. package/README.md +36 -64
  2. package/build/adapter-nextjs/getNewsroomServerSideProps.d.ts +9 -0
  3. package/build/adapter-nextjs/{getBasePageProps.js → getNewsroomServerSideProps.js} +9 -9
  4. package/build/adapter-nextjs/getNewsroomServerSideProps.js.map +1 -0
  5. package/build/adapter-nextjs/index.d.ts +1 -1
  6. package/build/adapter-nextjs/index.js +1 -1
  7. package/build/adapter-nextjs/index.js.map +1 -1
  8. package/build/adapter-nextjs/processRequest.d.ts +2 -2
  9. package/build/adapter-nextjs/processRequest.js +19 -14
  10. package/build/adapter-nextjs/processRequest.js.map +1 -1
  11. package/build/data-fetching/api/PrezlyApi.d.ts +2 -2
  12. package/build/data-fetching/api/PrezlyApi.js +11 -11
  13. package/build/data-fetching/api/PrezlyApi.js.map +1 -1
  14. package/build/data-fetching/getNewsroomLogoUrl.js +1 -1
  15. package/build/data-fetching/getNewsroomLogoUrl.js.map +1 -1
  16. package/build/intl/locale.d.ts +1 -2
  17. package/build/intl/locale.js +1 -2
  18. package/build/intl/locale.js.map +1 -1
  19. package/build/newsroom-context/context.d.ts +7 -9
  20. package/build/newsroom-context/context.js +17 -25
  21. package/build/newsroom-context/context.js.map +1 -1
  22. package/build/newsroom-context/hooks/index.d.ts +2 -2
  23. package/build/newsroom-context/hooks/index.js +2 -2
  24. package/build/newsroom-context/hooks/index.js.map +1 -1
  25. package/build/newsroom-context/hooks/useCurrentCategory.d.ts +1 -0
  26. package/build/newsroom-context/hooks/useCurrentCategory.js +10 -0
  27. package/build/newsroom-context/hooks/useCurrentCategory.js.map +1 -0
  28. package/build/newsroom-context/hooks/useCurrentStory.d.ts +1 -0
  29. package/build/newsroom-context/hooks/{useSelectedStory.js → useCurrentStory.js} +5 -5
  30. package/build/newsroom-context/hooks/useCurrentStory.js.map +1 -0
  31. package/build/newsroom-context/hooks/useGetTranslationUrl.js +12 -12
  32. package/build/newsroom-context/hooks/useGetTranslationUrl.js.map +1 -1
  33. package/build/newsroom-context/hooks/useNewsroomContext.d.ts +2 -2
  34. package/build/newsroom-context/hooks/useNewsroomContext.js.map +1 -1
  35. package/build/newsroom-context/index.d.ts +1 -1
  36. package/build/newsroom-context/index.js.map +1 -1
  37. package/build/types.d.ts +6 -20
  38. package/package.json +21 -4
  39. package/src/adapter-nextjs/{getBasePageProps.ts → getNewsroomServerSideProps.ts} +6 -6
  40. package/src/adapter-nextjs/index.ts +1 -1
  41. package/src/adapter-nextjs/processRequest.ts +20 -12
  42. package/src/data-fetching/api/PrezlyApi.ts +12 -13
  43. package/src/data-fetching/getNewsroomLogoUrl.ts +1 -1
  44. package/src/intl/locale.ts +1 -4
  45. package/src/newsroom-context/context.tsx +11 -14
  46. package/src/newsroom-context/hooks/index.ts +2 -2
  47. package/src/newsroom-context/hooks/{useSelectedCategory.ts → useCurrentCategory.ts} +2 -2
  48. package/src/newsroom-context/hooks/{useSelectedStory.ts → useCurrentStory.ts} +2 -2
  49. package/src/newsroom-context/hooks/useGetTranslationUrl.ts +13 -13
  50. package/src/newsroom-context/hooks/useNewsroomContext.ts +2 -2
  51. package/src/newsroom-context/index.ts +1 -1
  52. package/src/types.ts +9 -32
  53. package/build/adapter-nextjs/getBasePageProps.d.ts +0 -9
  54. package/build/adapter-nextjs/getBasePageProps.js.map +0 -1
  55. package/build/newsroom-context/hooks/useSelectedCategory.d.ts +0 -1
  56. package/build/newsroom-context/hooks/useSelectedCategory.js +0 -10
  57. package/build/newsroom-context/hooks/useSelectedCategory.js.map +0 -1
  58. package/build/newsroom-context/hooks/useSelectedStory.d.ts +0 -1
  59. package/build/newsroom-context/hooks/useSelectedStory.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSelectedStory.js","sourceRoot":"","sources":["../../../src/newsroom-context/hooks/useSelectedStory.ts"],"names":[],"mappings":";;;AAAA,2DAA0D;AAEnD,IAAM,gBAAgB,GAAG;IAC5B,IAAM,OAAO,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAErC,OAAO,OAAO,CAAC,aAAa,CAAC;AACjC,CAAC,CAAC;AAJW,QAAA,gBAAgB,oBAI3B"}