@stlite/desktop 0.92.0 → 0.93.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/CHANGELOG.md +12 -0
- package/README.md +27 -0
- package/bin/dump_artifacts.js +3 -3
- package/build/assets/{ErrorOutline.esm-Cq78Z69r-C4NqF_Dy.js → ErrorOutline.esm-7dB9RqDz-BlHant9M.js} +1 -1
- package/build/assets/{FileDownload.esm-CK4kq1fm-rUa3b6xk.js → FileDownload.esm-GWMXlTU--nCHLLVVG.js} +1 -1
- package/build/assets/{FileHelper-SZ_yiD2z-B6mYMaXP.js → FileHelper-Cma-1EXD-BHg6ViEo.js} +1 -1
- package/build/assets/{FormClearHelper-FCPJEFCb-8WTdS9Fc.js → FormClearHelper-7XVCWEDh-CHeSF048.js} +1 -1
- package/build/assets/{Hooks-BLb3umpI-2VYJiKlE.js → Hooks-BLb3umpI-DELjvxVH.js} +1 -1
- package/build/assets/{InputInstructions-C9-W08mI-ZHhoQkfd.js → InputInstructions-BVDJIGMt-C7cosSXk.js} +1 -1
- package/build/assets/{Particles-BOhWNEfk-Dwf6AovX.js → Particles-g7RgLbWv-DjAdgaht.js} +1 -1
- package/build/assets/{ProgressBar-BiR12xMF-C3tqN3I7.js → ProgressBar-Di9e5f4y-D4tmR6iS.js} +1 -1
- package/build/assets/{Toolbar-DmNTasId-CQXwCpBc.js → Toolbar-BPTl0_g8-DgJSJ3GD.js} +1 -1
- package/build/assets/{base-input-CrN3cmkk-CZot_VyG.js → base-input-ChvJQUff-BpwD4YlX.js} +1 -1
- package/build/assets/{checkbox-gyt_OEZr-DUZ4Njwr.js → checkbox-4WgCYqx1-Bgkcmn0F.js} +1 -1
- package/build/assets/{createSuper-XjH7KYVR-huv_3l0M.js → createSuper-dKmkwP0m-DxhpQ4SI.js} +1 -1
- package/build/assets/{data-grid-overlay-editor-DCBtdsKu-B2V4v_R4.js → data-grid-overlay-editor-IoEmbFO9-CBCubcQ1.js} +1 -1
- package/build/assets/{downloader-DcCTL3Wz-DFslBafZ.js → downloader-DcCTL3Wz-3ZFKL_NQ.js} +1 -1
- package/build/assets/{es6--XPcqeHG-DCoiAwz4.js → es6--XPcqeHG-r3GRWny2.js} +2 -2
- package/build/assets/{iframeResizer.contentWindow-DCqlq0RN-CJu19_xt.js → iframeResizer.contentWindow-fVUnxJjZ-DtdoD2Oh.js} +1 -1
- package/build/assets/{index-CNntS3OC-D1QLB5uC.js → index-8B5BiglZ-DvZZ_HIe.js} +5 -5
- package/build/assets/{index-tZy2wPj--B6SS_c-g.js → index-AJUjtcR2-Db1saaJD.js} +1 -1
- package/build/assets/{index-BMMzkW3e-BZqEtXz_.js → index-BLhXykcy-2Rx1rqrE.js} +1 -1
- package/build/assets/{index-Dvp-SyXX-qvRtm5BZ.js → index-BMwC0KGj-BtsmDkp_.js} +1 -1
- package/build/assets/{index-B8kWnRO8-DdaQzYiC.js → index-BkFrTmMq-A28f28cz.js} +1 -1
- package/build/assets/{index-CZIwCRD7-DBIOlrRp.js → index-Bm-Z6YEI-DCou195f.js} +1 -1
- package/build/assets/{index-B8qxfFCx-B29C_PY3.js → index-BqZLpS9v-B3Caq8Gw.js} +1 -1
- package/build/assets/{index-BitC4Xgz-B1kdgnmM.js → index-BqjVvYwm-D3YtGOj9.js} +1 -1
- package/build/assets/{index-BZG3RZnU-DmEQbf_P.js → index-BsXatFUH-Dt_dN6HK.js} +1 -1
- package/build/assets/{index-Q6g9NCof-Cpxw6WZY.js → index-C-iz7Ope-j2Jou3c7.js} +1 -1
- package/build/assets/{index-jhfsAAJw-CHbJB1wk.js → index-C4pwXyLd-CSMg93MD.js} +1 -1
- package/build/assets/{index-BHzjdNgW-BhgR3SHQ.js → index-CECyqIrl-D2yv4RoH.js} +1 -1
- package/build/assets/{index-Bs9zibyE.js → index-CI5Lukhr.js} +4 -4
- package/build/assets/{index-CbyG2v0j-Bk1EJlZY.js → index-CQIHksOR-Bnp4a981.js} +1 -1
- package/build/assets/{index-ChdNP8aj-ecf7J23U.js → index-C_KUQlWP-B51Pxs_l.js} +1 -1
- package/build/assets/{index-WybFjBpB-BX8U2u7x.js → index-CceKGChf-GDzkl9eM.js} +1 -1
- package/build/assets/{index-DedW9Ks6-M0WgASrb.js → index-CdsL7CI5-DlOa3Fof.js} +1 -1
- package/build/assets/{index-C9u8J5la-oadhV8vp.js → index-CmMya3Pz-CihX18ph.js} +1 -1
- package/build/assets/{index-IdwmhHqO-gZocvOjV.js → index-CuLrbTLp-C50eNwoW.js} +1 -1
- package/build/assets/{index-BDBGy17s-C8ZIrWop.js → index-Cw0ECNa7-BB6dE3b3.js} +1 -1
- package/build/assets/{index-Dj2NFIKD-B_r24aHL.js → index-DD51aFbc-gN5mz9FN.js} +1 -1
- package/build/assets/{index-CrabjEa7-DFujXtro.js → index-DEu3PxaD-CXRBV7Mf.js} +1 -1
- package/build/assets/{index-CGDCEBHp-ighEw3vp.js → index-DOE9zKwT-5mur2MVZ.js} +1 -1
- package/build/assets/{index-Dx_Ep62U-DaqDcI-n.js → index-DQpSdbfe-5SdJiHTD.js} +1 -1
- package/build/assets/{index-Dk05MMVQ-ZROGl5dG.js → index-DTykN4zG-Bxhd8idt.js} +1 -1
- package/build/assets/{index-D6yR1pA8-C0-kJ6Bz.js → index-DV29szBC-B2CEbIRH.js} +1 -1
- package/build/assets/{index-DE-Rg3QE-eG0zJJn8.js → index-DfRa51wX-Mc7dF5x1.js} +1 -1
- package/build/assets/{index-wXdUq_7J--4XuNFfI.js → index-DgYLMrUQ-tRG-LD_v.js} +1 -1
- package/build/assets/{index-B4dU8RRL-QuTU7dp3.js → index-Di5puO_--CqiV0ywo.js} +1 -1
- package/build/assets/{index-ClhODq1M-DUfGDbEi.js → index-Dj7MXPcv-nT5EfVwd.js} +1 -1
- package/build/assets/{index-86FKY3SR-GAsovcTH.js → index-DlV4h_p4-DqwBbw5_.js} +1 -1
- package/build/assets/{index-DmuMAiWB-BGkOpKfb.js → index-DnGo_A7H-BE-NsOfW.js} +1 -1
- package/build/assets/{index-CJcifvpp-CqixlSHI.js → index-HR_X9srR-BAYtFzZt.js} +1 -1
- package/build/assets/{index-C5hOYK-b-CDfEUvDR.js → index-TBJNdPHu-DT-qyCZS.js} +1 -1
- package/build/assets/{index-B1GzS8wP-BVHWU3EN.js → index-ZYgJQ_x8-1_8zzrU9.js} +1 -1
- package/build/assets/{index-BwEfMSwG-CvQYoItt.js → index-hTcF3gtQ-DxQnuRL_.js} +1 -1
- package/build/assets/{index-DtqQ0QT_-CymByJbd.js → index-vcKHNpuC-BSd57fPp.js} +1 -1
- package/build/assets/{inherits-CHhCwN_k-BN2PGj6j.js → inherits-Pmi26wgm-BX3RGE7G.js} +1 -1
- package/build/assets/{input-DjbrZONF-D-7fuXI2.js → input-BXGQ9mRm-CIPmPBGI.js} +1 -1
- package/build/assets/{memory-B3L1Fctl-DdOaGvHF.js → memory-B3L1Fctl-CHwR207P.js} +1 -1
- package/build/assets/{number-overlay-editor-jbR6fFWZ-C4ZPxc4R.js → number-overlay-editor-C_tZpFZY-CxWzCIFN.js} +1 -1
- package/build/assets/{sandbox-ChAzL-i--D-scXFSF.js → sandbox-ChAzL-i--wpcA3s4s.js} +1 -1
- package/build/assets/{slicedToArray-Bh3FRcm_-BQG060Uv.js → slicedToArray-BwzokRlj-E5mBrutT.js} +1 -1
- package/build/assets/{timepicker-Zb-gfcls-BvLvhDNx.js → timepicker-Buj3NwSV-DhVe9hFS.js} +1 -1
- package/build/assets/{uniqueId-zIZf20F6-D11mfTaK.js → uniqueId-Ct03yls4--ZtLtucJ.js} +1 -1
- package/build/assets/{useBasicWidgetState-BrKZEJpK-CxwkzeKG.js → useBasicWidgetState-KOlq_goV-CB6E7iWN.js} +1 -1
- package/build/assets/{useTextInputAutoExpand-NGyMMcIL-u7iGmO95.js → useTextInputAutoExpand-DWOWjQ4t-BoiRRHH6.js} +1 -1
- package/build/assets/{useUpdateUiValue-BHPP0ppl-jFtPQcBG.js → useUpdateUiValue-DoEkLcX2--ATHLwKP.js} +1 -1
- package/build/assets/{withFullScreenWrapper-66pmUMIV-CT4beZ0m.js → withFullScreenWrapper-B2V0S41O-DCzGUvSO.js} +1 -1
- package/build/electron/main.js +2 -2
- package/build/index.html +1 -1
- package/package.json +4 -4
- package/wheels/streamlit-1.50.0-cp313-none-any.whl +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @stlite/desktop
|
|
2
2
|
|
|
3
|
+
## 0.93.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1839](https://github.com/whitphx/stlite/pull/1839) [`c575e4c`](https://github.com/whitphx/stlite/commit/c575e4cf476c85b2a679a288618766841ba09727) Thanks [@whitphx](https://github.com/whitphx)! - Add `appMenu` option to hide the application menu bar. Set `stlite.desktop.appMenu` to `false` in your `package.json` to completely remove the Electron application menu.
|
|
8
|
+
|
|
9
|
+
## 0.92.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1828](https://github.com/whitphx/stlite/pull/1828) [`28db6f0`](https://github.com/whitphx/stlite/commit/28db6f0639c0cb57ed2ad3b420160fd3f3ade3f2) Thanks [@whitphx](https://github.com/whitphx)! - Add security considerations documentation for NodeJS worker mode
|
|
14
|
+
|
|
3
15
|
## 0.92.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -125,6 +125,23 @@ If you want to hide the toolbar, hamburger menu, and footer, add the following t
|
|
|
125
125
|
}
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
+
### Hide the application menu
|
|
129
|
+
|
|
130
|
+
If you want to hide the application menu bar (File, Edit, View, etc.), set `stlite.desktop.appMenu` to `false`:
|
|
131
|
+
|
|
132
|
+
```json
|
|
133
|
+
{
|
|
134
|
+
// ...other fields...
|
|
135
|
+
"stlite": {
|
|
136
|
+
"desktop": {
|
|
137
|
+
"appMenu": false
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
On Windows and Linux, this removes the menu bar from the window entirely. On macOS, this removes the application menu from the menu bar at the top of the screen.
|
|
144
|
+
|
|
128
145
|
### File system
|
|
129
146
|
|
|
130
147
|
_Stlite_ runs your Python code on [Pyodide](https://pyodide.org/), a CPython runtime compiled to Wasm, and Pyodide's backend, Emscripten, provides a virtual file system.
|
|
@@ -213,6 +230,16 @@ When you set the `stlite.desktop.nodeJsWorker` field in your `package.json` to `
|
|
|
213
230
|
}
|
|
214
231
|
```
|
|
215
232
|
|
|
233
|
+
#### Security considerations
|
|
234
|
+
|
|
235
|
+
When NodeJS worker mode is enabled, the Python code executes within a Node.js worker thread in the main process. This means:
|
|
236
|
+
|
|
237
|
+
- **The Python code has the same privileges as the Node.js process itself.** It can access the file system, spawn child processes, make network requests, and perform any operation that Node.js can do.
|
|
238
|
+
- **There is no sandbox.** Unlike the default Web Worker mode (which runs in a browser-like sandboxed environment), NodeJS worker mode provides no isolation between your Python code and the host operating system.
|
|
239
|
+
- **You are responsible for the security of your app.** If your app executes untrusted Python code or loads untrusted packages, those could potentially harm the user's system.
|
|
240
|
+
|
|
241
|
+
This is an intentional design to enable powerful features like direct file system access via NODEFS. However, you should only use this mode when you trust all Python code and packages that your app will execute.
|
|
242
|
+
|
|
216
243
|
## Limitations
|
|
217
244
|
|
|
218
245
|
- Navigation to external resources like `st.markdown("[link](https://streamlit.io/)")` does not work for security. See https://github.com/whitphx/stlite/pull/445 and let us know if you have use cases where you have to use such external links.
|