@cloud-app-dev/vidc 3.2.10 → 3.2.13
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/.dumi/tmp/core/EmptyRoute.tsx +9 -0
- package/.dumi/tmp/core/defineApp.ts +16 -0
- package/.dumi/tmp/core/history.ts +61 -0
- package/.dumi/tmp/core/plugin.ts +42 -0
- package/.dumi/tmp/core/pluginConfig.d.ts +276 -0
- package/.dumi/tmp/core/polyfill.ts +202 -0
- package/.dumi/tmp/core/route.tsx +38 -0
- package/.dumi/tmp/core/terminal.ts +38 -0
- package/.dumi/tmp/dumi/exports.ts +5 -0
- package/.dumi/tmp/dumi/locales/config.ts +56 -0
- package/.dumi/tmp/dumi/locales/runtime.tsx +38 -0
- package/.dumi/tmp/dumi/meta/atoms.ts +4 -0
- package/.dumi/tmp/dumi/meta/index.ts +186 -0
- package/.dumi/tmp/dumi/meta/runtime.ts +18 -0
- package/.dumi/tmp/dumi/meta/tabs.ts +8 -0
- package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +41 -0
- package/.dumi/tmp/dumi/theme/builtins/API.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Badge.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Container.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Table.ts +4 -0
- package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Content.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Features.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Footer.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Header.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Hero.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Logo.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Navbar.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/NotFound.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Toc.ts +4 -0
- package/.dumi/tmp/exports.ts +15 -0
- package/.dumi/tmp/testBrowser.tsx +82 -0
- package/.dumi/tmp/tsconfig.json +35 -0
- package/.dumi/tmp/typings.d.ts +136 -0
- package/.dumi/tmp/umi.ts +77 -0
- package/.dumi/tmp-production/core/EmptyRoute.tsx +9 -0
- package/.dumi/tmp-production/core/defineApp.ts +16 -0
- package/.dumi/tmp-production/core/history.ts +61 -0
- package/.dumi/tmp-production/core/plugin.ts +42 -0
- package/.dumi/tmp-production/core/pluginConfig.d.ts +276 -0
- package/.dumi/tmp-production/core/polyfill.ts +202 -0
- package/.dumi/tmp-production/core/route.tsx +38 -0
- package/.dumi/tmp-production/core/terminal.ts +38 -0
- package/.dumi/tmp-production/dumi/exports.ts +5 -0
- package/.dumi/tmp-production/dumi/locales/config.ts +56 -0
- package/.dumi/tmp-production/dumi/locales/runtime.tsx +38 -0
- package/.dumi/tmp-production/dumi/meta/atoms.ts +4 -0
- package/.dumi/tmp-production/dumi/meta/index.ts +178 -0
- package/.dumi/tmp-production/dumi/meta/runtime.ts +18 -0
- package/.dumi/tmp-production/dumi/meta/tabs.ts +5 -0
- package/.dumi/tmp-production/dumi/theme/ContextWrapper.tsx +41 -0
- package/.dumi/tmp-production/dumi/theme/builtins/API.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/Badge.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/Container.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/Previewer.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/SourceCode.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/Table.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/layouts/DocLayout.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Content.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/ContentTabs.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Features.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Footer.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Header.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Hero.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/HeroTitle.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/LangSwitch.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Logo.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Navbar.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/NotFound.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/PreviewerActions.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/RtlSwitch.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/SearchBar.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/SearchResult.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Sidebar.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Toc.ts +4 -0
- package/.dumi/tmp-production/exports.ts +14 -0
- package/.dumi/tmp-production/testBrowser.tsx +82 -0
- package/.dumi/tmp-production/tsconfig.json +35 -0
- package/.dumi/tmp-production/typings.d.ts +136 -0
- package/.dumi/tmp-production/umi.ts +77 -0
- package/.dumirc.ts +71 -0
- package/.editorconfig +0 -3
- package/.eslintrc.js +3 -0
- package/.fatherrc.ts +19 -0
- package/.husky/commit-msg +5 -0
- package/.husky/pre-commit +4 -0
- package/.prettierrc.js +16 -0
- package/.stylelintrc +3 -0
- package/README.md +14 -26
- package/es/Api/index.js +100 -30
- package/es/AppContext/Sync.js +19 -3
- package/es/AppContext/index.js +86 -42
- package/es/AppContext/static.js +7 -0
- package/es/Auth/index.js +11 -4
- package/es/AutoExit/index.js +11 -3
- package/es/Box/BetweenBox/index.js +19 -10
- package/es/Box/BetweenBox/{index.css → index.less} +0 -0
- package/es/Box/InfoBox/index.js +24 -18
- package/es/Box/InfoBox/index.less +22 -0
- package/es/Box/TwoColumnBox/index.js +42 -25
- package/es/Box/TwoColumnBox/index.less +70 -0
- package/es/Box/deps/grid-factory.d.ts +2 -2
- package/es/Box/deps/grid-factory.js +12 -0
- package/es/Box/index.js +29 -16
- package/es/Box/{index.css → index.less} +5 -4
- package/es/CheckGroupFixed/demo.d.ts +3 -0
- package/es/CheckGroupFixed/demo.js +28 -0
- package/es/CheckGroupFixed/index.js +117 -82
- package/es/CheckGroupFixed/index.less +50 -0
- package/es/Config/index.js +5 -1
- package/es/Config/utils.js +18 -3
- package/es/ConfigContext/index.js +8 -4
- package/es/CustomRenderSelect/index.js +71 -36
- package/es/CustomRenderSelect/index.less +25 -0
- package/es/DisableMark/index.js +14 -11
- package/es/DisableMark/{index.css → index.less} +0 -0
- package/es/DomMove/demo.js +14 -10
- package/es/DomMove/index.js +52 -30
- package/es/DomMove/utils.js +8 -3
- package/es/Drag/DragAndDropItem.js +44 -20
- package/es/Drag/DropItem.js +22 -6
- package/es/Drag/index.js +2 -2
- package/es/Drag/{index.css → index.less} +0 -0
- package/es/Drawer/Footer.js +22 -15
- package/es/Drawer/{Demo.d.ts → demo.d.ts} +0 -0
- package/es/Drawer/demo.js +109 -0
- package/es/Drawer/index.js +98 -60
- package/es/Drawer/index.less +42 -0
- package/es/ErrorFallback/index.js +23 -14
- package/es/FrontendPlayer/index.js +1 -1
- package/es/FullScreen/index.js +30 -17
- package/es/FullScreen/index.less +16 -0
- package/es/HightLevel/index.js +11 -4
- package/es/HightLevel/{index.css → index.less} +0 -0
- package/es/IconFont/index.js +39 -18
- package/es/ImageView/index.js +37 -13
- package/es/ImageView/index.less +10 -0
- package/es/Input/demo.d.ts +3 -0
- package/es/Input/demo.js +16 -0
- package/es/Input/index.js +46 -22
- package/es/Input/index.less +12 -0
- package/es/InstanceHistory/index.js +2 -0
- package/es/LabelValue/index.js +25 -18
- package/es/LabelValue/index.less +20 -0
- package/es/List/DynamicGridList/Demo.d.ts +1 -0
- package/es/List/DynamicGridList/Demo.js +52 -32
- package/es/List/DynamicGridList/index.js +37 -22
- package/es/List/DynamicList/index.js +76 -56
- package/es/List/DynamicList/index.less +15 -0
- package/es/List/GridList/Demo.d.ts +1 -0
- package/es/List/GridList/Demo.js +60 -38
- package/es/List/GridList/hook.d.ts +1 -1
- package/es/List/GridList/hook.js +66 -35
- package/es/List/GridList/index.js +33 -29
- package/es/List/GridList/{index.css → index.less} +0 -0
- package/es/List/GridList/utils.d.ts +2 -2
- package/es/List/GridList/utils.js +1 -0
- package/es/List/VList/index.d.ts +1 -1
- package/es/List/VList/index.js +32 -19
- package/es/List/VList/{index.css → index.less} +0 -0
- package/es/List/VList/utils.d.ts +2 -2
- package/es/List/VList/utils.js +8 -6
- package/es/List/demo.d.ts +3 -0
- package/es/List/demo.js +26 -0
- package/es/List/index.d.ts +1 -1
- package/es/List/index.js +31 -23
- package/es/List/{index.css → index.less} +5 -4
- package/es/LoaderApp/index.js +59 -25
- package/es/LoaderApp/{index.css → index.less} +0 -0
- package/es/LoaderApp/loader.js +40 -23
- package/es/LoaderApp/sandbox.back.js +101 -24
- package/es/LoaderApp/sandbox.js +26 -9
- package/es/LoaderApp/utils.d.ts +1 -1
- package/es/LoaderApp/utils.js +68 -25
- package/es/LoaderScript/index.js +25 -10
- package/es/LoaderScript/utils.js +151 -87
- package/es/Map/BasicMap/AMapInstance.d.ts +1 -1
- package/es/Map/BasicMap/AMapInstance.js +25 -3
- package/es/Map/BasicMap/LeafletInstance.js +28 -11
- package/es/Map/BasicMap/index.js +67 -27
- package/es/Map/BasicMap/index.less +24 -0
- package/es/Map/ClusterLayer/hook.d.ts +2 -2
- package/es/Map/ClusterLayer/hook.js +51 -23
- package/es/Map/ClusterLayer/index.d.ts +1 -1
- package/es/Map/ClusterLayer/index.js +14 -6
- package/es/Map/ClusterLayer/index.less +27 -0
- package/es/Map/Config/index.js +44 -16
- package/es/Map/Config/utils.js +17 -3
- package/es/Map/Context/index.js +43 -9
- package/es/Map/FindPio/index.js +5 -2
- package/es/Map/FindPio/{index.css → index.less} +0 -0
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +1 -1
- package/es/Map/InfoWindow/MakerLikeWindow.js +41 -18
- package/es/Map/InfoWindow/demo.d.ts +1 -0
- package/es/Map/InfoWindow/demo.js +51 -29
- package/es/Map/InfoWindow/index.d.ts +1 -1
- package/es/Map/InfoWindow/index.js +39 -18
- package/es/Map/LevelCenter/DragMarker/index.js +16 -10
- package/es/Map/LevelCenter/demo.d.ts +1 -0
- package/es/Map/LevelCenter/demo.js +41 -22
- package/es/Map/LevelCenter/index.js +41 -29
- package/es/Map/LevelCenter/index.less +2 -0
- package/es/Map/LoaderMap/index.js +38 -22
- package/es/Map/MapDrawSelect/demo.d.ts +1 -0
- package/es/Map/MapDrawSelect/demo.js +65 -46
- package/es/Map/MapDrawSelect/index.js +43 -31
- package/es/Map/MapDrawSelect/index.less +2 -0
- package/es/Map/MouseTool/index.js +32 -18
- package/es/Map/MouseTool/useMouseTools.js +37 -8
- package/es/Map/ResetTools/index.js +58 -44
- package/es/Map/ResetTools/index.less +35 -0
- package/es/Map/SinglePoint/index.js +39 -27
- package/es/Map/SinglePoint/index.less +41 -0
- package/es/Map/hook/useMapEvent.js +8 -4
- package/es/Map/hook/useMapType.js +3 -2
- package/es/Map/index.d.ts +1 -0
- package/es/Map/index.js +11 -11
- package/es/Map/useMarker/index.d.ts +1 -1
- package/es/Map/useMarker/index.js +33 -13
- package/es/Map/{LevelCenter/index.css → useMarker/index.less} +0 -0
- package/es/Map/withMap/index.d.ts +1 -0
- package/es/Map/withMap/index.js +14 -4
- package/es/Modal/demo.d.ts +3 -0
- package/es/Modal/demo.js +106 -0
- package/es/Modal/index.js +94 -57
- package/es/Modal/index.less +45 -0
- package/es/Picture/component/DefaultRects/RectInfo.js +59 -37
- package/es/Picture/component/DefaultRects/index.js +46 -32
- package/es/Picture/component/DefaultRects/index.less +188 -0
- package/es/Picture/component/DrawRect/index.js +37 -24
- package/es/Picture/component/DrawRect/{index.css → index.less} +0 -0
- package/es/Picture/component/RectMenu/index.js +35 -26
- package/es/Picture/component/RectMenu/index.less +31 -0
- package/es/Picture/component/RectMenu/utils.js +6 -3
- package/es/Picture/component/Tools/index.js +91 -69
- package/es/Picture/component/Tools/index.less +43 -0
- package/es/Picture/component/WheelScale/index.js +9 -4
- package/es/Picture/demo.js +14 -11
- package/es/Picture/dragBound.d.ts +1 -1
- package/es/Picture/dragBound.js +17 -4
- package/es/Picture/index.d.ts +2 -2
- package/es/Picture/index.js +202 -139
- package/es/Picture/index.less +14 -0
- package/es/Picture/loadCaptureRectImage.d.ts +1 -1
- package/es/Picture/loadCaptureRectImage.js +39 -14
- package/es/Picture/useDraw.js +40 -20
- package/es/Picture/utils.d.ts +9 -9
- package/es/Picture/utils.js +18 -3
- package/es/Player/api/index.d.ts +3 -3
- package/es/Player/api/index.js +117 -82
- package/es/Player/context.js +21 -7
- package/es/Player/contraller_bar/bar.d.ts +1 -1
- package/es/Player/contraller_bar/bar.js +28 -10
- package/es/Player/contraller_bar/contraller_event.js +34 -12
- package/es/Player/contraller_bar/index.js +30 -22
- package/es/Player/contraller_bar/left_bar.js +62 -39
- package/es/Player/contraller_bar/right_bar.js +34 -18
- package/es/Player/contraller_bar/time.js +19 -8
- package/es/Player/contraller_bar/useBarStatus.js +29 -11
- package/es/Player/contraller_bar/volume.js +43 -21
- package/es/Player/demo.d.ts +1 -0
- package/es/Player/demo.js +258 -215
- package/es/Player/event/errorEvent.js +41 -16
- package/es/Player/event/eventName.js +12 -1
- package/es/Player/event/index.js +66 -24
- package/es/Player/fps_play.js +33 -15
- package/es/Player/frontend_player.js +42 -20
- package/es/Player/frontend_timeline.js +95 -55
- package/es/Player/iconfont.js +23 -8
- package/es/Player/index.js +1 -1
- package/es/Player/live_heart.js +15 -3
- package/es/Player/message.js +68 -37
- package/es/Player/segment_player.js +113 -62
- package/es/Player/segment_timeline.js +145 -97
- package/es/Player/single_player.js +153 -111
- package/es/Player/style/bar.less +39 -0
- package/es/Player/style/iconfont.js +17 -10
- package/es/Player/style/index.less +30 -0
- package/es/Player/style/message.less +50 -0
- package/es/Player/style/slider.less +103 -0
- package/es/Player/style/timeline.less +106 -0
- package/es/Player/style/volume.less +21 -0
- package/es/Player/timeline.d.ts +1 -1
- package/es/Player/timeline.js +59 -32
- package/es/Player/util.js +46 -7
- package/es/PlayerExt/demo.d.ts +1 -0
- package/es/PlayerExt/demo.js +145 -112
- package/es/PlayerExt/index.d.ts +1 -1
- package/es/PlayerExt/index.js +135 -82
- package/es/PlayerExt/{index.css → index.less} +0 -0
- package/es/Progress/index.js +18 -5
- package/es/Progress/index.less +20 -0
- package/es/ROI/demo.d.ts +1 -0
- package/es/ROI/demo.js +12 -8
- package/es/ROI/index.js +45 -35
- package/es/ROI/index.less +29 -0
- package/es/ScreenPlayer/Live.d.ts +1 -1
- package/es/ScreenPlayer/Live.js +159 -103
- package/es/ScreenPlayer/LiveTools.js +153 -116
- package/es/ScreenPlayer/PlayerWithExt.js +168 -113
- package/es/ScreenPlayer/RatePick.js +35 -22
- package/es/ScreenPlayer/Record.js +291 -185
- package/es/ScreenPlayer/RecordTools.js +192 -148
- package/es/ScreenPlayer/ScreenSelect.js +33 -26
- package/es/ScreenPlayer/SegmentTimeLine.js +23 -16
- package/es/ScreenPlayer/TimeMode.js +22 -16
- package/es/ScreenPlayer/TimeSelect.js +84 -63
- package/es/ScreenPlayer/demo.js +16 -18
- package/es/ScreenPlayer/demo2.js +192 -177
- package/es/ScreenPlayer/index.d.ts +1 -0
- package/es/ScreenPlayer/index.js +3 -3
- package/es/ScreenPlayer/index.less +178 -0
- package/es/ScreenPlayer/useTimeSlider.js +148 -49
- package/es/ScreenPlayer/useVideoFit.js +18 -5
- package/es/ScreenPlayer/utils.js +6 -0
- package/es/SegmentPlayer/index.js +1 -1
- package/es/Service/fetch-adapter.d.ts +1 -1
- package/es/Service/fetch-adapter.js +48 -5
- package/es/Service/http.js +46 -16
- package/es/Service/index.js +2 -2
- package/es/TableLayout/index.js +18 -12
- package/es/TableLayout/{index.css → index.less} +0 -0
- package/es/ThemeAntd/demo.d.ts +1 -0
- package/es/ThemeAntd/demo.js +126 -76
- package/es/ThemeAntd/{demo.css → demo.less} +4 -3
- package/es/ThemeAntd/index.js +6 -2
- package/es/ThemeAntd/index.less +16 -0
- package/es/ThemeAntd/style/button.less +67 -0
- package/es/ThemeAntd/style/checkbox.less +72 -0
- package/es/ThemeAntd/style/form.less +12 -0
- package/es/ThemeAntd/style/input.less +83 -0
- package/es/ThemeAntd/style/pagination.less +95 -0
- package/es/ThemeAntd/style/picker.less +106 -0
- package/es/ThemeAntd/style/popover.less +5 -0
- package/es/ThemeAntd/style/radio.less +87 -0
- package/es/ThemeAntd/style/{scrollbar.css → scrollbar.less} +4 -2
- package/es/ThemeAntd/style/select.less +81 -0
- package/es/ThemeAntd/style/table.less +57 -0
- package/es/ThemeAntd/style/tree.less +18 -0
- package/es/Timeout/index.js +36 -12
- package/es/Tree/demo.js +26 -21
- package/es/Tree/index.js +51 -30
- package/es/Tree/index.less +59 -0
- package/es/index.js +47 -47
- package/es/useDrawROI/index.js +130 -65
- package/es/useEventEmitterHandle/index.js +6 -2
- package/es/useFullscreen/demo.js +44 -27
- package/es/useFullscreen/index.js +30 -8
- package/es/useHistory/index.js +3 -1
- package/es/useInfiniteScroll/index.js +50 -19
- package/es/useRafInterval/index.js +28 -4
- package/es/useSimpleState/index.js +23 -6
- package/es/useVirtualList/index.js +58 -20
- package/es/utils.d.ts +1 -1
- package/es/utils.js +53 -14
- package/package.json +42 -32
- package/tsconfig.json +8 -32
- package/.eslintrc +0 -4
- package/.fatherrc.js +0 -25
- package/.prettierrc +0 -11
- package/.umirc.ts +0 -55
- package/es/Box/InfoBox/index.css +0 -22
- package/es/Box/TwoColumnBox/index.css +0 -70
- package/es/CheckGroupFixed/index.css +0 -49
- package/es/CustomRenderSelect/index.css +0 -20
- package/es/Drawer/Demo.js +0 -59
- package/es/Drawer/index.css +0 -40
- package/es/FullScreen/index.css +0 -16
- package/es/ImageView/index.css +0 -10
- package/es/Input/index.css +0 -8
- package/es/LabelValue/index.css +0 -18
- package/es/List/DynamicList/index.css +0 -15
- package/es/Map/BasicMap/index.css +0 -24
- package/es/Map/ClusterLayer/index.css +0 -26
- package/es/Map/MapDrawSelect/index.css +0 -0
- package/es/Map/ResetTools/index.css +0 -32
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Hover.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Normal.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Hover.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Normal.svg +0 -15
- package/es/Map/SinglePoint/index.css +0 -29
- package/es/Map/useMarker/index.css +0 -0
- package/es/Modal/index.css +0 -43
- package/es/Picture/component/DefaultRects/index.css +0 -247
- package/es/Picture/component/RectMenu/index.css +0 -31
- package/es/Picture/component/Tools/index.css +0 -42
- package/es/Picture/index.css +0 -12
- package/es/Player/style/bar.css +0 -38
- package/es/Player/style/index.css +0 -30
- package/es/Player/style/message.css +0 -49
- package/es/Player/style/slider.css +0 -96
- package/es/Player/style/timeline.css +0 -99
- package/es/Player/style/volume.css +0 -19
- package/es/Progress/index.css +0 -20
- package/es/ROI/index.css +0 -29
- package/es/ScreenPlayer/index.css +0 -166
- package/es/ThemeAntd/index.css +0 -620
- package/es/ThemeAntd/style/button.css +0 -55
- package/es/ThemeAntd/style/checkbox.css +0 -64
- package/es/ThemeAntd/style/form.css +0 -10
- package/es/ThemeAntd/style/input.css +0 -68
- package/es/ThemeAntd/style/pagination.css +0 -82
- package/es/ThemeAntd/style/picker.css +0 -98
- package/es/ThemeAntd/style/popover.css +0 -3
- package/es/ThemeAntd/style/radio.css +0 -80
- package/es/ThemeAntd/style/select.css +0 -76
- package/es/ThemeAntd/style/table.css +0 -46
- package/es/ThemeAntd/style/tree.css +0 -16
- package/es/Tree/index.css +0 -64
|
@@ -1,27 +1,41 @@
|
|
|
1
1
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
|
|
2
3
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
|
|
3
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
4
7
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
|
+
|
|
5
9
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
+
|
|
6
11
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12
|
+
|
|
7
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
|
|
8
15
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
16
|
+
|
|
9
17
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
+
|
|
19
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
+
|
|
10
21
|
/**
|
|
11
22
|
* @file 全局window沙盒,隔离变量环境
|
|
12
23
|
*/
|
|
13
24
|
var originWindow = window;
|
|
14
25
|
var constructableMap = new WeakMap();
|
|
26
|
+
|
|
15
27
|
function isConstructable(fn) {
|
|
16
28
|
if (constructableMap.has(fn)) {
|
|
17
29
|
return constructableMap.get(fn);
|
|
18
30
|
}
|
|
31
|
+
|
|
19
32
|
var constructableFunctionRegex = /^function\b\s[A-Z].*/;
|
|
20
33
|
var classRegex = /^class\b/;
|
|
21
34
|
var constructable = fn.prototype && fn.prototype.constructor === fn && Object.getOwnPropertyNames(fn.prototype).length > 1 || constructableFunctionRegex.test(fn.toString()) || classRegex.test(fn.toString());
|
|
22
35
|
constructableMap.set(fn, constructable);
|
|
23
36
|
return constructable;
|
|
24
37
|
}
|
|
38
|
+
|
|
25
39
|
var naughtySafari = typeof document.all === 'function' && typeof document.all === 'undefined';
|
|
26
40
|
var isCallable = naughtySafari ? function (fn) {
|
|
27
41
|
return typeof fn === 'function' && typeof fn !== 'undefined';
|
|
@@ -29,34 +43,45 @@ var isCallable = naughtySafari ? function (fn) {
|
|
|
29
43
|
return typeof fn === 'function';
|
|
30
44
|
};
|
|
31
45
|
var boundedMap = new WeakMap();
|
|
46
|
+
|
|
32
47
|
function isBoundedFunction(fn) {
|
|
33
48
|
if (boundedMap.has(fn)) {
|
|
34
49
|
return boundedMap.get(fn);
|
|
35
50
|
}
|
|
51
|
+
|
|
36
52
|
var bounded = fn.name.indexOf('bound ') === 0 && !fn.hasOwnProperty('prototype');
|
|
37
53
|
boundedMap.set(fn, bounded);
|
|
38
54
|
return bounded;
|
|
39
55
|
}
|
|
56
|
+
|
|
40
57
|
var functionBoundedValueMap = new WeakMap();
|
|
58
|
+
|
|
41
59
|
function getTargetValue(target, value) {
|
|
42
60
|
var cachedBoundFunction = functionBoundedValueMap.get(value);
|
|
61
|
+
|
|
43
62
|
if (cachedBoundFunction) {
|
|
44
63
|
return cachedBoundFunction;
|
|
45
64
|
}
|
|
65
|
+
|
|
46
66
|
if (isCallable(value) && !isBoundedFunction(value) && !isConstructable(value)) {
|
|
47
67
|
var boundValue = Function.prototype.bind.call(value, target);
|
|
68
|
+
|
|
48
69
|
for (var key in value) {
|
|
49
70
|
boundValue[key] = value[key];
|
|
50
71
|
}
|
|
72
|
+
|
|
51
73
|
if (value.hasOwnProperty('prototype') && !boundValue.hasOwnProperty('prototype')) boundValue.prototype = value.prototype;
|
|
52
74
|
functionBoundedValueMap.set(value, boundValue);
|
|
53
75
|
return boundValue;
|
|
54
76
|
}
|
|
77
|
+
|
|
55
78
|
return value;
|
|
56
79
|
}
|
|
80
|
+
|
|
57
81
|
function getScript(scriptText) {
|
|
58
82
|
return '(function(window){with(window){;'.concat(scriptText, '\n').concat('}}).bind(window.proxy)(window.proxy);');
|
|
59
83
|
}
|
|
84
|
+
|
|
60
85
|
var rawAddEventListener = window.addEventListener;
|
|
61
86
|
var rawRemoveEventListener = window.removeEventListener;
|
|
62
87
|
var rawWindowInterval = window.setInterval;
|
|
@@ -75,40 +100,59 @@ var unscopables = {
|
|
|
75
100
|
parseFloat: true,
|
|
76
101
|
Float32Array: true
|
|
77
102
|
};
|
|
103
|
+
|
|
78
104
|
function createFakeWindow() {
|
|
79
105
|
var fakeWindow = {};
|
|
80
106
|
Object.getOwnPropertyNames(originWindow).forEach(function (key) {
|
|
81
107
|
var descriptor = Object.getOwnPropertyDescriptor(originWindow, key);
|
|
108
|
+
|
|
82
109
|
if (descriptor && !descriptor.configurable) {
|
|
83
110
|
var hasGetter = Object.prototype.hasOwnProperty.call(descriptor, 'get');
|
|
111
|
+
|
|
84
112
|
if (key === 'top' || key === 'parent' || key === 'self' || key === 'window') {
|
|
85
113
|
descriptor.configurable = true;
|
|
114
|
+
|
|
86
115
|
if (!hasGetter) {
|
|
87
116
|
descriptor.writable = true;
|
|
88
117
|
}
|
|
89
118
|
}
|
|
119
|
+
|
|
90
120
|
Object.defineProperty(fakeWindow, key, Object.freeze(descriptor));
|
|
91
121
|
}
|
|
92
122
|
});
|
|
93
123
|
return fakeWindow;
|
|
94
124
|
}
|
|
125
|
+
|
|
95
126
|
var Sandbox = /*#__PURE__*/function () {
|
|
96
127
|
function Sandbox(showlog) {
|
|
97
128
|
var _this = this;
|
|
129
|
+
|
|
98
130
|
_classCallCheck(this, Sandbox);
|
|
99
|
-
|
|
100
|
-
this
|
|
101
|
-
|
|
102
|
-
this
|
|
103
|
-
|
|
104
|
-
this
|
|
105
|
-
|
|
106
|
-
this
|
|
131
|
+
|
|
132
|
+
_defineProperty(this, "fakeWindow", createFakeWindow());
|
|
133
|
+
|
|
134
|
+
_defineProperty(this, "proxy", void 0);
|
|
135
|
+
|
|
136
|
+
_defineProperty(this, "updateKeys", new Set());
|
|
137
|
+
|
|
138
|
+
_defineProperty(this, "listenerMap", new Map());
|
|
139
|
+
|
|
140
|
+
_defineProperty(this, "timeoutList", []);
|
|
141
|
+
|
|
142
|
+
_defineProperty(this, "intervalList", []);
|
|
143
|
+
|
|
144
|
+
_defineProperty(this, "originKeys", []);
|
|
145
|
+
|
|
146
|
+
_defineProperty(this, "showlog", false);
|
|
147
|
+
|
|
148
|
+
_defineProperty(this, "hasDisposed", false);
|
|
149
|
+
|
|
107
150
|
this.showlog = showlog;
|
|
108
151
|
this.proxy = new Proxy(window, {
|
|
109
152
|
set: function set(target, key, value) {
|
|
110
153
|
if (!_this.hasDisposed) {
|
|
111
154
|
_this.updateKeys.add(key);
|
|
155
|
+
|
|
112
156
|
try {
|
|
113
157
|
if (!_this.fakeWindow.hasOwnProperty(key) && target.hasOwnProperty(key)) {
|
|
114
158
|
// @ts-ignore
|
|
@@ -122,35 +166,42 @@ var Sandbox = /*#__PURE__*/function () {
|
|
|
122
166
|
throw error;
|
|
123
167
|
}
|
|
124
168
|
}
|
|
169
|
+
|
|
125
170
|
return true;
|
|
126
171
|
},
|
|
127
172
|
get: function get(target, key) {
|
|
128
173
|
if (key === Symbol.unscopables) {
|
|
129
174
|
return unscopables;
|
|
130
|
-
}
|
|
131
|
-
|
|
175
|
+
} // @ts-ignore
|
|
176
|
+
|
|
177
|
+
|
|
132
178
|
if (key === 'window' || key === 'self' || key === 'global' || key === 'globalThis') {
|
|
133
179
|
return _this.proxy;
|
|
134
180
|
}
|
|
181
|
+
|
|
135
182
|
if (key === 'document') {
|
|
136
183
|
return target.document;
|
|
137
184
|
}
|
|
185
|
+
|
|
138
186
|
if (key === 'hasOwnProperty') {
|
|
139
187
|
return target.hasOwnProperty;
|
|
140
188
|
}
|
|
189
|
+
|
|
141
190
|
if (key === 'eval') {
|
|
142
191
|
return target.eval;
|
|
143
192
|
}
|
|
193
|
+
|
|
144
194
|
try {
|
|
145
|
-
console.log(key, target);
|
|
146
|
-
|
|
147
|
-
var value = key in target ? target[key] : _this.fakeWindow[key];
|
|
148
|
-
|
|
195
|
+
console.log(key, target); // @ts-ignore
|
|
196
|
+
|
|
197
|
+
var value = key in target ? target[key] : _this.fakeWindow[key]; // @ts-ignore
|
|
198
|
+
|
|
149
199
|
if (isCallable(value) && !isBoundedFunction(value) && !isConstructable(value)) {
|
|
150
200
|
// @ts-ignore
|
|
151
201
|
// return target.matchMedia
|
|
152
202
|
value = Function.prototype.bind.call(value, target);
|
|
153
203
|
}
|
|
204
|
+
|
|
154
205
|
return getTargetValue(window, value);
|
|
155
206
|
} catch (error) {
|
|
156
207
|
console.error('get-key-error', key, error);
|
|
@@ -158,77 +209,99 @@ var Sandbox = /*#__PURE__*/function () {
|
|
|
158
209
|
}
|
|
159
210
|
},
|
|
160
211
|
has: function has(target, key) {
|
|
161
|
-
return key in unscopables || key in target || key in _this.fakeWindow;
|
|
162
|
-
// return this.fakeWindow.hasOwnProperty(key)
|
|
212
|
+
return key in unscopables || key in target || key in _this.fakeWindow; // return this.fakeWindow.hasOwnProperty(key)
|
|
163
213
|
}
|
|
164
|
-
});
|
|
165
|
-
|
|
214
|
+
}); // 事件
|
|
215
|
+
|
|
166
216
|
this.proxy.addEventListener = function (type, listener, options) {
|
|
167
217
|
if (!_this.hasDisposed) {
|
|
168
218
|
var listeners = _this.listenerMap.get(type) || [];
|
|
219
|
+
|
|
169
220
|
_this.listenerMap.set(type, [].concat(_toConsumableArray(listeners), [listener]));
|
|
221
|
+
|
|
170
222
|
return rawAddEventListener.call(window, type, listener, options);
|
|
171
223
|
}
|
|
172
224
|
};
|
|
225
|
+
|
|
173
226
|
this.proxy.removeEventListener = function (type, listener, options) {
|
|
174
227
|
var listeners = _this.listenerMap.get(type);
|
|
228
|
+
|
|
175
229
|
if (listeners && listeners.length) {
|
|
176
230
|
var listenerIndex = listeners.indexOf(listener);
|
|
231
|
+
|
|
177
232
|
if (listenerIndex !== -1) {
|
|
178
233
|
listeners.splice(listeners.indexOf(listener), 1);
|
|
179
234
|
}
|
|
180
235
|
}
|
|
236
|
+
|
|
181
237
|
return rawRemoveEventListener.call(window, type, listener, options);
|
|
182
|
-
};
|
|
183
|
-
|
|
238
|
+
}; // 定时器
|
|
239
|
+
|
|
240
|
+
|
|
184
241
|
this.proxy.setInterval = function (handler, timeout) {
|
|
185
242
|
if (!_this.hasDisposed) {
|
|
186
243
|
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
187
244
|
args[_key - 2] = arguments[_key];
|
|
188
245
|
}
|
|
246
|
+
|
|
189
247
|
var intervalId = rawWindowInterval.apply(void 0, [handler, timeout].concat(args));
|
|
248
|
+
|
|
190
249
|
_this.intervalList.push(intervalId);
|
|
250
|
+
|
|
191
251
|
return intervalId;
|
|
192
252
|
} else {
|
|
193
253
|
return 0;
|
|
194
254
|
}
|
|
195
255
|
};
|
|
256
|
+
|
|
196
257
|
this.proxy.clearInterval = function (intervalId) {
|
|
197
258
|
var intervalIndex = _this.intervalList.indexOf(intervalId);
|
|
259
|
+
|
|
198
260
|
if (intervalIndex !== -1) {
|
|
199
261
|
_this.intervalList.splice(intervalIndex, 1);
|
|
200
262
|
}
|
|
263
|
+
|
|
201
264
|
return rawWindowClearInterval(intervalId);
|
|
202
265
|
};
|
|
266
|
+
|
|
203
267
|
this.proxy.setTimeout = function (handler, timeout) {
|
|
204
268
|
if (!_this.hasDisposed) {
|
|
205
269
|
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
206
270
|
args[_key2 - 2] = arguments[_key2];
|
|
207
271
|
}
|
|
272
|
+
|
|
208
273
|
var timeoutId = rawWindowTimeout.apply(void 0, [handler, timeout].concat(args));
|
|
274
|
+
|
|
209
275
|
_this.timeoutList.push(timeoutId);
|
|
276
|
+
|
|
210
277
|
return timeoutId;
|
|
211
278
|
} else {
|
|
212
279
|
return 0;
|
|
213
280
|
}
|
|
214
281
|
};
|
|
282
|
+
|
|
215
283
|
this.proxy.clearTimeout = function (timeoutId) {
|
|
216
284
|
var timeoutIndex = _this.timeoutList.indexOf(timeoutId);
|
|
285
|
+
|
|
217
286
|
if (timeoutIndex !== -1) {
|
|
218
287
|
_this.timeoutList.splice(timeoutIndex, 1);
|
|
219
288
|
}
|
|
289
|
+
|
|
220
290
|
return rawWindowClearTimeout(timeoutId);
|
|
221
291
|
};
|
|
222
|
-
|
|
223
|
-
// @ts-ignore
|
|
292
|
+
|
|
293
|
+
this.originKeys = this.showWindowKeys(); // @ts-ignore
|
|
294
|
+
|
|
224
295
|
originWindow.proxy = this.proxy;
|
|
225
296
|
}
|
|
297
|
+
|
|
226
298
|
_createClass(Sandbox, [{
|
|
227
299
|
key: "execScript",
|
|
228
300
|
value: function execScript(scriptText) {
|
|
229
301
|
if (this.hasDisposed) {
|
|
230
302
|
throw new Error('sandbox has been destroyed');
|
|
231
303
|
}
|
|
304
|
+
|
|
232
305
|
var scriptTextWithSandbox = getScript(scriptText);
|
|
233
306
|
originWindow.eval(scriptTextWithSandbox);
|
|
234
307
|
}
|
|
@@ -236,11 +309,13 @@ var Sandbox = /*#__PURE__*/function () {
|
|
|
236
309
|
key: "showWindowKeys",
|
|
237
310
|
value: function showWindowKeys() {
|
|
238
311
|
var originKeys = Object.keys(originWindow);
|
|
312
|
+
|
|
239
313
|
if (this.showlog === true) {
|
|
240
314
|
console.log('originWindow', originWindow);
|
|
241
315
|
console.log('updateKeys', this.updateKeys);
|
|
242
316
|
console.log('windowKeysLength', originKeys.length);
|
|
243
317
|
}
|
|
318
|
+
|
|
244
319
|
return originKeys;
|
|
245
320
|
}
|
|
246
321
|
}, {
|
|
@@ -270,8 +345,7 @@ var Sandbox = /*#__PURE__*/function () {
|
|
|
270
345
|
return rawWindowClearTimeout(timeoutId);
|
|
271
346
|
});
|
|
272
347
|
this.timeoutList = [];
|
|
273
|
-
this.fakeWindow = createFakeWindow();
|
|
274
|
-
// const originKeys = this.showWindowKeys()
|
|
348
|
+
this.fakeWindow = createFakeWindow(); // const originKeys = this.showWindowKeys()
|
|
275
349
|
// const newKeys = []
|
|
276
350
|
// for (var i = 0; i < originKeys.length; i++) {
|
|
277
351
|
// if (this.originKeys.indexOf(originKeys[i]) === -1) {
|
|
@@ -281,11 +355,14 @@ var Sandbox = /*#__PURE__*/function () {
|
|
|
281
355
|
// @ts-ignore
|
|
282
356
|
// originWindow.newKeys = newKeys
|
|
283
357
|
// @ts-ignore
|
|
358
|
+
|
|
284
359
|
delete originWindow.proxy;
|
|
285
360
|
this.hasDisposed = true;
|
|
286
361
|
console.log('Sandbox was successfully destroyed');
|
|
287
362
|
}
|
|
288
363
|
}]);
|
|
364
|
+
|
|
289
365
|
return Sandbox;
|
|
290
366
|
}();
|
|
367
|
+
|
|
291
368
|
export default Sandbox;
|
package/es/LoaderApp/sandbox.js
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2
|
+
|
|
2
3
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
|
|
3
5
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
|
|
7
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
|
|
4
9
|
// 懒加载的脚本暂时没法拦截
|
|
5
10
|
var SandBox = /*#__PURE__*/_createClass(function SandBox() {
|
|
6
11
|
var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
|
|
12
|
+
|
|
7
13
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
_ref$blacklist = _ref.blacklist,
|
|
15
|
+
blacklist = _ref$blacklist === void 0 ? [] : _ref$blacklist,
|
|
16
|
+
_ref$docMap = _ref.docMap,
|
|
17
|
+
docMap = _ref$docMap === void 0 ? {} : _ref$docMap;
|
|
18
|
+
|
|
12
19
|
_classCallCheck(this, SandBox);
|
|
13
|
-
|
|
20
|
+
|
|
21
|
+
_defineProperty(this, "updatedValueSet", new Map());
|
|
22
|
+
|
|
14
23
|
var blackmap = {};
|
|
24
|
+
|
|
15
25
|
for (var i = 0; i < blacklist.length; i++) {
|
|
16
26
|
var name = blacklist[i];
|
|
17
27
|
blackmap[name] = true;
|
|
18
28
|
}
|
|
19
|
-
|
|
20
|
-
// const proxyDocoment = createSandBoxDocument(docMap);
|
|
29
|
+
|
|
30
|
+
var updatedValueSet = this.updatedValueSet; // const proxyDocoment = createSandBoxDocument(docMap);
|
|
31
|
+
|
|
21
32
|
var proxy = new Proxy(context, {
|
|
22
33
|
set: function set(target, name, value) {
|
|
23
34
|
if (!target[name]) {
|
|
@@ -25,6 +36,7 @@ var SandBox = /*#__PURE__*/_createClass(function SandBox() {
|
|
|
25
36
|
} else {
|
|
26
37
|
target[name] = value;
|
|
27
38
|
}
|
|
39
|
+
|
|
28
40
|
return true;
|
|
29
41
|
},
|
|
30
42
|
get: function get(target, name) {
|
|
@@ -32,10 +44,10 @@ var SandBox = /*#__PURE__*/_createClass(function SandBox() {
|
|
|
32
44
|
console.error("Can't assess property: ".concat(name, " in blacklist"));
|
|
33
45
|
return undefined;
|
|
34
46
|
}
|
|
47
|
+
|
|
35
48
|
if (updatedValueSet.has(name)) {
|
|
36
49
|
return updatedValueSet.get(name);
|
|
37
|
-
}
|
|
38
|
-
// if (
|
|
50
|
+
} // if (
|
|
39
51
|
// name === 'Object' ||
|
|
40
52
|
// name === 'Symbol' ||
|
|
41
53
|
// typeof name === 'symbol' ||
|
|
@@ -52,12 +64,15 @@ var SandBox = /*#__PURE__*/_createClass(function SandBox() {
|
|
|
52
64
|
// } else {
|
|
53
65
|
// console.log(name);
|
|
54
66
|
// }
|
|
67
|
+
|
|
68
|
+
|
|
55
69
|
switch (name) {
|
|
56
70
|
case 'window':
|
|
57
71
|
case 'global':
|
|
58
72
|
case 'self':
|
|
59
73
|
case 'globalThis':
|
|
60
74
|
return proxy;
|
|
75
|
+
|
|
61
76
|
case 'document':
|
|
62
77
|
return document;
|
|
63
78
|
// return proxyDocoment;
|
|
@@ -93,4 +108,6 @@ var SandBox = /*#__PURE__*/_createClass(function SandBox() {
|
|
|
93
108
|
// })(new SandBox(window, { docMap: { head: document.body } }));
|
|
94
109
|
// }
|
|
95
110
|
// text();
|
|
111
|
+
|
|
112
|
+
|
|
96
113
|
export default SandBox;
|
package/es/LoaderApp/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppItemType } from '../Config/interface';
|
|
2
|
-
export declare const getMicroConfig: (appConfig: AppItemType, appProps: any, container: HTMLDivElement) => {
|
|
2
|
+
export declare const getMicroConfig: (appConfig: AppItemType | undefined, appProps: any, container: HTMLDivElement) => {
|
|
3
3
|
title: string;
|
|
4
4
|
routerPrefix: string;
|
|
5
5
|
container: HTMLDivElement;
|