@brightcove/components-embed-code-modal 0.8.3 → 0.8.5
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/__tests__/EmbedCode.test.d.ts +2 -0
- package/__tests__/EmbedCode.test.d.ts.map +1 -0
- package/__tests__/InteractivityProject.test.d.ts +2 -0
- package/__tests__/InteractivityProject.test.d.ts.map +1 -0
- package/__tests__/PlayerPreview.test.d.ts +2 -0
- package/__tests__/PlayerPreview.test.d.ts.map +1 -0
- package/__tests__/TabsHeader.test.d.ts +2 -0
- package/__tests__/TabsHeader.test.d.ts.map +1 -0
- package/__tests__/TabsSection.test.d.ts +2 -0
- package/__tests__/TabsSection.test.d.ts.map +1 -0
- package/__tests__/TitleWithTooltip.test.d.ts +2 -0
- package/__tests__/TitleWithTooltip.test.d.ts.map +1 -0
- package/__tests__/VideoPlayer.test.d.ts +2 -0
- package/__tests__/VideoPlayer.test.d.ts.map +1 -0
- package/__tests__/util.test.d.ts +2 -0
- package/__tests__/util.test.d.ts.map +1 -0
- package/index.js +58 -0
- package/index.js.map +1 -0
- package/package.json +5 -15
- package/src/index.d.ts +5 -0
- package/src/index.d.ts.map +1 -0
- package/src/js/EmbedCodeModal.d.ts +23 -0
- package/src/js/EmbedCodeModal.d.ts.map +1 -0
- package/src/js/components/CustomSettingsDropdown.d.ts +11 -0
- package/src/js/components/CustomSettingsDropdown.d.ts.map +1 -0
- package/src/js/components/EmbedCopySection.d.ts +4 -0
- package/src/js/components/EmbedCopySection.d.ts.map +1 -0
- package/src/js/components/ModalContainer.d.ts +23 -0
- package/src/js/components/ModalContainer.d.ts.map +1 -0
- package/src/js/components/NoPlayerModal.d.ts +8 -0
- package/src/js/components/NoPlayerModal.d.ts.map +1 -0
- package/src/js/components/PlayerPreview.d.ts +4 -0
- package/src/js/components/PlayerPreview.d.ts.map +1 -0
- package/src/js/components/TabsHeader.d.ts +11 -0
- package/src/js/components/TabsHeader.d.ts.map +1 -0
- package/src/js/components/TabsSection.d.ts +15 -0
- package/src/js/components/TabsSection.d.ts.map +1 -0
- package/src/js/components/TitleWithTooltip.d.ts +8 -0
- package/src/js/components/TitleWithTooltip.d.ts.map +1 -0
- package/src/js/components/VideoLinks.d.ts +9 -0
- package/src/js/components/VideoLinks.d.ts.map +1 -0
- package/src/js/components/VideoPlayer.d.ts +24 -0
- package/src/js/components/VideoPlayer.d.ts.map +1 -0
- package/src/js/components/{index.ts → index.d.ts} +1 -0
- package/src/js/components/index.d.ts.map +1 -0
- package/src/js/constants/baseUrls.d.ts +5 -0
- package/src/js/constants/baseUrls.d.ts.map +1 -0
- package/src/js/constants/embed.d.ts +9 -0
- package/src/js/constants/embed.d.ts.map +1 -0
- package/src/js/constants/player.d.ts +27 -0
- package/src/js/constants/player.d.ts.map +1 -0
- package/src/js/constants/pluginsRegistry.d.ts +7 -0
- package/src/js/constants/pluginsRegistry.d.ts.map +1 -0
- package/src/js/hooks/useGetPlayers.d.ts +3 -0
- package/src/js/hooks/useGetPlayers.d.ts.map +1 -0
- package/src/js/i18n.d.ts +341 -0
- package/src/js/i18n.d.ts.map +1 -0
- package/src/js/services/players-api.d.ts +5 -0
- package/src/js/services/players-api.d.ts.map +1 -0
- package/src/js/services/url-shortener.d.ts +4 -0
- package/src/js/services/url-shortener.d.ts.map +1 -0
- package/src/js/types/EmbedCodeModalProps.d.ts +59 -0
- package/src/js/types/EmbedCodeModalProps.d.ts.map +1 -0
- package/src/js/types/EmbedCodeProps.d.ts +13 -0
- package/src/js/types/EmbedCodeProps.d.ts.map +1 -0
- package/src/js/types/players.d.ts +58 -0
- package/src/js/types/players.d.ts.map +1 -0
- package/src/js/types/studioModule.d.ts +8 -0
- package/src/js/types/studioModule.d.ts.map +1 -0
- package/src/js/utils/addPluginsDataToPlayers.d.ts +6 -0
- package/src/js/utils/addPluginsDataToPlayers.d.ts.map +1 -0
- package/src/js/utils/call.d.ts +14 -0
- package/src/js/utils/call.d.ts.map +1 -0
- package/src/js/utils/dimensions.d.ts +9 -0
- package/src/js/utils/dimensions.d.ts.map +1 -0
- package/src/js/utils/featureSwitches.d.ts +2 -0
- package/src/js/utils/featureSwitches.d.ts.map +1 -0
- package/src/js/utils/util.d.ts +67 -0
- package/src/js/utils/util.d.ts.map +1 -0
- package/src/module.d.ts +2 -0
- package/src/module.d.ts.map +1 -0
- package/src/styles/typings.td.d.ts +13 -0
- package/src/styles/typings.td.d.ts.map +1 -0
- package/src/types/studio.d.ts +202 -0
- package/src/types/studio.d.ts.map +1 -0
- package/.eslintignore +0 -7
- package/.eslintrc +0 -23
- package/.husky/pre-commit +0 -4
- package/.nvmrc +0 -1
- package/.prettierignore +0 -7
- package/.prettierrc +0 -5
- package/.release-it.json +0 -40
- package/.whitesource +0 -3
- package/CHANGELOG.md +0 -342
- package/CODEOWNERS +0 -37
- package/PULL_REQUEST_TEMPLATE.md +0 -17
- package/__tests__/EmbedCode.test.tsx +0 -51
- package/__tests__/InteractivityProject.test.tsx +0 -50
- package/__tests__/PlayerPreview.test.tsx +0 -23
- package/__tests__/TabsHeader.test.tsx +0 -19
- package/__tests__/TabsSection.test.tsx +0 -46
- package/__tests__/TitleWithTooltip.test.tsx +0 -45
- package/__tests__/VideoPlayer.test.tsx +0 -38
- package/__tests__/util.test.ts +0 -89
- package/babel.config.json +0 -17
- package/etc/wildcard.brightcove.com.key +0 -27
- package/etc/wildcard.brightcove.com.pem +0 -96
- package/jest/jest.setup.js +0 -62
- package/jest/jest.stub.js +0 -4
- package/jest.config.js +0 -24
- package/scripts/create-dist-pkg-prod.js +0 -18
- package/src/index.ts +0 -16
- package/src/js/EmbedCodeModal.tsx +0 -88
- package/src/js/components/CustomSettingsDropdown.tsx +0 -184
- package/src/js/components/EmbedCopySection.tsx +0 -130
- package/src/js/components/ModalContainer.tsx +0 -274
- package/src/js/components/NoPlayerModal.tsx +0 -42
- package/src/js/components/PlayerPreview.tsx +0 -116
- package/src/js/components/TabsHeader.tsx +0 -31
- package/src/js/components/TabsSection.tsx +0 -74
- package/src/js/components/TitleWithTooltip.tsx +0 -39
- package/src/js/components/VideoLinks.tsx +0 -83
- package/src/js/components/VideoPlayer.tsx +0 -303
- package/src/js/constants/baseUrls.ts +0 -4
- package/src/js/constants/embed.ts +0 -12
- package/src/js/constants/player.ts +0 -32
- package/src/js/constants/pluginsRegistry.ts +0 -30
- package/src/js/hooks/useGetPlayers.ts +0 -12
- package/src/js/i18n.ts +0 -43
- package/src/js/services/players-api.ts +0 -26
- package/src/js/services/url-shortener.ts +0 -10
- package/src/js/types/EmbedCodeModalProps.ts +0 -72
- package/src/js/types/EmbedCodeProps.ts +0 -13
- package/src/js/types/brightcoveEmbedCode.d.ts +0 -18
- package/src/js/types/players.ts +0 -64
- package/src/js/types/react-i18next.d.ts +0 -8
- package/src/js/types/studioModule.ts +0 -7
- package/src/js/utils/addPluginsDataToPlayers.ts +0 -59
- package/src/js/utils/call.ts +0 -31
- package/src/js/utils/dimensions.ts +0 -53
- package/src/js/utils/featureSwitches.ts +0 -16
- package/src/js/utils/util.ts +0 -153
- package/src/module.tsx +0 -246
- package/src/styles/CustomSettingsDropdown.sass +0 -42
- package/src/styles/EmbedCode.sass +0 -30
- package/src/styles/EmbedCodeModal.sass +0 -76
- package/src/styles/base.sass +0 -1
- package/src/styles/theme.sass +0 -11
- package/src/styles/typings.td.ts +0 -9
- package/src/translations/en.json +0 -53
- package/src/translations/es.json +0 -53
- package/src/translations/fr.json +0 -53
- package/src/translations/ja.json +0 -53
- package/src/translations/ko.json +0 -53
- package/src/translations/zh.json +0 -53
- package/src/types/studio.ts +0 -197
- package/tsconfig.json +0 -34
- package/webpack.config.js +0 -97
package/src/module.tsx
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
initialize,
|
|
6
|
-
Button,
|
|
7
|
-
Select,
|
|
8
|
-
Input,
|
|
9
|
-
Flex,
|
|
10
|
-
Checkbox,
|
|
11
|
-
} from '@brightcove/studio-components';
|
|
12
|
-
|
|
13
|
-
import { StudioModule } from 'types/studio';
|
|
14
|
-
import { EmbedCodeModal } from './index';
|
|
15
|
-
import {
|
|
16
|
-
VideoPayload,
|
|
17
|
-
EmbedCodeModalTypes,
|
|
18
|
-
EmbedCodeUnits,
|
|
19
|
-
EmbedCodeAspectRatio,
|
|
20
|
-
} from 'js/types/EmbedCodeModalProps';
|
|
21
|
-
import { EmbedCodeModalProps } from 'js/EmbedCodeModal';
|
|
22
|
-
|
|
23
|
-
const videoObj: VideoPayload = {
|
|
24
|
-
videoId: '70709819045202', // string
|
|
25
|
-
videoName: 'Media Title', // string
|
|
26
|
-
accountId: '70712710456202', // string
|
|
27
|
-
posterUrl: 'http://...', // string
|
|
28
|
-
duration: 120, // number (in seconds)
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
type LangType = 'en' | 'es' | 'fr' | 'ja' | 'ko' | 'zh';
|
|
32
|
-
|
|
33
|
-
const appNode = document.getElementById('bc-content');
|
|
34
|
-
|
|
35
|
-
const App = () => {
|
|
36
|
-
const [language, setLanguage] = useState<LangType>('en');
|
|
37
|
-
const [accountId, setAccountId] = useState('70713602761202');
|
|
38
|
-
const [videoId, setVideoId] = useState('70716855695113');
|
|
39
|
-
const [interactivityProjectId, setInteractivityProjectId] = useState(
|
|
40
|
-
'63ed6c0cf2b60d00179ec101',
|
|
41
|
-
);
|
|
42
|
-
const [embedProperties, setEmbedProperties] = useState({
|
|
43
|
-
units: EmbedCodeUnits.PX,
|
|
44
|
-
responsive: false,
|
|
45
|
-
width: 0,
|
|
46
|
-
height: 0,
|
|
47
|
-
aspectRatio: EmbedCodeAspectRatio.FLUID,
|
|
48
|
-
});
|
|
49
|
-
const [embedVideoObj, setEmbedVideoObj] = useState<EmbedCodeModalProps>();
|
|
50
|
-
const [showDVR, setShowDVR] = useState(false);
|
|
51
|
-
const [showLowLatency, setShowLowLatency] = useState(false);
|
|
52
|
-
|
|
53
|
-
const handlePropertiesUpdate = (name: string, value: string) => {
|
|
54
|
-
setEmbedProperties({
|
|
55
|
-
...embedProperties,
|
|
56
|
-
[name]: value,
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
return (
|
|
61
|
-
<div style={{ padding: 20 }}>
|
|
62
|
-
<h1> Embed Code Sandbox demo </h1>
|
|
63
|
-
<h5>
|
|
64
|
-
{' '}
|
|
65
|
-
Use the url params to select environment. Ex. `env=production`. <br />{' '}
|
|
66
|
-
Default is `qa`
|
|
67
|
-
</h5>
|
|
68
|
-
<h5> Select component`s language </h5>
|
|
69
|
-
<Select
|
|
70
|
-
value={language}
|
|
71
|
-
options={[
|
|
72
|
-
{ label: 'English', value: 'en' },
|
|
73
|
-
{ label: 'Spanish', value: 'es' },
|
|
74
|
-
{ label: 'French', value: 'fr' },
|
|
75
|
-
{ label: 'Japanese', value: 'ja' },
|
|
76
|
-
{ label: 'Korean', value: 'ko' },
|
|
77
|
-
{ label: 'Chinese', value: 'zh' },
|
|
78
|
-
]}
|
|
79
|
-
onChange={(value: LangType) => {
|
|
80
|
-
setLanguage(value);
|
|
81
|
-
}}
|
|
82
|
-
/>
|
|
83
|
-
<h5>
|
|
84
|
-
Enter a valid account ID and video ID. Keep in mind the environment
|
|
85
|
-
</h5>
|
|
86
|
-
<Flex gap='sm'>
|
|
87
|
-
<Input
|
|
88
|
-
label='BC account ID'
|
|
89
|
-
value={accountId}
|
|
90
|
-
onChange={(value: string) => {
|
|
91
|
-
setAccountId(value);
|
|
92
|
-
}}
|
|
93
|
-
/>
|
|
94
|
-
<Input
|
|
95
|
-
label='Video ID'
|
|
96
|
-
value={videoId}
|
|
97
|
-
onChange={(value: string) => {
|
|
98
|
-
setVideoId(value);
|
|
99
|
-
}}
|
|
100
|
-
/>
|
|
101
|
-
<Input
|
|
102
|
-
label='Project ID'
|
|
103
|
-
value={interactivityProjectId}
|
|
104
|
-
onChange={(value: string) => {
|
|
105
|
-
setInteractivityProjectId(value);
|
|
106
|
-
}}
|
|
107
|
-
/>
|
|
108
|
-
</Flex>
|
|
109
|
-
<h4>Optional properties for the embed code</h4>
|
|
110
|
-
<br />
|
|
111
|
-
<Flex gap='sm' alignItems='center'>
|
|
112
|
-
<Select
|
|
113
|
-
label='Units'
|
|
114
|
-
value={embedProperties.units}
|
|
115
|
-
options={[
|
|
116
|
-
{ label: 'px', value: EmbedCodeUnits.PX },
|
|
117
|
-
{ label: 'em', value: EmbedCodeUnits.EM },
|
|
118
|
-
{ label: '%', value: EmbedCodeUnits.PERCENT },
|
|
119
|
-
]}
|
|
120
|
-
onChange={(value: string) => handlePropertiesUpdate('units', value)}
|
|
121
|
-
/>
|
|
122
|
-
<Input
|
|
123
|
-
label='Width'
|
|
124
|
-
type='number'
|
|
125
|
-
value={embedProperties.width}
|
|
126
|
-
onChange={(value: string) => handlePropertiesUpdate('width', value)}
|
|
127
|
-
/>
|
|
128
|
-
<Input
|
|
129
|
-
label='Height'
|
|
130
|
-
type='number'
|
|
131
|
-
value={embedProperties.height}
|
|
132
|
-
onChange={(value: string) => handlePropertiesUpdate('height', value)}
|
|
133
|
-
/>
|
|
134
|
-
<Select
|
|
135
|
-
label='Aspect ratio'
|
|
136
|
-
value={embedProperties.aspectRatio}
|
|
137
|
-
options={[
|
|
138
|
-
{ label: 'fluid', value: EmbedCodeAspectRatio.FLUID },
|
|
139
|
-
{ label: '1:1', value: EmbedCodeAspectRatio.ONE_ONE },
|
|
140
|
-
{ label: '4:3', value: EmbedCodeAspectRatio.FOUR_THREE },
|
|
141
|
-
{ label: '16:9', value: EmbedCodeAspectRatio.SIXTEEN_NINE },
|
|
142
|
-
{ label: '9:16', value: EmbedCodeAspectRatio.NINE_SIXTEEN },
|
|
143
|
-
]}
|
|
144
|
-
onChange={(value: string) =>
|
|
145
|
-
handlePropertiesUpdate('aspectRatio', value)
|
|
146
|
-
}
|
|
147
|
-
/>
|
|
148
|
-
<Checkbox onChange={setShowDVR} checked={showDVR}>
|
|
149
|
-
<strong>Show DVR</strong>
|
|
150
|
-
</Checkbox>
|
|
151
|
-
<Checkbox onChange={setShowLowLatency} checked={showLowLatency}>
|
|
152
|
-
<strong>Show Low Latency</strong>
|
|
153
|
-
</Checkbox>
|
|
154
|
-
</Flex>
|
|
155
|
-
<Button
|
|
156
|
-
text='Show Modal Video'
|
|
157
|
-
onClick={() => {
|
|
158
|
-
setEmbedVideoObj({
|
|
159
|
-
data: { ...videoObj, videoId, accountId },
|
|
160
|
-
embedCodeModalType: EmbedCodeModalTypes.VIDEO,
|
|
161
|
-
language,
|
|
162
|
-
});
|
|
163
|
-
}}
|
|
164
|
-
large
|
|
165
|
-
/>
|
|
166
|
-
<Button
|
|
167
|
-
text='Show Modal Player'
|
|
168
|
-
onClick={() => {
|
|
169
|
-
setEmbedVideoObj({
|
|
170
|
-
data: { id: 'default', accountId },
|
|
171
|
-
embedCodeModalType: EmbedCodeModalTypes.PLAYER,
|
|
172
|
-
language: language,
|
|
173
|
-
});
|
|
174
|
-
}}
|
|
175
|
-
large
|
|
176
|
-
/>
|
|
177
|
-
<Button
|
|
178
|
-
text='Show Modal Project'
|
|
179
|
-
onClick={() => {
|
|
180
|
-
setEmbedVideoObj({
|
|
181
|
-
data: {
|
|
182
|
-
accountId,
|
|
183
|
-
videoId,
|
|
184
|
-
interactivityProjectId,
|
|
185
|
-
interactivityProjectName: 'My Project Name',
|
|
186
|
-
},
|
|
187
|
-
embedCodeModalType: EmbedCodeModalTypes.PROJECT,
|
|
188
|
-
language: language,
|
|
189
|
-
});
|
|
190
|
-
}}
|
|
191
|
-
large
|
|
192
|
-
/>
|
|
193
|
-
<Button
|
|
194
|
-
text='Show Modal Live'
|
|
195
|
-
onClick={() => {
|
|
196
|
-
setEmbedVideoObj({
|
|
197
|
-
data: {
|
|
198
|
-
videoId,
|
|
199
|
-
accountId,
|
|
200
|
-
livePlaybackToken: 'live-playback-token-test',
|
|
201
|
-
adConfigId: 'ad-config-id-test',
|
|
202
|
-
},
|
|
203
|
-
embedCodeModalType: EmbedCodeModalTypes.LIVE,
|
|
204
|
-
showDVR,
|
|
205
|
-
dvrTime: 900,
|
|
206
|
-
language,
|
|
207
|
-
onDVRClick: (newValue) => {
|
|
208
|
-
console.log('DVR clicked', newValue);
|
|
209
|
-
},
|
|
210
|
-
showLowLatency,
|
|
211
|
-
onLowLatencyClick: (newValue) => {
|
|
212
|
-
console.log('Low Latency clicked', newValue);
|
|
213
|
-
},
|
|
214
|
-
});
|
|
215
|
-
}}
|
|
216
|
-
large
|
|
217
|
-
/>
|
|
218
|
-
{embedVideoObj && (
|
|
219
|
-
<EmbedCodeModal
|
|
220
|
-
{...embedVideoObj}
|
|
221
|
-
language={language}
|
|
222
|
-
embedCodeProperties={embedProperties}
|
|
223
|
-
/>
|
|
224
|
-
)}
|
|
225
|
-
</div>
|
|
226
|
-
);
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
const initBCAPI = (studioModule: StudioModule) => {
|
|
230
|
-
const onAuth = () => {
|
|
231
|
-
ReactDOM.render(<App />, appNode);
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
studioModule.once('auth', onAuth);
|
|
235
|
-
const { module, user } = studioModule.config;
|
|
236
|
-
const accountId = user.currentAccount.id;
|
|
237
|
-
const moduleId = module.id;
|
|
238
|
-
const moduleScope = module.scope;
|
|
239
|
-
const moduleBcApiConfig = module.bcApiConfig;
|
|
240
|
-
|
|
241
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
242
|
-
studioModule._initBCApi(accountId, moduleId, moduleScope, moduleBcApiConfig);
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
initialize();
|
|
246
|
-
initBCAPI(window.StudioModule);
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@import './base.sass'
|
|
2
|
-
|
|
3
|
-
@include themed() using ($theme)
|
|
4
|
-
.featuresDropdown
|
|
5
|
-
background: white
|
|
6
|
-
margin-bottom: 10px
|
|
7
|
-
.topArea
|
|
8
|
-
border-top: 1px solid theme($theme, gray-30)
|
|
9
|
-
border-bottom: 1px solid theme($theme, gray-30)
|
|
10
|
-
background: white
|
|
11
|
-
display: flex
|
|
12
|
-
padding: 16px
|
|
13
|
-
justify-content: space-between
|
|
14
|
-
cursor: pointer
|
|
15
|
-
|
|
16
|
-
.title
|
|
17
|
-
font-weight: theme($theme, heading-weight)
|
|
18
|
-
color: black
|
|
19
|
-
|
|
20
|
-
.right
|
|
21
|
-
display: flex
|
|
22
|
-
.description
|
|
23
|
-
font-size: theme($theme, label-font-size)
|
|
24
|
-
margin-right: 30px
|
|
25
|
-
.icon
|
|
26
|
-
color: theme($theme, navy)
|
|
27
|
-
|
|
28
|
-
.hiddenArea
|
|
29
|
-
.hiddenAreaContainer
|
|
30
|
-
padding: 28px 16px
|
|
31
|
-
.aspectRatioSelect
|
|
32
|
-
span[class^="Select-wrapper"]
|
|
33
|
-
width: 343px
|
|
34
|
-
.sizeEdit
|
|
35
|
-
display: flex
|
|
36
|
-
gap: 16px
|
|
37
|
-
label
|
|
38
|
-
padding: 0
|
|
39
|
-
max-width: 110px
|
|
40
|
-
div[class^="InputGroup-labelRight-"]
|
|
41
|
-
display: none
|
|
42
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
@import './base.sass'
|
|
2
|
-
|
|
3
|
-
@include themed() using ($theme)
|
|
4
|
-
// Override studio-components styles
|
|
5
|
-
.hint
|
|
6
|
-
padding-top: 2px
|
|
7
|
-
.input
|
|
8
|
-
margin: 0 !important
|
|
9
|
-
padding-bottom: 4px !important
|
|
10
|
-
.textArea
|
|
11
|
-
color: theme($theme, gray-35) !important
|
|
12
|
-
background-color: theme($theme, gray-20) !important
|
|
13
|
-
border: none !important
|
|
14
|
-
resize: none
|
|
15
|
-
.copyInput
|
|
16
|
-
margin: 0 !important
|
|
17
|
-
padding-bottom: 4px !important
|
|
18
|
-
.textAreaDimensions
|
|
19
|
-
height: 210px
|
|
20
|
-
width: 390px
|
|
21
|
-
span[class^="CopyField-copyIcon"]
|
|
22
|
-
margin-right: 10px
|
|
23
|
-
.helperText
|
|
24
|
-
color: theme($theme, gray-40)
|
|
25
|
-
font-size: 14px
|
|
26
|
-
a.copyLink
|
|
27
|
-
text-decoration: none
|
|
28
|
-
font-weight: theme($theme, body-small-weight-bold)
|
|
29
|
-
cursor: pointer
|
|
30
|
-
padding-left: 4px
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
@import './base.sass'
|
|
2
|
-
|
|
3
|
-
@include themed() using ($theme)
|
|
4
|
-
.videoDetailsContainer
|
|
5
|
-
margin-bottom: 27px
|
|
6
|
-
.leftContent
|
|
7
|
-
width: 540px
|
|
8
|
-
margin-right: 34px
|
|
9
|
-
.timeInput input
|
|
10
|
-
width: 150px
|
|
11
|
-
.dvrCheckbox span
|
|
12
|
-
font-weight: theme($theme, label-font-weight)
|
|
13
|
-
.rightContent
|
|
14
|
-
flex-grow: 1
|
|
15
|
-
max-height: 468px
|
|
16
|
-
overflow-y: auto
|
|
17
|
-
.expandRightContent
|
|
18
|
-
max-height: 620px
|
|
19
|
-
.rightContentFullWidth
|
|
20
|
-
[class^="EmbedCode__copyInput"]
|
|
21
|
-
textarea
|
|
22
|
-
width: 100%
|
|
23
|
-
> div > div > div
|
|
24
|
-
flex: 1
|
|
25
|
-
.mediaData
|
|
26
|
-
margin-top: 23px
|
|
27
|
-
padding: 0
|
|
28
|
-
.redHelperText
|
|
29
|
-
color: theme($theme, red)
|
|
30
|
-
font-size: 14px
|
|
31
|
-
.tabPanelContent > div > div > div
|
|
32
|
-
display: block !important
|
|
33
|
-
.mediaTitle
|
|
34
|
-
color: theme($theme, text-primary-dark)
|
|
35
|
-
font-size: theme($theme, heading-xs-size)
|
|
36
|
-
font-weight: theme($theme, heading-weight)
|
|
37
|
-
line-height: theme($theme, heading-xs-line-height)
|
|
38
|
-
word-break: break-all
|
|
39
|
-
.text
|
|
40
|
-
color: theme($theme, gray-40)
|
|
41
|
-
font-size: theme($theme, body-small-text-size)
|
|
42
|
-
font-weight: theme($theme, body-small-weight-normal)
|
|
43
|
-
.playerSelectLabel
|
|
44
|
-
font-family: theme($theme, label-font)
|
|
45
|
-
font-size: theme($theme, label-font-size)
|
|
46
|
-
font-weight: theme($theme, label-font-weight)
|
|
47
|
-
line-height: theme($theme, label-line-height)
|
|
48
|
-
letter-spacing: theme($theme, label-letter-spacing)
|
|
49
|
-
color: theme($theme, label-color)
|
|
50
|
-
padding: 0 0 .4rem
|
|
51
|
-
.playerSelect
|
|
52
|
-
width: 100%
|
|
53
|
-
.getURLBtnContainer
|
|
54
|
-
display: inline-flex
|
|
55
|
-
.getURLBtnSpinner
|
|
56
|
-
left: -5px
|
|
57
|
-
position: relative
|
|
58
|
-
margin-right: 8px
|
|
59
|
-
.mediaId
|
|
60
|
-
@extend .text
|
|
61
|
-
margin-bottom: 25px
|
|
62
|
-
.tooltip
|
|
63
|
-
margin-left: theme($theme, padding-sm)
|
|
64
|
-
.customPluginNotice
|
|
65
|
-
font-size: 14px
|
|
66
|
-
.playerLoader
|
|
67
|
-
video-js
|
|
68
|
-
width: 539px !important
|
|
69
|
-
height: 303.2px !important
|
|
70
|
-
margin-bottom: theme($theme, padding-sm)
|
|
71
|
-
iframe
|
|
72
|
-
width: 539px !important
|
|
73
|
-
height: 303.2px !important
|
|
74
|
-
.previewButton
|
|
75
|
-
align-self: center
|
|
76
|
-
|
package/src/styles/base.sass
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'theme.sass'
|
package/src/styles/theme.sass
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
@import "~@brightcove/studio-design-tokens/themes/blueSteel/index-map.sass"
|
|
2
|
-
@import "~@brightcove/studio-design-tokens/themes/classic/index-map.sass"
|
|
3
|
-
|
|
4
|
-
$themes: $classic $blueSteel
|
|
5
|
-
|
|
6
|
-
@function theme($theme, $property)
|
|
7
|
-
@return map-get($theme, $property)
|
|
8
|
-
|
|
9
|
-
=themed
|
|
10
|
-
@each $theme in $themes
|
|
11
|
-
@content($theme)
|
package/src/styles/typings.td.ts
DELETED
package/src/translations/en.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modalHeader": "Embed on website",
|
|
3
|
-
"mediaNotice": "Will use your account’s default player",
|
|
4
|
-
"tooltipText": "Currently using the Brightcove Default Player. Player management coming soon.",
|
|
5
|
-
"tooltipTextNew": "Players determine the video playback experience such as styling, special configuration settings, and more.",
|
|
6
|
-
"tooltipLink": "Learn more about players",
|
|
7
|
-
"learnmore": "https://studio.support.brightcove.com/players/getting-started-players-module.html",
|
|
8
|
-
"previewButton": "Preview",
|
|
9
|
-
"player": "Player",
|
|
10
|
-
"getURL": "Get URL",
|
|
11
|
-
"tabs": {
|
|
12
|
-
"labels": {
|
|
13
|
-
"iframe": "iframe",
|
|
14
|
-
"javascript": "JavaScript"
|
|
15
|
-
},
|
|
16
|
-
"helperText": "Copy the HTML code and paste it on your website.",
|
|
17
|
-
"helperTextWarning": "This player is configured with the Campaign plugin. To ensure proper tracking, the JavaScript embed code should be used.",
|
|
18
|
-
"viewerIdTextWarning": "This player is configured with Viewer ID Tracking. To ensure proper tracking, the JavaScript embed code should be used.",
|
|
19
|
-
"bcMapTrackingTextWarning": "This player is configured with MAPs Tracking. To ensure proper tracking, the JavaScript embed code should be used."
|
|
20
|
-
},
|
|
21
|
-
"done": "Done",
|
|
22
|
-
"close": "Close",
|
|
23
|
-
"toasterTitle": "Success.",
|
|
24
|
-
"toasterMessage": "Code copied to clipboard",
|
|
25
|
-
"toasterGetURLSuccess": "URL copied to the clipboard",
|
|
26
|
-
"toasterErrorMessage": "Error while copying text to clipboard",
|
|
27
|
-
"toasterGetURLError": "URL cannot be generated",
|
|
28
|
-
"customPluginNotice": "Due to custom configurations, you may not be experiencing the full preview.",
|
|
29
|
-
"noPlayerModalHeader": "Create an Interactivity Player",
|
|
30
|
-
"noPlayerModalContent1": "To embed an Interactivity Project you must enable the interactivity feature.",
|
|
31
|
-
"noPlayerModalContent2": "Activate this feature on any existing player or create a new one.",
|
|
32
|
-
"toPlayersModuleLink": "Go to the Players module",
|
|
33
|
-
"cancel": "Cancel",
|
|
34
|
-
"createPlayerNow": "Create Player Now",
|
|
35
|
-
"createPlayerFailedTitle": "Failed to create the Interactivity-enabled Player.",
|
|
36
|
-
"createPlayerFailedMessage": "Please try again.",
|
|
37
|
-
"activateModal": "No Interactivity-enabled players",
|
|
38
|
-
"activateModalContent1": "An Interactivity-enabled player is required to embed a project. Currently, this account has no Interactivity-enabled players. To create one, use the ",
|
|
39
|
-
"activateModalContent2": "Players module",
|
|
40
|
-
"customSettings": {
|
|
41
|
-
"sizing": "Sizing",
|
|
42
|
-
"aspectRatio": "Aspect Ratio",
|
|
43
|
-
"playerWidth": "Player width",
|
|
44
|
-
"playerHeight": "Player height",
|
|
45
|
-
"units": "Units"
|
|
46
|
-
},
|
|
47
|
-
"lowLatency": "Low Latency",
|
|
48
|
-
"dvr": {
|
|
49
|
-
"allowDVR": "Allow DVR",
|
|
50
|
-
"inputLabel": "Time",
|
|
51
|
-
"inputDescription": "The time, in seconds, to keep in the live DVR manifest"
|
|
52
|
-
}
|
|
53
|
-
}
|
package/src/translations/es.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modalHeader": "Incrustar en sitio web",
|
|
3
|
-
"mediaNotice": "Utilizará el reproductor predeterminado de su cuenta",
|
|
4
|
-
"tooltipText": "Actualmente se está utilizando el reproductor predeterminado de Brightcove. La gestión de reproductores estará disponible próximamente.",
|
|
5
|
-
"tooltipTextNew": "Los reproductores determinan la experiencia del usuario a la hora de reproducir vídeos por medio de ajustes como el estilo del reproductor, ajustes de configuración especiales y otros.",
|
|
6
|
-
"tooltipLink": "Más información sobre reproductores",
|
|
7
|
-
"learnmore": "https://es.studio.support.brightcove.com/players/getting-started-players-module.html",
|
|
8
|
-
"previewButton": "Vista previa",
|
|
9
|
-
"player": "Reproductor",
|
|
10
|
-
"getURL": "Obtener URL",
|
|
11
|
-
"tabs": {
|
|
12
|
-
"labels": {
|
|
13
|
-
"iframe": "iframe",
|
|
14
|
-
"javascript": "JavaScript"
|
|
15
|
-
},
|
|
16
|
-
"helperText": "Copie el código HTML y péguelo en su sitio web.",
|
|
17
|
-
"helperTextWarning": "Este reproductor está configurado con el complemento Campaign. Para garantizar un seguimiento adecuado, debe utilizarse el código de incrustación JavaScript.",
|
|
18
|
-
"viewerIdTextWarning": "Este reproductor está configurado con el seguimiento de identificadores de espectadores. Para garantizar un seguimiento correcto, debe utilizarse el código de incrustación JavaScript.",
|
|
19
|
-
"bcMapTrackingTextWarning": "This player is configured with MAPs Tracking. To ensure proper tracking, the JavaScript embed code should be used."
|
|
20
|
-
},
|
|
21
|
-
"toasterTitle": "Operación realizada correctamente.",
|
|
22
|
-
"toasterMessage": "Código copiado al portapapeles",
|
|
23
|
-
"toasterGetURLSuccess": "URL copiada al portapapeles",
|
|
24
|
-
"toasterGetURLError": "No es posible generar la URL",
|
|
25
|
-
"toasterErrorMessage": "Se ha producido un error al copiar el texto al portapapeles.",
|
|
26
|
-
"customPluginNotice": "Puede ocurrir que las configuraciones personalizadas impidan la previsualización completa.",
|
|
27
|
-
"done": "Hecho",
|
|
28
|
-
"close": "Cerrar",
|
|
29
|
-
"noPlayerModalHeader": "Crear un reproductor de interactividad",
|
|
30
|
-
"noPlayerModalContent1": "Para poder incrustar un proyecto de interactividad, primero hay que activar la función de interactividad.",
|
|
31
|
-
"noPlayerModalContent2": "Active esta función en cualquier reproductor existente o cree uno nuevo.",
|
|
32
|
-
"toPlayersModuleLink": "Ir al módulo Players",
|
|
33
|
-
"cancel": "Cancelar",
|
|
34
|
-
"createPlayerNow": "Crear reproductor ahora",
|
|
35
|
-
"createPlayerFailedTitle": "No ha sido posible crear el reproductor con la interactividad activada.",
|
|
36
|
-
"createPlayerFailedMessage": "Vuelva a intentarlo.",
|
|
37
|
-
"activateModal": "No hay ningún reproductor con la interactividad activada",
|
|
38
|
-
"activateModalContent1": "Para poder incrustar proyectos, se precisa un reproductor con la interactividad activada. En este momento, esta cuenta no tiene reproductores con la interactividad activada. Para crear uno, utilice el ",
|
|
39
|
-
"activateModalContent2": "Módulo Players",
|
|
40
|
-
"customSettings": {
|
|
41
|
-
"sizing": "Dimensionamiento",
|
|
42
|
-
"aspectRatio": "Relación de aspecto",
|
|
43
|
-
"playerWidth": "Anchura del reproductor",
|
|
44
|
-
"playerHeight": "Altura del reproductor",
|
|
45
|
-
"units": "Unidades"
|
|
46
|
-
},
|
|
47
|
-
"lowLatency": "Baja latencia",
|
|
48
|
-
"dvr": {
|
|
49
|
-
"allowDVR": "Permitir DVR",
|
|
50
|
-
"inputLabel": "Time",
|
|
51
|
-
"inputDescription": "The time, in seconds, to keep in the live DVR manifest"
|
|
52
|
-
}
|
|
53
|
-
}
|
package/src/translations/fr.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modalHeader": "Intégration à un site Internet",
|
|
3
|
-
"mediaNotice": "Ceci utilisera le lecteur par défaut de votre compte",
|
|
4
|
-
"tooltipText": "Utilise actuellement le lecteur Brightcove par défaut. La fonctionnalité de gestion des lecteurs sera bientôt disponible.",
|
|
5
|
-
"tooltipTextNew": "Les joueurs choisissent l'expérience de lecture vidéo comme l'apparence, les paramètres de configuration spéciaux, et plus.",
|
|
6
|
-
"tooltipLink": "En savoir plus sur les lecteurs",
|
|
7
|
-
"learnmore": "https://fr.studio.support.brightcove.com/players/getting-started-players-module.html",
|
|
8
|
-
"previewButton": "Aperçu",
|
|
9
|
-
"player": "Player",
|
|
10
|
-
"getURL": "Obtenir l'URL",
|
|
11
|
-
"tabs": {
|
|
12
|
-
"labels": {
|
|
13
|
-
"iframe": "iframe",
|
|
14
|
-
"javascript": "JavaScript"
|
|
15
|
-
},
|
|
16
|
-
"helperText": "Copiez le code HTML et collez-le dans votre site Internet.",
|
|
17
|
-
"helperTextWarning": "Ce joueur est configuré avec le plug-in Campaign. Pour garantir un suivi adéquat, le code incorporé JavaScript doit être utilisé.",
|
|
18
|
-
"viewerIdTextWarning": "Ce joueur est configuré avec le suivi des ID spectateurs. Pour garantir un suivi adéquat, le code incorporé JavaScript doit être utilisé.",
|
|
19
|
-
"bcMapTrackingTextWarning": "This player is configured with MAPs Tracking. To ensure proper tracking, the JavaScript embed code should be used."
|
|
20
|
-
},
|
|
21
|
-
"toasterTitle": "Réussite.",
|
|
22
|
-
"toasterMessage": "Code copié dans le presse-papiers",
|
|
23
|
-
"toasterGetURLSuccess": "URL copiée dans le presse-papiers",
|
|
24
|
-
"toasterGetURLError": "Impossible de générer l'URL",
|
|
25
|
-
"toasterErrorMessage": "Erreur lors de la copie du texte dans le presse-papiers",
|
|
26
|
-
"customPluginNotice": "En raison des configurations personnalisées, vous pourriez ne pas pouvoir visualiser l'aperçu plein écran.",
|
|
27
|
-
"done": "Terminé",
|
|
28
|
-
"close": "Fermer",
|
|
29
|
-
"noPlayerModalHeader": "Créer un lecteur d’interactivité",
|
|
30
|
-
"noPlayerModalContent1": "Pour intégrer un projet d’interactivité vous devez activer la fonction d’interactivité.",
|
|
31
|
-
"noPlayerModalContent2": "Activez cette fonction sur un lecteur existant ou créez-en un nouveau.",
|
|
32
|
-
"toPlayersModuleLink": "Accéder au module Lecteurs",
|
|
33
|
-
"cancel": "Annuler",
|
|
34
|
-
"createPlayerNow": "Créer un lecteur maintenant",
|
|
35
|
-
"createPlayerFailedTitle": "Impossible de créer le lecteur compatible à l’interactivité.",
|
|
36
|
-
"createPlayerFailedMessage": "Veuillez réessayer.",
|
|
37
|
-
"activateModal": "Aucun lecteur compatible à l’interactivité.",
|
|
38
|
-
"activateModalContent1": "Un lecteur compatible à l’interactivité est obligatoire pour intégrer un projet. Actuellement, ce compte ne contient aucun lecteur compatible à l’interactivité. Pour en créer un, utilisez le ",
|
|
39
|
-
"activateModalContent2": "module Lecteurs",
|
|
40
|
-
"customSettings": {
|
|
41
|
-
"sizing": "Redimensionnement",
|
|
42
|
-
"aspectRatio": "Ratio d'aspect",
|
|
43
|
-
"playerWidth": "Largeur du lecteur",
|
|
44
|
-
"playerHeight": "Hauteur du lecteur",
|
|
45
|
-
"units": "Unités"
|
|
46
|
-
},
|
|
47
|
-
"lowLatency": "Faible latence",
|
|
48
|
-
"dvr": {
|
|
49
|
-
"allowDVR": "Permettre le DVR",
|
|
50
|
-
"inputLabel": "Time",
|
|
51
|
-
"inputDescription": "The time, in seconds, to keep in the live DVR manifest"
|
|
52
|
-
}
|
|
53
|
-
}
|
package/src/translations/ja.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modalHeader": "Webサイトに埋め込み",
|
|
3
|
-
"mediaNotice": "アカウントのデフォルトのプレーヤーを使用します",
|
|
4
|
-
"tooltipText": "現在、Brightcoveのデフォルトのプレーヤーを使用しています。プレーヤー管理が、間もなく公開されます。",
|
|
5
|
-
"tooltipTextNew": "プレーヤーは、スタイル指定や特別な設定など、動画再生体験を決定します。",
|
|
6
|
-
"tooltipLink": "プレーヤーについての詳細",
|
|
7
|
-
"learnmore": "https://ja.studio.support.brightcove.com/players/getting-started-players-module.html",
|
|
8
|
-
"previewButton": "プレビュー",
|
|
9
|
-
"player": "プレーヤー",
|
|
10
|
-
"getURL": "URLを取得する",
|
|
11
|
-
"tabs": {
|
|
12
|
-
"labels": {
|
|
13
|
-
"iframe": "iframe",
|
|
14
|
-
"javascript": "JavaScript"
|
|
15
|
-
},
|
|
16
|
-
"helperText": "HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。",
|
|
17
|
-
"helperTextWarning": "このプレーヤーは、キャンペーンプラグインを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。",
|
|
18
|
-
"viewerIdTextWarning": "このプレーヤーは、視聴者IDトラッキングを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。",
|
|
19
|
-
"bcMapTrackingTextWarning": "This player is configured with MAPs Tracking. To ensure proper tracking, the JavaScript embed code should be used."
|
|
20
|
-
},
|
|
21
|
-
"toasterTitle": "成功。",
|
|
22
|
-
"toasterMessage": "コードをクリップボードにコピーしました",
|
|
23
|
-
"toasterGetURLSuccess": "URLをクリップボードにコピーしました",
|
|
24
|
-
"toasterGetURLError": "URLを生成できません",
|
|
25
|
-
"toasterErrorMessage": "テキストをクリップボードにコピー中にエラーが発生しました",
|
|
26
|
-
"customPluginNotice": "カスタム設定により、プレビューが完全でない場合があります。",
|
|
27
|
-
"done": "完了",
|
|
28
|
-
"close": "閉じる",
|
|
29
|
-
"noPlayerModalHeader": "インタラクティブプレーヤーの作成",
|
|
30
|
-
"noPlayerModalContent1": "インタラクティブプロジェクトを埋め込むには、インタラクティブ機能を有効にする必要があります。",
|
|
31
|
-
"noPlayerModalContent2": "既存のプレーヤーでこの機能をアクティブ化するか、新しいプレーヤーを作成してください。",
|
|
32
|
-
"toPlayersModuleLink": "Playersモジュールに移動します",
|
|
33
|
-
"cancel": "キャンセル",
|
|
34
|
-
"createPlayerNow": "今すぐプレーヤーを作成",
|
|
35
|
-
"createPlayerFailedTitle": "インタラクティブ機能対応プレーヤーの作成に失敗しました。",
|
|
36
|
-
"createPlayerFailedMessage": "もう一度お試しください。",
|
|
37
|
-
"activateModal": "インタラクティブ機能対応プレーヤーがありません",
|
|
38
|
-
"activateModalContent1": "プロジェクトを埋め込むには、インタラクティブ機能対応プレーヤーが必要です。現在、このアカウントには、インタラクティブ機能対応プレーヤーがありません。作成するには ",
|
|
39
|
-
"activateModalContent2": "Playersモジュールを使用します",
|
|
40
|
-
"customSettings": {
|
|
41
|
-
"sizing": "サイズ",
|
|
42
|
-
"aspectRatio": "アスペクト比",
|
|
43
|
-
"playerWidth": "プレーヤーの幅",
|
|
44
|
-
"playerHeight": "プレーヤーの高さ",
|
|
45
|
-
"units": "単位"
|
|
46
|
-
},
|
|
47
|
-
"lowLatency": "低遅延",
|
|
48
|
-
"dvr": {
|
|
49
|
-
"allowDVR": "DVR の許可",
|
|
50
|
-
"inputLabel": "Time",
|
|
51
|
-
"inputDescription": "The time, in seconds, to keep in the live DVR manifest"
|
|
52
|
-
}
|
|
53
|
-
}
|