@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,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObserverList = void 0;
|
|
4
|
+
class ObserverList {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.observers = [];
|
|
7
|
+
this.notify = (msg) => {
|
|
8
|
+
this.observers.forEach((obs) => {
|
|
9
|
+
obs(msg);
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
this.add = (obs) => {
|
|
13
|
+
this.observers.push(obs);
|
|
14
|
+
};
|
|
15
|
+
this.remove = (obs) => {
|
|
16
|
+
const index = this.observers.indexOf(obs);
|
|
17
|
+
if (index >= 0) {
|
|
18
|
+
this.observers.splice(index, 1);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
this.clear = () => {
|
|
22
|
+
this.observers = [];
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.ObserverList = ObserverList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Result } from '../ValueObjects/Result';
|
|
2
|
+
export interface Snackbar {
|
|
3
|
+
message: string;
|
|
4
|
+
durationInSeconds: number;
|
|
5
|
+
snackbarAction?: SnackbarAction;
|
|
6
|
+
}
|
|
7
|
+
export interface SnackbarAction {
|
|
8
|
+
actionButtonText: string;
|
|
9
|
+
action: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare type SnackbarObserver = (snackbar: Snackbar | undefined) => void;
|
|
12
|
+
export interface SnackbarRepo {
|
|
13
|
+
makeSnackbar: (message: string, snackbarAction?: SnackbarAction, durationInSeconds?: number) => Result<null, Error>;
|
|
14
|
+
getCurrentSnackbar: () => Snackbar | undefined;
|
|
15
|
+
dismissActiveSnackbar: () => void;
|
|
16
|
+
callActiveSnackbarAction: () => void;
|
|
17
|
+
addObserver: (observer: SnackbarObserver) => void;
|
|
18
|
+
removeObserver: (observer: SnackbarObserver) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function makeSnackbarRepo(): SnackbarRepo;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.makeSnackbarRepo = void 0;
|
|
13
|
+
const Result_1 = require("../ValueObjects/Result");
|
|
14
|
+
const ObserverList_1 = require("./ObserverList");
|
|
15
|
+
function makeSnackbarRepo() {
|
|
16
|
+
return new SnackbarRepoImp();
|
|
17
|
+
}
|
|
18
|
+
exports.makeSnackbarRepo = makeSnackbarRepo;
|
|
19
|
+
class SnackbarRepoImp {
|
|
20
|
+
constructor(defaultDurationInSeconds = 4) {
|
|
21
|
+
this.monitoringSnackbarTime = false;
|
|
22
|
+
this.observers = new ObserverList_1.ObserverList();
|
|
23
|
+
this.makeSnackbar = (message, snackbarAction, durationInSeconds) => {
|
|
24
|
+
if (message.trim().length === 0) {
|
|
25
|
+
const err = new Error('Snackbar must have a message');
|
|
26
|
+
return Result_1.reject(err);
|
|
27
|
+
}
|
|
28
|
+
if (snackbarAction && snackbarAction.actionButtonText.trim().length === 0) {
|
|
29
|
+
const err = new Error('If a Snackbar has an action then the action button text cannot be empty');
|
|
30
|
+
return Result_1.reject(err);
|
|
31
|
+
}
|
|
32
|
+
const duration = durationInSeconds !== null && durationInSeconds !== void 0 ? durationInSeconds : this.defaultDurationInSeconds;
|
|
33
|
+
if (duration <= 0) {
|
|
34
|
+
const err = new Error(`${duration} is an invalid duration for a Snackbar`);
|
|
35
|
+
return Result_1.reject(err);
|
|
36
|
+
}
|
|
37
|
+
const snackbar = {
|
|
38
|
+
message,
|
|
39
|
+
durationInSeconds: duration,
|
|
40
|
+
snackbarAction,
|
|
41
|
+
};
|
|
42
|
+
this.snackbarQueue.push(snackbar);
|
|
43
|
+
this.observers.notify(this.getCurrentSnackbar());
|
|
44
|
+
this.monitorSnackbarTime();
|
|
45
|
+
return Result_1.resolve(null);
|
|
46
|
+
};
|
|
47
|
+
this.getCurrentSnackbar = () => {
|
|
48
|
+
return this.snackbarQueue.length > 0 ? this.snackbarQueue[0] : undefined;
|
|
49
|
+
};
|
|
50
|
+
this.dismissActiveSnackbar = () => {
|
|
51
|
+
if (this.snackbarQueue.length > 0) {
|
|
52
|
+
this.snackbarQueue.splice(0, 1);
|
|
53
|
+
this.observers.notify(this.getCurrentSnackbar());
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.callActiveSnackbarAction = () => {
|
|
57
|
+
const currentSnackbar = this.getCurrentSnackbar();
|
|
58
|
+
if (currentSnackbar) {
|
|
59
|
+
if (currentSnackbar.snackbarAction) {
|
|
60
|
+
currentSnackbar.snackbarAction.action();
|
|
61
|
+
this.dismissActiveSnackbar();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
this.addObserver = (observer) => {
|
|
66
|
+
this.observers.add(observer);
|
|
67
|
+
};
|
|
68
|
+
this.removeObserver = (observer) => {
|
|
69
|
+
this.observers.remove(observer);
|
|
70
|
+
};
|
|
71
|
+
this.snackbarQueue = [];
|
|
72
|
+
this.defaultDurationInSeconds = defaultDurationInSeconds;
|
|
73
|
+
}
|
|
74
|
+
monitorSnackbarTime() {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (this.monitoringSnackbarTime) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const loopFrequencyInSeconds = 0.1;
|
|
80
|
+
this.monitoringSnackbarTime = true;
|
|
81
|
+
while (this.snackbarQueue.length > 0) {
|
|
82
|
+
const currentSnackbar = this.getCurrentSnackbar();
|
|
83
|
+
if (currentSnackbar) {
|
|
84
|
+
let currentTimeout = currentSnackbar.durationInSeconds;
|
|
85
|
+
while (this.getCurrentSnackbar() === currentSnackbar && currentTimeout > 0) {
|
|
86
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
87
|
+
yield new Promise((resolve) => setTimeout(resolve, loopFrequencyInSeconds * 1000));
|
|
88
|
+
currentTimeout -= loopFrequencyInSeconds;
|
|
89
|
+
}
|
|
90
|
+
if (this.getCurrentSnackbar() === currentSnackbar && currentTimeout <= 0) {
|
|
91
|
+
this.dismissActiveSnackbar();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
this.monitoringSnackbarTime = false;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ObservableEntity } from './ObservableEntity';
|
|
2
|
+
export interface AssetDTO {
|
|
3
|
+
id: string;
|
|
4
|
+
ownerId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
archived: boolean;
|
|
8
|
+
filename: string;
|
|
9
|
+
fileURL: string;
|
|
10
|
+
linkedAssets: {
|
|
11
|
+
type: string;
|
|
12
|
+
asset: AssetDTO;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export interface NewAssetDTO {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
ownerID: string;
|
|
19
|
+
file: File;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateAssetDTO {
|
|
22
|
+
id: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
archived?: boolean;
|
|
26
|
+
file?: File;
|
|
27
|
+
}
|
|
28
|
+
export interface AppDTO {
|
|
29
|
+
interfaceVersion: string;
|
|
30
|
+
assetFolderURL: string;
|
|
31
|
+
entrypoints: string[];
|
|
32
|
+
}
|
|
33
|
+
export declare abstract class VivedAPI extends ObservableEntity {
|
|
34
|
+
abstract baseUrl: string;
|
|
35
|
+
abstract get userAuthToken(): string | undefined;
|
|
36
|
+
abstract set userAuthToken(token: string | undefined);
|
|
37
|
+
abstract clearAuthToken(): void;
|
|
38
|
+
abstract getEndpointURL(endpoint: string): URL;
|
|
39
|
+
abstract fetchAssetFile: (assetID: string) => Promise<File>;
|
|
40
|
+
abstract fetchAssetMeta: (assetID: string) => Promise<AssetDTO>;
|
|
41
|
+
abstract fetchAssetsForOwner: (ownerID: string) => Promise<AssetDTO[]>;
|
|
42
|
+
abstract setAssetArchived: (assetID: string, archived: boolean) => Promise<void>;
|
|
43
|
+
abstract postAssetMeta: (data: AssetDTO) => Promise<void>;
|
|
44
|
+
abstract createNewAsset: (data: NewAssetDTO) => Promise<string>;
|
|
45
|
+
abstract postAssetFile: (assetID: string, file: File) => Promise<void>;
|
|
46
|
+
abstract deleteAsset: (assetID: string) => Promise<string>;
|
|
47
|
+
abstract fetchApp(appID: string, version: string): Promise<AppDTO>;
|
|
48
|
+
abstract updateAsset(data: UpdateAssetDTO): Promise<string>;
|
|
49
|
+
}
|
|
50
|
+
export declare function makeVivedAPI(): VivedAPI;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeVivedAPI = exports.VivedAPI = void 0;
|
|
4
|
+
const ObservableEntity_1 = require("./ObservableEntity");
|
|
5
|
+
class VivedAPI extends ObservableEntity_1.ObservableEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.VivedAPI = VivedAPI;
|
|
8
|
+
function makeVivedAPI() {
|
|
9
|
+
return new VivedAPIImp();
|
|
10
|
+
}
|
|
11
|
+
exports.makeVivedAPI = makeVivedAPI;
|
|
12
|
+
class VivedAPIImp extends VivedAPI {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.baseUrl = 'https://api.vivedlearning.com';
|
|
16
|
+
this.getEndpointURL = (endpoint) => {
|
|
17
|
+
return new URL(endpoint, this.baseUrl);
|
|
18
|
+
};
|
|
19
|
+
this._userAuthToken = undefined;
|
|
20
|
+
this.clearAuthToken = () => {
|
|
21
|
+
if (this._userAuthToken === undefined)
|
|
22
|
+
return;
|
|
23
|
+
this._userAuthToken = undefined;
|
|
24
|
+
this.notify();
|
|
25
|
+
};
|
|
26
|
+
this.fetchAssetFile = ( /*assetId: string*/) => {
|
|
27
|
+
return Promise.reject(this.functionNotInjectedError('fetchAssetFile'));
|
|
28
|
+
};
|
|
29
|
+
this.fetchAssetMeta = ( /*assetID: string*/) => {
|
|
30
|
+
return Promise.reject(this.functionNotInjectedError('fetchAssetMeta'));
|
|
31
|
+
};
|
|
32
|
+
this.fetchAssetsForOwner = (ownerID) => {
|
|
33
|
+
return Promise.reject(this.functionNotInjectedError('fetchAssetsForOwner'));
|
|
34
|
+
};
|
|
35
|
+
this.setAssetArchived = (assetID, archived) => {
|
|
36
|
+
return Promise.reject(this.functionNotInjectedError('setAssetArchived'));
|
|
37
|
+
};
|
|
38
|
+
this.postAssetMeta = (data) => {
|
|
39
|
+
return Promise.reject(this.functionNotInjectedError('postAssetMeta'));
|
|
40
|
+
};
|
|
41
|
+
this.createNewAsset = (data) => {
|
|
42
|
+
return Promise.reject(this.functionNotInjectedError('createNewAsset'));
|
|
43
|
+
};
|
|
44
|
+
this.postAssetFile = (assetID, file) => {
|
|
45
|
+
return Promise.reject(this.functionNotInjectedError('postAssetFile'));
|
|
46
|
+
};
|
|
47
|
+
this.deleteAsset = (assetID) => {
|
|
48
|
+
return Promise.reject(this.functionNotInjectedError('deleteAsset'));
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
get userAuthToken() {
|
|
52
|
+
return this._userAuthToken;
|
|
53
|
+
}
|
|
54
|
+
set userAuthToken(token) {
|
|
55
|
+
if (token === this._userAuthToken)
|
|
56
|
+
return;
|
|
57
|
+
this._userAuthToken = token;
|
|
58
|
+
this.notify();
|
|
59
|
+
}
|
|
60
|
+
fetchApp(appID, version) {
|
|
61
|
+
return Promise.reject(this.functionNotInjectedError('fetchApp'));
|
|
62
|
+
}
|
|
63
|
+
updateAsset(data) {
|
|
64
|
+
return Promise.reject(this.functionNotInjectedError('updateAsset'));
|
|
65
|
+
}
|
|
66
|
+
functionNotInjectedError(functionName) {
|
|
67
|
+
return new Error(`API function ${functionName} has not been injected`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './Auth';
|
|
2
|
+
export * from './ChallengeResults';
|
|
3
|
+
export * from './Logger';
|
|
4
|
+
export * from './MemoizedBoolean';
|
|
5
|
+
export * from './MemoizedNumber';
|
|
6
|
+
export * from './MemoizedString';
|
|
7
|
+
export * from './ObservableEntity';
|
|
8
|
+
export * from './ObserverList';
|
|
9
|
+
export * from './SnackbarRepo';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./Auth"), exports);
|
|
14
|
+
__exportStar(require("./ChallengeResults"), exports);
|
|
15
|
+
__exportStar(require("./Logger"), exports);
|
|
16
|
+
__exportStar(require("./MemoizedBoolean"), exports);
|
|
17
|
+
__exportStar(require("./MemoizedNumber"), exports);
|
|
18
|
+
__exportStar(require("./MemoizedString"), exports);
|
|
19
|
+
__exportStar(require("./ObservableEntity"), exports);
|
|
20
|
+
__exportStar(require("./ObserverList"), exports);
|
|
21
|
+
__exportStar(require("./SnackbarRepo"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ObservableEntity } from '../Entities';
|
|
2
|
+
import { HostAppObjectComponent } from './HostAppObjectComponent';
|
|
3
|
+
import { HostAppObjectRepo } from './HostAppObjectRepo';
|
|
4
|
+
export declare abstract class HostAppObject extends ObservableEntity {
|
|
5
|
+
abstract readonly id: string;
|
|
6
|
+
abstract readonly appObjectRepo: HostAppObjectRepo;
|
|
7
|
+
abstract hasComponent(type: string): boolean;
|
|
8
|
+
abstract addComponent(component: HostAppObjectComponent): void;
|
|
9
|
+
abstract getComponent<T extends HostAppObjectComponent>(type: string): T | undefined;
|
|
10
|
+
abstract removeComponent(type: string): void;
|
|
11
|
+
abstract allComponents(): HostAppObjectComponent[];
|
|
12
|
+
abstract dispose(): void;
|
|
13
|
+
}
|
|
14
|
+
export declare function makeAppObject(id: string, repo: HostAppObjectRepo): HostAppObject;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeAppObject = exports.HostAppObject = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
class HostAppObject extends Entities_1.ObservableEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.HostAppObject = HostAppObject;
|
|
8
|
+
function makeAppObject(id, repo) {
|
|
9
|
+
return new AppObjectImp(id, repo);
|
|
10
|
+
}
|
|
11
|
+
exports.makeAppObject = makeAppObject;
|
|
12
|
+
class AppObjectImp extends HostAppObject {
|
|
13
|
+
constructor(id, repo) {
|
|
14
|
+
super();
|
|
15
|
+
this.componentLookup = new Map();
|
|
16
|
+
this.dispose = () => {
|
|
17
|
+
const components = Array.from(this.componentLookup.values());
|
|
18
|
+
this.componentLookup.clear();
|
|
19
|
+
components.forEach((c) => c.dispose());
|
|
20
|
+
if (this.appObjectRepo.has(this.id)) {
|
|
21
|
+
this.appObjectRepo.remove(this.id);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.id = id;
|
|
25
|
+
this.appObjectRepo = repo;
|
|
26
|
+
this.appObjectRepo.add(this);
|
|
27
|
+
}
|
|
28
|
+
hasComponent(type) {
|
|
29
|
+
return this.componentLookup.has(type);
|
|
30
|
+
}
|
|
31
|
+
addComponent(component) {
|
|
32
|
+
const currentComponent = this.componentLookup.get(component.type);
|
|
33
|
+
if (currentComponent) {
|
|
34
|
+
console.warn(`[AppObject] Component ${component.type} is being replaced on ${this.id}`);
|
|
35
|
+
currentComponent.dispose();
|
|
36
|
+
}
|
|
37
|
+
this.componentLookup.set(component.type, component);
|
|
38
|
+
this.notify();
|
|
39
|
+
}
|
|
40
|
+
getComponent(type) {
|
|
41
|
+
if (this.componentLookup.has(type)) {
|
|
42
|
+
return this.componentLookup.get(type);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
removeComponent(type) {
|
|
49
|
+
const component = this.componentLookup.get(type);
|
|
50
|
+
if (!component)
|
|
51
|
+
return;
|
|
52
|
+
this.componentLookup.delete(type);
|
|
53
|
+
this.notify();
|
|
54
|
+
}
|
|
55
|
+
allComponents() {
|
|
56
|
+
return Array.from(this.componentLookup.values());
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HostAppObject } from './HostAppObject';
|
|
2
|
+
import { HostAppObjectRepo } from './HostAppObjectRepo';
|
|
3
|
+
export declare class HostAppObjectComponent {
|
|
4
|
+
readonly type: string;
|
|
5
|
+
readonly appObject: HostAppObject;
|
|
6
|
+
get appObjects(): HostAppObjectRepo;
|
|
7
|
+
private cachedComponents;
|
|
8
|
+
getCachedSingleton<T extends HostAppObjectComponent>(type: string): T | undefined;
|
|
9
|
+
getCachedLocalComponent<T extends HostAppObjectComponent>(type: string): T | undefined;
|
|
10
|
+
getSingleton<T extends HostAppObjectComponent>(type: string, logType?: 'LOG' | 'WARN' | 'ERROR'): T | undefined;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
log(message: string): void;
|
|
13
|
+
warn(message: string): void;
|
|
14
|
+
error(message: string): void;
|
|
15
|
+
constructor(appObject: HostAppObject, type: string);
|
|
16
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HostAppObjectComponent = void 0;
|
|
4
|
+
class HostAppObjectComponent {
|
|
5
|
+
constructor(appObject, type) {
|
|
6
|
+
this.cachedComponents = new Map();
|
|
7
|
+
this.appObject = appObject;
|
|
8
|
+
this.type = type;
|
|
9
|
+
appObject.addComponent(this);
|
|
10
|
+
}
|
|
11
|
+
get appObjects() {
|
|
12
|
+
return this.appObject.appObjectRepo;
|
|
13
|
+
}
|
|
14
|
+
getCachedSingleton(type) {
|
|
15
|
+
if (!this.cachedComponents.has(type)) {
|
|
16
|
+
const component = this.appObjects.getSingleton(type);
|
|
17
|
+
if (!component) {
|
|
18
|
+
this.warn('Unable to get cached singleton type ' + type);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this.cachedComponents.set(type, component);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return this.cachedComponents.get(type);
|
|
25
|
+
}
|
|
26
|
+
getCachedLocalComponent(type) {
|
|
27
|
+
if (!this.cachedComponents.has(type)) {
|
|
28
|
+
const component = this.appObject.getComponent(type);
|
|
29
|
+
if (!component) {
|
|
30
|
+
this.warn('Unable to get local component of type ' + type);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.cachedComponents.set(type, component);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return this.cachedComponents.get(type);
|
|
37
|
+
}
|
|
38
|
+
getSingleton(type, logType = 'WARN') {
|
|
39
|
+
const comp = this.appObjects.getSingleton(type);
|
|
40
|
+
if (!comp) {
|
|
41
|
+
const msg = 'Unable to get singleton type ' + type;
|
|
42
|
+
switch (logType) {
|
|
43
|
+
case 'ERROR':
|
|
44
|
+
this.error(msg);
|
|
45
|
+
break;
|
|
46
|
+
case 'LOG':
|
|
47
|
+
this.log(msg);
|
|
48
|
+
break;
|
|
49
|
+
case 'WARN':
|
|
50
|
+
this.warn(msg);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return comp;
|
|
55
|
+
}
|
|
56
|
+
dispose() {
|
|
57
|
+
if (this.appObject.getComponent(this.type) === this) {
|
|
58
|
+
this.appObject.removeComponent(this.type);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
log(message) {
|
|
62
|
+
this.appObjects.submitLog(`${this.appObject.id}/${this.type}`, message);
|
|
63
|
+
}
|
|
64
|
+
warn(message) {
|
|
65
|
+
this.appObjects.submitWarning(`${this.appObject.id}/${this.type}`, message);
|
|
66
|
+
}
|
|
67
|
+
error(message) {
|
|
68
|
+
this.appObjects.submitError(`${this.appObject.id}/${this.type}`, message);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.HostAppObjectComponent = HostAppObjectComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HostAppObjectController = void 0;
|
|
4
|
+
const HostAppObjectComponent_1 = require("./HostAppObjectComponent");
|
|
5
|
+
class HostAppObjectController extends HostAppObjectComponent_1.HostAppObjectComponent {
|
|
6
|
+
}
|
|
7
|
+
exports.HostAppObjectController = HostAppObjectController;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HostAppObject } from './HostAppObject';
|
|
2
|
+
import { HostAppObjectComponent } from './HostAppObjectComponent';
|
|
3
|
+
export declare type HostAppObjectEntityObserver = () => void;
|
|
4
|
+
export declare class HostAppObjectEntity extends HostAppObjectComponent {
|
|
5
|
+
private onDisposeObserverList;
|
|
6
|
+
addOnDisposeObserver: (observer: HostAppObjectEntityObserver) => void;
|
|
7
|
+
removeOnDisposeObserver: (observer: HostAppObjectEntityObserver) => void;
|
|
8
|
+
private onChangeObserverList;
|
|
9
|
+
addChangeObserver: (observer: HostAppObjectEntityObserver) => void;
|
|
10
|
+
removeChangeObserver: (observer: HostAppObjectEntityObserver) => void;
|
|
11
|
+
notifyOnChange: () => void;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
constructor(appObject: HostAppObject, type: string);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HostAppObjectEntity = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
const HostAppObjectComponent_1 = require("./HostAppObjectComponent");
|
|
6
|
+
class HostAppObjectEntity extends HostAppObjectComponent_1.HostAppObjectComponent {
|
|
7
|
+
constructor(appObject, type) {
|
|
8
|
+
super(appObject, type);
|
|
9
|
+
this.onDisposeObserverList = new Entities_1.ObserverList();
|
|
10
|
+
this.addOnDisposeObserver = (observer) => {
|
|
11
|
+
this.onDisposeObserverList.add(observer);
|
|
12
|
+
};
|
|
13
|
+
this.removeOnDisposeObserver = (observer) => {
|
|
14
|
+
this.onDisposeObserverList.remove(observer);
|
|
15
|
+
};
|
|
16
|
+
this.onChangeObserverList = new Entities_1.ObserverList();
|
|
17
|
+
this.addChangeObserver = (observer) => {
|
|
18
|
+
this.onChangeObserverList.add(observer);
|
|
19
|
+
};
|
|
20
|
+
this.removeChangeObserver = (observer) => {
|
|
21
|
+
this.onChangeObserverList.remove(observer);
|
|
22
|
+
};
|
|
23
|
+
this.notifyOnChange = () => {
|
|
24
|
+
this.onChangeObserverList.notify();
|
|
25
|
+
};
|
|
26
|
+
this.addChangeObserver(appObject.notify);
|
|
27
|
+
}
|
|
28
|
+
dispose() {
|
|
29
|
+
this.removeChangeObserver(this.appObject.notify);
|
|
30
|
+
this.onDisposeObserverList.notify();
|
|
31
|
+
this.onChangeObserverList.clear();
|
|
32
|
+
this.onDisposeObserverList.clear();
|
|
33
|
+
super.dispose();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.HostAppObjectEntity = HostAppObjectEntity;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HostAppObjectEntity } from './HostAppObjectEntity';
|
|
2
|
+
export declare class HostAppObjectEntityRepo<T extends HostAppObjectEntity> extends HostAppObjectEntity {
|
|
3
|
+
private entityLookup;
|
|
4
|
+
private onEntityAddedObservers;
|
|
5
|
+
addEntityAddedObserver: (observer: (addedEntity: T) => void) => void;
|
|
6
|
+
removeEntityAddedObserver: (observer: (addedEntity: T) => void) => void;
|
|
7
|
+
private onEntityRemovedObservers;
|
|
8
|
+
addEntityRemovedObserver: (observer: (removedEntity: T) => void) => void;
|
|
9
|
+
removeEntityRemovedObserver: (observer: (removedEntity: T) => void) => void;
|
|
10
|
+
hasForAppObject: (appObjectID: string) => boolean;
|
|
11
|
+
add(entity: T): void;
|
|
12
|
+
removeForAppObject: (id: string) => void;
|
|
13
|
+
getForAppObject: (appObjectID: string) => T | undefined;
|
|
14
|
+
getAll: () => T[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HostAppObjectEntityRepo = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
const HostAppObjectEntity_1 = require("./HostAppObjectEntity");
|
|
6
|
+
class HostAppObjectEntityRepo extends HostAppObjectEntity_1.HostAppObjectEntity {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.entityLookup = new Map();
|
|
10
|
+
this.onEntityAddedObservers = new Entities_1.ObserverList();
|
|
11
|
+
this.addEntityAddedObserver = (observer) => {
|
|
12
|
+
this.onEntityAddedObservers.add(observer);
|
|
13
|
+
};
|
|
14
|
+
this.removeEntityAddedObserver = (observer) => {
|
|
15
|
+
this.onEntityAddedObservers.remove(observer);
|
|
16
|
+
};
|
|
17
|
+
this.onEntityRemovedObservers = new Entities_1.ObserverList();
|
|
18
|
+
this.addEntityRemovedObserver = (observer) => {
|
|
19
|
+
this.onEntityRemovedObservers.add(observer);
|
|
20
|
+
};
|
|
21
|
+
this.removeEntityRemovedObserver = (observer) => {
|
|
22
|
+
this.onEntityRemovedObservers.remove(observer);
|
|
23
|
+
};
|
|
24
|
+
this.hasForAppObject = (appObjectID) => {
|
|
25
|
+
return this.entityLookup.has(appObjectID);
|
|
26
|
+
};
|
|
27
|
+
this.removeForAppObject = (id) => {
|
|
28
|
+
const existing = this.entityLookup.get(id);
|
|
29
|
+
if (!existing)
|
|
30
|
+
return;
|
|
31
|
+
this.entityLookup.delete(id);
|
|
32
|
+
existing.removeChangeObserver(this.notifyOnChange);
|
|
33
|
+
this.notifyOnChange();
|
|
34
|
+
this.onEntityRemovedObservers.notify(existing);
|
|
35
|
+
};
|
|
36
|
+
this.getForAppObject = (appObjectID) => {
|
|
37
|
+
return this.entityLookup.get(appObjectID);
|
|
38
|
+
};
|
|
39
|
+
this.getAll = () => {
|
|
40
|
+
return Array.from(this.entityLookup.values());
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
add(entity) {
|
|
44
|
+
const existing = this.entityLookup.get(entity.appObject.id);
|
|
45
|
+
if (existing) {
|
|
46
|
+
existing.removeChangeObserver(this.notifyOnChange);
|
|
47
|
+
}
|
|
48
|
+
this.entityLookup.set(entity.appObject.id, entity);
|
|
49
|
+
entity.addChangeObserver(this.notifyOnChange);
|
|
50
|
+
this.notifyOnChange();
|
|
51
|
+
this.onEntityAddedObservers.notify(entity);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.HostAppObjectEntityRepo = HostAppObjectEntityRepo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HostAppObjectComponent } from './HostAppObjectComponent';
|
|
2
|
+
export declare abstract class HostAppObjectPM<T> extends HostAppObjectComponent {
|
|
3
|
+
abstract vmsAreEqual(a: T, b: T): boolean;
|
|
4
|
+
private _lastVM?;
|
|
5
|
+
get lastVM(): T | undefined;
|
|
6
|
+
private observerList;
|
|
7
|
+
addView(updateView: (vm: T) => void): void;
|
|
8
|
+
removeView(updateView: (vm: T) => void): void;
|
|
9
|
+
doUpdateView(vm: T): void;
|
|
10
|
+
dispose(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HostAppObjectPM = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
const HostAppObjectComponent_1 = require("./HostAppObjectComponent");
|
|
6
|
+
class HostAppObjectPM extends HostAppObjectComponent_1.HostAppObjectComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.observerList = new Entities_1.ObserverList();
|
|
10
|
+
}
|
|
11
|
+
get lastVM() {
|
|
12
|
+
return this._lastVM;
|
|
13
|
+
}
|
|
14
|
+
addView(updateView) {
|
|
15
|
+
this.observerList.add(updateView);
|
|
16
|
+
if (this._lastVM !== undefined) {
|
|
17
|
+
updateView(this._lastVM);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
removeView(updateView) {
|
|
21
|
+
this.observerList.remove(updateView);
|
|
22
|
+
}
|
|
23
|
+
doUpdateView(vm) {
|
|
24
|
+
if (this._lastVM && this.vmsAreEqual(this._lastVM, vm)) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
this._lastVM = vm;
|
|
28
|
+
this.observerList.notify(vm);
|
|
29
|
+
}
|
|
30
|
+
dispose() {
|
|
31
|
+
this.observerList.clear();
|
|
32
|
+
if (this.appObject.getComponent(this.type) === this) {
|
|
33
|
+
this.appObject.removeComponent(this.type);
|
|
34
|
+
}
|
|
35
|
+
super.dispose();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.HostAppObjectPM = HostAppObjectPM;
|