@pksep/yui 0.1.322 → 0.1.324
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/extentions.d.ts +2 -0
- package/dist/components/Slider/helpers/media-type.d.ts +4 -0
- package/dist/components/Slider/interface/interface.d.ts +5 -0
- package/dist/helpers/file/cache-pdf.d.ts +2 -0
- package/dist/helpers/file/download-file.d.ts +1 -1
- package/dist/sep-yui.mjs +15926 -15940
- package/dist/sep-yui.umd.cjs +304 -304
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SliderMediaType } from '../interface/interface';
|
|
2
|
+
|
|
3
|
+
export declare const isSliderImage: (path: string | null | undefined, mediaType?: SliderMediaType) => boolean;
|
|
4
|
+
export declare const isSliderVideo: (path: string | null | undefined, mediaType?: SliderMediaType) => boolean;
|
|
@@ -6,17 +6,22 @@ export type SliderPathError = {
|
|
|
6
6
|
message?: string;
|
|
7
7
|
};
|
|
8
8
|
export type SliderPath = string | SliderPathError;
|
|
9
|
+
export type SliderMediaType = 'image' | 'video';
|
|
9
10
|
export type SliderItem = {
|
|
10
11
|
path: SliderPath;
|
|
11
12
|
fallbackPath?: string;
|
|
12
13
|
name?: string;
|
|
13
14
|
file?: File;
|
|
15
|
+
downloadPath?: string;
|
|
16
|
+
mediaType?: SliderMediaType;
|
|
14
17
|
};
|
|
15
18
|
export type IFile = {
|
|
16
19
|
path: string;
|
|
17
20
|
fallbackPath?: string;
|
|
18
21
|
name?: string;
|
|
19
22
|
file?: File;
|
|
23
|
+
downloadPath?: string;
|
|
24
|
+
mediaType?: SliderMediaType;
|
|
20
25
|
};
|
|
21
26
|
export interface ISliderProps extends IDataTestIdProp {
|
|
22
27
|
items: SliderItem[];
|
|
@@ -3,6 +3,7 @@ import { PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist';
|
|
|
3
3
|
declare class CachePdf {
|
|
4
4
|
private cache;
|
|
5
5
|
private cachePage;
|
|
6
|
+
private pending;
|
|
6
7
|
/**
|
|
7
8
|
* Записывает в кэш загруженные документ pdf файла
|
|
8
9
|
* @param key
|
|
@@ -15,6 +16,7 @@ declare class CachePdf {
|
|
|
15
16
|
* @returns
|
|
16
17
|
*/
|
|
17
18
|
getCache(key: string): PDFDocumentProxy | undefined;
|
|
19
|
+
getOrLoad(key: string, load: () => Promise<PDFDocumentProxy>): Promise<PDFDocumentProxy>;
|
|
18
20
|
/**
|
|
19
21
|
* Записывает в кэш страницу
|
|
20
22
|
* @param key
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const downloadFile: (path: string, name?: string, file?: File) => Promise<void>;
|
|
1
|
+
declare const downloadFile: (path: string, name?: string, file?: File, downloadPath?: string) => Promise<void>;
|
|
2
2
|
export default downloadFile;
|