ds-markdown 0.0.11-beta.1 → 0.0.11

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
@@ -182,16 +182,14 @@ interface MarkdownRef {
182
182
  push: (content: string, answerType: AnswerType) => void;
183
183
  clear: () => void;
184
184
  triggerWholeEnd: () => void;
185
- flushBuffer: (answerType?: AnswerType) => void;
186
185
  }
187
186
  ```
188
187
 
189
- | Method | Parameters | Description |
190
- | ----------------- | ------------------------------------------- | ------------------------------------ |
191
- | `push` | `(content: string, answerType: AnswerType)` | Add content and start typing |
192
- | `clear` | - | Clear all content and state |
193
- | `triggerWholeEnd` | - | Manually trigger completion callback |
194
- | `flushBuffer` | `answerType?: AnswerType` | Force flush buffer content |
188
+ | Method | Parameters | Description |
189
+ | ----------------- | ------------------------------------------- | ----------------------------- |
190
+ | `push` | `(content: string, answerType: AnswerType)` | Add content and start typing |
191
+ | `clear` | - | Clear all content and state |
192
+ | `triggerWholeEnd` | - | Manually trigger end callback |
195
193
 
196
194
  ---
197
195
 
@@ -330,9 +328,6 @@ const handleStreamingMarkdown = () => {
330
328
  markdownRef.current?.push(chunk, 'answer');
331
329
  // No delay needed, component buffers intelligently internally
332
330
  });
333
-
334
- // Optional: manually flush remaining buffer content
335
- markdownRef.current?.flushBuffer();
336
331
  };
337
332
 
338
333
  // 🧠 Smart Processing Flow:
@@ -342,13 +337,6 @@ const handleStreamingMarkdown = () => {
342
337
  // 4. Zero delay, pure synchronous processing
343
338
  ```
344
339
 
345
- **Buffer Mechanism Features**:
346
-
347
- - ⚡ **Zero Delay**: No setTimeout, pure synchronous real-time processing
348
- - 🧠 **Smart Boundaries**: Boundary detection based on Markdown syntax rules
349
- - 🔄 **Real-time Splitting**: Process immediately when complete syntax is encountered, smart buffering when incomplete
350
- - 🛡️ **Safety Guarantee**: Provides `flushBuffer()` method to handle remaining content
351
-
352
340
  **Supported Syntax Detection**:
353
341
 
354
342
  ````typescript
package/README.ja.md CHANGED
@@ -182,7 +182,6 @@ interface MarkdownRef {
182
182
  push: (content: string, answerType: AnswerType) => void;
183
183
  clear: () => void;
184
184
  triggerWholeEnd: () => void;
185
- flushBuffer: (answerType?: AnswerType) => void;
186
185
  }
187
186
  ```
188
187
 
@@ -190,8 +189,7 @@ interface MarkdownRef {
190
189
  | ----------------- | ------------------------------------------- | ------------------------------------ |
191
190
  | `push` | `(content: string, answerType: AnswerType)` | コンテンツを追加してタイピングを開始 |
192
191
  | `clear` | - | すべてのコンテンツと状態をクリア |
193
- | `triggerWholeEnd` | - | 手動で完了コールバックをトリガー |
194
- | `flushBuffer` | `answerType?: AnswerType` | バッファーコンテンツを強制フラッシュ |
192
+ | `triggerWholeEnd` | - | 完了コールバックを手動でトリガー |
195
193
 
196
194
  ---
197
195
 
@@ -331,8 +329,6 @@ const handleStreamingMarkdown = () => {
331
329
  // 遅延不要、コンポーネント内部で知的バッファリング
332
330
  });
333
331
 
334
- // オプション:残りのバッファーコンテンツを手動でフラッシュ
335
- markdownRef.current?.flushBuffer();
336
332
  };
337
333
 
338
334
  // 🧠 スマート処理フロー:
@@ -342,13 +338,6 @@ const handleStreamingMarkdown = () => {
342
338
  // 4. ゼロ遅延、純粋同期処理
343
339
  ```
344
340
 
345
- **バッファーメカニズム特徴**:
346
-
347
- - ⚡ **ゼロ遅延**:setTimeout なし、純粋同期リアルタイム処理
348
- - 🧠 **スマート境界**:Markdown 構文ルールに基づく境界検出
349
- - 🔄 **リアルタイム分割**:完全構文に遭遇時即座に処理、不完全時はスマートバッファリング
350
- - 🛡️ **安全保証**:残りコンテンツを処理する `flushBuffer()` メソッドを提供
351
-
352
341
  **サポートされる構文検出**:
353
342
 
354
343
  ````typescript
package/README.ko.md CHANGED
@@ -182,7 +182,6 @@ interface MarkdownRef {
182
182
  push: (content: string, answerType: AnswerType) => void;
183
183
  clear: () => void;
184
184
  triggerWholeEnd: () => void;
185
- flushBuffer: (answerType?: AnswerType) => void;
186
185
  }
187
186
  ```
188
187
 
@@ -190,8 +189,7 @@ interface MarkdownRef {
190
189
  | ----------------- | ------------------------------------------- | -------------------------- |
191
190
  | `push` | `(content: string, answerType: AnswerType)` | 콘텐츠 추가 및 타이핑 시작 |
192
191
  | `clear` | - | 모든 콘텐츠와 상태 초기화 |
193
- | `triggerWholeEnd` | - | 수동으로 완료 콜백 트리거 |
194
- | `flushBuffer` | `answerType?: AnswerType` | 버퍼 콘텐츠 강제 플러시 |
192
+ | `triggerWholeEnd` | - | 완료 콜백 수동 트리거 |
195
193
 
196
194
  ---
197
195
 
@@ -330,9 +328,6 @@ const handleStreamingMarkdown = () => {
330
328
  markdownRef.current?.push(chunk, 'answer');
331
329
  // 지연 불필요, 컴포넌트 내부에서 지능적 버퍼링
332
330
  });
333
-
334
- // 선택사항: 남은 버퍼 콘텐츠 수동 플러시
335
- markdownRef.current?.flushBuffer();
336
331
  };
337
332
 
338
333
  // 🧠 스마트 처리 플로우:
@@ -342,13 +337,6 @@ const handleStreamingMarkdown = () => {
342
337
  // 4. 지연 없음, 순수 동기 처리
343
338
  ```
344
339
 
345
- **버퍼 메커니즘 특징**:
346
-
347
- - ⚡ **지연 없음**: setTimeout 없음, 순수 동기 실시간 처리
348
- - 🧠 **스마트 경계**: Markdown 구문 규칙 기반 경계 감지
349
- - 🔄 **실시간 분할**: 완전한 구문 만날 때 즉시 처리, 불완전할 때 스마트 버퍼링
350
- - 🛡️ **안전 보장**: 남은 콘텐츠 처리를 위한 `flushBuffer()` 메서드 제공
351
-
352
340
  **지원되는 구문 감지**:
353
341
 
354
342
  ````typescript
package/README.md CHANGED
@@ -182,7 +182,6 @@ interface MarkdownRef {
182
182
  push: (content: string, answerType: AnswerType) => void;
183
183
  clear: () => void;
184
184
  triggerWholeEnd: () => void;
185
- flushBuffer: (answerType?: AnswerType) => void;
186
185
  }
187
186
  ```
188
187
 
@@ -191,7 +190,6 @@ interface MarkdownRef {
191
190
  | `push` | `(content: string, answerType: AnswerType)` | 添加内容并开始打字 |
192
191
  | `clear` | - | 清空所有内容和状态 |
193
192
  | `triggerWholeEnd` | - | 手动触发完成回调 |
194
- | `flushBuffer` | `answerType?: AnswerType` | 强制刷新缓冲区内容 |
195
193
 
196
194
  ---
197
195
 
@@ -330,9 +328,6 @@ const handleStreamingMarkdown = () => {
330
328
  markdownRef.current?.push(chunk, 'answer');
331
329
  // 无需延迟,组件内部智能缓冲
332
330
  });
333
-
334
- // 可选:手动刷新剩余缓冲内容
335
- markdownRef.current?.flushBuffer();
336
331
  };
337
332
 
338
333
  // 🧠 智能处理流程:
@@ -342,13 +337,6 @@ const handleStreamingMarkdown = () => {
342
337
  // 4. 零延迟,纯同步处理
343
338
  ```
344
339
 
345
- **缓冲机制特性**:
346
-
347
- - ⚡ **零延迟**:无 setTimeout,纯同步实时处理
348
- - 🧠 **智能边界**:基于 Markdown 语法规则的边界检测
349
- - 🔄 **实时分割**:遇到完整语法立即处理,不完整时智能缓冲
350
- - 🛡️ **安全保障**:提供 `flushBuffer()` 方法处理剩余内容
351
-
352
340
  **支持的语法检测**:
353
341
 
354
342
  ````typescript
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ds-markdown",
3
3
  "private": false,
4
- "version": "0.0.11-beta.1",
4
+ "version": "0.0.11",
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
  }