drab 3.0.2 → 3.0.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.
@@ -1,11 +1,11 @@
1
- <!--
2
- @component
3
-
4
- ### YouTube
5
-
6
- Embeds a YouTube video `iframe` into a website with the video `uid`, using [www.youtube-nocookie.com](https://support.google.com/youtube/answer/171780?hl=en#zippy=%2Cturn-on-privacy-enhanced-mode).
7
-
8
- @props
1
+ <!--
2
+ @component
3
+
4
+ ### YouTube
5
+
6
+ Embeds a YouTube video `iframe` into a website with the video `uid`, using [www.youtube-nocookie.com](https://support.google.com/youtube/answer/171780?hl=en#zippy=%2Cturn-on-privacy-enhanced-mode).
7
+
8
+ @props
9
9
 
10
10
  - `autoplay` - auto-plays the video
11
11
  - `class`
@@ -14,21 +14,21 @@ Embeds a YouTube video `iframe` into a website with the video `uid`, using [www.
14
14
  - `title`
15
15
  - `uid` - unique YouTube id
16
16
 
17
- @example
17
+ @example
18
18
 
19
19
  ```svelte
20
- <script lang="ts">
21
- import { YouTube } from "drab";
22
- </script>
23
-
24
- <YouTube
25
- class="aspect-video w-full rounded"
26
- title="Renegade - Kevin Olusola"
27
- uid="gouiY85kD2o"
28
- />
20
+ <script lang="ts">
21
+ import { YouTube } from "drab";
22
+ </script>
23
+
24
+ <YouTube
25
+ class="aspect-video w-full rounded"
26
+ title="Renegade - Kevin Olusola"
27
+ uid="gouiY85kD2o"
28
+ />
29
29
  ```
30
- -->
31
-
30
+ -->
31
+
32
32
  <script>let className = "";
33
33
  export { className as class };
34
34
  export let id = "";
@@ -36,16 +36,16 @@ export let uid;
36
36
  export let title = "";
37
37
  export let autoplay = false;
38
38
  export let start = 0;
39
- </script>
40
-
41
- <iframe
42
- class={className}
43
- {id}
44
- src="https://www.youtube-nocookie.com/embed/{uid}?start={start}{autoplay
45
- ? '&autoplay=1'
46
- : ''}"
47
- {title}
48
- frameborder="0"
49
- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
50
- allowfullscreen
51
- />
39
+ </script>
40
+
41
+ <iframe
42
+ class={className}
43
+ {id}
44
+ src="https://www.youtube-nocookie.com/embed/{uid}?start={start}{autoplay
45
+ ? '&autoplay=1'
46
+ : ''}"
47
+ {title}
48
+ frameborder="0"
49
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
50
+ allowfullscreen
51
+ />
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "drab",
3
- "version": "3.0.2",
4
- "description": "An Unstyled Svelte Component Library",
5
- "keywords": [
6
- "components",
7
- "Svelte",
8
- "SvelteKit",
9
- "Breakpoint",
10
- "ContextMenu",
11
- "Copy",
12
- "DataTable",
13
- "Details",
14
- "Editor",
15
- "FrettedChord",
16
- "Fullscreen",
17
- "Popover",
18
- "Share",
19
- "Sheet",
20
- "YouTube"
21
- ],
22
- "homepage": "https://drab.robino.dev",
23
- "license": "MIT",
24
- "author": {
25
- "name": "Ross Robino",
26
- "url": "https://robino.dev"
27
- },
28
- "repository": "github:rossrobino/drab",
29
- "scripts": {
30
- "dev": "vite dev",
31
- "build": "vite build && npm run package",
32
- "preview": "vite preview",
33
- "package": "svelte-kit sync && svelte-package && publint",
34
- "prepublishOnly": "npm run package",
35
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
36
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
37
- "lint": "prettier --check . && eslint .",
38
- "format": "prettier --write . --plugin=prettier-plugin-svelte --plugin=prettier-plugin-tailwindcss",
39
- "pub": "npm publish --access public",
40
- "doc": "node src/scripts/documentProps.js && node src/scripts/documentExamples.js && node src/scripts/copyReadMe.js"
41
- },
42
- "exports": {
43
- ".": {
44
- "types": "./dist/index.d.ts",
45
- "svelte": "./dist/index.js"
46
- }
47
- },
48
- "files": [
49
- "dist"
50
- ],
51
- "dependencies": {
52
- "svelte": "^4.2.0"
53
- },
54
- "devDependencies": {
55
- "@sveltejs/adapter-vercel": "^3.0.3",
56
- "@sveltejs/kit": "^1.22.6",
57
- "@sveltejs/package": "^2.2.1",
58
- "@tailwindcss/typography": "^0.5.9",
59
- "@types/node": "^20.5.3",
60
- "@typescript-eslint/eslint-plugin": "^6.4.1",
61
- "@typescript-eslint/parser": "^6.4.1",
62
- "autoprefixer": "^10.4.15",
63
- "eslint": "^8.47.0",
64
- "eslint-config-prettier": "^9.0.0",
65
- "eslint-plugin-svelte": "^2.33.0",
66
- "marked": "^7.0.4",
67
- "postcss": "^8.4.28",
68
- "prettier": "^3.0.2",
69
- "prettier-plugin-svelte": "^3.0.3",
70
- "prettier-plugin-tailwindcss": "^0.5.3",
71
- "publint": "^0.2.2",
72
- "svelte-check": "^3.5.0",
73
- "tailwindcss": "^3.3.3",
74
- "tslib": "^2.6.2",
75
- "typescript": "^5.1.6",
76
- "vite": "^4.4.9"
77
- },
78
- "svelte": "./dist/index.js",
79
- "types": "./dist/index.d.ts",
80
- "type": "module"
81
- }
1
+ {
2
+ "name": "drab",
3
+ "version": "3.0.3",
4
+ "description": "An Unstyled Svelte Component Library",
5
+ "keywords": [
6
+ "components",
7
+ "Svelte",
8
+ "SvelteKit",
9
+ "Breakpoint",
10
+ "ContextMenu",
11
+ "Copy",
12
+ "DataTable",
13
+ "Details",
14
+ "Editor",
15
+ "FrettedChord",
16
+ "Fullscreen",
17
+ "Popover",
18
+ "Share",
19
+ "Sheet",
20
+ "YouTube"
21
+ ],
22
+ "homepage": "https://drab.robino.dev",
23
+ "license": "MIT",
24
+ "author": {
25
+ "name": "Ross Robino",
26
+ "url": "https://robino.dev"
27
+ },
28
+ "repository": "github:rossrobino/drab",
29
+ "scripts": {
30
+ "dev": "vite dev",
31
+ "build": "vite build && npm run package",
32
+ "preview": "vite preview",
33
+ "package": "svelte-kit sync && svelte-package && publint",
34
+ "prepublishOnly": "npm run package",
35
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
36
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
37
+ "lint": "prettier --check . && eslint .",
38
+ "format": "prettier --write . --plugin=prettier-plugin-svelte --plugin=prettier-plugin-tailwindcss",
39
+ "pub": "npm publish --access public",
40
+ "doc": "node src/scripts/documentProps.js && node src/scripts/documentExamples.js && node src/scripts/copyReadMe.js"
41
+ },
42
+ "exports": {
43
+ ".": {
44
+ "types": "./dist/index.d.ts",
45
+ "svelte": "./dist/index.js"
46
+ }
47
+ },
48
+ "files": [
49
+ "dist"
50
+ ],
51
+ "dependencies": {
52
+ "svelte": "^4.2.0"
53
+ },
54
+ "devDependencies": {
55
+ "@sveltejs/adapter-vercel": "^3.0.3",
56
+ "@sveltejs/kit": "^1.22.6",
57
+ "@sveltejs/package": "^2.2.1",
58
+ "@tailwindcss/typography": "^0.5.9",
59
+ "@types/node": "^20.5.3",
60
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
61
+ "@typescript-eslint/parser": "^6.4.1",
62
+ "autoprefixer": "^10.4.15",
63
+ "eslint": "^8.47.0",
64
+ "eslint-config-prettier": "^9.0.0",
65
+ "eslint-plugin-svelte": "^2.33.0",
66
+ "marked": "^7.0.4",
67
+ "postcss": "^8.4.28",
68
+ "prettier": "^3.0.2",
69
+ "prettier-plugin-svelte": "^3.0.3",
70
+ "prettier-plugin-tailwindcss": "^0.5.3",
71
+ "publint": "^0.2.2",
72
+ "svelte-check": "^3.5.0",
73
+ "tailwindcss": "^3.3.3",
74
+ "tslib": "^2.6.2",
75
+ "typescript": "^5.1.6",
76
+ "vite": "^4.4.9"
77
+ },
78
+ "svelte": "./dist/index.js",
79
+ "types": "./dist/index.d.ts",
80
+ "type": "module"
81
+ }