@clickview/curator 1.0.23 → 1.0.24-dev.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 (107) hide show
  1. package/.eslintrc.json +3 -0
  2. package/dist/curator-app.css +1 -1
  3. package/dist/curator-app.js +3 -3
  4. package/dist/en.json +1 -1
  5. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +8 -3
  6. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
  7. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +1 -1
  8. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
  9. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
  10. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
  11. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
  12. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
  13. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
  14. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
  15. package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
  16. package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
  17. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
  18. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
  19. package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
  20. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
  21. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
  22. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
  23. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
  24. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
  25. package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
  26. package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
  27. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
  28. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
  29. package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +9 -0
  30. package/dist/libs/shared/src/components/confirmation-popup/ConfirmationPopup.d.ts +5 -2
  31. package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
  32. package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
  33. package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
  34. package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
  35. package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
  36. package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
  37. package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +24 -0
  38. package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +6 -2
  39. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  40. package/dist/{projects/curator/src/shared → libs/shared/src}/context/ImageStorageContext.d.ts +1 -1
  41. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
  42. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
  43. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
  44. package/dist/libs/shared/src/enums/UserGroup.d.ts +5 -0
  45. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  46. package/dist/libs/shared/src/flight-requests/ImageRequests.d.ts +7 -0
  47. package/dist/{projects/curator/src/shared → libs/shared/src}/flight-requests/RatingRequests.d.ts +1 -1
  48. package/dist/libs/shared/src/flight-requests/ThemeRequests.d.ts +2 -0
  49. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +3 -1
  50. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  51. package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
  52. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
  53. package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
  54. package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
  55. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
  56. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
  57. package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
  58. package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
  59. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
  60. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
  61. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
  62. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
  63. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
  64. package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
  65. package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
  66. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
  67. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
  68. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
  69. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
  70. package/dist/libs/shared/src/interfaces/requests/index.d.ts +4 -0
  71. package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
  72. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
  73. package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
  74. package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
  75. package/dist/{projects/curator/src/shared → libs/shared/src}/utils/ImageSelectHelper.d.ts +1 -1
  76. package/dist/libs/shared/src/utils/StateHelper.d.ts +10 -9
  77. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
  78. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +21 -0
  79. package/dist/libs/shared/src/views/image-upload/ImageUploadView.d.ts +9 -0
  80. package/dist/projects/curator/src/apps/series/interfaces/data-requests/Series.d.ts +1 -2
  81. package/dist/projects/curator/src/apps/videos/interfaces/data-requests/UpdateVideoRequest.d.ts +1 -2
  82. package/dist/projects/curator/src/index.d.ts +20 -0
  83. package/dist/projects/curator/src/shared/components/forms/image-select/ImageSelect.d.ts +4 -3
  84. package/dist/projects/curator/src/shared/components/forms/index.d.ts +0 -1
  85. package/dist/projects/curator/src/shared/components/index.d.ts +0 -1
  86. package/dist/projects/curator/src/shared/components/rating-select/RatingSelect.d.ts +4 -4
  87. package/dist/projects/curator/src/shared/constants/Services.d.ts +0 -1
  88. package/dist/projects/curator/src/shared/constants/index.d.ts +0 -1
  89. package/dist/projects/curator/src/shared/interfaces/data-requests/index.d.ts +0 -1
  90. package/dist/projects/curator/src/shared/layouts/curator-layout/CuratorLayoutView.d.ts +1 -1
  91. package/dist/projects/curator/src/shared/layouts/primitives/LayoutComponent.d.ts +1 -1
  92. package/dist/projects/curator/src/shared/services/index.d.ts +0 -1
  93. package/dist/projects/curator/src/shared/utils/PropHelper.d.ts +2 -1
  94. package/dist/projects/curator/src/shared/utils/index.d.ts +0 -1
  95. package/package.json +4 -3
  96. package/dist/curator-app.css.map +0 -1
  97. package/dist/curator-app.js.map +0 -1
  98. package/dist/projects/curator/src/shared/components/forms/file-select/index.d.ts +0 -1
  99. package/dist/projects/curator/src/shared/components/image-cropper/index.d.ts +0 -1
  100. package/dist/projects/curator/src/shared/constants/FileExtensions.d.ts +0 -3
  101. package/dist/projects/curator/src/shared/context/index.d.ts +0 -1
  102. package/dist/projects/curator/src/shared/services/ImageUploadDataService.d.ts +0 -8
  103. package/dist/projects/curator/src/shared/views/image-upload/ImageUploadView.d.ts +0 -8
  104. package/dist/projects/curator/src/shared/views/image-upload/index.d.ts +0 -1
  105. package/dist/projects/curator/src/shared/views/index.d.ts +0 -1
  106. /package/dist/{projects/curator/src/shared → libs/shared/src}/components/image-cropper/ImageCropper.d.ts +0 -0
  107. /package/dist/{projects/curator/src/shared/interfaces/data-requests → libs/shared/src/interfaces/requests}/UpdateObjectRating.d.ts +0 -0
