@clickview/curator 1.0.19 → 1.0.20-rc.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 (32) hide show
  1. package/dist/curator-app.js +1 -1
  2. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +38 -2
  3. package/dist/libs/common/src/backbone/core/BaseView.d.ts +4 -0
  4. package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
  5. package/dist/libs/shared/src/constants/AppVariables.d.ts +1 -0
  6. package/dist/libs/shared/src/enums/SettingName.d.ts +15 -1
  7. package/dist/libs/shared/src/flight-requests/ThemeRequests.d.ts +11 -0
  8. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +2 -1
  9. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
  10. package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +2 -2
  11. package/dist/libs/shared/src/interfaces/models/Theme.d.ts +7 -3
  12. package/dist/libs/shared/src/interfaces/models/User.d.ts +1 -1
  13. package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +7 -0
  14. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +4 -0
  15. package/dist/libs/shared/src/interfaces/services/index.d.ts +2 -0
  16. package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -0
  17. package/dist/projects/curator/src/apps/themes/components/edit-theme/EditTheme.d.ts +1 -2
  18. package/dist/projects/curator/src/apps/themes/components/edit-theme/ThemeValidation.d.ts +2 -2
  19. package/package.json +2 -2
  20. package/dist/projects/curator/src/apps/subjects/context/PresentationContext.d.ts +0 -6
  21. package/dist/projects/curator/src/apps/subjects/context/SubjectsAppContext.d.ts +0 -4
  22. package/dist/projects/curator/src/apps/subjects/context/index.d.ts +0 -2
  23. package/dist/projects/curator/src/apps/subjects/enums/SubjectMemberType.d.ts +0 -5
  24. package/dist/projects/curator/src/apps/subjects/views/audiences/edit-audiences-list/EditAudiencesListView.d.ts +0 -6
  25. package/dist/projects/curator/src/apps/subjects/views/audiences/edit-audiences-list/index.d.ts +0 -1
  26. package/dist/projects/curator/src/apps/subjects/views/levels/edit-levels-list/EditLevelsListView.d.ts +0 -2
  27. package/dist/projects/curator/src/apps/subjects/views/levels/edit-levels-list/index.d.ts +0 -1
  28. package/dist/projects/curator/src/apps/themes/flight-requests/ThemeRequests.d.ts +0 -11
  29. package/dist/projects/curator/src/apps/themes/interfaces/CreateOrUpdateThemeRequest.d.ts +0 -7
  30. package/dist/projects/curator/src/apps/themes/interfaces/index.d.ts +0 -1
  31. package/dist/projects/curator/src/shared/flight-requests/index.d.ts +0 -1
  32. /package/dist/projects/curator/src/shared/constants/{ViewModelKeys.d.ts → CuratorViewModels.d.ts} +0 -0
@@ -101,7 +101,8 @@ export declare enum EntityType {
101
101
  Upload = "upload",
102
102
  SearchResults = "search_results",
103
103
  Audience = "audience",
104
- User = "user"
104
+ User = "user",
105
+ Clip = "clip"
105
106
  }
