@fps-games/editor 0.2.0-beta.4 → 0.2.1-beta.2
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 +19 -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/material-preview.d.ts +22 -0
- package/dist/internal/material-preview.d.ts.map +1 -0
- package/dist/internal/material-preview.js +186 -0
- package/dist/internal/material-preview.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/internal/project-model-preview.d.ts +4 -0
- package/dist/internal/project-model-preview.d.ts.map +1 -0
- package/dist/internal/project-model-preview.js +359 -0
- package/dist/internal/project-model-preview.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 +17 -6
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js +47 -0
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +353 -35
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +4115 -1313
- 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 +19 -0
- package/dist/local-editor-tools.d.ts.map +1 -0
- package/dist/local-editor-tools.js +56 -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 +55 -29
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +50 -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 +180 -17
- 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 +57 -20
- 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/marker-overlay.js +24 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.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 +26 -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 +396 -363
- 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/scene-view-spatial-overlay-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-controller.js +85 -22
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-spatial-overlay-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 +87 -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 +1746 -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/transform-gizmo-controller.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +249 -15
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.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 +13 -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 +9 -9
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts +35 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js +136 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-browser-continuity.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts +46 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js +283 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-asset-filesystem.js.map +1 -0
- 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-preview-cleanup-registry.d.ts +12 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js +67 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-preview-cleanup-registry.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts +6 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-open.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts +7 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-file-preview.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts +9 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js +219 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-project-media-thumbnail-cache.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js +42 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-tool-presentation.js.map +1 -0
- 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 +8 -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-console.d.ts +27 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js +288 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-console.js.map +1 -0
- 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 +34 -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 +30 -8
- 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 +911 -698
- 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 +10 -37
- 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 +29 -105
- 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 +114 -343
- 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 +13 -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 +120 -134
- 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 +6 -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 +2019 -861
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts +13 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js +15 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-viewport-orientation.js.map +1 -0
- 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 +113 -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 +615 -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/dist/viewport-tools.d.ts +11 -2
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js +12 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.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.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +63 -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/asset-library/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js +15 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts +6 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.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 +4 -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 +7 -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 +9 -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 +16 -1
- 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/project-files/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js +86 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/protocol.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js +76 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/support.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts +34 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/project-files/types.js.map +1 -0
- 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 +4 -0
- 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 +54 -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/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.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 +1 -0
- 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 +101 -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/project-file-handle.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js +101 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-file-handle.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts +23 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js +180 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-files.js.map +1 -0
- 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/agent.d.ts +23 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.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 +746 -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":"registry.js","sourceRoot":"","sources":["../../src/asset-database/registry.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,EAChC,mCAAmC,EACnC,kCAAkC,GACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,wCAAwC,GACzC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kCAAkC,GACnC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,kCAAkC,EAClC,mCAAmC,EACnC,wCAAwC,GACzC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AAgFhF,MAAM,OAAO,gCAAiC,SAAQ,KAAK;IAGzD,YAAY,OAAe,EAAE,UAAmC,EAAE;QAChE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,kCAAkC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAED,MAAM,UAAU,oCAAoC,CAAC,IAAuB;IAC1E,MAAM,IAAI,GAAoC,EAAE,CAAC;IACjD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,IAAI,KAAK,cAAc,EAAE,CAAC;YAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YACvB,SAAS;QACX,CAAC;QACD,I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AAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAChE,CAAC,CAAC,KAAkB;QACpB,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,KAAK,YAAY,KAAK,IAAI,MAAM,IAAI,KAAK,CAAC;AACnD,CAAC","sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\nimport {\n createPlayableEditorAssetId,\n getPlayableEditorAssetKindExtensions,\n normalizePlayableEditorAssetCodeKey,\n normalizePlayableEditorAssetDisplayName,\n normalizePlayableEditorAssetKind,\n PLAYABLE_EDITOR_ASSET_CATALOG_KINDS,\n PLAYABLE_EDITOR_DEFAULT_EXTENSIONS,\n} from '@fps-games/playable-assets';\nimport {\n generatePlayableEditorAssetCatalogModule,\n} from './generated-module';\nimport {\n resolvePlayableEditorAssetMetadata,\n} from './metadata';\nimport {\n readPlayableEditorAssetWarmupCount,\n readPlayableEditorManagedAssetScale,\n readPlayableEditorSceneAssetMaterialMode,\n} from './manager-core';\nimport { normalizePlayablePortableAssetPath } from '@fps-games/playable-assets';\nimport type {\n PlayableEditorAssetKind,\n PlayableEditorAssetRegistryEntry,\n} from './types';\n\ntype AnyRecord = Record<string, any>;\n\nexport interface PlayableEditorAssetRegistryArgs {\n payload?: string;\n unregister?: boolean;\n assetId?: string;\n guid?: string;\n deleteFile?: boolean;\n force?: boolean;\n help?: boolean;\n}\n\nexport interface PlayableEditorAssetRegistryErrorCodes {\n [key: string]: string | undefined;\n}\n\nexport interface PlayableEditorAssetMetadataInput {\n existing?: PlayableEditorAssetRegistryEntry | null;\n existingMetadata?: Record<string, unknown> | null;\n payload: AnyRecord;\n payloadMetadata?: Record<string, unknown> | null;\n sourcePath: string;\n targetPath: string;\n kind: PlayableEditorAssetKind;\n guid: string;\n assetId: string;\n}\n\nexport interface PlayableEditorAssetRegistryConfig {\n cwd: string;\n assetsDir?: string;\n assetRootDir?: string;\n importedDir?: string;\n generatedDir: string;\n manifestPath: string;\n registryPath: string;\n scenePath?: string;\n rulesPath?: string;\n supportedExtension?: string | readonly string[];\n supportedExtensions?: readonly string[];\n unsupportedSourceErrorCode?: string;\n commands?: {\n register?: string;\n unregister?: string;\n };\n loadRules?: () => AnyRecord | Promise<AnyRecord>;\n relativeImportedPath: ((kind: PlayableEditorAssetKind, fileName: string) => string)\n | ((input: { kind: PlayableEditorAssetKind; fileName: string }) => string);\n publicUrlForCatalogRelativePath?: (relativePath: string) => string;\n publicUrlForRelativePath?: (relativePath: string) => string;\n resolveAssetMetadata?: (\n input: PlayableEditorAssetMetadataInput,\n ) => Record<string, unknown> | null | Promise<Record<string, unknown> | null>;\n}\n\nexport interface PlayableEditorAssetRegistryResult {\n ok: true;\n guid: string;\n assetId: string;\n kind: PlayableEditorAssetKind;\n contentHash?: string;\n external?: Record<string, string>;\n displayName?: string;\n originalFileName?: string;\n assetUrl?: string;\n targetPath: string | null;\n manifestPath: string;\n registryPath: string;\n removed?: boolean;\n deleteFile?: boolean;\n force?: boolean;\n deletedFile?: boolean;\n}\n\nexport class PlayableEditorAssetRegistryError extends Error {\n details: Record<string, unknown>;\n\n constructor(message: string, details: Record<string, unknown> = {}) {\n super(message);\n this.name = 'PlayableEditorAssetRegistryError';\n this.details = details;\n }\n}\n\nexport function parsePlayableEditorAssetRegistryArgs(argv: readonly string[]): PlayableEditorAssetRegistryArgs {\n const args: PlayableEditorAssetRegistryArgs = {};\n for (let index = 0; index < argv.length; index += 1) {\n const item = argv[index];\n if (item === '--unregister') {\n args.unregister = true;\n continue;\n }\n if (item === '--payload') {\n args.payload = argv[index + 1];\n index += 1;\n continue;\n }\n if (item === '--asset-id') {\n args.assetId = argv[index + 1];\n index += 1;\n continue;\n }\n if (item === '--guid') {\n args.guid = argv[index + 1];\n index += 1;\n continue;\n }\n if (item === '--delete-file') {\n args.deleteFile = true;\n continue;\n }\n if (item === '--keep-file') {\n args.deleteFile = false;\n continue;\n }\n if (item === '--force') {\n args.force = true;\n continue;\n }\n if (item === '--help' || item === '-h') {\n args.help = true;\n }\n }\n return args;\n}\n\nexport async function runPlayableEditorAssetRegistryCli(\n config: PlayableEditorAssetRegistryConfig,\n argv = process.argv.slice(2),\n): Promise<void> {\n const args = parsePlayableEditorAssetRegistryArgs(argv);\n const rules = await loadPlayableEditorAssetRegistryRules(config);\n const errorCodes = readRecord(rules.errorCodes);\n const fail = (message: string, details: Record<string, unknown> = {}) => {\n const error = { ok: false, error: message, ...details };\n process.stderr.write(`${JSON.stringify(error, null, 2)}\\n`);\n process.exit(1);\n };\n\n try {\n if (args.help) {\n process.stdout.write([\n 'Usage:',\n ` ${config.commands?.register ?? 'npm run asset:register'} -- --payload /path/to/payload.json`,\n ` ${config.commands?.unregister ?? 'npm run asset:unregister'} -- --payload /path/to/payload.json`,\n ` ${config.commands?.unregister ?? 'npm run asset:unregister'} -- --asset-id asset_xxx [--keep-file] [--force]`,\n ` ${config.commands?.unregister ?? 'npm run asset:unregister'} -- --guid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx [--keep-file] [--force]`,\n '',\n ].join('\\n'));\n return;\n }\n if (args.unregister) {\n const result = await unregisterPlayableEditorAsset(config, args, errorCodes);\n process.stdout.write(`${JSON.stringify(result)}\\n`);\n return;\n }\n const result = await registerPlayableEditorAsset(config, args, errorCodes);\n process.stdout.write(`${JSON.stringify(result)}\\n`);\n } catch (error) {\n if (error instanceof PlayableEditorAssetRegistryError) {\n fail(error.message, error.details);\n }\n fail('asset_register_failed', {\n message: error instanceof Error ? error.message : String(error),\n });\n }\n}\n\nexport async function registerPlayableEditorAsset(\n config: PlayableEditorAssetRegistryConfig,\n args: PlayableEditorAssetRegistryArgs,\n errorCodes: PlayableEditorAssetRegistryErrorCodes = {},\n): Promise<PlayableEditorAssetRegistryResult> {\n if (!args.payload) throw new PlayableEditorAssetRegistryError('missing_payload_arg');\n const payload = await loadPayload(config, args);\n const sourcePath = path.resolve(config.cwd, String(payload.sourcePath ?? payload.assetPath ?? ''));\n const sourceExtension = resolveSourceExtension(config, sourcePath);\n if (!sourceExtension) {\n throw new PlayableEditorAssetRegistryError(\n config.unsupportedSourceErrorCode ?? errorCodes.sourceMustBeSupportedAsset ?? 'source_must_be_supported_asset',\n {\n sourcePath,\n supportedExtensions: normalizeSupportedExtensions(config),\n },\n );\n }\n try {\n await fs.access(sourcePath);\n } catch {\n throw new PlayableEditorAssetRegistryError(errorCodes.sourceFileNotFound ?? 'source_file_not_found', { sourcePath });\n }\n\n const payloadExternal = readPayloadExternalRef(payload);\n\n await fs.mkdir(config.generatedDir, { recursive: true });\n\n const manifest = await loadPlayableEditorAssetManifest(config);\n const audit = await getFileAudit(sourcePath);\n const kind = normalizePlayableEditorAssetKind(payload.kind ?? payload.assetKind ?? payload.assetType, sourcePath);\n if (!kind) {\n throw new PlayableEditorAssetRegistryError('unsupported_asset_kind', { sourcePath, assetType: payload.assetType });\n }\n assertAssetKindExtension(kind, sourcePath, 'source_path');\n\n const existing = findReusableCatalogEntry(manifest, payload, payloadExternal, sourcePath, audit, kind, config);\n const originalFileName = readOptionalString(payload.assetName)\n ?? existing?.originalFileName\n ?? path.basename(sourcePath);\n const requestedGuid = readOptionalString(payload.guid);\n if (existing && requestedGuid && existing.guid !== requestedGuid) {\n throw new PlayableEditorAssetRegistryError('payload_guid_must_match_existing_asset', {\n guid: requestedGuid,\n existingGuid: existing.guid,\n existingAssetId: existing.assetId,\n });\n }\n const guid = existing?.guid ?? requestedGuid ?? crypto.randomUUID();\n const requestedProjectAssetId = readOptionalString(payload.projectAssetId);\n const assetId = createPlayableEditorAssetId(kind, guid);\n if (existing?.assetId && existing.assetId !== assetId) {\n throw new PlayableEditorAssetRegistryError('manifest_asset_id_must_match_guid', {\n guid,\n assetId: existing.assetId,\n expectedAssetId: assetId,\n });\n }\n if (requestedProjectAssetId && requestedProjectAssetId !== assetId) {\n throw new PlayableEditorAssetRegistryError('project_asset_id_must_match_guid', {\n guid,\n projectAssetId: requestedProjectAssetId,\n expectedAssetId: assetId,\n });\n }\n const targetFileName = `${assetId}${sourceExtension}`;\n const targetRelativePath = resolveTargetRelativePath(config, {\n existing,\n sourcePath,\n kind,\n targetFileName,\n });\n const targetPath = resolveCatalogAssetPath(config, targetRelativePath, kind, 'target_path');\n const now = new Date().toISOString();\n const mergedExternal = normalizeExternalRef({\n ...(normalizeExternalRef(existing?.external) ?? {}),\n ...(payloadExternal ?? {}),\n });\n\n let copiedNewTarget = false;\n let registeredEntry: PlayableEditorAssetRegistryEntry | null = null;\n try {\n await fs.mkdir(path.dirname(targetPath), { recursive: true });\n const targetMatchesSource = isSamePath(sourcePath, targetPath);\n const targetExists = targetMatchesSource || await fileExists(targetPath);\n const targetNeedsRefresh = !existing || existing.contentHash !== audit.contentHash || !targetExists;\n const shouldCopy = !targetMatchesSource && targetNeedsRefresh;\n if (shouldCopy) {\n await fs.copyFile(sourcePath, targetPath);\n copiedNewTarget = !existing;\n }\n\n const nextEntry = normalizeManifestEntry({\n ...(existing ?? {}),\n guid,\n assetId,\n kind,\n displayName: normalizePlayableEditorAssetDisplayName(\n readOptionalString(payload.displayName) ?? existing?.displayName,\n originalFileName,\n ),\n relativePath: targetRelativePath,\n originalFileName,\n codeKey: normalizePlayableEditorAssetCodeKey(\n readOptionalString(payload.codeKey) ?? readOptionalString(payload.assetName) ?? existing?.codeKey,\n originalFileName,\n ),\n ...(readOptionalString(payload.category) ? { category: readOptionalString(payload.category) } : {}),\n placeable: typeof payload.placeable === 'boolean'\n ? payload.placeable\n : existing?.placeable ?? (kind === 'model' || kind === 'texture'),\n ...(readPlayableEditorAssetWarmupCount(payload.warmupCount) != null\n ? { warmupCount: readPlayableEditorAssetWarmupCount(payload.warmupCount) }\n : {}),\n ...(typeof payload.singleton === 'boolean' ? { singleton: payload.singleton } : {}),\n ...(readPlayableEditorSceneAssetMaterialMode(payload.materialMode)\n ? { materialMode: readPlayableEditorSceneAssetMaterialMode(payload.materialMode) }\n : {}),\n ...(readPlayableEditorManagedAssetScale(payload.scale)\n ? { defaults: { transform: { scale: readPlayableEditorManagedAssetScale(payload.scale) } } }\n : {}),\n contentHash: audit.contentHash,\n byteSize: audit.byteSize,\n external: mergedExternal,\n metadata: await resolveManifestEntryMetadata(config, {\n existing,\n payload,\n sourcePath,\n targetPath,\n kind,\n guid,\n assetId,\n }),\n createdAt: existing?.createdAt ?? now,\n updatedAt: targetNeedsRefresh ? now : (existing?.updatedAt ?? now),\n });\n if (!nextEntry) throw new PlayableEditorAssetRegistryError('invalid_manifest_entry', { assetId, guid });\n registeredEntry = nextEntry;\n\n const existingIndex = manifest.findIndex((entry) => entry.guid === guid || entry.assetId === assetId);\n if (existingIndex >= 0) manifest[existingIndex] = nextEntry;\n else manifest.push(nextEntry);\n manifest.sort(compareCatalogEntries);\n\n await writeGeneratedRegistry(config, manifest);\n } catch (error) {\n if (copiedNewTarget) {\n await fs.rm(targetPath, { force: true }).catch(() => {});\n }\n throw error;\n }\n\n return {\n ok: true,\n guid,\n assetId,\n kind,\n ...(registeredEntry?.contentHash ? { contentHash: registeredEntry.contentHash } : {}),\n ...(registeredEntry?.external ? { external: registeredEntry.external as Record<string, string> } : {}),\n displayName: registeredEntry?.displayName,\n originalFileName: registeredEntry?.originalFileName,\n assetUrl: publicUrlForCatalogRelativePath(config, targetRelativePath, kind),\n targetPath,\n manifestPath: config.manifestPath,\n registryPath: config.registryPath,\n };\n}\n\nexport async function unregisterPlayableEditorAsset(\n config: PlayableEditorAssetRegistryConfig,\n args: PlayableEditorAssetRegistryArgs,\n errorCodes: PlayableEditorAssetRegistryErrorCodes = {},\n): Promise<PlayableEditorAssetRegistryResult> {\n const payload = await loadPayload(config, args);\n const assetId = readOptionalString(args.assetId ?? payload?.assetId);\n const guid = readOptionalString(args.guid ?? payload?.guid);\n if (!assetId && !guid) {\n throw new PlayableEditorAssetRegistryError(errorCodes.missingAssetId ?? 'missing_asset_id');\n }\n const deleteFile = resolveDeleteFile(args, payload);\n const force = resolveForce(args, payload);\n\n await fs.mkdir(config.generatedDir, { recursive: true });\n const manifest = await loadPlayableEditorAssetManifest(config);\n const entryIndex = manifest.findIndex((entry) => (assetId && entry.assetId === assetId) || (guid && entry.guid === guid));\n if (entryIndex < 0) {\n throw new PlayableEditorAssetRegistryError(errorCodes.manifestEntryNotFound ?? 'manifest_entry_not_found', {\n assetId,\n guid,\n manifestPath: config.manifestPath,\n });\n }\n\n const entry = manifest[entryIndex];\n if (!entry) throw new PlayableEditorAssetRegistryError('manifest_entry_not_found', { assetId, guid });\n await assertAssetCanBeUnregistered(config, entry.assetId, force, errorCodes);\n manifest.splice(entryIndex, 1);\n\n let deletedFile = false;\n let targetPath: string | null = null;\n if (deleteFile) {\n targetPath = resolveCatalogAssetPath(config, entry.relativePath, entry.kind, 'unregister_target_path');\n await fs.rm(targetPath, { force: true });\n deletedFile = true;\n }\n\n await writeGeneratedRegistry(config, manifest);\n return {\n ok: true,\n guid: entry.guid,\n assetId: entry.assetId,\n kind: entry.kind,\n removed: true,\n deleteFile,\n force,\n deletedFile,\n targetPath,\n manifestPath: config.manifestPath,\n registryPath: config.registryPath,\n };\n}\n\nexport async function loadPlayableEditorAssetManifest(\n config: Pick<PlayableEditorAssetRegistryConfig, 'manifestPath'>,\n): Promise<PlayableEditorAssetRegistryEntry[]> {\n const rawEntries = await readJson<unknown>(config.manifestPath, []);\n if (!Array.isArray(rawEntries)) {\n throw new PlayableEditorAssetRegistryError('manifest_invalid_root', { manifestPath: config.manifestPath });\n }\n const entries = rawEntries.map((rawEntry, index) => {\n const entry = normalizeManifestEntry(rawEntry, true);\n if (!entry) {\n throw new PlayableEditorAssetRegistryError('manifest_invalid_entry', {\n index,\n manifestPath: config.manifestPath,\n });\n }\n return entry;\n });\n const assetIds = new Set<string>();\n const guids = new Set<string>();\n for (const entry of entries) {\n if (assetIds.has(entry.assetId)) {\n throw new PlayableEditorAssetRegistryError('manifest_duplicate_asset_id', { assetId: entry.assetId });\n }\n if (guids.has(entry.guid)) {\n throw new PlayableEditorAssetRegistryError('manifest_duplicate_guid', { guid: entry.guid });\n }\n assetIds.add(entry.assetId);\n guids.add(entry.guid);\n }\n return entries;\n}\n\nexport async function loadPlayableEditorAssetRegistryRules(config: PlayableEditorAssetRegistryConfig): Promise<AnyRecord> {\n if (config.loadRules) return config.loadRules();\n if (!config.rulesPath) return {};\n return readJson(config.rulesPath, {});\n}\n\nfunction normalizeExtensionList(value: unknown): string[] {\n const entries = Array.isArray(value) ? value : [value];\n return entries\n .filter((entry): entry is string => typeof entry === 'string' && Boolean(entry.trim()))\n .map((entry) => {\n const normalized = entry.trim().toLowerCase();\n return normalized.startsWith('.') ? normalized : `.${normalized}`;\n });\n}\n\nfunction normalizeSupportedExtensions(config: PlayableEditorAssetRegistryConfig): string[] {\n const extensions = normalizeExtensionList(config.supportedExtensions ?? config.supportedExtension);\n return extensions.length > 0 ? extensions : normalizeExtensionList(PLAYABLE_EDITOR_DEFAULT_EXTENSIONS);\n}\n\nfunction resolveSourceExtension(config: PlayableEditorAssetRegistryConfig, sourcePath: string): string | null {\n const lowerPath = sourcePath.toLowerCase();\n return normalizeSupportedExtensions(config).find((extension) => lowerPath.endsWith(extension)) ?? null;\n}\n\nfunction resolveTargetRelativePath(\n config: PlayableEditorAssetRegistryConfig,\n input: {\n existing?: PlayableEditorAssetRegistryEntry | null;\n sourcePath: string;\n kind: PlayableEditorAssetKind;\n targetFileName: string;\n },\n): string {\n if (input.existing?.relativePath) return input.existing.relativePath;\n return resolveReusableProjectAssetRelativePath(config, input.sourcePath, input.kind)\n ?? callRelativeImportedPath(config, input.kind, input.targetFileName);\n}\n\nfunction callRelativeImportedPath(\n config: PlayableEditorAssetRegistryConfig,\n kind: PlayableEditorAssetKind,\n fileName: string,\n): string {\n const fn = config.relativeImportedPath as ((...args: any[]) => string);\n return fn.length >= 2 ? fn(kind, fileName) : fn({ kind, fileName });\n}\n\nfunction resolveReusableProjectAssetRelativePath(\n config: PlayableEditorAssetRegistryConfig,\n sourcePath: string,\n kind: PlayableEditorAssetKind,\n): string | null {\n const assetRoot = config.assetRootDir ?? config.assetsDir;\n if (!assetRoot) return null;\n\n const absoluteSource = path.resolve(sourcePath);\n if (!isInsideOrSamePath(path.resolve(assetRoot), absoluteSource)) return null;\n if (isInsideOrSamePath(path.resolve(config.generatedDir), absoluteSource)) return null;\n assertAssetKindExtension(kind, absoluteSource, 'source_path');\n\n return path.relative(config.generatedDir, absoluteSource).split(path.sep).join('/');\n}\n\nfunction isInsideOrSamePath(parent: string, child: string): boolean {\n const relative = path.relative(parent, child);\n return relative === '' || (!relative.startsWith('..') && !path.isAbsolute(relative));\n}\n\nfunction isSamePath(left: string, right: string): boolean {\n return path.relative(path.resolve(left), path.resolve(right)) === '';\n}\n\nfunction assertInside(parent: string, child: string, label: string): void {\n const relative = path.relative(parent, child);\n if (relative.startsWith('..') || path.isAbsolute(relative)) {\n throw new PlayableEditorAssetRegistryError(`${label}_outside_allowed_directory`, { parent, child });\n }\n}\n\nfunction assertOutside(parent: string, child: string, label: string): void {\n const relative = path.relative(parent, child);\n if (!relative.startsWith('..') && !path.isAbsolute(relative)) {\n throw new PlayableEditorAssetRegistryError(`${label}_inside_forbidden_directory`, { parent, child });\n }\n}\n\nfunction resolveCatalogAssetPath(\n config: PlayableEditorAssetRegistryConfig,\n relativePath: string,\n kind: PlayableEditorAssetKind,\n label: string,\n): string {\n const targetPath = path.resolve(config.generatedDir, relativePath);\n const assetRoot = path.resolve(config.assetRootDir ?? config.assetsDir ?? config.importedDir ?? config.generatedDir);\n assertInside(assetRoot, targetPath, label);\n assertOutside(path.resolve(config.generatedDir), targetPath, label);\n assertAssetKindExtension(kind, targetPath, label);\n return targetPath;\n}\n\nfunction publicUrlForCatalogRelativePath(\n config: PlayableEditorAssetRegistryConfig,\n relativePath: string,\n kind: PlayableEditorAssetKind,\n): string {\n const targetPath = resolveCatalogAssetPath(config, relativePath, kind, 'asset_url_path');\n if (typeof config.publicUrlForCatalogRelativePath === 'function') {\n return config.publicUrlForCatalogRelativePath(relativePath);\n }\n if (typeof config.publicUrlForRelativePath === 'function') {\n return config.publicUrlForRelativePath(relativePath);\n }\n const relativeToCwd = path.relative(config.cwd, targetPath).split(path.sep).join('/');\n return `/${relativeToCwd}`;\n}\n\nfunction assertAssetKindExtension(kind: PlayableEditorAssetKind, filePath: string, label: string): void {\n const extension = path.extname(filePath).toLowerCase();\n const supportedExtensions = getPlayableEditorAssetKindExtensions(kind);\n if (supportedExtensions.includes(extension)) return;\n throw new PlayableEditorAssetRegistryError(`${label}_unsupported_extension`, {\n kind,\n filePath,\n extension,\n supportedExtensions,\n });\n}\n\nasync function readJson<T>(filePath: string, fallback: T): Promise<T> {\n try {\n return JSON.parse(await fs.readFile(filePath, 'utf8')) as T;\n } catch (error) {\n if (isNodeError(error) && error.code === 'ENOENT') return fallback;\n throw error;\n }\n}\n\nasync function loadPayload(\n config: PlayableEditorAssetRegistryConfig,\n args: Pick<PlayableEditorAssetRegistryArgs, 'payload'>,\n): Promise<AnyRecord> {\n if (!args.payload) return {};\n const payloadPath = path.resolve(config.cwd, args.payload);\n const payload = await readJson<unknown>(payloadPath, null);\n if (!payload || typeof payload !== 'object' || Array.isArray(payload)) {\n throw new PlayableEditorAssetRegistryError('invalid_payload_json', { payloadPath });\n }\n return payload as AnyRecord;\n}\n\nfunction normalizeManifestEntry(entry: unknown, strictPersistedEntry = false): PlayableEditorAssetRegistryEntry | null {\n if (!entry || typeof entry !== 'object' || Array.isArray(entry)) return null;\n const record = entry as AnyRecord;\n const readManifestString = strictPersistedEntry ? readStrictPersistedString : readOptionalString;\n const guid = readManifestString(record.guid);\n const assetId = readManifestString(record.assetId);\n const kindValue = readManifestString(record.kind);\n if (strictPersistedEntry && (!kindValue || 'assetKind' in record || 'assetType' in record)) return null;\n const kind = strictPersistedEntry\n ? PLAYABLE_EDITOR_ASSET_CATALOG_KINDS.includes(kindValue as PlayableEditorAssetKind)\n ? kindValue as PlayableEditorAssetKind\n : null\n : normalizePlayableEditorAssetKind(record.kind ?? record.assetKind ?? record.assetType, record.relativePath);\n const displayName = readManifestString(record.displayName);\n const relativePath = readManifestString(record.relativePath);\n if (!guid || !assetId || !kind || !displayName || !relativePath) return null;\n if (strictPersistedEntry && (!isOptionalStrictPersistedString(record, 'originalFileName')\n || !isOptionalStrictPersistedString(record, 'codeKey')\n || !isOptionalStrictPersistedString(record, 'category')\n || !isOptionalStrictPersistedString(record, 'materialMode')\n || !isOptionalStrictPersistedString(record, 'contentHash')\n || !isOptionalStrictPersistedString(record, 'createdAt')\n || !isOptionalStrictPersistedString(record, 'updatedAt')\n || ('placeable' in record && typeof record.placeable !== 'boolean')\n || ('warmupCount' in record && (!Number.isInteger(record.warmupCount) || record.warmupCount < 0))\n || ('singleton' in record && typeof record.singleton !== 'boolean')\n || ('defaults' in record && normalizeMetadata(record.defaults) == null)\n || ('byteSize' in record && (!Number.isFinite(record.byteSize) || record.byteSize < 0))\n || ('metadata' in record && normalizeMetadata(record.metadata) == null)\n || ('external' in record && !isStrictPersistedExternalRef(record.external)))) return null;\n const metadata = normalizeMetadata(record.metadata);\n const originalFileName = readManifestString(record.originalFileName);\n const codeKey = readManifestString(record.codeKey);\n const category = readManifestString(record.category);\n const materialMode = readManifestString(record.materialMode);\n const defaults = normalizeMetadata(record.defaults);\n const contentHash = readManifestString(record.contentHash);\n const external = normalizeExternalRef(record.external);\n const createdAt = readManifestString(record.createdAt);\n const updatedAt = readManifestString(record.updatedAt);\n return {\n guid,\n assetId,\n kind,\n displayName,\n relativePath,\n ...(originalFileName ? { originalFileName } : {}),\n ...(codeKey ? { codeKey } : {}),\n ...(category ? { category } : {}),\n ...(typeof record.placeable === 'boolean' ? { placeable: record.placeable } : {}),\n ...(typeof record.warmupCount === 'number' ? { warmupCount: record.warmupCount } : {}),\n ...(typeof record.singleton === 'boolean' ? { singleton: record.singleton } : {}),\n ...(materialMode ? { materialMode } : {}),\n ...(defaults ? { defaults } : {}),\n ...(contentHash ? { contentHash } : {}),\n ...(typeof record.byteSize === 'number' ? { byteSize: record.byteSize } : {}),\n ...(external ? { external } : {}),\n ...(metadata ? { metadata } : {}),\n ...(createdAt ? { createdAt } : {}),\n ...(updatedAt ? { updatedAt } : {}),\n };\n}\n\nfunction readStrictPersistedString(value: unknown): string | null {\n return typeof value === 'string' && value.length > 0 && value === value.trim() ? value : null;\n}\n\nfunction isOptionalStrictPersistedString(record: AnyRecord, key: string): boolean {\n return !(key in record) || readStrictPersistedString(record[key]) != null;\n}\n\nfunction isStrictPersistedExternalRef(value: unknown): boolean {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return false;\n const record = value as AnyRecord;\n const allowed = ['platformAssetId', 'assetPath', 'assetUrl'];\n const keys = Object.keys(record);\n return keys.length > 0\n && keys.every(key => allowed.includes(key) && readStrictPersistedString(record[key]) != null);\n}\n\nfunction normalizeExternalRef(value: unknown, rejectUnsafeAssetPath = false): Record<string, string> | null {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return null;\n const record = value as AnyRecord;\n const platformAssetId = readOptionalString(record.platformAssetId);\n let assetPath: string | undefined;\n try {\n assetPath = normalizePlayablePortableAssetPath(record.assetPath);\n if (rejectUnsafeAssetPath\n && Object.prototype.hasOwnProperty.call(record, 'assetPath')\n && !assetPath) {\n throw new Error('external_asset_path_must_be_portable');\n }\n } catch {\n if (rejectUnsafeAssetPath) {\n throw new PlayableEditorAssetRegistryError('external_asset_path_must_be_portable', {\n assetPath: readOptionalString(record.assetPath),\n });\n }\n }\n const assetUrl = readOptionalString(record.assetUrl);\n if (!platformAssetId && !assetPath && !assetUrl) return null;\n return {\n ...(platformAssetId ? { platformAssetId } : {}),\n ...(assetPath ? { assetPath } : {}),\n ...(assetUrl ? { assetUrl } : {}),\n };\n}\n\nfunction normalizeMetadata(value: unknown): Record<string, unknown> | null {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return null;\n return structuredClone(value) as Record<string, unknown>;\n}\n\nasync function resolveManifestEntryMetadata(\n config: PlayableEditorAssetRegistryConfig,\n context: Omit<PlayableEditorAssetMetadataInput, 'existingMetadata' | 'payloadMetadata'>,\n): Promise<Record<string, unknown> | null> {\n const payloadMetadata = normalizeMetadata(context.payload?.metadata);\n if (typeof config.resolveAssetMetadata === 'function') {\n const resolved = await config.resolveAssetMetadata({\n ...context,\n existingMetadata: normalizeMetadata(context.existing?.metadata),\n payloadMetadata,\n });\n const normalized = normalizeMetadata(resolved);\n if (normalized) return normalized;\n return null;\n }\n return resolvePlayableEditorAssetMetadata({\n kind: context.kind,\n sourcePath: context.sourcePath,\n existingMetadata: normalizeMetadata(context.existing?.metadata),\n payloadMetadata,\n guid: context.guid,\n assetId: context.assetId,\n cwd: config.cwd,\n assetsDir: config.assetsDir,\n });\n}\n\nfunction findReusableCatalogEntry(\n manifest: readonly PlayableEditorAssetRegistryEntry[],\n payload: AnyRecord,\n external: Record<string, string> | null,\n sourcePath: string,\n audit: { contentHash: string; byteSize: number },\n kind: PlayableEditorAssetKind,\n config: PlayableEditorAssetRegistryConfig,\n): PlayableEditorAssetRegistryEntry | null {\n const guid = readOptionalString(payload.guid);\n const assetId = readOptionalString(payload.projectAssetId);\n if (guid) {\n const byGuid = manifest.find((entry) => entry.guid === guid);\n if (byGuid) return byGuid;\n }\n if (assetId) {\n const byAssetId = manifest.find((entry) => entry.assetId === assetId);\n if (byAssetId) return byAssetId;\n }\n if (external?.platformAssetId) {\n const byPlatformId = manifest.find((entry) => entry.kind === kind && readExternalPlatformAssetId(entry.external) === external.platformAssetId);\n if (byPlatformId) return byPlatformId;\n }\n if (external?.assetPath) {\n const byAssetPath = manifest.find((entry) => entry.kind === kind && readExternalAssetPath(entry.external) === external.assetPath);\n if (byAssetPath) return byAssetPath;\n }\n const normalizedSource = path.resolve(sourcePath);\n const byCanonicalSourcePath = manifest.find((entry) => {\n if (entry.kind !== kind) return false;\n try {\n return path.resolve(resolveCatalogAssetPath(\n config,\n entry.relativePath,\n entry.kind,\n 'manifest_asset_path',\n )) === normalizedSource;\n } catch {\n return false;\n }\n });\n if (byCanonicalSourcePath) return byCanonicalSourcePath;\n if (audit.contentHash) {\n const byHash = manifest.find((entry) => entry.kind === kind && entry.contentHash === audit.contentHash);\n if (byHash) return byHash;\n }\n return null;\n}\n\nfunction readPayloadExternalRef(payload: AnyRecord): Record<string, string> | null {\n return normalizeExternalRef({\n ...(payload.external && typeof payload.external === 'object' && !Array.isArray(payload.external)\n ? payload.external\n : {}),\n platformAssetId: payload.external?.platformAssetId ?? payload.platformAssetId ?? payload.assetId,\n assetUrl: payload.external?.assetUrl ?? payload.assetUrl,\n }, true);\n}\n\nfunction readExternalPlatformAssetId(value: unknown): string | null {\n return readOptionalString(readRecord(value).platformAssetId);\n}\n\nfunction readExternalAssetPath(value: unknown): string | null {\n return readOptionalString(readRecord(value).assetPath);\n}\n\nfunction compareCatalogEntries(\n a: PlayableEditorAssetRegistryEntry,\n b: PlayableEditorAssetRegistryEntry,\n): number {\n return a.kind.localeCompare(b.kind)\n || a.displayName.localeCompare(b.displayName)\n || a.assetId.localeCompare(b.assetId);\n}\n\nasync function atomicWrite(filePath: string, content: string): Promise<boolean> {\n try {\n const previous = await fs.readFile(filePath, 'utf8');\n if (previous === content) return false;\n } catch (error) {\n if (!isNodeError(error) || error.code !== 'ENOENT') throw error;\n }\n const tmpPath = `${filePath}.tmp-${process.pid}-${Date.now()}`;\n await fs.writeFile(tmpPath, content);\n await fs.rename(tmpPath, filePath);\n return true;\n}\n\nasync function getFileAudit(filePath: string): Promise<{ contentHash: string; byteSize: number }> {\n const bytes = await fs.readFile(filePath);\n const stats = await fs.stat(filePath);\n return {\n contentHash: `sha256:${crypto.createHash('sha256').update(bytes).digest('hex')}`,\n byteSize: stats.size,\n };\n}\n\nasync function fileExists(filePath: string): Promise<boolean> {\n try {\n await fs.access(filePath);\n return true;\n } catch {\n return false;\n }\n}\n\nasync function writeGeneratedRegistry(\n config: PlayableEditorAssetRegistryConfig,\n manifest: readonly PlayableEditorAssetRegistryEntry[],\n): Promise<void> {\n const registryContent = generatePlayableEditorAssetCatalogModule(manifest);\n await fs.mkdir(path.dirname(config.manifestPath), { recursive: true });\n await fs.mkdir(path.dirname(config.registryPath), { recursive: true });\n await atomicWrite(config.manifestPath, `${JSON.stringify(manifest, null, 2)}\\n`);\n await atomicWrite(config.registryPath, registryContent);\n}\n\nfunction resolveDeleteFile(args: PlayableEditorAssetRegistryArgs, payload: AnyRecord): boolean {\n if (typeof args.deleteFile === 'boolean') return args.deleteFile;\n if (payload && typeof payload.deleteFile === 'boolean') return payload.deleteFile;\n return true;\n}\n\nfunction resolveForce(args: PlayableEditorAssetRegistryArgs, payload: AnyRecord): boolean {\n return Boolean(args.force || payload?.force === true);\n}\n\nasync function assertAssetCanBeUnregistered(\n config: PlayableEditorAssetRegistryConfig,\n assetId: string,\n force: boolean,\n errorCodes: PlayableEditorAssetRegistryErrorCodes,\n): Promise<void> {\n if (force || !config.scenePath) return;\n const sceneConfig = await readJson<AnyRecord | null>(config.scenePath, null);\n const nodes = Array.isArray(sceneConfig?.scene?.nodes) ? sceneConfig.scene.nodes : [];\n const nodeIds = nodes\n .filter((node: AnyRecord) => node?.kind === 'instance' && node?.instance?.assetId === assetId)\n .map((node: AnyRecord) => node.id)\n .filter(Boolean);\n if (nodeIds.length === 0) return;\n throw new PlayableEditorAssetRegistryError(errorCodes.assetStillReferenced ?? 'asset_still_referenced', {\n assetId,\n scenePath: config.scenePath,\n nodeIds,\n });\n}\n\nfunction readOptionalString(value: unknown): string | null {\n return typeof value === 'string' && value.trim() ? value.trim() : null;\n}\n\nfunction readRecord(value: unknown): AnyRecord {\n return value && typeof value === 'object' && !Array.isArray(value)\n ? value as AnyRecord\n : {};\n}\n\nfunction isNodeError(error: unknown): error is NodeJS.ErrnoException {\n return error instanceof Error && 'code' in error;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/asset-database/registry.ts"],"names":[],"mappings":"A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AE,CAAC,IAAI,CAAC,EAAE,CAAC;SACjC,MAAM,CAAC,OAAO,CAAC,CAAC;IACnB,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IACjC,MAAM,IAAI,gCAAgC,CAAC,UAAU,CAAC,oBAAoB,IAAI,wBAAwB,EAAE;QACtG,OAAO;QACP,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,OAAO;KACR,CAAC,CAAC;AACL,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACxC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACzE,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAChE,CAAC,CAAC,KAAkB;QACpB,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,KAAK,YAAY,KAAK,IAAI,MAAM,IAAI,KAAK,CAAC;AACnD,CAAC","sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\nimport {\n createPlayableEditorAssetId,\n getPlayableEditorAssetKindExtensions,\n normalizePlayableEditorAssetCodeKey,\n normalizePlayableEditorAssetDisplayName,\n normalizePlayableEditorAssetKind,\n PLAYABLE_EDITOR_ASSET_CATALOG_KINDS,\n PLAYABLE_EDITOR_DEFAULT_EXTENSIONS,\n} from '@fps-games/playable-assets';\nimport {\n generatePlayableEditorAssetCatalogModule,\n} from './generated-module';\nimport {\n resolvePlayableEditorAssetMetadata,\n} from './metadata';\nimport {\n readPlayableEditorAssetWarmupCount,\n readPlayableEditorManagedAssetScale,\n readPlayableEditorSceneAssetMaterialMode,\n} from './manager-core';\nimport { normalizePlayablePortableAssetPath } from '@fps-games/playable-assets';\nimport type {\n PlayableEditorAssetKind,\n PlayableEditorAssetRegistryEntry,\n} from './types';\n\ntype AnyRecord = Record<string, any>;\n\nexport interface PlayableEditorAssetRegistryArgs {\n payload?: string;\n payloadData?: Record<string, unknown>;\n unregister?: boolean;\n assetId?: string;\n guid?: string;\n deleteFile?: boolean;\n force?: boolean;\n help?: boolean;\n}\n\nexport interface PlayableEditorAssetRegistryErrorCodes {\n [key: string]: string | undefined;\n}\n\nexport interface PlayableEditorAssetMetadataInput {\n existing?: PlayableEditorAssetRegistryEntry | null;\n existingMetadata?: Record<string, unknown> | null;\n payload: AnyRecord;\n payloadMetadata?: Record<string, unknown> | null;\n sourcePath: string;\n targetPath: string;\n kind: PlayableEditorAssetKind;\n guid: string;\n assetId: string;\n}\n\nexport interface PlayableEditorAssetRegistryConfig {\n cwd: string;\n assetsDir?: string;\n assetRootDir?: string;\n importedDir?: string;\n generatedDir: string;\n manifestPath: string;\n registryPath: string;\n scenePath?: string;\n rulesPath?: string;\n supportedExtension?: string | readonly string[];\n supportedExtensions?: readonly string[];\n unsupportedSourceErrorCode?: string;\n commands?: {\n register?: string;\n unregister?: string;\n };\n loadRules?: () => AnyRecord | Promise<AnyRecord>;\n relativeImportedPath: ((kind: PlayableEditorAssetKind, fileName: string) => string)\n | ((input: { kind: PlayableEditorAssetKind; fileName: string }) => string);\n publicUrlForCatalogRelativePath?: (relativePath: string) => string;\n publicUrlForRelativePath?: (relativePath: string) => string;\n resolveAssetMetadata?: (\n input: PlayableEditorAssetMetadataInput,\n ) => Record<string, unknown> | null | Promise<Record<string, unknown> | null>;\n}\n\nexport interface PlayableEditorAssetRegistryResult {\n ok: true;\n guid: string;\n assetId: string;\n kind: PlayableEditorAssetKind;\n contentHash?: string;\n external?: Record<string, string>;\n displayName?: string;\n originalFileName?: string;\n assetUrl?: string;\n targetPath: string | null;\n manifestPath: string;\n registryPath: string;\n removed?: boolean;\n deleteFile?: boolean;\n force?: boolean;\n deletedFile?: boolean;\n}\n\nexport interface PlayableEditorAssetRegistryRefreshEntry {\n guid: string;\n assetId: string;\n kind: PlayableEditorAssetKind;\n previousContentHash?: string;\n contentHash: string;\n}\n\nexport interface PlayableEditorAssetRegistryRefreshResult {\n ok: true;\n scannedAssetCount: number;\n refreshedAssets: PlayableEditorAssetRegistryRefreshEntry[];\n}\n\nexport class PlayableEditorAssetRegistryError extends Error {\n details: Record<string, unknown>;\n\n constructor(message: string, details: Record<string, unknown> = {}) {\n super(message);\n this.name = 'PlayableEditorAssetRegistryError';\n this.details = details;\n }\n}\n\nexport function parsePlayableEditorAssetRegistryArgs(argv: readonly string[]): PlayableEditorAssetRegistryArgs {\n const args: PlayableEditorAssetRegistryArgs = {};\n for (let index = 0; index < argv.length; index += 1) {\n const item = argv[index];\n if (item === '--unregister') {\n args.unregister = true;\n continue;\n }\n if (item === '--payload') {\n args.payload = argv[index + 1];\n index += 1;\n continue;\n }\n if (item === '--asset-id') {\n args.assetId = argv[index + 1];\n index += 1;\n continue;\n }\n if (item === '--guid') {\n args.guid = argv[index + 1];\n index += 1;\n continue;\n }\n if (item === '--delete-file') {\n args.deleteFile = true;\n continue;\n }\n if (item === '--keep-file') {\n args.deleteFile = false;\n continue;\n }\n if (item === '--force') {\n args.force = true;\n continue;\n }\n if (item === '--help' || item === '-h') {\n args.help = true;\n }\n }\n return args;\n}\n\nexport async function runPlayableEditorAssetRegistryCli(\n config: PlayableEditorAssetRegistryConfig,\n argv = process.argv.slice(2),\n): Promise<void> {\n const args = parsePlayableEditorAssetRegistryArgs(argv);\n const rules = await loadPlayableEditorAssetRegistryRules(config);\n const errorCodes = readRecord(rules.errorCodes);\n const fail = (message: string, details: Record<string, unknown> = {}) => {\n const error = { ok: false, error: message, ...details };\n process.stderr.write(`${JSON.stringify(error, null, 2)}\\n`);\n process.exit(1);\n };\n\n try {\n if (args.help) {\n process.stdout.write([\n 'Usage:',\n ` ${config.commands?.register ?? 'npm run asset:register'} -- --payload /path/to/payload.json`,\n ` ${config.commands?.unregister ?? 'npm run asset:unregister'} -- --payload /path/to/payload.json`,\n ` ${config.commands?.unregister ?? 'npm run asset:unregister'} -- --asset-id asset_xxx [--keep-file] [--force]`,\n ` ${config.commands?.unregister ?? 'npm run asset:unregister'} -- --guid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx [--keep-file] [--force]`,\n '',\n ].join('\\n'));\n return;\n }\n if (args.unregister) {\n const result = await unregisterPlayableEditorAsset(config, args, errorCodes);\n process.stdout.write(`${JSON.stringify(result)}\\n`);\n return;\n }\n const result = await registerPlayableEditorAsset(config, args, errorCodes);\n process.stdout.write(`${JSON.stringify(result)}\\n`);\n } catch (error) {\n if (error instanceof PlayableEditorAssetRegistryError) {\n fail(error.message, error.details);\n }\n fail('asset_register_failed', {\n message: error instanceof Error ? error.message : String(error),\n });\n }\n}\n\nexport async function registerPlayableEditorAsset(\n config: PlayableEditorAssetRegistryConfig,\n args: PlayableEditorAssetRegistryArgs,\n errorCodes: PlayableEditorAssetRegistryErrorCodes = {},\n): Promise<PlayableEditorAssetRegistryResult> {\n if (!args.payload && !args.payloadData) throw new PlayableEditorAssetRegistryError('missing_payload_arg');\n const payload = await loadPayload(config, args);\n const sourcePath = path.resolve(config.cwd, String(payload.sourcePath ?? payload.assetPath ?? ''));\n const sourceExtension = resolveSourceExtension(config, sourcePath);\n if (!sourceExtension) {\n throw new PlayableEditorAssetRegistryError(\n config.unsupportedSourceErrorCode ?? errorCodes.sourceMustBeSupportedAsset ?? 'source_must_be_supported_asset',\n {\n sourcePath,\n supportedExtensions: normalizeSupportedExtensions(config),\n },\n );\n }\n try {\n await fs.access(sourcePath);\n } catch {\n throw new PlayableEditorAssetRegistryError(errorCodes.sourceFileNotFound ?? 'source_file_not_found', { sourcePath });\n }\n\n const payloadExternal = readPayloadExternalRef(payload);\n\n await fs.mkdir(config.generatedDir, { recursive: true });\n\n const manifest = await loadPlayableEditorAssetManifest(config);\n const audit = await getFileAudit(sourcePath);\n const kind = normalizePlayableEditorAssetKind(payload.kind ?? payload.assetKind ?? payload.assetType, sourcePath);\n if (!kind) {\n throw new PlayableEditorAssetRegistryError('unsupported_asset_kind', { sourcePath, assetType: payload.assetType });\n }\n assertAssetKindExtension(kind, sourcePath, 'source_path');\n\n const existing = findReusableCatalogEntry(manifest, payload, payloadExternal, sourcePath, audit, kind, config);\n const originalFileName = readOptionalString(payload.assetName)\n ?? existing?.originalFileName\n ?? path.basename(sourcePath);\n const requestedGuid = readOptionalString(payload.guid);\n if (existing && requestedGuid && existing.guid !== requestedGuid) {\n throw new PlayableEditorAssetRegistryError('payload_guid_must_match_existing_asset', {\n guid: requestedGuid,\n existingGuid: existing.guid,\n existingAssetId: existing.assetId,\n });\n }\n const guid = existing?.guid ?? requestedGuid ?? crypto.randomUUID();\n const requestedProjectAssetId = readOptionalString(payload.projectAssetId);\n const assetId = createPlayableEditorAssetId(kind, guid);\n if (existing?.assetId && existing.assetId !== assetId) {\n throw new PlayableEditorAssetRegistryError('manifest_asset_id_must_match_guid', {\n guid,\n assetId: existing.assetId,\n expectedAssetId: assetId,\n });\n }\n if (requestedProjectAssetId && requestedProjectAssetId !== assetId) {\n throw new PlayableEditorAssetRegistryError('project_asset_id_must_match_guid', {\n guid,\n projectAssetId: requestedProjectAssetId,\n expectedAssetId: assetId,\n });\n }\n const targetFileName = `${assetId}${sourceExtension}`;\n const targetRelativePath = resolveTargetRelativePath(config, {\n existing,\n sourcePath,\n kind,\n targetFileName,\n });\n const targetPath = resolveCatalogAssetPath(config, targetRelativePath, kind, 'target_path');\n const now = new Date().toISOString();\n const mergedExternal = normalizeExternalRef({\n ...(normalizeExternalRef(existing?.external) ?? {}),\n ...(payloadExternal ?? {}),\n });\n\n let copiedNewTarget = false;\n let registeredEntry: PlayableEditorAssetRegistryEntry | null = null;\n try {\n await fs.mkdir(path.dirname(targetPath), { recursive: true });\n const targetMatchesSource = isSamePath(sourcePath, targetPath);\n const targetExists = targetMatchesSource || await fileExists(targetPath);\n const targetNeedsRefresh = !existing || existing.contentHash !== audit.contentHash || !targetExists;\n const shouldCopy = !targetMatchesSource && targetNeedsRefresh;\n if (shouldCopy) {\n await fs.copyFile(sourcePath, targetPath);\n copiedNewTarget = !existing;\n }\n\n const nextEntry = normalizeManifestEntry({\n ...(existing ?? {}),\n guid,\n assetId,\n kind,\n displayName: normalizePlayableEditorAssetDisplayName(\n readOptionalString(payload.displayName) ?? existing?.displayName,\n originalFileName,\n ),\n relativePath: targetRelativePath,\n originalFileName,\n codeKey: normalizePlayableEditorAssetCodeKey(\n readOptionalString(payload.codeKey) ?? readOptionalString(payload.assetName) ?? existing?.codeKey,\n originalFileName,\n ),\n ...(readOptionalString(payload.category) ? { category: readOptionalString(payload.category) } : {}),\n placeable: typeof payload.placeable === 'boolean'\n ? payload.placeable\n : existing?.placeable ?? (kind === 'model' || kind === 'texture'),\n ...(readPlayableEditorAssetWarmupCount(payload.warmupCount) != null\n ? { warmupCount: readPlayableEditorAssetWarmupCount(payload.warmupCount) }\n : {}),\n ...(typeof payload.singleton === 'boolean' ? { singleton: payload.singleton } : {}),\n ...(readPlayableEditorSceneAssetMaterialMode(payload.materialMode)\n ? { materialMode: readPlayableEditorSceneAssetMaterialMode(payload.materialMode) }\n : {}),\n ...(readPlayableEditorManagedAssetScale(payload.scale)\n ? { defaults: { transform: { scale: readPlayableEditorManagedAssetScale(payload.scale) } } }\n : {}),\n contentHash: audit.contentHash,\n byteSize: audit.byteSize,\n external: mergedExternal,\n metadata: await resolveManifestEntryMetadata(config, {\n existing,\n payload,\n sourcePath,\n targetPath,\n kind,\n guid,\n assetId,\n }),\n createdAt: existing?.createdAt ?? now,\n updatedAt: targetNeedsRefresh ? now : (existing?.updatedAt ?? now),\n });\n if (!nextEntry) throw new PlayableEditorAssetRegistryError('invalid_manifest_entry', { assetId, guid });\n registeredEntry = nextEntry;\n\n const existingIndex = manifest.findIndex((entry) => entry.guid === guid || entry.assetId === assetId);\n if (existingIndex >= 0) manifest[existingIndex] = nextEntry;\n else manifest.push(nextEntry);\n manifest.sort(compareCatalogEntries);\n\n await writeGeneratedRegistry(config, manifest);\n } catch (error) {\n if (copiedNewTarget) {\n await fs.rm(targetPath, { force: true }).catch(() => {});\n }\n throw error;\n }\n\n return {\n ok: true,\n guid,\n assetId,\n kind,\n ...(registeredEntry?.contentHash ? { contentHash: registeredEntry.contentHash } : {}),\n ...(registeredEntry?.external ? { external: registeredEntry.external as Record<string, string> } : {}),\n displayName: registeredEntry?.displayName,\n originalFileName: registeredEntry?.originalFileName,\n assetUrl: publicUrlForCatalogRelativePath(config, targetRelativePath, kind),\n targetPath,\n manifestPath: config.manifestPath,\n registryPath: config.registryPath,\n };\n}\n\nexport async function refreshPlayableEditorAssetRegistry(\n config: PlayableEditorAssetRegistryConfig,\n errorCodes: PlayableEditorAssetRegistryErrorCodes = {},\n): Promise<PlayableEditorAssetRegistryRefreshResult> {\n const manifest = await loadPlayableEditorAssetManifest(config);\n const refreshedAssets: PlayableEditorAssetRegistryRefreshEntry[] = [];\n for (const entry of manifest) {\n const sourcePath = resolveCatalogAssetPath(config, entry.relativePath, entry.kind, 'refresh_source_path');\n let audit: { contentHash: string; byteSize: number };\n try {\n audit = await getFileAudit(sourcePath);\n } catch (error) {\n if (isNodeError(error) && error.code === 'ENOENT') {\n throw new PlayableEditorAssetRegistryError(\n errorCodes.sourceFileNotFound ?? 'source_file_not_found',\n { assetId: entry.assetId, guid: entry.guid, sourcePath },\n );\n }\n throw error;\n }\n if (entry.contentHash === audit.contentHash && entry.byteSize === audit.byteSize) continue;\n const registered = await registerPlayableEditorAsset(config, {\n payloadData: {\n sourcePath,\n guid: entry.guid,\n projectAssetId: entry.assetId,\n kind: entry.kind,\n },\n }, errorCodes);\n if (!registered.contentHash) {\n throw new PlayableEditorAssetRegistryError('asset_refresh_missing_content_hash', {\n assetId: entry.assetId,\n guid: entry.guid,\n sourcePath,\n });\n }\n refreshedAssets.push({\n guid: entry.guid,\n assetId: entry.assetId,\n kind: entry.kind,\n ...(entry.contentHash ? { previousContentHash: entry.contentHash } : {}),\n contentHash: registered.contentHash,\n });\n }\n return {\n ok: true,\n scannedAssetCount: manifest.length,\n refreshedAssets,\n };\n}\n\nexport async function unregisterPlayableEditorAsset(\n config: PlayableEditorAssetRegistryConfig,\n args: PlayableEditorAssetRegistryArgs,\n errorCodes: PlayableEditorAssetRegistryErrorCodes = {},\n): Promise<PlayableEditorAssetRegistryResult> {\n const payload = await loadPayload(config, args);\n const assetId = readOptionalString(args.assetId ?? payload?.assetId);\n const guid = readOptionalString(args.guid ?? payload?.guid);\n if (!assetId && !guid) {\n throw new PlayableEditorAssetRegistryError(errorCodes.missingAssetId ?? 'missing_asset_id');\n }\n const deleteFile = resolveDeleteFile(args, payload);\n const force = resolveForce(args, payload);\n\n await fs.mkdir(config.generatedDir, { recursive: true });\n const manifest = await loadPlayableEditorAssetManifest(config);\n const entryIndex = manifest.findIndex((entry) => (assetId && entry.assetId === assetId) || (guid && entry.guid === guid));\n if (entryIndex < 0) {\n throw new PlayableEditorAssetRegistryError(errorCodes.manifestEntryNotFound ?? 'manifest_entry_not_found', {\n assetId,\n guid,\n manifestPath: config.manifestPath,\n });\n }\n\n const entry = manifest[entryIndex];\n if (!entry) throw new PlayableEditorAssetRegistryError('manifest_entry_not_found', { assetId, guid });\n await assertAssetCanBeUnregistered(config, entry.assetId, force, errorCodes);\n manifest.splice(entryIndex, 1);\n\n let deletedFile = false;\n let targetPath: string | null = null;\n if (deleteFile) {\n targetPath = resolveCatalogAssetPath(config, entry.relativePath, entry.kind, 'unregister_target_path');\n await fs.rm(targetPath, { force: true });\n deletedFile = true;\n }\n\n await writeGeneratedRegistry(config, manifest);\n return {\n ok: true,\n guid: entry.guid,\n assetId: entry.assetId,\n kind: entry.kind,\n removed: true,\n deleteFile,\n force,\n deletedFile,\n targetPath,\n manifestPath: config.manifestPath,\n registryPath: config.registryPath,\n };\n}\n\nexport async function loadPlayableEditorAssetManifest(\n config: Pick<PlayableEditorAssetRegistryConfig, 'manifestPath'>,\n): Promise<PlayableEditorAssetRegistryEntry[]> {\n const rawEntries = await readJson<unknown>(config.manifestPath, []);\n if (!Array.isArray(rawEntries)) {\n throw new PlayableEditorAssetRegistryError('manifest_invalid_root', { manifestPath: config.manifestPath });\n }\n const entries = rawEntries.map((rawEntry, index) => {\n const entry = normalizeManifestEntry(rawEntry, true);\n if (!entry) {\n throw new PlayableEditorAssetRegistryError('manifest_invalid_entry', {\n index,\n manifestPath: config.manifestPath,\n });\n }\n return entry;\n });\n const assetIds = new Set<string>();\n const guids = new Set<string>();\n for (const entry of entries) {\n if (assetIds.has(entry.assetId)) {\n throw new PlayableEditorAssetRegistryError('manifest_duplicate_asset_id', { assetId: entry.assetId });\n }\n if (guids.has(entry.guid)) {\n throw new PlayableEditorAssetRegistryError('manifest_duplicate_guid', { guid: entry.guid });\n }\n assetIds.add(entry.assetId);\n guids.add(entry.guid);\n }\n return entries;\n}\n\nexport async function loadPlayableEditorAssetRegistryRules(config: PlayableEditorAssetRegistryConfig): Promise<AnyRecord> {\n if (config.loadRules) return config.loadRules();\n if (!config.rulesPath) return {};\n return readJson(config.rulesPath, {});\n}\n\nfunction normalizeExtensionList(value: unknown): string[] {\n const entries = Array.isArray(value) ? value : [value];\n return entries\n .filter((entry): entry is string => typeof entry === 'string' && Boolean(entry.trim()))\n .map((entry) => {\n const normalized = entry.trim().toLowerCase();\n return normalized.startsWith('.') ? normalized : `.${normalized}`;\n });\n}\n\nfunction normalizeSupportedExtensions(config: PlayableEditorAssetRegistryConfig): string[] {\n const extensions = normalizeExtensionList(config.supportedExtensions ?? config.supportedExtension);\n return extensions.length > 0 ? extensions : normalizeExtensionList(PLAYABLE_EDITOR_DEFAULT_EXTENSIONS);\n}\n\nfunction resolveSourceExtension(config: PlayableEditorAssetRegistryConfig, sourcePath: string): string | null {\n const lowerPath = sourcePath.toLowerCase();\n return normalizeSupportedExtensions(config).find((extension) => lowerPath.endsWith(extension)) ?? null;\n}\n\nfunction resolveTargetRelativePath(\n config: PlayableEditorAssetRegistryConfig,\n input: {\n existing?: PlayableEditorAssetRegistryEntry | null;\n sourcePath: string;\n kind: PlayableEditorAssetKind;\n targetFileName: string;\n },\n): string {\n if (input.existing?.relativePath) return input.existing.relativePath;\n return resolveReusableProjectAssetRelativePath(config, input.sourcePath, input.kind)\n ?? callRelativeImportedPath(config, input.kind, input.targetFileName);\n}\n\nfunction callRelativeImportedPath(\n config: PlayableEditorAssetRegistryConfig,\n kind: PlayableEditorAssetKind,\n fileName: string,\n): string {\n const fn = config.relativeImportedPath as ((...args: any[]) => string);\n return fn.length >= 2 ? fn(kind, fileName) : fn({ kind, fileName });\n}\n\nfunction resolveReusableProjectAssetRelativePath(\n config: PlayableEditorAssetRegistryConfig,\n sourcePath: string,\n kind: PlayableEditorAssetKind,\n): string | null {\n const assetRoot = config.assetRootDir ?? config.assetsDir;\n if (!assetRoot) return null;\n\n const absoluteSource = path.resolve(sourcePath);\n if (!isInsideOrSamePath(path.resolve(assetRoot), absoluteSource)) return null;\n if (isInsideOrSamePath(path.resolve(config.generatedDir), absoluteSource)) return null;\n assertAssetKindExtension(kind, absoluteSource, 'source_path');\n\n return path.relative(config.generatedDir, absoluteSource).split(path.sep).join('/');\n}\n\nfunction isInsideOrSamePath(parent: string, child: string): boolean {\n const relative = path.relative(parent, child);\n return relative === '' || (!relative.startsWith('..') && !path.isAbsolute(relative));\n}\n\nfunction isSamePath(left: string, right: string): boolean {\n return path.relative(path.resolve(left), path.resolve(right)) === '';\n}\n\nfunction assertInside(parent: string, child: string, label: string): void {\n const relative = path.relative(parent, child);\n if (relative.startsWith('..') || path.isAbsolute(relative)) {\n throw new PlayableEditorAssetRegistryError(`${label}_outside_allowed_directory`, { parent, child });\n }\n}\n\nfunction assertOutside(parent: string, child: string, label: string): void {\n const relative = path.relative(parent, child);\n if (!relative.startsWith('..') && !path.isAbsolute(relative)) {\n throw new PlayableEditorAssetRegistryError(`${label}_inside_forbidden_directory`, { parent, child });\n }\n}\n\nfunction resolveCatalogAssetPath(\n config: PlayableEditorAssetRegistryConfig,\n relativePath: string,\n kind: PlayableEditorAssetKind,\n label: string,\n): string {\n const targetPath = path.resolve(config.generatedDir, relativePath);\n const assetRoot = path.resolve(config.assetRootDir ?? config.assetsDir ?? config.importedDir ?? config.generatedDir);\n assertInside(assetRoot, targetPath, label);\n assertOutside(path.resolve(config.generatedDir), targetPath, label);\n assertAssetKindExtension(kind, targetPath, label);\n return targetPath;\n}\n\nfunction publicUrlForCatalogRelativePath(\n config: PlayableEditorAssetRegistryConfig,\n relativePath: string,\n kind: PlayableEditorAssetKind,\n): string {\n const targetPath = resolveCatalogAssetPath(config, relativePath, kind, 'asset_url_path');\n if (typeof config.publicUrlForCatalogRelativePath === 'function') {\n return config.publicUrlForCatalogRelativePath(relativePath);\n }\n if (typeof config.publicUrlForRelativePath === 'function') {\n return config.publicUrlForRelativePath(relativePath);\n }\n const relativeToCwd = path.relative(config.cwd, targetPath).split(path.sep).join('/');\n return `/${relativeToCwd}`;\n}\n\nfunction assertAssetKindExtension(kind: PlayableEditorAssetKind, filePath: string, label: string): void {\n const extension = path.extname(filePath).toLowerCase();\n const supportedExtensions = getPlayableEditorAssetKindExtensions(kind);\n if (supportedExtensions.includes(extension)) return;\n throw new PlayableEditorAssetRegistryError(`${label}_unsupported_extension`, {\n kind,\n filePath,\n extension,\n supportedExtensions,\n });\n}\n\nasync function readJson<T>(filePath: string, fallback: T): Promise<T> {\n try {\n return JSON.parse(await fs.readFile(filePath, 'utf8')) as T;\n } catch (error) {\n if (isNodeError(error) && error.code === 'ENOENT') return fallback;\n throw error;\n }\n}\n\nasync function loadPayload(\n config: PlayableEditorAssetRegistryConfig,\n args: Pick<PlayableEditorAssetRegistryArgs, 'payload' | 'payloadData'>,\n): Promise<AnyRecord> {\n if (args.payloadData) return structuredClone(args.payloadData) as AnyRecord;\n if (!args.payload) return {};\n const payloadPath = path.resolve(config.cwd, args.payload);\n const payload = await readJson<unknown>(payloadPath, null);\n if (!payload || typeof payload !== 'object' || Array.isArray(payload)) {\n throw new PlayableEditorAssetRegistryError('invalid_payload_json', { payloadPath });\n }\n return payload as AnyRecord;\n}\n\nfunction normalizeManifestEntry(entry: unknown, strictPersistedEntry = false): PlayableEditorAssetRegistryEntry | null {\n if (!entry || typeof entry !== 'object' || Array.isArray(entry)) return null;\n const record = entry as AnyRecord;\n const readManifestString = strictPersistedEntry ? readStrictPersistedString : readOptionalString;\n const guid = readManifestString(record.guid);\n const assetId = readManifestString(record.assetId);\n const kindValue = readManifestString(record.kind);\n if (strictPersistedEntry && (!kindValue || 'assetKind' in record || 'assetType' in record)) return null;\n const kind = strictPersistedEntry\n ? PLAYABLE_EDITOR_ASSET_CATALOG_KINDS.includes(kindValue as PlayableEditorAssetKind)\n ? kindValue as PlayableEditorAssetKind\n : null\n : normalizePlayableEditorAssetKind(record.kind ?? record.assetKind ?? record.assetType, record.relativePath);\n const displayName = readManifestString(record.displayName);\n const relativePath = readManifestString(record.relativePath);\n if (!guid || !assetId || !kind || !displayName || !relativePath) return null;\n if (strictPersistedEntry && (!isOptionalStrictPersistedString(record, 'originalFileName')\n || !isOptionalStrictPersistedString(record, 'codeKey')\n || !isOptionalStrictPersistedString(record, 'category')\n || !isOptionalStrictPersistedString(record, 'materialMode')\n || !isOptionalStrictPersistedString(record, 'contentHash')\n || !isOptionalStrictPersistedString(record, 'createdAt')\n || !isOptionalStrictPersistedString(record, 'updatedAt')\n || ('placeable' in record && typeof record.placeable !== 'boolean')\n || ('warmupCount' in record && (!Number.isInteger(record.warmupCount) || record.warmupCount < 0))\n || ('singleton' in record && typeof record.singleton !== 'boolean')\n || ('defaults' in record && normalizeMetadata(record.defaults) == null)\n || ('byteSize' in record && (!Number.isFinite(record.byteSize) || record.byteSize < 0))\n || ('metadata' in record && normalizeMetadata(record.metadata) == null)\n || ('external' in record && !isStrictPersistedExternalRef(record.external)))) return null;\n const metadata = normalizeMetadata(record.metadata);\n const originalFileName = readManifestString(record.originalFileName);\n const codeKey = readManifestString(record.codeKey);\n const category = readManifestString(record.category);\n const materialMode = readManifestString(record.materialMode);\n const defaults = normalizeMetadata(record.defaults);\n const contentHash = readManifestString(record.contentHash);\n const external = normalizeExternalRef(record.external);\n const createdAt = readManifestString(record.createdAt);\n const updatedAt = readManifestString(record.updatedAt);\n return {\n guid,\n assetId,\n kind,\n displayName,\n relativePath,\n ...(originalFileName ? { originalFileName } : {}),\n ...(codeKey ? { codeKey } : {}),\n ...(category ? { category } : {}),\n ...(typeof record.placeable === 'boolean' ? { placeable: record.placeable } : {}),\n ...(typeof record.warmupCount === 'number' ? { warmupCount: record.warmupCount } : {}),\n ...(typeof record.singleton === 'boolean' ? { singleton: record.singleton } : {}),\n ...(materialMode ? { materialMode } : {}),\n ...(defaults ? { defaults } : {}),\n ...(contentHash ? { contentHash } : {}),\n ...(typeof record.byteSize === 'number' ? { byteSize: record.byteSize } : {}),\n ...(external ? { external } : {}),\n ...(metadata ? { metadata } : {}),\n ...(createdAt ? { createdAt } : {}),\n ...(updatedAt ? { updatedAt } : {}),\n };\n}\n\nfunction readStrictPersistedString(value: unknown): string | null {\n return typeof value === 'string' && value.length > 0 && value === value.trim() ? value : null;\n}\n\nfunction isOptionalStrictPersistedString(record: AnyRecord, key: string): boolean {\n return !(key in record) || readStrictPersistedString(record[key]) != null;\n}\n\nfunction isStrictPersistedExternalRef(value: unknown): boolean {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return false;\n const record = value as AnyRecord;\n const allowed = ['platformAssetId', 'assetPath', 'assetUrl'];\n const keys = Object.keys(record);\n return keys.length > 0\n && keys.every(key => allowed.includes(key) && readStrictPersistedString(record[key]) != null);\n}\n\nfunction normalizeExternalRef(value: unknown, rejectUnsafeAssetPath = false): Record<string, string> | null {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return null;\n const record = value as AnyRecord;\n const platformAssetId = readOptionalString(record.platformAssetId);\n let assetPath: string | undefined;\n try {\n assetPath = normalizePlayablePortableAssetPath(record.assetPath);\n if (rejectUnsafeAssetPath\n && Object.prototype.hasOwnProperty.call(record, 'assetPath')\n && !assetPath) {\n throw new Error('external_asset_path_must_be_portable');\n }\n } catch {\n if (rejectUnsafeAssetPath) {\n throw new PlayableEditorAssetRegistryError('external_asset_path_must_be_portable', {\n assetPath: readOptionalString(record.assetPath),\n });\n }\n }\n const assetUrl = readOptionalString(record.assetUrl);\n if (!platformAssetId && !assetPath && !assetUrl) return null;\n return {\n ...(platformAssetId ? { platformAssetId } : {}),\n ...(assetPath ? { assetPath } : {}),\n ...(assetUrl ? { assetUrl } : {}),\n };\n}\n\nfunction normalizeMetadata(value: unknown): Record<string, unknown> | null {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return null;\n return structuredClone(value) as Record<string, unknown>;\n}\n\nasync function resolveManifestEntryMetadata(\n config: PlayableEditorAssetRegistryConfig,\n context: Omit<PlayableEditorAssetMetadataInput, 'existingMetadata' | 'payloadMetadata'>,\n): Promise<Record<string, unknown> | null> {\n const payloadMetadata = normalizeMetadata(context.payload?.metadata);\n if (typeof config.resolveAssetMetadata === 'function') {\n const resolved = await config.resolveAssetMetadata({\n ...context,\n existingMetadata: normalizeMetadata(context.existing?.metadata),\n payloadMetadata,\n });\n const normalized = normalizeMetadata(resolved);\n if (normalized) return normalized;\n return null;\n }\n return resolvePlayableEditorAssetMetadata({\n kind: context.kind,\n sourcePath: context.sourcePath,\n existingMetadata: normalizeMetadata(context.existing?.metadata),\n payloadMetadata,\n guid: context.guid,\n assetId: context.assetId,\n cwd: config.cwd,\n assetsDir: config.assetsDir,\n });\n}\n\nfunction findReusableCatalogEntry(\n manifest: readonly PlayableEditorAssetRegistryEntry[],\n payload: AnyRecord,\n external: Record<string, string> | null,\n sourcePath: string,\n audit: { contentHash: string; byteSize: number },\n kind: PlayableEditorAssetKind,\n config: PlayableEditorAssetRegistryConfig,\n): PlayableEditorAssetRegistryEntry | null {\n const guid = readOptionalString(payload.guid);\n const assetId = readOptionalString(payload.projectAssetId);\n if (guid) {\n const byGuid = manifest.find((entry) => entry.guid === guid);\n if (byGuid) return byGuid;\n }\n if (assetId) {\n const byAssetId = manifest.find((entry) => entry.assetId === assetId);\n if (byAssetId) return byAssetId;\n }\n if (external?.platformAssetId) {\n const byPlatformId = manifest.find((entry) => entry.kind === kind && readExternalPlatformAssetId(entry.external) === external.platformAssetId);\n if (byPlatformId) return byPlatformId;\n }\n if (external?.assetPath) {\n const byAssetPath = manifest.find((entry) => entry.kind === kind && readExternalAssetPath(entry.external) === external.assetPath);\n if (byAssetPath) return byAssetPath;\n }\n const normalizedSource = path.resolve(sourcePath);\n const byCanonicalSourcePath = manifest.find((entry) => {\n if (entry.kind !== kind) return false;\n try {\n return path.resolve(resolveCatalogAssetPath(\n config,\n entry.relativePath,\n entry.kind,\n 'manifest_asset_path',\n )) === normalizedSource;\n } catch {\n return false;\n }\n });\n if (byCanonicalSourcePath) return byCanonicalSourcePath;\n if (audit.contentHash) {\n const byHash = manifest.find((entry) => entry.kind === kind && entry.contentHash === audit.contentHash);\n if (byHash) return byHash;\n }\n return null;\n}\n\nfunction readPayloadExternalRef(payload: AnyRecord): Record<string, string> | null {\n return normalizeExternalRef({\n ...(payload.external && typeof payload.external === 'object' && !Array.isArray(payload.external)\n ? payload.external\n : {}),\n platformAssetId: payload.external?.platformAssetId ?? payload.platformAssetId ?? payload.assetId,\n assetUrl: payload.external?.assetUrl ?? payload.assetUrl,\n }, true);\n}\n\nfunction readExternalPlatformAssetId(value: unknown): string | null {\n return readOptionalString(readRecord(value).platformAssetId);\n}\n\nfunction readExternalAssetPath(value: unknown): string | null {\n return readOptionalString(readRecord(value).assetPath);\n}\n\nfunction compareCatalogEntries(\n a: PlayableEditorAssetRegistryEntry,\n b: PlayableEditorAssetRegistryEntry,\n): number {\n return a.kind.localeCompare(b.kind)\n || a.displayName.localeCompare(b.displayName)\n || a.assetId.localeCompare(b.assetId);\n}\n\nasync function atomicWrite(filePath: string, content: string): Promise<boolean> {\n try {\n const previous = await fs.readFile(filePath, 'utf8');\n if (previous === content) return false;\n } catch (error) {\n if (!isNodeError(error) || error.code !== 'ENOENT') throw error;\n }\n const tmpPath = `${filePath}.tmp-${process.pid}-${Date.now()}`;\n await fs.writeFile(tmpPath, content);\n await fs.rename(tmpPath, filePath);\n return true;\n}\n\nasync function getFileAudit(filePath: string): Promise<{ contentHash: string; byteSize: number }> {\n const bytes = await fs.readFile(filePath);\n const stats = await fs.stat(filePath);\n return {\n contentHash: `sha256:${crypto.createHash('sha256').update(bytes).digest('hex')}`,\n byteSize: stats.size,\n };\n}\n\nasync function fileExists(filePath: string): Promise<boolean> {\n try {\n await fs.access(filePath);\n return true;\n } catch {\n return false;\n }\n}\n\nasync function writeGeneratedRegistry(\n config: PlayableEditorAssetRegistryConfig,\n manifest: readonly PlayableEditorAssetRegistryEntry[],\n): Promise<void> {\n const registryContent = generatePlayableEditorAssetCatalogModule(manifest);\n await fs.mkdir(path.dirname(config.manifestPath), { recursive: true });\n await fs.mkdir(path.dirname(config.registryPath), { recursive: true });\n await atomicWrite(config.manifestPath, `${JSON.stringify(manifest, null, 2)}\\n`);\n await atomicWrite(config.registryPath, registryContent);\n}\n\nfunction resolveDeleteFile(args: PlayableEditorAssetRegistryArgs, payload: AnyRecord): boolean {\n if (typeof args.deleteFile === 'boolean') return args.deleteFile;\n if (payload && typeof payload.deleteFile === 'boolean') return payload.deleteFile;\n return true;\n}\n\nfunction resolveForce(args: PlayableEditorAssetRegistryArgs, payload: AnyRecord): boolean {\n return Boolean(args.force || payload?.force === true);\n}\n\nasync function assertAssetCanBeUnregistered(\n config: PlayableEditorAssetRegistryConfig,\n assetId: string,\n force: boolean,\n errorCodes: PlayableEditorAssetRegistryErrorCodes,\n): Promise<void> {\n if (force || !config.scenePath) return;\n const sceneConfig = await readJson<AnyRecord | null>(config.scenePath, null);\n const nodes = Array.isArray(sceneConfig?.scene?.nodes) ? sceneConfig.scene.nodes : [];\n const nodeIds = nodes\n .filter((node: AnyRecord) => node?.kind === 'instance' && node?.instance?.assetId === assetId)\n .map((node: AnyRecord) => node.id)\n .filter(Boolean);\n if (nodeIds.length === 0) return;\n throw new PlayableEditorAssetRegistryError(errorCodes.assetStillReferenced ?? 'asset_still_referenced', {\n assetId,\n scenePath: config.scenePath,\n nodeIds,\n });\n}\n\nfunction readOptionalString(value: unknown): string | null {\n return typeof value === 'string' && value.trim() ? value.trim() : null;\n}\n\nfunction readRecord(value: unknown): AnyRecord {\n return value && typeof value === 'object' && !Array.isArray(value)\n ? value as AnyRecord\n : {};\n}\n\nfunction isNodeError(error: unknown): error is NodeJS.ErrnoException {\n return error instanceof Error && 'code' in error;\n}\n"]}
|
|
@@ -4,4 +4,5 @@ export declare function createEditorSceneAssetLibrary<TExternal = unknown, TDefa
|
|
|
4
4
|
export declare function createEditorSceneAssetHydrationCatalog<TExternal = unknown, TDefaults = unknown, TMaterialMode extends string = string>(catalogEntries: readonly EditorSceneAssetCatalogEntry<TExternal, TDefaults, TMaterialMode>[]): Array<EditorSceneAssetLibraryItem<TDefaults, TExternal, TMaterialMode>>;
|
|
5
5
|
export declare function createEditorSceneAssetLibraryItem<TExternal = unknown, TDefaults = unknown, TMaterialMode extends string = string>(entry: EditorSceneAssetCatalogEntry<TExternal, TDefaults, TMaterialMode>): EditorSceneAssetLibraryItem<TDefaults, TExternal, TMaterialMode>;
|
|
6
6
|
export declare function compareEditorSceneAssetLibraryItems(a: EditorSceneAssetLibraryItem, b: EditorSceneAssetLibraryItem): number;
|
|
7
|
+
export declare function resolveEditorSceneAssetLibraryItemRelativePath(asset: EditorSceneAssetLibraryItem): string | undefined;
|
|
7
8
|
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/asset-library/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,4BAA4B,EAC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AAS,4BAA4B,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,EAAE,GAC3F,KAAK,CAAC,2BAA2B,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAKzE;AAED,wBAAgB,sCAAsC,CACpD,SAAS,GAAG,OAAO,EACnB,SAAS,GAAG,OAAO,EACnB,aAAa,SAAS,MAAM,GAAG,MAAM,EAErC,cAAc,EAAE,SAAS,4BAA4B,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,EAAE,GAC3F,KAAK,CAAC,2BAA2B,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAKzE;AAED,wBAAgB,iCAAiC,CAC/C,SAAS,GAAG,OAAO,EACnB,SAAS,GAAG,OAAO,EACnB,aAAa,SAAS,MAAM,GAAG,MAAM,EAErC,KAAK,EAAE,4BAA4B,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,GACvE,2BAA2B,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,CA+BlE;AAED,wBAAgB,mCAAmC,CACjD,CAAC,EAAE,2BAA2B,EAC9B,CAAC,EAAE,2BAA2B,GAC7B,MAAM,CAKR;AAED,wBAAgB,8CAA8C,CAC5D,KAAK,EAAE,2BAA2B,GACjC,MAAM,GAAG,SAAS,CAIpB"}
|
|
@@ -48,6 +48,11 @@ export function compareEditorSceneAssetLibraryItems(a, b) {
|
|
|
48
48
|
|| a.assetId.localeCompare(b.assetId)
|
|
49
49
|
|| a.type.localeCompare(b.type);
|
|
50
50
|
}
|
|
51
|
+
export function resolveEditorSceneAssetLibraryItemRelativePath(asset) {
|
|
52
|
+
return readNonEmptyString(asset.relativePath)
|
|
53
|
+
?? readNonEmptyString(asset.metadata?.relativePath)
|
|
54
|
+
?? undefined;
|
|
55
|
+
}
|
|
51
56
|
function inferEditorSceneAssetCategory(entry) {
|
|
52
57
|
if (entry.kind === 'prefab')
|
|
53
58
|
return 'Prefab';
|
|
@@ -60,14 +65,62 @@ function inferEditorSceneAssetCategory(entry) {
|
|
|
60
65
|
return 'Model';
|
|
61
66
|
}
|
|
62
67
|
function createEditorSceneAssetCatalogMetadata(entry) {
|
|
63
|
-
return {
|
|
68
|
+
return normalizeEditorSceneAssetCatalogMetadata({
|
|
64
69
|
originalFileName: entry.originalFileName,
|
|
65
70
|
relativePath: entry.relativePath,
|
|
66
71
|
codeKey: entry.codeKey,
|
|
67
72
|
contentHash: entry.contentHash,
|
|
68
73
|
byteSize: entry.byteSize,
|
|
69
74
|
...cloneOptional(entry.metadata),
|
|
70
|
-
};
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function normalizeEditorSceneAssetCatalogMetadata(metadata) {
|
|
78
|
+
if (!Array.isArray(metadata.materialSlots))
|
|
79
|
+
return metadata;
|
|
80
|
+
const analysis = readRecord(metadata.assetAnalysis);
|
|
81
|
+
const meshes = Array.isArray(analysis?.meshes) ? analysis.meshes : [];
|
|
82
|
+
const nodes = Array.isArray(analysis?.nodes) ? analysis.nodes : [];
|
|
83
|
+
const meshNames = new Map(meshes.flatMap((mesh) => {
|
|
84
|
+
const record = readRecord(mesh);
|
|
85
|
+
const meshIndex = readNonNegativeInteger(record?.meshIndex);
|
|
86
|
+
const name = readNonEmptyString(record?.name);
|
|
87
|
+
return meshIndex == null || !name ? [] : [[meshIndex, name]];
|
|
88
|
+
}));
|
|
89
|
+
const nodeMeshNames = new Map(nodes.flatMap((node) => {
|
|
90
|
+
const record = readRecord(node);
|
|
91
|
+
const nodeIndex = readNonNegativeInteger(record?.nodeIndex);
|
|
92
|
+
const name = readNonEmptyString(record?.meshName);
|
|
93
|
+
return nodeIndex == null || !name ? [] : [[nodeIndex, name]];
|
|
94
|
+
}));
|
|
95
|
+
const analysisTruncated = isAnalysisCollectionTruncated(analysis, 'meshCount', meshes.length)
|
|
96
|
+
|| isAnalysisCollectionTruncated(analysis, 'nodeCount', nodes.length);
|
|
97
|
+
const materialSlots = metadata.materialSlots.map((slot) => {
|
|
98
|
+
const record = readRecord(slot);
|
|
99
|
+
if (!record || readNonEmptyString(record.sourceMeshName))
|
|
100
|
+
return slot;
|
|
101
|
+
const meshIndex = readNonNegativeInteger(record.meshIndex);
|
|
102
|
+
if (meshIndex == null)
|
|
103
|
+
return slot;
|
|
104
|
+
const nodeIndex = readNonNegativeInteger(record.nodeIndex);
|
|
105
|
+
const sourceMeshName = meshNames.get(meshIndex)
|
|
106
|
+
?? (nodeIndex == null ? undefined : nodeMeshNames.get(nodeIndex))
|
|
107
|
+
?? (analysisTruncated ? inferLegacyMaterialSlotMeshName(record) : undefined);
|
|
108
|
+
return sourceMeshName ? { ...record, sourceMeshName } : slot;
|
|
109
|
+
});
|
|
110
|
+
return { ...metadata, materialSlots };
|
|
111
|
+
}
|
|
112
|
+
function inferLegacyMaterialSlotMeshName(slot) {
|
|
113
|
+
const label = readNonEmptyString(slot.label);
|
|
114
|
+
if (label) {
|
|
115
|
+
const baseLabel = label.replace(/\s+\/\s+Primitive\s+\d+$/, '').trim();
|
|
116
|
+
if (baseLabel)
|
|
117
|
+
return baseLabel;
|
|
118
|
+
}
|
|
119
|
+
return readNonEmptyString(slot.ownerNodePath)?.split('/').filter(Boolean).pop();
|
|
120
|
+
}
|
|
121
|
+
function isAnalysisCollectionTruncated(analysis, countField, returnedCount) {
|
|
122
|
+
const totalCount = readNonNegativeInteger(analysis?.[countField]);
|
|
123
|
+
return totalCount != null && totalCount > returnedCount;
|
|
71
124
|
}
|
|
72
125
|
function readExternalPlatformAssetId(value) {
|
|
73
126
|
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
@@ -77,6 +130,14 @@ function readExternalPlatformAssetId(value) {
|
|
|
77
130
|
function readNonEmptyString(value) {
|
|
78
131
|
return typeof value === 'string' && value.trim() ? value.trim() : null;
|
|
79
132
|
}
|
|
133
|
+
function readNonNegativeInteger(value) {
|
|
134
|
+
return Number.isInteger(value) && value >= 0 ? value : null;
|
|
135
|
+
}
|
|
136
|
+
function readRecord(value) {
|
|
137
|
+
return value && typeof value === 'object' && !Array.isArray(value)
|
|
138
|
+
? value
|
|
139
|
+
: undefined;
|
|
140
|
+
}
|
|
80
141
|
function cloneOptional(value) {
|
|
81
142
|
return value == null ? undefined : structuredClone(value);
|
|
82
143
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/asset-library/catalog.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,6BAA6B,CAK3C,cAA4F;IAE5F,OAAO,cAAc;SAClB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC;SAClG,GAAG,CAAC,iCAAiC,CAAC;SACtC,IAAI,CAAC,mCAAmC,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,sCAAsC,CAKpD,cAA4F;IAE5F,OAAO,cAAc;SAClB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC;SACzC,GAAG,CAAC,iCAAiC,CAAC;SACtC,IAAI,CAAC,mCAAmC,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,iCAAiC,CAK/C,KAAwE;IAExE,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,KAAK,SAAS;QACnC,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ;YACvB,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,KAAK,CAAC;IACZ,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,qCAAqC,CAAC,KAAK,CAAC,CAAC;IAC9D,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,OAAO;QACjB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,E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C5D,CAAC;AAED,SAAS,sCAAsC,CAAC,IAA0C;IACxF,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,SAAS,CAAC;AACrE,CAAC","sourcesContent":["import type {\n EditorSceneAssetLibraryItem,\n} from '../document/index';\nimport type {\n EditorSceneAssetCatalogEntry,\n} from './types';\n\nexport function createEditorSceneAssetLibrary<\n TExternal = unknown,\n TDefaults = unknown,\n TMaterialMode extends string = string,\n>(\n catalogEntries: readonly EditorSceneAssetCatalogEntry<TExternal, TDefaults, TMaterialMode>[],\n): Array<EditorSceneAssetLibraryItem<TDefaults, TExternal, TMaterialMode>> {\n return catalogEntries\n .filter((entry) => isEditorScenePlaceableAssetCatalogKind(entry.kind) && entry.placeable !== false)\n .map(createEditorSceneAssetLibraryItem)\n .sort(compareEditorSceneAssetLibraryItems);\n}\n\nexport function createEditorSceneAssetHydrationCatalog<\n TExternal = unknown,\n TDefaults = unknown,\n TMaterialMode extends string = string,\n>(\n catalogEntries: readonly EditorSceneAssetCatalogEntry<TExternal, TDefaults, TMaterialMode>[],\n): Array<EditorSceneAssetLibraryItem<TDefaults, TExternal, TMaterialMode>> {\n return catalogEntries\n .filter((entry) => entry.kind === 'model')\n .map(createEditorSceneAssetLibraryItem)\n .sort(compareEditorSceneAssetLibraryItems);\n}\n\nexport function createEditorSceneAssetLibraryItem<\n TExternal = unknown,\n TDefaults = unknown,\n TMaterialMode extends string = string,\n>(\n entry: EditorSceneAssetCatalogEntry<TExternal, TDefaults, TMaterialMode>,\n): EditorSceneAssetLibraryItem<TDefaults, TExternal, TMaterialMode> {\n const type = entry.kind === 'texture'\n ? 'texture'\n : entry.kind === 'prefab'\n ? 'prefab'\n : 'glb';\n const guid = readNonEmptyString(entry.guid);\n const metadata = createEditorSceneAssetCatalogMetadata(entry);\n return {\n id: entry.assetId,\n ...(guid ? { guid } : {}),\n assetId: entry.assetId,\n type,\n kind: entry.kind === 'texture'\n ? 'texture'\n : entry.kind === 'prefab'\n ? 'prefab'\n : 'model',\n displayName: entry.displayName,\n category: entry.category ?? inferEditorSceneAssetCategory(entry),\n warmupCount: entry.warmupCount,\n singleton: entry.singleton,\n materialMode: entry.materialMode,\n defaults: cloneOptional(entry.defaults),\n prefab: cloneOptional(entry.prefab),\n external: cloneOptional(entry.external),\n metadata,\n origin: entry.origin ?? 'project',\n dedupeKey: entry.dedupeKey ?? guid ?? readExternalPlatformAssetId(entry.external) ?? entry.assetId,\n placeable: entry.placeable !== false,\n };\n}\n\nexport function compareEditorSceneAssetLibraryItems(\n a: EditorSceneAssetLibraryItem,\n b: EditorSceneAssetLibraryItem,\n): number {\n return (a.category ?? '').localeCompare(b.category ?? '')\n || a.displayName.localeCompare(b.displayName)\n || a.assetId.localeCompare(b.assetId)\n || a.type.localeCompare(b.type);\n}\n\nfunction inferEditorSceneAssetCategory(entry: EditorSceneAssetCatalogEntry): string {\n if (entry.kind === 'prefab') return 'Prefab';\n if (entry.kind === 'texture') return 'Texture';\n if (entry.kind === 'image') return 'Image';\n if (entry.kind === 'sound') return 'Sound';\n return 'Model';\n}\n\nfunction createEditorSceneAssetCatalogMetadata(\n entry: EditorSceneAssetCatalogEntry,\n): Record<string, unknown> {\n return {\n originalFileName: entry.originalFileName,\n relativePath: entry.relativePath,\n codeKey: entry.codeKey,\n contentHash: entry.contentHash,\n byteSize: entry.byteSize,\n ...cloneOptional(entry.metadata),\n };\n}\n\nfunction readExternalPlatformAssetId(value: unknown): string | null {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return null;\n return readNonEmptyString((value as Record<string, unknown>).platformAssetId);\n}\n\nfunction readNonEmptyString(value: unknown): string | null {\n return typeof value === 'string' && value.trim() ? value.trim() : null;\n}\n\nfunction cloneOptional<T>(value: T | undefined): T | undefined {\n return value == null ? undefined : structuredClone(value);\n}\n\nfunction isEditorScenePlaceableAssetCatalogKind(kind: EditorSceneAssetCatalogEntry['kind']): boolean {\n return kind === 'model' || kind === 'prefab' || kind === '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'./types';\n\nexport function createEditorSceneAssetLibrary<\n TExternal = unknown,\n TDefaults = unknown,\n TMaterialMode extends string = string,\n>(\n catalogEntries: readonly EditorSceneAssetCatalogEntry<TExternal, TDefaults, TMaterialMode>[],\n): Array<EditorSceneAssetLibraryItem<TDefaults, TExternal, TMaterialMode>> {\n return catalogEntries\n .filter((entry) => isEditorScenePlaceableAssetCatalogKind(entry.kind) && entry.placeable !== false)\n .map(createEditorSceneAssetLibraryItem)\n .sort(compareEditorSceneAssetLibraryItems);\n}\n\nexport function createEditorSceneAssetHydrationCatalog<\n TExternal = unknown,\n TDefaults = unknown,\n TMaterialMode extends string = string,\n>(\n catalogEntries: readonly EditorSceneAssetCatalogEntry<TExternal, TDefaults, TMaterialMode>[],\n): Array<EditorSceneAssetLibraryItem<TDefaults, TExternal, TMaterialMode>> {\n return catalogEntries\n .filter((entry) => entry.kind === 'model')\n .map(createEditorSceneAssetLibraryItem)\n .sort(compareEditorSceneAssetLibraryItems);\n}\n\nexport function createEditorSceneAssetLibraryItem<\n TExternal = unknown,\n TDefaults = unknown,\n TMaterialMode extends string = string,\n>(\n entry: EditorSceneAssetCatalogEntry<TExternal, TDefaults, TMaterialMode>,\n): EditorSceneAssetLibraryItem<TDefaults, TExternal, TMaterialMode> {\n const type = entry.kind === 'texture'\n ? 'texture'\n : entry.kind === 'prefab'\n ? 'prefab'\n : 'glb';\n const guid = readNonEmptyString(entry.guid);\n const metadata = createEditorSceneAssetCatalogMetadata(entry);\n return {\n id: entry.assetId,\n ...(guid ? { guid } : {}),\n assetId: entry.assetId,\n type,\n kind: entry.kind === 'texture'\n ? 'texture'\n : entry.kind === 'prefab'\n ? 'prefab'\n : 'model',\n displayName: entry.displayName,\n category: entry.category ?? inferEditorSceneAssetCategory(entry),\n warmupCount: entry.warmupCount,\n singleton: entry.singleton,\n materialMode: entry.materialMode,\n defaults: cloneOptional(entry.defaults),\n prefab: cloneOptional(entry.prefab),\n external: cloneOptional(entry.external),\n metadata,\n origin: entry.origin ?? 'project',\n dedupeKey: entry.dedupeKey ?? guid ?? readExternalPlatformAssetId(entry.external) ?? entry.assetId,\n placeable: entry.placeable !== false,\n };\n}\n\nexport function compareEditorSceneAssetLibraryItems(\n a: EditorSceneAssetLibraryItem,\n b: EditorSceneAssetLibraryItem,\n): number {\n return (a.category ?? '').localeCompare(b.category ?? '')\n || a.displayName.localeCompare(b.displayName)\n || a.assetId.localeCompare(b.assetId)\n || a.type.localeCompare(b.type);\n}\n\nexport function resolveEditorSceneAssetLibraryItemRelativePath(\n asset: EditorSceneAssetLibraryItem,\n): string | undefined {\n return readNonEmptyString(asset.relativePath)\n ?? readNonEmptyString(asset.metadata?.relativePath)\n ?? undefined;\n}\n\nfunction inferEditorSceneAssetCategory(entry: EditorSceneAssetCatalogEntry): string {\n if (entry.kind === 'prefab') return 'Prefab';\n if (entry.kind === 'texture') return 'Texture';\n if (entry.kind === 'image') return 'Image';\n if (entry.kind === 'sound') return 'Sound';\n return 'Model';\n}\n\nfunction createEditorSceneAssetCatalogMetadata(\n entry: EditorSceneAssetCatalogEntry,\n): Record<string, unknown> {\n return normalizeEditorSceneAssetCatalogMetadata({\n originalFileName: entry.originalFileName,\n relativePath: entry.relativePath,\n codeKey: entry.codeKey,\n contentHash: entry.contentHash,\n byteSize: entry.byteSize,\n ...cloneOptional(entry.metadata),\n });\n}\n\nfunction normalizeEditorSceneAssetCatalogMetadata(\n metadata: Record<string, unknown>,\n): Record<string, unknown> {\n if (!Array.isArray(metadata.materialSlots)) return metadata;\n const analysis = readRecord(metadata.assetAnalysis);\n const meshes = Array.isArray(analysis?.meshes) ? analysis.meshes : [];\n const nodes = Array.isArray(analysis?.nodes) ? analysis.nodes : [];\n const meshNames = new Map(meshes.flatMap((mesh) => {\n const record = readRecord(mesh);\n const meshIndex = readNonNegativeInteger(record?.meshIndex);\n const name = readNonEmptyString(record?.name);\n return meshIndex == null || !name ? [] : [[meshIndex, name] as const];\n }));\n const nodeMeshNames = new Map(nodes.flatMap((node) => {\n const record = readRecord(node);\n const nodeIndex = readNonNegativeInteger(record?.nodeIndex);\n const name = readNonEmptyString(record?.meshName);\n return nodeIndex == null || !name ? [] : [[nodeIndex, name] as const];\n }));\n const analysisTruncated = isAnalysisCollectionTruncated(analysis, 'meshCount', meshes.length)\n || isAnalysisCollectionTruncated(analysis, 'nodeCount', nodes.length);\n const materialSlots = metadata.materialSlots.map((slot) => {\n const record = readRecord(slot);\n if (!record || readNonEmptyString(record.sourceMeshName)) return slot;\n const meshIndex = readNonNegativeInteger(record.meshIndex);\n if (meshIndex == null) return slot;\n const nodeIndex = readNonNegativeInteger(record.nodeIndex);\n const sourceMeshName = meshNames.get(meshIndex)\n ?? (nodeIndex == null ? undefined : nodeMeshNames.get(nodeIndex))\n ?? (analysisTruncated ? inferLegacyMaterialSlotMeshName(record) : undefined);\n return sourceMeshName ? { ...record, sourceMeshName } : slot;\n });\n return { ...metadata, materialSlots };\n}\n\nfunction inferLegacyMaterialSlotMeshName(slot: Record<string, unknown>): string | undefined {\n const label = readNonEmptyString(slot.label);\n if (label) {\n const baseLabel = label.replace(/\\s+\\/\\s+Primitive\\s+\\d+$/, '').trim();\n if (baseLabel) return baseLabel;\n }\n return readNonEmptyString(slot.ownerNodePath)?.split('/').filter(Boolean).pop();\n}\n\nfunction isAnalysisCollectionTruncated(\n analysis: Record<string, unknown> | undefined,\n countField: 'meshCount' | 'nodeCount',\n returnedCount: number,\n): boolean {\n const totalCount = readNonNegativeInteger(analysis?.[countField]);\n return totalCount != null && totalCount > returnedCount;\n}\n\nfunction readExternalPlatformAssetId(value: unknown): string | null {\n if (!value || typeof value !== 'object' || Array.isArray(value)) return null;\n return readNonEmptyString((value as Record<string, unknown>).platformAssetId);\n}\n\nfunction readNonEmptyString(value: unknown): string | null {\n return typeof value === 'string' && value.trim() ? value.trim() : null;\n}\n\nfunction readNonNegativeInteger(value: unknown): number | null {\n return Number.isInteger(value) && (value as number) >= 0 ? value as number : null;\n}\n\nfunction readRecord(value: unknown): Record<string, unknown> | undefined {\n return value && typeof value === 'object' && !Array.isArray(value)\n ? value as Record<string, unknown>\n : undefined;\n}\n\nfunction cloneOptional<T>(value: T | undefined): T | undefined {\n return value == null ? undefined : structuredClone(value);\n}\n\nfunction isEditorScenePlaceableAssetCatalogKind(kind: EditorSceneAssetCatalogEntry['kind']): boolean {\n return kind === 'model' || kind === 'prefab' || kind === 'texture';\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/asset-library/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,uCAAwC,SAAQ,gBAAgB;IAC/E,IAAI,EAAE,KAAK,CAAC;IACZ,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,KAAK,kCAAkC,CAAC,MAAM,SAAS,gBAAgB,IACrE,MAAM,SAAS,OAAO,GAClB,KAAK,SAAS,MAAM,CAAC,MAAM,CAAC,GAC1B,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAC7D,KAAK,GACL,MAAM,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;CAAE,GAClE,MAAM,GACR,KAAK,CAAC;A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AAS,CAAC,KAAK,CAAC,GAC7D,KAAK,GACL,MAAM,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;CAAE,GAClE,MAAM,GACR,KAAK,CAAC;AAEZ,MAAM,MAAM,0BAA0B,CAAC,MAAM,SAAS,gBAAgB,IAClE,uCAAuC,GACvC,kCAAkC,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,MAAM,6BAA6B,CAAC,SAAS,SAAS,mBAAmB,IAC7E,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,GAAG;IAC1B,MAAM,EAAE,KAAK,CAAC,0BAA0B,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CACxE,CAAC;AAEJ,wBAAgB,+BAA+B,CAAC,SAAS,SAAS,mBAAmB,EACnF,WAAW,EAAE,SAAS,EACtB,YAAY,EAAE,SAAS,2BAA2B,EAAE,GACnD,SAAS,CAwBX;AA6BD,wBAAgB,kCAAkC,CAAC,SAAS,SAAS,mBAAmB,EACtF,WAAW,EAAE,SAAS,EACtB,YAAY,EAAE,SAAS,2BAA2B,EAAE,GACnD,6BAA6B,CAAC,SAAS,CAAC,CAmB1C;AAED,wBAAgB,iDAAiD,CAC/D,WAAW,EAAE,mBAAmB,EAChC,YAAY,EAAE,SAAS,2BAA2B,EAAE,GACnD,IAAI,CAYN;AAmED,wBAAgB,oCAAoC,CAAC,MAAM,SAAS,gBAAgB,EAClF,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,2BAA2B,GACvC,MAAM,CAcR"}
|
|
@@ -2,15 +2,57 @@ export function enrichEditorSceneDocumentAssets(editorScene, assetLibrary) {
|
|
|
2
2
|
const libraryByAssetId = new Map(assetLibrary
|
|
3
3
|
.filter((asset) => asset.type === 'glb')
|
|
4
4
|
.map((asset) => [asset.assetId, asset]));
|
|
5
|
+
const hydratedAssets = editorScene.assets.map((asset) => {
|
|
6
|
+
if (asset.type !== 'glb')
|
|
7
|
+
return asset;
|
|
8
|
+
const libraryItem = libraryByAssetId.get(asset.id);
|
|
9
|
+
return libraryItem ? mergeEditorSceneAssetWithLibraryItem(asset, libraryItem) : asset;
|
|
10
|
+
});
|
|
11
|
+
const includedAssetIds = new Set(editorScene.assets.map(asset => asset.id));
|
|
12
|
+
for (const assetId of listEditorSceneReferencedModelAssetIds(editorScene)) {
|
|
13
|
+
if (includedAssetIds.has(assetId))
|
|
14
|
+
continue;
|
|
15
|
+
const libraryItem = libraryByAssetId.get(assetId);
|
|
16
|
+
if (!libraryItem)
|
|
17
|
+
continue;
|
|
18
|
+
hydratedAssets.push(mergeEditorSceneAssetWithLibraryItem({
|
|
19
|
+
id: assetId,
|
|
20
|
+
type: 'glb',
|
|
21
|
+
}, libraryItem));
|
|
22
|
+
includedAssetIds.add(assetId);
|
|
23
|
+
}
|
|
5
24
|
return {
|
|
6
25
|
...editorScene,
|
|
7
|
-
assets:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
26
|
+
assets: hydratedAssets,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function listEditorSceneReferencedModelAssetIds(editorScene) {
|
|
30
|
+
const assetIds = [];
|
|
31
|
+
const seenAssetIds = new Set();
|
|
32
|
+
const append = (value) => {
|
|
33
|
+
const assetId = readNonEmptyString(value);
|
|
34
|
+
if (!assetId || seenAssetIds.has(assetId))
|
|
35
|
+
return;
|
|
36
|
+
seenAssetIds.add(assetId);
|
|
37
|
+
assetIds.push(assetId);
|
|
13
38
|
};
|
|
39
|
+
for (const asset of editorScene.assets) {
|
|
40
|
+
if (asset.type !== 'prefab')
|
|
41
|
+
continue;
|
|
42
|
+
append(asset.prefab?.sourceAssetId);
|
|
43
|
+
for (const node of asset.prefab?.nodes ?? [])
|
|
44
|
+
append(node.sourceAssetId);
|
|
45
|
+
}
|
|
46
|
+
for (const gameObject of editorScene.scene.gameObjects) {
|
|
47
|
+
for (const component of gameObject.components) {
|
|
48
|
+
if (component.type === 'ModelRenderer')
|
|
49
|
+
append(component.assetId);
|
|
50
|
+
}
|
|
51
|
+
append(gameObject.prefab?.sourceAssetId);
|
|
52
|
+
const instance = readRecord(readRecord(gameObject)?.instance);
|
|
53
|
+
append(instance?.assetId);
|
|
54
|
+
}
|
|
55
|
+
return assetIds;
|
|
14
56
|
}
|
|
15
57
|
export function dehydrateEditorSceneDocumentAssets(editorScene, assetLibrary) {
|
|
16
58
|
assertEditorSceneDocumentAssetCatalogCompleteness(editorScene, assetLibrary);
|