@clickview/curator 1.0.18-dev.1 → 1.0.18-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 (38) hide show
  1. package/dist/curator-app.css +0 -2
  2. package/dist/curator-app.js +3 -3
  3. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +6 -5
  4. package/dist/libs/analytics/src/interfaces/User.d.ts +0 -11
  5. package/dist/libs/shared/src/components/actions/ActionButton.d.ts +2 -6
  6. package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +1 -2
  7. package/dist/libs/shared/src/interfaces/models/Library.d.ts +0 -2
  8. package/dist/libs/shared/src/interfaces/models/Video.d.ts +2 -1
  9. package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -2
  10. package/dist/projects/curator/src/index.d.ts +1 -3
  11. package/dist/projects/curator/src/shared/constants/CuratorActions.d.ts +0 -4
  12. package/dist/projects/curator/src/shared/constants/RadioChannels.d.ts +0 -1
  13. package/dist/projects/curator/src/shared/utils/StringHelper.d.ts +5 -0
  14. package/dist/projects/curator/src/shared/utils/index.d.ts +1 -0
  15. package/package.json +3 -5
  16. package/dist/libs/common/src/react/constants/ViewModelActions.d.ts +0 -3
  17. package/dist/libs/common/src/react/hooks/UseViewModel.d.ts +0 -4
  18. package/dist/libs/common/src/react/interfaces/ViewModelAction.d.ts +0 -5
  19. package/dist/libs/common/src/react/interfaces/ViewModelPayload.d.ts +0 -5
  20. package/dist/libs/common/src/react/reducers/ViewModelReducer.d.ts +0 -3
  21. package/dist/libs/common/src/react/utils/TextHelper.d.ts +0 -10
  22. package/dist/projects/curator/src/apps/release-notes/ReleaseNotesApplication.d.ts +0 -15
  23. package/dist/projects/curator/src/apps/release-notes/components/GenerateReleaseNotesForm.d.ts +0 -9
  24. package/dist/projects/curator/src/apps/release-notes/constants/GitLabPageLimit.d.ts +0 -1
  25. package/dist/projects/curator/src/apps/release-notes/constants/GitLabProjects.d.ts +0 -3
  26. package/dist/projects/curator/src/apps/release-notes/constants/MonorepoVersions.d.ts +0 -1
  27. package/dist/projects/curator/src/apps/release-notes/flight-requests/GitLabRequests.d.ts +0 -9
  28. package/dist/projects/curator/src/apps/release-notes/interfaces/GitLabProject.d.ts +0 -4
  29. package/dist/projects/curator/src/apps/release-notes/interfaces/ReleaseNotesConfig.d.ts +0 -5
  30. package/dist/projects/curator/src/apps/release-notes/utils/getMergeRequestDescriptionChanges.d.ts +0 -1
  31. package/dist/projects/curator/src/apps/release-notes/utils/getMonorepoMergeRequestDescriptionChanges.d.ts +0 -2
  32. package/dist/projects/curator/src/apps/release-notes/utils/serializeMergeRequestHeading.d.ts +0 -1
  33. package/dist/projects/curator/src/apps/release-notes/utils/serializeMonorepoMergeRequestSubheading.d.ts +0 -1
  34. package/dist/projects/curator/src/apps/release-notes/utils/shouldFilterMergeRequestHeading.d.ts +0 -1
  35. package/dist/projects/curator/src/apps/release-notes/validation/ReleaseNotesValidation.d.ts +0 -3
  36. package/dist/projects/curator/src/apps/release-notes/views/ReleaseNotesFormView.d.ts +0 -2
  37. package/dist/projects/curator/src/apps/release-notes/views/ReleaseNotesGeneratorView.d.ts +0 -2
  38. package/dist/projects/curator/src/shared/constants/ViewModelKeys.d.ts +0 -3
@@ -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
  }
@@ -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;
@@ -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;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const StringHelper: {
3
+ isEqual(str1: import("react").Key, str2: import("react").Key): boolean;
4
+ capitalizeFirstLetter(str: string): string;
5
+ };
@@ -1,5 +1,6 @@
1
1
  export * from './ImageSelectHelper';
2
2
  export * from './NavHelper';
3
3
  export * from './PropHelper';
4
+ export * from './StringHelper';
4
5
  export * from './TreeHelper';
5
6
  export * from './UserHelper';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/curator",
