@fps-games/editor 0.2.1-beta.2 → 0.2.1-beta.4

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 (595) hide show
  1. package/dist/build-info.json +46 -46
  2. package/dist/editor-commands/capabilities/assets.d.ts +8 -0
  3. package/dist/editor-commands/capabilities/assets.d.ts.map +1 -0
  4. package/dist/{agent-bridge → editor-commands}/capabilities/assets.js +41 -41
  5. package/dist/editor-commands/capabilities/assets.js.map +1 -0
  6. package/dist/editor-commands/capabilities/editor-state.d.ts +5 -0
  7. package/dist/editor-commands/capabilities/editor-state.d.ts.map +1 -0
  8. package/dist/{agent-bridge → editor-commands}/capabilities/editor-state.js +22 -22
  9. package/dist/editor-commands/capabilities/editor-state.js.map +1 -0
  10. package/dist/editor-commands/capabilities/hierarchy.d.ts +4 -0
  11. package/dist/editor-commands/capabilities/hierarchy.d.ts.map +1 -0
  12. package/dist/{agent-bridge → editor-commands}/capabilities/hierarchy.js +5 -5
  13. package/dist/editor-commands/capabilities/hierarchy.js.map +1 -0
  14. package/dist/editor-commands/capabilities/host-lifecycle.d.ts +11 -0
  15. package/dist/editor-commands/capabilities/host-lifecycle.d.ts.map +1 -0
  16. package/dist/editor-commands/capabilities/host-lifecycle.js +149 -0
  17. package/dist/editor-commands/capabilities/host-lifecycle.js.map +1 -0
  18. package/dist/editor-commands/capabilities/prefabs.d.ts +5 -0
  19. package/dist/editor-commands/capabilities/prefabs.d.ts.map +1 -0
  20. package/dist/{agent-bridge → editor-commands}/capabilities/prefabs.js +93 -93
  21. package/dist/editor-commands/capabilities/prefabs.js.map +1 -0
  22. package/dist/editor-commands/capabilities/scene-objects.d.ts +8 -0
  23. package/dist/editor-commands/capabilities/scene-objects.d.ts.map +1 -0
  24. package/dist/editor-commands/capabilities/scene-objects.js +480 -0
  25. package/dist/editor-commands/capabilities/scene-objects.js.map +1 -0
  26. package/dist/editor-commands/capabilities/selection.d.ts +5 -0
  27. package/dist/editor-commands/capabilities/selection.d.ts.map +1 -0
  28. package/dist/editor-commands/capabilities/selection.js +60 -0
  29. package/dist/editor-commands/capabilities/selection.js.map +1 -0
  30. package/dist/editor-commands/capabilities/shadows.d.ts +5 -0
  31. package/dist/editor-commands/capabilities/shadows.d.ts.map +1 -0
  32. package/dist/{agent-bridge → editor-commands}/capabilities/shadows.js +74 -74
  33. package/dist/editor-commands/capabilities/shadows.js.map +1 -0
  34. package/dist/editor-commands/capabilities/transform.d.ts +5 -0
  35. package/dist/editor-commands/capabilities/transform.d.ts.map +1 -0
  36. package/dist/editor-commands/capabilities/transform.js +164 -0
  37. package/dist/editor-commands/capabilities/transform.js.map +1 -0
  38. package/dist/editor-commands/capabilities/ui-regions.d.ts +4 -0
  39. package/dist/editor-commands/capabilities/ui-regions.d.ts.map +1 -0
  40. package/dist/{agent-bridge → editor-commands}/capabilities/ui-regions.js +55 -57
  41. package/dist/editor-commands/capabilities/ui-regions.js.map +1 -0
  42. package/dist/editor-commands/capabilities/viewport.d.ts +5 -0
  43. package/dist/editor-commands/capabilities/viewport.d.ts.map +1 -0
  44. package/dist/{agent-bridge → editor-commands}/capabilities/viewport.js +100 -100
  45. package/dist/editor-commands/capabilities/viewport.js.map +1 -0
  46. package/dist/editor-commands/command-sources.d.ts +7 -0
  47. package/dist/editor-commands/command-sources.d.ts.map +1 -0
  48. package/dist/editor-commands/command-sources.js +34 -0
  49. package/dist/editor-commands/command-sources.js.map +1 -0
  50. package/dist/editor-commands/diagnostics.d.ts +12 -0
  51. package/dist/editor-commands/diagnostics.d.ts.map +1 -0
  52. package/dist/{agent-bridge → editor-commands}/diagnostics.js +4 -4
  53. package/dist/editor-commands/diagnostics.js.map +1 -0
  54. package/dist/{agent-bridge → editor-commands}/index.d.ts +1 -1
  55. package/dist/editor-commands/index.d.ts.map +1 -0
  56. package/dist/{agent-bridge → editor-commands}/index.js +1 -1
  57. package/dist/editor-commands/index.js.map +1 -0
  58. package/dist/editor-commands/register.d.ts +4 -0
  59. package/dist/editor-commands/register.d.ts.map +1 -0
  60. package/dist/{agent-bridge → editor-commands}/register.js +323 -286
  61. package/dist/editor-commands/register.js.map +1 -0
  62. package/dist/{agent-bridge → editor-commands}/shared.d.ts +80 -80
  63. package/dist/editor-commands/shared.d.ts.map +1 -0
  64. package/dist/{agent-bridge → editor-commands}/shared.js +29 -29
  65. package/dist/editor-commands/shared.js.map +1 -0
  66. package/dist/editor-commands/source-types.d.ts +110 -0
  67. package/dist/editor-commands/source-types.d.ts.map +1 -0
  68. package/dist/editor-commands/source-types.js.map +1 -0
  69. package/dist/editor-plugin-commands.d.ts +4 -0
  70. package/dist/editor-plugin-commands.d.ts.map +1 -0
  71. package/dist/editor-plugin-commands.js +18 -0
  72. package/dist/editor-plugin-commands.js.map +1 -0
  73. package/dist/index.d.ts +2 -2
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/index.js.map +1 -1
  77. package/dist/local-editor-commands.d.ts +2 -0
  78. package/dist/local-editor-commands.d.ts.map +1 -0
  79. package/dist/local-editor-commands.js +2 -0
  80. package/dist/local-editor-commands.js.map +1 -0
  81. package/dist/local-editor-harness.d.ts +35 -21
  82. package/dist/local-editor-harness.d.ts.map +1 -1
  83. package/dist/local-editor-harness.js +1737 -374
  84. package/dist/local-editor-harness.js.map +1 -1
  85. package/dist/local-editor-prefab-stage-transaction.d.ts +2 -1
  86. package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -1
  87. package/dist/local-editor-prefab-stage-transaction.js +6 -5
  88. package/dist/local-editor-prefab-stage-transaction.js.map +1 -1
  89. package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
  90. package/dist/local-editor-scene-view-interaction-runtime.js +2 -5
  91. package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
  92. package/dist/playable-babylon-rendering.d.ts +8 -7
  93. package/dist/playable-babylon-rendering.d.ts.map +1 -1
  94. package/dist/playable-babylon-rendering.js +77 -32
  95. package/dist/playable-babylon-rendering.js.map +1 -1
  96. package/dist/playable-local-editor-entry.d.ts +10 -0
  97. package/dist/playable-local-editor-entry.d.ts.map +1 -1
  98. package/dist/playable-local-editor-entry.js +10 -2
  99. package/dist/playable-local-editor-entry.js.map +1 -1
  100. package/dist/playable-local-editor-host.d.ts +3 -32
  101. package/dist/playable-local-editor-host.d.ts.map +1 -1
  102. package/dist/playable-local-editor-host.js +6 -70
  103. package/dist/playable-local-editor-host.js.map +1 -1
  104. package/dist/playable-product-local-editor.d.ts +1 -2
  105. package/dist/playable-product-local-editor.d.ts.map +1 -1
  106. package/dist/playable-product-local-editor.js +0 -1
  107. package/dist/playable-product-local-editor.js.map +1 -1
  108. package/dist/playable-product-projection-preview.d.ts +2 -0
  109. package/dist/playable-product-projection-preview.d.ts.map +1 -1
  110. package/dist/playable-product-projection-preview.js +8 -5
  111. package/dist/playable-product-projection-preview.js.map +1 -1
  112. package/dist/playable-product-scene-capabilities.d.ts +0 -2
  113. package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
  114. package/dist/playable-product-scene-capabilities.js +33 -6
  115. package/dist/playable-product-scene-capabilities.js.map +1 -1
  116. package/dist/playable-runtime-babylon.d.ts +4 -0
  117. package/dist/playable-runtime-babylon.d.ts.map +1 -1
  118. package/dist/playable-runtime-babylon.js +4 -0
  119. package/dist/playable-runtime-babylon.js.map +1 -1
  120. package/dist/playable-sdk.d.ts +2 -2
  121. package/dist/playable-sdk.d.ts.map +1 -1
  122. package/dist/playable-sdk.js +1 -1
  123. package/dist/playable-sdk.js.map +1 -1
  124. package/dist/playable-standard-project.d.ts +0 -3
  125. package/dist/playable-standard-project.d.ts.map +1 -1
  126. package/dist/playable-standard-project.js +14 -6
  127. package/dist/playable-standard-project.js.map +1 -1
  128. package/dist/project-service-projection.d.ts +16 -0
  129. package/dist/project-service-projection.d.ts.map +1 -0
  130. package/dist/project-service-projection.js +67 -0
  131. package/dist/project-service-projection.js.map +1 -0
  132. package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.d.ts +4 -2
  133. package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.d.ts.map +1 -1
  134. package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.js +301 -121
  135. package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.js.map +1 -1
  136. package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.js +5 -4
  137. package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.js.map +1 -1
  138. package/node_modules/@fps-games/babylon-renderer/dist/environment/types.d.ts +4 -4
  139. package/node_modules/@fps-games/babylon-renderer/dist/environment/types.d.ts.map +1 -1
  140. package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js +1 -1
  141. package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js.map +1 -1
  142. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts +2 -0
  143. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts.map +1 -1
  144. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js +12 -1
  145. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js.map +1 -1
  146. package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts +6 -3
  147. package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts.map +1 -1
  148. package/node_modules/@fps-games/babylon-renderer/dist/plugin.js +100 -39
  149. package/node_modules/@fps-games/babylon-renderer/dist/plugin.js.map +1 -1
  150. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +18 -0
  151. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
  152. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +54 -18
  153. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
  154. package/node_modules/@fps-games/babylon-renderer/dist/reference.d.ts +1 -3
  155. package/node_modules/@fps-games/babylon-renderer/dist/reference.d.ts.map +1 -1
  156. package/node_modules/@fps-games/babylon-renderer/dist/reference.js.map +1 -1
  157. package/node_modules/@fps-games/babylon-renderer/package.json +11 -8
  158. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +1 -0
  159. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
  160. package/node_modules/@fps-games/editor-babylon/dist/projection.js +1 -1
  161. package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
  162. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -1
  163. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +127 -13
  164. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -1
  165. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
  166. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +66 -1
  167. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
  168. package/node_modules/@fps-games/editor-babylon/package.json +6 -6
  169. package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.d.ts +32 -0
  170. package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.d.ts.map +1 -0
  171. package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.js +254 -0
  172. package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.js.map +1 -0
  173. package/node_modules/@fps-games/editor-browser/dist/index.d.ts +3 -1
  174. package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
  175. package/node_modules/@fps-games/editor-browser/dist/index.js +2 -0
  176. package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
  177. package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.d.ts +68 -0
  178. package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.d.ts.map +1 -0
  179. package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.js +650 -0
  180. package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.js.map +1 -0
  181. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +1 -0
  182. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -1
  183. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +22 -0
  184. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -1
  185. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +8 -0
  186. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
  187. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +117 -6
  188. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
  189. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +14 -1
  190. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
  191. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +100 -1
  192. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
  193. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +8 -1
  194. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
  195. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +75 -2
  196. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
  197. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +37 -12
  198. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
  199. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
  200. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +25 -2
  201. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
  202. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +332 -107
  203. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
  204. package/node_modules/@fps-games/editor-browser/package.json +7 -7
  205. package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.d.ts +107 -0
  206. package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.d.ts.map +1 -0
  207. package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.js +1211 -0
  208. package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.js.map +1 -0
  209. package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.d.ts +34 -0
  210. package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.d.ts.map +1 -0
  211. package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.js +260 -0
  212. package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.js.map +1 -0
  213. package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.d.ts +9 -0
  214. package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.d.ts.map +1 -0
  215. package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.js +14 -0
  216. package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.js.map +1 -0
  217. package/node_modules/@fps-games/editor-core/dist/editor-command-observability.d.ts +18 -0
  218. package/node_modules/@fps-games/editor-core/dist/editor-command-observability.d.ts.map +1 -0
  219. package/node_modules/@fps-games/editor-core/dist/editor-command-observability.js +113 -0
  220. package/node_modules/@fps-games/editor-core/dist/editor-command-observability.js.map +1 -0
  221. package/node_modules/@fps-games/editor-core/dist/editor-command-system.d.ts +82 -0
  222. package/node_modules/@fps-games/editor-core/dist/editor-command-system.d.ts.map +1 -0
  223. package/node_modules/@fps-games/editor-core/dist/editor-command-system.js +1098 -0
  224. package/node_modules/@fps-games/editor-core/dist/editor-command-system.js.map +1 -0
  225. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -7
  226. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
  227. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +62 -103
  228. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
  229. package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.d.ts +30 -0
  230. package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.d.ts.map +1 -0
  231. package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.js +540 -0
  232. package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.js.map +1 -0
  233. package/node_modules/@fps-games/editor-core/dist/editor-session-authority.d.ts +9 -0
  234. package/node_modules/@fps-games/editor-core/dist/editor-session-authority.d.ts.map +1 -0
  235. package/node_modules/@fps-games/editor-core/dist/editor-session-authority.js +61 -0
  236. package/node_modules/@fps-games/editor-core/dist/editor-session-authority.js.map +1 -0
  237. package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +55 -0
  238. package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
  239. package/node_modules/@fps-games/editor-core/dist/editor-session.js +247 -6
  240. package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
  241. package/node_modules/@fps-games/editor-core/dist/index.d.ts +6 -2
  242. package/node_modules/@fps-games/editor-core/dist/index.d.ts.map +1 -1
  243. package/node_modules/@fps-games/editor-core/dist/index.js +6 -2
  244. package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
  245. package/node_modules/@fps-games/editor-core/package.json +6 -6
  246. package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts +0 -1
  247. package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts.map +1 -1
  248. package/node_modules/@fps-games/editor-forge-play/dist/index.js +0 -1
  249. package/node_modules/@fps-games/editor-forge-play/dist/index.js.map +1 -1
  250. package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
  251. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.d.ts.map +1 -1
  252. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.js +10 -3
  253. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.js.map +1 -1
  254. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.d.ts +2 -1
  255. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.d.ts.map +1 -1
  256. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.js +1 -1
  257. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.js.map +1 -1
  258. package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts +2 -0
  259. package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts.map +1 -1
  260. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
  261. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +41 -1
  262. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
  263. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +27 -1
  264. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -1
  265. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
  266. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +2 -0
  267. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
  268. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +214 -7
  269. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
  270. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +1 -0
  271. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
  272. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +11 -3
  273. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
  274. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +2 -4
  275. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
  276. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +0 -1
  277. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
  278. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
  279. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +77 -31
  280. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
  281. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +8 -1
  282. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -1
  283. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
  284. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.d.ts +21 -1
  285. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.d.ts.map +1 -1
  286. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.js +90 -4
  287. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.js.map +1 -1
  288. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts +27 -1
  289. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts.map +1 -1
  290. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js +161 -1
  291. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js.map +1 -1
  292. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts +2 -2
  293. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts.map +1 -1
  294. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js +5 -92
  295. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js.map +1 -1
  296. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.d.ts +7 -0
  297. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.d.ts.map +1 -1
  298. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.js +26 -9
  299. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.js.map +1 -1
  300. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.d.ts +9 -0
  301. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.d.ts.map +1 -1
  302. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.js +19 -8
  303. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.js.map +1 -1
  304. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +1 -1
  305. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
  306. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +4 -0
  307. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
  308. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.d.ts +5 -0
  309. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.d.ts.map +1 -1
  310. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.js +16 -4
  311. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.js.map +1 -1
  312. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +9 -0
  313. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
  314. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +12 -2
  315. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
  316. package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.d.ts +2 -1
  317. package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.d.ts.map +1 -1
  318. package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.js +10 -5
  319. package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.js.map +1 -1
  320. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts +1 -0
  321. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
  322. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +1 -0
  323. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
  324. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +17 -82
  325. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
  326. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +53 -57
  327. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
  328. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.d.ts.map +1 -1
  329. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.js +3 -2
  330. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.js.map +1 -1
  331. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.d.ts +10 -0
  332. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.d.ts.map +1 -0
  333. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.js +256 -0
  334. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.js.map +1 -0
  335. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
  336. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +7 -5
  337. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
  338. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +4 -4
  339. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
  340. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +2 -1
  341. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
  342. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -1
  343. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js +1 -5
  344. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js.map +1 -1
  345. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
  346. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +8 -0
  347. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
  348. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +1 -0
  349. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
  350. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
  351. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +187 -12
  352. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
  353. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts +2 -0
  354. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts.map +1 -1
  355. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.js.map +1 -1
  356. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
  357. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +47 -0
  358. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
  359. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.d.ts +27 -0
  360. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.d.ts.map +1 -0
  361. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.js +592 -0
  362. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.js.map +1 -0
  363. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +3 -1
  364. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
  365. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +2 -1
  366. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
  367. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
  368. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +61 -6
  369. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
  370. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +0 -2
  371. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
  372. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js +1 -10
  373. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
  374. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
  375. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +21 -0
  376. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
  377. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.d.ts +13 -0
  378. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.d.ts.map +1 -0
  379. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.js +18 -0
  380. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.js.map +1 -0
  381. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.d.ts +28 -0
  382. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.d.ts.map +1 -0
  383. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.js +863 -0
  384. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.js.map +1 -0
  385. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +2 -0
  386. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
  387. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
  388. package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
  389. package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.d.ts +1626 -0
  390. package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.d.ts.map +1 -0
  391. package/node_modules/@fps-games/editor-protocol/dist/{agent-bridge.js → editor-command-capabilities.js} +766 -620
  392. package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.js.map +1 -0
  393. package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.d.ts +69 -0
  394. package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.d.ts.map +1 -0
  395. package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.js +22 -0
  396. package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.js.map +1 -0
  397. package/node_modules/@fps-games/editor-protocol/dist/editor-command.d.ts +136 -0
  398. package/node_modules/@fps-games/editor-protocol/dist/editor-command.d.ts.map +1 -0
  399. package/node_modules/@fps-games/editor-protocol/dist/editor-command.js +2 -0
  400. package/node_modules/@fps-games/editor-protocol/dist/editor-command.js.map +1 -0
  401. package/node_modules/@fps-games/editor-protocol/dist/editor-service.d.ts +225 -0
  402. package/node_modules/@fps-games/editor-protocol/dist/editor-service.d.ts.map +1 -0
  403. package/node_modules/@fps-games/editor-protocol/dist/editor-service.js +4 -0
  404. package/node_modules/@fps-games/editor-protocol/dist/editor-service.js.map +1 -0
  405. package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +6 -3
  406. package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
  407. package/node_modules/@fps-games/editor-protocol/dist/index.js +6 -3
  408. package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
  409. package/node_modules/@fps-games/editor-protocol/package.json +2 -2
  410. package/node_modules/@fps-games/editor-tooling/package.json +3 -3
  411. package/node_modules/@fps-games/editor-ui/package.json +1 -1
  412. package/node_modules/@fps-games/playable-assets/dist/identity.d.ts +1 -0
  413. package/node_modules/@fps-games/playable-assets/dist/identity.d.ts.map +1 -1
  414. package/node_modules/@fps-games/playable-assets/dist/identity.js +1 -1
  415. package/node_modules/@fps-games/playable-assets/dist/identity.js.map +1 -1
  416. package/node_modules/@fps-games/playable-assets/dist/index.d.ts +1 -0
  417. package/node_modules/@fps-games/playable-assets/dist/index.d.ts.map +1 -1
  418. package/node_modules/@fps-games/playable-assets/dist/index.js +1 -0
  419. package/node_modules/@fps-games/playable-assets/dist/index.js.map +1 -1
  420. package/node_modules/@fps-games/playable-assets/dist/resource-resolver.d.ts +46 -0
  421. package/node_modules/@fps-games/playable-assets/dist/resource-resolver.d.ts.map +1 -0
  422. package/node_modules/@fps-games/playable-assets/dist/resource-resolver.js +109 -0
  423. package/node_modules/@fps-games/playable-assets/dist/resource-resolver.js.map +1 -0
  424. package/node_modules/@fps-games/playable-assets/package.json +1 -1
  425. package/node_modules/@fps-games/playable-contracts/package.json +1 -1
  426. package/node_modules/@fps-games/playable-rendering/package.json +2 -2
  427. package/node_modules/@fps-games/playable-runtime/dist/runtime.d.ts.map +1 -1
  428. package/node_modules/@fps-games/playable-runtime/dist/runtime.js +5 -0
  429. package/node_modules/@fps-games/playable-runtime/dist/runtime.js.map +1 -1
  430. package/node_modules/@fps-games/playable-runtime/dist/types.d.ts +2 -0
  431. package/node_modules/@fps-games/playable-runtime/dist/types.d.ts.map +1 -1
  432. package/node_modules/@fps-games/playable-runtime/dist/types.js.map +1 -1
  433. package/node_modules/@fps-games/playable-runtime/package.json +12 -12
  434. package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
  435. package/node_modules/@fps-games/playable-scene/package.json +2 -2
  436. package/node_modules/@fps-games/plugin-api/package.json +1 -1
  437. package/node_modules/@fps-games/plugin-assets/dist/reference.d.ts.map +1 -1
  438. package/node_modules/@fps-games/plugin-assets/dist/reference.js +11 -4
  439. package/node_modules/@fps-games/plugin-assets/dist/reference.js.map +1 -1
  440. package/node_modules/@fps-games/plugin-assets/dist/renderer.d.ts +8 -0
  441. package/node_modules/@fps-games/plugin-assets/dist/renderer.d.ts.map +1 -0
  442. package/node_modules/@fps-games/plugin-assets/dist/renderer.js +13 -0
  443. package/node_modules/@fps-games/plugin-assets/dist/renderer.js.map +1 -0
  444. package/node_modules/@fps-games/plugin-assets/dist/resources.d.ts +12 -0
  445. package/node_modules/@fps-games/plugin-assets/dist/resources.d.ts.map +1 -0
  446. package/node_modules/@fps-games/plugin-assets/dist/resources.js +8 -0
  447. package/node_modules/@fps-games/plugin-assets/dist/resources.js.map +1 -0
  448. package/node_modules/@fps-games/plugin-assets/dist/runtime.d.ts +2 -1
  449. package/node_modules/@fps-games/plugin-assets/dist/runtime.d.ts.map +1 -1
  450. package/node_modules/@fps-games/plugin-assets/dist/runtime.js +3 -0
  451. package/node_modules/@fps-games/plugin-assets/dist/runtime.js.map +1 -1
  452. package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
  453. package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
  454. package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
  455. package/node_modules/@fps-games/plugin-assets/package.json +32 -8
  456. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +1 -0
  457. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -1
  458. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +78 -4
  459. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -1
  460. package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +1 -1
  461. package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +1 -1
  462. package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -1
  463. package/node_modules/@fps-games/plugin-hierarchy/package.json +5 -5
  464. package/node_modules/@fps-games/plugin-host/package.json +2 -2
  465. package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
  466. package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
  467. package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
  468. package/node_modules/@fps-games/plugin-markers/package.json +5 -5
  469. package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
  470. package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
  471. package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
  472. package/node_modules/@fps-games/plugin-materials/package.json +5 -5
  473. package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
  474. package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
  475. package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
  476. package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
  477. package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
  478. package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
  479. package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
  480. package/node_modules/@fps-games/plugin-scene/package.json +5 -5
  481. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +1 -1
  482. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +1 -1
  483. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -1
  484. package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +5 -5
  485. package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
  486. package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
  487. package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
  488. package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
  489. package/package.json +24 -22
  490. package/dist/agent-bridge/capabilities/assets.d.ts +0 -8
  491. package/dist/agent-bridge/capabilities/assets.d.ts.map +0 -1
  492. package/dist/agent-bridge/capabilities/assets.js.map +0 -1
  493. package/dist/agent-bridge/capabilities/editor-state.d.ts +0 -5
  494. package/dist/agent-bridge/capabilities/editor-state.d.ts.map +0 -1
  495. package/dist/agent-bridge/capabilities/editor-state.js.map +0 -1
  496. package/dist/agent-bridge/capabilities/hierarchy.d.ts +0 -4
  497. package/dist/agent-bridge/capabilities/hierarchy.d.ts.map +0 -1
  498. package/dist/agent-bridge/capabilities/hierarchy.js.map +0 -1
  499. package/dist/agent-bridge/capabilities/host-lifecycle.d.ts +0 -11
  500. package/dist/agent-bridge/capabilities/host-lifecycle.d.ts.map +0 -1
  501. package/dist/agent-bridge/capabilities/host-lifecycle.js +0 -149
  502. package/dist/agent-bridge/capabilities/host-lifecycle.js.map +0 -1
  503. package/dist/agent-bridge/capabilities/prefabs.d.ts +0 -5
  504. package/dist/agent-bridge/capabilities/prefabs.d.ts.map +0 -1
  505. package/dist/agent-bridge/capabilities/prefabs.js.map +0 -1
  506. package/dist/agent-bridge/capabilities/scene-objects.d.ts +0 -8
  507. package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +0 -1
  508. package/dist/agent-bridge/capabilities/scene-objects.js +0 -480
  509. package/dist/agent-bridge/capabilities/scene-objects.js.map +0 -1
  510. package/dist/agent-bridge/capabilities/selection.d.ts +0 -5
  511. package/dist/agent-bridge/capabilities/selection.d.ts.map +0 -1
  512. package/dist/agent-bridge/capabilities/selection.js +0 -60
  513. package/dist/agent-bridge/capabilities/selection.js.map +0 -1
  514. package/dist/agent-bridge/capabilities/shadows.d.ts +0 -5
  515. package/dist/agent-bridge/capabilities/shadows.d.ts.map +0 -1
  516. package/dist/agent-bridge/capabilities/shadows.js.map +0 -1
  517. package/dist/agent-bridge/capabilities/transform.d.ts +0 -5
  518. package/dist/agent-bridge/capabilities/transform.d.ts.map +0 -1
  519. package/dist/agent-bridge/capabilities/transform.js +0 -164
  520. package/dist/agent-bridge/capabilities/transform.js.map +0 -1
  521. package/dist/agent-bridge/capabilities/ui-regions.d.ts +0 -4
  522. package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +0 -1
  523. package/dist/agent-bridge/capabilities/ui-regions.js.map +0 -1
  524. package/dist/agent-bridge/capabilities/viewport.d.ts +0 -5
  525. package/dist/agent-bridge/capabilities/viewport.d.ts.map +0 -1
  526. package/dist/agent-bridge/capabilities/viewport.js.map +0 -1
  527. package/dist/agent-bridge/capability-sources.d.ts +0 -7
  528. package/dist/agent-bridge/capability-sources.d.ts.map +0 -1
  529. package/dist/agent-bridge/capability-sources.js +0 -34
  530. package/dist/agent-bridge/capability-sources.js.map +0 -1
  531. package/dist/agent-bridge/diagnostics.d.ts +0 -12
  532. package/dist/agent-bridge/diagnostics.d.ts.map +0 -1
  533. package/dist/agent-bridge/diagnostics.js.map +0 -1
  534. package/dist/agent-bridge/index.d.ts.map +0 -1
  535. package/dist/agent-bridge/index.js.map +0 -1
  536. package/dist/agent-bridge/register.d.ts +0 -4
  537. package/dist/agent-bridge/register.d.ts.map +0 -1
  538. package/dist/agent-bridge/register.js.map +0 -1
  539. package/dist/agent-bridge/shared.d.ts.map +0 -1
  540. package/dist/agent-bridge/shared.js.map +0 -1
  541. package/dist/agent-bridge/source-types.d.ts +0 -110
  542. package/dist/agent-bridge/source-types.d.ts.map +0 -1
  543. package/dist/agent-bridge/source-types.js.map +0 -1
  544. package/dist/editor-plugin-agent-capabilities.d.ts +0 -4
  545. package/dist/editor-plugin-agent-capabilities.d.ts.map +0 -1
  546. package/dist/editor-plugin-agent-capabilities.js +0 -64
  547. package/dist/editor-plugin-agent-capabilities.js.map +0 -1
  548. package/dist/local-editor-agent-actions.d.ts +0 -43
  549. package/dist/local-editor-agent-actions.d.ts.map +0 -1
  550. package/dist/local-editor-agent-actions.js +0 -321
  551. package/dist/local-editor-agent-actions.js.map +0 -1
  552. package/dist/local-editor-agent-bridge-transport.d.ts +0 -129
  553. package/dist/local-editor-agent-bridge-transport.d.ts.map +0 -1
  554. package/dist/local-editor-agent-bridge-transport.js +0 -403
  555. package/dist/local-editor-agent-bridge-transport.js.map +0 -1
  556. package/dist/local-editor-agent-bridge.d.ts +0 -2
  557. package/dist/local-editor-agent-bridge.d.ts.map +0 -1
  558. package/dist/local-editor-agent-bridge.js +0 -2
  559. package/dist/local-editor-agent-bridge.js.map +0 -1
  560. package/dist/local-editor-agent-context.d.ts +0 -68
  561. package/dist/local-editor-agent-context.d.ts.map +0 -1
  562. package/dist/local-editor-agent-context.js +0 -716
  563. package/dist/local-editor-agent-context.js.map +0 -1
  564. package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts +0 -22
  565. package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts.map +0 -1
  566. package/node_modules/@fps-games/editor-core/dist/agent-bridge.js +0 -106
  567. package/node_modules/@fps-games/editor-core/dist/agent-bridge.js.map +0 -1
  568. package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts +0 -17
  569. package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts.map +0 -1
  570. package/node_modules/@fps-games/editor-core/dist/agent-interaction.js +0 -14
  571. package/node_modules/@fps-games/editor-core/dist/agent-interaction.js.map +0 -1
  572. package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts +0 -23
  573. package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts.map +0 -1
  574. package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js +0 -47
  575. package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js.map +0 -1
  576. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.d.ts +0 -112
  577. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.d.ts.map +0 -1
  578. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js +0 -159
  579. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js.map +0 -1
  580. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.d.ts +0 -15
  581. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.d.ts.map +0 -1
  582. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js +0 -76
  583. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js.map +0 -1
  584. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +0 -1622
  585. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +0 -1
  586. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +0 -1
  587. package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts +0 -68
  588. package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts.map +0 -1
  589. package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js +0 -23
  590. package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js.map +0 -1
  591. package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +0 -187
  592. package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +0 -1
  593. package/node_modules/@fps-games/editor-protocol/dist/agent.js +0 -5
  594. package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +0 -1
  595. /package/dist/{agent-bridge → editor-commands}/source-types.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"scene-inspector.js","sourceRoot":"","sources":["../../src/material-binding/scene-inspector.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0CAA0C,GAC3C,MAAM,oBAAoB,C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;QACL,OAAO,EAAE,yBAAyB;QAClC,cAAc,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;QACxC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ;KAChC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,+BAA+B,CACtC,UAA4D,EAC5D,KAAoG;IAEpG,MAAM,QAAQ,GAAG,0CAA0C,CAA8B,KAAK,CAAC,CAAC;IAChG,IAAI,QAAQ;QAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,+BAA+B,CACtC,IAAY,EACZ,KAAa,EACb,KAAc,EACd,KAAa,EACb,OAAgB;IAEhB,OAAO,0CAA0C,CAA8B;QAC7E,IAAI;QACJ,KAAK;QACL,KAAK;QACL,KAAK;QACL,WAAW,EAAE,UAAU;QACvB,MAAM,EAAE,UAAU;QAClB,OAAO;KACR,CAAE,CAAC;AACN,CAAC","sourcesContent":["import type {\n InspectorProperty,\n InspectorSection,\n} from '@fps-games/editor-core';\nimport {\n createEditorSceneReadonlyInspectorProperty,\n} from '../inspector/index';\nimport {\n readEditorSceneNodeKind,\n type EditorSceneNodeKind,\n} from '../document/index';\nimport {\n collectEditorSceneChildMaterialSlots,\n findEditorSceneMaterialAsset,\n getEditorSceneSlotMaterialBinding,\n getEditorSceneSlotMaterialBindingPath,\n getEditorSceneSlotSelectionKey,\n hasDetectedModelMaterialSlots,\n parseEditorSceneAssetMeshSelectionId,\n} from './binding';\nimport {\n parseEditorSceneMaterialAssetFieldPath,\n} from './paths';\nimport {\n createArtistMaterialAssetInspectorProperties,\n createMaterialAssetSelectorInspectorProperty,\n createMaterialAssetPickerControlOptions,\n createTexturePickerControlOptions,\n findEditorSceneInspectorTextureAssetFromContext as findEditorSceneInspectorTextureAsset,\n readArtistMaterialTexturePickerValue,\n} from './asset-fields';\nimport {\n createArtistMaterialBindingSummary,\n createChildMaterialBindingInspectorProperties,\n createChildMaterialBindingSummary,\n createReadonlyMaterialSlotListInspectorProperties,\n formatEditorSceneMaterialSlotLabel,\n hasReadonlyEditorSceneMaterialSlotReimportIssues,\n} from './slot-inspector';\nimport {\n MATERIAL_LANGUAGE_OPTIONS,\n getArtistMaterialInspectorText,\n readArtistMaterialInspectorLanguage,\n type ArtistMaterialInspectorLanguage,\n type ArtistMaterialInspectorText,\n} from './text';\nimport {\n resolveEditorSceneMaterialSlotReimportDiff,\n} from './reimport';\nimport type {\n EditorSceneMaterialDocument,\n EditorSceneMaterialGameObject,\n EditorSceneMaterialInspectorContext,\n EditorSceneMaterialSlotDescriptor,\n} from './types';\n\nexport {\n createArtistMaterialAssetInspectorProperties,\n createMaterialAssetPickerControlOptions,\n createMaterialAssetSelectorInspectorProperty,\n createTexturePickerControlOptions,\n formatEditorSceneMaterialSlotLabel,\n getArtistMaterialInspectorText,\n readArtistMaterialInspectorLanguage,\n readArtistMaterialTexturePickerValue,\n type ArtistMaterialInspectorLanguage,\n type ArtistMaterialInspectorText,\n};\n\nexport function resolveEditorSceneAssetMeshSelectionTarget(\n document: EditorSceneMaterialDocument,\n id: string,\n): EditorSceneAssetMeshSelectionTarget | null {\n const parsed = parseEditorSceneAssetMeshSelectionId(id);\n if (!parsed) return null;\n const gameObject = document.scene.gameObjects.find(candidate => candidate.id === parsed.rootGameObjectId) ?? null;\n if (!gameObject) return null;\n const slots = collectEditorSceneChildMaterialSlots(document, gameObject);\n const slot = slots.find(candidate => getEditorSceneSlotSelectionKey(candidate) === parsed.slotSelectionKey) ?? null;\n if (!slot) return null;\n const slotIndex = Math.max(0, slots.indexOf(slot));\n const text = getArtistMaterialInspectorText(readArtistMaterialInspectorLanguage(gameObject));\n const label = slot.label || formatEditorSceneMaterialSlotLabel(slot.ownerNodePath, slotIndex, text);\n return {\n id,\n rootGameObjectId: parsed.rootGameObjectId,\n slotSelectionKey: parsed.slotSelectionKey,\n slotId: slot.slotId,\n ownerNodePath: slot.ownerNodePath,\n materialBindingPath: getEditorSceneSlotMaterialBindingPath(slot),\n label,\n gameObject,\n slot,\n };\n}\n\nexport function isEditorSceneAssetMeshWritablePath(path: string): boolean {\n return path.startsWith('overrides.materialSlotBindings.')\n || parseEditorSceneMaterialAssetFieldPath(path) != null;\n}\n\nexport interface MaterialInspectorServices {\n createDocumentInspectorProperty: MaterialDocumentInspectorPropertyFactory;\n}\n\ntype MaterialDocumentInspectorPropertyFactory = (\n document: EditorSceneMaterialDocument | null,\n nodeKind: EditorSceneNodeKind,\n property: Omit<InspectorProperty<EditorSceneMaterialDocument>, 'readOnly' | 'persistence' | 'validate'>,\n) => InspectorProperty<EditorSceneMaterialDocument>;\n\nexport type EditorSceneAssetMeshSelectionTarget = {\n id: string;\n rootGameObjectId: string;\n slotSelectionKey: string;\n slotId?: string;\n ownerNodePath: string;\n materialBindingPath: string;\n label: string;\n gameObject: EditorSceneMaterialGameObject;\n slot: EditorSceneMaterialSlotDescriptor;\n};\n\nexport function createArtistMaterialInspectorSections(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n nodeKind: EditorSceneNodeKind,\n context: EditorSceneMaterialInspectorContext = {},\n services: MaterialInspectorServices,\n): InspectorSection<EditorSceneMaterialDocument>[] {\n const sections: InspectorSection<EditorSceneMaterialDocument>[] = [];\n const language = readArtistMaterialInspectorLanguage(gameObject);\n const text = getArtistMaterialInspectorText(language);\n const rootBinding = gameObject.overrides?.materialBinding;\n const rootAsset = findEditorSceneMaterialAsset(document, rootBinding?.materialAssetId ?? '');\n const hasDetectedSlots = hasDetectedModelMaterialSlots(document, gameObject);\n const hasReadonlyReimportConflicts = nodeKind !== 'primitive'\n && hasReadonlyEditorSceneMaterialSlotReimportIssues(\n resolveEditorSceneMaterialSlotReimportDiff(document, gameObject),\n );\n if (!hasDetectedSlots) {\n sections.push({\n id: 'artistMaterial',\n title: text.title,\n order: 46,\n placement: 'body',\n summary: createArtistMaterialBindingSummary(rootBinding, rootAsset, text),\n persistence: 'document',\n collapsedByDefault: false,\n properties: [\n createMaterialLanguageInspectorProperty(nodeKind, text, language, 0, services),\n createMaterialAssetSelectorInspectorProperty(document, nodeKind, {\n path: 'overrides.materialBinding.materialAssetId',\n label: text.materialCard,\n value: rootBinding?.materialAssetId ?? '',\n order: 1,\n text,\n currentAsset: rootAsset,\n }),\n ...createArtistMaterialAssetInspectorProperties(document, rootAsset, text, 10, context),\n ],\n });\n }\n\n const slotProperties = nodeKind === 'primitive'\n ? []\n : hasDetectedSlots || hasReadonlyReimportConflicts\n ? createReadonlyMaterialSlotListInspectorProperties(document, gameObject, text)\n : createChildMaterialBindingInspectorProperties(document, gameObject, nodeKind, context);\n if (slotProperties.length > 0) {\n sections.push({\n id: 'artistMaterialSlots',\n title: text.slotTitle,\n order: 48,\n placement: 'body',\n summary: createChildMaterialBindingSummary(document, gameObject, text),\n persistence: hasDetectedSlots || hasReadonlyReimportConflicts ? 'readonly' : 'document',\n collapsedByDefault: !(hasDetectedSlots || hasReadonlyReimportConflicts),\n properties: slotProperties,\n });\n }\n return sections;\n}\n\nexport function createEditorSceneAssetMeshInspectorSections(\n document: EditorSceneMaterialDocument,\n target: EditorSceneAssetMeshSelectionTarget,\n context: EditorSceneMaterialInspectorContext = {},\n): InspectorSection<EditorSceneMaterialDocument>[] {\n const gameObject = target.gameObject;\n const nodeKind = readEditorSceneNodeKind(gameObject);\n const text = getArtistMaterialInspectorText(readArtistMaterialInspectorLanguage(gameObject));\n const binding = getEditorSceneSlotMaterialBinding(gameObject, target.slot);\n const materialAsset = findEditorSceneMaterialAsset(document, binding?.materialAssetId ?? '');\n const properties: InspectorProperty<EditorSceneMaterialDocument>[] = [\n createMaterialAssetSelectorInspectorProperty(document, nodeKind, {\n path: target.materialBindingPath,\n label: target.label,\n value: binding?.materialAssetId ?? '',\n order: 0,\n text,\n currentAsset: materialAsset,\n }),\n ...createArtistMaterialAssetInspectorProperties(document, materialAsset, text, 10, context),\n ];\n return [\n {\n id: 'assetMesh',\n title: 'Asset Mesh',\n order: 10,\n placement: 'summary',\n persistence: 'readonly',\n properties: [\n createReadonlyInspectorProperty('assetMesh.parent', 'Parent GameObject', gameObject.name ?? gameObject.id, 0),\n createReadonlyInspectorProperty('assetMesh.slotId', 'Slot ID', target.slotId ?? '', 1),\n createReadonlyInspectorProperty('assetMesh.ownerNodePath', 'Owner Node Path', target.ownerNodePath, 2),\n ],\n },\n {\n id: 'artistMaterialSlot',\n title: text.slotTitle,\n order: 46,\n placement: 'body',\n summary: createArtistMaterialBindingSummary(binding, materialAsset, text),\n persistence: 'document',\n collapsedByDefault: false,\n properties,\n },\n ];\n}\n\nfunction createMaterialLanguageInspectorProperty(\n nodeKind: EditorSceneNodeKind,\n text: ArtistMaterialInspectorText,\n language: ArtistMaterialInspectorLanguage,\n order: number,\n services: MaterialInspectorServices,\n): InspectorProperty<EditorSceneMaterialDocument> {\n return services.createDocumentInspectorProperty(null, nodeKind, {\n path: 'metadata.artistMaterialInspectorLanguage',\n label: text.language,\n valueType: 'enum',\n control: 'enum',\n value: language,\n commitMode: 'immediate',\n order,\n options: MATERIAL_LANGUAGE_OPTIONS,\n controlOptions: { variant: 'segmented' },\n tooltip: text.tooltips.language,\n });\n}\n\nfunction appendReadonlyInspectorProperty(\n properties: InspectorProperty<EditorSceneMaterialDocument>[],\n input: Parameters<typeof createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>>[0],\n): void {\n const property = createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>(input);\n if (property) properties.push(property);\n}\n\nfunction createReadonlyInspectorProperty(\n path: string,\n label: string,\n value: unknown,\n order: number,\n tooltip?: string,\n): InspectorProperty<EditorSceneMaterialDocument> {\n return createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>({\n path,\n label,\n value,\n order,\n persistence: 'readonly',\n source: 'Document',\n tooltip,\n })!;\n}\n"]}
