@ankhorage/studio 2.0.22 → 2.0.24

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.
Files changed (845) hide show
  1. package/dist/app/ProjectDetailScreen.d.ts.map +1 -1
  2. package/dist/app/ProjectDetailScreen.js +4 -1
  3. package/dist/app/ProjectDetailScreen.js.map +1 -1
  4. package/dist/app/StudioApp.d.ts.map +1 -1
  5. package/dist/app/StudioApp.js +2 -48
  6. package/dist/app/StudioApp.js.map +1 -1
  7. package/dist/authSettings.d.ts +12 -0
  8. package/dist/authSettings.d.ts.map +1 -1
  9. package/dist/authSettings.js +29 -7
  10. package/dist/authSettings.js.map +1 -1
  11. package/dist/bindingDiagnosticsModel.d.ts +4 -0
  12. package/dist/bindingDiagnosticsModel.d.ts.map +1 -1
  13. package/dist/bindingDiagnosticsModel.js +37 -1
  14. package/dist/bindingDiagnosticsModel.js.map +1 -1
  15. package/dist/bindingMetadataModel.d.ts +8 -0
  16. package/dist/bindingMetadataModel.d.ts.map +1 -1
  17. package/dist/bindingMetadataModel.js +8 -0
  18. package/dist/bindingMetadataModel.js.map +1 -1
  19. package/dist/bindingMutationModel.d.ts +16 -0
  20. package/dist/bindingMutationModel.d.ts.map +1 -1
  21. package/dist/bindingMutationModel.js +25 -3
  22. package/dist/bindingMutationModel.js.map +1 -1
  23. package/dist/bindingOperationModel.d.ts +11 -0
  24. package/dist/bindingOperationModel.d.ts.map +1 -1
  25. package/dist/bindingOperationModel.js +37 -3
  26. package/dist/bindingOperationModel.js.map +1 -1
  27. package/dist/bindingSchemaModel.d.ts +12 -0
  28. package/dist/bindingSchemaModel.d.ts.map +1 -1
  29. package/dist/bindingSchemaModel.js +39 -15
  30. package/dist/bindingSchemaModel.js.map +1 -1
  31. package/dist/canExecuteProjectDeployRelease.d.ts +4 -0
  32. package/dist/canExecuteProjectDeployRelease.d.ts.map +1 -1
  33. package/dist/canExecuteProjectDeployRelease.js +4 -0
  34. package/dist/canExecuteProjectDeployRelease.js.map +1 -1
  35. package/dist/canvasDragModel.d.ts +28 -0
  36. package/dist/canvasDragModel.d.ts.map +1 -1
  37. package/dist/canvasDragModel.js +41 -34
  38. package/dist/canvasDragModel.js.map +1 -1
  39. package/dist/canvasDropZones.d.ts +8 -0
  40. package/dist/canvasDropZones.d.ts.map +1 -1
  41. package/dist/canvasDropZones.js +10 -1
  42. package/dist/canvasDropZones.js.map +1 -1
  43. package/dist/cli/index.d.ts +6 -14
  44. package/dist/cli/index.d.ts.map +1 -1
  45. package/dist/cli/index.js +0 -20
  46. package/dist/cli/index.js.map +1 -1
  47. package/dist/contractGuards.d.ts +8 -2
  48. package/dist/contractGuards.d.ts.map +1 -1
  49. package/dist/contractGuards.js +8 -2
  50. package/dist/contractGuards.js.map +1 -1
  51. package/dist/core/StudioContext.d.ts +4 -0
  52. package/dist/core/StudioContext.d.ts.map +1 -1
  53. package/dist/core/StudioContext.js +4 -0
  54. package/dist/core/StudioContext.js.map +1 -1
  55. package/dist/core/StudioProvider.d.ts +1 -0
  56. package/dist/core/StudioProvider.d.ts.map +1 -1
  57. package/dist/core/StudioProvider.js +46 -0
  58. package/dist/core/StudioProvider.js.map +1 -1
  59. package/dist/core/apiBase.d.ts +4 -0
  60. package/dist/core/apiBase.d.ts.map +1 -1
  61. package/dist/core/apiBase.js +4 -0
  62. package/dist/core/apiBase.js.map +1 -1
  63. package/dist/core/constants.d.ts.map +1 -1
  64. package/dist/core/constants.js +8 -12
  65. package/dist/core/constants.js.map +1 -1
  66. package/dist/core/mediaAuthoringHostClient.d.ts +8 -0
  67. package/dist/core/mediaAuthoringHostClient.d.ts.map +1 -1
  68. package/dist/core/mediaAuthoringHostClient.js +15 -9
  69. package/dist/core/mediaAuthoringHostClient.js.map +1 -1
  70. package/dist/core/mediaRemovalCoordinator.d.ts +4 -0
  71. package/dist/core/mediaRemovalCoordinator.d.ts.map +1 -1
  72. package/dist/core/mediaRemovalCoordinator.js +9 -0
  73. package/dist/core/mediaRemovalCoordinator.js.map +1 -1
  74. package/dist/core/studioManifestDraftModel.d.ts +28 -0
  75. package/dist/core/studioManifestDraftModel.d.ts.map +1 -1
  76. package/dist/core/studioManifestDraftModel.js +28 -0
  77. package/dist/core/studioManifestDraftModel.js.map +1 -1
  78. package/dist/core/studioManifestPersistenceModel.d.ts +9 -0
  79. package/dist/core/studioManifestPersistenceModel.d.ts.map +1 -1
  80. package/dist/core/studioManifestPersistenceModel.js +9 -0
  81. package/dist/core/studioManifestPersistenceModel.js.map +1 -1
  82. package/dist/createProjectDeployRequest.d.ts +4 -0
  83. package/dist/createProjectDeployRequest.d.ts.map +1 -1
  84. package/dist/createProjectDeployRequest.js +7 -1
  85. package/dist/createProjectDeployRequest.js.map +1 -1
  86. package/dist/externalApiApi.d.ts +12 -0
  87. package/dist/externalApiApi.d.ts.map +1 -1
  88. package/dist/externalApiApi.js +64 -5
  89. package/dist/externalApiApi.js.map +1 -1
  90. package/dist/hooks/useProjects.d.ts +5 -0
  91. package/dist/hooks/useProjects.d.ts.map +1 -1
  92. package/dist/hooks/useProjects.js +10 -0
  93. package/dist/hooks/useProjects.js.map +1 -1
  94. package/dist/host/apis/createProjectEndpointCredentialResolver.d.ts +4 -0
  95. package/dist/host/apis/createProjectEndpointCredentialResolver.d.ts.map +1 -1
  96. package/dist/host/apis/createProjectEndpointCredentialResolver.js +6 -0
  97. package/dist/host/apis/createProjectEndpointCredentialResolver.js.map +1 -1
  98. package/dist/host/apis/createTrustedEndpointTestFetch.d.ts +4 -0
  99. package/dist/host/apis/createTrustedEndpointTestFetch.d.ts.map +1 -1
  100. package/dist/host/apis/createTrustedEndpointTestFetch.js +4 -0
  101. package/dist/host/apis/createTrustedEndpointTestFetch.js.map +1 -1
  102. package/dist/host/apis/createTrustedExternalApiFetch.d.ts +4 -0
  103. package/dist/host/apis/createTrustedExternalApiFetch.d.ts.map +1 -1
  104. package/dist/host/apis/createTrustedExternalApiFetch.js +4 -0
  105. package/dist/host/apis/createTrustedExternalApiFetch.js.map +1 -1
  106. package/dist/host/apis/requestTrustedExternalApi.d.ts +4 -0
  107. package/dist/host/apis/requestTrustedExternalApi.d.ts.map +1 -1
  108. package/dist/host/apis/requestTrustedExternalApi.js +12 -0
  109. package/dist/host/apis/requestTrustedExternalApi.js.map +1 -1
  110. package/dist/host/apis/sanitizeExternalApiOperationTestResult.d.ts +4 -0
  111. package/dist/host/apis/sanitizeExternalApiOperationTestResult.d.ts.map +1 -1
  112. package/dist/host/apis/sanitizeExternalApiOperationTestResult.js +6 -13
  113. package/dist/host/apis/sanitizeExternalApiOperationTestResult.js.map +1 -1
  114. package/dist/host/apis/studioExternalApiService.d.ts +10 -0
  115. package/dist/host/apis/studioExternalApiService.d.ts.map +1 -1
  116. package/dist/host/apis/studioExternalApiService.js +17 -0
  117. package/dist/host/apis/studioExternalApiService.js.map +1 -1
  118. package/dist/host/auth/projectAuthHealthService.d.ts +5 -0
  119. package/dist/host/auth/projectAuthHealthService.d.ts.map +1 -1
  120. package/dist/host/auth/projectAuthHealthService.js +5 -0
  121. package/dist/host/auth/projectAuthHealthService.js.map +1 -1
  122. package/dist/host/auth/projectAuthRuntimeDiagnostics.d.ts +6 -0
  123. package/dist/host/auth/projectAuthRuntimeDiagnostics.d.ts.map +1 -1
  124. package/dist/host/auth/projectAuthRuntimeDiagnostics.js +13 -42
  125. package/dist/host/auth/projectAuthRuntimeDiagnostics.js.map +1 -1
  126. package/dist/host/createStudioHost.d.ts +5 -0
  127. package/dist/host/createStudioHost.d.ts.map +1 -1
  128. package/dist/host/createStudioHost.js +5 -0
  129. package/dist/host/createStudioHost.js.map +1 -1
  130. package/dist/host/deploy/ProjectDeployMutationGuard.d.ts +5 -1
  131. package/dist/host/deploy/ProjectDeployMutationGuard.d.ts.map +1 -1
  132. package/dist/host/deploy/ProjectDeployMutationGuard.js +9 -11
  133. package/dist/host/deploy/ProjectDeployMutationGuard.js.map +1 -1
  134. package/dist/host/deploy/ProjectDeploySecretStore.d.ts +1 -0
  135. package/dist/host/deploy/ProjectDeploySecretStore.d.ts.map +1 -1
  136. package/dist/host/deploy/ProjectDeployService.d.ts +22 -0
  137. package/dist/host/deploy/ProjectDeployService.d.ts.map +1 -1
  138. package/dist/host/deploy/ProjectDeployService.js +22 -0
  139. package/dist/host/deploy/ProjectDeployService.js.map +1 -1
  140. package/dist/host/deploy/createProjectDeployAccess.d.ts +1 -0
  141. package/dist/host/deploy/createProjectDeployAccess.d.ts.map +1 -1
  142. package/dist/host/deploy/createProjectDeployAccess.js +3 -0
  143. package/dist/host/deploy/createProjectDeployAccess.js.map +1 -1
  144. package/dist/host/deploy/serializeProjectDeploySecret.d.ts +1 -0
  145. package/dist/host/deploy/serializeProjectDeploySecret.d.ts.map +1 -1
  146. package/dist/host/deploy/serializeProjectDeploySecret.js +5 -0
  147. package/dist/host/deploy/serializeProjectDeploySecret.js.map +1 -1
  148. package/dist/host/http/apiRoutes.d.ts +4 -0
  149. package/dist/host/http/apiRoutes.d.ts.map +1 -1
  150. package/dist/host/http/apiRoutes.js +40 -0
  151. package/dist/host/http/apiRoutes.js.map +1 -1
  152. package/dist/host/http/authRoutes.d.ts +1 -0
  153. package/dist/host/http/authRoutes.d.ts.map +1 -1
  154. package/dist/host/http/authRoutes.js +6 -0
  155. package/dist/host/http/authRoutes.js.map +1 -1
  156. package/dist/host/http/deployRoutes.d.ts +1 -0
  157. package/dist/host/http/deployRoutes.d.ts.map +1 -1
  158. package/dist/host/http/deployRoutes.js +34 -2
  159. package/dist/host/http/deployRoutes.js.map +1 -1
  160. package/dist/host/http/mediaRoutes.d.ts +1 -0
  161. package/dist/host/http/mediaRoutes.d.ts.map +1 -1
  162. package/dist/host/http/mediaRoutes.js +36 -1
  163. package/dist/host/http/mediaRoutes.js.map +1 -1
  164. package/dist/host/http/moduleRoutes.d.ts +1 -0
  165. package/dist/host/http/moduleRoutes.d.ts.map +1 -1
  166. package/dist/host/http/moduleRoutes.js +16 -0
  167. package/dist/host/http/moduleRoutes.js.map +1 -1
  168. package/dist/host/http/projectRuntimeRoutes.d.ts +1 -0
  169. package/dist/host/http/projectRuntimeRoutes.d.ts.map +1 -1
  170. package/dist/host/http/projectRuntimeRoutes.js +7 -0
  171. package/dist/host/http/projectRuntimeRoutes.js.map +1 -1
  172. package/dist/host/http/secretRoutes.d.ts +1 -0
  173. package/dist/host/http/secretRoutes.d.ts.map +1 -1
  174. package/dist/host/http/secretRoutes.js +26 -0
  175. package/dist/host/http/secretRoutes.js.map +1 -1
  176. package/dist/host/http/security.d.ts +4 -0
  177. package/dist/host/http/security.d.ts.map +1 -1
  178. package/dist/host/http/security.js +4 -0
  179. package/dist/host/http/security.js.map +1 -1
  180. package/dist/host/http/server.d.ts +5 -0
  181. package/dist/host/http/server.d.ts.map +1 -1
  182. package/dist/host/http/server.js +8 -3
  183. package/dist/host/http/server.js.map +1 -1
  184. package/dist/host/http/serverWithSecrets.d.ts +3 -2
  185. package/dist/host/http/serverWithSecrets.d.ts.map +1 -1
  186. package/dist/host/http/serverWithSecrets.js +3 -2
  187. package/dist/host/http/serverWithSecrets.js.map +1 -1
  188. package/dist/host/index.d.ts +3 -0
  189. package/dist/host/index.d.ts.map +1 -1
  190. package/dist/host/index.js.map +1 -1
  191. package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts +4 -0
  192. package/dist/host/layout/auth/resolveAuthLayoutPlan.d.ts.map +1 -1
  193. package/dist/host/layout/auth/resolveAuthLayoutPlan.js +43 -34
  194. package/dist/host/layout/auth/resolveAuthLayoutPlan.js.map +1 -1
  195. package/dist/host/layout/generatedImportComposer.d.ts +4 -0
  196. package/dist/host/layout/generatedImportComposer.d.ts.map +1 -1
  197. package/dist/host/layout/generatedImportComposer.js +18 -0
  198. package/dist/host/layout/generatedImportComposer.js.map +1 -1
  199. package/dist/host/layout/layoutGenerator.d.ts +19 -0
  200. package/dist/host/layout/layoutGenerator.d.ts.map +1 -1
  201. package/dist/host/layout/layoutGenerator.js +58 -0
  202. package/dist/host/layout/layoutGenerator.js.map +1 -1
  203. package/dist/host/layout/templates/auth/adapter.d.ts +1 -0
  204. package/dist/host/layout/templates/auth/adapter.d.ts.map +1 -1
  205. package/dist/host/layout/templates/auth/adapter.js +1 -0
  206. package/dist/host/layout/templates/auth/adapter.js.map +1 -1
  207. package/dist/host/layout/templates/auth/callback.d.ts +1 -0
  208. package/dist/host/layout/templates/auth/callback.d.ts.map +1 -1
  209. package/dist/host/layout/templates/auth/callback.js +1 -0
  210. package/dist/host/layout/templates/auth/callback.js.map +1 -1
  211. package/dist/host/layout/templates/auth/form.d.ts +1 -0
  212. package/dist/host/layout/templates/auth/form.d.ts.map +1 -1
  213. package/dist/host/layout/templates/auth/form.js +1 -0
  214. package/dist/host/layout/templates/auth/form.js.map +1 -1
  215. package/dist/host/layout/templates/auth/navigation.d.ts +1 -0
  216. package/dist/host/layout/templates/auth/navigation.d.ts.map +1 -1
  217. package/dist/host/layout/templates/auth/navigation.js +5 -0
  218. package/dist/host/layout/templates/auth/navigation.js.map +1 -1
  219. package/dist/host/layout/templates/auth/oauth.d.ts +1 -0
  220. package/dist/host/layout/templates/auth/oauth.d.ts.map +1 -1
  221. package/dist/host/layout/templates/auth/oauth.js +7 -0
  222. package/dist/host/layout/templates/auth/oauth.js.map +1 -1
  223. package/dist/host/layout/templates/auth/oauthCompletion.d.ts +1 -0
  224. package/dist/host/layout/templates/auth/oauthCompletion.d.ts.map +1 -1
  225. package/dist/host/layout/templates/auth/oauthCompletion.js +5 -0
  226. package/dist/host/layout/templates/auth/oauthCompletion.js.map +1 -1
  227. package/dist/host/layout/templates/auth/oauthState.d.ts +1 -0
  228. package/dist/host/layout/templates/auth/oauthState.d.ts.map +1 -1
  229. package/dist/host/layout/templates/auth/oauthState.js +1 -0
  230. package/dist/host/layout/templates/auth/oauthState.js.map +1 -1
  231. package/dist/host/layout/templates/auth/screen.d.ts +2 -0
  232. package/dist/host/layout/templates/auth/screen.d.ts.map +1 -1
  233. package/dist/host/layout/templates/auth/screen.js +3 -0
  234. package/dist/host/layout/templates/auth/screen.js.map +1 -1
  235. package/dist/host/layout/templates/auth/screenController.d.ts +1 -0
  236. package/dist/host/layout/templates/auth/screenController.d.ts.map +1 -1
  237. package/dist/host/layout/templates/auth/screenController.js +6 -0
  238. package/dist/host/layout/templates/auth/screenController.js.map +1 -1
  239. package/dist/host/layout/templates/auth/session.d.ts +1 -0
  240. package/dist/host/layout/templates/auth/session.d.ts.map +1 -1
  241. package/dist/host/layout/templates/auth/session.js +1 -0
  242. package/dist/host/layout/templates/auth/session.js.map +1 -1
  243. package/dist/host/layout/templates/auth/signOut.d.ts +1 -0
  244. package/dist/host/layout/templates/auth/signOut.d.ts.map +1 -1
  245. package/dist/host/layout/templates/auth/signOut.js +1 -0
  246. package/dist/host/layout/templates/auth/signOut.js.map +1 -1
  247. package/dist/host/layout/templates/index.d.ts +1 -0
  248. package/dist/host/layout/templates/index.d.ts.map +1 -1
  249. package/dist/host/layout/templates/index.js +1 -0
  250. package/dist/host/layout/templates/index.js.map +1 -1
  251. package/dist/host/layout/templates/navigation.d.ts +3 -0
  252. package/dist/host/layout/templates/navigation.d.ts.map +1 -1
  253. package/dist/host/layout/templates/navigation.js +58 -0
  254. package/dist/host/layout/templates/navigation.js.map +1 -1
  255. package/dist/host/layout/templates/nestedLayout.d.ts +1 -0
  256. package/dist/host/layout/templates/nestedLayout.d.ts.map +1 -1
  257. package/dist/host/layout/templates/nestedLayout.js +2 -0
  258. package/dist/host/layout/templates/nestedLayout.js.map +1 -1
  259. package/dist/host/layout/templates/redirect.d.ts +1 -0
  260. package/dist/host/layout/templates/redirect.d.ts.map +1 -1
  261. package/dist/host/layout/templates/redirect.js +1 -0
  262. package/dist/host/layout/templates/redirect.js.map +1 -1
  263. package/dist/host/layout/templates/rootLayout.d.ts +7 -0
  264. package/dist/host/layout/templates/rootLayout.d.ts.map +1 -1
  265. package/dist/host/layout/templates/rootLayout.js +11 -0
  266. package/dist/host/layout/templates/rootLayout.js.map +1 -1
  267. package/dist/host/layout/templates/screen.d.ts +4 -0
  268. package/dist/host/layout/templates/screen.d.ts.map +1 -1
  269. package/dist/host/layout/templates/screen.js +4 -0
  270. package/dist/host/layout/templates/screen.js.map +1 -1
  271. package/dist/host/layout/templates/utils/routes.d.ts +8 -0
  272. package/dist/host/layout/templates/utils/routes.d.ts.map +1 -1
  273. package/dist/host/layout/templates/utils/routes.js +8 -0
  274. package/dist/host/layout/templates/utils/routes.js.map +1 -1
  275. package/dist/host/layout/templates/utils/strings.d.ts +8 -0
  276. package/dist/host/layout/templates/utils/strings.d.ts.map +1 -1
  277. package/dist/host/layout/templates/utils/strings.js +8 -0
  278. package/dist/host/layout/templates/utils/strings.js.map +1 -1
  279. package/dist/host/layout/utils/escapeStringLiteral.d.ts +4 -0
  280. package/dist/host/layout/utils/escapeStringLiteral.d.ts.map +1 -1
  281. package/dist/host/layout/utils/escapeStringLiteral.js +4 -0
  282. package/dist/host/layout/utils/escapeStringLiteral.js.map +1 -1
  283. package/dist/host/manifestSystem/auth/index.d.ts +1 -0
  284. package/dist/host/manifestSystem/auth/index.d.ts.map +1 -1
  285. package/dist/host/manifestSystem/auth/index.js +1 -0
  286. package/dist/host/manifestSystem/auth/index.js.map +1 -1
  287. package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.d.ts +2 -0
  288. package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.d.ts.map +1 -1
  289. package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.js +2 -0
  290. package/dist/host/manifestSystem/auth/shared/global.auth.system.tpl.js.map +1 -1
  291. package/dist/host/manifestSystem/index.d.ts +4 -0
  292. package/dist/host/manifestSystem/index.d.ts.map +1 -1
  293. package/dist/host/manifestSystem/index.js +4 -1
  294. package/dist/host/manifestSystem/index.js.map +1 -1
  295. package/dist/host/media/projectAuthoringAssetWriter.d.ts +4 -0
  296. package/dist/host/media/projectAuthoringAssetWriter.d.ts.map +1 -1
  297. package/dist/host/media/projectAuthoringAssetWriter.js +4 -0
  298. package/dist/host/media/projectAuthoringAssetWriter.js.map +1 -1
  299. package/dist/host/media/projectBundledMediaRegistry.d.ts +1 -0
  300. package/dist/host/media/projectBundledMediaRegistry.d.ts.map +1 -1
  301. package/dist/host/media/projectBundledMediaRegistry.js +5 -32
  302. package/dist/host/media/projectBundledMediaRegistry.js.map +1 -1
  303. package/dist/host/media/projectBundledMediaService.d.ts +5 -0
  304. package/dist/host/media/projectBundledMediaService.d.ts.map +1 -1
  305. package/dist/host/media/projectBundledMediaService.js +7 -12
  306. package/dist/host/media/projectBundledMediaService.js.map +1 -1
  307. package/dist/host/media/projectMediaService.d.ts +7 -0
  308. package/dist/host/media/projectMediaService.d.ts.map +1 -1
  309. package/dist/host/media/projectMediaService.js +10 -12
  310. package/dist/host/media/projectMediaService.js.map +1 -1
  311. package/dist/host/media/projectMediaStorage.d.ts +1 -0
  312. package/dist/host/media/projectMediaStorage.d.ts.map +1 -1
  313. package/dist/host/media/projectMediaStorage.js +1 -0
  314. package/dist/host/media/projectMediaStorage.js.map +1 -1
  315. package/dist/host/media/removeProjectAuthoringAsset.d.ts +4 -0
  316. package/dist/host/media/removeProjectAuthoringAsset.d.ts.map +1 -1
  317. package/dist/host/media/removeProjectAuthoringAsset.js +5 -21
  318. package/dist/host/media/removeProjectAuthoringAsset.js.map +1 -1
  319. package/dist/host/modules/adminRuntime.d.ts +2 -0
  320. package/dist/host/modules/adminRuntime.d.ts.map +1 -1
  321. package/dist/host/modules/adminRuntime.js +4 -3
  322. package/dist/host/modules/adminRuntime.js.map +1 -1
  323. package/dist/host/modules/catalog.d.ts +3 -0
  324. package/dist/host/modules/catalog.d.ts.map +1 -1
  325. package/dist/host/modules/catalog.js +7 -3
  326. package/dist/host/modules/catalog.js.map +1 -1
  327. package/dist/host/modules/layout.d.ts +1 -0
  328. package/dist/host/modules/layout.d.ts.map +1 -1
  329. package/dist/host/modules/runtime/LocalFsTargetAdapter.d.ts +14 -0
  330. package/dist/host/modules/runtime/LocalFsTargetAdapter.d.ts.map +1 -1
  331. package/dist/host/modules/runtime/LocalFsTargetAdapter.js +18 -0
  332. package/dist/host/modules/runtime/LocalFsTargetAdapter.js.map +1 -1
  333. package/dist/host/orchestrator/GeneratedRouteFileOwnership.d.ts +7 -0
  334. package/dist/host/orchestrator/GeneratedRouteFileOwnership.d.ts.map +1 -1
  335. package/dist/host/orchestrator/GeneratedRouteFileOwnership.js +29 -11
  336. package/dist/host/orchestrator/GeneratedRouteFileOwnership.js.map +1 -1
  337. package/dist/host/orchestrator/generatedAppFiles.d.ts +5 -0
  338. package/dist/host/orchestrator/generatedAppFiles.d.ts.map +1 -1
  339. package/dist/host/orchestrator/generatedAppFiles.js +18 -35
  340. package/dist/host/orchestrator/generatedAppFiles.js.map +1 -1
  341. package/dist/host/orchestrator/infraSession.d.ts +12 -0
  342. package/dist/host/orchestrator/infraSession.d.ts.map +1 -1
  343. package/dist/host/orchestrator/infraSession.js +17 -0
  344. package/dist/host/orchestrator/infraSession.js.map +1 -1
  345. package/dist/host/orchestrator/moduleManager.d.ts +34 -1
  346. package/dist/host/orchestrator/moduleManager.d.ts.map +1 -1
  347. package/dist/host/orchestrator/moduleManager.js +38 -1
  348. package/dist/host/orchestrator/moduleManager.js.map +1 -1
  349. package/dist/host/orchestrator/projectGenerationState.d.ts +8 -0
  350. package/dist/host/orchestrator/projectGenerationState.d.ts.map +1 -1
  351. package/dist/host/orchestrator/projectGenerationState.js +17 -10
  352. package/dist/host/orchestrator/projectGenerationState.js.map +1 -1
  353. package/dist/host/orchestrator/projectManager.d.ts +30 -1
  354. package/dist/host/orchestrator/projectManager.d.ts.map +1 -1
  355. package/dist/host/orchestrator/projectManager.js +41 -3
  356. package/dist/host/orchestrator/projectManager.js.map +1 -1
  357. package/dist/host/orchestrator/projectPaths.d.ts +12 -0
  358. package/dist/host/orchestrator/projectPaths.d.ts.map +1 -1
  359. package/dist/host/orchestrator/projectPaths.js +12 -0
  360. package/dist/host/orchestrator/projectPaths.js.map +1 -1
  361. package/dist/host/orchestrator/projectStore.d.ts +15 -0
  362. package/dist/host/orchestrator/projectStore.d.ts.map +1 -1
  363. package/dist/host/orchestrator/projectStore.js +22 -23
  364. package/dist/host/orchestrator/projectStore.js.map +1 -1
  365. package/dist/host/orchestrator/projectTargets.d.ts +4 -0
  366. package/dist/host/orchestrator/projectTargets.d.ts.map +1 -1
  367. package/dist/host/orchestrator/projectTargets.js +8 -0
  368. package/dist/host/orchestrator/projectTargets.js.map +1 -1
  369. package/dist/host/orchestrator/resolveMutations.d.ts +4 -0
  370. package/dist/host/orchestrator/resolveMutations.d.ts.map +1 -1
  371. package/dist/host/orchestrator/resolveMutations.js +4 -0
  372. package/dist/host/orchestrator/resolveMutations.js.map +1 -1
  373. package/dist/host/orchestrator/scaffolder.d.ts +20 -0
  374. package/dist/host/orchestrator/scaffolder.d.ts.map +1 -1
  375. package/dist/host/orchestrator/scaffolder.js +36 -15
  376. package/dist/host/orchestrator/scaffolder.js.map +1 -1
  377. package/dist/host/orchestrator/studioInfraUp.d.ts +4 -0
  378. package/dist/host/orchestrator/studioInfraUp.d.ts.map +1 -1
  379. package/dist/host/orchestrator/studioInfraUp.js +4 -0
  380. package/dist/host/orchestrator/studioInfraUp.js.map +1 -1
  381. package/dist/host/orchestrator/workspaceRuntime.d.ts +4 -0
  382. package/dist/host/orchestrator/workspaceRuntime.d.ts.map +1 -1
  383. package/dist/host/orchestrator/workspaceRuntime.js +10 -0
  384. package/dist/host/orchestrator/workspaceRuntime.js.map +1 -1
  385. package/dist/host/secrets/bunSupabaseVaultClient.d.ts +3 -5
  386. package/dist/host/secrets/bunSupabaseVaultClient.d.ts.map +1 -1
  387. package/dist/host/secrets/bunSupabaseVaultClient.js +7 -5
  388. package/dist/host/secrets/bunSupabaseVaultClient.js.map +1 -1
  389. package/dist/host/secrets/projectSecretService.d.ts +21 -0
  390. package/dist/host/secrets/projectSecretService.d.ts.map +1 -1
  391. package/dist/host/secrets/projectSecretService.js +30 -0
  392. package/dist/host/secrets/projectSecretService.js.map +1 -1
  393. package/dist/host/secrets/resolveProjectSecretDatabaseUrl.d.ts +4 -0
  394. package/dist/host/secrets/resolveProjectSecretDatabaseUrl.d.ts.map +1 -1
  395. package/dist/host/secrets/resolveProjectSecretDatabaseUrl.js +5 -1
  396. package/dist/host/secrets/resolveProjectSecretDatabaseUrl.js.map +1 -1
  397. package/dist/host/secrets/trustedOAuthInfraEnvironment.d.ts +8 -0
  398. package/dist/host/secrets/trustedOAuthInfraEnvironment.d.ts.map +1 -1
  399. package/dist/host/secrets/trustedOAuthInfraEnvironment.js +12 -0
  400. package/dist/host/secrets/trustedOAuthInfraEnvironment.js.map +1 -1
  401. package/dist/host/templates/index.d.ts +8 -2
  402. package/dist/host/templates/index.d.ts.map +1 -1
  403. package/dist/host/templates/index.js +8 -2
  404. package/dist/host/templates/index.js.map +1 -1
  405. package/dist/host/utils/requirementsInference.d.ts +8 -0
  406. package/dist/host/utils/requirementsInference.d.ts.map +1 -1
  407. package/dist/host/utils/requirementsInference.js +9 -0
  408. package/dist/host/utils/requirementsInference.js.map +1 -1
  409. package/dist/host/utils/trimOutput.d.ts +4 -0
  410. package/dist/host/utils/trimOutput.d.ts.map +1 -1
  411. package/dist/host/utils/trimOutput.js +6 -29
  412. package/dist/host/utils/trimOutput.js.map +1 -1
  413. package/dist/host/utils/workspaceRoot.d.ts +4 -0
  414. package/dist/host/utils/workspaceRoot.d.ts.map +1 -1
  415. package/dist/host/utils/workspaceRoot.js +8 -0
  416. package/dist/host/utils/workspaceRoot.js.map +1 -1
  417. package/dist/host/zoraExtensions/index.d.ts +13 -1
  418. package/dist/host/zoraExtensions/index.d.ts.map +1 -1
  419. package/dist/host/zoraExtensions/index.js +13 -1
  420. package/dist/host/zoraExtensions/index.js.map +1 -1
  421. package/dist/index.d.ts +75 -2
  422. package/dist/index.d.ts.map +1 -1
  423. package/dist/index.js +132 -63
  424. package/dist/index.js.map +1 -1
  425. package/dist/insertModalModel.d.ts +16 -0
  426. package/dist/insertModalModel.d.ts.map +1 -1
  427. package/dist/insertModalModel.js +29 -27
  428. package/dist/insertModalModel.js.map +1 -1
  429. package/dist/manifestState.d.ts +176 -13
  430. package/dist/manifestState.d.ts.map +1 -1
  431. package/dist/manifestState.js +228 -13
  432. package/dist/manifestState.js.map +1 -1
  433. package/dist/manifestSync.d.ts +8 -0
  434. package/dist/manifestSync.d.ts.map +1 -1
  435. package/dist/manifestSync.js +13 -1
  436. package/dist/manifestSync.js.map +1 -1
  437. package/dist/mediaAuthoringModel.d.ts +32 -0
  438. package/dist/mediaAuthoringModel.d.ts.map +1 -1
  439. package/dist/mediaAuthoringModel.js +45 -3
  440. package/dist/mediaAuthoringModel.js.map +1 -1
  441. package/dist/moduleAdminApi.d.ts +41 -0
  442. package/dist/moduleAdminApi.d.ts.map +1 -1
  443. package/dist/moduleAdminApi.js +62 -6
  444. package/dist/moduleAdminApi.js.map +1 -1
  445. package/dist/moduleAdminModel.d.ts +6 -0
  446. package/dist/moduleAdminModel.d.ts.map +1 -1
  447. package/dist/moduleAdminModel.js +20 -52
  448. package/dist/moduleAdminModel.js.map +1 -1
  449. package/dist/normalizeExternalApiId.d.ts +4 -0
  450. package/dist/normalizeExternalApiId.d.ts.map +1 -1
  451. package/dist/normalizeExternalApiId.js +4 -0
  452. package/dist/normalizeExternalApiId.js.map +1 -1
  453. package/dist/projectAuthApi.d.ts +7 -0
  454. package/dist/projectAuthApi.d.ts.map +1 -1
  455. package/dist/projectAuthApi.js +49 -6
  456. package/dist/projectAuthApi.js.map +1 -1
  457. package/dist/projectAuthHealth.d.ts +4 -0
  458. package/dist/projectAuthHealth.d.ts.map +1 -1
  459. package/dist/projectAuthHealth.js +28 -0
  460. package/dist/projectAuthHealth.js.map +1 -1
  461. package/dist/projectAuthRuntimeDiagnostics.d.ts +4 -0
  462. package/dist/projectAuthRuntimeDiagnostics.d.ts.map +1 -1
  463. package/dist/projectAuthRuntimeDiagnostics.js +20 -0
  464. package/dist/projectAuthRuntimeDiagnostics.js.map +1 -1
  465. package/dist/projectDeployApi.d.ts +17 -0
  466. package/dist/projectDeployApi.d.ts.map +1 -1
  467. package/dist/projectDeployApi.js +21 -0
  468. package/dist/projectDeployApi.js.map +1 -1
  469. package/dist/projectDeployApiError.d.ts +5 -0
  470. package/dist/projectDeployApiError.d.ts.map +1 -1
  471. package/dist/projectDeployApiError.js +5 -0
  472. package/dist/projectDeployApiError.js.map +1 -1
  473. package/dist/projectDeployAssetPicker.d.ts +4 -0
  474. package/dist/projectDeployAssetPicker.d.ts.map +1 -1
  475. package/dist/projectDeployAssetPicker.js +12 -0
  476. package/dist/projectDeployAssetPicker.js.map +1 -1
  477. package/dist/projectDeployClient.d.ts +27 -0
  478. package/dist/projectDeployClient.d.ts.map +1 -1
  479. package/dist/projectDeployClient.js +83 -6
  480. package/dist/projectDeployClient.js.map +1 -1
  481. package/dist/projectIdentity.d.ts +10 -0
  482. package/dist/projectIdentity.d.ts.map +1 -1
  483. package/dist/projectIdentity.js +18 -0
  484. package/dist/projectIdentity.js.map +1 -1
  485. package/dist/projectOAuthSetup.d.ts +12 -0
  486. package/dist/projectOAuthSetup.d.ts.map +1 -1
  487. package/dist/projectOAuthSetup.js +13 -1
  488. package/dist/projectOAuthSetup.js.map +1 -1
  489. package/dist/projectSecretApi.d.ts +30 -0
  490. package/dist/projectSecretApi.d.ts.map +1 -1
  491. package/dist/projectSecretApi.js +71 -6
  492. package/dist/projectSecretApi.js.map +1 -1
  493. package/dist/projectSecretUsage.d.ts +4 -0
  494. package/dist/projectSecretUsage.d.ts.map +1 -1
  495. package/dist/projectSecretUsage.js +17 -12
  496. package/dist/projectSecretUsage.js.map +1 -1
  497. package/dist/propertiesAuthoringModel.d.ts +12 -0
  498. package/dist/propertiesAuthoringModel.d.ts.map +1 -1
  499. package/dist/propertiesAuthoringModel.js +23 -5
  500. package/dist/propertiesAuthoringModel.js.map +1 -1
  501. package/dist/root.d.ts +3 -0
  502. package/dist/root.d.ts.map +1 -1
  503. package/dist/root.js +3 -0
  504. package/dist/root.js.map +1 -1
  505. package/dist/routeUtils.d.ts +3 -4
  506. package/dist/routeUtils.d.ts.map +1 -1
  507. package/dist/routeUtils.js +6 -67
  508. package/dist/routeUtils.js.map +1 -1
  509. package/dist/runtime/actionSuppression.d.ts +9 -1
  510. package/dist/runtime/actionSuppression.d.ts.map +1 -1
  511. package/dist/runtime/actionSuppression.js +9 -1
  512. package/dist/runtime/actionSuppression.js.map +1 -1
  513. package/dist/runtime/appExtensionRegistry.d.ts +7 -4
  514. package/dist/runtime/appExtensionRegistry.d.ts.map +1 -1
  515. package/dist/runtime/appExtensionRegistry.js +7 -4
  516. package/dist/runtime/appExtensionRegistry.js.map +1 -1
  517. package/dist/runtime/index.d.ts +3 -0
  518. package/dist/runtime/index.d.ts.map +1 -1
  519. package/dist/runtime/index.js +3 -0
  520. package/dist/runtime/index.js.map +1 -1
  521. package/dist/runtime/indicatorRefreshCoordinator.d.ts +1 -0
  522. package/dist/runtime/indicatorRefreshCoordinator.d.ts.map +1 -1
  523. package/dist/runtime/indicatorRefreshCoordinator.js +9 -21
  524. package/dist/runtime/indicatorRefreshCoordinator.js.map +1 -1
  525. package/dist/runtime/indicatorSettleCoordinator.d.ts +3 -18
  526. package/dist/runtime/indicatorSettleCoordinator.d.ts.map +1 -1
  527. package/dist/runtime/indicatorSettleCoordinator.js +3 -75
  528. package/dist/runtime/indicatorSettleCoordinator.js.map +1 -1
  529. package/dist/runtime/interactionPolicy.d.ts +4 -0
  530. package/dist/runtime/interactionPolicy.d.ts.map +1 -1
  531. package/dist/runtime/interactionPolicy.js +5 -0
  532. package/dist/runtime/interactionPolicy.js.map +1 -1
  533. package/dist/runtime/interactionPolicyCore.d.ts +8 -0
  534. package/dist/runtime/interactionPolicyCore.d.ts.map +1 -1
  535. package/dist/runtime/interactionPolicyCore.js +23 -1
  536. package/dist/runtime/interactionPolicyCore.js.map +1 -1
  537. package/dist/runtime/registry.d.ts +3 -0
  538. package/dist/runtime/registry.d.ts.map +1 -1
  539. package/dist/runtime/registry.js +3 -0
  540. package/dist/runtime/registry.js.map +1 -1
  541. package/dist/runtime/runtimeActions.d.ts +4 -0
  542. package/dist/runtime/runtimeActions.d.ts.map +1 -1
  543. package/dist/runtime/runtimeActions.js +4 -0
  544. package/dist/runtime/runtimeActions.js.map +1 -1
  545. package/dist/runtime/runtimeNodeMeasurement.d.ts +23 -0
  546. package/dist/runtime/runtimeNodeMeasurement.d.ts.map +1 -1
  547. package/dist/runtime/runtimeNodeMeasurement.js +32 -0
  548. package/dist/runtime/runtimeNodeMeasurement.js.map +1 -1
  549. package/dist/runtime/stationarySelection.d.ts +12 -0
  550. package/dist/runtime/stationarySelection.d.ts.map +1 -1
  551. package/dist/runtime/stationarySelection.js +75 -0
  552. package/dist/runtime/stationarySelection.js.map +1 -1
  553. package/dist/runtime/stationarySelectionCoordinator.d.ts +5 -20
  554. package/dist/runtime/stationarySelectionCoordinator.d.ts.map +1 -1
  555. package/dist/runtime/stationarySelectionCoordinator.js +1 -83
  556. package/dist/runtime/stationarySelectionCoordinator.js.map +1 -1
  557. package/dist/runtime/stationarySelectionInputState.d.ts +4 -25
  558. package/dist/runtime/stationarySelectionInputState.d.ts.map +1 -1
  559. package/dist/runtime/stationarySelectionInputState.js +1 -55
  560. package/dist/runtime/stationarySelectionInputState.js.map +1 -1
  561. package/dist/runtime/studioMediaResolver.d.ts +4 -0
  562. package/dist/runtime/studioMediaResolver.d.ts.map +1 -1
  563. package/dist/runtime/studioMediaResolver.js +9 -0
  564. package/dist/runtime/studioMediaResolver.js.map +1 -1
  565. package/dist/runtime/useRuntimeAction.d.ts +4 -0
  566. package/dist/runtime/useRuntimeAction.d.ts.map +1 -1
  567. package/dist/runtime/useRuntimeAction.js +4 -0
  568. package/dist/runtime/useRuntimeAction.js.map +1 -1
  569. package/dist/runtimeDiagnosticsModel.d.ts +19 -2
  570. package/dist/runtimeDiagnosticsModel.d.ts.map +1 -1
  571. package/dist/runtimeDiagnosticsModel.js +26 -20
  572. package/dist/runtimeDiagnosticsModel.js.map +1 -1
  573. package/dist/secretResponseGuard.d.ts +8 -0
  574. package/dist/secretResponseGuard.d.ts.map +1 -1
  575. package/dist/secretResponseGuard.js +12 -0
  576. package/dist/secretResponseGuard.js.map +1 -1
  577. package/dist/studioAdminRouteModel.d.ts +70 -0
  578. package/dist/studioAdminRouteModel.d.ts.map +1 -1
  579. package/dist/studioAdminRouteModel.js +77 -32
  580. package/dist/studioAdminRouteModel.js.map +1 -1
  581. package/dist/studioRuntimeApi.d.ts +4 -0
  582. package/dist/studioRuntimeApi.d.ts.map +1 -1
  583. package/dist/studioRuntimeApi.js +12 -0
  584. package/dist/studioRuntimeApi.js.map +1 -1
  585. package/dist/studioSelectionModel.d.ts +16 -0
  586. package/dist/studioSelectionModel.d.ts.map +1 -1
  587. package/dist/studioSelectionModel.js +32 -29
  588. package/dist/studioSelectionModel.js.map +1 -1
  589. package/dist/ui/admin/AnkhAdminPage.d.ts +1 -0
  590. package/dist/ui/admin/AnkhAdminPage.d.ts.map +1 -1
  591. package/dist/ui/admin/AnkhAdminPage.js +5 -0
  592. package/dist/ui/admin/AnkhAdminPage.js.map +1 -1
  593. package/dist/ui/admin/AnkhAdminShell.d.ts +4 -0
  594. package/dist/ui/admin/AnkhAdminShell.d.ts.map +1 -1
  595. package/dist/ui/admin/AnkhAdminShell.js +7 -0
  596. package/dist/ui/admin/AnkhAdminShell.js.map +1 -1
  597. package/dist/ui/admin/AuthAdminSession.d.ts +5 -0
  598. package/dist/ui/admin/AuthAdminSession.d.ts.map +1 -1
  599. package/dist/ui/admin/AuthAdminSession.js +12 -0
  600. package/dist/ui/admin/AuthAdminSession.js.map +1 -1
  601. package/dist/ui/admin/ModuleAdminViewBoundary.d.ts +7 -0
  602. package/dist/ui/admin/ModuleAdminViewBoundary.d.ts.map +1 -1
  603. package/dist/ui/admin/ModuleAdminViewBoundary.js +7 -0
  604. package/dist/ui/admin/ModuleAdminViewBoundary.js.map +1 -1
  605. package/dist/ui/admin/ModuleAdminViewHost.d.ts +4 -0
  606. package/dist/ui/admin/ModuleAdminViewHost.d.ts.map +1 -1
  607. package/dist/ui/admin/ModuleAdminViewHost.js +6 -0
  608. package/dist/ui/admin/ModuleAdminViewHost.js.map +1 -1
  609. package/dist/ui/admin/adminPagePrimitives.d.ts +24 -0
  610. package/dist/ui/admin/adminPagePrimitives.d.ts.map +1 -1
  611. package/dist/ui/admin/adminPagePrimitives.js +24 -0
  612. package/dist/ui/admin/adminPagePrimitives.js.map +1 -1
  613. package/dist/ui/admin/moduleAdminViewRegistry.d.ts +4 -0
  614. package/dist/ui/admin/moduleAdminViewRegistry.d.ts.map +1 -1
  615. package/dist/ui/admin/moduleAdminViewRegistry.js +4 -0
  616. package/dist/ui/admin/moduleAdminViewRegistry.js.map +1 -1
  617. package/dist/ui/admin/pages/ApiCatalogCard.d.ts +1 -0
  618. package/dist/ui/admin/pages/ApiCatalogCard.d.ts.map +1 -1
  619. package/dist/ui/admin/pages/ApiCatalogCard.js +3 -0
  620. package/dist/ui/admin/pages/ApiCatalogCard.js.map +1 -1
  621. package/dist/ui/admin/pages/ApiOperationsCard.d.ts +1 -0
  622. package/dist/ui/admin/pages/ApiOperationsCard.d.ts.map +1 -1
  623. package/dist/ui/admin/pages/ApiOperationsCard.js +11 -0
  624. package/dist/ui/admin/pages/ApiOperationsCard.js.map +1 -1
  625. package/dist/ui/admin/pages/ApisAdminPage.d.ts +1 -0
  626. package/dist/ui/admin/pages/ApisAdminPage.d.ts.map +1 -1
  627. package/dist/ui/admin/pages/ApisAdminPage.js +1 -0
  628. package/dist/ui/admin/pages/ApisAdminPage.js.map +1 -1
  629. package/dist/ui/admin/pages/AuthAdminPage.d.ts +4 -0
  630. package/dist/ui/admin/pages/AuthAdminPage.d.ts.map +1 -1
  631. package/dist/ui/admin/pages/AuthAdminPage.js +82 -0
  632. package/dist/ui/admin/pages/AuthAdminPage.js.map +1 -1
  633. package/dist/ui/admin/pages/BindingsAdminPage.d.ts +4 -0
  634. package/dist/ui/admin/pages/BindingsAdminPage.d.ts.map +1 -1
  635. package/dist/ui/admin/pages/BindingsAdminPage.js +4 -0
  636. package/dist/ui/admin/pages/BindingsAdminPage.js.map +1 -1
  637. package/dist/ui/admin/pages/ExternalApiAdminPrimitives.d.ts +5 -0
  638. package/dist/ui/admin/pages/ExternalApiAdminPrimitives.d.ts.map +1 -1
  639. package/dist/ui/admin/pages/ExternalApiAdminPrimitives.js +5 -0
  640. package/dist/ui/admin/pages/ExternalApiAdminPrimitives.js.map +1 -1
  641. package/dist/ui/admin/pages/ExternalApiConnectCard.d.ts +1 -0
  642. package/dist/ui/admin/pages/ExternalApiConnectCard.d.ts.map +1 -1
  643. package/dist/ui/admin/pages/ExternalApiConnectCard.js +2 -0
  644. package/dist/ui/admin/pages/ExternalApiConnectCard.js.map +1 -1
  645. package/dist/ui/admin/pages/ManualRestApiCard.d.ts +1 -0
  646. package/dist/ui/admin/pages/ManualRestApiCard.d.ts.map +1 -1
  647. package/dist/ui/admin/pages/ManualRestApiCard.js +2 -0
  648. package/dist/ui/admin/pages/ManualRestApiCard.js.map +1 -1
  649. package/dist/ui/admin/pages/MediaAdminPage.d.ts +1 -0
  650. package/dist/ui/admin/pages/MediaAdminPage.d.ts.map +1 -1
  651. package/dist/ui/admin/pages/MediaAdminPage.js +6 -0
  652. package/dist/ui/admin/pages/MediaAdminPage.js.map +1 -1
  653. package/dist/ui/admin/pages/MediaDeviceImportCard.d.ts +1 -0
  654. package/dist/ui/admin/pages/MediaDeviceImportCard.d.ts.map +1 -1
  655. package/dist/ui/admin/pages/MediaDeviceImportCard.js +2 -0
  656. package/dist/ui/admin/pages/MediaDeviceImportCard.js.map +1 -1
  657. package/dist/ui/admin/pages/MediaPropertyInput.d.ts +1 -0
  658. package/dist/ui/admin/pages/MediaPropertyInput.d.ts.map +1 -1
  659. package/dist/ui/admin/pages/MediaPropertyInput.js +1 -0
  660. package/dist/ui/admin/pages/MediaPropertyInput.js.map +1 -1
  661. package/dist/ui/admin/pages/ModuleDetailAdminPage.d.ts +1 -0
  662. package/dist/ui/admin/pages/ModuleDetailAdminPage.d.ts.map +1 -1
  663. package/dist/ui/admin/pages/ModuleDetailAdminPage.js +9 -0
  664. package/dist/ui/admin/pages/ModuleDetailAdminPage.js.map +1 -1
  665. package/dist/ui/admin/pages/ModulesAdminPage.d.ts +1 -0
  666. package/dist/ui/admin/pages/ModulesAdminPage.d.ts.map +1 -1
  667. package/dist/ui/admin/pages/ModulesAdminPage.js +9 -0
  668. package/dist/ui/admin/pages/ModulesAdminPage.js.map +1 -1
  669. package/dist/ui/admin/pages/OverviewAdminPage.d.ts +1 -0
  670. package/dist/ui/admin/pages/OverviewAdminPage.d.ts.map +1 -1
  671. package/dist/ui/admin/pages/OverviewAdminPage.js +1 -0
  672. package/dist/ui/admin/pages/OverviewAdminPage.js.map +1 -1
  673. package/dist/ui/admin/pages/PropertiesAdminPage.d.ts +4 -0
  674. package/dist/ui/admin/pages/PropertiesAdminPage.d.ts.map +1 -1
  675. package/dist/ui/admin/pages/PropertiesAdminPage.js +17 -0
  676. package/dist/ui/admin/pages/PropertiesAdminPage.js.map +1 -1
  677. package/dist/ui/admin/pages/ScreenDetailAdminPage.d.ts +1 -0
  678. package/dist/ui/admin/pages/ScreenDetailAdminPage.d.ts.map +1 -1
  679. package/dist/ui/admin/pages/ScreenDetailAdminPage.js +11 -0
  680. package/dist/ui/admin/pages/ScreenDetailAdminPage.js.map +1 -1
  681. package/dist/ui/admin/pages/ScreensAdminPage.d.ts +1 -0
  682. package/dist/ui/admin/pages/ScreensAdminPage.d.ts.map +1 -1
  683. package/dist/ui/admin/pages/ScreensAdminPage.js +10 -0
  684. package/dist/ui/admin/pages/ScreensAdminPage.js.map +1 -1
  685. package/dist/ui/admin/pages/SecretsAdminPage.d.ts +4 -0
  686. package/dist/ui/admin/pages/SecretsAdminPage.d.ts.map +1 -1
  687. package/dist/ui/admin/pages/SecretsAdminPage.js +64 -0
  688. package/dist/ui/admin/pages/SecretsAdminPage.js.map +1 -1
  689. package/dist/ui/admin/pages/ThemeAdminPage.d.ts +1 -0
  690. package/dist/ui/admin/pages/ThemeAdminPage.d.ts.map +1 -1
  691. package/dist/ui/admin/pages/ThemeAdminPage.js +1 -0
  692. package/dist/ui/admin/pages/ThemeAdminPage.js.map +1 -1
  693. package/dist/ui/admin/pages/ThemeColorsAdminPage.d.ts +1 -0
  694. package/dist/ui/admin/pages/ThemeColorsAdminPage.d.ts.map +1 -1
  695. package/dist/ui/admin/pages/ThemeColorsAdminPage.js +4 -0
  696. package/dist/ui/admin/pages/ThemeColorsAdminPage.js.map +1 -1
  697. package/dist/ui/admin/pages/ThemeModeEditorSelector.d.ts +4 -0
  698. package/dist/ui/admin/pages/ThemeModeEditorSelector.d.ts.map +1 -1
  699. package/dist/ui/admin/pages/ThemeModeEditorSelector.js +4 -0
  700. package/dist/ui/admin/pages/ThemeModeEditorSelector.js.map +1 -1
  701. package/dist/ui/admin/pages/ThemeNumericTokensAdminPage.d.ts +1 -0
  702. package/dist/ui/admin/pages/ThemeNumericTokensAdminPage.d.ts.map +1 -1
  703. package/dist/ui/admin/pages/ThemeNumericTokensAdminPage.js +10 -6
  704. package/dist/ui/admin/pages/ThemeNumericTokensAdminPage.js.map +1 -1
  705. package/dist/ui/admin/pages/ThemeRecipeAdminPage.d.ts +1 -0
  706. package/dist/ui/admin/pages/ThemeRecipeAdminPage.d.ts.map +1 -1
  707. package/dist/ui/admin/pages/ThemeRecipeAdminPage.js +3 -0
  708. package/dist/ui/admin/pages/ThemeRecipeAdminPage.js.map +1 -1
  709. package/dist/ui/admin/pages/ThemeRecipeCatalog.d.ts +1 -0
  710. package/dist/ui/admin/pages/ThemeRecipeCatalog.d.ts.map +1 -1
  711. package/dist/ui/admin/pages/ThemeRecipeCatalog.js +3 -0
  712. package/dist/ui/admin/pages/ThemeRecipeCatalog.js.map +1 -1
  713. package/dist/ui/admin/pages/ThemeRecipeFieldEditor.d.ts +1 -0
  714. package/dist/ui/admin/pages/ThemeRecipeFieldEditor.d.ts.map +1 -1
  715. package/dist/ui/admin/pages/ThemeRecipeFieldEditor.js +4 -0
  716. package/dist/ui/admin/pages/ThemeRecipeFieldEditor.js.map +1 -1
  717. package/dist/ui/admin/pages/ThemeTokenAction.d.ts +4 -0
  718. package/dist/ui/admin/pages/ThemeTokenAction.d.ts.map +1 -1
  719. package/dist/ui/admin/pages/ThemeTokenAction.js +4 -0
  720. package/dist/ui/admin/pages/ThemeTokenAction.js.map +1 -1
  721. package/dist/ui/admin/pages/ThemeTypographyAdminPage.d.ts +1 -0
  722. package/dist/ui/admin/pages/ThemeTypographyAdminPage.d.ts.map +1 -1
  723. package/dist/ui/admin/pages/ThemeTypographyAdminPage.js +1 -0
  724. package/dist/ui/admin/pages/ThemeTypographyAdminPage.js.map +1 -1
  725. package/dist/ui/admin/pages/ThemeTypographyHeadingEditor.d.ts +1 -0
  726. package/dist/ui/admin/pages/ThemeTypographyHeadingEditor.d.ts.map +1 -1
  727. package/dist/ui/admin/pages/ThemeTypographyHeadingEditor.js +6 -6
  728. package/dist/ui/admin/pages/ThemeTypographyHeadingEditor.js.map +1 -1
  729. package/dist/ui/admin/pages/ThemeTypographySizeEditor.d.ts +1 -0
  730. package/dist/ui/admin/pages/ThemeTypographySizeEditor.d.ts.map +1 -1
  731. package/dist/ui/admin/pages/ThemeTypographySizeEditor.js +5 -6
  732. package/dist/ui/admin/pages/ThemeTypographySizeEditor.js.map +1 -1
  733. package/dist/ui/admin/pages/ThemeTypographyWeightEditor.d.ts +1 -0
  734. package/dist/ui/admin/pages/ThemeTypographyWeightEditor.d.ts.map +1 -1
  735. package/dist/ui/admin/pages/ThemeTypographyWeightEditor.js +3 -0
  736. package/dist/ui/admin/pages/ThemeTypographyWeightEditor.js.map +1 -1
  737. package/dist/ui/admin/pages/adminApiOperations.d.ts +4 -0
  738. package/dist/ui/admin/pages/adminApiOperations.d.ts.map +1 -1
  739. package/dist/ui/admin/pages/adminApiOperations.js +4 -0
  740. package/dist/ui/admin/pages/adminApiOperations.js.map +1 -1
  741. package/dist/ui/admin/pages/adminAuthCredentialFlow.d.ts +7 -0
  742. package/dist/ui/admin/pages/adminAuthCredentialFlow.d.ts.map +1 -1
  743. package/dist/ui/admin/pages/adminAuthCredentialFlow.js +28 -0
  744. package/dist/ui/admin/pages/adminAuthCredentialFlow.js.map +1 -1
  745. package/dist/ui/admin/pages/adminAuthHealthFlow.d.ts +8 -0
  746. package/dist/ui/admin/pages/adminAuthHealthFlow.d.ts.map +1 -1
  747. package/dist/ui/admin/pages/adminAuthHealthFlow.js +8 -0
  748. package/dist/ui/admin/pages/adminAuthHealthFlow.js.map +1 -1
  749. package/dist/ui/admin/pages/adminAuthSessionModel.d.ts +73 -0
  750. package/dist/ui/admin/pages/adminAuthSessionModel.d.ts.map +1 -1
  751. package/dist/ui/admin/pages/adminAuthSessionModel.js +73 -0
  752. package/dist/ui/admin/pages/adminAuthSessionModel.js.map +1 -1
  753. package/dist/ui/admin/pages/adminThemeHarmony.d.ts +4 -0
  754. package/dist/ui/admin/pages/adminThemeHarmony.d.ts.map +1 -1
  755. package/dist/ui/admin/pages/adminThemeHarmony.js +4 -0
  756. package/dist/ui/admin/pages/adminThemeHarmony.js.map +1 -1
  757. package/dist/ui/admin/pages/adminThemeModel.d.ts +13 -0
  758. package/dist/ui/admin/pages/adminThemeModel.d.ts.map +1 -1
  759. package/dist/ui/admin/pages/adminThemeModel.js +13 -0
  760. package/dist/ui/admin/pages/adminThemeModel.js.map +1 -1
  761. package/dist/ui/admin/pages/bindings/BindingDiagnosticsCard.d.ts +1 -0
  762. package/dist/ui/admin/pages/bindings/BindingDiagnosticsCard.d.ts.map +1 -1
  763. package/dist/ui/admin/pages/bindings/BindingDiagnosticsCard.js +1 -0
  764. package/dist/ui/admin/pages/bindings/BindingDiagnosticsCard.js.map +1 -1
  765. package/dist/ui/admin/pages/bindings/EventBindingComposer.d.ts +1 -0
  766. package/dist/ui/admin/pages/bindings/EventBindingComposer.d.ts.map +1 -1
  767. package/dist/ui/admin/pages/bindings/EventBindingComposer.js +3 -0
  768. package/dist/ui/admin/pages/bindings/EventBindingComposer.js.map +1 -1
  769. package/dist/ui/admin/pages/bindings/EventBindingsCard.d.ts +1 -0
  770. package/dist/ui/admin/pages/bindings/EventBindingsCard.d.ts.map +1 -1
  771. package/dist/ui/admin/pages/bindings/EventBindingsCard.js +4 -0
  772. package/dist/ui/admin/pages/bindings/EventBindingsCard.js.map +1 -1
  773. package/dist/ui/admin/pages/bindings/PropertyBindingEditor.d.ts +1 -0
  774. package/dist/ui/admin/pages/bindings/PropertyBindingEditor.d.ts.map +1 -1
  775. package/dist/ui/admin/pages/bindings/PropertyBindingEditor.js +2 -0
  776. package/dist/ui/admin/pages/bindings/PropertyBindingEditor.js.map +1 -1
  777. package/dist/ui/admin/pages/bindings/PropertyBindingsCard.d.ts +1 -0
  778. package/dist/ui/admin/pages/bindings/PropertyBindingsCard.d.ts.map +1 -1
  779. package/dist/ui/admin/pages/bindings/PropertyBindingsCard.js +1 -0
  780. package/dist/ui/admin/pages/bindings/PropertyBindingsCard.js.map +1 -1
  781. package/dist/ui/admin/pages/bindings/bindingEditorModel.d.ts +16 -0
  782. package/dist/ui/admin/pages/bindings/bindingEditorModel.d.ts.map +1 -1
  783. package/dist/ui/admin/pages/bindings/bindingEditorModel.js +26 -0
  784. package/dist/ui/admin/pages/bindings/bindingEditorModel.js.map +1 -1
  785. package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.d.ts +4 -0
  786. package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.d.ts.map +1 -1
  787. package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.js +10 -0
  788. package/dist/ui/admin/pages/deploy/useProjectDeployDashboard.js.map +1 -1
  789. package/dist/ui/admin/pages/screens/screensAdminActions.d.ts +4 -0
  790. package/dist/ui/admin/pages/screens/screensAdminActions.d.ts.map +1 -1
  791. package/dist/ui/admin/pages/screens/screensAdminActions.js +4 -0
  792. package/dist/ui/admin/pages/screens/screensAdminActions.js.map +1 -1
  793. package/dist/ui/admin/pages/themeRecipeAuthoringModel.d.ts +4 -0
  794. package/dist/ui/admin/pages/themeRecipeAuthoringModel.d.ts.map +1 -1
  795. package/dist/ui/admin/pages/themeRecipeAuthoringModel.js +10 -3
  796. package/dist/ui/admin/pages/themeRecipeAuthoringModel.js.map +1 -1
  797. package/dist/ui/admin/pages/themeRecipeTokenOptions.d.ts +4 -0
  798. package/dist/ui/admin/pages/themeRecipeTokenOptions.d.ts.map +1 -1
  799. package/dist/ui/admin/pages/themeRecipeTokenOptions.js +4 -0
  800. package/dist/ui/admin/pages/themeRecipeTokenOptions.js.map +1 -1
  801. package/dist/ui/admin/pages/themeTokenAuthoringModel.d.ts +4 -0
  802. package/dist/ui/admin/pages/themeTokenAuthoringModel.d.ts.map +1 -1
  803. package/dist/ui/admin/pages/themeTokenAuthoringModel.js +12 -3
  804. package/dist/ui/admin/pages/themeTokenAuthoringModel.js.map +1 -1
  805. package/dist/ui/admin/pages/useActiveThemeAdmin.d.ts +4 -0
  806. package/dist/ui/admin/pages/useActiveThemeAdmin.d.ts.map +1 -1
  807. package/dist/ui/admin/pages/useActiveThemeAdmin.js +5 -0
  808. package/dist/ui/admin/pages/useActiveThemeAdmin.js.map +1 -1
  809. package/dist/ui/canvas/StudioCanvasDndOverlay.d.ts +4 -0
  810. package/dist/ui/canvas/StudioCanvasDndOverlay.d.ts.map +1 -1
  811. package/dist/ui/canvas/StudioCanvasDndOverlay.js +11 -0
  812. package/dist/ui/canvas/StudioCanvasDndOverlay.js.map +1 -1
  813. package/dist/ui/canvas/canvasDndInteraction.d.ts +18 -6
  814. package/dist/ui/canvas/canvasDndInteraction.d.ts.map +1 -1
  815. package/dist/ui/canvas/canvasDndInteraction.js +18 -3
  816. package/dist/ui/canvas/canvasDndInteraction.js.map +1 -1
  817. package/dist/upsertExternalApi.d.ts +3 -0
  818. package/dist/upsertExternalApi.d.ts.map +1 -1
  819. package/dist/upsertExternalApi.js +7 -5
  820. package/dist/upsertExternalApi.js.map +1 -1
  821. package/dist/utils/treeUtils.d.ts +3 -0
  822. package/dist/utils/treeUtils.d.ts.map +1 -1
  823. package/dist/utils/treeUtils.js +3 -0
  824. package/dist/utils/treeUtils.js.map +1 -1
  825. package/dist/workspacePlatform.d.ts +12 -0
  826. package/dist/workspacePlatform.d.ts.map +1 -1
  827. package/dist/workspacePlatform.js +30 -25
  828. package/dist/workspacePlatform.js.map +1 -1
  829. package/package.json +2 -2
  830. package/dist/hooks/useWorkspaceActions.d.ts +0 -8
  831. package/dist/hooks/useWorkspaceActions.d.ts.map +0 -1
  832. package/dist/hooks/useWorkspaceActions.js +0 -28
  833. package/dist/hooks/useWorkspaceActions.js.map +0 -1
  834. package/dist/utils/deleteOwnProperty.d.ts +0 -3
  835. package/dist/utils/deleteOwnProperty.d.ts.map +0 -1
  836. package/dist/utils/deleteOwnProperty.js +0 -5
  837. package/dist/utils/deleteOwnProperty.js.map +0 -1
  838. package/dist/utils/readOwnProperty.d.ts +0 -3
  839. package/dist/utils/readOwnProperty.d.ts.map +0 -1
  840. package/dist/utils/readOwnProperty.js +0 -7
  841. package/dist/utils/readOwnProperty.js.map +0 -1
  842. package/dist/utils/setOwnProperty.d.ts +0 -3
  843. package/dist/utils/setOwnProperty.d.ts.map +0 -1
  844. package/dist/utils/setOwnProperty.js +0 -10
  845. package/dist/utils/setOwnProperty.js.map +0 -1
