@arcblock/terminal 3.0.5 → 3.0.7
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/Player.js +1 -1
- package/package.json +4 -4
- package/src/Player.jsx +1 -1
- package/src/Terminal.jsx +1 -0
package/lib/Player.js
CHANGED
|
@@ -8,7 +8,7 @@ import h from "lodash/noop";
|
|
|
8
8
|
import A from "./Terminal.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { defaultOptions as U, formatFrames as L, defaultState as X, isFrameAt as F, findFrameAt as P, getPlayerClass as _, getFrameClass as $, formatTime as G } from "./util.js";
|
|
11
|
-
function K(C) {
|
|
11
|
+
function K({ ...C }) {
|
|
12
12
|
const i = Object.assign({}, C);
|
|
13
13
|
y(i.onComplete) && (i.onComplete = h), y(i.onStart) && (i.onStart = h), y(i.onStop) && (i.onStop = h), y(i.onPause) && (i.onPause = h), y(i.onTick) && (i.onTick = h), y(i.onJump) && (i.onJump = h);
|
|
14
14
|
const t = Object.assign({}, U, i.options), { frames: u, totalDuration: m } = L(i.frames, t), R = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/terminal",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "A react wrapper for xterm allowing you to easily render a terminal in the browser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "^19.0.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "05185ed22660a8fea176616b19b6703456f2348c",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@arcblock/react-hooks": "3.0.
|
|
46
|
-
"@arcblock/ux": "3.0.
|
|
45
|
+
"@arcblock/react-hooks": "3.0.7",
|
|
46
|
+
"@arcblock/ux": "3.0.7",
|
|
47
47
|
"@emotion/react": "^11.14.0",
|
|
48
48
|
"@emotion/styled": "^11.14.0",
|
|
49
49
|
"ahooks": "^3.8.5",
|
package/src/Player.jsx
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
defaultState,
|
|
22
22
|
} from './util';
|
|
23
23
|
|
|
24
|
-
export default function Player(rawProps) {
|
|
24
|
+
export default function Player({ ...rawProps }) {
|
|
25
25
|
const props = Object.assign({}, rawProps);
|
|
26
26
|
if (isUndefined(props.onComplete)) {
|
|
27
27
|
props.onComplete = noop;
|
package/src/Terminal.jsx
CHANGED