@clickview/online 0.0.5-dev.0 → 0.0.5-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 (119) hide show
  1. package/dist/en.json +1 -1
  2. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +2 -1
  3. package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
  4. package/dist/libs/common/src/react/hooks/UseViewModel.d.ts +4 -0
  5. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +6 -1
  6. package/dist/libs/common/src/react/utils/TextHelper.d.ts +2 -1
  7. package/dist/libs/shared/src/apps/content-updates/interfaces/ClassificationVideosGrouping.d.ts +3 -2
  8. package/dist/libs/shared/src/apps/content-updates/interfaces/index.d.ts +0 -1
  9. package/dist/libs/shared/src/apps/playlists/components/empty-state/EmptyVideoList.d.ts +3 -0
  10. package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistItem.d.ts +8 -3
  11. package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistList.d.ts +9 -3
  12. package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistOwnerAvatar.d.ts +9 -0
  13. package/dist/libs/shared/src/apps/playlists/components/sort-select/PlaylistSortSelect.d.ts +9 -0
  14. package/dist/libs/shared/src/apps/playlists/enums/PlaylistSortType.d.ts +4 -2
  15. package/dist/libs/shared/src/apps/playlists/enums/PlaylistType.d.ts +5 -0
  16. package/dist/libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistCollectionIdentifier.d.ts +4 -1
  17. package/dist/libs/shared/src/apps/playlists/utils/PlaylistSortHelper.d.ts +0 -1
  18. package/dist/libs/shared/src/apps/subjects/components/preferences/index.d.ts +2 -1
  19. package/dist/libs/shared/src/apps/subjects/components/preferences/nav/PreferencesNav.d.ts +12 -0
  20. package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItem.d.ts +16 -0
  21. package/dist/libs/shared/src/apps/subjects/components/preferences/{subject-preference-item/SubjectPreferenceItemStatus.d.ts → preference-item/PreferenceItemStatus.d.ts} +1 -0
  22. package/dist/libs/shared/src/apps/subjects/components/preferences/progress/PreferenceProgress.d.ts +1 -0
  23. package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-grid/SubjectPreferenceGrid.d.ts +3 -1
  24. package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-item/SubjectPreferenceItem.d.ts +2 -0
  25. package/dist/libs/shared/src/apps/subjects/interfaces/ClassificationPreference.d.ts +0 -1
  26. package/dist/libs/shared/src/components/actions/ActionButton.d.ts +5 -0
  27. package/dist/libs/shared/src/components/actions/Actions.d.ts +5 -0
  28. package/dist/libs/shared/src/components/alert/Alert.d.ts +7 -0
  29. package/dist/libs/shared/src/components/alert/AlertContent.d.ts +8 -0
  30. package/dist/libs/shared/src/components/alert/AlertList.d.ts +8 -0
  31. package/dist/libs/shared/src/components/app-link/AppLink.d.ts +4 -0
  32. package/dist/libs/shared/src/components/avatar/Avatar.d.ts +8 -0
  33. package/dist/libs/shared/src/components/clickview-avatar/ClickViewAvatar.d.ts +2 -0
  34. package/dist/libs/shared/src/components/div-button/DivButton.d.ts +10 -0
  35. package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +10 -0
  36. package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +7 -0
  37. package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +7 -0
  38. package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +16 -0
  39. package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +20 -0
  40. package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +4 -0
  41. package/dist/libs/shared/src/components/popup/Popup.d.ts +16 -0
  42. package/dist/libs/shared/src/components/popup/PopupLoadingSpinner.d.ts +2 -0
  43. package/dist/libs/shared/src/components/spinner-button/SpinnerButton.d.ts +1 -0
  44. package/dist/libs/shared/src/components/svg-container/SvgContainer.d.ts +2 -1
  45. package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +2 -0
  46. package/dist/libs/shared/src/components/svgs/clickview-logo/ClickViewLogo.d.ts +1 -0
  47. package/dist/libs/shared/src/components/toggle-switch/ToggleSwitch.d.ts +9 -0
  48. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +4 -0
  49. package/dist/libs/shared/src/constants/WithStatements.d.ts +5 -0
  50. package/dist/libs/shared/src/enums/BulkOnboardingPreferencesState.d.ts +6 -0
  51. package/dist/libs/shared/src/enums/PresentationType.d.ts +4 -0
  52. package/dist/libs/shared/src/enums/SettingKind.d.ts +4 -0
  53. package/dist/libs/shared/src/enums/SettingName.d.ts +4 -0
  54. package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +3 -3
  55. package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +14 -6
  56. package/dist/libs/shared/src/flight-requests/SettingRequests.d.ts +7 -0
  57. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +1 -0
  58. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -1
  59. package/dist/libs/shared/src/images/svg/objects/index.d.ts +4 -1
  60. package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +3 -0
  61. package/dist/libs/shared/src/interfaces/models/Customer.d.ts +1 -0
  62. package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +9 -0
  63. package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +1 -0
  64. package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +4 -1
  65. package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
  66. package/dist/libs/shared/src/interfaces/models/index.d.ts +3 -0
  67. package/dist/libs/shared/src/utils/FormHelper.d.ts +4 -0
  68. package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -1
  69. package/dist/libs/shared/src/utils/RegionHelper.d.ts +4 -0
  70. package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
  71. package/dist/online-app.css +53 -17
  72. package/dist/online-app.css.map +1 -0
  73. package/dist/online-app.js +3 -3
  74. package/dist/online-app.js.map +1 -0
  75. package/dist/projects/online/src/apps/dashboard/components/onboarding-nag/OnboardingNag.d.ts +8 -0
  76. package/dist/projects/online/src/apps/dashboard/components/onboarding-nag-item/OnboardingNagItem.d.ts +10 -0
  77. package/dist/projects/online/src/apps/dashboard/components/onboarding-progress/OnboardingProgress.d.ts +6 -0
  78. package/dist/projects/online/src/apps/default/OnlineDefaultApplication.d.ts +5 -2
  79. package/dist/projects/online/src/apps/default/views/verify-email/VerifyEmailValidation.d.ts +3 -0
  80. package/dist/projects/online/src/apps/default/views/verify-email/VerifyEmailView.d.ts +3 -0
  81. package/dist/projects/online/src/apps/exchange/ExchangeApplication.d.ts +13 -0
  82. package/dist/projects/online/src/apps/exchange/components/exchange-sub-nav/ExchangeSubNav.d.ts +2 -0
  83. package/dist/projects/online/src/apps/exchange/views/exchange/ExchangeView.d.ts +2 -0
  84. package/dist/projects/online/src/apps/playlists/components/left-nav/LeftNav.d.ts +13 -0
  85. package/dist/projects/online/src/apps/playlists/components/left-nav/LeftNavItem.d.ts +0 -0
  86. package/dist/projects/online/src/apps/playlists/components/left-nav/LevNavPlaylistOwnerIndicator.d.ts +8 -0
  87. package/dist/projects/online/src/apps/playlists/components/left-nav/left-nav-item/LeftNavItem.d.ts +10 -0
  88. package/dist/projects/online/src/apps/playlists/components/left-nav/left-nav-playlist-owner-indicator/LevNavPlaylistOwnerIndicator.d.ts +8 -0
  89. package/dist/projects/online/src/apps/playlists/components/left-nav/partial-loading/PartialLeftNav.d.ts +2 -0
  90. package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPartialPlaylistList.d.ts +2 -0
  91. package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPlaylistItem.d.ts +7 -0
  92. package/dist/projects/online/src/apps/playlists/components/legacy-playlist-list/LegacyPlaylistList.d.ts +7 -0
  93. package/dist/projects/online/src/apps/playlists/components/playlist-header/PlaylistHeader.d.ts +2 -3
  94. package/dist/projects/online/src/apps/playlists/components/playlist-list-header/PartialPlaylistListHeader.d.ts +2 -0
  95. package/dist/projects/online/src/apps/playlists/components/playlist-list-header/PlaylistListHeader.d.ts +12 -0
  96. package/dist/projects/online/src/apps/playlists/components/web-player/WebPlayerComponent.d.ts +2 -0
  97. package/dist/projects/online/src/apps/playlists/views/playlists/PlaylistsView.d.ts +0 -2
  98. package/dist/projects/online/src/apps/subjects/SubjectApplication.d.ts +2 -2
  99. package/dist/projects/online/src/apps/subjects/utils/OnboardingHelper.d.ts +20 -0
  100. package/dist/projects/online/src/apps/subjects/views/classification/ClassificationView.d.ts +1 -1
  101. package/dist/projects/online/src/apps/subjects/views/preferences/BasePreferencesView.d.ts +8 -0
  102. package/dist/projects/online/src/apps/subjects/views/preferences/curriculum-presentation/CurriculumPresentationSelectorView.d.ts +6 -0
  103. package/dist/projects/online/src/apps/subjects/views/preferences/index.d.ts +4 -1
  104. package/dist/projects/online/src/apps/subjects/views/preferences/level-preferences/LevelPreferencesView.d.ts +2 -2
  105. package/dist/projects/online/src/apps/subjects/views/preferences/subject-preferences/SubjectPreferencesView.d.ts +2 -2
  106. package/dist/projects/online/src/apps/subjects/views/preferences/subject-presentation/SubjectPresentationSelectorView.d.ts +6 -0
  107. package/dist/projects/online/src/apps/subjects/views/preferences/summary/PreferencesSummaryView.d.ts +1 -2
  108. package/dist/projects/online/src/apps/subjects/views/preferences/welcome/PreferencesWelcomeView.d.ts +6 -0
  109. package/dist/projects/online/src/index.d.ts +16 -5
  110. package/dist/projects/online/src/shared/components/index.d.ts +0 -1
  111. package/dist/projects/online/src/shared/constants/Actions.d.ts +17 -0
  112. package/dist/projects/online/src/shared/constants/RadioChannels.d.ts +1 -0
  113. package/dist/projects/online/src/shared/constants/ViewModelKeys.d.ts +3 -0
  114. package/dist/projects/online/src/shared/identifiers/index.d.ts +0 -1
  115. package/dist/projects/online/src/shared/layouts/OnlineLayoutView.d.ts +9 -6
  116. package/package.json +3 -3
  117. package/typings/libs/FutureCoreHelper.d.ts +23 -0
  118. package/dist/projects/online/src/apps/subjects/views/preferences/PreferencesView.d.ts +0 -8
  119. package/dist/projects/online/src/shared/components/info-banner/InfoBanner.d.ts +0 -2
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface OnboardingNagProps {
3
+ levelsCompleted: boolean;
4
+ subjectsCompleted: boolean;
5
+ verifyEmailCompleted: boolean;
6
+ }
7
+ export declare function OnboardingNag(props: OnboardingNagProps): JSX.Element;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Core } from "../../../../../../../libs/common/src/backbone";
3
+ interface OnboardingNagItemProps {
4
+ name: string;
5
+ complete: boolean;
6
+ svgName?: string;
7
+ appLink?: Core.AppLink;
8
+ }
9
+ export declare function OnboardingNagItem(props: OnboardingNagItemProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface OnboardingProgressProps {
3
+ progress: number;
4
+ }
5
+ export declare function OnboardingProgress(props: OnboardingProgressProps): JSX.Element;
6
+ export {};
@@ -1,8 +1,11 @@
1
1
  import { Core } from "../../../../../libs/common/src/backbone";
2
- import { OnlineLayoutViewOptions } from "../../shared/layouts";
3
- export declare class DefaultApplication extends Core.Application {
2
+ import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
3
+ import { OnlineLayoutViewOptions, OnlineLayoutView } from "../../shared/layouts";
4
+ export declare class DefaultApplication extends ReactApplication {
5
+ protected layout: OnlineLayoutView;
4
6
  get name(): string;
5
7
  static get router(): any;
6
8
  get channelName(): string;
7
9
  get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
10
+ verifyEmail(): void;
8
11
  }
@@ -0,0 +1,3 @@
1
+ export declare const VerifyEmailValidationSchema: import("yup").ObjectSchema<import("yup").Shape<object, {
2
+ email: string;
3
+ }>>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PopupViewProps } from "../../../../../../../libs/shared/src/interfaces";
3
+ export declare function VerifyEmailView(props: PopupViewProps): JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { Core } from "../../../../../libs/common/src/backbone";
2
+ import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
3
+ import { OnlineLayoutViewOptions, OnlineLayoutView } from "../../shared/layouts";
4
+ export declare class ExchangeApplication extends ReactApplication {
5
+ protected layout: OnlineLayoutView;
6
+ get name(): string;
7
+ static get router(): any;
8
+ get channelName(): string;
9
+ get layoutOptions(): Core.LayoutOptions<OnlineLayoutViewOptions>;
10
+ index(): void;
11
+ addToPlaylist(videoId: string): void;
12
+ private renderSubNav;
13
+ }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function ExchangeSubNav(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function ExchangeView(): JSX.Element;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { CurrentUser, Playlist } from "../../../../../../../libs/shared/src/interfaces";
3
+ interface LeftNavProps {
4
+ playlists: Playlist[];
5
+ currentUser: CurrentUser;
6
+ hasMorePlaylists: boolean;
7
+ fetchMorePlaylists: () => void;
8
+ isFetching: boolean;
9
+ canFollow: boolean;
10
+ selectedPlaylistId?: string;
11
+ }
12
+ declare function LeftNavWrapper(props: LeftNavProps): React.ReactElement;
13
+ export { LeftNavWrapper as LeftNav };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Playlist, CurrentUser } from "../../../../../../../libs/shared/src/interfaces";
3
+ interface LeftNavPlaylistOwnerIndicatorProps {
4
+ playlist: Playlist;
5
+ currentUser: CurrentUser;
6
+ }
7
+ export declare function LeftNavPlaylistOwnerIndicator(props: LeftNavPlaylistOwnerIndicatorProps): JSX.Element;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { CurrentUser, Playlist } from "../../../../../../../../libs/shared/src/interfaces";
3
+ interface LeftNavItemProps {
4
+ playlist: Playlist;
5
+ currentUser: CurrentUser;
6
+ canFollow: boolean;
7
+ selected?: boolean;
8
+ }
9
+ export declare function LeftNavItem(props: LeftNavItemProps): React.ReactElement;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Playlist, CurrentUser } from "../../../../../../../../libs/shared/src/interfaces";
3
+ interface LeftNavPlaylistOwnerIndicatorProps {
4
+ playlist: Playlist;
5
+ currentUser: CurrentUser;
6
+ }
7
+ export declare function LeftNavPlaylistOwnerIndicator(props: LeftNavPlaylistOwnerIndicatorProps): JSX.Element;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare function PartialLeftNav(): React.ReactElement;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare function LegacyPartialPlaylistList(): React.ReactElement;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
3
+ interface LegacyPlaylistItemProps {
4
+ playlist: Playlist;
5
+ }
6
+ export declare function LegacyPlaylistItem(props: LegacyPlaylistItemProps): React.ReactElement;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { Playlist } from "../../../../../../../libs/shared/src/interfaces";
3
+ interface PlaylistListProps {
4
+ playlists: Playlist[];
5
+ }
6
+ export declare function LegacyPlaylistList(props: PlaylistListProps): React.ReactElement;
7
+ export {};
@@ -5,10 +5,9 @@ interface PlaylistHeaderProps {
5
5
  playlist: Playlist;
6
6
  videoCount: number;
7
7
  isFollowing: boolean;
8
- follow: (shouldFollow: boolean) => void;
8
+ follow: (shouldFollow: boolean, onError: () => void) => void;
9
9
  imageCdnUrl: string;
10
- canShare?: boolean;
11
- shareAppLink?: Core.AppLink;
10
+ shareAppLink: Core.AppLink;
12
11
  canEdit?: boolean;
13
12
  canFollow?: boolean;
14
13
  }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function PartialPlaylistListHeader(): JSX.Element;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { Core } from "../../../../../../../libs/common/src/backbone";
