Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: svelte5 port #305

Open
wants to merge 59 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
faa53a1
chore: bump carbon components to latest version
mgreminger Dec 1, 2024
b4d14c8
tests: update tests to work with new carbon components version
mgreminger Dec 8, 2024
fa5e4db
tests: update reference screenshots
mgreminger Dec 8, 2024
6bcce8a
chore: bump svelte to svelte 5
mgreminger Dec 9, 2024
46800ec
fix: revert changes to MathCell
mgreminger Dec 13, 2024
b8df999
fix: update math cell config logic to work with svelte 5
mgreminger Dec 13, 2024
434eeec
refactor: port MathField.svelte to runes mode
mgreminger Dec 15, 2024
4c54271
refactor: port ButtonBar and CellList to runes mode
mgreminger Dec 15, 2024
472b0d3
refactor: port IconButton.svelte to runes mode
mgreminger Dec 15, 2024
3267a32
fix: switch to snippet instead of slot for IconButton
mgreminger Dec 15, 2024
f60eaac
refactor: port Cell and InsertCell to runes mode
mgreminger Dec 15, 2024
7b098ec
Revert "refactor: port Cell and InsertCell to runes mode"
mgreminger Dec 15, 2024
e8fd621
fix: fix insert sheet regression
mgreminger Dec 15, 2024
13fa674
refactor: port DocumentTitle to runes mode
mgreminger Dec 15, 2024
c1413df
fix: make document title a bindable property
mgreminger Dec 15, 2024
281e2ab
chore: bump svelte version
mgreminger Dec 16, 2024
f9f903c
refactor: rename Keyboard.ts to Keyboard.svelte.ts
mgreminger Dec 17, 2024
97c48ee
refactor: port KeyboardButton and VirtualKeyboard to runes mode
mgreminger Dec 17, 2024
d46f187
refactor: rename Keyboard.svelte.ts back to Keyboard.ts
mgreminger Dec 17, 2024
91bf412
refactor: make selectedTab its own state for VirtualKeyboard
mgreminger Dec 17, 2024
3c55926
chore: bump svelte to 5.14.4
mgreminger Dec 18, 2024
f4bbf69
refactor: port Cell.svelte to runes mode
mgreminger Dec 19, 2024
c744024
refactor: port MathCell.svelte to runes mode
mgreminger Dec 19, 2024
df4a388
refactor: port SystemCell to runes mode
mgreminger Dec 20, 2024
0c38387
refactor: port PiecewiseCell to runes mode
mgreminger Dec 20, 2024
4000968
refactor: port DocumentationField and DocumentationCell to runes mode
mgreminger Dec 21, 2024
aaa2537
refactor: port TableCell.svelte and TextBox.svelte to runes mode
mgreminger Dec 23, 2024
ef2df3d
refactor: port DataTableCell and DataTableInput to runes mode
mgreminger Dec 24, 2024
47106de
refactor: port Plot, PlotCell, TextButton, and TextCheckbox to runes …
mgreminger Dec 26, 2024
03cd489
fix: fix issues with $effect in plot cell
mgreminger Dec 27, 2024
61013a3
fix: update text button callbacks for DataTableCell
mgreminger Dec 27, 2024
aa551f7
fix: fix plot initialization regression
mgreminger Dec 27, 2024
caecd29
refactor: port FluidCell to runes mode
mgreminger Dec 27, 2024
dfb2762
fix: fix sheet level custom mixture regression
mgreminger Dec 28, 2024
a651034
fix: fix sheet level custom mixture regression
mgreminger Dec 28, 2024
4ebcec3
fix: fix fluid custom mixture regression
mgreminger Dec 28, 2024
9ab3da1
refactor: rename stores.ts to stores.svelte.ts
mgreminger Dec 28, 2024
f1c449f
refactor: port DeletedCell to runes mode
mgreminger Dec 29, 2024
dce7ec7
refactor: port InsertCell to runes mode
mgreminger Dec 29, 2024
e9e087f
refactor: port GenerateCodeDialog to runes mode
mgreminger Dec 29, 2024
670bb2c
refactor: port SetDefaultConfigDialog to runes mode
mgreminger Dec 29, 2024
6d2e4fa
fix: fix user default config regression
mgreminger Dec 30, 2024
54f5220
refactor: port DownloadDocumentModal to runes mode
mgreminger Dec 30, 2024
662e731
refactor: port InsertSheetModal to runes mode
mgreminger Dec 30, 2024
d0ae6da
refactor: port BaseUnitsConfigDialog to runes mode
mgreminger Dec 31, 2024
15ac0f3
refactor: port MathCellConfigDialog to runes mode
mgreminger Dec 31, 2024
98f452b
refactor: use events to trigger sheet updates rather than using react…
mgreminger Dec 31, 2024
eede72e
refactor: initial port of App.svelte to runes mode
mgreminger Dec 31, 2024
76b9194
fix: fix base units update regression
mgreminger Jan 1, 2025
ee126f6
fix: remove unnecessary console.log
mgreminger Jan 1, 2025
919e8f3
fix: fix pyodide timeout regression
mgreminger Jan 1, 2025
fd6c2d0
fix: fix remaining svelte compiler warnings
mgreminger Jan 1, 2025
8f57e8b
refactor: rename keyboard.ts to keyboard.svelte.ts
mgreminger Jan 2, 2025
ba198e9
refactor: switch from stores to $state for all app state
mgreminger Jan 2, 2025
ff347de
fix: fix user default base units regression
mgreminger Jan 2, 2025
5d686d1
refactor: simplify BaseUnitsConfigDialog's reactivity logic
mgreminger Jan 2, 2025
23872c8
refactor: simplify reactivity in FluidCell
mgreminger Jan 2, 2025
21bc9c4
chore: bump svelte version
mgreminger Jan 2, 2025
374e158
chore: bump svelte version to 5.17.0
mgreminger Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,042 changes: 326 additions & 716 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"@cloudflare/workers-types": "^4.20221111.1",
"@playwright/test": "^1.45.2",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.0.0",
"@tsconfig/svelte": "^5.0.2",
"@types/wicg-file-system-access": "^2020.9.5",
"better-sqlite3": "^7.6.2",
"carbon-components-svelte": "^0.82.7",
"carbon-components-svelte": "^0.86.2",
"carbon-icons-svelte": "^12.1.0",
"carbon-preprocess-svelte": "^0.10.0",
"carbon-preprocess-svelte": "^0.11.8",
"expect": "^26.6.2",
"node-fetch": "^2.6.1",
"pixelmatch": "^5.2.1",
Expand All @@ -32,11 +32,11 @@
"rollup-plugin-css-only": "^4.3.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-svelte": "^7.1.5",
"rollup-plugin-svelte": "^7.2.2",
"rollup-plugin-workbox": "^6.2.0",
"ssri": "^10.0.1",
"svelte": "^4.2.0",
"svelte-preprocess": "^5.0.4",
"svelte": "^5.17.0",
"svelte-preprocess": "^6.0.3",
"tslib": "^2.6.3",
"typescript": "^5.5.2",
"wrangler": "^2.11"
Expand Down
7 changes: 4 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import css from 'rollup-plugin-css-only';
import copy from 'rollup-plugin-copy';
import del from 'rollup-plugin-delete';
import bundleFonts from 'rollup-plugin-bundle-fonts';
import preprocess from 'svelte-preprocess';
import { sveltePreprocess } from 'svelte-preprocess';
import commonjs from '@rollup/plugin-commonjs';
import { optimizeImports } from 'carbon-preprocess-svelte';
import { generateSW } from 'rollup-plugin-workbox';
Expand Down Expand Up @@ -75,7 +75,7 @@ export default [
optimizeImports(),

svelte({
preprocess: preprocess(),
preprocess: sveltePreprocess(),
}),

bundleFonts({fontTargetDir: "public/fonts", cssBundleDir: "public/build"}),
Expand All @@ -91,7 +91,8 @@ export default [
// https://github.com/rollup/plugins/tree/master/packages/commonjs
resolve({
browser: true,
dedupe: ['svelte']
dedupe: ['svelte'],
exportConditions: [ production ? "production" : "development" ]
}),
commonjs(),
typescript( { sourceMap: !production} ),
Expand Down
Loading
Loading