@bendyline/squisq-cli 2.4.3 → 2.4.5

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
  THIRD-PARTY LICENSES FOR @bendyline/squisq-cli
2
2
 
3
- The inventory below covers the bundled light and full standalone player artifacts.
3
+ The inventory below covers the bundled light and full standalone player artifacts and their shared icon styles.
4
4
 
5
5
  Generated from the actual esbuild input graph. Package-local license, copying,
6
6
  and notice files are reproduced verbatim. When an npm tarball omits its
@@ -11,7 +11,7 @@ import {
11
11
  readInput,
12
12
  renderDocToGif,
13
13
  renderDocToMp4
14
- } from "./chunk-X3GFPKRJ.js";
14
+ } from "./chunk-6OBPEBL4.js";
15
15
  import {
16
16
  GIF_EXPORT_DEFAULTS,
17
17
  framesToGifNative,
package/dist/api.js CHANGED
@@ -818,18 +818,26 @@ function throwIfAborted(signal) {
818
818
  import { ConversionError } from "@bendyline/squisq-formats";
819
819
  var playerBundlePromise;
820
820
  var fullPlayerBundlePromise;
821
- function loadPlayerBundle() {
822
- playerBundlePromise ??= readFile3(
823
- new URL("../dist/squisq-player.global.js", import.meta.url),
821
+ var playerIconBootstrapPromise;
822
+ function loadPlayerIconBootstrap() {
823
+ playerIconBootstrapPromise ??= readFile3(
824
+ new URL("../dist/squisq-player-icons.global.js", import.meta.url),
824
825
  "utf8"
825
826
  );
827
+ return playerIconBootstrapPromise;
828
+ }
829
+ function loadPlayerBundle() {
830
+ playerBundlePromise ??= Promise.all([
831
+ loadPlayerIconBootstrap(),
832
+ readFile3(new URL("../dist/squisq-player.global.js", import.meta.url), "utf8")
833
+ ]).then(([icons, player]) => `${icons}${player}`);
826
834
  return playerBundlePromise;
827
835
  }
828
836
  function loadFullPlayerBundle() {
829
- fullPlayerBundlePromise ??= readFile3(
830
- new URL("../dist/squisq-player.full.global.js", import.meta.url),
831
- "utf8"
832
- );
837
+ fullPlayerBundlePromise ??= Promise.all([
838
+ loadPlayerIconBootstrap(),
839
+ readFile3(new URL("../dist/squisq-player.full.global.js", import.meta.url), "utf8")
840
+ ]).then(([icons, player]) => `${icons}${player}`);
833
841
  return fullPlayerBundlePromise;
834
842
  }
835
843
  async function convert(source, to, options = {}) {
@@ -330,7 +330,7 @@ function mp4Format() {
330
330
  const animationsEnabled = typeof mp4Opts.animationsEnabled === "boolean" ? mp4Opts.animationsEnabled : MP4_DEFAULTS.animationsEnabled;
331
331
  const outputPath = join(tmpdir(), `squisq-mp4-${randomBytes(8).toString("hex")}.mp4`);
332
332
  try {
333
- const { renderDocToMp4: renderDocToMp42 } = await import("./api-PBBQQMRP.js");
333
+ const { renderDocToMp4: renderDocToMp42 } = await import("./api-36UERSSU.js");
334
334
  await renderDocToMp42(input.doc, input.container, {
335
335
  outputPath,
336
336
  fps,
@@ -371,7 +371,7 @@ function gifFormat() {
371
371
  const defaultHeight = portrait ? GIF_DEFAULTS.width : GIF_DEFAULTS.height;
372
372
  const outputPath = join(tmpdir(), `squisq-gif-${randomBytes(8).toString("hex")}.gif`);
373
373
  try {
374
- const { renderDocToGif: renderDocToGif2 } = await import("./api-PBBQQMRP.js");
374
+ const { renderDocToGif: renderDocToGif2 } = await import("./api-36UERSSU.js");
375
375
  const result = await renderDocToGif2(input.doc, input.container, {
376
376
  outputPath,
377
377
  fps: typeof gifOpts.fps === "number" ? gifOpts.fps : GIF_DEFAULTS.fps,
@@ -815,18 +815,26 @@ function throwIfAborted(signal) {
815
815
  import { ConversionError } from "@bendyline/squisq-formats";
816
816
  var playerBundlePromise;
817
817
  var fullPlayerBundlePromise;
818
- function loadPlayerBundle() {
819
- playerBundlePromise ??= readFile3(
820
- new URL("../dist/squisq-player.global.js", import.meta.url),
818
+ var playerIconBootstrapPromise;
819
+ function loadPlayerIconBootstrap() {
820
+ playerIconBootstrapPromise ??= readFile3(
821
+ new URL("../dist/squisq-player-icons.global.js", import.meta.url),
821
822
  "utf8"
822
823
  );
824
+ return playerIconBootstrapPromise;
825
+ }
826
+ function loadPlayerBundle() {
827
+ playerBundlePromise ??= Promise.all([
828
+ loadPlayerIconBootstrap(),
829
+ readFile3(new URL("../dist/squisq-player.global.js", import.meta.url), "utf8")
830
+ ]).then(([icons, player]) => `${icons}${player}`);
823
831
  return playerBundlePromise;
824
832
  }
825
833
  function loadFullPlayerBundle() {
826
- fullPlayerBundlePromise ??= readFile3(
827
- new URL("../dist/squisq-player.full.global.js", import.meta.url),
828
- "utf8"
829
- );
834
+ fullPlayerBundlePromise ??= Promise.all([
835
+ loadPlayerIconBootstrap(),
836
+ readFile3(new URL("../dist/squisq-player.full.global.js", import.meta.url), "utf8")
837
+ ]).then(([icons, player]) => `${icons}${player}`);
830
838
  return fullPlayerBundlePromise;
831
839
  }
832
840
  async function convert(source, to, options = {}) {
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  readInput,
9
9
  renderDocToGif,
10
10
  renderDocToMp4
11
- } from "./chunk-X3GFPKRJ.js";
11
+ } from "./chunk-6OBPEBL4.js";
12
12
  import "./chunk-GGVASRPG.js";
13
13
 
14
14
  // src/index.ts