batchkit-devtools-svelte 0.2.0-beta.1
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/dist/Devtools.svelte +41 -0
- package/dist/Devtools.svelte.d.ts +11 -0
- package/dist/Devtools.svelte.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { mount } from 'batchkit-devtools';
|
|
3
|
+
import { onMount } from 'svelte';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
buttonClass?: string;
|
|
7
|
+
buttonStyle?: Record<string, string>;
|
|
8
|
+
panelClass?: string;
|
|
9
|
+
panelStyle?: Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let {
|
|
13
|
+
buttonClass,
|
|
14
|
+
buttonStyle,
|
|
15
|
+
panelClass,
|
|
16
|
+
panelStyle,
|
|
17
|
+
}: Props = $props();
|
|
18
|
+
|
|
19
|
+
let container: HTMLDivElement | undefined = $state();
|
|
20
|
+
|
|
21
|
+
onMount(() => {
|
|
22
|
+
if (!container) return;
|
|
23
|
+
|
|
24
|
+
const dispose = mount(container, {
|
|
25
|
+
buttonClass,
|
|
26
|
+
buttonStyle,
|
|
27
|
+
panelClass,
|
|
28
|
+
panelStyle,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
return () => {
|
|
32
|
+
dispose();
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<div
|
|
38
|
+
bind:this={container}
|
|
39
|
+
data-batchkit-devtools
|
|
40
|
+
></div>
|
|
41
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
interface Props {
|
|
3
|
+
buttonClass?: string;
|
|
4
|
+
buttonStyle?: Record<string, string>;
|
|
5
|
+
panelClass?: string;
|
|
6
|
+
panelStyle?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
declare const Devtools: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type Devtools = ReturnType<typeof Devtools>;
|
|
10
|
+
export default Devtools;
|
|
11
|
+
//# sourceMappingURL=Devtools.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Devtools.svelte.d.ts","sourceRoot":"","sources":["../src/Devtools.svelte.ts"],"names":[],"mappings":";AAOE,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAoCH,QAAA,MAAM,QAAQ,2CAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BatchkitDevtools } from './Devtools.svelte';
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "batchkit-devtools-svelte",
|
|
3
|
+
"version": "0.2.0-beta.1",
|
|
4
|
+
"description": "Svelte wrapper for BatchKit DevTools",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"svelte": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"svelte": "./dist/index.js",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "svelte-package -i src -o dist",
|
|
23
|
+
"typecheck": "svelte-check"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"batchkit",
|
|
27
|
+
"devtools",
|
|
28
|
+
"svelte"
|
|
29
|
+
],
|
|
30
|
+
"author": "",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"batchkit-devtools": ">=0.1.0",
|
|
34
|
+
"svelte": ">=5.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@sveltejs/package": "^2.3.0",
|
|
38
|
+
"batchkit-devtools": "workspace:*",
|
|
39
|
+
"svelte": "^5.0.0",
|
|
40
|
+
"svelte-check": "^4.0.0",
|
|
41
|
+
"typescript": "5.3.3"
|
|
42
|
+
}
|
|
43
|
+
}
|