@clickview/curator 1.0.23-rc.0 → 1.0.24-dev.0

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.
Files changed (105) hide show
  1. package/.eslintrc.json +3 -0
  2. package/dist/curator-app.css +1 -1
  3. package/dist/curator-app.js +3 -3
  4. package/dist/en.json +1 -1
  5. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +8 -3
  6. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
  7. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +1 -1
  8. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
  9. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
  10. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
  11. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
  12. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
  13. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
  14. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
  15. package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
  16. package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
  17. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
  18. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
  19. package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
  20. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
  21. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
  22. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
  23. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
  24. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
  25. package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
  26. package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
  27. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
  28. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
  29. package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +9 -0
  30. package/dist/libs/shared/src/components/confirmation-popup/ConfirmationPopup.d.ts +5 -2
  31. package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
  32. package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
  33. package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
  34. package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
  35. package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
  36. package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
  37. package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +24 -0
  38. package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +6 -2
  39. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  40. package/dist/{projects/curator/src/shared → libs/shared/src}/context/ImageStorageContext.d.ts +1 -1
  41. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
  42. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
  43. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
  44. package/dist/libs/shared/src/enums/UserGroup.d.ts +5 -0
  45. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  46. package/dist/libs/shared/src/flight-requests/ImageRequests.d.ts +7 -0
  47. package/dist/{projects/curator/src/shared → libs/shared/src}/flight-requests/RatingRequests.d.ts +1 -1
  48. package/dist/libs/shared/src/flight-requests/ThemeRequests.d.ts +2 -0
  49. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +3 -1
  50. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  51. package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
  52. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
  53. package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
  54. package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
  55. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
  56. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
  57. package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
  58. package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
  59. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
  60. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
  61. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
  62. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
  63. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
  64. package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
  65. package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
  66. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
  67. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
  68. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
  69. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
  70. package/dist/libs/shared/src/interfaces/requests/index.d.ts +4 -0
  71. package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
  72. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
  73. package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
  74. package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
  75. package/dist/{projects/curator/src/shared → libs/shared/src}/utils/ImageSelectHelper.d.ts +1 -1
  76. package/dist/libs/shared/src/utils/StateHelper.d.ts +10 -9
  77. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
  78. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +21 -0
  79. package/dist/libs/shared/src/views/image-upload/ImageUploadView.d.ts +9 -0
  80. package/dist/projects/curator/src/apps/series/interfaces/data-requests/Series.d.ts +1 -2
  81. package/dist/projects/curator/src/apps/videos/interfaces/data-requests/UpdateVideoRequest.d.ts +1 -2
  82. package/dist/projects/curator/src/index.d.ts +20 -0
  83. package/dist/projects/curator/src/shared/components/forms/image-select/ImageSelect.d.ts +4 -3
  84. package/dist/projects/curator/src/shared/components/forms/index.d.ts +0 -1
  85. package/dist/projects/curator/src/shared/components/index.d.ts +0 -1
  86. package/dist/projects/curator/src/shared/components/rating-select/RatingSelect.d.ts +4 -4
  87. package/dist/projects/curator/src/shared/constants/Services.d.ts +0 -1
  88. package/dist/projects/curator/src/shared/constants/index.d.ts +0 -1
  89. package/dist/projects/curator/src/shared/interfaces/data-requests/index.d.ts +0 -1
  90. package/dist/projects/curator/src/shared/layouts/curator-layout/CuratorLayoutView.d.ts +1 -1
  91. package/dist/projects/curator/src/shared/layouts/primitives/LayoutComponent.d.ts +1 -1
  92. package/dist/projects/curator/src/shared/services/index.d.ts +0 -1
  93. package/dist/projects/curator/src/shared/utils/PropHelper.d.ts +2 -1
  94. package/dist/projects/curator/src/shared/utils/index.d.ts +0 -1
  95. package/package.json +4 -3
  96. package/dist/projects/curator/src/shared/components/forms/file-select/index.d.ts +0 -1
  97. package/dist/projects/curator/src/shared/components/image-cropper/index.d.ts +0 -1
  98. package/dist/projects/curator/src/shared/constants/FileExtensions.d.ts +0 -3
  99. package/dist/projects/curator/src/shared/context/index.d.ts +0 -1
  100. package/dist/projects/curator/src/shared/services/ImageUploadDataService.d.ts +0 -8
  101. package/dist/projects/curator/src/shared/views/image-upload/ImageUploadView.d.ts +0 -8
  102. package/dist/projects/curator/src/shared/views/image-upload/index.d.ts +0 -1
  103. package/dist/projects/curator/src/shared/views/index.d.ts +0 -1
  104. /package/dist/{projects/curator/src/shared → libs/shared/src}/components/image-cropper/ImageCropper.d.ts +0 -0
  105. /package/dist/{projects/curator/src/shared/interfaces/data-requests → libs/shared/src/interfaces/requests}/UpdateObjectRating.d.ts +0 -0
