@difizen/libro-core 0.0.2-alpha.0 → 0.1.0
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 +279 -2
- package/es/add-cell/libro-add-cell-slot-contribution.js +2 -2
- package/es/add-cell/libro-add-cell-view.js +2 -2
- package/es/cell/libro-cell-contribution.js +1 -1
- package/es/cell/libro-cell-model.js +6 -6
- package/es/cell/libro-cell-service.js +4 -4
- package/es/cell/libro-cell-view.d.ts +1 -33
- package/es/cell/libro-cell-view.d.ts.map +1 -1
- package/es/cell/libro-cell-view.js +7 -7
- package/es/cell/libro-edit-cell-view.js +3 -3
- package/es/cell/libro-executable-cell-view.js +2 -2
- package/es/collapse-service.js +1 -1
- package/es/command/document-commands.js +1 -1
- package/es/command/kernel-command.js +1 -3
- package/es/command/libro-command-contribution.js +4 -4
- package/es/command/libro-command-register.js +2 -2
- package/es/command/notebook-commands.js +2 -11
- package/es/components/dnd-cell-item-render.js +7 -7
- package/es/components/dnd-component/custom-drag-layer.js +4 -4
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -1
- package/es/components/dnd-component/default-dnd-content.js +7 -7
- package/es/components/dnd-component/dnd-list.d.ts +2 -2
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -1
- package/es/components/dnd-component/dnd-list.js +8 -8
- package/es/components/libro-component.js +1 -1
- package/es/configuration/libro-configuration-contribution.js +3 -3
- package/es/configuration/libro-configuration.js +7 -7
- package/es/content/libro-content-contribution.js +1 -1
- package/es/content/libro-content-service.d.ts +1 -1
- package/es/content/libro-content-service.js +1 -1
- package/es/libro-context-key.js +1 -1
- package/es/libro-keybind-registry.js +1 -1
- package/es/libro-model.js +7 -7
- package/es/libro-service.js +4 -4
- package/es/libro-view-tracker.js +1 -1
- package/es/libro-view.d.ts.map +1 -1
- package/es/libro-view.js +34 -36
- package/es/module.d.ts.map +1 -1
- package/es/module.js +2 -2
- package/es/output/output-area.d.ts.map +1 -1
- package/es/output/output-area.js +4 -4
- package/es/output/output-contribution.js +1 -1
- package/es/output/output-model.js +1 -1
- package/es/slot/libro-slot-manager.js +2 -2
- package/es/slot/libro-slot-protocol.d.ts +1 -1
- package/es/slot/libro-slot-protocol.d.ts.map +1 -1
- package/es/slot/libro-slot-view.js +1 -1
- package/es/theme/libro-color-registry.js +70 -70
- package/es/toolbar/change-cell-to-selector.js +1 -1
- package/es/toolbar/libro-toolbar.js +1 -1
- package/es/toolbar/restart-clear-outputs-contribution.js +1 -1
- package/es/toolbar/restart-clear-outputs-modal.js +1 -1
- package/es/toolbar/save-icon.js +2 -2
- package/es/toolbar/shutdown-contribution.js +1 -1
- package/es/toolbar/shutdown-modal.js +1 -1
- package/package.json +9 -9
- package/src/command/document-commands.ts +1 -1
- package/src/command/kernel-command.ts +1 -3
- package/src/command/notebook-commands.ts +2 -11
- package/src/components/dnd-cell-item-render.tsx +5 -5
- package/src/components/dnd-component/default-dnd-content.tsx +1 -1
- package/src/components/dnd-component/dnd-list.tsx +8 -5
- package/src/configuration/libro-configuration-contribution.ts +2 -2
- package/src/configuration/libro-configuration.ts +7 -7
- package/src/index.spec.ts +12 -0
- package/src/libro-view.tsx +2 -3
- package/src/module.ts +2 -1
- package/src/slot/libro-slot-protocol.ts +1 -1
- package/src/theme/libro-color-registry.ts +57 -57
- package/es/command/document-commands.d.ts +0 -6
- package/es/command/document-commands.d.ts.map +0 -1
- package/es/command/kernel-command.d.ts +0 -5
- package/es/command/kernel-command.d.ts.map +0 -1
- package/es/command/notebook-commands.d.ts +0 -6
- package/es/command/notebook-commands.d.ts.map +0 -1
- package/es/configuration/libro-configuration-contribution.d.ts +0 -5
- package/es/configuration/libro-configuration-contribution.d.ts.map +0 -1
- package/es/configuration/libro-configuration.d.ts +0 -10
- package/es/configuration/libro-configuration.d.ts.map +0 -1
- package/es/libro-keybind-registry.d.ts +0 -5
- package/es/libro-keybind-registry.d.ts.map +0 -1
- package/es/material-from-designer.d.ts +0 -27
- package/es/material-from-designer.d.ts.map +0 -1
- package/es/theme/libro-color-registry.d.ts +0 -6
- package/es/theme/libro-color-registry.d.ts.map +0 -1
|
@@ -7,9 +7,9 @@ import { getEmptyImage } from 'react-dnd-html5-backend';
|
|
|
7
7
|
|
|
8
8
|
import { CellService } from '../../cell/index.js';
|
|
9
9
|
import { CellCollapsible } from '../../collapse-service.js';
|
|
10
|
+
import { MultiSelectionWhenShiftClick } from '../../configuration/libro-configuration.js';
|
|
10
11
|
import { isCellView, DragAreaKey } from '../../libro-protocol.js';
|
|
11
12
|
import type { CellView, DndContentProps } from '../../libro-protocol.js';
|
|
12
|
-
import { MultiSelectionWhenShiftClick } from '../../configuration/libro-configuration.js';
|
|
13
13
|
import type { LibroView } from '../../libro-view.js';
|
|
14
14
|
import { HolderOutlined, PlusOutlined } from '../../material-from-designer.js';
|
|
15
15
|
import { hasErrorOutput } from '../../output/index.js';
|
|
@@ -45,10 +45,13 @@ export const DndCellContent = forwardRef<HTMLDivElement, { libroView: LibroView
|
|
|
45
45
|
},
|
|
46
46
|
);
|
|
47
47
|
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
export function DndList({
|
|
49
|
+
libroView,
|
|
50
|
+
children,
|
|
51
|
+
}: {
|
|
52
|
+
libroView: LibroView;
|
|
53
|
+
children: any;
|
|
54
|
+
}) {
|
|
52
55
|
const cellService = useInject<CellService>(LibroCellService);
|
|
53
56
|
|
|
54
57
|
const [, drop] = useDrop<Dragparams>(() => ({
|
|
@@ -113,4 +116,4 @@ export const DndList = forwardRef<
|
|
|
113
116
|
{children}
|
|
114
117
|
</div>
|
|
115
118
|
);
|
|
116
|
-
}
|
|
119
|
+
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
HeaderToolbarVisible,
|
|
8
8
|
AutoInsertWhenNoCell,
|
|
9
9
|
EnterEditModeWhenAddCell,
|
|
10
|
-
|
|
10
|
+
CollapserActive,
|
|
11
11
|
MultiSelectionWhenShiftClick,
|
|
12
12
|
RightContentFixed,
|
|
13
13
|
} from './libro-configuration.js';
|
|
@@ -21,7 +21,7 @@ export class LibroConfigurationContribution implements ConfigurationContribution
|
|
|
21
21
|
CellSideToolbarVisible,
|
|
22
22
|
AutoInsertWhenNoCell,
|
|
23
23
|
EnterEditModeWhenAddCell,
|
|
24
|
-
|
|
24
|
+
CollapserActive,
|
|
25
25
|
MultiSelectionWhenShiftClick,
|
|
26
26
|
RightContentFixed,
|
|
27
27
|
];
|
|
@@ -13,7 +13,7 @@ export const HeaderToolbarVisible: ConfigurationNode<boolean> = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export const CellTopToolbarSetting: ConfigurationNode<boolean> = {
|
|
16
|
-
id: 'libro.cell.
|
|
16
|
+
id: 'libro.cell.top-toolbar',
|
|
17
17
|
description: l10n.t('是否显示cell顶部工具栏'),
|
|
18
18
|
title: l10n.t('cell顶部工具栏'),
|
|
19
19
|
type: 'checkbox',
|
|
@@ -24,7 +24,7 @@ export const CellTopToolbarSetting: ConfigurationNode<boolean> = {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export const CellSideToolbarVisible: ConfigurationNode<boolean> = {
|
|
27
|
-
id: 'libro.cell.
|
|
27
|
+
id: 'libro.cell.side-toolbar',
|
|
28
28
|
description: l10n.t('是否显示cell侧边工具栏'),
|
|
29
29
|
title: l10n.t('cell侧边工具栏'),
|
|
30
30
|
type: 'checkbox',
|
|
@@ -35,7 +35,7 @@ export const CellSideToolbarVisible: ConfigurationNode<boolean> = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
export const AutoInsertWhenNoCell: ConfigurationNode<boolean> = {
|
|
38
|
-
id: 'libro.command.
|
|
38
|
+
id: 'libro.command.insert-cell-below',
|
|
39
39
|
description: l10n.t('没有cell时是否默认创建cell'),
|
|
40
40
|
title: l10n.t('默认创建cell'),
|
|
41
41
|
type: 'checkbox',
|
|
@@ -46,7 +46,7 @@ export const AutoInsertWhenNoCell: ConfigurationNode<boolean> = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export const EnterEditModeWhenAddCell: ConfigurationNode<boolean> = {
|
|
49
|
-
id: 'libro.command.
|
|
49
|
+
id: 'libro.command.enter-edit-mode-when-add-cell',
|
|
50
50
|
description: l10n.t('增加cell操作默认进入编辑态'),
|
|
51
51
|
title: l10n.t('默认进入编辑态'),
|
|
52
52
|
type: 'checkbox',
|
|
@@ -55,8 +55,8 @@ export const EnterEditModeWhenAddCell: ConfigurationNode<boolean> = {
|
|
|
55
55
|
type: 'boolean',
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
|
-
export const
|
|
59
|
-
id: 'libro.command.
|
|
58
|
+
export const CollapserActive: ConfigurationNode<boolean> = {
|
|
59
|
+
id: 'libro.command.collapser-active',
|
|
60
60
|
description: l10n.t('点击左侧长条是否可以隐藏与显示cell'),
|
|
61
61
|
title: l10n.t('默认点击长条可以隐藏与显示cell'),
|
|
62
62
|
type: 'checkbox',
|
|
@@ -66,7 +66,7 @@ export const CollapserClickActive: ConfigurationNode<boolean> = {
|
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
68
|
export const MultiSelectionWhenShiftClick: ConfigurationNode<boolean> = {
|
|
69
|
-
id: 'libro.command.
|
|
69
|
+
id: 'libro.command.multiselection-when-shift-click',
|
|
70
70
|
description: l10n.t('按住shift键并点击拖拽区域可以进行多选'),
|
|
71
71
|
title: l10n.t('默认按住shift键并点击拖拽区域可以进行多选'),
|
|
72
72
|
type: 'checkbox',
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import assert from 'assert';
|
|
2
|
+
|
|
3
|
+
import { LibroService, LibroView, LibroCellService } from './index.js';
|
|
4
|
+
import 'reflect-metadata';
|
|
5
|
+
|
|
6
|
+
describe('libro-core', () => {
|
|
7
|
+
it('#import', () => {
|
|
8
|
+
assert(LibroService);
|
|
9
|
+
assert(LibroView);
|
|
10
|
+
assert(LibroCellService);
|
|
11
|
+
});
|
|
12
|
+
});
|
package/src/libro-view.tsx
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ViewOption,
|
|
13
13
|
} from '@difizen/mana-app';
|
|
14
14
|
import { inject, transient, useInject, equals } from '@difizen/mana-app';
|
|
15
|
-
import { Spin, Button,
|
|
15
|
+
import { Spin, Button, FloatButton } from 'antd';
|
|
16
16
|
import type { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
17
17
|
import { useEffect, useRef, useCallback, memo, forwardRef } from 'react';
|
|
18
18
|
import { v4 } from 'uuid';
|
|
@@ -57,7 +57,6 @@ import './index.less';
|
|
|
57
57
|
|
|
58
58
|
export const LibroContentComponent = memo(function LibroContentComponent() {
|
|
59
59
|
const libroSlotManager = useInject(LibroSlotManager);
|
|
60
|
-
const ref = useRef<HTMLDivElement>(null);
|
|
61
60
|
const libroViewTopRef = useRef<HTMLDivElement>(null);
|
|
62
61
|
const libroViewRightContentRef = useRef<HTMLDivElement>(null);
|
|
63
62
|
const libroViewLeftContentRef = useRef<HTMLDivElement>(null);
|
|
@@ -134,7 +133,7 @@ export const LibroContentComponent = memo(function LibroContentComponent() {
|
|
|
134
133
|
<div className="libro-view-content-left" ref={libroViewLeftContentRef}>
|
|
135
134
|
<DndContext>
|
|
136
135
|
<CustomDragLayer />
|
|
137
|
-
<DndList libroView={instance}
|
|
136
|
+
<DndList libroView={instance}>
|
|
138
137
|
<Slot
|
|
139
138
|
name={libroSlotManager.getSlotName(instance, 'list')}
|
|
140
139
|
slotView={LibroSlotView}
|
package/src/module.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CodeEditorModule } from '@difizen/libro-code-editor';
|
|
2
|
-
import { ConfigurationModule } from '@difizen/mana-app';
|
|
2
|
+
import { ConfigurationModule, ManaAppPreset } from '@difizen/mana-app';
|
|
3
3
|
import { ManaModule } from '@difizen/mana-app';
|
|
4
4
|
|
|
5
5
|
import { LibroCellModule } from './cell/libro-cell-module.js';
|
|
@@ -80,6 +80,7 @@ export const LibroModule = ManaModule.create()
|
|
|
80
80
|
},
|
|
81
81
|
)
|
|
82
82
|
.dependOn(
|
|
83
|
+
ManaAppPreset,
|
|
83
84
|
LibroCellModule,
|
|
84
85
|
LibroSlotModule,
|
|
85
86
|
CodeEditorModule,
|
|
@@ -17,7 +17,7 @@ export interface LibroExtensionSlotContribution {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export type LibroSlot = 'content' | 'container' | 'list' | 'right'
|
|
20
|
+
export type LibroSlot = 'content' | 'container' | 'list' | 'right';
|
|
21
21
|
|
|
22
22
|
export interface DisplayView {
|
|
23
23
|
isDisplay: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorRegistry } from '@difizen/mana-app';
|
|
2
|
-
import {
|
|
2
|
+
import { ColorContribution } from '@difizen/mana-app';
|
|
3
3
|
import { singleton } from '@difizen/mana-app';
|
|
4
4
|
|
|
5
5
|
@singleton({ contrib: ColorContribution })
|
|
@@ -19,12 +19,12 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
id: 'libro.background',
|
|
22
|
-
defaults: { dark: '#
|
|
22
|
+
defaults: { dark: '#1F2022', light: '#FFFFFF' },
|
|
23
23
|
description: '',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
id: 'libro.popover.background.color',
|
|
27
|
-
defaults: { dark: '#
|
|
27
|
+
defaults: { dark: '#2F3032', light: '#FFFFFF' },
|
|
28
28
|
description: '',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
@@ -35,8 +35,8 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
35
35
|
{
|
|
36
36
|
id: 'libro.dropdown.icon.color',
|
|
37
37
|
defaults: {
|
|
38
|
-
dark:
|
|
39
|
-
light:
|
|
38
|
+
dark: '#FFFFFF4D',
|
|
39
|
+
light: '#00000033',
|
|
40
40
|
},
|
|
41
41
|
description: '',
|
|
42
42
|
},
|
|
@@ -47,24 +47,24 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
id: 'libro.text.default.color',
|
|
50
|
-
defaults: { dark: '#
|
|
50
|
+
defaults: { dark: '#E3E4E6', light: '#000000' },
|
|
51
51
|
description: '',
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
id: 'libro.text.tertiary.color',
|
|
55
|
-
defaults: { dark: '#
|
|
55
|
+
defaults: { dark: '#BDC0C4', light: '#B8BABA' },
|
|
56
56
|
description: '',
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
id: 'libro.output.background',
|
|
60
|
-
defaults: { dark: '#292A2D', light: '#
|
|
60
|
+
defaults: { dark: '#292A2D', light: '#FFFFFF' },
|
|
61
61
|
description: '',
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
id: 'libro.toptoolbar.border.color',
|
|
65
65
|
defaults: {
|
|
66
|
-
dark:
|
|
67
|
-
light:
|
|
66
|
+
dark: '#FFFFFF1A',
|
|
67
|
+
light: '#0000001A',
|
|
68
68
|
},
|
|
69
69
|
description: '',
|
|
70
70
|
},
|
|
@@ -76,47 +76,47 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
76
76
|
{
|
|
77
77
|
id: 'libro.toptoolbar.disabled.icon.color',
|
|
78
78
|
defaults: {
|
|
79
|
-
dark:
|
|
80
|
-
light:
|
|
79
|
+
dark: '#FFFFFF4D',
|
|
80
|
+
light: '#00000040',
|
|
81
81
|
},
|
|
82
82
|
description: '',
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
id: 'libro.toptoolbar.text.color',
|
|
86
|
-
defaults: { dark: '#
|
|
86
|
+
defaults: { dark: '#F5F5F5', light: '#000000' },
|
|
87
87
|
description: '',
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
id: 'libro.bottom.btn.background.color',
|
|
91
91
|
defaults: {
|
|
92
|
-
dark:
|
|
93
|
-
light:
|
|
92
|
+
dark: '#FFFFFF0A',
|
|
93
|
+
light: '#FFFFFF',
|
|
94
94
|
},
|
|
95
95
|
description: '',
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
id: 'libro.bottom.btn.border.color',
|
|
99
|
-
defaults: { dark: '#505559', light:
|
|
99
|
+
defaults: { dark: '#505559', light: '#000A1A29' },
|
|
100
100
|
description: '',
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
id: 'libro.bottom.btn.icon.color',
|
|
104
|
-
defaults: { dark: '#505559', light:
|
|
104
|
+
defaults: { dark: '#505559', light: '#525964D9' },
|
|
105
105
|
description: '',
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
id: 'libro.bottom.btn.text.color',
|
|
109
|
-
defaults: { dark: '#E3E4E6', light:
|
|
109
|
+
defaults: { dark: '#E3E4E6', light: '#000A1AAD' },
|
|
110
110
|
description: '',
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
id: 'libro.default.btn.background.color',
|
|
114
|
-
defaults: { dark:
|
|
114
|
+
defaults: { dark: '#FFFFFF1A', light: '#FFFFFF' },
|
|
115
115
|
description: '',
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
id: 'libro.default.btn.text.color',
|
|
119
|
-
defaults: { dark: '#E3E4E6', light:
|
|
119
|
+
defaults: { dark: '#E3E4E6', light: '#000A1AAD' },
|
|
120
120
|
description: '',
|
|
121
121
|
},
|
|
122
122
|
{
|
|
@@ -131,17 +131,17 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
id: 'libro.toolbar.menu.label.color',
|
|
134
|
-
defaults: { dark: '#BDC0C4', light:
|
|
134
|
+
defaults: { dark: '#BDC0C4', light: '#000000A6' },
|
|
135
135
|
description: '',
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
id: 'libro.toolbar.menu.disabled.label.color',
|
|
139
|
-
defaults: { dark: '#
|
|
139
|
+
defaults: { dark: '#878C93', light: '#00000040' },
|
|
140
140
|
description: '',
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
id: 'libro.toolbar.menu.keybind.color',
|
|
144
|
-
defaults: { dark: '#
|
|
144
|
+
defaults: { dark: '#878C93', light: '#00000073' },
|
|
145
145
|
description: '',
|
|
146
146
|
},
|
|
147
147
|
{
|
|
@@ -152,27 +152,27 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
152
152
|
{
|
|
153
153
|
id: 'libro.sidetoolbar.border.color',
|
|
154
154
|
defaults: {
|
|
155
|
-
dark:
|
|
156
|
-
light:
|
|
155
|
+
dark: '#FFFFFF14',
|
|
156
|
+
light: '#0000001A',
|
|
157
157
|
},
|
|
158
158
|
description: '',
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
id: 'libro.close.color',
|
|
162
162
|
defaults: {
|
|
163
|
-
dark:
|
|
164
|
-
light:
|
|
163
|
+
dark: '#FFFFFF73',
|
|
164
|
+
light: '#00000073',
|
|
165
165
|
},
|
|
166
166
|
description: '',
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
id: 'libro.modal.title.color',
|
|
170
|
-
defaults: { dark: '#EDEEEF', light:
|
|
170
|
+
defaults: { dark: '#EDEEEF', light: '#000000D9' },
|
|
171
171
|
description: '',
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
id: 'libro.modal.content.color',
|
|
175
|
-
defaults: { dark: '#
|
|
175
|
+
defaults: { dark: '#E3E4E6', light: '#000A1A' },
|
|
176
176
|
description: '',
|
|
177
177
|
},
|
|
178
178
|
{
|
|
@@ -187,7 +187,7 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
id: 'libro.tip.font.color',
|
|
190
|
-
defaults: { dark: '#D6D8DA', light:
|
|
190
|
+
defaults: { dark: '#D6D8DA', light: '#00000080' },
|
|
191
191
|
description: '',
|
|
192
192
|
},
|
|
193
193
|
{
|
|
@@ -202,24 +202,24 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
id: 'libro.error.color',
|
|
205
|
-
defaults: { dark: '#
|
|
205
|
+
defaults: { dark: '#CF4C52', light: '#ED1345' },
|
|
206
206
|
description: '',
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
id: 'libro.cell.border.color',
|
|
210
|
-
defaults: { dark: '#
|
|
210
|
+
defaults: { dark: '#3B3C42', light: '#D6DEE6' },
|
|
211
211
|
description: '',
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
id: 'libro.cell.active.border.color',
|
|
215
|
-
defaults: { dark: '#
|
|
215
|
+
defaults: { dark: '#378EDF', light: '#3490ED' },
|
|
216
216
|
description: '',
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
id: 'libro.cell.active.border.shadow.color',
|
|
220
220
|
defaults: {
|
|
221
|
-
dark:
|
|
222
|
-
light:
|
|
221
|
+
dark: '#49A2FA40',
|
|
222
|
+
light: '#3592EE40',
|
|
223
223
|
},
|
|
224
224
|
description: '',
|
|
225
225
|
},
|
|
@@ -230,7 +230,7 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
id: 'libro.cell.header.title',
|
|
233
|
-
defaults: { dark: '#
|
|
233
|
+
defaults: { dark: '#D6D8DA', light: '#000A1A' },
|
|
234
234
|
description: '',
|
|
235
235
|
},
|
|
236
236
|
{
|
|
@@ -240,22 +240,22 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
id: 'libro.input.border.color',
|
|
243
|
-
defaults: { dark: '#505559', light:
|
|
243
|
+
defaults: { dark: '#505559', light: '#00000026' },
|
|
244
244
|
description: '',
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
id: 'libro.input.background.color',
|
|
248
|
-
defaults: { dark:
|
|
248
|
+
defaults: { dark: '#FFFFFF0A', light: '#FFFFFF' },
|
|
249
249
|
description: '',
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
id: 'libro.input.group.btn.background.color',
|
|
253
|
-
defaults: { dark:
|
|
253
|
+
defaults: { dark: '#00000005', light: '#00000005' },
|
|
254
254
|
description: '',
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
id: 'libro.table.innner.border.color',
|
|
258
|
-
defaults: { dark: '#
|
|
258
|
+
defaults: { dark: '#1AFFFF', light: '#E5EBF1' },
|
|
259
259
|
description: '',
|
|
260
260
|
},
|
|
261
261
|
{
|
|
@@ -265,52 +265,52 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
id: 'libro.editor.keyword.color',
|
|
268
|
-
defaults: { dark: '#
|
|
268
|
+
defaults: { dark: '#109B67', light: '#098658' },
|
|
269
269
|
description: '',
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
id: 'libro.editor.number.color',
|
|
273
|
-
defaults: { dark: '#
|
|
273
|
+
defaults: { dark: '#109B67', light: '#098658' },
|
|
274
274
|
description: '',
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
id: 'libro.editor.variable.2.color',
|
|
278
|
-
defaults: { dark: '#
|
|
278
|
+
defaults: { dark: '#5DA4EA', light: '#2060A0' },
|
|
279
279
|
description: '',
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
id: 'libro.editor.punctuation.color',
|
|
283
|
-
defaults: { dark: '#
|
|
283
|
+
defaults: { dark: '#5DA4EA', light: '#2060A0' },
|
|
284
284
|
description: '',
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
287
|
id: 'libro.editor.property.color',
|
|
288
|
-
defaults: { dark: '#
|
|
288
|
+
defaults: { dark: '#5DA4EA', light: '#2060A0' },
|
|
289
289
|
description: '',
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
id: 'libro.editor.operator.color',
|
|
293
|
-
defaults: { dark: '
|
|
293
|
+
defaults: { dark: 'E12EE1', light: '#C700C7' },
|
|
294
294
|
description: '',
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
id: 'libro.editor.meta.color',
|
|
298
|
-
defaults: { dark: '#
|
|
298
|
+
defaults: { dark: '#E12EE1', light: '#C700C7' },
|
|
299
299
|
description: '',
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
id: 'libro.editor.builtin.color',
|
|
303
|
-
defaults: { dark: '#
|
|
303
|
+
defaults: { dark: '#109B67', light: '#098658' },
|
|
304
304
|
description: '',
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
id: 'libro.editor.variable.color',
|
|
308
|
-
defaults: { dark: '#
|
|
308
|
+
defaults: { dark: '#E3E4E6', light: '#212121' },
|
|
309
309
|
description: '',
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
id: 'libro.editor.def.color',
|
|
313
|
-
defaults: { dark: '#
|
|
313
|
+
defaults: { dark: '#187DFF', light: '#003CFF' },
|
|
314
314
|
description: '',
|
|
315
315
|
},
|
|
316
316
|
{
|
|
@@ -320,20 +320,20 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
id: 'libro.editor.string.color',
|
|
323
|
-
defaults: { dark: '#
|
|
323
|
+
defaults: { dark: '#FF5B48', light: '#C03030' },
|
|
324
324
|
description: '',
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
id: 'libro.editor.activeline.color',
|
|
328
328
|
defaults: {
|
|
329
|
-
dark:
|
|
330
|
-
light:
|
|
329
|
+
dark: '#E5E8F01A',
|
|
330
|
+
light: '#E5E8F080',
|
|
331
331
|
},
|
|
332
332
|
description: '',
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
335
|
id: 'libro.editor.selectionMatch.color',
|
|
336
|
-
defaults: { dark: '#
|
|
336
|
+
defaults: { dark: '#99FF7780', light: '#DDE6FF' },
|
|
337
337
|
description: '',
|
|
338
338
|
},
|
|
339
339
|
{
|
|
@@ -343,7 +343,7 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
id: 'libro.editor.gutter.number.color',
|
|
346
|
-
defaults: { dark: '#
|
|
346
|
+
defaults: { dark: '#A8EABF', light: '#A4AECB' },
|
|
347
347
|
description: '',
|
|
348
348
|
},
|
|
349
349
|
{
|
|
@@ -353,12 +353,12 @@ export class LibroColorRegistry implements ColorContribution {
|
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
id: 'libro.editor.cursor.color',
|
|
356
|
-
defaults: { dark: '#
|
|
356
|
+
defaults: { dark: '#FFFFFF', light: '#000000' },
|
|
357
357
|
description: '',
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
id: 'libro.editor.indent.marker.bg.color',
|
|
361
|
-
defaults: { dark: '#
|
|
361
|
+
defaults: { dark: '#42444D', light: '#D6DBEB' },
|
|
362
362
|
description: '',
|
|
363
363
|
},
|
|
364
364
|
{
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-commands.d.ts","sourceRoot":"","sources":["../../src/command/document-commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN,OAAO,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAYjF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kernel-command.d.ts","sourceRoot":"","sources":["../../src/command/kernel-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAqCzE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebook-commands.d.ts","sourceRoot":"","sources":["../../src/command/notebook-commands.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAcjD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN,OAAO,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAqdjF,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ConfigurationContribution } from '@difizen/mana-app';
|
|
2
|
-
export declare class LibroConfigurationContribution implements ConfigurationContribution {
|
|
3
|
-
registerConfigurations(): import("@difizen/mana-app").ConfigurationNode<boolean>[];
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=libro-configuration-contribution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"libro-configuration-contribution.d.ts","sourceRoot":"","sources":["../../src/configuration/libro-configuration-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAc9D,qBACa,8BAA+B,YAAW,yBAAyB;IAC9E,sBAAsB;CAYvB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ConfigurationNode } from '@difizen/mana-app';
|
|
2
|
-
export declare const HeaderToolbarVisible: ConfigurationNode<boolean>;
|
|
3
|
-
export declare const CellTopToolbarSetting: ConfigurationNode<boolean>;
|
|
4
|
-
export declare const CellSideToolbarVisible: ConfigurationNode<boolean>;
|
|
5
|
-
export declare const AutoInsertWhenNoCell: ConfigurationNode<boolean>;
|
|
6
|
-
export declare const EnterEditModeWhenAddCell: ConfigurationNode<boolean>;
|
|
7
|
-
export declare const CollapserClickActive: ConfigurationNode<boolean>;
|
|
8
|
-
export declare const MultiSelectionWhenShiftClick: ConfigurationNode<boolean>;
|
|
9
|
-
export declare const RightContentFixed: ConfigurationNode<boolean>;
|
|
10
|
-
//# sourceMappingURL=libro-configuration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"libro-configuration.d.ts","sourceRoot":"","sources":["../../src/configuration/libro-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,CAS3D,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,CAAC,OAAO,CAS5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,OAAO,CAS7D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,CAS3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,OAAO,CAS/D,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,CAS3D,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,OAAO,CASnE,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,CAAC,OAAO,CASxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"libro-keybind-registry.d.ts","sourceRoot":"","sources":["../src/libro-keybind-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAW,MAAM,mBAAmB,CAAC;AAGhE,qBACa,oBAAqB,SAAQ,kBAAkB;IACjD,GAAG,CAAC,KAAK,EAAE,aAAa;CAqClC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const ClearOutlined: React.FC;
|
|
3
|
-
export declare const Reload: React.FC;
|
|
4
|
-
export declare const Redo: React.FC;
|
|
5
|
-
export declare const Undo: React.FC;
|
|
6
|
-
export declare const MoveUpOutlined: React.FC;
|
|
7
|
-
export declare const MoveDownOutlined: React.FC;
|
|
8
|
-
export declare const DeleteOutlined: React.FC;
|
|
9
|
-
export declare const MoreOutlined: React.FC;
|
|
10
|
-
export declare const KeybindInstructionsOutlined: React.FC<{
|
|
11
|
-
className: string;
|
|
12
|
-
style: object;
|
|
13
|
-
}>;
|
|
14
|
-
export declare const ContentMore: React.FC;
|
|
15
|
-
export declare const HolderOutlined: React.FC<{
|
|
16
|
-
className: string;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const CheckCircleOutlined: React.FC;
|
|
19
|
-
export declare const PlusOutlined: React.FC<{
|
|
20
|
-
className: string;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const AddCellOutlined: React.FC<{
|
|
23
|
-
className: string;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const ArrowDown: React.FC;
|
|
26
|
-
export declare const ArrowRight: React.FC;
|
|
27
|
-
//# sourceMappingURL=material-from-designer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"material-from-designer.d.ts","sourceRoot":"","sources":["../src/material-from-designer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EA6BjC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EA2B1B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EA2BxB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EA0BxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAiClC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAiCpC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAiClC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAiChC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAgCA,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EA+B/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAgC1D,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAYvC,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAoCxD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAmB3D,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAU7B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAU9B,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ColorRegistry } from '@difizen/mana-app';
|
|
2
|
-
import { ColorContribution } from '@difizen/mana-app';
|
|
3
|
-
export declare class LibroColorRegistry implements ColorContribution {
|
|
4
|
-
registerColors(colors: ColorRegistry): void;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=libro-color-registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"libro-color-registry.d.ts","sourceRoot":"","sources":["../../src/theme/libro-color-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAS,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,qBACa,kBAAmB,YAAW,iBAAiB;IAC1D,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CA4W5C"}
|