@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.
- package/lib/{AsciinemaPlayerImpl-CTd51CWg.js → AsciinemaPlayerImpl-DrztGkXg.js} +33 -28
- package/lib/{AsciinemaPlayerImpl-CTd51CWg.js.map → AsciinemaPlayerImpl-DrztGkXg.js.map} +1 -1
- package/lib/index.js +87 -5
- package/lib/index.js.map +1 -1
- package/lib/{markdownPipeline-bhdCQvtQ.js → markdownPipeline-D23f-WkE.js} +177 -122
- package/lib/markdownPipeline-D23f-WkE.js.map +1 -0
- package/lib/src/app/samples/SampleDisplay.d.ts.map +1 -1
- package/lib/src/app/samples/StoreTerminalSessions.d.ts +20 -0
- package/lib/src/app/samples/StoreTerminalSessions.d.ts.map +1 -0
- package/lib/styles/index.css +9 -0
- package/package.json +2 -2
- package/lib/markdownPipeline-bhdCQvtQ.js.map +0 -1
|
@@ -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(
|
|
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] !==
|
|
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] =
|
|
6666
|
-
$[2] =
|
|
6667
|
-
$[3] =
|
|
6668
|
-
$[4] =
|
|
6669
|
-
$[5] =
|
|
6670
|
-
$[6] =
|
|
6671
|
-
$[7] =
|
|
6672
|
-
$[8] =
|
|
6673
|
-
$[9] =
|
|
6674
|
-
$[10] =
|
|
6675
|
-
$[11] =
|
|
6676
|
-
$[12] =
|
|
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 = $[
|
|
6679
|
-
t3 = $[
|
|
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 ($[
|
|
6689
|
+
if ($[14] !== style) {
|
|
6685
6690
|
t5 = { ...style };
|
|
6686
|
-
$[
|
|
6687
|
-
$[
|
|
6688
|
-
} else t5 = $[
|
|
6691
|
+
$[14] = style;
|
|
6692
|
+
$[15] = t5;
|
|
6693
|
+
} else t5 = $[15];
|
|
6689
6694
|
let t6;
|
|
6690
|
-
if ($[
|
|
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
|
-
$[
|
|
6697
|
-
$[
|
|
6698
|
-
$[
|
|
6699
|
-
} else t6 = $[
|
|
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-
|
|
6710
|
+
//# sourceMappingURL=AsciinemaPlayerImpl-DrztGkXg.js.map
|