markdown-flow-ui 0.2.14 → 0.2.16-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/assets/markdown-flow-ui.css +10 -1
- package/dist/components/ContentRender/CodeBlock.cjs +1 -1
- package/dist/components/ContentRender/CodeBlock.cjs.map +1 -1
- package/dist/components/ContentRender/CodeBlock.d.ts +5 -0
- package/dist/components/ContentRender/CodeBlock.es.js +41 -38
- package/dist/components/ContentRender/CodeBlock.es.js.map +1 -1
- package/dist/components/ContentRender/ContentRender.cjs +2 -2
- package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
- package/dist/components/ContentRender/ContentRender.d.ts +12 -4
- package/dist/components/ContentRender/ContentRender.es.js +436 -306
- package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.cjs +7 -7
- package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.d.ts +5 -1
- package/dist/components/ContentRender/IframeSandbox.es.js +311 -266
- package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.d.ts +5 -1
- package/dist/components/ContentRender/MarkdownFlowInput.es.js +37 -32
- package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
- package/dist/components/ContentRender/SandboxApp.cjs +2 -2
- package/dist/components/ContentRender/SandboxApp.cjs.map +1 -1
- package/dist/components/ContentRender/SandboxApp.d.ts +5 -1
- package/dist/components/ContentRender/SandboxApp.es.js +108 -103
- package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
- package/dist/components/ContentRender/blackboard-vendor.d.ts +1 -1
- package/dist/components/ContentRender/contentRenderI18n.cjs +1 -1
- package/dist/components/ContentRender/contentRenderI18n.cjs.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.d.ts +6 -1
- package/dist/components/ContentRender/contentRenderI18n.es.js +5 -56
- package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.test.d.ts +1 -0
- package/dist/components/ContentRender/index.cjs +1 -1
- package/dist/components/ContentRender/index.d.ts +11 -11
- package/dist/components/ContentRender/index.es.js +1 -2
- package/dist/components/ContentRender/index.es.js.map +1 -1
- package/dist/components/ContentRender/locales/contentRender.json.cjs +2 -0
- package/dist/components/ContentRender/locales/contentRender.json.cjs.map +1 -0
- package/dist/components/ContentRender/locales/contentRender.json.d.ts +90 -0
- package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -0
- package/dist/components/ContentRender/locales/contentRender.json.es.js.map +1 -0
- package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.d.ts +7 -3
- package/dist/components/ContentRender/plugins/CustomVariable.es.js +165 -151
- package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.cjs +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.d.ts +1 -0
- package/dist/components/ContentRender/plugins/MermaidChart.es.js +68 -44
- package/dist/components/ContentRender/plugins/MermaidChart.es.js.map +1 -1
- package/dist/components/ContentRender/typewriterPacing.fixtures.d.ts +14 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.cjs +3 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.cjs.map +1 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.d.ts +27 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.es.js +98 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.es.js.map +1 -0
- package/dist/components/ContentRender/utils/typewriter-pacing.test.d.ts +1 -0
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +12 -4
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js +51 -39
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.d.ts +31 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js +46 -17
- package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +2 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.d.ts +18 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +47 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -0
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs.map +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js +33 -52
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js.map +1 -1
- package/dist/components/MarkdownFlow/index.cjs +1 -1
- package/dist/components/MarkdownFlow/index.d.ts +9 -6
- package/dist/components/MarkdownFlow/index.es.js +6 -6
- package/dist/components/MarkdownFlow/index.es.js.map +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.cjs +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.d.ts +40 -8
- package/dist/components/MarkdownFlow/useScrollToBottom.es.js +352 -83
- package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +5 -3
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +371 -324
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.d.ts +10 -0
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js +22 -19
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +8 -0
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +19 -15
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +4 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +99 -93
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js +183 -182
- package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +107 -103
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +106 -106
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js +64 -63
- package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js +13 -13
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +12 -12
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editor-context.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +290 -0
- package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -8
- package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.test.d.ts +1 -0
- package/dist/components/MarkdownFlowEditor/index.d.ts +6 -6
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +72 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +140 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +118 -114
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +118 -114
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +72 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +140 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +70 -66
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +40 -35
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +27 -23
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.d.ts +7 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js +12 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/utils.d.ts +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.cjs +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.d.ts +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.es.js +20 -20
- package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.cjs +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.map +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.d.ts +7 -2
- package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +61 -57
- package/dist/components/Slide/MobilePlayerSettingsSheet.es.js.map +1 -1
- package/dist/components/Slide/Player.cjs +1 -1
- package/dist/components/Slide/Player.cjs.map +1 -1
- package/dist/components/Slide/Player.d.ts +6 -6
- package/dist/components/Slide/Player.es.js +547 -541
- package/dist/components/Slide/Player.es.js.map +1 -1
- package/dist/components/Slide/Slide.cjs +1 -1
- package/dist/components/Slide/Slide.cjs.map +1 -1
- package/dist/components/Slide/Slide.d.ts +14 -12
- package/dist/components/Slide/Slide.es.js +745 -726
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/SubtitleOverlay.cjs +1 -1
- package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
- package/dist/components/Slide/SubtitleOverlay.d.ts +2 -2
- package/dist/components/Slide/SubtitleOverlay.es.js +17 -17
- package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
- package/dist/components/Slide/diff-utils.d.ts +1 -1
- package/dist/components/Slide/index.d.ts +12 -12
- package/dist/components/Slide/locales/slide.json.cjs +2 -0
- package/dist/components/Slide/locales/slide.json.cjs.map +1 -0
- package/dist/components/Slide/locales/slide.json.d.ts +205 -0
- package/dist/components/Slide/locales/slide.json.es.js +11 -0
- package/dist/components/Slide/locales/slide.json.es.js.map +1 -0
- package/dist/components/Slide/slideI18n.cjs +1 -1
- package/dist/components/Slide/slideI18n.cjs.map +1 -1
- package/dist/components/Slide/slideI18n.d.ts +6 -3
- package/dist/components/Slide/slideI18n.es.js +10 -155
- package/dist/components/Slide/slideI18n.es.js.map +1 -1
- package/dist/components/Slide/useSlide.d.ts +1 -1
- package/dist/components/Slide/utils/appendedMarkerAdvance.d.ts +1 -1
- package/dist/components/Slide/utils/audioSegments.d.ts +1 -1
- package/dist/components/Slide/utils/interactionResolution.d.ts +2 -2
- package/dist/components/Slide/utils/listenModeElementList.d.ts +2 -2
- package/dist/components/Slide/utils/markdownScaling.d.ts +1 -1
- package/dist/components/Slide/utils/playerCustomActions.d.ts +2 -2
- package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs.map +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.d.ts +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js +20 -20
- package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js.map +1 -1
- package/dist/components/Slide/utils/runStreamFixture.d.ts +1 -1
- package/dist/components/Slide/utils/segmentSeek.d.ts +1 -1
- package/dist/components/Slide/utils/silentStepAutoAdvance.d.ts +1 -1
- package/dist/components/Slide/utils/streamingNavigation.d.ts +1 -1
- package/dist/components/Slide/utils/subtitleCue.d.ts +1 -1
- package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +1 -1
- package/dist/components/index.d.ts +22 -18
- package/dist/components/ui/button.cjs +1 -1
- package/dist/components/ui/button.cjs.map +1 -1
- package/dist/components/ui/button.es.js +12 -13
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/checkbox.cjs +1 -1
- package/dist/components/ui/checkbox.cjs.map +1 -1
- package/dist/components/ui/checkbox.es.js +35 -35
- package/dist/components/ui/checkbox.es.js.map +1 -1
- package/dist/components/ui/dialog.cjs +1 -1
- package/dist/components/ui/dialog.cjs.map +1 -1
- package/dist/components/ui/dialog.d.ts +5 -1
- package/dist/components/ui/dialog.es.js +37 -37
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/input.cjs +1 -1
- package/dist/components/ui/input.cjs.map +1 -1
- package/dist/components/ui/input.es.js +4 -4
- package/dist/components/ui/input.es.js.map +1 -1
- package/dist/components/ui/inputGroup/button.cjs +1 -1
- package/dist/components/ui/inputGroup/button.cjs.map +1 -1
- package/dist/components/ui/inputGroup/button.es.js +9 -10
- package/dist/components/ui/inputGroup/button.es.js.map +1 -1
- package/dist/components/ui/inputGroup/input-group.cjs +1 -1
- package/dist/components/ui/inputGroup/input-group.cjs.map +1 -1
- package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
- package/dist/components/ui/inputGroup/input-group.es.js +10 -10
- package/dist/components/ui/inputGroup/input-group.es.js.map +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs.map +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +2 -2
- package/dist/components/ui/inputGroup/textarea.es.js.map +1 -1
- package/dist/components/ui/loading-overlay-card.cjs +2 -2
- package/dist/components/ui/loading-overlay-card.cjs.map +1 -1
- package/dist/components/ui/loading-overlay-card.es.js +11 -11
- package/dist/components/ui/loading-overlay-card.es.js.map +1 -1
- package/dist/components/ui/popover.cjs +1 -1
- package/dist/components/ui/popover.cjs.map +1 -1
- package/dist/components/ui/popover.es.js +6 -6
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/tooltip.cjs +1 -1
- package/dist/components/ui/tooltip.cjs.map +1 -1
- package/dist/components/ui/tooltip.es.js +16 -16
- package/dist/components/ui/tooltip.es.js.map +1 -1
- package/dist/editor.d.ts +2 -2
- package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +22 -19
- package/dist/index.es.js.map +1 -1
- package/dist/lib/locale.cjs +1 -1
- package/dist/lib/locale.cjs.map +1 -1
- package/dist/lib/locale.d.ts +5 -1
- package/dist/lib/locale.es.js +26 -13
- package/dist/lib/locale.es.js.map +1 -1
- package/dist/lib/locale.test.d.ts +1 -0
- package/dist/lib/useDetachedLanguage.cjs +2 -0
- package/dist/lib/useDetachedLanguage.cjs.map +1 -0
- package/dist/lib/useDetachedLanguage.d.ts +3 -0
- package/dist/lib/useDetachedLanguage.es.js +25 -0
- package/dist/lib/useDetachedLanguage.es.js.map +1 -0
- package/dist/lib/useResolvedDirection.cjs +2 -0
- package/dist/lib/useResolvedDirection.cjs.map +1 -0
- package/dist/lib/useResolvedDirection.d.ts +6 -0
- package/dist/lib/useResolvedDirection.es.js +37 -0
- package/dist/lib/useResolvedDirection.es.js.map +1 -0
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +21 -21
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +100 -100
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +38 -38
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +9 -9
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +95 -95
- package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +48 -48
- package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +9 -9
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +17 -17
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +100 -100
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +27 -27
- package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.cjs → chevrons-down.cjs} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.es.js → chevrons-down.es.js} +6 -3
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -0
- package/dist/node_modules/react-markdown/lib/index.cjs +1 -1
- package/dist/node_modules/react-markdown/lib/index.cjs.map +1 -1
- package/dist/node_modules/react-markdown/lib/index.es.js +39 -39
- package/dist/node_modules/react-markdown/lib/index.es.js.map +1 -1
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.d.ts +18 -17
- package/dist/renderer.es.js +20 -17
- package/dist/renderer.es.js.map +1 -1
- package/dist/scroll.cjs +1 -1
- package/dist/scroll.d.ts +6 -3
- package/dist/scroll.es.js +4 -2
- package/dist/scroll.es.js.map +1 -1
- package/dist/slide.d.ts +3 -3
- package/package.json +5 -2
- package/dist/_virtual/jsx-runtime.cjs +0 -2
- package/dist/_virtual/jsx-runtime.cjs.map +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -6
- package/dist/_virtual/jsx-runtime.es.js.map +0 -1
- package/dist/_virtual/jsx-runtime.es2.js +0 -5
- package/dist/_virtual/jsx-runtime.es2.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.cjs +0 -2
- package/dist/_virtual/jsx-runtime2.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.cjs +0 -2
- package/dist/_virtual/react-jsx-runtime.development.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.cjs +0 -2
- package/dist/_virtual/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.es.js.map +0 -1
- package/dist/lib/localeTextMap.cjs +0 -2
- package/dist/lib/localeTextMap.cjs.map +0 -1
- package/dist/lib/localeTextMap.es.js +0 -5
- package/dist/lib/localeTextMap.es.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -409
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -36
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.cjs +0 -2
- package/dist/node_modules/react/jsx-runtime.cjs.map +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -11
- package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
|
@@ -1,131 +1,157 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { createRoot as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { inspectViewportHeightFromHtmlRootString as
|
|
7
|
-
import { SANDBOX_INTERACTION_MESSAGE_TYPE as
|
|
8
|
-
import { injectScalingSystem as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx as I, jsxs as Rt } from "react/jsx-runtime";
|
|
2
|
+
import q, { useRef as o, useCallback as Xe, useState as _, useEffect as w, useMemo as vt } from "react";
|
|
3
|
+
import { createRoot as St } from "react-dom/client";
|
|
4
|
+
import Ct from "./SandboxApp.es.js";
|
|
5
|
+
import yt from "./ContentRender.es.js";
|
|
6
|
+
import { inspectViewportHeightFromHtmlRootString as Ke, EMPTY_ROOT_HEIGHT_META as Et, parseExplicitHeight as Je, inspectViewportHeightFromNodeChain as Mt, resolveExplicitHeightFromNodeChain as Tt } from "./utils/iframe-viewport-height.es.js";
|
|
7
|
+
import { SANDBOX_INTERACTION_MESSAGE_TYPE as kt, SANDBOX_INTERACTION_MESSAGE_SOURCE as At } from "../../lib/sandboxInteraction.es.js";
|
|
8
|
+
import { injectScalingSystem as Ft } from "./utils/iframe-scaling.es.js";
|
|
9
|
+
import { getMarkdownFlowDirection as _t, getMarkdownFlowLanguage as Dt } from "../../lib/locale.es.js";
|
|
10
|
+
import { useDetachedLanguage as It } from "../../lib/useDetachedLanguage.es.js";
|
|
11
|
+
import { useResolvedDirection as Qe } from "../../lib/useResolvedDirection.es.js";
|
|
12
|
+
import { getContentRenderLocaleTexts as Ot } from "./contentRenderI18n.es.js";
|
|
13
|
+
import { CJK_SAFE_SANS_FONT_FAMILY as Nt } from "./cjkFontFamily.es.js";
|
|
14
|
+
let Ce = null;
|
|
15
|
+
const Ze = () => (Ce || (Ce = import("./blackboard-vendor.es.js")), Ce), Vt = /<img\b[^>]*>/i, Wt = 180, Bt = 240, $t = (i) => i.split(/\s+/).filter(Boolean).map((r) => {
|
|
16
|
+
const l = r.split(":");
|
|
17
|
+
return l[l.length - 1] !== "h-screen" && l[l.length - 1] !== "min-h-screen" ? r : (l[l.length - 1] = "h-full", l.join(":"));
|
|
18
|
+
}).join(" "), zt = (i, r) => !r || !i.trim() ? i : i.replace(
|
|
16
19
|
/^(\s*<[a-zA-Z][\w:-]*)(\s[^>]*?)?>/,
|
|
17
|
-
(
|
|
18
|
-
const
|
|
19
|
-
if (!
|
|
20
|
-
return
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
`class=${
|
|
20
|
+
(l, h, L = "") => {
|
|
21
|
+
const p = L.match(/\bclass\s*=\s*(["'])([^"']*)\1/i);
|
|
22
|
+
if (!p)
|
|
23
|
+
return l;
|
|
24
|
+
const O = $t(p[2]);
|
|
25
|
+
return O === p[2] ? l : `${h}${L.replace(
|
|
26
|
+
p[0],
|
|
27
|
+
`class=${p[1]}${O}${p[1]}`
|
|
25
28
|
)}>`;
|
|
26
29
|
}
|
|
27
|
-
),
|
|
28
|
-
content:
|
|
30
|
+
), Pt = ({
|
|
31
|
+
content: i,
|
|
29
32
|
type: r,
|
|
30
|
-
className:
|
|
31
|
-
locale:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
className: l,
|
|
34
|
+
locale: h,
|
|
35
|
+
lang: L,
|
|
36
|
+
dir: p,
|
|
37
|
+
loadingText: O,
|
|
38
|
+
styleLoadingText: ye,
|
|
39
|
+
scriptLoadingText: Ee,
|
|
40
|
+
fullScreenButtonText: et,
|
|
41
|
+
exitFullScreenButtonText: tt,
|
|
42
|
+
hideFullScreen: nt = !1,
|
|
43
|
+
mode: a = "content",
|
|
44
|
+
replaceRootScreenHeightWithFull: rt = !1,
|
|
45
|
+
enableScaling: ot = !1,
|
|
46
|
+
disableLoadingOverlay: ne = !1
|
|
42
47
|
}) => {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
const Me = Ot(h), H = p ?? _t(h), re = L ?? Dt(h), it = et || Me.sandboxFullscreenButtonText, ct = tt || Me.sandboxExitFullscreenButtonText, E = o(null), Te = It(E, re), { resolvedDirection: oe } = Qe(E, H), ke = o(null), Ae = o(null), st = Xe(
|
|
49
|
+
(t) => {
|
|
50
|
+
ke.current = t, Ae.current = t?.querySelector(".content-render") ?? null;
|
|
51
|
+
},
|
|
52
|
+
[]
|
|
53
|
+
), { resolvedDirection: lt } = Qe(
|
|
54
|
+
Ae,
|
|
55
|
+
H
|
|
56
|
+
), Fe = H ?? oe, _e = o(H);
|
|
57
|
+
_e.current = H;
|
|
58
|
+
const [at, ut] = _();
|
|
59
|
+
let j;
|
|
60
|
+
H === "auto" && (j = oe, r === "sandbox" ? j = at ?? oe : a === "blackboard" && (j = lt));
|
|
61
|
+
const x = o(null), G = o(null), N = o(() => {
|
|
62
|
+
}), [dt, ht] = _(480), [De, ft] = _(0), [ie, ce] = _(0), se = o(!1), le = o(!1), Ie = o(0), [Oe, mt] = _(0), [ae, gt] = _(!1), ue = r === "sandbox", R = a === "blackboard", v = ot && R && r === "sandbox", V = R && r === "sandbox", D = V && rt, de = o(""), Y = q.useMemo(
|
|
63
|
+
() => r === "sandbox" ? i : "",
|
|
64
|
+
[i, r]
|
|
65
|
+
), c = q.useMemo(
|
|
66
|
+
() => zt(
|
|
67
|
+
Y,
|
|
68
|
+
D
|
|
51
69
|
),
|
|
52
|
-
[
|
|
53
|
-
),
|
|
54
|
-
() =>
|
|
55
|
-
[
|
|
56
|
-
),
|
|
57
|
-
() =>
|
|
70
|
+
[Y, D]
|
|
71
|
+
), Ne = q.useMemo(
|
|
72
|
+
() => D ? Ke(Y) : Et,
|
|
73
|
+
[Y, D]
|
|
74
|
+
), he = q.useMemo(
|
|
75
|
+
() => D && Ne.hasFullViewportHeight,
|
|
58
76
|
[
|
|
59
|
-
|
|
60
|
-
|
|
77
|
+
Ne.hasFullViewportHeight,
|
|
78
|
+
D
|
|
61
79
|
]
|
|
62
|
-
), [
|
|
63
|
-
|
|
64
|
-
),
|
|
80
|
+
), [U, Ve] = _(
|
|
81
|
+
c
|
|
82
|
+
), We = o(c), fe = o(c), W = o(null), S = o(null), Be = o(null), me = Xe((t) => {
|
|
65
83
|
if (typeof window > "u")
|
|
66
84
|
return;
|
|
67
85
|
const e = Date.now();
|
|
68
|
-
e -
|
|
86
|
+
e - Ie.current < Bt || (Ie.current = e, window.postMessage(
|
|
69
87
|
{
|
|
70
|
-
source:
|
|
71
|
-
type:
|
|
88
|
+
source: At,
|
|
89
|
+
type: kt,
|
|
72
90
|
eventType: t
|
|
73
91
|
},
|
|
74
92
|
window.location.origin
|
|
75
93
|
));
|
|
76
|
-
}, [])
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
94
|
+
}, []);
|
|
95
|
+
w(() => {
|
|
96
|
+
if (r !== "markdown" || a !== "blackboard") return;
|
|
97
|
+
const t = ke.current;
|
|
98
|
+
if (!t) return;
|
|
99
|
+
const e = () => me("click");
|
|
100
|
+
return t.addEventListener("click", e), () => t.removeEventListener("click", e);
|
|
101
|
+
}, [me, a, r]);
|
|
102
|
+
const ge = () => {
|
|
103
|
+
W.current !== null && (window.clearTimeout(W.current), W.current = null);
|
|
104
|
+
}, bt = () => {
|
|
105
|
+
S.current !== null && (window.cancelAnimationFrame(S.current), S.current = null);
|
|
80
106
|
};
|
|
81
|
-
|
|
107
|
+
w(
|
|
82
108
|
() => () => {
|
|
83
|
-
|
|
109
|
+
ge(), bt();
|
|
84
110
|
},
|
|
85
111
|
[]
|
|
86
|
-
),
|
|
87
|
-
const t =
|
|
88
|
-
|
|
89
|
-
const e = !!t &&
|
|
90
|
-
|
|
112
|
+
), w(() => {
|
|
113
|
+
const t = We.current;
|
|
114
|
+
We.current = c;
|
|
115
|
+
const e = !!t && c.length > t.length && c.startsWith(t), f = Vt.test(
|
|
116
|
+
c
|
|
91
117
|
);
|
|
92
|
-
if (!(e &&
|
|
93
|
-
|
|
118
|
+
if (!(e && f)) {
|
|
119
|
+
ge(), fe.current = c, Ve(c);
|
|
94
120
|
return;
|
|
95
121
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
}, [
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}, [
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
if (
|
|
107
|
-
|
|
122
|
+
fe.current = c, ge(), W.current = window.setTimeout(() => {
|
|
123
|
+
Ve(fe.current), W.current = null;
|
|
124
|
+
}, Wt);
|
|
125
|
+
}, [c]);
|
|
126
|
+
const X = q.useMemo(() => V ? Ke(U).viewportHeightCss : null, [U, V]);
|
|
127
|
+
w(() => {
|
|
128
|
+
Be.current = X;
|
|
129
|
+
}, [X]);
|
|
130
|
+
const be = !!X, B = R && r === "sandbox" ? v || he ? "100%" : X ?? `${dt}px` : void 0;
|
|
131
|
+
w(() => {
|
|
132
|
+
if (a !== "blackboard") {
|
|
133
|
+
de.current = c;
|
|
108
134
|
return;
|
|
109
135
|
}
|
|
110
|
-
const t =
|
|
111
|
-
!(t &&
|
|
112
|
-
}, [
|
|
113
|
-
const t =
|
|
136
|
+
const t = de.current;
|
|
137
|
+
!(t && c.startsWith(t)) && t && mt((f) => f + 1), de.current = c;
|
|
138
|
+
}, [a, c]), w(() => {
|
|
139
|
+
const t = x.current;
|
|
114
140
|
if (!t) return;
|
|
115
141
|
const e = t.contentDocument;
|
|
116
142
|
if (!e) return;
|
|
117
143
|
e.open(), e.write(`<!DOCTYPE html>
|
|
118
|
-
<html${
|
|
144
|
+
<html${a === "blackboard" ? ' style="height: 100%;"' : ""}>
|
|
119
145
|
<head>
|
|
120
146
|
<meta charset="utf-8" />
|
|
121
147
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
122
148
|
<style>
|
|
123
149
|
:root { color-scheme: light; }
|
|
124
|
-
html, body, #root { width: 100%; font-family: ${
|
|
125
|
-
${
|
|
126
|
-
html, body { margin: 0; padding: 0; overflow: ${
|
|
150
|
+
html, body, #root { width: 100%; font-family: ${Nt}; }
|
|
151
|
+
${a === "blackboard" ? "html, body, #root { height: 100%; }" : ""}
|
|
152
|
+
html, body { margin: 0; padding: 0; overflow: ${v ? "hidden auto" : a === "blackboard" ? "auto" : "hidden"}; }
|
|
127
153
|
*, *::before, *::after { box-sizing: border-box; }
|
|
128
|
-
${
|
|
154
|
+
${a !== "blackboard" ? `
|
|
129
155
|
.h-screen { height: auto !important; }
|
|
130
156
|
.min-h-screen { min-height: auto !important; }
|
|
131
157
|
.h-dvh, .h-svh, .h-lvh { height: auto !important; }
|
|
@@ -137,198 +163,208 @@ const $e = () => (He || (He = import("./blackboard-vendor.es.js")), He), bt = /<
|
|
|
137
163
|
<div id="root"></div>
|
|
138
164
|
</body>
|
|
139
165
|
</html>`), e.close(), e.documentElement.setAttribute("data-theme", "light"), e.documentElement.style.colorScheme = "light", e.body?.style.setProperty("color-scheme", "light");
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
let
|
|
147
|
-
const
|
|
166
|
+
const f = R && r === "sandbox", K = () => me("click");
|
|
167
|
+
f && e.addEventListener("click", K, !0);
|
|
168
|
+
const $ = e.getElementById("root");
|
|
169
|
+
if (!$) return;
|
|
170
|
+
const we = St($);
|
|
171
|
+
G.current = we;
|
|
172
|
+
let C = !1;
|
|
173
|
+
const ze = (n) => ({
|
|
148
174
|
heightAttrValue: n.getAttribute("height"),
|
|
149
175
|
styleAttrValue: n.getAttribute("style"),
|
|
150
176
|
classAttrValue: n.getAttribute("class")
|
|
151
|
-
}),
|
|
152
|
-
const
|
|
153
|
-
return
|
|
154
|
-
},
|
|
155
|
-
if (!
|
|
156
|
-
const n =
|
|
157
|
-
|
|
177
|
+
}), Pe = (n) => {
|
|
178
|
+
const s = Array.from(n.children);
|
|
179
|
+
return s.length === 1 ? s[0] : null;
|
|
180
|
+
}, Ht = () => {
|
|
181
|
+
if (!V || !x.current || !e.body) return null;
|
|
182
|
+
const n = x.current.ownerDocument?.documentElement?.clientHeight || window.innerHeight, s = Be.current, g = s ? Je(
|
|
183
|
+
s,
|
|
158
184
|
n
|
|
159
185
|
) : null;
|
|
160
|
-
if (
|
|
161
|
-
return Math.ceil(
|
|
186
|
+
if (g !== null)
|
|
187
|
+
return Math.ceil(g);
|
|
162
188
|
const m = e.body.querySelector(
|
|
163
189
|
".sandbox-wrapper"
|
|
164
190
|
)?.firstElementChild;
|
|
165
191
|
if (!m) return null;
|
|
166
|
-
const
|
|
167
|
-
|
|
192
|
+
const b = Array.from(m.children), k = b.length === 1 ? b[0] : null, ee = Mt(
|
|
193
|
+
k,
|
|
168
194
|
{
|
|
169
|
-
getNode:
|
|
170
|
-
getSingleChild:
|
|
195
|
+
getNode: ze,
|
|
196
|
+
getSingleChild: Pe
|
|
171
197
|
}
|
|
172
198
|
).viewportHeightCss;
|
|
173
|
-
if (
|
|
174
|
-
const
|
|
175
|
-
|
|
199
|
+
if (ee) {
|
|
200
|
+
const z = Je(
|
|
201
|
+
ee,
|
|
176
202
|
n
|
|
177
203
|
);
|
|
178
|
-
if (
|
|
179
|
-
return Math.ceil(
|
|
204
|
+
if (z !== null)
|
|
205
|
+
return Math.ceil(z);
|
|
180
206
|
}
|
|
181
|
-
const
|
|
182
|
-
|
|
207
|
+
const d = Tt(
|
|
208
|
+
k,
|
|
183
209
|
n,
|
|
184
210
|
{
|
|
185
|
-
getNode:
|
|
186
|
-
getSingleChild:
|
|
211
|
+
getNode: ze,
|
|
212
|
+
getSingleChild: Pe
|
|
187
213
|
}
|
|
188
214
|
);
|
|
189
|
-
return
|
|
190
|
-
},
|
|
191
|
-
if (!
|
|
192
|
-
if (!
|
|
193
|
-
if (
|
|
194
|
-
|
|
215
|
+
return d !== null ? Math.ceil(d) : null;
|
|
216
|
+
}, pe = () => {
|
|
217
|
+
if (!x.current || !e.body) return;
|
|
218
|
+
if (!R) {
|
|
219
|
+
if (se.current) {
|
|
220
|
+
le.current = !0;
|
|
195
221
|
return;
|
|
196
222
|
}
|
|
197
|
-
|
|
198
|
-
const m =
|
|
199
|
-
if (
|
|
200
|
-
const
|
|
201
|
-
m.style.height =
|
|
202
|
-
let
|
|
203
|
-
const
|
|
204
|
-
if (
|
|
205
|
-
const
|
|
206
|
-
let
|
|
207
|
-
const
|
|
208
|
-
if (
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
Math.ceil(
|
|
223
|
+
se.current = !0;
|
|
224
|
+
const m = x.current, b = E.current?.clientWidth || 0, k = m.style.height;
|
|
225
|
+
if (b > 0) {
|
|
226
|
+
const Se = Math.round(b * 9 / 16), ee = Math.max(8192, b * 20);
|
|
227
|
+
m.style.height = Se + "px", e.body.offsetHeight;
|
|
228
|
+
let d = e.body.scrollHeight;
|
|
229
|
+
const z = e.defaultView;
|
|
230
|
+
if (z) {
|
|
231
|
+
const P = (y) => {
|
|
232
|
+
let A = 0;
|
|
233
|
+
const Ye = (F) => {
|
|
234
|
+
if (F !== y && F.scrollHeight > F.clientHeight + 1) {
|
|
235
|
+
const te = z.getComputedStyle(F).overflowY;
|
|
236
|
+
if (te === "auto" || te === "scroll") {
|
|
237
|
+
const Ue = F.getBoundingClientRect();
|
|
238
|
+
Ue.top >= 0 && (A = Math.max(
|
|
239
|
+
A,
|
|
240
|
+
Math.ceil(Ue.top + F.scrollHeight)
|
|
215
241
|
));
|
|
216
242
|
}
|
|
217
243
|
}
|
|
218
|
-
for (const
|
|
244
|
+
for (const te of F.children) Ye(te);
|
|
219
245
|
};
|
|
220
|
-
return
|
|
246
|
+
return Ye(y), A;
|
|
221
247
|
};
|
|
222
|
-
|
|
223
|
-
for (let
|
|
224
|
-
m.style.height =
|
|
225
|
-
const
|
|
248
|
+
d = Math.max(d, P(e.body));
|
|
249
|
+
for (let y = 0; y < 8 && d > Se; y++) {
|
|
250
|
+
m.style.height = d + "px", e.body.offsetHeight;
|
|
251
|
+
const A = Math.max(
|
|
226
252
|
e.body.scrollHeight,
|
|
227
|
-
|
|
253
|
+
P(e.body)
|
|
228
254
|
);
|
|
229
|
-
if (
|
|
230
|
-
|
|
255
|
+
if (A <= d + 1 || A >= d * 1.5) break;
|
|
256
|
+
d = A;
|
|
231
257
|
}
|
|
232
258
|
}
|
|
233
|
-
m.style.height =
|
|
234
|
-
const
|
|
235
|
-
return
|
|
259
|
+
m.style.height = k, ft((P) => {
|
|
260
|
+
const y = Math.min(ee, Math.max(200, Math.ceil(d)));
|
|
261
|
+
return P === y ? P : y;
|
|
236
262
|
});
|
|
237
263
|
}
|
|
238
264
|
setTimeout(() => {
|
|
239
|
-
|
|
265
|
+
se.current = !1, le.current && (le.current = !1, M());
|
|
240
266
|
}, 50);
|
|
241
267
|
return;
|
|
242
268
|
}
|
|
243
|
-
if (
|
|
244
|
-
const n = e.body.scrollHeight,
|
|
245
|
-
if (
|
|
246
|
-
const m =
|
|
269
|
+
if (v) return;
|
|
270
|
+
const n = e.body.scrollHeight, s = e.documentElement?.scrollHeight || 0, g = $?.scrollHeight || 0, T = Math.max(n, s, g);
|
|
271
|
+
if (V) {
|
|
272
|
+
const m = Ht(), b = Math.max(
|
|
247
273
|
200,
|
|
248
|
-
m ?? Math.ceil(
|
|
274
|
+
m ?? Math.ceil(T)
|
|
249
275
|
);
|
|
250
|
-
|
|
251
|
-
(
|
|
276
|
+
ht(
|
|
277
|
+
(k) => k === b ? k : b
|
|
252
278
|
);
|
|
253
279
|
}
|
|
254
|
-
},
|
|
280
|
+
}, M = () => {
|
|
255
281
|
requestAnimationFrame(() => {
|
|
256
|
-
|
|
282
|
+
C || pe();
|
|
257
283
|
});
|
|
258
284
|
};
|
|
259
|
-
N.current =
|
|
260
|
-
|
|
261
|
-
|
|
285
|
+
N.current = M, pe(), M(), ue && Ze().then(({ injectBlackboardLibraries: n }) => {
|
|
286
|
+
C || (n(e), v && Ft(e), requestAnimationFrame(() => {
|
|
287
|
+
C || M();
|
|
262
288
|
}));
|
|
263
289
|
}).catch(() => {
|
|
264
|
-
|
|
290
|
+
C || M();
|
|
265
291
|
});
|
|
266
|
-
const
|
|
267
|
-
let
|
|
268
|
-
const
|
|
269
|
-
if (
|
|
270
|
-
|
|
271
|
-
},
|
|
272
|
-
!
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
|
|
292
|
+
const u = E.current;
|
|
293
|
+
let He = !!(u && (u.clientWidth <= 0 || u.clientHeight <= 0)), J = !1, Q = null, Z = null;
|
|
294
|
+
const qe = () => {
|
|
295
|
+
if (C) return;
|
|
296
|
+
M(), t.contentWindow?.__mdf_triggerFitContent?.();
|
|
297
|
+
}, xe = () => !!(u && u.clientWidth > 0 && u.clientHeight > 0), Le = () => {
|
|
298
|
+
!ue || !u || !He || J || !xe() || (J = !0, Ze().then(({ refreshTailwindRuntime: n }) => {
|
|
299
|
+
C || (Q = window.requestAnimationFrame(() => {
|
|
300
|
+
Q = null, J = !1;
|
|
301
|
+
const s = e.querySelector(".sandbox-container");
|
|
302
|
+
C || !xe() || !s?.childNodes.length || !n(e) || (He = !1, qe(), Z = window.setTimeout(() => {
|
|
303
|
+
Z = null, qe();
|
|
278
304
|
}, 100));
|
|
279
305
|
}));
|
|
280
306
|
}).catch(() => {
|
|
281
|
-
|
|
307
|
+
J = !1;
|
|
282
308
|
}));
|
|
283
|
-
},
|
|
284
|
-
const
|
|
285
|
-
|
|
309
|
+
}, je = typeof ResizeObserver < "u", Re = ue && u && je ? new ResizeObserver((n) => {
|
|
310
|
+
const s = n[0]?.contentRect, g = s?.width ?? u.clientWidth, T = s?.height ?? u.clientHeight;
|
|
311
|
+
g > 0 && T > 0 && Le();
|
|
286
312
|
}) : null;
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
const
|
|
291
|
-
if (
|
|
292
|
-
|
|
313
|
+
Re && u && Re.observe(u);
|
|
314
|
+
const ve = je ? new ResizeObserver(() => pe()) : null;
|
|
315
|
+
ve?.observe(e.body), $ && ve?.observe($);
|
|
316
|
+
const xt = () => {
|
|
317
|
+
if (r !== "sandbox" || _e.current !== "auto")
|
|
318
|
+
return;
|
|
319
|
+
const n = e.querySelector(".sandbox-wrapper"), s = e.defaultView;
|
|
320
|
+
if (!n || !s) return;
|
|
321
|
+
const g = s.getComputedStyle(n).direction === "rtl" ? "rtl" : "ltr";
|
|
322
|
+
ut(
|
|
323
|
+
(T) => T === g ? T : g
|
|
324
|
+
);
|
|
325
|
+
}, Ge = new MutationObserver(() => {
|
|
326
|
+
if (xt(), M(), !xe()) {
|
|
327
|
+
He = !0;
|
|
293
328
|
return;
|
|
294
329
|
}
|
|
295
|
-
|
|
330
|
+
Le();
|
|
296
331
|
});
|
|
297
|
-
return
|
|
332
|
+
return Ge.observe(e.body, {
|
|
298
333
|
childList: !0,
|
|
334
|
+
characterData: !0,
|
|
299
335
|
subtree: !0,
|
|
300
336
|
attributes: !0,
|
|
301
|
-
attributeFilter: ["style", "class"]
|
|
337
|
+
attributeFilter: ["style", "class", "dir"]
|
|
302
338
|
}), () => {
|
|
303
|
-
|
|
339
|
+
C = !0, Re?.disconnect(), ve?.disconnect(), Ge.disconnect(), Q !== null && window.cancelAnimationFrame(Q), Z !== null && window.clearTimeout(Z), v && t.contentWindow?.__mdf_cleanupScaling?.(), f && e.removeEventListener("click", K, !0), G.current === we && (G.current = null, N.current = () => {
|
|
304
340
|
}), setTimeout(() => {
|
|
305
|
-
|
|
341
|
+
we.unmount();
|
|
306
342
|
}, 0);
|
|
307
343
|
};
|
|
308
|
-
}, []),
|
|
344
|
+
}, []), w(() => {
|
|
309
345
|
const t = () => {
|
|
310
|
-
|
|
346
|
+
gt(!!document.fullscreenElement);
|
|
311
347
|
};
|
|
312
348
|
return document.addEventListener("fullscreenchange", t), () => document.removeEventListener("fullscreenchange", t);
|
|
313
|
-
}, []),
|
|
314
|
-
const t =
|
|
349
|
+
}, []), w(() => {
|
|
350
|
+
const t = E.current;
|
|
315
351
|
if (!t) return;
|
|
316
352
|
if (typeof ResizeObserver > "u") {
|
|
317
|
-
|
|
353
|
+
ce(t.clientWidth);
|
|
318
354
|
return;
|
|
319
355
|
}
|
|
320
|
-
const e = new ResizeObserver((
|
|
321
|
-
|
|
356
|
+
const e = new ResizeObserver((f) => {
|
|
357
|
+
ce(f[0]?.contentRect.width ?? t.clientWidth);
|
|
322
358
|
});
|
|
323
|
-
return e.observe(t),
|
|
359
|
+
return e.observe(t), ce(t.clientWidth), () => e.disconnect();
|
|
324
360
|
}, []);
|
|
325
|
-
const
|
|
326
|
-
if (
|
|
361
|
+
const $e = vt(() => {
|
|
362
|
+
if (R || ie === 0 || ae)
|
|
327
363
|
return;
|
|
328
|
-
const t = Math.round(
|
|
329
|
-
return { height: Math.max(t,
|
|
330
|
-
}, [
|
|
331
|
-
const t =
|
|
364
|
+
const t = Math.round(ie * 9 / 16);
|
|
365
|
+
return { height: Math.max(t, De) };
|
|
366
|
+
}, [R, ie, De, ae]), wt = () => {
|
|
367
|
+
const t = E.current || x.current;
|
|
332
368
|
if (t) {
|
|
333
369
|
if (document.fullscreenElement) {
|
|
334
370
|
document.exitFullscreen().catch(() => {
|
|
@@ -339,85 +375,94 @@ const $e = () => (He || (He = import("./blackboard-vendor.es.js")), He), bt = /<
|
|
|
339
375
|
});
|
|
340
376
|
}
|
|
341
377
|
};
|
|
342
|
-
|
|
343
|
-
const t =
|
|
378
|
+
w(() => {
|
|
379
|
+
const t = G.current;
|
|
344
380
|
if (!t) return;
|
|
345
381
|
t.render(
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
|
|
382
|
+
/* @__PURE__ */ I(
|
|
383
|
+
Ct,
|
|
348
384
|
{
|
|
349
|
-
html:
|
|
350
|
-
locale:
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
385
|
+
html: U,
|
|
386
|
+
locale: h,
|
|
387
|
+
dir: Fe,
|
|
388
|
+
lang: Te,
|
|
389
|
+
loadingText: O,
|
|
390
|
+
styleLoadingText: ye,
|
|
391
|
+
scriptLoadingText: Ee,
|
|
392
|
+
disableLoadingOverlay: ne,
|
|
393
|
+
resetToken: Oe,
|
|
394
|
+
hasRootVhHeight: be,
|
|
395
|
+
mode: a,
|
|
396
|
+
stretchRootHeight: he,
|
|
397
|
+
enableScaling: v
|
|
360
398
|
}
|
|
361
399
|
)
|
|
362
|
-
),
|
|
363
|
-
N.current?.(),
|
|
400
|
+
), S.current = window.requestAnimationFrame(() => {
|
|
401
|
+
N.current?.(), v && x.current?.contentWindow?.__mdf_triggerFitContent?.(), S.current = null;
|
|
364
402
|
});
|
|
365
|
-
const e = setTimeout(() => N.current?.(), 100),
|
|
403
|
+
const e = setTimeout(() => N.current?.(), 100), f = setTimeout(() => N.current?.(), 500);
|
|
366
404
|
return () => {
|
|
367
|
-
|
|
405
|
+
S.current !== null && (window.cancelAnimationFrame(S.current), S.current = null), clearTimeout(e), clearTimeout(f);
|
|
368
406
|
};
|
|
369
407
|
}, [
|
|
370
|
-
|
|
371
|
-
b,
|
|
372
|
-
k,
|
|
373
|
-
f,
|
|
374
|
-
I,
|
|
375
|
-
ve,
|
|
376
|
-
ee,
|
|
377
|
-
he,
|
|
408
|
+
U,
|
|
378
409
|
h,
|
|
379
|
-
|
|
380
|
-
|
|
410
|
+
Fe,
|
|
411
|
+
Te,
|
|
412
|
+
O,
|
|
413
|
+
ye,
|
|
414
|
+
Ee,
|
|
415
|
+
Oe,
|
|
416
|
+
ne,
|
|
417
|
+
be,
|
|
418
|
+
a,
|
|
419
|
+
he,
|
|
420
|
+
v
|
|
381
421
|
]);
|
|
382
|
-
const
|
|
422
|
+
const pt = [
|
|
383
423
|
`w-full relative content-render-iframe-sandbox content-render-iframe-sandbox--${r}`,
|
|
384
|
-
|
|
424
|
+
R ? "h-full overflow-auto flex flex-col" : $e ? "overflow-hidden flex items-center justify-center" : "aspect-[16/9] overflow-hidden flex items-center justify-center"
|
|
385
425
|
].filter(Boolean).join(" ");
|
|
386
|
-
return /* @__PURE__ */
|
|
426
|
+
return /* @__PURE__ */ Rt(
|
|
387
427
|
"div",
|
|
388
428
|
{
|
|
389
|
-
ref:
|
|
390
|
-
|
|
391
|
-
|
|
429
|
+
ref: E,
|
|
430
|
+
dir: H,
|
|
431
|
+
lang: re,
|
|
432
|
+
"data-root-vh": be ? "true" : "false",
|
|
433
|
+
className: pt,
|
|
392
434
|
style: B ? {
|
|
393
435
|
height: B,
|
|
394
436
|
minHeight: B
|
|
395
|
-
} :
|
|
437
|
+
} : $e,
|
|
396
438
|
children: [
|
|
397
|
-
!
|
|
439
|
+
!nt && /* @__PURE__ */ I(
|
|
398
440
|
"button",
|
|
399
441
|
{
|
|
400
442
|
type: "button",
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
443
|
+
dir: j,
|
|
444
|
+
onClick: wt,
|
|
445
|
+
className: "absolute top-2 end-2 z-50 p-1.5 bg-black/75 text-white rounded-md cursor-pointer",
|
|
446
|
+
children: ae ? ct : it
|
|
404
447
|
}
|
|
405
448
|
),
|
|
406
|
-
|
|
407
|
-
|
|
449
|
+
a === "blackboard" && r === "markdown" ? /* @__PURE__ */ I("div", { ref: st, children: /* @__PURE__ */ I(
|
|
450
|
+
yt,
|
|
408
451
|
{
|
|
409
|
-
content:
|
|
410
|
-
locale:
|
|
411
|
-
|
|
452
|
+
content: i,
|
|
453
|
+
locale: h,
|
|
454
|
+
dir: H,
|
|
455
|
+
lang: re,
|
|
456
|
+
disableSandboxLoadingOverlay: ne
|
|
412
457
|
}
|
|
413
|
-
) }) : /* @__PURE__ */
|
|
458
|
+
) }) : /* @__PURE__ */ I(
|
|
414
459
|
"iframe",
|
|
415
460
|
{
|
|
416
|
-
ref:
|
|
461
|
+
ref: x,
|
|
417
462
|
sandbox: "allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",
|
|
418
463
|
allow: "fullscreen",
|
|
419
464
|
allowFullScreen: !0,
|
|
420
|
-
className: [
|
|
465
|
+
className: [l, "w-full h-full mx-auto my-auto block"].filter(Boolean).join(" "),
|
|
421
466
|
style: {
|
|
422
467
|
height: B ?? "100%",
|
|
423
468
|
minHeight: B,
|
|
@@ -428,11 +473,11 @@ const $e = () => (He || (He = import("./blackboard-vendor.es.js")), He), bt = /<
|
|
|
428
473
|
]
|
|
429
474
|
}
|
|
430
475
|
);
|
|
431
|
-
},
|
|
432
|
-
const r =
|
|
433
|
-
return /* @__PURE__ */
|
|
476
|
+
}, nn = (i) => {
|
|
477
|
+
const r = i.mode ?? "content", l = !!(i.enableScaling && r === "blackboard" && i.type === "sandbox"), h = `${i.type}:${r}:${l ? "scaled" : "unscaled"}`;
|
|
478
|
+
return /* @__PURE__ */ I(Pt, { ...i }, h);
|
|
434
479
|
};
|
|
435
480
|
export {
|
|
436
|
-
|
|
481
|
+
nn as default
|
|
437
482
|
};
|
|
438
483
|
//# sourceMappingURL=IframeSandbox.es.js.map
|