@brightcove/components-embed-code-modal 0.3.5 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightcove/components-embed-code-modal",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://bithub.brightcove.com/studio-ui-kit/studio-components-embed-code-modal.git"
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { EmbedCodeModalTypes, ModalDataPayload } from './types/EmbedCodeModalProps';
2
+ import { EmbedCodeModalTypes, EmbedCodeProperties, ModalDataPayload } from './types/EmbedCodeModalProps';
3
3
  export interface EmbedCodeModalProps {
4
4
  data: ModalDataPayload;
5
5
  language?: 'en' | 'es' | 'fr' | 'ko' | 'ja' | 'zh';
6
6
  embedCodeModalType?: EmbedCodeModalTypes;
7
+ embedCodeProperties?: EmbedCodeProperties;
7
8
  }
8
- declare const EmbedModal: ({ data, language, embedCodeModalType, }: EmbedCodeModalProps) => JSX.Element | null;
9
+ declare const EmbedModal: ({ data, language, embedCodeModalType, embedCodeProperties, }: EmbedCodeModalProps) => JSX.Element | null;
9
10
  export default EmbedModal;
10
11
  //# sourceMappingURL=EmbedCodeModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCodeModal.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModal.tsx"],"names":[],"mappings":";AASA,OAAO,EACL,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;CAC1C;AAED,QAAA,MAAM,UAAU,4CAIb,mBAAmB,uBA+BrB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"EmbedCodeModal.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModal.tsx"],"names":[],"mappings":";AASA,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,uBAgCrB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCopySection.d.ts","sourceRoot":"","sources":["../../../../src/js/components/EmbedCopySection.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AA+BzD,eAAO,MAAM,SAAS,WAAY,cAAc,gBA+C/C,CAAC"}