106
107
  export declare enum LocationContext {
107
108
  TopNav = "top_nav",
@@ -211,6 +212,41 @@ export declare enum ClickDescriptor {
211
212
  Close = "close",
212
213
  Open = "open"
213
214
  }
215
+ export declare enum VideoActionDescriptor {
216
+ FeatureUserChannelVideo = "feature_user_channel_video",
217
+ RemoveFromUserChannelPlaylist = "remove_from_user_channel_playlist",
218
+ ShareClip = "share_clip",
219
+ ViewOriginalVideo = "view_original_video",
220
+ ShareInteractive = "share_interactive",
221
+ DeleteInteractiveVideo = "delete_interactive_video",
222
+ CopyInteractiveVideo = "copy_interactive_video",
223
+ EditInteractiveVideo = "edit_interactive_video",
224
+ PrintAsWorksheet = "print_as_worksheet",
225
+ PreviewInteractiveVideo = "preview_interactive_video",
226
+ ViewResults = "view_results",
227
+ MoveToAnotherFolder = "move_to_another_folder",
228
+ CreateInteractiveVideo = "create_interactive_video",
229
+ ShareVideo = "share_video",
230
+ EditVideo = "edit_video",
231
+ DownloadVideo = "download_video",
232
+ AddToExchange = "add_to_exchange",
233
+ AddToUserChannel = "add_to_user_channel",
234
+ CreateClip = "create_clip",
235
+ FlagVideo = "flag_video",
236
+ AddToLibrary = "add_to_library",
237
+ AddToWorkspace = "add_to_workspace",
238
+ AddToPlaylist = "add_to_playlist",
239
+ AddCurriculumLink = "add_curriculum_link",
240
+ ViewCurriculumLinks = "view_curriculum_links",
241
+ OpenInCurator = "open_in_curator",
242
+ ManageVideoAccess = "manage_video_access",
243
+ Approve = "approve",
244
+ AddToLocalCache = "add_to_local_cache",
245
+ OpenInLibraryEditor = "open_in_library_editor",
246
+ PlayClip = "play_clip",
247
+ EditClip = "edit_clip",
248
+ DeleteClip = "delete_clip"
249
+ }
214
250
  export declare enum CustomerSettingDescriptor {
215
251
  LibraryReview = "library_review"
216
252
  }
@@ -232,7 +268,7 @@ export declare enum ToggleDescriptor {
232
268
  /**
233
269
  * Action descriptors give further context to UserActions
234
270
  */
235
- export declare type ActionDescriptor = OperationDescriptor | SortDescriptor | FilterDescriptor | DirectSearchDescriptor | PageDescriptor | PlaybackDescriptor | CustomerSettingDescriptor | SuggestionDescriptor | InteractionTypeDescriptor | AssocDescriptor | ClickDescriptor | ToggleDescriptor;
271
+ export declare type ActionDescriptor = OperationDescriptor | SortDescriptor | FilterDescriptor | DirectSearchDescriptor | PageDescriptor | PlaybackDescriptor | CustomerSettingDescriptor | SuggestionDescriptor | InteractionTypeDescriptor | AssocDescriptor | ClickDescriptor | ToggleDescriptor | VideoActionDescriptor;
236
272
  /**
237
273
  * Placeholder values to be used in circumstances where we need
238
274
  * to simply signify that a change has occurred. Particularly if it is
@@ -39,6 +39,10 @@ export declare class CoreView<TModel extends BaseModel = BaseModel> extends Mari
39
39
  * when this view is rendered.
40
40
  */
41
41
  title: string | boolean;
42
+ /**
43
+ * The i18n namespace used in the view
44
+ */
45
+ lang?: string;
42
46
  /**
43
47
  * The default properties that will be taken
44
48
  * from `options` and added to the context.
@@ -9,5 +9,6 @@ export declare const UrlHelper: {
9
9
  buildFilter(params: FilterParams): string;
10
10
  makeHttps(url: string): string;
11
11
  safeUrlConcat(baseUrl: string, path: string): string;
12
+ removeTrailingSlash(baseUrl: string): string;
12
13
  };
13
14
  export {};
@@ -1,4 +1,5 @@
1
1
  export declare const AppVariables: {
2
2
  SEARCH: string;
3
3
  NOTIFICATIONS: string;
4
+ SUBJECTS: string;
4
5
  };
@@ -1,4 +1,18 @@
1
1
  export declare enum SettingName {
2
+ FollowingBetaAccess = "following_beta_access",
3
+ MustCompleteOnboarding = "must_complete_onboarding",
4
+ StudentWorkspaceSharing = "student_ws_sharing",
5
+ StudentToStudentMessaging = "student_to_student_messaging",
6
+ HideResourcesForStudents = "hide_resources_for_students",
7
+ LibraryReview = "library_review",
8
+ SchoolMessaging = "school_messaging",
9
+ LegacyTvNaming = "legacy_tv_naming",
10
+ LegacyAlbertCustomer = "legacy_albert_customer",
11
+ HideHostedLibraries = "hide_hosted_libraries",
12
+ StaffRequest = "staff_request",
13
+ MaxCustomLibraries = "max_custom_libraries",
14
+ CustomLibrariesBetaAccess = "custom_libraries_beta_access",
15
+ AutoCaptioning = "auto_captioning",
2
16
  HasCompletedOnboarding = "has_completed_onboarding",
3
- FollowingBetaAccess = "following_beta_access"
17
+ BulkOnboardingPreferencesState = "bulk_onboarding_preferences_state"
4
18
  }
@@ -0,0 +1,11 @@
1
+ import { Flight } from "../../../common/src/react";
2
+ import { HashObject } from "../../../common/src/react/interfaces/HashObject";
3
+ import { Xhr } from "../../../common/src/backbone/interfaces";
4
+ import { Theme } from "../interfaces";
5
+ export declare const ThemeRequests: {
6
+ theme(id: string): Flight.Request;
7
+ themes(type?: string): Flight.Request;
8
+ createTheme(data: Theme, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
9
+ updateTheme(id: string, data: Theme, 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,6 +1,7 @@
1
1
  import { Flight } from "../../../common/src/react";
2
+ import { CurrentUser } from "../interfaces";
2
3
  export declare const UserRequests: {
3
- currentUser: Flight.Request;
4
+ currentUser(success?: (user: CurrentUser) => void, error?: () => void): Flight.Request;
4
5
  workspace: Flight.Request;
5
6
  sendVerificationEmail(emailAddress: string, success: () => void, error: () => void, always: () => void): Flight.Request;
6
7
  };
@@ -11,4 +11,5 @@ export interface SearchAppLinks {
11
11
  export declare abstract class BaseSearchAppVariables {
12
12
  abstract get appLinks(): SearchAppLinks;
13
13
  get name(): string;
14
+ abstract get addSlugs(): boolean;
14
15
  }
@@ -1,9 +1,9 @@
1
1
  import { SettingKind } from "../../enums/SettingKind";
2
2
  import { SettingName } from "../../enums/SettingName";
3
- export interface EntitySetting {
3
+ export interface EntitySetting<TValue = any> {
4
4
  name: SettingName;
5
5
  displayName: string;
6
- value: any;
6
+ value: TValue;
7
7
  type: string;
8
8
  kind: SettingKind;
9
9
  }
@@ -1,8 +1,12 @@
1
1
  import { BaseObject } from './primitives';
2
2
  import { ThemeType } from "../../enums/ThemeType";
3
- export declare type ThemeData = {
4
- [key: string]: object;
5
- };
3
+ import { HeroBanner } from './HeroBanner';
4
+ export interface ThemeData {
5
+ bottomLeft: HeroBanner;
6
+ bottomRight: HeroBanner;
7
+ topLeft: HeroBanner;
8
+ topRight: HeroBanner;
9
+ }
6
10
  export interface Theme extends BaseObject {
7
11
  name: string;
8
12
  type: ThemeType;
@@ -32,7 +32,7 @@ export interface CurrentUser extends BaseObject {
32
32
  username: string;
33
33
  avatar: string;
34
34
  timeZone: string;
35
- role: UserRole;
35
+ role: 'Admin' | 'Guest' | 'User' | 'SuperAdmin';
36
36
  displayName: string;
37
37
  givenName: string;
38
38
  familyName: string;
@@ -0,0 +1,7 @@
1
+ import { SettingName } from "../../enums/SettingName";
2
+ import { EntitySetting } from "./..";
3
+ import { SettingKind } from "../../enums/SettingKind";
4
+ export interface BaseSettingsDataService<TSettingModel = EntitySetting, TSettingCollection = EntitySetting[]> {
5
+ getSetting: (entityId: string, name: SettingName, callback?: (data: TSettingModel) => void) => TSettingModel;
6
+ getSettings: (entityId: string, kind?: SettingKind, callback?: (data: TSettingCollection) => void) => TSettingCollection;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { CurrentUser } from "./..";
2
+ export interface BaseUserDataService {
3
+ getCurrentUser(success?: (user: CurrentUser) => void, error?: () => void): void;
4
+ }
@@ -2,3 +2,5 @@ export * from './BaseVideoDataService';
2
2
  export * from './BaseVideoUploadDataService';
3
3
  export * from './BaseLibraryDataService';
4
4
  export * from './BaseSeriesDataService';
5
+ export * from './BaseSettingsDataService';
6
+ export * from './BaseUserDataService';
@@ -10,6 +10,7 @@ export interface ImageOptions {
10
10
  resizeType?: ResizeType;
11
11
  ratio?: string;
12
12
  name?: string;
13
+ format?: 'png' | 'jpg';
13
14
  }
14
15
  export interface CategoryMapperImageOptions {
15
16
  fallbackBaseUrl: string;
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { Theme } from "../../../../../../../libs/shared/src/interfaces";
3
3
  import { ActionOptions } from "../../../../../../../libs/shared/src/components/actions/Actions";
4
- import { CreateOrUpdateThemeRequest } from "../../interfaces";
5
4
  interface EditThemeProps {
6
- saveTheme: (data: CreateOrUpdateThemeRequest, onDone: () => void) => void;
5
+ saveTheme: (data: Theme, onDone: () => void) => void;
7
6
  theme?: Theme;
8
7
  actions?: ActionOptions[];
9
8
  }
@@ -1,3 +1,3 @@
1
1
  import * as Yup from 'yup';
2
- import { CreateOrUpdateThemeRequest } from "../../interfaces";
3
- export declare const ThemeValidationSchema: Yup.ObjectSchema<Yup.Shape<object, CreateOrUpdateThemeRequest>>;
2
+ import { Theme } from "../../../../../../../libs/shared/src/interfaces";
3
+ export declare const ThemeValidationSchema: Yup.ObjectSchema<Yup.Shape<object, Theme>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/curator",
3
- "version": "1.0.19",
3
+ "version": "1.0.20-rc.0",
4
4
  "description": "curator",
5
5
  "main": "dist/curator-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@types/yup": "0.26.24"
28
28
  },
29
29
  "dependencies": {
30
- "@clickview/styles": "1.0.8",
30
+ "@clickview/styles": "1.0.9-rc.0",
31
31
  "cropperjs": "1.5.6",
32
32
  "marked": "0.8.0",
33
33
  "react-copy-to-clipboard": "5.0.2",
@@ -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,2 +0,0 @@
1
- export * from './PresentationContext';
2
- export * from './SubjectsAppContext';
@@ -1,5 +0,0 @@
1
- export declare enum SubjectMemberType {
2
- Playlists = "playlists",
3
- Series = "series",
4
- Videos = "videos"
5
- }
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- interface EditAudiencesListViewProps {
3
- presentationId: string;
4
- }
5
- export declare function EditAudiencesListView(props: EditAudiencesListViewProps): React.ReactElement;
6
- export {};
@@ -1 +0,0 @@
1
- export * from './EditAudiencesListView';
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare function EditLevelsListView(): React.ReactElement;
@@ -1 +0,0 @@
1
- export * from './EditLevelsListView';
@@ -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,7 +0,0 @@
1
- import { ThemeType } from "../../../../../../libs/shared/src/enums/ThemeType";
2
- import { ThemeData } from "../../../../../../libs/shared/src/interfaces";
3
- export interface CreateOrUpdateThemeRequest {
4
- name: string;
5
- type: ThemeType;
6
- data: ThemeData;
7
- }
@@ -1 +0,0 @@
1
- export * from './CreateOrUpdateThemeRequest';
@@ -1 +0,0 @@
1
- export * from './RatingRequests';