Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/3.0.0 #198

Closed
wants to merge 12 commits into from
2 changes: 1 addition & 1 deletion docs/content/1.getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CLOUDINARY_CLOUD_NAME=<YOUR_CLOUDINARY_CLOUD_NAME>
```

::callout{icon="i-heroicons-check-circle"}
And that's it! You can now use Clodinary in Nuxt ✨
And that's it! You can now use Cloudinary in Nuxt ✨
::

```vue
Expand Down
2 changes: 1 addition & 1 deletion docs/content/2.components/CldImage/1.usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description:
---


The CldImage component provides an easy way to deliver images from Cloudinary with the same experience you'd expect inside of a Nuxt app. With it comes access to more advanced features like dynamic cropping, background removal, overlays, and other Cloudinary transformations.
The CldImage component provides an easy way to deliver images from Cloudinary with the same experience you'd expect inside of a Nuxt app. With it comes access to more advanced features like dynamic cropping, background removal, overlays, and other Cloudinary transformations. It will inherit all global configuration via the `config` property.

Under the hood, this CldImage uses [Unpic](https://unpic.pics/) for delivering optimized images. Check out the documentation of Unpic for all available props and options like priority, loading, sizes, and more!

Expand Down
7 changes: 5 additions & 2 deletions docs/content/2.components/CldImage/2.configuration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
description:
description:
---

The CldImage component provides a wide range of options for being able to easily optimize and transform images.
Expand Down Expand Up @@ -27,10 +27,13 @@ The CldImage component exposes many of Cloudinary's transformations in an easy-t

| Prop | Type | Default | Example | More |
| --------------------- | ----------------------- | --------- | ----------------------- | ------------------------------------------------------------------------------------------ |
| angle | number | `-` | `45` | [Link](https://cloudinary.com/documentation/transformation_reference#a_angle) |
| crop | string | `"limit"` | `"thumb"` | [Link](https://cloudinary.com/documentation/transformation_reference#c_crop_resize) |
| background | string | `-` | `"blue"` | [Link](https://cloudinary.com/documentation/transformation_reference#b_background) |
| fillBackground (Beta) | `boolean/object` | `-` | `{{ gravity: 'east' }}` | [Link](https://cloudinary.com/documentation/transformation_reference#b_gen_fill) |
| enhance | boolean | `-` | `{{ gravity: 'east' }}` | [Link](https://cloudinary.com/documentation/transformation_reference#b_gen_fill) |
| fillBackground (Beta) | `boolean/object` | `-` | `true` | [Link](https://cloudinary.com/documentation/transformation_reference#e_enhance) |
| gravity | string | `auto` | `"faces"` | [Link](https://cloudinary.com/documentation/transformation_reference#g_gravity) |
| loop | `boolean/number` | `-` | `true` | [Link](https://cloudinary.com/documentation/transformation_reference#e_loop) |
| recolor | `array/object` | `-` | `['duck', 'blue']` | [Link](https://cloudinary.com/documentation/transformation_reference#e_gen_recolor) |
| remove | `string/array/object` | `-` | `apple` | [Link](https://cloudinary.com/documentation/transformation_reference#e_gen_remove) |
| removeBackground | `boolean/string` | `false` | `true` | [Link](https://cloudinary.com/documentation/transformation_reference#e_background_removal) |
Expand Down
2 changes: 1 addition & 1 deletion docs/content/2.components/CldVideoPlayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description:

## The usage

The CldVideoPlayer component helps to embed Cloudinary videos using the [Cloudinary Video Player](https://cloudinary.com/documentation/cloudinary_video_player) giving you a full customizable experience for your player.
The CldVideoPlayer component helps to embed Cloudinary videos using the [Cloudinary Video Player](https://cloudinary.com/documentation/cloudinary_video_player) giving you a full customizable experience for your player. It will inherit all global configuration via the `config` property.

## Basic Usage

Expand Down
3 changes: 1 addition & 2 deletions src/runtime/components/CldVideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ref } from "vue";
import { useHead } from "@unhead/vue";
import { useRuntimeConfig } from "#imports";
import { parseUrl } from "@cloudinary-util/util";
import { ConfigOptions } from "@cloudinary-util/url-loader";
import type { ConfigOptions } from "@cloudinary-util/url-loader";

export interface CloudinaryVideoPlayer {
on: Function;
Expand All @@ -21,7 +21,6 @@ export interface CloudinaryVideoPlayerOptions {
secure?: boolean;
transformation?: Array<object> | object;
hideContextMenu?: boolean;
config?: ConfigOptions;
pictureInPictureToggle?: boolean;
}

Expand Down
3 changes: 2 additions & 1 deletion src/runtime/composables/useCldImageUrl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useRuntimeConfig } from '#imports'
import { constructCloudinaryUrl, ConstructUrlProps } from '@cloudinary-util/url-loader'
import { constructCloudinaryUrl } from '@cloudinary-util/url-loader'
import type { ConstructUrlProps } from '@cloudinary-util/url-loader'
import nuxtPkg from 'nuxt/package.json';
import pkg from '../../../package.json'

Expand Down
3 changes: 2 additions & 1 deletion src/runtime/composables/useCldVideoUrl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useRuntimeConfig } from '#imports'
import { constructCloudinaryUrl, ConstructUrlProps, ConfigOptions, AnalyticsOptions, VideoOptions } from '@cloudinary-util/url-loader'
import { constructCloudinaryUrl } from '@cloudinary-util/url-loader'
import type { ConstructUrlProps, ConfigOptions, AnalyticsOptions, VideoOptions } from '@cloudinary-util/url-loader'
import nuxtPkg from 'nuxt/package.json';
import pkg from '../../../package.json'

Expand Down
Loading