3
- "version": "1.0.18-dev.1",
3
+ "version": "1.0.18-rc.1",
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.1",
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.1",
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,3 +0,0 @@
1
- export declare const ViewModelActions: {
2
- UPDATE: string;
3
- };
@@ -1,4 +0,0 @@
1
- declare type IUseViewModel<T> = [T, // State
2
- (dataOrKey: T | keyof T, keyData?: any) => void];
3
- export declare const useViewModel: <T = any>(viewModelKey: string, initialState?: T) => IUseViewModel<T>;
4
- export {};
@@ -1,5 +0,0 @@
1
- import { ViewModelPayload } from "./ViewModelPayload";
2
- export interface ViewModelAction {
3
- type: string;
4
- payload: ViewModelPayload;
5
- }
@@ -1,5 +0,0 @@
1
- export interface ViewModelPayload {
2
- viewModelKey: string;
3
- dataOrKey: any;
4
- keyData?: any;
5
- }
@@ -1,3 +0,0 @@
1
- import { HashObject } from "../interfaces/HashObject";
2
- import { ViewModelAction } from "../interfaces/ViewModelAction";
3
- export declare function ViewModelReducer(state: HashObject, action: ViewModelAction): HashObject;
@@ -1,10 +0,0 @@
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,15 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from "../../../../../libs/common/src/backbone";
3
- import { CuratorLayoutView, CuratorLayoutViewOptions } from "../../shared/layouts";
4
- export declare class ReleaseNotesApplication 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
- form(): void;
12
- generator(): void;
13
- protected onShowAlert(options?: ObjectHash): void;
14
- private getPopupProps;
15
- }
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- interface GenerateReleaseNotesFormProps {
3
- getMilestones: (projectId: string) => void;
4
- milestones: string[];
5
- getBranchNames: (projectId: string) => void;
6
- branchNames: string[];
7
- }
8
- export declare function GenerateReleaseNotesForm(props: GenerateReleaseNotesFormProps): JSX.Element;
9
- export {};
@@ -1 +0,0 @@
1
- export declare const GITLAB_PAGE_LIMIT = 50;
@@ -1,3 +0,0 @@
1
- import { GitLabProject } from '../interfaces/GitLabProject';
2
- export declare const MONOREPO_PROJECT_ID = "798";
3
- export declare const GitLabProjects: GitLabProject[];
@@ -1 +0,0 @@
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,9 +0,0 @@
1
- import { Flight } from "../../../../../../libs/common/src/react";
2
- import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
3
- export declare const GitLabRequests: {
4
- milestones(projectId: string, success: (milestones: string[]) => void): Flight.Request;
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;
7
- getFilesPaths(projectId: string, fileName: string, success: (data: HashObject<any>[]) => void): Flight.Request;
8
- getFile(projectId: string, path: string, branchName: string, success: (data: HashObject<any>) => void): Flight.Request;
9
- };
@@ -1,4 +0,0 @@
1
- export interface GitLabProject {
2
- id: string;
3
- name: string;
4
- }
@@ -1,5 +0,0 @@
1
- export interface ReleaseNotesConfig {
2
- project: string;
3
- milestone?: string;
4
- branchName?: string;
5
- }
@@ -1 +0,0 @@
1
- export declare function getMergeRequestDescriptionChanges(descriptions: string[]): string;
@@ -1,2 +0,0 @@
1
- import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
2
- export declare function getMonorepoMergeRequestDescriptionChanges(descriptions: string[], packageJsons: HashObject[]): string;
@@ -1 +0,0 @@
1
- export declare function serializeMergeRequestHeading(heading: string): string;
@@ -1 +0,0 @@
1
- export declare function serializeMonorepoMergeRequestSubheading(heading: string): string;
@@ -1 +0,0 @@
1
- export declare function shouldFilterMergeRequestHeading(heading: string): boolean;
@@ -1,3 +0,0 @@
1
- import * as Yup from 'yup';
2
- import { ReleaseNotesConfig } from "../interfaces/ReleaseNotesConfig";
3
- export declare const ReleaseNotesValidationSchema: Yup.ObjectSchema<Yup.Shape<object, ReleaseNotesConfig>>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function ReleaseNotesFormView(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function ReleaseNotesGeneratorView(): JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const ViewModelKeys: {
2
- RELEASE_NOTES_CONFIG: string;
3
- };