@vived/host 3.8.0 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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 +11 -0
- package/lib/Components/StateMachine/UCs/index.js +11 -0
- package/lib/Components/StateMachine/UCs/setSandboxStatesFromData.d.ts +8 -0
- package/lib/Components/StateMachine/UCs/setSandboxStatesFromData.js +29 -0
- package/lib/Components/StateMachine/UCs/setSandboxStatesFromStingData.d.ts +8 -0
- package/lib/Components/StateMachine/UCs/setSandboxStatesFromStingData.js +29 -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.js +1 -2
- 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,265 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeMounterUC = exports.MounterUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../../HostAppObject");
|
|
5
|
+
const Version_1 = require("../../../../ValueObjects/Version");
|
|
6
|
+
const HostDispatchEntity_1 = require("../../../Dispatcher/Entities/HostDispatchEntity");
|
|
7
|
+
const HostHandler_1 = require("../../../Handler/Entities/HostHandler");
|
|
8
|
+
const GetAppFromAPIUC_1 = require("../../../VivedAPI/UCs/GetAppFromAPIUC");
|
|
9
|
+
const AppEntity_1 = require("../../Entities/AppEntity");
|
|
10
|
+
const formAppIDWithVersion_1 = require("../formAppIDWithVersion");
|
|
11
|
+
class MounterUC extends HostAppObject_1.HostAppObjectUC {
|
|
12
|
+
static get(appObject) {
|
|
13
|
+
return appObject.getComponent(MounterUC.type);
|
|
14
|
+
}
|
|
15
|
+
static getById(id, appObjects) {
|
|
16
|
+
const ao = appObjects.get(id);
|
|
17
|
+
return ao === null || ao === void 0 ? void 0 : ao.getComponent(MounterUC.type);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.MounterUC = MounterUC;
|
|
21
|
+
MounterUC.type = "MounterUC";
|
|
22
|
+
function makeMounterUC(appObject) {
|
|
23
|
+
return new MounterUCImp(appObject);
|
|
24
|
+
}
|
|
25
|
+
exports.makeMounterUC = makeMounterUC;
|
|
26
|
+
class MounterUCImp extends MounterUC {
|
|
27
|
+
constructor(appObject) {
|
|
28
|
+
super(appObject, MounterUC.type);
|
|
29
|
+
this.scriptElements = [];
|
|
30
|
+
this.unmount = () => {
|
|
31
|
+
if (!this.app)
|
|
32
|
+
return;
|
|
33
|
+
if (!this.app.mountedVersion)
|
|
34
|
+
return;
|
|
35
|
+
const versionID = formAppIDWithVersion_1.formAppIDWithVersion(this.app, this.app.mountedVersion);
|
|
36
|
+
window[versionID] = undefined;
|
|
37
|
+
delete window[versionID];
|
|
38
|
+
this.scriptElements.forEach((element) => {
|
|
39
|
+
element.remove();
|
|
40
|
+
});
|
|
41
|
+
this.scriptElements = [];
|
|
42
|
+
this.app.styles = [];
|
|
43
|
+
this.app.appAssetFolderURL = undefined;
|
|
44
|
+
this.app.mountedVersion = undefined;
|
|
45
|
+
this.app.state = AppEntity_1.AppState.INIT;
|
|
46
|
+
};
|
|
47
|
+
this.mount = (majorVersion, minorVersion) => {
|
|
48
|
+
const fetchApp = this.getAppFromAPI;
|
|
49
|
+
if (!fetchApp) {
|
|
50
|
+
this.error("No Fetch App UC");
|
|
51
|
+
return Promise.reject();
|
|
52
|
+
}
|
|
53
|
+
const app = this.app;
|
|
54
|
+
if (!app) {
|
|
55
|
+
this.error("No App");
|
|
56
|
+
return Promise.reject();
|
|
57
|
+
}
|
|
58
|
+
const hostHandler = this.hostHandler;
|
|
59
|
+
if (!hostHandler) {
|
|
60
|
+
this.error("No Host Handler");
|
|
61
|
+
return Promise.reject();
|
|
62
|
+
}
|
|
63
|
+
const hostDispatcher = this.hostDispatcher;
|
|
64
|
+
if (!hostDispatcher) {
|
|
65
|
+
this.error("No Host Dispatcher");
|
|
66
|
+
return Promise.reject();
|
|
67
|
+
}
|
|
68
|
+
const version = this.getAppVersion(majorVersion, minorVersion);
|
|
69
|
+
if (!version) {
|
|
70
|
+
return Promise.reject(new Error(`Unable to find version ${majorVersion}.${minorVersion}.X for App ${app.name}`));
|
|
71
|
+
}
|
|
72
|
+
this.log(`Initializing App ${app.name} [${app.id}] version ${version.displayString}`);
|
|
73
|
+
if (app.mountedVersion) {
|
|
74
|
+
if (Version_1.Version.AreEqual(app.mountedVersion, version)) {
|
|
75
|
+
return Promise.resolve();
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.unmount();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
app.state = AppEntity_1.AppState.LOADING;
|
|
82
|
+
return new Promise((resolve, reject) => {
|
|
83
|
+
fetchApp
|
|
84
|
+
.getApp(this.appObject.id, version.baseVersionString)
|
|
85
|
+
.then((appDTO) => {
|
|
86
|
+
app.appAssetFolderURL = appDTO.assetFolderURL;
|
|
87
|
+
const { scripts, styles } = this.parseEndpoints(appDTO.entrypoints);
|
|
88
|
+
app.styles = styles;
|
|
89
|
+
return this.loadScripts(scripts, version);
|
|
90
|
+
})
|
|
91
|
+
.then((appInterface) => {
|
|
92
|
+
const appHandler = appInterface.mount(hostHandler.handler);
|
|
93
|
+
hostDispatcher.registerAppHandler(appHandler);
|
|
94
|
+
return this.waitForAppIsReady(app, version);
|
|
95
|
+
})
|
|
96
|
+
.then(() => {
|
|
97
|
+
app.mountedVersion = version;
|
|
98
|
+
resolve();
|
|
99
|
+
})
|
|
100
|
+
.catch((e) => {
|
|
101
|
+
app.state = AppEntity_1.AppState.ERROR;
|
|
102
|
+
reject(e);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
this.loadScripts = (scripts, version) => {
|
|
107
|
+
const app = this.app;
|
|
108
|
+
if (!app) {
|
|
109
|
+
this.error("No app entity");
|
|
110
|
+
return Promise.reject();
|
|
111
|
+
}
|
|
112
|
+
let appInterface = this.getAppInterface(version);
|
|
113
|
+
const versionID = formAppIDWithVersion_1.formAppIDWithVersion(app, version);
|
|
114
|
+
if (appInterface) {
|
|
115
|
+
return Promise.resolve(appInterface);
|
|
116
|
+
}
|
|
117
|
+
return new Promise((resolve, reject) => {
|
|
118
|
+
const loaders = scripts.map((entryPoint) => {
|
|
119
|
+
return this.loadScriptIntoDocument(entryPoint, versionID);
|
|
120
|
+
});
|
|
121
|
+
Promise.all(loaders)
|
|
122
|
+
.then(() => {
|
|
123
|
+
appInterface = this.getAppInterface(version);
|
|
124
|
+
if (!appInterface) {
|
|
125
|
+
reject("App is undefined for ID: " +
|
|
126
|
+
app.id +
|
|
127
|
+
". Make sure ID is correct in the 3 files in the app project.");
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
resolve(appInterface);
|
|
131
|
+
}
|
|
132
|
+
})
|
|
133
|
+
.catch((e) => {
|
|
134
|
+
reject(e);
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
this.loadScriptIntoDocument = (scriptURL, appIDWithVersion) => {
|
|
139
|
+
return new Promise((resolve, reject) => {
|
|
140
|
+
const aScript = document.createElement("script");
|
|
141
|
+
aScript.onload = function onLoad() {
|
|
142
|
+
resolve();
|
|
143
|
+
};
|
|
144
|
+
aScript.onerror = function onError(e) {
|
|
145
|
+
reject(new Error(`Failed to add script to document`));
|
|
146
|
+
};
|
|
147
|
+
aScript.type = "text/javascript";
|
|
148
|
+
aScript.src = scriptURL;
|
|
149
|
+
aScript.className = appIDWithVersion;
|
|
150
|
+
this.scriptElements.push(aScript);
|
|
151
|
+
document.head.appendChild(aScript);
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
this.getAppInterface = (version) => {
|
|
155
|
+
if (!this.app)
|
|
156
|
+
return;
|
|
157
|
+
const versionID = formAppIDWithVersion_1.formAppIDWithVersion(this.app, version);
|
|
158
|
+
let appInterface = window[versionID];
|
|
159
|
+
if (!appInterface) {
|
|
160
|
+
appInterface = window[this.app.id]; // Old way of identifying apps
|
|
161
|
+
}
|
|
162
|
+
return appInterface;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
get getAppFromAPI() {
|
|
166
|
+
return this.getCachedSingleton(GetAppFromAPIUC_1.GetAppFromAPIUC.type);
|
|
167
|
+
}
|
|
168
|
+
get app() {
|
|
169
|
+
return this.getCachedLocalComponent(AppEntity_1.AppEntity.type);
|
|
170
|
+
}
|
|
171
|
+
get hostHandler() {
|
|
172
|
+
return this.getCachedLocalComponent(HostHandler_1.HostHandlerEntity.type);
|
|
173
|
+
}
|
|
174
|
+
get hostDispatcher() {
|
|
175
|
+
return this.getCachedLocalComponent(HostDispatchEntity_1.HostDispatchEntity.type);
|
|
176
|
+
}
|
|
177
|
+
getAppVersion(major, minor) {
|
|
178
|
+
if (!this.app) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
let appVersion = Version_1.Version.GetLatestWithMajorMinor(this.app.versions, major, minor);
|
|
182
|
+
if (!appVersion) {
|
|
183
|
+
appVersion = Version_1.Version.GetLatestWithMajor(this.app.versions, major);
|
|
184
|
+
}
|
|
185
|
+
if (!appVersion) {
|
|
186
|
+
this.error(`Unable to find version ${major}.${minor}.X for App ${this.app.name}`);
|
|
187
|
+
}
|
|
188
|
+
return appVersion;
|
|
189
|
+
}
|
|
190
|
+
mountLatestVersion() {
|
|
191
|
+
if (!this.app) {
|
|
192
|
+
this.error("Missing Components");
|
|
193
|
+
return Promise.reject();
|
|
194
|
+
}
|
|
195
|
+
const version = this.app.latestVersion;
|
|
196
|
+
if (!version) {
|
|
197
|
+
this.error("No Version");
|
|
198
|
+
return Promise.reject();
|
|
199
|
+
}
|
|
200
|
+
return this.mount(version.major, version.minor);
|
|
201
|
+
}
|
|
202
|
+
parseEndpoints(endpoints) {
|
|
203
|
+
const scripts = [];
|
|
204
|
+
const styles = [];
|
|
205
|
+
endpoints.forEach((endpoint) => {
|
|
206
|
+
if (endpoint.includes(".js")) {
|
|
207
|
+
scripts.push(endpoint);
|
|
208
|
+
}
|
|
209
|
+
else if (endpoint.includes(".css")) {
|
|
210
|
+
styles.push(endpoint);
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
this.warn("Unknown endpoint: " + endpoint);
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
return {
|
|
217
|
+
scripts,
|
|
218
|
+
styles
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
waitForAppIsReady(app, appVersion) {
|
|
222
|
+
// Edge cases here
|
|
223
|
+
if (app.id === "app4e48fbaa815a4857821bf7569b003751" &&
|
|
224
|
+
appVersion.major === 1 &&
|
|
225
|
+
appVersion.minor === 0) {
|
|
226
|
+
// Mark board app has a problem with version 1.0
|
|
227
|
+
app.state = AppEntity_1.AppState.READY;
|
|
228
|
+
return Promise.resolve();
|
|
229
|
+
}
|
|
230
|
+
if (app.id === "appe860b51f49414e20ae7995dff4d9b152" &&
|
|
231
|
+
appVersion.major === 1 &&
|
|
232
|
+
appVersion.minor <= 2) {
|
|
233
|
+
// Older versions of the text app do not report when ready
|
|
234
|
+
app.state = AppEntity_1.AppState.READY;
|
|
235
|
+
return Promise.resolve();
|
|
236
|
+
}
|
|
237
|
+
if (app.id === "app41df8a36f628451d9f633f8a9bdf3edb" &&
|
|
238
|
+
appVersion.major === 1 &&
|
|
239
|
+
appVersion.minor <= 1) {
|
|
240
|
+
// Older versions of the YouTube app do not report when ready
|
|
241
|
+
app.state = AppEntity_1.AppState.READY;
|
|
242
|
+
return Promise.resolve();
|
|
243
|
+
}
|
|
244
|
+
if (app.id === "app448f8f293fbb493a9e233f113ce8b56a") {
|
|
245
|
+
// Asset Plugin
|
|
246
|
+
app.state = AppEntity_1.AppState.READY;
|
|
247
|
+
return Promise.resolve();
|
|
248
|
+
}
|
|
249
|
+
// Allows testing to not get hung up waiting for this
|
|
250
|
+
if (app.id === "APP_FOR_JEST_TEST") {
|
|
251
|
+
// Older versions of the YouTube app do not report when ready
|
|
252
|
+
app.state = AppEntity_1.AppState.READY;
|
|
253
|
+
return Promise.resolve();
|
|
254
|
+
}
|
|
255
|
+
return new Promise((resolve) => {
|
|
256
|
+
const appObserver = () => {
|
|
257
|
+
if (app.state === AppEntity_1.AppState.READY) {
|
|
258
|
+
app.removeChangeObserver(appObserver);
|
|
259
|
+
resolve();
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
app.addChangeObserver(appObserver);
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSandboxMounter = void 0;
|
|
4
|
+
const Version_1 = require("../../../../ValueObjects/Version");
|
|
5
|
+
const AppSandboxEntity_1 = require("../../../AppSandbox/Entities/AppSandboxEntity");
|
|
6
|
+
const HostDispatchEntity_1 = require("../../../Dispatcher/Entities/HostDispatchEntity");
|
|
7
|
+
const HostHandler_1 = require("../../../Handler/Entities/HostHandler");
|
|
8
|
+
const AppEntity_1 = require("../../Entities/AppEntity");
|
|
9
|
+
const MounterUC_1 = require("./MounterUC");
|
|
10
|
+
function makeSandboxMounter(appObject) {
|
|
11
|
+
return new SandboxMounterUC(appObject);
|
|
12
|
+
}
|
|
13
|
+
exports.makeSandboxMounter = makeSandboxMounter;
|
|
14
|
+
class SandboxMounterUC extends MounterUC_1.MounterUC {
|
|
15
|
+
constructor(appObject) {
|
|
16
|
+
super(appObject, MounterUC_1.MounterUC.type);
|
|
17
|
+
this.mountLatestVersion = () => {
|
|
18
|
+
if (!this.appEntity) {
|
|
19
|
+
this.error("Missing Components");
|
|
20
|
+
return Promise.reject();
|
|
21
|
+
}
|
|
22
|
+
const version = this.appEntity.latestVersion;
|
|
23
|
+
if (!version) {
|
|
24
|
+
this.error("No Version");
|
|
25
|
+
return Promise.reject();
|
|
26
|
+
}
|
|
27
|
+
return this.mount(version.major, version.minor);
|
|
28
|
+
};
|
|
29
|
+
this.mount = (majorVersion, minorVersion) => {
|
|
30
|
+
if (!this.appEntity ||
|
|
31
|
+
!this.hostDispatcher ||
|
|
32
|
+
!this.hostHandler ||
|
|
33
|
+
!this.sandbox) {
|
|
34
|
+
this.error("Missing Components");
|
|
35
|
+
return Promise.reject();
|
|
36
|
+
}
|
|
37
|
+
const version = this.getAppVersion(majorVersion, minorVersion);
|
|
38
|
+
if (!version) {
|
|
39
|
+
this.error("No Version");
|
|
40
|
+
return Promise.reject();
|
|
41
|
+
}
|
|
42
|
+
const appInterface = this.getAppInterface(version);
|
|
43
|
+
if (!appInterface) {
|
|
44
|
+
this.error("No App Interface");
|
|
45
|
+
return Promise.reject();
|
|
46
|
+
}
|
|
47
|
+
const appHandler = appInterface.mount(this.hostHandler.handler);
|
|
48
|
+
this.hostDispatcher.registerAppHandler(appHandler);
|
|
49
|
+
const app = this.appEntity;
|
|
50
|
+
const sandbox = this.sandbox;
|
|
51
|
+
return new Promise((resolve) => {
|
|
52
|
+
const waitForReady = () => {
|
|
53
|
+
if (app.state === AppEntity_1.AppState.READY) {
|
|
54
|
+
sandbox.state = AppSandboxEntity_1.SandboxState.MOUNTED;
|
|
55
|
+
app.removeChangeObserver(waitForReady);
|
|
56
|
+
resolve();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
app.addChangeObserver(waitForReady);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
this.unmount = () => {
|
|
63
|
+
if (!this.sandbox || !this.hostDispatcher) {
|
|
64
|
+
this.error("Missing Components");
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.hostDispatcher.clearAppHandler();
|
|
68
|
+
this.sandbox.state = AppSandboxEntity_1.SandboxState.UNMOUNTED;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
get appEntity() {
|
|
72
|
+
return this.getCachedLocalComponent(AppEntity_1.AppEntity.type);
|
|
73
|
+
}
|
|
74
|
+
get hostDispatcher() {
|
|
75
|
+
return this.getCachedLocalComponent(HostDispatchEntity_1.HostDispatchEntity.type);
|
|
76
|
+
}
|
|
77
|
+
get hostHandler() {
|
|
78
|
+
return this.getCachedLocalComponent(HostHandler_1.HostHandlerEntity.type);
|
|
79
|
+
}
|
|
80
|
+
get sandbox() {
|
|
81
|
+
return this.getCachedSingleton(AppSandboxEntity_1.AppSandboxEntity.type);
|
|
82
|
+
}
|
|
83
|
+
getAppVersion(major, minor) {
|
|
84
|
+
if (!this.appEntity) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
let appVersion = Version_1.Version.GetLatestWithMajorMinor(this.appEntity.versions, major, minor);
|
|
88
|
+
if (!appVersion) {
|
|
89
|
+
appVersion = Version_1.Version.GetLatestWithMajor(this.appEntity.versions, major);
|
|
90
|
+
}
|
|
91
|
+
if (!appVersion) {
|
|
92
|
+
this.error(`Unable to find version ${major}.${minor}.X for App ${this.appEntity.name}`);
|
|
93
|
+
}
|
|
94
|
+
return appVersion;
|
|
95
|
+
}
|
|
96
|
+
loadScriptIntoDocument(scriptURL, appIDWithVersion) {
|
|
97
|
+
// Unused during dev
|
|
98
|
+
return Promise.resolve();
|
|
99
|
+
}
|
|
100
|
+
getAppInterface(version) {
|
|
101
|
+
const modifiedVersion = version.baseVersionString.split(".").join("_");
|
|
102
|
+
const idWithVersion = `${this.appObject.id}-${modifiedVersion}`;
|
|
103
|
+
const appInterface = window[idWithVersion];
|
|
104
|
+
if (!appInterface) {
|
|
105
|
+
this.appObjects.submitFatal("LocalMounterUC", "Unable to find App Interface");
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
return appInterface;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -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("./MounterUC"), exports);
|
|
14
|
+
__exportStar(require("./SandboxMounterUC"), exports);
|
|
@@ -6,3 +6,4 @@ export declare abstract class StartAppUC extends HostAppObjectUC {
|
|
|
6
6
|
static getByID(id: string, appObjects: HostAppObjectRepo): StartAppUC | undefined;
|
|
7
7
|
static startByID(container: HTMLElement, id: string, appObjects: HostAppObjectRepo): void;
|
|
8
8
|
}
|
|
9
|
+
export declare function makeStartAppUC(appObject: HostAppObject): StartAppUC;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartAppUC = void 0;
|
|
3
|
+
exports.makeStartAppUC = exports.StartAppUC = void 0;
|
|
4
4
|
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
|
+
const Entities_1 = require("../../StateMachine/Entities");
|
|
5
7
|
class StartAppUC extends HostAppObject_1.HostAppObjectUC {
|
|
6
8
|
static get(appObject) {
|
|
7
9
|
const asset = appObject.getComponent(StartAppUC.type);
|
|
@@ -25,3 +27,54 @@ class StartAppUC extends HostAppObject_1.HostAppObjectUC {
|
|
|
25
27
|
}
|
|
26
28
|
exports.StartAppUC = StartAppUC;
|
|
27
29
|
StartAppUC.type = "StartAppUC";
|
|
30
|
+
function makeStartAppUC(appObject) {
|
|
31
|
+
return new StartAppUCImp(appObject);
|
|
32
|
+
}
|
|
33
|
+
exports.makeStartAppUC = makeStartAppUC;
|
|
34
|
+
class StartAppUCImp extends StartAppUC {
|
|
35
|
+
constructor(appObject) {
|
|
36
|
+
super(appObject, StartAppUC.type);
|
|
37
|
+
this.start = (container) => {
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
if (!this.stateMachine)
|
|
40
|
+
return;
|
|
41
|
+
if (!this.dispatchStart)
|
|
42
|
+
return;
|
|
43
|
+
if (!this.editStateEntity)
|
|
44
|
+
return;
|
|
45
|
+
this.dispatchStart.doDispatch(container);
|
|
46
|
+
let stateString = "";
|
|
47
|
+
if (this.stateMachine.activeState && this.stateMachine.activeState) {
|
|
48
|
+
const state = this.stateMachine.getStateByID(this.stateMachine.activeState);
|
|
49
|
+
if (state) {
|
|
50
|
+
stateString = JSON.stringify(state.stateData);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
(_a = this.dispatchSetState) === null || _a === void 0 ? void 0 : _a.doDispatch(stateString);
|
|
54
|
+
let isAuthoring = this.editStateEntity.isEditing;
|
|
55
|
+
if (this.stateMachine.activeState === undefined) {
|
|
56
|
+
isAuthoring = true;
|
|
57
|
+
}
|
|
58
|
+
(_b = this.dispatchSetIsAuthoring) === null || _b === void 0 ? void 0 : _b.doDispatch(isAuthoring);
|
|
59
|
+
(_c = this.dispatchThemeColors) === null || _c === void 0 ? void 0 : _c.doDispatch();
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
get stateMachine() {
|
|
63
|
+
return this.getCachedSingleton(Entities_1.HostStateMachine.type);
|
|
64
|
+
}
|
|
65
|
+
get editStateEntity() {
|
|
66
|
+
return this.getCachedSingleton(Entities_1.HostEditingStateEntity.type);
|
|
67
|
+
}
|
|
68
|
+
get dispatchStart() {
|
|
69
|
+
return this.getCachedLocalComponent(Dispatcher_1.DispatchStartAppUC.type);
|
|
70
|
+
}
|
|
71
|
+
get dispatchSetState() {
|
|
72
|
+
return this.getCachedLocalComponent(Dispatcher_1.DispatchSetStateUC.type);
|
|
73
|
+
}
|
|
74
|
+
get dispatchSetIsAuthoring() {
|
|
75
|
+
return this.getCachedLocalComponent(Dispatcher_1.DispatchIsAuthoringUC.type);
|
|
76
|
+
}
|
|
77
|
+
get dispatchThemeColors() {
|
|
78
|
+
return this.getCachedLocalComponent(Dispatcher_1.DispatchThemeUC.type);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -6,3 +6,4 @@ export declare abstract class StopAppUC extends HostAppObjectUC {
|
|
|
6
6
|
static getByID(id: string, appObjects: HostAppObjectRepo): StopAppUC | undefined;
|
|
7
7
|
static stopByID(id: string, appObjects: HostAppObjectRepo): void;
|
|
8
8
|
}
|
|
9
|
+
export declare function makeStopAppUC(appObject: HostAppObject): StopAppUC;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StopAppUC = void 0;
|
|
3
|
+
exports.makeStopAppUC = exports.StopAppUC = void 0;
|
|
4
4
|
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
5
6
|
class StopAppUC extends HostAppObject_1.HostAppObjectUC {
|
|
6
7
|
static get(appObject) {
|
|
7
8
|
const asset = appObject.getComponent(StopAppUC.type);
|
|
@@ -25,3 +26,19 @@ class StopAppUC extends HostAppObject_1.HostAppObjectUC {
|
|
|
25
26
|
}
|
|
26
27
|
exports.StopAppUC = StopAppUC;
|
|
27
28
|
StopAppUC.type = "StopAppUC";
|
|
29
|
+
function makeStopAppUC(appObject) {
|
|
30
|
+
return new StartAppUCImp(appObject);
|
|
31
|
+
}
|
|
32
|
+
exports.makeStopAppUC = makeStopAppUC;
|
|
33
|
+
class StartAppUCImp extends StopAppUC {
|
|
34
|
+
get dispatchStop() {
|
|
35
|
+
return this.getCachedLocalComponent(Dispatcher_1.DispatchStopAppUC.type);
|
|
36
|
+
}
|
|
37
|
+
stop() {
|
|
38
|
+
var _a;
|
|
39
|
+
(_a = this.dispatchStop) === null || _a === void 0 ? void 0 : _a.doDispatch();
|
|
40
|
+
}
|
|
41
|
+
constructor(appObject) {
|
|
42
|
+
super(appObject, StopAppUC.type);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formAppIDWithVersion = void 0;
|
|
4
|
+
function formAppIDWithVersion(app, version) {
|
|
5
|
+
const versionString = version.baseVersionString.split(".").join("_");
|
|
6
|
+
return `${app.id}-${versionString}`;
|
|
7
|
+
}
|
|
8
|
+
exports.formAppIDWithVersion = formAppIDWithVersion;
|
|
@@ -10,8 +10,8 @@ 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("./
|
|
14
|
-
__exportStar(require("./
|
|
13
|
+
__exportStar(require("./formAppIDWithVersion"), exports);
|
|
14
|
+
__exportStar(require("./Mounters"), exports);
|
|
15
15
|
__exportStar(require("./UpdateAppUC"), exports);
|
|
16
16
|
__exportStar(require("./StartAppUC"), exports);
|
|
17
17
|
__exportStar(require("./StopAppUC"), exports);
|
|
@@ -3,7 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.assetPluginPMAdapter = void 0;
|
|
4
4
|
const AssetPluginPM_1 = require("../PM/AssetPluginPM");
|
|
5
5
|
exports.assetPluginPMAdapter = {
|
|
6
|
-
defaultVM:
|
|
6
|
+
defaultVM: {
|
|
7
|
+
show: false,
|
|
8
|
+
loading: false,
|
|
9
|
+
styleSheets: []
|
|
10
|
+
},
|
|
7
11
|
subscribe: (appObjects, setVM) => {
|
|
8
12
|
const pm = AssetPluginPM_1.AssetPluginPM.get(appObjects);
|
|
9
13
|
if (!pm) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupAssetsPluginForSandbox";
|
|
@@ -0,0 +1,13 @@
|
|
|
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("./setupAssetsPluginForSandbox"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupAssetsPluginForSandbox = void 0;
|
|
4
|
+
const Apps_1 = require("../../Apps");
|
|
5
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
|
+
const Handler_1 = require("../../Handler");
|
|
7
|
+
const Entities_1 = require("../Entities");
|
|
8
|
+
const PM_1 = require("../PM");
|
|
9
|
+
const UCs_1 = require("../UCs");
|
|
10
|
+
function setupAssetsPluginForSandbox(id, appObjects) {
|
|
11
|
+
const ao = appObjects.getOrCreate(id);
|
|
12
|
+
// Entities
|
|
13
|
+
const entity = Entities_1.makeAssetPluginEntity(ao);
|
|
14
|
+
Handler_1.makeHostHandlerEntity(ao);
|
|
15
|
+
Dispatcher_1.makeHostDispatchEntity(ao);
|
|
16
|
+
// UCs
|
|
17
|
+
Apps_1.makeMounterUC(ao);
|
|
18
|
+
UCs_1.makeSandboxAssetPluginContainerUC(ao);
|
|
19
|
+
setupDispatchers(ao);
|
|
20
|
+
setupHandlers(ao);
|
|
21
|
+
// PMs
|
|
22
|
+
PM_1.makeAssetPluginPM(ao);
|
|
23
|
+
return entity;
|
|
24
|
+
}
|
|
25
|
+
exports.setupAssetsPluginForSandbox = setupAssetsPluginForSandbox;
|
|
26
|
+
function setupDispatchers(ao) {
|
|
27
|
+
Dispatcher_1.makeDispatchStartBrowseChannelsUC(ao);
|
|
28
|
+
Dispatcher_1.makeDispatchStopAppUC(ao);
|
|
29
|
+
Dispatcher_1.makeDispatchDisposeAppUC(ao);
|
|
30
|
+
}
|
|
31
|
+
function setupHandlers(ao) {
|
|
32
|
+
Handler_1.makeGetAssetFolderURLHandler(ao);
|
|
33
|
+
Handler_1.makeRegisterExternalStyleSheetsHandler(ao);
|
|
34
|
+
Handler_1.makeCloseAssetSystemPluginUC(ao);
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HostAppObject } from "../../../HostAppObject";
|
|
2
|
+
import { AssetPluginContainerUC } from "./AssetPluginContainerUC";
|
|
3
|
+
export declare function makeSandboxAssetPluginContainerUC(appObject: HostAppObject): SandboxAssetPluginContainerUC;
|
|
4
|
+
declare class SandboxAssetPluginContainerUC extends AssetPluginContainerUC {
|
|
5
|
+
private get mounterUC();
|
|
6
|
+
private get assetPlugin();
|
|
7
|
+
private get dispatchStart();
|
|
8
|
+
private get dispatchStop();
|
|
9
|
+
private get sandbox();
|
|
10
|
+
private get vivedAPI();
|
|
11
|
+
clearContainer: () => void;
|
|
12
|
+
setContainer: (container: HTMLDivElement) => Promise<void>;
|
|
13
|
+
constructor(appObject: HostAppObject);
|
|
14
|
+
}
|
|
15
|
+
export {};
|