@@ -1,7 +1,9 @@
1
1
  import { Flight } from "../../../common/src/react";
2
2
  import { CurrentUser } from "../interfaces";
3
+ import { HashObject } from "../../../common/src/react/interfaces";
3
4
  export declare const UserRequests: {
4
5
  currentUser(success?: (user: CurrentUser) => void, error?: () => void): Flight.Request;
5
- workspace: Flight.Request;
6
+ workspace(success?: (workspace: HashObject<any>) => void, error?: () => void): Flight.Request;
6
7
  sendVerificationEmail(emailAddress: string, success: () => void, error: () => void, always: () => void): Flight.Request;
8
+ token(success?: (token: HashObject<any>) => void, error?: () => void): Flight.Request;
7
9
  };
@@ -81,5 +81,7 @@ export declare enum localSvgs {
81
81
  Tag = "tag",
82
82
  Email = "email",
83
83
  YearLevel = "year-level",
84
- Subjects = "subjects"
84
+ Subjects = "subjects",
85
+ Download = "download",
86
+ Print = "print"
85
87
  }
@@ -19,4 +19,6 @@ import VisibleOn from './visible-on.svg';
19
19
  import NoEdit from './no-edit.svg';
20
20
  import EditClickView from './edit-clickview.svg';
21
21
  import Share2 from './share2.svg';
22
- export { AddToPlaylist, Close, Delete, Edit, Expand, Minus, More, NewWindow, Plus, Preview, Search, Share, Upload, Down, Right, UpDown, VisibleOff, VisibleOn, NoEdit, EditClickView, Share2 };
22
+ import Download from './download.svg';
23
+ import Print from './print.svg';
24
+ export { AddToPlaylist, Close, Delete, Edit, Expand, Minus, More, NewWindow, Plus, Preview, Search, Share, Upload, Down, Right, UpDown, VisibleOff, VisibleOn, NoEdit, EditClickView, Share2, Download, Print };
@@ -0,0 +1,3 @@
1
+ import { BasePaginatedCollection, Subtitle } from "./..";
2
+ export interface SubtitleCollection extends BasePaginatedCollection<Subtitle> {
3
+ }
@@ -19,3 +19,4 @@ export * from './LinkCollection';
19
19
  export * from './ClipCollection';
20
20
  export * from './FolderCollection';
21
21
  export * from './CustomerCollection';
