Skip to content

Commit b0a808e

Browse files
committed
fix: 2.4.3 video player imports
1 parent 9504fb3 commit b0a808e

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
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.8.0"
1212
},
1313
"dependencies": {
14-
"@nuxtjs/cloudinary": "^2.4.2"
14+
"@nuxtjs/cloudinary": "^2.4.3"
1515
}
1616
}

.stackblitz/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,10 +1162,10 @@
11621162
vite-plugin-checker "^0.6.2"
11631163
vue-bundle-renderer "^2.0.0"
11641164

1165-
"@nuxtjs/cloudinary@^2.4.2":
1166-
version "2.4.2"
1167-
resolved "https://registry.yarnpkg.com/@nuxtjs/cloudinary/-/cloudinary-2.4.2.tgz#73c766d1e7538d6b79d4596ae17aacec7e4384f1"
1168-
integrity sha512-P02zyAMN9VazRSaZryXXoCpVmT4kJtVKprI5wJvdo2I100BizHAsy6QSAt50VXaEaft4K2hA2Mtb5xqtvkh8vA==
1165+
"@nuxtjs/cloudinary@^2.4.3":
1166+
version "2.4.3"
1167+
resolved "https://registry.yarnpkg.com/@nuxtjs/cloudinary/-/cloudinary-2.4.3.tgz#8adb778f6c1c8dd4d45d48ec1b5a0e1ceebafc2e"
1168+
integrity sha512-sBXYjEAaCjjrfMPZZjcQzZ5CqTyJF+LLDX3H3DuRwyMzi56Epmcu0RmVXHMKT6eFs0azBovLo0cq2KG6PbOQfQ==
11691169
dependencies:
11701170
"@cloudinary-util/url-loader" "^3.10.0"
11711171
"@nuxt/kit" "^3.5.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nuxtjs/cloudinary",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"description": "Cloudinary module for Nuxt",
55
"license": "MIT",
66
"type": "module",

src/runtime/components/CldVideoPlayer.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ref, Ref } from "vue";
2+
import { ref } from "vue";
33
import { useHead } from "@unhead/vue";
44
import { useRuntimeConfig } from "#imports";
55
import { parseUrl } from "@cloudinary-util/util";
@@ -61,10 +61,10 @@ export type CldVideoPlayerProps = Pick<
6161
onPause?: Function;
6262
onPlay?: Function;
6363
onEnded?: Function;
64-
playerRef?: Ref<CloudinaryVideoPlayer | null>;
64+
playerRef?: { value: CloudinaryVideoPlayer | null };
6565
src: string;
6666
version?: string;
67-
videoRef?: Ref<HTMLVideoElement | null>;
67+
videoRef?: { value: HTMLVideoElement | null };
6868
quality?: string | number;
6969
width: string | number;
7070
};
@@ -131,9 +131,9 @@ playerTransformations.unshift({
131131
});
132132
133133
const cloudinaryRef = ref<any>();
134-
const defaultVideoRef = ref() as Ref<HTMLVideoElement | null>;
134+
const defaultVideoRef = ref();
135135
const videoRef = props.videoRef || defaultVideoRef;
136-
const defaultPlayerRef = ref() as Ref<CloudinaryVideoPlayer | null>;
136+
const defaultPlayerRef = ref();
137137
const playerRef = props.playerRef || defaultPlayerRef;
138138
139139
const playerId = id || `player-${publicId.replace("/", "-")}-${idRef.value}`;

0 commit comments

Comments
 (0)