3
+ import { CurrentUser } from "../../../../../../../libs/shared/src/interfaces";
4
+ import { PlaylistSortType } from "../../../../../../../libs/shared/src/apps/playlists/enums/PlaylistSortType";
5
+ export interface PlaylistListHeaderProps {
6
+ user: CurrentUser;
7
+ imageCdnUrl: string;
8
+ sortType: PlaylistSortType;
9
+ getSortAppLink: (sort: PlaylistSortType) => Core.AppLink;
10
+ canFollow: boolean;
11
+ }
12
+ export declare function PlaylistListHeader(props: PlaylistListHeaderProps): React.ReactElement;
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
+ import { AnalyticsOptions } from "../../../../../../../libs/analytics/src/interfaces";
2
3
  import { Video } from "../../../../../../../libs/shared/src/interfaces";
3
4
  interface WebPlayerComponentProps {
4
5
  video: Video;
6
+ analyticsOptions: AnalyticsOptions;
5
7
  }
6
8
  export declare function WebPlayerComponent(props: WebPlayerComponentProps): React.ReactElement;
7
9
  export {};
@@ -1,9 +1,7 @@
1
1
  import * as React from 'react';
2
- import { Core } from "../../../../../../../libs/common/src/backbone";
3
2
  import { PlaylistSortType } from "../../../../../../../libs/shared/src/apps/playlists/enums/PlaylistSortType";
