@supersoniks/concorde 4.9.98-visual-stack.0 → 4.9.98-visual-stack.2
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/.gitlab-ci.yml +0 -13
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +201 -152
- package/concorde-3d.es.js +14688 -13906
- package/concorde-core.bundle.js +557 -622
- package/concorde-core.es.js +6025 -5575
- package/concorde-hugging-face-infer.bundle.js +1 -1
- package/concorde-hugging-face-infer.es.js +1 -1
- package/concorde-interactive.bundle.js +1162 -0
- package/concorde-interactive.es.js +10723 -0
- package/concorde-shader.bundle.js +31 -20
- package/concorde-shader.es.js +2773 -2547
- package/concorde-webgpu.bundle.js +43 -32
- package/concorde-webgpu.es.js +1819 -1553
- package/dist/concorde-3d.bundle.js +201 -152
- package/dist/concorde-3d.es.js +14688 -13906
- package/dist/concorde-core.bundle.js +557 -622
- package/dist/concorde-core.es.js +6025 -5575
- package/dist/concorde-hugging-face-infer.bundle.js +1 -1
- package/dist/concorde-hugging-face-infer.es.js +1 -1
- package/dist/concorde-interactive.bundle.js +1162 -0
- package/dist/concorde-interactive.es.js +10723 -0
- package/dist/concorde-shader.bundle.js +31 -20
- package/dist/concorde-shader.es.js +2773 -2547
- package/dist/concorde-webgpu.bundle.js +43 -32
- package/dist/concorde-webgpu.es.js +1819 -1553
- package/dist/docs-mock-api-sw.js +5 -1
- package/dist/docs-mock-api-sw.js.map +2 -2
- package/dist/js/addons/interactive.js +6 -0
- package/dist/js/addons/interactive.js.map +1 -0
- package/dist/js/core/components/functional/3d/3d.js +90 -2
- package/dist/js/core/components/functional/3d/3d.js.map +1 -1
- package/dist/js/core/components/functional/3d/constants.js +1 -0
- package/dist/js/core/components/functional/3d/constants.js.map +1 -1
- package/dist/js/core/components/functional/3d/ensure.js +6 -3
- package/dist/js/core/components/functional/3d/ensure.js.map +1 -1
- package/dist/js/core/components/functional/3d/form-params.js +2 -0
- package/dist/js/core/components/functional/3d/form-params.js.map +1 -1
- package/dist/js/core/components/functional/3d/life.js +2 -1
- package/dist/js/core/components/functional/3d/life.js.map +1 -1
- package/dist/js/core/components/functional/3d/out-publish.js +3 -2
- package/dist/js/core/components/functional/3d/out-publish.js.map +1 -1
- package/dist/js/core/components/functional/3d/playback.js +6 -1
- package/dist/js/core/components/functional/3d/playback.js.map +1 -1
- package/dist/js/core/components/functional/3d/post-bind.js +207 -0
- package/dist/js/core/components/functional/3d/post-bind.js.map +1 -0
- package/dist/js/core/components/functional/3d/post-channels.js +39 -0
- package/dist/js/core/components/functional/3d/post-channels.js.map +1 -0
- package/dist/js/core/components/functional/3d/post-fx.js +495 -0
- package/dist/js/core/components/functional/3d/post-fx.js.map +1 -0
- package/dist/js/core/components/functional/3d/props.js +142 -0
- package/dist/js/core/components/functional/3d/props.js.map +1 -1
- package/dist/js/core/components/functional/3d/reload.js +2 -0
- package/dist/js/core/components/functional/3d/reload.js.map +1 -1
- package/dist/js/core/components/functional/3d/runtime.js +80 -3
- package/dist/js/core/components/functional/3d/runtime.js.map +1 -1
- package/dist/js/core/components/functional/3d/scene-runtime.js +1 -1
- package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -1
- package/dist/js/core/components/functional/3d/tune.js +21 -0
- package/dist/js/core/components/functional/3d/tune.js.map +1 -1
- package/dist/js/core/components/functional/3d/updated.js +13 -1
- package/dist/js/core/components/functional/3d/updated.js.map +1 -1
- package/dist/js/core/components/functional/if/if.js +65 -7
- package/dist/js/core/components/functional/if/if.js.map +1 -1
- package/dist/js/core/components/functional/interactive/action.js +96 -0
- package/dist/js/core/components/functional/interactive/action.js.map +1 -0
- package/dist/js/core/components/functional/interactive/gamepad.js +206 -0
- package/dist/js/core/components/functional/interactive/gamepad.js.map +1 -0
- package/dist/js/core/components/functional/interactive/gesture.js +148 -0
- package/dist/js/core/components/functional/interactive/gesture.js.map +1 -0
- package/dist/js/core/components/functional/interactive/helpers.js +82 -0
- package/dist/js/core/components/functional/interactive/helpers.js.map +1 -0
- package/dist/js/core/components/functional/interactive/index.js +20 -0
- package/dist/js/core/components/functional/interactive/index.js.map +1 -0
- package/dist/js/core/components/functional/interactive/keyboard.js +183 -0
- package/dist/js/core/components/functional/interactive/keyboard.js.map +1 -0
- package/dist/js/core/components/functional/interactive/matrix.js +201 -0
- package/dist/js/core/components/functional/interactive/matrix.js.map +1 -0
- package/dist/js/core/components/functional/interactive/registry.js +28 -0
- package/dist/js/core/components/functional/interactive/registry.js.map +1 -0
- package/dist/js/core/components/functional/interactive/store.js +264 -0
- package/dist/js/core/components/functional/interactive/store.js.map +1 -0
- package/dist/js/core/components/functional/interactive/ticker.js +182 -0
- package/dist/js/core/components/functional/interactive/ticker.js.map +1 -0
- package/dist/js/core/components/functional/shader/gl-runtime.js +128 -14
- package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -1
- package/dist/js/core/components/functional/shader/shader.js +154 -57
- package/dist/js/core/components/functional/shader/shader.js.map +1 -1
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js +39 -5
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -1
- package/dist/js/core/components/functional/shader/types.js +58 -7
- package/dist/js/core/components/functional/shader/types.js.map +1 -1
- package/dist/js/core/components/functional/value/value.js +49 -4
- package/dist/js/core/components/functional/value/value.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/gl-fallback.js +27 -6
- package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js +115 -13
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/helpers.js +8 -2
- package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/webgpu.js +34 -1
- package/dist/js/core/components/functional/webgpu/webgpu.js.map +1 -1
- package/dist/js/core/components/ui/_css/rounded.js +34 -0
- package/dist/js/core/components/ui/_css/rounded.js.map +1 -0
- package/dist/js/core/components/ui/_css/type.js +44 -0
- package/dist/js/core/components/ui/_css/type.js.map +1 -1
- package/dist/js/core/components/ui/_i18n/ui-aria-labels.js +95 -0
- package/dist/js/core/components/ui/_i18n/ui-aria-labels.js.map +1 -0
- package/dist/js/core/components/ui/alert/alert.js +72 -87
- package/dist/js/core/components/ui/alert/alert.js.map +1 -1
- package/dist/js/core/components/ui/alert-messages/alert-messages.js +1 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -1
- package/dist/js/core/components/ui/badge/badge.js +29 -80
- package/dist/js/core/components/ui/badge/badge.js.map +1 -1
- package/dist/js/core/components/ui/button/button.js +8 -7
- package/dist/js/core/components/ui/button/button.js.map +1 -1
- package/dist/js/core/components/ui/card/card-header.js +7 -2
- package/dist/js/core/components/ui/card/card-header.js.map +1 -1
- package/dist/js/core/components/ui/divider/divider.js +1 -1
- package/dist/js/core/components/ui/divider/divider.js.map +1 -1
- package/dist/js/core/components/ui/form/checkbox/checkbox.js +4 -20
- package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -1
- package/dist/js/core/components/ui/form/fieldset/legend-description.js +1 -1
- package/dist/js/core/components/ui/form/fieldset/legend.js +1 -1
- package/dist/js/core/components/ui/form/input/input.js +12 -15
- package/dist/js/core/components/ui/form/input/input.js.map +1 -1
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +363 -158
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -1
- package/dist/js/core/components/ui/form/radio/radio.js +1 -1
- package/dist/js/core/components/ui/form/select/select.js +3 -6
- package/dist/js/core/components/ui/form/select/select.js.map +1 -1
- package/dist/js/core/components/ui/form/textarea/textarea.js +1 -2
- package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -1
- package/dist/js/core/components/ui/image/image.js +9 -37
- package/dist/js/core/components/ui/image/image.js.map +1 -1
- package/dist/js/core/components/ui/link/link.js +25 -26
- package/dist/js/core/components/ui/link/link.js.map +1 -1
- package/dist/js/core/components/ui/modal/modal-close.js +3 -12
- package/dist/js/core/components/ui/modal/modal-close.js.map +1 -1
- package/dist/js/core/components/ui/modal/modal.js +18 -18
- package/dist/js/core/components/ui/modal/modal.js.map +1 -1
- package/dist/js/core/components/ui/pop/pop.js +131 -112
- package/dist/js/core/components/ui/pop/pop.js.map +1 -1
- package/dist/js/core/components/ui/table/table.js.map +1 -1
- package/dist/js/core/components/ui/theme/theme.js +1 -1
- package/dist/js/core/components/ui/toast/dismissed.js +9 -0
- package/dist/js/core/components/ui/toast/dismissed.js.map +1 -0
- package/dist/js/core/components/ui/toast/render-content.js +14 -0
- package/dist/js/core/components/ui/toast/render-content.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast-item.js +150 -96
- package/dist/js/core/components/ui/toast/toast-item.js.map +1 -1
- package/dist/js/core/components/ui/toast/toast.js +41 -13
- package/dist/js/core/components/ui/toast/toast.js.map +1 -1
- package/dist/js/core/components/ui/tooltip/tooltip.js +144 -143
- package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -1
- package/dist/js/core/decorators/subscriber/derive.js +3 -1
- package/dist/js/core/decorators/subscriber/derive.js.map +1 -1
- package/dist/js/core/mixins/Fetcher.js.map +1 -1
- package/dist/js/core/mixins/FormCheckable.js +1 -8
- package/dist/js/core/mixins/FormCheckable.js.map +1 -1
- package/dist/js/core/mixins/FormElement.js +26 -53
- package/dist/js/core/mixins/FormElement.js.map +1 -1
- package/dist/js/core/utils/AncestorAttributeObserver.js +130 -55
- package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -1
- package/dist/js/core/utils/LocationHandler.js +1 -1
- package/dist/js/core/utils/LocationHandler.js.map +1 -1
- package/dist/js/core/utils/dismissed.js +23 -0
- package/dist/js/core/utils/dismissed.js.map +1 -0
- package/dist/js/core/utils/mediaRef.js +37 -0
- package/dist/js/core/utils/mediaRef.js.map +1 -1
- package/dist/js/core/utils/positioning.js +110 -0
- package/dist/js/core/utils/positioning.js.map +1 -0
- package/dist/js/directives.js +1 -2
- package/dist/js/directives.js.map +1 -1
- package/dist/types/addons/interactive.d.ts +6 -0
- package/dist/types/addons/interactive.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/3d.d.ts +26 -3
- package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/constants.d.ts +1 -1
- package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/ensure.d.ts +3 -0
- package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/life.d.ts +2 -0
- package/dist/types/core/components/functional/3d/life.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/out-publish.d.ts +1 -0
- package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/playback.d.ts +9 -0
- package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/post-bind.d.ts +52 -0
- package/dist/types/core/components/functional/3d/post-bind.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/post-channels.d.ts +40 -0
- package/dist/types/core/components/functional/3d/post-channels.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/post-fx.d.ts +73 -0
- package/dist/types/core/components/functional/3d/post-fx.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/props.d.ts +42 -0
- package/dist/types/core/components/functional/3d/props.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/runtime.d.ts +16 -1
- package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts +1 -1
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/tune.d.ts +5 -0
- package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/types.d.ts +9 -0
- package/dist/types/core/components/functional/3d/types.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -1
- package/dist/types/core/components/functional/if/if.d.ts +14 -5
- package/dist/types/core/components/functional/if/if.d.ts.map +1 -1
- package/dist/types/core/components/functional/interactive/action.d.ts +22 -0
- package/dist/types/core/components/functional/interactive/action.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/gamepad.d.ts +37 -0
- package/dist/types/core/components/functional/interactive/gamepad.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/gesture.d.ts +26 -0
- package/dist/types/core/components/functional/interactive/gesture.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/helpers.d.ts +23 -0
- package/dist/types/core/components/functional/interactive/helpers.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/index.d.ts +20 -0
- package/dist/types/core/components/functional/interactive/index.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/keyboard.d.ts +37 -0
- package/dist/types/core/components/functional/interactive/keyboard.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/matrix.d.ts +31 -0
- package/dist/types/core/components/functional/interactive/matrix.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/registry.d.ts +23 -0
- package/dist/types/core/components/functional/interactive/registry.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/store.d.ts +46 -0
- package/dist/types/core/components/functional/interactive/store.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/ticker.d.ts +33 -0
- package/dist/types/core/components/functional/interactive/ticker.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts +33 -1
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/shader.d.ts +28 -7
- package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +16 -2
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/types.d.ts +29 -5
- package/dist/types/core/components/functional/shader/types.d.ts.map +1 -1
- package/dist/types/core/components/functional/value/value.d.ts +6 -0
- package/dist/types/core/components/functional/value/value.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +4 -0
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +14 -0
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/helpers.d.ts +1 -0
- package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts +7 -1
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +1 -1
- package/dist/types/core/components/ui/_css/rounded.d.ts +3 -0
- package/dist/types/core/components/ui/_css/rounded.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/type.d.ts +13 -0
- package/dist/types/core/components/ui/_css/type.d.ts.map +1 -1
- package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts +83 -0
- package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert/alert.d.ts +14 -12
- package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -1
- package/dist/types/core/components/ui/badge/badge.d.ts +1 -1
- package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/types/core/components/ui/button/button.d.ts +13 -29
- package/dist/types/core/components/ui/button/button.d.ts.map +1 -1
- package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -1
- package/dist/types/core/components/ui/divider/divider.d.ts +2 -1
- package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +25 -73
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/input/input.d.ts +14 -29
- package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +63 -65
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/radio/radio.d.ts +1 -1
- package/dist/types/core/components/ui/form/select/select.d.ts +3 -5
- package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts +12 -28
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -1
- package/dist/types/core/components/ui/image/image.d.ts +2 -1
- package/dist/types/core/components/ui/image/image.d.ts.map +1 -1
- package/dist/types/core/components/ui/link/link.d.ts +10 -9
- package/dist/types/core/components/ui/link/link.d.ts.map +1 -1
- package/dist/types/core/components/ui/modal/modal-close.d.ts +2 -2
- package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -1
- package/dist/types/core/components/ui/pop/pop.d.ts +12 -4
- package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -1
- package/dist/types/core/components/ui/table/table.d.ts +2 -1
- package/dist/types/core/components/ui/table/table.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/dismissed.d.ts +3 -0
- package/dist/types/core/components/ui/toast/dismissed.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/render-content.d.ts +7 -0
- package/dist/types/core/components/ui/toast/render-content.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts +26 -9
- package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/toast.d.ts +6 -3
- package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/types.d.ts +12 -2
- package/dist/types/core/components/ui/toast/types.d.ts.map +1 -1
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts +19 -11
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +3 -4
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -1
- package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -1
- package/dist/types/core/mixins/FormCheckable.d.ts +10 -27
- package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -1
- package/dist/types/core/mixins/FormElement.d.ts +21 -10
- package/dist/types/core/mixins/FormElement.d.ts.map +1 -1
- package/dist/types/core/mixins/FormInput.d.ts +11 -27
- package/dist/types/core/mixins/FormInput.d.ts.map +1 -1
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts +17 -9
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -1
- package/dist/types/core/utils/LocationHandler.d.ts +3 -2
- package/dist/types/core/utils/LocationHandler.d.ts.map +1 -1
- package/dist/types/core/utils/dismissed.d.ts +3 -0
- package/dist/types/core/utils/dismissed.d.ts.map +1 -0
- package/dist/types/core/utils/mediaRef.d.ts +15 -0
- package/dist/types/core/utils/mediaRef.d.ts.map +1 -1
- package/dist/types/core/utils/positioning.d.ts +44 -0
- package/dist/types/core/utils/positioning.d.ts.map +1 -0
- package/dist/types/directives.d.ts +1 -3
- package/dist/types/directives.d.ts.map +1 -1
- package/dist/types/mixins.d.ts +22 -55
- package/dist/types/mixins.d.ts.map +1 -1
- package/docs/assets/{index-FmK4JaIM.js → index-D8MVWqY6.js} +946 -687
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +17 -85
- package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +1 -1
- package/docs/crawl/hubs/form-components.html +13 -11
- package/docs/docs-mock-api-sw.js +5 -1
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +2 -2
- package/docs/llms-full.txt +12 -38
- package/docs/llms.txt +1 -1
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/docs/src/docs/_getting-started/create-a-component.md +0 -0
- package/docs/src/docs/_misc/formelement-subscriber-removal.md +1 -1
- package/docs/src/docs/search/docs-search.json +195 -200
- package/docs/src/tsconfig.json +324 -0
- package/gitlab/job_tests.sh +25 -12
- package/index.html +3 -3
- package/package.json +217 -9
- package/public/docs-mock-api-sw.js +5 -1
- package/public/docs-mock-api-sw.js.map +2 -2
- package/scripts/build-addons.mjs +2 -2
- package/scripts/post-build.mjs +9 -0
- package/src/addons/interactive.ts +5 -0
- package/src/core/components/functional/3d/3d.md +34 -1
- package/src/core/components/functional/3d/3d.spec.ts +42 -0
- package/src/core/components/functional/3d/3d.ts +101 -3
- package/src/core/components/functional/3d/constants.ts +1 -0
- package/src/core/components/functional/3d/ensure.ts +11 -3
- package/src/core/components/functional/3d/form-params.ts +2 -0
- package/src/core/components/functional/3d/life.ts +4 -1
- package/src/core/components/functional/3d/out-publish.ts +4 -3
- package/src/core/components/functional/3d/playback.ts +13 -1
- package/src/core/components/functional/3d/post-bind.ts +262 -0
- package/src/core/components/functional/3d/post-channels.spec.ts +36 -0
- package/src/core/components/functional/3d/post-channels.ts +69 -0
- package/src/core/components/functional/3d/post-fx.ts +594 -0
- package/src/core/components/functional/3d/props.ts +45 -0
- package/src/core/components/functional/3d/reload.ts +2 -0
- package/src/core/components/functional/3d/runtime.ts +93 -4
- package/src/core/components/functional/3d/scene-runtime.ts +3 -0
- package/src/core/components/functional/3d/tune.ts +21 -0
- package/src/core/components/functional/3d/types.ts +9 -0
- package/src/core/components/functional/3d/updated.ts +17 -1
- package/src/core/components/functional/if/if.ts +54 -7
- package/src/core/components/functional/interactive/action.ts +84 -0
- package/src/core/components/functional/interactive/gamepad.ts +197 -0
- package/src/core/components/functional/interactive/gesture.ts +136 -0
- package/src/core/components/functional/interactive/helpers.spec.ts +50 -0
- package/src/core/components/functional/interactive/helpers.ts +97 -0
- package/src/core/components/functional/interactive/index.ts +25 -0
- package/src/core/components/functional/interactive/interactive.md +33 -0
- package/src/core/components/functional/interactive/keyboard.ts +171 -0
- package/src/core/components/functional/interactive/matrix.ts +185 -0
- package/src/core/components/functional/interactive/registry.ts +46 -0
- package/src/core/components/functional/interactive/store.ts +264 -0
- package/src/core/components/functional/interactive/ticker.ts +171 -0
- package/src/core/components/functional/list/list.ts +0 -0
- package/src/core/components/functional/shader/gl-runtime.ts +169 -12
- package/src/core/components/functional/shader/shader.md +27 -4
- package/src/core/components/functional/shader/shader.spec.ts +267 -0
- package/src/core/components/functional/shader/shader.ts +177 -55
- package/src/core/components/functional/shader/shadertoy-prelude.ts +49 -5
- package/src/core/components/functional/shader/types.ts +89 -12
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +44 -4
- package/src/core/components/functional/webgpu/gl-fallback.ts +28 -4
- package/src/core/components/functional/webgpu/gpu-runtime.ts +154 -18
- package/src/core/components/functional/webgpu/helpers.ts +8 -2
- package/src/core/components/functional/webgpu/webgpu.md +13 -2
- package/src/core/components/functional/webgpu/webgpu.spec.ts +37 -0
- package/src/core/components/functional/webgpu/webgpu.ts +39 -1
- package/src/core/components/ui/_css/rounded.ts +36 -0
- package/src/core/components/ui/_css/type.ts +49 -0
- package/src/core/components/ui/_i18n/ui-aria-labels.ts +104 -0
- package/src/core/components/ui/alert/alert.md +128 -72
- package/src/core/components/ui/alert/alert.spec.ts +145 -0
- package/src/core/components/ui/alert/alert.ts +86 -91
- package/src/core/components/ui/alert-messages/alert-messages.ts +1 -1
- package/src/core/components/ui/badge/badge.md +126 -78
- package/src/core/components/ui/badge/badge.ts +29 -81
- package/src/core/components/ui/button/button.md +1 -0
- package/src/core/components/ui/button/button.ts +12 -10
- package/src/core/components/ui/card/card-header.ts +7 -2
- package/src/core/components/ui/card/card.md +120 -65
- package/src/core/components/ui/divider/divider.ts +4 -9
- package/src/core/components/ui/form/checkbox/checkbox.md +1 -1
- package/src/core/components/ui/form/checkbox/checkbox.ts +4 -20
- package/src/core/components/ui/form/fieldset/legend-description.ts +1 -1
- package/src/core/components/ui/form/fieldset/legend.ts +1 -1
- package/src/core/components/ui/form/input/input.md +1 -1
- package/src/core/components/ui/form/input/input.ts +25 -27
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +419 -187
- package/src/core/components/ui/form/radio/radio.ts +1 -1
- package/src/core/components/ui/form/select/select.ts +3 -6
- package/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/src/core/components/ui/form/textarea/textarea.ts +1 -2
- package/src/core/components/ui/image/image.md +147 -53
- package/src/core/components/ui/image/image.ts +10 -44
- package/src/core/components/ui/link/link.md +2 -2
- package/src/core/components/ui/link/link.ts +42 -37
- package/src/core/components/ui/modal/modal-close.ts +8 -12
- package/src/core/components/ui/modal/modal.ts +18 -18
- package/src/core/components/ui/pop/pop.md +105 -1
- package/src/core/components/ui/pop/pop.ts +145 -141
- package/src/core/components/ui/table/table.ts +2 -8
- package/src/core/components/ui/theme/theme.ts +1 -1
- package/src/core/components/ui/toast/dismissed.ts +14 -0
- package/src/core/components/ui/toast/render-content.ts +13 -0
- package/src/core/components/ui/toast/toast-item.ts +179 -103
- package/src/core/components/ui/toast/toast.ts +58 -21
- package/src/core/components/ui/toast/types.ts +14 -2
- package/src/core/components/ui/tooltip/tooltip.ts +176 -154
- package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
- package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
- package/src/core/decorators/subscriber/derive.ts +3 -3
- package/src/core/mixins/Fetcher.ts +1 -1
- package/src/core/mixins/FormCheckable.ts +1 -8
- package/src/core/mixins/FormElement.ts +74 -76
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/AncestorAttributeObserver.ts +183 -70
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/LocationHandler.ts +12 -5
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/dismissed.ts +22 -0
- package/src/core/utils/mediaRef.spec.ts +25 -0
- package/src/core/utils/mediaRef.ts +45 -0
- package/src/core/utils/positioning.spec.ts +208 -0
- package/src/core/utils/positioning.ts +183 -0
- package/src/directives.ts +1 -3
- package/src/docs/_core-concept/dataFlow.md +1 -1
- package/src/docs/_decorators/ancestor-attribute.md +3 -2
- package/src/docs/_getting-started/concorde-outside.md +3 -3
- package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
- package/src/docs/_misc/html-integration.md +2 -0
- package/src/docs/_misc/visual-stack.md +19 -1
- package/src/docs/code.ts +3 -1
- package/src/docs/components/docs-demo-sources.ts +88 -0
- package/src/docs/docs.ts +3 -0
- package/src/docs/example/docs-3d-post-depth-demo.ts +68 -0
- package/src/docs/example/docs-3d-webgpu-live-demo.ts +83 -0
- package/src/docs/example/docs-harris-webgpu-demo.ts +53 -55
- package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
- package/src/docs/mock-api/router.ts +17 -1
- package/src/docs/navigation/navigation.ts +4 -0
- package/src/docs/search/docs-search.json +922 -1762
- package/src/docs/tailwind/css/tailwind.css +13 -6
- package/src/tsconfig.json +162 -6
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +50 -3
- package/vite/config.js +23 -35
- package/vite.config.mts +5 -0
- package/vitest.setup.ts +49 -13
- package/docs/assets/index-BZiZXMU-.css +0 -1
|
@@ -2,11 +2,14 @@ import * as THREE from "three";
|
|
|
2
2
|
import type { Sonic3dCameraMode } from "./constants";
|
|
3
3
|
import type { SceneRuntimeOptions } from "./opts";
|
|
4
4
|
import type { SceneHit } from "./pick";
|
|
5
|
+
import { PostFxCompileError, type PostFxConfig, type PostFxUniforms } from "./post-fx";
|
|
5
6
|
import { tune } from "./tune";
|
|
6
7
|
import type { Sonic3dAsset, Sonic3dOutput } from "./types";
|
|
7
8
|
export type { SceneHit, SceneRuntimeOptions };
|
|
9
|
+
export { PostFxCompileError };
|
|
10
|
+
export type { PostFxConfig, PostFxUniforms };
|
|
8
11
|
/**
|
|
9
|
-
* Runtime Three.js encapsulé : renderer, scène, caméra, load, fit, pick.
|
|
12
|
+
* Runtime Three.js encapsulé : renderer, scène, caméra, load, fit, pick, post FX.
|
|
10
13
|
* Le composant Lit gère RAF / viewport / DP.
|
|
11
14
|
*/
|
|
12
15
|
export declare class SceneRuntime {
|
|
@@ -39,22 +42,34 @@ export declare class SceneRuntime {
|
|
|
39
42
|
private highlighted;
|
|
40
43
|
private prevEmissive;
|
|
41
44
|
private prevEmissiveIntensity;
|
|
45
|
+
private postFx;
|
|
46
|
+
private lastCssW;
|
|
47
|
+
private lastCssH;
|
|
48
|
+
private damping;
|
|
49
|
+
private postFrame;
|
|
42
50
|
constructor(opts: SceneRuntimeOptions);
|
|
43
51
|
get ready(): boolean;
|
|
44
52
|
get loading(): boolean;
|
|
45
53
|
get error(): string | null;
|
|
46
54
|
get isLost(): boolean;
|
|
55
|
+
get hasPostFx(): boolean;
|
|
47
56
|
setDprMax(v: number): void;
|
|
48
57
|
setExposure(v: number): void;
|
|
49
58
|
setFov(v: number): void;
|
|
50
59
|
setFit(v: boolean): void;
|
|
51
60
|
setAutoRotate(v: boolean): void;
|
|
61
|
+
setDamping(v: number): void;
|
|
62
|
+
/** Coupe autoRotate + inertie OrbitControls. */
|
|
63
|
+
stopMotion(): void;
|
|
52
64
|
setOrbitLimits(opts: Parameters<typeof tune.setOrbitLimits>[1]): void;
|
|
53
65
|
setOrbitSpherical(yaw: number, pitch: number, distance: number): void;
|
|
54
66
|
applyCameraMode(mode: Sonic3dCameraMode): void;
|
|
55
67
|
resize(cssW: number, cssH: number): void;
|
|
56
68
|
load(asset: Sonic3dAsset | null): Promise<void>;
|
|
57
69
|
fitToContent(): void;
|
|
70
|
+
setPostConfig(config: PostFxConfig | null): void;
|
|
71
|
+
setPostElementResolver(fn: ((key: string) => Element | null) | null): void;
|
|
72
|
+
setPostFrame(frame: Partial<PostFxUniforms>): void;
|
|
58
73
|
render(): void;
|
|
59
74
|
pick(normX: number, normY: number): SceneHit | null;
|
|
60
75
|
setHoverAt(normX: number, normY: number): SceneHit | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,IAAI,EAAgB,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG3D,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EACL,kBAAkB,EAElB,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAgB,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG3D,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC;A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E,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;KACvB,GAAG,aAAa;IAGjB,OAAO,CAAC,WAAW,UAAQ;IAK3B,OAAO,CAAC,SAAS,CAAoC;IACrD,OAAO,CAAC,SAAS,CAAoC;IACrD,OAAO,CAAC,QAAQ,CAAmC;CACpD"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Entrée publique `@supersoniks/concorde/3d/scene-runtime`.
|
|
3
3
|
* Implémentation : `runtime.ts` + helpers orbit/pick/load/….
|
|
4
4
|
*/
|
|
5
|
-
export { SceneRuntime, type SceneHit, type SceneRuntimeOptions, } from "./runtime";
|
|
5
|
+
export { SceneRuntime, PostFxCompileError, type SceneHit, type SceneRuntimeOptions, type PostFxConfig, type PostFxUniforms, } from "./runtime";
|
|
6
6
|
//# sourceMappingURL=scene-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-runtime.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/scene-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"scene-runtime.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/scene-runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,cAAc,GACpB,MAAM,WAAW,CAAC"}
|
|
@@ -17,6 +17,9 @@ declare function setExposure(ctx: TuneCtx, v: number): void;
|
|
|
17
17
|
declare function setFov(ctx: TuneCtx, v: number): void;
|
|
18
18
|
declare function setFit(ctx: TuneCtx, v: boolean): void;
|
|
19
19
|
declare function setAutoRotate(ctx: TuneCtx, v: boolean): void;
|
|
20
|
+
declare function setDamping(ctx: TuneCtx, v: number): void;
|
|
21
|
+
/** Coupe autoRotate + vide l’inertie OrbitControls. */
|
|
22
|
+
declare function stopMotion(ctx: TuneCtx): void;
|
|
20
23
|
declare function setOrbitLimits(ctx: TuneCtx, opts: Partial<OrbitLimits>): void;
|
|
21
24
|
declare function setOrbitSpherical(ctx: TuneCtx, yaw: number, pitch: number, distance: number): void;
|
|
22
25
|
export declare const tune: {
|
|
@@ -25,6 +28,8 @@ export declare const tune: {
|
|
|
25
28
|
readonly setFov: typeof setFov;
|
|
26
29
|
readonly setFit: typeof setFit;
|
|
27
30
|
readonly setAutoRotate: typeof setAutoRotate;
|
|
31
|
+
readonly setDamping: typeof setDamping;
|
|
32
|
+
readonly stopMotion: typeof stopMotion;
|
|
28
33
|
readonly setOrbitLimits: typeof setOrbitLimits;
|
|
29
34
|
readonly setOrbitSpherical: typeof setOrbitSpherical;
|
|
30
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tune.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/tune.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,KAAK,CAAC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AAC,MAAM,CAAC;IACxB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC;CACvB,CAAC;AAEF,iBAAS,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,QAEzC;AAED,iBAAS,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,QAE3C;AAED,iBAAS,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,QAItC;AAED,iBAAS,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,QAEvC;AAED,iBAAS,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,QAE9C;AAED,iBAAS,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,QAK1C;AAED,uDAAuD;AACvD,iBAAS,UAAU,CAAC,GAAG,EAAE,OAAO,QAS/B;AAED,iBAAS,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,QAG/D;AAED,iBAAS,iBAAiB,CACxB,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,QAajB;AAED,eAAO,MAAM,IAAI;;;;;;;;;;CAUP,CAAC"}
|
|
@@ -55,6 +55,13 @@ export type Sonic3dConfig = {
|
|
|
55
55
|
playOnHover?: boolean;
|
|
56
56
|
/** Libère le renderer hors viewport (défaut true). */
|
|
57
57
|
releaseOffscreen?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Garde RAF / runtime hors viewport (pont live).
|
|
60
|
+
* Aussi auto via `registerFrameConsumer`.
|
|
61
|
+
*/
|
|
62
|
+
playOffscreen?: boolean;
|
|
63
|
+
/** Inertie OrbitControls (défaut 0.08, 0 = off). */
|
|
64
|
+
damping?: number;
|
|
58
65
|
dprMax?: number;
|
|
59
66
|
aspectRatio?: string;
|
|
60
67
|
/**
|
|
@@ -111,6 +118,8 @@ export type Sonic3dOutput = {
|
|
|
111
118
|
distance: number;
|
|
112
119
|
yaw: number;
|
|
113
120
|
pitch: number;
|
|
121
|
+
/** 1 si la caméra bouge (orbit / inertie / autoRotate), sinon 0. */
|
|
122
|
+
moving?: number;
|
|
114
123
|
/** Présents après un pick réussi. */
|
|
115
124
|
hitX?: number;
|
|
116
125
|
hitY?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;AAEzD,gFAAgF;AAChF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAEtE;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,2CAA2C;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAE5B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,wCAAwC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IAC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AAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CACpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;AAEzD,gFAAgF;AAChF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAA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,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CACpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updated.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/updated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"updated.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/updated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAqDvC,iBAAS,OAAO,CACd,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,QA2BhD;AAED,eAAO,MAAM,UAAU;;CAAuB,CAAC"}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { LitElement, nothing } from "lit";
|
|
2
|
+
declare const SonicIF_base: (new (...args: import("../../../_types/types").MixinArgsType[]) => import("../../../mixins/Subscriber").SubscriberInterface<import("../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Affiche le slot si `.condition` est true **ou** via attributs SDUI
|
|
5
|
+
* `dataProvider` + `key` (+ `equals` / `not` / `truthy` / `gt` / `lt`).
|
|
4
6
|
*/
|
|
5
|
-
export declare class SonicIF extends
|
|
7
|
+
export declare class SonicIF extends SonicIF_base {
|
|
6
8
|
static styles: import("lit").CSSResult;
|
|
7
|
-
/**
|
|
8
|
-
* Le contenu s'affiche si la condition est évaluée à true.
|
|
9
|
-
*/
|
|
9
|
+
/** Mode Lit classique. */
|
|
10
10
|
condition: boolean;
|
|
11
|
+
key: string;
|
|
12
|
+
equals: string;
|
|
13
|
+
not: string;
|
|
14
|
+
truthy: boolean;
|
|
15
|
+
gt: string;
|
|
16
|
+
lt: string;
|
|
17
|
+
private attrMode;
|
|
18
|
+
private show;
|
|
11
19
|
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
12
20
|
}
|
|
21
|
+
export {};
|
|
13
22
|
//# sourceMappingURL=if.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"if.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/if/if.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"if.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/if/if.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC;;AAgBnD;;;GAGG;AACH,qBACa,OAAQ,SAAQ,YAAsB;IACjD,MAAM,CAAC,MAAM,0BAIX;IAEF,0BAA0B;IACC,SAAS,UAAS;IAEnB,GAAG,SAAM;IAET,MAAM,SAAM;IAEZ,GAAG,SAAM;IAER,MAAM,UAAS;IAEhB,EAAE,SAAM;IAER,EAAE,SAAM;IAElC,OAAO,CAAC,QAAQ;IAYhB,OAAO,CAAC,IAAI;IAUZ,MAAM;CAIP"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper clic → dispatch vers un store.
|
|
4
|
+
* `hold-repeat="170,50"` pour d-pad tactile.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SonicAction extends LitElement {
|
|
7
|
+
static styles: import("lit").CSSResult;
|
|
8
|
+
target: string;
|
|
9
|
+
type: string;
|
|
10
|
+
payload: unknown;
|
|
11
|
+
holdRepeat: string;
|
|
12
|
+
dispatchEventFlag: boolean;
|
|
13
|
+
private holdTimer;
|
|
14
|
+
private holdInterval;
|
|
15
|
+
private onPointerDown;
|
|
16
|
+
private onPointerUp;
|
|
17
|
+
private clearHold;
|
|
18
|
+
private emit;
|
|
19
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
export default SonicAction;
|
|
22
|
+
//# sourceMappingURL=action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C;;;GAGG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,0BAIX;IAGF,MAAM,SAAM;IAGZ,IAAI,SAAM;IAGV,OAAO,EAAE,OAAO,CAAQ;IAGxB,UAAU,SAAM;IAGhB,iBAAiB,UAAS;IAE1B,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,YAAY,CAAuB;IAE3C,OAAO,CAAC,aAAa,CAWnB;IAEF,OAAO,CAAC,WAAW,CAA0B;IAE7C,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,IAAI;IAeZ,MAAM;CAQP;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
type RepeatCfg = Record<string, [number, number]>;
|
|
3
|
+
/**
|
|
4
|
+
* Manette → actions store. Raf uniquement si une pad est connectée.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SonicGamepad extends LitElement {
|
|
7
|
+
static styles: import("lit").CSSResult;
|
|
8
|
+
target: string;
|
|
9
|
+
keymap: Record<string, string | {
|
|
10
|
+
type: string;
|
|
11
|
+
payload?: unknown;
|
|
12
|
+
}>;
|
|
13
|
+
deadzone: number;
|
|
14
|
+
repeat: RepeatCfg;
|
|
15
|
+
dataProvider: string;
|
|
16
|
+
dispatchEventFlag: boolean;
|
|
17
|
+
private connected;
|
|
18
|
+
private raf;
|
|
19
|
+
private prev;
|
|
20
|
+
private heldTimers;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
private onConnect;
|
|
24
|
+
private onDisconnect;
|
|
25
|
+
private scan;
|
|
26
|
+
private publishStatus;
|
|
27
|
+
private startLoop;
|
|
28
|
+
private stopLoop;
|
|
29
|
+
private poll;
|
|
30
|
+
private startRepeat;
|
|
31
|
+
private stopRepeat;
|
|
32
|
+
private clearHolds;
|
|
33
|
+
private fire;
|
|
34
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
+
}
|
|
36
|
+
export default SonicGamepad;
|
|
37
|
+
//# sourceMappingURL=gamepad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gamepad.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/gamepad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAO5C,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAmBlD;;GAEG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAIX;IAGF,MAAM,SAAM;IAGZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAQlE;IAGF,QAAQ,SAAQ;IAGhB,MAAM,EAAE,SAAS,CAAM;IAGvB,YAAY,SAAM;IAGlB,iBAAiB,UAAS;IAEjB,OAAO,CAAC,SAAS,CAAS;IAEnC,OAAO,CAAC,GAAG,CAAK;IAChB,OAAO,CAAC,IAAI,CAA8B;IAC1C,OAAO,CAAC,UAAU,CAA4D;IAE9E,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,IAAI;IASZ,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,IAAI;IA4BZ,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,IAAI;IAeZ,MAAM;CAGP;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* Zone tactile : tap, double-tap, swipe, long-press (+ drag optionnel).
|
|
4
|
+
*/
|
|
5
|
+
export declare class SonicGesture extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
target: string;
|
|
8
|
+
swipeThreshold: number;
|
|
9
|
+
longPressMs: number;
|
|
10
|
+
doubleTapMs: number;
|
|
11
|
+
drag: boolean;
|
|
12
|
+
dispatchEventFlag: boolean;
|
|
13
|
+
private startX;
|
|
14
|
+
private startY;
|
|
15
|
+
private startT;
|
|
16
|
+
private longTimer;
|
|
17
|
+
private lastTap;
|
|
18
|
+
private pointerId;
|
|
19
|
+
private onDown;
|
|
20
|
+
private onMove;
|
|
21
|
+
private onUp;
|
|
22
|
+
private emit;
|
|
23
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
export default SonicGesture;
|
|
26
|
+
//# sourceMappingURL=gesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gesture.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/gesture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C;;GAEG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAMX;IAGF,MAAM,SAAM;IAGZ,cAAc,SAAM;IAGpB,WAAW,SAAO;IAGlB,WAAW,SAAO;IAGlB,IAAI,UAAS;IAGb,iBAAiB,UAAS;IAE1B,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,SAAS,CAAuB;IAExC,OAAO,CAAC,MAAM,CAWZ;IAEF,OAAO,CAAC,MAAM,CAkBZ;IAEF,OAAO,CAAC,IAAI,CAiCV;IAEF,OAAO,CAAC,IAAI;IAaZ,MAAM;CAQP;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers JSONata purs pour sonic-store (PRNG, matrix, set immuable…).
|
|
3
|
+
* `$random` / `$now` volontairement absents — rejouabilité.
|
|
4
|
+
*/
|
|
5
|
+
import type { Expression } from "jsonata";
|
|
6
|
+
/** mulberry32 → { value: 0..1, seed } */
|
|
7
|
+
export declare function rand(seed: unknown): {
|
|
8
|
+
value: number;
|
|
9
|
+
seed: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function randInt(seed: unknown, n: unknown): {
|
|
12
|
+
value: number;
|
|
13
|
+
seed: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function clamp(value: unknown, min: unknown, max: unknown): number;
|
|
16
|
+
export declare function range(n: unknown): number[];
|
|
17
|
+
/** Set immuable par chemin dot (`a.b.0.c`). */
|
|
18
|
+
export declare function immutableSet(obj: unknown, path: unknown, value: unknown): unknown;
|
|
19
|
+
export declare function matrix(w: unknown, h: unknown, fill?: unknown): number[][];
|
|
20
|
+
/** Rotation 90° horaire d’une matrice 2D. */
|
|
21
|
+
export declare function rotate(mat: unknown): number[][];
|
|
22
|
+
export declare function registerInteractiveHelpers(expression: Expression): void;
|
|
23
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,yCAAyC;AACzC,wBAAgB,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAMnE;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAIlF;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAKxE;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAG1C;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,OAAO,GACb,OAAO,CAoBT;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,GAAE,OAAW,GAAG,MAAM,EAAE,EAAE,CAO5E;AAED,6CAA6C;AAC7C,wBAAgB,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,EAAE,CAgB/C;AAED,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAQvE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Addon interactivity déclarative (stores, inputs, matrix).
|
|
3
|
+
* Opt-in : `@supersoniks/concorde/interactive`
|
|
4
|
+
*/
|
|
5
|
+
export { dispatch, getStore, listStoreIds, type SonicActionMessage, } from "./registry";
|
|
6
|
+
export { SonicStore } from "./store";
|
|
7
|
+
export { SonicKeyboard } from "./keyboard";
|
|
8
|
+
export { SonicGamepad } from "./gamepad";
|
|
9
|
+
export { SonicGesture } from "./gesture";
|
|
10
|
+
export { SonicAction } from "./action";
|
|
11
|
+
export { SonicTicker } from "./ticker";
|
|
12
|
+
export { SonicMatrix } from "./matrix";
|
|
13
|
+
import "./store";
|
|
14
|
+
import "./keyboard";
|
|
15
|
+
import "./gamepad";
|
|
16
|
+
import "./gesture";
|
|
17
|
+
import "./action";
|
|
18
|
+
import "./ticker";
|
|
19
|
+
import "./matrix";
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,KAAK,kBAAkB,GACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,SAAS,CAAC;AACjB,OAAO,YAAY,CAAC;AACpB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
type KeymapValue = string | {
|
|
3
|
+
type: string;
|
|
4
|
+
payload?: unknown;
|
|
5
|
+
};
|
|
6
|
+
type Keymap = Record<string, KeymapValue>;
|
|
7
|
+
type RepeatCfg = Record<string, [number, number]>;
|
|
8
|
+
/**
|
|
9
|
+
* Source d’actions clavier → store (`target`).
|
|
10
|
+
* Opt-in `@supersoniks/concorde/interactive`.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SonicKeyboard extends LitElement {
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
target: string;
|
|
15
|
+
keymap: Keymap;
|
|
16
|
+
/** `document` | `focus` */
|
|
17
|
+
scope: "document" | "focus";
|
|
18
|
+
/** `{ "left": [delayMs, intervalMs] }` */
|
|
19
|
+
repeat: RepeatCfg;
|
|
20
|
+
keyup: boolean;
|
|
21
|
+
dispatchEventFlag: boolean;
|
|
22
|
+
private held;
|
|
23
|
+
connectedCallback(): void;
|
|
24
|
+
disconnectedCallback(): void;
|
|
25
|
+
protected updated(changed: Map<string | number | symbol, unknown>): void;
|
|
26
|
+
private bindTarget;
|
|
27
|
+
private onVis;
|
|
28
|
+
private onKeyDown;
|
|
29
|
+
private onKeyUp;
|
|
30
|
+
private releaseAll;
|
|
31
|
+
private isEditableTarget;
|
|
32
|
+
private toAction;
|
|
33
|
+
private emit;
|
|
34
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
+
}
|
|
36
|
+
export default SonicKeyboard;
|
|
37
|
+
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/keyboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,KAAK,WAAW,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAChE,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAC1C,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAGlD;;;GAGG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,0BAYX;IAGF,MAAM,SAAM;IAGZ,MAAM,EAAE,MAAM,CAAM;IAEpB,2BAA2B;IAE3B,KAAK,EAAE,UAAU,GAAG,OAAO,CAAc;IAEzC,0CAA0C;IAE1C,MAAM,EAAE,SAAS,CAAM;IAGvB,KAAK,UAAS;IAGd,iBAAiB,UAAS;IAE1B,OAAO,CAAC,IAAI,CAA8B;IAE1C,iBAAiB,IAAI,IAAI;IAWzB,oBAAoB,IAAI,IAAI;IAS5B,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAOxE,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,KAAK,CAEX;IAEF,OAAO,CAAC,SAAS,CA2Bf;IAEF,OAAO,CAAC,OAAO,CAYb;IAEF,OAAO,CAAC,UAAU,CAMhB;IAEF,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,IAAI;IAaZ,MAAM;CAGP;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
type Palette = Record<string, string>;
|
|
3
|
+
declare const SonicMatrix_base: (new (...args: import("../../../_types/types").MixinArgsType[]) => import("../../../mixins/Subscriber").SubscriberInterface<import("../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Rendu canvas d’une grille 2D (number[][] ou flat + cols) depuis dataProvider.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SonicMatrix extends SonicMatrix_base {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/** Clé vers la matrice dans le DP. */
|
|
10
|
+
key: string;
|
|
11
|
+
cols: number;
|
|
12
|
+
palette: Palette;
|
|
13
|
+
/** Taille cellule px, ou `auto`. */
|
|
14
|
+
cell: string;
|
|
15
|
+
gap: number;
|
|
16
|
+
radius: number;
|
|
17
|
+
/** Clé couche fantôme optionnelle. */
|
|
18
|
+
ghostKey: string;
|
|
19
|
+
labelKey: string;
|
|
20
|
+
private canvas;
|
|
21
|
+
private lastSig;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
protected updated(): void;
|
|
24
|
+
private readGrid;
|
|
25
|
+
private readGhost;
|
|
26
|
+
private colorFor;
|
|
27
|
+
private draw;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
}
|
|
30
|
+
export default SonicMatrix;
|
|
31
|
+
//# sourceMappingURL=matrix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;AAYtC;;GAEG;AACH,qBACa,WAAY,SAAQ,gBAAsB;IACrD,MAAM,CAAC,MAAM,0BAaX;IAEF,sCAAsC;IAEtC,GAAG,SAAU;IAGb,IAAI,SAAK;IAGT,OAAO,EAAE,OAAO,CASd;IAEF,oCAAoC;IAEpC,IAAI,SAAQ;IAGZ,GAAG,SAAK;IAGR,MAAM,SAAK;IAEX,sCAAsC;IAEtC,QAAQ,SAAM;IAGd,QAAQ,SAAM;IAEG,OAAO,CAAC,MAAM,CAAqB;IAEpD,OAAO,CAAC,OAAO,CAAM;IAErB,iBAAiB,IAAI,IAAI;IAKzB,SAAS,CAAC,OAAO,IAAI,IAAI;IAIzB,OAAO,CAAC,QAAQ;IAiBhB,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,IAAI;IA4DZ,MAAM;CAGP;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registre global des sonic-store + dispatch typé.
|
|
3
|
+
* Utilisé par keyboard / gamepad / gesture / action / ticker.
|
|
4
|
+
*/
|
|
5
|
+
export type SonicActionMessage = {
|
|
6
|
+
type: string;
|
|
7
|
+
payload?: unknown;
|
|
8
|
+
t?: number;
|
|
9
|
+
dt?: number;
|
|
10
|
+
};
|
|
11
|
+
export type StoreHandle = {
|
|
12
|
+
id: string;
|
|
13
|
+
dispatch: (action: SonicActionMessage) => void;
|
|
14
|
+
getState: () => unknown;
|
|
15
|
+
reset: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function registerStore(handle: StoreHandle): void;
|
|
18
|
+
export declare function unregisterStore(id: string): void;
|
|
19
|
+
export declare function getStore(id: string): StoreHandle | undefined;
|
|
20
|
+
/** Dispatch une action vers un store enregistré. No-op si absent. */
|
|
21
|
+
export declare function dispatch(storeId: string, action: SonicActionMessage): void;
|
|
22
|
+
export declare function listStoreIds(): string[];
|
|
23
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/registry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/C,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAIF,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAEvD;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAE5D;AAED,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAO1E;AAED,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { type SonicActionMessage } from "./registry";
|
|
3
|
+
/**
|
|
4
|
+
* Store déclaratif : state' = reducer($state, $action, $env) via JSONata.
|
|
5
|
+
* Opt-in : `@supersoniks/concorde/interactive`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SonicStore extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/** Identifiant du store (obligatoire pour dispatch). */
|
|
10
|
+
id: string;
|
|
11
|
+
/** DataProvider où publier l’état (défaut = id). */
|
|
12
|
+
dataProvider: string;
|
|
13
|
+
/** État initial (JSON attribut / objet). */
|
|
14
|
+
initial: unknown;
|
|
15
|
+
/** Expression JSONata du reducer. */
|
|
16
|
+
reducer: string;
|
|
17
|
+
maxStateBytes: number;
|
|
18
|
+
budgetMs: number;
|
|
19
|
+
/** Taille max de l’historique undo (0 = off). */
|
|
20
|
+
history: number;
|
|
21
|
+
private state;
|
|
22
|
+
private queue;
|
|
23
|
+
private draining;
|
|
24
|
+
private compiled;
|
|
25
|
+
private historyStack;
|
|
26
|
+
private lastError;
|
|
27
|
+
connectedCallback(): void;
|
|
28
|
+
disconnectedCallback(): void;
|
|
29
|
+
protected updated(changed: Map<string | number | symbol, unknown>): void;
|
|
30
|
+
private dpId;
|
|
31
|
+
private bootstrap;
|
|
32
|
+
private compileReducer;
|
|
33
|
+
private enqueue;
|
|
34
|
+
private drain;
|
|
35
|
+
private apply;
|
|
36
|
+
private reset;
|
|
37
|
+
private undo;
|
|
38
|
+
private publish;
|
|
39
|
+
private fail;
|
|
40
|
+
private clone;
|
|
41
|
+
/** API élément : dispatch manuel. */
|
|
42
|
+
dispatchAction(action: SonicActionMessage): void;
|
|
43
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
44
|
+
}
|
|
45
|
+
export default SonicStore;
|
|
46
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAK5C,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,YAAY,CAAC;AASpB;;;GAGG;AACH,qBACa,UAAW,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,0BAIX;IAEF,wDAAwD;IAExD,EAAE,SAAM;IAER,oDAAoD;IAEpD,YAAY,SAAM;IAElB,4CAA4C;IAE5C,OAAO,EAAE,OAAO,CAAQ;IAExB,qCAAqC;IAErC,OAAO,SAAM;IAGb,aAAa,SAA2B;IAGxC,QAAQ,SAAqB;IAE7B,iDAAiD;IAEjD,OAAO,SAAK;IAEZ,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAA2C;IAC3D,OAAO,CAAC,YAAY,CAAsB;IAC1C,OAAO,CAAC,SAAS,CAAuB;IAExC,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAK5B,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAexE,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,SAAS;IAgBjB,OAAO,CAAC,cAAc;IAwBtB,OAAO,CAAC,OAAO;YAaD,KAAK;IAanB,OAAO,CAAC,KAAK;IAiDb,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,IAAI;IAMZ,OAAO,CAAC,OAAO;IAUf,OAAO,CAAC,IAAI;IAYZ,OAAO,CAAC,KAAK;IASb,qCAAqC;IACrC,cAAc,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAIhD,MAAM;CAGP;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* Horloge déclarative : émet `tick` avec `dt` vers un store.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SonicTicker extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
target: string;
|
|
8
|
+
interval: number;
|
|
9
|
+
/** Chemin dans le DP du store pour l’intervalle (ex. `speed`). */
|
|
10
|
+
intervalKey: string;
|
|
11
|
+
/** Chemin booléen pause (ex. `running`). */
|
|
12
|
+
runningKey: string;
|
|
13
|
+
/** `interval` | `raf` */
|
|
14
|
+
mode: "interval" | "raf";
|
|
15
|
+
dispatchEventFlag: boolean;
|
|
16
|
+
private timer;
|
|
17
|
+
private raf;
|
|
18
|
+
private last;
|
|
19
|
+
private acc;
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
protected updated(changed: Map<string | number | symbol, unknown>): void;
|
|
23
|
+
private onVis;
|
|
24
|
+
private stop;
|
|
25
|
+
private restart;
|
|
26
|
+
private currentInterval;
|
|
27
|
+
private isRunning;
|
|
28
|
+
private path;
|
|
29
|
+
private emit;
|
|
30
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
31
|
+
}
|
|
32
|
+
export default SonicTicker;
|
|
33
|
+
//# sourceMappingURL=ticker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticker.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/ticker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAO5C;;GAEG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,0BAIX;IAGF,MAAM,SAAM;IAGZ,QAAQ,SAAO;IAEf,kEAAkE;IAElE,WAAW,SAAM;IAEjB,4CAA4C;IAE5C,UAAU,SAAM;IAEhB,yBAAyB;IAEzB,IAAI,EAAE,UAAU,GAAG,KAAK,CAAc;IAGtC,iBAAiB,UAAS;IAE1B,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,GAAG,CAAK;IAChB,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,GAAG,CAAK;IAEhB,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAM5B,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAYxE,OAAO,CAAC,KAAK,CAGX;IAEF,OAAO,CAAC,IAAI;IAYZ,OAAO,CAAC,OAAO;IAgCf,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,SAAS;IAUjB,OAAO,CAAC,IAAI;IAUZ,OAAO,CAAC,IAAI;IAcZ,MAAM;CAGP;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChannelSource, PassChannels, ReadRectResult, ShaderPassId, ShaderSources } from "./types";
|
|
1
|
+
import { ChannelSource, PassChannels, ReadRectResult, ShaderBufferFormat, ShaderPassId, ShaderSources } from "./types";
|
|
2
2
|
export type FrameUniforms = {
|
|
3
3
|
time: number;
|
|
4
4
|
timeDelta: number;
|
|
@@ -15,6 +15,22 @@ export declare function shouldUploadElementFrame(source: unknown, lastSeq: numbe
|
|
|
15
15
|
texSource: TexImageSource | null;
|
|
16
16
|
nextSrc?: string;
|
|
17
17
|
};
|
|
18
|
+
type BufferGlFormat = {
|
|
19
|
+
requested: ShaderBufferFormat;
|
|
20
|
+
active: ShaderBufferFormat;
|
|
21
|
+
internal: number;
|
|
22
|
+
format: number;
|
|
23
|
+
type: number;
|
|
24
|
+
filter: number;
|
|
25
|
+
float: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Résout le format GPU des buffers A–D.
|
|
29
|
+
* Exporté pour tests (mock `getExtension`).
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolveBufferGlFormat(gl: WebGL2RenderingContext, requested: ShaderBufferFormat): BufferGlFormat;
|
|
32
|
+
/** Reset du warn unique (tests). */
|
|
33
|
+
export declare function resetBufferFormatWarnFlag(): void;
|
|
18
34
|
export declare function parseChannelSource(value: string | undefined | null, fallbackUrl: string): ChannelSource;
|
|
19
35
|
export declare class ShaderToyRuntime {
|
|
20
36
|
private gl;
|
|
@@ -30,12 +46,26 @@ export declare class ShaderToyRuntime {
|
|
|
30
46
|
private activePasses;
|
|
31
47
|
private blackTexture;
|
|
32
48
|
private elementResolver;
|
|
49
|
+
private bufferFmt;
|
|
33
50
|
constructor(canvas: HTMLCanvasElement);
|
|
51
|
+
/** Format réellement utilisé pour les buffers A–D (après repli éventuel). */
|
|
52
|
+
get activeBufferFormat(): ShaderBufferFormat;
|
|
53
|
+
/**
|
|
54
|
+
* Change le format des buffers A–D. Recrée les FBO si la taille est déjà connue.
|
|
55
|
+
* Retourne le format actif (peut différer si extension manquante).
|
|
56
|
+
*/
|
|
57
|
+
setBufferFormat(requested: ShaderBufferFormat): ShaderBufferFormat;
|
|
34
58
|
/** True si le contexte a été perdu / déjà disposé. */
|
|
35
59
|
get isLost(): boolean;
|
|
36
60
|
private initGeometry;
|
|
37
61
|
resize(width: number, height: number): void;
|
|
38
62
|
setSources(sources: ShaderSources, channels: Map<ShaderPassId, PassChannels>): void;
|
|
63
|
+
/**
|
|
64
|
+
* Met à jour les bindings de canaux sans recompiler les programmes.
|
|
65
|
+
* Les URLs / clés `#élément` absentes des textures sont allouées à la demande
|
|
66
|
+
* (via `ensureTextures` / `ensureElementTexture` côté composant).
|
|
67
|
+
*/
|
|
68
|
+
setPassChannels(channels: Map<ShaderPassId, PassChannels>): void;
|
|
39
69
|
ensureTextures(urls: string[]): Promise<void>;
|
|
40
70
|
/** Alloue un slot texture vide pour un canal `#élément` (upload live ensuite). */
|
|
41
71
|
ensureElementTexture(key: string): void;
|
|
@@ -67,6 +97,7 @@ export declare class ShaderToyRuntime {
|
|
|
67
97
|
readRect(x: number, y: number, w: number, h: number): ReadRectResult | null;
|
|
68
98
|
/**
|
|
69
99
|
* Lit un rectangle d’un buffer ping-pong (dernier write) ou de l’Image (`pass === "image"`).
|
|
100
|
+
* Les buffers flottants renvoient un `Float32Array` ; Image / rgba8 → `Uint8Array`.
|
|
70
101
|
*/
|
|
71
102
|
readBufferRect(pass: ShaderPassId, x: number, y: number, w: number, h: number): ReadRectResult | null;
|
|
72
103
|
/**
|
|
@@ -87,4 +118,5 @@ export declare class ShaderToyRuntime {
|
|
|
87
118
|
*/
|
|
88
119
|
dispose(loseContext?: boolean): void;
|
|
89
120
|
}
|
|
121
|
+
export {};
|
|
90
122
|
//# sourceMappingURL=gl-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gl-runtime.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/shader/gl-runtime.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,cAAc,
|
|
1
|
+
{"version":3,"file":"gl-runtime.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/shader/gl-runtime.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,cAAc,EACd,kBAAkB,EAElB,YAAY,EACZ,aAAa,EAEd,MAAM,SAAS,CAAC;AAuDjB,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,GACf;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CA4CzE;AA8GD,KAAK,cAAc,GAAG;IACpB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAIF;;;GAGG;AACH,wBAAgB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