@arkitektio/bsx 0.0.0-stage → 1.0.1
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/README.md +36 -2
- package/dist/bsx/analyze.d.ts +30 -0
- package/dist/bsx/analyze.d.ts.map +1 -0
- package/dist/bsx/analyze.js +47 -0
- package/dist/bsx/analyze.js.map +1 -0
- package/dist/bsx/expr.d.ts +116 -0
- package/dist/bsx/expr.d.ts.map +1 -0
- package/dist/bsx/expr.js +476 -0
- package/dist/bsx/expr.js.map +1 -0
- package/dist/bsx/index.d.ts +9 -0
- package/dist/bsx/index.d.ts.map +1 -0
- package/dist/bsx/index.js +9 -0
- package/dist/bsx/index.js.map +1 -0
- package/dist/bsx/infer.d.ts +77 -0
- package/dist/bsx/infer.d.ts.map +1 -0
- package/dist/bsx/infer.js +279 -0
- package/dist/bsx/infer.js.map +1 -0
- package/dist/bsx/language.d.ts +106 -0
- package/dist/bsx/language.d.ts.map +1 -0
- package/dist/bsx/language.js +717 -0
- package/dist/bsx/language.js.map +1 -0
- package/dist/bsx/parse.d.ts +77 -0
- package/dist/bsx/parse.d.ts.map +1 -0
- package/dist/bsx/parse.js +801 -0
- package/dist/bsx/parse.js.map +1 -0
- package/dist/bsx/partial.d.ts +37 -0
- package/dist/bsx/partial.d.ts.map +1 -0
- package/dist/bsx/partial.js +184 -0
- package/dist/bsx/partial.js.map +1 -0
- package/dist/bsx/print.d.ts +21 -0
- package/dist/bsx/print.d.ts.map +1 -0
- package/dist/bsx/print.js +407 -0
- package/dist/bsx/print.js.map +1 -0
- package/dist/bsx/references.d.ts +155 -0
- package/dist/bsx/references.d.ts.map +1 -0
- package/dist/bsx/references.js +971 -0
- package/dist/bsx/references.js.map +1 -0
- package/dist/bsx/source.d.ts +34 -0
- package/dist/bsx/source.d.ts.map +1 -0
- package/dist/bsx/source.js +53 -0
- package/dist/bsx/source.js.map +1 -0
- package/dist/cache/keyedStore.d.ts +44 -0
- package/dist/cache/keyedStore.d.ts.map +1 -0
- package/dist/cache/keyedStore.js +84 -0
- package/dist/cache/keyedStore.js.map +1 -0
- package/dist/editor/BsxEditor.d.ts +19 -0
- package/dist/editor/BsxEditor.d.ts.map +1 -0
- package/dist/editor/BsxEditor.js +214 -0
- package/dist/editor/BsxEditor.js.map +1 -0
- package/dist/editor.d.ts +2 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +3 -0
- package/dist/editor.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/logo/CachedBlokLogo.d.ts +38 -0
- package/dist/logo/CachedBlokLogo.d.ts.map +1 -0
- package/dist/logo/CachedBlokLogo.js +84 -0
- package/dist/logo/CachedBlokLogo.js.map +1 -0
- package/dist/logo/SourceLogo.d.ts +8 -0
- package/dist/logo/SourceLogo.d.ts.map +1 -0
- package/dist/logo/SourceLogo.js +40 -0
- package/dist/logo/SourceLogo.js.map +1 -0
- package/dist/logo/actionLogoSource.d.ts +18 -0
- package/dist/logo/actionLogoSource.d.ts.map +1 -0
- package/dist/logo/actionLogoSource.js +20 -0
- package/dist/logo/actionLogoSource.js.map +1 -0
- package/dist/logo/demo.d.ts +8 -0
- package/dist/logo/demo.d.ts.map +1 -0
- package/dist/logo/demo.js +20 -0
- package/dist/logo/demo.js.map +1 -0
- package/dist/logo/logoCache.d.ts +44 -0
- package/dist/logo/logoCache.d.ts.map +1 -0
- package/dist/logo/logoCache.js +121 -0
- package/dist/logo/logoCache.js.map +1 -0
- package/dist/platform.d.ts +83 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.js +52 -0
- package/dist/platform.js.map +1 -0
- package/dist/preview/CachedBlokPreview.d.ts +49 -0
- package/dist/preview/CachedBlokPreview.d.ts.map +1 -0
- package/dist/preview/CachedBlokPreview.js +200 -0
- package/dist/preview/CachedBlokPreview.js.map +1 -0
- package/dist/preview/previewCache.d.ts +18 -0
- package/dist/preview/previewCache.d.ts.map +1 -0
- package/dist/preview/previewCache.js +50 -0
- package/dist/preview/previewCache.js.map +1 -0
- package/dist/preview/queue.d.ts +17 -0
- package/dist/preview/queue.d.ts.map +1 -0
- package/dist/preview/queue.js +67 -0
- package/dist/preview/queue.js.map +1 -0
- package/dist/preview/snapshot.d.ts +40 -0
- package/dist/preview/snapshot.d.ts.map +1 -0
- package/dist/preview/snapshot.js +211 -0
- package/dist/preview/snapshot.js.map +1 -0
- package/dist/preview/snapshotMode.d.ts +31 -0
- package/dist/preview/snapshotMode.d.ts.map +1 -0
- package/dist/preview/snapshotMode.js +19 -0
- package/dist/preview/snapshotMode.js.map +1 -0
- package/dist/renderer/BlokComponentHost.d.ts +46 -0
- package/dist/renderer/BlokComponentHost.d.ts.map +1 -0
- package/dist/renderer/BlokComponentHost.js +83 -0
- package/dist/renderer/BlokComponentHost.js.map +1 -0
- package/dist/renderer/BlokDebugState.d.ts +7 -0
- package/dist/renderer/BlokDebugState.d.ts.map +1 -0
- package/dist/renderer/BlokDebugState.js +19 -0
- package/dist/renderer/BlokDebugState.js.map +1 -0
- package/dist/renderer/BlokRenderer.d.ts +57 -0
- package/dist/renderer/BlokRenderer.d.ts.map +1 -0
- package/dist/renderer/BlokRenderer.js +136 -0
- package/dist/renderer/BlokRenderer.js.map +1 -0
- package/dist/renderer/assets.d.ts +85 -0
- package/dist/renderer/assets.d.ts.map +1 -0
- package/dist/renderer/assets.js +99 -0
- package/dist/renderer/assets.js.map +1 -0
- package/dist/renderer/baseCatalog.d.ts +12 -0
- package/dist/renderer/baseCatalog.d.ts.map +1 -0
- package/dist/renderer/baseCatalog.js +13 -0
- package/dist/renderer/baseCatalog.js.map +1 -0
- package/dist/renderer/bloks/control.d.ts +25 -0
- package/dist/renderer/bloks/control.d.ts.map +1 -0
- package/dist/renderer/bloks/control.js +294 -0
- package/dist/renderer/bloks/control.js.map +1 -0
- package/dist/renderer/bloks/data.d.ts +28 -0
- package/dist/renderer/bloks/data.d.ts.map +1 -0
- package/dist/renderer/bloks/data.js +409 -0
- package/dist/renderer/bloks/data.js.map +1 -0
- package/dist/renderer/bloks/feedback.d.ts +9 -0
- package/dist/renderer/bloks/feedback.d.ts.map +1 -0
- package/dist/renderer/bloks/feedback.js +128 -0
- package/dist/renderer/bloks/feedback.js.map +1 -0
- package/dist/renderer/bloks/forms.d.ts +43 -0
- package/dist/renderer/bloks/forms.d.ts.map +1 -0
- package/dist/renderer/bloks/forms.js +777 -0
- package/dist/renderer/bloks/forms.js.map +1 -0
- package/dist/renderer/bloks/html.d.ts +10 -0
- package/dist/renderer/bloks/html.d.ts.map +1 -0
- package/dist/renderer/bloks/html.js +99 -0
- package/dist/renderer/bloks/html.js.map +1 -0
- package/dist/renderer/bloks/icons.d.ts +263 -0
- package/dist/renderer/bloks/icons.d.ts.map +1 -0
- package/dist/renderer/bloks/icons.js +173 -0
- package/dist/renderer/bloks/icons.js.map +1 -0
- package/dist/renderer/bloks/index.d.ts +19 -0
- package/dist/renderer/bloks/index.d.ts.map +1 -0
- package/dist/renderer/bloks/index.js +30 -0
- package/dist/renderer/bloks/index.js.map +1 -0
- package/dist/renderer/bloks/inspector/Inspector.d.ts +2 -0
- package/dist/renderer/bloks/inspector/Inspector.d.ts.map +1 -0
- package/dist/renderer/bloks/inspector/Inspector.js +14 -0
- package/dist/renderer/bloks/inspector/Inspector.js.map +1 -0
- package/dist/renderer/bloks/layout.d.ts +16 -0
- package/dist/renderer/bloks/layout.d.ts.map +1 -0
- package/dist/renderer/bloks/layout.js +345 -0
- package/dist/renderer/bloks/layout.js.map +1 -0
- package/dist/renderer/bloks/logo/index.d.ts +26 -0
- package/dist/renderer/bloks/logo/index.d.ts.map +1 -0
- package/dist/renderer/bloks/logo/index.js +361 -0
- package/dist/renderer/bloks/logo/index.js.map +1 -0
- package/dist/renderer/bloks/logo/logo.fixture.json +323 -0
- package/dist/renderer/bloks/navigation.d.ts +29 -0
- package/dist/renderer/bloks/navigation.d.ts.map +1 -0
- package/dist/renderer/bloks/navigation.js +421 -0
- package/dist/renderer/bloks/navigation.js.map +1 -0
- package/dist/renderer/bloks/overlays.d.ts +56 -0
- package/dist/renderer/bloks/overlays.d.ts.map +1 -0
- package/dist/renderer/bloks/overlays.js +391 -0
- package/dist/renderer/bloks/overlays.js.map +1 -0
- package/dist/renderer/bloks/run/components.d.ts +5 -0
- package/dist/renderer/bloks/run/components.d.ts.map +1 -0
- package/dist/renderer/bloks/run/components.js +121 -0
- package/dist/renderer/bloks/run/components.js.map +1 -0
- package/dist/renderer/bloks/run/host.d.ts +38 -0
- package/dist/renderer/bloks/run/host.d.ts.map +1 -0
- package/dist/renderer/bloks/run/host.js +21 -0
- package/dist/renderer/bloks/run/host.js.map +1 -0
- package/dist/renderer/bloks/run/index.d.ts +4 -0
- package/dist/renderer/bloks/run/index.d.ts.map +1 -0
- package/dist/renderer/bloks/run/index.js +4 -0
- package/dist/renderer/bloks/run/index.js.map +1 -0
- package/dist/renderer/bloks/run/math.d.ts +50 -0
- package/dist/renderer/bloks/run/math.d.ts.map +1 -0
- package/dist/renderer/bloks/run/math.js +79 -0
- package/dist/renderer/bloks/run/math.js.map +1 -0
- package/dist/renderer/bloks/scene/Model.d.ts +3 -0
- package/dist/renderer/bloks/scene/Model.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/Model.js +367 -0
- package/dist/renderer/bloks/scene/Model.js.map +1 -0
- package/dist/renderer/bloks/scene/Scene.d.ts +46 -0
- package/dist/renderer/bloks/scene/Scene.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/Scene.js +467 -0
- package/dist/renderer/bloks/scene/Scene.js.map +1 -0
- package/dist/renderer/bloks/scene/Transform.d.ts +2 -0
- package/dist/renderer/bloks/scene/Transform.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/Transform.js +83 -0
- package/dist/renderer/bloks/scene/Transform.js.map +1 -0
- package/dist/renderer/bloks/scene/bindings.d.ts +9 -0
- package/dist/renderer/bloks/scene/bindings.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/bindings.js +387 -0
- package/dist/renderer/bloks/scene/bindings.js.map +1 -0
- package/dist/renderer/bloks/scene/colour.d.ts +23 -0
- package/dist/renderer/bloks/scene/colour.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/colour.js +45 -0
- package/dist/renderer/bloks/scene/colour.js.map +1 -0
- package/dist/renderer/bloks/scene/context.d.ts +115 -0
- package/dist/renderer/bloks/scene/context.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/context.js +120 -0
- package/dist/renderer/bloks/scene/context.js.map +1 -0
- package/dist/renderer/bloks/scene/host.d.ts +36 -0
- package/dist/renderer/bloks/scene/host.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/host.js +41 -0
- package/dist/renderer/bloks/scene/host.js.map +1 -0
- package/dist/renderer/bloks/scene/index.d.ts +10 -0
- package/dist/renderer/bloks/scene/index.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/index.js +30 -0
- package/dist/renderer/bloks/scene/index.js.map +1 -0
- package/dist/renderer/bloks/scene/interaction.d.ts +3 -0
- package/dist/renderer/bloks/scene/interaction.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/interaction.js +166 -0
- package/dist/renderer/bloks/scene/interaction.js.map +1 -0
- package/dist/renderer/bloks/scene/loadModel.d.ts +35 -0
- package/dist/renderer/bloks/scene/loadModel.d.ts.map +1 -0
- package/dist/renderer/bloks/scene/loadModel.js +106 -0
- package/dist/renderer/bloks/scene/loadModel.js.map +1 -0
- package/dist/renderer/bloks/scene/scene.fixture.json +203 -0
- package/dist/renderer/bloks/scene/scope.fixture.glb +0 -0
- package/dist/renderer/bloks/shared/index.d.ts +6 -0
- package/dist/renderer/bloks/shared/index.d.ts.map +1 -0
- package/dist/renderer/bloks/shared/index.js +6 -0
- package/dist/renderer/bloks/shared/index.js.map +1 -0
- package/dist/renderer/bloks/shared/props.d.ts +72 -0
- package/dist/renderer/bloks/shared/props.d.ts.map +1 -0
- package/dist/renderer/bloks/shared/props.js +152 -0
- package/dist/renderer/bloks/shared/props.js.map +1 -0
- package/dist/renderer/bloks/shared/render.d.ts +20 -0
- package/dist/renderer/bloks/shared/render.d.ts.map +1 -0
- package/dist/renderer/bloks/shared/render.js +42 -0
- package/dist/renderer/bloks/shared/render.js.map +1 -0
- package/dist/renderer/bloks/shared/schemas.d.ts +226 -0
- package/dist/renderer/bloks/shared/schemas.d.ts.map +1 -0
- package/dist/renderer/bloks/shared/schemas.js +174 -0
- package/dist/renderer/bloks/shared/schemas.js.map +1 -0
- package/dist/renderer/bloks/shared/state.d.ts +40 -0
- package/dist/renderer/bloks/shared/state.d.ts.map +1 -0
- package/dist/renderer/bloks/shared/state.js +49 -0
- package/dist/renderer/bloks/shared/state.js.map +1 -0
- package/dist/renderer/bloks/shared/throttle.d.ts +17 -0
- package/dist/renderer/bloks/shared/throttle.d.ts.map +1 -0
- package/dist/renderer/bloks/shared/throttle.js +38 -0
- package/dist/renderer/bloks/shared/throttle.js.map +1 -0
- package/dist/renderer/bloks/testing.d.ts +29 -0
- package/dist/renderer/bloks/testing.d.ts.map +1 -0
- package/dist/renderer/bloks/testing.js +32 -0
- package/dist/renderer/bloks/testing.js.map +1 -0
- package/dist/renderer/bloks/toast.d.ts +32 -0
- package/dist/renderer/bloks/toast.d.ts.map +1 -0
- package/dist/renderer/bloks/toast.js +89 -0
- package/dist/renderer/bloks/toast.js.map +1 -0
- package/dist/renderer/bloks/typography.d.ts +25 -0
- package/dist/renderer/bloks/typography.d.ts.map +1 -0
- package/dist/renderer/bloks/typography.js +188 -0
- package/dist/renderer/bloks/typography.js.map +1 -0
- package/dist/renderer/catalog.d.ts +42 -0
- package/dist/renderer/catalog.d.ts.map +1 -0
- package/dist/renderer/catalog.js +83 -0
- package/dist/renderer/catalog.js.map +1 -0
- package/dist/renderer/declarations.d.ts +102 -0
- package/dist/renderer/declarations.d.ts.map +1 -0
- package/dist/renderer/declarations.js +159 -0
- package/dist/renderer/declarations.js.map +1 -0
- package/dist/renderer/functions/index.d.ts +3 -0
- package/dist/renderer/functions/index.d.ts.map +1 -0
- package/dist/renderer/functions/index.js +4 -0
- package/dist/renderer/functions/index.js.map +1 -0
- package/dist/renderer/functions/v2/handler.d.ts +9 -0
- package/dist/renderer/functions/v2/handler.d.ts.map +1 -0
- package/dist/renderer/functions/v2/handler.js +9 -0
- package/dist/renderer/functions/v2/handler.js.map +1 -0
- package/dist/renderer/functions/v2/index.d.ts +41 -0
- package/dist/renderer/functions/v2/index.d.ts.map +1 -0
- package/dist/renderer/functions/v2/index.js +602 -0
- package/dist/renderer/functions/v2/index.js.map +1 -0
- package/dist/renderer/modules.d.ts +21 -0
- package/dist/renderer/modules.d.ts.map +1 -0
- package/dist/renderer/modules.js +41 -0
- package/dist/renderer/modules.js.map +1 -0
- package/dist/renderer/persist.d.ts +121 -0
- package/dist/renderer/persist.d.ts.map +1 -0
- package/dist/renderer/persist.js +201 -0
- package/dist/renderer/persist.js.map +1 -0
- package/dist/renderer/runtime/checks.d.ts +13 -0
- package/dist/renderer/runtime/checks.d.ts.map +1 -0
- package/dist/renderer/runtime/checks.js +132 -0
- package/dist/renderer/runtime/checks.js.map +1 -0
- package/dist/renderer/runtime/components.d.ts +118 -0
- package/dist/renderer/runtime/components.d.ts.map +1 -0
- package/dist/renderer/runtime/components.js +158 -0
- package/dist/renderer/runtime/components.js.map +1 -0
- package/dist/renderer/runtime/context.d.ts +43 -0
- package/dist/renderer/runtime/context.d.ts.map +1 -0
- package/dist/renderer/runtime/context.js +286 -0
- package/dist/renderer/runtime/context.js.map +1 -0
- package/dist/renderer/runtime/functions.d.ts +36 -0
- package/dist/renderer/runtime/functions.d.ts.map +1 -0
- package/dist/renderer/runtime/functions.js +37 -0
- package/dist/renderer/runtime/functions.js.map +1 -0
- package/dist/renderer/runtime/hooks.d.ts +138 -0
- package/dist/renderer/runtime/hooks.d.ts.map +1 -0
- package/dist/renderer/runtime/hooks.js +535 -0
- package/dist/renderer/runtime/hooks.js.map +1 -0
- package/dist/renderer/runtime/index.d.ts +21 -0
- package/dist/renderer/runtime/index.d.ts.map +1 -0
- package/dist/renderer/runtime/index.js +26 -0
- package/dist/renderer/runtime/index.js.map +1 -0
- package/dist/renderer/runtime/nodeState.d.ts +34 -0
- package/dist/renderer/runtime/nodeState.d.ts.map +1 -0
- package/dist/renderer/runtime/nodeState.js +13 -0
- package/dist/renderer/runtime/nodeState.js.map +1 -0
- package/dist/renderer/runtime/normalize.d.ts +21 -0
- package/dist/renderer/runtime/normalize.d.ts.map +1 -0
- package/dist/renderer/runtime/normalize.js +107 -0
- package/dist/renderer/runtime/normalize.js.map +1 -0
- package/dist/renderer/runtime/port.d.ts +24 -0
- package/dist/renderer/runtime/port.d.ts.map +1 -0
- package/dist/renderer/runtime/port.js +5 -0
- package/dist/renderer/runtime/port.js.map +1 -0
- package/dist/renderer/runtime/preflight.d.ts +20 -0
- package/dist/renderer/runtime/preflight.d.ts.map +1 -0
- package/dist/renderer/runtime/preflight.js +195 -0
- package/dist/renderer/runtime/preflight.js.map +1 -0
- package/dist/renderer/runtime/reads.d.ts +101 -0
- package/dist/renderer/runtime/reads.d.ts.map +1 -0
- package/dist/renderer/runtime/reads.js +284 -0
- package/dist/renderer/runtime/reads.js.map +1 -0
- package/dist/renderer/runtime/resolution.d.ts +71 -0
- package/dist/renderer/runtime/resolution.d.ts.map +1 -0
- package/dist/renderer/runtime/resolution.js +403 -0
- package/dist/renderer/runtime/resolution.js.map +1 -0
- package/dist/renderer/runtime/resource.d.ts +71 -0
- package/dist/renderer/runtime/resource.d.ts.map +1 -0
- package/dist/renderer/runtime/resource.js +138 -0
- package/dist/renderer/runtime/resource.js.map +1 -0
- package/dist/renderer/runtime/schemas.d.ts +119 -0
- package/dist/renderer/runtime/schemas.d.ts.map +1 -0
- package/dist/renderer/runtime/schemas.js +139 -0
- package/dist/renderer/runtime/schemas.js.map +1 -0
- package/dist/renderer/runtime/scope.d.ts +41 -0
- package/dist/renderer/runtime/scope.d.ts.map +1 -0
- package/dist/renderer/runtime/scope.js +95 -0
- package/dist/renderer/runtime/scope.js.map +1 -0
- package/dist/renderer/runtime/status.d.ts +35 -0
- package/dist/renderer/runtime/status.d.ts.map +1 -0
- package/dist/renderer/runtime/status.js +23 -0
- package/dist/renderer/runtime/status.js.map +1 -0
- package/dist/renderer/runtime/task.d.ts +63 -0
- package/dist/renderer/runtime/task.d.ts.map +1 -0
- package/dist/renderer/runtime/task.js +99 -0
- package/dist/renderer/runtime/task.js.map +1 -0
- package/dist/renderer/runtime/tree.d.ts +33 -0
- package/dist/renderer/runtime/tree.d.ts.map +1 -0
- package/dist/renderer/runtime/tree.js +59 -0
- package/dist/renderer/runtime/tree.js.map +1 -0
- package/dist/renderer/runtime/types.d.ts +247 -0
- package/dist/renderer/runtime/types.d.ts.map +1 -0
- package/dist/renderer/runtime/types.js +4 -0
- package/dist/renderer/runtime/types.js.map +1 -0
- package/dist/renderer/runtime/utils.d.ts +13 -0
- package/dist/renderer/runtime/utils.d.ts.map +1 -0
- package/dist/renderer/runtime/utils.js +48 -0
- package/dist/renderer/runtime/utils.js.map +1 -0
- package/dist/renderer/runtime/viewer.d.ts +17 -0
- package/dist/renderer/runtime/viewer.d.ts.map +1 -0
- package/dist/renderer/runtime/viewer.js +15 -0
- package/dist/renderer/runtime/viewer.js.map +1 -0
- package/dist/runtime.d.ts +9 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +10 -0
- package/dist/runtime.js.map +1 -0
- package/dist/scene.d.ts +3 -0
- package/dist/scene.d.ts.map +1 -0
- package/dist/scene.js +4 -0
- package/dist/scene.js.map +1 -0
- package/dist/spec/bsx_v2.json +11380 -0
- package/dist/spec/catalogs/base@2.json +210 -0
- package/dist/spec/catalogs/base@2.json.js +210 -0
- package/dist/spec/catalogs/html@1.json +308 -0
- package/dist/spec/catalogs/html@1.json.js +308 -0
- package/dist/spec/catalogs/logo@1.json +1673 -0
- package/dist/spec/catalogs/logo@1.json.js +1673 -0
- package/dist/spec/catalogs/scene@1.json +806 -0
- package/dist/spec/catalogs/scene@1.json.js +806 -0
- package/dist/spec/catalogs/structure@1.json +185 -0
- package/dist/spec/catalogs/structure@1.json.js +185 -0
- package/dist/spec/catalogs/ui@1.json +3696 -0
- package/dist/spec/catalogs/ui@1.json.js +3696 -0
- package/dist/spec/catalogs.d.ts +101 -0
- package/dist/spec/catalogs.d.ts.map +1 -0
- package/dist/spec/catalogs.js +131 -0
- package/dist/spec/catalogs.js.map +1 -0
- package/dist/spec/locals.d.ts +14 -0
- package/dist/spec/locals.d.ts.map +1 -0
- package/dist/spec/locals.js +29 -0
- package/dist/spec/locals.js.map +1 -0
- package/dist/spec/modules/orkestrator.json +2755 -0
- package/dist/spec/modules/orkestrator.json.js +2755 -0
- package/dist/spec/vocabulary.d.ts +209 -0
- package/dist/spec/vocabulary.d.ts.map +1 -0
- package/dist/spec/vocabulary.js +307 -0
- package/dist/spec/vocabulary.js.map +1 -0
- package/dist/spec/vocabulary.json +411 -0
- package/dist/spec/vocabulary.json.js +411 -0
- package/dist/tailwind/defaultTheme.d.ts +3 -0
- package/dist/tailwind/defaultTheme.d.ts.map +1 -0
- package/dist/tailwind/defaultTheme.js +4 -0
- package/dist/tailwind/defaultTheme.js.map +1 -0
- package/dist/tailwind/runtimeTailwind.d.ts +14 -0
- package/dist/tailwind/runtimeTailwind.d.ts.map +1 -0
- package/dist/tailwind/runtimeTailwind.js +124 -0
- package/dist/tailwind/runtimeTailwind.js.map +1 -0
- package/dist/tailwind/theme.css +137 -0
- package/dist/tailwind/useBlokTailwind.d.ts +5 -0
- package/dist/tailwind/useBlokTailwind.d.ts.map +1 -0
- package/dist/tailwind/useBlokTailwind.js +74 -0
- package/dist/tailwind/useBlokTailwind.js.map +1 -0
- package/dist/tailwind.d.ts +3 -0
- package/dist/tailwind.d.ts.map +1 -0
- package/dist/tailwind.js +4 -0
- package/dist/tailwind.js.map +1 -0
- package/dist/vendor/core/data/scene/camera/navigateButtons.d.ts +15 -0
- package/dist/vendor/core/data/scene/camera/navigateButtons.d.ts.map +1 -0
- package/dist/vendor/core/data/scene/camera/navigateButtons.js +15 -0
- package/dist/vendor/core/data/scene/camera/navigateButtons.js.map +1 -0
- package/dist/vendor/core/dialogs/PageDialogHost.d.ts +5 -0
- package/dist/vendor/core/dialogs/PageDialogHost.d.ts.map +1 -0
- package/dist/vendor/core/dialogs/PageDialogHost.js +32 -0
- package/dist/vendor/core/dialogs/PageDialogHost.js.map +1 -0
- package/dist/vendor/core/model/affine.d.ts +44 -0
- package/dist/vendor/core/model/affine.d.ts.map +1 -0
- package/dist/vendor/core/model/affine.js +94 -0
- package/dist/vendor/core/model/affine.js.map +1 -0
- package/dist/vendor/core/model/glb.d.ts +75 -0
- package/dist/vendor/core/model/glb.d.ts.map +1 -0
- package/dist/vendor/core/model/glb.js +478 -0
- package/dist/vendor/core/model/glb.js.map +1 -0
- package/dist/vendor/core/model/joints.d.ts +26 -0
- package/dist/vendor/core/model/joints.d.ts.map +1 -0
- package/dist/vendor/core/model/joints.js +44 -0
- package/dist/vendor/core/model/joints.js.map +1 -0
- package/dist/vendor/core/model/motion.d.ts +65 -0
- package/dist/vendor/core/model/motion.d.ts.map +1 -0
- package/dist/vendor/core/model/motion.js +89 -0
- package/dist/vendor/core/model/motion.js.map +1 -0
- package/dist/vendor/core/model/testing.d.ts +7 -0
- package/dist/vendor/core/model/testing.d.ts.map +1 -0
- package/dist/vendor/core/model/testing.js +54 -0
- package/dist/vendor/core/model/testing.js.map +1 -0
- package/dist/vendor/core/model/units.d.ts +21 -0
- package/dist/vendor/core/model/units.d.ts.map +1 -0
- package/dist/vendor/core/model/units.js +107 -0
- package/dist/vendor/core/model/units.js.map +1 -0
- package/dist/vendor/core/model/writers.d.ts +24 -0
- package/dist/vendor/core/model/writers.d.ts.map +1 -0
- package/dist/vendor/core/model/writers.js +45 -0
- package/dist/vendor/core/model/writers.js.map +1 -0
- package/dist/vendor/core/ui/AsyncBoundary.d.ts +14 -0
- package/dist/vendor/core/ui/AsyncBoundary.d.ts.map +1 -0
- package/dist/vendor/core/ui/AsyncBoundary.js +42 -0
- package/dist/vendor/core/ui/AsyncBoundary.js.map +1 -0
- package/dist/vendor/core/ui/ChromeSurface.d.ts +16 -0
- package/dist/vendor/core/ui/ChromeSurface.d.ts.map +1 -0
- package/dist/vendor/core/ui/ChromeSurface.js +44 -0
- package/dist/vendor/core/ui/ChromeSurface.js.map +1 -0
- package/dist/vendor/core/ui/accordion.d.ts +8 -0
- package/dist/vendor/core/ui/accordion.d.ts.map +1 -0
- package/dist/vendor/core/ui/accordion.js +19 -0
- package/dist/vendor/core/ui/accordion.js.map +1 -0
- package/dist/vendor/core/ui/actionPlan.d.ts +54 -0
- package/dist/vendor/core/ui/actionPlan.d.ts.map +1 -0
- package/dist/vendor/core/ui/actionPlan.js +101 -0
- package/dist/vendor/core/ui/actionPlan.js.map +1 -0
- package/dist/vendor/core/ui/alert-dialog.d.ts +19 -0
- package/dist/vendor/core/ui/alert-dialog.d.ts.map +1 -0
- package/dist/vendor/core/ui/alert-dialog.js +50 -0
- package/dist/vendor/core/ui/alert-dialog.js.map +1 -0
- package/dist/vendor/core/ui/alert.d.ts +11 -0
- package/dist/vendor/core/ui/alert.d.ts.map +1 -0
- package/dist/vendor/core/ui/alert.js +29 -0
- package/dist/vendor/core/ui/alert.js.map +1 -0
- package/dist/vendor/core/ui/aspect-ratio.d.ts +4 -0
- package/dist/vendor/core/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/vendor/core/ui/aspect-ratio.js +8 -0
- package/dist/vendor/core/ui/aspect-ratio.js.map +1 -0
- package/dist/vendor/core/ui/avatar.d.ts +12 -0
- package/dist/vendor/core/ui/avatar.d.ts.map +1 -0
- package/dist/vendor/core/ui/avatar.js +24 -0
- package/dist/vendor/core/ui/avatar.js.map +1 -0
- package/dist/vendor/core/ui/badge.d.ts +10 -0
- package/dist/vendor/core/ui/badge.d.ts.map +1 -0
- package/dist/vendor/core/ui/badge.js +26 -0
- package/dist/vendor/core/ui/badge.js.map +1 -0
- package/dist/vendor/core/ui/bento-grid.d.ts +107 -0
- package/dist/vendor/core/ui/bento-grid.d.ts.map +1 -0
- package/dist/vendor/core/ui/bento-grid.js +631 -0
- package/dist/vendor/core/ui/bento-grid.js.map +1 -0
- package/dist/vendor/core/ui/breadcrumb.d.ts +12 -0
- package/dist/vendor/core/ui/breadcrumb.d.ts.map +1 -0
- package/dist/vendor/core/ui/breadcrumb.js +29 -0
- package/dist/vendor/core/ui/breadcrumb.js.map +1 -0
- package/dist/vendor/core/ui/button-group.d.ts +12 -0
- package/dist/vendor/core/ui/button-group.d.ts.map +1 -0
- package/dist/vendor/core/ui/button-group.js +28 -0
- package/dist/vendor/core/ui/button-group.js.map +1 -0
- package/dist/vendor/core/ui/button.d.ts +24 -0
- package/dist/vendor/core/ui/button.d.ts.map +1 -0
- package/dist/vendor/core/ui/button.js +39 -0
- package/dist/vendor/core/ui/button.js.map +1 -0
- package/dist/vendor/core/ui/calendar.d.ts +9 -0
- package/dist/vendor/core/ui/calendar.d.ts.map +1 -0
- package/dist/vendor/core/ui/calendar.js +76 -0
- package/dist/vendor/core/ui/calendar.js.map +1 -0
- package/dist/vendor/core/ui/card.d.ts +12 -0
- package/dist/vendor/core/ui/card.d.ts.map +1 -0
- package/dist/vendor/core/ui/card.js +26 -0
- package/dist/vendor/core/ui/card.js.map +1 -0
- package/dist/vendor/core/ui/carousel.d.ts +29 -0
- package/dist/vendor/core/ui/carousel.d.ts.map +1 -0
- package/dist/vendor/core/ui/carousel.js +92 -0
- package/dist/vendor/core/ui/carousel.js.map +1 -0
- package/dist/vendor/core/ui/chart.d.ts +41 -0
- package/dist/vendor/core/ui/chart.d.ts.map +1 -0
- package/dist/vendor/core/ui/chart.js +132 -0
- package/dist/vendor/core/ui/chart.js.map +1 -0
- package/dist/vendor/core/ui/checkbox.d.ts +5 -0
- package/dist/vendor/core/ui/checkbox.d.ts.map +1 -0
- package/dist/vendor/core/ui/checkbox.js +10 -0
- package/dist/vendor/core/ui/checkbox.js.map +1 -0
- package/dist/vendor/core/ui/collapsible.d.ts +6 -0
- package/dist/vendor/core/ui/collapsible.d.ts.map +1 -0
- package/dist/vendor/core/ui/collapsible.js +15 -0
- package/dist/vendor/core/ui/collapsible.js.map +1 -0
- package/dist/vendor/core/ui/context-menu.d.ts +28 -0
- package/dist/vendor/core/ui/context-menu.d.ts.map +1 -0
- package/dist/vendor/core/ui/context-menu.js +55 -0
- package/dist/vendor/core/ui/context-menu.js.map +1 -0
- package/dist/vendor/core/ui/dialog.d.ts +20 -0
- package/dist/vendor/core/ui/dialog.d.ts.map +1 -0
- package/dist/vendor/core/ui/dialog.js +44 -0
- package/dist/vendor/core/ui/dialog.js.map +1 -0
- package/dist/vendor/core/ui/drawer.d.ts +14 -0
- package/dist/vendor/core/ui/drawer.d.ts.map +1 -0
- package/dist/vendor/core/ui/drawer.js +38 -0
- package/dist/vendor/core/ui/drawer.js.map +1 -0
- package/dist/vendor/core/ui/dropdown-menu.d.ts +26 -0
- package/dist/vendor/core/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/vendor/core/ui/dropdown-menu.js +56 -0
- package/dist/vendor/core/ui/dropdown-menu.js.map +1 -0
- package/dist/vendor/core/ui/empty.d.ts +12 -0
- package/dist/vendor/core/ui/empty.d.ts.map +1 -0
- package/dist/vendor/core/ui/empty.js +34 -0
- package/dist/vendor/core/ui/empty.js.map +1 -0
- package/dist/vendor/core/ui/field.d.ts +25 -0
- package/dist/vendor/core/ui/field.d.ts.map +1 -0
- package/dist/vendor/core/ui/field.js +68 -0
- package/dist/vendor/core/ui/field.js.map +1 -0
- package/dist/vendor/core/ui/hover-card.d.ts +7 -0
- package/dist/vendor/core/ui/hover-card.d.ts.map +1 -0
- package/dist/vendor/core/ui/hover-card.js +19 -0
- package/dist/vendor/core/ui/hover-card.js.map +1 -0
- package/dist/vendor/core/ui/image.d.ts +10 -0
- package/dist/vendor/core/ui/image.d.ts.map +1 -0
- package/dist/vendor/core/ui/image.js +49 -0
- package/dist/vendor/core/ui/image.js.map +1 -0
- package/dist/vendor/core/ui/input-group.d.ts +17 -0
- package/dist/vendor/core/ui/input-group.d.ts.map +1 -0
- package/dist/vendor/core/ui/input-group.js +59 -0
- package/dist/vendor/core/ui/input-group.js.map +1 -0
- package/dist/vendor/core/ui/input-otp.d.ts +12 -0
- package/dist/vendor/core/ui/input-otp.d.ts.map +1 -0
- package/dist/vendor/core/ui/input-otp.js +21 -0
- package/dist/vendor/core/ui/input-otp.js.map +1 -0
- package/dist/vendor/core/ui/input.d.ts +4 -0
- package/dist/vendor/core/ui/input.d.ts.map +1 -0
- package/dist/vendor/core/ui/input.js +8 -0
- package/dist/vendor/core/ui/input.js.map +1 -0
- package/dist/vendor/core/ui/item.d.ts +24 -0
- package/dist/vendor/core/ui/item.d.ts.map +1 -0
- package/dist/vendor/core/ui/item.js +69 -0
- package/dist/vendor/core/ui/item.js.map +1 -0
- package/dist/vendor/core/ui/kbd.d.ts +4 -0
- package/dist/vendor/core/ui/kbd.d.ts.map +1 -0
- package/dist/vendor/core/ui/kbd.js +10 -0
- package/dist/vendor/core/ui/kbd.js.map +1 -0
- package/dist/vendor/core/ui/label.d.ts +5 -0
- package/dist/vendor/core/ui/label.d.ts.map +1 -0
- package/dist/vendor/core/ui/label.js +10 -0
- package/dist/vendor/core/ui/label.js.map +1 -0
- package/dist/vendor/core/ui/markdown.d.ts +19 -0
- package/dist/vendor/core/ui/markdown.d.ts.map +1 -0
- package/dist/vendor/core/ui/markdown.js +236 -0
- package/dist/vendor/core/ui/markdown.js.map +1 -0
- package/dist/vendor/core/ui/menubar.d.ts +27 -0
- package/dist/vendor/core/ui/menubar.d.ts.map +1 -0
- package/dist/vendor/core/ui/menubar.js +55 -0
- package/dist/vendor/core/ui/menubar.js.map +1 -0
- package/dist/vendor/core/ui/pagination.d.ts +14 -0
- package/dist/vendor/core/ui/pagination.d.ts.map +1 -0
- package/dist/vendor/core/ui/pagination.js +28 -0
- package/dist/vendor/core/ui/pagination.js.map +1 -0
- package/dist/vendor/core/ui/popover.d.ts +11 -0
- package/dist/vendor/core/ui/popover.d.ts.map +1 -0
- package/dist/vendor/core/ui/popover.js +31 -0
- package/dist/vendor/core/ui/popover.js.map +1 -0
- package/dist/vendor/core/ui/progress.d.ts +5 -0
- package/dist/vendor/core/ui/progress.d.ts.map +1 -0
- package/dist/vendor/core/ui/progress.js +9 -0
- package/dist/vendor/core/ui/progress.js.map +1 -0
- package/dist/vendor/core/ui/radio-group.d.ts +6 -0
- package/dist/vendor/core/ui/radio-group.d.ts.map +1 -0
- package/dist/vendor/core/ui/radio-group.js +14 -0
- package/dist/vendor/core/ui/radio-group.js.map +1 -0
- package/dist/vendor/core/ui/resizable.d.ts +9 -0
- package/dist/vendor/core/ui/resizable.d.ts.map +1 -0
- package/dist/vendor/core/ui/resizable.js +15 -0
- package/dist/vendor/core/ui/resizable.js.map +1 -0
- package/dist/vendor/core/ui/scroll-area.d.ts +6 -0
- package/dist/vendor/core/ui/scroll-area.d.ts.map +1 -0
- package/dist/vendor/core/ui/scroll-area.js +13 -0
- package/dist/vendor/core/ui/scroll-area.js.map +1 -0
- package/dist/vendor/core/ui/select.d.ts +16 -0
- package/dist/vendor/core/ui/select.d.ts.map +1 -0
- package/dist/vendor/core/ui/select.js +39 -0
- package/dist/vendor/core/ui/select.js.map +1 -0
- package/dist/vendor/core/ui/separator.d.ts +5 -0
- package/dist/vendor/core/ui/separator.d.ts.map +1 -0
- package/dist/vendor/core/ui/separator.js +10 -0
- package/dist/vendor/core/ui/separator.js.map +1 -0
- package/dist/vendor/core/ui/sheet.d.ts +17 -0
- package/dist/vendor/core/ui/sheet.d.ts.map +1 -0
- package/dist/vendor/core/ui/sheet.js +45 -0
- package/dist/vendor/core/ui/sheet.js.map +1 -0
- package/dist/vendor/core/ui/skeleton.d.ts +3 -0
- package/dist/vendor/core/ui/skeleton.d.ts.map +1 -0
- package/dist/vendor/core/ui/skeleton.js +7 -0
- package/dist/vendor/core/ui/skeleton.js.map +1 -0
- package/dist/vendor/core/ui/slider.d.ts +5 -0
- package/dist/vendor/core/ui/slider.d.ts.map +1 -0
- package/dist/vendor/core/ui/slider.js +14 -0
- package/dist/vendor/core/ui/slider.js.map +1 -0
- package/dist/vendor/core/ui/spinner.d.ts +3 -0
- package/dist/vendor/core/ui/spinner.d.ts.map +1 -0
- package/dist/vendor/core/ui/spinner.js +8 -0
- package/dist/vendor/core/ui/spinner.js.map +1 -0
- package/dist/vendor/core/ui/switch.d.ts +7 -0
- package/dist/vendor/core/ui/switch.d.ts.map +1 -0
- package/dist/vendor/core/ui/switch.js +9 -0
- package/dist/vendor/core/ui/switch.js.map +1 -0
- package/dist/vendor/core/ui/table.d.ts +11 -0
- package/dist/vendor/core/ui/table.d.ts.map +1 -0
- package/dist/vendor/core/ui/table.js +30 -0
- package/dist/vendor/core/ui/table.js.map +1 -0
- package/dist/vendor/core/ui/tabs.d.ts +12 -0
- package/dist/vendor/core/ui/tabs.d.ts.map +1 -0
- package/dist/vendor/core/ui/tabs.js +30 -0
- package/dist/vendor/core/ui/tabs.js.map +1 -0
- package/dist/vendor/core/ui/textarea.d.ts +4 -0
- package/dist/vendor/core/ui/textarea.d.ts.map +1 -0
- package/dist/vendor/core/ui/textarea.js +8 -0
- package/dist/vendor/core/ui/textarea.js.map +1 -0
- package/dist/vendor/core/ui/toggle-group.d.ts +11 -0
- package/dist/vendor/core/ui/toggle-group.d.ts.map +1 -0
- package/dist/vendor/core/ui/toggle-group.js +24 -0
- package/dist/vendor/core/ui/toggle-group.js.map +1 -0
- package/dist/vendor/core/ui/toggle.d.ts +12 -0
- package/dist/vendor/core/ui/toggle.d.ts.map +1 -0
- package/dist/vendor/core/ui/toggle.js +28 -0
- package/dist/vendor/core/ui/toggle.js.map +1 -0
- package/dist/vendor/core/ui/tooltip.d.ts +8 -0
- package/dist/vendor/core/ui/tooltip.d.ts.map +1 -0
- package/dist/vendor/core/ui/tooltip.js +21 -0
- package/dist/vendor/core/ui/tooltip.js.map +1 -0
- package/dist/vendor/core/ui/trigger-child.d.ts +17 -0
- package/dist/vendor/core/ui/trigger-child.d.ts.map +1 -0
- package/dist/vendor/core/ui/trigger-child.js +31 -0
- package/dist/vendor/core/ui/trigger-child.js.map +1 -0
- package/dist/vendor/core/util/hooks/useLatestRef.d.ts +10 -0
- package/dist/vendor/core/util/hooks/useLatestRef.d.ts.map +1 -0
- package/dist/vendor/core/util/hooks/useLatestRef.js +17 -0
- package/dist/vendor/core/util/hooks/useLatestRef.js.map +1 -0
- package/dist/vendor/core/util/utils.d.ts +8 -0
- package/dist/vendor/core/util/utils.d.ts.map +1 -0
- package/dist/vendor/core/util/utils.js +17 -0
- package/dist/vendor/core/util/utils.js.map +1 -0
- package/dist/web.d.ts +13 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +14 -0
- package/dist/web.js.map +1 -0
- package/package.json +188 -4
- package/src/bsx/analyze.ts +65 -0
- package/src/bsx/bsx.test.ts +111 -0
- package/src/bsx/expr.ts +541 -0
- package/src/bsx/index.ts +8 -0
- package/src/bsx/infer.test.ts +149 -0
- package/src/bsx/infer.ts +308 -0
- package/src/bsx/language.test.ts +204 -0
- package/src/bsx/language.ts +750 -0
- package/src/bsx/parse.ts +848 -0
- package/src/bsx/partial.test.ts +88 -0
- package/src/bsx/partial.ts +193 -0
- package/src/bsx/print.ts +412 -0
- package/src/bsx/references.test.ts +161 -0
- package/src/bsx/references.ts +1155 -0
- package/src/bsx/source.ts +70 -0
- package/src/cache/keyedStore.ts +122 -0
- package/src/editor/BsxEditor.tsx +252 -0
- package/src/editor.ts +2 -0
- package/src/env.d.ts +5 -0
- package/src/index.ts +6 -0
- package/src/logo/CachedBlokLogo.tsx +179 -0
- package/src/logo/SourceLogo.tsx +52 -0
- package/src/logo/actionLogoSource.ts +24 -0
- package/src/logo/demo.ts +21 -0
- package/src/logo/logoCache.test.ts +75 -0
- package/src/logo/logoCache.ts +130 -0
- package/src/platform.ts +121 -0
- package/src/preview/CachedBlokPreview.test.tsx +63 -0
- package/src/preview/CachedBlokPreview.tsx +336 -0
- package/src/preview/previewCache.test.ts +28 -0
- package/src/preview/previewCache.ts +64 -0
- package/src/preview/queue.test.ts +40 -0
- package/src/preview/queue.ts +75 -0
- package/src/preview/snapshot.test.ts +86 -0
- package/src/preview/snapshot.ts +226 -0
- package/src/preview/snapshotMode.test.tsx +45 -0
- package/src/preview/snapshotMode.tsx +45 -0
- package/src/renderer/BlokComponentHost.tsx +151 -0
- package/src/renderer/BlokDebugState.tsx +50 -0
- package/src/renderer/BlokRenderer.test.tsx +124 -0
- package/src/renderer/BlokRenderer.tsx +370 -0
- package/src/renderer/addBlokComponents.test.tsx +62 -0
- package/src/renderer/assets.test.tsx +123 -0
- package/src/renderer/assets.tsx +174 -0
- package/src/renderer/baseCatalog.ts +14 -0
- package/src/renderer/bloks/components.test.tsx +415 -0
- package/src/renderer/bloks/control.tsx +412 -0
- package/src/renderer/bloks/data.tsx +766 -0
- package/src/renderer/bloks/events.test.tsx +139 -0
- package/src/renderer/bloks/feedback.tsx +205 -0
- package/src/renderer/bloks/flow.test.tsx +201 -0
- package/src/renderer/bloks/forms.tsx +1195 -0
- package/src/renderer/bloks/html.tsx +171 -0
- package/src/renderer/bloks/icons.tsx +308 -0
- package/src/renderer/bloks/index.ts +42 -0
- package/src/renderer/bloks/inspector/Inspector.tsx +19 -0
- package/src/renderer/bloks/layout.tsx +538 -0
- package/src/renderer/bloks/logo/index.tsx +529 -0
- package/src/renderer/bloks/logo/logo.fixture.json +323 -0
- package/src/renderer/bloks/logo/logo.test.tsx +192 -0
- package/src/renderer/bloks/navigation.tsx +699 -0
- package/src/renderer/bloks/overlays.tsx +869 -0
- package/src/renderer/bloks/primitives.test.tsx +307 -0
- package/src/renderer/bloks/run/components.tsx +212 -0
- package/src/renderer/bloks/run/host.tsx +63 -0
- package/src/renderer/bloks/run/index.ts +3 -0
- package/src/renderer/bloks/run/math.test.ts +81 -0
- package/src/renderer/bloks/run/math.ts +112 -0
- package/src/renderer/bloks/run/run.test.tsx +164 -0
- package/src/renderer/bloks/scene/Model.tsx +571 -0
- package/src/renderer/bloks/scene/Scene.tsx +882 -0
- package/src/renderer/bloks/scene/Transform.tsx +116 -0
- package/src/renderer/bloks/scene/animate.test.tsx +81 -0
- package/src/renderer/bloks/scene/bindings.tsx +432 -0
- package/src/renderer/bloks/scene/colour.test.ts +47 -0
- package/src/renderer/bloks/scene/colour.ts +56 -0
- package/src/renderer/bloks/scene/context.tsx +228 -0
- package/src/renderer/bloks/scene/embedded.test.tsx +68 -0
- package/src/renderer/bloks/scene/host.tsx +84 -0
- package/src/renderer/bloks/scene/index.ts +32 -0
- package/src/renderer/bloks/scene/interaction.tsx +212 -0
- package/src/renderer/bloks/scene/loadModel.test.ts +69 -0
- package/src/renderer/bloks/scene/loadModel.ts +135 -0
- package/src/renderer/bloks/scene/scene.fixture.json +203 -0
- package/src/renderer/bloks/scene/scene.test.ts +35 -0
- package/src/renderer/bloks/scene/scope.fixture.glb +0 -0
- package/src/renderer/bloks/scene/transform.test.ts +26 -0
- package/src/renderer/bloks/shared/index.ts +5 -0
- package/src/renderer/bloks/shared/props.ts +224 -0
- package/src/renderer/bloks/shared/render.tsx +62 -0
- package/src/renderer/bloks/shared/schemas.ts +215 -0
- package/src/renderer/bloks/shared/state.ts +96 -0
- package/src/renderer/bloks/shared/throttle.test.ts +50 -0
- package/src/renderer/bloks/shared/throttle.ts +53 -0
- package/src/renderer/bloks/testing.tsx +73 -0
- package/src/renderer/bloks/time.test.tsx +78 -0
- package/src/renderer/bloks/toast.test.tsx +82 -0
- package/src/renderer/bloks/toast.tsx +132 -0
- package/src/renderer/bloks/typography.tsx +265 -0
- package/src/renderer/bloks/unavailable.test.tsx +52 -0
- package/src/renderer/catalog.tsx +97 -0
- package/src/renderer/declarations.test.ts +72 -0
- package/src/renderer/declarations.ts +285 -0
- package/src/renderer/functions/index.ts +3 -0
- package/src/renderer/functions/v2/functions.test.ts +256 -0
- package/src/renderer/functions/v2/handler.ts +11 -0
- package/src/renderer/functions/v2/index.ts +638 -0
- package/src/renderer/modules.ts +54 -0
- package/src/renderer/persist.test.ts +182 -0
- package/src/renderer/persist.ts +320 -0
- package/src/renderer/persistComponent.test.tsx +68 -0
- package/src/renderer/runtime/checks.ts +177 -0
- package/src/renderer/runtime/components.tsx +311 -0
- package/src/renderer/runtime/context.test.ts +137 -0
- package/src/renderer/runtime/context.tsx +369 -0
- package/src/renderer/runtime/functions.ts +69 -0
- package/src/renderer/runtime/hooks.ts +764 -0
- package/src/renderer/runtime/index.ts +31 -0
- package/src/renderer/runtime/nodeState.ts +43 -0
- package/src/renderer/runtime/normalize.test.ts +154 -0
- package/src/renderer/runtime/normalize.ts +121 -0
- package/src/renderer/runtime/port.tsx +24 -0
- package/src/renderer/runtime/preflight.test.ts +127 -0
- package/src/renderer/runtime/preflight.ts +264 -0
- package/src/renderer/runtime/reads.test.tsx +278 -0
- package/src/renderer/runtime/reads.tsx +448 -0
- package/src/renderer/runtime/resolution.test.ts +467 -0
- package/src/renderer/runtime/resolution.ts +531 -0
- package/src/renderer/runtime/resource.ts +196 -0
- package/src/renderer/runtime/schemas.ts +181 -0
- package/src/renderer/runtime/scope.tsx +123 -0
- package/src/renderer/runtime/status.ts +54 -0
- package/src/renderer/runtime/task.test.ts +131 -0
- package/src/renderer/runtime/task.ts +149 -0
- package/src/renderer/runtime/tree.tsx +138 -0
- package/src/renderer/runtime/types.ts +285 -0
- package/src/renderer/runtime/utils.test.ts +68 -0
- package/src/renderer/runtime/utils.ts +67 -0
- package/src/renderer/runtime/viewer.tsx +21 -0
- package/src/renderer/unbound.test.tsx +75 -0
- package/src/runtime.ts +9 -0
- package/src/scene.ts +3 -0
- package/src/spec/bsx_v2.json +11380 -0
- package/src/spec/catalogs/base@2.json +210 -0
- package/src/spec/catalogs/html@1.json +308 -0
- package/src/spec/catalogs/logo@1.json +1673 -0
- package/src/spec/catalogs/scene@1.json +806 -0
- package/src/spec/catalogs/structure@1.json +185 -0
- package/src/spec/catalogs/ui@1.json +3696 -0
- package/src/spec/catalogs.ts +210 -0
- package/src/spec/locals.ts +35 -0
- package/src/spec/modules/orkestrator.json +2755 -0
- package/src/spec/spec.test.ts +87 -0
- package/src/spec/vocabulary.json +411 -0
- package/src/spec/vocabulary.ts +514 -0
- package/src/tailwind/defaultTheme.ts +3 -0
- package/src/tailwind/runtimeTailwind.test.ts +86 -0
- package/src/tailwind/runtimeTailwind.ts +137 -0
- package/src/tailwind/theme.css +137 -0
- package/src/tailwind/useBlokTailwind.test.tsx +52 -0
- package/src/tailwind/useBlokTailwind.ts +84 -0
- package/src/tailwind.ts +3 -0
- package/src/vendor/core/data/scene/camera/navigateButtons.ts +15 -0
- package/src/vendor/core/dialogs/PageDialogHost.tsx +42 -0
- package/src/vendor/core/model/affine.ts +117 -0
- package/src/vendor/core/model/glb.ts +580 -0
- package/src/vendor/core/model/joints.ts +65 -0
- package/src/vendor/core/model/model.test.ts +241 -0
- package/src/vendor/core/model/motion.ts +134 -0
- package/src/vendor/core/model/testing.ts +57 -0
- package/src/vendor/core/model/units.ts +112 -0
- package/src/vendor/core/model/writers.ts +62 -0
- package/src/vendor/core/ui/AsyncBoundary.tsx +96 -0
- package/src/vendor/core/ui/ChromeSurface.tsx +51 -0
- package/src/vendor/core/ui/accordion.tsx +79 -0
- package/src/vendor/core/ui/actionPlan.ts +150 -0
- package/src/vendor/core/ui/alert-dialog.tsx +201 -0
- package/src/vendor/core/ui/alert.tsx +72 -0
- package/src/vendor/core/ui/aspect-ratio.tsx +11 -0
- package/src/vendor/core/ui/avatar.tsx +104 -0
- package/src/vendor/core/ui/badge.tsx +45 -0
- package/src/vendor/core/ui/bento-grid.tsx +818 -0
- package/src/vendor/core/ui/breadcrumb.tsx +119 -0
- package/src/vendor/core/ui/button-group.tsx +83 -0
- package/src/vendor/core/ui/button.tsx +82 -0
- package/src/vendor/core/ui/calendar.tsx +214 -0
- package/src/vendor/core/ui/card.tsx +94 -0
- package/src/vendor/core/ui/carousel.tsx +240 -0
- package/src/vendor/core/ui/chart.tsx +354 -0
- package/src/vendor/core/ui/checkbox.tsx +31 -0
- package/src/vendor/core/ui/collapsible.tsx +36 -0
- package/src/vendor/core/ui/context-menu.tsx +239 -0
- package/src/vendor/core/ui/dialog.tsx +165 -0
- package/src/vendor/core/ui/drawer.tsx +119 -0
- package/src/vendor/core/ui/dropdown-menu.tsx +250 -0
- package/src/vendor/core/ui/empty.tsx +99 -0
- package/src/vendor/core/ui/field.tsx +220 -0
- package/src/vendor/core/ui/hover-card.tsx +53 -0
- package/src/vendor/core/ui/image.tsx +70 -0
- package/src/vendor/core/ui/input-group.tsx +144 -0
- package/src/vendor/core/ui/input-otp.tsx +85 -0
- package/src/vendor/core/ui/input.tsx +19 -0
- package/src/vendor/core/ui/item.tsx +187 -0
- package/src/vendor/core/ui/kbd.tsx +26 -0
- package/src/vendor/core/ui/label.tsx +24 -0
- package/src/vendor/core/ui/markdown.tsx +398 -0
- package/src/vendor/core/ui/menubar.tsx +248 -0
- package/src/vendor/core/ui/pagination.tsx +132 -0
- package/src/vendor/core/ui/popover.tsx +96 -0
- package/src/vendor/core/ui/progress.tsx +29 -0
- package/src/vendor/core/ui/radio-group.tsx +45 -0
- package/src/vendor/core/ui/resizable.tsx +51 -0
- package/src/vendor/core/ui/scroll-area.tsx +55 -0
- package/src/vendor/core/ui/select.tsx +185 -0
- package/src/vendor/core/ui/separator.tsx +28 -0
- package/src/vendor/core/ui/sheet.tsx +139 -0
- package/src/vendor/core/ui/skeleton.tsx +13 -0
- package/src/vendor/core/ui/slider.tsx +57 -0
- package/src/vendor/core/ui/spinner.tsx +10 -0
- package/src/vendor/core/ui/switch.tsx +31 -0
- package/src/vendor/core/ui/table.tsx +95 -0
- package/src/vendor/core/ui/tabs.tsx +88 -0
- package/src/vendor/core/ui/textarea.tsx +18 -0
- package/src/vendor/core/ui/toggle-group.tsx +87 -0
- package/src/vendor/core/ui/toggle.tsx +46 -0
- package/src/vendor/core/ui/tooltip.tsx +64 -0
- package/src/vendor/core/ui/trigger-child.ts +35 -0
- package/src/vendor/core/util/hooks/useLatestRef.ts +17 -0
- package/src/vendor/core/util/utils.ts +18 -0
- package/src/web.ts +13 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import {describe, expect, it} from 'vitest';
|
|
2
|
+
import corpus from './bsx_v2.json';
|
|
3
|
+
import {defaultBlokView} from './catalogs';
|
|
4
|
+
import {argFits, bindFits, bindKindsOf, diagnosticMessage, isExplicitId, loadVocabulary} from './vocabulary';
|
|
5
|
+
|
|
6
|
+
describe('the synced vocabulary', () => {
|
|
7
|
+
it('is version 2, with the one reserved list', () => {
|
|
8
|
+
const vocabulary = loadVocabulary();
|
|
9
|
+
expect(vocabulary.vocab).toBe(2);
|
|
10
|
+
expect(vocabulary.reserved.has('deps')).toBe(true);
|
|
11
|
+
expect(vocabulary.reserved.has('mutations')).toBe(true);
|
|
12
|
+
expect(vocabulary.functions.get('str.template')?.keys).toEqual(['template', 'values']);
|
|
13
|
+
expect(vocabulary.functions.get('logic.choose')?.requiredKeys).toEqual(['cond', 'then']);
|
|
14
|
+
expect(vocabulary.functions.get('ui.copy')?.effect).toBe(true);
|
|
15
|
+
expect(vocabulary.kinds.action_logo.roots).toEqual(['task']);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('has then, never now, and the query effects (revision 2)', () => {
|
|
19
|
+
const vocabulary = loadVocabulary();
|
|
20
|
+
expect(vocabulary.dataRoots).toHaveProperty('then');
|
|
21
|
+
expect(vocabulary.dataRoots).not.toHaveProperty('now');
|
|
22
|
+
expect(vocabulary.reserved.has('then')).toBe(true);
|
|
23
|
+
expect(vocabulary.reserved.has('query')).toBe(true);
|
|
24
|
+
expect(vocabulary.reserved.has('now')).toBe(false);
|
|
25
|
+
expect(vocabulary.kinds.agent.roots).toContain('then');
|
|
26
|
+
expect(vocabulary.kinds.action_logo.roots).not.toContain('then');
|
|
27
|
+
expect(vocabulary.functions.get('query.refetch')).toMatchObject({effect: true, keys: ['query']});
|
|
28
|
+
expect(vocabulary.functions.get('query.fetch_more')).toMatchObject({effect: true, keys: ['query', 'variables'], requiredKeys: ['query']});
|
|
29
|
+
expect(vocabulary.functions.get('time.diff')?.keys).toEqual(['start', 'end']);
|
|
30
|
+
expect(vocabulary.functions.has('fmt.duration')).toBe(true);
|
|
31
|
+
for (const gone of ['time.since', 'time.until', 'fmt.relative_time']) expect(vocabulary.functions.has(gone)).toBe(false);
|
|
32
|
+
expect(vocabulary.callKinds).not.toContain('query_refetch');
|
|
33
|
+
expect(vocabulary.records.query.fields.map(field => field.key)).toContain('fetching_more');
|
|
34
|
+
expect(Object.keys(vocabulary.theme.dataAttributes).sort()).toEqual(['busy', 'stale']);
|
|
35
|
+
expect(vocabulary.catalogs).toEqual({ui: 1, scene: 1, logo: 1, structure: 1, html: 1});
|
|
36
|
+
expect(vocabulary.baseVersion).toBe(2);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('says what a bind writes and what an argument takes', () => {
|
|
40
|
+
const {locals} = loadVocabulary();
|
|
41
|
+
expect(locals.fields).toEqual(['persist']);
|
|
42
|
+
expect(bindKindsOf('FLOAT')).toEqual(['FLOAT', 'INT', 'QUANTITY']);
|
|
43
|
+
expect(bindKindsOf('ANY')).toBeNull();
|
|
44
|
+
expect(bindFits('STRING', 'ENUM')).toBe(true);
|
|
45
|
+
expect(bindFits('BOOL', 'INT')).toBe(false);
|
|
46
|
+
expect(bindFits('ANY', 'MODEL')).toBe(true);
|
|
47
|
+
expect(argFits({kind: 'INT'}, {kind: 'FLOAT'})).toBe(true);
|
|
48
|
+
expect(argFits({kind: 'FLOAT'}, {kind: 'INT'})).toBe(false);
|
|
49
|
+
// No action port is ANY; an ANY local is checked against nothing.
|
|
50
|
+
expect(argFits({kind: 'STRING'}, {kind: 'INT'})).toBe(false);
|
|
51
|
+
expect(argFits({kind: 'ANY'}, {kind: 'INT'})).toBe(true);
|
|
52
|
+
expect(bindFits('BOOL', 'ANY')).toBe(true);
|
|
53
|
+
expect(argFits({kind: 'STRUCTURE', identifier: '@mikro/image'}, {kind: 'STRUCTURE', identifier: '@mikro/roi'})).toBe(false);
|
|
54
|
+
expect(argFits({kind: 'STRUCTURE', identifier: '@mikro/image'}, {kind: 'STRUCTURE', identifier: '@mikro/image'})).toBe(true);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('fills diagnostic messages like str.format', () => {
|
|
58
|
+
expect(diagnosticMessage('roots.reserved', {name: 'task'})).toBe("'task' is reserved: no local, let or into may use it.");
|
|
59
|
+
expect(diagnosticMessage('local.bind', {what: 'x'})).toContain('{name}');
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it('tells explicit ids from derived ones', () => {
|
|
63
|
+
expect(isExplicitId('ot2-monitor')).toBe(true);
|
|
64
|
+
expect(isExplicitId('Card[0]')).toBe(false);
|
|
65
|
+
expect(isExplicitId('a/b')).toBe(false);
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
describe('the catalog view', () => {
|
|
70
|
+
it("gives the corpus's text table, component for component", () => {
|
|
71
|
+
const view = defaultBlokView();
|
|
72
|
+
const table = Object.fromEntries(
|
|
73
|
+
[...view.components.values()].map(component => [
|
|
74
|
+
component.name,
|
|
75
|
+
{
|
|
76
|
+
text_prop: component.textProp,
|
|
77
|
+
context: component.context,
|
|
78
|
+
children_context: component.childrenContext,
|
|
79
|
+
inherits_context: component.inheritsContext,
|
|
80
|
+
accepts_children: component.acceptsChildren,
|
|
81
|
+
catalog: component.catalog,
|
|
82
|
+
},
|
|
83
|
+
]),
|
|
84
|
+
);
|
|
85
|
+
expect(table).toEqual(corpus.text_table);
|
|
86
|
+
});
|
|
87
|
+
});
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
{
|
|
2
|
+
"vocab": 2,
|
|
3
|
+
"description": "The blok language, version 2: what a blok may read, call and store. The spec's parser, the server (rekuest_core, takt) and the renderer (orkestrator) load this file or are generated from it. The design is the blok-vocab-v2 proposal of 2026-10-25.",
|
|
4
|
+
"roots": {
|
|
5
|
+
"data": {
|
|
6
|
+
"self": "The agent the blok belongs to: the declaring agent (agent blok), the sending agent (task blok), the executing agent (action blok). Shorthand for deps.self.",
|
|
7
|
+
"deps": "deps.<key>: an agent bound to a dependency of the blok, a custom blok or an action.",
|
|
8
|
+
"queries": "queries.<name>: a declared query's record (status, value, error, refetching, fetching_more).",
|
|
9
|
+
"subscriptions": "subscriptions.<name>: a declared subscription's record (status, value, error); value is the latest payload, or the last `keep` payloads.",
|
|
10
|
+
"args": "args.<key>: what the blok is opened on: the item for an agent or custom blok, the task's args for a task or action blok.",
|
|
11
|
+
"task": "The task this blok is about: the sending task, or the run. A task record.",
|
|
12
|
+
"event": "The payload a component hands its callback. Only inside a callback.",
|
|
13
|
+
"viewer": "{user, org, roles} of whoever is looking.",
|
|
14
|
+
"then": "The moment being viewed while time-travelling (an ISO 8601 datetime), null while live. A blok never reads the wall clock: a query passes then as an ordinary variable (variables={at: \"then\"}), <Time> measures relative time from it, and while it is set subscriptions pause (their history query, or the value at travel start, stale)."
|
|
15
|
+
},
|
|
16
|
+
"scoped": {
|
|
17
|
+
"event": "Bound only inside a callback prop.",
|
|
18
|
+
"error": "Bound only inside the <error> slot of a <suspense>: the error that made it show."
|
|
19
|
+
},
|
|
20
|
+
"functions": ["cmp", "logic", "math", "str", "list", "obj", "val", "fmt", "time", "ui", "query"],
|
|
21
|
+
"future": ["mutations"]
|
|
22
|
+
},
|
|
23
|
+
"reserved": ["self", "deps", "queries", "subscriptions", "args", "task", "event", "viewer", "then", "error", "cmp", "logic", "math", "str", "list", "obj", "val", "fmt", "time", "ui", "query", "mutations"],
|
|
24
|
+
"agent_segments": {
|
|
25
|
+
"description": "What follows an agent (self or deps.<key>): .<state>.<field> is state, .tasks.<action> the latest task of that action, .assets.<name> one of the agent's assets; deps.<key>.<action>(...) calls it.",
|
|
26
|
+
"tasks": "tasks",
|
|
27
|
+
"assets": "assets",
|
|
28
|
+
"fields": {"id": "The agent's id (a query variable: deps.robot.id).", "name": "The agent's name."},
|
|
29
|
+
"reserved_state_names": ["tasks", "assets", "id", "name"]
|
|
30
|
+
},
|
|
31
|
+
"kinds": {
|
|
32
|
+
"agent": {
|
|
33
|
+
"description": "Declared by an app for its own agent (app.blok).",
|
|
34
|
+
"roots": ["self", "args", "queries", "subscriptions", "viewer", "then"],
|
|
35
|
+
"locals": true,
|
|
36
|
+
"contexts": ["HTML", "SCENE", "LOGO"]
|
|
37
|
+
},
|
|
38
|
+
"custom": {
|
|
39
|
+
"description": "Built by a user and materialized onto agents.",
|
|
40
|
+
"roots": ["deps", "args", "queries", "subscriptions", "viewer", "then"],
|
|
41
|
+
"locals": true,
|
|
42
|
+
"contexts": ["HTML", "SCENE"]
|
|
43
|
+
},
|
|
44
|
+
"task": {
|
|
45
|
+
"description": "A task's ask or inform blok; its dependencies are the sending task's, mapped.",
|
|
46
|
+
"roots": ["self", "deps", "args", "task", "queries", "subscriptions", "viewer", "then"],
|
|
47
|
+
"locals": true,
|
|
48
|
+
"contexts": ["HTML"]
|
|
49
|
+
},
|
|
50
|
+
"action": {
|
|
51
|
+
"description": "An action's own blok, declared inline with the action (ActionBlok); its dependencies are the action's.",
|
|
52
|
+
"roots": ["self", "deps", "args", "task", "queries", "subscriptions", "viewer", "then"],
|
|
53
|
+
"locals": true,
|
|
54
|
+
"contexts": ["HTML", "SCENE", "OVERLAY"]
|
|
55
|
+
},
|
|
56
|
+
"action_logo": {
|
|
57
|
+
"description": "An action's logo, drawn against the task the viewer last ran of it (null until then).",
|
|
58
|
+
"roots": ["task"],
|
|
59
|
+
"locals": false,
|
|
60
|
+
"contexts": ["LOGO"]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"contexts": {
|
|
64
|
+
"HTML": {"text": true, "description": "Panels, dashboards and popouts."},
|
|
65
|
+
"SCENE": {"text": false, "description": "A 3D view."},
|
|
66
|
+
"OVERLAY": {"text": false, "description": "An action's blok drawn into the space that hosts a run; its children are scene components."},
|
|
67
|
+
"LOGO": {"text": false, "description": "An SVG drawing in the viewer's palette: an agent's logo, or an action's (an ACTION_LOGO blok is drawn in LOGO)."}
|
|
68
|
+
},
|
|
69
|
+
"blok_roots": {
|
|
70
|
+
"description": "A blok's root component names its context: every blok starts with one of these, and nothing else declares the context.",
|
|
71
|
+
"roots": {"Html": "HTML", "Scene": "SCENE", "Overlay": "OVERLAY", "AgentLogo": "LOGO", "ActionLogo": "ACTION_LOGO"}
|
|
72
|
+
},
|
|
73
|
+
"records": {
|
|
74
|
+
"task": {
|
|
75
|
+
"description": "One shape for task, deps.<key>.tasks.<action>, self.tasks.<action> and every into name.",
|
|
76
|
+
"fields": [
|
|
77
|
+
{"key": "id", "kind": "STRING", "nullable": true, "description": "The task's id; null before it was started."},
|
|
78
|
+
{"key": "status", "kind": "STRING", "choices": ["idle", "queued", "running", "asking", "done", "failed", "cancelled"], "description": "Lowercase."},
|
|
79
|
+
{"key": "running", "kind": "BOOL", "description": "queued, running or asking."},
|
|
80
|
+
{"key": "done", "kind": "BOOL"},
|
|
81
|
+
{"key": "failed", "kind": "BOOL"},
|
|
82
|
+
{"key": "progress", "kind": "INT", "description": "0 to 100."},
|
|
83
|
+
{"key": "message", "kind": "STRING", "nullable": true},
|
|
84
|
+
{"key": "error", "kind": "STRING", "nullable": true},
|
|
85
|
+
{"key": "args", "kind": "DICT", "description": "What it was called with, filled in by the renderer at dispatch."},
|
|
86
|
+
{"key": "ask", "kind": "DICT", "nullable": true, "children": [{"key": "question", "kind": "STRING"}, {"key": "form", "kind": "DICT"}], "description": "The open ask, or null."},
|
|
87
|
+
{"key": "answer", "kind": "DICT", "nullable": true, "description": "The values returned for the ask."},
|
|
88
|
+
{"key": "returns", "kind": "DICT", "description": "The latest yield, by return port key."}
|
|
89
|
+
],
|
|
90
|
+
"idle": {"id": null, "status": "idle", "running": false, "done": false, "failed": false, "progress": 0, "message": null, "error": null, "args": {}, "ask": null, "answer": null, "returns": {}}
|
|
91
|
+
},
|
|
92
|
+
"query": {
|
|
93
|
+
"description": "A declared query's record.",
|
|
94
|
+
"fields": [
|
|
95
|
+
{"key": "status", "kind": "STRING", "choices": ["pending", "ready", "stale", "failed"]},
|
|
96
|
+
{"key": "value", "kind": "DICT", "nullable": true, "description": "The data the query answered."},
|
|
97
|
+
{"key": "error", "kind": "STRING", "nullable": true},
|
|
98
|
+
{"key": "refetching", "kind": "BOOL", "description": "True while query.refetch runs; a refetch never suspends (stale-while-revalidate)."},
|
|
99
|
+
{"key": "fetching_more", "kind": "BOOL", "description": "True while query.fetch_more runs; the pages already shown stay."}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"subscription": {
|
|
103
|
+
"description": "A declared subscription's record. Has no refetch or fetch_more. While then is set the stream pauses: the value is its history query's at then, or the value at travel start, stale.",
|
|
104
|
+
"fields": [
|
|
105
|
+
{"key": "status", "kind": "STRING", "choices": ["pending", "ready", "stale", "failed"]},
|
|
106
|
+
{"key": "value", "kind": "ANY", "nullable": true, "description": "The latest payload, or the list of the last `keep` payloads."},
|
|
107
|
+
{"key": "error", "kind": "STRING", "nullable": true}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"viewer": {
|
|
111
|
+
"description": "Exposes nothing beyond what the viewer's own token says.",
|
|
112
|
+
"fields": [
|
|
113
|
+
{"key": "user", "kind": "DICT", "children": [{"key": "id", "kind": "STRING"}, {"key": "username", "kind": "STRING", "nullable": true}]},
|
|
114
|
+
{"key": "org", "kind": "DICT", "nullable": true, "children": [{"key": "id", "kind": "STRING"}]},
|
|
115
|
+
{"key": "roles", "kind": "LIST", "children": [{"key": "...", "kind": "STRING"}]}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"error": {
|
|
119
|
+
"description": "What <error> binds as `error`.",
|
|
120
|
+
"fields": [
|
|
121
|
+
{"key": "message", "kind": "STRING"},
|
|
122
|
+
{"key": "code", "kind": "STRING", "nullable": true}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"async": {
|
|
127
|
+
"statuses": {
|
|
128
|
+
"pending": "Not known yet (loading, connecting, first sync).",
|
|
129
|
+
"ready": "Known. It may be null, which then means known absence and nothing else.",
|
|
130
|
+
"stale": "Known, but the source stopped updating (agent offline): the last value, flagged.",
|
|
131
|
+
"failed": "Cannot be known (no access, agent gone, query error), with an error."
|
|
132
|
+
},
|
|
133
|
+
"always_ready": ["locals", "event", "let", "literals"],
|
|
134
|
+
"propagation": [
|
|
135
|
+
"If any input of an expression is pending, the result is pending; else if any failed, the result is failed; else if any is stale, the result is stale.",
|
|
136
|
+
"logic.choose and <if> read only the branch taken; logic.all and logic.any stop at the first operand that decides them.",
|
|
137
|
+
"Functions never see a pending or failed value, except those with sees_status.",
|
|
138
|
+
"Inside a <suspense> every read is its value: a pending read shows <fallback>, a failed one <error> (binding error); stale never suspends, the value renders with data-stale.",
|
|
139
|
+
"Without a boundary each component shows its own skeleton or inline error; a blok never blanks entirely.",
|
|
140
|
+
"A dependency bound to no agent (a custom blok's dependency the viewer has not bound, an optional one left out) reads as failed, its error code deps.unbound; never as ready with null. deps.<key>.tasks.<action> and deps.<key>.assets.<name> of it read failed too, and a call to it renders disabled.",
|
|
141
|
+
"Inactive <if> branches never suspend anything."
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"functions": {
|
|
145
|
+
"description": "Pure functions by namespace, snake_case. Positional arguments map onto params in order. `lazy`: arguments are read only as needed. `effect`: allowed only as a callback's one thing (ui.*, task.answer, query.*). `sees_status`: sees pending/failed instead of suspending. No function reads the wall clock. `null` says what the function does with a null argument (known absence); a missing path reads as null.",
|
|
146
|
+
"cmp.eq": {"params": [["a", "ANY"], ["b", "ANY"]], "returns": "BOOL", "description": "Deep JSON equality.", "null": "null equals only null"},
|
|
147
|
+
"cmp.ne": {"params": [["a", "ANY"], ["b", "ANY"]], "returns": "BOOL", "description": "Not deep-equal.", "null": "null equals only null"},
|
|
148
|
+
"cmp.gt": {"params": [["a", "ANY"], ["b", "ANY"]], "returns": "BOOL", "description": "a > b, numbers or strings.", "null": "false"},
|
|
149
|
+
"cmp.gte": {"params": [["a", "ANY"], ["b", "ANY"]], "returns": "BOOL", "description": "a >= b.", "null": "false"},
|
|
150
|
+
"cmp.lt": {"params": [["a", "ANY"], ["b", "ANY"]], "returns": "BOOL", "description": "a < b.", "null": "false"},
|
|
151
|
+
"cmp.lte": {"params": [["a", "ANY"], ["b", "ANY"]], "returns": "BOOL", "description": "a <= b.", "null": "false"},
|
|
152
|
+
"cmp.between": {"params": [["value", "ANY"], ["min", "ANY"], ["max", "ANY"]], "returns": "BOOL", "description": "min <= value <= max.", "null": "false"},
|
|
153
|
+
"logic.all": {"params": [["values", "LIST"]], "returns": "ANY", "lazy": true, "description": "JavaScript &&: the first falsy value, else the last value (true for none).", "null": "null is falsy"},
|
|
154
|
+
"logic.any": {"params": [["values", "LIST"]], "returns": "ANY", "lazy": true, "description": "JavaScript ||: the first truthy value, else the last value (false for none).", "null": "null is falsy"},
|
|
155
|
+
"logic.negate": {"params": [["a", "ANY"]], "returns": "BOOL", "description": "!a.", "null": "true"},
|
|
156
|
+
"logic.choose": {"params": [["cond", "ANY"], ["then", "ANY"], ["otherwise", "ANY", false]], "returns": "ANY", "lazy": true, "description": "cond ? then : otherwise; only the branch taken is read.", "null": "a null cond takes otherwise; a missing otherwise is null"},
|
|
157
|
+
"logic.coalesce": {"params": [["values", "LIST"]], "returns": "ANY", "lazy": true, "description": "The first value that is not null.", "null": "skipped; null when all are"},
|
|
158
|
+
"math.add": {"params": [["a", "FLOAT"], ["b", "FLOAT"]], "returns": "FLOAT", "null": "null"},
|
|
159
|
+
"math.sub": {"params": [["a", "FLOAT"], ["b", "FLOAT"]], "returns": "FLOAT", "null": "null"},
|
|
160
|
+
"math.mul": {"params": [["a", "FLOAT"], ["b", "FLOAT"]], "returns": "FLOAT", "null": "null"},
|
|
161
|
+
"math.div": {"params": [["a", "FLOAT"], ["b", "FLOAT"]], "returns": "FLOAT", "null": "null; division by zero is null"},
|
|
162
|
+
"math.mod": {"params": [["a", "FLOAT"], ["b", "FLOAT"]], "returns": "FLOAT", "null": "null; modulo zero is null"},
|
|
163
|
+
"math.neg": {"params": [["a", "FLOAT"]], "returns": "FLOAT", "null": "null"},
|
|
164
|
+
"math.abs": {"params": [["value", "FLOAT"]], "returns": "FLOAT", "null": "null"},
|
|
165
|
+
"math.round": {"params": [["value", "FLOAT"], ["digits", "INT", false]], "returns": "FLOAT", "description": "Half away from zero, to `digits` decimals (0).", "null": "null"},
|
|
166
|
+
"math.floor": {"params": [["value", "FLOAT"]], "returns": "FLOAT", "null": "null"},
|
|
167
|
+
"math.ceil": {"params": [["value", "FLOAT"]], "returns": "FLOAT", "null": "null"},
|
|
168
|
+
"math.clamp": {"params": [["value", "FLOAT"], ["min", "FLOAT"], ["max", "FLOAT"]], "returns": "FLOAT", "null": "null"},
|
|
169
|
+
"math.min": {"params": [["values", "LIST"]], "returns": "FLOAT", "null": "nulls are skipped; null when none is left"},
|
|
170
|
+
"math.max": {"params": [["values", "LIST"]], "returns": "FLOAT", "null": "nulls are skipped; null when none is left"},
|
|
171
|
+
"math.sum": {"params": [["values", "LIST"]], "returns": "FLOAT", "null": "nulls are skipped; 0 when none is left"},
|
|
172
|
+
"str.upper": {"params": [["value", "STRING"]], "returns": "STRING", "null": "null"},
|
|
173
|
+
"str.lower": {"params": [["value", "STRING"]], "returns": "STRING", "null": "null"},
|
|
174
|
+
"str.trim": {"params": [["value", "STRING"]], "returns": "STRING", "null": "null"},
|
|
175
|
+
"str.capitalize": {"params": [["value", "STRING"]], "returns": "STRING", "null": "null"},
|
|
176
|
+
"str.slice": {"params": [["value", "STRING"], ["start", "INT"], ["end", "INT", false]], "returns": "STRING", "null": "null"},
|
|
177
|
+
"str.truncate": {"params": [["value", "STRING"], ["length", "INT"], ["suffix", "STRING", false]], "returns": "STRING", "description": "At most `length` characters, ending in `suffix` (an ellipsis) when cut.", "null": "null"},
|
|
178
|
+
"str.replace": {"params": [["value", "STRING"], ["search", "STRING"], ["replacement", "STRING"]], "returns": "STRING", "description": "Every occurrence.", "null": "null"},
|
|
179
|
+
"str.split": {"params": [["value", "STRING"], ["separator", "STRING", false]], "returns": "LIST", "description": "Into characters when separator is left out.", "null": "[]"},
|
|
180
|
+
"str.concat": {"params": [["values", "LIST"]], "returns": "STRING", "description": "The string forms of the values, joined.", "null": "renders as an empty string"},
|
|
181
|
+
"str.template": {"params": [["template", "STRING"], ["values", "LIST"]], "returns": "STRING", "description": "Fills {0}, {1}, ... with the string forms of values; {{ and }} are literal braces. What text children with {...} desugar to.", "null": "renders as an empty string"},
|
|
182
|
+
"str.classes": {"params": [["values", "ANY"]], "returns": "STRING", "description": "clsx: a list drops falsy entries and joins the rest with spaces; an object keeps the keys whose value is truthy. What a className list or object desugars to.", "null": "dropped"},
|
|
183
|
+
"str.starts_with": {"params": [["value", "STRING"], ["prefix", "STRING"]], "returns": "BOOL", "null": "false"},
|
|
184
|
+
"str.ends_with": {"params": [["value", "STRING"], ["suffix", "STRING"]], "returns": "BOOL", "null": "false"},
|
|
185
|
+
"str.contains": {"params": [["value", "STRING"], ["search", "STRING"]], "returns": "BOOL", "null": "false"},
|
|
186
|
+
"str.matches": {"params": [["value", "STRING"], ["pattern", "STRING"]], "returns": "BOOL", "description": "A regular expression search (ECMAScript syntax).", "null": "false"},
|
|
187
|
+
"str.length": {"params": [["value", "STRING"]], "returns": "INT", "null": "0"},
|
|
188
|
+
"list.len": {"params": [["value", "LIST"]], "returns": "INT", "null": "0"},
|
|
189
|
+
"list.contains": {"params": [["value", "LIST"], ["item", "ANY"]], "returns": "BOOL", "description": "Deep equality.", "null": "false"},
|
|
190
|
+
"list.first": {"params": [["value", "LIST"]], "returns": "ANY", "null": "null"},
|
|
191
|
+
"list.last": {"params": [["value", "LIST"]], "returns": "ANY", "null": "null"},
|
|
192
|
+
"list.at": {"params": [["value", "LIST"], ["index", "INT"]], "returns": "ANY", "description": "A negative index counts from the end.", "null": "null"},
|
|
193
|
+
"list.join": {"params": [["value", "LIST"], ["separator", "STRING", false]], "returns": "STRING", "description": "Separator ', ' when left out.", "null": "empty string"},
|
|
194
|
+
"list.slice": {"params": [["value", "LIST"], ["start", "INT"], ["end", "INT", false]], "returns": "LIST", "null": "[]"},
|
|
195
|
+
"list.reverse": {"params": [["value", "LIST"]], "returns": "LIST", "null": "[]"},
|
|
196
|
+
"list.unique": {"params": [["value", "LIST"]], "returns": "LIST", "null": "[]"},
|
|
197
|
+
"list.compact": {"params": [["value", "LIST"]], "returns": "LIST", "description": "Without null entries.", "null": "[]"},
|
|
198
|
+
"list.pluck": {"params": [["value", "LIST"], ["key", "STRING"]], "returns": "LIST", "null": "[]"},
|
|
199
|
+
"list.sort": {"params": [["value", "LIST"], ["key", "STRING", false], ["descending", "BOOL", false]], "returns": "LIST", "null": "[]; null entries sort last"},
|
|
200
|
+
"list.range": {"params": [["start", "INT"], ["end", "INT"], ["step", "INT", false]], "returns": "LIST", "null": "[]"},
|
|
201
|
+
"obj.get": {"params": [["value", "DICT"], ["key", "STRING"], ["default", "ANY", false]], "returns": "ANY", "description": "A dotted key reads a nested field.", "null": "default"},
|
|
202
|
+
"obj.has": {"params": [["value", "DICT"], ["key", "STRING"]], "returns": "BOOL", "null": "false"},
|
|
203
|
+
"obj.keys": {"params": [["value", "DICT"]], "returns": "LIST", "null": "[]"},
|
|
204
|
+
"obj.values": {"params": [["value", "DICT"]], "returns": "LIST", "null": "[]"},
|
|
205
|
+
"obj.entries": {"params": [["value", "DICT"]], "returns": "LIST", "description": "[{key, value}, ...].", "null": "[]"},
|
|
206
|
+
"val.is_null": {"params": [["value", "ANY"]], "returns": "BOOL", "null": "true"},
|
|
207
|
+
"val.is_set": {"params": [["value", "ANY"]], "returns": "BOOL", "null": "false"},
|
|
208
|
+
"val.is_empty": {"params": [["value", "ANY"]], "returns": "BOOL", "description": "null, an empty string, list or object.", "null": "true"},
|
|
209
|
+
"val.type": {"params": [["value", "ANY"]], "returns": "STRING", "description": "null|bool|number|string|list|object.", "null": "'null'"},
|
|
210
|
+
"val.to_string": {"params": [["value", "ANY"]], "returns": "STRING", "null": "empty string"},
|
|
211
|
+
"val.to_number": {"params": [["value", "ANY"]], "returns": "FLOAT", "null": "null; unparseable is null"},
|
|
212
|
+
"val.to_bool": {"params": [["value", "ANY"]], "returns": "BOOL", "description": "JavaScript truthiness.", "null": "false"},
|
|
213
|
+
"val.status": {"params": [["value", "ANY"]], "returns": "STRING", "sees_status": true, "description": "pending|ready|stale|failed.", "null": "'ready'"},
|
|
214
|
+
"val.is_pending": {"params": [["value", "ANY"]], "returns": "BOOL", "sees_status": true, "null": "false"},
|
|
215
|
+
"val.is_ready": {"params": [["value", "ANY"]], "returns": "BOOL", "sees_status": true, "description": "ready or stale.", "null": "true"},
|
|
216
|
+
"fmt.number": {"params": [["value", "FLOAT"], ["digits", "INT", false]], "returns": "STRING", "description": "In the viewer's locale.", "null": "empty string"},
|
|
217
|
+
"fmt.percent": {"params": [["value", "FLOAT"], ["digits", "INT", false]], "returns": "STRING", "description": "0.42 -> 42%.", "null": "empty string"},
|
|
218
|
+
"fmt.currency": {"params": [["value", "FLOAT"], ["currency", "STRING"]], "returns": "STRING", "null": "empty string"},
|
|
219
|
+
"fmt.bytes": {"params": [["value", "FLOAT"], ["digits", "INT", false]], "returns": "STRING", "description": "1536 -> 1.5 KB.", "null": "empty string"},
|
|
220
|
+
"fmt.date": {"params": [["value", "STRING"], ["format", "STRING", false]], "returns": "STRING", "null": "empty string"},
|
|
221
|
+
"fmt.datetime": {"params": [["value", "STRING"], ["format", "STRING", false]], "returns": "STRING", "null": "empty string"},
|
|
222
|
+
"fmt.json": {"params": [["value", "ANY"], ["indent", "INT", false]], "returns": "STRING", "null": "'null'"},
|
|
223
|
+
"fmt.quantity": {"params": [["value", "ANY"], ["unit", "STRING", false]], "returns": "STRING", "description": "A quantity ({magnitude, unit} or a number in `unit`), in its unit.", "null": "empty string"},
|
|
224
|
+
"fmt.duration": {"params": [["seconds", "FLOAT"]], "returns": "STRING", "description": "90 -> 1m 30s; negative durations keep their sign.", "null": "empty string"},
|
|
225
|
+
"time.diff": {"params": [["start", "STRING"], ["end", "STRING"]], "returns": "FLOAT", "description": "Seconds from start to end (ISO 8601 datetimes); negative when end is earlier. Pure: relative time to the viewed moment is the <Time> component's.", "null": "null"},
|
|
226
|
+
"ui.copy": {"params": [["text", "ANY"]], "returns": "ANY", "effect": true, "description": "Copies text to the viewer's clipboard: the only non-task effect.", "null": "copies an empty string"},
|
|
227
|
+
"task.answer": {"params": [["values", "DICT"]], "returns": "ANY", "effect": true, "task_operation": true, "description": "Answers the open ask of `task`. Counts as a task operation.", "null": "answers with no values"},
|
|
228
|
+
"query.refetch": {"params": [["query", "STRING"]], "returns": "ANY", "effect": true, "description": "Re-reads the declared query named by the literal `query`; never suspends, queries.<name>.refetching is true meanwhile. BSX writes it queries.<name>.refetch().", "null": "refused: the query is named by a literal"},
|
|
229
|
+
"query.fetch_more": {"params": [["query", "STRING"], ["variables", "DICT", false]], "returns": "ANY", "effect": true, "description": "Reads the next page of the declared query named by the literal `query`, its variables overridden by `variables`, and appends the page's list at the query's `more` field to what is shown; queries.<name>.fetching_more is true meanwhile. BSX writes it queries.<name>.fetch_more(name: value, ...). Refused on a query without `more`.", "null": "refused: the query is named by a literal; null variables fetch with the query's own"}
|
|
230
|
+
},
|
|
231
|
+
"operators": {
|
|
232
|
+
"description": "Operators desugar to stored calls; there is no operator in the stored tree.",
|
|
233
|
+
"==": "cmp.eq", "!=": "cmp.ne", ">": "cmp.gt", ">=": "cmp.gte", "<": "cmp.lt", "<=": "cmp.lte",
|
|
234
|
+
"&&": "logic.all", "||": "logic.any", "!": "logic.negate", "?:": "logic.choose", "??": "logic.coalesce",
|
|
235
|
+
"precedence": ["?:", "??", "||", "&&", "== !=", "> >= < <=", "!"],
|
|
236
|
+
"notes": "a && b && c is one logic.all over [a, b, c] (likewise || and ??: a ?? b ?? c is one logic.coalesce over [a, b, c]); a parenthesized group stays one operand ((a ?? b) ?? c nests). ?? binds looser than || and && and may be mixed with them unparenthesized (a || b ?? c is (a || b) ?? c), tighter than ?: (a ?? b ? c : d is (a ?? b) ? c : d). Comparisons do not chain; arithmetic (+ - * / %), subscripts (a[0]), optional chaining (?.), lambdas (=>), assignment (=) and sequences (;) are refused."
|
|
237
|
+
},
|
|
238
|
+
"calls": {
|
|
239
|
+
"description": "What a prop or an argument may hold besides a literal, a path or a util call.",
|
|
240
|
+
"kinds": {
|
|
241
|
+
"agent_call": "A task call: self.<action>(...) or deps.<key>.<action>(...), only as a callback's one thing, optionally named with `into <name>` (stored as the prop's declares_value).",
|
|
242
|
+
"util_call": "A pure function, or an effect (ui.copy, task.answer, query.refetch, query.fetch_more) as a callback's one thing."
|
|
243
|
+
},
|
|
244
|
+
"reserved_kinds": {
|
|
245
|
+
"service_call": "Reserved for mutations, should they ever exist. Renderers refuse a call kind they do not know."
|
|
246
|
+
},
|
|
247
|
+
"callback_one_thing": ["agent_call", "effect"],
|
|
248
|
+
"query_effects": "queries.<name>.refetch() is stored as util_call {operation: query.refetch, arguments: [{key: query, value_literal: <name>}]}; queries.<name>.fetch_more(k: v, ...) as util_call {operation: query.fetch_more, arguments: [{key: query, value_literal: <name>}, {key: variables, value_dict: [{key: k, ...}, ...]}]}, the variables argument left out when the call names none. The query is always a literal name.",
|
|
249
|
+
"task_arguments": "A task call names every argument (name: value); positional arguments are refused, the parser cannot know the action's parameters."
|
|
250
|
+
},
|
|
251
|
+
"stored_tree": {
|
|
252
|
+
"description": "How a v2 blok is stored: ComponentNodeInput {id, component, props?, children?}; ComponentPropInput {key, static_value? | dynamic_value {path} | util_call | agent_call (+ declares_value)}; ActionArgumentInput {key?, value_literal? | value_path? | util_call? | value_list? | value_dict?}. A prop or argument with no value field is null.",
|
|
253
|
+
"ids": "An explicit id matches explicit_id; a derived id is the parent's id plus /<Component>[<n>] (n: occurrence among same-named siblings), the root's <Component>[0]. A derived id always ends in ']'. An implicit Text node is <parent>/#<n> (n: text-run index) and nothing may target it.",
|
|
254
|
+
"explicit_id": "^[A-Za-z_][A-Za-z0-9_.:-]*$",
|
|
255
|
+
"foreach": "foreach props: items (expression), let (static_value and declares_value the name), key (expression, optional). With a key each item's subtree takes its runtime ids from it: <id>@<key>; without one, from its position: <id>@#<n> (n: the 0-based index). A foreach without key is stored with no key prop at all; the validator warns foreach.position_key when its items are known not to be scalars.",
|
|
256
|
+
"if": "if props: when; children: the then-branch, then the else nodes (component else, an else-if with a when prop; only the last else may lack when).",
|
|
257
|
+
"into": "agent_call prop with declares_value <name>: a task record only that call writes. Allowed inside foreach; one name is written by one call site.",
|
|
258
|
+
"text": "Text children fill the component's text_prop; mixed with elements they become implicit Text nodes. Several parts desugar to str.template(template, values)."
|
|
259
|
+
},
|
|
260
|
+
"locals": {
|
|
261
|
+
"description": "Blok-level form state that feeds a call: a local is an arg port (key, kind, identifier, nullable, default, children, choices, validators, description, ...) plus persist, written only through `bind` on controls, read bare. persist remembers the last input on this device. Its kind is a port kind or ANY; left out on the wire it is inferred (kind_inference) and the stored local always carries one.",
|
|
262
|
+
"fields": ["persist"],
|
|
263
|
+
"any": "ANY is a local's kind only (no action port is ever ANY): an untyped value. It is never an error and gets no warning; it skips the bind_kinds and arg_kinds checks and a path below it is taken as written. A renderer treats it as an untyped value.",
|
|
264
|
+
"kind_inference": ["A given kind (ANY included) is kept; only a left-out kind is inferred, by the first rule that gives one:", "1. the default: a bool BOOL, an integer INT, any other number FLOAT, a string STRING; a non-empty list of one scalar kind LIST of it, a non-empty object of one scalar kind DICT of it (the item port keyed ...); null, [], {} and mixed items tell nothing;", "2. the port of the task argument the local is passed to whole (an argument whose value is exactly the local's path), at the first such call in tree order whose arg port is known and makes a valid local: its kind, identifier, nullable, choices, reference_unit, proposed_units, dimension and children (from a demand's arg match: kind, identifier, nullable and children, every child with a kind);", "3. the bind kind of the first control bound to the local whole, when it is STRING, INT, FLOAT or BOOL (LIST, DICT and ANY controls tell too little);", "4. else ANY.", "The SDK's Local[T]() / Local(type=T) and Local.like(action, arg) come before rule 1. Tree order is the walk order: nodes depth first, each node's props in order, a call's arguments in order. Every field the local sets (choices, nullable, widget, identifier, children, description, ...) wins over the inferred type, which only fills what it leaves out; a candidate whose merge is no valid port is skipped. The other call sites and binds are then checked against the kind found (local.arg_kind, local.bind_kind). A left-out kind stays distinguishable from a given ANY until inference ran (no default filled in at deserialization; null is left out)."],
|
|
265
|
+
"bind": "bind={<local>} or bind={<local>.<field>...}: the control writes the local; nothing else does. The catalog's kind of the bind prop is what the control writes: the local (or the field of it bound) must be a port kind bind_kinds lists for it.",
|
|
266
|
+
"bind_kinds": {"description": "Per catalog kind of a bind prop, the port kinds of the locals it may write. A kind not listed (ANY) writes any local.", "STRING": ["STRING", "ENUM", "DATE"], "FLOAT": ["FLOAT", "INT", "QUANTITY"], "INT": ["INT"], "BOOL": ["BOOL"], "LIST": ["LIST"], "DICT": ["DICT", "MODEL"]},
|
|
267
|
+
"arg_kinds": {"description": "Per port kind of a local passed whole as a task call's argument, the kinds of the action's arg port that take it, where the action is known (agent self.<action> demands, an action's dependencies). STRUCTURE also needs the same identifier. An ANY local is not checked.", "STRING": ["STRING"], "INT": ["INT", "FLOAT"], "FLOAT": ["FLOAT"], "BOOL": ["BOOL"], "ENUM": ["ENUM", "STRING"], "DATE": ["DATE", "STRING"], "QUANTITY": ["QUANTITY", "FLOAT"], "LIST": ["LIST"], "DICT": ["DICT"], "MODEL": ["MODEL", "DICT"], "STRUCTURE": ["STRUCTURE"]}
|
|
268
|
+
},
|
|
269
|
+
"theme": {
|
|
270
|
+
"colour_roles": ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "brand", "brand-light", "brand-soft", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "success", "success-foreground", "success-soft", "warning", "warning-foreground", "warning-soft", "info", "info-foreground", "info-soft", "spectrum-violet", "spectrum-violet-soft", "spectrum-blue", "spectrum-blue-soft", "spectrum-cyan", "spectrum-cyan-soft", "spectrum-green", "spectrum-green-soft", "spectrum-yellow", "spectrum-yellow-soft", "spectrum-orange", "spectrum-orange-soft", "spectrum-red", "spectrum-red-soft"],
|
|
271
|
+
"status_roles": ["success", "warning", "info"],
|
|
272
|
+
"spectral_roles": ["spectrum-violet", "spectrum-blue", "spectrum-cyan", "spectrum-green", "spectrum-yellow", "spectrum-orange", "spectrum-red"],
|
|
273
|
+
"spectrum": {
|
|
274
|
+
"description": "Fixed-hue roles for data that has a colour of its own (a fluorophore's emission, a laser line, a spectral band): spectrum-<band> and spectrum-<band>-soft. Their hue is fixed (they stay recognisable under any brand); their chroma follows the brand's intensity like the status roles', and unlike those they never shift near the brand hue. theme.css defines --spectrum-<band>, --spectrum-<band>-soft and the Tailwind --color-spectrum-<band>(-soft); logo pens --logo-spectrum-<band> = var(--spectrum-<band>).",
|
|
275
|
+
"chroma": "--spectrum-chroma: clamp(0.1, calc(var(--brand-chroma) * 1.1), 0.2)",
|
|
276
|
+
"role": {"light": "oklch(<light> var(--spectrum-chroma) <hue>)", "dark": "oklch(<dark> var(--spectrum-chroma) <hue>)"},
|
|
277
|
+
"soft": {"light": "oklch(0.95 calc(var(--spectrum-chroma) * 0.35) <hue>)", "dark": "oklch(0.3 calc(var(--spectrum-chroma) * 0.45) <hue>)"},
|
|
278
|
+
"bands": {
|
|
279
|
+
"violet": {"hue": 300, "light": 0.55, "dark": 0.7, "nm": [380, 450]},
|
|
280
|
+
"blue": {"hue": 260, "light": 0.58, "dark": 0.72, "nm": [450, 490]},
|
|
281
|
+
"cyan": {"hue": 215, "light": 0.68, "dark": 0.8, "nm": [490, 520]},
|
|
282
|
+
"green": {"hue": 145, "light": 0.64, "dark": 0.78, "nm": [520, 565]},
|
|
283
|
+
"yellow": {"hue": 100, "light": 0.8, "dark": 0.88, "nm": [565, 590]},
|
|
284
|
+
"orange": {"hue": 60, "light": 0.7, "dark": 0.8, "nm": [590, 625]},
|
|
285
|
+
"red": {"hue": 27, "light": 0.6, "dark": 0.72, "nm": [625, 750]}
|
|
286
|
+
},
|
|
287
|
+
"wavelength": "A wavelength maps to the band whose nm range [low, high) holds it; below 380 nm is violet, from 750 nm red (optikit wavelength_pen)."
|
|
288
|
+
},
|
|
289
|
+
"colour_utilities": ["bg", "text", "border", "border-t", "border-r", "border-b", "border-l", "border-x", "border-y", "ring", "ring-offset", "outline", "fill", "stroke", "from", "via", "to", "divide", "placeholder", "caret", "accent", "decoration", "shadow"],
|
|
290
|
+
"palette_colours": ["slate", "gray", "zinc", "neutral", "stone", "red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose", "black", "white"],
|
|
291
|
+
"palette_role_hints": {"red": "destructive", "rose": "destructive", "orange": "warning", "amber": "warning", "yellow": "warning", "lime": "success", "green": "success", "emerald": "success", "teal": "success", "cyan": "info", "sky": "info", "blue": "info", "indigo": "primary", "violet": "brand", "purple": "brand", "fuchsia": "brand", "pink": "brand", "slate": "muted", "gray": "muted", "zinc": "muted", "neutral": "muted", "stone": "muted", "black": "foreground", "white": "background"},
|
|
292
|
+
"logo_pens": ["ink", "muted", "brand", "brand-strong", "brand-soft", "surface", "none", "success", "warning", "info", "spectrum-violet", "spectrum-blue", "spectrum-cyan", "spectrum-green", "spectrum-yellow", "spectrum-orange", "spectrum-red"],
|
|
293
|
+
"logo_paint_props": ["fill", "stroke", "stopColor"],
|
|
294
|
+
"scene_paint_props": ["color"],
|
|
295
|
+
"custom_variants": ["dark", "data-open", "data-closed", "data-checked", "data-unchecked", "data-selected", "data-active", "data-inactive", "data-disabled", "data-horizontal", "data-vertical", "data-busy", "data-stale"],
|
|
296
|
+
"data_attributes": {"busy": "The control's call is running: it will not dispatch again.", "stale": "A value it shows is stale."},
|
|
297
|
+
"data_attributes_rule": "Every component sets exactly data-busy and data-stale, a fixed convention of the language; a catalog declares none."
|
|
298
|
+
},
|
|
299
|
+
"limits": {
|
|
300
|
+
"logo_max_nodes": 200,
|
|
301
|
+
"logo_max_depth": 12,
|
|
302
|
+
"logo_max_path_data": 16384,
|
|
303
|
+
"logo_max_foreach_items": 64,
|
|
304
|
+
"logo_path_data_props": ["d", "points"]
|
|
305
|
+
},
|
|
306
|
+
"catalogs": {
|
|
307
|
+
"description": "Catalogs are the spec-owned, versioned sets a blok renders with: base (every renderer) and the standard catalogs (opt-in). A blok declares the catalogs it needs (catalogs: [\"ui@1\", \"scene@1\"]); a renderer lacking one renders its children or a placeholder, and reports it. A module is an app's own unversioned extras (the server's Module, registered by an app such as the Orkestrator with the catalogs it implements in full); a blok names at most one, as its module.",
|
|
308
|
+
"base": 2,
|
|
309
|
+
"standard": {"ui": 1, "scene": 1, "logo": 1, "structure": 1, "html": 1}
|
|
310
|
+
},
|
|
311
|
+
"diagnostics": {
|
|
312
|
+
"description": "One table of stable codes, the same in Python, Rust and TypeScript. level: error refuses the blok, warning is reported; runtime: true marks a code no checker raises, the renderer's error code of a record (deps.unbound). Messages are str.format templates; parity compares codes, never text.",
|
|
313
|
+
"bsx.syntax": {"level": "error", "message": "{detail}", "hint": "Fix the markup at the line and column given; every attribute is name=\"text\" or name={{expression}}."},
|
|
314
|
+
"bsx.empty": {"level": "error", "message": "A blok has one root element; this source has none.", "hint": "Write one root element, the one the blok's context names (<Html> for an html blok)."},
|
|
315
|
+
"bsx.multiple_roots": {"level": "error", "message": "A blok has one root element; found another after it: <{component}>.", "hint": "Wrap everything in the one root element (<Html>...</Html>); siblings go inside it."},
|
|
316
|
+
"bsx.unclosed": {"level": "error", "message": "<{component}> is never closed.", "hint": "Close it with </{component}>, or write it self-closing as <{component} ... />."},
|
|
317
|
+
"bsx.mismatched_tag": {"level": "error", "message": "</{found}> closes <{expected}>.", "hint": "Close <{expected}> before </{found}>: tags nest, the last one opened closes first."},
|
|
318
|
+
"bsx.duplicate_attribute": {"level": "error", "message": "<{component}> sets {key} twice.", "hint": "Keep one {key}; to choose between values, write one expression (c ? a : b)."},
|
|
319
|
+
"bsx.id": {"level": "error", "message": "id {id!r} is not an explicit id: letters, digits and _ . : -, starting with a letter or _."},
|
|
320
|
+
"bsx.duplicate_id": {"level": "error", "message": "Two components have the id {id!r}.", "hint": "Give each component its own id, or drop id= and let the structure name it."},
|
|
321
|
+
"bsx.text_not_accepted": {"level": "error", "message": "<{component}> takes no text (it declares no text_prop): {text!r}. Wrap the text in a component that does, such as <p>, <span> or <Text>."},
|
|
322
|
+
"bsx.text_unknown_component": {"level": "error", "message": "<{component}> is in no catalog the parser knows, so its text has nowhere to go: {text!r}. Pass it as a prop."},
|
|
323
|
+
"bsx.text_in_context": {"level": "error", "message": "Text in <{component}> is in the {context} context, which draws no text: {text!r}."},
|
|
324
|
+
"bsx.text_and_prop": {"level": "error", "message": "<{component}> sets {key} as an attribute and as its text.", "hint": "Set {key} once: either as the attribute or as the text between the tags."},
|
|
325
|
+
"bsx.text_callback": {"level": "error", "message": "Text holds a call or an effect; only a callback prop may.", "hint": "Put the call in a callback prop (onClick={{...}}), never between tags."},
|
|
326
|
+
"bsx.else_outside_if": {"level": "error", "message": "<else> is a child of <if>, after its then-branch.", "hint": "Move the <else> inside its <if>, after the then-branch children."},
|
|
327
|
+
"bsx.else_order": {"level": "error", "message": "<else> comes after the then-branch, and only the last <else> may lack when.", "hint": "Put the <else> branches last in the <if>; only the final one may leave out when."},
|
|
328
|
+
"bsx.foreach": {"level": "error", "message": "<foreach> needs items={{...}} and let=\"name\" (key={{...}} is optional): {missing}."},
|
|
329
|
+
"bsx.let": {"level": "error", "message": "let={let!r} is not a name.", "hint": "Write let=\"name\": a plain identifier the children read as name.field."},
|
|
330
|
+
"expr.syntax": {"level": "error", "message": "{detail}", "hint": "Expressions are a JavaScript subset: paths, literals, calls with name: value arguments, == != > >= < <=, && || !, ?? and c ? a : b."},
|
|
331
|
+
"expr.arithmetic": {"level": "error", "message": "{operator} is not an operator of the blok language; call math.{function}(a, b)."},
|
|
332
|
+
"expr.subscript": {"level": "error", "message": "Subscripts are not supported; call list.at(value, index) or obj.get(value, key)."},
|
|
333
|
+
"expr.chained_comparison": {"level": "error", "message": "Comparisons do not chain; combine them with &&.", "hint": "Write a < b && b < c, or cmp.between(value: b, min: a, max: c)."},
|
|
334
|
+
"expr.lambda": {"level": "error", "message": "Lambdas are excluded by design; use <foreach>."},
|
|
335
|
+
"expr.dynamic_container": {"level": "error", "message": "A list or object holding expressions can only be a call's argument (className excepted).", "hint": "Pass the list or object as a function argument, or read it from state instead of building it inline."},
|
|
336
|
+
"expr.unknown_callee": {"level": "error", "message": "{callee}(...) calls nothing: a function is <namespace>.<name>, a task self.<action> or deps.<key>.<action>, a read queries.<name>.refetch() or queries.<name>.fetch_more(...)."},
|
|
337
|
+
"expr.unknown_function": {"level": "warning", "message": "{function} is not a function of the blok language or the catalogs in force.", "hint": "Look the function up in the catalog; functions are <namespace>.<name> (fmt.number, str.template, math.max)."},
|
|
338
|
+
"expr.arguments": {"level": "error", "message": "{function}: {detail}.", "hint": "Name the function's own parameters, as its signature lists them."},
|
|
339
|
+
"expr.duplicate_key": {"level": "error", "message": "{key} is given twice.", "hint": "Give {key} once."},
|
|
340
|
+
"callback.sequence": {"level": "error", "message": "A callback does exactly one thing; for several steps, declare a workflow and call it."},
|
|
341
|
+
"callback.assignment": {"level": "error", "message": "A callback cannot assign: derive it from the call's record (move.args, move.returns), or bind a control to a local."},
|
|
342
|
+
"callback.await": {"level": "error", "message": "A callback does not await; a control is busy while its call's task runs."},
|
|
343
|
+
"callback.nested": {"level": "error", "message": "{what} runs only as a callback's one thing, not inside an expression.", "hint": "Move {what} into a callback prop of its own (onClick={{...}}); an expression only reads."},
|
|
344
|
+
"callback.positional": {"level": "error", "message": "{call}: a task call names its arguments (name: value)."},
|
|
345
|
+
"callback.into": {"level": "error", "message": "into names the record of a task call: `<call> into <name>`.", "hint": "Write `deps.<key>.<action>(name: value) into run`, then read run.running, run.returns.<port>."},
|
|
346
|
+
"callback.not_callback": {"level": "error", "message": "{key} of <{component}> is not a callback prop, so it cannot hold {what}.", "hint": "Use a callback prop of <{component}> (the catalog lists them as CALLBACK), or compute {key} without a call."},
|
|
347
|
+
"callback.unbound": {"level": "error", "message": "{key} of <{component}> is a callback prop: it holds one task call or one effect (queries.<name>.refetch(), queries.<name>.fetch_more(...), ui.copy, task.answer).", "hint": "Give {key} a task call (deps.<key>.<action>(name: value)) or one effect, not a value."},
|
|
348
|
+
"callback.event_field": {"level": "error", "message": "event has no field {field!r} in {key} of <{component}> (its fields: {fields}).", "hint": "Read one of the fields listed for {key}: {fields}."},
|
|
349
|
+
"roots.unknown": {"level": "error", "message": "{path} reads {root!r}, which is no root, local, loop variable or record of this blok.", "hint": "Read a root this blok has (deps.<key>, args.<key>, queries.<name>, ...), a declared local, a foreach let, or an into record."},
|
|
350
|
+
"roots.not_in_kind": {"level": "error", "message": "{path}: a{n} {kind} blok has no {root!r} (it reads {roots}).", "hint": "Read one of {roots} instead."},
|
|
351
|
+
"roots.reserved": {"level": "error", "message": "{name!r} is reserved: no local, let or into may use it."},
|
|
352
|
+
"roots.shadow": {"level": "error", "message": "{name!r} is declared twice: as {first} and as {second}."},
|
|
353
|
+
"roots.event_outside_callback": {"level": "error", "message": "{path} reads event outside a callback.", "hint": "Read event only inside a callback prop; outside one, bind a control to a local and read the local."},
|
|
354
|
+
"roots.error_outside_boundary": {"level": "error", "message": "{path} reads error outside an <error> slot.", "hint": "Read error only inside the <error> slot of a <suspense>."},
|
|
355
|
+
"roots.whole": {"level": "error", "message": "{path} reads {root!r} whole; read one of it ({root}.<name>).", "hint": "Read a field of it, as {root}.<name>."},
|
|
356
|
+
"deps.unknown": {"level": "error", "message": "{path}: {key!r} is not a dependency of the blok (its dependencies: {keys}). Fix: {hint}."},
|
|
357
|
+
"deps.unknown_state": {"level": "error", "message": "{path}: {key!r} has no state {state!r} (its states: {states}).", "hint": "Read one of the states listed, or add the agent that has it as a dependency."},
|
|
358
|
+
"deps.unknown_action": {"level": "error", "message": "{path}: {key!r} has no action {action!r} (its actions: {actions}).", "hint": "Call one of the actions listed, by its exact name."},
|
|
359
|
+
"path.unknown": {"level": "error", "message": "{path}: {detail}"},
|
|
360
|
+
"deps.reserved_state": {"level": "error", "message": "A state cannot be called {name!r}: it is the {name} segment of an agent."},
|
|
361
|
+
"deps.asset": {"level": "error", "message": "{path}: an asset is <agent>.assets.<name>, of an asset the app registered."},
|
|
362
|
+
"args.unknown": {"level": "error", "message": "{path} reads args.{key}, which the blok does not declare (declared: {keys}).", "hint": "Read one of the declared args, or declare args.{key} (only when the user asks what the blok is opened for)."},
|
|
363
|
+
"into.twice": {"level": "error", "message": "{name!r} is written by two calls: {first} and {second}. Each call site needs a record of its own."},
|
|
364
|
+
"local.unknown": {"level": "error", "message": "bind={{{path}}} writes {root!r}, which is no declared local.", "hint": "Declare {root!r} in locals (its default, or null), then bind it."},
|
|
365
|
+
"local.bind": {"level": "error", "message": "bind holds a local's path ({{name}} or {{name.field}}), not {what}.", "hint": "Write bind={{name}} with a declared local's name."},
|
|
366
|
+
"local.default": {"level": "error", "message": "local {name!r}: its default {default!r} is not a {kind}.", "hint": "Give a default of that kind, or leave the kind out so the default sets it."},
|
|
367
|
+
"local.kind": {"level": "error", "message": "local {name!r}: type={type!r} is a name, not an annotation; give the type itself (int, list[str], a registered structure)."},
|
|
368
|
+
"local.like": {"level": "error", "message": "local {name!r}: Local.like names {action!r}, which {problem}."},
|
|
369
|
+
"local.bind_kind": {"level": "error", "message": "{key} of <{component}> writes a {prop_kind}, but {path} is a {kind} local (a {prop_kind} control writes {kinds}).", "hint": "Bind a local of a kind the control writes, or leave the local's kind out so the control sets it."},
|
|
370
|
+
"local.arg_kind": {"level": "error", "message": "{call}: {argument} takes a {port_kind}, but {path} is a {kind} local.", "hint": "Pass a local of the argument's kind, or leave the local's kind out so the argument sets it."},
|
|
371
|
+
"local.unused_persist": {"level": "warning", "message": "local {name!r} persists, but no control binds it.", "hint": "Bind a control to it, or drop persist."},
|
|
372
|
+
"query.unknown": {"level": "error", "message": "{path} reads queries.{name}, which the blok does not declare (declared: {names}).", "hint": "Read one of the declared queries: {names}."},
|
|
373
|
+
"query.read_only": {"level": "error", "message": "{kind} {name!r}: {problem}"},
|
|
374
|
+
"query.schema": {"level": "warning", "message": "{kind} {name!r}: {problem}"},
|
|
375
|
+
"query.variable": {"level": "error", "message": "{kind} {name!r}: variable {variable!r} {problem}"},
|
|
376
|
+
"query.history": {"level": "error", "message": "subscription {name!r} replays from {history!r}, which is no declared query."},
|
|
377
|
+
"query.kind": {"level": "error", "message": "{kind} {name!r} is a {operation}, not a {kind}."},
|
|
378
|
+
"query.more": {"level": "error", "message": "query {name!r}: more {more!r} {problem}."},
|
|
379
|
+
"query.fetch_more": {"level": "error", "message": "{path}: query {name!r} declares no more (the list field new pages append to), so it cannot fetch more."},
|
|
380
|
+
"query.effect_target": {"level": "error", "message": "{function} names its query by a literal name (queries.<name>.{verb}()), not {what}."},
|
|
381
|
+
"subscription.unknown": {"level": "error", "message": "{path} reads subscriptions.{name}, which the blok does not declare (declared: {names}).", "hint": "Read one of the declared subscriptions: {names}."},
|
|
382
|
+
"subscription.refetch": {"level": "error", "message": "subscriptions have no refetch or fetch_more; they stream."},
|
|
383
|
+
"toast.task": {"level": "error", "message": "<Toast task={{...}}> watches the blok's own into records or task, not {what}."},
|
|
384
|
+
"palette.raw_colour": {"level": "warning", "message": "{token}: a blok picks a colour role, not a colour; try {suggestion}."},
|
|
385
|
+
"palette.logo_paint": {"level": "error", "message": "<{component}> paints {prop}={value!r}; a logo paints with {pens} or url(#id)."},
|
|
386
|
+
"palette.scene_colour": {"level": "warning", "message": "<{component}> {prop}={value!r} is no colour of the theme; a scene picks a colour role ({roles}).", "hint": "Pick one of the colour roles listed."},
|
|
387
|
+
"props.literal_type": {"level": "error", "message": "<{component}> {key}={value!r} is a string, but {key} takes a {kind}; write {hint}.", "hint": "Write the value as an expression in braces: {key}={{...}}."},
|
|
388
|
+
"foreach.position_key": {"level": "warning", "message": "<foreach let=\"{let}\"> has no key, so its items are keyed by their position; they are not scalars, so key them by a stable field (key={{{let}.id}})."},
|
|
389
|
+
"returns.unnamed": {"level": "warning", "message": "{path} reads {port}, a return the action left unnamed; name it in the action, as Annotated[T, Key(\"name\")] or as a field of a NamedTuple return, and read it by that name."},
|
|
390
|
+
"context.root": {"level": "error", "message": "The root of a {context} blok is <{root}>, not <{component}>.", "hint": "Make <{root}> the root and put <{component}> inside it."},
|
|
391
|
+
"context.root_unknown": {"level": "error", "message": "A blok's root names its context ({roots}), not <{component}>.", "hint": "Make the root one of {roots} and put <{component}> inside it."},
|
|
392
|
+
"context.kind": {"level": "error", "message": "A{n} {kind} blok is drawn in {contexts}, not {context}."},
|
|
393
|
+
"logo.complexity": {"level": "error", "message": "{detail}"},
|
|
394
|
+
"catalog.unknown_component": {"level": "warning", "message": "<{component}> is in no catalog in force ({catalogs}).", "hint": "Look the component up in the catalog; names are case-sensitive."},
|
|
395
|
+
"catalog.undeclared": {"level": "warning", "message": "<{component}> is from {catalog}, which the blok does not declare in its catalogs.", "hint": "Add {catalog} to the blok's catalogs."},
|
|
396
|
+
"catalog.children": {"level": "warning", "message": "<{component}> takes no children.", "hint": "Close <{component}> without children (<{component} ... />), or put them beside it."},
|
|
397
|
+
"catalog.props": {"level": "warning", "message": "<{component}> {detail}", "hint": "Use the props the catalog lists for <{component}>, exactly as named."},
|
|
398
|
+
"catalog.placement": {"level": "warning", "message": "<{component}> {detail}", "hint": "Move <{component}> where the catalog places it (its inside / never inside rules)."},
|
|
399
|
+
"catalog.value": {"level": "warning", "message": "{key}=\"{value}\" is not a value <{component}> draws: one of {values}.", "hint": "Write one of {values}."},
|
|
400
|
+
"catalog.asset": {"level": "warning", "message": "{key} of <{component}> names an asset as <agent>.assets.<name>.", "hint": "Write {key}={{self.assets.<name>}} with an asset the app registered."},
|
|
401
|
+
"catalog.shadow": {"level": "warning", "message": "<{component}> is defined by {catalog} and by {module}; {winner}'s definition is used."},
|
|
402
|
+
"module.unknown": {"level": "warning", "message": "module {module!r} is neither declared by the app nor registered in the organization ({modules}), so its components are not checked."},
|
|
403
|
+
"deps.unbound": {"level": "error", "runtime": true, "message": "deps.{key} is bound to no agent, so it reads as failed."},
|
|
404
|
+
"manifest.sent": {"level": "error", "message": "A blok is sent as its components or as its BSX source, {problem}."},
|
|
405
|
+
"manifest.catalog": {"level": "error", "message": "Catalog {catalog!r} is not name@version (ui@1)."},
|
|
406
|
+
"manifest.duplicate": {"level": "error", "message": "{what}: {key!r} is declared twice."},
|
|
407
|
+
"manifest.name": {"level": "error", "message": "{what}: {key!r} is not a name."},
|
|
408
|
+
"manifest.action_logo": {"level": "error", "message": "An action logo reads only the task it is drawn against: no locals, queries, subscriptions or dependencies."},
|
|
409
|
+
"manifest.demo": {"level": "error", "message": "demo.deps names {keys}, which are not dependencies of the blok."}
|
|
410
|
+
}
|
|
411
|
+
}
|