@@ -44,12 +44,20 @@ export const DEFAULT_STUDIO_SCREEN_TEMPLATE = {
44
44
  },
45
45
  ],
46
46
  };
47
+ /***
48
+ * Generate a Studio manifest-state identifier from the current time, randomness, and optional prefix.
49
+ * @todo Move this identifier policy from the src root into the manifest domain or the domain that owns generated authoring IDs.
50
+ */
47
51
  export const generateManifestStateId = (prefix) => {
48
52
  const timestamp = Date.now().toString(36);
49
53
  const random = Math.random().toString(36).substring(2, 11);
50
54
  const id = `${timestamp}-${random}`;
51
55
  return prefix ? `${prefix.toLowerCase()}-${id}` : id;
52
56
  };
57
+ /***
58
+ * Serialize the manifest fields used to detect broad Studio authoring-state changes.
59
+ * @todo Move this manifest state projection from the src root into the manifest domain.
60
+ */
53
61
  export function createStudioManifestFingerprint(manifest) {
54
62
  if (!manifest)
55
63
  return '';
@@ -65,12 +73,24 @@ export function createStudioManifestFingerprint(manifest) {
65
73
  infra: manifest.infra,
66
74
  });
67
75
  }
76
+ /***
77
+ * Convert a navigator parent path to the stable key used for route grouping.
78
+ * @todo Move this route-path helper from the src root into routes/.
79
+ */
68
80
  export function pathToKey(path) {
69
81
  return path.length === 0 ? '__root__' : path.join('/');
70
82
  }
