@brightcove/components-embed-code-modal 1.1.0 → 1.1.2
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__/PrismPlayerControls.test.d.ts +2 -0
- package/__tests__/PrismPlayerControls.test.d.ts.map +1 -0
- package/{build/index.js → index.js} +1 -1
- package/index.js.map +1 -0
- package/package.json +5 -15
- package/{build/src → src}/js/components/prism/PrismPlayerControls.d.ts.map +1 -1
- package/.eslintignore +0 -7
- package/.eslintrc +0 -23
- package/.github/workflows/ci.yml +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 -398
- 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__/PrismPlayerPreview.test.tsx +0 -168
- 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__/embedCodeGenerator.test.ts +0 -111
- package/__tests__/util.test.ts +0 -89
- package/babel.config.json +0 -17
- package/build/README.md +0 -109
- package/build/index.js.map +0 -1
- package/build/package.json +0 -100
- package/etc/wildcard.brightcove.com.key +0 -27
- package/etc/wildcard.brightcove.com.pem +0 -96
- package/jest/jest.setup.js +0 -90
- 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 -17
- package/src/js/EmbedCodeModal.tsx +0 -105
- package/src/js/components/CustomSettingsDropdown.tsx +0 -184
- package/src/js/components/EmbedCopySection.tsx +0 -130
- package/src/js/components/ModalContainer.tsx +0 -367
- 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 -324
- package/src/js/components/index.ts +0 -9
- package/src/js/components/prism/PrismLiveModal.tsx +0 -162
- package/src/js/components/prism/PrismPlayerControls.tsx +0 -343
- package/src/js/components/prism/PrismPlayerPreview.tsx +0 -188
- package/src/js/components/prism/index.ts +0 -3
- 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/embedCodeGenerator.ts +0 -120
- package/src/js/utils/featureSwitches.ts +0 -16
- package/src/js/utils/util.ts +0 -153
- package/src/module.tsx +0 -280
- 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/prism/PrismLiveModal.sass +0 -155
- package/src/styles/theme.sass +0 -11
- package/src/styles/typings.td.ts +0 -9
- package/src/translations/en.json +0 -65
- package/src/translations/es.json +0 -65
- package/src/translations/fr.json +0 -65
- package/src/translations/ja.json +0 -65
- package/src/translations/ko.json +0 -65
- package/src/translations/zh.json +0 -65
- package/src/types/studio.ts +0 -197
- package/tsconfig.json +0 -34
- package/webpack.config.js +0 -117
- /package/{build/__tests__ → __tests__}/EmbedCode.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/EmbedCode.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/InteractivityProject.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/InteractivityProject.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/PlayerPreview.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/PlayerPreview.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/PrismPlayerPreview.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/PrismPlayerPreview.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/TabsHeader.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/TabsHeader.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/TabsSection.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/TabsSection.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/TitleWithTooltip.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/TitleWithTooltip.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/VideoPlayer.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/VideoPlayer.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/embedCodeGenerator.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/embedCodeGenerator.test.d.ts.map +0 -0
- /package/{build/__tests__ → __tests__}/util.test.d.ts +0 -0
- /package/{build/__tests__ → __tests__}/util.test.d.ts.map +0 -0
- /package/{build/src → src}/index.d.ts +0 -0
- /package/{build/src → src}/index.d.ts.map +0 -0
- /package/{build/src → src}/js/EmbedCodeModal.d.ts +0 -0
- /package/{build/src → src}/js/EmbedCodeModal.d.ts.map +0 -0
- /package/{build/src → src}/js/components/CustomSettingsDropdown.d.ts +0 -0
- /package/{build/src → src}/js/components/CustomSettingsDropdown.d.ts.map +0 -0
- /package/{build/src → src}/js/components/EmbedCopySection.d.ts +0 -0
- /package/{build/src → src}/js/components/EmbedCopySection.d.ts.map +0 -0
- /package/{build/src → src}/js/components/ModalContainer.d.ts +0 -0
- /package/{build/src → src}/js/components/ModalContainer.d.ts.map +0 -0
- /package/{build/src → src}/js/components/NoPlayerModal.d.ts +0 -0
- /package/{build/src → src}/js/components/NoPlayerModal.d.ts.map +0 -0
- /package/{build/src → src}/js/components/PlayerPreview.d.ts +0 -0
- /package/{build/src → src}/js/components/PlayerPreview.d.ts.map +0 -0
- /package/{build/src → src}/js/components/TabsHeader.d.ts +0 -0
- /package/{build/src → src}/js/components/TabsHeader.d.ts.map +0 -0
- /package/{build/src → src}/js/components/TabsSection.d.ts +0 -0
- /package/{build/src → src}/js/components/TabsSection.d.ts.map +0 -0
- /package/{build/src → src}/js/components/TitleWithTooltip.d.ts +0 -0
- /package/{build/src → src}/js/components/TitleWithTooltip.d.ts.map +0 -0
- /package/{build/src → src}/js/components/VideoLinks.d.ts +0 -0
- /package/{build/src → src}/js/components/VideoLinks.d.ts.map +0 -0
- /package/{build/src → src}/js/components/VideoPlayer.d.ts +0 -0
- /package/{build/src → src}/js/components/VideoPlayer.d.ts.map +0 -0
- /package/{build/src → src}/js/components/index.d.ts +0 -0
- /package/{build/src → src}/js/components/index.d.ts.map +0 -0
- /package/{build/src → src}/js/components/prism/PrismLiveModal.d.ts +0 -0
- /package/{build/src → src}/js/components/prism/PrismLiveModal.d.ts.map +0 -0
- /package/{build/src → src}/js/components/prism/PrismPlayerControls.d.ts +0 -0
- /package/{build/src → src}/js/components/prism/PrismPlayerPreview.d.ts +0 -0
- /package/{build/src → src}/js/components/prism/PrismPlayerPreview.d.ts.map +0 -0
- /package/{build/src → src}/js/components/prism/index.d.ts +0 -0
- /package/{build/src → src}/js/components/prism/index.d.ts.map +0 -0
- /package/{build/src → src}/js/constants/baseUrls.d.ts +0 -0
- /package/{build/src → src}/js/constants/baseUrls.d.ts.map +0 -0
- /package/{build/src → src}/js/constants/embed.d.ts +0 -0
- /package/{build/src → src}/js/constants/embed.d.ts.map +0 -0
- /package/{build/src → src}/js/constants/player.d.ts +0 -0
- /package/{build/src → src}/js/constants/player.d.ts.map +0 -0
- /package/{build/src → src}/js/constants/pluginsRegistry.d.ts +0 -0
- /package/{build/src → src}/js/constants/pluginsRegistry.d.ts.map +0 -0
- /package/{build/src → src}/js/hooks/useGetPlayers.d.ts +0 -0
- /package/{build/src → src}/js/hooks/useGetPlayers.d.ts.map +0 -0
- /package/{build/src → src}/js/i18n.d.ts +0 -0
- /package/{build/src → src}/js/i18n.d.ts.map +0 -0
- /package/{build/src → src}/js/services/players-api.d.ts +0 -0
- /package/{build/src → src}/js/services/players-api.d.ts.map +0 -0
- /package/{build/src → src}/js/services/url-shortener.d.ts +0 -0
- /package/{build/src → src}/js/services/url-shortener.d.ts.map +0 -0
- /package/{build/src → src}/js/types/EmbedCodeModalProps.d.ts +0 -0
- /package/{build/src → src}/js/types/EmbedCodeModalProps.d.ts.map +0 -0
- /package/{build/src → src}/js/types/EmbedCodeProps.d.ts +0 -0
- /package/{build/src → src}/js/types/EmbedCodeProps.d.ts.map +0 -0
- /package/{build/src → src}/js/types/players.d.ts +0 -0
- /package/{build/src → src}/js/types/players.d.ts.map +0 -0
- /package/{build/src → src}/js/types/studioModule.d.ts +0 -0
- /package/{build/src → src}/js/types/studioModule.d.ts.map +0 -0
- /package/{build/src → src}/js/utils/addPluginsDataToPlayers.d.ts +0 -0
- /package/{build/src → src}/js/utils/addPluginsDataToPlayers.d.ts.map +0 -0
- /package/{build/src → src}/js/utils/call.d.ts +0 -0
- /package/{build/src → src}/js/utils/call.d.ts.map +0 -0
- /package/{build/src → src}/js/utils/dimensions.d.ts +0 -0
- /package/{build/src → src}/js/utils/dimensions.d.ts.map +0 -0
- /package/{build/src → src}/js/utils/embedCodeGenerator.d.ts +0 -0
- /package/{build/src → src}/js/utils/embedCodeGenerator.d.ts.map +0 -0
- /package/{build/src → src}/js/utils/featureSwitches.d.ts +0 -0
- /package/{build/src → src}/js/utils/featureSwitches.d.ts.map +0 -0
- /package/{build/src → src}/js/utils/util.d.ts +0 -0
- /package/{build/src → src}/js/utils/util.d.ts.map +0 -0
- /package/{build/src → src}/module.d.ts +0 -0
- /package/{build/src → src}/module.d.ts.map +0 -0
- /package/{build/src → src}/styles/typings.td.d.ts +0 -0
- /package/{build/src → src}/styles/typings.td.d.ts.map +0 -0
- /package/{build/src → src}/types/studio.d.ts +0 -0
- /package/{build/src → src}/types/studio.d.ts.map +0 -0
package/webpack.config.js
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const TerserPlugin = require('terser-webpack-plugin');
|
|
4
|
-
|
|
5
|
-
module.exports = () => {
|
|
6
|
-
const isDevelopment = (process.env.NODE_ENV === 'development');
|
|
7
|
-
const isDemo = (process.env.DEMO === '1');
|
|
8
|
-
const entryFile = isDevelopment ? './src/module.tsx' : './src/index.ts';
|
|
9
|
-
|
|
10
|
-
const externalPackages = [
|
|
11
|
-
'react',
|
|
12
|
-
'react-dom',
|
|
13
|
-
'@brightcove/prism-core',
|
|
14
|
-
'@brightcove/studio-components',
|
|
15
|
-
'@brightcove/studio-api-services',
|
|
16
|
-
'@brightcove/studio-design-tokens',
|
|
17
|
-
'@brightcove/studio-icons',
|
|
18
|
-
'@brightcove/player-embed-code',
|
|
19
|
-
'@brightcove/react-player-loader',
|
|
20
|
-
'i18next',
|
|
21
|
-
'react-i18next',
|
|
22
|
-
'react-query',
|
|
23
|
-
];
|
|
24
|
-
|
|
25
|
-
// Externalize exact matches and subpath imports (e.g. react-query/devtools)
|
|
26
|
-
const externalsFn = ({request}, callback) => {
|
|
27
|
-
const match = externalPackages.find(
|
|
28
|
-
(pkg) => request === pkg || request.startsWith(pkg + '/')
|
|
29
|
-
);
|
|
30
|
-
if (match) {
|
|
31
|
-
return callback(null, `commonjs2 ${request}`);
|
|
32
|
-
}
|
|
33
|
-
callback();
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
return {
|
|
37
|
-
entry: {
|
|
38
|
-
app: entryFile,
|
|
39
|
-
},
|
|
40
|
-
output: isDevelopment ? {
|
|
41
|
-
path: path.resolve(__dirname, '..', 'build'),
|
|
42
|
-
filename: 'js/[name].js',
|
|
43
|
-
publicPath: 'https://localhost.brightcove.com:12345/',
|
|
44
|
-
} : {
|
|
45
|
-
path: path.resolve(__dirname, 'build'),
|
|
46
|
-
filename: 'index.js',
|
|
47
|
-
libraryTarget: 'umd'
|
|
48
|
-
},
|
|
49
|
-
mode: process.env.NODE_ENV,
|
|
50
|
-
module: {
|
|
51
|
-
rules: [
|
|
52
|
-
{
|
|
53
|
-
test: /\.(css|scss|sass)$/,
|
|
54
|
-
use: ['style-loader',
|
|
55
|
-
{
|
|
56
|
-
loader: 'css-loader',
|
|
57
|
-
options: {
|
|
58
|
-
modules: {
|
|
59
|
-
localIdentName: '[name]__[local]--[hash:base64:5]'
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
loader: 'sass-loader',
|
|
65
|
-
}],
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
test: /\.(js|ts)x?$/,
|
|
69
|
-
exclude: /node_modules/,
|
|
70
|
-
use: {
|
|
71
|
-
loader: 'babel-loader',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
resolve: {
|
|
77
|
-
extensions: ['.ts', '.tsx', '.js', '.jsx','.css', '.sass', '.scss'],
|
|
78
|
-
alias: {
|
|
79
|
-
js: path.resolve(path.resolve(__dirname), 'src/js'),
|
|
80
|
-
styles: path.resolve(path.resolve(__dirname), 'src/styles'),
|
|
81
|
-
translations: path.resolve(path.resolve(__dirname), 'src/translations'),
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
externals: isDemo ? {} : externalsFn,
|
|
85
|
-
devtool: 'source-map',
|
|
86
|
-
devServer: {
|
|
87
|
-
static: {
|
|
88
|
-
directory: './dist',
|
|
89
|
-
},
|
|
90
|
-
client: {
|
|
91
|
-
overlay: {
|
|
92
|
-
errors: true,
|
|
93
|
-
warnings: false,
|
|
94
|
-
runtimeErrors: true,
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
allowedHosts: 'all',
|
|
98
|
-
hot: 'only',
|
|
99
|
-
host: 'localhost.brightcove.com',
|
|
100
|
-
https: {
|
|
101
|
-
key: fs.readFileSync('./etc/wildcard.brightcove.com.key'),
|
|
102
|
-
cert: fs.readFileSync('./etc/wildcard.brightcove.com.pem'),
|
|
103
|
-
},
|
|
104
|
-
headers: {
|
|
105
|
-
'Access-Control-Allow-Origin': '*',
|
|
106
|
-
},
|
|
107
|
-
port: 12345,
|
|
108
|
-
historyApiFallback: true,
|
|
109
|
-
},
|
|
110
|
-
optimization: {
|
|
111
|
-
minimizer: [new TerserPlugin({
|
|
112
|
-
extractComments: false,
|
|
113
|
-
})],
|
|
114
|
-
},
|
|
115
|
-
stats: 'errors-only',
|
|
116
|
-
}
|
|
117
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|