@licium/editor 3.2.3
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 +176 -0
- package/dist/esm/i18n/__test__/integration/ui/layout.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/integration/ui/toolbar.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/integration/vdom/render.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/integration/widget/widgetNode.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/convertor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/dom.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/editor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/eventEmitter.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/helper/common.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/helper/image.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/linkXss.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/keymap.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/mdCommand.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/mdEditor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/mdPreview.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/smartTask.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/syntaxHighlight.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/markdown/util.d.ts +7 -0
- package/dist/esm/i18n/__test__/unit/repro_3296.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/sanitizer.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/utils/escape.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/utils/pollution.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/vdom/template.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/viewer.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/customBlock.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/helper/pasteMsoList.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/imageInsertion.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/keymap.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/wwCommand.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/wwEditor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/wwTableCommand.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/wysiwyg/wwToDOMAdaptor.spec.d.ts +1 -0
- package/dist/esm/i18n/__test__/unit/xssSanitizer.spec.d.ts +1 -0
- package/dist/esm/i18n/ar.d.ts +1 -0
- package/dist/esm/i18n/ar.js +63 -0
- package/dist/esm/i18n/base.d.ts +60 -0
- package/dist/esm/i18n/commands/commandManager.d.ts +16 -0
- package/dist/esm/i18n/commands/defaultCommands.d.ts +2 -0
- package/dist/esm/i18n/commands/wwCommands.d.ts +2 -0
- package/dist/esm/i18n/convertors/convertor.d.ts +19 -0
- package/dist/esm/i18n/convertors/toMarkdown/toMdConvertorState.d.ts +30 -0
- package/dist/esm/i18n/convertors/toMarkdown/toMdConvertors.d.ts +7 -0
- package/dist/esm/i18n/convertors/toMarkdown/toMdNodeTypeWriters.d.ts +8 -0
- package/dist/esm/i18n/convertors/toWysiwyg/htmlToWwConvertors.d.ts +7 -0
- package/dist/esm/i18n/convertors/toWysiwyg/toWwConvertorState.d.ts +23 -0
- package/dist/esm/i18n/convertors/toWysiwyg/toWwConvertors.d.ts +4 -0
- package/dist/esm/i18n/cs-cz.d.ts +1 -0
- package/dist/esm/i18n/cs-cz.js +63 -0
- package/dist/esm/i18n/de-de.d.ts +1 -0
- package/dist/esm/i18n/de-de.js +63 -0
- package/dist/esm/i18n/editor.d.ts +36 -0
- package/dist/esm/i18n/editorCore.d.ts +330 -0
- package/dist/esm/i18n/en-us.d.ts +1 -0
- package/dist/esm/i18n/en-us.js +63 -0
- package/dist/esm/i18n/es-es.d.ts +1 -0
- package/dist/esm/i18n/es-es.js +63 -0
- package/dist/esm/i18n/esm/index.d.ts +5 -0
- package/dist/esm/i18n/esm/indexViewer.d.ts +2 -0
- package/dist/esm/i18n/event/eventEmitter.d.ts +73 -0
- package/dist/esm/i18n/fi-fi.d.ts +1 -0
- package/dist/esm/i18n/fi-fi.js +63 -0
- package/dist/esm/i18n/fr-fr.d.ts +1 -0
- package/dist/esm/i18n/fr-fr.js +63 -0
- package/dist/esm/i18n/gl-es.d.ts +5 -0
- package/dist/esm/i18n/gl-es.js +63 -0
- package/dist/esm/i18n/helper/image.d.ts +4 -0
- package/dist/esm/i18n/helper/manipulation.d.ts +16 -0
- package/dist/esm/i18n/helper/plugin.d.ts +3 -0
- package/dist/esm/i18n/hr-hr.d.ts +1 -0
- package/dist/esm/i18n/hr-hr.js +63 -0
- package/dist/esm/i18n/i18n.d.ts +20 -0
- package/dist/esm/i18n/i18n.js +217 -0
- package/dist/esm/i18n/index.d.ts +10 -0
- package/dist/esm/i18n/indexEditorOnlyStyle.d.ts +3 -0
- package/dist/esm/i18n/indexViewer.d.ts +3 -0
- package/dist/esm/i18n/it-it.d.ts +1 -0
- package/dist/esm/i18n/it-it.js +63 -0
- package/dist/esm/i18n/ja-jp.d.ts +1 -0
- package/dist/esm/i18n/ja-jp.js +63 -0
- package/dist/esm/i18n/ko-kr.d.ts +1 -0
- package/dist/esm/i18n/ko-kr.js +63 -0
- package/dist/esm/i18n/markdown/helper/list.d.ts +55 -0
- package/dist/esm/i18n/markdown/helper/mdCommand.d.ts +5 -0
- package/dist/esm/i18n/markdown/helper/pos.d.ts +22 -0
- package/dist/esm/i18n/markdown/helper/query.d.ts +3 -0
- package/dist/esm/i18n/markdown/htmlRenderConvertors.d.ts +5 -0
- package/dist/esm/i18n/markdown/marks/blockQuote.d.ts +19 -0
- package/dist/esm/i18n/markdown/marks/code.d.ts +25 -0
- package/dist/esm/i18n/markdown/marks/codeBlock.d.ts +18 -0
- package/dist/esm/i18n/markdown/marks/customBlock.d.ts +10 -0
- package/dist/esm/i18n/markdown/marks/emph.d.ts +17 -0
- package/dist/esm/i18n/markdown/marks/heading.d.ts +23 -0
- package/dist/esm/i18n/markdown/marks/html.d.ts +8 -0
- package/dist/esm/i18n/markdown/marks/link.d.ts +29 -0
- package/dist/esm/i18n/markdown/marks/listItem.d.ts +42 -0
- package/dist/esm/i18n/markdown/marks/simpleMark.d.ts +32 -0
- package/dist/esm/i18n/markdown/marks/strike.d.ts +14 -0
- package/dist/esm/i18n/markdown/marks/strong.d.ts +18 -0
- package/dist/esm/i18n/markdown/marks/table.d.ts +27 -0
- package/dist/esm/i18n/markdown/marks/thematicBreak.d.ts +17 -0
- package/dist/esm/i18n/markdown/mdEditor.d.ts +48 -0
- package/dist/esm/i18n/markdown/mdPreview.d.ts +50 -0
- package/dist/esm/i18n/markdown/nodes/doc.d.ts +7 -0
- package/dist/esm/i18n/markdown/nodes/paragraph.d.ts +46 -0
- package/dist/esm/i18n/markdown/nodes/text.d.ts +7 -0
- package/dist/esm/i18n/markdown/plugins/helper/markInfo.d.ts +19 -0
- package/dist/esm/i18n/markdown/plugins/previewHighlight.d.ts +3 -0
- package/dist/esm/i18n/markdown/plugins/smartTask.d.ts +3 -0
- package/dist/esm/i18n/markdown/plugins/syntaxHighlight.d.ts +3 -0
- package/dist/esm/i18n/markdown/scroll/animation.d.ts +2 -0
- package/dist/esm/i18n/markdown/scroll/dom.d.ts +16 -0
- package/dist/esm/i18n/markdown/scroll/offset.d.ts +9 -0
- package/dist/esm/i18n/markdown/scroll/scrollSync.d.ts +30 -0
- package/dist/esm/i18n/nb-no.d.ts +1 -0
- package/dist/esm/i18n/nb-no.js +63 -0
- package/dist/esm/i18n/nl-nl.d.ts +1 -0
- package/dist/esm/i18n/nl-nl.js +63 -0
- package/dist/esm/i18n/pl-pl.d.ts +1 -0
- package/dist/esm/i18n/pl-pl.js +63 -0
- package/dist/esm/i18n/plugins/dropImage.d.ts +3 -0
- package/dist/esm/i18n/plugins/placeholder.d.ts +7 -0
- package/dist/esm/i18n/plugins/popupWidget.d.ts +3 -0
- package/dist/esm/i18n/pt-br.d.ts +1 -0
- package/dist/esm/i18n/pt-br.js +63 -0
- package/dist/esm/i18n/queries/queryManager.d.ts +2 -0
- package/dist/esm/i18n/ru-ru.d.ts +1 -0
- package/dist/esm/i18n/ru-ru.js +64 -0
- package/dist/esm/i18n/sanitizer/htmlSanitizer.d.ts +3 -0
- package/dist/esm/i18n/spec/mark.d.ts +12 -0
- package/dist/esm/i18n/spec/node.d.ts +12 -0
- package/dist/esm/i18n/spec/specManager.d.ts +16 -0
- package/dist/esm/i18n/sv-se.d.ts +1 -0
- package/dist/esm/i18n/sv-se.js +63 -0
- package/dist/esm/i18n/tr-tr.d.ts +1 -0
- package/dist/esm/i18n/tr-tr.js +63 -0
- package/dist/esm/i18n/ui/components/contextMenu.d.ts +21 -0
- package/dist/esm/i18n/ui/components/layout.d.ts +36 -0
- package/dist/esm/i18n/ui/components/popup.d.ts +21 -0
- package/dist/esm/i18n/ui/components/switch.d.ts +17 -0
- package/dist/esm/i18n/ui/components/tabs.d.ts +12 -0
- package/dist/esm/i18n/ui/components/toolbar/customPopupBody.d.ts +16 -0
- package/dist/esm/i18n/ui/components/toolbar/headingPopupBody.d.ts +12 -0
- package/dist/esm/i18n/ui/components/toolbar/imagePopupBody.d.ts +30 -0
- package/dist/esm/i18n/ui/components/toolbar/linkPopupBody.d.ts +18 -0
- package/dist/esm/i18n/ui/components/toolbar/tablePopupBody.d.ts +29 -0
- package/dist/esm/i18n/ui/components/toolbar/toolbar.d.ts +45 -0
- package/dist/esm/i18n/ui/components/toolbar/toolbarGroup.d.ts +21 -0
- package/dist/esm/i18n/ui/toolbarItemFactory.d.ts +13 -0
- package/dist/esm/i18n/ui/vdom/commit.d.ts +2 -0
- package/dist/esm/i18n/ui/vdom/component.d.ts +10 -0
- package/dist/esm/i18n/ui/vdom/dom.d.ts +6 -0
- package/dist/esm/i18n/ui/vdom/render.d.ts +4 -0
- package/dist/esm/i18n/ui/vdom/renderer.d.ts +4 -0
- package/dist/esm/i18n/ui/vdom/template.d.ts +3 -0
- package/dist/esm/i18n/ui/vdom/vnode.d.ts +30 -0
- package/dist/esm/i18n/uk-ua.d.ts +1 -0
- package/dist/esm/i18n/uk-ua.js +63 -0
- package/dist/esm/i18n/utils/common.d.ts +19 -0
- package/dist/esm/i18n/utils/constants.d.ts +8 -0
- package/dist/esm/i18n/utils/dom.d.ts +25 -0
- package/dist/esm/i18n/utils/map.d.ts +19 -0
- package/dist/esm/i18n/utils/markdown.d.ts +23 -0
- package/dist/esm/i18n/viewer.d.ts +77 -0
- package/dist/esm/i18n/widget/rules.d.ts +28 -0
- package/dist/esm/i18n/widget/widgetNode.d.ts +28 -0
- package/dist/esm/i18n/wysiwyg/adaptor/mdLikeNode.d.ts +5 -0
- package/dist/esm/i18n/wysiwyg/adaptor/wwToDOMAdaptor.d.ts +13 -0
- package/dist/esm/i18n/wysiwyg/clipboard/paste.d.ts +6 -0
- package/dist/esm/i18n/wysiwyg/clipboard/pasteMsoList.d.ts +2 -0
- package/dist/esm/i18n/wysiwyg/clipboard/pasteTextParser.d.ts +2 -0
- package/dist/esm/i18n/wysiwyg/clipboard/pasteToTable.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/command/list.d.ts +7 -0
- package/dist/esm/i18n/wysiwyg/command/table.d.ts +16 -0
- package/dist/esm/i18n/wysiwyg/helper/node.d.ts +37 -0
- package/dist/esm/i18n/wysiwyg/helper/table.d.ts +25 -0
- package/dist/esm/i18n/wysiwyg/helper/tableOffsetMap.d.ts +88 -0
- package/dist/esm/i18n/wysiwyg/markdownInputRules.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/marks/code.d.ts +31 -0
- package/dist/esm/i18n/wysiwyg/marks/emph.d.ts +34 -0
- package/dist/esm/i18n/wysiwyg/marks/link.d.ts +59 -0
- package/dist/esm/i18n/wysiwyg/marks/strike.d.ts +31 -0
- package/dist/esm/i18n/wysiwyg/marks/strong.d.ts +34 -0
- package/dist/esm/i18n/wysiwyg/nodes/blockQuote.d.ts +33 -0
- package/dist/esm/i18n/wysiwyg/nodes/bulletList.d.ts +43 -0
- package/dist/esm/i18n/wysiwyg/nodes/codeBlock.d.ts +45 -0
- package/dist/esm/i18n/wysiwyg/nodes/customBlock.d.ts +26 -0
- package/dist/esm/i18n/wysiwyg/nodes/doc.d.ts +7 -0
- package/dist/esm/i18n/wysiwyg/nodes/frontMatter.d.ts +21 -0
- package/dist/esm/i18n/wysiwyg/nodes/hardBreak.d.ts +14 -0
- package/dist/esm/i18n/wysiwyg/nodes/heading.d.ts +38 -0
- package/dist/esm/i18n/wysiwyg/nodes/html.d.ts +11 -0
- package/dist/esm/i18n/wysiwyg/nodes/htmlComment.d.ts +21 -0
- package/dist/esm/i18n/wysiwyg/nodes/image.d.ts +45 -0
- package/dist/esm/i18n/wysiwyg/nodes/listItem.d.ts +36 -0
- package/dist/esm/i18n/wysiwyg/nodes/orderedList.d.ts +39 -0
- package/dist/esm/i18n/wysiwyg/nodes/paragraph.d.ts +21 -0
- package/dist/esm/i18n/wysiwyg/nodes/table.d.ts +80 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableBody.d.ts +26 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableBodyCell.d.ts +36 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableHead.d.ts +26 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableHeadCell.d.ts +39 -0
- package/dist/esm/i18n/wysiwyg/nodes/tableRow.d.ts +26 -0
- package/dist/esm/i18n/wysiwyg/nodes/text.d.ts +14 -0
- package/dist/esm/i18n/wysiwyg/nodes/thematicBreak.d.ts +33 -0
- package/dist/esm/i18n/wysiwyg/nodeview/codeBlockView.d.ts +29 -0
- package/dist/esm/i18n/wysiwyg/nodeview/customBlockView.d.ts +29 -0
- package/dist/esm/i18n/wysiwyg/nodeview/imageView.d.ts +20 -0
- package/dist/esm/i18n/wysiwyg/plugins/selection/cellSelection.d.ts +14 -0
- package/dist/esm/i18n/wysiwyg/plugins/selection/tableSelection.d.ts +2 -0
- package/dist/esm/i18n/wysiwyg/plugins/selection/tableSelectionView.d.ts +19 -0
- package/dist/esm/i18n/wysiwyg/plugins/tableContextMenu.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/plugins/task.d.ts +2 -0
- package/dist/esm/i18n/wysiwyg/plugins/toolbarState.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/specCreator.d.ts +3 -0
- package/dist/esm/i18n/wysiwyg/wwEditor.d.ts +57 -0
- package/dist/esm/i18n/zh-cn.d.ts +1 -0
- package/dist/esm/i18n/zh-cn.js +63 -0
- package/dist/esm/i18n/zh-tw.d.ts +1 -0
- package/dist/esm/i18n/zh-tw.js +63 -0
- package/dist/esm/index.js +25133 -0
- package/dist/esm/indexViewer.js +12757 -0
- package/dist/i18n/ar.js +162 -0
- package/dist/i18n/cs-cz.js +162 -0
- package/dist/i18n/de-de.js +162 -0
- package/dist/i18n/es-es.js +162 -0
- package/dist/i18n/fi-fi.js +162 -0
- package/dist/i18n/fr-fr.js +162 -0
- package/dist/i18n/gl-es.js +162 -0
- package/dist/i18n/hr-hr.js +162 -0
- package/dist/i18n/it-it.js +162 -0
- package/dist/i18n/ja-jp.js +162 -0
- package/dist/i18n/ko-kr.js +162 -0
- package/dist/i18n/nb-no.js +162 -0
- package/dist/i18n/nl-nl.js +162 -0
- package/dist/i18n/pl-pl.js +162 -0
- package/dist/i18n/pt-br.js +162 -0
- package/dist/i18n/ru-ru.js +163 -0
- package/dist/i18n/sv-se.js +162 -0
- package/dist/i18n/tr-tr.js +162 -0
- package/dist/i18n/uk-ua.js +162 -0
- package/dist/i18n/zh-cn.js +162 -0
- package/dist/i18n/zh-tw.js +162 -0
- package/dist/theme/toastui-editor-dark.css +474 -0
- package/dist/toastui-editor-only.css +1068 -0
- package/dist/toastui-editor-viewer.css +492 -0
- package/dist/toastui-editor-viewer.js +14079 -0
- package/dist/toastui-editor.css +1606 -0
- package/dist/toastui-editor.js +26464 -0
- package/package.json +95 -0
- package/types/convertor.d.ts +143 -0
- package/types/editor.d.ts +383 -0
- package/types/event.d.ts +56 -0
- package/types/index.d.ts +70 -0
- package/types/map.d.ts +8 -0
- package/types/markdown.d.ts +60 -0
- package/types/plugin.d.ts +59 -0
- package/types/prosemirror-commands.d.ts +15 -0
- package/types/prosemirror-model.d.ts +15 -0
- package/types/prosemirror-transform.d.ts +35 -0
- package/types/spec.d.ts +42 -0
- package/types/toastmark.d.ts +357 -0
- package/types/toastui-editor-viewer.d.ts +39 -0
- package/types/ui.d.ts +165 -0
- package/types/wysiwyg.d.ts +36 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @licium/editor : i18n
|
|
3
|
+
* @version 3.2.3 | Fri Jan 02 2026
|
|
4
|
+
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Editor from '@licium/editor';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @fileoverview I18N for Turkish
|
|
12
|
+
* @author Mesut Gölcük <mesutgolcuk@gmail.com>
|
|
13
|
+
*/
|
|
14
|
+
Editor.setLanguage(['tr', 'tr-TR'], {
|
|
15
|
+
Markdown: 'Markdown',
|
|
16
|
+
WYSIWYG: 'WYSIWYG',
|
|
17
|
+
Write: 'Düzenle',
|
|
18
|
+
Preview: 'Ön izleme',
|
|
19
|
+
Headings: 'Başlıklar',
|
|
20
|
+
Paragraph: 'Paragraf',
|
|
21
|
+
Bold: 'Kalın',
|
|
22
|
+
Italic: 'İtalik',
|
|
23
|
+
Strike: 'Altı çizgili',
|
|
24
|
+
Code: 'Satır içi kod',
|
|
25
|
+
Line: 'Çizgi',
|
|
26
|
+
Blockquote: 'Alıntı',
|
|
27
|
+
'Unordered list': 'Sıralanmamış liste',
|
|
28
|
+
'Ordered list': 'Sıralı liste',
|
|
29
|
+
Task: 'Görev kutusu',
|
|
30
|
+
Indent: 'Girintiyi arttır',
|
|
31
|
+
Outdent: 'Girintiyi azalt',
|
|
32
|
+
'Insert link': 'Bağlantı ekle',
|
|
33
|
+
'Insert CodeBlock': 'Kod bloku ekle',
|
|
34
|
+
'Insert table': 'Tablo ekle',
|
|
35
|
+
'Insert image': 'İmaj ekle',
|
|
36
|
+
Heading: 'Başlık',
|
|
37
|
+
'Image URL': 'İmaj URL',
|
|
38
|
+
'Select image file': 'İmaj dosyası seç',
|
|
39
|
+
'Choose a file': 'Bir dosya seçin',
|
|
40
|
+
'No file': 'Dosya yok',
|
|
41
|
+
Description: 'Açıklama',
|
|
42
|
+
OK: 'Onay',
|
|
43
|
+
More: 'Daha Fazla',
|
|
44
|
+
Cancel: 'İptal',
|
|
45
|
+
File: 'Dosya',
|
|
46
|
+
URL: 'URL',
|
|
47
|
+
'Link text': 'Bağlantı yazısı',
|
|
48
|
+
'Add row to up': 'Yukarı satır ekle',
|
|
49
|
+
'Add row to down': 'Aşağı satır ekle',
|
|
50
|
+
'Add column to left': 'Sola sütun ekleyin',
|
|
51
|
+
'Add column to right': 'Sağa sütun ekle',
|
|
52
|
+
'Remove row': 'Satır sil',
|
|
53
|
+
'Remove column': 'Sütun sil',
|
|
54
|
+
'Align column to left': 'Sola hizala',
|
|
55
|
+
'Align column to center': 'Merkeze hizala',
|
|
56
|
+
'Align column to right': 'Sağa hizala',
|
|
57
|
+
'Remove table': 'Tabloyu kaldır',
|
|
58
|
+
'Would you like to paste as table?': 'Tablo olarak yapıştırmak ister misiniz?',
|
|
59
|
+
'Text color': 'Metin rengi',
|
|
60
|
+
'Auto scroll enabled': 'Otomatik kaydırma açık',
|
|
61
|
+
'Auto scroll disabled': 'Otomatik kaydırma kapalı',
|
|
62
|
+
'Choose language': 'Dil seçiniz',
|
|
63
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ContextMenuItem, ExecCommand, Pos } from '@t/ui';
|
|
2
|
+
import { Emitter } from '@t/event';
|
|
3
|
+
import { Component } from '../vdom/component';
|
|
4
|
+
interface State {
|
|
5
|
+
pos: Pos | null;
|
|
6
|
+
menuGroups: ContextMenuItem[][];
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
eventEmitter: Emitter;
|
|
10
|
+
execCommand: ExecCommand;
|
|
11
|
+
}
|
|
12
|
+
export declare class ContextMenu extends Component<Props, State> {
|
|
13
|
+
constructor(props: Props);
|
|
14
|
+
addEvent(): void;
|
|
15
|
+
mounted(): void;
|
|
16
|
+
beforeDestroy(): void;
|
|
17
|
+
private handleClickDocument;
|
|
18
|
+
private getMenuGroupElements;
|
|
19
|
+
render(): import("../vdom/vnode").VNode;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EditorType, PreviewStyle } from '@t/editor';
|
|
2
|
+
import { Emitter } from '@t/event';
|
|
3
|
+
import { IndexList, ToolbarItem, ToolbarItemOptions } from '@t/ui';
|
|
4
|
+
import { Component } from '../vdom/component';
|
|
5
|
+
interface Props {
|
|
6
|
+
eventEmitter: Emitter;
|
|
7
|
+
hideModeSwitch: boolean;
|
|
8
|
+
slots: {
|
|
9
|
+
mdEditor: HTMLElement;
|
|
10
|
+
mdPreview: HTMLElement;
|
|
11
|
+
wwEditor: HTMLElement;
|
|
12
|
+
};
|
|
13
|
+
previewStyle: PreviewStyle;
|
|
14
|
+
editorType: EditorType;
|
|
15
|
+
toolbarItems: ToolbarItem[];
|
|
16
|
+
theme: string;
|
|
17
|
+
}
|
|
18
|
+
interface State {
|
|
19
|
+
editorType: EditorType;
|
|
20
|
+
previewStyle: PreviewStyle;
|
|
21
|
+
hide: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare class Layout extends Component<Props, State> {
|
|
24
|
+
private toolbar;
|
|
25
|
+
constructor(props: Props);
|
|
26
|
+
mounted(): void;
|
|
27
|
+
insertToolbarItem(indexList: IndexList, item: string | ToolbarItemOptions): void;
|
|
28
|
+
removeToolbarItem(name: string): void;
|
|
29
|
+
render(): import("../vdom/vnode").VNode;
|
|
30
|
+
addEvent(): void;
|
|
31
|
+
private changeMode;
|
|
32
|
+
private changePreviewStyle;
|
|
33
|
+
private hide;
|
|
34
|
+
private show;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ExecCommand, HidePopup, PopupInfo, Pos } from '@t/ui';
|
|
2
|
+
import { Emitter } from '@t/event';
|
|
3
|
+
import { Component } from '../vdom/component';
|
|
4
|
+
interface Props {
|
|
5
|
+
show: boolean;
|
|
6
|
+
info: PopupInfo;
|
|
7
|
+
eventEmitter: Emitter;
|
|
8
|
+
hidePopup: HidePopup;
|
|
9
|
+
execCommand: ExecCommand;
|
|
10
|
+
}
|
|
11
|
+
interface State {
|
|
12
|
+
popupPos: Pos | null;
|
|
13
|
+
}
|
|
14
|
+
export declare class Popup extends Component<Props, State> {
|
|
15
|
+
private handleMousedown;
|
|
16
|
+
mounted(): void;
|
|
17
|
+
beforeDestroy(): void;
|
|
18
|
+
updated(prevProps: Props): void;
|
|
19
|
+
render(): import("../vdom/vnode").VNode;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Emitter } from '@t/event';
|
|
2
|
+
import { EditorType } from '@t/editor';
|
|
3
|
+
import { Component } from '../vdom/component';
|
|
4
|
+
interface Props {
|
|
5
|
+
editorType: EditorType;
|
|
6
|
+
eventEmitter: Emitter;
|
|
7
|
+
}
|
|
8
|
+
interface State {
|
|
9
|
+
hide: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class Switch extends Component<Props, State> {
|
|
12
|
+
constructor(props: Props);
|
|
13
|
+
show(): void;
|
|
14
|
+
hide(): void;
|
|
15
|
+
render(): import("../vdom/vnode").VNode;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TabInfo } from '@t/ui';
|
|
2
|
+
import { Component } from '../vdom/component';
|
|
3
|
+
interface Props {
|
|
4
|
+
tabs: TabInfo[];
|
|
5
|
+
activeTab: string;
|
|
6
|
+
onClick: (ev: MouseEvent, activeTab: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class Tabs extends Component<Props> {
|
|
9
|
+
private toggleTab;
|
|
10
|
+
render(): import("../vdom/vnode").VNode;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ExecCommand, HidePopup } from '@t/ui';
|
|
2
|
+
import { Emitter } from '@t/event';
|
|
3
|
+
import { Component } from '@/ui/vdom/component';
|
|
4
|
+
interface Props {
|
|
5
|
+
body: HTMLElement;
|
|
6
|
+
show: boolean;
|
|
7
|
+
eventEmitter: Emitter;
|
|
8
|
+
execCommand: ExecCommand;
|
|
9
|
+
hidePopup: HidePopup;
|
|
10
|
+
}
|
|
11
|
+
export declare class CustomPopupBody extends Component<Props> {
|
|
12
|
+
mounted(): void;
|
|
13
|
+
updated(prevProps: Props): void;
|
|
14
|
+
render(): import("../../vdom/vnode").VNode;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Emitter } from '@t/event';
|
|
2
|
+
import { ExecCommand } from '@t/ui';
|
|
3
|
+
import { Component } from '@/ui/vdom/component';
|
|
4
|
+
interface Props {
|
|
5
|
+
eventEmitter: Emitter;
|
|
6
|
+
execCommand: ExecCommand;
|
|
7
|
+
}
|
|
8
|
+
export declare class HeadingPopupBody extends Component<Props> {
|
|
9
|
+
execCommand(ev: MouseEvent): void;
|
|
10
|
+
render(): import("../../vdom/vnode").VNode;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Emitter } from '@t/event';
|
|
2
|
+
import { ExecCommand, HidePopup } from '@t/ui';
|
|
3
|
+
import { Component } from '@/ui/vdom/component';
|
|
4
|
+
declare type TabType = 'url' | 'file';
|
|
5
|
+
interface Props {
|
|
6
|
+
show: boolean;
|
|
7
|
+
eventEmitter: Emitter;
|
|
8
|
+
execCommand: ExecCommand;
|
|
9
|
+
hidePopup: HidePopup;
|
|
10
|
+
}
|
|
11
|
+
interface State {
|
|
12
|
+
activeTab: TabType;
|
|
13
|
+
file: File | null;
|
|
14
|
+
fileNameElClassName: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class ImagePopupBody extends Component<Props, State> {
|
|
17
|
+
private tabs;
|
|
18
|
+
constructor(props: Props);
|
|
19
|
+
private initialize;
|
|
20
|
+
private emitAddImageBlob;
|
|
21
|
+
private emitAddImage;
|
|
22
|
+
private execCommand;
|
|
23
|
+
private toggleTab;
|
|
24
|
+
private showFileSelectBox;
|
|
25
|
+
private changeFile;
|
|
26
|
+
private preventSelectStart;
|
|
27
|
+
updated(): void;
|
|
28
|
+
render(): import("../../vdom/vnode").VNode;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Emitter } from '@t/event';
|
|
2
|
+
import { ExecCommand, HidePopup, PopupInitialValues } from '@t/ui';
|
|
3
|
+
import { Component } from '@/ui/vdom/component';
|
|
4
|
+
interface Props {
|
|
5
|
+
eventEmitter: Emitter;
|
|
6
|
+
execCommand: ExecCommand;
|
|
7
|
+
hidePopup: HidePopup;
|
|
8
|
+
show: boolean;
|
|
9
|
+
initialValues: PopupInitialValues;
|
|
10
|
+
}
|
|
11
|
+
export declare class LinkPopupBody extends Component<Props> {
|
|
12
|
+
private initialize;
|
|
13
|
+
private execCommand;
|
|
14
|
+
mounted(): void;
|
|
15
|
+
updated(prevProps: Props): void;
|
|
16
|
+
render(): import("../../vdom/vnode").VNode;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Emitter } from '@t/event';
|
|
2
|
+
import { ExecCommand } from '@t/ui';
|
|
3
|
+
import { Component } from '@/ui/vdom/component';
|
|
4
|
+
interface Range {
|
|
5
|
+
rowIdx: number;
|
|
6
|
+
colIdx: number;
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
eventEmitter: Emitter;
|
|
10
|
+
execCommand: ExecCommand;
|
|
11
|
+
show: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare type State = Range;
|
|
14
|
+
export declare class TablePopupBody extends Component<Props, State> {
|
|
15
|
+
private offsetRect;
|
|
16
|
+
constructor(props: Props);
|
|
17
|
+
private extendSelectionRange;
|
|
18
|
+
private execCommand;
|
|
19
|
+
private getDescription;
|
|
20
|
+
private getBoundByRange;
|
|
21
|
+
private getRangeByOffset;
|
|
22
|
+
private getTableRange;
|
|
23
|
+
private getSelectionAreaBound;
|
|
24
|
+
private getSelectionRangeByOffset;
|
|
25
|
+
updated(): void;
|
|
26
|
+
private createTableArea;
|
|
27
|
+
render(): import("../../vdom/vnode").VNode;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EditorType, PreviewStyle } from '@t/editor';
|
|
2
|
+
import { Emitter } from '@t/event';
|
|
3
|
+
import { IndexList, PopupInfo, ToolbarGroupInfo, ToolbarItem, ToolbarItemOptions } from '@t/ui';
|
|
4
|
+
import { Component } from '@/ui/vdom/component';
|
|
5
|
+
declare type TabType = 'write' | 'preview';
|
|
6
|
+
interface Props {
|
|
7
|
+
eventEmitter: Emitter;
|
|
8
|
+
previewStyle: PreviewStyle;
|
|
9
|
+
toolbarItems: ToolbarItem[];
|
|
10
|
+
editorType: EditorType;
|
|
11
|
+
}
|
|
12
|
+
interface State {
|
|
13
|
+
showPopup: boolean;
|
|
14
|
+
popupInfo: PopupInfo;
|
|
15
|
+
activeTab: TabType;
|
|
16
|
+
items: ToolbarGroupInfo[];
|
|
17
|
+
dropdownItems: ToolbarGroupInfo[];
|
|
18
|
+
}
|
|
19
|
+
export declare class Toolbar extends Component<Props, State> {
|
|
20
|
+
private tabs;
|
|
21
|
+
private itemWidthMap;
|
|
22
|
+
private tooltipRef;
|
|
23
|
+
private initialItems;
|
|
24
|
+
private resizeObserver;
|
|
25
|
+
private handleResize;
|
|
26
|
+
constructor(props: Props);
|
|
27
|
+
insertToolbarItem(indexList: IndexList, item: string | ToolbarItemOptions): void;
|
|
28
|
+
removeToolbarItem(name: string): void;
|
|
29
|
+
addEvent(): void;
|
|
30
|
+
private appendTooltipToRoot;
|
|
31
|
+
private hiddenScrollSync;
|
|
32
|
+
private toggleTab;
|
|
33
|
+
private setItemWidth;
|
|
34
|
+
private setPopupInfo;
|
|
35
|
+
private openPopup;
|
|
36
|
+
private hidePopup;
|
|
37
|
+
private execCommand;
|
|
38
|
+
private movePrevItemToDropdownToolbar;
|
|
39
|
+
private classifyToolbarItems;
|
|
40
|
+
mounted(): void;
|
|
41
|
+
updated(prevProps: Props): void;
|
|
42
|
+
beforeDestroy(): void;
|
|
43
|
+
render(): import("../../vdom/vnode").VNode;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ExecCommand, SetPopupInfo, ToolbarGroupInfo, SetItemWidth, GetBound, HideTooltip, ShowTooltip } from '@t/ui';
|
|
2
|
+
import { Emitter } from '@t/event';
|
|
3
|
+
import { Component } from '@/ui/vdom/component';
|
|
4
|
+
interface Props {
|
|
5
|
+
tooltipEl: HTMLElement;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
group: ToolbarGroupInfo;
|
|
8
|
+
hidden: boolean;
|
|
9
|
+
hiddenDivider: boolean;
|
|
10
|
+
eventEmitter: Emitter;
|
|
11
|
+
execCommand: ExecCommand;
|
|
12
|
+
setPopupInfo: SetPopupInfo;
|
|
13
|
+
showTooltip: ShowTooltip;
|
|
14
|
+
hideTooltip: HideTooltip;
|
|
15
|
+
getBound: GetBound;
|
|
16
|
+
setItemWidth?: SetItemWidth;
|
|
17
|
+
}
|
|
18
|
+
export declare class ToolbarGroup extends Component<Props> {
|
|
19
|
+
render(): import("../../vdom/vnode").VNode;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PopupInfo, PopupOptions, Pos, ToolbarGroupInfo, ToolbarItem, ToolbarItemInfo, ToolbarItemOptions, PopupInitialValues } from '@t/ui';
|
|
2
|
+
export declare function createToolbarItemInfo(type: string | ToolbarItemOptions): ToolbarItemInfo;
|
|
3
|
+
interface Payload {
|
|
4
|
+
el: HTMLElement;
|
|
5
|
+
pos: Pos;
|
|
6
|
+
popup?: PopupOptions;
|
|
7
|
+
initialValues?: PopupInitialValues;
|
|
8
|
+
}
|
|
9
|
+
export declare function createPopupInfo(type: string, payload: Payload): PopupInfo | null;
|
|
10
|
+
export declare function setGroupState(group: ToolbarGroupInfo): void;
|
|
11
|
+
export declare function groupToolbarItems(toolbarItems: ToolbarItem[], hiddenScrollSync: boolean): ToolbarGroupInfo[];
|
|
12
|
+
export declare function toggleScrollSync(toolbarItems: ToolbarGroupInfo[], hiddenScrollSync: boolean): void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component as IComponent, VNode } from '@t/ui';
|
|
2
|
+
export declare abstract class Component<T = {}, R = {}> implements IComponent<T, R> {
|
|
3
|
+
props: T;
|
|
4
|
+
state: R;
|
|
5
|
+
refs: Record<string, HTMLElement>;
|
|
6
|
+
vnode: VNode;
|
|
7
|
+
constructor(props: T);
|
|
8
|
+
setState(state: Partial<R>): void;
|
|
9
|
+
abstract render(): VNode;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VNode } from './vnode';
|
|
2
|
+
declare type Props = Record<string, any>;
|
|
3
|
+
export declare function createNode(vnode: VNode): Node;
|
|
4
|
+
export declare function removeNode(vnode: VNode, parentNode: Node): void;
|
|
5
|
+
export declare function innerDiff(node: Node, prevProps: Props, nextProps: Props): void;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component, ComponentClass } from '@t/ui';
|
|
2
|
+
declare class VNodeWalker {
|
|
3
|
+
current: VNode | null;
|
|
4
|
+
root: VNode | null;
|
|
5
|
+
entering: boolean;
|
|
6
|
+
constructor(current: VNode | null);
|
|
7
|
+
walk(): {
|
|
8
|
+
vnode: VNode;
|
|
9
|
+
entering: boolean;
|
|
10
|
+
} | null;
|
|
11
|
+
}
|
|
12
|
+
export declare class VNode {
|
|
13
|
+
static removalNodes: VNode[];
|
|
14
|
+
type: string | ComponentClass;
|
|
15
|
+
props: Record<string, any>;
|
|
16
|
+
children: VNode[];
|
|
17
|
+
parent: VNode | null;
|
|
18
|
+
old: VNode | null;
|
|
19
|
+
firstChild: VNode | null;
|
|
20
|
+
next: VNode | null;
|
|
21
|
+
ref?: (node: Node | Component) => void | Node | Component;
|
|
22
|
+
node: Node | null;
|
|
23
|
+
effect: 'A' | 'U' | 'D';
|
|
24
|
+
component?: Component;
|
|
25
|
+
key?: string;
|
|
26
|
+
skip: boolean;
|
|
27
|
+
constructor(type: string | ComponentClass, props: Record<string, any>, children: VNode[]);
|
|
28
|
+
walker(): VNodeWalker;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @licium/editor : i18n
|
|
3
|
+
* @version 3.2.3 | Fri Jan 02 2026
|
|
4
|
+
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Editor from '@licium/editor';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @fileoverview I18N for Ukrainian
|
|
12
|
+
* @author Nikolya <k_m_i@i.ua>
|
|
13
|
+
*/
|
|
14
|
+
Editor.setLanguage(['uk', 'uk-UA'], {
|
|
15
|
+
Markdown: 'Markdown',
|
|
16
|
+
WYSIWYG: 'WYSIWYG',
|
|
17
|
+
Write: 'Написати',
|
|
18
|
+
Preview: 'Попередній перегляд',
|
|
19
|
+
Headings: 'Заголовки',
|
|
20
|
+
Paragraph: 'Абзац',
|
|
21
|
+
Bold: 'Жирний',
|
|
22
|
+
Italic: 'Курсив',
|
|
23
|
+
Strike: 'Закреслений',
|
|
24
|
+
Code: 'Вбудований код',
|
|
25
|
+
Line: 'Лінія',
|
|
26
|
+
Blockquote: 'Блок цитування',
|
|
27
|
+
'Unordered list': 'Невпорядкований список',
|
|
28
|
+
'Ordered list': 'Упорядкований список',
|
|
29
|
+
Task: 'Завдання',
|
|
30
|
+
Indent: 'відступ',
|
|
31
|
+
Outdent: 'застарілий',
|
|
32
|
+
'Insert link': 'Вставити посилання',
|
|
33
|
+
'Insert CodeBlock': 'Вставити код',
|
|
34
|
+
'Insert table': 'Вставити таблицю',
|
|
35
|
+
'Insert image': 'Вставити зображення',
|
|
36
|
+
Heading: 'Заголовок',
|
|
37
|
+
'Image URL': 'URL зображення',
|
|
38
|
+
'Select image file': 'Вибрати файл зображення',
|
|
39
|
+
'Choose a file': 'Виберіть файл',
|
|
40
|
+
'No file': 'Немає файлу',
|
|
41
|
+
Description: 'Опис',
|
|
42
|
+
OK: 'OK',
|
|
43
|
+
More: 'ще',
|
|
44
|
+
Cancel: 'Скасувати',
|
|
45
|
+
File: 'Файл',
|
|
46
|
+
URL: 'URL',
|
|
47
|
+
'Link text': 'Текст посилання',
|
|
48
|
+
'Add row to up': 'Додати рядок вгору',
|
|
49
|
+
'Add row to down': 'Додати рядок вниз',
|
|
50
|
+
'Add column to left': 'Додайте стовпець зліва',
|
|
51
|
+
'Add column to right': 'Додайте стовпець праворуч',
|
|
52
|
+
'Remove row': 'Видалити ряд',
|
|
53
|
+
'Remove column': 'Видалити стовпчик',
|
|
54
|
+
'Align column to left': 'Вирівняти по лівому краю',
|
|
55
|
+
'Align column to center': 'Вирівняти по центру',
|
|
56
|
+
'Align column to right': 'Вирівняти по правому краю',
|
|
57
|
+
'Remove table': 'Видалити таблицю',
|
|
58
|
+
'Would you like to paste as table?': 'Ви хочете вставити у вигляді таблиці?',
|
|
59
|
+
'Text color': 'Колір тексту',
|
|
60
|
+
'Auto scroll enabled': 'Автоматична прокрутка включена',
|
|
61
|
+
'Auto scroll disabled': 'Автоматична прокрутка відключена',
|
|
62
|
+
'Choose language': 'Вибрати мову',
|
|
63
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LinkAttributeNames, LinkAttributes } from '@t/editor';
|
|
2
|
+
export declare const isMac: boolean;
|
|
3
|
+
export declare function escapeXml(text: string): string;
|
|
4
|
+
export declare function sendHostName(): void;
|
|
5
|
+
export declare function includes<T>(arr: T[], targetItem: T): boolean;
|
|
6
|
+
export declare function sanitizeLinkAttribute(attribute: LinkAttributes): Partial<Record<LinkAttributeNames, string>> | null;
|
|
7
|
+
export declare function repeat(text: string, count: number): string;
|
|
8
|
+
export declare function escapeTextForLink(text: string): string;
|
|
9
|
+
export declare function escape(text: string): string;
|
|
10
|
+
export declare function quote(text: string): string;
|
|
11
|
+
export declare function isNil(value: unknown): value is null | undefined;
|
|
12
|
+
export declare function shallowEqual(o1: Record<string, any> | null, o2: Record<string, any> | null): boolean;
|
|
13
|
+
export declare function last<T>(arr: T[]): T;
|
|
14
|
+
export declare function between(value: number, min: number, max: number): boolean;
|
|
15
|
+
export declare function deepMergedCopy<T1 extends Record<string, any>, T2 extends Record<string, any>>(targetObj: T1, obj: T2): T1 & T2;
|
|
16
|
+
export declare function deepCopyArray<T extends Array<any>>(items: T): T;
|
|
17
|
+
export declare function deepCopy<T extends Record<string, any>>(obj: T): T;
|
|
18
|
+
export declare function assign(targetObj: Record<string, any>, obj?: Record<string, any>): Record<string, any>;
|
|
19
|
+
export declare function getSortedNumPair(valueA: number, valueB: number): number[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ATTRIBUTE: string;
|
|
2
|
+
export declare const OPEN_TAG: string;
|
|
3
|
+
export declare const CLOSE_TAG: string;
|
|
4
|
+
export declare const HTML_TAG: string;
|
|
5
|
+
export declare const reHTMLTag: RegExp;
|
|
6
|
+
export declare const reBR: RegExp;
|
|
7
|
+
export declare const reHTMLComment: RegExp;
|
|
8
|
+
export declare const ALTERNATIVE_TAG_FOR_BR = "</p><p>";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare function isPositionInBox(style: CSSStyleDeclaration, offsetX: number, offsetY: number): boolean;
|
|
2
|
+
export declare function cls(...names: (string | [boolean, string])[]): string;
|
|
3
|
+
export declare function clsWithMdPrefix(...names: string[]): string;
|
|
4
|
+
export declare function isTextNode(node: Node): boolean;
|
|
5
|
+
export declare function isElemNode(node: Node): boolean;
|
|
6
|
+
export declare function findNodes(element: Element, selector: string): any;
|
|
7
|
+
export declare function appendNodes(node: Node, nodesToAppend: Node | Node[]): void;
|
|
8
|
+
export declare function insertBeforeNode(insertedNode: Node, node: Node): void;
|
|
9
|
+
export declare function removeNode(node: Node): void;
|
|
10
|
+
export declare function unwrapNode(node: Node): ChildNode[];
|
|
11
|
+
export declare function toggleClass(element: Element, className: string, state?: boolean): void;
|
|
12
|
+
export declare function createElementWith(contents: string | HTMLElement, target?: HTMLElement): ChildNode | null;
|
|
13
|
+
export declare function getOuterWidth(el: HTMLElement): number;
|
|
14
|
+
export declare function closest(node: Node, found: string | Node): Node | null;
|
|
15
|
+
export declare function getTotalOffset(el: HTMLElement, root: HTMLElement): {
|
|
16
|
+
offsetTop: number;
|
|
17
|
+
offsetLeft: number;
|
|
18
|
+
};
|
|
19
|
+
export declare function finalizeHtml(html: Element, needHtmlText: boolean): string | DocumentFragment;
|
|
20
|
+
export declare function empty(node: Node): void;
|
|
21
|
+
export declare function appendNode(node: Element, appended: string | ArrayLike<Element> | Element): void;
|
|
22
|
+
export declare function prependNode(node: Element, appended: string | ArrayLike<Element> | Element): void;
|
|
23
|
+
export declare function setAttributes(attributes: Record<string, any>, element: HTMLElement): void;
|
|
24
|
+
export declare function replaceBRWithEmptyBlock(html: string): string;
|
|
25
|
+
export declare function removeProseMirrorHackNodes(html: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Mapable } from '@t/map';
|
|
2
|
+
/**
|
|
3
|
+
* @class
|
|
4
|
+
* @ignore
|
|
5
|
+
* @classdesc ES6 Map
|
|
6
|
+
*/
|
|
7
|
+
declare class Map<K, V> implements Mapable<K, V> {
|
|
8
|
+
private keys;
|
|
9
|
+
private values;
|
|
10
|
+
constructor();
|
|
11
|
+
private getKeyIndex;
|
|
12
|
+
get(key: K): V;
|
|
13
|
+
set(key: K, value: V): this;
|
|
14
|
+
has(key: K): boolean;
|
|
15
|
+
delete(key: K): boolean;
|
|
16
|
+
forEach(callback: (value: V, key: K, map: Mapable<K, V>) => void, thisArg?: this): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
}
|
|
19
|
+
export default Map;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CodeBlockMdNode, CustomBlockMdNode, ListItemMdNode, MdNode, MdNodeType, TableCellMdNode, MdPos } from '@licium/toastmark';
|
|
2
|
+
export declare function hasSpecificTypeAncestor(mdNode: MdNode, ...types: MdNodeType[]): boolean;
|
|
3
|
+
export declare function getMdStartLine(mdNode: MdNode): number;
|
|
4
|
+
export declare function getMdEndLine(mdNode: MdNode): number;
|
|
5
|
+
export declare function getMdStartCh(mdNode: MdNode): number;
|
|
6
|
+
export declare function getMdEndCh(mdNode: MdNode): number;
|
|
7
|
+
export declare function isMultiLineNode(mdNode: MdNode): boolean;
|
|
8
|
+
export declare function isHTMLNode(mdNode: MdNode): boolean;
|
|
9
|
+
export declare function isStyledInlineNode(mdNode: MdNode): boolean;
|
|
10
|
+
export declare function isCodeBlockNode(mdNode: MdNode): mdNode is CodeBlockMdNode;
|
|
11
|
+
export declare function isCustomBlockNode(mdNode: MdNode): mdNode is CustomBlockMdNode;
|
|
12
|
+
export declare function isListNode(mdNode: MdNode): mdNode is ListItemMdNode;
|
|
13
|
+
export declare function isOrderedListNode(mdNode: MdNode): mdNode is ListItemMdNode;
|
|
14
|
+
export declare function isBulletListNode(mdNode: MdNode): mdNode is ListItemMdNode;
|
|
15
|
+
export declare function isTableCellNode(mdNode: MdNode): mdNode is TableCellMdNode;
|
|
16
|
+
export declare function isInlineNode(mdNode: MdNode): boolean;
|
|
17
|
+
export declare function findClosestNode(mdNode: MdNode, condition: (targetMdNode: MdNode) => boolean, includeSelf?: boolean): MdNode | null;
|
|
18
|
+
export declare function traverseParentNodes(mdNode: MdNode, iteratee: (targetNode: MdNode) => void, includeSelf?: boolean): void;
|
|
19
|
+
export declare function addOffsetPos(originPos: MdPos, offset: number): MdPos;
|
|
20
|
+
export declare function setOffsetPos(originPos: MdPos, newOffset: number): MdPos;
|
|
21
|
+
export declare function getInlineMarkdownText(mdNode: MdNode): string | null;
|
|
22
|
+
export declare function isContainer(node: MdNode): boolean;
|
|
23
|
+
export declare function getChildrenText(node: MdNode): string;
|