@fps-games/editor 0.2.0-beta.4 → 0.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/editor-state.js +12 -6
- 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 +208 -73
- 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 +24 -23
- package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -1
- package/dist/agent-bridge/capabilities/shadows.js +829 -66
- package/dist/agent-bridge/capabilities/shadows.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 +22 -9
- 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 +231 -11
- package/dist/agent-bridge/shared.d.ts.map +1 -1
- package/dist/agent-bridge/shared.js +162 -20
- 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 +56 -32
- 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 +3834 -1321
- 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 -11
- 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 -9
- 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 -6
- 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 +829 -866
- 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 +5 -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.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js +3 -17
- 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 +16 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js +44 -39
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-status-diagnostics.js.map +1 -1
- 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 +52 -341
- 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 +595 -544
- 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 +24 -2
- 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 +70 -10
- 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-projection.d.ts +0 -7
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.d.ts.map +0 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.js +0 -186
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-projection.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 -98
- 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 -301
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer-core.js","sourceRoot":"","sources":["../../src/session/reducer-core.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iDAAiD,GAClD,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,8BAA8B,EAC9B,6CAA6C,EAC7C,iCAAiC,GAIlC,MAAM,mBAAmB,CAAC;AA2J3B,MAAM,UAAU,gDAAgD,CAK9D,QAAmB,EACnB,QAAyF;IAEzF,MAAM,iBAAiB,GAAG,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACnE,MAAM,MAAM,GAAG,QAAQ,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;IAClE,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,oBAAoB,GAAG,KAAK,CAAC;IACjC,IAAI,YAAY,GAAG,KAAK,CAAC;IACzB,IAAI,OAAO,G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AA6C,CAAC;QACnD,QAAQ;QACR,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,cAAc,EAAE,KAAK,CAAC,cAAc;QACpC,YAAY,EAAE,KAAK,CAAC,YAAY;KACsC,CAAc,CAAC;AACzF,CAAC","sourcesContent":["import type {\n DocumentCommand,\n EditorTransformSnapshot,\n InspectorValidationResult,\n} from '@fps-games/editor-core';\nimport {\n patchEditorSceneDirectionalLightOrientationAngles,\n} from '../lighting-debug/index';\nimport {\n applyEditorSceneJsonFieldPatch,\n migrateEditorSceneDocumentRenderingAlphaIndex,\n reduceEditorSceneDocumentMutation,\n type EditorSceneDocumentMutationOptions,\n type EditorSceneDocumentMutationPatch,\n type EditorSceneFieldMutationOptions,\n} from '../mutation/index';\nimport type {\n EditorSceneDocument,\n EditorSceneGameObject,\n} from '../document/index';\nimport type {\n EditorSceneSerializedPropertyValidator,\n} from '../serialized-property/index';\n\nexport interface PlayableEditorSceneDefaultObjectServices {\n createGameObjectGuid: () => string;\n createUniqueId: (existingIds: readonly string[], preferredId: string) => string;\n}\n\nexport interface PlayableEditorSceneReducerSystemDefaultServices<\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n> {\n environmentLightId: string;\n sunLightId: string;\n horizontalLightAnglePath: string;\n elevationLightAnglePath: string;\n normalizeEnvironmentLightGameObject: (gameObject: TGameObject) => TGameObject;\n normalizeSunLightGameObject: (gameObject: TGameObject) => TGameObject;\n normalizeCameraGameObject: (gameObject: TGameObject) => TGameObject;\n normalizePlainTransformGameObject: (gameObject: TGameObject) => TGameObject;\n createDefaultCameraGameObject: (\n rootId: string | undefined,\n usedIds: Set<string>,\n services: PlayableEditorSceneDefaultObjectServices,\n ) => TGameObject;\n createDefaultEnvironmentLightGameObject: (\n rootId: string | undefined,\n usedIds: Set<string>,\n services: PlayableEditorSceneDefaultObjectServices,\n ) => TGameObject;\n createDefaultSunLightGameObject: (\n rootId: string | undefined,\n usedIds: Set<string>,\n services: PlayableEditorSceneDefaultObjectServices,\n ) => TGameObject;\n mergeCameraDefaults: (camera: TGameObject['camera']) => TGameObject['camera'];\n normalizeCameraAfterFieldPatch: (\n camera: NonNullable<TGameObject['camera']>,\n path: string,\n ) => TGameObject['camera'];\n hasInvalidCameraRelationships: (camera: NonNullable<TGameObject['camera']>) => boolean;\n mergeLightDefaults: (light: TGameObject['light']) => TGameObject['light'];\n}\n\nexport interface PlayableEditorSceneReducerCoreServices<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n TPrimitiveShape extends string = string,\n> {\n systemDefaults: PlayableEditorSceneReducerSystemDefaultServices<TGameObject>;\n normalizeRootTransformDocument: (document: TDocument) => TDocument;\n syncMarkerGraphDocument: (document: TDocument) => TDocument;\n ensureGameObjectGuids: (document: TDocument) => TDocument;\n normalizeDocumentAfterCommand: (\n document: TDocument,\n command: DocumentCommand<TDocument, unknown>,\n ) => TDocument;\n\n patchMaterialAssetField: (document: TDocument, materialAssetId: string, path: string, value: unknown) => TDocument;\n addMaterialAsset: (document: TDocument, materialAsset: unknown) => TDocument;\n deleteMaterialAsset: (document: TDocument, materialAssetId: string) => TDocument;\n addMaterialAssetAndBind: (\n document: TDocument,\n targetId: string,\n bindingPath: string,\n materialAsset: unknown,\n ) => TDocument;\n addPrefabAsset: (document: TDocument, prefabAsset: unknown, sourceAsset?: unknown) => TDocument;\n patchPrefabAssetField: (document: TDocument, assetId: string, path: string, value: unknown) => TDocument;\n replacePrefabAsset: (document: TDocument, assetId: string, prefabAsset: unknown) => TDocument;\n addMaterialAssetAndBindPrefabOverride: (\n document: TDocument,\n assetId: string,\n bindingPath: string,\n materialAsset: unknown,\n ) => TDocument;\n patchGameObjectField: (document: TDocument, targetId: string, path: string, value: unknown) => TDocument;\n patchGameObjectsField: (document: TDocument, targetIds: readonly string[], path: string, value: unknown) => TDocument;\n reduceExtensionPatch?: (input: {\n document: TDocument;\n patch: Record<string, unknown>;\n command: DocumentCommand<TDocument, unknown>;\n }) => TDocument | null;\n isCustomFieldPatchPath?: (path: string) => boolean;\n reduceMarkerGraphPatch: (document: TDocument, command: unknown) => TDocument;\n isDirectionalLightAnglePath: (path: string) => boolean;\n\n validateSerializedPropertyField: EditorSceneSerializedPropertyValidator<TDocument>;\n createGameObjectGuid: () => string;\n resolveLocalTransform: (input: {\n document: TDocument;\n parentId: string | null | undefined;\n worldTransform: EditorTransformSnapshot;\n }) => EditorTransformSnapshot | null;\n isProtectedSystemGameObject: (gameObject: TGameObject) => boolean;\n resolveRootContainerId: (document: TDocument) => string | undefined;\n createUniqueId: (existingIds: readonly string[], preferredId: string) => string;\n ensureDefaultMaterialAssets: (\n materialAssets: NonNullable<TDocument['scene']['materialAssets']>,\n ) => NonNullable<TDocument['scene']['materialAssets']>;\n reconcileMaterialSlotReimportBindings: (\n document: TDocument,\n gameObjects: TGameObject[],\n ) => { gameObjects: TGameObject[]; changed: boolean };\n ensureImportedMaterialDefaults: (\n document: TDocument,\n materialAssets: NonNullable<TDocument['scene']['materialAssets']>,\n gameObjects: TGameObject[],\n ) => {\n materialAssets: NonNullable<TDocument['scene']['materialAssets']>;\n gameObjects: TGameObject[];\n changed: boolean;\n };\n\n normalizeFieldValue: (path: string, value: unknown) => unknown;\n validateField: (document: TDocument, gameObject: TGameObject, path: string, value: unknown) => InspectorValidationResult;\n normalizePrimitiveShape: (shape: unknown) => TPrimitiveShape | null;\n isCustomTransformType?: (value: unknown) => value is string;\n applyCustomTransformType?: (gameObject: TGameObject, transformType: string) => void;\n clearCustomTransformState?: (gameObject: TGameObject, transformType: string) => void;\n patchCustomTransformField?: (gameObject: TGameObject, path: string, value: unknown) => boolean;\n findGameObject: (document: TDocument, gameObjectId: string) => TGameObject | null;\n isCameraGameObject: (gameObject: TGameObject) => boolean;\n isLightGameObject: (gameObject: TGameObject) => boolean;\n hasCamera: (document: TDocument, exceptId?: string) => boolean;\n}\n\nexport type PlayableEditorSceneSystemFieldPatchServices<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n> = Pick<\n PlayableEditorSceneReducerCoreServices<TDocument, TGameObject>,\n 'findGameObject' | 'isCameraGameObject' | 'isLightGameObject' | 'isProtectedSystemGameObject' | 'hasCamera' | 'systemDefaults'\n>;\n\nexport type PlayableEditorSceneFieldMutationServices<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n TPrimitiveShape extends string = string,\n> = PlayableEditorSceneSystemFieldPatchServices<TDocument, TGameObject> & Pick<\n PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n | 'normalizeFieldValue'\n | 'validateField'\n | 'normalizePrimitiveShape'\n | 'isCustomTransformType'\n | 'applyCustomTransformType'\n | 'clearCustomTransformState'\n | 'patchCustomTransformField'\n>;\n\nexport function ensurePlayableEditorSceneEnvironmentDefaultsCore<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n document: TDocument,\n services: PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n): TDocument {\n const documentWithGuids = services.ensureGameObjectGuids(document);\n const rootId = services.resolveRootContainerId(documentWithGuids);\n let cameraSeen = false;\n let environmentLightSeen = false;\n let sunLightSeen = false;\n let changed = documentWithGuids !== document;\n let materialAssets = services.ensureDefaultMaterialAssets(\n (documentWithGuids.scene.materialAssets ?? []) as NonNullable<TDocument['scene']['materialAssets']>,\n );\n changed = changed || materialAssets !== documentWithGuids.scene.materialAssets;\n let gameObjects = (documentWithGuids.scene.gameObjects as TGameObject[]).map((gameObject) => {\n if (gameObject.id === services.systemDefaults.environmentLightId) {\n environmentLightSeen = true;\n const next = services.systemDefaults.normalizeEnvironmentLightGameObject(gameObject);\n changed = changed || next !== gameObject;\n return next;\n }\n if (gameObject.id === services.systemDefaults.sunLightId) {\n sunLightSeen = true;\n const next = services.systemDefaults.normalizeSunLightGameObject(gameObject);\n changed = changed || next !== gameObject;\n return next;\n }\n if (services.isCameraGameObject(gameObject)) {\n if (!cameraSeen) {\n cameraSeen = true;\n const next = services.systemDefaults.normalizeCameraGameObject(gameObject);\n changed = changed || next !== gameObject;\n return next;\n }\n changed = true;\n return services.systemDefaults.normalizePlainTransformGameObject(gameObject);\n }\n if (services.isLightGameObject(gameObject)) {\n const next = services.systemDefaults.normalizePlainTransformGameObject(gameObject);\n changed = true;\n return next;\n }\n return gameObject;\n });\n\n const defaultObjectServices = {\n createGameObjectGuid: services.createGameObjectGuid,\n createUniqueId: services.createUniqueId,\n };\n const usedIds = new Set(gameObjects.map((gameObject) => gameObject.id));\n if (!cameraSeen) {\n changed = true;\n gameObjects.push(services.systemDefaults.createDefaultCameraGameObject(rootId, usedIds, defaultObjectServices));\n }\n if (!environmentLightSeen) {\n changed = true;\n gameObjects.push(services.systemDefaults.createDefaultEnvironmentLightGameObject(rootId, usedIds, defaultObjectServices));\n }\n if (!sunLightSeen) {\n changed = true;\n gameObjects.push(services.systemDefaults.createDefaultSunLightGameObject(rootId, usedIds, defaultObjectServices));\n }\n\n const reimportSlotBindings = services.reconcileMaterialSlotReimportBindings(\n {\n ...documentWithGuids,\n scene: {\n ...documentWithGuids.scene,\n gameObjects,\n materialAssets,\n },\n } as TDocument,\n gameObjects,\n );\n gameObjects = reimportSlotBindings.gameObjects;\n changed = changed || reimportSlotBindings.changed;\n\n const importedMaterialDefaults = services.ensureImportedMaterialDefaults(documentWithGuids, materialAssets, gameObjects);\n materialAssets = importedMaterialDefaults.materialAssets;\n gameObjects = importedMaterialDefaults.gameObjects;\n changed = changed || importedMaterialDefaults.changed;\n\n const nextDocument = changed\n ? {\n ...documentWithGuids,\n scene: {\n ...documentWithGuids.scene,\n gameObjects,\n materialAssets,\n },\n } as TDocument\n : documentWithGuids;\n return services.syncMarkerGraphDocument(nextDocument);\n}\n\nexport function reducePlayableEditorSceneDocumentCore<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n document: TDocument,\n command: DocumentCommand<TDocument, unknown>,\n services: PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n): TDocument {\n const reduced = services.normalizeRootTransformDocument(\n reducePlayableEditorSceneDocumentUnchecked(document, command, services),\n );\n return services.syncMarkerGraphDocument(\n services.ensureGameObjectGuids(\n services.normalizeDocumentAfterCommand(reduced, command),\n ),\n );\n}\n\nexport function createPlayableEditorSceneFieldMutationOptions<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n services: PlayableEditorSceneFieldMutationServices<TDocument, TGameObject, TPrimitiveShape>,\n): EditorSceneFieldMutationOptions<TDocument, TGameObject> {\n return {\n normalizeFieldValue: services.normalizeFieldValue,\n validateField: ({ document, gameObject, path, value }) => (\n services.validateField(document, gameObject, path, value)\n ),\n blockFieldPatch: ({ document, targetId, path, value }) => (\n isBlockedPlayableEditorSceneSystemFieldPatch(document, targetId, path, value, services)\n ),\n normalizePrimitiveShape: services.normalizePrimitiveShape,\n mergeCameraDefaults: services.systemDefaults.mergeCameraDefaults,\n normalizeCameraAfterFieldPatch: (camera, path) => (\n camera\n ? services.systemDefaults.normalizeCameraAfterFieldPatch(camera as NonNullable<TGameObject['camera']>, path)\n : camera\n ),\n mergeLightDefaults: services.systemDefaults.mergeLightDefaults,\n isCustomTransformType: services.isCustomTransformType,\n applyCustomTransformType: services.applyCustomTransformType,\n clearCustomTransformState: services.clearCustomTransformState,\n patchCustomTransformField: services.patchCustomTransformField,\n };\n}\n\nexport function patchPlayableEditorSceneDirectionalLightAngleField<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n>(\n document: TDocument,\n targetId: string,\n path: string,\n value: number,\n services: Pick<PlayableEditorSceneReducerCoreServices<TDocument, TGameObject>, 'findGameObject' | 'systemDefaults'>,\n): TDocument {\n const gameObject = services.findGameObject(document, targetId);\n if (!gameObject) return document;\n const patchedGameObject = patchEditorSceneDirectionalLightOrientationAngles(gameObject, {\n ...(path === services.systemDefaults.horizontalLightAnglePath ? { horizontalAngleDeg: value } : {}),\n ...(path === services.systemDefaults.elevationLightAnglePath ? { elevationAngleDeg: value } : {}),\n }) as TGameObject;\n if (patchedGameObject === gameObject) return document;\n\n return {\n ...document,\n scene: {\n ...document.scene,\n gameObjects: document.scene.gameObjects.map(entry => entry.id === targetId ? patchedGameObject : entry),\n },\n } as TDocument;\n}\n\nexport function isBlockedPlayableEditorSceneSystemFieldPatch<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n>(\n document: TDocument,\n targetId: string,\n path: string,\n value: unknown,\n services: PlayableEditorSceneSystemFieldPatchServices<TDocument, TGameObject>,\n): boolean {\n const target = services.findGameObject(document, targetId);\n if (!target) return false;\n const targetIsCamera = services.isCameraGameObject(target);\n const targetIsLight = services.isLightGameObject(target);\n const targetIsProtectedSystem = services.isProtectedSystemGameObject(target);\n if (path.startsWith('transform.') && targetIsProtectedSystem) return true;\n if (path.startsWith('camera.') && !targetIsCamera) return true;\n if (path.startsWith('camera.') && targetIsCamera) {\n const patchedCameraHost = { camera: services.systemDefaults.mergeCameraDefaults(target.camera) };\n applyEditorSceneJsonFieldPatch(patchedCameraHost as unknown as Record<string, unknown>, path, value);\n if (patchedCameraHost.camera) {\n patchedCameraHost.camera = services.systemDefaults.normalizeCameraAfterFieldPatch(\n patchedCameraHost.camera as NonNullable<TGameObject['camera']>,\n path,\n );\n if (services.systemDefaults.hasInvalidCameraRelationships(patchedCameraHost.camera as NonNullable<TGameObject['camera']>)) {\n return true;\n }\n }\n }\n if (path.startsWith('light.') && !targetIsLight) return true;\n if (path === 'light.type') {\n if (target.id === services.systemDefaults.environmentLightId && value !== 'hemispheric') return true;\n if (target.id === services.systemDefaults.sunLightId && value !== 'directional') return true;\n }\n if (path === 'transformType') {\n if (targetIsCamera && value !== 'camera') return true;\n if (targetIsLight && value !== 'light') return true;\n if (!targetIsLight && value === 'light') return true;\n if (value === 'camera' && !targetIsCamera && services.hasCamera(document, targetId)) return true;\n }\n return false;\n}\n\nfunction reducePlayableEditorSceneDocumentUnchecked<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n document: TDocument,\n command: DocumentCommand<TDocument, unknown>,\n services: PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n): TDocument {\n const patch = command.type === 'document.replace' ? null : command.patch as { kind?: string; [key: string]: unknown };\n if (patch) {\n if (patch.kind === 'scene.material-asset.field') {\n return services.patchMaterialAssetField(\n document,\n patch.materialAssetId as string,\n patch.path as string,\n patch.value,\n );\n }\n if (patch.kind === 'scene.material-asset.create') return services.addMaterialAsset(document, patch.materialAsset);\n if (patch.kind === 'scene.material-asset.delete') return services.deleteMaterialAsset(document, patch.materialAssetId as string);\n if (patch.kind === 'scene.material-asset.duplicate-and-bind') {\n return services.addMaterialAssetAndBind(\n document,\n patch.targetId as string,\n patch.bindingPath as string,\n patch.materialAsset,\n );\n }\n if (patch.kind === 'scene.prefab-asset.create') return services.addPrefabAsset(document, patch.prefabAsset, patch.sourceAsset);\n if (patch.kind === 'scene.prefab-asset.create-from-game-object') return services.addPrefabAsset(document, patch.prefabAsset);\n if (patch.kind === 'scene.prefab-asset.duplicate') return services.addPrefabAsset(document, patch.prefabAsset);\n if (patch.kind === 'scene.prefab-asset.field') {\n return services.patchPrefabAssetField(\n document,\n patch.assetId as string,\n patch.path as string,\n patch.value,\n );\n }\n if (patch.kind === 'scene.prefab-asset.replace') {\n return services.replacePrefabAsset(document, patch.assetId as string, patch.prefabAsset);\n }\n if (patch.kind === 'scene.prefab-material-asset.duplicate-and-bind') {\n return services.addMaterialAssetAndBindPrefabOverride(\n document,\n patch.assetId as string,\n patch.bindingPath as string,\n patch.materialAsset,\n );\n }\n const extensionReduced = services.reduceExtensionPatch?.({ document, patch, command });\n if (extensionReduced) return extensionReduced;\n if (patch.kind === 'game-object.field' && services.isDirectionalLightAnglePath(patch.path as string)) {\n return services.patchGameObjectField(document, patch.targetId as string, patch.path as string, patch.value);\n }\n if (patch.kind === 'game-object.field' && services.isCustomFieldPatchPath?.(patch.path as string)) {\n return services.patchGameObjectField(document, patch.targetId as string, patch.path as string, patch.value);\n }\n if (patch.kind === 'game-object.rendering-alpha-index-migration') {\n return patchPlayableEditorSceneRenderingAlphaIndexMigration(document, patch as Record<string, unknown>);\n }\n if (patch.kind === 'scene.marker-graph') {\n return services.reduceMarkerGraphPatch(document, patch.command);\n }\n }\n return reduceEditorSceneDocumentMutation(\n document,\n command as DocumentCommand<TDocument, EditorSceneDocumentMutationPatch<TGameObject>>,\n createPlayableEditorSceneDocumentMutationOptions(services),\n );\n}\n\nfunction createPlayableEditorSceneDocumentMutationOptions<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n services: PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n): EditorSceneDocumentMutationOptions<TDocument, TGameObject> {\n return {\n field: createPlayableEditorSceneFieldMutationOptions(services),\n serializedProperty: {\n validateField: services.validateSerializedPropertyField,\n },\n assetPlacement: {\n createGameObjectGuid: services.createGameObjectGuid,\n resolveLocalTransform: ({ document: targetDocument, parentId, worldTransform }) => (\n services.resolveLocalTransform({\n document: targetDocument as TDocument,\n parentId,\n worldTransform,\n })\n ),\n },\n isProtectedDuplicateSource: (gameObject) => services.isProtectedSystemGameObject(gameObject),\n isProtectedDeleteTarget: (gameObject) => services.isProtectedSystemGameObject(gameObject),\n };\n}\n\nfunction patchPlayableEditorSceneRenderingAlphaIndexMigration<\n TDocument extends EditorSceneDocument,\n>(\n document: TDocument,\n patch: Record<string, unknown>,\n): TDocument {\n return migrateEditorSceneDocumentRenderingAlphaIndex({\n document,\n targetIds: patch.targetIds,\n renderingGroupId: patch.renderingGroupId,\n fromAlphaIndex: patch.fromAlphaIndex,\n toAlphaIndex: patch.toAlphaIndex,\n } as Parameters<typeof migrateEditorSceneDocumentRenderingAlphaIndex>[0]) as TDocument;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"reducer-core.js","sourceRoot":"","sources":["../../src/session/reducer-core.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iDAAiD,GAClD,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,8BAA8B,EAC9B,6CAA6C,EAC7C,iCAAiC,GAIlC,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EACL,uCAAuC,GAExC,MAAM,+BAA+B,CAAC;AA4JvC,MAAM,UAAU,gDAAgD,CAK9D,QAAmB,EACnB,QAAyF;IAEzF,MAAM,iBAAiB,GAAG,QAAQ,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACnE,MAAM,MAAM,GAAG,QAAQ,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;IAClE,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,oBAAoB,GAAG,KAAK,CAAC;IACjC,IAAI,YAAY,GAAG,KAAK,CAAC;IACzB,IAAI,OAAO,GAAG,iBAAiB,KAAK,QAAQ,CAAC;IAC7C,IAAI,cAAc,GAAG,QAAQ,CAAC,2BAA2B,CACvD,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc,IAAI,EAAE,CAAsD,CACpG,CAAC;IACF,OAAO,GAAG,OAAO,IAAI,cAAc,KAAK,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC;IAC/E,IAAI,WAAW,GAAI,iBAAiB,CAAC,KAAK,CAAC,WAA6B,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EA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AQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QAClE,CAAC;IACH,CAAC;IACD,OAAO,iCAAiC,CACtC,QAAQ,EACR,OAAoF,EACpF,gDAAgD,CAAC,QAAQ,CAAC,CAC3D,CAAC;AACJ,CAAC;AAED,SAAS,gDAAgD,CAKvD,QAAyF;IAEzF,OAAO;QACL,KAAK,EAAE,6CAA6C,CAAC,QAAQ,CAAC;QAC9D,kBAAkB,EAAE;YAClB,aAAa,EAAE,QAAQ,CAAC,+BAA+B;SACxD;QACD,cAAc,EAAE;YACd,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB;YACnD,qBAAqB,EAAE,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CACjF,QAAQ,CAAC,qBAAqB,CAAC;gBAC7B,QAAQ,EAAE,cAA2B;gBACrC,QAAQ;gBACR,cAAc;aACf,CAAC,CACH;SACF;QACD,0BAA0B,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC;QAC5F,uBAAuB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,UAAU,CAAC;KAC1F,CAAC;AACJ,CAAC;AAED,SAAS,oDAAoD,CAG3D,QAAmB,EACnB,KAA8B;IAE9B,OAAO,6CAA6C,CAAC;QACnD,QAAQ;QACR,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,cAAc,EAAE,KAAK,CAAC,cAAc;QACpC,YAAY,EAAE,KAAK,CAAC,YAAY;KACsC,CAAc,CAAC;AACzF,CAAC","sourcesContent":["import type {\n DocumentCommand,\n EditorTransformSnapshot,\n InspectorValidationResult,\n} from '@fps-games/editor-core';\nimport {\n patchEditorSceneDirectionalLightOrientationAngles,\n} from '../lighting-debug/index';\nimport {\n applyEditorSceneJsonFieldPatch,\n migrateEditorSceneDocumentRenderingAlphaIndex,\n reduceEditorSceneDocumentMutation,\n type EditorSceneDocumentMutationOptions,\n type EditorSceneDocumentMutationPatch,\n type EditorSceneFieldMutationOptions,\n} from '../mutation/index';\nimport type {\n EditorSceneDocument,\n EditorSceneGameObject,\n} from '../document/index';\nimport {\n assertEditorShadowMapExperimentSettings,\n type EditorShadowMapExperimentSettings,\n} from '@fps-games/playable-rendering';\nimport type {\n EditorSceneSerializedPropertyValidator,\n} from '../serialized-property/index';\n\nexport interface PlayableEditorSceneDefaultObjectServices {\n createGameObjectGuid: () => string;\n createUniqueId: (existingIds: readonly string[], preferredId: string) => string;\n}\n\nexport interface PlayableEditorSceneReducerSystemDefaultServices<\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n> {\n environmentLightId: string;\n sunLightId: string;\n horizontalLightAnglePath: string;\n elevationLightAnglePath: string;\n normalizeEnvironmentLightGameObject: (gameObject: TGameObject) => TGameObject;\n normalizeSunLightGameObject: (gameObject: TGameObject) => TGameObject;\n normalizeCameraGameObject: (gameObject: TGameObject) => TGameObject;\n normalizePlainTransformGameObject: (gameObject: TGameObject) => TGameObject;\n createDefaultCameraGameObject: (\n rootId: string | undefined,\n usedIds: Set<string>,\n services: PlayableEditorSceneDefaultObjectServices,\n ) => TGameObject;\n createDefaultEnvironmentLightGameObject: (\n rootId: string | undefined,\n usedIds: Set<string>,\n services: PlayableEditorSceneDefaultObjectServices,\n ) => TGameObject;\n createDefaultSunLightGameObject: (\n rootId: string | undefined,\n usedIds: Set<string>,\n services: PlayableEditorSceneDefaultObjectServices,\n ) => TGameObject;\n mergeCameraDefaults: (camera: TGameObject['camera']) => TGameObject['camera'];\n normalizeCameraAfterFieldPatch: (\n camera: NonNullable<TGameObject['camera']>,\n path: string,\n ) => TGameObject['camera'];\n hasInvalidCameraRelationships: (camera: NonNullable<TGameObject['camera']>) => boolean;\n mergeLightDefaults: (light: TGameObject['light']) => TGameObject['light'];\n}\n\nexport interface PlayableEditorSceneReducerCoreServices<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n TPrimitiveShape extends string = string,\n> {\n systemDefaults: PlayableEditorSceneReducerSystemDefaultServices<TGameObject>;\n normalizeRootTransformDocument: (document: TDocument) => TDocument;\n syncMarkerGraphDocument: (document: TDocument) => TDocument;\n ensureGameObjectGuids: (document: TDocument) => TDocument;\n normalizeDocumentAfterCommand: (\n document: TDocument,\n command: DocumentCommand<TDocument, unknown>,\n ) => TDocument;\n\n patchMaterialAssetField: (document: TDocument, materialAssetId: string, path: string, value: unknown) => TDocument;\n addMaterialAsset: (document: TDocument, materialAsset: unknown) => TDocument;\n deleteMaterialAsset: (document: TDocument, materialAssetId: string) => TDocument;\n addMaterialAssetAndBind: (\n document: TDocument,\n targetId: string,\n bindingPath: string,\n materialAsset: unknown,\n ) => TDocument;\n addPrefabAsset: (document: TDocument, prefabAsset: unknown, sourceAsset?: unknown) => TDocument;\n patchPrefabAssetField: (document: TDocument, assetId: string, path: string, value: unknown) => TDocument;\n replacePrefabAsset: (\n document: TDocument,\n assetId: string,\n prefabAsset: unknown,\n sourceAsset?: unknown,\n ) => TDocument;\n addMaterialAssetAndBindPrefabOverride: (\n document: TDocument,\n assetId: string,\n bindingPath: string,\n materialAsset: unknown,\n ) => TDocument;\n patchGameObjectField: (document: TDocument, targetId: string, path: string, value: unknown) => TDocument;\n patchGameObjectsField: (document: TDocument, targetIds: readonly string[], path: string, value: unknown) => TDocument;\n reduceExtensionPatch?: (input: {\n document: TDocument;\n patch: Record<string, unknown>;\n command: DocumentCommand<TDocument, unknown>;\n }) => TDocument | null;\n isCustomFieldPatchPath?: (path: string) => boolean;\n reduceMarkerGraphPatch: (document: TDocument, command: unknown) => TDocument;\n isDirectionalLightAnglePath: (path: string) => boolean;\n\n validateSerializedPropertyField: EditorSceneSerializedPropertyValidator<TDocument>;\n createGameObjectGuid: () => string;\n resolveLocalTransform: (input: {\n document: TDocument;\n parentId: string | null | undefined;\n worldTransform: EditorTransformSnapshot;\n }) => EditorTransformSnapshot | null;\n isProtectedSystemGameObject: (gameObject: TGameObject) => boolean;\n resolveRootContainerId: (document: TDocument) => string | undefined;\n createUniqueId: (existingIds: readonly string[], preferredId: string) => string;\n ensureDefaultMaterialAssets: (\n materialAssets: NonNullable<TDocument['scene']['materialAssets']>,\n ) => NonNullable<TDocument['scene']['materialAssets']>;\n reconcileMaterialSlotReimportBindings: (\n document: TDocument,\n gameObjects: TGameObject[],\n ) => { gameObjects: TGameObject[]; changed: boolean };\n ensureImportedMaterialDefaults: (\n document: TDocument,\n materialAssets: NonNullable<TDocument['scene']['materialAssets']>,\n gameObjects: TGameObject[],\n ) => {\n materialAssets: NonNullable<TDocument['scene']['materialAssets']>;\n gameObjects: TGameObject[];\n changed: boolean;\n };\n\n normalizeFieldValue: (path: string, value: unknown) => unknown;\n validateField: (document: TDocument, gameObject: TGameObject, path: string, value: unknown) => InspectorValidationResult;\n normalizePrimitiveShape: (shape: unknown) => TPrimitiveShape | null;\n isCustomTransformType?: (value: unknown) => value is string;\n applyCustomTransformType?: (gameObject: TGameObject, transformType: string) => void;\n clearCustomTransformState?: (gameObject: TGameObject, transformType: string) => void;\n patchCustomTransformField?: (gameObject: TGameObject, path: string, value: unknown) => boolean;\n findGameObject: (document: TDocument, gameObjectId: string) => TGameObject | null;\n isCameraGameObject: (gameObject: TGameObject) => boolean;\n isLightGameObject: (gameObject: TGameObject) => boolean;\n hasCamera: (document: TDocument, exceptId?: string) => boolean;\n}\n\nexport type PlayableEditorSceneSystemFieldPatchServices<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n> = Pick<\n PlayableEditorSceneReducerCoreServices<TDocument, TGameObject>,\n 'findGameObject' | 'isCameraGameObject' | 'isLightGameObject' | 'isProtectedSystemGameObject' | 'hasCamera' | 'systemDefaults'\n>;\n\nexport type PlayableEditorSceneFieldMutationServices<\n TDocument extends EditorSceneDocument = EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n TPrimitiveShape extends string = string,\n> = PlayableEditorSceneSystemFieldPatchServices<TDocument, TGameObject> & Pick<\n PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n | 'normalizeFieldValue'\n | 'validateField'\n | 'normalizePrimitiveShape'\n | 'isCustomTransformType'\n | 'applyCustomTransformType'\n | 'clearCustomTransformState'\n | 'patchCustomTransformField'\n>;\n\nexport function ensurePlayableEditorSceneEnvironmentDefaultsCore<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n document: TDocument,\n services: PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n): TDocument {\n const documentWithGuids = services.ensureGameObjectGuids(document);\n const rootId = services.resolveRootContainerId(documentWithGuids);\n let cameraSeen = false;\n let environmentLightSeen = false;\n let sunLightSeen = false;\n let changed = documentWithGuids !== document;\n let materialAssets = services.ensureDefaultMaterialAssets(\n (documentWithGuids.scene.materialAssets ?? []) as NonNullable<TDocument['scene']['materialAssets']>,\n );\n changed = changed || materialAssets !== documentWithGuids.scene.materialAssets;\n let gameObjects = (documentWithGuids.scene.gameObjects as TGameObject[]).map((gameObject) => {\n if (gameObject.id === services.systemDefaults.environmentLightId) {\n environmentLightSeen = true;\n const next = services.systemDefaults.normalizeEnvironmentLightGameObject(gameObject);\n changed = changed || next !== gameObject;\n return next;\n }\n if (gameObject.id === services.systemDefaults.sunLightId) {\n sunLightSeen = true;\n const next = services.systemDefaults.normalizeSunLightGameObject(gameObject);\n changed = changed || next !== gameObject;\n return next;\n }\n if (services.isCameraGameObject(gameObject)) {\n if (!cameraSeen) {\n cameraSeen = true;\n const next = services.systemDefaults.normalizeCameraGameObject(gameObject);\n changed = changed || next !== gameObject;\n return next;\n }\n changed = true;\n return services.systemDefaults.normalizePlainTransformGameObject(gameObject);\n }\n if (services.isLightGameObject(gameObject)) {\n const next = services.systemDefaults.normalizePlainTransformGameObject(gameObject);\n changed = true;\n return next;\n }\n return gameObject;\n });\n\n const defaultObjectServices = {\n createGameObjectGuid: services.createGameObjectGuid,\n createUniqueId: services.createUniqueId,\n };\n const usedIds = new Set(gameObjects.map((gameObject) => gameObject.id));\n if (!cameraSeen) {\n changed = true;\n gameObjects.push(services.systemDefaults.createDefaultCameraGameObject(rootId, usedIds, defaultObjectServices));\n }\n if (!environmentLightSeen) {\n changed = true;\n gameObjects.push(services.systemDefaults.createDefaultEnvironmentLightGameObject(rootId, usedIds, defaultObjectServices));\n }\n if (!sunLightSeen) {\n changed = true;\n gameObjects.push(services.systemDefaults.createDefaultSunLightGameObject(rootId, usedIds, defaultObjectServices));\n }\n\n const reimportSlotBindings = services.reconcileMaterialSlotReimportBindings(\n {\n ...documentWithGuids,\n scene: {\n ...documentWithGuids.scene,\n gameObjects,\n materialAssets,\n },\n } as TDocument,\n gameObjects,\n );\n gameObjects = reimportSlotBindings.gameObjects;\n changed = changed || reimportSlotBindings.changed;\n\n const importedMaterialDefaults = services.ensureImportedMaterialDefaults(documentWithGuids, materialAssets, gameObjects);\n materialAssets = importedMaterialDefaults.materialAssets;\n gameObjects = importedMaterialDefaults.gameObjects;\n changed = changed || importedMaterialDefaults.changed;\n\n const nextDocument = changed\n ? {\n ...documentWithGuids,\n scene: {\n ...documentWithGuids.scene,\n gameObjects,\n materialAssets,\n },\n } as TDocument\n : documentWithGuids;\n return services.syncMarkerGraphDocument(nextDocument);\n}\n\nexport function reducePlayableEditorSceneDocumentCore<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n document: TDocument,\n command: DocumentCommand<TDocument, unknown>,\n services: PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n): TDocument {\n const reduced = services.normalizeRootTransformDocument(\n reducePlayableEditorSceneDocumentUnchecked(document, command, services),\n );\n return services.syncMarkerGraphDocument(\n services.ensureGameObjectGuids(\n services.normalizeDocumentAfterCommand(reduced, command),\n ),\n );\n}\n\nexport function createPlayableEditorSceneFieldMutationOptions<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n services: PlayableEditorSceneFieldMutationServices<TDocument, TGameObject, TPrimitiveShape>,\n): EditorSceneFieldMutationOptions<TDocument, TGameObject> {\n return {\n normalizeFieldValue: services.normalizeFieldValue,\n validateField: ({ document, gameObject, path, value }) => (\n services.validateField(document, gameObject, path, value)\n ),\n blockFieldPatch: ({ document, targetId, path, value }) => (\n isBlockedPlayableEditorSceneSystemFieldPatch(document, targetId, path, value, services)\n ),\n normalizePrimitiveShape: services.normalizePrimitiveShape,\n mergeCameraDefaults: services.systemDefaults.mergeCameraDefaults,\n normalizeCameraAfterFieldPatch: (camera, path) => (\n camera\n ? services.systemDefaults.normalizeCameraAfterFieldPatch(camera as NonNullable<TGameObject['camera']>, path)\n : camera\n ),\n mergeLightDefaults: services.systemDefaults.mergeLightDefaults,\n isCustomTransformType: services.isCustomTransformType,\n applyCustomTransformType: services.applyCustomTransformType,\n clearCustomTransformState: services.clearCustomTransformState,\n patchCustomTransformField: services.patchCustomTransformField,\n };\n}\n\nexport function patchPlayableEditorSceneDirectionalLightAngleField<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n>(\n document: TDocument,\n targetId: string,\n path: string,\n value: number,\n services: Pick<PlayableEditorSceneReducerCoreServices<TDocument, TGameObject>, 'findGameObject' | 'systemDefaults'>,\n): TDocument {\n const gameObject = services.findGameObject(document, targetId);\n if (!gameObject) return document;\n const patchedGameObject = patchEditorSceneDirectionalLightOrientationAngles(gameObject, {\n ...(path === services.systemDefaults.horizontalLightAnglePath ? { horizontalAngleDeg: value } : {}),\n ...(path === services.systemDefaults.elevationLightAnglePath ? { elevationAngleDeg: value } : {}),\n }) as TGameObject;\n if (patchedGameObject === gameObject) return document;\n\n return {\n ...document,\n scene: {\n ...document.scene,\n gameObjects: document.scene.gameObjects.map(entry => entry.id === targetId ? patchedGameObject : entry),\n },\n } as TDocument;\n}\n\nexport function isBlockedPlayableEditorSceneSystemFieldPatch<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n>(\n document: TDocument,\n targetId: string,\n path: string,\n value: unknown,\n services: PlayableEditorSceneSystemFieldPatchServices<TDocument, TGameObject>,\n): boolean {\n const target = services.findGameObject(document, targetId);\n if (!target) return false;\n const targetIsCamera = services.isCameraGameObject(target);\n const targetIsLight = services.isLightGameObject(target);\n const targetIsProtectedSystem = services.isProtectedSystemGameObject(target);\n if (path.startsWith('transform.') && targetIsProtectedSystem) return true;\n if (path.startsWith('camera.') && !targetIsCamera) return true;\n if (path.startsWith('camera.') && targetIsCamera) {\n const patchedCameraHost = { camera: services.systemDefaults.mergeCameraDefaults(target.camera) };\n applyEditorSceneJsonFieldPatch(patchedCameraHost as unknown as Record<string, unknown>, path, value);\n if (patchedCameraHost.camera) {\n patchedCameraHost.camera = services.systemDefaults.normalizeCameraAfterFieldPatch(\n patchedCameraHost.camera as NonNullable<TGameObject['camera']>,\n path,\n );\n if (services.systemDefaults.hasInvalidCameraRelationships(patchedCameraHost.camera as NonNullable<TGameObject['camera']>)) {\n return true;\n }\n }\n }\n if (path.startsWith('light.') && !targetIsLight) return true;\n if (path === 'light.type') {\n if (target.id === services.systemDefaults.environmentLightId && value !== 'hemispheric') return true;\n if (target.id === services.systemDefaults.sunLightId && value !== 'directional') return true;\n }\n if (path === 'transformType') {\n if (targetIsCamera && value !== 'camera') return true;\n if (targetIsLight && value !== 'light') return true;\n if (!targetIsLight && value === 'light') return true;\n if (value === 'camera' && !targetIsCamera && services.hasCamera(document, targetId)) return true;\n }\n return false;\n}\n\nfunction reducePlayableEditorSceneDocumentUnchecked<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n document: TDocument,\n command: DocumentCommand<TDocument, unknown>,\n services: PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n): TDocument {\n const patch = command.type === 'document.replace' ? null : command.patch as { kind?: string; [key: string]: unknown };\n if (patch) {\n if (patch.kind === 'scene.shadow-map-experiment.profiles') {\n const settings = { ...(document.scene.shadowMapExperiment ?? {}) } as {\n qualityProfile?: string;\n behaviorProfile?: string;\n };\n if (Object.prototype.hasOwnProperty.call(patch, 'qualityProfile')) {\n if (typeof patch.qualityProfile === 'string') settings.qualityProfile = patch.qualityProfile;\n else delete settings.qualityProfile;\n }\n if (Object.prototype.hasOwnProperty.call(patch, 'behaviorProfile')) {\n if (typeof patch.behaviorProfile === 'string') settings.behaviorProfile = patch.behaviorProfile;\n else delete settings.behaviorProfile;\n }\n try {\n if (Object.keys(settings).length > 0) assertEditorShadowMapExperimentSettings(settings);\n } catch {\n return document;\n }\n const scene = { ...document.scene };\n if (Object.keys(settings).length > 0) scene.shadowMapExperiment = settings;\n else delete scene.shadowMapExperiment;\n return { ...document, scene };\n }\n if (patch.kind === 'scene.material-asset.field') {\n return services.patchMaterialAssetField(\n document,\n patch.materialAssetId as string,\n patch.path as string,\n patch.value,\n );\n }\n if (patch.kind === 'scene.material-asset.create') return services.addMaterialAsset(document, patch.materialAsset);\n if (patch.kind === 'scene.material-asset.delete') return services.deleteMaterialAsset(document, patch.materialAssetId as string);\n if (patch.kind === 'scene.material-asset.duplicate-and-bind') {\n return services.addMaterialAssetAndBind(\n document,\n patch.targetId as string,\n patch.bindingPath as string,\n patch.materialAsset,\n );\n }\n if (patch.kind === 'scene.prefab-asset.create') return services.addPrefabAsset(document, patch.prefabAsset, patch.sourceAsset);\n if (patch.kind === 'scene.prefab-asset.create-from-game-object') return services.addPrefabAsset(document, patch.prefabAsset);\n if (patch.kind === 'scene.prefab-asset.duplicate') return services.addPrefabAsset(document, patch.prefabAsset);\n if (patch.kind === 'scene.prefab-asset.field') {\n return services.patchPrefabAssetField(\n document,\n patch.assetId as string,\n patch.path as string,\n patch.value,\n );\n }\n if (patch.kind === 'scene.prefab-asset.replace') {\n return services.replacePrefabAsset(\n document,\n patch.assetId as string,\n patch.prefabAsset,\n patch.sourceAsset,\n );\n }\n if (patch.kind === 'scene.prefab-material-asset.duplicate-and-bind') {\n return services.addMaterialAssetAndBindPrefabOverride(\n document,\n patch.assetId as string,\n patch.bindingPath as string,\n patch.materialAsset,\n );\n }\n const extensionReduced = services.reduceExtensionPatch?.({ document, patch, command });\n if (extensionReduced) return extensionReduced;\n if (patch.kind === 'game-object.field' && services.isDirectionalLightAnglePath(patch.path as string)) {\n return services.patchGameObjectField(document, patch.targetId as string, patch.path as string, patch.value);\n }\n if (patch.kind === 'game-object.field' && services.isCustomFieldPatchPath?.(patch.path as string)) {\n return services.patchGameObjectField(document, patch.targetId as string, patch.path as string, patch.value);\n }\n if (patch.kind === 'game-object.rendering-alpha-index-migration') {\n return patchPlayableEditorSceneRenderingAlphaIndexMigration(document, patch as Record<string, unknown>);\n }\n if (patch.kind === 'scene.marker-graph') {\n return services.reduceMarkerGraphPatch(document, patch.command);\n }\n }\n return reduceEditorSceneDocumentMutation(\n document,\n command as DocumentCommand<TDocument, EditorSceneDocumentMutationPatch<TGameObject>>,\n createPlayableEditorSceneDocumentMutationOptions(services),\n );\n}\n\nfunction createPlayableEditorSceneDocumentMutationOptions<\n TDocument extends EditorSceneDocument,\n TGameObject extends EditorSceneGameObject = TDocument['scene']['gameObjects'][number],\n TPrimitiveShape extends string = string,\n>(\n services: PlayableEditorSceneReducerCoreServices<TDocument, TGameObject, TPrimitiveShape>,\n): EditorSceneDocumentMutationOptions<TDocument, TGameObject> {\n return {\n field: createPlayableEditorSceneFieldMutationOptions(services),\n serializedProperty: {\n validateField: services.validateSerializedPropertyField,\n },\n assetPlacement: {\n createGameObjectGuid: services.createGameObjectGuid,\n resolveLocalTransform: ({ document: targetDocument, parentId, worldTransform }) => (\n services.resolveLocalTransform({\n document: targetDocument as TDocument,\n parentId,\n worldTransform,\n })\n ),\n },\n isProtectedDuplicateSource: (gameObject) => services.isProtectedSystemGameObject(gameObject),\n isProtectedDeleteTarget: (gameObject) => services.isProtectedSystemGameObject(gameObject),\n };\n}\n\nfunction patchPlayableEditorSceneRenderingAlphaIndexMigration<\n TDocument extends EditorSceneDocument,\n>(\n document: TDocument,\n patch: Record<string, unknown>,\n): TDocument {\n return migrateEditorSceneDocumentRenderingAlphaIndex({\n document,\n targetIds: patch.targetIds,\n renderingGroupId: patch.renderingGroupId,\n fromAlphaIndex: patch.fromAlphaIndex,\n toAlphaIndex: patch.toAlphaIndex,\n } as Parameters<typeof migrateEditorSceneDocumentRenderingAlphaIndex>[0]) as TDocument;\n}\n"]}
|
|
@@ -16,6 +16,10 @@ export type PlayableEditorSceneDocumentPatch<TAsset extends EditorSceneAsset = E
|
|
|
16
16
|
targetIds: readonly string[];
|
|
17
17
|
path: string;
|
|
18
18
|
value: unknown;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'scene.shadow-map-experiment.profiles';
|
|
21
|
+
qualityProfile?: string | null;
|
|
22
|
+
behaviorProfile?: string | null;
|
|
19
23
|
} | {
|
|
20
24
|
kind: 'game-object.rendering-alpha-index-migration';
|
|
21
25
|
targetIds: string[];
|
|
@@ -59,6 +63,7 @@ export type PlayableEditorSceneDocumentPatch<TAsset extends EditorSceneAsset = E
|
|
|
59
63
|
kind: 'scene.prefab-asset.replace';
|
|
60
64
|
assetId: string;
|
|
61
65
|
prefabAsset: TAsset;
|
|
66
|
+
sourceAsset?: TAsset;
|
|
62
67
|
} | {
|
|
63
68
|
kind: 'scene.prefab-material-asset.duplicate-and-bind';
|
|
64
69
|
assetId: string;
|
|
@@ -85,6 +90,7 @@ export type PlayableEditorSceneDocumentPatch<TAsset extends EditorSceneAsset = E
|
|
|
85
90
|
} | {
|
|
86
91
|
kind: 'game-object.duplicate-selection';
|
|
87
92
|
gameObjects: TGameObject[];
|
|
93
|
+
order?: string[];
|
|
88
94
|
} | {
|
|
89
95
|
kind: 'game-object.rename';
|
|
90
96
|
targetId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/session/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,0BAA0B,CACpC,WAAW,SAAS,qBAAqB,GAAG,qBAAqB,IAC/D,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAErC,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAC;AAEjE,MAAM,MAAM,wBAAwB,GAAG,kBAAkB,CAAC;AAE1D,MAAM,MAAM,4BAA4B,GAAG,uBAAuB,CAAC;AAEnE,MAAM,MAAM,gCAAgC,CAC1C,MAAM,SAAS,gBAAgB,GAAG,gBAAgB,EAClD,WAAW,SAAS,qBAAqB,GAAG,qBAAqB,EACjE,cAAc,GAAG,OAAO,EACxB,iBAAiB,GAAG,OAAO,EAC3B,mBAAmB,GAAG,OAAO,EAC7B,eAAe,GAAG,KAAK,IAErB,CAAC;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,GAAG,uBAAuB,CAAC,GAC3D;IACA,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,GACC;IACA,IAAI,EAAE,yBAAyB,CAAC;IAChC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EA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B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,uBAAuB,CAAC;KACpC,CAAC,CAAC;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,GACC;IACA,IAAI,EAAE,6BAA6B,CAAC;IACpC,UAAU,EAAE,WAAW,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACzD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,GACC,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/session/types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n EditorTransformSnapshot,\n SceneGraphTreeItem,\n SerializedPropertyPatch,\n} from '@fps-games/editor-core';\nimport type {\n EditorSceneAsset,\n EditorSceneDocument,\n EditorSceneGameObject,\n} from '../document/index';\n\nexport type EditorSceneSessionDocument<\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n> = EditorSceneDocument<TGameObject>;\n\nexport type EditorSceneSessionGameObject = EditorSceneGameObject;\n\nexport type EditorSceneHierarchyItem = SceneGraphTreeItem;\n\nexport type EditorSceneTransformSnapshot = EditorTransformSnapshot;\n\nexport type PlayableEditorSceneDocumentPatch<\n TAsset extends EditorSceneAsset = EditorSceneAsset,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n TMaterialAsset = unknown,\n TAssetLibraryItem = unknown,\n TMarkerGraphCommand = unknown,\n TExtensionPatch = never,\n> =\n | ({ kind: 'serialized-property' } & SerializedPropertyPatch)\n | {\n kind: 'game-object.field';\n targetId: string;\n path: string;\n value: unknown;\n }\n | {\n kind: 'game-object.field-batch';\n targetIds: readonly string[];\n path: string;\n value: unknown;\n }\n | {\n kind: 'game-object.rendering-alpha-index-migration';\n targetIds: string[];\n renderingGroupId: 0 | 1 | 2 | 3;\n fromAlphaIndex: number;\n toAlphaIndex: number;\n }\n | {\n kind: 'scene.material-asset.field';\n materialAssetId: string;\n path: string;\n value: unknown;\n }\n | {\n kind: 'scene.material-asset.create';\n materialAsset: TMaterialAsset;\n }\n | {\n kind: 'scene.material-asset.delete';\n materialAssetId: string;\n }\n | {\n kind: 'scene.material-asset.duplicate-and-bind';\n targetId: string;\n bindingPath: string;\n materialAsset: TMaterialAsset;\n }\n | {\n kind: 'scene.prefab-asset.create';\n sourceAsset: TAsset;\n prefabAsset: TAsset;\n }\n | {\n kind: 'scene.prefab-asset.create-from-game-object';\n sourceGameObjectId: string;\n prefabAsset: TAsset;\n }\n | {\n kind: 'scene.prefab-asset.duplicate';\n sourcePrefabAssetId: string;\n prefabAsset: TAsset;\n }\n | {\n kind: 'scene.prefab-asset.field';\n assetId: string;\n path: string;\n value: unknown;\n }\n | {\n kind: 'scene.prefab-asset.replace';\n assetId: string;\n prefabAsset: TAsset;\n }\n | {\n kind: 'scene.prefab-material-asset.duplicate-and-bind';\n assetId: string;\n bindingPath: string;\n materialAsset: TMaterialAsset;\n }\n | {\n kind: 'scene.marker-graph';\n command: TMarkerGraphCommand;\n }\n | {\n kind: 'game-object.create-from-asset';\n assetItem: TAssetLibraryItem;\n name?: string;\n placement?: EditorTransformSnapshot;\n }\n | {\n kind: 'game-object.transform';\n targetId: string;\n transform: EditorTransformSnapshot;\n }\n | {\n kind: 'game-object.transform-batch';\n targets: Array<{\n targetId: string;\n transform: Partial<EditorTransformSnapshot>;\n }>;\n }\n | {\n kind: 'game-object.duplicate-selection';\n gameObjects: TGameObject[];\n }\n | {\n kind: 'game-object.rename';\n targetId: string;\n name: string;\n }\n | {\n kind: 'game-object.create-group';\n gameObject: TGameObject;\n }\n | {\n kind: 'game-object.create-primitive';\n gameObject: TGameObject;\n }\n | {\n kind: 'game-object.delete-subtree';\n targetIds: string[];\n }\n | {\n kind: 'game-object.reparent';\n targetId: string;\n parentId?: string;\n transform?: EditorTransformSnapshot;\n }\n | {\n kind: 'game-object.hierarchy-move';\n moves: Array<{\n targetId: string;\n parentId?: string;\n transform: EditorTransformSnapshot;\n }>;\n order: string[];\n }\n | {\n kind: 'game-object.group-selection';\n gameObject: TGameObject;\n childIds: string[];\n childTransforms: Record<string, EditorTransformSnapshot>;\n order: string[];\n }\n | TExtensionPatch;\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/session/types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n EditorTransformSnapshot,\n SceneGraphTreeItem,\n SerializedPropertyPatch,\n} from '@fps-games/editor-core';\nimport type {\n EditorSceneAsset,\n EditorSceneDocument,\n EditorSceneGameObject,\n} from '../document/index';\n\nexport type EditorSceneSessionDocument<\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n> = EditorSceneDocument<TGameObject>;\n\nexport type EditorSceneSessionGameObject = EditorSceneGameObject;\n\nexport type EditorSceneHierarchyItem = SceneGraphTreeItem;\n\nexport type EditorSceneTransformSnapshot = EditorTransformSnapshot;\n\nexport type PlayableEditorSceneDocumentPatch<\n TAsset extends EditorSceneAsset = EditorSceneAsset,\n TGameObject extends EditorSceneGameObject = EditorSceneGameObject,\n TMaterialAsset = unknown,\n TAssetLibraryItem = unknown,\n TMarkerGraphCommand = unknown,\n TExtensionPatch = never,\n> =\n | ({ kind: 'serialized-property' } & SerializedPropertyPatch)\n | {\n kind: 'game-object.field';\n targetId: string;\n path: string;\n value: unknown;\n }\n | {\n kind: 'game-object.field-batch';\n targetIds: readonly string[];\n path: string;\n value: unknown;\n }\n | {\n kind: 'scene.shadow-map-experiment.profiles';\n qualityProfile?: string | null;\n behaviorProfile?: string | null;\n }\n | {\n kind: 'game-object.rendering-alpha-index-migration';\n targetIds: string[];\n renderingGroupId: 0 | 1 | 2 | 3;\n fromAlphaIndex: number;\n toAlphaIndex: number;\n }\n | {\n kind: 'scene.material-asset.field';\n materialAssetId: string;\n path: string;\n value: unknown;\n }\n | {\n kind: 'scene.material-asset.create';\n materialAsset: TMaterialAsset;\n }\n | {\n kind: 'scene.material-asset.delete';\n materialAssetId: string;\n }\n | {\n kind: 'scene.material-asset.duplicate-and-bind';\n targetId: string;\n bindingPath: string;\n materialAsset: TMaterialAsset;\n }\n | {\n kind: 'scene.prefab-asset.create';\n sourceAsset: TAsset;\n prefabAsset: TAsset;\n }\n | {\n kind: 'scene.prefab-asset.create-from-game-object';\n sourceGameObjectId: string;\n prefabAsset: TAsset;\n }\n | {\n kind: 'scene.prefab-asset.duplicate';\n sourcePrefabAssetId: string;\n prefabAsset: TAsset;\n }\n | {\n kind: 'scene.prefab-asset.field';\n assetId: string;\n path: string;\n value: unknown;\n }\n | {\n kind: 'scene.prefab-asset.replace';\n assetId: string;\n prefabAsset: TAsset;\n sourceAsset?: TAsset;\n }\n | {\n kind: 'scene.prefab-material-asset.duplicate-and-bind';\n assetId: string;\n bindingPath: string;\n materialAsset: TMaterialAsset;\n }\n | {\n kind: 'scene.marker-graph';\n command: TMarkerGraphCommand;\n }\n | {\n kind: 'game-object.create-from-asset';\n assetItem: TAssetLibraryItem;\n name?: string;\n placement?: EditorTransformSnapshot;\n }\n | {\n kind: 'game-object.transform';\n targetId: string;\n transform: EditorTransformSnapshot;\n }\n | {\n kind: 'game-object.transform-batch';\n targets: Array<{\n targetId: string;\n transform: Partial<EditorTransformSnapshot>;\n }>;\n }\n | {\n kind: 'game-object.duplicate-selection';\n gameObjects: TGameObject[];\n order?: string[];\n }\n | {\n kind: 'game-object.rename';\n targetId: string;\n name: string;\n }\n | {\n kind: 'game-object.create-group';\n gameObject: TGameObject;\n }\n | {\n kind: 'game-object.create-primitive';\n gameObject: TGameObject;\n }\n | {\n kind: 'game-object.delete-subtree';\n targetIds: string[];\n }\n | {\n kind: 'game-object.reparent';\n targetId: string;\n parentId?: string;\n transform?: EditorTransformSnapshot;\n }\n | {\n kind: 'game-object.hierarchy-move';\n moves: Array<{\n targetId: string;\n parentId?: string;\n transform: EditorTransformSnapshot;\n }>;\n order: string[];\n }\n | {\n kind: 'game-object.group-selection';\n gameObject: TGameObject;\n childIds: string[];\n childTransforms: Record<string, EditorTransformSnapshot>;\n order: string[];\n }\n | TExtensionPatch;\n"]}
|
|
@@ -162,12 +162,36 @@ export function inspectPlayableEditorUpgradeReadiness(input = {}) {
|
|
|
162
162
|
function inspectMigrationReadinessFile(file, options) {
|
|
163
163
|
const diagnostics = [];
|
|
164
164
|
const content = file.content;
|
|
165
|
+
if (/\bassertRuntimeSceneConfig(?:ModulePath|ExportName)\b/.test(content)) {
|
|
166
|
+
diagnostics.push({
|
|
167
|
+
severity: 'warning',
|
|
168
|
+
code: 'hard-cut.scene-artifact.project-validator-hook-removed',
|
|
169
|
+
path: file.filePath,
|
|
170
|
+
message: 'Removed project SceneArtifact validator hook detected; delete assertRuntimeSceneConfigModulePath/assertRuntimeSceneConfigExportName because @fps-games/editor/playable-sdk now validates the canonical runtime artifact.',
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
if (/\bhierarchyContextActions\b/.test(content)) {
|
|
174
|
+
diagnostics.push({
|
|
175
|
+
severity: options.hierarchyContextActionSeverity ?? 'warning',
|
|
176
|
+
code: 'hard-cut.hierarchy-actions.browser-callbacks-removed',
|
|
177
|
+
path: file.filePath,
|
|
178
|
+
message: 'Removed hierarchyContextActions Browser callback API detected; migrate each action to a typed capabilities.hierarchyActions.operations contribution.',
|
|
179
|
+
});
|
|
180
|
+
}
|
|
165
181
|
if (/\bcreateLocalEditorHarness\b/.test(content) && /\bcontextActions\b/.test(content)) {
|
|
166
182
|
diagnostics.push({
|
|
167
183
|
severity: options.hierarchyContextActionSeverity ?? 'warning',
|
|
168
184
|
code: 'hard-cut.hierarchy-actions.direct-harness',
|
|
169
185
|
path: file.filePath,
|
|
170
|
-
message: '
|
|
186
|
+
message: 'Removed hierarchy.contextActions API detected; migrate each action to a typed capabilities.hierarchyActions.operations contribution.',
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
if (/\bhierarchyActions\b/.test(content) && /\bcontextActions\b/.test(content)) {
|
|
190
|
+
diagnostics.push({
|
|
191
|
+
severity: options.hierarchyContextActionSeverity ?? 'warning',
|
|
192
|
+
code: 'hard-cut.hierarchy-actions.context-actions-removed',
|
|
193
|
+
path: file.filePath,
|
|
194
|
+
message: 'Removed capabilities.hierarchyActions.contextActions API detected; use capabilities.hierarchyActions.operations.',
|
|
171
195
|
});
|
|
172
196
|
}
|
|
173
197
|
const retiredBypassPattern = new RegExp(`\\binstall${'Leg' + 'acy'}AssetCommandBypass\\b|__project${'Leg' + 'acy'}AssetBypass`);
|
|
@@ -246,8 +270,12 @@ function collectDeprecatedJsonFields(value, path, fields) {
|
|
|
246
270
|
if (field in value)
|
|
247
271
|
fields.add(field);
|
|
248
272
|
}
|
|
249
|
-
if (path[path.length - 1] === 'globalVolume'
|
|
250
|
-
|
|
273
|
+
if (path[path.length - 1] === 'globalVolume') {
|
|
274
|
+
for (const field of ['samples', 'camera', 'lights']) {
|
|
275
|
+
if (field in value)
|
|
276
|
+
fields.add(`globalVolume.${field}`);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
251
279
|
if (value.kind === 'box' && path.slice(-2).join('.') === 'marker.geometry') {
|
|
252
280
|
for (const field of ['coordinateSpace', 'center', 'size', 'rotation'])
|
|
253
281
|
if (field in value)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspectors.js","sourceRoot":"","sources":["../../src/upgrade-doctor/inspectors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6CAA6C,GAG9C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,4CAA4C,EAAE,MAAM,QAAQ,CAAC;AActE,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;AAClD,MAAM,uCAAuC,GAAG,+BAA+B,C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f,CAAC;AACH,CAAC;AAED,SAAS,mBAAmB,CAAC,QAAgB;IAC3C,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAC5D,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAChF,CAAC;AAED,SAAS,wBAAwB,CAAC,KAAa;IAC7C,OAAO,sDAAsD,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;AACnF,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAClF,CAAC;AAED,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1F,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAiF;IACzG,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACvD,CAAC","sourcesContent":["import {\n collectMissingPlayableEditorPackageAliasFiles,\n type PlayableEditorFileExists,\n type PlayableEditorPackageAliasPlan,\n} from '../package-resolution/index';\nimport { parse } from '@babel/parser';\nimport { createPlayableEditorDoctorReport } from './report';\nimport { inspectPlayableEditorHostCompatibilityReport } from './host';\nimport type {\n PlayableEditorDoctorDiagnostic,\n PlayableEditorDoctorReport,\n PlayableEditorImportBoundaryInspectionOptions,\n PlayableEditorImportSnapshot,\n PlayableEditorImportSnapshotFile,\n PlayableEditorInstalledVersionInspectionOptions,\n PlayableEditorInstalledVersionLike,\n PlayableEditorMigrationReadinessInspectionOptions,\n PlayableEditorPackageExportsInspectionOptions,\n PlayableEditorPackageExportsLike,\n PlayableEditorUpgradeReadinessInspectionInput,\n} from './types';\nimport { mergePlayableEditorDoctorReports } from './report';\n\nconst PLAYABLE_SDK_EXPORT_PATH = './playable-sdk';\nconst PLAYABLE_SDK_UPGRADE_DOCTOR_EXPORT_PATH = './playable-sdk/upgrade-doctor';\nconst PLAYABLE_SDK_VITE_EXPORT_PATH = './playable-sdk/vite';\nconst PLAYABLE_SDK_SUBPATH_PREFIX = '@fps-games/editor/playable-sdk/';\nconst PLAYABLE_SDK_UPGRADE_DOCTOR_SUBPATH = '@fps-games/editor/playable-sdk/upgrade-doctor';\nconst PLAYABLE_SDK_VITE_SUBPATH = '@fps-games/editor/playable-sdk/vite';\nconst PLAYABLE_RUNTIME_SUBPATH = '@fps-games/editor/playable-runtime';\nconst PLAYABLE_RUNTIME_BABYLON_SUBPATH = '@fps-games/editor/playable-runtime/babylon';\nconst DIRECT_EDITOR_IMPORTS = [\n '@fps-games/editor',\n '@fps-games/editor-core',\n] as const;\n\n/**\n * Default forbidden packages for new playable editor integration code.\n * These packages are internal to the editor framework and should not be\n * imported directly from project-side code. Use @fps-games/editor/playable-sdk\n * facade exports instead.\n */\nexport const PLAYABLE_EDITOR_DEFAULT_FORBIDDEN_PACKAGES: readonly string[] = [\n '@fps-games/editor-agent-bridge',\n '@fps-games/editor-babylon',\n '@fps-games/editor-browser',\n '@fps-games/editor-forge-play',\n '@fps-games/editor-playable-sdk',\n '@fps-games/editor-protocol',\n '@fps-games/babylon-renderer',\n];\n\nexport function inspectPlayableEditorPackageAliasPlan(\n plan: PlayableEditorPackageAliasPlan,\n fileExists: PlayableEditorFileExists,\n options: { title?: string } = {},\n): PlayableEditorDoctorReport {\n const missing = collectMissingPlayableEditorPackageAliasFiles(plan, fileExists);\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor package aliases',\n diagnostics: missing.map(entry => ({\n severity: 'error',\n code: 'package.alias.missing-file',\n source: entry.packageId,\n path: entry.file,\n message: `Package alias for ${entry.packageId} points to a missing file.`,\n })),\n });\n}\n\nexport function inspectPlayableEditorPackageExports(\n packageJson: PlayableEditorPackageExportsLike,\n options: PlayableEditorPackageExportsInspectionOptions = {},\n): PlayableEditorDoctorReport {\n const packageName = options.packageName ?? readString(packageJson.name) ?? '@fps-games/editor';\n const exportPath = options.playableSdkExportPath ?? PLAYABLE_SDK_EXPORT_PATH;\n const upgradeDoctorExportPath = options.playableSdkUpgradeDoctorExportPath ?? PLAYABLE_SDK_UPGRADE_DOCTOR_EXPORT_PATH;\n const viteExportPath = options.playableSdkViteExportPath ?? PLAYABLE_SDK_VITE_EXPORT_PATH;\n const diagnostics: PlayableEditorDoctorDiagnostic[] = [];\n\n if (!isRecord(packageJson.exports)) {\n diagnostics.push({\n severity: 'error',\n code: 'package.export.invalid',\n source: packageName,\n path: 'exports',\n message: `Package ${packageName} must expose an object exports map.`,\n });\n } else {\n for (const requiredExportPath of [exportPath, upgradeDoctorExportPath, viteExportPath]) {\n const hasExport = requiredExportPath in packageJson.exports;\n const usableTarget = hasExport && (\n requiredExportPath === upgradeDoctorExportPath\n ? isUsableNodePackageExportTarget(packageJson.exports[requiredExportPath])\n : isUsablePackageExportTarget(packageJson.exports[requiredExportPath])\n );\n if (usableTarget) continue;\n diagnostics.push({\n severity: 'error',\n code: hasExport ? 'package.export.invalid-target' : 'package.export.missing',\n source: packageName,\n path: `exports[\"${requiredExportPath}\"]`,\n message: hasExport\n ? `Package ${packageName} has no usable runtime target for the ${requiredExportPath} export.`\n : `Package ${packageName} is missing the ${requiredExportPath} export.`,\n });\n }\n }\n\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor package exports',\n diagnostics,\n });\n}\n\nexport function inspectPlayableEditorInstalledVersion(\n packageJson: PlayableEditorInstalledVersionLike,\n options: PlayableEditorInstalledVersionInspectionOptions = {},\n): PlayableEditorDoctorReport {\n const packageName = options.packageName\n ?? readString(packageJson.packageName)\n ?? '@fps-games/editor';\n const declaredVersion = readString(packageJson.declaredVersion);\n const installedVersion = readString(packageJson.installedVersion);\n const source = readString(packageJson.source) ?? packageName;\n const diagnostics: PlayableEditorDoctorDiagnostic[] = [];\n\n if (declaredVersion && installedVersion && isExactDependencyVersion(declaredVersion) && declaredVersion !== installedVersion) {\n diagnostics.push({\n severity: options.exactMismatchSeverity ?? 'error',\n code: 'package.version.installed-mismatch',\n source,\n path: 'dependencies',\n details: { packageName, declaredVersion, installedVersion },\n message: `Project declares ${packageName}@${declaredVersion}, but node_modules contains ${installedVersion}. Reinstall dependencies and restart the dev server.`,\n });\n }\n\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor installed version',\n diagnostics,\n });\n}\n\nexport function createPlayableEditorImportSnapshot(\n files: readonly PlayableEditorImportSnapshotFile[],\n): PlayableEditorImportSnapshot {\n return {\n files: files.map(file => ({\n filePath: file.filePath,\n content: file.content,\n })),\n };\n}\n\nexport function inspectPlayableEditorImportBoundaries(\n snapshot: PlayableEditorImportSnapshot | readonly PlayableEditorImportSnapshotFile[],\n options: PlayableEditorImportBoundaryInspectionOptions = {},\n): PlayableEditorDoctorReport {\n const files: readonly PlayableEditorImportSnapshotFile[] = isImportSnapshot(snapshot)\n ? snapshot.files\n : snapshot;\n const forbiddenPackages = normalizeForbiddenPackages(\n options.forbiddenPackages ?? PLAYABLE_EDITOR_DEFAULT_FORBIDDEN_PACKAGES,\n );\n const forbiddenPackageSeverity = options.forbiddenPackageSeverity ?? 'warning';\n const diagnostics = files.flatMap(file =>\n inspectFileImports(file, forbiddenPackages, forbiddenPackageSeverity),\n );\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor import boundaries',\n diagnostics,\n });\n}\n\nexport function inspectPlayableEditorMigrationReadiness(\n snapshot: PlayableEditorImportSnapshot | readonly PlayableEditorImportSnapshotFile[],\n options: PlayableEditorMigrationReadinessInspectionOptions = {},\n): PlayableEditorDoctorReport {\n const files: readonly PlayableEditorImportSnapshotFile[] = isImportSnapshot(snapshot)\n ? snapshot.files\n : snapshot;\n const diagnostics = files.flatMap(file => inspectMigrationReadinessFile(file, options));\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor hard-cut readiness',\n diagnostics,\n });\n}\n\nexport function inspectPlayableEditorUpgradeReadiness(\n input: PlayableEditorUpgradeReadinessInspectionInput = {},\n): PlayableEditorDoctorReport {\n const reports: PlayableEditorDoctorReport[] = [];\n if (input.hostCompatibility) {\n reports.push(inspectPlayableEditorHostCompatibilityReport(\n input.hostCompatibility.report,\n input.hostCompatibility.options,\n ));\n }\n if (input.packageAliasPlan) {\n reports.push(inspectPlayableEditorPackageAliasPlan(\n input.packageAliasPlan.plan,\n input.packageAliasPlan.fileExists,\n { title: input.packageAliasPlan.title },\n ));\n }\n if (input.packageExports) {\n reports.push(inspectPlayableEditorPackageExports(\n input.packageExports.packageJson,\n input.packageExports.options,\n ));\n }\n if (input.installedVersion) {\n reports.push(inspectPlayableEditorInstalledVersion(\n input.installedVersion.packageJson,\n input.installedVersion.options,\n ));\n }\n if (input.importBoundaries) {\n reports.push(inspectPlayableEditorImportBoundaries(\n input.importBoundaries.snapshot,\n input.importBoundaries.options,\n ));\n }\n if (input.migrationReadiness) {\n reports.push(inspectPlayableEditorMigrationReadiness(\n input.migrationReadiness.snapshot,\n input.migrationReadiness.options,\n ));\n }\n return mergePlayableEditorDoctorReports(reports, {\n title: input.title ?? 'Playable editor upgrade readiness',\n });\n}\n\nfunction inspectMigrationReadinessFile(\n file: PlayableEditorImportSnapshotFile,\n options: PlayableEditorMigrationReadinessInspectionOptions,\n): PlayableEditorDoctorDiagnostic[] {\n const diagnostics: PlayableEditorDoctorDiagnostic[] = [];\n const content = file.content;\n if (/\\bcreateLocalEditorHarness\\b/.test(content) && /\\bcontextActions\\b/.test(content)) {\n diagnostics.push({\n severity: options.hierarchyContextActionSeverity ?? 'warning',\n code: 'hard-cut.hierarchy-actions.direct-harness',\n path: file.filePath,\n message: 'Direct harness hierarchy.contextActions detected; move custom hierarchy actions to capabilities.hierarchyActions.contextActions.',\n });\n }\n const retiredBypassPattern = new RegExp(`\\\\binstall${'Leg' + 'acy'}AssetCommandBypass\\\\b|__project${'Leg' + 'acy'}AssetBypass`);\n if (retiredBypassPattern.test(content)) {\n diagnostics.push({\n severity: options.retiredAssetBypassSeverity ?? 'error',\n code: 'hard-cut.asset-bypass.retired-helper',\n path: file.filePath,\n message: 'A retired asset command bypass helper was detected; delete it and use product asset capabilities.',\n });\n }\n const retiredRuntimePattern = new RegExp(\n `__bridge${'Leg' + 'acy'}EditorRuntime|register${'Leg' + 'acy'}RuntimeProxy|install${'Leg' + 'acy'}CommandBypass`,\n );\n if (retiredRuntimePattern.test(content)) {\n diagnostics.push({\n severity: 'error',\n code: 'hard-cut.runtime.retired-bridge',\n path: file.filePath,\n message: 'A retired runtime bridge/global was detected; remove it and mount the product editor adapter directly.',\n });\n }\n const deprecatedAuthoredFields = collectDeprecatedAuthoredFields(file.filePath, content);\n for (const field of deprecatedAuthoredFields) {\n diagnostics.push({\n severity: 'error',\n code: 'hard-cut.schema.deprecated-field',\n path: file.filePath,\n details: { field },\n message: `Deprecated authored field ${field} is unsupported; migrate the authored source to the current contract.`,\n });\n }\n if (\n /\\bhandleProjectAssetCommand\\b/.test(content)\n && /\\b(asset\\.import|asset\\.library\\.refresh|editor\\.asset\\.place|ASSET_IMPORT|ASSET_LIBRARY_REFRESH|EDITOR_ASSET_PLACE)\\b/.test(content)\n && !/\\bcreatePlayableProjectAssetCommandHandler\\b/.test(content)\n ) {\n diagnostics.push({\n severity: options.projectAssetCommandGlueSeverity ?? 'warning',\n code: 'migration.project-asset-command.local-glue',\n path: file.filePath,\n message: 'Project asset command glue detected; consider createPlayableProjectAssetCommandHandler and keep only project registration/placement policies local.',\n });\n }\n if (\n /\\bimportProjectionModel\\b/.test(content)\n && !/\\bcreateEditorSceneRuntimePreviewImportPlan\\b/.test(content)\n ) {\n diagnostics.push({\n severity: options.runtimePreviewProjectionSeverity ?? 'info',\n code: 'migration.runtime-preview.projection-plan-missing',\n path: file.filePath,\n message: 'Projection import logic is present without the SDK runtime preview import plan helper; verify asset URL and projection diagnostics during migration.',\n });\n }\n return diagnostics;\n}\n\nfunction collectDeprecatedAuthoredFields(filePath: string, content: string): string[] {\n if (/\\.json$/i.test(filePath)) {\n try {\n const value = JSON.parse(content) as unknown;\n const fields = new Set<string>();\n collectDeprecatedJsonFields(value, [], fields);\n return [...fields];\n } catch {\n return [];\n }\n }\n // Authored scene schemas are structured JSON. TypeScript project code is\n // covered by import/runtime checks and must not be guessed through regexes.\n return [];\n}\n\nfunction collectDeprecatedJsonFields(value: unknown, path: string[], fields: Set<string>): void {\n if (Array.isArray(value)) {\n value.forEach(entry => collectDeprecatedJsonFields(entry, path, fields));\n return;\n }\n if (!isRecord(value)) return;\n for (const field of ['shadowMode', 'sceneInstances', 'modelRegistry', 'childMaterialBindings', 'childMaterials', 'useBlobShadow', 'blobSettings']) {\n if (field in value) fields.add(field);\n }\n if (path[path.length - 1] === 'globalVolume' && 'samples' in value) fields.add('globalVolume.samples');\n if (value.kind === 'box' && path.slice(-2).join('.') === 'marker.geometry') {\n for (const field of ['coordinateSpace', 'center', 'size', 'rotation']) if (field in value) fields.add(`marker.geometry.${field}`);\n }\n if (path.slice(-3).join('.') === 'shadows.staticProjected.bake') {\n for (const field of ['resolution', 'maxSize']) if (field in value) fields.add(`shadows.staticProjected.bake.${field}`);\n }\n if (path.slice(-2).join('.') === 'globalVolume.environment') {\n for (const field of ['textureAssetId', 'textureUrl', 'intensity']) if (field in value) fields.add(`globalVolume.environment.${field}`);\n }\n for (const [key, child] of Object.entries(value)) {\n if (key !== 'metadata') collectDeprecatedJsonFields(child, [...path, key], fields);\n }\n}\n\nfunction inspectFileImports(\n file: PlayableEditorImportSnapshotFile,\n forbiddenPackages: readonly string[],\n forbiddenPackageSeverity: PlayableEditorDoctorDiagnostic['severity'],\n): PlayableEditorDoctorDiagnostic[] {\n const diagnostics: PlayableEditorDoctorDiagnostic[] = [];\n let imports: string[];\n try {\n imports = readImportSpecifiers(file.content, file.filePath);\n } catch (error) {\n return [{\n severity: 'error',\n code: 'import.boundary.parse-error',\n path: file.filePath,\n message: `Unable to parse project module for import-boundary validation: ${error instanceof Error ? error.message : String(error)}`,\n }];\n }\n for (const specifier of imports) {\n if (specifier === PLAYABLE_RUNTIME_SUBPATH || specifier === PLAYABLE_RUNTIME_BABYLON_SUBPATH) continue;\n if (specifier === '@fps-games/editor' && isPublicEditorProductEntryFile(file.filePath)) continue;\n if (specifier === '@fps-games/editor/vite' && (isViteConfigFile(file.filePath) || isProjectScriptFile(file.filePath))) continue;\n if (specifier.startsWith(PLAYABLE_SDK_SUBPATH_PREFIX)) {\n const isAllowedUpgradeDoctorSubpath =\n specifier === PLAYABLE_SDK_UPGRADE_DOCTOR_SUBPATH\n && isProjectScriptFile(file.filePath);\n const isAllowedViteSubpath =\n specifier === PLAYABLE_SDK_VITE_SUBPATH\n && (\n isViteConfigFile(file.filePath)\n || isProjectScriptFile(file.filePath)\n );\n if (isAllowedUpgradeDoctorSubpath || isAllowedViteSubpath) {\n continue;\n }\n diagnostics.push({\n severity: 'error',\n code: 'import.boundary.playable-sdk-subpath',\n source: specifier,\n path: file.filePath,\n message: 'Import @fps-games/editor/playable-sdk only through the public aggregate subpath.',\n });\n continue;\n }\n const directEditorPackage = findMatchingForbiddenPackage(specifier, DIRECT_EDITOR_IMPORTS);\n if (directEditorPackage && specifier !== '@fps-games/editor/playable-sdk') {\n diagnostics.push({\n severity: 'error',\n code: directEditorPackage === '@fps-games/editor'\n ? 'import.boundary.direct-editor'\n : 'import.boundary.direct-editor-core',\n source: specifier,\n path: file.filePath,\n message: `New playable editor integration code should import stable contracts from @fps-games/editor/playable-sdk instead of ${specifier}.`,\n });\n continue;\n }\n const forbiddenPackage = findMatchingForbiddenPackage(specifier, forbiddenPackages);\n if (forbiddenPackage) {\n diagnostics.push({\n severity: forbiddenPackageSeverity,\n code: 'import.boundary.forbidden-package',\n source: specifier,\n path: file.filePath,\n details: { packageName: forbiddenPackage },\n message: `Import ${forbiddenPackage} directly couples to editor internals. Consider using @fps-games/editor/playable-sdk facade exports instead.`,\n });\n }\n }\n return diagnostics;\n}\n\nfunction isViteConfigFile(filePath: string): boolean {\n const normalized = normalizeFilePath(filePath);\n return !normalized.includes('/') && /^vite\\.config\\.(?:[cm]?[jt]s)$/.test(normalized);\n}\n\nfunction isPublicEditorProductEntryFile(filePath: string): boolean {\n if (isFpsConfigFile(filePath) || isProjectScriptFile(filePath)) return true;\n const normalized = normalizeFilePath(filePath);\n return /(?:^|\\/)src\\/(?:editor-features|services\\/fps-game-editor)\\/plugin-host\\.(?:[cm]?[jt]s)$/.test(normalized);\n}\n\nfunction isFpsConfigFile(filePath: string): boolean {\n const normalized = normalizeFilePath(filePath);\n return /(?:^|\\/)fps\\.config\\.(?:[cm]?[jt]s)$/.test(normalized);\n}\n\nfunction normalizeForbiddenPackages(packages: readonly string[]): string[] {\n const normalized: string[] = [];\n for (const packageName of packages) {\n const trimmed = packageName.trim();\n if (trimmed.length > 0 && !normalized.includes(trimmed)) {\n normalized.push(trimmed);\n }\n }\n return normalized;\n}\n\nfunction findMatchingForbiddenPackage(specifier: string, forbiddenPackages: readonly string[]): string | undefined {\n return forbiddenPackages.find(packageName => specifier === packageName || specifier.startsWith(`${packageName}/`));\n}\n\nfunction readImportSpecifiers(content: string, filePath: string): string[] {\n const supportsJsx = /\\.[cm]?[jt]sx$/i.test(filePath);\n const root = parse(content, {\n sourceType: 'unambiguous',\n allowAwaitOutsideFunction: true,\n allowReturnOutsideFunction: true,\n plugins: [\n 'typescript',\n ...(supportsJsx ? ['jsx' as const] : []),\n 'decorators',\n 'importAttributes',\n ],\n });\n const specifiers: string[] = [];\n visitBabelNode(root, (node) => {\n const type = readBabelNodeType(node);\n if (type === 'ImportDeclaration' || type === 'ExportNamedDeclaration' || type === 'ExportAllDeclaration') {\n const source = readBabelStaticString(node.source);\n if (source) specifiers.push(source);\n return;\n }\n if (type === 'ImportExpression') {\n const source = readBabelStaticString(node.source);\n if (source) specifiers.push(source);\n return;\n }\n if (type === 'TSExternalModuleReference') {\n const source = readBabelStaticString(node.expression);\n if (source) specifiers.push(source);\n return;\n }\n if (type === 'TSImportType') {\n const source = readBabelStaticString(node.argument);\n if (source) specifiers.push(source);\n return;\n }\n if (type !== 'CallExpression' && type !== 'OptionalCallExpression') return;\n if (!isBabelStaticModuleLoader(node.callee)) return;\n const source = readBabelStaticString(Array.isArray(node.arguments) ? node.arguments[0] : null);\n if (source) specifiers.push(source);\n });\n return specifiers;\n}\n\nfunction visitBabelNode(value: unknown, visit: (node: Record<string, unknown>) => void): void {\n if (Array.isArray(value)) {\n for (const entry of value) visitBabelNode(entry, visit);\n return;\n }\n if (!isRecord(value) || typeof value.type !== 'string') return;\n visit(value);\n for (const [key, child] of Object.entries(value)) {\n if (key === 'loc' || key === 'start' || key === 'end' || key === 'extra' || key === 'comments' || key === 'tokens') continue;\n visitBabelNode(child, visit);\n }\n}\n\nfunction readBabelNodeType(value: unknown): string | null {\n return isRecord(value) && typeof value.type === 'string' ? value.type : null;\n}\n\nfunction readBabelStaticString(value: unknown): string | null {\n if (!isRecord(value)) return null;\n if (value.type === 'StringLiteral' && typeof value.value === 'string') return value.value;\n if (value.type === 'TemplateLiteral' && Array.isArray(value.expressions) && value.expressions.length === 0) {\n const quasi = Array.isArray(value.quasis) ? value.quasis[0] : null;\n const cooked = isRecord(quasi) && isRecord(quasi.value) ? quasi.value.cooked : null;\n return typeof cooked === 'string' ? cooked : null;\n }\n return null;\n}\n\nfunction isBabelStaticModuleLoader(value: unknown): boolean {\n if (!isRecord(value)) return false;\n if (value.type === 'Import') return true;\n if (value.type === 'Identifier') return value.name === 'require';\n if (value.type !== 'MemberExpression' && value.type !== 'OptionalMemberExpression') return false;\n const objectName = readBabelIdentifierName(value.object);\n const propertyName = value.computed\n ? readBabelStaticString(value.property)\n : readBabelIdentifierName(value.property);\n return (objectName === 'module' && propertyName === 'require')\n || (objectName === 'require' && propertyName === 'resolve');\n}\n\nfunction readBabelIdentifierName(value: unknown): string | null {\n return isRecord(value) && value.type === 'Identifier' && typeof value.name === 'string' ? value.name : null;\n}\n\nfunction isUsablePackageExportTarget(value: unknown): boolean {\n if (typeof value === 'string') {\n if (!/^\\.\\/.+\\.(?:[cm]?js|json|node)$/.test(value)) return false;\n return value.slice(2).split('/').every(isUsablePackageTargetSegment);\n }\n if (Array.isArray(value)) return value.some(isUsablePackageExportTarget);\n if (!isRecord(value)) return false;\n const entries = Object.entries(value);\n if (entries.some(([condition]) => !/^[A-Za-z][A-Za-z0-9_-]*$/.test(condition))) return false;\n return entries.some(([condition, target]) => condition !== 'types' && isUsablePackageExportTarget(target));\n}\n\nfunction isUsableNodePackageExportTarget(value: unknown): boolean {\n if (typeof value === 'string') return isUsablePackageExportTarget(value);\n if (Array.isArray(value)) return value.some(isUsableNodePackageExportTarget);\n if (!isRecord(value)) return false;\n const entries = Object.entries(value);\n if (entries.some(([condition]) => !/^[A-Za-z][A-Za-z0-9_-]*$/.test(condition))) return false;\n for (const [condition, target] of entries) {\n if (condition !== 'node' && condition !== 'import' && condition !== 'default') continue;\n return isUsableNodePackageExportTarget(target);\n }\n return false;\n}\n\nfunction isUsablePackageTargetSegment(segment: string): boolean {\n if (!segment) return false;\n try {\n const decoded = decodeURIComponent(segment);\n return decoded !== '.'\n && decoded !== '..'\n && decoded.toLowerCase() !== 'node_modules'\n && !decoded.includes('/')\n && !decoded.includes('\\\\');\n } catch {\n return false;\n }\n}\n\nfunction isProjectScriptFile(filePath: string): boolean {\n return normalizeFilePath(filePath).startsWith('scripts/');\n}\n\nfunction normalizeFilePath(filePath: string): string {\n return filePath.replace(/\\\\/g, '/').replace(/\\/+/g, '/').replace(/^\\.\\//, '');\n}\n\nfunction isExactDependencyVersion(value: string): boolean {\n return /^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z]+(?:\\.[0-9A-Za-z]+)*)?$/.test(value.trim());\n}\n\nfunction readString(value: unknown): string | undefined {\n return typeof value === 'string' && value.trim().length > 0 ? value : undefined;\n}\n\nfunction readSeverity(value: unknown): PlayableEditorDoctorDiagnostic['severity'] | undefined {\n return value === 'error' || value === 'warning' || value === 'info' ? value : undefined;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction isImportSnapshot(value: PlayableEditorImportSnapshot | readonly PlayableEditorImportSnapshotFile[]): value is PlayableEditorImportSnapshot {\n return isRecord(value) && Array.isArray(value.files);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"inspectors.js","sourceRoot":"","sources":["../../src/upgrade-doctor/inspectors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6CAA6C,GAG9C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,4CAA4C,EAAE,MAAM,QAAQ,CAAC;AActE,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;AAClD,MAAM,uCAAuC,GAAG,+BAA+B,CAAC;AAChF,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAC5D,MAAM,2BAA2B,GAAG,iCAAiC,CAAC;AACtE,MAAM,mCAAmC,GAAG,+CAA+C,CAAC;AAC5F,MAAM,yBAAyB,GAAG,qCA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,CAAC;AACnF,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAClF,CAAC;AAED,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1F,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAiF;IACzG,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACvD,CAAC","sourcesContent":["import {\n collectMissingPlayableEditorPackageAliasFiles,\n type PlayableEditorFileExists,\n type PlayableEditorPackageAliasPlan,\n} from '../package-resolution/index';\nimport { parse } from '@babel/parser';\nimport { createPlayableEditorDoctorReport } from './report';\nimport { inspectPlayableEditorHostCompatibilityReport } from './host';\nimport type {\n PlayableEditorDoctorDiagnostic,\n PlayableEditorDoctorReport,\n PlayableEditorImportBoundaryInspectionOptions,\n PlayableEditorImportSnapshot,\n PlayableEditorImportSnapshotFile,\n PlayableEditorInstalledVersionInspectionOptions,\n PlayableEditorInstalledVersionLike,\n PlayableEditorMigrationReadinessInspectionOptions,\n PlayableEditorPackageExportsInspectionOptions,\n PlayableEditorPackageExportsLike,\n PlayableEditorUpgradeReadinessInspectionInput,\n} from './types';\nimport { mergePlayableEditorDoctorReports } from './report';\n\nconst PLAYABLE_SDK_EXPORT_PATH = './playable-sdk';\nconst PLAYABLE_SDK_UPGRADE_DOCTOR_EXPORT_PATH = './playable-sdk/upgrade-doctor';\nconst PLAYABLE_SDK_VITE_EXPORT_PATH = './playable-sdk/vite';\nconst PLAYABLE_SDK_SUBPATH_PREFIX = '@fps-games/editor/playable-sdk/';\nconst PLAYABLE_SDK_UPGRADE_DOCTOR_SUBPATH = '@fps-games/editor/playable-sdk/upgrade-doctor';\nconst PLAYABLE_SDK_VITE_SUBPATH = '@fps-games/editor/playable-sdk/vite';\nconst PLAYABLE_RUNTIME_SUBPATH = '@fps-games/editor/playable-runtime';\nconst PLAYABLE_RUNTIME_BABYLON_SUBPATH = '@fps-games/editor/playable-runtime/babylon';\nconst DIRECT_EDITOR_IMPORTS = [\n '@fps-games/editor',\n '@fps-games/editor-core',\n] as const;\n\n/**\n * Default forbidden packages for new playable editor integration code.\n * These packages are internal to the editor framework and should not be\n * imported directly from project-side code. Use @fps-games/editor/playable-sdk\n * facade exports instead.\n */\nexport const PLAYABLE_EDITOR_DEFAULT_FORBIDDEN_PACKAGES: readonly string[] = [\n '@fps-games/editor-agent-bridge',\n '@fps-games/editor-babylon',\n '@fps-games/editor-browser',\n '@fps-games/editor-forge-play',\n '@fps-games/editor-playable-sdk',\n '@fps-games/editor-protocol',\n '@fps-games/babylon-renderer',\n];\n\nexport function inspectPlayableEditorPackageAliasPlan(\n plan: PlayableEditorPackageAliasPlan,\n fileExists: PlayableEditorFileExists,\n options: { title?: string } = {},\n): PlayableEditorDoctorReport {\n const missing = collectMissingPlayableEditorPackageAliasFiles(plan, fileExists);\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor package aliases',\n diagnostics: missing.map(entry => ({\n severity: 'error',\n code: 'package.alias.missing-file',\n source: entry.packageId,\n path: entry.file,\n message: `Package alias for ${entry.packageId} points to a missing file.`,\n })),\n });\n}\n\nexport function inspectPlayableEditorPackageExports(\n packageJson: PlayableEditorPackageExportsLike,\n options: PlayableEditorPackageExportsInspectionOptions = {},\n): PlayableEditorDoctorReport {\n const packageName = options.packageName ?? readString(packageJson.name) ?? '@fps-games/editor';\n const exportPath = options.playableSdkExportPath ?? PLAYABLE_SDK_EXPORT_PATH;\n const upgradeDoctorExportPath = options.playableSdkUpgradeDoctorExportPath ?? PLAYABLE_SDK_UPGRADE_DOCTOR_EXPORT_PATH;\n const viteExportPath = options.playableSdkViteExportPath ?? PLAYABLE_SDK_VITE_EXPORT_PATH;\n const diagnostics: PlayableEditorDoctorDiagnostic[] = [];\n\n if (!isRecord(packageJson.exports)) {\n diagnostics.push({\n severity: 'error',\n code: 'package.export.invalid',\n source: packageName,\n path: 'exports',\n message: `Package ${packageName} must expose an object exports map.`,\n });\n } else {\n for (const requiredExportPath of [exportPath, upgradeDoctorExportPath, viteExportPath]) {\n const hasExport = requiredExportPath in packageJson.exports;\n const usableTarget = hasExport && (\n requiredExportPath === upgradeDoctorExportPath\n ? isUsableNodePackageExportTarget(packageJson.exports[requiredExportPath])\n : isUsablePackageExportTarget(packageJson.exports[requiredExportPath])\n );\n if (usableTarget) continue;\n diagnostics.push({\n severity: 'error',\n code: hasExport ? 'package.export.invalid-target' : 'package.export.missing',\n source: packageName,\n path: `exports[\"${requiredExportPath}\"]`,\n message: hasExport\n ? `Package ${packageName} has no usable runtime target for the ${requiredExportPath} export.`\n : `Package ${packageName} is missing the ${requiredExportPath} export.`,\n });\n }\n }\n\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor package exports',\n diagnostics,\n });\n}\n\nexport function inspectPlayableEditorInstalledVersion(\n packageJson: PlayableEditorInstalledVersionLike,\n options: PlayableEditorInstalledVersionInspectionOptions = {},\n): PlayableEditorDoctorReport {\n const packageName = options.packageName\n ?? readString(packageJson.packageName)\n ?? '@fps-games/editor';\n const declaredVersion = readString(packageJson.declaredVersion);\n const installedVersion = readString(packageJson.installedVersion);\n const source = readString(packageJson.source) ?? packageName;\n const diagnostics: PlayableEditorDoctorDiagnostic[] = [];\n\n if (declaredVersion && installedVersion && isExactDependencyVersion(declaredVersion) && declaredVersion !== installedVersion) {\n diagnostics.push({\n severity: options.exactMismatchSeverity ?? 'error',\n code: 'package.version.installed-mismatch',\n source,\n path: 'dependencies',\n details: { packageName, declaredVersion, installedVersion },\n message: `Project declares ${packageName}@${declaredVersion}, but node_modules contains ${installedVersion}. Reinstall dependencies and restart the dev server.`,\n });\n }\n\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor installed version',\n diagnostics,\n });\n}\n\nexport function createPlayableEditorImportSnapshot(\n files: readonly PlayableEditorImportSnapshotFile[],\n): PlayableEditorImportSnapshot {\n return {\n files: files.map(file => ({\n filePath: file.filePath,\n content: file.content,\n })),\n };\n}\n\nexport function inspectPlayableEditorImportBoundaries(\n snapshot: PlayableEditorImportSnapshot | readonly PlayableEditorImportSnapshotFile[],\n options: PlayableEditorImportBoundaryInspectionOptions = {},\n): PlayableEditorDoctorReport {\n const files: readonly PlayableEditorImportSnapshotFile[] = isImportSnapshot(snapshot)\n ? snapshot.files\n : snapshot;\n const forbiddenPackages = normalizeForbiddenPackages(\n options.forbiddenPackages ?? PLAYABLE_EDITOR_DEFAULT_FORBIDDEN_PACKAGES,\n );\n const forbiddenPackageSeverity = options.forbiddenPackageSeverity ?? 'warning';\n const diagnostics = files.flatMap(file =>\n inspectFileImports(file, forbiddenPackages, forbiddenPackageSeverity),\n );\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor import boundaries',\n diagnostics,\n });\n}\n\nexport function inspectPlayableEditorMigrationReadiness(\n snapshot: PlayableEditorImportSnapshot | readonly PlayableEditorImportSnapshotFile[],\n options: PlayableEditorMigrationReadinessInspectionOptions = {},\n): PlayableEditorDoctorReport {\n const files: readonly PlayableEditorImportSnapshotFile[] = isImportSnapshot(snapshot)\n ? snapshot.files\n : snapshot;\n const diagnostics = files.flatMap(file => inspectMigrationReadinessFile(file, options));\n return createPlayableEditorDoctorReport({\n title: options.title ?? 'Playable editor hard-cut readiness',\n diagnostics,\n });\n}\n\nexport function inspectPlayableEditorUpgradeReadiness(\n input: PlayableEditorUpgradeReadinessInspectionInput = {},\n): PlayableEditorDoctorReport {\n const reports: PlayableEditorDoctorReport[] = [];\n if (input.hostCompatibility) {\n reports.push(inspectPlayableEditorHostCompatibilityReport(\n input.hostCompatibility.report,\n input.hostCompatibility.options,\n ));\n }\n if (input.packageAliasPlan) {\n reports.push(inspectPlayableEditorPackageAliasPlan(\n input.packageAliasPlan.plan,\n input.packageAliasPlan.fileExists,\n { title: input.packageAliasPlan.title },\n ));\n }\n if (input.packageExports) {\n reports.push(inspectPlayableEditorPackageExports(\n input.packageExports.packageJson,\n input.packageExports.options,\n ));\n }\n if (input.installedVersion) {\n reports.push(inspectPlayableEditorInstalledVersion(\n input.installedVersion.packageJson,\n input.installedVersion.options,\n ));\n }\n if (input.importBoundaries) {\n reports.push(inspectPlayableEditorImportBoundaries(\n input.importBoundaries.snapshot,\n input.importBoundaries.options,\n ));\n }\n if (input.migrationReadiness) {\n reports.push(inspectPlayableEditorMigrationReadiness(\n input.migrationReadiness.snapshot,\n input.migrationReadiness.options,\n ));\n }\n return mergePlayableEditorDoctorReports(reports, {\n title: input.title ?? 'Playable editor upgrade readiness',\n });\n}\n\nfunction inspectMigrationReadinessFile(\n file: PlayableEditorImportSnapshotFile,\n options: PlayableEditorMigrationReadinessInspectionOptions,\n): PlayableEditorDoctorDiagnostic[] {\n const diagnostics: PlayableEditorDoctorDiagnostic[] = [];\n const content = file.content;\n if (/\\bassertRuntimeSceneConfig(?:ModulePath|ExportName)\\b/.test(content)) {\n diagnostics.push({\n severity: 'warning',\n code: 'hard-cut.scene-artifact.project-validator-hook-removed',\n path: file.filePath,\n message: 'Removed project SceneArtifact validator hook detected; delete assertRuntimeSceneConfigModulePath/assertRuntimeSceneConfigExportName because @fps-games/editor/playable-sdk now validates the canonical runtime artifact.',\n });\n }\n if (/\\bhierarchyContextActions\\b/.test(content)) {\n diagnostics.push({\n severity: options.hierarchyContextActionSeverity ?? 'warning',\n code: 'hard-cut.hierarchy-actions.browser-callbacks-removed',\n path: file.filePath,\n message: 'Removed hierarchyContextActions Browser callback API detected; migrate each action to a typed capabilities.hierarchyActions.operations contribution.',\n });\n }\n if (/\\bcreateLocalEditorHarness\\b/.test(content) && /\\bcontextActions\\b/.test(content)) {\n diagnostics.push({\n severity: options.hierarchyContextActionSeverity ?? 'warning',\n code: 'hard-cut.hierarchy-actions.direct-harness',\n path: file.filePath,\n message: 'Removed hierarchy.contextActions API detected; migrate each action to a typed capabilities.hierarchyActions.operations contribution.',\n });\n }\n if (/\\bhierarchyActions\\b/.test(content) && /\\bcontextActions\\b/.test(content)) {\n diagnostics.push({\n severity: options.hierarchyContextActionSeverity ?? 'warning',\n code: 'hard-cut.hierarchy-actions.context-actions-removed',\n path: file.filePath,\n message: 'Removed capabilities.hierarchyActions.contextActions API detected; use capabilities.hierarchyActions.operations.',\n });\n }\n const retiredBypassPattern = new RegExp(`\\\\binstall${'Leg' + 'acy'}AssetCommandBypass\\\\b|__project${'Leg' + 'acy'}AssetBypass`);\n if (retiredBypassPattern.test(content)) {\n diagnostics.push({\n severity: options.retiredAssetBypassSeverity ?? 'error',\n code: 'hard-cut.asset-bypass.retired-helper',\n path: file.filePath,\n message: 'A retired asset command bypass helper was detected; delete it and use product asset capabilities.',\n });\n }\n const retiredRuntimePattern = new RegExp(\n `__bridge${'Leg' + 'acy'}EditorRuntime|register${'Leg' + 'acy'}RuntimeProxy|install${'Leg' + 'acy'}CommandBypass`,\n );\n if (retiredRuntimePattern.test(content)) {\n diagnostics.push({\n severity: 'error',\n code: 'hard-cut.runtime.retired-bridge',\n path: file.filePath,\n message: 'A retired runtime bridge/global was detected; remove it and mount the product editor adapter directly.',\n });\n }\n const deprecatedAuthoredFields = collectDeprecatedAuthoredFields(file.filePath, content);\n for (const field of deprecatedAuthoredFields) {\n diagnostics.push({\n severity: 'error',\n code: 'hard-cut.schema.deprecated-field',\n path: file.filePath,\n details: { field },\n message: `Deprecated authored field ${field} is unsupported; migrate the authored source to the current contract.`,\n });\n }\n if (\n /\\bhandleProjectAssetCommand\\b/.test(content)\n && /\\b(asset\\.import|asset\\.library\\.refresh|editor\\.asset\\.place|ASSET_IMPORT|ASSET_LIBRARY_REFRESH|EDITOR_ASSET_PLACE)\\b/.test(content)\n && !/\\bcreatePlayableProjectAssetCommandHandler\\b/.test(content)\n ) {\n diagnostics.push({\n severity: options.projectAssetCommandGlueSeverity ?? 'warning',\n code: 'migration.project-asset-command.local-glue',\n path: file.filePath,\n message: 'Project asset command glue detected; consider createPlayableProjectAssetCommandHandler and keep only project registration/placement policies local.',\n });\n }\n if (\n /\\bimportProjectionModel\\b/.test(content)\n && !/\\bcreateEditorSceneRuntimePreviewImportPlan\\b/.test(content)\n ) {\n diagnostics.push({\n severity: options.runtimePreviewProjectionSeverity ?? 'info',\n code: 'migration.runtime-preview.projection-plan-missing',\n path: file.filePath,\n message: 'Projection import logic is present without the SDK runtime preview import plan helper; verify asset URL and projection diagnostics during migration.',\n });\n }\n return diagnostics;\n}\n\nfunction collectDeprecatedAuthoredFields(filePath: string, content: string): string[] {\n if (/\\.json$/i.test(filePath)) {\n try {\n const value = JSON.parse(content) as unknown;\n const fields = new Set<string>();\n collectDeprecatedJsonFields(value, [], fields);\n return [...fields];\n } catch {\n return [];\n }\n }\n // Authored scene schemas are structured JSON. TypeScript project code is\n // covered by import/runtime checks and must not be guessed through regexes.\n return [];\n}\n\nfunction collectDeprecatedJsonFields(value: unknown, path: string[], fields: Set<string>): void {\n if (Array.isArray(value)) {\n value.forEach(entry => collectDeprecatedJsonFields(entry, path, fields));\n return;\n }\n if (!isRecord(value)) return;\n for (const field of ['shadowMode', 'sceneInstances', 'modelRegistry', 'childMaterialBindings', 'childMaterials', 'useBlobShadow', 'blobSettings']) {\n if (field in value) fields.add(field);\n }\n if (path[path.length - 1] === 'globalVolume') {\n for (const field of ['samples', 'camera', 'lights']) {\n if (field in value) fields.add(`globalVolume.${field}`);\n }\n }\n if (value.kind === 'box' && path.slice(-2).join('.') === 'marker.geometry') {\n for (const field of ['coordinateSpace', 'center', 'size', 'rotation']) if (field in value) fields.add(`marker.geometry.${field}`);\n }\n if (path.slice(-3).join('.') === 'shadows.staticProjected.bake') {\n for (const field of ['resolution', 'maxSize']) if (field in value) fields.add(`shadows.staticProjected.bake.${field}`);\n }\n if (path.slice(-2).join('.') === 'globalVolume.environment') {\n for (const field of ['textureAssetId', 'textureUrl', 'intensity']) if (field in value) fields.add(`globalVolume.environment.${field}`);\n }\n for (const [key, child] of Object.entries(value)) {\n if (key !== 'metadata') collectDeprecatedJsonFields(child, [...path, key], fields);\n }\n}\n\nfunction inspectFileImports(\n file: PlayableEditorImportSnapshotFile,\n forbiddenPackages: readonly string[],\n forbiddenPackageSeverity: PlayableEditorDoctorDiagnostic['severity'],\n): PlayableEditorDoctorDiagnostic[] {\n const diagnostics: PlayableEditorDoctorDiagnostic[] = [];\n let imports: string[];\n try {\n imports = readImportSpecifiers(file.content, file.filePath);\n } catch (error) {\n return [{\n severity: 'error',\n code: 'import.boundary.parse-error',\n path: file.filePath,\n message: `Unable to parse project module for import-boundary validation: ${error instanceof Error ? error.message : String(error)}`,\n }];\n }\n for (const specifier of imports) {\n if (specifier === PLAYABLE_RUNTIME_SUBPATH || specifier === PLAYABLE_RUNTIME_BABYLON_SUBPATH) continue;\n if (specifier === '@fps-games/editor' && isPublicEditorProductEntryFile(file.filePath)) continue;\n if (specifier === '@fps-games/editor/vite' && (isViteConfigFile(file.filePath) || isProjectScriptFile(file.filePath))) continue;\n if (specifier.startsWith(PLAYABLE_SDK_SUBPATH_PREFIX)) {\n const isAllowedUpgradeDoctorSubpath =\n specifier === PLAYABLE_SDK_UPGRADE_DOCTOR_SUBPATH\n && isProjectScriptFile(file.filePath);\n const isAllowedViteSubpath =\n specifier === PLAYABLE_SDK_VITE_SUBPATH\n && (\n isViteConfigFile(file.filePath)\n || isProjectScriptFile(file.filePath)\n );\n if (isAllowedUpgradeDoctorSubpath || isAllowedViteSubpath) {\n continue;\n }\n diagnostics.push({\n severity: 'error',\n code: 'import.boundary.playable-sdk-subpath',\n source: specifier,\n path: file.filePath,\n message: 'Import @fps-games/editor/playable-sdk only through the public aggregate subpath.',\n });\n continue;\n }\n const directEditorPackage = findMatchingForbiddenPackage(specifier, DIRECT_EDITOR_IMPORTS);\n if (directEditorPackage && specifier !== '@fps-games/editor/playable-sdk') {\n diagnostics.push({\n severity: 'error',\n code: directEditorPackage === '@fps-games/editor'\n ? 'import.boundary.direct-editor'\n : 'import.boundary.direct-editor-core',\n source: specifier,\n path: file.filePath,\n message: `New playable editor integration code should import stable contracts from @fps-games/editor/playable-sdk instead of ${specifier}.`,\n });\n continue;\n }\n const forbiddenPackage = findMatchingForbiddenPackage(specifier, forbiddenPackages);\n if (forbiddenPackage) {\n diagnostics.push({\n severity: forbiddenPackageSeverity,\n code: 'import.boundary.forbidden-package',\n source: specifier,\n path: file.filePath,\n details: { packageName: forbiddenPackage },\n message: `Import ${forbiddenPackage} directly couples to editor internals. Consider using @fps-games/editor/playable-sdk facade exports instead.`,\n });\n }\n }\n return diagnostics;\n}\n\nfunction isViteConfigFile(filePath: string): boolean {\n const normalized = normalizeFilePath(filePath);\n return !normalized.includes('/') && /^vite\\.config\\.(?:[cm]?[jt]s)$/.test(normalized);\n}\n\nfunction isPublicEditorProductEntryFile(filePath: string): boolean {\n if (isFpsConfigFile(filePath) || isProjectScriptFile(filePath)) return true;\n const normalized = normalizeFilePath(filePath);\n return /(?:^|\\/)src\\/(?:editor-features|services\\/fps-game-editor)\\/plugin-host\\.(?:[cm]?[jt]s)$/.test(normalized);\n}\n\nfunction isFpsConfigFile(filePath: string): boolean {\n const normalized = normalizeFilePath(filePath);\n return /(?:^|\\/)fps\\.config\\.(?:[cm]?[jt]s)$/.test(normalized);\n}\n\nfunction normalizeForbiddenPackages(packages: readonly string[]): string[] {\n const normalized: string[] = [];\n for (const packageName of packages) {\n const trimmed = packageName.trim();\n if (trimmed.length > 0 && !normalized.includes(trimmed)) {\n normalized.push(trimmed);\n }\n }\n return normalized;\n}\n\nfunction findMatchingForbiddenPackage(specifier: string, forbiddenPackages: readonly string[]): string | undefined {\n return forbiddenPackages.find(packageName => specifier === packageName || specifier.startsWith(`${packageName}/`));\n}\n\nfunction readImportSpecifiers(content: string, filePath: string): string[] {\n const supportsJsx = /\\.[cm]?[jt]sx$/i.test(filePath);\n const root = parse(content, {\n sourceType: 'unambiguous',\n allowAwaitOutsideFunction: true,\n allowReturnOutsideFunction: true,\n plugins: [\n 'typescript',\n ...(supportsJsx ? ['jsx' as const] : []),\n 'decorators',\n 'importAttributes',\n ],\n });\n const specifiers: string[] = [];\n visitBabelNode(root, (node) => {\n const type = readBabelNodeType(node);\n if (type === 'ImportDeclaration' || type === 'ExportNamedDeclaration' || type === 'ExportAllDeclaration') {\n const source = readBabelStaticString(node.source);\n if (source) specifiers.push(source);\n return;\n }\n if (type === 'ImportExpression') {\n const source = readBabelStaticString(node.source);\n if (source) specifiers.push(source);\n return;\n }\n if (type === 'TSExternalModuleReference') {\n const source = readBabelStaticString(node.expression);\n if (source) specifiers.push(source);\n return;\n }\n if (type === 'TSImportType') {\n const source = readBabelStaticString(node.argument);\n if (source) specifiers.push(source);\n return;\n }\n if (type !== 'CallExpression' && type !== 'OptionalCallExpression') return;\n if (!isBabelStaticModuleLoader(node.callee)) return;\n const source = readBabelStaticString(Array.isArray(node.arguments) ? node.arguments[0] : null);\n if (source) specifiers.push(source);\n });\n return specifiers;\n}\n\nfunction visitBabelNode(value: unknown, visit: (node: Record<string, unknown>) => void): void {\n if (Array.isArray(value)) {\n for (const entry of value) visitBabelNode(entry, visit);\n return;\n }\n if (!isRecord(value) || typeof value.type !== 'string') return;\n visit(value);\n for (const [key, child] of Object.entries(value)) {\n if (key === 'loc' || key === 'start' || key === 'end' || key === 'extra' || key === 'comments' || key === 'tokens') continue;\n visitBabelNode(child, visit);\n }\n}\n\nfunction readBabelNodeType(value: unknown): string | null {\n return isRecord(value) && typeof value.type === 'string' ? value.type : null;\n}\n\nfunction readBabelStaticString(value: unknown): string | null {\n if (!isRecord(value)) return null;\n if (value.type === 'StringLiteral' && typeof value.value === 'string') return value.value;\n if (value.type === 'TemplateLiteral' && Array.isArray(value.expressions) && value.expressions.length === 0) {\n const quasi = Array.isArray(value.quasis) ? value.quasis[0] : null;\n const cooked = isRecord(quasi) && isRecord(quasi.value) ? quasi.value.cooked : null;\n return typeof cooked === 'string' ? cooked : null;\n }\n return null;\n}\n\nfunction isBabelStaticModuleLoader(value: unknown): boolean {\n if (!isRecord(value)) return false;\n if (value.type === 'Import') return true;\n if (value.type === 'Identifier') return value.name === 'require';\n if (value.type !== 'MemberExpression' && value.type !== 'OptionalMemberExpression') return false;\n const objectName = readBabelIdentifierName(value.object);\n const propertyName = value.computed\n ? readBabelStaticString(value.property)\n : readBabelIdentifierName(value.property);\n return (objectName === 'module' && propertyName === 'require')\n || (objectName === 'require' && propertyName === 'resolve');\n}\n\nfunction readBabelIdentifierName(value: unknown): string | null {\n return isRecord(value) && value.type === 'Identifier' && typeof value.name === 'string' ? value.name : null;\n}\n\nfunction isUsablePackageExportTarget(value: unknown): boolean {\n if (typeof value === 'string') {\n if (!/^\\.\\/.+\\.(?:[cm]?js|json|node)$/.test(value)) return false;\n return value.slice(2).split('/').every(isUsablePackageTargetSegment);\n }\n if (Array.isArray(value)) return value.some(isUsablePackageExportTarget);\n if (!isRecord(value)) return false;\n const entries = Object.entries(value);\n if (entries.some(([condition]) => !/^[A-Za-z][A-Za-z0-9_-]*$/.test(condition))) return false;\n return entries.some(([condition, target]) => condition !== 'types' && isUsablePackageExportTarget(target));\n}\n\nfunction isUsableNodePackageExportTarget(value: unknown): boolean {\n if (typeof value === 'string') return isUsablePackageExportTarget(value);\n if (Array.isArray(value)) return value.some(isUsableNodePackageExportTarget);\n if (!isRecord(value)) return false;\n const entries = Object.entries(value);\n if (entries.some(([condition]) => !/^[A-Za-z][A-Za-z0-9_-]*$/.test(condition))) return false;\n for (const [condition, target] of entries) {\n if (condition !== 'node' && condition !== 'import' && condition !== 'default') continue;\n return isUsableNodePackageExportTarget(target);\n }\n return false;\n}\n\nfunction isUsablePackageTargetSegment(segment: string): boolean {\n if (!segment) return false;\n try {\n const decoded = decodeURIComponent(segment);\n return decoded !== '.'\n && decoded !== '..'\n && decoded.toLowerCase() !== 'node_modules'\n && !decoded.includes('/')\n && !decoded.includes('\\\\');\n } catch {\n return false;\n }\n}\n\nfunction isProjectScriptFile(filePath: string): boolean {\n return normalizeFilePath(filePath).startsWith('scripts/');\n}\n\nfunction normalizeFilePath(filePath: string): string {\n return filePath.replace(/\\\\/g, '/').replace(/\\/+/g, '/').replace(/^\\.\\//, '');\n}\n\nfunction isExactDependencyVersion(value: string): boolean {\n return /^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z]+(?:\\.[0-9A-Za-z]+)*)?$/.test(value.trim());\n}\n\nfunction readString(value: unknown): string | undefined {\n return typeof value === 'string' && value.trim().length > 0 ? value : undefined;\n}\n\nfunction readSeverity(value: unknown): PlayableEditorDoctorDiagnostic['severity'] | undefined {\n return value === 'error' || value === 'warning' || value === 'info' ? value : undefined;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction isImportSnapshot(value: PlayableEditorImportSnapshot | readonly PlayableEditorImportSnapshotFile[]): value is PlayableEditorImportSnapshot {\n return isRecord(value) && Array.isArray(value.files);\n}\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ViteDevServer } from 'vite';
|
|
2
|
+
import { type ShadowMapExperimentConfig } from '@fps-games/playable-rendering';
|
|
2
3
|
export interface PlayableViteEditorSceneLoadServices {
|
|
3
4
|
ensureAuthoringSource(editorScene: Record<string, unknown>): Record<string, unknown>;
|
|
4
5
|
detectRuntimeInputDrift(editorScene: Record<string, unknown>, runtimeScene: unknown): unknown;
|
|
@@ -9,16 +10,18 @@ export interface PlayableViteEditorSceneSaveServices extends PlayableViteEditorS
|
|
|
9
10
|
assertEditorSceneDocument(value: unknown): void;
|
|
10
11
|
assertEditorSceneMaterialAssetIntegrity(editorScene: Record<string, unknown>): void;
|
|
11
12
|
bumpEditorSceneAuthoringSourceRevision(editorScene: Record<string, unknown>): Record<string, unknown>;
|
|
12
|
-
compileEditorSceneDocumentToSceneConfig(editorScene: Record<string, unknown>, previousSceneConfig: Record<string, unknown
|
|
13
|
+
compileEditorSceneDocumentToSceneConfig(editorScene: Record<string, unknown>, previousSceneConfig: Record<string, unknown>, options?: {
|
|
14
|
+
shadowMapExperimentConfig?: ShadowMapExperimentConfig | null;
|
|
15
|
+
}): {
|
|
13
16
|
sceneConfig: Record<string, unknown>;
|
|
14
17
|
summary: Record<string, unknown>;
|
|
15
18
|
};
|
|
16
|
-
assertRuntimeSceneConfig(sceneConfig: Record<string, unknown>): void;
|
|
17
19
|
}
|
|
18
20
|
export interface PlayableViteEditorScenePaths {
|
|
19
21
|
editorScenePath: string;
|
|
20
22
|
scenePath: string;
|
|
21
23
|
renderingConfigPath?: string;
|
|
24
|
+
shadowsConfigPath?: string;
|
|
22
25
|
}
|
|
23
26
|
export interface PlayableViteEditorSceneWorkflowOptions {
|
|
24
27
|
projectRoot: string;
|
package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-scene-workflow.d.ts","sourceRoot":"","sources":["../../src/vite/editor-scene-workflow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"editor-scene-workflow.d.ts","sourceRoot":"","sources":["../../src/vite/editor-scene-workflow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAuB1C,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,+BAA+B,CAAC;AAIvC,MAAM,W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