@brightcove/components-embed-code-modal 0.1.20 → 0.1.22

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.
Files changed (58) hide show
  1. package/__tests__/EmbedCode.test.d.ts +2 -0
  2. package/__tests__/EmbedCode.test.d.ts.map +1 -0
  3. package/__tests__/PlayerPreview.test.d.ts +2 -0
  4. package/__tests__/PlayerPreview.test.d.ts.map +1 -0
  5. package/__tests__/PlayersDropdown.test.d.ts +2 -0
  6. package/__tests__/PlayersDropdown.test.d.ts.map +1 -0
  7. package/__tests__/TabsHeader.test.d.ts +2 -0
  8. package/__tests__/TabsHeader.test.d.ts.map +1 -0
  9. package/__tests__/TabsSection.test.d.ts +2 -0
  10. package/__tests__/TabsSection.test.d.ts.map +1 -0
  11. package/__tests__/TitleWithTooltip.test.d.ts +2 -0
  12. package/__tests__/TitleWithTooltip.test.d.ts.map +1 -0
  13. package/__tests__/VideoPlayer.test.d.ts +2 -0
  14. package/__tests__/VideoPlayer.test.d.ts.map +1 -0
  15. package/index.js +2 -2
  16. package/index.js.map +1 -1
  17. package/package.json +6 -4
  18. package/src/js/EmbedCode.d.ts.map +1 -1
  19. package/src/js/EmbedCodeModal.d.ts +8 -3
  20. package/src/js/EmbedCodeModal.d.ts.map +1 -1
  21. package/src/js/components/EmbedCopySection.d.ts +4 -0
  22. package/src/js/components/EmbedCopySection.d.ts.map +1 -0
  23. package/src/js/components/ModalContainer.d.ts +4 -0
  24. package/src/js/components/ModalContainer.d.ts.map +1 -0
  25. package/src/js/components/PlayerPreview.d.ts +4 -0
  26. package/src/js/components/PlayerPreview.d.ts.map +1 -0
  27. package/src/js/components/PlayersDropdown.d.ts +7 -0
  28. package/src/js/components/PlayersDropdown.d.ts.map +1 -0
  29. package/src/js/components/TabsHeader.d.ts +11 -0
  30. package/src/js/components/TabsHeader.d.ts.map +1 -0
  31. package/src/js/components/TabsSection.d.ts +8 -0
  32. package/src/js/components/TabsSection.d.ts.map +1 -0
  33. package/src/js/components/TitleWithTooltip.d.ts +13 -0
  34. package/src/js/components/TitleWithTooltip.d.ts.map +1 -0
  35. package/src/js/components/VideoLinks.d.ts +8 -0
  36. package/src/js/components/VideoLinks.d.ts.map +1 -0
  37. package/src/js/components/VideoPlayer.d.ts +4 -0
  38. package/src/js/components/VideoPlayer.d.ts.map +1 -0
  39. package/src/js/components/index.d.ts +10 -0
  40. package/src/js/components/index.d.ts.map +1 -0
  41. package/src/js/constants/baseUrls.d.ts +2 -0
  42. package/src/js/constants/baseUrls.d.ts.map +1 -1
  43. package/src/js/constants/pluginsRegistry.d.ts +1 -0
  44. package/src/js/constants/pluginsRegistry.d.ts.map +1 -1
  45. package/src/js/hooks/useGetPlayers.d.ts +1 -2
  46. package/src/js/hooks/useGetPlayers.d.ts.map +1 -1
  47. package/src/js/i18n.d.ts +6 -0
  48. package/src/js/i18n.d.ts.map +1 -1
  49. package/src/js/types/EmbedCodeModalProps.d.ts +5 -5
  50. package/src/js/types/EmbedCodeModalProps.d.ts.map +1 -1
  51. package/src/js/types/EmbedCodeProps.d.ts +2 -2
  52. package/src/js/types/EmbedCodeProps.d.ts.map +1 -1
  53. package/src/js/types/players.d.ts +1 -0
  54. package/src/js/types/players.d.ts.map +1 -1
  55. package/src/js/utils/addPluginsDataToPlayers.d.ts +6 -0
  56. package/src/js/utils/addPluginsDataToPlayers.d.ts.map +1 -0
  57. package/src/js/utils/util.d.ts +11 -3
  58. package/src/js/utils/util.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@brightcove/components-embed-code-modal",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://bithub.brightcove.com/studio-ui-kit/studio-components-embed-code-modal.git"
7
7
  },
8
8
  "description": "Embed Code Modal used for publishing videos",
9
9
  "main": "./index.js",
