mythik 0.0.1 → 0.1.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/LICENSE +201 -0
- package/NOTICE +4 -0
- package/README.md +97 -2
- package/dist/actions/dispatcher.d.ts +46 -0
- package/dist/actions/dispatcher.d.ts.map +1 -0
- package/dist/actions/dispatcher.js +366 -0
- package/dist/actions/dispatcher.js.map +1 -0
- package/dist/actions/middleware.d.ts +27 -0
- package/dist/actions/middleware.d.ts.map +1 -0
- package/dist/actions/middleware.js +37 -0
- package/dist/actions/middleware.js.map +1 -0
- package/dist/actions/transaction-engine.d.ts +13 -0
- package/dist/actions/transaction-engine.d.ts.map +1 -0
- package/dist/actions/transaction-engine.js +96 -0
- package/dist/actions/transaction-engine.js.map +1 -0
- package/dist/app/app-engine.d.ts +106 -0
- package/dist/app/app-engine.d.ts.map +1 -0
- package/dist/app/app-engine.js +413 -0
- package/dist/app/app-engine.js.map +1 -0
- package/dist/auth/cross-tab.d.ts +24 -0
- package/dist/auth/cross-tab.d.ts.map +1 -0
- package/dist/auth/cross-tab.js +117 -0
- package/dist/auth/cross-tab.js.map +1 -0
- package/dist/auth/engine.d.ts +16 -0
- package/dist/auth/engine.d.ts.map +1 -0
- package/dist/auth/engine.js +225 -0
- package/dist/auth/engine.js.map +1 -0
- package/dist/auth/persistence.d.ts +21 -0
- package/dist/auth/persistence.d.ts.map +1 -0
- package/dist/auth/persistence.js +97 -0
- package/dist/auth/persistence.js.map +1 -0
- package/dist/auth/providers/custom-jwt.d.ts +41 -0
- package/dist/auth/providers/custom-jwt.d.ts.map +1 -0
- package/dist/auth/providers/custom-jwt.js +165 -0
- package/dist/auth/providers/custom-jwt.js.map +1 -0
- package/dist/auth/providers/mock.d.ts +7 -0
- package/dist/auth/providers/mock.d.ts.map +1 -0
- package/dist/auth/providers/mock.js +52 -0
- package/dist/auth/providers/mock.js.map +1 -0
- package/dist/auth/providers/supabase.d.ts +90 -0
- package/dist/auth/providers/supabase.d.ts.map +1 -0
- package/dist/auth/providers/supabase.js +102 -0
- package/dist/auth/providers/supabase.js.map +1 -0
- package/dist/auth/rate-limiter.d.ts +29 -0
- package/dist/auth/rate-limiter.d.ts.map +1 -0
- package/dist/auth/rate-limiter.js +67 -0
- package/dist/auth/rate-limiter.js.map +1 -0
- package/dist/auth/refresh-engine.d.ts +25 -0
- package/dist/auth/refresh-engine.d.ts.map +1 -0
- package/dist/auth/refresh-engine.js +59 -0
- package/dist/auth/refresh-engine.js.map +1 -0
- package/dist/auth/types.d.ts +89 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/auth/types.js +2 -0
- package/dist/auth/types.js.map +1 -0
- package/dist/contract/endpoint-map.d.ts +20 -0
- package/dist/contract/endpoint-map.d.ts.map +1 -0
- package/dist/contract/endpoint-map.js +57 -0
- package/dist/contract/endpoint-map.js.map +1 -0
- package/dist/contract/engine.d.ts +12 -0
- package/dist/contract/engine.d.ts.map +1 -0
- package/dist/contract/engine.js +80 -0
- package/dist/contract/engine.js.map +1 -0
- package/dist/contract/extractor.d.ts +7 -0
- package/dist/contract/extractor.d.ts.map +1 -0
- package/dist/contract/extractor.js +133 -0
- package/dist/contract/extractor.js.map +1 -0
- package/dist/contract/index.d.ts +4 -0
- package/dist/contract/index.d.ts.map +1 -0
- package/dist/contract/index.js +2 -0
- package/dist/contract/index.js.map +1 -0
- package/dist/contract/matcher.d.ts +13 -0
- package/dist/contract/matcher.d.ts.map +1 -0
- package/dist/contract/matcher.js +57 -0
- package/dist/contract/matcher.js.map +1 -0
- package/dist/contract/rules/endpoints-exist.d.ts +3 -0
- package/dist/contract/rules/endpoints-exist.d.ts.map +1 -0
- package/dist/contract/rules/endpoints-exist.js +29 -0
- package/dist/contract/rules/endpoints-exist.js.map +1 -0
- package/dist/contract/rules/fields-valid.d.ts +3 -0
- package/dist/contract/rules/fields-valid.d.ts.map +1 -0
- package/dist/contract/rules/fields-valid.js +39 -0
- package/dist/contract/rules/fields-valid.js.map +1 -0
- package/dist/contract/rules/params-match.d.ts +3 -0
- package/dist/contract/rules/params-match.d.ts.map +1 -0
- package/dist/contract/rules/params-match.js +40 -0
- package/dist/contract/rules/params-match.js.map +1 -0
- package/dist/contract/rules/permissions-consistent.d.ts +3 -0
- package/dist/contract/rules/permissions-consistent.d.ts.map +1 -0
- package/dist/contract/rules/permissions-consistent.js +52 -0
- package/dist/contract/rules/permissions-consistent.js.map +1 -0
- package/dist/contract/types.d.ts +66 -0
- package/dist/contract/types.d.ts.map +1 -0
- package/dist/contract/types.js +2 -0
- package/dist/contract/types.js.map +1 -0
- package/dist/data/data-sources.d.ts +26 -0
- package/dist/data/data-sources.d.ts.map +1 -0
- package/dist/data/data-sources.js +218 -0
- package/dist/data/data-sources.js.map +1 -0
- package/dist/data/fetch.d.ts +29 -0
- package/dist/data/fetch.d.ts.map +1 -0
- package/dist/data/fetch.js +63 -0
- package/dist/data/fetch.js.map +1 -0
- package/dist/data/offline.d.ts +29 -0
- package/dist/data/offline.d.ts.map +1 -0
- package/dist/data/offline.js +48 -0
- package/dist/data/offline.js.map +1 -0
- package/dist/data/realtime.d.ts +21 -0
- package/dist/data/realtime.d.ts.map +1 -0
- package/dist/data/realtime.js +40 -0
- package/dist/data/realtime.js.map +1 -0
- package/dist/derive/evaluator.d.ts +19 -0
- package/dist/derive/evaluator.d.ts.map +1 -0
- package/dist/derive/evaluator.js +59 -0
- package/dist/derive/evaluator.js.map +1 -0
- package/dist/derive/topo-sort.d.ts +10 -0
- package/dist/derive/topo-sort.d.ts.map +1 -0
- package/dist/derive/topo-sort.js +36 -0
- package/dist/derive/topo-sort.js.map +1 -0
- package/dist/design/animation/cascade-types.d.ts +23 -0
- package/dist/design/animation/cascade-types.d.ts.map +1 -0
- package/dist/design/animation/cascade-types.js +2 -0
- package/dist/design/animation/cascade-types.js.map +1 -0
- package/dist/design/animation/cascade.d.ts +4 -0
- package/dist/design/animation/cascade.d.ts.map +1 -0
- package/dist/design/animation/cascade.js +73 -0
- package/dist/design/animation/cascade.js.map +1 -0
- package/dist/design/animation/css-keyframes.d.ts +8 -0
- package/dist/design/animation/css-keyframes.d.ts.map +1 -0
- package/dist/design/animation/css-keyframes.js +72 -0
- package/dist/design/animation/css-keyframes.js.map +1 -0
- package/dist/design/animation/index.d.ts +14 -0
- package/dist/design/animation/index.d.ts.map +1 -0
- package/dist/design/animation/index.js +9 -0
- package/dist/design/animation/index.js.map +1 -0
- package/dist/design/animation/keyframes-builder.d.ts +40 -0
- package/dist/design/animation/keyframes-builder.d.ts.map +1 -0
- package/dist/design/animation/keyframes-builder.js +140 -0
- package/dist/design/animation/keyframes-builder.js.map +1 -0
- package/dist/design/animation/reanimated-spec.d.ts +16 -0
- package/dist/design/animation/reanimated-spec.d.ts.map +1 -0
- package/dist/design/animation/reanimated-spec.js +162 -0
- package/dist/design/animation/reanimated-spec.js.map +1 -0
- package/dist/design/animation/reduced-motion.d.ts +3 -0
- package/dist/design/animation/reduced-motion.d.ts.map +1 -0
- package/dist/design/animation/reduced-motion.js +54 -0
- package/dist/design/animation/reduced-motion.js.map +1 -0
- package/dist/design/animation/resolver.d.ts +3 -0
- package/dist/design/animation/resolver.d.ts.map +1 -0
- package/dist/design/animation/resolver.js +86 -0
- package/dist/design/animation/resolver.js.map +1 -0
- package/dist/design/animation/types.d.ts +109 -0
- package/dist/design/animation/types.d.ts.map +1 -0
- package/dist/design/animation/types.js +7 -0
- package/dist/design/animation/types.js.map +1 -0
- package/dist/design/animation/validator.d.ts +44 -0
- package/dist/design/animation/validator.d.ts.map +1 -0
- package/dist/design/animation/validator.js +169 -0
- package/dist/design/animation/validator.js.map +1 -0
- package/dist/design/background/blobs/catalog.d.ts +10 -0
- package/dist/design/background/blobs/catalog.d.ts.map +1 -0
- package/dist/design/background/blobs/catalog.js +63 -0
- package/dist/design/background/blobs/catalog.js.map +1 -0
- package/dist/design/background/blobs/index.d.ts +4 -0
- package/dist/design/background/blobs/index.d.ts.map +1 -0
- package/dist/design/background/blobs/index.js +5 -0
- package/dist/design/background/blobs/index.js.map +1 -0
- package/dist/design/background/blobs/resolver.d.ts +16 -0
- package/dist/design/background/blobs/resolver.d.ts.map +1 -0
- package/dist/design/background/blobs/resolver.js +301 -0
- package/dist/design/background/blobs/resolver.js.map +1 -0
- package/dist/design/background/blobs/types.d.ts +112 -0
- package/dist/design/background/blobs/types.d.ts.map +1 -0
- package/dist/design/background/blobs/types.js +27 -0
- package/dist/design/background/blobs/types.js.map +1 -0
- package/dist/design/background/grain.d.ts +3 -0
- package/dist/design/background/grain.d.ts.map +1 -0
- package/dist/design/background/grain.js +23 -0
- package/dist/design/background/grain.js.map +1 -0
- package/dist/design/background/index.d.ts +8 -0
- package/dist/design/background/index.d.ts.map +1 -0
- package/dist/design/background/index.js +8 -0
- package/dist/design/background/index.js.map +1 -0
- package/dist/design/background/layers.d.ts +3 -0
- package/dist/design/background/layers.d.ts.map +1 -0
- package/dist/design/background/layers.js +23 -0
- package/dist/design/background/layers.js.map +1 -0
- package/dist/design/background/patterns/chevron.d.ts +8 -0
- package/dist/design/background/patterns/chevron.d.ts.map +1 -0
- package/dist/design/background/patterns/chevron.js +10 -0
- package/dist/design/background/patterns/chevron.js.map +1 -0
- package/dist/design/background/patterns/crosshatch.d.ts +8 -0
- package/dist/design/background/patterns/crosshatch.d.ts.map +1 -0
- package/dist/design/background/patterns/crosshatch.js +12 -0
- package/dist/design/background/patterns/crosshatch.js.map +1 -0
- package/dist/design/background/patterns/diagonal.d.ts +8 -0
- package/dist/design/background/patterns/diagonal.d.ts.map +1 -0
- package/dist/design/background/patterns/diagonal.js +7 -0
- package/dist/design/background/patterns/diagonal.js.map +1 -0
- package/dist/design/background/patterns/dots.d.ts +7 -0
- package/dist/design/background/patterns/dots.d.ts.map +1 -0
- package/dist/design/background/patterns/dots.js +9 -0
- package/dist/design/background/patterns/dots.js.map +1 -0
- package/dist/design/background/patterns/grid.d.ts +7 -0
- package/dist/design/background/patterns/grid.d.ts.map +1 -0
- package/dist/design/background/patterns/grid.js +8 -0
- package/dist/design/background/patterns/grid.js.map +1 -0
- package/dist/design/background/patterns/index.d.ts +8 -0
- package/dist/design/background/patterns/index.d.ts.map +1 -0
- package/dist/design/background/patterns/index.js +8 -0
- package/dist/design/background/patterns/index.js.map +1 -0
- package/dist/design/background/patterns/iso.d.ts +7 -0
- package/dist/design/background/patterns/iso.d.ts.map +1 -0
- package/dist/design/background/patterns/iso.js +11 -0
- package/dist/design/background/patterns/iso.js.map +1 -0
- package/dist/design/background/patterns/resolver.d.ts +3 -0
- package/dist/design/background/patterns/resolver.d.ts.map +1 -0
- package/dist/design/background/patterns/resolver.js +56 -0
- package/dist/design/background/patterns/resolver.js.map +1 -0
- package/dist/design/background/primitives/gradient.d.ts +3 -0
- package/dist/design/background/primitives/gradient.d.ts.map +1 -0
- package/dist/design/background/primitives/gradient.js +68 -0
- package/dist/design/background/primitives/gradient.js.map +1 -0
- package/dist/design/background/primitives/image.d.ts +3 -0
- package/dist/design/background/primitives/image.d.ts.map +1 -0
- package/dist/design/background/primitives/image.js +12 -0
- package/dist/design/background/primitives/image.js.map +1 -0
- package/dist/design/background/primitives/index.d.ts +4 -0
- package/dist/design/background/primitives/index.d.ts.map +1 -0
- package/dist/design/background/primitives/index.js +4 -0
- package/dist/design/background/primitives/index.js.map +1 -0
- package/dist/design/background/primitives/solid.d.ts +8 -0
- package/dist/design/background/primitives/solid.d.ts.map +1 -0
- package/dist/design/background/primitives/solid.js +15 -0
- package/dist/design/background/primitives/solid.js.map +1 -0
- package/dist/design/background/resolver.d.ts +3 -0
- package/dist/design/background/resolver.d.ts.map +1 -0
- package/dist/design/background/resolver.js +20 -0
- package/dist/design/background/resolver.js.map +1 -0
- package/dist/design/background/sanitizer.d.ts +2 -0
- package/dist/design/background/sanitizer.d.ts.map +1 -0
- package/dist/design/background/sanitizer.js +54 -0
- package/dist/design/background/sanitizer.js.map +1 -0
- package/dist/design/deep-tokens.d.ts +125 -0
- package/dist/design/deep-tokens.d.ts.map +1 -0
- package/dist/design/deep-tokens.js +115 -0
- package/dist/design/deep-tokens.js.map +1 -0
- package/dist/design/dna.d.ts +7 -0
- package/dist/design/dna.d.ts.map +1 -0
- package/dist/design/dna.js +210 -0
- package/dist/design/dna.js.map +1 -0
- package/dist/design/identity/color.d.ts +8 -0
- package/dist/design/identity/color.d.ts.map +1 -0
- package/dist/design/identity/color.js +64 -0
- package/dist/design/identity/color.js.map +1 -0
- package/dist/design/identity/elevation.d.ts +8 -0
- package/dist/design/identity/elevation.d.ts.map +1 -0
- package/dist/design/identity/elevation.js +31 -0
- package/dist/design/identity/elevation.js.map +1 -0
- package/dist/design/identity/index.d.ts +12 -0
- package/dist/design/identity/index.d.ts.map +1 -0
- package/dist/design/identity/index.js +14 -0
- package/dist/design/identity/index.js.map +1 -0
- package/dist/design/identity/shape.d.ts +4 -0
- package/dist/design/identity/shape.d.ts.map +1 -0
- package/dist/design/identity/shape.js +23 -0
- package/dist/design/identity/shape.js.map +1 -0
- package/dist/design/identity/surface.d.ts +18 -0
- package/dist/design/identity/surface.d.ts.map +1 -0
- package/dist/design/identity/surface.js +125 -0
- package/dist/design/identity/surface.js.map +1 -0
- package/dist/design/identity/types.d.ts +280 -0
- package/dist/design/identity/types.d.ts.map +1 -0
- package/dist/design/identity/types.js +21 -0
- package/dist/design/identity/types.js.map +1 -0
- package/dist/design/identity/typography.d.ts +7 -0
- package/dist/design/identity/typography.d.ts.map +1 -0
- package/dist/design/identity/typography.js +42 -0
- package/dist/design/identity/typography.js.map +1 -0
- package/dist/design/identity-resolver.d.ts +15 -0
- package/dist/design/identity-resolver.d.ts.map +1 -0
- package/dist/design/identity-resolver.js +52 -0
- package/dist/design/identity-resolver.js.map +1 -0
- package/dist/design/oklch.d.ts +10 -0
- package/dist/design/oklch.d.ts.map +1 -0
- package/dist/design/oklch.js +61 -0
- package/dist/design/oklch.js.map +1 -0
- package/dist/design/palette.d.ts +26 -0
- package/dist/design/palette.d.ts.map +1 -0
- package/dist/design/palette.js +73 -0
- package/dist/design/palette.js.map +1 -0
- package/dist/design/presets.d.ts +18 -0
- package/dist/design/presets.d.ts.map +1 -0
- package/dist/design/presets.js +2 -0
- package/dist/design/presets.js.map +1 -0
- package/dist/design/recipes/animations.d.ts +11 -0
- package/dist/design/recipes/animations.d.ts.map +1 -0
- package/dist/design/recipes/animations.js +180 -0
- package/dist/design/recipes/animations.js.map +1 -0
- package/dist/design/recipes/backgrounds.d.ts +3 -0
- package/dist/design/recipes/backgrounds.d.ts.map +1 -0
- package/dist/design/recipes/backgrounds.js +152 -0
- package/dist/design/recipes/backgrounds.js.map +1 -0
- package/dist/design/recipes/index.d.ts +2 -0
- package/dist/design/recipes/index.d.ts.map +1 -0
- package/dist/design/recipes/index.js +2 -0
- package/dist/design/recipes/index.js.map +1 -0
- package/dist/design/surface-to-css.d.ts +57 -0
- package/dist/design/surface-to-css.d.ts.map +1 -0
- package/dist/design/surface-to-css.js +130 -0
- package/dist/design/surface-to-css.js.map +1 -0
- package/dist/design/surface-to-rn.d.ts +57 -0
- package/dist/design/surface-to-rn.d.ts.map +1 -0
- package/dist/design/surface-to-rn.js +133 -0
- package/dist/design/surface-to-rn.js.map +1 -0
- package/dist/design/tokens.d.ts +67 -0
- package/dist/design/tokens.d.ts.map +1 -0
- package/dist/design/tokens.js +36 -0
- package/dist/design/tokens.js.map +1 -0
- package/dist/device/context.d.ts +13 -0
- package/dist/device/context.d.ts.map +1 -0
- package/dist/device/context.js +2 -0
- package/dist/device/context.js.map +1 -0
- package/dist/editor-session/clone.d.ts +4 -0
- package/dist/editor-session/clone.d.ts.map +1 -0
- package/dist/editor-session/clone.js +55 -0
- package/dist/editor-session/clone.js.map +1 -0
- package/dist/editor-session/engine.d.ts +21 -0
- package/dist/editor-session/engine.d.ts.map +1 -0
- package/dist/editor-session/engine.js +375 -0
- package/dist/editor-session/engine.js.map +1 -0
- package/dist/editor-session/persistence.d.ts +8 -0
- package/dist/editor-session/persistence.d.ts.map +1 -0
- package/dist/editor-session/persistence.js +89 -0
- package/dist/editor-session/persistence.js.map +1 -0
- package/dist/editor-session/types.d.ts +90 -0
- package/dist/editor-session/types.d.ts.map +1 -0
- package/dist/editor-session/types.js +2 -0
- package/dist/editor-session/types.js.map +1 -0
- package/dist/editor-session/validators.d.ts +5 -0
- package/dist/editor-session/validators.d.ts.map +1 -0
- package/dist/editor-session/validators.js +106 -0
- package/dist/editor-session/validators.js.map +1 -0
- package/dist/elements/composer.d.ts +109 -0
- package/dist/elements/composer.d.ts.map +1 -0
- package/dist/elements/composer.js +129 -0
- package/dist/elements/composer.js.map +1 -0
- package/dist/export/csv.d.ts +3 -0
- package/dist/export/csv.d.ts.map +1 -0
- package/dist/export/csv.js +16 -0
- package/dist/export/csv.js.map +1 -0
- package/dist/export/download.d.ts +2 -0
- package/dist/export/download.d.ts.map +1 -0
- package/dist/export/download.js +13 -0
- package/dist/export/download.js.map +1 -0
- package/dist/export/format.d.ts +3 -0
- package/dist/export/format.d.ts.map +1 -0
- package/dist/export/format.js +43 -0
- package/dist/export/format.js.map +1 -0
- package/dist/export/types.d.ts +22 -0
- package/dist/export/types.d.ts.map +1 -0
- package/dist/export/types.js +2 -0
- package/dist/export/types.js.map +1 -0
- package/dist/expressions/deep-resolve.d.ts +4 -0
- package/dist/expressions/deep-resolve.d.ts.map +1 -0
- package/dist/expressions/deep-resolve.js +20 -0
- package/dist/expressions/deep-resolve.js.map +1 -0
- package/dist/expressions/handlers/array.d.ts +19 -0
- package/dist/expressions/handlers/array.d.ts.map +1 -0
- package/dist/expressions/handlers/array.js +161 -0
- package/dist/expressions/handlers/array.js.map +1 -0
- package/dist/expressions/handlers/auth.d.ts +13 -0
- package/dist/expressions/handlers/auth.d.ts.map +1 -0
- package/dist/expressions/handlers/auth.js +90 -0
- package/dist/expressions/handlers/auth.js.map +1 -0
- package/dist/expressions/handlers/bind.d.ts +22 -0
- package/dist/expressions/handlers/bind.d.ts.map +1 -0
- package/dist/expressions/handlers/bind.js +57 -0
- package/dist/expressions/handlers/bind.js.map +1 -0
- package/dist/expressions/handlers/breakpoint.d.ts +10 -0
- package/dist/expressions/handlers/breakpoint.d.ts.map +1 -0
- package/dist/expressions/handlers/breakpoint.js +39 -0
- package/dist/expressions/handlers/breakpoint.js.map +1 -0
- package/dist/expressions/handlers/computed.d.ts +3 -0
- package/dist/expressions/handlers/computed.d.ts.map +1 -0
- package/dist/expressions/handlers/computed.js +20 -0
- package/dist/expressions/handlers/computed.js.map +1 -0
- package/dist/expressions/handlers/cond.d.ts +3 -0
- package/dist/expressions/handlers/cond.d.ts.map +1 -0
- package/dist/expressions/handlers/cond.js +57 -0
- package/dist/expressions/handlers/cond.js.map +1 -0
- package/dist/expressions/handlers/date.d.ts +14 -0
- package/dist/expressions/handlers/date.d.ts.map +1 -0
- package/dist/expressions/handlers/date.js +95 -0
- package/dist/expressions/handlers/date.js.map +1 -0
- package/dist/expressions/handlers/format.d.ts +19 -0
- package/dist/expressions/handlers/format.d.ts.map +1 -0
- package/dist/expressions/handlers/format.js +93 -0
- package/dist/expressions/handlers/format.js.map +1 -0
- package/dist/expressions/handlers/group.d.ts +25 -0
- package/dist/expressions/handlers/group.d.ts.map +1 -0
- package/dist/expressions/handlers/group.js +85 -0
- package/dist/expressions/handlers/group.js.map +1 -0
- package/dist/expressions/handlers/i18n.d.ts +8 -0
- package/dist/expressions/handlers/i18n.d.ts.map +1 -0
- package/dist/expressions/handlers/i18n.js +35 -0
- package/dist/expressions/handlers/i18n.js.map +1 -0
- package/dist/expressions/handlers/index.d.ts +4 -0
- package/dist/expressions/handlers/index.d.ts.map +1 -0
- package/dist/expressions/handlers/index.js +52 -0
- package/dist/expressions/handlers/index.js.map +1 -0
- package/dist/expressions/handlers/let.d.ts +4 -0
- package/dist/expressions/handlers/let.d.ts.map +1 -0
- package/dist/expressions/handlers/let.js +36 -0
- package/dist/expressions/handlers/let.js.map +1 -0
- package/dist/expressions/handlers/logic.d.ts +27 -0
- package/dist/expressions/handlers/logic.d.ts.map +1 -0
- package/dist/expressions/handlers/logic.js +52 -0
- package/dist/expressions/handlers/logic.js.map +1 -0
- package/dist/expressions/handlers/math.d.ts +13 -0
- package/dist/expressions/handlers/math.d.ts.map +1 -0
- package/dist/expressions/handlers/math.js +58 -0
- package/dist/expressions/handlers/math.js.map +1 -0
- package/dist/expressions/handlers/platform.d.ts +13 -0
- package/dist/expressions/handlers/platform.d.ts.map +1 -0
- package/dist/expressions/handlers/platform.js +37 -0
- package/dist/expressions/handlers/platform.js.map +1 -0
- package/dist/expressions/handlers/prop.d.ts +10 -0
- package/dist/expressions/handlers/prop.d.ts.map +1 -0
- package/dist/expressions/handlers/prop.js +18 -0
- package/dist/expressions/handlers/prop.js.map +1 -0
- package/dist/expressions/handlers/selection.d.ts +10 -0
- package/dist/expressions/handlers/selection.d.ts.map +1 -0
- package/dist/expressions/handlers/selection.js +33 -0
- package/dist/expressions/handlers/selection.js.map +1 -0
- package/dist/expressions/handlers/state.d.ts +3 -0
- package/dist/expressions/handlers/state.d.ts.map +1 -0
- package/dist/expressions/handlers/state.js +8 -0
- package/dist/expressions/handlers/state.js.map +1 -0
- package/dist/expressions/handlers/switch.d.ts +15 -0
- package/dist/expressions/handlers/switch.d.ts.map +1 -0
- package/dist/expressions/handlers/switch.js +31 -0
- package/dist/expressions/handlers/switch.js.map +1 -0
- package/dist/expressions/handlers/template.d.ts +3 -0
- package/dist/expressions/handlers/template.d.ts.map +1 -0
- package/dist/expressions/handlers/template.js +23 -0
- package/dist/expressions/handlers/template.js.map +1 -0
- package/dist/expressions/handlers/token.d.ts +3 -0
- package/dist/expressions/handlers/token.d.ts.map +1 -0
- package/dist/expressions/handlers/token.js +40 -0
- package/dist/expressions/handlers/token.js.map +1 -0
- package/dist/expressions/handlers/unique-id.d.ts +11 -0
- package/dist/expressions/handlers/unique-id.d.ts.map +1 -0
- package/dist/expressions/handlers/unique-id.js +52 -0
- package/dist/expressions/handlers/unique-id.js.map +1 -0
- package/dist/expressions/registry.d.ts +8 -0
- package/dist/expressions/registry.d.ts.map +1 -0
- package/dist/expressions/registry.js +35 -0
- package/dist/expressions/registry.js.map +1 -0
- package/dist/expressions/resolver.d.ts +15 -0
- package/dist/expressions/resolver.d.ts.map +1 -0
- package/dist/expressions/resolver.js +56 -0
- package/dist/expressions/resolver.js.map +1 -0
- package/dist/factory.d.ts +56 -0
- package/dist/factory.d.ts.map +1 -0
- package/dist/factory.js +265 -0
- package/dist/factory.js.map +1 -0
- package/dist/fetch/framework-fetch.d.ts +12 -0
- package/dist/fetch/framework-fetch.d.ts.map +1 -0
- package/dist/fetch/framework-fetch.js +36 -0
- package/dist/fetch/framework-fetch.js.map +1 -0
- package/dist/fetch/interceptors/auth.d.ts +19 -0
- package/dist/fetch/interceptors/auth.d.ts.map +1 -0
- package/dist/fetch/interceptors/auth.js +66 -0
- package/dist/fetch/interceptors/auth.js.map +1 -0
- package/dist/fetch/interceptors/logging.d.ts +8 -0
- package/dist/fetch/interceptors/logging.d.ts.map +1 -0
- package/dist/fetch/interceptors/logging.js +40 -0
- package/dist/fetch/interceptors/logging.js.map +1 -0
- package/dist/fetch/interceptors/retry.d.ts +20 -0
- package/dist/fetch/interceptors/retry.d.ts.map +1 -0
- package/dist/fetch/interceptors/retry.js +34 -0
- package/dist/fetch/interceptors/retry.js.map +1 -0
- package/dist/fetch/interceptors/timeout.d.ts +7 -0
- package/dist/fetch/interceptors/timeout.d.ts.map +1 -0
- package/dist/fetch/interceptors/timeout.js +20 -0
- package/dist/fetch/interceptors/timeout.js.map +1 -0
- package/dist/fetch/types.d.ts +30 -0
- package/dist/fetch/types.d.ts.map +1 -0
- package/dist/fetch/types.js +2 -0
- package/dist/fetch/types.js.map +1 -0
- package/dist/forms/engine.d.ts +3 -0
- package/dist/forms/engine.d.ts.map +1 -0
- package/dist/forms/engine.js +167 -0
- package/dist/forms/engine.js.map +1 -0
- package/dist/forms/types.d.ts +30 -0
- package/dist/forms/types.d.ts.map +1 -0
- package/dist/forms/types.js +2 -0
- package/dist/forms/types.js.map +1 -0
- package/dist/i18n/engine.d.ts +15 -0
- package/dist/i18n/engine.d.ts.map +1 -0
- package/dist/i18n/engine.js +61 -0
- package/dist/i18n/engine.js.map +1 -0
- package/dist/index.d.ts +161 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/interactions/data-operations.d.ts +51 -0
- package/dist/interactions/data-operations.d.ts.map +1 -0
- package/dist/interactions/data-operations.js +64 -0
- package/dist/interactions/data-operations.js.map +1 -0
- package/dist/interactions/drag-drop.d.ts +14 -0
- package/dist/interactions/drag-drop.d.ts.map +1 -0
- package/dist/interactions/drag-drop.js +35 -0
- package/dist/interactions/drag-drop.js.map +1 -0
- package/dist/interactions/export.d.ts +24 -0
- package/dist/interactions/export.d.ts.map +1 -0
- package/dist/interactions/export.js +44 -0
- package/dist/interactions/export.js.map +1 -0
- package/dist/interactions/history.d.ts +16 -0
- package/dist/interactions/history.d.ts.map +1 -0
- package/dist/interactions/history.js +52 -0
- package/dist/interactions/history.js.map +1 -0
- package/dist/motion/engine.d.ts +47 -0
- package/dist/motion/engine.d.ts.map +1 -0
- package/dist/motion/engine.js +81 -0
- package/dist/motion/engine.js.map +1 -0
- package/dist/navigation/router.d.ts +36 -0
- package/dist/navigation/router.d.ts.map +1 -0
- package/dist/navigation/router.js +51 -0
- package/dist/navigation/router.js.map +1 -0
- package/dist/permissions/evaluator.d.ts +15 -0
- package/dist/permissions/evaluator.d.ts.map +1 -0
- package/dist/permissions/evaluator.js +32 -0
- package/dist/permissions/evaluator.js.map +1 -0
- package/dist/plugins/loader.d.ts +30 -0
- package/dist/plugins/loader.d.ts.map +1 -0
- package/dist/plugins/loader.js +87 -0
- package/dist/plugins/loader.js.map +1 -0
- package/dist/reference/generator.d.ts +25 -0
- package/dist/reference/generator.d.ts.map +1 -0
- package/dist/reference/generator.js +808 -0
- package/dist/reference/generator.js.map +1 -0
- package/dist/renderer/deps.d.ts +24 -0
- package/dist/renderer/deps.d.ts.map +1 -0
- package/dist/renderer/deps.js +150 -0
- package/dist/renderer/deps.js.map +1 -0
- package/dist/renderer/engine.d.ts +15 -0
- package/dist/renderer/engine.d.ts.map +1 -0
- package/dist/renderer/engine.js +1097 -0
- package/dist/renderer/engine.js.map +1 -0
- package/dist/renderer/lazy-paths.d.ts +14 -0
- package/dist/renderer/lazy-paths.d.ts.map +1 -0
- package/dist/renderer/lazy-paths.js +63 -0
- package/dist/renderer/lazy-paths.js.map +1 -0
- package/dist/renderer/prop-schemas.d.ts +17 -0
- package/dist/renderer/prop-schemas.d.ts.map +1 -0
- package/dist/renderer/prop-schemas.js +81 -0
- package/dist/renderer/prop-schemas.js.map +1 -0
- package/dist/renderer/registry.d.ts +10 -0
- package/dist/renderer/registry.d.ts.map +1 -0
- package/dist/renderer/registry.js +22 -0
- package/dist/renderer/registry.js.map +1 -0
- package/dist/renderer/variants.d.ts +54 -0
- package/dist/renderer/variants.d.ts.map +1 -0
- package/dist/renderer/variants.js +105 -0
- package/dist/renderer/variants.js.map +1 -0
- package/dist/runtime/mount-spec-runtime.d.ts +59 -0
- package/dist/runtime/mount-spec-runtime.d.ts.map +1 -0
- package/dist/runtime/mount-spec-runtime.js +73 -0
- package/dist/runtime/mount-spec-runtime.js.map +1 -0
- package/dist/security/api-spec-validator.d.ts +13 -0
- package/dist/security/api-spec-validator.d.ts.map +1 -0
- package/dist/security/api-spec-validator.js +347 -0
- package/dist/security/api-spec-validator.js.map +1 -0
- package/dist/security/app-spec-validator.d.ts +4 -0
- package/dist/security/app-spec-validator.d.ts.map +1 -0
- package/dist/security/app-spec-validator.js +200 -0
- package/dist/security/app-spec-validator.js.map +1 -0
- package/dist/security/identifier-guard.d.ts +3 -0
- package/dist/security/identifier-guard.d.ts.map +1 -0
- package/dist/security/identifier-guard.js +15 -0
- package/dist/security/identifier-guard.js.map +1 -0
- package/dist/security/identity-token-validator.d.ts +3 -0
- package/dist/security/identity-token-validator.d.ts.map +1 -0
- package/dist/security/identity-token-validator.js +121 -0
- package/dist/security/identity-token-validator.js.map +1 -0
- package/dist/security/index.d.ts +14 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +8 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/protection-registry.d.ts +24 -0
- package/dist/security/protection-registry.d.ts.map +1 -0
- package/dist/security/protection-registry.js +35 -0
- package/dist/security/protection-registry.js.map +1 -0
- package/dist/security/rate-limiter.d.ts +23 -0
- package/dist/security/rate-limiter.d.ts.map +1 -0
- package/dist/security/rate-limiter.js +44 -0
- package/dist/security/rate-limiter.js.map +1 -0
- package/dist/security/spec-signing.d.ts +23 -0
- package/dist/security/spec-signing.d.ts.map +1 -0
- package/dist/security/spec-signing.js +62 -0
- package/dist/security/spec-signing.js.map +1 -0
- package/dist/security/spec-validator.d.ts +60 -0
- package/dist/security/spec-validator.d.ts.map +1 -0
- package/dist/security/spec-validator.js +903 -0
- package/dist/security/spec-validator.js.map +1 -0
- package/dist/security/state-protection.d.ts +23 -0
- package/dist/security/state-protection.d.ts.map +1 -0
- package/dist/security/state-protection.js +49 -0
- package/dist/security/state-protection.js.map +1 -0
- package/dist/security/url-whitelist.d.ts +14 -0
- package/dist/security/url-whitelist.d.ts.map +1 -0
- package/dist/security/url-whitelist.js +37 -0
- package/dist/security/url-whitelist.js.map +1 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +8 -0
- package/dist/server.js.map +1 -0
- package/dist/spec-engine/app-elements.d.ts +5 -0
- package/dist/spec-engine/app-elements.d.ts.map +1 -0
- package/dist/spec-engine/app-elements.js +36 -0
- package/dist/spec-engine/app-elements.js.map +1 -0
- package/dist/spec-engine/app-manifest.d.ts +3 -0
- package/dist/spec-engine/app-manifest.d.ts.map +1 -0
- package/dist/spec-engine/app-manifest.js +132 -0
- package/dist/spec-engine/app-manifest.js.map +1 -0
- package/dist/spec-engine/elements.d.ts +8 -0
- package/dist/spec-engine/elements.d.ts.map +1 -0
- package/dist/spec-engine/elements.js +18 -0
- package/dist/spec-engine/elements.js.map +1 -0
- package/dist/spec-engine/engine.d.ts +3 -0
- package/dist/spec-engine/engine.d.ts.map +1 -0
- package/dist/spec-engine/engine.js +76 -0
- package/dist/spec-engine/engine.js.map +1 -0
- package/dist/spec-engine/handlers/api-handler.d.ts +5 -0
- package/dist/spec-engine/handlers/api-handler.d.ts.map +1 -0
- package/dist/spec-engine/handlers/api-handler.js +111 -0
- package/dist/spec-engine/handlers/api-handler.js.map +1 -0
- package/dist/spec-engine/handlers/app-handler.d.ts +4 -0
- package/dist/spec-engine/handlers/app-handler.d.ts.map +1 -0
- package/dist/spec-engine/handlers/app-handler.js +41 -0
- package/dist/spec-engine/handlers/app-handler.js.map +1 -0
- package/dist/spec-engine/handlers/index.d.ts +8 -0
- package/dist/spec-engine/handlers/index.d.ts.map +1 -0
- package/dist/spec-engine/handlers/index.js +17 -0
- package/dist/spec-engine/handlers/index.js.map +1 -0
- package/dist/spec-engine/handlers/screen-handler.d.ts +4 -0
- package/dist/spec-engine/handlers/screen-handler.d.ts.map +1 -0
- package/dist/spec-engine/handlers/screen-handler.js +34 -0
- package/dist/spec-engine/handlers/screen-handler.js.map +1 -0
- package/dist/spec-engine/manifest.d.ts +11 -0
- package/dist/spec-engine/manifest.d.ts.map +1 -0
- package/dist/spec-engine/manifest.js +76 -0
- package/dist/spec-engine/manifest.js.map +1 -0
- package/dist/spec-engine/types.d.ts +61 -0
- package/dist/spec-engine/types.d.ts.map +1 -0
- package/dist/spec-engine/types.js +2 -0
- package/dist/spec-engine/types.js.map +1 -0
- package/dist/spec-stores/file.d.ts +12 -0
- package/dist/spec-stores/file.d.ts.map +1 -0
- package/dist/spec-stores/file.js +32 -0
- package/dist/spec-stores/file.js.map +1 -0
- package/dist/spec-stores/memory-versioned.d.ts +22 -0
- package/dist/spec-stores/memory-versioned.d.ts.map +1 -0
- package/dist/spec-stores/memory-versioned.js +125 -0
- package/dist/spec-stores/memory-versioned.js.map +1 -0
- package/dist/spec-stores/memory.d.ts +10 -0
- package/dist/spec-stores/memory.d.ts.map +1 -0
- package/dist/spec-stores/memory.js +31 -0
- package/dist/spec-stores/memory.js.map +1 -0
- package/dist/spec-stores/sqlserver-versioned.d.ts +44 -0
- package/dist/spec-stores/sqlserver-versioned.d.ts.map +1 -0
- package/dist/spec-stores/sqlserver-versioned.js +253 -0
- package/dist/spec-stores/sqlserver-versioned.js.map +1 -0
- package/dist/spec-stores/sqlserver.d.ts +27 -0
- package/dist/spec-stores/sqlserver.d.ts.map +1 -0
- package/dist/spec-stores/sqlserver.js +78 -0
- package/dist/spec-stores/sqlserver.js.map +1 -0
- package/dist/spec-stores/supabase-versioned.d.ts +38 -0
- package/dist/spec-stores/supabase-versioned.d.ts.map +1 -0
- package/dist/spec-stores/supabase-versioned.js +197 -0
- package/dist/spec-stores/supabase-versioned.js.map +1 -0
- package/dist/spec-stores/supabase.d.ts +18 -0
- package/dist/spec-stores/supabase.d.ts.map +1 -0
- package/dist/spec-stores/supabase.js +68 -0
- package/dist/spec-stores/supabase.js.map +1 -0
- package/dist/state/reserved-paths.d.ts +41 -0
- package/dist/state/reserved-paths.d.ts.map +1 -0
- package/dist/state/reserved-paths.js +40 -0
- package/dist/state/reserved-paths.js.map +1 -0
- package/dist/state/store.d.ts +18 -0
- package/dist/state/store.d.ts.map +1 -0
- package/dist/state/store.js +114 -0
- package/dist/state/store.js.map +1 -0
- package/dist/storage/supabase.d.ts +37 -0
- package/dist/storage/supabase.d.ts.map +1 -0
- package/dist/storage/supabase.js +22 -0
- package/dist/storage/supabase.js.map +1 -0
- package/dist/storage/types.d.ts +22 -0
- package/dist/storage/types.d.ts.map +1 -0
- package/dist/storage/types.js +2 -0
- package/dist/storage/types.js.map +1 -0
- package/dist/storage/upload-action.d.ts +22 -0
- package/dist/storage/upload-action.d.ts.map +1 -0
- package/dist/storage/upload-action.js +117 -0
- package/dist/storage/upload-action.js.map +1 -0
- package/dist/storage/url.d.ts +17 -0
- package/dist/storage/url.d.ts.map +1 -0
- package/dist/storage/url.js +48 -0
- package/dist/storage/url.js.map +1 -0
- package/dist/streaming/compiler.d.ts +26 -0
- package/dist/streaming/compiler.d.ts.map +1 -0
- package/dist/streaming/compiler.js +54 -0
- package/dist/streaming/compiler.js.map +1 -0
- package/dist/streaming/patch.d.ts +19 -0
- package/dist/streaming/patch.d.ts.map +1 -0
- package/dist/streaming/patch.js +139 -0
- package/dist/streaming/patch.js.map +1 -0
- package/dist/types.d.ts +443 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/util/to-array.d.ts +2 -0
- package/dist/util/to-array.d.ts.map +1 -0
- package/dist/util/to-array.js +14 -0
- package/dist/util/to-array.js.map +1 -0
- package/dist/utils/levenshtein.d.ts +3 -0
- package/dist/utils/levenshtein.d.ts.map +1 -0
- package/dist/utils/levenshtein.js +29 -0
- package/dist/utils/levenshtein.js.map +1 -0
- package/dist/validation/validators.d.ts +20 -0
- package/dist/validation/validators.d.ts.map +1 -0
- package/dist/validation/validators.js +138 -0
- package/dist/validation/validators.js.map +1 -0
- package/dist/versioning/compute-patches.d.ts +7 -0
- package/dist/versioning/compute-patches.d.ts.map +1 -0
- package/dist/versioning/compute-patches.js +62 -0
- package/dist/versioning/compute-patches.js.map +1 -0
- package/dist/versioning/index.d.ts +12 -0
- package/dist/versioning/index.d.ts.map +1 -0
- package/dist/versioning/index.js +7 -0
- package/dist/versioning/index.js.map +1 -0
- package/dist/versioning/promote-gate.d.ts +12 -0
- package/dist/versioning/promote-gate.d.ts.map +1 -0
- package/dist/versioning/promote-gate.js +166 -0
- package/dist/versioning/promote-gate.js.map +1 -0
- package/dist/versioning/rollback.d.ts +26 -0
- package/dist/versioning/rollback.d.ts.map +1 -0
- package/dist/versioning/rollback.js +67 -0
- package/dist/versioning/rollback.js.map +1 -0
- package/dist/versioning/structural-diff.d.ts +8 -0
- package/dist/versioning/structural-diff.d.ts.map +1 -0
- package/dist/versioning/structural-diff.js +287 -0
- package/dist/versioning/structural-diff.js.map +1 -0
- package/dist/versioning/types.d.ts +90 -0
- package/dist/versioning/types.d.ts.map +1 -0
- package/dist/versioning/types.js +2 -0
- package/dist/versioning/types.js.map +1 -0
- package/dist/visibility/evaluator.d.ts +12 -0
- package/dist/visibility/evaluator.d.ts.map +1 -0
- package/dist/visibility/evaluator.js +76 -0
- package/dist/visibility/evaluator.js.map +1 -0
- package/dist/watchers/engine.d.ts +19 -0
- package/dist/watchers/engine.d.ts.map +1 -0
- package/dist/watchers/engine.js +24 -0
- package/dist/watchers/engine.js.map +1 -0
- package/docs/consumer/README.md +44 -0
- package/docs/consumer/WHERE-TO-LOOK.md +94 -0
- package/docs/consumer/ai-context-api.md +195 -0
- package/docs/consumer/ai-context-custom-elements.md +249 -0
- package/docs/consumer/ai-context-patterns.md +254 -0
- package/docs/consumer/ai-context-primitives.md +839 -0
- package/docs/consumer/ai-context-runtime-semantics.md +1075 -0
- package/docs/consumer/ai-context.md +1374 -0
- package/docs/consumer/reference-doc.md +3201 -0
- package/docs/llms.txt +17 -0
- package/docs/wiki/compiled/README.md +33 -0
- package/docs/wiki/compiled/_gaps.md +52 -0
- package/docs/wiki/compiled/_index.md +354 -0
- package/docs/wiki/compiled/_inventory.md +2986 -0
- package/docs/wiki/compiled/_lint.md +66 -0
- package/docs/wiki/compiled/_unmapped.md +3 -0
- package/docs/wiki/compiled/action-apply-preset.md +63 -0
- package/docs/wiki/compiled/action-copy-clipboard.md +45 -0
- package/docs/wiki/compiled/action-drawer.md +50 -0
- package/docs/wiki/compiled/action-export.md +66 -0
- package/docs/wiki/compiled/action-fetch.md +87 -0
- package/docs/wiki/compiled/action-form-control.md +55 -0
- package/docs/wiki/compiled/action-login.md +71 -0
- package/docs/wiki/compiled/action-modal.md +61 -0
- package/docs/wiki/compiled/action-navigate.md +72 -0
- package/docs/wiki/compiled/action-open-url.md +38 -0
- package/docs/wiki/compiled/action-refresh-data-source.md +51 -0
- package/docs/wiki/compiled/action-selection.md +55 -0
- package/docs/wiki/compiled/action-set-locale.md +44 -0
- package/docs/wiki/compiled/action-set-state.md +61 -0
- package/docs/wiki/compiled/action-show-notification.md +65 -0
- package/docs/wiki/compiled/action-submit-form.md +69 -0
- package/docs/wiki/compiled/action-toggle-theme.md +50 -0
- package/docs/wiki/compiled/action-update-tokens.md +63 -0
- package/docs/wiki/compiled/action-upload-file.md +87 -0
- package/docs/wiki/compiled/antipattern-action-chain-no-stop.md +49 -0
- package/docs/wiki/compiled/antipattern-all-filter-wildcard.md +59 -0
- package/docs/wiki/compiled/antipattern-auth-domains-port.md +47 -0
- package/docs/wiki/compiled/antipattern-background-blobs-prop.md +62 -0
- package/docs/wiki/compiled/antipattern-background-css-token.md +53 -0
- package/docs/wiki/compiled/antipattern-checkbox-toggle-value.md +42 -0
- package/docs/wiki/compiled/antipattern-crud-id-collision.md +66 -0
- package/docs/wiki/compiled/antipattern-derive-server-pagination.md +58 -0
- package/docs/wiki/compiled/antipattern-element-variant-top-level.md +57 -0
- package/docs/wiki/compiled/antipattern-event-expression.md +55 -0
- package/docs/wiki/compiled/antipattern-input-type-name.md +43 -0
- package/docs/wiki/compiled/antipattern-mix-fetch-and-datasources.md +48 -0
- package/docs/wiki/compiled/antipattern-modal-drawer-visible.md +57 -0
- package/docs/wiki/compiled/antipattern-motion-entrance-token.md +53 -0
- package/docs/wiki/compiled/antipattern-overflow-hidden-with-shadow.md +50 -0
- package/docs/wiki/compiled/antipattern-required-if-equals.md +59 -0
- package/docs/wiki/compiled/antipattern-row-literal.md +70 -0
- package/docs/wiki/compiled/antipattern-row-template-capture.md +42 -0
- package/docs/wiki/compiled/antipattern-store-save-bypass.md +72 -0
- package/docs/wiki/compiled/antipattern-style-block-duplication.md +56 -0
- package/docs/wiki/compiled/antipattern-submit-form-in-tx-confirm.md +56 -0
- package/docs/wiki/compiled/cli-app-spec.md +53 -0
- package/docs/wiki/compiled/cli-config.md +46 -0
- package/docs/wiki/compiled/cli-contract.md +73 -0
- package/docs/wiki/compiled/cli-delete.md +37 -0
- package/docs/wiki/compiled/cli-docs.md +44 -0
- package/docs/wiki/compiled/cli-elements.md +39 -0
- package/docs/wiki/compiled/cli-existing-spec-edit-loop.md +24 -0
- package/docs/wiki/compiled/cli-history.md +38 -0
- package/docs/wiki/compiled/cli-lint.md +77 -0
- package/docs/wiki/compiled/cli-manifest.md +43 -0
- package/docs/wiki/compiled/cli-overview.md +77 -0
- package/docs/wiki/compiled/cli-patch.md +85 -0
- package/docs/wiki/compiled/cli-programmatic-api.md +73 -0
- package/docs/wiki/compiled/cli-pull.md +39 -0
- package/docs/wiki/compiled/cli-push.md +91 -0
- package/docs/wiki/compiled/cli-tokens.md +38 -0
- package/docs/wiki/compiled/cli-toon.md +44 -0
- package/docs/wiki/compiled/cli-validate.md +52 -0
- package/docs/wiki/compiled/cli-versioning-author.md +58 -0
- package/docs/wiki/compiled/concept-action-chains.md +65 -0
- package/docs/wiki/compiled/concept-action-middleware.md +55 -0
- package/docs/wiki/compiled/concept-animation-build-css.md +43 -0
- package/docs/wiki/compiled/concept-animation-build-rn.md +44 -0
- package/docs/wiki/compiled/concept-animation-caps.md +38 -0
- package/docs/wiki/compiled/concept-animation-cascade.md +89 -0
- package/docs/wiki/compiled/concept-animation-null-semantics.md +55 -0
- package/docs/wiki/compiled/concept-animation-recipes.md +67 -0
- package/docs/wiki/compiled/concept-animation-triggers.md +54 -0
- package/docs/wiki/compiled/concept-animations-engine.md +78 -0
- package/docs/wiki/compiled/concept-api-audit.md +67 -0
- package/docs/wiki/compiled/concept-api-auth.md +67 -0
- package/docs/wiki/compiled/concept-api-catalogs.md +44 -0
- package/docs/wiki/compiled/concept-api-crud-endpoint.md +90 -0
- package/docs/wiki/compiled/concept-api-endpoint-properties.md +40 -0
- package/docs/wiki/compiled/concept-api-endpoints-overview.md +57 -0
- package/docs/wiki/compiled/concept-api-handler-endpoint.md +56 -0
- package/docs/wiki/compiled/concept-api-login-body-contract.md +47 -0
- package/docs/wiki/compiled/concept-api-param-properties.md +44 -0
- package/docs/wiki/compiled/concept-api-public-endpoint.md +33 -0
- package/docs/wiki/compiled/concept-api-query-endpoint.md +53 -0
- package/docs/wiki/compiled/concept-api-scope-filter.md +59 -0
- package/docs/wiki/compiled/concept-api-spec.md +70 -0
- package/docs/wiki/compiled/concept-app-auto-state-paths.md +59 -0
- package/docs/wiki/compiled/concept-app-spec.md +89 -0
- package/docs/wiki/compiled/concept-auth-config.md +71 -0
- package/docs/wiki/compiled/concept-auth-domains.md +55 -0
- package/docs/wiki/compiled/concept-auth-security.md +58 -0
- package/docs/wiki/compiled/concept-auth-state-paths.md +48 -0
- package/docs/wiki/compiled/concept-auto-dark-mode.md +55 -0
- package/docs/wiki/compiled/concept-background-caps.md +42 -0
- package/docs/wiki/compiled/concept-background-layer-kinds.md +80 -0
- package/docs/wiki/compiled/concept-background-recipes.md +53 -0
- package/docs/wiki/compiled/concept-background-stack.md +55 -0
- package/docs/wiki/compiled/concept-blob-layer.md +92 -0
- package/docs/wiki/compiled/concept-blob-motion.md +58 -0
- package/docs/wiki/compiled/concept-blob-shapes-catalog.md +45 -0
- package/docs/wiki/compiled/concept-cli-tokens-inspect.md +38 -0
- package/docs/wiki/compiled/concept-component-variants.md +89 -0
- package/docs/wiki/compiled/concept-cross-tab-sync.md +35 -0
- package/docs/wiki/compiled/concept-css-vs-motion.md +46 -0
- package/docs/wiki/compiled/concept-custom-detection-pattern.md +49 -0
- package/docs/wiki/compiled/concept-custom-element-action-props.md +81 -0
- package/docs/wiki/compiled/concept-custom-element-black-box.md +56 -0
- package/docs/wiki/compiled/concept-custom-element-cache.md +39 -0
- package/docs/wiki/compiled/concept-custom-element-error-boundary.md +33 -0
- package/docs/wiki/compiled/concept-custom-element-prop-cascade.md +60 -0
- package/docs/wiki/compiled/concept-custom-element-repeat.md +53 -0
- package/docs/wiki/compiled/concept-custom-elements.md +71 -0
- package/docs/wiki/compiled/concept-custom-jwt-provider.md +63 -0
- package/docs/wiki/compiled/concept-customize-action.md +33 -0
- package/docs/wiki/compiled/concept-customize-cli-lint-rule.md +30 -0
- package/docs/wiki/compiled/concept-customize-expression-handler.md +30 -0
- package/docs/wiki/compiled/concept-customize-plugin.md +43 -0
- package/docs/wiki/compiled/concept-customize-server-middleware.md +36 -0
- package/docs/wiki/compiled/concept-customize-spec-store.md +42 -0
- package/docs/wiki/compiled/concept-customize-validator-rule.md +35 -0
- package/docs/wiki/compiled/concept-customize-versioned-store.md +37 -0
- package/docs/wiki/compiled/concept-data-sources-lifecycle.md +61 -0
- package/docs/wiki/compiled/concept-data-sources.md +96 -0
- package/docs/wiki/compiled/concept-debugging-runtime-pointers.md +45 -0
- package/docs/wiki/compiled/concept-derive-datasources-mount-order.md +72 -0
- package/docs/wiki/compiled/concept-derive.md +67 -0
- package/docs/wiki/compiled/concept-dna-seeds.md +79 -0
- package/docs/wiki/compiled/concept-editor-commit.md +37 -0
- package/docs/wiki/compiled/concept-editor-save.md +18 -0
- package/docs/wiki/compiled/concept-editor-sessions.md +23 -0
- package/docs/wiki/compiled/concept-element-children-slot.md +54 -0
- package/docs/wiki/compiled/concept-element-definition.md +60 -0
- package/docs/wiki/compiled/concept-element-key.md +56 -0
- package/docs/wiki/compiled/concept-element-prop-definition.md +54 -0
- package/docs/wiki/compiled/concept-element-properties.md +81 -0
- package/docs/wiki/compiled/concept-element-render-node.md +62 -0
- package/docs/wiki/compiled/concept-element-variants.md +67 -0
- package/docs/wiki/compiled/concept-environment-store.md +46 -0
- package/docs/wiki/compiled/concept-export-action.md +56 -0
- package/docs/wiki/compiled/concept-expression-contexts.md +56 -0
- package/docs/wiki/compiled/concept-expression-timing.md +56 -0
- package/docs/wiki/compiled/concept-fetch-interceptors.md +49 -0
- package/docs/wiki/compiled/concept-file-upload-overview.md +55 -0
- package/docs/wiki/compiled/concept-fire-and-forget.md +45 -0
- package/docs/wiki/compiled/concept-font-loading.md +52 -0
- package/docs/wiki/compiled/concept-form-state-paths.md +55 -0
- package/docs/wiki/compiled/concept-forms.md +89 -0
- package/docs/wiki/compiled/concept-identity-accent-application.md +48 -0
- package/docs/wiki/compiled/concept-identity-animations.md +48 -0
- package/docs/wiki/compiled/concept-identity-border-elevation-override.md +56 -0
- package/docs/wiki/compiled/concept-identity-color-scheme.md +74 -0
- package/docs/wiki/compiled/concept-identity-color-weight.md +50 -0
- package/docs/wiki/compiled/concept-identity-glass-rn.md +46 -0
- package/docs/wiki/compiled/concept-identity-gradients.md +56 -0
- package/docs/wiki/compiled/concept-identity-heading-color.md +40 -0
- package/docs/wiki/compiled/concept-identity-helpers.md +61 -0
- package/docs/wiki/compiled/concept-identity-icons.md +46 -0
- package/docs/wiki/compiled/concept-identity-images.md +36 -0
- package/docs/wiki/compiled/concept-identity-label-style.md +36 -0
- package/docs/wiki/compiled/concept-identity-overview.md +72 -0
- package/docs/wiki/compiled/concept-identity-radius-pattern.md +39 -0
- package/docs/wiki/compiled/concept-identity-surface.md +62 -0
- package/docs/wiki/compiled/concept-identity-text-decoration.md +48 -0
- package/docs/wiki/compiled/concept-identity-typography-hierarchy.md +40 -0
- package/docs/wiki/compiled/concept-initial-actions.md +82 -0
- package/docs/wiki/compiled/concept-interactive-states.md +72 -0
- package/docs/wiki/compiled/concept-keyframe-snapshot.md +52 -0
- package/docs/wiki/compiled/concept-layer-background.md +80 -0
- package/docs/wiki/compiled/concept-motion-field.md +77 -0
- package/docs/wiki/compiled/concept-mount-spec-runtime.md +47 -0
- package/docs/wiki/compiled/concept-mythik-renderer.md +76 -0
- package/docs/wiki/compiled/concept-navigation-dirty-guard.md +23 -0
- package/docs/wiki/compiled/concept-navigation.md +75 -0
- package/docs/wiki/compiled/concept-package-layout.md +35 -0
- package/docs/wiki/compiled/concept-path-references.md +53 -0
- package/docs/wiki/compiled/concept-pattern-primitives.md +54 -0
- package/docs/wiki/compiled/concept-preset-dropdown-pattern.md +52 -0
- package/docs/wiki/compiled/concept-presets.md +49 -0
- package/docs/wiki/compiled/concept-primitive-prop-schemas.md +53 -0
- package/docs/wiki/compiled/concept-primitives-overview.md +49 -0
- package/docs/wiki/compiled/concept-promote-gate.md +47 -0
- package/docs/wiki/compiled/concept-prop-cascade.md +76 -0
- package/docs/wiki/compiled/concept-public-package-names.md +33 -0
- package/docs/wiki/compiled/concept-query-envelope.md +55 -0
- package/docs/wiki/compiled/concept-reduced-motion.md +38 -0
- package/docs/wiki/compiled/concept-register-presets.md +44 -0
- package/docs/wiki/compiled/concept-render-error-visibility.md +57 -0
- package/docs/wiki/compiled/concept-repeat-grouped.md +72 -0
- package/docs/wiki/compiled/concept-repeat-selection.md +61 -0
- package/docs/wiki/compiled/concept-repeat.md +81 -0
- package/docs/wiki/compiled/concept-role-access.md +61 -0
- package/docs/wiki/compiled/concept-rollback.md +36 -0
- package/docs/wiki/compiled/concept-rules-catalog.md +49 -0
- package/docs/wiki/compiled/concept-screen-definition.md +51 -0
- package/docs/wiki/compiled/concept-screen-outlet.md +46 -0
- package/docs/wiki/compiled/concept-session-persistence.md +41 -0
- package/docs/wiki/compiled/concept-shape-animations.md +66 -0
- package/docs/wiki/compiled/concept-skeleton-auto.md +58 -0
- package/docs/wiki/compiled/concept-skeleton-manual.md +47 -0
- package/docs/wiki/compiled/concept-source-of-truth-references.md +37 -0
- package/docs/wiki/compiled/concept-source-reading-misleading.md +37 -0
- package/docs/wiki/compiled/concept-spatial-map-editor.md +22 -0
- package/docs/wiki/compiled/concept-spatial-map-zones.md +18 -0
- package/docs/wiki/compiled/concept-spec-engine.md +47 -0
- package/docs/wiki/compiled/concept-spec-store-interface.md +59 -0
- package/docs/wiki/compiled/concept-spec-store-layering.md +51 -0
- package/docs/wiki/compiled/concept-spec-stores-catalog.md +66 -0
- package/docs/wiki/compiled/concept-spec-structure.md +94 -0
- package/docs/wiki/compiled/concept-spec-types.md +76 -0
- package/docs/wiki/compiled/concept-state-change-animation.md +73 -0
- package/docs/wiki/compiled/concept-state-policies.md +44 -0
- package/docs/wiki/compiled/concept-state-protection.md +51 -0
- package/docs/wiki/compiled/concept-storage-adapter.md +69 -0
- package/docs/wiki/compiled/concept-storage-custom-names.md +69 -0
- package/docs/wiki/compiled/concept-storage-evolution.md +32 -0
- package/docs/wiki/compiled/concept-storage-idempotency.md +35 -0
- package/docs/wiki/compiled/concept-storage-overview.md +81 -0
- package/docs/wiki/compiled/concept-storage-postgres-jsonb.md +53 -0
- package/docs/wiki/compiled/concept-storage-postgres-triggers.md +60 -0
- package/docs/wiki/compiled/concept-storage-table-environments.md +40 -0
- package/docs/wiki/compiled/concept-storage-table-screens.md +44 -0
- package/docs/wiki/compiled/concept-storage-table-versions.md +50 -0
- package/docs/wiki/compiled/concept-storage-verification.md +57 -0
- package/docs/wiki/compiled/concept-template-children-marker.md +56 -0
- package/docs/wiki/compiled/concept-template-interpolation.md +60 -0
- package/docs/wiki/compiled/concept-templates-vs-variants.md +80 -0
- package/docs/wiki/compiled/concept-templates.md +93 -0
- package/docs/wiki/compiled/concept-token-categories.md +58 -0
- package/docs/wiki/compiled/concept-token-system.md +61 -0
- package/docs/wiki/compiled/concept-transaction-phase-timing.md +47 -0
- package/docs/wiki/compiled/concept-transaction-rollback.md +38 -0
- package/docs/wiki/compiled/concept-transaction-snapshot.md +37 -0
- package/docs/wiki/compiled/concept-transactions.md +72 -0
- package/docs/wiki/compiled/concept-validation-checks.md +63 -0
- package/docs/wiki/compiled/concept-validators-catalog.md +76 -0
- package/docs/wiki/compiled/concept-versioned-store.md +65 -0
- package/docs/wiki/compiled/concept-versioning-snapshots-patches.md +61 -0
- package/docs/wiki/compiled/concept-visibility.md +55 -0
- package/docs/wiki/compiled/concept-web-only-recipes.md +37 -0
- package/docs/wiki/compiled/concept-where-to-look.md +78 -0
- package/docs/wiki/compiled/expression-and-or-not.md +68 -0
- package/docs/wiki/compiled/expression-array.md +111 -0
- package/docs/wiki/compiled/expression-auth.md +83 -0
- package/docs/wiki/compiled/expression-binditem.md +52 -0
- package/docs/wiki/compiled/expression-bindstate.md +63 -0
- package/docs/wiki/compiled/expression-breakpoint.md +71 -0
- package/docs/wiki/compiled/expression-computed.md +52 -0
- package/docs/wiki/compiled/expression-cond.md +78 -0
- package/docs/wiki/compiled/expression-date.md +66 -0
- package/docs/wiki/compiled/expression-format.md +79 -0
- package/docs/wiki/compiled/expression-group.md +84 -0
- package/docs/wiki/compiled/expression-i18n.md +53 -0
- package/docs/wiki/compiled/expression-item-index.md +72 -0
- package/docs/wiki/compiled/expression-let-ref.md +87 -0
- package/docs/wiki/compiled/expression-math.md +67 -0
- package/docs/wiki/compiled/expression-platform.md +68 -0
- package/docs/wiki/compiled/expression-prop.md +89 -0
- package/docs/wiki/compiled/expression-selection.md +58 -0
- package/docs/wiki/compiled/expression-state.md +70 -0
- package/docs/wiki/compiled/expression-switch.md +68 -0
- package/docs/wiki/compiled/expression-template.md +71 -0
- package/docs/wiki/compiled/expression-token.md +67 -0
- package/docs/wiki/compiled/path-app-screens.md +55 -0
- package/docs/wiki/compiled/path-data-source-paths.md +44 -0
- package/docs/wiki/compiled/path-forms.md +38 -0
- package/docs/wiki/compiled/path-login.md +57 -0
- package/docs/wiki/compiled/path-navigation.md +62 -0
- package/docs/wiki/compiled/path-presets-available.md +44 -0
- package/docs/wiki/compiled/path-tokens.md +56 -0
- package/docs/wiki/compiled/path-tx-result-error.md +56 -0
- package/docs/wiki/compiled/path-ui-device.md +53 -0
- package/docs/wiki/compiled/path-ui-loading-error.md +40 -0
- package/docs/wiki/compiled/path-ui-modals-drawers.md +46 -0
- package/docs/wiki/compiled/path-ui-selected-row.md +92 -0
- package/docs/wiki/compiled/path-uploads.md +32 -0
- package/docs/wiki/compiled/pattern-cross-screen-data-flow.md +83 -0
- package/docs/wiki/compiled/pattern-fetch-vs-datasources.md +63 -0
- package/docs/wiki/compiled/pattern-file-upload-auto.md +61 -0
- package/docs/wiki/compiled/pattern-file-upload-manual.md +59 -0
- package/docs/wiki/compiled/pattern-form-validation-cross-field.md +58 -0
- package/docs/wiki/compiled/pattern-form-validation.md +58 -0
- package/docs/wiki/compiled/pattern-fullstack-coherence.md +49 -0
- package/docs/wiki/compiled/pattern-git-vs-db-versioning.md +55 -0
- package/docs/wiki/compiled/pattern-identity-aware-spec.md +70 -0
- package/docs/wiki/compiled/pattern-loading-content-empty.md +66 -0
- package/docs/wiki/compiled/pattern-login-body-template.md +47 -0
- package/docs/wiki/compiled/pattern-login-screen.md +83 -0
- package/docs/wiki/compiled/pattern-push-vs-patch.md +54 -0
- package/docs/wiki/compiled/pattern-reusable-components.md +67 -0
- package/docs/wiki/compiled/pattern-tx-create.md +76 -0
- package/docs/wiki/compiled/pattern-tx-delete.md +50 -0
- package/docs/wiki/compiled/pattern-tx-toggle.md +45 -0
- package/docs/wiki/compiled/pattern-tx-update.md +68 -0
- package/docs/wiki/compiled/primitive-accordion.md +46 -0
- package/docs/wiki/compiled/primitive-area-chart.md +35 -0
- package/docs/wiki/compiled/primitive-audio-player.md +27 -0
- package/docs/wiki/compiled/primitive-bar-chart.md +34 -0
- package/docs/wiki/compiled/primitive-box.md +58 -0
- package/docs/wiki/compiled/primitive-button.md +55 -0
- package/docs/wiki/compiled/primitive-camera.md +39 -0
- package/docs/wiki/compiled/primitive-checkbox.md +62 -0
- package/docs/wiki/compiled/primitive-divider.md +31 -0
- package/docs/wiki/compiled/primitive-drawer.md +44 -0
- package/docs/wiki/compiled/primitive-file-upload.md +65 -0
- package/docs/wiki/compiled/primitive-grid.md +48 -0
- package/docs/wiki/compiled/primitive-icon.md +106 -0
- package/docs/wiki/compiled/primitive-image.md +49 -0
- package/docs/wiki/compiled/primitive-input.md +81 -0
- package/docs/wiki/compiled/primitive-kanban-board.md +30 -0
- package/docs/wiki/compiled/primitive-line-chart.md +33 -0
- package/docs/wiki/compiled/primitive-list.md +34 -0
- package/docs/wiki/compiled/primitive-modal.md +51 -0
- package/docs/wiki/compiled/primitive-pie-chart.md +32 -0
- package/docs/wiki/compiled/primitive-screen-outlet.md +42 -0
- package/docs/wiki/compiled/primitive-screen.md +43 -0
- package/docs/wiki/compiled/primitive-scroll.md +33 -0
- package/docs/wiki/compiled/primitive-select.md +76 -0
- package/docs/wiki/compiled/primitive-signature.md +40 -0
- package/docs/wiki/compiled/primitive-skeleton.md +48 -0
- package/docs/wiki/compiled/primitive-slider.md +47 -0
- package/docs/wiki/compiled/primitive-spacer.md +33 -0
- package/docs/wiki/compiled/primitive-spatial-map.md +26 -0
- package/docs/wiki/compiled/primitive-stack.md +46 -0
- package/docs/wiki/compiled/primitive-table.md +127 -0
- package/docs/wiki/compiled/primitive-tabs.md +52 -0
- package/docs/wiki/compiled/primitive-text.md +59 -0
- package/docs/wiki/compiled/primitive-textarea.md +44 -0
- package/docs/wiki/compiled/primitive-toast-container.md +44 -0
- package/docs/wiki/compiled/primitive-toggle.md +46 -0
- package/docs/wiki/compiled/primitive-touchable.md +40 -0
- package/docs/wiki/compiled/primitive-wizard.md +43 -0
- package/package.json +58 -8
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// Keyframe snapshot normalizer — converts KeyframeSnapshot into a form both
|
|
2
|
+
// CSS and Reanimated builders can consume. Expands `transform` object into an
|
|
3
|
+
// ordered CSS string (web) + per-axis map with NUMERIC values (RN). Applies
|
|
4
|
+
// default px units for translate, default deg for rotate. Numeric form on RN
|
|
5
|
+
// side is critical for Reanimated's interpolate() which requires numbers.
|
|
6
|
+
//
|
|
7
|
+
// Transform composition order: translate → scale → rotate → skew
|
|
8
|
+
// (Framer Motion convention — avoids pivot surprises when combining rotate
|
|
9
|
+
// with translate. Do not reorder without visual regression testing.)
|
|
10
|
+
/**
|
|
11
|
+
* Parses a keyframe `at` string like '0%', '50%', '100%' to a [0,1] fraction.
|
|
12
|
+
* Throws on invalid format (non-percent), out-of-range (<0 or >100), or
|
|
13
|
+
* non-monotonic when used as part of a keyframe sequence (caller responsibility).
|
|
14
|
+
*/
|
|
15
|
+
export function parseAtToFraction(at) {
|
|
16
|
+
const match = /^(-?\d*\.?\d+)%$/.exec(at.trim());
|
|
17
|
+
if (!match) {
|
|
18
|
+
throw new Error(`invalid at (must be percent like '50%'): ${at}`);
|
|
19
|
+
}
|
|
20
|
+
const value = parseFloat(match[1]);
|
|
21
|
+
if (value < 0 || value > 100) {
|
|
22
|
+
throw new Error(`at must be in [0%, 100%]: got ${at}`);
|
|
23
|
+
}
|
|
24
|
+
return value / 100;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Parses a rotate value (number of degrees, or string like '45deg') to a
|
|
28
|
+
* numeric degree value. Returns null for non-deg string units (turn, rad, grad)
|
|
29
|
+
* — those remain web-only and are skipped on RN.
|
|
30
|
+
*/
|
|
31
|
+
function parseRotateToDeg(v) {
|
|
32
|
+
if (typeof v === 'number')
|
|
33
|
+
return v;
|
|
34
|
+
const match = /^(-?\d*\.?\d+)\s*deg$/i.exec(v.trim());
|
|
35
|
+
if (match)
|
|
36
|
+
return parseFloat(match[1]);
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
function numToPx(v) {
|
|
40
|
+
if (v === undefined)
|
|
41
|
+
return undefined;
|
|
42
|
+
return typeof v === 'number' ? `${v}px` : v;
|
|
43
|
+
}
|
|
44
|
+
function numToDeg(v) {
|
|
45
|
+
if (v === undefined)
|
|
46
|
+
return undefined;
|
|
47
|
+
return typeof v === 'number' ? `${v}deg` : v;
|
|
48
|
+
}
|
|
49
|
+
function buildTransformCSS(t) {
|
|
50
|
+
const parts = [];
|
|
51
|
+
if (t.translateX !== undefined)
|
|
52
|
+
parts.push(`translateX(${numToPx(t.translateX)})`);
|
|
53
|
+
if (t.translateY !== undefined)
|
|
54
|
+
parts.push(`translateY(${numToPx(t.translateY)})`);
|
|
55
|
+
if (t.scale !== undefined) {
|
|
56
|
+
if (typeof t.scale === 'number')
|
|
57
|
+
parts.push(`scale(${t.scale})`);
|
|
58
|
+
else
|
|
59
|
+
parts.push(`scale(${t.scale.x}, ${t.scale.y})`);
|
|
60
|
+
}
|
|
61
|
+
if (t.rotate !== undefined)
|
|
62
|
+
parts.push(`rotate(${numToDeg(t.rotate)})`);
|
|
63
|
+
if (t.skewX !== undefined)
|
|
64
|
+
parts.push(`skewX(${t.skewX}deg)`);
|
|
65
|
+
if (t.skewY !== undefined)
|
|
66
|
+
parts.push(`skewY(${t.skewY}deg)`);
|
|
67
|
+
return parts.length ? parts.join(' ') : undefined;
|
|
68
|
+
}
|
|
69
|
+
function buildTransformRN(t) {
|
|
70
|
+
const rn = {};
|
|
71
|
+
if (t.translateX !== undefined)
|
|
72
|
+
rn.translateX = t.translateX;
|
|
73
|
+
if (t.translateY !== undefined)
|
|
74
|
+
rn.translateY = t.translateY;
|
|
75
|
+
if (t.scale !== undefined) {
|
|
76
|
+
if (typeof t.scale === 'number')
|
|
77
|
+
rn.scale = t.scale;
|
|
78
|
+
else {
|
|
79
|
+
rn.scaleX = t.scale.x;
|
|
80
|
+
rn.scaleY = t.scale.y;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (t.rotate !== undefined) {
|
|
84
|
+
const deg = parseRotateToDeg(t.rotate);
|
|
85
|
+
if (deg !== null)
|
|
86
|
+
rn.rotateDeg = deg;
|
|
87
|
+
}
|
|
88
|
+
if (t.skewX !== undefined)
|
|
89
|
+
rn.skewXDeg = t.skewX;
|
|
90
|
+
if (t.skewY !== undefined)
|
|
91
|
+
rn.skewYDeg = t.skewY;
|
|
92
|
+
return Object.keys(rn).length ? rn : undefined;
|
|
93
|
+
}
|
|
94
|
+
function buildFilterCSS(f) {
|
|
95
|
+
const parts = [];
|
|
96
|
+
if (f.blur !== undefined)
|
|
97
|
+
parts.push(`blur(${f.blur}px)`);
|
|
98
|
+
if (f.brightness !== undefined)
|
|
99
|
+
parts.push(`brightness(${f.brightness})`);
|
|
100
|
+
if (f.saturate !== undefined)
|
|
101
|
+
parts.push(`saturate(${f.saturate})`);
|
|
102
|
+
return parts.length ? parts.join(' ') : undefined;
|
|
103
|
+
}
|
|
104
|
+
export function normalizeKeyframeSnapshot(kf) {
|
|
105
|
+
const out = {
|
|
106
|
+
fraction: parseAtToFraction(kf.at),
|
|
107
|
+
};
|
|
108
|
+
if (kf.opacity !== undefined)
|
|
109
|
+
out.opacity = kf.opacity;
|
|
110
|
+
if (kf.transform) {
|
|
111
|
+
out.transformCSS = buildTransformCSS(kf.transform);
|
|
112
|
+
out.transformRN = buildTransformRN(kf.transform);
|
|
113
|
+
}
|
|
114
|
+
if (kf.backgroundColor !== undefined)
|
|
115
|
+
out.backgroundColor = kf.backgroundColor;
|
|
116
|
+
if (kf.borderColor !== undefined)
|
|
117
|
+
out.borderColor = kf.borderColor;
|
|
118
|
+
if (kf.color !== undefined)
|
|
119
|
+
out.color = kf.color;
|
|
120
|
+
if (kf.borderRadius !== undefined) {
|
|
121
|
+
out.borderRadius = numToPx(kf.borderRadius);
|
|
122
|
+
}
|
|
123
|
+
if (kf.borderWidth !== undefined)
|
|
124
|
+
out.borderWidth = kf.borderWidth;
|
|
125
|
+
if (kf.filter)
|
|
126
|
+
out.filterCSS = buildFilterCSS(kf.filter);
|
|
127
|
+
if (kf.boxShadow !== undefined)
|
|
128
|
+
out.boxShadow = kf.boxShadow;
|
|
129
|
+
return out;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Platform-agnostic keyframe data for an AnimationSpec. Used by Layer 1
|
|
133
|
+
* CSS and Reanimated builders, and reserved for Layer 3 (SVG shape runner in
|
|
134
|
+
* plan 3). Callers that need normalized data (tests, introspection) consume
|
|
135
|
+
* this rather than re-mapping keyframes.
|
|
136
|
+
*/
|
|
137
|
+
export function buildKeyframes(keyframes) {
|
|
138
|
+
return keyframes.map(normalizeKeyframeSnapshot);
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=keyframes-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyframes-builder.js","sourceRoot":"","sources":["../../../src/design/animation/keyframes-builder.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8EAA8E;AAC9E,4EAA4E;AAC5E,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AE,CAAC,YAAY,CAAC,CAAC;IAC9C,CAAC;IACD,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS;QAAE,GAAG,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC;IACnE,IAAI,EAAE,CAAC,MAAM;QAAE,GAAG,CAAC,SAAS,GAAG,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACzD,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS;QAAE,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;IAC7D,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,SAA6B;IAC1D,OAAO,SAAS,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AnimationSpec } from './types.js';
|
|
2
|
+
export type ReanimatedSpec = {
|
|
3
|
+
animatedProps: string[];
|
|
4
|
+
inputRange: number[];
|
|
5
|
+
outputRanges: Record<string, number[]>;
|
|
6
|
+
animatedColorProps: Record<string, string[]>;
|
|
7
|
+
timing: {
|
|
8
|
+
duration: number;
|
|
9
|
+
delay: number;
|
|
10
|
+
iterations: number | 'infinite';
|
|
11
|
+
reverse: boolean;
|
|
12
|
+
easing: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare function buildReanimatedSpec(spec: AnimationSpec): ReanimatedSpec;
|
|
16
|
+
//# sourceMappingURL=reanimated-spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reanimated-spec.d.ts","sourceRoot":"","sources":["../../../src/design/animation/reanimated-spec.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACvC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC;QAChC,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAyFF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG,cAAc,CAkDvE"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
// buildReanimatedSpec — RN output for animation engine.
|
|
2
|
+
// Emits a plain data descriptor: which properties animate, the input range
|
|
3
|
+
// (fractions from keyframes), the output range per property, timing config.
|
|
4
|
+
// The RN hook (Layer 2) consumes this to wire shared values + useAnimatedStyle.
|
|
5
|
+
// Pure function, no Reanimated imports at this layer.
|
|
6
|
+
//
|
|
7
|
+
// Animated properties covered (GPU-accelerated, cross-platform):
|
|
8
|
+
// opacity, translateX, translateY, scale/scaleX/scaleY,
|
|
9
|
+
// rotateDeg (degrees, numeric), skewXDeg, skewYDeg,
|
|
10
|
+
// borderRadius (px only — percentage throws), borderWidth
|
|
11
|
+
// Color properties (interpolated separately via interpolateColor):
|
|
12
|
+
// backgroundColor, borderColor, color
|
|
13
|
+
// Explicitly omitted on RN (web-only): filter — blur/brightness/saturate —
|
|
14
|
+
// and boxShadow — CSS shorthand strings with no 1:1 RN mapping (iOS splits
|
|
15
|
+
// into shadowColor/Offset/Radius/Opacity, Android uses elevation, neither
|
|
16
|
+
// string-parseable). A future framework feature (plan 3+) can add per-
|
|
17
|
+
// platform parsing + interpolation.
|
|
18
|
+
import { normalizeKeyframeSnapshot } from './keyframes-builder.js';
|
|
19
|
+
const NUMERIC_PROPS = [
|
|
20
|
+
'opacity',
|
|
21
|
+
'translateX',
|
|
22
|
+
'translateY',
|
|
23
|
+
'scale',
|
|
24
|
+
'scaleX',
|
|
25
|
+
'scaleY',
|
|
26
|
+
'rotateDeg',
|
|
27
|
+
'skewXDeg',
|
|
28
|
+
'skewYDeg',
|
|
29
|
+
'borderRadius',
|
|
30
|
+
'borderWidth',
|
|
31
|
+
];
|
|
32
|
+
const COLOR_PROPS = ['backgroundColor', 'borderColor', 'color'];
|
|
33
|
+
function extractNumericFromRN(rn) {
|
|
34
|
+
const out = {};
|
|
35
|
+
if (rn.opacity !== undefined)
|
|
36
|
+
out.opacity = rn.opacity;
|
|
37
|
+
if (rn.transformRN) {
|
|
38
|
+
const t = rn.transformRN;
|
|
39
|
+
if (typeof t.translateX === 'number')
|
|
40
|
+
out.translateX = t.translateX;
|
|
41
|
+
if (typeof t.translateY === 'number')
|
|
42
|
+
out.translateY = t.translateY;
|
|
43
|
+
if (t.scale !== undefined)
|
|
44
|
+
out.scale = t.scale;
|
|
45
|
+
if (t.scaleX !== undefined)
|
|
46
|
+
out.scaleX = t.scaleX;
|
|
47
|
+
if (t.scaleY !== undefined)
|
|
48
|
+
out.scaleY = t.scaleY;
|
|
49
|
+
if (t.rotateDeg !== undefined)
|
|
50
|
+
out.rotateDeg = t.rotateDeg;
|
|
51
|
+
if (t.skewXDeg !== undefined)
|
|
52
|
+
out.skewXDeg = t.skewXDeg;
|
|
53
|
+
if (t.skewYDeg !== undefined)
|
|
54
|
+
out.skewYDeg = t.skewYDeg;
|
|
55
|
+
}
|
|
56
|
+
if (rn.borderRadius !== undefined) {
|
|
57
|
+
const match = /^(-?\d*\.?\d+)px$/.exec(rn.borderRadius);
|
|
58
|
+
if (match) {
|
|
59
|
+
out.borderRadius = parseFloat(match[1]);
|
|
60
|
+
}
|
|
61
|
+
else if (rn.borderRadius.endsWith('%')) {
|
|
62
|
+
throw new Error(`RN cannot animate percentage borderRadius: '${rn.borderRadius}' — use pixel values on RN-targeted animations`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (rn.borderWidth !== undefined)
|
|
66
|
+
out.borderWidth = rn.borderWidth;
|
|
67
|
+
return out;
|
|
68
|
+
}
|
|
69
|
+
function extractColorsFromRN(rn) {
|
|
70
|
+
const out = {};
|
|
71
|
+
if (rn.backgroundColor)
|
|
72
|
+
out.backgroundColor = rn.backgroundColor;
|
|
73
|
+
if (rn.borderColor)
|
|
74
|
+
out.borderColor = rn.borderColor;
|
|
75
|
+
if (rn.color)
|
|
76
|
+
out.color = rn.color;
|
|
77
|
+
return out;
|
|
78
|
+
}
|
|
79
|
+
function fillNearestNeighbor(values) {
|
|
80
|
+
const out = [...values];
|
|
81
|
+
for (let i = 0; i < out.length; i++) {
|
|
82
|
+
if (out[i] !== undefined)
|
|
83
|
+
continue;
|
|
84
|
+
let j = i - 1;
|
|
85
|
+
while (j >= 0 && out[j] === undefined)
|
|
86
|
+
j--;
|
|
87
|
+
let k = i + 1;
|
|
88
|
+
while (k < out.length && out[k] === undefined)
|
|
89
|
+
k++;
|
|
90
|
+
if (j >= 0)
|
|
91
|
+
out[i] = out[j];
|
|
92
|
+
else if (k < out.length)
|
|
93
|
+
out[i] = out[k];
|
|
94
|
+
// Note: caller guarantees at least one defined value (filtered via `some`).
|
|
95
|
+
// The "all undefined" branch is defensive; unreachable in normal flow.
|
|
96
|
+
}
|
|
97
|
+
return out;
|
|
98
|
+
}
|
|
99
|
+
function fillNearestColor(values) {
|
|
100
|
+
const out = [...values];
|
|
101
|
+
for (let i = 0; i < out.length; i++) {
|
|
102
|
+
if (out[i] !== undefined)
|
|
103
|
+
continue;
|
|
104
|
+
let j = i - 1;
|
|
105
|
+
while (j >= 0 && out[j] === undefined)
|
|
106
|
+
j--;
|
|
107
|
+
let k = i + 1;
|
|
108
|
+
while (k < out.length && out[k] === undefined)
|
|
109
|
+
k++;
|
|
110
|
+
if (j >= 0)
|
|
111
|
+
out[i] = out[j];
|
|
112
|
+
else if (k < out.length)
|
|
113
|
+
out[i] = out[k];
|
|
114
|
+
// Same "all undefined" defensive branch as fillNearestNeighbor.
|
|
115
|
+
}
|
|
116
|
+
return out;
|
|
117
|
+
}
|
|
118
|
+
export function buildReanimatedSpec(spec) {
|
|
119
|
+
const normalized = spec.keyframes.map(normalizeKeyframeSnapshot);
|
|
120
|
+
const inputRange = normalized.map((n) => n.fraction);
|
|
121
|
+
const numericByProp = {};
|
|
122
|
+
const colorByProp = {};
|
|
123
|
+
const numericRows = normalized.map(extractNumericFromRN);
|
|
124
|
+
const colorRows = normalized.map(extractColorsFromRN);
|
|
125
|
+
for (const prop of NUMERIC_PROPS) {
|
|
126
|
+
const col = numericRows.map((r) => r[prop]);
|
|
127
|
+
if (col.some((v) => v !== undefined)) {
|
|
128
|
+
numericByProp[prop] = col;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
for (const prop of COLOR_PROPS) {
|
|
132
|
+
const col = colorRows.map((r) => r[prop]);
|
|
133
|
+
if (col.some((v) => v !== undefined)) {
|
|
134
|
+
colorByProp[prop] = col;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const outputRanges = {};
|
|
138
|
+
for (const [k, v] of Object.entries(numericByProp)) {
|
|
139
|
+
outputRanges[k] = fillNearestNeighbor(v);
|
|
140
|
+
}
|
|
141
|
+
const animatedColorProps = {};
|
|
142
|
+
for (const [k, v] of Object.entries(colorByProp)) {
|
|
143
|
+
animatedColorProps[k] = fillNearestColor(v);
|
|
144
|
+
}
|
|
145
|
+
const reverse = spec.direction === 'alternate' ||
|
|
146
|
+
spec.direction === 'alternate-reverse' ||
|
|
147
|
+
spec.direction === 'reverse';
|
|
148
|
+
return {
|
|
149
|
+
animatedProps: Object.keys(outputRanges),
|
|
150
|
+
inputRange,
|
|
151
|
+
outputRanges,
|
|
152
|
+
animatedColorProps,
|
|
153
|
+
timing: {
|
|
154
|
+
duration: spec.duration,
|
|
155
|
+
delay: spec.delay,
|
|
156
|
+
iterations: spec.iterations,
|
|
157
|
+
reverse,
|
|
158
|
+
easing: spec.easing,
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=reanimated-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reanimated-spec.js","sourceRoot":"","sources":["../../../src/design/animation/reanimated-spec.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,2EAA2E;AAC3E,4EAA4E;AAC5E,gFAAgF;AAChF,sDAAsD;AACtD,EAAE;AACF,iEAAiE;AACjE,0DAA0D;AAC1D,sDAAsD;AACtD,4DAA4D;AAC5D,mEAAmE;AACnE,wCAAwC;AACxC,2EAA2E;AAC3E,2EAA2E;AAC3E,0EAA0E;AAC1E,uEAAuE;AACvE,oCAAoC;AAGpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAgBnE,MAAM,aAAa,GAAG;IACpB,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;IACV,UAAU;IACV,cAAc;IACd,aAAa;CACL,CAAC;AAEX,MAAM,WAAW,GAAG,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAU,CAAC;AAEzE,SAAS,oBAAoB,CAC3B,EAAgD;IAEhD,MAAM,GAAG,GAA4D,EAAE,CAAC;IACxE,IAAI,EAAE,CAAC,OAAO,KAAK,SAAS;QAAE,GAAG,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;IACvD,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACnB,MAAM,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC;QACzB,IAAI,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ;YAAE,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC;QACpE,IAAI,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ;YAAE,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC;QACpE,IA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;QACV,YAAY;QACZ,kBAAkB;QAClB,MAAM,EAAE;YACN,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO;YACP,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduced-motion.d.ts","sourceRoot":"","sources":["../../../src/design/animation/reduced-motion.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAoB,MAAM,YAAY,CAAC;AAkBpF,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,gBAAgB,GACxB,aAAa,GAAG,IAAI,CAmBtB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// applyReducedMotion — moderate a11y policy per the master design spec.
|
|
2
|
+
// Takes an AnimationSpec + trigger, returns a modified spec or null (skip).
|
|
3
|
+
// `essential: true` overrides the policy unconditionally — intended for
|
|
4
|
+
// spinners and loaders where motion is an affordance not decoration.
|
|
5
|
+
//
|
|
6
|
+
// Policy (when OS reports prefers-reduced-motion: reduce):
|
|
7
|
+
// mount → only opacity preserved, transforms stripped
|
|
8
|
+
// unmount → same as mount
|
|
9
|
+
// hover → skipped entirely (non-critical feedback)
|
|
10
|
+
// focus → preserved (a11y-critical)
|
|
11
|
+
// active → opacity preserved, transforms stripped
|
|
12
|
+
// ambient → disabled entirely (infinite motion loops are most problematic)
|
|
13
|
+
// stateChange → preserved, duration reduced 3x (min 50ms to retain change signal)
|
|
14
|
+
//
|
|
15
|
+
// Degenerate-output guard: when stripping transforms leaves keyframes with no
|
|
16
|
+
// animated properties (transform-only recipes like slide-left, spin), the
|
|
17
|
+
// animation becomes a silent no-op. We return null in that case so the Layer 2
|
|
18
|
+
// runner skips scheduling a frame, matching the hover/ambient skip semantics.
|
|
19
|
+
//
|
|
20
|
+
// The function does NOT mutate its input. It returns a new spec (or null).
|
|
21
|
+
const MIN_STATE_CHANGE_DURATION_MS = 50;
|
|
22
|
+
function stripTransform(keyframes) {
|
|
23
|
+
return keyframes.map(({ transform: _t, ...rest }) => rest);
|
|
24
|
+
}
|
|
25
|
+
function hasAnimatedProperty(keyframes) {
|
|
26
|
+
return keyframes.some(({ at: _at, ...rest }) => Object.keys(rest).length > 0);
|
|
27
|
+
}
|
|
28
|
+
function stripAndGuard(spec) {
|
|
29
|
+
const stripped = stripTransform(spec.keyframes);
|
|
30
|
+
if (!hasAnimatedProperty(stripped))
|
|
31
|
+
return null;
|
|
32
|
+
return { ...spec, keyframes: stripped };
|
|
33
|
+
}
|
|
34
|
+
export function applyReducedMotion(spec, trigger) {
|
|
35
|
+
if (spec.essential)
|
|
36
|
+
return spec;
|
|
37
|
+
switch (trigger) {
|
|
38
|
+
case 'mount':
|
|
39
|
+
case 'unmount':
|
|
40
|
+
case 'active':
|
|
41
|
+
return stripAndGuard(spec);
|
|
42
|
+
case 'hover':
|
|
43
|
+
case 'ambient':
|
|
44
|
+
return null;
|
|
45
|
+
case 'focus':
|
|
46
|
+
return spec;
|
|
47
|
+
case 'stateChange':
|
|
48
|
+
return {
|
|
49
|
+
...spec,
|
|
50
|
+
duration: Math.max(MIN_STATE_CHANGE_DURATION_MS, Math.round(spec.duration / 3)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=reduced-motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduced-motion.js","sourceRoot":"","sources":["../../../src/design/animation/reduced-motion.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,4EAA4E;AAC5E,wEAAwE;AACxE,qEAAqE;AACrE,EAAE;AACF,2DAA2D;AAC3D,4DAA4D;AAC5D,8BAA8B;AAC9B,yDAAyD;AACzD,0CAA0C;AAC1C,uDAAuD;AACvD,+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C,GAAG,CAAC,4BAA4B,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;aAChF,CAAC;IACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../src/design/animation/resolver.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,eAAe,EAChB,MAAM,YAAY,CAAC;AAkBpB,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,YAAY,EACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GACvC,aAAa,CAwEf"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// resolveAnimation — Layer 1 pure resolver.
|
|
2
|
+
// Takes AnimationRef (recipe reference or inline animation) + recipe registry,
|
|
3
|
+
// produces a fully-normalized AnimationSpec with parsed durations and
|
|
4
|
+
// default values filled in.
|
|
5
|
+
function parseDuration(d, fallback) {
|
|
6
|
+
if (d === undefined)
|
|
7
|
+
return fallback;
|
|
8
|
+
if (typeof d === 'number')
|
|
9
|
+
return d;
|
|
10
|
+
const match = /^(-?\d*\.?\d+)\s*(ms|s)?$/i.exec(d.trim());
|
|
11
|
+
if (!match) {
|
|
12
|
+
throw new Error(`invalid duration value: ${d}`);
|
|
13
|
+
}
|
|
14
|
+
const value = parseFloat(match[1]);
|
|
15
|
+
const unit = (match[2] ?? 'ms').toLowerCase();
|
|
16
|
+
return unit === 's' ? value * 1000 : value;
|
|
17
|
+
}
|
|
18
|
+
function isInline(ref) {
|
|
19
|
+
return 'keyframes' in ref;
|
|
20
|
+
}
|
|
21
|
+
export function resolveAnimation(ref, recipes) {
|
|
22
|
+
// Runtime guard: reject malformed refs that specify both a recipe and inline
|
|
23
|
+
// keyframes. TypeScript blocks this at compile time via the union, but JSON
|
|
24
|
+
// input has no such protection.
|
|
25
|
+
if (isInline(ref) && 'recipe' in ref) {
|
|
26
|
+
throw new Error(`animation ref cannot have both 'recipe' and 'keyframes' — pick one`);
|
|
27
|
+
}
|
|
28
|
+
let base;
|
|
29
|
+
let overrides = {};
|
|
30
|
+
if (isInline(ref)) {
|
|
31
|
+
base = ref;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
const recipe = recipes[ref.recipe];
|
|
35
|
+
if (!recipe) {
|
|
36
|
+
throw new Error(`unknown recipe: ${ref.recipe}`);
|
|
37
|
+
}
|
|
38
|
+
base = recipe;
|
|
39
|
+
overrides = {
|
|
40
|
+
duration: ref.duration,
|
|
41
|
+
easing: ref.easing,
|
|
42
|
+
delay: ref.delay,
|
|
43
|
+
iterations: ref.iterations,
|
|
44
|
+
stagger: ref.stagger,
|
|
45
|
+
essential: ref.essential,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
// Defensive validation of the keyframe sequence. Failing early here
|
|
49
|
+
// produces a clear error; skipping lets the CSS/Reanimated builders emit
|
|
50
|
+
// inert or broken output at runtime. Downstream color-value validation
|
|
51
|
+
// (hex/rgba/hsl/oklch/named) is deferred — the resolver trusts string
|
|
52
|
+
// values as-is and lets the platform renderer reject invalid colors.
|
|
53
|
+
if (base.keyframes.length === 0) {
|
|
54
|
+
throw new Error(`animation has no keyframes`);
|
|
55
|
+
}
|
|
56
|
+
const fractions = base.keyframes.map((kf) => {
|
|
57
|
+
const match = /^(-?\d*\.?\d+)%$/.exec(kf.at.trim());
|
|
58
|
+
if (!match) {
|
|
59
|
+
throw new Error(`invalid keyframe 'at': ${kf.at}`);
|
|
60
|
+
}
|
|
61
|
+
const value = parseFloat(match[1]);
|
|
62
|
+
if (value < 0 || value > 100) {
|
|
63
|
+
throw new Error(`keyframe 'at' must be in [0%, 100%]: got ${kf.at}`);
|
|
64
|
+
}
|
|
65
|
+
return value;
|
|
66
|
+
});
|
|
67
|
+
for (let i = 1; i < fractions.length; i++) {
|
|
68
|
+
if (fractions[i] < fractions[i - 1]) {
|
|
69
|
+
throw new Error(`keyframe 'at' values must be monotonically non-decreasing; got ${base.keyframes[i - 1].at} \u2192 ${base.keyframes[i].at}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const duration = parseDuration(overrides.duration ?? base.duration, 200);
|
|
73
|
+
const delay = parseDuration(overrides.delay ?? base.delay, 0);
|
|
74
|
+
return {
|
|
75
|
+
keyframes: base.keyframes,
|
|
76
|
+
duration,
|
|
77
|
+
easing: overrides.easing ?? base.easing ?? 'ease-out',
|
|
78
|
+
delay,
|
|
79
|
+
iterations: overrides.iterations ?? base.iterations ?? 1,
|
|
80
|
+
direction: base.direction ?? 'normal',
|
|
81
|
+
fillMode: base.fillMode ?? 'both',
|
|
82
|
+
stagger: overrides.stagger ?? base.stagger,
|
|
83
|
+
essential: overrides.essential ?? base.essential ?? false,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../../src/design/animation/resolver.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,+EAA+E;AAC/E,sEAAsE;AACtE,4BAA4B;AAQ5B,SAAS,aAAa,CAAC,CAA8B,EAAE,QAAgB;IACrE,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAC;IACrC,IAAI,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IACD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAA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AAC,CAAC,CAAC;IAE9D,OAAO;QACL,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,QAAQ;QACR,MAAM,EAAE,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,IAAI,UAAU;QACrD,KAAK;QACL,UAAU,EAAE,SAAS,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC;QACxD,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,QAAQ;QACrC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,MAAM;QACjC,OAAO,EAAE,SAAS,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO;QAC1C,SAAS,EAAE,SAAS,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,IAAI,KAAK;KAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export type TransformValue = {
|
|
2
|
+
translateX?: number | string;
|
|
3
|
+
translateY?: number | string;
|
|
4
|
+
scale?: number | {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
rotate?: number | string;
|
|
9
|
+
skewX?: number;
|
|
10
|
+
skewY?: number;
|
|
11
|
+
};
|
|
12
|
+
export type FilterValue = {
|
|
13
|
+
blur?: number;
|
|
14
|
+
brightness?: number;
|
|
15
|
+
saturate?: number;
|
|
16
|
+
};
|
|
17
|
+
export type KeyframeSnapshot = {
|
|
18
|
+
at: string;
|
|
19
|
+
opacity?: number;
|
|
20
|
+
transform?: TransformValue;
|
|
21
|
+
backgroundColor?: string;
|
|
22
|
+
borderColor?: string;
|
|
23
|
+
borderRadius?: number | string;
|
|
24
|
+
borderWidth?: number;
|
|
25
|
+
color?: string;
|
|
26
|
+
filter?: FilterValue;
|
|
27
|
+
/**
|
|
28
|
+
* CSS box-shadow value as a literal shorthand string
|
|
29
|
+
* (e.g. `'0 0 20px 4px rgba(99,102,241,0.45)'` or `'none'`).
|
|
30
|
+
* Web-only: emitted as `box-shadow: <value>` in CSS keyframes.
|
|
31
|
+
* RN omits this (same policy as `filter`) — RN's shadow system is a
|
|
32
|
+
* set of discrete props (shadowColor/Offset/Radius/Opacity on iOS,
|
|
33
|
+
* elevation on Android) with no direct string-parseable equivalent.
|
|
34
|
+
* A future framework feature (plan 3+) can add per-platform mapping.
|
|
35
|
+
*/
|
|
36
|
+
boxShadow?: string;
|
|
37
|
+
};
|
|
38
|
+
export type StaggerConfig = {
|
|
39
|
+
delay: number;
|
|
40
|
+
from?: 0 | 'last' | 'center';
|
|
41
|
+
};
|
|
42
|
+
export type InlineAnimation = {
|
|
43
|
+
keyframes: KeyframeSnapshot[];
|
|
44
|
+
duration: string | number;
|
|
45
|
+
easing?: string;
|
|
46
|
+
delay?: string | number;
|
|
47
|
+
iterations?: number | 'infinite';
|
|
48
|
+
direction?: 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
|
|
49
|
+
fillMode?: 'none' | 'forwards' | 'backwards' | 'both';
|
|
50
|
+
stagger?: StaggerConfig;
|
|
51
|
+
essential?: boolean;
|
|
52
|
+
};
|
|
53
|
+
export type AnimationRef = {
|
|
54
|
+
recipe: string;
|
|
55
|
+
duration?: string | number;
|
|
56
|
+
easing?: string;
|
|
57
|
+
delay?: string | number;
|
|
58
|
+
iterations?: number | 'infinite';
|
|
59
|
+
stagger?: StaggerConfig;
|
|
60
|
+
essential?: boolean;
|
|
61
|
+
} | InlineAnimation;
|
|
62
|
+
/**
|
|
63
|
+
* Animation fired when a watched state path changes.
|
|
64
|
+
*
|
|
65
|
+
* Design note (symmetric keyframes): stateChange animations are intended as
|
|
66
|
+
* transient pulses that return to baseline. Keyframes should start AND end
|
|
67
|
+
* at the same visual state (e.g. `pop`: scale 1 → 1.1 → 1). Asymmetric
|
|
68
|
+
* keyframes combined with `fillMode: 'forwards'` on the underlying recipe
|
|
69
|
+
* will cause a visible snap-back when the transient CSS clears — avoid
|
|
70
|
+
* unless the snap-back is the intended UX.
|
|
71
|
+
*
|
|
72
|
+
* Design note (single-fire): stateChange does not expose iterations or
|
|
73
|
+
* direction. A stateChange fire is one animation from start to end. For
|
|
74
|
+
* repeating behavior on state change, use `ambient` with conditional
|
|
75
|
+
* enablement via `$cond` in the spec layer (plan 3 cascade).
|
|
76
|
+
*/
|
|
77
|
+
export type StateChangeAnimation = {
|
|
78
|
+
watch: string;
|
|
79
|
+
on?: 'change' | 'increase' | 'decrease' | 'truthy' | 'falsy' | {
|
|
80
|
+
equals: unknown;
|
|
81
|
+
};
|
|
82
|
+
recipe?: string;
|
|
83
|
+
keyframes?: KeyframeSnapshot[];
|
|
84
|
+
duration: string | number;
|
|
85
|
+
easing?: string;
|
|
86
|
+
debounce?: string | number;
|
|
87
|
+
};
|
|
88
|
+
export type ElementAnimations = {
|
|
89
|
+
mount?: AnimationRef | AnimationRef[] | null;
|
|
90
|
+
unmount?: AnimationRef | AnimationRef[] | null;
|
|
91
|
+
hover?: AnimationRef | AnimationRef[] | null;
|
|
92
|
+
focus?: AnimationRef | AnimationRef[] | null;
|
|
93
|
+
active?: AnimationRef | AnimationRef[] | null;
|
|
94
|
+
ambient?: AnimationRef | AnimationRef[] | null;
|
|
95
|
+
stateChange?: StateChangeAnimation | StateChangeAnimation[] | null;
|
|
96
|
+
};
|
|
97
|
+
export type AnimationTrigger = keyof ElementAnimations;
|
|
98
|
+
export type AnimationSpec = {
|
|
99
|
+
keyframes: KeyframeSnapshot[];
|
|
100
|
+
duration: number;
|
|
101
|
+
easing: string;
|
|
102
|
+
delay: number;
|
|
103
|
+
iterations: number | 'infinite';
|
|
104
|
+
direction: 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
|
|
105
|
+
fillMode: 'none' | 'forwards' | 'backwards' | 'both';
|
|
106
|
+
stagger?: StaggerConfig;
|
|
107
|
+
essential: boolean;
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../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G,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,IAAI,CAAC;IAC/C,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,IAAI,CAAC;IAC/C,WAAW,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,EAAE,GAAG,IAAI,CAAC;CACpE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,iBAAiB,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC;IAChC,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,mBAAmB,CAAC;IACpE,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAC;IACrD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Animation engine v1 types (plan 2 — Deep Backgrounds & Motion milestone)
|
|
2
|
+
// Pure type definitions; no runtime. Consumed by Layer 1 resolvers
|
|
3
|
+
// (resolveAnimation, buildCSSKeyframes, buildReanimatedSpec) and Layer 2
|
|
4
|
+
// runners (useElementAnimations in mythik-react and
|
|
5
|
+
// mythik-react-native).
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/design/animation/types.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,mEAAmE;AACnE,yEAAyE;AACzE,oDAAoD;AACpD,wBAAwB"}
|