@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.
- package/dist/curator-app.css +0 -2
- package/dist/curator-app.js +3 -3
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +6 -5
- package/dist/libs/analytics/src/interfaces/User.d.ts +0 -11
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +2 -6
- package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +1 -2
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +0 -2
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -2
- package/dist/projects/curator/src/index.d.ts +1 -3
- package/dist/projects/curator/src/shared/constants/CuratorActions.d.ts +0 -4
- package/dist/projects/curator/src/shared/constants/RadioChannels.d.ts +0 -1
- package/dist/projects/curator/src/shared/utils/StringHelper.d.ts +5 -0
- package/dist/projects/curator/src/shared/utils/index.d.ts +1 -0
- package/package.json +3 -5
- package/dist/libs/common/src/react/constants/ViewModelActions.d.ts +0 -3
- package/dist/libs/common/src/react/hooks/UseViewModel.d.ts +0 -4
- package/dist/libs/common/src/react/interfaces/ViewModelAction.d.ts +0 -5
- package/dist/libs/common/src/react/interfaces/ViewModelPayload.d.ts +0 -5
- package/dist/libs/common/src/react/reducers/ViewModelReducer.d.ts +0 -3
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +0 -10
- package/dist/projects/curator/src/apps/release-notes/ReleaseNotesApplication.d.ts +0 -15
- package/dist/projects/curator/src/apps/release-notes/components/GenerateReleaseNotesForm.d.ts +0 -9
- package/dist/projects/curator/src/apps/release-notes/constants/GitLabPageLimit.d.ts +0 -1
- package/dist/projects/curator/src/apps/release-notes/constants/GitLabProjects.d.ts +0 -3
- package/dist/projects/curator/src/apps/release-notes/constants/MonorepoVersions.d.ts +0 -1
- package/dist/projects/curator/src/apps/release-notes/flight-requests/GitLabRequests.d.ts +0 -9
- package/dist/projects/curator/src/apps/release-notes/interfaces/GitLabProject.d.ts +0 -4
- package/dist/projects/curator/src/apps/release-notes/interfaces/ReleaseNotesConfig.d.ts +0 -5
- package/dist/projects/curator/src/apps/release-notes/utils/getMergeRequestDescriptionChanges.d.ts +0 -1
- package/dist/projects/curator/src/apps/release-notes/utils/getMonorepoMergeRequestDescriptionChanges.d.ts +0 -2
- package/dist/projects/curator/src/apps/release-notes/utils/serializeMergeRequestHeading.d.ts +0 -1
- package/dist/projects/curator/src/apps/release-notes/utils/serializeMonorepoMergeRequestSubheading.d.ts +0 -1
- package/dist/projects/curator/src/apps/release-notes/utils/shouldFilterMergeRequestHeading.d.ts +0 -1
- package/dist/projects/curator/src/apps/release-notes/validation/ReleaseNotesValidation.d.ts +0 -3
- package/dist/projects/curator/src/apps/release-notes/views/ReleaseNotesFormView.d.ts +0 -2
- package/dist/projects/curator/src/apps/release-notes/views/ReleaseNotesGeneratorView.d.ts +0 -2
- 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
|
-
|
|
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 {
|
|
2
|
+
import { ActionOptions } from './Actions';
|
|
3
3
|
interface ActionButtonProps {
|
|
4
|
-
|
|
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:
|
|
4
|
+
actions: ActionOptions[];
|
|
6
5
|
className?: string;
|
|
7
6
|
dropdownToggleClassName?: string;
|
|
8
7
|
}
|
|
@@ -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
|
}
|
|
@@ -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,
|
|
56
|
+
export { Core, InstanceManager, FifoMemoryCache, AjaxDataProvider, AlertList, AlertType, BaseAlertService, LanguageService, Flight, CacheDurations, LanguageDataService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/curator",
|
|
3
|
-
"version": "1.0.18-
|
|
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.
|
|
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.
|
|
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,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
|
-
}
|
package/dist/projects/curator/src/apps/release-notes/components/GenerateReleaseNotesForm.d.ts
DELETED
|
@@ -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 +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
|
-
};
|
package/dist/projects/curator/src/apps/release-notes/utils/getMergeRequestDescriptionChanges.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getMergeRequestDescriptionChanges(descriptions: string[]): string;
|
package/dist/projects/curator/src/apps/release-notes/utils/serializeMergeRequestHeading.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function serializeMergeRequestHeading(heading: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function serializeMonorepoMergeRequestSubheading(heading: string): string;
|
package/dist/projects/curator/src/apps/release-notes/utils/shouldFilterMergeRequestHeading.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function shouldFilterMergeRequestHeading(heading: string): boolean;
|