@difizen/libro-core 0.2.28 → 0.2.29
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/es/libro-view.js +2 -2
- package/package.json +5 -5
- package/src/libro-view.tsx +3 -3
package/es/libro-view.js
CHANGED
|
@@ -33,7 +33,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33
33
|
import { ToTopOutlined } from '@ant-design/icons';
|
|
34
34
|
import { concatMultilineString, copy2clipboard, readFromClipboard } from '@difizen/libro-common';
|
|
35
35
|
import { equals, useInject, inject, transient, BaseView, Slot, view, ViewInstance, ViewManager, ViewOption, Deferred, Disposable, DisposableCollection, Emitter, getOrigin, prop, watch, ConfigurationService, useConfigurationValue } from '@difizen/mana-app';
|
|
36
|
-
import {
|
|
36
|
+
import { FloatButton, Button, Spin } from 'antd';
|
|
37
37
|
import { forwardRef, memo, useCallback, useEffect, useRef } from 'react';
|
|
38
38
|
import { v4 } from 'uuid';
|
|
39
39
|
import { CellService, EditorCellView, ExecutableCellModel, ExecutableCellView } from "./cell/index.js";
|
|
@@ -120,7 +120,7 @@ export var LibroContentComponent = /*#__PURE__*/memo(function LibroContentCompon
|
|
|
120
120
|
name: libroSlotManager.getSlotName(instance, 'right'),
|
|
121
121
|
slotView: LibroSlotView
|
|
122
122
|
})
|
|
123
|
-
}), /*#__PURE__*/_jsx(BackTop, {
|
|
123
|
+
}), /*#__PURE__*/_jsx(FloatButton.BackTop, {
|
|
124
124
|
target: function target() {
|
|
125
125
|
return libroViewContentRef.current || document;
|
|
126
126
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ant-design/icons": "^5.1.0",
|
|
37
|
-
"@difizen/libro-code-editor": "^0.2.
|
|
38
|
-
"@difizen/libro-common": "^0.2.
|
|
39
|
-
"@difizen/libro-shared-model": "^0.2.
|
|
40
|
-
"@difizen/libro-virtualized": "^0.2.
|
|
37
|
+
"@difizen/libro-code-editor": "^0.2.29",
|
|
38
|
+
"@difizen/libro-common": "^0.2.29",
|
|
39
|
+
"@difizen/libro-shared-model": "^0.2.29",
|
|
40
|
+
"@difizen/libro-virtualized": "^0.2.29",
|
|
41
41
|
"@difizen/mana-app": "latest",
|
|
42
42
|
"@difizen/mana-l10n": "latest",
|
|
43
43
|
"@difizen/mana-react": "latest",
|
package/src/libro-view.tsx
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
ConfigurationService,
|
|
27
27
|
useConfigurationValue,
|
|
28
28
|
} from '@difizen/mana-app';
|
|
29
|
-
import {
|
|
29
|
+
import { FloatButton, Button, Spin } from 'antd';
|
|
30
30
|
import type { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
31
31
|
import { forwardRef, memo, useCallback, useEffect, useRef } from 'react';
|
|
32
32
|
import { v4 } from 'uuid';
|
|
@@ -173,11 +173,11 @@ export const LibroContentComponent = memo(function LibroContentComponent() {
|
|
|
173
173
|
slotView={LibroSlotView}
|
|
174
174
|
/>
|
|
175
175
|
</div>
|
|
176
|
-
<BackTop target={() => libroViewContentRef.current || document}>
|
|
176
|
+
<FloatButton.BackTop target={() => libroViewContentRef.current || document}>
|
|
177
177
|
<div className="libro-totop-button">
|
|
178
178
|
<Button shape="circle" icon={<ToTopOutlined />} />
|
|
179
179
|
</div>
|
|
180
|
-
</BackTop>
|
|
180
|
+
</FloatButton.BackTop>
|
|
181
181
|
<Slot
|
|
182
182
|
name={libroSlotManager.getSlotName(instance, 'content')}
|
|
183
183
|
slotView={LibroSlotView}
|