@clickview/curator 1.0.15-dev.1 → 1.0.15-rc.1

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 (42) hide show
  1. package/dist/curator-app.css.map +1 -0
  2. package/dist/curator-app.js +3 -3
  3. package/dist/curator-app.js.map +1 -0
  4. package/dist/libs/analytics/src/Analytics.d.ts +10 -0
  5. package/dist/libs/analytics/src/AnalyticsHelper.d.ts +30 -0
  6. package/dist/libs/analytics/src/constants/EventFirehose.d.ts +4 -0
  7. package/dist/libs/analytics/src/constants/GlobalChannels.d.ts +3 -0
  8. package/dist/libs/analytics/src/constants/Services.d.ts +4 -0
  9. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +25 -3
  10. package/dist/libs/analytics/src/models/AnalyticsEvent.d.ts +49 -0
  11. package/dist/libs/analytics/src/services/ContextService.d.ts +19 -0
  12. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +5 -1
  13. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +5 -0
  14. package/dist/libs/shared/src/interfaces/models/Group.d.ts +3 -0
  15. package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
  16. package/dist/libs/shared/src/interfaces/models/index.d.ts +1 -0
  17. package/dist/projects/curator/src/apps/playlists/PlaylistsApplication.d.ts +0 -1
  18. package/dist/projects/curator/src/apps/playlists/components/edit-playlist-nav/EditPlaylistNav.d.ts +3 -1
  19. package/dist/projects/curator/src/apps/playlists/services/PlaylistDataService.d.ts +22 -0
  20. package/dist/projects/curator/src/apps/playlists/services/index.d.ts +1 -0
  21. package/dist/projects/curator/src/apps/playlists/utils/PlaylistNavHelper.d.ts +2 -1
  22. package/dist/projects/curator/src/apps/series/components/edit-series-nav/EditSeriesNav.d.ts +3 -1
  23. package/dist/projects/curator/src/apps/series/services/SeriesDataService.d.ts +17 -0
  24. package/dist/projects/curator/src/apps/series/services/index.d.ts +1 -0
  25. package/dist/projects/curator/src/apps/series/utils/SeriesNavHelper.d.ts +2 -1
  26. package/dist/projects/curator/src/apps/videos/components/edit-video-details/EditVideoDetails.d.ts +2 -1
  27. package/dist/projects/curator/src/apps/videos/components/edit-video-details/VideoDetailsForm.d.ts +2 -1
  28. package/dist/projects/curator/src/apps/videos/components/edit-video-nav/EditVideoNav.d.ts +3 -1
  29. package/dist/projects/curator/src/apps/videos/services/VideoDataService.d.ts +14 -0
  30. package/dist/projects/curator/src/apps/videos/services/index.d.ts +1 -0
  31. package/dist/projects/curator/src/apps/videos/utils/VideoNavHelper.d.ts +2 -1
  32. package/dist/projects/curator/src/apps/videos/views/edit-video-aliases/EditVideoAliasesView.d.ts +1 -1
  33. package/dist/projects/curator/src/index.d.ts +1 -2
  34. package/dist/projects/curator/src/shared/constants/RadioChannels.d.ts +0 -1
  35. package/dist/projects/curator/src/shared/constants/Services.d.ts +0 -1
  36. package/dist/projects/curator/src/shared/context/index.d.ts +0 -1
  37. package/dist/projects/curator/src/shared/interfaces/models/index.d.ts +0 -2
  38. package/dist/projects/curator/src/shared/services/index.d.ts +0 -1
  39. package/dist/projects/curator/src/shared/utils/PermissionsHelper.d.ts +2 -1
  40. package/dist/projects/curator/src/shared/utils/UserHelper.d.ts +1 -1
  41. package/dist/projects/curator/src/shared/utils/index.d.ts +0 -1
  42. package/package.json +45 -45
