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

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.1.18",
3
+ "version": "0.1.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://bithub.brightcove.com/studio-ui-kit/studio-components-embed-code-modal.git"
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCodeModalComponent.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModalComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,mBAAmB,EAEpB,MAAM,8BAA8B,CAAC;AA0BtC,eAAO,MAAM,uBAAuB,qBAGjC,mBAAmB,uBA8OrB,CAAC"}
1
+ {"version":3,"file":"EmbedCodeModalComponent.d.ts","sourceRoot":"","sources":["../../../src/js/EmbedCodeModalComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,mBAAmB,EAEpB,MAAM,8BAA8B,CAAC;AA+BtC,eAAO,MAAM,uBAAuB,qBAGjC,mBAAmB,uBA+QrB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { VideoPayload } from '../types/EmbedCodeModalProps';
1
2
  import { PlayerSelectItem } from '../types/players';
2
3
  /**
3
4
  * Get the studio environment as a string.
@@ -18,4 +19,17 @@ export declare function getUrlBase(): "https://bc-players-qa.s3.amazonaws.com/"
18
19
  * @returns options ordered ascending
19
20
  */
20
21
  export declare function sortAsc(options: PlayerSelectItem[]): PlayerSelectItem[];
22
+ /**
23
+ *
24
+ * @param video : VideoPayload type info
25
+ * @param playerId : playerId used for preview
26
+ * @returns a working preview link with given information
27
+ */
28
+ export declare const getVideoPreviewLink: (video: VideoPayload, playerId: string) => string;
29
+ /**
30
+ * Truncates a video title property
31
+ * @param videoName - video title
32
+ * @returns truncated video title
33
+ */
34
+ export declare const truncateVideoTitle: (videoName: string) => string;
21
35
  //# 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,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKpD;;;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"}
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"}