@clickview/curator 1.0.15-rc.0 → 1.0.15-rc.2

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 (32) hide show
  1. package/dist/curator-app.css.map +1 -1
  2. package/dist/curator-app.js +1 -1
  3. package/dist/curator-app.js.map +1 -1
  4. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +5 -0
  5. package/dist/libs/shared/src/interfaces/models/Group.d.ts +3 -0
  6. package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
  7. package/dist/libs/shared/src/interfaces/models/index.d.ts +1 -0
  8. package/dist/projects/curator/src/apps/playlists/components/edit-playlist-nav/EditPlaylistNav.d.ts +3 -1
  9. package/dist/projects/curator/src/apps/playlists/utils/PlaylistNavHelper.d.ts +2 -1
  10. package/dist/projects/curator/src/apps/series/components/edit-series-nav/EditSeriesNav.d.ts +3 -1
  11. package/dist/projects/curator/src/apps/series/utils/SeriesNavHelper.d.ts +2 -1
  12. package/dist/projects/curator/src/apps/videos/components/edit-video-details/EditVideoDetails.d.ts +2 -1
  13. package/dist/projects/curator/src/apps/videos/components/edit-video-details/VideoDetailsForm.d.ts +2 -1
  14. package/dist/projects/curator/src/apps/videos/components/edit-video-nav/EditVideoNav.d.ts +3 -1
  15. package/dist/projects/curator/src/apps/videos/utils/VideoNavHelper.d.ts +2 -1
  16. package/dist/projects/curator/src/apps/videos/views/edit-video-aliases/EditVideoAliasesView.d.ts +1 -1
  17. package/dist/projects/curator/src/index.d.ts +2 -2
  18. package/dist/projects/curator/src/shared/constants/RadioChannels.d.ts +0 -1
  19. package/dist/projects/curator/src/shared/constants/Services.d.ts +0 -1
  20. package/dist/projects/curator/src/shared/context/index.d.ts +0 -1
  21. package/dist/projects/curator/src/shared/interfaces/models/index.d.ts +0 -2
  22. package/dist/projects/curator/src/shared/services/index.d.ts +0 -1
  23. package/dist/projects/curator/src/shared/utils/PermissionsHelper.d.ts +2 -1
  24. package/dist/projects/curator/src/shared/utils/UserHelper.d.ts +1 -1
  25. package/dist/projects/curator/src/shared/utils/index.d.ts +0 -1
  26. package/package.json +45 -45
  27. package/dist/projects/curator/src/apps/playlists/services/PlaylistDataService.d.ts +0 -22
  28. package/dist/projects/curator/src/apps/playlists/services/index.d.ts +0 -1
  29. package/dist/projects/curator/src/apps/series/services/SeriesDataService.d.ts +0 -17
  30. package/dist/projects/curator/src/apps/series/services/index.d.ts +0 -1
  31. package/dist/projects/curator/src/apps/videos/services/VideoDataService.d.ts +0 -14
  32. package/dist/projects/curator/src/apps/videos/services/index.d.ts +0 -1
@@ -0,0 +1,5 @@
1
+ import { Flight } from "../../../common/src/react";
2
+ export declare const UserRequests: {
3
+ currentUser: Flight.Request;
4
+ workspace: Flight.Request;
5
+ };
@@ -0,0 +1,3 @@
1
+ import { BaseObject } from "./..";
2
+ export interface Group extends BaseObject {
3
+ }
@@ -1,4 +1,4 @@
1
- import { BaseObject } from "./..";
1
+ import { BaseObject, Group } from "./..";
2
2
  import { UserRole } from "../../enums/UserRole";
3
3
  import { CustomerType } from "../../enums/CustomerType";
4
4
  import { OnlineUserRole } from "../../enums/UserRole";
@@ -21,6 +21,7 @@ export interface CuratorUser extends User {
21
21
  userId: string;
22
22
  firstName: string;
23
23
  countryCode: string;
24
+ groups: Group[];
24
25
  }
