@wix/blog 1.0.700 → 1.0.702

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.
@@ -3342,6 +3342,11 @@ type PostContextType = PostDerivedData & {
3342
3342
  * the like state changes, so you can use it as an effect dependency.
3343
3343
  */
3344
3344
  relatedPostsSource: RelatedPostsSource;
3345
+ /**
3346
+ * Whether site visitors can comment on the post, as set in the Blog dashboard. `undefined`
3347
+ * while the post loads, when there's no post, and when the post doesn't say.
3348
+ */
3349
+ commentingEnabled: boolean | undefined;
3345
3350
  /**
3346
3351
  * Whether the post is still loading. While it's `true`, the other properties are empty.
3347
3352
  * Use it to show a placeholder instead of empty content.
@@ -419,6 +419,14 @@ interface RelatedPostsContextType {
419
419
  * Preview, where it holds sample posts.
420
420
  */
421
421
  hasError: boolean;
422
+ /**
423
+ * Whether there are related posts to show: `true` exactly when `relatedPosts` isn't empty.
424
+ *
425
+ * `false` while the posts load for the first time, when they fail to load, and when the
426
+ * current post has no related posts. In the editor, but not in Preview, it's `true` while
427
+ * `relatedPosts` holds sample posts.
428
+ */
429
+ hasRelatedPosts: boolean;
422
430
  }
423
431
  /**
424
432
  * The Related Posts context provides access to a list of blog posts related to the current
@@ -3342,6 +3342,11 @@ type PostContextType = PostDerivedData & {
3342
3342
  * the like state changes, so you can use it as an effect dependency.
3343
3343
  */
3344
3344
  relatedPostsSource: RelatedPostsSource;
3345
+ /**
3346
+ * Whether site visitors can comment on the post, as set in the Blog dashboard. `undefined`
3347
+ * while the post loads, when there's no post, and when the post doesn't say.
3348
+ */
3349
+ commentingEnabled: boolean | undefined;
3345
3350
  /**
3346
3351
  * Whether the post is still loading. While it's `true`, the other properties are empty.
3347
3352
  * Use it to show a placeholder instead of empty content.
@@ -419,6 +419,14 @@ interface RelatedPostsContextType {
419
419
  * Preview, where it holds sample posts.
420
420
  */
421
421
  hasError: boolean;
422
+ /**
423
+ * Whether there are related posts to show: `true` exactly when `relatedPosts` isn't empty.
424
+ *
425
+ * `false` while the posts load for the first time, when they fail to load, and when the
426
+ * current post has no related posts. In the editor, but not in Preview, it's `true` while
427
+ * `relatedPosts` holds sample posts.
428
+ */
429
+ hasRelatedPosts: boolean;
422
430
  }
423
431
  /**
424
432
  * The Related Posts context provides access to a list of blog posts related to the current
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/blog",
3
- "version": "1.0.700",
3
+ "version": "1.0.702",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -181,5 +181,5 @@
181
181
  "optional": true
182
182
  }
183
183
  },
184
- "falconPackageHash": "bb9a244b1ae8c04cb831bc4e9c1a6b1f5a4753db7d4fcab93f178312"
184
+ "falconPackageHash": "f3427f7d7a038f5d1e240bb7e47a1cdae6a18bc730bebae2ee3a77c3"
185
185
  }