Skip to content

Commit 74003d3

Browse files
authored
Merge pull request #219 from nuxt-modules/chore/3.0.0-rc.2
Chore/3.0.0 rc.2
2 parents b3f1fe2 + 30c5a67 commit 74003d3

File tree

13 files changed

+3947
-1357
lines changed

13 files changed

+3947
-1357
lines changed

.stackblitz/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"nuxt": "^3.11.2"
1212
},
1313
"dependencies": {
14-
"@nuxtjs/cloudinary": "^3.0.0-rc.1"
14+
"@nuxtjs/cloudinary": "^3.0.0-rc.3"
1515
}
1616
}

.stackblitz/yarn.lock

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -574,19 +574,25 @@
574574
resolved "https://registry.yarnpkg.com/@cloudinary-util/types/-/types-1.0.2.tgz#3ebc14f01f3c113183ad47cc5a9c69e65d06f762"
575575
integrity sha512-j3xUfN4uMFDMSvoQeOMxqKYsGZovlRFr8niOQXfcqoHp7NVBiJm8oy6y2HDGQhxH63irmFt8VtzJEnYwGYsGXg==
576576

577-
"@cloudinary-util/url-loader@^5.2.2":
578-
version "5.2.2"
579-
resolved "https://registry.yarnpkg.com/@cloudinary-util/url-loader/-/url-loader-5.2.2.tgz#c22fdb13b738af820d9c363cf576feeaffc26c4f"
580-
integrity sha512-gwoBuyoJBriUvmX3jk6Q1k5NdziloEhIp/4InLB6yBNe88K7bVbR/V8dJRhba0ZvlYDOOPjIiJLAa5J7xAnUlw==
577+
"@cloudinary-util/types@1.0.5":
578+
version "1.0.5"
579+
resolved "https://registry.yarnpkg.com/@cloudinary-util/types/-/types-1.0.5.tgz#0325881338b3c390b4ad27f5484e95cdb0c4f9b7"
580+
integrity sha512-QySi6Q138yg/qrD7f6yscH9T+/8VwUfF9AiwFPMS89uI5wnSG9nhC+93a/8iUpgk9ujTDVqE8+TqYAbxvF0BMA==
581+
582+
"@cloudinary-util/url-loader@^5.3.1":
583+
version "5.3.1"
584+
resolved "https://registry.yarnpkg.com/@cloudinary-util/url-loader/-/url-loader-5.3.1.tgz#2898ea4f75a968a5857046d54bd589f228d04848"
585+
integrity sha512-cYgnazu7cLjRaajGmhyVfMxjrOz4EaSQsWK1/utV4K5kknUUhu8vUovGunDQJbEGmBWB/TUt7zmwpdUAQ+pe4g==
581586
dependencies:
582-
"@cloudinary-util/util" "3.0.0"
587+
"@cloudinary-util/types" "1.0.5"
588+
"@cloudinary-util/util" "3.0.2"
583589
"@cloudinary/url-gen" "1.15.0"
584590
zod "^3.22.4"
585591

586-
"@cloudinary-util/util@3.0.0":
587-
version "3.0.0"
588-
resolved "https://registry.yarnpkg.com/@cloudinary-util/util/-/util-3.0.0.tgz#4096e0190108b2680c0027bf9afaeca039cea6cc"
589-
integrity sha512-o6cJsN49OIelLcSkqUf4WzgefpePDFsAaeQfJbpcKhVdtvmWv71K0oZwMXuX62IY1OolqIg0etMiHtWZPhvPNA==
592+
"@cloudinary-util/util@3.0.2":
593+
version "3.0.2"
594+
resolved "https://registry.yarnpkg.com/@cloudinary-util/util/-/util-3.0.2.tgz#a86334eeec9912cf90054f5688a7d10fca9fe952"
595+
integrity sha512-EMmspJLVFn9hX92DaK/yuSzSUXF/BJ88crzN8vT1qCaJMMWKapGNo2HZ6YNgG69PP/Jngdk0mTINDU+GP3A1CA==
590596

591597
"@cloudinary/transformation-builder-sdk@^1.10.0":
592598
version "1.12.0"
@@ -1163,13 +1169,13 @@
11631169
vite-plugin-checker "^0.6.4"
11641170
vue-bundle-renderer "^2.0.0"
11651171