25
26
  /**
26
27
  * Current User for Lite/Cloud
@@ -41,3 +41,4 @@ export * from './Restriction';
41
41
  export * from './VideoWithRestrictions';
42
42
  export * from './Following';
43
43
  export * from './UserChannel';
44
+ export * from './Group';
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
2
3
  interface EditPlaylistNavProps {
3
4
  playlistId: string;
4
5
  activeAction: string;
6
+ currentUser: CuratorUser;
5
7
  }
6
- export declare function EditPlaylistNav({ playlistId, activeAction }: EditPlaylistNavProps): React.ReactElement;
8
+ export declare function EditPlaylistNav(props: EditPlaylistNavProps): React.ReactElement;
7
9
  export {};
@@ -1,4 +1,5 @@
1
- import { NavItem, CuratorUser } from "../../../shared/interfaces";
1
+ import { CuratorUser } from "../../../../../../libs/shared/src/interfaces";
2
+ import { NavItem } from "../../../shared/interfaces";
2
3
  export declare const PlaylistNavHelper: {
3
4
  getEditPlaylistTabs(currentUser: CuratorUser, playlistId: string): NavItem[];
4
5
  };
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
2
3
  interface EditSeriesNavProps {
3
4
  seriesId: string;
4
5
  activeAction: string;
6
+ currentUser: CuratorUser;
5
7
  }
6
- export declare function EditSeriesNav({ seriesId, activeAction }: EditSeriesNavProps): React.ReactElement;
8
+ export declare function EditSeriesNav(props: EditSeriesNavProps): React.ReactElement;
7
9
  export {};
@@ -1,4 +1,5 @@
1
- import { NavItem, CuratorUser } from "../../../shared/interfaces";
1
+ import { CuratorUser } from "../../../../../../libs/shared/src/interfaces";
2
+ import { NavItem } from "../../../shared/interfaces";
2
3
  export declare const SeriesNavHelper: {
3
4
  getEditSeriesTabs(currentUser: CuratorUser, seriesId: string): NavItem[];
4
5
  };
@@ -1,11 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { Video, Rating, Theme } from "../../../../../../../libs/shared/src/interfaces";
2
+ import { Video, Rating, Theme, CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
3
3
  import { UpdateVideoRequest, RightslineVideo } from "../../interfaces";
4
4
  interface EditVideoDetailsProps {
5
5
  video: Video;
6
6
  saveVideo: (data: UpdateVideoRequest, onDone: () => void) => void;
7
7
  ratings: Rating[];
8
8
  themes: Theme[];
9
+ currentUser: CuratorUser;
9
10
  rightslineId?: string;
10
11
  rightslineVideo?: RightslineVideo;
11
12
  }
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { Rating, Theme } from "../../../../../../../libs/shared/src/interfaces";
2
+ import { Rating, Theme, CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
3
3
  import { ActionOptions } from "../../../../../../../libs/shared/src/components/actions/Actions";
4
4
  interface VideoDetailsFormProps {
5
5
  id: string;
6
6
  ratings: Rating[];
7
7
  themes: Theme[];
8
+ currentUser: CuratorUser;
8
9
  rightslineId?: string;
9
10
  actions?: ActionOptions[];
10
11
  }
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { CuratorUser } from "../../../../../../../libs/shared/src/interfaces";
2
3
  interface EditVideoNavProps {
3
4
  videoId: string;
4
5
  activeAction: string;
6
+ currentUser: CuratorUser;
5
7
  }
6
- export declare function EditVideoNav({ videoId, activeAction }: EditVideoNavProps): React.ReactElement;
8
+ export declare function EditVideoNav(props: EditVideoNavProps): React.ReactElement;
7
9
  export {};
@@ -1,4 +1,5 @@
1
+ import { CuratorUser } from "../../../../../../libs/shared/src/interfaces";
1
2
  import { NavItem } from "../../../shared/interfaces";
2
3
  export declare const VideoNavHelper: {
3
- getEditVideoTabs(videoId: string): NavItem[];
4
+ getEditVideoTabs(currentUser: CuratorUser, videoId: string): NavItem[];
4
5
  };
@@ -2,5 +2,5 @@ import * as React from 'react';
2
2
  interface EditVideoAliasesViewProps {
3
3
  videoId: string;
4
4
  }
5
- export declare function EditVideoAliasesView({ videoId }: EditVideoAliasesViewProps): React.ReactElement;
5
+ export declare function EditVideoAliasesView(props: EditVideoAliasesViewProps): React.ReactElement;
6
6
  export {};
@@ -51,5 +51,5 @@ import { LanguageService } from "../../../libs/common/src/backbone/services/Lang
51
51
  import { Flight } from "../../../libs/common/src/react";
52
52
  import { Core } from "../../../libs/common/src/backbone";
53
53
  import { CacheDurations } from "../../../libs/shared/src/constants/CacheDurations";
54
- import { UserDataService } from "../../../libs/shared/src/services/UserDataService";
55
- export { Core, InstanceManager, FifoMemoryCache, AjaxDataProvider, AlertType, BaseAlertService, LanguageService, Flight, CacheDurations, UserDataService };
54
+ import { AlertList } from "../../../libs/shared/src/components/alert/AlertList";
55
+ export { Core, InstanceManager, FifoMemoryCache, AjaxDataProvider, AlertList, AlertType, BaseAlertService, LanguageService, Flight, CacheDurations };
@@ -11,6 +11,5 @@ export declare const AppChannels: {
11
11
  export declare const DataChannels: {
12
12
  IMAGE_UPLOAD: string;
13
13
  SUBJECT: string;
14
- USER: string;
15
14
  LANGUAGE: string;
16
15
  };
@@ -1,6 +1,5 @@
1
1
  export declare const DataServices: {
2
2
  IMAGE_UPLOAD: string;
3
3
  SUBJECT: string;
4
- USER: string;
5
4
  LANGUAGE: string;
6
5
  };
@@ -1,2 +1 @@
1
1
  export * from './ImageStorageContext';
2
- export * from './UserContext';
@@ -1,5 +1,3 @@
1
1
  export * from './primitives';
2
2
  export * from './Alias';
3
- export * from './CuratorUser';
4
- export * from './Group';
5
3
  export * from './Permission';
@@ -1,4 +1,3 @@
1
1
  export * from './CuratorAppNavService';
2
2
  export * from './ImageUploadDataService';
3
- export * from './UserDataService';
4
3
  export * from './LanguageDataService';
@@ -1,4 +1,5 @@
1
- import { CuratorUser, Permission } from "../interfaces";
1
+ import { CuratorUser } from "../../../../../libs/shared/src/interfaces";
2
+ import { Permission } from "../interfaces";
2
3
  export declare const PermissionsHelper: {
3
4
  getProtectedReadPermission(): Permission[];
4
5
  hasSubjectsAccess(user: CuratorUser): boolean;
@@ -1,4 +1,4 @@
1
- import { CuratorUser } from "../interfaces";
1
+ import { CuratorUser } from "../../../../../libs/shared/src/interfaces";
2
2
  export declare const UserHelper: {
3
3
  getGroupNames(user: CuratorUser): string[];
4
4
  };
@@ -1,6 +1,5 @@
1
1
  export * from './ImageSelectHelper';
2
2
  export * from './NavHelper';
3
- export * from './PermissionsHelper';
4
3
  export * from './PropHelper';
5
4
  export * from './StringHelper';
6
5
  export * from './TreeHelper';
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@clickview/curator",
3
- "version": "1.0.15-rc.0",
4
- "description": "curator",
5
- "main": "dist/curator-app.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
9
- "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
10
- "dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "http://gitlab.cvinternal.net/front-end/curator.git"
15
- },
16
- "cv": {
17
- "publishable": true,
18
- "rebuildable": true
19
- },
20
- "author": "Matt Trengrove",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@clickview/tooling": "0.0.16-rc.0",
24
- "@types/cropperjs": "1.3.0",
25
- "@types/react-transition-group": "4.2.3",
26
- "@types/yup": "0.26.24"
27
- },
28
- "dependencies": {
29
- "@clickview/styles": "1.0.6-rc.0",
30
- "cropperjs": "1.5.6",
31
- "marked": "0.8.0",
32
- "yup": "0.27.0"
33
- },
34
- "babel": {
35
- "presets": [
36
- [
37
- "@babel/preset-env",
38
- {
39
- "corejs": 2,
40
- "useBuiltIns": "entry"
41
- }
42
- ]
43
- ]
44
- }
45
- }
1
+ {
2
+ "name": "@clickview/curator",
3
+ "version": "1.0.15-rc.2",
4
+ "description": "curator",
5
+ "main": "dist/curator-app.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
9
+ "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
10
+ "dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "http://gitlab.cvinternal.net/front-end/curator.git"
15
+ },
16
+ "cv": {
17
+ "publishable": true,
18
+ "rebuildable": true
19
+ },
20
+ "author": "Matt Trengrove",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@clickview/tooling": "0.0.16-rc.1",
24
+ "@types/cropperjs": "1.3.0",
25
+ "@types/react-transition-group": "4.2.3",
26
+ "@types/yup": "0.26.24"
27
+ },
28
+ "dependencies": {
29
+ "@clickview/styles": "1.0.6-rc.1",
30
+ "cropperjs": "1.5.6",
31
+ "marked": "0.8.0",
32
+ "yup": "0.27.0"
33
+ },
34
+ "babel": {
35
+ "presets": [
36
+ [
37
+ "@babel/preset-env",
38
+ {
39
+ "corejs": 2,
40
+ "useBuiltIns": "entry"
41
+ }
42
+ ]
43
+ ]
44
+ }
45
+ }
@@ -1,22 +0,0 @@
1
- import { BaseDataService } from "../../../../../../libs/common/src/backbone/services/BaseDataService";
2
- import { DataServiceError } from "../../../../../../libs/common/src/backbone/interfaces";
3
- import { FetchOptions } from "../../../../../../libs/common/src/react/utils/FetchHelper";
4
- import { Playlist, VideoCollection, ReorderRequest } from "../../../../../../libs/shared/src/interfaces";
5
- import { CreateOrUpdatePlaylistRequest } from "../../../../../../libs/shared/src/apps/playlists/interfaces";
6
- export declare class PlaylistDataService extends BaseDataService {
7
- get name(): string;
8
- get channelName(): string;
9
- getPlaylist(playlistId: string, callback?: (data: Playlist) => void, errorCallback?: () => void): Playlist;
10
- getPlaylistsById(ids: string[], callback?: (data: Playlist[]) => void, errorCallback?: () => void): Playlist[];
11
- createPlaylist(data: CreateOrUpdatePlaylistRequest, userId: string, callback?: (data: Playlist) => void, errorCallback?: () => void): void;
12
- updatePlaylist(id: string, data: CreateOrUpdatePlaylistRequest, callback?: (data: Playlist) => void, errorCallback?: () => void): void;
13
- deletePlaylist(playlistId: string, callback?: () => void, errorCallback?: () => void): void;
14
- getPlaylistVideos(playlistId: string, callback?: (data: VideoCollection) => void, errorCallback?: () => void): VideoCollection;
15
- reorderVideos(playlistId: string, reorderRequest: ReorderRequest, callback?: () => void): void;
16
- removeVideoFromPlaylist(playlistId: string, videoId: string, callback?: () => void, errorCallback?: () => void): void;
17
- }
18
- export declare const PlaylistDataServiceHelper: {
19
- getPlaylistFetchOptions: (playlistId: string, setData: (data: Playlist) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
20
- getPlaylistsByIdFetchOptions: (ids: string[], setData: (data: Playlist[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
21
- getPlaylistVideosFetchOptions: (playlistId: string, setData: (data: VideoCollection) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
22
- };
@@ -1 +0,0 @@
1
- export * from './PlaylistDataService';
@@ -1,17 +0,0 @@
1
- import { BaseDataService } from "../../../../../../libs/common/src/backbone/services/BaseDataService";
2
- import { DataServiceError } from "../../../../../../libs/common/src/backbone/interfaces";
3
- import { FetchOptions } from "../../../../../../libs/common/src/react/utils/FetchHelper";
4
- import { Series } from "../../../../../../libs/shared/src/interfaces";
5
- import { CreateOrUpdateSeriesRequest } from "../interfaces";
6
- export declare class SeriesDataService extends BaseDataService {
7
- get name(): string;
8
- get channelName(): string;
9
- getSeries(seriesId: string, callback?: (video: Series) => void, errorCallback?: () => void): Series;
10
- getSeriesById(ids: string[], callback?: (data: Series[]) => void, errorCallback?: () => void): Series[];
11
- createSeries(data: CreateOrUpdateSeriesRequest, callback?: (data: Series) => void, errorCallback?: () => void): void;
12
- updateSeries(id: string, data: CreateOrUpdateSeriesRequest, callback?: (data: Series) => void, errorCallback?: () => void): void;
13
- }
14
- export declare const SeriesDataServiceHelper: {
15
- getSeriesFetchOptions(seriesId: string, setData: (data: Series) => void, onError?: (error: DataServiceError) => void): FetchOptions;
16
- getSeriesByIdFetchOptions: (ids: string[], setData: (data: Series[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
17
- };
@@ -1 +0,0 @@
1
- export * from './SeriesDataService';
@@ -1,14 +0,0 @@
1
- import { BaseDataService } from "../../../../../../libs/common/src/backbone/services/BaseDataService";
2
- import { DataServiceError } from "../../../../../../libs/common/src/backbone/interfaces";
3
- import { FetchOptions } from "../../../../../../libs/common/src/react/utils/FetchHelper";
4
- import { Video } from "../../../../../../libs/shared/src/interfaces";
5
- export declare class VideoDataService extends BaseDataService {
6
- get name(): string;
7
- get channelName(): string;
8
- getVideo(videoId: string, callback?: (video: Video) => void, errorCallback?: () => void): Video;
9
- getVideosById(ids: string[], callback?: (data: Video[]) => void, errorCallback?: () => void): Video[];
10
- }
11
- export declare const VideoDataServiceHelper: {
12
- getVideoFetchOptions: (videoId: string, setData: (data: Video) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
13
- getVideosByIdFetchOptions: (ids: string[], setData: (data: Video[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
14
- };
@@ -1 +0,0 @@
1
- export * from './VideoDataService';