flexdesk 0.2.0 → 0.4.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 +26 -0
- package/css/base.css +2243 -872
- package/css/flexdesk.css +1375 -14
- package/css/overrides.css +44 -0
- package/css/tokens.css +45 -0
- package/dist/charts.js +5 -3
- package/dist/charts.js.map +1 -1
- package/dist/{chunk-DVU44T77.js → chunk-ELXVW542.js} +196 -75
- package/dist/chunk-ELXVW542.js.map +7 -0
- package/dist/chunk-LH5TSOZW.js +1237 -0
- package/dist/chunk-LH5TSOZW.js.map +7 -0
- package/dist/{chunk-TLZUUFOE.js → chunk-O5OHMWBB.js} +10 -2
- package/dist/chunk-O5OHMWBB.js.map +7 -0
- package/dist/{chunk-CT4YXXLP.js → chunk-QIU5S2RU.js} +371 -73
- package/dist/chunk-QIU5S2RU.js.map +7 -0
- package/dist/chunk-QNQHQ24V.js +408 -0
- package/dist/chunk-QNQHQ24V.js.map +7 -0
- package/dist/{chunk-DRYCDMEG.js → chunk-XKDTIT4Q.js} +168 -12
- package/dist/chunk-XKDTIT4Q.js.map +7 -0
- package/dist/editor.js +3 -380
- package/dist/editor.js.map +3 -3
- package/dist/flexdesk.css +1375 -14
- package/dist/tiles.js +168 -41
- package/dist/tiles.js.map +2 -2
- package/dist/tokens.css +45 -0
- package/dist/widgets.js +44 -14
- package/dist/widgets.js.map +2 -2
- package/dist/wm.js +3140 -157
- package/dist/wm.js.map +4 -4
- package/package.json +3 -2
- package/src/charts/chart_types.js +167 -0
- package/src/charts/plotly_wrapper.js +178 -10
- package/src/editor/notebook_tab_bar.js +39 -3
- package/src/tiles/tile_base.js +143 -35
- package/src/tiles/tile_grid.js +52 -1
- package/src/tiling/command_palette.js +71 -18
- package/src/tiling/desktops.js +36 -12
- package/src/tiling/keymap.js +24 -4
- package/src/tiling/shell.js +156 -25
- package/src/tiling/tab_strip.js +184 -0
- package/src/tiling/tile_breadcrumb.js +34 -2
- package/src/tiling/tile_renderer.js +1386 -21
- package/src/tiling/tile_tab_menu.js +101 -0
- package/src/tiling/tile_tree.js +115 -11
- package/src/tiling/wm.js +2375 -84
- package/src/tiling/zoom.js +248 -0
- package/src/ui/components/action_dropdown.js +34 -3
- package/src/ui/components/autocomplete_field.js +65 -13
- package/src/ui/components/context_menu.js +79 -8
- package/src/ui/components/data_table.js +508 -84
- package/src/ui/components/managed_window.js +928 -36
- package/src/ui/components/modal.js +214 -8
- package/dist/chunk-CT4YXXLP.js.map +0 -7
- package/dist/chunk-DRYCDMEG.js.map +0 -7
- package/dist/chunk-DVU44T77.js.map +0 -7
- package/dist/chunk-TLZUUFOE.js.map +0 -7
- package/dist/chunk-UCJ2WD4D.js +0 -625
- package/dist/chunk-UCJ2WD4D.js.map +0 -7
package/README.md
CHANGED
|
@@ -104,6 +104,32 @@ const shell = await createShell({
|
|
|
104
104
|
A working version of exactly this — planets and moons, a mock host, no backend —
|
|
105
105
|
lives in `demo/`.
|
|
106
106
|
|
|
107
|
+
### Opt-in shell features
|
|
108
|
+
|
|
109
|
+
Two features change what the user sees, so both are off until you ask:
|
|
110
|
+
|
|
111
|
+
```js
|
|
112
|
+
await createShell({
|
|
113
|
+
// …everything above…
|
|
114
|
+
snapPromotion: true, // drag a floating window onto a tile: it snaps, and docks back in
|
|
115
|
+
promoteInPlace: true, // a window floated out of a tile stays inside that tile's pane
|
|
116
|
+
chrome: {
|
|
117
|
+
topNav: document.getElementById('nav'),
|
|
118
|
+
zoom: document.getElementById('status-bar'), // content zoom, 50–200%
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**`chrome.zoom`** paints a − / track / + / readout control into the element you
|
|
124
|
+
pass, restores the saved zoom through the host's `state` capability, and scales
|
|
125
|
+
the content of tiles and floating windows. It deliberately scales *content only*
|
|
126
|
+
— never the root, a tile's frame or a window's frame — because CSS `zoom`
|
|
127
|
+
establishes a scaled coordinate space and every window drag, resize and snap
|
|
128
|
+
measures in real pixels. `shell.chrome.zoom` exposes `get()` and `set(percent)`
|
|
129
|
+
for a settings pane. An embedder that builds its own `WindowManager` instead of
|
|
130
|
+
calling `createShell` mounts the same control with `mountZoomControl(el, { root,
|
|
131
|
+
host })`.
|
|
132
|
+
|
|
107
133
|
## The host port
|
|
108
134
|
|
|
109
135
|
FlexDesk never touches `pywebview`, `fetch`, `localStorage` or the filesystem. It
|