@clickview/curator 1.0.18-dev.0 → 1.0.18-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 (27) hide show
  1. package/dist/curator-app.css +0 -2
  2. package/dist/curator-app.css.map +1 -0
  3. package/dist/curator-app.js +3 -3
  4. package/dist/curator-app.js.map +1 -0
  5. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +6 -5
  6. package/dist/libs/analytics/src/interfaces/User.d.ts +0 -11
  7. package/dist/libs/common/src/react/utils/TextHelper.d.ts +10 -0
  8. package/dist/libs/shared/src/components/actions/ActionButton.d.ts +2 -6
  9. package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +1 -2
  10. package/dist/libs/shared/src/interfaces/models/Library.d.ts +0 -2
  11. package/dist/libs/shared/src/interfaces/models/Video.d.ts +2 -1
  12. package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -2
  13. package/dist/projects/curator/src/apps/cherry-picker/CherryPickerApplication.d.ts +14 -0
  14. package/dist/projects/curator/src/apps/cherry-picker/components/cherry-picker-form/CherryPickerForm.d.ts +9 -0
  15. package/dist/projects/curator/src/apps/cherry-picker/interfaces/CherryPickerConfig.d.ts +5 -0
  16. package/dist/projects/curator/src/apps/cherry-picker/validation/CherryPickerValidation.d.ts +3 -0
  17. package/dist/projects/curator/src/apps/cherry-picker/views/cherry-picker-form/CherryPickerFormView.d.ts +2 -0
  18. package/dist/projects/curator/src/apps/cherry-picker/views/cherry-picker-results/CherryPickerResultsView.d.ts +2 -0
  19. package/dist/projects/curator/src/apps/release-notes/flight-requests/GitLabRequests.d.ts +2 -1
  20. package/dist/projects/curator/src/index.d.ts +1 -3
  21. package/dist/projects/curator/src/shared/constants/CuratorActions.d.ts +0 -4
  22. package/dist/projects/curator/src/shared/constants/RadioChannels.d.ts +0 -1
  23. package/dist/projects/curator/src/shared/constants/ViewModelKeys.d.ts +1 -0
  24. package/dist/projects/curator/src/shared/utils/StringHelper.d.ts +0 -1
  25. package/package.json +3 -5
  26. package/dist/libs/common/src/backbone/utils/ConcurrencyHelper.d.ts +0 -13
  27. package/dist/projects/curator/src/shared/services/LanguageDataService.d.ts +0 -11
