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

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 (1506) hide show
  1. package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -1
  2. package/dist/agent-bridge/capabilities/editor-state.js +12 -6
  3. package/dist/agent-bridge/capabilities/editor-state.js.map +1 -1
  4. package/dist/agent-bridge/capabilities/hierarchy.d.ts +4 -0
  5. package/dist/agent-bridge/capabilities/hierarchy.d.ts.map +1 -0
  6. package/dist/agent-bridge/capabilities/hierarchy.js +209 -0
  7. package/dist/agent-bridge/capabilities/hierarchy.js.map +1 -0
  8. package/dist/agent-bridge/capabilities/prefabs.d.ts.map +1 -1
  9. package/dist/agent-bridge/capabilities/prefabs.js +208 -73
  10. package/dist/agent-bridge/capabilities/prefabs.js.map +1 -1
  11. package/dist/agent-bridge/capabilities/scene-objects.d.ts +3 -4
  12. package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +1 -1
  13. package/dist/agent-bridge/capabilities/scene-objects.js +24 -23
  14. package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -1
  15. package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -1
  16. package/dist/agent-bridge/capabilities/shadows.js +829 -66
  17. package/dist/agent-bridge/capabilities/shadows.js.map +1 -1
  18. package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +1 -1
  19. package/dist/agent-bridge/capabilities/ui-regions.js +19 -1
  20. package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -1
  21. package/dist/agent-bridge/capabilities/viewport.d.ts.map +1 -1
  22. package/dist/agent-bridge/capabilities/viewport.js +22 -9
  23. package/dist/agent-bridge/capabilities/viewport.js.map +1 -1
  24. package/dist/agent-bridge/capability-sources.d.ts.map +1 -1
  25. package/dist/agent-bridge/capability-sources.js +2 -0
  26. package/dist/agent-bridge/capability-sources.js.map +1 -1
  27. package/dist/agent-bridge/register.d.ts.map +1 -1
  28. package/dist/agent-bridge/register.js +194 -0
  29. package/dist/agent-bridge/register.js.map +1 -1
  30. package/dist/agent-bridge/shared.d.ts +231 -11
  31. package/dist/agent-bridge/shared.d.ts.map +1 -1
  32. package/dist/agent-bridge/shared.js +162 -20
  33. package/dist/agent-bridge/shared.js.map +1 -1
  34. package/dist/agent-bridge/source-types.d.ts +17 -1
  35. package/dist/agent-bridge/source-types.d.ts.map +1 -1
  36. package/dist/agent-bridge/source-types.js.map +1 -1
  37. package/dist/build-info.json +57 -42
  38. package/dist/index.d.ts +7 -6
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +4 -3
  41. package/dist/index.js.map +1 -1
  42. package/dist/internal/babylon-preview-engine.d.ts +3 -0
  43. package/dist/internal/babylon-preview-engine.d.ts.map +1 -0
  44. package/dist/internal/babylon-preview-engine.js +11 -0
  45. package/dist/internal/babylon-preview-engine.js.map +1 -0
  46. package/dist/internal/material-preview.d.ts +22 -0
  47. package/dist/internal/material-preview.d.ts.map +1 -0
  48. package/dist/internal/material-preview.js +186 -0
  49. package/dist/internal/material-preview.js.map +1 -0
  50. package/dist/internal/product-local-editor-cleanup.d.ts +5 -0
  51. package/dist/internal/product-local-editor-cleanup.d.ts.map +1 -0
  52. package/dist/internal/product-local-editor-cleanup.js +20 -0
  53. package/dist/internal/product-local-editor-cleanup.js.map +1 -0
  54. package/dist/internal/project-model-preview.d.ts +4 -0
  55. package/dist/internal/project-model-preview.d.ts.map +1 -0
  56. package/dist/internal/project-model-preview.js +359 -0
  57. package/dist/internal/project-model-preview.js.map +1 -0
  58. package/dist/local-editor-agent-actions.d.ts +2 -4
  59. package/dist/local-editor-agent-actions.d.ts.map +1 -1
  60. package/dist/local-editor-agent-actions.js +56 -32
  61. package/dist/local-editor-agent-actions.js.map +1 -1
  62. package/dist/local-editor-agent-context.d.ts +17 -6
  63. package/dist/local-editor-agent-context.d.ts.map +1 -1
  64. package/dist/local-editor-agent-context.js +47 -0
  65. package/dist/local-editor-agent-context.js.map +1 -1
  66. package/dist/local-editor-harness.d.ts +353 -35
  67. package/dist/local-editor-harness.d.ts.map +1 -1
  68. package/dist/local-editor-harness.js +4115 -1313
  69. package/dist/local-editor-harness.js.map +1 -1
  70. package/dist/local-editor-marker-graph.d.ts +15 -15
  71. package/dist/local-editor-marker-graph.d.ts.map +1 -1
  72. package/dist/local-editor-marker-graph.js +3 -0
  73. package/dist/local-editor-marker-graph.js.map +1 -1
  74. package/dist/local-editor-performance-stats.d.ts +3 -2
  75. package/dist/local-editor-performance-stats.d.ts.map +1 -1
  76. package/dist/local-editor-performance-stats.js.map +1 -1
  77. package/dist/local-editor-prefab-stage-transaction.d.ts +19 -0
  78. package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -0
  79. package/dist/local-editor-prefab-stage-transaction.js +45 -0
  80. package/dist/local-editor-prefab-stage-transaction.js.map +1 -0
  81. package/dist/local-editor-scene-view-interaction-runtime.d.ts +3 -1
  82. package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
  83. package/dist/local-editor-scene-view-interaction-runtime.js +24 -0
  84. package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
  85. package/dist/local-editor-tools.d.ts +19 -0
  86. package/dist/local-editor-tools.d.ts.map +1 -0
  87. package/dist/local-editor-tools.js +56 -0
  88. package/dist/local-editor-tools.js.map +1 -0
  89. package/dist/playable-babylon-rendering.d.ts +9 -0
  90. package/dist/playable-babylon-rendering.d.ts.map +1 -1
  91. package/dist/playable-babylon-rendering.js +162 -6
  92. package/dist/playable-babylon-rendering.js.map +1 -1
  93. package/dist/playable-local-editor-entry.d.ts +68 -0
  94. package/dist/playable-local-editor-entry.d.ts.map +1 -0
  95. package/dist/playable-local-editor-entry.js +424 -0
  96. package/dist/playable-local-editor-entry.js.map +1 -0
  97. package/dist/playable-local-editor-host.d.ts +55 -29
  98. package/dist/playable-local-editor-host.d.ts.map +1 -1
  99. package/dist/playable-local-editor-host.js +50 -11
  100. package/dist/playable-local-editor-host.js.map +1 -1
  101. package/dist/playable-product-local-editor.d.ts +10 -12
  102. package/dist/playable-product-local-editor.d.ts.map +1 -1
  103. package/dist/playable-product-local-editor.js +178 -85
  104. package/dist/playable-product-local-editor.js.map +1 -1
  105. package/dist/playable-product-projection-preview.d.ts +4 -1
  106. package/dist/playable-product-projection-preview.d.ts.map +1 -1
  107. package/dist/playable-product-projection-preview.js +122 -5
  108. package/dist/playable-product-projection-preview.js.map +1 -1
  109. package/dist/playable-product-rendering.d.ts +12 -0
  110. package/dist/playable-product-rendering.d.ts.map +1 -1
  111. package/dist/playable-product-rendering.js +128 -6
  112. package/dist/playable-product-rendering.js.map +1 -1
  113. package/dist/playable-product-scene-capabilities.d.ts +24 -7
  114. package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
  115. package/dist/playable-product-scene-capabilities.js +180 -17
  116. package/dist/playable-product-scene-capabilities.js.map +1 -1
  117. package/dist/playable-project-mode.d.ts +17 -0
  118. package/dist/playable-project-mode.d.ts.map +1 -0
  119. package/dist/playable-project-mode.js +2 -0
  120. package/dist/playable-project-mode.js.map +1 -0
  121. package/dist/playable-runtime-babylon.d.ts +3 -6
  122. package/dist/playable-runtime-babylon.d.ts.map +1 -1
  123. package/dist/playable-runtime-babylon.js +1 -5
  124. package/dist/playable-runtime-babylon.js.map +1 -1
  125. package/dist/playable-sdk.d.ts +16 -9
  126. package/dist/playable-sdk.d.ts.map +1 -1
  127. package/dist/playable-sdk.js +6 -4
  128. package/dist/playable-sdk.js.map +1 -1
  129. package/dist/playable-standard-project.d.ts +23 -14
  130. package/dist/playable-standard-project.d.ts.map +1 -1
  131. package/dist/playable-standard-project.js +57 -20
  132. package/dist/playable-standard-project.js.map +1 -1
  133. package/dist/vite-client.d.ts +4 -0
  134. package/node_modules/@babel/helper-string-parser/lib/index.js +0 -1
  135. package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -1
  136. package/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -1
  137. package/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -1
  138. package/node_modules/@babel/parser/lib/index.js +0 -1
  139. package/node_modules/@babel/types/lib/asserts/assertNode.js +0 -1
  140. package/node_modules/@babel/types/lib/asserts/generated/index.js +0 -1
  141. package/node_modules/@babel/types/lib/ast-types/generated/index.js +0 -1
  142. package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -1
  143. package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -1
  144. package/node_modules/@babel/types/lib/builders/generated/index.js +0 -1
  145. package/node_modules/@babel/types/lib/builders/generated/lowercase.js +0 -1
  146. package/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -1
  147. package/node_modules/@babel/types/lib/builders/productions.js +0 -1
  148. package/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -1
  149. package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -1
  150. package/node_modules/@babel/types/lib/builders/validateNode.js +0 -1
  151. package/node_modules/@babel/types/lib/clone/clone.js +0 -1
  152. package/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -1
  153. package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -1
  154. package/node_modules/@babel/types/lib/clone/cloneNode.js +0 -1
  155. package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -1
  156. package/node_modules/@babel/types/lib/comments/addComment.js +0 -1
  157. package/node_modules/@babel/types/lib/comments/addComments.js +0 -1
  158. package/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -1
  159. package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -1
  160. package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -1
  161. package/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -1
  162. package/node_modules/@babel/types/lib/comments/removeComments.js +0 -1
  163. package/node_modules/@babel/types/lib/constants/generated/index.js +0 -1
  164. package/node_modules/@babel/types/lib/constants/index.js +0 -1
  165. package/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -1
  166. package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -1
  167. package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -1
  168. package/node_modules/@babel/types/lib/converters/toBlock.js +0 -1
  169. package/node_modules/@babel/types/lib/converters/toComputedKey.js +0 -1
  170. package/node_modules/@babel/types/lib/converters/toExpression.js +0 -1
  171. package/node_modules/@babel/types/lib/converters/toIdentifier.js +0 -1
  172. package/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -1
  173. package/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -1
  174. package/node_modules/@babel/types/lib/converters/toStatement.js +0 -1
  175. package/node_modules/@babel/types/lib/converters/valueToNode.js +0 -1
  176. package/node_modules/@babel/types/lib/definitions/core.js +0 -1
  177. package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +0 -1
  178. package/node_modules/@babel/types/lib/definitions/experimental.js +0 -1
  179. package/node_modules/@babel/types/lib/definitions/flow.js +0 -1
  180. package/node_modules/@babel/types/lib/definitions/index.js +0 -1
  181. package/node_modules/@babel/types/lib/definitions/jsx.js +0 -1
  182. package/node_modules/@babel/types/lib/definitions/misc.js +0 -1
  183. package/node_modules/@babel/types/lib/definitions/placeholders.js +0 -1
  184. package/node_modules/@babel/types/lib/definitions/typescript.js +0 -1
  185. package/node_modules/@babel/types/lib/definitions/utils.js +0 -1
  186. package/node_modules/@babel/types/lib/index.js +0 -1
  187. package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -1
  188. package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +0 -1
  189. package/node_modules/@babel/types/lib/modifications/inherits.js +0 -1
  190. package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -1
  191. package/node_modules/@babel/types/lib/modifications/removeProperties.js +0 -1
  192. package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -1
  193. package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +0 -1
  194. package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +0 -1
  195. package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -1
  196. package/node_modules/@babel/types/lib/retrievers/getFunctionName.js +0 -1
  197. package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -1
  198. package/node_modules/@babel/types/lib/traverse/traverse.js +0 -1
  199. package/node_modules/@babel/types/lib/traverse/traverseFast.js +0 -1
  200. package/node_modules/@babel/types/lib/utils/deprecationWarning.js +0 -1
  201. package/node_modules/@babel/types/lib/utils/inherit.js +0 -1
  202. package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +0 -1
  203. package/node_modules/@babel/types/lib/utils/shallowEqual.js +0 -1
  204. package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -1
  205. package/node_modules/@babel/types/lib/validators/generated/index.js +0 -1
  206. package/node_modules/@babel/types/lib/validators/is.js +0 -1
  207. package/node_modules/@babel/types/lib/validators/isBinding.js +0 -1
  208. package/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -1
  209. package/node_modules/@babel/types/lib/validators/isImmutable.js +0 -1
  210. package/node_modules/@babel/types/lib/validators/isLet.js +0 -1
  211. package/node_modules/@babel/types/lib/validators/isNode.js +0 -1
  212. package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +0 -1
  213. package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -1
  214. package/node_modules/@babel/types/lib/validators/isReferenced.js +0 -1
  215. package/node_modules/@babel/types/lib/validators/isScope.js +0 -1
  216. package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +0 -1
  217. package/node_modules/@babel/types/lib/validators/isType.js +0 -1
  218. package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -1
  219. package/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -1
  220. package/node_modules/@babel/types/lib/validators/isVar.js +0 -1
  221. package/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -1
  222. package/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -1
  223. package/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -1
  224. package/node_modules/@babel/types/lib/validators/validate.js +0 -1
  225. package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.d.ts +69 -0
  226. package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.js +132 -0
  227. package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.d.ts +8 -0
  228. package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.js +7 -0
  229. package/node_modules/@babylonjs/loaders/BVH/bvhLoader.d.ts +14 -0
  230. package/node_modules/@babylonjs/loaders/BVH/bvhLoader.js +328 -0
  231. package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.d.ts +9 -0
  232. package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.js +1 -0
  233. package/node_modules/@babylonjs/loaders/BVH/index.d.ts +2 -0
  234. package/node_modules/@babylonjs/loaders/BVH/index.js +3 -0
  235. package/node_modules/@babylonjs/loaders/OBJ/index.d.ts +4 -0
  236. package/node_modules/@babylonjs/loaders/OBJ/index.js +4 -0
  237. package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.d.ts +41 -0
  238. package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.js +230 -0
  239. package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.d.ts +136 -0
  240. package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.js +317 -0
  241. package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.d.ts +4 -0
  242. package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.js +4 -0
  243. package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.d.ts +47 -0
  244. package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.js +1 -0
  245. package/node_modules/@babylonjs/loaders/OBJ/solidParser.d.ts +175 -0
  246. package/node_modules/@babylonjs/loaders/OBJ/solidParser.js +903 -0
  247. package/node_modules/@babylonjs/loaders/SPLAT/index.d.ts +2 -0
  248. package/node_modules/@babylonjs/loaders/SPLAT/index.js +3 -0
  249. package/node_modules/@babylonjs/loaders/SPLAT/sog.d.ts +84 -0
  250. package/node_modules/@babylonjs/loaders/SPLAT/sog.js +294 -0
  251. package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.d.ts +26 -0
  252. package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.js +10 -0
  253. package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.d.ts +100 -0
  254. package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.js +536 -0
  255. package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.d.ts +20 -0
  256. package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.js +15 -0
  257. package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.d.ts +33 -0
  258. package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.js +1 -0
  259. package/node_modules/@babylonjs/loaders/SPLAT/spz.d.ts +11 -0
  260. package/node_modules/@babylonjs/loaders/SPLAT/spz.js +168 -0
  261. package/node_modules/@babylonjs/loaders/STL/index.d.ts +1 -0
  262. package/node_modules/@babylonjs/loaders/STL/index.js +1 -0
  263. package/node_modules/@babylonjs/loaders/STL/stlFileLoader.d.ts +78 -0
  264. package/node_modules/@babylonjs/loaders/STL/stlFileLoader.js +238 -0
  265. package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.d.ts +8 -0
  266. package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.js +7 -0
  267. package/node_modules/@babylonjs/loaders/bvh/license.md +21 -0
  268. package/node_modules/@babylonjs/loaders/dynamic.d.ts +5 -0
  269. package/node_modules/@babylonjs/loaders/dynamic.js +56 -0
  270. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.d.ts +16 -0
  271. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.js +64 -0
  272. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.d.ts +144 -0
  273. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.js +1841 -0
  274. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -0
  275. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.js +95 -0
  276. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.d.ts +71 -0
  277. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.js +254 -0
  278. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.d.ts +13 -0
  279. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.js +130 -0
  280. package/node_modules/@babylonjs/loaders/glTF/1.0/index.d.ts +5 -0
  281. package/node_modules/@babylonjs/loaders/glTF/1.0/index.js +5 -0
  282. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.d.ts +41 -0
  283. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.js +93 -0
  284. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.d.ts +41 -0
  285. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.js +83 -0
  286. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +48 -0
  287. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.js +115 -0
  288. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +39 -0
  289. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +94 -0
  290. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +39 -0
  291. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.js +50 -0
  292. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.d.ts +34 -0
  293. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.js +38 -0
  294. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.d.ts +33 -0
  295. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.js +37 -0
  296. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +53 -0
  297. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -0
  298. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.d.ts +47 -0
  299. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.d.ts +1 -0
  300. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js +251 -0
  301. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.js +77 -0
  302. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +47 -0
  303. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +92 -0
  304. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.d.ts +355 -0
  305. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js +1678 -0
  306. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.d.ts +33 -0
  307. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.js +19 -0
  308. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.d.ts +3 -0
  309. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.js +3 -0
  310. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.d.ts +70 -0
  311. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js +438 -0
  312. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.d.ts +38 -0
  313. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.js +150 -0
  314. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +41 -0
  315. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.js +91 -0
  316. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.d.ts +42 -0
  317. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.js +65 -0
  318. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +43 -0
  319. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.js +79 -0
  320. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.d.ts +49 -0
  321. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.js +119 -0
  322. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.d.ts +43 -0
  323. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.js +58 -0
  324. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.d.ts +43 -0
  325. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js +69 -0
  326. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.d.ts +43 -0
  327. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.js +56 -0
  328. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +42 -0
  329. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +47 -0
  330. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.d.ts +43 -0
  331. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.js +77 -0
  332. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.d.ts +46 -0
  333. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.js +54 -0
  334. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.d.ts +42 -0
  335. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.js +68 -0
  336. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +42 -0
  337. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -0
  338. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +43 -0
  339. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.js +73 -0
  340. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.d.ts +42 -0
  341. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.js +76 -0
  342. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +42 -0
  343. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.js +303 -0
  344. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +42 -0
  345. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.js +66 -0
  346. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.d.ts +112 -0
  347. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.js +262 -0
  348. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.d.ts +43 -0
  349. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.js +82 -0
  350. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.d.ts +45 -0
  351. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.js +109 -0
  352. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +29 -0
  353. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.js +22 -0
  354. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.d.ts +31 -0
  355. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.js +189 -0
  356. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.d.ts +30 -0
  357. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.js +123 -0
  358. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.d.ts +30 -0
  359. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.js +66 -0
  360. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +33 -0
  361. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.js +37 -0
  362. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.d.ts +37 -0
  363. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.js +58 -0
  364. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +39 -0
  365. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.js +47 -0
  366. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +56 -0
  367. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.js +228 -0
  368. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.d.ts +104 -0
  369. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.js +337 -0
  370. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +27 -0
  371. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.js +39 -0
  372. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +27 -0
  373. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.js +38 -0
  374. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.d.ts +4 -0
  375. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.js +212 -0
  376. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.d.ts +45 -0
  377. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.js +100 -0
  378. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.d.ts +43 -0
  379. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.js +44 -0
  380. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.d.ts +306 -0
  381. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.js +884 -0
  382. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.d.ts +450 -0
  383. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.js +2485 -0
  384. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.d.ts +42 -0
  385. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.js +79 -0
  386. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.d.ts +165 -0
  387. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.js +1 -0
  388. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.d.ts +25 -0
  389. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js +32 -0
  390. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.d.ts +262 -0
  391. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.js +1 -0
  392. package/node_modules/@babylonjs/loaders/glTF/2.0/index.d.ts +8 -0
  393. package/node_modules/@babylonjs/loaders/glTF/2.0/index.js +9 -0
  394. package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.d.ts +364 -0
  395. package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.js +1 -0
  396. package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.d.ts +674 -0
  397. package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.js +1034 -0
  398. package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.d.ts +705 -0
  399. package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.js +1126 -0
  400. package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.d.ts +553 -0
  401. package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.js +998 -0
  402. package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.d.ts +15 -0
  403. package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.js +17 -0
  404. package/node_modules/@babylonjs/loaders/glTF/glTFValidation.d.ts +35 -0
  405. package/node_modules/@babylonjs/loaders/glTF/glTFValidation.js +131 -0
  406. package/node_modules/@babylonjs/loaders/glTF/index.d.ts +5 -0
  407. package/node_modules/@babylonjs/loaders/glTF/index.js +6 -0
  408. package/node_modules/@babylonjs/loaders/index.d.ts +6 -0
  409. package/node_modules/@babylonjs/loaders/index.js +7 -0
  410. package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.d.ts +1 -0
  411. package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.js +15 -0
  412. package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.d.ts +1 -0
  413. package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.js +13 -0
  414. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.d.ts +2 -0
  415. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.js +18 -0
  416. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.d.ts +2 -0
  417. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.js +15 -0
  418. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.d.ts +2 -0
  419. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.js +3 -0
  420. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.d.ts +2 -0
  421. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.js +34 -0
  422. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.d.ts +2 -0
  423. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.js +3 -0
  424. package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.d.ts +3 -0
  425. package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.js +4 -0
  426. package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.d.ts +1 -0
  427. package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.js +15 -0
  428. package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.d.ts +1 -0
  429. package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.js +15 -0
  430. package/node_modules/@babylonjs/loaders/legacy/legacy.d.ts +8 -0
  431. package/node_modules/@babylonjs/loaders/legacy/legacy.js +10 -0
  432. package/node_modules/@babylonjs/loaders/license.md +71 -0
  433. package/node_modules/@babylonjs/loaders/package.json +49 -0
  434. package/node_modules/@babylonjs/loaders/readme.md +23 -0
  435. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts +22 -0
  436. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts.map +1 -0
  437. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js +187 -0
  438. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js.map +1 -0
  439. package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -0
  440. package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
  441. package/node_modules/@fps-games/babylon-renderer/dist/index.js +3 -0
  442. package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
  443. package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts +19 -0
  444. package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts.map +1 -0
  445. package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js +212 -0
  446. package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js.map +1 -0
  447. package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts +17 -2
  448. package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts.map +1 -1
  449. package/node_modules/@fps-games/babylon-renderer/dist/plugin.js +192 -17
  450. package/node_modules/@fps-games/babylon-renderer/dist/plugin.js.map +1 -1
  451. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +2 -0
  452. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
  453. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +139 -3
  454. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
  455. package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts +4 -0
  456. package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts.map +1 -1
  457. package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -1
  458. package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts +1 -0
  459. package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts.map +1 -1
  460. package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js +1 -0
  461. package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js.map +1 -1
  462. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts +14 -0
  463. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts.map +1 -0
  464. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js +14 -0
  465. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js.map +1 -0
  466. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts +59 -0
  467. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts.map +1 -0
  468. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js +725 -0
  469. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js.map +1 -0
  470. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts +136 -0
  471. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts.map +1 -0
  472. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js +2735 -0
  473. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js.map +1 -0
  474. package/node_modules/@fps-games/babylon-renderer/package.json +7 -7
  475. package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +1 -1
  476. package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
  477. package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -1
  478. package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
  479. package/node_modules/@fps-games/editor-babylon/dist/index.js +2 -1
  480. package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
  481. package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts +2 -0
  482. package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts.map +1 -1
  483. package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js +59 -6
  484. package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js.map +1 -1
  485. package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js +24 -0
  486. package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js.map +1 -1
  487. package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -1
  488. package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +81 -11
  489. package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -1
  490. package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +2 -8
  491. package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -1
  492. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +26 -5
  493. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
  494. package/node_modules/@fps-games/editor-babylon/dist/projection.js +396 -363
  495. package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
  496. package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts +4 -0
  497. package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts.map +1 -1
  498. package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +76 -10
  499. package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
  500. package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.d.ts.map +1 -1
  501. package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js +85 -22
  502. package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js.map +1 -1
  503. package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts +46 -0
  504. package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts.map +1 -0
  505. package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js +304 -0
  506. package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js.map +1 -0
  507. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts +87 -0
  508. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -0
  509. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +1746 -0
  510. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -0
  511. package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +11 -3
  512. package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
  513. package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +105 -15
  514. package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
  515. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts +1 -0
  516. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
  517. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +249 -15
  518. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
  519. package/node_modules/@fps-games/editor-babylon/dist/types.d.ts +1 -1
  520. package/node_modules/@fps-games/editor-babylon/dist/types.d.ts.map +1 -1
  521. package/node_modules/@fps-games/editor-babylon/dist/types.js.map +1 -1
  522. package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts +25 -0
  523. package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts.map +1 -0
  524. package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js +44 -0
  525. package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js.map +1 -0
  526. package/node_modules/@fps-games/editor-babylon/package.json +6 -5
  527. package/node_modules/@fps-games/editor-browser/dist/index.d.ts +13 -11
  528. package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
  529. package/node_modules/@fps-games/editor-browser/dist/index.js +9 -9
  530. package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
  531. package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts +35 -0
  532. package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts.map +1 -0
  533. package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js +136 -0
  534. package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js.map +1 -0
  535. package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts +46 -0
  536. package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts.map +1 -0
  537. package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js +283 -0
  538. package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js.map +1 -0
  539. package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts +2 -0
  540. package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts.map +1 -0
  541. package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js +36 -0
  542. package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js.map +1 -0
  543. package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts +2 -0
  544. package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts.map +1 -1
  545. package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js +17 -0
  546. package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -1
  547. package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.d.ts +12 -0
  548. package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.d.ts.map +1 -0
  549. package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js +67 -0
  550. package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js.map +1 -0
  551. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts +6 -0
  552. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts.map +1 -0
  553. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js +9 -0
  554. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js.map +1 -0
  555. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts +7 -0
  556. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts.map +1 -0
  557. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js +20 -0
  558. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js.map +1 -0
  559. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts +9 -0
  560. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts.map +1 -0
  561. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js +219 -0
  562. package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js.map +1 -0
  563. package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts +14 -0
  564. package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts.map +1 -0
  565. package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js +42 -0
  566. package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js.map +1 -0
  567. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +1 -1
  568. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -1
  569. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +8 -0
  570. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -1
  571. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.d.ts +27 -0
  572. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.d.ts.map +1 -0
  573. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js +288 -0
  574. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js.map +1 -0
  575. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.d.ts.map +1 -1
  576. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +157 -77
  577. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
  578. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts.map +1 -1
  579. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js +27 -21
  580. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -1
  581. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +19 -0
  582. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -0
  583. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +44 -0
  584. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -0
  585. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +36 -6
  586. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
  587. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +829 -866
  588. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
  589. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts +8 -7
  590. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts.map +1 -1
  591. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js +1 -7
  592. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js.map +1 -1
  593. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts +7 -0
  594. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts.map +1 -0
  595. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js +20 -0
  596. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js.map +1 -0
  597. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +6 -7
  598. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
  599. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +266 -114
  600. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
  601. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
  602. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
  603. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +34 -0
  604. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
  605. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts.map +1 -1
  606. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js +3 -17
  607. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js.map +1 -1
  608. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts +14 -0
  609. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts.map +1 -1
  610. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js +44 -62
  611. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js.map +1 -1
  612. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +30 -8
  613. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
  614. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +911 -698
  615. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
  616. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts +10 -37
  617. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -1
  618. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +29 -105
  619. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -1
  620. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
  621. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +29 -110
  622. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
  623. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +1 -3
  624. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
  625. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +6 -90
  626. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
  627. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
  628. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +9 -54
  629. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
  630. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts +16 -1
  631. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map +1 -1
  632. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js +44 -39
  633. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js.map +1 -1
  634. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts +4 -0
  635. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts.map +1 -0
  636. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js +44 -0
  637. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js.map +1 -0
  638. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts.map +1 -1
  639. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js +35 -44
  640. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map +1 -1
  641. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.d.ts.map +1 -1
  642. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js +40 -24
  643. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js.map +1 -1
  644. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.d.ts.map +1 -1
  645. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js +2 -20
  646. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js.map +1 -1
  647. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +114 -343
  648. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
  649. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
  650. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts +13 -14
  651. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
  652. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +120 -134
  653. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
  654. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +6 -10
  655. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
  656. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +2019 -861
  657. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
  658. package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts +13 -0
  659. package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts.map +1 -0
  660. package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js +15 -0
  661. package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js.map +1 -0
  662. package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts +2 -3
  663. package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts.map +1 -1
  664. package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js +0 -180
  665. package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js.map +1 -1
  666. package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts +5 -0
  667. package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts.map +1 -0
  668. package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js +5 -0
  669. package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js.map +1 -0
  670. package/node_modules/@fps-games/editor-browser/package.json +15 -4
  671. package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts +22 -0
  672. package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts.map +1 -0
  673. package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js +226 -0
  674. package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js.map +1 -0
  675. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -1
  676. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
  677. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +94 -2
  678. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
  679. package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +24 -2
  680. package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
  681. package/node_modules/@fps-games/editor-core/dist/editor-session.js +70 -10
  682. package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
  683. package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts +113 -0
  684. package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts.map +1 -0
  685. package/node_modules/@fps-games/editor-core/dist/editor-tools.js +615 -0
  686. package/node_modules/@fps-games/editor-core/dist/editor-tools.js.map +1 -0
  687. package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +46 -0
  688. package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
  689. package/node_modules/@fps-games/editor-core/dist/inspector.js +62 -0
  690. package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
  691. package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +1 -0
  692. package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
  693. package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
  694. package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts +11 -2
  695. package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts.map +1 -1
  696. package/node_modules/@fps-games/editor-core/dist/viewport-tools.js +12 -1
  697. package/node_modules/@fps-games/editor-core/dist/viewport-tools.js.map +1 -1
  698. package/node_modules/@fps-games/editor-core/package.json +14 -6
  699. package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
  700. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js +14 -3
  701. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -1
  702. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts +1 -1
  703. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts.map +1 -1
  704. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js +1 -1
  705. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -1
  706. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +14 -0
  707. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -1
  708. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +49 -1
  709. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -1
  710. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts +1 -0
  711. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -1
  712. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +63 -2
  713. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
  714. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -1
  715. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +48 -6
  716. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -1
  717. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts +1 -1
  718. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts.map +1 -1
  719. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js +1 -1
  720. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js.map +1 -1
  721. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts.map +1 -1
  722. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js +15 -1
  723. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js.map +1 -1
  724. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts.map +1 -1
  725. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js +3 -0
  726. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js.map +1 -1
  727. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts +6 -1
  728. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts.map +1 -1
  729. package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.js.map +1 -1
  730. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +28 -3
  731. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
  732. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +314 -6
  733. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
  734. package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts +2 -0
  735. package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts.map +1 -1
  736. package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js +2 -0
  737. package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -1
  738. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts +11 -0
  739. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts.map +1 -0
  740. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js +27 -0
  741. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js.map +1 -0
  742. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts +5 -0
  743. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts.map +1 -0
  744. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js +285 -0
  745. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js.map +1 -0
  746. package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +7 -3
  747. package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
  748. package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -1
  749. package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +4 -0
  750. package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
  751. package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +7 -0
  752. package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
  753. package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
  754. package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +23 -81
  755. package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
  756. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts +41 -0
  757. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts.map +1 -0
  758. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js +93 -0
  759. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js.map +1 -0
  760. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts +29 -0
  761. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts.map +1 -0
  762. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js +77 -0
  763. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js.map +1 -0
  764. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts +51 -0
  765. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts.map +1 -0
  766. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js +105 -0
  767. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js.map +1 -0
  768. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts +60 -0
  769. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts.map +1 -0
  770. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js +287 -0
  771. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js.map +1 -0
  772. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +6 -1
  773. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -1
  774. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
  775. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +1 -0
  776. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
  777. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +53 -17
  778. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
  779. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +16 -8
  780. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
  781. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +10 -6
  782. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
  783. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +5 -3
  784. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
  785. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +2 -1
  786. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
  787. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
  788. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +134 -66
  789. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
  790. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts +11 -0
  791. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -1
  792. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +21 -14
  793. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -1
  794. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +17 -9
  795. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -1
  796. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
  797. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -1
  798. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +20 -0
  799. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
  800. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
  801. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +49 -10
  802. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
  803. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +2 -2
  804. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
  805. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +18 -0
  806. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
  807. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts +7 -0
  808. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts.map +1 -1
  809. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js +130 -20
  810. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js.map +1 -1
  811. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts +1 -1
  812. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts.map +1 -1
  813. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js +12 -3
  814. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js.map +1 -1
  815. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts +11 -0
  816. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts.map +1 -0
  817. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js +136 -0
  818. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js.map +1 -0
  819. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts +1 -0
  820. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts.map +1 -1
  821. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js +1 -0
  822. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js.map +1 -1
  823. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts +36 -51
  824. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts.map +1 -1
  825. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js +40 -65
  826. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js.map +1 -1
  827. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +5 -2
  828. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
  829. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +207 -1
  830. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
  831. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts +1 -0
  832. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
  833. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +3 -0
  834. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
  835. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +18 -7
  836. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
  837. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +110 -18
  838. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
  839. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts +9 -0
  840. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts.map +1 -1
  841. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js +16 -1
  842. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js.map +1 -1
  843. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts +5 -2
  844. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
  845. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +22 -2
  846. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
  847. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.d.ts +4 -0
  848. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.d.ts.map +1 -0
  849. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js +4 -0
  850. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js.map +1 -0
  851. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts +4 -0
  852. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts.map +1 -0
  853. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js +86 -0
  854. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js.map +1 -0
  855. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts +9 -0
  856. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts.map +1 -0
  857. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js +76 -0
  858. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js.map +1 -0
  859. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts +34 -0
  860. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts.map +1 -0
  861. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js +2 -0
  862. package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js.map +1 -0
  863. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
  864. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +144 -0
  865. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
  866. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +16 -0
  867. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
  868. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -1
  869. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
  870. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +1 -0
  871. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
  872. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +2 -1
  873. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
  874. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -1
  875. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts +2 -0
  876. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts.map +1 -1
  877. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +241 -13
  878. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -1
  879. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts +1 -0
  880. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts.map +1 -1
  881. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js +1 -0
  882. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -1
  883. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts +31 -0
  884. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts.map +1 -0
  885. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js +170 -0
  886. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js.map +1 -0
  887. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts +153 -13
  888. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts.map +1 -1
  889. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -1
  890. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts +17 -0
  891. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts.map +1 -1
  892. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js +1295 -3
  893. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js.map +1 -1
  894. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts +4 -0
  895. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
  896. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +54 -0
  897. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
  898. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts.map +1 -1
  899. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js +57 -34
  900. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -1
  901. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -1
  902. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +4 -1
  903. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -1
  904. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +4 -0
  905. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
  906. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
  907. package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -1
  908. package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +20 -198
  909. package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -1
  910. package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.d.ts.map +1 -1
  911. package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js +5 -1
  912. package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js.map +1 -1
  913. package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts +5 -0
  914. package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -1
  915. package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +144 -8
  916. package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
  917. package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts +1 -1
  918. package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts.map +1 -1
  919. package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js +30 -1
  920. package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js.map +1 -1
  921. package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts +6 -0
  922. package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts.map +1 -1
  923. package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -1
  924. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +31 -3
  925. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
  926. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts +5 -2
  927. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
  928. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +40 -4
  929. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
  930. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +1 -0
  931. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
  932. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +1 -0
  933. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
  934. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
  935. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +116 -3
  936. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
  937. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +2 -1
  938. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
  939. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js +1 -0
  940. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
  941. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts +17 -1
  942. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts.map +1 -1
  943. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js +50 -2
  944. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js.map +1 -1
  945. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts +1 -0
  946. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
  947. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +101 -5
  948. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
  949. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts +5 -6
  950. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts.map +1 -1
  951. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js +31 -17
  952. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js.map +1 -1
  953. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.d.ts +14 -0
  954. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.d.ts.map +1 -0
  955. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js +101 -0
  956. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js.map +1 -0
  957. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts +23 -0
  958. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts.map +1 -0
  959. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js +180 -0
  960. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js.map +1 -0
  961. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +6 -0
  962. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
  963. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
  964. package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
  965. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +417 -2
  966. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +1 -1
  967. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js +692 -2
  968. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -1
  969. package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +23 -3
  970. package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +1 -1
  971. package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +1 -1
  972. package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts +55 -0
  973. package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts.map +1 -0
  974. package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js +2 -0
  975. package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js.map +1 -0
  976. package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +3 -18
  977. package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
  978. package/node_modules/@fps-games/editor-protocol/dist/index.js +1 -0
  979. package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
  980. package/node_modules/@fps-games/editor-protocol/package.json +2 -2
  981. package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.d.ts.map +1 -1
  982. package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js +5 -0
  983. package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js.map +1 -1
  984. package/node_modules/@fps-games/editor-tooling/dist/vite.d.ts.map +1 -1
  985. package/node_modules/@fps-games/editor-tooling/dist/vite.js +151 -5
  986. package/node_modules/@fps-games/editor-tooling/dist/vite.js.map +1 -1
  987. package/node_modules/@fps-games/editor-tooling/package.json +3 -3
  988. package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts +107 -0
  989. package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts.map +1 -0
  990. package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js +770 -0
  991. package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js.map +1 -0
  992. package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts +21 -0
  993. package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts.map +1 -0
  994. package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js +172 -0
  995. package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js.map +1 -0
  996. package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts +14 -0
  997. package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts.map +1 -0
  998. package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js +32 -0
  999. package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js.map +1 -0
  1000. package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts +3 -0
  1001. package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts.map +1 -0
  1002. package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js +746 -0
  1003. package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js.map +1 -0
  1004. package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts +3 -0
  1005. package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts.map +1 -0
  1006. package/node_modules/@fps-games/editor-ui/dist/gallery.js +3 -0
  1007. package/node_modules/@fps-games/editor-ui/dist/gallery.js.map +1 -0
  1008. package/node_modules/@fps-games/editor-ui/dist/index.d.ts +5 -0
  1009. package/node_modules/@fps-games/editor-ui/dist/index.d.ts.map +1 -0
  1010. package/node_modules/@fps-games/editor-ui/dist/index.js +5 -0
  1011. package/node_modules/@fps-games/editor-ui/dist/index.js.map +1 -0
  1012. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts +7 -0
  1013. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts.map +1 -0
  1014. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js +29 -0
  1015. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js.map +1 -0
  1016. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts +2 -0
  1017. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts.map +1 -0
  1018. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js +95 -0
  1019. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js.map +1 -0
  1020. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts +28 -0
  1021. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts.map +1 -0
  1022. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js +387 -0
  1023. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js.map +1 -0
  1024. package/node_modules/@fps-games/editor-ui/package.json +23 -0
  1025. package/node_modules/@fps-games/playable-assets/package.json +1 -1
  1026. package/node_modules/@fps-games/playable-contracts/dist/index.d.ts +1 -0
  1027. package/node_modules/@fps-games/playable-contracts/dist/index.d.ts.map +1 -1
  1028. package/node_modules/@fps-games/playable-contracts/dist/index.js +1 -0
  1029. package/node_modules/@fps-games/playable-contracts/dist/index.js.map +1 -1
  1030. package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts +116 -0
  1031. package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts.map +1 -0
  1032. package/node_modules/@fps-games/playable-contracts/dist/material-owner.js +403 -0
  1033. package/node_modules/@fps-games/playable-contracts/dist/material-owner.js.map +1 -0
  1034. package/node_modules/@fps-games/playable-contracts/package.json +1 -1
  1035. package/node_modules/@fps-games/playable-rendering/dist/index.d.ts +3 -0
  1036. package/node_modules/@fps-games/playable-rendering/dist/index.d.ts.map +1 -1
  1037. package/node_modules/@fps-games/playable-rendering/dist/index.js +3 -0
  1038. package/node_modules/@fps-games/playable-rendering/dist/index.js.map +1 -1
  1039. package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js +5 -25
  1040. package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js.map +1 -1
  1041. package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts +3 -0
  1042. package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts.map +1 -1
  1043. package/node_modules/@fps-games/playable-rendering/dist/runtime.js +3 -0
  1044. package/node_modules/@fps-games/playable-rendering/dist/runtime.js.map +1 -1
  1045. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts +61 -0
  1046. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts.map +1 -0
  1047. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js +176 -0
  1048. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js.map +1 -0
  1049. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts +84 -0
  1050. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts.map +1 -0
  1051. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js +362 -0
  1052. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js.map +1 -0
  1053. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts +167 -0
  1054. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts.map +1 -0
  1055. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js +484 -0
  1056. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js.map +1 -0
  1057. package/node_modules/@fps-games/playable-rendering/package.json +2 -2
  1058. package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts +5 -0
  1059. package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts.map +1 -1
  1060. package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js +1 -0
  1061. package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js.map +1 -1
  1062. package/node_modules/@fps-games/playable-runtime/package.json +12 -12
  1063. package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
  1064. package/node_modules/@fps-games/playable-scene/package.json +2 -2
  1065. package/node_modules/@fps-games/plugin-api/package.json +1 -1
  1066. package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
  1067. package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
  1068. package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
  1069. package/node_modules/@fps-games/plugin-assets/package.json +5 -5
  1070. package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts +6 -0
  1071. package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts.map +1 -0
  1072. package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js +16 -0
  1073. package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js.map +1 -0
  1074. package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts +7 -0
  1075. package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts.map +1 -0
  1076. package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js +47 -0
  1077. package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js.map +1 -0
  1078. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +306 -0
  1079. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -0
  1080. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +1237 -0
  1081. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -0
  1082. package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts +8 -0
  1083. package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts.map +1 -0
  1084. package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js +32 -0
  1085. package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js.map +1 -0
  1086. package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +2 -0
  1087. package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts.map +1 -0
  1088. package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +2 -0
  1089. package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -0
  1090. package/node_modules/@fps-games/plugin-hierarchy/package.json +57 -0
  1091. package/node_modules/@fps-games/plugin-host/package.json +2 -2
  1092. package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
  1093. package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
  1094. package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
  1095. package/node_modules/@fps-games/plugin-markers/package.json +5 -5
  1096. package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
  1097. package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
  1098. package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
  1099. package/node_modules/@fps-games/plugin-materials/package.json +5 -5
  1100. package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
  1101. package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
  1102. package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
  1103. package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
  1104. package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
  1105. package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
  1106. package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
  1107. package/node_modules/@fps-games/plugin-scene/package.json +5 -5
  1108. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts +8 -0
  1109. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts.map +1 -0
  1110. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js +35 -0
  1111. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js.map +1 -0
  1112. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts +11 -0
  1113. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts.map +1 -0
  1114. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js +14 -0
  1115. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js.map +1 -0
  1116. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +2 -0
  1117. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts.map +1 -0
  1118. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +2 -0
  1119. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -0
  1120. package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +53 -0
  1121. package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
  1122. package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
  1123. package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
  1124. package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
  1125. package/node_modules/@playcanvas/observer/LICENSE +19 -0
  1126. package/node_modules/@playcanvas/observer/README.md +72 -0
  1127. package/node_modules/@playcanvas/observer/dist/index.cjs +2033 -0
  1128. package/node_modules/@playcanvas/observer/dist/index.js +2039 -0
  1129. package/node_modules/@playcanvas/observer/dist/index.mjs +2026 -0
  1130. package/node_modules/@playcanvas/observer/package.json +78 -0
  1131. package/node_modules/@playcanvas/observer/types/event-handle.d.ts +41 -0
  1132. package/node_modules/@playcanvas/observer/types/events.d.ts +162 -0
  1133. package/node_modules/@playcanvas/observer/types/history.d.ts +123 -0
  1134. package/node_modules/@playcanvas/observer/types/index.d.ts +15 -0
  1135. package/node_modules/@playcanvas/observer/types/observer-history.d.ts +32 -0
  1136. package/node_modules/@playcanvas/observer/types/observer-list.d.ts +39 -0
  1137. package/node_modules/@playcanvas/observer/types/observer.d.ts +157 -0
  1138. package/node_modules/@playcanvas/observer/types/utils.d.ts +33 -0
  1139. package/node_modules/@playcanvas/pcui/LICENSE +19 -0
  1140. package/node_modules/@playcanvas/pcui/README.md +164 -0
  1141. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
  1142. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
  1143. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
  1144. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
  1145. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
  1146. package/node_modules/@playcanvas/pcui/dist/module/src/Math/color-value.mjs +77 -0
  1147. package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingBase/index.mjs +215 -0
  1148. package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
  1149. package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
  1150. package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
  1151. package/node_modules/@playcanvas/pcui/dist/module/src/class.mjs +19 -0
  1152. package/node_modules/@playcanvas/pcui/dist/module/src/components/ArrayInput/index.mjs +498 -0
  1153. package/node_modules/@playcanvas/pcui/dist/module/src/components/BooleanInput/index.mjs +122 -0
  1154. package/node_modules/@playcanvas/pcui/dist/module/src/components/Button/index.mjs +119 -0
  1155. package/node_modules/@playcanvas/pcui/dist/module/src/components/Canvas/index.mjs +104 -0
  1156. package/node_modules/@playcanvas/pcui/dist/module/src/components/Code/index.mjs +43 -0
  1157. package/node_modules/@playcanvas/pcui/dist/module/src/components/ColorPicker/index.mjs +619 -0
  1158. package/node_modules/@playcanvas/pcui/dist/module/src/components/Container/index.mjs +642 -0
  1159. package/node_modules/@playcanvas/pcui/dist/module/src/components/Divider/index.mjs +20 -0
  1160. package/node_modules/@playcanvas/pcui/dist/module/src/components/Element/index.mjs +829 -0
  1161. package/node_modules/@playcanvas/pcui/dist/module/src/components/GradientPicker/index.mjs +1136 -0
  1162. package/node_modules/@playcanvas/pcui/dist/module/src/components/GridView/index.mjs +448 -0
  1163. package/node_modules/@playcanvas/pcui/dist/module/src/components/GridViewItem/index.mjs +152 -0
  1164. package/node_modules/@playcanvas/pcui/dist/module/src/components/InfoBox/index.mjs +90 -0
  1165. package/node_modules/@playcanvas/pcui/dist/module/src/components/InputElement/index.mjs +186 -0
  1166. package/node_modules/@playcanvas/pcui/dist/module/src/components/Label/index.mjs +124 -0
  1167. package/node_modules/@playcanvas/pcui/dist/module/src/components/LabelGroup/index.mjs +74 -0
  1168. package/node_modules/@playcanvas/pcui/dist/module/src/components/Menu/index.mjs +174 -0
  1169. package/node_modules/@playcanvas/pcui/dist/module/src/components/MenuItem/index.mjs +223 -0
  1170. package/node_modules/@playcanvas/pcui/dist/module/src/components/NumericInput/index.mjs +400 -0
  1171. package/node_modules/@playcanvas/pcui/dist/module/src/components/Overlay/index.mjs +108 -0
  1172. package/node_modules/@playcanvas/pcui/dist/module/src/components/Panel/index.mjs +400 -0
  1173. package/node_modules/@playcanvas/pcui/dist/module/src/components/Progress/index.mjs +45 -0
  1174. package/node_modules/@playcanvas/pcui/dist/module/src/components/RadioButton/index.mjs +113 -0
  1175. package/node_modules/@playcanvas/pcui/dist/module/src/components/SelectInput/index.mjs +1085 -0
  1176. package/node_modules/@playcanvas/pcui/dist/module/src/components/SliderInput/index.mjs +333 -0
  1177. package/node_modules/@playcanvas/pcui/dist/module/src/components/Spinner/index.mjs +34 -0
  1178. package/node_modules/@playcanvas/pcui/dist/module/src/components/TextAreaInput/index.mjs +50 -0
  1179. package/node_modules/@playcanvas/pcui/dist/module/src/components/TextInput/index.mjs +98 -0
  1180. package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeView/index.mjs +1131 -0
  1181. package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeViewItem/index.mjs +500 -0
  1182. package/node_modules/@playcanvas/pcui/dist/module/src/components/VectorInput/index.mjs +366 -0
  1183. package/node_modules/@playcanvas/pcui/dist/module/src/helpers/search.mjs +194 -0
  1184. package/node_modules/@playcanvas/pcui/dist/module/src/helpers/utils.mjs +43 -0
  1185. package/node_modules/@playcanvas/pcui/dist/module/src/index.mjs +56 -0
  1186. package/node_modules/@playcanvas/pcui/dist/pcui-theme-green.scss +2798 -0
  1187. package/node_modules/@playcanvas/pcui/dist/pcui-theme-grey.scss +2798 -0
  1188. package/node_modules/@playcanvas/pcui/package.json +150 -0
  1189. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
  1190. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
  1191. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
  1192. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
  1193. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
  1194. package/node_modules/@playcanvas/pcui/react/dist/module/src/Math/color-value.mjs +77 -0
  1195. package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingBase/index.mjs +215 -0
  1196. package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
  1197. package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
  1198. package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
  1199. package/node_modules/@playcanvas/pcui/react/dist/module/src/class.mjs +19 -0
  1200. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/component.mjs +11 -0
  1201. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/index.mjs +498 -0
  1202. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/component.mjs +11 -0
  1203. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/index.mjs +122 -0
  1204. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/component.mjs +16 -0
  1205. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/index.mjs +119 -0
  1206. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/component.mjs +16 -0
  1207. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/index.mjs +104 -0
  1208. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/component.mjs +11 -0
  1209. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/index.mjs +43 -0
  1210. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/component.mjs +16 -0
  1211. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/index.mjs +619 -0
  1212. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/component.mjs +36 -0
  1213. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/index.mjs +642 -0
  1214. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/component.mjs +11 -0
  1215. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/index.mjs +20 -0
  1216. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/component.mjs +107 -0
  1217. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/index.mjs +829 -0
  1218. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/component.mjs +16 -0
  1219. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/index.mjs +1136 -0
  1220. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/component.mjs +38 -0
  1221. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/index.mjs +448 -0
  1222. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/component.mjs +11 -0
  1223. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/index.mjs +152 -0
  1224. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/component.mjs +16 -0
  1225. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/index.mjs +90 -0
  1226. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InputElement/index.mjs +186 -0
  1227. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/component.mjs +16 -0
  1228. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/index.mjs +124 -0
  1229. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/component.mjs +42 -0
  1230. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/index.mjs +74 -0
  1231. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/component.mjs +23 -0
  1232. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/index.mjs +174 -0
  1233. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/MenuItem/index.mjs +223 -0
  1234. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/component.mjs +11 -0
  1235. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/index.mjs +400 -0
  1236. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/component.mjs +11 -0
  1237. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/index.mjs +108 -0
  1238. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/component.mjs +32 -0
  1239. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/index.mjs +400 -0
  1240. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/component.mjs +11 -0
  1241. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/index.mjs +45 -0
  1242. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/component.mjs +11 -0
  1243. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/index.mjs +113 -0
  1244. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/component.mjs +21 -0
  1245. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/index.mjs +1085 -0
  1246. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/component.mjs +12 -0
  1247. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/index.mjs +333 -0
  1248. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/component.mjs +16 -0
  1249. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/index.mjs +34 -0
  1250. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/component.mjs +11 -0
  1251. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/index.mjs +50 -0
  1252. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/component.mjs +23 -0
  1253. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/index.mjs +98 -0
  1254. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/component.mjs +52 -0
  1255. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/index.mjs +1131 -0
  1256. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/component.mjs +33 -0
  1257. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/index.mjs +500 -0
  1258. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/component.mjs +11 -0
  1259. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/index.mjs +366 -0
  1260. package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/search.mjs +194 -0
  1261. package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/utils.mjs +43 -0
  1262. package/node_modules/@playcanvas/pcui/react/dist/module/src/index.mjs +39 -0
  1263. package/node_modules/@playcanvas/pcui/react/package.json +18 -0
  1264. package/node_modules/@playcanvas/pcui/react/types/Math/color-value.d.ts +3 -0
  1265. package/node_modules/@playcanvas/pcui/react/types/binding/BindingBase/index.d.ts +178 -0
  1266. package/node_modules/@playcanvas/pcui/react/types/binding/BindingElementToObservers/index.d.ts +24 -0
  1267. package/node_modules/@playcanvas/pcui/react/types/binding/BindingObserversToElement/index.d.ts +40 -0
  1268. package/node_modules/@playcanvas/pcui/react/types/binding/BindingTwoWay/index.d.ts +54 -0
  1269. package/node_modules/@playcanvas/pcui/react/types/binding/index.d.ts +5 -0
  1270. package/node_modules/@playcanvas/pcui/react/types/class.d.ts +17 -0
  1271. package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/component.d.ts +9 -0
  1272. package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/index.d.ts +140 -0
  1273. package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/component.d.ts +9 -0
  1274. package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/index.d.ts +41 -0
  1275. package/node_modules/@playcanvas/pcui/react/types/components/Button/component.d.ts +11 -0
  1276. package/node_modules/@playcanvas/pcui/react/types/components/Button/index.d.ts +75 -0
  1277. package/node_modules/@playcanvas/pcui/react/types/components/Canvas/component.d.ts +11 -0
  1278. package/node_modules/@playcanvas/pcui/react/types/components/Canvas/index.d.ts +61 -0
  1279. package/node_modules/@playcanvas/pcui/react/types/components/Code/component.d.ts +9 -0
  1280. package/node_modules/@playcanvas/pcui/react/types/components/Code/index.d.ts +33 -0
  1281. package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/component.d.ts +11 -0
  1282. package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/index.d.ts +99 -0
  1283. package/node_modules/@playcanvas/pcui/react/types/components/Container/component.d.ts +15 -0
  1284. package/node_modules/@playcanvas/pcui/react/types/components/Container/index.d.ts +292 -0
  1285. package/node_modules/@playcanvas/pcui/react/types/components/Divider/component.d.ts +10 -0
  1286. package/node_modules/@playcanvas/pcui/react/types/components/Divider/index.d.ts +13 -0
  1287. package/node_modules/@playcanvas/pcui/react/types/components/Element/component.d.ts +23 -0
  1288. package/node_modules/@playcanvas/pcui/react/types/components/Element/index.d.ts +671 -0
  1289. package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/component.d.ts +11 -0
  1290. package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/index.d.ts +152 -0
  1291. package/node_modules/@playcanvas/pcui/react/types/components/GridView/component.d.ts +14 -0
  1292. package/node_modules/@playcanvas/pcui/react/types/components/GridView/index.d.ts +103 -0
  1293. package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/component.d.ts +9 -0
  1294. package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/index.d.ts +82 -0
  1295. package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/component.d.ts +11 -0
  1296. package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/index.d.ts +71 -0
  1297. package/node_modules/@playcanvas/pcui/react/types/components/InputElement/index.d.ts +84 -0
  1298. package/node_modules/@playcanvas/pcui/react/types/components/Label/component.d.ts +11 -0
  1299. package/node_modules/@playcanvas/pcui/react/types/components/Label/index.d.ts +85 -0
  1300. package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/component.d.ts +10 -0
  1301. package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/index.d.ts +62 -0
  1302. package/node_modules/@playcanvas/pcui/react/types/components/Menu/component.d.ts +14 -0
  1303. package/node_modules/@playcanvas/pcui/react/types/components/Menu/index.d.ts +70 -0
  1304. package/node_modules/@playcanvas/pcui/react/types/components/MenuItem/index.d.ts +139 -0
  1305. package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/component.d.ts +9 -0
  1306. package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/index.d.ts +173 -0
  1307. package/node_modules/@playcanvas/pcui/react/types/components/Overlay/component.d.ts +9 -0
  1308. package/node_modules/@playcanvas/pcui/react/types/components/Overlay/index.d.ts +53 -0
  1309. package/node_modules/@playcanvas/pcui/react/types/components/Panel/component.d.ts +16 -0
  1310. package/node_modules/@playcanvas/pcui/react/types/components/Panel/index.d.ts +178 -0
  1311. package/node_modules/@playcanvas/pcui/react/types/components/Progress/component.d.ts +9 -0
  1312. package/node_modules/@playcanvas/pcui/react/types/components/Progress/index.d.ts +33 -0
  1313. package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/component.d.ts +9 -0
  1314. package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/index.d.ts +33 -0
  1315. package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/component.d.ts +12 -0
  1316. package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/index.d.ts +278 -0
  1317. package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/component.d.ts +10 -0
  1318. package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/index.d.ts +133 -0
  1319. package/node_modules/@playcanvas/pcui/react/types/components/Spinner/component.d.ts +11 -0
  1320. package/node_modules/@playcanvas/pcui/react/types/components/Spinner/index.d.ts +27 -0
  1321. package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/component.d.ts +9 -0
  1322. package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/index.d.ts +24 -0
  1323. package/node_modules/@playcanvas/pcui/react/types/components/TextInput/component.d.ts +12 -0
  1324. package/node_modules/@playcanvas/pcui/react/types/components/TextInput/index.d.ts +40 -0
  1325. package/node_modules/@playcanvas/pcui/react/types/components/TreeView/component.d.ts +17 -0
  1326. package/node_modules/@playcanvas/pcui/react/types/components/TreeView/index.d.ts +359 -0
  1327. package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/component.d.ts +13 -0
  1328. package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/index.d.ts +224 -0
  1329. package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/component.d.ts +9 -0
  1330. package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/index.d.ts +176 -0
  1331. package/node_modules/@playcanvas/pcui/react/types/components/components.d.ts +30 -0
  1332. package/node_modules/@playcanvas/pcui/react/types/components/index.d.ts +32 -0
  1333. package/node_modules/@playcanvas/pcui/react/types/helpers/search.d.ts +31 -0
  1334. package/node_modules/@playcanvas/pcui/react/types/helpers/utils.d.ts +2 -0
  1335. package/node_modules/@playcanvas/pcui/react/types/index.d.ts +4 -0
  1336. package/node_modules/@playcanvas/pcui/styles/dist/index.mjs +11 -0
  1337. package/node_modules/@playcanvas/pcui/styles/package.json +17 -0
  1338. package/node_modules/@playcanvas/pcui/types/Math/color-value.d.ts +3 -0
  1339. package/node_modules/@playcanvas/pcui/types/binding/BindingBase/index.d.ts +178 -0
  1340. package/node_modules/@playcanvas/pcui/types/binding/BindingElementToObservers/index.d.ts +24 -0
  1341. package/node_modules/@playcanvas/pcui/types/binding/BindingObserversToElement/index.d.ts +40 -0
  1342. package/node_modules/@playcanvas/pcui/types/binding/BindingTwoWay/index.d.ts +54 -0
  1343. package/node_modules/@playcanvas/pcui/types/binding/index.d.ts +5 -0
  1344. package/node_modules/@playcanvas/pcui/types/class.d.ts +17 -0
  1345. package/node_modules/@playcanvas/pcui/types/components/ArrayInput/index.d.ts +140 -0
  1346. package/node_modules/@playcanvas/pcui/types/components/BooleanInput/index.d.ts +41 -0
  1347. package/node_modules/@playcanvas/pcui/types/components/Button/index.d.ts +75 -0
  1348. package/node_modules/@playcanvas/pcui/types/components/Canvas/index.d.ts +61 -0
  1349. package/node_modules/@playcanvas/pcui/types/components/Code/index.d.ts +33 -0
  1350. package/node_modules/@playcanvas/pcui/types/components/ColorPicker/index.d.ts +99 -0
  1351. package/node_modules/@playcanvas/pcui/types/components/Container/index.d.ts +292 -0
  1352. package/node_modules/@playcanvas/pcui/types/components/Divider/index.d.ts +13 -0
  1353. package/node_modules/@playcanvas/pcui/types/components/Element/index.d.ts +671 -0
  1354. package/node_modules/@playcanvas/pcui/types/components/GradientPicker/index.d.ts +152 -0
  1355. package/node_modules/@playcanvas/pcui/types/components/GridView/index.d.ts +103 -0
  1356. package/node_modules/@playcanvas/pcui/types/components/GridViewItem/index.d.ts +82 -0
  1357. package/node_modules/@playcanvas/pcui/types/components/InfoBox/index.d.ts +71 -0
  1358. package/node_modules/@playcanvas/pcui/types/components/InputElement/index.d.ts +84 -0
  1359. package/node_modules/@playcanvas/pcui/types/components/Label/index.d.ts +85 -0
  1360. package/node_modules/@playcanvas/pcui/types/components/LabelGroup/index.d.ts +62 -0
  1361. package/node_modules/@playcanvas/pcui/types/components/Menu/index.d.ts +70 -0
  1362. package/node_modules/@playcanvas/pcui/types/components/MenuItem/index.d.ts +139 -0
  1363. package/node_modules/@playcanvas/pcui/types/components/NumericInput/index.d.ts +173 -0
  1364. package/node_modules/@playcanvas/pcui/types/components/Overlay/index.d.ts +53 -0
  1365. package/node_modules/@playcanvas/pcui/types/components/Panel/index.d.ts +178 -0
  1366. package/node_modules/@playcanvas/pcui/types/components/Progress/index.d.ts +33 -0
  1367. package/node_modules/@playcanvas/pcui/types/components/RadioButton/index.d.ts +33 -0
  1368. package/node_modules/@playcanvas/pcui/types/components/SelectInput/index.d.ts +278 -0
  1369. package/node_modules/@playcanvas/pcui/types/components/SliderInput/index.d.ts +133 -0
  1370. package/node_modules/@playcanvas/pcui/types/components/Spinner/index.d.ts +27 -0
  1371. package/node_modules/@playcanvas/pcui/types/components/TextAreaInput/index.d.ts +24 -0
  1372. package/node_modules/@playcanvas/pcui/types/components/TextInput/index.d.ts +40 -0
  1373. package/node_modules/@playcanvas/pcui/types/components/TreeView/index.d.ts +359 -0
  1374. package/node_modules/@playcanvas/pcui/types/components/TreeViewItem/index.d.ts +224 -0
  1375. package/node_modules/@playcanvas/pcui/types/components/VectorInput/index.d.ts +176 -0
  1376. package/node_modules/@playcanvas/pcui/types/components/index.d.ts +32 -0
  1377. package/node_modules/@playcanvas/pcui/types/helpers/search.d.ts +31 -0
  1378. package/node_modules/@playcanvas/pcui/types/helpers/utils.d.ts +2 -0
  1379. package/node_modules/@playcanvas/pcui/types/index.d.ts +20 -0
  1380. package/node_modules/babylonjs-gltf2interface/babylon.glTF2Interface.d.ts +1655 -0
  1381. package/node_modules/babylonjs-gltf2interface/license.md +71 -0
  1382. package/node_modules/babylonjs-gltf2interface/package.json +26 -0
  1383. package/package.json +31 -19
  1384. package/dist/editor-plugin-hierarchy-command.d.ts +0 -19
  1385. package/dist/editor-plugin-hierarchy-command.d.ts.map +0 -1
  1386. package/dist/editor-plugin-hierarchy-command.js +0 -119
  1387. package/dist/editor-plugin-hierarchy-command.js.map +0 -1
  1388. package/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
  1389. package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  1390. package/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  1391. package/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  1392. package/node_modules/@babel/parser/lib/index.js.map +0 -1
  1393. package/node_modules/@babel/types/lib/asserts/assertNode.js.map +0 -1
  1394. package/node_modules/@babel/types/lib/asserts/generated/index.js.map +0 -1
  1395. package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +0 -1
  1396. package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +0 -1
  1397. package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +0 -1
  1398. package/node_modules/@babel/types/lib/builders/generated/index.js.map +0 -1
  1399. package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +0 -1
  1400. package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +0 -1
  1401. package/node_modules/@babel/types/lib/builders/productions.js.map +0 -1
  1402. package/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +0 -1
  1403. package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +0 -1
  1404. package/node_modules/@babel/types/lib/builders/validateNode.js.map +0 -1
  1405. package/node_modules/@babel/types/lib/clone/clone.js.map +0 -1
  1406. package/node_modules/@babel/types/lib/clone/cloneDeep.js.map +0 -1
  1407. package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +0 -1
  1408. package/node_modules/@babel/types/lib/clone/cloneNode.js.map +0 -1
  1409. package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +0 -1
  1410. package/node_modules/@babel/types/lib/comments/addComment.js.map +0 -1
  1411. package/node_modules/@babel/types/lib/comments/addComments.js.map +0 -1
  1412. package/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +0 -1
  1413. package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +0 -1
  1414. package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +0 -1
  1415. package/node_modules/@babel/types/lib/comments/inheritsComments.js.map +0 -1
  1416. package/node_modules/@babel/types/lib/comments/removeComments.js.map +0 -1
  1417. package/node_modules/@babel/types/lib/constants/generated/index.js.map +0 -1
  1418. package/node_modules/@babel/types/lib/constants/index.js.map +0 -1
  1419. package/node_modules/@babel/types/lib/converters/ensureBlock.js.map +0 -1
  1420. package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +0 -1
  1421. package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +0 -1
  1422. package/node_modules/@babel/types/lib/converters/toBlock.js.map +0 -1
  1423. package/node_modules/@babel/types/lib/converters/toComputedKey.js.map +0 -1
  1424. package/node_modules/@babel/types/lib/converters/toExpression.js.map +0 -1
  1425. package/node_modules/@babel/types/lib/converters/toIdentifier.js.map +0 -1
  1426. package/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +0 -1
  1427. package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +0 -1
  1428. package/node_modules/@babel/types/lib/converters/toStatement.js.map +0 -1
  1429. package/node_modules/@babel/types/lib/converters/valueToNode.js.map +0 -1
  1430. package/node_modules/@babel/types/lib/definitions/core.js.map +0 -1
  1431. package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +0 -1
  1432. package/node_modules/@babel/types/lib/definitions/experimental.js.map +0 -1
  1433. package/node_modules/@babel/types/lib/definitions/flow.js.map +0 -1
  1434. package/node_modules/@babel/types/lib/definitions/index.js.map +0 -1
  1435. package/node_modules/@babel/types/lib/definitions/jsx.js.map +0 -1
  1436. package/node_modules/@babel/types/lib/definitions/misc.js.map +0 -1
  1437. package/node_modules/@babel/types/lib/definitions/placeholders.js.map +0 -1
  1438. package/node_modules/@babel/types/lib/definitions/typescript.js.map +0 -1
  1439. package/node_modules/@babel/types/lib/definitions/utils.js.map +0 -1
  1440. package/node_modules/@babel/types/lib/index.js.map +0 -1
  1441. package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +0 -1
  1442. package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +0 -1
  1443. package/node_modules/@babel/types/lib/modifications/inherits.js.map +0 -1
  1444. package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +0 -1
  1445. package/node_modules/@babel/types/lib/modifications/removeProperties.js.map +0 -1
  1446. package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +0 -1
  1447. package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +0 -1
  1448. package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +0 -1
  1449. package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +0 -1
  1450. package/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +0 -1
  1451. package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +0 -1
  1452. package/node_modules/@babel/types/lib/traverse/traverse.js.map +0 -1
  1453. package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +0 -1
  1454. package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +0 -1
  1455. package/node_modules/@babel/types/lib/utils/inherit.js.map +0 -1
  1456. package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +0 -1
  1457. package/node_modules/@babel/types/lib/utils/shallowEqual.js.map +0 -1
  1458. package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +0 -1
  1459. package/node_modules/@babel/types/lib/validators/generated/index.js.map +0 -1
  1460. package/node_modules/@babel/types/lib/validators/is.js.map +0 -1
  1461. package/node_modules/@babel/types/lib/validators/isBinding.js.map +0 -1
  1462. package/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +0 -1
  1463. package/node_modules/@babel/types/lib/validators/isImmutable.js.map +0 -1
  1464. package/node_modules/@babel/types/lib/validators/isLet.js.map +0 -1
  1465. package/node_modules/@babel/types/lib/validators/isNode.js.map +0 -1
  1466. package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +0 -1
  1467. package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +0 -1
  1468. package/node_modules/@babel/types/lib/validators/isReferenced.js.map +0 -1
  1469. package/node_modules/@babel/types/lib/validators/isScope.js.map +0 -1
  1470. package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +0 -1
  1471. package/node_modules/@babel/types/lib/validators/isType.js.map +0 -1
  1472. package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +0 -1
  1473. package/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +0 -1
  1474. package/node_modules/@babel/types/lib/validators/isVar.js.map +0 -1
  1475. package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +0 -1
  1476. package/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +0 -1
  1477. package/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +0 -1
  1478. package/node_modules/@babel/types/lib/validators/validate.js.map +0 -1
  1479. package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +0 -37
  1480. package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +0 -1
  1481. package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +0 -451
  1482. package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +0 -1
  1483. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts +0 -49
  1484. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +0 -1
  1485. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +0 -627
  1486. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +0 -1
  1487. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts +0 -52
  1488. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts.map +0 -1
  1489. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +0 -450
  1490. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +0 -1
  1491. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts +0 -21
  1492. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts.map +0 -1
  1493. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js +0 -75
  1494. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +0 -1
  1495. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts +0 -7
  1496. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts.map +0 -1
  1497. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js +0 -186
  1498. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js.map +0 -1
  1499. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts +0 -5
  1500. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts.map +0 -1
  1501. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js +0 -98
  1502. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js.map +0 -1
  1503. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +0 -63
  1504. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +0 -1
  1505. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +0 -301
  1506. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"material-slot-source-resolver.d.ts","sourceRoot":"","sources":["../src/material-slot-source-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,sCAAsC,+BAA+B,CAAC;AAEnF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAClD,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,KAAK,OAAO,CAAC;AAEvG,MAAM,MAAM,iCAAiC,GAAG;IAC9C,mBAAmB,CAAC,EAAE,kCAAkC,CAAC;CAC1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SAAS,EACpD,OAAO,GAAE,oCAAyC,GACjD,WAAW,EAAE,CAGf;AAED,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,WAAW,GAAG,IAAI,EAC5B,IAAI,EAAE,2BAA2B,GAAG,IAAI,GAAG,SAAS,EACpD,OAAO,GAAE,oCAAyC,GACjD,0BAA0B,EAAE,CA8C9B;AA2FD,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,qCAA0C,GAClD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,qCAA0C,GAClD,MAAM,CAMR;AAED,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,qCAA0C,GAClD,OAAO,CAIT;AAED,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,WAAW,EACrB,OAAO,GAAE,qCAAqC,GAAG,iCAAsC,GACtF,MAAM,GAAG,IAAI,CAaf;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAQ9E"}
