@flyingrobots/bijou 7.1.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/test/assertions.d.ts.map +1 -1
- package/dist/adapters/test/assertions.js +3 -2
- package/dist/adapters/test/assertions.js.map +1 -1
- package/dist/adapters/test/audit-style.d.ts.map +1 -1
- package/dist/adapters/test/audit-style.js +7 -4
- package/dist/adapters/test/audit-style.js.map +1 -1
- package/dist/adapters/test/clock.d.ts +2 -35
- package/dist/adapters/test/clock.d.ts.map +1 -1
- package/dist/adapters/test/clock.js +1 -131
- package/dist/adapters/test/clock.js.map +1 -1
- package/dist/adapters/test/clock.part01.d.ts +29 -0
- package/dist/adapters/test/clock.part01.d.ts.map +1 -0
- package/dist/adapters/test/clock.part01.js +6 -0
- package/dist/adapters/test/clock.part01.js.map +1 -0
- package/dist/adapters/test/clock.part02.d.ts +3 -0
- package/dist/adapters/test/clock.part02.d.ts.map +1 -0
- package/dist/adapters/test/clock.part02.js +123 -0
- package/dist/adapters/test/clock.part02.js.map +1 -0
- package/dist/adapters/test/fixtures.d.ts +3 -3
- package/dist/adapters/test/fixtures.d.ts.map +1 -1
- package/dist/adapters/test/fixtures.js +7 -4
- package/dist/adapters/test/fixtures.js.map +1 -1
- package/dist/adapters/test/index.d.ts +3 -0
- package/dist/adapters/test/index.d.ts.map +1 -1
- package/dist/adapters/test/index.js +5 -0
- package/dist/adapters/test/index.js.map +1 -1
- package/dist/adapters/test/io.d.ts +2 -48
- package/dist/adapters/test/io.d.ts.map +1 -1
- package/dist/adapters/test/io.js +1 -146
- package/dist/adapters/test/io.js.map +1 -1
- package/dist/adapters/test/io.part01.d.ts +29 -0
- package/dist/adapters/test/io.part01.d.ts.map +1 -0
- package/dist/adapters/test/io.part01.js +2 -0
- package/dist/adapters/test/io.part01.js.map +1 -0
- package/dist/adapters/test/io.part02.d.ts +3 -0
- package/dist/adapters/test/io.part02.d.ts.map +1 -0
- package/dist/adapters/test/io.part02.js +136 -0
- package/dist/adapters/test/io.part02.js.map +1 -0
- package/dist/core/active-binding-collection.d.ts.map +1 -1
- package/dist/core/active-binding-collection.js +61 -45
- package/dist/core/active-binding-collection.js.map +1 -1
- package/dist/core/ansi.d.ts +4 -0
- package/dist/core/ansi.d.ts.map +1 -1
- package/dist/core/ansi.js +7 -0
- package/dist/core/ansi.js.map +1 -1
- package/dist/core/app-shell-composition.js +7 -5
- package/dist/core/app-shell-composition.js.map +1 -1
- package/dist/core/bg-fill.d.ts.map +1 -1
- package/dist/core/bg-fill.js +5 -4
- package/dist/core/bg-fill.js.map +1 -1
- package/dist/core/binding-frame-update.js +8 -10
- package/dist/core/binding-frame-update.js.map +1 -1
- package/dist/core/binding-lifecycle.d.ts +3 -64
- package/dist/core/binding-lifecycle.d.ts.map +1 -1
- package/dist/core/binding-lifecycle.js +2 -356
- package/dist/core/binding-lifecycle.js.map +1 -1
- package/dist/core/binding-lifecycle.part01.d.ts +63 -0
- package/dist/core/binding-lifecycle.part01.d.ts.map +1 -0
- package/dist/core/binding-lifecycle.part01.js +30 -0
- package/dist/core/binding-lifecycle.part01.js.map +1 -0
- package/dist/core/binding-lifecycle.part02.d.ts +6 -0
- package/dist/core/binding-lifecycle.part02.d.ts.map +1 -0
- package/dist/core/binding-lifecycle.part02.js +77 -0
- package/dist/core/binding-lifecycle.part02.js.map +1 -0
- package/dist/core/binding-lifecycle.part03.d.ts +6 -0
- package/dist/core/binding-lifecycle.part03.d.ts.map +1 -0
- package/dist/core/binding-lifecycle.part03.js +67 -0
- package/dist/core/binding-lifecycle.part03.js.map +1 -0
- package/dist/core/binding-lifecycle.part04.d.ts +8 -0
- package/dist/core/binding-lifecycle.part04.d.ts.map +1 -0
- package/dist/core/binding-lifecycle.part04.js +71 -0
- package/dist/core/binding-lifecycle.part04.js.map +1 -0
- package/dist/core/binding-lifecycle.part05.d.ts +6 -0
- package/dist/core/binding-lifecycle.part05.d.ts.map +1 -0
- package/dist/core/binding-lifecycle.part05.js +73 -0
- package/dist/core/binding-lifecycle.part05.js.map +1 -0
- package/dist/core/binding-lifecycle.part06.d.ts +20 -0
- package/dist/core/binding-lifecycle.part06.d.ts.map +1 -0
- package/dist/core/binding-lifecycle.part06.js +64 -0
- package/dist/core/binding-lifecycle.part06.js.map +1 -0
- package/dist/core/binding.d.ts +9 -191
- package/dist/core/binding.d.ts.map +1 -1
- package/dist/core/binding.js +7 -586
- package/dist/core/binding.js.map +1 -1
- package/dist/core/binding.part01.d.ts +92 -0
- package/dist/core/binding.part01.d.ts.map +1 -0
- package/dist/core/binding.part01.js +10 -0
- package/dist/core/binding.part01.js.map +1 -0
- package/dist/core/binding.part02.d.ts +50 -0
- package/dist/core/binding.part02.d.ts.map +1 -0
- package/dist/core/binding.part02.js +17 -0
- package/dist/core/binding.part02.js.map +1 -0
- package/dist/core/binding.part03.d.ts +18 -0
- package/dist/core/binding.part03.d.ts.map +1 -0
- package/dist/core/binding.part03.js +70 -0
- package/dist/core/binding.part03.js.map +1 -0
- package/dist/core/binding.part04.d.ts +17 -0
- package/dist/core/binding.part04.d.ts.map +1 -0
- package/dist/core/binding.part04.js +57 -0
- package/dist/core/binding.part04.js.map +1 -0
- package/dist/core/binding.part05.d.ts +15 -0
- package/dist/core/binding.part05.d.ts.map +1 -0
- package/dist/core/binding.part05.js +78 -0
- package/dist/core/binding.part05.js.map +1 -0
- package/dist/core/binding.part06.d.ts +10 -0
- package/dist/core/binding.part06.d.ts.map +1 -0
- package/dist/core/binding.part06.js +48 -0
- package/dist/core/binding.part06.js.map +1 -0
- package/dist/core/binding.part07.d.ts +9 -0
- package/dist/core/binding.part07.d.ts.map +1 -0
- package/dist/core/binding.part07.js +83 -0
- package/dist/core/binding.part07.js.map +1 -0
- package/dist/core/binding.part08.d.ts +4 -0
- package/dist/core/binding.part08.d.ts.map +1 -0
- package/dist/core/binding.part08.js +81 -0
- package/dist/core/binding.part08.js.map +1 -0
- package/dist/core/binding.part09.d.ts +23 -0
- package/dist/core/binding.part09.d.ts.map +1 -0
- package/dist/core/binding.part09.js +76 -0
- package/dist/core/binding.part09.js.map +1 -0
- package/dist/core/binding.part10.d.ts +8 -0
- package/dist/core/binding.part10.d.ts.map +1 -0
- package/dist/core/binding.part10.js +84 -0
- package/dist/core/binding.part10.js.map +1 -0
- package/dist/core/binding.part11.d.ts +6 -0
- package/dist/core/binding.part11.d.ts.map +1 -0
- package/dist/core/binding.part11.js +27 -0
- package/dist/core/binding.part11.js.map +1 -0
- package/dist/core/block-metadata.d.ts +5 -112
- package/dist/core/block-metadata.d.ts.map +1 -1
- package/dist/core/block-metadata.js +3 -375
- package/dist/core/block-metadata.js.map +1 -1
- package/dist/core/block-metadata.part01.d.ts +76 -0
- package/dist/core/block-metadata.part01.d.ts.map +1 -0
- package/dist/core/block-metadata.part01.js +2 -0
- package/dist/core/block-metadata.part01.js.map +1 -0
- package/dist/core/block-metadata.part02.d.ts +37 -0
- package/dist/core/block-metadata.part02.d.ts.map +1 -0
- package/dist/core/block-metadata.part02.js +59 -0
- package/dist/core/block-metadata.part02.js.map +1 -0
- package/dist/core/block-metadata.part03.d.ts +11 -0
- package/dist/core/block-metadata.part03.d.ts.map +1 -0
- package/dist/core/block-metadata.part03.js +81 -0
- package/dist/core/block-metadata.part03.js.map +1 -0
- package/dist/core/block-metadata.part04.d.ts +8 -0
- package/dist/core/block-metadata.part04.d.ts.map +1 -0
- package/dist/core/block-metadata.part04.js +73 -0
- package/dist/core/block-metadata.part04.js.map +1 -0
- package/dist/core/block-metadata.part05.d.ts +7 -0
- package/dist/core/block-metadata.part05.d.ts.map +1 -0
- package/dist/core/block-metadata.part05.js +64 -0
- package/dist/core/block-metadata.part05.js.map +1 -0
- package/dist/core/block-metadata.part06.d.ts +11 -0
- package/dist/core/block-metadata.part06.d.ts.map +1 -0
- package/dist/core/block-metadata.part06.js +72 -0
- package/dist/core/block-metadata.part06.js.map +1 -0
- package/dist/core/block-metadata.part07.d.ts +9 -0
- package/dist/core/block-metadata.part07.d.ts.map +1 -0
- package/dist/core/block-metadata.part07.js +49 -0
- package/dist/core/block-metadata.part07.js.map +1 -0
- package/dist/core/block-tree-render.js +7 -8
- package/dist/core/block-tree-render.js.map +1 -1
- package/dist/core/clock.d.ts.map +1 -1
- package/dist/core/clock.js +8 -1
- package/dist/core/clock.js.map +1 -1
- package/dist/core/component-metadata.d.ts +3 -62
- package/dist/core/component-metadata.d.ts.map +1 -1
- package/dist/core/component-metadata.js +2 -157
- package/dist/core/component-metadata.js.map +1 -1
- package/dist/core/component-metadata.part01.d.ts +63 -0
- package/dist/core/component-metadata.part01.d.ts.map +1 -0
- package/dist/core/component-metadata.part01.js +31 -0
- package/dist/core/component-metadata.part01.js.map +1 -0
- package/dist/core/component-metadata.part02.d.ts +9 -0
- package/dist/core/component-metadata.part02.d.ts.map +1 -0
- package/dist/core/component-metadata.part02.js +77 -0
- package/dist/core/component-metadata.part02.js.map +1 -0
- package/dist/core/component-metadata.part03.d.ts +12 -0
- package/dist/core/component-metadata.part03.d.ts.map +1 -0
- package/dist/core/component-metadata.part03.js +55 -0
- package/dist/core/component-metadata.part03.js.map +1 -0
- package/dist/core/components/alert.d.ts +1 -1
- package/dist/core/components/alert.d.ts.map +1 -1
- package/dist/core/components/alert.js.map +1 -1
- package/dist/core/components/badge.d.ts.map +1 -1
- package/dist/core/components/badge.js +9 -7
- package/dist/core/components/badge.js.map +1 -1
- package/dist/core/components/box-v3.d.ts.map +1 -1
- package/dist/core/components/box-v3.js +10 -10
- package/dist/core/components/box-v3.js.map +1 -1
- package/dist/core/components/box.d.ts +2 -2
- package/dist/core/components/box.d.ts.map +1 -1
- package/dist/core/components/box.js.map +1 -1
- package/dist/core/components/braille-chart.d.ts.map +1 -1
- package/dist/core/components/braille-chart.js +9 -2
- package/dist/core/components/braille-chart.js.map +1 -1
- package/dist/core/components/constrain.d.ts +1 -1
- package/dist/core/components/constrain.d.ts.map +1 -1
- package/dist/core/components/constrain.js.map +1 -1
- package/dist/core/components/cursor-guard.d.ts +1 -0
- package/dist/core/components/cursor-guard.d.ts.map +1 -1
- package/dist/core/components/cursor-guard.js +2 -18
- package/dist/core/components/cursor-guard.js.map +1 -1
- package/dist/core/components/dag-edges.d.ts.map +1 -1
- package/dist/core/components/dag-edges.js +5 -3
- package/dist/core/components/dag-edges.js.map +1 -1
- package/dist/core/components/dag-layout.d.ts.map +1 -1
- package/dist/core/components/dag-layout.js +19 -19
- package/dist/core/components/dag-layout.js.map +1 -1
- package/dist/core/components/dag-render.d.ts.map +1 -1
- package/dist/core/components/dag-render.js +23 -27
- package/dist/core/components/dag-render.js.map +1 -1
- package/dist/core/components/dag-source.d.ts.map +1 -1
- package/dist/core/components/dag-source.js +23 -29
- package/dist/core/components/dag-source.js.map +1 -1
- package/dist/core/components/dag-stats-types.d.ts +16 -0
- package/dist/core/components/dag-stats-types.d.ts.map +1 -0
- package/dist/core/components/dag-stats-types.js +2 -0
- package/dist/core/components/dag-stats-types.js.map +1 -0
- package/dist/core/components/dag-stats.d.ts +3 -17
- package/dist/core/components/dag-stats.d.ts.map +1 -1
- package/dist/core/components/dag-stats.js +25 -2
- package/dist/core/components/dag-stats.js.map +1 -1
- package/dist/core/components/dag.d.ts +2 -148
- package/dist/core/components/dag.d.ts.map +1 -1
- package/dist/core/components/dag.js +1 -40
- package/dist/core/components/dag.js.map +1 -1
- package/dist/core/components/dag.part01.d.ts +78 -0
- package/dist/core/components/dag.part01.d.ts.map +1 -0
- package/dist/core/components/dag.part01.js +2 -0
- package/dist/core/components/dag.part01.js.map +1 -0
- package/dist/core/components/dag.part02.d.ts +7 -0
- package/dist/core/components/dag.part02.d.ts.map +1 -0
- package/dist/core/components/dag.part02.js +41 -0
- package/dist/core/components/dag.part02.js.map +1 -0
- package/dist/core/components/data-viz-utils.d.ts.map +1 -1
- package/dist/core/components/data-viz-utils.js +17 -16
- package/dist/core/components/data-viz-utils.js.map +1 -1
- package/dist/core/components/enumerated-list.d.ts.map +1 -1
- package/dist/core/components/enumerated-list.js +15 -19
- package/dist/core/components/enumerated-list.js.map +1 -1
- package/dist/core/components/explainability.js +1 -1
- package/dist/core/components/explainability.js.map +1 -1
- package/dist/core/components/hyperlink.js +2 -2
- package/dist/core/components/hyperlink.js.map +1 -1
- package/dist/core/components/index.d.ts.map +1 -1
- package/dist/core/components/index.js.map +1 -1
- package/dist/core/components/inspector-types.d.ts +40 -0
- package/dist/core/components/inspector-types.d.ts.map +1 -0
- package/dist/core/components/inspector-types.js +2 -0
- package/dist/core/components/inspector-types.js.map +1 -0
- package/dist/core/components/inspector.d.ts +2 -39
- package/dist/core/components/inspector.d.ts.map +1 -1
- package/dist/core/components/inspector.js.map +1 -1
- package/dist/core/components/inspector.test-style.d.ts +3 -0
- package/dist/core/components/inspector.test-style.d.ts.map +1 -0
- package/dist/core/components/inspector.test-style.js +52 -0
- package/dist/core/components/inspector.test-style.js.map +1 -0
- package/dist/core/components/log.d.ts.map +1 -1
- package/dist/core/components/log.js.map +1 -1
- package/dist/core/components/logo.d.ts +2 -0
- package/dist/core/components/logo.d.ts.map +1 -1
- package/dist/core/components/logo.js +2 -1
- package/dist/core/components/logo.js.map +1 -1
- package/dist/core/components/markdown-parse.d.ts.map +1 -1
- package/dist/core/components/markdown-parse.js +26 -33
- package/dist/core/components/markdown-parse.js.map +1 -1
- package/dist/core/components/markdown-render.d.ts +0 -16
- package/dist/core/components/markdown-render.d.ts.map +1 -1
- package/dist/core/components/markdown-render.js +24 -37
- package/dist/core/components/markdown-render.js.map +1 -1
- package/dist/core/components/markdown.d.ts +1 -1
- package/dist/core/components/markdown.d.ts.map +1 -1
- package/dist/core/components/markdown.js.map +1 -1
- package/dist/core/components/paginator.d.ts.map +1 -1
- package/dist/core/components/paginator.js +5 -3
- package/dist/core/components/paginator.js.map +1 -1
- package/dist/core/components/perf-overlay.js +1 -1
- package/dist/core/components/perf-overlay.js.map +1 -1
- package/dist/core/components/preference-list.d.ts.map +1 -1
- package/dist/core/components/preference-list.js +26 -25
- package/dist/core/components/preference-list.js.map +1 -1
- package/dist/core/components/progress.d.ts +1 -2
- package/dist/core/components/progress.d.ts.map +1 -1
- package/dist/core/components/progress.js +4 -3
- package/dist/core/components/progress.js.map +1 -1
- package/dist/core/components/separator-v3.d.ts.map +1 -1
- package/dist/core/components/separator-v3.js +8 -6
- package/dist/core/components/separator-v3.js.map +1 -1
- package/dist/core/components/sparkline.d.ts.map +1 -1
- package/dist/core/components/sparkline.js +5 -6
- package/dist/core/components/sparkline.js.map +1 -1
- package/dist/core/components/stats-panel.js +2 -2
- package/dist/core/components/stats-panel.js.map +1 -1
- package/dist/core/components/stepper.js +1 -1
- package/dist/core/components/stepper.js.map +1 -1
- package/dist/core/components/surface-text.d.ts.map +1 -1
- package/dist/core/components/surface-text.js +9 -11
- package/dist/core/components/surface-text.js.map +1 -1
- package/dist/core/components/table-v3.js +20 -23
- package/dist/core/components/table-v3.js.map +1 -1
- package/dist/core/components/table.d.ts +2 -2
- package/dist/core/components/table.d.ts.map +1 -1
- package/dist/core/components/table.js +35 -38
- package/dist/core/components/table.js.map +1 -1
- package/dist/core/components/tabs.js +1 -1
- package/dist/core/components/tabs.js.map +1 -1
- package/dist/core/components/timeline.js.map +1 -1
- package/dist/core/components/timer.js +3 -3
- package/dist/core/components/timer.js.map +1 -1
- package/dist/core/components/tree.js +1 -1
- package/dist/core/components/tree.js.map +1 -1
- package/dist/core/detect/tty.js +3 -2
- package/dist/core/detect/tty.js.map +1 -1
- package/dist/core/forms/filter-interactive.d.ts.map +1 -1
- package/dist/core/forms/filter-interactive.js +8 -8
- package/dist/core/forms/filter-interactive.js.map +1 -1
- package/dist/core/forms/filter.js +7 -2
- package/dist/core/forms/filter.js.map +1 -1
- package/dist/core/forms/form-utils.d.ts +3 -155
- package/dist/core/forms/form-utils.d.ts.map +1 -1
- package/dist/core/forms/form-utils.js +2 -231
- package/dist/core/forms/form-utils.js.map +1 -1
- package/dist/core/forms/form-utils.part01.d.ts +30 -0
- package/dist/core/forms/form-utils.part01.d.ts.map +1 -0
- package/dist/core/forms/form-utils.part01.js +86 -0
- package/dist/core/forms/form-utils.part01.js.map +1 -0
- package/dist/core/forms/form-utils.part02.d.ts +6 -0
- package/dist/core/forms/form-utils.part02.d.ts.map +1 -0
- package/dist/core/forms/form-utils.part02.js +27 -0
- package/dist/core/forms/form-utils.part02.js.map +1 -0
- package/dist/core/forms/group.d.ts.map +1 -1
- package/dist/core/forms/group.js +5 -0
- package/dist/core/forms/group.js.map +1 -1
- package/dist/core/forms/input.js +1 -1
- package/dist/core/forms/input.js.map +1 -1
- package/dist/core/forms/multiselect.js +11 -23
- package/dist/core/forms/multiselect.js.map +1 -1
- package/dist/core/forms/note.d.ts.map +1 -1
- package/dist/core/forms/note.js +2 -1
- package/dist/core/forms/note.js.map +1 -1
- package/dist/core/forms/select-types.d.ts +12 -0
- package/dist/core/forms/select-types.d.ts.map +1 -0
- package/dist/core/forms/select-types.js +2 -0
- package/dist/core/forms/select-types.js.map +1 -0
- package/dist/core/forms/select.d.ts +2 -11
- package/dist/core/forms/select.d.ts.map +1 -1
- package/dist/core/forms/select.js +12 -33
- package/dist/core/forms/select.js.map +1 -1
- package/dist/core/forms/textarea-editor.d.ts +0 -21
- package/dist/core/forms/textarea-editor.d.ts.map +1 -1
- package/dist/core/forms/textarea-editor.js +17 -37
- package/dist/core/forms/textarea-editor.js.map +1 -1
- package/dist/core/forms/textarea.js +1 -1
- package/dist/core/forms/textarea.js.map +1 -1
- package/dist/core/forms/wizard.d.ts +8 -3
- package/dist/core/forms/wizard.d.ts.map +1 -1
- package/dist/core/forms/wizard.js +11 -1
- package/dist/core/forms/wizard.js.map +1 -1
- package/dist/core/graphql-bijou-block.d.ts +5 -93
- package/dist/core/graphql-bijou-block.d.ts.map +1 -1
- package/dist/core/graphql-bijou-block.js +4 -569
- package/dist/core/graphql-bijou-block.js.map +1 -1
- package/dist/core/graphql-bijou-block.part01.d.ts +97 -0
- package/dist/core/graphql-bijou-block.part01.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part01.js +3 -0
- package/dist/core/graphql-bijou-block.part01.js.map +1 -0
- package/dist/core/graphql-bijou-block.part02.d.ts +26 -0
- package/dist/core/graphql-bijou-block.part02.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part02.js +45 -0
- package/dist/core/graphql-bijou-block.part02.js.map +1 -0
- package/dist/core/graphql-bijou-block.part03.d.ts +4 -0
- package/dist/core/graphql-bijou-block.part03.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part03.js +69 -0
- package/dist/core/graphql-bijou-block.part03.js.map +1 -0
- package/dist/core/graphql-bijou-block.part04.d.ts +4 -0
- package/dist/core/graphql-bijou-block.part04.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part04.js +39 -0
- package/dist/core/graphql-bijou-block.part04.js.map +1 -0
- package/dist/core/graphql-bijou-block.part05.d.ts +6 -0
- package/dist/core/graphql-bijou-block.part05.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part05.js +84 -0
- package/dist/core/graphql-bijou-block.part05.js.map +1 -0
- package/dist/core/graphql-bijou-block.part06.d.ts +10 -0
- package/dist/core/graphql-bijou-block.part06.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part06.js +85 -0
- package/dist/core/graphql-bijou-block.part06.js.map +1 -0
- package/dist/core/graphql-bijou-block.part07.d.ts +10 -0
- package/dist/core/graphql-bijou-block.part07.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part07.js +80 -0
- package/dist/core/graphql-bijou-block.part07.js.map +1 -0
- package/dist/core/graphql-bijou-block.part08.d.ts +23 -0
- package/dist/core/graphql-bijou-block.part08.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part08.js +79 -0
- package/dist/core/graphql-bijou-block.part08.js.map +1 -0
- package/dist/core/graphql-bijou-block.part09.d.ts +11 -0
- package/dist/core/graphql-bijou-block.part09.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part09.js +72 -0
- package/dist/core/graphql-bijou-block.part09.js.map +1 -0
- package/dist/core/graphql-bijou-block.part10.d.ts +3 -0
- package/dist/core/graphql-bijou-block.part10.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.part10.js +38 -0
- package/dist/core/graphql-bijou-block.part10.js.map +1 -0
- package/dist/core/graphql-bijou-block.test-support.d.ts +18 -0
- package/dist/core/graphql-bijou-block.test-support.d.ts.map +1 -0
- package/dist/core/graphql-bijou-block.test-support.js +80 -0
- package/dist/core/graphql-bijou-block.test-support.js.map +1 -0
- package/dist/core/graphql-parser-utils.d.ts +3 -0
- package/dist/core/graphql-parser-utils.d.ts.map +1 -0
- package/dist/core/graphql-parser-utils.js +18 -0
- package/dist/core/graphql-parser-utils.js.map +1 -0
- package/dist/core/key-input.d.ts.map +1 -1
- package/dist/core/key-input.js +2 -0
- package/dist/core/key-input.js.map +1 -1
- package/dist/core/layout/envelope.d.ts +6 -173
- package/dist/core/layout/envelope.d.ts.map +1 -1
- package/dist/core/layout/envelope.js +4 -335
- package/dist/core/layout/envelope.js.map +1 -1
- package/dist/core/layout/envelope.part01.d.ts +88 -0
- package/dist/core/layout/envelope.part01.d.ts.map +1 -0
- package/dist/core/layout/envelope.part01.js +2 -0
- package/dist/core/layout/envelope.part01.js.map +1 -0
- package/dist/core/layout/envelope.part02.d.ts +72 -0
- package/dist/core/layout/envelope.part02.d.ts.map +1 -0
- package/dist/core/layout/envelope.part02.js +33 -0
- package/dist/core/layout/envelope.part02.js.map +1 -0
- package/dist/core/layout/envelope.part03.d.ts +14 -0
- package/dist/core/layout/envelope.part03.d.ts.map +1 -0
- package/dist/core/layout/envelope.part03.js +81 -0
- package/dist/core/layout/envelope.part03.js.map +1 -0
- package/dist/core/layout/envelope.part04.d.ts +6 -0
- package/dist/core/layout/envelope.part04.d.ts.map +1 -0
- package/dist/core/layout/envelope.part04.js +79 -0
- package/dist/core/layout/envelope.part04.js.map +1 -0
- package/dist/core/layout/envelope.part05.d.ts +5 -0
- package/dist/core/layout/envelope.part05.d.ts.map +1 -0
- package/dist/core/layout/envelope.part05.js +40 -0
- package/dist/core/layout/envelope.part05.js.map +1 -0
- package/dist/core/layout/envelope.part06.d.ts +10 -0
- package/dist/core/layout/envelope.part06.d.ts.map +1 -0
- package/dist/core/layout/envelope.part06.js +94 -0
- package/dist/core/layout/envelope.part06.js.map +1 -0
- package/dist/core/layout/envelope.part07.d.ts +8 -0
- package/dist/core/layout/envelope.part07.d.ts.map +1 -0
- package/dist/core/layout/envelope.part07.js +26 -0
- package/dist/core/layout/envelope.part07.js.map +1 -0
- package/dist/core/layout/flex-types.d.ts +18 -0
- package/dist/core/layout/flex-types.d.ts.map +1 -0
- package/dist/core/layout/flex-types.js +2 -0
- package/dist/core/layout/flex-types.js.map +1 -0
- package/dist/core/layout/flex.d.ts +2 -17
- package/dist/core/layout/flex.d.ts.map +1 -1
- package/dist/core/layout/flex.js +15 -17
- package/dist/core/layout/flex.js.map +1 -1
- package/dist/core/layout/geometry.d.ts.map +1 -1
- package/dist/core/layout/geometry.js +13 -15
- package/dist/core/layout/geometry.js.map +1 -1
- package/dist/core/mode-render.d.ts +1 -3
- package/dist/core/mode-render.d.ts.map +1 -1
- package/dist/core/mode-render.js +1 -1
- package/dist/core/mode-render.js.map +1 -1
- package/dist/core/render/differ.d.ts.map +1 -1
- package/dist/core/render/differ.js +46 -52
- package/dist/core/render/differ.js.map +1 -1
- package/dist/core/render/packed-cell.d.ts +3 -109
- package/dist/core/render/packed-cell.d.ts.map +1 -1
- package/dist/core/render/packed-cell.js +3 -300
- package/dist/core/render/packed-cell.js.map +1 -1
- package/dist/core/render/packed-cell.part01.d.ts +34 -0
- package/dist/core/render/packed-cell.part01.d.ts.map +1 -0
- package/dist/core/render/packed-cell.part01.js +98 -0
- package/dist/core/render/packed-cell.part01.js.map +1 -0
- package/dist/core/render/packed-cell.part02.d.ts +11 -0
- package/dist/core/render/packed-cell.part02.d.ts.map +1 -0
- package/dist/core/render/packed-cell.part02.js +93 -0
- package/dist/core/render/packed-cell.part02.js.map +1 -0
- package/dist/core/render/packed-cell.part03.d.ts +4 -0
- package/dist/core/render/packed-cell.part03.d.ts.map +1 -0
- package/dist/core/render/packed-cell.part03.js +31 -0
- package/dist/core/render/packed-cell.part03.js.map +1 -0
- package/dist/core/render/safe-read.d.ts +12 -0
- package/dist/core/render/safe-read.d.ts.map +1 -0
- package/dist/core/render/safe-read.js +37 -0
- package/dist/core/render/safe-read.js.map +1 -0
- package/dist/core/runtime-viewport.d.ts +2 -2
- package/dist/core/runtime-viewport.d.ts.map +1 -1
- package/dist/core/runtime-viewport.js.map +1 -1
- package/dist/core/schema-block.d.ts +3 -62
- package/dist/core/schema-block.d.ts.map +1 -1
- package/dist/core/schema-block.js +2 -360
- package/dist/core/schema-block.js.map +1 -1
- package/dist/core/schema-block.part01.d.ts +59 -0
- package/dist/core/schema-block.part01.d.ts.map +1 -0
- package/dist/core/schema-block.part01.js +10 -0
- package/dist/core/schema-block.part01.js.map +1 -0
- package/dist/core/schema-block.part02.d.ts +7 -0
- package/dist/core/schema-block.part02.d.ts.map +1 -0
- package/dist/core/schema-block.part02.js +63 -0
- package/dist/core/schema-block.part02.js.map +1 -0
- package/dist/core/schema-block.part03.d.ts +22 -0
- package/dist/core/schema-block.part03.d.ts.map +1 -0
- package/dist/core/schema-block.part03.js +70 -0
- package/dist/core/schema-block.part03.js.map +1 -0
- package/dist/core/schema-block.part04.d.ts +12 -0
- package/dist/core/schema-block.part04.d.ts.map +1 -0
- package/dist/core/schema-block.part04.js +70 -0
- package/dist/core/schema-block.part04.js.map +1 -0
- package/dist/core/schema-block.part05.d.ts +10 -0
- package/dist/core/schema-block.part05.d.ts.map +1 -0
- package/dist/core/schema-block.part05.js +74 -0
- package/dist/core/schema-block.part05.js.map +1 -0
- package/dist/core/schema-block.part06.d.ts +16 -0
- package/dist/core/schema-block.part06.d.ts.map +1 -0
- package/dist/core/schema-block.part06.js +59 -0
- package/dist/core/schema-block.part06.js.map +1 -0
- package/dist/core/schema-block.test-support.d.ts +9 -0
- package/dist/core/schema-block.test-support.d.ts.map +1 -0
- package/dist/core/schema-block.test-support.js +60 -0
- package/dist/core/schema-block.test-support.js.map +1 -0
- package/dist/core/schema-inert-data.d.ts +4 -0
- package/dist/core/schema-inert-data.d.ts.map +1 -0
- package/dist/core/schema-inert-data.js +85 -0
- package/dist/core/schema-inert-data.js.map +1 -0
- package/dist/core/selection.d.ts +4 -126
- package/dist/core/selection.d.ts.map +1 -1
- package/dist/core/selection.js +2 -349
- package/dist/core/selection.js.map +1 -1
- package/dist/core/selection.part01.d.ts +87 -0
- package/dist/core/selection.part01.d.ts.map +1 -0
- package/dist/core/selection.part01.js +2 -0
- package/dist/core/selection.part01.js.map +1 -0
- package/dist/core/selection.part02.d.ts +37 -0
- package/dist/core/selection.part02.d.ts.map +1 -0
- package/dist/core/selection.part02.js +60 -0
- package/dist/core/selection.part02.js.map +1 -0
- package/dist/core/selection.part03.d.ts +7 -0
- package/dist/core/selection.part03.d.ts.map +1 -0
- package/dist/core/selection.part03.js +77 -0
- package/dist/core/selection.part03.js.map +1 -0
- package/dist/core/selection.part04.d.ts +5 -0
- package/dist/core/selection.part04.d.ts.map +1 -0
- package/dist/core/selection.part04.js +65 -0
- package/dist/core/selection.part04.js.map +1 -0
- package/dist/core/selection.part05.d.ts +5 -0
- package/dist/core/selection.part05.d.ts.map +1 -0
- package/dist/core/selection.part05.js +61 -0
- package/dist/core/selection.part05.js.map +1 -0
- package/dist/core/selection.part06.d.ts +14 -0
- package/dist/core/selection.part06.d.ts.map +1 -0
- package/dist/core/selection.part06.js +80 -0
- package/dist/core/selection.part06.js.map +1 -0
- package/dist/core/selection.part07.d.ts +6 -0
- package/dist/core/selection.part07.d.ts.map +1 -0
- package/dist/core/selection.part07.js +27 -0
- package/dist/core/selection.part07.js.map +1 -0
- package/dist/core/standard-blocks/block-definitions.d.ts +4 -0
- package/dist/core/standard-blocks/block-definitions.d.ts.map +1 -0
- package/dist/core/standard-blocks/block-definitions.js +4 -0
- package/dist/core/standard-blocks/block-definitions.js.map +1 -0
- package/dist/core/standard-blocks/block-definitions.part01.d.ts +11 -0
- package/dist/core/standard-blocks/block-definitions.part01.d.ts.map +1 -0
- package/dist/core/standard-blocks/block-definitions.part01.js +69 -0
- package/dist/core/standard-blocks/block-definitions.part01.js.map +1 -0
- package/dist/core/standard-blocks/block-definitions.part02.d.ts +11 -0
- package/dist/core/standard-blocks/block-definitions.part02.d.ts.map +1 -0
- package/dist/core/standard-blocks/block-definitions.part02.js +59 -0
- package/dist/core/standard-blocks/block-definitions.part02.js.map +1 -0
- package/dist/core/standard-blocks/block-definitions.part03.d.ts +11 -0
- package/dist/core/standard-blocks/block-definitions.part03.d.ts.map +1 -0
- package/dist/core/standard-blocks/block-definitions.part03.js +59 -0
- package/dist/core/standard-blocks/block-definitions.part03.js.map +1 -0
- package/dist/core/standard-blocks/catalog.d.ts +6 -0
- package/dist/core/standard-blocks/catalog.d.ts.map +1 -0
- package/dist/core/standard-blocks/catalog.js +87 -0
- package/dist/core/standard-blocks/catalog.js.map +1 -0
- package/dist/core/standard-blocks/metadata-custom.d.ts +5 -0
- package/dist/core/standard-blocks/metadata-custom.d.ts.map +1 -0
- package/dist/core/standard-blocks/metadata-custom.js +136 -0
- package/dist/core/standard-blocks/metadata-custom.js.map +1 -0
- package/dist/core/standard-blocks/metadata-standard.d.ts +28 -0
- package/dist/core/standard-blocks/metadata-standard.d.ts.map +1 -0
- package/dist/core/standard-blocks/metadata-standard.js +422 -0
- package/dist/core/standard-blocks/metadata-standard.js.map +1 -0
- package/dist/core/standard-blocks/render.d.ts +16 -0
- package/dist/core/standard-blocks/render.d.ts.map +1 -0
- package/dist/core/standard-blocks/render.js +341 -0
- package/dist/core/standard-blocks/render.js.map +1 -0
- package/dist/core/standard-blocks/schema-adapters.d.ts +4 -0
- package/dist/core/standard-blocks/schema-adapters.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-adapters.js +4 -0
- package/dist/core/standard-blocks/schema-adapters.js.map +1 -0
- package/dist/core/standard-blocks/schema-adapters.part01.d.ts +11 -0
- package/dist/core/standard-blocks/schema-adapters.part01.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-adapters.part01.js +85 -0
- package/dist/core/standard-blocks/schema-adapters.part01.js.map +1 -0
- package/dist/core/standard-blocks/schema-adapters.part02.d.ts +16 -0
- package/dist/core/standard-blocks/schema-adapters.part02.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-adapters.part02.js +83 -0
- package/dist/core/standard-blocks/schema-adapters.part02.js.map +1 -0
- package/dist/core/standard-blocks/schema-adapters.part03.d.ts +8 -0
- package/dist/core/standard-blocks/schema-adapters.part03.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-adapters.part03.js +34 -0
- package/dist/core/standard-blocks/schema-adapters.part03.js.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.d.ts +5 -0
- package/dist/core/standard-blocks/schema-blocks.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.js +5 -0
- package/dist/core/standard-blocks/schema-blocks.js.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.part01.d.ts +10 -0
- package/dist/core/standard-blocks/schema-blocks.part01.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.part01.js +65 -0
- package/dist/core/standard-blocks/schema-blocks.part01.js.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.part02.d.ts +12 -0
- package/dist/core/standard-blocks/schema-blocks.part02.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.part02.js +51 -0
- package/dist/core/standard-blocks/schema-blocks.part02.js.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.part03.d.ts +12 -0
- package/dist/core/standard-blocks/schema-blocks.part03.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.part03.js +51 -0
- package/dist/core/standard-blocks/schema-blocks.part03.js.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.part04.d.ts +4 -0
- package/dist/core/standard-blocks/schema-blocks.part04.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-blocks.part04.js +11 -0
- package/dist/core/standard-blocks/schema-blocks.part04.js.map +1 -0
- package/dist/core/standard-blocks/schema-helpers.d.ts +18 -0
- package/dist/core/standard-blocks/schema-helpers.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-helpers.js +50 -0
- package/dist/core/standard-blocks/schema-helpers.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.d.ts +4 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.js +4 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part01.d.ts +6 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part01.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part01.js +82 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part01.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part02.d.ts +5 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part02.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part02.js +72 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part02.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part03.d.ts +4 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part03.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part03.js +42 -0
- package/dist/core/standard-blocks/schema-parsers-advanced.part03.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.d.ts +5 -0
- package/dist/core/standard-blocks/schema-parsers-core.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.js +5 -0
- package/dist/core/standard-blocks/schema-parsers-core.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.part01.d.ts +7 -0
- package/dist/core/standard-blocks/schema-parsers-core.part01.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.part01.js +80 -0
- package/dist/core/standard-blocks/schema-parsers-core.part01.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.part02.d.ts +6 -0
- package/dist/core/standard-blocks/schema-parsers-core.part02.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.part02.js +76 -0
- package/dist/core/standard-blocks/schema-parsers-core.part02.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.part03.d.ts +6 -0
- package/dist/core/standard-blocks/schema-parsers-core.part03.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.part03.js +76 -0
- package/dist/core/standard-blocks/schema-parsers-core.part03.js.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.part04.d.ts +4 -0
- package/dist/core/standard-blocks/schema-parsers-core.part04.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-parsers-core.part04.js +42 -0
- package/dist/core/standard-blocks/schema-parsers-core.part04.js.map +1 -0
- package/dist/core/standard-blocks/schema-utils.d.ts +12 -0
- package/dist/core/standard-blocks/schema-utils.d.ts.map +1 -0
- package/dist/core/standard-blocks/schema-utils.js +66 -0
- package/dist/core/standard-blocks/schema-utils.js.map +1 -0
- package/dist/core/standard-blocks/sections.d.ts +7 -0
- package/dist/core/standard-blocks/sections.d.ts.map +1 -0
- package/dist/core/standard-blocks/sections.js +7 -0
- package/dist/core/standard-blocks/sections.js.map +1 -0
- package/dist/core/standard-blocks/sections.part01.d.ts +21 -0
- package/dist/core/standard-blocks/sections.part01.d.ts.map +1 -0
- package/dist/core/standard-blocks/sections.part01.js +79 -0
- package/dist/core/standard-blocks/sections.part01.js.map +1 -0
- package/dist/core/standard-blocks/sections.part02.d.ts +25 -0
- package/dist/core/standard-blocks/sections.part02.d.ts.map +1 -0
- package/dist/core/standard-blocks/sections.part02.js +92 -0
- package/dist/core/standard-blocks/sections.part02.js.map +1 -0
- package/dist/core/standard-blocks/sections.part03.d.ts +15 -0
- package/dist/core/standard-blocks/sections.part03.d.ts.map +1 -0
- package/dist/core/standard-blocks/sections.part03.js +89 -0
- package/dist/core/standard-blocks/sections.part03.js.map +1 -0
- package/dist/core/standard-blocks/sections.part04.d.ts +14 -0
- package/dist/core/standard-blocks/sections.part04.d.ts.map +1 -0
- package/dist/core/standard-blocks/sections.part04.js +88 -0
- package/dist/core/standard-blocks/sections.part04.js.map +1 -0
- package/dist/core/standard-blocks/sections.part05.d.ts +14 -0
- package/dist/core/standard-blocks/sections.part05.d.ts.map +1 -0
- package/dist/core/standard-blocks/sections.part05.js +93 -0
- package/dist/core/standard-blocks/sections.part05.js.map +1 -0
- package/dist/core/standard-blocks/sections.part06.d.ts +4 -0
- package/dist/core/standard-blocks/sections.part06.d.ts.map +1 -0
- package/dist/core/standard-blocks/sections.part06.js +23 -0
- package/dist/core/standard-blocks/sections.part06.js.map +1 -0
- package/dist/core/standard-blocks/types.d.ts +5 -0
- package/dist/core/standard-blocks/types.d.ts.map +1 -0
- package/dist/core/standard-blocks/types.js +2 -0
- package/dist/core/standard-blocks/types.js.map +1 -0
- package/dist/core/standard-blocks/types.part01.d.ts +58 -0
- package/dist/core/standard-blocks/types.part01.d.ts.map +1 -0
- package/dist/core/standard-blocks/types.part01.js +8 -0
- package/dist/core/standard-blocks/types.part01.js.map +1 -0
- package/dist/core/standard-blocks/types.part02.d.ts +95 -0
- package/dist/core/standard-blocks/types.part02.d.ts.map +1 -0
- package/dist/core/standard-blocks/types.part02.js +2 -0
- package/dist/core/standard-blocks/types.part02.js.map +1 -0
- package/dist/core/standard-blocks/types.part03.d.ts +37 -0
- package/dist/core/standard-blocks/types.part03.d.ts.map +1 -0
- package/dist/core/standard-blocks/types.part03.js +2 -0
- package/dist/core/standard-blocks/types.part03.js.map +1 -0
- package/dist/core/standard-blocks.d.ts +5 -263
- package/dist/core/standard-blocks.d.ts.map +1 -1
- package/dist/core/standard-blocks.js +4 -2517
- package/dist/core/standard-blocks.js.map +1 -1
- package/dist/core/standard-blocks.test-support.d.ts +12 -0
- package/dist/core/standard-blocks.test-support.d.ts.map +1 -0
- package/dist/core/standard-blocks.test-support.js +11 -0
- package/dist/core/standard-blocks.test-support.js.map +1 -0
- package/dist/core/standard-blocks.test-support.part01.d.ts +30 -0
- package/dist/core/standard-blocks.test-support.part01.d.ts.map +1 -0
- package/dist/core/standard-blocks.test-support.part01.js +42 -0
- package/dist/core/standard-blocks.test-support.part01.js.map +1 -0
- package/dist/core/story-capture.js +1 -1
- package/dist/core/story-capture.js.map +1 -1
- package/dist/core/text/clip.d.ts.map +1 -1
- package/dist/core/text/clip.js +4 -0
- package/dist/core/text/clip.js.map +1 -1
- package/dist/core/text/grapheme.d.ts.map +1 -1
- package/dist/core/text/grapheme.js +17 -7
- package/dist/core/text/grapheme.js.map +1 -1
- package/dist/core/text/wrap.d.ts +1 -1
- package/dist/core/text/wrap.d.ts.map +1 -1
- package/dist/core/text/wrap.js +1 -1
- package/dist/core/text/wrap.js.map +1 -1
- package/dist/core/theme/bijou-dark-preset.d.ts +10 -0
- package/dist/core/theme/bijou-dark-preset.d.ts.map +1 -0
- package/dist/core/theme/bijou-dark-preset.js +81 -0
- package/dist/core/theme/bijou-dark-preset.js.map +1 -0
- package/dist/core/theme/bijou-light-preset.d.ts +10 -0
- package/dist/core/theme/bijou-light-preset.d.ts.map +1 -0
- package/dist/core/theme/bijou-light-preset.js +84 -0
- package/dist/core/theme/bijou-light-preset.js.map +1 -0
- package/dist/core/theme/builder.d.ts +1 -1
- package/dist/core/theme/builder.d.ts.map +1 -1
- package/dist/core/theme/builder.js +17 -19
- package/dist/core/theme/builder.js.map +1 -1
- package/dist/core/theme/color.d.ts +3 -95
- package/dist/core/theme/color.d.ts.map +1 -1
- package/dist/core/theme/color.js +2 -279
- package/dist/core/theme/color.js.map +1 -1
- package/dist/core/theme/color.part01.d.ts +18 -0
- package/dist/core/theme/color.part01.d.ts.map +1 -0
- package/dist/core/theme/color.part01.js +93 -0
- package/dist/core/theme/color.part01.js.map +1 -0
- package/dist/core/theme/color.part02.d.ts +12 -0
- package/dist/core/theme/color.part02.d.ts.map +1 -0
- package/dist/core/theme/color.part02.js +85 -0
- package/dist/core/theme/color.part02.js.map +1 -0
- package/dist/core/theme/doctor.js +2 -2
- package/dist/core/theme/doctor.js.map +1 -1
- package/dist/core/theme/downsample.d.ts +3 -52
- package/dist/core/theme/downsample.d.ts.map +1 -1
- package/dist/core/theme/downsample.js +2 -171
- package/dist/core/theme/downsample.js.map +1 -1
- package/dist/core/theme/downsample.part01.d.ts +7 -0
- package/dist/core/theme/downsample.part01.d.ts.map +1 -0
- package/dist/core/theme/downsample.part01.js +77 -0
- package/dist/core/theme/downsample.part01.js.map +1 -0
- package/dist/core/theme/downsample.part02.d.ts +3 -0
- package/dist/core/theme/downsample.part02.d.ts.map +1 -0
- package/dist/core/theme/downsample.part02.js +26 -0
- package/dist/core/theme/downsample.part02.js.map +1 -0
- package/dist/core/theme/dtcg.d.ts +3 -6
- package/dist/core/theme/dtcg.d.ts.map +1 -1
- package/dist/core/theme/dtcg.js +86 -118
- package/dist/core/theme/dtcg.js.map +1 -1
- package/dist/core/theme/extend.js +14 -3
- package/dist/core/theme/extend.js.map +1 -1
- package/dist/core/theme/gradient.d.ts.map +1 -1
- package/dist/core/theme/gradient.js +11 -7
- package/dist/core/theme/gradient.js.map +1 -1
- package/dist/core/theme/graph-dependencies.d.ts +3 -0
- package/dist/core/theme/graph-dependencies.d.ts.map +1 -0
- package/dist/core/theme/graph-dependencies.js +29 -0
- package/dist/core/theme/graph-dependencies.js.map +1 -0
- package/dist/core/theme/graph-guards.d.ts +8 -0
- package/dist/core/theme/graph-guards.d.ts.map +1 -0
- package/dist/core/theme/graph-guards.js +19 -0
- package/dist/core/theme/graph-guards.js.map +1 -0
- package/dist/core/theme/graph-import.d.ts +5 -0
- package/dist/core/theme/graph-import.d.ts.map +1 -0
- package/dist/core/theme/graph-import.js +30 -0
- package/dist/core/theme/graph-import.js.map +1 -0
- package/dist/core/theme/graph-resolve.d.ts +12 -0
- package/dist/core/theme/graph-resolve.d.ts.map +1 -0
- package/dist/core/theme/graph-resolve.js +71 -0
- package/dist/core/theme/graph-resolve.js.map +1 -0
- package/dist/core/theme/graph-transform.d.ts +4 -0
- package/dist/core/theme/graph-transform.d.ts.map +1 -0
- package/dist/core/theme/graph-transform.js +41 -0
- package/dist/core/theme/graph-transform.js.map +1 -0
- package/dist/core/theme/graph-types.d.ts +69 -1
- package/dist/core/theme/graph-types.d.ts.map +1 -1
- package/dist/core/theme/graph.d.ts +2 -13
- package/dist/core/theme/graph.d.ts.map +1 -1
- package/dist/core/theme/graph.js +53 -158
- package/dist/core/theme/graph.js.map +1 -1
- package/dist/core/theme/index.d.ts +4 -9
- package/dist/core/theme/index.d.ts.map +1 -1
- package/dist/core/theme/index.js +2 -19
- package/dist/core/theme/index.js.map +1 -1
- package/dist/core/theme/preset-authoring.d.ts +16 -0
- package/dist/core/theme/preset-authoring.d.ts.map +1 -0
- package/dist/core/theme/preset-authoring.js +87 -0
- package/dist/core/theme/preset-authoring.js.map +1 -0
- package/dist/core/theme/presets.d.ts +6 -19
- package/dist/core/theme/presets.d.ts.map +1 -1
- package/dist/core/theme/presets.js +3 -132
- package/dist/core/theme/presets.js.map +1 -1
- package/dist/core/theme/resolve.d.ts +2 -13
- package/dist/core/theme/resolve.d.ts.map +1 -1
- package/dist/core/theme/resolve.js +16 -16
- package/dist/core/theme/resolve.js.map +1 -1
- package/dist/core/theme/styled.d.ts.map +1 -1
- package/dist/core/theme/styled.js +3 -2
- package/dist/core/theme/styled.js.map +1 -1
- package/dist/core/theme/theme-rule-candidates.d.ts +19 -0
- package/dist/core/theme/theme-rule-candidates.d.ts.map +1 -0
- package/dist/core/theme/theme-rule-candidates.js +101 -0
- package/dist/core/theme/theme-rule-candidates.js.map +1 -0
- package/dist/core/theme/theme-rule-color-validation.d.ts +5 -0
- package/dist/core/theme/theme-rule-color-validation.d.ts.map +1 -0
- package/dist/core/theme/theme-rule-color-validation.js +9 -0
- package/dist/core/theme/theme-rule-color-validation.js.map +1 -0
- package/dist/core/theme/theme-rule-evaluate.d.ts +13 -0
- package/dist/core/theme/theme-rule-evaluate.d.ts.map +1 -0
- package/dist/core/theme/theme-rule-evaluate.js +113 -0
- package/dist/core/theme/theme-rule-evaluate.js.map +1 -0
- package/dist/core/theme/theme-rule-metrics.d.ts +4 -0
- package/dist/core/theme/theme-rule-metrics.d.ts.map +1 -0
- package/dist/core/theme/theme-rule-metrics.js +34 -0
- package/dist/core/theme/theme-rule-metrics.js.map +1 -0
- package/dist/core/theme/theme-rule-paths.d.ts +3 -0
- package/dist/core/theme/theme-rule-paths.d.ts.map +1 -0
- package/dist/core/theme/theme-rule-paths.js +10 -0
- package/dist/core/theme/theme-rule-paths.js.map +1 -0
- package/dist/core/theme/theme-rules.d.ts +22 -0
- package/dist/core/theme/theme-rules.d.ts.map +1 -0
- package/dist/core/theme/theme-rules.js +84 -0
- package/dist/core/theme/theme-rules.js.map +1 -0
- package/dist/core/ui-scene-ir.d.ts +3 -3
- package/dist/core/ui-scene-ir.d.ts.map +1 -1
- package/dist/core/ui-scene-ir.js +17 -18
- package/dist/core/ui-scene-ir.js.map +1 -1
- package/dist/factory.js +3 -3
- package/dist/factory.js.map +1 -1
- package/dist/index.d.ts +10 -43
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -73
- package/dist/index.js.map +1 -1
- package/dist/index.part01.d.ts +18 -0
- package/dist/index.part01.d.ts.map +1 -0
- package/dist/index.part01.js +19 -0
- package/dist/index.part01.js.map +1 -0
- package/dist/index.part02.d.ts +5 -0
- package/dist/index.part02.d.ts.map +1 -0
- package/dist/index.part02.js +6 -0
- package/dist/index.part02.js.map +1 -0
- package/dist/index.part03.d.ts +6 -0
- package/dist/index.part03.d.ts.map +1 -0
- package/dist/index.part03.js +6 -0
- package/dist/index.part03.js.map +1 -0
- package/dist/index.part04.d.ts +5 -0
- package/dist/index.part04.d.ts.map +1 -0
- package/dist/index.part04.js +5 -0
- package/dist/index.part04.js.map +1 -0
- package/dist/index.part05.d.ts +2 -0
- package/dist/index.part05.d.ts.map +1 -0
- package/dist/index.part05.js +2 -0
- package/dist/index.part05.js.map +1 -0
- package/dist/index.part06.d.ts +7 -0
- package/dist/index.part06.d.ts.map +1 -0
- package/dist/index.part06.js +9 -0
- package/dist/index.part06.js.map +1 -0
- package/dist/index.part07.d.ts +4 -0
- package/dist/index.part07.d.ts.map +1 -0
- package/dist/index.part07.js +5 -0
- package/dist/index.part07.js.map +1 -0
- package/dist/index.part08.d.ts +3 -0
- package/dist/index.part08.d.ts.map +1 -0
- package/dist/index.part08.js +3 -0
- package/dist/index.part08.js.map +1 -0
- package/dist/index.part09.d.ts +2 -0
- package/dist/index.part09.d.ts.map +1 -0
- package/dist/index.part09.js +3 -0
- package/dist/index.part09.js.map +1 -0
- package/dist/index.part10.d.ts +8 -0
- package/dist/index.part10.d.ts.map +1 -0
- package/dist/index.part10.js +9 -0
- package/dist/index.part10.js.map +1 -0
- package/dist/ports/io-handles.d.ts +11 -0
- package/dist/ports/io-handles.d.ts.map +1 -0
- package/dist/ports/io-handles.js +2 -0
- package/dist/ports/io-handles.js.map +1 -0
- package/dist/ports/io.d.ts +2 -10
- package/dist/ports/io.d.ts.map +1 -1
- package/dist/ports/surface.d.ts +1 -1
- package/dist/ports/surface.d.ts.map +1 -1
- package/dist/ports/surface.js +41 -46
- package/dist/ports/surface.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-interactive.js","sourceRoot":"","sources":["../../../src/core/forms/filter-interactive.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,cAAc,EACd,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAkCpD;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAI,K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AAC,GAAG,CAAC,EAAE,CAAC;gBACxB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -41,7 +41,9 @@ async function fallbackFilter(options, ctx) {
|
|
|
41
41
|
// Try numeric selection first
|
|
42
42
|
const idx = parseInt(trimmed, 10) - 1;
|
|
43
43
|
if (idx >= 0 && idx < options.options.length) {
|
|
44
|
-
|
|
44
|
+
const selected = options.options[idx];
|
|
45
|
+
if (selected !== undefined)
|
|
46
|
+
return selected.value;
|
|
45
47
|
}
|
|
46
48
|
// Try matching by text
|
|
47
49
|
if (trimmed) {
|
|
@@ -50,6 +52,9 @@ async function fallbackFilter(options, ctx) {
|
|
|
50
52
|
if (matched)
|
|
51
53
|
return matched.value;
|
|
52
54
|
}
|
|
53
|
-
|
|
55
|
+
const fallback = options.options[0];
|
|
56
|
+
if (fallback === undefined)
|
|
57
|
+
throw new Error('filter() requires at least one option, or a defaultValue');
|
|
58
|
+
return options.defaultValue ?? fallback.value;
|
|
54
59
|
}
|
|
55
60
|
//# sourceMappingURL=filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../src/core/forms/filter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI1E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAAI,OAAyB;IACvD,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS;YAAE,OAAO,OAAO,CAAC,Y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GAAG,IAAI,CAAC,IAAI,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAC7C,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACtC,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,QAAQ,CAAC,KAAK,CAAC;IACpD,CAAC;IAED,uBAAuB;IACvB,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,YAAY,CAAC;QAC9C,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;QACrE,IAAI,OAAO;YAAE,OAAO,OAAO,CAAC,KAAK,CAAC;IACpC,CAAC;IAED,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,IAAI,QAAQ,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IACxG,OAAO,OAAO,CAAC,YAAY,IAAI,QAAQ,CAAC,KAAK,CAAC;AAChD,CAAC"}
|
|
@@ -1,156 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* These are internal helpers — not exported from the public barrel.
|
|
6
|
-
*
|
|
7
|
-
* @module core/forms/form-utils
|
|
8
|
-
*/
|
|
9
|
-
import type { BijouContext } from '../../ports/context.js';
|
|
10
|
-
import type { KeyInputMsg, RawInputHandle } from '../../ports/io.js';
|
|
11
|
-
import type { TokenValue } from '../theme/tokens.js';
|
|
12
|
-
/**
|
|
13
|
-
* Format a form title with the `?` prefix and theme-aware styling.
|
|
14
|
-
*
|
|
15
|
-
* Returns `? title` with styling in color mode, or plain `? title`
|
|
16
|
-
* in noColor/accessible modes. The `?` prefix is always included
|
|
17
|
-
* for visual parity across modes.
|
|
18
|
-
*
|
|
19
|
-
* @param title - The form prompt text.
|
|
20
|
-
* @param ctx - Bijou context for styling and mode detection.
|
|
21
|
-
* @returns The formatted title string (no trailing newline).
|
|
22
|
-
*/
|
|
23
|
-
export declare function formatFormTitle(title: string, ctx: BijouContext): string;
|
|
24
|
-
/**
|
|
25
|
-
* Write a styled validation error message to the output.
|
|
26
|
-
*
|
|
27
|
-
* Applies `semantic.error` styling in color mode, plain text in
|
|
28
|
-
* noColor/accessible modes.
|
|
29
|
-
*
|
|
30
|
-
* @param message - The error message to display.
|
|
31
|
-
* @param ctx - Bijou context for styling and mode detection.
|
|
32
|
-
*/
|
|
33
|
-
export declare function writeValidationError(message: string, ctx: BijouContext): void;
|
|
34
|
-
/**
|
|
35
|
-
* Render a numbered list of options to the output.
|
|
36
|
-
*
|
|
37
|
-
* Used by form fallback modes (select, multiselect, filter) when
|
|
38
|
-
* interactive arrow-key navigation is unavailable.
|
|
39
|
-
*
|
|
40
|
-
* @param options - Array of options with `label` and optional `description`.
|
|
41
|
-
* @param ctx - Bijou context for output.
|
|
42
|
-
*/
|
|
43
|
-
export declare function renderNumberedOptions(options: ReadonlyArray<{
|
|
44
|
-
label: string;
|
|
45
|
-
description?: string;
|
|
46
|
-
}>, ctx: BijouContext): void;
|
|
47
|
-
/**
|
|
48
|
-
* ANSI terminal rendering utilities for interactive form components.
|
|
49
|
-
*
|
|
50
|
-
* Provides cursor control helpers that replace the duplicated raw ANSI
|
|
51
|
-
* escape sequences scattered across form interactive modes.
|
|
52
|
-
*/
|
|
53
|
-
export interface TerminalRenderer {
|
|
54
|
-
/** Hide the terminal cursor. */
|
|
55
|
-
hideCursor(): void;
|
|
56
|
-
/** Show the terminal cursor. */
|
|
57
|
-
showCursor(): void;
|
|
58
|
-
/** Clear the current line and write text followed by a newline. */
|
|
59
|
-
writeLine(text: string): void;
|
|
60
|
-
/** Move the cursor up by the given number of lines. */
|
|
61
|
-
moveUp(lines: number): void;
|
|
62
|
-
/** Clear a block of N lines and return the cursor to the top of the block. */
|
|
63
|
-
clearBlock(lineCount: number): void;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Create a {@link TerminalRenderer} that writes ANSI escape sequences
|
|
67
|
-
* to `ctx.io`.
|
|
68
|
-
*
|
|
69
|
-
* @param ctx - Bijou context for I/O access.
|
|
70
|
-
* @returns A renderer with cursor control methods.
|
|
71
|
-
*/
|
|
72
|
-
export declare function terminalRenderer(ctx: BijouContext): TerminalRenderer;
|
|
73
|
-
/**
|
|
74
|
-
* Create a noColor-safe styling function.
|
|
75
|
-
*
|
|
76
|
-
* Returns an identity function `(token, text) => text` when `noColor`
|
|
77
|
-
* is true or mode is `accessible`, or `ctx.style.styled` otherwise.
|
|
78
|
-
* Eliminates per-callsite `noColor ? text : styledFn(token, text)` guards.
|
|
79
|
-
*
|
|
80
|
-
* @param ctx - Bijou context for noColor/accessible detection and style access.
|
|
81
|
-
* @returns A function `(token, text) => string`.
|
|
82
|
-
*/
|
|
83
|
-
export declare function createStyledFn(ctx: BijouContext): (token: TokenValue, text: string) => string;
|
|
84
|
-
/**
|
|
85
|
-
* Create a noColor-safe bold function.
|
|
86
|
-
*
|
|
87
|
-
* Returns an identity function when `noColor` is true or mode is
|
|
88
|
-
* `accessible`, or `ctx.style.bold` otherwise.
|
|
89
|
-
*
|
|
90
|
-
* @param ctx - Bijou context for noColor/accessible detection and style access.
|
|
91
|
-
* @returns A function `(text) => string`.
|
|
92
|
-
*/
|
|
93
|
-
export declare function createBoldFn(ctx: BijouContext): (text: string) => string;
|
|
94
|
-
/**
|
|
95
|
-
* Keep a scroll offset so the cursor stays within a visible window.
|
|
96
|
-
*
|
|
97
|
-
* First adjusts the offset relative to the cursor position, then
|
|
98
|
-
* clamps to the absolute bounds `[0, max(0, itemCount - maxVisible)]`.
|
|
99
|
-
*
|
|
100
|
-
* @param cursor - Current cursor index.
|
|
101
|
-
* @param scrollOffset - Current scroll offset.
|
|
102
|
-
* @param maxVisible - Maximum number of items visible at once.
|
|
103
|
-
* @param itemCount - Total number of items.
|
|
104
|
-
* @returns The updated scroll offset.
|
|
105
|
-
*/
|
|
106
|
-
export declare function clampScroll(cursor: number, scrollOffset: number, maxVisible: number, itemCount: number): number;
|
|
107
|
-
/**
|
|
108
|
-
* Subscribe to semantic form key input, preferring `ctx.io.keyInput()` when
|
|
109
|
-
* available and falling back to decoding `rawInput()` sequences otherwise.
|
|
110
|
-
*
|
|
111
|
-
* This keeps interactive forms deterministic in tests without forcing
|
|
112
|
-
* production adapters away from the lower-level raw-input contract.
|
|
113
|
-
*
|
|
114
|
-
* @param ctx - Bijou context providing the input port.
|
|
115
|
-
* @param onKey - Callback invoked for each semantic key.
|
|
116
|
-
* @returns A disposable handle that stops further key delivery.
|
|
117
|
-
*/
|
|
118
|
-
export declare function subscribeFormKeyInput(ctx: BijouContext, onKey: (key: KeyInputMsg) => void): RawInputHandle;
|
|
119
|
-
/**
|
|
120
|
-
* Whether a semantic key carries printable text.
|
|
121
|
-
*
|
|
122
|
-
* @param key - The semantic key to test.
|
|
123
|
-
* @returns `true` when the key represents typed text.
|
|
124
|
-
*/
|
|
125
|
-
export declare function isPrintableKey(key: KeyInputMsg): key is KeyInputMsg & {
|
|
126
|
-
text: string;
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Match a semantic key by logical key name and optional modifier flags.
|
|
130
|
-
*
|
|
131
|
-
* @param msg - The key message to test.
|
|
132
|
-
* @param key - Expected logical key name.
|
|
133
|
-
* @param mods - Optional modifier constraints.
|
|
134
|
-
* @returns `true` when the key matches.
|
|
135
|
-
*/
|
|
136
|
-
export declare function isKey(msg: KeyInputMsg, key: string, mods?: Partial<Pick<KeyInputMsg, 'ctrl' | 'alt' | 'shift'>>): boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Handle up/down (arrow key or j/k) navigation in a wrapping list.
|
|
139
|
-
*
|
|
140
|
-
* @param key - The semantic keypress.
|
|
141
|
-
* @param cursor - Current cursor index.
|
|
142
|
-
* @param length - Total number of items.
|
|
143
|
-
* @returns The new cursor index, or `null` if the key was not a vertical nav key.
|
|
144
|
-
*/
|
|
145
|
-
export declare function handleVerticalNav(key: KeyInputMsg, cursor: number, length: number): number | null;
|
|
146
|
-
/**
|
|
147
|
-
* Route a form to its interactive or fallback handler based on
|
|
148
|
-
* output mode and TTY state.
|
|
149
|
-
*
|
|
150
|
-
* @param ctx - Resolved bijou context.
|
|
151
|
-
* @param interactive - Handler for interactive TTY mode.
|
|
152
|
-
* @param fallback - Handler for non-interactive / pipe / static / accessible modes.
|
|
153
|
-
* @returns The result from whichever handler was selected.
|
|
154
|
-
*/
|
|
155
|
-
export declare function formDispatch<T>(ctx: BijouContext, interactive: (ctx: BijouContext) => Promise<T>, fallback: (ctx: BijouContext) => Promise<T>): Promise<T>;
|
|
1
|
+
export { clampScroll, createBoldFn, createStyledFn, formatFormTitle, isPrintableKey, renderNumberedOptions, subscribeFormKeyInput, terminalRenderer, writeValidationError } from './form-utils.part01.js';
|
|
2
|
+
export type { TerminalRenderer } from './form-utils.part01.js';
|
|
3
|
+
export { formDispatch, handleVerticalNav, isKey } from './form-utils.part02.js';
|
|
156
4
|
//# sourceMappingURL=form-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-utils.d.ts","sourceRoot":"","sources":["../../../src/core/forms/form-utils.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"form-utils.d.ts","sourceRoot":"","sources":["../../../src/core/forms/form-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC1M,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,232 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* select, multiselect, filter, textarea, input, and confirm.
|
|
4
|
-
*
|
|
5
|
-
* These are internal helpers — not exported from the public barrel.
|
|
6
|
-
*
|
|
7
|
-
* @module core/forms/form-utils
|
|
8
|
-
*/
|
|
9
|
-
import { cursorGuard } from '../components/cursor-guard.js';
|
|
10
|
-
import { CLEAR_LINE_RETURN } from '../ansi.js';
|
|
11
|
-
import { decodeRawKeySequence } from '../key-input.js';
|
|
12
|
-
/**
|
|
13
|
-
* Format a form title with the `?` prefix and theme-aware styling.
|
|
14
|
-
*
|
|
15
|
-
* Returns `? title` with styling in color mode, or plain `? title`
|
|
16
|
-
* in noColor/accessible modes. The `?` prefix is always included
|
|
17
|
-
* for visual parity across modes.
|
|
18
|
-
*
|
|
19
|
-
* @param title - The form prompt text.
|
|
20
|
-
* @param ctx - Bijou context for styling and mode detection.
|
|
21
|
-
* @returns The formatted title string (no trailing newline).
|
|
22
|
-
*/
|
|
23
|
-
export function formatFormTitle(title, ctx) {
|
|
24
|
-
if (ctx.theme.noColor || ctx.mode === 'accessible') {
|
|
25
|
-
return `? ${title}`;
|
|
26
|
-
}
|
|
27
|
-
return ctx.style.styled(ctx.semantic('info'), '? ') + ctx.style.bold(title);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Write a styled validation error message to the output.
|
|
31
|
-
*
|
|
32
|
-
* Applies `semantic.error` styling in color mode, plain text in
|
|
33
|
-
* noColor/accessible modes.
|
|
34
|
-
*
|
|
35
|
-
* @param message - The error message to display.
|
|
36
|
-
* @param ctx - Bijou context for styling and mode detection.
|
|
37
|
-
*/
|
|
38
|
-
export function writeValidationError(message, ctx) {
|
|
39
|
-
if (ctx.theme.noColor || ctx.mode === 'accessible') {
|
|
40
|
-
ctx.io.write(message + '\n');
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
ctx.io.write(ctx.style.styled(ctx.semantic('error'), message) + '\n');
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Render a numbered list of options to the output.
|
|
48
|
-
*
|
|
49
|
-
* Used by form fallback modes (select, multiselect, filter) when
|
|
50
|
-
* interactive arrow-key navigation is unavailable.
|
|
51
|
-
*
|
|
52
|
-
* @param options - Array of options with `label` and optional `description`.
|
|
53
|
-
* @param ctx - Bijou context for output.
|
|
54
|
-
*/
|
|
55
|
-
export function renderNumberedOptions(options, ctx) {
|
|
56
|
-
for (let i = 0; i < options.length; i++) {
|
|
57
|
-
const opt = options[i];
|
|
58
|
-
const desc = opt.description ? ` \u2014 ${opt.description}` : '';
|
|
59
|
-
ctx.io.write(` ${i + 1}. ${opt.label}${desc}\n`);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Create a {@link TerminalRenderer} that writes ANSI escape sequences
|
|
64
|
-
* to `ctx.io`.
|
|
65
|
-
*
|
|
66
|
-
* @param ctx - Bijou context for I/O access.
|
|
67
|
-
* @returns A renderer with cursor control methods.
|
|
68
|
-
*/
|
|
69
|
-
export function terminalRenderer(ctx) {
|
|
70
|
-
let cursorHandle = null;
|
|
71
|
-
return {
|
|
72
|
-
hideCursor() {
|
|
73
|
-
if (cursorHandle === null) {
|
|
74
|
-
cursorHandle = cursorGuard(ctx.io).hide();
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
showCursor() {
|
|
78
|
-
if (cursorHandle !== null) {
|
|
79
|
-
cursorHandle.dispose();
|
|
80
|
-
cursorHandle = null;
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
writeLine(text) {
|
|
84
|
-
ctx.io.write(`${CLEAR_LINE_RETURN}${text}\n`);
|
|
85
|
-
},
|
|
86
|
-
moveUp(lines) {
|
|
87
|
-
if (lines <= 0)
|
|
88
|
-
return;
|
|
89
|
-
ctx.io.write(`\x1b[${lines}A`);
|
|
90
|
-
},
|
|
91
|
-
clearBlock(lineCount) {
|
|
92
|
-
if (lineCount <= 0)
|
|
93
|
-
return;
|
|
94
|
-
for (let i = 0; i < lineCount; i++)
|
|
95
|
-
ctx.io.write('\x1b[K\n');
|
|
96
|
-
ctx.io.write(`\x1b[${lineCount}A`);
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Create a noColor-safe styling function.
|
|
102
|
-
*
|
|
103
|
-
* Returns an identity function `(token, text) => text` when `noColor`
|
|
104
|
-
* is true or mode is `accessible`, or `ctx.style.styled` otherwise.
|
|
105
|
-
* Eliminates per-callsite `noColor ? text : styledFn(token, text)` guards.
|
|
106
|
-
*
|
|
107
|
-
* @param ctx - Bijou context for noColor/accessible detection and style access.
|
|
108
|
-
* @returns A function `(token, text) => string`.
|
|
109
|
-
*/
|
|
110
|
-
export function createStyledFn(ctx) {
|
|
111
|
-
if (ctx.theme.noColor || ctx.mode === 'accessible')
|
|
112
|
-
return (_token, text) => text;
|
|
113
|
-
return (token, text) => ctx.style.styled(token, text);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Create a noColor-safe bold function.
|
|
117
|
-
*
|
|
118
|
-
* Returns an identity function when `noColor` is true or mode is
|
|
119
|
-
* `accessible`, or `ctx.style.bold` otherwise.
|
|
120
|
-
*
|
|
121
|
-
* @param ctx - Bijou context for noColor/accessible detection and style access.
|
|
122
|
-
* @returns A function `(text) => string`.
|
|
123
|
-
*/
|
|
124
|
-
export function createBoldFn(ctx) {
|
|
125
|
-
if (ctx.theme.noColor || ctx.mode === 'accessible')
|
|
126
|
-
return (text) => text;
|
|
127
|
-
return (text) => ctx.style.bold(text);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Keep a scroll offset so the cursor stays within a visible window.
|
|
131
|
-
*
|
|
132
|
-
* First adjusts the offset relative to the cursor position, then
|
|
133
|
-
* clamps to the absolute bounds `[0, max(0, itemCount - maxVisible)]`.
|
|
134
|
-
*
|
|
135
|
-
* @param cursor - Current cursor index.
|
|
136
|
-
* @param scrollOffset - Current scroll offset.
|
|
137
|
-
* @param maxVisible - Maximum number of items visible at once.
|
|
138
|
-
* @param itemCount - Total number of items.
|
|
139
|
-
* @returns The updated scroll offset.
|
|
140
|
-
*/
|
|
141
|
-
export function clampScroll(cursor, scrollOffset, maxVisible, itemCount) {
|
|
142
|
-
let offset = scrollOffset;
|
|
143
|
-
if (cursor < offset) {
|
|
144
|
-
offset = cursor;
|
|
145
|
-
}
|
|
146
|
-
else if (cursor >= offset + maxVisible) {
|
|
147
|
-
offset = cursor - maxVisible + 1;
|
|
148
|
-
}
|
|
149
|
-
return Math.max(0, Math.min(offset, Math.max(0, itemCount - maxVisible)));
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Subscribe to semantic form key input, preferring `ctx.io.keyInput()` when
|
|
153
|
-
* available and falling back to decoding `rawInput()` sequences otherwise.
|
|
154
|
-
*
|
|
155
|
-
* This keeps interactive forms deterministic in tests without forcing
|
|
156
|
-
* production adapters away from the lower-level raw-input contract.
|
|
157
|
-
*
|
|
158
|
-
* @param ctx - Bijou context providing the input port.
|
|
159
|
-
* @param onKey - Callback invoked for each semantic key.
|
|
160
|
-
* @returns A disposable handle that stops further key delivery.
|
|
161
|
-
*/
|
|
162
|
-
export function subscribeFormKeyInput(ctx, onKey) {
|
|
163
|
-
if (typeof ctx.io.keyInput === 'function') {
|
|
164
|
-
return ctx.io.keyInput(onKey);
|
|
165
|
-
}
|
|
166
|
-
return ctx.io.rawInput((key) => {
|
|
167
|
-
for (const msg of decodeRawKeySequence(key)) {
|
|
168
|
-
onKey(msg);
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Whether a semantic key carries printable text.
|
|
174
|
-
*
|
|
175
|
-
* @param key - The semantic key to test.
|
|
176
|
-
* @returns `true` when the key represents typed text.
|
|
177
|
-
*/
|
|
178
|
-
export function isPrintableKey(key) {
|
|
179
|
-
return key.text !== undefined;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Match a semantic key by logical key name and optional modifier flags.
|
|
183
|
-
*
|
|
184
|
-
* @param msg - The key message to test.
|
|
185
|
-
* @param key - Expected logical key name.
|
|
186
|
-
* @param mods - Optional modifier constraints.
|
|
187
|
-
* @returns `true` when the key matches.
|
|
188
|
-
*/
|
|
189
|
-
export function isKey(msg, key, mods = {}) {
|
|
190
|
-
if (msg.key !== key)
|
|
191
|
-
return false;
|
|
192
|
-
if (mods.ctrl !== undefined && msg.ctrl !== mods.ctrl)
|
|
193
|
-
return false;
|
|
194
|
-
if (mods.alt !== undefined && msg.alt !== mods.alt)
|
|
195
|
-
return false;
|
|
196
|
-
if (mods.shift !== undefined && msg.shift !== mods.shift)
|
|
197
|
-
return false;
|
|
198
|
-
return true;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Handle up/down (arrow key or j/k) navigation in a wrapping list.
|
|
202
|
-
*
|
|
203
|
-
* @param key - The semantic keypress.
|
|
204
|
-
* @param cursor - Current cursor index.
|
|
205
|
-
* @param length - Total number of items.
|
|
206
|
-
* @returns The new cursor index, or `null` if the key was not a vertical nav key.
|
|
207
|
-
*/
|
|
208
|
-
export function handleVerticalNav(key, cursor, length) {
|
|
209
|
-
if (isKey(key, 'up') || key.text === 'k') {
|
|
210
|
-
return (cursor - 1 + length) % length;
|
|
211
|
-
}
|
|
212
|
-
if (isKey(key, 'down') || key.text === 'j') {
|
|
213
|
-
return (cursor + 1) % length;
|
|
214
|
-
}
|
|
215
|
-
return null;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Route a form to its interactive or fallback handler based on
|
|
219
|
-
* output mode and TTY state.
|
|
220
|
-
*
|
|
221
|
-
* @param ctx - Resolved bijou context.
|
|
222
|
-
* @param interactive - Handler for interactive TTY mode.
|
|
223
|
-
* @param fallback - Handler for non-interactive / pipe / static / accessible modes.
|
|
224
|
-
* @returns The result from whichever handler was selected.
|
|
225
|
-
*/
|
|
226
|
-
export function formDispatch(ctx, interactive, fallback) {
|
|
227
|
-
if (ctx.mode === 'interactive' && ctx.runtime.stdinIsTTY && ctx.runtime.stdoutIsTTY) {
|
|
228
|
-
return interactive(ctx);
|
|
229
|
-
}
|
|
230
|
-
return fallback(ctx);
|
|
231
|
-
}
|
|
1
|
+
export { clampScroll, createBoldFn, createStyledFn, formatFormTitle, isPrintableKey, renderNumberedOptions, subscribeFormKeyInput, terminalRenderer, writeValidationError } from './form-utils.part01.js';
|
|
2
|
+
export { formDispatch, handleVerticalNav, isKey } from './form-utils.part02.js';
|
|
232
3
|
//# sourceMappingURL=form-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-utils.js","sourceRoot":"","sources":["../../../src/core/forms/form-utils.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"form-utils.js","sourceRoot":"","sources":["../../../src/core/forms/form-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE1M,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BijouContext } from '../../ports/context.js';
|
|
2
|
+
import type { KeyInputMsg, RawInputHandle } from '../../ports/io.js';
|
|
3
|
+
import type { TokenValue } from '../theme/tokens.js';
|
|
4
|
+
export declare function formatFormTitle(title: string, ctx: BijouContext): string;
|
|
5
|
+
export declare function writeValidationError(message: string, ctx: BijouContext): void;
|
|
6
|
+
export declare function renderNumberedOptions(options: readonly {
|
|
7
|
+
label: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}[], ctx: BijouContext): void;
|
|
10
|
+
export interface TerminalRenderer {
|
|
11
|
+
/** Hide the terminal cursor. */
|
|
12
|
+
hideCursor(): void;
|
|
13
|
+
/** Show the terminal cursor. */
|
|
14
|
+
showCursor(): void;
|
|
15
|
+
/** Clear the current line and write text followed by a newline. */
|
|
16
|
+
writeLine(text: string): void;
|
|
17
|
+
/** Move the cursor up by the given number of lines. */
|
|
18
|
+
moveUp(lines: number): void;
|
|
19
|
+
/** Clear a block of N lines and return the cursor to the top of the block. */
|
|
20
|
+
clearBlock(lineCount: number): void;
|
|
21
|
+
}
|
|
22
|
+
export declare function terminalRenderer(ctx: BijouContext): TerminalRenderer;
|
|
23
|
+
export declare function createStyledFn(ctx: BijouContext): (token: TokenValue, text: string) => string;
|
|
24
|
+
export declare function createBoldFn(ctx: BijouContext): (text: string) => string;
|
|
25
|
+
export declare function clampScroll(cursor: number, scrollOffset: number, maxVisible: number, itemCount: number): number;
|
|
26
|
+
export declare function subscribeFormKeyInput(ctx: BijouContext, onKey: (key: KeyInputMsg) => void): RawInputHandle;
|
|
27
|
+
export declare function isPrintableKey(key: KeyInputMsg): key is KeyInputMsg & {
|
|
28
|
+
text: string;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=form-utils.part01.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-utils.part01.d.ts","sourceRoot":"","sources":["../../../src/core/forms/form-utils.part01.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AASrD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,GAAG,MAAM,CAKxE;AACD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,GAAG,IAAI,CAM7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{ CLEAR_LINE, CLEAR_LINE_RETURN, cursorUp } from '../ansi.js';
|
|
3
|
+
import { decodeRawKeySequence } from '../key-input.js';
|
|
4
|
+
export function formatFormTitle(title, ctx) {
|
|
5
|
+
if (ctx.theme.noColor || ctx.mode === 'accessible') {
|
|
6
|
+
return `? ${title}`;
|
|
7
|
+
}
|
|
8
|
+
return ctx.style.styled(ctx.semantic('info'), '? ') + ctx.style.bold(title);
|
|
9
|
+
}
|
|
10
|
+
export function writeValidationError(message, ctx) {
|
|
11
|
+
if (ctx.theme.noColor || ctx.mode === 'accessible') {
|
|
12
|
+
ctx.io.write(message + '\n');
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
ctx.io.write(ctx.style.styled(ctx.semantic('error'), message) + '\n');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export function renderNumberedOptions(options, ctx) {
|
|
19
|
+
for (const [i, opt] of options.entries()) {
|
|
20
|
+
const desc = opt.description ? ` \u2014 ${opt.description}` : '';
|
|
21
|
+
ctx.io.write(` ${String(i + 1)}. ${opt.label}${desc}\n`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export function terminalRenderer(ctx) {
|
|
25
|
+
let cursorHandle = null;
|
|
26
|
+
return {
|
|
27
|
+
hideCursor() {
|
|
28
|
+
cursorHandle ??= cursorGuard(ctx.io).hide();
|
|
29
|
+
},
|
|
30
|
+
showCursor() {
|
|
31
|
+
if (cursorHandle !== null) {
|
|
32
|
+
cursorHandle.dispose();
|
|
33
|
+
cursorHandle = null;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
writeLine(text) {
|
|
37
|
+
ctx.io.write(`${CLEAR_LINE_RETURN}${text}\n`);
|
|
38
|
+
},
|
|
39
|
+
moveUp(lines) {
|
|
40
|
+
if (lines <= 0)
|
|
41
|
+
return;
|
|
42
|
+
ctx.io.write(cursorUp(lines));
|
|
43
|
+
},
|
|
44
|
+
clearBlock(lineCount) {
|
|
45
|
+
if (lineCount <= 0)
|
|
46
|
+
return;
|
|
47
|
+
for (let i = 0; i < lineCount; i++)
|
|
48
|
+
ctx.io.write(`${CLEAR_LINE}\n`);
|
|
49
|
+
ctx.io.write(cursorUp(lineCount));
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function createStyledFn(ctx) {
|
|
54
|
+
if (ctx.theme.noColor || ctx.mode === 'accessible')
|
|
55
|
+
return (_token, text) => text;
|
|
56
|
+
return (token, text) => ctx.style.styled(token, text);
|
|
57
|
+
}
|
|
58
|
+
export function createBoldFn(ctx) {
|
|
59
|
+
if (ctx.theme.noColor || ctx.mode === 'accessible')
|
|
60
|
+
return (text) => text;
|
|
61
|
+
return (text) => ctx.style.bold(text);
|
|
62
|
+
}
|
|
63
|
+
export function clampScroll(cursor, scrollOffset, maxVisible, itemCount) {
|
|
64
|
+
let offset = scrollOffset;
|
|
65
|
+
if (cursor < offset) {
|
|
66
|
+
offset = cursor;
|
|
67
|
+
}
|
|
68
|
+
else if (cursor >= offset + maxVisible) {
|
|
69
|
+
offset = cursor - maxVisible + 1;
|
|
70
|
+
}
|
|
71
|
+
return Math.max(0, Math.min(offset, Math.max(0, itemCount - maxVisible)));
|
|
72
|
+
}
|
|
73
|
+
export function subscribeFormKeyInput(ctx, onKey) {
|
|
74
|
+
if (typeof ctx.io.keyInput === 'function') {
|
|
75
|
+
return ctx.io.keyInput(onKey);
|
|
76
|
+
}
|
|
77
|
+
return ctx.io.rawInput((key) => {
|
|
78
|
+
for (const msg of decodeRawKeySequence(key)) {
|
|
79
|
+
onKey(msg);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
export function isPrintableKey(key) {
|
|
84
|
+
return key.text !== undefined;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=form-utils.part01.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-utils.part01.js","sourceRoot":"","sources":["../../../src/core/forms/form-utils.part01.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C,CAAC,GAAG,EAAE,EAAE;QAC7B,KAAK,MAAM,GAAG,IAAI,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5C,KAAK,CAAC,GAAG,CAAC,CAAC;QACb,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AACD,MAAM,UAAU,cAAc,CAAC,GAAgB;IAC7C,OAAO,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BijouContext } from '../../ports/context.js';
|
|
2
|
+
import type { KeyInputMsg } from '../../ports/io.js';
|
|
3
|
+
export declare function isKey(msg: KeyInputMsg, key: string, mods?: Partial<Pick<KeyInputMsg, 'ctrl' | 'alt' | 'shift'>>): boolean;
|
|
4
|
+
export declare function handleVerticalNav(key: KeyInputMsg, cursor: number, length: number): number | null;
|
|
5
|
+
export declare function formDispatch<T>(ctx: BijouContext, interactive: (ctx: BijouContext) => Promise<T>, fallback: (ctx: BijouContext) => Promise<T>): Promise<T>;
|
|
6
|
+
//# sourceMappingURL=form-utils.part02.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-utils.part02.d.ts","sourceRoot":"","sources":["../../../src/core/forms/form-utils.part02.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,wBAAgB,KAAK,CACnB,GAAG,EAAE,WAAW,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC,CAAM,GAC9D,OAAO,CAMT;AACD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQjG;AACD,wBAAgB,YAAY,CAAC,CAAC,EAC5B,GAAG,EAAE,YAAY,EACjB,WAAW,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,OAAO,CAAC,CAAC,CAAC,EAC9C,QAAQ,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,OAAO,CAAC,CAAC,CAAC,GAC1C,OAAO,CAAC,CAAC,CAAC,CAKZ"}
|