10
+ "types": "build/src/index.d.ts",
10
11
  "author": "Campaign Team",
11
12
  "scripts": {
12
13
  "demo": "NODE_ENV=development webpack-dev-server --progress --color",
@@ -32,8 +33,9 @@
32
33
  "@brightcove/notify-change": "^0.1.7",
33
34
  "@brightcove/react-player-loader": "^1.4.2",
34
35
  "@brightcove/studio-components": "7.0.0",
35
- "@testing-library/jest-dom": "^5.16.2",
36
- "@testing-library/react": "^12.1.2",
36
+ "@testing-library/jest-dom": "^5.16.5",
37
+ "@testing-library/react": "^13.3.0",
38
+ "@testing-library/user-event": "^14.4.3",
37
39
  "@types/jest": "^27.4.0",
38
40
  "@types/react": "^17.0.37",
39
41
  "@types/react-dom": "^17.0.11",
@@ -65,7 +67,7 @@
65
67
  "webpack-dev-server": "^4.5.0"
66
68
  },
67
69
  "dependencies": {
68
- "@brightcove/player-embed-code": "1.4.0",
70
+ "@brightcove/player-embed-code": "1.4.2",
69
71
  "@brightcove/studio-api-services": "^6.51.1",
70
72
  "@brightcove/studio-design-tokens": "1.13.0",
71
73
  "@brightcove/studio-icons": "8.6.1",
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCode.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCode.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAgBzD,eAAO,MAAM,SAAS,gDAKnB,cAAc,gBA6DhB,CAAC"}
1
+ {"version":3,"file":"EmbedCode.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCode.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAiBzD,eAAO,MAAM,SAAS,gDAKnB,cAAc,gBA8DhB,CAAC"}
@@ -1,5 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { EmbedCodeModalProps } from 'js/types/EmbedCodeModalProps';
3
- declare const EmbedCodeModal: (props: EmbedCodeModalProps) => JSX.Element;
4
- export default EmbedCodeModal;
2
+ import { EmbedCodeModalTypes, ModalDataType } from './types/EmbedCodeModalProps';
3
+ export interface EmbedCodeModalProps {
4
+ data: ModalDataType;
5
+ language?: 'en' | 'es' | 'fr' | 'ko' | 'ja' | 'zh';
6
+ type?: EmbedCodeModalTypes;
7
+ }
8
+ declare const EmbedModal: ({ data, language, type }: EmbedCodeModalProps) => JSX.Element | null;
9
+ export default EmbedModal;
5
10
  //# sourceMappingURL=EmbedCodeModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCodeModal.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAUnE,QAAA,MAAM,cAAc,UAAW,mBAAmB,gBAYjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"EmbedCodeModal.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModal.tsx"],"names":[],"mappings":";AASA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACd,MAAM,6BAA6B,CAAC;AAQrC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACnD,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,6BAA8B,mBAAmB,uBAahE,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { EmbedCodeProps } from 'js/types/EmbedCodeProps';
3
+ export declare const EmbedCode: (config: EmbedCodeProps) => JSX.Element;
4
+ //# sourceMappingURL=EmbedCopySection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedCopySection.d.ts","sourceRoot":"","sources":["../../../../src/js/components/EmbedCopySection.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AA8BzD,eAAO,MAAM,SAAS,WAAY,cAAc,gBA+C/C,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { EmbedCodeModalProps } from 'js/EmbedCodeModal';
3
+ export declare const ModalContainer: ({ data, type, }: EmbedCodeModalProps) => JSX.Element | null;
4
+ //# sourceMappingURL=ModalContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalContainer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/ModalContainer.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AA2BxD,eAAO,MAAM,cAAc,oBAGxB,mBAAmB,uBAsCrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PlayerPayload } from '../types/EmbedCodeModalProps';
3
+ export declare const PlayerPreview: ({ playerId, accountId }: PlayerPayload) => JSX.Element;
4
+ //# sourceMappingURL=PlayerPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayerPreview.d.ts","sourceRoot":"","sources":["../../../../src/js/components/PlayerPreview.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,eAAO,MAAM,aAAa,4BAA6B,aAAa,gBAyBnE,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PlayersObjectItem } from 'js/types/players';
3
+ export interface PlayerDropdownProps {
4
+ onChange?: (a: PlayersObjectItem) => void;
5
+ }
6
+ export declare const PlayersDropdown: ({ onChange }: PlayerDropdownProps) => JSX.Element;
7
+ //# sourceMappingURL=PlayersDropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayersDropdown.d.ts","sourceRoot":"","sources":["../../../../src/js/components/PlayersDropdown.tsx"],"names":[],"mappings":";AAKA,OAAO,EAEL,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAK1B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe,iBAAkB,mBAAmB,gBAsDhE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { TabsSelectedId } from 'js/types/players';
3
+ interface TabsHeaderProps {
4
+ currentTab: TabsSelectedId;
5
+ handleTabChange: () => void;
6
+ iframeLabel: string;
7
+ jsLabel: string;
8
+ }
9
+ export declare const TabsHeader: ({ currentTab, handleTabChange, iframeLabel, jsLabel, }: TabsHeaderProps) => JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=TabsHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabsHeader.d.ts","sourceRoot":"","sources":["../../../../src/js/components/TabsHeader.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,UAAU,eAAe;IACvB,UAAU,EAAE,cAAc,CAAC;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,eAAO,MAAM,UAAU,2DAKpB,eAAe,gBAejB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const TabsSection: ({ isCampaign, ...rest }: {
3
+ playerId: string;
4
+ isCampaign: boolean;
5
+ videoId?: string | undefined;
6
+ accountId: string;
7
+ }) => JSX.Element;
8
+ //# sourceMappingURL=TabsSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabsSection.d.ts","sourceRoot":"","sources":["../../../../src/js/components/TabsSection.tsx"],"names":[],"mappings":";AAOA,eAAO,MAAM,WAAW;cAIZ,MAAM;gBACJ,OAAO;;eAER,MAAM;iBA+BlB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { VideoPayload } from 'js/types/EmbedCodeModalProps';
3
+ interface TitleWithTooltipProps {
4
+ video: VideoPayload;
5
+ }
6
+ export declare const TitleWithTooltip: ({ video }: TitleWithTooltipProps) => JSX.Element;
7
+ interface ToltipContentProps {
8
+ tooltipTextNew: string;
9
+ tooltipLink: string;
10
+ }
11
+ export declare const TooltipContent: ({ tooltipTextNew, tooltipLink, }: ToltipContentProps) => JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=TitleWithTooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleWithTooltip.d.ts","sourceRoot":"","sources":["../../../../src/js/components/TitleWithTooltip.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAK5D,UAAU,qBAAqB;IAC7B,KAAK,EAAE,YAAY,CAAC;CACrB;AACD,eAAO,MAAM,gBAAgB,cAAe,qBAAqB,gBA6BhE,CAAC;AAEF,UAAU,kBAAkB;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,eAAO,MAAM,cAAc,qCAGxB,kBAAkB,gBAUpB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface VideoLinksProps {
3
+ prevUrl: string;
4
+ }
5
+ export declare const VideoLinks: ({ prevUrl }: VideoLinksProps) => JSX.Element;
6
+ export declare const getUrlAndAddItToClipboard: (url: string) => Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=VideoLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoLinks.d.ts","sourceRoot":"","sources":["../../../../src/js/components/VideoLinks.tsx"],"names":[],"mappings":";AAMA,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,eAAO,MAAM,UAAU,gBAAiB,eAAe,gBAkDtD,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAAe,MAAM,kBAkB1D,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { VideoPayload } from 'js/types/EmbedCodeModalProps';
3
+ export declare const VideoPlayer: (video: VideoPayload) => JSX.Element;
4
+ //# sourceMappingURL=VideoPlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/VideoPlayer.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAmB5D,eAAO,MAAM,WAAW,UAAW,YAAY,gBA6C9C,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from './EmbedCopySection';
2
+ export * from './ModalContainer';
3
+ export * from './PlayersDropdown';
4
+ export * from './TitleWithTooltip';
5
+ export * from './TabsHeader';
6
+ export * from './TabsSection';
7
+ export * from './VideoLinks';
8
+ export * from './VideoPlayer';
9
+ export * from './PlayerPreview';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/js/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export declare const QA_URL = "https://bc-players-qa.s3.amazonaws.com/";
2
2
  export declare const PROD_URL = "https://players.brightcove.net/";
3
+ export declare const QA_PREVIEW_URL = "https://preview-players.qa.brightcove.net";
4
+ export declare const PROD_PREVIEW_URL = "https://preview-players.brightcove.net";
3
5
  //# sourceMappingURL=baseUrls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseUrls.d.ts","sourceRoot":"","sources":["../../../../src/js/constants/baseUrls.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,4CAA4C,CAAC;AAChE,eAAO,MAAM,QAAQ,oCAAoC,CAAC"}
1
+ {"version":3,"file":"baseUrls.d.ts","sourceRoot":"","sources":["../../../../src/js/constants/baseUrls.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,4CAA4C,CAAC;AAChE,eAAO,MAAM,QAAQ,oCAAoC,CAAC;AAC1D,eAAO,MAAM,cAAc,8CAA8C,CAAC;AAC1E,eAAO,MAAM,gBAAgB,2CAA2C,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const bcHostedPlugins: string[];
2
+ export declare const CAMPAIGN_PLUGIN_NAME = "bcMapPlugin";
2
3
  //# sourceMappingURL=pluginsRegistry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pluginsRegistry.d.ts","sourceRoot":"","sources":["../../../../src/js/constants/pluginsRegistry.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,UAoB3B,CAAC"}
1
+ {"version":3,"file":"pluginsRegistry.d.ts","sourceRoot":"","sources":["../../../../src/js/constants/pluginsRegistry.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,UAoB3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,gBAAgB,CAAC"}
@@ -1,4 +1,3 @@
1
- import { EmbedCodeModalTypes } from 'js/types/EmbedCodeModalProps';
2
- declare const useGetPlayers: (type: EmbedCodeModalTypes, isPlayersCallEnabled: boolean) => import("react-query").UseQueryResult<import("../types/players").GetPlayersPayload, unknown>;
1
+ declare const useGetPlayers: (isPlayersCallEnabled: boolean) => import("react-query").UseQueryResult<import("../types/players").GetPlayersPayload, unknown>;
3
2
  export default useGetPlayers;
4
3
  //# sourceMappingURL=useGetPlayers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGetPlayers.d.ts","sourceRoot":"","sources":["../../../../src/js/hooks/useGetPlayers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,QAAA,MAAM,aAAa,SACX,mBAAmB,wBACH,OAAO,gGAS9B,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"useGetPlayers.d.ts","sourceRoot":"","sources":["../../../../src/js/hooks/useGetPlayers.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,aAAa,yBAA0B,OAAO,gGAMnD,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/src/js/i18n.d.ts CHANGED
@@ -7,6 +7,7 @@ export declare const resources: {
7
7
  tooltipText: string;
8
8
  tooltipTextNew: string;
9
9
  tooltipLink: string;
10
+ learnmore: string;
10
11
  previewButton: string;
11
12
  player: string;
12
13
  getURL: string;
@@ -34,6 +35,7 @@ export declare const resources: {
34
35
  tooltipText: string;
35
36
  tooltipTextNew: string;
36
37
  tooltipLink: string;
38
+ learnmore: string;
37
39
  previewButton: string;
38
40
  player: string;
39
41
  getURL: string;
@@ -61,6 +63,7 @@ export declare const resources: {
61
63
  tooltipText: string;
62
64
  tooltipTextNew: string;
63
65
  tooltipLink: string;
66
+ learnmore: string;
64
67
  previewButton: string;
65
68
  player: string;
66
69
  getURL: string;
@@ -88,6 +91,7 @@ export declare const resources: {
88
91
  tooltipText: string;
89
92
  tooltipTextNew: string;
90
93
  tooltipLink: string;
94
+ learnmore: string;
91
95
  previewButton: string;
92
96
  player: string;
93
97
  getURL: string;
@@ -115,6 +119,7 @@ export declare const resources: {
115
119
  tooltipText: string;
116
120
  tooltipTextNew: string;
117
121
  tooltipLink: string;
122
+ learnmore: string;
118
123
  previewButton: string;
119
124
  player: string;
120
125
  getURL: string;
@@ -142,6 +147,7 @@ export declare const resources: {
142
147
  tooltipText: string;
143
148
  tooltipTextNew: string;
144
149
  tooltipLink: string;
150
+ learnmore: string;
145
151
  previewButton: string;
146
152
  player: string;
147
153
  getURL: string;
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/js/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAU3B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBrB,CAAC;AAaF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/js/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAU3B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBrB,CAAC;AAaF,eAAe,IAAI,CAAC"}
@@ -5,13 +5,13 @@ export interface VideoPayload {
5
5
  posterUrl?: string;
6
6
  duration: number;
7
7
  }
8
+ export interface PlayerPayload {
9
+ playerId: string;
10
+ accountId: string;
11
+ }
8
12
  export declare enum EmbedCodeModalTypes {
9
13
  PLAYER = "player",
10
14
  VIDEO = "video"
11
15
  }
12
- export declare type EmbedCodeModalProps = {
13
- language?: 'en' | 'es' | 'fr' | 'ko' | 'ja' | 'zh';
14
- video: VideoPayload;
15
- type?: EmbedCodeModalTypes;
16
- };
16
+ export declare type ModalDataType = VideoPayload | PlayerPayload;
17
17
  //# sourceMappingURL=EmbedCodeModalProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCodeModalProps.d.ts","sourceRoot":"","sources":["../../../../src/js/types/EmbedCodeModalProps.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACnD,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"EmbedCodeModalProps.d.ts","sourceRoot":"","sources":["../../../../src/js/types/EmbedCodeModalProps.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,aAAa,GAAG,YAAY,GAAG,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export declare type EmbedCodeProps = {
2
- isIFrame: boolean;
2
+ iframe: boolean;
3
3
  accountId: string;
4
- videoId: string;
4
+ videoId?: string;
5
5
  playerId: string;
6
6
  };
7
7
  //# sourceMappingURL=EmbedCodeProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCodeProps.d.ts","sourceRoot":"","sources":["../../../../src/js/types/EmbedCodeProps.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"EmbedCodeProps.d.ts","sourceRoot":"","sources":["../../../../src/js/types/EmbedCodeProps.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -25,4 +25,5 @@ export declare type GetPlayersPayload = {
25
25
  item_count: number;
26
26
  items: PlayerItem[];
27
27
  };
28
+ export declare type TabsSelectedId = string | number | undefined;
28
29
  //# sourceMappingURL=players.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"players.d.ts","sourceRoot":"","sources":["../../../../src/js/types/players.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAC;CAClC,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"players.d.ts","sourceRoot":"","sources":["../../../../src/js/types/players.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAC;CAClC,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB,CAAC;AAEF,oBAAY,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { GetPlayersPayload, PlayerSelectItem, PlayersObject } from 'js/types/players';
2
+ export declare function addPluginsDataToPlayers(players: GetPlayersPayload, comparingName?: string): {
3
+ players: PlayersObject;
4
+ playerListForSelection: PlayerSelectItem[];
5
+ };
6
+ //# sourceMappingURL=addPluginsDataToPlayers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addPluginsDataToPlayers.d.ts","sourceRoot":"","sources":["../../../../src/js/utils/addPluginsDataToPlayers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAM1B,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,iBAAiB,EAC1B,aAAa,GAAE,MAA6B;;;EA4B7C"}
@@ -1,4 +1,3 @@
1
- import { VideoPayload } from '../types/EmbedCodeModalProps';
2
1
  import { PlayerSelectItem } from '../types/players';
3
2
  /**
4
3
  * Get the studio environment as a string.
@@ -21,15 +20,24 @@ export declare function getUrlBase(): "https://bc-players-qa.s3.amazonaws.com/"
21
20
  export declare function sortAsc(options: PlayerSelectItem[]): PlayerSelectItem[];
22
21
  /**
23
22
  *
24
- * @param video : VideoPayload type info
23
+ * @param accountId : accountId of current user
24
+ * @param videoId : VideoPayload type info
25
25
  * @param playerId : playerId used for preview
26
26
  * @returns a working preview link with given information
27
27
  */
28
- export declare const getVideoPreviewLink: (video: VideoPayload, playerId: string) => string;
28
+ export declare const getVideoPreviewLink: (accountId: string, videoId: string | undefined, playerId: string) => string;
29
29
  /**
30
30
  * Truncates a video title property
31
31
  * @param videoName - video title
32
32
  * @returns truncated video title
33
33
  */
34
34
  export declare const truncateVideoTitle: (videoName: string) => string;
35
+ export declare function getPreviewUrlBase(): "https://preview-players.qa.brightcove.net" | "https://preview-players.brightcove.net";
36
+ /**
37
+ *
38
+ * @param accountId : account id of current user
39
+ * @param playerId : playerId used for preview
40
+ * @returns a working preview url with given information
41
+ */
42
+ export declare const getPreviewPlayerUrl: (accountId: string, playerId: string) => string;
35
43
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/js/utils/util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAMpD;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;GAEG;AACH,wBAAgB,IAAI,YAEnB;AAED;;GAEG;AACH,wBAAgB,UAAU,kFAEzB;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAEvE;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,UAAW,YAAY,YAAY,MAAM,WAGrE,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,cAAe,MAAM,KAAG,MAKtD,CAAC"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/js/utils/util.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAMpD;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;GAEG;AACH,wBAAgB,IAAI,YAEnB;AAED;;GAEG;AACH,wBAAgB,UAAU,kFAEzB;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAEvE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,cACnB,MAAM,WACR,MAAM,GAAG,SAAS,YACjB,MAAM,WAId,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,cAAe,MAAM,KAAG,MAKtD,CAAC;AAEF,wBAAgB,iBAAiB,2FAEhC;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,cACnB,MAAM,YACP,MAAM,KACf,MAC6G,CAAC"}