package/dist/en.json CHANGED
@@ -1 +1 @@
1
- {"subjects":{"selectPresentation":{"heading":"Select a presentation to view its %{objectType}:"},"comingSoon":{"comingSoon":"Coming Soon","info":"We are currently building this topic. In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips","heading":"Featured video"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"playlists":{"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>New Playlist</strong> above to create one.","noVideosHeading":"There are no videos in this playlist","noVideosInfo":"Learn how to add videos to a playlist."},"playlistItem":{"videos":"%{smart_count} video |||| %{smart_count} videos","lastUpdated":"Last updated: %{timeAgo}","notUpdatedRecently":"Last updated over a month ago"},"playlistSortSelect":{"recentlyUpdated":"Recently updated","atoz":"A to Z","ztoa":"Z to A","newest":"Newest","oldest":"Oldest"},"hooks":{"somethingWentWrong":"Something went wrong"},"validation":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long"}},"search":{"searchTips":{"heading":"Search Tips","firstTerm":"\"atomic bonding\"","firstDescription":"Search for exact phrases using quotation marks","secondTerm":"\"romeo and juliet\" english","secondDescription":"Combine normal and exact phrases together","thirdTerm":"-pollution","thirdDescription":"Exclude a keyword from your search","fourthTerm1":"tag:literature","fourthTerm2":"folder:science","fourthDescription":"Search for results within a tag, folder or series","fifthTerm":"folder:-physics","fifthDescription":"Use a \"-\" to exclude a folder, title or series"},"services":{"folderTag":"This folder","seriesTag":"This series"},"searchBar":{"findingResults":"Finding results...","recentSearches":"Recent Searches","allResults":"Show all results for","noLibraries":"There are currently no libraries to search. Add a new library to get started.","placeholder":"Search within your library... |||| Search within your libraries...","classifications":"topics","videos":"videos","tags":"tags","series":"series"}},"upload":{"fileType":{"heading":"Invalid file type","body":"Sorry but you cannot upload files of that type.","okay":"Okay","close":"Close"},"internetConnectivityError":{"title":"Internet connectivity issue","heading":"Connectivity issue.","body":"There seems to be an issue with your internet connection. Please try uploading your files again.","okay":"Okay"},"utils":{"videoProcessingError":"Something went wrong processing this video.","waiting":"Waiting to be processed","processing":"Processing %{progress}%","complete":"Complete","readyToWatch":"Ready to watch, still processing higher resolutions."}},"shared":{"backButton":{"back":"Back","backTo":"Back to %{backToName}"},"badges":{"interactive":"Interactive","resources":"Resources"},"curriculumLinks":{"curriculumLinks":"Curriculum Links","seeLess":"See less"},"editVideoDetails":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long","namePlaceholder":"Enter a name for your video","descriptionPlaceholder":"Enter a description for your video","cancel":"Cancel","nameLabel":"Title","descriptionLabel":"Description"},"favouriteButton":{"favouriteError":"Failed to favourite video.","unfavouriteError":"Failed to unfavourite video."},"formButtons":{"create":"Create","save":"Save","next":"Next"},"pagination":{"next":"Next","previous":"Previous"},"searchBar":{"placeholder":"Enter a search query","recentSearchHeading":"Recent Searches"},"videoItemDescription":{"showMore":"... Show more","showLess":"Show less"},"dynamicWidget":{"topics":"Topics","teach":"What would you like to teach?","preferencesTooltip":"Update your preferences"},"fixedWidget":{"preferencesTooltip":"Update your preferences"},"greeting":{"morning":"Good morning","afternoon":"Good afternoon","evening":"Good evening","fallback":"Hello","prompt":"What would you like to teach today?"},"interactiveWidgetItem":{"previewQuestions":"Preview Questions"},"subjectWidgetItem":{"comingSoon":"Coming Soon","edit":"Edit My Subjects","all":"Explore all subjects"},"_pagination":{"next":"Next","previous":"Previous"},"shared-utils":{"responsive":"Responsive","small":"Small","medium":"Medium","large":"Large"},"videoActionsHelper":{"addToPlaylist":"Add to playlist","removeFromPlaylist":"Remove from playlist","share":"Share","edit":"Edit"}}}
1
+ {"subjects":{"selectPresentation":{"heading":"Select a presentation to view its %{objectType}:"},"comingSoon":{"comingSoon":"Coming Soon","info":"We are currently building this topic. In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips","heading":"Featured video"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"playlists":{"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>New Playlist</strong> above to create one.","noVideosHeading":"There are no videos in this playlist","noVideosInfo":"Learn how to add videos to a playlist."},"playlistItem":{"videos":"%{smart_count} video |||| %{smart_count} videos","lastUpdated":"Last updated: %{timeAgo}","notUpdatedRecently":"Last updated over a month ago"},"playlistSortSelect":{"recentlyUpdated":"Recently updated","atoz":"A to Z","ztoa":"Z to A","newest":"Newest","oldest":"Oldest"},"hooks":{"somethingWentWrong":"Something went wrong"},"validation":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long"}},"search":{"searchTips":{"heading":"Search Tips","firstTerm":"\"atomic bonding\"","firstDescription":"Search for exact phrases using quotation marks","secondTerm":"\"romeo and juliet\" english","secondDescription":"Combine normal and exact phrases together","thirdTerm":"-pollution","thirdDescription":"Exclude a keyword from your search","fourthTerm1":"tag:literature","fourthTerm2":"folder:science","fourthDescription":"Search for results within a tag, folder or series","fifthTerm":"folder:-physics","fifthDescription":"Use a \"-\" to exclude a folder, title or series"},"services":{"folderTag":"This folder","seriesTag":"This series"},"searchBar":{"findingResults":"Finding results...","recentSearches":"Recent Searches","allResults":"Show all results for","noLibraries":"There are currently no libraries to search. Add a new library to get started.","placeholder":"Search within your library... |||| Search within your libraries...","classifications":"topics","videos":"videos","tags":"tags","series":"series"}},"upload":{"fileType":{"heading":"Invalid file type","body":"Sorry but you cannot upload files of that type.","okay":"Okay","close":"Close"},"internetConnectivityError":{"title":"Internet connectivity issue","heading":"Connectivity issue.","body":"There seems to be an issue with your internet connection. Please try uploading your files again.","okay":"Okay"},"utils":{"videoProcessingError":"Something went wrong processing this video.","waiting":"Waiting to be processed","processing":"Processing %{progress}%","complete":"Complete","readyToWatch":"Ready to watch, still processing higher resolutions."}},"shared":{"backButton":{"back":"Back","backTo":"Back to %{backToName}"},"badges":{"interactive":"Interactive","resources":"Resources"},"channelFormField":{"channel":"Channel","placeholder":"Search for a channel..."},"confirmationPopup":{"confirm":"Confirm","cancel":"Cancel"},"curriculumLinks":{"curriculumLinks":"Curriculum Links","seeLess":"See less"},"editLink":{"linkNameExceeds":"Please provide a shorter name","linkNameRequired":"Please provide a name for your resource","linkUrlRequired":"Please provide a valid URL for your resource. e.g. https://example.com","linkUrlExceeds":"Please provide a shorter URL","urlLabel":"URL","urlPlaceholder":"Paste the URL to a resource here","nameLabel":"Name","namePlaceholder":"Display name","cancel":"Cancel"},"editResource":{"name":"Name","namePlaceholder":"Enter a name for this resource","nameTooLong":"Name is too long","nameRequired":"Name is required","cancel":"Cancel"},"editVideoDetails":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long","namePlaceholder":"Enter a name for your video","descriptionPlaceholder":"Enter a description for your video","cancel":"Cancel","nameLabel":"Title","descriptionLabel":"Description"},"editVideoLinks":{"heading":"Resource Links","description":"You may attach links to other learning resources related to this video.","attach":"Attach","limit":"There is a resource link limit of %{limit} links. To add another link please first remove one."},"editVideoResources":{"resourcesLimit":"There is a resource limit of %{limit} resources. To add another resource please first remove one.","customerResources":"My School's Learning Resources","clickViewResources":"Learning Resources by ClickView","resources":"Learning Resources","resourcesDescription":"Maximum file size 10MB. <span class='text-muted'>(Word, Excel, PowerPoint, pdf, text and images are supported.)</span>","resourcesAlternative":"or Drag and drop learning resources(s) to upload","clickViewResourcesEmpty":"There are no ClickView resources for this video"},"editVideoSubtitles":{"subtitlesLimit":"There is a subtitle limit of %{limit} subtitles. To add another subtitle please first remove one.","customerSubtitles":"My School's Subtitles","subtitles":"Subtitles","subtitlesDescription":"You can upload up to %{limit} subtitles. <span class='text-muted'>(.srt files are supported.)</span>","subtitlesAlternative":"or Drag and drop a subtitle file (*.srt) to upload","clickViewSubtitles":"Subtitles by ClickView","clickViewSubtitlesEmpty":"There are no ClickView subtitles for this video"},"favouriteButton":{"favouriteError":"Failed to favourite video.","unfavouriteError":"Failed to unfavourite video."},"formButtons":{"create":"Create","save":"Save","next":"Next"},"imageSelect":{"minDimensions":"(Minimum dimensions are %{width}px x %{height}px)","uploadAThumbnail":"Upload a thumbnail"},"languageSelect":{"heading":"Select a language for your subtitle","placeholder":"Select a language","close":"Close","submit":"Submit","label":"Language"},"pagination":{"next":"Next","previous":"Previous"},"searchBar":{"placeholder":"Enter a search query","recentSearchHeading":"Recent Searches"},"videoItemDescription":{"showMore":"... Show more","showLess":"Show less"},"dynamicWidget":{"topics":"Topics","teach":"What would you like to teach?","preferencesTooltip":"Update your preferences"},"fixedWidget":{"preferencesTooltip":"Update your preferences"},"greeting":{"morning":"Good morning","afternoon":"Good afternoon","evening":"Good evening","fallback":"Hello","prompt":"What would you like to teach today?"},"interactiveWidgetItem":{"previewQuestions":"Preview Questions"},"subjectWidgetItem":{"comingSoon":"Coming Soon","edit":"Edit My Subjects","all":"Explore all subjects"},"behaviors":{"fileDrop":{"fileDrop":"Drop files here to begin uploading"}},"_fileSelect":{"browse":"Browse for a file","drop":"Drop files here to begin uploading"},"_pagination":{"next":"Next","previous":"Previous"},"tooManyFiles":{"title":"Uploading many files","heading":"Many files selected","body":"Please only upload file at a time.","okay":"Okay"},"errors":{"tooManyResources":{"heading":"Too many resources.","body":"Cannot add more than %{resourceLimit} resource files to a video. Please remove some resources if you would like to add more.","okay":"Okay"},"tooManySubtitles":{"heading":"Too many subtitles","body":"Cannot add more than %{subtitleLimit} subtitle files to a video. Please remove some subtitles if you would like to add more.","okay":"Okay"}},"shared-utils":{"responsive":"Responsive","small":"Small","medium":"Medium","large":"Large","exchange":"Exchange","workspace":"Workspace","file":"File","zipArchive":"Zip archive","presentation":"Presentation","spreadsheet":"Spreadsheet","document":"Document","pdf":"PDF","image":"Image","autoGeneratedSubtitle":"%{name} (auto-generated)"},"videoActionsHelper":{"addToPlaylist":"Add to playlist","removeFromPlaylist":"Remove from playlist","share":"Share","edit":"Edit"},"deleteLinkView":{"heading":"Remove link?","body":"Are you sure you want to remove <strong>%{name}</strong>?","remove":"Remove","success":"Successfully removed link","error":"Failed to remove link. Please try again later."},"deleteResourceView":{"heading":"Remove learning resource?","body":"Are you sure you want to remove <strong>%{name}</strong>?","remove":"Remove","success":"Successfully removed resource","error":"Failed to remove resource. Please try again later."},"deleteSubtitleView":{"heading":"Remove subtitle?","body":"Are you sure you want to remove these subtitles: <strong>%{language}</strong>?","remove":"Remove","success":"Successfully removed subtitle","error":"Failed to remove subtitle. Please try again later."},"editLinkView":{"heading":"Edit link","success":"Successfully saved link","error":"Failed to save link. Please try again later."},"editResourceView":{"heading":"Edit learning resource","success":"Successfully updated resource","error":"Failed to update resource. Please try again later."}},"workspace":{"ratingSelect":{"rating":"Rating","removeRating":"Remove rating","removeRatingTitle":"Without a rating, this video will be viewable by all staff and students"}}}
@@ -60,6 +60,9 @@ export declare enum UserAction {
60
60
  Favourite = "cv_product_favourite",
61
61
  Follow = "cv_product_follow",
62
62
  Prefer = "cv_product_prefer",
63
+ Print = "cv_product_print",
64
+ Copy = "cv_product_copy",
65
+ Activate = "cv_product_activate",
63
66
  SetAccess = "cv_product_set_access",
64
67
  AddToLocalCache = "cv_product_add_to_lc",
65
68
  /**
@@ -139,8 +142,8 @@ export declare enum LocationContext {
139
142
  MigrationWarnings = "migration_warnings",
140
143
  PlaylistListHeader = "playlist_list_header",
141
144
  PlaylistListItem = "playlist_list_item",
142
- TeacherManager = "teacher_manager",
143
- TeacherManagerListItem = "teacher_manager_list_item",
145
+ StaffManager = "staff_manager",
146
+ StaffManagerListItem = "staff_manager_list_item",
144
147
  StudentManager = "student_manager",
145
148
  StudentManagerListItem = "student_manager_list_item",
146
149
  ClassroomsList = "classrooms_list",
@@ -152,6 +155,7 @@ export declare enum LocationContext {
152
155
  ManageClassroomGroups = "manage_classroom_groups",
153
156
  ManageClassroomGroupListItem = "manage_classroom_group_list_item",
154
157
  PlayPage = "play_page",
158
+ Player = "player",
155
159
  FloatingPlayer = "floating_player",
156
160
  InteractivePlayer = "interactive_player",
157
161
  EmbeddedPlayer = "embedded_player",
@@ -277,7 +281,8 @@ export declare enum SuggestionDescriptor {
277
281
  export declare enum AssocDescriptor {
278
282
  Image = "image",
279
283
  User = "user",
280
- Playlist = "playlist"
284
+ Playlist = "playlist",
285
+ Link = "link"
281
286
  }
282
287
  export declare enum ToggleDescriptor {
283
288
  On = "on",
@@ -1,5 +1,4 @@
1
1
  export declare const CommonServices: {
2
2
  ALERT: string;
3
- SCROLL: string;
4
3
  LANGUAGE: string;
5
4
  };
@@ -95,5 +95,5 @@ export declare class BaseAppRouter extends Marionette.AppRouter {
95
95
  private toMethodName;
96
96
  private validateAppLink;
97
97
  listenTo(object: any, eventMap: Backbone.EventMap): this;
98
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
98
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
99
99
  }
@@ -72,5 +72,5 @@ export declare class BaseApplication extends Marionette.Application {
72
72
  protected setDefaultQueryParams(params: ObjectHash): void;
73
73
  getAndClearDefaultQueryParams(): ObjectHash;
74
74
  listenTo(object: any, eventMap: Backbone.EventMap): this;
75
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
75
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
76
76
  }
@@ -2,5 +2,5 @@
2
2
  import * as Marionette from 'backbone.marionette';
3
3
  export declare class BaseBehavior extends Marionette.Behavior {
4
4
  listenTo(object: any, eventMap: Backbone.EventMap): this;
5
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
5
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
6
6
  }
@@ -3,5 +3,5 @@ import { BaseModel } from './BaseModel';
3
3
  export declare class BaseCollection<TModel extends BaseModel = BaseModel> extends Backbone.Collection<TModel> {
4
4
  parent?: BaseModel | BaseCollection;
5
5
  listenTo(object: any, eventMap: Backbone.EventMap): this;
6
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
6
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
7
7
  }
@@ -12,5 +12,5 @@ export declare class BaseCollectionView<TModel extends BaseModel = BaseModel, TV
12
12
  serializeModel(): any;
13
13
  serializeCollection(): any[];
14
14
  listenTo(object: any, eventMap: Backbone.EventMap): this;
15
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
15
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
16
16
  }
@@ -6,6 +6,6 @@ export interface BaseLayoutViewOptions extends BaseViewOptions {
6
6
  export declare class BaseLayoutView extends BaseView {
7
7
  protected options: BaseLayoutViewOptions;
8
8
  constructor(options: BaseLayoutViewOptions);
9
- static getCacheKey(options: BaseLayoutViewOptions): string;
9
+ static getCacheKey(options?: BaseLayoutViewOptions): string;
10
10
  unmountRegion(regionName: string): void;
11
11
  }
@@ -23,5 +23,5 @@ export declare class BaseModel extends Backbone.Model {
23
23
  preValidate: (attr: any, value: any) => any;
24
24
  validate(attributes?: any, options?: any): any;
25
25
  listenTo(object: any, eventMap: Backbone.EventMap): this;
26
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
26
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
27
27
  }
@@ -12,7 +12,7 @@ export declare class BaseNestedModel extends BaseModel {
12
12
  protected associations: {
13
13
  [name: string]: Association;
14
14
  };
15
- set(key: string | object, value?: any | ModelSetOptions, options?: BaseNestedModelOptions): BaseNestedModel;
15
+ set(key: string | ObjectHash, value?: any | ModelSetOptions, options?: BaseNestedModelOptions): BaseNestedModel;
16
16
  get(attributeName: string): any;
17
17
  setAssociation(key: string, value: any, options: BaseNestedModelOptions): BaseModel | BaseCollection<BaseModel>;
18
18
  toJSON(...args: any[]): ObjectHash;
@@ -6,5 +6,5 @@ export declare class BaseService extends Marionette.Object {
6
6
  name: string;
7
7
  constructor(options?: BaseServiceOptions);
8
8
  listenTo(object: any, eventMap: Backbone.EventMap): this;
9
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
9
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
10
10
  }
@@ -74,7 +74,7 @@ export declare class CoreView<TModel extends BaseModel = BaseModel> extends Mari
74
74
  constructor(options?: BaseViewOptions<TModel>);
75
75
  appLinks: AppLinkHash;
76
76
  normalizeUIKeys: (hash: UIHash) => UIHash;
77
- static AddViewDataExtension(ext: Function | Backbone.ObjectHash): void;
77
+ static AddViewDataExtension(ext: (...args: any) => any | Backbone.ObjectHash): void;
78
78
  serializeModel(): any;
79
79
  serializeCollection(): any[];
80
80
  /**
@@ -99,7 +99,7 @@ export declare class CoreView<TModel extends BaseModel = BaseModel> extends Mari
99
99
  private hasPartialLoadingRegions;
100
100
  protected renderPartialLoading(region?: string): void;
101
101
  listenTo(object: any, eventMap: Backbone.EventMap): this;
102
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
102
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
103
103
  render(): CoreView<TModel>;
104
104
  /** backbone.stickit stuff that is mixed in at run time.
105
105
  *
@@ -27,5 +27,5 @@ export declare class LayoutService extends Marionette.Object {
27
27
  */
28
28
  private checkRequiredRegions;
29
29
  listenTo(object: any, eventMap: Backbone.EventMap): this;
30
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
30
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
31
31
  }
@@ -1,3 +1,3 @@
1
1
  /// <reference types="backbone" />
2
- declare function ListenToRadio(obj: string | Backbone.Events, events: string, callback: Function, originalListenTo: Function): any;
2
+ declare function ListenToRadio(obj: string | Backbone.Events, events: string, callback: (...args: any) => any, originalListenTo: (...args: any) => any): any;
3
3
  export { ListenToRadio };
@@ -74,6 +74,6 @@ export declare class Shell extends Marionette.Application {
74
74
  store: Store;
75
75
  registerStore(store: Store): void;
76
76
  listenTo(object: any, eventMap: Backbone.EventMap): this;
77
- listenTo(obj: string | Backbone.Events, events: string, callback: Function): this;
77
+ listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
78
78
  }
79
79
  export {};
@@ -1,11 +1,12 @@
1
1
  import { ObjectHash } from 'backbone';
2
+ import { HashObject } from "../../react/interfaces";
2
3
  export interface BaseCollectionIdentifierOptions<T> {
3
4
  collectionPrefix?: string;
4
5
  id?: string;
5
6
  sort?: T;
6
7
  cursor?: string;
7
8
  }
8
- export declare class BaseCollectionIdentifier<T = {}> {
9
+ export declare class BaseCollectionIdentifier<T = HashObject> {
9
10
  id: string;
10
11
  sort: T;
11
12
  cursor: string;
@@ -9,7 +9,7 @@ export interface DataProviderResponseOptions {
9
9
  export interface DataProvider extends Marionette.Object {
10
10
  parseError(...args: any[]): DataServiceError;
11
11
  create<T>(resource: string, obj: T, options: DataProviderResponseOptions): void;
12
- read<T>(resource: string, options: DataProviderResponseOptions): void;
12
+ read(resource: string, options: DataProviderResponseOptions): void;
13
13
  update<T>(resource: string, obj: T, options: DataProviderResponseOptions): void;
14
14
  delete(resource: string, options: DataProviderResponseOptions): void;
15
15
  }
@@ -16,7 +16,7 @@ declare class StaticLanguageService extends BaseService {
16
16
  get name(): string;
17
17
  setConfig(config: LanguageConfig): void;
18
18
  getPhrase(namespace: string, phraseKey: string, options?: LanguageInterpolationOptions): string;
19
- encloseNamespace(namespace: string): Function;
19
+ encloseNamespace(namespace: string): (phraseKey: string, options?: LanguageInterpolationOptions) => string;
20
20
  }
21
21
  export declare const LanguageService: StaticLanguageService;
22
22
  export {};
@@ -26,6 +26,6 @@ export declare class AjaxDataProvider extends Marionette.Object implements DataP
26
26
  delete(resource: string, options: DataProviderResponseOptions): void;
27
27
  useMiddleware(name: string, callback: MiddlewareCallback): void;
28
28
  useErrorMiddleware(name: string, callback: MiddlewareCallback): void;
29
- parseError(jqXHR: JQuery.jqXHR, textStatus: string, errorThrown: any): DataServiceError;
29
+ parseError(jqXHR: JQuery.jqXHR): DataServiceError;
30
30
  }
31
31
  export {};
@@ -1,8 +1,8 @@
1
1
  import * as _ from 'underscore';
2
2
  export declare const FunctionHelper: {
3
- debounce<T extends Function>(fn: T, wait: number, immediate?: boolean): T & _.Cancelable;
4
- throttle<T_1 extends Function>(fn: T_1, wait: number, options?: _.ThrottleSettings): T_1 & _.Cancelable;
3
+ debounce<T extends (...args: any) => any>(fn: T, wait: number, immediate?: boolean): T & _.Cancelable;
4
+ throttle<T_1 extends (...args: any) => any>(fn: T_1, wait: number, options?: _.ThrottleSettings): T_1 & _.Cancelable;
5
5
  isFunction(object: any): object is Function;
6
6
  useIdentity<T_2>(): (...args: any[]) => T_2;
7
- memoize<T_3 = Function>(fn: T_3, hashFn?: (...args: any[]) => string): T_3;
7
+ memoize<T_3 = (...args: any) => any>(fn: T_3, hashFn?: (...args: any[]) => string): T_3;
8
8
  };
@@ -7,5 +7,5 @@ interface MiddlewareOptions {
7
7
  bootstrappedData?: HashObject;
8
8
  defaultExpiryTime?: number;
9
9
  }
10
- export declare function createMiddleware(options: MiddlewareOptions): Middleware<{}, ApplicationState, Dispatch<AnyAction>>;
10
+ export declare function createMiddleware(options: MiddlewareOptions): Middleware<HashObject, ApplicationState, Dispatch<AnyAction>>;
11
11
  export {};
@@ -17,6 +17,9 @@ export interface HttpRequestOptions {
17
17
  success: SuccessFunction;
18
18
  error: ErrorFunction;
19
19
  always?: AlwaysFunction;
20
+ headers?: {
21
+ authorization?: string;
22
+ };
20
23
  }
21
24
  export interface HttpRequest {
22
25
  (options: HttpRequestOptions): void;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as _ from 'underscore';
3
+ import { HashObject } from '../interfaces';
3
4
  declare type Iterator<T, TResult = T> = (value: T, index: number, list: T[]) => TResult;
4
5
  export declare const ArrayHelper: {
5
6
  first<T>(arr: T[]): T;
@@ -11,8 +12,8 @@ export declare const ArrayHelper: {
11
12
  moveItem<T_6>(arr: T_6[], fromIdx: number, toIdx: number): T_6[];
12
13
  isEmpty<T_7>(arr: T_7[]): boolean;
13
14
  findIndex<T_8>(arr: T_8[], predicate: (item: T_8) => boolean): number;
14
- findWhere<T_9, U extends {}>(arr: T_9[], properties: U): T_9;
15
- where<T_10, U_1 extends {}>(arr: T_10[], properties: U_1): T_10[];
15
+ findWhere<T_9, U extends HashObject<any>>(arr: T_9[], properties: U): T_9;
16
+ where<T_10, U_1 extends HashObject<any>>(arr: T_10[], properties: U_1): T_10[];
16
17
  groupBy<T_11>(arr: T_11[], property: string): {
17
18
  [index: string]: T_11[];
18
19
  };
@@ -37,7 +38,7 @@ export declare const ArrayHelper: {
37
38
  * @param arr array of values
38
39
  * @param iteratee an iterator function or a string name of the property to sort by.
39
40
  */
40
- sortBy<T_16 extends {}, TSort = T_16>(arr: T_16[], iteratee?: Iterator<T_16, TSort> | keyof T_16): T_16[];
41
+ sortBy<T_16 extends HashObject<any>, TSort = T_16>(arr: T_16[], iteratee?: Iterator<T_16, TSort> | keyof T_16): T_16[];
41
42
  chunk<T_17>(array: _.Collection<T_17>, count: number): T_17[][];
42
43
  uniq<T_18>(array: _.List<T_18>): T_18[];
43
44
  };
@@ -27,7 +27,7 @@ export interface FetchOptions {
27
27
  *
28
28
  * Deliberately a loose Function type so that we can use React setState setters.
29
29
  */
30
- setData: Function;
30
+ setData: (...args: any) => any;
31
31
  /**
32
32
  * onError callback fn.
33
33
  */
@@ -0,0 +1,9 @@
1
+ declare const FileExtensions: {
2
+ IMAGES: string;
3
+ RESOURCES: string;
4
+ SUBTITLES: string;
5
+ };
6
+ declare const FileExtensionHelper: {
7
+ getResourceType(extension: string): string;
8
+ };
9
+ export { FileExtensions, FileExtensionHelper };
@@ -1,17 +1,20 @@
1
1
  import * as React from 'react';
2
+ import { ButtonProps } from 'react-bootstrap';
2
3
  import { PopupViewProps } from "../../interfaces";
3
4
  interface ConfirmationPopupProps {
4
5
  title: string;
5
6
  onClickConfirm: () => void;
6
7
  confirmButtonText?: string;
7
8
  cancelButtonText?: string;
9
+ confirmButtonVariant?: ButtonProps['variant'];
10
+ cancelButtonVariant?: ButtonProps['variant'];
8
11
  }
9
12
  declare type PropTypes = React.PropsWithChildren<ConfirmationPopupProps & PopupViewProps>;
10
13
  export declare function ConfirmationPopup(props: PropTypes): React.ReactElement;
11
14
  export declare namespace ConfirmationPopup {
12
15
  var defaultProps: {
13
- confirmButtonText: string;
14
- cancelButtonText: string;
16
+ confirmButtonVariant: string;
17
+ cancelButtonVariant: string;
15
18
  };
16
19
  }
17
20
  export {};
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from 'react-bootstrap';
3
+ import { HashObject } from "../../../../../common/src/react/interfaces";
3
4
  interface FormButtonsProps {
4
5
  isNew: boolean;
5
6
  hasNext?: boolean;
6
7
  submitText?: string;
7
8
  variant?: ButtonProps['variant'];
8
9
  }
9
- export declare function FormButtons<Values extends object>(props: FormButtonsProps): JSX.Element;
10
+ export declare function FormButtons<Values extends HashObject>(props: FormButtonsProps): JSX.Element;
10
11
  export {};
@@ -4,4 +4,4 @@ import { FormFieldProps } from '../form-field/FormField';
4
4
  /**
5
5
  * Use this checkbox within Formik contexts
6
6
  */
7
- export declare function FormCheckbox<Values extends object>(props: FieldAttributes<FormFieldProps<Values>>): JSX.Element;
7
+ export declare function FormCheckbox(props: FieldAttributes<FormFieldProps>): JSX.Element;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- interface CharacterCounterProps<Values extends object> {
2
+ import { HashObject } from "../../../../../common/src/react/interfaces";
3
+ interface CharacterCounterProps<Values extends HashObject> {
3
4
  fieldName: keyof Values;
4
5
  limit: number;
5
6
  }
6
- export declare function CharacterCounter<Values extends object>(props: CharacterCounterProps<Values>): JSX.Element;
7
+ export declare function CharacterCounter<Values extends HashObject>(props: CharacterCounterProps<Values>): JSX.Element;
7
8
  export {};
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { FieldAttributes, FieldProps } from 'formik';
3
- export interface FormFieldProps<Values extends object> {
3
+ import { HashObject } from "../../../../../common/src/react/interfaces";
4
+ export interface FormFieldProps {
4
5
  /**
5
6
  * The name prop MUST be the same as the attribute
6
7
  * name of the value that the field is bound to.
@@ -10,7 +11,7 @@ export interface FormFieldProps<Values extends object> {
10
11
  children?: ((props: FieldProps) => React.ReactNode) | React.ReactNode;
11
12
  showCharacterCounter?: boolean;
12
13
  }
13
- export declare function FieldWrapper<Values extends object>(props: FieldAttributes<FormFieldProps<Values>> & {
14
+ export declare function FieldWrapper(props: FieldAttributes<FormFieldProps> & {
14
15
  className: string;
15
16
  }): React.ReactElement;
16
- export declare function FormField<Values extends object>(props: FieldAttributes<FormFieldProps<Values>>): React.ReactElement;
17
+ export declare function FormField<Values extends HashObject>(props: FieldAttributes<FormFieldProps>): React.ReactElement;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FormikValues, FormikConfig, FormikContextType } from 'formik';
3
+ import { HashObject } from "../../../../../common/src/react/interfaces";
3
4
  declare type ModifiedFormikConfig<Values extends FormikValues> = Omit<FormikConfig<Values>, 'initialValues' | 'onSubmit'>;
4
5
  interface FormWrapperProps<FormValues extends FormikValues, ApiValues extends FormikValues> {
5
6
  initialValues: FormValues | ApiValues;
@@ -9,7 +10,7 @@ interface FormWrapperProps<FormValues extends FormikValues, ApiValues extends Fo
9
10
  allowInitialSubmit?: boolean;
10
11
  resetOnSubmit?: boolean;
11
12
  }
12
- export declare function FormWrapper<FormValues extends FormikValues = FormikValues, ApiValues extends FormikValues = FormikValues, ExtraProps = {}>(props: ModifiedFormikConfig<FormValues> & ExtraProps & FormWrapperProps<FormValues, ApiValues>): JSX.Element;
13
+ export declare function FormWrapper<FormValues extends FormikValues = FormikValues, ApiValues extends FormikValues = FormikValues, ExtraProps = HashObject>(props: ModifiedFormikConfig<FormValues> & ExtraProps & FormWrapperProps<FormValues, ApiValues>): JSX.Element;
13
14
  export declare namespace FormWrapper {
14
15
  var defaultProps: {
15
16
  castInitialValues: boolean;
@@ -1,4 +1,17 @@
1
1
  import * as React from 'react';
2
+ import { HashObject } from "../../../../common/src/react/interfaces";
3
+ import { Core } from "../../../../common/src/backbone";
4
+ import { AnalyticsOptions } from "../../../../analytics/src/interfaces";
5
+ export interface HeaderButton {
6
+ appLink?: Core.AppLink;
7
+ onClick?: (e: React.MouseEvent) => void;
8
+ svgName?: string;
9
+ className?: string;
10
+ tooltip?: string;
11
+ showSpinner?: boolean;
12
+ analyticsData?: HashObject;
13
+ analyticsOptions?: AnalyticsOptions;
14
+ }
2
15
  interface PopupProps {
3
16
  title?: string;
4
17
  closeButton?: boolean;
@@ -6,6 +19,7 @@ interface PopupProps {
6
19
  onEntered?: () => void;
7
20
  size?: 'sm' | 'lg' | 'xl';
8
21
  showLoadingSpinner?: boolean;
22
+ headerButtons?: HeaderButton[];
9
23
  }
10
24
  export declare function Popup(props: React.PropsWithChildren<PopupProps>): React.ReactElement;
11
25
  export declare namespace Popup {
@@ -105,6 +105,18 @@ export interface SearchBarProps<T extends HashObject> {
105
105
  * which side to render it on. Defaults to `right` in `defaultProps`
106
106
  */
107
107
  searchIconPlacement?: 'left' | 'right' | false;
108
+ /**
109
+ * If true, a cross svg will be rendered.
110
+ * Clicking this icon will reset the query.
111
+ */
112
+ showClearInputIcon?: boolean;
113
+ /**
114
+ * Optional callback function to be called when the clear input
115
+ * icon is clicked.
116
+ * The query will be reset automatically, this callback is for
117
+ * adding additional functionality.
118
+ */
119
+ onClickClearInput?: () => void;
108
120
  /**
109
121
  * Flag to determine whether clicking the search icon should trigger
110
122
  * submitting the search query.
@@ -114,11 +126,22 @@ export interface SearchBarProps<T extends HashObject> {
114
126
  * Flag to determine whether the search input should be autofocused.
115
127
  */
116
128
  autoFocusInput?: boolean;
129
+ /**
130
+ * If true, the default Bootstrap styling will be applied when the
131
+ * input is focused.
132
+ */
133
+ highlightInputOnFocus?: boolean;
117
134
  /**
118
135
  * When true, the input field will be cleared whenever a suggestion is selected.
119
136
  */
120
137
  clearQueryOnSelect?: boolean;
121
138
  onBackspace?: () => void;
139
+ /**
140
+ * When true, the search input will be wrapped in a <form />.
141
+ * This is true by default.
142
+ * If rendering <SearchBar /> within another form, set this to false.
143
+ */
144
+ renderAsForm?: boolean;
122
145
  }
123
146
  export declare function SearchBar<T extends HashObject>(props: SearchBarProps<T>): JSX.Element;
124
147
  export declare namespace SearchBar {
@@ -130,5 +153,6 @@ export declare namespace SearchBar {
130
153
  recentSearches: any[];
131
154
  initialSuggestions: any[];
132
155
  searchIconPlacement: string;
156
+ renderAsForm: boolean;
133
157
  };
134
158
  }
@@ -1,8 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import * as Autosuggest from 'react-autosuggest';
3
- interface SearchInputProps {
3
+ import { HashObject } from "../../../../common/src/react/interfaces";
4
+ interface SearchInputProps<T> extends Autosuggest.InputProps<T> {
4
5
  onClickSearchIcon?: () => void;
5
6
  searchIconPlacement?: 'left' | 'right' | false;
7
+ showClearInputIcon?: boolean;
8
+ onClickClearInput?: () => void;
9
+ highlightOnFocus?: boolean;
6
10
  }
7
- export declare function SearchInput<T extends {}>(props: SearchInputProps & Autosuggest.InputProps<T>): JSX.Element;
11
+ export declare function SearchInput<T extends HashObject>(props: SearchInputProps<T>): JSX.Element;
8
12
  export {};
@@ -2,5 +2,6 @@ declare const BootstrapKeys: {
2
2
  LOCALE: string;
3
3
  PHRASES: string;
4
4
  VERSION: string;
5
+ TOKEN: string;
5
6
  };
6
7
  export { BootstrapKeys };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Image } from "../../../../../libs/shared/src/interfaces";
2
+ import { Image } from "../interfaces";
3
3
  /**
4
4
  * This context is used for transferring image
5
5
  * data between different areas of the application.
@@ -0,0 +1,8 @@
1
+ export declare enum MasterObjectTypes {
2
+ Folder = "category",
3
+ CategoryTree = "category_tree",
4
+ CustomLibrary = "custom_library",
5
+ HostedLibrary = "hosted_library",
6
+ Exchange = "exchange",
7
+ Workspace = "workspace"
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ObjectStatus {
2
+ Disabled = 0,
3
+ Active = 1,
4
+ Inactive = 2
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PlayerMediaType {
2
+ MasterInteractive = "MasterInteractive",
3
+ MasterVideo = "MasterVideo"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum UserGroup {
2
+ Unknown = 0,
3
+ Staff = 1,
4
+ Learner = 2
5
+ }
@@ -5,5 +5,6 @@ export declare enum WidgetContents {
5
5
  Playlists = "playlists",
6
6
  UserChannels = "user channels",
7
7
  Interactives = "interactives",
8
- Clips = "clips"
8
+ Clips = "clips",
9
+ Resources = "resources"
9
10
  }
@@ -0,0 +1,7 @@
1
+ import { Flight } from "../../../common/src/react";
2
+ import { Xhr } from "../../../common/src/backbone/interfaces/Xhr";
3
+ import { HashObject } from "../../../common/src/react/interfaces";
4
+ import { ImageType } from "../enums/Images";
5
+ export declare const ImageRequests: {
6
+ uploadBase64Image(dataUrl: string, type: ImageType, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
7
+ };
@@ -1,4 +1,4 @@
1
- import { Flight } from "../../../../../libs/common/src/react";
1
+ import { Flight } from "../../../common/src/react";
2
2
  export declare const RatingRequests: {
3
3
  ratings(): Flight.Request;
4
4
  };
@@ -2,8 +2,10 @@ import { Flight } from "../../../common/src/react";
2
2
  import { HashObject } from "../../../common/src/react/interfaces/HashObject";
3
3
  import { Xhr } from "../../../common/src/backbone/interfaces";
4
4
  import { Theme } from "../interfaces";
5
+ import { ThemeType } from '../enums/ThemeType';
5
6
  export declare const ThemeRequests: {
6
7
  theme(id: string): Flight.Request;
8
+ themeImages(name: string, type: ThemeType): Flight.Request;
7
9
  themes(type?: string): Flight.Request;
8
10
  createTheme(data: Theme, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;
9
11
  updateTheme(id: string, data: Theme, success?: (data: HashObject<any>) => void, error?: (xhr: Xhr) => void, always?: () => void): Flight.Request;