@prezly/theme-kit-nextjs 1.1.3 → 1.2.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.
Files changed (56) hide show
  1. package/README.md +167 -3
  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/intl/locale.d.ts +1 -2
  15. package/build/intl/locale.js +1 -2
  16. package/build/intl/locale.js.map +1 -1
  17. package/build/newsroom-context/context.d.ts +8 -10
  18. package/build/newsroom-context/context.js +17 -25
  19. package/build/newsroom-context/context.js.map +1 -1
  20. package/build/newsroom-context/hooks/index.d.ts +2 -2
  21. package/build/newsroom-context/hooks/index.js +2 -2
  22. package/build/newsroom-context/hooks/index.js.map +1 -1
  23. package/build/newsroom-context/hooks/useCurrentCategory.d.ts +1 -0
  24. package/build/newsroom-context/hooks/useCurrentCategory.js +10 -0
  25. package/build/newsroom-context/hooks/useCurrentCategory.js.map +1 -0
  26. package/build/newsroom-context/hooks/useCurrentStory.d.ts +1 -0
  27. package/build/newsroom-context/hooks/{useSelectedStory.js → useCurrentStory.js} +5 -5
  28. package/build/newsroom-context/hooks/useCurrentStory.js.map +1 -0
  29. package/build/newsroom-context/hooks/useGetTranslationUrl.js +12 -12
  30. package/build/newsroom-context/hooks/useGetTranslationUrl.js.map +1 -1
  31. package/build/newsroom-context/hooks/useNewsroomContext.d.ts +2 -2
  32. package/build/newsroom-context/hooks/useNewsroomContext.js.map +1 -1
  33. package/build/newsroom-context/index.d.ts +1 -1
  34. package/build/newsroom-context/index.js.map +1 -1
  35. package/build/types.d.ts +6 -20
  36. package/package.json +21 -4
  37. package/src/adapter-nextjs/{getBasePageProps.ts → getNewsroomServerSideProps.ts} +6 -6
  38. package/src/adapter-nextjs/index.ts +1 -1
  39. package/src/adapter-nextjs/processRequest.ts +20 -12
  40. package/src/data-fetching/api/PrezlyApi.ts +12 -13
  41. package/src/intl/locale.ts +1 -4
  42. package/src/newsroom-context/context.tsx +12 -15
  43. package/src/newsroom-context/hooks/index.ts +2 -2
  44. package/src/newsroom-context/hooks/{useSelectedCategory.ts → useCurrentCategory.ts} +2 -2
  45. package/src/newsroom-context/hooks/{useSelectedStory.ts → useCurrentStory.ts} +2 -2
  46. package/src/newsroom-context/hooks/useGetTranslationUrl.ts +14 -14
  47. package/src/newsroom-context/hooks/useNewsroomContext.ts +2 -2
  48. package/src/newsroom-context/index.ts +1 -1
  49. package/src/types.ts +9 -31
  50. package/build/adapter-nextjs/getBasePageProps.d.ts +0 -9
  51. package/build/adapter-nextjs/getBasePageProps.js.map +0 -1
  52. package/build/newsroom-context/hooks/useSelectedCategory.d.ts +0 -1
  53. package/build/newsroom-context/hooks/useSelectedCategory.js +0 -10
  54. package/build/newsroom-context/hooks/useSelectedCategory.js.map +0 -1
  55. package/build/newsroom-context/hooks/useSelectedStory.d.ts +0 -1
  56. 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"}