@nocobase/plugin-field-markdown-vditor 2.1.23 → 2.1.24
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/dist/client/{715.c6a79599fe53cbbf.js → 715.f5be0d1260975876.js} +1 -1
- package/dist/client/912.b1878f7928099c17.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client/vditor/dist/index.css +45 -58
- package/dist/client/vditor/dist/index.d.ts +6 -0
- package/dist/client/vditor/dist/index.js +16004 -0
- package/dist/client/vditor/dist/index.min.js +1 -1
- package/dist/client/vditor/dist/js/echarts/echarts.min.js +24 -2
- package/dist/client/vditor/dist/js/highlight.js/LICENSE +29 -0
- package/dist/client/vditor/dist/js/highlight.js/highlight.min.js +3844 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/a11y-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/a11y-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/agate.min.css +20 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/an-old-hope.min.css +9 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/androidstudio.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/ant-design.min.css +84 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/arduino-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/arta.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/ascetic.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/atom-one-dark-reasonable.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/atom-one-dark.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/atom-one-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/3024.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/apathy.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/apprentice.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/ashes.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-cave-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-cave.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-dune-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-dune.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-estuary-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-estuary.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-forest-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-forest.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-heath-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-heath.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-lakeside-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-lakeside.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-plateau-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-plateau.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-savanna-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-savanna.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-seaside-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-seaside.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-sulphurpool-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-sulphurpool.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/atlas.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/bespin.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-bathory.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-burzum.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-dark-funeral.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-gorgoroth.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-immortal.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-khold.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-marduk.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-mayhem.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-nile.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-venom.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/brewer.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/bright.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/brogrammer.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/brush-trees-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/brush-trees.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/chalk.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/circus.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/classic-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/classic-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/codeschool.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/colors.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/cupcake.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/cupertino.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/danqing.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/darcula.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/dark-violet.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/darkmoss.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/darktooth.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/decaf.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/default-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/default-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/dirtysea.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/dracula.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/edge-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/edge-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/eighties.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/embers.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/equilibrium-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/equilibrium-gray-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/equilibrium-gray-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/equilibrium-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/espresso.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/eva-dim.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/eva.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/flat.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/framer.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/fruit-soda.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/gigavolt.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/github.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/google-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/google-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/grayscale-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/grayscale-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/green-screen.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-dark-hard.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-dark-medium.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-dark-pale.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-dark-soft.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-light-hard.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-light-medium.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-light-soft.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/hardcore.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/harmonic16-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/harmonic16-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/heetch-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/heetch-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/helios.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/hopscotch.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/horizon-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/horizon-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/humanoid-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/humanoid-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/ia-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/ia-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/icy-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/ir-black.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/isotope.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/kimber.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/london-tube.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/macintosh.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/marrakesh.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/materia.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/material-darker.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/material-lighter.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/material-palenight.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/material-vivid.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/material.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/mellow-purple.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/mexico-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/mocha.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/monokai.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/nebula.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/nord.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/nova.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/ocean.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/oceanicnext.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/one-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/onedark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/outrun-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/papercolor-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/papercolor-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/paraiso.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/pasque.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/phd.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/pico.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/pop.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/porple.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/qualia.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/railscasts.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/rebecca.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/ros-pine-dawn.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/ros-pine-moon.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/ros-pine.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/sagelight.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/sandcastle.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/seti-ui.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/shapeshifter.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/silk-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/silk-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/snazzy.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/solar-flare-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/solar-flare.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/solarized-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/solarized-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/spacemacs.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/summercamp.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/summerfruit-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/summerfruit-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/synth-midnight-terminal-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/synth-midnight-terminal-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/tango.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/tender.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/tomorrow-night.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/tomorrow.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/twilight.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/unikitty-dark.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/unikitty-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/vulcan.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-10-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-10.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-95-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-95.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-high-contrast-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-high-contrast.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-nt-light.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-nt.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/woodland.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/xcode-dusk.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/base16/zenburn.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/brown-paper.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/brown-papersq.png +0 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/codepen-embed.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/color-brewer.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/dark.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/default.min.css +9 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/devibeans.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/docco.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/far.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/felipec.min.css +7 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/foundation.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/github-dark-dimmed.min.css +9 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/github-dark.min.css +10 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/github.min.css +10 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/gml.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/googlecode.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/gradient-dark.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/gradient-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/grayscale.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/hybrid.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/idea.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/intellij-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/ir-black.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/isbl-editor-dark.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/isbl-editor-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/kimbie-dark.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/kimbie-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/lightfair.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/lioshi.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/magula.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/mono-blue.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/monokai-sublime.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/monokai.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/night-owl.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/nnfx-dark.min.css +10 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/nnfx-light.min.css +10 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/nord.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/obsidian.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/panda-syntax-dark.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/panda-syntax-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-dark.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/pojoaque.jpg +0 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/pojoaque.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/purebasic.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/qtcreator-dark.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/qtcreator-light.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/rainbow.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/routeros.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/school-book.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/shades-of-purple.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/srcery.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/stackoverflow-dark.min.css +13 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/stackoverflow-light.min.css +13 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/sunburst.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/tokyo-night-dark.min.css +8 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/tokyo-night-light.min.css +8 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/tomorrow-night-blue.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/tomorrow-night-bright.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/vs.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/vs2015.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/xcode.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/styles/xt256.min.css +1 -0
- package/dist/client/vditor/dist/js/highlight.js/third-languages.js +144 -0
- package/dist/client/vditor/dist/js/i18n/de_DE.js +95 -0
- package/dist/client/vditor/dist/js/i18n/en_US.js +3 -2
- package/dist/client/vditor/dist/js/i18n/es_ES.js +95 -0
- package/dist/client/vditor/dist/js/i18n/fr_FR.js +1 -0
- package/dist/client/vditor/dist/js/i18n/ja_JP.js +1 -0
- package/dist/client/vditor/dist/js/i18n/ko_KR.js +1 -0
- package/dist/client/vditor/dist/js/i18n/pt_BR.js +1 -0
- package/dist/client/vditor/dist/js/i18n/ru_RU.js +7 -6
- package/dist/client/vditor/dist/js/i18n/sv_SE.js +1 -0
- package/dist/client/vditor/dist/js/i18n/vi_VN.js +95 -0
- package/dist/client/vditor/dist/js/i18n/zh_CN.js +1 -0
- package/dist/client/vditor/dist/js/i18n/zh_TW.js +1 -0
- package/dist/client/vditor/dist/js/icons/ant.js +1 -1
- package/dist/client/vditor/dist/js/icons/material.js +3 -3
- package/dist/client/vditor/dist/js/lute/lute.min.js +72 -71
- package/dist/client/vditor/dist/js/mermaid/mermaid.min.js +1592 -744
- package/dist/client/vditor/dist/js/smiles-drawer/smiles-drawer.min.js +80 -0
- package/dist/client/vditor/dist/method.d.ts +8 -7
- package/dist/client/vditor/dist/method.js +2682 -0
- package/dist/client/vditor/dist/method.min.js +1 -1
- package/dist/client/vditor/dist/ts/constants.d.ts +1 -1
- package/dist/client/vditor/dist/ts/export/index.d.ts +0 -1
- package/dist/client/vditor/dist/ts/ir/expandMarker.d.ts +0 -1
- package/dist/client/vditor/dist/ts/ir/highlightToolbarIR.d.ts +0 -1
- package/dist/client/vditor/dist/ts/ir/input.d.ts +0 -1
- package/dist/client/vditor/dist/ts/ir/process.d.ts +0 -1
- package/dist/client/vditor/dist/ts/ir/processKeydown.d.ts +0 -1
- package/dist/client/vditor/dist/ts/markdown/SMILESRender.d.ts +1 -0
- package/dist/client/vditor/dist/ts/markdown/adapterRender.d.ts +8 -4
- package/dist/client/vditor/dist/ts/markdown/codeRender.d.ts +0 -1
- package/dist/client/vditor/dist/ts/markdown/getHTML.d.ts +0 -1
- package/dist/client/vditor/dist/ts/markdown/getMarkdown.d.ts +0 -1
- package/dist/client/vditor/dist/ts/markdown/highlightRender.d.ts +0 -1
- package/dist/client/vditor/dist/ts/markdown/markmapRender.d.ts +1 -1
- package/dist/client/vditor/dist/ts/markdown/mathRender.d.ts +1 -2
- package/dist/client/vditor/dist/ts/markdown/mermaidRender.d.ts +1 -1
- package/dist/client/vditor/dist/ts/markdown/outlineRender.d.ts +0 -1
- package/dist/client/vditor/dist/ts/markdown/previewRender.d.ts +0 -1
- package/dist/client/vditor/dist/ts/markdown/setLute.d.ts +0 -1
- package/dist/client/vditor/dist/ts/markdown/speechRender.d.ts +0 -1
- package/dist/client/vditor/dist/ts/preview/image.d.ts +0 -1
- package/dist/client/vditor/dist/ts/sv/inputEvent.d.ts +0 -1
- package/dist/client/vditor/dist/ts/sv/process.d.ts +0 -1
- package/dist/client/vditor/dist/ts/sv/processKeydown.d.ts +0 -1
- package/dist/client/vditor/dist/ts/toolbar/index.d.ts +1 -0
- package/dist/client/vditor/dist/ts/toolbar/setToolbar.d.ts +0 -1
- package/dist/client/vditor/dist/ts/ui/initUI.d.ts +0 -6
- package/dist/client/vditor/dist/ts/ui/setPreviewMode.d.ts +0 -1
- package/dist/client/vditor/dist/ts/ui/setTheme.d.ts +0 -1
- package/dist/client/vditor/dist/ts/upload/getElement.d.ts +0 -1
- package/dist/client/vditor/dist/ts/upload/index.d.ts +0 -1
- package/dist/client/vditor/dist/ts/upload/setHeaders.d.ts +0 -1
- package/dist/client/vditor/dist/ts/util/editorCommonEvent.d.ts +0 -1
- package/dist/client/vditor/dist/ts/util/fixBrowserBehavior.d.ts +0 -1
- package/dist/client/vditor/dist/ts/util/function.d.ts +1 -0
- package/dist/client/vditor/dist/ts/util/highlightToolbar.d.ts +0 -1
- package/dist/client/vditor/dist/ts/util/processCode.d.ts +0 -1
- package/dist/client/vditor/dist/ts/util/selection.d.ts +0 -1
- package/dist/client/vditor/dist/ts/util/toc.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/afterRenderEvent.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/inlineTag.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/input.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/processKeydown.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/renderDomByMd.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/setHeading.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/showCode.d.ts +0 -1
- package/dist/client/vditor/dist/ts/wysiwyg/toolbarEvent.d.ts +0 -1
- package/dist/client/vditor/dist/types/index.d.ts +61 -6
- package/dist/client-v2/index.js +1 -1
- package/dist/externalVersion.js +6 -6
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/package.json +3 -3
- package/dist/client/742.9e3de1a740ca456f.js +0 -10
- package/dist/client/vditor/dist/js/highlight.js/highlight.pack.js +0 -1626
- package/dist/client/vditor/dist/js/highlight.js/solidity.min.js +0 -82
- package/dist/client/vditor/dist/js/highlight.js/styles/abap.css +0 -155
- package/dist/client/vditor/dist/js/highlight.js/styles/algol.css +0 -143
- package/dist/client/vditor/dist/js/highlight.js/styles/algol_nu.css +0 -90
- package/dist/client/vditor/dist/js/highlight.js/styles/ant-design.css +0 -469
- package/dist/client/vditor/dist/js/highlight.js/styles/arduino.css +0 -157
- package/dist/client/vditor/dist/js/highlight.js/styles/autumn.css +0 -138
- package/dist/client/vditor/dist/js/highlight.js/styles/borland.css +0 -147
- package/dist/client/vditor/dist/js/highlight.js/styles/bw.css +0 -150
- package/dist/client/vditor/dist/js/highlight.js/styles/colorful.css +0 -158
- package/dist/client/vditor/dist/js/highlight.js/styles/dracula.css +0 -140
- package/dist/client/vditor/dist/js/highlight.js/styles/emacs.css +0 -167
- package/dist/client/vditor/dist/js/highlight.js/styles/friendly.css +0 -183
- package/dist/client/vditor/dist/js/highlight.js/styles/fruity.css +0 -123
- package/dist/client/vditor/dist/js/highlight.js/styles/github.css +0 -174
- package/dist/client/vditor/dist/js/highlight.js/styles/igor.css +0 -124
- package/dist/client/vditor/dist/js/highlight.js/styles/lovelace.css +0 -146
- package/dist/client/vditor/dist/js/highlight.js/styles/manni.css +0 -139
- package/dist/client/vditor/dist/js/highlight.js/styles/monokai.css +0 -132
- package/dist/client/vditor/dist/js/highlight.js/styles/monokailight.css +0 -180
- package/dist/client/vditor/dist/js/highlight.js/styles/murphy.css +0 -144
- package/dist/client/vditor/dist/js/highlight.js/styles/native.css +0 -164
- package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-dark.css +0 -137
- package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-light.css +0 -136
- package/dist/client/vditor/dist/js/highlight.js/styles/pastie.css +0 -180
- package/dist/client/vditor/dist/js/highlight.js/styles/perldoc.css +0 -141
- package/dist/client/vditor/dist/js/highlight.js/styles/pygments.css +0 -159
- package/dist/client/vditor/dist/js/highlight.js/styles/rainbow_dash.css +0 -164
- package/dist/client/vditor/dist/js/highlight.js/styles/rrt.css +0 -159
- package/dist/client/vditor/dist/js/highlight.js/styles/solarized-dark.css +0 -146
- package/dist/client/vditor/dist/js/highlight.js/styles/solarized-dark256.css +0 -146
- package/dist/client/vditor/dist/js/highlight.js/styles/solarized-light.css +0 -163
- package/dist/client/vditor/dist/js/highlight.js/styles/swapoff.css +0 -144
- package/dist/client/vditor/dist/js/highlight.js/styles/tango.css +0 -183
- package/dist/client/vditor/dist/js/highlight.js/styles/trac.css +0 -167
- package/dist/client/vditor/dist/js/highlight.js/styles/vim.css +0 -144
- package/dist/client/vditor/dist/js/highlight.js/styles/vs.css +0 -113
- package/dist/client/vditor/dist/js/highlight.js/styles/xcode.css +0 -174
- package/dist/client/vditor/dist/js/highlight.js/yul.min.js +0 -39
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";(self.webpackChunk_nocobase_plugin_field_markdown_vditor=self.webpackChunk_nocobase_plugin_field_markdown_vditor||[]).push([["715"],{590:function(e,t,r){r.r(t),r.d(t,{default:function(){return O},MarkdownVditor:function(){return _}});var n=r(230),o=r(342),i=r(59),l=r(155),a=r.n(l),u=r(597),c=r.n(u),d=r(502),s=function(){var e=(0,o.usePlugin)(d.PluginFieldMarkdownVditorClient);return e.dependencyLoaded||(e.initVditorDependency(),e.dependencyLoaded=!0),e.getCDN()},f=(0,o.genStyleHook)("nb-field-markdown-vditor",function(e){var t,r,n;return t={},r=e.componentCls,n={position:"relative",overflow:"visible","&:hover, &:focus-within":{zIndex:1e3},".vditor-reset":{fontSize:"".concat(e.fontSize,"px !important"),color:"unset",padding:"10px !important"},".vditor":{borderRadius:8,overflow:"visible"},".vditor .vditor-content":{borderRadius:"0 0 8px 8px",overflow:"hidden"},".vditor .vditor-toolbar":{position:"relative",overflow:"visible",paddingLeft:" 16px !important",borderRadius:"8px 8px 0 0"},".vditor .vditor-tooltipped:hover, .vditor .vditor-tooltipped:focus, .vditor .vditor-tooltipped:active":{zIndex:1e3},".vditor .vditor-toolbar .vditor-tooltipped__n::after, .vditor .vditor-toolbar .vditor-tooltipped__ne::after, .vditor .vditor-toolbar .vditor-tooltipped__nw::after":{top:"100%",bottom:"auto",marginTop:5,marginBottom:0},".vditor .vditor-toolbar .vditor-tooltipped__n::before, .vditor .vditor-toolbar .vditor-tooltipped__ne::before, .vditor .vditor-toolbar .vditor-tooltipped__nw::before":{top:"auto",bottom:-5,borderTopColor:"transparent",borderBottomColor:"#3b3e43"},".vditor .vditor-content .vditor-ir .vditor-reset":{paddingLeft:" 16px !important"},".vditor-ir pre.vditor-reset":{backgroundColor:"".concat(e.colorBgContainer,"!important")}},r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t});function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);l=!0);}catch(e){a=!0,n=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=function(e){if(e){var t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect().width}};function b(e){var t,r=(0,l.useRef)(null),n=f(),o=n.wrapSSR,i=n.componentCls,u=n.hashId,d=s();return(0,l.useEffect)(function(){var t;c().preview(r.current,null!=(t=e.value)?t:"",{mode:"light",cdn:d}),setTimeout(function(){var e;null==(e=r.current)||e.querySelectorAll("img").forEach(function(e){e.style.cursor="zoom-in",e.addEventListener("click",function(){var t=e.src;if(!document.getElementById("custom-image-preview")){var r=document.createElement("span");r.id="custom-image-preview",Object.assign(r.style,{position:"fixed",inset:"0",backgroundColor:"rgba(0,0,0,0.85)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"9999",cursor:"zoom-out"});var n=document.createElement("img");n.src=t,Object.assign(n.style,{maxWidth:"90%",maxHeight:"90%",borderRadius:"8px",boxShadow:"0 0 20px rgba(0,0,0,0.5)",transition:"transform 0.2s",cursor:"zoom-out"}),r.addEventListener("click",function(){document.body.removeChild(r)}),r.appendChild(n),document.body.appendChild(r)}})})},0)},[e.value]),o(a().createElement("span",{className:"".concat(u," ").concat(i)},a().createElement("span",{ref:r,style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({border:"none"},null!=(t=null==e?void 0:e.style)?t:{})})))}var y=(0,o.withDynamicSchemaProps)(function(e){var t,r=(0,n.useField)(),o=null!=(t=e.value)?t:null==r?void 0:r.value,u=s(),d=(0,l.useRef)(),f=p((0,l.useState)(!1),2),v=f[0],y=f[1],h=p((0,l.useState)(!1),2),g=h[0],w=h[1],S=p((0,l.useState)(""),2),x=S[0],C=S[1],E=(0,l.useRef)();(0,l.useEffect)(function(){if(e.value&&(!r||(null==r?void 0:r.value)))if(e.ellipsis)c().md2html(e.value,{mode:"light",cdn:u}).then(function(e){var t,r;C(((t=document.createElement("div")).innerHTML=e,r=t.innerText,t=null,(null==r?void 0:r.replace(/[\n\r]/g,""))||""))}).catch(function(){return C("")});else{var t;c().preview(d.current,null!=(t=e.value)?t:null==r?void 0:r.value,{mode:"light",cdn:u})}},[e.value,e.ellipsis,null==r?void 0:r.value]);var _=(0,l.useCallback)(function(){var e;return!!E.current&&m(E.current)>(null==(e=E.current)?void 0:e.offsetWidth)},[E]);return e.ellipsis?a().createElement(i.Popover,{open:v,onOpenChange:function(e){y(g&&e)},content:a().createElement(b,{value:o,style:{maxWidth:500,maxHeight:400,overflowY:"auto"}})},a().createElement("div",{ref:E,style:{overflow:"hidden",overflowWrap:"break-word",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"},onMouseEnter:function(e){var t=e.target;_()&&w(t.scrollWidth>=t.clientWidth)}},x)):a().createElement(b,{value:o})}),h=r(953),g=r(280),w=r(872);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t,r,n,o,i,l){try{var a=e[i](l),u=a.value}catch(e){r(e);return}a.done?t(u):Promise.resolve(u).then(n,o)}var C=["en_US","fr_FR","pt_BR","ja_JP","ko_KR","ru_RU","sv_SE","zh_CN","zh_TW"],E=(0,o.withDynamicSchemaProps)(function(e){var t,r=e.disabled,n=e.onChange,i=e.value,u=e.fileCollection,d=e.toolbar,v=e.editMode,p=void 0===v?"ir":v,m=function(e){if(Array.isArray(e))return e}(t=(0,l.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return S(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=m[0],y=m[1],E=(0,l.useRef)(),_=(0,l.useRef)(!1),O=(0,l.useRef)(null),R=(0,l.useRef)(null),k=(0,o.useAPIClient)(),I=s(),j=f(),A=j.wrapSSR,P=j.hashId,T=j.componentCls,L=k.auth.locale||"en-US",z=(0,o.usePlugin)("@nocobase/plugin-file-manager"),M=(0,o.useCompile)(),N=(0,l.useRef)(M);N.current=M;var F=(0,h.useTranslation)().t,V=(0,o.useZIndexContext)(),W=(0,o.getZIndex)("drawer",V+1e3,0),q=(0,l.useMemo)(function(){var e=L.replace(/-/g,"_");return C.includes(e)?e:"en_US"},[L]);return(0,l.useEffect)(function(){if(O.current){var e=null!=d?d:g.r,t=new(c())(O.current,{value:null!=i?i:"",lang:q,cache:{enable:!1},undoDelay:0,preview:{math:{engine:"KaTeX"}},toolbar:e,fullscreen:{index:1200},cdn:I,minHeight:200,mode:p,after:function(){E.current=t,y(!0);var e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;t.setValue(null!=i?i:""),requestAnimationFrame(function(){window.scrollTo(e,n)}),r?t.disabled():t.enable()},input:function(e){n(e)},upload:{multiple:!1,fieldName:"file",handler:function(e){var r;return(r=function(){var r,n,o,i,l,a,c,d,s,f,v,p,m,b,y;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(l,"next",{value:u(0)}),a(l,"throw",{value:u(1)}),a(l,"return",{value:u(2)}),"function"==typeof Symbol&&a(l,Symbol.iterator,{value:function(){return this}}),l;function u(a){return function(u){var c=[a,u];if(r)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(h){switch(h.label){case 0:return d=e[0],t.focus(),[4,k.resource("vditor").check({fileCollectionName:u})];case 1:if(!(null==(s=h.sent().data)||null==(r=s.data)?void 0:r.isSupportToUploadFiles))return t.tip(F("vditor.uploadError.message",{ns:w.C,storageTitle:null==(f=s.data.storage)?void 0:f.title}),0),[2];return t.tip(F("uploading"),0),[4,z.uploadFile({file:d,fileCollectionName:u,storageId:null==s||null==(o=s.data)||null==(n=o.storage)?void 0:n.id,storageType:null==s||null==(l=s.data)||null==(i=l.storage)?void 0:i.type,storageRules:null==s||null==(c=s.data)||null==(a=c.storage)?void 0:a.rules})];case 2:if(p=(v=h.sent()).data,m=v.errorMessage)return t.tip(N.current(m),3e3),[2];if(!p)return t.tip(F("Response data is empty",{ns:w.C}),3e3),[2];return b=p.filename,y=p.url,d.type.startsWith("image/")?t.insertValue(".concat(y,")")):t.insertValue("[".concat(b,"](").concat(y,")")),t.tip(F(""),10),[2,null]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function l(e){x(i,n,o,l,a,"next",e)}function a(e){x(i,n,o,l,a,"throw",e)}l(void 0)})})()}}}),o=O.current;if(o){var l=new MutationObserver(function(){var e=o.classList.contains("vditor--fullscreen"),t=o.querySelectorAll(".vditor-reset"),r=o.querySelectorAll(".vditor-toolbar");t.forEach(function(t){t.style.padding=e?"10px 200px":""}),r.forEach(function(t){t.style.paddingLeft=e?"200px":""})});return l.observe(o,{attributes:!0,attributeFilter:["class"]}),function(){var e;null==(e=E.current)||e.destroy(),E.current=void 0,l.disconnect()}}}},[null==d?void 0:d.join(","),p]),(0,l.useEffect)(function(){if(b&&E.current){var e=E.current;if(i!==e.getValue()){var t,r,n,o,l=window.scrollX||window.pageXOffset,a=window.scrollY||window.pageYOffset;e.setValue(null!=i?i:"");var u=null==(t=O.current)?void 0:t.querySelector("div.vditor-content > div.vditor-ir > pre"),c=null==(r=O.current)?void 0:r.querySelector(".vditor-content"),d=u&&(document.activeElement===u||u.contains(document.activeElement)||(null==(o=document.activeElement)||null==(n=o.closest)?void 0:n.call(o,".vditor-content"))===c);if(u&&d){var s=document.createRange(),f=window.getSelection();f&&(s.selectNodeContents(u),s.collapse(!1),f.removeAllRanges(),f.addRange(s))}d||requestAnimationFrame(function(){window.scrollTo(l,a)})}}},[i,b]),(0,l.useEffect)(function(){b&&E.current&&(r?E.current.disabled():E.current.enable())},[r,b]),(0,l.useEffect)(function(){if(R.current){var e=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var l=o.value,a=!0,u=!1,c=void 0;try{for(var d,s=Array.from(l.addedNodes)[Symbol.iterator]();!(a=(d=s.next()).done);a=!0){var f,v=d.value;f=HTMLElement,(null!=f&&"u">typeof Symbol&&f[Symbol.hasInstance]?!!f[Symbol.hasInstance](v):v instanceof f)&&v.classList.contains("vditor-img")&&(R.current.appendChild(v),v.style.zIndex=String(W))}}catch(e){u=!0,c=e}finally{try{a||null==s.return||s.return()}finally{if(u)throw c}}}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}});return e.observe(document.body,{childList:!0}),function(){e.disconnect()}}},[W]),(0,l.useLayoutEffect)(function(){if(O.current){var e=new ResizeObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var l,a=o.value.target;a.className.includes("vditor--fullscreen")?(document.body.appendChild(a),_.current=!0):_.current&&(null==(l=R.current)||l.appendChild(a),_.current=!1)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}});return e.observe(O.current),function(){e.unobserve(O.current)}}},[]),A(a().createElement("div",{ref:R,className:"".concat(P," ").concat(T)},a().createElement("div",{ref:O})))}),_=(0,o.withDynamicSchemaProps)((0,n.connect)(E,(0,n.mapReadPretty)(y))),O=_}}]);
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_field_markdown_vditor=self.webpackChunk_nocobase_plugin_field_markdown_vditor||[]).push([["715"],{590:function(e,t,r){r.r(t),r.d(t,{default:function(){return O},MarkdownVditor:function(){return _}});var n=r(230),o=r(342),i=r(59),l=r(155),a=r.n(l),u=r(131),c=r.n(u),d=r(502),s=function(){var e=(0,o.usePlugin)(d.PluginFieldMarkdownVditorClient);return e.dependencyLoaded||(e.initVditorDependency(),e.dependencyLoaded=!0),e.getCDN()},f=(0,o.genStyleHook)("nb-field-markdown-vditor",function(e){var t,r,n;return t={},r=e.componentCls,n={position:"relative",overflow:"visible","&:hover, &:focus-within":{zIndex:1e3},".vditor-reset":{fontSize:"".concat(e.fontSize,"px !important"),color:"unset",padding:"10px !important"},".vditor":{borderRadius:8,overflow:"visible"},".vditor .vditor-content":{borderRadius:"0 0 8px 8px",overflow:"hidden"},".vditor .vditor-toolbar":{position:"relative",overflow:"visible",paddingLeft:" 16px !important",borderRadius:"8px 8px 0 0"},".vditor .vditor-tooltipped:hover, .vditor .vditor-tooltipped:focus, .vditor .vditor-tooltipped:active":{zIndex:1e3},".vditor .vditor-toolbar .vditor-tooltipped__n::after, .vditor .vditor-toolbar .vditor-tooltipped__ne::after, .vditor .vditor-toolbar .vditor-tooltipped__nw::after":{top:"100%",bottom:"auto",marginTop:5,marginBottom:0},".vditor .vditor-toolbar .vditor-tooltipped__n::before, .vditor .vditor-toolbar .vditor-tooltipped__ne::before, .vditor .vditor-toolbar .vditor-tooltipped__nw::before":{top:"auto",bottom:-5,borderTopColor:"transparent",borderBottomColor:"#3b3e43"},".vditor .vditor-content .vditor-ir .vditor-reset":{paddingLeft:" 16px !important"},".vditor-ir pre.vditor-reset":{backgroundColor:"".concat(e.colorBgContainer,"!important")}},r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t});function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);l=!0);}catch(e){a=!0,n=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=function(e){if(e){var t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect().width}};function b(e){var t,r=(0,l.useRef)(null),n=f(),o=n.wrapSSR,i=n.componentCls,u=n.hashId,d=s();return(0,l.useEffect)(function(){var t;c().preview(r.current,null!=(t=e.value)?t:"",{mode:"light",cdn:d}),setTimeout(function(){var e;null==(e=r.current)||e.querySelectorAll("img").forEach(function(e){e.style.cursor="zoom-in",e.addEventListener("click",function(){var t=e.src;if(!document.getElementById("custom-image-preview")){var r=document.createElement("span");r.id="custom-image-preview",Object.assign(r.style,{position:"fixed",inset:"0",backgroundColor:"rgba(0,0,0,0.85)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"9999",cursor:"zoom-out"});var n=document.createElement("img");n.src=t,Object.assign(n.style,{maxWidth:"90%",maxHeight:"90%",borderRadius:"8px",boxShadow:"0 0 20px rgba(0,0,0,0.5)",transition:"transform 0.2s",cursor:"zoom-out"}),r.addEventListener("click",function(){document.body.removeChild(r)}),r.appendChild(n),document.body.appendChild(r)}})})},0)},[e.value]),o(a().createElement("span",{className:"".concat(u," ").concat(i)},a().createElement("span",{ref:r,style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({border:"none"},null!=(t=null==e?void 0:e.style)?t:{})})))}var y=(0,o.withDynamicSchemaProps)(function(e){var t,r=(0,n.useField)(),o=null!=(t=e.value)?t:null==r?void 0:r.value,u=s(),d=(0,l.useRef)(),f=p((0,l.useState)(!1),2),v=f[0],y=f[1],h=p((0,l.useState)(!1),2),g=h[0],w=h[1],S=p((0,l.useState)(""),2),x=S[0],C=S[1],E=(0,l.useRef)();(0,l.useEffect)(function(){if(e.value&&(!r||(null==r?void 0:r.value)))if(e.ellipsis)c().md2html(e.value,{mode:"light",cdn:u}).then(function(e){var t,r;C(((t=document.createElement("div")).innerHTML=e,r=t.innerText,t=null,(null==r?void 0:r.replace(/[\n\r]/g,""))||""))}).catch(function(){return C("")});else{var t;c().preview(d.current,null!=(t=e.value)?t:null==r?void 0:r.value,{mode:"light",cdn:u})}},[e.value,e.ellipsis,null==r?void 0:r.value]);var _=(0,l.useCallback)(function(){var e;return!!E.current&&m(E.current)>(null==(e=E.current)?void 0:e.offsetWidth)},[E]);return e.ellipsis?a().createElement(i.Popover,{open:v,onOpenChange:function(e){y(g&&e)},content:a().createElement(b,{value:o,style:{maxWidth:500,maxHeight:400,overflowY:"auto"}})},a().createElement("div",{ref:E,style:{overflow:"hidden",overflowWrap:"break-word",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"},onMouseEnter:function(e){var t=e.target;_()&&w(t.scrollWidth>=t.clientWidth)}},x)):a().createElement(b,{value:o})}),h=r(953),g=r(280),w=r(872);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t,r,n,o,i,l){try{var a=e[i](l),u=a.value}catch(e){r(e);return}a.done?t(u):Promise.resolve(u).then(n,o)}var C=["en_US","fr_FR","pt_BR","ja_JP","ko_KR","ru_RU","sv_SE","zh_CN","zh_TW"],E=(0,o.withDynamicSchemaProps)(function(e){var t,r=e.disabled,n=e.onChange,i=e.value,u=e.fileCollection,d=e.toolbar,v=e.editMode,p=void 0===v?"ir":v,m=function(e){if(Array.isArray(e))return e}(t=(0,l.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return S(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=m[0],y=m[1],E=(0,l.useRef)(),_=(0,l.useRef)(!1),O=(0,l.useRef)(null),R=(0,l.useRef)(null),k=(0,o.useAPIClient)(),I=s(),j=f(),A=j.wrapSSR,P=j.hashId,T=j.componentCls,L=k.auth.locale||"en-US",z=(0,o.usePlugin)("@nocobase/plugin-file-manager"),M=(0,o.useCompile)(),N=(0,l.useRef)(M);N.current=M;var F=(0,h.useTranslation)().t,V=(0,o.useZIndexContext)(),W=(0,o.getZIndex)("drawer",V+1e3,0),q=(0,l.useMemo)(function(){var e=L.replace(/-/g,"_");return C.includes(e)?e:"en_US"},[L]);return(0,l.useEffect)(function(){if(O.current){var e=null!=d?d:g.r,t=new(c())(O.current,{value:null!=i?i:"",lang:q,cache:{enable:!1},undoDelay:0,preview:{math:{engine:"KaTeX"}},toolbar:e,fullscreen:{index:1200},cdn:I,minHeight:200,mode:p,after:function(){E.current=t,y(!0);var e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;t.setValue(null!=i?i:""),requestAnimationFrame(function(){window.scrollTo(e,n)}),r?t.disabled():t.enable()},input:function(e){n(e)},upload:{multiple:!1,fieldName:"file",handler:function(e){var r;return(r=function(){var r,n,o,i,l,a,c,d,s,f,v,p,m,b,y;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(l,"next",{value:u(0)}),a(l,"throw",{value:u(1)}),a(l,"return",{value:u(2)}),"function"==typeof Symbol&&a(l,Symbol.iterator,{value:function(){return this}}),l;function u(a){return function(u){var c=[a,u];if(r)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(h){switch(h.label){case 0:return d=e[0],t.focus(),[4,k.resource("vditor").check({fileCollectionName:u})];case 1:if(!(null==(s=h.sent().data)||null==(r=s.data)?void 0:r.isSupportToUploadFiles))return t.tip(F("vditor.uploadError.message",{ns:w.C,storageTitle:null==(f=s.data.storage)?void 0:f.title}),0),[2];return t.tip(F("uploading"),0),[4,z.uploadFile({file:d,fileCollectionName:u,storageId:null==s||null==(o=s.data)||null==(n=o.storage)?void 0:n.id,storageType:null==s||null==(l=s.data)||null==(i=l.storage)?void 0:i.type,storageRules:null==s||null==(c=s.data)||null==(a=c.storage)?void 0:a.rules})];case 2:if(p=(v=h.sent()).data,m=v.errorMessage)return t.tip(N.current(m),3e3),[2];if(!p)return t.tip(F("Response data is empty",{ns:w.C}),3e3),[2];return b=p.filename,y=p.url,d.type.startsWith("image/")?t.insertValue(".concat(y,")")):t.insertValue("[".concat(b,"](").concat(y,")")),t.tip(F(""),10),[2,null]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function l(e){x(i,n,o,l,a,"next",e)}function a(e){x(i,n,o,l,a,"throw",e)}l(void 0)})})()}}}),o=O.current;if(o){var l=new MutationObserver(function(){var e=o.classList.contains("vditor--fullscreen"),t=o.querySelectorAll(".vditor-reset"),r=o.querySelectorAll(".vditor-toolbar");t.forEach(function(t){t.style.padding=e?"10px 200px":""}),r.forEach(function(t){t.style.paddingLeft=e?"200px":""})});return l.observe(o,{attributes:!0,attributeFilter:["class"]}),function(){var e;null==(e=E.current)||e.destroy(),E.current=void 0,l.disconnect()}}}},[null==d?void 0:d.join(","),p]),(0,l.useEffect)(function(){if(b&&E.current){var e=E.current;if(i!==e.getValue()){var t,r,n,o,l=window.scrollX||window.pageXOffset,a=window.scrollY||window.pageYOffset;e.setValue(null!=i?i:"");var u=null==(t=O.current)?void 0:t.querySelector("div.vditor-content > div.vditor-ir > pre"),c=null==(r=O.current)?void 0:r.querySelector(".vditor-content"),d=u&&(document.activeElement===u||u.contains(document.activeElement)||(null==(o=document.activeElement)||null==(n=o.closest)?void 0:n.call(o,".vditor-content"))===c);if(u&&d){var s=document.createRange(),f=window.getSelection();f&&(s.selectNodeContents(u),s.collapse(!1),f.removeAllRanges(),f.addRange(s))}d||requestAnimationFrame(function(){window.scrollTo(l,a)})}}},[i,b]),(0,l.useEffect)(function(){b&&E.current&&(r?E.current.disabled():E.current.enable())},[r,b]),(0,l.useEffect)(function(){if(R.current){var e=new MutationObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var l=o.value,a=!0,u=!1,c=void 0;try{for(var d,s=Array.from(l.addedNodes)[Symbol.iterator]();!(a=(d=s.next()).done);a=!0){var f,v=d.value;f=HTMLElement,(null!=f&&"u">typeof Symbol&&f[Symbol.hasInstance]?!!f[Symbol.hasInstance](v):v instanceof f)&&v.classList.contains("vditor-img")&&(R.current.appendChild(v),v.style.zIndex=String(W))}}catch(e){u=!0,c=e}finally{try{a||null==s.return||s.return()}finally{if(u)throw c}}}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}});return e.observe(document.body,{childList:!0}),function(){e.disconnect()}}},[W]),(0,l.useLayoutEffect)(function(){if(O.current){var e=new ResizeObserver(function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var l,a=o.value.target;a.className.includes("vditor--fullscreen")?(document.body.appendChild(a),_.current=!0):_.current&&(null==(l=R.current)||l.appendChild(a),_.current=!1)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}});return e.observe(O.current),function(){e.unobserve(O.current)}}},[]),A(a().createElement("div",{ref:R,className:"".concat(P," ").concat(T)},a().createElement("div",{ref:O})))}),_=(0,o.withDynamicSchemaProps)((0,n.connect)(E,(0,n.mapReadPretty)(y))),O=_}}]);
|