@wix/blog 1.0.711 → 1.0.713

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 (41) hide show
  1. package/_sdk-exports/context-category-item/runtime.d.ts +6 -2
  2. package/_sdk-exports/context-post/runtime.d.ts +9 -1
  3. package/_sdk-exports/context-post-by-id/runtime.d.ts +8 -1
  4. package/_sdk-exports/context-post-by-id/runtime.js +2 -2
  5. package/_sdk-exports/context-post-by-slug/runtime.d.ts +7 -1
  6. package/_sdk-exports/context-post-by-slug/runtime.js +3 -3
  7. package/_sdk-exports/context-post-list-item/runtime.d.ts +6 -2
  8. package/_sdk-exports/context-tag-item/runtime.d.ts +5 -2
  9. package/build/cjs/context-category-item.d.ts +6 -2
  10. package/build/cjs/context-post-by-id.d.ts +9 -2
  11. package/build/cjs/context-post-by-id.js +15 -12
  12. package/build/cjs/context-post-by-id.js.map +1 -1
  13. package/build/cjs/context-post-by-slug.d.ts +8 -2
  14. package/build/cjs/context-post-by-slug.js +423 -420
  15. package/build/cjs/context-post-by-slug.js.map +1 -1
  16. package/build/cjs/context-post-list-item.d.ts +6 -2
  17. package/build/cjs/context-post.d.ts +9 -1
  18. package/build/cjs/context-tag-item.d.ts +5 -2
  19. package/build/es/context-category-item.d.mts +6 -2
  20. package/build/es/context-post-by-id.d.mts +9 -2
  21. package/build/es/context-post-by-id.mjs +15 -12
  22. package/build/es/context-post-by-id.mjs.map +1 -1
  23. package/build/es/context-post-by-slug.d.mts +8 -2
  24. package/build/es/context-post-by-slug.mjs +423 -420
  25. package/build/es/context-post-by-slug.mjs.map +1 -1
  26. package/build/es/context-post-list-item.d.mts +6 -2
  27. package/build/es/context-post.d.mts +9 -1
  28. package/build/es/context-tag-item.d.mts +5 -2
  29. package/build/internal/cjs/context-category-item.d.ts +6 -2
  30. package/build/internal/cjs/context-post-by-id.d.ts +9 -2
  31. package/build/internal/cjs/context-post-by-slug.d.ts +8 -2
  32. package/build/internal/cjs/context-post-list-item.d.ts +6 -2
  33. package/build/internal/cjs/context-post.d.ts +9 -1
  34. package/build/internal/cjs/context-tag-item.d.ts +5 -2
  35. package/build/internal/es/context-category-item.d.mts +6 -2
  36. package/build/internal/es/context-post-by-id.d.mts +9 -2
  37. package/build/internal/es/context-post-by-slug.d.mts +8 -2
  38. package/build/internal/es/context-post-list-item.d.mts +6 -2
  39. package/build/internal/es/context-post.d.mts +9 -1
  40. package/build/internal/es/context-tag-item.d.mts +5 -2
  41. package/package.json +2 -2
@@ -1,7 +1,13 @@
1
+ import { PostContextType } from "@wix/blog/post-context-provider";
1
2
  import React from "react";
2
- import { usePostContext as usePostBySlugContext } from "@wix/blog/post-context-provider";
3
3
 
4
4
  //#region src/extensions/post-by-slug-context-provider/post-by-slug-context-provider.d.ts
5
+ /**
6
+ * The Post Page context provides access to the blog post the page's URL names. Use it to show
7
+ * the post's content, author, publish date, counts, categories, and tags, and to let a site
8
+ * visitor like the post.
9
+ */
10
+ declare function usePostBySlugContext(): PostContextType;
5
11
  /** Props accepted by {@link PostBySlugProvider}. */
6
12
  interface PostBySlugProviderProps {
7
13
  children?: React.ReactNode;