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,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-data-sources-lifecycle
|
|
3
|
+
title: DataSources lifecycle (mount, deps, skip-on-undefined)
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context-runtime-semantics.md#52-datasources-lifecycle, docs/consumer/ai-context-runtime-semantics.md#9-derive-and-datasources-lifecycle-v010--item-e]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# DataSources lifecycle
|
|
9
|
+
|
|
10
|
+
Status: **SHIPPED v0.1.0 Item E.** Wired via internal `mountSpecRuntime`
|
|
11
|
+
helper called from `MythikRenderer` (web + RN) per spec mount.
|
|
12
|
+
|
|
13
|
+
## Mount
|
|
14
|
+
|
|
15
|
+
1. At spec mount, framework instantiates `DataSourcesEngine` with the
|
|
16
|
+
spec's `dataSources` config + state store + resolver.
|
|
17
|
+
2. Engine runs `scanDeps` on each dataSource's `url`, `params`, `headers`
|
|
18
|
+
to extract referenced state paths. These become the dataSource's deps.
|
|
19
|
+
3. Initial fetch fires (when `initialFetch: true` — default).
|
|
20
|
+
|
|
21
|
+
## Skip-on-undefined-URL-deps
|
|
22
|
+
|
|
23
|
+
If a dataSource's URL `$template` references state that's undefined / null /
|
|
24
|
+
empty at mount time, the initial fetch is **skipped** and
|
|
25
|
+
`/{target}Deferred: true` is set. The reactive subscription resumes the
|
|
26
|
+
fetch when deps resolve. Makes engines self-sufficient — no coordination
|
|
27
|
+
with `initialActions` needed.
|
|
28
|
+
|
|
29
|
+
## Auto re-fetch
|
|
30
|
+
|
|
31
|
+
When the store fires a write to any declared dep, the engine re-fetches
|
|
32
|
+
(debounced to coalesce rapid writes when `debounce` is configured).
|
|
33
|
+
|
|
34
|
+
## `emptyWhileLoading`
|
|
35
|
+
|
|
36
|
+
- `false` (default) — old data stays visible during fetch.
|
|
37
|
+
- `true` — target state path cleared to `null` at fetch start.
|
|
38
|
+
|
|
39
|
+
## Manual refresh
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{ "action": "refreshDataSource", "params": { "id": "rooms" } }
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Auto-registered for any spec with dataSources.
|
|
46
|
+
|
|
47
|
+
## Re-mount safety (navigation)
|
|
48
|
+
|
|
49
|
+
`dispatcher.registerAction` uses `Map.set` (silent overwrite) — re-mounting
|
|
50
|
+
a spec with the same dataSources on the same dispatcher does not throw.
|
|
51
|
+
DataSourcesEngine's `refresh()` early-returns if the engine has been unmounted.
|
|
52
|
+
|
|
53
|
+
## Related concepts
|
|
54
|
+
|
|
55
|
+
- [[@concept-data-sources]]
|
|
56
|
+
- [[@concept-derive-datasources-mount-order]] — mount-time ordering with derive
|
|
57
|
+
- [[@action-refresh-data-source]]
|
|
58
|
+
|
|
59
|
+
## Sources (raw)
|
|
60
|
+
|
|
61
|
+
- `docs/consumer/ai-context-runtime-semantics.md § 5.2` + § 9
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-data-sources
|
|
3
|
+
title: `dataSources` — reactive GET fetching
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#datasources, docs/consumer/reference-doc.md#data-sources-datasources, docs/consumer/ai-context-runtime-semantics.md#52-datasources-lifecycle]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# `dataSources` — reactive GET fetching
|
|
9
|
+
|
|
10
|
+
Declarative reactive data fetching. Makes specs self-contained. Fetches
|
|
11
|
+
re-fire automatically when declared parameter dependencies change. **For
|
|
12
|
+
one-shot operations (POST/PATCH/DELETE), use [[@action-fetch]] inside
|
|
13
|
+
transactions.**
|
|
14
|
+
|
|
15
|
+
## Shape / Signature
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
"dataSources": {
|
|
19
|
+
"tasks": {
|
|
20
|
+
"url": { "$template": "${/config/apiUrl}/rest/v1/tasks?select=*" },
|
|
21
|
+
"method": "GET",
|
|
22
|
+
"headers": { "$state": "/config/headers" },
|
|
23
|
+
"params": {
|
|
24
|
+
"status": { "$state": "/filter/status" },
|
|
25
|
+
"page": { "$state": "/pagination/page" },
|
|
26
|
+
"search": { "$state": "/filter/search" }
|
|
27
|
+
},
|
|
28
|
+
"target": "/tasks",
|
|
29
|
+
"trigger": "auto",
|
|
30
|
+
"debounce": 300,
|
|
31
|
+
"initialFetch": true,
|
|
32
|
+
"emptyWhileLoading": false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Properties
|
|
38
|
+
|
|
39
|
+
| Property | Type | Default | Description |
|
|
40
|
+
|---|---|---|---|
|
|
41
|
+
| `url` | Expression | — | Request URL (supports `$template`, `$state`) |
|
|
42
|
+
| `method` | string | `"GET"` | HTTP method |
|
|
43
|
+
| `headers` | Expression | — | From state, NOT from spec (no keys in DB) |
|
|
44
|
+
| `params` | `Record<string, Expression>` | — | Reactive params — changes trigger re-fetch |
|
|
45
|
+
| `target` | string | — | State path where response is written |
|
|
46
|
+
| `trigger` | `"auto"` \| `"manual"` | `"auto"` | `auto`: re-fetch on param change. `manual`: only via `refreshDataSource` |
|
|
47
|
+
| `debounce` | number | `0` | Debounce ms for auto-trigger |
|
|
48
|
+
| `initialFetch` | boolean | `true` | Fetch on spec mount |
|
|
49
|
+
| `emptyWhileLoading` | boolean | `false` | If true, clear target while loading |
|
|
50
|
+
|
|
51
|
+
## Auto-generated state paths
|
|
52
|
+
|
|
53
|
+
For a dataSource with `target: "/tasks"`:
|
|
54
|
+
- `/tasks` — response data
|
|
55
|
+
- `/tasksLoading` — boolean
|
|
56
|
+
- `/tasksError` — error or null
|
|
57
|
+
- `/{target}Deferred: true` — set when initial fetch is skipped because URL
|
|
58
|
+
template deps are unresolved (Item E). Render "waiting for prerequisite"
|
|
59
|
+
UI distinct from `/{target}Loading`.
|
|
60
|
+
|
|
61
|
+
## Param filtering
|
|
62
|
+
|
|
63
|
+
Values `null`, `undefined`, `""`, or `"all"` are omitted from the query
|
|
64
|
+
string (inactive filter).
|
|
65
|
+
|
|
66
|
+
## Constraints / Anti-patterns
|
|
67
|
+
|
|
68
|
+
- **URL templating requires `$template`.** Plain strings with `${...}`
|
|
69
|
+
are LITERAL — validator catches this (see
|
|
70
|
+
- **Don't mix `fetch` and `dataSources` for same target.** See
|
|
71
|
+
[[@antipattern-mix-fetch-and-datasources]] +
|
|
72
|
+
[[@pattern-fetch-vs-datasources]].
|
|
73
|
+
- **Headers from state, not from spec.** API keys must NOT live in DB —
|
|
74
|
+
inject via host-app `initialState` / `sharedState`.
|
|
75
|
+
|
|
76
|
+
## Force re-fetch
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{ "action": "refreshDataSource", "params": { "id": "tasks" } }
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Related concepts
|
|
83
|
+
|
|
84
|
+
- [[@action-fetch]] — non-reactive alternative
|
|
85
|
+
- [[@action-refresh-data-source]]
|
|
86
|
+
- [[@concept-data-sources-lifecycle]]
|
|
87
|
+
- [[@concept-derive-datasources-mount-order]]
|
|
88
|
+
- [[@concept-derive]]
|
|
89
|
+
- [[@path-data-source-paths]]
|
|
90
|
+
- [[@concept-template-interpolation]] — URL template gotcha
|
|
91
|
+
|
|
92
|
+
## Sources (raw)
|
|
93
|
+
|
|
94
|
+
- `docs/consumer/ai-context.md § DataSources`
|
|
95
|
+
- `docs/consumer/reference-doc.md § Data Sources (dataSources)`
|
|
96
|
+
- `docs/consumer/ai-context-runtime-semantics.md § 5.2`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-debugging-runtime-pointers
|
|
3
|
+
title: Debugging runtime — source-file pointers
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/WHERE-TO-LOOK.md]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Debugging runtime — source pointers
|
|
9
|
+
|
|
10
|
+
For "why is X happening?" questions, the following entry points trace
|
|
11
|
+
where the behavior originates. **Read the relevant
|
|
12
|
+
`ai-context-runtime-semantics.md` section first** — these source pointers
|
|
13
|
+
are the fallback.
|
|
14
|
+
|
|
15
|
+
## Common scenarios
|
|
16
|
+
|
|
17
|
+
| You see... | Trace through |
|
|
18
|
+
|---|---|
|
|
19
|
+
| Expression re-evaluates more than expected | `expressions/resolver.ts` → `state/store.ts` (subscriptions) → `derive/evaluator.ts` (if in derive) → `data/data-sources.ts` (if in dataSource) |
|
|
20
|
+
| Action runs in different order than dispatched | `actions/dispatcher.ts` (queue + tx orchestration) → `actions/transaction-engine.ts` → `actions/middleware.ts` |
|
|
21
|
+
| `fetch` action behaves unexpectedly (auth header, retry, error) | `fetch/framework-fetch.ts` (interceptor chain) → `fetch/interceptors/` (auth, retry, timeout, logging) |
|
|
22
|
+
| dataSource refresh fires/skips at surprising moment | `data/data-sources.ts` → `derive/evaluator.ts` (coordination) → `actions/dispatcher.ts` (`refreshDataSource`) |
|
|
23
|
+
| Form state diverges from spec | `forms/engine.ts` (lifecycle) + `forms/types.ts` (shape) → `state/store.ts` (form paths) |
|
|
24
|
+
| Renderer re-renders too eagerly/lazily | `MythikRenderer.tsx` → `renderer/engine.ts` + `renderer/deps.ts` + `renderer/lazy-paths.ts` → `primitives/<primitive>.tsx` |
|
|
25
|
+
| Server endpoint returns different envelope | `server/src/server.ts` — `createServer` (line 53), `registerEndpoint` (line 373), envelope (line 497-511) |
|
|
26
|
+
| Auth flow rejecting token | Server: `server.ts` (login/refresh routes 104-130) → `auth/db-auth-provider.ts` + `auth/jwt-strategy.ts` + `auth/middleware.ts`. Client: `auth/engine.ts` + `refresh-engine.ts`. Wire: `fetch/interceptors/auth.ts` |
|
|
27
|
+
| CRUD auto-route 404 / collision | `server.ts:373` (registerEndpoint) → `server.ts:549-686` (CRUD block) → `handler-loader.ts` → `crud-builder.ts` |
|
|
28
|
+
| Optimistic update flickers / rollbacks | `actions/transaction-engine.ts` → `streaming/patch.ts` → `streaming/compiler.ts` |
|
|
29
|
+
| `mythik push` reports wrong element count | `cli/commands/push.ts` → `cli/api.ts` → `spec-engine/handlers/<doctype>-handler.ts` (per-doctype `countElements`) |
|
|
30
|
+
|
|
31
|
+
## Doc-side first
|
|
32
|
+
|
|
33
|
+
For ANY of these — read the corresponding `ai-context-runtime-semantics.md`
|
|
34
|
+
section first. Source pointers are for cases where the docs leave a gap.
|
|
35
|
+
|
|
36
|
+
## Related concepts
|
|
37
|
+
|
|
38
|
+
- [[@concept-where-to-look]]
|
|
39
|
+
- [[@concept-expression-timing]]
|
|
40
|
+
- [[@concept-source-of-truth-references]]
|
|
41
|
+
- [[@concept-source-reading-misleading]]
|
|
42
|
+
|
|
43
|
+
## Sources (raw)
|
|
44
|
+
|
|
45
|
+
- `docs/consumer/WHERE-TO-LOOK.md § Section 2`
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-derive-datasources-mount-order
|
|
3
|
+
title: Derive + DataSources mount ordering
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context-runtime-semantics.md#9-derive-and-datasources-lifecycle-v010--item-e]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Derive + DataSources mount ordering
|
|
9
|
+
|
|
10
|
+
Both engines execute at runtime per spec mount via internal
|
|
11
|
+
`mountSpecRuntime` helper called from `MythikRenderer` (web + RN). Order
|
|
12
|
+
inside `mountSpecRuntime`:
|
|
13
|
+
|
|
14
|
+
1. **`DeriveEngine.mount()`** — sync evaluation in topological order;
|
|
15
|
+
writes derive paths to store.
|
|
16
|
+
2. Subscribe `derive.onStateChange` to store — reactive recompute on
|
|
17
|
+
state changes.
|
|
18
|
+
3. `protectionRegistry.contribute(derivePaths)` — derive paths now
|
|
19
|
+
blocked from `setState`.
|
|
20
|
+
4. `dispatcher.registerAction(dataSources.getActionDefinition())` —
|
|
21
|
+
`refreshDataSource` action becomes available.
|
|
22
|
+
5. **`DataSourcesEngine.mount()`** — initial fetches with
|
|
23
|
+
skip-on-undefined-URL-deps.
|
|
24
|
+
|
|
25
|
+
## Renderer useEffect order
|
|
26
|
+
|
|
27
|
+
The state-subscription `useEffect` is declared **before** the
|
|
28
|
+
`mountSpecRuntime` `useEffect`. React fires effects in declaration order,
|
|
29
|
+
so the subscription is attached first; deriveEngine.mount()'s synchronous
|
|
30
|
+
writes are then captured by that listener and trigger initial-paint
|
|
31
|
+
re-render.
|
|
32
|
+
|
|
33
|
+
If you fork or reimplement `MythikRenderer`, preserve this ordering —
|
|
34
|
+
otherwise initial paint misses derive writes.
|
|
35
|
+
|
|
36
|
+
## Re-entrant safety
|
|
37
|
+
|
|
38
|
+
Derive recompute writes fire the store subscription, which calls
|
|
39
|
+
`onStateChange` recursively. **Intentional** — chained derives need to
|
|
40
|
+
cascade (B depending on A's output sees A's write and recomputes).
|
|
41
|
+
Infinite loops prevented structurally:
|
|
42
|
+
- Topo-sort at mount throws on circular deps.
|
|
43
|
+
- A derive's own write doesn't make itself dirty (its deps don't include
|
|
44
|
+
its own path).
|
|
45
|
+
|
|
46
|
+
## State protection
|
|
47
|
+
|
|
48
|
+
Derive paths are contributed via RAII handle to `protectionRegistry`;
|
|
49
|
+
`stateGuard` reads via lazy callback. Validator catches
|
|
50
|
+
`setState → derive path` at load time (8 derive/dataSources checks);
|
|
51
|
+
dispatcher catches at runtime via `stateGuard.assertCanWrite`. Defense in
|
|
52
|
+
depth.
|
|
53
|
+
|
|
54
|
+
## Error degradation
|
|
55
|
+
|
|
56
|
+
`DeriveEngine.evaluatePath` wraps each evaluation in try/catch. On error:
|
|
57
|
+
`console.error` with the path name, leave path unwritten (consumer reads
|
|
58
|
+
undefined), continue with other derives. Reactive recompute on subsequent
|
|
59
|
+
state changes can recover.
|
|
60
|
+
|
|
61
|
+
## Related concepts
|
|
62
|
+
|
|
63
|
+
- [[@concept-derive]]
|
|
64
|
+
- [[@concept-data-sources]]
|
|
65
|
+
- [[@concept-data-sources-lifecycle]]
|
|
66
|
+
- [[@concept-state-protection]]
|
|
67
|
+
- [[@concept-mount-spec-runtime]]
|
|
68
|
+
- [[@concept-mythik-renderer]]
|
|
69
|
+
|
|
70
|
+
## Sources (raw)
|
|
71
|
+
|
|
72
|
+
- `docs/consumer/ai-context-runtime-semantics.md § 9`
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-derive
|
|
3
|
+
title: `derive` — derived state
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#derived-state, docs/consumer/reference-doc.md#derived-state-derive, docs/consumer/ai-context-runtime-semantics.md#53-derive-evaluation-order]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# `derive` — derived state
|
|
9
|
+
|
|
10
|
+
Auto-computed reactive state. Declared at spec level. **Read-only** —
|
|
11
|
+
StateGuard blocks `setState` writes to derive paths. Dependency-tracked —
|
|
12
|
+
only re-evaluates when a dependency changes.
|
|
13
|
+
|
|
14
|
+
## Shape / Signature
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"derive": {
|
|
19
|
+
"/stats/total": { "$array": "count", "source": { "$state": "/items" } },
|
|
20
|
+
"/stats/avg": { "$math": "divide", "args": [
|
|
21
|
+
{ "$array": "sum", "source": { "$state": "/items" }, "field": "price" },
|
|
22
|
+
{ "$array": "count", "source": { "$state": "/items" } }
|
|
23
|
+
]}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## How it works
|
|
29
|
+
|
|
30
|
+
1. On spec mount: all derive expressions are evaluated in dependency order
|
|
31
|
+
(topological sort).
|
|
32
|
+
2. On state change: only derives whose deps changed re-evaluate.
|
|
33
|
+
3. Derive paths are **read-only** — `setState` to a derive path is blocked
|
|
34
|
+
by StateGuard.
|
|
35
|
+
4. Circular dependencies are detected at mount time (throws error).
|
|
36
|
+
5. Derive A can reference Derive B (no cycles).
|
|
37
|
+
|
|
38
|
+
## Constraints / Anti-patterns
|
|
39
|
+
|
|
40
|
+
- **Derive sees only data in state.** With server-side pagination, state
|
|
41
|
+
holds the current page — derive sums/counts reflect the page, not the
|
|
42
|
+
full dataset. For full-dataset totals, use the API's `totals` response.
|
|
43
|
+
See [[@antipattern-derive-server-pagination]].
|
|
44
|
+
- **`$auth` not available in derive.** Use `$state: "/auth/*"` instead.
|
|
45
|
+
See [[@concept-expression-contexts]].
|
|
46
|
+
- **Empty/cyclic/protected paths fail at validation** — see
|
|
47
|
+
- **DeriveEngine degrades gracefully**: one bad expression doesn't break
|
|
48
|
+
others. Errors logged via `console.error`; affected path stays
|
|
49
|
+
unwritten or holds last-good value.
|
|
50
|
+
|
|
51
|
+
## Lifecycle (post-Item-E)
|
|
52
|
+
|
|
53
|
+
DeriveEngine mounts first, populates derive paths from current state, then
|
|
54
|
+
subscribes for reactive recompute. See [[@concept-derive-datasources-mount-order]].
|
|
55
|
+
|
|
56
|
+
## Related concepts
|
|
57
|
+
|
|
58
|
+
- [[@concept-data-sources]]
|
|
59
|
+
- [[@concept-derive-datasources-mount-order]]
|
|
60
|
+
- [[@concept-state-protection]]
|
|
61
|
+
- [[@concept-expression-contexts]]
|
|
62
|
+
|
|
63
|
+
## Sources (raw)
|
|
64
|
+
|
|
65
|
+
- `docs/consumer/ai-context.md § Derived State`
|
|
66
|
+
- `docs/consumer/reference-doc.md § Derived State (derive)`
|
|
67
|
+
- `docs/consumer/ai-context-runtime-semantics.md § 5.3`
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-dna-seeds
|
|
3
|
+
title: DNA seeds — 8 inputs that derive everything
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#deep-design-token-system, docs/consumer/reference-doc.md#dna-seeds]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# DNA seeds
|
|
9
|
+
|
|
10
|
+
Define 1-8 seeds in `tokens.dna`. The framework derives ALL token
|
|
11
|
+
categories automatically — colors via OKLCH tonal palette, shape, typography,
|
|
12
|
+
spacing, elevation, motion, opacity, plus auto dark mode.
|
|
13
|
+
|
|
14
|
+
## Catalog
|
|
15
|
+
|
|
16
|
+
| Seed | Type | Default | Controls |
|
|
17
|
+
|---|---|---|---|
|
|
18
|
+
| `primary` | hex | (required) | Base color → 13-stop OKLCH tonal palette |
|
|
19
|
+
| `harmony` | enum | `complementary` | How accent relates to primary: `complementary` (180°), `analogous` (50°), `triadic` (120°), `split-complementary` (150°) |
|
|
20
|
+
| `accent` | hex (optional) | derived | Explicit accent (skips harmony) |
|
|
21
|
+
| `neutral` | enum | `natural` | `warm` (amber 55°), `cool` (blue 250°), `natural` (primary hue). Chroma 0.025 (natural) / 0.035 (warm/cool) |
|
|
22
|
+
| `roundness` | 0–1 | 0.5 | Shape: 0=sharp/brutalist → 1=pill/playful |
|
|
23
|
+
| `density` | 0–1 | 0.5 | Spacing: 0=airy → 1=compact |
|
|
24
|
+
| `depth` | 0–1 | 0.5 | Shadows: 0=flat → 1=elevated |
|
|
25
|
+
| `motion` | enum | `gentle` | `fluid`, `snappy`, `gentle`, `energetic` — animation personality |
|
|
26
|
+
| `formality` | 0–1 | 0.5 | Typography (5 font tiers + continuous letterSpacing/lineHeight/bold weight) |
|
|
27
|
+
|
|
28
|
+
## Examples
|
|
29
|
+
|
|
30
|
+
Minimal:
|
|
31
|
+
```json
|
|
32
|
+
"tokens": { "dna": { "primary": "#0D9488" } }
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Full personality:
|
|
36
|
+
```json
|
|
37
|
+
"tokens": { "dna": {
|
|
38
|
+
"primary": "#0D9488",
|
|
39
|
+
"harmony": "analogous",
|
|
40
|
+
"roundness": 0.7,
|
|
41
|
+
"density": 0.5,
|
|
42
|
+
"depth": 0.6,
|
|
43
|
+
"motion": "fluid",
|
|
44
|
+
"formality": 0.3
|
|
45
|
+
}}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Formality drives 5 font tiers
|
|
49
|
+
|
|
50
|
+
| Range | Body | Heading |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| 0.0 | Inter | Inter |
|
|
53
|
+
| 0.25 | Space Grotesk | Space Grotesk |
|
|
54
|
+
| 0.5 | Source Sans 3 | DM Sans |
|
|
55
|
+
| 0.75 | Lora | Lora |
|
|
56
|
+
| 1.0 | Merriweather | Playfair Display |
|
|
57
|
+
|
|
58
|
+
Plus continuous: `letterSpacing` (0 → 0.03em), `headingLetterSpacing`
|
|
59
|
+
(0 → -0.02em), `lineHeight` ratio (1.45 → 1.6), bold weight (700 → 800).
|
|
60
|
+
|
|
61
|
+
## Primary preserved as-is
|
|
62
|
+
|
|
63
|
+
`deriveDna` uses `seed.primary` directly as `colors.primary` (the exact
|
|
64
|
+
hex). Variants derived via relative OKLCH lightness: `primaryLight` =
|
|
65
|
+
L+15%, `primaryDark` = L-20%. Tonal palette still generated for dark mode
|
|
66
|
+
+ neutrals (rule 164).
|
|
67
|
+
|
|
68
|
+
## Related concepts
|
|
69
|
+
|
|
70
|
+
- [[@concept-token-system]]
|
|
71
|
+
- [[@concept-token-categories]]
|
|
72
|
+
- [[@concept-auto-dark-mode]]
|
|
73
|
+
- [[@action-update-tokens]] — runtime DNA changes
|
|
74
|
+
- [[@concept-cli-tokens-inspect]] — `mythik tokens` CLI
|
|
75
|
+
|
|
76
|
+
## Sources (raw)
|
|
77
|
+
|
|
78
|
+
- `docs/consumer/ai-context.md § Deep Design Token System → DNA Seed`
|
|
79
|
+
- `docs/consumer/reference-doc.md § DNA Seeds`
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-editor-commit
|
|
3
|
+
title: editorCommit action
|
|
4
|
+
kind: action
|
|
5
|
+
sources: [docs/consumer/ai-context-runtime-semantics.md, docs/consumer/reference-doc.md]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# editorCommit action
|
|
9
|
+
|
|
10
|
+
`editorCommit` applies atomic tracked-path edits through an editor session and pushes one undo entry.
|
|
11
|
+
|
|
12
|
+
Use it when an edit should be recoverable:
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"action": "editorCommit",
|
|
17
|
+
"params": {
|
|
18
|
+
"session": "floor-layout",
|
|
19
|
+
"label": "Move item",
|
|
20
|
+
"changes": [
|
|
21
|
+
{
|
|
22
|
+
"path": "/layout/items",
|
|
23
|
+
"value": {
|
|
24
|
+
"$array": "replace",
|
|
25
|
+
"source": { "$state": "/layout/items" },
|
|
26
|
+
"where": { "field": "id", "eq": { "$state": "/ui/spatialItemChange/itemId" } },
|
|
27
|
+
"value": { "$state": "/ui/spatialItemChange/nextItem" }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
No-op commits do not push history. Dirty state is computed against the saved snapshot, not guessed from the last action.
|
|
36
|
+
|
|
37
|
+
Related: [[@concept-editor-sessions]], [[@concept-spatial-map-editor]].
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-editor-save
|
|
3
|
+
title: editorSave action
|
|
4
|
+
kind: action
|
|
5
|
+
sources: [docs/consumer/ai-context-runtime-semantics.md, docs/consumer/reference-doc.md]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# editorSave action
|
|
9
|
+
|
|
10
|
+
`editorSave` is the recommended save action for editor sessions.
|
|
11
|
+
|
|
12
|
+
It captures the in-flight tracked-path snapshot, persists that snapshot through the host fetcher, and marks only that sent snapshot as saved after success. If the user edits while save is in flight, the current document remains dirty.
|
|
13
|
+
|
|
14
|
+
Save failures never mark the session clean. Status, error, and attempt metadata live under `/ui/editorSessions/<id>`.
|
|
15
|
+
|
|
16
|
+
Do not hand-compose `transaction` plus `editorMarkSaved` for normal editor save flows. `editorMarkSaved` is a low-level escape hatch.
|
|
17
|
+
|
|
18
|
+
Related: [[@concept-editor-sessions]], [[@concept-navigation-dirty-guard]].
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-editor-sessions
|
|
3
|
+
title: Editor sessions
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context-runtime-semantics.md, docs/consumer/reference-doc.md]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Editor sessions
|
|
9
|
+
|
|
10
|
+
Editor sessions provide document-style editing over tracked state paths.
|
|
11
|
+
|
|
12
|
+
They manage:
|
|
13
|
+
|
|
14
|
+
- undo and redo,
|
|
15
|
+
- dirty tracking,
|
|
16
|
+
- discard to saved snapshot,
|
|
17
|
+
- validation metadata,
|
|
18
|
+
- save status and save errors,
|
|
19
|
+
- integration with navigation dirty guards.
|
|
20
|
+
|
|
21
|
+
Use `editorCommit` to group one or more tracked-path changes into a semantic editor operation. The action lazily resolves `changes[].value` at dispatch time, so it composes with spatial edit contexts such as `/ui/spatialItemChange/nextItem` and `/ui/spatialZoneChange/nextZone`.
|
|
22
|
+
|
|
23
|
+
Related: [[@concept-editor-commit]], [[@concept-editor-save]], [[@concept-navigation-dirty-guard]].
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-element-children-slot
|
|
3
|
+
title: `"$children"` slot in custom element render trees
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context-custom-elements.md#elementrendernode]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# `"$children"` slot in custom element render trees
|
|
9
|
+
|
|
10
|
+
Authors mark slot positions for consumer children with the **string
|
|
11
|
+
literal** `"$children"` in `render.children` (or any nested
|
|
12
|
+
`children` array).
|
|
13
|
+
|
|
14
|
+
## Syntax
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
"render": {
|
|
18
|
+
"type": "stack",
|
|
19
|
+
"children": [
|
|
20
|
+
{ "type": "icon", "props": { "name": "star" }, "repeat": { "count": { "$prop": "max" } } },
|
|
21
|
+
"$children"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`"$children"` is replaced with the consumer's `children` array at
|
|
27
|
+
expansion time.
|
|
28
|
+
|
|
29
|
+
## Multiple markers
|
|
30
|
+
|
|
31
|
+
Multiple markers each splice the full consumer children list. Authors can
|
|
32
|
+
position the slot anywhere in the render tree.
|
|
33
|
+
|
|
34
|
+
## Constraints / Anti-patterns
|
|
35
|
+
|
|
36
|
+
- **`"$children"` is a string literal** — write the bare string as an
|
|
37
|
+
item in `children`, NOT `{ "$children": true }`. The expression-object
|
|
38
|
+
form is silently ignored.
|
|
39
|
+
|
|
40
|
+
## Identity
|
|
41
|
+
|
|
42
|
+
Same slot semantics as spec templates ([[@concept-template-children-marker]]).
|
|
43
|
+
Consumer children retain their enclosing element IDs and render via the
|
|
44
|
+
unified dispatch.
|
|
45
|
+
|
|
46
|
+
## Related concepts
|
|
47
|
+
|
|
48
|
+
- [[@concept-element-render-node]]
|
|
49
|
+
- [[@concept-template-children-marker]] — spec-template equivalent
|
|
50
|
+
- [[@concept-custom-elements]]
|
|
51
|
+
|
|
52
|
+
## Sources (raw)
|
|
53
|
+
|
|
54
|
+
- `docs/consumer/ai-context-custom-elements.md § ElementRenderNode → "$children" slot`
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-element-definition
|
|
3
|
+
title: `ElementDefinition` shape
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context-custom-elements.md#elementdefinition-shape]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# `ElementDefinition` shape
|
|
9
|
+
|
|
10
|
+
Argument to `plugins.registerElement`.
|
|
11
|
+
|
|
12
|
+
## Shape
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"type": "rating-stars",
|
|
17
|
+
"props": {
|
|
18
|
+
"max": { "type": "number", "default": 5 },
|
|
19
|
+
"value": { "type": "number", "bindable": true },
|
|
20
|
+
"label": { "type": "string", "default": "" }
|
|
21
|
+
},
|
|
22
|
+
"variants": {
|
|
23
|
+
"compact": { "props": { "max": 3 }, "style": { "gap": 2 } },
|
|
24
|
+
"large": { "style": { "gap": 8 }, "animations": { "mount": { "recipe": "scale-in" } } }
|
|
25
|
+
},
|
|
26
|
+
"render": {
|
|
27
|
+
"type": "stack",
|
|
28
|
+
"props": { "direction": "horizontal", "gap": { "$prop": "gap" } },
|
|
29
|
+
"children": [
|
|
30
|
+
{
|
|
31
|
+
"type": "icon",
|
|
32
|
+
"props": { "name": "star" },
|
|
33
|
+
"repeat": { "count": { "$prop": "max" } },
|
|
34
|
+
"animations": { "hover": { "recipe": "lift" } }
|
|
35
|
+
},
|
|
36
|
+
{ "type": "text", "props": { "content": { "$prop": "label" } } }
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Fields
|
|
43
|
+
|
|
44
|
+
| Field | Type | Required | Description |
|
|
45
|
+
|---|---|---|---|
|
|
46
|
+
| `type` | string | yes | Public type name consumers use in specs |
|
|
47
|
+
| `props` | `Record<name, PropDefinition>` | no | Declared accepted props |
|
|
48
|
+
| `variants` | `Record<name, ElementVariantSpec>` | no | Author-shipped variants |
|
|
49
|
+
| `render` | `ElementRenderNode` | yes | Render tree built from primitives (and nested custom elements + templates) |
|
|
50
|
+
|
|
51
|
+
## Related concepts
|
|
52
|
+
|
|
53
|
+
- [[@concept-element-prop-definition]] — `PropDefinition` fields
|
|
54
|
+
- [[@concept-element-render-node]] — render tree contract
|
|
55
|
+
- [[@concept-element-variants]] — `ElementVariantSpec`
|
|
56
|
+
- [[@concept-custom-elements]]
|
|
57
|
+
|
|
58
|
+
## Sources (raw)
|
|
59
|
+
|
|
60
|
+
- `docs/consumer/ai-context-custom-elements.md § ElementDefinition Shape`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: concept-element-key
|
|
3
|
+
title: Element `key` — forced remount
|
|
4
|
+
kind: concept
|
|
5
|
+
sources: [docs/consumer/ai-context.md#rules, docs/consumer/reference-doc.md#element-properties]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Element `key` — forced remount
|
|
9
|
+
|
|
10
|
+
`Element.key` is a dynamic React key. When the resolved value changes, React
|
|
11
|
+
unmounts and remounts the element, re-triggering mount animations and
|
|
12
|
+
resetting any internal state. Use `key` whenever you need to force-restart
|
|
13
|
+
visual transitions on a state change (e.g., re-animate a preview after the
|
|
14
|
+
user applies new settings).
|
|
15
|
+
|
|
16
|
+
## Shape / Signature
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{ "type": "...", "key": "<expression>", "props": { ... } }
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The expression supports `$template`, `$state`, and other expressions that
|
|
23
|
+
resolve to a string.
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
|
|
27
|
+
Re-animate a preview when DNA tokens are applied:
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"type": "box",
|
|
31
|
+
"key": { "$template": "preview-${/internal/tokenVersion}" },
|
|
32
|
+
"animations": { "mount": { "recipe": "fade-up" } },
|
|
33
|
+
"children": ["preview-content"]
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Each time `/internal/tokenVersion` changes, the box remounts and
|
|
38
|
+
`mount: fade-up` re-fires.
|
|
39
|
+
|
|
40
|
+
## Constraints / Anti-patterns
|
|
41
|
+
|
|
42
|
+
- Use sparingly — every `key` change is a real unmount/remount. Internal
|
|
43
|
+
state (form fields inside, scroll position) is lost.
|
|
44
|
+
- Prefer `animations.stateChange` (see
|
|
45
|
+
[[@concept-state-change-animation]]) when you only want to react to a
|
|
46
|
+
state change, not full remount.
|
|
47
|
+
|
|
48
|
+
## Related concepts
|
|
49
|
+
|
|
50
|
+
- [[@concept-animations-engine]] — `animations.mount` recipes
|
|
51
|
+
- [[@concept-state-change-animation]] — softer alternative for state-driven motion
|
|
52
|
+
|
|
53
|
+
## Sources (raw)
|
|
54
|
+
|
|
55
|
+
- `docs/consumer/ai-context.md § Rules → rule 45`
|
|
56
|
+
- `docs/consumer/reference-doc.md § Element Properties (key row)` + rule 107
|