@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":"forge-play.js","sourceRoot":"","sources":["../../src/local-harness/forge-play.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,GAChC,MAAM,UAAU,CAAC;AAmBlB,MAAM,CAAC,MAAM,iCAAiC,GAAG,wBAAwB,CAAC;AAE1E,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,cAAc;IACpB,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,qBAAqB,EAAE,uBAAuB;IAC9C,kBAAkB,EAAE,oBAAoB;IACxC,WAAW,EAAE,aAAa;IAC1B,aAAa,EA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AAM;YACX,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;YACxD,CAAC,CAAC,WAAW,SAAS,oBAAoB;KAC7C,CAAC;AACJ,CAAC","sourcesContent":["import {\n waitForPlayableLocalEditorPaint,\n} from './timing';\nimport type {\n PlayableForgePlayBridgeInstallOptions,\n PlayableForgePlayHistoryOperation,\n PlayableForgePlayHistoryOperationOptions,\n PlayableForgePlayHistoryOperationResult,\n PlayableForgePlayMessageEvent,\n PlayableForgePlayMode,\n PlayableForgePlayModeBridge,\n PlayableForgePlaySaveState,\n PlayableForgePlayWindowLike,\n} from './forge-play-types';\nimport type {\n PlayableLocalEditorDataSafetyOperation,\n PlayableLocalEditorSaveFailureInput,\n PlayableLocalEditorSaveFailureState,\n PlayableLocalEditorUnsavedChangesState,\n} from './types';\n\nexport const PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE = 'forge-play-game-bridge';\n\nexport const PLAYABLE_FORGE_PLAY_POST_MESSAGE = {\n EVENT: 'event',\n COMMAND: 'command',\n} as const;\n\nexport const PLAYABLE_FORGE_PLAY_COMMAND = {\n MODE_CHANGE: 'mode.change',\n UNDO: 'history.undo',\n REDO: 'history.redo',\n DOCUMENT_EXPORT: 'document.export',\n DOCUMENT_COMMIT: 'document.commit',\n ASSET_IMPORT: 'asset.import',\n ASSET_UPDATE: 'asset.update',\n ASSET_LIBRARY_REFRESH: 'asset.library.refresh',\n EDITOR_ASSET_PLACE: 'editor.asset.place',\n ASSETS_DROP: 'assets.drop',\n ASSETS_LOADED: 'assets.loaded',\n} as const;\n\nexport const PLAYABLE_FORGE_PLAY_EVENT = {\n SCENE_READY: 'scene.ready',\n FIRST_FRAME: 'scene.first_frame',\n MODE_CHANGE: 'mode.change',\n HISTORY_UNDO_RESULT: 'history.undo.result',\n HISTORY_REDO_RESULT: 'history.redo.result',\n DOCUMENT_EXPORTED: 'document.exported',\n ASSET_IMPORT_RESULT: 'asset.import.result',\n ASSET_UPDATE_RESULT: 'asset.update.result',\n ASSET_LIBRARY_REFRESHED: 'asset.library.refreshed',\n EDITOR_ASSET_PLACE_RESULT: 'editor.asset.place.result',\n SYSTEM_ERROR: 'system.error',\n} as const;\n\nexport const PLAYABLE_FORGE_PLAY_EVENT_ALIASES: Record<string, readonly string[]> = {\n [PLAYABLE_FORGE_PLAY_EVENT.SCENE_READY]: ['scene:ready', 'lifecycle:ready'],\n [PLAYABLE_FORGE_PLAY_EVENT.FIRST_FRAME]: ['scene:first_frame', 'lifecycle:firstFrame'],\n [PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE]: ['mode:change', 'mode:changed'],\n [PLAYABLE_FORGE_PLAY_EVENT.HISTORY_UNDO_RESULT]: ['history:undo:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.HISTORY_REDO_RESULT]: ['history:redo:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.DOCUMENT_EXPORTED]: ['document:exported'],\n [PLAYABLE_FORGE_PLAY_EVENT.ASSET_IMPORT_RESULT]: ['asset:import:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.ASSET_UPDATE_RESULT]: ['asset:update:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.ASSET_LIBRARY_REFRESHED]: ['asset:library:refreshed'],\n [PLAYABLE_FORGE_PLAY_EVENT.EDITOR_ASSET_PLACE_RESULT]: ['editor:asset:place:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.SYSTEM_ERROR]: ['system:error'],\n};\n\nexport const PLAYABLE_FORGE_PLAY_COMMAND_ALIASES: Record<string, string> = {\n 'mode:change': PLAYABLE_FORGE_PLAY_COMMAND.MODE_CHANGE,\n 'history:undo': PLAYABLE_FORGE_PLAY_COMMAND.UNDO,\n 'history:redo': PLAYABLE_FORGE_PLAY_COMMAND.REDO,\n 'document:export': PLAYABLE_FORGE_PLAY_COMMAND.DOCUMENT_EXPORT,\n 'document:commit': PLAYABLE_FORGE_PLAY_COMMAND.DOCUMENT_COMMIT,\n 'asset:import': PLAYABLE_FORGE_PLAY_COMMAND.ASSET_IMPORT,\n 'asset:update': PLAYABLE_FORGE_PLAY_COMMAND.ASSET_UPDATE,\n 'asset:library:refresh': PLAYABLE_FORGE_PLAY_COMMAND.ASSET_LIBRARY_REFRESH,\n 'editor:asset:place': PLAYABLE_FORGE_PLAY_COMMAND.EDITOR_ASSET_PLACE,\n 'assets:drop': PLAYABLE_FORGE_PLAY_COMMAND.ASSETS_DROP,\n 'assets:loaded': PLAYABLE_FORGE_PLAY_COMMAND.ASSETS_LOADED,\n};\n\nexport const PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS = new Set<string>([\n PLAYABLE_FORGE_PLAY_COMMAND.ASSET_IMPORT,\n PLAYABLE_FORGE_PLAY_COMMAND.ASSET_UPDATE,\n PLAYABLE_FORGE_PLAY_COMMAND.ASSET_LIBRARY_REFRESH,\n PLAYABLE_FORGE_PLAY_COMMAND.EDITOR_ASSET_PLACE,\n PLAYABLE_FORGE_PLAY_COMMAND.ASSETS_LOADED,\n]);\n\nexport const PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS = new Set<string>([\n PLAYABLE_FORGE_PLAY_COMMAND.UNDO,\n PLAYABLE_FORGE_PLAY_COMMAND.REDO,\n]);\n\nexport function createPlayableForgePlaySaveState(): PlayableForgePlaySaveState {\n return {\n preparedRevision: 0,\n committedRevision: 0,\n };\n}\n\nexport function normalizePlayableForgePlayCommandName(value: unknown): string | null {\n if (typeof value !== 'string') return null;\n return PLAYABLE_FORGE_PLAY_COMMAND_ALIASES[value] ?? value;\n}\n\nexport function readPlayableForgePlayRequestId(payload: Record<string, unknown>): string | undefined {\n return typeof payload.requestId === 'string' && payload.requestId.trim()\n ? payload.requestId.trim()\n : undefined;\n}\n\nexport function readPlayableForgePlayHistoryOperationOptions(\n payload: Record<string, unknown>,\n): PlayableForgePlayHistoryOperationOptions {\n return {\n origin: readPlayableForgePlayHistoryOrigin(payload.origin),\n waitForProjection: payload.waitForProjection === 'settled' ? 'settled' : 'none',\n };\n}\n\nexport function getPlayableForgePlayHistoryResultEventName(\n operation: PlayableForgePlayHistoryOperation,\n): string {\n return operation === 'undo'\n ? PLAYABLE_FORGE_PLAY_EVENT.HISTORY_UNDO_RESULT\n : PLAYABLE_FORGE_PLAY_EVENT.HISTORY_REDO_RESULT;\n}\n\nexport function postPlayableForgePlayEvent(\n windowLike: Pick<PlayableForgePlayWindowLike, 'parent'>,\n name: string,\n payload: Record<string, unknown> = {},\n): void {\n if (!windowLike.parent || windowLike.parent === (windowLike as unknown)) return;\n const post = (eventName: string): void => {\n windowLike.parent?.postMessage({\n source: PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE,\n type: PLAYABLE_FORGE_PLAY_POST_MESSAGE.EVENT,\n payload: { ...payload, name: eventName },\n timestamp: Date.now(),\n }, '*');\n };\n post(name);\n for (const alias of PLAYABLE_FORGE_PLAY_EVENT_ALIASES[name] ?? []) {\n if (alias !== name) post(alias);\n }\n}\n\nfunction readPlayableForgePlayHistoryOrigin(value: unknown): PlayableForgePlayHistoryOperationOptions['origin'] {\n return value === 'user' || value === 'system' || value === 'agent'\n ? value\n : 'agent';\n}\n\nexport function installPlayableForgePlayModeBridge(\n options: PlayableForgePlayBridgeInstallOptions,\n): PlayableForgePlayModeBridge {\n let currentMode = options.initialMode ?? 'play';\n let inFlight: Promise<void> | null = null;\n const saveState = createPlayableForgePlaySaveState();\n let preparedDocumentFingerprint: string | null = null;\n let committedDocumentFingerprint: string | null = null;\n let preparedRequestId: string | null = null;\n let commitInFlight: { requestId: string; promise: Promise<void> } | null = null;\n let overlayHideTimer: unknown = null;\n const waitForPaint = options.waitForPaint ?? waitForPlayableLocalEditorPaint;\n const overlayHideDelayMs = options.overlayHideDelayMs ?? 3000;\n const readMode = (): PlayableForgePlayMode => options.readMode?.() ?? currentMode;\n const invalidatePreparedPlatformSave = (): void => {\n saveState.preparedRevision = saveState.committedRevision;\n preparedDocumentFingerprint = null;\n preparedRequestId = null;\n };\n const postEvent = (name: string, payload: Record<string, unknown> = {}): void => {\n postPlayableForgePlayEvent(options.window, name, payload);\n };\n\n const notifySaveFailed = async (\n operation: PlayableLocalEditorDataSafetyOperation,\n error?: unknown,\n ): Promise<void> => {\n const notify = options.interactions?.notifySaveFailed;\n if (!notify) return;\n let state: PlayableLocalEditorSaveFailureState | null | undefined;\n try {\n state = options.harness.getSaveFailureState?.();\n } catch (stateError) {\n console.error('[PlayableForgePlayBridge] save failure state unavailable', stateError);\n }\n const input: PlayableLocalEditorSaveFailureInput = {\n operation,\n status: state?.status ?? (error instanceof Error ? error.message : undefined),\n details: state?.details,\n error: error ?? state?.error,\n };\n try {\n await notify(input);\n } catch (notifyError) {\n console.error('[PlayableForgePlayBridge] save failure notification failed', notifyError);\n }\n };\n\n const saveScene = async (\n operation: PlayableLocalEditorDataSafetyOperation,\n ): Promise<boolean> => {\n if (options.saveDocument) return options.saveDocument(operation);\n try {\n const saved = await options.harness.saveScene();\n if (!saved) await notifySaveFailed(operation);\n return saved;\n } catch (error) {\n await notifySaveFailed(operation, error);\n throw error;\n }\n };\n\n const readUnsavedChangesState = (): PlayableLocalEditorUnsavedChangesState => {\n const fallbackHasWorkingDocument = options.harness.getWorkingDocument() !== null;\n try {\n return options.harness.getUnsavedChangesState?.() ?? {\n dirty: false,\n hasWorkingDocument: fallbackHasWorkingDocument,\n };\n } catch (error) {\n console.error('[PlayableForgePlayBridge] unsaved changes state unavailable', error);\n return {\n dirty: false,\n hasWorkingDocument: fallbackHasWorkingDocument,\n };\n }\n };\n\n const confirmDiscardIfNeeded = async (\n operation: PlayableLocalEditorDataSafetyOperation,\n ): Promise<boolean> => {\n const unsavedChanges = readUnsavedChangesState();\n if (!unsavedChanges.dirty || !unsavedChanges.hasWorkingDocument) return true;\n try {\n return await options.interactions?.confirmDiscardUnsavedChanges?.({\n operation,\n unsavedChanges,\n }) !== false;\n } catch (error) {\n console.error('[PlayableForgePlayBridge] discard confirmation failed', error);\n return false;\n }\n };\n\n const clearOverlayHideTimer = (): void => {\n if (overlayHideTimer == null) return;\n options.window.clearTimeout(overlayHideTimer);\n overlayHideTimer = null;\n };\n\n const showSaveOverlay = (content: PlayableForgePlayBridgeInstallOptions['loadingContent']['saveScene']): void => {\n clearOverlayHideTimer();\n options.loadingOverlay.show(content);\n };\n\n const scheduleSaveOverlayHide = (): void => {\n clearOverlayHideTimer();\n overlayHideTimer = options.window.setTimeout(() => {\n overlayHideTimer = null;\n options.loadingOverlay.hide();\n }, overlayHideDelayMs);\n };\n\n const reportModeChangeError = (error: unknown, fallbackMode: PlayableForgePlayMode): void => {\n options.reportError?.(error);\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.SYSTEM_ERROR, {\n kind: 'rejection',\n message: error instanceof Error ? error.message : String(error),\n });\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: fallbackMode });\n };\n\n const postHistoryOperationResult = (\n operation: PlayableForgePlayHistoryOperation,\n payload: Record<string, unknown>,\n result: PlayableForgePlayHistoryOperationResult,\n ): void => {\n const requestId = readPlayableForgePlayRequestId(payload);\n postEvent(getPlayableForgePlayHistoryResultEventName(operation), {\n ...result,\n ...(requestId ? { requestId } : {}),\n });\n };\n\n const switchMode = async (\n mode: PlayableForgePlayMode,\n switchOptions: { save?: boolean } = {},\n ): Promise<void> => {\n const exitLoadingContent = mode === 'play' && !options.exitEditor\n ? switchOptions.save === true\n ? options.loadingContent.saveAndRunGame\n : options.loadingContent.discardAndRunGame\n : null;\n const shouldRunExit = (): boolean => mode === 'play' && options.harness.getWorkingDocument() !== null;\n\n if (inFlight) await inFlight;\n if (readMode() === mode && !shouldRunExit()) {\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode });\n return;\n }\n\n inFlight = (async () => {\n if (mode === 'play' && switchOptions.save !== true && shouldRunExit() && !options.exitEditor) {\n const confirmed = await confirmDiscardIfNeeded('forge-play-mode-change');\n if (!confirmed) {\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n }\n if (exitLoadingContent) {\n showSaveOverlay(exitLoadingContent);\n await waitForPaint();\n }\n try {\n if (mode === 'edit') {\n saveState.preparedRevision = 0;\n saveState.committedRevision = 0;\n preparedDocumentFingerprint = null;\n committedDocumentFingerprint = null;\n preparedRequestId = null;\n await options.harness.enterEditor();\n if (options.renderAfterEnter !== false) options.harness.render();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n\n if (switchOptions.save === true) {\n const hasPendingPlatformCommit = saveState.preparedRevision > saveState.committedRevision;\n if (hasPendingPlatformCommit) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n const hasPlatformCommit = saveState.preparedRevision > 0\n && saveState.preparedRevision === saveState.committedRevision;\n const currentDocumentFingerprint = createPlayableForgePlayDocumentFingerprint(\n options.harness.getWorkingDocument(),\n );\n const platformCommitAlreadySaved = hasPlatformCommit\n && committedDocumentFingerprint !== null\n && currentDocumentFingerprint === committedDocumentFingerprint\n && options.hasUnsavedPlatformChanges?.() !== true;\n if (hasPlatformCommit && !platformCommitAlreadySaved) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n if (!platformCommitAlreadySaved) {\n const saved = await saveScene('forge-play-mode-change');\n if (!saved) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n }\n }\n\n if (options.exitEditor) {\n const exited = await options.exitEditor(switchOptions.save === true ? 'save' : 'discard');\n if (!exited) {\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n } else {\n await options.harness.discardAndRunGame();\n }\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'play';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'play' });\n } catch (error) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n throw error;\n }\n })();\n\n try {\n await inFlight;\n } finally {\n inFlight = null;\n }\n };\n\n const commitPlatformSave = async (payload: Record<string, unknown> = {}): Promise<void> => {\n if (inFlight) await inFlight;\n const requestId = readPlayableForgePlayRequestId(payload) ?? null;\n if (!requestId || !preparedRequestId || requestId !== preparedRequestId) return;\n if (commitInFlight) {\n if (commitInFlight.requestId === requestId) return commitInFlight.promise;\n await commitInFlight.promise;\n return commitPlatformSave(payload);\n }\n if (saveState.preparedRevision <= saveState.committedRevision) return;\n\n const commitOperation = (async () => {\n try {\n const currentDocumentFingerprint = createPlayableForgePlayDocumentFingerprint(\n options.harness.getWorkingDocument(),\n );\n if (currentDocumentFingerprint !== preparedDocumentFingerprint) {\n throw new Error('Editor document changed after export; prepare a new export before commit.');\n }\n await options.commitDocument?.({\n payload,\n saveState,\n documentFingerprint: preparedDocumentFingerprint,\n });\n saveState.committedRevision = saveState.preparedRevision;\n committedDocumentFingerprint = preparedDocumentFingerprint;\n } catch (error) {\n invalidatePreparedPlatformSave();\n throw error;\n }\n })();\n commitInFlight = { requestId, promise: commitOperation };\n try {\n await commitOperation;\n } finally {\n if (commitInFlight?.promise === commitOperation) commitInFlight = null;\n }\n };\n\n const runHistoryOperation = async (\n operation: PlayableForgePlayHistoryOperation,\n payload: Record<string, unknown>,\n ): Promise<void> => {\n const historyOptions = readPlayableForgePlayHistoryOperationOptions(payload);\n try {\n if (readMode() !== 'edit') await switchMode('edit');\n const handler = operation === 'undo' ? options.harness.undo : options.harness.redo;\n if (!handler) {\n postHistoryOperationResult(operation, payload, createPlayableForgePlayHistoryUnavailableResult(\n operation,\n historyOptions,\n options.harness.getWorkingDocument(),\n ));\n return;\n }\n const result = await handler.call(options.harness, historyOptions);\n postHistoryOperationResult(operation, payload, result);\n } catch (error) {\n options.reportError?.(error);\n postHistoryOperationResult(operation, payload, createPlayableForgePlayHistoryUnavailableResult(\n operation,\n historyOptions,\n options.harness.getWorkingDocument(),\n error,\n ));\n }\n };\n\n const onMessage = (event: PlayableForgePlayMessageEvent): void => {\n if (event.source !== options.window.parent) return;\n const message = readRecord(event.data);\n if (message.source !== PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE) return;\n if (message.type !== PLAYABLE_FORGE_PLAY_POST_MESSAGE.COMMAND) return;\n const payload = readRecord(message.payload);\n const commandName = normalizePlayableForgePlayCommandName(payload.name);\n\n if (commandName === PLAYABLE_FORGE_PLAY_COMMAND.ASSETS_DROP) {\n options.handleAssetDrop?.(payload);\n return;\n }\n if (commandName && PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS.has(commandName)) {\n event.stopImmediatePropagation?.();\n const handled = options.handleProjectAssetCommand\n ? options.handleProjectAssetCommand(commandName, payload)\n : Promise.resolve();\n void handled.catch((error) => {\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.SYSTEM_ERROR, {\n kind: 'rejection',\n message: error instanceof Error ? error.message : String(error),\n });\n });\n return;\n }\n if (commandName && PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS.has(commandName)) {\n event.stopImmediatePropagation?.();\n void runHistoryOperation(\n commandName === PLAYABLE_FORGE_PLAY_COMMAND.UNDO ? 'undo' : 'redo',\n payload,\n );\n return;\n }\n if (commandName === PLAYABLE_FORGE_PLAY_COMMAND.DOCUMENT_EXPORT) {\n showSaveOverlay(options.loadingContent.saveScene);\n const requestId = readPlayableForgePlayRequestId(payload);\n if (!requestId) {\n scheduleSaveOverlayHide();\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.DOCUMENT_EXPORTED, {\n error: 'document_export_request_id_required',\n });\n return;\n }\n if (inFlight || saveState.preparedRevision > saveState.committedRevision) {\n scheduleSaveOverlayHide();\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.DOCUMENT_EXPORTED, {\n requestId,\n error: inFlight ? 'document_export_in_progress' : 'document_export_not_committed',\n });\n return;\n }\n const exportDocument = options.exportDocument;\n const revisionBeforeExport = saveState.preparedRevision;\n const committedRevisionBeforeExport = saveState.committedRevision;\n const preparedFingerprintBeforeExport = preparedDocumentFingerprint;\n const committedFingerprintBeforeExport = committedDocumentFingerprint;\n const preparedRequestIdBeforeExport = preparedRequestId;\n const exportedDocumentFingerprint = createPlayableForgePlayDocumentFingerprint(\n options.harness.getWorkingDocument(),\n );\n const exported = exportDocument\n ? Promise.resolve().then(() => exportDocument({ payload, saveState, postEvent }))\n : Promise.resolve();\n const exportOperation = exported.then(() => {\n if (saveState.preparedRevision > revisionBeforeExport) {\n preparedDocumentFingerprint = exportedDocumentFingerprint;\n committedDocumentFingerprint = null;\n preparedRequestId = requestId;\n }\n }).catch(async (error) => {\n saveState.preparedRevision = revisionBeforeExport;\n saveState.committedRevision = committedRevisionBeforeExport;\n preparedDocumentFingerprint = preparedFingerprintBeforeExport;\n committedDocumentFingerprint = committedFingerprintBeforeExport;\n preparedRequestId = preparedRequestIdBeforeExport;\n options.loadingOverlay.hide();\n await notifySaveFailed('forge-play-document-export', error);\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.DOCUMENT_EXPORTED, {\n ...(readPlayableForgePlayRequestId(payload) ? { requestId: readPlayableForgePlayRequestId(payload) } : {}),\n error: error instanceof Error ? error.message : String(error),\n });\n }).then(() => {\n scheduleSaveOverlayHide();\n }).finally(() => {\n if (inFlight === exportOperation) inFlight = null;\n });\n inFlight = exportOperation;\n return;\n }\n if (commandName === PLAYABLE_FORGE_PLAY_COMMAND.DOCUMENT_COMMIT) {\n showSaveOverlay(options.loadingContent.saveScene);\n void commitPlatformSave(payload).catch((error) => {\n options.loadingOverlay.hide();\n reportModeChangeError(error, readMode());\n }).then(() => {\n scheduleSaveOverlayHide();\n });\n return;\n }\n if (commandName !== PLAYABLE_FORGE_PLAY_COMMAND.MODE_CHANGE) return;\n\n const mode = payload.mode === 'edit' ? 'edit' : payload.mode === 'play' ? 'play' : null;\n if (!mode) return;\n const save = mode === 'play' ? payload.save !== false : false;\n\n void switchMode(mode, { save }).catch((error) => {\n reportModeChangeError(error, readMode());\n });\n };\n\n options.window.addEventListener('message', onMessage, { capture: true });\n const postReadyEvents = (): void => {\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.SCENE_READY, { mode: readMode() });\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.FIRST_FRAME);\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: readMode() });\n };\n if (options.window.queueMicrotask) options.window.queueMicrotask(postReadyEvents);\n else postReadyEvents();\n\n return {\n switchMode,\n commitPlatformSave,\n getMode() {\n return readMode();\n },\n getSaveState() {\n return saveState;\n },\n dispose() {\n clearOverlayHideTimer();\n options.window.removeEventListener('message', onMessage, { capture: true });\n },\n };\n}\n\nfunction createPlayableForgePlayDocumentFingerprint(document: unknown): string | null {\n if (document == null) return null;\n try {\n return JSON.stringify(document);\n } catch {\n return null;\n }\n}\n\nfunction readRecord(value: unknown): Record<string, unknown> {\n return value && typeof value === 'object' && !Array.isArray(value)\n ? value as Record<string, unknown>\n : {};\n}\n\nfunction readOptionalRecord(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\nfunction createPlayableForgePlayHistoryUnavailableResult(\n operation: PlayableForgePlayHistoryOperation,\n options: PlayableForgePlayHistoryOperationOptions,\n workingDocument: unknown | null,\n error?: unknown,\n): PlayableForgePlayHistoryOperationResult {\n const waitForProjection = options.waitForProjection ?? 'none';\n const failed = error != null;\n return {\n ok: false,\n operation,\n origin: options.origin ?? 'agent',\n waitForProjection,\n documentChanged: false,\n transactionLabel: null,\n workingDocument,\n dirty: false,\n history: { canUndo: false, canRedo: false },\n status: failed\n ? `${operation === 'undo' ? 'Undo' : 'Redo'} failed`\n : `${operation === 'undo' ? 'Undo' : 'Redo'} unavailable`,\n projection: {\n waitPolicy: waitForProjection,\n idle: true,\n activeBatchIds: [],\n lastBatch: null,\n },\n error: failed\n ? error instanceof Error ? error.message : String(error)\n : `Harness ${operation} is not available.`,\n };\n}\n"]}
1
+ {"version":3,"file":"forge-play.js","sourceRoot":"","sources":["../../src/local-harness/forge-play.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,GAChC,MAAM,UAAU,CAAC;AAmBlB,MAAM,CAAC,MAAM,iCAAiC,GAAG,wBAAwB,CAAC;AAE1E,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,cAAc;IACpB,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,qBAAqB,EAAE,uBAAuB;IAC9C,kBAAkB,EAAE,oBAAoB;IACxC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;CACtB,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,aAAa;IAC1B,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,qBAAqB;IAC1C,uBAAuB,EAAE,yBAAyB;IAClD,yBAAyB,EAAE,2BAA2B;IACtD,YAAY,EAAE,cAAc;CAC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,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAChE,CAAC,CAAC,KAAgC;QAClC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,SAAS,+CAA+C,CACtD,SAA4C,EAC5C,OAAiD,EACjD,eAA+B,EAC/B,KAAe;IAEf,MAAM,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,IAAI,MAAM,CAAC;IAC9D,MAAM,MAAM,GAAG,KAAK,IAAI,IAAI,CAAC;IAC7B,OAAO;QACL,EAAE,EAAE,KAAK;QACT,SAAS;QACT,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO;QACjC,iBAAiB;QACjB,eAAe,EAAE,KAAK;QACtB,gBAAgB,EAAE,IAAI;QACtB,eAAe;QACf,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3C,MAAM,EAAE,MAAM;YACZ,CAAC,CAAC,GAAG,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,SAAS;YACpD,CAAC,CAAC,GAAG,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,cAAc;QAC3D,UAAU,EAAE;YACV,UAAU,EAAE,iBAAiB;YAC7B,IAAI,EAAE,IAAI;YACV,cAAc,EAAE,EAAE;YAClB,SAAS,EAAE,IAAI;SAChB;QACD,KAAK,EAAE,MAAM;YACX,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;YACxD,CAAC,CAAC,WAAW,SAAS,oBAAoB;KAC7C,CAAC;AACJ,CAAC","sourcesContent":["import {\n waitForPlayableLocalEditorPaint,\n} from './timing';\nimport type {\n PlayableForgePlayBridgeInstallOptions,\n PlayableForgePlayHistoryOperation,\n PlayableForgePlayHistoryOperationOptions,\n PlayableForgePlayHistoryOperationResult,\n PlayableForgePlayMessageEvent,\n PlayableForgePlayMode,\n PlayableForgePlayModeBridge,\n PlayableForgePlaySaveState,\n PlayableForgePlayWindowLike,\n} from './forge-play-types';\nimport type {\n PlayableLocalEditorDataSafetyOperation,\n PlayableLocalEditorSaveFailureInput,\n PlayableLocalEditorSaveFailureState,\n PlayableLocalEditorUnsavedChangesState,\n} from './types';\n\nexport const PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE = 'forge-play-game-bridge';\n\nexport const PLAYABLE_FORGE_PLAY_POST_MESSAGE = {\n EVENT: 'event',\n COMMAND: 'command',\n} as const;\n\nexport const PLAYABLE_FORGE_PLAY_COMMAND = {\n MODE_CHANGE: 'mode.change',\n UNDO: 'history.undo',\n REDO: 'history.redo',\n DOCUMENT_EXPORT: 'document.export',\n DOCUMENT_COMMIT: 'document.commit',\n ASSET_IMPORT: 'asset.import',\n ASSET_UPDATE: 'asset.update',\n ASSET_LIBRARY_REFRESH: 'asset.library.refresh',\n EDITOR_ASSET_PLACE: 'editor.asset.place',\n ASSETS_DROP: 'assets.drop',\n ASSETS_LOADED: 'assets.loaded',\n} as const;\n\nexport const PLAYABLE_FORGE_PLAY_EVENT = {\n SCENE_READY: 'scene.ready',\n FIRST_FRAME: 'scene.first_frame',\n MODE_CHANGE: 'mode.change',\n HISTORY_UNDO_RESULT: 'history.undo.result',\n HISTORY_REDO_RESULT: 'history.redo.result',\n DOCUMENT_EXPORTED: 'document.exported',\n ASSET_IMPORT_RESULT: 'asset.import.result',\n ASSET_UPDATE_RESULT: 'asset.update.result',\n ASSET_LIBRARY_REFRESHED: 'asset.library.refreshed',\n EDITOR_ASSET_PLACE_RESULT: 'editor.asset.place.result',\n SYSTEM_ERROR: 'system.error',\n} as const;\n\nexport const PLAYABLE_FORGE_PLAY_EVENT_ALIASES: Record<string, readonly string[]> = {\n [PLAYABLE_FORGE_PLAY_EVENT.SCENE_READY]: ['scene:ready', 'lifecycle:ready'],\n [PLAYABLE_FORGE_PLAY_EVENT.FIRST_FRAME]: ['scene:first_frame', 'lifecycle:firstFrame'],\n [PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE]: ['mode:change', 'mode:changed'],\n [PLAYABLE_FORGE_PLAY_EVENT.HISTORY_UNDO_RESULT]: ['history:undo:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.HISTORY_REDO_RESULT]: ['history:redo:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.DOCUMENT_EXPORTED]: ['document:exported'],\n [PLAYABLE_FORGE_PLAY_EVENT.ASSET_IMPORT_RESULT]: ['asset:import:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.ASSET_UPDATE_RESULT]: ['asset:update:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.ASSET_LIBRARY_REFRESHED]: ['asset:library:refreshed'],\n [PLAYABLE_FORGE_PLAY_EVENT.EDITOR_ASSET_PLACE_RESULT]: ['editor:asset:place:result'],\n [PLAYABLE_FORGE_PLAY_EVENT.SYSTEM_ERROR]: ['system:error'],\n};\n\nexport const PLAYABLE_FORGE_PLAY_COMMAND_ALIASES: Record<string, string> = {\n 'mode:change': PLAYABLE_FORGE_PLAY_COMMAND.MODE_CHANGE,\n 'history:undo': PLAYABLE_FORGE_PLAY_COMMAND.UNDO,\n 'history:redo': PLAYABLE_FORGE_PLAY_COMMAND.REDO,\n 'document:export': PLAYABLE_FORGE_PLAY_COMMAND.DOCUMENT_EXPORT,\n 'document:commit': PLAYABLE_FORGE_PLAY_COMMAND.DOCUMENT_COMMIT,\n 'asset:import': PLAYABLE_FORGE_PLAY_COMMAND.ASSET_IMPORT,\n 'asset:update': PLAYABLE_FORGE_PLAY_COMMAND.ASSET_UPDATE,\n 'asset:library:refresh': PLAYABLE_FORGE_PLAY_COMMAND.ASSET_LIBRARY_REFRESH,\n 'editor:asset:place': PLAYABLE_FORGE_PLAY_COMMAND.EDITOR_ASSET_PLACE,\n 'assets:drop': PLAYABLE_FORGE_PLAY_COMMAND.ASSETS_DROP,\n 'assets:loaded': PLAYABLE_FORGE_PLAY_COMMAND.ASSETS_LOADED,\n};\n\nexport const PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS = new Set<string>([\n PLAYABLE_FORGE_PLAY_COMMAND.ASSET_IMPORT,\n PLAYABLE_FORGE_PLAY_COMMAND.ASSET_UPDATE,\n PLAYABLE_FORGE_PLAY_COMMAND.ASSET_LIBRARY_REFRESH,\n PLAYABLE_FORGE_PLAY_COMMAND.EDITOR_ASSET_PLACE,\n PLAYABLE_FORGE_PLAY_COMMAND.ASSETS_LOADED,\n]);\n\nexport const PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS = new Set<string>([\n PLAYABLE_FORGE_PLAY_COMMAND.UNDO,\n PLAYABLE_FORGE_PLAY_COMMAND.REDO,\n]);\n\nexport function createPlayableForgePlaySaveState(): PlayableForgePlaySaveState {\n return {\n preparedRevision: 0,\n committedRevision: 0,\n };\n}\n\nexport function normalizePlayableForgePlayCommandName(value: unknown): string | null {\n if (typeof value !== 'string') return null;\n return PLAYABLE_FORGE_PLAY_COMMAND_ALIASES[value] ?? value;\n}\n\nexport function readPlayableForgePlayRequestId(payload: Record<string, unknown>): string | undefined {\n return typeof payload.requestId === 'string' && payload.requestId.trim()\n ? payload.requestId.trim()\n : undefined;\n}\n\nexport function readPlayableForgePlayHistoryOperationOptions(\n payload: Record<string, unknown>,\n): PlayableForgePlayHistoryOperationOptions {\n return {\n origin: readPlayableForgePlayHistoryOrigin(payload.origin),\n waitForProjection: payload.waitForProjection === 'settled' ? 'settled' : 'none',\n };\n}\n\nexport function getPlayableForgePlayHistoryResultEventName(\n operation: PlayableForgePlayHistoryOperation,\n): string {\n return operation === 'undo'\n ? PLAYABLE_FORGE_PLAY_EVENT.HISTORY_UNDO_RESULT\n : PLAYABLE_FORGE_PLAY_EVENT.HISTORY_REDO_RESULT;\n}\n\nexport function postPlayableForgePlayEvent(\n windowLike: Pick<PlayableForgePlayWindowLike, 'parent'>,\n name: string,\n payload: Record<string, unknown> = {},\n): void {\n if (!windowLike.parent || windowLike.parent === (windowLike as unknown)) return;\n const post = (eventName: string): void => {\n windowLike.parent?.postMessage({\n source: PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE,\n type: PLAYABLE_FORGE_PLAY_POST_MESSAGE.EVENT,\n payload: { ...payload, name: eventName },\n timestamp: Date.now(),\n }, '*');\n };\n post(name);\n for (const alias of PLAYABLE_FORGE_PLAY_EVENT_ALIASES[name] ?? []) {\n if (alias !== name) post(alias);\n }\n}\n\nfunction readPlayableForgePlayHistoryOrigin(value: unknown): PlayableForgePlayHistoryOperationOptions['origin'] {\n return value === 'user' || value === 'system' || value === 'agent'\n ? value\n : 'agent';\n}\n\nexport function installPlayableForgePlayModeBridge(\n options: PlayableForgePlayBridgeInstallOptions,\n): PlayableForgePlayModeBridge {\n let currentMode = options.initialMode ?? 'play';\n let inFlight: Promise<void> | null = null;\n const saveState = createPlayableForgePlaySaveState();\n let preparedDocumentFingerprint: string | null = null;\n let committedDocumentFingerprint: string | null = null;\n let preparedRequestId: string | null = null;\n let commitInFlight: { requestId: string; promise: Promise<void> } | null = null;\n let overlayHideTimer: unknown = null;\n const waitForPaint = options.waitForPaint ?? waitForPlayableLocalEditorPaint;\n const overlayHideDelayMs = options.overlayHideDelayMs ?? 3000;\n const readMode = (): PlayableForgePlayMode => options.readMode?.() ?? currentMode;\n const invalidatePreparedPlatformSave = (): void => {\n saveState.preparedRevision = saveState.committedRevision;\n preparedDocumentFingerprint = null;\n preparedRequestId = null;\n };\n const postEvent = (name: string, payload: Record<string, unknown> = {}): void => {\n postPlayableForgePlayEvent(options.window, name, payload);\n };\n\n const notifySaveFailed = async (\n operation: PlayableLocalEditorDataSafetyOperation,\n error?: unknown,\n ): Promise<void> => {\n const notify = options.interactions?.notifySaveFailed;\n if (!notify) return;\n let state: PlayableLocalEditorSaveFailureState | null | undefined;\n try {\n state = options.harness.getSaveFailureState?.();\n } catch (stateError) {\n console.error('[PlayableForgePlayBridge] save failure state unavailable', stateError);\n }\n const input: PlayableLocalEditorSaveFailureInput = {\n operation,\n status: state?.status ?? (error instanceof Error ? error.message : undefined),\n details: state?.details,\n error: error ?? state?.error,\n };\n try {\n await notify(input);\n } catch (notifyError) {\n console.error('[PlayableForgePlayBridge] save failure notification failed', notifyError);\n }\n };\n\n const saveScene = async (\n operation: PlayableLocalEditorDataSafetyOperation,\n ): Promise<boolean> => {\n if (options.saveDocument) return options.saveDocument(operation);\n try {\n const saved = await options.harness.saveScene();\n if (!saved) await notifySaveFailed(operation);\n return saved;\n } catch (error) {\n await notifySaveFailed(operation, error);\n throw error;\n }\n };\n\n const readUnsavedChangesState = (): PlayableLocalEditorUnsavedChangesState => {\n const fallbackHasWorkingDocument = options.harness.getWorkingDocument() !== null;\n try {\n return options.harness.getUnsavedChangesState?.() ?? {\n dirty: false,\n hasWorkingDocument: fallbackHasWorkingDocument,\n };\n } catch (error) {\n console.error('[PlayableForgePlayBridge] unsaved changes state unavailable', error);\n return {\n dirty: false,\n hasWorkingDocument: fallbackHasWorkingDocument,\n };\n }\n };\n\n const confirmDiscardIfNeeded = async (\n operation: PlayableLocalEditorDataSafetyOperation,\n ): Promise<boolean> => {\n const unsavedChanges = readUnsavedChangesState();\n if (!unsavedChanges.dirty || !unsavedChanges.hasWorkingDocument) return true;\n try {\n return await options.interactions?.confirmDiscardUnsavedChanges?.({\n operation,\n unsavedChanges,\n }) !== false;\n } catch (error) {\n console.error('[PlayableForgePlayBridge] discard confirmation failed', error);\n return false;\n }\n };\n\n const clearOverlayHideTimer = (): void => {\n if (overlayHideTimer == null) return;\n options.window.clearTimeout(overlayHideTimer);\n overlayHideTimer = null;\n };\n\n const showSaveOverlay = (content: PlayableForgePlayBridgeInstallOptions['loadingContent']['saveScene']): void => {\n clearOverlayHideTimer();\n options.loadingOverlay.show(content);\n };\n\n const scheduleSaveOverlayHide = (): void => {\n clearOverlayHideTimer();\n overlayHideTimer = options.window.setTimeout(() => {\n overlayHideTimer = null;\n options.loadingOverlay.hide();\n }, overlayHideDelayMs);\n };\n\n const reportModeChangeError = (error: unknown, fallbackMode: PlayableForgePlayMode): void => {\n options.reportError?.(error);\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.SYSTEM_ERROR, {\n kind: 'rejection',\n message: error instanceof Error ? error.message : String(error),\n });\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: fallbackMode });\n };\n\n const postHistoryOperationResult = (\n operation: PlayableForgePlayHistoryOperation,\n payload: Record<string, unknown>,\n result: PlayableForgePlayHistoryOperationResult,\n ): void => {\n const requestId = readPlayableForgePlayRequestId(payload);\n postEvent(getPlayableForgePlayHistoryResultEventName(operation), {\n ...result,\n ...(requestId ? { requestId } : {}),\n });\n };\n\n const switchMode = async (\n mode: PlayableForgePlayMode,\n switchOptions: { save?: boolean } = {},\n ): Promise<void> => {\n const exitLoadingContent = mode === 'play' && !options.exitEditor\n ? switchOptions.save === true\n ? options.loadingContent.saveAndRunGame\n : options.loadingContent.discardAndRunGame\n : null;\n const shouldRunExit = (): boolean => mode === 'play' && options.harness.getWorkingDocument() !== null;\n\n if (inFlight) await inFlight;\n if (readMode() === mode && !shouldRunExit()) {\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode });\n return;\n }\n\n inFlight = (async () => {\n if (mode === 'play' && switchOptions.save !== true && shouldRunExit() && !options.exitEditor) {\n const confirmed = await confirmDiscardIfNeeded('forge-play-mode-change');\n if (!confirmed) {\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n }\n if (exitLoadingContent) {\n showSaveOverlay(exitLoadingContent);\n await waitForPaint();\n }\n try {\n let editorExitHandled = false;\n if (mode === 'edit') {\n saveState.preparedRevision = 0;\n saveState.committedRevision = 0;\n preparedDocumentFingerprint = null;\n committedDocumentFingerprint = null;\n preparedRequestId = null;\n await options.harness.enterEditor();\n if (options.renderAfterEnter !== false) options.harness.render();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n\n if (switchOptions.save === true) {\n const hasPendingPlatformCommit = saveState.preparedRevision > saveState.committedRevision;\n if (hasPendingPlatformCommit) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n const hasPlatformCommit = saveState.preparedRevision > 0\n && saveState.preparedRevision === saveState.committedRevision;\n const currentDocumentFingerprint = createPlayableForgePlayDocumentFingerprint(\n options.harness.getWorkingDocument(),\n );\n const platformCommitAlreadySaved = hasPlatformCommit\n && committedDocumentFingerprint !== null\n && currentDocumentFingerprint === committedDocumentFingerprint\n && options.hasUnsavedPlatformChanges?.() !== true;\n if (hasPlatformCommit && !platformCommitAlreadySaved) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n if (!platformCommitAlreadySaved) {\n if (options.saveAndExitEditor) {\n const exited = await options.saveAndExitEditor('forge-play-mode-change');\n if (!exited) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n editorExitHandled = true;\n } else {\n if (options.preflightRun && !await options.preflightRun()) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n const saved = await saveScene('forge-play-mode-change');\n if (!saved) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n }\n } else if (options.preflightRun && !options.exitEditor && !await options.preflightRun()) {\n // Compatibility hosts without an atomic exit callback retain the\n // legacy preflight, while first-party hosts validate inside exitEditor.\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n }\n\n if (!editorExitHandled) {\n if (options.exitEditor) {\n const exited = await options.exitEditor(switchOptions.save === true ? 'save' : 'discard');\n if (!exited) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'edit';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'edit' });\n return;\n }\n } else {\n await options.harness.discardAndRunGame();\n }\n }\n if (exitLoadingContent) options.loadingOverlay.hide();\n currentMode = 'play';\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: 'play' });\n } catch (error) {\n if (exitLoadingContent) options.loadingOverlay.hide();\n throw error;\n }\n })();\n\n try {\n await inFlight;\n } finally {\n inFlight = null;\n }\n };\n\n const commitPlatformSave = async (payload: Record<string, unknown> = {}): Promise<void> => {\n if (inFlight) await inFlight;\n const requestId = readPlayableForgePlayRequestId(payload) ?? null;\n if (!requestId || !preparedRequestId || requestId !== preparedRequestId) return;\n if (commitInFlight) {\n if (commitInFlight.requestId === requestId) return commitInFlight.promise;\n await commitInFlight.promise;\n return commitPlatformSave(payload);\n }\n if (saveState.preparedRevision <= saveState.committedRevision) return;\n\n const commitOperation = (async () => {\n try {\n const currentDocumentFingerprint = createPlayableForgePlayDocumentFingerprint(\n options.harness.getWorkingDocument(),\n );\n if (currentDocumentFingerprint !== preparedDocumentFingerprint) {\n throw new Error('Editor document changed after export; prepare a new export before commit.');\n }\n await options.commitDocument?.({\n payload,\n saveState,\n documentFingerprint: preparedDocumentFingerprint,\n });\n saveState.committedRevision = saveState.preparedRevision;\n committedDocumentFingerprint = preparedDocumentFingerprint;\n } catch (error) {\n invalidatePreparedPlatformSave();\n throw error;\n }\n })();\n commitInFlight = { requestId, promise: commitOperation };\n try {\n await commitOperation;\n } finally {\n if (commitInFlight?.promise === commitOperation) commitInFlight = null;\n }\n };\n\n const runHistoryOperation = async (\n operation: PlayableForgePlayHistoryOperation,\n payload: Record<string, unknown>,\n ): Promise<void> => {\n const historyOptions = readPlayableForgePlayHistoryOperationOptions(payload);\n try {\n if (readMode() !== 'edit') await switchMode('edit');\n const handler = operation === 'undo' ? options.harness.undo : options.harness.redo;\n if (!handler) {\n postHistoryOperationResult(operation, payload, createPlayableForgePlayHistoryUnavailableResult(\n operation,\n historyOptions,\n options.harness.getWorkingDocument(),\n ));\n return;\n }\n const result = await handler.call(options.harness, historyOptions);\n postHistoryOperationResult(operation, payload, result);\n } catch (error) {\n options.reportError?.(error);\n postHistoryOperationResult(operation, payload, createPlayableForgePlayHistoryUnavailableResult(\n operation,\n historyOptions,\n options.harness.getWorkingDocument(),\n error,\n ));\n }\n };\n\n const onMessage = (event: PlayableForgePlayMessageEvent): void => {\n if (event.source !== options.window.parent) return;\n const message = readRecord(event.data);\n if (message.source !== PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE) return;\n if (message.type !== PLAYABLE_FORGE_PLAY_POST_MESSAGE.COMMAND) return;\n const payload = readRecord(message.payload);\n const commandName = normalizePlayableForgePlayCommandName(payload.name);\n\n if (commandName === PLAYABLE_FORGE_PLAY_COMMAND.ASSETS_DROP) {\n options.handleAssetDrop?.(payload);\n return;\n }\n if (commandName && PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS.has(commandName)) {\n event.stopImmediatePropagation?.();\n const handled = options.handleProjectAssetCommand\n ? options.handleProjectAssetCommand(commandName, payload)\n : Promise.resolve();\n void handled.catch((error) => {\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.SYSTEM_ERROR, {\n kind: 'rejection',\n message: error instanceof Error ? error.message : String(error),\n });\n });\n return;\n }\n if (commandName && PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS.has(commandName)) {\n event.stopImmediatePropagation?.();\n void runHistoryOperation(\n commandName === PLAYABLE_FORGE_PLAY_COMMAND.UNDO ? 'undo' : 'redo',\n payload,\n );\n return;\n }\n if (commandName === PLAYABLE_FORGE_PLAY_COMMAND.DOCUMENT_EXPORT) {\n showSaveOverlay(options.loadingContent.saveScene);\n const requestId = readPlayableForgePlayRequestId(payload);\n if (!requestId) {\n scheduleSaveOverlayHide();\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.DOCUMENT_EXPORTED, {\n error: 'document_export_request_id_required',\n });\n return;\n }\n if (inFlight || saveState.preparedRevision > saveState.committedRevision) {\n scheduleSaveOverlayHide();\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.DOCUMENT_EXPORTED, {\n requestId,\n error: inFlight ? 'document_export_in_progress' : 'document_export_not_committed',\n });\n return;\n }\n const exportDocument = options.exportDocument;\n const revisionBeforeExport = saveState.preparedRevision;\n const committedRevisionBeforeExport = saveState.committedRevision;\n const preparedFingerprintBeforeExport = preparedDocumentFingerprint;\n const committedFingerprintBeforeExport = committedDocumentFingerprint;\n const preparedRequestIdBeforeExport = preparedRequestId;\n const exported = exportDocument\n ? Promise.resolve().then(() => exportDocument({ payload, saveState, postEvent }))\n : Promise.resolve(null);\n const exportOperation = exported.then((result) => {\n if (saveState.preparedRevision > revisionBeforeExport) {\n if (!result) {\n throw new Error('Document export did not return the exported document fingerprint.');\n }\n preparedDocumentFingerprint = result.documentFingerprint;\n committedDocumentFingerprint = null;\n preparedRequestId = requestId;\n }\n }).catch(async (error) => {\n saveState.preparedRevision = revisionBeforeExport;\n saveState.committedRevision = committedRevisionBeforeExport;\n preparedDocumentFingerprint = preparedFingerprintBeforeExport;\n committedDocumentFingerprint = committedFingerprintBeforeExport;\n preparedRequestId = preparedRequestIdBeforeExport;\n options.loadingOverlay.hide();\n await notifySaveFailed('forge-play-document-export', error);\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.DOCUMENT_EXPORTED, {\n ...(readPlayableForgePlayRequestId(payload) ? { requestId: readPlayableForgePlayRequestId(payload) } : {}),\n error: error instanceof Error ? error.message : String(error),\n });\n }).then(() => {\n scheduleSaveOverlayHide();\n }).finally(() => {\n if (inFlight === exportOperation) inFlight = null;\n });\n inFlight = exportOperation;\n return;\n }\n if (commandName === PLAYABLE_FORGE_PLAY_COMMAND.DOCUMENT_COMMIT) {\n showSaveOverlay(options.loadingContent.saveScene);\n void commitPlatformSave(payload).catch((error) => {\n options.loadingOverlay.hide();\n reportModeChangeError(error, readMode());\n }).then(() => {\n scheduleSaveOverlayHide();\n });\n return;\n }\n if (commandName !== PLAYABLE_FORGE_PLAY_COMMAND.MODE_CHANGE) return;\n\n const mode = payload.mode === 'edit' ? 'edit' : payload.mode === 'play' ? 'play' : null;\n if (!mode) return;\n const save = mode === 'play' ? payload.save !== false : false;\n\n void switchMode(mode, { save }).catch((error) => {\n reportModeChangeError(error, readMode());\n });\n };\n\n options.window.addEventListener('message', onMessage, { capture: true });\n const postReadyEvents = (): void => {\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.SCENE_READY, { mode: readMode() });\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.FIRST_FRAME);\n postEvent(PLAYABLE_FORGE_PLAY_EVENT.MODE_CHANGE, { mode: readMode() });\n };\n if (options.window.queueMicrotask) options.window.queueMicrotask(postReadyEvents);\n else postReadyEvents();\n\n return {\n switchMode,\n commitPlatformSave,\n getMode() {\n return readMode();\n },\n getSaveState() {\n return saveState;\n },\n dispose() {\n clearOverlayHideTimer();\n options.window.removeEventListener('message', onMessage, { capture: true });\n },\n };\n}\n\nexport function createPlayableForgePlayDocumentFingerprint(document: unknown): string | null {\n if (document == null) return null;\n try {\n return JSON.stringify(document);\n } catch {\n return null;\n }\n}\n\nfunction readRecord(value: unknown): Record<string, unknown> {\n return value && typeof value === 'object' && !Array.isArray(value)\n ? value as Record<string, unknown>\n : {};\n}\n\nfunction readOptionalRecord(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\nfunction createPlayableForgePlayHistoryUnavailableResult(\n operation: PlayableForgePlayHistoryOperation,\n options: PlayableForgePlayHistoryOperationOptions,\n workingDocument: unknown | null,\n error?: unknown,\n): PlayableForgePlayHistoryOperationResult {\n const waitForProjection = options.waitForProjection ?? 'none';\n const failed = error != null;\n return {\n ok: false,\n operation,\n origin: options.origin ?? 'agent',\n waitForProjection,\n documentChanged: false,\n transactionLabel: null,\n workingDocument,\n dirty: false,\n history: { canUndo: false, canRedo: false },\n status: failed\n ? `${operation === 'undo' ? 'Undo' : 'Redo'} failed`\n : `${operation === 'undo' ? 'Undo' : 'Redo'} unavailable`,\n projection: {\n waitPolicy: waitForProjection,\n idle: true,\n activeBatchIds: [],\n lastBatch: null,\n },\n error: failed\n ? error instanceof Error ? error.message : String(error)\n : `Harness ${operation} is not available.`,\n };\n}\n"]}
@@ -1,9 +1,17 @@
1
- import type { PlayableForgePlayBridgeInstallOptions, PlayableForgePlayModeBridge, PlayableForgePlaySaveState, PlayableForgePlayWindowLike } from './forge-play-types';
2
- import type { PlayableLocalEditorLifecycleContent, PlayableLocalEditorLifecycleController, PlayableLocalEditorLifecycleOperations, PlayableLocalEditorLifecycleHarness, PlayableLocalEditorLifecycleScopeHost, PlayableLocalEditorInteractionPolicy, PlayableLocalEditorLoadingOverlayContent, PlayableLocalEditorLoadingOverlayController, PlayableLocalEditorPreparedRun } from './types';
1
+ import type { PlayableForgePlayBridgeInstallOptions, PlayableForgePlayDocumentExportResult, PlayableForgePlayModeBridge, PlayableForgePlaySaveState, PlayableForgePlayWindowLike } from './forge-play-types';
2
+ import type { PlayableLocalEditorLifecycleContent, PlayableLocalEditorLifecycleController, PlayableLocalEditorDocumentOperationExecutor, PlayableLocalEditorLifecycleOperations, PlayableLocalEditorLifecycleHarness, PlayableLocalEditorLifecycleScopeHost, PlayableLocalEditorInteractionPolicy, PlayableLocalEditorLoadingOverlayContent, PlayableLocalEditorLoadingOverlayController, PlayableLocalEditorPreparedRun } from './types';
3
3
  import type { FpsEditorEventPublisher } from '@fps-games/editor-core/events';
4
4
  import type { FpsDiagnostic } from '@fps-games/plugin-api';
5
5
  export interface PlayableLocalEditorHostHarness extends PlayableLocalEditorLifecycleHarness {
6
6
  getWorkingDocument(): unknown | null;
7
+ projectAssetDropPoint?(point: {
8
+ x: number;
9
+ y: number;
10
+ } | null): {
11
+ x: number;
12
+ y: number;
13
+ z: number;
14
+ } | null;
7
15
  }
8
16
  export interface PlayableLocalEditorHostLoadingContent extends PlayableLocalEditorLifecycleContent {
9
17
  saveScene: PlayableLocalEditorLoadingOverlayContent;
@@ -49,7 +57,7 @@ export interface PlayableLocalEditorHostControllerOptions<THarness extends Playa
49
57
  saveState: PlayableForgePlaySaveState;
50
58
  postEvent: (name: string, payload?: Record<string, unknown>) => void;
51
59
  context: Omit<PlayableLocalEditorHostBridgeContext<THarness>, 'name' | 'payload'>;
52
- }) => Promise<void> | void;
60
+ }) => Promise<PlayableForgePlayDocumentExportResult> | PlayableForgePlayDocumentExportResult;
53
61
  };
