hardwater-ui-microfrontend 0.0.1
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/README.md +48 -0
- package/dist/DailyMotion-BwpAgR-V.js +1 -0
- package/dist/DailyMotion-DLZygJVj.mjs +135 -0
- package/dist/Facebook-BLJ6JTv_.js +1 -0
- package/dist/Facebook-C93Qgsot.mjs +120 -0
- package/dist/FilePlayer-DJHWbLcD.js +1 -0
- package/dist/FilePlayer-DYy9XerI.mjs +201 -0
- package/dist/Kaltura-B-pnIuKt.js +1 -0
- package/dist/Kaltura-CR4IE6JY.mjs +120 -0
- package/dist/Mixcloud-B8Vzd6Te.js +1 -0
- package/dist/Mixcloud-DUpwZ8OV.mjs +112 -0
- package/dist/Mux-DnGUsZf_.mjs +164 -0
- package/dist/Mux-DxeB-oUm.js +1 -0
- package/dist/Preview-B6JRCY5f.mjs +127 -0
- package/dist/Preview-BaBBV6Br.js +1 -0
- package/dist/SoundCloud-3R2aIdUg.js +1 -0
- package/dist/SoundCloud-BcgEw6hR.mjs +122 -0
- package/dist/Streamable-COL4hBFv.js +1 -0
- package/dist/Streamable-DRiRQhSA.mjs +114 -0
- package/dist/Twitch-C38Ew4Tp.mjs +116 -0
- package/dist/Twitch-CYscPCZR.js +1 -0
- package/dist/Vidyard-B1Dr9_bu.mjs +112 -0
- package/dist/Vidyard-D1vZHm1b.js +1 -0
- package/dist/Vimeo-Be31RVkU.mjs +145 -0
- package/dist/Vimeo-DdBHVpAB.js +1 -0
- package/dist/Wistia-CiLiibvT.js +1 -0
- package/dist/Wistia-DoeQgYov.mjs +123 -0
- package/dist/YouTube-Dx2BhB3o.mjs +175 -0
- package/dist/YouTube-uQuz_KMN.js +1 -0
- package/dist/chatpers_list.json.d.ts +964 -0
- package/dist/components/Atoms/AssistantImageModal/ImageModal.d.ts +6 -0
- package/dist/components/Atoms/BottomInput/BottomInput.d.ts +2 -0
- package/dist/components/Atoms/BottomNavButton/BottomNavButton.d.ts +2 -0
- package/dist/components/Atoms/BottomNavMenu/BottomNavMenu.d.ts +2 -0
- package/dist/components/Atoms/BottomNavMenu/MobileBottomNavMenu.d.ts +2 -0
- package/dist/components/Atoms/BottomNavToast/BottomNavToast.d.ts +2 -0
- package/dist/components/Atoms/BottomTopicChapter/BottomTopicChapter.d.ts +1 -0
- package/dist/components/Atoms/Button/Button.d.ts +9 -0
- package/dist/components/Atoms/Button/ButtonConstants.d.ts +44 -0
- package/dist/components/Atoms/Button/Buttons.d.ts +44 -0
- package/dist/components/Atoms/Checkbox/Checkbox.d.ts +8 -0
- package/dist/components/Atoms/CustmBtn/CustmBtn.d.ts +10 -0
- package/dist/components/Atoms/CustmBtn/GradientButton.style.d.ts +59 -0
- package/dist/components/Atoms/CustomButton/ButtonTheme.d.ts +2 -0
- package/dist/components/Atoms/CustomButton/CustomButton.d.ts +2 -0
- package/dist/components/Atoms/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/Atoms/ExtractedDiagramView/ExtractedDiagramView.d.ts +4 -0
- package/dist/components/Atoms/GlobalButton/ButtonUtils.d.ts +89 -0
- package/dist/components/Atoms/GlobalButton/GlobalButton.d.ts +15 -0
- package/dist/components/Atoms/GlobalButtonV2/GlobalButtonV2.d.ts +18 -0
- package/dist/components/Atoms/GlobalButtonV2/GlobalButtonV2.styles.d.ts +118 -0
- package/dist/components/Atoms/GlobalButtonV2/getButtonStyles.d.ts +15 -0
- package/dist/components/Atoms/Input/Input.d.ts +7 -0
- package/dist/components/Atoms/LatexRenderView/LatexRenderView.d.ts +1 -0
- package/dist/components/Atoms/MenuNavbar/MenuNavbar.d.ts +2 -0
- package/dist/components/Atoms/Modal/Modal.d.ts +12 -0
- package/dist/components/Atoms/Pagination/Pagination.d.ts +2 -0
- package/dist/components/Atoms/Pagination/TablePagination.d.ts +2 -0
- package/dist/components/Atoms/PrivacyTouchPoint/PrivacyTouchPoint.d.ts +1 -0
- package/dist/components/Atoms/PrivacyTouchPoint/PrivacyTouchPoint.stories.d.ts +40 -0
- package/dist/components/Atoms/Radio/Radio.d.ts +8 -0
- package/dist/components/Atoms/Select/Select.d.ts +9 -0
- package/dist/components/Atoms/Spinner/Spinner.d.ts +8 -0
- package/dist/components/Atoms/SummaryLine.d.ts +3 -0
- package/dist/components/Atoms/Switch/Switch.d.ts +8 -0
- package/dist/components/Atoms/TextArea/TextArea.d.ts +7 -0
- package/dist/components/Atoms/Toast/Toast.d.ts +7 -0
- package/dist/components/Atoms/TranscriptionImagePreview/ImageAnnotation.d.ts +4 -0
- package/dist/components/Atoms/TranscriptionImagePreview/ImageTranscriptionStyles.d.ts +1 -0
- package/dist/components/Atoms/TranscriptionImagePreview/TranscriptionImagePreview.d.ts +1 -0
- package/dist/components/Atoms/Typography/Typography.d.ts +8 -0
- package/dist/components/Atoms/Typography/TypographyConstants.d.ts +53 -0
- package/dist/components/Atoms/imageModal.d.ts +2 -0
- package/dist/components/Atoms/useCustomToast.d.ts +6 -0
- package/dist/components/Molecules/AccordianPay4/Accordian.d.ts +5 -0
- package/dist/components/Molecules/AccordianPay4/Accordian.styles.d.ts +117 -0
- package/dist/components/Molecules/ActivityBanner/ActivityBanner.d.ts +1 -0
- package/dist/components/Molecules/ActivityBanner/activityBannerStyles.d.ts +75 -0
- package/dist/components/Molecules/AddPostCard/AddPostCard.d.ts +2 -0
- package/dist/components/Molecules/AddPostCard/addPostStyles.d.ts +86 -0
- package/dist/components/Molecules/BottomNav/BottomNav.d.ts +2 -0
- package/dist/components/Molecules/BottomNav/BottomNavStyles.d.ts +52 -0
- package/dist/components/Molecules/DashPlayer/DashPlayer.d.ts +4 -0
- package/dist/components/Molecules/DashPlayer/ShakaPlayer.d.ts +3 -0
- package/dist/components/Molecules/Descriptive/DescriptiveLabel.d.ts +6 -0
- package/dist/components/Molecules/Descriptive/descriptiveStyles.d.ts +68 -0
- package/dist/components/Molecules/DescriptiveAnswer/DescriptiveAnswerV1.d.ts +2 -0
- package/dist/components/Molecules/FactualCard/FactualCard.d.ts +46 -0
- package/dist/components/Molecules/FactualCard/FactualCard.style.d.ts +64 -0
- package/dist/components/Molecules/FloatingButton/FloatingButton.d.ts +11 -0
- package/dist/components/Molecules/FloatingButton/FloatingButton.styles.d.ts +21 -0
- package/dist/components/Molecules/HighChart/HighChart.d.ts +2 -0
- package/dist/components/Molecules/HighChart/HighChartPie.d.ts +2 -0
- package/dist/components/Molecules/ImageView/ImageModal.d.ts +2 -0
- package/dist/components/Molecules/InvalidSession/InvalidSession.d.ts +7 -0
- package/dist/components/Molecules/InvalidSession/InvalidSession.styles.d.ts +15 -0
- package/dist/components/Molecules/LatexRender/DefaultRender.d.ts +4 -0
- package/dist/components/Molecules/LatexRender/LatexRender.d.ts +2 -0
- package/dist/components/Molecules/LatexRender/MarkdownRender.d.ts +4 -0
- package/dist/components/Molecules/MediaModal/MediaModal.d.ts +16 -0
- package/dist/components/Molecules/MediaModal/MediaModal.style.d.ts +8 -0
- package/dist/components/Molecules/Pay4Use/ExecutionModal.d.ts +18 -0
- package/dist/components/Molecules/Pay4Use/ExecutionModalStyles.d.ts +344 -0
- package/dist/components/Molecules/Pay4Use/PayToUsePrompt.d.ts +2 -0
- package/dist/components/Molecules/Pay4Use/PayToUsePromptStyles.d.ts +108 -0
- package/dist/components/Molecules/PerformanceScreen/PreformanceResultScreen.d.ts +26 -0
- package/dist/components/Molecules/PerformanceScreen/QuizResult.styles.d.ts +32 -0
- package/dist/components/Molecules/PostCard/PostCard.d.ts +2 -0
- package/dist/components/Molecules/PostCard/PostImageGallary.d.ts +1 -0
- package/dist/components/Molecules/PostCard/postCardStyles.d.ts +152 -0
- package/dist/components/Molecules/RecapNode/ContentView.d.ts +2 -0
- package/dist/components/Molecules/RecapNode/SectionView.d.ts +7 -0
- package/dist/components/Molecules/RecapNode/VideoView.d.ts +8 -0
- package/dist/components/Molecules/RequestSent/RequestSent.d.ts +10 -0
- package/dist/components/Molecules/RequestSent/RequestSent.styles.d.ts +3 -0
- package/dist/components/Molecules/RevisionCompleteCard/RevisionCompleteCard.d.ts +16 -0
- package/dist/components/Molecules/RevisionCompleteCard/RevisionCompleteCard.styles.d.ts +22 -0
- package/dist/components/Molecules/RevisionIntroCard/RevisionCard.styles.d.ts +10 -0
- package/dist/components/Molecules/RevisionIntroCard/RevisionIntro.d.ts +13 -0
- package/dist/components/Molecules/SmartLearn/SmartLearn.d.ts +5 -0
- package/dist/components/Molecules/SmartLearn/SmartLearn.styles.d.ts +385 -0
- package/dist/components/Molecules/SmartLearn/types.d.ts +31 -0
- package/dist/components/Molecules/SortMenu/SortMenu.d.ts +2 -0
- package/dist/components/Molecules/SortMenu/sortMenuStyles.d.ts +32 -0
- package/dist/components/Molecules/StaticscreensLearnmore/Staticback.d.ts +20 -0
- package/dist/components/Molecules/StaticscreensLearnmore/Staticback.styles.d.ts +238 -0
- package/dist/components/Molecules/TableCustomizer/CellEditor.d.ts +12 -0
- package/dist/components/Molecules/TableCustomizer/HTMLImporter.d.ts +4 -0
- package/dist/components/Molecules/TableCustomizer/MarkdownImporter.d.ts +4 -0
- package/dist/components/Molecules/TableCustomizer/TableHeader.d.ts +11 -0
- package/dist/components/Molecules/TableCustomizer/TablePreview.d.ts +8 -0
- package/dist/components/Molecules/TableCustomizer/TableStructureControls.d.ts +5 -0
- package/dist/components/Molecules/TableCustomizer/hooks/useTableGenerator.d.ts +8 -0
- package/dist/components/Molecules/TableCustomizer/hooks/useTableState.d.ts +27 -0
- package/dist/components/Molecules/TableCustomizer/index.d.ts +4 -0
- package/dist/components/Molecules/TableCustomizer/utils/htmlTableParser.d.ts +9 -0
- package/dist/components/Molecules/TableCustomizer/utils/markdownTableParser.d.ts +9 -0
- package/dist/components/Molecules/TermsAndPrivacy/PrivacyPolicy.d.ts +2 -0
- package/dist/components/Molecules/TermsAndPrivacy/TermsAndConditions.d.ts +2 -0
- package/dist/components/Molecules/TermsAndPrivacy/components/ContactCard.d.ts +7 -0
- package/dist/components/Molecules/TermsAndPrivacy/components/NestedList.d.ts +7 -0
- package/dist/components/Molecules/TermsAndPrivacy/helpers/ParentHelper.d.ts +40 -0
- package/dist/components/Molecules/TermsAndPrivacy/helpers/RefundAndCancellationHelper.d.ts +12 -0
- package/dist/components/Molecules/TermsAndPrivacy/helpers/SchoolHelper.d.ts +31 -0
- package/dist/components/Molecules/TermsAndPrivacy/helpers/StudentHelper.d.ts +44 -0
- package/dist/components/Molecules/TermsAndPrivacy/helpers/TeacherHelper.d.ts +40 -0
- package/dist/components/Molecules/TimerClock/TimerClock.d.ts +12 -0
- package/dist/components/Molecules/Tutor/Assistant/Assistant.d.ts +2 -0
- package/dist/components/Molecules/Tutor/Assistant/Assistant.styles.d.ts +537 -0
- package/dist/components/Molecules/Tutor/Assistant/AssistantV2.d.ts +14 -0
- package/dist/components/Molecules/Tutor/Assistant/AssistantV2.styles.d.ts +109 -0
- package/dist/components/Molecules/Tutor/Assistant/TutorAssistant.d.ts +2 -0
- package/dist/components/Molecules/Tutor/BubbleLoader.d.ts +1 -0
- package/dist/components/Molecules/Tutor/TutorSummary/TutorSummary.d.ts +1 -0
- package/dist/components/Molecules/Tutor/User/User.d.ts +1 -0
- package/dist/components/Molecules/VideoView/VideoModal.d.ts +2 -0
- package/dist/components/Molecules/WallBanner/WallBanner.d.ts +2 -0
- package/dist/components/Molecules/WallBanner/wallBannerStyles.d.ts +1 -0
- package/dist/components/Molecules/WallCard/WallCard.d.ts +1 -0
- package/dist/components/Molecules/comprehension/ComprehensionLayout.d.ts +37 -0
- package/dist/components/Molecules/comprehension/ComprehensionStyles.d.ts +21 -0
- package/dist/components/Molecules/comprehension/SubQuestionLayout.d.ts +45 -0
- package/dist/components/Molecules/optionLayouts/fibtemp.d.ts +2 -0
- package/dist/components/Molecules/optionLayouts/mcqtemp.d.ts +2 -0
- package/dist/components/Molecules/optionLayouts/scqStudent.d.ts +2 -0
- package/dist/components/Molecules/optionLayouts/scqtemp.d.ts +2 -0
- package/dist/components/Molecules/questionLayouts/AnswerLayouts.d.ts +1 -0
- package/dist/components/Molecules/questionLayouts/QuestionsLayout.d.ts +1 -0
- package/dist/components/Organisms/ActivityList/ActivityList.d.ts +2 -0
- package/dist/components/Organisms/ChatView/ChatView.d.ts +1 -0
- package/dist/components/Organisms/FlashCardNode/FlashCardNode.d.ts +3 -0
- package/dist/components/Organisms/FlashCardNode/FlashcardContainer.d.ts +30 -0
- package/dist/components/Organisms/FlashCardNode/IconBar.d.ts +7 -0
- package/dist/components/Organisms/FlashCardNode/MobileAccordionView.d.ts +12 -0
- package/dist/components/Organisms/FlashCardNode/NodeHandles.d.ts +3 -0
- package/dist/components/Organisms/ISEditor-V2/EditableDiv.d.ts +4 -0
- package/dist/components/Organisms/ISEditor-V2/Editor.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V2/EditorConstants.d.ts +14 -0
- package/dist/components/Organisms/ISEditor-V2/EditorContext.d.ts +8 -0
- package/dist/components/Organisms/ISEditor-V2/ISEditor.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V2/LatexBlock.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V2/LatexCopyModal.d.ts +6 -0
- package/dist/components/Organisms/ISEditor-V2/LatexModal.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V2/LatexView.d.ts +5 -0
- package/dist/components/Organisms/ISEditor-V2/MathSymbolButton.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/MathToolBar.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V2/NewTableCustomisation.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/RawMathModal.d.ts +6 -0
- package/dist/components/Organisms/ISEditor-V2/RowColumnModal.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockEight.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockEleven.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockFive.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockFour.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockNine.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockOne.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockSeven.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockSix.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockTen.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockThree.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockTwelve.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockTwo.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V2/TableBlock.d.ts +13 -0
- package/dist/components/Organisms/ISEditor-V2/TableModal.d.ts +5 -0
- package/dist/components/Organisms/ISEditor-V2/ToolBar.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V2/editor.types.d.ts +24 -0
- package/dist/components/Organisms/ISEditor-V2/tableBlockStyles.d.ts +48 -0
- package/dist/components/Organisms/ISEditor-V3/EditableDiv.d.ts +4 -0
- package/dist/components/Organisms/ISEditor-V3/Editor.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V3/EditorConstants.d.ts +14 -0
- package/dist/components/Organisms/ISEditor-V3/EditorContext.d.ts +8 -0
- package/dist/components/Organisms/ISEditor-V3/ISEditor.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V3/LatexBlock.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V3/LatexCopyModal.d.ts +6 -0
- package/dist/components/Organisms/ISEditor-V3/LatexModal.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V3/LatexView.d.ts +5 -0
- package/dist/components/Organisms/ISEditor-V3/MathSymbolButton.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/MathToolBar.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V3/NewTableCustomisation.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/RawMathModal.d.ts +6 -0
- package/dist/components/Organisms/ISEditor-V3/RowColumnModal.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockEight.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockEleven.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockFive.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockFour.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockNine.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockOne.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockSeven.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockSix.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockTen.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockThree.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockTwelve.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockTwo.d.ts +1 -0
- package/dist/components/Organisms/ISEditor-V3/TableBlock.d.ts +13 -0
- package/dist/components/Organisms/ISEditor-V3/TableModal.d.ts +5 -0
- package/dist/components/Organisms/ISEditor-V3/ToolBar.d.ts +2 -0
- package/dist/components/Organisms/ISEditor-V3/editor.types.d.ts +24 -0
- package/dist/components/Organisms/ISEditor-V3/tableBlockStyles.d.ts +48 -0
- package/dist/components/Organisms/LiveStreaming/LiveStreaming.d.ts +1 -0
- package/dist/components/Organisms/PostDetails/ImageGallery.d.ts +1 -0
- package/dist/components/Organisms/PostDetails/PostDetails.d.ts +2 -0
- package/dist/components/Organisms/PostDetails/PostInfo.d.ts +1 -0
- package/dist/components/Organisms/PostDetails/postDetailStyles.d.ts +35 -0
- package/dist/components/Organisms/PostsList/PostList.d.ts +2 -0
- package/dist/components/Organisms/ProgressView/ProgressView.d.ts +2 -0
- package/dist/components/Organisms/ProgressView/ProgressView.stories.d.ts +685 -0
- package/dist/components/Organisms/ProgressView/ProgressViewPresenter.d.ts +9 -0
- package/dist/components/Organisms/ProgressView/ProgressViewStyles.d.ts +174 -0
- package/dist/components/Organisms/RecapGraph/Reactgraphflow.d.ts +13 -0
- package/dist/components/Organisms/RecapGraph/useRecapGraphLogic.d.ts +29 -0
- package/dist/components/Organisms/ReviewComponent/ChatPresenter.d.ts +1 -0
- package/dist/components/Organisms/ReviewComponent/KeyTakeAway.d.ts +4 -0
- package/dist/components/Organisms/ReviewComponent/MoreQuestions.d.ts +2 -0
- package/dist/components/Organisms/ReviewComponent/MoreQuestions.stories.d.ts +13 -0
- package/dist/components/Organisms/ReviewComponent/MoreQuestionsStyles.d.ts +31 -0
- package/dist/components/Organisms/ReviewComponent/Review.d.ts +52 -0
- package/dist/components/Organisms/ReviewComponent/ReviewPresenter.d.ts +49 -0
- package/dist/components/Organisms/ReviewComponent/ReviewPresenter.stories.d.ts +181 -0
- package/dist/components/Organisms/ReviewComponent/ReviewStyles.d.ts +77 -0
- package/dist/components/Organisms/ReviewComponent/reviewUtils.d.ts +1913 -0
- package/dist/components/Organisms/ReviewComponent/selectionUtils.d.ts +3002 -0
- package/dist/components/Organisms/StudentEditor/components/EditorComponent.d.ts +4 -0
- package/dist/components/Organisms/StudentEditor/components/EditorStyles.d.ts +41 -0
- package/dist/components/Organisms/StudentEditor/components/MathElement.d.ts +7 -0
- package/dist/components/Organisms/StudentEditor/components/MathKeyboard.d.ts +9 -0
- package/dist/components/Organisms/StudentEditor/components/MathKeyboardSME.d.ts +9 -0
- package/dist/components/Organisms/StudentEditor/components/MathModal.d.ts +9 -0
- package/dist/components/Organisms/StudentEditor/components/MathModalSME.d.ts +10 -0
- package/dist/components/Organisms/StudentEditor/components/Shortcuts.d.ts +4 -0
- package/dist/components/Organisms/StudentEditor/components/ShortcutsSME.d.ts +4 -0
- package/dist/components/Organisms/StudentEditor/components/TextEditor.d.ts +2 -0
- package/dist/components/Organisms/StudentEditor/components/mathModalStyles.d.ts +210 -0
- package/dist/components/Organisms/StudentEditor/utils/keyboard-config.d.ts +2132 -0
- package/dist/components/Organisms/StudentEditor/utils/keyboardConstants.d.ts +1779 -0
- package/dist/components/Organisms/StudentEditor/utils/slate-conversions.d.ts +19 -0
- package/dist/components/Organisms/StudentEditor/utils/slate-plugins.d.ts +1 -0
- package/dist/components/Organisms/StudentInsights/GaugeChart.d.ts +9 -0
- package/dist/components/Organisms/StudentInsights/InsightsComponent.d.ts +14 -0
- package/dist/components/Organisms/StudentInsights/InsightsComponent.stories.d.ts +334 -0
- package/dist/components/Organisms/StudentInsights/PieChart.d.ts +8 -0
- package/dist/components/Organisms/StudentInsights/insights.styles.d.ts +177 -0
- package/dist/components/Organisms/StudentInsights/text.d.ts +7 -0
- package/dist/components/Organisms/TableComponent/TableComponent.d.ts +2 -0
- package/dist/components/Organisms/TutorFeedback/TutorFeedback.d.ts +2 -0
- package/dist/components/themes/Theme.d.ts +61 -0
- package/dist/favicon.ico +0 -0
- package/dist/index-DIcS8zy8.js +1988 -0
- package/dist/index-DXcjyaIP.mjs +144104 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.esm.js +72 -0
- package/dist/index.html +47 -0
- package/dist/index.js +1 -0
- package/dist/logo192.png +0 -0
- package/dist/logo512.png +0 -0
- package/dist/manifest.json +25 -0
- package/dist/mathlive.min-BtrrwzrH.js +3179 -0
- package/dist/mathlive.min-Cv3GrIcG.mjs +14907 -0
- package/dist/robots.txt +3 -0
- package/dist/shaka-player.compiled-C3nrKFca.js +98 -0
- package/dist/shaka-player.compiled-DRdm8ZDU.mjs +22982 -0
- package/dist/utils/Helper.d.ts +23 -0
- package/dist/utils/LearningPathUtils.d.ts +60 -0
- package/dist/utils/RecapData.d.ts +694 -0
- package/dist/utils/ReviewPresenterUtils.d.ts +9 -0
- package/dist/utils/TutorConstants.d.ts +78 -0
- package/dist/utils/accordion/accordionHelper.d.ts +7 -0
- package/dist/utils/accordion/accordion_images.d.ts +31 -0
- package/dist/utils/accordionConstants.d.ts +17 -0
- package/dist/utils/battery-customisation.d.ts +36 -0
- package/dist/utils/common-utils.d.ts +54 -0
- package/dist/utils/constants.d.ts +762 -0
- package/dist/utils/contentUtils.d.ts +40 -0
- package/dist/utils/crypto.d.ts +2 -0
- package/dist/utils/customTheme.d.ts +1 -0
- package/dist/utils/dateUtils.d.ts +1 -0
- package/dist/utils/emotionalLottieConstants.d.ts +6 -0
- package/dist/utils/emotionalScriptConstants.d.ts +15 -0
- package/dist/utils/emotions.d.ts +4 -0
- package/dist/utils/excludeSubject.d.ts +2 -0
- package/dist/utils/math-images.d.ts +6 -0
- package/dist/utils/pagination/Pagination.d.ts +11 -0
- package/dist/utils/presentationModes.d.ts +117 -0
- package/dist/utils/subject-icons.d.ts +9 -0
- package/dist/utils/taskUtils.d.ts +1 -0
- package/dist/utils/testingutils.d.ts +3110 -0
- package/dist/utils/tutor-utils.d.ts +1 -0
- package/dist/utils/wall/wall-constants.d.ts +41 -0
- package/dist/utils/wall/wall-imges.d.ts +64 -0
- package/dist/utils/wall/wall-message-bank.d.ts +28 -0
- package/dist/utils/wall-constants.d.ts +136 -0
- package/dist/utils/wall-images.d.ts +64 -0
- package/package.json +148 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { g as P, u as g, p as b } from "./index-DXcjyaIP.mjs";
|
|
2
|
+
import v from "react";
|
|
3
|
+
function O(t, e) {
|
|
4
|
+
for (var r = 0; r < e.length; r++) {
|
|
5
|
+
const s = e[r];
|
|
6
|
+
if (typeof s != "string" && !Array.isArray(s)) {
|
|
7
|
+
for (const o in s)
|
|
8
|
+
if (o !== "default" && !(o in t)) {
|
|
9
|
+
const n = Object.getOwnPropertyDescriptor(s, o);
|
|
10
|
+
n && Object.defineProperty(t, o, n.get ? n : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => s[o]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var S = Object.create, l = Object.defineProperty, w = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, C = Object.getPrototypeOf, D = Object.prototype.hasOwnProperty, E = (t, e, r) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, L = (t, e) => {
|
|
20
|
+
for (var r in e)
|
|
21
|
+
l(t, r, { get: e[r], enumerable: !0 });
|
|
22
|
+
}, c = (t, e, r, s) => {
|
|
23
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
24
|
+
for (let o of j(e))
|
|
25
|
+
!D.call(t, o) && o !== r && l(t, o, { get: () => e[o], enumerable: !(s = w(e, o)) || s.enumerable });
|
|
26
|
+
return t;
|
|
27
|
+
}, R = (t, e, r) => (r = t != null ? S(C(t)) : {}, c(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
!t || !t.__esModule ? l(r, "default", { value: t, enumerable: !0 }) : r,
|
|
33
|
+
t
|
|
34
|
+
)), M = (t) => c(l({}, "__esModule", { value: !0 }), t), a = (t, e, r) => (E(t, typeof e != "symbol" ? e + "" : e, r), r), h = {};
|
|
35
|
+
L(h, {
|
|
36
|
+
default: () => u
|
|
37
|
+
});
|
|
38
|
+
var f = M(h), p = R(v), d = g, T = b;
|
|
39
|
+
const N = "https://w.soundcloud.com/player/api.js", A = "SC";
|
|
40
|
+
class u extends p.Component {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments), a(this, "callPlayer", d.callPlayer), a(this, "duration", null), a(this, "currentTime", null), a(this, "fractionLoaded", null), a(this, "mute", () => {
|
|
43
|
+
this.setVolume(0);
|
|
44
|
+
}), a(this, "unmute", () => {
|
|
45
|
+
this.props.volume !== null && this.setVolume(this.props.volume);
|
|
46
|
+
}), a(this, "ref", (e) => {
|
|
47
|
+
this.iframe = e;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
componentDidMount() {
|
|
51
|
+
this.props.onMount && this.props.onMount(this);
|
|
52
|
+
}
|
|
53
|
+
load(e, r) {
|
|
54
|
+
(0, d.getSDK)(N, A).then((s) => {
|
|
55
|
+
if (!this.iframe)
|
|
56
|
+
return;
|
|
57
|
+
const { PLAY: o, PLAY_PROGRESS: n, PAUSE: _, FINISH: y, ERROR: m } = s.Widget.Events;
|
|
58
|
+
r || (this.player = s.Widget(this.iframe), this.player.bind(o, this.props.onPlay), this.player.bind(_, () => {
|
|
59
|
+
this.duration - this.currentTime < 0.05 || this.props.onPause();
|
|
60
|
+
}), this.player.bind(n, (i) => {
|
|
61
|
+
this.currentTime = i.currentPosition / 1e3, this.fractionLoaded = i.loadedProgress;
|
|
62
|
+
}), this.player.bind(y, () => this.props.onEnded()), this.player.bind(m, (i) => this.props.onError(i))), this.player.load(e, {
|
|
63
|
+
...this.props.config.options,
|
|
64
|
+
callback: () => {
|
|
65
|
+
this.player.getDuration((i) => {
|
|
66
|
+
this.duration = i / 1e3, this.props.onReady();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
play() {
|
|
73
|
+
this.callPlayer("play");
|
|
74
|
+
}
|
|
75
|
+
pause() {
|
|
76
|
+
this.callPlayer("pause");
|
|
77
|
+
}
|
|
78
|
+
stop() {
|
|
79
|
+
}
|
|
80
|
+
seekTo(e, r = !0) {
|
|
81
|
+
this.callPlayer("seekTo", e * 1e3), r || this.pause();
|
|
82
|
+
}
|
|
83
|
+
setVolume(e) {
|
|
84
|
+
this.callPlayer("setVolume", e * 100);
|
|
85
|
+
}
|
|
86
|
+
getDuration() {
|
|
87
|
+
return this.duration;
|
|
88
|
+
}
|
|
89
|
+
getCurrentTime() {
|
|
90
|
+
return this.currentTime;
|
|
91
|
+
}
|
|
92
|
+
getSecondsLoaded() {
|
|
93
|
+
return this.fractionLoaded * this.duration;
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
const { display: e } = this.props, r = {
|
|
97
|
+
width: "100%",
|
|
98
|
+
height: "100%",
|
|
99
|
+
display: e
|
|
100
|
+
};
|
|
101
|
+
return /* @__PURE__ */ p.default.createElement(
|
|
102
|
+
"iframe",
|
|
103
|
+
{
|
|
104
|
+
ref: this.ref,
|
|
105
|
+
src: `https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,
|
|
106
|
+
style: r,
|
|
107
|
+
frameBorder: 0,
|
|
108
|
+
allow: "autoplay"
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
a(u, "displayName", "SoundCloud");
|
|
114
|
+
a(u, "canPlay", T.canPlay.soundcloud);
|
|
115
|
+
a(u, "loopOnEnded", !0);
|
|
116
|
+
const x = /* @__PURE__ */ P(f), I = /* @__PURE__ */ O({
|
|
117
|
+
__proto__: null,
|
|
118
|
+
default: x
|
|
119
|
+
}, [f]);
|
|
120
|
+
export {
|
|
121
|
+
I as S
|
|
122
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./index-DIcS8zy8.js"),_=require("react");function f(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in t)){const n=Object.getOwnPropertyDescriptor(s,a);n&&Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var b=Object.create,l=Object.defineProperty,P=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,v=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,S=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of g(e))!O.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=P(e,a))||s.enumerable});return t},L=(t,e,r)=>(r=t!=null?b(v(t)):{},h(!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),w=t=>h(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(S(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>p});var y=w(d),u=L(_),c=i.utils,m=i.patterns;const M="https://cdn.embed.ly/player-0.1.0.min.js",D="playerjs";class p extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,c.getSDK)(M,D).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(m.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(p,"displayName","Streamable");o(p,"canPlay",m.canPlay.streamable);const T=i.getDefaultExportFromCjs(y),E=f({__proto__:null,default:T},[y]);exports.Streamable=E;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { g as m, u as f, p as _ } from "./index-DXcjyaIP.mjs";
|
|
2
|
+
import b from "react";
|
|
3
|
+
function P(t, e) {
|
|
4
|
+
for (var r = 0; r < e.length; r++) {
|
|
5
|
+
const s = e[r];
|
|
6
|
+
if (typeof s != "string" && !Array.isArray(s)) {
|
|
7
|
+
for (const a in s)
|
|
8
|
+
if (a !== "default" && !(a in t)) {
|
|
9
|
+
const i = Object.getOwnPropertyDescriptor(s, a);
|
|
10
|
+
i && Object.defineProperty(t, a, i.get ? i : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => s[a]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var g = Object.create, l = Object.defineProperty, v = Object.getOwnPropertyDescriptor, O = Object.getOwnPropertyNames, S = Object.getPrototypeOf, j = Object.prototype.hasOwnProperty, L = (t, e, r) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, w = (t, e) => {
|
|
20
|
+
for (var r in e)
|
|
21
|
+
l(t, r, { get: e[r], enumerable: !0 });
|
|
22
|
+
}, c = (t, e, r, s) => {
|
|
23
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
24
|
+
for (let a of O(e))
|
|
25
|
+
!j.call(t, a) && a !== r && l(t, a, { get: () => e[a], enumerable: !(s = v(e, a)) || s.enumerable });
|
|
26
|
+
return t;
|
|
27
|
+
}, M = (t, e, r) => (r = t != null ? g(S(t)) : {}, c(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
!t || !t.__esModule ? l(r, "default", { value: t, enumerable: !0 }) : r,
|
|
33
|
+
t
|
|
34
|
+
)), D = (t) => c(l({}, "__esModule", { value: !0 }), t), o = (t, e, r) => (L(t, typeof e != "symbol" ? e + "" : e, r), r), h = {};
|
|
35
|
+
w(h, {
|
|
36
|
+
default: () => n
|
|
37
|
+
});
|
|
38
|
+
var d = D(h), p = M(b), u = f, y = _;
|
|
39
|
+
const T = "https://cdn.embed.ly/player-0.1.0.min.js", E = "playerjs";
|
|
40
|
+
class n extends p.Component {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments), o(this, "callPlayer", u.callPlayer), o(this, "duration", null), o(this, "currentTime", null), o(this, "secondsLoaded", null), o(this, "mute", () => {
|
|
43
|
+
this.callPlayer("mute");
|
|
44
|
+
}), o(this, "unmute", () => {
|
|
45
|
+
this.callPlayer("unmute");
|
|
46
|
+
}), o(this, "ref", (e) => {
|
|
47
|
+
this.iframe = e;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
componentDidMount() {
|
|
51
|
+
this.props.onMount && this.props.onMount(this);
|
|
52
|
+
}
|
|
53
|
+
load(e) {
|
|
54
|
+
(0, u.getSDK)(T, E).then((r) => {
|
|
55
|
+
this.iframe && (this.player = new r.Player(this.iframe), this.player.setLoop(this.props.loop), this.player.on("ready", this.props.onReady), this.player.on("play", this.props.onPlay), this.player.on("pause", this.props.onPause), this.player.on("seeked", this.props.onSeek), this.player.on("ended", this.props.onEnded), this.player.on("error", this.props.onError), this.player.on("timeupdate", ({ duration: s, seconds: a }) => {
|
|
56
|
+
this.duration = s, this.currentTime = a;
|
|
57
|
+
}), this.player.on("buffered", ({ percent: s }) => {
|
|
58
|
+
this.duration && (this.secondsLoaded = this.duration * s);
|
|
59
|
+
}), this.props.muted && this.player.mute());
|
|
60
|
+
}, this.props.onError);
|
|
61
|
+
}
|
|
62
|
+
play() {
|
|
63
|
+
this.callPlayer("play");
|
|
64
|
+
}
|
|
65
|
+
pause() {
|
|
66
|
+
this.callPlayer("pause");
|
|
67
|
+
}
|
|
68
|
+
stop() {
|
|
69
|
+
}
|
|
70
|
+
seekTo(e, r = !0) {
|
|
71
|
+
this.callPlayer("setCurrentTime", e), r || this.pause();
|
|
72
|
+
}
|
|
73
|
+
setVolume(e) {
|
|
74
|
+
this.callPlayer("setVolume", e * 100);
|
|
75
|
+
}
|
|
76
|
+
setLoop(e) {
|
|
77
|
+
this.callPlayer("setLoop", e);
|
|
78
|
+
}
|
|
79
|
+
getDuration() {
|
|
80
|
+
return this.duration;
|
|
81
|
+
}
|
|
82
|
+
getCurrentTime() {
|
|
83
|
+
return this.currentTime;
|
|
84
|
+
}
|
|
85
|
+
getSecondsLoaded() {
|
|
86
|
+
return this.secondsLoaded;
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
const e = this.props.url.match(y.MATCH_URL_STREAMABLE)[1], r = {
|
|
90
|
+
width: "100%",
|
|
91
|
+
height: "100%"
|
|
92
|
+
};
|
|
93
|
+
return /* @__PURE__ */ p.default.createElement(
|
|
94
|
+
"iframe",
|
|
95
|
+
{
|
|
96
|
+
ref: this.ref,
|
|
97
|
+
src: `https://streamable.com/o/${e}`,
|
|
98
|
+
frameBorder: "0",
|
|
99
|
+
scrolling: "no",
|
|
100
|
+
style: r,
|
|
101
|
+
allow: "encrypted-media; autoplay; fullscreen;"
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
o(n, "displayName", "Streamable");
|
|
107
|
+
o(n, "canPlay", y.canPlay.streamable);
|
|
108
|
+
const A = /* @__PURE__ */ m(d), x = /* @__PURE__ */ P({
|
|
109
|
+
__proto__: null,
|
|
110
|
+
default: A
|
|
111
|
+
}, [d]);
|
|
112
|
+
export {
|
|
113
|
+
x as S
|
|
114
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { g as w, u as D, p as C } from "./index-DXcjyaIP.mjs";
|
|
2
|
+
import N from "react";
|
|
3
|
+
function I(t, e) {
|
|
4
|
+
for (var r = 0; r < e.length; r++) {
|
|
5
|
+
const s = e[r];
|
|
6
|
+
if (typeof s != "string" && !Array.isArray(s)) {
|
|
7
|
+
for (const a in s)
|
|
8
|
+
if (a !== "default" && !(a in t)) {
|
|
9
|
+
const n = Object.getOwnPropertyDescriptor(s, a);
|
|
10
|
+
n && Object.defineProperty(t, a, n.get ? n : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => s[a]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var M = Object.create, l = Object.defineProperty, S = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, A = Object.getPrototypeOf, R = Object.prototype.hasOwnProperty, H = (t, e, r) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, x = (t, e) => {
|
|
20
|
+
for (var r in e)
|
|
21
|
+
l(t, r, { get: e[r], enumerable: !0 });
|
|
22
|
+
}, _ = (t, e, r, s) => {
|
|
23
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
24
|
+
for (let a of j(e))
|
|
25
|
+
!R.call(t, a) && a !== r && l(t, a, { get: () => e[a], enumerable: !(s = S(e, a)) || s.enumerable });
|
|
26
|
+
return t;
|
|
27
|
+
}, F = (t, e, r) => (r = t != null ? M(A(t)) : {}, _(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
!t || !t.__esModule ? l(r, "default", { value: t, enumerable: !0 }) : r,
|
|
33
|
+
t
|
|
34
|
+
)), U = (t) => _(l({}, "__esModule", { value: !0 }), t), o = (t, e, r) => (H(t, typeof e != "symbol" ? e + "" : e, r), r), f = {};
|
|
35
|
+
x(f, {
|
|
36
|
+
default: () => h
|
|
37
|
+
});
|
|
38
|
+
var P = U(f), y = F(N), c = D, u = C;
|
|
39
|
+
const K = "https://player.twitch.tv/js/embed/v1.js", V = "Twitch", W = "twitch-player-";
|
|
40
|
+
class h extends y.Component {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments), o(this, "callPlayer", c.callPlayer), o(this, "playerID", this.props.config.playerId || `${W}${(0, c.randomString)()}`), o(this, "mute", () => {
|
|
43
|
+
this.callPlayer("setMuted", !0);
|
|
44
|
+
}), o(this, "unmute", () => {
|
|
45
|
+
this.callPlayer("setMuted", !1);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
componentDidMount() {
|
|
49
|
+
this.props.onMount && this.props.onMount(this);
|
|
50
|
+
}
|
|
51
|
+
load(e, r) {
|
|
52
|
+
const { playsinline: s, onError: a, config: n, controls: v } = this.props, i = u.MATCH_URL_TWITCH_CHANNEL.test(e), p = i ? e.match(u.MATCH_URL_TWITCH_CHANNEL)[1] : e.match(u.MATCH_URL_TWITCH_VIDEO)[1];
|
|
53
|
+
if (r) {
|
|
54
|
+
i ? this.player.setChannel(p) : this.player.setVideo("v" + p);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
(0, c.getSDK)(K, V).then((d) => {
|
|
58
|
+
this.player = new d.Player(this.playerID, {
|
|
59
|
+
video: i ? "" : p,
|
|
60
|
+
channel: i ? p : "",
|
|
61
|
+
height: "100%",
|
|
62
|
+
width: "100%",
|
|
63
|
+
playsinline: s,
|
|
64
|
+
autoplay: this.props.playing,
|
|
65
|
+
muted: this.props.muted,
|
|
66
|
+
// https://github.com/CookPete/react-player/issues/733#issuecomment-549085859
|
|
67
|
+
controls: i ? !0 : v,
|
|
68
|
+
time: (0, c.parseStartTime)(e),
|
|
69
|
+
...n.options
|
|
70
|
+
});
|
|
71
|
+
const { READY: g, PLAYING: m, PAUSE: E, ENDED: O, ONLINE: L, OFFLINE: b, SEEK: T } = d.Player;
|
|
72
|
+
this.player.addEventListener(g, this.props.onReady), this.player.addEventListener(m, this.props.onPlay), this.player.addEventListener(E, this.props.onPause), this.player.addEventListener(O, this.props.onEnded), this.player.addEventListener(T, this.props.onSeek), this.player.addEventListener(L, this.props.onLoaded), this.player.addEventListener(b, this.props.onLoaded);
|
|
73
|
+
}, a);
|
|
74
|
+
}
|
|
75
|
+
play() {
|
|
76
|
+
this.callPlayer("play");
|
|
77
|
+
}
|
|
78
|
+
pause() {
|
|
79
|
+
this.callPlayer("pause");
|
|
80
|
+
}
|
|
81
|
+
stop() {
|
|
82
|
+
this.callPlayer("pause");
|
|
83
|
+
}
|
|
84
|
+
seekTo(e, r = !0) {
|
|
85
|
+
this.callPlayer("seek", e), r || this.pause();
|
|
86
|
+
}
|
|
87
|
+
setVolume(e) {
|
|
88
|
+
this.callPlayer("setVolume", e);
|
|
89
|
+
}
|
|
90
|
+
getDuration() {
|
|
91
|
+
return this.callPlayer("getDuration");
|
|
92
|
+
}
|
|
93
|
+
getCurrentTime() {
|
|
94
|
+
return this.callPlayer("getCurrentTime");
|
|
95
|
+
}
|
|
96
|
+
getSecondsLoaded() {
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
render() {
|
|
100
|
+
const e = {
|
|
101
|
+
width: "100%",
|
|
102
|
+
height: "100%"
|
|
103
|
+
};
|
|
104
|
+
return /* @__PURE__ */ y.default.createElement("div", { style: e, id: this.playerID });
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
o(h, "displayName", "Twitch");
|
|
108
|
+
o(h, "canPlay", u.canPlay.twitch);
|
|
109
|
+
o(h, "loopOnEnded", !0);
|
|
110
|
+
const Y = /* @__PURE__ */ w(P), k = /* @__PURE__ */ I({
|
|
111
|
+
__proto__: null,
|
|
112
|
+
default: Y
|
|
113
|
+
}, [P]);
|
|
114
|
+
export {
|
|
115
|
+
k as T
|
|
116
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("./index-DIcS8zy8.js"),D=require("react");function C(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(a,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var N=Object.create,l=Object.defineProperty,I=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},P=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of M(e))!j.call(t,s)&&s!==r&&l(t,s,{get:()=>e[s],enumerable:!(a=I(e,s))||a.enumerable});return t},H=(t,e,r)=>(r=t!=null?N(S(t)):{},P(!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),x=t=>P(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),f={};R(f,{default:()=>h});var v=x(f),_=H(D),c=d.utils,u=d.patterns;const F="https://player.twitch.tv/js/embed/v1.js",U="Twitch",K="twitch-player-";class h extends _.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${K}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:a,onError:s,config:i,controls:g}=this.props,o=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=o?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){o?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(F,U).then(y=>{this.player=new y.Player(this.playerID,{video:o?"":p,channel:o?p:"",height:"100%",width:"100%",playsinline:a,autoplay:this.props.playing,muted:this.props.muted,controls:o?!0:g,time:(0,c.parseStartTime)(e),...i.options});const{READY:m,PLAYING:E,PAUSE:O,ENDED:L,ONLINE:b,OFFLINE:w,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(E,this.props.onPlay),this.player.addEventListener(O,this.props.onPause),this.player.addEventListener(L,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(b,this.props.onLoaded),this.player.addEventListener(w,this.props.onLoaded)},s)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return _.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const V=d.getDefaultExportFromCjs(v),W=C({__proto__:null,default:V},[v]);exports.Twitch=W;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { g, u as v, p as b } from "./index-DXcjyaIP.mjs";
|
|
2
|
+
import O from "react";
|
|
3
|
+
function V(t, e) {
|
|
4
|
+
for (var r = 0; r < e.length; r++) {
|
|
5
|
+
const o = e[r];
|
|
6
|
+
if (typeof o != "string" && !Array.isArray(o)) {
|
|
7
|
+
for (const a in o)
|
|
8
|
+
if (a !== "default" && !(a in t)) {
|
|
9
|
+
const i = Object.getOwnPropertyDescriptor(o, a);
|
|
10
|
+
i && Object.defineProperty(t, a, i.get ? i : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => o[a]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var D = Object.create, n = Object.defineProperty, j = Object.getOwnPropertyDescriptor, w = Object.getOwnPropertyNames, S = Object.getPrototypeOf, M = Object.prototype.hasOwnProperty, A = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, L = (t, e) => {
|
|
20
|
+
for (var r in e)
|
|
21
|
+
n(t, r, { get: e[r], enumerable: !0 });
|
|
22
|
+
}, h = (t, e, r, o) => {
|
|
23
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
24
|
+
for (let a of w(e))
|
|
25
|
+
!M.call(t, a) && a !== r && n(t, a, { get: () => e[a], enumerable: !(o = j(e, a)) || o.enumerable });
|
|
26
|
+
return t;
|
|
27
|
+
}, R = (t, e, r) => (r = t != null ? D(S(t)) : {}, h(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
!t || !t.__esModule ? n(r, "default", { value: t, enumerable: !0 }) : r,
|
|
33
|
+
t
|
|
34
|
+
)), E = (t) => h(n({}, "__esModule", { value: !0 }), t), s = (t, e, r) => (A(t, typeof e != "symbol" ? e + "" : e, r), r), _ = {};
|
|
35
|
+
L(_, {
|
|
36
|
+
default: () => d
|
|
37
|
+
});
|
|
38
|
+
var f = E(_), c = R(O), y = v, P = b;
|
|
39
|
+
const C = "https://play.vidyard.com/embed/v4.js", N = "VidyardV4", x = "onVidyardAPI";
|
|
40
|
+
class d extends c.Component {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments), s(this, "callPlayer", y.callPlayer), s(this, "mute", () => {
|
|
43
|
+
this.setVolume(0);
|
|
44
|
+
}), s(this, "unmute", () => {
|
|
45
|
+
this.props.volume !== null && this.setVolume(this.props.volume);
|
|
46
|
+
}), s(this, "ref", (e) => {
|
|
47
|
+
this.container = e;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
componentDidMount() {
|
|
51
|
+
this.props.onMount && this.props.onMount(this);
|
|
52
|
+
}
|
|
53
|
+
load(e) {
|
|
54
|
+
const { playing: r, config: o, onError: a, onDuration: i } = this.props, l = e && e.match(P.MATCH_URL_VIDYARD)[1];
|
|
55
|
+
this.player && this.stop(), (0, y.getSDK)(C, N, x).then((p) => {
|
|
56
|
+
this.container && (p.api.addReadyListener((u, m) => {
|
|
57
|
+
this.player || (this.player = m, this.player.on("ready", this.props.onReady), this.player.on("play", this.props.onPlay), this.player.on("pause", this.props.onPause), this.player.on("seek", this.props.onSeek), this.player.on("playerComplete", this.props.onEnded));
|
|
58
|
+
}, l), p.api.renderPlayer({
|
|
59
|
+
uuid: l,
|
|
60
|
+
container: this.container,
|
|
61
|
+
autoplay: r ? 1 : 0,
|
|
62
|
+
...o.options
|
|
63
|
+
}), p.api.getPlayerMetadata(l).then((u) => {
|
|
64
|
+
this.duration = u.length_in_seconds, i(u.length_in_seconds);
|
|
65
|
+
}));
|
|
66
|
+
}, a);
|
|
67
|
+
}
|
|
68
|
+
play() {
|
|
69
|
+
this.callPlayer("play");
|
|
70
|
+
}
|
|
71
|
+
pause() {
|
|
72
|
+
this.callPlayer("pause");
|
|
73
|
+
}
|
|
74
|
+
stop() {
|
|
75
|
+
window.VidyardV4.api.destroyPlayer(this.player);
|
|
76
|
+
}
|
|
77
|
+
seekTo(e, r = !0) {
|
|
78
|
+
this.callPlayer("seek", e), r || this.pause();
|
|
79
|
+
}
|
|
80
|
+
setVolume(e) {
|
|
81
|
+
this.callPlayer("setVolume", e);
|
|
82
|
+
}
|
|
83
|
+
setPlaybackRate(e) {
|
|
84
|
+
this.callPlayer("setPlaybackSpeed", e);
|
|
85
|
+
}
|
|
86
|
+
getDuration() {
|
|
87
|
+
return this.duration;
|
|
88
|
+
}
|
|
89
|
+
getCurrentTime() {
|
|
90
|
+
return this.callPlayer("currentTime");
|
|
91
|
+
}
|
|
92
|
+
getSecondsLoaded() {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
const { display: e } = this.props, r = {
|
|
97
|
+
width: "100%",
|
|
98
|
+
height: "100%",
|
|
99
|
+
display: e
|
|
100
|
+
};
|
|
101
|
+
return /* @__PURE__ */ c.default.createElement("div", { style: r }, /* @__PURE__ */ c.default.createElement("div", { ref: this.ref }));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
s(d, "displayName", "Vidyard");
|
|
105
|
+
s(d, "canPlay", P.canPlay.vidyard);
|
|
106
|
+
const T = /* @__PURE__ */ g(f), B = /* @__PURE__ */ V({
|
|
107
|
+
__proto__: null,
|
|
108
|
+
default: T
|
|
109
|
+
}, [f]);
|
|
110
|
+
export {
|
|
111
|
+
B as V
|
|
112
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("./index-DIcS8zy8.js"),m=require("react");function b(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in t)){const i=Object.getOwnPropertyDescriptor(s,a);i&&Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,n=Object.defineProperty,V=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,j=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,S=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,M=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of D(e))!w.call(t,a)&&a!==r&&n(t,a,{get:()=>e[a],enumerable:!(s=V(e,a))||s.enumerable});return t},A=(t,e,r)=>(r=t!=null?O(j(t)):{},_(!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),L=t=>_(n({},"__esModule",{value:!0}),t),o=(t,e,r)=>(S(t,typeof e!="symbol"?e+"":e,r),r),f={};M(f,{default:()=>y});var P=L(f),c=A(m),h=d.utils,g=d.patterns;const R="https://play.vidyard.com/embed/v4.js",E="VidyardV4",C="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),o(this,"callPlayer",h.callPlayer),o(this,"mute",()=>{this.setVolume(0)}),o(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:s,onError:a,onDuration:i}=this.props,l=e&&e.match(g.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,h.getSDK)(R,E,C).then(p=>{this.container&&(p.api.addReadyListener((u,v)=>{this.player||(this.player=v,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...s.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,i(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}o(y,"displayName","Vidyard");o(y,"canPlay",g.canPlay.vidyard);const N=d.getDefaultExportFromCjs(P),x=b({__proto__:null,default:N},[P]);exports.Vidyard=x;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { g as d, u as f, p as _ } from "./index-DXcjyaIP.mjs";
|
|
2
|
+
import m from "react";
|
|
3
|
+
function P(t, e) {
|
|
4
|
+
for (var r = 0; r < e.length; r++) {
|
|
5
|
+
const a = e[r];
|
|
6
|
+
if (typeof a != "string" && !Array.isArray(a)) {
|
|
7
|
+
for (const s in a)
|
|
8
|
+
if (s !== "default" && !(s in t)) {
|
|
9
|
+
const o = Object.getOwnPropertyDescriptor(a, s);
|
|
10
|
+
o && Object.defineProperty(t, s, o.get ? o : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => a[s]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var g = Object.create, n = Object.defineProperty, b = Object.getOwnPropertyDescriptor, v = Object.getOwnPropertyNames, O = Object.getPrototypeOf, D = Object.prototype.hasOwnProperty, w = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, M = (t, e) => {
|
|
20
|
+
for (var r in e)
|
|
21
|
+
n(t, r, { get: e[r], enumerable: !0 });
|
|
22
|
+
}, h = (t, e, r, a) => {
|
|
23
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
24
|
+
for (let s of v(e))
|
|
25
|
+
!D.call(t, s) && s !== r && n(t, s, { get: () => e[s], enumerable: !(a = b(e, s)) || a.enumerable });
|
|
26
|
+
return t;
|
|
27
|
+
}, j = (t, e, r) => (r = t != null ? g(O(t)) : {}, h(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
!t || !t.__esModule ? n(r, "default", { value: t, enumerable: !0 }) : r,
|
|
33
|
+
t
|
|
34
|
+
)), L = (t) => h(n({}, "__esModule", { value: !0 }), t), i = (t, e, r) => (w(t, typeof e != "symbol" ? e + "" : e, r), r), c = {};
|
|
35
|
+
M(c, {
|
|
36
|
+
default: () => l
|
|
37
|
+
});
|
|
38
|
+
var y = L(c), p = j(m), u = f, S = _;
|
|
39
|
+
const V = "https://player.vimeo.com/api/player.js", E = "Vimeo", k = (t) => t.replace("/manage/videos", "");
|
|
40
|
+
class l extends p.Component {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments), i(this, "callPlayer", u.callPlayer), i(this, "duration", null), i(this, "currentTime", null), i(this, "secondsLoaded", null), i(this, "mute", () => {
|
|
43
|
+
this.setMuted(!0);
|
|
44
|
+
}), i(this, "unmute", () => {
|
|
45
|
+
this.setMuted(!1);
|
|
46
|
+
}), i(this, "ref", (e) => {
|
|
47
|
+
this.container = e;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
componentDidMount() {
|
|
51
|
+
this.props.onMount && this.props.onMount(this);
|
|
52
|
+
}
|
|
53
|
+
load(e) {
|
|
54
|
+
this.duration = null, (0, u.getSDK)(V, E).then((r) => {
|
|
55
|
+
if (!this.container)
|
|
56
|
+
return;
|
|
57
|
+
const { playerOptions: a, title: s } = this.props.config;
|
|
58
|
+
this.player = new r.Player(this.container, {
|
|
59
|
+
url: k(e),
|
|
60
|
+
autoplay: this.props.playing,
|
|
61
|
+
muted: this.props.muted,
|
|
62
|
+
loop: this.props.loop,
|
|
63
|
+
playsinline: this.props.playsinline,
|
|
64
|
+
controls: this.props.controls,
|
|
65
|
+
...a
|
|
66
|
+
}), this.player.ready().then(() => {
|
|
67
|
+
const o = this.container.querySelector("iframe");
|
|
68
|
+
o.style.width = "100%", o.style.height = "100%", s && (o.title = s);
|
|
69
|
+
}).catch(this.props.onError), this.player.on("loaded", () => {
|
|
70
|
+
this.props.onReady(), this.refreshDuration();
|
|
71
|
+
}), this.player.on("play", () => {
|
|
72
|
+
this.props.onPlay(), this.refreshDuration();
|
|
73
|
+
}), this.player.on("pause", this.props.onPause), this.player.on("seeked", (o) => this.props.onSeek(o.seconds)), this.player.on("ended", this.props.onEnded), this.player.on("error", this.props.onError), this.player.on("timeupdate", ({ seconds: o }) => {
|
|
74
|
+
this.currentTime = o;
|
|
75
|
+
}), this.player.on("progress", ({ seconds: o }) => {
|
|
76
|
+
this.secondsLoaded = o;
|
|
77
|
+
}), this.player.on("bufferstart", this.props.onBuffer), this.player.on("bufferend", this.props.onBufferEnd), this.player.on("playbackratechange", (o) => this.props.onPlaybackRateChange(o.playbackRate));
|
|
78
|
+
}, this.props.onError);
|
|
79
|
+
}
|
|
80
|
+
refreshDuration() {
|
|
81
|
+
this.player.getDuration().then((e) => {
|
|
82
|
+
this.duration = e;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
play() {
|
|
86
|
+
const e = this.callPlayer("play");
|
|
87
|
+
e && e.catch(this.props.onError);
|
|
88
|
+
}
|
|
89
|
+
pause() {
|
|
90
|
+
this.callPlayer("pause");
|
|
91
|
+
}
|
|
92
|
+
stop() {
|
|
93
|
+
this.callPlayer("unload");
|
|
94
|
+
}
|
|
95
|
+
seekTo(e, r = !0) {
|
|
96
|
+
this.callPlayer("setCurrentTime", e), r || this.pause();
|
|
97
|
+
}
|
|
98
|
+
setVolume(e) {
|
|
99
|
+
this.callPlayer("setVolume", e);
|
|
100
|
+
}
|
|
101
|
+
setMuted(e) {
|
|
102
|
+
this.callPlayer("setMuted", e);
|
|
103
|
+
}
|
|
104
|
+
setLoop(e) {
|
|
105
|
+
this.callPlayer("setLoop", e);
|
|
106
|
+
}
|
|
107
|
+
setPlaybackRate(e) {
|
|
108
|
+
this.callPlayer("setPlaybackRate", e);
|
|
109
|
+
}
|
|
110
|
+
getDuration() {
|
|
111
|
+
return this.duration;
|
|
112
|
+
}
|
|
113
|
+
getCurrentTime() {
|
|
114
|
+
return this.currentTime;
|
|
115
|
+
}
|
|
116
|
+
getSecondsLoaded() {
|
|
117
|
+
return this.secondsLoaded;
|
|
118
|
+
}
|
|
119
|
+
render() {
|
|
120
|
+
const { display: e } = this.props, r = {
|
|
121
|
+
width: "100%",
|
|
122
|
+
height: "100%",
|
|
123
|
+
overflow: "hidden",
|
|
124
|
+
display: e
|
|
125
|
+
};
|
|
126
|
+
return /* @__PURE__ */ p.default.createElement(
|
|
127
|
+
"div",
|
|
128
|
+
{
|
|
129
|
+
key: this.props.url,
|
|
130
|
+
ref: this.ref,
|
|
131
|
+
style: r
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
i(l, "displayName", "Vimeo");
|
|
137
|
+
i(l, "canPlay", S.canPlay.vimeo);
|
|
138
|
+
i(l, "forceLoad", !0);
|
|
139
|
+
const R = /* @__PURE__ */ d(y), N = /* @__PURE__ */ P({
|
|
140
|
+
__proto__: null,
|
|
141
|
+
default: R
|
|
142
|
+
}, [y]);
|
|
143
|
+
export {
|
|
144
|
+
N as V
|
|
145
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./index-DIcS8zy8.js"),f=require("react");function _(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var m=Object.create,n=Object.defineProperty,P=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,b=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,O=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of g(e))!v.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=P(e,o))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?m(b(t)):{},c(!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),M=t=>c(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(O(t,typeof e!="symbol"?e+"":e,r),r),y={};D(y,{default:()=>l});var d=M(y),u=w(f),h=p.utils,j=p.patterns;const L="https://player.vimeo.com/api/player.js",S="Vimeo",V=t=>t.replace("/manage/videos","");class l extends u.Component{constructor(){super(...arguments),i(this,"callPlayer",h.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,h.getSDK)(L,S).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:V(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return u.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",j.canPlay.vimeo);i(l,"forceLoad",!0);const E=p.getDefaultExportFromCjs(d),k=_({__proto__:null,default:E},[d]);exports.Vimeo=k;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const y=require("./index-DIcS8zy8.js"),m=require("react");function v(t,e){for(var a=0;a<e.length;a++){const s=e[a];if(typeof s!="string"&&!Array.isArray(s)){for(const r in s)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(s,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>s[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,o=Object.defineProperty,O=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyNames,k=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,S=(t,e)=>{for(var a in e)o(t,a,{get:e[a],enumerable:!0})},d=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of C(e))!D.call(t,r)&&r!==a&&o(t,r,{get:()=>e[r],enumerable:!(s=O(e,r))||s.enumerable});return t},E=(t,e,a)=>(a=t!=null?w(k(t)):{},d(!t||!t.__esModule?o(a,"default",{value:t,enumerable:!0}):a,t)),j=t=>d(o({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),_={};S(_,{default:()=>l});var P=j(_),h=E(m),c=y.utils,b=y.patterns;const I="https://fast.wistia.com/assets/external/E-v1.js",M="Wistia",W="wistia-player-";class l extends h.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${W}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:i,config:p,onError:f}=this.props;(0,c.getSDK)(I,M).then(g=>{p.customControls&&p.customControls.forEach(u=>g.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),i()}})},f)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(b.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return h.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",b.canPlay.wistia);n(l,"loopOnEnded",!0);const A=y.getDefaultExportFromCjs(P),L=v({__proto__:null,default:A},[P]);exports.Wistia=L;
|