ds-markdown 0.0.14-beta.1 → 0.0.14

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.en.md CHANGED
@@ -194,6 +194,15 @@ interface MarkdownCMDRef {
194
194
  | `push` | `(content: string, answerType: AnswerType)` | Add content and start typing |
195
195
  | `clear` | - | Clear all content and state |
196
196
  | `triggerWholeEnd` | - | Manually trigger end callback |
197
+ | `stop` | - | Pause typing animation |
198
+ | `resume` | - | Resume typing animation |
199
+
200
+ **Usage Example:**
201
+
202
+ ```tsx
203
+ markdownRef.current?.stop(); // Pause animation
204
+ markdownRef.current?.resume(); // Resume animation
205
+ ```
197
206
 
198
207
  ---
199
208
 
package/README.ja.md CHANGED
@@ -194,6 +194,15 @@ interface MarkdownCMDRef {
194
194
  | `push` | `(content: string, answerType: AnswerType)` | コンテンツを追加してタイピングを開始 |
195
195
  | `clear` | - | すべてのコンテンツと状態をクリア |
196
196
  | `triggerWholeEnd` | - | 完了コールバックを手動でトリガー |
197
+ | `stop` | - | タイピングを一時停止 |
198
+ | `resume` | - | タイピングを再開 |
199
+
200
+ **使用例:**
201
+
202
+ ```tsx
203
+ markdownRef.current?.stop(); // アニメーションを一時停止
204
+ markdownRef.current?.resume(); // アニメーションを再開
205
+ ```
197
206
 
198
207
  ---
199
208
 
package/README.ko.md CHANGED
@@ -195,6 +195,16 @@ interface MarkdownCMDRef {
195
195
  | `clear` | - | 모든 콘텐츠와 상태 초기화 |
196
196
  | `triggerWholeEnd` | - | 완료 콜백 수동 트리거 |
197
197
 
198
+ | `stop` | - | 타이핑 애니메이션 일시정지 |
199
+ | `resume` | - | 타이핑 애니메이션 재개 |
200
+
201
+ **사용 예시:**
202
+
203
+ ```tsx
204
+ markdownRef.current?.stop(); // 애니메이션 일시정지
205
+ markdownRef.current?.resume(); // 애니메이션 재개
206
+ ```
207
+
198
208
  ---
199
209
 
200
210
  ## 🎛️ 타이머 모드 상세 설명
package/README.md CHANGED
@@ -105,6 +105,8 @@ pnpm add ds-markdown
105
105
 
106
106
  ### 基础用法
107
107
 
108
+ [DEMO](https://stackblitz.com/edit/vitejs-vite-z94syu8j?file=src%2FApp.tsx)
109
+
108
110
  ```tsx
109
111
  import DsMarkdown from 'ds-markdown';
110
112
  import 'ds-markdown/style.css';
@@ -180,21 +182,20 @@ React 19 带来了许多激动人心的新特性:
180
182
 
181
183
  ### 命令式 API (推荐流式场景)
182
184
 
183
- ```typescript
184
- import { MarkdownCMD, MarkdownCMDRef } from 'ds-markdown';
185
-
186
- interface MarkdownCMDRef {
187
- push: (content: string, answerType: AnswerType) => void;
188
- clear: () => void;
189
- triggerWholeEnd: () => void;
190
- }
191
- ```
192
-
193
185
  | 方法 | 参数 | 说明 |
194
186
  | ----------------- | ------------------------------------------- | ------------------ |
195
187
  | `push` | `(content: string, answerType: AnswerType)` | 添加内容并开始打字 |
196
188
  | `clear` | - | 清空所有内容和状态 |
197
189
  | `triggerWholeEnd` | - | 手动触发完成回调 |
190
+ | `stop` | - | 暂停打字动画 |
191
+ | `resume` | - | 恢复打字动画 |
192
+
193
+ **用法示例:**
194
+
195
+ ```tsx
196
+ markdownRef.current?.stop(); // 暂停动画
197
+ markdownRef.current?.resume(); // 恢复动画
198
+ ```
198
199
 
199
200
  ---
200
201
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ds-markdown",
3
3
  "private": false,
4
- "version": "0.0.14-beta.1",
4
+ "version": "0.0.14",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/cjs/index.d.ts",
7
7
  "module": "./dist/esm/index.js",
@@ -112,6 +112,6 @@
112
112
  "react-markdown"
113
113
  ],
114
114
  "publishConfig": {
115
- "tag": "beta"
115
+ "tag": "latest"
116
116
  }
117
117
  }