@clickview/curator 1.0.23-rc.0 → 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.
- package/.eslintrc.json +3 -0
- package/dist/curator-app.css +1 -1
- package/dist/curator-app.js +3 -3
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +8 -3
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
- package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
- package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
- package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +9 -0
- package/dist/libs/shared/src/components/confirmation-popup/ConfirmationPopup.d.ts +5 -2
- package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
- package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
- package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
- package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
- package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
- package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
- package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +24 -0
- package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +6 -2
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
- package/dist/{projects/curator/src/shared → libs/shared/src}/context/ImageStorageContext.d.ts +1 -1
- package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
- package/dist/libs/shared/src/enums/UserGroup.d.ts +5 -0
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
- package/dist/libs/shared/src/flight-requests/ImageRequests.d.ts +7 -0
- package/dist/{projects/curator/src/shared → libs/shared/src}/flight-requests/RatingRequests.d.ts +1 -1
- package/dist/libs/shared/src/flight-requests/ThemeRequests.d.ts +2 -0
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
- package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
- package/dist/{projects/curator/src/shared → libs/shared/src}/utils/ImageSelectHelper.d.ts +1 -1
- package/dist/libs/shared/src/utils/StateHelper.d.ts +10 -9
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +21 -0
- package/dist/libs/shared/src/views/image-upload/ImageUploadView.d.ts +9 -0
- package/dist/projects/curator/src/apps/series/interfaces/data-requests/Series.d.ts +1 -2
- package/dist/projects/curator/src/apps/videos/interfaces/data-requests/UpdateVideoRequest.d.ts +1 -2
- package/dist/projects/curator/src/index.d.ts +20 -0
- package/dist/projects/curator/src/shared/components/forms/image-select/ImageSelect.d.ts +4 -3
- package/dist/projects/curator/src/shared/components/forms/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/components/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/components/rating-select/RatingSelect.d.ts +4 -4
- package/dist/projects/curator/src/shared/constants/Services.d.ts +0 -1
- package/dist/projects/curator/src/shared/constants/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/interfaces/data-requests/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/layouts/curator-layout/CuratorLayoutView.d.ts +1 -1
- package/dist/projects/curator/src/shared/layouts/primitives/LayoutComponent.d.ts +1 -1
- package/dist/projects/curator/src/shared/services/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/utils/PropHelper.d.ts +2 -1
- package/dist/projects/curator/src/shared/utils/index.d.ts +0 -1
- package/package.json +4 -3
- package/dist/projects/curator/src/shared/components/forms/file-select/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/components/image-cropper/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/constants/FileExtensions.d.ts +0 -3
- package/dist/projects/curator/src/shared/context/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/services/ImageUploadDataService.d.ts +0 -8
- package/dist/projects/curator/src/shared/views/image-upload/ImageUploadView.d.ts +0 -8
- package/dist/projects/curator/src/shared/views/image-upload/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/views/index.d.ts +0 -1
- /package/dist/{projects/curator/src/shared → libs/shared/src}/components/image-cropper/ImageCropper.d.ts +0 -0
- /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
|
-
|
|
143
|
-
|
|
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",
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
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 |
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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):
|
|
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
|
|
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
|
|
4
|
-
throttle<T_1 extends
|
|
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 =
|
|
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<
|
|
10
|
+
export declare function createMiddleware(options: MiddlewareOptions): Middleware<HashObject, ApplicationState, Dispatch<AnyAction>>;
|
|
11
11
|
export {};
|
|
@@ -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
|
|
15
|
-
where<T_10, U_1 extends
|
|
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
|
|
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
|
};
|
|
@@ -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
|
-
|
|
14
|
-
|
|
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
|
|
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
|
|
7
|
+
export declare function FormCheckbox(props: FieldAttributes<FormFieldProps>): JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
14
|
+
export declare function FieldWrapper(props: FieldAttributes<FormFieldProps> & {
|
|
14
15
|
className: string;
|
|
15
16
|
}): React.ReactElement;
|
|
16
|
-
export declare function FormField<Values extends
|
|
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 =
|
|
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
|
-
|
|
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
|
|
11
|
+
export declare function SearchInput<T extends HashObject>(props: SearchInputProps<T>): JSX.Element;
|
|
8
12
|
export {};
|
|
@@ -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
|
+
};
|
|
@@ -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;
|