@bendyline/squisq-video-react 2.4.25 → 2.4.26

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useVideoExport
3
- } from "./chunk-IOLZNTKA.js";
3
+ } from "./chunk-COBWVGNZ.js";
4
4
 
5
5
  // src/VideoExportModal.tsx
6
6
  import { useState, useCallback, useEffect, useId, useRef } from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFrameCapture
3
- } from "./chunk-CWLDLWSE.js";
3
+ } from "./chunk-MUPRW43Q.js";
4
4
  import {
5
5
  EXPORT_AUDIO_CHANNELS,
6
6
  EXPORT_AUDIO_SAMPLE_RATE,
@@ -866,6 +866,11 @@ async function rasterizeCaptureSvgClones(originalRoot, clonedRoot, transientCanv
866
866
  try {
867
867
  for (const [index, svg] of clonedSvgs.entries()) {
868
868
  const originalSvg = originalSvgs[index];
869
+ for (const element of [svg, ...Array.from(svg.querySelectorAll("*"))]) {
870
+ if (!element.style) continue;
871
+ element.style.setProperty("animation", "none", "important");
872
+ element.style.setProperty("transition", "none", "important");
873
+ }
869
874
  const { width, height } = captureSvgRasterSize(svg, originalSvg);
870
875
  const cacheKey = captureSvgRasterCacheKey(originalSvg ?? svg, index);
871
876
  activeCacheKeys.add(cacheKey);
@@ -878,7 +883,12 @@ async function rasterizeCaptureSvgClones(originalRoot, clonedRoot, transientCanv
878
883
  let rasterCanvas = null;
879
884
  try {
880
885
  await embedCaptureSvgImages(svg, imageDataUrls);
886
+ const opacity = svg.style.getPropertyValue("opacity");
887
+ const opacityPriority = svg.style.getPropertyPriority("opacity");
888
+ svg.style.setProperty("opacity", "1", "important");
881
889
  const serializedSvg = new XMLSerializer().serializeToString(svg);
890
+ if (opacity) svg.style.setProperty("opacity", opacity, opacityPriority);
891
+ else svg.style.removeProperty("opacity");
882
892
  let entry = cache.get(cacheKey);
883
893
  if (!entry || entry.serializedSvg !== serializedSvg || entry.width !== width || entry.height !== height) {
884
894
  const containsForeignObject = svg.querySelector("foreignObject") !== null;
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-3NJDHK62.js";
8
8
  import {
9
9
  useFrameCapture
10
- } from "./chunk-CWLDLWSE.js";
10
+ } from "./chunk-MUPRW43Q.js";
11
11
 
12
12
  // src/CoverImageExportModal.tsx
13
13
  import { useCallback, useId, useRef, useState } from "react";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  VideoExportButton,
3
3
  VideoExportModal
4
- } from "../chunk-NTLNXUMA.js";
4
+ } from "../chunk-36WUASP4.js";
5
5
  import {
6
6
  CoverImageExportModal,
7
7
  coverImageFilename,
8
8
  validateCoverImageDimensions
9
- } from "../chunk-JVGUGMEZ.js";
9
+ } from "../chunk-VOMLSGQT.js";
10
10
  import "../chunk-3NJDHK62.js";
11
- import "../chunk-IOLZNTKA.js";
12
- import "../chunk-CWLDLWSE.js";
11
+ import "../chunk-COBWVGNZ.js";
12
+ import "../chunk-MUPRW43Q.js";
13
13
  import "../chunk-R4P6O5U6.js";
14
14
  import "../chunk-RIXBIX3H.js";
15
15
  import "../chunk-5MFQMJ5Z.js";
@@ -2,9 +2,9 @@ import {
2
2
  CoverImageExportModal,
3
3
  coverImageFilename,
4
4
  validateCoverImageDimensions
5
- } from "../chunk-JVGUGMEZ.js";
5
+ } from "../chunk-VOMLSGQT.js";
6
6
  import "../chunk-3NJDHK62.js";
7
- import "../chunk-CWLDLWSE.js";
7
+ import "../chunk-MUPRW43Q.js";
8
8
  import "../chunk-R4P6O5U6.js";
9
9
  export {
10
10
  CoverImageExportModal,
@@ -7,7 +7,7 @@ import {
7
7
  } from "../chunk-3NJDHK62.js";
8
8
  import {
9
9
  useFrameCapture
10
- } from "../chunk-CWLDLWSE.js";
10
+ } from "../chunk-MUPRW43Q.js";
11
11
  import "../chunk-R4P6O5U6.js";
12
12
 
13
13
  // src/DashboardImageExportModal.tsx
@@ -3,10 +3,10 @@ import {
3
3
  resolveVideoCoverFramePlan,
4
4
  resolveVideoExportCover,
5
5
  useVideoExport
6
- } from "../chunk-IOLZNTKA.js";
6
+ } from "../chunk-COBWVGNZ.js";
7
7
  import {
8
8
  useFrameCapture
9
- } from "../chunk-CWLDLWSE.js";
9
+ } from "../chunk-MUPRW43Q.js";
10
10
  import "../chunk-R4P6O5U6.js";
11
11
  import "../chunk-RIXBIX3H.js";
12
12
  import "../chunk-5MFQMJ5Z.js";
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  VideoExportButton,
3
3
  VideoExportModal
4
- } from "./chunk-NTLNXUMA.js";
4
+ } from "./chunk-36WUASP4.js";
5
5
  import {
6
6
  CoverImageExportModal,
7
7
  coverImageFilename,
8
8
  validateCoverImageDimensions
9
- } from "./chunk-JVGUGMEZ.js";
9
+ } from "./chunk-VOMLSGQT.js";
10
10
  import "./chunk-3NJDHK62.js";
11
11
  import {
12
12
  DEFAULT_VIDEO_COVER_PRE_ROLL_SECONDS,
13
13
  resolveVideoCoverFramePlan,
14
14
  resolveVideoExportCover,
15
15
  useVideoExport
16
- } from "./chunk-IOLZNTKA.js";
16
+ } from "./chunk-COBWVGNZ.js";
17
17
  import {
18
18
  useFrameCapture
19
- } from "./chunk-CWLDLWSE.js";
19
+ } from "./chunk-MUPRW43Q.js";
20
20
  import "./chunk-R4P6O5U6.js";
21
21
  import {
22
22
  createAudioFileEncoder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq-video-react",
3
- "version": "2.4.25",
3
+ "version": "2.4.26",
4
4
  "description": "React components for browser-based MP4 and animated-GIF export of Squisq documents",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -79,7 +79,7 @@
79
79
  "dependencies": {
80
80
  "@bendyline/squisq": "2.11.19",
81
81
  "@bendyline/squisq-video": "2.3.23",
82
- "@bendyline/squisq-react": "2.11.21",
82
+ "@bendyline/squisq-react": "2.11.22",
83
83
  "@ffmpeg/core": "0.12.10",
84
84
  "@ffmpeg/ffmpeg": "0.12.15",
85
85
  "@ffmpeg/util": "0.12.2",