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

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 (1397) 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 +3 -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/product-local-editor-cleanup.d.ts +5 -0
  47. package/dist/internal/product-local-editor-cleanup.d.ts.map +1 -0
  48. package/dist/internal/product-local-editor-cleanup.js +20 -0
  49. package/dist/internal/product-local-editor-cleanup.js.map +1 -0
  50. package/dist/local-editor-agent-actions.d.ts +2 -4
  51. package/dist/local-editor-agent-actions.d.ts.map +1 -1
  52. package/dist/local-editor-agent-actions.js +56 -32
  53. package/dist/local-editor-agent-actions.js.map +1 -1
  54. package/dist/local-editor-agent-context.d.ts +5 -5
  55. package/dist/local-editor-agent-context.d.ts.map +1 -1
  56. package/dist/local-editor-agent-context.js.map +1 -1
  57. package/dist/local-editor-harness.d.ts +340 -35
  58. package/dist/local-editor-harness.d.ts.map +1 -1
  59. package/dist/local-editor-harness.js +3834 -1321
  60. package/dist/local-editor-harness.js.map +1 -1
  61. package/dist/local-editor-marker-graph.d.ts +15 -15
  62. package/dist/local-editor-marker-graph.d.ts.map +1 -1
  63. package/dist/local-editor-marker-graph.js +3 -0
  64. package/dist/local-editor-marker-graph.js.map +1 -1
  65. package/dist/local-editor-performance-stats.d.ts +3 -2
  66. package/dist/local-editor-performance-stats.d.ts.map +1 -1
  67. package/dist/local-editor-performance-stats.js.map +1 -1
  68. package/dist/local-editor-prefab-stage-transaction.d.ts +19 -0
  69. package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -0
  70. package/dist/local-editor-prefab-stage-transaction.js +45 -0
  71. package/dist/local-editor-prefab-stage-transaction.js.map +1 -0
  72. package/dist/local-editor-scene-view-interaction-runtime.d.ts +3 -1
  73. package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
  74. package/dist/local-editor-scene-view-interaction-runtime.js +24 -0
  75. package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
  76. package/dist/local-editor-tools.d.ts +18 -0
  77. package/dist/local-editor-tools.d.ts.map +1 -0
  78. package/dist/local-editor-tools.js +53 -0
  79. package/dist/local-editor-tools.js.map +1 -0
  80. package/dist/playable-babylon-rendering.d.ts +9 -0
  81. package/dist/playable-babylon-rendering.d.ts.map +1 -1
  82. package/dist/playable-babylon-rendering.js +162 -6
  83. package/dist/playable-babylon-rendering.js.map +1 -1
  84. package/dist/playable-local-editor-entry.d.ts +68 -0
  85. package/dist/playable-local-editor-entry.d.ts.map +1 -0
  86. package/dist/playable-local-editor-entry.js +424 -0
  87. package/dist/playable-local-editor-entry.js.map +1 -0
  88. package/dist/playable-local-editor-host.d.ts +51 -29
  89. package/dist/playable-local-editor-host.d.ts.map +1 -1
  90. package/dist/playable-local-editor-host.js +23 -11
  91. package/dist/playable-local-editor-host.js.map +1 -1
  92. package/dist/playable-product-local-editor.d.ts +10 -12
  93. package/dist/playable-product-local-editor.d.ts.map +1 -1
  94. package/dist/playable-product-local-editor.js +178 -85
  95. package/dist/playable-product-local-editor.js.map +1 -1
  96. package/dist/playable-product-projection-preview.d.ts +4 -1
  97. package/dist/playable-product-projection-preview.d.ts.map +1 -1
  98. package/dist/playable-product-projection-preview.js +122 -5
  99. package/dist/playable-product-projection-preview.js.map +1 -1
  100. package/dist/playable-product-rendering.d.ts +12 -0
  101. package/dist/playable-product-rendering.d.ts.map +1 -1
  102. package/dist/playable-product-rendering.js +128 -6
  103. package/dist/playable-product-rendering.js.map +1 -1
  104. package/dist/playable-product-scene-capabilities.d.ts +24 -7
  105. package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
  106. package/dist/playable-product-scene-capabilities.js +172 -15
  107. package/dist/playable-product-scene-capabilities.js.map +1 -1
  108. package/dist/playable-project-mode.d.ts +17 -0
  109. package/dist/playable-project-mode.d.ts.map +1 -0
  110. package/dist/playable-project-mode.js +2 -0
  111. package/dist/playable-project-mode.js.map +1 -0
  112. package/dist/playable-runtime-babylon.d.ts +3 -6
  113. package/dist/playable-runtime-babylon.d.ts.map +1 -1
  114. package/dist/playable-runtime-babylon.js +1 -5
  115. package/dist/playable-runtime-babylon.js.map +1 -1
  116. package/dist/playable-sdk.d.ts +16 -9
  117. package/dist/playable-sdk.d.ts.map +1 -1
  118. package/dist/playable-sdk.js +6 -4
  119. package/dist/playable-sdk.js.map +1 -1
  120. package/dist/playable-standard-project.d.ts +23 -14
  121. package/dist/playable-standard-project.d.ts.map +1 -1
  122. package/dist/playable-standard-project.js +53 -19
  123. package/dist/playable-standard-project.js.map +1 -1
  124. package/dist/vite-client.d.ts +4 -0
  125. package/node_modules/@babel/helper-string-parser/lib/index.js +0 -1
  126. package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -1
  127. package/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -1
  128. package/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -1
  129. package/node_modules/@babel/parser/lib/index.js +0 -1
  130. package/node_modules/@babel/types/lib/asserts/assertNode.js +0 -1
  131. package/node_modules/@babel/types/lib/asserts/generated/index.js +0 -1
  132. package/node_modules/@babel/types/lib/ast-types/generated/index.js +0 -1
  133. package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -1
  134. package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -1
  135. package/node_modules/@babel/types/lib/builders/generated/index.js +0 -1
  136. package/node_modules/@babel/types/lib/builders/generated/lowercase.js +0 -1
  137. package/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -1
  138. package/node_modules/@babel/types/lib/builders/productions.js +0 -1
  139. package/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -1
  140. package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -1
  141. package/node_modules/@babel/types/lib/builders/validateNode.js +0 -1
  142. package/node_modules/@babel/types/lib/clone/clone.js +0 -1
  143. package/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -1
  144. package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -1
  145. package/node_modules/@babel/types/lib/clone/cloneNode.js +0 -1
  146. package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -1
  147. package/node_modules/@babel/types/lib/comments/addComment.js +0 -1
  148. package/node_modules/@babel/types/lib/comments/addComments.js +0 -1
  149. package/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -1
  150. package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -1
  151. package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -1
  152. package/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -1
  153. package/node_modules/@babel/types/lib/comments/removeComments.js +0 -1
  154. package/node_modules/@babel/types/lib/constants/generated/index.js +0 -1
  155. package/node_modules/@babel/types/lib/constants/index.js +0 -1
  156. package/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -1
  157. package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -1
  158. package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -1
  159. package/node_modules/@babel/types/lib/converters/toBlock.js +0 -1
  160. package/node_modules/@babel/types/lib/converters/toComputedKey.js +0 -1
  161. package/node_modules/@babel/types/lib/converters/toExpression.js +0 -1
  162. package/node_modules/@babel/types/lib/converters/toIdentifier.js +0 -1
  163. package/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -1
  164. package/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -1
  165. package/node_modules/@babel/types/lib/converters/toStatement.js +0 -1
  166. package/node_modules/@babel/types/lib/converters/valueToNode.js +0 -1
  167. package/node_modules/@babel/types/lib/definitions/core.js +0 -1
  168. package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +0 -1
  169. package/node_modules/@babel/types/lib/definitions/experimental.js +0 -1
  170. package/node_modules/@babel/types/lib/definitions/flow.js +0 -1
  171. package/node_modules/@babel/types/lib/definitions/index.js +0 -1
  172. package/node_modules/@babel/types/lib/definitions/jsx.js +0 -1
  173. package/node_modules/@babel/types/lib/definitions/misc.js +0 -1
  174. package/node_modules/@babel/types/lib/definitions/placeholders.js +0 -1
  175. package/node_modules/@babel/types/lib/definitions/typescript.js +0 -1
  176. package/node_modules/@babel/types/lib/definitions/utils.js +0 -1
  177. package/node_modules/@babel/types/lib/index.js +0 -1
  178. package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -1
  179. package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +0 -1
  180. package/node_modules/@babel/types/lib/modifications/inherits.js +0 -1
  181. package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -1
  182. package/node_modules/@babel/types/lib/modifications/removeProperties.js +0 -1
  183. package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -1
  184. package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +0 -1
  185. package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +0 -1
  186. package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -1
  187. package/node_modules/@babel/types/lib/retrievers/getFunctionName.js +0 -1
  188. package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -1
  189. package/node_modules/@babel/types/lib/traverse/traverse.js +0 -1
  190. package/node_modules/@babel/types/lib/traverse/traverseFast.js +0 -1
  191. package/node_modules/@babel/types/lib/utils/deprecationWarning.js +0 -1
  192. package/node_modules/@babel/types/lib/utils/inherit.js +0 -1
  193. package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +0 -1
  194. package/node_modules/@babel/types/lib/utils/shallowEqual.js +0 -1
  195. package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -1
  196. package/node_modules/@babel/types/lib/validators/generated/index.js +0 -1
  197. package/node_modules/@babel/types/lib/validators/is.js +0 -1
  198. package/node_modules/@babel/types/lib/validators/isBinding.js +0 -1
  199. package/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -1
  200. package/node_modules/@babel/types/lib/validators/isImmutable.js +0 -1
  201. package/node_modules/@babel/types/lib/validators/isLet.js +0 -1
  202. package/node_modules/@babel/types/lib/validators/isNode.js +0 -1
  203. package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +0 -1
  204. package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -1
  205. package/node_modules/@babel/types/lib/validators/isReferenced.js +0 -1
  206. package/node_modules/@babel/types/lib/validators/isScope.js +0 -1
  207. package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +0 -1
  208. package/node_modules/@babel/types/lib/validators/isType.js +0 -1
  209. package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -1
  210. package/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -1
  211. package/node_modules/@babel/types/lib/validators/isVar.js +0 -1
  212. package/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -1
  213. package/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -1
  214. package/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -1
  215. package/node_modules/@babel/types/lib/validators/validate.js +0 -1
  216. package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.d.ts +69 -0
  217. package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.js +132 -0
  218. package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.d.ts +8 -0
  219. package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.js +7 -0
  220. package/node_modules/@babylonjs/loaders/BVH/bvhLoader.d.ts +14 -0
  221. package/node_modules/@babylonjs/loaders/BVH/bvhLoader.js +328 -0
  222. package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.d.ts +9 -0
  223. package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.js +1 -0
  224. package/node_modules/@babylonjs/loaders/BVH/index.d.ts +2 -0
  225. package/node_modules/@babylonjs/loaders/BVH/index.js +3 -0
  226. package/node_modules/@babylonjs/loaders/OBJ/index.d.ts +4 -0
  227. package/node_modules/@babylonjs/loaders/OBJ/index.js +4 -0
  228. package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.d.ts +41 -0
  229. package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.js +230 -0
  230. package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.d.ts +136 -0
  231. package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.js +317 -0
  232. package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.d.ts +4 -0
  233. package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.js +4 -0
  234. package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.d.ts +47 -0
  235. package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.js +1 -0
  236. package/node_modules/@babylonjs/loaders/OBJ/solidParser.d.ts +175 -0
  237. package/node_modules/@babylonjs/loaders/OBJ/solidParser.js +903 -0
  238. package/node_modules/@babylonjs/loaders/SPLAT/index.d.ts +2 -0
  239. package/node_modules/@babylonjs/loaders/SPLAT/index.js +3 -0
  240. package/node_modules/@babylonjs/loaders/SPLAT/sog.d.ts +84 -0
  241. package/node_modules/@babylonjs/loaders/SPLAT/sog.js +294 -0
  242. package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.d.ts +26 -0
  243. package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.js +10 -0
  244. package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.d.ts +100 -0
  245. package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.js +536 -0
  246. package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.d.ts +20 -0
  247. package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.js +15 -0
  248. package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.d.ts +33 -0
  249. package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.js +1 -0
  250. package/node_modules/@babylonjs/loaders/SPLAT/spz.d.ts +11 -0
  251. package/node_modules/@babylonjs/loaders/SPLAT/spz.js +168 -0
  252. package/node_modules/@babylonjs/loaders/STL/index.d.ts +1 -0
  253. package/node_modules/@babylonjs/loaders/STL/index.js +1 -0
  254. package/node_modules/@babylonjs/loaders/STL/stlFileLoader.d.ts +78 -0
  255. package/node_modules/@babylonjs/loaders/STL/stlFileLoader.js +238 -0
  256. package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.d.ts +8 -0
  257. package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.js +7 -0
  258. package/node_modules/@babylonjs/loaders/bvh/license.md +21 -0
  259. package/node_modules/@babylonjs/loaders/dynamic.d.ts +5 -0
  260. package/node_modules/@babylonjs/loaders/dynamic.js +56 -0
  261. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.d.ts +16 -0
  262. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.js +64 -0
  263. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.d.ts +144 -0
  264. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.js +1841 -0
  265. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -0
  266. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.js +95 -0
  267. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.d.ts +71 -0
  268. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.js +254 -0
  269. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.d.ts +13 -0
  270. package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.js +130 -0
  271. package/node_modules/@babylonjs/loaders/glTF/1.0/index.d.ts +5 -0
  272. package/node_modules/@babylonjs/loaders/glTF/1.0/index.js +5 -0
  273. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.d.ts +41 -0
  274. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.js +93 -0
  275. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.d.ts +41 -0
  276. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.js +83 -0
  277. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +48 -0
  278. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.js +115 -0
  279. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +39 -0
  280. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +94 -0
  281. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +39 -0
  282. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.js +50 -0
  283. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.d.ts +34 -0
  284. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.js +38 -0
  285. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.d.ts +33 -0
  286. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.js +37 -0
  287. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +53 -0
  288. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -0
  289. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.d.ts +47 -0
  290. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.d.ts +1 -0
  291. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js +251 -0
  292. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.js +77 -0
  293. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +47 -0
  294. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +92 -0
  295. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.d.ts +355 -0
  296. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js +1678 -0
  297. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.d.ts +33 -0
  298. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.js +19 -0
  299. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.d.ts +3 -0
  300. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.js +3 -0
  301. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.d.ts +70 -0
  302. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js +438 -0
  303. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.d.ts +38 -0
  304. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.js +150 -0
  305. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +41 -0
  306. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.js +91 -0
  307. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.d.ts +42 -0
  308. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.js +65 -0
  309. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +43 -0
  310. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.js +79 -0
  311. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.d.ts +49 -0
  312. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.js +119 -0
  313. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.d.ts +43 -0
  314. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.js +58 -0
  315. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.d.ts +43 -0
  316. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js +69 -0
  317. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.d.ts +43 -0
  318. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.js +56 -0
  319. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +42 -0
  320. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +47 -0
  321. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.d.ts +43 -0
  322. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.js +77 -0
  323. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.d.ts +46 -0
  324. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.js +54 -0
  325. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.d.ts +42 -0
  326. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.js +68 -0
  327. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +42 -0
  328. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -0
  329. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +43 -0
  330. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.js +73 -0
  331. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.d.ts +42 -0
  332. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.js +76 -0
  333. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +42 -0
  334. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.js +303 -0
  335. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +42 -0
  336. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.js +66 -0
  337. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.d.ts +112 -0
  338. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.js +262 -0
  339. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.d.ts +43 -0
  340. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.js +82 -0
  341. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.d.ts +45 -0
  342. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.js +109 -0
  343. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +29 -0
  344. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.js +22 -0
  345. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.d.ts +31 -0
  346. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.js +189 -0
  347. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.d.ts +30 -0
  348. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.js +123 -0
  349. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.d.ts +30 -0
  350. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.js +66 -0
  351. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +33 -0
  352. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.js +37 -0
  353. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.d.ts +37 -0
  354. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.js +58 -0
  355. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +39 -0
  356. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.js +47 -0
  357. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +56 -0
  358. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.js +228 -0
  359. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.d.ts +104 -0
  360. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.js +337 -0
  361. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +27 -0
  362. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.js +39 -0
  363. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +27 -0
  364. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.js +38 -0
  365. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.d.ts +4 -0
  366. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.js +212 -0
  367. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.d.ts +45 -0
  368. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.js +100 -0
  369. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.d.ts +43 -0
  370. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.js +44 -0
  371. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.d.ts +306 -0
  372. package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.js +884 -0
  373. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.d.ts +450 -0
  374. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.js +2485 -0
  375. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.d.ts +42 -0
  376. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.js +79 -0
  377. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.d.ts +165 -0
  378. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.js +1 -0
  379. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.d.ts +25 -0
  380. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js +32 -0
  381. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.d.ts +262 -0
  382. package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.js +1 -0
  383. package/node_modules/@babylonjs/loaders/glTF/2.0/index.d.ts +8 -0
  384. package/node_modules/@babylonjs/loaders/glTF/2.0/index.js +9 -0
  385. package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.d.ts +364 -0
  386. package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.js +1 -0
  387. package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.d.ts +674 -0
  388. package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.js +1034 -0
  389. package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.d.ts +705 -0
  390. package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.js +1126 -0
  391. package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.d.ts +553 -0
  392. package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.js +998 -0
  393. package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.d.ts +15 -0
  394. package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.js +17 -0
  395. package/node_modules/@babylonjs/loaders/glTF/glTFValidation.d.ts +35 -0
  396. package/node_modules/@babylonjs/loaders/glTF/glTFValidation.js +131 -0
  397. package/node_modules/@babylonjs/loaders/glTF/index.d.ts +5 -0
  398. package/node_modules/@babylonjs/loaders/glTF/index.js +6 -0
  399. package/node_modules/@babylonjs/loaders/index.d.ts +6 -0
  400. package/node_modules/@babylonjs/loaders/index.js +7 -0
  401. package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.d.ts +1 -0
  402. package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.js +15 -0
  403. package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.d.ts +1 -0
  404. package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.js +13 -0
  405. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.d.ts +2 -0
  406. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.js +18 -0
  407. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.d.ts +2 -0
  408. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.js +15 -0
  409. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.d.ts +2 -0
  410. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.js +3 -0
  411. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.d.ts +2 -0
  412. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.js +34 -0
  413. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.d.ts +2 -0
  414. package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.js +3 -0
  415. package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.d.ts +3 -0
  416. package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.js +4 -0
  417. package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.d.ts +1 -0
  418. package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.js +15 -0
  419. package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.d.ts +1 -0
  420. package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.js +15 -0
  421. package/node_modules/@babylonjs/loaders/legacy/legacy.d.ts +8 -0
  422. package/node_modules/@babylonjs/loaders/legacy/legacy.js +10 -0
  423. package/node_modules/@babylonjs/loaders/license.md +71 -0
  424. package/node_modules/@babylonjs/loaders/package.json +49 -0
  425. package/node_modules/@babylonjs/loaders/readme.md +23 -0
  426. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts +22 -0
  427. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts.map +1 -0
  428. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js +187 -0
  429. package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js.map +1 -0
  430. package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -0
  431. package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
  432. package/node_modules/@fps-games/babylon-renderer/dist/index.js +3 -0
  433. package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
  434. package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts +19 -0
  435. package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts.map +1 -0
  436. package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js +212 -0
  437. package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js.map +1 -0
  438. package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts +17 -2
  439. package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts.map +1 -1
  440. package/node_modules/@fps-games/babylon-renderer/dist/plugin.js +192 -17
  441. package/node_modules/@fps-games/babylon-renderer/dist/plugin.js.map +1 -1
  442. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +2 -0
  443. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
  444. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +139 -3
  445. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
  446. package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts +4 -0
  447. package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts.map +1 -1
  448. package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -1
  449. package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts +1 -0
  450. package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts.map +1 -1
  451. package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js +1 -0
  452. package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js.map +1 -1
  453. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts +14 -0
  454. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts.map +1 -0
  455. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js +14 -0
  456. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js.map +1 -0
  457. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts +59 -0
  458. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts.map +1 -0
  459. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js +725 -0
  460. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js.map +1 -0
  461. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts +136 -0
  462. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts.map +1 -0
  463. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js +2735 -0
  464. package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js.map +1 -0
  465. package/node_modules/@fps-games/babylon-renderer/package.json +7 -7
  466. package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +1 -1
  467. package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
  468. package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -1
  469. package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
  470. package/node_modules/@fps-games/editor-babylon/dist/index.js +2 -1
  471. package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
  472. package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts +2 -0
  473. package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts.map +1 -1
  474. package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js +59 -6
  475. package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js.map +1 -1
  476. package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -1
  477. package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +81 -11
  478. package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -1
  479. package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +2 -8
  480. package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -1
  481. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +17 -5
  482. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
  483. package/node_modules/@fps-games/editor-babylon/dist/projection.js +300 -362
  484. package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
  485. package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts +4 -0
  486. package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts.map +1 -1
  487. package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +76 -10
  488. package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
  489. package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts +46 -0
  490. package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts.map +1 -0
  491. package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js +304 -0
  492. package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js.map +1 -0
  493. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts +85 -0
  494. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -0
  495. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +1600 -0
  496. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -0
  497. package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +11 -3
  498. package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
  499. package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +105 -15
  500. package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
  501. package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts +25 -0
  502. package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts.map +1 -0
  503. package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js +44 -0
  504. package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js.map +1 -0
  505. package/node_modules/@fps-games/editor-babylon/package.json +6 -5
  506. package/node_modules/@fps-games/editor-browser/dist/index.d.ts +8 -11
  507. package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
  508. package/node_modules/@fps-games/editor-browser/dist/index.js +6 -9
  509. package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
  510. package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts +2 -0
  511. package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts.map +1 -0
  512. package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js +36 -0
  513. package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js.map +1 -0
  514. package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts +2 -0
  515. package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts.map +1 -1
  516. package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js +17 -0
  517. package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -1
  518. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +1 -1
  519. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -1
  520. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +6 -0
  521. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -1
  522. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.d.ts.map +1 -1
  523. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +157 -77
  524. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
  525. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts.map +1 -1
  526. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js +27 -21
  527. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -1
  528. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +19 -0
  529. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -0
  530. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +44 -0
  531. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -0
  532. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +36 -6
  533. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
  534. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +829 -866
  535. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
  536. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts +8 -7
  537. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts.map +1 -1
  538. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js +1 -7
  539. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js.map +1 -1
  540. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts +7 -0
  541. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts.map +1 -0
  542. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js +20 -0
  543. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js.map +1 -0
  544. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +6 -7
  545. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
  546. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +266 -114
  547. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
  548. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
  549. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
  550. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +5 -0
  551. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
  552. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts.map +1 -1
  553. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js +3 -17
  554. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js.map +1 -1
  555. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts +14 -0
  556. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts.map +1 -1
  557. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js +44 -62
  558. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js.map +1 -1
  559. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +10 -7
  560. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
  561. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +591 -639
  562. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
  563. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts +8 -36
  564. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -1
  565. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +25 -103
  566. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -1
  567. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
  568. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +29 -110
  569. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
  570. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +1 -3
  571. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
  572. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +6 -90
  573. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
  574. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
  575. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +9 -54
  576. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
  577. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts +16 -1
  578. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map +1 -1
  579. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js +44 -39
  580. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js.map +1 -1
  581. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts +4 -0
  582. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts.map +1 -0
  583. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js +44 -0
  584. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js.map +1 -0
  585. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts.map +1 -1
  586. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js +35 -44
  587. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map +1 -1
  588. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.d.ts.map +1 -1
  589. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js +40 -24
  590. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js.map +1 -1
  591. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.d.ts.map +1 -1
  592. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js +2 -20
  593. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js.map +1 -1
  594. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +52 -341
  595. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
  596. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
  597. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts +4 -14
  598. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
  599. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +33 -119
  600. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
  601. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +5 -10
  602. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
  603. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +595 -544
  604. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
  605. package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts +2 -3
  606. package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts.map +1 -1
  607. package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js +0 -180
  608. package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js.map +1 -1
  609. package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts +5 -0
  610. package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts.map +1 -0
  611. package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js +5 -0
  612. package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js.map +1 -0
  613. package/node_modules/@fps-games/editor-browser/package.json +15 -4
  614. package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts +22 -0
  615. package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts.map +1 -0
  616. package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js +226 -0
  617. package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js.map +1 -0
  618. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -1
  619. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
  620. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +94 -2
  621. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
  622. package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +24 -2
  623. package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
  624. package/node_modules/@fps-games/editor-core/dist/editor-session.js +70 -10
  625. package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
  626. package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts +112 -0
  627. package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts.map +1 -0
  628. package/node_modules/@fps-games/editor-core/dist/editor-tools.js +613 -0
  629. package/node_modules/@fps-games/editor-core/dist/editor-tools.js.map +1 -0
  630. package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +46 -0
  631. package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
  632. package/node_modules/@fps-games/editor-core/dist/inspector.js +62 -0
  633. package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
  634. package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +1 -0
  635. package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
  636. package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
  637. package/node_modules/@fps-games/editor-core/package.json +14 -6
  638. package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
  639. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js +14 -3
  640. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -1
  641. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts +1 -1
  642. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts.map +1 -1
  643. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js +1 -1
  644. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -1
  645. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +14 -0
  646. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -1
  647. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +49 -1
  648. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -1
  649. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +58 -2
  650. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
  651. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -1
  652. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +48 -6
  653. package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -1
  654. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +28 -3
  655. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
  656. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +314 -6
  657. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
  658. package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts +2 -0
  659. package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts.map +1 -1
  660. package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js +2 -0
  661. package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -1
  662. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts +11 -0
  663. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts.map +1 -0
  664. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js +27 -0
  665. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js.map +1 -0
  666. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts +5 -0
  667. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts.map +1 -0
  668. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js +285 -0
  669. package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js.map +1 -0
  670. package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +7 -3
  671. package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
  672. package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -1
  673. package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +3 -0
  674. package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
  675. package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +6 -0
  676. package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
  677. package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
  678. package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +23 -81
  679. package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
  680. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts +41 -0
  681. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts.map +1 -0
  682. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js +93 -0
  683. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js.map +1 -0
  684. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts +29 -0
  685. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts.map +1 -0
  686. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js +77 -0
  687. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js.map +1 -0
  688. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts +51 -0
  689. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts.map +1 -0
  690. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js +105 -0
  691. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js.map +1 -0
  692. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts +60 -0
  693. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts.map +1 -0
  694. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js +287 -0
  695. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js.map +1 -0
  696. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +6 -1
  697. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -1
  698. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
  699. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +1 -0
  700. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
  701. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +53 -17
  702. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
  703. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +16 -8
  704. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
  705. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +10 -6
  706. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
  707. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +5 -3
  708. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
  709. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +2 -1
  710. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
  711. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
  712. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +134 -66
  713. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
  714. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts +11 -0
  715. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -1
  716. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +21 -14
  717. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -1
  718. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +17 -9
  719. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -1
  720. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
  721. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -1
  722. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +20 -0
  723. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
  724. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
  725. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +49 -10
  726. package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
  727. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +2 -2
  728. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
  729. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +18 -0
  730. package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
  731. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts +7 -0
  732. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts.map +1 -1
  733. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js +130 -20
  734. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js.map +1 -1
  735. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts +1 -1
  736. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts.map +1 -1
  737. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js +12 -3
  738. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js.map +1 -1
  739. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts +11 -0
  740. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts.map +1 -0
  741. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js +136 -0
  742. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js.map +1 -0
  743. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts +1 -0
  744. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts.map +1 -1
  745. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js +1 -0
  746. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js.map +1 -1
  747. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts +36 -51
  748. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts.map +1 -1
  749. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js +40 -65
  750. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js.map +1 -1
  751. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +5 -2
  752. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
  753. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +207 -1
  754. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
  755. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts +1 -0
  756. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
  757. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +3 -0
  758. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
  759. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +18 -7
  760. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
  761. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +110 -18
  762. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
  763. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts +5 -0
  764. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts.map +1 -1
  765. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js +6 -0
  766. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js.map +1 -1
  767. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts +5 -2
  768. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
  769. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +22 -2
  770. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
  771. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
  772. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +144 -0
  773. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
  774. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +16 -0
  775. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
  776. package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -1
  777. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
  778. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +1 -0
  779. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
  780. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +2 -1
  781. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
  782. package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -1
  783. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts +2 -0
  784. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts.map +1 -1
  785. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +241 -13
  786. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -1
  787. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts +1 -0
  788. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts.map +1 -1
  789. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js +1 -0
  790. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -1
  791. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts +31 -0
  792. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts.map +1 -0
  793. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js +170 -0
  794. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js.map +1 -0
  795. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts +153 -13
  796. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts.map +1 -1
  797. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -1
  798. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts +17 -0
  799. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts.map +1 -1
  800. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js +1295 -3
  801. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js.map +1 -1
  802. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
  803. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +14 -0
  804. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
  805. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts.map +1 -1
  806. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js +57 -34
  807. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -1
  808. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -1
  809. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +4 -1
  810. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -1
  811. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +4 -0
  812. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
  813. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
  814. package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -1
  815. package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +20 -198
  816. package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -1
  817. package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.d.ts.map +1 -1
  818. package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js +5 -1
  819. package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js.map +1 -1
  820. package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts +5 -0
  821. package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -1
  822. package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +144 -8
  823. package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
  824. package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts +1 -1
  825. package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts.map +1 -1
  826. package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js +30 -1
  827. package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js.map +1 -1
  828. package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts +6 -0
  829. package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts.map +1 -1
  830. package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -1
  831. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +31 -3
  832. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
  833. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts +5 -2
  834. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
  835. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +40 -4
  836. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
  837. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
  838. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +116 -3
  839. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
  840. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +2 -1
  841. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
  842. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js +1 -0
  843. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
  844. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts +17 -1
  845. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts.map +1 -1
  846. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js +50 -2
  847. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js.map +1 -1
  848. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
  849. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +7 -5
  850. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
  851. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts +5 -6
  852. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts.map +1 -1
  853. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js +31 -17
  854. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js.map +1 -1
  855. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +6 -0
  856. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
  857. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
  858. package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
  859. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +417 -2
  860. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +1 -1
  861. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js +692 -2
  862. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -1
  863. package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts +55 -0
  864. package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts.map +1 -0
  865. package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js +2 -0
  866. package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js.map +1 -0
  867. package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +3 -18
  868. package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
  869. package/node_modules/@fps-games/editor-protocol/dist/index.js +1 -0
  870. package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
  871. package/node_modules/@fps-games/editor-protocol/package.json +2 -2
  872. package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.d.ts.map +1 -1
  873. package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js +5 -0
  874. package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js.map +1 -1
  875. package/node_modules/@fps-games/editor-tooling/dist/vite.d.ts.map +1 -1
  876. package/node_modules/@fps-games/editor-tooling/dist/vite.js +151 -5
  877. package/node_modules/@fps-games/editor-tooling/dist/vite.js.map +1 -1
  878. package/node_modules/@fps-games/editor-tooling/package.json +3 -3
  879. package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts +107 -0
  880. package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts.map +1 -0
  881. package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js +770 -0
  882. package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js.map +1 -0
  883. package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts +21 -0
  884. package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts.map +1 -0
  885. package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js +172 -0
  886. package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js.map +1 -0
  887. package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts +14 -0
  888. package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts.map +1 -0
  889. package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js +32 -0
  890. package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js.map +1 -0
  891. package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts +3 -0
  892. package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts.map +1 -0
  893. package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js +653 -0
  894. package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js.map +1 -0
  895. package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts +3 -0
  896. package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts.map +1 -0
  897. package/node_modules/@fps-games/editor-ui/dist/gallery.js +3 -0
  898. package/node_modules/@fps-games/editor-ui/dist/gallery.js.map +1 -0
  899. package/node_modules/@fps-games/editor-ui/dist/index.d.ts +5 -0
  900. package/node_modules/@fps-games/editor-ui/dist/index.d.ts.map +1 -0
  901. package/node_modules/@fps-games/editor-ui/dist/index.js +5 -0
  902. package/node_modules/@fps-games/editor-ui/dist/index.js.map +1 -0
  903. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts +7 -0
  904. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts.map +1 -0
  905. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js +29 -0
  906. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js.map +1 -0
  907. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts +2 -0
  908. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts.map +1 -0
  909. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js +95 -0
  910. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js.map +1 -0
  911. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts +28 -0
  912. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts.map +1 -0
  913. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js +387 -0
  914. package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js.map +1 -0
  915. package/node_modules/@fps-games/editor-ui/package.json +23 -0
  916. package/node_modules/@fps-games/playable-assets/package.json +1 -1
  917. package/node_modules/@fps-games/playable-contracts/dist/index.d.ts +1 -0
  918. package/node_modules/@fps-games/playable-contracts/dist/index.d.ts.map +1 -1
  919. package/node_modules/@fps-games/playable-contracts/dist/index.js +1 -0
  920. package/node_modules/@fps-games/playable-contracts/dist/index.js.map +1 -1
  921. package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts +116 -0
  922. package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts.map +1 -0
  923. package/node_modules/@fps-games/playable-contracts/dist/material-owner.js +403 -0
  924. package/node_modules/@fps-games/playable-contracts/dist/material-owner.js.map +1 -0
  925. package/node_modules/@fps-games/playable-contracts/package.json +1 -1
  926. package/node_modules/@fps-games/playable-rendering/dist/index.d.ts +3 -0
  927. package/node_modules/@fps-games/playable-rendering/dist/index.d.ts.map +1 -1
  928. package/node_modules/@fps-games/playable-rendering/dist/index.js +3 -0
  929. package/node_modules/@fps-games/playable-rendering/dist/index.js.map +1 -1
  930. package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js +5 -25
  931. package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js.map +1 -1
  932. package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts +3 -0
  933. package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts.map +1 -1
  934. package/node_modules/@fps-games/playable-rendering/dist/runtime.js +3 -0
  935. package/node_modules/@fps-games/playable-rendering/dist/runtime.js.map +1 -1
  936. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts +61 -0
  937. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts.map +1 -0
  938. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js +176 -0
  939. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js.map +1 -0
  940. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts +84 -0
  941. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts.map +1 -0
  942. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js +362 -0
  943. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js.map +1 -0
  944. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts +167 -0
  945. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts.map +1 -0
  946. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js +484 -0
  947. package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js.map +1 -0
  948. package/node_modules/@fps-games/playable-rendering/package.json +2 -2
  949. package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts +5 -0
  950. package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts.map +1 -1
  951. package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js +1 -0
  952. package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js.map +1 -1
  953. package/node_modules/@fps-games/playable-runtime/package.json +12 -12
  954. package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
  955. package/node_modules/@fps-games/playable-scene/package.json +2 -2
  956. package/node_modules/@fps-games/plugin-api/package.json +1 -1
  957. package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
  958. package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
  959. package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
  960. package/node_modules/@fps-games/plugin-assets/package.json +5 -5
  961. package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts +6 -0
  962. package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts.map +1 -0
  963. package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js +16 -0
  964. package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js.map +1 -0
  965. package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts +7 -0
  966. package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts.map +1 -0
  967. package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js +47 -0
  968. package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js.map +1 -0
  969. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +306 -0
  970. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -0
  971. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +1237 -0
  972. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -0
  973. package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts +8 -0
  974. package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts.map +1 -0
  975. package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js +32 -0
  976. package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js.map +1 -0
  977. package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +2 -0
  978. package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts.map +1 -0
  979. package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +2 -0
  980. package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -0
  981. package/node_modules/@fps-games/plugin-hierarchy/package.json +57 -0
  982. package/node_modules/@fps-games/plugin-host/package.json +2 -2
  983. package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
  984. package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
  985. package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
  986. package/node_modules/@fps-games/plugin-markers/package.json +5 -5
  987. package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
  988. package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
  989. package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
  990. package/node_modules/@fps-games/plugin-materials/package.json +5 -5
  991. package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
  992. package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
  993. package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
  994. package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
  995. package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
  996. package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
  997. package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
  998. package/node_modules/@fps-games/plugin-scene/package.json +5 -5
  999. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts +8 -0
  1000. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts.map +1 -0
  1001. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js +35 -0
  1002. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js.map +1 -0
  1003. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts +11 -0
  1004. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts.map +1 -0
  1005. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js +14 -0
  1006. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js.map +1 -0
  1007. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +2 -0
  1008. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts.map +1 -0
  1009. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +2 -0
  1010. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -0
  1011. package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +53 -0
  1012. package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
  1013. package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
  1014. package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
  1015. package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
  1016. package/node_modules/@playcanvas/observer/LICENSE +19 -0
  1017. package/node_modules/@playcanvas/observer/README.md +72 -0
  1018. package/node_modules/@playcanvas/observer/dist/index.cjs +2033 -0
  1019. package/node_modules/@playcanvas/observer/dist/index.js +2039 -0
  1020. package/node_modules/@playcanvas/observer/dist/index.mjs +2026 -0
  1021. package/node_modules/@playcanvas/observer/package.json +78 -0
  1022. package/node_modules/@playcanvas/observer/types/event-handle.d.ts +41 -0
  1023. package/node_modules/@playcanvas/observer/types/events.d.ts +162 -0
  1024. package/node_modules/@playcanvas/observer/types/history.d.ts +123 -0
  1025. package/node_modules/@playcanvas/observer/types/index.d.ts +15 -0
  1026. package/node_modules/@playcanvas/observer/types/observer-history.d.ts +32 -0
  1027. package/node_modules/@playcanvas/observer/types/observer-list.d.ts +39 -0
  1028. package/node_modules/@playcanvas/observer/types/observer.d.ts +157 -0
  1029. package/node_modules/@playcanvas/observer/types/utils.d.ts +33 -0
  1030. package/node_modules/@playcanvas/pcui/LICENSE +19 -0
  1031. package/node_modules/@playcanvas/pcui/README.md +164 -0
  1032. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
  1033. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
  1034. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
  1035. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
  1036. package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
  1037. package/node_modules/@playcanvas/pcui/dist/module/src/Math/color-value.mjs +77 -0
  1038. package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingBase/index.mjs +215 -0
  1039. package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
  1040. package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
  1041. package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
  1042. package/node_modules/@playcanvas/pcui/dist/module/src/class.mjs +19 -0
  1043. package/node_modules/@playcanvas/pcui/dist/module/src/components/ArrayInput/index.mjs +498 -0
  1044. package/node_modules/@playcanvas/pcui/dist/module/src/components/BooleanInput/index.mjs +122 -0
  1045. package/node_modules/@playcanvas/pcui/dist/module/src/components/Button/index.mjs +119 -0
  1046. package/node_modules/@playcanvas/pcui/dist/module/src/components/Canvas/index.mjs +104 -0
  1047. package/node_modules/@playcanvas/pcui/dist/module/src/components/Code/index.mjs +43 -0
  1048. package/node_modules/@playcanvas/pcui/dist/module/src/components/ColorPicker/index.mjs +619 -0
  1049. package/node_modules/@playcanvas/pcui/dist/module/src/components/Container/index.mjs +642 -0
  1050. package/node_modules/@playcanvas/pcui/dist/module/src/components/Divider/index.mjs +20 -0
  1051. package/node_modules/@playcanvas/pcui/dist/module/src/components/Element/index.mjs +829 -0
  1052. package/node_modules/@playcanvas/pcui/dist/module/src/components/GradientPicker/index.mjs +1136 -0
  1053. package/node_modules/@playcanvas/pcui/dist/module/src/components/GridView/index.mjs +448 -0
  1054. package/node_modules/@playcanvas/pcui/dist/module/src/components/GridViewItem/index.mjs +152 -0
  1055. package/node_modules/@playcanvas/pcui/dist/module/src/components/InfoBox/index.mjs +90 -0
  1056. package/node_modules/@playcanvas/pcui/dist/module/src/components/InputElement/index.mjs +186 -0
  1057. package/node_modules/@playcanvas/pcui/dist/module/src/components/Label/index.mjs +124 -0
  1058. package/node_modules/@playcanvas/pcui/dist/module/src/components/LabelGroup/index.mjs +74 -0
  1059. package/node_modules/@playcanvas/pcui/dist/module/src/components/Menu/index.mjs +174 -0
  1060. package/node_modules/@playcanvas/pcui/dist/module/src/components/MenuItem/index.mjs +223 -0
  1061. package/node_modules/@playcanvas/pcui/dist/module/src/components/NumericInput/index.mjs +400 -0
  1062. package/node_modules/@playcanvas/pcui/dist/module/src/components/Overlay/index.mjs +108 -0
  1063. package/node_modules/@playcanvas/pcui/dist/module/src/components/Panel/index.mjs +400 -0
  1064. package/node_modules/@playcanvas/pcui/dist/module/src/components/Progress/index.mjs +45 -0
  1065. package/node_modules/@playcanvas/pcui/dist/module/src/components/RadioButton/index.mjs +113 -0
  1066. package/node_modules/@playcanvas/pcui/dist/module/src/components/SelectInput/index.mjs +1085 -0
  1067. package/node_modules/@playcanvas/pcui/dist/module/src/components/SliderInput/index.mjs +333 -0
  1068. package/node_modules/@playcanvas/pcui/dist/module/src/components/Spinner/index.mjs +34 -0
  1069. package/node_modules/@playcanvas/pcui/dist/module/src/components/TextAreaInput/index.mjs +50 -0
  1070. package/node_modules/@playcanvas/pcui/dist/module/src/components/TextInput/index.mjs +98 -0
  1071. package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeView/index.mjs +1131 -0
  1072. package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeViewItem/index.mjs +500 -0
  1073. package/node_modules/@playcanvas/pcui/dist/module/src/components/VectorInput/index.mjs +366 -0
  1074. package/node_modules/@playcanvas/pcui/dist/module/src/helpers/search.mjs +194 -0
  1075. package/node_modules/@playcanvas/pcui/dist/module/src/helpers/utils.mjs +43 -0
  1076. package/node_modules/@playcanvas/pcui/dist/module/src/index.mjs +56 -0
  1077. package/node_modules/@playcanvas/pcui/dist/pcui-theme-green.scss +2798 -0
  1078. package/node_modules/@playcanvas/pcui/dist/pcui-theme-grey.scss +2798 -0
  1079. package/node_modules/@playcanvas/pcui/package.json +150 -0
  1080. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
  1081. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
  1082. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
  1083. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
  1084. package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
  1085. package/node_modules/@playcanvas/pcui/react/dist/module/src/Math/color-value.mjs +77 -0
  1086. package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingBase/index.mjs +215 -0
  1087. package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
  1088. package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
  1089. package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
  1090. package/node_modules/@playcanvas/pcui/react/dist/module/src/class.mjs +19 -0
  1091. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/component.mjs +11 -0
  1092. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/index.mjs +498 -0
  1093. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/component.mjs +11 -0
  1094. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/index.mjs +122 -0
  1095. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/component.mjs +16 -0
  1096. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/index.mjs +119 -0
  1097. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/component.mjs +16 -0
  1098. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/index.mjs +104 -0
  1099. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/component.mjs +11 -0
  1100. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/index.mjs +43 -0
  1101. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/component.mjs +16 -0
  1102. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/index.mjs +619 -0
  1103. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/component.mjs +36 -0
  1104. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/index.mjs +642 -0
  1105. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/component.mjs +11 -0
  1106. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/index.mjs +20 -0
  1107. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/component.mjs +107 -0
  1108. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/index.mjs +829 -0
  1109. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/component.mjs +16 -0
  1110. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/index.mjs +1136 -0
  1111. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/component.mjs +38 -0
  1112. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/index.mjs +448 -0
  1113. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/component.mjs +11 -0
  1114. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/index.mjs +152 -0
  1115. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/component.mjs +16 -0
  1116. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/index.mjs +90 -0
  1117. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InputElement/index.mjs +186 -0
  1118. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/component.mjs +16 -0
  1119. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/index.mjs +124 -0
  1120. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/component.mjs +42 -0
  1121. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/index.mjs +74 -0
  1122. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/component.mjs +23 -0
  1123. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/index.mjs +174 -0
  1124. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/MenuItem/index.mjs +223 -0
  1125. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/component.mjs +11 -0
  1126. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/index.mjs +400 -0
  1127. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/component.mjs +11 -0
  1128. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/index.mjs +108 -0
  1129. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/component.mjs +32 -0
  1130. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/index.mjs +400 -0
  1131. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/component.mjs +11 -0
  1132. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/index.mjs +45 -0
  1133. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/component.mjs +11 -0
  1134. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/index.mjs +113 -0
  1135. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/component.mjs +21 -0
  1136. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/index.mjs +1085 -0
  1137. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/component.mjs +12 -0
  1138. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/index.mjs +333 -0
  1139. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/component.mjs +16 -0
  1140. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/index.mjs +34 -0
  1141. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/component.mjs +11 -0
  1142. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/index.mjs +50 -0
  1143. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/component.mjs +23 -0
  1144. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/index.mjs +98 -0
  1145. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/component.mjs +52 -0
  1146. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/index.mjs +1131 -0
  1147. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/component.mjs +33 -0
  1148. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/index.mjs +500 -0
  1149. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/component.mjs +11 -0
  1150. package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/index.mjs +366 -0
  1151. package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/search.mjs +194 -0
  1152. package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/utils.mjs +43 -0
  1153. package/node_modules/@playcanvas/pcui/react/dist/module/src/index.mjs +39 -0
  1154. package/node_modules/@playcanvas/pcui/react/package.json +18 -0
  1155. package/node_modules/@playcanvas/pcui/react/types/Math/color-value.d.ts +3 -0
  1156. package/node_modules/@playcanvas/pcui/react/types/binding/BindingBase/index.d.ts +178 -0
  1157. package/node_modules/@playcanvas/pcui/react/types/binding/BindingElementToObservers/index.d.ts +24 -0
  1158. package/node_modules/@playcanvas/pcui/react/types/binding/BindingObserversToElement/index.d.ts +40 -0
  1159. package/node_modules/@playcanvas/pcui/react/types/binding/BindingTwoWay/index.d.ts +54 -0
  1160. package/node_modules/@playcanvas/pcui/react/types/binding/index.d.ts +5 -0
  1161. package/node_modules/@playcanvas/pcui/react/types/class.d.ts +17 -0
  1162. package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/component.d.ts +9 -0
  1163. package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/index.d.ts +140 -0
  1164. package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/component.d.ts +9 -0
  1165. package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/index.d.ts +41 -0
  1166. package/node_modules/@playcanvas/pcui/react/types/components/Button/component.d.ts +11 -0
  1167. package/node_modules/@playcanvas/pcui/react/types/components/Button/index.d.ts +75 -0
  1168. package/node_modules/@playcanvas/pcui/react/types/components/Canvas/component.d.ts +11 -0
  1169. package/node_modules/@playcanvas/pcui/react/types/components/Canvas/index.d.ts +61 -0
  1170. package/node_modules/@playcanvas/pcui/react/types/components/Code/component.d.ts +9 -0
  1171. package/node_modules/@playcanvas/pcui/react/types/components/Code/index.d.ts +33 -0
  1172. package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/component.d.ts +11 -0
  1173. package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/index.d.ts +99 -0
  1174. package/node_modules/@playcanvas/pcui/react/types/components/Container/component.d.ts +15 -0
  1175. package/node_modules/@playcanvas/pcui/react/types/components/Container/index.d.ts +292 -0
  1176. package/node_modules/@playcanvas/pcui/react/types/components/Divider/component.d.ts +10 -0
  1177. package/node_modules/@playcanvas/pcui/react/types/components/Divider/index.d.ts +13 -0
  1178. package/node_modules/@playcanvas/pcui/react/types/components/Element/component.d.ts +23 -0
  1179. package/node_modules/@playcanvas/pcui/react/types/components/Element/index.d.ts +671 -0
  1180. package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/component.d.ts +11 -0
  1181. package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/index.d.ts +152 -0
  1182. package/node_modules/@playcanvas/pcui/react/types/components/GridView/component.d.ts +14 -0
  1183. package/node_modules/@playcanvas/pcui/react/types/components/GridView/index.d.ts +103 -0
  1184. package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/component.d.ts +9 -0
  1185. package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/index.d.ts +82 -0
  1186. package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/component.d.ts +11 -0
  1187. package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/index.d.ts +71 -0
  1188. package/node_modules/@playcanvas/pcui/react/types/components/InputElement/index.d.ts +84 -0
  1189. package/node_modules/@playcanvas/pcui/react/types/components/Label/component.d.ts +11 -0
  1190. package/node_modules/@playcanvas/pcui/react/types/components/Label/index.d.ts +85 -0
  1191. package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/component.d.ts +10 -0
  1192. package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/index.d.ts +62 -0
  1193. package/node_modules/@playcanvas/pcui/react/types/components/Menu/component.d.ts +14 -0
  1194. package/node_modules/@playcanvas/pcui/react/types/components/Menu/index.d.ts +70 -0
  1195. package/node_modules/@playcanvas/pcui/react/types/components/MenuItem/index.d.ts +139 -0
  1196. package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/component.d.ts +9 -0
  1197. package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/index.d.ts +173 -0
  1198. package/node_modules/@playcanvas/pcui/react/types/components/Overlay/component.d.ts +9 -0
  1199. package/node_modules/@playcanvas/pcui/react/types/components/Overlay/index.d.ts +53 -0
  1200. package/node_modules/@playcanvas/pcui/react/types/components/Panel/component.d.ts +16 -0
  1201. package/node_modules/@playcanvas/pcui/react/types/components/Panel/index.d.ts +178 -0
  1202. package/node_modules/@playcanvas/pcui/react/types/components/Progress/component.d.ts +9 -0
  1203. package/node_modules/@playcanvas/pcui/react/types/components/Progress/index.d.ts +33 -0
  1204. package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/component.d.ts +9 -0
  1205. package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/index.d.ts +33 -0
  1206. package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/component.d.ts +12 -0
  1207. package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/index.d.ts +278 -0
  1208. package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/component.d.ts +10 -0
  1209. package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/index.d.ts +133 -0
  1210. package/node_modules/@playcanvas/pcui/react/types/components/Spinner/component.d.ts +11 -0
  1211. package/node_modules/@playcanvas/pcui/react/types/components/Spinner/index.d.ts +27 -0
  1212. package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/component.d.ts +9 -0
  1213. package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/index.d.ts +24 -0
  1214. package/node_modules/@playcanvas/pcui/react/types/components/TextInput/component.d.ts +12 -0
  1215. package/node_modules/@playcanvas/pcui/react/types/components/TextInput/index.d.ts +40 -0
  1216. package/node_modules/@playcanvas/pcui/react/types/components/TreeView/component.d.ts +17 -0
  1217. package/node_modules/@playcanvas/pcui/react/types/components/TreeView/index.d.ts +359 -0
  1218. package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/component.d.ts +13 -0
  1219. package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/index.d.ts +224 -0
  1220. package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/component.d.ts +9 -0
  1221. package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/index.d.ts +176 -0
  1222. package/node_modules/@playcanvas/pcui/react/types/components/components.d.ts +30 -0
  1223. package/node_modules/@playcanvas/pcui/react/types/components/index.d.ts +32 -0
  1224. package/node_modules/@playcanvas/pcui/react/types/helpers/search.d.ts +31 -0
  1225. package/node_modules/@playcanvas/pcui/react/types/helpers/utils.d.ts +2 -0
  1226. package/node_modules/@playcanvas/pcui/react/types/index.d.ts +4 -0
  1227. package/node_modules/@playcanvas/pcui/styles/dist/index.mjs +11 -0
  1228. package/node_modules/@playcanvas/pcui/styles/package.json +17 -0
  1229. package/node_modules/@playcanvas/pcui/types/Math/color-value.d.ts +3 -0
  1230. package/node_modules/@playcanvas/pcui/types/binding/BindingBase/index.d.ts +178 -0
  1231. package/node_modules/@playcanvas/pcui/types/binding/BindingElementToObservers/index.d.ts +24 -0
  1232. package/node_modules/@playcanvas/pcui/types/binding/BindingObserversToElement/index.d.ts +40 -0
  1233. package/node_modules/@playcanvas/pcui/types/binding/BindingTwoWay/index.d.ts +54 -0
  1234. package/node_modules/@playcanvas/pcui/types/binding/index.d.ts +5 -0
  1235. package/node_modules/@playcanvas/pcui/types/class.d.ts +17 -0
  1236. package/node_modules/@playcanvas/pcui/types/components/ArrayInput/index.d.ts +140 -0
  1237. package/node_modules/@playcanvas/pcui/types/components/BooleanInput/index.d.ts +41 -0
  1238. package/node_modules/@playcanvas/pcui/types/components/Button/index.d.ts +75 -0
  1239. package/node_modules/@playcanvas/pcui/types/components/Canvas/index.d.ts +61 -0
  1240. package/node_modules/@playcanvas/pcui/types/components/Code/index.d.ts +33 -0
  1241. package/node_modules/@playcanvas/pcui/types/components/ColorPicker/index.d.ts +99 -0
  1242. package/node_modules/@playcanvas/pcui/types/components/Container/index.d.ts +292 -0
  1243. package/node_modules/@playcanvas/pcui/types/components/Divider/index.d.ts +13 -0
  1244. package/node_modules/@playcanvas/pcui/types/components/Element/index.d.ts +671 -0
  1245. package/node_modules/@playcanvas/pcui/types/components/GradientPicker/index.d.ts +152 -0
  1246. package/node_modules/@playcanvas/pcui/types/components/GridView/index.d.ts +103 -0
  1247. package/node_modules/@playcanvas/pcui/types/components/GridViewItem/index.d.ts +82 -0
  1248. package/node_modules/@playcanvas/pcui/types/components/InfoBox/index.d.ts +71 -0
  1249. package/node_modules/@playcanvas/pcui/types/components/InputElement/index.d.ts +84 -0
  1250. package/node_modules/@playcanvas/pcui/types/components/Label/index.d.ts +85 -0
  1251. package/node_modules/@playcanvas/pcui/types/components/LabelGroup/index.d.ts +62 -0
  1252. package/node_modules/@playcanvas/pcui/types/components/Menu/index.d.ts +70 -0
  1253. package/node_modules/@playcanvas/pcui/types/components/MenuItem/index.d.ts +139 -0
  1254. package/node_modules/@playcanvas/pcui/types/components/NumericInput/index.d.ts +173 -0
  1255. package/node_modules/@playcanvas/pcui/types/components/Overlay/index.d.ts +53 -0
  1256. package/node_modules/@playcanvas/pcui/types/components/Panel/index.d.ts +178 -0
  1257. package/node_modules/@playcanvas/pcui/types/components/Progress/index.d.ts +33 -0
  1258. package/node_modules/@playcanvas/pcui/types/components/RadioButton/index.d.ts +33 -0
  1259. package/node_modules/@playcanvas/pcui/types/components/SelectInput/index.d.ts +278 -0
  1260. package/node_modules/@playcanvas/pcui/types/components/SliderInput/index.d.ts +133 -0
  1261. package/node_modules/@playcanvas/pcui/types/components/Spinner/index.d.ts +27 -0
  1262. package/node_modules/@playcanvas/pcui/types/components/TextAreaInput/index.d.ts +24 -0
  1263. package/node_modules/@playcanvas/pcui/types/components/TextInput/index.d.ts +40 -0
  1264. package/node_modules/@playcanvas/pcui/types/components/TreeView/index.d.ts +359 -0
  1265. package/node_modules/@playcanvas/pcui/types/components/TreeViewItem/index.d.ts +224 -0
  1266. package/node_modules/@playcanvas/pcui/types/components/VectorInput/index.d.ts +176 -0
  1267. package/node_modules/@playcanvas/pcui/types/components/index.d.ts +32 -0
  1268. package/node_modules/@playcanvas/pcui/types/helpers/search.d.ts +31 -0
  1269. package/node_modules/@playcanvas/pcui/types/helpers/utils.d.ts +2 -0
  1270. package/node_modules/@playcanvas/pcui/types/index.d.ts +20 -0
  1271. package/node_modules/babylonjs-gltf2interface/babylon.glTF2Interface.d.ts +1655 -0
  1272. package/node_modules/babylonjs-gltf2interface/license.md +71 -0
  1273. package/node_modules/babylonjs-gltf2interface/package.json +26 -0
  1274. package/package.json +31 -19
  1275. package/dist/editor-plugin-hierarchy-command.d.ts +0 -19
  1276. package/dist/editor-plugin-hierarchy-command.d.ts.map +0 -1
  1277. package/dist/editor-plugin-hierarchy-command.js +0 -119
  1278. package/dist/editor-plugin-hierarchy-command.js.map +0 -1
  1279. package/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
  1280. package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  1281. package/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  1282. package/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  1283. package/node_modules/@babel/parser/lib/index.js.map +0 -1
  1284. package/node_modules/@babel/types/lib/asserts/assertNode.js.map +0 -1
  1285. package/node_modules/@babel/types/lib/asserts/generated/index.js.map +0 -1
  1286. package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +0 -1
  1287. package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +0 -1
  1288. package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +0 -1
  1289. package/node_modules/@babel/types/lib/builders/generated/index.js.map +0 -1
  1290. package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +0 -1
  1291. package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +0 -1
  1292. package/node_modules/@babel/types/lib/builders/productions.js.map +0 -1
  1293. package/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +0 -1
  1294. package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +0 -1
  1295. package/node_modules/@babel/types/lib/builders/validateNode.js.map +0 -1
  1296. package/node_modules/@babel/types/lib/clone/clone.js.map +0 -1
  1297. package/node_modules/@babel/types/lib/clone/cloneDeep.js.map +0 -1
  1298. package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +0 -1
  1299. package/node_modules/@babel/types/lib/clone/cloneNode.js.map +0 -1
  1300. package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +0 -1
  1301. package/node_modules/@babel/types/lib/comments/addComment.js.map +0 -1
  1302. package/node_modules/@babel/types/lib/comments/addComments.js.map +0 -1
  1303. package/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +0 -1
  1304. package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +0 -1
  1305. package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +0 -1
  1306. package/node_modules/@babel/types/lib/comments/inheritsComments.js.map +0 -1
  1307. package/node_modules/@babel/types/lib/comments/removeComments.js.map +0 -1
  1308. package/node_modules/@babel/types/lib/constants/generated/index.js.map +0 -1
  1309. package/node_modules/@babel/types/lib/constants/index.js.map +0 -1
  1310. package/node_modules/@babel/types/lib/converters/ensureBlock.js.map +0 -1
  1311. package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +0 -1
  1312. package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +0 -1
  1313. package/node_modules/@babel/types/lib/converters/toBlock.js.map +0 -1
  1314. package/node_modules/@babel/types/lib/converters/toComputedKey.js.map +0 -1
  1315. package/node_modules/@babel/types/lib/converters/toExpression.js.map +0 -1
  1316. package/node_modules/@babel/types/lib/converters/toIdentifier.js.map +0 -1
  1317. package/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +0 -1
  1318. package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +0 -1
  1319. package/node_modules/@babel/types/lib/converters/toStatement.js.map +0 -1
  1320. package/node_modules/@babel/types/lib/converters/valueToNode.js.map +0 -1
  1321. package/node_modules/@babel/types/lib/definitions/core.js.map +0 -1
  1322. package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +0 -1
  1323. package/node_modules/@babel/types/lib/definitions/experimental.js.map +0 -1
  1324. package/node_modules/@babel/types/lib/definitions/flow.js.map +0 -1
  1325. package/node_modules/@babel/types/lib/definitions/index.js.map +0 -1
  1326. package/node_modules/@babel/types/lib/definitions/jsx.js.map +0 -1
  1327. package/node_modules/@babel/types/lib/definitions/misc.js.map +0 -1
  1328. package/node_modules/@babel/types/lib/definitions/placeholders.js.map +0 -1
  1329. package/node_modules/@babel/types/lib/definitions/typescript.js.map +0 -1
  1330. package/node_modules/@babel/types/lib/definitions/utils.js.map +0 -1
  1331. package/node_modules/@babel/types/lib/index.js.map +0 -1
  1332. package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +0 -1
  1333. package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +0 -1
  1334. package/node_modules/@babel/types/lib/modifications/inherits.js.map +0 -1
  1335. package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +0 -1
  1336. package/node_modules/@babel/types/lib/modifications/removeProperties.js.map +0 -1
  1337. package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +0 -1
  1338. package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +0 -1
  1339. package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +0 -1
  1340. package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +0 -1
  1341. package/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +0 -1
  1342. package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +0 -1
  1343. package/node_modules/@babel/types/lib/traverse/traverse.js.map +0 -1
  1344. package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +0 -1
  1345. package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +0 -1
  1346. package/node_modules/@babel/types/lib/utils/inherit.js.map +0 -1
  1347. package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +0 -1
  1348. package/node_modules/@babel/types/lib/utils/shallowEqual.js.map +0 -1
  1349. package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +0 -1
  1350. package/node_modules/@babel/types/lib/validators/generated/index.js.map +0 -1
  1351. package/node_modules/@babel/types/lib/validators/is.js.map +0 -1
  1352. package/node_modules/@babel/types/lib/validators/isBinding.js.map +0 -1
  1353. package/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +0 -1
  1354. package/node_modules/@babel/types/lib/validators/isImmutable.js.map +0 -1
  1355. package/node_modules/@babel/types/lib/validators/isLet.js.map +0 -1
  1356. package/node_modules/@babel/types/lib/validators/isNode.js.map +0 -1
  1357. package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +0 -1
  1358. package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +0 -1
  1359. package/node_modules/@babel/types/lib/validators/isReferenced.js.map +0 -1
  1360. package/node_modules/@babel/types/lib/validators/isScope.js.map +0 -1
  1361. package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +0 -1
  1362. package/node_modules/@babel/types/lib/validators/isType.js.map +0 -1
  1363. package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +0 -1
  1364. package/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +0 -1
  1365. package/node_modules/@babel/types/lib/validators/isVar.js.map +0 -1
  1366. package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +0 -1
  1367. package/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +0 -1
  1368. package/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +0 -1
  1369. package/node_modules/@babel/types/lib/validators/validate.js.map +0 -1
  1370. package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +0 -37
  1371. package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +0 -1
  1372. package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +0 -451
  1373. package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +0 -1
  1374. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts +0 -49
  1375. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +0 -1
  1376. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +0 -627
  1377. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +0 -1
  1378. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts +0 -52
  1379. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts.map +0 -1
  1380. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +0 -450
  1381. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +0 -1
  1382. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts +0 -21
  1383. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts.map +0 -1
  1384. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js +0 -75
  1385. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +0 -1
  1386. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts +0 -7
  1387. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts.map +0 -1
  1388. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js +0 -186
  1389. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js.map +0 -1
  1390. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts +0 -5
  1391. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts.map +0 -1
  1392. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js +0 -98
  1393. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js.map +0 -1
  1394. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +0 -63
  1395. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +0 -1
  1396. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +0 -301
  1397. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +0 -1
