@clickview/curator 1.0.19 → 1.0.20-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.
- package/dist/curator-app.js +2 -2
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +57 -5
- 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/release-notes/constants/MonorepoVersions.d.ts +1 -1
- 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
|
@@ -85,6 +85,7 @@ export declare enum EntityType {
|
|
|
85
85
|
Interactive = "interactive",
|
|
86
86
|
PDF = "pdf",
|
|
87
87
|
CustomerSetting = "customer_setting",
|
|
88
|
+
UserSetting = "user_setting",
|
|
88
89
|
StaffRequest = "staff_request",
|
|
89
90
|
Logo = "logo",
|
|
90
91
|
Pagination = "pagination",
|
|
@@ -101,7 +102,11 @@ export declare enum EntityType {
|
|
|
101
102
|
Upload = "upload",
|
|
102
103
|
SearchResults = "search_results",
|
|
103
104
|
Audience = "audience",
|
|
104
|
-
User = "user"
|
|
105
|
+
User = "user",
|
|
106
|
+
Clip = "clip",
|
|
107
|
+
UserChannel = "user_channel",
|
|
108
|
+
Widget = "widget",
|
|
109
|
+
Url = "url"
|
|
105
110
|
}
|
|
106
111
|
export declare enum LocationContext {
|
|
107
112
|
TopNav = "top_nav",
|
|
@@ -152,7 +157,13 @@ export declare enum LocationContext {
|
|
|
152
157
|
EmbeddedPlayer = "embedded_player",
|
|
153
158
|
ContentUpdatesClassificationBanner = "content_updates_classification_banner",
|
|
154
159
|
PreferencesSettings = "preferences_settings",
|
|
155
|
-
MyUploads = "my_uploads"
|
|
160
|
+
MyUploads = "my_uploads",
|
|
161
|
+
SlidingList = "sliding_list",
|
|
162
|
+
HeroBannerItem = "hero_banner_item",
|
|
163
|
+
SlidingListItem = "sliding_list_item",
|
|
164
|
+
ClassificationListItem = "classification_list_item",
|
|
165
|
+
ClassificationComingSoon = "classification_coming_soon",
|
|
166
|
+
Dashboard = "dashboard"
|
|
156
167
|
}
|
|
157
168
|
export declare enum WorkflowPhase {
|
|
158
169
|
Start = "start",
|
|
@@ -203,13 +214,54 @@ export declare enum ClickDescriptor {
|
|
|
203
214
|
TogglePreview = "toggle_preview",
|
|
204
215
|
NavigateHome = "navigate_home",
|
|
205
216
|
OpenInStaffView = "open_in_staff_view",
|
|
206
|
-
Thumbnail = "thumbnail",
|
|
207
217
|
Title = "title",
|
|
208
218
|
ToggleHideValidListings = "toggle_hide_valid_listings",
|
|
209
219
|
LaunchImmersiveReader = "launch_immersive_reader",
|
|
210
220
|
CopyEmbedHtml = "copy_embed_html",
|
|
211
221
|
Close = "close",
|
|
212
|
-
Open = "open"
|
|
222
|
+
Open = "open",
|
|
223
|
+
Button = "button",
|
|
224
|
+
Link = "link",
|
|
225
|
+
Tile = "tile",
|
|
226
|
+
Thumbnail = "thumbnail",
|
|
227
|
+
Cover = "cover",
|
|
228
|
+
TallPoster = "tall_poster",
|
|
229
|
+
Slide = "slide"
|
|
230
|
+
}
|
|
231
|
+
export declare enum VideoActionDescriptor {
|
|
232
|
+
FeatureUserChannelVideo = "feature_user_channel_video",
|
|
233
|
+
RemoveFromUserChannelPlaylist = "remove_from_user_channel_playlist",
|
|
234
|
+
ShareClip = "share_clip",
|
|
235
|
+
ViewOriginalVideo = "view_original_video",
|
|
236
|
+
ShareInteractive = "share_interactive",
|
|
237
|
+
DeleteInteractiveVideo = "delete_interactive_video",
|
|
238
|
+
CopyInteractiveVideo = "copy_interactive_video",
|
|
239
|
+
EditInteractiveVideo = "edit_interactive_video",
|
|
240
|
+
PrintAsWorksheet = "print_as_worksheet",
|
|
241
|
+
PreviewInteractiveVideo = "preview_interactive_video",
|
|
242
|
+
ViewResults = "view_results",
|
|
243
|
+
MoveToAnotherFolder = "move_to_another_folder",
|
|
244
|
+
CreateInteractiveVideo = "create_interactive_video",
|
|
245
|
+
ShareVideo = "share_video",
|
|
246
|
+
EditVideo = "edit_video",
|
|
247
|
+
DownloadVideo = "download_video",
|
|
248
|
+
AddToExchange = "add_to_exchange",
|
|
249
|
+
AddToUserChannel = "add_to_user_channel",
|
|
250
|
+
CreateClip = "create_clip",
|
|
251
|
+
FlagVideo = "flag_video",
|
|
252
|
+
AddToLibrary = "add_to_library",
|
|
253
|
+
AddToWorkspace = "add_to_workspace",
|
|
254
|
+
AddToPlaylist = "add_to_playlist",
|
|
255
|
+
AddCurriculumLink = "add_curriculum_link",
|
|
256
|
+
ViewCurriculumLinks = "view_curriculum_links",
|
|
257
|
+
OpenInCurator = "open_in_curator",
|
|
258
|
+
ManageVideoAccess = "manage_video_access",
|
|
259
|
+
Approve = "approve",
|
|
260
|
+
AddToLocalCache = "add_to_local_cache",
|
|
261
|
+
OpenInLibraryEditor = "open_in_library_editor",
|
|
262
|
+
PlayClip = "play_clip",
|
|
263
|
+
EditClip = "edit_clip",
|
|
264
|
+
DeleteClip = "delete_clip"
|
|
213
265
|
}
|
|
214
266
|
export declare enum CustomerSettingDescriptor {
|
|
215
267
|
LibraryReview = "library_review"
|
|
@@ -232,7 +284,7 @@ export declare enum ToggleDescriptor {
|
|
|
232
284
|
/**
|
|
233
285
|
* Action descriptors give further context to UserActions
|
|
234
286
|
*/
|
|
235
|
-
export declare type ActionDescriptor = OperationDescriptor | SortDescriptor | FilterDescriptor | DirectSearchDescriptor | PageDescriptor | PlaybackDescriptor | CustomerSettingDescriptor | SuggestionDescriptor | InteractionTypeDescriptor | AssocDescriptor | ClickDescriptor | ToggleDescriptor;
|
|
287
|
+
export declare type ActionDescriptor = OperationDescriptor | SortDescriptor | FilterDescriptor | DirectSearchDescriptor | PageDescriptor | PlaybackDescriptor | CustomerSettingDescriptor | SuggestionDescriptor | InteractionTypeDescriptor | AssocDescriptor | ClickDescriptor | ToggleDescriptor | VideoActionDescriptor;
|
|
236
288
|
/**
|
|
237
289
|
* Placeholder values to be used in circumstances where we need
|
|
238
290
|
* 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 +1 @@
|
|
|
1
|
-
export declare const monorepoVersionsTemplate = "# Final Package Versions\n\n| Package | Version |\n| ------------------------- | ------------------------ |\n| @clickview/analytics | <analytics-version> |\n| @clickview/styles | <styles-version> |\n| @clickview/tooling | <tooling-version> |\n| @clickview/curator | <curator-version> |\n| @clickview/library-editor | <library-editor-version> |\n| @clickview/lite | <lite-version> |\n| @clickview/online | <online-version> |\n";
|
|
1
|
+
export declare const monorepoVersionsTemplate = "# Final Package Versions\n\n| Package | Version |\n| ------------------------- | ------------------------ |\n| @clickview/analytics | <analytics-version> |\n| @clickview/styles | <styles-version> |\n| @clickview/tooling | <tooling-version> |\n| @clickview/curator | <curator-version> |\n| @clickview/library-editor | <library-editor-version> |\n| @clickview/lite | <lite-version> |\n| @clickview/online | <online-version> |\n| @clickview/player | <player-version> |\n";
|
|
@@ -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.1",
|
|
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.1",
|
|
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
|