Skip to content

Commit

Permalink
fix: 2.4.3 video player imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Nov 20, 2023
1 parent 9504fb3 commit b0a808e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .stackblitz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"nuxt": "^3.8.0"
},
"dependencies": {
"@nuxtjs/cloudinary": "^2.4.2"
"@nuxtjs/cloudinary": "^2.4.3"
}
}
8 changes: 4 additions & 4 deletions .stackblitz/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1162,10 +1162,10 @@
vite-plugin-checker "^0.6.2"
vue-bundle-renderer "^2.0.0"

"@nuxtjs/cloudinary@^2.4.2":
version "2.4.2"
resolved "https://registry.yarnpkg.com/@nuxtjs/cloudinary/-/cloudinary-2.4.2.tgz#73c766d1e7538d6b79d4596ae17aacec7e4384f1"
integrity sha512-P02zyAMN9VazRSaZryXXoCpVmT4kJtVKprI5wJvdo2I100BizHAsy6QSAt50VXaEaft4K2hA2Mtb5xqtvkh8vA==
"@nuxtjs/cloudinary@^2.4.3":
version "2.4.3"
resolved "https://registry.yarnpkg.com/@nuxtjs/cloudinary/-/cloudinary-2.4.3.tgz#8adb778f6c1c8dd4d45d48ec1b5a0e1ceebafc2e"
integrity sha512-sBXYjEAaCjjrfMPZZjcQzZ5CqTyJF+LLDX3H3DuRwyMzi56Epmcu0RmVXHMKT6eFs0azBovLo0cq2KG6PbOQfQ==
dependencies:
"@cloudinary-util/url-loader" "^3.10.0"
"@nuxt/kit" "^3.5.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nuxtjs/cloudinary",
"version": "2.4.2",
"version": "2.4.3",
"description": "Cloudinary module for Nuxt",
"license": "MIT",
"type": "module",
Expand Down
10 changes: 5 additions & 5 deletions src/runtime/components/CldVideoPlayer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, Ref } from "vue";
import { ref } from "vue";
import { useHead } from "@unhead/vue";
import { useRuntimeConfig } from "#imports";
import { parseUrl } from "@cloudinary-util/util";
Expand Down Expand Up @@ -61,10 +61,10 @@ export type CldVideoPlayerProps = Pick<
onPause?: Function;
onPlay?: Function;
onEnded?: Function;
playerRef?: Ref<CloudinaryVideoPlayer | null>;
playerRef?: { value: CloudinaryVideoPlayer | null };
src: string;
version?: string;
videoRef?: Ref<HTMLVideoElement | null>;
videoRef?: { value: HTMLVideoElement | null };
quality?: string | number;
width: string | number;
};
Expand Down Expand Up @@ -131,9 +131,9 @@ playerTransformations.unshift({
});
const cloudinaryRef = ref<any>();
const defaultVideoRef = ref() as Ref<HTMLVideoElement | null>;
const defaultVideoRef = ref();
const videoRef = props.videoRef || defaultVideoRef;
const defaultPlayerRef = ref() as Ref<CloudinaryVideoPlayer | null>;
const defaultPlayerRef = ref();
const playerRef = props.playerRef || defaultPlayerRef;
const playerId = id || `player-${publicId.replace("/", "-")}-${idRef.value}`;
Expand Down

0 comments on commit b0a808e

Please sign in to comment.