easecut-react 1.1.2 → 1.1.4

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/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <a href="https://underhear.github.io/EaseCut/"><img src="https://img.shields.io/badge/演示地址-https://underhear.github.io/EaseCut/-01ab85" alt="在线演示"></a>
9
9
  </p>
10
10
  <p align="center">
11
- <a href="https://underhear.github.io/EaseCut/"><img src="https://img.shields.io/badge/Github-https://github.com/UnderHear/EaseCut-6543ae" alt="在线演示"></a>
11
+ <a href="https://github.com/UnderHear/EaseCut"><img src="https://img.shields.io/badge/Github-https://github.com/UnderHear/EaseCut-6543ae" alt="项目地址"></a>
12
12
  </p>
13
13
 
14
14
  <p align="center">
@@ -23,7 +23,9 @@
23
23
  具备进行快速视频编辑的完备功能。
24
24
  </p>
25
25
 
26
- ## 效果图
26
+ ## 效果图
27
+
28
+ [underhear.github.io/EaseCut/](underhear.github.io/EaseCut/)
27
29
 
28
30
  <table>
29
31
  <tr>
@@ -59,6 +61,21 @@ export function App() {
59
61
 
60
62
  好了。
61
63
 
64
+ ## 明暗主题
65
+
66
+ `theme` 支持 `"light"` 和 `"dark"`,未传时默认使用深色主题。
67
+
68
+ ```tsx
69
+ import { EaseCut } from "easecut-react";
70
+ import "easecut-react/styles.css";
71
+
72
+ export function App() {
73
+ return <EaseCut theme="light" />;
74
+ }
75
+ ```
76
+
77
+ `theme` 是受控属性,更新它即可在运行时切换主题。
78
+
62
79
  ## 导入素材 & 导出视频 & 关闭编辑器
63
80
 
64
81
  ### 导入素材
@@ -129,6 +146,7 @@ export function App() {
129
146
  - 问你的AI,它知道怎么做
130
147
  - EaseCut\docs\npm-component-usage.md 有较为详细的使用说明
131
148
  - 如果确实是EaseCut没做好,请提交Issues
149
+ - 发送邮件至2533643340@qq.com
132
150
 
133
151
  **官方文档在制作路上...**
134
152
 
package/dist/index.js CHANGED
@@ -6674,6 +6674,10 @@ var Yd = [
6674
6674
  action: "删除选中片段",
6675
6675
  key: "Backspace"
6676
6676
  },
6677
+ {
6678
+ action: "显示/隐藏选中片段",
6679
+ key: "H"
6680
+ },
6677
6681
  {
6678
6682
  action: "后退 0.1 秒",
6679
6683
  key: "Ctrl + ← / ⌘ + ←"
@@ -6757,7 +6761,7 @@ function Xd({ onRequestAddTitle: e, onRequestImport: t, onRequestPreviewFullscre
6757
6761
  onClick: () => {
6758
6762
  p && x(p.id, !p.hidden);
6759
6763
  },
6760
- title: p?.hidden ? "显示选中片段" : "隐藏选中片段",
6764
+ title: p?.hidden ? "显示选中片段 H" : "隐藏选中片段 H",
6761
6765
  children: p?.hidden ? /* @__PURE__ */ g(E, { "aria-hidden": "true" }) : /* @__PURE__ */ g(D, { "aria-hidden": "true" })
6762
6766
  }),
6763
6767
  t && /* @__PURE__ */ g($, {
@@ -10555,6 +10559,11 @@ function Uv({ className: e = "", jsonFileName: t = "video-composition.json", onC
10555
10559
  return;
10556
10560
  }
10557
10561
  if (!(n || e.altKey)) {
10562
+ if (!e.shiftKey && !e.repeat && r === "h") {
10563
+ let n = t.clips.find((e) => e.id === t.selectedClipId);
10564
+ n && (e.preventDefault(), e.stopPropagation(), t.setClipHidden(n.id, !n.hidden));
10565
+ return;
10566
+ }
10558
10567
  if (e.key === "Backspace") {
10559
10568
  e.preventDefault(), e.stopPropagation(), t.deleteSelectedClip();
10560
10569
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineToolbar.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/TimelineToolbar.tsx"],"names":[],"mappings":"AAqCA,KAAK,oBAAoB,GAAG;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;CACxC,CAAC;AAoCF,wBAAgB,eAAe,CAAC,EAC9B,iBAAiB,EACjB,eAAe,EACf,0BAA0B,GAC3B,EAAE,oBAAoB,+BA+QtB"}
1
+ {"version":3,"file":"TimelineToolbar.d.ts","sourceRoot":"","sources":["../../../../src/editor/components/TimelineToolbar.tsx"],"names":[],"mappings":"AAqCA,KAAK,oBAAoB,GAAG;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,0BAA0B,EAAE,MAAM,IAAI,CAAC;CACxC,CAAC;AAqCF,wBAAgB,eAAe,CAAC,EAC9B,iBAAiB,EACjB,eAAe,EACf,0BAA0B,GAC3B,EAAE,oBAAoB,+BAmRtB"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "easecut-react",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "description": "独立、可嵌入的 React 视频编辑器",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/你的用户名/你的仓库名.git"
9
+ "url": "git+https://github.com/UnderHear/EaseCut.git"
10
10
  },
11
11
  "homepage": "https://underhear.github.io/EaseCut/",
12
12
  "main": "./dist/index.js",