@geowiki/design-system 0.16.10-dev.1 → 0.16.10-dev.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
@@ -7547,7 +7547,7 @@ var VideoPlayer = (props) => {
7547
7547
  var import_jsx_runtime133 = require("react/jsx-runtime");
7548
7548
  var CarouselGalleryItem = ({ text, url }) => {
7549
7549
  return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_jsx_runtime133.Fragment, { children: [
7550
- !url.includes(".mp4") && /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("div", { className: "aspect-square sm:w-auto bg-center relative flex group ", children: [
7550
+ !url.includes(".mp4") && !url.includes(".mov") && /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("div", { className: "aspect-square sm:w-auto bg-center relative flex group ", children: [
7551
7551
  /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
7552
7552
  ImageElement,
7553
7553
  {
@@ -7559,7 +7559,7 @@ var CarouselGalleryItem = ({ text, url }) => {
7559
7559
  ),
7560
7560
  /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: " absolute bottom-6 opacity-0 group-hover:opacity-100", children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: " mx-6 text-white text-base leading-[120%] line-clamp-4", children: text }) })
7561
7561
  ] }),
7562
- url.includes(".mp4") && /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("div", { className: " max-w-sm aspect-square relative group cursor-pointer overflow-hidden rounded-xl", children: [
7562
+ (url.includes(".mp4") || !url.includes(".mov")) && /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("div", { className: " max-w-sm aspect-square relative group cursor-pointer overflow-hidden rounded-xl", children: [
7563
7563
  /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: "transition-all duration-300 group-hover:brightness-50", children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
7564
7564
  VideoPlayer,
7565
7565
  {
@@ -7678,7 +7678,7 @@ var GalleryCarouselOpen = ({
7678
7678
  }
7679
7679
  ),
7680
7680
  /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)("div", { className: "w-full flex-col flex justify-center items-center", children: [
7681
- !defaultPhoto.imageUrl.includes(".mp4") && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
7681
+ !defaultPhoto.imageUrl.includes(".mp4") && !defaultPhoto.imageUrl.includes(".mov") && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
7682
7682
  "img",
7683
7683
  {
7684
7684
  src: defaultPhoto.imageUrl,
@@ -7687,7 +7687,7 @@ var GalleryCarouselOpen = ({
7687
7687
  className: " p-4"
7688
7688
  }
7689
7689
  ),
7690
- defaultPhoto.imageUrl.includes(".mp4") && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
7690
+ (defaultPhoto.imageUrl.includes(".mp4") || defaultPhoto.imageUrl.includes(".mov")) && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
7691
7691
  "video",
7692
7692
  {
7693
7693
  src: defaultPhoto.imageUrl,
@@ -7718,7 +7718,7 @@ var GalleryCarouselOpen = ({
7718
7718
  setRotation(rotation + 90);
7719
7719
  } })
7720
7720
  ] }),
7721
- saveRotationChanges && !defaultPhoto.imageUrl.includes(".mp4") && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
7721
+ saveRotationChanges && !defaultPhoto.imageUrl.includes(".mp4") && defaultPhoto.imageUrl.includes(".mov") && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
7722
7722
  "div",
7723
7723
  {
7724
7724
  className: "z-40 text-white hover:cursor-pointer",
package/dist/index.mjs CHANGED
@@ -7180,7 +7180,7 @@ var VideoPlayer = (props) => {
7180
7180
  import { Fragment as Fragment9, jsx as jsx132, jsxs as jsxs57 } from "react/jsx-runtime";
7181
7181
  var CarouselGalleryItem = ({ text, url }) => {
7182
7182
  return /* @__PURE__ */ jsxs57(Fragment9, { children: [
7183
- !url.includes(".mp4") && /* @__PURE__ */ jsxs57("div", { className: "aspect-square sm:w-auto bg-center relative flex group ", children: [
7183
+ !url.includes(".mp4") && !url.includes(".mov") && /* @__PURE__ */ jsxs57("div", { className: "aspect-square sm:w-auto bg-center relative flex group ", children: [
7184
7184
  /* @__PURE__ */ jsx132(
7185
7185
  ImageElement,
7186
7186
  {
@@ -7192,7 +7192,7 @@ var CarouselGalleryItem = ({ text, url }) => {
7192
7192
  ),
7193
7193
  /* @__PURE__ */ jsx132("div", { className: " absolute bottom-6 opacity-0 group-hover:opacity-100", children: /* @__PURE__ */ jsx132("div", { className: " mx-6 text-white text-base leading-[120%] line-clamp-4", children: text }) })
7194
7194
  ] }),
7195
- url.includes(".mp4") && /* @__PURE__ */ jsxs57("div", { className: " max-w-sm aspect-square relative group cursor-pointer overflow-hidden rounded-xl", children: [
7195
+ (url.includes(".mp4") || !url.includes(".mov")) && /* @__PURE__ */ jsxs57("div", { className: " max-w-sm aspect-square relative group cursor-pointer overflow-hidden rounded-xl", children: [
7196
7196
  /* @__PURE__ */ jsx132("div", { className: "transition-all duration-300 group-hover:brightness-50", children: /* @__PURE__ */ jsx132(
7197
7197
  VideoPlayer,
7198
7198
  {
@@ -7311,7 +7311,7 @@ var GalleryCarouselOpen = ({
7311
7311
  }
7312
7312
  ),
7313
7313
  /* @__PURE__ */ jsxs58("div", { className: "w-full flex-col flex justify-center items-center", children: [
7314
- !defaultPhoto.imageUrl.includes(".mp4") && /* @__PURE__ */ jsx133(
7314
+ !defaultPhoto.imageUrl.includes(".mp4") && !defaultPhoto.imageUrl.includes(".mov") && /* @__PURE__ */ jsx133(
7315
7315
  "img",
7316
7316
  {
7317
7317
  src: defaultPhoto.imageUrl,
@@ -7320,7 +7320,7 @@ var GalleryCarouselOpen = ({
7320
7320
  className: " p-4"
7321
7321
  }
7322
7322
  ),
7323
- defaultPhoto.imageUrl.includes(".mp4") && /* @__PURE__ */ jsx133(
7323
+ (defaultPhoto.imageUrl.includes(".mp4") || defaultPhoto.imageUrl.includes(".mov")) && /* @__PURE__ */ jsx133(
7324
7324
  "video",
7325
7325
  {
7326
7326
  src: defaultPhoto.imageUrl,
@@ -7351,7 +7351,7 @@ var GalleryCarouselOpen = ({
7351
7351
  setRotation(rotation + 90);
7352
7352
  } })
7353
7353
  ] }),
7354
- saveRotationChanges && !defaultPhoto.imageUrl.includes(".mp4") && /* @__PURE__ */ jsx133(
7354
+ saveRotationChanges && !defaultPhoto.imageUrl.includes(".mp4") && defaultPhoto.imageUrl.includes(".mov") && /* @__PURE__ */ jsx133(
7355
7355
  "div",
7356
7356
  {
7357
7357
  className: "z-40 text-white hover:cursor-pointer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geowiki/design-system",
3
- "version": "0.16.10-dev.1",
3
+ "version": "0.16.10-dev.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "peerDependencies": {
16
16
  "react": "^19.2.0",
17
17
  "react-dom": "^19.2.0",
18
- "@geowiki/core": "0.16.10-dev.1"
18
+ "@geowiki/core": "0.16.10-dev.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/react": "^19.2.14",