@clickview/player 0.0.26-dev.0 → 0.0.26-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/analytics/src/Analytics.d.ts +10 -10
- package/dist/libs/analytics/src/AnalyticsHelper.d.ts +30 -30
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +47 -47
- package/dist/libs/analytics/src/constants/EventFirehose.d.ts +4 -4
- package/dist/libs/analytics/src/constants/GlobalChannels.d.ts +3 -3
- package/dist/libs/analytics/src/constants/Regions.d.ts +7 -7
- package/dist/libs/analytics/src/constants/Services.d.ts +4 -4
- package/dist/libs/analytics/src/enums/CountryCode.d.ts +6 -6
- package/dist/libs/analytics/src/enums/RegionName.d.ts +6 -6
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +406 -406
- package/dist/libs/analytics/src/interfaces/AnalyticsUser.d.ts +19 -19
- package/dist/libs/analytics/src/interfaces/Config.d.ts +3 -3
- package/dist/libs/analytics/src/interfaces/Folder.d.ts +3 -3
- package/dist/libs/analytics/src/interfaces/HashObject.d.ts +3 -3
- package/dist/libs/analytics/src/interfaces/Owner.d.ts +3 -3
- package/dist/libs/analytics/src/interfaces/Playlist.d.ts +3 -3
- package/dist/libs/analytics/src/interfaces/Rating.d.ts +4 -4
- package/dist/libs/analytics/src/interfaces/Region.d.ts +4 -4
- package/dist/libs/analytics/src/interfaces/RegionalUrl.d.ts +6 -6
- package/dist/libs/analytics/src/interfaces/Resource.d.ts +5 -5
- package/dist/libs/analytics/src/interfaces/Series.d.ts +3 -3
- package/dist/libs/analytics/src/interfaces/Subtitle.d.ts +4 -4
- package/dist/libs/analytics/src/interfaces/VersionData.d.ts +4 -4
- package/dist/libs/analytics/src/interfaces/Video.d.ts +16 -16
- package/dist/libs/analytics/src/interfaces/index.d.ts +15 -15
- package/dist/libs/analytics/src/interfaces/primitives/BaseObject.d.ts +7 -7
- package/dist/libs/analytics/src/models/AnalyticsEvent.d.ts +49 -49
- package/dist/libs/analytics/src/models/CollectionEvent.d.ts +61 -61
- package/dist/libs/analytics/src/services/ContextService.d.ts +19 -19
- package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +6 -6
- package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +14 -14
- package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +19 -19
- package/dist/libs/analytics/src/utils/ShareFormatHelper.d.ts +4 -4
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +4 -4
- package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +10 -10
- package/dist/libs/analytics/src/utils/UrlHelper.d.ts +3 -3
- package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +10 -10
- package/dist/libs/common/src/backbone/constants/CommonChannels.d.ts +5 -5
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +4 -4
- package/dist/libs/common/src/backbone/core/AppLink.d.ts +37 -37
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +104 -104
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +76 -76
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +6 -6
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +7 -7
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +16 -16
- package/dist/libs/common/src/backbone/core/BaseError.d.ts +28 -28
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +11 -11
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +27 -27
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +21 -21
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +10 -10
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +131 -131
- package/dist/libs/common/src/backbone/core/EventNames.d.ts +16 -16
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +31 -31
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +3 -3
- package/dist/libs/common/src/backbone/core/LocationUtils.d.ts +24 -24
- package/dist/libs/common/src/backbone/core/Middleware.d.ts +10 -10
- package/dist/libs/common/src/backbone/core/Shell.d.ts +79 -79
- package/dist/libs/common/src/backbone/core/Types.d.ts +12 -12
- package/dist/libs/common/src/backbone/core/index.d.ts +27 -27
- package/dist/libs/common/src/backbone/enums/DataServiceErrorType.d.ts +8 -8
- package/dist/libs/common/src/backbone/enums/HttpStatus.d.ts +17 -17
- package/dist/libs/common/src/backbone/enums/HttpVerbs.d.ts +6 -6
- package/dist/libs/common/src/backbone/errors/DevError.d.ts +4 -4
- package/dist/libs/common/src/backbone/index.d.ts +2 -2
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +19 -19
- package/dist/libs/common/src/backbone/interfaces/ChainableDataService.d.ts +9 -9
- package/dist/libs/common/src/backbone/interfaces/DataCache.d.ts +8 -8
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +15 -15
- package/dist/libs/common/src/backbone/interfaces/DataServiceError.d.ts +7 -7
- package/dist/libs/common/src/backbone/interfaces/DataServiceRequests.d.ts +218 -218
- package/dist/libs/common/src/backbone/interfaces/Pagination.d.ts +33 -33
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +33 -33
- package/dist/libs/common/src/backbone/interfaces/Xhr.d.ts +9 -9
- package/dist/libs/common/src/backbone/interfaces/index.d.ts +9 -9
- package/dist/libs/common/src/backbone/services/EnvironmentVariables.d.ts +13 -13
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +38 -38
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +8 -8
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +58 -58
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +14 -14
- package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +16 -16
- package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +12 -12
- package/dist/libs/common/src/react/flight/FlightReducer.d.ts +2 -2
- package/dist/libs/common/src/react/flight/FlightSimulator.d.ts +24 -24
- package/dist/libs/common/src/react/flight/constants/Actions.d.ts +7 -7
- package/dist/libs/common/src/react/flight/constants/index.d.ts +1 -1
- package/dist/libs/common/src/react/flight/data-layers/AjaxRequest.d.ts +2 -2
- package/dist/libs/common/src/react/flight/data-layers/index.d.ts +1 -1
- package/dist/libs/common/src/react/flight/enums/RequestStatus.d.ts +6 -6
- package/dist/libs/common/src/react/flight/enums/index.d.ts +1 -1
- package/dist/libs/common/src/react/flight/index.d.ts +9 -9
- package/dist/libs/common/src/react/flight/interfaces/Action.d.ts +28 -28
- package/dist/libs/common/src/react/flight/interfaces/Dispatch.d.ts +3 -3
- package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +23 -23
- package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +27 -27
- package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +4 -4
- package/dist/libs/common/src/react/flight/interfaces/NormalizedData.d.ts +7 -7
- package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +29 -29
- package/dist/libs/common/src/react/flight/interfaces/Response.d.ts +9 -9
- package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +15 -15
- package/dist/libs/common/src/react/flight/interfaces/index.d.ts +9 -9
- package/dist/libs/common/src/react/flight/normalizer/Denormalizer.d.ts +3 -3
- package/dist/libs/common/src/react/flight/normalizer/Normalizer.d.ts +8 -8
- package/dist/libs/common/src/react/flight/normalizer/index.d.ts +2 -2
- package/dist/libs/common/src/react/flight/utils/SimulatorHelper.d.ts +5 -5
- package/dist/libs/common/src/react/flight/utils/StateHelper.d.ts +11 -11
- package/dist/libs/common/src/react/flight/utils/index.d.ts +2 -2
- package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +3 -3
- package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +8 -8
- package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +4 -4
- package/dist/libs/common/src/react/interfaces/HashObject.d.ts +3 -3
- package/dist/libs/common/src/react/interfaces/index.d.ts +4 -4
- package/dist/libs/common/src/react/services/EventsService.d.ts +16 -16
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +63 -64
- package/dist/libs/common/src/react/utils/ObjectHelper.d.ts +11 -11
- package/dist/libs/common/src/react/utils/RandomHelper.d.ts +3 -3
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +18 -18
- package/dist/libs/common/src/react/utils/TimeHelper.d.ts +8 -8
- package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +18 -18
- package/dist/libs/shared/src/apps/search/interfaces/FilterProps.d.ts +8 -8
- package/dist/libs/shared/src/apps/search/interfaces/SearchFilter.d.ts +29 -29
- package/dist/libs/shared/src/apps/search/interfaces/SearchResults.d.ts +26 -26
- package/dist/libs/shared/src/apps/search/interfaces/SearchTypes.d.ts +26 -26
- package/dist/libs/shared/src/apps/search/interfaces/index.d.ts +4 -4
- package/dist/libs/shared/src/apps/search/reducers/FilterReducer.d.ts +36 -36
- package/dist/libs/shared/src/apps/search/reducers/index.d.ts +1 -1
- package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +43 -43
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +21 -21
- package/dist/libs/shared/src/components/actions/Actions.d.ts +30 -30
- package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +15 -15
- package/dist/libs/shared/src/components/app-link/AppLink.d.ts +23 -23
- package/dist/libs/shared/src/components/avatar/Avatar.d.ts +8 -8
- package/dist/libs/shared/src/components/div-button/DivButton.d.ts +10 -10
- package/dist/libs/shared/src/components/feedback-tooltip/FeedbackTooltip.d.ts +6 -6
- package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +24 -24
- package/dist/libs/shared/src/components/image/BaseImage.d.ts +21 -21
- package/dist/libs/shared/src/components/image-cropper/SimpleCropper.d.ts +15 -15
- package/dist/libs/shared/src/components/immersive-reader/ImmersiveReader.d.ts +16 -16
- package/dist/libs/shared/src/components/interaction-answers/multiple-choice/MultipleChoiceInteractionAnswers.d.ts +29 -29
- package/dist/libs/shared/src/components/interaction-answers/true-or-false/TrueOrFalseInteractionAnswers.d.ts +29 -29
- package/dist/libs/shared/src/components/interaction-response/InteractionResponse.d.ts +19 -19
- package/dist/libs/shared/src/components/interaction-response/InteractionResponseCorrectness.d.ts +7 -7
- package/dist/libs/shared/src/components/interaction-response/InteractionStudentDetailsHeader.d.ts +10 -10
- package/dist/libs/shared/src/components/interaction-response/MarkResponse.d.ts +12 -12
- package/dist/libs/shared/src/components/interaction-response/response-types/MissingWordResponse.d.ts +3 -3
- package/dist/libs/shared/src/components/interaction-response/response-types/MultipleChoiceResponse.d.ts +3 -3
- package/dist/libs/shared/src/components/interaction-response/response-types/NoResponse.d.ts +2 -2
- package/dist/libs/shared/src/components/interaction-response/response-types/ResponseComponentLookup.d.ts +15 -15
- package/dist/libs/shared/src/components/interaction-response/response-types/ShortAnswerResponse.d.ts +3 -3
- package/dist/libs/shared/src/components/interaction-response/response-types/TrueOrFalseResponse.d.ts +3 -3
- package/dist/libs/shared/src/components/interactive-questions/InteractionLabel.d.ts +21 -21
- package/dist/libs/shared/src/components/interactive-questions/InteractiveQuestions.d.ts +12 -12
- package/dist/libs/shared/src/components/interactive-questions/formatAnnotationText.d.ts +1 -1
- package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +8 -8
- package/dist/libs/shared/src/components/popup/Popup.d.ts +37 -37
- package/dist/libs/shared/src/components/popup/PopupButtons.d.ts +15 -15
- package/dist/libs/shared/src/components/popup/PopupLoadingSpinner.d.ts +2 -2
- package/dist/libs/shared/src/components/spinner-button/SpinnerButton.d.ts +8 -8
- package/dist/libs/shared/src/components/svg-container/SvgContainer.d.ts +23 -23
- package/dist/libs/shared/src/components/svgs/interaction-types/InteractionTypes.d.ts +7 -7
- package/dist/libs/shared/src/components/text/Text.d.ts +20 -20
- package/dist/libs/shared/src/components/tooltip/Tooltip.d.ts +19 -19
- package/dist/libs/shared/src/components/widgets/items/FixedWidgetItemProps.d.ts +18 -18
- package/dist/libs/shared/src/components/widgets/items/resource-widget-item/ResourceWidgetItem.d.ts +17 -17
- package/dist/libs/shared/src/constants/AppVariables.d.ts +5 -5
- package/dist/libs/shared/src/constants/ImageSizes.d.ts +8 -8
- package/dist/libs/shared/src/constants/RadioChannels.d.ts +20 -20
- package/dist/libs/shared/src/enums/ClassificationStatus.d.ts +5 -5
- package/dist/libs/shared/src/enums/ClassificationType.d.ts +8 -8
- package/dist/libs/shared/src/enums/ContentRegion.d.ts +8 -8
- package/dist/libs/shared/src/enums/CountryCode.d.ts +6 -6
- package/dist/libs/shared/src/enums/CurationStatus.d.ts +12 -12
- package/dist/libs/shared/src/enums/CurriculumType.d.ts +6 -6
- package/dist/libs/shared/src/enums/CustomerType.d.ts +13 -13
- package/dist/libs/shared/src/enums/GlanceFormat.d.ts +3 -3
- package/dist/libs/shared/src/enums/Images.d.ts +29 -29
- package/dist/libs/shared/src/enums/InstanceRegion.d.ts +6 -6
- package/dist/libs/shared/src/enums/InteractionCorrectness.d.ts +8 -8
- package/dist/libs/shared/src/enums/InteractiveAnswerStatus.d.ts +5 -5
- package/dist/libs/shared/src/enums/InteractiveOriginType.d.ts +4 -4
- package/dist/libs/shared/src/enums/LibraryType.d.ts +5 -5
- package/dist/libs/shared/src/enums/MasterType.d.ts +62 -62
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +20 -20
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -5
- package/dist/libs/shared/src/enums/PlaylistPrivacy.d.ts +5 -5
- package/dist/libs/shared/src/enums/PresentationStatus.d.ts +4 -4
- package/dist/libs/shared/src/enums/PresentationType.d.ts +4 -4
- package/dist/libs/shared/src/enums/ProductId.d.ts +7 -7
- package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -9
- package/dist/libs/shared/src/enums/SettingKind.d.ts +4 -4
- package/dist/libs/shared/src/enums/SettingName.d.ts +34 -34
- package/dist/libs/shared/src/enums/ShareActivityStatus.d.ts +5 -5
- package/dist/libs/shared/src/enums/ShareIntegration.d.ts +4 -4
- package/dist/libs/shared/src/enums/ShareLinkStatus.d.ts +4 -4
- package/dist/libs/shared/src/enums/ShareType.d.ts +4 -4
- package/dist/libs/shared/src/enums/StaffRequestRole.d.ts +5 -5
- package/dist/libs/shared/src/enums/SupportArticle.d.ts +16 -16
- package/dist/libs/shared/src/enums/TagType.d.ts +3 -3
- package/dist/libs/shared/src/enums/ThemeType.d.ts +3 -3
- package/dist/libs/shared/src/enums/UserGroup.d.ts +5 -5
- package/dist/libs/shared/src/enums/UserRole.d.ts +15 -15
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +13 -13
- package/dist/libs/shared/src/errors/primitives/DialogError.d.ts +9 -9
- package/dist/libs/shared/src/hooks/UseGetMediaQueryString.d.ts +2 -2
- package/dist/libs/shared/src/hooks/UseGrabCursorProps.d.ts +15 -15
- package/dist/libs/shared/src/hooks/UseLazyLoad.d.ts +22 -22
- package/dist/libs/shared/src/hooks/UseMediaQuery.d.ts +1 -1
- package/dist/libs/shared/src/hooks/UseVideoDragDropState.d.ts +6 -6
- package/dist/libs/shared/src/hooks/useNavLock.d.ts +14 -14
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +105 -105
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +28 -28
- package/dist/libs/shared/src/images/svg/arrows/index.d.ts +9 -9
- package/dist/libs/shared/src/images/svg/index.d.ts +2 -2
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +50 -50
- package/dist/libs/shared/src/images/svg/settings.d.ts +1 -1
- package/dist/libs/shared/src/images/svg/status/index.d.ts +14 -14
- package/dist/libs/shared/src/interfaces/AppLinkWithLabel.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/CurriculumData.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/DateRange.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/DefaultPlaybackQuality.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/DialogOptions.d.ts +13 -13
- package/dist/libs/shared/src/interfaces/FavouriteFunc.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/ImageUrls.d.ts +16 -16
- package/dist/libs/shared/src/interfaces/Integration.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/QueryParams.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/RegionalUrl.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/SetActivityStatusFunc.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/VideoTypes.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/WidgetContext.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +19 -19
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +18 -18
- package/dist/libs/shared/src/interfaces/app-variables/index.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/collections/AudienceCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/CategoryCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/ClipCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/CompanyCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/CustomerCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/DirectShareCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/FolderCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/LibraryCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/LinkCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/PersonCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/PlaylistCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/PointOfInterestCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/PresentationAudienceCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/ResourceCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/SeriesCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/TagCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/UnionShareObjectCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/UserCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/VideoCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/VideoHistoryCollection.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/collections/WidgetCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/YearGroupCollection.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +29 -29
- package/dist/libs/shared/src/interfaces/collections/primitives/BasePaginatedCollection.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/collections/primitives/index.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/index.d.ts +21 -21
- package/dist/libs/shared/src/interfaces/models/Audience.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Banner.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/BaseShareObject.d.ts +13 -13
- package/dist/libs/shared/src/interfaces/models/Category.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/CategoryTree.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Channel.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Classification.d.ts +23 -23
- package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +11 -11
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +17 -17
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +18 -18
- package/dist/libs/shared/src/interfaces/models/Company.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +28 -28
- package/dist/libs/shared/src/interfaces/models/ContentRegionObject.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/Country.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/Cover.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +16 -16
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +10 -10
- package/dist/libs/shared/src/interfaces/models/Dashboard.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/models/DirectShare.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -20
- package/dist/libs/shared/src/interfaces/models/Folder.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/models/Following.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/models/Group.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/HeroBanner.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Image.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +30 -30
- package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/models/LanguageConfig.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +10 -10
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/models/Logo.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/MasterNestedObject.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/Organisation.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/models/Person.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +22 -22
- package/dist/libs/shared/src/interfaces/models/PointOfInterest.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/models/Poster.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/models/PresentationAudience.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/models/Product.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/models/Rating.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +17 -17
- package/dist/libs/shared/src/interfaces/models/Restriction.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/models/Season.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/models/Series.d.ts +13 -13
- package/dist/libs/shared/src/interfaces/models/Share.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/models/ShareLink.d.ts +13 -13
- package/dist/libs/shared/src/interfaces/models/ShareRecipient.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/models/Subject.d.ts +13 -13
- package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/models/Tag.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/models/TallPoster.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/models/Theme.d.ts +23 -23
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/models/UnionShareObject.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/User.d.ts +112 -112
- package/dist/libs/shared/src/interfaces/models/UserChannel.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +49 -49
- package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +14 -14
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +16 -16
- package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/models/index.d.ts +70 -70
- package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +14 -14
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/interactive-results/InteractiveResult.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/interactive-results/InteractiveResultSet.d.ts +11 -11
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentAnswer.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentAttempt.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentResult.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/models/interactive-results/index.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +10 -10
- package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/props/ViewProps.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/props/index.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/requests/CreateInteractiveMetadataRequest.d.ts +12 -12
- package/dist/libs/shared/src/interfaces/requests/CreateInteractiveRequest.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/requests/EditDetailsRequest.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/requests/EditInteractiveMetadataOriginRequest.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/requests/EditInteractiveMetadataRequest.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/requests/EditInteractiveRequest.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/requests/ReorderRequest.d.ts +12 -12
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -3
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +9 -9
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +12 -12
- package/dist/libs/shared/src/interfaces/responses/ShareSearchResponse.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/responses/UnionWrapper.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/responses/index.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/services/BaseLibraryDataService.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/services/BaseSeriesDataService.d.ts +4 -4
- package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +7 -7
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +6 -6
- package/dist/libs/shared/src/interfaces/services/BaseVideoDataService.d.ts +5 -5
- package/dist/libs/shared/src/interfaces/services/BaseVideoUploadDataService.d.ts +8 -8
- package/dist/libs/shared/src/interfaces/services/index.d.ts +7 -7
- package/dist/libs/shared/src/utils/ArticleHelper.d.ts +5 -5
- package/dist/libs/shared/src/utils/DialogHelper.d.ts +25 -25
- package/dist/libs/shared/src/utils/DurationHelper.d.ts +7 -7
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +33 -33
- package/dist/libs/shared/src/utils/ImageSelectHelper.d.ts +7 -7
- package/dist/libs/shared/src/utils/InteractiveCorrectnessHelper.d.ts +18 -18
- package/dist/libs/shared/src/utils/InteractiveHelper.d.ts +12 -12
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +18 -18
- package/dist/libs/shared/src/utils/UserHelper.d.ts +20 -20
- package/dist/libs/shared/src/utils/interaction-type-helper/InteractionTypeHelper.d.ts +16 -16
- package/dist/player-app.js +2 -2
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-item.d.ts +80 -80
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-items.d.ts +56 -56
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-load-progress.d.ts +55 -55
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-play-progress.d.ts +55 -55
- package/dist/projects/player/src/components/chapter-seek-bar/chapter-seek-bar.d.ts +1 -1
- package/dist/projects/player/src/components/chapters-button/chapter-menu-item.d.ts +60 -60
- package/dist/projects/player/src/components/chapters-button/chapters-button.d.ts +1 -1
- package/dist/projects/player/src/components/cog-button/cog-button.d.ts +49 -49
- package/dist/projects/player/src/components/cog-button/collapsible-heading-menu-item.d.ts +15 -15
- package/dist/projects/player/src/components/collapserator/collapserator.d.ts +6 -6
- package/dist/projects/player/src/components/keyboard-shortcuts-button/keyboard-shortcuts-button.d.ts +1 -1
- package/dist/projects/player/src/components/landing-splash/landing-splash.d.ts +65 -65
- package/dist/projects/player/src/components/landing-splash/metadata/splash-metadata.d.ts +63 -63
- package/dist/projects/player/src/components/landing-splash/metadata/splash-title/splash-title.d.ts +62 -62
- package/dist/projects/player/src/components/landing-splash/metadata/splash-warning/splash-warning.d.ts +60 -60
- package/dist/projects/player/src/components/logo/clickview-logo.d.ts +1 -1
- package/dist/projects/player/src/components/menu/menu.d.ts +23 -23
- package/dist/projects/player/src/components/menu-button/menu-button.d.ts +1 -1
- package/dist/projects/player/src/components/mouse-time-display/mouse-time-display.d.ts +16 -16
- package/dist/projects/player/src/components/next-video-menu-item/next-video-menu-item.d.ts +1 -1
- package/dist/projects/player/src/components/play-pause-feedback/play-pause-feedback.d.ts +1 -1
- package/dist/projects/player/src/components/play-toggle/play-toggle.d.ts +1 -1
- package/dist/projects/player/src/components/playback-rate-button/playback-rate-button.d.ts +1 -1
- package/dist/projects/player/src/components/player/player.d.ts +17 -17
- package/dist/projects/player/src/components/progress-control/progress-control.d.ts +12 -12
- package/dist/projects/player/src/components/quality-selector/quality-button.d.ts +1 -1
- package/dist/projects/player/src/components/quality-selector/quality-menu-item.d.ts +19 -19
- package/dist/projects/player/src/components/seek-bar/seek-bar.d.ts +1 -1
- package/dist/projects/player/src/components/subs-caps-button/SubCapsMenuItem.d.ts +52 -52
- package/dist/projects/player/src/components/subs-caps-button/subs-caps-button.d.ts +1 -1
- package/dist/projects/player/src/components/subs-caps-button/subtitle-search-menu-item.d.ts +55 -55
- package/dist/projects/player/src/components/subs-caps-button/subtitle-size-menu-item.d.ts +53 -53
- package/dist/projects/player/src/components/subtitle-search-button/subtitle-result-menu-item.d.ts +15 -15
- package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-button.d.ts +32 -32
- package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-input.d.ts +28 -28
- package/dist/projects/player/src/components/subtitle-size-button/subtitle-size-button.d.ts +1 -1
- package/dist/projects/player/src/components/text-track-button/off-text-track-menu-item.d.ts +1 -1
- package/dist/projects/player/src/components/text-track-button/text-track-button.d.ts +1 -1
- package/dist/projects/player/src/components/text-track-settings/text-track-settings.d.ts +56 -56
- package/dist/projects/player/src/components/thumbnail-display/thumbnail-display.d.ts +67 -67
- package/dist/projects/player/src/components/time-tooltip/time-tooltip.d.ts +17 -17
- package/dist/projects/player/src/components/time-wrapper/time-wrapper.d.ts +1 -1
- package/dist/projects/player/src/index.d.ts +9 -9
- package/dist/projects/player/src/interfaces/CollapsibleComponent.d.ts +10 -10
- package/dist/projects/player/src/interfaces/NextVideo.d.ts +4 -4
- package/dist/projects/player/src/interfaces/models/ApiError.d.ts +4 -4
- package/dist/projects/player/src/interfaces/models/ClipData.d.ts +4 -4
- package/dist/projects/player/src/interfaces/models/Config.d.ts +7 -7
- package/dist/projects/player/src/interfaces/models/PlaybackObject.d.ts +69 -69
- package/dist/projects/player/src/players/base-player.d.ts +114 -114
- package/dist/projects/player/src/players/create-clip-player.d.ts +20 -20
- package/dist/projects/player/src/players/interactive-player.d.ts +53 -53
- package/dist/projects/player/src/players/player.d.ts +29 -29
- package/dist/projects/player/src/players/reports/reports-player.d.ts +23 -23
- package/dist/projects/player/src/plugins/activity-status-plugin/activity-status-plugin.d.ts +29 -29
- package/dist/projects/player/src/plugins/activity-status-plugin/components/activity-status-button.d.ts +20 -20
- package/dist/projects/player/src/plugins/chromecast-plugin/chromecast-plugin.d.ts +11 -11
- package/dist/projects/player/src/plugins/chromecast-plugin/components/chromecast-button.d.ts +1 -1
- package/dist/projects/player/src/plugins/chromecast-plugin/session-manager.d.ts +73 -73
- package/dist/projects/player/src/plugins/chromecast-plugin/tech/chromecast-tech-ui/chromecast-tech-ui.d.ts +67 -67
- package/dist/projects/player/src/plugins/chromecast-plugin/tech/chromecast-tech.d.ts +1 -1
- package/dist/projects/player/src/plugins/clip-plugin/clip-plugin.d.ts +50 -50
- package/dist/projects/player/src/plugins/create-clip-button-plugin/components/create-clip-button.d.ts +1 -1
- package/dist/projects/player/src/plugins/create-clip-button-plugin/create-clip-button-plugin.d.ts +10 -10
- package/dist/projects/player/src/plugins/create-clip-plugin/components/clip-timepoint-selector/clip-timepoint-selector-handle.d.ts +54 -54
- package/dist/projects/player/src/plugins/create-clip-plugin/components/clip-timepoint-selector/clip-timepoint-selector.d.ts +93 -93
- package/dist/projects/player/src/plugins/create-clip-plugin/components/create-clip-progress-indicator/create-clip-progress-indicator.d.ts +67 -67
- package/dist/projects/player/src/plugins/create-clip-plugin/components/create-clip-seek-bar/create-clip-seek-bar.d.ts +14 -14
- package/dist/projects/player/src/plugins/create-clip-plugin/create-clip-plugin.d.ts +14 -14
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/components/engagement-overlay/engagement-overlay-chart-options.d.ts +7 -7
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/components/engagement-overlay/engagement-overlay.d.ts +73 -73
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/components/engagement-overlay-menu-item/engagement-overlay-menu-item.d.ts +31 -31
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/components/timepoint-interactions/timepoint-interactions.d.ts +8 -8
- package/dist/projects/player/src/plugins/engagement-overlay-plugin/engagement-overlay-plugin.d.ts +35 -35
- package/dist/projects/player/src/plugins/favourite-plugin/components/favourite-button.d.ts +19 -19
- package/dist/projects/player/src/plugins/favourite-plugin/favourite-plugin.d.ts +28 -28
- package/dist/projects/player/src/plugins/fullscreen-on-rotate-plugin/fullscreen-on-rotate-plugin.d.ts +30 -30
- package/dist/projects/player/src/plugins/interactive-plugin/components/add-question-button/add-question-button.d.ts +8 -8
- package/dist/projects/player/src/plugins/interactive-plugin/components/continue-session/continue-session.d.ts +8 -8
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-annotation/create-annotation-helpers.d.ts +9 -9
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-annotation/create-annotation-link.d.ts +13 -13
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-annotation/create-annotation.d.ts +12 -12
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-components.d.ts +7 -7
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-error-feedback/create-error-feedback.d.ts +6 -6
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/create-image-cropper.d.ts +15 -15
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/create-image.d.ts +15 -15
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/upload-image-dropzone.d.ts +6 -6
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/upload-image-icon.d.ts +2 -2
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-interaction-buttons/create-interaction-buttons.d.ts +14 -14
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-interaction-heading/create-interaction-heading.d.ts +12 -12
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-missing-word/create-missing-word.d.ts +18 -18
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-multiple-choice/create-multiple-choice.d.ts +18 -18
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-multiple-choice/multiple-choice-answer.d.ts +9 -9
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-short-answer/create-short-answer.d.ts +11 -11
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-type-selector/create-type-selector.d.ts +15 -15
- package/dist/projects/player/src/plugins/interactive-plugin/components/feedback/feedback.d.ts +7 -7
- package/dist/projects/player/src/plugins/interactive-plugin/components/interaction-actions/interaction-actions.d.ts +13 -13
- package/dist/projects/player/src/plugins/interactive-plugin/components/interaction-footer/interaction-footer.d.ts +20 -20
- package/dist/projects/player/src/plugins/interactive-plugin/components/interaction-header/interaction-header.d.ts +14 -14
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/interactive-component.d.ts +1 -1
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-actions/interactive-actions.d.ts +11 -11
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-icon-button/interactive-icon-button.d.ts +8 -8
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/InteractiveSummaryWrapper.d.ts +22 -22
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/getstudentAttempts.d.ts +14 -14
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interaction-summary/interaction-summary.d.ts +15 -15
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interactions-bar/interactions-bar.d.ts +9 -9
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interactive-summary.d.ts +23 -23
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/progress-summary/progress-summary.d.ts +12 -12
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/show-summary-button/show-summary-button.d.ts +13 -13
- package/dist/projects/player/src/plugins/interactive-plugin/components/move-timepoint/move-timepoint.d.ts +12 -12
- package/dist/projects/player/src/plugins/interactive-plugin/components/question-list/question-list-empty-state.d.ts +8 -8
- package/dist/projects/player/src/plugins/interactive-plugin/components/question-list/question-list.d.ts +15 -15
- package/dist/projects/player/src/plugins/interactive-plugin/components/reorder-interactions/reorder-interactions.d.ts +9 -9
- package/dist/projects/player/src/plugins/interactive-plugin/components/seek-bar/interactive-bar-item.d.ts +20 -20
- package/dist/projects/player/src/plugins/interactive-plugin/components/seek-bar/interactive-bar-items.d.ts +66 -66
- package/dist/projects/player/src/plugins/interactive-plugin/components/sliding-timepoint/sliding-timepoints.d.ts +12 -12
- package/dist/projects/player/src/plugins/interactive-plugin/components/timepoint/timepoint-component.d.ts +40 -40
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/annotation/annotation-interaction.d.ts +3 -3
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/image/image-interaction.d.ts +4 -4
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/interactive-immersive-reader/interactive-immersive-reader.d.ts +8 -8
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/missing-word/missing-word-interaction.d.ts +13 -13
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/multiple-choice/multiple-choice-interaction.d.ts +13 -13
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/short-answer/short-answer-interaction.d.ts +11 -11
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/true-or-false/true-or-false-interaction.d.ts +12 -12
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-components.d.ts +12 -12
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-error-feedback/view-error-feedback.d.ts +6 -6
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-interaction-buttons/view-iteraction-buttons.d.ts +14 -14
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-interaction-heading/view-interaction-heading.d.ts +8 -8
- package/dist/projects/player/src/plugins/interactive-plugin/errors/ReconnectionError.d.ts +8 -8
- package/dist/projects/player/src/plugins/interactive-plugin/grade-passback-plugin.d.ts +29 -29
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useInteractiveState.d.ts +26 -26
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useInteractiveTrack.d.ts +23 -23
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useLockPlayer.d.ts +15 -15
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useStateManager.d.ts +47 -47
- package/dist/projects/player/src/plugins/interactive-plugin/interactive-plugin.d.ts +59 -59
- package/dist/projects/player/src/plugins/interactive-plugin/interactive-seek-bar-plugin.d.ts +38 -38
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractionComponent.d.ts +3 -3
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractionProps.d.ts +16 -16
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractionResult.d.ts +4 -4
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractiveMode.d.ts +4 -4
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractiveState.d.ts +30 -30
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/LatestSession.d.ts +11 -11
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/ResultSubmission.d.ts +2 -2
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/SubmissionFunction.d.ts +4 -4
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/index.d.ts +8 -8
- package/dist/projects/player/src/plugins/interactive-plugin/utils/InteractiveReducer.d.ts +14 -14
- package/dist/projects/player/src/plugins/interactive-plugin/utils/ResultsService.d.ts +29 -29
- package/dist/projects/player/src/plugins/interactive-plugin/utils/getInteractionComponents.d.ts +3 -3
- package/dist/projects/player/src/plugins/interactive-plugin/utils/getInteractionStateId.d.ts +2 -2
- package/dist/projects/player/src/plugins/interactive-plugin/utils/getTimepointStateId.d.ts +2 -2
- package/dist/projects/player/src/plugins/interactive-plugin/utils/helpers.d.ts +5 -5
- package/dist/projects/player/src/plugins/interactive-plugin/utils/interactive-ajax.d.ts +10 -10
- package/dist/projects/player/src/plugins/localcache-plugin/LocalCache.d.ts +12 -12
- package/dist/projects/player/src/plugins/localcache-plugin/compontents/local-cache-indicator.d.ts +2 -2
- package/dist/projects/player/src/plugins/localcache-plugin/localcache-middleware.d.ts +1 -1
- package/dist/projects/player/src/plugins/localcache-plugin/localcache-plugin.d.ts +62 -62
- package/dist/projects/player/src/plugins/next-video-plugin/components/up-next/up-next.d.ts +1 -1
- package/dist/projects/player/src/plugins/next-video-plugin/next-video-plugin.d.ts +45 -45
- package/dist/projects/player/src/plugins/open-externally-plugin/components/open-externally-button.d.ts +1 -1
- package/dist/projects/player/src/plugins/open-externally-plugin/interfaces/ExternalLinkOptions.d.ts +3 -3
- package/dist/projects/player/src/plugins/open-externally-plugin/open-externally-plugin.d.ts +31 -31
- package/dist/projects/player/src/plugins/persist-quality-settings-plugin/persist-quality-settings-plugin.d.ts +34 -34
- package/dist/projects/player/src/plugins/persist-subtitle-settings-plugin/persist-subtitle-settings-plugin.d.ts +37 -37
- package/dist/projects/player/src/plugins/persist-volume-plugin/persist-volume-plugin.d.ts +26 -26
- package/dist/projects/player/src/plugins/persist-volume-plugin/persist-volume-plugin.test.d.ts +1 -1
- package/dist/projects/player/src/plugins/picture-in-picture-plugin/picture-in-picture-plugin.d.ts +48 -48
- package/dist/projects/player/src/plugins/points-of-interest-plugin/components/point-of-interest-indicator/point-of-interest-indicator.d.ts +99 -99
- package/dist/projects/player/src/plugins/points-of-interest-plugin/components/points-of-interest-menu-item/points-of-interest-menu-item.d.ts +31 -31
- package/dist/projects/player/src/plugins/points-of-interest-plugin/points-of-interest-plugin.d.ts +39 -39
- package/dist/projects/player/src/plugins/progress-reporter-plugin/components/progress-reporter-display.d.ts +57 -57
- package/dist/projects/player/src/plugins/progress-reporter-plugin/interfaces/ProgressEvent.d.ts +8 -8
- package/dist/projects/player/src/plugins/progress-reporter-plugin/progress-reporter-plugin.d.ts +76 -76
- package/dist/projects/player/src/plugins/progressive-files-plugin/ProgressiveFilesPluginOptions.d.ts +4 -4
- package/dist/projects/player/src/plugins/progressive-files-plugin/ProgressiveRepresentation.d.ts +10 -10
- package/dist/projects/player/src/plugins/progressive-files-plugin/interfaces/Source.d.ts +6 -6
- package/dist/projects/player/src/plugins/progressive-files-plugin/progressive-files-plugin.d.ts +41 -41
- package/dist/projects/player/src/plugins/resources-plugin/components/resource-menu-item/resource-menu-item.d.ts +21 -21
- package/dist/projects/player/src/plugins/resources-plugin/components/resources-button/resources-button.d.ts +1 -1
- package/dist/projects/player/src/plugins/resources-plugin/resources-plugin.d.ts +12 -12
- package/dist/projects/player/src/plugins/touch-controls-plugin/components/touch-controls/touch-controls.d.ts +59 -59
- package/dist/projects/player/src/plugins/touch-controls-plugin/touch-controls-plugin.d.ts +41 -41
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/drag-handle/drag-handle.d.ts +53 -53
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/drag-targets/drag-targets.d.ts +54 -54
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/whiteboard-mode-button/whiteboard-mode-button.d.ts +23 -23
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/components/whiteboard-mode-button/whiteboard-mode-menu-item.d.ts +15 -15
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/contants/WhiteboardSides.d.ts +5 -5
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/interfaces/WhiteboardSide.d.ts +1 -1
- package/dist/projects/player/src/plugins/whiteboard-mode-plugin/whiteboard-mode-plugin.d.ts +34 -34
- package/dist/projects/player/src/react/CreateClipPlayer.d.ts +3 -3
- package/dist/projects/player/src/react/InteractivePlayer.d.ts +8 -8
- package/dist/projects/player/src/react/Player.d.ts +10 -10
- package/dist/projects/player/src/react/ReportsPlayer.d.ts +3 -3
- package/dist/projects/player/src/react/react-component.d.ts +11 -11
- package/dist/projects/player/src/services/analytics-service.d.ts +39 -39
- package/dist/projects/player/src/utils/ajax-helper.d.ts +16 -16
- package/dist/projects/player/src/utils/fn.d.ts +44 -44
- package/dist/projects/player/src/utils/formatTime.d.ts +5 -5
- package/dist/projects/player/src/utils/getBufferedEnd.d.ts +2 -2
- package/dist/projects/player/src/utils/hotkeys.d.ts +5 -5
- package/dist/projects/player/src/utils/interactive-track-helper.d.ts +5 -5
- package/dist/projects/player/src/utils/local-storage-helper.d.ts +6 -6
- package/dist/projects/player/src/utils/quality-helper.d.ts +19 -19
- package/dist/projects/player/src/utils/quality-helper.test.d.ts +1 -1
- package/dist/projects/player/src/utils/track-helper.d.ts +8 -8
- package/dist/projects/player/test/players/test-player.d.ts +17 -17
- package/dist/projects/player/test/utils/test-helpers.d.ts +8 -8
- package/package.json +4 -3
|
@@ -1,218 +1,218 @@
|
|
|
1
|
-
import { Events } from 'backbone';
|
|
2
|
-
export interface BaseDataServiceRequest {
|
|
3
|
-
/**
|
|
4
|
-
* This will be a url, an event or a cache key
|
|
5
|
-
* depending on the DataProviderType
|
|
6
|
-
*/
|
|
7
|
-
resource: string;
|
|
8
|
-
/**
|
|
9
|
-
* This is used to generate the events that can be listened to
|
|
10
|
-
* on the backbone radio channel.
|
|
11
|
-
*
|
|
12
|
-
* (e.g. if your eventPrefix was 'library' events would be:
|
|
13
|
-
* library:request, library:sync, library:success and library:error)
|
|
14
|
-
*/
|
|
15
|
-
eventPrefix: string;
|
|
16
|
-
/**
|
|
17
|
-
* This is the instance that is listening to the events.
|
|
18
|
-
* We pass this in so we can use the IoC of
|
|
19
|
-
* listenTo rather than using an on binding.
|
|
20
|
-
* (https://en.wikipedia.org/wiki/Inversion_of_control)
|
|
21
|
-
*
|
|
22
|
-
* This means that there won't be stale event listeners once
|
|
23
|
-
* the listener is disposed of.
|
|
24
|
-
*/
|
|
25
|
-
listener?: Events;
|
|
26
|
-
/**
|
|
27
|
-
* How long in seconds before the data
|
|
28
|
-
* is stale and we need to retreive it again
|
|
29
|
-
*/
|
|
30
|
-
expiryTime?: number;
|
|
31
|
-
/**
|
|
32
|
-
* Set of eventPrefix keys that will be evicted from the cache
|
|
33
|
-
* once the data request has completed.
|
|
34
|
-
*
|
|
35
|
-
* Accepts full and partial keys, where partial keys will be used to generate
|
|
36
|
-
* a regex for matching. Allows for multiple keys to be evicted in bulk.
|
|
37
|
-
*/
|
|
38
|
-
invalidationKeys?: string[];
|
|
39
|
-
/**
|
|
40
|
-
* This is used by a view to gain reference to the model or collection
|
|
41
|
-
* and store it somewhere. If the data is already cached, the callback will
|
|
42
|
-
* be called syncronously. Otherwise it will be called when the data becomes
|
|
43
|
-
* available.
|
|
44
|
-
*/
|
|
45
|
-
callback?: (data?: any) => any;
|
|
46
|
-
/**
|
|
47
|
-
* Callback to be passed from a view to be fired on an error.
|
|
48
|
-
*/
|
|
49
|
-
errorCallback?: () => void;
|
|
50
|
-
/**
|
|
51
|
-
* Success handler is attached as a callback to the successEvent fired on the dataProvider's dataChannel.
|
|
52
|
-
* Should NOT be used for data manipulation or management by views - use a callback or eventPrefix instead.
|
|
53
|
-
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
54
|
-
* the handler when it is passed.
|
|
55
|
-
*/
|
|
56
|
-
successHandler?: (...args: any[]) => any;
|
|
57
|
-
/**
|
|
58
|
-
* Error handler is attached as a callback to the errorEvent fired on the dataProvider's dataChannel.
|
|
59
|
-
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
60
|
-
* the handler when it is passed.
|
|
61
|
-
* A default errorHandler will be bound unless another error handler is passed in.
|
|
62
|
-
* Alternatively, passing in false will mean that no errorHandler is bound.
|
|
63
|
-
*/
|
|
64
|
-
errorHandler?: ((...args: any[]) => any) | boolean;
|
|
65
|
-
}
|
|
66
|
-
export interface DataServiceGetRequest<T> extends BaseDataServiceRequest {
|
|
67
|
-
/**
|
|
68
|
-
* This should be used to put the data returned from the DataProvider
|
|
69
|
-
* into an instance of a Model or Collection.
|
|
70
|
-
*
|
|
71
|
-
* This should be defined by the children inheriting from BaseDataService
|
|
72
|
-
* and should not be exposed to views or services consuming BaseDataService.
|
|
73
|
-
*/
|
|
74
|
-
formatData?: (data: any) => T;
|
|
75
|
-
/**
|
|
76
|
-
* Redefine callback with stronger types.
|
|
77
|
-
*/
|
|
78
|
-
callback?: (data: T) => any;
|
|
79
|
-
/**
|
|
80
|
-
* The name of the property on the bootstrap object
|
|
81
|
-
* that this request will use.
|
|
82
|
-
*/
|
|
83
|
-
bootstrapName?: string;
|
|
84
|
-
}
|
|
85
|
-
export interface DataServiceClearAndGetRequest<T> extends BaseDataServiceRequest {
|
|
86
|
-
/**
|
|
87
|
-
* This should be used to put the data returned from the DataProvider
|
|
88
|
-
* into an instance of a Model or Collection.
|
|
89
|
-
*
|
|
90
|
-
* This should be defined by the children inheriting from BaseDataService
|
|
91
|
-
* and should not be exposed to views or services consuming BaseDataService.
|
|
92
|
-
*/
|
|
93
|
-
formatData?: (data: any) => T;
|
|
94
|
-
/**
|
|
95
|
-
* Redfine callback as a required option
|
|
96
|
-
* because this is the only way to retreive the data
|
|
97
|
-
* in a clearCacheAndGet call
|
|
98
|
-
*/
|
|
99
|
-
callback: (data: T) => void;
|
|
100
|
-
}
|
|
101
|
-
export interface DataServiceCreateRequest<T> extends BaseDataServiceRequest {
|
|
102
|
-
/**
|
|
103
|
-
* This is the data we'll be creating.
|
|
104
|
-
*/
|
|
105
|
-
data: any;
|
|
106
|
-
/**
|
|
107
|
-
* This is how the data should be stored in the cache.
|
|
108
|
-
*/
|
|
109
|
-
formatData?: (data: any) => T;
|
|
110
|
-
/**
|
|
111
|
-
* Redefine callback with stronger types.
|
|
112
|
-
*/
|
|
113
|
-
callback?: (data: T) => any;
|
|
114
|
-
}
|
|
115
|
-
export interface DataServiceUpdateRequest<T> extends BaseDataServiceRequest {
|
|
116
|
-
/**
|
|
117
|
-
* This is the data we'll be sending
|
|
118
|
-
* to the server.
|
|
119
|
-
*/
|
|
120
|
-
data: any;
|
|
121
|
-
/**
|
|
122
|
-
* This is how the data should be stored in the cache.
|
|
123
|
-
*/
|
|
124
|
-
formatData?: (data: any) => T;
|
|
125
|
-
/**
|
|
126
|
-
* Redefine callback with stronger types.
|
|
127
|
-
*/
|
|
128
|
-
callback?: (data: T) => any;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* The delete request is the simplest one.
|
|
132
|
-
* We have this here just incase we need to add to it
|
|
133
|
-
* in the future.
|
|
134
|
-
*/
|
|
135
|
-
export interface DataServiceDeleteRequest extends BaseDataServiceRequest {
|
|
136
|
-
}
|
|
137
|
-
export interface DataServiceRequestOptions {
|
|
138
|
-
/**
|
|
139
|
-
* This is used to generate the events that can be listened to
|
|
140
|
-
* on the backbone radio channel.
|
|
141
|
-
*
|
|
142
|
-
* (e.g. if your eventPrefix was library
|
|
143
|
-
* our events would be library:request and library:sync)
|
|
144
|
-
*/
|
|
145
|
-
eventPrefix: string;
|
|
146
|
-
/**
|
|
147
|
-
* Different requests will need to manage/change the cache
|
|
148
|
-
* in different ways.
|
|
149
|
-
*/
|
|
150
|
-
cacheOptions?: DataServiceCacheOptions;
|
|
151
|
-
/**
|
|
152
|
-
* This should be used to put the data returned from the DataProvider
|
|
153
|
-
* into an instance of a Model or Collection.
|
|
154
|
-
*
|
|
155
|
-
* This should be defined by the children inheriting from BaseDataService
|
|
156
|
-
* and should not be exposed to views or services consuming BaseDataService.
|
|
157
|
-
*/
|
|
158
|
-
formatData?: (data: any) => any;
|
|
159
|
-
/**
|
|
160
|
-
* After certain requests it may be necessary to refresh
|
|
161
|
-
* some data in the cache that has become stale.
|
|
162
|
-
* I.e. Deleting or moving a video
|
|
163
|
-
* Set of eventPrefix keys that will be evicted from the cache
|
|
164
|
-
* once the data request has completed.
|
|
165
|
-
*
|
|
166
|
-
* Accepts full and partial keys, where partial keys will be used to generate
|
|
167
|
-
* a regex for matching. Allows for multiple keys to be evicted in bulk.
|
|
168
|
-
*/
|
|
169
|
-
invalidationKeys?: string[];
|
|
170
|
-
/**
|
|
171
|
-
* Redefine callback with stronger types. It is called after a successful request
|
|
172
|
-
*/
|
|
173
|
-
callback?: (data: any) => any;
|
|
174
|
-
/**
|
|
175
|
-
* Callback to be passed from a view to be fired on an error.
|
|
176
|
-
*/
|
|
177
|
-
errorCallback?: () => void;
|
|
178
|
-
/**
|
|
179
|
-
* Success handler is attached as a callback to the successEvent fired on the dataProvider's dataChannel.
|
|
180
|
-
* Should NOT be used for data manipulation or management by views - use a callback or eventPrefix instead.
|
|
181
|
-
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
182
|
-
* the handler when it is passed.
|
|
183
|
-
*/
|
|
184
|
-
successHandler?: (...args: any[]) => any;
|
|
185
|
-
/**
|
|
186
|
-
* Error handler is attached as a callback to the errorEvent fired on the dataProvider's dataChannel.
|
|
187
|
-
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
188
|
-
* the handler when it is passed.
|
|
189
|
-
* A default errorHandler will be bound unless another error handler is passed in.
|
|
190
|
-
* Alternatively, passing in false will mean that no errorHandler is bound.
|
|
191
|
-
*/
|
|
192
|
-
errorHandler?: ((...args: any[]) => any) | boolean;
|
|
193
|
-
}
|
|
194
|
-
export interface DataServiceCacheOptions {
|
|
195
|
-
/**
|
|
196
|
-
* All requests will be cached by default. In circumstances where the return value
|
|
197
|
-
* is not required (i.e. after a delete call), set the flag to true.
|
|
198
|
-
*/
|
|
199
|
-
noCache?: boolean;
|
|
200
|
-
/**
|
|
201
|
-
* Certain requets (ie. deletes) may require the current cacheKey to be cleared.
|
|
202
|
-
* Set to true to clear.
|
|
203
|
-
*/
|
|
204
|
-
clearCacheKey?: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* Where muliple views may require access to the same reource/data, set openRequest to
|
|
207
|
-
* ensure that any subsequent view can bind it's own callbacks to the existing
|
|
208
|
-
* network call.
|
|
209
|
-
*/
|
|
210
|
-
openRequest?: boolean;
|
|
211
|
-
/**
|
|
212
|
-
* Cached data will utilise a timestamp to determine it's own expiry time within the cache.
|
|
213
|
-
*/
|
|
214
|
-
timestamp?: number;
|
|
215
|
-
}
|
|
216
|
-
export interface RequestSignatures {
|
|
217
|
-
[signature: string]: string;
|
|
218
|
-
}
|
|
1
|
+
import { Events } from 'backbone';
|
|
2
|
+
export interface BaseDataServiceRequest {
|
|
3
|
+
/**
|
|
4
|
+
* This will be a url, an event or a cache key
|
|
5
|
+
* depending on the DataProviderType
|
|
6
|
+
*/
|
|
7
|
+
resource: string;
|
|
8
|
+
/**
|
|
9
|
+
* This is used to generate the events that can be listened to
|
|
10
|
+
* on the backbone radio channel.
|
|
11
|
+
*
|
|
12
|
+
* (e.g. if your eventPrefix was 'library' events would be:
|
|
13
|
+
* library:request, library:sync, library:success and library:error)
|
|
14
|
+
*/
|
|
15
|
+
eventPrefix: string;
|
|
16
|
+
/**
|
|
17
|
+
* This is the instance that is listening to the events.
|
|
18
|
+
* We pass this in so we can use the IoC of
|
|
19
|
+
* listenTo rather than using an on binding.
|
|
20
|
+
* (https://en.wikipedia.org/wiki/Inversion_of_control)
|
|
21
|
+
*
|
|
22
|
+
* This means that there won't be stale event listeners once
|
|
23
|
+
* the listener is disposed of.
|
|
24
|
+
*/
|
|
25
|
+
listener?: Events;
|
|
26
|
+
/**
|
|
27
|
+
* How long in seconds before the data
|
|
28
|
+
* is stale and we need to retreive it again
|
|
29
|
+
*/
|
|
30
|
+
expiryTime?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Set of eventPrefix keys that will be evicted from the cache
|
|
33
|
+
* once the data request has completed.
|
|
34
|
+
*
|
|
35
|
+
* Accepts full and partial keys, where partial keys will be used to generate
|
|
36
|
+
* a regex for matching. Allows for multiple keys to be evicted in bulk.
|
|
37
|
+
*/
|
|
38
|
+
invalidationKeys?: string[];
|
|
39
|
+
/**
|
|
40
|
+
* This is used by a view to gain reference to the model or collection
|
|
41
|
+
* and store it somewhere. If the data is already cached, the callback will
|
|
42
|
+
* be called syncronously. Otherwise it will be called when the data becomes
|
|
43
|
+
* available.
|
|
44
|
+
*/
|
|
45
|
+
callback?: (data?: any) => any;
|
|
46
|
+
/**
|
|
47
|
+
* Callback to be passed from a view to be fired on an error.
|
|
48
|
+
*/
|
|
49
|
+
errorCallback?: () => void;
|
|
50
|
+
/**
|
|
51
|
+
* Success handler is attached as a callback to the successEvent fired on the dataProvider's dataChannel.
|
|
52
|
+
* Should NOT be used for data manipulation or management by views - use a callback or eventPrefix instead.
|
|
53
|
+
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
54
|
+
* the handler when it is passed.
|
|
55
|
+
*/
|
|
56
|
+
successHandler?: (...args: any[]) => any;
|
|
57
|
+
/**
|
|
58
|
+
* Error handler is attached as a callback to the errorEvent fired on the dataProvider's dataChannel.
|
|
59
|
+
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
60
|
+
* the handler when it is passed.
|
|
61
|
+
* A default errorHandler will be bound unless another error handler is passed in.
|
|
62
|
+
* Alternatively, passing in false will mean that no errorHandler is bound.
|
|
63
|
+
*/
|
|
64
|
+
errorHandler?: ((...args: any[]) => any) | boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface DataServiceGetRequest<T> extends BaseDataServiceRequest {
|
|
67
|
+
/**
|
|
68
|
+
* This should be used to put the data returned from the DataProvider
|
|
69
|
+
* into an instance of a Model or Collection.
|
|
70
|
+
*
|
|
71
|
+
* This should be defined by the children inheriting from BaseDataService
|
|
72
|
+
* and should not be exposed to views or services consuming BaseDataService.
|
|
73
|
+
*/
|
|
74
|
+
formatData?: (data: any) => T;
|
|
75
|
+
/**
|
|
76
|
+
* Redefine callback with stronger types.
|
|
77
|
+
*/
|
|
78
|
+
callback?: (data: T) => any;
|
|
79
|
+
/**
|
|
80
|
+
* The name of the property on the bootstrap object
|
|
81
|
+
* that this request will use.
|
|
82
|
+
*/
|
|
83
|
+
bootstrapName?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface DataServiceClearAndGetRequest<T> extends BaseDataServiceRequest {
|
|
86
|
+
/**
|
|
87
|
+
* This should be used to put the data returned from the DataProvider
|
|
88
|
+
* into an instance of a Model or Collection.
|
|
89
|
+
*
|
|
90
|
+
* This should be defined by the children inheriting from BaseDataService
|
|
91
|
+
* and should not be exposed to views or services consuming BaseDataService.
|
|
92
|
+
*/
|
|
93
|
+
formatData?: (data: any) => T;
|
|
94
|
+
/**
|
|
95
|
+
* Redfine callback as a required option
|
|
96
|
+
* because this is the only way to retreive the data
|
|
97
|
+
* in a clearCacheAndGet call
|
|
98
|
+
*/
|
|
99
|
+
callback: (data: T) => void;
|
|
100
|
+
}
|
|
101
|
+
export interface DataServiceCreateRequest<T> extends BaseDataServiceRequest {
|
|
102
|
+
/**
|
|
103
|
+
* This is the data we'll be creating.
|
|
104
|
+
*/
|
|
105
|
+
data: any;
|
|
106
|
+
/**
|
|
107
|
+
* This is how the data should be stored in the cache.
|
|
108
|
+
*/
|
|
109
|
+
formatData?: (data: any) => T;
|
|
110
|
+
/**
|
|
111
|
+
* Redefine callback with stronger types.
|
|
112
|
+
*/
|
|
113
|
+
callback?: (data: T) => any;
|
|
114
|
+
}
|
|
115
|
+
export interface DataServiceUpdateRequest<T> extends BaseDataServiceRequest {
|
|
116
|
+
/**
|
|
117
|
+
* This is the data we'll be sending
|
|
118
|
+
* to the server.
|
|
119
|
+
*/
|
|
120
|
+
data: any;
|
|
121
|
+
/**
|
|
122
|
+
* This is how the data should be stored in the cache.
|
|
123
|
+
*/
|
|
124
|
+
formatData?: (data: any) => T;
|
|
125
|
+
/**
|
|
126
|
+
* Redefine callback with stronger types.
|
|
127
|
+
*/
|
|
128
|
+
callback?: (data: T) => any;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The delete request is the simplest one.
|
|
132
|
+
* We have this here just incase we need to add to it
|
|
133
|
+
* in the future.
|
|
134
|
+
*/
|
|
135
|
+
export interface DataServiceDeleteRequest extends BaseDataServiceRequest {
|
|
136
|
+
}
|
|
137
|
+
export interface DataServiceRequestOptions {
|
|
138
|
+
/**
|
|
139
|
+
* This is used to generate the events that can be listened to
|
|
140
|
+
* on the backbone radio channel.
|
|
141
|
+
*
|
|
142
|
+
* (e.g. if your eventPrefix was library
|
|
143
|
+
* our events would be library:request and library:sync)
|
|
144
|
+
*/
|
|
145
|
+
eventPrefix: string;
|
|
146
|
+
/**
|
|
147
|
+
* Different requests will need to manage/change the cache
|
|
148
|
+
* in different ways.
|
|
149
|
+
*/
|
|
150
|
+
cacheOptions?: DataServiceCacheOptions;
|
|
151
|
+
/**
|
|
152
|
+
* This should be used to put the data returned from the DataProvider
|
|
153
|
+
* into an instance of a Model or Collection.
|
|
154
|
+
*
|
|
155
|
+
* This should be defined by the children inheriting from BaseDataService
|
|
156
|
+
* and should not be exposed to views or services consuming BaseDataService.
|
|
157
|
+
*/
|
|
158
|
+
formatData?: (data: any) => any;
|
|
159
|
+
/**
|
|
160
|
+
* After certain requests it may be necessary to refresh
|
|
161
|
+
* some data in the cache that has become stale.
|
|
162
|
+
* I.e. Deleting or moving a video
|
|
163
|
+
* Set of eventPrefix keys that will be evicted from the cache
|
|
164
|
+
* once the data request has completed.
|
|
165
|
+
*
|
|
166
|
+
* Accepts full and partial keys, where partial keys will be used to generate
|
|
167
|
+
* a regex for matching. Allows for multiple keys to be evicted in bulk.
|
|
168
|
+
*/
|
|
169
|
+
invalidationKeys?: string[];
|
|
170
|
+
/**
|
|
171
|
+
* Redefine callback with stronger types. It is called after a successful request
|
|
172
|
+
*/
|
|
173
|
+
callback?: (data: any) => any;
|
|
174
|
+
/**
|
|
175
|
+
* Callback to be passed from a view to be fired on an error.
|
|
176
|
+
*/
|
|
177
|
+
errorCallback?: () => void;
|
|
178
|
+
/**
|
|
179
|
+
* Success handler is attached as a callback to the successEvent fired on the dataProvider's dataChannel.
|
|
180
|
+
* Should NOT be used for data manipulation or management by views - use a callback or eventPrefix instead.
|
|
181
|
+
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
182
|
+
* the handler when it is passed.
|
|
183
|
+
*/
|
|
184
|
+
successHandler?: (...args: any[]) => any;
|
|
185
|
+
/**
|
|
186
|
+
* Error handler is attached as a callback to the errorEvent fired on the dataProvider's dataChannel.
|
|
187
|
+
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
188
|
+
* the handler when it is passed.
|
|
189
|
+
* A default errorHandler will be bound unless another error handler is passed in.
|
|
190
|
+
* Alternatively, passing in false will mean that no errorHandler is bound.
|
|
191
|
+
*/
|
|
192
|
+
errorHandler?: ((...args: any[]) => any) | boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface DataServiceCacheOptions {
|
|
195
|
+
/**
|
|
196
|
+
* All requests will be cached by default. In circumstances where the return value
|
|
197
|
+
* is not required (i.e. after a delete call), set the flag to true.
|
|
198
|
+
*/
|
|
199
|
+
noCache?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Certain requets (ie. deletes) may require the current cacheKey to be cleared.
|
|
202
|
+
* Set to true to clear.
|
|
203
|
+
*/
|
|
204
|
+
clearCacheKey?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Where muliple views may require access to the same reource/data, set openRequest to
|
|
207
|
+
* ensure that any subsequent view can bind it's own callbacks to the existing
|
|
208
|
+
* network call.
|
|
209
|
+
*/
|
|
210
|
+
openRequest?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Cached data will utilise a timestamp to determine it's own expiry time within the cache.
|
|
213
|
+
*/
|
|
214
|
+
timestamp?: number;
|
|
215
|
+
}
|
|
216
|
+
export interface RequestSignatures {
|
|
217
|
+
[signature: string]: string;
|
|
218
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export interface Pagination {
|
|
2
|
-
cursors: Cursors;
|
|
3
|
-
limit: number;
|
|
4
|
-
}
|
|
5
|
-
export interface Cursors {
|
|
6
|
-
next: string;
|
|
7
|
-
previous: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Do not extend or implement this interface.
|
|
11
|
-
* It is only exported for use within the BaseDataService.
|
|
12
|
-
*
|
|
13
|
-
* By default, the BaseDataService will convert legacy pagination
|
|
14
|
-
* objects to cursor-based pagination objects.
|
|
15
|
-
*/
|
|
16
|
-
export interface LegacyPagination {
|
|
17
|
-
page: number;
|
|
18
|
-
pageSize: number;
|
|
19
|
-
totalItems: number;
|
|
20
|
-
totalPages: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Do not extend or implement this interface.
|
|
24
|
-
* It is only exported for use within the BaseDataService.
|
|
25
|
-
*
|
|
26
|
-
* By default, the BaseDataService will convert legacy pagination
|
|
27
|
-
* objects to cursor-based pagination objects.
|
|
28
|
-
*/
|
|
29
|
-
export interface OffsetPagination {
|
|
30
|
-
offset: number;
|
|
31
|
-
pageSize: number;
|
|
32
|
-
totalItems: number;
|
|
33
|
-
}
|
|
1
|
+
export interface Pagination {
|
|
2
|
+
cursors: Cursors;
|
|
3
|
+
limit: number;
|
|
4
|
+
}
|
|
5
|
+
export interface Cursors {
|
|
6
|
+
next: string;
|
|
7
|
+
previous: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Do not extend or implement this interface.
|
|
11
|
+
* It is only exported for use within the BaseDataService.
|
|
12
|
+
*
|
|
13
|
+
* By default, the BaseDataService will convert legacy pagination
|
|
14
|
+
* objects to cursor-based pagination objects.
|
|
15
|
+
*/
|
|
16
|
+
export interface LegacyPagination {
|
|
17
|
+
page: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
totalItems: number;
|
|
20
|
+
totalPages: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Do not extend or implement this interface.
|
|
24
|
+
* It is only exported for use within the BaseDataService.
|
|
25
|
+
*
|
|
26
|
+
* By default, the BaseDataService will convert legacy pagination
|
|
27
|
+
* objects to cursor-based pagination objects.
|
|
28
|
+
*/
|
|
29
|
+
export interface OffsetPagination {
|
|
30
|
+
offset: number;
|
|
31
|
+
pageSize: number;
|
|
32
|
+
totalItems: number;
|
|
33
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { BaseModel } from '../core/BaseModel';
|
|
2
|
-
export interface StickitBinding {
|
|
3
|
-
observe: string;
|
|
4
|
-
onGet?: string | ((value: string, options: any) => string);
|
|
5
|
-
onSet?: string | ((value: string, options: any) => string);
|
|
6
|
-
getVal?: string | (($el: JQuery, event: Event, options: any) => string);
|
|
7
|
-
update?: string | (($el: JQuery, value: string, model: BaseModel, options: any) => void);
|
|
8
|
-
updateModel?: string | boolean | ((value: string, event: Event, options: any) => boolean);
|
|
9
|
-
updateView?: string | boolean | (() => boolean);
|
|
10
|
-
afterUpdate?: string | (($el: JQuery, value: string, options: any) => void);
|
|
11
|
-
updateMethod?: string;
|
|
12
|
-
escape?: boolean;
|
|
13
|
-
initialize?: string | (($el: JQuery, model: BaseModel, options: any) => void);
|
|
14
|
-
destroy?: string | (($el: JQuery, model: BaseModel, options: any) => void);
|
|
15
|
-
visible?: boolean | ((value: string, options: any) => boolean);
|
|
16
|
-
visibleFn?: string;
|
|
17
|
-
events?: string[];
|
|
18
|
-
name?: string;
|
|
19
|
-
selectOptions?: {
|
|
20
|
-
collection: string;
|
|
21
|
-
labelPath: string;
|
|
22
|
-
valuePath: string;
|
|
23
|
-
defaultOption?: string;
|
|
24
|
-
};
|
|
25
|
-
setOptions?: {
|
|
26
|
-
silent?: boolean;
|
|
27
|
-
validate?: boolean;
|
|
28
|
-
};
|
|
29
|
-
classes?: {
|
|
30
|
-
[className: string]: StickitBinding;
|
|
31
|
-
};
|
|
32
|
-
attributes?: StickitBinding[];
|
|
33
|
-
}
|
|
1
|
+
import { BaseModel } from '../core/BaseModel';
|
|
2
|
+
export interface StickitBinding {
|
|
3
|
+
observe: string;
|
|
4
|
+
onGet?: string | ((value: string, options: any) => string);
|
|
5
|
+
onSet?: string | ((value: string, options: any) => string);
|
|
6
|
+
getVal?: string | (($el: JQuery, event: Event, options: any) => string);
|
|
7
|
+
update?: string | (($el: JQuery, value: string, model: BaseModel, options: any) => void);
|
|
8
|
+
updateModel?: string | boolean | ((value: string, event: Event, options: any) => boolean);
|
|
9
|
+
updateView?: string | boolean | (() => boolean);
|
|
10
|
+
afterUpdate?: string | (($el: JQuery, value: string, options: any) => void);
|
|
11
|
+
updateMethod?: string;
|
|
12
|
+
escape?: boolean;
|
|
13
|
+
initialize?: string | (($el: JQuery, model: BaseModel, options: any) => void);
|
|
14
|
+
destroy?: string | (($el: JQuery, model: BaseModel, options: any) => void);
|
|
15
|
+
visible?: boolean | ((value: string, options: any) => boolean);
|
|
16
|
+
visibleFn?: string;
|
|
17
|
+
events?: string[];
|
|
18
|
+
name?: string;
|
|
19
|
+
selectOptions?: {
|
|
20
|
+
collection: string;
|
|
21
|
+
labelPath: string;
|
|
22
|
+
valuePath: string;
|
|
23
|
+
defaultOption?: string;
|
|
24
|
+
};
|
|
25
|
+
setOptions?: {
|
|
26
|
+
silent?: boolean;
|
|
27
|
+
validate?: boolean;
|
|
28
|
+
};
|
|
29
|
+
classes?: {
|
|
30
|
+
[className: string]: StickitBinding;
|
|
31
|
+
};
|
|
32
|
+
attributes?: StickitBinding[];
|
|
33
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface Xhr<TResponseJSON = any> extends Pick<XMLHttpRequest, 'getResponseHeader' | 'status'> {
|
|
2
|
-
responseJSON?: TResponseJSON;
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* We're making getResponseHeader optional for a slightly nicer API
|
|
6
|
-
*/
|
|
7
|
-
export interface SimulatedXhr extends Omit<Xhr, 'getResponseHeader'> {
|
|
8
|
-
getResponseHeader?: (name: string) => string;
|
|
9
|
-
}
|
|
1
|
+
export interface Xhr<TResponseJSON = any> extends Pick<XMLHttpRequest, 'getResponseHeader' | 'status'> {
|
|
2
|
+
responseJSON?: TResponseJSON;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* We're making getResponseHeader optional for a slightly nicer API
|
|
6
|
+
*/
|
|
7
|
+
export interface SimulatedXhr extends Omit<Xhr, 'getResponseHeader'> {
|
|
8
|
+
getResponseHeader?: (name: string) => string;
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './BaseCollectionIdentifier';
|
|
2
|
-
export * from './ChainableDataService';
|
|
3
|
-
export * from './DataCache';
|
|
4
|
-
export * from './DataProvider';
|
|
5
|
-
export * from './DataServiceError';
|
|
6
|
-
export * from './DataServiceRequests';
|
|
7
|
-
export * from './Pagination';
|
|
8
|
-
export * from './StickitBinding';
|
|
9
|
-
export * from './Xhr';
|
|
1
|
+
export * from './BaseCollectionIdentifier';
|
|
2
|
+
export * from './ChainableDataService';
|
|
3
|
+
export * from './DataCache';
|
|
4
|
+
export * from './DataProvider';
|
|
5
|
+
export * from './DataServiceError';
|
|
6
|
+
export * from './DataServiceRequests';
|
|
7
|
+
export * from './Pagination';
|
|
8
|
+
export * from './StickitBinding';
|
|
9
|
+
export * from './Xhr';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
declare class StaticEnvironmentVariables {
|
|
3
|
-
private static instance;
|
|
4
|
-
private variables;
|
|
5
|
-
constructor();
|
|
6
|
-
static get Instance(): StaticEnvironmentVariables;
|
|
7
|
-
get name(): string;
|
|
8
|
-
get isDevelopment(): boolean;
|
|
9
|
-
get(name: string): any;
|
|
10
|
-
setUpVariables(variables: ObjectHash): void;
|
|
11
|
-
}
|
|
12
|
-
export declare const EnvironmentVariables: StaticEnvironmentVariables;
|
|
13
|
-
export {};
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
declare class StaticEnvironmentVariables {
|
|
3
|
+
private static instance;
|
|
4
|
+
private variables;
|
|
5
|
+
constructor();
|
|
6
|
+
static get Instance(): StaticEnvironmentVariables;
|
|
7
|
+
get name(): string;
|
|
8
|
+
get isDevelopment(): boolean;
|
|
9
|
+
get(name: string): any;
|
|
10
|
+
setUpVariables(variables: ObjectHash): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const EnvironmentVariables: StaticEnvironmentVariables;
|
|
13
|
+
export {};
|