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,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-api-scope-filter
|
|
3
|
+
title: `scopeFilter` — row-level security
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context-runtime-semantics.md#34-scopefilter--bypassroles, docs/consumer/ai-context-api.md#auth]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# `scopeFilter` — row-level security
|
|
9
|
+
|
|
10
|
+
A SQL `WHERE` clause template injected server-side on **query, update,
|
|
11
|
+
and delete** operations, resolved against JWT claims. **Prevents
|
|
12
|
+
cross-tenant row access.**
|
|
13
|
+
|
|
14
|
+
## Shape
|
|
15
|
+
|
|
16
|
+
In `auth.scopeFilter`:
|
|
17
|
+
```json
|
|
18
|
+
"scopeFilter": {
|
|
19
|
+
"claim": "institutions",
|
|
20
|
+
"type": "int",
|
|
21
|
+
"column": "institution_id",
|
|
22
|
+
"bypassRoles": ["ADMIN"]
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Or per-endpoint (boolean / per-endpoint config):
|
|
27
|
+
```json
|
|
28
|
+
"endpoints": {
|
|
29
|
+
"rooms": {
|
|
30
|
+
"scopeFilter": "tenant_id = :jwt.tenant_id",
|
|
31
|
+
"bypassRoles": ["admin"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Behavior
|
|
37
|
+
|
|
38
|
+
- For roles in `bypassRoles`, the filter is NOT applied (admin sees all).
|
|
39
|
+
- All other roles see only rows matching their JWT claim.
|
|
40
|
+
- **Applies to UPDATE and DELETE**, not just SELECT — defense in depth.
|
|
41
|
+
|
|
42
|
+
## Security invariant
|
|
43
|
+
|
|
44
|
+
A user cannot UPDATE or DELETE rows outside their scope — the filter is
|
|
45
|
+
appended to the WHERE clause of those queries. Combined with audit fields
|
|
46
|
+
(see [[@concept-api-audit]]), this gives a strong defense-in-depth posture
|
|
47
|
+
for multi-tenant apps.
|
|
48
|
+
|
|
49
|
+
## Related concepts
|
|
50
|
+
|
|
51
|
+
- [[@concept-api-auth]]
|
|
52
|
+
- [[@concept-api-audit]]
|
|
53
|
+
- [[@concept-api-spec]]
|
|
54
|
+
- [[@concept-role-access]] — frontend equivalent
|
|
55
|
+
|
|
56
|
+
## Sources (raw)
|
|
57
|
+
|
|
58
|
+
- `docs/consumer/ai-context-runtime-semantics.md § 3.4`
|
|
59
|
+
- `docs/consumer/ai-context-api.md § Auth → scopeFilter`
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-api-spec
|
|
3
|
+
title: ApiSpec — declarative backend
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context-api.md, docs/consumer/ai-context.md#apispec-server]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# ApiSpec — declarative backend
|
|
9
|
+
|
|
10
|
+
`type: "api"` document defines a backend API declaratively — endpoints,
|
|
11
|
+
catalogs, auth, audit. **No connection strings or secrets in the spec**
|
|
12
|
+
(those go in `createServer` config).
|
|
13
|
+
|
|
14
|
+
## Shape / Signature
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"type": "api",
|
|
19
|
+
"name": "My API",
|
|
20
|
+
"auth": { ... },
|
|
21
|
+
"catalogs": { ... },
|
|
22
|
+
"endpoints": { ... }
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Sub-concepts
|
|
27
|
+
|
|
28
|
+
- [[@concept-api-catalogs]] — dropdown data sources
|
|
29
|
+
- [[@concept-api-endpoints-overview]] — 4 endpoint patterns
|
|
30
|
+
- [[@concept-api-query-endpoint]]
|
|
31
|
+
- [[@concept-api-handler-endpoint]]
|
|
32
|
+
- [[@concept-api-crud-endpoint]] — 1 declaration → 3 routes
|
|
33
|
+
- [[@concept-api-public-endpoint]]
|
|
34
|
+
- [[@concept-api-endpoint-properties]]
|
|
35
|
+
- [[@concept-api-param-properties]]
|
|
36
|
+
- [[@concept-api-auth]]
|
|
37
|
+
- [[@concept-api-scope-filter]] — row-level filtering
|
|
38
|
+
- [[@concept-api-audit]] — un-spoofable audit fields
|
|
39
|
+
- [[@concept-query-envelope]] — `{ data, total, page, pageSize, totals }`
|
|
40
|
+
- [[@concept-api-login-body-contract]] — `{ username, password }`
|
|
41
|
+
|
|
42
|
+
## Rules
|
|
43
|
+
|
|
44
|
+
- ApiSpec is **pure declarative** — no connection strings, no secrets
|
|
45
|
+
(those go in `createServer` config).
|
|
46
|
+
- Api-specs use `type: "api"` — **never served to the browser** (404 on
|
|
47
|
+
`GET /api/screens/:id` for type "api").
|
|
48
|
+
- `query` and `handler` are mutually exclusive — use `query` for simple
|
|
49
|
+
SQL, `handler` for complex logic.
|
|
50
|
+
- CRUD `insertable` / `updatable` define which fields can be written —
|
|
51
|
+
fields not listed are rejected.
|
|
52
|
+
- Audit values override client-sent values — prevents spoofing.
|
|
53
|
+
- `policy: "public"` skips auth — use for health checks and public
|
|
54
|
+
endpoints only.
|
|
55
|
+
- ScopeFilter `bypassRoles` lets admin roles see all data.
|
|
56
|
+
- Provider queries use `@username` parameter and must return `val` column.
|
|
57
|
+
- Param `source` defaults to auto-detect: path first, body for non-GET,
|
|
58
|
+
query as fallback.
|
|
59
|
+
|
|
60
|
+
## Related concepts
|
|
61
|
+
|
|
62
|
+
- [[@concept-spec-types]]
|
|
63
|
+
- [[@cli-contract]]
|
|
64
|
+
- [[@pattern-fullstack-coherence]]
|
|
65
|
+
- [[@concept-spec-stores-catalog]] — separate `api_specs` table per rule 71
|
|
66
|
+
|
|
67
|
+
## Sources (raw)
|
|
68
|
+
|
|
69
|
+
- `docs/consumer/ai-context-api.md` (full)
|
|
70
|
+
- `docs/consumer/ai-context.md § ApiSpec (Server)`
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-app-auto-state-paths
|
|
3
|
+
title: AppSpec auto-state paths
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#auto-generated-state, docs/consumer/reference-doc.md#auto-generated-state]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# AppSpec auto-state paths
|
|
9
|
+
|
|
10
|
+
Paths the framework writes when AppSpec is mounted.
|
|
11
|
+
|
|
12
|
+
## Paths
|
|
13
|
+
|
|
14
|
+
| Path | Content |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `/navigation/currentScreen` | Active screen ID |
|
|
17
|
+
| `/navigation/history` | Visited screen IDs (array) |
|
|
18
|
+
| `/navigation/breadcrumb` | Enriched array with `label`, `icon` |
|
|
19
|
+
| `/navigation/params` | Extra params passed to `navigateScreen` (reset on each navigation) |
|
|
20
|
+
| `/app/screens` | Accessible screens (filtered by role; loginScreen excluded) |
|
|
21
|
+
| `/auth/isAuthenticated` | (auth) |
|
|
22
|
+
| `/auth/user/*` | (auth — see [[@concept-auth-state-paths]]) |
|
|
23
|
+
|
|
24
|
+
## Sidebar auto-refresh
|
|
25
|
+
|
|
26
|
+
`MythikApp` automatically re-computes `/app/screens` when auth state
|
|
27
|
+
changes (`/auth/user/*` or `/auth/isAuthenticated`). No manual call needed
|
|
28
|
+
— login, logout, session restore, cross-tab sync, and role changes all
|
|
29
|
+
trigger sidebar refresh.
|
|
30
|
+
|
|
31
|
+
## Use patterns
|
|
32
|
+
|
|
33
|
+
Read current screen:
|
|
34
|
+
```json
|
|
35
|
+
{ "$state": "/navigation/currentScreen" }
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Render sidebar items via repeat:
|
|
39
|
+
```json
|
|
40
|
+
{ "type": "stack", "repeat": { "statePath": "/app/screens", "key": "id" }, "children": [...] }
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Read navigation params on target screen:
|
|
44
|
+
```json
|
|
45
|
+
{ "$state": "/navigation/params/employeeId" }
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Related concepts
|
|
49
|
+
|
|
50
|
+
- [[@concept-navigation]]
|
|
51
|
+
- [[@concept-app-spec]]
|
|
52
|
+
- [[@path-navigation]]
|
|
53
|
+
- [[@path-app-screens]]
|
|
54
|
+
- [[@action-navigate]]
|
|
55
|
+
|
|
56
|
+
## Sources (raw)
|
|
57
|
+
|
|
58
|
+
- `docs/consumer/ai-context.md § AppSpec & Navigation → Auto-Generated State`
|
|
59
|
+
- `docs/consumer/reference-doc.md § Auto-Generated State`
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-app-spec
|
|
3
|
+
title: AppSpec — multi-screen app
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#appspec--navigation, docs/consumer/reference-doc.md#app-spec--screen-outlet]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# AppSpec — multi-screen app
|
|
9
|
+
|
|
10
|
+
Top-level document with `type: "app"`. Defines navigation, screens, shared
|
|
11
|
+
state, tokens, templates, and the layout that wraps every screen via
|
|
12
|
+
`screen-outlet`. **100% opt-in** — without AppSpec, screen specs work
|
|
13
|
+
standalone.
|
|
14
|
+
|
|
15
|
+
## Shape / Signature
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"type": "app",
|
|
20
|
+
"name": "my-app",
|
|
21
|
+
"navigation": {
|
|
22
|
+
"type": "sidebar",
|
|
23
|
+
"initialScreen": "dashboard",
|
|
24
|
+
"menu": ["dashboard", "reports", "settings"],
|
|
25
|
+
"auth": { ... }
|
|
26
|
+
},
|
|
27
|
+
"screens": {
|
|
28
|
+
"dashboard": { "label": "Dashboard", "icon": "chart-bar", "statePolicy": "preserve" },
|
|
29
|
+
"new-item": { "label": "New", "icon": "plus", "statePolicy": "reset", "parent": "dashboard" }
|
|
30
|
+
},
|
|
31
|
+
"tokens": { "dna": { "primary": "#0D9488" } },
|
|
32
|
+
"sharedState": { "preferences": { "theme": "light" } },
|
|
33
|
+
"templates": { ... },
|
|
34
|
+
"translations": { "en": { ... }, "es": { ... } },
|
|
35
|
+
"layout": {
|
|
36
|
+
"root": "shell",
|
|
37
|
+
"elements": {
|
|
38
|
+
"shell": { "type": "stack", "props": { "direction": "horizontal" }, "children": ["sidebar", "screen-outlet"] },
|
|
39
|
+
"sidebar": { "type": "box", "children": ["nav"] },
|
|
40
|
+
"screen-outlet": { "type": "screen-outlet", "style": { "flex": 1 } }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Top-level properties
|
|
47
|
+
|
|
48
|
+
| Property | Type | Required | Purpose |
|
|
49
|
+
|---|---|---|---|
|
|
50
|
+
| `type` | `"app"` | yes | Identifies as AppSpec |
|
|
51
|
+
| `name` | string | no | App display name |
|
|
52
|
+
| `navigation` | object | yes | Navigation config |
|
|
53
|
+
| `screens` | object | yes | `{ id: { label, icon, statePolicy, parent?, roles? } }` |
|
|
54
|
+
| `tokens` | object | no | Design tokens |
|
|
55
|
+
| `sharedState` | object | no | Initial shared state |
|
|
56
|
+
| `templates` | object | no | Shared templates |
|
|
57
|
+
| `translations` | object | no | i18n translations |
|
|
58
|
+
| `layout` | object | yes | `{ root, elements }` — sidebar + screen-outlet |
|
|
59
|
+
|
|
60
|
+
## Inheritance
|
|
61
|
+
|
|
62
|
+
Screens inherit from AppSpec:
|
|
63
|
+
- **Tokens**: deep merge (screen overrides app)
|
|
64
|
+
- **Translations**: merged (screen extends app)
|
|
65
|
+
- **Templates**: screen overrides app with same name
|
|
66
|
+
|
|
67
|
+
## Constraints / Anti-patterns
|
|
68
|
+
|
|
69
|
+
- **AppSpec patches use `/layout/elements/`**, not `/elements/`. See
|
|
70
|
+
[[@cli-app-spec]].
|
|
71
|
+
- **AppSpec is filtered without Bearer token** — `GET /api/app/:id` strips
|
|
72
|
+
`roleAccess` and `protectedScreens` when no valid Bearer is present
|
|
73
|
+
(rule 63). Prevents disclosure of authorization model.
|
|
74
|
+
|
|
75
|
+
## Related concepts
|
|
76
|
+
|
|
77
|
+
- [[@concept-navigation]]
|
|
78
|
+
- [[@concept-screen-definition]]
|
|
79
|
+
- [[@concept-state-policies]]
|
|
80
|
+
- [[@concept-role-access]]
|
|
81
|
+
- [[@primitive-screen-outlet]]
|
|
82
|
+
- [[@concept-auth-config]]
|
|
83
|
+
- [[@cli-app-spec]]
|
|
84
|
+
- [[@concept-spec-types]]
|
|
85
|
+
|
|
86
|
+
## Sources (raw)
|
|
87
|
+
|
|
88
|
+
- `docs/consumer/ai-context.md § AppSpec & Navigation`
|
|
89
|
+
- `docs/consumer/reference-doc.md § App Spec & Screen Outlet`
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-auth-config
|
|
3
|
+
title: AppSpec auth config
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#auth-config, docs/consumer/reference-doc.md#authentication]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# AppSpec auth config
|
|
9
|
+
|
|
10
|
+
Auth configuration lives at `navigation.auth` in AppSpec.
|
|
11
|
+
|
|
12
|
+
## Shape / Signature
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
"navigation": {
|
|
16
|
+
"auth": {
|
|
17
|
+
"provider": "supabase",
|
|
18
|
+
"loginScreen": "login",
|
|
19
|
+
"protectedScreens": ["*"],
|
|
20
|
+
"roleAccess": { "admin": ["*"], "user": ["dashboard", "profile"] },
|
|
21
|
+
"persistence": "local",
|
|
22
|
+
"tokenRefresh": true,
|
|
23
|
+
"authDomains": ["myproject.supabase.co"],
|
|
24
|
+
"sessionExpiredMessage": "Session expired, please sign in again",
|
|
25
|
+
"loginBody": { "username": { "$state": "/login/email" }, "password": { "$state": "/login/password" } },
|
|
26
|
+
"interceptors": { "logging": true, "timeout": { "ms": 15000 } }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Properties
|
|
32
|
+
|
|
33
|
+
| Property | Description |
|
|
34
|
+
|---|---|
|
|
35
|
+
| `provider` | Auth provider key (`"supabase"`, `"jwt"`, etc.) |
|
|
36
|
+
| `loginScreen` | Screen ID for login |
|
|
37
|
+
| `protectedScreens` | Array of screen IDs requiring auth (`["*"]` = all) |
|
|
38
|
+
| `roleAccess` | Centralized access map (preferred) - see [[@concept-role-access]] |
|
|
39
|
+
| `persistence` | `"local"`, `"session"`, `"memory"` - see [[@concept-session-persistence]] |
|
|
40
|
+
| `tokenRefresh` | Enable proactive token refresh |
|
|
41
|
+
| `authDomains` | Hostnames that auto-receive Bearer token - see [[@concept-auth-domains]] |
|
|
42
|
+
| `sessionExpiredMessage` | Shown on session expiry |
|
|
43
|
+
| `loginBody` | Server-side body shape mapping (e.g., email to username) - see [[@pattern-login-body-template]] |
|
|
44
|
+
| `interceptors` | Fetch interceptor config - see [[@concept-fetch-interceptors]] |
|
|
45
|
+
|
|
46
|
+
## Custom JWT provider response mapping
|
|
47
|
+
|
|
48
|
+
For custom JWT auth, response paths are explicit. `tokenPath`,
|
|
49
|
+
`refreshTokenPath`, and `userPath` are dot paths against the full response.
|
|
50
|
+
`rolePath` and `rolesPath` use a compat dual contract: plain keys such as
|
|
51
|
+
`"role"` / `"roles"` resolve inside the extracted `userPath` object, while
|
|
52
|
+
dotted paths such as `"user.role"` or `"data.user.role"` resolve against
|
|
53
|
+
the full response. See [[@concept-custom-jwt-provider]].
|
|
54
|
+
|
|
55
|
+
## Related concepts
|
|
56
|
+
|
|
57
|
+
- [[@concept-auth-state-paths]]
|
|
58
|
+
- [[@concept-auth-security]]
|
|
59
|
+
- [[@concept-custom-jwt-provider]]
|
|
60
|
+
- [[@concept-auth-domains]]
|
|
61
|
+
- [[@concept-session-persistence]]
|
|
62
|
+
- [[@concept-cross-tab-sync]]
|
|
63
|
+
- [[@concept-fetch-interceptors]]
|
|
64
|
+
- [[@concept-role-access]]
|
|
65
|
+
- [[@pattern-login-screen]]
|
|
66
|
+
- [[@pattern-login-body-template]]
|
|
67
|
+
|
|
68
|
+
## Sources (raw)
|
|
69
|
+
|
|
70
|
+
- `docs/consumer/ai-context.md` - AppSpec & Navigation / Auth Config
|
|
71
|
+
- `docs/consumer/reference-doc.md` - Authentication / AppSpec Auth Config
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-auth-domains
|
|
3
|
+
title: `authDomains` — hostname matcher
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context-runtime-semantics.md#41-authdomains-hostname-only--blocker-5, docs/consumer/reference-doc.md#authentication]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# `authDomains` — hostname matcher
|
|
9
|
+
|
|
10
|
+
Auth headers (Bearer tokens) are auto-injected on fetch/submitForm requests
|
|
11
|
+
when the URL's hostname matches any entry in `authDomains`.
|
|
12
|
+
|
|
13
|
+
## Matching contract
|
|
14
|
+
|
|
15
|
+
**Port is stripped — hostname only.** Comparison uses `new URL(fetchUrl).hostname`.
|
|
16
|
+
|
|
17
|
+
| Entry | Matches | Does NOT match |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| `"api.example.com"` | `https://api.example.com/...` (any port) | `https://notapi.example.com`, `https://example.com` |
|
|
20
|
+
| `"example.com"` | `https://example.com`, `https://api.example.com`, `https://foo.example.com` (subdomain) | `https://notexample.com` |
|
|
21
|
+
| `"localhost"` | `http://localhost:5173/...`, `http://localhost:3010/...` | `http://127.0.0.1` |
|
|
22
|
+
| `"localhost:5173"` | **nothing** (port is stripped from URL hostname) | everything |
|
|
23
|
+
|
|
24
|
+
## Subdomain matching
|
|
25
|
+
|
|
26
|
+
An entry `"example.com"` matches any URL whose hostname **ends with** `.example.com` (note the leading dot — prevents `"api.com"` from matching `"notapi.com"`).
|
|
27
|
+
|
|
28
|
+
## URL scheme filter
|
|
29
|
+
|
|
30
|
+
Only `http://` and `https://` URLs are considered. Relative paths
|
|
31
|
+
(`/api/rooms`), `file:`, `data:`, etc. return `false` before matching —
|
|
32
|
+
auth headers are not injected on those requests.
|
|
33
|
+
|
|
34
|
+
## Dev-mode guidance
|
|
35
|
+
|
|
36
|
+
Configure `authDomains: ["localhost"]` (no port). Tokens inject on any
|
|
37
|
+
localhost port during dev.
|
|
38
|
+
|
|
39
|
+
## Constraints / Anti-patterns
|
|
40
|
+
|
|
41
|
+
- **Never include `:port`** in `authDomains[]` entries — port is silently
|
|
42
|
+
stripped, leading to apparent matches that don't match. See
|
|
43
|
+
[[@antipattern-auth-domains-port]] (also a `mythik lint` rule).
|
|
44
|
+
|
|
45
|
+
## Related concepts
|
|
46
|
+
|
|
47
|
+
- [[@concept-auth-config]]
|
|
48
|
+
- [[@concept-fetch-interceptors]]
|
|
49
|
+
- [[@antipattern-auth-domains-port]]
|
|
50
|
+
- [[@cli-lint]] — `spec-auth-domains-port` rule
|
|
51
|
+
|
|
52
|
+
## Sources (raw)
|
|
53
|
+
|
|
54
|
+
- `docs/consumer/ai-context-runtime-semantics.md § 4.1`
|
|
55
|
+
- `docs/consumer/reference-doc.md § Authentication → authDomains matcher behavior` + rule 71
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-auth-security
|
|
3
|
+
title: Auth security guarantees
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#auth-config, docs/consumer/reference-doc.md#security-guarantees]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Auth security guarantees
|
|
9
|
+
|
|
10
|
+
Architectural guarantees from the auth subsystem. Most are enforced at the
|
|
11
|
+
type/runtime level, not by convention.
|
|
12
|
+
|
|
13
|
+
## Guarantees
|
|
14
|
+
|
|
15
|
+
- **Tokens NEVER exist in the state store**: only in engine closure.
|
|
16
|
+
- **`$auth` blocks token/password fields** via whitelist.
|
|
17
|
+
- **Auth headers only injected for `authDomains` URLs.**
|
|
18
|
+
- **Credentials cleared from state after login** (success AND failure).
|
|
19
|
+
- **Custom JWT role mapping is explicit**: plain `rolePath` / `rolesPath`
|
|
20
|
+
keys resolve inside the extracted user object; dotted paths resolve
|
|
21
|
+
against the full response. See [[@concept-custom-jwt-provider]].
|
|
22
|
+
- **Refresh mutex**: max 1 concurrent refresh (anti-stampede).
|
|
23
|
+
- **Login rate limit**: 5 attempts/min with exponential backoff.
|
|
24
|
+
- **Cross-tab sync**: logout in one tab = logout in all tabs.
|
|
25
|
+
- **StateGuard blocks spec writes to `/auth/*`.**
|
|
26
|
+
- **XSS-resistant by architecture**: JSON to primitives to React escaping.
|
|
27
|
+
|
|
28
|
+
## Blocked `$auth` fields
|
|
29
|
+
|
|
30
|
+
Always return `undefined`:
|
|
31
|
+
`token`, `accessToken`, `access_token`, `refreshToken`, `refresh_token`,
|
|
32
|
+
`password`, `secret`, `session`, `metadata.token`, `metadata.password`.
|
|
33
|
+
|
|
34
|
+
## Production behavior
|
|
35
|
+
|
|
36
|
+
- **Auth errors silent in production**: `login`, `logout`, `refreshSession`
|
|
37
|
+
errors logged to console only when `NODE_ENV !== 'production'`. In
|
|
38
|
+
production, suppressed to prevent stack-trace leakage to attackers.
|
|
39
|
+
Errors still appear in UI via `/auth/error`.
|
|
40
|
+
|
|
41
|
+
## Never trust client auth as security
|
|
42
|
+
|
|
43
|
+
`AppAuthConfig` is UX routing (hide screens by role), not server-side
|
|
44
|
+
security. Always validate tokens on the backend (rule 42).
|
|
45
|
+
|
|
46
|
+
## Related concepts
|
|
47
|
+
|
|
48
|
+
- [[@concept-auth-config]]
|
|
49
|
+
- [[@concept-custom-jwt-provider]]
|
|
50
|
+
- [[@expression-auth]]
|
|
51
|
+
- [[@concept-auth-domains]]
|
|
52
|
+
- [[@concept-state-protection]]
|
|
53
|
+
- [[@concept-cross-tab-sync]]
|
|
54
|
+
|
|
55
|
+
## Sources (raw)
|
|
56
|
+
|
|
57
|
+
- `docs/consumer/ai-context.md` - AppSpec & Navigation / Auth Config (Security)
|
|
58
|
+
- `docs/consumer/reference-doc.md` - Security Guarantees
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-auth-state-paths
|
|
3
|
+
title: Auth state paths — `/auth/*`
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#login-screen, docs/consumer/reference-doc.md#auth-state-paths-read-only-auto-managed]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Auth state paths — `/auth/*`
|
|
9
|
+
|
|
10
|
+
Auth state paths are **read-only** and auto-managed by the auth engine.
|
|
11
|
+
StateGuard blocks spec writes to `/auth/*`.
|
|
12
|
+
|
|
13
|
+
## Paths
|
|
14
|
+
|
|
15
|
+
| Path | Type |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `/auth/isAuthenticated` | boolean |
|
|
18
|
+
| `/auth/loading` | boolean |
|
|
19
|
+
| `/auth/error` | string \| null |
|
|
20
|
+
| `/auth/user/id` | string |
|
|
21
|
+
| `/auth/user/email` | string |
|
|
22
|
+
| `/auth/user/name` | string \| null |
|
|
23
|
+
| `/auth/user/avatar` | string \| null |
|
|
24
|
+
| `/auth/user/role` | string (primary) |
|
|
25
|
+
| `/auth/user/roles` | string[] (all roles) |
|
|
26
|
+
| `/auth/user/metadata` | object \| null |
|
|
27
|
+
|
|
28
|
+
## Read patterns
|
|
29
|
+
|
|
30
|
+
Prefer [[@expression-auth]] over `$state: "/auth/user/..."` — `$auth` is
|
|
31
|
+
whitelisted (blocks tokens/passwords).
|
|
32
|
+
|
|
33
|
+
## Tokens NEVER live in state
|
|
34
|
+
|
|
35
|
+
Tokens (access, refresh) live in engine closure only — never written to
|
|
36
|
+
the state store. See [[@concept-auth-security]].
|
|
37
|
+
|
|
38
|
+
## Related concepts
|
|
39
|
+
|
|
40
|
+
- [[@expression-auth]]
|
|
41
|
+
- [[@concept-auth-security]]
|
|
42
|
+
- [[@concept-state-protection]]
|
|
43
|
+
- [[@action-login]]
|
|
44
|
+
|
|
45
|
+
## Sources (raw)
|
|
46
|
+
|
|
47
|
+
- `docs/consumer/ai-context.md § AppSpec & Navigation → Login Screen`
|
|
48
|
+
- `docs/consumer/reference-doc.md § Auth State Paths`
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-auto-dark-mode
|
|
3
|
+
title: Auto dark mode
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#deep-design-token-system, docs/consumer/reference-doc.md#auto-dark-mode]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Auto dark mode
|
|
9
|
+
|
|
10
|
+
DNA automatically generates `modes.dark` by inverting tonal palette stops.
|
|
11
|
+
**No manual dark theme needed.** Override with explicit `modes.dark`
|
|
12
|
+
values if desired.
|
|
13
|
+
|
|
14
|
+
## Behavior
|
|
15
|
+
|
|
16
|
+
- DNA is the source — palette stops invert in OKLCH lightness for
|
|
17
|
+
dark mode.
|
|
18
|
+
- `toggleTheme` action toggles `/preferences/theme`.
|
|
19
|
+
- `$token` automatically reads `/preferences/theme` and resolves with
|
|
20
|
+
the dark mode overrides when active.
|
|
21
|
+
- All primitives re-render automatically.
|
|
22
|
+
|
|
23
|
+
## Override
|
|
24
|
+
|
|
25
|
+
If the auto-derived dark mode isn't what you want:
|
|
26
|
+
```json
|
|
27
|
+
"tokens": {
|
|
28
|
+
"dna": { "primary": "#0D9488" },
|
|
29
|
+
"modes": {
|
|
30
|
+
"dark": {
|
|
31
|
+
"colors": { "background": "#0a0a0a", "surface": "#1a1a1a" }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## With variants
|
|
38
|
+
|
|
39
|
+
`$path` references in variants resolve against the active token tree
|
|
40
|
+
(dark already applied) — see [[@concept-path-references]]. No separate
|
|
41
|
+
dark variant definitions needed unless the dark change isn't just a token
|
|
42
|
+
swap.
|
|
43
|
+
|
|
44
|
+
## Related concepts
|
|
45
|
+
|
|
46
|
+
- [[@expression-token]]
|
|
47
|
+
- [[@action-toggle-theme]]
|
|
48
|
+
- [[@concept-component-variants]]
|
|
49
|
+
- [[@concept-path-references]]
|
|
50
|
+
- [[@concept-identity-color-scheme]]
|
|
51
|
+
|
|
52
|
+
## Sources (raw)
|
|
53
|
+
|
|
54
|
+
- `docs/consumer/ai-context.md § Deep Design Token System → Auto dark mode`
|
|
55
|
+
- `docs/consumer/reference-doc.md § Auto Dark Mode`
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-background-caps
|
|
3
|
+
title: `validateBackgroundCaps` — performance caps
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/reference-doc.md#rule-210]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# `validateBackgroundCaps` — performance caps
|
|
9
|
+
|
|
10
|
+
Performance validator for backgrounds. Returns
|
|
11
|
+
`{ warnings: string[], errors: string[] }` (shared
|
|
12
|
+
`AnimationValidationResult` type with `validateAnimationCaps`).
|
|
13
|
+
|
|
14
|
+
## Caps
|
|
15
|
+
|
|
16
|
+
| Scope | Soft (warn) | Hard (error) |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| Blobs per background | 8 | 16 |
|
|
19
|
+
| Layers per background | 6 | 10 |
|
|
20
|
+
| Custom-svg path length | 500 chars | 2000 chars |
|
|
21
|
+
| Motion dimensions per blob | 2 | 3 |
|
|
22
|
+
|
|
23
|
+
## Threshold semantics
|
|
24
|
+
|
|
25
|
+
**Strictly-over** (`>`) — differs from `validateAnimationCaps`'s `>=`
|
|
26
|
+
convention. Each function literal per its own design spec table
|
|
27
|
+
(documented in source).
|
|
28
|
+
|
|
29
|
+
## Constraints
|
|
30
|
+
|
|
31
|
+
- `custom-svg` path length cap only applies when `shape === 'custom-svg'`
|
|
32
|
+
AND `path` is a string.
|
|
33
|
+
|
|
34
|
+
## Related concepts
|
|
35
|
+
|
|
36
|
+
- [[@concept-blob-layer]]
|
|
37
|
+
- [[@concept-background-layer-kinds]]
|
|
38
|
+
- [[@concept-animation-caps]] — animation parallel
|
|
39
|
+
|
|
40
|
+
## Sources (raw)
|
|
41
|
+
|
|
42
|
+
- `docs/consumer/reference-doc.md § rule 210`
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-background-layer-kinds
|
|
3
|
+
title: Background layer kinds
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/reference-doc.md#rules-171-176-217]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Background layer kinds
|
|
9
|
+
|
|
10
|
+
`LayerConfig` union has 6 variants. Each carries `LayerCommonProps`
|
|
11
|
+
(`opacity?`, `blendMode?`, `zIndex?`).
|
|
12
|
+
|
|
13
|
+
## Kinds
|
|
14
|
+
|
|
15
|
+
| Kind | Use |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `solid` | Single color |
|
|
18
|
+
| `gradient` | Linear / radial / conic. See below. |
|
|
19
|
+
| `pattern` | Grid / dots / diagonal / iso / crosshatch / chevron / custom-svg. See [[@concept-pattern-primitives]] |
|
|
20
|
+
| `grain` | SVG `feTurbulence` noise overlay |
|
|
21
|
+
| `image` | Bitmap / vector image |
|
|
22
|
+
| `blobs` | Curated organic shapes — see [[@concept-blob-layer]] |
|
|
23
|
+
|
|
24
|
+
## Composition
|
|
25
|
+
|
|
26
|
+
Any mix composed as ordered stack. Each layer supports:
|
|
27
|
+
- `opacity` (0–1)
|
|
28
|
+
- `blendMode` (`normal` / `multiply` / `screen` / `overlay` / `soft-light`
|
|
29
|
+
/ `hard-light` / `color-dodge` / `color-burn`)
|
|
30
|
+
- `zIndex` (defaults to array index)
|
|
31
|
+
|
|
32
|
+
## Gradient primitive
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{ "type": "gradient", "kind": "radial", "shape": "circle", "size": "500px", "position": "0% 20%", "stops": [
|
|
36
|
+
{ "color": "#0D9488", "opacity": 0.8, "at": 0 },
|
|
37
|
+
{ "color": "#0D9488", "opacity": 0, "at": 70 }
|
|
38
|
+
]}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Linear / radial / conic with custom `stops[]` (each `{ color, opacity, at }`).
|
|
42
|
+
Opacity → rgba conversion automatic.
|
|
43
|
+
|
|
44
|
+
## Grain primitive
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{ "type": "grain", "intensity": 0.05, "scale": 0.9, "monochrome": true }
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Defaults: `intensity: 0.05`, `scale: 0.9`, `monochrome: true` (premium
|
|
51
|
+
desaturated grain).
|
|
52
|
+
|
|
53
|
+
## RN limitations
|
|
54
|
+
|
|
55
|
+
- **Blob `blur` not rendered** until Plan 4 filter parity.
|
|
56
|
+
- **Non-`normal` blendMode** triggers dev-warn on RN — no `mixBlendMode`
|
|
57
|
+
equivalent.
|
|
58
|
+
|
|
59
|
+
## Custom-svg escape hatch
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{ "kind": "custom-svg", "shapes": "<circle.../>", "tileSize": 20 }
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
`sanitizeSVGShapes` uses regex pre-strip + DOMPurify allowlist. Only
|
|
66
|
+
circle/rect/path/line/polygon/polyline/ellipse/g/defs/gradients +
|
|
67
|
+
geometric attrs survive. Rejects `<script>`, `<foreignObject>`,
|
|
68
|
+
`<use href>`, `on*` events, `javascript:` URLs.
|
|
69
|
+
|
|
70
|
+
## Related concepts
|
|
71
|
+
|
|
72
|
+
- [[@concept-layer-background]]
|
|
73
|
+
- [[@concept-background-stack]]
|
|
74
|
+
- [[@concept-pattern-primitives]]
|
|
75
|
+
- [[@concept-blob-layer]]
|
|
76
|
+
- [[@concept-background-caps]]
|
|
77
|
+
|
|
78
|
+
## Sources (raw)
|
|
79
|
+
|
|
80
|
+
- `docs/consumer/reference-doc.md § rules 171-176, 217`
|