22
+ export * from './SubtitleCollection';
@@ -5,7 +5,9 @@ export interface Config extends BaseObject {
5
5
  imageCdnUrl: string;
6
6
  countryCode: CountryCode;
7
7
  webPlayerUrl: string;
8
+ gatewayApiUrl: string;
8
9
  notificationServiceUrl?: string;
9
10
  collectionApiUrls?: RegionalUrl;
10
11
  collectionApiClientId?: string;
12
+ playerApiUrl?: string;
11
13
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Interface for a file uploaded
3
+ * to FileApi
4
+ */
5
+ export interface FileUpload {
6
+ id: string;
7
+ file: {
8
+ cvUpload: {
9
+ uploadId: string;
10
+ ingestUrl: string;
11
+ };
12
+ };
13
+ fileInfo: {
14
+ id: string;
15
+ name: string;
16
+ extension: string;
17
+ size: number;
18
+ url: string;
19
+ };
20
+ }
@@ -1,7 +1,9 @@
1
1
  import { BaseObject } from "./..";
2
2
  import { GlanceFormat } from "../../enums/GlanceFormat";
3
+ import { ThemeType } from "../../enums/ThemeType";
3
4
  export interface Glance extends BaseObject {
4
5
  theme: string;
5
6
  format: GlanceFormat;
6
7
  content: string;
8
+ type: ThemeType;
7
9
  }
@@ -0,0 +1,4 @@
1
+ export interface Language {
2
+ code: string;
3
+ name: string;
4
+ }
@@ -1,3 +1,4 @@
1
1
  import { BaseObject } from "./..";
2
2
  export interface Link extends BaseObject {
3
+ url: string;
3
4
  }
@@ -0,0 +1,4 @@
1
+ import { BaseObject } from './primitives';
2
+ export interface Pdf extends BaseObject {
3
+ url: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface PlayerViewKey {
2
+ viewKey: string;
3
+ }
@@ -1,9 +1,17 @@
1
1
  import { BaseObject } from './primitives';
2
- interface ResourceMatadata {
3
- type: string;
2
+ import { Thumbnail } from './Thumbnail';
3
+ import { FileType } from "../../utils/VideoDetailsHelper";
4
+ import { Pdf } from './Pdf';
5
+ export declare type ResourceType = 'teacher-pack' | 'student-activity' | 'additional-materials' | 'atom-guide';
6
+ interface ResourceMetadata {
7
+ type: FileType;
8
+ resourceType?: ResourceType;
4
9
  }
5
10
  export interface Resource extends BaseObject {
6
11
  url: string;
7
- metadata: ResourceMatadata;
12
+ metadata: ResourceMetadata;
13
+ fileId: string;
14
+ thumbnail: Thumbnail;
15
+ pdf?: Pdf;
8
16
  }
9
17
  export {};
@@ -0,0 +1,7 @@
1
+ import { BaseObject } from './primitives';
2
+ export interface Subtitle extends BaseObject {
3
+ language: string;
4
+ metadata: {
5
+ autoGenerated?: boolean;
6
+ };
7
+ }
@@ -1,3 +1,6 @@
1
1
  import { Image } from "./..";
2
2
  export interface Thumbnail extends Image {
3
+ metadata?: {
4
+ rotation?: number;
5
+ };
3
6
  }
@@ -2,7 +2,10 @@ import { BaseObject, Group, Avatar } from "./..";
2
2
  import { UserRole } from "../../enums/UserRole";
3
3
  import { CustomerType } from "../../enums/CustomerType";
4
4
  import { OnlineUserRole } from "../../enums/UserRole";
5
+ import { UserGroup } from "../../enums/UserGroup";
6
+ import { ObjectStatus } from "../../enums/ObjectStatus";
5
7
  import { CustomerCollection } from '../collections';
8
+ export declare type YearGroup = 'Kindergarten' | 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Year 6' | 'Year 7' | 'Year 8' | 'Year 9' | 'Year 10' | 'Year 11' | 'Year 12' | 'Year 13' | 'Staff';
6
9
  /**
7
10
  * Master User
8
11
  */
@@ -13,10 +16,14 @@ export interface User extends BaseObject {
13
16
  bio: string;
14
17
  email: string;
15
18
  username: string;
16
- status: string;
19
+ status: ObjectStatus;
17
20
  role: UserRole;
18
21
  customers: CustomerCollection;
22
+ yearGroup: YearGroup;
23
+ userType: UserGroup;
19
24
  avatar?: Avatar;
25
+ isPrimaryContact: boolean;
26
+ roleId: OnlineUserRole;
20
27
  }
21
28
  export interface CuratorUser extends User {
22
29
  userId: string;
@@ -47,3 +47,7 @@ export * from './UserChannel';
47
47
  export * from './Group';
48
48
  export * from './VideoHistory';
49
49
  export * from './EntitySetting';
50
+ export * from './Subtitle';
51
+ export * from './Language';
52
+ export * from './FileUpload';
53
+ export * from './PlayerViewKey';
@@ -0,0 +1,5 @@
1
+ import { PlayerMediaType } from "../../enums/PlayerMediaType";
2
+ export interface CreateViewKeyRequest {
3
+ mediaId: string;
4
+ mediaType: PlayerMediaType;
5
+ }
@@ -0,0 +1,3 @@
1
+ export interface UpdateObjectChannel {
2
+ id: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface UpdateResourceRequest {
2
+ name: string;
3
+ }
@@ -1,5 +1,9 @@
1
+ import { UpdateObjectRating, UpdateObjectChannel, Thumbnail } from "./..";
1
2
  export interface UpdateVideoRequest {
2
- id: string;
3
3
  name: string;
4
4
  description?: string;
5
+ rating: UpdateObjectRating;
6
+ dateBroadcast?: string;
7
+ channel?: UpdateObjectChannel;
8
+ thumbnail?: Thumbnail;
5
9
  }
@@ -1,2 +1,6 @@
1
+ export * from './CreateViewKeyRequest';
1
2
  export * from './ReorderRequest';
3
+ export * from './UpdateObjectChannel';
4
+ export * from './UpdateObjectRating';
5
+ export * from './UpdateResourceRequest';
2
6
  export * from './UpdateVideoRequest';
@@ -0,0 +1,5 @@
1
+ import { Config } from "./..";
2
+ export interface BaseConfigDataService {
3
+ getConfig(success?: (config: Config) => void, error?: () => void): void;
4
+ getVersion(success?: (version: string) => void, error?: () => void): void;
5
+ }
@@ -1,4 +1,6 @@
1
1
  import { CurrentUser } from "./..";
2
+ import { HashObject } from "../../../../common/src/react/interfaces";
2
3
  export interface BaseUserDataService {
3
4
  getCurrentUser(success?: (user: CurrentUser) => void, error?: () => void): void;
5
+ getWorkspace(success?: (workspace: HashObject) => void, error?: () => void): void;
4
6
  }
@@ -4,3 +4,4 @@ export * from './BaseLibraryDataService';
4
4
  export * from './BaseSeriesDataService';
5
5
  export * from './BaseSettingsDataService';
6
6
  export * from './BaseUserDataService';
7
+ export * from './BaseConfigDataService';
@@ -20,12 +20,13 @@ export interface CategoryMapperImageOptions {
20
20
  export declare const ImageHelper: {
21
21
  createUrl(baseUrl: string, options?: ImageOptions): string;
22
22
  createBannerUrl(banner: Banner, mappingOptions?: CategoryMapperImageOptions, imageOptions?: ImageOptions): string;
23
+ createResourceImage(baseUrl: string, resourceUrl: string, options?: ImageOptions): string;
23
24
  /**
24
- * Ensures that strings are properly escaped before using them
25
- * within a URL.
26
- */
25
+ * Ensures that strings are properly escaped before using them
26
+ * within a URL.
27
+ */
27
28
  Rfc3986EncodeURIComponent(str: string): string;
28
29
  _createCategoryMappedUrl(mappingOptions: CategoryMapperImageOptions, options?: ImageOptions): string;
29
- _createUrl(baseUrl: string, options?: ImageOptions): string;
30
+ _createUrl(baseUrl: string, queryParams?: HashObject<any>): string;
30
31
  legacyCreateThumbnailUrl(thumbnail: string | Core.Model | HashObject<any>, options?: ImageOptions): string;
31
32
  };
@@ -1,4 +1,4 @@
1
- import { ImageType } from "../../../../../libs/shared/src/enums/Images";
1
+ import { ImageType } from "../enums/Images";
2
2
  export declare const ImageSelectHelper: {
3
3
  onFileSelect(imageType: ImageType, files: FileList, onImageLoad: (image: HTMLImageElement) => void): void;
4
4
  onReaderLoad(reader: FileReader, imageType: ImageType, onImageLoad: (image: HTMLImageElement) => void): void;
@@ -1,13 +1,14 @@
1
1
  /// <reference types="react" />
2
+ import { HashObject } from "../../../common/src/react/interfaces";
2
3
  export declare const StateHelper: {
3
4
  /**
4
- * Helper function to get the setState function for an individual key in a state object.
5
- *
6
- * @param setState React setState action
7
- * @param key Property within the state object we're updating
8
- * @param callback Optional callback to modify data before setting state. Uses identity fn by default.
9
- *
10
- * @returns Newly updated state object
11
- */
12
- getSetStateByKey<T extends {}>(setState: import("react").Dispatch<import("react").SetStateAction<T>>, key: keyof T, callback?: (data: any, state?: T) => T[keyof T]): (data: any) => void;
5
+ * Helper function to get the setState function for an individual key in a state object.
6
+ *
7
+ * @param setState React setState action
8
+ * @param key Property within the state object we're updating
9
+ * @param callback Optional callback to modify data before setting state. Uses identity fn by default.
10
+ *
11
+ * @returns Newly updated state object
12
+ */
13
+ getSetStateByKey<T extends HashObject<any>>(setState: import("react").Dispatch<import("react").SetStateAction<T>>, key: keyof T, callback?: (data: any, state?: T) => T[keyof T]): (data: any) => void;
13
14
  };
@@ -8,7 +8,6 @@ export interface SVGOptions {
8
8
  }
9
9
  export declare class StaticSvgHelper {
10
10
  private static instance;
11
- private constructor();
12
11
  static get Instance(): StaticSvgHelper;
13
12
  getSvg(svgName: string, options?: SVGOptions): string;
14
13
  private getIcon;
@@ -0,0 +1,21 @@
1
+ import { Library, Video } from "../interfaces";
2
+ import { MasterObjectTypes } from "../enums/MasterObjectTypes";
3
+ export declare enum FileType {
4
+ Pdf = "pdf",
5
+ Image = "image",
6
+ PowerPoint = "powerpoint",
7
+ Document = "document",
8
+ Excel = "excel",
9
+ Zip = "archive",
10
+ File = "text"
11
+ }
12
+ export declare const VideoDetailsHelper: {
13
+ mapRatingToClass(ratingValue: number): string;
14
+ mapSourceToDisplayName(library: Library): string;
15
+ mapSourceToClass(sourceType: MasterObjectTypes): string;
16
+ isInteractive(video: Video): boolean;
17
+ mapTypeToSvg(type: string): any;
18
+ mapTypeToClass(type: string): any;
19
+ mapTypeToExtension(type: string): string;
20
+ mapTypeToName(type: string): string;
21
+ };
@@ -0,0 +1,9 @@
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
+ popupSize?: 'sm' | 'lg' | 'xl';
7
+ }
8
+ export declare function ImageUploadView(props: ImageUploadViewProps): React.ReactElement;
9
+ export {};
@@ -1,5 +1,4 @@
1
- import { Poster, Banner } from "../../../../../../../libs/shared/src/interfaces";
2
- import { UpdateObjectRating } from "../../../../shared/interfaces";
1
+ import { Poster, Banner, UpdateObjectRating } from "../../../../../../../libs/shared/src/interfaces";
3
2
  export interface CreateOrUpdateSeriesRequest {
4
3
  name: string;
5
4
  rating: UpdateObjectRating;
@@ -1,5 +1,4 @@
1
- import { Thumbnail, HeroBanner, Glance } from "../../../../../../../libs/shared/src/interfaces";
2
- import { UpdateObjectRating } from "../../../../shared/interfaces";
1
+ import { Thumbnail, HeroBanner, Glance, UpdateObjectRating } from "../../../../../../../libs/shared/src/interfaces";
3
2
  import { CurationStatus } from "../../../../shared/enums/CurationStatus";
4
3
  export interface UpdateVideoRequest {
5
4
  name: string;
@@ -19,11 +19,21 @@ import '../../../libs/shared/src/apps/upload/errors/internet-connectivity/intern
19
19
  import '../../../libs/shared/src/apps/upload/utils/upload-utils.lang.json';
20
20
  import '../../../libs/shared/src/components/back-button/back-button.lang.json';
21
21
  import '../../../libs/shared/src/components/badges/badge.lang.json';
22
+ import '../../../libs/shared/src/components/channel-form-field/channel-form-field.lang.json';
23
+ import '../../../libs/shared/src/components/confirmation-popup/confirmation-popup.lang.json';
22
24
  import '../../../libs/shared/src/components/curriculum-links/curriculum-links.lang.json';
25
+ import '../../../libs/shared/src/components/edit-link/edit-link.lang.json';
26
+ import '../../../libs/shared/src/components/edit-resource/edit-resource.lang.json';
23
27
  import '../../../libs/shared/src/components/edit-video-details/edit-video-details.lang.json';
28
+ import '../../../libs/shared/src/components/edit-video-links/edit-video-links.lang.json';
29
+ import '../../../libs/shared/src/components/edit-video-resources/edit-video-resources.lang.json';
30
+ import '../../../libs/shared/src/components/edit-video-subtitles/edit-video-subtitles.lang.json';
24
31
  import '../../../libs/shared/src/components/favourite-button/favourite-button.lang.json';
25
32
  import '../../../libs/shared/src/components/forms/form-buttons/form-buttons.lang.json';
33
+ import '../../../libs/shared/src/components/image-select/image-select.lang.json';
34
+ import '../../../libs/shared/src/components/language-select/language-select.lang.json';
26
35
  import '../../../libs/shared/src/components/pagination/pagination.lang.json';
36
+ import '../../../libs/shared/src/components/rating-select/rating-select.lang.json';
27
37
  import '../../../libs/shared/src/components/search-bar/search-bar.lang.json';
28
38
  import '../../../libs/shared/src/components/video-list/components/video-item-description/video-item-description.lang.json';
29
39
  import '../../../libs/shared/src/components/widgets/dynamic-widget/dynamic-widget.lang.json';
@@ -31,9 +41,19 @@ import '../../../libs/shared/src/components/widgets/fixed-widget/fixed-widget.la
31
41
  import '../../../libs/shared/src/components/widgets/greeting-widget/greeting.lang.json';
32
42
  import '../../../libs/shared/src/components/widgets/items/interactive-widget-item/interactive-widget-item.lang.json';
33
43
  import '../../../libs/shared/src/components/widgets/items/subject-widget-item/subject-widget-item.lang.json';
44
+ import '../../../libs/shared/src/legacy/behaviors/file-drop/file-drop.lang.json';
45
+ import '../../../libs/shared/src/legacy/components/file-select/file-select.lang.json';
34
46
  import '../../../libs/shared/src/legacy/components/pagination/pagination.lang.json';
47
+ import '../../../libs/shared/src/legacy/errors/too-many-files/too-many-files.lang.json';
48
+ import '../../../libs/shared/src/legacy/errors/too-many-resources/too-many-resources.lang.json';
49
+ import '../../../libs/shared/src/legacy/errors/too-many-subtitles/too-many-subtitles.lang.json';
35
50
  import '../../../libs/shared/src/utils/shared-utils.lang.json';
36
51
  import '../../../libs/shared/src/utils/video-actions/video-actions-helper.lang.json';
52
+ import '../../../libs/shared/src/views/delete-link/delete-link-view.lang.json';
53
+ import '../../../libs/shared/src/views/delete-resource/delete-resource-view.lang.json';
54
+ import '../../../libs/shared/src/views/delete-subtitle/delete-subtitle-view.lang.json';
55
+ import '../../../libs/shared/src/views/edit-link/edit-link-view.lang.json';
56
+ import '../../../libs/shared/src/views/edit-resource/edit-resource-view.lang.json';
37
57
  export * from './shared/constants';
38
58
  export * from './shared/layouts';
39
59
  export * from './shared/services';
@@ -1,8 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { HashObject } from "../../../../../../../libs/common/src/react/interfaces";
2
3
  import { ImageType } from "../../../../../../../libs/shared/src/enums/Images";
3
4
  import { Image } from "../../../../../../../libs/shared/src/interfaces";
4
- import { FileSelectProps } from "../..";
5
- interface ImageSelectProps<Values extends object> extends Omit<FileSelectProps, 'onFileSelect'> {
5
+ import { FileSelectProps } from "../file-select/FileSelect";
6
+ interface ImageSelectProps<Values extends HashObject> extends Omit<FileSelectProps, 'onFileSelect'> {
6
7
  imageType: ImageType;
7
8
  fieldName: keyof Values & string;
8
9
  application: string;
@@ -10,5 +11,5 @@ interface ImageSelectProps<Values extends object> extends Omit<FileSelectProps,
10
11
  label?: string;
11
12
  setSelectedImage?: (image: Image) => void;
12
13
  }
13
- export declare function ImageSelect<Values extends object>(props: ImageSelectProps<Values>): React.ReactElement;
14
+ export declare function ImageSelect<Values extends HashObject>(props: ImageSelectProps<Values>): React.ReactElement;
14
15
  export {};
@@ -1,2 +1 @@
1
- export * from './file-select';
2
1
  export * from './image-select';
@@ -1,7 +1,6 @@
1
1
  export * from './back-button';
2
2
  export * from './checkbox';
3
3
  export * from './forms';
4
- export * from './image-cropper';
5
4
  export * from './object-collection';
6
5
  export * from './object-header';
7
6
  export * from './object-list';
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { Rating } from "../../../../../../libs/shared/src/interfaces";
3
- import { UpdateObjectRating } from "../../interfaces";
4
- declare type ObjectWithRating<T extends object> = T & {
2
+ import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
3
+ import { Rating, UpdateObjectRating } from "../../../../../../libs/shared/src/interfaces";
4
+ declare type ObjectWithRating<T extends HashObject> = T & {
5
5
  rating: UpdateObjectRating;
6
6
  };
7
7
  interface RatingSelectProps {
8
8
  ratings: Rating[];
9
9
  disabled?: boolean;
10
10
  }
11
- export declare function RatingSelect<T extends ObjectWithRating<{}>>(props: RatingSelectProps): JSX.Element;
11
+ export declare function RatingSelect<T extends ObjectWithRating<unknown>>(props: RatingSelectProps): JSX.Element;
12
12
  export {};
@@ -1,5 +1,4 @@
1
1
  export declare const DataServices: {
2
- IMAGE_UPLOAD: string;
3
2
  SUBJECT: string;
4
3
  LANGUAGE: string;
5
4
  };
@@ -1,6 +1,5 @@
1
1
  export * from './CuratorActions';
2
2
  export * from './DataPrefixes';
3
- export * from './FileExtensions';
4
3
  export * from './Layouts';
5
4
  export * from './RadioChannels';
6
5
  export * from './Services';
@@ -1,3 +1,2 @@
1
1
  export * from './CreateAliasRequest';
2
2
  export * from './UpdateObjectPermissionsRequest';
3
- export * from './UpdateObjectRating';
@@ -3,7 +3,7 @@ import { ObjectHash } from 'backbone';
3
3
  import { Core } from "../../../../../../libs/common/src/backbone";
4
4
  import { ReactLayoutView, ReactLayoutViewOptions } from "../../../../../../libs/common/src/react/core/ReactLayoutView";
5
5
  export interface CuratorLayoutViewOptions extends ReactLayoutViewOptions {
6
- provider?: (props: React.PropsWithChildren<{}>) => React.ReactElement;
6
+ provider?: (props: React.PropsWithChildren<unknown>) => React.ReactElement;
7
7
  getTopNavView?: (currentAppLink: Core.AppLink) => React.ReactElement;
8
8
  }
9
9
  export declare abstract class CuratorLayoutView extends ReactLayoutView {
@@ -11,7 +11,7 @@ export interface LayoutComponentProps {
11
11
  alert?: LayoutItem;
12
12
  }
13
13
  interface WithProviderProps extends LayoutComponentProps {
14
- provider?: (props: React.PropsWithChildren<{}>) => React.ReactElement;
14
+ provider?: (props: React.PropsWithChildren<unknown>) => React.ReactElement;
15
15
  }
16
16
  declare const LayoutComponentWithProvider: (props: WithProviderProps) => 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>)>;
17
17
  export { LayoutComponentWithProvider as LayoutComponent };
@@ -1,2 +1 @@
1
1
  export * from './CuratorAppNavService';
2
- export * from './ImageUploadDataService';
@@ -1,3 +1,4 @@
1
+ import { HashObject } from "../../../../../libs/common/src/react/interfaces";
1
2
  export declare const PropHelper: {
2
- propsLoaded(props: {}): boolean;
3
+ propsLoaded(props: HashObject<any>): boolean;
3
4
  };
@@ -1,4 +1,3 @@
1
- export * from './ImageSelectHelper';
2
1
  export * from './NavHelper';
3
2
  export * from './PropHelper';
4
3
  export * from './TreeHelper';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/curator",
3
- "version": "1.0.23-rc.0",
3
+ "version": "1.0.24-dev.0",
4
4
  "description": "curator",
5
5
  "main": "dist/curator-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,14 +20,15 @@
20
20
  "author": "Matt Trengrove",
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
- "@clickview/tooling": "0.0.18",
23
+ "@clickview/eslint-config": "0.0.0-rc.0",
24
+ "@clickview/tooling": "0.0.19-dev.0",
24
25
  "@types/cropperjs": "1.3.0",
25
26
  "@types/react-copy-to-clipboard": "4.3.0",
26
27
  "@types/react-transition-group": "4.2.3",
27
28
  "@types/yup": "0.26.24"
28
29
  },
29
30
  "dependencies": {
30
- "@clickview/styles": "1.0.11-rc.0",
31
+ "@clickview/styles": "1.0.12-dev.0",
31
32
  "cropperjs": "1.5.6",
32
33
  "marked": "0.8.0",
33
34
  "react-copy-to-clipboard": "5.0.2",
@@ -1 +0,0 @@
1
- export * from './FileSelect';
@@ -1 +0,0 @@
1
- export * from './ImageCropper';
@@ -1,3 +0,0 @@
1
- export declare const FileExtensions: {
2
- IMAGES: string;
3
- };
@@ -1 +0,0 @@
1
- export * from './ImageStorageContext';
@@ -1,8 +0,0 @@
1
- import { BaseDataService } from "../../../../../libs/common/src/backbone/services/BaseDataService";
2
- import { ImageType } from "../../../../../libs/shared/src/enums/Images";
3
- import { Image } from "../../../../../libs/shared/src/interfaces";
4
- export declare class ImageUploadDataService extends BaseDataService {
5
- get name(): string;
6
- get channelName(): string;
7
- uploadBase64Image(dataUrl: string, type: ImageType, callback?: (data: Image) => void, errorCallback?: () => void): void;
8
- }
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { PopupViewProps } from "../../../../../../libs/shared/src/interfaces";
3
- import { ImageType } from "../../../../../../libs/shared/src/enums/Images";
4
- interface ImageUploadViewProps {
5
- imageType: ImageType;
6
- }
7
- export declare function ImageUploadView({ imageType, closePopup }: ImageUploadViewProps & PopupViewProps): React.ReactElement;
8
- export {};
@@ -1 +0,0 @@
1
- export * from './ImageUploadView';
@@ -1 +0,0 @@
1
- export * from './image-upload';