@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.
- package/dist/curator-app.js +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +38 -2
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +4 -0
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
- package/dist/libs/shared/src/constants/AppVariables.d.ts +1 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +15 -1
- package/dist/libs/shared/src/flight-requests/ThemeRequests.d.ts +11 -0
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/Theme.d.ts +7 -3
- package/dist/libs/shared/src/interfaces/models/User.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +2 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -0
- package/dist/projects/curator/src/apps/themes/components/edit-theme/EditTheme.d.ts +1 -2
- package/dist/projects/curator/src/apps/themes/components/edit-theme/ThemeValidation.d.ts +2 -2
- package/package.json +2 -2
- package/dist/projects/curator/src/apps/subjects/context/PresentationContext.d.ts +0 -6
- package/dist/projects/curator/src/apps/subjects/context/SubjectsAppContext.d.ts +0 -4
- package/dist/projects/curator/src/apps/subjects/context/index.d.ts +0 -2
- package/dist/projects/curator/src/apps/subjects/enums/SubjectMemberType.d.ts +0 -5
- package/dist/projects/curator/src/apps/subjects/views/audiences/edit-audiences-list/EditAudiencesListView.d.ts +0 -6
- package/dist/projects/curator/src/apps/subjects/views/audiences/edit-audiences-list/index.d.ts +0 -1
- package/dist/projects/curator/src/apps/subjects/views/levels/edit-levels-list/EditLevelsListView.d.ts +0 -2
- package/dist/projects/curator/src/apps/subjects/views/levels/edit-levels-list/index.d.ts +0 -1
- package/dist/projects/curator/src/apps/themes/flight-requests/ThemeRequests.d.ts +0 -11
- package/dist/projects/curator/src/apps/themes/interfaces/CreateOrUpdateThemeRequest.d.ts +0 -7
- package/dist/projects/curator/src/apps/themes/interfaces/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/flight-requests/index.d.ts +0 -1
- /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.
|
|
@@ -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
|
-
|
|
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
|
};
|
|
@@ -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:
|
|
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
|
-
|
|
4
|
-
|
|
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;
|
|
@@ -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
|
+
}
|
|
@@ -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:
|
|
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 {
|
|
3
|
-
export declare const ThemeValidationSchema: Yup.ObjectSchema<Yup.Shape<object,
|
|
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.
|
|
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.
|
|
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>)>;
|
package/dist/projects/curator/src/apps/subjects/views/audiences/edit-audiences-list/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './EditAudiencesListView';
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export * from './CreateOrUpdateThemeRequest';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RatingRequests';
|
/package/dist/projects/curator/src/shared/constants/{ViewModelKeys.d.ts → CuratorViewModels.d.ts}
RENAMED
|
File without changes
|