1166-
"@nuxtjs/cloudinary@^3.0.0-rc.1":
1167-
version "3.0.0-rc.1"
1168-
resolved "https://registry.yarnpkg.com/@nuxtjs/cloudinary/-/cloudinary-3.0.0-rc.1.tgz#2e6ff256fde72c517724345474cb5d024605bcd6"
1169-
integrity sha512-X/Dd2pjhaRHH+VaOBQZ1X1YQTbp5qg38GplvLiXvCkuml8BQ5j9y1LTRhAakRsZavV5FRvS2aNYCu6CHxR/p3Q==
1172+
"@nuxtjs/cloudinary@^3.0.0-rc.3":
1173+
version "3.0.0-rc.3"
1174+
resolved "https://registry.yarnpkg.com/@nuxtjs/cloudinary/-/cloudinary-3.0.0-rc.3.tgz#360bd36f96630d79fe80dde35b923401c1e80046"
1175+
integrity sha512-ZkiMwb8dpFLf9aYEtBZlqjpabw3mrlb2SaJ/8blzMHMgxCz9/ExEjV1IJ70qkNJ2LkeUJdebt+uBE1PL51yObg==
11701176
dependencies:
11711177
"@cloudinary-util/types" "1.0.2"
1172-
"@cloudinary-util/url-loader" "^5.2.2"
1178+
"@cloudinary-util/url-loader" "^5.3.1"
11731179
"@nuxt/kit" "^3.11.2"
11741180
"@unpic/vue" "^0.0.48"
11751181
defu "^6.1.4"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<script setup lang="ts">
2+
const chapters = {
3+
0: 'Chapter 1',
4+
6: 'Chapter 2',
5+
9: 'Chapter 3',
6+
}
7+
</script>
8+
9+
<template>
10+
<CldVideoPlayer
11+
width="1620"
12+
height="1080"
13+
src="videos/dog-running-snow"
14+
:config="{ url: { cname: 'test' } }"
15+
chapters-button
16+
:chapters="chapters"
17+
/>
18+
</template>

docs/content/2.components/CldOgImage.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,21 @@ The resulting HTML will be applied to the Head of the document:
2727
<meta content="https://res.cloudinary.com/nuxt-cloudinary/image/upload/c_fill,w_2400,h_1254,g_center/c_scale,w_1200/f_jpg/q_auto/cld-sample-2?_a=BBDAACAD0" property="og:image:secure_url">
2828
<meta content="1200" property="og:image:width">
2929
<meta content="627" property="og:image:height">
30-
<meta content=" " property="twitter:title" />
30+
<meta content="My awesome Twitter Title" property="twitter:title" />
3131
<meta content="summary_large_image" property="twitter:card">
3232
<meta content="https://res.cloudinary.com/nuxt-cloudinary/image/upload/c_fill,w_2400,h_1254,g_center/c_scale,w_1200/f_webp/q_auto/cld-sample-2?_a=BBDAACAD0" property="twitter:image">
3333
```
3434

35+
Keep in mind that if you want to render an OG image in Twitter, you need to:
36+
37+
1. Have a `currentRoute.meta?.title` set to some value
38+
2. Pass a prop to the component like following:
39+
40+
```html
41+
<CldOgImage
42+
src="cld-sample-2"
43+
twitter-title="My Awesome Twitter Title"
44+
/>
45+
```
46+
3547
You can further take advantage of Cloudinary features like background removal and overlays by adding additional props. The CldOgImage component uses the same API as [CldImage](/components/cldimage/usage), meaning you can use the same transformations and effects.

docs/content/2.components/CldVideoPlayer.md

Lines changed: 54 additions & 26 deletions
Large diffs are not rendered by default.

docs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"devDependencies": {
1111
"@iconify-json/ph": "^1.1.10",
1212
"@iconify-json/simple-icons": "^1.1.87",
13-
"@nuxt/content": "^2.10.0",
13+
"@nuxt/content": "^2.12.1",
1414
"@nuxt/devtools": "1.0.5",
15-
"@nuxt/ui-pro": "^0.6.1",
16-
"nuxt": "^3.9.3",
17-
"typescript": "^5.3.3"
15+
"@nuxt/ui-pro": "^1.2.0",
16+
"nuxt": "^3.12.1",
17+
"typescript": "^5.4.5"
1818
},
1919
"dependencies": {
20-
"@nuxtjs/cloudinary": "^3.0.0-rc.1"
20+
"@nuxtjs/cloudinary": "^3.0.0-rc.3"
2121
}
2222
}

0 commit comments

Comments
 (0)