Closed jboix closed 3 months ago
Status | Category | Percentage | Covered / Total |
---|---|---|---|
🔵 | Lines | 99.56% | 1156 / 1161 |
🔵 | Statements | 99.56% | 1156 / 1161 |
🔵 | Functions | 97.33% | 73 / 75 |
🔵 | Branches | 93.96% | 109 / 116 |
File | Stmts | % Branch | % Funcs | % Lines | Uncovered Lines |
---|---|---|---|---|---|
Changed Files | |||||
packages/pillarbox-playlist/src/pillarbox-playlist-ui.js | 100% | 100% | 100% | 100% | |
packages/pillarbox-playlist/src/pillarbox-playlist.js | 98.85% | 89.36% | 95.83% | 98.85% | 107-110, 394 |
packages/pillarbox-playlist/src/components/modal/pillarbox-playlist-controls.js | 100% | 100% | 100% | 100% | |
packages/pillarbox-playlist/src/components/modal/pillarbox-playlist-modal.js | 100% | 100% | 100% | 100% | |
packages/pillarbox-playlist/src/components/modal/pillarbox-playlist-next-item-button.js | 100% | 100% | 100% | 100% | |
packages/pillarbox-playlist/src/components/modal/pillarbox-playlist-repeat-button.js | 100% | 83.33% | 100% | 100% | |
packages/pillarbox-playlist/src/components/modal/pillarbox-playlist-shuffle-button.js | 100% | 100% | 100% | 100% | |
packages/pillarbox-playlist/src/components/modal/pillarbox-previous-item-button.js | 100% | 100% | 100% | 100% | |
packages/skip-button/src/skip-button.js | 100% | 88.88% | 85.71% | 100% |
PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-07-12 07:56 UTC
@jboix sorry I didn't get back to you sooner. I had very quickly looked at the PR, but unfortunately didn't have the time I would have liked to devote to it. However, overall feedback, would it be possible to have something more videojs-like in terms of developer experience?
From:
player.getChild('playlistMenuDialog').getChild('pillarboxPlaylistMenuItemsList')
To:
player.getChild('playlistMenuDialog').getChild('pillarboxPlaylistMenuItemsList')
// And
player.playlistMenuDialog.pillarboxPlaylistMenuItemsList
From:
pillarboxPlaylistUI: {
inserChildBefore: 'subsCapsButton',
modal: {
pauseOnOpen: true,
controls: { shuffleButton: false }
}
}
To:
pillarboxPlaylistUI: {
inserChildBefore: 'subsCapsButton',
// real component name
playlistMenuDialog: {
pauseOnOpen: true,
// real component name
playlistControls: { shuffleButton: false }
}
}
:tada: This PR is included in version @srgssr/skip-button-v1.0.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Description
Resolves #16 by introducing new configuration options that allow integrators to specify which buttons should appear in the playlist modal. Also exposes the modal options.
Example
Changes Made
pillarboxPlaylistMenuDialog
option to configure the modal dialog component.pillarboxPlaylistMenuDialog.pauseOnOpen
option to control whether the player pauses when the modal is opened.pillarboxPlaylistMenuDialog.pillarboxPlaylistControls
option to define the order, addition, or removal of the control buttons.pillarboxPlaylistControls
into individual components that can be registered separately.Checklist