drab 1.9.3 → 1.10.0
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/components/ContextMenu.svelte +1 -1
- package/dist/components/ContextMenu.svelte.d.ts +1 -1
- package/dist/components/CopyButton.svelte +2 -2
- package/dist/components/CopyButton.svelte.d.ts +2 -2
- package/dist/components/DataTable.svelte +1 -1
- package/dist/components/DataTable.svelte.d.ts +1 -1
- package/dist/components/Editor.svelte +1 -1
- package/dist/components/Editor.svelte.d.ts +1 -1
- package/dist/components/FullscreenButton.svelte +1 -1
- package/dist/components/FullscreenButton.svelte.d.ts +1 -1
- package/dist/components/ShareButton.svelte +3 -3
- package/dist/components/ShareButton.svelte.d.ts +3 -3
- package/dist/components/YouTube.svelte +1 -1
- package/dist/components/YouTube.svelte.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
@@ -36,7 +36,7 @@ export type ContextMenuSlots = typeof __propDef.slots;
|
|
36
36
|
*
|
37
37
|
* ```svelte
|
38
38
|
* <script>
|
39
|
-
* import { ContextMenu } from "
|
39
|
+
* import { ContextMenu } from "drab";
|
40
40
|
* </script>
|
41
41
|
*
|
42
42
|
* <div class="p-12 border border-dashed flex justify-center">
|
@@ -23,10 +23,10 @@ Uses the navigator api to copy text to the clipboard.
|
|
23
23
|
|
24
24
|
```svelte
|
25
25
|
<script>
|
26
|
-
import { CopyButton } from "
|
26
|
+
import { CopyButton } from "drab";
|
27
27
|
</script>
|
28
28
|
|
29
|
-
<CopyButton
|
29
|
+
<CopyButton text="Text to copy" />
|
30
30
|
```
|
31
31
|
-->
|
32
32
|
|
@@ -40,10 +40,10 @@ export type CopyButtonSlots = typeof __propDef.slots;
|
|
40
40
|
*
|
41
41
|
* ```svelte
|
42
42
|
* <script>
|
43
|
-
* import { CopyButton } from "
|
43
|
+
* import { CopyButton } from "drab";
|
44
44
|
* </script>
|
45
45
|
*
|
46
|
-
* <CopyButton
|
46
|
+
* <CopyButton text="Text to copy" />
|
47
47
|
* ```
|
48
48
|
*/
|
49
49
|
export default class CopyButton extends SvelteComponent<CopyButtonProps, CopyButtonEvents, CopyButtonSlots> {
|
@@ -24,13 +24,13 @@ Uses the navigator api to share or copy a url link depending on browser support.
|
|
24
24
|
|
25
25
|
```svelte
|
26
26
|
<script>
|
27
|
-
import { ShareButton } from "
|
27
|
+
import { ShareButton } from "drab";
|
28
28
|
</script>
|
29
29
|
|
30
30
|
<ShareButton
|
31
31
|
text="Check out this page: "
|
32
|
-
title="
|
33
|
-
url="https://
|
32
|
+
title="drab"
|
33
|
+
url="https://drab.robino.dev"
|
34
34
|
/>
|
35
35
|
```
|
36
36
|
-->
|
@@ -42,13 +42,13 @@ export type ShareButtonSlots = typeof __propDef.slots;
|
|
42
42
|
*
|
43
43
|
* ```svelte
|
44
44
|
* <script>
|
45
|
-
* import { ShareButton } from "
|
45
|
+
* import { ShareButton } from "drab";
|
46
46
|
* </script>
|
47
47
|
*
|
48
48
|
* <ShareButton
|
49
49
|
* text="Check out this page: "
|
50
|
-
* title="
|
51
|
-
* url="https://
|
50
|
+
* title="drab"
|
51
|
+
* url="https://drab.robino.dev"
|
52
52
|
* />
|
53
53
|
* ```
|
54
54
|
*/
|
@@ -18,7 +18,7 @@ Embeds a YouTube video into a website with the video `uid`, using [www.youtube-n
|
|
18
18
|
|
19
19
|
```svelte
|
20
20
|
<script>
|
21
|
-
import { YouTube } from "
|
21
|
+
import { YouTube } from "drab";
|
22
22
|
</script>
|
23
23
|
|
24
24
|
<YouTube title="Video Title" uid="youtube_uid" />
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import Chord from "./components/Chord.svelte";
|
2
|
+
import ContextMenu from "./components/ContextMenu.svelte";
|
2
3
|
import CopyButton from "./components/CopyButton.svelte";
|
3
4
|
import DataTable from "./components/DataTable.svelte";
|
4
5
|
import type { DataTableRow } from "./components/DataTable.svelte";
|
@@ -7,4 +8,4 @@ import type { EditorContentElement } from "./components/Editor.svelte";
|
|
7
8
|
import FullscreenButton from "./components/FullscreenButton.svelte";
|
8
9
|
import ShareButton from "./components/ShareButton.svelte";
|
9
10
|
import YouTube from "./components/YouTube.svelte";
|
10
|
-
export { Chord, CopyButton, DataTable, type DataTableRow, Editor, type EditorContentElement, FullscreenButton, ShareButton, YouTube, };
|
11
|
+
export { Chord, ContextMenu, CopyButton, DataTable, type DataTableRow, Editor, type EditorContentElement, FullscreenButton, ShareButton, YouTube, };
|
package/dist/index.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import Chord from "./components/Chord.svelte";
|
2
|
+
import ContextMenu from "./components/ContextMenu.svelte";
|
2
3
|
import CopyButton from "./components/CopyButton.svelte";
|
3
4
|
import DataTable from "./components/DataTable.svelte";
|
4
5
|
import Editor from "./components/Editor.svelte";
|
5
6
|
import FullscreenButton from "./components/FullscreenButton.svelte";
|
6
7
|
import ShareButton from "./components/ShareButton.svelte";
|
7
8
|
import YouTube from "./components/YouTube.svelte";
|
8
|
-
export { Chord, CopyButton, DataTable, Editor, FullscreenButton, ShareButton, YouTube, };
|
9
|
+
export { Chord, ContextMenu, CopyButton, DataTable, Editor, FullscreenButton, ShareButton, YouTube, };
|