1
+ {"version":3,"file":"scene-inspector.js","sourceRoot":"","sources":["../../src/material-binding/scene-inspector.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0CAA0C,GA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C,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ;KAChC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,+BAA+B,CACtC,UAA4D,EAC5D,KAAoG;IAEpG,MAAM,QAAQ,GAAG,0CAA0C,CAA8B,KAAK,CAAC,CAAC;IAChG,IAAI,QAAQ;QAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,+BAA+B,CACtC,IAAY,EACZ,KAAa,EACb,KAAc,EACd,KAAa,EACb,OAAgB;IAEhB,OAAO,0CAA0C,CAA8B;QAC7E,IAAI;QACJ,KAAK;QACL,KAAK;QACL,KAAK;QACL,WAAW,EAAE,UAAU;QACvB,MAAM,EAAE,UAAU;QAClB,OAAO;KACR,CAAE,CAAC;AACN,CAAC","sourcesContent":["import type {\n InspectorProperty,\n InspectorSection,\n} from '@fps-games/editor-core';\nimport {\n createEditorSceneReadonlyInspectorProperty,\n} from '../inspector/index';\nimport {\n readEditorSceneNodeKind,\n type EditorSceneNodeKind,\n} from '../document/index';\nimport {\n default as materialBindingInternals,\n collectEditorSceneChildMaterialSlots,\n findEditorSceneMaterialAsset,\n getEditorSceneSlotMaterialBinding,\n getEditorSceneSlotMaterialBindingPath,\n getEditorSceneSlotSelectionKey,\n hasDetectedModelMaterialSlots,\n parseEditorSceneAssetMeshSelectionId,\n} from './binding';\nimport {\n parseEditorSceneMaterialAssetFieldPath,\n} from './paths';\nimport {\n default as materialAssetFieldInternals,\n createArtistMaterialAssetInspectorProperties,\n createMaterialAssetSelectorInspectorProperty,\n createMaterialAssetPickerControlOptions,\n createTexturePickerControlOptions,\n findEditorSceneInspectorTextureAssetFromContext as findEditorSceneInspectorTextureAsset,\n readArtistMaterialTexturePickerValue,\n} from './asset-fields';\nimport {\n default as slotInspectorInternals,\n createArtistMaterialBindingSummary,\n createChildMaterialBindingSummary,\n formatEditorSceneMaterialSlotLabel,\n hasReadonlyEditorSceneMaterialSlotReimportIssues,\n} from './slot-inspector';\nimport {\n MATERIAL_LANGUAGE_OPTIONS,\n getArtistMaterialInspectorText,\n readArtistMaterialInspectorLanguage,\n type ArtistMaterialInspectorLanguage,\n type ArtistMaterialInspectorText,\n} from './text';\nimport {\n resolveEditorSceneMaterialSlotReimportDiff,\n} from './reimport';\nimport type {\n EditorSceneMaterialDocument,\n EditorSceneMaterialGameObject,\n EditorSceneMaterialInspectorContext,\n EditorSceneMaterialSlotDescriptor,\n} from './types';\n\nexport {\n createArtistMaterialAssetInspectorProperties,\n createMaterialAssetPickerControlOptions,\n createMaterialAssetSelectorInspectorProperty,\n createTexturePickerControlOptions,\n formatEditorSceneMaterialSlotLabel,\n getArtistMaterialInspectorText,\n readArtistMaterialInspectorLanguage,\n readArtistMaterialTexturePickerValue,\n type ArtistMaterialInspectorLanguage,\n type ArtistMaterialInspectorText,\n};\n\nexport function resolveEditorSceneAssetMeshSelectionTarget(\n document: EditorSceneMaterialDocument,\n id: string,\n): EditorSceneAssetMeshSelectionTarget | null {\n const parsed = parseEditorSceneAssetMeshSelectionId(id);\n if (!parsed) return null;\n const gameObject = document.scene.gameObjects.find(candidate => candidate.id === parsed.rootGameObjectId) ?? null;\n if (!gameObject) return null;\n const slots = collectEditorSceneChildMaterialSlots(document, gameObject);\n const slot = slots.find(candidate => getEditorSceneSlotSelectionKey(candidate) === parsed.slotSelectionKey) ?? null;\n if (!slot) return null;\n const slotIndex = Math.max(0, slots.indexOf(slot));\n const text = getArtistMaterialInspectorText(readArtistMaterialInspectorLanguage(gameObject));\n const label = slot.label || formatEditorSceneMaterialSlotLabel(slot.ownerNodePath, slotIndex, text);\n return {\n id,\n rootGameObjectId: parsed.rootGameObjectId,\n slotSelectionKey: parsed.slotSelectionKey,\n slotId: slot.slotId,\n ownerNodePath: slot.ownerNodePath,\n materialBindingPath: getEditorSceneSlotMaterialBindingPath(slot),\n label,\n gameObject,\n slot,\n };\n}\n\nexport function isEditorSceneAssetMeshWritablePath(path: string): boolean {\n return path.startsWith('overrides.materialSlotBindings.')\n || parseEditorSceneMaterialAssetFieldPath(path) != null;\n}\n\nexport interface MaterialInspectorServices {\n createDocumentInspectorProperty: MaterialDocumentInspectorPropertyFactory;\n}\n\ntype MaterialDocumentInspectorPropertyFactory = (\n document: EditorSceneMaterialDocument | null,\n nodeKind: EditorSceneNodeKind,\n property: Omit<InspectorProperty<EditorSceneMaterialDocument>, 'readOnly' | 'persistence' | 'validate'>,\n) => InspectorProperty<EditorSceneMaterialDocument>;\n\nexport type EditorSceneAssetMeshSelectionTarget = {\n id: string;\n rootGameObjectId: string;\n slotSelectionKey: string;\n slotId?: string;\n ownerNodePath: string;\n materialBindingPath: string;\n label: string;\n gameObject: EditorSceneMaterialGameObject;\n slot: EditorSceneMaterialSlotDescriptor;\n};\n\nexport function createArtistMaterialInspectorSections(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n nodeKind: EditorSceneNodeKind,\n context: EditorSceneMaterialInspectorContext = {},\n services: MaterialInspectorServices,\n): InspectorSection<EditorSceneMaterialDocument>[] {\n return createArtistMaterialInspectorSectionsWithUsage(\n document,\n gameObject,\n nodeKind,\n context,\n services,\n materialBindingInternals.createUsageIndex(document),\n );\n}\n\ntype MaterialUsageIndex = ReturnType<typeof materialBindingInternals.createUsageIndex>;\n\nfunction createArtistMaterialInspectorSectionsWithUsage(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n nodeKind: EditorSceneNodeKind,\n context: EditorSceneMaterialInspectorContext,\n services: MaterialInspectorServices,\n usageIndex: MaterialUsageIndex,\n): InspectorSection<EditorSceneMaterialDocument>[] {\n const sections: InspectorSection<EditorSceneMaterialDocument>[] = [];\n const language = readArtistMaterialInspectorLanguage(gameObject);\n const text = getArtistMaterialInspectorText(language);\n const rootBinding = gameObject.overrides?.materialBinding;\n const rootAsset = findEditorSceneMaterialAsset(document, rootBinding?.materialAssetId ?? '');\n const hasDetectedSlots = hasDetectedModelMaterialSlots(document, gameObject);\n const hasReadonlyReimportConflicts = nodeKind !== 'primitive'\n && hasReadonlyEditorSceneMaterialSlotReimportIssues(\n resolveEditorSceneMaterialSlotReimportDiff(document, gameObject),\n );\n if (!hasDetectedSlots) {\n sections.push({\n id: 'artistMaterial',\n title: text.title,\n order: 46,\n placement: 'body',\n summary: createArtistMaterialBindingSummary(rootBinding, rootAsset, text),\n persistence: 'document',\n collapsedByDefault: false,\n properties: [\n createMaterialLanguageInspectorProperty(nodeKind, text, language, 0, services),\n materialAssetFieldInternals.createSelectorInspectorPropertyWithUsage(document, nodeKind, {\n path: 'overrides.materialBinding.materialAssetId',\n label: text.materialCard,\n value: rootBinding?.materialAssetId ?? '',\n order: 1,\n text,\n currentAsset: rootAsset,\n }, usageIndex),\n ...createArtistMaterialAssetInspectorProperties(document, rootAsset, text, 10, context),\n ],\n });\n }\n\n const slotProperties = nodeKind === 'primitive'\n ? []\n : hasDetectedSlots || hasReadonlyReimportConflicts\n ? slotInspectorInternals.createReadonlyMaterialSlotListInspectorPropertiesWithUsage(\n document,\n gameObject,\n text,\n usageIndex,\n )\n : slotInspectorInternals.createChildMaterialBindingInspectorPropertiesWithUsage(\n document,\n gameObject,\n nodeKind,\n context,\n usageIndex,\n );\n if (slotProperties.length > 0) {\n sections.push({\n id: 'artistMaterialSlots',\n title: text.slotTitle,\n order: 48,\n placement: 'body',\n summary: createChildMaterialBindingSummary(document, gameObject, text),\n persistence: hasDetectedSlots || hasReadonlyReimportConflicts ? 'readonly' : 'document',\n collapsedByDefault: !(hasDetectedSlots || hasReadonlyReimportConflicts),\n properties: slotProperties,\n });\n }\n return sections;\n}\n\nexport function createEditorSceneAssetMeshInspectorSections(\n document: EditorSceneMaterialDocument,\n target: EditorSceneAssetMeshSelectionTarget,\n context: EditorSceneMaterialInspectorContext = {},\n): InspectorSection<EditorSceneMaterialDocument>[] {\n return createEditorSceneAssetMeshInspectorSectionsWithUsage(\n document,\n target,\n context,\n materialBindingInternals.createUsageIndex(document),\n );\n}\n\nfunction createEditorSceneAssetMeshInspectorSectionsWithUsage(\n document: EditorSceneMaterialDocument,\n target: EditorSceneAssetMeshSelectionTarget,\n context: EditorSceneMaterialInspectorContext,\n usageIndex: MaterialUsageIndex,\n): InspectorSection<EditorSceneMaterialDocument>[] {\n const gameObject = target.gameObject;\n const nodeKind = readEditorSceneNodeKind(gameObject);\n const text = getArtistMaterialInspectorText(readArtistMaterialInspectorLanguage(gameObject));\n const binding = getEditorSceneSlotMaterialBinding(gameObject, target.slot);\n const materialAsset = findEditorSceneMaterialAsset(document, binding?.materialAssetId ?? '');\n const properties: InspectorProperty<EditorSceneMaterialDocument>[] = [\n materialAssetFieldInternals.createSelectorInspectorPropertyWithUsage(document, nodeKind, {\n path: target.materialBindingPath,\n label: target.label,\n value: binding?.materialAssetId ?? '',\n order: 0,\n text,\n currentAsset: materialAsset,\n }, usageIndex),\n ...createArtistMaterialAssetInspectorProperties(document, materialAsset, text, 10, context),\n ];\n return [\n {\n id: 'assetMesh',\n title: 'Asset Mesh',\n order: 10,\n placement: 'summary',\n persistence: 'readonly',\n properties: [\n createReadonlyInspectorProperty('assetMesh.parent', 'Parent GameObject', gameObject.name ?? gameObject.id, 0),\n createReadonlyInspectorProperty('assetMesh.slotId', 'Slot ID', target.slotId ?? '', 1),\n createReadonlyInspectorProperty('assetMesh.ownerNodePath', 'Owner Node Path', target.ownerNodePath, 2),\n ],\n },\n {\n id: 'artistMaterialSlot',\n title: text.slotTitle,\n order: 46,\n placement: 'body',\n summary: createArtistMaterialBindingSummary(binding, materialAsset, text),\n persistence: 'document',\n collapsedByDefault: false,\n properties,\n },\n ];\n}\n\nfunction createArtistMaterialInspectorSectionsWithCachedUsage(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n nodeKind: EditorSceneNodeKind,\n context: EditorSceneMaterialInspectorContext = {},\n services: MaterialInspectorServices,\n): InspectorSection<EditorSceneMaterialDocument>[] {\n return createArtistMaterialInspectorSectionsWithUsage(\n document,\n gameObject,\n nodeKind,\n context,\n services,\n materialBindingInternals.getCachedUsageIndex(document),\n );\n}\n\nfunction createEditorSceneAssetMeshInspectorSectionsWithCachedUsage(\n document: EditorSceneMaterialDocument,\n target: EditorSceneAssetMeshSelectionTarget,\n context: EditorSceneMaterialInspectorContext = {},\n): InspectorSection<EditorSceneMaterialDocument>[] {\n return createEditorSceneAssetMeshInspectorSectionsWithUsage(\n document,\n target,\n context,\n materialBindingInternals.getCachedUsageIndex(document),\n );\n}\n\nconst sceneInspectorInternals = {\n createArtistMaterialInspectorSectionsWithCachedUsage,\n createEditorSceneAssetMeshInspectorSectionsWithCachedUsage,\n};\n\nexport default sceneInspectorInternals;\n\nfunction createMaterialLanguageInspectorProperty(\n nodeKind: EditorSceneNodeKind,\n text: ArtistMaterialInspectorText,\n language: ArtistMaterialInspectorLanguage,\n order: number,\n services: MaterialInspectorServices,\n): InspectorProperty<EditorSceneMaterialDocument> {\n return services.createDocumentInspectorProperty(null, nodeKind, {\n path: 'metadata.artistMaterialInspectorLanguage',\n label: text.language,\n valueType: 'enum',\n control: 'enum',\n value: language,\n commitMode: 'immediate',\n order,\n options: MATERIAL_LANGUAGE_OPTIONS,\n controlOptions: { variant: 'segmented' },\n tooltip: text.tooltips.language,\n });\n}\n\nfunction appendReadonlyInspectorProperty(\n properties: InspectorProperty<EditorSceneMaterialDocument>[],\n input: Parameters<typeof createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>>[0],\n): void {\n const property = createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>(input);\n if (property) properties.push(property);\n}\n\nfunction createReadonlyInspectorProperty(\n path: string,\n label: string,\n value: unknown,\n order: number,\n tooltip?: string,\n): InspectorProperty<EditorSceneMaterialDocument> {\n return createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>({\n path,\n label,\n value,\n order,\n persistence: 'readonly',\n source: 'Document',\n tooltip,\n })!;\n}\n"]}
@@ -1,12 +1,21 @@
1
1
  import type { InspectorProperty } from '@fps-games/editor-core';
2
2
  import type { EditorSceneNodeKind } from '../document/index';
3
+ import { default as materialBindingInternals } from './binding';
3
4
  import { resolveEditorSceneMaterialSlotReimportDiff } from './reimport';
4
5
  import { type ArtistMaterialInspectorText } from './text';
5
6
  import type { EditorSceneMaterialAsset, EditorSceneMaterialBinding, EditorSceneMaterialDocument, EditorSceneMaterialGameObject, EditorSceneMaterialInspectorContext } from './types';
6
7
  export declare function createArtistMaterialBindingSummary(binding: EditorSceneMaterialBinding | undefined, materialAsset: EditorSceneMaterialAsset | null, text: ArtistMaterialInspectorText): string;
7
8
  export declare function createChildMaterialBindingSummary(document: EditorSceneMaterialDocument, gameObject: EditorSceneMaterialGameObject, text: ArtistMaterialInspectorText): string;
8
9
  export declare function createChildMaterialBindingInspectorProperties(document: EditorSceneMaterialDocument, gameObject: EditorSceneMaterialGameObject, nodeKind: EditorSceneNodeKind, context?: EditorSceneMaterialInspectorContext): InspectorProperty<EditorSceneMaterialDocument>[];
10
+ type MaterialUsageIndex = ReturnType<typeof materialBindingInternals.createUsageIndex>;
11
+ declare function createChildMaterialBindingInspectorPropertiesWithUsage(document: EditorSceneMaterialDocument, gameObject: EditorSceneMaterialGameObject, nodeKind: EditorSceneNodeKind, context: EditorSceneMaterialInspectorContext, usageIndex: MaterialUsageIndex): InspectorProperty<EditorSceneMaterialDocument>[];
9
12
  export declare function createReadonlyMaterialSlotListInspectorProperties(document: EditorSceneMaterialDocument, gameObject: EditorSceneMaterialGameObject, text: ArtistMaterialInspectorText): InspectorProperty<EditorSceneMaterialDocument>[];
13
+ declare function createReadonlyMaterialSlotListInspectorPropertiesWithUsage(document: EditorSceneMaterialDocument, gameObject: EditorSceneMaterialGameObject, text: ArtistMaterialInspectorText, usageIndex: MaterialUsageIndex): InspectorProperty<EditorSceneMaterialDocument>[];
10
14
  export declare function hasReadonlyEditorSceneMaterialSlotReimportIssues(diff: ReturnType<typeof resolveEditorSceneMaterialSlotReimportDiff>): boolean;
15
+ declare const slotInspectorInternals: {
16
+ createChildMaterialBindingInspectorPropertiesWithUsage: typeof createChildMaterialBindingInspectorPropertiesWithUsage;
17
+ createReadonlyMaterialSlotListInspectorPropertiesWithUsage: typeof createReadonlyMaterialSlotListInspectorPropertiesWithUsage;
18
+ };
19
+ export default slotInspectorInternals;
11
20
  export declare function formatEditorSceneMaterialSlotLabel(ownerNodePath: string, slotIndex: number, text: ArtistMaterialInspectorText): string;
12
21
  //# sourceMappingURL=slot-inspector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slot-inspector.d.ts","sourceRoot":"","sources":["../../src/material-binding/slot-inspector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAa3B,OAAO,EACL,0CAA0C,EAC3C,MAAM,YAAY,CAAC;AAMpB,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,mCAAmC,EAEpC,MAAM,SAAS,CAAC;AAEjB,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,0BAA0B,GAAG,SAAS,EAC/C,aAAa,EAAE,wBAAwB,GAAG,IAAI,EAC9C,IAAI,EAAE,2BAA2B,GAChC,MAAM,CAMR;AAID,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,2BAA2B,EACrC,UAAU,EAAE,6BAA6B,EACzC,IAAI,EAAE,2BAA2B,GAChC,MAAM,CAGR;AAID,wBAAgB,6CAA6C,CAC3D,QAAQ,EAAE,2BAA2B,EACrC,UAAU,EAAE,6BAA6B,EACzC,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,GAAE,mCAAwC,GAChD,iBAAiB,CAAC,2BAA2B,CAAC,EAAE,CAqBlD;AAID,wBAAgB,iDAAiD,CAC/D,QAAQ,EA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AAC,2BAA2B,CAAC,EAAE,CAQlD;AAED,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;AAEvF,iBAAS,sDAAsD,CAC7D,QAAQ,EAAE,2BAA2B,EACrC,UAAU,EAAE,6BAA6B,EACzC,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,mCAAmC,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,iBAAiB,CAAC,2BAA2B,CAAC,EAAE,CAqBlD;AAID,wBAAgB,iDAAiD,CAC/D,QAAQ,EAAE,2BAA2B,EACrC,UAAU,EAAE,6BAA6B,EACzC,IAAI,EAAE,2BAA2B,GAChC,iBAAiB,CAAC,2BAA2B,CAAC,EAAE,CAOlD;AAED,iBAAS,0DAA0D,CACjE,QAAQ,EAAE,2BAA2B,EACrC,UAAU,EAAE,6BAA6B,EACzC,IAAI,EAAE,2BAA2B,EACjC,UAAU,EAAE,kBAAkB,GAC7B,iBAAiB,CAAC,2BAA2B,CAAC,EAAE,CA4DlD;AAID,wBAAgB,gDAAgD,CAC9D,IAAI,EAAE,UAAU,CAAC,OAAO,0CAA0C,CAAC,GAClE,OAAO,CAET;AAuED,QAAA,MAAM,sBAAsB;;;CAG3B,CAAC;AAEF,eAAe,sBAAsB,CAAC;AAQtC,wBAAgB,kCAAkC,CAChD,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,2BAA2B,GAChC,MAAM,CAGR"}
@@ -1,8 +1,8 @@
1
1
  import { createEditorSceneReadonlyInspectorProperty, } from '../inspector/index.js';
2
- import { createEditorSceneMaterialBindingSummary, findEditorSceneMaterialAsset, collectEditorSceneChildMaterialSlots as collectEditorSceneMaterialSlotDescriptors, createEditorSceneAssetMeshSelectionId, getEditorSceneSlotMaterialBinding, getEditorSceneSlotMaterialBindingPath, getEditorSceneSlotSelectionKey, } from './binding.js';
2
+ import { default as materialBindingInternals, createEditorSceneMaterialBindingSummary, findEditorSceneMaterialAsset, collectEditorSceneChildMaterialSlots as collectEditorSceneMaterialSlotDescriptors, createEditorSceneAssetMeshSelectionId, getEditorSceneSlotMaterialBinding, getEditorSceneSlotMaterialBindingPath, getEditorSceneSlotSelectionKey, } from './binding.js';
3
3
  import { getEditorSceneSlotSourceMaterialName, } from './default-assets.js';
4
4
  import { resolveEditorSceneMaterialSlotReimportDiff, } from './reimport.js';
5
- import { createArtistMaterialAssetInspectorProperties, createMaterialAssetPickerControlOptions, createMaterialAssetSelectorInspectorProperty, } from './asset-fields.js';
5
+ import { default as materialAssetFieldInternals, createArtistMaterialAssetInspectorProperties, } from './asset-fields.js';
6
6
  import { getArtistMaterialInspectorText, readArtistMaterialInspectorLanguage, } from './text.js';
7
7
  export function createArtistMaterialBindingSummary(binding, materialAsset, text) {
8
8
  const summary = createEditorSceneMaterialBindingSummary(binding, materialAsset);
@@ -19,6 +19,9 @@ export function createChildMaterialBindingSummary(document, gameObject, text) {
19
19
  return count > 0 ? text.summarySlotCount(count) : text.summaryAddSlot;
20
20
  }
21
21
  export function createChildMaterialBindingInspectorProperties(document, gameObject, nodeKind, context = {}) {
22
+ return createChildMaterialBindingInspectorPropertiesWithUsage(document, gameObject, nodeKind, context, materialBindingInternals.createUsageIndex(document));
23
+ }
24
+ function createChildMaterialBindingInspectorPropertiesWithUsage(document, gameObject, nodeKind, context, usageIndex) {
22
25
  const text = getArtistMaterialInspectorText(readArtistMaterialInspectorLanguage(gameObject));
23
26
  const properties = [];
24
27
  const materialSlots = collectEditorSceneMaterialSlotDescriptors(document, gameObject);
@@ -27,19 +30,22 @@ export function createChildMaterialBindingInspectorProperties(document, gameObje
27
30
  const binding = getEditorSceneSlotMaterialBinding(gameObject, slot);
28
31
  const materialAsset = findEditorSceneMaterialAsset(document, binding?.materialAssetId ?? '');
29
32
  const baseOrder = (slotIndex + 1) * 100;
30
- properties.push(createMaterialAssetSelectorInspectorProperty(document, nodeKind, {
33
+ properties.push(materialAssetFieldInternals.createSelectorInspectorPropertyWithUsage(document, nodeKind, {
31
34
  path: getEditorSceneSlotMaterialBindingPath(slot),
32
35
  label: slot.label || formatEditorSceneMaterialSlotLabel(ownerNodePath, slotIndex, text),
33
36
  value: binding?.materialAssetId ?? '',
34
37
  order: baseOrder,
35
38
  text,
36
39
  currentAsset: materialAsset,
37
- }));
40
+ }, usageIndex));
38
41
  properties.push(...createArtistMaterialAssetInspectorProperties(document, materialAsset, text, baseOrder + 10, context));
39
42
  });
40
43
  return properties;
41
44
  }
42
45
  export function createReadonlyMaterialSlotListInspectorProperties(document, gameObject, text) {
46
+ return createReadonlyMaterialSlotListInspectorPropertiesWithUsage(document, gameObject, text, materialBindingInternals.createUsageIndex(document));
47
+ }
48
+ function createReadonlyMaterialSlotListInspectorPropertiesWithUsage(document, gameObject, text, usageIndex) {
43
49
  const slots = collectEditorSceneMaterialSlotDescriptors(document, gameObject);
44
50
  if (slots.length === 0)
45
51
  return [];
@@ -56,7 +62,7 @@ export function createReadonlyMaterialSlotListInspectorProperties(document, game
56
62
  customControl: 'material-slot-list',
57
63
  value: {
58
64
  count: slots.length,
59
- slots: slots.map((slot, slotIndex) => createReadonlyMaterialSlotListItem(document, gameObject, slot, slotIndex, text)),
65
+ slots: slots.map((slot, slotIndex) => createReadonlyMaterialSlotListItem(document, gameObject, slot, slotIndex, text, usageIndex)),
60
66
  },
61
67
  readOnly: true,
62
68
  persistence: 'readonly',
@@ -73,7 +79,7 @@ export function createReadonlyMaterialSlotListInspectorProperties(document, game
73
79
  bounds: 'Bounds',
74
80
  bindingPath: text.slotBindingPath,
75
81
  },
76
- slots: slots.map((slot, slotIndex) => createReadonlyMaterialSlotListItem(document, gameObject, slot, slotIndex, text)),
82
+ slots: slots.map((slot, slotIndex) => createReadonlyMaterialSlotListItem(document, gameObject, slot, slotIndex, text, usageIndex)),
77
83
  },
78
84
  tags: ['ArtistMaterial', 'MaterialSlot', 'Readonly'],
79
85
  tooltip: text.tooltips.slotList,
@@ -102,10 +108,10 @@ function formatEditorSceneMaterialSlotReimportIssues(issues, text) {
102
108
  ...lines,
103
109
  ].join('\n');
104
110
  }
105
- function createReadonlyMaterialSlotListItem(document, gameObject, slot, slotIndex, text) {
111
+ function createReadonlyMaterialSlotListItem(document, gameObject, slot, slotIndex, text, usageIndex) {
106
112
  const binding = getEditorSceneSlotMaterialBinding(gameObject, slot);
107
113
  const materialAsset = findEditorSceneMaterialAsset(document, binding?.materialAssetId ?? '');
108
- const materialOptions = createMaterialAssetPickerControlOptions(document, materialAsset, text, binding?.materialAssetId ?? '');
114
+ const materialOptions = materialAssetFieldInternals.createPickerControlOptionsWithUsage(document, materialAsset, text, binding?.materialAssetId ?? '', usageIndex);
109
115
  const sourceMaterialIndex = slot.sourceMaterialIndex ?? slot.sourceMaterialIndices?.[0];
110
116
  const sourceMaterialName = sourceMaterialIndex == null ? null : getEditorSceneSlotSourceMaterialName(slot, sourceMaterialIndex);
111
117
  return {
@@ -131,6 +137,11 @@ function createReadonlyMaterialSlotListItem(document, gameObject, slot, slotInde
131
137
  bindingPath: getEditorSceneSlotMaterialBindingPath(slot),
132
138
  };
133
139
  }
140
+ const slotInspectorInternals = {
141
+ createChildMaterialBindingInspectorPropertiesWithUsage,
142
+ createReadonlyMaterialSlotListInspectorPropertiesWithUsage,
143
+ };
144
+ export default slotInspectorInternals;
134
145
  export function formatEditorSceneMaterialSlotLabel(ownerNodePath, slotIndex, text) {
135
146
  const suffix = ownerNodePath.split('/').filter(Boolean).pop() ?? ownerNodePath;
136
147
  return `${text.slotMaterialAsset} ${slotIndex + 1}: ${suffix}`;
@@ -1 +1 @@
1
- {"version":3,"file":"slot-inspector.js","sourceRoot":"","sources":["../../src/material-binding/slot-inspector.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,0CAA0C,GAC3C,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EACL,uCAAuC,EACvC,4BAA4B,EAC5B,oCAAoC,IAAI,yCAAyC,EACjF,qCAAqC,EACrC,iCAAiC,EACjC,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AW,EAAE,UAAU;QACvB,MAAM,EAAE,UAAU;QAClB,OAAO;KACR,CAAE,CAAC;AACN,CAAC","sourcesContent":["import type {\n InspectorProperty,\n} from '@fps-games/editor-core';\nimport {\n createEditorSceneReadonlyInspectorProperty,\n} from '../inspector/index';\nimport type {\n EditorSceneNodeKind,\n} from '../document/index';\nimport {\n createEditorSceneMaterialBindingSummary,\n findEditorSceneMaterialAsset,\n collectEditorSceneChildMaterialSlots as collectEditorSceneMaterialSlotDescriptors,\n createEditorSceneAssetMeshSelectionId,\n getEditorSceneSlotMaterialBinding,\n getEditorSceneSlotMaterialBindingPath,\n getEditorSceneSlotSelectionKey,\n} from './binding';\nimport {\n getEditorSceneSlotSourceMaterialName,\n} from './default-assets';\nimport {\n resolveEditorSceneMaterialSlotReimportDiff,\n} from './reimport';\nimport {\n createArtistMaterialAssetInspectorProperties,\n createMaterialAssetPickerControlOptions,\n createMaterialAssetSelectorInspectorProperty,\n} from './asset-fields';\nimport {\n getArtistMaterialInspectorText,\n readArtistMaterialInspectorLanguage,\n type ArtistMaterialInspectorText,\n} from './text';\nimport type {\n EditorSceneMaterialAsset,\n EditorSceneMaterialBinding,\n EditorSceneMaterialDocument,\n EditorSceneMaterialGameObject,\n EditorSceneMaterialInspectorContext,\n EditorSceneMaterialSlotDescriptor,\n} from './types';\n\nexport function createArtistMaterialBindingSummary(\n binding: EditorSceneMaterialBinding | undefined,\n materialAsset: EditorSceneMaterialAsset | null,\n text: ArtistMaterialInspectorText,\n): string {\n const summary = createEditorSceneMaterialBindingSummary(binding, materialAsset);\n if (summary.state === 'asset' && summary.materialAsset) return text.summaryAsset(summary.materialAsset.name ?? summary.materialAsset.id);\n if (summary.state === 'missing-asset') return text.summaryMissingAsset;\n if (summary.state === 'override') return text.summaryCustomOverride;\n return text.summaryInherit;\n}\n\n\n\nexport function createChildMaterialBindingSummary(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n text: ArtistMaterialInspectorText,\n): string {\n const count = collectEditorSceneMaterialSlotDescriptors(document, gameObject).length;\n return count > 0 ? text.summarySlotCount(count) : text.summaryAddSlot;\n}\n\n\n\nexport function createChildMaterialBindingInspectorProperties(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n nodeKind: EditorSceneNodeKind,\n context: EditorSceneMaterialInspectorContext = {},\n): InspectorProperty<EditorSceneMaterialDocument>[] {\n const text = getArtistMaterialInspectorText(readArtistMaterialInspectorLanguage(gameObject));\n const properties: InspectorProperty<EditorSceneMaterialDocument>[] = [\n ];\n const materialSlots = collectEditorSceneMaterialSlotDescriptors(document, gameObject);\n materialSlots.forEach((slot, slotIndex) => {\n const ownerNodePath = slot.ownerNodePath;\n const binding = getEditorSceneSlotMaterialBinding(gameObject, slot);\n const materialAsset = findEditorSceneMaterialAsset(document, binding?.materialAssetId ?? '');\n const baseOrder = (slotIndex + 1) * 100;\n properties.push(createMaterialAssetSelectorInspectorProperty(document, nodeKind, {\n path: getEditorSceneSlotMaterialBindingPath(slot),\n label: slot.label || formatEditorSceneMaterialSlotLabel(ownerNodePath, slotIndex, text),\n value: binding?.materialAssetId ?? '',\n order: baseOrder,\n text,\n currentAsset: materialAsset,\n }));\n properties.push(...createArtistMaterialAssetInspectorProperties(document, materialAsset, text, baseOrder + 10, context));\n });\n return properties;\n}\n\n\n\nexport function createReadonlyMaterialSlotListInspectorProperties(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n text: ArtistMaterialInspectorText,\n): InspectorProperty<EditorSceneMaterialDocument>[] {\n const slots = collectEditorSceneMaterialSlotDescriptors(document, gameObject);\n if (slots.length === 0) return [];\n const properties: InspectorProperty<EditorSceneMaterialDocument>[] = [];\n const reimportDiff = resolveEditorSceneMaterialSlotReimportDiff(document, gameObject);\n if (reimportDiff.issues.length > 0) {\n properties.push(createReadonlyInspectorProperty(\n 'asset.materialSlots.reimportConflicts',\n text.reimportConflicts,\n formatEditorSceneMaterialSlotReimportIssues(reimportDiff.issues, text),\n -1,\n text.tooltips.reimportConflicts,\n ));\n }\n properties.push({\n path: 'asset.materialSlots',\n label: text.slotList,\n valueType: 'object',\n control: 'custom',\n customControl: 'material-slot-list',\n value: {\n count: slots.length,\n slots: slots.map((slot, slotIndex) => createReadonlyMaterialSlotListItem(document, gameObject, slot, slotIndex, text)),\n },\n readOnly: true,\n persistence: 'readonly',\n commitMode: 'immediate',\n order: 0,\n controlOptions: {\n labels: {\n material: text.slotMaterialAsset,\n slotId: text.slotId,\n ownerNodePath: text.slotOwnerPath,\n sourceMaterial: text.slotSourceMaterial,\n primitive: 'Primitive',\n triangles: 'Triangles',\n bounds: 'Bounds',\n bindingPath: text.slotBindingPath,\n },\n slots: slots.map((slot, slotIndex) => createReadonlyMaterialSlotListItem(document, gameObject, slot, slotIndex, text)),\n },\n tags: ['ArtistMaterial', 'MaterialSlot', 'Readonly'],\n tooltip: text.tooltips.slotList,\n document,\n });\n return properties;\n}\n\n\n\nexport function hasReadonlyEditorSceneMaterialSlotReimportIssues(\n diff: ReturnType<typeof resolveEditorSceneMaterialSlotReimportDiff>,\n): boolean {\n return diff.issues.length > 0;\n}\n\n\n\nfunction formatEditorSceneMaterialSlotReimportIssues(\n issues: ReturnType<typeof resolveEditorSceneMaterialSlotReimportDiff>['issues'],\n text: ArtistMaterialInspectorText,\n): string {\n const lines = issues.map((issue) => {\n const target = issue.label || issue.ownerNodePath || issue.slotId || issue.previousSlotId || issue.bindingPath || 'slot';\n if (issue.reason === 'source-material-changed') {\n const from = issue.previousSourceMaterialIndex == null ? '?' : `#${issue.previousSourceMaterialIndex}`;\n const to = issue.sourceMaterialIndex == null ? '?' : `#${issue.sourceMaterialIndex}`;\n return `${target}: source material ${from} -> ${to}; ${issue.materialAssetId ?? text.inheritNone}`;\n }\n if (issue.reason === 'slot-removed') {\n return `${target}: removed slot; ${issue.materialAssetId ?? text.inheritNone}`;\n }\n return `${target}: ${issue.status}`;\n });\n return [\n text.formatReimportConflictSummary(issues.length),\n ...lines,\n ].join('\\n');\n}\n\n\n\nfunction createReadonlyMaterialSlotListItem(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n slot: EditorSceneMaterialSlotDescriptor,\n slotIndex: number,\n text: ArtistMaterialInspectorText,\n): Record<string, unknown> {\n const binding = getEditorSceneSlotMaterialBinding(gameObject, slot);\n const materialAsset = findEditorSceneMaterialAsset(document, binding?.materialAssetId ?? '');\n const materialOptions = createMaterialAssetPickerControlOptions(document, materialAsset, text, binding?.materialAssetId ?? '');\n const sourceMaterialIndex = slot.sourceMaterialIndex ?? slot.sourceMaterialIndices?.[0];\n const sourceMaterialName = sourceMaterialIndex == null ? null : getEditorSceneSlotSourceMaterialName(slot, sourceMaterialIndex);\n return {\n key: getEditorSceneSlotSelectionKey(slot),\n label: slot.label || formatEditorSceneMaterialSlotLabel(slot.ownerNodePath, slotIndex, text),\n selectionTargetId: createEditorSceneAssetMeshSelectionId(gameObject.id, getEditorSceneSlotSelectionKey(slot)),\n ...(slot.slotId ? { slotId: slot.slotId } : {}),\n ownerNodePath: slot.ownerNodePath,\n ...(typeof slot.nodeIndex === 'number' ? { nodeIndex: slot.nodeIndex } : {}),\n ...(slot.nodeIndexPath?.length ? { nodeIndexPath: slot.nodeIndexPath } : {}),\n ...(typeof slot.meshIndex === 'number' ? { meshIndex: slot.meshIndex } : {}),\n ...(typeof slot.primitiveIndex === 'number' ? { primitiveIndex: slot.primitiveIndex } : {}),\n materialAssetId: binding?.materialAssetId ?? '',\n materialLabel: materialOptions.currentLabel ?? text.inheritNone,\n materialMeta: materialOptions.currentMeta ?? text.summaryInherit,\n ...(materialOptions.currentPreview ? { materialPreview: materialOptions.currentPreview } : {}),\n ...(sourceMaterialIndex == null ? {} : { sourceMaterialIndex }),\n ...(slot.sourceMaterialIndices?.length ? { sourceMaterialIndices: slot.sourceMaterialIndices } : {}),\n ...(sourceMaterialName ? { sourceMaterialName } : {}),\n ...(slot.materialNames?.length ? { materialNames: slot.materialNames } : {}),\n ...(typeof slot.triangleCount === 'number' ? { triangleCount: slot.triangleCount } : {}),\n ...(slot.boundingBox ? { boundingBox: slot.boundingBox } : {}),\n bindingPath: getEditorSceneSlotMaterialBindingPath(slot),\n };\n}\n\n\n\n\n\n\n\nexport function formatEditorSceneMaterialSlotLabel(\n ownerNodePath: string,\n slotIndex: number,\n text: ArtistMaterialInspectorText,\n): string {\n const suffix = ownerNodePath.split('/').filter(Boolean).pop() ?? ownerNodePath;\n return `${text.slotMaterialAsset} ${slotIndex + 1}: ${suffix}`;\n}\n\n\n\n\n\nfunction appendReadonlyInspectorProperty(\n properties: InspectorProperty<EditorSceneMaterialDocument>[],\n input: Parameters<typeof createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>>[0],\n): void {\n const property = createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>(input);\n if (property) properties.push(property);\n}\n\nfunction createReadonlyInspectorProperty(\n path: string,\n label: string,\n value: unknown,\n order: number,\n tooltip?: string,\n): InspectorProperty<EditorSceneMaterialDocument> {\n return createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>({\n path,\n label,\n value,\n order,\n persistence: 'readonly',\n source: 'Document',\n tooltip,\n })!;\n}\n"]}
1
+ {"version":3,"file":"slot-inspector.js","sourceRoot":"","sources":["../../src/material-binding/slot-inspector.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,0CAA0C,GAC3C,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EACL,OAAO,IAAI,wBAAwB,EACnC,uCAAuC,EACvC,4BAA4B,EAC5B,oCAAoC,IAAI,yCAAyC,EACjF,qCAAqC,EACrC,iCAAiC,EACjC,qCAAqC,EACrC,8BAA8B,GAC/B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,oCAAoC,GACrC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,0CAA0C,GAC3C,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,OAAO,IAAI,2BAA2B,EACtC,4CAA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AAG,CAAC,KAAK,MAAM,EAAE,CAAC;AACjE,CAAC;AAMD,SAAS,+BAA+B,CACtC,UAA4D,EAC5D,KAAoG;IAEpG,MAAM,QAAQ,GAAG,0CAA0C,CAA8B,KAAK,CAAC,CAAC;IAChG,IAAI,QAAQ;QAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,+BAA+B,CACtC,IAAY,EACZ,KAAa,EACb,KAAc,EACd,KAAa,EACb,OAAgB;IAEhB,OAAO,0CAA0C,CAA8B;QAC7E,IAAI;QACJ,KAAK;QACL,KAAK;QACL,KAAK;QACL,WAAW,EAAE,UAAU;QACvB,MAAM,EAAE,UAAU;QAClB,OAAO;KACR,CAAE,CAAC;AACN,CAAC","sourcesContent":["import type {\n InspectorProperty,\n} from '@fps-games/editor-core';\nimport {\n createEditorSceneReadonlyInspectorProperty,\n} from '../inspector/index';\nimport type {\n EditorSceneNodeKind,\n} from '../document/index';\nimport {\n default as materialBindingInternals,\n createEditorSceneMaterialBindingSummary,\n findEditorSceneMaterialAsset,\n collectEditorSceneChildMaterialSlots as collectEditorSceneMaterialSlotDescriptors,\n createEditorSceneAssetMeshSelectionId,\n getEditorSceneSlotMaterialBinding,\n getEditorSceneSlotMaterialBindingPath,\n getEditorSceneSlotSelectionKey,\n} from './binding';\nimport {\n getEditorSceneSlotSourceMaterialName,\n} from './default-assets';\nimport {\n resolveEditorSceneMaterialSlotReimportDiff,\n} from './reimport';\nimport {\n default as materialAssetFieldInternals,\n createArtistMaterialAssetInspectorProperties,\n} from './asset-fields';\nimport {\n getArtistMaterialInspectorText,\n readArtistMaterialInspectorLanguage,\n type ArtistMaterialInspectorText,\n} from './text';\nimport type {\n EditorSceneMaterialAsset,\n EditorSceneMaterialBinding,\n EditorSceneMaterialDocument,\n EditorSceneMaterialGameObject,\n EditorSceneMaterialInspectorContext,\n EditorSceneMaterialSlotDescriptor,\n} from './types';\n\nexport function createArtistMaterialBindingSummary(\n binding: EditorSceneMaterialBinding | undefined,\n materialAsset: EditorSceneMaterialAsset | null,\n text: ArtistMaterialInspectorText,\n): string {\n const summary = createEditorSceneMaterialBindingSummary(binding, materialAsset);\n if (summary.state === 'asset' && summary.materialAsset) return text.summaryAsset(summary.materialAsset.name ?? summary.materialAsset.id);\n if (summary.state === 'missing-asset') return text.summaryMissingAsset;\n if (summary.state === 'override') return text.summaryCustomOverride;\n return text.summaryInherit;\n}\n\n\n\nexport function createChildMaterialBindingSummary(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n text: ArtistMaterialInspectorText,\n): string {\n const count = collectEditorSceneMaterialSlotDescriptors(document, gameObject).length;\n return count > 0 ? text.summarySlotCount(count) : text.summaryAddSlot;\n}\n\n\n\nexport function createChildMaterialBindingInspectorProperties(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n nodeKind: EditorSceneNodeKind,\n context: EditorSceneMaterialInspectorContext = {},\n): InspectorProperty<EditorSceneMaterialDocument>[] {\n return createChildMaterialBindingInspectorPropertiesWithUsage(\n document,\n gameObject,\n nodeKind,\n context,\n materialBindingInternals.createUsageIndex(document),\n );\n}\n\ntype MaterialUsageIndex = ReturnType<typeof materialBindingInternals.createUsageIndex>;\n\nfunction createChildMaterialBindingInspectorPropertiesWithUsage(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n nodeKind: EditorSceneNodeKind,\n context: EditorSceneMaterialInspectorContext,\n usageIndex: MaterialUsageIndex,\n): InspectorProperty<EditorSceneMaterialDocument>[] {\n const text = getArtistMaterialInspectorText(readArtistMaterialInspectorLanguage(gameObject));\n const properties: InspectorProperty<EditorSceneMaterialDocument>[] = [\n ];\n const materialSlots = collectEditorSceneMaterialSlotDescriptors(document, gameObject);\n materialSlots.forEach((slot, slotIndex) => {\n const ownerNodePath = slot.ownerNodePath;\n const binding = getEditorSceneSlotMaterialBinding(gameObject, slot);\n const materialAsset = findEditorSceneMaterialAsset(document, binding?.materialAssetId ?? '');\n const baseOrder = (slotIndex + 1) * 100;\n properties.push(materialAssetFieldInternals.createSelectorInspectorPropertyWithUsage(document, nodeKind, {\n path: getEditorSceneSlotMaterialBindingPath(slot),\n label: slot.label || formatEditorSceneMaterialSlotLabel(ownerNodePath, slotIndex, text),\n value: binding?.materialAssetId ?? '',\n order: baseOrder,\n text,\n currentAsset: materialAsset,\n }, usageIndex));\n properties.push(...createArtistMaterialAssetInspectorProperties(document, materialAsset, text, baseOrder + 10, context));\n });\n return properties;\n}\n\n\n\nexport function createReadonlyMaterialSlotListInspectorProperties(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n text: ArtistMaterialInspectorText,\n): InspectorProperty<EditorSceneMaterialDocument>[] {\n return createReadonlyMaterialSlotListInspectorPropertiesWithUsage(\n document,\n gameObject,\n text,\n materialBindingInternals.createUsageIndex(document),\n );\n}\n\nfunction createReadonlyMaterialSlotListInspectorPropertiesWithUsage(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n text: ArtistMaterialInspectorText,\n usageIndex: MaterialUsageIndex,\n): InspectorProperty<EditorSceneMaterialDocument>[] {\n const slots = collectEditorSceneMaterialSlotDescriptors(document, gameObject);\n if (slots.length === 0) return [];\n const properties: InspectorProperty<EditorSceneMaterialDocument>[] = [];\n const reimportDiff = resolveEditorSceneMaterialSlotReimportDiff(document, gameObject);\n if (reimportDiff.issues.length > 0) {\n properties.push(createReadonlyInspectorProperty(\n 'asset.materialSlots.reimportConflicts',\n text.reimportConflicts,\n formatEditorSceneMaterialSlotReimportIssues(reimportDiff.issues, text),\n -1,\n text.tooltips.reimportConflicts,\n ));\n }\n properties.push({\n path: 'asset.materialSlots',\n label: text.slotList,\n valueType: 'object',\n control: 'custom',\n customControl: 'material-slot-list',\n value: {\n count: slots.length,\n slots: slots.map((slot, slotIndex) => createReadonlyMaterialSlotListItem(\n document,\n gameObject,\n slot,\n slotIndex,\n text,\n usageIndex,\n )),\n },\n readOnly: true,\n persistence: 'readonly',\n commitMode: 'immediate',\n order: 0,\n controlOptions: {\n labels: {\n material: text.slotMaterialAsset,\n slotId: text.slotId,\n ownerNodePath: text.slotOwnerPath,\n sourceMaterial: text.slotSourceMaterial,\n primitive: 'Primitive',\n triangles: 'Triangles',\n bounds: 'Bounds',\n bindingPath: text.slotBindingPath,\n },\n slots: slots.map((slot, slotIndex) => createReadonlyMaterialSlotListItem(\n document,\n gameObject,\n slot,\n slotIndex,\n text,\n usageIndex,\n )),\n },\n tags: ['ArtistMaterial', 'MaterialSlot', 'Readonly'],\n tooltip: text.tooltips.slotList,\n document,\n });\n return properties;\n}\n\n\n\nexport function hasReadonlyEditorSceneMaterialSlotReimportIssues(\n diff: ReturnType<typeof resolveEditorSceneMaterialSlotReimportDiff>,\n): boolean {\n return diff.issues.length > 0;\n}\n\n\n\nfunction formatEditorSceneMaterialSlotReimportIssues(\n issues: ReturnType<typeof resolveEditorSceneMaterialSlotReimportDiff>['issues'],\n text: ArtistMaterialInspectorText,\n): string {\n const lines = issues.map((issue) => {\n const target = issue.label || issue.ownerNodePath || issue.slotId || issue.previousSlotId || issue.bindingPath || 'slot';\n if (issue.reason === 'source-material-changed') {\n const from = issue.previousSourceMaterialIndex == null ? '?' : `#${issue.previousSourceMaterialIndex}`;\n const to = issue.sourceMaterialIndex == null ? '?' : `#${issue.sourceMaterialIndex}`;\n return `${target}: source material ${from} -> ${to}; ${issue.materialAssetId ?? text.inheritNone}`;\n }\n if (issue.reason === 'slot-removed') {\n return `${target}: removed slot; ${issue.materialAssetId ?? text.inheritNone}`;\n }\n return `${target}: ${issue.status}`;\n });\n return [\n text.formatReimportConflictSummary(issues.length),\n ...lines,\n ].join('\\n');\n}\n\n\n\nfunction createReadonlyMaterialSlotListItem(\n document: EditorSceneMaterialDocument,\n gameObject: EditorSceneMaterialGameObject,\n slot: EditorSceneMaterialSlotDescriptor,\n slotIndex: number,\n text: ArtistMaterialInspectorText,\n usageIndex: MaterialUsageIndex,\n): Record<string, unknown> {\n const binding = getEditorSceneSlotMaterialBinding(gameObject, slot);\n const materialAsset = findEditorSceneMaterialAsset(document, binding?.materialAssetId ?? '');\n const materialOptions = materialAssetFieldInternals.createPickerControlOptionsWithUsage(\n document,\n materialAsset,\n text,\n binding?.materialAssetId ?? '',\n usageIndex,\n );\n const sourceMaterialIndex = slot.sourceMaterialIndex ?? slot.sourceMaterialIndices?.[0];\n const sourceMaterialName = sourceMaterialIndex == null ? null : getEditorSceneSlotSourceMaterialName(slot, sourceMaterialIndex);\n return {\n key: getEditorSceneSlotSelectionKey(slot),\n label: slot.label || formatEditorSceneMaterialSlotLabel(slot.ownerNodePath, slotIndex, text),\n selectionTargetId: createEditorSceneAssetMeshSelectionId(gameObject.id, getEditorSceneSlotSelectionKey(slot)),\n ...(slot.slotId ? { slotId: slot.slotId } : {}),\n ownerNodePath: slot.ownerNodePath,\n ...(typeof slot.nodeIndex === 'number' ? { nodeIndex: slot.nodeIndex } : {}),\n ...(slot.nodeIndexPath?.length ? { nodeIndexPath: slot.nodeIndexPath } : {}),\n ...(typeof slot.meshIndex === 'number' ? { meshIndex: slot.meshIndex } : {}),\n ...(typeof slot.primitiveIndex === 'number' ? { primitiveIndex: slot.primitiveIndex } : {}),\n materialAssetId: binding?.materialAssetId ?? '',\n materialLabel: materialOptions.currentLabel ?? text.inheritNone,\n materialMeta: materialOptions.currentMeta ?? text.summaryInherit,\n ...(materialOptions.currentPreview ? { materialPreview: materialOptions.currentPreview } : {}),\n ...(sourceMaterialIndex == null ? {} : { sourceMaterialIndex }),\n ...(slot.sourceMaterialIndices?.length ? { sourceMaterialIndices: slot.sourceMaterialIndices } : {}),\n ...(sourceMaterialName ? { sourceMaterialName } : {}),\n ...(slot.materialNames?.length ? { materialNames: slot.materialNames } : {}),\n ...(typeof slot.triangleCount === 'number' ? { triangleCount: slot.triangleCount } : {}),\n ...(slot.boundingBox ? { boundingBox: slot.boundingBox } : {}),\n bindingPath: getEditorSceneSlotMaterialBindingPath(slot),\n };\n}\n\nconst slotInspectorInternals = {\n createChildMaterialBindingInspectorPropertiesWithUsage,\n createReadonlyMaterialSlotListInspectorPropertiesWithUsage,\n};\n\nexport default slotInspectorInternals;\n\n\n\n\n\n\n\nexport function formatEditorSceneMaterialSlotLabel(\n ownerNodePath: string,\n slotIndex: number,\n text: ArtistMaterialInspectorText,\n): string {\n const suffix = ownerNodePath.split('/').filter(Boolean).pop() ?? ownerNodePath;\n return `${text.slotMaterialAsset} ${slotIndex + 1}: ${suffix}`;\n}\n\n\n\n\n\nfunction appendReadonlyInspectorProperty(\n properties: InspectorProperty<EditorSceneMaterialDocument>[],\n input: Parameters<typeof createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>>[0],\n): void {\n const property = createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>(input);\n if (property) properties.push(property);\n}\n\nfunction createReadonlyInspectorProperty(\n path: string,\n label: string,\n value: unknown,\n order: number,\n tooltip?: string,\n): InspectorProperty<EditorSceneMaterialDocument> {\n return createEditorSceneReadonlyInspectorProperty<EditorSceneMaterialDocument>({\n path,\n label,\n value,\n order,\n persistence: 'readonly',\n source: 'Document',\n tooltip,\n })!;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { PlayableEditorBundledPackageRoots, PlayableEditorBundledPackageRootsOptions, PlayableEditorBundledPackageAliasPlanOptions, PlayableEditorFileExists, PlayableEditorMissingPackageAliasFile, PlayableEditorPackageAliasPlan, PlayableEditorSourcePackageAliasPlanOptions, PlayableEditorSourceTsconfigPathsPlanOptions, PlayableEditorTsconfigPathsPlan } from './types';
2
- export declare const PLAYABLE_EDITOR_PACKAGE_IDS: readonly ["@fps-games/editor", "@fps-games/editor/vite", "@fps-games/babylon-renderer", "@fps-games/babylon-renderer/config", "@fps-games/babylon-renderer/renderer", "@fps-games/editor-tooling", "@fps-games/editor-tooling/node", "@fps-games/editor-tooling/vite", "@fps-games/plugin-api", "@fps-games/plugin-hierarchy", "@fps-games/plugin-hierarchy/editor", "@fps-games/plugin-assets", "@fps-games/plugin-assets/runtime", "@fps-games/plugin-materials", "@fps-games/plugin-materials/runtime", "@fps-games/plugin-markers", "@fps-games/plugin-markers/runtime", "@fps-games/plugin-rendering", "@fps-games/plugin-rendering/runtime", "@fps-games/plugin-shadows", "@fps-games/plugin-shadows/runtime", "@fps-games/plugin-shadow-map-experiment", "@fps-games/plugin-shadow-map-experiment/runtime", "@fps-games/plugin-host", "@fps-games/plugin-scene", "@fps-games/plugin-scene/runtime", "@fps-games/playable-assets", "@fps-games/playable-contracts", "@fps-games/playable-rendering", "@fps-games/playable-rendering/runtime", "@fps-games/playable-runtime", "@fps-games/playable-runtime-data", "@fps-games/playable-scene", "@fps-games/editor/playable-runtime", "@fps-games/editor/playable-runtime/babylon", "@fps-games/editor/playable-sdk", "@fps-games/editor/playable-sdk/upgrade-doctor", "@fps-games/editor/playable-sdk/vite", "@fps-games/editor-playable-sdk", "@fps-games/editor-playable-sdk/upgrade-doctor", "@fps-games/editor-playable-sdk/vite", "@fps-games/editor-babylon", "@fps-games/editor-browser", "@fps-games/editor-core", "@fps-games/editor-core/plugin-host", "@fps-games/editor-forge-play", "@fps-games/editor-protocol", "@fps-games/editor-ui", "@playcanvas/observer", "@playcanvas/pcui", "semver"];
2
+ export declare const PLAYABLE_EDITOR_PACKAGE_IDS: readonly ["@fps-games/editor", "@fps-games/editor/vite", "@fps-games/babylon-renderer", "@fps-games/babylon-renderer/config", "@fps-games/babylon-renderer/renderer", "@fps-games/editor-tooling", "@fps-games/editor-tooling/node", "@fps-games/editor-tooling/vite", "@fps-games/plugin-api", "@fps-games/plugin-hierarchy", "@fps-games/plugin-hierarchy/editor", "@fps-games/plugin-assets", "@fps-games/plugin-assets/runtime", "@fps-games/plugin-assets/renderer", "@fps-games/plugin-assets/resources", "@fps-games/plugin-materials", "@fps-games/plugin-materials/runtime", "@fps-games/plugin-markers", "@fps-games/plugin-markers/runtime", "@fps-games/plugin-rendering", "@fps-games/plugin-rendering/runtime", "@fps-games/plugin-shadows", "@fps-games/plugin-shadows/runtime", "@fps-games/plugin-shadow-map-experiment", "@fps-games/plugin-shadow-map-experiment/runtime", "@fps-games/plugin-host", "@fps-games/plugin-scene", "@fps-games/plugin-scene/runtime", "@fps-games/playable-assets", "@fps-games/playable-contracts", "@fps-games/playable-rendering", "@fps-games/playable-rendering/runtime", "@fps-games/playable-runtime", "@fps-games/playable-runtime-data", "@fps-games/playable-scene", "@fps-games/editor/playable-runtime", "@fps-games/editor/playable-runtime/babylon", "@fps-games/editor/playable-sdk", "@fps-games/editor/playable-sdk/upgrade-doctor", "@fps-games/editor/playable-sdk/vite", "@fps-games/editor-playable-sdk", "@fps-games/editor-playable-sdk/upgrade-doctor", "@fps-games/editor-playable-sdk/vite", "@fps-games/editor-babylon", "@fps-games/editor-browser", "@fps-games/editor-core", "@fps-games/editor-core/plugin-host", "@fps-games/editor-forge-play", "@fps-games/editor-protocol", "@fps-games/editor-ui", "@playcanvas/observer", "@playcanvas/pcui", "semver"];
3
3
  export declare const PLAYABLE_EDITOR_BUNDLED_ALIAS_PACKAGE_IDS: readonly ["@fps-games/babylon-renderer", ...("@fps-games/plugin-hierarchy" | "@fps-games/plugin-hierarchy/editor" | "@fps-games/editor-playable-sdk/upgrade-doctor" | "@fps-games/editor-playable-sdk/vite" | "@fps-games/editor-babylon" | "@fps-games/editor-browser" | "@fps-games/editor-core" | "@fps-games/editor-core/plugin-host" | "@fps-games/editor-forge-play" | "@fps-games/editor-protocol" | "@fps-games/editor-ui")[], "semver"];
4
4
  export declare function createPlayableEditorSourcePackageAliasPlan(repoRoot: string, options?: PlayableEditorSourcePackageAliasPlanOptions): PlayableEditorPackageAliasPlan;
5
5
  export declare function createPlayableEditorSourceTsconfigPathsPlan(repoRoot: string, options?: PlayableEditorSourceTsconfigPathsPlanOptions): PlayableEditorTsconfigPathsPlan;
@@ -1 +1 @@
1
- {"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../../src/package-resolution/aliases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,wCAAwC,EACxC,4CAA4C,EAC5C,wBAAwB,EACxB,qCAAqC,EACrC,8BAA8B,EAG9B,2CAA2C,EAC3C,4CAA4C,EAC5C,+BAA+B,EAChC,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,2BAA2B,mqDAoD9B,CAAC;AAuEX,eAAO,MAAM,yCAAyC,kbAI5C,CAAC;AAEX,wBAAgB,0CAA0C,CACxD,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,2CAAgD,GACxD,8BAA8B,CAQhC;AAED,wBAAgB,2CAA2C,CACzD,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,4CAAiD,GACzD,+BAA+B,CAkBjC;AAED,wBAAgB,uCAAuC,CACrD,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,wCAA6C,GACrD,iCAAiC,CAQnC;AAED,wBAAgB,2CAA2C,CACzD,OAAO,EAAE,4CAA4C,GACpD,8BAA8B,CA8BhC;AAED,wBAAgB,6CAA6C,CAC3D,IAAI,EAAE,8BAA8B,EACpC,UAAU,EAAE,wBAAwB,GACnC,qCAAqC,EAAE,CAIzC;AAED,wBAAgB,yCAAyC,CACvD,OAAO,EAAE,SAAS,qCAAqC,EAAE,EACzD,KAAK,SAAkE,GACtE,MAAM,CAKR"}
1
+ {"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../../src/package-resolution/aliases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,wCAAwC,EACxC,4CAA4C,EAC5C,wBAAwB,EACxB,qCAAqC,EACrC,8BAA8B,EAG9B,2CAA2C,EAC3C,4CAA4C,EAC5C,+BAA+B,EAChC,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,2BAA2B,8uDAsD9B,CAAC;AAyEX,eAAO,MAAM,yCAAyC,kbAI5C,CAAC;AAEX,wBAAgB,0CAA0C,CACxD,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,2CAAgD,GACxD,8BAA8B,CAQhC;AAED,wBAAgB,2CAA2C,CACzD,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,4CAAiD,GACzD,+BAA+B,CAkBjC;AAED,wBAAgB,uCAAuC,CACrD,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,wCAA6C,GACrD,iCAAiC,CAQnC;AAED,wBAAgB,2CAA2C,CACzD,OAAO,EAAE,4CAA4C,GACpD,8BAA8B,CA8BhC;AAED,wBAAgB,6CAA6C,CAC3D,IAAI,EAAE,8BAA8B,EACpC,UAAU,EAAE,wBAAwB,GACnC,qCAAqC,EAAE,CAIzC;AAED,wBAAgB,yCAAyC,CACvD,OAAO,EAAE,SAAS,qCAAqC,EAAE,EACzD,KAAK,SAAkE,GACtE,MAAM,CAKR"}
@@ -12,6 +12,8 @@ export const PLAYABLE_EDITOR_PACKAGE_IDS = [
12
12
  '@fps-games/plugin-hierarchy/editor',
13
13
  '@fps-games/plugin-assets',
14
14
  '@fps-games/plugin-assets/runtime',
15
+ '@fps-games/plugin-assets/renderer',
16
+ '@fps-games/plugin-assets/resources',
15
17
  '@fps-games/plugin-materials',
16
18
  '@fps-games/plugin-materials/runtime',
17
19
  '@fps-games/plugin-markers',
@@ -62,6 +64,8 @@ const SOURCE_ALIAS_FILES = [
62
64
  ['@fps-games/plugin-hierarchy/editor', 'packages/plugin-hierarchy/src/editor.ts'],
63
65
  ['@fps-games/plugin-hierarchy', 'packages/plugin-hierarchy/src/reference.ts'],
64
66
  ['@fps-games/plugin-assets/runtime', 'packages/plugin-assets/src/runtime.ts'],
67
+ ['@fps-games/plugin-assets/renderer', 'packages/plugin-assets/src/renderer.ts'],
68
+ ['@fps-games/plugin-assets/resources', 'packages/plugin-assets/src/resources.ts'],
65
69
  ['@fps-games/plugin-assets', 'packages/plugin-assets/src/reference.ts'],
66
70
  ['@fps-games/plugin-materials/runtime', 'packages/plugin-materials/src/runtime.ts'],
67
71
  ['@fps-games/plugin-materials', 'packages/plugin-materials/src/reference.ts'],
@@ -1 +1 @@
1
- {"version":3,"file":"aliases.js","sourceRoot":"","sources":["../../src/package-resolution/aliases.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,mBAAmB;IACnB,wBAAwB;IACxB,6BAA6B;IAC7B,oCAAoC;IACpC,sCAAsC;IACtC,2BAA2B;IAC3B,gCAAgC;IAChC,gCAAgC;IAChC,uBAAuB;IACvB,6BAA6B;IAC7B,oCAAoC;IACpC,0BAA0B;IAC1B,kCAAkC;IAClC,6BAA6B;IAC7B,qCAAqC;IACrC,2BAA2B;IAC3B,mCAAmC;IACnC,6BAA6B;IAC7B,qCAAqC;IACrC,2BAA2B;IAC3B,mCAAmC;IACnC,yCAAyC;IACzC,iDAAiD;IACjD,wBAAwB;IACxB,yBAAyB;IACzB,iCAAiC;IACjC,4BAA4B;IAC5B,+BAA+B;IAC/B,+BAA+B;IAC/B,uCAAuC;IACvC,6BAA6B;IAC7B,kCAAkC;IAClC,2BAA2B;IAC3B,oCAAoC;IACpC,4CAA4C;IAC5C,gCAAgC;IAChC,+CAA+C;IAC/C,qCAAqC;IACrC,gCAAgC;IAChC,+CAA+C;IAC/C,qCAAqC;IACrC,2BAA2B;IAC3B,2BAA2B;IAC3B,wBAAwB;IACxB,oCAAoC;IACpC,8BAA8B;IAC9B,4BAA4B;IAC5B,sBAAsB;IACtB,sBAAsB;IACtB,kBAAkB;IAClB,QAAQ;CACA,CAAC;AAEX,MAAM,kBAAkB,GAAG;IACzB,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IACzD,CAAC,oCAAoC,EAAE,4CAA4C,CAAC;IACpF,CAAC,sCAAsC,EAAE,yCAAyC,CAAC;IACnF,CAAC,gCAAgC,EAAE,sDAAsD,CAAC;IAC1F,CAAC,gCAAgC,EAAE,qCAAqC,CAAC;IACzE,CAAC,2BAA2B,EAAE,sCAAsC,CAAC;IACrE,CAAC,uBAAuB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E,EAAE,CAAC,CAAC;IAClE,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClD,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,OAAO,MAAM,GAAG,SAAS,CAAC,MAAM,IAAI,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACrG,MAAM,IAAI,CAAC,CAAC;IACd,CAAC;IACD,MAAM,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,QAAQ,IAAI,GAAG,CAAC;AACzB,CAAC","sourcesContent":["import type {\n PlayableEditorBundledPackageRoots,\n PlayableEditorBundledPackageRootsOptions,\n PlayableEditorBundledPackageAliasPlanOptions,\n PlayableEditorFileExists,\n PlayableEditorMissingPackageAliasFile,\n PlayableEditorPackageAliasPlan,\n PlayableEditorPackageAliasPlanEntry,\n PlayableEditorPathResolver,\n PlayableEditorSourcePackageAliasPlanOptions,\n PlayableEditorSourceTsconfigPathsPlanOptions,\n PlayableEditorTsconfigPathsPlan,\n} from './types';\n\nexport const PLAYABLE_EDITOR_PACKAGE_IDS = [\n '@fps-games/editor',\n '@fps-games/editor/vite',\n '@fps-games/babylon-renderer',\n '@fps-games/babylon-renderer/config',\n '@fps-games/babylon-renderer/renderer',\n '@fps-games/editor-tooling',\n '@fps-games/editor-tooling/node',\n '@fps-games/editor-tooling/vite',\n '@fps-games/plugin-api',\n '@fps-games/plugin-hierarchy',\n '@fps-games/plugin-hierarchy/editor',\n '@fps-games/plugin-assets',\n '@fps-games/plugin-assets/runtime',\n '@fps-games/plugin-materials',\n '@fps-games/plugin-materials/runtime',\n '@fps-games/plugin-markers',\n '@fps-games/plugin-markers/runtime',\n '@fps-games/plugin-rendering',\n '@fps-games/plugin-rendering/runtime',\n '@fps-games/plugin-shadows',\n '@fps-games/plugin-shadows/runtime',\n '@fps-games/plugin-shadow-map-experiment',\n '@fps-games/plugin-shadow-map-experiment/runtime',\n '@fps-games/plugin-host',\n '@fps-games/plugin-scene',\n '@fps-games/plugin-scene/runtime',\n '@fps-games/playable-assets',\n '@fps-games/playable-contracts',\n '@fps-games/playable-rendering',\n '@fps-games/playable-rendering/runtime',\n '@fps-games/playable-runtime',\n '@fps-games/playable-runtime-data',\n '@fps-games/playable-scene',\n '@fps-games/editor/playable-runtime',\n '@fps-games/editor/playable-runtime/babylon',\n '@fps-games/editor/playable-sdk',\n '@fps-games/editor/playable-sdk/upgrade-doctor',\n '@fps-games/editor/playable-sdk/vite',\n '@fps-games/editor-playable-sdk',\n '@fps-games/editor-playable-sdk/upgrade-doctor',\n '@fps-games/editor-playable-sdk/vite',\n '@fps-games/editor-babylon',\n '@fps-games/editor-browser',\n '@fps-games/editor-core',\n '@fps-games/editor-core/plugin-host',\n '@fps-games/editor-forge-play',\n '@fps-games/editor-protocol',\n '@fps-games/editor-ui',\n '@playcanvas/observer',\n '@playcanvas/pcui',\n 'semver',\n] as const;\n\nconst SOURCE_ALIAS_FILES = [\n ['@fps-games/editor/vite', 'packages/editor/src/vite.ts'],\n ['@fps-games/babylon-renderer/config', 'packages/babylon-renderer/src/reference.ts'],\n ['@fps-games/babylon-renderer/renderer', 'packages/babylon-renderer/src/plugin.ts'],\n ['@fps-games/editor-tooling/node', 'packages/editor-tooling/src/package-metadata-node.ts'],\n ['@fps-games/editor-tooling/vite', 'packages/editor-tooling/src/vite.ts'],\n ['@fps-games/editor-tooling', 'packages/editor-tooling/src/index.ts'],\n ['@fps-games/plugin-api', 'packages/plugin-api/src/index.ts'],\n ['@fps-games/plugin-hierarchy/editor', 'packages/plugin-hierarchy/src/editor.ts'],\n ['@fps-games/plugin-hierarchy', 'packages/plugin-hierarchy/src/reference.ts'],\n ['@fps-games/plugin-assets/runtime', 'packages/plugin-assets/src/runtime.ts'],\n ['@fps-games/plugin-assets', 'packages/plugin-assets/src/reference.ts'],\n ['@fps-games/plugin-materials/runtime', 'packages/plugin-materials/src/runtime.ts'],\n ['@fps-games/plugin-materials', 'packages/plugin-materials/src/reference.ts'],\n ['@fps-games/plugin-markers/runtime', 'packages/plugin-markers/src/runtime.ts'],\n ['@fps-games/plugin-markers', 'packages/plugin-markers/src/reference.ts'],\n ['@fps-games/plugin-rendering/runtime', 'packages/plugin-rendering/src/runtime.ts'],\n ['@fps-games/plugin-rendering', 'packages/plugin-rendering/src/reference.ts'],\n ['@fps-games/plugin-shadows/runtime', 'packages/plugin-shadows/src/runtime.ts'],\n ['@fps-games/plugin-shadows', 'packages/plugin-shadows/src/reference.ts'],\n ['@fps-games/plugin-shadow-map-experiment/runtime', 'packages/plugin-shadow-map-experiment/src/runtime.ts'],\n ['@fps-games/plugin-shadow-map-experiment', 'packages/plugin-shadow-map-experiment/src/reference.ts'],\n ['@fps-games/plugin-host', 'packages/plugin-host/src/index.ts'],\n ['@fps-games/plugin-scene/runtime', 'packages/plugin-scene/src/runtime.ts'],\n ['@fps-games/plugin-scene', 'packages/plugin-scene/src/reference.ts'],\n ['@fps-games/playable-assets', 'packages/playable-assets/src/index.ts'],\n ['@fps-games/playable-contracts', 'packages/playable-contracts/src/index.ts'],\n ['@fps-games/playable-rendering/runtime', 'packages/playable-rendering/src/runtime.ts'],\n ['@fps-games/playable-rendering', 'packages/playable-rendering/src/index.ts'],\n ['@fps-games/playable-runtime', 'packages/playable-runtime/src/index.ts'],\n ['@fps-games/playable-runtime-data', 'packages/playable-runtime-data/src/index.ts'],\n ['@fps-games/playable-scene', 'packages/playable-scene/src/index.ts'],\n ['@fps-games/editor/playable-runtime/babylon', 'packages/editor/src/playable-runtime-babylon.ts'],\n ['@fps-games/editor/playable-runtime', 'packages/editor/src/playable-runtime.ts'],\n ['@fps-games/editor/playable-sdk', 'packages/editor/src/playable-sdk.ts'],\n ['@fps-games/editor/playable-sdk/upgrade-doctor', 'packages/editor/src/playable-sdk-upgrade-doctor.ts'],\n ['@fps-games/editor/playable-sdk/vite', 'packages/editor/src/playable-sdk-vite.ts'],\n ['@fps-games/editor-playable-sdk', 'packages/editor-playable-sdk/src/index.ts'],\n ['@fps-games/editor-playable-sdk/upgrade-doctor', 'packages/editor-playable-sdk/src/upgrade-doctor/index.ts'],\n ['@fps-games/editor-playable-sdk/vite', 'packages/editor-playable-sdk/src/vite/index.ts'],\n ['@fps-games/babylon-renderer', 'packages/babylon-renderer/src/index.ts'],\n ['@fps-games/editor-babylon', 'packages/editor-babylon/src/index.ts'],\n ['@fps-games/editor-browser', 'packages/editor-browser/src/index.ts'],\n ['@fps-games/editor-core', 'packages/editor-core/src/index.ts'],\n ['@fps-games/editor-core/plugin-host', 'packages/editor-core/src/editor-plugin-host.ts'],\n ['@fps-games/editor-forge-play', 'packages/editor-forge-play/src/index.ts'],\n ['@fps-games/editor-protocol', 'packages/editor-protocol/src/index.ts'],\n ['@fps-games/editor-ui', 'packages/editor-ui/src/index.ts'],\n ['@fps-games/editor', 'packages/editor/src/index.ts'],\n] as const;\n\nconst SOURCE_RUNTIME_ALIAS_FILES = [\n ['semver', 'node_modules/semver/index.js'],\n] as const;\n\nconst BUNDLED_ALIAS_FILES = [\n ['@fps-games/plugin-hierarchy/editor', 'plugin-hierarchy/dist/editor.js'],\n ['@fps-games/plugin-hierarchy', 'plugin-hierarchy/dist/reference.js'],\n ['@fps-games/editor-playable-sdk/upgrade-doctor', 'editor-playable-sdk/dist/upgrade-doctor/index.js'],\n ['@fps-games/editor-playable-sdk/vite', 'editor-playable-sdk/dist/vite/index.js'],\n ['@fps-games/editor-babylon', 'editor-babylon/dist/index.js'],\n ['@fps-games/editor-browser', 'editor-browser/dist/index.js'],\n ['@fps-games/editor-core', 'editor-core/dist/index.js'],\n ['@fps-games/editor-core/plugin-host', 'editor-core/dist/editor-plugin-host.js'],\n ['@fps-games/editor-forge-play', 'editor-forge-play/dist/index.js'],\n ['@fps-games/editor-protocol', 'editor-protocol/dist/index.js'],\n ['@fps-games/editor-ui', 'editor-ui/dist/index.js'],\n] as const;\n\nexport const PLAYABLE_EDITOR_BUNDLED_ALIAS_PACKAGE_IDS = [\n '@fps-games/babylon-renderer',\n ...BUNDLED_ALIAS_FILES.map(([packageId]) => packageId),\n 'semver',\n] as const;\n\nexport function createPlayableEditorSourcePackageAliasPlan(\n repoRoot: string,\n options: PlayableEditorSourcePackageAliasPlanOptions = {},\n): PlayableEditorPackageAliasPlan {\n const resolvePath = options.resolvePath ?? joinPlayableEditorPath;\n return {\n entries: [...SOURCE_ALIAS_FILES, ...SOURCE_RUNTIME_ALIAS_FILES].map(([packageId, file]) => ({\n packageId,\n file: resolvePath(repoRoot, ...file.split('/')),\n })),\n };\n}\n\nexport function createPlayableEditorSourceTsconfigPathsPlan(\n repoRoot: string,\n options: PlayableEditorSourceTsconfigPathsPlanOptions = {},\n): PlayableEditorTsconfigPathsPlan {\n const aliasPlan = createPlayableEditorSourcePackageAliasPlan(repoRoot, {\n resolvePath: options.resolvePath,\n });\n const relativePath = options.relativePath ?? relativePlayableEditorPath;\n const paths: Record<string, string[]> = {};\n for (const entry of aliasPlan.entries) {\n if (entry.packageId === 'semver') continue;\n const override = options.pathOverrides?.[entry.packageId];\n paths[entry.packageId] = override\n ? normalizeTsconfigPathList(override)\n : [\n options.projectRoot\n ? normalizePlayableEditorPath(relativePath(options.projectRoot, entry.file))\n : normalizePlayableEditorPath(entry.file),\n ];\n }\n return { paths };\n}\n\nexport function createPlayableEditorBundledPackageRoots(\n projectRoot: string,\n options: PlayableEditorBundledPackageRootsOptions = {},\n): PlayableEditorBundledPackageRoots {\n const resolvePath = options.resolvePath ?? joinPlayableEditorPath;\n return {\n bundledEditorPackagesRoot: resolvePath(projectRoot, 'node_modules', '@fps-games', 'editor', 'node_modules', '@fps-games'),\n bundledEditorNodeModulesRoot: resolvePath(projectRoot, 'node_modules', '@fps-games', 'editor', 'node_modules'),\n directBabylonRendererPackageRoot: resolvePath(projectRoot, 'node_modules', '@fps-games', 'babylon-renderer'),\n editorPackageJsonPath: resolvePath(projectRoot, 'node_modules', '@fps-games', 'editor', 'package.json'),\n };\n}\n\nexport function createPlayableEditorBundledPackageAliasPlan(\n options: PlayableEditorBundledPackageAliasPlanOptions,\n): PlayableEditorPackageAliasPlan {\n const resolvePath = options.resolvePath ?? joinPlayableEditorPath;\n const entries: PlayableEditorPackageAliasPlanEntry[] = BUNDLED_ALIAS_FILES.map(([packageId, file]) => ({\n packageId,\n file: resolvePath(options.bundledEditorPackagesRoot, ...file.split('/')),\n }));\n const rendererFile = resolveBundledBabylonRendererAliasFile(options, resolvePath);\n const rendererDirectory = rendererFile.slice(0, rendererFile.lastIndexOf('/'));\n const rendererSource = rendererFile.endsWith('/src/index.ts');\n entries.unshift(\n {\n packageId: '@fps-games/babylon-renderer/config',\n file: resolvePath(rendererDirectory, rendererSource ? 'reference.ts' : 'reference.js'),\n },\n {\n packageId: '@fps-games/babylon-renderer/renderer',\n file: resolvePath(rendererDirectory, rendererSource ? 'plugin.ts' : 'plugin.js'),\n },\n { packageId: '@fps-games/babylon-renderer', file: rendererFile },\n );\n entries.push({\n packageId: 'semver',\n file: resolvePath(\n options.bundledEditorNodeModulesRoot\n ?? parentPlayableEditorPath(options.bundledEditorPackagesRoot),\n 'semver',\n 'index.js',\n ),\n });\n return { entries };\n}\n\nexport function collectMissingPlayableEditorPackageAliasFiles(\n plan: PlayableEditorPackageAliasPlan,\n fileExists: PlayableEditorFileExists,\n): PlayableEditorMissingPackageAliasFile[] {\n return plan.entries\n .filter(entry => !fileExists(entry.file))\n .map(entry => ({ packageId: entry.packageId, file: entry.file }));\n}\n\nexport function formatPlayableEditorPackageAliasPlanError(\n missing: readonly PlayableEditorMissingPackageAliasFile[],\n intro = 'The @fps-games editor package aliases point to missing files.',\n): string {\n return [\n intro,\n ...missing.map(entry => `- ${entry.packageId}: ${entry.file}`),\n ].join('\\n');\n}\n\nfunction resolveBundledBabylonRendererAliasFile(\n options: PlayableEditorBundledPackageAliasPlanOptions,\n resolvePath: PlayableEditorPathResolver,\n): string {\n return resolvePath(options.bundledEditorPackagesRoot, 'babylon-renderer', 'dist', 'index.js');\n}\n\nfunction joinPlayableEditorPath(...segments: string[]): string {\n return segments\n .filter(segment => segment.length > 0)\n .join('/')\n .replace(/\\/+/g, '/');\n}\n\nfunction normalizePlayableEditorPath(path: string): string {\n return path.replace(/\\\\/g, '/').replace(/\\/+/g, '/');\n}\n\nfunction parentPlayableEditorPath(value: string): string {\n const normalized = normalizePlayableEditorPath(value).replace(/\\/$/, '');\n const separator = normalized.lastIndexOf('/');\n return separator > 0 ? normalized.slice(0, separator) : '.';\n}\n\nfunction normalizeTsconfigPathList(value: string | string[]): string[] {\n return (Array.isArray(value) ? value : [value]).map(normalizePlayableEditorPath);\n}\n\nfunction relativePlayableEditorPath(from: string, to: string): string {\n const fromPath = normalizePlayableEditorPath(from).replace(/\\/$/, '');\n const toPath = normalizePlayableEditorPath(to).replace(/\\/$/, '');\n const fromParts = fromPath.split('/').filter(Boolean);\n const toParts = toPath.split('/').filter(Boolean);\n let common = 0;\n while (common < fromParts.length && common < toParts.length && fromParts[common] === toParts[common]) {\n common += 1;\n }\n const up = fromParts.slice(common).map(() => '..');\n const down = toParts.slice(common);\n const relative = [...up, ...down].join('/');\n return relative || '.';\n}\n"]}
1
+ {"version":3,"file":"aliases.js","sourceRoot":"","sources":["../../src/package-resolution/aliases.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,2BAA2B,GAA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C,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClD,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,OAAO,MAAM,GAAG,SAAS,CAAC,MAAM,IAAI,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACrG,MAAM,IAAI,CAAC,CAAC;IACd,CAAC;IACD,MAAM,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,QAAQ,IAAI,GAAG,CAAC;AACzB,CAAC","sourcesContent":["import type {\n PlayableEditorBundledPackageRoots,\n PlayableEditorBundledPackageRootsOptions,\n PlayableEditorBundledPackageAliasPlanOptions,\n PlayableEditorFileExists,\n PlayableEditorMissingPackageAliasFile,\n PlayableEditorPackageAliasPlan,\n PlayableEditorPackageAliasPlanEntry,\n PlayableEditorPathResolver,\n PlayableEditorSourcePackageAliasPlanOptions,\n PlayableEditorSourceTsconfigPathsPlanOptions,\n PlayableEditorTsconfigPathsPlan,\n} from './types';\n\nexport const PLAYABLE_EDITOR_PACKAGE_IDS = [\n '@fps-games/editor',\n '@fps-games/editor/vite',\n '@fps-games/babylon-renderer',\n '@fps-games/babylon-renderer/config',\n '@fps-games/babylon-renderer/renderer',\n '@fps-games/editor-tooling',\n '@fps-games/editor-tooling/node',\n '@fps-games/editor-tooling/vite',\n '@fps-games/plugin-api',\n '@fps-games/plugin-hierarchy',\n '@fps-games/plugin-hierarchy/editor',\n '@fps-games/plugin-assets',\n '@fps-games/plugin-assets/runtime',\n '@fps-games/plugin-assets/renderer',\n '@fps-games/plugin-assets/resources',\n '@fps-games/plugin-materials',\n '@fps-games/plugin-materials/runtime',\n '@fps-games/plugin-markers',\n '@fps-games/plugin-markers/runtime',\n '@fps-games/plugin-rendering',\n '@fps-games/plugin-rendering/runtime',\n '@fps-games/plugin-shadows',\n '@fps-games/plugin-shadows/runtime',\n '@fps-games/plugin-shadow-map-experiment',\n '@fps-games/plugin-shadow-map-experiment/runtime',\n '@fps-games/plugin-host',\n '@fps-games/plugin-scene',\n '@fps-games/plugin-scene/runtime',\n '@fps-games/playable-assets',\n '@fps-games/playable-contracts',\n '@fps-games/playable-rendering',\n '@fps-games/playable-rendering/runtime',\n '@fps-games/playable-runtime',\n '@fps-games/playable-runtime-data',\n '@fps-games/playable-scene',\n '@fps-games/editor/playable-runtime',\n '@fps-games/editor/playable-runtime/babylon',\n '@fps-games/editor/playable-sdk',\n '@fps-games/editor/playable-sdk/upgrade-doctor',\n '@fps-games/editor/playable-sdk/vite',\n '@fps-games/editor-playable-sdk',\n '@fps-games/editor-playable-sdk/upgrade-doctor',\n '@fps-games/editor-playable-sdk/vite',\n '@fps-games/editor-babylon',\n '@fps-games/editor-browser',\n '@fps-games/editor-core',\n '@fps-games/editor-core/plugin-host',\n '@fps-games/editor-forge-play',\n '@fps-games/editor-protocol',\n '@fps-games/editor-ui',\n '@playcanvas/observer',\n '@playcanvas/pcui',\n 'semver',\n] as const;\n\nconst SOURCE_ALIAS_FILES = [\n ['@fps-games/editor/vite', 'packages/editor/src/vite.ts'],\n ['@fps-games/babylon-renderer/config', 'packages/babylon-renderer/src/reference.ts'],\n ['@fps-games/babylon-renderer/renderer', 'packages/babylon-renderer/src/plugin.ts'],\n ['@fps-games/editor-tooling/node', 'packages/editor-tooling/src/package-metadata-node.ts'],\n ['@fps-games/editor-tooling/vite', 'packages/editor-tooling/src/vite.ts'],\n ['@fps-games/editor-tooling', 'packages/editor-tooling/src/index.ts'],\n ['@fps-games/plugin-api', 'packages/plugin-api/src/index.ts'],\n ['@fps-games/plugin-hierarchy/editor', 'packages/plugin-hierarchy/src/editor.ts'],\n ['@fps-games/plugin-hierarchy', 'packages/plugin-hierarchy/src/reference.ts'],\n ['@fps-games/plugin-assets/runtime', 'packages/plugin-assets/src/runtime.ts'],\n ['@fps-games/plugin-assets/renderer', 'packages/plugin-assets/src/renderer.ts'],\n ['@fps-games/plugin-assets/resources', 'packages/plugin-assets/src/resources.ts'],\n ['@fps-games/plugin-assets', 'packages/plugin-assets/src/reference.ts'],\n ['@fps-games/plugin-materials/runtime', 'packages/plugin-materials/src/runtime.ts'],\n ['@fps-games/plugin-materials', 'packages/plugin-materials/src/reference.ts'],\n ['@fps-games/plugin-markers/runtime', 'packages/plugin-markers/src/runtime.ts'],\n ['@fps-games/plugin-markers', 'packages/plugin-markers/src/reference.ts'],\n ['@fps-games/plugin-rendering/runtime', 'packages/plugin-rendering/src/runtime.ts'],\n ['@fps-games/plugin-rendering', 'packages/plugin-rendering/src/reference.ts'],\n ['@fps-games/plugin-shadows/runtime', 'packages/plugin-shadows/src/runtime.ts'],\n ['@fps-games/plugin-shadows', 'packages/plugin-shadows/src/reference.ts'],\n ['@fps-games/plugin-shadow-map-experiment/runtime', 'packages/plugin-shadow-map-experiment/src/runtime.ts'],\n ['@fps-games/plugin-shadow-map-experiment', 'packages/plugin-shadow-map-experiment/src/reference.ts'],\n ['@fps-games/plugin-host', 'packages/plugin-host/src/index.ts'],\n ['@fps-games/plugin-scene/runtime', 'packages/plugin-scene/src/runtime.ts'],\n ['@fps-games/plugin-scene', 'packages/plugin-scene/src/reference.ts'],\n ['@fps-games/playable-assets', 'packages/playable-assets/src/index.ts'],\n ['@fps-games/playable-contracts', 'packages/playable-contracts/src/index.ts'],\n ['@fps-games/playable-rendering/runtime', 'packages/playable-rendering/src/runtime.ts'],\n ['@fps-games/playable-rendering', 'packages/playable-rendering/src/index.ts'],\n ['@fps-games/playable-runtime', 'packages/playable-runtime/src/index.ts'],\n ['@fps-games/playable-runtime-data', 'packages/playable-runtime-data/src/index.ts'],\n ['@fps-games/playable-scene', 'packages/playable-scene/src/index.ts'],\n ['@fps-games/editor/playable-runtime/babylon', 'packages/editor/src/playable-runtime-babylon.ts'],\n ['@fps-games/editor/playable-runtime', 'packages/editor/src/playable-runtime.ts'],\n ['@fps-games/editor/playable-sdk', 'packages/editor/src/playable-sdk.ts'],\n ['@fps-games/editor/playable-sdk/upgrade-doctor', 'packages/editor/src/playable-sdk-upgrade-doctor.ts'],\n ['@fps-games/editor/playable-sdk/vite', 'packages/editor/src/playable-sdk-vite.ts'],\n ['@fps-games/editor-playable-sdk', 'packages/editor-playable-sdk/src/index.ts'],\n ['@fps-games/editor-playable-sdk/upgrade-doctor', 'packages/editor-playable-sdk/src/upgrade-doctor/index.ts'],\n ['@fps-games/editor-playable-sdk/vite', 'packages/editor-playable-sdk/src/vite/index.ts'],\n ['@fps-games/babylon-renderer', 'packages/babylon-renderer/src/index.ts'],\n ['@fps-games/editor-babylon', 'packages/editor-babylon/src/index.ts'],\n ['@fps-games/editor-browser', 'packages/editor-browser/src/index.ts'],\n ['@fps-games/editor-core', 'packages/editor-core/src/index.ts'],\n ['@fps-games/editor-core/plugin-host', 'packages/editor-core/src/editor-plugin-host.ts'],\n ['@fps-games/editor-forge-play', 'packages/editor-forge-play/src/index.ts'],\n ['@fps-games/editor-protocol', 'packages/editor-protocol/src/index.ts'],\n ['@fps-games/editor-ui', 'packages/editor-ui/src/index.ts'],\n ['@fps-games/editor', 'packages/editor/src/index.ts'],\n] as const;\n\nconst SOURCE_RUNTIME_ALIAS_FILES = [\n ['semver', 'node_modules/semver/index.js'],\n] as const;\n\nconst BUNDLED_ALIAS_FILES = [\n ['@fps-games/plugin-hierarchy/editor', 'plugin-hierarchy/dist/editor.js'],\n ['@fps-games/plugin-hierarchy', 'plugin-hierarchy/dist/reference.js'],\n ['@fps-games/editor-playable-sdk/upgrade-doctor', 'editor-playable-sdk/dist/upgrade-doctor/index.js'],\n ['@fps-games/editor-playable-sdk/vite', 'editor-playable-sdk/dist/vite/index.js'],\n ['@fps-games/editor-babylon', 'editor-babylon/dist/index.js'],\n ['@fps-games/editor-browser', 'editor-browser/dist/index.js'],\n ['@fps-games/editor-core', 'editor-core/dist/index.js'],\n ['@fps-games/editor-core/plugin-host', 'editor-core/dist/editor-plugin-host.js'],\n ['@fps-games/editor-forge-play', 'editor-forge-play/dist/index.js'],\n ['@fps-games/editor-protocol', 'editor-protocol/dist/index.js'],\n ['@fps-games/editor-ui', 'editor-ui/dist/index.js'],\n] as const;\n\nexport const PLAYABLE_EDITOR_BUNDLED_ALIAS_PACKAGE_IDS = [\n '@fps-games/babylon-renderer',\n ...BUNDLED_ALIAS_FILES.map(([packageId]) => packageId),\n 'semver',\n] as const;\n\nexport function createPlayableEditorSourcePackageAliasPlan(\n repoRoot: string,\n options: PlayableEditorSourcePackageAliasPlanOptions = {},\n): PlayableEditorPackageAliasPlan {\n const resolvePath = options.resolvePath ?? joinPlayableEditorPath;\n return {\n entries: [...SOURCE_ALIAS_FILES, ...SOURCE_RUNTIME_ALIAS_FILES].map(([packageId, file]) => ({\n packageId,\n file: resolvePath(repoRoot, ...file.split('/')),\n })),\n };\n}\n\nexport function createPlayableEditorSourceTsconfigPathsPlan(\n repoRoot: string,\n options: PlayableEditorSourceTsconfigPathsPlanOptions = {},\n): PlayableEditorTsconfigPathsPlan {\n const aliasPlan = createPlayableEditorSourcePackageAliasPlan(repoRoot, {\n resolvePath: options.resolvePath,\n });\n const relativePath = options.relativePath ?? relativePlayableEditorPath;\n const paths: Record<string, string[]> = {};\n for (const entry of aliasPlan.entries) {\n if (entry.packageId === 'semver') continue;\n const override = options.pathOverrides?.[entry.packageId];\n paths[entry.packageId] = override\n ? normalizeTsconfigPathList(override)\n : [\n options.projectRoot\n ? normalizePlayableEditorPath(relativePath(options.projectRoot, entry.file))\n : normalizePlayableEditorPath(entry.file),\n ];\n }\n return { paths };\n}\n\nexport function createPlayableEditorBundledPackageRoots(\n projectRoot: string,\n options: PlayableEditorBundledPackageRootsOptions = {},\n): PlayableEditorBundledPackageRoots {\n const resolvePath = options.resolvePath ?? joinPlayableEditorPath;\n return {\n bundledEditorPackagesRoot: resolvePath(projectRoot, 'node_modules', '@fps-games', 'editor', 'node_modules', '@fps-games'),\n bundledEditorNodeModulesRoot: resolvePath(projectRoot, 'node_modules', '@fps-games', 'editor', 'node_modules'),\n directBabylonRendererPackageRoot: resolvePath(projectRoot, 'node_modules', '@fps-games', 'babylon-renderer'),\n editorPackageJsonPath: resolvePath(projectRoot, 'node_modules', '@fps-games', 'editor', 'package.json'),\n };\n}\n\nexport function createPlayableEditorBundledPackageAliasPlan(\n options: PlayableEditorBundledPackageAliasPlanOptions,\n): PlayableEditorPackageAliasPlan {\n const resolvePath = options.resolvePath ?? joinPlayableEditorPath;\n const entries: PlayableEditorPackageAliasPlanEntry[] = BUNDLED_ALIAS_FILES.map(([packageId, file]) => ({\n packageId,\n file: resolvePath(options.bundledEditorPackagesRoot, ...file.split('/')),\n }));\n const rendererFile = resolveBundledBabylonRendererAliasFile(options, resolvePath);\n const rendererDirectory = rendererFile.slice(0, rendererFile.lastIndexOf('/'));\n const rendererSource = rendererFile.endsWith('/src/index.ts');\n entries.unshift(\n {\n packageId: '@fps-games/babylon-renderer/config',\n file: resolvePath(rendererDirectory, rendererSource ? 'reference.ts' : 'reference.js'),\n },\n {\n packageId: '@fps-games/babylon-renderer/renderer',\n file: resolvePath(rendererDirectory, rendererSource ? 'plugin.ts' : 'plugin.js'),\n },\n { packageId: '@fps-games/babylon-renderer', file: rendererFile },\n );\n entries.push({\n packageId: 'semver',\n file: resolvePath(\n options.bundledEditorNodeModulesRoot\n ?? parentPlayableEditorPath(options.bundledEditorPackagesRoot),\n 'semver',\n 'index.js',\n ),\n });\n return { entries };\n}\n\nexport function collectMissingPlayableEditorPackageAliasFiles(\n plan: PlayableEditorPackageAliasPlan,\n fileExists: PlayableEditorFileExists,\n): PlayableEditorMissingPackageAliasFile[] {\n return plan.entries\n .filter(entry => !fileExists(entry.file))\n .map(entry => ({ packageId: entry.packageId, file: entry.file }));\n}\n\nexport function formatPlayableEditorPackageAliasPlanError(\n missing: readonly PlayableEditorMissingPackageAliasFile[],\n intro = 'The @fps-games editor package aliases point to missing files.',\n): string {\n return [\n intro,\n ...missing.map(entry => `- ${entry.packageId}: ${entry.file}`),\n ].join('\\n');\n}\n\nfunction resolveBundledBabylonRendererAliasFile(\n options: PlayableEditorBundledPackageAliasPlanOptions,\n resolvePath: PlayableEditorPathResolver,\n): string {\n return resolvePath(options.bundledEditorPackagesRoot, 'babylon-renderer', 'dist', 'index.js');\n}\n\nfunction joinPlayableEditorPath(...segments: string[]): string {\n return segments\n .filter(segment => segment.length > 0)\n .join('/')\n .replace(/\\/+/g, '/');\n}\n\nfunction normalizePlayableEditorPath(path: string): string {\n return path.replace(/\\\\/g, '/').replace(/\\/+/g, '/');\n}\n\nfunction parentPlayableEditorPath(value: string): string {\n const normalized = normalizePlayableEditorPath(value).replace(/\\/$/, '');\n const separator = normalized.lastIndexOf('/');\n return separator > 0 ? normalized.slice(0, separator) : '.';\n}\n\nfunction normalizeTsconfigPathList(value: string | string[]): string[] {\n return (Array.isArray(value) ? value : [value]).map(normalizePlayableEditorPath);\n}\n\nfunction relativePlayableEditorPath(from: string, to: string): string {\n const fromPath = normalizePlayableEditorPath(from).replace(/\\/$/, '');\n const toPath = normalizePlayableEditorPath(to).replace(/\\/$/, '');\n const fromParts = fromPath.split('/').filter(Boolean);\n const toParts = toPath.split('/').filter(Boolean);\n let common = 0;\n while (common < fromParts.length && common < toParts.length && fromParts[common] === toParts[common]) {\n common += 1;\n }\n const up = fromParts.slice(common).map(() => '..');\n const down = toParts.slice(common);\n const relative = [...up, ...down].join('/');\n return relative || '.';\n}\n"]}
@@ -7,4 +7,9 @@ export interface EditorScenePrefabMaterialOverrideInspectorServices {
7
7
  validatePrefabAssetFieldValue: (path: string, value: unknown) => boolean;
8
8
  }
9
9
  export declare function createEditorScenePrefabMaterialOverrideInspectorSection(document: EditorSceneDocument, prefabAsset: EditorSceneAsset, selectedItem: EditorScenePrefabStageStructureItem, context: EditorSceneMaterialInspectorContext, services: EditorScenePrefabMaterialOverrideInspectorServices): InspectorSection<EditorSceneDocument> | null;
10
+ declare function createEditorScenePrefabMaterialOverrideInspectorSectionWithCachedUsage(document: EditorSceneDocument, prefabAsset: EditorSceneAsset, selectedItem: EditorScenePrefabStageStructureItem, context: EditorSceneMaterialInspectorContext, services: EditorScenePrefabMaterialOverrideInspectorServices): InspectorSection<EditorSceneDocument> | null;
11
+ declare const prefabMaterialOverrideInspectorInternals: {
12
+ createEditorScenePrefabMaterialOverrideInspectorSectionWithCachedUsage: typeof createEditorScenePrefabMaterialOverrideInspectorSectionWithCachedUsage;
13
+ };
14
+ export default prefabMaterialOverrideInspectorInternals;
10
15
  //# sourceMappingURL=material-override-inspector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"material-override-inspector.d.ts","sourceRoot":"","sources":["../../src/prefab-stage/material-override-inspector.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAO3B,OAAO,EAOL,KAAK,mCAAmC,EACzC,MAAM,2BAA2B,CAAC;AAQnC,OAAO,KAAK,EAEV,mCAAmC,EACpC,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,kDAAkD;IACjE,8BAA8B,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IAC1E,6BAA6B,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CAC1E;AAED,wBA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EF,eAAe,wCAAwC,CAAC"}
@@ -2,10 +2,15 @@ import {} from '@fps-games/editor-core';
2
2
  import { readEditorScenePrefabMaterialOverrideBinding, } from '../document/helpers.js';
3
3
  import { createEditorSceneReadonlyInspectorProperty, } from '../inspector/readonly.js';
4
4
  import { createMaterialAssetSelectorInspectorProperty, createTexturePickerControlOptions, findEditorSceneInspectorTextureAssetFromContext, getArtistMaterialInspectorText, readArtistMaterialTexturePickerValue, } from '../material-binding/index.js';
5
+ import { default as materialAssetFieldInternals, } from '../material-binding/asset-fields.js';
6
+ import { default as materialBindingInternals, } from '../material-binding/binding.js';
5
7
  import { findEditorSceneMaterialAsset, } from '../material-binding/index.js';
6
8
  export function createEditorScenePrefabMaterialOverrideInspectorSection(document, prefabAsset, selectedItem, context, services) {
9
+ return createEditorScenePrefabMaterialOverrideInspectorSectionWithUsage(document, prefabAsset, selectedItem, context, services, () => materialBindingInternals.createUsageIndex(document));
10
+ }
11
+ function createEditorScenePrefabMaterialOverrideInspectorSectionWithUsage(document, prefabAsset, selectedItem, context, services, resolveUsageIndex) {
7
12
  if (selectedItem.itemType === 'prefab-material-slot') {
8
- return createEditorSceneEditablePrefabMaterialOverrideInspectorSection(document, prefabAsset, selectedItem, context, services);
13
+ return createEditorSceneEditablePrefabMaterialOverrideInspectorSection(document, prefabAsset, selectedItem, context, services, resolveUsageIndex());
9
14
  }
10
15
  if (selectedItem.itemType === 'runtime-material') {
11
16
  return createEditorSceneReadonlyPrefabMaterialOverrideInspectorSection('This runtime material has no stable slotId or ownerNodePath mapping.', selectedItem);
@@ -15,7 +20,7 @@ export function createEditorScenePrefabMaterialOverrideInspectorSection(document
15
20
  }
16
21
  return null;
17
22
  }
18
- function createEditorSceneEditablePrefabMaterialOverrideInspectorSection(document, prefabAsset, target, context, services) {
23
+ function createEditorSceneEditablePrefabMaterialOverrideInspectorSection(document, prefabAsset, target, context, services, usageIndex) {
19
24
  const text = getArtistMaterialInspectorText('en');
20
25
  const binding = readEditorScenePrefabMaterialOverrideBinding(prefabAsset, target);
21
26
  const materialAssetId = typeof binding?.materialAssetId === 'string' ? binding.materialAssetId : '';
@@ -36,14 +41,14 @@ function createEditorSceneEditablePrefabMaterialOverrideInspectorSection(documen
36
41
  createReadonlyInspectorProperty('prefab.materialOverride.bindingPath', 'Binding Path', target.bindingPath, 1),
37
42
  createReadonlyInspectorProperty('prefab.materialOverride.materialAssetPath', 'Material Asset Path', target.materialAssetIdPath, 2),
38
43
  createReadonlyInspectorProperty('prefab.materialOverride.profilePathPrefix', 'Profile Path Prefix', target.profilePathPrefix, 3),
39
- createMaterialAssetSelectorInspectorProperty(materialDocument, 'instance', {
44
+ materialAssetFieldInternals.createSelectorInspectorPropertyWithUsage(materialDocument, 'instance', {
40
45
  path: target.materialAssetIdPath,
41
46
  label: 'Material Asset',
42
47
  value: materialAssetId,
43
48
  order: 10,
44
49
  text,
45
50
  currentAsset: materialAsset,
46
- }),
51
+ }, usageIndex),
47
52
  createPrefabMaterialTexturePickerInspectorProperty({
48
53
  path: `${target.profilePathPrefix}.baseColor.texture.textureAssetId`,
49
54
  label: text.assetBaseTexture,
@@ -103,6 +108,13 @@ function createEditorSceneEditablePrefabMaterialOverrideInspectorSection(documen
103
108
  ],
104
109
  };
105
110
  }
111
+ function createEditorScenePrefabMaterialOverrideInspectorSectionWithCachedUsage(document, prefabAsset, selectedItem, context, services) {
112
+ return createEditorScenePrefabMaterialOverrideInspectorSectionWithUsage(document, prefabAsset, selectedItem, context, services, () => materialBindingInternals.getCachedUsageIndex(document));
113
+ }
114
+ const prefabMaterialOverrideInspectorInternals = {
115
+ createEditorScenePrefabMaterialOverrideInspectorSectionWithCachedUsage,
116
+ };
117
+ export default prefabMaterialOverrideInspectorInternals;
106
118
  function createEditorSceneReadonlyPrefabMaterialOverrideInspectorSection(reason, selectedItem) {
107
119
  return {
108
120
  id: 'prefab-material-override-target',