@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
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeHostDispatcher = exports.HostDispatcher = void 0;
|
|
4
|
-
class HostDispatcher {
|
|
5
|
-
}
|
|
6
|
-
exports.HostDispatcher = HostDispatcher;
|
|
7
|
-
function makeHostDispatcher() {
|
|
8
|
-
return new HostDistpatcherImp();
|
|
9
|
-
}
|
|
10
|
-
exports.makeHostDispatcher = makeHostDispatcher;
|
|
11
|
-
class HostDistpatcherImp extends HostDispatcher {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.appHandlerVersion = 0;
|
|
15
|
-
this.appPayloadVersions = new Map();
|
|
16
|
-
this.registerAppHandler = (appHandler) => {
|
|
17
|
-
this.appHandler = appHandler;
|
|
18
|
-
this.getAppHandlerVersion();
|
|
19
|
-
};
|
|
20
|
-
this.setupVersion = (version) => {
|
|
21
|
-
// Apps before app package version 2.27 will not reach this
|
|
22
|
-
this.appHandlerVersion = version;
|
|
23
|
-
this.getPayloadVersions();
|
|
24
|
-
};
|
|
25
|
-
this.setupPayloadVersions = (payloadVersion) => {
|
|
26
|
-
this.appPayloadVersions = payloadVersion;
|
|
27
|
-
};
|
|
28
|
-
this.dispatch = (request) => {
|
|
29
|
-
if (!this.appHandler) {
|
|
30
|
-
console.error('[HostDispatcher] No app handler has been registered');
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
this.appHandler(request);
|
|
34
|
-
};
|
|
35
|
-
this.showBabylonInspector = (show) => {
|
|
36
|
-
var _a;
|
|
37
|
-
const type = 'SHOW_BABYLON_INSPECTOR';
|
|
38
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 1;
|
|
39
|
-
const payload = {
|
|
40
|
-
showBabylonInspector: show,
|
|
41
|
-
};
|
|
42
|
-
this.doDispatch(type, version, payload);
|
|
43
|
-
};
|
|
44
|
-
this.setIsAuthoring = (isAuthoring) => {
|
|
45
|
-
var _a;
|
|
46
|
-
const type = 'SET_IS_AUTHORING';
|
|
47
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 1;
|
|
48
|
-
const payload = { isAuthoring };
|
|
49
|
-
this.doDispatch(type, version, payload);
|
|
50
|
-
};
|
|
51
|
-
this.disposeApp = () => {
|
|
52
|
-
var _a;
|
|
53
|
-
const type = 'DISPOSE_APP';
|
|
54
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 1;
|
|
55
|
-
this.doDispatch(type, version);
|
|
56
|
-
};
|
|
57
|
-
this.stopApp = () => {
|
|
58
|
-
var _a;
|
|
59
|
-
const type = 'STOP_APP';
|
|
60
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 1;
|
|
61
|
-
this.doDispatch(type, version);
|
|
62
|
-
};
|
|
63
|
-
this.startApp = (container) => {
|
|
64
|
-
var _a;
|
|
65
|
-
const type = 'START_APP';
|
|
66
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 2;
|
|
67
|
-
const payload = {
|
|
68
|
-
container,
|
|
69
|
-
};
|
|
70
|
-
this.doDispatch(type, version, payload);
|
|
71
|
-
};
|
|
72
|
-
this.setState = (finalState, duration) => {
|
|
73
|
-
var _a;
|
|
74
|
-
const type = 'SET_APP_STATE';
|
|
75
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 2;
|
|
76
|
-
const payload = {
|
|
77
|
-
finalState,
|
|
78
|
-
duration,
|
|
79
|
-
};
|
|
80
|
-
this.doDispatch(type, version, payload);
|
|
81
|
-
};
|
|
82
|
-
this.setDevicePreview = (x, y) => {
|
|
83
|
-
var _a;
|
|
84
|
-
const type = 'SET_DEVICE_PREVIEW';
|
|
85
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 1;
|
|
86
|
-
const request = {
|
|
87
|
-
type,
|
|
88
|
-
version,
|
|
89
|
-
payload: {
|
|
90
|
-
x,
|
|
91
|
-
y,
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
this.dispatch(request);
|
|
95
|
-
};
|
|
96
|
-
this.startZSpace = (session, emulate) => {
|
|
97
|
-
var _a;
|
|
98
|
-
const type = 'START_ZSPACE';
|
|
99
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 3;
|
|
100
|
-
if (version === 2) {
|
|
101
|
-
const request = {
|
|
102
|
-
type,
|
|
103
|
-
version,
|
|
104
|
-
payload: {
|
|
105
|
-
device: 'INSPIRE',
|
|
106
|
-
session,
|
|
107
|
-
emulate,
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
this.dispatch(request);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
const request = {
|
|
114
|
-
type,
|
|
115
|
-
version,
|
|
116
|
-
payload: {
|
|
117
|
-
session,
|
|
118
|
-
emulate,
|
|
119
|
-
},
|
|
120
|
-
};
|
|
121
|
-
this.dispatch(request);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
this.stopZSpace = () => {
|
|
125
|
-
var _a;
|
|
126
|
-
const type = 'STOP_ZSPACE';
|
|
127
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 1;
|
|
128
|
-
const request = {
|
|
129
|
-
type,
|
|
130
|
-
version,
|
|
131
|
-
};
|
|
132
|
-
this.dispatch(request);
|
|
133
|
-
};
|
|
134
|
-
this.setThemeColors = (colors) => {
|
|
135
|
-
var _a;
|
|
136
|
-
const type = 'SET_THEME_COLORS';
|
|
137
|
-
const version = (_a = this.appPayloadVersions.get(type)) !== null && _a !== void 0 ? _a : 1;
|
|
138
|
-
const request = {
|
|
139
|
-
type,
|
|
140
|
-
version,
|
|
141
|
-
payload: {
|
|
142
|
-
colors,
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
this.dispatch(request);
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
getAppHandlerVersion() {
|
|
149
|
-
const type = 'GET_APP_HANDLER_VERSION';
|
|
150
|
-
const payload = { callback: this.setupVersion };
|
|
151
|
-
try {
|
|
152
|
-
this.doDispatch(type, 1, payload);
|
|
153
|
-
}
|
|
154
|
-
catch (_a) {
|
|
155
|
-
// All good. this is probably an older app
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
getPayloadVersions() {
|
|
159
|
-
const type = 'GET_APP_PAYLOAD_VERSION';
|
|
160
|
-
const payload = { callback: this.setupPayloadVersions };
|
|
161
|
-
this.doDispatch(type, 2, payload);
|
|
162
|
-
}
|
|
163
|
-
doDispatch(type, version, payload) {
|
|
164
|
-
const request = {
|
|
165
|
-
type,
|
|
166
|
-
version,
|
|
167
|
-
payload,
|
|
168
|
-
};
|
|
169
|
-
this.dispatch(request);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Handler } from "../Types";
|
|
2
|
-
export declare abstract class RequestHandler {
|
|
3
|
-
abstract readonly requestType: string;
|
|
4
|
-
abstract handleRequest: (version: number, payload?: unknown) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare abstract class HostHandler {
|
|
7
|
-
abstract handler: Handler;
|
|
8
|
-
abstract registerRequestHandler: (requestHandler: RequestHandler) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeHostHandler(): HostHandler;
|
|
11
|
-
export declare class UnsupportedRequestVerion extends Error {
|
|
12
|
-
constructor(requestType: string, version: number);
|
|
13
|
-
}
|
|
14
|
-
export declare class ActionNotImplemented extends Error {
|
|
15
|
-
constructor(requestType: string);
|
|
16
|
-
}
|
|
17
|
-
export declare class UnableToParsePayload extends Error {
|
|
18
|
-
constructor(requestType: string, version: number, payload: string);
|
|
19
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnableToParsePayload = exports.ActionNotImplemented = exports.UnsupportedRequestVerion = exports.makeHostHandler = exports.HostHandler = exports.RequestHandler = void 0;
|
|
4
|
-
class RequestHandler {
|
|
5
|
-
}
|
|
6
|
-
exports.RequestHandler = RequestHandler;
|
|
7
|
-
class HostHandler {
|
|
8
|
-
}
|
|
9
|
-
exports.HostHandler = HostHandler;
|
|
10
|
-
function makeHostHandler() {
|
|
11
|
-
return new RequestHandlerImp();
|
|
12
|
-
}
|
|
13
|
-
exports.makeHostHandler = makeHostHandler;
|
|
14
|
-
class RequestHandlerImp extends HostHandler {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.handlers = new Map();
|
|
18
|
-
this.handler = (request) => {
|
|
19
|
-
const handler = this.handlers.get(request.type);
|
|
20
|
-
if (!handler) {
|
|
21
|
-
console.warn(`[HostHandler] Unsupported request type recieved: ${request.type}`);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
try {
|
|
25
|
-
handler.handleRequest(request.version, request.payload);
|
|
26
|
-
}
|
|
27
|
-
catch (e) {
|
|
28
|
-
console.warn(`[HostHandler] ${e}`);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
this.registerRequestHandler = (handler) => {
|
|
32
|
-
if (this.handlers.has(handler.requestType)) {
|
|
33
|
-
console.warn(`[HostHandler] More than one handler is being registered for ${handler.requestType}. Previous handler is being overwritten`);
|
|
34
|
-
}
|
|
35
|
-
this.handlers.set(handler.requestType, handler);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
class UnsupportedRequestVerion extends Error {
|
|
40
|
-
constructor(requestType, version) {
|
|
41
|
-
const msg = `Version ${version} of request type ${requestType} is not supported`;
|
|
42
|
-
super(msg);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.UnsupportedRequestVerion = UnsupportedRequestVerion;
|
|
46
|
-
class ActionNotImplemented extends Error {
|
|
47
|
-
constructor(requestType) {
|
|
48
|
-
const msg = `Action for request type ${requestType} is not implemented`;
|
|
49
|
-
super(msg);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.ActionNotImplemented = ActionNotImplemented;
|
|
53
|
-
class UnableToParsePayload extends Error {
|
|
54
|
-
constructor(requestType, version, payload) {
|
|
55
|
-
const msg = `Unable to parse paylod for version ${version} of request type ${requestType}: ${payload}`;
|
|
56
|
-
super(msg);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.UnableToParsePayload = UnableToParsePayload;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RequestHandler } from "../Components";
|
|
2
|
-
import { Handler } from "../Types";
|
|
3
|
-
export declare abstract class HostHandlerX {
|
|
4
|
-
abstract handler: Handler;
|
|
5
|
-
abstract registerRequestHandler: (requestHandler: RequestHandler) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function makeHostHandler(): HostHandlerX;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeHostHandler = exports.HostHandlerX = void 0;
|
|
4
|
-
class HostHandlerX {
|
|
5
|
-
}
|
|
6
|
-
exports.HostHandlerX = HostHandlerX;
|
|
7
|
-
function makeHostHandler() {
|
|
8
|
-
return new RequestHandlerImp();
|
|
9
|
-
}
|
|
10
|
-
exports.makeHostHandler = makeHostHandler;
|
|
11
|
-
class RequestHandlerImp extends HostHandlerX {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.handlers = new Map();
|
|
15
|
-
this.handler = (request) => {
|
|
16
|
-
const handler = this.handlers.get(request.type);
|
|
17
|
-
if (!handler) {
|
|
18
|
-
console.warn(`[HostHandler] Unsupported request type recieved: ${request.type}`);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
try {
|
|
22
|
-
handler.handleRequest(request.version, request.payload);
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
console.warn(`[HostHandler] ${e}`);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
this.registerRequestHandler = (handler) => {
|
|
29
|
-
if (this.handlers.has(handler.requestType)) {
|
|
30
|
-
console.warn(`[HostHandler] More than one handler is being registered for ${handler.requestType}. Previous handler is being overwritten`);
|
|
31
|
-
}
|
|
32
|
-
this.handlers.set(handler.requestType, handler);
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
package/lib/Entities/Logger.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare type LogSeverity = 'LOG' | 'WARNING' | 'ERROR' | 'FATAL';
|
|
2
|
-
export declare type FilterBy = 'sender' | 'severity' | 'message';
|
|
3
|
-
export declare type Log = {
|
|
4
|
-
sender: string;
|
|
5
|
-
message: string;
|
|
6
|
-
severity: LogSeverity;
|
|
7
|
-
};
|
|
8
|
-
export declare type Instructions = 'NOTHING' | 'SHOWLOG' | 'SHOWALL' | 'DOWNLOAD';
|
|
9
|
-
export declare type ObservedLog = {
|
|
10
|
-
instruction: Instructions;
|
|
11
|
-
payload: Log | Log[] | DownloadPayload;
|
|
12
|
-
};
|
|
13
|
-
export declare type DownloadPayload = {
|
|
14
|
-
filename: string;
|
|
15
|
-
fileData: {
|
|
16
|
-
filterBy: FilterBy | undefined;
|
|
17
|
-
filterValue: string | undefined;
|
|
18
|
-
logs: Log[];
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export declare type OnLogAdded = (log: Log) => void;
|
|
22
|
-
export declare type OnLogSaved = (observedLog: ObservedLog) => void;
|
|
23
|
-
export interface Logger {
|
|
24
|
-
addLogSaveObserver: (observer: OnLogSaved) => void;
|
|
25
|
-
removeLogSavedObserver: (observer: OnLogSaved) => void;
|
|
26
|
-
addLogAddedObserver: (observer: OnLogAdded) => void;
|
|
27
|
-
removeLogAddedObserver: (observer: OnLogAdded) => void;
|
|
28
|
-
log: (sender: string, message: string) => void;
|
|
29
|
-
warn: (sender: string, message: string) => void;
|
|
30
|
-
error: (sender: string, message: string) => void;
|
|
31
|
-
fatal: (sender: string, message: string) => void;
|
|
32
|
-
clear: () => void;
|
|
33
|
-
setFilter: (filterBy?: FilterBy, filterValue?: string) => void;
|
|
34
|
-
clearFilter: () => void;
|
|
35
|
-
displayAllLogs: () => void;
|
|
36
|
-
toggleShowLogs: () => void;
|
|
37
|
-
downloadLogs: () => void;
|
|
38
|
-
getAllLogs: () => Log[];
|
|
39
|
-
getFilteredLogs: () => Log[];
|
|
40
|
-
}
|
|
41
|
-
export declare function makeLoggerEntity(): Logger;
|
package/lib/Entities/Logger.js
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeLoggerEntity = void 0;
|
|
4
|
-
const ObserverList_1 = require("./ObserverList");
|
|
5
|
-
function makeLoggerEntity() {
|
|
6
|
-
return new LoggerImp();
|
|
7
|
-
}
|
|
8
|
-
exports.makeLoggerEntity = makeLoggerEntity;
|
|
9
|
-
class LoggerImp {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.logItems = [];
|
|
12
|
-
this.showLog = false;
|
|
13
|
-
this.saveObservers = new ObserverList_1.ObserverList();
|
|
14
|
-
this.logAddedObservers = new ObserverList_1.ObserverList();
|
|
15
|
-
this.filterBy = undefined;
|
|
16
|
-
this.filterValue = undefined;
|
|
17
|
-
this.addLogSaveObserver = (observer) => {
|
|
18
|
-
this.saveObservers.add(observer);
|
|
19
|
-
};
|
|
20
|
-
this.removeLogSavedObserver = (observer) => {
|
|
21
|
-
this.saveObservers.remove(observer);
|
|
22
|
-
};
|
|
23
|
-
this.addLogAddedObserver = (observer) => {
|
|
24
|
-
this.logAddedObservers.add(observer);
|
|
25
|
-
};
|
|
26
|
-
this.removeLogAddedObserver = (observer) => {
|
|
27
|
-
this.logAddedObservers.remove(observer);
|
|
28
|
-
};
|
|
29
|
-
this.log = (sender, message) => {
|
|
30
|
-
const log = this.setNewLog(sender, message, 'LOG');
|
|
31
|
-
this.logAddedObservers.notify(log);
|
|
32
|
-
};
|
|
33
|
-
this.warn = (sender, message) => {
|
|
34
|
-
const log = this.setNewLog(sender, message, 'WARNING');
|
|
35
|
-
this.logAddedObservers.notify(log);
|
|
36
|
-
};
|
|
37
|
-
this.error = (sender, message) => {
|
|
38
|
-
const log = this.setNewLog(sender, message, 'ERROR');
|
|
39
|
-
this.logAddedObservers.notify(log);
|
|
40
|
-
};
|
|
41
|
-
this.fatal = (sender, message) => {
|
|
42
|
-
const log = this.setNewLog(sender, message, 'FATAL');
|
|
43
|
-
this.logAddedObservers.notify(log);
|
|
44
|
-
};
|
|
45
|
-
this.clear = () => {
|
|
46
|
-
this.logItems = [];
|
|
47
|
-
};
|
|
48
|
-
this.downloadLogs = () => {
|
|
49
|
-
const logs = this.getAllLogs();
|
|
50
|
-
this.saveObservers.notify({
|
|
51
|
-
instruction: 'DOWNLOAD',
|
|
52
|
-
payload: {
|
|
53
|
-
filename: 'playerLogs.json',
|
|
54
|
-
fileData: {
|
|
55
|
-
filterBy: this.filterBy,
|
|
56
|
-
filterValue: this.filterValue,
|
|
57
|
-
logs,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
this.getAllLogs = () => {
|
|
63
|
-
return [...this.logItems];
|
|
64
|
-
};
|
|
65
|
-
this.getFilteredLogs = () => {
|
|
66
|
-
return this.logItems.filter((item) => this.filterFormula(item));
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
displayAllLogs() {
|
|
70
|
-
const allLogs = this.getFilteredLogs();
|
|
71
|
-
this.saveObservers.notify({
|
|
72
|
-
instruction: 'SHOWALL',
|
|
73
|
-
payload: allLogs,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
toggleShowLogs() {
|
|
77
|
-
this.showLog = !this.showLog;
|
|
78
|
-
}
|
|
79
|
-
setFilter(filterBy, filterValue) {
|
|
80
|
-
this.filterBy = filterBy;
|
|
81
|
-
this.filterValue = filterValue;
|
|
82
|
-
}
|
|
83
|
-
clearFilter() {
|
|
84
|
-
this.filterBy = undefined;
|
|
85
|
-
this.filterValue = undefined;
|
|
86
|
-
}
|
|
87
|
-
setNewLog(sender, message, severity) {
|
|
88
|
-
const log = {
|
|
89
|
-
sender,
|
|
90
|
-
message,
|
|
91
|
-
severity,
|
|
92
|
-
};
|
|
93
|
-
this.logItems.push(log);
|
|
94
|
-
if (this.showLog) {
|
|
95
|
-
this.saveObservers.notify({
|
|
96
|
-
instruction: 'SHOWLOG',
|
|
97
|
-
payload: log,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
return log;
|
|
101
|
-
}
|
|
102
|
-
filterFormula(item) {
|
|
103
|
-
var _a, _b;
|
|
104
|
-
if (this.filterBy) {
|
|
105
|
-
const currentValue = item[this.filterBy].toString().toLocaleLowerCase().trim();
|
|
106
|
-
const desiredValue = (_b = (_a = this.filterValue) === null || _a === void 0 ? void 0 : _a.toString().toLocaleLowerCase().trim()) !== null && _b !== void 0 ? _b : '';
|
|
107
|
-
const exactMatch = currentValue === desiredValue;
|
|
108
|
-
const similarMatch = currentValue.includes(desiredValue);
|
|
109
|
-
if (exactMatch || similarMatch) {
|
|
110
|
-
return item;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return item;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ObservableEntity } from './ObservableEntity';
|
|
2
|
-
export interface AssetDTO {
|
|
3
|
-
id: string;
|
|
4
|
-
ownerId: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
archived: boolean;
|
|
8
|
-
filename: string;
|
|
9
|
-
fileURL: string;
|
|
10
|
-
linkedAssets: {
|
|
11
|
-
type: string;
|
|
12
|
-
asset: AssetDTO;
|
|
13
|
-
}[];
|
|
14
|
-
}
|
|
15
|
-
export interface NewAssetDTO {
|
|
16
|
-
name: string;
|
|
17
|
-
description: string;
|
|
18
|
-
ownerID: string;
|
|
19
|
-
file: File;
|
|
20
|
-
}
|
|
21
|
-
export interface UpdateAssetDTO {
|
|
22
|
-
id: string;
|
|
23
|
-
name?: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
archived?: boolean;
|
|
26
|
-
file?: File;
|
|
27
|
-
}
|
|
28
|
-
export interface AppDTO {
|
|
29
|
-
interfaceVersion: string;
|
|
30
|
-
assetFolderURL: string;
|
|
31
|
-
entrypoints: string[];
|
|
32
|
-
}
|
|
33
|
-
export declare abstract class VivedAPI extends ObservableEntity {
|
|
34
|
-
abstract baseUrl: string;
|
|
35
|
-
abstract get userAuthToken(): string | undefined;
|
|
36
|
-
abstract set userAuthToken(token: string | undefined);
|
|
37
|
-
abstract clearAuthToken(): void;
|
|
38
|
-
abstract getEndpointURL(endpoint: string): URL;
|
|
39
|
-
abstract fetchAssetFile: (assetID: string) => Promise<File>;
|
|
40
|
-
abstract fetchAssetMeta: (assetID: string) => Promise<AssetDTO>;
|
|
41
|
-
abstract fetchAssetsForOwner: (ownerID: string) => Promise<AssetDTO[]>;
|
|
42
|
-
abstract setAssetArchived: (assetID: string, archived: boolean) => Promise<void>;
|
|
43
|
-
abstract postAssetMeta: (data: AssetDTO) => Promise<void>;
|
|
44
|
-
abstract createNewAsset: (data: NewAssetDTO) => Promise<string>;
|
|
45
|
-
abstract postAssetFile: (assetID: string, file: File) => Promise<void>;
|
|
46
|
-
abstract deleteAsset: (assetID: string) => Promise<string>;
|
|
47
|
-
abstract fetchApp(appID: string, version: string): Promise<AppDTO>;
|
|
48
|
-
abstract updateAsset(data: UpdateAssetDTO): Promise<string>;
|
|
49
|
-
}
|
|
50
|
-
export declare function makeVivedAPI(): VivedAPI;
|
package/lib/Entities/VivedAPI.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeVivedAPI = exports.VivedAPI = void 0;
|
|
4
|
-
const ObservableEntity_1 = require("./ObservableEntity");
|
|
5
|
-
class VivedAPI extends ObservableEntity_1.ObservableEntity {
|
|
6
|
-
}
|
|
7
|
-
exports.VivedAPI = VivedAPI;
|
|
8
|
-
function makeVivedAPI() {
|
|
9
|
-
return new VivedAPIImp();
|
|
10
|
-
}
|
|
11
|
-
exports.makeVivedAPI = makeVivedAPI;
|
|
12
|
-
class VivedAPIImp extends VivedAPI {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.baseUrl = 'https://api.vivedlearning.com';
|
|
16
|
-
this.getEndpointURL = (endpoint) => {
|
|
17
|
-
return new URL(endpoint, this.baseUrl);
|
|
18
|
-
};
|
|
19
|
-
this._userAuthToken = undefined;
|
|
20
|
-
this.clearAuthToken = () => {
|
|
21
|
-
if (this._userAuthToken === undefined)
|
|
22
|
-
return;
|
|
23
|
-
this._userAuthToken = undefined;
|
|
24
|
-
this.notify();
|
|
25
|
-
};
|
|
26
|
-
this.fetchAssetFile = ( /*assetId: string*/) => {
|
|
27
|
-
return Promise.reject(this.functionNotInjectedError('fetchAssetFile'));
|
|
28
|
-
};
|
|
29
|
-
this.fetchAssetMeta = ( /*assetID: string*/) => {
|
|
30
|
-
return Promise.reject(this.functionNotInjectedError('fetchAssetMeta'));
|
|
31
|
-
};
|
|
32
|
-
this.fetchAssetsForOwner = (ownerID) => {
|
|
33
|
-
return Promise.reject(this.functionNotInjectedError('fetchAssetsForOwner'));
|
|
34
|
-
};
|
|
35
|
-
this.setAssetArchived = (assetID, archived) => {
|
|
36
|
-
return Promise.reject(this.functionNotInjectedError('setAssetArchived'));
|
|
37
|
-
};
|
|
38
|
-
this.postAssetMeta = (data) => {
|
|
39
|
-
return Promise.reject(this.functionNotInjectedError('postAssetMeta'));
|
|
40
|
-
};
|
|
41
|
-
this.createNewAsset = (data) => {
|
|
42
|
-
return Promise.reject(this.functionNotInjectedError('createNewAsset'));
|
|
43
|
-
};
|
|
44
|
-
this.postAssetFile = (assetID, file) => {
|
|
45
|
-
return Promise.reject(this.functionNotInjectedError('postAssetFile'));
|
|
46
|
-
};
|
|
47
|
-
this.deleteAsset = (assetID) => {
|
|
48
|
-
return Promise.reject(this.functionNotInjectedError('deleteAsset'));
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
get userAuthToken() {
|
|
52
|
-
return this._userAuthToken;
|
|
53
|
-
}
|
|
54
|
-
set userAuthToken(token) {
|
|
55
|
-
if (token === this._userAuthToken)
|
|
56
|
-
return;
|
|
57
|
-
this._userAuthToken = token;
|
|
58
|
-
this.notify();
|
|
59
|
-
}
|
|
60
|
-
fetchApp(appID, version) {
|
|
61
|
-
return Promise.reject(this.functionNotInjectedError('fetchApp'));
|
|
62
|
-
}
|
|
63
|
-
updateAsset(data) {
|
|
64
|
-
return Promise.reject(this.functionNotInjectedError('updateAsset'));
|
|
65
|
-
}
|
|
66
|
-
functionNotInjectedError(functionName) {
|
|
67
|
-
return new Error(`API function ${functionName} has not been injected`);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DevicePreview } from "../..";
|
|
2
|
-
export interface DevicePreviewListVM {
|
|
3
|
-
useDevicePreview: boolean;
|
|
4
|
-
selectedDeviceName: string;
|
|
5
|
-
selectedDeviceX: number;
|
|
6
|
-
selectedDeviceY: number;
|
|
7
|
-
selectedDeviceID: string;
|
|
8
|
-
catagorizedDevices: Map<string, DeviceInfoVM[]>;
|
|
9
|
-
}
|
|
10
|
-
export interface DeviceInfoVM {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
}
|
|
16
|
-
export declare class DevicePreviewListPM {
|
|
17
|
-
devicePreview: DevicePreview;
|
|
18
|
-
updateView: (viewModel: DevicePreviewListVM) => void;
|
|
19
|
-
devices: Map<string, DeviceInfoVM[]>;
|
|
20
|
-
doUpdateView: () => void;
|
|
21
|
-
dispose(): void;
|
|
22
|
-
constructor(devicePreview: DevicePreview, updateView: (viewModel: DevicePreviewListVM) => void);
|
|
23
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DevicePreviewListPM = void 0;
|
|
4
|
-
class DevicePreviewListPM {
|
|
5
|
-
constructor(devicePreview, updateView) {
|
|
6
|
-
this.devices = new Map();
|
|
7
|
-
this.doUpdateView = () => {
|
|
8
|
-
const selectedDevice = this.devicePreview.selectedDevice;
|
|
9
|
-
if (selectedDevice) {
|
|
10
|
-
this.updateView({
|
|
11
|
-
catagorizedDevices: this.devices,
|
|
12
|
-
selectedDeviceID: selectedDevice.id,
|
|
13
|
-
selectedDeviceName: selectedDevice.name,
|
|
14
|
-
selectedDeviceX: selectedDevice.x,
|
|
15
|
-
selectedDeviceY: selectedDevice.y,
|
|
16
|
-
useDevicePreview: true,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
this.updateView({
|
|
21
|
-
catagorizedDevices: this.devices,
|
|
22
|
-
selectedDeviceID: '',
|
|
23
|
-
selectedDeviceName: '',
|
|
24
|
-
selectedDeviceX: 0,
|
|
25
|
-
selectedDeviceY: 0,
|
|
26
|
-
useDevicePreview: false,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
const categories = devicePreview.getCategoryList();
|
|
31
|
-
categories.forEach((category) => {
|
|
32
|
-
const devicesInCategory = devicePreview.getDevicesInCategory(category);
|
|
33
|
-
const deviceList = devicesInCategory.map((device) => {
|
|
34
|
-
const { id, name, x, y } = device;
|
|
35
|
-
return { id, name, x, y };
|
|
36
|
-
});
|
|
37
|
-
if (deviceList.length > 0) {
|
|
38
|
-
this.devices.set(category, deviceList);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
this.devicePreview = devicePreview;
|
|
42
|
-
this.updateView = updateView;
|
|
43
|
-
this.doUpdateView();
|
|
44
|
-
devicePreview.addObserver(this.doUpdateView);
|
|
45
|
-
}
|
|
46
|
-
dispose() {
|
|
47
|
-
this.devicePreview.removeObserver(this.doUpdateView);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.DevicePreviewListPM = DevicePreviewListPM;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DialogAlert, DialogRepo } from "../../Entities";
|
|
2
|
-
export interface AlertDialogVM {
|
|
3
|
-
message: string;
|
|
4
|
-
title: string;
|
|
5
|
-
buttonLabel: string;
|
|
6
|
-
close: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare class AlertDialogPM {
|
|
9
|
-
private repo;
|
|
10
|
-
private updateView;
|
|
11
|
-
private observingAlert;
|
|
12
|
-
private lastVM?;
|
|
13
|
-
doUpdateView: () => void;
|
|
14
|
-
updateAlertObserver(alert: DialogAlert | null): void;
|
|
15
|
-
private vmHasChanged;
|
|
16
|
-
dispose: () => void;
|
|
17
|
-
constructor(repo: DialogRepo, updateView: (vm: AlertDialogVM | null) => void);
|
|
18
|
-
}
|