@@ -1,3 +1,5 @@
1
+ import { collectBabylonMaterialOwnerCandidates, } from '@fps-games/babylon-renderer';
2
+ import { resolveMaterialOwner, } from '@fps-games/playable-contracts';
1
3
  export const MATERIAL_SLOT_SOURCE_NODE_METADATA_KEY = 'editorProjectionSourceNode';
2
4
  export function resolveMaterialSlotOwnerNodes(rootNode, slot, options = {}) {
3
5
  return resolveMaterialSlotOwnerNodeMatches(rootNode, slot, options)
@@ -10,22 +12,50 @@ export function resolveMaterialSlotOwnerNodeMatches(rootNode, slot, options = {}
10
12
  if (ownerNodePath == null)
11
13
  return [];
12
14
  const normalizedOwnerNodePath = normalizeMaterialSlotOwnerPath(stripMaterialSlotOwnerRootPrefix(ownerNodePath, rootNode, options), options);
13
- const slotMatchKey = createMaterialSlotOwnerPathMatchKey(normalizedOwnerNodePath, options);
14
- const includeDescendants = options.includeDescendantMaterialOwners !== false;
15
- const candidates = collectMaterialSlotOwnerCandidates(rootNode, options);
16
- if (normalizedOwnerNodePath === '') {
17
- const rootCandidate = candidates.find(candidate => candidate.node === rootNode);
18
- if (!rootCandidate)
19
- return [];
15
+ const hasStrongDescriptor = !!slot && typeof slot !== 'string'
16
+ && 'meshIndex' in slot && Number.isInteger(slot.meshIndex)
17
+ && 'primitiveIndex' in slot && Number.isInteger(slot.primitiveIndex);
18
+ if (normalizedOwnerNodePath === '' && !hasStrongDescriptor) {
20
19
  return [{
21
- node: rootCandidate.node,
22
- ownerNodePath: rootCandidate.ownerNodePath,
23
- normalizedOwnerNodePath: rootCandidate.normalizedOwnerNodePath,
20
+ node: rootNode,
21
+ ownerNodePath: '',
22
+ normalizedOwnerNodePath: '',
24
23
  matchKind: 'exact',
25
24
  }];
26
25
  }
26
+ const descriptor = createCanonicalMaterialOwnerDescriptor(slot, normalizedOwnerNodePath);
27
+ const includeNonMaterialTargets = options.includeDescendantMaterialOwners === false;
28
+ const sourceCandidates = collectCompatibilityCandidates(rootNode, options, includeNonMaterialTargets, true);
29
+ const sourceResolution = resolveMaterialOwner(descriptor, sourceCandidates);
30
+ if (sourceResolution.status === 'resolved')
31
+ return [createCompatibilityMatch(sourceResolution)];
32
+ if (sourceResolution.diagnostic.code === 'material-owner-pointer-conflict')
33
+ return [];
34
+ if (sourceResolution.status === 'ambiguous') {
35
+ return resolveLegacyAmbiguousDescendantMatches(rootNode, normalizedOwnerNodePath, options, hasStrongDescriptor);
36
+ }
37
+ const runtimeCandidates = collectCompatibilityCandidates(rootNode, options, includeNonMaterialTargets, false);
38
+ const runtimeResolution = resolveMaterialOwner(descriptor, runtimeCandidates);
39
+ if (runtimeResolution.status === 'resolved')
40
+ return [createCompatibilityMatch(runtimeResolution)];
41
+ if (runtimeResolution.status === 'ambiguous') {
42
+ return resolveLegacyAmbiguousDescendantMatches(rootNode, normalizedOwnerNodePath, options, hasStrongDescriptor);
43
+ }
44
+ return hasStrongDescriptor ? [] : resolveLegacyCompatibilityMatches(rootNode, normalizedOwnerNodePath, options);
45
+ }
46
+ function resolveLegacyAmbiguousDescendantMatches(rootNode, normalizedOwnerNodePath, options, hasStrongDescriptor) {
47
+ if (hasStrongDescriptor || options.includeDescendantMaterialOwners === false)
48
+ return [];
49
+ const matches = resolveLegacyCompatibilityMatches(rootNode, normalizedOwnerNodePath, options);
50
+ // The deprecated wrapper may preserve its multi-target descendant contract,
51
+ // but canonical ambiguity must never be narrowed to one traversal-order winner.
52
+ return matches.length > 1 ? matches : [];
53
+ }
54
+ function resolveLegacyCompatibilityMatches(rootNode, normalizedOwnerNodePath, options) {
55
+ const slotMatchKey = createMaterialSlotOwnerPathMatchKey(normalizedOwnerNodePath, options);
56
+ const candidates = collectMaterialSlotOwnerCandidates(rootNode, options);
27
57
  const exactCandidates = candidates.filter(candidate => candidate.matchKey === slotMatchKey);
28
- if (!includeDescendants) {
58
+ if (options.includeDescendantMaterialOwners === false) {
29
59
  return exactCandidates.slice(0, 1).map(candidate => createMaterialSlotOwnerNodeMatch(candidate, 'exact'));
30
60
  }
31
61
  const materialMatches = candidates
@@ -37,6 +67,46 @@ export function resolveMaterialSlotOwnerNodeMatches(rootNode, slot, options = {}
37
67
  return uniqueMaterialSlotOwnerNodeMatches(materialMatches);
38
68
  return exactCandidates.slice(0, 1).map(candidate => createMaterialSlotOwnerNodeMatch(candidate, 'fallback'));
39
69
  }
70
+ function createCanonicalMaterialOwnerDescriptor(slot, ownerNodePath) {
71
+ if (typeof slot === 'string')
72
+ return { ownerNodePath };
73
+ return {
74
+ ownerNodePath,
75
+ ...('nodeIndex' in slot && Number.isInteger(slot.nodeIndex) ? { nodeIndex: slot.nodeIndex } : {}),
76
+ ...('nodeIndexPath' in slot && Array.isArray(slot.nodeIndexPath) ? { nodeIndexPath: slot.nodeIndexPath } : {}),
77
+ ...('meshIndex' in slot && Number.isInteger(slot.meshIndex) ? { meshIndex: slot.meshIndex } : {}),
78
+ ...('primitiveIndex' in slot && Number.isInteger(slot.primitiveIndex) ? { primitiveIndex: slot.primitiveIndex } : {}),
79
+ ...('sourceMaterialIndex' in slot && Number.isInteger(slot.sourceMaterialIndex)
80
+ ? { sourceMaterialIndex: slot.sourceMaterialIndex }
81
+ : {}),
82
+ ...('sourceMaterialIndices' in slot && Array.isArray(slot.sourceMaterialIndices)
83
+ ? { sourceMaterialIndices: slot.sourceMaterialIndices }
84
+ : {}),
85
+ };
86
+ }
87
+ function collectCompatibilityCandidates(rootNode, options, includeNonMaterialTargets, sourcePaths) {
88
+ return collectBabylonMaterialOwnerCandidates(rootNode, {
89
+ isTraversalBoundary: options.isTraversalBoundary,
90
+ includeNonMaterialTargets,
91
+ readPathSegment: node => {
92
+ const value = sourcePaths
93
+ ? readMaterialSlotSourceNodeSegment(node) ?? readMaterialSlotOwnerRuntimeNodeSegment(node)
94
+ : readMaterialSlotOwnerRuntimeNodeSegment(node);
95
+ if (value == null)
96
+ return null;
97
+ const normalized = normalizeMaterialSlotOwnerPathSegment(value, options);
98
+ return isSyntheticMaterialSlotOwnerRootSegment(normalized) ? null : normalized;
99
+ },
100
+ });
101
+ }
102
+ function createCompatibilityMatch(resolution) {
103
+ return {
104
+ node: resolution.target.runtimeNode,
105
+ ownerNodePath: resolution.candidate.canonicalPath,
106
+ normalizedOwnerNodePath: resolution.candidate.canonicalPath,
107
+ matchKind: resolution.matchKind === 'canonical-parent-path' ? 'descendant' : 'exact',
108
+ };
109
+ }
40
110
  export function normalizeMaterialSlotOwnerPath(path, context = {}) {
41
111
  return path
42
112
  .split('/')
@@ -1 +1 @@
1
- {"version":3,"file":"material-slot-source-resolver.js","sourceRoot":"","sources":["../src/material-slot-source-resolver.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,sCAAsC,GAAG,4BAA4B,CAAC;AA+CnF,MAAM,UAAU,6BAA6B,CAC3C,QAA4B,EAC5B,IAAoD,EACpD,UA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\nimport type {\n RuntimeNode,\n} from './types';\n\nexport const MATERIAL_SLOT_SOURCE_NODE_METADATA_KEY = 'editorProjectionSourceNode';\n\nexport type MaterialSlotSourceNodeMetadata = {\n sourceName: string;\n};\n\nexport type MaterialSlotOwnerPathNormalizeContext = {\n projectionNodeId?: string | null;\n};\n\nexport type MaterialSlotOwnerTraversalBoundary = (node: RuntimeNode, rootNode: RuntimeNode) => boolean;\n\nexport type MaterialSlotOwnerTraversalContext = {\n isTraversalBoundary?: MaterialSlotOwnerTraversalBoundary;\n};\n\nexport type MaterialSlotOwnerDescriptor =\n | string\n | MaterialSlotSourceDescriptor\n | Pick<MaterialSlotSourceDescriptor, 'ownerNodePath'>;\n\nexport type ResolveMaterialSlotOwnerNodesOptions = MaterialSlotOwnerPathNormalizeContext & MaterialSlotOwnerTraversalContext & {\n includeDescendantMaterialOwners?: boolean;\n};\n\nexport type MaterialSlotOwnerNodeMatchKind = 'exact' | 'descendant' | 'fallback';\n\nexport interface MaterialSlotOwnerNodeMatch {\n node: RuntimeNode;\n ownerNodePath: string;\n normalizedOwnerNodePath: string;\n matchKind: MaterialSlotOwnerNodeMatchKind;\n}\n\ntype MaterialSlotOwnerCandidate = {\n node: RuntimeNode;\n ownerNodePath: string;\n normalizedOwnerNodePath: string;\n matchKey: string;\n hasMaterial: boolean;\n};\n\ntype MaterialSlotOwnerTraversalPath = {\n sourcePath: string[];\n runtimePath: string[];\n};\n\nexport function resolveMaterialSlotOwnerNodes(\n rootNode: RuntimeNode | null,\n slot: MaterialSlotOwnerDescriptor | null | undefined,\n options: ResolveMaterialSlotOwnerNodesOptions = {},\n): RuntimeNode[] {\n return resolveMaterialSlotOwnerNodeMatches(rootNode, slot, options)\n .map(match => match.node);\n}\n\nexport function resolveMaterialSlotOwnerNodeMatches(\n rootNode: RuntimeNode | null,\n slot: MaterialSlotOwnerDescriptor | null | undefined,\n options: ResolveMaterialSlotOwnerNodesOptions = {},\n): MaterialSlotOwnerNodeMatch[] {\n if (!rootNode) return [];\n const ownerNodePath = readMaterialSlotOwnerDescriptorPath(slot);\n if (ownerNodePath == null) return [];\n const normalizedOwnerNodePath = normalizeMaterialSlotOwnerPath(\n stripMaterialSlotOwnerRootPrefix(ownerNodePath, rootNode, options),\n options,\n );\n const slotMatchKey = createMaterialSlotOwnerPathMatchKey(normalizedOwnerNodePath, options);\n const includeDescendants = options.includeDescendantMaterialOwners !== false;\n const candidates = collectMaterialSlotOwnerCandidates(rootNode, options);\n if (normalizedOwnerNodePath === '') {\n const rootCandidate = candidates.find(candidate => candidate.node === rootNode);\n if (!rootCandidate) return [];\n return [{\n node: rootCandidate.node,\n ownerNodePath: rootCandidate.ownerNodePath,\n normalizedOwnerNodePath: rootCandidate.normalizedOwnerNodePath,\n matchKind: 'exact',\n }];\n }\n\n const exactCandidates = candidates.filter(candidate => candidate.matchKey === slotMatchKey);\n if (!includeDescendants) {\n return exactCandidates.slice(0, 1).map(candidate => createMaterialSlotOwnerNodeMatch(candidate, 'exact'));\n }\n\n const materialMatches = candidates\n .filter(candidate => candidate.hasMaterial)\n .filter(candidate => (\n candidate.matchKey === slotMatchKey\n || isMaterialSlotOwnerPathDescendantKey(candidate.matchKey, slotMatchKey)\n ))\n .map(candidate => createMaterialSlotOwnerNodeMatch(\n candidate,\n candidate.matchKey === slotMatchKey ? 'exact' : 'descendant',\n ));\n if (materialMatches.length > 0) return uniqueMaterialSlotOwnerNodeMatches(materialMatches);\n\n return exactCandidates.slice(0, 1).map(candidate => createMaterialSlotOwnerNodeMatch(candidate, 'fallback'));\n}\n\nexport function normalizeMaterialSlotOwnerPath(\n path: string,\n context: MaterialSlotOwnerPathNormalizeContext = {},\n): string {\n return path\n .split('/')\n .map(segment => normalizeMaterialSlotOwnerPathSegment(segment, context))\n .filter(segment => !!segment && !isSyntheticMaterialSlotOwnerRootSegment(segment))\n .join('/');\n}\n\nexport function createMaterialSlotOwnerPathMatchKey(\n path: string,\n context: MaterialSlotOwnerPathNormalizeContext = {},\n): string {\n return normalizeMaterialSlotOwnerPath(path, context)\n .split('/')\n .map(createMaterialSlotOwnerSegmentMatchKey)\n .filter(Boolean)\n .join('/');\n}\n\nexport function isMaterialSlotOwnerPathMatch(\n ownerNodePath: string,\n slotOwnerNodePath: string,\n context: MaterialSlotOwnerPathNormalizeContext = {},\n): boolean {\n const ownerKey = createMaterialSlotOwnerPathMatchKey(ownerNodePath, context);\n const slotKey = createMaterialSlotOwnerPathMatchKey(slotOwnerNodePath, context);\n return ownerKey === slotKey || isMaterialSlotOwnerPathDescendantKey(ownerKey, slotKey);\n}\n\nexport function buildMaterialSlotOwnerNodePath(\n node: RuntimeNode,\n rootNode: RuntimeNode,\n context: MaterialSlotOwnerPathNormalizeContext & MaterialSlotOwnerTraversalContext = {},\n): string | null {\n if (!node || !rootNode || node === rootNode) return '';\n const segments: string[] = [];\n let current: any = node;\n while (current && current !== rootNode) {\n if (context.isTraversalBoundary?.(current, rootNode)) return null;\n const segment = stableMaterialSlotOwnerNodeSegment(current);\n if (!segment) return null;\n segments.push(segment);\n current = current.parent ?? null;\n }\n if (current !== rootNode) return null;\n return normalizeMaterialSlotOwnerPath(segments.reverse().join('/'), context);\n}\n\nexport function readMaterialSlotSourceNodeSegment(node: unknown): string | null {\n if (!node || typeof node !== 'object') return null;\n const metadata = readMaterialSlotMetadataObject((node as { metadata?: unknown }).metadata);\n const sourceMetadata = readMaterialSlotMetadataObject(metadata?.[MATERIAL_SLOT_SOURCE_NODE_METADATA_KEY]);\n const sourceName = typeof sourceMetadata?.sourceName === 'string'\n ? normalizeMaterialSlotSourceName(sourceMetadata.sourceName)\n : '';\n return sourceName || null;\n}\n\nfunction collectMaterialSlotOwnerCandidates(\n rootNode: RuntimeNode,\n context: ResolveMaterialSlotOwnerNodesOptions,\n): MaterialSlotOwnerCandidate[] {\n const candidates: MaterialSlotOwnerCandidate[] = [];\n const visit = (node: any, parentPath: MaterialSlotOwnerTraversalPath, isRoot = false): void => {\n if (!isRoot && context.isTraversalBoundary?.(node, rootNode)) return;\n const nodePath = isRoot\n ? parentPath\n : createMaterialSlotOwnerNodeTraversalPath(node, parentPath, context);\n for (const pathSegments of createMaterialSlotOwnerCandidatePaths(nodePath)) {\n addMaterialSlotOwnerCandidate(candidates, node, pathSegments, context);\n }\n for (const child of node?.getChildren?.() ?? []) visit(child, nodePath);\n };\n visit(rootNode, { sourcePath: [], runtimePath: [] }, true);\n return candidates;\n}\n\nfunction createMaterialSlotOwnerNodeTraversalPath(\n node: any,\n parentPath: MaterialSlotOwnerTraversalPath,\n context: MaterialSlotOwnerPathNormalizeContext,\n): MaterialSlotOwnerTraversalPath {\n const sourceSegment = readMaterialSlotSourceNodeSegment(node)\n ?? readMaterialSlotOwnerRuntimeNodeSegment(node);\n const runtimeSegment = readMaterialSlotOwnerRuntimeNodeSegment(node);\n return {\n sourcePath: appendMaterialSlotOwnerPathSegment(parentPath.sourcePath, sourceSegment, context),\n runtimePath: appendMaterialSlotOwnerPathSegment(parentPath.runtimePath, runtimeSegment, context),\n };\n}\n\nfunction createMaterialSlotOwnerCandidatePaths(path: MaterialSlotOwnerTraversalPath): string[][] {\n if (path.sourcePath.join('/') === path.runtimePath.join('/')) return [path.sourcePath];\n return [path.sourcePath, path.runtimePath];\n}\n\nfunction appendMaterialSlotOwnerPathSegment(\n path: string[],\n segment: string | null,\n context: MaterialSlotOwnerPathNormalizeContext,\n): string[] {\n if (!segment) return path;\n const normalizedSegment = normalizeMaterialSlotOwnerPathSegment(segment, context);\n if (!normalizedSegment || isSyntheticMaterialSlotOwnerRootSegment(normalizedSegment)) return path;\n return [...path, normalizedSegment];\n}\n\nfunction addMaterialSlotOwnerCandidate(\n candidates: MaterialSlotOwnerCandidate[],\n node: any,\n pathSegments: string[],\n context: MaterialSlotOwnerPathNormalizeContext,\n): void {\n const ownerNodePath = pathSegments.join('/');\n const normalizedOwnerNodePath = normalizeMaterialSlotOwnerPath(ownerNodePath, context);\n candidates.push({\n node,\n ownerNodePath,\n normalizedOwnerNodePath,\n matchKey: createMaterialSlotOwnerPathMatchKey(normalizedOwnerNodePath, context),\n hasMaterial: !!node?.material,\n });\n}\n\nfunction createMaterialSlotOwnerNodeMatch(\n candidate: MaterialSlotOwnerCandidate,\n matchKind: MaterialSlotOwnerNodeMatchKind,\n): MaterialSlotOwnerNodeMatch {\n return {\n node: candidate.node,\n ownerNodePath: candidate.ownerNodePath,\n normalizedOwnerNodePath: candidate.normalizedOwnerNodePath,\n matchKind,\n };\n}\n\nfunction uniqueMaterialSlotOwnerNodeMatches(\n matches: MaterialSlotOwnerNodeMatch[],\n): MaterialSlotOwnerNodeMatch[] {\n const unique: MaterialSlotOwnerNodeMatch[] = [];\n const seen = new Set<RuntimeNode>();\n for (const match of matches) {\n if (seen.has(match.node)) continue;\n seen.add(match.node);\n unique.push(match);\n }\n return unique;\n}\n\nfunction readMaterialSlotOwnerDescriptorPath(slot: MaterialSlotOwnerDescriptor | null | undefined): string | null {\n if (typeof slot === 'string') return slot;\n if (!slot || typeof slot !== 'object') return null;\n return typeof slot.ownerNodePath === 'string' ? slot.ownerNodePath : null;\n}\n\nfunction stripMaterialSlotOwnerRootPrefix(\n ownerNodePath: string,\n rootNode: RuntimeNode,\n context: MaterialSlotOwnerPathNormalizeContext,\n): string {\n const segments = ownerNodePath.split('/').filter(Boolean);\n if (segments.length < 1) return ownerNodePath;\n const firstSegmentKey = createMaterialSlotOwnerPathMatchKey(segments[0]!, context);\n const rootKeys = readMaterialSlotOwnerRootPrefixSegmentCandidates(rootNode)\n .map(segment => createMaterialSlotOwnerPathMatchKey(segment, context))\n .filter(Boolean);\n return rootKeys.includes(firstSegmentKey)\n ? segments.slice(1).join('/')\n : ownerNodePath;\n}\n\nfunction stableMaterialSlotOwnerNodeSegment(node: any): string | null {\n return readMaterialSlotSourceNodeSegment(node) ?? readMaterialSlotOwnerRuntimeNodeSegment(node);\n}\n\nfunction readMaterialSlotOwnerRootPrefixSegmentCandidates(node: any): string[] {\n const segments: string[] = [];\n const sourceSegment = readMaterialSlotSourceNodeSegment(node);\n if (sourceSegment) segments.push(sourceSegment);\n const runtimeSegment = readMaterialSlotOwnerRuntimeNodeSegment(node);\n if (runtimeSegment && !segments.includes(runtimeSegment)) segments.push(runtimeSegment);\n return segments;\n}\n\nfunction readMaterialSlotOwnerRuntimeNodeSegment(node: any): string | null {\n const candidates = [node?.name, node?.id];\n for (const candidate of candidates) {\n if (typeof candidate !== 'string') continue;\n const trimmed = candidate.trim();\n if (trimmed) return trimmed;\n }\n return null;\n}\n\nfunction normalizeMaterialSlotOwnerPathSegment(\n segment: string,\n context: MaterialSlotOwnerPathNormalizeContext,\n): string {\n const withoutLeadingNamespace = stripMaterialSlotOwnerPathNamespace(segment.trim());\n const withoutInstancePrefix = stripMaterialSlotProjectionInstancePrefix(withoutLeadingNamespace, context);\n return stripMaterialSlotOwnerPathNamespace(withoutInstancePrefix);\n}\n\nfunction stripMaterialSlotOwnerPathNamespace(segment: string): string {\n return segment.includes(':') ? segment.slice(segment.lastIndexOf(':') + 1) : segment;\n}\n\nfunction stripMaterialSlotProjectionInstancePrefix(\n segment: string,\n context: MaterialSlotOwnerPathNormalizeContext,\n): string {\n const projectionNodeId = typeof context.projectionNodeId === 'string'\n ? context.projectionNodeId.trim()\n : '';\n if (!projectionNodeId) return segment;\n const prefix = `${projectionNodeId}.projectionAsset.`;\n return segment.startsWith(prefix) ? segment.slice(prefix.length) : segment;\n}\n\nfunction createMaterialSlotOwnerSegmentMatchKey(segment: string): string {\n const normalized = normalizeMaterialSlotOwnerPathSegment(segment, {});\n const generatedPrimitiveMatch = /^node_(\\d+)_primitive(\\d+)$/.exec(normalized);\n if (generatedPrimitiveMatch) return `node${generatedPrimitiveMatch[1]}_primitive${generatedPrimitiveMatch[2]}`;\n const generatedNodeMatch = /^node_(\\d+)$/.exec(normalized);\n if (generatedNodeMatch) return `node${generatedNodeMatch[1]}`;\n return normalized;\n}\n\nfunction isMaterialSlotOwnerPathDescendantKey(ownerKey: string, candidateAncestorKey: string): boolean {\n if (!ownerKey || !candidateAncestorKey) return false;\n return ownerKey.startsWith(`${candidateAncestorKey}/`);\n}\n\nfunction isSyntheticMaterialSlotOwnerRootSegment(segment: string): boolean {\n return segment === '__root__';\n}\n\nfunction normalizeMaterialSlotSourceName(value: unknown): string {\n return typeof value === 'string' ? value.trim() : '';\n}\n\nfunction readMaterialSlotMetadataObject(value: unknown): Record<string, unknown> | null {\n return value && typeof value === 'object' && !Array.isArray(value)\n ? value as Record<string, unknown>\n : null;\n}\n"]}
1
+ {"version":3,"file":"material-slot-source-resolver.js","sourceRoot":"","sources":["../src/material-slot-source-resolver.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,qCAAqC,GAEtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,oBAAoB,GAIrB,MAAM,+BAA+B,CAAC;AAKvC,MAAM,CAAC,MAAM,sCAAsC,GAAG,4BAA4B,CAAC;AA+CnF,MAAM,UAAU,6BAA6B,CAC3C,QAA4B,EAC5B,IAAoD,EACpD,UAAgD,EAAE;IAElD,OAAO,mCAAmC,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC;SAChE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,QAA4B,EAC5B,IAAoD,EACpD,UAAgD,EAAE;IAElD,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IACzB,MAAM,aAAa,GAAG,mCAAmC,CAAC,IAAI,CAAC,CAAC;IAChE,IAAI,aAAa,IAAI,IAAI;QAAE,OAAO,EAAE,CAAC;IACrC,MAAM,uBAAuB,GAAG,8BAA8B,CAC5D,gCAAgC,CAAC,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC,EAClE,OAAO,CACR,CAAC;IACF,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;WACzD,WAAW,IAAI,IAAI,IAAI,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U,CAAC,CAAC;IAC3D,IAAI,kBAAkB;QAAE,OAAO,OAAO,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9D,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,oCAAoC,CAAC,QAAgB,EAAE,oBAA4B;IAC1F,IAAI,CAAC,QAAQ,IAAI,CAAC,oBAAoB;QAAE,OAAO,KAAK,CAAC;IACrD,OAAO,QAAQ,CAAC,UAAU,CAAC,GAAG,oBAAoB,GAAG,CAAC,CAAC;AACzD,CAAC;AAED,SAAS,uCAAuC,CAAC,OAAe;IAC9D,OAAO,OAAO,KAAK,UAAU,CAAC;AAChC,CAAC;AAED,SAAS,+BAA+B,CAAC,KAAc;IACrD,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC;AAED,SAAS,8BAA8B,CAAC,KAAc;IACpD,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAChE,CAAC,CAAC,KAAgC;QAClC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC","sourcesContent":["import type {\n MaterialSlotSourceDescriptor,\n} from '@fps-games/editor-protocol';\nimport {\n collectBabylonMaterialOwnerCandidates,\n type BabylonMaterialOwnerTarget,\n} from '@fps-games/babylon-renderer';\nimport {\n resolveMaterialOwner,\n type MaterialOwnerCandidate,\n type MaterialOwnerDescriptor as CanonicalMaterialOwnerDescriptor,\n type MaterialOwnerResolution,\n} from '@fps-games/playable-contracts';\nimport type {\n RuntimeNode,\n} from './types';\n\nexport const MATERIAL_SLOT_SOURCE_NODE_METADATA_KEY = 'editorProjectionSourceNode';\n\nexport type MaterialSlotSourceNodeMetadata = {\n sourceName: string;\n};\n\nexport type MaterialSlotOwnerPathNormalizeContext = {\n projectionNodeId?: string | null;\n};\n\nexport type MaterialSlotOwnerTraversalBoundary = (node: RuntimeNode, rootNode: RuntimeNode) => boolean;\n\nexport type MaterialSlotOwnerTraversalContext = {\n isTraversalBoundary?: MaterialSlotOwnerTraversalBoundary;\n};\n\nexport type MaterialSlotOwnerDescriptor =\n | string\n | MaterialSlotSourceDescriptor\n | Pick<MaterialSlotSourceDescriptor, 'ownerNodePath'>;\n\nexport type ResolveMaterialSlotOwnerNodesOptions = MaterialSlotOwnerPathNormalizeContext & MaterialSlotOwnerTraversalContext & {\n includeDescendantMaterialOwners?: boolean;\n};\n\nexport type MaterialSlotOwnerNodeMatchKind = 'exact' | 'descendant' | 'fallback';\n\nexport interface MaterialSlotOwnerNodeMatch {\n node: RuntimeNode;\n ownerNodePath: string;\n normalizedOwnerNodePath: string;\n matchKind: MaterialSlotOwnerNodeMatchKind;\n}\n\ntype MaterialSlotOwnerCandidate = {\n node: RuntimeNode;\n ownerNodePath: string;\n normalizedOwnerNodePath: string;\n matchKey: string;\n hasMaterial: boolean;\n};\n\ntype MaterialSlotOwnerTraversalPath = {\n sourcePath: string[];\n runtimePath: string[];\n};\n\nexport function resolveMaterialSlotOwnerNodes(\n rootNode: RuntimeNode | null,\n slot: MaterialSlotOwnerDescriptor | null | undefined,\n options: ResolveMaterialSlotOwnerNodesOptions = {},\n): RuntimeNode[] {\n return resolveMaterialSlotOwnerNodeMatches(rootNode, slot, options)\n .map(match => match.node);\n}\n\nexport function resolveMaterialSlotOwnerNodeMatches(\n rootNode: RuntimeNode | null,\n slot: MaterialSlotOwnerDescriptor | null | undefined,\n options: ResolveMaterialSlotOwnerNodesOptions = {},\n): MaterialSlotOwnerNodeMatch[] {\n if (!rootNode) return [];\n const ownerNodePath = readMaterialSlotOwnerDescriptorPath(slot);\n if (ownerNodePath == null) return [];\n const normalizedOwnerNodePath = normalizeMaterialSlotOwnerPath(\n stripMaterialSlotOwnerRootPrefix(ownerNodePath, rootNode, options),\n options,\n );\n const hasStrongDescriptor = !!slot && typeof slot !== 'string'\n && 'meshIndex' in slot && Number.isInteger(slot.meshIndex)\n && 'primitiveIndex' in slot && Number.isInteger(slot.primitiveIndex);\n if (normalizedOwnerNodePath === '' && !hasStrongDescriptor) {\n return [{\n node: rootNode,\n ownerNodePath: '',\n normalizedOwnerNodePath: '',\n matchKind: 'exact',\n }];\n }\n const descriptor = createCanonicalMaterialOwnerDescriptor(slot!, normalizedOwnerNodePath);\n const includeNonMaterialTargets = options.includeDescendantMaterialOwners === false;\n const sourceCandidates = collectCompatibilityCandidates(rootNode, options, includeNonMaterialTargets, true);\n const sourceResolution = resolveMaterialOwner(descriptor, sourceCandidates);\n if (sourceResolution.status === 'resolved') return [createCompatibilityMatch(sourceResolution)];\n if (sourceResolution.diagnostic.code === 'material-owner-pointer-conflict') return [];\n if (sourceResolution.status === 'ambiguous') {\n return resolveLegacyAmbiguousDescendantMatches(\n rootNode,\n normalizedOwnerNodePath,\n options,\n hasStrongDescriptor,\n );\n }\n\n const runtimeCandidates = collectCompatibilityCandidates(rootNode, options, includeNonMaterialTargets, false);\n const runtimeResolution = resolveMaterialOwner(descriptor, runtimeCandidates);\n if (runtimeResolution.status === 'resolved') return [createCompatibilityMatch(runtimeResolution)];\n if (runtimeResolution.status === 'ambiguous') {\n return resolveLegacyAmbiguousDescendantMatches(\n rootNode,\n normalizedOwnerNodePath,\n options,\n hasStrongDescriptor,\n );\n }\n return hasStrongDescriptor ? [] : resolveLegacyCompatibilityMatches(rootNode, normalizedOwnerNodePath, options);\n}\n\nfunction resolveLegacyAmbiguousDescendantMatches(\n rootNode: RuntimeNode,\n normalizedOwnerNodePath: string,\n options: ResolveMaterialSlotOwnerNodesOptions,\n hasStrongDescriptor: boolean,\n): MaterialSlotOwnerNodeMatch[] {\n if (hasStrongDescriptor || options.includeDescendantMaterialOwners === false) return [];\n const matches = resolveLegacyCompatibilityMatches(rootNode, normalizedOwnerNodePath, options);\n // The deprecated wrapper may preserve its multi-target descendant contract,\n // but canonical ambiguity must never be narrowed to one traversal-order winner.\n return matches.length > 1 ? matches : [];\n}\n\nfunction resolveLegacyCompatibilityMatches(\n rootNode: RuntimeNode,\n normalizedOwnerNodePath: string,\n options: ResolveMaterialSlotOwnerNodesOptions,\n): MaterialSlotOwnerNodeMatch[] {\n const slotMatchKey = createMaterialSlotOwnerPathMatchKey(normalizedOwnerNodePath, options);\n const candidates = collectMaterialSlotOwnerCandidates(rootNode, options);\n const exactCandidates = candidates.filter(candidate => candidate.matchKey === slotMatchKey);\n if (options.includeDescendantMaterialOwners === false) {\n return exactCandidates.slice(0, 1).map(candidate => createMaterialSlotOwnerNodeMatch(candidate, 'exact'));\n }\n const materialMatches = candidates\n .filter(candidate => candidate.hasMaterial)\n .filter(candidate => (\n candidate.matchKey === slotMatchKey\n || isMaterialSlotOwnerPathDescendantKey(candidate.matchKey, slotMatchKey)\n ))\n .map(candidate => createMaterialSlotOwnerNodeMatch(\n candidate,\n candidate.matchKey === slotMatchKey ? 'exact' : 'descendant',\n ));\n if (materialMatches.length > 0) return uniqueMaterialSlotOwnerNodeMatches(materialMatches);\n return exactCandidates.slice(0, 1).map(candidate => createMaterialSlotOwnerNodeMatch(candidate, 'fallback'));\n}\n\nfunction createCanonicalMaterialOwnerDescriptor(\n slot: MaterialSlotOwnerDescriptor,\n ownerNodePath: string,\n): CanonicalMaterialOwnerDescriptor {\n if (typeof slot === 'string') return { ownerNodePath };\n return {\n ownerNodePath,\n ...('nodeIndex' in slot && Number.isInteger(slot.nodeIndex) ? { nodeIndex: slot.nodeIndex } : {}),\n ...('nodeIndexPath' in slot && Array.isArray(slot.nodeIndexPath) ? { nodeIndexPath: slot.nodeIndexPath } : {}),\n ...('meshIndex' in slot && Number.isInteger(slot.meshIndex) ? { meshIndex: slot.meshIndex } : {}),\n ...('primitiveIndex' in slot && Number.isInteger(slot.primitiveIndex) ? { primitiveIndex: slot.primitiveIndex } : {}),\n ...('sourceMaterialIndex' in slot && Number.isInteger(slot.sourceMaterialIndex)\n ? { sourceMaterialIndex: slot.sourceMaterialIndex }\n : {}),\n ...('sourceMaterialIndices' in slot && Array.isArray(slot.sourceMaterialIndices)\n ? { sourceMaterialIndices: slot.sourceMaterialIndices }\n : {}),\n };\n}\n\nfunction collectCompatibilityCandidates(\n rootNode: RuntimeNode,\n options: ResolveMaterialSlotOwnerNodesOptions,\n includeNonMaterialTargets: boolean,\n sourcePaths: boolean,\n): MaterialOwnerCandidate<BabylonMaterialOwnerTarget>[] {\n return collectBabylonMaterialOwnerCandidates(rootNode, {\n isTraversalBoundary: options.isTraversalBoundary,\n includeNonMaterialTargets,\n readPathSegment: node => {\n const value = sourcePaths\n ? readMaterialSlotSourceNodeSegment(node) ?? readMaterialSlotOwnerRuntimeNodeSegment(node)\n : readMaterialSlotOwnerRuntimeNodeSegment(node);\n if (value == null) return null;\n const normalized = normalizeMaterialSlotOwnerPathSegment(value, options);\n return isSyntheticMaterialSlotOwnerRootSegment(normalized) ? null : normalized;\n },\n });\n}\n\nfunction createCompatibilityMatch(\n resolution: Extract<MaterialOwnerResolution<BabylonMaterialOwnerTarget>, { status: 'resolved' }>,\n): MaterialSlotOwnerNodeMatch {\n return {\n node: resolution.target.runtimeNode,\n ownerNodePath: resolution.candidate.canonicalPath,\n normalizedOwnerNodePath: resolution.candidate.canonicalPath,\n matchKind: resolution.matchKind === 'canonical-parent-path' ? 'descendant' : 'exact',\n };\n}\n\nexport function normalizeMaterialSlotOwnerPath(\n path: string,\n context: MaterialSlotOwnerPathNormalizeContext = {},\n): string {\n return path\n .split('/')\n .map(segment => normalizeMaterialSlotOwnerPathSegment(segment, context))\n .filter(segment => !!segment && !isSyntheticMaterialSlotOwnerRootSegment(segment))\n .join('/');\n}\n\nexport function createMaterialSlotOwnerPathMatchKey(\n path: string,\n context: MaterialSlotOwnerPathNormalizeContext = {},\n): string {\n return normalizeMaterialSlotOwnerPath(path, context)\n .split('/')\n .map(createMaterialSlotOwnerSegmentMatchKey)\n .filter(Boolean)\n .join('/');\n}\n\nexport function isMaterialSlotOwnerPathMatch(\n ownerNodePath: string,\n slotOwnerNodePath: string,\n context: MaterialSlotOwnerPathNormalizeContext = {},\n): boolean {\n const ownerKey = createMaterialSlotOwnerPathMatchKey(ownerNodePath, context);\n const slotKey = createMaterialSlotOwnerPathMatchKey(slotOwnerNodePath, context);\n return ownerKey === slotKey || isMaterialSlotOwnerPathDescendantKey(ownerKey, slotKey);\n}\n\nexport function buildMaterialSlotOwnerNodePath(\n node: RuntimeNode,\n rootNode: RuntimeNode,\n context: MaterialSlotOwnerPathNormalizeContext & MaterialSlotOwnerTraversalContext = {},\n): string | null {\n if (!node || !rootNode || node === rootNode) return '';\n const segments: string[] = [];\n let current: any = node;\n while (current && current !== rootNode) {\n if (context.isTraversalBoundary?.(current, rootNode)) return null;\n const segment = stableMaterialSlotOwnerNodeSegment(current);\n if (!segment) return null;\n segments.push(segment);\n current = current.parent ?? null;\n }\n if (current !== rootNode) return null;\n return normalizeMaterialSlotOwnerPath(segments.reverse().join('/'), context);\n}\n\nexport function readMaterialSlotSourceNodeSegment(node: unknown): string | null {\n if (!node || typeof node !== 'object') return null;\n const metadata = readMaterialSlotMetadataObject((node as { metadata?: unknown }).metadata);\n const sourceMetadata = readMaterialSlotMetadataObject(metadata?.[MATERIAL_SLOT_SOURCE_NODE_METADATA_KEY]);\n const sourceName = typeof sourceMetadata?.sourceName === 'string'\n ? normalizeMaterialSlotSourceName(sourceMetadata.sourceName)\n : '';\n return sourceName || null;\n}\n\nfunction collectMaterialSlotOwnerCandidates(\n rootNode: RuntimeNode,\n context: ResolveMaterialSlotOwnerNodesOptions,\n): MaterialSlotOwnerCandidate[] {\n const candidates: MaterialSlotOwnerCandidate[] = [];\n const visit = (node: any, parentPath: MaterialSlotOwnerTraversalPath, isRoot = false): void => {\n if (!isRoot && context.isTraversalBoundary?.(node, rootNode)) return;\n const nodePath = isRoot\n ? parentPath\n : createMaterialSlotOwnerNodeTraversalPath(node, parentPath, context);\n for (const pathSegments of createMaterialSlotOwnerCandidatePaths(nodePath)) {\n addMaterialSlotOwnerCandidate(candidates, node, pathSegments, context);\n }\n for (const child of node?.getChildren?.() ?? []) visit(child, nodePath);\n };\n visit(rootNode, { sourcePath: [], runtimePath: [] }, true);\n return candidates;\n}\n\nfunction createMaterialSlotOwnerNodeTraversalPath(\n node: any,\n parentPath: MaterialSlotOwnerTraversalPath,\n context: MaterialSlotOwnerPathNormalizeContext,\n): MaterialSlotOwnerTraversalPath {\n const sourceSegment = readMaterialSlotSourceNodeSegment(node)\n ?? readMaterialSlotOwnerRuntimeNodeSegment(node);\n const runtimeSegment = readMaterialSlotOwnerRuntimeNodeSegment(node);\n return {\n sourcePath: appendMaterialSlotOwnerPathSegment(parentPath.sourcePath, sourceSegment, context),\n runtimePath: appendMaterialSlotOwnerPathSegment(parentPath.runtimePath, runtimeSegment, context),\n };\n}\n\nfunction createMaterialSlotOwnerCandidatePaths(path: MaterialSlotOwnerTraversalPath): string[][] {\n if (path.sourcePath.join('/') === path.runtimePath.join('/')) return [path.sourcePath];\n return [path.sourcePath, path.runtimePath];\n}\n\nfunction appendMaterialSlotOwnerPathSegment(\n path: string[],\n segment: string | null,\n context: MaterialSlotOwnerPathNormalizeContext,\n): string[] {\n if (!segment) return path;\n const normalizedSegment = normalizeMaterialSlotOwnerPathSegment(segment, context);\n if (!normalizedSegment || isSyntheticMaterialSlotOwnerRootSegment(normalizedSegment)) return path;\n return [...path, normalizedSegment];\n}\n\nfunction addMaterialSlotOwnerCandidate(\n candidates: MaterialSlotOwnerCandidate[],\n node: any,\n pathSegments: string[],\n context: MaterialSlotOwnerPathNormalizeContext,\n): void {\n const ownerNodePath = pathSegments.join('/');\n const normalizedOwnerNodePath = normalizeMaterialSlotOwnerPath(ownerNodePath, context);\n candidates.push({\n node,\n ownerNodePath,\n normalizedOwnerNodePath,\n matchKey: createMaterialSlotOwnerPathMatchKey(normalizedOwnerNodePath, context),\n hasMaterial: !!node?.material,\n });\n}\n\nfunction createMaterialSlotOwnerNodeMatch(\n candidate: MaterialSlotOwnerCandidate,\n matchKind: MaterialSlotOwnerNodeMatchKind,\n): MaterialSlotOwnerNodeMatch {\n return {\n node: candidate.node,\n ownerNodePath: candidate.ownerNodePath,\n normalizedOwnerNodePath: candidate.normalizedOwnerNodePath,\n matchKind,\n };\n}\n\nfunction uniqueMaterialSlotOwnerNodeMatches(\n matches: MaterialSlotOwnerNodeMatch[],\n): MaterialSlotOwnerNodeMatch[] {\n const unique: MaterialSlotOwnerNodeMatch[] = [];\n const seen = new Set<RuntimeNode>();\n for (const match of matches) {\n if (seen.has(match.node)) continue;\n seen.add(match.node);\n unique.push(match);\n }\n return unique;\n}\n\nfunction readMaterialSlotOwnerDescriptorPath(slot: MaterialSlotOwnerDescriptor | null | undefined): string | null {\n if (typeof slot === 'string') return slot;\n if (!slot || typeof slot !== 'object') return null;\n return typeof slot.ownerNodePath === 'string' ? slot.ownerNodePath : null;\n}\n\nfunction stripMaterialSlotOwnerRootPrefix(\n ownerNodePath: string,\n rootNode: RuntimeNode,\n context: MaterialSlotOwnerPathNormalizeContext,\n): string {\n const segments = ownerNodePath.split('/').filter(Boolean);\n if (segments.length < 1) return ownerNodePath;\n const firstSegmentKey = createMaterialSlotOwnerPathMatchKey(segments[0]!, context);\n const rootKeys = readMaterialSlotOwnerRootPrefixSegmentCandidates(rootNode)\n .map(segment => createMaterialSlotOwnerPathMatchKey(segment, context))\n .filter(Boolean);\n return rootKeys.includes(firstSegmentKey)\n ? segments.slice(1).join('/')\n : ownerNodePath;\n}\n\nfunction stableMaterialSlotOwnerNodeSegment(node: any): string | null {\n return readMaterialSlotSourceNodeSegment(node) ?? readMaterialSlotOwnerRuntimeNodeSegment(node);\n}\n\nfunction readMaterialSlotOwnerRootPrefixSegmentCandidates(node: any): string[] {\n const segments: string[] = [];\n const sourceSegment = readMaterialSlotSourceNodeSegment(node);\n if (sourceSegment) segments.push(sourceSegment);\n const runtimeSegment = readMaterialSlotOwnerRuntimeNodeSegment(node);\n if (runtimeSegment && !segments.includes(runtimeSegment)) segments.push(runtimeSegment);\n return segments;\n}\n\nfunction readMaterialSlotOwnerRuntimeNodeSegment(node: any): string | null {\n const candidates = [node?.name, node?.id];\n for (const candidate of candidates) {\n if (typeof candidate !== 'string') continue;\n const trimmed = candidate.trim();\n if (trimmed) return trimmed;\n }\n return null;\n}\n\nfunction normalizeMaterialSlotOwnerPathSegment(\n segment: string,\n context: MaterialSlotOwnerPathNormalizeContext,\n): string {\n const withoutLeadingNamespace = stripMaterialSlotOwnerPathNamespace(segment.trim());\n const withoutInstancePrefix = stripMaterialSlotProjectionInstancePrefix(withoutLeadingNamespace, context);\n return stripMaterialSlotOwnerPathNamespace(withoutInstancePrefix);\n}\n\nfunction stripMaterialSlotOwnerPathNamespace(segment: string): string {\n return segment.includes(':') ? segment.slice(segment.lastIndexOf(':') + 1) : segment;\n}\n\nfunction stripMaterialSlotProjectionInstancePrefix(\n segment: string,\n context: MaterialSlotOwnerPathNormalizeContext,\n): string {\n const projectionNodeId = typeof context.projectionNodeId === 'string'\n ? context.projectionNodeId.trim()\n : '';\n if (!projectionNodeId) return segment;\n const prefix = `${projectionNodeId}.projectionAsset.`;\n return segment.startsWith(prefix) ? segment.slice(prefix.length) : segment;\n}\n\nfunction createMaterialSlotOwnerSegmentMatchKey(segment: string): string {\n const normalized = normalizeMaterialSlotOwnerPathSegment(segment, {});\n const generatedPrimitiveMatch = /^node_(\\d+)_primitive(\\d+)$/.exec(normalized);\n if (generatedPrimitiveMatch) return `node${generatedPrimitiveMatch[1]}_primitive${generatedPrimitiveMatch[2]}`;\n const generatedNodeMatch = /^node_(\\d+)$/.exec(normalized);\n if (generatedNodeMatch) return `node${generatedNodeMatch[1]}`;\n return normalized;\n}\n\nfunction isMaterialSlotOwnerPathDescendantKey(ownerKey: string, candidateAncestorKey: string): boolean {\n if (!ownerKey || !candidateAncestorKey) return false;\n return ownerKey.startsWith(`${candidateAncestorKey}/`);\n}\n\nfunction isSyntheticMaterialSlotOwnerRootSegment(segment: string): boolean {\n return segment === '__root__';\n}\n\nfunction normalizeMaterialSlotSourceName(value: unknown): string {\n return typeof value === 'string' ? value.trim() : '';\n}\n\nfunction readMaterialSlotMetadataObject(value: unknown): Record<string, unknown> | null {\n return value && typeof value === 'object' && !Array.isArray(value)\n ? value as Record<string, unknown>\n : null;\n}\n"]}
@@ -20,14 +20,8 @@ export function createBabylonAssetContainerProjectionImporter(options) {
20
20
  };
21
21
  }
22
22
  function resolveProjectionInstantiationDoNotInstantiate(options, context) {
23
- switch (context.node.assetInstantiationMode) {
24
- case 'meshClone': return true;
25
- case 'instancedMesh': return false;
26
- case 'auto':
27
- default:
28
- return options.shouldCloneMeshes?.(context)
29
- ?? false;
30
- }
23
+ return options.shouldCloneMeshes?.(context)
24
+ ?? false;
31
25
  }
32
26
  function getProjectionContainerSceneCache(sceneCaches, scene) {
33
27
  let sceneCache = sceneCaches.get(scene);
@@ -1 +1 @@
1
- {"version":3,"file":"projection-asset-container-importer.js","sourceRoot":"","sources":["../src/projection-asset-container-importer.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,gCAAgC,CAAC;AA6DxC,MAAM,UAAU,6CAA6C,CAC3D,OAAuD;IAEvD,MAAM,WAAW,GAAG,IAAI,OAAO,EAAsB,CAAC;IAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,QAAQ,GAAG,MAAM,kCAAkC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5E,MAAM,UAAU,GAAG,gCAAgC,CAAC,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACxC,MAAM,gBAAgB,GAAG,MAAM,IAAI,uBAAuB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnG,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,IAA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C,CAAC,IAAI,EAAE,EAAE,CAAC;QAC7C,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACzB,IAAI,OAAO,IAAI,KAAK,WAAW,IAAI,OAAO,IAAI,KAAK,UAAU;YAAE,SAAS;QACxE,MAAM,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type {\n BabylonEditorProjectionImportContext,\n BabylonEditorProjectionImporter,\n BabylonEditorProjectionImportResult,\n} from './projection';\nimport {\n assignProjectionSourceNodeMetadata,\n createProjectionSourceNameMapper,\n} from './projection-source-owner-path';\n\nexport interface BabylonAssetContainerProjectionContainer {\n materials?: unknown[];\n textures?: unknown[];\n skeletons?: unknown[];\n instantiateModelsToScene?: (\n nameFunction?: (sourceName: string) => string,\n cloneMaterials?: boolean,\n options?: { doNotInstantiate?: boolean },\n ) => BabylonAssetContainerProjectionInstantiatedEntries;\n}\n\nexport interface BabylonAssetContainerProjectionInstantiatedEntries {\n rootNodes?: unknown[];\n animationGroups?: unknown[];\n}\n\nexport type BabylonAssetContainerProjectionImportEvent =\n | {\n type: 'container-load-start';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n }\n | {\n type: 'container-load-success';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n }\n | {\n type: 'container-load-failure';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n error: unknown;\n }\n | {\n type: 'container-cache-hit';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n }\n | {\n type: 'instantiate';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n doNotInstantiate: boolean;\n };\n\nexport interface BabylonAssetContainerProjectionImporterOptions {\n loadContainer(context: BabylonEditorProjectionImportContext): Promise<BabylonAssetContainerProjectionContainer>;\n resolveCacheKey?(context: BabylonEditorProjectionImportContext): string | Promise<string | null | undefined> | null | undefined;\n shouldCloneMeshes?(context: BabylonEditorProjectionImportContext): boolean;\n createInstanceName?(input: {\n sourceName: string;\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n }): string;\n onEvent?(event: BabylonAssetContainerProjectionImportEvent): void;\n}\n\ntype SceneCache = Map<string, Promise<BabylonAssetContainerProjectionContainer>>;\n\nexport function createBabylonAssetContainerProjectionImporter(\n options: BabylonAssetContainerProjectionImporterOptions,\n): BabylonEditorProjectionImporter {\n const sceneCaches = new WeakMap<object, SceneCache>();\n\n return async (context) => {\n const cacheKey = await resolveProjectionContainerCacheKey(options, context);\n const sceneCache = getProjectionContainerSceneCache(sceneCaches, context.scene);\n const cached = sceneCache.get(cacheKey);\n const containerPromise = cached ?? loadProjectionContainer(options, sceneCache, cacheKey, context);\n if (cached) {\n options.onEvent?.({ type: 'container-cache-hit', cacheKey, context });\n }\n const container = await containerPromise;\n ensureProjectionContainerResourcesInScene(container, context.scene);\n const doNotInstantiate = resolveProjectionInstantiationDoNotInstantiate(options, context);\n options.onEvent?.({ type: 'instantiate', cacheKey, context, doNotInstantiate });\n const sourceNameByInstanceName = new Map<string, string>();\n const entries = container.instantiateModelsToScene?.(\n createProjectionSourceNameMapper(\n sourceNameByInstanceName,\n sourceName => options.createInstanceName?.({ sourceName, cacheKey, context })\n ?? `${context.node.id}.projectionAsset.${sourceName}`,\n ),\n false,\n { doNotInstantiate },\n );\n return entries ? collectProjectionImportResult(entries, sourceNameByInstanceName) : null;\n };\n}\n\nfunction resolveProjectionInstantiationDoNotInstantiate(\n options: BabylonAssetContainerProjectionImporterOptions,\n context: BabylonEditorProjectionImportContext,\n): boolean {\n switch (context.node.assetInstantiationMode) {\n case 'meshClone': return true;\n case 'instancedMesh': return false;\n case 'auto':\n default:\n return options.shouldCloneMeshes?.(context)\n ?? false;\n }\n}\n\nfunction getProjectionContainerSceneCache(\n sceneCaches: WeakMap<object, SceneCache>,\n scene: object,\n): SceneCache {\n let sceneCache = sceneCaches.get(scene);\n if (!sceneCache) {\n sceneCache = new Map();\n sceneCaches.set(scene, sceneCache);\n }\n return sceneCache;\n}\n\nfunction loadProjectionContainer(\n options: BabylonAssetContainerProjectionImporterOptions,\n sceneCache: SceneCache,\n cacheKey: string,\n context: BabylonEditorProjectionImportContext,\n): Promise<BabylonAssetContainerProjectionContainer> {\n options.onEvent?.({ type: 'container-load-start', cacheKey, context });\n const promise = options.loadContainer(context)\n .then(container => {\n options.onEvent?.({ type: 'container-load-success', cacheKey, context });\n return container;\n })\n .catch(error => {\n if (sceneCache.get(cacheKey) === promise) sceneCache.delete(cacheKey);\n options.onEvent?.({ type: 'container-load-failure', cacheKey, context, error });\n throw error;\n });\n sceneCache.set(cacheKey, promise);\n return promise;\n}\n\nasync function resolveProjectionContainerCacheKey(\n options: BabylonAssetContainerProjectionImporterOptions,\n context: BabylonEditorProjectionImportContext,\n): Promise<string> {\n const resolved = await options.resolveCacheKey?.(context);\n const baseKey = resolved && resolved.trim()\n ? resolved.trim()\n : createDefaultProjectionContainerCacheKey(context);\n return `${baseKey}|profiles:${stableProjectionCacheStringify({\n artistMaterialKind: context.node.artistMaterialKind,\n artistMaterialProfile: context.node.artistMaterialProfile,\n artistMaterialSlotBindings: context.node.artistMaterialSlotBindings,\n })}`;\n}\n\nfunction createDefaultProjectionContainerCacheKey(context: BabylonEditorProjectionImportContext): string {\n const asset = context.asset;\n return stableProjectionCacheStringify({\n assetId: asset.id,\n sourceId: asset.sourceId,\n url: readProjectionAssetUrlCandidate(asset.metadata),\n });\n}\n\nfunction readProjectionAssetUrlCandidate(metadata: Record<string, unknown> | undefined): unknown {\n if (!metadata) return undefined;\n return metadata.url ?? metadata.sourceUrl ?? metadata.src ?? metadata.path;\n}\n\nfunction ensureProjectionContainerResourcesInScene(\n container: BabylonAssetContainerProjectionContainer,\n scene: Record<string, any>,\n): void {\n addUniqueSceneResources(scene, scene.materials, container.materials, scene.addMaterial);\n addUniqueSceneResources(scene, scene.textures, container.textures, scene.addTexture);\n addUniqueSceneResources(scene, scene.skeletons, container.skeletons, scene.addSkeleton);\n}\n\nfunction addUniqueSceneResources(\n scene: Record<string, any>,\n existing: unknown[] | undefined,\n resources: unknown[] | undefined,\n addResource: ((resource: any) => void) | undefined,\n): void {\n if (!Array.isArray(resources) || resources.length === 0 || typeof addResource !== 'function') return;\n for (const resource of resources) {\n if (Array.isArray(existing) && existing.includes(resource)) continue;\n addResource.call(scene, resource);\n }\n}\n\nfunction collectProjectionImportResult(\n entries: BabylonAssetContainerProjectionInstantiatedEntries,\n sourceNameByInstanceName: ReadonlyMap<string, string>,\n): BabylonEditorProjectionImportResult {\n const meshes: unknown[] = [];\n const transformNodes: unknown[] = [];\n const seen = new Set<unknown>();\n for (const rootNode of entries.rootNodes ?? []) {\n collectProjectionNode(rootNode, sourceNameByInstanceName, seen, meshes, transformNodes);\n }\n return {\n meshes,\n transformNodes,\n animationGroups: entries.animationGroups ?? [],\n };\n}\n\nfunction collectProjectionNode(\n node: unknown,\n sourceNameByInstanceName: ReadonlyMap<string, string>,\n seen: Set<unknown>,\n meshes: unknown[],\n transformNodes: unknown[],\n): void {\n if (!node || seen.has(node)) return;\n seen.add(node);\n assignProjectionSourceNodeMetadata(node, sourceNameByInstanceName);\n if (isProjectionMeshLike(node)) {\n meshes.push(node);\n } else {\n transformNodes.push(node);\n }\n for (const child of readProjectionNodeChildren(node)) {\n collectProjectionNode(child, sourceNameByInstanceName, seen, meshes, transformNodes);\n }\n}\n\nfunction readProjectionNodeChildren(node: unknown): unknown[] {\n const getChildren = (node as { getChildren?: () => unknown[] } | null)?.getChildren;\n if (typeof getChildren !== 'function') return [];\n const children = getChildren.call(node);\n return Array.isArray(children) ? children : [];\n}\n\nfunction isProjectionMeshLike(node: unknown): boolean {\n return typeof (node as { getTotalVertices?: unknown } | null)?.getTotalVertices === 'function';\n}\n\nfunction stableProjectionCacheStringify(value: unknown): string {\n return JSON.stringify(sortProjectionCacheValue(value));\n}\n\nfunction sortProjectionCacheValue(value: unknown): unknown {\n if (Array.isArray(value)) return value.map(sortProjectionCacheValue);\n if (!value || typeof value !== 'object') return value;\n const record = value as Record<string, unknown>;\n const sorted: Record<string, unknown> = {};\n for (const key of Object.keys(record).sort()) {\n const item = record[key];\n if (typeof item === 'undefined' || typeof item === 'function') continue;\n sorted[key] = sortProjectionCacheValue(item);\n }\n return sorted;\n}\n"]}
1
+ {"version":3,"file":"projection-asset-container-importer.js","sourceRoot":"","sources":["../src/projection-asset-container-importer.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,gCAAgC,CAAC;AA6DxC,MAAM,UAAU,6CAA6C,CAC3D,OAAuD;IAEvD,MAAM,WAAW,GAAG,IAAI,OAAO,EAAsB,CAAC;IAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,QAAQ,GAAG,MAAM,kCAAkC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5E,MAAM,UAAU,GAAG,gCAAgC,CAAC,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACxC,MAAM,gBAAgB,GAAG,MAAM,IAAI,uBAAuB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnG,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;QACxE,CAAC;QACD,MAAM,SAAS,GAAG,MAAM,gBAAgB,CAAC;QACzC,yCAAyC,CAAC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QACpE,MAAM,gBAAgB,GAAG,8CAA8C,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1F,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,OA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AC,CAAC;IACxC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AACjD,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAa;IACzC,OAAO,OAAQ,IAA8C,EAAE,gBAAgB,KAAK,UAAU,CAAC;AACjG,CAAC;AAED,SAAS,8BAA8B,CAAC,KAAc;IACpD,OAAO,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,SAAS,wBAAwB,CAAC,KAAc;IAC9C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACrE,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACtD,MAAM,MAAM,GAAG,KAAgC,CAAC;IAChD,MAAM,MAAM,GAA4B,EAAE,CAAC;IAC3C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QAC7C,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACzB,IAAI,OAAO,IAAI,KAAK,WAAW,IAAI,OAAO,IAAI,KAAK,UAAU;YAAE,SAAS;QACxE,MAAM,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type {\n BabylonEditorProjectionImportContext,\n BabylonEditorProjectionImporter,\n BabylonEditorProjectionImportResult,\n} from './projection';\nimport {\n assignProjectionSourceNodeMetadata,\n createProjectionSourceNameMapper,\n} from './projection-source-owner-path';\n\nexport interface BabylonAssetContainerProjectionContainer {\n materials?: unknown[];\n textures?: unknown[];\n skeletons?: unknown[];\n instantiateModelsToScene?: (\n nameFunction?: (sourceName: string) => string,\n cloneMaterials?: boolean,\n options?: { doNotInstantiate?: boolean },\n ) => BabylonAssetContainerProjectionInstantiatedEntries;\n}\n\nexport interface BabylonAssetContainerProjectionInstantiatedEntries {\n rootNodes?: unknown[];\n animationGroups?: unknown[];\n}\n\nexport type BabylonAssetContainerProjectionImportEvent =\n | {\n type: 'container-load-start';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n }\n | {\n type: 'container-load-success';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n }\n | {\n type: 'container-load-failure';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n error: unknown;\n }\n | {\n type: 'container-cache-hit';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n }\n | {\n type: 'instantiate';\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n doNotInstantiate: boolean;\n };\n\nexport interface BabylonAssetContainerProjectionImporterOptions {\n loadContainer(context: BabylonEditorProjectionImportContext): Promise<BabylonAssetContainerProjectionContainer>;\n resolveCacheKey?(context: BabylonEditorProjectionImportContext): string | Promise<string | null | undefined> | null | undefined;\n shouldCloneMeshes?(context: BabylonEditorProjectionImportContext): boolean;\n createInstanceName?(input: {\n sourceName: string;\n cacheKey: string;\n context: BabylonEditorProjectionImportContext;\n }): string;\n onEvent?(event: BabylonAssetContainerProjectionImportEvent): void;\n}\n\ntype SceneCache = Map<string, Promise<BabylonAssetContainerProjectionContainer>>;\n\nexport function createBabylonAssetContainerProjectionImporter(\n options: BabylonAssetContainerProjectionImporterOptions,\n): BabylonEditorProjectionImporter {\n const sceneCaches = new WeakMap<object, SceneCache>();\n\n return async (context) => {\n const cacheKey = await resolveProjectionContainerCacheKey(options, context);\n const sceneCache = getProjectionContainerSceneCache(sceneCaches, context.scene);\n const cached = sceneCache.get(cacheKey);\n const containerPromise = cached ?? loadProjectionContainer(options, sceneCache, cacheKey, context);\n if (cached) {\n options.onEvent?.({ type: 'container-cache-hit', cacheKey, context });\n }\n const container = await containerPromise;\n ensureProjectionContainerResourcesInScene(container, context.scene);\n const doNotInstantiate = resolveProjectionInstantiationDoNotInstantiate(options, context);\n options.onEvent?.({ type: 'instantiate', cacheKey, context, doNotInstantiate });\n const sourceNameByInstanceName = new Map<string, string>();\n const entries = container.instantiateModelsToScene?.(\n createProjectionSourceNameMapper(\n sourceNameByInstanceName,\n sourceName => options.createInstanceName?.({ sourceName, cacheKey, context })\n ?? `${context.node.id}.projectionAsset.${sourceName}`,\n ),\n false,\n { doNotInstantiate },\n );\n return entries ? collectProjectionImportResult(entries, sourceNameByInstanceName) : null;\n };\n}\n\nfunction resolveProjectionInstantiationDoNotInstantiate(\n options: BabylonAssetContainerProjectionImporterOptions,\n context: BabylonEditorProjectionImportContext,\n): boolean {\n return options.shouldCloneMeshes?.(context)\n ?? false;\n}\n\nfunction getProjectionContainerSceneCache(\n sceneCaches: WeakMap<object, SceneCache>,\n scene: object,\n): SceneCache {\n let sceneCache = sceneCaches.get(scene);\n if (!sceneCache) {\n sceneCache = new Map();\n sceneCaches.set(scene, sceneCache);\n }\n return sceneCache;\n}\n\nfunction loadProjectionContainer(\n options: BabylonAssetContainerProjectionImporterOptions,\n sceneCache: SceneCache,\n cacheKey: string,\n context: BabylonEditorProjectionImportContext,\n): Promise<BabylonAssetContainerProjectionContainer> {\n options.onEvent?.({ type: 'container-load-start', cacheKey, context });\n const promise = options.loadContainer(context)\n .then(container => {\n options.onEvent?.({ type: 'container-load-success', cacheKey, context });\n return container;\n })\n .catch(error => {\n if (sceneCache.get(cacheKey) === promise) sceneCache.delete(cacheKey);\n options.onEvent?.({ type: 'container-load-failure', cacheKey, context, error });\n throw error;\n });\n sceneCache.set(cacheKey, promise);\n return promise;\n}\n\nasync function resolveProjectionContainerCacheKey(\n options: BabylonAssetContainerProjectionImporterOptions,\n context: BabylonEditorProjectionImportContext,\n): Promise<string> {\n const resolved = await options.resolveCacheKey?.(context);\n const baseKey = resolved && resolved.trim()\n ? resolved.trim()\n : createDefaultProjectionContainerCacheKey(context);\n return `${baseKey}|profiles:${stableProjectionCacheStringify({\n artistMaterialKind: context.node.artistMaterialKind,\n artistMaterialProfile: context.node.artistMaterialProfile,\n artistMaterialSlotBindings: context.node.artistMaterialSlotBindings,\n })}`;\n}\n\nfunction createDefaultProjectionContainerCacheKey(context: BabylonEditorProjectionImportContext): string {\n const asset = context.asset;\n return stableProjectionCacheStringify({\n assetId: asset.id,\n sourceId: asset.sourceId,\n url: readProjectionAssetUrlCandidate(asset.metadata),\n });\n}\n\nfunction readProjectionAssetUrlCandidate(metadata: Record<string, unknown> | undefined): unknown {\n if (!metadata) return undefined;\n return metadata.url ?? metadata.sourceUrl ?? metadata.src ?? metadata.path;\n}\n\nfunction ensureProjectionContainerResourcesInScene(\n container: BabylonAssetContainerProjectionContainer,\n scene: Record<string, any>,\n): void {\n addUniqueSceneResources(scene, scene.materials, container.materials, scene.addMaterial);\n addUniqueSceneResources(scene, scene.textures, container.textures, scene.addTexture);\n addUniqueSceneResources(scene, scene.skeletons, container.skeletons, scene.addSkeleton);\n}\n\nfunction addUniqueSceneResources(\n scene: Record<string, any>,\n existing: unknown[] | undefined,\n resources: unknown[] | undefined,\n addResource: ((resource: any) => void) | undefined,\n): void {\n if (!Array.isArray(resources) || resources.length === 0 || typeof addResource !== 'function') return;\n for (const resource of resources) {\n if (Array.isArray(existing) && existing.includes(resource)) continue;\n addResource.call(scene, resource);\n }\n}\n\nfunction collectProjectionImportResult(\n entries: BabylonAssetContainerProjectionInstantiatedEntries,\n sourceNameByInstanceName: ReadonlyMap<string, string>,\n): BabylonEditorProjectionImportResult {\n const meshes: unknown[] = [];\n const transformNodes: unknown[] = [];\n const seen = new Set<unknown>();\n for (const rootNode of entries.rootNodes ?? []) {\n collectProjectionNode(rootNode, sourceNameByInstanceName, seen, meshes, transformNodes);\n }\n return {\n meshes,\n transformNodes,\n animationGroups: entries.animationGroups ?? [],\n };\n}\n\nfunction collectProjectionNode(\n node: unknown,\n sourceNameByInstanceName: ReadonlyMap<string, string>,\n seen: Set<unknown>,\n meshes: unknown[],\n transformNodes: unknown[],\n): void {\n if (!node || seen.has(node)) return;\n seen.add(node);\n assignProjectionSourceNodeMetadata(node, sourceNameByInstanceName);\n if (isProjectionMeshLike(node)) {\n meshes.push(node);\n } else {\n transformNodes.push(node);\n }\n for (const child of readProjectionNodeChildren(node)) {\n collectProjectionNode(child, sourceNameByInstanceName, seen, meshes, transformNodes);\n }\n}\n\nfunction readProjectionNodeChildren(node: unknown): unknown[] {\n const getChildren = (node as { getChildren?: () => unknown[] } | null)?.getChildren;\n if (typeof getChildren !== 'function') return [];\n const children = getChildren.call(node);\n return Array.isArray(children) ? children : [];\n}\n\nfunction isProjectionMeshLike(node: unknown): boolean {\n return typeof (node as { getTotalVertices?: unknown } | null)?.getTotalVertices === 'function';\n}\n\nfunction stableProjectionCacheStringify(value: unknown): string {\n return JSON.stringify(sortProjectionCacheValue(value));\n}\n\nfunction sortProjectionCacheValue(value: unknown): unknown {\n if (Array.isArray(value)) return value.map(sortProjectionCacheValue);\n if (!value || typeof value !== 'object') return value;\n const record = value as Record<string, unknown>;\n const sorted: Record<string, unknown> = {};\n for (const key of Object.keys(record).sort()) {\n const item = record[key];\n if (typeof item === 'undefined' || typeof item === 'function') continue;\n sorted[key] = sortProjectionCacheValue(item);\n }\n return sorted;\n}\n"]}
@@ -1,6 +1,9 @@
1
1
  import type { EditorSelectionState, EditorTransformPivot, EditorTransformSnapshot, EditorTransformVec3 } from '@fps-games/editor-core';
2
2
  import type { ArtistMaterialProfile, ArtistMaterialSlotBinding, ArtistMaterialTextureRef, SceneMaterialAssetKind } from '@fps-games/editor-protocol';
3
+ import { type BabylonMaterialOwnerTarget } from '@fps-games/babylon-renderer';
4
+ import { type MaterialOwnerMatchKind, type MaterialOwnerResolvedIdentity, type MaterialOwnerResolution, type MaterialOwnerResolutionDiagnostic } from '@fps-games/playable-contracts';
3
5
  import type { BabylonRuntimeGlobal, RuntimeCamera, RuntimeScene } from './types';
6
+ import { type BabylonEditorSelectionPresentationController, type BabylonEditorSelectionPresentationDiagnostics, type BabylonEditorSelectionPresentationTarget } from './selection-presentation-controller';
4
7
  export type BabylonEditorProjectionVec3 = EditorTransformVec3;
5
8
  export interface BabylonEditorProjectionVec2 {
6
9
  x: number;
@@ -76,7 +79,6 @@ export interface BabylonEditorProjectionRendering {
76
79
  renderingGroupId?: number;
77
80
  alphaIndex?: number;
78
81
  }
79
- export type BabylonEditorProjectionAssetInstantiationMode = 'auto' | 'meshClone' | 'instancedMesh';
80
82
  export interface BabylonEditorProjectionNode {
81
83
  id: string;
82
84
  name?: string;
@@ -93,7 +95,6 @@ export interface BabylonEditorProjectionNode {
93
95
  camera?: BabylonEditorProjectionCameraSettings;
94
96
  light?: BabylonEditorProjectionLightSettings;
95
97
  outline?: BabylonEditorProjectionOutline | null;
96
- assetInstantiationMode?: BabylonEditorProjectionAssetInstantiationMode;
97
98
  artistMaterialKind?: SceneMaterialAssetKind;
98
99
  artistMaterialProfile?: ArtistMaterialProfile;
99
100
  artistMaterialSlotBindings?: ArtistMaterialSlotBinding[];
@@ -148,7 +149,7 @@ export interface BabylonEditorProjectionImportContext {
148
149
  }
149
150
  export type BabylonEditorProjectionImporter = (context: BabylonEditorProjectionImportContext) => Promise<BabylonEditorProjectionImportResult | null | undefined>;
150
151
  export type BabylonEditorProjectionMaterialProfileSource = 'rootProfile' | 'slotBinding';
151
- export type BabylonEditorProjectionMaterialProfileMatchKind = 'root' | 'exact' | 'descendant' | 'none';
152
+ export type BabylonEditorProjectionMaterialProfileMatchKind = 'root' | MaterialOwnerMatchKind | 'none';
152
153
  export type BabylonEditorProjectionMaterialProfileTargetStatus = 'material' | 'subMaterial' | 'primitiveFallbackMaterial' | 'missingMeshOwner' | 'missingMaterial' | 'missingTargetMaterial' | 'missingSubMaterial';
153
154
  export interface BabylonEditorProjectionMaterialProfileDiagnostic {
154
155
  projectionNodeId: string;
@@ -162,6 +163,11 @@ export interface BabylonEditorProjectionMaterialProfileDiagnostic {
162
163
  primitiveIndex?: number;
163
164
  targetMaterialName?: string;
164
165
  targetMaterialType?: string | null;
166
+ ownerResolutionStatus?: ProjectionMaterialOwnerResolution['status'];
167
+ ownerDiagnosticCode?: MaterialOwnerResolutionDiagnostic['code'];
168
+ ownerDiagnosticSeverity?: MaterialOwnerResolutionDiagnostic['severity'];
169
+ ownerCandidateIds?: string[];
170
+ ownerIdentity?: MaterialOwnerResolvedIdentity;
165
171
  warningMessage?: string;
166
172
  }
167
173
  export interface BabylonEditorProjectionOptions {
@@ -169,13 +175,16 @@ export interface BabylonEditorProjectionOptions {
169
175
  scene: RuntimeScene;
170
176
  importModel?: BabylonEditorProjectionImporter;
171
177
  resolveTextureUrl?: (texture: ArtistMaterialTextureRef) => string | null | undefined;
178
+ /** @deprecated Kept for compatibility; now prewarms the depth-aware selection presentation. */
172
179
  selectionEdgesPrewarm?: BabylonEditorProjectionSelectionEdgesPrewarm;
173
- logger?: Pick<Console, 'warn'>;
180
+ selectionPresentationController?: BabylonEditorSelectionPresentationController;
181
+ logger?: Pick<Console, 'warn'> & Partial<Pick<Console, 'info'>>;
174
182
  onProjectionReady?: (event: BabylonEditorProjectionReadyEvent) => void;
175
183
  onProjectionBatchSettled?: (event: BabylonEditorProjectionBatchSettledEvent) => void;
176
184
  onMaterialProfileDiagnostic?: (diagnostic: BabylonEditorProjectionMaterialProfileDiagnostic) => void;
177
185
  }
178
186
  export type BabylonEditorProjectionSelectionEdgesPrewarm = 'eager' | 'lazy' | 'idle';
187
+ type ProjectionMaterialOwnerResolution = MaterialOwnerResolution<BabylonMaterialOwnerTarget>;
179
188
  export interface BabylonEditorProjectionReadyEvent {
180
189
  nodeId: string;
181
190
  async: boolean;
@@ -231,11 +240,11 @@ export interface ProjectedBabylonEditorNode {
231
240
  root: any;
232
241
  outlineMeshes: any[];
233
242
  selectionMeshes?: any[];
243
+ selectionPresentationTargets?: BabylonEditorSelectionPresentationTarget[];
234
244
  animationGroups: any[];
235
245
  runtimeObjects: any[];
236
246
  importStructure?: BabylonEditorProjectionImportStructureSnapshot | null;
237
247
  loadPromise?: Promise<void>;
238
- selectionEdgesPrewarmCancel?: (() => void) | null;
239
248
  }
240
249
  export interface BabylonEditorProjection {
241
250
  projectNodes(nodes: BabylonEditorProjectionNode[]): BabylonEditorProjectionBatchHandle;
@@ -247,6 +256,7 @@ export interface BabylonEditorProjection {
247
256
  waitForIdle(): Promise<BabylonEditorProjectionIdleState>;
248
257
  readNodeTransform(nodeId: string): EditorTransformSnapshot | null;
249
258
  readNodeTransforms(nodeIds: string[]): Record<string, EditorTransformSnapshot>;
259
+ toNodeLocalTransform?(nodeId: string, worldTransform: EditorTransformSnapshot): EditorTransformSnapshot | null;
250
260
  readNodeImportStructure(nodeId: string): BabylonEditorProjectionImportStructureSnapshot | null;
251
261
  setNodeTransformPreview(nodeId: string, transform: EditorTransformSnapshot): void;
252
262
  setNodeTransformsPreview(transforms: Record<string, EditorTransformSnapshot>): void;
@@ -257,6 +267,7 @@ export interface BabylonEditorProjection {
257
267
  syncRuntimeNode(node: BabylonEditorProjectionNode): boolean;
258
268
  syncNodeMetadata(node: BabylonEditorProjectionNode): void;
259
269
  syncSelection(selection: EditorSelectionState): void;
270
+ getSelectionPresentationDiagnostics(): BabylonEditorSelectionPresentationDiagnostics;
260
271
  resolveProjectionNodeId(target: unknown): string | null;
261
272
  resolvePickSelectionNodeId(target: unknown): string | null;
262
273
  pickNodeIdAt(clientX: number, clientY: number): string | null;
@@ -282,10 +293,20 @@ export interface BabylonEditorProjectionBounds {
282
293
  max: BabylonEditorProjectionVec3;
283
294
  center: BabylonEditorProjectionVec3;
284
295
  size: BabylonEditorProjectionVec3;
296
+ oriented?: {
297
+ center: BabylonEditorProjectionVec3;
298
+ size: BabylonEditorProjectionVec3;
299
+ axes: {
300
+ x: BabylonEditorProjectionVec3;
301
+ y: BabylonEditorProjectionVec3;
302
+ z: BabylonEditorProjectionVec3;
303
+ };
304
+ };
285
305
  }
286
306
  export declare function createBabylonEditorProjection(options: BabylonEditorProjectionOptions): BabylonEditorProjection;
287
307
  export declare function readProjectionTransform(node: any): EditorTransformSnapshot;
288
308
  export declare function normalizeBabylonEditorProjectionCameraSettings(settings: BabylonEditorProjectionCameraSettings | undefined): BabylonEditorProjectionCameraSettings;
289
309
  export declare function applyBabylonEditorProjectionCameraRig(babylon: BabylonRuntimeGlobal, scene: RuntimeScene, camera: RuntimeCamera, settings: BabylonEditorProjectionCameraSettings | undefined, options?: BabylonEditorProjectionCameraRigApplyOptions): BabylonEditorProjectionCameraSettings;
290
310
  export declare function applyProjectionTransform(babylon: BabylonRuntimeGlobal, node: any, transform: BabylonEditorProjectionTransform): void;
311
+ export {};
291
312
  //# sourceMappingURL=projection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../src/projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAUhC,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EAExB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,YAAY,EACb,MAAM,SAAS,CAAC;AAmBjB,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAC9D,MAAM,WAAW,2BAA2B;IAC1C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAMD,MAAM,MAAM,gCAAgC,GAAG,uBAAuB,CAAC;AAEvE,MAAM,WAAW,qCAAqC;IACpD,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAC;CAC9C;AAED,MAAM,WA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