@wix/site-service-above-the-fold 1.0.2 → 1.0.4
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.
- package/cjs/build/definition/index.js.map +1 -1
- package/cjs/build/implementations/aboveTheFoldService.js +1 -1
- package/cjs/build/implementations/aboveTheFoldService.js.map +1 -1
- package/cjs/build/service.js.map +1 -1
- package/cjs/package.json +1 -1
- package/definition/package.json +1 -1
- package/dist/definition/index.js.map +1 -1
- package/dist/implementations/aboveTheFoldService.js +1 -1
- package/dist/implementations/aboveTheFoldService.js.map +1 -1
- package/implementations/package.json +1 -1
- package/package.json +17 -17
- package/src/definition/index.ts +3 -3
- package/src/implementations/aboveTheFoldService.ts +6 -6
- package/src/types/index.ts +5 -5
- package/types/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAgB5C,QAAA,sBAAsB,GAAG,IAAA,oCAAa,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definition/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AAgB5C,QAAA,sBAAsB,GAAG,IAAA,oCAAa,EAClD,kCAAkC,CAClC,CAAA"}
|
|
@@ -5,7 +5,7 @@ const services_definitions_1 = require("@wix/services-definitions");
|
|
|
5
5
|
const definition_1 = require("../definition");
|
|
6
6
|
exports.AboveTheFoldService = (0, services_definitions_1.implementService)(definition_1.AboveTheFoldDefinition, ({ config }) => {
|
|
7
7
|
return {
|
|
8
|
-
isInFirstFold: key => config[key],
|
|
8
|
+
isInFirstFold: (key) => config[key],
|
|
9
9
|
};
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=aboveTheFoldService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aboveTheFoldService.js","sourceRoot":"","sources":["../../../src/implementations/aboveTheFoldService.ts"],"names":[],"mappings":";;;AAAA,oEAA4D;AAG5D,8CAAsD;AAEzC,QAAA,mBAAmB,GAAG,IAAA,uCAAgB,
|
|
1
|
+
{"version":3,"file":"aboveTheFoldService.js","sourceRoot":"","sources":["../../../src/implementations/aboveTheFoldService.ts"],"names":[],"mappings":";;;AAAA,oEAA4D;AAG5D,8CAAsD;AAEzC,QAAA,mBAAmB,GAAG,IAAA,uCAAgB,EAClD,mCAAsB,EACtB,CAAC,EAAE,MAAM,EAAkD,EAAwB,EAAE;IACpF,OAAO;QACN,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;KACnC,CAAA;AACF,CAAC,CACD,CAAA"}
|
package/cjs/build/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/service.ts"],"names":[],"mappings":";;;AAAA,6CAAqD;AACrD,+EAA2E;AAE9D,QAAA,UAAU,GAAG,mCAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/service.ts"],"names":[],"mappings":";;;AAAA,6CAAqD;AACrD,+EAA2E;AAE9D,QAAA,UAAU,GAAG,mCAAsB,CAAA;kBACjC,yCAAmB"}
|
package/cjs/package.json
CHANGED
package/definition/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAgBzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAgBzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAClD,kCAAkC,CAClC,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { implementService } from '@wix/services-definitions';
|
|
|
2
2
|
import { AboveTheFoldDefinition } from '../definition';
|
|
3
3
|
export const AboveTheFoldService = implementService(AboveTheFoldDefinition, ({ config }) => {
|
|
4
4
|
return {
|
|
5
|
-
isInFirstFold: key => config[key],
|
|
5
|
+
isInFirstFold: (key) => config[key],
|
|
6
6
|
};
|
|
7
7
|
});
|
|
8
8
|
//# sourceMappingURL=aboveTheFoldService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aboveTheFoldService.js","sourceRoot":"","sources":["../../src/implementations/aboveTheFoldService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAG5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAEtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"aboveTheFoldService.js","sourceRoot":"","sources":["../../src/implementations/aboveTheFoldService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAG5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAEtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAClD,sBAAsB,EACtB,CAAC,EAAE,MAAM,EAAkD,EAAwB,EAAE;IACpF,OAAO;QACN,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;KACnC,CAAA;AACF,CAAC,CACD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-service-above-the-fold",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"main": "cjs/build/index.js",
|
|
5
|
-
"module": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"version": "1.0.4",
|
|
7
4
|
"license": "UNLICENSED",
|
|
8
5
|
"files": [
|
|
9
6
|
"dist",
|
|
@@ -14,6 +11,10 @@
|
|
|
14
11
|
"types",
|
|
15
12
|
"!**/*.tsbuildinfo"
|
|
16
13
|
],
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"main": "cjs/build/index.js",
|
|
16
|
+
"module": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
19
20
|
"types": "./dist/index.d.ts",
|
|
@@ -41,13 +42,9 @@
|
|
|
41
42
|
"require": "./cjs/build/service.js"
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"typescript": "^5.3.3",
|
|
50
|
-
"vitest": "4.1.0"
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"registry": "https://registry.npmjs.org/",
|
|
47
|
+
"access": "public"
|
|
51
48
|
},
|
|
52
49
|
"scripts": {
|
|
53
50
|
"build": "tsc -b . --force && tsc --project tsconfig.cjs.json",
|
|
@@ -55,12 +52,15 @@
|
|
|
55
52
|
"test": "vitest --run && yarn test-type-check",
|
|
56
53
|
"test-type-check": "echo 'validating typescript in test files' && tsc --project tsconfig.test.json && echo 'Finished validating typescript in test files successfully'"
|
|
57
54
|
},
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
"access": "public"
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@wix/services-definitions": "^0.1.4",
|
|
57
|
+
"@wix/services-manager": "^0.2.20"
|
|
62
58
|
},
|
|
63
|
-
"
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"typescript": "~7.0.2",
|
|
61
|
+
"vitest": "4.1.11"
|
|
62
|
+
},
|
|
63
|
+
"publishUnscoped": false,
|
|
64
64
|
"wix": {
|
|
65
65
|
"artifact": {
|
|
66
66
|
"groupId": "com.wixpress.npm",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
-
"falconPackageHash": "
|
|
80
|
+
"falconPackageHash": "16d68c8738248aa574d88b64f961e0ca5aa88bfd850fe90f2b7ad170"
|
|
81
81
|
}
|
package/src/definition/index.ts
CHANGED
|
@@ -5,15 +5,15 @@ export type CompId = string
|
|
|
5
5
|
export type CompPath = string
|
|
6
6
|
|
|
7
7
|
export type IAboveTheFoldServiceConfig = {
|
|
8
|
-
|
|
8
|
+
[key: CompId | CompPath]: boolean
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export interface IAboveTheFoldService {
|
|
12
|
-
|
|
12
|
+
isInFirstFold: (key: CompId | CompPath) => boolean | undefined
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export type IAboveTheFoldDefinition = ServiceDefinition<IAboveTheFoldService, IAboveTheFoldServiceConfig>
|
|
16
16
|
|
|
17
17
|
export const AboveTheFoldDefinition = defineService<IAboveTheFoldService, IAboveTheFoldServiceConfig>(
|
|
18
|
-
|
|
18
|
+
'@wix/site-service-above-the-fold'
|
|
19
19
|
)
|
|
@@ -4,10 +4,10 @@ import type { IAboveTheFoldService, IAboveTheFoldServiceConfig } from '../defini
|
|
|
4
4
|
import { AboveTheFoldDefinition } from '../definition'
|
|
5
5
|
|
|
6
6
|
export const AboveTheFoldService = implementService(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
AboveTheFoldDefinition,
|
|
8
|
+
({ config }: ServiceFactoryOpts<IAboveTheFoldServiceConfig>): IAboveTheFoldService => {
|
|
9
|
+
return {
|
|
10
|
+
isInFirstFold: (key) => config[key],
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
13
|
)
|
package/src/types/index.ts
CHANGED
package/types/package.json
CHANGED