4
3
  interface PlaylistsViewProps {
5
4
  sort: PlaylistSortType;
6
- getSortAppLink: (sort: PlaylistSortType) => Core.AppLink;
7
5
  }
8
6
  export declare function PlaylistsView(props: PlaylistsViewProps): React.ReactElement;
9
7
  export {};
@@ -1,8 +1,7 @@
1
1
  import { Core } from "../../../../../libs/common/src/backbone";
2
2
  import { HashObject } from "../../../../../libs/common/src/react/interfaces/HashObject";
3
- import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
4
3
  import { OnlineLayoutView, OnlineLayoutViewOptions } from "../../shared/layouts";
5
- export declare class SubjectApplication extends ReactApplication {
4
+ export declare class SubjectApplication extends Core.Application {
6
5
  protected layout: OnlineLayoutView;
7
6
  get name(): string;
8
7
  static get router(): any;
@@ -12,4 +11,5 @@ export declare class SubjectApplication extends ReactApplication {
12
11
  classificationSeries(classificationId: string, slug?: string, queryParams?: HashObject<string>): void;
13
12
  classificationPlaylists(id: string, slug?: string): void;
14
13
  preferences(params?: HashObject): void;
14
+ protected onShowAlert(options?: HashObject): void;
15
15
  }
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { Core } from "../../../../../../libs/common/src/backbone";
3
+ import { HashObject } from "../../../../../../libs/common/src/react/interfaces";
4
+ import { Presentation } from "../../../../../../libs/shared/src/interfaces";
5
+ import { BulkOnboardingPreferencesState } from "../../../../../../libs/shared/src/enums/BulkOnboardingPreferencesState";
6
+ import { PreferenceStep } from "../views/preferences/BasePreferencesView";
7
+ export declare const OnboardingHelper: {
8
+ buildAppLink(step: PreferenceStep, redirectUrl?: string): Core.AppLink;
9
+ getIsStep(currentStep: PreferenceStep): (steps?: "summary" | "curriculum" | "levels" | "subjects" | "welcome" | "school-level" | PreferenceStep[]) => boolean;
10
+ hasManyPresentationTypes(presentations?: Presentation[]): HashObject<any>;
11
+ getBulkPreferencesState(): {
12
+ levels: boolean;
13
+ subjects: boolean;
14
+ };
15
+ stepIsValid(step: string): step is PreferenceStep;
16
+ hasBulkSelectedLevels(bulkState: BulkOnboardingPreferencesState): boolean;
17
+ hasBulkSelectedSubjects(bulkState: BulkOnboardingPreferencesState): boolean;
18
+ getBackgroundImage(step: PreferenceStep): string;
19
+ getComponent(step: PreferenceStep): (...props: any) => JSX.Element;
20
+ };
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { HashObject } from "../../../../../../../libs/common/src/react/interfaces/HashObject";
3
3
  import { Classification } from "../../../../../../../libs/shared/src/interfaces";
4
4
  import { ActionOptions } from "../../../../../../../libs/shared/src/components/actions/Actions";
5
- export declare function getBannerActions(classification: Classification, onFollow: () => void): ActionOptions[];
5
+ export declare function getBannerActions(classification: Classification, onFollow: () => void, showFollowButtonSpinner: boolean): ActionOptions[];
6
6
  interface ClassificationViewProps {
7
7
  id: string;
8
8
  queryParams?: HashObject;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare type PreferenceStep = 'welcome' | 'subjects' | 'levels' | 'summary' | 'school-level' | 'curriculum';
3
+ interface BasePreferencesViewProps {
4
+ step: PreferenceStep;
5
+ redirectUrl: string;
6
+ }
7
+ export declare function BasePreferencesView({ step: currentStep, redirectUrl }: BasePreferencesViewProps): JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface CurriculumPresentationSelectorViewProps {
3
+ redirectUrl: string;
4
+ }
5
+ export declare function CurriculumPresentationSelectorView(props: CurriculumPresentationSelectorViewProps): JSX.Element;
6
+ export {};
@@ -1,4 +1,7 @@
1
- export * from './PreferencesView';
1
+ export * from './BasePreferencesView';
2
2
  export * from './subject-preferences/SubjectPreferencesView';
3
3
  export * from './level-preferences/LevelPreferencesView';
4
4
  export * from './summary/PreferencesSummaryView';
5
+ export * from './subject-presentation/SubjectPresentationSelectorView';
6
+ export * from './curriculum-presentation/CurriculumPresentationSelectorView';
7
+ export * from './welcome/PreferencesWelcomeView';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  interface LevelPreferencesViewProps {
3
- application: string;
3
+ redirectUrl: string;
4
4
  }
5
- export declare function LevelPreferencesView({ application }: LevelPreferencesViewProps): JSX.Element;
5
+ export declare function LevelPreferencesView({ redirectUrl }: LevelPreferencesViewProps): JSX.Element;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  interface SubjectPreferencesViewProps {
3
- application: string;
3
+ redirectUrl: string;
4
4
  }
5
- export declare function SubjectPreferencesView({ application }: SubjectPreferencesViewProps): JSX.Element;
5
+ export declare function SubjectPreferencesView({ redirectUrl }: SubjectPreferencesViewProps): JSX.Element;
6
6
  export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface SubjectPresentationSelectorViewProps {
3
+ redirectUrl: string;
4
+ }
5
+ export declare function SubjectPresentationSelectorView({ redirectUrl }: SubjectPresentationSelectorViewProps): JSX.Element;
6
+ export {};
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  interface PreferencesSummaryViewProps {
3
- application: string;
4
- onboarding: boolean;
3
+ redirectUrl: string;
5
4
  }
6
5
  export declare function PreferencesSummaryView(props: PreferencesSummaryViewProps): JSX.Element;
7
6
  export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface PreferencesWelcomeViewProps {
3
+ redirectUrl: string;
4
+ }
5
+ export declare function PreferencesWelcomeView({ redirectUrl }: PreferencesWelcomeViewProps): JSX.Element;
6
+ export {};
@@ -3,16 +3,20 @@ import './apps/content-updates/components/classification-update-breadcrumbs/clas
3
3
  import './apps/content-updates/components/whats-new-breadcrumbs/online-whats-new-breadcrumbs.lang.json';
4
4
  import './apps/content-updates/views/content-updates/content-updates.lang.json';
5
5
  import './apps/dashboard/components/hero-widget/hero-widget.lang.json';
6
+ import './apps/dashboard/components/onboarding-nag/onboarding-nag.lang.json';
6
7
  import './apps/dashboard/views/dashboard/dashboard.lang.json';
7
8
  import './apps/dashboard/views/error/error.lang.json';
9
+ import './apps/default/views/verify-email/verify-email.lang.json';
10
+ import './apps/exchange/components/exchange-sub-nav/exchange-sub-nav.lang.json';
11
+ import './apps/exchange/views/exchange/exchange.lang.json';
8
12
  import './apps/libraries/views/libraries/libraries.lang.json';
9
13
  import './apps/movies-and-tv/views/movies-and-tv/movies-and-tv.lang.json';
14
+ import './apps/playlists/components/left-nav/left-nav-item/left-nav-item.lang.json';
10
15
  import './apps/playlists/components/left-nav/left-nav.lang.json';
11
- import './apps/playlists/components/new-playlist-button/new-playlist-button.lang.json';
12
- import './apps/playlists/components/playlist-actions/playlist-actions.lang.json';
16
+ import './apps/playlists/components/legacy-playlist-list/legacy-playlist-item.lang.json';
13
17
  import './apps/playlists/components/playlist-details/playlist-details.lang.json';
14
18
  import './apps/playlists/components/playlist-header/playlist-header.lang.json';
15
- import './apps/playlists/components/playlist-list/playlist-list.lang.json';
19
+ import './apps/playlists/components/playlist-list-header/playlist-list-header.lang.json';
16
20
  import './apps/playlists/components/video-not-found/video-not-found.lang.json';
17
21
  import './apps/playlists/playlist-application.lang.json';
18
22
  import './apps/playlists/services/services.lang.json';
@@ -22,13 +26,17 @@ import './apps/playlists/views/delete-playlist/delete-playlist.lang.json';
22
26
  import './apps/playlists/views/edit-playlist/edit-playlist.lang.json';
23
27
  import './apps/playlists/views/migration-in-progress/migration-in-progress.lang.json';
24
28
  import './apps/playlists/views/new-playlist/new-playlist.lang.json';
29
+ import './apps/playlists/views/playlist/playlist-view.lang.json';
25
30
  import './apps/playlists/views/playlists/playlists.lang.json';
26
31
  import './apps/playlists/views/remove-video-from-playlist/remove-video-from-playlist.lang.json';
27
32
  import './apps/subjects/views/classification-series-list-view/classification-series-list.lang.json';
28
33
  import './apps/subjects/views/classification/classifications-view.lang.json';
34
+ import './apps/subjects/views/preferences/curriculum-presentation/curriculum-presentation-selector.lang.json';
29
35
  import './apps/subjects/views/preferences/level-preferences/level-preferences.lang.json';
30
36
  import './apps/subjects/views/preferences/subject-preferences/subject-preferences.lang.json';
37
+ import './apps/subjects/views/preferences/subject-presentation/subject-presentation-selector.lang.json';
31
38
  import './apps/subjects/views/preferences/summary/preferences-summary.lang.json';
39
+ import './apps/subjects/views/preferences/welcome/preferences-welcome.lang.json';
32
40
  import './shared/components/video-list/video-list.lang.json';
33
41
  import './shared/context/context.lang.json';
34
42
  import './shared/errors/not-found/not-found-error.lang.json';
@@ -41,6 +49,7 @@ import '../../../libs/shared/src/apps/notifications/views/notifications/notifica
41
49
  import '../../../libs/shared/src/apps/notifications/views/popover/notifications-popover.lang.json';
42
50
  import '../../../libs/shared/src/apps/playlists/components/empty-state/empty-state.lang.json';
43
51
  import '../../../libs/shared/src/apps/playlists/components/playlist-list/playlist-item.lang.json';
52
+ import '../../../libs/shared/src/apps/playlists/components/sort-select/playlist-sort-select.lang.json';
44
53
  import '../../../libs/shared/src/apps/playlists/hooks/playlists-hooks.lang.json';
45
54
  import '../../../libs/shared/src/apps/playlists/validation/playlists-validation.lang.json';
46
55
  import '../../../libs/shared/src/apps/search/components/search-tips/search-tips.lang.json';
@@ -69,16 +78,17 @@ export * from './shared/constants/Layouts';
69
78
  export * from './shared/constants/Services';
70
79
  export * from './shared/services/OnlineContextService';
71
80
  export * from './shared/layouts/OnlineLayoutView';
81
+ import { AlertView } from './shared/views/alert/AlertView';
72
82
  export * from './apps/default/OnlineDefaultApplication';
73
83
  export * from './apps/playlists/services';
74
84
  export * from './apps/playlists/OnlinePlaylistsApplication';
75
- export * from './apps/playlists/layouts/OnlinePlaylistsLayoutView';
76
85
  export * from './apps/subjects/SubjectApplication';
77
86
  export * from './apps/subjects/SubjectPlaylistsApplication';
78
87
  export * from './apps/content-updates/ContentUpdatesApplication';
79
88
  export * from './apps/dashboard/OnlineDashboardApplication';
80
89
  export * from './apps/movies-and-tv/MoviesAndTvApplication';
81
90
  export * from './apps/libraries/LibrariesApplication';
91
+ export * from './apps/exchange/ExchangeApplication';
82
92
  import { Core } from "../../../libs/common/src/backbone";
83
93
  import { InstanceManager } from "../../../libs/common/src/backbone/services/InstanceManager";
84
94
  import { AlertType, BaseAlertService } from "../../../libs/common/src/backbone/services/BaseAlertService";
@@ -103,6 +113,7 @@ import { AppOptionsService } from "../../../libs/shared/src/services/AppOptionsS
103
113
  import { AlertError } from "../../../libs/shared/src/errors/primitives/AlertError";
104
114
  import { DialogError } from "../../../libs/shared/src/errors/primitives/DialogError";
105
115
  import { ErrorPageError } from "../../../libs/shared/src/errors/primitives/ErrorPageError";
116
+ import { AlertList } from "../../../libs/shared/src/components/alert/AlertList";
106
117
  import { AnalyticsService } from "../../../libs/analytics/src/AnalyticsService";
107
118
  import { DebuggerClient } from "../../../libs/analytics/src/clients/DebuggerClient";
108
119
  import { EventTransport } from "../../../libs/analytics/src/transport/EventTransport";
@@ -111,4 +122,4 @@ import { CollectionApiClientHelper } from "../../../libs/analytics/src/utils/Col
111
122
  import { CountryRegionMapping } from "../../../libs/analytics/src/constants/CountryRegionMapping";
112
123
  import { CoreContextEnricher } from "../../../libs/analytics/src/enrichers/CoreContextEnricher";
113
124
  import { UserDataEnricher } from "../../../libs/analytics/src/enrichers/UserDataEnricher";
114
- export { Core, InstanceManager, BaseAlertService, AlertType, FifoMemoryCache, AjaxDataProvider, ConcurrencyHelper, UrlHelper, DevError, NotImplementedError, CommonServices, LanguageService, Flight, ViewModelReducer, ScrollService, CacheDurations, SharedDataServices, ConfigDataService, UserDataService, LanguageDataService, ImageUrlService, AnalyticsService, DebuggerClient, EventTransport, CollectionApiClient, CollectionApiClientHelper, CountryRegionMapping, CoreContextEnricher, UserDataEnricher, AppOptionsService, AlertError, DialogError, ErrorPageError };
125
+ export { Core, InstanceManager, BaseAlertService, AlertType, FifoMemoryCache, AjaxDataProvider, ConcurrencyHelper, UrlHelper, DevError, NotImplementedError, CommonServices, LanguageService, Flight, ViewModelReducer, ScrollService, CacheDurations, SharedDataServices, ConfigDataService, UserDataService, LanguageDataService, ImageUrlService, AnalyticsService, DebuggerClient, EventTransport, CollectionApiClient, CollectionApiClientHelper, CountryRegionMapping, CoreContextEnricher, UserDataEnricher, AppOptionsService, AlertError, DialogError, ErrorPageError, AlertList, AlertView };
@@ -1,5 +1,4 @@
1
1
  export * from './alert';
2
- export * from './dropdown';
3
2
  export * from './popup';
4
3
  export * from './AppLinkComponent';
5
4
  export * from './LazyImageComponent';
@@ -4,6 +4,7 @@ export declare const Actions: {
4
4
  VIDEO: string;
5
5
  SERIES: string;
6
6
  CONTENT_UPDATES: string;
7
+ VERIFY_EMAIL: string;
7
8
  };
8
9
  Playlists: {
9
10
  HOME: string;
@@ -74,4 +75,20 @@ export declare const Actions: {
74
75
  INTERACTVIES: string;
75
76
  MOST_RECENT: string;
76
77
  };
78
+ Exchange: {
79
+ HOME: string;
80
+ CATEGORIES: string;
81
+ MOST_RECENT: string;
82
+ FEATURED_CHANNELS: string;
83
+ INTERACTIVES: string;
84
+ TV_GUIDE: string;
85
+ FEATURED_CHANNEL: string;
86
+ CONTRIBUTE: string;
87
+ VIDEO: string;
88
+ SERIES: string;
89
+ ADD_TO_PLAYLIST: string;
90
+ WIDGET: string;
91
+ CLICKVIEW_TRAINING: string;
92
+ BCC_RES: string;
93
+ };
77
94
  };
@@ -7,6 +7,7 @@ export declare const AppChannels: {
7
7
  DASHBOARD: string;
8
8
  MOVIES_AND_TV: string;
9
9
  LIBRARIES: string;
10
+ EXCHANGE: string;
10
11
  };
11
12
  export declare const DataChannels: {
12
13
  CLASSIFICATION: string;
@@ -0,0 +1,3 @@
1
+ export declare const ViewModelKeys: {
2
+ VERIFY_EMAIL_CALLBACK: string;
3
+ };
@@ -1,4 +1,3 @@
1
1
  export * from './primitives/ServiceOptions';
2
- export * from './PlaylistCollectionIdentifier';
3
2
  export * from './WidgetCollectionIdentifier';
4
3
  export * from './DataIdentifier';
@@ -1,28 +1,31 @@
1
1
  import * as React from 'react';
2
2
  import { ObjectHash } from 'backbone';
3
- import { Core } from "../../../../../libs/common/src/backbone";
4
- import { ReactLayoutView } from "../../../../../libs/common/src/react/core/ReactLayoutView";
5
- export interface OnlineLayoutViewOptions extends Core.LayoutViewOptions {
3
+ import { ReactLayoutView, ReactLayoutViewOptions } from "../../../../../libs/common/src/react/core/ReactLayoutView";
4
+ export interface OnlineLayoutViewOptions extends ReactLayoutViewOptions {
6
5
  provider?: (props: React.PropsWithChildren<{}>) => React.ReactElement;
7
6
  hideLeftNav?: boolean;
8
7
  }
9
- export declare abstract class OnlineLayoutView extends ReactLayoutView {
8
+ export declare class OnlineLayoutView extends ReactLayoutView {
10
9
  protected options: OnlineLayoutViewOptions;
11
10
  protected childComponents: {
12
11
  [index: string]: React.ReactNode;
13
12
  };
14
13
  protected leftNavVisible: boolean;
14
+ private navHelper;
15
15
  constructor(options?: OnlineLayoutViewOptions);
16
+ initialize(): void;
16
17
  get title(): boolean;
17
18
  get name(): string;
18
19
  get template(): string;
20
+ get className(): string;
19
21
  regions(): ObjectHash;
20
22
  static getCacheKey(): string;
21
23
  private getChildComponents;
22
24
  protected unsetRegion(region: string): void;
23
- hideLeftNav(): void;
24
25
  closePopup(): void;
25
- abstract showLeftNav(): void;
26
+ hideLeftNav(): void;
27
+ showLeftNav(): void;
28
+ private updateResponsiveHideLeftNav;
26
29
  showChildView(region: string, component: React.ReactElement): void;
27
30
  renderLayout(): void;
28
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/online",
3
- "version": "0.0.5-dev.0",
3
+ "version": "0.0.5-rc.0",
4
4
  "description": "Online",
5
5
  "main": "dist/online-app.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,14 +20,14 @@
20
20
  "author": "",
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
- "@clickview/tooling": "0.0.18-dev.2",
23
+ "@clickview/tooling": "0.0.18-rc.0",
24
24
  "@types/linkifyjs": "2.1.3",
25
25
  "@types/react-sortable-hoc": "0.7.1",
26
26
  "@types/react-transition-group": "4.2.3",
27
27
  "@types/yup": "0.26.24"
28
28
  },
29
29
  "dependencies": {
30
- "@clickview/styles": "1.0.8-dev.2",
30
+ "@clickview/styles": "1.0.8-rc.0",
31
31
  "yup": "0.27.0"
32
32
  },
33
33
  "babel": {
@@ -7,6 +7,16 @@ declare namespace ClickView {
7
7
  }
8
8
  }
9
9
 
10
+ declare namespace currentUser {
11
+ declare function hasCompletedOnboarding(): boolean;
12
+ declare function completeOnboarding(): void;
13
+ declare function mustCompleteOnboarding(): boolean;
14
+ declare function getBulkOnboardingPreferencesState(): import('libs/shared/enums/BulkOnboardingPreferencesState').BulkOnboardingPreferencesState;
15
+ declare function updateBulkOnboardingPreferencesState(value: import('libs/shared/enums/BulkOnboardingPreferencesState').BulkOnboardingPreferencesState): void;
16
+ declare function isAdmin(): boolean;
17
+ declare function isStaff(): boolean;
18
+ }
19
+
10
20
  declare namespace Data {
11
21
  declare namespace Config {
12
22
  declare const env: string;
@@ -14,10 +24,23 @@ declare namespace ClickView {
14
24
  declare const code: string;
15
25
  }
16
26
  }
27
+
28
+ declare namespace User {
29
+ declare namespace presentation {
30
+ declare const id: string;
31
+ }
32
+
33
+ declare const workspaceId: string;
34
+ }
17
35
  }
18
36
 
19
37
  declare namespace currentUser {
20
38
  declare function hasSubjects(): boolean;
21
39
  declare function hasMoviesAndTv(): boolean;
40
+ declare function get(key: string): any;
41
+ declare function getRegion(): string;
42
+ declare function isAdmin(): boolean;
43
+ declare function isStaff(): boolean;
44
+ declare function isAuthenticated(): boolean;
22
45
  }
23
46
  }
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare type PreferenceStep = 'subjects' | 'levels' | 'summary';
3
- interface PreferencesViewProps {
4
- step: PreferenceStep;
5
- application: string;
6
- }
7
- export declare function PreferencesView({ step: currentStep, application }: PreferencesViewProps): JSX.Element;
8
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function InfoBanner(props: React.PropsWithChildren<{}>): JSX.Element;