83
+ /***
84
+ * Return whether a route segment represents an Expo Router-style group segment.
85
+ * @todo Move this route semantic helper from the src root into routes/.
86
+ */
71
87
  export function isRouteGroupSegment(segment) {
72
88
  return /^\(.*\)$/.test(segment);
73
89
  }
90
+ /***
91
+ * Recursively collect screen-targeting routes together with their navigator and route paths.
92
+ * @todo Move route traversal from the src root into routes/.
93
+ */
74
94
  export function collectScreenRouteEntries(routes, parentPath = [], routePathPrefix = []) {
75
95
  const entries = [];
76
96
  for (const route of routes) {
@@ -89,6 +109,10 @@ export function collectScreenRouteEntries(routes, parentPath = [], routePathPref
89
109
  }
90
110
  return entries;
91
111
  }
112
+ /***
113
+ * Group collected screen routes by the navigator parent path that owns them.
114
+ * @todo Move route grouping from the src root into routes/.
115
+ */
92
116
  export function groupScreenRouteEntries(entries) {
93
117
  const groups = new Map();
94
118
  for (const entry of entries) {
@@ -104,9 +128,9 @@ export function groupScreenRouteEntries(entries) {
104
128
  }
105
129
  return Array.from(groups.values());
106
130
  }
107
- /**
108
- * Verifies the Studio manifest invariant that route registry keys and stable
109
- * ScreenSpec identities are the same unique value.
131
+ /***
132
+ * Verify that every screen registry key equals its unique stable ScreenSpec identifier.
133
+ * @todo Move this manifest screen invariant from the src root into the manifest domain.
110
134
  */
111
135
  export function hasCanonicalStudioScreenRegistryIdentity(screens) {
112
136
  const screenIds = new Set();
@@ -117,14 +141,18 @@ export function hasCanonicalStudioScreenRegistryIdentity(screens) {
117
141
  }
118
142
  return true;
119
143
  }
144
+ /***
145
+ * Resolve a screen by stable identifier only when the manifest screen registry satisfies its canonical identity invariant.
146
+ * @todo Move this screen lookup from the src root into the manifest domain.
147
+ */
120
148
  function resolveCanonicalStudioScreen(manifest, screenId) {
121
149
  if (!hasCanonicalStudioScreenRegistryIdentity(manifest.screens))
122
150
  return undefined;
123
151
  return Object.values(manifest.screens).find((screen) => screen.id === screenId);
124
152
  }
125
- /**
126
- * Derives the complete package-neutral screen/navigation authoring model from
127
- * the manifest without flattening its navigator tree.
153
+ /***
154
+ * Derive the complete screen/navigation authoring model and diagnostics without flattening the navigator tree.
155
+ * @todo Move navigation-model derivation from the src root into routes/.
128
156
  */
129
157
  export function deriveStudioScreenNavigationModel(manifest) {
130
158
  const primaryNavigatorPath = getPrimaryNavigatorPath(manifest.navigator.routes);
@@ -183,9 +211,9 @@ export function deriveStudioScreenNavigationModel(manifest) {
183
211
  diagnostics,
184
212
  };
185
213
  }
186
- /**
187
- * Returns a concrete canonical app pathname only when a screen has one route
188
- * reference and that route does not require runtime parameters.
214
+ /***
215
+ * Resolve a concrete app pathname only when a screen has one unique, non-dynamic route reference.
216
+ * @todo Move canonical route-path resolution from the src root into routes/.
189
217
  */
190
218
  export function resolveStudioScreenAppPath(model, screenId) {
191
219
  const matchingEntries = model.screens.filter((candidate) => candidate.screenId === screenId);
@@ -207,6 +235,10 @@ export function resolveStudioScreenAppPath(model, screenId) {
207
235
  const matchingReferences = model.screens.flatMap((candidate) => candidate.routeReferences.filter((candidateReference) => candidateReference.pathnamePattern === reference.pathnamePattern));
208
236
  return matchingReferences.length === 1 ? reference.pathnamePattern : null;
209
237
  }
238
+ /***
239
+ * Traverse a navigator tree to collect route references and navigation diagnostics for each screen.
240
+ * @todo Move navigation traversal and diagnostics from the src root into routes/.
241
+ */
210
242
  function collectNavigationModelReferences(args) {
211
243
  const { navigator, screens, primaryNavigatorPath, parentPath, routePathPrefix, runtimePathPrefix, diagnostics, referencesByRegistryKey, } = args;
212
244
  const siblingNameCounts = new Map();
@@ -301,25 +333,40 @@ function collectNavigationModelReferences(args) {
301
333
  }
302
334
  }
303
335
  }
336
+ /***
337
+ * Append one route's explicit or named path segments to the current runtime route path.
338
+ * @todo Move runtime route-path construction from the src root into routes/.
339
+ */
304
340
  function appendRuntimeRoutePath(runtimePathPrefix, route) {
305
341
  const explicitPath = route.path?.trim();
306
342
  const segmentPath = explicitPath ?? route.name;
307
343
  const segments = segmentPath.split('/').filter(Boolean);
308
344
  return explicitPath?.startsWith('/') ? segments : [...runtimePathPrefix, ...segments];
309
345
  }
346
+ /***
347
+ * Compare two route paths for ordered segment equality.
348
+ * @todo Keep this small comparison helper local to routes/ unless broader reuse is demonstrated.
349
+ */
310
350
  function pathsEqual(first, second) {
311
351
  return (first.length === second.length && first.every((value, index) => value === second.at(index)));
312
352
  }
353
+ /***
354
+ * Format a route parent path for navigation diagnostic messages.
355
+ * @todo Move route diagnostic formatting from the src root into routes/.
356
+ */
313
357
  function formatParentPath(parentPath) {
314
358
  return parentPath.length === 0 ? '<root>' : parentPath.join('/');
315
359
  }
360
+ /***
361
+ * List routed screen identifiers in navigator traversal order.
362
+ * @todo Move route ordering behavior from the src root into routes/.
363
+ */
316
364
  export function listScreenIdsInRouteOrder(routes) {
317
365
  return collectScreenRouteEntries(routes).map((entry) => entry.screenId);
318
366
  }
319
- /**
320
- * Resolves the initial leaf screen selected by a nested navigator tree.
321
- * Each navigator's initial route is preferred, with unusable routes falling
322
- * back to the first route that reaches an available screen.
367
+ /***
368
+ * Resolve the initial leaf screen selected by a nested navigator tree, falling back to the first usable route.
369
+ * @todo Move initial-route resolution from the src root into routes/.
323
370
  */
324
371
  export function resolveInitialScreenId(navigator, screens) {
325
372
  if (screens && !hasCanonicalStudioScreenRegistryIdentity(screens))
@@ -342,6 +389,10 @@ export function resolveInitialScreenId(navigator, screens) {
342
389
  }
343
390
  return null;
344
391
  }
392
+ /***
393
+ * Resolve the active screen Studio should select when a manifest is first opened.
394
+ * @todo Move initial Studio screen selection out of the src root into routes/ or selection/ according to its caller boundary.
395
+ */
345
396
  export function resolveInitialActiveScreenId(manifest) {
346
397
  if (!manifest || !hasCanonicalStudioScreenRegistryIdentity(manifest.screens))
347
398
  return null;
@@ -349,11 +400,19 @@ export function resolveInitialActiveScreenId(manifest) {
349
400
  const [firstScreenId] = Object.values(manifest.screens).map((screen) => screen.id);
350
401
  return firstRoutedScreenId ?? firstScreenId ?? null;
351
402
  }
403
+ /***
404
+ * Resolve the root UI node for the active canonical screen.
405
+ * @todo Move active-screen root resolution from the src root into the manifest/selection boundary.
406
+ */
352
407
  export function resolveActiveRootNode(manifest, activeScreenId) {
353
408
  if (!manifest || !activeScreenId)
354
409
  return null;
355
410
  return resolveCanonicalStudioScreen(manifest, activeScreenId)?.root ?? null;
356
411
  }
412
+ /***
413
+ * Recursively find a UI node by identifier in a manifest-owned UI tree.
414
+ * @todo Move UI-tree traversal from the src root into canvas/.
415
+ */
357
416
  export function findNodeInManifest(root, id) {
358
417
  if (root.id === id)
359
418
  return root;
@@ -364,11 +423,19 @@ export function findNodeInManifest(root, id) {
364
423
  }
365
424
  return null;
366
425
  }
426
+ /***
427
+ * Keep a selected node identifier only while that node still exists in the active tree.
428
+ * @todo Move selection validity policy from the src root into selection/.
429
+ */
367
430
  export function resolveSafeSelectedNodeId(rootNode, selectedNodeId) {
368
431
  if (!selectedNodeId || !rootNode)
369
432
  return null;
370
433
  return findNodeInManifest(rootNode, selectedNodeId) ? selectedNodeId : null;
371
434
  }
435
+ /***
436
+ * Find the canonical screen whose UI tree contains a given node identifier.
437
+ * @todo Move screen ownership lookup from the src root into the manifest/canvas boundary.
438
+ */
372
439
  export function findScreenIdForNode(manifest, nodeId) {
373
440
  if (!hasCanonicalStudioScreenRegistryIdentity(manifest.screens))
374
441
  return null;
@@ -379,6 +446,10 @@ export function findScreenIdForNode(manifest, nodeId) {
379
446
  }
380
447
  return null;
381
448
  }
449
+ /***
450
+ * Update authored properties of one node in the active screen while preserving manifest immutability.
451
+ * @todo Move canvas node mutation from the src root into canvas/.
452
+ */
382
453
  export function updateStudioManifestNode(manifest, activeScreenId, nodeId, newProps) {
383
454
  if (!activeScreenId)
384
455
  return manifest;
@@ -399,6 +470,10 @@ export function updateStudioManifestNode(manifest, activeScreenId, nodeId, newPr
399
470
  },
400
471
  };
401
472
  }
473
+ /***
474
+ * Delete a non-root node from the active screen and remove data bindings owned by the deleted subtree.
475
+ * @todo Split this canvas mutation and binding cleanup between canvas/ and bindings/ instead of the src root.
476
+ */
402
477
  export function deleteStudioManifestNode(manifest, activeScreenId, nodeId) {
403
478
  if (!activeScreenId)
404
479
  return manifest;
@@ -425,6 +500,10 @@ export function deleteStudioManifestNode(manifest, activeScreenId, nodeId) {
425
500
  },
426
501
  };
427
502
  }
503
+ /***
504
+ * Insert a new UI node at a validated canvas placement in the active screen.
505
+ * @todo Move canvas insertion orchestration from the src root into canvas/.
506
+ */
428
507
  export function insertStudioManifestNodeAtPlacement(args) {
429
508
  const { manifest, activeScreenId, placement, newNode, componentMeta } = args;
430
509
  if (!activeScreenId)
@@ -454,6 +533,10 @@ export function insertStudioManifestNodeAtPlacement(args) {
454
533
  insertedNodeId: newNode.id,
455
534
  };
456
535
  }
536
+ /***
537
+ * Move an existing UI node to a validated canvas placement in the active screen.
538
+ * @todo Move canvas movement orchestration from the src root into canvas/.
539
+ */
457
540
  export function moveStudioManifestNodeToPlacement(args) {
458
541
  const { manifest, activeScreenId, nodeId, placement, componentMeta } = args;
459
542
  if (!activeScreenId)
@@ -483,12 +566,24 @@ export function moveStudioManifestNodeToPlacement(args) {
483
566
  movedNodeId: movement.movedNodeId,
484
567
  };
485
568
  }
569
+ /***
570
+ * Replace the manifest component data-binding registry.
571
+ * @todo Move binding-state mutation from the src root into bindings/.
572
+ */
486
573
  export function updateStudioManifestDataBindings(manifest, dataBindings) {
487
574
  return { ...manifest, dataBindings };
488
575
  }
576
+ /***
577
+ * Replace the manifest data-source registry.
578
+ * @todo Resolve data-source authoring ownership with bindings/external APIs and remove this src-root mutation.
579
+ */
489
580
  export function updateStudioManifestDataSources(manifest, dataSources) {
490
581
  return { ...manifest, dataSources };
491
582
  }
583
+ /***
584
+ * Create the default light/dark theme configuration for a newly authored theme.
585
+ * @todo Extract theme authoring from manifestState.ts; the current Studio structure target does not yet name a dedicated theme domain.
586
+ */
492
587
  export function createDefaultThemeConfig(themeIndex, id = generateManifestStateId('theme')) {
493
588
  return {
494
589
  id,
@@ -503,9 +598,17 @@ export function createDefaultThemeConfig(themeIndex, id = generateManifestStateI
503
598
  },
504
599
  };
505
600
  }
601
+ /***
602
+ * Append a theme to the manifest, creating a default theme when none is supplied.
603
+ * @todo Extract theme authoring from manifestState.ts into its resolved owner.
604
+ */
506
605
  export function addStudioManifestTheme(manifest, theme = createDefaultThemeConfig(manifest.themes.length)) {
507
606
  return { ...manifest, themes: [...manifest.themes, theme] };
508
607
  }
608
+ /***
609
+ * Merge shared and mode-specific updates into one manifest theme.
610
+ * @todo Extract theme authoring from manifestState.ts into its resolved owner.
611
+ */
509
612
  export function updateStudioManifestTheme(manifest, themeId, updates) {
510
613
  return {
511
614
  ...manifest,
@@ -522,6 +625,10 @@ export function updateStudioManifestTheme(manifest, themeId, updates) {
522
625
  }),
523
626
  };
524
627
  }
