@clickview/curator 1.0.20-rc.2 → 1.0.20
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/package.json +47 -47
- package/dist/curator-app.css.map +0 -1
- package/dist/curator-app.js.map +0 -1
- package/dist/libs/shared/src/components/image-cropper/ImageCropper.d.ts +0 -10
- package/dist/libs/shared/src/context/ImageStorageContext.d.ts +0 -45
- package/dist/libs/shared/src/flight-requests/ImageRequests.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +0 -3
- package/dist/libs/shared/src/views/image-upload/ImageUploadView.d.ts +0 -8
- package/dist/projects/curator/src/apps/subjects/context/PresentationContext.d.ts +0 -6
- package/dist/projects/curator/src/apps/subjects/context/SubjectsAppContext.d.ts +0 -4
- package/dist/projects/curator/src/apps/subjects/context/index.d.ts +0 -2
- package/dist/projects/curator/src/apps/themes/flight-requests/ThemeRequests.d.ts +0 -11
- package/dist/projects/curator/src/apps/themes/interfaces/CreateOrUpdateThemeRequest.d.ts +0 -7
- package/dist/projects/curator/src/apps/themes/interfaces/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/constants/ViewModelKeys.d.ts +0 -3
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface ImageCropperProps {
|
|
3
|
-
dataUrl: string;
|
|
4
|
-
minHeight: number;
|
|
5
|
-
minWidth: number;
|
|
6
|
-
onCrop: (dataUrl: string) => void;
|
|
7
|
-
onCancel: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function ImageCropper(props: ImageCropperProps): React.ReactElement;
|
|
10
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Image } from "../interfaces";
|
|
3
|
-
/**
|
|
4
|
-
* This context is used for transferring image
|
|
5
|
-
* data between different areas of the application.
|
|
6
|
-
*
|
|
7
|
-
* It stores base64 image files that have been read
|
|
8
|
-
* in from ImageSelect component for the purpose of
|
|
9
|
-
* being cropped and uploaded in ImageUploadView.
|
|
10
|
-
*
|
|
11
|
-
* Image objects uploaded in ImageUploadView can then be
|
|
12
|
-
* stored in the context for use in the component
|
|
13
|
-
* that initially requested the upload.
|
|
14
|
-
*/
|
|
15
|
-
interface IImageStorageContext {
|
|
16
|
-
/**
|
|
17
|
-
* Retrieve the stored base64 dataUrl. This will
|
|
18
|
-
* reset the stored value after it is read.
|
|
19
|
-
*/
|
|
20
|
-
getDataUrl: () => string;
|
|
21
|
-
/**
|
|
22
|
-
* Set the stored dataUrl.
|
|
23
|
-
*/
|
|
24
|
-
setDataUrl: (dataUrl: string) => void;
|
|
25
|
-
/**
|
|
26
|
-
* Retrieve the stored image object. This will
|
|
27
|
-
* reset the stored image object.
|
|
28
|
-
*/
|
|
29
|
-
getImage: () => Image;
|
|
30
|
-
/**
|
|
31
|
-
* Store an image after it has been successfully
|
|
32
|
-
* uploaded.
|
|
33
|
-
*/
|
|
34
|
-
setImage: (image: Image) => void;
|
|
35
|
-
/**
|
|
36
|
-
* Flag to notify anything using this context
|
|
37
|
-
* that an image has been uploaded.
|
|
38
|
-
*/
|
|
39
|
-
imageUploaded: boolean;
|
|
40
|
-
}
|
|
41
|
-
export declare const ImageStorageContext: React.Context<IImageStorageContext>;
|
|
42
|
-
export declare const ImageStorageContextProvider: ({ children }: {
|
|
43
|
-
children?: React.ReactNode;
|
|
44
|
-
}) => JSX.Element;
|
|
45
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Flight } from "../../../common/src/react";
|
|
2
|
-
import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
|
|
3
|
-
import { HashObject } from "../../../common/src/react/interfaces";
|
|
4
|
-
import { ImageType } from "../enums/Images";
|
|
5
|
-
export declare const ImageRequests: {
|
|
6
|
-
uploadBase64Image(dataUrl: string, type: ImageType, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
7
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PopupViewProps } from "../../interfaces";
|
|
3
|
-
import { ImageType } from "../../enums/Images";
|
|
4
|
-
interface ImageUploadViewProps extends PopupViewProps {
|
|
5
|
-
imageType: ImageType;
|
|
6
|
-
}
|
|
7
|
-
export declare function ImageUploadView(props: ImageUploadViewProps): React.ReactElement;
|
|
8
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Presentation } from "../interfaces";
|
|
3
|
-
declare type IPresentationContent = [Presentation, React.Dispatch<React.SetStateAction<Presentation>>];
|
|
4
|
-
export declare const PresentationContext: React.Context<IPresentationContent>;
|
|
5
|
-
export declare function PresentationContextProvider({ children }: React.PropsWithChildren<{}>): React.ReactElement;
|
|
6
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const SubjectsAppContextProvider: ({ children }: {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Flight } from "../../../../../../libs/common/src/react";
|
|
2
|
-
import { HashObject } from "../../../../../../libs/common/src/react/interfaces/HashObject";
|
|
3
|
-
import { Xhr } from "../../../../../../libs/common/src/backbone/interfaces";
|
|
4
|
-
import { CreateOrUpdateThemeRequest } from "../interfaces";
|
|
5
|
-
export declare const ThemeRequests: {
|
|
6
|
-
theme(id: string): Flight.Request;
|
|
7
|
-
themes(type?: string): Flight.Request;
|
|
8
|
-
createTheme(data: CreateOrUpdateThemeRequest, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
9
|
-
updateTheme(id: string, data: CreateOrUpdateThemeRequest, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
10
|
-
deleteTheme(id: string, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './CreateOrUpdateThemeRequest';
|