@seafile/sdoc-editor 2.0.77 → 2.0.78
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.
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactI18next = require("react-i18next");
|
|
10
10
|
var _basicSdk = require("../../../basic-sdk");
|
|
11
|
-
var _constants = require("../../../constants");
|
|
11
|
+
var _constants = require("../../../basic-sdk/constants");
|
|
12
12
|
const PresentationOperation = () => {
|
|
13
13
|
const {
|
|
14
14
|
t
|
|
@@ -16,7 +16,7 @@ const PresentationOperation = () => {
|
|
|
16
16
|
const id = 'sdoc_presentation';
|
|
17
17
|
const onPresentationToggle = (0, _react.useCallback)(() => {
|
|
18
18
|
const eventBus = _basicSdk.EventBus.getInstance();
|
|
19
|
-
eventBus.dispatch(_constants.
|
|
19
|
+
eventBus.dispatch(_constants.INTERNAL_EVENT.TOGGLE_PRESENTATION_MODE, {
|
|
20
20
|
isShowFullScreen: true
|
|
21
21
|
});
|
|
22
22
|
const node = document.querySelector('.sdoc-editor-container');
|