628
+ /***
629
+ * Delete a theme while preserving at least one theme and a valid active-theme identifier.
630
+ * @todo Extract theme authoring from manifestState.ts into its resolved owner.
631
+ */
525
632
  export function deleteStudioManifestTheme(manifest, themeId) {
526
633
  if (manifest.themes.length <= 1)
527
634
  return manifest;
@@ -531,12 +638,24 @@ export function deleteStudioManifestTheme(manifest, themeId) {
531
638
  : manifest.activeThemeId;
532
639
  return { ...manifest, themes, activeThemeId };
533
640
  }
641
+ /***
642
+ * Set the active theme identifier in the manifest.
643
+ * @todo Extract theme authoring from manifestState.ts into its resolved owner.
644
+ */
534
645
  export function setStudioManifestActiveThemeId(manifest, activeThemeId) {
535
646
  return { ...manifest, activeThemeId };
536
647
  }
648
+ /***
649
+ * Set the active light/dark theme mode in the manifest.
650
+ * @todo Extract theme authoring from manifestState.ts into its resolved owner.
651
+ */
537
652
  export function setStudioManifestActiveThemeMode(manifest, activeThemeMode) {
538
653
  return { ...manifest, activeThemeMode };
539
654
  }
655
+ /***
656
+ * Replace OAuth providers while preserving or creating the surrounding manifest auth configuration.
657
+ * @todo Move auth policy from the src root into auth/.
658
+ */
540
659
  export function updateStudioManifestOAuthProviders(manifest, providers) {
541
660
  const previousAuth = manifest.infra.auth ?? {
542
661
  provider: 'supabase',
@@ -563,6 +682,10 @@ export function updateStudioManifestOAuthProviders(manifest, providers) {
563
682
  },
564
683
  };
565
684
  }
685
+ /***
686
+ * Resolve the navigator path Studio treats as the primary application navigator.
687
+ * @todo Move primary-navigator policy from the src root into routes/.
688
+ */
566
689
  export function getPrimaryNavigatorPath(routes) {
567
690
  const appGroupRoute = routes.find((route) => route.name === '(app)' && route.navigator?.routes);
568
691
  if (appGroupRoute)
@@ -572,6 +695,10 @@ export function getPrimaryNavigatorPath(routes) {
572
695
  return ['app'];
573
696
  return [];
574
697
  }
698
+ /***
699
+ * Find the navigator parent path that owns a route targeting the requested screen.
700
+ * @todo Move route traversal from the src root into routes/.
701
+ */
575
702
  export function findParentPathForScreenId(routes, screenId, parentPath = [], routePathPrefix = []) {
576
703
  for (const route of routes) {
577
704
  const routePath = [...routePathPrefix, route.name];
@@ -585,6 +712,10 @@ export function findParentPathForScreenId(routes, screenId, parentPath = [], rou
585
712
  }
586
713
  return null;
587
714
  }
715
+ /***
716
+ * Resolve the direct route collection owned by a navigator parent path.
717
+ * @todo Move navigator path lookup from the src root into routes/.
718
+ */
588
719
  export function findRoutesAtParentPath(routes, parentPath) {
589
720
  if (parentPath.length === 0)
590
721
  return routes;
@@ -599,6 +730,10 @@ export function findRoutesAtParentPath(routes, parentPath) {
599
730
  return null;
600
731
  return findRoutesAtParentPath(route.navigator.routes, rest);
601
732
  }
733
+ /***
734
+ * Insert a route into the navigator identified by a parent path without mutating the existing tree.
735
+ * @todo Move route-tree mutation from the src root into routes/.
736
+ */
602
737
  export function insertRouteAtParentPath(routes, parentPath, newRoute) {
603
738
  if (parentPath.length === 0)
604
739
  return [...routes, newRoute];
@@ -619,6 +754,10 @@ export function insertRouteAtParentPath(routes, parentPath, newRoute) {
619
754
  };
620
755
  });
621
756
  }
757
+ /***
758
+ * Resolve a nested navigator by its route-name path.
759
+ * @todo Move navigator lookup from the src root into routes/.
760
+ */
622
761
  export function findNavigatorAtPath(navigator, parentPath) {
623
762
  if (parentPath.length === 0)
624
763
  return navigator;
@@ -633,6 +772,10 @@ export function findNavigatorAtPath(navigator, parentPath) {
633
772
  return null;
634
773
  return findNavigatorAtPath(route.navigator, rest);
635
774
  }
775
+ /***
776
+ * Immutably update the navigator identified by a route-name path.
777
+ * @todo Move navigator-tree mutation from the src root into routes/.
778
+ */
636
779
  export function updateNavigatorAtPath(navigator, parentPath, updater) {
637
780
  if (parentPath.length === 0)
638
781
  return updater(navigator);
@@ -653,6 +796,10 @@ export function updateNavigatorAtPath(navigator, parentPath, updater) {
653
796
  }),
654
797
  };
655
798
  }
799
+ /***
800
+ * Change the primary navigator type when the requested navigator type is valid and different.
801
+ * @todo Move navigator authoring policy from the src root into routes/.
802
+ */
656
803
  export function setStudioManifestNavigatorType(manifest, type) {
657
804
  if (!NAVIGATOR_TYPES.includes(type))
658
805
  return manifest;
@@ -668,6 +815,10 @@ export function setStudioManifestNavigatorType(manifest, type) {
668
815
  })),
