@brightcove/components-embed-code-modal 0.4.3 → 0.5.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightcove/components-embed-code-modal",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://bithub.brightcove.com/studio-ui-kit/studio-components-embed-code-modal.git"
@@ -34,7 +34,7 @@
34
34
  "@brightcove/kacl": "^0.1.11",
35
35
  "@brightcove/notify-change": "^0.1.7",
36
36
  "@brightcove/studio-api-services": "^6.69.0",
37
- "@brightcove/studio-components": "^7.23.3",
37
+ "@brightcove/studio-components": "^7.23.4",
38
38
  "@brightcove/studio-design-tokens": "^1.15.0",
39
39
  "@brightcove/studio-icons": "^8.14.0",
40
40
  "@testing-library/jest-dom": "^5.16.5",
@@ -71,8 +71,9 @@
71
71
  "webpack-dev-server": "^4.5.0"
72
72
  },
73
73
  "dependencies": {
74
+ "@brightcove/player-embed-code": "^2.0.2",
74
75
  "@brightcove/react-player-loader": "^1.4.2",
75
- "@brightcove/player-embed-code": "^2.0.1",
76
+ "classnames": "^2.5.1",
76
77
  "i18next": "^21.5.4",
77
78
  "react-i18next": "^11.14.3",
78
79
  "react-query": "^3.38.0"
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import EmbedCodeModal from './js/EmbedCodeModal';
2
- import type { VideoPayload, PlayerPayload, ProjectPayload } from './js/types/EmbedCodeModalProps';
3
- import { EmbedCodeModalTypes } from './js/types/EmbedCodeModalProps';
2
+ import type { VideoPayload, PlayerPayload, ProjectPayload } from 'js/types/EmbedCodeModalProps';
3
+ import { EmbedCodeModalTypes } from 'js/types/EmbedCodeModalProps';
4
4
  export { EmbedCodeModal, VideoPayload, PlayerPayload, ProjectPayload, EmbedCodeModalTypes, };
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACf,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,EACL,cAAc,EACd,YAAY,EACZ,aAAa,EACb,cAAc,EACd,mBAAmB,GACpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACf,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EACL,cAAc,EACd,YAAY,EACZ,aAAa,EACb,cAAc,EACd,mBAAmB,GACpB,CAAC"}
@@ -5,7 +5,8 @@ export interface EmbedCodeModalProps {
5
5
  language?: 'en' | 'es' | 'fr' | 'ko' | 'ja' | 'zh';
6
6
  embedCodeModalType?: EmbedCodeModalTypes;
7
7
  embedCodeProperties?: EmbedCodeProperties;
8
+ isOutstreamPlayer?: boolean;
8
9
  }
9
- declare const EmbedModal: ({ data, language, embedCodeModalType, embedCodeProperties, }: EmbedCodeModalProps) => React.JSX.Element | null;
10
+ declare const EmbedModal: ({ data, language, embedCodeModalType, embedCodeProperties, isOutstreamPlayer, }: EmbedCodeModalProps) => React.JSX.Element | null;
10
11
  export default EmbedModal;
11
12
  //# sourceMappingURL=EmbedCodeModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCodeModal.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAQrC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACnD,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IAEzC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAED,QAAA,MAAM,UAAU,iEAKb,mBAAmB,6BAgCrB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"EmbedCodeModal.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAQrC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACnD,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IAEzC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,QAAA,MAAM,UAAU,oFAMb,mBAAmB,6BAiCrB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCopySection.d.ts","sourceRoot":"","sources":["../../../../src/js/components/EmbedCopySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAsDzD,eAAO,MAAM,SAAS,WAAY,cAAc,sBAmD/C,CAAC"}
1
+ {"version":3,"file":"EmbedCopySection.d.ts","sourceRoot":"","sources":["../../../../src/js/components/EmbedCopySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAwDzD,eAAO,MAAM,SAAS,WAAY,cAAc,sBAmD/C,CAAC"}
@@ -6,7 +6,8 @@ interface ModalContainerProps extends EmbedCodeModalProps {
6
6
  handleSetHasCreatedPlayer: (value: boolean) => void;
7
7
  hasCreatedPlayer: boolean;
8
8
  embedCodeProperties?: EmbedCodeProperties;
9
+ isOutstreamPlayer?: boolean;
9
10
  }
10
- export declare const ModalContainer: ({ handleSetComponentKey, data, embedCodeModalType, handleSetHasCreatedPlayer, hasCreatedPlayer, embedCodeProperties, }: ModalContainerProps) => React.JSX.Element | null;
11
+ export declare const ModalContainer: ({ handleSetComponentKey, data, embedCodeModalType, handleSetHasCreatedPlayer, hasCreatedPlayer, embedCodeProperties, isOutstreamPlayer, }: ModalContainerProps) => React.JSX.Element | null;
11
12
  export {};
12
13
  //# sourceMappingURL=ModalContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalContainer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/ModalContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAMzE,OAAO,EAIL,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAaxD,UAAU,mBAAoB,SAAQ,mBAAmB;IACvD,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,yBAAyB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAED,eAAO,MAAM,cAAc,2HAOxB,mBAAmB,6BAmNrB,CAAC"}
1
+ {"version":3,"file":"ModalContainer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/ModalContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAMzE,OAAO,EAIL,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAaxD,UAAU,mBAAoB,SAAQ,mBAAmB;IACvD,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,yBAAyB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc,8IAQxB,mBAAmB,6BAoNrB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { PlayerPayload } from '../types/EmbedCodeModalProps';
3
- export declare const PlayerPreview: ({ id, configuration, accountId, embedCodeProperties, }: PlayerPayload) => React.JSX.Element;
3
+ export declare const PlayerPreview: ({ id, configuration, accountId, embedCodeProperties, isOutstreamPlayer, }: PlayerPayload) => React.JSX.Element;
4
4
  //# sourceMappingURL=PlayerPreview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerPreview.d.ts","sourceRoot":"","sources":["../../../../src/js/components/PlayerPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAevC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAW7D,eAAO,MAAM,aAAa,2DAKvB,aAAa,sBAgEf,CAAC"}
1
+ {"version":3,"file":"PlayerPreview.d.ts","sourceRoot":"","sources":["../../../../src/js/components/PlayerPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAgBvC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAW7D,eAAO,MAAM,aAAa,8EAMvB,aAAa,sBAsEf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAIzE,OAAO,EACL,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,EAChB,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAkB1B,eAAO,MAAM,WAAW;WAQf,YAAY,GAAG,cAAc;wBAChB,mBAAmB;4BACf,gBAAgB,EAAE;aACjC,aAAa;;;uBA+IvB,CAAC"}
1
+ {"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAIzE,OAAO,EACL,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,EAChB,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAkB1B,eAAO,MAAM,WAAW;WAQf,YAAY,GAAG,cAAc;wBAChB,mBAAmB;4BACf,gBAAgB,EAAE;aACjC,aAAa;;;uBAuJvB,CAAC"}
@@ -11,6 +11,7 @@ export interface PlayerPayload {
11
11
  name?: string;
12
12
  accountId?: string;
13
13
  embedCodeProperties?: EmbedCodeProperties;
14
+ isOutstreamPlayer?: boolean;
14
15
  }
15
16
  export interface ProjectPayload {
16
17
  accountId: string;
@@ -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,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,oBAAY,+BAA+B;IACzC,SAAS,cAAc;IACvB,aAAa,kBAAkB;CAChC;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC;AAE7E,oBAAY,cAAc;IACxB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,OAAO,MAAM;CACd;AACD,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,QAAQ;IACf,UAAU,QAAQ;IAClB,YAAY,SAAS;IACrB,YAAY,SAAS;CACtB;AACD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,oBAAoB,CAAC;CACnC"}
1
+ {"version":3,"file":"EmbedCodeModalProps.d.ts","sourceRoot":"","sources":["../../../../src/js/types/EmbedCodeModalProps.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,M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ountId: string;
5
5
  videoId?: string;
6
6
  playerId: string;
7
+ interactivityProjectId?: string;
7
8
  embedCodeProperties?: EmbedCodeProperties;
9
+ isOutstreamPlayer?: boolean;
8
10
  };
9
11
  //# sourceMappingURL=EmbedCodeProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCodeProps.d.ts","sourceRoot":"","sources":["../../../../src/js/types/EmbedCodeProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C,CAAC"}
1
+ {"version":3,"file":"EmbedCodeProps.d.ts","sourceRoot":"","sources":["../../../../src/js/types/EmbedCodeProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC"}