@brightcove/components-embed-code-modal 0.1.5 → 0.1.7

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 (37) hide show
  1. package/__tests__/EmbedCodeModalComponent.spec.d.ts +1 -0
  2. package/__tests__/EmbedCodeModalComponent.spec.d.ts.map +1 -0
  3. package/index.js +12 -7
  4. package/index.js.map +1 -1
  5. package/package.json +2 -1
  6. package/src/index.d.ts +2 -1
  7. package/src/index.d.ts.map +1 -0
  8. package/src/js/EmbedCode.d.ts +2 -1
  9. package/src/js/EmbedCode.d.ts.map +1 -0
  10. package/src/js/EmbedCodeModal.d.ts +1 -0
  11. package/src/js/EmbedCodeModal.d.ts.map +1 -0
  12. package/src/js/EmbedCodeModalComponent.d.ts +1 -0
  13. package/src/js/EmbedCodeModalComponent.d.ts.map +1 -0
  14. package/src/js/constants/baseUrls.d.ts +1 -0
  15. package/src/js/constants/baseUrls.d.ts.map +1 -0
  16. package/src/js/constants/player.d.ts +1 -0
  17. package/src/js/constants/player.d.ts.map +1 -0
  18. package/src/js/hooks/useGetPlayers.d.ts +2 -1
  19. package/src/js/hooks/useGetPlayers.d.ts.map +1 -0
  20. package/src/js/i18n.d.ts +7 -0
  21. package/src/js/i18n.d.ts.map +1 -0
  22. package/src/js/services/players-api.d.ts +1 -0
  23. package/src/js/services/players-api.d.ts.map +1 -0
  24. package/src/js/types/EmbedCodeModalProps.d.ts +1 -0
  25. package/src/js/types/EmbedCodeModalProps.d.ts.map +1 -0
  26. package/src/js/types/EmbedCodeProps.d.ts +2 -0
  27. package/src/js/types/EmbedCodeProps.d.ts.map +1 -0
  28. package/src/js/types/players.d.ts +1 -0
  29. package/src/js/types/players.d.ts.map +1 -0
  30. package/src/js/types/studioModule.d.ts +1 -0
  31. package/src/js/types/studioModule.d.ts.map +1 -0
  32. package/src/js/utils/call.d.ts +1 -0
  33. package/src/js/utils/call.d.ts.map +1 -0
  34. package/src/js/utils/util.d.ts +1 -0
  35. package/src/js/utils/util.d.ts.map +1 -0
  36. package/src/styles/typings.td.d.ts +1 -0
  37. package/src/styles/typings.td.d.ts.map +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightcove/components-embed-code-modal",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://bithub.brightcove.com/studio-ui-kit/studio-components-embed-code-modal.git"
@@ -30,6 +30,7 @@
30
30
  "@brightcove/eslint-config-applications": "^0.3.0",
31
31
  "@brightcove/kacl": "^0.1.11",
32
32
  "@brightcove/notify-change": "^0.1.7",
33
+ "@brightcove/react-player-loader": "^1.4.1",
33
34
  "@testing-library/jest-dom": "^5.16.2",
34
35
  "@testing-library/react": "^12.1.2",
35
36
  "@types/jest": "^27.4.0",
package/src/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import EmbedCodeModal from './js/EmbedCodeModal';
2
- import type { VideoPayload, EmbedCodeModalTypes } from './js/types/EmbedCodeModalProps';
2
+ import { type VideoPayload, EmbedCodeModalTypes } from './js/types/EmbedCodeModalProps';
3
3
  export { EmbedCodeModal, VideoPayload, EmbedCodeModalTypes };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,EACL,KAAK,YAAY,EACjB,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { EmbedCodeProps } from 'js/types/EmbedCodeProps';
3
- export declare const EmbedCode: ({ isIFrame, accountId, videoId }: EmbedCodeProps) => JSX.Element;
3
+ export declare const EmbedCode: ({ isIFrame, accountId, videoId, playerId, }: EmbedCodeProps) => JSX.Element;
4
+ //# sourceMappingURL=EmbedCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedCode.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCode.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAgBzD,eAAO,MAAM,SAAS,gDAKnB,cAAc,gBA+FhB,CAAC"}
@@ -2,3 +2,4 @@
2
2
  import { EmbedCodeModalProps } from 'js/types/EmbedCodeModalProps';