@@ -0,0 +1,10 @@
1
+ import { AnalyticsDataPayload } from "./models/AnalyticsEvent";
2
+ import { ActionContext, EventVersion } from "./interfaces";
3
+ export declare const Analytics: {
4
+ /**
5
+ * Push/emit all events along the analytics firehose
6
+ * @param eventType
7
+ * @param data Data to be passed to AnalyticsClient
8
+ */
9
+ log<TType extends import("./interfaces").UserAction, TData extends AnalyticsDataPayload>(eventType: TType, data: TData, actionContext?: ActionContext, eventVersion?: EventVersion): void;
10
+ };
@@ -0,0 +1,30 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from "../../common/src/backbone";
3
+ import { ActionContext, AnalyticsOptions, ActionDescriptor, InteractionTypeDescriptor, InteractionType } from "./interfaces";
4
+ export declare const AnalyticsHelper: {
5
+ logUserAction(data: ObjectHash | ObjectHash[], analyticsOptions: AnalyticsOptions): void;
6
+ logNavigate(appLink: Core.AppLink, options: ObjectHash): void;
7
+ mergeOptions(baseOptions: AnalyticsOptions, newOptions: AnalyticsOptions): AnalyticsOptions;
8
+ buildActionContext(options?: AnalyticsOptions): ActionContext;
9
+ buildUserActionEvent(options?: AnalyticsOptions): ObjectHash;
10
+ buildCurrentLocation(): string;
11
+ /**
12
+ * Search logging helpers
13
+ */
14
+ /**
15
+ * Create a search event that is depenedent on whether we page loaded into search
16
+ * or used the search bar directly.
17
+ */
18
+ buildSearchEvent(query: string, descriptor: ActionDescriptor): ObjectHash;
19
+ buildInstantSearchEvent(query: string, suggestion: ObjectHash, source: string): ObjectHash;
20
+ /**
21
+ * Resources Helpers
22
+ */
23
+ /**
24
+ * Map our general InteractionType to an appropriate anayltics descriptor type.
25
+ * The reason we do this is to maintain a seperation between analytics metadata and
26
+ * actual domain data.
27
+ * @param type
28
+ */
29
+ mapInteractionType(type: InteractionType): InteractionTypeDescriptor;
30
+ };
@@ -0,0 +1,4 @@
1
+ export declare enum EventFirehose {
2
+ Inlet = "event:inlet",
3
+ Outlet = "event:outlet"
4
+ }
@@ -0,0 +1,3 @@
1
+ export declare const GlobalChannels: {
2
+ ANALYTICS: string;
3
+ };
@@ -0,0 +1,4 @@
1
+ export declare enum Services {
2
+ Analytics = "AnalyticsService",
3
+ Context = "ContextService"
4
+ }
@@ -56,6 +56,8 @@ export declare enum UserAction {
56
56
  EditAssoc = "cv_product_edit_assoc",
57
57
  Play = "cv_product_play",
58
58
  Favourite = "cv_product_favourite",
59
+ Follow = "cv_product_follow",
60
+ Prefer = "cv_product_prefer",
59
61
  SetAccess = "cv_product_set_access",
60
62
  AddToLocalCache = "cv_product_add_to_lc",
61
63
  /**
@@ -94,6 +96,14 @@ export declare enum EntityType {
94
96
  ClassroomGroup = "classroom_group",
95
97
  Classification = "classification",
96
98
  ShareLink = "share_link",
99
+ Upload = "upload",
100
+ SearchResults = "search_results",
101
+ Audience = "audience",
102
+ /**
103
+ * `user` cannot be the value here because when we log these events to Snowflake, the event object
104
+ * puts the current user's data under the `user` key. If we were to log events with `user` as the entity
105
+ * name, this data would be overwritten and lost.
106
+ */
97
107
  User = "target_user"
98
108
  }