669
816
  };
670
817
  }
818
+ /***
819
+ * Change the primary navigator initial route when the requested sibling route is unique.
820
+ * @todo Move navigator authoring policy from the src root into routes/.
821
+ */
671
822
  export function setStudioManifestNavigatorInitialRoute(manifest, routeName) {
672
823
  const normalizedRoute = routeName.trim();
673
824
  if (!normalizedRoute)
@@ -689,6 +840,10 @@ export function setStudioManifestNavigatorInitialRoute(manifest, routeName) {
689
840
  })),
690
841
  };
691
842
  }
843
+ /***
844
+ * Set whether one route is visible in primary navigation while preserving the canonical visible representation.
845
+ * @todo Move route visibility authoring from the src root into routes/.
846
+ */
692
847
  export function setStudioManifestRoutePrimaryNavigationVisibility(args) {
693
848
  const { manifest, parentPath, routeName, showInPrimaryNavigation } = args;
694
849
  const navigator = findNavigatorAtPath(manifest.navigator, parentPath);
@@ -721,6 +876,10 @@ export function setStudioManifestRoutePrimaryNavigationVisibility(args) {
721
876
  })),
722
877
  };
723
878
  }
879
+ /***
880
+ * Reorder one uniquely named route within its navigator parent.
881
+ * @todo Move route ordering authoring from the src root into routes/.
882
+ */
724
883
  export function moveStudioManifestRoute(args) {
725
884
  const { manifest, parentPath, routeName, toIndex } = args;
726
885
  if (!Number.isInteger(toIndex))
@@ -746,6 +905,10 @@ export function moveStudioManifestRoute(args) {
746
905
  }),