3
3
  declare const EmbedCodeModal: (props: EmbedCodeModalProps) => JSX.Element;
4
4
  export default EmbedCodeModal;
5
+ //# sourceMappingURL=EmbedCodeModal.d.ts.map
@@ -0,0 +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,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { EmbedCodeModalProps } from 'js/types/EmbedCodeModalProps';
3
3
  export declare const EmbedCodeModalComponent: ({ video, type, }: EmbedCodeModalProps) => JSX.Element | null;
4
+ //# sourceMappingURL=EmbedCodeModalComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedCodeModalComponent.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModalComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,mBAAmB,EAEpB,MAAM,8BAA8B,CAAC;AAwBtC,eAAO,MAAM,uBAAuB,qBAGjC,mBAAmB,uBAiPrB,CAAC"}
@@ -1,2 +1,3 @@
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
+ //# sourceMappingURL=baseUrls.d.ts.map
@@ -0,0 +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 +1,2 @@
1
1
  export declare const DEFAULT_PLAYER_ID = "default";
2
+ //# sourceMappingURL=player.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"player.d.ts","sourceRoot":"","sources":["../../../../src/js/constants/player.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,YAAY,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { EmbedCodeModalTypes } from 'js/types/EmbedCodeModalProps';
2
- declare const useGetPlayers: (type: EmbedCodeModalTypes, isEmbedTypesEnabled: boolean) => import("react-query").QueryObserverIdleResult<import("../types/players").GetPlayersPayload, unknown> | import("react-query").QueryObserverLoadingErrorResult<import("../types/players").GetPlayersPayload, unknown> | import("react-query").QueryObserverLoadingResult<import("../types/players").GetPlayersPayload, unknown> | import("react-query").QueryObserverRefetchErrorResult<import("../types/players").GetPlayersPayload, unknown> | import("react-query").QueryObserverSuccessResult<import("../types/players").GetPlayersPayload, unknown> | {
2
+ declare const useGetPlayers: (type: EmbedCodeModalTypes, isEmbedTypesEnabled: boolean, isPlayersCallEnabled: boolean) => import("react-query").QueryObserverIdleResult<import("../types/players").GetPlayersPayload, unknown> | import("react-query").QueryObserverLoadingErrorResult<import("../types/players").GetPlayersPayload, unknown> | import("react-query").QueryObserverLoadingResult<import("../types/players").GetPlayersPayload, unknown> | import("react-query").QueryObserverRefetchErrorResult<import("../types/players").GetPlayersPayload, unknown> | import("react-query").QueryObserverSuccessResult<import("../types/players").GetPlayersPayload, unknown> | {
3
3
  isLoading: boolean;
4
4
  data: null;
5
5
  };
6
6
  export default useGetPlayers;
7
+ //# sourceMappingURL=useGetPlayers.d.ts.map
@@ -0,0 +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,uBACJ,OAAO,wBACN,OAAO;;;CAW9B,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/src/js/i18n.d.ts CHANGED
@@ -21,6 +21,7 @@ export declare const resources: {
21
21
  toasterTitle: string;
22
22
  toasterMessage: string;
23
23
  toasterErrorMessage: string;
24
+ customPluginNotice: string;
24
25
  };
25
26
  };
26
27
  es: {
@@ -44,6 +45,7 @@ export declare const resources: {
44
45
  toasterTitle: string;
45
46
  toasterMessage: string;
46
47
  toasterErrorMessage: string;
48
+ customPluginNotice: string;
47
49
  };
48
50
  };
49
51
  fr: {
@@ -67,6 +69,7 @@ export declare const resources: {
67
69
  toasterTitle: string;
68
70
  toasterMessage: string;
69
71
  toasterErrorMessage: string;
72
+ customPluginNotice: string;
70
73
  };
71
74
  };
72
75
  ja: {
@@ -90,6 +93,7 @@ export declare const resources: {
90
93
  toasterTitle: string;
91
94
  toasterMessage: string;
92
95
  toasterErrorMessage: string;
96
+ customPluginNotice: string;
93
97
  };
94
98
  };
