svelte-common 4.19.2 → 4.19.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "4.19.2",
3
+ "version": "4.19.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1,9 @@
1
+ <script>
2
+ import { getContext } from "svelte";
3
+
4
+ export let id;
5
+
6
+ const tabs = getContext("TABS");
7
+ </script>
8
+
9
+ <slot />
@@ -0,0 +1,9 @@
1
+ <script>
2
+ import { setContext } from "svelte";
3
+
4
+ const tabs = {};
5
+
6
+ setContext("TABS", tabs);
7
+ </script>
8
+
9
+ <slot />
package/src/index.svelte CHANGED
@@ -14,6 +14,8 @@
14
14
  import Collapse from "./components/Collapse.svelte";
15
15
  import Modal from "./components/Modal.svelte";
16
16
  import Peer from "./components/Peer.svelte";
17
+ import Tabs from "./components/Tabs.svelte";
18
+ import Tab from "./components/Tab.svelte";
17
19
 
18
20
  export {
19
21
  Bytes,
@@ -30,7 +32,9 @@
30
32
  SessionDetails,
31
33
  ServerDetails,
32
34
  ServiceWorkerDetails,
33
- ServiceWorkerRegistrationDetails
35
+ ServiceWorkerRegistrationDetails,
36
+ Tabs,
37
+ Tab
34
38
  };
35
39
 
36
40
  export {
@@ -50,6 +54,6 @@
50
54
  SORT_ASCENDING,
51
55
  SORT_DESCENDING
52
56
  } from "./sorting.mjs";
53
- export { filter } from "./filter.mjs";
57
+ export { filter } from "./filter.mjs";
54
58
  export { initializeServiceWorker } from "./service-worker.mjs";
55
59
  </script>