@clickview/curator 1.0.17-rc.1 → 1.0.17

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 (47) hide show
  1. package/package.json +1 -1
  2. package/dist/curator-app.css.map +0 -1
  3. package/dist/curator-app.js.map +0 -1
  4. package/dist/libs/common/src/react/constants/ViewModelActions.d.ts +0 -3
  5. package/dist/libs/common/src/react/hooks/UseViewModel.d.ts +0 -4
  6. package/dist/libs/common/src/react/interfaces/ViewModelAction.d.ts +0 -5
  7. package/dist/libs/common/src/react/interfaces/ViewModelPayload.d.ts +0 -5
  8. package/dist/libs/common/src/react/reducers/ViewModelReducer.d.ts +0 -3
  9. package/dist/projects/curator/src/apps/cherry-picker/CherryPickerApplication.d.ts +0 -14
  10. package/dist/projects/curator/src/apps/cherry-picker/components/cherry-picker-form/CherryPickerForm.d.ts +0 -9
  11. package/dist/projects/curator/src/apps/cherry-picker/interfaces/CherryPickerConfig.d.ts +0 -5
  12. package/dist/projects/curator/src/apps/cherry-picker/validation/CherryPickerValidation.d.ts +0 -3
  13. package/dist/projects/curator/src/apps/cherry-picker/views/cherry-picker-form/CherryPickerFormView.d.ts +0 -2
  14. package/dist/projects/curator/src/apps/cherry-picker/views/cherry-picker-results/CherryPickerResultsView.d.ts +0 -2
  15. package/dist/projects/curator/src/apps/release-notes/ReleaseNotesApplication.d.ts +0 -15
  16. package/dist/projects/curator/src/apps/release-notes/components/GenerateReleaseNotesForm.d.ts +0 -9
  17. package/dist/projects/curator/src/apps/release-notes/constants/GitLabPageLimit.d.ts +0 -1
  18. package/dist/projects/curator/src/apps/release-notes/constants/GitLabProjects.d.ts +0 -3
  19. package/dist/projects/curator/src/apps/release-notes/constants/MonorepoVersions.d.ts +0 -1
  20. package/dist/projects/curator/src/apps/release-notes/flight-requests/GitLabRequests.d.ts +0 -10
  21. package/dist/projects/curator/src/apps/release-notes/interfaces/GitLabProject.d.ts +0 -4
  22. package/dist/projects/curator/src/apps/release-notes/interfaces/ReleaseNotesConfig.d.ts +0 -5
  23. package/dist/projects/curator/src/apps/release-notes/utils/getMergeRequestDescriptionChanges.d.ts +0 -1
  24. package/dist/projects/curator/src/apps/release-notes/utils/getMonorepoMergeRequestDescriptionChanges.d.ts +0 -2
  25. package/dist/projects/curator/src/apps/release-notes/utils/serializeMergeRequestHeading.d.ts +0 -1
  26. package/dist/projects/curator/src/apps/release-notes/utils/serializeMonorepoMergeRequestSubheading.d.ts +0 -1
  27. package/dist/projects/curator/src/apps/release-notes/utils/shouldFilterMergeRequestHeading.d.ts +0 -1
  28. package/dist/projects/curator/src/apps/release-notes/validation/ReleaseNotesValidation.d.ts +0 -3
  29. package/dist/projects/curator/src/apps/release-notes/views/ReleaseNotesFormView.d.ts +0 -2
  30. package/dist/projects/curator/src/apps/release-notes/views/ReleaseNotesGeneratorView.d.ts +0 -2
  31. package/dist/projects/curator/src/apps/subjects/components/levels/edit-level-nav/EditLevelNav.d.ts +0 -7
  32. package/dist/projects/curator/src/apps/subjects/components/levels/level-audiences/LevelAudiences.d.ts +0 -11
  33. package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/LevelMemberItem.d.ts +0 -12
  34. package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/LevelMemberList.d.ts +0 -25
  35. package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/LevelMemberListHeader.d.ts +0 -14
  36. package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/index.d.ts +0 -1
  37. package/dist/projects/curator/src/apps/subjects/enums/ObjectMemberType.d.ts +0 -10
  38. package/dist/projects/curator/src/apps/subjects/utils/LevelMemberHelper.d.ts +0 -8
  39. package/dist/projects/curator/src/apps/subjects/utils/LevelsNavHelper.d.ts +0 -4
  40. package/dist/projects/curator/src/apps/subjects/views/levels/edit-level-members/EditLevelMembersUtils.d.ts +0 -16
  41. package/dist/projects/curator/src/apps/subjects/views/levels/edit-level-members/EditLevelMembersView.d.ts +0 -16
  42. package/dist/projects/curator/src/apps/subjects/views/levels/level-audiences/LevelAudiencesView.d.ts +0 -6
  43. package/dist/projects/curator/src/apps/subjects/views/levels/level-nav/LevelNavView.d.ts +0 -6
  44. package/dist/projects/curator/src/apps/subjects/views/levels/levels-redirect/LevelsRedirectView.d.ts +0 -2
  45. package/dist/projects/curator/src/apps/subjects/views/levels/levels-redirect/index.d.ts +0 -1
  46. package/dist/projects/curator/src/apps/subjects/views/levels/remove-level-member/RemoveLevelMemberView.d.ts +0 -11
  47. package/dist/projects/curator/src/shared/constants/ViewModelKeys.d.ts +0 -4
