@brightcove/components-embed-code-modal 0.1.1
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/index.d.ts +3 -0
- package/index.js +71 -0
- package/index.js.map +1 -0
- package/js/EmbedCode.d.ts +3 -0
- package/js/EmbedCodeModal.d.ts +4 -0
- package/js/EmbedCodeModalComponent.d.ts +3 -0
- package/js/constants/baseUrls.d.ts +2 -0
- package/js/i18n.d.ts +118 -0
- package/js/types/EmbedCodeModalProps.d.ts +11 -0
- package/js/types/EmbedCodeProps.d.ts +5 -0
- package/js/types/studioModule.d.ts +14 -0
- package/js/utils/util.d.ts +13 -0
- package/package.json +65 -0
- package/styles/typings.td.d.ts +12 -0
package/js/i18n.d.ts
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
export declare const resources: {
|
|
3
|
+
en: {
|
|
4
|
+
translation: {
|
|
5
|
+
modalHeader: string;
|
|
6
|
+
mediaNotice: string;
|
|
7
|
+
tooltipText: string;
|
|
8
|
+
tooltipLink: string;
|
|
9
|
+
previewButton: string;
|
|
10
|
+
tabs: {
|
|
11
|
+
labels: {
|
|
12
|
+
iframe: string;
|
|
13
|
+
javascript: string;
|
|
14
|
+
};
|
|
15
|
+
helperText: string;
|
|
16
|
+
};
|
|
17
|
+
closeModal: string;
|
|
18
|
+
toasterTitle: string;
|
|
19
|
+
toasterMessage: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
es: {
|
|
23
|
+
translation: {
|
|
24
|
+
modalHeader: string;
|
|
25
|
+
mediaNotice: string;
|
|
26
|
+
tooltipText: string;
|
|
27
|
+
tooltipLink: string;
|
|
28
|
+
previewButton: string;
|
|
29
|
+
tabs: {
|
|
30
|
+
labels: {
|
|
31
|
+
iframe: string;
|
|
32
|
+
javascript: string;
|
|
33
|
+
};
|
|
34
|
+
helperText: string;
|
|
35
|
+
};
|
|
36
|
+
closeModal: string;
|
|
37
|
+
toasterTitle: string;
|
|
38
|
+
toasterMessage: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
fr: {
|
|
42
|
+
translation: {
|
|
43
|
+
modalHeader: string;
|
|
44
|
+
mediaNotice: string;
|
|
45
|
+
tooltipText: string;
|
|
46
|
+
tooltipLink: string;
|
|
47
|
+
previewButton: string;
|
|
48
|
+
tabs: {
|
|
49
|
+
labels: {
|
|
50
|
+
iframe: string;
|
|
51
|
+
javascript: string;
|
|
52
|
+
};
|
|
53
|
+
helperText: string;
|
|
54
|
+
};
|
|
55
|
+
closeModal: string;
|
|
56
|
+
toasterTitle: string;
|
|
57
|
+
toasterMessage: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
ja: {
|
|
61
|
+
translation: {
|
|
62
|
+
modalHeader: string;
|
|
63
|
+
mediaNotice: string;
|
|
64
|
+
tooltipText: string;
|
|
65
|
+
tooltipLink: string;
|
|
66
|
+
previewButton: string;
|
|
67
|
+
tabs: {
|
|
68
|
+
labels: {
|
|
69
|
+
iframe: string;
|
|
70
|
+
javascript: string;
|
|
71
|
+
};
|
|
72
|
+
helperText: string;
|
|
73
|
+
};
|
|
74
|
+
closeModal: string;
|
|
75
|
+
toasterTitle: string;
|
|
76
|
+
toasterMessage: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
ko: {
|
|
80
|
+
translation: {
|
|
81
|
+
modalHeader: string;
|
|
82
|
+
mediaNotice: string;
|
|
83
|
+
tooltipText: string;
|
|
84
|
+
tooltipLink: string;
|
|
85
|
+
previewButton: string;
|
|
86
|
+
tabs: {
|
|
87
|
+
labels: {
|
|
88
|
+
iframe: string;
|
|
89
|
+
javascript: string;
|
|
90
|
+
};
|
|
91
|
+
helperText: string;
|
|
92
|
+
};
|
|
93
|
+
closeModal: string;
|
|
94
|
+
toasterTitle: string;
|
|
95
|
+
toasterMessage: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
zh: {
|
|
99
|
+
translation: {
|
|
100
|
+
modalHeader: string;
|
|
101
|
+
mediaNotice: string;
|
|
102
|
+
tooltipText: string;
|
|
103
|
+
tooltipLink: string;
|
|
104
|
+
previewButton: string;
|
|
105
|
+
tabs: {
|
|
106
|
+
labels: {
|
|
107
|
+
iframe: string;
|
|
108
|
+
javascript: string;
|
|
109
|
+
};
|
|
110
|
+
helperText: string;
|
|
111
|
+
};
|
|
112
|
+
closeModal: string;
|
|
113
|
+
toasterTitle: string;
|
|
114
|
+
toasterMessage: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export default i18n;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface VideoPayload {
|
|
2
|
+
videoId: string;
|
|
3
|
+
videoName: string;
|
|
4
|
+
accountId: string;
|
|
5
|
+
posterUrl?: string;
|
|
6
|
+
duration: number;
|
|
7
|
+
}
|
|
8
|
+
export declare type EmbedCodeModalProps = {
|
|
9
|
+
language?: 'en' | 'es' | 'fr' | 'ko' | 'ja' | 'zh';
|
|
10
|
+
video: VideoPayload;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the studio environment as a string.
|
|
3
|
+
* @returns the studio environment
|
|
4
|
+
*/
|
|
5
|
+
export declare function getStudioEnvironment(): string;
|
|
6
|
+
/**
|
|
7
|
+
* Is the module running in QA environment?
|
|
8
|
+
*/
|
|
9
|
+
export declare function isQA(): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Gets the correct player url base depending on environment
|
|
12
|
+
*/
|
|
13
|
+
export declare function getUrlBase(): "https://bc-players-qa.s3.amazonaws.com/" | "https://players.brightcove.net/";
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@brightcove/components-embed-code-modal",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Embed Code Modal used for publishing videos",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"author": "Campaign Team",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"demo": "NODE_ENV=development webpack-dev-server --progress --color",
|
|
9
|
+
"build": "NODE_ENV=production webpack --progress && node scripts/create-dist-pkg-prod && tsc",
|
|
10
|
+
"lint": "eslint \"{src,__tests__,demo}/**/*.{ts,tsx,js,jsx}\"",
|
|
11
|
+
"type-check": "tsc ",
|
|
12
|
+
"release": "release-it"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@babel/core": "^7.16.0",
|
|
16
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
17
|
+
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
18
|
+
"@babel/preset-env": "^7.16.4",
|
|
19
|
+
"@babel/preset-react": "^7.16.0",
|
|
20
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
21
|
+
"@brightcove/eslint-config-applications": "^0.3.0",
|
|
22
|
+
"@release-it/keep-a-changelog": "^2.3.0",
|
|
23
|
+
"@types/react": "^17.0.37",
|
|
24
|
+
"@types/react-dom": "^17.0.11",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
26
|
+
"@typescript-eslint/parser": "^5.4.0",
|
|
27
|
+
"babel-loader": "^8.2.3",
|
|
28
|
+
"css-loader": "^6.5.1",
|
|
29
|
+
"eslint": "^8.3.0",
|
|
30
|
+
"eslint-config-prettier": "^8.3.0",
|
|
31
|
+
"eslint-plugin-import": "^2.25.3",
|
|
32
|
+
"eslint-plugin-react": "^7.27.1",
|
|
33
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
34
|
+
"husky": "^7.0.4",
|
|
35
|
+
"lint-staged": "^12.1.2",
|
|
36
|
+
"prettier": "^2.5.0",
|
|
37
|
+
"react-dnd": "^14.0.4",
|
|
38
|
+
"react-dnd-html5-backend": "^14.0.2",
|
|
39
|
+
"release-it": "^14.11.8",
|
|
40
|
+
"sass": "^1.44.0",
|
|
41
|
+
"sass-loader": "^12.3.0",
|
|
42
|
+
"style-loader": "^3.3.1",
|
|
43
|
+
"typescript": "^4.5.2",
|
|
44
|
+
"webpack": "^5.64.4",
|
|
45
|
+
"webpack-cli": "^4.9.1",
|
|
46
|
+
"webpack-dev-server": "^4.5.0"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@brightcove/player-embed-code": "1.4.0",
|
|
50
|
+
"@brightcove/studio-components": "^3.2.0",
|
|
51
|
+
"@brightcove/studio-design-tokens": "1.13.0",
|
|
52
|
+
"@brightcove/studio-icons": "8.6.1",
|
|
53
|
+
"i18next": "^21.5.4",
|
|
54
|
+
"react": "^17.0.2",
|
|
55
|
+
"react-dom": "^17.0.2",
|
|
56
|
+
"react-i18next": "^11.14.3"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"react": ">=17.0.2",
|
|
60
|
+
"react-dom": ">=17.0.2",
|
|
61
|
+
"react-dnd": ">=14.0.4",
|
|
62
|
+
"react-dnd-html5-backend": ">=14.0.2"
|
|
63
|
+
},
|
|
64
|
+
"module": "./index.js"
|
|
65
|
+
}
|