99
109
  export declare enum LocationContext {
@@ -128,12 +138,22 @@ export declare enum LocationContext {
128
138
  PlaylistListHeader = "playlist_list_header",
129
139
  PlaylistListItem = "playlist_list_item",
130
140
  TeacherManager = "teacher_manager",
141
+ TeacherManagerListItem = "teacher_manager_list_item",
131
142
  StudentManager = "student_manager",
143
+ StudentManagerListItem = "student_manager_list_item",
144
+ ClassroomsList = "classrooms_list",
132
145
  ClassroomsListItem = "classrooms_list_item",
133
146
  ClassroomOverview = "classroom_overview",
134
- ManageClassroom = "manage_classroom",
147
+ ClassroomOverviewStudentListItem = "classroom_overview_student_list_item",
148
+ ManageClassroomStudents = "manage_classroom_students",
135
149
  ManageClassroomStudentListItem = "manage_classroom_student_list_item",
136
- PlayPage = "play_page"
150
+ ManageClassroomGroups = "manage_classroom_groups",
151
+ ManageClassroomGroupListItem = "manage_classroom_group_list_item",
152
+ PlayPage = "play_page",
153
+ FloatingPlayer = "floating_player",
154
+ ContentUpdatesClassificationBanner = "content_updates_classification_banner",
155
+ PreferencesSettings = "preferences_settings",
156
+ MyUploads = "my_uploads"
137
157
  }
138
158
  export declare enum WorkflowPhase {
139
159
  Start = "start",
@@ -188,7 +208,9 @@ export declare enum ClickDescriptor {
188
208
  Title = "title",
189
209
  ToggleHideValidListings = "toggle_hide_valid_listings",
190
210
  LaunchImmersiveReader = "launch_immersive_reader",
191
- CopyEmbedHtml = "copy_embed_html"
211
+ CopyEmbedHtml = "copy_embed_html",
212
+ Close = "close",
213
+ Open = "open"
192
214
  }
193
215
  export declare enum CustomerSettingDescriptor {
194
216
  LibraryReview = "library_review"
@@ -0,0 +1,49 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { AnalyticsEventType, ActionContext } from "../interfaces";
3
+ import { EventVersion } from "../interfaces";
4
+ interface Enrichment {
5
+ [prop: string]: string;
6
+ }
7
+ export interface DataObjectPayload extends ObjectHash {
8
+ }
9
+ export interface DataCollectionPayload extends Array<ObjectHash> {
10
+ }
11
+ export declare type AnalyticsDataPayload = DataObjectPayload | DataCollectionPayload;
12
+ /**
13
+ * Base AnalyticsEvent Object.
14
+ * Acts as a wrapper for our events, encapsulating the event type
15
+ * and a data payload.
16
+ */
17
+ export declare class AnalyticsEvent<TType extends AnalyticsEventType, TPayload extends AnalyticsDataPayload> {
18
+ type: TType;
19
+ data: TPayload;
20
+ actionContext: ActionContext;
21
+ eventVersion: EventVersion;
22
+ constructor(type: TType, data: TPayload, actionContext?: ActionContext, eventVersion?: EventVersion);
23
+ /**
24
+ * Utility function that allows us to create type guards.
25
+ * @param type EventType
26
+ */
27
+ isType(type: TType): this is TType;
28
+ /**
29
+ * Mix different enrichments into the base AnalyticsEvent object
30
+ * to keep it as flat as possible.
31
+ *
32
+ * @param key Top level enrichment name
33
+ * @param value Either a string or set of KV Pairs
34
+ */
35
+ enrich(key: string, value: string | Enrichment): void;
36
+ get(key: string): string | Enrichment;
37
+ /**
38
+ * Check that the incoming enrichment doesn't clash with
39
+ * a pre-existing enrichement.
40
+ *
41
+ * @param key
42
+ */
43
+ private validateKey;
44
+ }
45
+ /**
46
+ * Alias our analytics type to make our function signatures and typings a little cleaner
47
+ */
48
+ export declare type CoreAnalyticsType = AnalyticsEvent<AnalyticsEventType, AnalyticsDataPayload>;
49
+ export {};
@@ -0,0 +1,19 @@
1
+ import { Core } from "../../../common/src/backbone";
2
+ interface ApplicationContext {
3
+ pageLoad: boolean;
4
+ appLink: Core.AppLink;
5
+ }
6
+ export interface AppContextServiceOptions {
7
+ }
8
+ export declare class StaticContextService extends Core.Service {
9
+ private static instance;
10
+ private contextHistory;
11
+ get name(): string;
12
+ static get Instance(): StaticContextService;
13
+ initialize(): void;
14
+ private setContext;
15
+ getCurrentContext(): ApplicationContext;
16
+ fromPageLoad(): boolean;
17
+ }
18
+ export declare const ContextService: StaticContextService;
19
+ export {};
@@ -32,6 +32,7 @@ export declare class BaseAppRouter extends Marionette.AppRouter {
32
32
  */
33
33
  protected appRoutes?: Marionette.AppRoutes;
34
34
  protected appLinks?: string[];
35
+ protected externalRoutes?: Marionette.AppRoutes;
35
36
  /**
36
37
  * The channelName used to trigger the appLinks
37
38
  * on backbone.radio. This will match the Application's
@@ -52,11 +53,14 @@ export declare class BaseAppRouter extends Marionette.AppRouter {
52
53
  protected options?: BaseAppRouterOptions;
53
54
  constructor(options?: BaseAppRouterOptions);
54
55
  private bindDisposal;
56
+ private addRouteLookup;
55
57
  /**
56
58
  * Creates all the reverse route lookups
57
59
  * and binds all the appLinks to the radio channel
58
60
  */
59
- private processAppEvents;
61
+ private processInternalRoutes;
62
+ private processExternalRoutes;
63
+ private processAppLinks;
60
64
  /**
61
65
  * This is the heart of the AppRouter. Every single route both page loads
62
66
  * and appLinks will go through this method.
@@ -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';
@@ -23,5 +23,4 @@ export declare class PlaylistsApplication extends Core.Application {
23
23
  uploadImage(imageType: ImageType): void;
24
24
  protected onShowAlert(options?: ObjectHash): void;
25
25
  private getPopupProps;
26
- private navigate;
27
26
  }
@@ -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 {};
@@ -0,0 +1,22 @@
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
+ };
@@ -0,0 +1 @@
1
+ export * from './PlaylistDataService';
@@ -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 {};
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1 @@
1
+ export * from './SeriesDataService';
@@ -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 {};
@@ -0,0 +1,14 @@
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
+ };
@@ -0,0 +1 @@
1
+ export * from './VideoDataService';
@@ -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,4 @@ 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
+ export { Core, InstanceManager, FifoMemoryCache, AjaxDataProvider, 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-dev.1",
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-dev.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-dev.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.1",
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
+ }