@@ -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,14 +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 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
- }
@@ -1,9 +0,0 @@
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 {};
@@ -1,5 +0,0 @@
1
- export interface CherryPickerConfig {
2
- project: string;
3
- milestone?: string;
4
- branchName?: string;
5
- }
@@ -1,3 +0,0 @@
1
- import * as Yup from 'yup';
2
- import { CherryPickerConfig } from "../interfaces/CherryPickerConfig";
3
- export declare const CherryPickerValidationSchema: Yup.ObjectSchema<Yup.Shape<object, CherryPickerConfig>>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function CherryPickerFormView(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function CherryPickerResultsView(): JSX.Element;
@@ -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,10 +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, order: "created_at" | "updated_at", sort: "desc" | "asc", 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
- cherryPickCommit(projectId: string, commitSha: string, branchName: string, success: () => void, error: () => void): Flight.Request;
10
- };
@@ -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,7 +0,0 @@
1
- import * as React from 'react';
2
- interface EditLevelNavProps {
3
- levelId: string;
4
- activeAction: string;
5
- }
6
- export declare function EditLevelNav({ levelId, activeAction }: EditLevelNavProps): React.ReactElement;
7
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { PresentationAudience } from "../../../../../../../../libs/shared/src/interfaces";
3
- import { Presentation } from "../../../interfaces";
4
- interface LevelAudiencesProps {
5
- presentations: Presentation[];
6
- audienceDictionary: {
7
- [presentationId: string]: PresentationAudience[];
8
- };
9
- }
10
- export declare const LevelAudiences: (props: LevelAudiencesProps) => JSX.Element;
11
- export {};
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { Core } from "../../../../../../../../libs/common/src/backbone";
3
- import { ActionOptions } from "../../../../../../../../libs/shared/src/components/actions/Actions";
4
- import { LevelMemberViewModel } from './LevelMemberList';
5
- interface LevelMemberItemProps {
6
- member: LevelMemberViewModel;
7
- getMemberAppLink: (memberId: string) => Core.AppLink;
8
- onToggleAudience: (audienceId: string, selected: boolean, memberId: string) => void;
9
- actions?: ActionOptions[];
10
- }
11
- export declare function LevelMemberItem(props: LevelMemberItemProps): React.ReactElement;
12
- export {};
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { Core } from "../../../../../../../../libs/common/src/backbone";
3
- import { PresentationAudience } from "../../../../../../../../libs/shared/src/interfaces";
4
- import { ActionOptions } from "../../../../../../../../libs/shared/src/components/actions/Actions";
5
- import { LevelMemberType } from "../../../enums";
6
- declare type AudienceViewModel = {
7
- id: string;
8
- selected: boolean;
9
- };
10
- export interface LevelMemberViewModel {
11
- id: string;
12
- name: string;
13
- audiences?: AudienceViewModel[];
14
- }
15
- interface LevelMemberListProps {
16
- members: LevelMemberViewModel[];
17
- memberType: LevelMemberType;
18
- audiences: PresentationAudience[];
19
- getMemberAppLink: (memberId: string) => Core.AppLink;
20
- getAudienceAppLink: (audienceId: string) => Core.AppLink;
21
- onToggleAudience: (audienceId: string, selected: boolean, memberId?: string) => void;
22
- getActions?: (itemId: string) => ActionOptions[];
23
- }
24
- export declare function LevelMemberList(props: LevelMemberListProps): React.ReactElement;
25
- export {};
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { Core } from "../../../../../../../../libs/common/src/backbone";
3
- import { PresentationAudience } from "../../../../../../../../libs/shared/src/interfaces";
4
- import { LevelMemberType } from "../../../enums";
5
- interface LevelMemberListHeaderProps {
6
- memberType: LevelMemberType;
7
- hasActions: boolean;
8
- audiences: PresentationAudience[];
9
- getIsAudienceSelected: (audience: PresentationAudience) => boolean;
10
- onToggleAudience: (audienceId: string, selected: boolean) => void;
11
- getAudienceAppLink: (audienceId: string) => Core.AppLink;
12
- }
13
- export declare function LevelMemberListHeader(props: LevelMemberListHeaderProps): React.ReactElement;
14
- export {};
@@ -1 +0,0 @@
1
- export * from './LevelMemberList';
@@ -1,10 +0,0 @@
1
- export declare enum SubjectMemberType {
2
- Playlists = "playlists",
3
- Series = "series",
4
- Videos = "videos"
5
- }
6
- export declare enum LevelMemberType {
7
- Playlists = "playlists",
8
- Series = "series",
9
- Videos = "videos"
10
- }
@@ -1,8 +0,0 @@
1
- import { Core } from "../../../../../../libs/common/src/backbone";
2
- import { ActionOptions } from "../../../../../../libs/shared/src/components/actions/Actions";
3
- import { LevelMemberType, OwnerType } from "../enums";
4
- export declare const LevelMemberHelper: {
5
- singularizeMemberType(memberType: LevelMemberType): string;
6
- getMemberAppLink(memberType: LevelMemberType, memberId: string): Core.AppLink;
7
- getMemberActions(levelId: string, ownerType: OwnerType, memberType: LevelMemberType, memberId: string): ActionOptions[];
8
- };
@@ -1,4 +0,0 @@
1
- import { NavItem } from "../../../shared/interfaces";
2
- export declare const LevelsNavHelper: {
3
- getEditLevelTabs(levelId: string): NavItem[];
4
- };
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { Flight } from "../../../../../../../../libs/common/src/react";
3
- import { Core } from "../../../../../../../../libs/common/src/backbone";
4
- import { BaseObject } from "../../../../../../../../libs/shared/src/interfaces";
5
- import { SubjectDataService } from "../../../services";
6
- import { LevelMemberType } from "../../../enums";
7
- import { EditLevelMembersState, EditLevelMembersViewProps } from './EditLevelMembersView';
8
- declare type SetState = React.Dispatch<React.SetStateAction<EditLevelMembersState>>;
9
- export declare function getSetState(setState: SetState, key: keyof EditLevelMembersState): (data: any) => void;
10
- export declare function useFetchData(props: EditLevelMembersViewProps, state: EditLevelMembersState, setState: SetState): void;
11
- export declare function useMapData(members: BaseObject[], props: EditLevelMembersViewProps, state: EditLevelMembersState, setState: SetState): void;
12
- export declare function getMembersRequest(memberType: LevelMemberType, ids: string[]): Flight.Request;
13
- export declare const getAudienceAppLink: (memberType: LevelMemberType, presentationId: string) => (audienceId: string) => Core.AppLink;
14
- export declare function toggleObjectsInAudience(d: SubjectDataService, memberType: LevelMemberType, memberIds: string[], levelId: string, presentationId: string, audienceId: string, selected: boolean): void;
15
- export declare function getActiveAction(memberType: LevelMemberType): string;
16
- export {};
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { PresentationAudience } from "../../../../../../../../libs/shared/src/interfaces";
3
- import { LevelMemberViewModel } from "../../../components";
4
- import { LevelMemberType } from "../../../enums";
5
- import { Presentation } from "../../../interfaces";
6
- export interface EditLevelMembersState {
7
- presentations?: Presentation[];
8
- audiences?: PresentationAudience[];
9
- memberIds?: string[];
10
- membersWithAudiences?: LevelMemberViewModel[];
11
- }
12
- export interface EditLevelMembersViewProps {
13
- levelId: string;
14
- memberType: LevelMemberType;
15
- }
16
- export declare function EditLevelMembersView(props: EditLevelMembersViewProps): React.ReactElement;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- interface LevelAudiencesViewProps {
3
- levelId: string;
4
- }
5
- export declare function LevelAudiencesView({ levelId }: LevelAudiencesViewProps): JSX.Element;
6
- export {};
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- interface LevelNavViewProps {
3
- selectedLevelId?: string;
4
- }
5
- export declare function LevelNavView({ selectedLevelId }: LevelNavViewProps): React.ReactElement;
6
- export {};
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare function LevelsRedirectView(): React.ReactElement;
@@ -1 +0,0 @@
1
- export * from './LevelsRedirectView';
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { PopupViewProps } from "../../../../../../../../libs/shared/src/interfaces";
3
- import { LevelMemberType } from "../../../enums";
4
- interface RemoveLevelMemberViewProps {
5
- levelId: string;
6
- memberId: string;
7
- memberType: LevelMemberType;
8
- }
9
- declare type PropTypes = RemoveLevelMemberViewProps & PopupViewProps;
10
- export declare function RemoveLevelMemberView(props: PropTypes): React.ReactElement;
11
- export {};
@@ -1,4 +0,0 @@
1
- export declare const ViewModelKeys: {
2
- RELEASE_NOTES_CONFIG: string;
3
- CHERRY_PICKER_CONFIG: string;
4
- };