@smartdoca/markdown 0.4.4 → 0.4.5
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 +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/chunks/index-Cd3grnUT.js +2815 -0
- package/dist/chunks/index-DQLDZhUI.cjs +86 -0
- package/dist/chunks/{pdf-file-impl-Dl8vhx1F.cjs → pdf-file-impl-CMlXt-sQ.cjs} +1 -1
- package/dist/chunks/{pdf-file-impl-BvS6-o8W.js → pdf-file-impl-Hh_4oE89.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/editor/i18n.d.ts +777 -3
- package/dist/types/editor/i18n.d.ts.map +1 -1
- package/dist/types/editor/locales/es.d.ts +130 -0
- package/dist/types/editor/locales/es.d.ts.map +1 -0
- package/dist/types/editor/locales/fr.d.ts +130 -0
- package/dist/types/editor/locales/fr.d.ts.map +1 -0
- package/dist/types/editor/locales/ja.d.ts +130 -0
- package/dist/types/editor/locales/ja.d.ts.map +1 -0
- package/dist/types/editor/locales/ko.d.ts +130 -0
- package/dist/types/editor/locales/ko.d.ts.map +1 -0
- package/dist/types/editor/locales/ru.d.ts +130 -0
- package/dist/types/editor/locales/ru.d.ts.map +1 -0
- package/dist/types/editor/locales/zh-Hant.d.ts +130 -0
- package/dist/types/editor/locales/zh-Hant.d.ts.map +1 -0
- package/dist/types/editor/locales.d.ts +771 -0
- package/dist/types/editor/locales.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/chunks/index-CVtHVxS9.js +0 -2008
- package/dist/chunks/index-DNPRiQjf.cjs +0 -44
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ A host-managed session replaces `roomId` and `websocketUrl`. Without `collaborat
|
|
|
47
47
|
| `defaultViewMode` | `ViewMode` | Initial editor, preview, or split view. |
|
|
48
48
|
| `syncScroll` | `boolean` | Scrolls the preview with the editor. Defaults to `true`. |
|
|
49
49
|
| `previewDebounceMs` | `number` | Preview debounce. Automatic timing is 150ms for large documents, otherwise 0. |
|
|
50
|
-
| `locale` | `string` | `zh`
|
|
50
|
+
| `locale` | `string` | `zh`, `en`, `zh-Hant`, `ja`, `fr`, `ko`, `es`, `ru`. Omitted uses Simplified Chinese. Unknown codes use English. |
|
|
51
51
|
| `messages` | `EditorMessages` | Replaces individual catalog entries. |
|
|
52
52
|
| `title`, `className`, `height` | | Chrome and layout. `height` defaults to `100vh`. |
|
|
53
53
|
| `persistence`, `persistenceKey` | | Built-in IndexedDB for the demo transport. Leave them off for a host session. |
|
package/README.zh-CN.md
CHANGED
|
@@ -47,7 +47,7 @@ export function Markdown({ markdown }: { markdown: string }) {
|
|
|
47
47
|
| `defaultViewMode` | `ViewMode` | 初始的编辑、预览或分屏。 |
|
|
48
48
|
| `syncScroll` | `boolean` | 预览跟随编辑器滚动。默认 `true`。 |
|
|
49
49
|
| `previewDebounceMs` | `number` | 预览防抖。大文档自动为 150ms,否则为 0。 |
|
|
50
|
-
| `locale` | `string` | `zh`
|
|
50
|
+
| `locale` | `string` | `zh`, `en`, `zh-Hant`, `ja`, `fr`, `ko`, `es`, `ru`。缺省使用简体中文,未知代码使用英文。 |
|
|
51
51
|
| `messages` | `EditorMessages` | 替换单个文案。 |
|
|
52
52
|
| `title`、`className`、`height` | | 界面和布局。`height` 默认 `100vh`。 |
|
|
53
53
|
| `persistence`、`persistenceKey` | | 演示传输的 IndexedDB。宿主会话不要开启。 |
|