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

Update all dependencies (and hopefully fix Safari) #213

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions packages/create-svelte-ux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"commander": "^11.1.0"
},
"devDependencies": {
"@types/node": "^20.10.6",
"prettier": "^3.1.1"
"@types/node": "^20.11.0",
"prettier": "^3.2.1"
},
"files": [
"fragments",
Expand Down
33 changes: 17 additions & 16 deletions packages/svelte-ux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,52 +21,53 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@fortawesome/free-solid-svg-icons": "^6.2.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@skeletonlabs/tw-plugin": "^0.3.1",
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/kit": "^1.30.3",
"@sveltejs/adapter-auto": "^3.1.0",
"@sveltejs/kit": "^2.3.2",
"@sveltejs/package": "^2.2.5",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tailwindcss/typography": "^0.5.10",
"@types/culori": "^2.0.4",
"@types/d3-array": "^3.2.1",
"@types/d3-scale": "^4.0.8",
"@types/lodash-es": "^4.17.12",
"@types/marked": "^6.0.0",
"@types/prismjs": "^1.26.3",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/coverage-v8": "^1.2.0",
"autoprefixer": "^10.4.16",
"daisyui": "^4.5.0",
"daisyui": "^4.6.0",
"execa": "^8.0.1",
"marked": "^10.0.0",
"marked": "^11.1.1",
"mdsvex": "^0.11.0",
"prettier": "^3.1.1",
"prettier": "^3.2.1",
"prettier-plugin-svelte": "^3.1.2",
"rehype-slug": "^6.0.0",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"svelte-check": "^3.6.3",
"svelte-preprocess": "^5.1.3",
"svelte2tsx": "^0.6.27",
"tailwindcss": "^3.4.0",
"svelte2tsx": "^0.7.0",
"tailwindcss": "^3.4.1",
"tslib": "^2.6.2",
"typedoc-json-parser": "^9.0.1",
"typescript": "^5.3.3",
"unist-util-visit": "^5.0.0",
"vite": "^4.5.1",
"vitest": "^0.33.0"
"vite": "^5.0.11",
"vitest": "^1.2.0"
},
"type": "module",
"dependencies": {
"@floating-ui/dom": "^1.5.3",
"@floating-ui/dom": "^1.5.4",
"@fortawesome/fontawesome-common-types": "^6.5.1",
"@mdi/js": "^7.0.96",
"@mdi/js": "^7.4.47",
"clsx": "^2.1.0",
"culori": "^3.3.0",
"d3-array": "^3.2.4",
"d3-scale": "^4.0.2",
"date-fns": "^3.0.6",
"date-fns": "^3.2.0",
"immer": "^10.0.3",
"lodash-es": "^4.17.21",
"posthog-js": "^1.96.1",
"posthog-js": "^1.98.2",
"prism-svelte": "^0.5.0",
"prism-themes": "^1.9.0",
"prismjs": "^1.29.0",
Expand Down
9 changes: 3 additions & 6 deletions packages/svelte-ux/src/lib/actions/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ import type { Action } from 'svelte/action';
export function autoFocus(node: HTMLElement | SVGElement, options?: { delay?: number }) {
// TODO: Add options to "restoreFocus" on destroy()
// const elementFocused = document.activeElement as HTMLElement;
setTimeout(
() => {
node.focus();
},
options?.delay ?? 0
);
setTimeout(() => {
node.focus();
}, options?.delay ?? 0);
}

/**
Expand Down
9 changes: 3 additions & 6 deletions packages/svelte-ux/src/lib/actions/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ export const scrollIntoView: Action<HTMLElement, ScrollIntoViewOptions | undefin
const needed = options?.onlyIfNeeded ? !isVisibleInScrollParent(node) : true;

if (condition && needed) {
setTimeout(
() => {
scrollIntoViewUtil(node);
},
options?.delay ?? 0
);
setTimeout(() => {
scrollIntoViewUtil(node);
}, options?.delay ?? 0);
}
}

Expand Down
11 changes: 6 additions & 5 deletions packages/svelte-ux/src/lib/types/typeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ export type ComponentSlots<T> = T extends SvelteComponent<any, any, infer S> ? S

// Export until `Stores` and `StoresValues` are exported from svelte - https://github.com/sveltejs/svelte/blob/master/src/runtime/store/index.ts#L111-L112
export type Stores = Parameters<typeof derived>[0];
export type StoresValues<T> = T extends Readable<infer U>
? U
: {
[K in keyof T]: T[K] extends Readable<infer U> ? U : never;
};
export type StoresValues<T> =
T extends Readable<infer U>
? U
: {
[K in keyof T]: T[K] extends Readable<infer U> ? U : never;
};

export type TransitionParams = BlurParams | FadeParams | FlyParams | SlideParams | ScaleParams;

Expand Down
1 change: 1 addition & 0 deletions packages/svelte-ux/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { sveld } from './src/lib/plugins/vite';

export default defineConfig({
plugins: [sveltekit(), sveld()],
// optimizeDeps: { exclude: ['fsevents'] },
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
coverage: {
Expand Down
Loading
Loading