Skip to content

Commit

Permalink
feat(cxl-ui): [cxl-jw-player] rename playerId, playerSource to librar…
Browse files Browse the repository at this point in the history
…yId, librarySource
  • Loading branch information
anoblet committed Feb 20, 2023
1 parent f296fbd commit ec4b4c6
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions packages/storybook/cxl-ui/cxl-jw-player/index.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ export default {
title: 'CXL UI/cxl-jw-player',
};

const Template = ({ captions, mediaId, mediaSource, minimumSearchLength, libraryId, librarySource, playlistId, playlistSource, pluginPath }) =>
const Template = ({
captions,
mediaId,
mediaSource,
minimumSearchLength,
libraryId,
librarySource,
playlistId,
playlistSource,
pluginPath,
}) =>
html`
<style>
#root-inner {
Expand All @@ -21,14 +31,15 @@ const Template = ({ captions, mediaId, mediaSource, minimumSearchLength, library
box-sizing: border-box;
}
</style>
<cxl-jw-player
is-public="true"
?captions=${captions}
media-id=${mediaId}
media-source=${mediaSource}
minimum-search-length=${minimumSearchLength}
library-id=${playerId}
library-source=${playerSource}
library-id=${libraryId}
library-source=${librarySource}
playlist-id=${playlistId}
playlist-source=${playlistSource}
plugin-path="${pluginPath}"
Expand All @@ -40,11 +51,11 @@ export const Default = Template.bind({});
Object.assign(Default, {
args: {
captions: true,
libraryId: '5CFJNXKb',
librarySource: '',
mediaId: 'fZ0XiGdb',
mediaSource: '',
minimumSearchLength: 3,
playerId: '5CFJNXKb',
playerSource: '',
playlistId: '',
playlistSource: '',
pluginPath: 'https://cxl.com/institute/wp-content/plugins/cxl-jwplayer/',
Expand Down

0 comments on commit ec4b4c6

Please sign in to comment.