54
62
  }
55
63
  export interface PlayableLocalEditorHostController<THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness> {
@@ -57,11 +65,11 @@ export interface PlayableLocalEditorHostController<THarness extends PlayableLoca
57
65
  lifecycle: PlayableLocalEditorLifecycleController;
58
66
  getBridge(): PlayableForgePlayModeBridge | null;
59
67
  enterEditor(): Promise<void>;
60
- saveScene(): Promise<boolean>;
61
- prepareSaveAndRunGame(): Promise<PlayableLocalEditorPreparedRun>;
62
- prepareDiscardAndRunGame(): Promise<PlayableLocalEditorPreparedRun>;
63
- saveAndRunGame(): Promise<boolean>;
64
- discardAndRunGame(): Promise<boolean>;
68
+ saveScene(executor?: PlayableLocalEditorDocumentOperationExecutor): Promise<boolean>;
69
+ prepareSaveAndRunGame(context?: Parameters<PlayableLocalEditorLifecycleController['prepareSaveAndRunGame']>[0], executor?: PlayableLocalEditorDocumentOperationExecutor): Promise<PlayableLocalEditorPreparedRun>;
70
+ prepareDiscardAndRunGame(context?: Parameters<PlayableLocalEditorLifecycleController['prepareDiscardAndRunGame']>[0], executor?: PlayableLocalEditorDocumentOperationExecutor): Promise<PlayableLocalEditorPreparedRun>;
71
+ saveAndRunGame(context?: Parameters<PlayableLocalEditorLifecycleController['saveAndRunGame']>[0], executor?: PlayableLocalEditorDocumentOperationExecutor): Promise<boolean>;
72
+ discardAndRunGame(context?: Parameters<PlayableLocalEditorLifecycleController['discardAndRunGame']>[0], executor?: PlayableLocalEditorDocumentOperationExecutor): Promise<boolean>;
65
73
  runWithAssetLoadingOverlay<T>(operation: () => Promise<T>): Promise<T>;
66
74
  dispose(): Promise<void>;
67
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"host-controller.d.ts","sourceRoot":"","sources":["../../src/local-harness/host-controller.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,qCAAqC,EACrC,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EACV,mCAAmC,EACnC,sCAAsC,EACtC,sCAAsC,EACtC,mCAAmC,EACnC,qCAAqC,EACrC,oCAAoC,EACpC,wCAAwC,EACxC,2CAA2C,EAC3C,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,WAAW,8BACf,SAAQ,mCAAmC;IAC3C,kBAAkB,IAAI,OAAO,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,qCACf,SAAQ,mCAAmC;IAC3C,SAAS,EAAE,wCAAwC,CAAC;CACrD;AAED,MAAM,WAAW,oCAAoC,CACnD,QAAQ,SAAS,8BAA8B,GAAG,8BAA8B;IAEhF,IAAI,EAA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CAAC,sCAAsC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,EACpF,QAAQ,CAAC,EAAE,4CAA4C,GACtD,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,0BAA0B,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACvE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED,wBAAgB,uCAAuC,CACrD,QAAQ,SAAS,8BAA8B,GAAG,8BAA8B,EAEhF,OAAO,EAAE,wCAAwC,CAAC,QAAQ,CAAC,GAC1D,iCAAiC,CAAC,QAAQ,CAAC,CA0K7C"}
@@ -86,17 +86,22 @@ export function createPlayableLocalEditorHostController(options) {
86
86
  : undefined,
87
87
  exportDocument: options.forgePlay.exportDocument
88
88
  ? async ({ payload, saveState, postEvent: bridgePostEvent }) => {
89
+ let result = null;
89
90
  await lifecycle.prepareDocumentSave(async () => {
90
- await options.forgePlay?.exportDocument?.({
91
+ result = await options.forgePlay?.exportDocument?.({
91
92
  payload,
92
93
  saveState,
93
94
  postEvent: bridgePostEvent,
94
95
  context: createBridgeContext('', payload),
95
- });
96
+ }) ?? null;
96
97
  });
98
+ if (!result)
99
+ throw new Error('Document export did not return a document fingerprint.');
100
+ return result;
97
101
  }
98
102
  : undefined,
99
103
  saveDocument: operation => lifecycle.saveScene(operation),
104
+ saveAndExitEditor: () => lifecycle.saveAndRunGame(),
100
105
  commitDocument: options.forgePlay.exportDocument
101
106
  ? async ({ documentFingerprint }) => lifecycle.commitDocumentSave(async () => {
102
107
  await lifecycleOperations.markDocumentCommitted?.(documentFingerprint);
@@ -105,8 +110,7 @@ export function createPlayableLocalEditorHostController(options) {
105
110
  exitEditor: async (reason) => {
106
111
  if (reason === 'discard')
107
112
  return lifecycle.discardAndRunGame();
108
- await lifecycle.runCommittedDocument();
109
- return true;
113
+ return lifecycle.runCommittedDocument();
110
114
  },
111
115
  });
112
116
  }
@@ -117,7 +121,7 @@ export function createPlayableLocalEditorHostController(options) {
117
121
  return bridge;
118
122
  },
119
123
  enterEditor: lifecycle.enterEditor,
120
- saveScene: () => lifecycle.saveScene('save-scene'),
124
+ saveScene: executor => lifecycle.saveScene('save-scene', undefined, executor),
121
125
  prepareSaveAndRunGame: lifecycle.prepareSaveAndRunGame,
122
126
  prepareDiscardAndRunGame: lifecycle.prepareDiscardAndRunGame,
123
127
  saveAndRunGame: lifecycle.saveAndRunGame,
@@ -169,7 +173,7 @@ export function createPlayableLocalEditorHostController(options) {
169
173
  }
170
174
  function createLifecycleHarness(harness, lifecycle) {
171
175
  const enterEditor = lifecycle.enterEditor;
172
- const saveScene = () => lifecycle.saveScene('save-scene');
176
+ const saveScene = (executor) => (lifecycle.saveScene('save-scene', undefined, executor));
173
177
  const saveAndRunGame = lifecycle.saveAndRunGame;
174
178
  const discardAndRunGame = lifecycle.discardAndRunGame;
175
179
  const hiddenOperations = new Set([
@@ -1 +1 @@
1
- {"version":3,"file":"host-controller.js","sourceRoot":"","sources":["../../src/local-harness/host-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAOtB,OAAO,EACL,4CAA4C,GAC7C,MAAM,aAAa,CAAC;AAgGrB,MAAM,UAAU,uCAAuC,CAGrD,OAA2D;IAE3D,IAAI,MAAM,GAAuC,IAAI,CAAC;IACtD,IAAI,QAAQ,GAAyB,IAAI,CAAC;IAC1C,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAC9B,IAAI,sBAAsB,GAAG,KAAK,CAAC;IACnC,MAAM,cAAc,GAAG,0BAA0B,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1E,MAAM,uBAAuB,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC;IAC7D,MAAM,uBAAuB,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC;IAC7D,MAAM,OAAO,GAAG,O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wB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC5D,CAAC;KACF,CAAa,CAAC;AACjB,CAAC;AAED,SAAS,0BAA0B,CACjC,cAEC;IAED,IAAI,KAAK,GAAkB,IAAI,CAAC;IAChC,OAAO;QACL,WAAW;YACT,MAAM,UAAU,GAAG,MAAM,CAAC,6CAA6C,CAAC,CAAC;YACzE,OAAO;gBACL,IAAI,CAAC,OAAiD;oBACpD,KAAK,GAAG,UAAU,CAAC;oBACnB,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC/B,CAAC;gBACD,IAAI;oBACF,IAAI,KAAK,KAAK,UAAU;wBAAE,OAAO;oBACjC,KAAK,GAAG,IAAI,CAAC;oBACb,cAAc,CAAC,IAAI,EAAE,CAAC;gBACxB,CAAC;gBACD,SAAS;oBACP,OAAO,cAAc,CAAC,SAAS,EAAE,CAAC;gBACpC,CAAC;gBACD,OAAO;oBACL,OAAO,KAAK,KAAK,UAAU,CAAC;gBAC9B,CAAC;aACF,CAAC;QACJ,CAAC;QACD,OAAO;YACL,KAAK,GAAG,IAAI,CAAC;YACb,cAAc,CAAC,OAAO,EAAE,EAAE,CAAC;QAC7B,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,UAAkD,EAClD,uBAAiE;IAEjE,OAAO;QACL,GAAG,UAAU;QACb,KAAK,CAAC,OAAO,CAAC,MAAM;YAClB,MAAM,uBAAuB,EAAE,EAAE,CAAC;YAClC,MAAM,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n installPlayableForgePlayModeBridge,\n postPlayableForgePlayEvent,\n} from './forge-play';\nimport type {\n PlayableForgePlayBridgeInstallOptions,\n PlayableForgePlayModeBridge,\n PlayableForgePlaySaveState,\n PlayableForgePlayWindowLike,\n} from './forge-play-types';\nimport {\n createPlayableLocalEditorLifecycleController,\n} from './lifecycle';\nimport type {\n PlayableLocalEditorLifecycleContent,\n PlayableLocalEditorLifecycleController,\n PlayableLocalEditorLifecycleOperations,\n PlayableLocalEditorLifecycleHarness,\n PlayableLocalEditorLifecycleScopeHost,\n PlayableLocalEditorInteractionPolicy,\n PlayableLocalEditorLoadingOverlayContent,\n PlayableLocalEditorLoadingOverlayController,\n PlayableLocalEditorPreparedRun,\n} from './types';\nimport type { FpsEditorEventPublisher } from '@fps-games/editor-core/events';\nimport type { FpsDiagnostic } from '@fps-games/plugin-api';\n\nexport interface PlayableLocalEditorHostHarness\n extends PlayableLocalEditorLifecycleHarness {\n getWorkingDocument(): unknown | null;\n}\n\nexport interface PlayableLocalEditorHostLoadingContent\n extends PlayableLocalEditorLifecycleContent {\n saveScene: PlayableLocalEditorLoadingOverlayContent;\n}\n\nexport interface PlayableLocalEditorHostBridgeContext<\n THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness,\n> {\n name: string;\n payload: Record<string, unknown>;\n harness: THarness;\n ensureEditorMode: () => Promise<void>;\n runWithAssetLoadingOverlay: <T>(operation: () => Promise<T>) => Promise<T>;\n postEvent: (name: string, payload?: Record<string, unknown>) => void;\n getBridge: () => PlayableForgePlayModeBridge | null;\n}\n\nexport interface PlayableLocalEditorHostControllerOptions<\n THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness,\n> {\n harness: THarness;\n lifecycleOperations: PlayableLocalEditorLifecycleOperations;\n lifecycleScopeHost?: PlayableLocalEditorLifecycleScopeHost;\n eventPublisher?: FpsEditorEventPublisher;\n reportDiagnostic?: (diagnostic: FpsDiagnostic) => void;\n loadingOverlay: Pick<PlayableLocalEditorLoadingOverlayController, 'show' | 'hide' | 'isVisible'> & {\n dispose?: () => void;\n };\n loadingContent: PlayableLocalEditorHostLoadingContent;\n beforeDiscardAndRunGame?: () => void | Promise<void>;\n waitForPaint?: () => Promise<void>;\n waitForMilliseconds?: (milliseconds: number) => Promise<void>;\n now?: () => number;\n minAssetLoadingOverlayMs?: number;\n viewportRevealReason?: string;\n renderAfterEnter?: boolean;\n interactions?: PlayableLocalEditorInteractionPolicy;\n forgePlay?: {\n enabled?: boolean;\n window?: PlayableForgePlayWindowLike;\n initialMode?: PlayableForgePlayBridgeInstallOptions['initialMode'];\n overlayHideDelayMs?: number;\n hasUnsavedPlatformChanges?: () => boolean;\n reportError?: (error: unknown) => void;\n handleAssetDrop?: (\n payload: Record<string, unknown>,\n context: Omit<PlayableLocalEditorHostBridgeContext<THarness>, 'name'>,\n ) => void;\n handleProjectAssetCommand?: (\n context: PlayableLocalEditorHostBridgeContext<THarness>,\n ) => Promise<void> | void;\n exportDocument?: (input: {\n payload: Record<string, unknown>;\n saveState: PlayableForgePlaySaveState;\n postEvent: (name: string, payload?: Record<string, unknown>) => void;\n context: Omit<PlayableLocalEditorHostBridgeContext<THarness>, 'name' | 'payload'>;\n }) => Promise<void> | void;\n };\n}\n\nexport interface PlayableLocalEditorHostController<\n THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness,\n> {\n harness: THarness;\n lifecycle: PlayableLocalEditorLifecycleController;\n getBridge(): PlayableForgePlayModeBridge | null;\n enterEditor(): Promise<void>;\n saveScene(): Promise<boolean>;\n prepareSaveAndRunGame(): Promise<PlayableLocalEditorPreparedRun>;\n prepareDiscardAndRunGame(): Promise<PlayableLocalEditorPreparedRun>;\n saveAndRunGame(): Promise<boolean>;\n discardAndRunGame(): Promise<boolean>;\n runWithAssetLoadingOverlay<T>(operation: () => Promise<T>): Promise<T>;\n dispose(): Promise<void>;\n}\n\nexport function createPlayableLocalEditorHostController<\n THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness,\n>(\n options: PlayableLocalEditorHostControllerOptions<THarness>,\n): PlayableLocalEditorHostController<THarness> {\n let bridge: PlayableForgePlayModeBridge | null = null;\n let disposal: Promise<void> | null = null;\n let lifecycleDisposed = false;\n let loadingOverlayDisposed = false;\n const loadingOverlay = createScopedLoadingOverlay(options.loadingOverlay);\n const lifecycleLoadingOverlay = loadingOverlay.createScope();\n const forgePlayLoadingOverlay = loadingOverlay.createScope();\n const harness = options.harness;\n const lifecycleOperations = createLifecycleOperations(\n options.lifecycleOperations,\n options.beforeDiscardAndRunGame,\n );\n\n const lifecycle = createPlayableLocalEditorLifecycleController({\n harness,\n operations: lifecycleOperations,\n scopeHost: options.lifecycleScopeHost,\n eventPublisher: options.eventPublisher,\n reportDiagnostic: options.reportDiagnostic,\n loadingOverlay: lifecycleLoadingOverlay,\n content: options.loadingContent,\n interactions: options.interactions,\n waitForPaint: options.waitForPaint,\n waitForMilliseconds: options.waitForMilliseconds,\n now: options.now,\n minAssetLoadingOverlayMs: options.minAssetLoadingOverlayMs,\n viewportRevealReason: options.viewportRevealReason,\n renderAfterEnter: options.renderAfterEnter,\n initialMode: options.forgePlay?.initialMode,\n });\n\n const runWithAssetLoadingOverlay = <T>(operation: () => Promise<T>): Promise<T> => (\n lifecycle.runWithAssetLoadingOverlay(operation)\n );\n const lifecycleHarness = createLifecycleHarness(harness, lifecycle);\n\n const ensureEditorMode = async (): Promise<void> => {\n if (!bridge || bridge.getMode() === 'edit') return;\n await bridge.switchMode('edit');\n };\n\n const postEvent = (name: string, payload: Record<string, unknown> = {}): void => {\n const windowLike = options.forgePlay?.window;\n if (!windowLike) return;\n postPlayableForgePlayEvent(windowLike, name, payload);\n };\n\n const createBridgeContext = (\n name: string,\n payload: Record<string, unknown>,\n ): PlayableLocalEditorHostBridgeContext<THarness> => ({\n name,\n payload,\n harness: lifecycleHarness,\n ensureEditorMode,\n runWithAssetLoadingOverlay,\n postEvent,\n getBridge: () => bridge,\n });\n\n if (options.forgePlay?.enabled !== false && options.forgePlay?.window) {\n bridge = installPlayableForgePlayModeBridge({\n window: options.forgePlay.window,\n harness: lifecycleHarness,\n loadingOverlay: forgePlayLoadingOverlay,\n loadingContent: {\n saveScene: options.loadingContent.saveScene,\n saveAndRunGame: options.loadingContent.saveAndRunGame,\n discardAndRunGame: options.loadingContent.discardAndRunGame,\n },\n initialMode: options.forgePlay.initialMode,\n overlayHideDelayMs: options.forgePlay.overlayHideDelayMs,\n waitForPaint: options.waitForPaint,\n renderAfterEnter: false,\n readMode: () => {\n const mode = lifecycle.lifecycle.getSnapshot().mode;\n if (mode === 'edit' || mode === 'exiting-edit') return 'edit';\n if (mode === 'play' || mode === 'entering-edit') return 'play';\n return options.forgePlay?.initialMode ?? 'play';\n },\n hasUnsavedPlatformChanges: options.forgePlay.hasUnsavedPlatformChanges,\n reportError: options.forgePlay.reportError,\n interactions: options.interactions,\n handleAssetDrop: options.forgePlay.handleAssetDrop\n ? payload => {\n options.forgePlay?.handleAssetDrop?.(payload, createBridgeContext('', payload));\n }\n : undefined,\n handleProjectAssetCommand: options.forgePlay.handleProjectAssetCommand\n ? async (name, payload) => {\n await options.forgePlay?.handleProjectAssetCommand?.(createBridgeContext(name, payload));\n }\n : undefined,\n exportDocument: options.forgePlay.exportDocument\n ? async ({ payload, saveState, postEvent: bridgePostEvent }) => {\n await lifecycle.prepareDocumentSave(async () => {\n await options.forgePlay?.exportDocument?.({\n payload,\n saveState,\n postEvent: bridgePostEvent,\n context: createBridgeContext('', payload),\n });\n });\n }\n : undefined,\n saveDocument: operation => lifecycle.saveScene(operation),\n commitDocument: options.forgePlay.exportDocument\n ? async ({ documentFingerprint }) => lifecycle.commitDocumentSave(async () => {\n await lifecycleOperations.markDocumentCommitted?.(documentFingerprint);\n })\n : undefined,\n exitEditor: async reason => {\n if (reason === 'discard') return lifecycle.discardAndRunGame();\n await lifecycle.runCommittedDocument();\n return true;\n },\n });\n }\n\n return {\n harness: lifecycleHarness,\n lifecycle,\n getBridge() {\n return bridge;\n },\n enterEditor: lifecycle.enterEditor,\n saveScene: () => lifecycle.saveScene('save-scene'),\n prepareSaveAndRunGame: lifecycle.prepareSaveAndRunGame,\n prepareDiscardAndRunGame: lifecycle.prepareDiscardAndRunGame,\n saveAndRunGame: lifecycle.saveAndRunGame,\n discardAndRunGame: lifecycle.discardAndRunGame,\n runWithAssetLoadingOverlay,\n async dispose() {\n if (disposal) return disposal;\n const pending = (async () => {\n if (!lifecycleDisposed) {\n await lifecycle.dispose();\n lifecycleDisposed = true;\n }\n const errors: unknown[] = [];\n if (bridge) {\n try {\n bridge.dispose();\n bridge = null;\n } catch (error) { errors.push(error); }\n }\n if (!loadingOverlayDisposed) {\n try {\n loadingOverlay.dispose();\n loadingOverlayDisposed = true;\n } catch (error) { errors.push(error); }\n }\n if (errors.length === 1) throw errors[0];\n if (errors.length > 1) {\n const error = new Error('Playable Local Editor Host cleanup failed.') as Error & { errors: unknown[] };\n error.errors = errors;\n throw error;\n }\n })();\n disposal = pending;\n void pending.catch(() => {\n if (disposal === pending) disposal = null;\n });\n return pending;\n },\n };\n}\n\nfunction createLifecycleHarness<\n THarness extends PlayableLocalEditorHostHarness,\n>(\n harness: THarness,\n lifecycle: Pick<\n PlayableLocalEditorLifecycleController,\n 'enterEditor' | 'saveScene' | 'saveAndRunGame' | 'discardAndRunGame'\n >,\n): THarness {\n const enterEditor = lifecycle.enterEditor;\n const saveScene = () => lifecycle.saveScene('save-scene');\n const saveAndRunGame = lifecycle.saveAndRunGame;\n const discardAndRunGame = lifecycle.discardAndRunGame;\n const hiddenOperations = new Set<PropertyKey>([\n 'runGame',\n 'setAgentLifecycleController',\n 'setLifecycleController',\n 'getLocalEditorHarnessLifecycleOperations',\n 'dispose',\n ]);\n return new Proxy(harness, {\n get(target, property) {\n if (hiddenOperations.has(property)) return undefined;\n if (property === 'enterEditor') return enterEditor;\n if (property === 'saveScene') return saveScene;\n if (property === 'saveAndRunGame') return saveAndRunGame;\n if (property === 'discardAndRunGame') return discardAndRunGame;\n const value = Reflect.get(target, property, target);\n return typeof value === 'function' ? value.bind(target) : value;\n },\n has(target, property) {\n return !hiddenOperations.has(property) && Reflect.has(target, property);\n },\n ownKeys(target) {\n return Reflect.ownKeys(target).filter(property => !hiddenOperations.has(property));\n },\n getOwnPropertyDescriptor(target, property) {\n if (hiddenOperations.has(property)) return undefined;\n return Reflect.getOwnPropertyDescriptor(target, property);\n },\n }) as THarness;\n}\n\nfunction createScopedLoadingOverlay(\n loadingOverlay: Pick<PlayableLocalEditorLoadingOverlayController, 'show' | 'hide' | 'isVisible'> & {\n dispose?: () => void;\n },\n) {\n let owner: symbol | null = null;\n return {\n createScope() {\n const scopeOwner = Symbol('playable-local-editor-loading-overlay-scope');\n return {\n show(content: PlayableLocalEditorLoadingOverlayContent): void {\n owner = scopeOwner;\n loadingOverlay.show(content);\n },\n hide(): void {\n if (owner !== scopeOwner) return;\n owner = null;\n loadingOverlay.hide();\n },\n isVisible(): boolean {\n return loadingOverlay.isVisible();\n },\n isOwned(): boolean {\n return owner === scopeOwner;\n },\n };\n },\n dispose(): void {\n owner = null;\n loadingOverlay.dispose?.();\n },\n };\n}\n\nfunction createLifecycleOperations(\n operations: PlayableLocalEditorLifecycleOperations,\n beforeDiscardAndRunGame: (() => void | Promise<void>) | undefined,\n): PlayableLocalEditorLifecycleOperations {\n return {\n ...operations,\n async runGame(reason) {\n await beforeDiscardAndRunGame?.();\n await operations.runGame(reason);\n },\n };\n}\n"]}
1
+ {"version":3,"file":"host-controller.js","sourceRoot":"","sources":["../../src/local-harness/host-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAQtB,OAAO,EACL,4CAA4C,GAC7C,MAAM,aAAa,CAAC;AA8GrB,MAAM,UAAU,uCAAuC,CAGrD,OAA2D;IAE3D,IAAI,MAAM,GAAuC,IAAI,CAAC;IACtD,IAAI,QAAQ,GAAyB,IAAI,CAAC;IAC1C,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAC9B,IAAI,sBAAsB,GAAG,KAAK,CAAC;IACnC,MAAM,cAAc,GAAG,0BAA0B,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1E,MAAM,uBAAuB,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC;IAC7D,MAAM,uBA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;YAClB,MAAM,uBAAuB,EAAE,EAAE,CAAC;YAClC,MAAM,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n installPlayableForgePlayModeBridge,\n postPlayableForgePlayEvent,\n} from './forge-play';\nimport type {\n PlayableForgePlayBridgeInstallOptions,\n PlayableForgePlayDocumentExportResult,\n PlayableForgePlayModeBridge,\n PlayableForgePlaySaveState,\n PlayableForgePlayWindowLike,\n} from './forge-play-types';\nimport {\n createPlayableLocalEditorLifecycleController,\n} from './lifecycle';\nimport type {\n PlayableLocalEditorLifecycleContent,\n PlayableLocalEditorLifecycleController,\n PlayableLocalEditorDocumentOperationExecutor,\n PlayableLocalEditorLifecycleOperations,\n PlayableLocalEditorLifecycleHarness,\n PlayableLocalEditorLifecycleScopeHost,\n PlayableLocalEditorInteractionPolicy,\n PlayableLocalEditorLoadingOverlayContent,\n PlayableLocalEditorLoadingOverlayController,\n PlayableLocalEditorPreparedRun,\n} from './types';\nimport type { FpsEditorEventPublisher } from '@fps-games/editor-core/events';\nimport type { FpsDiagnostic } from '@fps-games/plugin-api';\n\nexport interface PlayableLocalEditorHostHarness\n extends PlayableLocalEditorLifecycleHarness {\n getWorkingDocument(): unknown | null;\n projectAssetDropPoint?(point: { x: number; y: number } | null): { x: number; y: number; z: number } | null;\n}\n\nexport interface PlayableLocalEditorHostLoadingContent\n extends PlayableLocalEditorLifecycleContent {\n saveScene: PlayableLocalEditorLoadingOverlayContent;\n}\n\nexport interface PlayableLocalEditorHostBridgeContext<\n THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness,\n> {\n name: string;\n payload: Record<string, unknown>;\n harness: THarness;\n ensureEditorMode: () => Promise<void>;\n runWithAssetLoadingOverlay: <T>(operation: () => Promise<T>) => Promise<T>;\n postEvent: (name: string, payload?: Record<string, unknown>) => void;\n getBridge: () => PlayableForgePlayModeBridge | null;\n}\n\nexport interface PlayableLocalEditorHostControllerOptions<\n THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness,\n> {\n harness: THarness;\n lifecycleOperations: PlayableLocalEditorLifecycleOperations;\n lifecycleScopeHost?: PlayableLocalEditorLifecycleScopeHost;\n eventPublisher?: FpsEditorEventPublisher;\n reportDiagnostic?: (diagnostic: FpsDiagnostic) => void;\n loadingOverlay: Pick<PlayableLocalEditorLoadingOverlayController, 'show' | 'hide' | 'isVisible'> & {\n dispose?: () => void;\n };\n loadingContent: PlayableLocalEditorHostLoadingContent;\n beforeDiscardAndRunGame?: () => void | Promise<void>;\n waitForPaint?: () => Promise<void>;\n waitForMilliseconds?: (milliseconds: number) => Promise<void>;\n now?: () => number;\n minAssetLoadingOverlayMs?: number;\n viewportRevealReason?: string;\n renderAfterEnter?: boolean;\n interactions?: PlayableLocalEditorInteractionPolicy;\n forgePlay?: {\n enabled?: boolean;\n window?: PlayableForgePlayWindowLike;\n initialMode?: PlayableForgePlayBridgeInstallOptions['initialMode'];\n overlayHideDelayMs?: number;\n hasUnsavedPlatformChanges?: () => boolean;\n reportError?: (error: unknown) => void;\n handleAssetDrop?: (\n payload: Record<string, unknown>,\n context: Omit<PlayableLocalEditorHostBridgeContext<THarness>, 'name'>,\n ) => void;\n handleProjectAssetCommand?: (\n context: PlayableLocalEditorHostBridgeContext<THarness>,\n ) => Promise<void> | void;\n exportDocument?: (input: {\n payload: Record<string, unknown>;\n saveState: PlayableForgePlaySaveState;\n postEvent: (name: string, payload?: Record<string, unknown>) => void;\n context: Omit<PlayableLocalEditorHostBridgeContext<THarness>, 'name' | 'payload'>;\n }) => Promise<PlayableForgePlayDocumentExportResult> | PlayableForgePlayDocumentExportResult;\n };\n}\n\nexport interface PlayableLocalEditorHostController<\n THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness,\n> {\n harness: THarness;\n lifecycle: PlayableLocalEditorLifecycleController;\n getBridge(): PlayableForgePlayModeBridge | null;\n enterEditor(): Promise<void>;\n saveScene(executor?: PlayableLocalEditorDocumentOperationExecutor): Promise<boolean>;\n prepareSaveAndRunGame(\n context?: Parameters<PlayableLocalEditorLifecycleController['prepareSaveAndRunGame']>[0],\n executor?: PlayableLocalEditorDocumentOperationExecutor,\n ): Promise<PlayableLocalEditorPreparedRun>;\n prepareDiscardAndRunGame(\n context?: Parameters<PlayableLocalEditorLifecycleController['prepareDiscardAndRunGame']>[0],\n executor?: PlayableLocalEditorDocumentOperationExecutor,\n ): Promise<PlayableLocalEditorPreparedRun>;\n saveAndRunGame(\n context?: Parameters<PlayableLocalEditorLifecycleController['saveAndRunGame']>[0],\n executor?: PlayableLocalEditorDocumentOperationExecutor,\n ): Promise<boolean>;\n discardAndRunGame(\n context?: Parameters<PlayableLocalEditorLifecycleController['discardAndRunGame']>[0],\n executor?: PlayableLocalEditorDocumentOperationExecutor,\n ): Promise<boolean>;\n runWithAssetLoadingOverlay<T>(operation: () => Promise<T>): Promise<T>;\n dispose(): Promise<void>;\n}\n\nexport function createPlayableLocalEditorHostController<\n THarness extends PlayableLocalEditorHostHarness = PlayableLocalEditorHostHarness,\n>(\n options: PlayableLocalEditorHostControllerOptions<THarness>,\n): PlayableLocalEditorHostController<THarness> {\n let bridge: PlayableForgePlayModeBridge | null = null;\n let disposal: Promise<void> | null = null;\n let lifecycleDisposed = false;\n let loadingOverlayDisposed = false;\n const loadingOverlay = createScopedLoadingOverlay(options.loadingOverlay);\n const lifecycleLoadingOverlay = loadingOverlay.createScope();\n const forgePlayLoadingOverlay = loadingOverlay.createScope();\n const harness = options.harness;\n const lifecycleOperations = createLifecycleOperations(\n options.lifecycleOperations,\n options.beforeDiscardAndRunGame,\n );\n\n const lifecycle = createPlayableLocalEditorLifecycleController({\n harness,\n operations: lifecycleOperations,\n scopeHost: options.lifecycleScopeHost,\n eventPublisher: options.eventPublisher,\n reportDiagnostic: options.reportDiagnostic,\n loadingOverlay: lifecycleLoadingOverlay,\n content: options.loadingContent,\n interactions: options.interactions,\n waitForPaint: options.waitForPaint,\n waitForMilliseconds: options.waitForMilliseconds,\n now: options.now,\n minAssetLoadingOverlayMs: options.minAssetLoadingOverlayMs,\n viewportRevealReason: options.viewportRevealReason,\n renderAfterEnter: options.renderAfterEnter,\n initialMode: options.forgePlay?.initialMode,\n });\n\n const runWithAssetLoadingOverlay = <T>(operation: () => Promise<T>): Promise<T> => (\n lifecycle.runWithAssetLoadingOverlay(operation)\n );\n const lifecycleHarness = createLifecycleHarness(harness, lifecycle);\n\n const ensureEditorMode = async (): Promise<void> => {\n if (!bridge || bridge.getMode() === 'edit') return;\n await bridge.switchMode('edit');\n };\n\n const postEvent = (name: string, payload: Record<string, unknown> = {}): void => {\n const windowLike = options.forgePlay?.window;\n if (!windowLike) return;\n postPlayableForgePlayEvent(windowLike, name, payload);\n };\n\n const createBridgeContext = (\n name: string,\n payload: Record<string, unknown>,\n ): PlayableLocalEditorHostBridgeContext<THarness> => ({\n name,\n payload,\n harness: lifecycleHarness,\n ensureEditorMode,\n runWithAssetLoadingOverlay,\n postEvent,\n getBridge: () => bridge,\n });\n\n if (options.forgePlay?.enabled !== false && options.forgePlay?.window) {\n bridge = installPlayableForgePlayModeBridge({\n window: options.forgePlay.window,\n harness: lifecycleHarness,\n loadingOverlay: forgePlayLoadingOverlay,\n loadingContent: {\n saveScene: options.loadingContent.saveScene,\n saveAndRunGame: options.loadingContent.saveAndRunGame,\n discardAndRunGame: options.loadingContent.discardAndRunGame,\n },\n initialMode: options.forgePlay.initialMode,\n overlayHideDelayMs: options.forgePlay.overlayHideDelayMs,\n waitForPaint: options.waitForPaint,\n renderAfterEnter: false,\n readMode: () => {\n const mode = lifecycle.lifecycle.getSnapshot().mode;\n if (mode === 'edit' || mode === 'exiting-edit') return 'edit';\n if (mode === 'play' || mode === 'entering-edit') return 'play';\n return options.forgePlay?.initialMode ?? 'play';\n },\n hasUnsavedPlatformChanges: options.forgePlay.hasUnsavedPlatformChanges,\n reportError: options.forgePlay.reportError,\n interactions: options.interactions,\n handleAssetDrop: options.forgePlay.handleAssetDrop\n ? payload => {\n options.forgePlay?.handleAssetDrop?.(payload, createBridgeContext('', payload));\n }\n : undefined,\n handleProjectAssetCommand: options.forgePlay.handleProjectAssetCommand\n ? async (name, payload) => {\n await options.forgePlay?.handleProjectAssetCommand?.(createBridgeContext(name, payload));\n }\n : undefined,\n exportDocument: options.forgePlay.exportDocument\n ? async ({ payload, saveState, postEvent: bridgePostEvent }) => {\n let result: PlayableForgePlayDocumentExportResult | null = null;\n await lifecycle.prepareDocumentSave(async () => {\n result = await options.forgePlay?.exportDocument?.({\n payload,\n saveState,\n postEvent: bridgePostEvent,\n context: createBridgeContext('', payload),\n }) ?? null;\n });\n if (!result) throw new Error('Document export did not return a document fingerprint.');\n return result;\n }\n : undefined,\n saveDocument: operation => lifecycle.saveScene(operation),\n saveAndExitEditor: () => lifecycle.saveAndRunGame(),\n commitDocument: options.forgePlay.exportDocument\n ? async ({ documentFingerprint }) => lifecycle.commitDocumentSave(async () => {\n await lifecycleOperations.markDocumentCommitted?.(documentFingerprint);\n })\n : undefined,\n exitEditor: async reason => {\n if (reason === 'discard') return lifecycle.discardAndRunGame();\n return lifecycle.runCommittedDocument();\n },\n });\n }\n\n return {\n harness: lifecycleHarness,\n lifecycle,\n getBridge() {\n return bridge;\n },\n enterEditor: lifecycle.enterEditor,\n saveScene: executor => lifecycle.saveScene('save-scene', undefined, executor),\n prepareSaveAndRunGame: lifecycle.prepareSaveAndRunGame,\n prepareDiscardAndRunGame: lifecycle.prepareDiscardAndRunGame,\n saveAndRunGame: lifecycle.saveAndRunGame,\n discardAndRunGame: lifecycle.discardAndRunGame,\n runWithAssetLoadingOverlay,\n async dispose() {\n if (disposal) return disposal;\n const pending = (async () => {\n if (!lifecycleDisposed) {\n await lifecycle.dispose();\n lifecycleDisposed = true;\n }\n const errors: unknown[] = [];\n if (bridge) {\n try {\n bridge.dispose();\n bridge = null;\n } catch (error) { errors.push(error); }\n }\n if (!loadingOverlayDisposed) {\n try {\n loadingOverlay.dispose();\n loadingOverlayDisposed = true;\n } catch (error) { errors.push(error); }\n }\n if (errors.length === 1) throw errors[0];\n if (errors.length > 1) {\n const error = new Error('Playable Local Editor Host cleanup failed.') as Error & { errors: unknown[] };\n error.errors = errors;\n throw error;\n }\n })();\n disposal = pending;\n void pending.catch(() => {\n if (disposal === pending) disposal = null;\n });\n return pending;\n },\n };\n}\n\nfunction createLifecycleHarness<\n THarness extends PlayableLocalEditorHostHarness,\n>(\n harness: THarness,\n lifecycle: Pick<\n PlayableLocalEditorLifecycleController,\n 'enterEditor' | 'saveScene' | 'saveAndRunGame' | 'discardAndRunGame'\n >,\n): THarness {\n const enterEditor = lifecycle.enterEditor;\n const saveScene = (executor?: PlayableLocalEditorDocumentOperationExecutor) => (\n lifecycle.saveScene('save-scene', undefined, executor)\n );\n const saveAndRunGame = lifecycle.saveAndRunGame;\n const discardAndRunGame = lifecycle.discardAndRunGame;\n const hiddenOperations = new Set<PropertyKey>([\n 'runGame',\n 'setAgentLifecycleController',\n 'setLifecycleController',\n 'getLocalEditorHarnessLifecycleOperations',\n 'dispose',\n ]);\n return new Proxy(harness, {\n get(target, property) {\n if (hiddenOperations.has(property)) return undefined;\n if (property === 'enterEditor') return enterEditor;\n if (property === 'saveScene') return saveScene;\n if (property === 'saveAndRunGame') return saveAndRunGame;\n if (property === 'discardAndRunGame') return discardAndRunGame;\n const value = Reflect.get(target, property, target);\n return typeof value === 'function' ? value.bind(target) : value;\n },\n has(target, property) {\n return !hiddenOperations.has(property) && Reflect.has(target, property);\n },\n ownKeys(target) {\n return Reflect.ownKeys(target).filter(property => !hiddenOperations.has(property));\n },\n getOwnPropertyDescriptor(target, property) {\n if (hiddenOperations.has(property)) return undefined;\n return Reflect.getOwnPropertyDescriptor(target, property);\n },\n }) as THarness;\n}\n\nfunction createScopedLoadingOverlay(\n loadingOverlay: Pick<PlayableLocalEditorLoadingOverlayController, 'show' | 'hide' | 'isVisible'> & {\n dispose?: () => void;\n },\n) {\n let owner: symbol | null = null;\n return {\n createScope() {\n const scopeOwner = Symbol('playable-local-editor-loading-overlay-scope');\n return {\n show(content: PlayableLocalEditorLoadingOverlayContent): void {\n owner = scopeOwner;\n loadingOverlay.show(content);\n },\n hide(): void {\n if (owner !== scopeOwner) return;\n owner = null;\n loadingOverlay.hide();\n },\n isVisible(): boolean {\n return loadingOverlay.isVisible();\n },\n isOwned(): boolean {\n return owner === scopeOwner;\n },\n };\n },\n dispose(): void {\n owner = null;\n loadingOverlay.dispose?.();\n },\n };\n}\n\nfunction createLifecycleOperations(\n operations: PlayableLocalEditorLifecycleOperations,\n beforeDiscardAndRunGame: (() => void | Promise<void>) | undefined,\n): PlayableLocalEditorLifecycleOperations {\n return {\n ...operations,\n async runGame(reason) {\n await beforeDiscardAndRunGame?.();\n await operations.runGame(reason);\n },\n };\n}\n"]}
@@ -1,11 +1,13 @@
1
1
  export type { PlayableEditorAgentAssetLike, PlayableEditorAgentGameObjectLike, PlayableEditorAgentJsonObject, PlayableEditorAgentJsonValue, PlayableEditorAgentObjectDescriptionServices, PlayableEditorAgentPrefabMaterialTargetLike, PlayableEditorAgentPrefabSummaryLike, } from './agent-descriptions';
2
2
  export type { PlayableLocalEditorHostBridgeContext, PlayableLocalEditorHostLoadingContent, } from './host-controller';
3
- export type { PlayableForgePlayBridgeHarness, PlayableForgePlayBridgeInstallOptions, PlayableForgePlayBridgeLoadingOverlay, PlayableForgePlayHistoryOperation, PlayableForgePlayHistoryOperationOptions, PlayableForgePlayHistoryOperationResult, PlayableForgePlayHistoryProjectionResult, PlayableForgePlayHistoryStateResult, PlayableForgePlayMessageEvent, PlayableForgePlayMode, PlayableForgePlayModeBridge, PlayableForgePlayOperationOrigin, PlayableForgePlayProjectionWaitPolicy, PlayableForgePlaySaveState, PlayableForgePlayWindowLike, } from './forge-play-types';
4
- export type { PlayableLocalEditorLifecycleContent, PlayableLocalEditorDataSafetyOperation, PlayableLocalEditorDiscardConfirmationInput, PlayableLocalEditorInteractionPolicy, PlayableLocalEditorLoadingOverlayContent, PlayableLocalEditorLoadingOverlayController, PlayableLocalEditorLoadingOverlayPresentation, PlayableLocalEditorSaveFailureInput, PlayableLocalEditorSaveFailureState, PlayableLocalEditorUnsavedChangesState, } from './types';
3
+ export type { PlayableForgePlayBridgeHarness, PlayableForgePlayBridgeInstallOptions, PlayableForgePlayBridgeLoadingOverlay, PlayableForgePlayDocumentExportResult, PlayableForgePlayHistoryOperation, PlayableForgePlayHistoryOperationOptions, PlayableForgePlayHistoryOperationResult, PlayableForgePlayHistoryProjectionResult, PlayableForgePlayHistoryStateResult, PlayableForgePlayMessageEvent, PlayableForgePlayMode, PlayableForgePlayModeBridge, PlayableForgePlayOperationOrigin, PlayableForgePlayProjectionWaitPolicy, PlayableForgePlaySaveState, PlayableForgePlayWindowLike, } from './forge-play-types';
4
+ export type { PlayableLocalEditorLifecycleContent, PlayableLocalEditorDataSafetyOperation, PlayableLocalEditorDocumentOperationExecutor, PlayableLocalEditorDiscardConfirmationInput, PlayableLocalEditorInteractionPolicy, PlayableLocalEditorLoadingOverlayContent, PlayableLocalEditorLoadingOverlayController, PlayableLocalEditorLoadingOverlayPresentation, PlayableLocalEditorSaveFailureInput, PlayableLocalEditorSaveFailureState, PlayableLocalEditorSaveOptions, PlayableLocalEditorUnsavedChangesState, } from './types';
5
5
  export type { PlayableProjectAssetCommandAsset, PlayableProjectAssetCommandCreateResult, PlayableProjectAssetCommandHandler, PlayableProjectAssetCommandHandlerOptions, PlayableProjectAssetCommandHarness, PlayableProjectAssetCommandReloadResult, PlayableProjectAssetCommandUpdateRefreshResult, } from './project-asset-commands';
6
6
  export { describePlayableEditorAgentObject, describePlayableEditorAgentObjectSet, describePlayableEditorAgentRegionBinding, } from './agent-descriptions';
7
7
  export { createPlayableProjectAssetCommandHandler, } from './project-asset-commands';
8
8
  export { createPlayableLocalEditorLoadingOverlay, } from './loading-overlay';
9
+ export { createPlayableEditorEntryController, } from './editor-entry';
10
+ export type { PlayableEditorEntryBackend, PlayableEditorEntryController, PlayableEditorEntryControllerOptions, PlayableEditorEntryFailure, PlayableEditorEntryFailureCode, PlayableEditorEntryFailureDiagnostic, PlayableEditorEntryFailureReport, PlayableEditorEntryOperationContext, PlayableEditorEntryOperationPhase, PlayableEditorEntryPhase, PlayableEditorEntryResult, PlayableEditorEntryState, } from './editor-entry';
9
11
  export { waitForPlayableLocalEditorPaint, waitForPlayableMilliseconds, } from './timing';
10
- export { createPlayableForgePlaySaveState, getPlayableForgePlayHistoryResultEventName, installPlayableForgePlayModeBridge, normalizePlayableForgePlayCommandName, PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE, PLAYABLE_FORGE_PLAY_COMMAND, PLAYABLE_FORGE_PLAY_COMMAND_ALIASES, PLAYABLE_FORGE_PLAY_EVENT, PLAYABLE_FORGE_PLAY_EVENT_ALIASES, PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS, PLAYABLE_FORGE_PLAY_POST_MESSAGE, PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS, postPlayableForgePlayEvent, readPlayableForgePlayHistoryOperationOptions, readPlayableForgePlayRequestId, } from './forge-play';
12
+ export { createPlayableForgePlayDocumentFingerprint, createPlayableForgePlaySaveState, getPlayableForgePlayHistoryResultEventName, installPlayableForgePlayModeBridge, normalizePlayableForgePlayCommandName, PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE, PLAYABLE_FORGE_PLAY_COMMAND, PLAYABLE_FORGE_PLAY_COMMAND_ALIASES, PLAYABLE_FORGE_PLAY_EVENT, PLAYABLE_FORGE_PLAY_EVENT_ALIASES, PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS, PLAYABLE_FORGE_PLAY_POST_MESSAGE, PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS, postPlayableForgePlayEvent, readPlayableForgePlayHistoryOperationOptions, readPlayableForgePlayRequestId, } from './forge-play';
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceR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C,EACjC,oCAAoC,EACpC,gCAAgC,EAChC,0CAA0C,EAC1C,0BAA0B,EAC1B,4CAA4C,EAC5C,8BAA8B,GAC/B,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/local-harness/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,4BAA4B,EAC5B,iCAAiC,EACjC,6BAA6B,EAC7B,4BAA4B,EAC5B,4CAA4C,EAC5C,2CAA2C,EAC3C,oCAAoC,GACrC,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,oCAAoC,EACpC,qCAAqC,GACtC,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,8BAA8B,EAC9B,qCAAqC,EACrC,qCAAqC,EACrC,qCAAqC,EACrC,iCAAiC,EACjC,wCAAwC,EACxC,uCAAuC,EACvC,wCAAwC,EACxC,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,qCAAqC,EACrC,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,mCAAmC,EACnC,sCAAsC,EACtC,4CAA4C,EAC5C,2CAA2C,EAC3C,oCAAoC,EACpC,wCAAwC,EACxC,2CAA2C,EAC3C,6CAA6C,EAC7C,mCAAmC,EACnC,mCAAmC,EACnC,8BAA8B,EAC9B,sCAAsC,GACvC,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,gCAAgC,EAChC,uCAAuC,EACvC,kCAAkC,EAClC,yCAAyC,EACzC,kCAAkC,EAClC,uCAAuC,EACvC,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACpC,wCAAwC,GACzC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uCAAuC,GACxC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,GACpC,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,0BAA0B,EAC1B,6BAA6B,EAC7B,oCAAoC,EACpC,0BAA0B,EAC1B,8BAA8B,EAC9B,oCAAoC,EACpC,gCAAgC,EAChC,mCAAmC,EACnC,iCAAiC,EACjC,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,0CAA0C,EAC1C,gCAAgC,EAChC,0CAA0C,EAC1C,kCAAkC,EAClC,qCAAqC,EACrC,iCAAiC,EACjC,2BAA2B,EAC3B,mCAAmC,EACnC,yBAAyB,EACzB,iCAAiC,EACjC,oCAAoC,EACpC,gCAAgC,EAChC,0CAA0C,EAC1C,0BAA0B,EAC1B,4CAA4C,EAC5C,8BAA8B,GAC/B,MAAM,cAAc,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export { describePlayableEditorAgentObject, describePlayableEditorAgentObjectSet, describePlayableEditorAgentRegionBinding, } from './agent-descriptions.js';
2
2
  export { createPlayableProjectAssetCommandHandler, } from './project-asset-commands.js';
3
3
  export { createPlayableLocalEditorLoadingOverlay, } from './loading-overlay.js';
4
+ export { createPlayableEditorEntryController, } from './editor-entry.js';
4
5
  export { waitForPlayableLocalEditorPaint, waitForPlayableMilliseconds, } from './timing.js';
5
- export { createPlayableForgePlaySaveState, getPlayableForgePlayHistoryResultEventName, installPlayableForgePlayModeBridge, normalizePlayableForgePlayCommandName, PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE, PLAYABLE_FORGE_PLAY_COMMAND, PLAYABLE_FORGE_PLAY_COMMAND_ALIASES, PLAYABLE_FORGE_PLAY_EVENT, PLAYABLE_FORGE_PLAY_EVENT_ALIASES, PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS, PLAYABLE_FORGE_PLAY_POST_MESSAGE, PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS, postPlayableForgePlayEvent, readPlayableForgePlayHistoryOperationOptions, readPlayableForgePlayRequestId, } from './forge-play.js';
6
+ export { createPlayableForgePlayDocumentFingerprint, createPlayableForgePlaySaveState, getPlayableForgePlayHistoryResultEventName, installPlayableForgePlayModeBridge, normalizePlayableForgePlayCommandName, PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE, PLAYABLE_FORGE_PLAY_COMMAND, PLAYABLE_FORGE_PLAY_COMMAND_ALIASES, PLAYABLE_FORGE_PLAY_EVENT, PLAYABLE_FORGE_PLAY_EVENT_ALIASES, PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS, PLAYABLE_FORGE_PLAY_POST_MESSAGE, PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS, postPlayableForgePlayEvent, readPlayableForgePlayHistoryOperationOptions, readPlayableForgePlayRequestId, } from './forge-play.js';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/local-harness/index.ts"],"names":[],"mappings":"AAmDA,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACpC,wCAAwC,GACzC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uCAAuC,GACxC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,gCAAgC,EAChC,0CAA0C,EAC1C,kCAAkC,EAClC,qCAAqC,EACrC,iCAAiC,EACjC,2BAA2B,EAC3B,mCAAmC,EACnC,yBAAyB,EACzB,iCAAiC,EACjC,oCAAoC,EACpC,gCAAgC,EAChC,0CAA0C,EAC1C,0BAA0B,EAC1B,4CAA4C,EAC5C,8BAA8B,GAC/B,MAAM,cAAc,CAAC","sourcesContent":["export type {\n PlayableEditorAgentAssetLike,\n PlayableEditorAgentGameObjectLike,\n PlayableEditorAgentJsonObject,\n PlayableEditorAgentJsonValue,\n PlayableEditorAgentObjectDescriptionServices,\n PlayableEditorAgentPrefabMaterialTargetLike,\n PlayableEditorAgentPrefabSummaryLike,\n} from './agent-descriptions';\nexport type {\n PlayableLocalEditorHostBridgeContext,\n PlayableLocalEditorHostLoadingContent,\n} from './host-controller';\nexport type {\n PlayableForgePlayBridgeHarness,\n PlayableForgePlayBridgeInstallOptions,\n PlayableForgePlayBridgeLoadingOverlay,\n PlayableForgePlayHistoryOperation,\n PlayableForgePlayHistoryOperationOptions,\n PlayableForgePlayHistoryOperationResult,\n PlayableForgePlayHistoryProjectionResult,\n PlayableForgePlayHistoryStateResult,\n PlayableForgePlayMessageEvent,\n PlayableForgePlayMode,\n PlayableForgePlayModeBridge,\n PlayableForgePlayOperationOrigin,\n PlayableForgePlayProjectionWaitPolicy,\n PlayableForgePlaySaveState,\n PlayableForgePlayWindowLike,\n} from './forge-play-types';\nexport type {\n PlayableLocalEditorLifecycleContent,\n PlayableLocalEditorDataSafetyOperation,\n PlayableLocalEditorDiscardConfirmationInput,\n PlayableLocalEditorInteractionPolicy,\n PlayableLocalEditorLoadingOverlayContent,\n PlayableLocalEditorLoadingOverlayController,\n PlayableLocalEditorLoadingOverlayPresentation,\n PlayableLocalEditorSaveFailureInput,\n PlayableLocalEditorSaveFailureState,\n PlayableLocalEditorUnsavedChangesState,\n} from './types';\nexport type {\n PlayableProjectAssetCommandAsset,\n PlayableProjectAssetCommandCreateResult,\n PlayableProjectAssetCommandHandler,\n PlayableProjectAssetCommandHandlerOptions,\n PlayableProjectAssetCommandHarness,\n PlayableProjectAssetCommandReloadResult,\n PlayableProjectAssetCommandUpdateRefreshResult,\n} from './project-asset-commands';\nexport {\n describePlayableEditorAgentObject,\n describePlayableEditorAgentObjectSet,\n describePlayableEditorAgentRegionBinding,\n} from './agent-descriptions';\nexport {\n createPlayableProjectAssetCommandHandler,\n} from './project-asset-commands';\nexport {\n createPlayableLocalEditorLoadingOverlay,\n} from './loading-overlay';\nexport {\n waitForPlayableLocalEditorPaint,\n waitForPlayableMilliseconds,\n} from './timing';\nexport {\n createPlayableForgePlaySaveState,\n getPlayableForgePlayHistoryResultEventName,\n installPlayableForgePlayModeBridge,\n normalizePlayableForgePlayCommandName,\n PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE,\n PLAYABLE_FORGE_PLAY_COMMAND,\n PLAYABLE_FORGE_PLAY_COMMAND_ALIASES,\n PLAYABLE_FORGE_PLAY_EVENT,\n PLAYABLE_FORGE_PLAY_EVENT_ALIASES,\n PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS,\n PLAYABLE_FORGE_PLAY_POST_MESSAGE,\n PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS,\n postPlayableForgePlayEvent,\n readPlayableForgePlayHistoryOperationOptions,\n readPlayableForgePlayRequestId,\n} from './forge-play';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/local-harness/index.ts"],"names":[],"mappings":"AAsDA,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACpC,wCAAwC,GACzC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uCAAuC,GACxC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,GACpC,MAAM,gBAAgB,CAAC;AAexB,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,0CAA0C,EAC1C,gCAAgC,EAChC,0CAA0C,EAC1C,kCAAkC,EAClC,qCAAqC,EACrC,iCAAiC,EACjC,2BAA2B,EAC3B,mCAAmC,EACnC,yBAAyB,EACzB,iCAAiC,EACjC,oCAAoC,EACpC,gCAAgC,EAChC,0CAA0C,EAC1C,0BAA0B,EAC1B,4CAA4C,EAC5C,8BAA8B,GAC/B,MAAM,cAAc,CAAC","sourcesContent":["export type {\n PlayableEditorAgentAssetLike,\n PlayableEditorAgentGameObjectLike,\n PlayableEditorAgentJsonObject,\n PlayableEditorAgentJsonValue,\n PlayableEditorAgentObjectDescriptionServices,\n PlayableEditorAgentPrefabMaterialTargetLike,\n PlayableEditorAgentPrefabSummaryLike,\n} from './agent-descriptions';\nexport type {\n PlayableLocalEditorHostBridgeContext,\n PlayableLocalEditorHostLoadingContent,\n} from './host-controller';\nexport type {\n PlayableForgePlayBridgeHarness,\n PlayableForgePlayBridgeInstallOptions,\n PlayableForgePlayBridgeLoadingOverlay,\n PlayableForgePlayDocumentExportResult,\n PlayableForgePlayHistoryOperation,\n PlayableForgePlayHistoryOperationOptions,\n PlayableForgePlayHistoryOperationResult,\n PlayableForgePlayHistoryProjectionResult,\n PlayableForgePlayHistoryStateResult,\n PlayableForgePlayMessageEvent,\n PlayableForgePlayMode,\n PlayableForgePlayModeBridge,\n PlayableForgePlayOperationOrigin,\n PlayableForgePlayProjectionWaitPolicy,\n PlayableForgePlaySaveState,\n PlayableForgePlayWindowLike,\n} from './forge-play-types';\nexport type {\n PlayableLocalEditorLifecycleContent,\n PlayableLocalEditorDataSafetyOperation,\n PlayableLocalEditorDocumentOperationExecutor,\n PlayableLocalEditorDiscardConfirmationInput,\n PlayableLocalEditorInteractionPolicy,\n PlayableLocalEditorLoadingOverlayContent,\n PlayableLocalEditorLoadingOverlayController,\n PlayableLocalEditorLoadingOverlayPresentation,\n PlayableLocalEditorSaveFailureInput,\n PlayableLocalEditorSaveFailureState,\n PlayableLocalEditorSaveOptions,\n PlayableLocalEditorUnsavedChangesState,\n} from './types';\nexport type {\n PlayableProjectAssetCommandAsset,\n PlayableProjectAssetCommandCreateResult,\n PlayableProjectAssetCommandHandler,\n PlayableProjectAssetCommandHandlerOptions,\n PlayableProjectAssetCommandHarness,\n PlayableProjectAssetCommandReloadResult,\n PlayableProjectAssetCommandUpdateRefreshResult,\n} from './project-asset-commands';\nexport {\n describePlayableEditorAgentObject,\n describePlayableEditorAgentObjectSet,\n describePlayableEditorAgentRegionBinding,\n} from './agent-descriptions';\nexport {\n createPlayableProjectAssetCommandHandler,\n} from './project-asset-commands';\nexport {\n createPlayableLocalEditorLoadingOverlay,\n} from './loading-overlay';\nexport {\n createPlayableEditorEntryController,\n} from './editor-entry';\nexport type {\n PlayableEditorEntryBackend,\n PlayableEditorEntryController,\n PlayableEditorEntryControllerOptions,\n PlayableEditorEntryFailure,\n PlayableEditorEntryFailureCode,\n PlayableEditorEntryFailureDiagnostic,\n PlayableEditorEntryFailureReport,\n PlayableEditorEntryOperationContext,\n PlayableEditorEntryOperationPhase,\n PlayableEditorEntryPhase,\n PlayableEditorEntryResult,\n PlayableEditorEntryState,\n} from './editor-entry';\nexport {\n waitForPlayableLocalEditorPaint,\n waitForPlayableMilliseconds,\n} from './timing';\nexport {\n createPlayableForgePlayDocumentFingerprint,\n createPlayableForgePlaySaveState,\n getPlayableForgePlayHistoryResultEventName,\n installPlayableForgePlayModeBridge,\n normalizePlayableForgePlayCommandName,\n PLAYABLE_FORGE_PLAY_BRIDGE_SOURCE,\n PLAYABLE_FORGE_PLAY_COMMAND,\n PLAYABLE_FORGE_PLAY_COMMAND_ALIASES,\n PLAYABLE_FORGE_PLAY_EVENT,\n PLAYABLE_FORGE_PLAY_EVENT_ALIASES,\n PLAYABLE_FORGE_PLAY_HISTORY_COMMANDS,\n PLAYABLE_FORGE_PLAY_POST_MESSAGE,\n PLAYABLE_FORGE_PLAY_PROJECT_ASSET_COMMANDS,\n postPlayableForgePlayEvent,\n readPlayableForgePlayHistoryOperationOptions,\n readPlayableForgePlayRequestId,\n} from './forge-play';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../src/local-harness/lifecycle.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAEV,sCAAsC,EACtC,6CAA6C,EAQ9C,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,0CAA0C,uBAAuB,CAAC;AAC/E,eAAO,MAAM,sCAAsC,mBAAmB,CAAC;AACvE,eAAO,MAAM,4CAA4C,yBAAyB,CAAC;AACnF,eAAO,MAAM,2CAA2C,wBAAwB,CAAC;AACjF,eAAO,MAAM,2CAA2C,wBAAwB,CAAC;AAqBjF,wBAAgB,4CAA4C,CAC1D,OAAO,EAAE,6CAA6C,GACrD,sCAAsC,CAkuBxC"}
1
+ {"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../src/local-harness/lifecycle.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAEV,sCAAsC,EACtC,6CAA6C,EAU9C,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,0CAA0C,uBAAuB,CAAC;AAC/E,eAAO,MAAM,sCAAsC,mBAAmB,CAAC;AACvE,eAAO,MAAM,4CAA4C,yBAAyB,CAAC;AACnF,eAAO,MAAM,2CAA2C,wBAAwB,CAAC;AACjF,eAAO,MAAM,2CAA2C,wBAAwB,CAAC;AA4BjF,wBAAgB,4CAA4C,CAC1D,OAAO,EAAE,6CAA6C,GACrD,sCAAsC,CAkzBxC"}