@esportsplus/ui 0.61.0 → 0.62.0
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/.audit/audit.json +2 -42
- package/.audit/check-scss.mjs +2 -2
- package/.audit/rules-audit.md +1 -12
- package/README.md +18 -17
- package/RULES.md +30 -0
- package/build/components/accordion/index.d.ts +5 -1
- package/build/components/accordion/index.js +29 -27
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/index.d.ts +720 -2164
- package/build/components/announcement/index.js +12 -9
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/index.d.ts +4 -1
- package/build/components/breadcrumb/index.js +54 -49
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/copy.d.ts +1 -10
- package/build/components/button/copy.js +14 -11
- package/build/components/button/faces.d.ts +2 -1
- package/build/components/button/faces.js +9 -10
- package/build/components/button/kbd.d.ts +2 -10
- package/build/components/button/kbd.js +17 -15
- package/build/components/button/morph/index.d.ts +1443 -2165
- package/build/components/button/morph/save.d.ts +1 -10
- package/build/components/button/morph/save.js +5 -5
- package/build/components/button/morph/template.d.ts +2 -1
- package/build/components/button/morph/template.js +49 -29
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.d.ts +1 -10
- package/build/components/button/sidebar.js +14 -12
- package/build/components/button/split.d.ts +6 -1
- package/build/components/button/split.js +16 -11
- package/build/components/capslock/index.d.ts +1 -10
- package/build/components/capslock/index.js +16 -13
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/index.d.ts +4 -1
- package/build/components/cc/index.js +203 -161
- package/build/components/cc/scss/index.scss +1 -1
- package/build/components/chat/minimap/index.d.ts +12 -1
- package/build/components/chat/minimap/index.js +98 -74
- package/build/components/checkbox/group.d.ts +2 -10
- package/build/components/checkbox/group.js +39 -29
- package/build/components/checkbox/options.d.ts +5005 -6440
- package/build/components/checkbox/options.js +72 -44
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/color-picker/index.d.ts +10 -1
- package/build/components/color-picker/index.js +99 -82
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/palette.d.ts +13 -5
- package/build/components/command/palette.js +141 -130
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +2 -20
- package/build/components/command/search.js +17 -16
- package/build/components/container/scss/index.scss +1 -1
- package/build/components/counter/index.d.ts +1 -10
- package/build/components/counter/index.js +34 -31
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/dock/index.d.ts +4 -1
- package/build/components/dock/index.js +154 -114
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/code/editor.d.ts +1 -10
- package/build/components/editor/code/features.d.ts +3 -3
- package/build/components/editor/code/features.js +65 -52
- package/build/components/editor/code/field.d.ts +1 -1
- package/build/components/editor/code/find.d.ts +4 -4
- package/build/components/editor/code/find.js +39 -37
- package/build/components/editor/code/folding.d.ts +1 -1
- package/build/components/editor/code/goto.d.ts +2 -1
- package/build/components/editor/code/goto.js +7 -7
- package/build/components/editor/code/gutter.js +12 -12
- package/build/components/editor/code/html.d.ts +4 -0
- package/build/components/editor/code/html.js +8 -0
- package/build/components/editor/code/minimap.d.ts +4 -10
- package/build/components/editor/code/minimap.js +18 -13
- package/build/components/editor/code/rows.js +6 -12
- package/build/components/editor/code/search.d.ts +1 -2
- package/build/components/editor/code/search.js +1 -1
- package/build/components/editor/code/services/index.d.ts +1 -1
- package/build/components/editor/code/services/index.js +27 -23
- package/build/components/editor/code/services/model.d.ts +1 -5
- package/build/components/editor/code/services/model.js +1 -1
- package/build/components/editor/code/services/session.d.ts +3 -2
- package/build/components/editor/code/services/session.js +1 -4
- package/build/components/editor/code/syntax.d.ts +1 -1
- package/build/components/editor/code/view.d.ts +2 -1
- package/build/components/editor/code/view.js +50 -39
- package/build/components/editor/diffs/merge.d.ts +1 -10
- package/build/components/editor/diffs/merge.js +126 -102
- package/build/components/editor/diffs/render.d.ts +1 -2
- package/build/components/editor/diffs/render.js +2 -8
- package/build/components/editor/diffs/view.d.ts +1 -10
- package/build/components/editor/diffs/view.js +112 -105
- package/build/components/editor/markdown/editing.d.ts +1 -1
- package/build/components/editor/markdown/erase.js +1 -1
- package/build/components/editor/markdown/format.d.ts +23 -0
- package/build/components/editor/markdown/format.js +319 -0
- package/build/components/editor/markdown/html.d.ts +1 -1
- package/build/components/editor/markdown/inline.d.ts +1 -1
- package/build/components/editor/markdown/inline.js +6 -5
- package/build/components/editor/markdown/layout.d.ts +1 -3
- package/build/components/editor/markdown/layout.js +1 -1
- package/build/components/editor/markdown/model.d.ts +3 -9
- package/build/components/editor/markdown/model.js +1 -8
- package/build/components/editor/markdown/render.d.ts +2 -1
- package/build/components/editor/markdown/render.js +278 -247
- package/build/components/editor/markdown/template.d.ts +1 -10
- package/build/components/editor/markdown/toolbar.d.ts +32 -0
- package/build/components/editor/markdown/toolbar.js +556 -0
- package/build/components/editor/markdown/view.d.ts +12 -1
- package/build/components/editor/markdown/view.js +154 -60
- package/build/components/editor/tree/compact.d.ts +2 -1
- package/build/components/editor/tree/compact.js +12 -11
- package/build/components/editor/tree/drag.d.ts +3 -2
- package/build/components/editor/tree/drag.js +29 -26
- package/build/components/editor/tree/edit.d.ts +1 -1
- package/build/components/editor/tree/edit.js +10 -9
- package/build/components/editor/tree/find.d.ts +1 -1
- package/build/components/editor/tree/find.js +10 -6
- package/build/components/editor/tree/icons.d.ts +1 -1
- package/build/components/editor/tree/icons.js +1 -1
- package/build/components/editor/tree/lazy.d.ts +2 -1
- package/build/components/editor/tree/lazy.js +17 -16
- package/build/components/editor/tree/sticky.d.ts +3 -2
- package/build/components/editor/tree/sticky.js +7 -6
- package/build/components/editor/tree/template.d.ts +2 -1
- package/build/components/editor/tree/template.js +144 -157
- package/build/components/editor/viewer/model.js +1 -7
- package/build/components/editor/viewer/template.d.ts +1 -10
- package/build/components/editor/viewer/template.js +74 -65
- package/build/components/editor/workspace/navigate.d.ts +2 -1
- package/build/components/editor/workspace/navigate.js +2 -4
- package/build/components/editor/workspace/session.d.ts +2 -1
- package/build/components/editor/workspace/session.js +14 -9
- package/build/components/editor/workspace/shortcuts.js +39 -33
- package/build/components/editor/workspace/status.js +2 -2
- package/build/components/editor/workspace/statusbar.d.ts +2 -1
- package/build/components/editor/workspace/statusbar.js +49 -48
- package/build/components/editor/workspace/strip.js +6 -5
- package/build/components/editor/workspace/template.d.ts +2 -10
- package/build/components/editor/workspace/template.js +149 -144
- package/build/components/error/index.d.ts +1 -10
- package/build/components/error/index.js +64 -32
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +138 -74
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/form/action.d.ts +2 -2
- package/build/components/form/action.js +12 -9
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/group/index.d.ts +3 -1
- package/build/components/group/index.js +10 -7
- package/build/components/group/scss/index.scss +1 -1
- package/build/components/heatmap/index.d.ts +5 -2
- package/build/components/heatmap/index.js +72 -59
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.d.ts +1 -10
- package/build/components/highlight/index.js +21 -19
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +1 -10
- package/build/components/icon/index.js +11 -10
- package/build/components/image/lazyload.d.ts +2 -1
- package/build/components/image/lazyload.js +29 -26
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +0 -3
- package/build/components/index.js +0 -3
- package/build/components/inline-edit/index.d.ts +5 -1
- package/build/components/inline-edit/index.js +34 -27
- package/build/components/inline-edit/rich.d.ts +10 -15
- package/build/components/inline-edit/rich.js +81 -1193
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.d.ts +3 -2
- package/build/components/inline-edit/status.js +22 -18
- package/build/components/input/field.d.ts +2 -1
- package/build/components/input/field.js +12 -9
- package/build/components/input/scrub.d.ts +4 -1
- package/build/components/input/scrub.js +25 -20
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.d.ts +4 -2
- package/build/components/input/tag.js +58 -53
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.d.ts +2 -1
- package/build/components/loading/index.js +6 -3
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/index.d.ts +2 -1
- package/build/components/marquee/index.js +77 -72
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/marquee/velocity.js +4 -3
- package/build/components/metric/flash.d.ts +2 -1
- package/build/components/metric/flash.js +25 -25
- package/build/components/metric/index.d.ts +13 -2
- package/build/components/metric/index.js +60 -56
- package/build/components/metric/scss/index.scss +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/spy.js +9 -6
- package/build/components/nav/toc.d.ts +1 -10
- package/build/components/nav/tree.d.ts +3 -1
- package/build/components/nav/tree.js +60 -58
- package/build/components/notification/index.d.ts +1 -10
- package/build/components/notification/index.js +26 -36
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/index.d.ts +4 -5
- package/build/components/overlay/index.js +399 -196
- package/build/components/overlay/popup.d.ts +5 -6
- package/build/components/overlay/popup.js +80 -39
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/pagination/arrows.d.ts +2 -1
- package/build/components/pagination/arrows.js +48 -45
- package/build/components/pagination/cards.d.ts +5 -2
- package/build/components/pagination/cards.js +70 -45
- package/build/components/pagination/dots.d.ts +3 -1
- package/build/components/pagination/dots.js +29 -24
- package/build/components/pagination/index.d.ts +2 -1
- package/build/components/pagination/index.js +27 -28
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/panels/dnd.js +30 -22
- package/build/components/panels/group.d.ts +3 -2
- package/build/components/panels/group.js +134 -131
- package/build/components/panels/index.d.ts +2 -10
- package/build/components/panels/index.js +84 -80
- package/build/components/panels/resize.js +39 -3
- package/build/components/panels/scss/index.scss +1 -1
- package/build/components/panels/subtree.d.ts +2 -1
- package/build/components/panels/subtree.js +8 -7
- package/build/components/preview/buttons.d.ts +2 -10
- package/build/components/preview/buttons.js +6 -6
- package/build/components/preview/code.d.ts +1 -10
- package/build/components/preview/code.js +6 -6
- package/build/components/preview/header.d.ts +2 -10
- package/build/components/preview/header.js +15 -12
- package/build/components/preview/index.d.ts +13 -8680
- package/build/components/preview/index.js +22 -22
- package/build/components/preview/scss/index.scss +1 -1
- package/build/components/preview/source.d.ts +1 -10
- package/build/components/preview/source.js +18 -15
- package/build/components/preview/stage.d.ts +2 -10
- package/build/components/preview/stage.js +19 -15
- package/build/components/progress/index.d.ts +2 -1
- package/build/components/progress/index.js +30 -26
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.d.ts +2 -1
- package/build/components/progress/text.js +27 -25
- package/build/components/range/filter.d.ts +2 -1
- package/build/components/range/filter.js +126 -127
- package/build/components/range/index.d.ts +2 -1
- package/build/components/range/index.js +17 -22
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/index.d.ts +3 -1
- package/build/components/relative-time/index.js +56 -41
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/expand.d.ts +44 -0
- package/build/components/select/expand.js +215 -0
- package/build/components/select/index.d.ts +18 -9
- package/build/components/select/index.js +108 -81
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shell/index.d.ts +2 -1
- package/build/components/shell/index.js +127 -109
- package/build/components/shell/scss/index.scss +1 -1
- package/build/components/shortcut-recorder/index.js +46 -43
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/index.d.ts +2 -714
- package/build/components/sortable/index.js +75 -64
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/story/index.d.ts +4 -10
- package/build/components/story/index.js +121 -63
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/engine.js +51 -53
- package/build/components/surface-field/index.d.ts +2180 -2921
- package/build/components/surface-field/index.js +42 -38
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/surface-field/surface.d.ts +1 -10
- package/build/components/surface-field/surface.js +42 -36
- package/build/components/tasklist/index.d.ts +8 -1
- package/build/components/tasklist/index.js +63 -46
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +722 -2170
- package/build/components/textarea/index.js +67 -91
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/theme/cards.d.ts +4 -0
- package/build/components/theme/cards.js +21 -0
- package/build/components/theme/index.d.ts +12 -3
- package/build/components/theme/index.js +38 -14
- package/build/components/theme/reveal.d.ts +6 -0
- package/build/components/theme/reveal.js +100 -0
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/{theme-picker → theme}/shared.d.ts +4 -4
- package/build/components/{theme-picker → theme}/shared.js +5 -3
- package/build/components/theme/swatches.d.ts +4 -0
- package/build/components/theme/swatches.js +21 -0
- package/build/components/theme/toggle.d.ts +15 -0
- package/build/components/theme/toggle.js +33 -0
- package/build/components/toast/index.d.ts +6 -2
- package/build/components/toast/index.js +62 -50
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.d.ts +10 -2
- package/build/components/tooltip/menu.js +194 -179
- package/build/components/tooltip/onclick.d.ts +1 -10
- package/build/components/tooltip/onclick.js +25 -27
- package/build/components/tooltip/onhover.d.ts +8 -709
- package/build/components/tooltip/onhover.js +60 -60
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.d.ts +5 -3
- package/build/components/tooltip/shared.js +201 -91
- package/build/components/tooltip/utilities.d.ts +10 -4
- package/build/components/tooltip/utilities.js +95 -18
- package/build/components/typewriter/index.d.ts +2855 -1413
- package/build/components/typewriter/index.js +17 -18
- package/build/components/typewriter/retype.d.ts +2 -1
- package/build/components/typewriter/retype.js +21 -18
- package/build/components/typewriter/rotate.d.ts +2 -1
- package/build/components/typewriter/rotate.js +34 -29
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/index.d.ts +2 -1
- package/build/components/uptime/index.js +51 -47
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/index.d.ts +719 -2161
- package/build/components/usage-meter/index.js +23 -20
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/modifiers/border/scss/index.scss +1 -1
- package/build/modifiers/box-shadow/scss/index.scss +1 -1
- package/build/modifiers/color/scss/index.scss +1 -1
- package/build/modifiers/disabled/scss/index.scss +2 -0
- package/build/modifiers/glass/index.d.ts +3 -2
- package/build/modifiers/glass/index.js +7 -7
- package/build/modifiers/glass/scss/index.scss +1 -1
- package/build/modifiers/scrollbar/index.d.ts +13 -13
- package/build/modifiers/scrollbar/index.js +74 -90
- package/build/modifiers/scrollbar/scss/index.scss +1 -1
- package/build/shared/animation.d.ts +1 -1
- package/build/shared/animation.js +5 -3
- package/build/shared/dispatch.d.ts +7 -0
- package/build/shared/dispatch.js +25 -0
- package/build/shared/drag.d.ts +2 -4
- package/build/shared/press.d.ts +1 -1
- package/build/shared/press.js +5 -3
- package/build/shared/resize.js +2 -25
- package/build/shared/transition.d.ts +1 -1
- package/build/shared/transition.js +2 -2
- package/build/shared/visible.js +1 -24
- package/package.json +10 -11
- package/src/components/accordion/index.ts +2 -4
- package/src/components/accordion/scss/index.scss +17 -14
- package/src/components/accordion/scss/variables.scss +6 -7
- package/src/components/announcement/scss/index.scss +8 -13
- package/src/components/announcement/scss/variables.scss +12 -8
- package/src/components/breadcrumb/index.ts +4 -4
- package/src/components/breadcrumb/scss/index.scss +12 -12
- package/src/components/breadcrumb/scss/variables.scss +5 -12
- package/src/components/button/copy.ts +1 -1
- package/src/components/button/kbd.ts +8 -7
- package/src/components/button/morph/save.ts +2 -2
- package/src/components/button/morph/template.ts +18 -20
- package/src/components/button/scss/index.scss +84 -59
- package/src/components/button/scss/variables.scss +44 -29
- package/src/components/button/sidebar.ts +2 -2
- package/src/components/button/split.ts +7 -8
- package/src/components/capslock/index.ts +4 -4
- package/src/components/capslock/scss/index.scss +4 -2
- package/src/components/capslock/scss/variables.scss +14 -15
- package/src/components/card/scss/index.scss +10 -19
- package/src/components/card/scss/variables.scss +6 -2
- package/src/components/cc/index.ts +32 -33
- package/src/components/cc/scss/index.scss +37 -7
- package/src/components/cc/scss/variables.scss +13 -10
- package/src/components/chat/minimap/index.ts +14 -13
- package/src/components/chat/minimap/scss/index.scss +19 -28
- package/src/components/chat/minimap/scss/variables.scss +33 -29
- package/src/components/checkbox/group.ts +5 -5
- package/src/components/checkbox/options.ts +2 -2
- package/src/components/checkbox/scss/index.scss +10 -6
- package/src/components/checkbox/scss/variables.scss +59 -44
- package/src/components/clipboard/write.ts +2 -1
- package/src/components/color-picker/index.ts +9 -11
- package/src/components/color-picker/scss/index.scss +2 -2
- package/src/components/color-picker/scss/variables.scss +26 -41
- package/src/components/command/palette.ts +15 -29
- package/src/components/command/scss/index.scss +8 -13
- package/src/components/command/scss/variables.scss +8 -8
- package/src/components/command/search.ts +3 -8
- package/src/components/container/scss/index.scss +2 -4
- package/src/components/container/scss/variables.scss +0 -2
- package/src/components/counter/index.ts +2 -1
- package/src/components/counter/scss/index.scss +2 -1
- package/src/components/counter/scss/variables.scss +3 -9
- package/src/components/dock/index.ts +17 -8
- package/src/components/dock/scss/index.scss +26 -56
- package/src/components/dock/scss/variables.scss +11 -20
- package/src/components/editor/code/features.ts +4 -5
- package/src/components/editor/code/field.ts +1 -1
- package/src/components/editor/code/find.ts +1 -1
- package/src/components/editor/code/folding.ts +1 -1
- package/src/components/editor/code/html.ts +17 -0
- package/src/components/editor/code/minimap.ts +7 -5
- package/src/components/editor/code/rows.ts +1 -14
- package/src/components/editor/code/scss/_editor.scss +10 -23
- package/src/components/editor/code/scss/_features.scss +17 -26
- package/src/components/editor/code/scss/_minimap.scss +29 -0
- package/src/components/editor/code/scss/_services.scss +4 -7
- package/src/components/editor/code/scss/index.scss +0 -1
- package/src/components/editor/code/scss/variables.scss +22 -14
- package/src/components/editor/code/search.ts +1 -1
- package/src/components/editor/code/services/completion.ts +1 -0
- package/src/components/editor/code/services/hover.ts +1 -0
- package/src/components/editor/code/services/index.ts +1 -1
- package/src/components/editor/code/services/model.ts +1 -1
- package/src/components/editor/code/services/session.ts +1 -4
- package/src/components/editor/code/syntax.ts +1 -1
- package/src/components/editor/diffs/merge.ts +3 -3
- package/src/components/editor/diffs/render.ts +2 -17
- package/src/components/editor/diffs/scss/_diffs.scss +22 -57
- package/src/components/editor/diffs/scss/_merge.scss +8 -29
- package/src/components/editor/diffs/scss/variables.scss +1 -10
- package/src/components/editor/diffs/view.ts +4 -5
- package/src/components/editor/markdown/editing.ts +1 -1
- package/src/components/editor/markdown/erase.ts +3 -3
- package/src/components/editor/markdown/format.ts +517 -0
- package/src/components/editor/markdown/html.ts +1 -1
- package/src/components/editor/markdown/inline.ts +9 -6
- package/src/components/editor/markdown/layout.ts +1 -1
- package/src/components/editor/markdown/model.ts +2 -17
- package/src/components/editor/markdown/render.ts +3 -2
- package/src/components/editor/markdown/scss/index.scss +132 -57
- package/src/components/editor/markdown/scss/variables.scss +124 -4
- package/src/components/editor/markdown/toolbar.ts +628 -0
- package/src/components/editor/markdown/view.ts +121 -10
- package/src/components/editor/tree/drag.ts +16 -15
- package/src/components/editor/tree/icons.ts +1 -1
- package/src/components/editor/tree/scss/index.scss +69 -44
- package/src/components/editor/tree/scss/variables.scss +75 -44
- package/src/components/editor/tree/sticky.ts +1 -1
- package/src/components/editor/tree/template.ts +2 -2
- package/src/components/editor/viewer/model.ts +1 -14
- package/src/components/editor/viewer/scss/_viewer.scss +22 -72
- package/src/components/editor/viewer/scss/index.scss +1 -1
- package/src/components/editor/viewer/scss/variables.scss +1 -3
- package/src/components/editor/viewer/template.ts +4 -2
- package/src/components/editor/workspace/navigate.ts +3 -6
- package/src/components/editor/workspace/scss/_keybindings.scss +9 -7
- package/src/components/editor/workspace/scss/_status.scss +14 -38
- package/src/components/editor/workspace/scss/_tabs.scss +6 -3
- package/src/components/editor/workspace/scss/index.scss +38 -33
- package/src/components/editor/workspace/scss/variables.scss +57 -53
- package/src/components/editor/workspace/session.ts +20 -13
- package/src/components/editor/workspace/status.ts +2 -2
- package/src/components/editor/workspace/template.ts +12 -21
- package/src/components/error/index.ts +36 -18
- package/src/components/error/scss/index.scss +3 -1
- package/src/components/error/scss/variables.scss +1 -0
- package/src/components/filter/index.ts +146 -99
- package/src/components/filter/scss/variables.scss +1 -1
- package/src/components/form/action.ts +1 -1
- package/src/components/frame/scss/index.scss +10 -6
- package/src/components/frame/scss/variables.scss +11 -6
- package/src/components/grid/scss/index.scss +1 -1
- package/src/components/grid/scss/variables.scss +1 -1
- package/src/components/heatmap/index.ts +2 -2
- package/src/components/heatmap/scss/index.scss +22 -17
- package/src/components/heatmap/scss/variables.scss +16 -34
- package/src/components/highlight/index.ts +0 -1
- package/src/components/highlight/scss/index.scss +13 -21
- package/src/components/highlight/scss/variables.scss +12 -14
- package/src/components/icon/index.ts +0 -4
- package/src/components/icon/scss/index.scss +2 -0
- package/src/components/image/lazyload.ts +1 -1
- package/src/components/image/scss/index.scss +14 -13
- package/src/components/image/scss/variables.scss +16 -12
- package/src/components/index.ts +0 -3
- package/src/components/inline-edit/index.ts +6 -5
- package/src/components/inline-edit/rich.ts +85 -1400
- package/src/components/inline-edit/scss/index.scss +24 -191
- package/src/components/inline-edit/scss/variables.scss +24 -191
- package/src/components/inline-edit/status.ts +6 -3
- package/src/components/input/field.ts +2 -2
- package/src/components/input/scrub.ts +1 -5
- package/src/components/input/scss/_scrub.scss +7 -0
- package/src/components/input/scss/_tag.scss +4 -2
- package/src/components/input/scss/index.scss +1 -2
- package/src/components/input/scss/variables.scss +14 -21
- package/src/components/input/tag.ts +6 -7
- package/src/components/json/download.ts +2 -1
- package/src/components/link/scss/index.scss +0 -1
- package/src/components/loading/index.ts +1 -1
- package/src/components/loading/scss/index.scss +4 -4
- package/src/components/loading/scss/variables.scss +4 -4
- package/src/components/marquee/index.ts +5 -5
- package/src/components/marquee/scss/index.scss +6 -4
- package/src/components/marquee/scss/variables.scss +3 -4
- package/src/components/marquee/velocity.ts +7 -3
- package/src/components/metric/flash.ts +1 -1
- package/src/components/metric/index.ts +5 -13
- package/src/components/metric/scss/_flash.scss +9 -4
- package/src/components/metric/scss/index.scss +11 -9
- package/src/components/metric/scss/variables.scss +73 -73
- package/src/components/nav/scss/index.scss +2 -1
- package/src/components/nav/scss/variables.scss +9 -11
- package/src/components/nav/spy.ts +15 -8
- package/src/components/nav/tree.ts +28 -30
- package/src/components/notification/index.ts +37 -16
- package/src/components/notification/scss/index.scss +32 -17
- package/src/components/notification/scss/variables.scss +12 -12
- package/src/components/overlay/index.ts +212 -142
- package/src/components/overlay/popup.ts +89 -52
- package/src/components/overlay/scss/index.scss +68 -85
- package/src/components/overlay/scss/variables.scss +15 -12
- package/src/components/pagination/cards.ts +1 -2
- package/src/components/pagination/index.ts +1 -7
- package/src/components/pagination/scss/index.scss +12 -12
- package/src/components/pagination/scss/variables.scss +33 -21
- package/src/components/panels/dnd.ts +35 -29
- package/src/components/panels/group.ts +5 -13
- package/src/components/panels/index.ts +4 -6
- package/src/components/panels/resize.ts +30 -4
- package/src/components/panels/scss/index.scss +13 -28
- package/src/components/panels/scss/variables.scss +3 -3
- package/src/components/preview/code.ts +1 -1
- package/src/components/preview/index.ts +12 -7
- package/src/components/preview/scss/index.scss +30 -15
- package/src/components/preview/scss/variables.scss +56 -34
- package/src/components/progress/scss/index.scss +14 -11
- package/src/components/progress/scss/variables.scss +34 -31
- package/src/components/progress/text.ts +9 -8
- package/src/components/range/filter.ts +9 -11
- package/src/components/range/index.ts +2 -9
- package/src/components/range/scss/_filter.scss +4 -3
- package/src/components/range/scss/_slider.scss +2 -1
- package/src/components/range/scss/variables.scss +2 -16
- package/src/components/relative-time/index.ts +15 -16
- package/src/components/relative-time/scss/index.scss +8 -4
- package/src/components/relative-time/scss/variables.scss +7 -3
- package/src/components/root/scss/index.scss +3 -0
- package/src/components/root/scss/variables.scss +11 -11
- package/src/components/select/expand.ts +272 -0
- package/src/components/select/index.ts +142 -119
- package/src/components/select/scss/index.scss +79 -7
- package/src/components/select/scss/variables.scss +67 -3
- package/src/components/shell/index.ts +73 -50
- package/src/components/shell/scss/index.scss +34 -47
- package/src/components/shell/scss/variables.scss +16 -16
- package/src/components/shortcut-recorder/index.ts +14 -17
- package/src/components/shortcut-recorder/scss/index.scss +15 -10
- package/src/components/shortcut-recorder/scss/variables.scss +4 -7
- package/src/components/sortable/index.ts +25 -28
- package/src/components/sortable/scss/index.scss +28 -27
- package/src/components/sortable/scss/variables.scss +12 -7
- package/src/components/story/index.ts +110 -47
- package/src/components/story/scss/index.scss +13 -18
- package/src/components/story/scss/variables.scss +4 -16
- package/src/components/surface-field/engine.ts +71 -72
- package/src/components/surface-field/index.ts +17 -20
- package/src/components/surface-field/scss/index.scss +9 -11
- package/src/components/surface-field/scss/variables.scss +20 -23
- package/src/components/surface-field/surface.ts +4 -3
- package/src/components/tasklist/index.ts +1 -6
- package/src/components/tasklist/scss/index.scss +22 -26
- package/src/components/tasklist/scss/variables.scss +14 -20
- package/src/components/textarea/index.ts +49 -91
- package/src/components/textarea/scss/index.scss +20 -15
- package/src/components/textarea/scss/variables.scss +15 -0
- package/src/components/theme/cards.ts +19 -0
- package/src/components/theme/index.ts +58 -17
- package/src/components/theme/reveal.ts +190 -0
- package/src/components/theme/scss/index.scss +109 -0
- package/src/components/theme/scss/variables.scss +153 -3
- package/src/components/{theme-picker → theme}/shared.ts +9 -6
- package/src/components/theme/swatches.ts +15 -0
- package/src/components/theme/toggle.ts +47 -0
- package/src/components/toast/index.ts +2 -3
- package/src/components/toast/scss/index.scss +63 -0
- package/src/components/toast/scss/variables.scss +121 -16
- package/src/components/tooltip/menu.ts +141 -131
- package/src/components/tooltip/onclick.ts +16 -21
- package/src/components/tooltip/onhover.ts +5 -8
- package/src/components/tooltip/scss/index.scss +534 -56
- package/src/components/tooltip/scss/variables.scss +64 -13
- package/src/components/tooltip/shared.ts +129 -87
- package/src/components/tooltip/utilities.ts +75 -24
- package/src/components/typewriter/index.ts +7 -10
- package/src/components/typewriter/rotate.ts +11 -7
- package/src/components/typewriter/scss/index.scss +2 -0
- package/src/components/typewriter/scss/variables.scss +1 -1
- package/src/components/uptime/index.ts +12 -6
- package/src/components/uptime/scss/index.scss +86 -75
- package/src/components/uptime/scss/variables.scss +82 -51
- package/src/components/usage-meter/index.ts +1 -1
- package/src/components/usage-meter/scss/index.scss +0 -3
- package/src/components/usage-meter/scss/variables.scss +13 -14
- package/src/css-utilities/background.scss +9 -1
- package/src/css-utilities/border.scss +3 -0
- package/src/css-utilities/box-shadow.scss +3 -2
- package/src/css-utilities/color.scss +13 -3
- package/src/css-utilities/disabled.scss +12 -0
- package/src/css-utilities/font/geist/index.scss +2 -1
- package/src/css-utilities/font/montserrat/index.scss +1 -1
- package/src/css-utilities/group.scss +1 -2
- package/src/css-utilities/icon.scss +1 -0
- package/src/css-utilities/layer.scss +2 -1
- package/src/css-utilities/skeleton.scss +4 -1
- package/src/css-utilities/surface.scss +97 -108
- package/src/css-utilities/text.scss +13 -13
- package/src/modifiers/background/scss/variables.scss +2 -4
- package/src/modifiers/border/scss/variables.scss +6 -8
- package/src/modifiers/disabled/scss/index.scss +5 -0
- package/src/modifiers/glass/index.ts +2 -1
- package/src/modifiers/glass/scss/index.scss +8 -11
- package/src/modifiers/glass/scss/variables.scss +1 -0
- package/src/modifiers/scrollbar/index.ts +94 -113
- package/src/modifiers/scrollbar/scss/index.scss +20 -2
- package/src/modifiers/scrollbar/scss/variables.scss +2 -2
- package/src/normalize/scss/index.scss +1 -0
- package/src/shared/anchor.ts +1 -1
- package/src/shared/animation.ts +6 -4
- package/src/shared/dispatch.ts +42 -0
- package/src/shared/drag.ts +2 -1
- package/src/shared/press.ts +7 -5
- package/src/shared/resize.ts +4 -35
- package/src/shared/scss/list.scss +1 -2
- package/src/shared/transition.ts +2 -2
- package/src/shared/visible.ts +3 -35
- package/src/tokens/scss/color.scss +16 -20
- package/src/tokens/scss/focus.scss +5 -0
- package/src/tokens/scss/font-size.scss +1 -2
- package/src/tokens/scss/index.scss +1 -0
- package/src/tokens/scss/scale.scss +4 -8
- package/src/tokens/scss/size.scss +3 -3
- package/src/tokens/scss/spacer.scss +1 -1
- package/src/tokens/scss/state.scss +11 -30
- package/vite-env.d.ts +1 -1
- package/vite.config.ts +10 -8
- package/build/components/datalist/index.d.ts +0 -42
- package/build/components/datalist/index.js +0 -186
- package/build/components/datalist/scss/index.scss +0 -2
- package/build/components/inline-edit/format.d.ts +0 -29
- package/build/components/inline-edit/format.js +0 -112
- package/build/components/inline-edit/history.d.ts +0 -14
- package/build/components/inline-edit/history.js +0 -40
- package/build/components/inline-edit/markdown.d.ts +0 -7
- package/build/components/inline-edit/markdown.js +0 -314
- package/build/components/inline-edit/model.d.ts +0 -61
- package/build/components/inline-edit/model.js +0 -192
- package/build/components/inline-edit/selection.d.ts +0 -7
- package/build/components/inline-edit/selection.js +0 -114
- package/build/components/inline-edit/utilities.d.ts +0 -4
- package/build/components/inline-edit/utilities.js +0 -12
- package/build/components/sticky-header/index.d.ts +0 -2166
- package/build/components/sticky-header/index.js +0 -58
- package/build/components/sticky-header/scss/index.scss +0 -2
- package/build/components/theme-picker/cards.d.ts +0 -13
- package/build/components/theme-picker/cards.js +0 -17
- package/build/components/theme-picker/index.d.ts +0 -12
- package/build/components/theme-picker/index.js +0 -7
- package/build/components/theme-picker/scss/index.scss +0 -2
- package/build/components/theme-picker/swatches.d.ts +0 -13
- package/build/components/theme-picker/swatches.js +0 -17
- package/build/components/theme-picker/toggle.d.ts +0 -19
- package/build/components/theme-picker/toggle.js +0 -109
- package/src/components/datalist/index.ts +0 -256
- package/src/components/datalist/scss/index.scss +0 -104
- package/src/components/datalist/scss/variables.scss +0 -43
- package/src/components/inline-edit/format.ts +0 -183
- package/src/components/inline-edit/history.ts +0 -71
- package/src/components/inline-edit/markdown.ts +0 -485
- package/src/components/inline-edit/model.ts +0 -366
- package/src/components/inline-edit/selection.ts +0 -188
- package/src/components/inline-edit/utilities.ts +0 -18
- package/src/components/sticky-header/index.ts +0 -78
- package/src/components/sticky-header/scss/index.scss +0 -141
- package/src/components/sticky-header/scss/variables.scss +0 -78
- package/src/components/theme-picker/cards.ts +0 -19
- package/src/components/theme-picker/index.ts +0 -12
- package/src/components/theme-picker/scss/index.scss +0 -174
- package/src/components/theme-picker/scss/variables.scss +0 -220
- package/src/components/theme-picker/swatches.ts +0 -15
- package/src/components/theme-picker/toggle.ts +0 -150
- package/src/components/tooltip/scss/_center.scss +0 -9
- package/src/components/tooltip/scss/_east.scss +0 -33
- package/src/components/tooltip/scss/_menu.scss +0 -325
- package/src/components/tooltip/scss/_north.scss +0 -33
- package/src/components/tooltip/scss/_shared.scss +0 -112
- package/src/components/tooltip/scss/_south.scss +0 -33
- package/src/components/tooltip/scss/_west.scss +0 -33
|
@@ -6,49 +6,54 @@ import icon from '../../icon/index.js';
|
|
|
6
6
|
import { sanitizeHtml } from './html.js';
|
|
7
7
|
import { clipInline } from './inline.js';
|
|
8
8
|
import chevron from '@esportsplus/ui/svg/chevron-down.svg';
|
|
9
|
-
const template_1szz54a3 = template_u1.template(`<button aria-label='Unfold block'
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
9
|
+
const template_1szz54a3 = template_u1.template(`<button aria-label='Unfold block' contenteditable='false' type='button'> … <!--$--> lines `, true);
|
|
10
|
+
const template_1szz54a5 = template_u1.template(`<br>`, true);
|
|
11
|
+
const template_1szz54a7 = template_u1.template(`<pre class='markdown-editor-pre'><code class='markdown-editor-code markdown-editor-code--block'>`, true);
|
|
12
|
+
const template_1szz54aa = template_u1.template(`<pre class='markdown-editor-pre'><!--$--><code class='markdown-editor-code markdown-editor-code--block'>`, true);
|
|
13
|
+
const template_1szz54ae = template_u1.template(`<pre class='markdown-editor-pre markdown-editor-frontmatter'><code class='markdown-editor-code markdown-editor-code--block'>`, true);
|
|
14
|
+
const template_1szz54ah = template_u1.template(`<div contenteditable='false'>`, true);
|
|
15
|
+
const template_1szz54aj = template_u1.template(`<span class='markdown-editor-marker' contenteditable='false'>`, true);
|
|
16
|
+
const template_1szz54ak = template_u1.template(`<hr class='markdown-editor-rule' contenteditable='false'>`, true);
|
|
17
|
+
const template_1szz54am = template_u1.template(`<code class='markdown-editor-code'>`, true);
|
|
18
|
+
const template_1szz54ao = template_u1.template(`<em class='markdown-editor-em'>`, true);
|
|
19
|
+
const template_1szz54aq = template_u1.template(`<mark class='markdown-editor-highlight'>`, true);
|
|
20
|
+
const template_1szz54as = template_u1.template(`<a class='markdown-editor-link' rel='noopener noreferrer'>`, true);
|
|
21
|
+
const template_1szz54au = template_u1.template(`<span class='markdown-editor-link'>`, true);
|
|
22
|
+
const template_1szz54aw = template_u1.template(`<s class='markdown-editor-strike'>`, true);
|
|
23
|
+
const template_1szz54ay = template_u1.template(`<strong class='markdown-editor-strong'>`, true);
|
|
24
|
+
const template_1szz54a10 = template_u1.template(`<span class='markdown-editor-info'>`, true);
|
|
25
|
+
const template_1szz54a12 = template_u1.template(`<span>`, true);
|
|
26
|
+
const template_1szz54a14 = template_u1.template(`<div><button contenteditable='false' tabindex='-1' type='button'>`, true);
|
|
27
|
+
const template_1szz54a17 = template_u1.template(`<a rel='noopener noreferrer'>`, true);
|
|
28
|
+
const template_1szz54a19 = template_u1.template(`<blockquote>`, true);
|
|
29
|
+
const template_1szz54a1b = template_u1.template(`<code>`, true);
|
|
30
|
+
const template_1szz54a1d = template_u1.template(`<details>`, true);
|
|
31
|
+
const template_1szz54a1f = template_u1.template(`<div>`, true);
|
|
32
|
+
const template_1szz54a1h = template_u1.template(`<em>`, true);
|
|
33
|
+
const template_1szz54a1j = template_u1.template(`<h1>`, true);
|
|
34
|
+
const template_1szz54a1l = template_u1.template(`<h2>`, true);
|
|
35
|
+
const template_1szz54a1n = template_u1.template(`<h3>`, true);
|
|
36
|
+
const template_1szz54a1p = template_u1.template(`<h4>`, true);
|
|
37
|
+
const template_1szz54a1r = template_u1.template(`<h5>`, true);
|
|
38
|
+
const template_1szz54a1t = template_u1.template(`<h6>`, true);
|
|
39
|
+
const template_1szz54a1u = template_u1.template(`<hr class='markdown-editor-rule'>`, true);
|
|
40
|
+
const template_1szz54a1w = template_u1.template(`<img loading='lazy'>`, true);
|
|
41
|
+
const template_1szz54a1y = template_u1.template(`<li>`, true);
|
|
42
|
+
const template_1szz54a20 = template_u1.template(`<ol>`, true);
|
|
43
|
+
const template_1szz54a22 = template_u1.template(`<p>`, true);
|
|
44
|
+
const template_1szz54a24 = template_u1.template(`<pre>`, true);
|
|
45
|
+
const template_1szz54a26 = template_u1.template(`<s>`, true);
|
|
46
|
+
const template_1szz54a29 = template_u1.template(`<strong>`, true);
|
|
47
|
+
const template_1szz54a2b = template_u1.template(`<sub>`, true);
|
|
48
|
+
const template_1szz54a2d = template_u1.template(`<summary><!--$-->`, true);
|
|
49
|
+
const template_1szz54a2g = template_u1.template(`<sup>`, true);
|
|
50
|
+
const template_1szz54a2i = template_u1.template(`<table>`, true);
|
|
51
|
+
const template_1szz54a2k = template_u1.template(`<tbody>`, true);
|
|
52
|
+
const template_1szz54a2m = template_u1.template(`<td>`, true);
|
|
53
|
+
const template_1szz54a2o = template_u1.template(`<th>`, true);
|
|
54
|
+
const template_1szz54a2q = template_u1.template(`<thead>`, true);
|
|
55
|
+
const template_1szz54a2s = template_u1.template(`<tr>`, true);
|
|
56
|
+
const template_1szz54a2u = template_u1.template(`<ul>`, true);
|
|
52
57
|
class ReactiveObject_1szz54a0 extends reactivity_u0.ReactiveObject {
|
|
53
58
|
#done;
|
|
54
59
|
constructor(_p0) {
|
|
@@ -109,249 +114,270 @@ function safe(nodes) {
|
|
|
109
114
|
switch (node.tag) {
|
|
110
115
|
case 'a':
|
|
111
116
|
out.push((() => {
|
|
112
|
-
let
|
|
113
|
-
template_u1.slot(
|
|
114
|
-
template_u1.setProperties(
|
|
115
|
-
|
|
117
|
+
let root_1szz54a16 = template_1szz54a17();
|
|
118
|
+
template_u1.slot(root_1szz54a16, content, 1);
|
|
119
|
+
template_u1.setProperties(root_1szz54a16, attributes);
|
|
120
|
+
template_u1.setClass(root_1szz54a16, ["markdown-editor-link"]);
|
|
121
|
+
return root_1szz54a16;
|
|
116
122
|
})());
|
|
117
123
|
break;
|
|
118
124
|
case 'blockquote':
|
|
119
125
|
out.push((() => {
|
|
120
|
-
let
|
|
121
|
-
template_u1.slot(
|
|
122
|
-
template_u1.setProperties(
|
|
123
|
-
|
|
126
|
+
let root_1szz54a18 = template_1szz54a19();
|
|
127
|
+
template_u1.slot(root_1szz54a18, content, 1);
|
|
128
|
+
template_u1.setProperties(root_1szz54a18, attributes);
|
|
129
|
+
template_u1.setClass(root_1szz54a18, ["markdown-editor-quote"]);
|
|
130
|
+
return root_1szz54a18;
|
|
124
131
|
})());
|
|
125
132
|
break;
|
|
126
133
|
case 'br':
|
|
127
|
-
out.push(
|
|
134
|
+
out.push(template_1szz54a5());
|
|
128
135
|
break;
|
|
129
136
|
case 'code':
|
|
130
137
|
out.push((() => {
|
|
131
|
-
let
|
|
132
|
-
template_u1.slot(
|
|
133
|
-
template_u1.setProperties(
|
|
134
|
-
|
|
138
|
+
let root_1szz54a1a = template_1szz54a1b();
|
|
139
|
+
template_u1.slot(root_1szz54a1a, content, 1);
|
|
140
|
+
template_u1.setProperties(root_1szz54a1a, attributes);
|
|
141
|
+
template_u1.setClass(root_1szz54a1a, ["markdown-editor-code"]);
|
|
142
|
+
return root_1szz54a1a;
|
|
135
143
|
})());
|
|
136
144
|
break;
|
|
137
145
|
case 'details':
|
|
138
146
|
out.push((() => {
|
|
139
|
-
let
|
|
140
|
-
template_u1.slot(
|
|
141
|
-
template_u1.setProperties(
|
|
142
|
-
return
|
|
147
|
+
let root_1szz54a1c = template_1szz54a1d();
|
|
148
|
+
template_u1.slot(root_1szz54a1c, content, 1);
|
|
149
|
+
template_u1.setProperties(root_1szz54a1c, attributes);
|
|
150
|
+
return root_1szz54a1c;
|
|
143
151
|
})());
|
|
144
152
|
break;
|
|
145
153
|
case 'div':
|
|
146
154
|
out.push((() => {
|
|
147
|
-
let
|
|
148
|
-
template_u1.slot(
|
|
149
|
-
template_u1.setProperties(
|
|
150
|
-
return
|
|
155
|
+
let root_1szz54a1e = template_1szz54a1f();
|
|
156
|
+
template_u1.slot(root_1szz54a1e, content, 1);
|
|
157
|
+
template_u1.setProperties(root_1szz54a1e, attributes);
|
|
158
|
+
return root_1szz54a1e;
|
|
151
159
|
})());
|
|
152
160
|
break;
|
|
153
161
|
case 'em':
|
|
154
162
|
out.push((() => {
|
|
155
|
-
let
|
|
156
|
-
template_u1.slot(
|
|
157
|
-
template_u1.setProperties(
|
|
158
|
-
|
|
163
|
+
let root_1szz54a1g = template_1szz54a1h();
|
|
164
|
+
template_u1.slot(root_1szz54a1g, content, 1);
|
|
165
|
+
template_u1.setProperties(root_1szz54a1g, attributes);
|
|
166
|
+
template_u1.setClass(root_1szz54a1g, ["markdown-editor-em"]);
|
|
167
|
+
return root_1szz54a1g;
|
|
159
168
|
})());
|
|
160
169
|
break;
|
|
161
170
|
case 'h1':
|
|
162
171
|
out.push((() => {
|
|
163
|
-
let
|
|
164
|
-
template_u1.slot(
|
|
165
|
-
template_u1.setProperties(
|
|
166
|
-
|
|
172
|
+
let root_1szz54a1i = template_1szz54a1j();
|
|
173
|
+
template_u1.slot(root_1szz54a1i, content, 1);
|
|
174
|
+
template_u1.setProperties(root_1szz54a1i, attributes);
|
|
175
|
+
template_u1.setClass(root_1szz54a1i, ["markdown-editor-heading markdown-editor-heading--h1"]);
|
|
176
|
+
return root_1szz54a1i;
|
|
167
177
|
})());
|
|
168
178
|
break;
|
|
169
179
|
case 'h2':
|
|
170
180
|
out.push((() => {
|
|
171
|
-
let
|
|
172
|
-
template_u1.slot(
|
|
173
|
-
template_u1.setProperties(
|
|
174
|
-
|
|
181
|
+
let root_1szz54a1k = template_1szz54a1l();
|
|
182
|
+
template_u1.slot(root_1szz54a1k, content, 1);
|
|
183
|
+
template_u1.setProperties(root_1szz54a1k, attributes);
|
|
184
|
+
template_u1.setClass(root_1szz54a1k, ["markdown-editor-heading markdown-editor-heading--h2"]);
|
|
185
|
+
return root_1szz54a1k;
|
|
175
186
|
})());
|
|
176
187
|
break;
|
|
177
188
|
case 'h3':
|
|
178
189
|
out.push((() => {
|
|
179
|
-
let
|
|
180
|
-
template_u1.slot(
|
|
181
|
-
template_u1.setProperties(
|
|
182
|
-
|
|
190
|
+
let root_1szz54a1m = template_1szz54a1n();
|
|
191
|
+
template_u1.slot(root_1szz54a1m, content, 1);
|
|
192
|
+
template_u1.setProperties(root_1szz54a1m, attributes);
|
|
193
|
+
template_u1.setClass(root_1szz54a1m, ["markdown-editor-heading markdown-editor-heading--h3"]);
|
|
194
|
+
return root_1szz54a1m;
|
|
183
195
|
})());
|
|
184
196
|
break;
|
|
185
197
|
case 'h4':
|
|
186
198
|
out.push((() => {
|
|
187
|
-
let
|
|
188
|
-
template_u1.slot(
|
|
189
|
-
template_u1.setProperties(
|
|
190
|
-
|
|
199
|
+
let root_1szz54a1o = template_1szz54a1p();
|
|
200
|
+
template_u1.slot(root_1szz54a1o, content, 1);
|
|
201
|
+
template_u1.setProperties(root_1szz54a1o, attributes);
|
|
202
|
+
template_u1.setClass(root_1szz54a1o, ["markdown-editor-heading markdown-editor-heading--h4"]);
|
|
203
|
+
return root_1szz54a1o;
|
|
191
204
|
})());
|
|
192
205
|
break;
|
|
193
206
|
case 'h5':
|
|
194
207
|
out.push((() => {
|
|
195
|
-
let
|
|
196
|
-
template_u1.slot(
|
|
197
|
-
template_u1.setProperties(
|
|
198
|
-
|
|
208
|
+
let root_1szz54a1q = template_1szz54a1r();
|
|
209
|
+
template_u1.slot(root_1szz54a1q, content, 1);
|
|
210
|
+
template_u1.setProperties(root_1szz54a1q, attributes);
|
|
211
|
+
template_u1.setClass(root_1szz54a1q, ["markdown-editor-heading markdown-editor-heading--h5"]);
|
|
212
|
+
return root_1szz54a1q;
|
|
199
213
|
})());
|
|
200
214
|
break;
|
|
201
215
|
case 'h6':
|
|
202
216
|
out.push((() => {
|
|
203
|
-
let
|
|
204
|
-
template_u1.slot(
|
|
205
|
-
template_u1.setProperties(
|
|
206
|
-
|
|
217
|
+
let root_1szz54a1s = template_1szz54a1t();
|
|
218
|
+
template_u1.slot(root_1szz54a1s, content, 1);
|
|
219
|
+
template_u1.setProperties(root_1szz54a1s, attributes);
|
|
220
|
+
template_u1.setClass(root_1szz54a1s, ["markdown-editor-heading markdown-editor-heading--h6"]);
|
|
221
|
+
return root_1szz54a1s;
|
|
207
222
|
})());
|
|
208
223
|
break;
|
|
209
224
|
case 'hr':
|
|
210
|
-
out.push(
|
|
225
|
+
out.push(template_1szz54a1u());
|
|
211
226
|
break;
|
|
212
227
|
case 'img':
|
|
213
228
|
out.push((() => {
|
|
214
|
-
let
|
|
215
|
-
template_u1.setProperties(
|
|
216
|
-
|
|
229
|
+
let root_1szz54a1v = template_1szz54a1w();
|
|
230
|
+
template_u1.setProperties(root_1szz54a1v, attributes);
|
|
231
|
+
template_u1.setClass(root_1szz54a1v, ["markdown-editor-image"]);
|
|
232
|
+
return root_1szz54a1v;
|
|
217
233
|
})());
|
|
218
234
|
break;
|
|
219
235
|
case 'li':
|
|
220
236
|
out.push((() => {
|
|
221
|
-
let
|
|
222
|
-
template_u1.slot(
|
|
223
|
-
template_u1.setProperties(
|
|
224
|
-
return
|
|
237
|
+
let root_1szz54a1x = template_1szz54a1y();
|
|
238
|
+
template_u1.slot(root_1szz54a1x, content, 1);
|
|
239
|
+
template_u1.setProperties(root_1szz54a1x, attributes);
|
|
240
|
+
return root_1szz54a1x;
|
|
225
241
|
})());
|
|
226
242
|
break;
|
|
227
243
|
case 'ol':
|
|
228
244
|
out.push((() => {
|
|
229
|
-
let
|
|
230
|
-
template_u1.slot(
|
|
231
|
-
template_u1.setProperties(
|
|
232
|
-
|
|
245
|
+
let root_1szz54a1z = template_1szz54a20();
|
|
246
|
+
template_u1.slot(root_1szz54a1z, content, 1);
|
|
247
|
+
template_u1.setProperties(root_1szz54a1z, attributes);
|
|
248
|
+
template_u1.setClass(root_1szz54a1z, ["markdown-editor-list"]);
|
|
249
|
+
return root_1szz54a1z;
|
|
233
250
|
})());
|
|
234
251
|
break;
|
|
235
252
|
case 'p':
|
|
236
253
|
out.push((() => {
|
|
237
|
-
let
|
|
238
|
-
template_u1.slot(
|
|
239
|
-
template_u1.setProperties(
|
|
240
|
-
|
|
254
|
+
let root_1szz54a21 = template_1szz54a22();
|
|
255
|
+
template_u1.slot(root_1szz54a21, content, 1);
|
|
256
|
+
template_u1.setProperties(root_1szz54a21, attributes);
|
|
257
|
+
template_u1.setClass(root_1szz54a21, ["markdown-editor-paragraph"]);
|
|
258
|
+
return root_1szz54a21;
|
|
241
259
|
})());
|
|
242
260
|
break;
|
|
243
261
|
case 'pre':
|
|
244
262
|
out.push((() => {
|
|
245
|
-
let
|
|
246
|
-
template_u1.slot(
|
|
247
|
-
template_u1.setProperties(
|
|
248
|
-
|
|
263
|
+
let root_1szz54a23 = template_1szz54a24();
|
|
264
|
+
template_u1.slot(root_1szz54a23, content, 1);
|
|
265
|
+
template_u1.setProperties(root_1szz54a23, attributes);
|
|
266
|
+
template_u1.setClass(root_1szz54a23, ["markdown-editor-pre"]);
|
|
267
|
+
return root_1szz54a23;
|
|
249
268
|
})());
|
|
250
269
|
break;
|
|
251
270
|
case 's':
|
|
252
271
|
out.push((() => {
|
|
253
|
-
let
|
|
254
|
-
template_u1.slot(
|
|
255
|
-
template_u1.setProperties(
|
|
256
|
-
|
|
272
|
+
let root_1szz54a25 = template_1szz54a26();
|
|
273
|
+
template_u1.slot(root_1szz54a25, content, 1);
|
|
274
|
+
template_u1.setProperties(root_1szz54a25, attributes);
|
|
275
|
+
template_u1.setClass(root_1szz54a25, ["markdown-editor-strike"]);
|
|
276
|
+
return root_1szz54a25;
|
|
257
277
|
})());
|
|
258
278
|
break;
|
|
259
279
|
case 'span':
|
|
260
280
|
out.push((() => {
|
|
261
|
-
let
|
|
262
|
-
template_u1.slot(
|
|
263
|
-
template_u1.setProperties(
|
|
264
|
-
return
|
|
281
|
+
let root_1szz54a27 = template_1szz54a12();
|
|
282
|
+
template_u1.slot(root_1szz54a27, content, 1);
|
|
283
|
+
template_u1.setProperties(root_1szz54a27, attributes);
|
|
284
|
+
return root_1szz54a27;
|
|
265
285
|
})());
|
|
266
286
|
break;
|
|
267
287
|
case 'strong':
|
|
268
288
|
out.push((() => {
|
|
269
|
-
let
|
|
270
|
-
template_u1.slot(
|
|
271
|
-
template_u1.setProperties(
|
|
272
|
-
|
|
289
|
+
let root_1szz54a28 = template_1szz54a29();
|
|
290
|
+
template_u1.slot(root_1szz54a28, content, 1);
|
|
291
|
+
template_u1.setProperties(root_1szz54a28, attributes);
|
|
292
|
+
template_u1.setClass(root_1szz54a28, ["markdown-editor-strong"]);
|
|
293
|
+
return root_1szz54a28;
|
|
273
294
|
})());
|
|
274
295
|
break;
|
|
275
296
|
case 'sub':
|
|
276
297
|
out.push((() => {
|
|
277
|
-
let
|
|
278
|
-
template_u1.slot(
|
|
279
|
-
template_u1.setProperties(
|
|
280
|
-
return
|
|
298
|
+
let root_1szz54a2a = template_1szz54a2b();
|
|
299
|
+
template_u1.slot(root_1szz54a2a, content, 1);
|
|
300
|
+
template_u1.setProperties(root_1szz54a2a, attributes);
|
|
301
|
+
return root_1szz54a2a;
|
|
281
302
|
})());
|
|
282
303
|
break;
|
|
283
304
|
case 'summary':
|
|
284
305
|
out.push((() => {
|
|
285
|
-
let
|
|
286
|
-
template_u1.slot(
|
|
287
|
-
template_u1.slot(
|
|
288
|
-
template_u1.setProperties(
|
|
289
|
-
template_u1.delegate(
|
|
290
|
-
|
|
306
|
+
let root_1szz54a2c = template_1szz54a2d(), element_1szz54a2e = root_1szz54a2c.firstChild;
|
|
307
|
+
template_u1.slot(element_1szz54a2e, icon({ 'aria-hidden': 'true', class: 'markdown-editor-summary-icon' }, chevron));
|
|
308
|
+
template_u1.slot(root_1szz54a2c, content, 1);
|
|
309
|
+
template_u1.setProperties(root_1szz54a2c, attributes);
|
|
310
|
+
template_u1.delegate(root_1szz54a2c, 'mousedown', prevent);
|
|
311
|
+
template_u1.setClass(root_1szz54a2c, ["markdown-editor-summary"]);
|
|
312
|
+
return root_1szz54a2c;
|
|
291
313
|
})());
|
|
292
314
|
break;
|
|
293
315
|
case 'sup':
|
|
294
316
|
out.push((() => {
|
|
295
|
-
let
|
|
296
|
-
template_u1.slot(
|
|
297
|
-
template_u1.setProperties(
|
|
298
|
-
return
|
|
317
|
+
let root_1szz54a2f = template_1szz54a2g();
|
|
318
|
+
template_u1.slot(root_1szz54a2f, content, 1);
|
|
319
|
+
template_u1.setProperties(root_1szz54a2f, attributes);
|
|
320
|
+
return root_1szz54a2f;
|
|
299
321
|
})());
|
|
300
322
|
break;
|
|
301
323
|
case 'table':
|
|
302
324
|
out.push((() => {
|
|
303
|
-
let
|
|
304
|
-
template_u1.slot(
|
|
305
|
-
template_u1.setProperties(
|
|
306
|
-
|
|
325
|
+
let root_1szz54a2h = template_1szz54a2i();
|
|
326
|
+
template_u1.slot(root_1szz54a2h, content, 1);
|
|
327
|
+
template_u1.setProperties(root_1szz54a2h, attributes);
|
|
328
|
+
template_u1.setClass(root_1szz54a2h, ["markdown-editor-table"]);
|
|
329
|
+
return root_1szz54a2h;
|
|
307
330
|
})());
|
|
308
331
|
break;
|
|
309
332
|
case 'tbody':
|
|
310
333
|
out.push((() => {
|
|
311
|
-
let
|
|
312
|
-
template_u1.slot(
|
|
313
|
-
template_u1.setProperties(
|
|
314
|
-
return
|
|
334
|
+
let root_1szz54a2j = template_1szz54a2k();
|
|
335
|
+
template_u1.slot(root_1szz54a2j, content, 1);
|
|
336
|
+
template_u1.setProperties(root_1szz54a2j, attributes);
|
|
337
|
+
return root_1szz54a2j;
|
|
315
338
|
})());
|
|
316
339
|
break;
|
|
317
340
|
case 'td':
|
|
318
341
|
out.push((() => {
|
|
319
|
-
let
|
|
320
|
-
template_u1.slot(
|
|
321
|
-
template_u1.setProperties(
|
|
322
|
-
|
|
342
|
+
let root_1szz54a2l = template_1szz54a2m();
|
|
343
|
+
template_u1.slot(root_1szz54a2l, content, 1);
|
|
344
|
+
template_u1.setProperties(root_1szz54a2l, attributes);
|
|
345
|
+
template_u1.setClass(root_1szz54a2l, ["markdown-editor-cell"]);
|
|
346
|
+
return root_1szz54a2l;
|
|
323
347
|
})());
|
|
324
348
|
break;
|
|
325
349
|
case 'th':
|
|
326
350
|
out.push((() => {
|
|
327
|
-
let
|
|
328
|
-
template_u1.slot(
|
|
329
|
-
template_u1.setProperties(
|
|
330
|
-
|
|
351
|
+
let root_1szz54a2n = template_1szz54a2o();
|
|
352
|
+
template_u1.slot(root_1szz54a2n, content, 1);
|
|
353
|
+
template_u1.setProperties(root_1szz54a2n, attributes);
|
|
354
|
+
template_u1.setClass(root_1szz54a2n, ["markdown-editor-cell markdown-editor-cell--head"]);
|
|
355
|
+
return root_1szz54a2n;
|
|
331
356
|
})());
|
|
332
357
|
break;
|
|
333
358
|
case 'thead':
|
|
334
359
|
out.push((() => {
|
|
335
|
-
let
|
|
336
|
-
template_u1.slot(
|
|
337
|
-
template_u1.setProperties(
|
|
338
|
-
return
|
|
360
|
+
let root_1szz54a2p = template_1szz54a2q();
|
|
361
|
+
template_u1.slot(root_1szz54a2p, content, 1);
|
|
362
|
+
template_u1.setProperties(root_1szz54a2p, attributes);
|
|
363
|
+
return root_1szz54a2p;
|
|
339
364
|
})());
|
|
340
365
|
break;
|
|
341
366
|
case 'tr':
|
|
342
367
|
out.push((() => {
|
|
343
|
-
let
|
|
344
|
-
template_u1.slot(
|
|
345
|
-
template_u1.setProperties(
|
|
346
|
-
return
|
|
368
|
+
let root_1szz54a2r = template_1szz54a2s();
|
|
369
|
+
template_u1.slot(root_1szz54a2r, content, 1);
|
|
370
|
+
template_u1.setProperties(root_1szz54a2r, attributes);
|
|
371
|
+
return root_1szz54a2r;
|
|
347
372
|
})());
|
|
348
373
|
break;
|
|
349
374
|
case 'ul':
|
|
350
375
|
out.push((() => {
|
|
351
|
-
let
|
|
352
|
-
template_u1.slot(
|
|
353
|
-
template_u1.setProperties(
|
|
354
|
-
|
|
376
|
+
let root_1szz54a2t = template_1szz54a2u();
|
|
377
|
+
template_u1.slot(root_1szz54a2t, content, 1);
|
|
378
|
+
template_u1.setProperties(root_1szz54a2t, attributes);
|
|
379
|
+
template_u1.setClass(root_1szz54a2t, ["markdown-editor-list"]);
|
|
380
|
+
return root_1szz54a2t;
|
|
355
381
|
})());
|
|
356
382
|
break;
|
|
357
383
|
}
|
|
@@ -367,43 +393,44 @@ const renderer = (host) => {
|
|
|
367
393
|
}
|
|
368
394
|
if (unit.fold) {
|
|
369
395
|
let first = lines(source, block.from, block.contentTo, block.from).slice(0, 1), chip = (() => {
|
|
370
|
-
let root_1szz54a2 = template_1szz54a3(), element_1szz54a4 = root_1szz54a2.firstChild
|
|
371
|
-
template_u1.slot(
|
|
372
|
-
template_u1.delegate(
|
|
373
|
-
template_u1.delegate(
|
|
396
|
+
let root_1szz54a2 = template_1szz54a3(), element_1szz54a4 = root_1szz54a2.firstChild.nextSibling;
|
|
397
|
+
template_u1.slot(element_1szz54a4, unit.fold.endLine - unit.fold.line);
|
|
398
|
+
template_u1.delegate(root_1szz54a2, 'click', () => host.unfold(unit));
|
|
399
|
+
template_u1.delegate(root_1szz54a2, 'mousedown', prevent);
|
|
400
|
+
template_u1.setClass(root_1szz54a2, ["markdown-editor-chip"]);
|
|
374
401
|
return root_1szz54a2;
|
|
375
402
|
})();
|
|
376
403
|
return [block.kind === 'heading' ? marked(block, undefined, view) : plain(block, first, view), chip];
|
|
377
404
|
}
|
|
378
405
|
switch (block.kind) {
|
|
379
406
|
case 'blank':
|
|
380
|
-
return
|
|
407
|
+
return template_1szz54a5();
|
|
381
408
|
case 'code':
|
|
382
|
-
|
|
383
|
-
let
|
|
384
|
-
template_u1.slot(
|
|
385
|
-
return
|
|
386
|
-
}
|
|
409
|
+
{
|
|
410
|
+
let root_1szz54a6 = template_1szz54a7(), element_1szz54a8 = root_1szz54a6.firstElementChild;
|
|
411
|
+
template_u1.slot(element_1szz54a8, plain(block, unit.rows ?? relative(block), view, true), 1);
|
|
412
|
+
return root_1szz54a6;
|
|
413
|
+
}
|
|
387
414
|
case 'fence':
|
|
388
|
-
|
|
389
|
-
let
|
|
390
|
-
template_u1.slot(
|
|
391
|
-
template_u1.slot(
|
|
392
|
-
return
|
|
393
|
-
}
|
|
415
|
+
{
|
|
416
|
+
let root_1szz54a9 = template_1szz54aa(), element_1szz54ab = root_1szz54a9.firstChild, element_1szz54ac = root_1szz54a9.firstElementChild;
|
|
417
|
+
template_u1.slot(element_1szz54ab, unit.continuation ? '' : info(block, view));
|
|
418
|
+
template_u1.slot(element_1szz54ac, plain(block, unit.rows ?? relative(block), view, true), 1);
|
|
419
|
+
return root_1szz54a9;
|
|
420
|
+
}
|
|
394
421
|
case 'frontmatter':
|
|
395
|
-
|
|
396
|
-
let
|
|
397
|
-
template_u1.slot(
|
|
398
|
-
return
|
|
399
|
-
}
|
|
422
|
+
{
|
|
423
|
+
let root_1szz54ad = template_1szz54ae(), element_1szz54af = root_1szz54ad.firstElementChild;
|
|
424
|
+
template_u1.slot(element_1szz54af, plain(block, lines(source, block.contentFrom, block.contentTo, block.from), view, true), 1);
|
|
425
|
+
return root_1szz54ad;
|
|
426
|
+
}
|
|
400
427
|
case 'html':
|
|
401
428
|
parser ??= new DOMParser();
|
|
402
|
-
|
|
403
|
-
let
|
|
404
|
-
template_u1.slot(
|
|
405
|
-
return
|
|
406
|
-
}
|
|
429
|
+
{
|
|
430
|
+
let root_1szz54ag = template_1szz54ah();
|
|
431
|
+
template_u1.slot(root_1szz54ag, safe(sanitizeHtml(source.slice(block.contentFrom, block.contentTo), parser)), 1);
|
|
432
|
+
return root_1szz54ag;
|
|
433
|
+
}
|
|
407
434
|
case 'list': {
|
|
408
435
|
let content = marked(block, unit.rows ?? block.lines?.map((row) => relativeRow(block, row)), view);
|
|
409
436
|
if (unit.continuation) {
|
|
@@ -414,15 +441,15 @@ const renderer = (host) => {
|
|
|
414
441
|
}
|
|
415
442
|
return [
|
|
416
443
|
(() => {
|
|
417
|
-
let
|
|
418
|
-
template_u1.slot(
|
|
419
|
-
return
|
|
444
|
+
let root_1szz54ai = template_1szz54aj();
|
|
445
|
+
template_u1.slot(root_1szz54ai, ORDERED.test(block.marker ?? '') ? block.marker : '•', 1);
|
|
446
|
+
return root_1szz54ai;
|
|
420
447
|
})(),
|
|
421
448
|
content
|
|
422
449
|
];
|
|
423
450
|
}
|
|
424
451
|
case 'rule':
|
|
425
|
-
return
|
|
452
|
+
return template_1szz54ak();
|
|
426
453
|
default:
|
|
427
454
|
return marked(block, unit.rows ?? block.lines?.map((row) => relativeRow(block, row)), view);
|
|
428
455
|
}
|
|
@@ -434,44 +461,51 @@ const renderer = (host) => {
|
|
|
434
461
|
switch (token.kind) {
|
|
435
462
|
case 'code':
|
|
436
463
|
out.push((() => {
|
|
437
|
-
let
|
|
438
|
-
template_u1.slot(
|
|
439
|
-
return
|
|
464
|
+
let root_1szz54al = template_1szz54am();
|
|
465
|
+
template_u1.slot(root_1szz54al, content, 1);
|
|
466
|
+
return root_1szz54al;
|
|
440
467
|
})());
|
|
441
468
|
break;
|
|
442
469
|
case 'em':
|
|
443
470
|
out.push((() => {
|
|
444
|
-
let
|
|
445
|
-
template_u1.slot(
|
|
446
|
-
return
|
|
471
|
+
let root_1szz54an = template_1szz54ao();
|
|
472
|
+
template_u1.slot(root_1szz54an, content, 1);
|
|
473
|
+
return root_1szz54an;
|
|
474
|
+
})());
|
|
475
|
+
break;
|
|
476
|
+
case 'highlight':
|
|
477
|
+
out.push((() => {
|
|
478
|
+
let root_1szz54ap = template_1szz54aq();
|
|
479
|
+
template_u1.slot(root_1szz54ap, content, 1);
|
|
480
|
+
return root_1szz54ap;
|
|
447
481
|
})());
|
|
448
482
|
break;
|
|
449
483
|
case 'link':
|
|
450
484
|
out.push(token.href
|
|
451
485
|
? (() => {
|
|
452
|
-
let
|
|
453
|
-
template_u1.slot(
|
|
454
|
-
template_u1.setProperty(
|
|
455
|
-
return
|
|
486
|
+
let root_1szz54ar = template_1szz54as();
|
|
487
|
+
template_u1.slot(root_1szz54ar, content, 1);
|
|
488
|
+
template_u1.setProperty(root_1szz54ar, 'href', token.href);
|
|
489
|
+
return root_1szz54ar;
|
|
456
490
|
})()
|
|
457
491
|
: (() => {
|
|
458
|
-
let
|
|
459
|
-
template_u1.slot(
|
|
460
|
-
return
|
|
492
|
+
let root_1szz54at = template_1szz54au();
|
|
493
|
+
template_u1.slot(root_1szz54at, content, 1);
|
|
494
|
+
return root_1szz54at;
|
|
461
495
|
})());
|
|
462
496
|
break;
|
|
463
497
|
case 'strike':
|
|
464
498
|
out.push((() => {
|
|
465
|
-
let
|
|
466
|
-
template_u1.slot(
|
|
467
|
-
return
|
|
499
|
+
let root_1szz54av = template_1szz54aw();
|
|
500
|
+
template_u1.slot(root_1szz54av, content, 1);
|
|
501
|
+
return root_1szz54av;
|
|
468
502
|
})());
|
|
469
503
|
break;
|
|
470
504
|
case 'strong':
|
|
471
505
|
out.push((() => {
|
|
472
|
-
let
|
|
473
|
-
template_u1.slot(
|
|
474
|
-
return
|
|
506
|
+
let root_1szz54ax = template_1szz54ay();
|
|
507
|
+
template_u1.slot(root_1szz54ax, content, 1);
|
|
508
|
+
return root_1szz54ax;
|
|
475
509
|
})());
|
|
476
510
|
break;
|
|
477
511
|
default:
|
|
@@ -482,16 +516,16 @@ const renderer = (host) => {
|
|
|
482
516
|
}
|
|
483
517
|
function info(block, view) {
|
|
484
518
|
let source = host.text(), end = source.indexOf('\n', block.from), line = source.slice(block.from, end < 0 ? source.length : end).replace(CARRIAGE_RETURN, ''), from = FENCE_OPEN.exec(line)?.[0].length ?? line.length;
|
|
485
|
-
|
|
486
|
-
let
|
|
487
|
-
template_u1.slot(
|
|
488
|
-
return
|
|
489
|
-
}
|
|
519
|
+
{
|
|
520
|
+
let root_1szz54az = template_1szz54a10();
|
|
521
|
+
template_u1.slot(root_1szz54az, piece(line.slice(from), block, from, view), 1);
|
|
522
|
+
return root_1szz54az;
|
|
523
|
+
}
|
|
490
524
|
}
|
|
491
525
|
function marked(block, rows, view) {
|
|
492
526
|
let tokens = host.inline(block);
|
|
493
527
|
if (!tokens.length) {
|
|
494
|
-
return
|
|
528
|
+
return template_1szz54a5();
|
|
495
529
|
}
|
|
496
530
|
if (!rows) {
|
|
497
531
|
return inline(tokens, block, view);
|
|
@@ -558,10 +592,10 @@ const renderer = (host) => {
|
|
|
558
592
|
}
|
|
559
593
|
}),
|
|
560
594
|
(() => {
|
|
561
|
-
let
|
|
562
|
-
template_u1.slot(
|
|
563
|
-
template_u1.
|
|
564
|
-
return
|
|
595
|
+
let root_1szz54a11 = template_1szz54a12();
|
|
596
|
+
template_u1.slot(root_1szz54a11, content, 1);
|
|
597
|
+
template_u1.setClass(root_1szz54a11, ["markdown-editor-label", () => state.done && 'markdown-editor-label--done']);
|
|
598
|
+
return root_1szz54a11;
|
|
565
599
|
})()
|
|
566
600
|
];
|
|
567
601
|
}
|
|
@@ -578,33 +612,30 @@ const renderer = (host) => {
|
|
|
578
612
|
template: (unit) => {
|
|
579
613
|
let block = unit.block, view = { segments: [], state: new ReactiveObject_1szz54a1(host.foldable(unit)) }, content = body(unit, view);
|
|
580
614
|
views.set(unit, view);
|
|
581
|
-
|
|
582
|
-
let
|
|
583
|
-
template_u1.slot(
|
|
584
|
-
template_u1.slot(
|
|
585
|
-
template_u1.setProperty(
|
|
586
|
-
template_u1.
|
|
587
|
-
template_u1.delegate(
|
|
588
|
-
template_u1.
|
|
589
|
-
template_u1.
|
|
590
|
-
template_u1.
|
|
591
|
-
block.level ? `markdown-editor-block--h${block.level}` : '',
|
|
592
|
-
block.quoteDepth ? 'markdown-editor-block--quoted' : '',
|
|
593
|
-
unit.continuation ? 'markdown-editor-block--continuation' : '',
|
|
594
|
-
unit.continues ? 'markdown-editor-block--continues' : '',
|
|
595
|
-
block.task && !unit.continuation ? 'markdown-editor-block--task' : '',
|
|
596
|
-
unit.raw || unit.fold ? 'markdown-editor-block--raw' : ''
|
|
597
|
-
]);
|
|
598
|
-
template_u1.onconnect(element_1szz54a1e, (element) => host.shown(element, unit));
|
|
599
|
-
template_u1.ondisconnect(element_1szz54a1e, (element) => {
|
|
615
|
+
{
|
|
616
|
+
let root_1szz54a13 = template_1szz54a14(), element_1szz54a15 = root_1szz54a13.firstElementChild;
|
|
617
|
+
template_u1.slot(element_1szz54a15, icon({ 'aria-hidden': 'true', class: 'markdown-editor-fold-icon' }, chevron), 1);
|
|
618
|
+
template_u1.slot(root_1szz54a13, content, 1);
|
|
619
|
+
template_u1.setProperty(element_1szz54a15, 'aria-label', unit.fold ? 'Unfold block' : 'Fold block');
|
|
620
|
+
template_u1.delegate(element_1szz54a15, 'click', () => unit.fold ? host.unfold(unit) : host.fold(unit));
|
|
621
|
+
template_u1.delegate(element_1szz54a15, 'mousedown', prevent);
|
|
622
|
+
template_u1.setClass(element_1szz54a15, ["markdown-editor-fold", [() => !view.state.foldable && !unit.fold && 'markdown-editor-fold--none', unit.fold ? '--active' : '']]);
|
|
623
|
+
template_u1.onconnect(root_1szz54a13, (element) => host.shown(element, unit));
|
|
624
|
+
template_u1.ondisconnect(root_1szz54a13, (element) => {
|
|
600
625
|
if (views.get(unit) === view) {
|
|
601
626
|
views.delete(unit);
|
|
602
627
|
}
|
|
603
628
|
host.shown(element, null);
|
|
604
629
|
});
|
|
605
|
-
template_u1.
|
|
606
|
-
|
|
607
|
-
|
|
630
|
+
template_u1.setClass(root_1szz54a13, ["markdown-editor-block", "markdown-editor-block--" + (block.kind), [
|
|
631
|
+
block.level ? `markdown-editor-block--h${block.level}` : '',
|
|
632
|
+
block.quoteDepth ? 'markdown-editor-block--quoted' : '',
|
|
633
|
+
block.task && !unit.continuation ? 'markdown-editor-block--task' : '',
|
|
634
|
+
unit.raw || unit.fold ? 'markdown-editor-block--raw' : ''
|
|
635
|
+
]]);
|
|
636
|
+
template_u1.setStyle(root_1szz54a13, ["", `--depth: ${block.quoteDepth}; --indent: ${unit.raw ? 0 : block.indent};`]);
|
|
637
|
+
return root_1szz54a13;
|
|
638
|
+
}
|
|
608
639
|
}
|
|
609
640
|
};
|
|
610
641
|
};
|