@playkit-js/hotspots 3.1.4 → 3.1.5-canary.2-c2142fd
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playkit-js/hotspots",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5-canary.2-c2142fd",
|
|
4
4
|
"private": false,
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/kaltura/playkit-js-hotspots/issues"
|
|
@@ -11,31 +11,30 @@
|
|
|
11
11
|
"url": "git+https://github.com/kaltura/playkit-js-hotspots.git"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@playkit-js/common": "^1.
|
|
14
|
+
"@playkit-js/common": "^1.2.4"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@
|
|
18
|
-
"@typescript-eslint/parser": "^5.23.0",
|
|
17
|
+
"@playkit-js/kaltura-player-js": "canary",
|
|
19
18
|
"conventional-github-releaser": "3.1.3",
|
|
20
19
|
"cross-env": "^7.0.3",
|
|
21
20
|
"css-loader": "^6.7.1",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"kaltura-player-js": "https://github.com/kaltura/kaltura-player-js.git#master",
|
|
25
|
-
"lint-staged": "^12.4.1",
|
|
21
|
+
"cypress": "^12.12.0",
|
|
22
|
+
"playwright-webkit": "^1.33.0",
|
|
26
23
|
"prettier": "^2.6.2",
|
|
27
24
|
"sass": "^1.52.3",
|
|
28
25
|
"sass-loader": "^12.6.0",
|
|
29
26
|
"standard-version": "^9.3.2",
|
|
30
27
|
"style-loader": "1.3.0",
|
|
31
28
|
"ts-loader": "^9.3.0",
|
|
32
|
-
"
|
|
33
|
-
"typescript": "^4.6.4",
|
|
29
|
+
"typescript": "^4.9.4",
|
|
34
30
|
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
35
31
|
"webpack": "^5.72.1",
|
|
36
32
|
"webpack-cli": "^4.9.2",
|
|
37
33
|
"webpack-dev-server": "^4.9.0"
|
|
38
34
|
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@playkit-js/kaltura-player-js": "canary"
|
|
37
|
+
},
|
|
39
38
|
"license": "AGPL-3.0",
|
|
40
39
|
"files": [
|
|
41
40
|
"dist",
|
|
@@ -50,12 +49,19 @@
|
|
|
50
49
|
"build": "webpack --mode production",
|
|
51
50
|
"dev": "webpack-dev-server --mode development",
|
|
52
51
|
"watch": "webpack --progress --color --watch --mode development",
|
|
53
|
-
"
|
|
52
|
+
"cypress:open": "cypress open",
|
|
53
|
+
"cypress:run": "cypress run",
|
|
54
|
+
"cy:open": "cypress open",
|
|
55
|
+
"cy:run": "yarn run cy:run:chrome && yarn run cy:run:firefox && yarn run cy:run:edge && yarn run cy:run:safari",
|
|
56
|
+
"cy:run:chrome": "cypress run --browser chrome --config video=false",
|
|
57
|
+
"cy:run:firefox": "cypress run --browser firefox --config video=false",
|
|
58
|
+
"cy:run:edge": "cypress run --browser edge --config video=false",
|
|
59
|
+
"cy:run:safari": "cypress run --browser webkit --config video=false",
|
|
60
|
+
"test:prepare": "yarn run build && yes | cp -i ./dist/playkit-hotspots.js ./cypress/public/plugin.js",
|
|
61
|
+
"test:watch": "yarn run test:prepare && cypress open",
|
|
62
|
+
"test": "yarn run test:prepare && yarn run cy:run",
|
|
54
63
|
"release": "standard-version",
|
|
55
64
|
"pushTaggedRelease": "git push --follow-tags --no-verify origin master",
|
|
56
|
-
"eslint": "eslint . --color",
|
|
57
|
-
"commit:dist": "git add --force --all dist && (git commit -m 'chore: update dist' || exit 0)",
|
|
58
|
-
"precommit": "lint-staged",
|
|
59
65
|
"prettier:fix": "prettier --write ."
|
|
60
66
|
},
|
|
61
67
|
"publishConfig": {
|
|
@@ -76,7 +82,7 @@
|
|
|
76
82
|
"kaltura": {
|
|
77
83
|
"name": "playkit-js-hotspots",
|
|
78
84
|
"dependencies": {
|
|
79
|
-
"playkit-kaltura-cuepoints": "3.0.
|
|
85
|
+
"playkit-kaltura-cuepoints": "3.0.5"
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
}
|
|
@@ -173,7 +173,7 @@ export default class Hotspot extends Component<Props, State> {
|
|
|
173
173
|
|
|
174
174
|
return (
|
|
175
175
|
<A11yWrapper onClick={this.handleClick}>
|
|
176
|
-
<div tabIndex={0} aria-label={label} aria-disabled={disableClick} style={containerStyles}>
|
|
176
|
+
<div tabIndex={0} aria-label={label} aria-disabled={disableClick} style={containerStyles} data-testid="hotspots_hotspot">
|
|
177
177
|
<div style={buttonStyles}>{label}</div>
|
|
178
178
|
</div>
|
|
179
179
|
</A11yWrapper>
|
|
@@ -40,6 +40,10 @@ export default class HotspotWrapper extends Component<Props> {
|
|
|
40
40
|
const {hotspots} = this.props;
|
|
41
41
|
const hotspotsElements = this.renderHotspots(hotspots);
|
|
42
42
|
|
|
43
|
-
return
|
|
43
|
+
return (
|
|
44
|
+
<div style={hotspotsContainerStyles} data-testid="hotspots_hotspotsContainer">
|
|
45
|
+
{hotspotsElements}
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
44
48
|
}
|
|
45
49
|
}
|