@vived/host 3.7.0 → 3.9.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/lib/Components/AppSandbox/Adapters/devFeaturesEnabledAdapter.d.ts +2 -0
- package/lib/Components/AppSandbox/Adapters/devFeaturesEnabledAdapter.js +23 -0
- package/lib/Components/AppSandbox/Adapters/index.d.ts +4 -0
- package/lib/{AppObject → Components/AppSandbox/Adapters}/index.js +4 -9
- package/lib/Components/AppSandbox/Adapters/sandboxStateAdapter.d.ts +3 -0
- package/lib/Components/AppSandbox/Adapters/sandboxStateAdapter.js +24 -0
- package/lib/Components/AppSandbox/Adapters/showInspectorAdapter.d.ts +2 -0
- package/lib/Components/AppSandbox/Adapters/showInspectorAdapter.js +23 -0
- package/lib/Components/AppSandbox/Adapters/startInZSpaceAdapter.d.ts +2 -0
- package/lib/Components/AppSandbox/Adapters/startInZSpaceAdapter.js +23 -0
- package/lib/Components/AppSandbox/Controller/clearSandboxAppContainer.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/clearSandboxAppContainer.js +11 -0
- package/lib/Components/AppSandbox/Controller/index.d.ts +10 -0
- package/lib/Components/AppSandbox/Controller/index.js +22 -0
- package/lib/Components/AppSandbox/Controller/mountSandboxApp.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/mountSandboxApp.js +19 -0
- package/lib/Components/AppSandbox/Controller/setSandboxAppContainer.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/setSandboxAppContainer.js +11 -0
- package/lib/Components/AppSandbox/Controller/setSandboxAppState.d.ts +3 -0
- package/lib/Components/AppSandbox/Controller/setSandboxAppState.js +11 -0
- package/lib/Components/AppSandbox/Controller/startSandboxApp.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/startSandboxApp.js +14 -0
- package/lib/Components/AppSandbox/Controller/stopSandboxApp.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/stopSandboxApp.js +14 -0
- package/lib/Components/AppSandbox/Controller/toggleAllowDevFeatures.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/toggleAllowDevFeatures.js +11 -0
- package/lib/Components/AppSandbox/Controller/toggleShowInspector.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/toggleShowInspector.js +19 -0
- package/lib/Components/AppSandbox/Controller/toggleStartInZSpace.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/toggleStartInZSpace.js +11 -0
- package/lib/Components/AppSandbox/Controller/unmountSandboxApp.d.ts +2 -0
- package/lib/Components/AppSandbox/Controller/unmountSandboxApp.js +19 -0
- package/lib/Components/AppSandbox/Entities/AppSandboxEntity.d.ts +34 -0
- package/lib/Components/AppSandbox/Entities/AppSandboxEntity.js +81 -0
- package/lib/Components/AppSandbox/Entities/index.d.ts +1 -0
- package/lib/Components/{Handler/Entites → AppSandbox/Entities}/index.js +1 -1
- package/lib/Components/AppSandbox/Factories/index.d.ts +1 -0
- package/lib/{UseCases → Components/AppSandbox/Factories}/index.js +1 -1
- package/lib/Components/AppSandbox/Factories/setupAppSandbox.d.ts +3 -0
- package/lib/Components/AppSandbox/Factories/setupAppSandbox.js +32 -0
- package/lib/Components/AppSandbox/Mocks/DevFeaturesEnabledPMMock.d.ts +8 -0
- package/lib/Components/AppSandbox/Mocks/DevFeaturesEnabledPMMock.js +15 -0
- package/lib/Components/AppSandbox/Mocks/MockShowBabylonInspectorUC.d.ts +8 -0
- package/lib/Components/AppSandbox/Mocks/MockShowBabylonInspectorUC.js +12 -0
- package/lib/Components/AppSandbox/Mocks/RenderAppPMMock.d.ts +8 -0
- package/lib/Components/AppSandbox/Mocks/RenderAppPMMock.js +15 -0
- package/lib/Components/AppSandbox/Mocks/ShowInspectorPMMock.d.ts +8 -0
- package/lib/Components/AppSandbox/Mocks/ShowInspectorPMMock.js +15 -0
- package/lib/Components/AppSandbox/Mocks/StartInZSpacePMMock.d.ts +8 -0
- package/lib/Components/AppSandbox/Mocks/StartInZSpacePMMock.js +15 -0
- package/lib/Components/AppSandbox/Mocks/index.d.ts +5 -0
- package/lib/{UseCases/Handlers → Components/AppSandbox/Mocks}/index.js +5 -6
- package/lib/Components/AppSandbox/PMs/DevFeaturesEnabledPM.d.ts +6 -0
- package/lib/Components/AppSandbox/PMs/DevFeaturesEnabledPM.js +36 -0
- package/lib/Components/AppSandbox/PMs/SandboxStatePM.d.ts +7 -0
- package/lib/Components/AppSandbox/PMs/SandboxStatePM.js +36 -0
- package/lib/Components/AppSandbox/PMs/ShowInspectorPM.d.ts +6 -0
- package/lib/Components/AppSandbox/PMs/ShowInspectorPM.js +36 -0
- package/lib/Components/AppSandbox/PMs/StartInZSpacePM.d.ts +6 -0
- package/lib/Components/AppSandbox/PMs/StartInZSpacePM.js +36 -0
- package/lib/Components/AppSandbox/PMs/index.d.ts +4 -0
- package/lib/Components/AppSandbox/PMs/index.js +16 -0
- package/lib/Components/AppSandbox/UCs/ShowBabylonInspectorUC.d.ts +9 -0
- package/lib/Components/AppSandbox/UCs/ShowBabylonInspectorUC.js +52 -0
- package/lib/Components/AppSandbox/UCs/index.d.ts +1 -0
- package/lib/Components/AppSandbox/UCs/index.js +13 -0
- package/lib/Components/AppSandbox/index.d.ts +7 -0
- package/lib/Components/AppSandbox/index.js +19 -0
- package/lib/Components/Apps/Mocks/MockAppMounterUC.d.ts +1 -1
- package/lib/Components/Apps/Mocks/MockAppMounterUC.js +3 -3
- package/lib/Components/Apps/UCs/{MounterUC.d.ts → Mounters/MounterUC.d.ts} +4 -3
- package/lib/Components/Apps/UCs/Mounters/MounterUC.js +265 -0
- package/lib/Components/Apps/UCs/Mounters/SandboxMounterUC.d.ts +3 -0
- package/lib/Components/Apps/UCs/Mounters/SandboxMounterUC.js +110 -0
- package/lib/Components/Apps/UCs/Mounters/index.d.ts +2 -0
- package/lib/Components/Apps/UCs/Mounters/index.js +14 -0
- package/lib/Components/Apps/UCs/StartAppUC.d.ts +1 -0
- package/lib/Components/Apps/UCs/StartAppUC.js +54 -1
- package/lib/Components/Apps/UCs/StopAppUC.d.ts +1 -0
- package/lib/Components/Apps/UCs/StopAppUC.js +18 -1
- package/lib/Components/Apps/UCs/formAppIDWithVersion.d.ts +3 -0
- package/lib/Components/Apps/UCs/formAppIDWithVersion.js +8 -0
- package/lib/Components/Apps/UCs/index.d.ts +2 -2
- package/lib/Components/Apps/UCs/index.js +2 -2
- package/lib/Components/AssetPlugin/Adapters/assetPluginPMAdapter.js +5 -1
- package/lib/Components/AssetPlugin/Factories/index.d.ts +1 -0
- package/lib/Components/AssetPlugin/Factories/index.js +13 -0
- package/lib/Components/AssetPlugin/Factories/setupAssetsPluginForSandbox.d.ts +3 -0
- package/lib/Components/AssetPlugin/Factories/setupAssetsPluginForSandbox.js +35 -0
- package/lib/Components/AssetPlugin/UCs/SandboxAssetPluginContainerUC.d.ts +15 -0
- package/lib/Components/AssetPlugin/UCs/SandboxAssetPluginContainerUC.js +75 -0
- package/lib/Components/AssetPlugin/UCs/index.d.ts +1 -0
- package/lib/Components/AssetPlugin/UCs/index.js +1 -0
- package/lib/Components/AssetPlugin/index.d.ts +1 -0
- package/lib/Components/AssetPlugin/index.js +1 -0
- package/lib/Components/Assets/Adapters/appAssetListAdapter.d.ts +2 -0
- package/lib/Components/Assets/Adapters/appAssetListAdapter.js +23 -0
- package/lib/Components/Assets/Adapters/assetAdapter.d.ts +3 -0
- package/lib/Components/Assets/Adapters/assetAdapter.js +23 -0
- package/lib/Components/Assets/Adapters/editingAppAssetAdapter.d.ts +3 -0
- package/lib/Components/Assets/Adapters/editingAppAssetAdapter.js +23 -0
- package/lib/Components/Assets/Adapters/index.d.ts +4 -0
- package/lib/Components/Assets/Adapters/index.js +16 -0
- package/lib/Components/Assets/Adapters/showArchivedAppAssetAdapter.d.ts +2 -0
- package/lib/Components/Assets/Adapters/showArchivedAppAssetAdapter.js +23 -0
- package/lib/Components/Assets/Controllers/editAppAsset.d.ts +2 -0
- package/lib/Components/Assets/Controllers/editAppAsset.js +13 -0
- package/lib/Components/Assets/Controllers/index.d.ts +3 -0
- package/lib/Components/Assets/Controllers/index.js +3 -0
- package/lib/Components/Assets/Controllers/newAppAsset.d.ts +3 -0
- package/lib/Components/Assets/Controllers/newAppAsset.js +13 -0
- package/lib/Components/Assets/Controllers/updateAppAssetMeta.d.ts +3 -0
- package/lib/Components/Assets/Controllers/updateAppAssetMeta.js +13 -0
- package/lib/Components/Assets/Factories/index.d.ts +1 -0
- package/lib/Components/Assets/Factories/index.js +13 -0
- package/lib/Components/Assets/Factories/setupAssetsForSandbox.d.ts +2 -0
- package/lib/Components/Assets/Factories/setupAssetsForSandbox.js +43 -0
- package/lib/Components/Assets/Mocks/AppAssetListPMMock.d.ts +8 -0
- package/lib/Components/Assets/Mocks/AppAssetListPMMock.js +15 -0
- package/lib/Components/Assets/Mocks/AssetPMMock.d.ts +7 -0
- package/lib/Components/Assets/Mocks/AssetPMMock.js +11 -0
- package/lib/Components/Assets/Mocks/EditingAppAssetPMMock.d.ts +8 -0
- package/lib/Components/Assets/Mocks/EditingAppAssetPMMock.js +15 -0
- package/lib/Components/Assets/Mocks/MockEditAppAssetUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockEditAppAssetUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockNewAppAsset.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockNewAppAsset.js +15 -0
- package/lib/Components/Assets/Mocks/MockUpdateAppAssetMetaUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockUpdateAppAssetMetaUC.js +15 -0
- package/lib/Components/Assets/Mocks/ShowArchivedAppAssetPMMock.d.ts +8 -0
- package/lib/Components/Assets/Mocks/ShowArchivedAppAssetPMMock.js +15 -0
- package/lib/Components/Assets/Mocks/index.d.ts +15 -8
- package/lib/Components/Assets/Mocks/index.js +7 -0
- package/lib/Components/Assets/PMs/AppAssetListPM.d.ts +3 -7
- package/lib/Components/Assets/PMs/AppAssetListPM.js +13 -7
- package/lib/Components/Assets/PMs/AssetPM.d.ts +3 -6
- package/lib/Components/Assets/PMs/AssetPM.js +27 -21
- package/lib/Components/Assets/PMs/EditingAppAssetPM.d.ts +3 -6
- package/lib/Components/Assets/PMs/EditingAppAssetPM.js +14 -8
- package/lib/Components/Assets/PMs/ShowArchivedAppAssetPM.d.ts +3 -6
- package/lib/Components/Assets/PMs/ShowArchivedAppAssetPM.js +13 -7
- package/lib/Components/Assets/UCs/EditAppAssetUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/EditAppAssetUC.js +45 -0
- package/lib/Components/Assets/UCs/NewAppAssetUC.d.ts +12 -0
- package/lib/Components/Assets/UCs/NewAppAssetUC.js +94 -0
- package/lib/Components/Assets/UCs/PrefetchAssetsUC.js +2 -2
- package/lib/Components/Assets/UCs/UpdateAppAssetMetaUC.d.ts +12 -0
- package/lib/Components/Assets/UCs/UpdateAppAssetMetaUC.js +95 -0
- package/lib/Components/Assets/UCs/index.d.ts +3 -0
- package/lib/Components/Assets/UCs/index.js +3 -0
- package/lib/Components/Assets/index.d.ts +7 -5
- package/lib/Components/Assets/index.js +2 -0
- package/lib/Components/ChallengeResults/Adapters/challengeResultsListAdapter.d.ts +3 -0
- package/lib/Components/ChallengeResults/Adapters/challengeResultsListAdapter.js +23 -0
- package/lib/Components/ChallengeResults/Adapters/index.d.ts +1 -0
- package/lib/Components/ChallengeResults/Adapters/index.js +13 -0
- package/lib/Components/ChallengeResults/Entities/ChallengeResults.d.ts +40 -0
- package/lib/{Entities → Components/ChallengeResults/Entities}/ChallengeResults.js +33 -29
- package/lib/Components/ChallengeResults/Entities/index.d.ts +1 -0
- package/lib/Components/ChallengeResults/Entities/index.js +13 -0
- package/lib/Components/ChallengeResults/Factories/index.d.ts +1 -0
- package/lib/Components/ChallengeResults/Factories/index.js +13 -0
- package/lib/Components/ChallengeResults/Factories/setupChallengeResultsForSandbox.d.ts +2 -0
- package/lib/Components/ChallengeResults/Factories/setupChallengeResultsForSandbox.js +12 -0
- package/lib/Components/ChallengeResults/Mocks/ChallengeResultsListPMMock.d.ts +8 -0
- package/lib/Components/ChallengeResults/Mocks/ChallengeResultsListPMMock.js +15 -0
- package/lib/Components/ChallengeResults/Mocks/index.d.ts +1 -0
- package/lib/Components/ChallengeResults/Mocks/index.js +13 -0
- package/lib/Components/ChallengeResults/PMs/ChallengeResultsListPM.d.ts +15 -0
- package/lib/Components/ChallengeResults/PMs/ChallengeResultsListPM.js +65 -0
- package/lib/Components/ChallengeResults/PMs/index.d.ts +1 -0
- package/lib/Components/ChallengeResults/PMs/index.js +13 -0
- package/lib/Components/ChallengeResults/index.d.ts +5 -0
- package/lib/Components/ChallengeResults/index.js +17 -0
- package/lib/Components/Dialog/Factories/index.d.ts +6 -5
- package/lib/Components/Dialog/Factories/index.js +1 -0
- package/lib/Components/Dialog/Factories/setupDialogForSandbox.d.ts +2 -0
- package/lib/Components/Dialog/Factories/setupDialogForSandbox.js +24 -0
- package/lib/Components/Dispatcher/Mocks/DispatchEnableFeatureUCMock.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/DispatchEnableFeatureUCMock.js +11 -0
- package/lib/Components/Dispatcher/Mocks/index.d.ts +1 -0
- package/lib/Components/Dispatcher/Mocks/index.js +1 -0
- package/lib/Components/Dispatcher/UCs/DispatchEnableFeatureUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchEnableFeatureUC.js +53 -0
- package/lib/Components/Dispatcher/UCs/index.d.ts +1 -0
- package/lib/Components/Dispatcher/UCs/index.js +1 -0
- package/lib/Components/Dispatcher/index.d.ts +1 -0
- package/lib/Components/Dispatcher/index.js +1 -0
- package/lib/Components/Dispatcher/setupStandardHostDispatchers.d.ts +2 -0
- package/lib/Components/Dispatcher/setupStandardHostDispatchers.js +16 -0
- package/lib/Components/Handler/UCs/CloseAssetSystemPlugin.js +10 -10
- package/lib/Components/Handler/UCs/GoToNextStateHandler.js +22 -4
- package/lib/Components/Handler/UCs/GoToPreviousStateHandler.js +16 -4
- package/lib/Components/Handler/UCs/IsZSpaceAvailableHandler.js +11 -2
- package/lib/Components/Handler/UCs/OnStateChangeHandler.js +9 -8
- package/lib/Components/Handler/UCs/OnStateCompleteHandler.js +18 -1
- package/lib/Components/Handler/UCs/ShowSelectModelHandler.js +6 -6
- package/lib/Components/Handler/UCs/StartZSpaceHandler.js +6 -1
- package/lib/Components/Handler/UCs/StopZSpaceHandler.js +6 -1
- package/lib/Components/Handler/UCs/SubmitResultHandler.js +85 -2
- package/lib/Components/Handler/index.d.ts +1 -0
- package/lib/Components/Handler/index.js +1 -0
- package/lib/Components/Handler/setupStandardHostHandlers.d.ts +2 -0
- package/lib/Components/Handler/setupStandardHostHandlers.js +29 -0
- package/lib/Components/Logger/Adapters/forwardLogsToConsoleAdapter.d.ts +2 -0
- package/lib/Components/Logger/Adapters/forwardLogsToConsoleAdapter.js +23 -0
- package/lib/Components/Logger/Adapters/index.d.ts +2 -0
- package/lib/Components/Logger/Adapters/index.js +2 -0
- package/lib/Components/Logger/Adapters/logSummaryAdapter.d.ts +3 -0
- package/lib/Components/Logger/Adapters/logSummaryAdapter.js +23 -0
- package/lib/Components/Logger/Controllers/index.d.ts +1 -0
- package/lib/Components/Logger/Controllers/index.js +1 -0
- package/lib/Components/Logger/Controllers/toggleForwardLogs.d.ts +2 -0
- package/lib/Components/Logger/Controllers/toggleForwardLogs.js +14 -0
- package/lib/Components/Logger/Entities/LoggerEntity.d.ts +2 -1
- package/lib/Components/Logger/Entities/LoggerEntity.js +8 -1
- package/lib/Components/Logger/Factories/index.d.ts +1 -0
- package/lib/Components/Logger/Factories/index.js +13 -0
- package/lib/Components/Logger/Factories/setupLoggerForSandbox.d.ts +2 -0
- package/lib/Components/Logger/Factories/setupLoggerForSandbox.js +17 -0
- package/lib/Components/Logger/Mocks/ForwardLogsToConsolePMMock.d.ts +8 -0
- package/lib/Components/Logger/Mocks/ForwardLogsToConsolePMMock.js +15 -0
- package/lib/Components/Logger/Mocks/LogSummaryPMMock.d.ts +8 -0
- package/lib/Components/Logger/Mocks/LogSummaryPMMock.js +15 -0
- package/lib/Components/Logger/Mocks/index.d.ts +2 -0
- package/lib/Components/Logger/Mocks/index.js +2 -0
- package/lib/Components/Logger/PMs/ForwardLogsToConsolePM.d.ts +6 -0
- package/lib/Components/Logger/PMs/ForwardLogsToConsolePM.js +36 -0
- package/lib/Components/Logger/PMs/LogSummaryPM.d.ts +12 -0
- package/lib/Components/Logger/PMs/LogSummaryPM.js +76 -0
- package/lib/Components/Logger/PMs/index.d.ts +2 -0
- package/lib/Components/Logger/PMs/index.js +2 -0
- package/lib/Components/Logger/index.d.ts +1 -0
- package/lib/Components/Logger/index.js +1 -0
- package/lib/Components/StateMachine/Adapters/editingStateAdapter.d.ts +3 -0
- package/lib/Components/StateMachine/Adapters/editingStateAdapter.js +23 -0
- package/lib/Components/StateMachine/Adapters/index.d.ts +1 -0
- package/lib/Components/StateMachine/Adapters/index.js +1 -0
- package/lib/Components/StateMachine/Controllers/cancelEditing.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/cancelEditing.js +13 -0
- package/lib/Components/StateMachine/Controllers/consumeState.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/consumeState.js +13 -0
- package/lib/Components/StateMachine/Controllers/duplicateState.js +2 -2
- package/lib/Components/StateMachine/Controllers/editActiveState.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/editActiveState.js +13 -0
- package/lib/Components/StateMachine/Controllers/editState.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/editState.js +13 -0
- package/lib/Components/StateMachine/Controllers/endActivity.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/endActivity.js +13 -0
- package/lib/Components/StateMachine/Controllers/index.d.ts +9 -0
- package/lib/Components/StateMachine/Controllers/index.js +9 -0
- package/lib/Components/StateMachine/Controllers/newState.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/newState.js +13 -0
- package/lib/Components/StateMachine/Controllers/saveAuthoring.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/saveAuthoring.js +13 -0
- package/lib/Components/StateMachine/Controllers/savePersistentStates.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/savePersistentStates.js +13 -0
- package/lib/Components/StateMachine/Controllers/transitionToState.d.ts +2 -0
- package/lib/Components/StateMachine/Controllers/transitionToState.js +13 -0
- package/lib/Components/StateMachine/Entities/HostStateMachine.d.ts +1 -0
- package/lib/Components/StateMachine/Entities/HostStateMachine.js +1 -0
- package/lib/Components/StateMachine/Factories/index.d.ts +1 -0
- package/lib/Components/StateMachine/Factories/index.js +13 -0
- package/lib/Components/StateMachine/Factories/setupStateMachineForSandbox.d.ts +3 -0
- package/lib/Components/StateMachine/Factories/setupStateMachineForSandbox.js +27 -0
- package/lib/Components/StateMachine/Mocks/CancelEditingUCMock.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/CancelEditingUCMock.js +15 -0
- package/lib/Components/StateMachine/Mocks/ConsumeStateUCMock.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/ConsumeStateUCMock.js +15 -0
- package/lib/Components/StateMachine/Mocks/EditStateUCMock.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/EditStateUCMock.js +15 -0
- package/lib/Components/StateMachine/Mocks/EndActivityUCMock.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/EndActivityUCMock.js +15 -0
- package/lib/Components/StateMachine/Mocks/MockDeleteStateUC.d.ts +1 -1
- package/lib/Components/StateMachine/Mocks/MockDeleteStateUC.js +3 -3
- package/lib/Components/StateMachine/Mocks/MockDuplicateStateUC.d.ts +1 -1
- package/lib/Components/StateMachine/Mocks/MockDuplicateStateUC.js +3 -3
- package/lib/Components/StateMachine/Mocks/MockEditActiveStateUC.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/MockEditActiveStateUC.js +15 -0
- package/lib/Components/StateMachine/Mocks/MockHostStateEntity.d.ts +16 -0
- package/lib/Components/StateMachine/Mocks/MockHostStateEntity.js +27 -0
- package/lib/Components/StateMachine/Mocks/MockHostStateMachinePM.d.ts +1 -1
- package/lib/Components/StateMachine/Mocks/MockHostStateMachinePM.js +3 -3
- package/lib/Components/StateMachine/Mocks/MockIsEditingStatePM.d.ts +1 -1
- package/lib/Components/StateMachine/Mocks/MockIsEditingStatePM.js +3 -3
- package/lib/Components/StateMachine/Mocks/MockSaveAuthoringUC.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/MockSaveAuthoringUC.js +15 -0
- package/lib/Components/StateMachine/Mocks/MockTransitionToStateUC.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/MockTransitionToStateUC.js +15 -0
- package/lib/Components/StateMachine/Mocks/NewStateUCMock.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/NewStateUCMock.js +15 -0
- package/lib/Components/StateMachine/Mocks/SavePersistentStatesMock.d.ts +8 -0
- package/lib/Components/StateMachine/Mocks/SavePersistentStatesMock.js +15 -0
- package/lib/Components/StateMachine/Mocks/index.d.ts +10 -1
- package/lib/Components/StateMachine/Mocks/index.js +10 -1
- package/lib/Components/StateMachine/UCs/CancelEditing/CancelEditingUC.d.ts +6 -0
- package/lib/Components/StateMachine/UCs/CancelEditing/CancelEditingUC.js +11 -0
- package/lib/Components/StateMachine/UCs/CancelEditing/CancelSandboxEditingUC.d.ts +3 -0
- package/lib/Components/StateMachine/UCs/CancelEditing/CancelSandboxEditingUC.js +52 -0
- package/lib/Components/StateMachine/UCs/CancelEditing/index.d.ts +2 -0
- package/lib/Components/StateMachine/UCs/CancelEditing/index.js +14 -0
- package/lib/Components/StateMachine/UCs/ConsumeState/ConsumeSandboxStateUC.d.ts +3 -0
- package/lib/Components/StateMachine/UCs/ConsumeState/ConsumeSandboxStateUC.js +51 -0
- package/lib/Components/StateMachine/UCs/ConsumeState/ConsumeStateUC.d.ts +6 -0
- package/lib/Components/StateMachine/UCs/ConsumeState/ConsumeStateUC.js +11 -0
- package/lib/Components/StateMachine/UCs/ConsumeState/index.d.ts +2 -0
- package/lib/Components/StateMachine/UCs/ConsumeState/index.js +14 -0
- package/lib/Components/StateMachine/UCs/EditActiveState/EditActiveSandboxStateUC.d.ts +3 -0
- package/lib/Components/StateMachine/UCs/EditActiveState/EditActiveSandboxStateUC.js +53 -0
- package/lib/Components/StateMachine/UCs/EditActiveState/EditActiveStateUC.d.ts +6 -0
- package/lib/Components/StateMachine/UCs/EditActiveState/EditActiveStateUC.js +11 -0
- package/lib/Components/StateMachine/UCs/EditActiveState/index.d.ts +2 -0
- package/lib/Components/StateMachine/UCs/EditActiveState/index.js +14 -0
- package/lib/Components/StateMachine/UCs/EditState/EditSandboxStateUC.d.ts +3 -0
- package/lib/Components/StateMachine/UCs/EditState/EditSandboxStateUC.js +37 -0
- package/lib/Components/StateMachine/UCs/EditState/EditStateUC.d.ts +6 -0
- package/lib/Components/StateMachine/UCs/EditState/EditStateUC.js +11 -0
- package/lib/Components/StateMachine/UCs/EditState/index.d.ts +2 -0
- package/lib/Components/StateMachine/UCs/EditState/index.js +14 -0
- package/lib/Components/StateMachine/UCs/EndActivity/EndActivityUC.d.ts +6 -0
- package/lib/Components/StateMachine/UCs/EndActivity/EndActivityUC.js +11 -0
- package/lib/Components/StateMachine/UCs/EndActivity/EndSandboxActivityUC.d.ts +3 -0
- package/lib/Components/StateMachine/UCs/EndActivity/EndSandboxActivityUC.js +38 -0
- package/lib/Components/StateMachine/UCs/EndActivity/index.d.ts +2 -0
- package/lib/Components/StateMachine/UCs/EndActivity/index.js +14 -0
- package/lib/Components/StateMachine/UCs/NewState/NewSandboxStateUC.d.ts +3 -0
- package/lib/Components/StateMachine/UCs/NewState/NewSandboxStateUC.js +34 -0
- package/lib/Components/StateMachine/UCs/NewState/NewStateUC.d.ts +6 -0
- package/lib/Components/StateMachine/UCs/NewState/NewStateUC.js +11 -0
- package/lib/Components/StateMachine/UCs/NewState/index.d.ts +2 -0
- package/lib/Components/StateMachine/UCs/NewState/index.js +14 -0
- package/lib/Components/StateMachine/UCs/SaveAuthoring/SaveAuthoringSandboxUC.d.ts +3 -0
- package/lib/Components/StateMachine/UCs/SaveAuthoring/SaveAuthoringSandboxUC.js +46 -0
- package/lib/Components/StateMachine/UCs/SaveAuthoring/SaveAuthoringUC.d.ts +6 -0
- package/lib/Components/StateMachine/UCs/SaveAuthoring/SaveAuthoringUC.js +11 -0
- package/lib/Components/StateMachine/UCs/SaveAuthoring/index.d.ts +2 -0
- package/lib/Components/StateMachine/UCs/SaveAuthoring/index.js +14 -0
- package/lib/Components/StateMachine/UCs/SavePersistentStates.d.ts +7 -0
- package/lib/Components/StateMachine/UCs/SavePersistentStates.js +36 -0
- package/lib/Components/StateMachine/UCs/TransitionToState/TransitionToSandboxStateUC.d.ts +3 -0
- package/lib/Components/StateMachine/UCs/TransitionToState/TransitionToSandboxStateUC.js +42 -0
- package/lib/Components/StateMachine/UCs/TransitionToState/TransitionToStateUC.d.ts +6 -0
- package/lib/Components/StateMachine/UCs/TransitionToState/TransitionToStateUC.js +11 -0
- package/lib/Components/StateMachine/UCs/TransitionToState/index.d.ts +2 -0
- package/lib/Components/StateMachine/UCs/TransitionToState/index.js +14 -0
- package/lib/Components/StateMachine/UCs/index.d.ts +10 -0
- package/lib/Components/StateMachine/UCs/index.js +10 -0
- package/lib/Components/StateMachine/UCs/setSandboxStatesFromData.d.ts +7 -0
- package/lib/Components/StateMachine/UCs/setSandboxStatesFromData.js +28 -0
- package/lib/Components/StateMachine/index.d.ts +1 -0
- package/lib/Components/StateMachine/index.js +1 -0
- package/lib/Components/ThemeColors/Factories/index.d.ts +1 -0
- package/lib/Components/ThemeColors/Factories/index.js +13 -0
- package/lib/Components/ThemeColors/Factories/setupThemeForSandbox.d.ts +2 -0
- package/lib/Components/ThemeColors/Factories/setupThemeForSandbox.js +20 -0
- package/lib/Components/ThemeColors/index.d.ts +1 -0
- package/lib/Components/ThemeColors/index.js +1 -0
- package/lib/Components/VivedAPI/Factories/index.d.ts +1 -0
- package/lib/Components/VivedAPI/Factories/index.js +13 -0
- package/lib/Components/VivedAPI/Factories/setupVivedAPIForSandbox.d.ts +2 -0
- package/lib/Components/VivedAPI/Factories/setupVivedAPIForSandbox.js +26 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetMetaUC.d.ts +1 -1
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetMetaUC.js +3 -3
- package/lib/Components/VivedAPI/UCs/BasicFetchUC.d.ts +1 -2
- package/lib/Components/VivedAPI/UCs/BasicFetchUC.js +1 -25
- package/lib/Components/VivedAPI/UCs/BlobRequestUC.d.ts +1 -2
- package/lib/Components/VivedAPI/UCs/BlobRequestUC.js +1 -28
- package/lib/Components/VivedAPI/UCs/JsonRequestUC.d.ts +1 -2
- package/lib/Components/VivedAPI/UCs/JsonRequestUC.js +1 -39
- package/lib/Components/VivedAPI/index.d.ts +1 -0
- package/lib/Components/VivedAPI/index.js +1 -0
- package/lib/Components/ZSpaceHost/Adapters/emulateZSpaceAdapter.d.ts +2 -0
- package/lib/Components/ZSpaceHost/Adapters/emulateZSpaceAdapter.js +23 -0
- package/lib/Components/ZSpaceHost/Adapters/index.d.ts +2 -0
- package/lib/Components/ZSpaceHost/Adapters/index.js +14 -0
- package/lib/Components/ZSpaceHost/Adapters/zSpaceIsActiveAdapter.d.ts +2 -0
- package/lib/Components/ZSpaceHost/Adapters/zSpaceIsActiveAdapter.js +23 -0
- package/lib/Components/ZSpaceHost/Controllers/index.d.ts +2 -0
- package/lib/Components/ZSpaceHost/Controllers/index.js +2 -0
- package/lib/Components/ZSpaceHost/Controllers/startZSpace.d.ts +2 -0
- package/lib/Components/ZSpaceHost/Controllers/startZSpace.js +13 -0
- package/lib/Components/ZSpaceHost/Controllers/stopZSpace.d.ts +2 -0
- package/lib/Components/ZSpaceHost/Controllers/stopZSpace.js +13 -0
- package/lib/Components/ZSpaceHost/Factories/index.d.ts +1 -0
- package/lib/Components/ZSpaceHost/Factories/index.js +13 -0
- package/lib/Components/ZSpaceHost/Factories/setupZSpaceForSandbox.d.ts +3 -0
- package/lib/Components/ZSpaceHost/Factories/setupZSpaceForSandbox.js +19 -0
- package/lib/Components/ZSpaceHost/Mocks/EmulateZSpacePMMock.d.ts +8 -0
- package/lib/Components/ZSpaceHost/Mocks/EmulateZSpacePMMock.js +15 -0
- package/lib/Components/ZSpaceHost/Mocks/MockStartZSpaceUC.d.ts +8 -0
- package/lib/Components/ZSpaceHost/Mocks/MockStartZSpaceUC.js +15 -0
- package/lib/Components/ZSpaceHost/Mocks/MockStopZSpaceUC.d.ts +8 -0
- package/lib/Components/ZSpaceHost/Mocks/MockStopZSpaceUC.js +15 -0
- package/lib/Components/ZSpaceHost/Mocks/MockXRSession.d.ts +28 -0
- package/lib/Components/ZSpaceHost/Mocks/MockXRSession.js +49 -0
- package/lib/Components/ZSpaceHost/Mocks/ZSpaceIsActivePMMock.d.ts +8 -0
- package/lib/Components/ZSpaceHost/Mocks/ZSpaceIsActivePMMock.js +15 -0
- package/lib/Components/ZSpaceHost/Mocks/index.d.ts +5 -0
- package/lib/Components/ZSpaceHost/Mocks/index.js +17 -0
- package/lib/Components/ZSpaceHost/PMs/EmulateZSpacePM.d.ts +2 -5
- package/lib/Components/ZSpaceHost/PMs/EmulateZSpacePM.js +12 -6
- package/lib/Components/ZSpaceHost/PMs/ZSpaceIsActivePM.d.ts +2 -5
- package/lib/Components/ZSpaceHost/PMs/ZSpaceIsActivePM.js +12 -6
- package/lib/Components/ZSpaceHost/UCs/StartSandboxZSpaceUC.d.ts +3 -0
- package/lib/Components/ZSpaceHost/UCs/StartSandboxZSpaceUC.js +70 -0
- package/lib/Components/ZSpaceHost/UCs/StartZSpace/StartSandboxZSpaceUC.d.ts +3 -0
- package/lib/Components/ZSpaceHost/UCs/StartZSpace/StartSandboxZSpaceUC.js +70 -0
- package/lib/Components/ZSpaceHost/UCs/StartZSpace/StartZSpaceUC.d.ts +6 -0
- package/lib/Components/ZSpaceHost/UCs/StartZSpace/StartZSpaceUC.js +11 -0
- package/lib/Components/ZSpaceHost/UCs/StartZSpace/index.d.ts +2 -0
- package/lib/Components/ZSpaceHost/UCs/StartZSpace/index.js +14 -0
- package/lib/Components/ZSpaceHost/UCs/StartZSpaceUC.d.ts +6 -0
- package/lib/Components/ZSpaceHost/UCs/StartZSpaceUC.js +11 -0
- package/lib/Components/ZSpaceHost/UCs/StopSandboxZSpaceUC.d.ts +3 -0
- package/lib/Components/ZSpaceHost/UCs/StopSandboxZSpaceUC.js +40 -0
- package/lib/Components/ZSpaceHost/UCs/StopZSpace/StopSandboxZSpaceUC.d.ts +3 -0
- package/lib/Components/ZSpaceHost/UCs/StopZSpace/StopSandboxZSpaceUC.js +40 -0
- package/lib/Components/ZSpaceHost/UCs/StopZSpace/StopZSpaceUC.d.ts +6 -0
- package/lib/Components/ZSpaceHost/UCs/StopZSpace/StopZSpaceUC.js +11 -0
- package/lib/Components/ZSpaceHost/UCs/StopZSpace/index.d.ts +2 -0
- package/lib/Components/ZSpaceHost/UCs/StopZSpace/index.js +14 -0
- package/lib/Components/ZSpaceHost/UCs/StopZSpaceUC.d.ts +6 -0
- package/lib/Components/ZSpaceHost/UCs/StopZSpaceUC.js +11 -0
- package/lib/Components/ZSpaceHost/UCs/index.d.ts +2 -0
- package/lib/Components/ZSpaceHost/UCs/index.js +2 -0
- package/lib/Components/ZSpaceHost/index.d.ts +3 -0
- package/lib/Components/ZSpaceHost/index.js +3 -0
- package/lib/Components/index.d.ts +2 -0
- package/lib/Components/index.js +2 -0
- package/lib/Entities/index.d.ts +0 -2
- package/lib/Entities/index.js +0 -2
- package/lib/PresentationManagers/Snackbar/SnackbarPM.d.ts +1 -1
- package/package.json +2 -2
- package/lib/AppObject/AppObject.d.ts +0 -14
- package/lib/AppObject/AppObject.js +0 -58
- package/lib/AppObject/AppObjectComponent.d.ts +0 -15
- package/lib/AppObject/AppObjectComponent.js +0 -61
- package/lib/AppObject/AppObjectController.d.ts +0 -3
- package/lib/AppObject/AppObjectController.js +0 -7
- package/lib/AppObject/AppObjectEntity.d.ts +0 -14
- package/lib/AppObject/AppObjectEntity.js +0 -36
- package/lib/AppObject/AppObjectEntityRepo.d.ts +0 -15
- package/lib/AppObject/AppObjectEntityRepo.js +0 -55
- package/lib/AppObject/AppObjectPM.d.ts +0 -11
- package/lib/AppObject/AppObjectPM.js +0 -38
- package/lib/AppObject/AppObjectRepo.d.ts +0 -25
- package/lib/AppObject/AppObjectRepo.js +0 -132
- package/lib/AppObject/AppObjectUC.d.ts +0 -3
- package/lib/AppObject/AppObjectUC.js +0 -7
- package/lib/AppObject/AppObjectView.d.ts +0 -3
- package/lib/AppObject/AppObjectView.js +0 -7
- package/lib/AppObject/getSingletonComponent.d.ts +0 -3
- package/lib/AppObject/getSingletonComponent.js +0 -7
- package/lib/AppObject/index.d.ts +0 -9
- package/lib/Components/Apps/UCs/MounterUC.js +0 -15
- package/lib/Components/Assets/Entities/AssetRepository.d.ts +0 -34
- package/lib/Components/Assets/Entities/AssetRepository.js +0 -267
- package/lib/Components/Assets/UCs/UpdateArchiveAssetUC.d.ts +0 -7
- package/lib/Components/Assets/UCs/UpdateArchiveAssetUC.js +0 -59
- package/lib/Components/Dialog/Entities/DialogAlert.d.ts +0 -25
- package/lib/Components/Dialog/Entities/DialogAlert.js +0 -48
- package/lib/Components/Dialog/Entities/DialogConfirm.d.ts +0 -29
- package/lib/Components/Dialog/Entities/DialogConfirm.js +0 -53
- package/lib/Components/Dialog/Entities/DialogMarkDownEditor.d.ts +0 -21
- package/lib/Components/Dialog/Entities/DialogMarkDownEditor.js +0 -44
- package/lib/Components/Dialog/Entities/DialogSpinner.d.ts +0 -24
- package/lib/Components/Dialog/Entities/DialogSpinner.js +0 -63
- package/lib/Components/Handler/Entites/HostHandler.d.ts +0 -22
- package/lib/Components/Handler/Entites/HostHandler.js +0 -61
- package/lib/Components/Handler/Entites/index.d.ts +0 -1
- package/lib/Components/Handler/Mocks/MockGetAssetBlobURLHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockGetAssetBlobURLHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockGetAssetFolderURLHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockGetAssetFolderURLHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockGetAssetMetaHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockGetAssetMetaHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockGetAssetsForOwnerHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockGetAssetsForOwnerHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockGetLinkedAssetsHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockGetLinkedAssetsHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockGoToNextStateHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockGoToNextStateHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockGoToPreviousStateHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockGoToPreviousStateHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockHasNextStateHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockHasNextStateHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockHasPreviousStateHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockHasPreviousStateHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockIsAssetFetchedHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockIsAssetFetchedHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockIsZSpaceAvailableHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockIsZSpaceAvailableHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockNewActivityAssetHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockNewActivityAssetHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockOnAppIsReadyHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockOnAppIsReadyHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockOnStateChangeHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockOnStateChangeHandler.js +0 -12
- package/lib/Components/Handler/Mocks/MockOnStateCompleteHandler.d.ts +0 -8
- package/lib/Components/Handler/Mocks/MockOnStateCompleteHandler.js +0 -12
- package/lib/Components/Handler/Mocks/index.d.ts +0 -13
- package/lib/Components/Handler/Mocks/index.js +0 -25
- package/lib/Components/StateMachine/Adapters/hostStateMachinePMAdater.d.ts +0 -3
- package/lib/Components/StateMachine/Adapters/hostStateMachinePMAdater.js +0 -23
- package/lib/Components/StateMachine/Adapters/isEditingPMAdapter.d.ts +0 -3
- package/lib/Components/StateMachine/Adapters/isEditingPMAdapter.js +0 -23
- package/lib/Components/StateMachine/PMs/IsEditingStatePM.d.ts +0 -13
- package/lib/Components/StateMachine/PMs/IsEditingStatePM.js +0 -36
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetUC.d.ts +0 -8
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetUC.js +0 -15
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileUC.d.ts +0 -8
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileUC.js +0 -15
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaUC.d.ts +0 -8
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaUC.js +0 -15
- package/lib/Components/VivedAPI/Mocks/MockGetAppUC.d.ts +0 -8
- package/lib/Components/VivedAPI/Mocks/MockGetAppUC.js +0 -15
- package/lib/Components/VivedAPI/UCs/DeleteAssetUC.d.ts +0 -7
- package/lib/Components/VivedAPI/UCs/DeleteAssetUC.js +0 -63
- package/lib/Components/VivedAPI/UCs/FetchAssetFileUC.d.ts +0 -8
- package/lib/Components/VivedAPI/UCs/FetchAssetFileUC.js +0 -53
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaUC.d.ts +0 -20
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaUC.js +0 -72
- package/lib/Components/VivedAPI/UCs/GetAppUC.d.ts +0 -28
- package/lib/Components/VivedAPI/UCs/GetAppUC.js +0 -70
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerUC.d.ts +0 -20
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerUC.js +0 -86
- package/lib/Entities/Asset.d.ts +0 -30
- package/lib/Entities/Asset.js +0 -131
- package/lib/Entities/AssetRepo.d.ts +0 -10
- package/lib/Entities/AssetRepo.js +0 -56
- package/lib/Entities/Auth.d.ts +0 -7
- package/lib/Entities/Auth.js +0 -25
- package/lib/Entities/ChallengeResults.d.ts +0 -40
- package/lib/Entities/DevicePreview.d.ts +0 -20
- package/lib/Entities/DevicePreview.js +0 -67
- package/lib/Entities/DialogAlert.d.ts +0 -18
- package/lib/Entities/DialogAlert.js +0 -25
- package/lib/Entities/DialogBase.d.ts +0 -10
- package/lib/Entities/DialogBase.js +0 -20
- package/lib/Entities/DialogConfirm.d.ts +0 -22
- package/lib/Entities/DialogConfirm.js +0 -30
- package/lib/Entities/DialogMarkDownEditor.d.ts +0 -14
- package/lib/Entities/DialogMarkDownEditor.js +0 -21
- package/lib/Entities/DialogRepo.d.ts +0 -8
- package/lib/Entities/DialogRepo.js +0 -38
- package/lib/Entities/DialogSpinner.d.ts +0 -15
- package/lib/Entities/DialogSpinner.js +0 -47
- package/lib/Entities/HostBoundary.d.ts +0 -10
- package/lib/Entities/HostBoundary.js +0 -2
- package/lib/Entities/HostDispatcher.d.ts +0 -16
- package/lib/Entities/HostDispatcher.js +0 -171
- package/lib/Entities/HostHandler.d.ts +0 -19
- package/lib/Entities/HostHandler.js +0 -59
- package/lib/Entities/HostHandlerX.d.ts +0 -7
- package/lib/Entities/HostHandlerX.js +0 -35
- package/lib/Entities/Logger.d.ts +0 -41
- package/lib/Entities/Logger.js +0 -117
- package/lib/Entities/VivedAPI.d.ts +0 -50
- package/lib/Entities/VivedAPI.js +0 -69
- package/lib/PresentationManagers/DevicePreview/DevicePreviewListPM.d.ts +0 -23
- package/lib/PresentationManagers/DevicePreview/DevicePreviewListPM.js +0 -50
- package/lib/PresentationManagers/Dialog/AlertDialogPM.d.ts +0 -18
- package/lib/PresentationManagers/Dialog/AlertDialogPM.js +0 -65
- package/lib/PresentationManagers/Dialog/ConfirmDialogPM.d.ts +0 -21
- package/lib/PresentationManagers/Dialog/ConfirmDialogPM.js +0 -87
- package/lib/PresentationManagers/Dialog/DialogPM.d.ts +0 -19
- package/lib/PresentationManagers/Dialog/DialogPM.js +0 -66
- package/lib/PresentationManagers/Dialog/MarkDownEditorDialogPM.d.ts +0 -17
- package/lib/PresentationManagers/Dialog/MarkDownEditorDialogPM.js +0 -68
- package/lib/PresentationManagers/Dialog/SpinnerDialogPM.d.ts +0 -16
- package/lib/PresentationManagers/Dialog/SpinnerDialogPM.js +0 -62
- package/lib/Types/ReactHookPmAdapter.d.ts +0 -6
- package/lib/Types/ReactHookPmAdapter.js +0 -2
- package/lib/UseCases/Handlers/CallbackAssetDTO.d.ts +0 -5
- package/lib/UseCases/Handlers/CallbackAssetDTO.js +0 -2
- package/lib/UseCases/Handlers/GetAssetBlobURLBase.d.ts +0 -10
- package/lib/UseCases/Handlers/GetAssetBlobURLBase.js +0 -30
- package/lib/UseCases/Handlers/GetAssetFolderURLBase.d.ts +0 -10
- package/lib/UseCases/Handlers/GetAssetFolderURLBase.js +0 -30
- package/lib/UseCases/Handlers/GetAssetMetaBase.d.ts +0 -11
- package/lib/UseCases/Handlers/GetAssetMetaBase.js +0 -30
- package/lib/UseCases/Handlers/GetAssetsForOwnerBase.d.ts +0 -11
- package/lib/UseCases/Handlers/GetAssetsForOwnerBase.js +0 -30
- package/lib/UseCases/Handlers/GetLinkedAssetsBase.d.ts +0 -11
- package/lib/UseCases/Handlers/GetLinkedAssetsBase.js +0 -30
- package/lib/UseCases/Handlers/GoToNextStateBase.d.ts +0 -9
- package/lib/UseCases/Handlers/GoToNextStateBase.js +0 -23
- package/lib/UseCases/Handlers/GoToPreviousStateBase.d.ts +0 -9
- package/lib/UseCases/Handlers/GoToPreviousStateBase.js +0 -23
- package/lib/UseCases/Handlers/HasNextStateBase.d.ts +0 -10
- package/lib/UseCases/Handlers/HasNextStateBase.js +0 -30
- package/lib/UseCases/Handlers/HasPreviousStateBase.d.ts +0 -10
- package/lib/UseCases/Handlers/HasPreviousStateBase.js +0 -30
- package/lib/UseCases/Handlers/IsAssetFetchedBase.d.ts +0 -14
- package/lib/UseCases/Handlers/IsAssetFetchedBase.js +0 -31
- package/lib/UseCases/Handlers/IsZSpaceAvailableBase.d.ts +0 -10
- package/lib/UseCases/Handlers/IsZSpaceAvailableBase.js +0 -30
- package/lib/UseCases/Handlers/NewActivityAssetBase.d.ts +0 -10
- package/lib/UseCases/Handlers/NewActivityAssetBase.js +0 -30
- package/lib/UseCases/Handlers/OnAppIsReadyBase.d.ts +0 -8
- package/lib/UseCases/Handlers/OnAppIsReadyBase.js +0 -22
- package/lib/UseCases/Handlers/OnStateChangeBase.d.ts +0 -12
- package/lib/UseCases/Handlers/OnStateChangeBase.js +0 -52
- package/lib/UseCases/Handlers/OnStateCompleteBase.d.ts +0 -8
- package/lib/UseCases/Handlers/OnStateCompleteBase.js +0 -22
- package/lib/UseCases/Handlers/RegisterExternalStyleSheetsBase.d.ts +0 -10
- package/lib/UseCases/Handlers/RegisterExternalStyleSheetsBase.js +0 -30
- package/lib/UseCases/Handlers/RestoreCurrentStateBase.d.ts +0 -9
- package/lib/UseCases/Handlers/RestoreCurrentStateBase.js +0 -23
- package/lib/UseCases/Handlers/ShowAlertBase.d.ts +0 -16
- package/lib/UseCases/Handlers/ShowAlertBase.js +0 -33
- package/lib/UseCases/Handlers/ShowConfirmBase.d.ts +0 -18
- package/lib/UseCases/Handlers/ShowConfirmBase.js +0 -35
- package/lib/UseCases/Handlers/ShowMarkDownEditorBase.d.ts +0 -15
- package/lib/UseCases/Handlers/ShowMarkDownEditorBase.js +0 -31
- package/lib/UseCases/Handlers/ShowSelectModelBase.d.ts +0 -10
- package/lib/UseCases/Handlers/ShowSelectModelBase.js +0 -30
- package/lib/UseCases/Handlers/ShowSpinnerBase.d.ts +0 -15
- package/lib/UseCases/Handlers/ShowSpinnerBase.js +0 -32
- package/lib/UseCases/Handlers/StartZSpaceBase.d.ts +0 -9
- package/lib/UseCases/Handlers/StartZSpaceBase.js +0 -23
- package/lib/UseCases/Handlers/StopZSpaceBase.d.ts +0 -9
- package/lib/UseCases/Handlers/StopZSpaceBase.js +0 -23
- package/lib/UseCases/Handlers/SubmitActivityAssetBase.d.ts +0 -10
- package/lib/UseCases/Handlers/SubmitActivityAssetBase.js +0 -30
- package/lib/UseCases/Handlers/SubmitLogBase.d.ts +0 -11
- package/lib/UseCases/Handlers/SubmitLogBase.js +0 -32
- package/lib/UseCases/Handlers/SubmitResultBase.d.ts +0 -32
- package/lib/UseCases/Handlers/SubmitResultBase.js +0 -43
- package/lib/UseCases/Handlers/index.d.ts +0 -6
- package/lib/UseCases/index.d.ts +0 -1
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppAssetListPM = void 0;
|
|
3
|
+
exports.makeAppAssetListPM = exports.AppAssetListPM = void 0;
|
|
4
4
|
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
5
|
const AppAssetsEntity_1 = require("../Entities/AppAssetsEntity");
|
|
6
6
|
const AssetRepo_1 = require("../Entities/AssetRepo");
|
|
7
7
|
class AppAssetListPM extends HostAppObject_1.HostAppObjectPM {
|
|
8
|
+
static get(appObjects) {
|
|
9
|
+
return HostAppObject_1.getSingletonComponent(AppAssetListPM.type, appObjects);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.AppAssetListPM = AppAssetListPM;
|
|
13
|
+
AppAssetListPM.type = "AppAssetListPM";
|
|
14
|
+
function makeAppAssetListPM(appObject) {
|
|
15
|
+
return new AppAssetListPMImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeAppAssetListPM = makeAppAssetListPM;
|
|
18
|
+
class AppAssetListPMImp extends AppAssetListPM {
|
|
8
19
|
constructor(appObject) {
|
|
9
20
|
super(appObject, AppAssetListPM.type);
|
|
10
21
|
this.onAppAssetsChange = () => {
|
|
@@ -27,16 +38,13 @@ class AppAssetListPM extends HostAppObject_1.HostAppObjectPM {
|
|
|
27
38
|
};
|
|
28
39
|
this.appAssets = appObject.getComponent(AppAssetsEntity_1.AppAssetsEntity.type);
|
|
29
40
|
if (!this.appAssets) {
|
|
30
|
-
this.error(
|
|
41
|
+
this.error("PM has been added to an app object without an AppAssetsEntity");
|
|
31
42
|
return;
|
|
32
43
|
}
|
|
33
44
|
this.appAssets.addChangeObserver(this.onAppAssetsChange);
|
|
34
45
|
this.appObjects.registerSingleton(this);
|
|
35
46
|
this.onAppAssetsChange();
|
|
36
47
|
}
|
|
37
|
-
static get(appObjects) {
|
|
38
|
-
return HostAppObject_1.getSingletonComponent(AppAssetListPM.type, appObjects);
|
|
39
|
-
}
|
|
40
48
|
get assetRepo() {
|
|
41
49
|
return this.getCachedSingleton(AssetRepo_1.AssetRepo.type);
|
|
42
50
|
}
|
|
@@ -53,5 +61,3 @@ class AppAssetListPM extends HostAppObject_1.HostAppObjectPM {
|
|
|
53
61
|
return listsAreEqual;
|
|
54
62
|
}
|
|
55
63
|
}
|
|
56
|
-
exports.AppAssetListPM = AppAssetListPM;
|
|
57
|
-
AppAssetListPM.type = 'AppAssetListPM';
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { HostAppObject, HostAppObjectPM, HostAppObjectRepo } from
|
|
1
|
+
import { HostAppObject, HostAppObjectPM, HostAppObjectRepo } from "../../../HostAppObject";
|
|
2
2
|
export interface AssetVM {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
archived: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare class AssetPM extends HostAppObjectPM<AssetVM> {
|
|
8
|
+
export declare abstract class AssetPM extends HostAppObjectPM<AssetVM> {
|
|
9
9
|
static type: string;
|
|
10
10
|
static getByID(assetID: string, appObjects: HostAppObjectRepo): AssetPM | undefined;
|
|
11
|
-
private asset?;
|
|
12
|
-
vmsAreEqual(a: AssetVM, b: AssetVM): boolean;
|
|
13
|
-
private onAssetChange;
|
|
14
|
-
constructor(appObject: HostAppObject);
|
|
15
11
|
}
|
|
12
|
+
export declare function makeAssetPM(appObject: HostAppObject): AssetPM;
|
|
16
13
|
export declare const defaultAssetVM: AssetVM;
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultAssetVM = exports.AssetPM = void 0;
|
|
3
|
+
exports.defaultAssetVM = exports.makeAssetPM = exports.AssetPM = void 0;
|
|
4
4
|
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
5
|
const AssetEntity_1 = require("../Entities/AssetEntity");
|
|
6
6
|
class AssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
7
|
+
static getByID(assetID, appObjects) {
|
|
8
|
+
const appObject = appObjects.get(assetID);
|
|
9
|
+
if (!appObject) {
|
|
10
|
+
appObjects.submitWarning("AssetPM.getByID", "Unable to find app object by ID " + assetID);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
const pm = appObject.getComponent(AssetPM.type);
|
|
14
|
+
if (!pm) {
|
|
15
|
+
appObjects.submitWarning("AssetPM.getByID", "App Object does not have a AssetPM");
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
return pm;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AssetPM = AssetPM;
|
|
22
|
+
AssetPM.type = "AssetPM";
|
|
23
|
+
function makeAssetPM(appObject) {
|
|
24
|
+
return new AssetPMImp(appObject);
|
|
25
|
+
}
|
|
26
|
+
exports.makeAssetPM = makeAssetPM;
|
|
27
|
+
class AssetPMImp extends AssetPM {
|
|
7
28
|
constructor(appObject) {
|
|
8
29
|
super(appObject, AssetPM.type);
|
|
9
30
|
this.onAssetChange = () => {
|
|
@@ -13,31 +34,18 @@ class AssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
|
13
34
|
archived: this.asset.archived,
|
|
14
35
|
description: this.asset.description,
|
|
15
36
|
id: this.asset.id,
|
|
16
|
-
name: this.asset.name
|
|
37
|
+
name: this.asset.name
|
|
17
38
|
};
|
|
18
39
|
this.doUpdateView(vm);
|
|
19
40
|
};
|
|
20
41
|
this.asset = appObject.getComponent(AssetEntity_1.AssetEntity.type);
|
|
21
42
|
if (!this.asset) {
|
|
22
|
-
this.warn(
|
|
43
|
+
this.warn("PM has been added to an App Object without an AssetEntity");
|
|
23
44
|
return;
|
|
24
45
|
}
|
|
25
46
|
this.asset.addChangeObserver(this.onAssetChange);
|
|
26
47
|
this.onAssetChange();
|
|
27
48
|
}
|
|
28
|
-
static getByID(assetID, appObjects) {
|
|
29
|
-
const appObject = appObjects.get(assetID);
|
|
30
|
-
if (!appObject) {
|
|
31
|
-
appObjects.submitWarning('AssetPM.getByID', 'Unable to find app object by ID ' + assetID);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
const pm = appObject.getComponent(AssetPM.type);
|
|
35
|
-
if (!pm) {
|
|
36
|
-
appObjects.submitWarning('AssetPM.getByID', 'App Object does not have a AssetPM');
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
return pm;
|
|
40
|
-
}
|
|
41
49
|
vmsAreEqual(a, b) {
|
|
42
50
|
if (a.archived !== b.archived)
|
|
43
51
|
return false;
|
|
@@ -50,11 +58,9 @@ class AssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
|
50
58
|
return true;
|
|
51
59
|
}
|
|
52
60
|
}
|
|
53
|
-
exports.AssetPM = AssetPM;
|
|
54
|
-
AssetPM.type = 'AssetPM';
|
|
55
61
|
exports.defaultAssetVM = {
|
|
56
62
|
archived: false,
|
|
57
|
-
description:
|
|
58
|
-
id:
|
|
59
|
-
name:
|
|
63
|
+
description: "",
|
|
64
|
+
id: "",
|
|
65
|
+
name: ""
|
|
60
66
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HostAppObject, HostAppObjectPM, HostAppObjectRepo } from
|
|
1
|
+
import { HostAppObject, HostAppObjectPM, HostAppObjectRepo } from "../../../HostAppObject";
|
|
2
2
|
export interface EditingAppAssetVM {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
@@ -6,11 +6,8 @@ export interface EditingAppAssetVM {
|
|
|
6
6
|
archived: boolean;
|
|
7
7
|
filename: string;
|
|
8
8
|
}
|
|
9
|
-
export declare class EditingAppAssetPM extends HostAppObjectPM<EditingAppAssetVM | undefined> {
|
|
9
|
+
export declare abstract class EditingAppAssetPM extends HostAppObjectPM<EditingAppAssetVM | undefined> {
|
|
10
10
|
static type: string;
|
|
11
11
|
static get(appObjects: HostAppObjectRepo): EditingAppAssetPM | undefined;
|
|
12
|
-
private appAssets?;
|
|
13
|
-
vmsAreEqual(a: EditingAppAssetVM | undefined, b: EditingAppAssetVM | undefined): boolean;
|
|
14
|
-
private onAssetChange;
|
|
15
|
-
constructor(appObject: HostAppObject);
|
|
16
12
|
}
|
|
13
|
+
export declare function makeEditingAppAssetPM(appObject: HostAppObject): EditingAppAssetPM;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EditingAppAssetPM = void 0;
|
|
3
|
+
exports.makeEditingAppAssetPM = exports.EditingAppAssetPM = void 0;
|
|
4
4
|
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
5
|
const AppAssetsEntity_1 = require("../Entities/AppAssetsEntity");
|
|
6
6
|
class EditingAppAssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
7
|
+
static get(appObjects) {
|
|
8
|
+
return HostAppObject_1.getSingletonComponent(EditingAppAssetPM.type, appObjects);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EditingAppAssetPM = EditingAppAssetPM;
|
|
12
|
+
EditingAppAssetPM.type = "EditingAppAssetPM";
|
|
13
|
+
function makeEditingAppAssetPM(appObject) {
|
|
14
|
+
return new EditingAppAssetPMImp(appObject);
|
|
15
|
+
}
|
|
16
|
+
exports.makeEditingAppAssetPM = makeEditingAppAssetPM;
|
|
17
|
+
class EditingAppAssetPMImp extends EditingAppAssetPM {
|
|
7
18
|
constructor(appObject) {
|
|
8
19
|
super(appObject, EditingAppAssetPM.type);
|
|
9
20
|
this.onAssetChange = () => {
|
|
@@ -16,7 +27,7 @@ class EditingAppAssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
|
16
27
|
name,
|
|
17
28
|
description,
|
|
18
29
|
archived,
|
|
19
|
-
filename
|
|
30
|
+
filename
|
|
20
31
|
};
|
|
21
32
|
this.doUpdateView(vm);
|
|
22
33
|
}
|
|
@@ -26,16 +37,13 @@ class EditingAppAssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
|
26
37
|
};
|
|
27
38
|
this.appAssets = appObject.getComponent(AppAssetsEntity_1.AppAssetsEntity.type);
|
|
28
39
|
if (!this.appAssets) {
|
|
29
|
-
this.warn(
|
|
40
|
+
this.warn("PM has been added to an App Object without an AppAssetsEntity");
|
|
30
41
|
return;
|
|
31
42
|
}
|
|
32
43
|
this.appObjects.registerSingleton(this);
|
|
33
44
|
this.appAssets.addChangeObserver(this.onAssetChange);
|
|
34
45
|
this.onAssetChange();
|
|
35
46
|
}
|
|
36
|
-
static get(appObjects) {
|
|
37
|
-
return HostAppObject_1.getSingletonComponent(EditingAppAssetPM.type, appObjects);
|
|
38
|
-
}
|
|
39
47
|
vmsAreEqual(a, b) {
|
|
40
48
|
if (a === undefined && b === undefined)
|
|
41
49
|
return true;
|
|
@@ -52,5 +60,3 @@ class EditingAppAssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
|
52
60
|
return true;
|
|
53
61
|
}
|
|
54
62
|
}
|
|
55
|
-
exports.EditingAppAssetPM = EditingAppAssetPM;
|
|
56
|
-
EditingAppAssetPM.type = 'EditingAppAssetPM';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { HostAppObject, HostAppObjectPM, HostAppObjectRepo } from
|
|
2
|
-
export declare class ShowArchivedAppAssetPM extends HostAppObjectPM<boolean> {
|
|
1
|
+
import { HostAppObject, HostAppObjectPM, HostAppObjectRepo } from "../../../HostAppObject";
|
|
2
|
+
export declare abstract class ShowArchivedAppAssetPM extends HostAppObjectPM<boolean> {
|
|
3
3
|
static type: string;
|
|
4
4
|
static get(appObjects: HostAppObjectRepo): ShowArchivedAppAssetPM | undefined;
|
|
5
|
-
private appAssets?;
|
|
6
|
-
vmsAreEqual(a: boolean, b: boolean): boolean;
|
|
7
|
-
private onAssetChange;
|
|
8
|
-
constructor(appObject: HostAppObject);
|
|
9
5
|
}
|
|
6
|
+
export declare function makeShowArchivedAppAssetPM(appObject: HostAppObject): ShowArchivedAppAssetPM;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShowArchivedAppAssetPM = void 0;
|
|
3
|
+
exports.makeShowArchivedAppAssetPM = exports.ShowArchivedAppAssetPM = void 0;
|
|
4
4
|
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
5
|
const AppAssetsEntity_1 = require("../Entities/AppAssetsEntity");
|
|
6
6
|
class ShowArchivedAppAssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
7
|
+
static get(appObjects) {
|
|
8
|
+
return HostAppObject_1.getSingletonComponent(ShowArchivedAppAssetPM.type, appObjects);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ShowArchivedAppAssetPM = ShowArchivedAppAssetPM;
|
|
12
|
+
ShowArchivedAppAssetPM.type = "ShowArchivedAppAssetPM";
|
|
13
|
+
function makeShowArchivedAppAssetPM(appObject) {
|
|
14
|
+
return new ShowArchivedAppAssetPMImp(appObject);
|
|
15
|
+
}
|
|
16
|
+
exports.makeShowArchivedAppAssetPM = makeShowArchivedAppAssetPM;
|
|
17
|
+
class ShowArchivedAppAssetPMImp extends ShowArchivedAppAssetPM {
|
|
7
18
|
constructor(appObject) {
|
|
8
19
|
super(appObject, ShowArchivedAppAssetPM.type);
|
|
9
20
|
this.onAssetChange = () => {
|
|
@@ -13,19 +24,14 @@ class ShowArchivedAppAssetPM extends HostAppObject_1.HostAppObjectPM {
|
|
|
13
24
|
};
|
|
14
25
|
this.appAssets = appObject.getComponent(AppAssetsEntity_1.AppAssetsEntity.type);
|
|
15
26
|
if (!this.appAssets) {
|
|
16
|
-
this.warn(
|
|
27
|
+
this.warn("PM has been added to an App Object without an AppAssetsEntity");
|
|
17
28
|
return;
|
|
18
29
|
}
|
|
19
30
|
this.appObjects.registerSingleton(this);
|
|
20
31
|
this.appAssets.addChangeObserver(this.onAssetChange);
|
|
21
32
|
this.onAssetChange();
|
|
22
33
|
}
|
|
23
|
-
static get(appObjects) {
|
|
24
|
-
return HostAppObject_1.getSingletonComponent(ShowArchivedAppAssetPM.type, appObjects);
|
|
25
|
-
}
|
|
26
34
|
vmsAreEqual(a, b) {
|
|
27
35
|
return a === b;
|
|
28
36
|
}
|
|
29
37
|
}
|
|
30
|
-
exports.ShowArchivedAppAssetPM = ShowArchivedAppAssetPM;
|
|
31
|
-
ShowArchivedAppAssetPM.type = 'ShowArchivedAppAssetPM';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo, HostAppObjectUC } from "../../../HostAppObject";
|
|
2
|
+
export declare abstract class EditAppAssetUC extends HostAppObjectUC {
|
|
3
|
+
static type: string;
|
|
4
|
+
abstract editAsset(assetID: string): void;
|
|
5
|
+
static get(appObjects: HostAppObjectRepo): EditAppAssetUC | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function makeEditAppAsset(appObject: HostAppObject): EditAppAssetUC;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeEditAppAsset = exports.EditAppAssetUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const AppSandboxEntity_1 = require("../../AppSandbox/Entities/AppSandboxEntity");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
class EditAppAssetUC extends HostAppObject_1.HostAppObjectUC {
|
|
8
|
+
static get(appObjects) {
|
|
9
|
+
return HostAppObject_1.getSingletonComponent(EditAppAssetUC.type, appObjects);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.EditAppAssetUC = EditAppAssetUC;
|
|
13
|
+
EditAppAssetUC.type = "EditAppAssetUC";
|
|
14
|
+
function makeEditAppAsset(appObject) {
|
|
15
|
+
return new GetAssetUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeEditAppAsset = makeEditAppAsset;
|
|
18
|
+
class GetAssetUCImp extends EditAppAssetUC {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
super(appObject, EditAppAssetUC.type);
|
|
21
|
+
this.editAsset = (assetID) => {
|
|
22
|
+
if (!this.assetRepo || !this.appAssets || !this.sandbox)
|
|
23
|
+
return;
|
|
24
|
+
const asset = this.assetRepo.get(assetID);
|
|
25
|
+
if (!asset) {
|
|
26
|
+
this.warn("Unable to find asset by id: " + assetID);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.appAssets.editingAsset = asset;
|
|
30
|
+
this.sandbox.state = AppSandboxEntity_1.SandboxState.EDIT_ASSET;
|
|
31
|
+
};
|
|
32
|
+
this.appObjects.registerSingleton(this);
|
|
33
|
+
this.assetRepo = appObject.getComponent(Entities_1.AssetRepo.type);
|
|
34
|
+
if (!this.assetRepo) {
|
|
35
|
+
this.error("UC added to an App Object that does not have AssetRepo");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
get appAssets() {
|
|
40
|
+
return this.getCachedSingleton(Entities_1.AppAssetsEntity.type);
|
|
41
|
+
}
|
|
42
|
+
get sandbox() {
|
|
43
|
+
return this.getCachedSingleton(AppSandboxEntity_1.AppSandboxEntity.type);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo, HostAppObjectUC } from "../../../HostAppObject";
|
|
2
|
+
export interface NewAppAssetDTO {
|
|
3
|
+
file: File;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class NewAppAssetUC extends HostAppObjectUC {
|
|
8
|
+
static type: string;
|
|
9
|
+
abstract create(data: NewAppAssetDTO): Promise<void>;
|
|
10
|
+
static get(appObjects: HostAppObjectRepo): NewAppAssetUC | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare function makeNewAppAssetUC(appObject: HostAppObject): NewAppAssetUC;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeNewAppAssetUC = exports.NewAppAssetUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const Entities_1 = require("../../AppSandbox/Entities");
|
|
6
|
+
const Dialog_1 = require("../../Dialog");
|
|
7
|
+
const UCs_1 = require("../../VivedAPI/UCs");
|
|
8
|
+
const Entities_2 = require("../Entities");
|
|
9
|
+
class NewAppAssetUC extends HostAppObject_1.HostAppObjectUC {
|
|
10
|
+
static get(appObjects) {
|
|
11
|
+
return HostAppObject_1.getSingletonComponent(NewAppAssetUC.type, appObjects);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.NewAppAssetUC = NewAppAssetUC;
|
|
15
|
+
NewAppAssetUC.type = "NewAppAssetUC";
|
|
16
|
+
function makeNewAppAssetUC(appObject) {
|
|
17
|
+
return new NewAppAssetUCImp(appObject);
|
|
18
|
+
}
|
|
19
|
+
exports.makeNewAppAssetUC = makeNewAppAssetUC;
|
|
20
|
+
class NewAppAssetUCImp extends NewAppAssetUC {
|
|
21
|
+
constructor(appObject) {
|
|
22
|
+
super(appObject, NewAppAssetUC.type);
|
|
23
|
+
this.create = (data) => {
|
|
24
|
+
const appAssets = this.appAssets;
|
|
25
|
+
const postNewAsset = this.postNewAsset;
|
|
26
|
+
const sandbox = this.sandbox;
|
|
27
|
+
const assetRepo = this.assetRepo;
|
|
28
|
+
if (!appAssets || !postNewAsset || !sandbox || !assetRepo) {
|
|
29
|
+
return Promise.reject();
|
|
30
|
+
}
|
|
31
|
+
return new Promise((resolve) => {
|
|
32
|
+
var _a;
|
|
33
|
+
const { description, file, name } = data;
|
|
34
|
+
const newAssetData = {
|
|
35
|
+
description,
|
|
36
|
+
name,
|
|
37
|
+
file,
|
|
38
|
+
ownerID: sandbox.appID
|
|
39
|
+
};
|
|
40
|
+
const spinnerDialog = (_a = this.spinnerFactory) === null || _a === void 0 ? void 0 : _a.make({
|
|
41
|
+
title: "New App Asset",
|
|
42
|
+
message: "Posting new app asset..."
|
|
43
|
+
});
|
|
44
|
+
postNewAsset(newAssetData)
|
|
45
|
+
.then((resp) => {
|
|
46
|
+
appAssets.add(resp.id);
|
|
47
|
+
const newAsset = assetRepo.assetFactory(resp.id);
|
|
48
|
+
newAsset.setFile(file);
|
|
49
|
+
newAsset.description = description;
|
|
50
|
+
newAsset.name = name;
|
|
51
|
+
newAsset.filename = resp.filename;
|
|
52
|
+
assetRepo.add(newAsset);
|
|
53
|
+
this.sandbox.state = Entities_1.SandboxState.MOUNTED;
|
|
54
|
+
spinnerDialog === null || spinnerDialog === void 0 ? void 0 : spinnerDialog.close();
|
|
55
|
+
resolve();
|
|
56
|
+
})
|
|
57
|
+
.catch((e) => {
|
|
58
|
+
var _a;
|
|
59
|
+
this.error("create new asset error: " + e.message);
|
|
60
|
+
spinnerDialog === null || spinnerDialog === void 0 ? void 0 : spinnerDialog.close();
|
|
61
|
+
const dialogDTO = {
|
|
62
|
+
buttonLabel: "OK",
|
|
63
|
+
message: `Something went wrong when creating a new app asset. Check the console. ${e.message}`,
|
|
64
|
+
title: "New App Asset Error"
|
|
65
|
+
};
|
|
66
|
+
(_a = this.alertFactory) === null || _a === void 0 ? void 0 : _a.make(dialogDTO);
|
|
67
|
+
resolve();
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
this.appObjects.registerSingleton(this);
|
|
72
|
+
this.appAssets = appObject.getComponent(Entities_2.AppAssetsEntity.type);
|
|
73
|
+
if (!this.appAssets) {
|
|
74
|
+
this.error("UC added to an App Object that does not have AppAssetsEntity");
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
get postNewAsset() {
|
|
79
|
+
var _a;
|
|
80
|
+
return (_a = this.getCachedSingleton(UCs_1.PostNewAssetUC.type)) === null || _a === void 0 ? void 0 : _a.doPost;
|
|
81
|
+
}
|
|
82
|
+
get assetRepo() {
|
|
83
|
+
return this.getCachedSingleton(Entities_2.AssetRepo.type);
|
|
84
|
+
}
|
|
85
|
+
get sandbox() {
|
|
86
|
+
return this.getCachedSingleton(Entities_1.AppSandboxEntity.type);
|
|
87
|
+
}
|
|
88
|
+
get spinnerFactory() {
|
|
89
|
+
return this.getCachedSingleton(Dialog_1.MakeSpinnerDialogUC.type);
|
|
90
|
+
}
|
|
91
|
+
get alertFactory() {
|
|
92
|
+
return this.getCachedSingleton(Dialog_1.MakeAlertDialogUC.type);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.makePrefetchAssets = exports.PrefetchAssetsUC = void 0;
|
|
13
13
|
const HostAppObject_1 = require("../../../HostAppObject");
|
|
14
|
-
const
|
|
14
|
+
const Entities_1 = require("../../StateMachine/Entities");
|
|
15
15
|
const GetAssetFileUC_1 = require("./GetAssetFileUC");
|
|
16
16
|
class PrefetchAssetsUC extends HostAppObject_1.HostAppObjectUC {
|
|
17
17
|
static get(appObjects) {
|
|
@@ -60,7 +60,7 @@ class HostAppObjectRepoImp extends PrefetchAssetsUC {
|
|
|
60
60
|
this.appObjects.registerSingleton(this);
|
|
61
61
|
}
|
|
62
62
|
get stateMachine() {
|
|
63
|
-
return this.getCachedSingleton(
|
|
63
|
+
return this.getCachedSingleton(Entities_1.HostStateMachine.type);
|
|
64
64
|
}
|
|
65
65
|
get fetchAssetFile() {
|
|
66
66
|
var _a;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo, HostAppObjectUC } from "../../../HostAppObject";
|
|
2
|
+
export interface UpdateAppAssetMetaDTO {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
archived: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class UpdateAppAssetMetaUC extends HostAppObjectUC {
|
|
8
|
+
static type: string;
|
|
9
|
+
abstract updateMeta(data: UpdateAppAssetMetaDTO): Promise<void>;
|
|
10
|
+
static get(assetID: string, appObjects: HostAppObjectRepo): UpdateAppAssetMetaUC | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare function makeUpdateAppAssetMetaUC(appObject: HostAppObject): UpdateAppAssetMetaUC;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeUpdateAppAssetMetaUC = exports.UpdateAppAssetMetaUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const AppSandboxEntity_1 = require("../../AppSandbox/Entities/AppSandboxEntity");
|
|
6
|
+
const UCs_1 = require("../../Dialog/UCs");
|
|
7
|
+
const PatchAssetMetaUC_1 = require("../../VivedAPI/UCs/PatchAssetMetaUC");
|
|
8
|
+
const Entities_1 = require("../Entities");
|
|
9
|
+
class UpdateAppAssetMetaUC extends HostAppObject_1.HostAppObjectUC {
|
|
10
|
+
static get(assetID, appObjects) {
|
|
11
|
+
const appObject = appObjects.get(assetID);
|
|
12
|
+
if (!appObject) {
|
|
13
|
+
appObjects.submitWarning("UpdateAppAssetMetaUC.get", "Unable to find app object");
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
const uc = appObject.getComponent(UpdateAppAssetMetaUC.type);
|
|
17
|
+
if (!uc) {
|
|
18
|
+
appObjects.submitWarning("UpdateAppAssetMetaUC.get", "App Object does not have UpdateAssetMetaUC");
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
return uc;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.UpdateAppAssetMetaUC = UpdateAppAssetMetaUC;
|
|
25
|
+
UpdateAppAssetMetaUC.type = "UpdateAppAssetMetaUC";
|
|
26
|
+
function makeUpdateAppAssetMetaUC(appObject) {
|
|
27
|
+
return new UpdateAppAssetMetaUCImp(appObject);
|
|
28
|
+
}
|
|
29
|
+
exports.makeUpdateAppAssetMetaUC = makeUpdateAppAssetMetaUC;
|
|
30
|
+
class UpdateAppAssetMetaUCImp extends UpdateAppAssetMetaUC {
|
|
31
|
+
constructor(appObject) {
|
|
32
|
+
super(appObject, UpdateAppAssetMetaUC.type);
|
|
33
|
+
this.updateMeta = (data) => {
|
|
34
|
+
var _a;
|
|
35
|
+
const asset = this.asset;
|
|
36
|
+
if (!asset) {
|
|
37
|
+
return Promise.reject(new Error("No Asset Entity"));
|
|
38
|
+
}
|
|
39
|
+
const patchAssetMeta = this.patchAssetMeta;
|
|
40
|
+
if (!patchAssetMeta) {
|
|
41
|
+
return Promise.reject(new Error("No Patch UC"));
|
|
42
|
+
}
|
|
43
|
+
const { archived, description, name } = data;
|
|
44
|
+
const spinnerDialog = (_a = this.spinnerFactory) === null || _a === void 0 ? void 0 : _a.make({
|
|
45
|
+
title: "Asset Meta",
|
|
46
|
+
message: "Updating asset's meta..."
|
|
47
|
+
});
|
|
48
|
+
return new Promise((resolve, reject) => {
|
|
49
|
+
patchAssetMeta({
|
|
50
|
+
archived,
|
|
51
|
+
description,
|
|
52
|
+
id: asset.id,
|
|
53
|
+
name
|
|
54
|
+
})
|
|
55
|
+
.then(() => {
|
|
56
|
+
asset.archived = archived;
|
|
57
|
+
asset.name = name;
|
|
58
|
+
asset.description = description;
|
|
59
|
+
spinnerDialog === null || spinnerDialog === void 0 ? void 0 : spinnerDialog.close();
|
|
60
|
+
if (this.sandbox)
|
|
61
|
+
this.sandbox.state = AppSandboxEntity_1.SandboxState.MOUNTED;
|
|
62
|
+
resolve();
|
|
63
|
+
})
|
|
64
|
+
.catch((e) => {
|
|
65
|
+
var _a;
|
|
66
|
+
this.error("Patch asset error: " + e.message);
|
|
67
|
+
spinnerDialog === null || spinnerDialog === void 0 ? void 0 : spinnerDialog.close();
|
|
68
|
+
const dialogDTO = {
|
|
69
|
+
buttonLabel: "OK",
|
|
70
|
+
message: `Something went wrong when updating the assets meta. Check the console. ${e.message}`,
|
|
71
|
+
title: "Update Asset Error"
|
|
72
|
+
};
|
|
73
|
+
(_a = this.alertFactory) === null || _a === void 0 ? void 0 : _a.make(dialogDTO);
|
|
74
|
+
resolve();
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
get asset() {
|
|
80
|
+
return this.getCachedLocalComponent(Entities_1.AssetEntity.type);
|
|
81
|
+
}
|
|
82
|
+
get spinnerFactory() {
|
|
83
|
+
return this.getCachedSingleton(UCs_1.MakeSpinnerDialogUC.type);
|
|
84
|
+
}
|
|
85
|
+
get patchAssetMeta() {
|
|
86
|
+
var _a;
|
|
87
|
+
return (_a = this.getCachedSingleton(PatchAssetMetaUC_1.PatchAssetMetaUC.type)) === null || _a === void 0 ? void 0 : _a.doPatch;
|
|
88
|
+
}
|
|
89
|
+
get alertFactory() {
|
|
90
|
+
return this.getCachedSingleton(UCs_1.MakeAlertDialogUC.type);
|
|
91
|
+
}
|
|
92
|
+
get sandbox() {
|
|
93
|
+
return this.getCachedSingleton(AppSandboxEntity_1.AppSandboxEntity.type);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export * from "./ArchiveAssetUC";
|
|
2
2
|
export * from "./DeleteAssetUC";
|
|
3
3
|
export * from "./DownloadAssetFileUC";
|
|
4
|
+
export * from "./EditAppAssetUC";
|
|
4
5
|
export * from "./GetAppAssetsUC";
|
|
5
6
|
export * from "./GetAssetBlobURLUC";
|
|
6
7
|
export * from "./GetAssetFileUC";
|
|
7
8
|
export * from "./GetAssetUC";
|
|
9
|
+
export * from "./NewAppAssetUC";
|
|
8
10
|
export * from "./PrefetchAssetsUC";
|
|
11
|
+
export * from "./UpdateAppAssetMetaUC";
|
|
9
12
|
export * from "./UpdateAssetFileUC";
|
|
@@ -13,9 +13,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./ArchiveAssetUC"), exports);
|
|
14
14
|
__exportStar(require("./DeleteAssetUC"), exports);
|
|
15
15
|
__exportStar(require("./DownloadAssetFileUC"), exports);
|
|
16
|
+
__exportStar(require("./EditAppAssetUC"), exports);
|
|
16
17
|
__exportStar(require("./GetAppAssetsUC"), exports);
|
|
17
18
|
__exportStar(require("./GetAssetBlobURLUC"), exports);
|
|
18
19
|
__exportStar(require("./GetAssetFileUC"), exports);
|
|
19
20
|
__exportStar(require("./GetAssetUC"), exports);
|
|
21
|
+
__exportStar(require("./NewAppAssetUC"), exports);
|
|
20
22
|
__exportStar(require("./PrefetchAssetsUC"), exports);
|
|
23
|
+
__exportStar(require("./UpdateAppAssetMetaUC"), exports);
|
|
21
24
|
__exportStar(require("./UpdateAssetFileUC"), exports);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./Adapters";
|
|
2
|
+
export * from "./Controllers";
|
|
3
|
+
export * from "./Entities";
|
|
4
|
+
export * from "./Factories";
|
|
5
|
+
export * from "./Mocks";
|
|
6
|
+
export * from "./PMs";
|
|
7
|
+
export * from "./UCs";
|
|
@@ -10,8 +10,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./Adapters"), exports);
|
|
13
14
|
__exportStar(require("./Controllers"), exports);
|
|
14
15
|
__exportStar(require("./Entities"), exports);
|
|
16
|
+
__exportStar(require("./Factories"), exports);
|
|
15
17
|
__exportStar(require("./Mocks"), exports);
|
|
16
18
|
__exportStar(require("./PMs"), exports);
|
|
17
19
|
__exportStar(require("./UCs"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.challengeResultsListAdapter = void 0;
|
|
4
|
+
const ChallengeResultsListPM_1 = require("../PMs/ChallengeResultsListPM");
|
|
5
|
+
exports.challengeResultsListAdapter = {
|
|
6
|
+
defaultVM: [],
|
|
7
|
+
subscribe: (appObjects, setVM) => {
|
|
8
|
+
const pm = ChallengeResultsListPM_1.ChallengeResultsListPM.get(appObjects);
|
|
9
|
+
if (!pm) {
|
|
10
|
+
appObjects.submitError("challengeResultsListAdapter", "Unable to find ChallengeResultsListPM");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
pm.addView(setVM);
|
|
14
|
+
},
|
|
15
|
+
unsubscribe: (appObjects, setVM) => {
|
|
16
|
+
const pm = ChallengeResultsListPM_1.ChallengeResultsListPM.get(appObjects);
|
|
17
|
+
if (!pm) {
|
|
18
|
+
appObjects.submitError("challengeResultsListAdapter", "Unable to find ChallengeResultsListPM");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
pm.removeView(setVM);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./challengeResultsListAdapter";
|