@brightcove/components-embed-code-modal 0.1.21 → 0.1.23

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,12 +1,13 @@
1
1
  {
2
2
  "name": "@brightcove/components-embed-code-modal",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
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": "./src/index.d.ts",
10
11
  "author": "Campaign Team",
11
12
  "scripts": {
12
13
  "demo": "NODE_ENV=development webpack-dev-server --progress --color",
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import EmbedCodeModal from './js/EmbedCodeModal';
2
- import { type VideoPayload, EmbedCodeModalTypes } from './js/types/EmbedCodeModalProps';
3
- export { EmbedCodeModal, VideoPayload, EmbedCodeModalTypes };
2
+ import { type VideoPayload, type PlayerPayload, EmbedCodeModalTypes } from './js/types/EmbedCodeModalProps';
3
+ export { EmbedCodeModal, VideoPayload, PlayerPayload, EmbedCodeModalTypes };
4
4
  //# 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,EACL,KAAK,YAAY,EACjB,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
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,KAAK,aAAa,EAClB,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,5 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { EmbedCodeModalProps } from 'js/types/EmbedCodeModalProps';
3
- declare const EmbedModal: ({ language, ...rest }: EmbedCodeModalProps) => JSX.Element | null;
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;
4
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,UAAU,0BAA2B,mBAAmB,uBAa7D,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,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"}
@@ -1 +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,gBA8C/C,CAAC"}
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"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { EmbedCodeModalProps } from 'js/types/EmbedCodeModalProps';
2
+ import { EmbedCodeModalProps } from 'js/EmbedCodeModal';
3
3
  export declare const ModalContainer: ({ data, type, }: EmbedCodeModalProps) => JSX.Element | null;
4
4
  //# sourceMappingURL=ModalContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalContainer.d.ts","sourceRoot":"","sources":["../../../../src/js/components/ModalContainer.tsx"],"names":[],"mappings":";AAKA,OAAO,EACL,mBAAmB,EAGpB,MAAM,8BAA8B,CAAC;AA2BtC,eAAO,MAAM,cAAc,oBAGxB,mBAAmB,uBAsCrB,CAAC"}
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"}
@@ -1 +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"}
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,4BAAiC,aAAa,gBAyBvE,CAAC"}
@@ -1 +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,gBAoDhE,CAAC"}
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"}
@@ -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;iBA8BlB,CAAC"}
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"}
@@ -1 +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,gBA4BhE,CAAC;AAEF,UAAU,kBAAkB;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,eAAO,MAAM,cAAc,qCAGxB,kBAAkB,gBAUpB,CAAC"}
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"}
@@ -7,16 +7,11 @@ export interface VideoPayload {
7
7
  }
8
8
  export interface PlayerPayload {
9
9
  playerId: string;
10
- accountId: string;
10
+ accountId?: string;
11
11
  }
12
12
  export declare enum EmbedCodeModalTypes {
13
13
  PLAYER = "player",
14
14
  VIDEO = "video"
15
15
  }
16
16
  export declare type ModalDataType = VideoPayload | PlayerPayload;
17
- export declare type EmbedCodeModalProps = {
18
- data: ModalDataType;
19
- language?: 'en' | 'es' | 'fr' | 'ko' | 'ja' | 'zh';
20
- type?: EmbedCodeModalTypes;
21
- };
22
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,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;AAEzD,oBAAY,mBAAmB,GAAG;IAChC,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,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,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,aAAa,GAAG,YAAY,GAAG,aAAa,CAAC"}