@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.
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/editor-state.js +32 -17
- package/dist/agent-bridge/capabilities/editor-state.js.map +1 -1
- package/dist/agent-bridge/capabilities/hierarchy.d.ts +4 -0
- package/dist/agent-bridge/capabilities/hierarchy.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/hierarchy.js +209 -0
- package/dist/agent-bridge/capabilities/hierarchy.js.map +1 -0
- package/dist/agent-bridge/capabilities/prefabs.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/prefabs.js +243 -60
- package/dist/agent-bridge/capabilities/prefabs.js.map +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.d.ts +3 -4
- package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/scene-objects.js +111 -25
- package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -1
- package/dist/agent-bridge/capabilities/selection.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/selection.js +8 -5
- package/dist/agent-bridge/capabilities/selection.js.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.js +839 -67
- package/dist/agent-bridge/capabilities/shadows.js.map +1 -1
- package/dist/agent-bridge/capabilities/transform.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/transform.js +6 -4
- package/dist/agent-bridge/capabilities/transform.js.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/ui-regions.js +3 -1
- package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/viewport.js +92 -47
- package/dist/agent-bridge/capabilities/viewport.js.map +1 -1
- package/dist/agent-bridge/capability-sources.d.ts.map +1 -1
- package/dist/agent-bridge/capability-sources.js +2 -0
- package/dist/agent-bridge/capability-sources.js.map +1 -1
- package/dist/agent-bridge/register.d.ts.map +1 -1
- package/dist/agent-bridge/register.js +194 -0
- package/dist/agent-bridge/register.js.map +1 -1
- package/dist/agent-bridge/shared.d.ts +232 -7
- package/dist/agent-bridge/shared.d.ts.map +1 -1
- package/dist/agent-bridge/shared.js +174 -0
- package/dist/agent-bridge/shared.js.map +1 -1
- package/dist/agent-bridge/source-types.d.ts +17 -1
- package/dist/agent-bridge/source-types.d.ts.map +1 -1
- package/dist/agent-bridge/source-types.js.map +1 -1
- package/dist/build-info.json +57 -42
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/babylon-preview-engine.d.ts +3 -0
- package/dist/internal/babylon-preview-engine.d.ts.map +1 -0
- package/dist/internal/babylon-preview-engine.js +11 -0
- package/dist/internal/babylon-preview-engine.js.map +1 -0
- package/dist/internal/product-local-editor-cleanup.d.ts +5 -0
- package/dist/internal/product-local-editor-cleanup.d.ts.map +1 -0
- package/dist/internal/product-local-editor-cleanup.js +20 -0
- package/dist/internal/product-local-editor-cleanup.js.map +1 -0
- package/dist/local-editor-agent-actions.d.ts +2 -4
- package/dist/local-editor-agent-actions.d.ts.map +1 -1
- package/dist/local-editor-agent-actions.js +61 -33
- package/dist/local-editor-agent-actions.js.map +1 -1
- package/dist/local-editor-agent-context.d.ts +5 -5
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +340 -35
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +3854 -1118
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-marker-graph.d.ts +15 -15
- package/dist/local-editor-marker-graph.d.ts.map +1 -1
- package/dist/local-editor-marker-graph.js +3 -0
- package/dist/local-editor-marker-graph.js.map +1 -1
- package/dist/local-editor-performance-stats.d.ts +3 -2
- package/dist/local-editor-performance-stats.d.ts.map +1 -1
- package/dist/local-editor-performance-stats.js.map +1 -1
- package/dist/local-editor-prefab-stage-transaction.d.ts +19 -0
- package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -0
- package/dist/local-editor-prefab-stage-transaction.js +45 -0
- package/dist/local-editor-prefab-stage-transaction.js.map +1 -0
- package/dist/local-editor-scene-view-interaction-runtime.d.ts +3 -1
- package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
- package/dist/local-editor-scene-view-interaction-runtime.js +24 -0
- package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
- package/dist/local-editor-tools.d.ts +18 -0
- package/dist/local-editor-tools.d.ts.map +1 -0
- package/dist/local-editor-tools.js +53 -0
- package/dist/local-editor-tools.js.map +1 -0
- package/dist/playable-babylon-rendering.d.ts +9 -0
- package/dist/playable-babylon-rendering.d.ts.map +1 -1
- package/dist/playable-babylon-rendering.js +162 -6
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-entry.d.ts +68 -0
- package/dist/playable-local-editor-entry.d.ts.map +1 -0
- package/dist/playable-local-editor-entry.js +424 -0
- package/dist/playable-local-editor-entry.js.map +1 -0
- package/dist/playable-local-editor-host.d.ts +51 -29
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +23 -11
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-product-local-editor.d.ts +10 -12
- package/dist/playable-product-local-editor.d.ts.map +1 -1
- package/dist/playable-product-local-editor.js +178 -85
- package/dist/playable-product-local-editor.js.map +1 -1
- package/dist/playable-product-projection-preview.d.ts +4 -1
- package/dist/playable-product-projection-preview.d.ts.map +1 -1
- package/dist/playable-product-projection-preview.js +122 -5
- package/dist/playable-product-projection-preview.js.map +1 -1
- package/dist/playable-product-rendering.d.ts +12 -0
- package/dist/playable-product-rendering.d.ts.map +1 -1
- package/dist/playable-product-rendering.js +128 -6
- package/dist/playable-product-rendering.js.map +1 -1
- package/dist/playable-product-scene-capabilities.d.ts +24 -7
- package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
- package/dist/playable-product-scene-capabilities.js +172 -15
- package/dist/playable-product-scene-capabilities.js.map +1 -1
- package/dist/playable-project-mode.d.ts +17 -0
- package/dist/playable-project-mode.d.ts.map +1 -0
- package/dist/playable-project-mode.js +2 -0
- package/dist/playable-project-mode.js.map +1 -0
- package/dist/playable-runtime-babylon.d.ts +3 -6
- package/dist/playable-runtime-babylon.d.ts.map +1 -1
- package/dist/playable-runtime-babylon.js +1 -5
- package/dist/playable-runtime-babylon.js.map +1 -1
- package/dist/playable-sdk.d.ts +16 -9
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +6 -4
- package/dist/playable-sdk.js.map +1 -1
- package/dist/playable-standard-project.d.ts +23 -14
- package/dist/playable-standard-project.d.ts.map +1 -1
- package/dist/playable-standard-project.js +53 -19
- package/dist/playable-standard-project.js.map +1 -1
- package/dist/vite-client.d.ts +4 -0
- package/node_modules/@babel/helper-string-parser/lib/index.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -1
- package/node_modules/@babel/parser/lib/index.js +0 -1
- package/node_modules/@babel/types/lib/asserts/assertNode.js +0 -1
- package/node_modules/@babel/types/lib/asserts/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js +0 -1
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -1
- package/node_modules/@babel/types/lib/builders/productions.js +0 -1
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -1
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -1
- package/node_modules/@babel/types/lib/builders/validateNode.js +0 -1
- package/node_modules/@babel/types/lib/clone/clone.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js +0 -1
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -1
- package/node_modules/@babel/types/lib/comments/addComment.js +0 -1
- package/node_modules/@babel/types/lib/comments/addComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -1
- package/node_modules/@babel/types/lib/comments/removeComments.js +0 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/constants/index.js +0 -1
- package/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +0 -1
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -1
- package/node_modules/@babel/types/lib/converters/toBlock.js +0 -1
- package/node_modules/@babel/types/lib/converters/toComputedKey.js +0 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js +0 -1
- package/node_modules/@babel/types/lib/converters/toIdentifier.js +0 -1
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -1
- package/node_modules/@babel/types/lib/converters/toStatement.js +0 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js +0 -1
- package/node_modules/@babel/types/lib/definitions/core.js +0 -1
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +0 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js +0 -1
- package/node_modules/@babel/types/lib/definitions/flow.js +0 -1
- package/node_modules/@babel/types/lib/definitions/index.js +0 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js +0 -1
- package/node_modules/@babel/types/lib/definitions/misc.js +0 -1
- package/node_modules/@babel/types/lib/definitions/placeholders.js +0 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js +0 -1
- package/node_modules/@babel/types/lib/definitions/utils.js +0 -1
- package/node_modules/@babel/types/lib/index.js +0 -1
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +0 -1
- package/node_modules/@babel/types/lib/modifications/inherits.js +0 -1
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/modifications/removeProperties.js +0 -1
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js +0 -1
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -1
- package/node_modules/@babel/types/lib/traverse/traverse.js +0 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js +0 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js +0 -1
- package/node_modules/@babel/types/lib/utils/inherit.js +0 -1
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +0 -1
- package/node_modules/@babel/types/lib/utils/shallowEqual.js +0 -1
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js +0 -1
- package/node_modules/@babel/types/lib/validators/is.js +0 -1
- package/node_modules/@babel/types/lib/validators/isBinding.js +0 -1
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -1
- package/node_modules/@babel/types/lib/validators/isImmutable.js +0 -1
- package/node_modules/@babel/types/lib/validators/isLet.js +0 -1
- package/node_modules/@babel/types/lib/validators/isNode.js +0 -1
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +0 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -1
- package/node_modules/@babel/types/lib/validators/isReferenced.js +0 -1
- package/node_modules/@babel/types/lib/validators/isScope.js +0 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +0 -1
- package/node_modules/@babel/types/lib/validators/isType.js +0 -1
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -1
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -1
- package/node_modules/@babel/types/lib/validators/isVar.js +0 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -1
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -1
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -1
- package/node_modules/@babel/types/lib/validators/validate.js +0 -1
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.d.ts +69 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.js +132 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhFileLoader.metadata.js +7 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoader.d.ts +14 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoader.js +328 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.d.ts +9 -0
- package/node_modules/@babylonjs/loaders/BVH/bvhLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/BVH/index.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/BVH/index.js +3 -0
- package/node_modules/@babylonjs/loaders/OBJ/index.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/index.js +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/OBJ/mtlFileLoader.js +230 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.d.ts +136 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.js +317 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/objFileLoader.metadata.js +4 -0
- package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/OBJ/objLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/OBJ/solidParser.d.ts +175 -0
- package/node_modules/@babylonjs/loaders/OBJ/solidParser.js +903 -0
- package/node_modules/@babylonjs/loaders/SPLAT/index.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/SPLAT/index.js +3 -0
- package/node_modules/@babylonjs/loaders/SPLAT/sog.d.ts +84 -0
- package/node_modules/@babylonjs/loaders/SPLAT/sog.js +294 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.d.ts +26 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatDefs.js +10 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.d.ts +100 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.js +536 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.d.ts +20 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatFileLoader.metadata.js +15 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/SPLAT/splatLoadingOptions.js +1 -0
- package/node_modules/@babylonjs/loaders/SPLAT/spz.d.ts +11 -0
- package/node_modules/@babylonjs/loaders/SPLAT/spz.js +168 -0
- package/node_modules/@babylonjs/loaders/STL/index.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/STL/index.js +1 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.d.ts +78 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.js +238 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/STL/stlFileLoader.metadata.js +7 -0
- package/node_modules/@babylonjs/loaders/bvh/license.md +21 -0
- package/node_modules/@babylonjs/loaders/dynamic.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/dynamic.js +56 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.d.ts +16 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFBinaryExtension.js +64 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.d.ts +144 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoader.js +1841 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderInterfaces.js +95 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.d.ts +71 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFLoaderUtils.js +254 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.d.ts +13 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/glTFMaterialsCommonExtension.js +130 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/index.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/glTF/1.0/index.js +5 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_area.js +93 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_ies.js +83 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +48 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_lights_image_based.js +115 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +94 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_meshopt_compression.js +50 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.d.ts +34 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_avif.js +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/EXT_texture_webp.js +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +53 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.data.js +251 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_animation_pointer.js +77 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +92 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.d.ts +355 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js +1678 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/flowGraphGLTFDataProvider.js +19 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.d.ts +3 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/index.js +3 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.d.ts +70 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js +438 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.d.ts +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_interactivity.js +150 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +41 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_lights_punctual.js +91 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_anisotropy.js +65 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_clearcoat.js +79 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.d.ts +49 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_coat.js +119 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.js +58 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js +69 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_dispersion.js +56 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_fuzz.js +77 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.d.ts +46 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_ior.js +54 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_iridescence.js +68 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_sheen.js +73 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_specular.js +76 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_transmission.js +303 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_unlit.js +66 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.d.ts +112 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_variants.js +262 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume.js +82 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.d.ts +45 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_materials_volume_scatter.js +109 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +29 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_mesh_quantization.js +22 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.d.ts +31 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_hoverability.js +189 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.d.ts +30 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_selectability.js +123 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.d.ts +30 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_node_visibility.js +66 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +33 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_basisu.js +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.d.ts +37 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_texture_transform.js +58 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/KHR_xmp_json_ld.js +47 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +56 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.js +228 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.d.ts +104 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_lod.js +337 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +27 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_minecraftMesh.js +39 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +27 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_sRGBFactors.js +38 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.d.ts +4 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/dynamic.js +212 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.d.ts +45 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/gltfPathToObjectConverter.js +100 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.d.ts +43 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/index.js +44 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.d.ts +306 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/objectModelMapping.js +884 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.d.ts +450 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.js +2485 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.d.ts +42 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderAnimation.js +79 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.d.ts +165 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtension.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.d.ts +25 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js +32 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.d.ts +262 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/glTFLoaderInterfaces.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/index.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/index.js +9 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.d.ts +364 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/materialLoadingAdapter.js +1 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.d.ts +674 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/openpbrMaterialLoadingAdapter.js +1034 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.d.ts +705 -0
- package/node_modules/@babylonjs/loaders/glTF/2.0/pbrMaterialLoadingAdapter.js +1126 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.d.ts +553 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.js +998 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.d.ts +15 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFFileLoader.metadata.js +17 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFValidation.d.ts +35 -0
- package/node_modules/@babylonjs/loaders/glTF/glTFValidation.js +131 -0
- package/node_modules/@babylonjs/loaders/glTF/index.d.ts +5 -0
- package/node_modules/@babylonjs/loaders/glTF/index.js +6 -0
- package/node_modules/@babylonjs/loaders/index.d.ts +6 -0
- package/node_modules/@babylonjs/loaders/index.js +7 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-bvhFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-dynamic.js +13 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF.js +18 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF1FileLoader.js +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2.js +34 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.d.ts +2 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTF2FileLoader.js +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.d.ts +3 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-glTFFileLoader.js +4 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-objFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.d.ts +1 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy-stlFileLoader.js +15 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy.d.ts +8 -0
- package/node_modules/@babylonjs/loaders/legacy/legacy.js +10 -0
- package/node_modules/@babylonjs/loaders/license.md +71 -0
- package/node_modules/@babylonjs/loaders/package.json +49 -0
- package/node_modules/@babylonjs/loaders/readme.md +23 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts +22 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js +187 -0
- package/node_modules/@fps-games/babylon-renderer/dist/game-world-plugin-lifecycle.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts +19 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js +212 -0
- package/node_modules/@fps-games/babylon-renderer/dist/material-owner-candidates.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts +17 -2
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js +192 -17
- package/node_modules/@fps-games/babylon-renderer/dist/plugin.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +139 -3
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/dynamic-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts +14 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js +14 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-generator-shaders.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts +59 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js +725 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-depth-backend.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts +136 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js +2735 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/shadow-map-experiment-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/package.json +7 -7
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +2 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts +2 -0
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js +59 -6
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +81 -11
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +2 -8
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +17 -5
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +300 -362
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts +4 -0
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +76 -10
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts +46 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js +304 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-identity-pass.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts +85 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +1600 -0
- package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +11 -3
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +105 -15
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts +25 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js +44 -0
- package/node_modules/@fps-games/editor-babylon/dist/viewport-ground-projection.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/package.json +6 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +8 -9
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +6 -7
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js +36 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-clipboard.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js +17 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +6 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +157 -77
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js +27 -21
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +19 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +44 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +36 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +831 -702
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts +8 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js +1 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts +7 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view-adapter.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +6 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +266 -114
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +11 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts +3 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js +58 -25
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js +44 -62
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-modal-dialog.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +10 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +591 -639
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts +8 -36
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +25 -103
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +29 -110
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +1 -3
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +6 -90
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +9 -54
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts +39 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js +74 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts +4 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js +44 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-format.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js +35 -44
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js +40 -24
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-theme.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js +2 -20
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +56 -301
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts +4 -14
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +33 -119
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +5 -10
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +760 -524
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts +2 -3
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js +0 -180
- package/node_modules/@fps-games/editor-browser/dist/plugin-contributions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js +5 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/package.json +15 -4
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts +22 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js +226 -0
- package/node_modules/@fps-games/editor-core/dist/editor-diagnostic-store.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +94 -2
- package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +26 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.js +77 -8
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts +112 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js +613 -0
- package/node_modules/@fps-games/editor-core/dist/editor-tools.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +46 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +62 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +1 -0
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +14 -6
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js +14 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +49 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +58 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +48 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +28 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +314 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-instance-identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js +285 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/prefab-marker.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +7 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +23 -81
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts +41 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js +93 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-manifest.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts +29 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js +77 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-module.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts +51 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry-performance.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts +60 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js +287 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/editor-entry.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +6 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +53 -17
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +16 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +10 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +5 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +134 -66
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +21 -14
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +17 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +20 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +49 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js +130 -20
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/action-patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js +12 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js +136 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/derived-markers.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts +36 -51
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js +40 -65
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +207 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +18 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +110 -18
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-source.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +22 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +144 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +241 -13
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js +170 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/shadow-map-experiment-migration.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts +153 -13
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js +1295 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/validation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js +57 -34
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +20 -198
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js +5 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy-facade.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +144 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js +30 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/reducer-core.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +31 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts +5 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +40 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +116 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts +17 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js +50 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-asset-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +7 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts +5 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js +31 -17
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-scene-authoring.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +417 -2
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js +692 -2
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts +55 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/editor-diagnostics.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +3 -18
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +2 -2
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js +5 -0
- package/node_modules/@fps-games/editor-tooling/dist/package-metadata-node.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-tooling/dist/vite.js +151 -5
- package/node_modules/@fps-games/editor-tooling/dist/vite.js.map +1 -1
- package/node_modules/@fps-games/editor-tooling/package.json +3 -3
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts +107 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js +770 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-controls.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts +21 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js +172 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-layer-host.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts +14 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js +32 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-shell.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts +3 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js +653 -0
- package/node_modules/@fps-games/editor-ui/dist/editor-ui-theme.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts +3 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.js +3 -0
- package/node_modules/@fps-games/editor-ui/dist/gallery.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-ui/dist/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/index.js +5 -0
- package/node_modules/@fps-games/editor-ui/dist/index.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts +7 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js +29 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-model.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts +2 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js +95 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery-styles.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts +28 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js +387 -0
- package/node_modules/@fps-games/editor-ui/dist/inspector-property-gallery.js.map +1 -0
- package/node_modules/@fps-games/editor-ui/package.json +23 -0
- package/node_modules/@fps-games/playable-assets/package.json +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/index.js +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts +116 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.js +403 -0
- package/node_modules/@fps-games/playable-contracts/dist/material-owner.js.map +1 -0
- package/node_modules/@fps-games/playable-contracts/package.json +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/index.js +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/index.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js +5 -25
- package/node_modules/@fps-games/playable-rendering/dist/rendering-profile-validation.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/runtime.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js +3 -0
- package/node_modules/@fps-games/playable-rendering/dist/runtime.js.map +1 -1
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts +61 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js +176 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-depth.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts +84 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js +362 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment-lifecycle.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts +167 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.d.ts.map +1 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js +484 -0
- package/node_modules/@fps-games/playable-rendering/dist/shadow-map-experiment.js.map +1 -0
- package/node_modules/@fps-games/playable-rendering/package.json +2 -2
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts +5 -0
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.d.ts.map +1 -1
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js +1 -0
- package/node_modules/@fps-games/playable-runtime/dist/compiled-scene-data.js.map +1 -1
- package/node_modules/@fps-games/playable-runtime/package.json +12 -12
- package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
- package/node_modules/@fps-games/playable-scene/package.json +2 -2
- package/node_modules/@fps-games/plugin-api/package.json +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-assets/package.json +5 -5
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts +6 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js +16 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/editor.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts +7 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js +47 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/integration.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +306 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +1237 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts +8 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js +32 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/reference.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +2 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +2 -0
- package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -0
- package/node_modules/@fps-games/plugin-hierarchy/package.json +57 -0
- package/node_modules/@fps-games/plugin-host/package.json +2 -2
- package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-markers/package.json +5 -5
- package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-materials/package.json +5 -5
- package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
- package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-scene/package.json +5 -5
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts +8 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js +35 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/reference.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts +11 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js +14 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/runtime.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +2 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +2 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -0
- package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +53 -0
- package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
- package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
- package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
- package/node_modules/@playcanvas/observer/LICENSE +19 -0
- package/node_modules/@playcanvas/observer/README.md +72 -0
- package/node_modules/@playcanvas/observer/dist/index.cjs +2033 -0
- package/node_modules/@playcanvas/observer/dist/index.js +2039 -0
- package/node_modules/@playcanvas/observer/dist/index.mjs +2026 -0
- package/node_modules/@playcanvas/observer/package.json +78 -0
- package/node_modules/@playcanvas/observer/types/event-handle.d.ts +41 -0
- package/node_modules/@playcanvas/observer/types/events.d.ts +162 -0
- package/node_modules/@playcanvas/observer/types/history.d.ts +123 -0
- package/node_modules/@playcanvas/observer/types/index.d.ts +15 -0
- package/node_modules/@playcanvas/observer/types/observer-history.d.ts +32 -0
- package/node_modules/@playcanvas/observer/types/observer-list.d.ts +39 -0
- package/node_modules/@playcanvas/observer/types/observer.d.ts +157 -0
- package/node_modules/@playcanvas/observer/types/utils.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/LICENSE +19 -0
- package/node_modules/@playcanvas/pcui/README.md +164 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
- package/node_modules/@playcanvas/pcui/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/Math/color-value.mjs +77 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingBase/index.mjs +215 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/class.mjs +19 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/ArrayInput/index.mjs +498 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/BooleanInput/index.mjs +122 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Button/index.mjs +119 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Canvas/index.mjs +104 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Code/index.mjs +43 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/ColorPicker/index.mjs +619 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Container/index.mjs +642 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Divider/index.mjs +20 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Element/index.mjs +829 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GradientPicker/index.mjs +1136 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GridView/index.mjs +448 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/GridViewItem/index.mjs +152 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/InfoBox/index.mjs +90 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/InputElement/index.mjs +186 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Label/index.mjs +124 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/LabelGroup/index.mjs +74 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Menu/index.mjs +174 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/MenuItem/index.mjs +223 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/NumericInput/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Overlay/index.mjs +108 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Panel/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Progress/index.mjs +45 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/RadioButton/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/SelectInput/index.mjs +1085 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/SliderInput/index.mjs +333 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/Spinner/index.mjs +34 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TextAreaInput/index.mjs +50 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TextInput/index.mjs +98 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeView/index.mjs +1131 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/TreeViewItem/index.mjs +500 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/components/VectorInput/index.mjs +366 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/helpers/search.mjs +194 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/helpers/utils.mjs +43 -0
- package/node_modules/@playcanvas/pcui/dist/module/src/index.mjs +56 -0
- package/node_modules/@playcanvas/pcui/dist/pcui-theme-green.scss +2798 -0
- package/node_modules/@playcanvas/pcui/dist/pcui-theme-grey.scss +2798 -0
- package/node_modules/@playcanvas/pcui/package.json +150 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/constants.mjs +6 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-evaluator.mjs +119 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve-set.mjs +82 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/curve.mjs +92 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/node_modules/playcanvas/build/playcanvas/src/core/math/math.mjs +105 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/Math/color-value.mjs +77 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingBase/index.mjs +215 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingElementToObservers/index.mjs +297 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingObserversToElement/index.mjs +110 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/binding/BindingTwoWay/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/class.mjs +19 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ArrayInput/index.mjs +498 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/BooleanInput/index.mjs +122 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Button/index.mjs +119 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Canvas/index.mjs +104 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Code/index.mjs +43 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/ColorPicker/index.mjs +619 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/component.mjs +36 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Container/index.mjs +642 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Divider/index.mjs +20 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/component.mjs +107 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Element/index.mjs +829 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GradientPicker/index.mjs +1136 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/component.mjs +38 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridView/index.mjs +448 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/GridViewItem/index.mjs +152 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InfoBox/index.mjs +90 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/InputElement/index.mjs +186 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Label/index.mjs +124 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/component.mjs +42 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/LabelGroup/index.mjs +74 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/component.mjs +23 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Menu/index.mjs +174 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/MenuItem/index.mjs +223 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/NumericInput/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Overlay/index.mjs +108 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/component.mjs +32 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Panel/index.mjs +400 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Progress/index.mjs +45 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/RadioButton/index.mjs +113 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/component.mjs +21 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SelectInput/index.mjs +1085 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/component.mjs +12 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/SliderInput/index.mjs +333 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/component.mjs +16 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/Spinner/index.mjs +34 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextAreaInput/index.mjs +50 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/component.mjs +23 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TextInput/index.mjs +98 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/component.mjs +52 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeView/index.mjs +1131 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/component.mjs +33 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/TreeViewItem/index.mjs +500 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/component.mjs +11 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/components/VectorInput/index.mjs +366 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/search.mjs +194 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/helpers/utils.mjs +43 -0
- package/node_modules/@playcanvas/pcui/react/dist/module/src/index.mjs +39 -0
- package/node_modules/@playcanvas/pcui/react/package.json +18 -0
- package/node_modules/@playcanvas/pcui/react/types/Math/color-value.d.ts +3 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingBase/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingElementToObservers/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingObserversToElement/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/BindingTwoWay/index.d.ts +54 -0
- package/node_modules/@playcanvas/pcui/react/types/binding/index.d.ts +5 -0
- package/node_modules/@playcanvas/pcui/react/types/class.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ArrayInput/index.d.ts +140 -0
- package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/BooleanInput/index.d.ts +41 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Button/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Button/index.d.ts +75 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Canvas/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Canvas/index.d.ts +61 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Code/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Code/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/ColorPicker/index.d.ts +99 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Container/component.d.ts +15 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Container/index.d.ts +292 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Divider/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Divider/index.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Element/component.d.ts +23 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Element/index.d.ts +671 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GradientPicker/index.d.ts +152 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridView/component.d.ts +14 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridView/index.d.ts +103 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/GridViewItem/index.d.ts +82 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InfoBox/index.d.ts +71 -0
- package/node_modules/@playcanvas/pcui/react/types/components/InputElement/index.d.ts +84 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Label/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Label/index.d.ts +85 -0
- package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/LabelGroup/index.d.ts +62 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Menu/component.d.ts +14 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Menu/index.d.ts +70 -0
- package/node_modules/@playcanvas/pcui/react/types/components/MenuItem/index.d.ts +139 -0
- package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/NumericInput/index.d.ts +173 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Overlay/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Overlay/index.d.ts +53 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Panel/component.d.ts +16 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Panel/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Progress/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Progress/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/RadioButton/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/component.d.ts +12 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SelectInput/index.d.ts +278 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/component.d.ts +10 -0
- package/node_modules/@playcanvas/pcui/react/types/components/SliderInput/index.d.ts +133 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Spinner/component.d.ts +11 -0
- package/node_modules/@playcanvas/pcui/react/types/components/Spinner/index.d.ts +27 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextAreaInput/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextInput/component.d.ts +12 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TextInput/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeView/component.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeView/index.d.ts +359 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/component.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/react/types/components/TreeViewItem/index.d.ts +224 -0
- package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/component.d.ts +9 -0
- package/node_modules/@playcanvas/pcui/react/types/components/VectorInput/index.d.ts +176 -0
- package/node_modules/@playcanvas/pcui/react/types/components/components.d.ts +30 -0
- package/node_modules/@playcanvas/pcui/react/types/components/index.d.ts +32 -0
- package/node_modules/@playcanvas/pcui/react/types/helpers/search.d.ts +31 -0
- package/node_modules/@playcanvas/pcui/react/types/helpers/utils.d.ts +2 -0
- package/node_modules/@playcanvas/pcui/react/types/index.d.ts +4 -0
- package/node_modules/@playcanvas/pcui/styles/dist/index.mjs +11 -0
- package/node_modules/@playcanvas/pcui/styles/package.json +17 -0
- package/node_modules/@playcanvas/pcui/types/Math/color-value.d.ts +3 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingBase/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingElementToObservers/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingObserversToElement/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/types/binding/BindingTwoWay/index.d.ts +54 -0
- package/node_modules/@playcanvas/pcui/types/binding/index.d.ts +5 -0
- package/node_modules/@playcanvas/pcui/types/class.d.ts +17 -0
- package/node_modules/@playcanvas/pcui/types/components/ArrayInput/index.d.ts +140 -0
- package/node_modules/@playcanvas/pcui/types/components/BooleanInput/index.d.ts +41 -0
- package/node_modules/@playcanvas/pcui/types/components/Button/index.d.ts +75 -0
- package/node_modules/@playcanvas/pcui/types/components/Canvas/index.d.ts +61 -0
- package/node_modules/@playcanvas/pcui/types/components/Code/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/ColorPicker/index.d.ts +99 -0
- package/node_modules/@playcanvas/pcui/types/components/Container/index.d.ts +292 -0
- package/node_modules/@playcanvas/pcui/types/components/Divider/index.d.ts +13 -0
- package/node_modules/@playcanvas/pcui/types/components/Element/index.d.ts +671 -0
- package/node_modules/@playcanvas/pcui/types/components/GradientPicker/index.d.ts +152 -0
- package/node_modules/@playcanvas/pcui/types/components/GridView/index.d.ts +103 -0
- package/node_modules/@playcanvas/pcui/types/components/GridViewItem/index.d.ts +82 -0
- package/node_modules/@playcanvas/pcui/types/components/InfoBox/index.d.ts +71 -0
- package/node_modules/@playcanvas/pcui/types/components/InputElement/index.d.ts +84 -0
- package/node_modules/@playcanvas/pcui/types/components/Label/index.d.ts +85 -0
- package/node_modules/@playcanvas/pcui/types/components/LabelGroup/index.d.ts +62 -0
- package/node_modules/@playcanvas/pcui/types/components/Menu/index.d.ts +70 -0
- package/node_modules/@playcanvas/pcui/types/components/MenuItem/index.d.ts +139 -0
- package/node_modules/@playcanvas/pcui/types/components/NumericInput/index.d.ts +173 -0
- package/node_modules/@playcanvas/pcui/types/components/Overlay/index.d.ts +53 -0
- package/node_modules/@playcanvas/pcui/types/components/Panel/index.d.ts +178 -0
- package/node_modules/@playcanvas/pcui/types/components/Progress/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/RadioButton/index.d.ts +33 -0
- package/node_modules/@playcanvas/pcui/types/components/SelectInput/index.d.ts +278 -0
- package/node_modules/@playcanvas/pcui/types/components/SliderInput/index.d.ts +133 -0
- package/node_modules/@playcanvas/pcui/types/components/Spinner/index.d.ts +27 -0
- package/node_modules/@playcanvas/pcui/types/components/TextAreaInput/index.d.ts +24 -0
- package/node_modules/@playcanvas/pcui/types/components/TextInput/index.d.ts +40 -0
- package/node_modules/@playcanvas/pcui/types/components/TreeView/index.d.ts +359 -0
- package/node_modules/@playcanvas/pcui/types/components/TreeViewItem/index.d.ts +224 -0
- package/node_modules/@playcanvas/pcui/types/components/VectorInput/index.d.ts +176 -0
- package/node_modules/@playcanvas/pcui/types/components/index.d.ts +32 -0
- package/node_modules/@playcanvas/pcui/types/helpers/search.d.ts +31 -0
- package/node_modules/@playcanvas/pcui/types/helpers/utils.d.ts +2 -0
- package/node_modules/@playcanvas/pcui/types/index.d.ts +20 -0
- package/node_modules/babylonjs-gltf2interface/babylon.glTF2Interface.d.ts +1655 -0
- package/node_modules/babylonjs-gltf2interface/license.md +71 -0
- package/node_modules/babylonjs-gltf2interface/package.json +26 -0
- package/package.json +31 -19
- package/dist/editor-plugin-hierarchy-command.d.ts +0 -19
- package/dist/editor-plugin-hierarchy-command.d.ts.map +0 -1
- package/dist/editor-plugin-hierarchy-command.js +0 -119
- package/dist/editor-plugin-hierarchy-command.js.map +0 -1
- package/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- package/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- package/node_modules/@babel/parser/lib/index.js.map +0 -1
- package/node_modules/@babel/types/lib/asserts/assertNode.js.map +0 -1
- package/node_modules/@babel/types/lib/asserts/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/productions.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +0 -1
- package/node_modules/@babel/types/lib/builders/validateNode.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/clone.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeep.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js.map +0 -1
- package/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/addComment.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/addComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/inheritsComments.js.map +0 -1
- package/node_modules/@babel/types/lib/comments/removeComments.js.map +0 -1
- package/node_modules/@babel/types/lib/constants/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/constants/index.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/ensureBlock.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toBlock.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toComputedKey.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toIdentifier.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/toStatement.js.map +0 -1
- package/node_modules/@babel/types/lib/converters/valueToNode.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/core.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/experimental.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/flow.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/index.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/jsx.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/misc.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/placeholders.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/typescript.js.map +0 -1
- package/node_modules/@babel/types/lib/definitions/utils.js.map +0 -1
- package/node_modules/@babel/types/lib/index.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/inherits.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/removeProperties.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +0 -1
- package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +0 -1
- package/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +0 -1
- package/node_modules/@babel/types/lib/traverse/traverse.js.map +0 -1
- package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/inherit.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +0 -1
- package/node_modules/@babel/types/lib/utils/shallowEqual.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/generated/index.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/is.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isBinding.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isImmutable.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isLet.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isNode.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isReferenced.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isScope.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isType.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/isVar.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +0 -1
- package/node_modules/@babel/types/lib/validators/validate.js.map +0 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +0 -37
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +0 -451
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts +0 -49
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +0 -627
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts +0 -52
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +0 -450
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts +0 -21
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js +0 -75
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts +0 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js +0 -92
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +0 -63
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +0 -285
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +0 -1
|
@@ -46,6 +46,14 @@ export type EditorCommand<TDocument = unknown, TPatch = unknown> = DocumentComma
|
|
|
46
46
|
export interface EditorSessionState<TDocument> {
|
|
47
47
|
persistedDocument: TDocument;
|
|
48
48
|
workingDocument: TDocument;
|
|
49
|
+
/** Monotonic identity for the current working document, including undo/redo replacements. */
|
|
50
|
+
documentRevision: number;
|
|
51
|
+
/**
|
|
52
|
+
* Monotonic revision for document changes that can affect a derived structural view.
|
|
53
|
+
* Consumers provide the command classifier; selection and structure-preserving edits
|
|
54
|
+
* do not advance this revision.
|
|
55
|
+
*/
|
|
56
|
+
documentStructureRevision: number;
|
|
49
57
|
source?: AuthoringSourceDescriptor;
|
|
50
58
|
selection: EditorSelectionState;
|
|
51
59
|
dirty: boolean;
|
|
@@ -59,6 +67,7 @@ export interface EditorSessionChange {
|
|
|
59
67
|
readonly documentChanged: boolean;
|
|
60
68
|
readonly selectionChanged: boolean;
|
|
61
69
|
readonly historyChanged: boolean;
|
|
70
|
+
readonly documentRevision: number;
|
|
62
71
|
}
|
|
63
72
|
export interface EditorSessionExternalRebaseInput<TDocument> {
|
|
64
73
|
persistedDocument: TDocument;
|
|
@@ -88,6 +97,10 @@ export interface EditorSessionStateOptions {
|
|
|
88
97
|
*/
|
|
89
98
|
cloneDocuments?: boolean;
|
|
90
99
|
}
|
|
100
|
+
export interface EditorSessionMarkSavedOptions {
|
|
101
|
+
/** Establishes a new history boundary at the saved document. */
|
|
102
|
+
resetHistory?: boolean;
|
|
103
|
+
}
|
|
91
104
|
export interface EditorSessionOptions<TDocument, TPatch = unknown> {
|
|
92
105
|
source?: AuthoringSourceDescriptor;
|
|
93
106
|
persistedDocument: TDocument;
|
|
@@ -98,6 +111,12 @@ export interface EditorSessionOptions<TDocument, TPatch = unknown> {
|
|
|
98
111
|
cloneDocument?: (document: TDocument) => TDocument;
|
|
99
112
|
compareDocuments?: (left: TDocument, right: TDocument) => boolean;
|
|
100
113
|
reduceDocument?: (document: TDocument, command: DocumentCommand<TDocument, TPatch>) => TDocument;
|
|
114
|
+
isDocumentStructureChange?(command: DocumentCommand<TDocument, TPatch>): boolean;
|
|
115
|
+
}
|
|
116
|
+
export interface EditorSessionForkOptions {
|
|
117
|
+
selection?: Partial<EditorSelectionState>;
|
|
118
|
+
onChange?(change: EditorSessionChange): void;
|
|
119
|
+
onChangeError?(error: unknown): void;
|
|
101
120
|
}
|
|
102
121
|
export interface UndoTransaction<TDocument> {
|
|
103
122
|
id: string;
|
|
@@ -106,12 +125,14 @@ export interface UndoTransaction<TDocument> {
|
|
|
106
125
|
beforeDocument: TDocument;
|
|
107
126
|
afterDocument: TDocument;
|
|
108
127
|
projectionImpact?: EditorProjectionImpact;
|
|
128
|
+
structureChanged: boolean;
|
|
109
129
|
createdAt: number;
|
|
110
130
|
}
|
|
111
131
|
export type EditorProjectionImpact = EditorProjectionIncrementalImpact | EditorProjectionRebuildImpact;
|
|
112
132
|
export interface EditorProjectionIncrementalImpact {
|
|
113
133
|
type: 'incremental';
|
|
114
134
|
syncTransformIds?: string[];
|
|
135
|
+
syncMetadataIds?: string[];
|
|
115
136
|
reprojectIds?: string[];
|
|
116
137
|
createdNodeIds?: string[];
|
|
117
138
|
deletedNodeIds?: string[];
|
|
@@ -147,21 +168,25 @@ export declare class EditorSession<TDocument, TPatch = unknown> {
|
|
|
147
168
|
private readonly cloneDocument;
|
|
148
169
|
private readonly compareDocuments;
|
|
149
170
|
private readonly reduceDocument?;
|
|
171
|
+
private readonly isDocumentStructureChange;
|
|
150
172
|
private undoStack;
|
|
151
173
|
private redoStack;
|
|
152
174
|
private nextTransactionId;
|
|
175
|
+
private documentRevision;
|
|
176
|
+
private documentStructureRevision;
|
|
153
177
|
constructor(options: EditorSessionOptions<TDocument, TPatch>);
|
|
154
178
|
getState(options?: EditorSessionStateOptions): EditorSessionState<TDocument>;
|
|
155
179
|
getWorkingDocument(): TDocument;
|
|
156
180
|
getSource(): AuthoringSourceDescriptor | undefined;
|
|
157
181
|
getSelection(): EditorSelectionState;
|
|
158
182
|
isDirty(): boolean;
|
|
183
|
+
fork(options?: EditorSessionForkOptions): EditorSession<TDocument, TPatch>;
|
|
159
184
|
canUndo(): boolean;
|
|
160
185
|
canRedo(): boolean;
|
|
161
186
|
dispatch(command: EditorCommand<TDocument, TPatch>, options?: EditorSessionDispatchOptions): EditorSessionDispatchResult<TDocument>;
|
|
162
187
|
undo(): EditorSessionHistoryResult<TDocument> | null;
|
|
163
188
|
redo(): EditorSessionHistoryResult<TDocument> | null;
|
|
164
|
-
markSaved(document: TDocument, source?: AuthoringSourceDescriptor): EditorSessionState<TDocument>;
|
|
189
|
+
markSaved(document: TDocument, source?: AuthoringSourceDescriptor, options?: EditorSessionMarkSavedOptions): EditorSessionState<TDocument>;
|
|
165
190
|
reset(document: TDocument, source?: AuthoringSourceDescriptor): EditorSessionState<TDocument>;
|
|
166
191
|
rebaseExternalDocuments(input: EditorSessionExternalRebaseInput<TDocument>): EditorSessionState<TDocument>;
|
|
167
192
|
private emitChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-session.d.ts","sourceRoot":"","sources":["../src/editor-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;CAC3C;AAED,MAAM,WAAW,oBAAoB,CAAC,MAAM,GAAG,OAAO,CAAE,SAAQ,iBAAiB;IAC/E,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB,CAAC,SAAS,CAAE,SAAQ,iBAAiB;IAC1E,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,CAAC,SAAS,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,IAC7D,oBAAoB,CAAC,MAAM,CAAC,GAC5B,sBAAsB,CAAC,SAAS,CAAC,CAAC;AAEtC,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,IAAI,EAAE,eAAe,CAAC;IACtB,WAA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B,CAAC,SAAS,EAAE,MAAM,EACnD,OAAO,EAAE,oBAAoB,CAAC,SAAS,EAAE,MAAM,CAAC,GAC/C,aAAa,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -85,9 +85,12 @@ export class EditorSession {
|
|
|
85
85
|
this.undoStack = [];
|
|
86
86
|
this.redoStack = [];
|
|
87
87
|
this.nextTransactionId = 1;
|
|
88
|
+
this.documentRevision = 0;
|
|
89
|
+
this.documentStructureRevision = 0;
|
|
88
90
|
this.cloneDocument = options.cloneDocument ?? defaultCloneDocument;
|
|
89
91
|
this.compareDocuments = options.compareDocuments ?? defaultCompareDocuments;
|
|
90
92
|
this.reduceDocument = options.reduceDocument;
|
|
93
|
+
this.isDocumentStructureChange = options.isDocumentStructureChange ?? (() => true);
|
|
91
94
|
this.source = cloneAuthoringSourceDescriptorOptional(options.source);
|
|
92
95
|
this.persistedDocument = this.cloneDocument(options.persistedDocument);
|
|
93
96
|
this.workingDocument = this.cloneDocument(options.workingDocument ?? options.persistedDocument);
|
|
@@ -101,6 +104,8 @@ export class EditorSession {
|
|
|
101
104
|
return {
|
|
102
105
|
persistedDocument: cloneDocuments ? this.cloneDocument(this.persistedDocument) : this.persistedDocument,
|
|
103
106
|
workingDocument: cloneDocuments ? this.cloneDocument(this.workingDocument) : this.workingDocument,
|
|
107
|
+
documentRevision: this.documentRevision,
|
|
108
|
+
documentStructureRevision: this.documentStructureRevision,
|
|
104
109
|
source: cloneAuthoringSourceDescriptorOptional(this.source),
|
|
105
110
|
selection: this.getSelection(),
|
|
106
111
|
dirty: this.dirty,
|
|
@@ -124,6 +129,19 @@ export class EditorSession {
|
|
|
124
129
|
isDirty() {
|
|
125
130
|
return this.dirty;
|
|
126
131
|
}
|
|
132
|
+
fork(options = {}) {
|
|
133
|
+
return new EditorSession({
|
|
134
|
+
source: this.source,
|
|
135
|
+
persistedDocument: this.workingDocument,
|
|
136
|
+
selection: options.selection,
|
|
137
|
+
onChange: options.onChange,
|
|
138
|
+
onChangeError: options.onChangeError,
|
|
139
|
+
cloneDocument: this.cloneDocument,
|
|
140
|
+
compareDocuments: this.compareDocuments,
|
|
141
|
+
reduceDocument: this.reduceDocument,
|
|
142
|
+
isDocumentStructureChange: this.isDocumentStructureChange,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
127
145
|
canUndo() {
|
|
128
146
|
return this.undoStack.length > 0;
|
|
129
147
|
}
|
|
@@ -145,6 +163,7 @@ export class EditorSession {
|
|
|
145
163
|
selectionChanged,
|
|
146
164
|
};
|
|
147
165
|
}
|
|
166
|
+
const structureChanged = this.isDocumentStructureChange(command);
|
|
148
167
|
const useFastDocumentPatch = command.type === 'document.patch' && options.assumeDocumentChanged === true;
|
|
149
168
|
const beforeDocument = useFastDocumentPatch ? this.workingDocument : this.cloneDocument(this.workingDocument);
|
|
150
169
|
if (command.type === 'document.replace') {
|
|
@@ -161,12 +180,15 @@ export class EditorSession {
|
|
|
161
180
|
: !this.compareDocuments(beforeDocument, this.workingDocument);
|
|
162
181
|
const selectionChanged = !selectionEquals(beforeSelection, this.selection);
|
|
163
182
|
if (documentChanged) {
|
|
183
|
+
this.documentRevision += 1;
|
|
184
|
+
if (structureChanged)
|
|
185
|
+
this.documentStructureRevision += 1;
|
|
164
186
|
this.dirty = options.assumeDirty === true
|
|
165
187
|
? true
|
|
166
188
|
: !this.compareDocuments(this.workingDocument, this.persistedDocument);
|
|
167
189
|
}
|
|
168
190
|
const transaction = documentChanged && isDocumentCommand(command)
|
|
169
|
-
? this.pushTransaction(command, beforeDocument, this.workingDocument, options)
|
|
191
|
+
? this.pushTransaction(command, beforeDocument, this.workingDocument, options, structureChanged)
|
|
170
192
|
: undefined;
|
|
171
193
|
this.emitChange('document', documentChanged, selectionChanged, !!transaction);
|
|
172
194
|
return {
|
|
@@ -187,6 +209,9 @@ export class EditorSession {
|
|
|
187
209
|
return null;
|
|
188
210
|
this.redoStack.push(transaction);
|
|
189
211
|
this.workingDocument = this.cloneDocument(transaction.beforeDocument);
|
|
212
|
+
this.documentRevision += 1;
|
|
213
|
+
if (transaction.structureChanged)
|
|
214
|
+
this.documentStructureRevision += 1;
|
|
190
215
|
this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);
|
|
191
216
|
this.emitChange('history', true, false, true);
|
|
192
217
|
return {
|
|
@@ -203,6 +228,9 @@ export class EditorSession {
|
|
|
203
228
|
return null;
|
|
204
229
|
this.undoStack.push(transaction);
|
|
205
230
|
this.workingDocument = this.cloneDocument(transaction.afterDocument);
|
|
231
|
+
this.documentRevision += 1;
|
|
232
|
+
if (transaction.structureChanged)
|
|
233
|
+
this.documentStructureRevision += 1;
|
|
206
234
|
this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);
|
|
207
235
|
this.emitChange('history', true, false, true);
|
|
208
236
|
return {
|
|
@@ -213,19 +241,29 @@ export class EditorSession {
|
|
|
213
241
|
documentChanged: true,
|
|
214
242
|
};
|
|
215
243
|
}
|
|
216
|
-
markSaved(document, source) {
|
|
244
|
+
markSaved(document, source, options = {}) {
|
|
217
245
|
if (source)
|
|
218
246
|
this.source = cloneAuthoringSourceDescriptorOptional(source);
|
|
247
|
+
const structureChanged = !this.compareDocuments(this.workingDocument, document);
|
|
219
248
|
this.persistedDocument = this.cloneDocument(document);
|
|
220
249
|
this.workingDocument = this.cloneDocument(document);
|
|
250
|
+
if (options.resetHistory) {
|
|
251
|
+
this.undoStack = [];
|
|
252
|
+
this.redoStack = [];
|
|
253
|
+
}
|
|
254
|
+
this.documentRevision += 1;
|
|
255
|
+
if (structureChanged)
|
|
256
|
+
this.documentStructureRevision += 1;
|
|
221
257
|
this.dirty = false;
|
|
222
|
-
this.emitChange('saved', true, false,
|
|
258
|
+
this.emitChange('saved', true, false, options.resetHistory === true);
|
|
223
259
|
return this.getState();
|
|
224
260
|
}
|
|
225
261
|
reset(document, source) {
|
|
226
262
|
this.source = cloneAuthoringSourceDescriptorOptional(source);
|
|
227
263
|
this.persistedDocument = this.cloneDocument(document);
|
|
228
264
|
this.workingDocument = this.cloneDocument(document);
|
|
265
|
+
this.documentRevision += 1;
|
|
266
|
+
this.documentStructureRevision += 1;
|
|
229
267
|
this.selection = normalizeSelection();
|
|
230
268
|
this.dirty = false;
|
|
231
269
|
this.undoStack = [];
|
|
@@ -234,13 +272,36 @@ export class EditorSession {
|
|
|
234
272
|
return this.getState();
|
|
235
273
|
}
|
|
236
274
|
rebaseExternalDocuments(input) {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
275
|
+
const nextPersistedDocument = this.cloneDocument(input.persistedDocument);
|
|
276
|
+
const nextWorkingDocument = this.cloneDocument(input.workingDocument);
|
|
277
|
+
const nextDirty = !this.compareDocuments(nextWorkingDocument, nextPersistedDocument);
|
|
278
|
+
const structureChanged = !this.compareDocuments(this.workingDocument, nextWorkingDocument);
|
|
279
|
+
const persistedDocumentForResult = this.cloneDocument(nextPersistedDocument);
|
|
280
|
+
const workingDocumentForResult = this.cloneDocument(nextWorkingDocument);
|
|
281
|
+
const sourceForResult = cloneAuthoringSourceDescriptorOptional(this.source);
|
|
282
|
+
const selectionForResult = this.getSelection();
|
|
283
|
+
const revision = this.documentRevision + 1;
|
|
284
|
+
this.persistedDocument = nextPersistedDocument;
|
|
285
|
+
this.workingDocument = nextWorkingDocument;
|
|
286
|
+
this.documentRevision = revision;
|
|
287
|
+
if (structureChanged)
|
|
288
|
+
this.documentStructureRevision += 1;
|
|
289
|
+
this.dirty = nextDirty;
|
|
240
290
|
this.undoStack = [];
|
|
241
291
|
this.redoStack = [];
|
|
242
292
|
this.emitChange('rebase', true, false, true);
|
|
243
|
-
return
|
|
293
|
+
return {
|
|
294
|
+
persistedDocument: persistedDocumentForResult,
|
|
295
|
+
workingDocument: workingDocumentForResult,
|
|
296
|
+
documentRevision: revision,
|
|
297
|
+
documentStructureRevision: this.documentStructureRevision,
|
|
298
|
+
source: sourceForResult,
|
|
299
|
+
selection: selectionForResult,
|
|
300
|
+
dirty: nextDirty,
|
|
301
|
+
canUndo: false,
|
|
302
|
+
canRedo: false,
|
|
303
|
+
history: { entries: [] },
|
|
304
|
+
};
|
|
244
305
|
}
|
|
245
306
|
emitChange(reason, documentChanged, selectionChanged, historyChanged) {
|
|
246
307
|
try {
|
|
@@ -250,6 +311,7 @@ export class EditorSession {
|
|
|
250
311
|
documentChanged,
|
|
251
312
|
selectionChanged,
|
|
252
313
|
historyChanged,
|
|
314
|
+
documentRevision: this.documentRevision,
|
|
253
315
|
}));
|
|
254
316
|
}
|
|
255
317
|
catch (error) {
|
|
@@ -259,11 +321,12 @@ export class EditorSession {
|
|
|
259
321
|
catch { /* Session observers cannot change an already-applied command. */ }
|
|
260
322
|
}
|
|
261
323
|
}
|
|
262
|
-
pushTransaction(command, beforeDocument, afterDocument, options) {
|
|
324
|
+
pushTransaction(command, beforeDocument, afterDocument, options, structureChanged) {
|
|
263
325
|
const previous = options.mergeWithPrevious ? this.undoStack[this.undoStack.length - 1] : undefined;
|
|
264
326
|
if (previous) {
|
|
265
327
|
previous.afterDocument = this.cloneDocument(afterDocument);
|
|
266
328
|
previous.projectionImpact = mergeProjectionImpact(previous.projectionImpact, command.projectionImpact);
|
|
329
|
+
previous.structureChanged || (previous.structureChanged = structureChanged);
|
|
267
330
|
this.redoStack = [];
|
|
268
331
|
return {
|
|
269
332
|
...previous,
|
|
@@ -279,6 +342,7 @@ export class EditorSession {
|
|
|
279
342
|
beforeDocument: this.cloneDocument(beforeDocument),
|
|
280
343
|
afterDocument: this.cloneDocument(afterDocument),
|
|
281
344
|
...(command.projectionImpact ? { projectionImpact: cloneProjectionImpact(command.projectionImpact) } : {}),
|
|
345
|
+
structureChanged,
|
|
282
346
|
createdAt: Date.now(),
|
|
283
347
|
};
|
|
284
348
|
this.undoStack.push(transaction);
|
|
@@ -305,6 +369,7 @@ function cloneProjectionImpact(impact) {
|
|
|
305
369
|
return {
|
|
306
370
|
type: 'incremental',
|
|
307
371
|
...(impact.syncTransformIds ? { syncTransformIds: [...impact.syncTransformIds] } : {}),
|
|
372
|
+
...(impact.syncMetadataIds ? { syncMetadataIds: [...impact.syncMetadataIds] } : {}),
|
|
308
373
|
...(impact.reprojectIds ? { reprojectIds: [...impact.reprojectIds] } : {}),
|
|
309
374
|
...(impact.createdNodeIds ? { createdNodeIds: [...impact.createdNodeIds] } : {}),
|
|
310
375
|
...(impact.deletedNodeIds ? { deletedNodeIds: [...impact.deletedNodeIds] } : {}),
|
|
@@ -330,6 +395,10 @@ function mergeProjectionImpact(previous, next) {
|
|
|
330
395
|
...(previous.syncTransformIds ?? []),
|
|
331
396
|
...(next.syncTransformIds ?? []),
|
|
332
397
|
]),
|
|
398
|
+
syncMetadataIds: uniqueIds([
|
|
399
|
+
...(previous.syncMetadataIds ?? []),
|
|
400
|
+
...(next.syncMetadataIds ?? []),
|
|
401
|
+
]),
|
|
333
402
|
reprojectIds: uniqueIds([
|
|
334
403
|
...(previous.reprojectIds ?? []),
|
|
335
404
|
...(next.reprojectIds ?? []),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-session.js","sourceRoot":"","sources":["../src/editor-session.ts"],"names":[],"mappings":"AAuLA,SAAS,oBAAoB,CAAY,QAAmB;IAC1D,MAAM,iBAAiB,GAAI,UAAkC,CAAC,eAAe,CAAC;IAC9E,IAAI,OAAO,iBAAiB,KAAK,UAAU;QAAE,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAc,CAAC;AAC3D,CAAC;AAED,SAAS,uBAAuB,CAAY,IAAe,EAAE,KAAgB;IAC3E,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAS,kBAAkB,CAAC,SAAyC;IACnE,MAAM,WAAW,GAAG,SAAS,CAAC,SAAS,EAAE,WAAW,IAAI,EAAE,C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gD;IAEhD,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import type { AuthoringSourceDescriptor } from './authoring-source';\n\nexport interface EditorSelectionState {\n selectedIds: string[];\n activeId: string | null;\n}\n\nexport interface EditorCommandBase {\n type: string;\n label?: string;\n projectionImpact?: EditorProjectionImpact;\n}\n\nexport interface DocumentPatchCommand<TPatch = unknown> extends EditorCommandBase {\n type: 'document.patch';\n patch: TPatch;\n targetId?: string;\n propertyPath?: string;\n}\n\nexport interface DocumentReplaceCommand<TDocument> extends EditorCommandBase {\n type: 'document.replace';\n document: TDocument;\n}\n\nexport type DocumentCommand<TDocument = unknown, TPatch = unknown> =\n | DocumentPatchCommand<TPatch>\n | DocumentReplaceCommand<TDocument>;\n\nexport interface SelectionReplaceCommand extends EditorCommandBase {\n type: 'selection.replace';\n selectedIds: string[];\n activeId?: string | null;\n}\n\nexport interface SelectionAddCommand extends EditorCommandBase {\n type: 'selection.add';\n selectedIds: string[];\n activeId?: string | null;\n}\n\nexport interface SelectionRemoveCommand extends EditorCommandBase {\n type: 'selection.remove';\n selectedIds: string[];\n}\n\nexport interface SelectionToggleCommand extends EditorCommandBase {\n type: 'selection.toggle';\n selectedIds: string[];\n activeId?: string | null;\n}\n\nexport interface SelectionClearCommand extends EditorCommandBase {\n type: 'selection.clear';\n}\n\nexport type SelectionCommand =\n | SelectionReplaceCommand\n | SelectionAddCommand\n | SelectionRemoveCommand\n | SelectionToggleCommand\n | SelectionClearCommand;\n\nexport type EditorCommand<TDocument = unknown, TPatch = unknown> =\n | DocumentCommand<TDocument, TPatch>\n | SelectionCommand;\n\nexport interface EditorSessionState<TDocument> {\n persistedDocument: TDocument;\n workingDocument: TDocument;\n source?: AuthoringSourceDescriptor;\n selection: EditorSelectionState;\n dirty: boolean;\n canUndo: boolean;\n canRedo: boolean;\n history: EditorSessionHistoryView;\n}\n\nexport interface EditorSessionChange {\n readonly reason: 'selection' | 'document' | 'history' | 'saved' | 'reset' | 'rebase';\n readonly dirty: boolean;\n readonly documentChanged: boolean;\n readonly selectionChanged: boolean;\n readonly historyChanged: boolean;\n}\n\nexport interface EditorSessionExternalRebaseInput<TDocument> {\n persistedDocument: TDocument;\n workingDocument: TDocument;\n}\n\nexport interface EditorSessionDispatchResult<TDocument> {\n command: EditorCommand;\n workingDocument: TDocument;\n selection: EditorSelectionState;\n dirty: boolean;\n documentChanged: boolean;\n selectionChanged: boolean;\n transaction?: UndoTransaction<TDocument>;\n}\n\nexport interface EditorSessionDispatchOptions {\n mergeWithPrevious?: boolean;\n assumeDocumentChanged?: boolean;\n assumeDirty?: boolean;\n clonePatchInput?: boolean;\n cloneResultDocument?: boolean;\n}\n\nexport interface EditorSessionStateOptions {\n /**\n * Defaults to true to preserve the historical snapshot semantics.\n * Performance-sensitive editor UI code can pass false when it treats\n * documents as read-only during render.\n */\n cloneDocuments?: boolean;\n}\n\nexport interface EditorSessionOptions<TDocument, TPatch = unknown> {\n source?: AuthoringSourceDescriptor;\n persistedDocument: TDocument;\n workingDocument?: TDocument;\n selection?: Partial<EditorSelectionState>;\n onChange?(change: EditorSessionChange): void;\n onChangeError?(error: unknown): void;\n cloneDocument?: (document: TDocument) => TDocument;\n compareDocuments?: (left: TDocument, right: TDocument) => boolean;\n reduceDocument?: (\n document: TDocument,\n command: DocumentCommand<TDocument, TPatch>,\n ) => TDocument;\n}\n\nexport interface UndoTransaction<TDocument> {\n id: string;\n label: string;\n commandType: string;\n beforeDocument: TDocument;\n afterDocument: TDocument;\n projectionImpact?: EditorProjectionImpact;\n createdAt: number;\n}\n\nexport type EditorProjectionImpact =\n | EditorProjectionIncrementalImpact\n | EditorProjectionRebuildImpact;\n\nexport interface EditorProjectionIncrementalImpact {\n type: 'incremental';\n syncTransformIds?: string[];\n reprojectIds?: string[];\n createdNodeIds?: string[];\n deletedNodeIds?: string[];\n}\n\nexport interface EditorProjectionRebuildImpact {\n type: 'rebuild';\n reason?: string;\n}\n\nexport interface EditorSessionHistoryEntry {\n id: string;\n label: string;\n commandType: string;\n createdAt: number;\n}\n\nexport interface EditorSessionHistoryView {\n entries: EditorSessionHistoryEntry[];\n}\n\nexport interface EditorSessionHistoryResult<TDocument> {\n transaction: UndoTransaction<TDocument>;\n workingDocument: TDocument;\n selection: EditorSelectionState;\n dirty: boolean;\n documentChanged: true;\n}\n\ntype StructuredCloneHost = typeof globalThis & {\n structuredClone?: <T>(value: T) => T;\n};\n\nfunction defaultCloneDocument<TDocument>(document: TDocument): TDocument {\n const structuredCloneFn = (globalThis as StructuredCloneHost).structuredClone;\n if (typeof structuredCloneFn === 'function') return structuredCloneFn(document);\n return JSON.parse(JSON.stringify(document)) as TDocument;\n}\n\nfunction defaultCompareDocuments<TDocument>(left: TDocument, right: TDocument): boolean {\n return JSON.stringify(left) === JSON.stringify(right);\n}\n\nfunction normalizeSelection(selection?: Partial<EditorSelectionState>): EditorSelectionState {\n const selectedIds = uniqueIds(selection?.selectedIds ?? []);\n const activeId = selection?.activeId && selectedIds.includes(selection.activeId)\n ? selection.activeId\n : selectedIds[selectedIds.length - 1] ?? null;\n return {\n selectedIds,\n activeId,\n };\n}\n\nfunction uniqueIds(ids: readonly string[]): string[] {\n const result: string[] = [];\n const seen = new Set<string>();\n for (const id of ids) {\n if (!id || seen.has(id)) continue;\n seen.add(id);\n result.push(id);\n }\n return result;\n}\n\nfunction selectionEquals(left: EditorSelectionState, right: EditorSelectionState): boolean {\n if (left.activeId !== right.activeId) return false;\n if (left.selectedIds.length !== right.selectedIds.length) return false;\n return left.selectedIds.every((id, index) => right.selectedIds[index] === id);\n}\n\nfunction applySelectionCommand(\n selection: EditorSelectionState,\n command: SelectionCommand,\n): EditorSelectionState {\n if (command.type === 'selection.clear') return normalizeSelection();\n\n if (command.type === 'selection.replace') {\n return normalizeSelection({\n selectedIds: command.selectedIds,\n activeId: command.activeId,\n });\n }\n\n if (command.type === 'selection.add') {\n const selectedIds = uniqueIds([...selection.selectedIds, ...command.selectedIds]);\n return normalizeSelection({\n selectedIds,\n activeId: command.activeId ?? command.selectedIds[command.selectedIds.length - 1] ?? selection.activeId,\n });\n }\n\n if (command.type === 'selection.remove') {\n const removeIds = new Set(command.selectedIds);\n const selectedIds = selection.selectedIds.filter(id => !removeIds.has(id));\n return normalizeSelection({\n selectedIds,\n activeId: selection.activeId && selectedIds.includes(selection.activeId)\n ? selection.activeId\n : selectedIds[selectedIds.length - 1] ?? null,\n });\n }\n\n const selectedIds = [...selection.selectedIds];\n let activeId = selection.activeId;\n for (const id of command.selectedIds) {\n const index = selectedIds.indexOf(id);\n if (index >= 0) {\n selectedIds.splice(index, 1);\n if (activeId === id) activeId = selectedIds[selectedIds.length - 1] ?? null;\n } else if (id) {\n selectedIds.push(id);\n activeId = id;\n }\n }\n return normalizeSelection({\n selectedIds,\n activeId: command.activeId ?? activeId,\n });\n}\n\nexport class EditorSession<TDocument, TPatch = unknown> {\n private source?: AuthoringSourceDescriptor;\n private persistedDocument: TDocument;\n private workingDocument: TDocument;\n private selection: EditorSelectionState;\n private dirty: boolean;\n private readonly onChange?: (change: EditorSessionChange) => void;\n private readonly onChangeError?: (error: unknown) => void;\n private readonly cloneDocument: (document: TDocument) => TDocument;\n private readonly compareDocuments: (left: TDocument, right: TDocument) => boolean;\n private readonly reduceDocument?: (\n document: TDocument,\n command: DocumentCommand<TDocument, TPatch>,\n ) => TDocument;\n private undoStack: UndoTransaction<TDocument>[] = [];\n private redoStack: UndoTransaction<TDocument>[] = [];\n private nextTransactionId = 1;\n\n constructor(options: EditorSessionOptions<TDocument, TPatch>) {\n this.cloneDocument = options.cloneDocument ?? defaultCloneDocument;\n this.compareDocuments = options.compareDocuments ?? defaultCompareDocuments;\n this.reduceDocument = options.reduceDocument;\n this.source = cloneAuthoringSourceDescriptorOptional(options.source);\n this.persistedDocument = this.cloneDocument(options.persistedDocument);\n this.workingDocument = this.cloneDocument(options.workingDocument ?? options.persistedDocument);\n this.selection = normalizeSelection(options.selection);\n this.onChange = options.onChange;\n this.onChangeError = options.onChangeError;\n this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);\n }\n\n getState(options: EditorSessionStateOptions = {}): EditorSessionState<TDocument> {\n const cloneDocuments = options.cloneDocuments !== false;\n return {\n persistedDocument: cloneDocuments ? this.cloneDocument(this.persistedDocument) : this.persistedDocument,\n workingDocument: cloneDocuments ? this.cloneDocument(this.workingDocument) : this.workingDocument,\n source: cloneAuthoringSourceDescriptorOptional(this.source),\n selection: this.getSelection(),\n dirty: this.dirty,\n canUndo: this.canUndo(),\n canRedo: this.canRedo(),\n history: this.getHistoryView(),\n };\n }\n\n getWorkingDocument(): TDocument {\n return this.cloneDocument(this.workingDocument);\n }\n\n getSource(): AuthoringSourceDescriptor | undefined {\n return cloneAuthoringSourceDescriptorOptional(this.source);\n }\n\n getSelection(): EditorSelectionState {\n return {\n selectedIds: [...this.selection.selectedIds],\n activeId: this.selection.activeId,\n };\n }\n\n isDirty(): boolean {\n return this.dirty;\n }\n\n canUndo(): boolean {\n return this.undoStack.length > 0;\n }\n\n canRedo(): boolean {\n return this.redoStack.length > 0;\n }\n\n dispatch(\n command: EditorCommand<TDocument, TPatch>,\n options: EditorSessionDispatchOptions = {},\n ): EditorSessionDispatchResult<TDocument> {\n const beforeSelection = this.selection;\n if (isSelectionCommand(command)) {\n this.selection = applySelectionCommand(this.selection, command);\n const selectionChanged = !selectionEquals(beforeSelection, this.selection);\n this.emitChange('selection', false, selectionChanged, false);\n return {\n command,\n workingDocument: this.workingDocument,\n selection: this.getSelection(),\n dirty: this.dirty,\n documentChanged: false,\n selectionChanged,\n };\n }\n\n const useFastDocumentPatch = command.type === 'document.patch' && options.assumeDocumentChanged === true;\n const beforeDocument = useFastDocumentPatch ? this.workingDocument : this.cloneDocument(this.workingDocument);\n if (command.type === 'document.replace') {\n this.workingDocument = this.cloneDocument(command.document);\n } else if (command.type === 'document.patch') {\n if (!this.reduceDocument) {\n throw new Error('EditorSession requires reduceDocument to handle document.patch commands.');\n }\n this.workingDocument = this.reduceDocument(\n options.clonePatchInput === false ? this.workingDocument : this.cloneDocument(this.workingDocument),\n command,\n );\n }\n const documentChanged = options.assumeDocumentChanged === true\n ? true\n : !this.compareDocuments(beforeDocument, this.workingDocument);\n const selectionChanged = !selectionEquals(beforeSelection, this.selection);\n if (documentChanged) {\n this.dirty = options.assumeDirty === true\n ? true\n : !this.compareDocuments(this.workingDocument, this.persistedDocument);\n }\n const transaction = documentChanged && isDocumentCommand(command)\n ? this.pushTransaction(command, beforeDocument, this.workingDocument, options)\n : undefined;\n this.emitChange('document', documentChanged, selectionChanged, !!transaction);\n return {\n command,\n workingDocument: options.cloneResultDocument === false\n ? this.workingDocument\n : this.cloneDocument(this.workingDocument),\n selection: this.getSelection(),\n dirty: this.isDirty(),\n documentChanged,\n selectionChanged,\n transaction,\n };\n }\n\n undo(): EditorSessionHistoryResult<TDocument> | null {\n const transaction = this.undoStack.pop();\n if (!transaction) return null;\n this.redoStack.push(transaction);\n this.workingDocument = this.cloneDocument(transaction.beforeDocument);\n this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);\n this.emitChange('history', true, false, true);\n return {\n transaction,\n workingDocument: this.cloneDocument(this.workingDocument),\n selection: this.getSelection(),\n dirty: this.isDirty(),\n documentChanged: true,\n };\n }\n\n redo(): EditorSessionHistoryResult<TDocument> | null {\n const transaction = this.redoStack.pop();\n if (!transaction) return null;\n this.undoStack.push(transaction);\n this.workingDocument = this.cloneDocument(transaction.afterDocument);\n this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);\n this.emitChange('history', true, false, true);\n return {\n transaction,\n workingDocument: this.cloneDocument(this.workingDocument),\n selection: this.getSelection(),\n dirty: this.isDirty(),\n documentChanged: true,\n };\n }\n\n markSaved(document: TDocument, source?: AuthoringSourceDescriptor): EditorSessionState<TDocument> {\n if (source) this.source = cloneAuthoringSourceDescriptorOptional(source);\n this.persistedDocument = this.cloneDocument(document);\n this.workingDocument = this.cloneDocument(document);\n this.dirty = false;\n this.emitChange('saved', true, false, false);\n return this.getState();\n }\n\n reset(document: TDocument, source?: AuthoringSourceDescriptor): EditorSessionState<TDocument> {\n this.source = cloneAuthoringSourceDescriptorOptional(source);\n this.persistedDocument = this.cloneDocument(document);\n this.workingDocument = this.cloneDocument(document);\n this.selection = normalizeSelection();\n this.dirty = false;\n this.undoStack = [];\n this.redoStack = [];\n this.emitChange('reset', true, true, true);\n return this.getState();\n }\n\n rebaseExternalDocuments(\n input: EditorSessionExternalRebaseInput<TDocument>,\n ): EditorSessionState<TDocument> {\n this.persistedDocument = this.cloneDocument(input.persistedDocument);\n this.workingDocument = this.cloneDocument(input.workingDocument);\n this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);\n this.undoStack = [];\n this.redoStack = [];\n this.emitChange('rebase', true, false, true);\n return this.getState();\n }\n\n private emitChange(\n reason: EditorSessionChange['reason'],\n documentChanged: boolean,\n selectionChanged: boolean,\n historyChanged: boolean,\n ): void {\n try {\n this.onChange?.(Object.freeze({\n reason,\n dirty: this.dirty,\n documentChanged,\n selectionChanged,\n historyChanged,\n }));\n } catch (error) {\n try { this.onChangeError?.(error); }\n catch { /* Session observers cannot change an already-applied command. */ }\n }\n }\n\n private pushTransaction(\n command: DocumentCommand<TDocument, TPatch>,\n beforeDocument: TDocument,\n afterDocument: TDocument,\n options: EditorSessionDispatchOptions,\n ): UndoTransaction<TDocument> {\n const previous = options.mergeWithPrevious ? this.undoStack[this.undoStack.length - 1] : undefined;\n if (previous) {\n previous.afterDocument = this.cloneDocument(afterDocument);\n previous.projectionImpact = mergeProjectionImpact(previous.projectionImpact, command.projectionImpact);\n this.redoStack = [];\n return {\n ...previous,\n beforeDocument: this.cloneDocument(previous.beforeDocument),\n afterDocument: this.cloneDocument(previous.afterDocument),\n projectionImpact: cloneProjectionImpact(previous.projectionImpact),\n };\n }\n const transaction: UndoTransaction<TDocument> = {\n id: `transaction_${this.nextTransactionId++}`,\n label: command.label ?? command.type,\n commandType: command.type,\n beforeDocument: this.cloneDocument(beforeDocument),\n afterDocument: this.cloneDocument(afterDocument),\n ...(command.projectionImpact ? { projectionImpact: cloneProjectionImpact(command.projectionImpact) } : {}),\n createdAt: Date.now(),\n };\n this.undoStack.push(transaction);\n this.redoStack = [];\n return transaction;\n }\n\n private getHistoryView(): EditorSessionHistoryView {\n return {\n entries: [...this.undoStack, ...this.redoStack]\n .map(toHistoryEntry)\n .sort((left, right) => right.createdAt - left.createdAt),\n };\n }\n}\n\nfunction cloneProjectionImpact(\n impact: EditorProjectionImpact | undefined,\n): EditorProjectionImpact | undefined {\n if (!impact) return undefined;\n if (impact.type === 'rebuild') {\n return {\n type: 'rebuild',\n ...(impact.reason ? { reason: impact.reason } : {}),\n };\n }\n return {\n type: 'incremental',\n ...(impact.syncTransformIds ? { syncTransformIds: [...impact.syncTransformIds] } : {}),\n ...(impact.reprojectIds ? { reprojectIds: [...impact.reprojectIds] } : {}),\n ...(impact.createdNodeIds ? { createdNodeIds: [...impact.createdNodeIds] } : {}),\n ...(impact.deletedNodeIds ? { deletedNodeIds: [...impact.deletedNodeIds] } : {}),\n };\n}\n\nfunction mergeProjectionImpact(\n previous: EditorProjectionImpact | undefined,\n next: EditorProjectionImpact | undefined,\n): EditorProjectionImpact | undefined {\n if (!previous || !next) return undefined;\n if (previous.type === 'rebuild' || next.type === 'rebuild') {\n const reason = previous.type === 'rebuild'\n ? previous.reason\n : next.type === 'rebuild'\n ? next.reason\n : undefined;\n return {\n type: 'rebuild',\n ...(reason ? { reason } : {}),\n };\n }\n return {\n type: 'incremental',\n syncTransformIds: uniqueIds([\n ...(previous.syncTransformIds ?? []),\n ...(next.syncTransformIds ?? []),\n ]),\n reprojectIds: uniqueIds([\n ...(previous.reprojectIds ?? []),\n ...(next.reprojectIds ?? []),\n ]),\n createdNodeIds: uniqueIds([\n ...(previous.createdNodeIds ?? []),\n ...(next.createdNodeIds ?? []),\n ]),\n deletedNodeIds: uniqueIds([\n ...(previous.deletedNodeIds ?? []),\n ...(next.deletedNodeIds ?? []),\n ]),\n };\n}\n\nfunction toHistoryEntry<TDocument>(\n transaction: UndoTransaction<TDocument>,\n): EditorSessionHistoryEntry {\n return {\n id: transaction.id,\n label: transaction.label,\n commandType: transaction.commandType,\n createdAt: transaction.createdAt,\n };\n}\n\nfunction cloneAuthoringSourceDescriptorOptional(\n source: AuthoringSourceDescriptor | undefined,\n): AuthoringSourceDescriptor | undefined {\n if (!source) return undefined;\n return {\n ...source,\n ref: { ...source.ref },\n capabilities: source.capabilities ? { ...source.capabilities } : undefined,\n metadata: source.metadata ? { ...source.metadata } : undefined,\n };\n}\n\nfunction isDocumentCommand<TDocument, TPatch>(\n command: EditorCommand<TDocument, TPatch>,\n): command is DocumentCommand<TDocument, TPatch> {\n return command.type === 'document.patch' || command.type === 'document.replace';\n}\n\nfunction isSelectionCommand<TDocument, TPatch>(\n command: EditorCommand<TDocument, TPatch>,\n): command is SelectionCommand {\n return command.type === 'selection.replace'\n || command.type === 'selection.add'\n || command.type === 'selection.remove'\n || command.type === 'selection.toggle'\n || command.type === 'selection.clear';\n}\n\nexport function createEditorSession<TDocument>(\n options: EditorSessionOptions<TDocument>,\n): EditorSession<TDocument>;\nexport function createEditorSession<TDocument, TPatch>(\n options: EditorSessionOptions<TDocument, TPatch>,\n): EditorSession<TDocument, TPatch>;\nexport function createEditorSession<TDocument, TPatch = unknown>(\n options: EditorSessionOptions<TDocument, TPatch>,\n): EditorSession<TDocument, TPatch> {\n return new EditorSession(options);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"editor-session.js","sourceRoot":"","sources":["../src/editor-session.ts"],"names":[],"mappings":"AA8MA,SAAS,oBAAoB,CAAY,QAAmB;IAC1D,MAAM,iBAAiB,GAAI,UAAkC,CAAC,eAAe,CAAC;IAC9E,IAAI,OAAO,iBAAiB,KAAK,UAAU;QAAE,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,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AI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAC9B,OAAO;QACL,GAAG,MAAM;QACT,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE;QACtB,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS;QAC1E,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS;KAC/D,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CACxB,OAAyC;IAEzC,OAAO,OAAO,CAAC,IAAI,KAAK,gBAAgB,IAAI,OAAO,CAAC,IAAI,KAAK,kBAAkB,CAAC;AAClF,CAAC;AAED,SAAS,kBAAkB,CACzB,OAAyC;IAEzC,OAAO,OAAO,CAAC,IAAI,KAAK,mBAAmB;WACtC,OAAO,CAAC,IAAI,KAAK,eAAe;WAChC,OAAO,CAAC,IAAI,KAAK,kBAAkB;WACnC,OAAO,CAAC,IAAI,KAAK,kBAAkB;WACnC,OAAO,CAAC,IAAI,KAAK,iBAAiB,CAAC;AAC1C,CAAC;AAQD,MAAM,UAAU,mBAAmB,CACjC,OAAgD;IAEhD,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import type { AuthoringSourceDescriptor } from './authoring-source';\n\nexport interface EditorSelectionState {\n selectedIds: string[];\n activeId: string | null;\n}\n\nexport interface EditorCommandBase {\n type: string;\n label?: string;\n projectionImpact?: EditorProjectionImpact;\n}\n\nexport interface DocumentPatchCommand<TPatch = unknown> extends EditorCommandBase {\n type: 'document.patch';\n patch: TPatch;\n targetId?: string;\n propertyPath?: string;\n}\n\nexport interface DocumentReplaceCommand<TDocument> extends EditorCommandBase {\n type: 'document.replace';\n document: TDocument;\n}\n\nexport type DocumentCommand<TDocument = unknown, TPatch = unknown> =\n | DocumentPatchCommand<TPatch>\n | DocumentReplaceCommand<TDocument>;\n\nexport interface SelectionReplaceCommand extends EditorCommandBase {\n type: 'selection.replace';\n selectedIds: string[];\n activeId?: string | null;\n}\n\nexport interface SelectionAddCommand extends EditorCommandBase {\n type: 'selection.add';\n selectedIds: string[];\n activeId?: string | null;\n}\n\nexport interface SelectionRemoveCommand extends EditorCommandBase {\n type: 'selection.remove';\n selectedIds: string[];\n}\n\nexport interface SelectionToggleCommand extends EditorCommandBase {\n type: 'selection.toggle';\n selectedIds: string[];\n activeId?: string | null;\n}\n\nexport interface SelectionClearCommand extends EditorCommandBase {\n type: 'selection.clear';\n}\n\nexport type SelectionCommand =\n | SelectionReplaceCommand\n | SelectionAddCommand\n | SelectionRemoveCommand\n | SelectionToggleCommand\n | SelectionClearCommand;\n\nexport type EditorCommand<TDocument = unknown, TPatch = unknown> =\n | DocumentCommand<TDocument, TPatch>\n | SelectionCommand;\n\nexport interface EditorSessionState<TDocument> {\n persistedDocument: TDocument;\n workingDocument: TDocument;\n /** Monotonic identity for the current working document, including undo/redo replacements. */\n documentRevision: number;\n /**\n * Monotonic revision for document changes that can affect a derived structural view.\n * Consumers provide the command classifier; selection and structure-preserving edits\n * do not advance this revision.\n */\n documentStructureRevision: number;\n source?: AuthoringSourceDescriptor;\n selection: EditorSelectionState;\n dirty: boolean;\n canUndo: boolean;\n canRedo: boolean;\n history: EditorSessionHistoryView;\n}\n\nexport interface EditorSessionChange {\n readonly reason: 'selection' | 'document' | 'history' | 'saved' | 'reset' | 'rebase';\n readonly dirty: boolean;\n readonly documentChanged: boolean;\n readonly selectionChanged: boolean;\n readonly historyChanged: boolean;\n readonly documentRevision: number;\n}\n\nexport interface EditorSessionExternalRebaseInput<TDocument> {\n persistedDocument: TDocument;\n workingDocument: TDocument;\n}\n\nexport interface EditorSessionDispatchResult<TDocument> {\n command: EditorCommand;\n workingDocument: TDocument;\n selection: EditorSelectionState;\n dirty: boolean;\n documentChanged: boolean;\n selectionChanged: boolean;\n transaction?: UndoTransaction<TDocument>;\n}\n\nexport interface EditorSessionDispatchOptions {\n mergeWithPrevious?: boolean;\n assumeDocumentChanged?: boolean;\n assumeDirty?: boolean;\n clonePatchInput?: boolean;\n cloneResultDocument?: boolean;\n}\n\nexport interface EditorSessionStateOptions {\n /**\n * Defaults to true to preserve the historical snapshot semantics.\n * Performance-sensitive editor UI code can pass false when it treats\n * documents as read-only during render.\n */\n cloneDocuments?: boolean;\n}\n\nexport interface EditorSessionMarkSavedOptions {\n /** Establishes a new history boundary at the saved document. */\n resetHistory?: boolean;\n}\n\nexport interface EditorSessionOptions<TDocument, TPatch = unknown> {\n source?: AuthoringSourceDescriptor;\n persistedDocument: TDocument;\n workingDocument?: TDocument;\n selection?: Partial<EditorSelectionState>;\n onChange?(change: EditorSessionChange): void;\n onChangeError?(error: unknown): void;\n cloneDocument?: (document: TDocument) => TDocument;\n compareDocuments?: (left: TDocument, right: TDocument) => boolean;\n reduceDocument?: (\n document: TDocument,\n command: DocumentCommand<TDocument, TPatch>,\n ) => TDocument;\n isDocumentStructureChange?(command: DocumentCommand<TDocument, TPatch>): boolean;\n}\n\nexport interface EditorSessionForkOptions {\n selection?: Partial<EditorSelectionState>;\n onChange?(change: EditorSessionChange): void;\n onChangeError?(error: unknown): void;\n}\n\nexport interface UndoTransaction<TDocument> {\n id: string;\n label: string;\n commandType: string;\n beforeDocument: TDocument;\n afterDocument: TDocument;\n projectionImpact?: EditorProjectionImpact;\n structureChanged: boolean;\n createdAt: number;\n}\n\nexport type EditorProjectionImpact =\n | EditorProjectionIncrementalImpact\n | EditorProjectionRebuildImpact;\n\nexport interface EditorProjectionIncrementalImpact {\n type: 'incremental';\n syncTransformIds?: string[];\n syncMetadataIds?: string[];\n reprojectIds?: string[];\n createdNodeIds?: string[];\n deletedNodeIds?: string[];\n}\n\nexport interface EditorProjectionRebuildImpact {\n type: 'rebuild';\n reason?: string;\n}\n\nexport interface EditorSessionHistoryEntry {\n id: string;\n label: string;\n commandType: string;\n createdAt: number;\n}\n\nexport interface EditorSessionHistoryView {\n entries: EditorSessionHistoryEntry[];\n}\n\nexport interface EditorSessionHistoryResult<TDocument> {\n transaction: UndoTransaction<TDocument>;\n workingDocument: TDocument;\n selection: EditorSelectionState;\n dirty: boolean;\n documentChanged: true;\n}\n\ntype StructuredCloneHost = typeof globalThis & {\n structuredClone?: <T>(value: T) => T;\n};\n\nfunction defaultCloneDocument<TDocument>(document: TDocument): TDocument {\n const structuredCloneFn = (globalThis as StructuredCloneHost).structuredClone;\n if (typeof structuredCloneFn === 'function') return structuredCloneFn(document);\n return JSON.parse(JSON.stringify(document)) as TDocument;\n}\n\nfunction defaultCompareDocuments<TDocument>(left: TDocument, right: TDocument): boolean {\n return JSON.stringify(left) === JSON.stringify(right);\n}\n\nfunction normalizeSelection(selection?: Partial<EditorSelectionState>): EditorSelectionState {\n const selectedIds = uniqueIds(selection?.selectedIds ?? []);\n const activeId = selection?.activeId && selectedIds.includes(selection.activeId)\n ? selection.activeId\n : selectedIds[selectedIds.length - 1] ?? null;\n return {\n selectedIds,\n activeId,\n };\n}\n\nfunction uniqueIds(ids: readonly string[]): string[] {\n const result: string[] = [];\n const seen = new Set<string>();\n for (const id of ids) {\n if (!id || seen.has(id)) continue;\n seen.add(id);\n result.push(id);\n }\n return result;\n}\n\nfunction selectionEquals(left: EditorSelectionState, right: EditorSelectionState): boolean {\n if (left.activeId !== right.activeId) return false;\n if (left.selectedIds.length !== right.selectedIds.length) return false;\n return left.selectedIds.every((id, index) => right.selectedIds[index] === id);\n}\n\nfunction applySelectionCommand(\n selection: EditorSelectionState,\n command: SelectionCommand,\n): EditorSelectionState {\n if (command.type === 'selection.clear') return normalizeSelection();\n\n if (command.type === 'selection.replace') {\n return normalizeSelection({\n selectedIds: command.selectedIds,\n activeId: command.activeId,\n });\n }\n\n if (command.type === 'selection.add') {\n const selectedIds = uniqueIds([...selection.selectedIds, ...command.selectedIds]);\n return normalizeSelection({\n selectedIds,\n activeId: command.activeId ?? command.selectedIds[command.selectedIds.length - 1] ?? selection.activeId,\n });\n }\n\n if (command.type === 'selection.remove') {\n const removeIds = new Set(command.selectedIds);\n const selectedIds = selection.selectedIds.filter(id => !removeIds.has(id));\n return normalizeSelection({\n selectedIds,\n activeId: selection.activeId && selectedIds.includes(selection.activeId)\n ? selection.activeId\n : selectedIds[selectedIds.length - 1] ?? null,\n });\n }\n\n const selectedIds = [...selection.selectedIds];\n let activeId = selection.activeId;\n for (const id of command.selectedIds) {\n const index = selectedIds.indexOf(id);\n if (index >= 0) {\n selectedIds.splice(index, 1);\n if (activeId === id) activeId = selectedIds[selectedIds.length - 1] ?? null;\n } else if (id) {\n selectedIds.push(id);\n activeId = id;\n }\n }\n return normalizeSelection({\n selectedIds,\n activeId: command.activeId ?? activeId,\n });\n}\n\nexport class EditorSession<TDocument, TPatch = unknown> {\n private source?: AuthoringSourceDescriptor;\n private persistedDocument: TDocument;\n private workingDocument: TDocument;\n private selection: EditorSelectionState;\n private dirty: boolean;\n private readonly onChange?: (change: EditorSessionChange) => void;\n private readonly onChangeError?: (error: unknown) => void;\n private readonly cloneDocument: (document: TDocument) => TDocument;\n private readonly compareDocuments: (left: TDocument, right: TDocument) => boolean;\n private readonly reduceDocument?: (\n document: TDocument,\n command: DocumentCommand<TDocument, TPatch>,\n ) => TDocument;\n private readonly isDocumentStructureChange: (\n command: DocumentCommand<TDocument, TPatch>,\n ) => boolean;\n private undoStack: UndoTransaction<TDocument>[] = [];\n private redoStack: UndoTransaction<TDocument>[] = [];\n private nextTransactionId = 1;\n private documentRevision = 0;\n private documentStructureRevision = 0;\n\n constructor(options: EditorSessionOptions<TDocument, TPatch>) {\n this.cloneDocument = options.cloneDocument ?? defaultCloneDocument;\n this.compareDocuments = options.compareDocuments ?? defaultCompareDocuments;\n this.reduceDocument = options.reduceDocument;\n this.isDocumentStructureChange = options.isDocumentStructureChange ?? (() => true);\n this.source = cloneAuthoringSourceDescriptorOptional(options.source);\n this.persistedDocument = this.cloneDocument(options.persistedDocument);\n this.workingDocument = this.cloneDocument(options.workingDocument ?? options.persistedDocument);\n this.selection = normalizeSelection(options.selection);\n this.onChange = options.onChange;\n this.onChangeError = options.onChangeError;\n this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);\n }\n\n getState(options: EditorSessionStateOptions = {}): EditorSessionState<TDocument> {\n const cloneDocuments = options.cloneDocuments !== false;\n return {\n persistedDocument: cloneDocuments ? this.cloneDocument(this.persistedDocument) : this.persistedDocument,\n workingDocument: cloneDocuments ? this.cloneDocument(this.workingDocument) : this.workingDocument,\n documentRevision: this.documentRevision,\n documentStructureRevision: this.documentStructureRevision,\n source: cloneAuthoringSourceDescriptorOptional(this.source),\n selection: this.getSelection(),\n dirty: this.dirty,\n canUndo: this.canUndo(),\n canRedo: this.canRedo(),\n history: this.getHistoryView(),\n };\n }\n\n getWorkingDocument(): TDocument {\n return this.cloneDocument(this.workingDocument);\n }\n\n getSource(): AuthoringSourceDescriptor | undefined {\n return cloneAuthoringSourceDescriptorOptional(this.source);\n }\n\n getSelection(): EditorSelectionState {\n return {\n selectedIds: [...this.selection.selectedIds],\n activeId: this.selection.activeId,\n };\n }\n\n isDirty(): boolean {\n return this.dirty;\n }\n\n fork(options: EditorSessionForkOptions = {}): EditorSession<TDocument, TPatch> {\n return new EditorSession<TDocument, TPatch>({\n source: this.source,\n persistedDocument: this.workingDocument,\n selection: options.selection,\n onChange: options.onChange,\n onChangeError: options.onChangeError,\n cloneDocument: this.cloneDocument,\n compareDocuments: this.compareDocuments,\n reduceDocument: this.reduceDocument,\n isDocumentStructureChange: this.isDocumentStructureChange,\n });\n }\n\n canUndo(): boolean {\n return this.undoStack.length > 0;\n }\n\n canRedo(): boolean {\n return this.redoStack.length > 0;\n }\n\n dispatch(\n command: EditorCommand<TDocument, TPatch>,\n options: EditorSessionDispatchOptions = {},\n ): EditorSessionDispatchResult<TDocument> {\n const beforeSelection = this.selection;\n if (isSelectionCommand(command)) {\n this.selection = applySelectionCommand(this.selection, command);\n const selectionChanged = !selectionEquals(beforeSelection, this.selection);\n this.emitChange('selection', false, selectionChanged, false);\n return {\n command,\n workingDocument: this.workingDocument,\n selection: this.getSelection(),\n dirty: this.dirty,\n documentChanged: false,\n selectionChanged,\n };\n }\n\n const structureChanged = this.isDocumentStructureChange(command);\n const useFastDocumentPatch = command.type === 'document.patch' && options.assumeDocumentChanged === true;\n const beforeDocument = useFastDocumentPatch ? this.workingDocument : this.cloneDocument(this.workingDocument);\n if (command.type === 'document.replace') {\n this.workingDocument = this.cloneDocument(command.document);\n } else if (command.type === 'document.patch') {\n if (!this.reduceDocument) {\n throw new Error('EditorSession requires reduceDocument to handle document.patch commands.');\n }\n this.workingDocument = this.reduceDocument(\n options.clonePatchInput === false ? this.workingDocument : this.cloneDocument(this.workingDocument),\n command,\n );\n }\n const documentChanged = options.assumeDocumentChanged === true\n ? true\n : !this.compareDocuments(beforeDocument, this.workingDocument);\n const selectionChanged = !selectionEquals(beforeSelection, this.selection);\n if (documentChanged) {\n this.documentRevision += 1;\n if (structureChanged) this.documentStructureRevision += 1;\n this.dirty = options.assumeDirty === true\n ? true\n : !this.compareDocuments(this.workingDocument, this.persistedDocument);\n }\n const transaction = documentChanged && isDocumentCommand(command)\n ? this.pushTransaction(command, beforeDocument, this.workingDocument, options, structureChanged)\n : undefined;\n this.emitChange('document', documentChanged, selectionChanged, !!transaction);\n return {\n command,\n workingDocument: options.cloneResultDocument === false\n ? this.workingDocument\n : this.cloneDocument(this.workingDocument),\n selection: this.getSelection(),\n dirty: this.isDirty(),\n documentChanged,\n selectionChanged,\n transaction,\n };\n }\n\n undo(): EditorSessionHistoryResult<TDocument> | null {\n const transaction = this.undoStack.pop();\n if (!transaction) return null;\n this.redoStack.push(transaction);\n this.workingDocument = this.cloneDocument(transaction.beforeDocument);\n this.documentRevision += 1;\n if (transaction.structureChanged) this.documentStructureRevision += 1;\n this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);\n this.emitChange('history', true, false, true);\n return {\n transaction,\n workingDocument: this.cloneDocument(this.workingDocument),\n selection: this.getSelection(),\n dirty: this.isDirty(),\n documentChanged: true,\n };\n }\n\n redo(): EditorSessionHistoryResult<TDocument> | null {\n const transaction = this.redoStack.pop();\n if (!transaction) return null;\n this.undoStack.push(transaction);\n this.workingDocument = this.cloneDocument(transaction.afterDocument);\n this.documentRevision += 1;\n if (transaction.structureChanged) this.documentStructureRevision += 1;\n this.dirty = !this.compareDocuments(this.workingDocument, this.persistedDocument);\n this.emitChange('history', true, false, true);\n return {\n transaction,\n workingDocument: this.cloneDocument(this.workingDocument),\n selection: this.getSelection(),\n dirty: this.isDirty(),\n documentChanged: true,\n };\n }\n\n markSaved(\n document: TDocument,\n source?: AuthoringSourceDescriptor,\n options: EditorSessionMarkSavedOptions = {},\n ): EditorSessionState<TDocument> {\n if (source) this.source = cloneAuthoringSourceDescriptorOptional(source);\n const structureChanged = !this.compareDocuments(this.workingDocument, document);\n this.persistedDocument = this.cloneDocument(document);\n this.workingDocument = this.cloneDocument(document);\n if (options.resetHistory) {\n this.undoStack = [];\n this.redoStack = [];\n }\n this.documentRevision += 1;\n if (structureChanged) this.documentStructureRevision += 1;\n this.dirty = false;\n this.emitChange('saved', true, false, options.resetHistory === true);\n return this.getState();\n }\n\n reset(document: TDocument, source?: AuthoringSourceDescriptor): EditorSessionState<TDocument> {\n this.source = cloneAuthoringSourceDescriptorOptional(source);\n this.persistedDocument = this.cloneDocument(document);\n this.workingDocument = this.cloneDocument(document);\n this.documentRevision += 1;\n this.documentStructureRevision += 1;\n this.selection = normalizeSelection();\n this.dirty = false;\n this.undoStack = [];\n this.redoStack = [];\n this.emitChange('reset', true, true, true);\n return this.getState();\n }\n\n rebaseExternalDocuments(\n input: EditorSessionExternalRebaseInput<TDocument>,\n ): EditorSessionState<TDocument> {\n const nextPersistedDocument = this.cloneDocument(input.persistedDocument);\n const nextWorkingDocument = this.cloneDocument(input.workingDocument);\n const nextDirty = !this.compareDocuments(nextWorkingDocument, nextPersistedDocument);\n const structureChanged = !this.compareDocuments(this.workingDocument, nextWorkingDocument);\n const persistedDocumentForResult = this.cloneDocument(nextPersistedDocument);\n const workingDocumentForResult = this.cloneDocument(nextWorkingDocument);\n const sourceForResult = cloneAuthoringSourceDescriptorOptional(this.source);\n const selectionForResult = this.getSelection();\n const revision = this.documentRevision + 1;\n\n this.persistedDocument = nextPersistedDocument;\n this.workingDocument = nextWorkingDocument;\n this.documentRevision = revision;\n if (structureChanged) this.documentStructureRevision += 1;\n this.dirty = nextDirty;\n this.undoStack = [];\n this.redoStack = [];\n this.emitChange('rebase', true, false, true);\n return {\n persistedDocument: persistedDocumentForResult,\n workingDocument: workingDocumentForResult,\n documentRevision: revision,\n documentStructureRevision: this.documentStructureRevision,\n source: sourceForResult,\n selection: selectionForResult,\n dirty: nextDirty,\n canUndo: false,\n canRedo: false,\n history: { entries: [] },\n };\n }\n\n private emitChange(\n reason: EditorSessionChange['reason'],\n documentChanged: boolean,\n selectionChanged: boolean,\n historyChanged: boolean,\n ): void {\n try {\n this.onChange?.(Object.freeze({\n reason,\n dirty: this.dirty,\n documentChanged,\n selectionChanged,\n historyChanged,\n documentRevision: this.documentRevision,\n }));\n } catch (error) {\n try { this.onChangeError?.(error); }\n catch { /* Session observers cannot change an already-applied command. */ }\n }\n }\n\n private pushTransaction(\n command: DocumentCommand<TDocument, TPatch>,\n beforeDocument: TDocument,\n afterDocument: TDocument,\n options: EditorSessionDispatchOptions,\n structureChanged: boolean,\n ): UndoTransaction<TDocument> {\n const previous = options.mergeWithPrevious ? this.undoStack[this.undoStack.length - 1] : undefined;\n if (previous) {\n previous.afterDocument = this.cloneDocument(afterDocument);\n previous.projectionImpact = mergeProjectionImpact(previous.projectionImpact, command.projectionImpact);\n previous.structureChanged ||= structureChanged;\n this.redoStack = [];\n return {\n ...previous,\n beforeDocument: this.cloneDocument(previous.beforeDocument),\n afterDocument: this.cloneDocument(previous.afterDocument),\n projectionImpact: cloneProjectionImpact(previous.projectionImpact),\n };\n }\n const transaction: UndoTransaction<TDocument> = {\n id: `transaction_${this.nextTransactionId++}`,\n label: command.label ?? command.type,\n commandType: command.type,\n beforeDocument: this.cloneDocument(beforeDocument),\n afterDocument: this.cloneDocument(afterDocument),\n ...(command.projectionImpact ? { projectionImpact: cloneProjectionImpact(command.projectionImpact) } : {}),\n structureChanged,\n createdAt: Date.now(),\n };\n this.undoStack.push(transaction);\n this.redoStack = [];\n return transaction;\n }\n\n private getHistoryView(): EditorSessionHistoryView {\n return {\n entries: [...this.undoStack, ...this.redoStack]\n .map(toHistoryEntry)\n .sort((left, right) => right.createdAt - left.createdAt),\n };\n }\n}\n\nfunction cloneProjectionImpact(\n impact: EditorProjectionImpact | undefined,\n): EditorProjectionImpact | undefined {\n if (!impact) return undefined;\n if (impact.type === 'rebuild') {\n return {\n type: 'rebuild',\n ...(impact.reason ? { reason: impact.reason } : {}),\n };\n }\n return {\n type: 'incremental',\n ...(impact.syncTransformIds ? { syncTransformIds: [...impact.syncTransformIds] } : {}),\n ...(impact.syncMetadataIds ? { syncMetadataIds: [...impact.syncMetadataIds] } : {}),\n ...(impact.reprojectIds ? { reprojectIds: [...impact.reprojectIds] } : {}),\n ...(impact.createdNodeIds ? { createdNodeIds: [...impact.createdNodeIds] } : {}),\n ...(impact.deletedNodeIds ? { deletedNodeIds: [...impact.deletedNodeIds] } : {}),\n };\n}\n\nfunction mergeProjectionImpact(\n previous: EditorProjectionImpact | undefined,\n next: EditorProjectionImpact | undefined,\n): EditorProjectionImpact | undefined {\n if (!previous || !next) return undefined;\n if (previous.type === 'rebuild' || next.type === 'rebuild') {\n const reason = previous.type === 'rebuild'\n ? previous.reason\n : next.type === 'rebuild'\n ? next.reason\n : undefined;\n return {\n type: 'rebuild',\n ...(reason ? { reason } : {}),\n };\n }\n return {\n type: 'incremental',\n syncTransformIds: uniqueIds([\n ...(previous.syncTransformIds ?? []),\n ...(next.syncTransformIds ?? []),\n ]),\n syncMetadataIds: uniqueIds([\n ...(previous.syncMetadataIds ?? []),\n ...(next.syncMetadataIds ?? []),\n ]),\n reprojectIds: uniqueIds([\n ...(previous.reprojectIds ?? []),\n ...(next.reprojectIds ?? []),\n ]),\n createdNodeIds: uniqueIds([\n ...(previous.createdNodeIds ?? []),\n ...(next.createdNodeIds ?? []),\n ]),\n deletedNodeIds: uniqueIds([\n ...(previous.deletedNodeIds ?? []),\n ...(next.deletedNodeIds ?? []),\n ]),\n };\n}\n\nfunction toHistoryEntry<TDocument>(\n transaction: UndoTransaction<TDocument>,\n): EditorSessionHistoryEntry {\n return {\n id: transaction.id,\n label: transaction.label,\n commandType: transaction.commandType,\n createdAt: transaction.createdAt,\n };\n}\n\nfunction cloneAuthoringSourceDescriptorOptional(\n source: AuthoringSourceDescriptor | undefined,\n): AuthoringSourceDescriptor | undefined {\n if (!source) return undefined;\n return {\n ...source,\n ref: { ...source.ref },\n capabilities: source.capabilities ? { ...source.capabilities } : undefined,\n metadata: source.metadata ? { ...source.metadata } : undefined,\n };\n}\n\nfunction isDocumentCommand<TDocument, TPatch>(\n command: EditorCommand<TDocument, TPatch>,\n): command is DocumentCommand<TDocument, TPatch> {\n return command.type === 'document.patch' || command.type === 'document.replace';\n}\n\nfunction isSelectionCommand<TDocument, TPatch>(\n command: EditorCommand<TDocument, TPatch>,\n): command is SelectionCommand {\n return command.type === 'selection.replace'\n || command.type === 'selection.add'\n || command.type === 'selection.remove'\n || command.type === 'selection.toggle'\n || command.type === 'selection.clear';\n}\n\nexport function createEditorSession<TDocument>(\n options: EditorSessionOptions<TDocument>,\n): EditorSession<TDocument>;\nexport function createEditorSession<TDocument, TPatch>(\n options: EditorSessionOptions<TDocument, TPatch>,\n): EditorSession<TDocument, TPatch>;\nexport function createEditorSession<TDocument, TPatch = unknown>(\n options: EditorSessionOptions<TDocument, TPatch>,\n): EditorSession<TDocument, TPatch> {\n return new EditorSession(options);\n}\n"]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { FpsDisposer } from '@fps-games/plugin-api';
|
|
2
|
+
export type EditorCapabilityId = string;
|
|
3
|
+
export type CapabilityAvailability = Readonly<{
|
|
4
|
+
state: 'enabled';
|
|
5
|
+
}> | Readonly<{
|
|
6
|
+
state: 'disabled';
|
|
7
|
+
reason: string;
|
|
8
|
+
}> | Readonly<{
|
|
9
|
+
state: 'hidden';
|
|
10
|
+
reason: string;
|
|
11
|
+
}>;
|
|
12
|
+
export interface EditorContextActionPresentation {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly icon: string;
|
|
16
|
+
readonly order: number;
|
|
17
|
+
readonly shortcut?: string;
|
|
18
|
+
readonly availability: CapabilityAvailability;
|
|
19
|
+
readonly danger?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface EditingContextSnapshot {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly authority: object;
|
|
24
|
+
readonly revision: number;
|
|
25
|
+
readonly capabilities: Readonly<Record<EditorCapabilityId, CapabilityAvailability>>;
|
|
26
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
27
|
+
}
|
|
28
|
+
export interface EditingContextProvider {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly priority?: number;
|
|
31
|
+
canProvide(): boolean;
|
|
32
|
+
getSnapshot(): EditingContextSnapshot;
|
|
33
|
+
}
|
|
34
|
+
export type EditorToolKind = 'primary' | 'action';
|
|
35
|
+
export interface EditorToolDefinition {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly label: string;
|
|
38
|
+
readonly icon?: string;
|
|
39
|
+
readonly group: string;
|
|
40
|
+
readonly order?: number;
|
|
41
|
+
readonly shortcut?: string;
|
|
42
|
+
readonly kind: EditorToolKind;
|
|
43
|
+
readonly requiredCapabilities?: readonly EditorCapabilityId[];
|
|
44
|
+
readonly fallbackToolId?: string;
|
|
45
|
+
}
|
|
46
|
+
export type EditorToolDeactivationReason = 'tool-change' | 'context-change' | 'unregistered' | 'manager-dispose' | 'activation-rollback';
|
|
47
|
+
export type EditorToolCancelReason = EditorToolDeactivationReason | 'user';
|
|
48
|
+
/** A headless Tool runtime. Renderer resources are supplied through injected closures/ports. */
|
|
49
|
+
export interface EditorToolRuntime {
|
|
50
|
+
activate(context: EditingContextSnapshot): void | Promise<void>;
|
|
51
|
+
rebind?(context: EditingContextSnapshot): void | Promise<void>;
|
|
52
|
+
cancel?(reason: EditorToolCancelReason): void | Promise<void>;
|
|
53
|
+
deactivate?(reason: EditorToolDeactivationReason): void | Promise<void>;
|
|
54
|
+
dispose?(): void | Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
export interface EditorToolRuntimeFactoryContext {
|
|
57
|
+
readonly definition: EditorToolDefinition;
|
|
58
|
+
}
|
|
59
|
+
export interface EditorToolRegistration {
|
|
60
|
+
readonly definition: EditorToolDefinition;
|
|
61
|
+
readonly createRuntime: (context: EditorToolRuntimeFactoryContext) => EditorToolRuntime;
|
|
62
|
+
}
|
|
63
|
+
export interface EditorToolPresentation {
|
|
64
|
+
readonly id: string;
|
|
65
|
+
readonly label: string;
|
|
66
|
+
readonly icon?: string;
|
|
67
|
+
readonly group: string;
|
|
68
|
+
readonly order: number;
|
|
69
|
+
readonly shortcut?: string;
|
|
70
|
+
readonly kind: EditorToolKind;
|
|
71
|
+
readonly availability: CapabilityAvailability;
|
|
72
|
+
readonly active: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface EditorToolRegistrySnapshot {
|
|
75
|
+
readonly revision: number;
|
|
76
|
+
readonly registrations: readonly EditorToolRegistration[];
|
|
77
|
+
}
|
|
78
|
+
export interface EditorToolRegistry {
|
|
79
|
+
register(registration: EditorToolRegistration): FpsDisposer;
|
|
80
|
+
get(id: string): EditorToolRegistration | undefined;
|
|
81
|
+
snapshot(): EditorToolRegistrySnapshot;
|
|
82
|
+
subscribe(listener: (snapshot: EditorToolRegistrySnapshot) => void): FpsDisposer;
|
|
83
|
+
}
|
|
84
|
+
export interface EditorToolManagerSnapshot {
|
|
85
|
+
readonly revision: number;
|
|
86
|
+
readonly context: EditingContextSnapshot | null;
|
|
87
|
+
readonly activeToolId: string | null;
|
|
88
|
+
readonly activationGeneration: number;
|
|
89
|
+
readonly tools: readonly EditorToolPresentation[];
|
|
90
|
+
}
|
|
91
|
+
export interface EditorToolManager {
|
|
92
|
+
snapshot(): EditorToolManagerSnapshot;
|
|
93
|
+
subscribe(listener: (snapshot: EditorToolManagerSnapshot) => void): FpsDisposer;
|
|
94
|
+
activate(toolId: string): Promise<void>;
|
|
95
|
+
cancel(reason?: EditorToolCancelReason): Promise<void>;
|
|
96
|
+
rebindContext(context: EditingContextSnapshot | null): Promise<void>;
|
|
97
|
+
whenIdle(): Promise<void>;
|
|
98
|
+
dispose(): Promise<void>;
|
|
99
|
+
}
|
|
100
|
+
export interface CreateEditorToolManagerOptions {
|
|
101
|
+
readonly registry: EditorToolRegistry;
|
|
102
|
+
readonly context?: EditingContextSnapshot | null;
|
|
103
|
+
readonly fallbackToolId?: string;
|
|
104
|
+
}
|
|
105
|
+
export declare function createEditorToolRegistry(): EditorToolRegistry;
|
|
106
|
+
export declare function createEditorToolManager(options: CreateEditorToolManagerOptions): EditorToolManager;
|
|
107
|
+
export declare function resolveEditingContextProvider(providers: readonly EditingContextProvider[]): EditingContextProvider;
|
|
108
|
+
export declare function resolveToolAvailability(definition: EditorToolDefinition, context: EditingContextSnapshot | null): CapabilityAvailability;
|
|
109
|
+
export declare function snapshotEditorToolRegistration(registration: EditorToolRegistration): EditorToolRegistration;
|
|
110
|
+
export declare function snapshotEditorToolDefinition(definition: EditorToolDefinition): EditorToolDefinition;
|
|
111
|
+
export declare function snapshotEditingContext(context: EditingContextSnapshot): EditingContextSnapshot;
|
|
112
|
+
//# sourceMappingURL=editor-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-tools.d.ts","sourceRoot":"","sources":["../src/editor-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MA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