1
+ {"version":3,"file":"EmbedCopySection.d.ts","sourceRoot":"","sources":["../../../../src/js/components/EmbedCopySection.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAsDzD,eAAO,MAAM,SAAS,WAAY,cAAc,gBA+C/C,CAAC"}
@@ -1,10 +1,12 @@
1
1
  /// <reference types="react" />
2
+ import { EmbedCodeProperties } from 'js/types/EmbedCodeModalProps';
2
3
  import { EmbedCodeModalProps } from 'js/EmbedCodeModal';
3
4
  interface ModalContainerProps extends EmbedCodeModalProps {
4
5
  handleSetComponentKey: () => void;
5
6
  handleSetHasCreatedPlayer: (value: boolean) => void;
6
7
  hasCreatedPlayer: boolean;
8
+ embedCodeProperties?: EmbedCodeProperties;
7
9
  }
8
- export declare const ModalContainer: ({ handleSetComponentKey, data, embedCodeModalType, handleSetHasCreatedPlayer, hasCreatedPlayer, }: ModalContainerProps) => JSX.Element | null;
10
+ export declare const ModalContainer: ({ handleSetComponentKey, data, embedCodeModalType, handleSetHasCreatedPlayer, hasCreatedPlayer, embedCodeProperties, }: ModalContainerProps) => JSX.Element | null;
9
11
  export {};
10
12
  //# sourceMappingURL=ModalContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalContainer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/ModalContainer.tsx"],"names":[],"mappings":";AAWA,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;CAC3B;AAED,eAAO,MAAM,cAAc,sGAMxB,mBAAmB,uBAgNrB,CAAC"}
1
+ {"version":3,"file":"ModalContainer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/ModalContainer.tsx"],"names":[],"mappings":";AAMA,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,uBAmNrB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { PlayerPayload } from '../types/EmbedCodeModalProps';
3
- export declare const PlayerPreview: ({ id, configuration, accountId, }: PlayerPayload) => JSX.Element;
3
+ export declare const PlayerPreview: ({ id, configuration, accountId, embedCodeProperties, }: PlayerPayload) => 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":";AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAW7D,eAAO,MAAM,aAAa,sCAIvB,aAAa,gBAyDf,CAAC"}
1
+ {"version":3,"file":"PlayerPreview.d.ts","sourceRoot":"","sources":["../../../../src/js/components/PlayerPreview.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAW7D,eAAO,MAAM,aAAa,2DAKvB,aAAa,gBA0Df,CAAC"}
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
+ import { EmbedCodeProperties } from 'js/types/EmbedCodeModalProps';
2
3
  export declare const TabsSection: ({ isCampaign, ...rest }: {
3
4
  playerId: string;
4
5
  isCampaign: boolean;
5
6
  videoId?: string | undefined;
6
7
  accountId: string;
7
8
  interactivityProjectId?: string | undefined;
9
+ embedCodeProperties?: EmbedCodeProperties | undefined;
8
10
  }) => JSX.Element;
9
11
  //# sourceMappingURL=TabsSection.d.ts.map
@@ -1 +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;;iBAgClB,CAAC"}
1
+ {"version":3,"file":"TabsSection.d.ts","sourceRoot":"","sources":["../../../../src/js/components/TabsSection.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,eAAO,MAAM,WAAW;cAIZ,MAAM;gBACJ,OAAO;;eAER,MAAM;;;iBAiClB,CAAC"}
@@ -1,11 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { VideoPayload, ProjectPayload, EmbedCodeModalTypes } from 'js/types/EmbedCodeModalProps';
2
+ import { VideoPayload, ProjectPayload, EmbedCodeModalTypes, EmbedCodeProperties } from 'js/types/EmbedCodeModalProps';
3
3
  import { PlayerSelectItem, PlayersObject } from 'js/types/players';
4
- export declare const VideoPlayer: ({ video, embedCodeModalType, playerListForSelection, players, hasCreatedPlayer, }: {
4
+ export declare const VideoPlayer: ({ video, embedCodeModalType, playerListForSelection, players, hasCreatedPlayer, embedCodeProperties, }: {
5
5
  video: VideoPayload | ProjectPayload;
6
6
  embedCodeModalType: EmbedCodeModalTypes;
7
7
  playerListForSelection: PlayerSelectItem[];
8
8
  players: PlayersObject;
9
9
  hasCreatedPlayer?: boolean | undefined;
10
+ embedCodeProperties?: EmbedCodeProperties | undefined;
10
11
  }) => JSX.Element;
11
12
  //# sourceMappingURL=VideoPlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/VideoPlayer.tsx"],"names":[],"mappings":";AAIA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,EAChB,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAgB1B,eAAO,MAAM,WAAW;WAOf,YAAY,GAAG,cAAc;wBAChB,mBAAmB;4BACf,gBAAgB,EAAE;aACjC,aAAa;;iBA6GvB,CAAC"}
1
+ {"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/VideoPlayer.tsx"],"names":[],"mappings":";AAIA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,EAChB,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAgB1B,eAAO,MAAM,WAAW;WAQf,YAAY,GAAG,cAAc;wBAChB,mBAAmB;4BACf,gBAAgB,EAAE;aACjC,aAAa;;;iBAiHvB,CAAC"}
@@ -17,5 +17,8 @@ export declare const DEFAULT_INTERACTIVITY_PLAYER: {
17
17
  name: string;
18
18
  registry_id: string;
19
19
  version: string;
20
+ options: {
21
+ mobilefullscreen: boolean;
22
+ };
20
23
  };
21
24
  //# sourceMappingURL=player.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"player.d.ts","sourceRoot":"","sources":["../../../../src/js/constants/player.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAE/D,eAAO,MAAM,yBAAyB;;;GAKrC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;CAQnB,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;CAIxC,CAAC"}
1
+ {"version":3,"file":"player.d.ts","sourceRoot":"","sources":["../../../../src/js/constants/player.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAE/D,eAAO,MAAM,yBAAyB;;;GAKrC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;CAQnB,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;CAOxC,CAAC"}
@@ -10,6 +10,7 @@ export interface PlayerPayload {
10
10
  configuration?: Record<string, unknown>;
11
11
  name?: string;
12
12
  accountId?: string;
13
+ embedCodeProperties?: EmbedCodeProperties;
13
14
  }
14
15
  export interface ProjectPayload {
15
16
  accountId: string;
@@ -27,4 +28,23 @@ export declare enum NoInteractivityPlayerModalTypes {
27
28
  NO_PERMISSION = "no-permission"
28
29
  }
29
30
  export declare type ModalDataPayload = VideoPayload | PlayerPayload | ProjectPayload;
31
+ export declare enum EmbedCodeUnits {
32
+ PX = "px",
33
+ EM = "em",
34
+ PERCENT = "%"
35
+ }
36
+ export declare enum EmbedCodeAspectRatio {
37
+ FLUID = "fluid",
38
+ ONE_ONE = "1:1",
39
+ FOUR_THREE = "4:3",
40
+ SIXTEEN_NINE = "16:9",
41
+ NINE_SIXTEEN = "9:16"
42
+ }
43
+ export interface EmbedCodeProperties {
44
+ width: number;
45
+ height: number;
46
+ units: EmbedCodeUnits;
47
+ responsive: boolean;
48
+ aspectRatio: EmbedCodeAspectRatio;
49
+ }
30
50
  //# 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,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;CACpB;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,oBAAY,gBAAgB,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"EmbedCodeModal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ACnC"}
@@ -1,7 +1,9 @@
1
+ import { EmbedCodeProperties } from './EmbedCodeModalProps';
1
2
  export declare type EmbedCodeProps = {
2
3
  iframe: boolean;
3
4
  accountId: string;
4
5
  videoId?: string;
5
6
  playerId: string;
7
+ embedCodeProperties?: EmbedCodeProperties;
6
8
  };
7
9
  //# 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,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,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,oBAAY,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"}