@ankhorage/studio 6.0.2 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -7
- package/apm/update.json +2 -2
- package/dist/authSettings.d.ts +3 -3
- package/dist/authSettings.js +3 -3
- package/dist/bindingDiagnosticsModel.d.ts +1 -1
- package/dist/bindingDiagnosticsModel.d.ts.map +1 -1
- package/dist/bindingDiagnosticsModel.js +10 -10
- package/dist/bindingDiagnosticsModel.js.map +1 -1
- package/dist/bindingMetadataModel.d.ts +0 -2
- package/dist/bindingMetadataModel.d.ts.map +1 -1
- package/dist/bindingMetadataModel.js +3 -4
- package/dist/bindingMetadataModel.js.map +1 -1
- package/dist/bindingMutationModel.d.ts +4 -4
- package/dist/bindingMutationModel.d.ts.map +1 -1
- package/dist/bindingMutationModel.js +7 -8
- package/dist/bindingMutationModel.js.map +1 -1
- package/dist/bindingOperationModel.d.ts +2 -2
- package/dist/bindingOperationModel.js +7 -7
- package/dist/bindingSchemaModel.d.ts +3 -3
- package/dist/bindingSchemaModel.js +5 -5
- package/dist/canExecuteProjectDeployRelease.d.ts +1 -1
- package/dist/canExecuteProjectDeployRelease.js +1 -1
- package/dist/canvasDragModel.d.ts +5 -7
- package/dist/canvasDragModel.d.ts.map +1 -1
- package/dist/canvasDragModel.js +9 -16
- package/dist/canvasDragModel.js.map +1 -1
- package/dist/canvasDropZones.d.ts +1 -2
- package/dist/canvasDropZones.d.ts.map +1 -1
- package/dist/canvasDropZones.js +1 -2
- package/dist/canvasDropZones.js.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/contractGuards.d.ts +2 -2
- package/dist/contractGuards.js +2 -2
- package/dist/core/StudioContext.d.ts +1 -1
- package/dist/core/StudioContext.js +1 -1
- package/dist/core/StudioProvider.js +5 -5
- package/dist/core/mediaAuthoringHostClient.d.ts +2 -2
- package/dist/core/mediaAuthoringHostClient.js +2 -2
- package/dist/core/mediaRemovalCoordinator.d.ts +1 -1
- package/dist/core/mediaRemovalCoordinator.d.ts.map +1 -1
- package/dist/core/mediaRemovalCoordinator.js +9 -10
- package/dist/core/mediaRemovalCoordinator.js.map +1 -1
- package/dist/core/studioManifestDraftModel.d.ts +7 -7
- package/dist/core/studioManifestDraftModel.js +7 -7
- package/dist/core/studioManifestPersistenceModel.d.ts +1 -1
- package/dist/core/studioManifestPersistenceModel.js +1 -1
- package/dist/createProjectDeployRequest.d.ts +0 -1
- package/dist/createProjectDeployRequest.d.ts.map +1 -1
- package/dist/createProjectDeployRequest.js +0 -1
- package/dist/createProjectDeployRequest.js.map +1 -1
- package/dist/externalApiApi.d.ts +3 -3
- package/dist/externalApiApi.d.ts.map +1 -1
- package/dist/externalApiApi.js +24 -40
- package/dist/externalApiApi.js.map +1 -1
- package/dist/features/project-updates/adapters/inbound/ProjectUpdateDashboardPanel.d.ts.map +1 -1
- package/dist/features/project-updates/adapters/inbound/ProjectUpdateDashboardPanel.js +12 -4
- package/dist/features/project-updates/adapters/inbound/ProjectUpdateDashboardPanel.js.map +1 -1
- package/dist/features/project-updates/adapters/outbound/createStudioGeneratedPackagePolicyProjectReadPort.d.ts +4 -0
- package/dist/features/project-updates/adapters/outbound/createStudioGeneratedPackagePolicyProjectReadPort.d.ts.map +1 -0
- package/dist/features/project-updates/adapters/outbound/createStudioGeneratedPackagePolicyProjectReadPort.js +30 -0
- package/dist/features/project-updates/adapters/outbound/createStudioGeneratedPackagePolicyProjectReadPort.js.map +1 -0
- package/dist/features/project-updates/adapters/outbound/getGeneratedPackagePolicy.js +0 -8
- package/dist/features/project-updates/adapters/outbound/getGeneratedPackagePolicy.js.map +1 -1
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyDescriptor.d.ts +4 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyDescriptor.d.ts.map +1 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyDescriptor.js +21 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyDescriptor.js.map +1 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyHandler.d.ts +4 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyHandler.d.ts.map +1 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyHandler.js +11 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyHandler.js.map +1 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyProjectionDescriptor.d.ts +4 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyProjectionDescriptor.d.ts.map +1 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyProjectionDescriptor.js +10 -0
- package/dist/features/project-updates/adapters/outbound/readStudioGeneratedPackagePolicyProjectionDescriptor.js.map +1 -0
- package/dist/features/project-updates/application/resolveProjectUpdateDashboardPresentation.d.ts +11 -0
- package/dist/features/project-updates/application/resolveProjectUpdateDashboardPresentation.d.ts.map +1 -1
- package/dist/features/project-updates/application/resolveProjectUpdateDashboardPresentation.js +23 -8
- package/dist/features/project-updates/application/resolveProjectUpdateDashboardPresentation.js.map +1 -1
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyApplyOwnerStepPort.d.ts +4 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyApplyOwnerStepPort.d.ts.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyApplyOwnerStepPort.js +176 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyApplyOwnerStepPort.js.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.d.ts +5 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.d.ts.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.js +148 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyExtensionEvidencePort.js.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyProtocolPort.d.ts +5 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyProtocolPort.d.ts.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyProtocolPort.js +219 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyProtocolPort.js.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyUpdatePorts.d.ts +9 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyUpdatePorts.d.ts.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyUpdatePorts.js +17 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyUpdatePorts.js.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyVerifyOwnerStepPort.d.ts +4 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyVerifyOwnerStepPort.d.ts.map +1 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyVerifyOwnerStepPort.js +80 -0
- package/dist/features/project-updates/composition/createStudioGeneratedPackagePolicyVerifyOwnerStepPort.js.map +1 -0
- package/dist/features/project-updates/composition/createStudioProjectUpdateService.d.ts.map +1 -1
- package/dist/features/project-updates/composition/createStudioProjectUpdateService.js +11 -9
- package/dist/features/project-updates/composition/createStudioProjectUpdateService.js.map +1 -1
- package/dist/features/project-updates/constants.d.ts +2 -0
- package/dist/features/project-updates/constants.d.ts.map +1 -1
- package/dist/features/project-updates/constants.js +2 -0
- package/dist/features/project-updates/constants.js.map +1 -1
- package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.d.ts.map +1 -1
- package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.js +6 -3
- package/dist/features/project-updates/domain/applyGeneratedPackagePolicy.js.map +1 -1
- package/dist/features/project-updates/domain/createStudioGeneratedPackagePolicyExecutionContext.d.ts +4 -0
- package/dist/features/project-updates/domain/createStudioGeneratedPackagePolicyExecutionContext.d.ts.map +1 -0
- package/dist/features/project-updates/domain/createStudioGeneratedPackagePolicyExecutionContext.js +11 -0
- package/dist/features/project-updates/domain/createStudioGeneratedPackagePolicyExecutionContext.js.map +1 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyInventorySource.d.ts +5 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyInventorySource.d.ts.map +1 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyInventorySource.js +22 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyInventorySource.js.map +1 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyMutationTarget.d.ts +10 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyMutationTarget.d.ts.map +1 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyMutationTarget.js +21 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyMutationTarget.js.map +1 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyStatusSource.d.ts +5 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyStatusSource.d.ts.map +1 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyStatusSource.js +18 -0
- package/dist/features/project-updates/domain/readStudioGeneratedPackagePolicyStatusSource.js.map +1 -0
- package/dist/host/apis/createProjectEndpointCredentialResolver.d.ts +1 -1
- package/dist/host/apis/createProjectEndpointCredentialResolver.js +1 -1
- package/dist/host/apis/createTrustedEndpointTestFetch.d.ts +1 -1
- package/dist/host/apis/createTrustedEndpointTestFetch.js +1 -1
- package/dist/host/apis/createTrustedExternalApiFetch.d.ts +1 -1
- package/dist/host/apis/createTrustedExternalApiFetch.js +1 -1
- package/dist/host/apis/requestTrustedExternalApi.d.ts +3 -12
- package/dist/host/apis/requestTrustedExternalApi.d.ts.map +1 -1
- package/dist/host/apis/requestTrustedExternalApi.js +3 -53
- package/dist/host/apis/requestTrustedExternalApi.js.map +1 -1
- package/dist/host/apis/sanitizeExternalApiOperationTestResult.d.ts +1 -1
- package/dist/host/apis/sanitizeExternalApiOperationTestResult.js +1 -1
- package/dist/host/apis/studioExternalApiService.d.ts +1 -1
- package/dist/host/apis/studioExternalApiService.d.ts.map +1 -1
- package/dist/host/apis/studioExternalApiService.js +10 -17
- package/dist/host/apis/studioExternalApiService.js.map +1 -1
- package/dist/host/auth/projectAuthHealthService.d.ts +1 -1
- package/dist/host/auth/projectAuthHealthService.js +1 -1
- package/dist/host/createStudioHost.d.ts +1 -1
- package/dist/host/createStudioHost.js +1 -1
- package/dist/host/deploy/serializeProjectDeploySecret.d.ts.map +1 -1
- package/dist/host/deploy/serializeProjectDeploySecret.js +2 -9
- package/dist/host/deploy/serializeProjectDeploySecret.js.map +1 -1
- package/dist/host/http/apiRoutes.d.ts +1 -1
- package/dist/host/http/apiRoutes.d.ts.map +1 -1
- package/dist/host/http/apiRoutes.js +19 -29
- package/dist/host/http/apiRoutes.js.map +1 -1
- package/dist/host/http/authRoutes.js +1 -1
- package/dist/host/http/deployRoutes.d.ts.map +1 -1
- package/dist/host/http/deployRoutes.js +5 -11
- package/dist/host/http/deployRoutes.js.map +1 -1
- package/dist/host/http/mediaRoutes.d.ts.map +1 -1
- package/dist/host/http/mediaRoutes.js +10 -16
- package/dist/host/http/mediaRoutes.js.map +1 -1
- package/dist/host/http/moduleRoutes.d.ts.map +1 -1
- package/dist/host/http/moduleRoutes.js +8 -20
- package/dist/host/http/moduleRoutes.js.map +1 -1
- package/dist/host/http/secretRoutes.d.ts.map +1 -1
- package/dist/host/http/secretRoutes.js +10 -20
- package/dist/host/http/secretRoutes.js.map +1 -1
- package/dist/host/http/security.d.ts +1 -1
- package/dist/host/http/security.js +1 -1
- package/dist/host/http/server.d.ts +1 -1
- package/dist/host/http/server.js +1 -1
- package/dist/host/http/serverWithSecrets.d.ts +1 -1
- package/dist/host/http/serverWithSecrets.js +1 -1
- package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts +1 -1
- package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts.map +1 -1
- package/dist/host/layout/auth/resolveAuthLayoutPlan.js +7 -13
- package/dist/host/layout/auth/resolveAuthLayoutPlan.js.map +1 -1
- package/dist/host/layout/generatedImportComposer.d.ts +1 -1
- package/dist/host/layout/generatedImportComposer.js +3 -1
- package/dist/host/layout/generatedImportComposer.js.map +1 -1
- package/dist/host/layout/layoutGenerator.d.ts +2 -1
- package/dist/host/layout/layoutGenerator.d.ts.map +1 -1
- package/dist/host/layout/layoutGenerator.js +117 -69
- package/dist/host/layout/layoutGenerator.js.map +1 -1
- package/dist/host/layout/templates/auth/navigation.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/navigation.js +2 -2
- package/dist/host/layout/templates/auth/navigation.js.map +1 -1
- package/dist/host/layout/templates/auth/oauth.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/oauth.js +2 -8
- package/dist/host/layout/templates/auth/oauth.js.map +1 -1
- package/dist/host/layout/templates/auth/oauthCompletion.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/oauthCompletion.js +2 -2
- package/dist/host/layout/templates/auth/oauthCompletion.js.map +1 -1
- package/dist/host/layout/templates/auth/screen.d.ts +1 -1
- package/dist/host/layout/templates/auth/screen.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/screen.js +19 -137
- package/dist/host/layout/templates/auth/screen.js.map +1 -1
- package/dist/host/layout/templates/auth/screenController.d.ts.map +1 -1
- package/dist/host/layout/templates/auth/screenController.js +4 -6
- package/dist/host/layout/templates/auth/screenController.js.map +1 -1
- package/dist/host/layout/templates/rootLayout.d.ts +1 -1
- package/dist/host/layout/templates/rootLayout.js +4 -4
- package/dist/host/layout/templates/screen.d.ts +1 -1
- package/dist/host/layout/templates/screen.js +1 -1
- package/dist/host/layout/templates/utils/routes.d.ts +2 -2
- package/dist/host/layout/templates/utils/routes.js +2 -2
- package/dist/host/layout/templates/utils/strings.d.ts +1 -1
- package/dist/host/layout/templates/utils/strings.js +1 -1
- package/dist/host/layout/utils/escapeStringLiteral.d.ts +0 -1
- package/dist/host/layout/utils/escapeStringLiteral.d.ts.map +1 -1
- package/dist/host/layout/utils/escapeStringLiteral.js +2 -6
- package/dist/host/layout/utils/escapeStringLiteral.js.map +1 -1
- package/dist/host/manifestSystem/index.d.ts +1 -1
- package/dist/host/manifestSystem/index.js +1 -1
- package/dist/host/media/projectAuthoringAssetWriter.d.ts +0 -1
- package/dist/host/media/projectAuthoringAssetWriter.d.ts.map +1 -1
- package/dist/host/media/projectAuthoringAssetWriter.js +8 -4
- package/dist/host/media/projectAuthoringAssetWriter.js.map +1 -1
- package/dist/host/media/removeProjectAuthoringAsset.d.ts +0 -1
- package/dist/host/media/removeProjectAuthoringAsset.d.ts.map +1 -1
- package/dist/host/media/removeProjectAuthoringAsset.js +6 -8
- package/dist/host/media/removeProjectAuthoringAsset.js.map +1 -1
- package/dist/host/modules/runtime/LocalFsTargetAdapter.d.ts +1 -1
- package/dist/host/modules/runtime/LocalFsTargetAdapter.js +2 -2
- package/dist/host/orchestrator/GeneratedRouteFileOwnership.d.ts +1 -1
- package/dist/host/orchestrator/GeneratedRouteFileOwnership.d.ts.map +1 -1
- package/dist/host/orchestrator/GeneratedRouteFileOwnership.js +8 -21
- package/dist/host/orchestrator/GeneratedRouteFileOwnership.js.map +1 -1
- package/dist/host/orchestrator/generatedAppFiles.d.ts +1 -4
- package/dist/host/orchestrator/generatedAppFiles.d.ts.map +1 -1
- package/dist/host/orchestrator/generatedAppFiles.js +4 -16
- package/dist/host/orchestrator/generatedAppFiles.js.map +1 -1
- package/dist/host/orchestrator/moduleManager.d.ts +1 -1
- package/dist/host/orchestrator/moduleManager.d.ts.map +1 -1
- package/dist/host/orchestrator/moduleManager.js +2 -8
- package/dist/host/orchestrator/moduleManager.js.map +1 -1
- package/dist/host/orchestrator/projectManager.d.ts +2 -2
- package/dist/host/orchestrator/projectManager.d.ts.map +1 -1
- package/dist/host/orchestrator/projectManager.js +9 -24
- package/dist/host/orchestrator/projectManager.js.map +1 -1
- package/dist/host/orchestrator/projectPaths.d.ts +3 -3
- package/dist/host/orchestrator/projectPaths.js +3 -3
- package/dist/host/orchestrator/projectStore.d.ts +1 -1
- package/dist/host/orchestrator/projectStore.js +1 -1
- package/dist/host/orchestrator/projectTargets.d.ts +1 -1
- package/dist/host/orchestrator/projectTargets.js +2 -2
- package/dist/host/orchestrator/reconcileProjectPackageRootAsync.d.ts +1 -1
- package/dist/host/orchestrator/reconcileProjectPackageRootAsync.js +1 -1
- package/dist/host/orchestrator/resolveMutations.d.ts +1 -1
- package/dist/host/orchestrator/resolveMutations.js +1 -1
- package/dist/host/orchestrator/scaffolder.d.ts +2 -4
- package/dist/host/orchestrator/scaffolder.d.ts.map +1 -1
- package/dist/host/orchestrator/scaffolder.js +12 -31
- package/dist/host/orchestrator/scaffolder.js.map +1 -1
- package/dist/host/orchestrator/studioInfraUp.d.ts +1 -1
- package/dist/host/orchestrator/studioInfraUp.js +1 -1
- package/dist/host/secrets/bunSupabaseVaultClient.d.ts +1 -1
- package/dist/host/secrets/bunSupabaseVaultClient.d.ts.map +1 -1
- package/dist/host/secrets/bunSupabaseVaultClient.js +6 -4
- package/dist/host/secrets/bunSupabaseVaultClient.js.map +1 -1
- package/dist/host/secrets/projectSecretService.d.ts +2 -2
- package/dist/host/secrets/projectSecretService.d.ts.map +1 -1
- package/dist/host/secrets/projectSecretService.js +9 -24
- package/dist/host/secrets/projectSecretService.js.map +1 -1
- package/dist/host/secrets/trustedOAuthInfraEnvironment.d.ts +2 -2
- package/dist/host/secrets/trustedOAuthInfraEnvironment.js +3 -3
- package/dist/host/templates/index.d.ts +2 -2
- package/dist/host/templates/index.js +2 -2
- package/dist/host/utils/requirementsInference.d.ts +2 -2
- package/dist/host/utils/requirementsInference.js +2 -2
- package/dist/host/utils/workspaceRoot.d.ts +1 -1
- package/dist/host/utils/workspaceRoot.d.ts.map +1 -1
- package/dist/host/utils/workspaceRoot.js +6 -10
- package/dist/host/utils/workspaceRoot.js.map +1 -1
- package/dist/index.d.ts +19 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -76
- package/dist/index.js.map +1 -1
- package/dist/insertModalModel.d.ts +2 -4
- package/dist/insertModalModel.d.ts.map +1 -1
- package/dist/insertModalModel.js +2 -4
- package/dist/insertModalModel.js.map +1 -1
- package/dist/manifestState.d.ts +45 -45
- package/dist/manifestState.js +58 -58
- package/dist/manifestSync.d.ts +3 -3
- package/dist/manifestSync.d.ts.map +1 -1
- package/dist/manifestSync.js +5 -4
- package/dist/manifestSync.js.map +1 -1
- package/dist/mediaAuthoringModel.d.ts +6 -8
- package/dist/mediaAuthoringModel.d.ts.map +1 -1
- package/dist/mediaAuthoringModel.js +17 -36
- package/dist/mediaAuthoringModel.js.map +1 -1
- package/dist/moduleAdminApi.d.ts +7 -9
- package/dist/moduleAdminApi.d.ts.map +1 -1
- package/dist/moduleAdminApi.js +15 -22
- package/dist/moduleAdminApi.js.map +1 -1
- package/dist/normalizeExternalApiId.d.ts +0 -1
- package/dist/normalizeExternalApiId.d.ts.map +1 -1
- package/dist/normalizeExternalApiId.js +2 -7
- package/dist/normalizeExternalApiId.js.map +1 -1
- package/dist/projectAuthApi.d.ts +1 -1
- package/dist/projectAuthApi.js +8 -9
- package/dist/projectAuthApi.js.map +1 -1
- package/dist/projectAuthHealth.d.ts +1 -1
- package/dist/projectAuthHealth.d.ts.map +1 -1
- package/dist/projectAuthHealth.js +10 -11
- package/dist/projectAuthHealth.js.map +1 -1
- package/dist/projectAuthRuntimeDiagnostics.d.ts +1 -1
- package/dist/projectAuthRuntimeDiagnostics.js +16 -24
- package/dist/projectAuthRuntimeDiagnostics.js.map +1 -1
- package/dist/projectDeployApi.d.ts +17 -17
- package/dist/projectDeployApi.js +18 -18
- package/dist/projectDeployApiError.d.ts +1 -1
- package/dist/projectDeployApiError.js +1 -1
- package/dist/projectDeployAssetPicker.d.ts +1 -1
- package/dist/projectDeployAssetPicker.d.ts.map +1 -1
- package/dist/projectDeployAssetPicker.js +10 -9
- package/dist/projectDeployAssetPicker.js.map +1 -1
- package/dist/projectDeployClient.d.ts +3 -3
- package/dist/projectDeployClient.d.ts.map +1 -1
- package/dist/projectDeployClient.js +42 -95
- package/dist/projectDeployClient.js.map +1 -1
- package/dist/projectIdentity.d.ts +1 -2
- package/dist/projectIdentity.d.ts.map +1 -1
- package/dist/projectIdentity.js +3 -4
- package/dist/projectIdentity.js.map +1 -1
- package/dist/projectOAuthSetup.d.ts +3 -3
- package/dist/projectOAuthSetup.js +3 -3
- package/dist/projectSecretApi.d.ts +6 -6
- package/dist/projectSecretApi.js +14 -14
- package/dist/projectSecretUsage.d.ts +1 -1
- package/dist/projectSecretUsage.js +1 -2
- package/dist/projectSecretUsage.js.map +1 -1
- package/dist/routeUtils.d.ts +1 -1
- package/dist/routeUtils.js +1 -1
- package/dist/runtime/actionSuppression.d.ts +0 -1
- package/dist/runtime/actionSuppression.d.ts.map +1 -1
- package/dist/runtime/actionSuppression.js +0 -1
- package/dist/runtime/actionSuppression.js.map +1 -1
- package/dist/runtime/index.d.ts +0 -2
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +0 -2
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/interactionPolicy.d.ts +1 -1
- package/dist/runtime/interactionPolicy.js +1 -1
- package/dist/runtime/interactionPolicyCore.d.ts +0 -2
- package/dist/runtime/interactionPolicyCore.d.ts.map +1 -1
- package/dist/runtime/interactionPolicyCore.js +13 -28
- package/dist/runtime/interactionPolicyCore.js.map +1 -1
- package/dist/runtime/runtimeActions.d.ts +1 -1
- package/dist/runtime/runtimeActions.js +1 -1
- package/dist/runtime/runtimeNodeMeasurement.d.ts +2 -13
- package/dist/runtime/runtimeNodeMeasurement.d.ts.map +1 -1
- package/dist/runtime/runtimeNodeMeasurement.js +17 -86
- package/dist/runtime/runtimeNodeMeasurement.js.map +1 -1
- package/dist/runtime/stationarySelection.d.ts +3 -3
- package/dist/runtime/stationarySelection.d.ts.map +1 -1
- package/dist/runtime/stationarySelection.js +15 -54
- package/dist/runtime/stationarySelection.js.map +1 -1
- package/dist/runtime/studioMediaResolver.d.ts +1 -1
- package/dist/runtime/studioMediaResolver.js +2 -2
- package/dist/runtime/useRuntimeAction.d.ts +1 -1
- package/dist/runtime/useRuntimeAction.js +1 -1
- package/dist/runtimeDiagnosticsModel.d.ts +1 -4
- package/dist/runtimeDiagnosticsModel.d.ts.map +1 -1
- package/dist/runtimeDiagnosticsModel.js +1 -4
- package/dist/runtimeDiagnosticsModel.js.map +1 -1
- package/dist/secretResponseGuard.d.ts +2 -6
- package/dist/secretResponseGuard.d.ts.map +1 -1
- package/dist/secretResponseGuard.js +3 -37
- package/dist/secretResponseGuard.js.map +1 -1
- package/dist/studioAdminRouteModel.d.ts +7 -14
- package/dist/studioAdminRouteModel.d.ts.map +1 -1
- package/dist/studioAdminRouteModel.js +17 -28
- package/dist/studioAdminRouteModel.js.map +1 -1
- package/dist/studioRuntimeApi.d.ts +1 -1
- package/dist/studioRuntimeApi.js +3 -3
- package/dist/studioSelectionModel.d.ts +0 -4
- package/dist/studioSelectionModel.d.ts.map +1 -1
- package/dist/studioSelectionModel.js +0 -5
- package/dist/studioSelectionModel.js.map +1 -1
- package/dist/types/project-updates.d.ts +7 -1
- package/dist/types/project-updates.d.ts.map +1 -1
- package/dist/ui/admin/AnkhAdminPage.js +1 -1
- package/dist/ui/admin/AuthAdminSession.d.ts +1 -1
- package/dist/ui/admin/AuthAdminSession.js +1 -1
- package/dist/ui/admin/ModuleAdminViewBoundary.d.ts +0 -1
- package/dist/ui/admin/ModuleAdminViewBoundary.d.ts.map +1 -1
- package/dist/ui/admin/ModuleAdminViewBoundary.js +2 -2
- package/dist/ui/admin/ModuleAdminViewBoundary.js.map +1 -1
- package/dist/ui/admin/ModuleAdminViewHost.d.ts +1 -1
- package/dist/ui/admin/ModuleAdminViewHost.js +1 -1
- package/dist/ui/admin/adminPagePrimitives.d.ts +5 -5
- package/dist/ui/admin/adminPagePrimitives.js +5 -5
- package/dist/ui/admin/moduleAdminViewRegistry.d.ts +1 -1
- package/dist/ui/admin/moduleAdminViewRegistry.js +1 -1
- package/dist/ui/admin/pages/ApiOperationsCard.d.ts.map +1 -1
- package/dist/ui/admin/pages/ApiOperationsCard.js +4 -7
- package/dist/ui/admin/pages/ApiOperationsCard.js.map +1 -1
- package/dist/ui/admin/pages/AuthAdminPage.d.ts +1 -1
- package/dist/ui/admin/pages/AuthAdminPage.d.ts.map +1 -1
- package/dist/ui/admin/pages/AuthAdminPage.js +26 -35
- package/dist/ui/admin/pages/AuthAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/BindingsAdminPage.d.ts +1 -1
- package/dist/ui/admin/pages/BindingsAdminPage.js +1 -1
- package/dist/ui/admin/pages/ModuleDetailAdminPage.d.ts.map +1 -1
- package/dist/ui/admin/pages/ModuleDetailAdminPage.js +4 -10
- package/dist/ui/admin/pages/ModuleDetailAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ModulesAdminPage.d.ts.map +1 -1
- package/dist/ui/admin/pages/ModulesAdminPage.js +3 -9
- package/dist/ui/admin/pages/ModulesAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ScreenDetailAdminPage.js +1 -1
- package/dist/ui/admin/pages/ScreensAdminPage.js +1 -1
- package/dist/ui/admin/pages/SecretsAdminPage.d.ts +1 -1
- package/dist/ui/admin/pages/SecretsAdminPage.d.ts.map +1 -1
- package/dist/ui/admin/pages/SecretsAdminPage.js +30 -137
- package/dist/ui/admin/pages/SecretsAdminPage.js.map +1 -1
- package/dist/ui/admin/pages/ThemeModeEditorSelector.d.ts +1 -1
- package/dist/ui/admin/pages/ThemeModeEditorSelector.js +1 -1
- package/dist/ui/admin/pages/adminApiOperations.d.ts +1 -1
- package/dist/ui/admin/pages/adminApiOperations.js +1 -1
- package/dist/ui/admin/pages/adminAuthCredentialFlow.d.ts +1 -1
- package/dist/ui/admin/pages/adminAuthCredentialFlow.d.ts.map +1 -1
- package/dist/ui/admin/pages/adminAuthCredentialFlow.js +5 -14
- package/dist/ui/admin/pages/adminAuthCredentialFlow.js.map +1 -1
- package/dist/ui/admin/pages/adminAuthSessionModel.d.ts +5 -66
- package/dist/ui/admin/pages/adminAuthSessionModel.d.ts.map +1 -1
- package/dist/ui/admin/pages/adminAuthSessionModel.js +37 -132
- package/dist/ui/admin/pages/adminAuthSessionModel.js.map +1 -1
- package/dist/ui/admin/pages/adminThemeModel.d.ts +2 -2
- package/dist/ui/admin/pages/adminThemeModel.js +2 -2
- package/dist/ui/admin/pages/bindings/bindingEditorModel.d.ts +0 -3
- package/dist/ui/admin/pages/bindings/bindingEditorModel.d.ts.map +1 -1
- package/dist/ui/admin/pages/bindings/bindingEditorModel.js +7 -8
- package/dist/ui/admin/pages/bindings/bindingEditorModel.js.map +1 -1
- package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.d.ts +1 -1
- package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.d.ts.map +1 -1
- package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.js +8 -19
- package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.js.map +1 -1
- package/dist/ui/admin/pages/screens/screensAdminActions.d.ts +1 -1
- package/dist/ui/admin/pages/screens/screensAdminActions.js +1 -1
- package/dist/ui/admin/pages/themeRecipeAuthoringModel.d.ts.map +1 -1
- package/dist/ui/admin/pages/themeRecipeAuthoringModel.js +3 -8
- package/dist/ui/admin/pages/themeRecipeAuthoringModel.js.map +1 -1
- package/dist/ui/admin/pages/themeRecipeTokenOptions.d.ts +1 -1
- package/dist/ui/admin/pages/themeRecipeTokenOptions.js +1 -1
- package/dist/ui/admin/pages/useActiveThemeAdmin.d.ts +1 -1
- package/dist/ui/admin/pages/useActiveThemeAdmin.js +1 -1
- package/dist/ui/canvas/StudioCanvasDndOverlay.d.ts +1 -1
- package/dist/ui/canvas/StudioCanvasDndOverlay.js +2 -2
- package/dist/ui/canvas/canvasDndInteraction.d.ts +3 -4
- package/dist/ui/canvas/canvasDndInteraction.d.ts.map +1 -1
- package/dist/ui/canvas/canvasDndInteraction.js +5 -5
- package/dist/ui/canvas/canvasDndInteraction.js.map +1 -1
- package/dist/utils/treeUtils.d.ts +1 -1
- package/dist/utils/treeUtils.js +1 -1
- package/dist/workspacePlatform.d.ts +0 -3
- package/dist/workspacePlatform.d.ts.map +1 -1
- package/dist/workspacePlatform.js +0 -3
- package/dist/workspacePlatform.js.map +1 -1
- package/package.json +51 -50
- package/dist/constants.d.ts +0 -1636
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -10
- package/dist/constants.js.map +0 -1
- package/dist/host/zoraExtensions/index.d.ts +0 -22
- package/dist/host/zoraExtensions/index.d.ts.map +0 -1
- package/dist/host/zoraExtensions/index.js +0 -61
- package/dist/host/zoraExtensions/index.js.map +0 -1
- package/dist/runtime/appExtensionRegistry.d.ts +0 -3
- package/dist/runtime/appExtensionRegistry.d.ts.map +0 -1
- package/dist/runtime/appExtensionRegistry.js +0 -12
- package/dist/runtime/appExtensionRegistry.js.map +0 -1
- package/dist/runtime/registry.d.ts +0 -6
- package/dist/runtime/registry.d.ts.map +0 -1
- package/dist/runtime/registry.js +0 -5
- package/dist/runtime/registry.js.map +0 -1
- package/dist/ui/admin/pages/adminAuthHealthFlow.d.ts +0 -26
- package/dist/ui/admin/pages/adminAuthHealthFlow.d.ts.map +0 -1
- package/dist/ui/admin/pages/adminAuthHealthFlow.js +0 -32
- package/dist/ui/admin/pages/adminAuthHealthFlow.js.map +0 -1
package/dist/manifestState.js
CHANGED
|
@@ -48,7 +48,7 @@ export const DEFAULT_STUDIO_SCREEN_TEMPLATE = {
|
|
|
48
48
|
};
|
|
49
49
|
/***
|
|
50
50
|
* Generate a Studio manifest-state identifier from the current time, randomness, and optional prefix.
|
|
51
|
-
*
|
|
51
|
+
* TODO: Move this identifier policy from the src root into the manifest domain or the domain that owns generated authoring IDs.
|
|
52
52
|
*/
|
|
53
53
|
export const generateManifestStateId = (prefix) => {
|
|
54
54
|
const timestamp = Date.now().toString(36);
|
|
@@ -58,7 +58,7 @@ export const generateManifestStateId = (prefix) => {
|
|
|
58
58
|
};
|
|
59
59
|
/***
|
|
60
60
|
* Serialize the manifest fields used to detect broad Studio authoring-state changes.
|
|
61
|
-
*
|
|
61
|
+
* TODO: Move this manifest state projection from the src root into the manifest domain.
|
|
62
62
|
*/
|
|
63
63
|
export function createStudioManifestFingerprint(manifest) {
|
|
64
64
|
if (!manifest)
|
|
@@ -77,21 +77,21 @@ export function createStudioManifestFingerprint(manifest) {
|
|
|
77
77
|
}
|
|
78
78
|
/***
|
|
79
79
|
* Convert a navigator parent path to the stable key used for route grouping.
|
|
80
|
-
*
|
|
80
|
+
* TODO: Move this route-path helper from the src root into routes/.
|
|
81
81
|
*/
|
|
82
82
|
export function pathToKey(path) {
|
|
83
83
|
return path.length === 0 ? '__root__' : path.join('/');
|
|
84
84
|
}
|
|
85
85
|
/***
|
|
86
86
|
* Return whether a route segment represents an Expo Router-style group segment.
|
|
87
|
-
*
|
|
87
|
+
* TODO: Move this route semantic helper from the src root into routes/.
|
|
88
88
|
*/
|
|
89
89
|
export function isRouteGroupSegment(segment) {
|
|
90
90
|
return /^\(.*\)$/.test(segment);
|
|
91
91
|
}
|
|
92
92
|
/***
|
|
93
93
|
* Recursively collect screen-targeting routes together with their navigator and route paths.
|
|
94
|
-
*
|
|
94
|
+
* TODO: Move route traversal from the src root into routes/.
|
|
95
95
|
*/
|
|
96
96
|
export function collectScreenRouteEntries(routes, parentPath = [], routePathPrefix = []) {
|
|
97
97
|
const entries = [];
|
|
@@ -113,7 +113,7 @@ export function collectScreenRouteEntries(routes, parentPath = [], routePathPref
|
|
|
113
113
|
}
|
|
114
114
|
/***
|
|
115
115
|
* Group collected screen routes by the navigator parent path that owns them.
|
|
116
|
-
*
|
|
116
|
+
* TODO: Move route grouping from the src root into routes/.
|
|
117
117
|
*/
|
|
118
118
|
export function groupScreenRouteEntries(entries) {
|
|
119
119
|
const groups = new Map();
|
|
@@ -132,7 +132,7 @@ export function groupScreenRouteEntries(entries) {
|
|
|
132
132
|
}
|
|
133
133
|
/***
|
|
134
134
|
* Verify that every screen registry key equals its unique stable ScreenSpec identifier.
|
|
135
|
-
*
|
|
135
|
+
* TODO: Move this manifest screen invariant from the src root into the manifest domain.
|
|
136
136
|
*/
|
|
137
137
|
export function hasCanonicalStudioScreenRegistryIdentity(screens) {
|
|
138
138
|
const screenIds = new Set();
|
|
@@ -145,7 +145,7 @@ export function hasCanonicalStudioScreenRegistryIdentity(screens) {
|
|
|
145
145
|
}
|
|
146
146
|
/***
|
|
147
147
|
* Resolve a screen by stable identifier only when the manifest screen registry satisfies its canonical identity invariant.
|
|
148
|
-
*
|
|
148
|
+
* TODO: Move this screen lookup from the src root into the manifest domain.
|
|
149
149
|
*/
|
|
150
150
|
function resolveCanonicalStudioScreen(manifest, screenId) {
|
|
151
151
|
if (!hasCanonicalStudioScreenRegistryIdentity(manifest.screens))
|
|
@@ -154,7 +154,7 @@ function resolveCanonicalStudioScreen(manifest, screenId) {
|
|
|
154
154
|
}
|
|
155
155
|
/***
|
|
156
156
|
* Derive the complete screen/navigation authoring model and diagnostics without flattening the navigator tree.
|
|
157
|
-
*
|
|
157
|
+
* TODO: Move navigation-model derivation from the src root into routes/.
|
|
158
158
|
*/
|
|
159
159
|
export function deriveStudioScreenNavigationModel(manifest) {
|
|
160
160
|
const primaryNavigatorPath = getPrimaryNavigatorPath(manifest.navigator.routes);
|
|
@@ -215,7 +215,7 @@ export function deriveStudioScreenNavigationModel(manifest) {
|
|
|
215
215
|
}
|
|
216
216
|
/***
|
|
217
217
|
* Resolve a concrete app pathname only when a screen has one unique, non-dynamic route reference.
|
|
218
|
-
*
|
|
218
|
+
* TODO: Move canonical route-path resolution from the src root into routes/.
|
|
219
219
|
*/
|
|
220
220
|
export function resolveStudioScreenAppPath(model, screenId) {
|
|
221
221
|
const matchingEntries = model.screens.filter((candidate) => candidate.screenId === screenId);
|
|
@@ -239,7 +239,7 @@ export function resolveStudioScreenAppPath(model, screenId) {
|
|
|
239
239
|
}
|
|
240
240
|
/***
|
|
241
241
|
* Traverse a navigator tree to collect route references and navigation diagnostics for each screen.
|
|
242
|
-
*
|
|
242
|
+
* TODO: Move navigation traversal and diagnostics from the src root into routes/.
|
|
243
243
|
*/
|
|
244
244
|
function collectNavigationModelReferences(args) {
|
|
245
245
|
const { navigator, screens, primaryNavigatorPath, parentPath, routePathPrefix, runtimePathPrefix, diagnostics, referencesByRegistryKey, } = args;
|
|
@@ -337,7 +337,7 @@ function collectNavigationModelReferences(args) {
|
|
|
337
337
|
}
|
|
338
338
|
/***
|
|
339
339
|
* Append one route's explicit or named path segments to the current runtime route path.
|
|
340
|
-
*
|
|
340
|
+
* TODO: Move runtime route-path construction from the src root into routes/.
|
|
341
341
|
*/
|
|
342
342
|
function appendRuntimeRoutePath(runtimePathPrefix, route) {
|
|
343
343
|
const explicitPath = route.path?.trim();
|
|
@@ -347,28 +347,28 @@ function appendRuntimeRoutePath(runtimePathPrefix, route) {
|
|
|
347
347
|
}
|
|
348
348
|
/***
|
|
349
349
|
* Compare two route paths for ordered segment equality.
|
|
350
|
-
*
|
|
350
|
+
* TODO: Keep this small comparison helper local to routes/ unless broader reuse is demonstrated.
|
|
351
351
|
*/
|
|
352
352
|
function pathsEqual(first, second) {
|
|
353
353
|
return (first.length === second.length && first.every((value, index) => value === second.at(index)));
|
|
354
354
|
}
|
|
355
355
|
/***
|
|
356
356
|
* Format a route parent path for navigation diagnostic messages.
|
|
357
|
-
*
|
|
357
|
+
* TODO: Move route diagnostic formatting from the src root into routes/.
|
|
358
358
|
*/
|
|
359
359
|
function formatParentPath(parentPath) {
|
|
360
360
|
return parentPath.length === 0 ? '<root>' : parentPath.join('/');
|
|
361
361
|
}
|
|
362
362
|
/***
|
|
363
363
|
* List routed screen identifiers in navigator traversal order.
|
|
364
|
-
*
|
|
364
|
+
* TODO: Move route ordering behavior from the src root into routes/.
|
|
365
365
|
*/
|
|
366
366
|
export function listScreenIdsInRouteOrder(routes) {
|
|
367
367
|
return collectScreenRouteEntries(routes).map((entry) => entry.screenId);
|
|
368
368
|
}
|
|
369
369
|
/***
|
|
370
370
|
* Resolve the initial leaf screen selected by a nested navigator tree, falling back to the first usable route.
|
|
371
|
-
*
|
|
371
|
+
* TODO: Move initial-route resolution from the src root into routes/.
|
|
372
372
|
*/
|
|
373
373
|
export function resolveInitialScreenId(navigator, screens) {
|
|
374
374
|
if (screens && !hasCanonicalStudioScreenRegistryIdentity(screens))
|
|
@@ -393,7 +393,7 @@ export function resolveInitialScreenId(navigator, screens) {
|
|
|
393
393
|
}
|
|
394
394
|
/***
|
|
395
395
|
* Resolve the active screen Studio should select when a manifest is first opened.
|
|
396
|
-
*
|
|
396
|
+
* TODO: Move initial Studio screen selection out of the src root into routes/ or selection/ according to its caller boundary.
|
|
397
397
|
*/
|
|
398
398
|
export function resolveInitialActiveScreenId(manifest) {
|
|
399
399
|
if (!manifest || !hasCanonicalStudioScreenRegistryIdentity(manifest.screens))
|
|
@@ -404,7 +404,7 @@ export function resolveInitialActiveScreenId(manifest) {
|
|
|
404
404
|
}
|
|
405
405
|
/***
|
|
406
406
|
* Resolve the root UI node for the active canonical screen.
|
|
407
|
-
*
|
|
407
|
+
* TODO: Move active-screen root resolution from the src root into the manifest/selection boundary.
|
|
408
408
|
*/
|
|
409
409
|
export function resolveActiveRootNode(manifest, activeScreenId) {
|
|
410
410
|
if (!manifest || !activeScreenId)
|
|
@@ -413,7 +413,7 @@ export function resolveActiveRootNode(manifest, activeScreenId) {
|
|
|
413
413
|
}
|
|
414
414
|
/***
|
|
415
415
|
* Recursively find a UI node by identifier in a manifest-owned UI tree.
|
|
416
|
-
*
|
|
416
|
+
* TODO: Move UI-tree traversal from the src root into canvas/.
|
|
417
417
|
*/
|
|
418
418
|
export function findNodeInManifest(root, id) {
|
|
419
419
|
if (root.id === id)
|
|
@@ -427,7 +427,7 @@ export function findNodeInManifest(root, id) {
|
|
|
427
427
|
}
|
|
428
428
|
/***
|
|
429
429
|
* Keep a selected node identifier only while that node still exists in the active tree.
|
|
430
|
-
*
|
|
430
|
+
* TODO: Move selection validity policy from the src root into selection/.
|
|
431
431
|
*/
|
|
432
432
|
export function resolveSafeSelectedNodeId(rootNode, selectedNodeId) {
|
|
433
433
|
if (!selectedNodeId || !rootNode)
|
|
@@ -436,7 +436,7 @@ export function resolveSafeSelectedNodeId(rootNode, selectedNodeId) {
|
|
|
436
436
|
}
|
|
437
437
|
/***
|
|
438
438
|
* Find the canonical screen whose UI tree contains a given node identifier.
|
|
439
|
-
*
|
|
439
|
+
* TODO: Move screen ownership lookup from the src root into the manifest/canvas boundary.
|
|
440
440
|
*/
|
|
441
441
|
export function findScreenIdForNode(manifest, nodeId) {
|
|
442
442
|
if (!hasCanonicalStudioScreenRegistryIdentity(manifest.screens))
|
|
@@ -450,7 +450,7 @@ export function findScreenIdForNode(manifest, nodeId) {
|
|
|
450
450
|
}
|
|
451
451
|
/***
|
|
452
452
|
* Update authored properties of one node in the active screen while preserving manifest immutability.
|
|
453
|
-
*
|
|
453
|
+
* TODO: Move canvas node mutation from the src root into canvas/.
|
|
454
454
|
*/
|
|
455
455
|
export function updateStudioManifestNode(manifest, activeScreenId, nodeId, newProps) {
|
|
456
456
|
if (!activeScreenId)
|
|
@@ -474,7 +474,7 @@ export function updateStudioManifestNode(manifest, activeScreenId, nodeId, newPr
|
|
|
474
474
|
}
|
|
475
475
|
/***
|
|
476
476
|
* Delete a non-root node from the active screen and remove data bindings owned by the deleted subtree.
|
|
477
|
-
*
|
|
477
|
+
* TODO: Split this canvas mutation and binding cleanup between canvas/ and bindings/ instead of the src root.
|
|
478
478
|
*/
|
|
479
479
|
export function deleteStudioManifestNode(manifest, activeScreenId, nodeId) {
|
|
480
480
|
if (!activeScreenId)
|
|
@@ -504,7 +504,7 @@ export function deleteStudioManifestNode(manifest, activeScreenId, nodeId) {
|
|
|
504
504
|
}
|
|
505
505
|
/***
|
|
506
506
|
* Insert a new UI node at a validated canvas placement in the active screen.
|
|
507
|
-
*
|
|
507
|
+
* TODO: Move canvas insertion orchestration from the src root into canvas/.
|
|
508
508
|
*/
|
|
509
509
|
export function insertStudioManifestNodeAtPlacement(args) {
|
|
510
510
|
const { manifest, activeScreenId, placement, newNode, componentMeta } = args;
|
|
@@ -537,7 +537,7 @@ export function insertStudioManifestNodeAtPlacement(args) {
|
|
|
537
537
|
}
|
|
538
538
|
/***
|
|
539
539
|
* Move an existing UI node to a validated canvas placement in the active screen.
|
|
540
|
-
*
|
|
540
|
+
* TODO: Move canvas movement orchestration from the src root into canvas/.
|
|
541
541
|
*/
|
|
542
542
|
export function moveStudioManifestNodeToPlacement(args) {
|
|
543
543
|
const { manifest, activeScreenId, nodeId, placement, componentMeta } = args;
|
|
@@ -570,21 +570,21 @@ export function moveStudioManifestNodeToPlacement(args) {
|
|
|
570
570
|
}
|
|
571
571
|
/***
|
|
572
572
|
* Replace the manifest component data-binding registry.
|
|
573
|
-
*
|
|
573
|
+
* TODO: Move binding-state mutation from the src root into bindings/.
|
|
574
574
|
*/
|
|
575
575
|
export function updateStudioManifestDataBindings(manifest, dataBindings) {
|
|
576
576
|
return { ...manifest, dataBindings };
|
|
577
577
|
}
|
|
578
578
|
/***
|
|
579
579
|
* Replace the manifest data-source registry.
|
|
580
|
-
*
|
|
580
|
+
* TODO: Resolve data-source authoring ownership with bindings/external APIs and remove this src-root mutation.
|
|
581
581
|
*/
|
|
582
582
|
export function updateStudioManifestDataSources(manifest, dataSources) {
|
|
583
583
|
return { ...manifest, dataSources };
|
|
584
584
|
}
|
|
585
585
|
/***
|
|
586
586
|
* Create the default light/dark theme configuration for a newly authored theme.
|
|
587
|
-
*
|
|
587
|
+
* TODO: Extract theme authoring from manifestState.ts; the current Studio structure target does not yet name a dedicated theme domain.
|
|
588
588
|
*/
|
|
589
589
|
export function createDefaultThemeConfig(themeIndex, id = generateManifestStateId('theme')) {
|
|
590
590
|
return {
|
|
@@ -602,7 +602,7 @@ export function createDefaultThemeConfig(themeIndex, id = generateManifestStateI
|
|
|
602
602
|
}
|
|
603
603
|
/***
|
|
604
604
|
* Append a theme to the manifest, creating a default theme when none is supplied.
|
|
605
|
-
*
|
|
605
|
+
* TODO: Extract theme authoring from manifestState.ts into its resolved owner.
|
|
606
606
|
*/
|
|
607
607
|
export function addStudioManifestTheme(manifest, theme = createDefaultThemeConfig(Object.keys(manifest.themes).length)) {
|
|
608
608
|
const themes = { ...manifest.themes };
|
|
@@ -611,7 +611,7 @@ export function addStudioManifestTheme(manifest, theme = createDefaultThemeConfi
|
|
|
611
611
|
}
|
|
612
612
|
/***
|
|
613
613
|
* Merge shared and mode-specific updates into one manifest theme.
|
|
614
|
-
*
|
|
614
|
+
* TODO: Extract theme authoring from manifestState.ts into its resolved owner.
|
|
615
615
|
*/
|
|
616
616
|
export function updateStudioManifestTheme(manifest, themeId, updates) {
|
|
617
617
|
const theme = readOwnProperty(manifest.themes, themeId);
|
|
@@ -630,7 +630,7 @@ export function updateStudioManifestTheme(manifest, themeId, updates) {
|
|
|
630
630
|
}
|
|
631
631
|
/***
|
|
632
632
|
* Delete a theme while preserving at least one theme and a valid active-theme identifier.
|
|
633
|
-
*
|
|
633
|
+
* TODO: Extract theme authoring from manifestState.ts into its resolved owner.
|
|
634
634
|
*/
|
|
635
635
|
export function deleteStudioManifestTheme(manifest, themeId) {
|
|
636
636
|
if (Object.keys(manifest.themes).length <= 1)
|
|
@@ -646,7 +646,7 @@ export function deleteStudioManifestTheme(manifest, themeId) {
|
|
|
646
646
|
}
|
|
647
647
|
/***
|
|
648
648
|
* Set the active theme identifier in the manifest.
|
|
649
|
-
*
|
|
649
|
+
* TODO: Extract theme authoring from manifestState.ts into its resolved owner.
|
|
650
650
|
*/
|
|
651
651
|
export function setStudioManifestActiveThemeId(manifest, activeThemeId) {
|
|
652
652
|
return readOwnProperty(manifest.themes, activeThemeId) === undefined
|
|
@@ -655,14 +655,14 @@ export function setStudioManifestActiveThemeId(manifest, activeThemeId) {
|
|
|
655
655
|
}
|
|
656
656
|
/***
|
|
657
657
|
* Set the active light/dark theme mode in the manifest.
|
|
658
|
-
*
|
|
658
|
+
* TODO: Extract theme authoring from manifestState.ts into its resolved owner.
|
|
659
659
|
*/
|
|
660
660
|
export function setStudioManifestActiveThemeMode(manifest, activeThemeMode) {
|
|
661
661
|
return { ...manifest, activeThemeMode };
|
|
662
662
|
}
|
|
663
663
|
/***
|
|
664
664
|
* Replace OAuth providers while preserving or creating the surrounding manifest auth configuration.
|
|
665
|
-
*
|
|
665
|
+
* TODO: Move auth policy from the src root into auth/.
|
|
666
666
|
*/
|
|
667
667
|
export function updateStudioManifestOAuthProviders(manifest, providers) {
|
|
668
668
|
const previousAuth = manifest.infra.environments.local.auth ?? {
|
|
@@ -697,7 +697,7 @@ export function updateStudioManifestOAuthProviders(manifest, providers) {
|
|
|
697
697
|
}
|
|
698
698
|
/***
|
|
699
699
|
* Resolve the navigator path Studio treats as the primary application navigator.
|
|
700
|
-
*
|
|
700
|
+
* TODO: Move primary-navigator policy from the src root into routes/.
|
|
701
701
|
*/
|
|
702
702
|
export function getPrimaryNavigatorPath(routes) {
|
|
703
703
|
const appGroupRoute = routes.find((route) => route.name === '(app)' && route.navigator?.routes);
|
|
@@ -710,7 +710,7 @@ export function getPrimaryNavigatorPath(routes) {
|
|
|
710
710
|
}
|
|
711
711
|
/***
|
|
712
712
|
* Find the navigator parent path that owns a route targeting the requested screen.
|
|
713
|
-
*
|
|
713
|
+
* TODO: Move route traversal from the src root into routes/.
|
|
714
714
|
*/
|
|
715
715
|
export function findParentPathForScreenId(routes, screenId, parentPath = [], routePathPrefix = []) {
|
|
716
716
|
for (const route of routes) {
|
|
@@ -727,7 +727,7 @@ export function findParentPathForScreenId(routes, screenId, parentPath = [], rou
|
|
|
727
727
|
}
|
|
728
728
|
/***
|
|
729
729
|
* Resolve the direct route collection owned by a navigator parent path.
|
|
730
|
-
*
|
|
730
|
+
* TODO: Move navigator path lookup from the src root into routes/.
|
|
731
731
|
*/
|
|
732
732
|
export function findRoutesAtParentPath(routes, parentPath) {
|
|
733
733
|
if (parentPath.length === 0)
|
|
@@ -745,7 +745,7 @@ export function findRoutesAtParentPath(routes, parentPath) {
|
|
|
745
745
|
}
|
|
746
746
|
/***
|
|
747
747
|
* Insert a route into the navigator identified by a parent path without mutating the existing tree.
|
|
748
|
-
*
|
|
748
|
+
* TODO: Move route-tree mutation from the src root into routes/.
|
|
749
749
|
*/
|
|
750
750
|
export function insertRouteAtParentPath(routes, parentPath, newRoute) {
|
|
751
751
|
if (parentPath.length === 0)
|
|
@@ -769,7 +769,7 @@ export function insertRouteAtParentPath(routes, parentPath, newRoute) {
|
|
|
769
769
|
}
|
|
770
770
|
/***
|
|
771
771
|
* Resolve a nested navigator by its route-name path.
|
|
772
|
-
*
|
|
772
|
+
* TODO: Move navigator lookup from the src root into routes/.
|
|
773
773
|
*/
|
|
774
774
|
export function findNavigatorAtPath(navigator, parentPath) {
|
|
775
775
|
if (parentPath.length === 0)
|
|
@@ -787,7 +787,7 @@ export function findNavigatorAtPath(navigator, parentPath) {
|
|
|
787
787
|
}
|
|
788
788
|
/***
|
|
789
789
|
* Immutably update the navigator identified by a route-name path.
|
|
790
|
-
*
|
|
790
|
+
* TODO: Move navigator-tree mutation from the src root into routes/.
|
|
791
791
|
*/
|
|
792
792
|
export function updateNavigatorAtPath(navigator, parentPath, updater) {
|
|
793
793
|
if (parentPath.length === 0)
|
|
@@ -838,7 +838,7 @@ function createNavigatorWithType(current, type) {
|
|
|
838
838
|
}
|
|
839
839
|
/***
|
|
840
840
|
* Change the primary navigator type when the requested navigator type is valid and different.
|
|
841
|
-
*
|
|
841
|
+
* TODO: Move navigator authoring policy from the src root into routes/.
|
|
842
842
|
*/
|
|
843
843
|
export function setStudioManifestNavigatorType(manifest, type) {
|
|
844
844
|
if (!NAVIGATOR_TYPES.includes(type))
|
|
@@ -866,7 +866,7 @@ export function setStudioManifestNavigatorType(manifest, type) {
|
|
|
866
866
|
}
|
|
867
867
|
/***
|
|
868
868
|
* Change the primary navigator initial route when the requested sibling route is unique.
|
|
869
|
-
*
|
|
869
|
+
* TODO: Move navigator authoring policy from the src root into routes/.
|
|
870
870
|
*/
|
|
871
871
|
export function setStudioManifestNavigatorInitialRoute(manifest, routeName) {
|
|
872
872
|
const normalizedRoute = routeName.trim();
|
|
@@ -891,7 +891,7 @@ export function setStudioManifestNavigatorInitialRoute(manifest, routeName) {
|
|
|
891
891
|
}
|
|
892
892
|
/***
|
|
893
893
|
* Set whether one route is visible in primary navigation while preserving the canonical visible representation.
|
|
894
|
-
*
|
|
894
|
+
* TODO: Move route visibility authoring from the src root into routes/.
|
|
895
895
|
*/
|
|
896
896
|
export function setStudioManifestRoutePrimaryNavigationVisibility(args) {
|
|
897
897
|
const { manifest, parentPath, routeName, showInPrimaryNavigation } = args;
|
|
@@ -927,7 +927,7 @@ export function setStudioManifestRoutePrimaryNavigationVisibility(args) {
|
|
|
927
927
|
}
|
|
928
928
|
/***
|
|
929
929
|
* Reorder one uniquely named route within its navigator parent.
|
|
930
|
-
*
|
|
930
|
+
* TODO: Move route ordering authoring from the src root into routes/.
|
|
931
931
|
*/
|
|
932
932
|
export function moveStudioManifestRoute(args) {
|
|
933
933
|
const { manifest, parentPath, routeName, toIndex } = args;
|
|
@@ -956,7 +956,7 @@ export function moveStudioManifestRoute(args) {
|
|
|
956
956
|
}
|
|
957
957
|
/***
|
|
958
958
|
* Create a new screen from a template, generate a collision-free route, and make the new screen active.
|
|
959
|
-
*
|
|
959
|
+
* TODO: Split screen creation between manifest screen state and routes/ instead of keeping both in one src-root function.
|
|
960
960
|
*/
|
|
961
961
|
export function addStudioManifestScreen(args) {
|
|
962
962
|
const { manifest, activeScreenId, createId = generateManifestStateId } = args;
|
|
@@ -1005,7 +1005,7 @@ export function addStudioManifestScreen(args) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
/***
|
|
1007
1007
|
* Delete a screen, remove route references and bindings for its subtree, and resolve a safe next active screen.
|
|
1008
|
-
*
|
|
1008
|
+
* TODO: Split this cross-domain operation across manifest, routes/, bindings/, and selection application responsibilities.
|
|
1009
1009
|
*/
|
|
1010
1010
|
export function deleteStudioManifestScreen(manifest, screenId, activeScreenId) {
|
|
1011
1011
|
if (!hasCanonicalStudioScreenRegistryIdentity(manifest.screens)) {
|
|
@@ -1042,7 +1042,7 @@ export function deleteStudioManifestScreen(manifest, screenId, activeScreenId) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
/***
|
|
1044
1044
|
* Recursively remove a screen target from routes and prune nested navigators that become empty.
|
|
1045
|
-
*
|
|
1045
|
+
* TODO: Move route cleanup from the src root into routes/.
|
|
1046
1046
|
*/
|
|
1047
1047
|
export function removeScreenIdFromRoutes(routes, screenId) {
|
|
1048
1048
|
const nextRoutes = [];
|
|
@@ -1071,7 +1071,7 @@ export function removeScreenIdFromRoutes(routes, screenId) {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
/***
|
|
1073
1073
|
* Generate a route name that is unique among sibling routes by appending a numeric suffix when needed.
|
|
1074
|
-
*
|
|
1074
|
+
* TODO: Move route-name generation from the src root into routes/.
|
|
1075
1075
|
*/
|
|
1076
1076
|
export function makeUniqueSiblingRouteName(base, siblingRoutes) {
|
|
1077
1077
|
const normalized = normalizeRouteName(base);
|
|
@@ -1086,7 +1086,7 @@ export function makeUniqueSiblingRouteName(base, siblingRoutes) {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
/***
|
|
1088
1088
|
* Convert route path segments to the canonical pathname pattern used by Studio authoring.
|
|
1089
|
-
*
|
|
1089
|
+
* TODO: Move canonical route-pattern logic from the src root into routes/.
|
|
1090
1090
|
*/
|
|
1091
1091
|
export function toCanonicalRoutePattern(routePath) {
|
|
1092
1092
|
const normalized = routePath.filter((segment) => !isRouteGroupSegment(segment));
|
|
@@ -1098,7 +1098,7 @@ export function toCanonicalRoutePattern(routePath) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
/***
|
|
1100
1100
|
* Generate a route name that avoids both sibling-name and canonical-path collisions.
|
|
1101
|
-
*
|
|
1101
|
+
* TODO: Move route-name collision policy from the src root into routes/.
|
|
1102
1102
|
*/
|
|
1103
1103
|
export function makeUniqueRouteNameForParent(baseRouteName, siblingRoutes, parentPath, existingPatterns) {
|
|
1104
1104
|
const siblingNames = new Set(siblingRoutes.map((route) => route.name));
|
|
@@ -1113,14 +1113,14 @@ export function makeUniqueRouteNameForParent(baseRouteName, siblingRoutes, paren
|
|
|
1113
1113
|
}
|
|
1114
1114
|
/***
|
|
1115
1115
|
* Normalize arbitrary screen text into the lowercase hyphenated route-name form used by Studio.
|
|
1116
|
-
*
|
|
1116
|
+
* TODO: Keep this semantic route-name normalization under routes/ rather than extracting it as a generic slug utility.
|
|
1117
1117
|
*/
|
|
1118
1118
|
function normalizeRouteName(value) {
|
|
1119
1119
|
return slugifyAscii(value) || 'screen';
|
|
1120
1120
|
}
|
|
1121
1121
|
/***
|
|
1122
1122
|
* Collect canonical pathname patterns for every route in a nested navigator tree.
|
|
1123
|
-
*
|
|
1123
|
+
* TODO: Move route-pattern traversal from the src root into routes/.
|
|
1124
1124
|
*/
|
|
1125
1125
|
function collectCanonicalRoutePatterns(routes, runtimePathPrefix = []) {
|
|
1126
1126
|
const patterns = [];
|
|
@@ -1135,7 +1135,7 @@ function collectCanonicalRoutePatterns(routes, runtimePathPrefix = []) {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
/***
|
|
1137
1137
|
* Deep-clone a UI node tree while assigning fresh identifiers and copying mutable node data.
|
|
1138
|
-
*
|
|
1138
|
+
* TODO: Move UI-tree cloning from the src root into canvas/.
|
|
1139
1139
|
*/
|
|
1140
1140
|
function cloneNodeWithNewIds(node, createId) {
|
|
1141
1141
|
const clonedNode = {
|
|
@@ -1150,7 +1150,7 @@ function cloneNodeWithNewIds(node, createId) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
/***
|
|
1152
1152
|
* Immutably update alias, style, and props for a node in a UI tree.
|
|
1153
|
-
*
|
|
1153
|
+
* TODO: Move UI-tree mutation from the src root into canvas/ or properties/ according to final authoring ownership.
|
|
1154
1154
|
*/
|
|
1155
1155
|
function updateNodeInManifestTree(root, id, newProps) {
|
|
1156
1156
|
if (root.id === id) {
|
|
@@ -1172,7 +1172,7 @@ function updateNodeInManifestTree(root, id, newProps) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
/***
|
|
1174
1174
|
* Immutably remove a node from a UI tree while preserving the remaining hierarchy.
|
|
1175
|
-
*
|
|
1175
|
+
* TODO: Move UI-tree mutation from the src root into canvas/.
|
|
1176
1176
|
*/
|
|
1177
1177
|
function removeNodeFromManifestTree(root, nodeId) {
|
|
1178
1178
|
if (root.id === nodeId)
|
|
@@ -1189,7 +1189,7 @@ function removeNodeFromManifestTree(root, nodeId) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
/***
|
|
1191
1191
|
* Collect every node identifier in a UI subtree.
|
|
1192
|
-
*
|
|
1192
|
+
* TODO: Move UI-tree traversal from the src root into canvas/.
|
|
1193
1193
|
*/
|
|
1194
1194
|
function collectNodeIds(root) {
|
|
1195
1195
|
const ids = new Set();
|
|
@@ -1203,7 +1203,7 @@ function collectNodeIds(root) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
/***
|
|
1205
1205
|
* Repair a navigator's initial-route field after route removal while preserving canonical omission when no initial route exists.
|
|
1206
|
-
*
|
|
1206
|
+
* TODO: Move navigator normalization from the src root into routes/.
|
|
1207
1207
|
*/
|
|
1208
1208
|
function normalizeNavigatorAfterRouteUpdate(navigator) {
|
|
1209
1209
|
const nextRoutes = navigator.routes;
|
|
@@ -1223,7 +1223,7 @@ function normalizeNavigatorAfterRouteUpdate(navigator) {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
/***
|
|
1225
1225
|
* Narrow an unknown node style value to the string-or-number style record accepted by Studio node updates.
|
|
1226
|
-
*
|
|
1226
|
+
* TODO: Keep this semantic style predicate with the canvas/properties authoring logic rather than treating it as a generic record utility.
|
|
1227
1227
|
*/
|
|
1228
1228
|
function isStyleRecord(value) {
|
|
1229
1229
|
if (typeof value !== 'object' || value === null || Array.isArray(value))
|
package/dist/manifestSync.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { StudioManifest } from './index';
|
|
2
2
|
/***
|
|
3
3
|
* Serialize only the manifest fields that affect generated runtime synchronization.
|
|
4
|
-
*
|
|
4
|
+
* TODO: Move manifest signature behavior from the source root into the manifest domain.
|
|
5
5
|
*/
|
|
6
|
-
export declare function createStudioRuntimeSyncSignature(manifest: StudioManifest): string;
|
|
6
|
+
export declare function createStudioRuntimeSyncSignature(manifest: StudioManifest, generatorRevision?: string): string;
|
|
7
7
|
/***
|
|
8
8
|
* Serialize the complete manifest for exact persistence-change comparison.
|
|
9
|
-
*
|
|
9
|
+
* TODO: Move manifest signature behavior from the source root into the manifest domain.
|
|
10
10
|
*/
|
|
11
11
|
export declare function createStudioManifestSignature(manifest: StudioManifest): string;
|
|
12
12
|
//# sourceMappingURL=manifestSync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifestSync.d.ts","sourceRoot":"","sources":["../src/manifestSync.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA2B9C;;;GAGG;AACH,wBAAgB,gCAAgC,
|
|
1
|
+
{"version":3,"file":"manifestSync.d.ts","sourceRoot":"","sources":["../src/manifestSync.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA2B9C;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,cAAc,EACxB,iBAAiB,SAAW,GAC3B,MAAM,CAeR;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAE9E"}
|
package/dist/manifestSync.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setOwnProperty } from '@ankhorage/utility/object';
|
|
2
2
|
/***
|
|
3
3
|
* Build the sorted screen subset used to detect runtime-relevant manifest changes.
|
|
4
|
-
*
|
|
4
|
+
* TODO: Move manifest signature behavior from the source root into the manifest domain.
|
|
5
5
|
*/
|
|
6
6
|
function createRuntimeScreenSignatures(manifest) {
|
|
7
7
|
return Object.entries(manifest.screens)
|
|
@@ -17,10 +17,11 @@ function createRuntimeScreenSignatures(manifest) {
|
|
|
17
17
|
}
|
|
18
18
|
/***
|
|
19
19
|
* Serialize only the manifest fields that affect generated runtime synchronization.
|
|
20
|
-
*
|
|
20
|
+
* TODO: Move manifest signature behavior from the source root into the manifest domain.
|
|
21
21
|
*/
|
|
22
|
-
export function createStudioRuntimeSyncSignature(manifest) {
|
|
22
|
+
export function createStudioRuntimeSyncSignature(manifest, generatorRevision = 'legacy') {
|
|
23
23
|
return JSON.stringify({
|
|
24
|
+
generatorRevision,
|
|
24
25
|
navigator: manifest.navigator,
|
|
25
26
|
screens: createRuntimeScreenSignatures(manifest),
|
|
26
27
|
apis: Object.fromEntries(Object.entries(manifest.infra.apis ?? {}).sort(([leftId], [rightId]) => leftId.localeCompare(rightId))),
|
|
@@ -32,7 +33,7 @@ export function createStudioRuntimeSyncSignature(manifest) {
|
|
|
32
33
|
}
|
|
33
34
|
/***
|
|
34
35
|
* Serialize the complete manifest for exact persistence-change comparison.
|
|
35
|
-
*
|
|
36
|
+
* TODO: Move manifest signature behavior from the source root into the manifest domain.
|
|
36
37
|
*/
|
|
37
38
|
export function createStudioManifestSignature(manifest) {
|
|
38
39
|
return JSON.stringify(manifest);
|
package/dist/manifestSync.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifestSync.js","sourceRoot":"","sources":["../src/manifestSync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAU3D;;;GAGG;AACH,SAAS,6BAA6B,CACpC,QAAwB;IAExB,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;SACpC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;SAC5D,MAAM,CAAyC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE;QAC1E,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE;YAC5B,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACX,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gCAAgC,
|
|
1
|
+
{"version":3,"file":"manifestSync.js","sourceRoot":"","sources":["../src/manifestSync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAU3D;;;GAGG;AACH,SAAS,6BAA6B,CACpC,QAAwB;IAExB,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;SACpC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;SAC5D,MAAM,CAAyC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE;QAC1E,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE;YAC5B,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACX,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gCAAgC,CAC9C,QAAwB,EACxB,iBAAiB,GAAG,QAAQ;IAE5B,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,iBAAiB;QACjB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,OAAO,EAAE,6BAA6B,CAAC,QAAQ,CAAC;QAChD,IAAI,EAAE,MAAM,CAAC,WAAW,CACtB,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,CACrE,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAC9B,CACF;QACD,YAAY,EAAE,QAAQ,CAAC,YAAY,IAAI,EAAE;QACzC,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,EAAE;QACvC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,YAAY;QACzC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE;KACpD,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,6BAA6B,CAAC,QAAwB;IACpE,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -39,27 +39,26 @@ export type StudioUrlMediaAssetResult = {
|
|
|
39
39
|
};
|
|
40
40
|
/***
|
|
41
41
|
* List manifest media assets, optionally filter by kind, and sort them by name.
|
|
42
|
-
* @utility @ankhorage/utility/array
|
|
43
42
|
*/
|
|
44
43
|
export declare function listStudioMediaAssets(manifest: AppManifest, mediaKinds?: readonly MediaAssetKind[]): readonly MediaAsset[];
|
|
45
44
|
/***
|
|
46
45
|
* Create the canonical media-reference object for one media id.
|
|
47
|
-
*
|
|
46
|
+
* Follow-up: Keep the MediaAssetReference constructor with its contracts/media owner unless a generic single-key reference constructor is extracted.
|
|
48
47
|
*/
|
|
49
48
|
export declare function createStudioMediaAssetReference(mediaId: string): MediaAssetReference;
|
|
50
49
|
/***
|
|
51
50
|
* Parse an unknown value as an exact one-key media-reference object.
|
|
52
|
-
*
|
|
51
|
+
* Follow-up: Keep MediaAssetReference semantics with media/contracts; implement it from generic object/value utilities.
|
|
53
52
|
*/
|
|
54
53
|
export declare function readStudioMediaAssetReference(value: unknown): MediaAssetReference | null;
|
|
55
54
|
/***
|
|
56
55
|
* Create a unique slug-like media id from a name and an existing keyed registry.
|
|
57
|
-
*
|
|
56
|
+
* Utility candidate: @ankhorage/utility/string
|
|
58
57
|
*/
|
|
59
58
|
export declare function createStudioMediaAssetId(name: string, registry?: MediaAssetRegistry): string;
|
|
60
59
|
/***
|
|
61
60
|
* Create a URL-backed Studio media asset after validating and normalizing its HTTP URL.
|
|
62
|
-
*
|
|
61
|
+
* Follow-up: Move URL-media authoring behavior under src/media/ while reusing generic URL normalization.
|
|
63
62
|
*/
|
|
64
63
|
export declare function createStudioUrlMediaAsset(args: {
|
|
65
64
|
readonly id: string;
|
|
@@ -69,17 +68,16 @@ export declare function createStudioUrlMediaAsset(args: {
|
|
|
69
68
|
}): StudioUrlMediaAssetResult;
|
|
70
69
|
/***
|
|
71
70
|
* Immutably insert or replace a keyed media asset in a manifest registry.
|
|
72
|
-
* @utility @ankhorage/utility/object
|
|
73
71
|
*/
|
|
74
72
|
export declare function upsertStudioMediaAsset(manifest: AppManifest, asset: MediaAsset): AppManifest;
|
|
75
73
|
/***
|
|
76
74
|
* Collect every Studio node-property usage of one media asset across all manifest screens.
|
|
77
|
-
*
|
|
75
|
+
* Follow-up: Move media usage analysis under src/media/ while extracting generic deep-value traversal.
|
|
78
76
|
*/
|
|
79
77
|
export declare function collectStudioMediaAssetUsages(manifest: AppManifest, mediaId: string): readonly StudioMediaUsage[];
|
|
80
78
|
/***
|
|
81
79
|
* Remove an unused media asset from the manifest and reject removal when the asset is missing or referenced.
|
|
82
|
-
*
|
|
80
|
+
* Follow-up: Move media removal policy under src/media/.
|
|
83
81
|
*/
|
|
84
82
|
export declare function removeStudioMediaAsset(manifest: AppManifest, mediaId: string): StudioMediaAssetRemovalResult;
|
|
85
83
|
//# sourceMappingURL=mediaAuthoringModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaAuthoringModel.d.ts","sourceRoot":"","sources":["../src/mediaAuthoringModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"mediaAuthoringModel.d.ts","sourceRoot":"","sources":["../src/mediaAuthoringModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,MAAM,6BAA6B,GACrC;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAA;CAAE,GACrD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,QAAQ,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC9C,CAAC;AAEN,MAAM,MAAM,uBAAuB,GAC/B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC3D;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,QAAQ,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC9C,GACD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC;CAC9B,GACD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,IAAI,CAAC;CAC7B,CAAC;AAEN,MAAM,MAAM,yBAAyB,GACjC;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,GACjD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC;AAE1D;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,WAAW,EACrB,UAAU,CAAC,EAAE,SAAS,cAAc,EAAE,GACrC,SAAS,UAAU,EAAE,CAOvB;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,MAAM,GAAG,mBAAmB,CAEpF;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,GAAG,IAAI,CAMxF;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,kBAAuB,GAAG,MAAM,CAMhG;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,GAAG,yBAAyB,CAY5B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,GAAG,WAAW,CAK5F;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,MAAM,GACd,SAAS,gBAAgB,EAAE,CAM7B;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,MAAM,GACd,6BAA6B,CAe/B"}
|