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