batchkit-devtools-svelte 0.2.0 → 0.3.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
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { mount } from 'batchkit-devtools';
|
|
3
3
|
import { onMount } from 'svelte';
|
|
4
4
|
|
|
5
|
-
interface Props {
|
|
5
|
+
export interface Props {
|
|
6
|
+
position?: 'right' | 'bottom' | 'left';
|
|
7
|
+
defaultOpen?: boolean;
|
|
6
8
|
buttonClass?: string;
|
|
7
9
|
buttonStyle?: Record<string, string>;
|
|
8
10
|
panelClass?: string;
|
|
@@ -10,6 +12,8 @@
|
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
let {
|
|
15
|
+
position,
|
|
16
|
+
defaultOpen,
|
|
13
17
|
buttonClass,
|
|
14
18
|
buttonStyle,
|
|
15
19
|
panelClass,
|
|
@@ -22,6 +26,8 @@
|
|
|
22
26
|
if (!container) return;
|
|
23
27
|
|
|
24
28
|
const dispose = mount(container, {
|
|
29
|
+
position,
|
|
30
|
+
defaultOpen,
|
|
25
31
|
buttonClass,
|
|
26
32
|
buttonStyle,
|
|
27
33
|
panelClass,
|
|
@@ -34,8 +40,4 @@
|
|
|
34
40
|
});
|
|
35
41
|
</script>
|
|
36
42
|
|
|
37
|
-
<div
|
|
38
|
-
bind:this={container}
|
|
39
|
-
data-batchkit-devtools
|
|
40
|
-
></div>
|
|
41
|
-
|
|
43
|
+
<div bind:this={container} data-batchkit-devtools></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Devtools.svelte.d.ts","sourceRoot":"","sources":["../src/Devtools.svelte.ts"],"names":[],"mappings":";AAOE,
|
|
1
|
+
{"version":3,"file":"Devtools.svelte.d.ts","sourceRoot":"","sources":["../src/Devtools.svelte.ts"],"names":[],"mappings":";AAOE,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,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;AAuCH,QAAA,MAAM,QAAQ,2CAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "batchkit-devtools-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Svelte wrapper for BatchKit DevTools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"svelte": "./dist/index.js",
|
|
@@ -35,12 +35,14 @@
|
|
|
35
35
|
"directory": "packages/devtools-svelte"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"svelte": ">=5.0.0",
|
|
39
|
+
"batchkit-devtools": ">=0.3.1"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"batchkit-devtools": "workspace:*"
|
|
40
43
|
},
|
|
41
44
|
"devDependencies": {
|
|
42
45
|
"@sveltejs/package": "^2.3.0",
|
|
43
|
-
"batchkit-devtools": "workspace:*",
|
|
44
46
|
"svelte": "^5.0.0",
|
|
45
47
|
"svelte-check": "^4.0.0",
|
|
46
48
|
"typescript": "5.3.3"
|