@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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { CancelEditingUC } from "../UCs/CancelEditing/CancelEditingUC";
|
|
4
|
+
export declare class CancelEditingUCMock extends CancelEditingUC {
|
|
5
|
+
cancel: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeCancelEditingUCMock(appObjects: HostAppObjectRepo): CancelEditingUCMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeCancelEditingUCMock = exports.CancelEditingUCMock = void 0;
|
|
4
|
+
const CancelEditingUC_1 = require("../UCs/CancelEditing/CancelEditingUC");
|
|
5
|
+
class CancelEditingUCMock extends CancelEditingUC_1.CancelEditingUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, CancelEditingUC_1.CancelEditingUC.type);
|
|
8
|
+
this.cancel = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CancelEditingUCMock = CancelEditingUCMock;
|
|
12
|
+
function makeCancelEditingUCMock(appObjects) {
|
|
13
|
+
return new CancelEditingUCMock(appObjects.getOrCreate("CancelEditingUCMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeCancelEditingUCMock = makeCancelEditingUCMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { ConsumeStateUC } from "../UCs/ConsumeState/ConsumeStateUC";
|
|
4
|
+
export declare class ConsumeStateUCMock extends ConsumeStateUC {
|
|
5
|
+
consume: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeConsumeStateUCMock(appObjects: HostAppObjectRepo): ConsumeStateUCMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeConsumeStateUCMock = exports.ConsumeStateUCMock = void 0;
|
|
4
|
+
const ConsumeStateUC_1 = require("../UCs/ConsumeState/ConsumeStateUC");
|
|
5
|
+
class ConsumeStateUCMock extends ConsumeStateUC_1.ConsumeStateUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, ConsumeStateUC_1.ConsumeStateUC.type);
|
|
8
|
+
this.consume = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ConsumeStateUCMock = ConsumeStateUCMock;
|
|
12
|
+
function makeConsumeStateUCMock(appObjects) {
|
|
13
|
+
return new ConsumeStateUCMock(appObjects.getOrCreate("ConsumeStateUCMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeConsumeStateUCMock = makeConsumeStateUCMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { EditStateUC } from "../UCs/EditState/EditStateUC";
|
|
4
|
+
export declare class EditStateUCMock extends EditStateUC {
|
|
5
|
+
edit: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeEditStateUCMock(appObjects: HostAppObjectRepo): EditStateUCMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeEditStateUCMock = exports.EditStateUCMock = void 0;
|
|
4
|
+
const EditStateUC_1 = require("../UCs/EditState/EditStateUC");
|
|
5
|
+
class EditStateUCMock extends EditStateUC_1.EditStateUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, EditStateUC_1.EditStateUC.type);
|
|
8
|
+
this.edit = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EditStateUCMock = EditStateUCMock;
|
|
12
|
+
function makeEditStateUCMock(appObjects) {
|
|
13
|
+
return new EditStateUCMock(appObjects.getOrCreate("EditStateUCMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeEditStateUCMock = makeEditStateUCMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { EndActivityUC } from "../UCs/EndActivity/EndActivityUC";
|
|
4
|
+
export declare class EndActivityUCMock extends EndActivityUC {
|
|
5
|
+
end: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeEndActivityUCMock(appObjects: HostAppObjectRepo): EndActivityUCMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeEndActivityUCMock = exports.EndActivityUCMock = void 0;
|
|
4
|
+
const EndActivityUC_1 = require("../UCs/EndActivity/EndActivityUC");
|
|
5
|
+
class EndActivityUCMock extends EndActivityUC_1.EndActivityUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, EndActivityUC_1.EndActivityUC.type);
|
|
8
|
+
this.end = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EndActivityUCMock = EndActivityUCMock;
|
|
12
|
+
function makeEndActivityUCMock(appObjects) {
|
|
13
|
+
return new EndActivityUCMock(appObjects.getOrCreate("EndActivityUCMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeEndActivityUCMock = makeEndActivityUCMock;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
2
|
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
-
import { DeleteStateUC } from "../UCs";
|
|
3
|
+
import { DeleteStateUC } from "../UCs/DeleteStateUC";
|
|
4
4
|
export declare class MockDeleteStateUC extends DeleteStateUC {
|
|
5
5
|
deleteState: jest.Mock<any, any>;
|
|
6
6
|
constructor(appObject: HostAppObject);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeMockDeleteStateUC = exports.MockDeleteStateUC = void 0;
|
|
4
|
-
const
|
|
5
|
-
class MockDeleteStateUC extends
|
|
4
|
+
const DeleteStateUC_1 = require("../UCs/DeleteStateUC");
|
|
5
|
+
class MockDeleteStateUC extends DeleteStateUC_1.DeleteStateUC {
|
|
6
6
|
constructor(appObject) {
|
|
7
|
-
super(appObject,
|
|
7
|
+
super(appObject, DeleteStateUC_1.DeleteStateUC.type);
|
|
8
8
|
this.deleteState = jest.fn();
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
2
|
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
-
import { DuplicateStateUC } from "../UCs";
|
|
3
|
+
import { DuplicateStateUC } from "../UCs/DuplicateStateUC";
|
|
4
4
|
export declare class MockDuplicateStateUC extends DuplicateStateUC {
|
|
5
5
|
duplicateState: jest.Mock<any, any>;
|
|
6
6
|
constructor(appObject: HostAppObject);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeMockDuplicateStateUC = exports.MockDuplicateStateUC = void 0;
|
|
4
|
-
const
|
|
5
|
-
class MockDuplicateStateUC extends
|
|
4
|
+
const DuplicateStateUC_1 = require("../UCs/DuplicateStateUC");
|
|
5
|
+
class MockDuplicateStateUC extends DuplicateStateUC_1.DuplicateStateUC {
|
|
6
6
|
constructor(appObject) {
|
|
7
|
-
super(appObject,
|
|
7
|
+
super(appObject, DuplicateStateUC_1.DuplicateStateUC.type);
|
|
8
8
|
this.duplicateState = jest.fn();
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { EditActiveStateUC } from "../UCs/EditActiveState/EditActiveStateUC";
|
|
4
|
+
export declare class MockEditActiveStateUC extends EditActiveStateUC {
|
|
5
|
+
editActiveState: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeMockEditActiveStateUC(appObjects: HostAppObjectRepo): MockEditActiveStateUC;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeMockEditActiveStateUC = exports.MockEditActiveStateUC = void 0;
|
|
4
|
+
const EditActiveStateUC_1 = require("../UCs/EditActiveState/EditActiveStateUC");
|
|
5
|
+
class MockEditActiveStateUC extends EditActiveStateUC_1.EditActiveStateUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, EditActiveStateUC_1.EditActiveStateUC.type);
|
|
8
|
+
this.editActiveState = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MockEditActiveStateUC = MockEditActiveStateUC;
|
|
12
|
+
function makeMockEditActiveStateUC(appObjects) {
|
|
13
|
+
return new MockEditActiveStateUC(appObjects.getOrCreate("MockEditActiveStateUC"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeMockEditActiveStateUC = makeMockEditActiveStateUC;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { ChallengeResponse, HostStateEntity } from "../Entities/HostStateEntity";
|
|
4
|
+
export declare class MockHostStateEntity extends HostStateEntity {
|
|
5
|
+
get id(): string;
|
|
6
|
+
name: string;
|
|
7
|
+
assets: never[];
|
|
8
|
+
expectedResponse: ChallengeResponse;
|
|
9
|
+
appID: string;
|
|
10
|
+
getDTO: jest.Mock<any, any>;
|
|
11
|
+
setDTO: jest.Mock<any, any>;
|
|
12
|
+
get stateData(): object;
|
|
13
|
+
setStateData: jest.Mock<any, any>;
|
|
14
|
+
constructor(appObject: HostAppObject);
|
|
15
|
+
}
|
|
16
|
+
export declare function makeMockHostStateEntity(id: string, appObjects: HostAppObjectRepo): MockHostStateEntity;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeMockHostStateEntity = exports.MockHostStateEntity = void 0;
|
|
4
|
+
const HostStateEntity_1 = require("../Entities/HostStateEntity");
|
|
5
|
+
class MockHostStateEntity extends HostStateEntity_1.HostStateEntity {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, HostStateEntity_1.HostStateEntity.type);
|
|
8
|
+
this.name = "State Name";
|
|
9
|
+
this.assets = [];
|
|
10
|
+
this.expectedResponse = HostStateEntity_1.ChallengeResponse.NONE;
|
|
11
|
+
this.appID = "AppID";
|
|
12
|
+
this.getDTO = jest.fn();
|
|
13
|
+
this.setDTO = jest.fn();
|
|
14
|
+
this.setStateData = jest.fn();
|
|
15
|
+
}
|
|
16
|
+
get id() {
|
|
17
|
+
return this.appObject.id;
|
|
18
|
+
}
|
|
19
|
+
get stateData() {
|
|
20
|
+
return { foo: "bar" };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.MockHostStateEntity = MockHostStateEntity;
|
|
24
|
+
function makeMockHostStateEntity(id, appObjects) {
|
|
25
|
+
return new MockHostStateEntity(appObjects.getOrCreate(id));
|
|
26
|
+
}
|
|
27
|
+
exports.makeMockHostStateEntity = makeMockHostStateEntity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
2
|
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
-
import { HostStateMachinePM } from "../PMs";
|
|
3
|
+
import { HostStateMachinePM } from "../PMs/HostStateMachinePM";
|
|
4
4
|
export declare class MockHostStateMachinePM extends HostStateMachinePM {
|
|
5
5
|
vmsAreEqual: jest.Mock<any, any>;
|
|
6
6
|
constructor(appObject: HostAppObject);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeMockHostStateMachinePM = exports.MockHostStateMachinePM = void 0;
|
|
4
|
-
const
|
|
5
|
-
class MockHostStateMachinePM extends
|
|
4
|
+
const HostStateMachinePM_1 = require("../PMs/HostStateMachinePM");
|
|
5
|
+
class MockHostStateMachinePM extends HostStateMachinePM_1.HostStateMachinePM {
|
|
6
6
|
constructor(appObject) {
|
|
7
|
-
super(appObject,
|
|
7
|
+
super(appObject, HostStateMachinePM_1.HostStateMachinePM.type);
|
|
8
8
|
this.vmsAreEqual = jest.fn();
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
2
|
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
-
import { EditingStatePM } from "../PMs";
|
|
3
|
+
import { EditingStatePM } from "../PMs/EditingStatePM";
|
|
4
4
|
export declare class MockIsEditingStatePM extends EditingStatePM {
|
|
5
5
|
vmsAreEqual: jest.Mock<any, any>;
|
|
6
6
|
constructor(appObject: HostAppObject);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeMockIsEditingStatePM = exports.MockIsEditingStatePM = void 0;
|
|
4
|
-
const
|
|
5
|
-
class MockIsEditingStatePM extends
|
|
4
|
+
const EditingStatePM_1 = require("../PMs/EditingStatePM");
|
|
5
|
+
class MockIsEditingStatePM extends EditingStatePM_1.EditingStatePM {
|
|
6
6
|
constructor(appObject) {
|
|
7
|
-
super(appObject,
|
|
7
|
+
super(appObject, EditingStatePM_1.EditingStatePM.type);
|
|
8
8
|
this.vmsAreEqual = jest.fn();
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { SaveAuthoringUC } from "../UCs/SaveAuthoring/SaveAuthoringUC";
|
|
4
|
+
export declare class MockSaveAuthoringUC extends SaveAuthoringUC {
|
|
5
|
+
saveAuthoring: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeMockSaveAuthoringUC(appObjects: HostAppObjectRepo): MockSaveAuthoringUC;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeMockSaveAuthoringUC = exports.MockSaveAuthoringUC = void 0;
|
|
4
|
+
const SaveAuthoringUC_1 = require("../UCs/SaveAuthoring/SaveAuthoringUC");
|
|
5
|
+
class MockSaveAuthoringUC extends SaveAuthoringUC_1.SaveAuthoringUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, SaveAuthoringUC_1.SaveAuthoringUC.type);
|
|
8
|
+
this.saveAuthoring = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MockSaveAuthoringUC = MockSaveAuthoringUC;
|
|
12
|
+
function makeMockSaveAuthoringUC(appObjects) {
|
|
13
|
+
return new MockSaveAuthoringUC(appObjects.getOrCreate("MockSaveAuthoringUC"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeMockSaveAuthoringUC = makeMockSaveAuthoringUC;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { TransitionToStateUC } from "../UCs/TransitionToState/TransitionToStateUC";
|
|
4
|
+
export declare class MockTransitionToStateUC extends TransitionToStateUC {
|
|
5
|
+
transitionToState: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeMockTransitionToStateUC(appObjects: HostAppObjectRepo): MockTransitionToStateUC;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeMockTransitionToStateUC = exports.MockTransitionToStateUC = void 0;
|
|
4
|
+
const TransitionToStateUC_1 = require("../UCs/TransitionToState/TransitionToStateUC");
|
|
5
|
+
class MockTransitionToStateUC extends TransitionToStateUC_1.TransitionToStateUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, TransitionToStateUC_1.TransitionToStateUC.type);
|
|
8
|
+
this.transitionToState = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MockTransitionToStateUC = MockTransitionToStateUC;
|
|
12
|
+
function makeMockTransitionToStateUC(appObjects) {
|
|
13
|
+
return new MockTransitionToStateUC(appObjects.getOrCreate("MockTransitionToStateUC"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeMockTransitionToStateUC = makeMockTransitionToStateUC;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { NewStateUC } from "../UCs/NewState/NewStateUC";
|
|
4
|
+
export declare class NewStateUCMock extends NewStateUC {
|
|
5
|
+
createState: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeNewStateUCMock(appObjects: HostAppObjectRepo): NewStateUCMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeNewStateUCMock = exports.NewStateUCMock = void 0;
|
|
4
|
+
const NewStateUC_1 = require("../UCs/NewState/NewStateUC");
|
|
5
|
+
class NewStateUCMock extends NewStateUC_1.NewStateUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, NewStateUC_1.NewStateUC.type);
|
|
8
|
+
this.createState = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.NewStateUCMock = NewStateUCMock;
|
|
12
|
+
function makeNewStateUCMock(appObjects) {
|
|
13
|
+
return new NewStateUCMock(appObjects.getOrCreate("NewStateUCMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeNewStateUCMock = makeNewStateUCMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { HostAppObject, HostAppObjectRepo } from "../../../HostAppObject";
|
|
3
|
+
import { SavePersistentStatesUC } from "../UCs/SavePersistentStates";
|
|
4
|
+
export declare class SavePersistentStatesMock extends SavePersistentStatesUC {
|
|
5
|
+
saveLocally: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: HostAppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeSavePersistentStatesMock(appObjects: HostAppObjectRepo): SavePersistentStatesMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSavePersistentStatesMock = exports.SavePersistentStatesMock = void 0;
|
|
4
|
+
const SavePersistentStates_1 = require("../UCs/SavePersistentStates");
|
|
5
|
+
class SavePersistentStatesMock extends SavePersistentStates_1.SavePersistentStatesUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, SavePersistentStates_1.SavePersistentStatesUC.type);
|
|
8
|
+
this.saveLocally = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SavePersistentStatesMock = SavePersistentStatesMock;
|
|
12
|
+
function makeSavePersistentStatesMock(appObjects) {
|
|
13
|
+
return new SavePersistentStatesMock(appObjects.getOrCreate("SavePersistentStatesMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeSavePersistentStatesMock = makeSavePersistentStatesMock;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
export * from "./CancelEditingUCMock";
|
|
2
|
+
export * from "./ConsumeStateUCMock";
|
|
3
|
+
export * from "./EditStateUCMock";
|
|
4
|
+
export * from "./EndActivityUCMock";
|
|
1
5
|
export * from "./MockDeleteStateUC";
|
|
2
6
|
export * from "./MockDuplicateStateUC";
|
|
7
|
+
export * from "./MockEditActiveStateUC";
|
|
3
8
|
export * from "./MockHostEditingStateEntity";
|
|
4
9
|
export * from "./MockHostStateMachinePM";
|
|
5
10
|
export * from "./MockIsEditingStatePM";
|
|
6
|
-
export * from "./
|
|
11
|
+
export * from "./MockSaveAuthoringUC";
|
|
12
|
+
export * from "./MockHostStateEntity";
|
|
13
|
+
export * from "./MockTransitionToStateUC";
|
|
14
|
+
export * from "./NewStateUCMock";
|
|
15
|
+
export * from "./SavePersistentStatesMock";
|
|
@@ -10,9 +10,18 @@ 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("./CancelEditingUCMock"), exports);
|
|
14
|
+
__exportStar(require("./ConsumeStateUCMock"), exports);
|
|
15
|
+
__exportStar(require("./EditStateUCMock"), exports);
|
|
16
|
+
__exportStar(require("./EndActivityUCMock"), exports);
|
|
13
17
|
__exportStar(require("./MockDeleteStateUC"), exports);
|
|
14
18
|
__exportStar(require("./MockDuplicateStateUC"), exports);
|
|
19
|
+
__exportStar(require("./MockEditActiveStateUC"), exports);
|
|
15
20
|
__exportStar(require("./MockHostEditingStateEntity"), exports);
|
|
16
21
|
__exportStar(require("./MockHostStateMachinePM"), exports);
|
|
17
22
|
__exportStar(require("./MockIsEditingStatePM"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
23
|
+
__exportStar(require("./MockSaveAuthoringUC"), exports);
|
|
24
|
+
__exportStar(require("./MockHostStateEntity"), exports);
|
|
25
|
+
__exportStar(require("./MockTransitionToStateUC"), exports);
|
|
26
|
+
__exportStar(require("./NewStateUCMock"), exports);
|
|
27
|
+
__exportStar(require("./SavePersistentStatesMock"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HostAppObjectRepo, HostAppObjectUC } from "../../../../HostAppObject";
|
|
2
|
+
export declare abstract class CancelEditingUC extends HostAppObjectUC {
|
|
3
|
+
static type: string;
|
|
4
|
+
abstract cancel(): void;
|
|
5
|
+
static get(appObjects: HostAppObjectRepo): CancelEditingUC | undefined;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelEditingUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../../HostAppObject");
|
|
5
|
+
class CancelEditingUC extends HostAppObject_1.HostAppObjectUC {
|
|
6
|
+
static get(appObjects) {
|
|
7
|
+
return HostAppObject_1.getSingletonComponent(CancelEditingUC.type, appObjects);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.CancelEditingUC = CancelEditingUC;
|
|
11
|
+
CancelEditingUC.type = "CancelEditingUC";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeCancelSandboxEditingUC = void 0;
|
|
4
|
+
const Entities_1 = require("../../../AppSandbox/Entities");
|
|
5
|
+
const Dispatcher_1 = require("../../../Dispatcher");
|
|
6
|
+
const Entities_2 = require("../../Entities");
|
|
7
|
+
const CancelEditingUC_1 = require("./CancelEditingUC");
|
|
8
|
+
function makeCancelSandboxEditingUC(appObject) {
|
|
9
|
+
return new CancelSandboxEditingUC(appObject);
|
|
10
|
+
}
|
|
11
|
+
exports.makeCancelSandboxEditingUC = makeCancelSandboxEditingUC;
|
|
12
|
+
class CancelSandboxEditingUC extends CancelEditingUC_1.CancelEditingUC {
|
|
13
|
+
constructor(appObject) {
|
|
14
|
+
super(appObject, CancelEditingUC_1.CancelEditingUC.type);
|
|
15
|
+
this.cancel = () => {
|
|
16
|
+
if (!this.sandbox || !this.stateMachine || !this.editStateEntity)
|
|
17
|
+
return;
|
|
18
|
+
const dispatchIsAuthoring = Dispatcher_1.DispatchIsAuthoringUC.getByID(this.sandbox.appID, this.appObjects);
|
|
19
|
+
if (!dispatchIsAuthoring) {
|
|
20
|
+
this.error("App does not have DispatchIsAuthoringUC");
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const dispatchSetState = Dispatcher_1.DispatchSetStateUC.getByID(this.sandbox.appID, this.appObjects);
|
|
24
|
+
if (!dispatchSetState) {
|
|
25
|
+
this.error("App does not have DispatchSetStateUC");
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this.editStateEntity.cancelEditState();
|
|
29
|
+
dispatchIsAuthoring.doDispatch(false);
|
|
30
|
+
if (this.stateMachine.activeState) {
|
|
31
|
+
const state = this.stateMachine.getStateByID(this.stateMachine.activeState);
|
|
32
|
+
if (state) {
|
|
33
|
+
const stateData = JSON.stringify(state.stateData);
|
|
34
|
+
dispatchSetState.doDispatch(stateData);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
this.sandbox.state = Entities_1.SandboxState.MOUNTED;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
this.appObjects.registerSingleton(this);
|
|
42
|
+
}
|
|
43
|
+
get sandbox() {
|
|
44
|
+
return this.getCachedSingleton(Entities_1.AppSandboxEntity.type);
|
|
45
|
+
}
|
|
46
|
+
get stateMachine() {
|
|
47
|
+
return this.getCachedSingleton(Entities_2.HostStateMachine.type);
|
|
48
|
+
}
|
|
49
|
+
get editStateEntity() {
|
|
50
|
+
return this.getCachedSingleton(Entities_2.HostEditingStateEntity.type);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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("./CancelEditingUC"), exports);
|
|
14
|
+
__exportStar(require("./CancelSandboxEditingUC"), exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeConsumeSandboxStateUC = void 0;
|
|
4
|
+
const Entities_1 = require("../../../AppSandbox/Entities");
|
|
5
|
+
const UCs_1 = require("../../../ZSpaceHost/UCs");
|
|
6
|
+
const Entities_2 = require("../../Entities");
|
|
7
|
+
const ConsumeStateUC_1 = require("./ConsumeStateUC");
|
|
8
|
+
function makeConsumeSandboxStateUC(appObj) {
|
|
9
|
+
return new ConsumeSandboxStateUC(appObj);
|
|
10
|
+
}
|
|
11
|
+
exports.makeConsumeSandboxStateUC = makeConsumeSandboxStateUC;
|
|
12
|
+
class ConsumeSandboxStateUC extends ConsumeStateUC_1.ConsumeStateUC {
|
|
13
|
+
constructor(appObject) {
|
|
14
|
+
super(appObject, ConsumeStateUC_1.ConsumeStateUC.type);
|
|
15
|
+
this.consume = (id) => {
|
|
16
|
+
var _a;
|
|
17
|
+
if (!this.sandbox ||
|
|
18
|
+
!this.stateMachine ||
|
|
19
|
+
!this.editStateEntity ||
|
|
20
|
+
!this.startZSpaceUC) {
|
|
21
|
+
this.error("Missing component");
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
this.editStateEntity.cancelEditState();
|
|
25
|
+
if (this.stateMachine.hasState(id)) {
|
|
26
|
+
(_a = this.stateMachine) === null || _a === void 0 ? void 0 : _a.setActiveStateByID(id);
|
|
27
|
+
if (this.sandbox)
|
|
28
|
+
this.sandbox.state = Entities_1.SandboxState.PLAYING;
|
|
29
|
+
if (this.sandbox.startInZSpace) {
|
|
30
|
+
this.startZSpaceUC.startZSpace();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.error("Unable to find state by id " + id);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
this.appObjects.registerSingleton(this);
|
|
38
|
+
}
|
|
39
|
+
get sandbox() {
|
|
40
|
+
return this.getCachedSingleton(Entities_1.AppSandboxEntity.type);
|
|
41
|
+
}
|
|
42
|
+
get stateMachine() {
|
|
43
|
+
return this.getCachedSingleton(Entities_2.HostStateMachine.type);
|
|
44
|
+
}
|
|
45
|
+
get editStateEntity() {
|
|
46
|
+
return this.getCachedSingleton(Entities_2.HostEditingStateEntity.type);
|
|
47
|
+
}
|
|
48
|
+
get startZSpaceUC() {
|
|
49
|
+
return this.getCachedSingleton(UCs_1.StartZSpaceUC.type);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HostAppObjectRepo, HostAppObjectUC } from "../../../../HostAppObject";
|
|
2
|
+
export declare abstract class ConsumeStateUC extends HostAppObjectUC {
|
|
3
|
+
static type: string;
|
|
4
|
+
abstract consume(id: string): void;
|
|
5
|
+
static get(appObjects: HostAppObjectRepo): ConsumeStateUC | undefined;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConsumeStateUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../../HostAppObject");
|
|
5
|
+
class ConsumeStateUC extends HostAppObject_1.HostAppObjectUC {
|
|
6
|
+
static get(appObjects) {
|
|
7
|
+
return HostAppObject_1.getSingletonComponent(ConsumeStateUC.type, appObjects);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ConsumeStateUC = ConsumeStateUC;
|
|
11
|
+
ConsumeStateUC.type = "ConsumeStateUC";
|
|
@@ -0,0 +1,14 @@
|
|
|
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("./ConsumeSandboxStateUC"), exports);
|
|
14
|
+
__exportStar(require("./ConsumeStateUC"), exports);
|