@vived/host 3.0.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/README.md +0 -0
- package/lib/AppObject/AppObject.d.ts +14 -0
- package/lib/AppObject/AppObject.js +58 -0
- package/lib/AppObject/AppObjectComponent.d.ts +15 -0
- package/lib/AppObject/AppObjectComponent.js +61 -0
- package/lib/AppObject/AppObjectController.d.ts +3 -0
- package/lib/AppObject/AppObjectController.js +7 -0
- package/lib/AppObject/AppObjectEntity.d.ts +14 -0
- package/lib/AppObject/AppObjectEntity.js +36 -0
- package/lib/AppObject/AppObjectEntityRepo.d.ts +15 -0
- package/lib/AppObject/AppObjectEntityRepo.js +55 -0
- package/lib/AppObject/AppObjectPM.d.ts +11 -0
- package/lib/AppObject/AppObjectPM.js +38 -0
- package/lib/AppObject/AppObjectRepo.d.ts +25 -0
- package/lib/AppObject/AppObjectRepo.js +132 -0
- package/lib/AppObject/AppObjectUC.d.ts +3 -0
- package/lib/AppObject/AppObjectUC.js +7 -0
- package/lib/AppObject/AppObjectView.d.ts +3 -0
- package/lib/AppObject/AppObjectView.js +7 -0
- package/lib/AppObject/getSingletonComponent.d.ts +3 -0
- package/lib/AppObject/getSingletonComponent.js +7 -0
- package/lib/AppObject/index.d.ts +9 -0
- package/lib/AppObject/index.js +21 -0
- package/lib/Components/Assets/Controllers/archiveAsset.d.ts +2 -0
- package/lib/Components/Assets/Controllers/archiveAsset.js +13 -0
- package/lib/Components/Assets/Controllers/deleteAsset.d.ts +2 -0
- package/lib/Components/Assets/Controllers/deleteAsset.js +13 -0
- package/lib/Components/Assets/Controllers/downloadAssetFile.d.ts +2 -0
- package/lib/Components/Assets/Controllers/downloadAssetFile.js +13 -0
- package/lib/Components/Assets/Controllers/getAppAssets.d.ts +2 -0
- package/lib/Components/Assets/Controllers/getAppAssets.js +13 -0
- package/lib/Components/Assets/Controllers/index.d.ts +6 -0
- package/lib/Components/Assets/Controllers/index.js +18 -0
- package/lib/Components/Assets/Controllers/toggleShowArchivedAssets.d.ts +2 -0
- package/lib/Components/Assets/Controllers/toggleShowArchivedAssets.js +14 -0
- package/lib/Components/Assets/Controllers/updateAssetFile.d.ts +2 -0
- package/lib/Components/Assets/Controllers/updateAssetFile.js +13 -0
- package/lib/Components/Assets/Entities/AppAssetsEntity.d.ts +15 -0
- package/lib/Components/Assets/Entities/AppAssetsEntity.js +65 -0
- package/lib/Components/Assets/Entities/AssetEntity.d.ts +34 -0
- package/lib/Components/Assets/Entities/AssetEntity.js +150 -0
- package/lib/Components/Assets/Entities/AssetRepo.d.ts +28 -0
- package/lib/Components/Assets/Entities/AssetRepo.js +86 -0
- package/lib/Components/Assets/Entities/AssetRepository.d.ts +34 -0
- package/lib/Components/Assets/Entities/AssetRepository.js +267 -0
- package/lib/Components/Assets/Entities/index.d.ts +3 -0
- package/lib/Components/Assets/Entities/index.js +15 -0
- package/lib/Components/Assets/Mocks/MockArchiveAsset.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockArchiveAsset.js +15 -0
- package/lib/Components/Assets/Mocks/MockDeleteAssetUC.d.ts +9 -0
- package/lib/Components/Assets/Mocks/MockDeleteAssetUC.js +16 -0
- package/lib/Components/Assets/Mocks/MockDownloadAssetFileUC.d.ts +9 -0
- package/lib/Components/Assets/Mocks/MockDownloadAssetFileUC.js +16 -0
- package/lib/Components/Assets/Mocks/MockGetAppAssetsUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockGetAppAssetsUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockGetAssetBlobURLUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockGetAssetBlobURLUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockGetAssetFileUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockGetAssetFileUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockGetAssetUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockGetAssetUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockUpdateAssetFileUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockUpdateAssetFileUC.js +15 -0
- package/lib/Components/Assets/Mocks/index.d.ts +8 -0
- package/lib/Components/Assets/Mocks/index.js +20 -0
- package/lib/Components/Assets/PMs/AppAssetListPM.d.ts +10 -0
- package/lib/Components/Assets/PMs/AppAssetListPM.js +57 -0
- package/lib/Components/Assets/PMs/AssetPM.d.ts +16 -0
- package/lib/Components/Assets/PMs/AssetPM.js +60 -0
- package/lib/Components/Assets/PMs/EditingAppAssetPM.d.ts +16 -0
- package/lib/Components/Assets/PMs/EditingAppAssetPM.js +56 -0
- package/lib/Components/Assets/PMs/ShowArchivedAppAssetPM.d.ts +9 -0
- package/lib/Components/Assets/PMs/ShowArchivedAppAssetPM.js +31 -0
- package/lib/Components/Assets/PMs/index.d.ts +4 -0
- package/lib/Components/Assets/PMs/index.js +16 -0
- package/lib/Components/Assets/UCs/ArchiveAssetUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/ArchiveAssetUC.js +95 -0
- package/lib/Components/Assets/UCs/DeleteAssetUC.d.ts +8 -0
- package/lib/Components/Assets/UCs/DeleteAssetUC.js +109 -0
- package/lib/Components/Assets/UCs/DownloadAssetFileUC.d.ts +8 -0
- package/lib/Components/Assets/UCs/DownloadAssetFileUC.js +101 -0
- package/lib/Components/Assets/UCs/GetAppAssetsUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/GetAppAssetsUC.js +57 -0
- package/lib/Components/Assets/UCs/GetAssetBlobURLUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/GetAssetBlobURLUC.js +77 -0
- package/lib/Components/Assets/UCs/GetAssetFileUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/GetAssetFileUC.js +73 -0
- package/lib/Components/Assets/UCs/GetAssetUC.d.ts +8 -0
- package/lib/Components/Assets/UCs/GetAssetUC.js +53 -0
- package/lib/Components/Assets/UCs/UpdateArchiveAssetUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/UpdateArchiveAssetUC.js +59 -0
- package/lib/Components/Assets/UCs/UpdateAssetFileUC.d.ts +12 -0
- package/lib/Components/Assets/UCs/UpdateAssetFileUC.js +83 -0
- package/lib/Components/Assets/UCs/index.d.ts +8 -0
- package/lib/Components/Assets/UCs/index.js +20 -0
- package/lib/Components/Assets/index.d.ts +5 -0
- package/lib/Components/Assets/index.js +17 -0
- package/lib/Components/Dialog/Controllers/activeDialogHasClosed.d.ts +2 -0
- package/lib/Components/Dialog/Controllers/activeDialogHasClosed.js +14 -0
- package/lib/Components/Dialog/Controllers/index.d.ts +1 -0
- package/lib/Components/Dialog/Controllers/index.js +13 -0
- package/lib/Components/Dialog/Entities/Alert.d.ts +25 -0
- package/lib/Components/Dialog/Entities/Alert.js +48 -0
- package/lib/Components/Dialog/Entities/Confirm.d.ts +29 -0
- package/lib/Components/Dialog/Entities/Confirm.js +53 -0
- package/lib/Components/Dialog/Entities/DialogAlert.d.ts +25 -0
- package/lib/Components/Dialog/Entities/DialogAlert.js +48 -0
- package/lib/Components/Dialog/Entities/DialogConfirm.d.ts +29 -0
- package/lib/Components/Dialog/Entities/DialogConfirm.js +53 -0
- package/lib/Components/Dialog/Entities/DialogMarkDownEditor.d.ts +21 -0
- package/lib/Components/Dialog/Entities/DialogMarkDownEditor.js +44 -0
- package/lib/Components/Dialog/Entities/DialogQueue.d.ts +24 -0
- package/lib/Components/Dialog/Entities/DialogQueue.js +68 -0
- package/lib/Components/Dialog/Entities/DialogSpinner.d.ts +24 -0
- package/lib/Components/Dialog/Entities/DialogSpinner.js +63 -0
- package/lib/Components/Dialog/Entities/MarkDownEditor.d.ts +21 -0
- package/lib/Components/Dialog/Entities/MarkDownEditor.js +44 -0
- package/lib/Components/Dialog/Entities/SelectModel.d.ts +20 -0
- package/lib/Components/Dialog/Entities/SelectModel.js +49 -0
- package/lib/Components/Dialog/Entities/Spinner.d.ts +24 -0
- package/lib/Components/Dialog/Entities/Spinner.js +63 -0
- package/lib/Components/Dialog/Entities/index.d.ts +6 -0
- package/lib/Components/Dialog/Entities/index.js +18 -0
- package/lib/Components/Dialog/Factories/alertDialogFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/alertDialogFactory.js +15 -0
- package/lib/Components/Dialog/Factories/confirmDialogFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/confirmDialogFactory.js +15 -0
- package/lib/Components/Dialog/Factories/index.d.ts +5 -0
- package/lib/Components/Dialog/Factories/index.js +17 -0
- package/lib/Components/Dialog/Factories/markdownDialogEditorFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/markdownDialogEditorFactory.js +15 -0
- package/lib/Components/Dialog/Factories/selectDialogModelFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/selectDialogModelFactory.js +12 -0
- package/lib/Components/Dialog/Factories/spinnerDialogFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/spinnerDialogFactory.js +15 -0
- package/lib/Components/Dialog/PMs/AlertDialogPM.d.ts +16 -0
- package/lib/Components/Dialog/PMs/AlertDialogPM.js +59 -0
- package/lib/Components/Dialog/PMs/ConfirmDialogPM.d.ts +18 -0
- package/lib/Components/Dialog/PMs/ConfirmDialogPM.js +67 -0
- package/lib/Components/Dialog/PMs/DialogQueuePM.d.ts +16 -0
- package/lib/Components/Dialog/PMs/DialogQueuePM.js +52 -0
- package/lib/Components/Dialog/PMs/MarkDownEditorDialogPM.d.ts +14 -0
- package/lib/Components/Dialog/PMs/MarkDownEditorDialogPM.js +51 -0
- package/lib/Components/Dialog/PMs/SpinnerDialogPM.d.ts +14 -0
- package/lib/Components/Dialog/PMs/SpinnerDialogPM.js +51 -0
- package/lib/Components/Dialog/PMs/index.d.ts +5 -0
- package/lib/Components/Dialog/PMs/index.js +17 -0
- package/lib/Components/Dialog/index.d.ts +4 -0
- package/lib/Components/Dialog/index.js +16 -0
- package/lib/Components/Dispatcher/Entities/HostDispatchEntity.d.ts +13 -0
- package/lib/Components/Dispatcher/Entities/HostDispatchEntity.js +86 -0
- package/lib/Components/Dispatcher/Entities/index.d.ts +1 -0
- package/lib/Components/Dispatcher/Entities/index.js +13 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchAppDispatcherUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchAppDispatcherUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchIsAuthoringUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchIsAuthoringUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchSetStateUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchSetStateUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchShowBabylonInspectorUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchShowBabylonInspectorUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartAppUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartAppUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartBrowseChannelsUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartBrowseChannelsUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartZSpaceUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartZSpaceUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStopAppUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStopAppUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStopZSpaceUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStopZSpaceUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchThemeUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchThemeUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockHostDispatcher.d.ts +11 -0
- package/lib/Components/Dispatcher/Mocks/MockHostDispatcher.js +15 -0
- package/lib/Components/Dispatcher/Mocks/index.d.ts +11 -0
- package/lib/Components/Dispatcher/Mocks/index.js +23 -0
- package/lib/Components/Dispatcher/UCs/DispatchDisposeAppUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchDisposeAppUC.js +48 -0
- package/lib/Components/Dispatcher/UCs/DispatchIsAuthoringUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchIsAuthoringUC.js +52 -0
- package/lib/Components/Dispatcher/UCs/DispatchSetStateUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchSetStateUC.js +52 -0
- package/lib/Components/Dispatcher/UCs/DispatchShowBabylonInspectorUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchShowBabylonInspectorUC.js +51 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartAppUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartAppUC.js +51 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartBrowseChannelsUC.d.ts +15 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartBrowseChannelsUC.js +55 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartZSpaceUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartZSpaceUC.js +76 -0
- package/lib/Components/Dispatcher/UCs/DispatchStopAppUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchStopAppUC.js +48 -0
- package/lib/Components/Dispatcher/UCs/DispatchStopZSpaceUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchStopZSpaceUC.js +48 -0
- package/lib/Components/Dispatcher/UCs/DispatchThemeUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchThemeUC.js +51 -0
- package/lib/Components/Dispatcher/UCs/index.d.ts +10 -0
- package/lib/Components/Dispatcher/UCs/index.js +22 -0
- package/lib/Components/Dispatcher/index.d.ts +3 -0
- package/lib/Components/Dispatcher/index.js +15 -0
- package/lib/Components/Handler/Entites/HostHandler.d.ts +22 -0
- package/lib/Components/Handler/Entites/HostHandler.js +61 -0
- package/lib/Components/Handler/Entites/index.d.ts +1 -0
- package/lib/Components/Handler/Entites/index.js +13 -0
- package/lib/Components/Handler/Entities/HostHandler.d.ts +22 -0
- package/lib/Components/Handler/Entities/HostHandler.js +61 -0
- package/lib/Components/Handler/Entities/index.d.ts +1 -0
- package/lib/Components/Handler/Entities/index.js +13 -0
- package/lib/Components/Handler/Mocks/MockGetAssetBlobURLHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetAssetBlobURLHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGetAssetFolderURLHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetAssetFolderURLHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGetAssetMetaHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetAssetMetaHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGetAssetsForOwnerHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetAssetsForOwnerHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGetLinkedAssetsHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetLinkedAssetsHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGoToNextStateHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGoToNextStateHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGoToPreviousStateHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGoToPreviousStateHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockHasNextStateHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockHasNextStateHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockHasPreviousStateHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockHasPreviousStateHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockIsAssetFetchedHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockIsAssetFetchedHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockIsZSpaceAvailableHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockIsZSpaceAvailableHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockNewActivityAssetHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockNewActivityAssetHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockOnAppIsReadyHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockOnAppIsReadyHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockOnStateChangeHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockOnStateChangeHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockOnStateCompleteHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockOnStateCompleteHandler.js +12 -0
- package/lib/Components/Handler/Mocks/index.d.ts +13 -0
- package/lib/Components/Handler/Mocks/index.js +25 -0
- package/lib/Components/Handler/UCs/CallbackAssetDTO.d.ts +5 -0
- package/lib/Components/Handler/UCs/CallbackAssetDTO.js +2 -0
- package/lib/Components/Handler/UCs/GetAssetBlobURLHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/GetAssetBlobURLHandler.js +64 -0
- package/lib/Components/Handler/UCs/GetAssetFolderURLHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/GetAssetFolderURLHandler.js +47 -0
- package/lib/Components/Handler/UCs/GetAssetMetaHandler.d.ts +11 -0
- package/lib/Components/Handler/UCs/GetAssetMetaHandler.js +70 -0
- package/lib/Components/Handler/UCs/GetAssetsForOwnerHandler.d.ts +11 -0
- package/lib/Components/Handler/UCs/GetAssetsForOwnerHandler.js +47 -0
- package/lib/Components/Handler/UCs/GetLinkedAssetsHandler.d.ts +11 -0
- package/lib/Components/Handler/UCs/GetLinkedAssetsHandler.js +82 -0
- package/lib/Components/Handler/UCs/GoToNextStateHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/GoToNextStateHandler.js +40 -0
- package/lib/Components/Handler/UCs/GoToPreviousStateHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/GoToPreviousStateHandler.js +40 -0
- package/lib/Components/Handler/UCs/HasNextStateHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/HasNextStateHandler.js +47 -0
- package/lib/Components/Handler/UCs/HasPreviousStateHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/HasPreviousStateHandler.js +47 -0
- package/lib/Components/Handler/UCs/IsAssetFetchedHandler.d.ts +14 -0
- package/lib/Components/Handler/UCs/IsAssetFetchedHandler.js +48 -0
- package/lib/Components/Handler/UCs/IsZSpaceAvailableHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/IsZSpaceAvailableHandler.js +47 -0
- package/lib/Components/Handler/UCs/NewActivityAssetHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/NewActivityAssetHandler.js +47 -0
- package/lib/Components/Handler/UCs/OnAppIsReadyHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/OnAppIsReadyHandler.js +39 -0
- package/lib/Components/Handler/UCs/OnStateChangeHandler.d.ts +18 -0
- package/lib/Components/Handler/UCs/OnStateChangeHandler.js +70 -0
- package/lib/Components/Handler/UCs/OnStateCompleteHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/OnStateCompleteHandler.js +39 -0
- package/lib/Components/Handler/UCs/RegisterExternalStyleSheetsHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/RegisterExternalStyleSheetsHandler.js +48 -0
- package/lib/Components/Handler/UCs/RestoreCurrentStateHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/RestoreCurrentStateHandler.js +41 -0
- package/lib/Components/Handler/UCs/ShowAlertHandler.d.ts +16 -0
- package/lib/Components/Handler/UCs/ShowAlertHandler.js +64 -0
- package/lib/Components/Handler/UCs/ShowConfirmHandler.d.ts +18 -0
- package/lib/Components/Handler/UCs/ShowConfirmHandler.js +68 -0
- package/lib/Components/Handler/UCs/ShowMarkDownEditorHandler.d.ts +22 -0
- package/lib/Components/Handler/UCs/ShowMarkDownEditorHandler.js +61 -0
- package/lib/Components/Handler/UCs/ShowSelectModelHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/ShowSelectModelHandler.js +47 -0
- package/lib/Components/Handler/UCs/ShowSpinnerHandler.d.ts +15 -0
- package/lib/Components/Handler/UCs/ShowSpinnerHandler.js +65 -0
- package/lib/Components/Handler/UCs/StartZSpaceHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/StartZSpaceHandler.js +40 -0
- package/lib/Components/Handler/UCs/StopZSpaceHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/StopZSpaceHandler.js +40 -0
- package/lib/Components/Handler/UCs/SubmitActivityAssetHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/SubmitActivityAssetHandler.js +47 -0
- package/lib/Components/Handler/UCs/SubmitLogHandler.d.ts +11 -0
- package/lib/Components/Handler/UCs/SubmitLogHandler.js +49 -0
- package/lib/Components/Handler/UCs/SubmitResultHandler.d.ts +31 -0
- package/lib/Components/Handler/UCs/SubmitResultHandler.js +60 -0
- package/lib/Components/Handler/UCs/index.d.ts +28 -0
- package/lib/Components/Handler/UCs/index.js +40 -0
- package/lib/Components/Handler/index.d.ts +2 -0
- package/lib/Components/Handler/index.js +14 -0
- package/lib/Components/VivedAPI/Controllers/index.d.ts +3 -0
- package/lib/Components/VivedAPI/Controllers/index.js +15 -0
- package/lib/Components/VivedAPI/Controllers/loginUser.d.ts +2 -0
- package/lib/Components/VivedAPI/Controllers/loginUser.js +15 -0
- package/lib/Components/VivedAPI/Controllers/logoutUser.d.ts +2 -0
- package/lib/Components/VivedAPI/Controllers/logoutUser.js +15 -0
- package/lib/Components/VivedAPI/Controllers/refreshAuthenticatedUser.d.ts +2 -0
- package/lib/Components/VivedAPI/Controllers/refreshAuthenticatedUser.js +15 -0
- package/lib/Components/VivedAPI/Entities/VivedAPIEntity.d.ts +11 -0
- package/lib/Components/VivedAPI/Entities/VivedAPIEntity.js +27 -0
- package/lib/Components/VivedAPI/Entities/index.d.ts +1 -0
- package/lib/Components/VivedAPI/Entities/index.js +13 -0
- package/lib/Components/VivedAPI/Mocks/MockBasicFetchUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockBasicFetchUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockBlobRequestUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockBlobRequestUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetOnAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetOnAPIUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileFromAPIUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaFromAPIUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFileUpload.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFileUpload.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAppFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAppFromAPIUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAppUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAppUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAssetsForOwnerUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAssetsForOwnerUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockJsonRequestUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockJsonRequestUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetFileUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetFileUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetIsArchivedUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetIsArchivedUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetMetaUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetMetaUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPostNewAssetUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPostNewAssetUC.js +18 -0
- package/lib/Components/VivedAPI/Mocks/MockSignedAuthToken.d.ts +9 -0
- package/lib/Components/VivedAPI/Mocks/MockSignedAuthToken.js +16 -0
- package/lib/Components/VivedAPI/Mocks/MockUserLoginUC.d.ts +10 -0
- package/lib/Components/VivedAPI/Mocks/MockUserLoginUC.js +17 -0
- package/lib/Components/VivedAPI/Mocks/index.d.ts +16 -0
- package/lib/Components/VivedAPI/Mocks/index.js +28 -0
- package/lib/Components/VivedAPI/PMs/UserTokenPM.d.ts +9 -0
- package/lib/Components/VivedAPI/PMs/UserTokenPM.js +31 -0
- package/lib/Components/VivedAPI/PMs/index.d.ts +1 -0
- package/lib/Components/VivedAPI/PMs/index.js +13 -0
- package/lib/Components/VivedAPI/UCs/BasicFetchUC.d.ts +13 -0
- package/lib/Components/VivedAPI/UCs/BasicFetchUC.js +35 -0
- package/lib/Components/VivedAPI/UCs/BlobRequestUC.d.ts +13 -0
- package/lib/Components/VivedAPI/UCs/BlobRequestUC.js +38 -0
- package/lib/Components/VivedAPI/UCs/DeleteAssetOnAPIUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/DeleteAssetOnAPIUC.js +63 -0
- package/lib/Components/VivedAPI/UCs/DeleteAssetUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/DeleteAssetUC.js +63 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetFileFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetFileFromAPIUC.js +53 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetFileUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetFileUC.js +53 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaFromAPIUC.js +72 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaUC.d.ts +20 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaUC.js +72 -0
- package/lib/Components/VivedAPI/UCs/FileUploadUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/FileUploadUC.js +62 -0
- package/lib/Components/VivedAPI/UCs/GetAppFromAPIUC.d.ts +28 -0
- package/lib/Components/VivedAPI/UCs/GetAppFromAPIUC.js +70 -0
- package/lib/Components/VivedAPI/UCs/GetAppUC.d.ts +28 -0
- package/lib/Components/VivedAPI/UCs/GetAppUC.js +70 -0
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerFromAPIUC.js +86 -0
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerUC.d.ts +20 -0
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerUC.js +86 -0
- package/lib/Components/VivedAPI/UCs/JsonRequestUC.d.ts +13 -0
- package/lib/Components/VivedAPI/UCs/JsonRequestUC.js +49 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetFileUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetFileUC.js +84 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetIsArchivedUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetIsArchivedUC.js +67 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetMetaUC.d.ts +13 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetMetaUC.js +70 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetUC.d.ts +14 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetUC.js +88 -0
- package/lib/Components/VivedAPI/UCs/PostNewAssetUC.d.ts +17 -0
- package/lib/Components/VivedAPI/UCs/PostNewAssetUC.js +92 -0
- package/lib/Components/VivedAPI/UCs/SignedAuthTokenUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/SignedAuthTokenUC.js +11 -0
- package/lib/Components/VivedAPI/UCs/UserAuthUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/UserAuthUC.js +11 -0
- package/lib/Components/VivedAPI/UCs/index.d.ts +16 -0
- package/lib/Components/VivedAPI/UCs/index.js +28 -0
- package/lib/Components/VivedAPI/index.d.ts +5 -0
- package/lib/Components/VivedAPI/index.js +17 -0
- package/lib/Components/ZSpaceHost/Controllers/index.d.ts +1 -0
- package/lib/Components/ZSpaceHost/Controllers/index.js +13 -0
- package/lib/Components/ZSpaceHost/Controllers/toggleEmulateZSpace.d.ts +2 -0
- package/lib/Components/ZSpaceHost/Controllers/toggleEmulateZSpace.js +13 -0
- package/lib/Components/ZSpaceHost/Entities/ZSpaceHost.d.ts +14 -0
- package/lib/Components/ZSpaceHost/Entities/ZSpaceHost.js +43 -0
- package/lib/Components/ZSpaceHost/Entities/index.d.ts +1 -0
- package/lib/Components/ZSpaceHost/Entities/index.js +13 -0
- package/lib/Components/ZSpaceHost/PMs/EmulateZSpacePM.d.ts +9 -0
- package/lib/Components/ZSpaceHost/PMs/EmulateZSpacePM.js +31 -0
- package/lib/Components/ZSpaceHost/PMs/ZSpaceIsActivePM.d.ts +9 -0
- package/lib/Components/ZSpaceHost/PMs/ZSpaceIsActivePM.js +31 -0
- package/lib/Components/ZSpaceHost/PMs/index.d.ts +2 -0
- package/lib/Components/ZSpaceHost/PMs/index.js +14 -0
- package/lib/Components/ZSpaceHost/UCs/checkForZSpaceSupport.d.ts +2 -0
- package/lib/Components/ZSpaceHost/UCs/checkForZSpaceSupport.js +30 -0
- package/lib/Components/ZSpaceHost/UCs/index.d.ts +1 -0
- package/lib/Components/ZSpaceHost/UCs/index.js +13 -0
- package/lib/Components/ZSpaceHost/index.d.ts +4 -0
- package/lib/Components/ZSpaceHost/index.js +16 -0
- package/lib/Components/index.d.ts +6 -0
- package/lib/Components/index.js +18 -0
- package/lib/Entities/Asset.d.ts +30 -0
- package/lib/Entities/Asset.js +131 -0
- package/lib/Entities/AssetRepo.d.ts +10 -0
- package/lib/Entities/AssetRepo.js +56 -0
- package/lib/Entities/Auth.d.ts +7 -0
- package/lib/Entities/Auth.js +25 -0
- package/lib/Entities/ChallengeResults.d.ts +40 -0
- package/lib/Entities/ChallengeResults.js +104 -0
- package/lib/Entities/DevicePreview.d.ts +20 -0
- package/lib/Entities/DevicePreview.js +67 -0
- package/lib/Entities/DialogAlert.d.ts +18 -0
- package/lib/Entities/DialogAlert.js +25 -0
- package/lib/Entities/DialogBase.d.ts +10 -0
- package/lib/Entities/DialogBase.js +20 -0
- package/lib/Entities/DialogConfirm.d.ts +22 -0
- package/lib/Entities/DialogConfirm.js +30 -0
- package/lib/Entities/DialogMarkDownEditor.d.ts +14 -0
- package/lib/Entities/DialogMarkDownEditor.js +21 -0
- package/lib/Entities/DialogRepo.d.ts +8 -0
- package/lib/Entities/DialogRepo.js +38 -0
- package/lib/Entities/DialogSpinner.d.ts +15 -0
- package/lib/Entities/DialogSpinner.js +47 -0
- package/lib/Entities/HostBoundary.d.ts +10 -0
- package/lib/Entities/HostBoundary.js +2 -0
- package/lib/Entities/HostDispatcher.d.ts +16 -0
- package/lib/Entities/HostDispatcher.js +171 -0
- package/lib/Entities/HostHandler.d.ts +19 -0
- package/lib/Entities/HostHandler.js +59 -0
- package/lib/Entities/HostHandlerX.d.ts +7 -0
- package/lib/Entities/HostHandlerX.js +35 -0
- package/lib/Entities/Logger.d.ts +41 -0
- package/lib/Entities/Logger.js +117 -0
- package/lib/Entities/MemoizedBoolean.d.ts +7 -0
- package/lib/Entities/MemoizedBoolean.js +19 -0
- package/lib/Entities/MemoizedNumber.d.ts +7 -0
- package/lib/Entities/MemoizedNumber.js +19 -0
- package/lib/Entities/MemoizedString.d.ts +7 -0
- package/lib/Entities/MemoizedString.js +19 -0
- package/lib/Entities/ObservableEntity.d.ts +7 -0
- package/lib/Entities/ObservableEntity.js +19 -0
- package/lib/Entities/ObserverList.d.ts +7 -0
- package/lib/Entities/ObserverList.js +26 -0
- package/lib/Entities/SnackbarRepo.d.ts +20 -0
- package/lib/Entities/SnackbarRepo.js +98 -0
- package/lib/Entities/VivedAPI.d.ts +50 -0
- package/lib/Entities/VivedAPI.js +69 -0
- package/lib/Entities/index.d.ts +9 -0
- package/lib/Entities/index.js +21 -0
- package/lib/HostAppObject/HostAppObject.d.ts +14 -0
- package/lib/HostAppObject/HostAppObject.js +58 -0
- package/lib/HostAppObject/HostAppObjectComponent.d.ts +16 -0
- package/lib/HostAppObject/HostAppObjectComponent.js +71 -0
- package/lib/HostAppObject/HostAppObjectController.d.ts +3 -0
- package/lib/HostAppObject/HostAppObjectController.js +7 -0
- package/lib/HostAppObject/HostAppObjectEntity.d.ts +14 -0
- package/lib/HostAppObject/HostAppObjectEntity.js +36 -0
- package/lib/HostAppObject/HostAppObjectEntityRepo.d.ts +15 -0
- package/lib/HostAppObject/HostAppObjectEntityRepo.js +54 -0
- package/lib/HostAppObject/HostAppObjectPM.d.ts +11 -0
- package/lib/HostAppObject/HostAppObjectPM.js +38 -0
- package/lib/HostAppObject/HostAppObjectRepo.d.ts +25 -0
- package/lib/HostAppObject/HostAppObjectRepo.js +132 -0
- package/lib/HostAppObject/HostAppObjectUC.d.ts +3 -0
- package/lib/HostAppObject/HostAppObjectUC.js +7 -0
- package/lib/HostAppObject/HostAppObjectView.d.ts +3 -0
- package/lib/HostAppObject/HostAppObjectView.js +7 -0
- package/lib/HostAppObject/getSingletonComponent.d.ts +3 -0
- package/lib/HostAppObject/getSingletonComponent.js +7 -0
- package/lib/HostAppObject/index.d.ts +9 -0
- package/lib/HostAppObject/index.js +21 -0
- package/lib/PresentationManagers/DevicePreview/DevicePreviewListPM.d.ts +23 -0
- package/lib/PresentationManagers/DevicePreview/DevicePreviewListPM.js +50 -0
- package/lib/PresentationManagers/Dialog/AlertDialogPM.d.ts +18 -0
- package/lib/PresentationManagers/Dialog/AlertDialogPM.js +65 -0
- package/lib/PresentationManagers/Dialog/ConfirmDialogPM.d.ts +21 -0
- package/lib/PresentationManagers/Dialog/ConfirmDialogPM.js +87 -0
- package/lib/PresentationManagers/Dialog/DialogPM.d.ts +19 -0
- package/lib/PresentationManagers/Dialog/DialogPM.js +66 -0
- package/lib/PresentationManagers/Dialog/MarkDownEditorDialogPM.d.ts +17 -0
- package/lib/PresentationManagers/Dialog/MarkDownEditorDialogPM.js +68 -0
- package/lib/PresentationManagers/Dialog/SpinnerDialogPM.d.ts +16 -0
- package/lib/PresentationManagers/Dialog/SpinnerDialogPM.js +62 -0
- package/lib/PresentationManagers/PresentationManager.d.ts +8 -0
- package/lib/PresentationManagers/PresentationManager.js +16 -0
- package/lib/PresentationManagers/Snackbar/SnackbarPM.d.ts +13 -0
- package/lib/PresentationManagers/Snackbar/SnackbarPM.js +30 -0
- package/lib/PresentationManagers/index.d.ts +6 -0
- package/lib/PresentationManagers/index.js +18 -0
- package/lib/Types/PluginBoundary.d.ts +10 -0
- package/lib/Types/PluginBoundary.js +2 -0
- package/lib/Types/index.d.ts +1 -0
- package/lib/Types/index.js +13 -0
- package/lib/UseCases/Handlers/CallbackAssetDTO.d.ts +5 -0
- package/lib/UseCases/Handlers/CallbackAssetDTO.js +2 -0
- package/lib/UseCases/Handlers/GetAssetBlobURLBase.d.ts +10 -0
- package/lib/UseCases/Handlers/GetAssetBlobURLBase.js +30 -0
- package/lib/UseCases/Handlers/GetAssetFolderURLBase.d.ts +10 -0
- package/lib/UseCases/Handlers/GetAssetFolderURLBase.js +30 -0
- package/lib/UseCases/Handlers/GetAssetMetaBase.d.ts +11 -0
- package/lib/UseCases/Handlers/GetAssetMetaBase.js +30 -0
- package/lib/UseCases/Handlers/GetAssetsForOwnerBase.d.ts +11 -0
- package/lib/UseCases/Handlers/GetAssetsForOwnerBase.js +30 -0
- package/lib/UseCases/Handlers/GetLinkedAssetsBase.d.ts +11 -0
- package/lib/UseCases/Handlers/GetLinkedAssetsBase.js +30 -0
- package/lib/UseCases/Handlers/GoToNextStateBase.d.ts +9 -0
- package/lib/UseCases/Handlers/GoToNextStateBase.js +23 -0
- package/lib/UseCases/Handlers/GoToPreviousStateBase.d.ts +9 -0
- package/lib/UseCases/Handlers/GoToPreviousStateBase.js +23 -0
- package/lib/UseCases/Handlers/HasNextStateBase.d.ts +10 -0
- package/lib/UseCases/Handlers/HasNextStateBase.js +30 -0
- package/lib/UseCases/Handlers/HasPreviousStateBase.d.ts +10 -0
- package/lib/UseCases/Handlers/HasPreviousStateBase.js +30 -0
- package/lib/UseCases/Handlers/IsAssetFetchedBase.d.ts +14 -0
- package/lib/UseCases/Handlers/IsAssetFetchedBase.js +31 -0
- package/lib/UseCases/Handlers/IsZSpaceAvailableBase.d.ts +10 -0
- package/lib/UseCases/Handlers/IsZSpaceAvailableBase.js +30 -0
- package/lib/UseCases/Handlers/NewActivityAssetBase.d.ts +10 -0
- package/lib/UseCases/Handlers/NewActivityAssetBase.js +30 -0
- package/lib/UseCases/Handlers/OnAppIsReadyBase.d.ts +8 -0
- package/lib/UseCases/Handlers/OnAppIsReadyBase.js +22 -0
- package/lib/UseCases/Handlers/OnStateChangeBase.d.ts +12 -0
- package/lib/UseCases/Handlers/OnStateChangeBase.js +52 -0
- package/lib/UseCases/Handlers/OnStateCompleteBase.d.ts +8 -0
- package/lib/UseCases/Handlers/OnStateCompleteBase.js +22 -0
- package/lib/UseCases/Handlers/RegisterExternalStyleSheetsBase.d.ts +10 -0
- package/lib/UseCases/Handlers/RegisterExternalStyleSheetsBase.js +30 -0
- package/lib/UseCases/Handlers/RestoreCurrentStateBase.d.ts +9 -0
- package/lib/UseCases/Handlers/RestoreCurrentStateBase.js +23 -0
- package/lib/UseCases/Handlers/ShowAlertBase.d.ts +16 -0
- package/lib/UseCases/Handlers/ShowAlertBase.js +33 -0
- package/lib/UseCases/Handlers/ShowConfirmBase.d.ts +18 -0
- package/lib/UseCases/Handlers/ShowConfirmBase.js +35 -0
- package/lib/UseCases/Handlers/ShowMarkDownEditorBase.d.ts +15 -0
- package/lib/UseCases/Handlers/ShowMarkDownEditorBase.js +31 -0
- package/lib/UseCases/Handlers/ShowSelectModelBase.d.ts +10 -0
- package/lib/UseCases/Handlers/ShowSelectModelBase.js +30 -0
- package/lib/UseCases/Handlers/ShowSpinnerBase.d.ts +15 -0
- package/lib/UseCases/Handlers/ShowSpinnerBase.js +32 -0
- package/lib/UseCases/Handlers/StartZSpaceBase.d.ts +9 -0
- package/lib/UseCases/Handlers/StartZSpaceBase.js +23 -0
- package/lib/UseCases/Handlers/StopZSpaceBase.d.ts +9 -0
- package/lib/UseCases/Handlers/StopZSpaceBase.js +23 -0
- package/lib/UseCases/Handlers/SubmitActivityAssetBase.d.ts +10 -0
- package/lib/UseCases/Handlers/SubmitActivityAssetBase.js +30 -0
- package/lib/UseCases/Handlers/SubmitLogBase.d.ts +11 -0
- package/lib/UseCases/Handlers/SubmitLogBase.js +32 -0
- package/lib/UseCases/Handlers/SubmitResultBase.d.ts +32 -0
- package/lib/UseCases/Handlers/SubmitResultBase.js +43 -0
- package/lib/UseCases/Handlers/index.d.ts +6 -0
- package/lib/UseCases/Handlers/index.js +18 -0
- package/lib/UseCases/index.d.ts +1 -0
- package/lib/UseCases/index.js +13 -0
- package/lib/Utilities/generateUniqueID.d.ts +1 -0
- package/lib/Utilities/generateUniqueID.js +8 -0
- package/lib/Utilities/index.d.ts +1 -0
- package/lib/Utilities/index.js +13 -0
- package/lib/ValueObjects/Result.d.ts +30 -0
- package/lib/ValueObjects/Result.js +45 -0
- package/lib/ValueObjects/Version.d.ts +22 -0
- package/lib/ValueObjects/Version.js +170 -0
- package/lib/ValueObjects/index.d.ts +2 -0
- package/lib/ValueObjects/index.js +14 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +19 -0
- package/package.json +49 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeAsset = exports.Asset = void 0;
|
|
4
|
+
const MemoizedBoolean_1 = require("./MemoizedBoolean");
|
|
5
|
+
const MemoizedString_1 = require("./MemoizedString");
|
|
6
|
+
const ObservableEntity_1 = require("./ObservableEntity");
|
|
7
|
+
class Asset extends ObservableEntity_1.ObservableEntity {
|
|
8
|
+
}
|
|
9
|
+
exports.Asset = Asset;
|
|
10
|
+
function makeAsset(id) {
|
|
11
|
+
return new AssetImp(id);
|
|
12
|
+
}
|
|
13
|
+
exports.makeAsset = makeAsset;
|
|
14
|
+
class AssetImp extends Asset {
|
|
15
|
+
constructor(id) {
|
|
16
|
+
super();
|
|
17
|
+
this._memoizedName = new MemoizedString_1.MemoizedString("", this.notify);
|
|
18
|
+
this._memoizedDescription = new MemoizedString_1.MemoizedString("", this.notify);
|
|
19
|
+
this._memoizedArchived = new MemoizedBoolean_1.MemoizedBoolean(false, this.notify);
|
|
20
|
+
this._memoizedFilename = new MemoizedString_1.MemoizedString("", this.notify);
|
|
21
|
+
this._memoizedFileURL = new MemoizedString_1.MemoizedString("", this.notify);
|
|
22
|
+
this._file = undefined;
|
|
23
|
+
this._blobURL = undefined;
|
|
24
|
+
this._linkedAssets = [];
|
|
25
|
+
this._memoizedIsFetchingFile = new MemoizedBoolean_1.MemoizedBoolean(false, this.notify);
|
|
26
|
+
this._fetchError = undefined;
|
|
27
|
+
this.id = id;
|
|
28
|
+
}
|
|
29
|
+
get name() {
|
|
30
|
+
return this._memoizedName.val;
|
|
31
|
+
}
|
|
32
|
+
set name(name) {
|
|
33
|
+
this._memoizedName.val = name;
|
|
34
|
+
}
|
|
35
|
+
get description() {
|
|
36
|
+
return this._memoizedDescription.val;
|
|
37
|
+
}
|
|
38
|
+
set description(description) {
|
|
39
|
+
this._memoizedDescription.val = description;
|
|
40
|
+
}
|
|
41
|
+
get archived() {
|
|
42
|
+
return this._memoizedArchived.val;
|
|
43
|
+
}
|
|
44
|
+
set archived(archived) {
|
|
45
|
+
this._memoizedArchived.val = archived;
|
|
46
|
+
}
|
|
47
|
+
get filename() {
|
|
48
|
+
return this._memoizedFilename.val;
|
|
49
|
+
}
|
|
50
|
+
set filename(name) {
|
|
51
|
+
this._memoizedFilename.val = name;
|
|
52
|
+
}
|
|
53
|
+
get fileURL() {
|
|
54
|
+
return this._memoizedFileURL.val;
|
|
55
|
+
}
|
|
56
|
+
set fileURL(name) {
|
|
57
|
+
this._memoizedFileURL.val = name;
|
|
58
|
+
}
|
|
59
|
+
setFile(file) {
|
|
60
|
+
this._file = file;
|
|
61
|
+
this._blobURL = URL.createObjectURL(file);
|
|
62
|
+
this.notify();
|
|
63
|
+
}
|
|
64
|
+
get file() {
|
|
65
|
+
return this._file;
|
|
66
|
+
}
|
|
67
|
+
get blobURL() {
|
|
68
|
+
return this._blobURL;
|
|
69
|
+
}
|
|
70
|
+
get linkedAssets() {
|
|
71
|
+
return [...this._linkedAssets];
|
|
72
|
+
}
|
|
73
|
+
addLinkedAsset(type, id) {
|
|
74
|
+
const existingAsset = this._linkedAssets.find(asset => {
|
|
75
|
+
return asset.id === id;
|
|
76
|
+
});
|
|
77
|
+
if (existingAsset === undefined) {
|
|
78
|
+
this._linkedAssets.push({
|
|
79
|
+
id,
|
|
80
|
+
type
|
|
81
|
+
});
|
|
82
|
+
this.notify();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
removeLinkedAsset(type, id) {
|
|
86
|
+
let foundAsset = false;
|
|
87
|
+
this._linkedAssets.forEach(asset => {
|
|
88
|
+
if (asset.type === type && asset.id === id) {
|
|
89
|
+
foundAsset = true;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
if (foundAsset) {
|
|
93
|
+
this._linkedAssets = this._linkedAssets.filter(asset => asset.id !== id);
|
|
94
|
+
this.notify();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
getLinkedAssetByType(type) {
|
|
98
|
+
const rVal = [];
|
|
99
|
+
this._linkedAssets.forEach(asset => {
|
|
100
|
+
if (asset.type === type) {
|
|
101
|
+
rVal.push(asset.id);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
return rVal;
|
|
105
|
+
}
|
|
106
|
+
get isFetchingFile() {
|
|
107
|
+
return this._memoizedIsFetchingFile.val;
|
|
108
|
+
}
|
|
109
|
+
set isFetchingFile(archived) {
|
|
110
|
+
this._memoizedIsFetchingFile.val = archived;
|
|
111
|
+
}
|
|
112
|
+
get fetchError() {
|
|
113
|
+
return this._fetchError;
|
|
114
|
+
}
|
|
115
|
+
set fetchError(fetchError) {
|
|
116
|
+
if (fetchError === undefined && this.fetchError === undefined)
|
|
117
|
+
return;
|
|
118
|
+
if (fetchError !== undefined && this.fetchError !== undefined &&
|
|
119
|
+
fetchError.message === this.fetchError.message)
|
|
120
|
+
return;
|
|
121
|
+
this._fetchError = fetchError;
|
|
122
|
+
this.notify();
|
|
123
|
+
}
|
|
124
|
+
dispose() {
|
|
125
|
+
if (this._blobURL !== undefined) {
|
|
126
|
+
URL.revokeObjectURL(this._blobURL);
|
|
127
|
+
this._blobURL = undefined;
|
|
128
|
+
this.notify();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Asset } from "./Asset";
|
|
2
|
+
import { ObservableEntity } from "./ObservableEntity";
|
|
3
|
+
export declare abstract class AssetRepo extends ObservableEntity {
|
|
4
|
+
abstract get assets(): Asset[];
|
|
5
|
+
abstract addAsset(asset: Asset): void;
|
|
6
|
+
abstract removeAsset(id: string): void;
|
|
7
|
+
abstract hasAsset(id: string): boolean;
|
|
8
|
+
abstract getAssetByID(id: string): Asset | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare function makeAssetRepo(): AssetRepo;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeAssetRepo = exports.AssetRepo = void 0;
|
|
4
|
+
const ObservableEntity_1 = require("./ObservableEntity");
|
|
5
|
+
class AssetRepo extends ObservableEntity_1.ObservableEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.AssetRepo = AssetRepo;
|
|
8
|
+
function makeAssetRepo() {
|
|
9
|
+
return new AssetRepoImp();
|
|
10
|
+
}
|
|
11
|
+
exports.makeAssetRepo = makeAssetRepo;
|
|
12
|
+
class AssetRepoImp extends AssetRepo {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this._assets = [];
|
|
16
|
+
}
|
|
17
|
+
get assets() {
|
|
18
|
+
return [...this._assets];
|
|
19
|
+
}
|
|
20
|
+
addAsset(asset) {
|
|
21
|
+
const newAssets = this._assets.filter(existingAsset => existingAsset.id !== asset.id);
|
|
22
|
+
newAssets.push(asset);
|
|
23
|
+
this._assets = [...newAssets];
|
|
24
|
+
this.notify();
|
|
25
|
+
}
|
|
26
|
+
removeAsset(id) {
|
|
27
|
+
let foundAsset = false;
|
|
28
|
+
this._assets.forEach(asset => {
|
|
29
|
+
if (asset.id === id) {
|
|
30
|
+
foundAsset = true;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
if (foundAsset) {
|
|
34
|
+
this._assets = this._assets.filter(asset => asset.id !== id);
|
|
35
|
+
this.notify();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
hasAsset(id) {
|
|
39
|
+
let hasAsset = false;
|
|
40
|
+
this._assets.forEach(asset => {
|
|
41
|
+
if (asset.id === id) {
|
|
42
|
+
hasAsset = true;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
return hasAsset;
|
|
46
|
+
}
|
|
47
|
+
getAssetByID(id) {
|
|
48
|
+
let foundAsset;
|
|
49
|
+
this._assets.forEach(asset => {
|
|
50
|
+
if (asset.id === id) {
|
|
51
|
+
foundAsset = asset;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return foundAsset;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ObservableEntity } from "./ObservableEntity";
|
|
2
|
+
export declare abstract class Auth extends ObservableEntity {
|
|
3
|
+
abstract login(username: string, password: string): Promise<void>;
|
|
4
|
+
abstract logout(): Promise<void>;
|
|
5
|
+
abstract refreshAuthenticatedUser(): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare function makeAuth(): Auth;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeAuth = exports.Auth = void 0;
|
|
4
|
+
const ObservableEntity_1 = require("./ObservableEntity");
|
|
5
|
+
class Auth extends ObservableEntity_1.ObservableEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.Auth = Auth;
|
|
8
|
+
function makeAuth() {
|
|
9
|
+
return new AuthImp();
|
|
10
|
+
}
|
|
11
|
+
exports.makeAuth = makeAuth;
|
|
12
|
+
class AuthImp extends Auth {
|
|
13
|
+
login(username, password) {
|
|
14
|
+
return Promise.reject(this.functionNotInjectedError("login"));
|
|
15
|
+
}
|
|
16
|
+
logout() {
|
|
17
|
+
return Promise.reject(this.functionNotInjectedError("logout"));
|
|
18
|
+
}
|
|
19
|
+
refreshAuthenticatedUser() {
|
|
20
|
+
return Promise.reject(this.functionNotInjectedError("getCurrentAuthenticatedUser"));
|
|
21
|
+
}
|
|
22
|
+
functionNotInjectedError(functionName) {
|
|
23
|
+
return new Error(`Auth function ${functionName} has not been injected`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare type OnChallengeResultsChange = () => void;
|
|
2
|
+
export declare type ChallengeResultType = 'HIT' | 'MULTIHIT' | 'QUALITY' | 'SCORE' | 'PROGRESS';
|
|
3
|
+
export interface ChallengeResult {
|
|
4
|
+
slideID: string;
|
|
5
|
+
tries: number;
|
|
6
|
+
message: string;
|
|
7
|
+
type: ChallengeResultType;
|
|
8
|
+
resultData: ChallengeResultHitData | ChallengeResultMultiHitData | ChallengeResultQualityData | ChallengeResultScoreData | ChallengeResultProgressData;
|
|
9
|
+
}
|
|
10
|
+
export interface ChallengeResultHitData {
|
|
11
|
+
success: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ChallengeResultProgressData {
|
|
14
|
+
maxProgress: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ChallengeResultMultiHitData {
|
|
17
|
+
hits: number;
|
|
18
|
+
misses: number;
|
|
19
|
+
unanswered: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ChallengeResultQualityData {
|
|
22
|
+
stars: number;
|
|
23
|
+
maxStars: number;
|
|
24
|
+
}
|
|
25
|
+
export interface ChallengeResultScoreData {
|
|
26
|
+
score: number;
|
|
27
|
+
maxScore: number;
|
|
28
|
+
}
|
|
29
|
+
export interface ChallengeResults {
|
|
30
|
+
results: ChallengeResult[];
|
|
31
|
+
submitHitResult: (slideID: string, success: boolean, tries: number, message: string) => void;
|
|
32
|
+
submitMultiHitResult: (slideID: string, hits: number, misses: number, unanswered: number, tries: number, message: string) => void;
|
|
33
|
+
submitQualityResult: (slideID: string, stars: number, maxStars: number, tries: number, message: string) => void;
|
|
34
|
+
submitScoreResult: (slideID: string, score: number, maxScore: number, tries: number, message: string) => void;
|
|
35
|
+
submitProgressResult: (slideID: string, maxProgress: number, message: string) => void;
|
|
36
|
+
getResultForSlide: (slideID: string) => ChallengeResult | undefined;
|
|
37
|
+
addObserver: (observer: OnChallengeResultsChange) => void;
|
|
38
|
+
removeObserver: (observer: OnChallengeResultsChange) => void;
|
|
39
|
+
}
|
|
40
|
+
export declare function makeChallengeResults(): ChallengeResults;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeChallengeResults = void 0;
|
|
4
|
+
const ObserverList_1 = require("./ObserverList");
|
|
5
|
+
function makeChallengeResults() {
|
|
6
|
+
return new ChallengeResultsImp();
|
|
7
|
+
}
|
|
8
|
+
exports.makeChallengeResults = makeChallengeResults;
|
|
9
|
+
class ChallengeResultsImp {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.observers = new ObserverList_1.ObserverList();
|
|
12
|
+
this.resultLookup = new Map();
|
|
13
|
+
this.submitHitResult = (slideID, success, tries, message) => {
|
|
14
|
+
const resultData = {
|
|
15
|
+
success,
|
|
16
|
+
};
|
|
17
|
+
const result = {
|
|
18
|
+
slideID,
|
|
19
|
+
message,
|
|
20
|
+
resultData,
|
|
21
|
+
tries,
|
|
22
|
+
type: 'HIT',
|
|
23
|
+
};
|
|
24
|
+
this.resultLookup.set(slideID, result);
|
|
25
|
+
this.observers.notify();
|
|
26
|
+
};
|
|
27
|
+
this.submitMultiHitResult = (slideID, hits, misses, unanswered, tries, message) => {
|
|
28
|
+
const resultData = {
|
|
29
|
+
hits,
|
|
30
|
+
misses,
|
|
31
|
+
unanswered,
|
|
32
|
+
};
|
|
33
|
+
const result = {
|
|
34
|
+
slideID,
|
|
35
|
+
message,
|
|
36
|
+
resultData,
|
|
37
|
+
tries,
|
|
38
|
+
type: 'MULTIHIT',
|
|
39
|
+
};
|
|
40
|
+
this.resultLookup.set(slideID, result);
|
|
41
|
+
this.observers.notify();
|
|
42
|
+
};
|
|
43
|
+
this.submitQualityResult = (slideID, stars, maxStars, tries, message) => {
|
|
44
|
+
const resultData = {
|
|
45
|
+
stars,
|
|
46
|
+
maxStars,
|
|
47
|
+
};
|
|
48
|
+
const result = {
|
|
49
|
+
slideID,
|
|
50
|
+
message,
|
|
51
|
+
resultData,
|
|
52
|
+
tries,
|
|
53
|
+
type: 'QUALITY',
|
|
54
|
+
};
|
|
55
|
+
this.resultLookup.set(slideID, result);
|
|
56
|
+
this.observers.notify();
|
|
57
|
+
};
|
|
58
|
+
this.submitScoreResult = (slideID, score, maxScore, tries, message) => {
|
|
59
|
+
const resultData = {
|
|
60
|
+
score,
|
|
61
|
+
maxScore,
|
|
62
|
+
};
|
|
63
|
+
const result = {
|
|
64
|
+
slideID,
|
|
65
|
+
message,
|
|
66
|
+
resultData,
|
|
67
|
+
tries,
|
|
68
|
+
type: 'SCORE',
|
|
69
|
+
};
|
|
70
|
+
this.resultLookup.set(slideID, result);
|
|
71
|
+
this.observers.notify();
|
|
72
|
+
};
|
|
73
|
+
this.getResultForSlide = (slideID) => {
|
|
74
|
+
return this.resultLookup.get(slideID);
|
|
75
|
+
};
|
|
76
|
+
this.submitProgressResult = (slideID, maxProgress, message) => {
|
|
77
|
+
const currentResult = this.getResultForSlide(slideID);
|
|
78
|
+
if (currentResult && currentResult.resultData.maxProgress > maxProgress) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const resultData = {
|
|
82
|
+
maxProgress,
|
|
83
|
+
};
|
|
84
|
+
const result = {
|
|
85
|
+
slideID,
|
|
86
|
+
message,
|
|
87
|
+
resultData,
|
|
88
|
+
tries: 1,
|
|
89
|
+
type: 'PROGRESS',
|
|
90
|
+
};
|
|
91
|
+
this.resultLookup.set(slideID, result);
|
|
92
|
+
this.observers.notify();
|
|
93
|
+
};
|
|
94
|
+
this.addObserver = (observer) => {
|
|
95
|
+
this.observers.add(observer);
|
|
96
|
+
};
|
|
97
|
+
this.removeObserver = (observer) => {
|
|
98
|
+
this.observers.remove(observer);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
get results() {
|
|
102
|
+
return Array.from(this.resultLookup.values());
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare type OnDevicePreviewChange = () => void;
|
|
2
|
+
export interface DeviceInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
pixelDensity: number;
|
|
8
|
+
category: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DevicePreview {
|
|
11
|
+
deviceList: DeviceInfo[];
|
|
12
|
+
selectedDevice?: DeviceInfo;
|
|
13
|
+
setSelectedDevice(id: string): void;
|
|
14
|
+
clearSelectedDevice(): void;
|
|
15
|
+
getCategoryList(): string[];
|
|
16
|
+
getDevicesInCategory(categoryName: string): DeviceInfo[];
|
|
17
|
+
addObserver(observer: OnDevicePreviewChange): void;
|
|
18
|
+
removeObserver(observer: OnDevicePreviewChange): void;
|
|
19
|
+
}
|
|
20
|
+
export declare function makeDevicePreview(): DevicePreview;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeDevicePreview = void 0;
|
|
4
|
+
const ObserverList_1 = require("./ObserverList");
|
|
5
|
+
function makeDevicePreview() {
|
|
6
|
+
return new DevicePreviewImp();
|
|
7
|
+
}
|
|
8
|
+
exports.makeDevicePreview = makeDevicePreview;
|
|
9
|
+
class DevicePreviewImp {
|
|
10
|
+
constructor() {
|
|
11
|
+
this._deviceLookup = new Map();
|
|
12
|
+
this.observers = new ObserverList_1.ObserverList();
|
|
13
|
+
this.setSelectedDevice = (id) => {
|
|
14
|
+
var _a;
|
|
15
|
+
const device = this._deviceLookup.get(id);
|
|
16
|
+
if (!device) {
|
|
17
|
+
console.warn(`[DevicePreview] Unable to find device by id ${id}`);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (((_a = this._selectedDevice) === null || _a === void 0 ? void 0 : _a.id) === device.id)
|
|
21
|
+
return;
|
|
22
|
+
this._selectedDevice = device;
|
|
23
|
+
this.observers.notify();
|
|
24
|
+
};
|
|
25
|
+
this.clearSelectedDevice = () => {
|
|
26
|
+
if (this._selectedDevice === undefined)
|
|
27
|
+
return;
|
|
28
|
+
this._selectedDevice = undefined;
|
|
29
|
+
this.observers.notify();
|
|
30
|
+
};
|
|
31
|
+
this.getCategoryList = () => {
|
|
32
|
+
const categories = [];
|
|
33
|
+
this._deviceLookup.forEach((device) => {
|
|
34
|
+
if (!categories.includes(device.category)) {
|
|
35
|
+
categories.push(device.category);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return categories;
|
|
39
|
+
};
|
|
40
|
+
this.getDevicesInCategory = (categoryName) => {
|
|
41
|
+
const devices = [];
|
|
42
|
+
this._deviceLookup.forEach((device) => {
|
|
43
|
+
if (device.category === categoryName) {
|
|
44
|
+
devices.push(device);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return devices;
|
|
48
|
+
};
|
|
49
|
+
this.addObserver = (observer) => {
|
|
50
|
+
this.observers.add(observer);
|
|
51
|
+
};
|
|
52
|
+
this.removeObserver = (observer) => {
|
|
53
|
+
this.observers.remove(observer);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
get deviceList() {
|
|
57
|
+
return Array.from(this._deviceLookup.values());
|
|
58
|
+
}
|
|
59
|
+
set deviceList(list) {
|
|
60
|
+
this._deviceLookup.clear();
|
|
61
|
+
list.forEach((device) => this._deviceLookup.set(device.id, device));
|
|
62
|
+
this.observers.notify();
|
|
63
|
+
}
|
|
64
|
+
get selectedDevice() {
|
|
65
|
+
return this._selectedDevice;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DialogBase } from "./DialogBase";
|
|
2
|
+
export interface DialogAlertDTO {
|
|
3
|
+
message: string;
|
|
4
|
+
title: string;
|
|
5
|
+
buttonLabel: string;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
preventOutsideDismiss?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const alertDialogType = "ALERT";
|
|
10
|
+
export declare class DialogAlert extends DialogBase {
|
|
11
|
+
readonly type = "ALERT";
|
|
12
|
+
readonly title: string;
|
|
13
|
+
readonly message: string;
|
|
14
|
+
readonly buttonLabel: string;
|
|
15
|
+
private postClose?;
|
|
16
|
+
close: () => void;
|
|
17
|
+
constructor(data: DialogAlertDTO);
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DialogAlert = exports.alertDialogType = void 0;
|
|
4
|
+
const DialogBase_1 = require("./DialogBase");
|
|
5
|
+
exports.alertDialogType = "ALERT";
|
|
6
|
+
class DialogAlert extends DialogBase_1.DialogBase {
|
|
7
|
+
constructor(data) {
|
|
8
|
+
super(exports.alertDialogType);
|
|
9
|
+
this.type = exports.alertDialogType;
|
|
10
|
+
this.close = () => {
|
|
11
|
+
this.isOpen = false;
|
|
12
|
+
if (this.postClose) {
|
|
13
|
+
this.postClose();
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
this.buttonLabel = data.buttonLabel;
|
|
17
|
+
this.message = data.message;
|
|
18
|
+
this.title = data.title;
|
|
19
|
+
this.postClose = data.onClose;
|
|
20
|
+
if (data.preventOutsideDismiss !== undefined) {
|
|
21
|
+
this.preventOutsideDismiss = data.preventOutsideDismiss;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.DialogAlert = DialogAlert;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MemoizedBoolean } from "./MemoizedBoolean";
|
|
2
|
+
import { ObservableEntity } from "./ObservableEntity";
|
|
3
|
+
export declare class DialogBase extends ObservableEntity {
|
|
4
|
+
readonly type: string;
|
|
5
|
+
preventOutsideDismiss: boolean;
|
|
6
|
+
protected memoizedOpen: MemoizedBoolean;
|
|
7
|
+
get isOpen(): boolean;
|
|
8
|
+
set isOpen(open: boolean);
|
|
9
|
+
constructor(type: string);
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DialogBase = void 0;
|
|
4
|
+
const MemoizedBoolean_1 = require("./MemoizedBoolean");
|
|
5
|
+
const ObservableEntity_1 = require("./ObservableEntity");
|
|
6
|
+
class DialogBase extends ObservableEntity_1.ObservableEntity {
|
|
7
|
+
constructor(type) {
|
|
8
|
+
super();
|
|
9
|
+
this.preventOutsideDismiss = true;
|
|
10
|
+
this.memoizedOpen = new MemoizedBoolean_1.MemoizedBoolean(false, this.notify);
|
|
11
|
+
this.type = type;
|
|
12
|
+
}
|
|
13
|
+
get isOpen() {
|
|
14
|
+
return this.memoizedOpen.val;
|
|
15
|
+
}
|
|
16
|
+
set isOpen(open) {
|
|
17
|
+
this.memoizedOpen.val = open;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.DialogBase = DialogBase;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DialogBase } from "./DialogBase";
|
|
2
|
+
export interface DialogConfirmDTO {
|
|
3
|
+
message: string;
|
|
4
|
+
title: string;
|
|
5
|
+
confirmButtonLabel: string;
|
|
6
|
+
cancelButtonLabel: string;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
onConfirm?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const confirmDialogType = "CONFIRM";
|
|
11
|
+
export declare class DialogConfirm extends DialogBase {
|
|
12
|
+
readonly type = "CONFIRM";
|
|
13
|
+
readonly title: string;
|
|
14
|
+
readonly message: string;
|
|
15
|
+
readonly confirmButtonLabel: string;
|
|
16
|
+
readonly cancelButtonLabel: string;
|
|
17
|
+
private postCancel?;
|
|
18
|
+
cancel: () => void;
|
|
19
|
+
private postConfirm?;
|
|
20
|
+
confirm: () => void;
|
|
21
|
+
constructor(data: DialogConfirmDTO);
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DialogConfirm = exports.confirmDialogType = void 0;
|
|
4
|
+
const DialogBase_1 = require("./DialogBase");
|
|
5
|
+
exports.confirmDialogType = "CONFIRM";
|
|
6
|
+
class DialogConfirm extends DialogBase_1.DialogBase {
|
|
7
|
+
constructor(data) {
|
|
8
|
+
super(exports.confirmDialogType);
|
|
9
|
+
this.type = exports.confirmDialogType;
|
|
10
|
+
this.cancel = () => {
|
|
11
|
+
this.isOpen = false;
|
|
12
|
+
if (this.postCancel) {
|
|
13
|
+
this.postCancel();
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
this.confirm = () => {
|
|
17
|
+
this.isOpen = false;
|
|
18
|
+
if (this.postConfirm) {
|
|
19
|
+
this.postConfirm();
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
this.confirmButtonLabel = data.confirmButtonLabel;
|
|
23
|
+
this.cancelButtonLabel = data.cancelButtonLabel;
|
|
24
|
+
this.message = data.message;
|
|
25
|
+
this.title = data.title;
|
|
26
|
+
this.postCancel = data.onCancel;
|
|
27
|
+
this.postConfirm = data.onConfirm;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.DialogConfirm = DialogConfirm;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DialogBase } from './DialogBase';
|
|
2
|
+
export interface DialogMarkDownEditorDTO {
|
|
3
|
+
initialText: string;
|
|
4
|
+
onConfirm: (text: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const markDownEditorDialogType = "MARKDOWN_EDITOR";
|
|
7
|
+
export declare class DialogMarkDownEditor extends DialogBase {
|
|
8
|
+
readonly type = "MARKDOWN_EDITOR";
|
|
9
|
+
readonly initialText: string;
|
|
10
|
+
cancel: () => void;
|
|
11
|
+
private postConfirm;
|
|
12
|
+
confirm: (text: string) => void;
|
|
13
|
+
constructor(data: DialogMarkDownEditorDTO);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DialogMarkDownEditor = exports.markDownEditorDialogType = void 0;
|
|
4
|
+
const DialogBase_1 = require("./DialogBase");
|
|
5
|
+
exports.markDownEditorDialogType = 'MARKDOWN_EDITOR';
|
|
6
|
+
class DialogMarkDownEditor extends DialogBase_1.DialogBase {
|
|
7
|
+
constructor(data) {
|
|
8
|
+
super(exports.markDownEditorDialogType);
|
|
9
|
+
this.type = exports.markDownEditorDialogType;
|
|
10
|
+
this.cancel = () => {
|
|
11
|
+
this.isOpen = false;
|
|
12
|
+
};
|
|
13
|
+
this.confirm = (text) => {
|
|
14
|
+
this.isOpen = false;
|
|
15
|
+
this.postConfirm(text);
|
|
16
|
+
};
|
|
17
|
+
this.initialText = data.initialText;
|
|
18
|
+
this.postConfirm = data.onConfirm;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.DialogMarkDownEditor = DialogMarkDownEditor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DialogBase } from "./DialogBase";
|
|
2
|
+
import { ObservableEntity } from "./ObservableEntity";
|
|
3
|
+
export declare abstract class DialogRepo extends ObservableEntity {
|
|
4
|
+
abstract get activeDialog(): DialogBase | null;
|
|
5
|
+
abstract submitDialog(dialog: DialogBase): void;
|
|
6
|
+
abstract activeDialogHasClosed(): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function makeDialogRepo(): DialogRepo;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeDialogRepo = exports.DialogRepo = void 0;
|
|
4
|
+
const ObservableEntity_1 = require("./ObservableEntity");
|
|
5
|
+
class DialogRepo extends ObservableEntity_1.ObservableEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.DialogRepo = DialogRepo;
|
|
8
|
+
function makeDialogRepo() {
|
|
9
|
+
return new DialogRepoImp();
|
|
10
|
+
}
|
|
11
|
+
exports.makeDialogRepo = makeDialogRepo;
|
|
12
|
+
class DialogRepoImp extends DialogRepo {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.dialogQueue = [];
|
|
16
|
+
}
|
|
17
|
+
get activeDialog() {
|
|
18
|
+
return this.dialogQueue.length > 0 ? this.dialogQueue[0] : null;
|
|
19
|
+
}
|
|
20
|
+
submitDialog(dialog) {
|
|
21
|
+
this.dialogQueue.push(dialog);
|
|
22
|
+
if (this.activeDialog === dialog) {
|
|
23
|
+
dialog.isOpen = true;
|
|
24
|
+
}
|
|
25
|
+
this.notify();
|
|
26
|
+
}
|
|
27
|
+
activeDialogHasClosed() {
|
|
28
|
+
const activeDialog = this.activeDialog;
|
|
29
|
+
if (activeDialog !== null) {
|
|
30
|
+
this.dialogQueue.splice(0, 1);
|
|
31
|
+
const newActiveDialog = this.activeDialog;
|
|
32
|
+
if (newActiveDialog !== null) {
|
|
33
|
+
newActiveDialog.isOpen = true;
|
|
34
|
+
}
|
|
35
|
+
this.notify();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|