@@ -0,0 +1,2026 @@
1
+ /**
2
+ * EventHandle manages the binding and unbinding of event listeners. It provides a convenient way
3
+ * to add, remove, and invoke event handlers associated with specific event names. Each EventHandle
4
+ * is linked to an 'owner' object, typically an instance of the Events class, allowing for elegant
5
+ * event management and chaining.
6
+ */
7
+ class EventHandle {
8
+ /**
9
+ * Creates an instance of EventHandle.
10
+ *
11
+ * @param owner - Owner
12
+ * @param name - Name
13
+ * @param fn - Callback function
14
+ */
15
+ constructor(owner, name, fn) {
16
+ this.owner = owner;
17
+ this.name = name;
18
+ this.fn = fn;
19
+ }
20
+ /**
21
+ * Unbinds the event handle from the owner, effectively removing the event listener. After
22
+ * calling this method, the event handle will no longer trigger the callback function when the
23
+ * event is emitted.
24
+ */
25
+ unbind() {
26
+ if (!this.owner) {
27
+ return;
28
+ }
29
+ this.owner.unbind(this.name, this.fn);
30
+ this.owner = null;
31
+ this.name = null;
32
+ this.fn = null;
33
+ }
34
+ /**
35
+ * Invokes the callback function associated with the event handle. This method directly
36
+ * triggers the event's callback without the event being emitted by the event system.
37
+ */
38
+ call(_events, ..._args) {
39
+ if (!this.fn) {
40
+ return;
41
+ }
42
+ this.fn.call(this.owner, arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]);
43
+ }
44
+ /**
45
+ * Registers a new event listener on the same owner as the EventHandle. This method allows
46
+ * chaining additional event listeners to the owner of this event handle.
47
+ *
48
+ * @param name - Name
49
+ * @param fn - Callback function
50
+ * @returns EventHandle
51
+ */
52
+ on(name, fn) {
53
+ return this.owner.on(name, fn);
54
+ }
55
+ }
56
+
57
+ /**
58
+ * Base class for event handling, providing mechanisms to register, emit, and unbind events. This
59
+ * class supports adding event listeners, emitting events with up to 8 arguments, and managing
60
+ * multiple emitters.
61
+ *
62
+ * @example
63
+ * // Create an instance of the Events class
64
+ * const events = new Events();
65
+ *
66
+ * // Register an event listener
67
+ * events.on('testEvent', (arg1, arg2) => {
68
+ * console.log('Event triggered with arguments:', arg1, arg2);
69
+ * });
70
+ *
71
+ * // Emit the event
72
+ * events.emit('testEvent', 'value1', 'value2');
73
+ *
74
+ * // Unbind the event listener
75
+ * events.unbind('testEvent');
76
+ */
77
+ class Events {
78
+ /**
79
+ * Creates a new Events instance.
80
+ */
81
+ constructor() {
82
+ // Make internal properties non-enumerable so they don't get serialized
83
+ // when the object is converted to JSON (e.g., for ShareDB sync)
84
+ const props = [
85
+ ['_additionalEmitters', []],
86
+ ['_events', {}],
87
+ ['_suspendEvents', false]
88
+ ];
89
+ for (const [name, value] of props) {
90
+ Object.defineProperty(this, name, { enumerable: false, writable: true, value });
91
+ }
92
+ }
93
+ /**
94
+ * Sets whether events are suspended. If true, the observer will not emit events when values
95
+ * are set.
96
+ */
97
+ set suspendEvents(value) {
98
+ this._suspendEvents = !!value;
99
+ }
100
+ /**
101
+ * Gets whether events are suspended.
102
+ */
103
+ get suspendEvents() {
104
+ return this._suspendEvents;
105
+ }
106
+ /**
107
+ * Registers an event listener for the specified event name. If the event is emitted,
108
+ * the callback function is executed with up to 8 arguments.
109
+ *
110
+ * @param name - The name of the event to listen for.
111
+ * @param fn - The callback function to be executed when the event is emitted.
112
+ * @returns An EventHandle object that can be used to unbind the event listener.
113
+ *
114
+ * @example
115
+ * // Register an event listener
116
+ * events.on('testEvent', (arg1, arg2) => {
117
+ * console.log('Event triggered with arguments:', arg1, arg2);
118
+ * });
119
+ *
120
+ * // Emit the event
121
+ * events.emit('testEvent', 'value1', 'value2');
122
+ */
123
+ on(name, fn) {
124
+ const events = this._events[name];
125
+ if (events === undefined) {
126
+ this._events[name] = [fn];
127
+ }
128
+ else {
129
+ if (events.indexOf(fn) === -1) {
130
+ events.push(fn);
131
+ }
132
+ }
133
+ return new EventHandle(this, name, fn);
134
+ }
135
+ /**
136
+ * Registers a one-time event listener for the specified event name. The callback function is
137
+ * executed the next time the event is emitted, and then automatically unbound.
138
+ *
139
+ * @param name - The name of the event to listen for.
140
+ * @param fn - The callback function to be executed once when the event is emitted.
141
+ * @returns An EventHandle object that can be used to unbind the event listener
142
+ * before it is triggered.
143
+ *
144
+ * @example
145
+ * // Register a one-time event listener
146
+ * events.once('testEvent', (arg1, arg2) => {
147
+ * console.log('Event triggered once with arguments:', arg1, arg2);
148
+ * });
149
+ *
150
+ * // Emit the event
151
+ * events.emit('testEvent', 'value1', 'value2'); // The callback will be called and then unbound.
152
+ *
153
+ * // Emit the event again
154
+ * events.emit('testEvent', 'value1', 'value2'); // The callback will not be called this time.
155
+ */
156
+ once(name, fn) {
157
+ const evt = this.on(name, (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) => {
158
+ fn.call(this, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
159
+ evt.unbind();
160
+ });
161
+ return evt;
162
+ }
163
+ /**
164
+ * Emits the specified event, executing all registered listeners for that event with the
165
+ * provided arguments. If events are suspended, the emit operation will be ignored.
166
+ *
167
+ * @param name - The name of the event to emit.
168
+ * @param arg0 - The first argument to pass to the event listeners.
169
+ * @param arg1 - The second argument to pass to the event listeners.
170
+ * @param arg2 - The third argument to pass to the event listeners.
171
+ * @param arg3 - The fourth argument to pass to the event listeners.
172
+ * @param arg4 - The fifth argument to pass to the event listeners.
173
+ * @param arg5 - The sixth argument to pass to the event listeners.
174
+ * @param arg6 - The seventh argument to pass to the event listeners.
175
+ * @param arg7 - The eighth argument to pass to the event listeners.
176
+ * @returns The current instance for chaining.
177
+ *
178
+ * @example
179
+ * // Register an event listener
180
+ * events.on('testEvent', (arg1, arg2) => {
181
+ * console.log('Event triggered with arguments:', arg1, arg2);
182
+ * });
183
+ *
184
+ * // Emit the event
185
+ * events.emit('testEvent', 'value1', 'value2');
186
+ *
187
+ * // Emit the event with more arguments
188
+ * events.emit('testEvent', 'value1', 'value2', 'value3', 'value4');
189
+ */
190
+ emit(name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
191
+ if (this._suspendEvents)
192
+ return this;
193
+ let events = this._events[name];
194
+ if (events && events.length) {
195
+ events = events.slice(0);
196
+ for (let i = 0; i < events.length; i++) {
197
+ if (!events[i]) {
198
+ continue;
199
+ }
200
+ try {
201
+ events[i].call(this, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
202
+ }
203
+ catch (ex) {
204
+ console.info('%c%s %c(event error)', 'color: #06f', name, 'color: #f00');
205
+ console.log(ex.stack);
206
+ }
207
+ }
208
+ }
209
+ if (this._additionalEmitters.length) {
210
+ const emitters = this._additionalEmitters.slice();
211
+ emitters.forEach((emitter) => {
212
+ emitter.emit(name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
213
+ });
214
+ }
215
+ return this;
216
+ }
217
+ /**
218
+ * Unbinds an event listener for the specified event name. If a callback function is provided,
219
+ * only that specific listener is removed. If no callback is provided, all listeners for the
220
+ * event are removed. If no event name is provided, all listeners for all events are removed.
221
+ *
222
+ * @param name - The name of the event to unbind. If not provided, all events are
223
+ * unbound.
224
+ * @param fn - The specific callback function to remove. If not provided, all
225
+ * listeners for the event are removed.
226
+ * @returns The current instance for chaining.
227
+ *
228
+ * @example
229
+ * // Register an event listener
230
+ * const callback = (arg1, arg2) => {
231
+ * console.log('Event triggered with arguments:', arg1, arg2);
232
+ * };
233
+ * events.on('testEvent', callback);
234
+ *
235
+ * // Unbind the specific event listener
236
+ * events.unbind('testEvent', callback);
237
+ *
238
+ * // Unbind all listeners for a specific event
239
+ * events.unbind('testEvent');
240
+ *
241
+ * // Unbind all listeners for all events
242
+ * events.unbind();
243
+ */
244
+ unbind(name, fn) {
245
+ if (name) {
246
+ const events = this._events[name];
247
+ if (!events) {
248
+ return this;
249
+ }
250
+ if (fn) {
251
+ const i = events.indexOf(fn);
252
+ if (i !== -1) {
253
+ if (events.length === 1) {
254
+ delete this._events[name];
255
+ }
256
+ else {
257
+ events.splice(i, 1);
258
+ }
259
+ }
260
+ }
261
+ else {
262
+ delete this._events[name];
263
+ }
264
+ }
265
+ else {
266
+ this._events = {};
267
+ }
268
+ return this;
269
+ }
270
+ /**
271
+ * Adds another emitter. Any events fired by this instance will also be fired on the additional
272
+ * emitter.
273
+ *
274
+ * @param emitter - The emitter
275
+ */
276
+ addEmitter(emitter) {
277
+ if (!this._additionalEmitters.includes(emitter)) {
278
+ this._additionalEmitters.push(emitter);
279
+ }
280
+ }
281
+ /**
282
+ * Removes emitter.
283
+ *
284
+ * @param emitter - The emitter
285
+ */
286
+ removeEmitter(emitter) {
287
+ const idx = this._additionalEmitters.indexOf(emitter);
288
+ if (idx !== -1) {
289
+ this._additionalEmitters.splice(idx, 1);
290
+ }
291
+ }
292
+ }
293
+
294
+ function __awaiter(thisArg, _arguments, P, generator) {
295
+ function adopt(value) {
296
+ return value instanceof P ? value : new P(function (resolve) {
297
+ resolve(value);
298
+ });
299
+ }
300
+ return new (P || (P = Promise))(function (resolve, reject) {
301
+ function fulfilled(value) {
302
+ try {
303
+ step(generator.next(value));
304
+ } catch (e) {
305
+ reject(e);
306
+ }
307
+ }
308
+ function rejected(value) {
309
+ try {
310
+ step(generator["throw"](value));
311
+ } catch (e) {
312
+ reject(e);
313
+ }
314
+ }
315
+ function step(result) {
316
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
317
+ }
318
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
319
+ });
320
+ }
321
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
322
+ var e = new Error(message);
323
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
324
+ };
325
+
326
+ /**
327
+ * Manages history actions for undo/redo operations. This class keeps track of actions that can be
328
+ * undone and redone, allowing for complex state management in applications such as editors, games,
329
+ * or any interactive applications where state changes need to be reversible.
330
+ *
331
+ * @example
332
+ * const history = new History();
333
+ *
334
+ * // Define an action
335
+ * const action = {
336
+ * name: 'draw',
337
+ * undo: () => { console.log('Undo draw'); },
338
+ * redo: () => { console.log('Redo draw'); }
339
+ * };
340
+ *
341
+ * // Add the action to history
342
+ * history.add(action);
343
+ *
344
+ * // Perform undo
345
+ * history.undo();
346
+ *
347
+ * // Perform redo
348
+ * history.redo();
349
+ */
350
+ class History extends Events {
351
+ constructor() {
352
+ super(...arguments);
353
+ this._executing = 0;
354
+ this._actions = [];
355
+ this._currentActionIndex = -1;
356
+ this._canUndo = false;
357
+ this._canRedo = false;
358
+ }
359
+ /**
360
+ * Adds a new history action to the stack. If the action has a combine flag and matches the
361
+ * current action's name, the redo function of the current action is updated. If actions have
362
+ * been undone before adding this new action, it removes all actions that come after the
363
+ * current action to maintain a consistent history.
364
+ *
365
+ * @param action - The action to add.
366
+ * @returns Returns `true` if the action is successfully added, `false` otherwise.
367
+ */
368
+ add(action) {
369
+ if (!action.name) {
370
+ console.error('Trying to add history action without name');
371
+ return false;
372
+ }
373
+ if (!action.undo) {
374
+ console.error('Trying to add history action without undo method', action.name);
375
+ return false;
376
+ }
377
+ if (!action.redo) {
378
+ console.error('Trying to add history action without redo method', action.name);
379
+ return false;
380
+ }
381
+ // If an action is added after some actions have been undone, remove all actions that come
382
+ // after the current action to ensure the history is consistent.
383
+ if (this._currentActionIndex !== this._actions.length - 1) {
384
+ this._actions = this._actions.slice(0, this._currentActionIndex + 1);
385
+ }
386
+ // If the combine flag is true and the current action has the same name, replace the redo
387
+ // function of the current action with the new action's redo function.
388
+ if (action.combine && this.currentAction && this.currentAction.name === action.name) {
389
+ this.currentAction.redo = action.redo;
390
+ }
391
+ else {
392
+ const length = this._actions.push(action);
393
+ this._currentActionIndex = length - 1;
394
+ }
395
+ this.emit('add', action.name);
396
+ this.canUndo = true;
397
+ this.canRedo = false;
398
+ return true;
399
+ }
400
+ /**
401
+ * Adds a new history action and immediately executes its redo function.
402
+ *
403
+ * @param action - The action.
404
+ * @returns A promise that resolves once the redo function has been executed.
405
+ */
406
+ addAndExecute(action) {
407
+ return __awaiter(this, void 0, void 0, function* () {
408
+ if (this.add(action)) {
409
+ // execute an action - don't allow history actions till it finishes
410
+ try {
411
+ this.executing++;
412
+ yield action.redo();
413
+ }
414
+ finally {
415
+ this.executing--;
416
+ }
417
+ }
418
+ });
419
+ }
420
+ /**
421
+ * Undoes the last history action. This method retrieves the current action from the history
422
+ * stack and executes the action's undo function.
423
+ *
424
+ * @returns A promise that resolves once the undo function has been executed.
425
+ */
426
+ undo() {
427
+ return __awaiter(this, void 0, void 0, function* () {
428
+ if (!this.canUndo) {
429
+ return;
430
+ }
431
+ const name = this.currentAction.name;
432
+ const undo = this.currentAction.undo;
433
+ this._currentActionIndex--;
434
+ this.emit('undo', name);
435
+ if (this._currentActionIndex < 0) {
436
+ this.canUndo = false;
437
+ }
438
+ this.canRedo = true;
439
+ // execute an undo action - don't allow history actions until it finishes
440
+ try {
441
+ this.executing++;
442
+ yield undo();
443
+ }
444
+ catch (ex) {
445
+ console.info('%c(History#undo)', 'color: #f00');
446
+ console.log(ex.stack);
447
+ }
448
+ finally {
449
+ this.executing--;
450
+ }
451
+ });
452
+ }
453
+ /**
454
+ * Redoes the next history action. This retrieves the next action from the history stack and
455
+ * executes the action's redo function.
456
+ *
457
+ * @returns A promise that resolves once the redo function has been executed.
458
+ */
459
+ redo() {
460
+ return __awaiter(this, void 0, void 0, function* () {
461
+ if (!this.canRedo) {
462
+ return;
463
+ }
464
+ this._currentActionIndex++;
465
+ const redo = this.currentAction.redo;
466
+ this.emit('redo', this.currentAction.name);
467
+ this.canUndo = true;
468
+ if (this._currentActionIndex === this._actions.length - 1) {
469
+ this.canRedo = false;
470
+ }
471
+ // execute redo action - don't allow history actions till it finishes
472
+ try {
473
+ this.executing++;
474
+ yield redo();
475
+ }
476
+ catch (ex) {
477
+ console.info('%c(History#redo)', 'color: #f00');
478
+ console.log(ex.stack);
479
+ }
480
+ finally {
481
+ this.executing--;
482
+ }
483
+ });
484
+ }
485
+ /**
486
+ * Clears all history actions.
487
+ */
488
+ clear() {
489
+ if (!this._actions.length)
490
+ return;
491
+ this._actions.length = 0;
492
+ this._currentActionIndex = -1;
493
+ this.canUndo = false;
494
+ this.canRedo = false;
495
+ }
496
+ /**
497
+ * The current history action.
498
+ */
499
+ get currentAction() {
500
+ return this._actions[this._currentActionIndex] || null;
501
+ }
502
+ /**
503
+ * The last action committed to the history.
504
+ */
505
+ get lastAction() {
506
+ return this._actions[this._actions.length - 1] || null;
507
+ }
508
+ /**
509
+ * Sets whether we can undo at this time.
510
+ */
511
+ set canUndo(value) {
512
+ if (this._canUndo === value)
513
+ return;
514
+ this._canUndo = value;
515
+ if (!this.executing) {
516
+ this.emit('canUndo', value);
517
+ }
518
+ }
519
+ /**
520
+ * Gets whether we can undo at this time.
521
+ */
522
+ get canUndo() {
523
+ return this._canUndo && !this.executing;
524
+ }
525
+ /**
526
+ * Sets whether we can redo at this time.
527
+ */
528
+ set canRedo(value) {
529
+ if (this._canRedo === value)
530
+ return;
531
+ this._canRedo = value;
532
+ if (!this.executing) {
533
+ this.emit('canRedo', value);
534
+ }
535
+ }
536
+ /**
537
+ * Gets whether we can redo at this time.
538
+ */
539
+ get canRedo() {
540
+ return this._canRedo && !this.executing;
541
+ }
542
+ /**
543
+ * Sets the number of async actions currently executing.
544
+ */
545
+ set executing(value) {
546
+ if (this._executing === value)
547
+ return;
548
+ this._executing = value;
549
+ if (this._executing) {
550
+ this.emit('canUndo', false);
551
+ this.emit('canRedo', false);
552
+ }
553
+ else {
554
+ this.emit('canUndo', this._canUndo);
555
+ this.emit('canRedo', this._canRedo);
556
+ }
557
+ }
558
+ /**
559
+ * Gets the number of async actions currently executing.
560
+ */
561
+ get executing() {
562
+ return this._executing;
563
+ }
564
+ }
565
+
566
+ /**
567
+ * Determines whether two arrays are deeply equal. Two arrays are considered equal if they have the
568
+ * same length and corresponding elements are equal. This function also supports nested arrays,
569
+ * comparing them recursively.
570
+ *
571
+ * @param a - The first array to compare.
572
+ * @param b - The second array to compare.
573
+ * @returns Returns `true` if the arrays are deeply equal, otherwise `false`.
574
+ *
575
+ * @example
576
+ * arrayEquals([1, 2, 3], [1, 2, 3]); // true
577
+ * arrayEquals([1, 2, 3], [3, 2, 1]); // false
578
+ * arrayEquals([1, [2, 3]], [1, [2, 3]]); // true
579
+ * arrayEquals([1, [2, 3]], [1, [3, 2]]); // false
580
+ * arrayEquals([1, 2, 3], null); // false
581
+ * arrayEquals(null, null); // false
582
+ */
583
+ const arrayEquals = (a, b) => {
584
+ if (!a || !b) {
585
+ return false;
586
+ }
587
+ const l = a.length;
588
+ if (l !== b.length) {
589
+ return false;
590
+ }
591
+ for (let i = 0; i < l; i++) {
592
+ if (a[i] instanceof Array && b[i] instanceof Array) {
593
+ if (!arrayEquals(a[i], b[i])) {
594
+ return false;
595
+ }
596
+ }
597
+ else if (a[i] !== b[i]) {
598
+ return false;
599
+ }
600
+ }
601
+ return true;
602
+ };
603
+ /**
604
+ * Creates a deep copy of an array, recursively copying any nested arrays.
605
+ * Non-array objects within the array are not deep copied (they remain references).
606
+ *
607
+ * @param arr - The array to copy.
608
+ * @returns A deep copy of the array with all nested arrays also copied.
609
+ *
610
+ * @example
611
+ * const original = [[1, 2], [3, 4]];
612
+ * const copy = deepCopyArray(original);
613
+ * copy[0][0] = 99;
614
+ * console.log(original[0][0]); // 1 (unchanged)
615
+ */
616
+ const deepCopyArray = (arr) => {
617
+ const copy = arr.slice(0);
618
+ for (let i = 0; i < copy.length; i++) {
619
+ if (copy[i] instanceof Array) {
620
+ copy[i] = deepCopyArray(copy[i]);
621
+ }
622
+ }
623
+ return copy;
624
+ };
625
+
626
+ /**
627
+ * The Observer class is used to observe and manage changes to an object. It allows for tracking
628
+ * modifications to nested properties, emitting events on changes, and maintaining state
629
+ * consistency. This is particularly useful in applications where state management and change
630
+ * tracking are critical, such as in data-driven interfaces or collaborative applications.
631
+ *
632
+ * @example
633
+ * const data = {
634
+ * name: 'John',
635
+ * age: 30,
636
+ * address: {
637
+ * city: 'New York',
638
+ * zip: '10001'
639
+ * }
640
+ * };
641
+ *
642
+ * const observer = new Observer(data);
643
+ *
644
+ * observer.on('name:set', (newValue, oldValue) => {
645
+ * console.log(`Name changed from ${oldValue} to ${newValue}`);
646
+ * });
647
+ *
648
+ * observer.set('name', 'Jane'); // Logs: Name changed from John to Jane
649
+ */
650
+ class Observer extends Events {
651
+ /**
652
+ * Creates a new Observer instance.
653
+ *
654
+ * @param data - The initial data to observe.
655
+ * @param options - Additional options for the observer.
656
+ */
657
+ constructor(data, options = {}) {
658
+ super();
659
+ // Make internal properties non-enumerable so they don't get serialized
660
+ // when the object is converted to JSON (e.g., for ShareDB sync)
661
+ const props = [
662
+ ['_destroyed', false],
663
+ ['_path', ''],
664
+ ['_keys', []],
665
+ ['_data', {}],
666
+ ['_pathsWithDuplicates', options.pathsWithDuplicates ? new Set(options.pathsWithDuplicates) : null],
667
+ ['_parent', options.parent || null],
668
+ ['_parentPath', options.parentPath || ''],
669
+ ['_parentField', options.parentField || null],
670
+ ['_parentKey', options.parentKey || null],
671
+ ['_latestFn', options.latestFn || null],
672
+ ['_silent', false]
673
+ ];
674
+ for (const [name, value] of props) {
675
+ Object.defineProperty(this, name, { enumerable: false, writable: true, value });
676
+ }
677
+ this.patch(data);
678
+ const propagate = function (evt) {
679
+ return function (path, arg1, arg2, arg3) {
680
+ if (!this._parent) {
681
+ return;
682
+ }
683
+ let key = this._parentKey;
684
+ if (!key && (this._parentField instanceof Array)) {
685
+ key = this._parentField.indexOf(this);
686
+ if (key === -1) {
687
+ return;
688
+ }
689
+ }
690
+ path = `${this._parentPath}.${key}.${path}`;
691
+ let state;
692
+ if (this._silent) {
693
+ state = this._parent.silence();
694
+ }
695
+ this._parent.emit(`${path}:${evt}`, arg1, arg2, arg3);
696
+ this._parent.emit(`*:${evt}`, path, arg1, arg2, arg3);
697
+ if (this._silent) {
698
+ this._parent.silenceRestore(state);
699
+ }
700
+ };
701
+ };
702
+ // propagate set
703
+ this.on('*:set', propagate('set'));
704
+ this.on('*:unset', propagate('unset'));
705
+ this.on('*:insert', propagate('insert'));
706
+ this.on('*:remove', propagate('remove'));
707
+ this.on('*:move', propagate('move'));
708
+ }
709
+ static _splitPath(path) {
710
+ const cache = Observer._splitPathsCache;
711
+ let result = cache[path];
712
+ if (!result) {
713
+ result = path.split('.');
714
+ cache[path] = result;
715
+ }
716
+ else {
717
+ result = result.slice();
718
+ }
719
+ return result;
720
+ }
721
+ silence() {
722
+ this._silent = true;
723
+ // history hook to prevent array values to be recorded
724
+ const historyState = this.history && this.history.enabled;
725
+ if (historyState) {
726
+ this.history.enabled = false;
727
+ }
728
+ // sync hook to prevent array values to be recorded as array root already did
729
+ const syncState = this.sync && this.sync.enabled;
730
+ if (syncState) {
731
+ this.sync.enabled = false;
732
+ }
733
+ return [historyState, syncState];
734
+ }
735
+ silenceRestore(state) {
736
+ this._silent = false;
737
+ if (state[0]) {
738
+ this.history.enabled = true;
739
+ }
740
+ if (state[1]) {
741
+ this.sync.enabled = true;
742
+ }
743
+ }
744
+ _prepare(target, key, value, silent = false, remote = false) {
745
+ let i;
746
+ let state;
747
+ const path = (target._path ? (`${target._path}.`) : '') + key;
748
+ const type = typeof value;
749
+ target._keys.push(key);
750
+ if (type === 'object' && (value instanceof Array)) {
751
+ target._data[key] = value.slice(0);
752
+ for (i = 0; i < target._data[key].length; i++) {
753
+ if (typeof target._data[key][i] === 'object' && target._data[key][i] !== null) {
754
+ if (target._data[key][i] instanceof Array) {
755
+ target._data[key][i] = deepCopyArray(target._data[key][i]);
756
+ }
757
+ else {
758
+ target._data[key][i] = new Observer(target._data[key][i], {
759
+ parent: this,
760
+ parentPath: path,
761
+ parentField: target._data[key],
762
+ parentKey: null
763
+ });
764
+ }
765
+ }
766
+ else {
767
+ state = this.silence();
768
+ this.emit(`${path}.${i}:set`, target._data[key][i], null, remote);
769
+ this.emit('*:set', `${path}.${i}`, target._data[key][i], null, remote);
770
+ this.silenceRestore(state);
771
+ }
772
+ }
773
+ if (silent) {
774
+ state = this.silence();
775
+ }
776
+ this.emit(`${path}:set`, target._data[key], null, remote);
777
+ this.emit('*:set', path, target._data[key], null, remote);
778
+ if (silent) {
779
+ this.silenceRestore(state);
780
+ }
781
+ }
782
+ else if (type === 'object' && (value instanceof Object)) {
783
+ if (typeof target._data[key] !== 'object') {
784
+ target._data[key] = {
785
+ _path: path,
786
+ _keys: [],
787
+ _data: {}
788
+ };
789
+ }
790
+ for (i in value) {
791
+ if (typeof value[i] === 'object') {
792
+ this._prepare(target._data[key], i, value[i], true, remote);
793
+ }
794
+ else {
795
+ state = this.silence();
796
+ target._data[key]._data[i] = value[i];
797
+ target._data[key]._keys.push(i);
798
+ this.emit(`${path}.${i}:set`, value[i], null, remote);
799
+ this.emit('*:set', `${path}.${i}`, value[i], null, remote);
800
+ this.silenceRestore(state);
801
+ }
802
+ }
803
+ if (silent) {
804
+ state = this.silence();
805
+ }
806
+ // passing undefined as valueOld here
807
+ // but we should get the old value to be consistent
808
+ this.emit(`${path}:set`, value, undefined, remote);
809
+ this.emit('*:set', path, value, undefined, remote);
810
+ if (silent) {
811
+ this.silenceRestore(state);
812
+ }
813
+ }
814
+ else {
815
+ if (silent) {
816
+ state = this.silence();
817
+ }
818
+ target._data[key] = value;
819
+ this.emit(`${path}:set`, value, undefined, remote);
820
+ this.emit('*:set', path, value, undefined, remote);
821
+ if (silent) {
822
+ this.silenceRestore(state);
823
+ }
824
+ }
825
+ return true;
826
+ }
827
+ /**
828
+ * @param path - Path to the property in the object.
829
+ * @param value - Value to set.
830
+ * @param silent - If true, the change will not be recorded in history.
831
+ * @param remote - State value passed to the set event used to disable remote event emission.
832
+ * @param force - If true, the value will be set even if it is the same as the current value.
833
+ * @returns Returns true if the value was successfully set and false otherwise.
834
+ */
835
+ set(path, value, silent = false, remote = false, force = false) {
836
+ let i;
837
+ let valueOld;
838
+ let keys = Observer._splitPath(path);
839
+ const length = keys.length;
840
+ const key = keys[length - 1];
841
+ let node = this;
842
+ let nodePath = '';
843
+ let obj = this;
844
+ let state;
845
+ for (i = 0; i < length - 1; i++) {
846
+ if (node instanceof Array) {
847
+ node = node[keys[i]];
848
+ if (node instanceof Observer) {
849
+ path = keys.slice(i + 1).join('.');
850
+ obj = node;
851
+ }
852
+ }
853
+ else {
854
+ if (i < length && typeof node._data[keys[i]] !== 'object') {
855
+ if (node._data[keys[i]]) {
856
+ obj.unset((node._path ? `${node._path}.` : '') + keys[i]);
857
+ }
858
+ node._data[keys[i]] = {
859
+ _path: path,
860
+ _keys: [],
861
+ _data: {}
862
+ };
863
+ node._keys.push(keys[i]);
864
+ }
865
+ if (i === length - 1 && node._path) {
866
+ nodePath = `${node._path}.${keys[i]}`;
867
+ }
868
+ node = node._data[keys[i]];
869
+ }
870
+ }
871
+ if (node instanceof Array) {
872
+ const ind = parseInt(key, 10);
873
+ if (node[ind] === value && !force) {
874
+ return false;
875
+ }
876
+ valueOld = node[ind];
877
+ if (valueOld instanceof Observer) {
878
+ valueOld = valueOld.json();
879
+ }
880
+ else {
881
+ valueOld = obj.json(valueOld);
882
+ }
883
+ node[ind] = value;
884
+ if (value instanceof Observer) {
885
+ value._parent = obj;
886
+ value._parentPath = nodePath;
887
+ value._parentField = node;
888
+ value._parentKey = null;
889
+ }
890
+ if (silent) {
891
+ state = obj.silence();
892
+ }
893
+ obj.emit(`${path}:set`, value, valueOld, remote);
894
+ obj.emit('*:set', path, value, valueOld, remote);
895
+ if (silent) {
896
+ obj.silenceRestore(state);
897
+ }
898
+ return true;
899
+ }
900
+ else if (node._data && !node._data.hasOwnProperty(key)) {
901
+ if (typeof value === 'object') {
902
+ return obj._prepare(node, key, value, false, remote);
903
+ }
904
+ node._data[key] = value;
905
+ node._keys.push(key);
906
+ if (silent) {
907
+ state = obj.silence();
908
+ }
909
+ obj.emit(`${path}:set`, value, null, remote);
910
+ obj.emit('*:set', path, value, null, remote);
911
+ if (silent) {
912
+ obj.silenceRestore(state);
913
+ }
914
+ return true;
915
+ }
916
+ if (typeof value === 'object' && (value instanceof Array)) {
917
+ if (arrayEquals(value, node._data[key]) && !force) {
918
+ return false;
919
+ }
920
+ valueOld = node._data[key];
921
+ if (!(valueOld instanceof Observer)) {
922
+ valueOld = obj.json(valueOld);
923
+ }
924
+ if (node._data[key] && node._data[key].length === value.length) {
925
+ state = obj.silence();
926
+ // handle new array instance
927
+ if (value.length === 0) {
928
+ node._data[key] = value;
929
+ }
930
+ for (i = 0; i < node._data[key].length; i++) {
931
+ if (node._data[key][i] instanceof Observer) {
932
+ node._data[key][i].patch(value[i], true);
933
+ }
934
+ else if (node._data[key][i] !== value[i]) {
935
+ node._data[key][i] = value[i];
936
+ obj.emit(`${path}.${i}:set`, node._data[key][i], valueOld && valueOld[i] || null, remote);
937
+ obj.emit('*:set', `${path}.${i}`, node._data[key][i], valueOld && valueOld[i] || null, remote);
938
+ }
939
+ }
940
+ obj.silenceRestore(state);
941
+ }
942
+ else {
943
+ node._data[key] = [];
944
+ value.forEach((val) => {
945
+ this._doInsert(node, key, val, undefined, true);
946
+ });
947
+ state = obj.silence();
948
+ for (i = 0; i < node._data[key].length; i++) {
949
+ obj.emit(`${path}.${i}:set`, node._data[key][i], valueOld && valueOld[i] || null, remote);
950
+ obj.emit('*:set', `${path}.${i}`, node._data[key][i], valueOld && valueOld[i] || null, remote);
951
+ }
952
+ obj.silenceRestore(state);
953
+ }
954
+ if (silent) {
955
+ state = obj.silence();
956
+ }
957
+ obj.emit(`${path}:set`, value, valueOld, remote);
958
+ obj.emit('*:set', path, value, valueOld, remote);
959
+ if (silent) {
960
+ obj.silenceRestore(state);
961
+ }
962
+ return true;
963
+ }
964
+ else if (typeof value === 'object' && (value instanceof Object)) {
965
+ let changed = false;
966
+ valueOld = node._data[key];
967
+ if (!(valueOld instanceof Observer)) {
968
+ valueOld = obj.json(valueOld);
969
+ }
970
+ keys = Object.keys(value);
971
+ if (!node._data[key] || !node._data[key]._data) {
972
+ if (node._data[key]) {
973
+ obj.unset((node._path ? `${node._path}.` : '') + key);
974
+ }
975
+ else {
976
+ changed = true;
977
+ }
978
+ node._data[key] = {
979
+ _path: path,
980
+ _keys: [],
981
+ _data: {}
982
+ };
983
+ }
984
+ let c;
985
+ for (const n in node._data[key]._data) {
986
+ if (!value.hasOwnProperty(n)) {
987
+ c = obj.unset(`${path}.${n}`, true);
988
+ if (c)
989
+ changed = true;
990
+ }
991
+ else if (node._data[key]._data.hasOwnProperty(n)) {
992
+ if (!obj._equals(node._data[key]._data[n], value[n])) {
993
+ c = obj.set(`${path}.${n}`, value[n], true);
994
+ if (c)
995
+ changed = true;
996
+ }
997
+ }
998
+ else {
999
+ c = obj._prepare(node._data[key], n, value[n], true, remote);
1000
+ if (c)
1001
+ changed = true;
1002
+ }
1003
+ }
1004
+ for (i = 0; i < keys.length; i++) {
1005
+ if (value[keys[i]] === undefined && node._data[key]._data.hasOwnProperty(keys[i])) {
1006
+ c = obj.unset(`${path}.${keys[i]}`, true);
1007
+ if (c)
1008
+ changed = true;
1009
+ }
1010
+ else if (typeof value[keys[i]] === 'object') {
1011
+ if (node._data[key]._data.hasOwnProperty(keys[i])) {
1012
+ c = obj.set(`${path}.${keys[i]}`, value[keys[i]], true);
1013
+ if (c)
1014
+ changed = true;
1015
+ }
1016
+ else {
1017
+ c = obj._prepare(node._data[key], keys[i], value[keys[i]], true, remote);
1018
+ if (c)
1019
+ changed = true;
1020
+ }
1021
+ }
1022
+ else if (!obj._equals(node._data[key]._data[keys[i]], value[keys[i]])) {
1023
+ if (typeof value[keys[i]] === 'object') {
1024
+ c = obj.set(`${node._data[key]._path}.${keys[i]}`, value[keys[i]], true);
1025
+ if (c)
1026
+ changed = true;
1027
+ }
1028
+ else if (node._data[key]._data[keys[i]] !== value[keys[i]]) {
1029
+ changed = true;
1030
+ if (node._data[key]._keys.indexOf(keys[i]) === -1) {
1031
+ node._data[key]._keys.push(keys[i]);
1032
+ }
1033
+ node._data[key]._data[keys[i]] = value[keys[i]];
1034
+ state = obj.silence();
1035
+ obj.emit(`${node._data[key]._path}.${keys[i]}:set`, node._data[key]._data[keys[i]], null, remote);
1036
+ obj.emit('*:set', `${node._data[key]._path}.${keys[i]}`, node._data[key]._data[keys[i]], null, remote);
1037
+ obj.silenceRestore(state);
1038
+ }
1039
+ }
1040
+ }
1041
+ if (changed) {
1042
+ if (silent) {
1043
+ state = obj.silence();
1044
+ }
1045
+ const val = obj.json(node._data[key]);
1046
+ obj.emit(`${node._data[key]._path}:set`, val, valueOld, remote);
1047
+ obj.emit('*:set', node._data[key]._path, val, valueOld, remote);
1048
+ if (silent) {
1049
+ obj.silenceRestore(state);
1050
+ }
1051
+ return true;
1052
+ }
1053
+ return false;
1054
+ }
1055
+ let data;
1056
+ if (!node.hasOwnProperty('_data') && node.hasOwnProperty(key)) {
1057
+ data = node;
1058
+ }
1059
+ else {
1060
+ data = node._data;
1061
+ }
1062
+ if (data[key] === value && !force) {
1063
+ return false;
1064
+ }
1065
+ if (silent) {
1066
+ state = obj.silence();
1067
+ }
1068
+ valueOld = data[key];
1069
+ if (!(valueOld instanceof Observer)) {
1070
+ valueOld = obj.json(valueOld);
1071
+ }
1072
+ data[key] = value;
1073
+ obj.emit(`${path}:set`, value, valueOld, remote);
1074
+ obj.emit('*:set', path, value, valueOld, remote);
1075
+ if (silent) {
1076
+ obj.silenceRestore(state);
1077
+ }
1078
+ return true;
1079
+ }
1080
+ /**
1081
+ * Query whether the object has the specified property.
1082
+ *
1083
+ * @param path - Path to the value.
1084
+ * @returns Returns true if the value is present and false otherwise.
1085
+ */
1086
+ has(path) {
1087
+ const keys = Observer._splitPath(path);
1088
+ let node = this;
1089
+ for (let i = 0, len = keys.length; i < len; i++) {
1090
+ // eslint-disable-next-line eqeqeq
1091
+ if (node == undefined) {
1092
+ return undefined;
1093
+ }
1094
+ if (node._data) {
1095
+ node = node._data[keys[i]];
1096
+ }
1097
+ else {
1098
+ node = node[keys[i]];
1099
+ }
1100
+ }
1101
+ return node !== undefined;
1102
+ }
1103
+ /**
1104
+ * @param path - Path to the value.
1105
+ * @param raw - Retrieve the observer object without converting it to JSON.
1106
+ * @returns The value at the specified path.
1107
+ */
1108
+ get(path, raw = false) {
1109
+ const keys = Observer._splitPath(path);
1110
+ let node = this;
1111
+ for (let i = 0; i < keys.length; i++) {
1112
+ // eslint-disable-next-line eqeqeq
1113
+ if (node == undefined) {
1114
+ return undefined;
1115
+ }
1116
+ if (node._data) {
1117
+ node = node._data[keys[i]];
1118
+ }
1119
+ else {
1120
+ node = node[keys[i]];
1121
+ }
1122
+ }
1123
+ if (raw) {
1124
+ return node;
1125
+ }
1126
+ if (node == null) {
1127
+ return null;
1128
+ }
1129
+ return this.json(node);
1130
+ }
1131
+ getRaw(path) {
1132
+ return this.get(path, true);
1133
+ }
1134
+ _equals(a, b) {
1135
+ if (a === b) {
1136
+ return true;
1137
+ }
1138
+ else if (a instanceof Array && b instanceof Array && arrayEquals(a, b)) {
1139
+ return true;
1140
+ }
1141
+ return false;
1142
+ }
1143
+ /**
1144
+ * @param path - Path to the value.
1145
+ * @param silent - If true, the change will not be recorded in history.
1146
+ * @param remote - State value passed to the set event used to disable remote event emission.
1147
+ * @returns Returns true if the value was successfully unset and false otherwise.
1148
+ */
1149
+ unset(path, silent = false, remote = false) {
1150
+ let i;
1151
+ const keys = Observer._splitPath(path);
1152
+ const key = keys[keys.length - 1];
1153
+ let node = this;
1154
+ let obj = this;
1155
+ for (i = 0; i < keys.length - 1; i++) {
1156
+ if (node instanceof Array) {
1157
+ node = node[keys[i]];
1158
+ if (node instanceof Observer) {
1159
+ path = keys.slice(i + 1).join('.');
1160
+ obj = node;
1161
+ }
1162
+ }
1163
+ else {
1164
+ node = node._data[keys[i]];
1165
+ }
1166
+ }
1167
+ if (!node._data || !node._data.hasOwnProperty(key)) {
1168
+ return false;
1169
+ }
1170
+ let valueOld = node._data[key];
1171
+ if (!(valueOld instanceof Observer)) {
1172
+ valueOld = obj.json(valueOld);
1173
+ }
1174
+ // recursive
1175
+ if (node._data[key] && node._data[key]._data) {
1176
+ // do this in reverse order because node._data[key]._keys gets
1177
+ // modified as we loop
1178
+ for (i = node._data[key]._keys.length - 1; i >= 0; i--) {
1179
+ obj.unset(`${path}.${node._data[key]._keys[i]}`, true);
1180
+ }
1181
+ }
1182
+ node._keys.splice(node._keys.indexOf(key), 1);
1183
+ delete node._data[key];
1184
+ let state;
1185
+ if (silent) {
1186
+ state = obj.silence();
1187
+ }
1188
+ obj.emit(`${path}:unset`, valueOld, remote);
1189
+ obj.emit('*:unset', path, valueOld, remote);
1190
+ if (silent) {
1191
+ obj.silenceRestore(state);
1192
+ }
1193
+ return true;
1194
+ }
1195
+ /**
1196
+ * @param path - Path to the value.
1197
+ * @param ind - Index of the value.
1198
+ * @param silent - If true, the remove event will not be emitted.
1199
+ * @param remote - State value passed to the set event used to disable remote event emission.
1200
+ * @returns Returns true if the value was successfully removed and false otherwise.
1201
+ */
1202
+ remove(path, ind, silent = false, remote = false) {
1203
+ const keys = Observer._splitPath(path);
1204
+ const key = keys[keys.length - 1];
1205
+ let node = this;
1206
+ let obj = this;
1207
+ for (let i = 0; i < keys.length - 1; i++) {
1208
+ if (node instanceof Array) {
1209
+ node = node[parseInt(keys[i], 10)];
1210
+ if (node instanceof Observer) {
1211
+ path = keys.slice(i + 1).join('.');
1212
+ obj = node;
1213
+ }
1214
+ }
1215
+ else if (node._data && node._data.hasOwnProperty(keys[i])) {
1216
+ node = node._data[keys[i]];
1217
+ }
1218
+ else {
1219
+ return false;
1220
+ }
1221
+ }
1222
+ if (!node._data || !node._data.hasOwnProperty(key) || !(node._data[key] instanceof Array)) {
1223
+ return false;
1224
+ }
1225
+ const arr = node._data[key];
1226
+ if (arr.length < ind) {
1227
+ return false;
1228
+ }
1229
+ let value = arr[ind];
1230
+ if (value instanceof Observer) {
1231
+ value._parent = null;
1232
+ }
1233
+ else {
1234
+ value = obj.json(value);
1235
+ }
1236
+ arr.splice(ind, 1);
1237
+ let state;
1238
+ if (silent) {
1239
+ state = obj.silence();
1240
+ }
1241
+ obj.emit(`${path}:remove`, value, ind, remote);
1242
+ obj.emit('*:remove', path, value, ind, remote);
1243
+ if (silent) {
1244
+ obj.silenceRestore(state);
1245
+ }
1246
+ return true;
1247
+ }
1248
+ /**
1249
+ * @param path - Path to the value.
1250
+ * @param value - Value to remove.
1251
+ * @param silent - If true, the remove event will not be emitted.
1252
+ * @param remote - State value passed to the set event used to disable remote event emission.
1253
+ * @returns Returns true if the value was successfully removed and false otherwise.
1254
+ */
1255
+ removeValue(path, value, silent = false, remote = false) {
1256
+ const keys = Observer._splitPath(path);
1257
+ const key = keys[keys.length - 1];
1258
+ let node = this;
1259
+ let obj = this;
1260
+ for (let i = 0; i < keys.length - 1; i++) {
1261
+ if (node instanceof Array) {
1262
+ node = node[parseInt(keys[i], 10)];
1263
+ if (node instanceof Observer) {
1264
+ path = keys.slice(i + 1).join('.');
1265
+ obj = node;
1266
+ }
1267
+ }
1268
+ else if (node._data && node._data.hasOwnProperty(keys[i])) {
1269
+ node = node._data[keys[i]];
1270
+ }
1271
+ else {
1272
+ return;
1273
+ }
1274
+ }
1275
+ if (!node._data || !node._data.hasOwnProperty(key) || !(node._data[key] instanceof Array)) {
1276
+ return;
1277
+ }
1278
+ const arr = node._data[key];
1279
+ const ind = arr.indexOf(value);
1280
+ if (ind === -1) {
1281
+ return;
1282
+ }
1283
+ if (arr.length < ind) {
1284
+ return;
1285
+ }
1286
+ value = arr[ind];
1287
+ if (value instanceof Observer) {
1288
+ value._parent = null;
1289
+ }
1290
+ else {
1291
+ value = obj.json(value);
1292
+ }
1293
+ arr.splice(ind, 1);
1294
+ let state;
1295
+ if (silent) {
1296
+ state = obj.silence();
1297
+ }
1298
+ obj.emit(`${path}:remove`, value, ind, remote);
1299
+ obj.emit('*:remove', path, value, ind, remote);
1300
+ if (silent) {
1301
+ obj.silenceRestore(state);
1302
+ }
1303
+ return true;
1304
+ }
1305
+ /**
1306
+ * @param path - Path to the value.
1307
+ * @param value - Value to insert.
1308
+ * @param ind - Index to insert the value at.
1309
+ * @param silent - If true, the insert event will not be emitted.
1310
+ * @param remote - State value passed to the set event used to disable remote event emission.
1311
+ * @returns Returns true if the value was successfully inserted and false otherwise.
1312
+ */
1313
+ insert(path, value, ind, silent = false, remote = false) {
1314
+ const keys = Observer._splitPath(path);
1315
+ const key = keys[keys.length - 1];
1316
+ let node = this;
1317
+ let obj = this;
1318
+ for (let i = 0; i < keys.length - 1; i++) {
1319
+ if (node instanceof Array) {
1320
+ node = node[parseInt(keys[i], 10)];
1321
+ if (node instanceof Observer) {
1322
+ path = keys.slice(i + 1).join('.');
1323
+ obj = node;
1324
+ }
1325
+ }
1326
+ else if (node._data && node._data.hasOwnProperty(keys[i])) {
1327
+ node = node._data[keys[i]];
1328
+ }
1329
+ else {
1330
+ return;
1331
+ }
1332
+ }
1333
+ if (!node._data || !node._data.hasOwnProperty(key) || !(node._data[key] instanceof Array)) {
1334
+ return;
1335
+ }
1336
+ const arr = node._data[key];
1337
+ value = obj._doInsert(node, key, value, ind);
1338
+ if (ind === undefined) {
1339
+ ind = arr.length - 1;
1340
+ }
1341
+ let state;
1342
+ if (silent) {
1343
+ state = obj.silence();
1344
+ }
1345
+ obj.emit(`${path}:insert`, value, ind, remote);
1346
+ obj.emit('*:insert', path, value, ind, remote);
1347
+ if (silent) {
1348
+ obj.silenceRestore(state);
1349
+ }
1350
+ return true;
1351
+ }
1352
+ _doInsert(node, key, value, ind, allowDuplicates = false) {
1353
+ var _a;
1354
+ const arr = node._data[key];
1355
+ if (typeof value === 'object' && !(value instanceof Observer) && value !== null) {
1356
+ if (value instanceof Array) {
1357
+ value = value.slice(0);
1358
+ }
1359
+ else {
1360
+ value = new Observer(value);
1361
+ }
1362
+ }
1363
+ const path = node._path ? `${node._path}.${key}` : key;
1364
+ if (value !== null && !allowDuplicates && !((_a = this._pathsWithDuplicates) === null || _a === void 0 ? void 0 : _a.has(path))) {
1365
+ if (arr.indexOf(value) !== -1) {
1366
+ return;
1367
+ }
1368
+ }
1369
+ if (ind === undefined) {
1370
+ arr.push(value);
1371
+ }
1372
+ else {
1373
+ arr.splice(ind, 0, value);
1374
+ }
1375
+ if (value instanceof Observer) {
1376
+ value._parent = this;
1377
+ value._parentPath = path;
1378
+ value._parentField = arr;
1379
+ value._parentKey = null;
1380
+ }
1381
+ else {
1382
+ value = this.json(value);
1383
+ }
1384
+ return value;
1385
+ }
1386
+ /**
1387
+ * @param path - Path to the value.
1388
+ * @param indOld - Index of the value to move.
1389
+ * @param indNew - Index to move the value to.
1390
+ * @param silent - If true, the move event will not be emitted.
1391
+ * @param remote - State value passed to the set event used to disable remote event emission.
1392
+ * @returns Returns true if the value was successfully moved and false otherwise.
1393
+ */
1394
+ move(path, indOld, indNew, silent = false, remote = false) {
1395
+ const keys = Observer._splitPath(path);
1396
+ const key = keys[keys.length - 1];
1397
+ let node = this;
1398
+ let obj = this;
1399
+ for (let i = 0; i < keys.length - 1; i++) {
1400
+ if (node instanceof Array) {
1401
+ node = node[parseInt(keys[i], 10)];
1402
+ if (node instanceof Observer) {
1403
+ path = keys.slice(i + 1).join('.');
1404
+ obj = node;
1405
+ }
1406
+ }
1407
+ else if (node._data && node._data.hasOwnProperty(keys[i])) {
1408
+ node = node._data[keys[i]];
1409
+ }
1410
+ else {
1411
+ return;
1412
+ }
1413
+ }
1414
+ if (!node._data || !node._data.hasOwnProperty(key) || !(node._data[key] instanceof Array)) {
1415
+ return;
1416
+ }
1417
+ const arr = node._data[key];
1418
+ if (arr.length < indOld || arr.length < indNew || indOld === indNew) {
1419
+ return;
1420
+ }
1421
+ let value = arr[indOld];
1422
+ arr.splice(indOld, 1);
1423
+ if (indNew === -1) {
1424
+ indNew = arr.length;
1425
+ }
1426
+ arr.splice(indNew, 0, value);
1427
+ if (!(value instanceof Observer)) {
1428
+ value = obj.json(value);
1429
+ }
1430
+ let state;
1431
+ if (silent) {
1432
+ state = obj.silence();
1433
+ }
1434
+ obj.emit(`${path}:move`, value, indNew, indOld, remote);
1435
+ obj.emit('*:move', path, value, indNew, indOld, remote);
1436
+ if (silent) {
1437
+ obj.silenceRestore(state);
1438
+ }
1439
+ return true;
1440
+ }
1441
+ patch(data, removeMissingKeys = false) {
1442
+ if (typeof data !== 'object') {
1443
+ return;
1444
+ }
1445
+ for (const key in data) {
1446
+ if (typeof data[key] === 'object' && !this._data.hasOwnProperty(key)) {
1447
+ this._prepare(this, key, data[key]);
1448
+ }
1449
+ else if (this._data[key] !== data[key]) {
1450
+ this.set(key, data[key]);
1451
+ }
1452
+ }
1453
+ if (removeMissingKeys) {
1454
+ for (const key in this._data) {
1455
+ if (!data.hasOwnProperty(key)) {
1456
+ this.unset(key);
1457
+ }
1458
+ }
1459
+ }
1460
+ }
1461
+ /**
1462
+ * @param target - The object to JSONify.
1463
+ * @returns The current state of the object tracked by the observer.
1464
+ */
1465
+ json(target) {
1466
+ let key, n;
1467
+ let obj = {};
1468
+ const node = target === undefined ? this : target;
1469
+ let len, nlen;
1470
+ if (node instanceof Object && node._keys) {
1471
+ len = node._keys.length;
1472
+ for (let i = 0; i < len; i++) {
1473
+ key = node._keys[i];
1474
+ const value = node._data[key];
1475
+ const type = typeof value;
1476
+ if (type === 'object' && (value instanceof Array)) {
1477
+ obj[key] = value.slice(0);
1478
+ nlen = obj[key].length;
1479
+ for (n = 0; n < nlen; n++) {
1480
+ if (typeof obj[key][n] === 'object') {
1481
+ obj[key][n] = this.json(obj[key][n]);
1482
+ }
1483
+ }
1484
+ }
1485
+ else if (type === 'object' && (value instanceof Object)) {
1486
+ obj[key] = this.json(value);
1487
+ }
1488
+ else {
1489
+ obj[key] = value;
1490
+ }
1491
+ }
1492
+ }
1493
+ else {
1494
+ if (node === null) {
1495
+ return null;
1496
+ }
1497
+ else if (typeof node === 'object' && (node instanceof Array)) {
1498
+ obj = node.slice(0);
1499
+ len = obj.length;
1500
+ for (n = 0; n < len; n++) {
1501
+ obj[n] = this.json(obj[n]);
1502
+ }
1503
+ }
1504
+ else if (typeof node === 'object') {
1505
+ for (key in node) {
1506
+ if (node.hasOwnProperty(key)) {
1507
+ obj[key] = node[key];
1508
+ }
1509
+ }
1510
+ }
1511
+ else {
1512
+ obj = node;
1513
+ }
1514
+ }
1515
+ return obj;
1516
+ }
1517
+ forEach(fn, target, path = '') {
1518
+ const node = target || this;
1519
+ for (let i = 0; i < node._keys.length; i++) {
1520
+ const key = node._keys[i];
1521
+ const value = node._data[key];
1522
+ const type = (this.schema && this.schema.has(path + key) && this.schema.get(path + key).type.name.toLowerCase()) || typeof value;
1523
+ if (type === 'object' && (value instanceof Array)) {
1524
+ fn(path + key, 'array', value, key);
1525
+ }
1526
+ else if (type === 'object' && (value instanceof Object)) {
1527
+ fn(path + key, 'object', value, key);
1528
+ this.forEach(fn, value, `${path + key}.`);
1529
+ }
1530
+ else {
1531
+ fn(path + key, type, value, key);
1532
+ }
1533
+ }
1534
+ }
1535
+ /**
1536
+ * Returns the latest observer instance. This is important when
1537
+ * dealing with undo / redo where the observer might have been deleted
1538
+ * and/or possibly re-created.
1539
+ *
1540
+ * @returns The latest instance of the observer.
1541
+ */
1542
+ latest() {
1543
+ return this._latestFn ? this._latestFn() : this;
1544
+ }
1545
+ /**
1546
+ * Destroys the observer instance.
1547
+ */
1548
+ destroy() {
1549
+ if (this._destroyed)
1550
+ return;
1551
+ this._destroyed = true;
1552
+ this.emit('destroy');
1553
+ this.unbind();
1554
+ }
1555
+ set latestFn(value) {
1556
+ this._latestFn = value;
1557
+ }
1558
+ get latestFn() {
1559
+ return this._latestFn;
1560
+ }
1561
+ }
1562
+ // cache calls to path.split(path, '.')
1563
+ // as they take considerable time especially during loading
1564
+ // if there are a lot of observers like entities, assets etc.
1565
+ Observer._splitPathsCache = {};
1566
+
1567
+ /**
1568
+ * The ObserverHistory module provides a mechanism for tracking changes to an Observer object and
1569
+ * storing them in a history stack.
1570
+ */
1571
+ class ObserverHistory extends Events {
1572
+ /**
1573
+ * @param args - Arguments
1574
+ */
1575
+ constructor(args = {}) {
1576
+ super();
1577
+ this._enabled = true;
1578
+ this._prefix = '';
1579
+ this._combine = false;
1580
+ this._selfEvents = [];
1581
+ this.item = args.item;
1582
+ this._history = args.history;
1583
+ this._enabled = args.enabled || true;
1584
+ this._prefix = args.prefix || '';
1585
+ this._combine = args.combine || false;
1586
+ this._initialize();
1587
+ }
1588
+ _initialize() {
1589
+ this._selfEvents.push(this.item.on('*:set', (path, value, valueOld) => {
1590
+ if (!this._enabled || !this._history)
1591
+ return;
1592
+ // need jsonify
1593
+ if (value instanceof Observer) {
1594
+ value = value.json();
1595
+ }
1596
+ // action
1597
+ const action = {
1598
+ name: this._prefix + path,
1599
+ combine: this._combine,
1600
+ undo: () => {
1601
+ const item = this.item.latest();
1602
+ if (!item)
1603
+ return;
1604
+ item.history.enabled = false;
1605
+ if (valueOld === undefined) {
1606
+ item.unset(path);
1607
+ }
1608
+ else {
1609
+ item.set(path, valueOld);
1610
+ }
1611
+ item.history.enabled = true;
1612
+ },
1613
+ redo: () => {
1614
+ const item = this.item.latest();
1615
+ if (!item)
1616
+ return;
1617
+ item.history.enabled = false;
1618
+ if (value === undefined) {
1619
+ item.unset(path);
1620
+ }
1621
+ else {
1622
+ item.set(path, value);
1623
+ }
1624
+ item.history.enabled = true;
1625
+ }
1626
+ };
1627
+ this._history.add(action);
1628
+ }));
1629
+ this._selfEvents.push(this.item.on('*:unset', (path, valueOld) => {
1630
+ if (!this._enabled || !this._history)
1631
+ return;
1632
+ // action
1633
+ const action = {
1634
+ name: this._prefix + path,
1635
+ combine: this._combine,
1636
+ undo: () => {
1637
+ const item = this.item.latest();
1638
+ if (!item)
1639
+ return;
1640
+ item.history.enabled = false;
1641
+ item.set(path, valueOld);
1642
+ item.history.enabled = true;
1643
+ },
1644
+ redo: () => {
1645
+ const item = this.item.latest();
1646
+ if (!item)
1647
+ return;
1648
+ item.history.enabled = false;
1649
+ item.unset(path);
1650
+ item.history.enabled = true;
1651
+ }
1652
+ };
1653
+ this._history.add(action);
1654
+ }));
1655
+ this._selfEvents.push(this.item.on('*:insert', (path, value, ind) => {
1656
+ if (!this._enabled || !this._history)
1657
+ return;
1658
+ // need jsonify
1659
+ // if (value instanceof Observer)
1660
+ // value = value.json();
1661
+ // action
1662
+ const action = {
1663
+ name: this._prefix + path,
1664
+ combine: this._combine,
1665
+ undo: () => {
1666
+ const item = this.item.latest();
1667
+ if (!item)
1668
+ return;
1669
+ item.history.enabled = false;
1670
+ item.removeValue(path, value);
1671
+ item.history.enabled = true;
1672
+ },
1673
+ redo: () => {
1674
+ const item = this.item.latest();
1675
+ if (!item)
1676
+ return;
1677
+ item.history.enabled = false;
1678
+ item.insert(path, value, ind);
1679
+ item.history.enabled = true;
1680
+ }
1681
+ };
1682
+ this._history.add(action);
1683
+ }));
1684
+ this._selfEvents.push(this.item.on('*:remove', (path, value, ind) => {
1685
+ if (!this._enabled || !this._history)
1686
+ return;
1687
+ // need jsonify
1688
+ // if (value instanceof Observer)
1689
+ // value = value.json();
1690
+ // action
1691
+ const action = {
1692
+ name: this._prefix + path,
1693
+ combine: this._combine,
1694
+ undo: () => {
1695
+ const item = this.item.latest();
1696
+ if (!item)
1697
+ return;
1698
+ item.history.enabled = false;
1699
+ item.insert(path, value, ind);
1700
+ item.history.enabled = true;
1701
+ },
1702
+ redo: () => {
1703
+ const item = this.item.latest();
1704
+ if (!item)
1705
+ return;
1706
+ item.history.enabled = false;
1707
+ item.removeValue(path, value);
1708
+ item.history.enabled = true;
1709
+ }
1710
+ };
1711
+ this._history.add(action);
1712
+ }));
1713
+ this._selfEvents.push(this.item.on('*:move', (path, value, ind, indOld) => {
1714
+ if (!this._enabled || !this._history)
1715
+ return;
1716
+ // action
1717
+ const action = {
1718
+ name: this._prefix + path,
1719
+ combine: this._combine,
1720
+ undo: () => {
1721
+ const item = this.item.latest();
1722
+ if (!item)
1723
+ return;
1724
+ item.history.enabled = false;
1725
+ item.move(path, ind, indOld);
1726
+ item.history.enabled = true;
1727
+ },
1728
+ redo: () => {
1729
+ const item = this.item.latest();
1730
+ if (!item)
1731
+ return;
1732
+ item.history.enabled = false;
1733
+ item.move(path, indOld, ind);
1734
+ item.history.enabled = true;
1735
+ }
1736
+ };
1737
+ this._history.add(action);
1738
+ }));
1739
+ }
1740
+ destroy() {
1741
+ this._selfEvents.forEach((evt) => {
1742
+ evt.unbind();
1743
+ });
1744
+ this._selfEvents.length = 0;
1745
+ this.item = null;
1746
+ }
1747
+ set enabled(value) {
1748
+ this._enabled = !!value;
1749
+ }
1750
+ get enabled() {
1751
+ return this._enabled;
1752
+ }
1753
+ set prefix(value) {
1754
+ this._prefix = value || '';
1755
+ }
1756
+ get prefix() {
1757
+ return this._prefix;
1758
+ }
1759
+ set combine(value) {
1760
+ this._combine = !!value;
1761
+ }
1762
+ get combine() {
1763
+ return this._combine;
1764
+ }
1765
+ }
1766
+
1767
+ /**
1768
+ * The ObserverList class is a list of Observer objects.
1769
+ */
1770
+ class ObserverList extends Events {
1771
+ /**
1772
+ * @param options.sorted - Sorted
1773
+ * @param options.index - Index
1774
+ */
1775
+ constructor(options = {}) {
1776
+ super();
1777
+ this.data = [];
1778
+ this.sorted = null;
1779
+ this.index = null;
1780
+ // Make internal property non-enumerable so it doesn't get serialized
1781
+ Object.defineProperty(this, '_indexed', { enumerable: false, writable: true, value: {} });
1782
+ this.sorted = options.sorted || null;
1783
+ this.index = options.index || null;
1784
+ }
1785
+ get length() {
1786
+ return this.data.length;
1787
+ }
1788
+ get(index) {
1789
+ if (this.index) {
1790
+ return this._indexed[index] || null;
1791
+ }
1792
+ return this.data[index] || null;
1793
+ }
1794
+ set(index, value) {
1795
+ if (this.index) {
1796
+ this._indexed[index] = value;
1797
+ }
1798
+ else {
1799
+ this.data[index] = value;
1800
+ }
1801
+ }
1802
+ indexOf(item) {
1803
+ if (this.index) {
1804
+ const index = (item instanceof Observer && item.get(this.index)) || item[this.index];
1805
+ return (this._indexed[index] && index) || null;
1806
+ }
1807
+ const ind = this.data.indexOf(item);
1808
+ return ind !== -1 ? ind : null;
1809
+ }
1810
+ position(b, fn) {
1811
+ const l = this.data;
1812
+ let min = 0;
1813
+ let max = l.length - 1;
1814
+ let cur;
1815
+ let a, i;
1816
+ fn = fn || this.sorted;
1817
+ while (min <= max) {
1818
+ cur = Math.floor((min + max) / 2);
1819
+ a = l[cur];
1820
+ i = fn(a, b);
1821
+ if (i === 1) {
1822
+ max = cur - 1;
1823
+ }
1824
+ else if (i === -1) {
1825
+ min = cur + 1;
1826
+ }
1827
+ else {
1828
+ return cur;
1829
+ }
1830
+ }
1831
+ return -1;
1832
+ }
1833
+ positionNextClosest(b, fn) {
1834
+ const l = this.data;
1835
+ let min = 0;
1836
+ let max = l.length - 1;
1837
+ let cur;
1838
+ let a, i;
1839
+ fn = fn || this.sorted;
1840
+ if (l.length === 0) {
1841
+ return -1;
1842
+ }
1843
+ if (fn(l[0], b) === 0) {
1844
+ return 0;
1845
+ }
1846
+ while (min <= max) {
1847
+ cur = Math.floor((min + max) / 2);
1848
+ a = l[cur];
1849
+ i = fn(a, b);
1850
+ if (i === 1) {
1851
+ max = cur - 1;
1852
+ }
1853
+ else if (i === -1) {
1854
+ min = cur + 1;
1855
+ }
1856
+ else {
1857
+ return cur;
1858
+ }
1859
+ }
1860
+ if (fn(a, b) === 1) {
1861
+ return cur;
1862
+ }
1863
+ if ((cur + 1) === l.length) {
1864
+ return -1;
1865
+ }
1866
+ return cur + 1;
1867
+ }
1868
+ has(item) {
1869
+ if (this.index) {
1870
+ const index = (item instanceof Observer && item.get(this.index)) || item[this.index];
1871
+ return !!this._indexed[index];
1872
+ }
1873
+ return this.data.indexOf(item) !== -1;
1874
+ }
1875
+ add(item) {
1876
+ if (this.has(item)) {
1877
+ return null;
1878
+ }
1879
+ let index = this.data.length;
1880
+ if (this.index) {
1881
+ index = (item instanceof Observer && item.get(this.index)) || item[this.index];
1882
+ this._indexed[index] = item;
1883
+ }
1884
+ let pos = 0;
1885
+ if (this.sorted) {
1886
+ pos = this.positionNextClosest(item, undefined);
1887
+ if (pos !== -1) {
1888
+ this.data.splice(pos, 0, item);
1889
+ }
1890
+ else {
1891
+ this.data.push(item);
1892
+ }
1893
+ }
1894
+ else {
1895
+ this.data.push(item);
1896
+ pos = this.data.length - 1;
1897
+ }
1898
+ this.emit('add', item, index, pos);
1899
+ if (this.index) {
1900
+ const id = item.get(this.index);
1901
+ if (id) {
1902
+ this.emit(`add[${id}]`, item, index, pos);
1903
+ }
1904
+ }
1905
+ return pos;
1906
+ }
1907
+ move(item, pos) {
1908
+ const ind = this.data.indexOf(item);
1909
+ this.data.splice(ind, 1);
1910
+ if (pos === -1) {
1911
+ this.data.push(item);
1912
+ }
1913
+ else {
1914
+ this.data.splice(pos, 0, item);
1915
+ }
1916
+ this.emit('move', item, pos);
1917
+ }
1918
+ remove(item) {
1919
+ if (!this.has(item)) {
1920
+ return;
1921
+ }
1922
+ const ind = this.data.indexOf(item);
1923
+ let index = ind;
1924
+ if (this.index) {
1925
+ index = (item instanceof Observer && item.get(this.index)) || item[this.index];
1926
+ delete this._indexed[index];
1927
+ }
1928
+ this.data.splice(ind, 1);
1929
+ this.emit('remove', item, index);
1930
+ }
1931
+ removeByKey(index) {
1932
+ let item;
1933
+ if (this.index) {
1934
+ item = this._indexed[index];
1935
+ if (!item) {
1936
+ return;
1937
+ }
1938
+ const ind = this.data.indexOf(item);
1939
+ this.data.splice(ind, 1);
1940
+ delete this._indexed[index];
1941
+ this.emit('remove', item, ind);
1942
+ }
1943
+ else {
1944
+ if (this.data.length < index) {
1945
+ return;
1946
+ }
1947
+ item = this.data[index];
1948
+ this.data.splice(index, 1);
1949
+ this.emit('remove', item, index);
1950
+ }
1951
+ }
1952
+ removeBy(fn) {
1953
+ let i = this.data.length;
1954
+ while (i--) {
1955
+ if (!fn(this.data[i])) {
1956
+ continue;
1957
+ }
1958
+ if (this.index) {
1959
+ delete this._indexed[this.data[i][this.index]];
1960
+ }
1961
+ this.data.splice(i, 1);
1962
+ this.emit('remove', this.data[i], i);
1963
+ }
1964
+ }
1965
+ clear() {
1966
+ const items = this.data.slice(0);
1967
+ this.data = [];
1968
+ this._indexed = {};
1969
+ let i = items.length;
1970
+ while (i--) {
1971
+ this.emit('remove', items[i], i);
1972
+ }
1973
+ }
1974
+ forEach(fn) {
1975
+ for (let i = 0; i < this.data.length; i++) {
1976
+ fn(this.data[i], (this.index && this.data[i][this.index]) || i);
1977
+ }
1978
+ }
1979
+ find(fn) {
1980
+ const items = [];
1981
+ for (let i = 0; i < this.data.length; i++) {
1982
+ if (!fn(this.data[i])) {
1983
+ continue;
1984
+ }
1985
+ let index = i;
1986
+ if (this.index) {
1987
+ index = this.data[i][this.index];
1988
+ }
1989
+ items.push([index, this.data[i]]);
1990
+ }
1991
+ return items;
1992
+ }
1993
+ findOne(fn) {
1994
+ for (let i = 0; i < this.data.length; i++) {
1995
+ if (!fn(this.data[i])) {
1996
+ continue;
1997
+ }
1998
+ let index = i;
1999
+ if (this.index) {
2000
+ index = this.data[i][this.index];
2001
+ }
2002
+ return [index, this.data[i]];
2003
+ }
2004
+ return null;
2005
+ }
2006
+ map(fn) {
2007
+ return this.data.map(fn);
2008
+ }
2009
+ sort(fn) {
2010
+ this.data.sort(fn);
2011
+ }
2012
+ array() {
2013
+ return this.data.slice(0);
2014
+ }
2015
+ json() {
2016
+ const items = this.array();
2017
+ for (let i = 0; i < items.length; i++) {
2018
+ if (items[i] instanceof Observer) {
2019
+ items[i] = items[i].json();
2020
+ }
2021
+ }
2022
+ return items;
2023
+ }
2024
+ }
2025
+
2026
+ export { EventHandle, Events, History, Observer, ObserverHistory, ObserverList };