@optifye/dashboard-core 4.0.0 → 4.0.2

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/dist/index.js CHANGED
@@ -24996,9 +24996,6 @@ var S3ClipsService = class {
24996
24996
  s3UriToCloudfront(s3Uri) {
24997
24997
  const url = new URL(s3Uri);
24998
24998
  const key = url.pathname.startsWith("/") ? url.pathname.substring(1) : url.pathname;
24999
- if (typeof window !== "undefined" && window.location.hostname === "localhost") {
25000
- return `/api/stream/${key}`;
25001
- }
25002
24999
  return `${this.config.s3Config.cloudFrontDomain}/${key}`;
25003
25000
  }
25004
25001
  /**
@@ -25812,8 +25809,7 @@ var BottlenecksContent = ({
25812
25809
  loop: false,
25813
25810
  preload: "metadata",
25814
25811
  onClick: togglePlayback,
25815
- onDoubleClick: toggleFullscreen,
25816
- crossOrigin: "anonymous"
25812
+ onDoubleClick: toggleFullscreen
25817
25813
  },
25818
25814
  currentVideo.id
25819
25815
  ),
@@ -33548,7 +33544,7 @@ var S3Service = class {
33548
33544
  }
33549
33545
  };
33550
33546
  function createStreamProxyHandler(config) {
33551
- const cloudFrontDomain = config?.cloudFrontDomain || "https://d1eiob0chi5jw6.cloudfront.net";
33547
+ const cloudFrontDomain = config?.cloudFrontDomain || "https://d1eiob0chi5jw.cloudfront.net";
33552
33548
  return async function handler(req, res) {
33553
33549
  if (req.method !== "GET") {
33554
33550
  return res.status(405).json({ error: "Method not allowed" });
package/dist/index.mjs CHANGED
@@ -24967,9 +24967,6 @@ var S3ClipsService = class {
24967
24967
  s3UriToCloudfront(s3Uri) {
24968
24968
  const url = new URL(s3Uri);
24969
24969
  const key = url.pathname.startsWith("/") ? url.pathname.substring(1) : url.pathname;
24970
- if (typeof window !== "undefined" && window.location.hostname === "localhost") {
24971
- return `/api/stream/${key}`;
24972
- }
24973
24970
  return `${this.config.s3Config.cloudFrontDomain}/${key}`;
24974
24971
  }
24975
24972
  /**
@@ -25783,8 +25780,7 @@ var BottlenecksContent = ({
25783
25780
  loop: false,
25784
25781
  preload: "metadata",
25785
25782
  onClick: togglePlayback,
25786
- onDoubleClick: toggleFullscreen,
25787
- crossOrigin: "anonymous"
25783
+ onDoubleClick: toggleFullscreen
25788
25784
  },
25789
25785
  currentVideo.id
25790
25786
  ),
@@ -33519,7 +33515,7 @@ var S3Service = class {
33519
33515
  }
33520
33516
  };
33521
33517
  function createStreamProxyHandler(config) {
33522
- const cloudFrontDomain = config?.cloudFrontDomain || "https://d1eiob0chi5jw6.cloudfront.net";
33518
+ const cloudFrontDomain = config?.cloudFrontDomain || "https://d1eiob0chi5jw.cloudfront.net";
33523
33519
  return async function handler(req, res) {
33524
33520
  if (req.method !== "GET") {
33525
33521
  return res.status(405).json({ error: "Method not allowed" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optifye/dashboard-core",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Reusable UI & logic for Optifye dashboard",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",