Skip to content

Commit 0359711

Browse files
committed
fix: patch update, fix ts import not recognized
1 parent 2d58ca0 commit 0359711

File tree

5 files changed

+32
-17
lines changed

5 files changed

+32
-17
lines changed

svelte-cloudinary/src/index.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

svelte-cloudinary/src/lib/components/CldImage.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { CldImageProps } from '../CldImageProps.ts'
2+
import type { CldImageProps } from './CldImageTypes.ts'
33
// This unused import is a hack to get around a bug in svelte2tsx
44
import type { UrlTransformer, ImageCdn } from "unpic";
55
import type { ImageOptions } from '@cloudinary-util/url-loader';

svelte-cloudinary/src/lib/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Reexport your entry components here
22
import CldImage from './components/CldImage.svelte'
33
export { CldImage }
4-
export type { CldImageProps } from "./types.ts";
4+
export type { CldImageProps } from "./components/CldImageTypes.ts";
55

66
import CldOgImage from './components/CldOgImage.svelte'
77
export { CldOgImage }
@@ -12,11 +12,11 @@ export { CldUploadWidget}
1212
import CldUploadButton from './components/CldUploadButton.svelte'
1313
export { CldUploadButton}
1414

15-
export { getCldImageUrl } from '$lib/helpers/getCldImageUrl.ts';
15+
export { getCldImageUrl } from '$lib/helpers/getCldImageUrl.js';
1616
export type { GetCldImageUrl, GetCldImageUrlOptions, GetCldImageUrlConfig, GetCldImageUrlAnalytics } from '$lib/helpers/getCldImageUrl.ts';
1717

18-
export { getCldOgImageUrl } from '$lib/helpers/getCldOgImageUrl.ts';
18+
export { getCldOgImageUrl } from '$lib/helpers/getCldOgImageUrl.js';
1919
export type { GetCldOgImageUrl } from '$lib/helpers/getCldOgImageUrl.ts';
2020

21-
export type { CloudinaryVideoPlayer, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo } from './types/player.ts';
21+
export type { CloudinaryVideoPlayer, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo } from '../types/player.ts';
2222

svelte-cloudinary/src/routes/+page.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
</script>
44

55
<CldImage
6-
width="1200"
7-
height="1200"
6+
width={1200}
7+
height={1200}
88
src="images/woman-headphones"
99
crop="thumb"
1010
removeBackground
@@ -20,7 +20,6 @@
2020
src="images/woman-headphones"
2121
sizes="50vw"
2222
crop="thumb"
23-
layout="constrained"
2423
tint="40:253f8c"
2524
gravity="faces"
2625
underlay="images/city-skyline"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
export interface CloudinaryVideoPlayer {
2+
on: Function;
3+
}
4+
export interface CloudinaryVideoPlayerOptions {
5+
autoplayMode?: string;
6+
cloud_name?: string;
7+
colors?: CloudinaryVideoPlayerOptionsColors;
8+
controls?: boolean;
9+
fontFace?: string;
10+
loop?: boolean;
11+
muted?: boolean;
12+
publicId: string;
13+
secure?: boolean;
14+
transformation?: Array<object> | object;
15+
}
16+
export interface CloudinaryVideoPlayerOptionsColors {
17+
accent?: string;
18+
base?: string;
19+
text?: string;
20+
}
21+
export interface CloudinaryVideoPlayerOptionsLogo {
22+
logoImageUrl?: string;
23+
logoOnclickUrl?: string;
24+
showLogo?: boolean;
25+
}

0 commit comments

Comments
 (0)