@@ -23,9 +23,7 @@ export declare enum UserAction {
23
23
  * The following events are listed in CollectionApi
24
24
  */
25
25
  Stream = "cv_product_stream",
26
- StreamRaw = "cv_product_stream_raw",
27
26
  WebPlayerStream = "cv_product_webplayer_stream",
28
- StreamProgress = "cv_product_stream_progress",
29
27
  Login = "cv_product_login",
30
28
  LoginSsoRedirect = "cv_product_login_sso_redirect",
31
29
  LoginFailed = "cv_product_login_failed",
@@ -101,7 +99,12 @@ export declare enum EntityType {
101
99
  Upload = "upload",
102
100
  SearchResults = "search_results",
103
101
  Audience = "audience",
104
- User = "user"
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
+ */
107
+ User = "target_user"
105
108
  }
106
109
  export declare enum LocationContext {
107
110
  TopNav = "top_nav",
@@ -148,8 +151,6 @@ export declare enum LocationContext {
148
151
  ManageClassroomGroupListItem = "manage_classroom_group_list_item",
149
152
  PlayPage = "play_page",
150
153
  FloatingPlayer = "floating_player",
151
- InteractivePlayer = "interactive_player",
152
- EmbeddedPlayer = "embedded_player",
153
154
  ContentUpdatesClassificationBanner = "content_updates_classification_banner",
154
155
  PreferencesSettings = "preferences_settings",
155
156
  MyUploads = "my_uploads"
@@ -1,17 +1,6 @@
1
1
  import { BaseObject } from "./";
2
- export declare enum UserGroup {
3
- Staff = "staff",
4
- Learner = "learner",
5
- Unknown = "unknown"
6
- }
7
2
  export interface User extends BaseObject {
8
3
  countryCode?: string;
9
4
  customerId?: string;
10
- customerGuid?: string;
11
- customerName?: string;
12
- crmId?: number;
13
5
  role?: string;
14
- userGroup?: UserGroup;
15
- yearGroup?: string;
16
- isOpenCustomer?: boolean;
17
6
  }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { ObjectHash } from 'backbone';
3
+ export declare const TextHelper: {
4
+ escapeExpression(text: string): string;
5
+ escapeRegExp(str: string): string;
6
+ slugify(str: string): string;
7
+ linkifyText(text: string, options?: ObjectHash): string;
8
+ isEqual(str1: import("react").Key, str2: import("react").Key): boolean;
9
+ toTitleCase(str: string): string;
10
+ };
@@ -1,11 +1,7 @@
1
1
  import * as React from 'react';
2
- import { Core } from "../../../../common/src/backbone";
2
+ import { ActionOptions } from './Actions';
3
3
  interface ActionButtonProps {
4
- appLink?: Core.AppLink;
5
- onClick?: (e: React.MouseEvent) => void;
6
- svgName?: string;
7
- className?: string;
8
- tooltip?: string;
4
+ actionOptions: ActionOptions;
9
5
  }
10
6
  export declare function ActionButton(props: React.PropsWithChildren<ActionButtonProps>): JSX.Element;
11
7
  export {};
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ActionOptions } from './Actions';
3
- declare type DropdownActionOptions = Omit<ActionOptions, 'button' | 'tooltip'>;
4
3
  interface ActionsDropdownProps {
5
- actions: DropdownActionOptions[];
4
+ actions: ActionOptions[];
6
5
  className?: string;
7
6
  dropdownToggleClassName?: string;
8
7
  }
@@ -1,5 +1,3 @@
1
1
  import { BaseObject } from "./..";
2
2
  export interface Library extends BaseObject {
3
- isHiddenLibrary: boolean;
4
- type: 'custom_library' | 'hosted_library' | 'exchange' | 'workspace' | 'online_supplementary_library';
5
3
  }
@@ -1,4 +1,4 @@
1
- import { BaseObject, CompanyCollection, PersonCollection, CategoryCollection, Channel, InteractiveCollection, LibraryCollection, Rating, Series, Thumbnail, TagCollection, Season, AudienceCollection, ResourceCollection, LinkCollection, ClipCollection, Glance } from "./..";
1
+ import { BaseObject, CompanyCollection, PersonCollection, CategoryCollection, Channel, InteractiveCollection, LibraryCollection, Rating, Series, Thumbnail, TagCollection, Season, AudienceCollection, ResourceCollection, LinkCollection, ClipCollection, Glance, HeroBanner } from "./..";
2
2
  export interface Video extends BaseObject {
3
3
  categories?: CategoryCollection;
4
4
  channel?: Channel;
@@ -24,4 +24,5 @@ export interface Video extends BaseObject {
24
24
  glance?: Glance;
25
25
  isFavourited?: boolean;
26
26
  hasSubtitle?: boolean;
27
+ heroBanner?: HeroBanner;
27
28
  }
@@ -6,8 +6,7 @@ import { BaseObject } from "./..";
6
6
  export declare enum WidgetType {
7
7
  Row = 0,
8
8
  LargeRow = 1,
9
- Hero = 2,
10
- ResourcesTile = 3
9
+ Hero = 2
11
10
  }
12
11
  export interface Widget extends BaseObject {
13
12
  collectionId: number;
@@ -0,0 +1,14 @@
1
+ import { ObjectHash } from 'backbone';
2
+ import { Core } from "../../../../../libs/common/src/backbone";
3
+ import { CuratorLayoutView, CuratorLayoutViewOptions } from "../../shared/layouts";
4
+ export declare class CherryPickerApplication extends Core.Application {
5
+ protected layout: CuratorLayoutView;
6
+ get name(): string;
7
+ static get router(): any;
8
+ get channelName(): string;
9
+ get layoutOptions(): Core.LayoutOptions<CuratorLayoutViewOptions>;
10
+ index(): void;
11
+ results(): void;
12
+ protected onShowAlert(options?: ObjectHash): void;
13
+ private getPopupProps;
14
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface CherryPickerFormProps {
3
+ getMilestones: (projectId: string) => void;
4
+ milestones: string[];
5
+ getBranchNames: (projectId: string) => void;
6
+ branchNames: string[];
7
+ }
8
+ export declare function CherryPickerForm(props: CherryPickerFormProps): JSX.Element;
9
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface CherryPickerConfig {
2
+ project: string;
3
+ milestone?: string;
4
+ branchName?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ import * as Yup from 'yup';
2
+ import { CherryPickerConfig } from "../interfaces/CherryPickerConfig";
3
+ export declare const CherryPickerValidationSchema: Yup.ObjectSchema<Yup.Shape<object, CherryPickerConfig>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function CherryPickerFormView(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function CherryPickerResultsView(): JSX.Element;
@@ -3,7 +3,8 @@ import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
3
3
  export declare const GitLabRequests: {
4
4
  milestones(projectId: string, success: (milestones: string[]) => void): Flight.Request;
5
5
  branchNames(projectId: string, success: (branchNames: string[]) => void): Flight.Request;
6
- mergeRequestsByMilestone(projectId: string, milestone: string, page: number, success: (data: HashObject<any>[]) => void): Flight.Request;
6
+ mergeRequestsByMilestone(projectId: string, milestone: string, page: number, order: "created_at" | "updated_at", sort: "desc" | "asc", success: (data: HashObject<any>[]) => void): Flight.Request;
7
7
  getFilesPaths(projectId: string, fileName: string, success: (data: HashObject<any>[]) => void): Flight.Request;
8
8
  getFile(projectId: string, path: string, branchName: string, success: (data: HashObject<any>) => void): Flight.Request;
9
+ cherryPickCommit(projectId: string, commitSha: string, branchName: string, success: () => void, error: () => void): Flight.Request;
9
10
  };
@@ -43,7 +43,6 @@ export * from './apps/subjects/SubjectsApplication';
43
43
  export * from './apps/themes/ThemesApplication';
44
44
  export * from './apps/videos/VideosApplication';
45
45
  export * from './apps/domain-options/DomainOptionsApplication';
46
- export * from './apps/release-notes/ReleaseNotesApplication';
47
46
  import { InstanceManager } from "../../../libs/common/src/backbone/services/InstanceManager";
48
47
  import { FifoMemoryCache } from "../../../libs/common/src/backbone/services/caches/FifoMemoryCache";
49
48
  import { AjaxDataProvider } from "../../../libs/common/src/backbone/services/data-providers/AjaxDataProvider";
@@ -51,8 +50,7 @@ import { AlertType, BaseAlertService } from "../../../libs/common/src/backbone/s
51
50
  import { LanguageService } from "../../../libs/common/src/backbone/services/LanguageService";
52
51
  import { Flight } from "../../../libs/common/src/react";
53
52
  import { Core } from "../../../libs/common/src/backbone";
54
- import { ViewModelReducer } from "../../../libs/common/src/react/reducers/ViewModelReducer";
55
53
  import { CacheDurations } from "../../../libs/shared/src/constants/CacheDurations";
56
54
  import { LanguageDataService } from "../../../libs/shared/src/services/LanguageDataService";
57
55
  import { AlertList } from "../../../libs/shared/src/components/alert/AlertList";
58
- export { Core, InstanceManager, FifoMemoryCache, AjaxDataProvider, AlertList, AlertType, BaseAlertService, LanguageService, Flight, CacheDurations, ViewModelReducer, LanguageDataService };
56
+ export { Core, InstanceManager, FifoMemoryCache, AjaxDataProvider, AlertList, AlertType, BaseAlertService, LanguageService, Flight, CacheDurations, LanguageDataService };
@@ -84,8 +84,4 @@ export declare const Actions: {
84
84
  EDIT_THEME: string;
85
85
  DELETE_THEME: string;
86
86
  };
87
- ReleaseNotes: {
88
- FORM: string;
89
- GENERATOR: string;
90
- };
91
87
  };
@@ -7,7 +7,6 @@ export declare const AppChannels: {
7
7
  SUBJECTS: string;
8
8
  THEMES: string;
9
9
  VIDEOS: string;
10
- RELEASE_NOTES: string;
11
10
  };
12
11
  export declare const DataChannels: {
13
12
  IMAGE_UPLOAD: string;
@@ -1,3 +1,4 @@
1
1
  export declare const ViewModelKeys: {
2
2
  RELEASE_NOTES_CONFIG: string;
3
+ CHERRY_PICKER_CONFIG: string;
3
4
  };
@@ -2,5 +2,4 @@
2
2
  export declare const StringHelper: {
3
3
  isEqual(str1: import("react").Key, str2: import("react").Key): boolean;
4
4
  capitalizeFirstLetter(str: string): string;
5
- toTitleCase(str: string): string;
6
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/curator",
3
- "version": "1.0.18-dev.0",
3
+ "version": "1.0.18-rc.0",
4
4
  "description": "curator",
5
5
  "main": "dist/curator-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,17 +20,15 @@
20
20
  "author": "Matt Trengrove",
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
- "@clickview/tooling": "0.0.18-dev.0",
23
+ "@clickview/tooling": "0.0.17",
24
24
  "@types/cropperjs": "1.3.0",
25
- "@types/react-copy-to-clipboard": "4.3.0",
26
25
  "@types/react-transition-group": "4.2.3",
27
26
  "@types/yup": "0.26.24"
28
27
  },
29
28
  "dependencies": {
30
- "@clickview/styles": "1.0.8-dev.0",
29
+ "@clickview/styles": "1.0.7",
31
30
  "cropperjs": "1.5.6",
32
31
  "marked": "0.8.0",
33
- "react-copy-to-clipboard": "5.0.2",
34
32
  "yup": "0.27.0"
35
33
  },
36
34
  "babel": {
@@ -1,13 +0,0 @@
1
- /**
2
- * Not really for concurrency 😂
3
- * But useful in circumstances where we need to manually wait for
4
- * a sequence of callbacks or other resources to execute and don't
5
- * want the overhead of promises.
6
- */
7
- export declare class ConcurrencyHelper {
8
- private value;
9
- constructor(initialValue: number);
10
- increment(): void;
11
- decrement(): void;
12
- getValue(): number;
13
- }
@@ -1,11 +0,0 @@
1
- import { BaseDataService } from "../../../../../libs/common/src/backbone/services/BaseDataService";
2
- interface LanguageConfig {
3
- locale: string;
4
- phrases: any;
5
- }
6
- export declare class LanguageDataService extends BaseDataService {
7
- get name(): string;
8
- get channelName(): string;
9
- getLanguageConfig(callback?: (languageConfig: LanguageConfig) => void): void;
10
- }
11
- export {};