@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
|
@@ -3,7 +3,8 @@ import { createFpsPluginHost, type FpsPluginHost, type FpsPluginHostInspection }
|
|
|
3
3
|
import { type EditorAgentBridgeCapabilityManifest } from '@fps-games/editor-protocol';
|
|
4
4
|
import { type FpsEditorEventContext, type FpsEditorEventPublisher } from './events.js';
|
|
5
5
|
import { type FpsEditorLifecycleParticipant } from './lifecycle.js';
|
|
6
|
-
|
|
6
|
+
import { type EditorToolRegistry, type EditorToolRegistration } from './editor-tools.js';
|
|
7
|
+
export type FpsEditorContributionKind = 'hierarchy' | 'inspector' | 'panel' | 'command' | 'capability' | 'tool' | 'lifecycle-participant';
|
|
7
8
|
export interface FpsEditorContribution<TValue = unknown> {
|
|
8
9
|
readonly id: string;
|
|
9
10
|
readonly kind: FpsEditorContributionKind;
|
|
@@ -16,6 +17,7 @@ export interface FpsRegisteredEditorContribution<TValue = unknown> extends FpsEd
|
|
|
16
17
|
export interface FpsEditorContributionRegistry {
|
|
17
18
|
get(id: string): FpsRegisteredEditorContribution | undefined;
|
|
18
19
|
list(kind?: FpsEditorContributionKind): readonly FpsRegisteredEditorContribution[];
|
|
20
|
+
subscribe(listener: (registry: FpsEditorContributionRegistry) => void): FpsDisposer;
|
|
19
21
|
}
|
|
20
22
|
export declare const FPS_EDITOR_CONTRIBUTIONS: FpsServiceToken<FpsEditorContributionRegistry>;
|
|
21
23
|
export interface FpsEditorPluginHostOptions {
|
|
@@ -61,6 +63,9 @@ export interface FpsEditorCommandRegistration<TInput = unknown, TOutput = unknow
|
|
|
61
63
|
}
|
|
62
64
|
export declare function registerFpsEditorCommand<TInput, TOutput>(context: FpsPluginContext, registration: FpsEditorCommandRegistration<TInput, TOutput>, handler: (input: TInput) => TOutput | Promise<TOutput>): void;
|
|
63
65
|
export declare function registerFpsEditorLifecycleParticipant(context: FpsPluginContext, participant: FpsEditorLifecycleParticipant): FpsDisposer;
|
|
66
|
+
export declare function registerFpsEditorTool(context: FpsPluginContext, registration: EditorToolRegistration, priority?: number): FpsDisposer;
|
|
67
|
+
export declare function resolveFpsEditorTools(registry: FpsEditorContributionRegistry): readonly EditorToolRegistration[];
|
|
68
|
+
export declare function bindFpsEditorTools(contributions: FpsEditorContributionRegistry, tools: EditorToolRegistry): FpsDisposer;
|
|
64
69
|
export declare function resolveFpsEditorLifecycleParticipants(registry: FpsEditorContributionRegistry): readonly FpsEditorLifecycleParticipant[];
|
|
65
70
|
export declare function createFpsEditorContributionRegistry(): FpsEditorContributionRegistry;
|
|
66
71
|
export declare function registerFpsEditorContribution<TValue>(context: FpsPluginContext, contribution: FpsEditorContribution<TValue>): FpsDisposer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-plugin-host.d.ts","sourceRoot":"","sources":["../src/editor-plugin-host.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EAKf,KAAK,aAAa,EAClB,K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yB,CAAC,OAAO,EAAE,0BAA0B,GAAG,mBAAmB,CAgZlG;AAED,MAAM,WAAW,2CAA2C;IAC1D,QAAQ,CAAC,MAAM,EAAE,0BAA0B,CAAC;IAC5C,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS;QAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAC1F,QAAQ,CAAC,MAAM,CAAC,EAAE,0BAA0B,CAAC,QAAQ,CAAC,CAAC;CACxD;AAED,wBAAgB,8CAA8C,CAC5D,OAAO,EAAE,2CAA2C,GACnD,mBAAmB,CAoBrB"}
|
|
@@ -3,6 +3,7 @@ import { createFpsPluginHost, } from '@fps-games/plugin-host';
|
|
|
3
3
|
import { EDITOR_AGENT_BRIDGE_SCHEMA_VERSION, } from '@fps-games/editor-protocol';
|
|
4
4
|
import { FPS_EDITOR_DIAGNOSTIC_REPORTED, createFpsEditorEventPublisher, } from './events.js';
|
|
5
5
|
import { FPS_EDITOR_LIFECYCLE_TRANSITION_TYPES, assertFpsEditorLifecycleScopeTopology, } from './lifecycle.js';
|
|
6
|
+
import { snapshotEditorToolRegistration, } from './editor-tools.js';
|
|
6
7
|
const UNAVAILABLE_EDITOR_EVENT_ROUTE = Object.freeze({
|
|
7
8
|
subscribe: () => () => { },
|
|
8
9
|
publish: () => Promise.resolve(),
|
|
@@ -10,7 +11,7 @@ const UNAVAILABLE_EDITOR_EVENT_ROUTE = Object.freeze({
|
|
|
10
11
|
const contributionRegistrars = new WeakMap();
|
|
11
12
|
const trustedContributionContexts = new WeakMap();
|
|
12
13
|
const CONTRIBUTION_KINDS = new Set([
|
|
13
|
-
'hierarchy', 'inspector', 'panel', 'command', 'capability', 'lifecycle-participant',
|
|
14
|
+
'hierarchy', 'inspector', 'panel', 'command', 'capability', 'tool', 'lifecycle-participant',
|
|
14
15
|
]);
|
|
15
16
|
export const FPS_EDITOR_CONTRIBUTIONS = defineFpsServiceToken('fps.editor.contributions');
|
|
16
17
|
const lifecycleScopeHostFactories = new WeakMap();
|
|
@@ -58,6 +59,60 @@ export function registerFpsEditorLifecycleParticipant(context, participant) {
|
|
|
58
59
|
value: snapshot,
|
|
59
60
|
});
|
|
60
61
|
}
|
|
62
|
+
export function registerFpsEditorTool(context, registration, priority = 0) {
|
|
63
|
+
const snapshot = snapshotEditorToolRegistration(registration);
|
|
64
|
+
return registerFpsEditorContribution(context, {
|
|
65
|
+
id: snapshot.definition.id,
|
|
66
|
+
kind: 'tool',
|
|
67
|
+
priority,
|
|
68
|
+
value: Object.freeze({
|
|
69
|
+
type: 'editor.tool',
|
|
70
|
+
registration: snapshot,
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export function resolveFpsEditorTools(registry) {
|
|
75
|
+
return Object.freeze(registry.list('tool').map(contribution => {
|
|
76
|
+
const value = contribution.value;
|
|
77
|
+
if (!isRecord(value) || value.type !== 'editor.tool' || !('registration' in value)) {
|
|
78
|
+
throw new Error(`Invalid Editor Tool contribution: ${contribution.id}`);
|
|
79
|
+
}
|
|
80
|
+
const registration = snapshotEditorToolRegistration(value.registration);
|
|
81
|
+
if (registration.definition.id !== contribution.id) {
|
|
82
|
+
throw new Error(`Editor Tool contribution id mismatch: ${contribution.id} != ${registration.definition.id}`);
|
|
83
|
+
}
|
|
84
|
+
return registration;
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
export function bindFpsEditorTools(contributions, tools) {
|
|
88
|
+
const active = new Map();
|
|
89
|
+
const sync = (source) => {
|
|
90
|
+
const next = new Map(source.list('tool').map(contribution => [contribution.id, contribution]));
|
|
91
|
+
for (const [id, binding] of [...active]) {
|
|
92
|
+
if (next.get(id) === binding.contribution)
|
|
93
|
+
continue;
|
|
94
|
+
binding.unregister();
|
|
95
|
+
active.delete(id);
|
|
96
|
+
}
|
|
97
|
+
for (const contribution of next.values()) {
|
|
98
|
+
if (active.has(contribution.id))
|
|
99
|
+
continue;
|
|
100
|
+
const registration = resolveFpsEditorToolContribution(contribution);
|
|
101
|
+
active.set(contribution.id, {
|
|
102
|
+
contribution,
|
|
103
|
+
unregister: tools.register(registration),
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
sync(contributions);
|
|
108
|
+
const unsubscribe = contributions.subscribe(sync);
|
|
109
|
+
return () => {
|
|
110
|
+
unsubscribe();
|
|
111
|
+
for (const binding of [...active.values()].reverse())
|
|
112
|
+
binding.unregister();
|
|
113
|
+
active.clear();
|
|
114
|
+
};
|
|
115
|
+
}
|
|
61
116
|
export function resolveFpsEditorLifecycleParticipants(registry) {
|
|
62
117
|
return registry.list('lifecycle-participant').map(contribution => {
|
|
63
118
|
const participant = snapshotEditorLifecycleParticipant(contribution.value);
|
|
@@ -69,6 +124,11 @@ export function resolveFpsEditorLifecycleParticipants(registry) {
|
|
|
69
124
|
}
|
|
70
125
|
export function createFpsEditorContributionRegistry() {
|
|
71
126
|
const entries = new Map();
|
|
127
|
+
const listeners = new Set();
|
|
128
|
+
const publish = () => {
|
|
129
|
+
for (const listener of [...listeners])
|
|
130
|
+
listener(registry);
|
|
131
|
+
};
|
|
72
132
|
const registry = {
|
|
73
133
|
get: id => entries.get(id),
|
|
74
134
|
list: kind => {
|
|
@@ -78,6 +138,10 @@ export function createFpsEditorContributionRegistry() {
|
|
|
78
138
|
.filter(entry => kind === undefined || entry.kind === kind)
|
|
79
139
|
.sort(compareContributions);
|
|
80
140
|
},
|
|
141
|
+
subscribe(listener) {
|
|
142
|
+
listeners.add(listener);
|
|
143
|
+
return () => { listeners.delete(listener); };
|
|
144
|
+
},
|
|
81
145
|
};
|
|
82
146
|
contributionRegistrars.set(registry, (pluginId, contribution) => {
|
|
83
147
|
const id = assertContributionId(contribution.id);
|
|
@@ -92,13 +156,16 @@ export function createFpsEditorContributionRegistry() {
|
|
|
92
156
|
priority: normalizePriority(contribution.priority),
|
|
93
157
|
});
|
|
94
158
|
entries.set(id, entry);
|
|
159
|
+
publish();
|
|
95
160
|
let active = true;
|
|
96
161
|
return () => {
|
|
97
162
|
if (!active)
|
|
98
163
|
return;
|
|
99
164
|
active = false;
|
|
100
|
-
if (entries.get(id) === entry)
|
|
165
|
+
if (entries.get(id) === entry) {
|
|
101
166
|
entries.delete(id);
|
|
167
|
+
publish();
|
|
168
|
+
}
|
|
102
169
|
};
|
|
103
170
|
});
|
|
104
171
|
return registry;
|
|
@@ -116,6 +183,13 @@ export function registerFpsEditorContribution(context, contribution) {
|
|
|
116
183
|
if (contribution.kind === 'lifecycle-participant') {
|
|
117
184
|
snapshotEditorLifecycleParticipant(contribution.value);
|
|
118
185
|
}
|
|
186
|
+
if (contribution.kind === 'tool') {
|
|
187
|
+
resolveFpsEditorToolContribution(Object.freeze({
|
|
188
|
+
...contribution,
|
|
189
|
+
pluginId: trusted.pluginId,
|
|
190
|
+
priority: normalizePriority(contribution.priority),
|
|
191
|
+
}));
|
|
192
|
+
}
|
|
119
193
|
const unregister = register(trusted.pluginId, contribution);
|
|
120
194
|
trusted.addDisposer(unregister);
|
|
121
195
|
let active = true;
|
|
@@ -235,6 +309,10 @@ export function createFpsEditorPluginHost(options) {
|
|
|
235
309
|
assertStableObservation();
|
|
236
310
|
return contributions.list(kind);
|
|
237
311
|
},
|
|
312
|
+
subscribe(listener) {
|
|
313
|
+
assertStableObservation();
|
|
314
|
+
return contributions.subscribe(listener);
|
|
315
|
+
},
|
|
238
316
|
});
|
|
239
317
|
const runLifecycleScopeTransition = async (operation) => {
|
|
240
318
|
activeLifecycleScopeTransitions += 1;
|
|
@@ -756,4 +834,18 @@ function compareContributions(left, right) {
|
|
|
756
834
|
return priority;
|
|
757
835
|
return left.id < right.id ? -1 : left.id > right.id ? 1 : 0;
|
|
758
836
|
}
|
|
837
|
+
function isRecord(value) {
|
|
838
|
+
return !!value && typeof value === 'object' && !Array.isArray(value);
|
|
839
|
+
}
|
|
840
|
+
function resolveFpsEditorToolContribution(contribution) {
|
|
841
|
+
const value = contribution.value;
|
|
842
|
+
if (!isRecord(value) || value.type !== 'editor.tool' || !('registration' in value)) {
|
|
843
|
+
throw new Error(`Invalid Editor Tool contribution: ${contribution.id}`);
|
|
844
|
+
}
|
|
845
|
+
const registration = snapshotEditorToolRegistration(value.registration);
|
|
846
|
+
if (registration.definition.id !== contribution.id) {
|
|
847
|
+
throw new Error(`Editor Tool contribution id mismatch: ${contribution.id} != ${registration.definition.id}`);
|
|
848
|
+
}
|
|
849
|
+
return registration;
|
|
850
|
+
}
|
|
759
851
|
//# sourceMappingURL=editor-plugin-host.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-plugin-host.js","sourceRoot":"","sources":["../src/editor-plugin-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EACrB,oBAAoB,EACpB,iCAAiC,GAUlC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,GAIpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kCAAkC,GAGnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAG9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qCAAqC,EACrC,qCAAqC,GAEtC,MAAM,gBAAgB,CAAC;AAUxB,MAAM,8BAA8B,GAAqB,MAAM,CAAC,MAAM,CAAC;IACrE,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC;IACzB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;CACjC,CAAC,CAAC;AAwBH,MAAM,sBAAsB,GAAG,IAAI,OAAO,EAAiE,CAAC;AAC5G,MAAM,2BAA2B,GAAG,IAAI,OAAO,EAQ5C,CAAC;AACJ,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAA4B;IAC5D,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,uBAAuB;CACpF,CAAC,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AI,CAAC,UAAU,CAAC,EAAE,CAAC;QACvD,MAAM,IAAI,KAAK,CAAC,6DAA6D,EAAE,EAAE,CAAC,CAAC;IACrF,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,iBAAiB,CAAC,QAA4B;IACrD,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,CAAC,CAAC;IACrC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAChG,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,sBAAsB,CAAC,KAAc;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAkC,CAAC,EAAE,CAAC;QAC7F,MAAM,IAAI,KAAK,CAAC,qCAAqC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,KAAkC,CAAC;AAC5C,CAAC;AAED,SAAS,oBAAoB,CAC3B,IAAqC,EACrC,KAAsC;IAEtC,MAAM,QAAQ,GAAG,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IAC9D,IAAI,QAAQ,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAC;IACpC,OAAO,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC","sourcesContent":["import {\n type FpsCommand,\n type FpsCommandRegistry,\n defineFpsServiceToken,\n defineFpsPluginEntry,\n resolveFpsPluginEnvironmentScopes,\n type FpsDiagnostic,\n type FpsDisposer,\n type FpsEventRegistry,\n type FpsPluginEntry,\n type FpsPluginEnvironmentModule,\n type FpsPluginContext,\n type FpsPluginManifest,\n type FpsPluginScope,\n type FpsServiceToken,\n} from '@fps-games/plugin-api';\nimport {\n createFpsPluginHost,\n type FpsPluginHost,\n type FpsPluginHostInspection,\n type FpsPluginTeardownReservation,\n} from '@fps-games/plugin-host';\nimport {\n EDITOR_AGENT_BRIDGE_SCHEMA_VERSION,\n type EditorAgentBridgeCapabilityManifest,\n type EditorAgentBridgeJsonObject,\n} from '@fps-games/editor-protocol';\nimport {\n FPS_EDITOR_DIAGNOSTIC_REPORTED,\n createFpsEditorEventPublisher,\n type FpsEditorEventContext,\n type FpsEditorEventPublisher,\n} from './events.js';\nimport {\n FPS_EDITOR_LIFECYCLE_TRANSITION_TYPES,\n assertFpsEditorLifecycleScopeTopology,\n type FpsEditorLifecycleParticipant,\n} from './lifecycle.js';\n\nexport type FpsEditorContributionKind =\n | 'hierarchy'\n | 'inspector'\n | 'panel'\n | 'command'\n | 'capability'\n | 'lifecycle-participant';\n\nconst UNAVAILABLE_EDITOR_EVENT_ROUTE: FpsEventRegistry = Object.freeze({\n subscribe: () => () => {},\n publish: () => Promise.resolve(),\n});\n\nexport interface FpsEditorContribution<TValue = unknown> {\n readonly id: string;\n readonly kind: FpsEditorContributionKind;\n readonly value: TValue;\n readonly priority?: number;\n}\n\nexport interface FpsRegisteredEditorContribution<TValue = unknown>\n extends FpsEditorContribution<TValue> {\n readonly pluginId: string;\n}\n\nexport interface FpsEditorContributionRegistry {\n get(id: string): FpsRegisteredEditorContribution | undefined;\n list(kind?: FpsEditorContributionKind): readonly FpsRegisteredEditorContribution[];\n}\n\ntype FpsEditorContributionRegistrar = <TValue>(\n pluginId: string,\n contribution: FpsEditorContribution<TValue>,\n) => FpsDisposer;\n\nconst contributionRegistrars = new WeakMap<FpsEditorContributionRegistry, FpsEditorContributionRegistrar>();\nconst trustedContributionContexts = new WeakMap<\n FpsPluginContext,\n {\n registry: FpsEditorContributionRegistry;\n pluginId: string;\n registrationOpen: boolean;\n addDisposer: (disposer: FpsDisposer) => void;\n }\n>();\nconst CONTRIBUTION_KINDS = new Set<FpsEditorContributionKind>([\n 'hierarchy', 'inspector', 'panel', 'command', 'capability', 'lifecycle-participant',\n]);\n\nexport const FPS_EDITOR_CONTRIBUTIONS = defineFpsServiceToken<FpsEditorContributionRegistry>(\n 'fps.editor.contributions',\n);\n\nexport interface FpsEditorPluginHostOptions {\n readonly manifests: readonly FpsPluginManifest[];\n readonly loadEntry: (\n manifest: FpsPluginManifest,\n environment: 'editor',\n ) => Promise<FpsPluginEntry | null>;\n readonly initialServices?: readonly { token: FpsServiceToken<unknown>; value: unknown }[];\n readonly pluginConfigs?: Readonly<Record<string, unknown>>;\n readonly report?: Parameters<typeof createFpsPluginHost>[0]['report'];\n}\n\nexport interface FpsEditorPluginHost {\n readonly state: FpsPluginHost['state'];\n readonly transitioning: boolean;\n readonly contributions: FpsEditorContributionRegistry;\n readonly eventPublisher: FpsEditorEventPublisher;\n reportDiagnostic(diagnostic: FpsDiagnostic, context?: FpsEditorEventContext): void;\n inspect(): FpsPluginHostInspection;\n acquireConsumer(label?: string): () => void;\n listCommands(): readonly FpsEditorCommandRegistration[];\n executeCommand<TInput, TOutput>(command: FpsCommand<TInput, TOutput>, input: TInput): Promise<TOutput>;\n start(): Promise<void>;\n stop(): Promise<void>;\n dispose(): Promise<void>;\n}\n\nexport interface FpsEditorPluginLifecycleScopeInput {\n readonly id: string;\n readonly scope: FpsPluginScope;\n readonly parentId?: string;\n}\n\nexport interface FpsEditorPluginLifecycleScopeHost {\n openScope(input: FpsEditorPluginLifecycleScopeInput): Promise<void>;\n reserveScopeClose(scopeId: string): void;\n closeScope(scopeId: string): Promise<void>;\n}\n\ninterface FpsEditorPluginLifecycleScopeRecord {\n readonly input: FpsEditorPluginLifecycleScopeInput;\n readonly owner: object;\n host: FpsPluginHost | null;\n ready: Promise<void>;\n closing: Promise<void> | null;\n closeRequested: boolean;\n releaseTeardownReservation: FpsPluginTeardownReservation | null;\n}\n\nconst lifecycleScopeHostFactories = new WeakMap<\n FpsEditorPluginHost,\n () => FpsEditorPluginLifecycleScopeHost\n>();\n\nfunction createEditorPluginCleanupError(message: string, errors: readonly unknown[]): Error {\n const details = errors.map(error => error instanceof Error ? error.message : String(error)).join('; ');\n const combined = new Error(`${message}: ${details}`) as Error & { errors: unknown[] };\n combined.errors = [...errors];\n return combined;\n}\n\nexport function getFpsEditorPluginLifecycleScopeHost(\n host: FpsEditorPluginHost,\n): FpsEditorPluginLifecycleScopeHost {\n const createScopeHost = lifecycleScopeHostFactories.get(host);\n if (!createScopeHost) throw new Error('Editor Plugin lifecycle scope host is unavailable.');\n return createScopeHost();\n}\n\nexport interface FpsEditorCommandRegistration<TInput = unknown, TOutput = unknown> {\n readonly command: FpsCommand<TInput, TOutput>;\n readonly title: string;\n readonly description?: string;\n readonly agent?: EditorAgentBridgeCapabilityManifest;\n}\n\ninterface FpsEditorCommandContribution<TInput = unknown, TOutput = unknown> {\n readonly type: 'editor.command';\n readonly registration: FpsEditorCommandRegistration<TInput, TOutput>;\n}\n\nconst editorCommandDispatchers = new WeakMap<object, FpsCommandRegistry>();\n\nexport function registerFpsEditorCommand<TInput, TOutput>(\n context: FpsPluginContext,\n registration: FpsEditorCommandRegistration<TInput, TOutput>,\n handler: (input: TInput) => TOutput | Promise<TOutput>,\n): void {\n const trusted = requireTrustedContributionContext(context);\n assertApplicationContributionScope(context);\n const snapshot = snapshotEditorCommandRegistration(registration);\n const unregisterHandler = context.commands.register(snapshot.command, handler);\n trusted.addDisposer(unregisterHandler);\n try {\n const contribution = Object.freeze({\n type: 'editor.command' as const,\n registration: snapshot,\n }) satisfies FpsEditorCommandContribution<TInput, TOutput>;\n editorCommandDispatchers.set(contribution, context.commands);\n registerFpsEditorContribution(context, {\n id: snapshot.command.id,\n kind: 'command',\n value: contribution,\n });\n } catch (error) {\n unregisterHandler();\n throw error;\n }\n}\n\nexport function registerFpsEditorLifecycleParticipant(\n context: FpsPluginContext,\n participant: FpsEditorLifecycleParticipant,\n): FpsDisposer {\n const snapshot = snapshotEditorLifecycleParticipant(participant);\n return registerFpsEditorContribution(context, {\n id: snapshot.id,\n kind: 'lifecycle-participant',\n value: snapshot,\n });\n}\n\nexport function resolveFpsEditorLifecycleParticipants(\n registry: FpsEditorContributionRegistry,\n): readonly FpsEditorLifecycleParticipant[] {\n return registry.list('lifecycle-participant').map(contribution => {\n const participant = snapshotEditorLifecycleParticipant(contribution.value);\n if (participant.id !== contribution.id) {\n throw new Error(\n `Editor lifecycle participant contribution id mismatch: ${contribution.id} != ${participant.id}`,\n );\n }\n return participant;\n });\n}\n\nexport function createFpsEditorContributionRegistry(): FpsEditorContributionRegistry {\n const entries = new Map<string, FpsRegisteredEditorContribution>();\n const registry: FpsEditorContributionRegistry = {\n get: id => entries.get(id),\n list: kind => {\n if (kind !== undefined) assertContributionKind(kind);\n return [...entries.values()]\n .filter(entry => kind === undefined || entry.kind === kind)\n .sort(compareContributions);\n },\n };\n contributionRegistrars.set(registry, (pluginId, contribution) => {\n const id = assertContributionId(contribution.id);\n const kind = assertContributionKind(contribution.kind);\n if (entries.has(id)) throw new Error(`Duplicate editor contribution id: ${id}`);\n const entry = Object.freeze({\n ...contribution,\n id,\n kind,\n pluginId,\n priority: normalizePriority(contribution.priority),\n });\n entries.set(id, entry);\n let active = true;\n return () => {\n if (!active) return;\n active = false;\n if (entries.get(id) === entry) entries.delete(id);\n };\n });\n return registry;\n}\n\nexport function registerFpsEditorContribution<TValue>(\n context: FpsPluginContext,\n contribution: FpsEditorContribution<TValue>,\n): FpsDisposer {\n const trusted = requireTrustedContributionContext(context);\n assertApplicationContributionScope(context);\n const declaredRegistry = context.services.get(FPS_EDITOR_CONTRIBUTIONS);\n if (declaredRegistry !== trusted.registry) {\n throw new Error('Editor contribution service does not belong to this Plugin Host.');\n }\n const register = contributionRegistrars.get(trusted.registry);\n if (!register) throw new Error('Editor contribution registry is not owned by this host.');\n if (contribution.kind === 'lifecycle-participant') {\n snapshotEditorLifecycleParticipant(contribution.value);\n }\n const unregister = register(trusted.pluginId, contribution);\n trusted.addDisposer(unregister);\n let active = true;\n return () => {\n if (!active || !trusted.registrationOpen) return;\n active = false;\n return unregister();\n };\n}\n\nexport function createFpsEditorPluginHost(options: FpsEditorPluginHostOptions): FpsEditorPluginHost {\n const contributions = createFpsEditorContributionRegistry();\n const consumers = new Map<number, string>();\n let nextConsumerId = 1;\n let lifecycleTransitioning = false;\n let activeLifecycleScopeTransitions = 0;\n let lifecycleCleanupFailed = false;\n let cleanupRetryKind: 'stop' | 'dispose' | null = null;\n const lifecycleScopes = new Map<string, FpsEditorPluginLifecycleScopeRecord>();\n const failedLifecycleScopeIds = new Set<string>();\n const editorDiagnostics: FpsDiagnostic[] = [];\n let eventPublisher: FpsEditorEventPublisher | undefined;\n const reportEditorDiagnostic = (\n diagnostic: FpsDiagnostic,\n publishEvent: boolean,\n context: FpsEditorEventContext = { scope: 'application', scopeId: 'editor:application' },\n ): void => {\n editorDiagnostics.push(Object.freeze({\n code: diagnostic.code,\n message: diagnostic.message,\n severity: diagnostic.severity,\n ...(diagnostic.pluginId ? { pluginId: diagnostic.pluginId } : {}),\n }));\n if (editorDiagnostics.length > 200) editorDiagnostics.shift();\n try { options.report?.(diagnostic); }\n catch { /* Diagnostic observers cannot affect Plugin or Editor lifecycle state. */ }\n if (!publishEvent || !eventPublisher\n || diagnostic.details?.eventId === FPS_EDITOR_DIAGNOSTIC_REPORTED.id) return;\n void eventPublisher.publish(FPS_EDITOR_DIAGNOSTIC_REPORTED, Object.freeze({\n diagnostic: Object.freeze({\n code: diagnostic.code,\n message: diagnostic.message,\n severity: diagnostic.severity,\n ...(diagnostic.pluginId ? { pluginId: diagnostic.pluginId } : {}),\n }),\n }), {\n ...context,\n ...(context.sourcePluginId || !diagnostic.pluginId ? {} : { sourcePluginId: diagnostic.pluginId }),\n });\n };\n const hasLifecycleCleanupFailure = (): boolean => (\n lifecycleCleanupFailed || failedLifecycleScopeIds.size > 0\n );\n const applicationManifests = options.manifests.filter(manifest => (\n resolveFpsPluginEnvironmentScopes(manifest, 'editor').includes('application')\n ));\n const host = createFpsPluginHost({\n environment: 'editor',\n apiVersion: 1,\n scope: 'application',\n manifests: applicationManifests,\n initialServices: [\n { token: FPS_EDITOR_CONTRIBUTIONS as FpsServiceToken<unknown>, value: contributions },\n ...(options.initialServices ?? []),\n ],\n pluginConfigs: options.pluginConfigs,\n loadEntry: async (manifest, environment) => {\n const entry = await options.loadEntry(manifest, environment as 'editor');\n return entry ? bindEditorPluginEntry(defineFpsPluginEntry(entry), contributions) : null;\n },\n report: diagnostic => reportEditorDiagnostic(diagnostic, true),\n });\n eventPublisher = createFpsEditorEventPublisher({\n events: host.events,\n captureRoute(context) {\n const route: FpsEditorPluginLifecycleScopeRecord[] = [];\n let record = lifecycleScopes.get(context.scopeId);\n while (record) {\n route.push(record);\n record = record.input.parentId ? lifecycleScopes.get(record.input.parentId) : undefined;\n }\n return () => {\n for (const candidate of route) {\n if (lifecycleScopes.get(candidate.input.id) !== candidate\n || candidate.closeRequested\n || candidate.closing) continue;\n const routeHost = candidate.host ?? host;\n if (routeHost.state !== 'started' || routeHost.transitioning) continue;\n return routeHost.events;\n }\n // Scope-close facts are delivered asynchronously. A parent teardown can\n // reserve the complete host tree before an earlier child-close fact\n // reaches this resolver. In that interval public event operations are\n // intentionally unavailable, and every observer on that route is also\n // being torn down. Treat the route as closed instead of reporting an\n // observer failure for a lifecycle state that is working as designed.\n return host.state === 'started' && !host.transitioning\n ? host.events\n : UNAVAILABLE_EDITOR_EVENT_ROUTE;\n };\n },\n report: diagnostic => reportEditorDiagnostic(diagnostic, false),\n });\n const isLifecycleTransitioning = (): boolean => (\n lifecycleTransitioning || activeLifecycleScopeTransitions > 0 || host.transitioning\n );\n const assertStableObservation = (): void => {\n if (hasLifecycleCleanupFailure()) {\n throw new Error('Editor Plugin Host cleanup is incomplete; only cleanup retry operations are available.');\n }\n if (isLifecycleTransitioning()) {\n throw new Error('Editor Plugin Host observation is unavailable during a lifecycle transition.');\n }\n };\n const publicContributions: FpsEditorContributionRegistry = Object.freeze({\n get(id: string) {\n assertStableObservation();\n return contributions.get(id);\n },\n list(kind?: FpsEditorContributionKind) {\n assertStableObservation();\n return contributions.list(kind);\n },\n });\n const runLifecycleScopeTransition = async <T>(operation: () => Promise<T>): Promise<T> => {\n activeLifecycleScopeTransitions += 1;\n try { return await operation(); }\n finally { activeLifecycleScopeTransitions -= 1; }\n };\n const acquireConsumer = (label = 'anonymous'): (() => void) => {\n const transitioning = isLifecycleTransitioning();\n if (host.state !== 'started' || transitioning || hasLifecycleCleanupFailure()) {\n throw new Error(\n `Editor Plugin Host consumers require an idle started host, got: ${hasLifecycleCleanupFailure() ? 'cleanup-failed' : host.state}${transitioning ? ' (transitioning)' : ''}`,\n );\n }\n const id = nextConsumerId++;\n consumers.set(id, label);\n let active = true;\n return () => {\n if (!active) return;\n active = false;\n consumers.delete(id);\n };\n };\n const openLifecycleScope = async (\n owner: object,\n input: FpsEditorPluginLifecycleScopeInput,\n ): Promise<void> => {\n const existing = lifecycleScopes.get(input.id);\n if (existing) {\n if (existing.input.scope !== input.scope || existing.input.parentId !== input.parentId) {\n throw new Error(`Editor Plugin lifecycle scope identity conflicts with the existing scope: ${input.id}`);\n }\n if (existing.owner !== owner) {\n throw new Error(`Editor Plugin lifecycle scope is owned by another controller: ${input.id}`);\n }\n if (failedLifecycleScopeIds.has(input.id)) {\n throw new Error(`Editor Plugin lifecycle scope cleanup is incomplete; close must be retried: ${input.id}`);\n }\n if (existing.closing) throw new Error(`Editor Plugin lifecycle scope is closing: ${input.id}`);\n return existing.ready;\n }\n const transitioning = lifecycleTransitioning || host.transitioning;\n if (host.state !== 'started' || transitioning || hasLifecycleCleanupFailure()) {\n throw new Error(\n `Editor Plugin lifecycle scopes require an idle started host, got: ${hasLifecycleCleanupFailure() ? 'cleanup-failed' : host.state}${transitioning ? ' (transitioning)' : ''}`,\n );\n }\n assertFpsEditorLifecycleScopeTopology(input, [...lifecycleScopes.values()].map(record => ({\n id: record.input.id,\n scope: record.input.scope,\n state: record.closing ? 'failed' as const : 'open' as const,\n })));\n if (input.scope === 'application') {\n lifecycleScopes.set(input.id, {\n input: Object.freeze({ ...input }),\n owner,\n host: null,\n ready: Promise.resolve(),\n closing: null,\n closeRequested: false,\n releaseTeardownReservation: null,\n });\n return;\n }\n const parent = lifecycleScopes.get(input.parentId!);\n if (!parent || parent.closing) {\n throw new Error(`Editor Plugin lifecycle parent scope is not open: ${input.parentId}`);\n }\n if (parent.owner !== owner) {\n throw new Error(`Editor Plugin lifecycle parent scope is owned by another controller: ${input.parentId}`);\n }\n const childScope: Exclude<FpsPluginScope, 'application'> = input.scope;\n const scopedManifests = options.manifests.filter(manifest => (\n resolveFpsPluginEnvironmentScopes(manifest, 'editor').includes(childScope)\n ));\n const record: FpsEditorPluginLifecycleScopeRecord = {\n input: Object.freeze({ ...input }),\n owner,\n host: null,\n ready: Promise.resolve(),\n closing: null,\n closeRequested: false,\n releaseTeardownReservation: null,\n };\n lifecycleScopes.set(input.id, record);\n record.ready = parent.ready.then(async () => {\n const child = (parent.host ?? host).createScope({ scope: childScope, manifests: scopedManifests });\n record.host = child;\n if (record.closeRequested) {\n record.releaseTeardownReservation = child.reserveTeardown();\n return;\n }\n await child.start();\n }).catch(async error => {\n let cleanupError: unknown;\n try { await record.host?.dispose(); } catch (caught) { cleanupError = caught; }\n if (!record.host || record.host.state === 'disposed') {\n if (lifecycleScopes.get(input.id) === record) lifecycleScopes.delete(input.id);\n }\n if (cleanupError) {\n failedLifecycleScopeIds.add(input.id);\n cleanupRetryKind = 'dispose';\n const combined = new Error('Editor Plugin lifecycle scope start and cleanup failed.') as Error & { errors: unknown[] };\n combined.errors = [error, cleanupError];\n throw combined;\n }\n throw error;\n });\n await record.ready;\n };\n const reserveLifecycleScopeClose = (scopeId: string, owner?: object): FpsEditorPluginLifecycleScopeRecord | null => {\n const record = lifecycleScopes.get(scopeId);\n if (!record) return null;\n if (owner && record.owner !== owner) {\n throw new Error(`Editor Plugin lifecycle scope is owned by another controller: ${scopeId}`);\n }\n record.closeRequested = true;\n record.releaseTeardownReservation ??= record.input.scope === 'application'\n ? host.reserveTeardown()\n : record.host?.reserveTeardown() ?? null;\n try {\n record.releaseTeardownReservation?.assertReady();\n } catch (error) {\n failedLifecycleScopeIds.add(scopeId);\n cleanupRetryKind = 'dispose';\n throw error;\n }\n return record;\n };\n const closeLifecycleScope = async (scopeId: string, owner?: object): Promise<void> => {\n const record = reserveLifecycleScopeClose(scopeId, owner);\n if (!record) return;\n if (record.closing) return record.closing;\n record.closing = (async () => {\n try {\n try { await record.ready; } catch { /* The open caller already received the start failure. */ }\n const children = [...lifecycleScopes.values()]\n .filter(candidate => candidate.input.parentId === scopeId)\n .reverse();\n const childErrors: unknown[] = [];\n for (const child of children) {\n try { await closeLifecycleScope(child.input.id, owner); }\n catch (error) {\n childErrors.push(error);\n break;\n }\n }\n if (childErrors.length > 0) {\n throw createEditorPluginCleanupError(\n `Editor Plugin lifecycle child scope cleanup failed: ${scopeId}`,\n childErrors,\n );\n }\n if (record.host?.state !== 'disposed') await record.host?.dispose();\n failedLifecycleScopeIds.delete(scopeId);\n lifecycleScopes.delete(scopeId);\n } catch (error) {\n const scopeCleanupFailed = record.host?.state === 'cleanup-failed'\n || [...lifecycleScopes.values()].some(candidate => (\n candidate.input.parentId === scopeId && failedLifecycleScopeIds.has(candidate.input.id)\n ));\n if (scopeCleanupFailed) {\n failedLifecycleScopeIds.add(scopeId);\n cleanupRetryKind ??= 'dispose';\n }\n throw error;\n } finally {\n if (lifecycleScopes.get(scopeId) === record) {\n record.closing = null;\n } else {\n record.releaseTeardownReservation?.();\n record.releaseTeardownReservation = null;\n }\n }\n })();\n return record.closing;\n };\n const closeLifecycleScopeRoots = async (): Promise<void> => {\n const roots = [...lifecycleScopes.values()]\n .filter(record => !record.input.parentId)\n .reverse();\n const errors: unknown[] = [];\n for (const root of roots) {\n try { await closeLifecycleScope(root.input.id); }\n catch (error) { errors.push(error); }\n }\n if (errors.length > 0) {\n throw createEditorPluginCleanupError('Editor Plugin lifecycle root scope cleanup failed', errors);\n }\n };\n const editorHost: FpsEditorPluginHost = {\n get state() { return hasLifecycleCleanupFailure() ? 'cleanup-failed' : host.state; },\n get transitioning() { return isLifecycleTransitioning(); },\n contributions: publicContributions,\n eventPublisher,\n reportDiagnostic(diagnostic, context = { scope: 'application', scopeId: 'editor:application' }) {\n reportEditorDiagnostic(diagnostic, true, context);\n },\n inspect: () => {\n const inspection = host.inspect();\n return Object.freeze({\n ...inspection,\n ...(hasLifecycleCleanupFailure() ? { state: 'cleanup-failed' as const } : {}),\n transitioning: isLifecycleTransitioning(),\n diagnostics: Object.freeze([...editorDiagnostics]),\n });\n },\n acquireConsumer,\n listCommands: () => {\n assertStableObservation();\n return resolveEditorCommandRegistrations(contributions);\n },\n executeCommand(command, input) {\n const transitioning = isLifecycleTransitioning();\n if (host.state !== 'started' || transitioning || hasLifecycleCleanupFailure()) {\n throw new Error(\n `Editor Plugin Host commands require an idle started host, got: ${hasLifecycleCleanupFailure() ? 'cleanup-failed' : host.state}${transitioning ? ' (transitioning)' : ''}`,\n );\n }\n const contribution = resolveEditorCommandContribution(contributions, command.id);\n if (!contribution) throw new Error(`Editor command is not contributed by this host: ${command.id}`);\n const dispatcher = editorCommandDispatchers.get(contribution);\n if (!dispatcher) throw new Error(`Editor command dispatcher is unavailable: ${command.id}`);\n const release = acquireConsumer(`command:${command.id}`);\n return dispatcher.execute(command, input).finally(() => {\n release();\n });\n },\n start: () => host.start(),\n stop: () => {\n assertNoEditorPluginHostConsumers(consumers, 'stop');\n if (lifecycleTransitioning) throw new Error('Editor Plugin Host lifecycle is already transitioning.');\n if (hasLifecycleCleanupFailure() && cleanupRetryKind === 'dispose') {\n throw new Error('Editor Plugin Host disposal cleanup is incomplete; dispose or the owning scope close must be retried.');\n }\n lifecycleTransitioning = true;\n cleanupRetryKind = 'stop';\n return (async () => {\n try {\n await closeLifecycleScopeRoots();\n await host.stop();\n lifecycleCleanupFailed = false;\n cleanupRetryKind = null;\n } catch (error) {\n lifecycleCleanupFailed = true;\n throw error;\n } finally {\n lifecycleTransitioning = false;\n }\n })();\n },\n dispose: () => {\n assertNoEditorPluginHostConsumers(consumers, 'dispose');\n if (lifecycleTransitioning) throw new Error('Editor Plugin Host lifecycle is already transitioning.');\n lifecycleTransitioning = true;\n cleanupRetryKind = 'dispose';\n return (async () => {\n try {\n await closeLifecycleScopeRoots();\n await host.dispose();\n lifecycleCleanupFailed = false;\n cleanupRetryKind = null;\n } catch (error) {\n lifecycleCleanupFailed = true;\n throw error;\n } finally {\n lifecycleTransitioning = false;\n }\n })();\n },\n };\n lifecycleScopeHostFactories.set(editorHost, () => {\n const owner = Object.freeze({});\n const scopeHost: FpsEditorPluginLifecycleScopeHost = {\n openScope: input => runLifecycleScopeTransition(() => openLifecycleScope(owner, input)),\n reserveScopeClose: scopeId => { reserveLifecycleScopeClose(scopeId, owner); },\n closeScope: scopeId => runLifecycleScopeTransition(async () => {\n await closeLifecycleScope(scopeId, owner);\n if (!hasLifecycleCleanupFailure() && !lifecycleTransitioning) cleanupRetryKind = null;\n }),\n };\n return Object.freeze(scopeHost);\n });\n return editorHost;\n}\n\nexport interface FpsEditorPluginEnvironmentModuleHostOptions {\n readonly module: FpsPluginEnvironmentModule;\n readonly initialServices?: readonly { token: FpsServiceToken<unknown>; value: unknown }[];\n readonly report?: FpsEditorPluginHostOptions['report'];\n}\n\nexport function createFpsEditorPluginHostFromEnvironmentModule(\n options: FpsEditorPluginEnvironmentModuleHostOptions,\n): FpsEditorPluginHost {\n if (options.module.environment !== 'editor') {\n throw new Error(`Editor Plugin Host requires an editor environment module, got: ${options.module.environment}`);\n }\n const entries = new Map<string, FpsPluginEnvironmentModule['entries'][number]>();\n for (const entry of options.module.entries) {\n if (entries.has(entry.pluginId)) throw new Error(`Duplicate Editor Plugin module entry: ${entry.pluginId}`);\n entries.set(entry.pluginId, entry);\n }\n return createFpsEditorPluginHost({\n manifests: options.module.manifests,\n pluginConfigs: options.module.pluginConfigs,\n initialServices: options.initialServices,\n report: options.report,\n async loadEntry(manifest) {\n const entry = entries.get(manifest.id);\n if (!entry) throw new Error(`Editor Plugin module entry is missing: ${manifest.id}`);\n return entry.load();\n },\n });\n}\n\nfunction requireTrustedContributionContext(\n context: FpsPluginContext,\n): NonNullable<ReturnType<typeof trustedContributionContexts.get>> {\n const trusted = trustedContributionContexts.get(context);\n if (!trusted) throw new Error('Editor contribution registration requires a host-authenticated Plugin context.');\n if (!trusted.registrationOpen) {\n throw new Error('Editor contributions may only be registered during the Plugin register lifecycle.');\n }\n return trusted;\n}\n\nfunction assertApplicationContributionScope(context: FpsPluginContext): void {\n if (context.scope !== 'application') {\n throw new Error(\n `Editor contributions are application-scope extension definitions; ${context.scope} scopes may own resources but cannot register global contributions.`,\n );\n }\n}\n\nfunction resolveEditorCommandRegistrations(\n registry: FpsEditorContributionRegistry,\n): readonly FpsEditorCommandRegistration[] {\n return registry.list('command').map(contribution => {\n const value = contribution.value;\n if (!isEditorCommandContribution(value) || value.registration.command.id !== contribution.id) {\n throw new Error(`Invalid Editor command contribution: ${contribution.id}`);\n }\n return value.registration;\n });\n}\n\nfunction resolveEditorCommandContribution(\n registry: FpsEditorContributionRegistry,\n commandId: string,\n): FpsEditorCommandContribution | null {\n const contribution = registry.get(commandId);\n if (!contribution || contribution.kind !== 'command') return null;\n const value = contribution.value;\n if (!isEditorCommandContribution(value) || value.registration.command.id !== commandId) {\n throw new Error(`Invalid Editor command contribution: ${commandId}`);\n }\n return value;\n}\n\nfunction isEditorCommandContribution(value: unknown): value is FpsEditorCommandContribution {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return false;\n const contribution = value as Partial<FpsEditorCommandContribution>;\n return contribution.type === 'editor.command'\n && !!contribution.registration\n && contribution.registration.command?.kind === 'command';\n}\n\nfunction snapshotEditorCommandRegistration<TInput, TOutput>(\n registration: FpsEditorCommandRegistration<TInput, TOutput>,\n): FpsEditorCommandRegistration<TInput, TOutput> {\n if (registration.command?.kind !== 'command') throw new Error('Editor command registration requires a command token.');\n const title = registration.title?.trim();\n if (!title) throw new Error(`Editor command title is required: ${registration.command.id}`);\n const description = registration.description?.trim();\n const agent = registration.agent\n ? snapshotEditorAgentCapability(registration.command.id, registration.agent)\n : undefined;\n return Object.freeze({\n command: registration.command,\n title,\n ...(description ? { description } : {}),\n ...(agent ? { agent } : {}),\n });\n}\n\nfunction snapshotEditorLifecycleParticipant(\n value: unknown,\n): Readonly<FpsEditorLifecycleParticipant> {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n throw new Error('Editor lifecycle participant must be an object.');\n }\n const participant = value as Partial<FpsEditorLifecycleParticipant>;\n const id = assertContributionId(participant.id ?? '');\n if (!Array.isArray(participant.transitions) || participant.transitions.length === 0) {\n throw new Error(`Editor lifecycle participant transitions are required: ${id}`);\n }\n const allowed = new Set<string>(FPS_EDITOR_LIFECYCLE_TRANSITION_TYPES);\n const transitions = participant.transitions.map(transition => {\n if (typeof transition !== 'string' || !allowed.has(transition)) {\n throw new Error(`Editor lifecycle participant transition is invalid: ${id} -> ${String(transition)}`);\n }\n return transition;\n }) as FpsEditorLifecycleParticipant['transitions'];\n for (const method of ['prepare', 'settled', 'failed'] as const) {\n if (participant[method] !== undefined && typeof participant[method] !== 'function') {\n throw new Error(`Editor lifecycle participant ${method} must be a function: ${id}`);\n }\n }\n return Object.freeze({\n id,\n transitions: Object.freeze([...new Set(transitions)]),\n ...(participant.prepare ? { prepare: participant.prepare } : {}),\n ...(participant.settled ? { settled: participant.settled } : {}),\n ...(participant.failed ? { failed: participant.failed } : {}),\n });\n}\n\nfunction snapshotEditorAgentCapability(\n commandId: string,\n manifest: EditorAgentBridgeCapabilityManifest,\n): EditorAgentBridgeCapabilityManifest {\n if (manifest.schemaVersion !== EDITOR_AGENT_BRIDGE_SCHEMA_VERSION) {\n throw new Error(`Editor command Agent capability schema mismatch: ${commandId}`);\n }\n if (manifest.id !== commandId) {\n throw new Error(`Editor command and Agent capability ids must match: ${commandId} != ${manifest.id}`);\n }\n if (!manifest.title?.trim()) throw new Error(`Editor command Agent capability title is required: ${commandId}`);\n if (manifest.access !== 'read' && manifest.access !== 'write') {\n throw new Error(`Editor command Agent capability access is invalid: ${commandId}`);\n }\n return Object.freeze({\n ...manifest,\n title: manifest.title.trim(),\n ...(manifest.description?.trim() ? { description: manifest.description.trim() } : {}),\n ...(manifest.inputSchema ? { inputSchema: cloneEditorJsonObject(manifest.inputSchema) } : {}),\n ...(manifest.outputSchema ? { outputSchema: cloneEditorJsonObject(manifest.outputSchema) } : {}),\n });\n}\n\nfunction cloneEditorJsonObject(value: EditorAgentBridgeJsonObject): EditorAgentBridgeJsonObject {\n return cloneEditorJsonValue(value, '$') as EditorAgentBridgeJsonObject;\n}\n\nfunction cloneEditorJsonValue(value: unknown, path: string): unknown {\n if (value === null || typeof value === 'string' || typeof value === 'boolean') return value;\n if (typeof value === 'number' && Number.isFinite(value)) return value;\n if (Array.isArray(value)) {\n return Object.freeze(value.map((entry, index) => cloneEditorJsonValue(entry, `${path}[${index}]`)));\n }\n if (!value || typeof value !== 'object') throw new Error(`Editor Agent schema contains invalid value at ${path}`);\n const prototype = Object.getPrototypeOf(value);\n if (prototype !== Object.prototype && prototype !== null) {\n throw new Error(`Editor Agent schema must contain plain objects at ${path}`);\n }\n const result: Record<string, unknown> = {};\n for (const key of Object.keys(value)) {\n result[key] = cloneEditorJsonValue((value as Record<string, unknown>)[key], `${path}.${key}`);\n }\n return Object.freeze(result);\n}\n\nfunction assertNoEditorPluginHostConsumers(consumers: ReadonlyMap<number, string>, operation: string): void {\n if (consumers.size === 0) return;\n throw new Error(\n `Cannot ${operation} Editor Plugin Host with active consumers: ${[...consumers.values()].join(', ')}`,\n );\n}\n\nfunction bindEditorPluginEntry(\n entry: FpsPluginEntry,\n registry: FpsEditorContributionRegistry,\n): FpsPluginEntry {\n return {\n pluginId: entry.pluginId,\n environment: entry.environment,\n async register(context) {\n const trusted = {\n registry,\n pluginId: context.pluginId,\n registrationOpen: true,\n addDisposer: context.add.bind(context),\n };\n trustedContributionContexts.set(context, trusted);\n try {\n return await entry.register(context);\n } finally {\n trusted.registrationOpen = false;\n }\n },\n ...(entry.start ? { start: (context: FpsPluginContext) => entry.start!(context) } : {}),\n ...(entry.stop ? { stop: (context: FpsPluginContext) => entry.stop!(context) } : {}),\n dispose: async context => {\n try { await entry.dispose?.(context); }\n finally { trustedContributionContexts.delete(context); }\n },\n };\n}\n\nfunction assertContributionId(id: string): string {\n const normalized = id.trim();\n if (!/^[a-z0-9]+(?:[._-][a-z0-9]+)+$/.test(normalized)) {\n throw new Error(`Editor contribution id must be namespaced lowercase, got: ${id}`);\n }\n return normalized;\n}\n\nfunction normalizePriority(priority: number | undefined): number {\n if (priority === undefined) return 0;\n if (!Number.isFinite(priority)) throw new Error('Editor contribution priority must be finite.');\n return priority;\n}\n\nfunction assertContributionKind(value: unknown): FpsEditorContributionKind {\n if (typeof value !== 'string' || !CONTRIBUTION_KINDS.has(value as FpsEditorContributionKind)) {\n throw new Error(`Unknown editor contribution kind: ${String(value)}`);\n }\n return value as FpsEditorContributionKind;\n}\n\nfunction compareContributions(\n left: FpsRegisteredEditorContribution,\n right: FpsRegisteredEditorContribution,\n): number {\n const priority = (right.priority ?? 0) - (left.priority ?? 0);\n if (priority !== 0) return priority;\n return left.id < right.id ? -1 : left.id > right.id ? 1 : 0;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"editor-plugin-host.js","sourceRoot":"","sources":["../src/editor-plugin-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EACrB,oBAAoB,EACpB,iCAAiC,GAUlC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,GAIpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kCAAkC,GAGnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,8BAA8B,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AAC,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,gCAAgC,CACvC,YAA6C;IAE7C,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;IACjC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa,IAAI,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,EAAE,CAAC;QACnF,MAAM,IAAI,KAAK,CAAC,qCAAqC,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IACD,MAAM,YAAY,GAAG,8BAA8B,CAAC,KAAK,CAAC,YAAsC,CAAC,CAAC;IAClG,IAAI,YAAY,CAAC,UAAU,CAAC,EAAE,KAAK,YAAY,CAAC,EAAE,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CACb,yCAAyC,YAAY,CAAC,EAAE,OAAO,YAAY,CAAC,UAAU,CAAC,EAAE,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["import {\n type FpsCommand,\n type FpsCommandRegistry,\n defineFpsServiceToken,\n defineFpsPluginEntry,\n resolveFpsPluginEnvironmentScopes,\n type FpsDiagnostic,\n type FpsDisposer,\n type FpsEventRegistry,\n type FpsPluginEntry,\n type FpsPluginEnvironmentModule,\n type FpsPluginContext,\n type FpsPluginManifest,\n type FpsPluginScope,\n type FpsServiceToken,\n} from '@fps-games/plugin-api';\nimport {\n createFpsPluginHost,\n type FpsPluginHost,\n type FpsPluginHostInspection,\n type FpsPluginTeardownReservation,\n} from '@fps-games/plugin-host';\nimport {\n EDITOR_AGENT_BRIDGE_SCHEMA_VERSION,\n type EditorAgentBridgeCapabilityManifest,\n type EditorAgentBridgeJsonObject,\n} from '@fps-games/editor-protocol';\nimport {\n FPS_EDITOR_DIAGNOSTIC_REPORTED,\n createFpsEditorEventPublisher,\n type FpsEditorEventContext,\n type FpsEditorEventPublisher,\n} from './events.js';\nimport {\n FPS_EDITOR_LIFECYCLE_TRANSITION_TYPES,\n assertFpsEditorLifecycleScopeTopology,\n type FpsEditorLifecycleParticipant,\n} from './lifecycle.js';\nimport {\n snapshotEditorToolRegistration,\n type EditorToolRegistry,\n type EditorToolRegistration,\n} from './editor-tools.js';\n\nexport type FpsEditorContributionKind =\n | 'hierarchy'\n | 'inspector'\n | 'panel'\n | 'command'\n | 'capability'\n | 'tool'\n | 'lifecycle-participant';\n\nconst UNAVAILABLE_EDITOR_EVENT_ROUTE: FpsEventRegistry = Object.freeze({\n subscribe: () => () => {},\n publish: () => Promise.resolve(),\n});\n\nexport interface FpsEditorContribution<TValue = unknown> {\n readonly id: string;\n readonly kind: FpsEditorContributionKind;\n readonly value: TValue;\n readonly priority?: number;\n}\n\nexport interface FpsRegisteredEditorContribution<TValue = unknown>\n extends FpsEditorContribution<TValue> {\n readonly pluginId: string;\n}\n\nexport interface FpsEditorContributionRegistry {\n get(id: string): FpsRegisteredEditorContribution | undefined;\n list(kind?: FpsEditorContributionKind): readonly FpsRegisteredEditorContribution[];\n subscribe(listener: (registry: FpsEditorContributionRegistry) => void): FpsDisposer;\n}\n\ntype FpsEditorContributionRegistrar = <TValue>(\n pluginId: string,\n contribution: FpsEditorContribution<TValue>,\n) => FpsDisposer;\n\nconst contributionRegistrars = new WeakMap<FpsEditorContributionRegistry, FpsEditorContributionRegistrar>();\nconst trustedContributionContexts = new WeakMap<\n FpsPluginContext,\n {\n registry: FpsEditorContributionRegistry;\n pluginId: string;\n registrationOpen: boolean;\n addDisposer: (disposer: FpsDisposer) => void;\n }\n>();\nconst CONTRIBUTION_KINDS = new Set<FpsEditorContributionKind>([\n 'hierarchy', 'inspector', 'panel', 'command', 'capability', 'tool', 'lifecycle-participant',\n]);\n\nexport const FPS_EDITOR_CONTRIBUTIONS = defineFpsServiceToken<FpsEditorContributionRegistry>(\n 'fps.editor.contributions',\n);\n\nexport interface FpsEditorPluginHostOptions {\n readonly manifests: readonly FpsPluginManifest[];\n readonly loadEntry: (\n manifest: FpsPluginManifest,\n environment: 'editor',\n ) => Promise<FpsPluginEntry | null>;\n readonly initialServices?: readonly { token: FpsServiceToken<unknown>; value: unknown }[];\n readonly pluginConfigs?: Readonly<Record<string, unknown>>;\n readonly report?: Parameters<typeof createFpsPluginHost>[0]['report'];\n}\n\nexport interface FpsEditorPluginHost {\n readonly state: FpsPluginHost['state'];\n readonly transitioning: boolean;\n readonly contributions: FpsEditorContributionRegistry;\n readonly eventPublisher: FpsEditorEventPublisher;\n reportDiagnostic(diagnostic: FpsDiagnostic, context?: FpsEditorEventContext): void;\n inspect(): FpsPluginHostInspection;\n acquireConsumer(label?: string): () => void;\n listCommands(): readonly FpsEditorCommandRegistration[];\n executeCommand<TInput, TOutput>(command: FpsCommand<TInput, TOutput>, input: TInput): Promise<TOutput>;\n start(): Promise<void>;\n stop(): Promise<void>;\n dispose(): Promise<void>;\n}\n\nexport interface FpsEditorPluginLifecycleScopeInput {\n readonly id: string;\n readonly scope: FpsPluginScope;\n readonly parentId?: string;\n}\n\nexport interface FpsEditorPluginLifecycleScopeHost {\n openScope(input: FpsEditorPluginLifecycleScopeInput): Promise<void>;\n reserveScopeClose(scopeId: string): void;\n closeScope(scopeId: string): Promise<void>;\n}\n\ninterface FpsEditorPluginLifecycleScopeRecord {\n readonly input: FpsEditorPluginLifecycleScopeInput;\n readonly owner: object;\n host: FpsPluginHost | null;\n ready: Promise<void>;\n closing: Promise<void> | null;\n closeRequested: boolean;\n releaseTeardownReservation: FpsPluginTeardownReservation | null;\n}\n\nconst lifecycleScopeHostFactories = new WeakMap<\n FpsEditorPluginHost,\n () => FpsEditorPluginLifecycleScopeHost\n>();\n\nfunction createEditorPluginCleanupError(message: string, errors: readonly unknown[]): Error {\n const details = errors.map(error => error instanceof Error ? error.message : String(error)).join('; ');\n const combined = new Error(`${message}: ${details}`) as Error & { errors: unknown[] };\n combined.errors = [...errors];\n return combined;\n}\n\nexport function getFpsEditorPluginLifecycleScopeHost(\n host: FpsEditorPluginHost,\n): FpsEditorPluginLifecycleScopeHost {\n const createScopeHost = lifecycleScopeHostFactories.get(host);\n if (!createScopeHost) throw new Error('Editor Plugin lifecycle scope host is unavailable.');\n return createScopeHost();\n}\n\nexport interface FpsEditorCommandRegistration<TInput = unknown, TOutput = unknown> {\n readonly command: FpsCommand<TInput, TOutput>;\n readonly title: string;\n readonly description?: string;\n readonly agent?: EditorAgentBridgeCapabilityManifest;\n}\n\ninterface FpsEditorCommandContribution<TInput = unknown, TOutput = unknown> {\n readonly type: 'editor.command';\n readonly registration: FpsEditorCommandRegistration<TInput, TOutput>;\n}\n\nconst editorCommandDispatchers = new WeakMap<object, FpsCommandRegistry>();\n\nexport function registerFpsEditorCommand<TInput, TOutput>(\n context: FpsPluginContext,\n registration: FpsEditorCommandRegistration<TInput, TOutput>,\n handler: (input: TInput) => TOutput | Promise<TOutput>,\n): void {\n const trusted = requireTrustedContributionContext(context);\n assertApplicationContributionScope(context);\n const snapshot = snapshotEditorCommandRegistration(registration);\n const unregisterHandler = context.commands.register(snapshot.command, handler);\n trusted.addDisposer(unregisterHandler);\n try {\n const contribution = Object.freeze({\n type: 'editor.command' as const,\n registration: snapshot,\n }) satisfies FpsEditorCommandContribution<TInput, TOutput>;\n editorCommandDispatchers.set(contribution, context.commands);\n registerFpsEditorContribution(context, {\n id: snapshot.command.id,\n kind: 'command',\n value: contribution,\n });\n } catch (error) {\n unregisterHandler();\n throw error;\n }\n}\n\nexport function registerFpsEditorLifecycleParticipant(\n context: FpsPluginContext,\n participant: FpsEditorLifecycleParticipant,\n): FpsDisposer {\n const snapshot = snapshotEditorLifecycleParticipant(participant);\n return registerFpsEditorContribution(context, {\n id: snapshot.id,\n kind: 'lifecycle-participant',\n value: snapshot,\n });\n}\n\ninterface FpsEditorToolContribution {\n readonly type: 'editor.tool';\n readonly registration: EditorToolRegistration;\n}\n\nexport function registerFpsEditorTool(\n context: FpsPluginContext,\n registration: EditorToolRegistration,\n priority = 0,\n): FpsDisposer {\n const snapshot = snapshotEditorToolRegistration(registration);\n return registerFpsEditorContribution(context, {\n id: snapshot.definition.id,\n kind: 'tool',\n priority,\n value: Object.freeze({\n type: 'editor.tool',\n registration: snapshot,\n } satisfies FpsEditorToolContribution),\n });\n}\n\nexport function resolveFpsEditorTools(\n registry: FpsEditorContributionRegistry,\n): readonly EditorToolRegistration[] {\n return Object.freeze(registry.list('tool').map(contribution => {\n const value = contribution.value;\n if (!isRecord(value) || value.type !== 'editor.tool' || !('registration' in value)) {\n throw new Error(`Invalid Editor Tool contribution: ${contribution.id}`);\n }\n const registration = snapshotEditorToolRegistration(value.registration as EditorToolRegistration);\n if (registration.definition.id !== contribution.id) {\n throw new Error(\n `Editor Tool contribution id mismatch: ${contribution.id} != ${registration.definition.id}`,\n );\n }\n return registration;\n }));\n}\n\nexport function bindFpsEditorTools(\n contributions: FpsEditorContributionRegistry,\n tools: EditorToolRegistry,\n): FpsDisposer {\n const active = new Map<string, {\n contribution: FpsRegisteredEditorContribution;\n unregister: FpsDisposer;\n }>();\n const sync = (source: FpsEditorContributionRegistry): void => {\n const next = new Map(source.list('tool').map(contribution => [contribution.id, contribution]));\n for (const [id, binding] of [...active]) {\n if (next.get(id) === binding.contribution) continue;\n binding.unregister();\n active.delete(id);\n }\n for (const contribution of next.values()) {\n if (active.has(contribution.id)) continue;\n const registration = resolveFpsEditorToolContribution(contribution);\n active.set(contribution.id, {\n contribution,\n unregister: tools.register(registration),\n });\n }\n };\n sync(contributions);\n const unsubscribe = contributions.subscribe(sync);\n return () => {\n unsubscribe();\n for (const binding of [...active.values()].reverse()) binding.unregister();\n active.clear();\n };\n}\n\nexport function resolveFpsEditorLifecycleParticipants(\n registry: FpsEditorContributionRegistry,\n): readonly FpsEditorLifecycleParticipant[] {\n return registry.list('lifecycle-participant').map(contribution => {\n const participant = snapshotEditorLifecycleParticipant(contribution.value);\n if (participant.id !== contribution.id) {\n throw new Error(\n `Editor lifecycle participant contribution id mismatch: ${contribution.id} != ${participant.id}`,\n );\n }\n return participant;\n });\n}\n\nexport function createFpsEditorContributionRegistry(): FpsEditorContributionRegistry {\n const entries = new Map<string, FpsRegisteredEditorContribution>();\n const listeners = new Set<(registry: FpsEditorContributionRegistry) => void>();\n const publish = (): void => {\n for (const listener of [...listeners]) listener(registry);\n };\n const registry: FpsEditorContributionRegistry = {\n get: id => entries.get(id),\n list: kind => {\n if (kind !== undefined) assertContributionKind(kind);\n return [...entries.values()]\n .filter(entry => kind === undefined || entry.kind === kind)\n .sort(compareContributions);\n },\n subscribe(listener) {\n listeners.add(listener);\n return () => { listeners.delete(listener); };\n },\n };\n contributionRegistrars.set(registry, (pluginId, contribution) => {\n const id = assertContributionId(contribution.id);\n const kind = assertContributionKind(contribution.kind);\n if (entries.has(id)) throw new Error(`Duplicate editor contribution id: ${id}`);\n const entry = Object.freeze({\n ...contribution,\n id,\n kind,\n pluginId,\n priority: normalizePriority(contribution.priority),\n });\n entries.set(id, entry);\n publish();\n let active = true;\n return () => {\n if (!active) return;\n active = false;\n if (entries.get(id) === entry) {\n entries.delete(id);\n publish();\n }\n };\n });\n return registry;\n}\n\nexport function registerFpsEditorContribution<TValue>(\n context: FpsPluginContext,\n contribution: FpsEditorContribution<TValue>,\n): FpsDisposer {\n const trusted = requireTrustedContributionContext(context);\n assertApplicationContributionScope(context);\n const declaredRegistry = context.services.get(FPS_EDITOR_CONTRIBUTIONS);\n if (declaredRegistry !== trusted.registry) {\n throw new Error('Editor contribution service does not belong to this Plugin Host.');\n }\n const register = contributionRegistrars.get(trusted.registry);\n if (!register) throw new Error('Editor contribution registry is not owned by this host.');\n if (contribution.kind === 'lifecycle-participant') {\n snapshotEditorLifecycleParticipant(contribution.value);\n }\n if (contribution.kind === 'tool') {\n resolveFpsEditorToolContribution(Object.freeze({\n ...contribution,\n pluginId: trusted.pluginId,\n priority: normalizePriority(contribution.priority),\n }));\n }\n const unregister = register(trusted.pluginId, contribution);\n trusted.addDisposer(unregister);\n let active = true;\n return () => {\n if (!active || !trusted.registrationOpen) return;\n active = false;\n return unregister();\n };\n}\n\nexport function createFpsEditorPluginHost(options: FpsEditorPluginHostOptions): FpsEditorPluginHost {\n const contributions = createFpsEditorContributionRegistry();\n const consumers = new Map<number, string>();\n let nextConsumerId = 1;\n let lifecycleTransitioning = false;\n let activeLifecycleScopeTransitions = 0;\n let lifecycleCleanupFailed = false;\n let cleanupRetryKind: 'stop' | 'dispose' | null = null;\n const lifecycleScopes = new Map<string, FpsEditorPluginLifecycleScopeRecord>();\n const failedLifecycleScopeIds = new Set<string>();\n const editorDiagnostics: FpsDiagnostic[] = [];\n let eventPublisher: FpsEditorEventPublisher | undefined;\n const reportEditorDiagnostic = (\n diagnostic: FpsDiagnostic,\n publishEvent: boolean,\n context: FpsEditorEventContext = { scope: 'application', scopeId: 'editor:application' },\n ): void => {\n editorDiagnostics.push(Object.freeze({\n code: diagnostic.code,\n message: diagnostic.message,\n severity: diagnostic.severity,\n ...(diagnostic.pluginId ? { pluginId: diagnostic.pluginId } : {}),\n }));\n if (editorDiagnostics.length > 200) editorDiagnostics.shift();\n try { options.report?.(diagnostic); }\n catch { /* Diagnostic observers cannot affect Plugin or Editor lifecycle state. */ }\n if (!publishEvent || !eventPublisher\n || diagnostic.details?.eventId === FPS_EDITOR_DIAGNOSTIC_REPORTED.id) return;\n void eventPublisher.publish(FPS_EDITOR_DIAGNOSTIC_REPORTED, Object.freeze({\n diagnostic: Object.freeze({\n code: diagnostic.code,\n message: diagnostic.message,\n severity: diagnostic.severity,\n ...(diagnostic.pluginId ? { pluginId: diagnostic.pluginId } : {}),\n }),\n }), {\n ...context,\n ...(context.sourcePluginId || !diagnostic.pluginId ? {} : { sourcePluginId: diagnostic.pluginId }),\n });\n };\n const hasLifecycleCleanupFailure = (): boolean => (\n lifecycleCleanupFailed || failedLifecycleScopeIds.size > 0\n );\n const applicationManifests = options.manifests.filter(manifest => (\n resolveFpsPluginEnvironmentScopes(manifest, 'editor').includes('application')\n ));\n const host = createFpsPluginHost({\n environment: 'editor',\n apiVersion: 1,\n scope: 'application',\n manifests: applicationManifests,\n initialServices: [\n { token: FPS_EDITOR_CONTRIBUTIONS as FpsServiceToken<unknown>, value: contributions },\n ...(options.initialServices ?? []),\n ],\n pluginConfigs: options.pluginConfigs,\n loadEntry: async (manifest, environment) => {\n const entry = await options.loadEntry(manifest, environment as 'editor');\n return entry ? bindEditorPluginEntry(defineFpsPluginEntry(entry), contributions) : null;\n },\n report: diagnostic => reportEditorDiagnostic(diagnostic, true),\n });\n eventPublisher = createFpsEditorEventPublisher({\n events: host.events,\n captureRoute(context) {\n const route: FpsEditorPluginLifecycleScopeRecord[] = [];\n let record = lifecycleScopes.get(context.scopeId);\n while (record) {\n route.push(record);\n record = record.input.parentId ? lifecycleScopes.get(record.input.parentId) : undefined;\n }\n return () => {\n for (const candidate of route) {\n if (lifecycleScopes.get(candidate.input.id) !== candidate\n || candidate.closeRequested\n || candidate.closing) continue;\n const routeHost = candidate.host ?? host;\n if (routeHost.state !== 'started' || routeHost.transitioning) continue;\n return routeHost.events;\n }\n // Scope-close facts are delivered asynchronously. A parent teardown can\n // reserve the complete host tree before an earlier child-close fact\n // reaches this resolver. In that interval public event operations are\n // intentionally unavailable, and every observer on that route is also\n // being torn down. Treat the route as closed instead of reporting an\n // observer failure for a lifecycle state that is working as designed.\n return host.state === 'started' && !host.transitioning\n ? host.events\n : UNAVAILABLE_EDITOR_EVENT_ROUTE;\n };\n },\n report: diagnostic => reportEditorDiagnostic(diagnostic, false),\n });\n const isLifecycleTransitioning = (): boolean => (\n lifecycleTransitioning || activeLifecycleScopeTransitions > 0 || host.transitioning\n );\n const assertStableObservation = (): void => {\n if (hasLifecycleCleanupFailure()) {\n throw new Error('Editor Plugin Host cleanup is incomplete; only cleanup retry operations are available.');\n }\n if (isLifecycleTransitioning()) {\n throw new Error('Editor Plugin Host observation is unavailable during a lifecycle transition.');\n }\n };\n const publicContributions: FpsEditorContributionRegistry = Object.freeze({\n get(id: string) {\n assertStableObservation();\n return contributions.get(id);\n },\n list(kind?: FpsEditorContributionKind) {\n assertStableObservation();\n return contributions.list(kind);\n },\n subscribe(listener: (registry: FpsEditorContributionRegistry) => void) {\n assertStableObservation();\n return contributions.subscribe(listener);\n },\n });\n const runLifecycleScopeTransition = async <T>(operation: () => Promise<T>): Promise<T> => {\n activeLifecycleScopeTransitions += 1;\n try { return await operation(); }\n finally { activeLifecycleScopeTransitions -= 1; }\n };\n const acquireConsumer = (label = 'anonymous'): (() => void) => {\n const transitioning = isLifecycleTransitioning();\n if (host.state !== 'started' || transitioning || hasLifecycleCleanupFailure()) {\n throw new Error(\n `Editor Plugin Host consumers require an idle started host, got: ${hasLifecycleCleanupFailure() ? 'cleanup-failed' : host.state}${transitioning ? ' (transitioning)' : ''}`,\n );\n }\n const id = nextConsumerId++;\n consumers.set(id, label);\n let active = true;\n return () => {\n if (!active) return;\n active = false;\n consumers.delete(id);\n };\n };\n const openLifecycleScope = async (\n owner: object,\n input: FpsEditorPluginLifecycleScopeInput,\n ): Promise<void> => {\n const existing = lifecycleScopes.get(input.id);\n if (existing) {\n if (existing.input.scope !== input.scope || existing.input.parentId !== input.parentId) {\n throw new Error(`Editor Plugin lifecycle scope identity conflicts with the existing scope: ${input.id}`);\n }\n if (existing.owner !== owner) {\n throw new Error(`Editor Plugin lifecycle scope is owned by another controller: ${input.id}`);\n }\n if (failedLifecycleScopeIds.has(input.id)) {\n throw new Error(`Editor Plugin lifecycle scope cleanup is incomplete; close must be retried: ${input.id}`);\n }\n if (existing.closing) throw new Error(`Editor Plugin lifecycle scope is closing: ${input.id}`);\n return existing.ready;\n }\n const transitioning = lifecycleTransitioning || host.transitioning;\n if (host.state !== 'started' || transitioning || hasLifecycleCleanupFailure()) {\n throw new Error(\n `Editor Plugin lifecycle scopes require an idle started host, got: ${hasLifecycleCleanupFailure() ? 'cleanup-failed' : host.state}${transitioning ? ' (transitioning)' : ''}`,\n );\n }\n assertFpsEditorLifecycleScopeTopology(input, [...lifecycleScopes.values()].map(record => ({\n id: record.input.id,\n scope: record.input.scope,\n state: record.closing ? 'failed' as const : 'open' as const,\n })));\n if (input.scope === 'application') {\n lifecycleScopes.set(input.id, {\n input: Object.freeze({ ...input }),\n owner,\n host: null,\n ready: Promise.resolve(),\n closing: null,\n closeRequested: false,\n releaseTeardownReservation: null,\n });\n return;\n }\n const parent = lifecycleScopes.get(input.parentId!);\n if (!parent || parent.closing) {\n throw new Error(`Editor Plugin lifecycle parent scope is not open: ${input.parentId}`);\n }\n if (parent.owner !== owner) {\n throw new Error(`Editor Plugin lifecycle parent scope is owned by another controller: ${input.parentId}`);\n }\n const childScope: Exclude<FpsPluginScope, 'application'> = input.scope;\n const scopedManifests = options.manifests.filter(manifest => (\n resolveFpsPluginEnvironmentScopes(manifest, 'editor').includes(childScope)\n ));\n const record: FpsEditorPluginLifecycleScopeRecord = {\n input: Object.freeze({ ...input }),\n owner,\n host: null,\n ready: Promise.resolve(),\n closing: null,\n closeRequested: false,\n releaseTeardownReservation: null,\n };\n lifecycleScopes.set(input.id, record);\n record.ready = parent.ready.then(async () => {\n const child = (parent.host ?? host).createScope({ scope: childScope, manifests: scopedManifests });\n record.host = child;\n if (record.closeRequested) {\n record.releaseTeardownReservation = child.reserveTeardown();\n return;\n }\n await child.start();\n }).catch(async error => {\n let cleanupError: unknown;\n try { await record.host?.dispose(); } catch (caught) { cleanupError = caught; }\n if (!record.host || record.host.state === 'disposed') {\n if (lifecycleScopes.get(input.id) === record) lifecycleScopes.delete(input.id);\n }\n if (cleanupError) {\n failedLifecycleScopeIds.add(input.id);\n cleanupRetryKind = 'dispose';\n const combined = new Error('Editor Plugin lifecycle scope start and cleanup failed.') as Error & { errors: unknown[] };\n combined.errors = [error, cleanupError];\n throw combined;\n }\n throw error;\n });\n await record.ready;\n };\n const reserveLifecycleScopeClose = (scopeId: string, owner?: object): FpsEditorPluginLifecycleScopeRecord | null => {\n const record = lifecycleScopes.get(scopeId);\n if (!record) return null;\n if (owner && record.owner !== owner) {\n throw new Error(`Editor Plugin lifecycle scope is owned by another controller: ${scopeId}`);\n }\n record.closeRequested = true;\n record.releaseTeardownReservation ??= record.input.scope === 'application'\n ? host.reserveTeardown()\n : record.host?.reserveTeardown() ?? null;\n try {\n record.releaseTeardownReservation?.assertReady();\n } catch (error) {\n failedLifecycleScopeIds.add(scopeId);\n cleanupRetryKind = 'dispose';\n throw error;\n }\n return record;\n };\n const closeLifecycleScope = async (scopeId: string, owner?: object): Promise<void> => {\n const record = reserveLifecycleScopeClose(scopeId, owner);\n if (!record) return;\n if (record.closing) return record.closing;\n record.closing = (async () => {\n try {\n try { await record.ready; } catch { /* The open caller already received the start failure. */ }\n const children = [...lifecycleScopes.values()]\n .filter(candidate => candidate.input.parentId === scopeId)\n .reverse();\n const childErrors: unknown[] = [];\n for (const child of children) {\n try { await closeLifecycleScope(child.input.id, owner); }\n catch (error) {\n childErrors.push(error);\n break;\n }\n }\n if (childErrors.length > 0) {\n throw createEditorPluginCleanupError(\n `Editor Plugin lifecycle child scope cleanup failed: ${scopeId}`,\n childErrors,\n );\n }\n if (record.host?.state !== 'disposed') await record.host?.dispose();\n failedLifecycleScopeIds.delete(scopeId);\n lifecycleScopes.delete(scopeId);\n } catch (error) {\n const scopeCleanupFailed = record.host?.state === 'cleanup-failed'\n || [...lifecycleScopes.values()].some(candidate => (\n candidate.input.parentId === scopeId && failedLifecycleScopeIds.has(candidate.input.id)\n ));\n if (scopeCleanupFailed) {\n failedLifecycleScopeIds.add(scopeId);\n cleanupRetryKind ??= 'dispose';\n }\n throw error;\n } finally {\n if (lifecycleScopes.get(scopeId) === record) {\n record.closing = null;\n } else {\n record.releaseTeardownReservation?.();\n record.releaseTeardownReservation = null;\n }\n }\n })();\n return record.closing;\n };\n const closeLifecycleScopeRoots = async (): Promise<void> => {\n const roots = [...lifecycleScopes.values()]\n .filter(record => !record.input.parentId)\n .reverse();\n const errors: unknown[] = [];\n for (const root of roots) {\n try { await closeLifecycleScope(root.input.id); }\n catch (error) { errors.push(error); }\n }\n if (errors.length > 0) {\n throw createEditorPluginCleanupError('Editor Plugin lifecycle root scope cleanup failed', errors);\n }\n };\n const editorHost: FpsEditorPluginHost = {\n get state() { return hasLifecycleCleanupFailure() ? 'cleanup-failed' : host.state; },\n get transitioning() { return isLifecycleTransitioning(); },\n contributions: publicContributions,\n eventPublisher,\n reportDiagnostic(diagnostic, context = { scope: 'application', scopeId: 'editor:application' }) {\n reportEditorDiagnostic(diagnostic, true, context);\n },\n inspect: () => {\n const inspection = host.inspect();\n return Object.freeze({\n ...inspection,\n ...(hasLifecycleCleanupFailure() ? { state: 'cleanup-failed' as const } : {}),\n transitioning: isLifecycleTransitioning(),\n diagnostics: Object.freeze([...editorDiagnostics]),\n });\n },\n acquireConsumer,\n listCommands: () => {\n assertStableObservation();\n return resolveEditorCommandRegistrations(contributions);\n },\n executeCommand(command, input) {\n const transitioning = isLifecycleTransitioning();\n if (host.state !== 'started' || transitioning || hasLifecycleCleanupFailure()) {\n throw new Error(\n `Editor Plugin Host commands require an idle started host, got: ${hasLifecycleCleanupFailure() ? 'cleanup-failed' : host.state}${transitioning ? ' (transitioning)' : ''}`,\n );\n }\n const contribution = resolveEditorCommandContribution(contributions, command.id);\n if (!contribution) throw new Error(`Editor command is not contributed by this host: ${command.id}`);\n const dispatcher = editorCommandDispatchers.get(contribution);\n if (!dispatcher) throw new Error(`Editor command dispatcher is unavailable: ${command.id}`);\n const release = acquireConsumer(`command:${command.id}`);\n return dispatcher.execute(command, input).finally(() => {\n release();\n });\n },\n start: () => host.start(),\n stop: () => {\n assertNoEditorPluginHostConsumers(consumers, 'stop');\n if (lifecycleTransitioning) throw new Error('Editor Plugin Host lifecycle is already transitioning.');\n if (hasLifecycleCleanupFailure() && cleanupRetryKind === 'dispose') {\n throw new Error('Editor Plugin Host disposal cleanup is incomplete; dispose or the owning scope close must be retried.');\n }\n lifecycleTransitioning = true;\n cleanupRetryKind = 'stop';\n return (async () => {\n try {\n await closeLifecycleScopeRoots();\n await host.stop();\n lifecycleCleanupFailed = false;\n cleanupRetryKind = null;\n } catch (error) {\n lifecycleCleanupFailed = true;\n throw error;\n } finally {\n lifecycleTransitioning = false;\n }\n })();\n },\n dispose: () => {\n assertNoEditorPluginHostConsumers(consumers, 'dispose');\n if (lifecycleTransitioning) throw new Error('Editor Plugin Host lifecycle is already transitioning.');\n lifecycleTransitioning = true;\n cleanupRetryKind = 'dispose';\n return (async () => {\n try {\n await closeLifecycleScopeRoots();\n await host.dispose();\n lifecycleCleanupFailed = false;\n cleanupRetryKind = null;\n } catch (error) {\n lifecycleCleanupFailed = true;\n throw error;\n } finally {\n lifecycleTransitioning = false;\n }\n })();\n },\n };\n lifecycleScopeHostFactories.set(editorHost, () => {\n const owner = Object.freeze({});\n const scopeHost: FpsEditorPluginLifecycleScopeHost = {\n openScope: input => runLifecycleScopeTransition(() => openLifecycleScope(owner, input)),\n reserveScopeClose: scopeId => { reserveLifecycleScopeClose(scopeId, owner); },\n closeScope: scopeId => runLifecycleScopeTransition(async () => {\n await closeLifecycleScope(scopeId, owner);\n if (!hasLifecycleCleanupFailure() && !lifecycleTransitioning) cleanupRetryKind = null;\n }),\n };\n return Object.freeze(scopeHost);\n });\n return editorHost;\n}\n\nexport interface FpsEditorPluginEnvironmentModuleHostOptions {\n readonly module: FpsPluginEnvironmentModule;\n readonly initialServices?: readonly { token: FpsServiceToken<unknown>; value: unknown }[];\n readonly report?: FpsEditorPluginHostOptions['report'];\n}\n\nexport function createFpsEditorPluginHostFromEnvironmentModule(\n options: FpsEditorPluginEnvironmentModuleHostOptions,\n): FpsEditorPluginHost {\n if (options.module.environment !== 'editor') {\n throw new Error(`Editor Plugin Host requires an editor environment module, got: ${options.module.environment}`);\n }\n const entries = new Map<string, FpsPluginEnvironmentModule['entries'][number]>();\n for (const entry of options.module.entries) {\n if (entries.has(entry.pluginId)) throw new Error(`Duplicate Editor Plugin module entry: ${entry.pluginId}`);\n entries.set(entry.pluginId, entry);\n }\n return createFpsEditorPluginHost({\n manifests: options.module.manifests,\n pluginConfigs: options.module.pluginConfigs,\n initialServices: options.initialServices,\n report: options.report,\n async loadEntry(manifest) {\n const entry = entries.get(manifest.id);\n if (!entry) throw new Error(`Editor Plugin module entry is missing: ${manifest.id}`);\n return entry.load();\n },\n });\n}\n\nfunction requireTrustedContributionContext(\n context: FpsPluginContext,\n): NonNullable<ReturnType<typeof trustedContributionContexts.get>> {\n const trusted = trustedContributionContexts.get(context);\n if (!trusted) throw new Error('Editor contribution registration requires a host-authenticated Plugin context.');\n if (!trusted.registrationOpen) {\n throw new Error('Editor contributions may only be registered during the Plugin register lifecycle.');\n }\n return trusted;\n}\n\nfunction assertApplicationContributionScope(context: FpsPluginContext): void {\n if (context.scope !== 'application') {\n throw new Error(\n `Editor contributions are application-scope extension definitions; ${context.scope} scopes may own resources but cannot register global contributions.`,\n );\n }\n}\n\nfunction resolveEditorCommandRegistrations(\n registry: FpsEditorContributionRegistry,\n): readonly FpsEditorCommandRegistration[] {\n return registry.list('command').map(contribution => {\n const value = contribution.value;\n if (!isEditorCommandContribution(value) || value.registration.command.id !== contribution.id) {\n throw new Error(`Invalid Editor command contribution: ${contribution.id}`);\n }\n return value.registration;\n });\n}\n\nfunction resolveEditorCommandContribution(\n registry: FpsEditorContributionRegistry,\n commandId: string,\n): FpsEditorCommandContribution | null {\n const contribution = registry.get(commandId);\n if (!contribution || contribution.kind !== 'command') return null;\n const value = contribution.value;\n if (!isEditorCommandContribution(value) || value.registration.command.id !== commandId) {\n throw new Error(`Invalid Editor command contribution: ${commandId}`);\n }\n return value;\n}\n\nfunction isEditorCommandContribution(value: unknown): value is FpsEditorCommandContribution {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return false;\n const contribution = value as Partial<FpsEditorCommandContribution>;\n return contribution.type === 'editor.command'\n && !!contribution.registration\n && contribution.registration.command?.kind === 'command';\n}\n\nfunction snapshotEditorCommandRegistration<TInput, TOutput>(\n registration: FpsEditorCommandRegistration<TInput, TOutput>,\n): FpsEditorCommandRegistration<TInput, TOutput> {\n if (registration.command?.kind !== 'command') throw new Error('Editor command registration requires a command token.');\n const title = registration.title?.trim();\n if (!title) throw new Error(`Editor command title is required: ${registration.command.id}`);\n const description = registration.description?.trim();\n const agent = registration.agent\n ? snapshotEditorAgentCapability(registration.command.id, registration.agent)\n : undefined;\n return Object.freeze({\n command: registration.command,\n title,\n ...(description ? { description } : {}),\n ...(agent ? { agent } : {}),\n });\n}\n\nfunction snapshotEditorLifecycleParticipant(\n value: unknown,\n): Readonly<FpsEditorLifecycleParticipant> {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n throw new Error('Editor lifecycle participant must be an object.');\n }\n const participant = value as Partial<FpsEditorLifecycleParticipant>;\n const id = assertContributionId(participant.id ?? '');\n if (!Array.isArray(participant.transitions) || participant.transitions.length === 0) {\n throw new Error(`Editor lifecycle participant transitions are required: ${id}`);\n }\n const allowed = new Set<string>(FPS_EDITOR_LIFECYCLE_TRANSITION_TYPES);\n const transitions = participant.transitions.map(transition => {\n if (typeof transition !== 'string' || !allowed.has(transition)) {\n throw new Error(`Editor lifecycle participant transition is invalid: ${id} -> ${String(transition)}`);\n }\n return transition;\n }) as FpsEditorLifecycleParticipant['transitions'];\n for (const method of ['prepare', 'settled', 'failed'] as const) {\n if (participant[method] !== undefined && typeof participant[method] !== 'function') {\n throw new Error(`Editor lifecycle participant ${method} must be a function: ${id}`);\n }\n }\n return Object.freeze({\n id,\n transitions: Object.freeze([...new Set(transitions)]),\n ...(participant.prepare ? { prepare: participant.prepare } : {}),\n ...(participant.settled ? { settled: participant.settled } : {}),\n ...(participant.failed ? { failed: participant.failed } : {}),\n });\n}\n\nfunction snapshotEditorAgentCapability(\n commandId: string,\n manifest: EditorAgentBridgeCapabilityManifest,\n): EditorAgentBridgeCapabilityManifest {\n if (manifest.schemaVersion !== EDITOR_AGENT_BRIDGE_SCHEMA_VERSION) {\n throw new Error(`Editor command Agent capability schema mismatch: ${commandId}`);\n }\n if (manifest.id !== commandId) {\n throw new Error(`Editor command and Agent capability ids must match: ${commandId} != ${manifest.id}`);\n }\n if (!manifest.title?.trim()) throw new Error(`Editor command Agent capability title is required: ${commandId}`);\n if (manifest.access !== 'read' && manifest.access !== 'write') {\n throw new Error(`Editor command Agent capability access is invalid: ${commandId}`);\n }\n return Object.freeze({\n ...manifest,\n title: manifest.title.trim(),\n ...(manifest.description?.trim() ? { description: manifest.description.trim() } : {}),\n ...(manifest.inputSchema ? { inputSchema: cloneEditorJsonObject(manifest.inputSchema) } : {}),\n ...(manifest.outputSchema ? { outputSchema: cloneEditorJsonObject(manifest.outputSchema) } : {}),\n });\n}\n\nfunction cloneEditorJsonObject(value: EditorAgentBridgeJsonObject): EditorAgentBridgeJsonObject {\n return cloneEditorJsonValue(value, '$') as EditorAgentBridgeJsonObject;\n}\n\nfunction cloneEditorJsonValue(value: unknown, path: string): unknown {\n if (value === null || typeof value === 'string' || typeof value === 'boolean') return value;\n if (typeof value === 'number' && Number.isFinite(value)) return value;\n if (Array.isArray(value)) {\n return Object.freeze(value.map((entry, index) => cloneEditorJsonValue(entry, `${path}[${index}]`)));\n }\n if (!value || typeof value !== 'object') throw new Error(`Editor Agent schema contains invalid value at ${path}`);\n const prototype = Object.getPrototypeOf(value);\n if (prototype !== Object.prototype && prototype !== null) {\n throw new Error(`Editor Agent schema must contain plain objects at ${path}`);\n }\n const result: Record<string, unknown> = {};\n for (const key of Object.keys(value)) {\n result[key] = cloneEditorJsonValue((value as Record<string, unknown>)[key], `${path}.${key}`);\n }\n return Object.freeze(result);\n}\n\nfunction assertNoEditorPluginHostConsumers(consumers: ReadonlyMap<number, string>, operation: string): void {\n if (consumers.size === 0) return;\n throw new Error(\n `Cannot ${operation} Editor Plugin Host with active consumers: ${[...consumers.values()].join(', ')}`,\n );\n}\n\nfunction bindEditorPluginEntry(\n entry: FpsPluginEntry,\n registry: FpsEditorContributionRegistry,\n): FpsPluginEntry {\n return {\n pluginId: entry.pluginId,\n environment: entry.environment,\n async register(context) {\n const trusted = {\n registry,\n pluginId: context.pluginId,\n registrationOpen: true,\n addDisposer: context.add.bind(context),\n };\n trustedContributionContexts.set(context, trusted);\n try {\n return await entry.register(context);\n } finally {\n trusted.registrationOpen = false;\n }\n },\n ...(entry.start ? { start: (context: FpsPluginContext) => entry.start!(context) } : {}),\n ...(entry.stop ? { stop: (context: FpsPluginContext) => entry.stop!(context) } : {}),\n dispose: async context => {\n try { await entry.dispose?.(context); }\n finally { trustedContributionContexts.delete(context); }\n },\n };\n}\n\nfunction assertContributionId(id: string): string {\n const normalized = id.trim();\n if (!/^[a-z0-9]+(?:[._-][a-z0-9]+)+$/.test(normalized)) {\n throw new Error(`Editor contribution id must be namespaced lowercase, got: ${id}`);\n }\n return normalized;\n}\n\nfunction normalizePriority(priority: number | undefined): number {\n if (priority === undefined) return 0;\n if (!Number.isFinite(priority)) throw new Error('Editor contribution priority must be finite.');\n return priority;\n}\n\nfunction assertContributionKind(value: unknown): FpsEditorContributionKind {\n if (typeof value !== 'string' || !CONTRIBUTION_KINDS.has(value as FpsEditorContributionKind)) {\n throw new Error(`Unknown editor contribution kind: ${String(value)}`);\n }\n return value as FpsEditorContributionKind;\n}\n\nfunction compareContributions(\n left: FpsRegisteredEditorContribution,\n right: FpsRegisteredEditorContribution,\n): number {\n const priority = (right.priority ?? 0) - (left.priority ?? 0);\n if (priority !== 0) return priority;\n return left.id < right.id ? -1 : left.id > right.id ? 1 : 0;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return !!value && typeof value === 'object' && !Array.isArray(value);\n}\n\nfunction resolveFpsEditorToolContribution(\n contribution: FpsRegisteredEditorContribution,\n): EditorToolRegistration {\n const value = contribution.value;\n if (!isRecord(value) || value.type !== 'editor.tool' || !('registration' in value)) {\n throw new Error(`Invalid Editor Tool contribution: ${contribution.id}`);\n }\n const registration = snapshotEditorToolRegistration(value.registration as EditorToolRegistration);\n if (registration.definition.id !== contribution.id) {\n throw new Error(\n `Editor Tool contribution id mismatch: ${contribution.id} != ${registration.definition.id}`,\n );\n }\n return registration;\n}\n"]}
|