af-motion 0.0.0-stage → 1.0.0
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/CHANGELOG.md +33 -0
- package/LICENSE +201 -0
- package/README.md +203 -3
- package/RELEASE_NOTES.md +115 -0
- package/bin/af-motion.js +16 -0
- package/bin/mcp-server.js +21 -0
- package/dist/3d/adapter.d.ts +29 -0
- package/dist/3d/assets/cache.d.ts +71 -0
- package/dist/3d/assets/index.d.ts +10 -0
- package/dist/3d/assets/inspection.d.ts +19 -0
- package/dist/3d/assets/loaders.d.ts +30 -0
- package/dist/3d/assets/manager.d.ts +69 -0
- package/dist/3d/assets/scene-integration.d.ts +23 -0
- package/dist/3d/assets/types.d.ts +80 -0
- package/dist/3d/assets/validation.d.ts +12 -0
- package/dist/3d/camera/index.d.ts +7 -0
- package/dist/3d/camera/presets.d.ts +8 -0
- package/dist/3d/camera/transitions.d.ts +19 -0
- package/dist/3d/camera/types.d.ts +37 -0
- package/dist/3d/camera/validation.d.ts +9 -0
- package/dist/3d/capabilities.d.ts +11 -0
- package/dist/3d/composition/fallback.d.ts +20 -0
- package/dist/3d/composition/generation.d.ts +24 -0
- package/dist/3d/composition/index.d.ts +12 -0
- package/dist/3d/composition/quality.d.ts +35 -0
- package/dist/3d/composition/recipes.d.ts +34 -0
- package/dist/3d/composition/types.d.ts +88 -0
- package/dist/3d/composition/unified.d.ts +18 -0
- package/dist/3d/environment/index.d.ts +6 -0
- package/dist/3d/environment/presets.d.ts +8 -0
- package/dist/3d/environment/types.d.ts +36 -0
- package/dist/3d/environment/validation.d.ts +9 -0
- package/dist/3d/geometry/cache.d.ts +37 -0
- package/dist/3d/geometry/generators.d.ts +24 -0
- package/dist/3d/geometry/hash.d.ts +10 -0
- package/dist/3d/geometry/index.d.ts +9 -0
- package/dist/3d/geometry/three-adapter.d.ts +15 -0
- package/dist/3d/geometry/types.d.ts +120 -0
- package/dist/3d/geometry/validation.d.ts +6 -0
- package/dist/3d/index.d.ts +32 -0
- package/dist/3d/interaction/camera-controls.d.ts +58 -0
- package/dist/3d/interaction/index.d.ts +8 -0
- package/dist/3d/interaction/manager.d.ts +61 -0
- package/dist/3d/interaction/presets.d.ts +9 -0
- package/dist/3d/interaction/raycaster.d.ts +20 -0
- package/dist/3d/interaction/types.d.ts +78 -0
- package/dist/3d/lighting/index.d.ts +6 -0
- package/dist/3d/lighting/presets.d.ts +8 -0
- package/dist/3d/lighting/types.d.ts +31 -0
- package/dist/3d/lighting/validation.d.ts +17 -0
- package/dist/3d/materials/bridge.d.ts +11 -0
- package/dist/3d/materials/index.d.ts +7 -0
- package/dist/3d/materials/presets.d.ts +9 -0
- package/dist/3d/materials/types.d.ts +43 -0
- package/dist/3d/materials/validation.d.ts +9 -0
- package/dist/3d/morphing/animator.d.ts +19 -0
- package/dist/3d/morphing/correspondence.d.ts +32 -0
- package/dist/3d/morphing/geometry.d.ts +28 -0
- package/dist/3d/morphing/index.d.ts +16 -0
- package/dist/3d/morphing/interpolation.d.ts +45 -0
- package/dist/3d/morphing/morph.d.ts +18 -0
- package/dist/3d/morphing/presets.d.ts +31 -0
- package/dist/3d/morphing/react.d.ts +29 -0
- package/dist/3d/morphing/topology.d.ts +34 -0
- package/dist/3d/morphing/types.d.ts +138 -0
- package/dist/3d/morphing/validation.d.ts +19 -0
- package/dist/3d/optimization/analysis.d.ts +14 -0
- package/dist/3d/optimization/colliders.d.ts +16 -0
- package/dist/3d/optimization/geometry.d.ts +22 -0
- package/dist/3d/optimization/hierarchy.d.ts +14 -0
- package/dist/3d/optimization/index.d.ts +33 -0
- package/dist/3d/optimization/lod.d.ts +13 -0
- package/dist/3d/optimization/materials.d.ts +12 -0
- package/dist/3d/optimization/recommendations.d.ts +13 -0
- package/dist/3d/optimization/skeleton.d.ts +20 -0
- package/dist/3d/optimization/types.d.ts +252 -0
- package/dist/3d/physics/benchmark.d.ts +76 -0
- package/dist/3d/physics/body/inertia.d.ts +61 -0
- package/dist/3d/physics/collision/ccd.d.ts +26 -0
- package/dist/3d/physics/collision/narrowphase.d.ts +15 -0
- package/dist/3d/physics/collision/shapes.d.ts +45 -0
- package/dist/3d/physics/constraints/advanced.d.ts +40 -0
- package/dist/3d/physics/constraints/solver.d.ts +34 -0
- package/dist/3d/physics/constraints/types.d.ts +106 -0
- package/dist/3d/physics/events.d.ts +34 -0
- package/dist/3d/physics/index.d.ts +29 -0
- package/dist/3d/physics/material.d.ts +27 -0
- package/dist/3d/physics/math.d.ts +79 -0
- package/dist/3d/physics/soft/cloth.d.ts +12 -0
- package/dist/3d/physics/soft/collision.d.ts +12 -0
- package/dist/3d/physics/soft/gpu.d.ts +19 -0
- package/dist/3d/physics/soft/pbd.d.ts +20 -0
- package/dist/3d/physics/soft/rope.d.ts +16 -0
- package/dist/3d/physics/soft/soft-body.d.ts +12 -0
- package/dist/3d/physics/soft/types.d.ts +212 -0
- package/dist/3d/physics/solver/integrators.d.ts +25 -0
- package/dist/3d/physics/solver/types.d.ts +28 -0
- package/dist/3d/physics/spatial/spatial-hash.d.ts +51 -0
- package/dist/3d/physics/types.d.ts +579 -0
- package/dist/3d/physics/world.d.ts +106 -0
- package/dist/3d/r3f.d.ts +34 -0
- package/dist/3d/scene.d.ts +8 -0
- package/dist/3d/schema.d.ts +739 -0
- package/dist/3d/schemas/ai-integration.d.ts +201 -0
- package/dist/3d/schemas/correction.d.ts +11 -0
- package/dist/3d/schemas/index.d.ts +12 -0
- package/dist/3d/schemas/schemas.d.ts +361 -0
- package/dist/3d/schemas/serialization.d.ts +22 -0
- package/dist/3d/schemas/types.d.ts +199 -0
- package/dist/3d/schemas/validation.d.ts +33 -0
- package/dist/3d/scroll/controller.d.ts +32 -0
- package/dist/3d/scroll/index.d.ts +6 -0
- package/dist/3d/scroll/presets.d.ts +9 -0
- package/dist/3d/scroll/types.d.ts +53 -0
- package/dist/3d/terrain/biomes.d.ts +18 -0
- package/dist/3d/terrain/chunks.d.ts +20 -0
- package/dist/3d/terrain/erosion.d.ts +15 -0
- package/dist/3d/terrain/heightmap.d.ts +27 -0
- package/dist/3d/terrain/index.d.ts +18 -0
- package/dist/3d/terrain/materials.d.ts +20 -0
- package/dist/3d/terrain/noise.d.ts +25 -0
- package/dist/3d/terrain/physics.d.ts +34 -0
- package/dist/3d/terrain/terrain.d.ts +12 -0
- package/dist/3d/terrain/types.d.ts +235 -0
- package/dist/3d/terrain/vegetation.d.ts +14 -0
- package/dist/3d/types.d.ts +176 -0
- package/dist/3d/world/hydrology.d.ts +12 -0
- package/dist/3d/world/index.d.ts +15 -0
- package/dist/3d/world/lighting.d.ts +16 -0
- package/dist/3d/world/pipeline.d.ts +20 -0
- package/dist/3d/world/population.d.ts +12 -0
- package/dist/3d/world/presets.d.ts +11 -0
- package/dist/3d/world/streaming.d.ts +13 -0
- package/dist/3d/world/types.d.ts +272 -0
- package/dist/3d/world/world.d.ts +64 -0
- package/dist/backgrounds/advanced-gradient.d.ts +32 -0
- package/dist/backgrounds/atmospheric-backgrounds.d.ts +79 -0
- package/dist/backgrounds/aurora.d.ts +24 -0
- package/dist/backgrounds/cosmic-background.d.ts +31 -0
- package/dist/backgrounds/energy-effects.d.ts +78 -0
- package/dist/backgrounds/floating-orbs.d.ts +26 -0
- package/dist/backgrounds/fluid-backgrounds.d.ts +72 -0
- package/dist/backgrounds/geometric-backgrounds.d.ts +78 -0
- package/dist/backgrounds/gradient.d.ts +20 -0
- package/dist/backgrounds/grid.d.ts +22 -0
- package/dist/backgrounds/internal/canvas-lifecycle.d.ts +29 -0
- package/dist/backgrounds/noise.d.ts +20 -0
- package/dist/backgrounds/particle-background.d.ts +37 -0
- package/dist/backgrounds/particle-field.d.ts +22 -0
- package/dist/backgrounds/spotlight.d.ts +20 -0
- package/dist/backgrounds/wave.d.ts +22 -0
- package/dist/catalogue.d.ts +227 -0
- package/dist/catalogue.js +4 -0
- package/dist/chunks/catalogue-ZmbeEdRo.js +59850 -0
- package/dist/chunks/core-animation-CeiI_TEe.js +1394 -0
- package/dist/chunks/motion-choreography-DC6LWvDk.js +4089 -0
- package/dist/chunks/pointer-capture-lrnKAl2I.js +158 -0
- package/dist/chunks/safe-json-D5j34GEB.js +62 -0
- package/dist/chunks/scroll-velocity-BNUHaS0-.js +904 -0
- package/dist/cli/commands/doctor.d.ts +9 -0
- package/dist/cli/commands/example.d.ts +9 -0
- package/dist/cli/commands/info.d.ts +8 -0
- package/dist/cli/commands/init.d.ts +9 -0
- package/dist/cli/commands/presets.d.ts +10 -0
- package/dist/cli/commands/validate.d.ts +9 -0
- package/dist/cli/index.d.ts +22 -0
- package/dist/cli/types.d.ts +115 -0
- package/dist/cli/utils/safety.d.ts +11 -0
- package/dist/cli/utils/templates.d.ts +16 -0
- package/dist/cli/utils/terminal.d.ts +29 -0
- package/dist/cli.js +825 -0
- package/dist/core/adaptive-motion.d.ts +100 -0
- package/dist/core/adaptive-quality/controller.d.ts +61 -0
- package/dist/core/adaptive-quality/index.d.ts +13 -0
- package/dist/core/adaptive-quality/metrics.d.ts +33 -0
- package/dist/core/adaptive-quality/policies.d.ts +40 -0
- package/dist/core/adaptive-quality/profile.d.ts +58 -0
- package/dist/core/adaptive-quality/react.d.ts +57 -0
- package/dist/core/adaptive-quality/recommendation.d.ts +12 -0
- package/dist/core/adaptive-quality/resolution.d.ts +22 -0
- package/dist/core/adaptive-quality/types.d.ts +362 -0
- package/dist/core/advanced-motion/adapters.d.ts +20 -0
- package/dist/core/advanced-motion/controller.d.ts +52 -0
- package/dist/core/advanced-motion/index.d.ts +12 -0
- package/dist/core/advanced-motion/recipes.d.ts +16 -0
- package/dist/core/advanced-motion/timeline.d.ts +35 -0
- package/dist/core/advanced-motion/types.d.ts +174 -0
- package/dist/core/advanced-motion/validation.d.ts +11 -0
- package/dist/core/agent-workflows/agent-registry.d.ts +21 -0
- package/dist/core/agent-workflows/agents/accessibility-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/composition-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/design-to-motion-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/index.d.ts +13 -0
- package/dist/core/agent-workflows/agents/motion-intelligence-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/performance-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/scene-generation-agent.d.ts +9 -0
- package/dist/core/agent-workflows/collaboration-planner.d.ts +38 -0
- package/dist/core/agent-workflows/collaboration-workflows.d.ts +83 -0
- package/dist/core/agent-workflows/communication.d.ts +29 -0
- package/dist/core/agent-workflows/conflict-resolver.d.ts +25 -0
- package/dist/core/agent-workflows/context.d.ts +36 -0
- package/dist/core/agent-workflows/execution-engine.d.ts +30 -0
- package/dist/core/agent-workflows/index.d.ts +20 -0
- package/dist/core/agent-workflows/orchestration-types.d.ts +144 -0
- package/dist/core/agent-workflows/orchestrator.d.ts +29 -0
- package/dist/core/agent-workflows/react.d.ts +71 -0
- package/dist/core/agent-workflows/shared-context.d.ts +36 -0
- package/dist/core/agent-workflows/task-planner.d.ts +42 -0
- package/dist/core/agent-workflows/templates.d.ts +14 -0
- package/dist/core/agent-workflows/tool-registry.d.ts +24 -0
- package/dist/core/agent-workflows/types.d.ts +167 -0
- package/dist/core/ai-ecosystem/capability-registry.d.ts +23 -0
- package/dist/core/ai-ecosystem/index.d.ts +13 -0
- package/dist/core/ai-ecosystem/pipeline.d.ts +19 -0
- package/dist/core/ai-ecosystem/provider.d.ts +19 -0
- package/dist/core/ai-ecosystem/types.d.ts +69 -0
- package/dist/core/ai-motion-intelligence/engine.d.ts +51 -0
- package/dist/core/ai-motion-intelligence/explanation-engine.d.ts +8 -0
- package/dist/core/ai-motion-intelligence/index.d.ts +15 -0
- package/dist/core/ai-motion-intelligence/intent-classifier.d.ts +14 -0
- package/dist/core/ai-motion-intelligence/knowledge-base.d.ts +12 -0
- package/dist/core/ai-motion-intelligence/provider.d.ts +31 -0
- package/dist/core/ai-motion-intelligence/quality-evaluator.d.ts +9 -0
- package/dist/core/ai-motion-intelligence/react.d.ts +14 -0
- package/dist/core/ai-motion-intelligence/recommendation-engine.d.ts +16 -0
- package/dist/core/ai-motion-intelligence/types.d.ts +134 -0
- package/dist/core/ai-motion-registry.d.ts +201 -0
- package/dist/core/animate.d.ts +57 -0
- package/dist/core/animation-intelligence/engine.d.ts +42 -0
- package/dist/core/animation-intelligence/index.d.ts +11 -0
- package/dist/core/animation-intelligence/intent.d.ts +15 -0
- package/dist/core/animation-intelligence/schema.d.ts +42 -0
- package/dist/core/animation-intelligence/scoring.d.ts +15 -0
- package/dist/core/animation-intelligence/types.d.ts +91 -0
- package/dist/core/animation-parallel.d.ts +37 -0
- package/dist/core/animation-presets.d.ts +56 -0
- package/dist/core/animation-sequence.d.ts +37 -0
- package/dist/core/animation-timeline.d.ts +46 -0
- package/dist/core/animation.d.ts +48 -0
- package/dist/core/built-in-palettes.d.ts +331 -0
- package/dist/core/choreography-intelligence/bridge.d.ts +43 -0
- package/dist/core/choreography-intelligence/generator.d.ts +11 -0
- package/dist/core/choreography-intelligence/index.d.ts +11 -0
- package/dist/core/choreography-intelligence/intent.d.ts +11 -0
- package/dist/core/choreography-intelligence/schema.d.ts +76 -0
- package/dist/core/choreography-intelligence/types.d.ts +87 -0
- package/dist/core/composition.d.ts +170 -0
- package/dist/core/configuration-corrector.d.ts +85 -0
- package/dist/core/design-intelligence.d.ts +199 -0
- package/dist/core/design-system.d.ts +206 -0
- package/dist/core/design-to-motion/design-analyzer.d.ts +13 -0
- package/dist/core/design-to-motion/engine.d.ts +34 -0
- package/dist/core/design-to-motion/generator.d.ts +16 -0
- package/dist/core/design-to-motion/index.d.ts +15 -0
- package/dist/core/design-to-motion/input-parser.d.ts +17 -0
- package/dist/core/design-to-motion/motion-planner.d.ts +11 -0
- package/dist/core/design-to-motion/presets.d.ts +11 -0
- package/dist/core/design-to-motion/react.d.ts +13 -0
- package/dist/core/design-to-motion/types.d.ts +221 -0
- package/dist/core/design-to-motion/validator.d.ts +13 -0
- package/dist/core/device-capabilities/classification.d.ts +25 -0
- package/dist/core/device-capabilities/detection.d.ts +27 -0
- package/dist/core/device-capabilities/graphics.d.ts +22 -0
- package/dist/core/device-capabilities/hardware.d.ts +27 -0
- package/dist/core/device-capabilities/index.d.ts +14 -0
- package/dist/core/device-capabilities/monitor.d.ts +19 -0
- package/dist/core/device-capabilities/react.d.ts +24 -0
- package/dist/core/device-capabilities/runtime.d.ts +11 -0
- package/dist/core/device-capabilities/scoring.d.ts +18 -0
- package/dist/core/device-capabilities/types.d.ts +171 -0
- package/dist/core/effect-composer.d.ts +41 -0
- package/dist/core/generation-pipeline.d.ts +135 -0
- package/dist/core/inertia.d.ts +30 -0
- package/dist/core/interactions/cursor-controller.d.ts +9 -0
- package/dist/core/interactions/custom-gestures.d.ts +28 -0
- package/dist/core/interactions/device-capabilities.d.ts +12 -0
- package/dist/core/interactions/drag-controller.d.ts +60 -0
- package/dist/core/interactions/errors.d.ts +13 -0
- package/dist/core/interactions/gesture-classifier.d.ts +43 -0
- package/dist/core/interactions/gesture-intelligence-controller.d.ts +9 -0
- package/dist/core/interactions/gesture-recognizers.d.ts +160 -0
- package/dist/core/interactions/gesture-sequence.d.ts +9 -0
- package/dist/core/interactions/index.d.ts +27 -0
- package/dist/core/interactions/input-normalizer.d.ts +8 -0
- package/dist/core/interactions/interaction-manager.d.ts +43 -0
- package/dist/core/interactions/keyboard-manager.d.ts +16 -0
- package/dist/core/interactions/magnetic-controller.d.ts +9 -0
- package/dist/core/interactions/magnetic-group.d.ts +11 -0
- package/dist/core/interactions/multitouch-controller.d.ts +62 -0
- package/dist/core/interactions/pointer-controller.d.ts +34 -0
- package/dist/core/interactions/pointer-tracker.d.ts +32 -0
- package/dist/core/interactions/prioritizer.d.ts +17 -0
- package/dist/core/interactions/touch-controller.d.ts +35 -0
- package/dist/core/interactions/types.d.ts +710 -0
- package/dist/core/layout/controller.d.ts +56 -0
- package/dist/core/layout/flip.d.ts +21 -0
- package/dist/core/layout/group.d.ts +46 -0
- package/dist/core/layout/index.d.ts +12 -0
- package/dist/core/layout/measure.d.ts +30 -0
- package/dist/core/layout/presets.d.ts +24 -0
- package/dist/core/layout/types.d.ts +189 -0
- package/dist/core/microinteractions/generator.d.ts +11 -0
- package/dist/core/microinteractions/index.d.ts +11 -0
- package/dist/core/microinteractions/intent.d.ts +11 -0
- package/dist/core/microinteractions/runtime.d.ts +25 -0
- package/dist/core/microinteractions/schema.d.ts +82 -0
- package/dist/core/microinteractions/types.d.ts +79 -0
- package/dist/core/motion-choreography.d.ts +163 -0
- package/dist/core/motion-dna.d.ts +129 -0
- package/dist/core/motion-path/animator.d.ts +13 -0
- package/dist/core/motion-path/engine.d.ts +27 -0
- package/dist/core/motion-path/follower.d.ts +8 -0
- package/dist/core/motion-path/index.d.ts +15 -0
- package/dist/core/motion-path/lut.d.ts +33 -0
- package/dist/core/motion-path/parser.d.ts +26 -0
- package/dist/core/motion-path/segments.d.ts +16 -0
- package/dist/core/motion-path/types.d.ts +178 -0
- package/dist/core/motion-path/vector3.d.ts +49 -0
- package/dist/core/motion-recipe.d.ts +171 -0
- package/dist/core/motion-states.d.ts +43 -0
- package/dist/core/motion-validation/consistency.d.ts +11 -0
- package/dist/core/motion-validation/index.d.ts +11 -0
- package/dist/core/motion-validation/optimizer.d.ts +11 -0
- package/dist/core/motion-validation/schema.d.ts +81 -0
- package/dist/core/motion-validation/types.d.ts +53 -0
- package/dist/core/motion-validation/validator.d.ts +11 -0
- package/dist/core/motion.d.ts +7 -0
- package/dist/core/natural-motion.d.ts +110 -0
- package/dist/core/palette-colors.d.ts +16 -0
- package/dist/core/palette-styles.d.ts +12 -0
- package/dist/core/palettes.d.ts +59 -0
- package/dist/core/performance-intelligence/conflicts.d.ts +21 -0
- package/dist/core/performance-intelligence/context.d.ts +48 -0
- package/dist/core/performance-intelligence/coordinator.d.ts +84 -0
- package/dist/core/performance-intelligence/decisions.d.ts +17 -0
- package/dist/core/performance-intelligence/history.d.ts +44 -0
- package/dist/core/performance-intelligence/index.d.ts +15 -0
- package/dist/core/performance-intelligence/policies.d.ts +59 -0
- package/dist/core/performance-intelligence/react.d.ts +78 -0
- package/dist/core/performance-intelligence/report.d.ts +16 -0
- package/dist/core/performance-intelligence/scoring.d.ts +16 -0
- package/dist/core/performance-intelligence/types.d.ts +203 -0
- package/dist/core/performance-optimizer/bottlenecks.d.ts +9 -0
- package/dist/core/performance-optimizer/index.d.ts +13 -0
- package/dist/core/performance-optimizer/optimizer.d.ts +43 -0
- package/dist/core/performance-optimizer/profiler.d.ts +38 -0
- package/dist/core/performance-optimizer/react.d.ts +55 -0
- package/dist/core/performance-optimizer/strategies.d.ts +22 -0
- package/dist/core/performance-optimizer/types.d.ts +227 -0
- package/dist/core/performance-optimizer/workers.d.ts +27 -0
- package/dist/core/physics/collision-constraints.d.ts +15 -0
- package/dist/core/physics/collision-detection.d.ts +93 -0
- package/dist/core/physics/collision-response.d.ts +24 -0
- package/dist/core/physics/collision-types.d.ts +381 -0
- package/dist/core/physics/collision-world.d.ts +11 -0
- package/dist/core/physics/composition-behaviors.d.ts +97 -0
- package/dist/core/physics/composition-choreography.d.ts +14 -0
- package/dist/core/physics/composition-engine.d.ts +25 -0
- package/dist/core/physics/composition-recipes.d.ts +46 -0
- package/dist/core/physics/composition-types.d.ts +265 -0
- package/dist/core/physics/composition-validation.d.ts +33 -0
- package/dist/core/physics/index.d.ts +37 -0
- package/dist/core/physics/inertia-animation.d.ts +11 -0
- package/dist/core/physics/inertia-math.d.ts +56 -0
- package/dist/core/physics/inertia-presets.d.ts +25 -0
- package/dist/core/physics/inertia-simulation.d.ts +11 -0
- package/dist/core/physics/inertia-types.d.ts +355 -0
- package/dist/core/physics/inertia-validation.d.ts +22 -0
- package/dist/core/physics/math.d.ts +99 -0
- package/dist/core/physics/presets.d.ts +28 -0
- package/dist/core/physics/simulation.d.ts +11 -0
- package/dist/core/physics/spring-animation.d.ts +11 -0
- package/dist/core/physics/spring-math.d.ts +47 -0
- package/dist/core/physics/spring-presets.d.ts +29 -0
- package/dist/core/physics/spring-simulation.d.ts +11 -0
- package/dist/core/physics/spring-types.d.ts +350 -0
- package/dist/core/physics/spring-validation.d.ts +22 -0
- package/dist/core/physics/stepper.d.ts +24 -0
- package/dist/core/physics/types.d.ts +280 -0
- package/dist/core/physics/validation.d.ts +62 -0
- package/dist/core/pointer-capture.d.ts +7 -0
- package/dist/core/reference-analysis/index.d.ts +10 -0
- package/dist/core/reference-analysis/interpreter.d.ts +12 -0
- package/dist/core/reference-analysis/planner.d.ts +15 -0
- package/dist/core/reference-analysis/specification.d.ts +14 -0
- package/dist/core/reference-analysis/types.d.ts +244 -0
- package/dist/core/resource-intelligence/cache.d.ts +43 -0
- package/dist/core/resource-intelligence/gpu.d.ts +19 -0
- package/dist/core/resource-intelligence/index.d.ts +16 -0
- package/dist/core/resource-intelligence/leaks.d.ts +13 -0
- package/dist/core/resource-intelligence/memory.d.ts +27 -0
- package/dist/core/resource-intelligence/pooling.d.ts +32 -0
- package/dist/core/resource-intelligence/pressure.d.ts +32 -0
- package/dist/core/resource-intelligence/react.d.ts +63 -0
- package/dist/core/resource-intelligence/registry.d.ts +33 -0
- package/dist/core/resource-intelligence/reports.d.ts +14 -0
- package/dist/core/resource-intelligence/types.d.ts +232 -0
- package/dist/core/scene-generation/engine.d.ts +31 -0
- package/dist/core/scene-generation/generator.d.ts +14 -0
- package/dist/core/scene-generation/index.d.ts +14 -0
- package/dist/core/scene-generation/input-parser.d.ts +24 -0
- package/dist/core/scene-generation/presets.d.ts +10 -0
- package/dist/core/scene-generation/react.d.ts +13 -0
- package/dist/core/scene-generation/scene-analyzer.d.ts +9 -0
- package/dist/core/scene-generation/scene-planner.d.ts +12 -0
- package/dist/core/scene-generation/types.d.ts +236 -0
- package/dist/core/scene-generation/validator.d.ts +18 -0
- package/dist/core/schema.d.ts +185 -0
- package/dist/core/scroll-intelligence/generator.d.ts +11 -0
- package/dist/core/scroll-intelligence/index.d.ts +11 -0
- package/dist/core/scroll-intelligence/intent.d.ts +11 -0
- package/dist/core/scroll-intelligence/runtime.d.ts +21 -0
- package/dist/core/scroll-intelligence/schema.d.ts +78 -0
- package/dist/core/scroll-intelligence/types.d.ts +85 -0
- package/dist/core/spring.d.ts +38 -0
- package/dist/core/svg-morph/animator.d.ts +10 -0
- package/dist/core/svg-morph/arc-to-cubic.d.ts +11 -0
- package/dist/core/svg-morph/index.d.ts +10 -0
- package/dist/core/svg-morph/interpolate.d.ts +23 -0
- package/dist/core/svg-morph/normalize.d.ts +34 -0
- package/dist/core/svg-morph/parser.d.ts +13 -0
- package/dist/core/svg-morph/shapes.d.ts +32 -0
- package/dist/core/svg-morph/types.d.ts +144 -0
- package/dist/core/transform.d.ts +27 -0
- package/dist/core/transitions/controller.d.ts +45 -0
- package/dist/core/transitions/engine.d.ts +26 -0
- package/dist/core/transitions/group-transition.d.ts +30 -0
- package/dist/core/transitions/index.d.ts +15 -0
- package/dist/core/transitions/presets.d.ts +16 -0
- package/dist/core/transitions/schema.d.ts +71 -0
- package/dist/core/transitions/shared-element-transition.d.ts +88 -0
- package/dist/core/transitions/shared-element.d.ts +84 -0
- package/dist/core/transitions/types.d.ts +185 -0
- package/dist/core/transitions/view-transition.d.ts +25 -0
- package/dist/core/typography/engine.d.ts +19 -0
- package/dist/core/typography/index.d.ts +15 -0
- package/dist/core/typography/path-motion.d.ts +24 -0
- package/dist/core/typography/presets.d.ts +14 -0
- package/dist/core/typography/properties.d.ts +19 -0
- package/dist/core/typography/segmenter.d.ts +32 -0
- package/dist/core/typography/stagger.d.ts +15 -0
- package/dist/core/typography/transitions.d.ts +11 -0
- package/dist/core/typography/types.d.ts +154 -0
- package/dist/core/utils/safe-json.d.ts +50 -0
- package/dist/core/visual-style-registry.d.ts +659 -0
- package/dist/easing/easings.d.ts +44 -0
- package/dist/effects/border-beam.d.ts +28 -0
- package/dist/effects/count-up.d.ts +30 -0
- package/dist/effects/cursor-trail.d.ts +23 -0
- package/dist/effects/drag.d.ts +41 -0
- package/dist/effects/draw-svg.d.ts +19 -0
- package/dist/effects/follow-pointer.d.ts +19 -0
- package/dist/effects/glow.d.ts +25 -0
- package/dist/effects/gradient-text.d.ts +22 -0
- package/dist/effects/hover-motion.d.ts +32 -0
- package/dist/effects/in-view.d.ts +14 -0
- package/dist/effects/magnetic.d.ts +40 -0
- package/dist/effects/morph-svg.d.ts +15 -0
- package/dist/effects/parallax.d.ts +42 -0
- package/dist/effects/pinch.d.ts +27 -0
- package/dist/effects/reveal.d.ts +33 -0
- package/dist/effects/ripple.d.ts +21 -0
- package/dist/effects/scroll-animate.d.ts +23 -0
- package/dist/effects/scroll-direction.d.ts +19 -0
- package/dist/effects/scroll-progress.d.ts +29 -0
- package/dist/effects/scroll-trigger.d.ts +22 -0
- package/dist/effects/scroll-velocity.d.ts +29 -0
- package/dist/effects/shine.d.ts +23 -0
- package/dist/effects/split-text.d.ts +17 -0
- package/dist/effects/spotlight.d.ts +24 -0
- package/dist/effects/stagger.d.ts +46 -0
- package/dist/effects/swipe.d.ts +27 -0
- package/dist/effects/text-highlight.d.ts +25 -0
- package/dist/effects/text-mask.d.ts +25 -0
- package/dist/effects/text-reveal.d.ts +28 -0
- package/dist/effects/text-scramble.d.ts +18 -0
- package/dist/effects/tilt.d.ts +42 -0
- package/dist/effects/typewriter.d.ts +26 -0
- package/dist/graphics/capabilities.d.ts +12 -0
- package/dist/graphics/composition/engine.d.ts +14 -0
- package/dist/graphics/composition/fallback.d.ts +13 -0
- package/dist/graphics/composition/index.d.ts +10 -0
- package/dist/graphics/composition/ordering.d.ts +29 -0
- package/dist/graphics/composition/quality.d.ts +24 -0
- package/dist/graphics/composition/schema.d.ts +156 -0
- package/dist/graphics/composition/types.d.ts +81 -0
- package/dist/graphics/composition/unified.d.ts +23 -0
- package/dist/graphics/effects/advanced/engine.d.ts +9 -0
- package/dist/graphics/effects/advanced/index.d.ts +1 -0
- package/dist/graphics/effects/composer.d.ts +9 -0
- package/dist/graphics/effects/distortion/engine.d.ts +9 -0
- package/dist/graphics/effects/distortion/index.d.ts +1 -0
- package/dist/graphics/effects/fluid/engine.d.ts +9 -0
- package/dist/graphics/effects/fluid/index.d.ts +1 -0
- package/dist/graphics/effects/index.d.ts +10 -0
- package/dist/graphics/effects/particles/engine.d.ts +9 -0
- package/dist/graphics/effects/particles/index.d.ts +2 -0
- package/dist/graphics/effects/particles/pool.d.ts +17 -0
- package/dist/graphics/effects/schema.d.ts +312 -0
- package/dist/graphics/effects/types.d.ts +85 -0
- package/dist/graphics/engine.d.ts +5 -0
- package/dist/graphics/environment/clouds.d.ts +28 -0
- package/dist/graphics/environment/environment.d.ts +50 -0
- package/dist/graphics/environment/fire-smoke.d.ts +32 -0
- package/dist/graphics/environment/fog.d.ts +28 -0
- package/dist/graphics/environment/index.d.ts +18 -0
- package/dist/graphics/environment/lightning.d.ts +33 -0
- package/dist/graphics/environment/rain.d.ts +33 -0
- package/dist/graphics/environment/snow.d.ts +30 -0
- package/dist/graphics/environment/types.d.ts +184 -0
- package/dist/graphics/environment/weather.d.ts +19 -0
- package/dist/graphics/environment/wind.d.ts +23 -0
- package/dist/graphics/fluid/flow-field.d.ts +74 -0
- package/dist/graphics/fluid/grid.d.ts +43 -0
- package/dist/graphics/fluid/index.d.ts +13 -0
- package/dist/graphics/fluid/interactions.d.ts +39 -0
- package/dist/graphics/fluid/rendering.d.ts +32 -0
- package/dist/graphics/fluid/simulation.d.ts +50 -0
- package/dist/graphics/fluid/solver.d.ts +19 -0
- package/dist/graphics/fluid/types.d.ts +186 -0
- package/dist/graphics/gpu-simulation/backends/backend.d.ts +24 -0
- package/dist/graphics/gpu-simulation/backends/cpu.d.ts +21 -0
- package/dist/graphics/gpu-simulation/backends/selection.d.ts +15 -0
- package/dist/graphics/gpu-simulation/backends/webgl2.d.ts +28 -0
- package/dist/graphics/gpu-simulation/backends/webgpu.d.ts +23 -0
- package/dist/graphics/gpu-simulation/capabilities.d.ts +14 -0
- package/dist/graphics/gpu-simulation/device.d.ts +17 -0
- package/dist/graphics/gpu-simulation/engine.d.ts +8 -0
- package/dist/graphics/gpu-simulation/index.d.ts +22 -0
- package/dist/graphics/gpu-simulation/ping-pong.d.ts +23 -0
- package/dist/graphics/gpu-simulation/pipeline.d.ts +18 -0
- package/dist/graphics/gpu-simulation/resource-manager.d.ts +8 -0
- package/dist/graphics/gpu-simulation/shaders.d.ts +50 -0
- package/dist/graphics/gpu-simulation/types.d.ts +288 -0
- package/dist/graphics/index.d.ts +23 -0
- package/dist/graphics/materials/glass.d.ts +22 -0
- package/dist/graphics/materials/index.d.ts +9 -0
- package/dist/graphics/materials/lighting.d.ts +22 -0
- package/dist/graphics/materials/presets.d.ts +28 -0
- package/dist/graphics/materials/schema.d.ts +574 -0
- package/dist/graphics/materials/surface.d.ts +13 -0
- package/dist/graphics/materials/types.d.ts +150 -0
- package/dist/graphics/particle-fields/composition.d.ts +32 -0
- package/dist/graphics/particle-fields/forces.d.ts +103 -0
- package/dist/graphics/particle-fields/index.d.ts +12 -0
- package/dist/graphics/particle-fields/interaction.d.ts +32 -0
- package/dist/graphics/particle-fields/spatial-index.d.ts +20 -0
- package/dist/graphics/particle-fields/system.d.ts +52 -0
- package/dist/graphics/particle-fields/types.d.ts +138 -0
- package/dist/graphics/particles/behaviors.d.ts +11 -0
- package/dist/graphics/particles/controller.d.ts +82 -0
- package/dist/graphics/particles/data-layout.d.ts +51 -0
- package/dist/graphics/particles/emitters.d.ts +24 -0
- package/dist/graphics/particles/index.d.ts +15 -0
- package/dist/graphics/particles/random.d.ts +25 -0
- package/dist/graphics/particles/rendering.d.ts +16 -0
- package/dist/graphics/particles/simulation.d.ts +23 -0
- package/dist/graphics/particles/types.d.ts +282 -0
- package/dist/graphics/renderer.d.ts +66 -0
- package/dist/graphics/resource-manager.d.ts +6 -0
- package/dist/graphics/schema.d.ts +177 -0
- package/dist/graphics/simulation/adapters.d.ts +36 -0
- package/dist/graphics/simulation/coordinator.d.ts +64 -0
- package/dist/graphics/simulation/index.d.ts +11 -0
- package/dist/graphics/simulation/optimizer.d.ts +101 -0
- package/dist/graphics/simulation/resource-manager.d.ts +40 -0
- package/dist/graphics/simulation/types.d.ts +126 -0
- package/dist/graphics/textures/cache.d.ts +29 -0
- package/dist/graphics/textures/canvas-utils.d.ts +31 -0
- package/dist/graphics/textures/engine.d.ts +34 -0
- package/dist/graphics/textures/generators.d.ts +29 -0
- package/dist/graphics/textures/index.d.ts +11 -0
- package/dist/graphics/textures/material-integration.d.ts +20 -0
- package/dist/graphics/textures/prng.d.ts +27 -0
- package/dist/graphics/textures/schema.d.ts +219 -0
- package/dist/graphics/textures/types.d.ts +80 -0
- package/dist/graphics/types.d.ts +152 -0
- package/dist/graphics/viewport.d.ts +32 -0
- package/dist/index.d.ts +132 -0
- package/dist/index.js +4921 -0
- package/dist/mcp/index.d.ts +12 -0
- package/dist/mcp/prompts.d.ts +9 -0
- package/dist/mcp/resources.d.ts +9 -0
- package/dist/mcp/server.d.ts +29 -0
- package/dist/mcp/tools.d.ts +9 -0
- package/dist/mcp/transport.d.ts +33 -0
- package/dist/mcp/types.d.ts +96 -0
- package/dist/presets.d.ts +176 -0
- package/dist/presets.js +3 -0
- package/dist/react.d.ts +5358 -0
- package/dist/react.js +7557 -0
- package/package.json +112 -6
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { type ColorPalette, type PaletteInput } from "./palettes.js";
|
|
2
|
+
import { type MotionDNA } from "./motion-dna.js";
|
|
3
|
+
import { type EasingOption } from "../easing/easings.js";
|
|
4
|
+
export declare const DESIGN_SYSTEM_SCHEMA_VERSION = "1.0.0";
|
|
5
|
+
export interface DesignSystemTypographyTokens {
|
|
6
|
+
readonly fontFamilies?: {
|
|
7
|
+
readonly sans?: string;
|
|
8
|
+
readonly serif?: string;
|
|
9
|
+
readonly mono?: string;
|
|
10
|
+
readonly [key: string]: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
readonly fontSizes?: {
|
|
13
|
+
readonly xs?: string | number;
|
|
14
|
+
readonly sm?: string | number;
|
|
15
|
+
readonly md?: string | number;
|
|
16
|
+
readonly lg?: string | number;
|
|
17
|
+
readonly xl?: string | number;
|
|
18
|
+
readonly "2xl"?: string | number;
|
|
19
|
+
readonly [key: string]: string | number | undefined;
|
|
20
|
+
};
|
|
21
|
+
readonly lineHeights?: {
|
|
22
|
+
readonly tight?: number | string;
|
|
23
|
+
readonly normal?: number | string;
|
|
24
|
+
readonly loose?: number | string;
|
|
25
|
+
readonly [key: string]: number | string | undefined;
|
|
26
|
+
};
|
|
27
|
+
readonly letterSpacings?: {
|
|
28
|
+
readonly tight?: string;
|
|
29
|
+
readonly normal?: string;
|
|
30
|
+
readonly wide?: string;
|
|
31
|
+
readonly [key: string]: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface DesignSystemSpacingTokens {
|
|
35
|
+
readonly baseUnit?: number;
|
|
36
|
+
readonly space?: {
|
|
37
|
+
readonly none?: number;
|
|
38
|
+
readonly xs?: number;
|
|
39
|
+
readonly sm?: number;
|
|
40
|
+
readonly md?: number;
|
|
41
|
+
readonly lg?: number;
|
|
42
|
+
readonly xl?: number;
|
|
43
|
+
readonly "2xl"?: number;
|
|
44
|
+
readonly [key: string]: number | undefined;
|
|
45
|
+
};
|
|
46
|
+
readonly distance?: {
|
|
47
|
+
readonly subtle?: number;
|
|
48
|
+
readonly moderate?: number;
|
|
49
|
+
readonly pronounced?: number;
|
|
50
|
+
readonly dramatic?: number;
|
|
51
|
+
readonly [key: string]: number | undefined;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface DesignSystemMotionTimingTokens {
|
|
55
|
+
readonly instant?: number;
|
|
56
|
+
readonly fastest?: number;
|
|
57
|
+
readonly fast?: number;
|
|
58
|
+
readonly normal?: number;
|
|
59
|
+
readonly slow?: number;
|
|
60
|
+
readonly deliberate?: number;
|
|
61
|
+
readonly [key: string]: number | undefined;
|
|
62
|
+
}
|
|
63
|
+
export interface DesignSystemEasingTokens {
|
|
64
|
+
readonly standard?: EasingOption;
|
|
65
|
+
readonly entrance?: EasingOption;
|
|
66
|
+
readonly exit?: EasingOption;
|
|
67
|
+
readonly expressive?: EasingOption;
|
|
68
|
+
readonly snappy?: EasingOption;
|
|
69
|
+
readonly bounce?: EasingOption;
|
|
70
|
+
readonly [key: string]: EasingOption | undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface DesignSystemInteractionTokens {
|
|
73
|
+
readonly hoverScale?: number;
|
|
74
|
+
readonly pressScale?: number;
|
|
75
|
+
readonly focusRingWidth?: number;
|
|
76
|
+
readonly elevationDistance?: number;
|
|
77
|
+
readonly transitionDuration?: number;
|
|
78
|
+
readonly [key: string]: number | undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface DesignSystemMetadata {
|
|
81
|
+
readonly author?: string;
|
|
82
|
+
readonly license?: string;
|
|
83
|
+
readonly description?: string;
|
|
84
|
+
readonly tags?: readonly string[];
|
|
85
|
+
readonly [key: string]: unknown;
|
|
86
|
+
}
|
|
87
|
+
export interface DesignSystemDefinition {
|
|
88
|
+
readonly id: string;
|
|
89
|
+
readonly name: string;
|
|
90
|
+
readonly description?: string;
|
|
91
|
+
/** Palette name (from built-in or registered custom palettes) or full color palette */
|
|
92
|
+
readonly palette?: string | ColorPalette | PaletteInput;
|
|
93
|
+
/** Optional Motion DNA identity name or full MotionDNA object */
|
|
94
|
+
readonly motionDNA?: string | MotionDNA;
|
|
95
|
+
/** Typography tokens relevant to motion/transitions */
|
|
96
|
+
readonly typography?: DesignSystemTypographyTokens;
|
|
97
|
+
/** Spacing and movement scales */
|
|
98
|
+
readonly spacing?: DesignSystemSpacingTokens;
|
|
99
|
+
/** Durations for various timing categories */
|
|
100
|
+
readonly timing?: DesignSystemMotionTimingTokens;
|
|
101
|
+
/** Preferred easing curves for interactions and transitions */
|
|
102
|
+
readonly easings?: DesignSystemEasingTokens;
|
|
103
|
+
/** Interaction conventions (hover, press, elevation) */
|
|
104
|
+
readonly interaction?: DesignSystemInteractionTokens;
|
|
105
|
+
/** Overall motion intensity multiplier (default 1.0) */
|
|
106
|
+
readonly intensity?: number;
|
|
107
|
+
/** Machine-readable metadata */
|
|
108
|
+
readonly metadata?: DesignSystemMetadata;
|
|
109
|
+
}
|
|
110
|
+
export interface DesignSystem extends DesignSystemDefinition {
|
|
111
|
+
/** Resolved active ColorPalette object if palette was specified */
|
|
112
|
+
readonly resolvedPalette?: ColorPalette;
|
|
113
|
+
/** Resolved active MotionDNA object if motionDNA was specified */
|
|
114
|
+
readonly resolvedMotionDNA?: MotionDNA;
|
|
115
|
+
}
|
|
116
|
+
export interface DesignSystemValidationError {
|
|
117
|
+
readonly parameter?: string;
|
|
118
|
+
readonly message: string;
|
|
119
|
+
}
|
|
120
|
+
export interface DesignSystemValidationResult {
|
|
121
|
+
readonly valid: boolean;
|
|
122
|
+
readonly errors: readonly DesignSystemValidationError[];
|
|
123
|
+
}
|
|
124
|
+
export interface DesignSystemsDocument {
|
|
125
|
+
readonly $schema: string;
|
|
126
|
+
readonly version: string;
|
|
127
|
+
readonly totalDesignSystems: number;
|
|
128
|
+
readonly designSystems: readonly DesignSystem[];
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Validates a design system definition against required fields and constraints.
|
|
132
|
+
*/
|
|
133
|
+
export declare function validateDesignSystem(system: unknown): DesignSystemValidationResult;
|
|
134
|
+
/**
|
|
135
|
+
* Creates and resolves a design system from a definition with deep freeze immutability.
|
|
136
|
+
*/
|
|
137
|
+
export declare function createDesignSystem(definition: DesignSystemDefinition): DesignSystem;
|
|
138
|
+
export declare const BUILT_IN_DESIGN_SYSTEMS: readonly DesignSystem[];
|
|
139
|
+
/**
|
|
140
|
+
* Registers a user-defined design system in the registry. Built-in names are protected.
|
|
141
|
+
*/
|
|
142
|
+
export declare function registerDesignSystem(name: string, system: DesignSystemDefinition): void;
|
|
143
|
+
/**
|
|
144
|
+
* Retrieves a registered or built-in design system by ID or name.
|
|
145
|
+
*/
|
|
146
|
+
export declare function getDesignSystem(nameOrId: string): DesignSystem | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* Lists all registered design systems (built-ins + custom additions).
|
|
149
|
+
*/
|
|
150
|
+
export declare function listDesignSystems(): readonly DesignSystem[];
|
|
151
|
+
/**
|
|
152
|
+
* Searches design systems by keyword query matching ID, name, description, or tags.
|
|
153
|
+
*/
|
|
154
|
+
export declare function searchDesignSystems(query: string): readonly DesignSystem[];
|
|
155
|
+
/**
|
|
156
|
+
* Clones a design system and applies overrides without mutating the original.
|
|
157
|
+
*/
|
|
158
|
+
export declare function cloneDesignSystem(source: string | DesignSystem, overrides?: Partial<DesignSystemDefinition>): DesignSystem;
|
|
159
|
+
/**
|
|
160
|
+
* Removes a custom design system from the registry. Built-in systems cannot be removed.
|
|
161
|
+
*/
|
|
162
|
+
export declare function removeDesignSystem(name: string): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Resolves a design system by name or object, applying optional overrides.
|
|
165
|
+
*/
|
|
166
|
+
export declare function resolveDesignSystem(source: string | DesignSystem, overrides?: Partial<DesignSystemDefinition>): DesignSystem;
|
|
167
|
+
/**
|
|
168
|
+
* Traverses and resolves any nested design system token by dot-notated path with optional fallback.
|
|
169
|
+
*/
|
|
170
|
+
export declare function resolveDesignToken<T = unknown>(system: DesignSystem, tokenPath: string, fallback?: T): T;
|
|
171
|
+
/**
|
|
172
|
+
* Resolves a motion timing duration from the design system timing scale or fallback.
|
|
173
|
+
*/
|
|
174
|
+
export declare function resolveMotionTiming(system: DesignSystem, keyOrCategory: string, fallback?: number): number;
|
|
175
|
+
/**
|
|
176
|
+
* Resolves a movement distance from the design system spacing distance scale or fallback.
|
|
177
|
+
*/
|
|
178
|
+
export declare function resolveMovementDistance(system: DesignSystem, keyOrScale: string, fallback?: number): number;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the currently active design system.
|
|
181
|
+
*/
|
|
182
|
+
export declare function getActiveDesignSystem(): DesignSystem | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* Sets the active design system, optionally activating its palette, and notifies subscribers.
|
|
185
|
+
*/
|
|
186
|
+
export declare function setActiveDesignSystem(nameOrSystem: string | DesignSystem | undefined): void;
|
|
187
|
+
/**
|
|
188
|
+
* Subscribes to active design system changes, returning an unsubscribe cleanup function.
|
|
189
|
+
*/
|
|
190
|
+
export declare function subscribeToDesignSystem(listener: (system: DesignSystem | undefined) => void): () => void;
|
|
191
|
+
/**
|
|
192
|
+
* Resets custom design systems and restores active design system to "default" (for test isolation).
|
|
193
|
+
*/
|
|
194
|
+
export declare function resetDesignSystemRegistry(): void;
|
|
195
|
+
/**
|
|
196
|
+
* Serializes a design system to formatted JSON.
|
|
197
|
+
*/
|
|
198
|
+
export declare function exportDesignSystemJson(system: DesignSystem, pretty?: boolean): string;
|
|
199
|
+
/**
|
|
200
|
+
* Exports all registered design systems as a versioned document.
|
|
201
|
+
*/
|
|
202
|
+
export declare function exportDesignSystemsDocument(): DesignSystemsDocument;
|
|
203
|
+
/**
|
|
204
|
+
* Imports and validates a design system from a JSON string.
|
|
205
|
+
*/
|
|
206
|
+
export declare function importDesignSystemFromJson(json: string): DesignSystem;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Analysis Engine (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* Evaluates element hierarchy, visual importance, interactive capabilities,
|
|
5
|
+
* repeated groupings, accessibility constraints, and maps design characteristics
|
|
6
|
+
* to semantic motion intent using Prompt 141 AI Motion Intelligence.
|
|
7
|
+
*/
|
|
8
|
+
import type { NormalizedDesignInput } from "./input-parser.js";
|
|
9
|
+
import type { DesignAnalysisResult } from "./types.js";
|
|
10
|
+
/**
|
|
11
|
+
* Analyzes the normalized design specification and infers motion requirements.
|
|
12
|
+
*/
|
|
13
|
+
export declare function analyzeDesignSpecification(normalized: NormalizedDesignInput): DesignAnalysisResult;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Master Engine (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* Coordinates the full Design-to-Motion pipeline:
|
|
5
|
+
* Input Parsing → Design Analysis → Motion Intent → Motion Planning →
|
|
6
|
+
* Configuration Generation → Validation → Export Artifact Generation.
|
|
7
|
+
*
|
|
8
|
+
* Deterministic, offline, zero external LLM API requirement.
|
|
9
|
+
*/
|
|
10
|
+
import type { DesignToMotionInput, DesignToMotionOptions, GeneratedMotionResult, IDesignToMotionProvider } from "./types.js";
|
|
11
|
+
export declare class DesignToMotionEngine implements IDesignToMotionProvider {
|
|
12
|
+
readonly id = "af-motion-design-to-motion-engine";
|
|
13
|
+
readonly name = "AF Motion Design-to-Motion Engine";
|
|
14
|
+
private readonly cache;
|
|
15
|
+
private readonly maxCacheSize;
|
|
16
|
+
constructor(options?: {
|
|
17
|
+
maxCacheSize?: number;
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* Generates production-ready motion configurations synchronously.
|
|
21
|
+
*/
|
|
22
|
+
generateSync(input: DesignToMotionInput, options?: DesignToMotionOptions): GeneratedMotionResult;
|
|
23
|
+
/**
|
|
24
|
+
* Generates production-ready motion configurations asynchronously with timeout/abort support.
|
|
25
|
+
*/
|
|
26
|
+
generate(input: DesignToMotionInput, options?: DesignToMotionOptions): Promise<GeneratedMotionResult>;
|
|
27
|
+
/**
|
|
28
|
+
* Clears engine cache.
|
|
29
|
+
*/
|
|
30
|
+
clearCache(): void;
|
|
31
|
+
private computeCacheKey;
|
|
32
|
+
private putCache;
|
|
33
|
+
}
|
|
34
|
+
export declare const designToMotionEngine: DesignToMotionEngine;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Configuration Generator (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* Generates structured, validated MotionComposition instances, element animations,
|
|
5
|
+
* and multi-format export code artifacts (React, Vanilla TS/JS, JSON).
|
|
6
|
+
*/
|
|
7
|
+
import type { DesignAnalysisResult, MotionPlan, DesignTokenContext, DesignToMotionInput, DesignToMotionExportArtifacts } from "./types.js";
|
|
8
|
+
import { type MotionComposition } from "../composition.js";
|
|
9
|
+
/**
|
|
10
|
+
* Builds a valid MotionComposition instance from analysis, plan, and tokens.
|
|
11
|
+
*/
|
|
12
|
+
export declare function generateMotionComposition(analysis: DesignAnalysisResult, plan: MotionPlan, tokens: Required<DesignTokenContext>, sourceInput: DesignToMotionInput): MotionComposition;
|
|
13
|
+
/**
|
|
14
|
+
* Generates multi-format code export artifacts (React, Vanilla TS, Composition JSON, CSS).
|
|
15
|
+
*/
|
|
16
|
+
export declare function generateExportArtifacts(composition: MotionComposition, plan: MotionPlan, tokens: Required<DesignTokenContext>): DesignToMotionExportArtifacts;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Subsystem (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* Transforms visual design specifications, natural-language briefs, and design tokens
|
|
5
|
+
* into production-ready AF Motion configurations with validation, pattern matching,
|
|
6
|
+
* and multi-format code export.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./types.js";
|
|
9
|
+
export * from "./input-parser.js";
|
|
10
|
+
export * from "./design-analyzer.js";
|
|
11
|
+
export * from "./motion-planner.js";
|
|
12
|
+
export * from "./generator.js";
|
|
13
|
+
export * from "./validator.js";
|
|
14
|
+
export * from "./presets.js";
|
|
15
|
+
export * from "./engine.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Input Parser (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* Validates, normalizes, and synthesizes structured design specifications
|
|
5
|
+
* from natural-language descriptions, structured inputs, and design tokens.
|
|
6
|
+
*/
|
|
7
|
+
import type { DesignToMotionInput, DesignStructuredSpecification, DesignTokenContext } from "./types.js";
|
|
8
|
+
export interface NormalizedDesignInput {
|
|
9
|
+
readonly specification: DesignStructuredSpecification;
|
|
10
|
+
readonly tokens: Required<DesignTokenContext>;
|
|
11
|
+
readonly rawPrompt?: string;
|
|
12
|
+
readonly validationIssues: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Normalizes and validates the incoming DesignToMotionInput into a fully-qualified specification.
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseAndNormalizeDesignInput(input: DesignToMotionInput): NormalizedDesignInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Planning Engine (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* Converts design analysis, element hierarchy, and Motion DNA personality
|
|
5
|
+
* into an orchestrated MotionPlan, querying Prompt 141's pattern knowledge base.
|
|
6
|
+
*/
|
|
7
|
+
import type { DesignAnalysisResult, MotionPlan, DesignTokenContext } from "./types.js";
|
|
8
|
+
/**
|
|
9
|
+
* Plans the motion orchestration for the analyzed design elements.
|
|
10
|
+
*/
|
|
11
|
+
export declare function planMotionFromDesign(analysis: DesignAnalysisResult, tokens: Required<DesignTokenContext>): MotionPlan;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Presets (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* 10 battle-tested design-to-motion template presets covering SaaS, portfolios,
|
|
5
|
+
* landing pages, e-commerce, dashboards, editorial, mobile, interactive cards,
|
|
6
|
+
* navigation systems, and hero sections.
|
|
7
|
+
*/
|
|
8
|
+
import type { DesignToMotionPreset } from "./types.js";
|
|
9
|
+
export declare const DESIGN_TO_MOTION_PRESETS: readonly DesignToMotionPreset[];
|
|
10
|
+
export declare function listDesignToMotionPresets(): readonly DesignToMotionPreset[];
|
|
11
|
+
export declare function getDesignToMotionPreset(id: string): DesignToMotionPreset | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DesignToMotionInput, DesignToMotionOptions, GeneratedMotionResult } from "./types.js";
|
|
2
|
+
export interface UseDesignToMotionReturn {
|
|
3
|
+
readonly result: GeneratedMotionResult | null;
|
|
4
|
+
readonly isGenerating: boolean;
|
|
5
|
+
readonly error: string | null;
|
|
6
|
+
readonly input: DesignToMotionInput;
|
|
7
|
+
readonly setInput: (input: DesignToMotionInput | ((prev: DesignToMotionInput) => DesignToMotionInput)) => void;
|
|
8
|
+
readonly generate: (overrideInput?: DesignToMotionInput) => Promise<GeneratedMotionResult | null>;
|
|
9
|
+
readonly applyPreset: (presetId: string) => void;
|
|
10
|
+
readonly activePresetId: string | null;
|
|
11
|
+
readonly clear: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function useDesignToMotion(initialInput?: DesignToMotionInput, options?: DesignToMotionOptions): UseDesignToMotionReturn;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Generation Types (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* Core data contracts for transforming natural language descriptions,
|
|
5
|
+
* structured UI specifications, and design tokens into valid, production-ready
|
|
6
|
+
* AF Motion animation compositions.
|
|
7
|
+
*/
|
|
8
|
+
import type { MotionComposition } from "../composition.js";
|
|
9
|
+
import type { AIMotionIntentType, QualityFinding, IntelligentMotionRecommendation, MotionQualityEvaluationResult } from "../ai-motion-intelligence/types.js";
|
|
10
|
+
export declare const DESIGN_TO_MOTION_SPEC_VERSION = "1.0.0";
|
|
11
|
+
export type DesignElementType = "button" | "card" | "modal" | "dialog" | "navigation" | "header" | "hero" | "section" | "badge" | "icon" | "image" | "input" | "text" | "tooltip" | "drawer" | "list" | "grid" | "container";
|
|
12
|
+
export type DesignInteractionCapability = "hover" | "press" | "focus" | "drag" | "magnetic" | "scroll" | "swipe";
|
|
13
|
+
export type MotionDNAPersonalityOption = "precise" | "playful" | "elegant" | "energetic" | "editorial-flow";
|
|
14
|
+
export interface DesignTransformSpec {
|
|
15
|
+
readonly translate?: readonly [number, number, number?];
|
|
16
|
+
readonly rotate?: number;
|
|
17
|
+
readonly scale?: number | readonly [number, number];
|
|
18
|
+
readonly skew?: readonly [number, number];
|
|
19
|
+
}
|
|
20
|
+
export interface DesignDimensionsSpec {
|
|
21
|
+
readonly width?: number | string;
|
|
22
|
+
readonly height?: number | string;
|
|
23
|
+
readonly aspectRatio?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface DesignPositionSpec {
|
|
26
|
+
readonly x?: number;
|
|
27
|
+
readonly y?: number;
|
|
28
|
+
readonly z?: number;
|
|
29
|
+
readonly positionType?: "relative" | "absolute" | "fixed" | "sticky";
|
|
30
|
+
}
|
|
31
|
+
export interface DesignStructuredElement {
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly type: DesignElementType;
|
|
34
|
+
readonly name?: string;
|
|
35
|
+
readonly parentId?: string;
|
|
36
|
+
readonly childrenIds?: readonly string[];
|
|
37
|
+
readonly dimensions?: DesignDimensionsSpec;
|
|
38
|
+
readonly position?: DesignPositionSpec;
|
|
39
|
+
readonly opacity?: number;
|
|
40
|
+
readonly transform?: DesignTransformSpec;
|
|
41
|
+
readonly color?: {
|
|
42
|
+
readonly background?: string;
|
|
43
|
+
readonly text?: string;
|
|
44
|
+
readonly border?: string;
|
|
45
|
+
readonly accent?: string;
|
|
46
|
+
};
|
|
47
|
+
readonly typography?: {
|
|
48
|
+
readonly fontSize?: number | string;
|
|
49
|
+
readonly fontWeight?: number | string;
|
|
50
|
+
readonly lineHeight?: number | string;
|
|
51
|
+
};
|
|
52
|
+
readonly layout?: {
|
|
53
|
+
readonly display?: string;
|
|
54
|
+
readonly flexDir?: "row" | "column";
|
|
55
|
+
readonly gap?: number;
|
|
56
|
+
readonly padding?: number | readonly [number, number];
|
|
57
|
+
};
|
|
58
|
+
readonly interactionCapabilities?: readonly DesignInteractionCapability[];
|
|
59
|
+
readonly importance?: "high" | "medium" | "low" | "background";
|
|
60
|
+
readonly semanticRole?: "trigger" | "surface" | "content" | "decorative" | "overlay";
|
|
61
|
+
}
|
|
62
|
+
export interface DesignStructuredSpecification {
|
|
63
|
+
readonly id: string;
|
|
64
|
+
readonly title: string;
|
|
65
|
+
readonly elements: readonly DesignStructuredElement[];
|
|
66
|
+
readonly rootId?: string;
|
|
67
|
+
readonly viewportContext?: {
|
|
68
|
+
readonly width: number;
|
|
69
|
+
readonly height: number;
|
|
70
|
+
readonly isMobile?: boolean;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export interface DesignTokenContext {
|
|
74
|
+
readonly paletteName?: string;
|
|
75
|
+
readonly paletteColors?: {
|
|
76
|
+
readonly primary: string;
|
|
77
|
+
readonly secondary: string;
|
|
78
|
+
readonly accent: string;
|
|
79
|
+
readonly background: string;
|
|
80
|
+
};
|
|
81
|
+
readonly motionDNA?: MotionDNAPersonalityOption;
|
|
82
|
+
readonly timingMultiplier?: number;
|
|
83
|
+
readonly reducedMotion?: boolean;
|
|
84
|
+
readonly styleId?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface DesignNaturalLanguageInput {
|
|
87
|
+
readonly prompt: string;
|
|
88
|
+
readonly elementContext?: Partial<DesignStructuredElement>;
|
|
89
|
+
readonly categoryHint?: string;
|
|
90
|
+
readonly targetStyle?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface DesignToMotionInput {
|
|
93
|
+
readonly naturalLanguage?: DesignNaturalLanguageInput | string;
|
|
94
|
+
readonly specification?: DesignStructuredSpecification;
|
|
95
|
+
readonly tokens?: DesignTokenContext;
|
|
96
|
+
}
|
|
97
|
+
export interface AnalyzedDesignElement {
|
|
98
|
+
readonly id: string;
|
|
99
|
+
readonly type: DesignElementType;
|
|
100
|
+
readonly role: string;
|
|
101
|
+
readonly visualWeight: number;
|
|
102
|
+
readonly isInteractive: boolean;
|
|
103
|
+
readonly isGroupParent: boolean;
|
|
104
|
+
readonly isRepeated: boolean;
|
|
105
|
+
readonly suggestedEntrance: string;
|
|
106
|
+
readonly suggestedExit: string;
|
|
107
|
+
readonly suggestedInteractions: readonly DesignInteractionCapability[];
|
|
108
|
+
readonly constraints: readonly string[];
|
|
109
|
+
}
|
|
110
|
+
export interface DesignAnalysisResult {
|
|
111
|
+
readonly analyzedElements: readonly AnalyzedDesignElement[];
|
|
112
|
+
readonly hierarchy: {
|
|
113
|
+
readonly rootIds: readonly string[];
|
|
114
|
+
readonly depth: number;
|
|
115
|
+
readonly groups: ReadonlyArray<{
|
|
116
|
+
readonly parentId: string;
|
|
117
|
+
readonly childIds: readonly string[];
|
|
118
|
+
readonly sequenceType: "stagger" | "parallel" | "sequential";
|
|
119
|
+
}>;
|
|
120
|
+
};
|
|
121
|
+
readonly inferredIntent: AIMotionIntentType;
|
|
122
|
+
readonly intentConfidence: number;
|
|
123
|
+
readonly evidence: readonly string[];
|
|
124
|
+
readonly warnings: readonly string[];
|
|
125
|
+
}
|
|
126
|
+
export interface MotionElementPhasePlan {
|
|
127
|
+
readonly properties: readonly string[];
|
|
128
|
+
readonly from: Record<string, string | number>;
|
|
129
|
+
readonly to: Record<string, string | number>;
|
|
130
|
+
readonly durationMs: number;
|
|
131
|
+
readonly delayMs: number;
|
|
132
|
+
readonly easing: string;
|
|
133
|
+
}
|
|
134
|
+
export interface MotionElementInteractionPlan {
|
|
135
|
+
readonly hover?: {
|
|
136
|
+
readonly properties: readonly string[];
|
|
137
|
+
readonly to: Record<string, string | number>;
|
|
138
|
+
readonly durationMs: number;
|
|
139
|
+
readonly easing: string;
|
|
140
|
+
};
|
|
141
|
+
readonly press?: {
|
|
142
|
+
readonly properties: readonly string[];
|
|
143
|
+
readonly to: Record<string, string | number>;
|
|
144
|
+
readonly durationMs: number;
|
|
145
|
+
readonly easing: string;
|
|
146
|
+
};
|
|
147
|
+
readonly magnetic?: {
|
|
148
|
+
readonly radius: number;
|
|
149
|
+
readonly intensity: number;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export interface MotionPlanElement {
|
|
153
|
+
readonly elementId: string;
|
|
154
|
+
readonly name?: string;
|
|
155
|
+
readonly entrance?: MotionElementPhasePlan;
|
|
156
|
+
readonly interaction?: MotionElementInteractionPlan;
|
|
157
|
+
readonly exit?: MotionElementPhasePlan;
|
|
158
|
+
}
|
|
159
|
+
export interface MotionPlan {
|
|
160
|
+
readonly id: string;
|
|
161
|
+
readonly name: string;
|
|
162
|
+
readonly summary: string;
|
|
163
|
+
readonly intent: AIMotionIntentType;
|
|
164
|
+
readonly matchedPatternIds: readonly string[];
|
|
165
|
+
readonly choreographyType: "sequential" | "staggered" | "parallel" | "parent-child" | "coordinated";
|
|
166
|
+
readonly elementPlans: readonly MotionPlanElement[];
|
|
167
|
+
readonly motionDNA: MotionDNAPersonalityOption;
|
|
168
|
+
readonly durationMs: number;
|
|
169
|
+
readonly staggerDelayMs: number;
|
|
170
|
+
readonly easingCurve: string;
|
|
171
|
+
readonly springConfig?: {
|
|
172
|
+
readonly stiffness: number;
|
|
173
|
+
readonly damping: number;
|
|
174
|
+
readonly mass: number;
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
export interface DesignToMotionValidation {
|
|
178
|
+
readonly isValid: boolean;
|
|
179
|
+
readonly qualityScore: number;
|
|
180
|
+
readonly qualityGrade: string;
|
|
181
|
+
readonly detailedScore: MotionQualityEvaluationResult;
|
|
182
|
+
readonly findings: readonly QualityFinding[];
|
|
183
|
+
readonly recommendations: readonly IntelligentMotionRecommendation[];
|
|
184
|
+
}
|
|
185
|
+
export interface DesignToMotionExportArtifacts {
|
|
186
|
+
readonly reactCode: string;
|
|
187
|
+
readonly vanillaCode: string;
|
|
188
|
+
readonly compositionJson: string;
|
|
189
|
+
readonly cssVariables: Record<string, string>;
|
|
190
|
+
}
|
|
191
|
+
export interface GeneratedMotionResult {
|
|
192
|
+
readonly id: string;
|
|
193
|
+
readonly sourceInput: DesignToMotionInput;
|
|
194
|
+
readonly analysis: DesignAnalysisResult;
|
|
195
|
+
readonly plan: MotionPlan;
|
|
196
|
+
readonly composition: MotionComposition;
|
|
197
|
+
readonly validation: DesignToMotionValidation;
|
|
198
|
+
readonly exportArtifacts: DesignToMotionExportArtifacts;
|
|
199
|
+
readonly generatedAt: number;
|
|
200
|
+
}
|
|
201
|
+
export interface DesignToMotionPreset {
|
|
202
|
+
readonly id: string;
|
|
203
|
+
readonly name: string;
|
|
204
|
+
readonly description: string;
|
|
205
|
+
readonly category: "saas" | "portfolio" | "landing-page" | "ecommerce" | "dashboard" | "editorial" | "mobile" | "cards" | "navigation" | "hero";
|
|
206
|
+
readonly defaultInput: DesignToMotionInput;
|
|
207
|
+
readonly defaultDNA: MotionDNAPersonalityOption;
|
|
208
|
+
readonly capabilities: readonly string[];
|
|
209
|
+
}
|
|
210
|
+
export interface DesignToMotionOptions {
|
|
211
|
+
readonly timeoutMs?: number;
|
|
212
|
+
readonly signal?: AbortSignal;
|
|
213
|
+
readonly fallbackDNA?: MotionDNAPersonalityOption;
|
|
214
|
+
readonly autoApplyRecommendations?: boolean;
|
|
215
|
+
}
|
|
216
|
+
export interface IDesignToMotionProvider {
|
|
217
|
+
readonly id: string;
|
|
218
|
+
readonly name: string;
|
|
219
|
+
generate(input: DesignToMotionInput, options?: DesignToMotionOptions): Promise<GeneratedMotionResult>;
|
|
220
|
+
generateSync(input: DesignToMotionInput, options?: DesignToMotionOptions): GeneratedMotionResult;
|
|
221
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Design-to-Motion Validation Pipeline (Prompt 142)
|
|
3
|
+
*
|
|
4
|
+
* Validates generated MotionComposition schemas, property compatibility,
|
|
5
|
+
* timing constraints, accessibility, and integrates Prompt 141's quality evaluator
|
|
6
|
+
* and recommendation engine.
|
|
7
|
+
*/
|
|
8
|
+
import type { MotionComposition } from "../composition.js";
|
|
9
|
+
import type { DesignToMotionValidation, DesignTokenContext } from "./types.js";
|
|
10
|
+
/**
|
|
11
|
+
* Validates a generated MotionComposition and produces quality evaluation & recommendations.
|
|
12
|
+
*/
|
|
13
|
+
export declare function validateGeneratedMotion(composition: MotionComposition, tokens: Required<DesignTokenContext>): DesignToMotionValidation;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Deterministic Device Classification
|
|
3
|
+
*
|
|
4
|
+
* Multi-signal device categorization (Low/Standard/High Mobile & Desktop, Tablet, Unknown)
|
|
5
|
+
* balancing hardware concurrency, memory estimates, GPU limits, and touch characteristics.
|
|
6
|
+
*/
|
|
7
|
+
import type { DeviceCategory, CpuCapabilityInfo, MemoryCapabilityInfo, WebGLCapabilitiesInfo, DisplayCapabilityInfo, RuntimeEnvironmentInfo } from "./types.js";
|
|
8
|
+
export interface DeviceClassificationResult {
|
|
9
|
+
readonly category: DeviceCategory;
|
|
10
|
+
readonly rationale: string;
|
|
11
|
+
readonly isMobile: boolean;
|
|
12
|
+
readonly isTablet: boolean;
|
|
13
|
+
readonly isDesktop: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Classifies a device profile into a deterministic category with explainable rationale.
|
|
17
|
+
*/
|
|
18
|
+
export declare function classifyDevice(signals: {
|
|
19
|
+
runtime: RuntimeEnvironmentInfo;
|
|
20
|
+
cpu: CpuCapabilityInfo;
|
|
21
|
+
memory: MemoryCapabilityInfo;
|
|
22
|
+
webgl: WebGLCapabilitiesInfo;
|
|
23
|
+
display: DisplayCapabilityInfo;
|
|
24
|
+
touchSupport?: boolean;
|
|
25
|
+
}): DeviceClassificationResult;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Consolidated Device Capability Detection Engine
|
|
3
|
+
*
|
|
4
|
+
* Core coordinator assembling runtime, hardware, graphics, display, network,
|
|
5
|
+
* classification, and scoring into a comprehensive DeviceCapabilityProfile.
|
|
6
|
+
*/
|
|
7
|
+
import type { DeviceCapabilityProfile, DeviceDetectionOptions } from "./types.js";
|
|
8
|
+
/**
|
|
9
|
+
* Builds a consolidated device capability profile synchronously.
|
|
10
|
+
*/
|
|
11
|
+
export declare function detectDeviceCapabilities(options?: DeviceDetectionOptions): DeviceCapabilityProfile;
|
|
12
|
+
/**
|
|
13
|
+
* Performs asynchronous advanced capability detection (probes WebGPU adapters, battery status, etc.).
|
|
14
|
+
*/
|
|
15
|
+
export declare function detectDeviceCapabilitiesAsync(options?: DeviceDetectionOptions): Promise<DeviceCapabilityProfile>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns currently cached capability profile, or runs synchronous detection if not yet populated.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getDeviceCapabilityProfile(): DeviceCapabilityProfile;
|
|
20
|
+
/**
|
|
21
|
+
* Clears cache and re-runs device capability detection.
|
|
22
|
+
*/
|
|
23
|
+
export declare function refreshDeviceCapabilities(options?: DeviceDetectionOptions): DeviceCapabilityProfile;
|
|
24
|
+
/**
|
|
25
|
+
* Resets cached profile for testing purposes.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resetCachedDeviceProfile(): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — 3D & 2D Graphics Capability Detection
|
|
3
|
+
*
|
|
4
|
+
* Detailed inspection of WebGL1, WebGL2, WebGPU, shader precision, max texture limits,
|
|
5
|
+
* extension support, and hardware renderer strings without fabricating hardware specs.
|
|
6
|
+
*/
|
|
7
|
+
import type { RendererBackend } from "../../graphics/types.js";
|
|
8
|
+
import type { WebGLCapabilitiesInfo, WebGPUCapabilitiesInfo, MockEnvironment } from "./types.js";
|
|
9
|
+
export interface DetailedGraphicsReport {
|
|
10
|
+
readonly webgl: WebGLCapabilitiesInfo;
|
|
11
|
+
readonly webgpu: WebGPUCapabilitiesInfo;
|
|
12
|
+
readonly supportedBackends: readonly RendererBackend[];
|
|
13
|
+
readonly activeBackend: RendererBackend;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Detects comprehensive WebGL and WebGPU capabilities defensively.
|
|
17
|
+
*/
|
|
18
|
+
export declare function detectDetailedGraphics(options?: {
|
|
19
|
+
testCanvas?: HTMLCanvasElement | null;
|
|
20
|
+
mockEnv?: MockEnvironment;
|
|
21
|
+
probeWebGPUAdapter?: boolean;
|
|
22
|
+
}): DetailedGraphicsReport;
|