@wix/site-service-above-the-fold 1.0.8 → 1.0.9

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.
@@ -44,7 +44,7 @@ export interface IAboveTheFoldService {
44
44
  *
45
45
  * function ProductImage({ id, src, alt }: { id: string; src: string; alt: string }) {
46
46
  * const aboveTheFoldService = useService(AboveTheFoldDefinition)
47
- * const isAboveTheFold = aboveTheFoldService.isInFirstFold(id) === true
47
+ * const isAboveTheFold = aboveTheFoldService.isInFirstFold(id)
48
48
  *
49
49
  * return (
50
50
  * <img
@@ -63,7 +63,7 @@ export interface IAboveTheFoldService {
63
63
  * // aboveTheFoldService is resolved from @wix/site-service-above-the-fold, as in the first example.
64
64
  * function imagesToPreload(images: { compId: string; src: string }[]) {
65
65
  * return images
66
- * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId) === true)
66
+ * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId))
67
67
  * .map(({ src }) => src)
68
68
  * }
69
69
  * ```
@@ -44,7 +44,7 @@ export interface IAboveTheFoldService {
44
44
  *
45
45
  * function ProductImage({ id, src, alt }: { id: string; src: string; alt: string }) {
46
46
  * const aboveTheFoldService = useService(AboveTheFoldDefinition)
47
- * const isAboveTheFold = aboveTheFoldService.isInFirstFold(id) === true
47
+ * const isAboveTheFold = aboveTheFoldService.isInFirstFold(id)
48
48
  *
49
49
  * return (
50
50
  * <img
@@ -63,7 +63,7 @@ export interface IAboveTheFoldService {
63
63
  * // aboveTheFoldService is resolved from @wix/site-service-above-the-fold, as in the first example.
64
64
  * function imagesToPreload(images: { compId: string; src: string }[]) {
65
65
  * return images
66
- * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId) === true)
66
+ * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId))
67
67
  * .map(({ src }) => src)
68
68
  * }
69
69
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-service-above-the-fold",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "dist",
@@ -77,5 +77,5 @@
77
77
  ]
78
78
  }
79
79
  },
80
- "falconPackageHash": "5f828eba1c426bb6c3b6bdc5d7f88c9f7634dab351e26be6cdf4cf5b"
80
+ "falconPackageHash": "1b4966441744c0c4963fa961348392be546f387aed6bf06abacb0b99"
81
81
  }
@@ -48,7 +48,7 @@ export interface IAboveTheFoldService {
48
48
  *
49
49
  * function ProductImage({ id, src, alt }: { id: string; src: string; alt: string }) {
50
50
  * const aboveTheFoldService = useService(AboveTheFoldDefinition)
51
- * const isAboveTheFold = aboveTheFoldService.isInFirstFold(id) === true
51
+ * const isAboveTheFold = aboveTheFoldService.isInFirstFold(id)
52
52
  *
53
53
  * return (
54
54
  * <img
@@ -67,7 +67,7 @@ export interface IAboveTheFoldService {
67
67
  * // aboveTheFoldService is resolved from @wix/site-service-above-the-fold, as in the first example.
68
68
  * function imagesToPreload(images: { compId: string; src: string }[]) {
69
69
  * return images
70
- * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId) === true)
70
+ * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId))
71
71
  * .map(({ src }) => src)
72
72
  * }
73
73
  * ```