@meridianlabs/log-viewer 0.3.283 → 0.3.284

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.
@@ -6617,16 +6617,19 @@ function create(src, elem, opts = {}) {
6617
6617
  //#endregion
6618
6618
  //#region ../../packages/react/src/components/AsciinemaPlayerImpl.tsx
6619
6619
  var AsciinemaPlayerImpl = (t0) => {
6620
- const $ = c(18);
6621
- const { id, rows, cols, input, output, timing, fit, speed, autoPlay, loop, theme, idleTimeLimit: t1, style } = t0;
6620
+ const $ = c(19);
6621
+ const { id, rows, cols, input, output, timing, cast, fit, speed, autoPlay, loop, theme, idleTimeLimit: t1, style } = t0;
6622
6622
  const idleTimeLimit = t1 === void 0 ? 2 : t1;
6623
6623
  const playerContainerRef = useRef(null);
6624
6624
  let t2;
6625
6625
  let t3;
6626
- if ($[0] !== autoPlay || $[1] !== cols || $[2] !== fit || $[3] !== idleTimeLimit || $[4] !== input || $[5] !== loop || $[6] !== output || $[7] !== rows || $[8] !== speed || $[9] !== theme || $[10] !== timing) {
6626
+ if ($[0] !== autoPlay || $[1] !== cast || $[2] !== cols || $[3] !== fit || $[4] !== idleTimeLimit || $[5] !== input || $[6] !== loop || $[7] !== output || $[8] !== rows || $[9] !== speed || $[10] !== theme || $[11] !== timing) {
6627
6627
  t2 = () => {
6628
6628
  if (!playerContainerRef.current) return;
6629
- const player = create({
6629
+ const player = create(cast !== void 0 ? {
6630
+ data: () => new Response(cast),
6631
+ parser: "asciicast"
6632
+ } : {
6630
6633
  data: () => [
6631
6634
  new Response(timing),
6632
6635
  new Response(output),
@@ -6652,6 +6655,7 @@ var AsciinemaPlayerImpl = (t0) => {
6652
6655
  timing,
6653
6656
  output,
6654
6657
  input,
6658
+ cast,
6655
6659
  rows,
6656
6660
  cols,
6657
6661
  autoPlay,
@@ -6662,44 +6666,45 @@ var AsciinemaPlayerImpl = (t0) => {
6662
6666
  fit
6663
6667
  ];
6664
6668
  $[0] = autoPlay;
6665
- $[1] = cols;
6666
- $[2] = fit;
6667
- $[3] = idleTimeLimit;
6668
- $[4] = input;
6669
- $[5] = loop;
6670
- $[6] = output;
6671
- $[7] = rows;
6672
- $[8] = speed;
6673
- $[9] = theme;
6674
- $[10] = timing;
6675
- $[11] = t2;
6676
- $[12] = t3;
6669
+ $[1] = cast;
6670
+ $[2] = cols;
6671
+ $[3] = fit;
6672
+ $[4] = idleTimeLimit;
6673
+ $[5] = input;
6674
+ $[6] = loop;
6675
+ $[7] = output;
6676
+ $[8] = rows;
6677
+ $[9] = speed;
6678
+ $[10] = theme;
6679
+ $[11] = timing;
6680
+ $[12] = t2;
6681
+ $[13] = t3;
6677
6682
  } else {
6678
- t2 = $[11];
6679
- t3 = $[12];
6683
+ t2 = $[12];
6684
+ t3 = $[13];
6680
6685
  }
6681
6686
  useEffect(t2, t3);
6682
6687
  const t4 = `asciinema-player-${id || "default"}`;
6683
6688
  let t5;
6684
- if ($[13] !== style) {
6689
+ if ($[14] !== style) {
6685
6690
  t5 = { ...style };
6686
- $[13] = style;
6687
- $[14] = t5;
6688
- } else t5 = $[14];
6691
+ $[14] = style;
6692
+ $[15] = t5;
6693
+ } else t5 = $[15];
6689
6694
  let t6;
6690
- if ($[15] !== t4 || $[16] !== t5) {
6695
+ if ($[16] !== t4 || $[17] !== t5) {
6691
6696
  t6 = /*#__PURE__*/ jsx("div", {
6692
6697
  id: t4,
6693
6698
  ref: playerContainerRef,
6694
6699
  style: t5
6695
6700
  });
6696
- $[15] = t4;
6697
- $[16] = t5;
6698
- $[17] = t6;
6699
- } else t6 = $[17];
6701
+ $[16] = t4;
6702
+ $[17] = t5;
6703
+ $[18] = t6;
6704
+ } else t6 = $[18];
6700
6705
  return t6;
6701
6706
  };
6702
6707
  //#endregion
6703
6708
  export { AsciinemaPlayerImpl as default };
6704
6709
 
6705
- //# sourceMappingURL=AsciinemaPlayerImpl-CTd51CWg.js.map
6710
+ //# sourceMappingURL=AsciinemaPlayerImpl-DrztGkXg.js.map