@difizen/libro-core 0.0.2-alpha.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/LICENSE +21 -0
- package/README.md +3 -0
- package/es/add-cell/index.d.ts +4 -0
- package/es/add-cell/index.d.ts.map +1 -0
- package/es/add-cell/index.js +3 -0
- package/es/add-cell/index.less +38 -0
- package/es/add-cell/libro-add-cell-module.d.ts +3 -0
- package/es/add-cell/libro-add-cell-module.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-module.js +4 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +12 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-slot-contribution.js +53 -0
- package/es/add-cell/libro-add-cell-view.d.ts +21 -0
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-view.js +129 -0
- package/es/cell/index.d.ts +10 -0
- package/es/cell/index.d.ts.map +1 -0
- package/es/cell/index.js +9 -0
- package/es/cell/libro-cell-contribution.d.ts +13 -0
- package/es/cell/libro-cell-contribution.d.ts.map +1 -0
- package/es/cell/libro-cell-contribution.js +41 -0
- package/es/cell/libro-cell-model.d.ts +19 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -0
- package/es/cell/libro-cell-model.js +103 -0
- package/es/cell/libro-cell-module.d.ts +10 -0
- package/es/cell/libro-cell-module.d.ts.map +1 -0
- package/es/cell/libro-cell-module.js +30 -0
- package/es/cell/libro-cell-protocol.d.ts +42 -0
- package/es/cell/libro-cell-protocol.d.ts.map +1 -0
- package/es/cell/libro-cell-protocol.js +11 -0
- package/es/cell/libro-cell-service.d.ts +28 -0
- package/es/cell/libro-cell-service.d.ts.map +1 -0
- package/es/cell/libro-cell-service.js +242 -0
- package/es/cell/libro-cell-view.d.ts +65 -0
- package/es/cell/libro-cell-view.d.ts.map +1 -0
- package/es/cell/libro-cell-view.js +191 -0
- package/es/cell/libro-edit-cell-view.d.ts +32 -0
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -0
- package/es/cell/libro-edit-cell-view.js +72 -0
- package/es/cell/libro-executable-cell-model.d.ts +14 -0
- package/es/cell/libro-executable-cell-model.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-model.js +7 -0
- package/es/cell/libro-executable-cell-view.d.ts +27 -0
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-view.js +66 -0
- package/es/cell/libro-markdown-cell-model.d.ts +9 -0
- package/es/cell/libro-markdown-cell-model.d.ts.map +1 -0
- package/es/cell/libro-markdown-cell-model.js +7 -0
- package/es/collapse-service.d.ts +36 -0
- package/es/collapse-service.d.ts.map +1 -0
- package/es/collapse-service.js +55 -0
- package/es/command/document-commands.d.ts +6 -0
- package/es/command/document-commands.d.ts.map +1 -0
- package/es/command/document-commands.js +13 -0
- package/es/command/index.d.ts +7 -0
- package/es/command/index.d.ts.map +1 -0
- package/es/command/index.js +6 -0
- package/es/command/kernel-command.d.ts +5 -0
- package/es/command/kernel-command.d.ts.map +1 -0
- package/es/command/kernel-command.js +39 -0
- package/es/command/libro-command-contribution.d.ts +14 -0
- package/es/command/libro-command-contribution.d.ts.map +1 -0
- package/es/command/libro-command-contribution.js +1751 -0
- package/es/command/libro-command-register.d.ts +22 -0
- package/es/command/libro-command-register.d.ts.map +1 -0
- package/es/command/libro-command-register.js +105 -0
- package/es/command/module.d.ts +3 -0
- package/es/command/module.d.ts.map +1 -0
- package/es/command/module.js +4 -0
- package/es/command/notebook-commands.d.ts +6 -0
- package/es/command/notebook-commands.d.ts.map +1 -0
- package/es/command/notebook-commands.js +468 -0
- package/es/components/cell-protocol.d.ts +20 -0
- package/es/components/cell-protocol.d.ts.map +1 -0
- package/es/components/cell-protocol.js +4 -0
- package/es/components/dnd-cell-item-render.d.ts +12 -0
- package/es/components/dnd-cell-item-render.d.ts.map +1 -0
- package/es/components/dnd-cell-item-render.js +253 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts +9 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -0
- package/es/components/dnd-component/custom-drag-layer.js +141 -0
- package/es/components/dnd-component/default-dnd-content.d.ts +10 -0
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -0
- package/es/components/dnd-component/default-dnd-content.js +257 -0
- package/es/components/dnd-component/dnd-context.d.ts +3 -0
- package/es/components/dnd-component/dnd-context.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-context.js +20 -0
- package/es/components/dnd-component/dnd-list.d.ts +10 -0
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-list.js +115 -0
- package/es/components/dnd-component/index.d.ts +5 -0
- package/es/components/dnd-component/index.d.ts.map +1 -0
- package/es/components/dnd-component/index.js +4 -0
- package/es/components/index.d.ts +6 -0
- package/es/components/index.d.ts.map +1 -0
- package/es/components/index.js +5 -0
- package/es/components/libro-component.d.ts +5 -0
- package/es/components/libro-component.d.ts.map +1 -0
- package/es/components/libro-component.js +35 -0
- package/es/components/libro-side-toolbar-menu.d.ts +21 -0
- package/es/components/libro-side-toolbar-menu.d.ts.map +1 -0
- package/es/components/libro-side-toolbar-menu.js +58 -0
- package/es/components/libro-view-header.d.ts +3 -0
- package/es/components/libro-view-header.d.ts.map +1 -0
- package/es/components/libro-view-header.js +37 -0
- package/es/configuration/libro-configuration-contribution.d.ts +5 -0
- package/es/configuration/libro-configuration-contribution.d.ts.map +1 -0
- package/es/configuration/libro-configuration-contribution.js +24 -0
- package/es/configuration/libro-configuration.d.ts +10 -0
- package/es/configuration/libro-configuration.d.ts.map +1 -0
- package/es/configuration/libro-configuration.js +81 -0
- package/es/content/index.d.ts +5 -0
- package/es/content/index.d.ts.map +1 -0
- package/es/content/index.js +4 -0
- package/es/content/libro-content-contribution.d.ts +11 -0
- package/es/content/libro-content-contribution.d.ts.map +1 -0
- package/es/content/libro-content-contribution.js +32 -0
- package/es/content/libro-content-module.d.ts +3 -0
- package/es/content/libro-content-module.d.ts.map +1 -0
- package/es/content/libro-content-module.js +5 -0
- package/es/content/libro-content-protocol.d.ts +8 -0
- package/es/content/libro-content-protocol.d.ts.map +1 -0
- package/es/content/libro-content-protocol.js +2 -0
- package/es/content/libro-content-service.d.ts +9 -0
- package/es/content/libro-content-service.d.ts.map +1 -0
- package/es/content/libro-content-service.js +35 -0
- package/es/index.d.ts +20 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +19 -0
- package/es/index.less +682 -0
- package/es/libro-context-key.d.ts +22 -0
- package/es/libro-context-key.d.ts.map +1 -0
- package/es/libro-context-key.js +80 -0
- package/es/libro-keybind-registry.d.ts +5 -0
- package/es/libro-keybind-registry.d.ts.map +1 -0
- package/es/libro-keybind-registry.js +68 -0
- package/es/libro-model.d.ts +129 -0
- package/es/libro-model.d.ts.map +1 -0
- package/es/libro-model.js +803 -0
- package/es/libro-protocol.d.ts +241 -0
- package/es/libro-protocol.d.ts.map +1 -0
- package/es/libro-protocol.js +34 -0
- package/es/libro-service.d.ts +34 -0
- package/es/libro-service.d.ts.map +1 -0
- package/es/libro-service.js +180 -0
- package/es/libro-view-tracker.d.ts +6 -0
- package/es/libro-view-tracker.d.ts.map +1 -0
- package/es/libro-view-tracker.js +13 -0
- package/es/libro-view.d.ts +151 -0
- package/es/libro-view.d.ts.map +1 -0
- package/es/libro-view.js +1963 -0
- package/es/material-from-designer.d.ts +27 -0
- package/es/material-from-designer.d.ts.map +1 -0
- package/es/material-from-designer.js +550 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +55 -0
- package/es/output/index.d.ts +6 -0
- package/es/output/index.d.ts.map +1 -0
- package/es/output/index.js +5 -0
- package/es/output/output-area.d.ts +51 -0
- package/es/output/output-area.d.ts.map +1 -0
- package/es/output/output-area.js +346 -0
- package/es/output/output-contribution.d.ts +11 -0
- package/es/output/output-contribution.d.ts.map +1 -0
- package/es/output/output-contribution.js +31 -0
- package/es/output/output-model.d.ts +27 -0
- package/es/output/output-model.d.ts.map +1 -0
- package/es/output/output-model.js +95 -0
- package/es/output/output-module.d.ts +3 -0
- package/es/output/output-module.d.ts.map +1 -0
- package/es/output/output-module.js +6 -0
- package/es/output/output-protocol.d.ts +130 -0
- package/es/output/output-protocol.d.ts.map +1 -0
- package/es/output/output-protocol.js +18 -0
- package/es/slot/index.d.ts +5 -0
- package/es/slot/index.d.ts.map +1 -0
- package/es/slot/index.js +4 -0
- package/es/slot/libro-slot-manager.d.ts +13 -0
- package/es/slot/libro-slot-manager.d.ts.map +1 -0
- package/es/slot/libro-slot-manager.js +57 -0
- package/es/slot/libro-slot-protocol.d.ts +19 -0
- package/es/slot/libro-slot-protocol.d.ts.map +1 -0
- package/es/slot/libro-slot-protocol.js +5 -0
- package/es/slot/libro-slot-view.d.ts +9 -0
- package/es/slot/libro-slot-view.d.ts.map +1 -0
- package/es/slot/libro-slot-view.js +81 -0
- package/es/slot/module.d.ts +3 -0
- package/es/slot/module.d.ts.map +1 -0
- package/es/slot/module.js +5 -0
- package/es/theme/libro-color-registry.d.ts +6 -0
- package/es/theme/libro-color-registry.d.ts.map +1 -0
- package/es/theme/libro-color-registry.js +494 -0
- package/es/toolbar/change-cell-to-selector.d.ts +5 -0
- package/es/toolbar/change-cell-to-selector.d.ts.map +1 -0
- package/es/toolbar/change-cell-to-selector.js +48 -0
- package/es/toolbar/hide-all-selector.d.ts +5 -0
- package/es/toolbar/hide-all-selector.d.ts.map +1 -0
- package/es/toolbar/hide-all-selector.js +99 -0
- package/es/toolbar/index.d.ts +4 -0
- package/es/toolbar/index.d.ts.map +1 -0
- package/es/toolbar/index.js +3 -0
- package/es/toolbar/index.less +59 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts +4 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar-protocol.js +1 -0
- package/es/toolbar/libro-toolbar.d.ts +8 -0
- package/es/toolbar/libro-toolbar.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar.js +223 -0
- package/es/toolbar/module.d.ts +3 -0
- package/es/toolbar/module.d.ts.map +1 -0
- package/es/toolbar/module.js +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-contribution.js +23 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts +6 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-modal.js +30 -0
- package/es/toolbar/save-icon.d.ts +3 -0
- package/es/toolbar/save-icon.d.ts.map +1 -0
- package/es/toolbar/save-icon.js +54 -0
- package/es/toolbar/shutdown-contribution.d.ts +5 -0
- package/es/toolbar/shutdown-contribution.d.ts.map +1 -0
- package/es/toolbar/shutdown-contribution.js +23 -0
- package/es/toolbar/shutdown-modal.d.ts +6 -0
- package/es/toolbar/shutdown-modal.d.ts.map +1 -0
- package/es/toolbar/shutdown-modal.js +30 -0
- package/es/toolbar/side-toolar-more-select.d.ts +4 -0
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -0
- package/es/toolbar/side-toolar-more-select.js +161 -0
- package/es/typings/index.d.ts +1 -0
- package/package.json +70 -0
- package/src/add-cell/index.less +38 -0
- package/src/add-cell/index.ts +3 -0
- package/src/add-cell/libro-add-cell-module.ts +9 -0
- package/src/add-cell/libro-add-cell-slot-contribution.ts +31 -0
- package/src/add-cell/libro-add-cell-view.tsx +101 -0
- package/src/cell/README.md +14 -0
- package/src/cell/index.ts +9 -0
- package/src/cell/libro-cell-contribution.ts +38 -0
- package/src/cell/libro-cell-model.ts +61 -0
- package/src/cell/libro-cell-module.ts +40 -0
- package/src/cell/libro-cell-protocol.ts +53 -0
- package/src/cell/libro-cell-service.ts +157 -0
- package/src/cell/libro-cell-view.tsx +128 -0
- package/src/cell/libro-edit-cell-view.tsx +60 -0
- package/src/cell/libro-executable-cell-model.ts +32 -0
- package/src/cell/libro-executable-cell-view.ts +74 -0
- package/src/cell/libro-markdown-cell-model.ts +20 -0
- package/src/collapse-service.ts +69 -0
- package/src/command/document-commands.ts +18 -0
- package/src/command/index.ts +6 -0
- package/src/command/kernel-command.ts +41 -0
- package/src/command/libro-command-contribution.ts +1339 -0
- package/src/command/libro-command-register.ts +171 -0
- package/src/command/module.ts +9 -0
- package/src/command/notebook-commands.ts +498 -0
- package/src/components/cell-protocol.ts +22 -0
- package/src/components/dnd-cell-item-render.tsx +308 -0
- package/src/components/dnd-component/custom-drag-layer.tsx +145 -0
- package/src/components/dnd-component/default-dnd-content.tsx +275 -0
- package/src/components/dnd-component/dnd-context.tsx +28 -0
- package/src/components/dnd-component/dnd-list.tsx +116 -0
- package/src/components/dnd-component/index.tsx +4 -0
- package/src/components/index.ts +5 -0
- package/src/components/libro-component.tsx +30 -0
- package/src/components/libro-side-toolbar-menu.tsx +82 -0
- package/src/components/libro-view-header.tsx +33 -0
- package/src/configuration/libro-configuration-contribution.ts +29 -0
- package/src/configuration/libro-configuration.ts +88 -0
- package/src/content/index.ts +4 -0
- package/src/content/libro-content-contribution.ts +17 -0
- package/src/content/libro-content-module.ts +9 -0
- package/src/content/libro-content-protocol.ts +8 -0
- package/src/content/libro-content-service.ts +30 -0
- package/src/index.less +682 -0
- package/src/index.tsx +19 -0
- package/src/libro-context-key.ts +80 -0
- package/src/libro-keybind-registry.ts +43 -0
- package/src/libro-model.ts +614 -0
- package/src/libro-protocol.ts +322 -0
- package/src/libro-service.ts +121 -0
- package/src/libro-view-tracker.ts +9 -0
- package/src/libro-view.tsx +1399 -0
- package/src/material-from-designer.tsx +457 -0
- package/src/module.ts +90 -0
- package/src/output/index.ts +5 -0
- package/src/output/output-area.tsx +255 -0
- package/src/output/output-contribution.ts +18 -0
- package/src/output/output-model.tsx +66 -0
- package/src/output/output-module.ts +10 -0
- package/src/output/output-protocol.ts +164 -0
- package/src/slot/index.ts +4 -0
- package/src/slot/libro-slot-manager.ts +37 -0
- package/src/slot/libro-slot-protocol.ts +28 -0
- package/src/slot/libro-slot-view.tsx +51 -0
- package/src/slot/module.ts +9 -0
- package/src/theme/libro-color-registry.ts +371 -0
- package/src/toolbar/change-cell-to-selector.tsx +58 -0
- package/src/toolbar/hide-all-selector.tsx +126 -0
- package/src/toolbar/index.less +59 -0
- package/src/toolbar/index.ts +3 -0
- package/src/toolbar/libro-toolbar-protocol.ts +4 -0
- package/src/toolbar/libro-toolbar.tsx +192 -0
- package/src/toolbar/module.ts +11 -0
- package/src/toolbar/restart-clear-outputs-contribution.tsx +10 -0
- package/src/toolbar/restart-clear-outputs-modal.tsx +37 -0
- package/src/toolbar/save-icon.tsx +47 -0
- package/src/toolbar/shutdown-contribution.tsx +10 -0
- package/src/toolbar/shutdown-modal.tsx +37 -0
- package/src/toolbar/side-toolar-more-select.tsx +172 -0
- package/src/typings/index.d.ts +1 -0
package/src/index.less
ADDED
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
/* stylelint-disable declaration-property-value-disallowed-list */
|
|
2
|
+
/* stylelint-disable selector-class-pattern */
|
|
3
|
+
// The prefix to use on all css classes from ant.
|
|
4
|
+
@ant-prefix: ant;
|
|
5
|
+
|
|
6
|
+
.libro-view {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
height: 100%;
|
|
11
|
+
background-color: var(--mana-libro-background);
|
|
12
|
+
|
|
13
|
+
h1,
|
|
14
|
+
h2,
|
|
15
|
+
h3,
|
|
16
|
+
h4,
|
|
17
|
+
h5,
|
|
18
|
+
h6 {
|
|
19
|
+
color: unset;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:focus {
|
|
23
|
+
border: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:focus-visible {
|
|
27
|
+
outline: unset;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.libro-view-content {
|
|
32
|
+
display: flex;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
padding: 0 60px 8px 0;
|
|
36
|
+
overflow-y: auto;
|
|
37
|
+
|
|
38
|
+
.libro-dnd-list-container {
|
|
39
|
+
height: 100%;
|
|
40
|
+
padding-top: 12px;
|
|
41
|
+
// overflow-y: auto;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.libro-view-top {
|
|
46
|
+
z-index: 1000;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 44px;
|
|
51
|
+
// background-color: var(--mana-color-bg-elevated);
|
|
52
|
+
border-bottom: 1px solid var(--mana-libro-toptoolbar-border-color);
|
|
53
|
+
|
|
54
|
+
.libro-header-left {
|
|
55
|
+
width: 265px;
|
|
56
|
+
|
|
57
|
+
.mana-toolbar {
|
|
58
|
+
justify-content: left;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.libro-header-center {
|
|
63
|
+
flex: 1;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
|
|
66
|
+
.mana-toolbar {
|
|
67
|
+
justify-content: center;
|
|
68
|
+
|
|
69
|
+
.mana-toolbar-item {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
padding: 0 8px;
|
|
74
|
+
color: var(--mana-libro-toptoolbar-icon-color);
|
|
75
|
+
|
|
76
|
+
g {
|
|
77
|
+
fill: var(--mana-libro-toptoolbar-icon-color) !important;
|
|
78
|
+
}
|
|
79
|
+
.@{ant-prefix}-select-selection-item {
|
|
80
|
+
color: var(--mana-libro-toptoolbar-text-color);
|
|
81
|
+
opacity: 0.65;
|
|
82
|
+
}
|
|
83
|
+
.@{ant-prefix}-select-arrow {
|
|
84
|
+
color: var(--mana-libro-dropdown-icon-color);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.mana-toolbar-item-disabled {
|
|
89
|
+
opacity: unset;
|
|
90
|
+
color: var(--mana-libro-toptoolbar-disabled-icon-color);
|
|
91
|
+
|
|
92
|
+
g {
|
|
93
|
+
fill: var(--mana-libro-toptoolbar-disabled-icon-color) !important;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.mana-toolbar-item:hover {
|
|
98
|
+
background-color: var(--mana-list-hoverBackground);
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.libro-header-right {
|
|
105
|
+
color: unset;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.libro-keybind-instructions-icon {
|
|
109
|
+
g {
|
|
110
|
+
fill: var(--mana-libro-toptoolbar-icon-color) !important;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.mana-toolbar-item > span {
|
|
115
|
+
font-size: 18px;
|
|
116
|
+
vertical-align: middle;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.libro-loading {
|
|
121
|
+
position: absolute;
|
|
122
|
+
top: 300px;
|
|
123
|
+
left: 50%;
|
|
124
|
+
z-index: 1000;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.libro-dnd-cell-container {
|
|
128
|
+
position: relative;
|
|
129
|
+
padding: 8px 16px 8px 0;
|
|
130
|
+
|
|
131
|
+
&:focus-visible {
|
|
132
|
+
outline: unset;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.libro-handle-style {
|
|
136
|
+
position: absolute;
|
|
137
|
+
top: 14px;
|
|
138
|
+
left: 38px;
|
|
139
|
+
display: none;
|
|
140
|
+
cursor: move;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:hover .libro-handle-style {
|
|
144
|
+
display: block;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.selected {
|
|
148
|
+
background-color: #f1faff;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.hidden {
|
|
152
|
+
padding: 6px 16px 6px 0;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.libro-dnd-cell-content {
|
|
157
|
+
&:hover {
|
|
158
|
+
.libro-cell-input-collapser,
|
|
159
|
+
.libro-cell-output-collapser,
|
|
160
|
+
.libro-cell-collapser {
|
|
161
|
+
background: var(--mana-libro-link-color);
|
|
162
|
+
opacity: 0.4;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.error {
|
|
166
|
+
.libro-cell-input-collapser,
|
|
167
|
+
.libro-cell-output-collapser,
|
|
168
|
+
.libro-cell-collapser {
|
|
169
|
+
background: var(--mana-libro-error-color);
|
|
170
|
+
opacity: 0.4;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.libro-cell-collapsed-expander {
|
|
177
|
+
margin-top: 5px;
|
|
178
|
+
padding-left: 72px;
|
|
179
|
+
|
|
180
|
+
.libro-cell-expand-button {
|
|
181
|
+
padding: 0 12px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.libro-dnd-cell {
|
|
186
|
+
position: relative;
|
|
187
|
+
margin-left: 72px;
|
|
188
|
+
padding: 0;
|
|
189
|
+
border: 1px solid var(--mana-libro-cell-border-color);
|
|
190
|
+
border-radius: 4px;
|
|
191
|
+
transition: border-color 0.2s ease 0s;
|
|
192
|
+
|
|
193
|
+
:focus-visible {
|
|
194
|
+
outline: unset;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.active.command-mode {
|
|
198
|
+
border: 1px solid var(--mana-libro-cell-active-border-color);
|
|
199
|
+
box-shadow: unset;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.active.command-mode.error,
|
|
203
|
+
&.error {
|
|
204
|
+
border: 1px solid var(--mana-libro-error-color) !important;
|
|
205
|
+
box-shadow: unset;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&.active.edit-mode.error {
|
|
209
|
+
border: 1px solid var(--mana-libro-error-color) !important;
|
|
210
|
+
box-shadow: rgba(237, 19, 69, 25%) 0 0 0 2px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&.hidden {
|
|
214
|
+
border: unset;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&.active {
|
|
218
|
+
border: 1px solid var(--mana-libro-cell-active-border-color);
|
|
219
|
+
box-shadow: var(--mana-libro-cell-active-border-shadow-color) 0 0 0 2px;
|
|
220
|
+
|
|
221
|
+
.libro-cell-input-collapser,
|
|
222
|
+
.libro-cell-output-collapser,
|
|
223
|
+
.libro-cell-collapser {
|
|
224
|
+
background: var(--mana-libro-link-color);
|
|
225
|
+
opacity: 1;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&.error {
|
|
229
|
+
.libro-cell-input-collapser,
|
|
230
|
+
.libro-cell-output-collapser,
|
|
231
|
+
.libro-cell-collapser {
|
|
232
|
+
background: var(--mana-libro-error-color);
|
|
233
|
+
opacity: 1;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.libro-dnd-cell-preview {
|
|
240
|
+
position: absolute;
|
|
241
|
+
top: 0;
|
|
242
|
+
right: 0;
|
|
243
|
+
bottom: 0;
|
|
244
|
+
left: 0;
|
|
245
|
+
height: 40px;
|
|
246
|
+
border-radius: 6px;
|
|
247
|
+
pointer-events: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.libro-dnd-multiple-selection-preview {
|
|
251
|
+
position: relative;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.libro-dnd-active-selection {
|
|
255
|
+
position: absolute;
|
|
256
|
+
z-index: 1000;
|
|
257
|
+
width: 700px;
|
|
258
|
+
height: 40px;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
background-color: var(--mana-color-bg-container);
|
|
261
|
+
border: 1px solid var(--mana-color-border);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.libro-dnd-cascading-multiple-selection {
|
|
265
|
+
position: absolute;
|
|
266
|
+
top: -10px;
|
|
267
|
+
left: -10px;
|
|
268
|
+
z-index: 100;
|
|
269
|
+
width: 700px;
|
|
270
|
+
height: 40px;
|
|
271
|
+
background-color: var(--mana-color-bg-container);
|
|
272
|
+
border: 1px solid var(--mana-color-border);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.libro-cell-container {
|
|
276
|
+
position: relative;
|
|
277
|
+
background-color: var(--mana-color-bg-container);
|
|
278
|
+
border-radius: 4px;
|
|
279
|
+
|
|
280
|
+
&:focus-visible {
|
|
281
|
+
outline: unset;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
&.hidden {
|
|
285
|
+
padding: 12px;
|
|
286
|
+
color: rgb(151, 151, 151);
|
|
287
|
+
font-weight: 500;
|
|
288
|
+
font-size: 13px;
|
|
289
|
+
font-family: Inter, sans-serif;
|
|
290
|
+
text-align: center;
|
|
291
|
+
border: 1px solid var(--mana-color-border);
|
|
292
|
+
|
|
293
|
+
a {
|
|
294
|
+
color: rgb(20, 104, 188);
|
|
295
|
+
text-decoration: none;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.ͼ1 .cm-completionIcon {
|
|
300
|
+
width: 2.2em;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.ͼ1.cm-focused {
|
|
304
|
+
border-top-left-radius: 4px;
|
|
305
|
+
border-top-right-radius: 4px;
|
|
306
|
+
outline: unset;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.cm-scroller {
|
|
310
|
+
border-top-left-radius: 4px;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.libro-cell-hidden {
|
|
315
|
+
width: 984px;
|
|
316
|
+
height: 24px;
|
|
317
|
+
border-radius: 4px;
|
|
318
|
+
|
|
319
|
+
svg {
|
|
320
|
+
position: absolute;
|
|
321
|
+
left: 4px;
|
|
322
|
+
color: #8c8c8c;
|
|
323
|
+
|
|
324
|
+
&:hover {
|
|
325
|
+
color: var(--mana-libro-link-color);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.libro-cell-input-collapser,
|
|
331
|
+
.libro-cell-output-collapser,
|
|
332
|
+
.libro-cell-collapser {
|
|
333
|
+
position: absolute;
|
|
334
|
+
left: -60px;
|
|
335
|
+
width: 8px;
|
|
336
|
+
height: 100%;
|
|
337
|
+
background-color: transparent;
|
|
338
|
+
border-radius: 1px 4px 4px 1px;
|
|
339
|
+
transform: scaleX(-1);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.libro-cell-input-collapser {
|
|
343
|
+
height: calc(100% - 5px);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.libro-cell-output-collapser {
|
|
347
|
+
top: 3px;
|
|
348
|
+
height: calc(100% - 3px);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.libro-input-hidden {
|
|
352
|
+
width: 100%;
|
|
353
|
+
height: 40px;
|
|
354
|
+
background-color: var(--mana-libro-input-background);
|
|
355
|
+
border-top-left-radius: 4px;
|
|
356
|
+
border-top-right-radius: 4px;
|
|
357
|
+
|
|
358
|
+
svg {
|
|
359
|
+
position: absolute;
|
|
360
|
+
top: 8px;
|
|
361
|
+
left: 24px;
|
|
362
|
+
color: #8c8c8c;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.libro-cell-output-hidden {
|
|
367
|
+
width: 100%;
|
|
368
|
+
height: 41px;
|
|
369
|
+
border-bottom-right-radius: 4px;
|
|
370
|
+
border-bottom-left-radius: 4px;
|
|
371
|
+
|
|
372
|
+
svg {
|
|
373
|
+
position: absolute;
|
|
374
|
+
top: 10px;
|
|
375
|
+
left: 24px;
|
|
376
|
+
color: #8c8c8c;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.libro-cell-top-toolbar {
|
|
381
|
+
position: absolute;
|
|
382
|
+
top: -6px;
|
|
383
|
+
left: 0;
|
|
384
|
+
background: var(--mana-color-bg-elevated);
|
|
385
|
+
transform: translateY(-100%);
|
|
386
|
+
|
|
387
|
+
.mana-toolbar {
|
|
388
|
+
flex-direction: row;
|
|
389
|
+
justify-content: left;
|
|
390
|
+
border-radius: 4px;
|
|
391
|
+
box-shadow:
|
|
392
|
+
rgba(0, 0, 0, 40%) 0 0 1px,
|
|
393
|
+
rgba(46, 47, 56, 5%) 0 4px 16px;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.libro-cell-right-toolbar {
|
|
398
|
+
position: absolute;
|
|
399
|
+
top: 0;
|
|
400
|
+
right: -44px;
|
|
401
|
+
z-index: 100;
|
|
402
|
+
background-color: var(--mana-libro-output-background);
|
|
403
|
+
border: 1px solid var(--mana-libro-sidetoolbar-border-color);
|
|
404
|
+
border-radius: 4px;
|
|
405
|
+
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 2%);
|
|
406
|
+
|
|
407
|
+
.mana-toolbar {
|
|
408
|
+
flex-direction: column;
|
|
409
|
+
padding: 0;
|
|
410
|
+
padding-top: 2px !important;
|
|
411
|
+
|
|
412
|
+
.mana-toolbar-item {
|
|
413
|
+
display: flex;
|
|
414
|
+
align-items: center;
|
|
415
|
+
justify-content: center;
|
|
416
|
+
width: 32px;
|
|
417
|
+
height: 28px;
|
|
418
|
+
margin: 0;
|
|
419
|
+
padding: 2px 0;
|
|
420
|
+
text-align: center;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.mana-toolbar-item:hover {
|
|
424
|
+
background-color: var(--mana-list-hoverBackground);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.rc-tooltip-content {
|
|
428
|
+
z-index: 1000;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.mana-toolbar-inline-divider {
|
|
432
|
+
width: unset;
|
|
433
|
+
height: 1px;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
svg {
|
|
438
|
+
color: var(--mana-libro-sidetoolbar-icon-color);
|
|
439
|
+
|
|
440
|
+
g {
|
|
441
|
+
fill: var(--mana-libro-sidetoolbar-icon-color);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.libro-execute-tooltip-area {
|
|
447
|
+
position: absolute;
|
|
448
|
+
top: 4px;
|
|
449
|
+
z-index: 90;
|
|
450
|
+
min-width: 42px;
|
|
451
|
+
white-space: pre-wrap;
|
|
452
|
+
text-align: center;
|
|
453
|
+
transform: translateX(-100%);
|
|
454
|
+
|
|
455
|
+
.libro-execute-state-tip {
|
|
456
|
+
padding-right: 8px;
|
|
457
|
+
color: var(--mana-libro-execution-count-color);
|
|
458
|
+
font-size: 11px;
|
|
459
|
+
vertical-align: top;
|
|
460
|
+
user-select: none;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.libro-execute-button {
|
|
464
|
+
left: 50%;
|
|
465
|
+
transform: translateX(-50%) scale(0.75);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.libro-markdown-collapser {
|
|
470
|
+
position: absolute;
|
|
471
|
+
top: 4px;
|
|
472
|
+
left: -24px;
|
|
473
|
+
z-index: 90;
|
|
474
|
+
min-width: 24px;
|
|
475
|
+
white-space: pre-wrap;
|
|
476
|
+
text-align: center;
|
|
477
|
+
cursor: pointer;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.libro-icon-collapse[fill] {
|
|
481
|
+
color: rgba(56, 50, 50, 45%);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.libro-drag-area {
|
|
485
|
+
position: absolute;
|
|
486
|
+
left: 20px;
|
|
487
|
+
width: 52px;
|
|
488
|
+
height: 100%;
|
|
489
|
+
cursor: move;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.libro-drag-hoverline {
|
|
493
|
+
position: absolute;
|
|
494
|
+
top: -2px;
|
|
495
|
+
left: 56px;
|
|
496
|
+
z-index: 100;
|
|
497
|
+
width: calc(100% - 70px);
|
|
498
|
+
border-radius: 2px;
|
|
499
|
+
height: 4px;
|
|
500
|
+
background-color: var(--mana-libro-drag-hover-line-color);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.libro-view-content-left {
|
|
504
|
+
position: relative;
|
|
505
|
+
width: calc(100% - 40px);
|
|
506
|
+
height: 100%;
|
|
507
|
+
|
|
508
|
+
// &.libro-view-content-has-right {
|
|
509
|
+
// padding-right: 180px;
|
|
510
|
+
// }
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.libro-cell-output-container {
|
|
514
|
+
position: relative;
|
|
515
|
+
background-color: var(--mana-libro-output-background);
|
|
516
|
+
border-top: 1px solid var(--mana-libro-code-border-color);
|
|
517
|
+
border-bottom-right-radius: 4px;
|
|
518
|
+
border-bottom-left-radius: 4px;
|
|
519
|
+
|
|
520
|
+
&.scrolled {
|
|
521
|
+
max-height: 24em;
|
|
522
|
+
overflow-y: auto;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
&.hidden {
|
|
526
|
+
padding: 12px;
|
|
527
|
+
color: var(--mana-text-tertiary);
|
|
528
|
+
font-weight: 500;
|
|
529
|
+
font-size: 13px;
|
|
530
|
+
font-family: Inter, sans-serif;
|
|
531
|
+
text-align: center;
|
|
532
|
+
|
|
533
|
+
a {
|
|
534
|
+
color: rgb(20, 104, 188);
|
|
535
|
+
text-decoration: none;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.libro-view-add-cell-toolbar {
|
|
541
|
+
position: relative;
|
|
542
|
+
width: 100%;
|
|
543
|
+
height: 49px;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.libro-view-content-right {
|
|
547
|
+
flex: 1;
|
|
548
|
+
margin-left: 40px;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.libro-totop-button {
|
|
552
|
+
position: fixed;
|
|
553
|
+
right: 32px;
|
|
554
|
+
bottom: 48px;
|
|
555
|
+
width: 44px;
|
|
556
|
+
height: 44px;
|
|
557
|
+
|
|
558
|
+
button {
|
|
559
|
+
width: 44px;
|
|
560
|
+
height: 44px;
|
|
561
|
+
background-color: var(--mana-color-bg-container);
|
|
562
|
+
box-shadow:
|
|
563
|
+
0 3px 6px -4px rgba(0, 10, 26, 12%),
|
|
564
|
+
0 6px 16px 0 rgba(0, 10, 26, 8%),
|
|
565
|
+
0 9px 28px 8px rgba(0, 10, 26, 5%);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
svg {
|
|
569
|
+
color: rgba(105, 130, 169, 100%);
|
|
570
|
+
font-size: 22px;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.libro-side-toolbar-menu {
|
|
575
|
+
.mana-menu-item-active > .mana-menu-item-button,
|
|
576
|
+
.mana-menu-item:hover > .mana-menu-item-button {
|
|
577
|
+
background: var(--mana-libro-menu-hover-color);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.mana-menu-item-divider {
|
|
581
|
+
margin: unset;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.mana-menu-item-button {
|
|
585
|
+
height: 32px;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.libro-popover-side-toolbar-menu {
|
|
590
|
+
.@{ant-prefix}-popover-arrow {
|
|
591
|
+
display: none;
|
|
592
|
+
}
|
|
593
|
+
.@{ant-prefix}-popover-inner {
|
|
594
|
+
position: absolute;
|
|
595
|
+
top: -2px;
|
|
596
|
+
right: -4px;
|
|
597
|
+
width: 100%;
|
|
598
|
+
height: 100%;
|
|
599
|
+
border-radius: 4px;
|
|
600
|
+
background-color: var(--mana-libro-popover-background-color);
|
|
601
|
+
padding: 0;
|
|
602
|
+
box-shadow:
|
|
603
|
+
0 3px 6px -4px rgba(0, 0, 0, 12%),
|
|
604
|
+
0 6px 16px 0 rgba(0, 0, 0, 8%),
|
|
605
|
+
0 9px 28px 8px rgba(0, 0, 0, 5%);
|
|
606
|
+
|
|
607
|
+
.mana-menu-item-text {
|
|
608
|
+
position: relative;
|
|
609
|
+
width: 100%;
|
|
610
|
+
padding-right: unset;
|
|
611
|
+
}
|
|
612
|
+
.@{ant-prefix}-popover-inner-content {
|
|
613
|
+
padding: 4px 0;
|
|
614
|
+
width: unset !important;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.libro-side-toolbar-run-select-menu {
|
|
620
|
+
.@{ant-prefix}-popover-content {
|
|
621
|
+
width: 262px;
|
|
622
|
+
height: 105px;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.libro-side-toolbar-more-select-menu {
|
|
627
|
+
.@{ant-prefix}-popover-content {
|
|
628
|
+
width: 168px;
|
|
629
|
+
height: 169px;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.libro-menu-item-label {
|
|
634
|
+
color: var(--mana-libro-toolbar-menu-label-color);
|
|
635
|
+
font-weight: 400;
|
|
636
|
+
font-size: 14px;
|
|
637
|
+
font-family: PingFangSC;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.libro-menu-item-keybind {
|
|
641
|
+
position: absolute;
|
|
642
|
+
right: 0;
|
|
643
|
+
bottom: 1px;
|
|
644
|
+
color: var(--mana-libro-toolbar-menu-keybind-color);
|
|
645
|
+
font-weight: 400;
|
|
646
|
+
font-size: 12px;
|
|
647
|
+
font-family: PingFangSC;
|
|
648
|
+
line-height: 18px;
|
|
649
|
+
text-align: right;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.libro-output-area {
|
|
653
|
+
margin-top: 18px;
|
|
654
|
+
overflow: hidden;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.libro-tooltip {
|
|
658
|
+
text-align: center;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.libro-side-tooltip {
|
|
662
|
+
text-align: start;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.libro-tooltip-text {
|
|
666
|
+
display: block;
|
|
667
|
+
color: #fff;
|
|
668
|
+
font-weight: 400;
|
|
669
|
+
font-size: 14px;
|
|
670
|
+
font-family: PingFangSC;
|
|
671
|
+
line-height: 22px;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.libro-tooltip-keybind {
|
|
675
|
+
display: block;
|
|
676
|
+
color: #fff;
|
|
677
|
+
font-weight: 400;
|
|
678
|
+
font-size: 12px;
|
|
679
|
+
font-family: PingFangSC;
|
|
680
|
+
line-height: 16px;
|
|
681
|
+
opacity: 0.65;
|
|
682
|
+
}
|
package/src/index.tsx
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './libro-view.js';
|
|
2
|
+
export * from './module.js';
|
|
3
|
+
export * from './libro-protocol.js';
|
|
4
|
+
export * from './libro-service.js';
|
|
5
|
+
export * from './libro-model.js';
|
|
6
|
+
export * from './cell/index.js';
|
|
7
|
+
export * from './components/index.js';
|
|
8
|
+
export * from './configuration/libro-configuration.js';
|
|
9
|
+
export * from './toolbar/index.js';
|
|
10
|
+
export * from './output/index.js';
|
|
11
|
+
export * from './slot/index.js';
|
|
12
|
+
export * from './command/index.js';
|
|
13
|
+
export * from './libro-context-key.js';
|
|
14
|
+
export * from './libro-keybind-registry.js';
|
|
15
|
+
export * from './add-cell/index.js';
|
|
16
|
+
export * from './material-from-designer.js';
|
|
17
|
+
export * from './libro-view-tracker.js';
|
|
18
|
+
export * from './content/index.js';
|
|
19
|
+
export * from './collapse-service.js';
|