mirror of
https://github.com/LukeHagar/skeleton.git
synced 2025-12-09 20:57:45 +00:00
chore: update dependencies (#1648)
This commit is contained in:
5
.changeset/ninety-points-turn.md
Normal file
5
.changeset/ninety-points-turn.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@skeletonlabs/skeleton": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore: Updated dependencies
|
||||||
@@ -41,34 +41,31 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://skeleton.dev/",
|
"homepage": "https://skeleton.dev/",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@floating-ui/dom": "1.2.5",
|
"@sveltejs/adapter-auto": "2.1.0",
|
||||||
"@sveltejs/adapter-auto": "2.0.0",
|
"@sveltejs/kit": "1.20.2",
|
||||||
"@sveltejs/kit": "1.15.0",
|
|
||||||
"@sveltejs/package": "2.0.2",
|
"@sveltejs/package": "2.0.2",
|
||||||
"@tailwindcss/forms": "0.5.3",
|
"@testing-library/dom": "9.3.0",
|
||||||
"@tailwindcss/typography": "0.5.9",
|
|
||||||
"@testing-library/dom": "9.2.0",
|
|
||||||
"@testing-library/svelte": "3.2.2",
|
"@testing-library/svelte": "3.2.2",
|
||||||
"@typescript-eslint/eslint-plugin": "5.57.0",
|
"@typescript-eslint/eslint-plugin": "5.59.9",
|
||||||
"@typescript-eslint/parser": "5.57.0",
|
"@typescript-eslint/parser": "5.59.9",
|
||||||
"@vitest/coverage-c8": "0.31.0",
|
"@vitest/coverage-c8": "0.32.0",
|
||||||
"autoprefixer": "10.4.14",
|
"autoprefixer": "10.4.14",
|
||||||
"eslint": "8.37.0",
|
"eslint": "8.42.0",
|
||||||
"eslint-config-prettier": "8.8.0",
|
"eslint-config-prettier": "8.8.0",
|
||||||
"eslint-plugin-svelte": "^2.29.0",
|
"eslint-plugin-svelte": "^2.30.0",
|
||||||
"jsdom": "21.1.1",
|
"jsdom": "21.1.1",
|
||||||
"postcss": "8.4.21",
|
"postcss": "8.4.24",
|
||||||
"postcss-import": "15.1.0",
|
"postcss-import": "15.1.0",
|
||||||
"postcss-js": "4.0.1",
|
"postcss-js": "4.0.1",
|
||||||
"postcss-load-config": "4.0.1",
|
"postcss-load-config": "4.0.1",
|
||||||
"prettier": "2.8.7",
|
"prettier": "2.8.8",
|
||||||
"prettier-plugin-svelte": "2.10.0",
|
"prettier-plugin-svelte": "2.10.1",
|
||||||
"svelte-check": "3.1.4",
|
"svelte-check": "3.4.3",
|
||||||
"tailwindcss": "3.3.1",
|
"tailwindcss": "3.3.2",
|
||||||
"tslib": "2.5.0",
|
"tslib": "2.5.3",
|
||||||
"typescript": "4.9.5",
|
"typescript": "5.0.3",
|
||||||
"vite": "4.2.1",
|
"vite": "4.3.9",
|
||||||
"vitest": "0.31.0"
|
"vitest": "0.32.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
555
packages/skeleton/pnpm-lock.yaml
generated
555
packages/skeleton/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -11,7 +11,7 @@ async function transpileCssToJs() {
|
|||||||
const twConfig = {
|
const twConfig = {
|
||||||
darkMode: 'class',
|
darkMode: 'class',
|
||||||
content: ['./src/**/*.{html,js,svelte,ts}'],
|
content: ['./src/**/*.{html,js,svelte,ts}'],
|
||||||
plugins: [require('@tailwindcss/typography'), require('../src/lib/tailwind/core.cjs')]
|
plugins: [require('../src/lib/tailwind/core.cjs')]
|
||||||
};
|
};
|
||||||
|
|
||||||
const css = fs.readFileSync(cssEntryPath, 'utf8');
|
const css = fs.readFileSync(cssEntryPath, 'utf8');
|
||||||
|
|||||||
@@ -10,9 +10,5 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [...require('./src/lib/tailwind/skeleton.cjs')({ intellisense: false })]
|
||||||
require('@tailwindcss/forms'),
|
|
||||||
require('@tailwindcss/typography'),
|
|
||||||
...require('./src/lib/tailwind/skeleton.cjs')({ intellisense: false })
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,33 +20,34 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://skeleton.dev/",
|
"homepage": "https://skeleton.dev/",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@faker-js/faker": "^7.6.0",
|
"@faker-js/faker": "^8.0.2",
|
||||||
"@floating-ui/dom": "^1.2.5",
|
"@floating-ui/dom": "^1.2.9",
|
||||||
"@skeletonlabs/skeleton": "workspace:*",
|
"@skeletonlabs/skeleton": "workspace:*",
|
||||||
"@sveltejs/adapter-vercel": "^2.4.3",
|
"@sveltejs/adapter-vercel": "^3.0.1",
|
||||||
"@sveltejs/kit": "^1.15.0",
|
"@sveltejs/kit": "^1.20.2",
|
||||||
"@tailwindcss/forms": "^0.5.3",
|
"@tailwindcss/forms": "^0.5.3",
|
||||||
"@tailwindcss/typography": "^0.5.9",
|
"@tailwindcss/typography": "^0.5.9",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
||||||
"@typescript-eslint/parser": "^5.57.0",
|
"@typescript-eslint/parser": "^5.59.9",
|
||||||
"@vercel/analytics": "^0.1.11",
|
"@vercel/analytics": "^1.0.1",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"eslint": "^8.37.0",
|
"eslint": "^8.42.0",
|
||||||
"eslint-config-prettier": "^8.8.0",
|
"eslint-config-prettier": "^8.8.0",
|
||||||
"eslint-plugin-svelte": "^2.29.0",
|
"eslint-plugin-svelte": "^2.30.0",
|
||||||
"highlight.js": "^11.7.0",
|
"highlight.js": "^11.8.0",
|
||||||
"postcss": "^8.4.21",
|
"postcss": "^8.4.24",
|
||||||
"prettier": "^2.8.7",
|
"prettier": "^2.8.8",
|
||||||
"prettier-plugin-svelte": "^2.10.0",
|
"prettier-plugin-svelte": "^2.10.1",
|
||||||
"sveld": "^0.18.0",
|
"query-string": "^8.1.0",
|
||||||
"svelte": "^3.58.0",
|
"sveld": "^0.18.1",
|
||||||
"svelte-check": "^3.1.4",
|
"svelte": "^3.59.1",
|
||||||
"tailwindcss": "^3.3.1",
|
"svelte-check": "^3.4.3",
|
||||||
"tslib": "^2.5.0",
|
"svelte-preprocess": "^5.0.4",
|
||||||
"typescript": "^4.9.5",
|
"tailwindcss": "^3.3.2",
|
||||||
"vite": "^4.2.1",
|
"tslib": "^2.5.3",
|
||||||
"vite-plugin-sveld": "^1.1.0",
|
"typescript": "^5.0.3",
|
||||||
"vitest": "^0.29.8"
|
"vite": "^4.3.9",
|
||||||
|
"vitest": "^0.32.0"
|
||||||
},
|
},
|
||||||
"type": "module"
|
"type": "module"
|
||||||
}
|
}
|
||||||
|
|||||||
844
sites/skeleton.dev/pnpm-lock.yaml
generated
844
sites/skeleton.dev/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
2
sites/skeleton.dev/src/app.d.ts
vendored
2
sites/skeleton.dev/src/app.d.ts
vendored
@@ -1,5 +1,5 @@
|
|||||||
/// <reference types="@sveltejs/kit" />
|
/// <reference types="@sveltejs/kit" />
|
||||||
/// <reference types="vite-plugin-sveld" />
|
/// <reference types="../vite-plugin-sveld" />
|
||||||
|
|
||||||
// See https://kit.svelte.dev/docs/types#the-app-namespace
|
// See https://kit.svelte.dev/docs/types#the-app-namespace
|
||||||
// for information about these interfaces
|
// for information about these interfaces
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { browser } from '$app/environment';
|
import { browser } from '$app/environment';
|
||||||
import { enhance, type SubmitFunction } from '$app/forms';
|
import { enhance } from '$app/forms';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
import type { ModalSettings, DrawerSettings } from '@skeletonlabs/skeleton';
|
import type { ModalSettings, DrawerSettings } from '@skeletonlabs/skeleton';
|
||||||
|
import type { SubmitFunction } from '@sveltejs/kit';
|
||||||
|
|
||||||
// Docs
|
// Docs
|
||||||
import DocsLogoFull from '$lib/components/DocsLogos/DocsLogoFull.svelte';
|
import DocsLogoFull from '$lib/components/DocsLogos/DocsLogoFull.svelte';
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// On Row Selected
|
// On Row Selected
|
||||||
function onSelected(meta: any): void {
|
function onSelected(meta: unknown): void {
|
||||||
console.log('on:selected', meta);
|
console.log('on:selected', meta);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
68
sites/skeleton.dev/vite-plugin-sveld/index.d.ts
vendored
Normal file
68
sites/skeleton.dev/vite-plugin-sveld/index.d.ts
vendored
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
declare module '*.svelte?raw&sveld' {
|
||||||
|
interface SveldProp {
|
||||||
|
name: string;
|
||||||
|
kind: string;
|
||||||
|
type?: string;
|
||||||
|
isFunction: boolean;
|
||||||
|
isFunctionDeclaration: boolean;
|
||||||
|
isRequired: boolean;
|
||||||
|
constant: boolean;
|
||||||
|
reactive: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SveldSlot {
|
||||||
|
name: string;
|
||||||
|
default: boolean;
|
||||||
|
fallback: string;
|
||||||
|
slot_props: string;
|
||||||
|
description?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SveldEvent {
|
||||||
|
type: string;
|
||||||
|
name: string;
|
||||||
|
element: string;
|
||||||
|
description?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SveldRestProps {
|
||||||
|
type: string;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SveldTypedefs {
|
||||||
|
type: string;
|
||||||
|
name: string;
|
||||||
|
ts: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SveldModuleExport {
|
||||||
|
name: string;
|
||||||
|
kind: string;
|
||||||
|
type?: string;
|
||||||
|
value: string;
|
||||||
|
isFunction: boolean;
|
||||||
|
isFunctionDeclaration: boolean;
|
||||||
|
isRequired: boolean;
|
||||||
|
constant: boolean;
|
||||||
|
reactive: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SveldJson {
|
||||||
|
props: SveldProp[];
|
||||||
|
slots: SveldSlot[];
|
||||||
|
events: SveldEvent[];
|
||||||
|
typedefs: SveldTypedefs[];
|
||||||
|
rest_props: SveldRestProps[];
|
||||||
|
moduleExports: SveldModuleExport[];
|
||||||
|
componentComment?: string;
|
||||||
|
extends?: {
|
||||||
|
interface: string;
|
||||||
|
import: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const json: SveldJson;
|
||||||
|
|
||||||
|
export default json;
|
||||||
|
}
|
||||||
33
sites/skeleton.dev/vite-plugin-sveld/index.ts
Normal file
33
sites/skeleton.dev/vite-plugin-sveld/index.ts
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
// Credits: https://github.com/mattjennings/vite-plugin-sveld
|
||||||
|
|
||||||
|
import { ComponentParser } from 'sveld';
|
||||||
|
import sveltePreprocess from 'svelte-preprocess';
|
||||||
|
import { preprocess } from 'svelte/compiler';
|
||||||
|
import qs from 'query-string';
|
||||||
|
import type { Plugin } from 'vite';
|
||||||
|
|
||||||
|
export default function sveld(): Plugin {
|
||||||
|
return {
|
||||||
|
name: 'vite-plugin-sveld',
|
||||||
|
async transform(src, id) {
|
||||||
|
const query = qs.parse(id.split('?')[1]);
|
||||||
|
if ('raw' in query && 'sveld' in query) {
|
||||||
|
const raw = JSON.parse(src.split('export default ')[1]);
|
||||||
|
const { code } = await preprocess(raw, sveltePreprocess(), {
|
||||||
|
filename: id
|
||||||
|
});
|
||||||
|
const data = new ComponentParser({
|
||||||
|
verbose: false
|
||||||
|
}).parseSvelteComponent(code, {
|
||||||
|
filePath: id,
|
||||||
|
moduleName: id
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
code: `export default ${JSON.stringify(data)}`,
|
||||||
|
map: null
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { sveltekit } from '@sveltejs/kit/vite';
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||||||
import type { UserConfig } from 'vite';
|
import type { UserConfig } from 'vite';
|
||||||
import sveld from 'vite-plugin-sveld';
|
import sveld from './vite-plugin-sveld';
|
||||||
|
|
||||||
// Import package.json version
|
// Import package.json version
|
||||||
import { readFileSync } from 'fs';
|
import { readFileSync } from 'fs';
|
||||||
|
|||||||
Reference in New Issue
Block a user