747
906
  };
748
907
  }
908
+ /***
909
+ * Create a new screen from a template, generate a collision-free route, and make the new screen active.
910
+ * @todo Split screen creation between manifest screen state and routes/ instead of keeping both in one src-root function.
911
+ */
749
912
  export function addStudioManifestScreen(args) {
750
913
  const { manifest, activeScreenId, createId = generateManifestStateId } = args;
751
914
  if (!hasCanonicalStudioScreenRegistryIdentity(manifest.screens)) {
@@ -791,6 +954,10 @@ export function addStudioManifestScreen(args) {
791
954
  },
792
955
  };
793
956
  }
957
+ /***
958
+ * Delete a screen, remove route references and bindings for its subtree, and resolve a safe next active screen.
959
+ * @todo Split this cross-domain operation across manifest, routes/, bindings/, and selection application responsibilities.
960
+ */
794
961
  export function deleteStudioManifestScreen(manifest, screenId, activeScreenId) {
795
962
  if (!hasCanonicalStudioScreenRegistryIdentity(manifest.screens)) {
796
963
  return { manifest, activeScreenId };
@@ -824,6 +991,10 @@ export function deleteStudioManifestScreen(manifest, screenId, activeScreenId) {
824
991
  },
825
992
  };
826
993
  }
994
+ /***
995
+ * Recursively remove a screen target from routes and prune nested navigators that become empty.
996
+ * @todo Move route cleanup from the src root into routes/.
997
+ */
827
998
  export function removeScreenIdFromRoutes(routes, screenId) {
828
999
  const nextRoutes = [];
829
1000
  for (const route of routes) {
@@ -849,6 +1020,10 @@ export function removeScreenIdFromRoutes(routes, screenId) {
849
1020
  }
850
1021
  return nextRoutes;
851
1022
  }
1023
+ /***
1024
+ * Generate a route name that is unique among sibling routes by appending a numeric suffix when needed.
1025
+ * @todo Move route-name generation from the src root into routes/.
1026
+ */
852
1027
  export function makeUniqueSiblingRouteName(base, siblingRoutes) {
853
1028
  const normalized = normalizeRouteName(base);
854
1029
  const existingNames = new Set(siblingRoutes.map((route) => route.name));
@@ -860,6 +1035,10 @@ export function makeUniqueSiblingRouteName(base, siblingRoutes) {
860
1035
  }
861
1036
  return `${normalized}-${suffix}`;
862
1037
  }
1038
+ /***
1039
+ * Convert route path segments to the canonical pathname pattern used by Studio authoring.
1040
+ * @todo Move canonical route-pattern logic from the src root into routes/.
1041
+ */
863
1042
  export function toCanonicalRoutePattern(routePath) {
864
1043
  const normalized = routePath.filter((segment) => !isRouteGroupSegment(segment));
865
1044
  while (normalized[0] === 'index')
@@ -868,6 +1047,10 @@ export function toCanonicalRoutePattern(routePath) {
868
1047
  normalized.pop();
869
1048
  return normalized.length ? `/${normalized.join('/')}` : '/';
870
1049
  }
1050
+ /***
1051
+ * Generate a route name that avoids both sibling-name and canonical-path collisions.
1052
+ * @todo Move route-name collision policy from the src root into routes/.
1053
+ */
871
1054
  export function makeUniqueRouteNameForParent(baseRouteName, siblingRoutes, parentPath, existingPatterns) {
872
1055
  const siblingNames = new Set(siblingRoutes.map((route) => route.name));
873
1056
  let candidate = baseRouteName;
@@ -879,6 +1062,10 @@ export function makeUniqueRouteNameForParent(baseRouteName, siblingRoutes, paren
879
1062
  }
880
1063
  return candidate;
881
1064
  }
1065
+ /***
1066
+ * Normalize arbitrary screen text into the lowercase hyphenated route-name form used by Studio.
1067
+ * @todo Keep this semantic route-name normalization under routes/ rather than extracting it as a generic slug utility.
1068
+ */
882
1069
  function normalizeRouteName(value) {
883
1070
  return (value
884
1071
  .trim()
@@ -886,6 +1073,10 @@ function normalizeRouteName(value) {
886
1073
  .replace(/[^a-z0-9]+/g, '-')
887
1074
  .replace(/^-+|-+$/g, '') || 'screen');
888
1075
  }
1076
+ /***
1077
+ * Collect canonical pathname patterns for every route in a nested navigator tree.
1078
+ * @todo Move route-pattern traversal from the src root into routes/.
1079
+ */
889
1080
  function collectCanonicalRoutePatterns(routes, runtimePathPrefix = []) {
890
1081
  const patterns = [];
891
1082
  for (const route of routes) {
@@ -897,6 +1088,10 @@ function collectCanonicalRoutePatterns(routes, runtimePathPrefix = []) {
897
1088
  }
898
1089
  return patterns;
899
1090
  }
1091
+ /***
1092
+ * Deep-clone a UI node tree while assigning fresh identifiers and copying mutable node data.
1093
+ * @todo Move UI-tree cloning from the src root into canvas/.
1094
+ */
900
1095
  function cloneNodeWithNewIds(node, createId) {
901
1096
  const clonedNode = {
902
1097
  ...node,
@@ -908,6 +1103,10 @@ function cloneNodeWithNewIds(node, createId) {
908
1103
  }
909
1104
  return clonedNode;
910
1105
  }
1106
+ /***
1107
+ * Immutably update alias, style, and props for a node in a UI tree.
1108
+ * @todo Move UI-tree mutation from the src root into canvas/ or properties/ according to final authoring ownership.
1109
+ */
911
1110
  function updateNodeInManifestTree(root, id, newProps) {
912
1111
  if (root.id === id) {
913
1112
  const { alias, style, ...rest } = newProps;
@@ -926,6 +1125,10 @@ function updateNodeInManifestTree(root, id, newProps) {
926
1125
  const hasChanged = nextChildren.some((child, index) => child !== root.children?.at(index));
927
1126
  return hasChanged ? { ...root, children: nextChildren } : root;
928
1127
  }
1128
+ /***
1129
+ * Immutably remove a node from a UI tree while preserving the remaining hierarchy.
1130
+ * @todo Move UI-tree mutation from the src root into canvas/.
1131
+ */
929
1132
  function removeNodeFromManifestTree(root, nodeId) {
930
1133
  if (root.id === nodeId)
931
1134
  return null;
@@ -939,6 +1142,10 @@ function removeNodeFromManifestTree(root, nodeId) {
939
1142
  const hasChanged = nextChildren.some((child, index) => child !== root.children?.at(index));
940
1143
  return hasChanged ? { ...root, children: nextChildren } : root;
941
1144
  }
1145
+ /***
1146
+ * Collect every node identifier in a UI subtree.
1147
+ * @todo Move UI-tree traversal from the src root into canvas/.
1148
+ */
942
1149
  function collectNodeIds(root) {
943
1150
  const ids = new Set();
944
1151
  const visit = (node) => {
@@ -949,6 +1156,10 @@ function collectNodeIds(root) {
949
1156
  visit(root);
950
1157
  return ids;
951
1158
  }
1159
+ /***
1160
+ * Repair a navigator's initial-route field after route removal while preserving canonical omission when no initial route exists.
1161
+ * @todo Move navigator normalization from the src root into routes/.
1162
+ */
952
1163
  function normalizeNavigatorAfterRouteUpdate(navigator) {
953
1164
  const nextRoutes = navigator.routes;
954
1165
  let nextInitialRouteName = navigator.initialRouteName;
@@ -965,6 +1176,10 @@ function normalizeNavigatorAfterRouteUpdate(navigator) {
965
1176
  }
966
1177
  return { ...navigator, routes: nextRoutes, initialRouteName: nextInitialRouteName };
967
1178
  }
1179
+ /***
1180
+ * Narrow an unknown node style value to the string-or-number style record accepted by Studio node updates.
1181
+ * @todo Keep this semantic style predicate with the canvas/properties authoring logic rather than treating it as a generic record utility.
1182
+ */
968
1183
  function isStyleRecord(value) {
969
1184
  if (typeof value !== 'object' || value === null || Array.isArray(value))
970
1185
  return false;