infinity-forge 4.3.0 → 4.3.1

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.
@@ -13,6 +13,7 @@ export * from './next-image/index.js';
13
13
  export * from './breadcrumb/index.js';
14
14
  export * from './pagination/index.js';
15
15
  export * from './menu-mobile/index.js';
16
+ export * from './panda-video/index.js';
16
17
  export * from './loader-circle/index.js';
17
18
  export * from './error-boundary/index.js';
18
19
  export * from './loading-screen/index.js';
@@ -29,6 +29,7 @@ __exportStar(require("./next-image/index.js"), exports);
29
29
  __exportStar(require("./breadcrumb/index.js"), exports);
30
30
  __exportStar(require("./pagination/index.js"), exports);
31
31
  __exportStar(require("./menu-mobile/index.js"), exports);
32
+ __exportStar(require("./panda-video/index.js"), exports);
32
33
  __exportStar(require("./loader-circle/index.js"), exports);
33
34
  __exportStar(require("./error-boundary/index.js"), exports);
34
35
  __exportStar(require("./loading-screen/index.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,0CAAuB;AACvB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,8CAA2B;AAC3B,4CAAyB;AACzB,8CAA2B;AAC3B,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,0CAAuB;AACvB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,8CAA2B;AAC3B,4CAAyB;AACzB,8CAA2B;AAC3B,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,0DAAuC"}
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ interface Window {
3
+ pandascripttag: any;
4
+ PandaPlayer: any;
5
+ }
6
+ }
7
+ interface IPandaVideoProps {
8
+ id: string;
9
+ functions?: any;
10
+ }
11
+ export declare function PandaVideo({ id, functions }: IPandaVideoProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PandaVideo = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var react_1 = require("react");
6
+ function PandaVideo(_a) {
7
+ var id = _a.id, functions = _a.functions;
8
+ (0, react_1.useEffect)(function () {
9
+ var script = document.createElement('script');
10
+ script.src = 'https://player.pandavideo.com.br/api.v2.js';
11
+ script.async = true;
12
+ document.body.appendChild(script);
13
+ script.onload = function () {
14
+ window.pandascripttag = window.pandascripttag || [];
15
+ window.pandascripttag.push(function () {
16
+ var player = new window.PandaPlayer('panda-XXXX', {
17
+ onReady: function () {
18
+ player.onEvent(function (_a) {
19
+ var message = _a.message;
20
+ functions === null || functions === void 0 ? void 0 : functions(message, player);
21
+ });
22
+ },
23
+ onError: function (event) {
24
+ console.log('Player onError', event);
25
+ },
26
+ });
27
+ });
28
+ };
29
+ return function () {
30
+ document.body.removeChild(script);
31
+ };
32
+ }, []);
33
+ return ((0, jsx_runtime_1.jsx)("iframe", { id: 'panda-XXXX', src: "https://player-vz-ded14ebd-85a.tv.pandavideo.com.br/embed/?v=".concat(id, "&controls=play-large,play,progress,current-time,volume,captions,settings,pip,fullscreen"), style: { border: 'none', width: '100%', height: '480px' } }));
34
+ }
35
+ exports.PandaVideo = PandaVideo;
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1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,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GACzD,CACH,CAAA;AACH,CAAC;AAnCD,gCAmCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",