cosey 0.9.5 → 0.10.1
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/components/audio-card/audio-card.js +1 -1
- package/components/close/close.js +1 -1
- package/components/col/col.api.d.ts +1 -1
- package/components/context-menu/content.js +1 -1
- package/components/dnd-sort/dnd-sort-item.js +1 -1
- package/components/editor/button-group.d.ts +2 -0
- package/components/editor/button-group.js +20 -0
- package/components/editor/button-select.d.ts +14 -0
- package/components/editor/button-select.js +51 -0
- package/components/editor/button-split.d.ts +25 -0
- package/components/editor/button-split.js +68 -0
- package/components/editor/button.d.ts +19 -0
- package/components/editor/button.js +40 -0
- package/components/editor/contents/content-code-block.d.ts +18 -0
- package/components/editor/contents/content-code-block.js +51 -0
- package/components/editor/contents/content-formula.d.ts +12 -0
- package/components/editor/contents/content-formula.js +48 -0
- package/components/editor/contents/content-formula.style.js +14 -0
- package/components/editor/contents/content-image.d.ts +29 -0
- package/components/editor/contents/content-image.js +89 -0
- package/components/editor/{components/list/list.style.d.ts → contents/content-image.style.d.ts} +1 -1
- package/components/editor/contents/content-image.style.js +20 -0
- package/components/editor/contents/content-link.d.ts +16 -0
- package/components/editor/contents/content-link.js +74 -0
- package/components/editor/contents/content-link.stye.d.ts +4 -0
- package/components/editor/contents/content-link.stye.js +17 -0
- package/components/editor/contents/content-list-item.d.ts +21 -0
- package/components/editor/contents/content-list-item.js +41 -0
- package/components/editor/contents/content-list-item.style.d.ts +4 -0
- package/components/editor/contents/content-list-item.style.js +52 -0
- package/components/editor/contents/content-placeholder.d.ts +2 -0
- package/components/editor/contents/content-placeholder.js +24 -0
- package/components/editor/contents/content-placeholder.style.d.ts +4 -0
- package/components/editor/contents/content-placeholder.style.js +19 -0
- package/components/editor/contents/content-table.d.ts +2 -0
- package/components/editor/contents/content-table.js +133 -0
- package/components/editor/contents/content-table.style.d.ts +4 -0
- package/components/editor/contents/content-table.style.js +21 -0
- package/components/editor/contents/content-video.d.ts +26 -0
- package/components/editor/contents/content-video.js +73 -0
- package/components/editor/contents/content-video.style.d.ts +4 -0
- package/components/editor/contents/content-video.style.js +20 -0
- package/components/editor/contents/resize.d.ts +37 -0
- package/components/editor/contents/resize.js +133 -0
- package/components/editor/{components/resize → contents}/resize.style.d.ts +1 -1
- package/components/editor/{components/resize → contents}/resize.style.js +14 -34
- package/components/editor/contents/upload.d.ts +17 -0
- package/components/editor/contents/upload.js +80 -0
- package/components/editor/contents/upload.style.d.ts +4 -0
- package/components/editor/contents/upload.style.js +38 -0
- package/components/editor/contents/widget-popover.d.ts +389 -0
- package/components/editor/contents/widget-popover.js +36 -0
- package/components/editor/contents/widget-popover.style.d.ts +4 -0
- package/components/editor/contents/widget-popover.style.js +15 -0
- package/components/editor/editor.api.d.ts +14 -6
- package/components/editor/editor.api.js +10 -6
- package/components/editor/editor.d.ts +15 -8
- package/components/editor/editor.js +178 -76
- package/components/editor/editor.style.d.ts +5 -1
- package/components/editor/editor.style.js +121 -253
- package/components/editor/{components/color-picker/color-picker.js → formats/color-picker.api.js} +3 -3
- package/components/editor/formats/color-picker.d.ts +20 -0
- package/components/editor/formats/color-picker.js +154 -0
- package/components/editor/{components/color-picker → formats}/color-picker.style.d.ts +1 -1
- package/components/editor/{components/color-picker → formats}/color-picker.style.js +1 -1
- package/components/editor/formats/format-align.d.ts +22 -0
- package/components/editor/formats/format-align.js +38 -0
- package/components/editor/formats/format-background.d.ts +2 -0
- package/components/editor/formats/format-background.js +60 -0
- package/components/editor/formats/format-block-quote.d.ts +2 -0
- package/components/editor/formats/format-block-quote.js +27 -0
- package/components/editor/formats/format-clear.d.ts +2 -0
- package/components/editor/formats/format-clear.js +25 -0
- package/components/editor/formats/format-code-block.d.ts +2 -0
- package/components/editor/formats/format-code-block.js +27 -0
- package/components/editor/formats/format-color.d.ts +2 -0
- package/components/editor/formats/format-color.js +59 -0
- package/components/editor/formats/format-font.d.ts +2 -0
- package/components/editor/formats/format-font.js +46 -0
- package/components/editor/formats/format-formula.d.ts +2 -0
- package/components/editor/formats/format-formula.js +133 -0
- package/components/editor/formats/format-heading.d.ts +2 -0
- package/components/editor/formats/format-heading.js +52 -0
- package/components/editor/formats/format-image.d.ts +2 -0
- package/components/editor/formats/format-image.js +140 -0
- package/components/editor/formats/format-indent.d.ts +20 -0
- package/components/editor/formats/format-indent.js +35 -0
- package/components/editor/formats/format-link.d.ts +2 -0
- package/components/editor/formats/format-link.js +114 -0
- package/components/editor/formats/format-list.d.ts +22 -0
- package/components/editor/formats/format-list.js +39 -0
- package/components/editor/formats/format-mark.d.ts +20 -0
- package/components/editor/formats/format-mark.js +38 -0
- package/components/editor/formats/format-size-delta.d.ts +24 -0
- package/components/editor/formats/format-size-delta.js +43 -0
- package/components/editor/formats/format-size.d.ts +2 -0
- package/components/editor/formats/format-size.js +51 -0
- package/components/editor/formats/format-source.d.ts +2 -0
- package/components/editor/formats/format-source.js +69 -0
- package/components/editor/formats/format-table.d.ts +2 -0
- package/components/editor/formats/format-table.js +85 -0
- package/components/editor/formats/format-table.style.d.ts +4 -0
- package/components/editor/{components/toolbar/formats/table.style.js → formats/format-table.style.js} +2 -2
- package/components/editor/formats/format-video.d.ts +2 -0
- package/components/editor/formats/format-video.js +117 -0
- package/components/editor/formats/picker.d.ts +45 -0
- package/components/editor/formats/picker.js +91 -0
- package/components/editor/{components/picker → formats}/picker.style.d.ts +1 -1
- package/components/editor/{components/picker → formats}/picker.style.js +1 -1
- package/components/editor/formats/select-list.d.ts +28 -0
- package/components/editor/formats/select-list.js +47 -0
- package/components/editor/formats/select-list.style.d.ts +4 -0
- package/components/editor/{components/list/list.style.js → formats/select-list.style.js} +2 -2
- package/components/editor/formats/select.d.ts +32 -0
- package/components/editor/formats/select.js +61 -0
- package/components/editor/hooks/useBlockValueActive.d.ts +1 -0
- package/components/editor/hooks/useBlockValueActive.js +21 -0
- package/components/editor/hooks/useFocus.d.ts +5 -0
- package/components/editor/hooks/useFocus.js +18 -0
- package/components/editor/{components/color-picker → hooks}/useHistoryColor.js +1 -1
- package/components/editor/hooks/useMarkActive.d.ts +1 -0
- package/components/editor/hooks/useMarkActive.js +13 -0
- package/components/editor/hooks/useMarkValue.d.ts +1 -0
- package/components/editor/hooks/useMarkValue.js +21 -0
- package/components/editor/index.d.ts +25 -13
- package/components/editor/index.js +3 -21
- package/components/editor/plugins/align.d.ts +8 -0
- package/components/editor/plugins/align.js +13 -0
- package/components/editor/plugins/background.d.ts +7 -0
- package/components/editor/plugins/background.js +19 -0
- package/components/editor/plugins/block-quote.d.ts +8 -0
- package/components/editor/plugins/block-quote.js +34 -0
- package/components/editor/plugins/clear.d.ts +7 -0
- package/components/editor/plugins/clear.js +53 -0
- package/components/editor/plugins/code-block.d.ts +13 -0
- package/components/editor/plugins/code-block.js +356 -0
- package/components/editor/plugins/color.d.ts +7 -0
- package/components/editor/plugins/color.js +21 -0
- package/components/editor/plugins/font.d.ts +7 -0
- package/components/editor/plugins/font.js +17 -0
- package/components/editor/plugins/formula.d.ts +11 -0
- package/components/editor/{components/toolbar/formats → plugins}/formula.js +50 -1
- package/components/editor/plugins/heading.d.ts +9 -0
- package/components/editor/plugins/heading.js +70 -0
- package/components/editor/plugins/html.d.ts +7 -0
- package/components/editor/plugins/html.js +30 -0
- package/components/editor/plugins/image.d.ts +8 -0
- package/components/editor/plugins/image.js +63 -0
- package/components/editor/plugins/indent.d.ts +7 -0
- package/components/editor/plugins/indent.js +47 -0
- package/components/editor/plugins/index.d.ts +2 -0
- package/components/editor/plugins/index.js +50 -0
- package/components/editor/plugins/keyboard.d.ts +41 -0
- package/components/editor/plugins/keyboard.js +120 -0
- package/components/editor/plugins/link.d.ts +8 -0
- package/components/editor/plugins/link.js +56 -0
- package/components/editor/plugins/list/deserialize.d.ts +3 -0
- package/components/editor/plugins/list/deserialize.js +106 -0
- package/components/editor/plugins/list/format.d.ts +3 -0
- package/components/editor/plugins/list/format.js +155 -0
- package/components/editor/plugins/list/indent.d.ts +2 -0
- package/components/editor/plugins/list/indent.js +38 -0
- package/components/editor/plugins/list/index.d.ts +10 -0
- package/components/editor/plugins/list/index.js +61 -0
- package/components/editor/plugins/list/insert-break.d.ts +2 -0
- package/components/editor/plugins/list/insert-break.js +19 -0
- package/components/editor/plugins/list/normalize.d.ts +3 -0
- package/components/editor/plugins/list/normalize.js +168 -0
- package/components/editor/plugins/list/serialize.d.ts +3 -0
- package/components/editor/plugins/list/serialize.js +63 -0
- package/components/editor/plugins/list/utils.d.ts +6 -0
- package/components/editor/plugins/list/utils.js +24 -0
- package/components/editor/plugins/mark.d.ts +7 -0
- package/components/editor/plugins/mark.js +27 -0
- package/components/editor/plugins/render.d.ts +11 -0
- package/components/editor/plugins/render.js +54 -0
- package/components/editor/plugins/serialize.d.ts +10 -0
- package/components/editor/plugins/serialize.js +342 -0
- package/components/editor/plugins/size.d.ts +8 -0
- package/components/editor/plugins/size.js +47 -0
- package/components/editor/plugins/table.d.ts +21 -0
- package/components/editor/plugins/table.js +702 -0
- package/components/editor/plugins/video.d.ts +8 -0
- package/components/editor/plugins/video.js +40 -0
- package/components/editor/toolbar.d.ts +2 -0
- package/components/editor/toolbar.js +20 -0
- package/components/editor/types.d.ts +194 -0
- package/components/editor/types.js +55 -0
- package/components/editor/usePopoverContainer.d.ts +8 -0
- package/components/editor/usePopoverContainer.js +31 -0
- package/components/editor/utils.d.ts +77 -0
- package/components/editor/utils.js +165 -0
- package/components/field/components/checkbox-group/checkbox-group.vue.js +1 -1
- package/components/field/components/editor/editor.d.ts +16 -0
- package/components/field/components/editor/editor.vue.d.ts +4 -0
- package/components/field/components/editor/editor.vue.js +21 -0
- package/components/field/components/password/password.vue.js +1 -1
- package/components/field/components/select/select.vue.js +1 -1
- package/components/field/field.api.d.ts +3 -0
- package/components/field/field.api.js +18 -16
- package/components/file-card/file-card.js +1 -1
- package/components/form/form-item.vue.js +2 -2
- package/components/form/form.api.d.ts +3 -3
- package/components/form/form.api.js +1 -1
- package/components/form/form.d.ts +6 -6
- package/components/form/index.d.ts +17 -17
- package/components/form/useBubbleTemplate.js +1 -1
- package/components/form-dialog/form-dialog.api.js +1 -1
- package/components/form-dialog/form-dialog.d.ts +5 -5
- package/components/form-drawer/form-drawer.d.ts +5 -5
- package/components/form-drawer/index.d.ts +15 -15
- package/components/form-group/form-group.js +1 -1
- package/components/form-list/index.d.ts +5 -5
- package/components/form-query/form-query.d.ts +5 -5
- package/components/form-query/form-query.js +1 -1
- package/components/form-query/index.d.ts +15 -15
- package/components/highlight/highlight.api.d.ts +30 -12
- package/components/highlight/highlight.api.js +3 -19
- package/components/highlight/highlight.d.ts +7 -3
- package/components/highlight/highlight.js +6 -6
- package/components/highlight/highlight.style.d.ts +1 -0
- package/components/highlight/highlight.style.js +288 -54
- package/components/highlight/index.d.ts +15 -6
- package/components/highlight/index.js +1 -1
- package/components/icon/icon.api.d.ts +11 -0
- package/components/icon/icon.api.js +10 -0
- package/components/icon/icon.d.ts +16 -5
- package/components/icon/icon.js +59 -0
- package/components/icon/icon.style.d.ts +4 -0
- package/components/icon/{style/index.js → icon.style.js} +1 -1
- package/components/icon/index.d.ts +24 -7
- package/components/icon/index.js +2 -1
- package/components/iconify-icon/iconify-icon.api.d.ts +15 -0
- package/components/iconify-icon/iconify-icon.api.js +20 -0
- package/components/iconify-icon/iconify-icon.d.ts +21 -6
- package/components/iconify-icon/iconify-icon.js +22 -8
- package/components/iconify-icon/index.d.ts +37 -4
- package/components/iconify-icon/index.js +2 -2
- package/components/index.d.ts +1 -0
- package/components/index.js +5 -4
- package/components/input-number-range/index.d.ts +39 -30
- package/components/input-number-range/input-number-range.api.d.ts +10 -10
- package/components/input-number-range/input-number-range.d.ts +23 -20
- package/components/input-number-range/input-number-range.js +1 -1
- package/components/snug-menu/snug-menu-item.vue.js +2 -2
- package/components/stack-dialog/index.d.ts +3 -3
- package/components/stack-dialog/stack-dialog.d.ts +1 -1
- package/components/svg-icon/index.d.ts +16 -4
- package/components/svg-icon/index.js +2 -1
- package/components/svg-icon/svg-icon.api.d.ts +7 -0
- package/components/svg-icon/svg-icon.api.js +7 -0
- package/components/svg-icon/svg-icon.d.ts +10 -3
- package/components/svg-icon/svg-icon.js +18 -0
- package/components/table/index.d.ts +12 -12
- package/components/table/table-column/table-column.js +1 -1
- package/components/table/table-export/table-export.d.ts +5 -5
- package/components/table/table-query/table-query.d.ts +5 -5
- package/components/table/table.d.ts +5 -5
- package/components/table/table.js +1 -1
- package/components/table/table.vue.d.ts +7 -7
- package/components/table/table.vue.js +5 -5
- package/components/table-action/item.js +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/upload/index.d.ts +3 -4
- package/components/upload/index.js +0 -1
- package/components/upload/upload-item.js +1 -1
- package/components/upload/upload.api.d.ts +2 -2
- package/components/upload/upload.d.ts +2 -2
- package/components/upload/upload.js +4 -4
- package/components/video-card/video-card.js +1 -1
- package/config/root-config-provider.js +2 -2
- package/{components/upload-context.d.ts → config/upload.d.ts} +2 -2
- package/{components/upload-context.js → config/upload.js} +3 -3
- package/hooks/index.d.ts +2 -0
- package/hooks/index.js +2 -0
- package/hooks/useObjectUrl.d.ts +2 -0
- package/hooks/useObjectUrl.js +27 -0
- package/hooks/useSingleUpload.d.ts +15 -0
- package/hooks/useSingleUpload.js +64 -0
- package/layout/layout-menu/style/index.js +1 -1
- package/locale/lang/ar.d.ts +2 -0
- package/locale/lang/ar.js +3 -1
- package/locale/lang/en.d.ts +2 -0
- package/locale/lang/en.js +3 -1
- package/locale/lang/zh-cn.d.ts +2 -0
- package/locale/lang/zh-cn.js +3 -1
- package/package.json +11 -7
- package/utils/array.d.ts +1 -1
- package/utils/browser.d.ts +1 -0
- package/utils/browser.js +3 -2
- package/utils/file.d.ts +5 -0
- package/utils/file.js +24 -1
- package/utils/index.js +2 -2
- package/utils/url.d.ts +4 -0
- package/utils/url.js +10 -0
- package/components/editor/components/button-group.vue.d.ts +0 -12
- package/components/editor/components/button-group.vue.js +0 -19
- package/components/editor/components/button.vue.d.ts +0 -17
- package/components/editor/components/button.vue.js +0 -35
- package/components/editor/components/color-picker/color-picker.vue.d.ts +0 -23
- package/components/editor/components/color-picker/color-picker.vue.js +0 -181
- package/components/editor/components/list/list.d.ts +0 -6
- package/components/editor/components/list/list.vue.d.ts +0 -11
- package/components/editor/components/list/list.vue.js +0 -51
- package/components/editor/components/picker/picker.vue.d.ts +0 -25
- package/components/editor/components/picker/picker.vue.js +0 -95
- package/components/editor/components/resize/resize.d.ts +0 -23
- package/components/editor/components/resize/resize.js +0 -88
- package/components/editor/components/resize/resize.vue.d.ts +0 -2
- package/components/editor/components/resize/resize.vue.js +0 -204
- package/components/editor/components/select-button.vue.d.ts +0 -15
- package/components/editor/components/select-button.vue.js +0 -46
- package/components/editor/components/select.vue.d.ts +0 -14
- package/components/editor/components/select.vue.js +0 -67
- package/components/editor/components/split-button.vue.d.ts +0 -22
- package/components/editor/components/split-button.vue.js +0 -69
- package/components/editor/components/table-toolbar/table-toolbar.style.d.ts +0 -4
- package/components/editor/components/table-toolbar/table-toolbar.style.js +0 -22
- package/components/editor/components/table-toolbar/table-toolbar.vue.d.ts +0 -2
- package/components/editor/components/table-toolbar/table-toolbar.vue.js +0 -182
- package/components/editor/components/toolbar/formats/align.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/align.vue.js +0 -52
- package/components/editor/components/toolbar/formats/background.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/background.vue.js +0 -70
- package/components/editor/components/toolbar/formats/blockquote.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/blockquote.vue.js +0 -39
- package/components/editor/components/toolbar/formats/bold.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/bold.vue.js +0 -39
- package/components/editor/components/toolbar/formats/clean.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/clean.vue.js +0 -26
- package/components/editor/components/toolbar/formats/code-block.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/code-block.vue.js +0 -39
- package/components/editor/components/toolbar/formats/code.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/code.vue.js +0 -39
- package/components/editor/components/toolbar/formats/color.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/color.vue.js +0 -69
- package/components/editor/components/toolbar/formats/font.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/font.vue.js +0 -59
- package/components/editor/components/toolbar/formats/formula.d.ts +0 -4
- package/components/editor/components/toolbar/formats/formula.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/formula.vue.js +0 -154
- package/components/editor/components/toolbar/formats/header.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/header.vue.js +0 -68
- package/components/editor/components/toolbar/formats/image.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/image.vue.js +0 -26
- package/components/editor/components/toolbar/formats/indent.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/indent.vue.js +0 -36
- package/components/editor/components/toolbar/formats/italic.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/italic.vue.js +0 -39
- package/components/editor/components/toolbar/formats/link.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/link.vue.js +0 -218
- package/components/editor/components/toolbar/formats/list.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/list.vue.js +0 -50
- package/components/editor/components/toolbar/formats/script.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/script.vue.js +0 -50
- package/components/editor/components/toolbar/formats/size-delta.vue.d.ts +0 -5
- package/components/editor/components/toolbar/formats/size-delta.vue.js +0 -79
- package/components/editor/components/toolbar/formats/size.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/size.vue.js +0 -56
- package/components/editor/components/toolbar/formats/source.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/source.vue.js +0 -78
- package/components/editor/components/toolbar/formats/strike.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/strike.vue.js +0 -39
- package/components/editor/components/toolbar/formats/strikethrough.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/strikethrough.vue.js +0 -39
- package/components/editor/components/toolbar/formats/table.style.d.ts +0 -4
- package/components/editor/components/toolbar/formats/table.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/table.vue.js +0 -100
- package/components/editor/components/toolbar/formats/underline.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/underline.vue.js +0 -39
- package/components/editor/components/toolbar/formats/video.vue.d.ts +0 -2
- package/components/editor/components/toolbar/formats/video.vue.js +0 -123
- package/components/editor/components/toolbar/toolbar.d.ts +0 -36
- package/components/editor/components/toolbar/toolbar.js +0 -137
- package/components/editor/components/toolbar/toolbar.vue.d.ts +0 -3
- package/components/editor/components/toolbar/toolbar.vue.js +0 -130
- package/components/editor/components/toolbar/toolbarContext.d.ts +0 -8
- package/components/editor/components/toolbar/toolbarContext.js +0 -3
- package/components/editor/formats/align.d.ts +0 -2
- package/components/editor/formats/align.js +0 -6
- package/components/editor/formats/font.d.ts +0 -7
- package/components/editor/formats/font.js +0 -36
- package/components/editor/formats/formula.d.ts +0 -9
- package/components/editor/formats/formula.js +0 -29
- package/components/editor/formats/image.d.ts +0 -13
- package/components/editor/formats/image.js +0 -46
- package/components/editor/formats/indent.d.ts +0 -10
- package/components/editor/formats/indent.js +0 -37
- package/components/editor/formats/kbd.d.ts +0 -7
- package/components/editor/formats/kbd.js +0 -13
- package/components/editor/formats/link.d.ts +0 -28
- package/components/editor/formats/link.js +0 -51
- package/components/editor/formats/list.d.ts +0 -13
- package/components/editor/formats/list.js +0 -57
- package/components/editor/formats/size.d.ts +0 -3
- package/components/editor/formats/size.js +0 -9
- package/components/editor/formats/video.d.ts +0 -16
- package/components/editor/formats/video.js +0 -44
- package/components/editor/modules/custom-list.d.ts +0 -5
- package/components/editor/modules/custom-list.js +0 -23
- package/components/editor/modules/image-uploader/formats/image-loading.d.ts +0 -16
- package/components/editor/modules/image-uploader/formats/image-loading.js +0 -31
- package/components/editor/modules/image-uploader/formats/image-loading.style.d.ts +0 -2
- package/components/editor/modules/image-uploader/formats/image-loading.style.js +0 -46
- package/components/editor/modules/image-uploader/image-uploader.d.ts +0 -18
- package/components/editor/modules/image-uploader/image-uploader.js +0 -134
- package/components/editor/modules/syntax/index.d.ts +0 -2
- package/components/editor/modules/syntax/index.js +0 -1
- package/components/editor/modules/syntax/syntaxOptions.d.ts +0 -8
- package/components/editor/modules/syntax/syntaxOptions.js +0 -23
- package/components/editor/quill.d.ts +0 -1
- package/components/editor/quill.js +0 -33
- package/components/editor/quillContext.d.ts +0 -6
- package/components/editor/quillContext.js +0 -3
- package/components/icon/icon.vue.d.ts +0 -13
- package/components/icon/icon.vue.js +0 -76
- package/components/iconify-icon/iconify-icon.vue.d.ts +0 -3
- package/components/iconify-icon/iconify-icon.vue.js +0 -38
- package/components/svg-icon/svg-icon.vue.d.ts +0 -3
- package/components/svg-icon/svg-icon.vue.js +0 -29
- /package/components/{icon/style/index.d.ts → editor/contents/content-formula.style.d.ts} +0 -0
- /package/components/editor/{components/color-picker/color-picker.d.ts → formats/color-picker.api.d.ts} +0 -0
- /package/components/editor/{components/picker/picker.d.ts → formats/picker.api.d.ts} +0 -0
- /package/components/editor/{components/picker/picker.js → formats/picker.api.js} +0 -0
- /package/components/editor/{components/color-picker → hooks}/useHistoryColor.d.ts +0 -0
- /package/components/{editor/components/list/list.js → field/components/editor/editor.js} +0 -0
|
@@ -1,20 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import type { ExtractPropTypes, PropType, SlotsType } from 'vue';
|
|
2
|
+
import Prism from 'prismjs';
|
|
3
|
+
import 'prismjs';
|
|
4
|
+
import 'prismjs/components/prism-scss';
|
|
5
|
+
import 'prismjs/components/prism-sass';
|
|
6
|
+
import 'prismjs/components/prism-less';
|
|
7
|
+
import 'prismjs/components/prism-jsx';
|
|
8
|
+
import 'prismjs/components/prism-typescript';
|
|
9
|
+
import 'prismjs/components/prism-tsx';
|
|
10
|
+
import 'prismjs/components/prism-json';
|
|
11
|
+
import 'prismjs/components/prism-json5';
|
|
12
|
+
import 'prismjs/components/prism-markdown';
|
|
13
|
+
import 'prismjs/components/prism-bash';
|
|
14
|
+
import 'prismjs/components/prism-nginx';
|
|
15
|
+
import 'prismjs/components/prism-markup-templating';
|
|
16
|
+
import 'prismjs/components/prism-php';
|
|
17
|
+
import 'prismjs/components/prism-java';
|
|
18
|
+
import 'prismjs/components/prism-sql';
|
|
19
|
+
export { Prism };
|
|
20
|
+
type LangText = 'plain' | 'plaintext' | 'text' | 'txt';
|
|
21
|
+
type LangXml = 'markup' | 'html' | 'mathml' | 'svg' | 'xml' | 'ssml' | 'atom' | 'rss';
|
|
22
|
+
type LangCss = 'css' | 'less' | 'sass' | 'scss';
|
|
23
|
+
type LangJs = 'javascript' | 'js' | 'typescript' | 'ts' | 'jsx' | 'tsx';
|
|
24
|
+
type LangJson = 'json' | 'json5';
|
|
25
|
+
type LangMd = 'markdown' | 'md';
|
|
26
|
+
type LangBash = 'bash' | 'sh' | 'shell';
|
|
27
|
+
type LangPython = 'python' | 'py';
|
|
28
|
+
type Lang = LangText | LangXml | LangCss | LangJs | 'clike' | LangJson | LangMd | LangBash | 'nginx' | 'php' | 'java' | 'sql' | LangPython;
|
|
12
29
|
export declare const highlightProps: {
|
|
13
30
|
code: {
|
|
14
31
|
type: StringConstructor;
|
|
15
32
|
};
|
|
16
33
|
lang: {
|
|
17
|
-
type: PropType<
|
|
34
|
+
type: PropType<Lang | (string & {})>;
|
|
35
|
+
default: string;
|
|
18
36
|
};
|
|
19
37
|
maxHeight: {
|
|
20
38
|
type: StringConstructor;
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as hljs } from 'highlight.js/lib/core';
|
|
3
|
-
import typescript from 'highlight.js/lib/languages/typescript';
|
|
4
|
-
import javascript from 'highlight.js/lib/languages/javascript';
|
|
5
|
-
import json from 'highlight.js/lib/languages/json';
|
|
6
|
-
import plaintext from 'highlight.js/lib/languages/plaintext';
|
|
7
|
-
import xml from 'highlight.js/lib/languages/xml';
|
|
8
|
-
import css from 'highlight.js/lib/languages/css';
|
|
9
|
-
import scss from 'highlight.js/lib/languages/scss';
|
|
10
|
-
import less from 'highlight.js/lib/languages/less';
|
|
1
|
+
export { default as Prism } from 'prismjs';
|
|
11
2
|
|
|
12
|
-
hljs.registerLanguage("typescript", typescript);
|
|
13
|
-
hljs.registerLanguage("javascript", javascript);
|
|
14
|
-
hljs.registerLanguage("json", json);
|
|
15
|
-
hljs.registerLanguage("plaintext", plaintext);
|
|
16
|
-
hljs.registerLanguage("xml", xml);
|
|
17
|
-
hljs.registerLanguage("css", css);
|
|
18
|
-
hljs.registerLanguage("scss", scss);
|
|
19
|
-
hljs.registerLanguage("less", less);
|
|
20
3
|
const highlightProps = {
|
|
21
4
|
code: {
|
|
22
5
|
type: String
|
|
23
6
|
},
|
|
24
7
|
lang: {
|
|
25
|
-
type: String
|
|
8
|
+
type: String,
|
|
9
|
+
default: "text"
|
|
26
10
|
},
|
|
27
11
|
maxHeight: {
|
|
28
12
|
type: String
|
|
@@ -3,7 +3,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
};
|
|
5
5
|
lang: {
|
|
6
|
-
type: import("vue").PropType<("
|
|
6
|
+
type: import("vue").PropType<("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx") | (string & {})>;
|
|
7
|
+
default: string;
|
|
7
8
|
};
|
|
8
9
|
maxHeight: {
|
|
9
10
|
type: StringConstructor;
|
|
@@ -13,10 +14,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13
14
|
type: StringConstructor;
|
|
14
15
|
};
|
|
15
16
|
lang: {
|
|
16
|
-
type: import("vue").PropType<("
|
|
17
|
+
type: import("vue").PropType<("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx") | (string & {})>;
|
|
18
|
+
default: string;
|
|
17
19
|
};
|
|
18
20
|
maxHeight: {
|
|
19
21
|
type: StringConstructor;
|
|
20
22
|
};
|
|
21
|
-
}>> & Readonly<{}>, {
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
lang: (string & {}) | ("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx");
|
|
25
|
+
}, import("vue").SlotsType<import("./highlight.api").HighlightSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
26
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, computed, createVNode } from 'vue';
|
|
2
2
|
import { ElScrollbar } from 'element-plus';
|
|
3
3
|
import { highlightSlots, highlightProps } from './highlight.api.js';
|
|
4
|
-
import stdin_default$1 from './highlight.style.js';
|
|
4
|
+
import stdin_default$1, { useGlobalHighlightStyle } from './highlight.style.js';
|
|
5
5
|
import stdin_default$2 from '../copy/copy.js';
|
|
6
6
|
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
7
|
-
import
|
|
7
|
+
import Prism from 'prismjs';
|
|
8
8
|
|
|
9
9
|
var stdin_default = defineComponent({
|
|
10
10
|
name: "CoHighlight",
|
|
@@ -17,19 +17,19 @@ var stdin_default = defineComponent({
|
|
|
17
17
|
const {
|
|
18
18
|
hashId
|
|
19
19
|
} = stdin_default$1(prefixCls);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}).value);
|
|
20
|
+
useGlobalHighlightStyle();
|
|
21
|
+
const highlightedCode = computed(() => Prism.highlight(props.code || "", Prism.languages[props.lang] || Prism.languages["text"], props.lang));
|
|
23
22
|
return () => {
|
|
24
23
|
return createVNode("div", {
|
|
25
24
|
"class": [hashId.value, prefixCls.value]
|
|
26
25
|
}, [createVNode(ElScrollbar, {
|
|
27
26
|
"tag": "pre",
|
|
28
27
|
"class": `${prefixCls.value}-scroll`,
|
|
29
|
-
"view-class":
|
|
28
|
+
"view-class": `language-${props.lang}`,
|
|
30
29
|
"maxHeight": props.maxHeight
|
|
31
30
|
}, {
|
|
32
31
|
default: () => [createVNode("code", {
|
|
32
|
+
"class": `language-${props.lang}`,
|
|
33
33
|
"innerHTML": highlightedCode.value
|
|
34
34
|
}, null)]
|
|
35
35
|
}), createVNode("div", {
|
|
@@ -5,3 +5,4 @@ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string
|
|
|
5
5
|
hashId: import("vue").Ref<string, string>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
|
+
export declare const useGlobalHighlightStyle: (themeManager?: import("../theme/theme-context").ThemeManager) => void;
|
|
@@ -1,86 +1,318 @@
|
|
|
1
|
+
import { getGlobalStyleHook } from '../theme/getGlobalStyleHook.js';
|
|
1
2
|
import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
|
|
2
3
|
|
|
3
4
|
function getHljsDark() {
|
|
4
5
|
return {
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
'pre[class*="language-"], code[class*="language-"]': {
|
|
7
|
+
display: "block",
|
|
8
|
+
color: "#d4d4d4",
|
|
9
|
+
fontSize: "13px",
|
|
10
|
+
textShadow: "none",
|
|
11
|
+
fontFamily: 'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',
|
|
12
|
+
direction: "ltr",
|
|
13
|
+
textAlign: "left",
|
|
14
|
+
whiteSpace: "pre",
|
|
15
|
+
wordSpacing: "normal",
|
|
16
|
+
wordBreak: "normal",
|
|
17
|
+
lineHeight: 1.5,
|
|
18
|
+
mozTabSize: 4,
|
|
19
|
+
oTabSize: 4,
|
|
20
|
+
tabSize: 4,
|
|
21
|
+
webkitHyphens: "none",
|
|
22
|
+
mozHyphens: "none",
|
|
23
|
+
msHyphens: "none",
|
|
24
|
+
hyphens: "none"
|
|
8
25
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
26
|
+
'pre[class*="language-"]::selection, code[class*="language-"]::selection, pre[class*="language-"] *::selection, code[class*="language-"] *::selection': {
|
|
27
|
+
textShadow: "none",
|
|
28
|
+
background: "#264F78"
|
|
12
29
|
},
|
|
13
|
-
"
|
|
14
|
-
|
|
30
|
+
"@media print": {
|
|
31
|
+
'pre[class*="language-"], code[class*="language-"]': {
|
|
32
|
+
textShadow: "none"
|
|
33
|
+
}
|
|
15
34
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
35
|
+
'pre[class*="language-"]': {
|
|
36
|
+
padding: "1em",
|
|
37
|
+
overflow: "auto",
|
|
38
|
+
background: "#1e1e1e"
|
|
18
39
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
40
|
+
':not(pre) > code[class*="language-"]': {
|
|
41
|
+
borderRadius: ".3em",
|
|
42
|
+
color: "#db4c69",
|
|
43
|
+
background: "#1e1e1e"
|
|
21
44
|
},
|
|
22
|
-
".
|
|
23
|
-
|
|
45
|
+
".namespace": {
|
|
46
|
+
opacity: 0.7
|
|
24
47
|
},
|
|
25
|
-
".
|
|
26
|
-
color: "#
|
|
48
|
+
".token.doctype .token.doctype-tag": {
|
|
49
|
+
color: "#569CD6"
|
|
27
50
|
},
|
|
28
|
-
".
|
|
29
|
-
color: "#
|
|
51
|
+
".token.doctype .token.name": {
|
|
52
|
+
color: "#9cdcfe"
|
|
30
53
|
},
|
|
31
|
-
".
|
|
32
|
-
color: "#
|
|
54
|
+
".token.comment, .token.prolog": {
|
|
55
|
+
color: "#6a9955"
|
|
33
56
|
},
|
|
34
|
-
".
|
|
35
|
-
|
|
57
|
+
".token.punctuation, .language-html .language-css .token.punctuation, .language-html .language-javascript .token.punctuation": {
|
|
58
|
+
color: "#d4d4d4"
|
|
36
59
|
},
|
|
37
|
-
".
|
|
38
|
-
|
|
60
|
+
".token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.inserted, .token.unit": {
|
|
61
|
+
color: "#b5cea8"
|
|
62
|
+
},
|
|
63
|
+
".token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.deleted": {
|
|
64
|
+
color: "#ce9178"
|
|
39
65
|
},
|
|
40
|
-
".
|
|
66
|
+
".language-css .token.string.url": {
|
|
41
67
|
textDecoration: "underline"
|
|
68
|
+
},
|
|
69
|
+
".token.operator, .token.entity": {
|
|
70
|
+
color: "#d4d4d4"
|
|
71
|
+
},
|
|
72
|
+
".token.operator.arrow": {
|
|
73
|
+
color: "#569CD6"
|
|
74
|
+
},
|
|
75
|
+
".token.atrule": {
|
|
76
|
+
color: "#ce9178"
|
|
77
|
+
},
|
|
78
|
+
".token.atrule .token.rule": {
|
|
79
|
+
color: "#c586c0"
|
|
80
|
+
},
|
|
81
|
+
".token.atrule .token.url": {
|
|
82
|
+
color: "#9cdcfe"
|
|
83
|
+
},
|
|
84
|
+
".token.atrule .token.url .token.function": {
|
|
85
|
+
color: "#dcdcaa"
|
|
86
|
+
},
|
|
87
|
+
".token.atrule .token.url .token.punctuation": {
|
|
88
|
+
color: "#d4d4d4"
|
|
89
|
+
},
|
|
90
|
+
".token.keyword": {
|
|
91
|
+
color: "#569CD6"
|
|
92
|
+
},
|
|
93
|
+
".token.keyword.module, .token.keyword.control-flow": {
|
|
94
|
+
color: "#c586c0"
|
|
95
|
+
},
|
|
96
|
+
".token.function, .token.function .token.maybe-class-name": {
|
|
97
|
+
color: "#dcdcaa"
|
|
98
|
+
},
|
|
99
|
+
".token.regex": {
|
|
100
|
+
color: "#d16969"
|
|
101
|
+
},
|
|
102
|
+
".token.important": {
|
|
103
|
+
color: "#569cd6"
|
|
104
|
+
},
|
|
105
|
+
".token.italic": {
|
|
106
|
+
fontStyle: "italic"
|
|
107
|
+
},
|
|
108
|
+
".token.constant": {
|
|
109
|
+
color: "#9cdcfe"
|
|
110
|
+
},
|
|
111
|
+
".token.class-name, .token.maybe-class-name": {
|
|
112
|
+
color: "#4ec9b0"
|
|
113
|
+
},
|
|
114
|
+
".token.console": {
|
|
115
|
+
color: "#9cdcfe"
|
|
116
|
+
},
|
|
117
|
+
".token.parameter": {
|
|
118
|
+
color: "#9cdcfe"
|
|
119
|
+
},
|
|
120
|
+
".token.interpolation": {
|
|
121
|
+
color: "#9cdcfe"
|
|
122
|
+
},
|
|
123
|
+
".token.punctuation.interpolation-punctuation": {
|
|
124
|
+
color: "#569cd6"
|
|
125
|
+
},
|
|
126
|
+
".token.boolean": {
|
|
127
|
+
color: "#569cd6"
|
|
128
|
+
},
|
|
129
|
+
".token.property, .token.variable, .token.imports .token.maybe-class-name, .token.exports .token.maybe-class-name": {
|
|
130
|
+
color: "#9cdcfe"
|
|
131
|
+
},
|
|
132
|
+
".token.selector": {
|
|
133
|
+
color: "#d7ba7d"
|
|
134
|
+
},
|
|
135
|
+
".token.escape": {
|
|
136
|
+
color: "#d7ba7d"
|
|
137
|
+
},
|
|
138
|
+
".token.tag": {
|
|
139
|
+
color: "#569cd6"
|
|
140
|
+
},
|
|
141
|
+
".token.tag .token.punctuation": {
|
|
142
|
+
color: "#808080"
|
|
143
|
+
},
|
|
144
|
+
".token.cdata": {
|
|
145
|
+
color: "#808080"
|
|
146
|
+
},
|
|
147
|
+
".token.attr-name": {
|
|
148
|
+
color: "#9cdcfe"
|
|
149
|
+
},
|
|
150
|
+
".token.attr-value, .token.attr-value .token.punctuation": {
|
|
151
|
+
color: "#ce9178"
|
|
152
|
+
},
|
|
153
|
+
".token.attr-value .token.punctuation.attr-equals": {
|
|
154
|
+
color: "#d4d4d4"
|
|
155
|
+
},
|
|
156
|
+
".token.entity": {
|
|
157
|
+
color: "#569cd6"
|
|
158
|
+
},
|
|
159
|
+
".token.namespace": {
|
|
160
|
+
color: "#4ec9b0"
|
|
161
|
+
},
|
|
162
|
+
'pre[class*="language-javascript"], code[class*="language-javascript"], pre[class*="language-jsx"], code[class*="language-jsx"], pre[class*="language-typescript"], code[class*="language-typescript"], pre[class*="language-tsx"], code[class*="language-tsx"]': {
|
|
163
|
+
color: "#9cdcfe"
|
|
164
|
+
},
|
|
165
|
+
'pre[class*="language-css"], code[class*="language-css"]': {
|
|
166
|
+
color: "#ce9178"
|
|
167
|
+
},
|
|
168
|
+
'pre[class*="language-html"], code[class*="language-html"]': {
|
|
169
|
+
color: "#d4d4d4"
|
|
170
|
+
},
|
|
171
|
+
".language-regex .token.anchor": {
|
|
172
|
+
color: "#dcdcaa"
|
|
173
|
+
},
|
|
174
|
+
".language-html .token.punctuation": {
|
|
175
|
+
color: "#808080"
|
|
176
|
+
},
|
|
177
|
+
'pre[class*="language-"] > code[class*="language-"]': {
|
|
178
|
+
position: "relative",
|
|
179
|
+
zIndex: 1
|
|
180
|
+
},
|
|
181
|
+
".line-highlight.line-highlight": {
|
|
182
|
+
background: "#f7ebc6",
|
|
183
|
+
boxShadow: "inset 5px 0 0 #f7d87c",
|
|
184
|
+
zIndex: 0
|
|
42
185
|
}
|
|
43
186
|
};
|
|
44
187
|
}
|
|
45
188
|
function getHljsLight() {
|
|
46
189
|
return {
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
background: "
|
|
190
|
+
'code[class*="language-"], pre[class*="language-"]': {
|
|
191
|
+
display: "block",
|
|
192
|
+
background: "hsl(230, 1%, 98%)",
|
|
193
|
+
color: "hsl(230, 8%, 24%)",
|
|
194
|
+
fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
|
|
195
|
+
direction: "ltr",
|
|
196
|
+
textAlign: "left",
|
|
197
|
+
whiteSpace: "pre",
|
|
198
|
+
wordSpacing: "normal",
|
|
199
|
+
wordBreak: "normal",
|
|
200
|
+
lineHeight: 1.5,
|
|
201
|
+
mozTabSize: 2,
|
|
202
|
+
oTabSize: 2,
|
|
203
|
+
tabSize: 2,
|
|
204
|
+
webkitHyphens: "none",
|
|
205
|
+
mozHyphens: "none",
|
|
206
|
+
msHyphens: "none",
|
|
207
|
+
hyphens: "none"
|
|
50
208
|
},
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
209
|
+
'code[class*="language-"]::-moz-selection, code[class*="language-"] *::-moz-selection, pre[class*="language-"] *::-moz-selection': {
|
|
210
|
+
background: "hsl(230, 1%, 90%)",
|
|
211
|
+
color: "inherit"
|
|
212
|
+
},
|
|
213
|
+
'code[class*="language-"]::selection, code[class*="language-"] *::selection, pre[class*="language-"] *::selection': {
|
|
214
|
+
background: "hsl(230, 1%, 90%)",
|
|
215
|
+
color: "inherit"
|
|
216
|
+
},
|
|
217
|
+
'pre[class*="language-"]': {
|
|
218
|
+
padding: "1em",
|
|
219
|
+
overflow: "auto",
|
|
220
|
+
borderRadius: "0.3em"
|
|
221
|
+
},
|
|
222
|
+
':not(pre) > code[class*="language-"]': {
|
|
223
|
+
borderRadius: "0.3em",
|
|
224
|
+
whiteSpace: "normal"
|
|
225
|
+
},
|
|
226
|
+
".token.comment, .token.prolog, .token.cdata": {
|
|
227
|
+
color: "hsl(230, 4%, 64%)"
|
|
228
|
+
},
|
|
229
|
+
".token.doctype, .token.punctuation, .token.entity": {
|
|
230
|
+
color: "hsl(230, 8%, 24%)"
|
|
231
|
+
},
|
|
232
|
+
".token.attr-name, .token.class-name, .token.boolean, .token.constant, .token.number, .token.atrule": {
|
|
233
|
+
color: "hsl(35, 99%, 36%)"
|
|
234
|
+
},
|
|
235
|
+
".token.keyword": {
|
|
236
|
+
color: "hsl(301, 63%, 40%)"
|
|
237
|
+
},
|
|
238
|
+
".token.property, .token.tag, .token.symbol, .token.deleted, .token.important": {
|
|
239
|
+
color: "hsl(5, 74%, 59%)"
|
|
240
|
+
},
|
|
241
|
+
".token.selector, .token.string, .token.char, .token.builtin, .token.inserted, .token.regex, .token.attr-value, .token.attr-value > .token.punctuation": {
|
|
242
|
+
color: "hsl(119, 34%, 47%)"
|
|
243
|
+
},
|
|
244
|
+
".token.variable, .token.operator, .token.function": {
|
|
245
|
+
color: "hsl(221, 87%, 60%)"
|
|
246
|
+
},
|
|
247
|
+
".token.url": {
|
|
248
|
+
color: "hsl(198, 99%, 37%)"
|
|
54
249
|
},
|
|
55
|
-
".
|
|
56
|
-
color: "
|
|
250
|
+
".token.attr-value > .token.punctuation.attr-equals, .token.special-attr > .token.attr-value > .token.value.css": {
|
|
251
|
+
color: "hsl(230, 8%, 24%)"
|
|
57
252
|
},
|
|
58
|
-
".
|
|
59
|
-
color: "
|
|
253
|
+
".language-css .token.selector": {
|
|
254
|
+
color: "hsl(5, 74%, 59%)"
|
|
60
255
|
},
|
|
61
|
-
".
|
|
62
|
-
color: "
|
|
256
|
+
".language-css .token.property": {
|
|
257
|
+
color: "hsl(230, 8%, 24%)"
|
|
63
258
|
},
|
|
64
|
-
".
|
|
65
|
-
color: "
|
|
259
|
+
".language-css .token.function, .language-css .token.url > .token.function": {
|
|
260
|
+
color: "hsl(198, 99%, 37%)"
|
|
66
261
|
},
|
|
67
|
-
".
|
|
68
|
-
color: "
|
|
262
|
+
".language-css .token.url > .token.string.url": {
|
|
263
|
+
color: "hsl(119, 34%, 47%)"
|
|
69
264
|
},
|
|
70
|
-
".
|
|
71
|
-
color: "
|
|
265
|
+
".language-css .token.important, .language-css .token.atrule .token.rule": {
|
|
266
|
+
color: "hsl(301, 63%, 40%)"
|
|
72
267
|
},
|
|
73
|
-
".
|
|
74
|
-
color: "
|
|
268
|
+
".language-javascript .token.operator": {
|
|
269
|
+
color: "hsl(301, 63%, 40%)"
|
|
75
270
|
},
|
|
76
|
-
".
|
|
271
|
+
".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": {
|
|
272
|
+
color: "hsl(344, 84%, 43%)"
|
|
273
|
+
},
|
|
274
|
+
".language-json .token.operator": {
|
|
275
|
+
color: "hsl(230, 8%, 24%)"
|
|
276
|
+
},
|
|
277
|
+
".language-json .token.null.keyword": {
|
|
278
|
+
color: "hsl(35, 99%, 36%)"
|
|
279
|
+
},
|
|
280
|
+
".language-markdown .token.url, .language-markdown .token.url > .token.operator, .language-markdown .token.url-reference.url > .token.string": {
|
|
281
|
+
color: "hsl(230, 8%, 24%)"
|
|
282
|
+
},
|
|
283
|
+
".language-markdown .token.url > .token.content": {
|
|
284
|
+
color: "hsl(221, 87%, 60%)"
|
|
285
|
+
},
|
|
286
|
+
".language-markdown .token.url > .token.url, .language-markdown .token.url-reference.url": {
|
|
287
|
+
color: "hsl(198, 99%, 37%)"
|
|
288
|
+
},
|
|
289
|
+
".language-markdown .token.blockquote.punctuation, .language-markdown .token.hr.punctuation": {
|
|
290
|
+
color: "hsl(230, 4%, 64%)",
|
|
77
291
|
fontStyle: "italic"
|
|
78
292
|
},
|
|
79
|
-
".
|
|
293
|
+
".language-markdown .token.code-snippet": {
|
|
294
|
+
color: "hsl(119, 34%, 47%)"
|
|
295
|
+
},
|
|
296
|
+
".language-markdown .token.bold .token.content": {
|
|
297
|
+
color: "hsl(35, 99%, 36%)"
|
|
298
|
+
},
|
|
299
|
+
".language-markdown .token.italic .token.content": {
|
|
300
|
+
color: "hsl(301, 63%, 40%)"
|
|
301
|
+
},
|
|
302
|
+
".language-markdown .token.strike .token.content, .language-markdown .token.strike .token.punctuation, .language-markdown .token.list.punctuation, .language-markdown .token.title.important > .token.punctuation": {
|
|
303
|
+
color: "hsl(5, 74%, 59%)"
|
|
304
|
+
},
|
|
305
|
+
".token.bold": {
|
|
80
306
|
fontWeight: "bold"
|
|
81
307
|
},
|
|
82
|
-
".
|
|
83
|
-
|
|
308
|
+
".token.comment, .token.italic": {
|
|
309
|
+
fontStyle: "italic"
|
|
310
|
+
},
|
|
311
|
+
".token.entity": {
|
|
312
|
+
cursor: "help"
|
|
313
|
+
},
|
|
314
|
+
".token.namespace": {
|
|
315
|
+
opacity: 0.8
|
|
84
316
|
}
|
|
85
317
|
};
|
|
86
318
|
}
|
|
@@ -102,13 +334,15 @@ var stdin_default = getSimpleStyleHook("CoHighlight", (token) => {
|
|
|
102
334
|
insetBlockStart: token.sizeXXS,
|
|
103
335
|
insetInlineEnd: token.sizeXXS,
|
|
104
336
|
zIndex: 10
|
|
105
|
-
},
|
|
106
|
-
...getHljsLight(),
|
|
107
|
-
":root.dark &": {
|
|
108
|
-
...getHljsDark()
|
|
109
337
|
}
|
|
110
338
|
}
|
|
111
339
|
};
|
|
112
340
|
});
|
|
341
|
+
const useGlobalHighlightStyle = getGlobalStyleHook("CoGlobalHighlight", () => {
|
|
342
|
+
return {
|
|
343
|
+
":root.dark": getHljsDark(),
|
|
344
|
+
":root:not(.dark)": getHljsLight()
|
|
345
|
+
};
|
|
346
|
+
});
|
|
113
347
|
|
|
114
|
-
export { stdin_default as default, getHljsDark, getHljsLight };
|
|
348
|
+
export { stdin_default as default, getHljsDark, getHljsLight, useGlobalHighlightStyle };
|
|
@@ -5,12 +5,15 @@ declare const _Highlight: {
|
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
};
|
|
7
7
|
lang: {
|
|
8
|
-
type: import("vue").PropType<("
|
|
8
|
+
type: import("vue").PropType<("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx") | (string & {})>;
|
|
9
|
+
default: string;
|
|
9
10
|
};
|
|
10
11
|
maxHeight: {
|
|
11
12
|
type: StringConstructor;
|
|
12
13
|
};
|
|
13
|
-
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
14
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
15
|
+
lang: (string & {}) | ("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx");
|
|
16
|
+
}, true, {}, import("vue").SlotsType<import("./highlight.api").HighlightSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
14
17
|
P: {};
|
|
15
18
|
B: {};
|
|
16
19
|
D: {};
|
|
@@ -22,12 +25,15 @@ declare const _Highlight: {
|
|
|
22
25
|
type: StringConstructor;
|
|
23
26
|
};
|
|
24
27
|
lang: {
|
|
25
|
-
type: import("vue").PropType<("
|
|
28
|
+
type: import("vue").PropType<("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx") | (string & {})>;
|
|
29
|
+
default: string;
|
|
26
30
|
};
|
|
27
31
|
maxHeight: {
|
|
28
32
|
type: StringConstructor;
|
|
29
33
|
};
|
|
30
|
-
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
34
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
35
|
+
lang: (string & {}) | ("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx");
|
|
36
|
+
}>;
|
|
31
37
|
__isFragment?: never;
|
|
32
38
|
__isTeleport?: never;
|
|
33
39
|
__isSuspense?: never;
|
|
@@ -36,11 +42,14 @@ declare const _Highlight: {
|
|
|
36
42
|
type: StringConstructor;
|
|
37
43
|
};
|
|
38
44
|
lang: {
|
|
39
|
-
type: import("vue").PropType<("
|
|
45
|
+
type: import("vue").PropType<("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx") | (string & {})>;
|
|
46
|
+
default: string;
|
|
40
47
|
};
|
|
41
48
|
maxHeight: {
|
|
42
49
|
type: StringConstructor;
|
|
43
50
|
};
|
|
44
|
-
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
51
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
52
|
+
lang: (string & {}) | ("php" | "java" | "sql" | ("text" | "plaintext" | "plain" | "txt") | ("html" | "svg" | "mathml" | "xml" | "markup" | "ssml" | "atom" | "rss") | ("css" | "less" | "scss" | "sass") | ("javascript" | "jsx" | "typescript" | "tsx" | "js" | "ts") | ("json" | "json5") | ("md" | "markdown") | ("bash" | "sh" | "shell") | ("python" | "py") | "clike" | "nginx");
|
|
53
|
+
}, {}, string, import("vue").SlotsType<import("./highlight.api").HighlightSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
45
54
|
export { _Highlight as Highlight };
|
|
46
55
|
export default _Highlight;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { withInstall } from '../utils.js';
|
|
2
2
|
import stdin_default$1 from './highlight.js';
|
|
3
3
|
export { highlightProps, highlightSlots } from './highlight.api.js';
|
|
4
|
-
export { default as
|
|
4
|
+
export { default as Prism } from 'prismjs';
|
|
5
5
|
|
|
6
6
|
const _Highlight = withInstall(stdin_default$1);
|
|
7
7
|
var stdin_default = _Highlight;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
2
|
+
import { type IconifyIconProps } from '../iconify-icon';
|
|
3
|
+
export declare const iconProps: {
|
|
4
|
+
name: {
|
|
5
|
+
type: PropType<IconifyIconProps["name"] | (string & {})>;
|
|
6
|
+
};
|
|
7
|
+
size: {
|
|
8
|
+
type: PropType<number | "sm" | "md" | "lg" | "xl" | ({} & string)>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type IconProps = ExtractPropTypes<typeof iconProps>;
|