95
99
  ko: {
@@ -113,6 +117,7 @@ export declare const resources: {
113
117
  toasterTitle: string;
114
118
  toasterMessage: string;
115
119
  toasterErrorMessage: string;
120
+ customPluginNotice: string;
116
121
  };
117
122
  };
118
123
  zh: {
@@ -136,7 +141,9 @@ export declare const resources: {
136
141
  toasterTitle: string;
137
142
  toasterMessage: string;
138
143
  toasterErrorMessage: string;
144
+ customPluginNotice: string;
139
145
  };
140
146
  };
141
147
  };
142
148
  export default i18n;
149
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +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,2 +1,3 @@
1
1
  import { GetPlayersPayload } from 'js/types/players';
2
2
  export declare const getPlayers: () => Promise<GetPlayersPayload>;
3
+ //# sourceMappingURL=players-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"players-api.d.ts","sourceRoot":"","sources":["../../../../src/js/services/players-api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,eAAO,MAAM,UAAU,QAAa,QAAQ,iBAAiB,CAE5D,CAAC"}
@@ -14,3 +14,4 @@ export declare type EmbedCodeModalProps = {
14
14
  video: VideoPayload;
15
15
  type?: EmbedCodeModalTypes;
16
16
  };
17
+ //# sourceMappingURL=EmbedCodeModalProps.d.ts.map
@@ -0,0 +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"}
@@ -2,4 +2,6 @@ export declare type EmbedCodeProps = {
2
2
  isIFrame: boolean;
3
3
  accountId: string;
4
4
  videoId: string;
5
+ playerId: string;
5
6
  };
7
+ //# sourceMappingURL=EmbedCodeProps.d.ts.map
@@ -0,0 +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"}
@@ -25,3 +25,4 @@ export declare type GetPlayersPayload = {
25
25
  item_count: number;
26
26
  items: PlayerItem[];
27
27
  };
28
+ //# sourceMappingURL=players.d.ts.map
@@ -0,0 +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,UAAU,EAAE,OAAO,CAAC;IACpB,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"}
@@ -12,3 +12,4 @@ declare global {
12
12
  StudioModule: StudioModule;
13
13
  }
14
14
  }
15
+ //# sourceMappingURL=studioModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studioModule.d.ts","sourceRoot":"","sources":["../../../../src/js/types/studioModule.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,GAAG,CAAC;IACf,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC9B,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAChC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,EAAE,YAAY,CAAC;KAC5B;CACF"}
@@ -7,3 +7,4 @@ export declare const getConfig: () => {
7
7
  };
8
8
  export declare const call: <T>(options: any) => Promise<T>;
9
9
  export declare const callAPI: <T>(apiEndpoint: any, apiArgs: any) => Promise<T>;
10
+ //# sourceMappingURL=call.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../../src/js/utils/call.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,WAGxB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;CAOrB,CAAC;AAEF,eAAO,MAAM,IAAI,iCAShB,CAAC;AAEF,eAAO,MAAM,OAAO,mDAGnB,CAAC"}
@@ -16,3 +16,4 @@ export declare function isQA(): boolean;
16
16
  * Gets the correct player url base depending on environment
17
17
  */
18
18
  export declare function getUrlBase(): "https://bc-players-qa.s3.amazonaws.com/" | "https://players.brightcove.net/";
19
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/js/utils/util.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAGlD;AAED;;GAEG;AACH,wBAAgB,IAAI,YAEnB;AAED;;GAEG;AACH,wBAAgB,UAAU,kFAEzB"}
@@ -10,3 +10,4 @@ declare module 'styles/*.scss' {
10
10
  };
11
11
  export default content;
12
12
  }
13
+ //# sourceMappingURL=typings.td.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typings.td.d.ts","sourceRoot":"","sources":["../../../src/styles/typings.td.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,eAAe,CAAC;IAC7B,MAAM,OAAO,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC/C,eAAe,OAAO,CAAC;CACxB;AAED,OAAO,QAAQ,eAAe,CAAC;IAC7B,MAAM,OAAO,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC/C,eAAe,OAAO,CAAC;CACxB"}