You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create @stlite/react and import it from @stlite/browser (#1696)
* Create @stlite/react and import it from @stlite/browser
* Fix eslint.config.mjs
* Make @stlite/browser use @stlite/react
* Make @stlite/sharing use @stlite/react
* Fix @stlite/react
* Fix @stlite/sharing
* Make @stlite/desktop use @stlite/react
* Build vite-plugin to isolate the dependencies
* fix Makefile
* Add separate vitest.config.ts
* Rename StreamlitApp -> StliteApp
* Encapsulate toast callbacks into StliteAppWithToast and make browser/desktop/sharing use it
* Fix root tsconfig.json
* Move toastify components into @stlite/react and remove common-react
* Export stlite.css from @stlite/react and import it in browser/desktop/sharing
* Explicitly pass the wheel urls
* Make browser/desktop/sharing independent from @stlite/kernel
* Update react make rule
* Fix browser
* Set workerType
* Set kernel exports and update electron tsconfig
* Remove worker config
* Configure react/.prettierignore
* Fix
* Set assetFileNames in react/vite-plugin and update vite configs
* Separate @stlite/react/wheels for tree shaking
* Update AGENTS.md
* Fix
* Experimentally introduce vite-plugin-lib-assets to @stlite/react
* Emit wasm files separately
* fix react/vite.config.ts
* Add CI/CD pipeline for react package
* fix
* Fix dependencies
* Fix
* fix
* Fix react/.gitignore
* Set files field in react/package.json
* Add changeset
* Add react/README.md
* Fix dev server setting in react/vite.config.ts
* fix
* fix
* Mount ToastContainer
* fix
* comment
* Update .github/workflows/postbuild.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix dep
* Remove define in react/vite.config.ts because process.env is ignored in lib build: https://github.com/vitejs/vite/blob/ab0c3b26533ebe48c9db3f7238938cec665f64ef/packages/vite/src/node/plugins/define.ts#L19
* Remove process.env.NODE_ENV definition from vite-plugin-stlite-react
* Fix wheel URL import utility
* Rename packages/react/src/wheels.ts -> packages/react/src/vite-utils/wheels.ts
* Stop using path.join to construct the assetFileName pattern because its path separator is OS-dependent
* Instantiate worker from data url directly
* Update react/README.md
* fix
* fix
* Run smoke test on @stlite/react
* Make test-react runnable
* Set kernel's development exports
* fix
* Return a new object instead of mutating a passed object in vite-plugin
* tmp: skip test react
* Add changeset
* Add dependencies of testing-library/react
* Run react test
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
stlite-lib: 'true'# This step does not detect changes in the `streamlit` submodule that is needed to trigger the test-stlite-lib job (https://github.com/dorny/paths-filter/issues/143), so skip checking and make it always return true as a workaround.
- name: "Inform the package stats of @stlite/react"
561
+
uses: ./.github/actions/set-package-stats
562
+
continue-on-error: true
563
+
with:
564
+
key: react
565
+
name: "@stlite/react"
566
+
input-path: packages/react/package.tgz
567
+
489
568
build-sharing:
490
569
if: ${{ ! failure() }} # This job should run even if the depending jobs are skipped, but not when those jobs failed: https://qiita.com/abetomo/items/d9ede7dbeeb24f723fc5#%E8%A8%AD%E5%AE%9A%E4%BE%8B4
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Project Structure & Module Organization
4
4
5
-
-`packages/` hosts the Yarn workspaces: `browser`, `sharing`, and `desktop` are user apps; `kernel` is the Pyodide core; `sharing-editor` is the editor client for `sharing`, and the rest (`common`, `common-react`, devutils) are support utilities.
5
+
-`packages/` hosts the Yarn workspaces: `browser`, `sharing`, and `desktop` are user apps; `react` is a React library that the apps depend on; `kernel` is the Pyodide core that `react` depends on; `sharing-editor` is the editor client for `sharing`, and the rest (`common`, `sharing-common`, `devutils`) are support utilities.
6
6
-`streamlit/` mirrors upstream Streamlit; `streamlit/frontend/app` is the upstream UI we reference (not build) when customizing `browser`, `sharing`, and `desktop`, while other `streamlit/frontend/*` packages (`lib`, `connection`, etc.) are consumed directly by our workspaces.
7
7
- Supporting assets sit in `assets/`; Makefile orchestrates builds, and browser E2E specs live in `packages/browser/e2e-tests`.
0 commit comments