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

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.
@@ -8,8 +8,8 @@ export type IAboveTheFoldServiceConfig = {
8
8
  [key: CompId | CompPath]: boolean;
9
9
  };
10
10
  /**
11
- * Checks whether a component on the current page is above the fold, meaning it's visible when the page
12
- * first loads, before a site visitor scrolls.
11
+ * Checks whether a component on the current page is above the fold, meaning the page's layout places it
12
+ * in the part of the page shown before a site visitor scrolls.
13
13
  */
14
14
  export interface IAboveTheFoldService {
15
15
  /**
@@ -60,10 +60,7 @@ export interface IAboveTheFoldService {
60
60
  *
61
61
  * @example Preload the images of components above the fold
62
62
  * ```ts
63
- * import { AboveTheFoldDefinition } from '@wix/site-service-above-the-fold/definition'
64
- *
65
- * const aboveTheFoldService = servicesManager.getService(AboveTheFoldDefinition)
66
- *
63
+ * // aboveTheFoldService is resolved from @wix/site-service-above-the-fold, as in the first example.
67
64
  * function imagesToPreload(images: { compId: string; src: string }[]) {
68
65
  * return images
69
66
  * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId) === true)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAkF5C,QAAA,sBAAsB,GAAG,IAAA,oCAAa,EAClD,kCAAkC,CAClC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AA+E5C,QAAA,sBAAsB,GAAG,IAAA,oCAAa,EAClD,kCAAkC,CAClC,CAAA"}
@@ -8,8 +8,8 @@ export type IAboveTheFoldServiceConfig = {
8
8
  [key: CompId | CompPath]: boolean;
9
9
  };
10
10
  /**
11
- * Checks whether a component on the current page is above the fold, meaning it's visible when the page
12
- * first loads, before a site visitor scrolls.
11
+ * Checks whether a component on the current page is above the fold, meaning the page's layout places it
12
+ * in the part of the page shown before a site visitor scrolls.
13
13
  */
14
14
  export interface IAboveTheFoldService {
15
15
  /**
@@ -60,10 +60,7 @@ export interface IAboveTheFoldService {
60
60
  *
61
61
  * @example Preload the images of components above the fold
62
62
  * ```ts
63
- * import { AboveTheFoldDefinition } from '@wix/site-service-above-the-fold/definition'
64
- *
65
- * const aboveTheFoldService = servicesManager.getService(AboveTheFoldDefinition)
66
- *
63
+ * // aboveTheFoldService is resolved from @wix/site-service-above-the-fold, as in the first example.
67
64
  * function imagesToPreload(images: { compId: string; src: string }[]) {
68
65
  * return images
69
66
  * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId) === true)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAkFzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAClD,kCAAkC,CAClC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AA+EzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAClD,kCAAkC,CAClC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-service-above-the-fold",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "dist",
@@ -77,5 +77,5 @@
77
77
  ]
78
78
  }
79
79
  },
80
- "falconPackageHash": "ee484956d5ae8e2abf96bf98aacf631d1c238d9fafbc622abefd5d42"
80
+ "falconPackageHash": "5f828eba1c426bb6c3b6bdc5d7f88c9f7634dab351e26be6cdf4cf5b"
81
81
  }
@@ -12,8 +12,8 @@ export type IAboveTheFoldServiceConfig = {
12
12
  }
13
13
 
14
14
  /**
15
- * Checks whether a component on the current page is above the fold, meaning it's visible when the page
16
- * first loads, before a site visitor scrolls.
15
+ * Checks whether a component on the current page is above the fold, meaning the page's layout places it
16
+ * in the part of the page shown before a site visitor scrolls.
17
17
  */
18
18
  export interface IAboveTheFoldService {
19
19
  /**
@@ -64,10 +64,7 @@ export interface IAboveTheFoldService {
64
64
  *
65
65
  * @example Preload the images of components above the fold
66
66
  * ```ts
67
- * import { AboveTheFoldDefinition } from '@wix/site-service-above-the-fold/definition'
68
- *
69
- * const aboveTheFoldService = servicesManager.getService(AboveTheFoldDefinition)
70
- *
67
+ * // aboveTheFoldService is resolved from @wix/site-service-above-the-fold, as in the first example.
71
68
  * function imagesToPreload(images: { compId: string; src: string }[]) {
72
69
  * return images
73
70
  * .filter(({ compId }) => aboveTheFoldService.isInFirstFold(compId) === true)