@zikojs/notebook 0.12.0 → 0.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zikojs/notebook",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "A lightweight, extensible JavaScript notebook component with Markdown, executable cells, persistent state, and pluggable runtimes.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -27,6 +27,9 @@
27
27
  },
28
28
  "./style": {
29
29
  "import": "./src/index.css"
30
+ },
31
+ "./style.css": {
32
+ "import": "./src/index.css"
30
33
  }
31
34
  },
32
35
  "files": [
@@ -1,5 +1,5 @@
1
1
  import { transformImportsAndScope } from "./transform.js";
2
- import { Console as _Console } from '@zikojs/console'
2
+ import { Console as _Console } from '@zikojs/console/no-css'
3
3
  import { tags } from 'ziko/dom'
4
4
  const { div } = tags
5
5
 
@@ -6,7 +6,7 @@
6
6
  padding: 10px 16px;
7
7
  display: flex;
8
8
  align-items: center;
9
- justify-content: space-between;
9
+ justify-content: center;
10
10
  gap: 12px;
11
11
  flex-wrap: wrap;
12
12
  position: sticky;
package/src/index.css CHANGED
@@ -1,3 +1,4 @@
1
+ @import '@zikojs/console/style';
1
2
  @import url('./components/index.css');
2
3
 
3
4
  .ziko-notebook {
@@ -108,10 +109,14 @@
108
109
  .ziko-notebook .cell-controls {
109
110
  display: flex;
110
111
  align-items: center;
112
+ justify-content: flex-end;
113
+ grid-column: 1 / -1;
111
114
  gap: 4px;
112
115
  flex-shrink: 0;
113
116
  flex-wrap: wrap;
114
- max-width: 60px;
117
+ /* border-bottom: 1px solid #f1f5f9; */
118
+ padding-bottom: 6px;
119
+ margin-bottom: 2px;
115
120
  }
116
121
 
117
122
  .ziko-notebook .cm-line{
@@ -149,15 +154,6 @@
149
154
  grid-template-rows: auto auto;
150
155
  }
151
156
 
152
- .ziko-notebook .cell-controls {
153
- grid-column: 1 / -1;
154
- justify-content: flex-end;
155
- border-bottom: 1px solid #f1f5f9;
156
- padding-bottom: 6px;
157
- margin-bottom: 2px;
158
- max-width: 100%;
159
- }
160
-
161
157
  .ziko-notebook .cell-output-grid {
162
158
  grid-template-columns: 42px 1fr;
163
159
  }
File without changes