@classytic/labs 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +105 -0
- package/dist/biology/enzyme-rate/index.d.mts +1 -0
- package/dist/biology/enzyme-rate/preset.d.mts +25 -0
- package/dist/biology/enzyme-rate/preset.mjs +256 -0
- package/dist/biology/genetic-cross/core.d.mts +64 -0
- package/dist/biology/genetic-cross/core.mjs +147 -0
- package/dist/biology/genetic-cross/grid.mjs +239 -0
- package/dist/biology/genetic-cross/index.d.mts +3 -0
- package/dist/biology/genetic-cross/preset.d.mts +26 -0
- package/dist/biology/genetic-cross/preset.mjs +184 -0
- package/dist/biology/genetic-cross/sex-linked.d.mts +27 -0
- package/dist/biology/genetic-cross/sex-linked.mjs +226 -0
- package/dist/biology/index.d.mts +11 -0
- package/dist/biology/index.mjs +12 -0
- package/dist/biology/photosynthesis-factors/index.d.mts +1 -0
- package/dist/biology/photosynthesis-factors/preset.d.mts +25 -0
- package/dist/biology/photosynthesis-factors/preset.mjs +270 -0
- package/dist/biology/punnett-cross/index.d.mts +1 -0
- package/dist/biology/punnett-cross/preset.d.mts +27 -0
- package/dist/biology/punnett-cross/preset.mjs +21 -0
- package/dist/biology/respiration/index.d.mts +1 -0
- package/dist/biology/respiration/preset.d.mts +17 -0
- package/dist/biology/respiration/preset.mjs +179 -0
- package/dist/biology/sequence/central-dogma.d.mts +17 -0
- package/dist/biology/sequence/central-dogma.mjs +339 -0
- package/dist/biology/sequence/core.d.mts +38 -0
- package/dist/biology/sequence/core.mjs +178 -0
- package/dist/biology/sequence/index.d.mts +3 -0
- package/dist/biology/sequence/preset.d.mts +20 -0
- package/dist/biology/sequence/preset.mjs +235 -0
- package/dist/blocks/accounting.d.mts +142 -0
- package/dist/blocks/accounting.mjs +446 -0
- package/dist/blocks/authoring.d.mts +12 -0
- package/dist/blocks/authoring.mjs +705 -0
- package/dist/blocks/biology.d.mts +197 -0
- package/dist/blocks/biology.mjs +513 -0
- package/dist/blocks/chem.d.mts +128 -0
- package/dist/blocks/chem.mjs +486 -0
- package/dist/blocks/circuits.d.mts +86 -0
- package/dist/blocks/circuits.mjs +348 -0
- package/dist/blocks/discrete.d.mts +62 -0
- package/dist/blocks/discrete.mjs +314 -0
- package/dist/blocks/economics.d.mts +56 -0
- package/dist/blocks/economics.mjs +203 -0
- package/dist/blocks/geography.d.mts +58 -0
- package/dist/blocks/geography.mjs +115 -0
- package/dist/blocks/geometry.d.mts +28 -0
- package/dist/blocks/geometry.mjs +160 -0
- package/dist/blocks/ict.d.mts +65 -0
- package/dist/blocks/ict.mjs +197 -0
- package/dist/blocks/index.d.mts +4555 -0
- package/dist/blocks/index.mjs +120 -0
- package/dist/blocks/lab-block.d.mts +16 -0
- package/dist/blocks/lab-block.mjs +74 -0
- package/dist/blocks/lab-config.d.mts +23 -0
- package/dist/blocks/lab-config.mjs +200 -0
- package/dist/blocks/lab-gallery.d.mts +30 -0
- package/dist/blocks/lab-gallery.mjs +208 -0
- package/dist/blocks/language.d.mts +349 -0
- package/dist/blocks/language.mjs +750 -0
- package/dist/blocks/lesson.d.mts +43 -0
- package/dist/blocks/lesson.mjs +140 -0
- package/dist/blocks/math.d.mts +411 -0
- package/dist/blocks/math.mjs +1536 -0
- package/dist/blocks/ml.d.mts +84 -0
- package/dist/blocks/ml.mjs +146 -0
- package/dist/blocks/physics.d.mts +259 -0
- package/dist/blocks/physics.mjs +868 -0
- package/dist/blocks/statistics.d.mts +29 -0
- package/dist/blocks/statistics.mjs +123 -0
- package/dist/catalog/index.d.mts +3 -0
- package/dist/catalog/index.mjs +8 -0
- package/dist/catalog/registry.d.mts +46 -0
- package/dist/catalog/registry.mjs +56 -0
- package/dist/catalog/templates.d.mts +11 -0
- package/dist/catalog/templates.mjs +141 -0
- package/dist/chem/battery.d.mts +16 -0
- package/dist/chem/battery.mjs +311 -0
- package/dist/chem/bohr-atom.d.mts +16 -0
- package/dist/chem/bohr-atom.mjs +212 -0
- package/dist/chem/diffusion/asset.mjs +76 -0
- package/dist/chem/diffusion/index.d.mts +1 -0
- package/dist/chem/diffusion/preset.d.mts +15 -0
- package/dist/chem/diffusion/preset.mjs +188 -0
- package/dist/chem/electrochem/index.d.mts +1 -0
- package/dist/chem/electrochem/preset.d.mts +23 -0
- package/dist/chem/electrochem/preset.mjs +402 -0
- package/dist/chem/equilibrium/index.d.mts +1 -0
- package/dist/chem/equilibrium/preset.d.mts +36 -0
- package/dist/chem/equilibrium/preset.mjs +416 -0
- package/dist/chem/gas-box/index.d.mts +1 -0
- package/dist/chem/gas-box/preset.d.mts +27 -0
- package/dist/chem/gas-box/preset.mjs +395 -0
- package/dist/chem/index.d.mts +16 -0
- package/dist/chem/index.mjs +17 -0
- package/dist/chem/kinetics/index.d.mts +1 -0
- package/dist/chem/kinetics/preset.d.mts +31 -0
- package/dist/chem/kinetics/preset.mjs +478 -0
- package/dist/chem/periodic-trends/index.d.mts +1 -0
- package/dist/chem/periodic-trends/preset.d.mts +21 -0
- package/dist/chem/periodic-trends/preset.mjs +831 -0
- package/dist/chem/reaction-lab.d.mts +18 -0
- package/dist/chem/reaction-lab.mjs +165 -0
- package/dist/chem/reaction-profile.d.mts +21 -0
- package/dist/chem/reaction-profile.mjs +287 -0
- package/dist/chem/solution/dilution.d.mts +27 -0
- package/dist/chem/solution/dilution.mjs +199 -0
- package/dist/chem/solution/field.d.mts +30 -0
- package/dist/chem/solution/field.mjs +145 -0
- package/dist/chem/solution/index.d.mts +3 -0
- package/dist/chem/solution/solution-box.d.mts +28 -0
- package/dist/chem/solution/solution-box.mjs +140 -0
- package/dist/chem/stoichiometry/index.d.mts +1 -0
- package/dist/chem/stoichiometry/preset.d.mts +29 -0
- package/dist/chem/stoichiometry/preset.mjs +392 -0
- package/dist/chem/titration/index.d.mts +1 -0
- package/dist/chem/titration/preset.d.mts +29 -0
- package/dist/chem/titration/preset.mjs +436 -0
- package/dist/circuits/ac-dc/asset.mjs +295 -0
- package/dist/circuits/ac-dc/index.d.mts +1 -0
- package/dist/circuits/ac-dc/preset.d.mts +16 -0
- package/dist/circuits/ac-dc/preset.mjs +134 -0
- package/dist/circuits/capacitor-leak/index.d.mts +1 -0
- package/dist/circuits/capacitor-leak/preset.d.mts +32 -0
- package/dist/circuits/capacitor-leak/preset.mjs +271 -0
- package/dist/circuits/circuit/asset.d.mts +6 -0
- package/dist/circuits/circuit/asset.mjs +367 -0
- package/dist/circuits/circuit/index.d.mts +2 -0
- package/dist/circuits/circuit/preset.d.mts +46 -0
- package/dist/circuits/circuit/preset.mjs +235 -0
- package/dist/circuits/circuit-builder.d.mts +30 -0
- package/dist/circuits/circuit-builder.mjs +412 -0
- package/dist/circuits/circuit-lab.d.mts +20 -0
- package/dist/circuits/circuit-lab.mjs +400 -0
- package/dist/circuits/index.d.mts +7 -0
- package/dist/circuits/index.mjs +8 -0
- package/dist/commerce/accounting/core.d.mts +48 -0
- package/dist/commerce/accounting/core.mjs +57 -0
- package/dist/commerce/accounting/equation-balance.d.mts +35 -0
- package/dist/commerce/accounting/equation-balance.mjs +292 -0
- package/dist/commerce/accounting/index.d.mts +4 -0
- package/dist/commerce/accounting/journal-poster.d.mts +29 -0
- package/dist/commerce/accounting/journal-poster.mjs +472 -0
- package/dist/commerce/accounting/statement-sorter.d.mts +25 -0
- package/dist/commerce/accounting/statement-sorter.mjs +304 -0
- package/dist/commerce/economics/core.d.mts +33 -0
- package/dist/commerce/economics/core.mjs +26 -0
- package/dist/commerce/economics/demand-shift-vs-move.d.mts +35 -0
- package/dist/commerce/economics/demand-shift-vs-move.mjs +324 -0
- package/dist/commerce/economics/elasticity-revenue.d.mts +31 -0
- package/dist/commerce/economics/elasticity-revenue.mjs +253 -0
- package/dist/commerce/economics/index.d.mts +4 -0
- package/dist/commerce/economics/market-equilibrium.d.mts +33 -0
- package/dist/commerce/economics/market-equilibrium.mjs +340 -0
- package/dist/commerce/index.d.mts +9 -0
- package/dist/commerce/index.mjs +10 -0
- package/dist/core/easing.d.mts +28 -0
- package/dist/core/easing.mjs +66 -0
- package/dist/core/index.d.mts +10 -0
- package/dist/core/index.mjs +11 -0
- package/dist/core/numeric.d.mts +37 -0
- package/dist/core/numeric.mjs +75 -0
- package/dist/core/reactive.d.mts +24 -0
- package/dist/core/reactive.mjs +51 -0
- package/dist/core/rng.d.mts +21 -0
- package/dist/core/rng.mjs +39 -0
- package/dist/core/tex.d.mts +14 -0
- package/dist/core/tex.mjs +44 -0
- package/dist/core/timeline.d.mts +34 -0
- package/dist/core/timeline.mjs +77 -0
- package/dist/core/util.d.mts +19 -0
- package/dist/core/util.mjs +31 -0
- package/dist/discrete/arrangements/preset.d.mts +28 -0
- package/dist/discrete/arrangements/preset.mjs +304 -0
- package/dist/discrete/bayes/preset.d.mts +33 -0
- package/dist/discrete/bayes/preset.mjs +476 -0
- package/dist/discrete/binomial/preset.d.mts +25 -0
- package/dist/discrete/binomial/preset.mjs +333 -0
- package/dist/discrete/core/combinatorics.d.mts +23 -0
- package/dist/discrete/core/combinatorics.mjs +57 -0
- package/dist/discrete/core/inclusionExclusion.d.mts +19 -0
- package/dist/discrete/core/inclusionExclusion.mjs +30 -0
- package/dist/discrete/core/pigeonhole.d.mts +15 -0
- package/dist/discrete/core/pigeonhole.mjs +24 -0
- package/dist/discrete/core/probability.d.mts +29 -0
- package/dist/discrete/core/probability.mjs +43 -0
- package/dist/discrete/core/sets.d.mts +21 -0
- package/dist/discrete/core/sets.mjs +45 -0
- package/dist/discrete/counting-slots/preset.d.mts +30 -0
- package/dist/discrete/counting-slots/preset.mjs +553 -0
- package/dist/discrete/counting-tree/index.d.mts +1 -0
- package/dist/discrete/counting-tree/preset.d.mts +44 -0
- package/dist/discrete/counting-tree/preset.mjs +364 -0
- package/dist/discrete/expected-value/preset.d.mts +28 -0
- package/dist/discrete/expected-value/preset.mjs +352 -0
- package/dist/discrete/hypergeometric/preset.d.mts +25 -0
- package/dist/discrete/hypergeometric/preset.mjs +330 -0
- package/dist/discrete/index.d.mts +26 -0
- package/dist/discrete/index.mjs +27 -0
- package/dist/discrete/karnaugh/index.d.mts +1 -0
- package/dist/discrete/karnaugh/preset.d.mts +30 -0
- package/dist/discrete/karnaugh/preset.mjs +452 -0
- package/dist/discrete/lln/asset.mjs +206 -0
- package/dist/discrete/lln/index.d.mts +1 -0
- package/dist/discrete/lln/preset.d.mts +17 -0
- package/dist/discrete/lln/preset.mjs +152 -0
- package/dist/discrete/logic-circuit/index.d.mts +1 -0
- package/dist/discrete/logic-circuit/preset.d.mts +47 -0
- package/dist/discrete/logic-circuit/preset.mjs +307 -0
- package/dist/discrete/monte-carlo/index.d.mts +1 -0
- package/dist/discrete/monte-carlo/preset.d.mts +64 -0
- package/dist/discrete/monte-carlo/preset.mjs +446 -0
- package/dist/discrete/monty-hall/index.d.mts +1 -0
- package/dist/discrete/monty-hall/preset.d.mts +23 -0
- package/dist/discrete/monty-hall/preset.mjs +491 -0
- package/dist/discrete/outcome-builder/preset.d.mts +24 -0
- package/dist/discrete/outcome-builder/preset.mjs +283 -0
- package/dist/discrete/pascal/preset.d.mts +24 -0
- package/dist/discrete/pascal/preset.mjs +372 -0
- package/dist/discrete/sample-space/index.d.mts +1 -0
- package/dist/discrete/sample-space/preset.d.mts +42 -0
- package/dist/discrete/sample-space/preset.mjs +395 -0
- package/dist/discrete/selection/preset.d.mts +33 -0
- package/dist/discrete/selection/preset.mjs +406 -0
- package/dist/discrete/truth-table/index.d.mts +1 -0
- package/dist/discrete/truth-table/preset.d.mts +30 -0
- package/dist/discrete/truth-table/preset.mjs +456 -0
- package/dist/discrete/venn/index.d.mts +1 -0
- package/dist/discrete/venn/preset.d.mts +32 -0
- package/dist/discrete/venn/preset.mjs +461 -0
- package/dist/geography/cycle-lab/index.d.mts +1 -0
- package/dist/geography/cycle-lab/preset.d.mts +25 -0
- package/dist/geography/cycle-lab/preset.mjs +254 -0
- package/dist/geography/cycles.d.mts +21 -0
- package/dist/geography/cycles.mjs +205 -0
- package/dist/geography/index.d.mts +4 -0
- package/dist/geography/index.mjs +5 -0
- package/dist/geometry/board/index.d.mts +1 -0
- package/dist/geometry/board/preset.d.mts +71 -0
- package/dist/geometry/board/preset.mjs +148 -0
- package/dist/geometry/builder.d.mts +18 -0
- package/dist/geometry/builder.mjs +332 -0
- package/dist/geometry/index.d.mts +4 -0
- package/dist/geometry/index.mjs +5 -0
- package/dist/geometry/intersecting-circles.d.mts +17 -0
- package/dist/geometry/intersecting-circles.mjs +104 -0
- package/dist/ict/index.d.mts +5 -0
- package/dist/ict/index.mjs +6 -0
- package/dist/ict/number-systems/base-odometer.d.mts +34 -0
- package/dist/ict/number-systems/base-odometer.mjs +160 -0
- package/dist/ict/number-systems/bit-grouper.d.mts +32 -0
- package/dist/ict/number-systems/bit-grouper.mjs +190 -0
- package/dist/ict/number-systems/index.d.mts +4 -0
- package/dist/ict/number-systems/place-value-dial.d.mts +29 -0
- package/dist/ict/number-systems/place-value-dial.mjs +153 -0
- package/dist/ict/number-systems/wheel.d.mts +73 -0
- package/dist/ict/number-systems/wheel.mjs +279 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +11 -0
- package/dist/kit/anim.mjs +52 -0
- package/dist/kit/annotate.mjs +116 -0
- package/dist/kit/answer-check.d.mts +38 -0
- package/dist/kit/answer-check.mjs +65 -0
- package/dist/kit/asset-util.mjs +15 -0
- package/dist/kit/controls.mjs +77 -0
- package/dist/kit/cycle.d.mts +44 -0
- package/dist/kit/cycle.mjs +188 -0
- package/dist/kit/diagram.mjs +176 -0
- package/dist/kit/electronics.mjs +357 -0
- package/dist/kit/expr-analysis.d.mts +37 -0
- package/dist/kit/expr-analysis.mjs +111 -0
- package/dist/kit/frame.d.mts +70 -0
- package/dist/kit/frame.mjs +205 -0
- package/dist/kit/freq-tree.mjs +99 -0
- package/dist/kit/gameshow.mjs +315 -0
- package/dist/kit/index.d.mts +5 -0
- package/dist/kit/index.mjs +6 -0
- package/dist/kit/logic-gates.d.mts +6 -0
- package/dist/kit/logic-gates.mjs +210 -0
- package/dist/kit/molecules.mjs +178 -0
- package/dist/kit/pedagogy.d.mts +126 -0
- package/dist/kit/pedagogy.mjs +331 -0
- package/dist/kit/play.d.mts +21 -0
- package/dist/kit/play.mjs +52 -0
- package/dist/kit/probability.mjs +141 -0
- package/dist/kit/proportion.mjs +112 -0
- package/dist/kit/reaction.mjs +102 -0
- package/dist/kit/rich.d.mts +10 -0
- package/dist/kit/rich.mjs +21 -0
- package/dist/kit/scale.mjs +230 -0
- package/dist/kit/space.mjs +326 -0
- package/dist/kit/steps.d.mts +24 -0
- package/dist/kit/steps.mjs +57 -0
- package/dist/kit/thermal.mjs +289 -0
- package/dist/language/agreement/index.d.mts +1 -0
- package/dist/language/agreement/preset.d.mts +27 -0
- package/dist/language/agreement/preset.mjs +113 -0
- package/dist/language/article-lens/index.d.mts +1 -0
- package/dist/language/article-lens/preset.d.mts +31 -0
- package/dist/language/article-lens/preset.mjs +125 -0
- package/dist/language/deck.d.mts +45 -0
- package/dist/language/deck.mjs +61 -0
- package/dist/language/icon.d.mts +40 -0
- package/dist/language/icon.mjs +73 -0
- package/dist/language/index.d.mts +10 -0
- package/dist/language/index.mjs +11 -0
- package/dist/language/preposition-scene/index.d.mts +1 -0
- package/dist/language/preposition-scene/preset.d.mts +34 -0
- package/dist/language/preposition-scene/preset.mjs +234 -0
- package/dist/language/sentence-builder/index.d.mts +1 -0
- package/dist/language/sentence-builder/preset.d.mts +32 -0
- package/dist/language/sentence-builder/preset.mjs +122 -0
- package/dist/language/transform/index.d.mts +1 -0
- package/dist/language/transform/preset.d.mts +31 -0
- package/dist/language/transform/preset.mjs +137 -0
- package/dist/language/ui.d.mts +53 -0
- package/dist/language/ui.mjs +88 -0
- package/dist/language/word-match/index.d.mts +1 -0
- package/dist/language/word-match/preset.d.mts +22 -0
- package/dist/language/word-match/preset.mjs +148 -0
- package/dist/math/area-model/asset.d.mts +6 -0
- package/dist/math/area-model/asset.mjs +270 -0
- package/dist/math/area-model/index.d.mts +2 -0
- package/dist/math/area-model/preset.d.mts +29 -0
- package/dist/math/area-model/preset.mjs +243 -0
- package/dist/math/balance-algebra/asset.d.mts +6 -0
- package/dist/math/balance-algebra/asset.mjs +150 -0
- package/dist/math/balance-algebra/index.d.mts +2 -0
- package/dist/math/balance-algebra/preset.d.mts +30 -0
- package/dist/math/balance-algebra/preset.mjs +228 -0
- package/dist/math/derivation.d.mts +22 -0
- package/dist/math/derivation.mjs +113 -0
- package/dist/math/derivative-explorer/index.d.mts +1 -0
- package/dist/math/derivative-explorer/preset.d.mts +19 -0
- package/dist/math/derivative-explorer/preset.mjs +227 -0
- package/dist/math/function-machine/index.d.mts +1 -0
- package/dist/math/function-machine/preset.d.mts +21 -0
- package/dist/math/function-machine/preset.mjs +177 -0
- package/dist/math/gradient-descent.d.mts +23 -0
- package/dist/math/gradient-descent.mjs +473 -0
- package/dist/math/grapher/index.d.mts +1 -0
- package/dist/math/grapher/preset.d.mts +40 -0
- package/dist/math/grapher/preset.mjs +313 -0
- package/dist/math/harmonic-form/index.d.mts +1 -0
- package/dist/math/harmonic-form/preset.d.mts +21 -0
- package/dist/math/harmonic-form/preset.mjs +387 -0
- package/dist/math/index.d.mts +25 -0
- package/dist/math/index.mjs +26 -0
- package/dist/math/integral-explorer/index.d.mts +1 -0
- package/dist/math/integral-explorer/preset.d.mts +23 -0
- package/dist/math/integral-explorer/preset.mjs +217 -0
- package/dist/math/interactive/index.d.mts +1 -0
- package/dist/math/interactive/preset.d.mts +72 -0
- package/dist/math/interactive/preset.mjs +202 -0
- package/dist/math/limit-explorer/index.d.mts +1 -0
- package/dist/math/limit-explorer/preset.d.mts +19 -0
- package/dist/math/limit-explorer/preset.mjs +216 -0
- package/dist/math/linear-system/index.d.mts +1 -0
- package/dist/math/linear-system/preset.d.mts +28 -0
- package/dist/math/linear-system/preset.mjs +164 -0
- package/dist/math/mystery-bucket/asset.d.mts +6 -0
- package/dist/math/mystery-bucket/asset.mjs +145 -0
- package/dist/math/mystery-bucket/index.d.mts +2 -0
- package/dist/math/mystery-bucket/preset.d.mts +36 -0
- package/dist/math/mystery-bucket/preset.mjs +116 -0
- package/dist/math/number-line/index.d.mts +1 -0
- package/dist/math/number-line/preset.d.mts +24 -0
- package/dist/math/number-line/preset.mjs +142 -0
- package/dist/math/parabola/index.d.mts +1 -0
- package/dist/math/parabola/preset.d.mts +13 -0
- package/dist/math/parabola/preset.mjs +79 -0
- package/dist/math/pattern/asset.d.mts +6 -0
- package/dist/math/pattern/asset.mjs +102 -0
- package/dist/math/pattern/index.d.mts +2 -0
- package/dist/math/pattern/preset.d.mts +32 -0
- package/dist/math/pattern/preset.mjs +294 -0
- package/dist/math/triangle-trig/index.d.mts +1 -0
- package/dist/math/triangle-trig/preset.d.mts +47 -0
- package/dist/math/triangle-trig/preset.mjs +245 -0
- package/dist/math/trig-explorer.d.mts +18 -0
- package/dist/math/trig-explorer.mjs +209 -0
- package/dist/ml/boundary/index.d.mts +1 -0
- package/dist/ml/boundary/preset.d.mts +24 -0
- package/dist/ml/boundary/preset.mjs +385 -0
- package/dist/ml/classifier/index.d.mts +1 -0
- package/dist/ml/classifier/preset.d.mts +25 -0
- package/dist/ml/classifier/preset.mjs +315 -0
- package/dist/ml/index.d.mts +6 -0
- package/dist/ml/index.mjs +7 -0
- package/dist/ml/kmeans/index.d.mts +1 -0
- package/dist/ml/kmeans/preset.d.mts +33 -0
- package/dist/ml/kmeans/preset.mjs +236 -0
- package/dist/ml/knn/index.d.mts +1 -0
- package/dist/ml/knn/preset.d.mts +28 -0
- package/dist/ml/knn/preset.mjs +279 -0
- package/dist/ml/regression/index.d.mts +1 -0
- package/dist/ml/regression/preset.d.mts +32 -0
- package/dist/ml/regression/preset.mjs +394 -0
- package/dist/physics/atwood/index.d.mts +1 -0
- package/dist/physics/atwood/preset.d.mts +23 -0
- package/dist/physics/atwood/preset.mjs +312 -0
- package/dist/physics/bullet-walls/index.d.mts +1 -0
- package/dist/physics/bullet-walls/preset.d.mts +28 -0
- package/dist/physics/bullet-walls/preset.mjs +373 -0
- package/dist/physics/carnot/index.d.mts +1 -0
- package/dist/physics/carnot/preset.d.mts +27 -0
- package/dist/physics/carnot/preset.mjs +427 -0
- package/dist/physics/circular-motion/index.d.mts +1 -0
- package/dist/physics/circular-motion/preset.d.mts +25 -0
- package/dist/physics/circular-motion/preset.mjs +293 -0
- package/dist/physics/collision-track/index.d.mts +1 -0
- package/dist/physics/collision-track/preset.d.mts +27 -0
- package/dist/physics/collision-track/preset.mjs +352 -0
- package/dist/physics/efficiency/index.d.mts +1 -0
- package/dist/physics/efficiency/preset.d.mts +33 -0
- package/dist/physics/efficiency/preset.mjs +343 -0
- package/dist/physics/electric-field/index.d.mts +1 -0
- package/dist/physics/electric-field/preset.d.mts +15 -0
- package/dist/physics/electric-field/preset.mjs +306 -0
- package/dist/physics/energy-skate/index.d.mts +1 -0
- package/dist/physics/energy-skate/preset.d.mts +25 -0
- package/dist/physics/energy-skate/preset.mjs +254 -0
- package/dist/physics/entropy/index.d.mts +1 -0
- package/dist/physics/entropy/preset.d.mts +18 -0
- package/dist/physics/entropy/preset.mjs +416 -0
- package/dist/physics/expansion/index.d.mts +1 -0
- package/dist/physics/expansion/preset.d.mts +26 -0
- package/dist/physics/expansion/preset.mjs +609 -0
- package/dist/physics/exponential/asset.mjs +221 -0
- package/dist/physics/exponential/index.d.mts +1 -0
- package/dist/physics/exponential/preset.d.mts +17 -0
- package/dist/physics/exponential/preset.mjs +182 -0
- package/dist/physics/gas-process/index.d.mts +1 -0
- package/dist/physics/gas-process/preset.d.mts +30 -0
- package/dist/physics/gas-process/preset.mjs +384 -0
- package/dist/physics/gravitation/index.d.mts +1 -0
- package/dist/physics/gravitation/preset.d.mts +24 -0
- package/dist/physics/gravitation/preset.mjs +345 -0
- package/dist/physics/gravity-drop.d.mts +9 -0
- package/dist/physics/gravity-drop.mjs +187 -0
- package/dist/physics/heat-transfer/index.d.mts +1 -0
- package/dist/physics/heat-transfer/preset.d.mts +27 -0
- package/dist/physics/heat-transfer/preset.mjs +626 -0
- package/dist/physics/impulse/index.d.mts +1 -0
- package/dist/physics/impulse/preset.d.mts +29 -0
- package/dist/physics/impulse/preset.mjs +453 -0
- package/dist/physics/index.d.mts +43 -0
- package/dist/physics/index.mjs +44 -0
- package/dist/physics/kepler/index.d.mts +1 -0
- package/dist/physics/kepler/preset.d.mts +27 -0
- package/dist/physics/kepler/preset.mjs +257 -0
- package/dist/physics/lever/asset.d.mts +6 -0
- package/dist/physics/lever/asset.mjs +220 -0
- package/dist/physics/lever/index.d.mts +2 -0
- package/dist/physics/lever/preset.d.mts +31 -0
- package/dist/physics/lever/preset.mjs +261 -0
- package/dist/physics/lorentz/index.d.mts +1 -0
- package/dist/physics/lorentz/preset.d.mts +29 -0
- package/dist/physics/lorentz/preset.mjs +367 -0
- package/dist/physics/magnetism/index.d.mts +1 -0
- package/dist/physics/magnetism/preset.d.mts +15 -0
- package/dist/physics/magnetism/preset.mjs +334 -0
- package/dist/physics/optics/asset.d.mts +6 -0
- package/dist/physics/optics/asset.mjs +234 -0
- package/dist/physics/optics/index.d.mts +2 -0
- package/dist/physics/optics/preset.d.mts +14 -0
- package/dist/physics/optics/preset.mjs +202 -0
- package/dist/physics/orbit-lab.d.mts +6 -0
- package/dist/physics/orbit-lab.mjs +222 -0
- package/dist/physics/projectile-lab.d.mts +10 -0
- package/dist/physics/projectile-lab.mjs +354 -0
- package/dist/physics/rain-relative/index.d.mts +1 -0
- package/dist/physics/rain-relative/preset.d.mts +19 -0
- package/dist/physics/rain-relative/preset.mjs +358 -0
- package/dist/physics/ramp-forces/index.d.mts +1 -0
- package/dist/physics/ramp-forces/preset.d.mts +36 -0
- package/dist/physics/ramp-forces/preset.mjs +550 -0
- package/dist/physics/river-boat.d.mts +22 -0
- package/dist/physics/river-boat.mjs +498 -0
- package/dist/physics/shm/index.d.mts +1 -0
- package/dist/physics/shm/preset.d.mts +33 -0
- package/dist/physics/shm/preset.mjs +554 -0
- package/dist/physics/stopping-distance/index.d.mts +1 -0
- package/dist/physics/stopping-distance/preset.d.mts +29 -0
- package/dist/physics/stopping-distance/preset.mjs +662 -0
- package/dist/physics/temperature-scales/index.d.mts +1 -0
- package/dist/physics/temperature-scales/preset.d.mts +15 -0
- package/dist/physics/temperature-scales/preset.mjs +353 -0
- package/dist/physics/terminal-velocity/index.d.mts +1 -0
- package/dist/physics/terminal-velocity/preset.d.mts +26 -0
- package/dist/physics/terminal-velocity/preset.mjs +404 -0
- package/dist/physics/thermal/index.d.mts +1 -0
- package/dist/physics/thermal/preset.d.mts +44 -0
- package/dist/physics/thermal/preset.mjs +373 -0
- package/dist/physics/vector-board/index.d.mts +1 -0
- package/dist/physics/vector-board/preset.d.mts +65 -0
- package/dist/physics/vector-board/preset.mjs +273 -0
- package/dist/physics/vector-board/view.d.mts +49 -0
- package/dist/physics/vector-board/view.mjs +58 -0
- package/dist/physics/vector-scene.d.mts +41 -0
- package/dist/physics/vector-scene.mjs +211 -0
- package/dist/physics/vector-types/index.d.mts +1 -0
- package/dist/physics/vector-types/preset.d.mts +27 -0
- package/dist/physics/vector-types/preset.mjs +192 -0
- package/dist/physics/water-density/index.d.mts +1 -0
- package/dist/physics/water-density/preset.d.mts +18 -0
- package/dist/physics/water-density/preset.mjs +439 -0
- package/dist/physics/waves/core.mjs +33 -0
- package/dist/physics/waves/doppler.d.mts +23 -0
- package/dist/physics/waves/doppler.mjs +260 -0
- package/dist/physics/waves/index.d.mts +4 -0
- package/dist/physics/waves/preset.d.mts +30 -0
- package/dist/physics/waves/preset.mjs +488 -0
- package/dist/physics/waves/ripple.d.mts +26 -0
- package/dist/physics/waves/ripple.mjs +234 -0
- package/dist/physics/waves/string.d.mts +29 -0
- package/dist/physics/waves/string.mjs +289 -0
- package/dist/physics/work-energy/index.d.mts +1 -0
- package/dist/physics/work-energy/preset.d.mts +17 -0
- package/dist/physics/work-energy/preset.mjs +341 -0
- package/dist/schemas/index.d.mts +235 -0
- package/dist/schemas/index.mjs +145 -0
- package/dist/statistics/center-spread/preset.d.mts +34 -0
- package/dist/statistics/center-spread/preset.mjs +323 -0
- package/dist/statistics/core/descriptive.d.mts +35 -0
- package/dist/statistics/core/descriptive.mjs +64 -0
- package/dist/statistics/core/normal.d.mts +21 -0
- package/dist/statistics/core/normal.mjs +37 -0
- package/dist/statistics/core/sequences.d.mts +27 -0
- package/dist/statistics/core/sequences.mjs +35 -0
- package/dist/statistics/galton/preset.d.mts +27 -0
- package/dist/statistics/galton/preset.mjs +331 -0
- package/dist/statistics/histogram/preset.d.mts +27 -0
- package/dist/statistics/histogram/preset.mjs +385 -0
- package/dist/statistics/index.d.mts +11 -0
- package/dist/statistics/index.mjs +12 -0
- package/dist/statistics/normal/preset.d.mts +30 -0
- package/dist/statistics/normal/preset.mjs +400 -0
- package/dist/statistics/sampling/preset.d.mts +32 -0
- package/dist/statistics/sampling/preset.mjs +406 -0
- package/dist/statistics/sequence/preset.d.mts +28 -0
- package/dist/statistics/sequence/preset.mjs +302 -0
- package/dist/statistics/z-table/preset.d.mts +28 -0
- package/dist/statistics/z-table/preset.mjs +348 -0
- package/package.json +266 -0
- package/styles.css +267 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { TruthTableLab } from "../discrete/truth-table/preset.mjs";
|
|
2
|
+
import { CountingTreeLab } from "../discrete/counting-tree/preset.mjs";
|
|
3
|
+
import { VennSetBoardLab } from "../discrete/venn/preset.mjs";
|
|
4
|
+
import { SampleSpaceBoardLab } from "../discrete/sample-space/preset.mjs";
|
|
5
|
+
import { BooleanCircuitLab } from "../discrete/logic-circuit/preset.mjs";
|
|
6
|
+
import { KarnaughMapLab } from "../discrete/karnaugh/preset.mjs";
|
|
7
|
+
import { MonteCarloLab } from "../discrete/monte-carlo/preset.mjs";
|
|
8
|
+
import { MontyHallLab } from "../discrete/monty-hall/preset.mjs";
|
|
9
|
+
import { OutcomeBuilderLab } from "../discrete/outcome-builder/preset.mjs";
|
|
10
|
+
import { BayesLab } from "../discrete/bayes/preset.mjs";
|
|
11
|
+
import { LawOfLargeNumbersLab } from "../discrete/lln/preset.mjs";
|
|
12
|
+
import { CountingSlotsLab } from "../discrete/counting-slots/preset.mjs";
|
|
13
|
+
import { SelectionLab } from "../discrete/selection/preset.mjs";
|
|
14
|
+
import { ArrangementsLab } from "../discrete/arrangements/preset.mjs";
|
|
15
|
+
import { PascalTriangleLab } from "../discrete/pascal/preset.mjs";
|
|
16
|
+
import { BinomialDistributionLab } from "../discrete/binomial/preset.mjs";
|
|
17
|
+
import { HypergeometricLab } from "../discrete/hypergeometric/preset.mjs";
|
|
18
|
+
import { ExpectedValueLab } from "../discrete/expected-value/preset.mjs";
|
|
19
|
+
import { LabConfig } from "./lab-config.mjs";
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { z } from "zod";
|
|
22
|
+
import { defineBlock } from "@classytic/cms-ui/contract";
|
|
23
|
+
|
|
24
|
+
//#region src/blocks/discrete.tsx
|
|
25
|
+
const common = {
|
|
26
|
+
title: z.string().optional(),
|
|
27
|
+
prompt: z.string().optional(),
|
|
28
|
+
objectives: z.array(z.string()).optional(),
|
|
29
|
+
hints: z.array(z.string()).optional(),
|
|
30
|
+
controlId: z.string().optional()
|
|
31
|
+
};
|
|
32
|
+
/** Build a block: schema + a LabConfig-wrapped editing Component (spreads attrs). */
|
|
33
|
+
function lab(key, tag, label, description, schema, Comp) {
|
|
34
|
+
return defineBlock({
|
|
35
|
+
key,
|
|
36
|
+
tag,
|
|
37
|
+
void: true,
|
|
38
|
+
label,
|
|
39
|
+
description,
|
|
40
|
+
category: "interactive",
|
|
41
|
+
schema,
|
|
42
|
+
Component: ({ attributes, mode, updateAttributes }) => {
|
|
43
|
+
const widget = Comp(attributes);
|
|
44
|
+
if (mode !== "editing" || !updateAttributes) return widget;
|
|
45
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(LabConfig, {
|
|
46
|
+
schema,
|
|
47
|
+
value: attributes,
|
|
48
|
+
onChange: updateAttributes
|
|
49
|
+
}), widget] });
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const truthSchema = z.object({
|
|
54
|
+
formula: z.string().default("p -> q"),
|
|
55
|
+
compare: z.string().optional(),
|
|
56
|
+
mode: z.enum([
|
|
57
|
+
"show",
|
|
58
|
+
"fill",
|
|
59
|
+
"classify"
|
|
60
|
+
]).default("fill"),
|
|
61
|
+
breakdown: z.boolean().optional(),
|
|
62
|
+
...common
|
|
63
|
+
});
|
|
64
|
+
const TruthTableBlock = lab("truth-table", "TruthTable", "Truth table", "Any propositional formula → truth table with sub-expression build-up, fill/classify modes, and an equivalence verdict against a second formula.", truthSchema, (a) => /* @__PURE__ */ jsx(TruthTableLab, { ...a }));
|
|
65
|
+
const treeSchema = z.object({
|
|
66
|
+
stages: z.array(z.object({
|
|
67
|
+
label: z.string().optional(),
|
|
68
|
+
branches: z.array(z.object({
|
|
69
|
+
label: z.string(),
|
|
70
|
+
weight: z.number().optional()
|
|
71
|
+
}))
|
|
72
|
+
})).optional(),
|
|
73
|
+
pool: z.array(z.string()).optional(),
|
|
74
|
+
draws: z.number().optional(),
|
|
75
|
+
replacement: z.boolean().optional(),
|
|
76
|
+
mode: z.enum(["count", "probability"]).optional(),
|
|
77
|
+
ask: z.enum(["ordered", "unordered"]).optional(),
|
|
78
|
+
...common
|
|
79
|
+
});
|
|
80
|
+
const CountingTreeBlock = lab("counting-tree", "CountingTree", "Counting / probability tree", "Sequential counting + probability trees: multiplication principle, permutations (shrinking pool), with-replacement, ÷k! collapse, or weighted probability paths. Best for small cases.", treeSchema, (a) => /* @__PURE__ */ jsx(CountingTreeLab, { ...a }));
|
|
81
|
+
const vennSchema = z.object({
|
|
82
|
+
sets: z.array(z.object({
|
|
83
|
+
name: z.string(),
|
|
84
|
+
members: z.array(z.union([z.number(), z.string()]))
|
|
85
|
+
})),
|
|
86
|
+
mode: z.enum(["explore", "shade"]).default("explore"),
|
|
87
|
+
target: z.string().optional(),
|
|
88
|
+
...common
|
|
89
|
+
});
|
|
90
|
+
const VennBlock = lab("venn", "VennSetBoard", "Venn diagram & inclusion–exclusion", "2–3 sets from real members: region counts + the inclusion–exclusion breakdown, or shade-to-match a set expression (graded on the logic kernel).", vennSchema, (a) => /* @__PURE__ */ jsx(VennSetBoardLab, { ...a }));
|
|
91
|
+
const sampleSchema = z.object({
|
|
92
|
+
dims: z.array(z.number()).optional(),
|
|
93
|
+
outcomes: z.array(z.string()).optional(),
|
|
94
|
+
event: z.object({
|
|
95
|
+
reduce: z.enum([
|
|
96
|
+
"sum",
|
|
97
|
+
"diff",
|
|
98
|
+
"max",
|
|
99
|
+
"min",
|
|
100
|
+
"product",
|
|
101
|
+
"same"
|
|
102
|
+
]).optional(),
|
|
103
|
+
cmp: z.enum([
|
|
104
|
+
"eq",
|
|
105
|
+
"lt",
|
|
106
|
+
"gt",
|
|
107
|
+
"le",
|
|
108
|
+
"ge"
|
|
109
|
+
]).optional(),
|
|
110
|
+
value: z.number().optional(),
|
|
111
|
+
favorable: z.array(z.string()).optional(),
|
|
112
|
+
label: z.string().optional()
|
|
113
|
+
}).optional(),
|
|
114
|
+
dice: z.boolean().optional(),
|
|
115
|
+
showValue: z.boolean().optional(),
|
|
116
|
+
mode: z.enum(["explore", "target"]).optional(),
|
|
117
|
+
...common
|
|
118
|
+
});
|
|
119
|
+
const SampleSpaceBlock = lab("sample-space", "SampleSpaceBoard", "Sample space (equally-likely)", "Dice/coins/cards as a grid of equally-likely outcomes: select an event → favourable ÷ total = P, as a reduced fraction. Real dice glyphs.", sampleSchema, (a) => /* @__PURE__ */ jsx(SampleSpaceBoardLab, { ...a }));
|
|
120
|
+
const gateType = z.enum([
|
|
121
|
+
"AND",
|
|
122
|
+
"OR",
|
|
123
|
+
"NOT",
|
|
124
|
+
"NAND",
|
|
125
|
+
"NOR",
|
|
126
|
+
"XOR",
|
|
127
|
+
"XNOR"
|
|
128
|
+
]);
|
|
129
|
+
const circuitSchema = z.object({
|
|
130
|
+
inputs: z.array(z.union([z.string(), z.object({
|
|
131
|
+
id: z.string(),
|
|
132
|
+
label: z.string().optional()
|
|
133
|
+
})])),
|
|
134
|
+
gates: z.array(z.object({
|
|
135
|
+
id: z.string(),
|
|
136
|
+
type: gateType,
|
|
137
|
+
in: z.array(z.string())
|
|
138
|
+
})),
|
|
139
|
+
outputs: z.array(z.object({
|
|
140
|
+
id: z.string(),
|
|
141
|
+
in: z.string(),
|
|
142
|
+
label: z.string().optional(),
|
|
143
|
+
color: z.string().optional(),
|
|
144
|
+
goal: z.boolean().optional()
|
|
145
|
+
})),
|
|
146
|
+
initial: z.record(z.string(), z.boolean()).optional(),
|
|
147
|
+
...common
|
|
148
|
+
});
|
|
149
|
+
const BooleanCircuitBlock = lab("logic-circuit", "BooleanCircuit", "Logic circuit (gates → lamps)", "Author a netlist (switches, typed gates, output LEDs); learners flip switches and watch power flow light the outputs. Optional goal = a puzzle.", circuitSchema, (a) => /* @__PURE__ */ jsx(BooleanCircuitLab, { ...a }));
|
|
150
|
+
const kmapSchema = z.object({
|
|
151
|
+
formula: z.string().optional(),
|
|
152
|
+
minterms: z.array(z.number()).optional(),
|
|
153
|
+
dontCares: z.array(z.number()).optional(),
|
|
154
|
+
vars: z.array(z.string()).optional(),
|
|
155
|
+
mode: z.enum(["show", "simplify"]).default("show"),
|
|
156
|
+
...common
|
|
157
|
+
});
|
|
158
|
+
const KarnaughBlock = lab("karnaugh", "KarnaughMap", "Karnaugh map", "Boolean minimisation by circling: Gray-coded map of a formula/minterms; show the minimal SOP cover or let learners draw their own groups (wrap-aware).", kmapSchema, (a) => /* @__PURE__ */ jsx(KarnaughMapLab, { ...a }));
|
|
159
|
+
const mcSchema = z.object({
|
|
160
|
+
experiment: z.object({
|
|
161
|
+
kind: z.enum([
|
|
162
|
+
"montyHall",
|
|
163
|
+
"piDarts",
|
|
164
|
+
"diceSum",
|
|
165
|
+
"bernoulli"
|
|
166
|
+
]),
|
|
167
|
+
doors: z.number().optional(),
|
|
168
|
+
dice: z.number().optional(),
|
|
169
|
+
target: z.number().optional(),
|
|
170
|
+
p: z.number().optional(),
|
|
171
|
+
label: z.string().optional()
|
|
172
|
+
}).optional(),
|
|
173
|
+
viz: z.enum(["runchart", "scatter"]).optional(),
|
|
174
|
+
seed: z.number().optional(),
|
|
175
|
+
...common
|
|
176
|
+
});
|
|
177
|
+
const MonteCarloBlock = lab("monte-carlo", "MonteCarlo", "Monte Carlo (law of large numbers)", "Estimate a probability by sampling: π-darts (scatter) or a convergence run-chart (Monty Hall, dice-sum, Bernoulli) homing onto the true value.", mcSchema, (a) => /* @__PURE__ */ jsx(MonteCarloLab, { ...a }));
|
|
178
|
+
const montySchema = z.object({
|
|
179
|
+
doors: z.number().optional(),
|
|
180
|
+
seed: z.number().optional(),
|
|
181
|
+
...common
|
|
182
|
+
});
|
|
183
|
+
const MontyHallBlock = lab("monty-hall", "MontyHall", "Monty Hall game", "Play the paradox: pick a door, Monty opens a goat, stay or switch — every game grows the switch/stay win-rate bars to 2/3 vs 1/3.", montySchema, (a) => /* @__PURE__ */ jsx(MontyHallLab, { ...a }));
|
|
184
|
+
const outcomeSchema = z.object({
|
|
185
|
+
stages: z.array(z.enum(["coin", "die"])).optional(),
|
|
186
|
+
maxOutcomes: z.number().optional(),
|
|
187
|
+
...common
|
|
188
|
+
});
|
|
189
|
+
const OutcomeBuilderBlock = lab("outcome-builder", "OutcomeBuilder", "Sample-space builder (coins & dice)", "Add coins/dice and watch every outcome fan out with the counting principle; click outcomes to mark an event → P = favourable ÷ total.", outcomeSchema, (a) => /* @__PURE__ */ jsx(OutcomeBuilderLab, { ...a }));
|
|
190
|
+
const bayesSchema = z.object({
|
|
191
|
+
prior: z.number().default(.01),
|
|
192
|
+
sensitivity: z.number().default(.9),
|
|
193
|
+
falsePositive: z.number().default(.09),
|
|
194
|
+
population: z.number().default(1e3),
|
|
195
|
+
conditionLabels: z.tuple([z.string(), z.string()]).optional(),
|
|
196
|
+
testLabels: z.tuple([z.string(), z.string()]).optional(),
|
|
197
|
+
predict: z.boolean().optional(),
|
|
198
|
+
...common
|
|
199
|
+
});
|
|
200
|
+
const BayesBlock = lab("bayes", "Bayes", "Bayes / base-rate trap", "Conditional probability via an area model + natural-frequency tree: a rare-disease positive test is usually a false alarm. Sliders for prevalence/sensitivity/false-positive.", bayesSchema, (a) => /* @__PURE__ */ jsx(BayesLab, { ...a }));
|
|
201
|
+
const slotsSchema = z.object({
|
|
202
|
+
items: z.array(z.string()).optional(),
|
|
203
|
+
slots: z.number().optional(),
|
|
204
|
+
positions: z.array(z.string()).optional(),
|
|
205
|
+
mode: z.enum(["arrange", "choose"]).optional(),
|
|
206
|
+
replacement: z.boolean().optional(),
|
|
207
|
+
...common
|
|
208
|
+
});
|
|
209
|
+
const CountingSlotsBlock = lab("counting-slots", "CountingSlots", "Counting by filling slots", "The multiplication principle as filling positions: pool shrinks, product builds (nPr, n!, nᵏ); \"choose\" mode collapses orderings ÷k! → nCr. Derives the formula.", slotsSchema, (a) => /* @__PURE__ */ jsx(CountingSlotsLab, { ...a }));
|
|
210
|
+
const selectionSchema = z.object({
|
|
211
|
+
groups: z.array(z.object({
|
|
212
|
+
label: z.string(),
|
|
213
|
+
count: z.number(),
|
|
214
|
+
color: z.string().optional()
|
|
215
|
+
})).optional(),
|
|
216
|
+
draw: z.number().optional(),
|
|
217
|
+
want: z.array(z.number()).optional(),
|
|
218
|
+
mode: z.enum(["count", "probability"]).optional(),
|
|
219
|
+
...common
|
|
220
|
+
});
|
|
221
|
+
const SelectionBlock = lab("selection", "Selection", "Draw from the bag (cards & colored balls)", "Selecting from groups: ways = ∏ C(group,want), P = ways ÷ C(N,k). Colored-ball urns and card hands from one model.", selectionSchema, (a) => /* @__PURE__ */ jsx(SelectionLab, { ...a }));
|
|
222
|
+
const arrangeSchema = z.object({
|
|
223
|
+
word: z.string().optional(),
|
|
224
|
+
items: z.array(z.object({
|
|
225
|
+
label: z.string(),
|
|
226
|
+
count: z.number(),
|
|
227
|
+
color: z.string().optional()
|
|
228
|
+
})).optional(),
|
|
229
|
+
...common
|
|
230
|
+
});
|
|
231
|
+
const ArrangementsBlock = lab("arrangements", "Arrangements", "Arrange with repeats (multiset)", "Arrangements when some items are identical (MISSISSIPPI): n! ÷ (n₁!·n₂!…), derived from the swap-overcount.", arrangeSchema, (a) => /* @__PURE__ */ jsx(ArrangementsLab, { ...a }));
|
|
232
|
+
const pascalSchema = z.object({
|
|
233
|
+
rows: z.number().optional(),
|
|
234
|
+
view: z.enum([
|
|
235
|
+
"build",
|
|
236
|
+
"binomial",
|
|
237
|
+
"parity"
|
|
238
|
+
]).optional(),
|
|
239
|
+
...common
|
|
240
|
+
});
|
|
241
|
+
const PascalBlock = lab("pascal", "PascalTriangle", "Pascal's triangle", "Each cell = the two above added = C(n,k); a row = (a+b)ⁿ; odd/even cells reveal the Sierpiński fractal.", pascalSchema, (a) => /* @__PURE__ */ jsx(PascalTriangleLab, { ...a }));
|
|
242
|
+
const binomialSchema = z.object({
|
|
243
|
+
n: z.number().default(10),
|
|
244
|
+
p: z.number().default(.5),
|
|
245
|
+
showNormal: z.boolean().optional(),
|
|
246
|
+
...common
|
|
247
|
+
});
|
|
248
|
+
const BinomialBlock = lab("binomial", "Binomial", "Binomial distribution", "P(k successes) = C(n,k)pᵏ(1−p)ⁿ⁻ᵏ as bars; click a bar to derive it; bell overlay shows it approach the normal.", binomialSchema, (a) => /* @__PURE__ */ jsx(BinomialDistributionLab, { ...a }));
|
|
249
|
+
const hyperSchema = z.object({
|
|
250
|
+
N: z.number().default(10),
|
|
251
|
+
K: z.number().default(4),
|
|
252
|
+
n: z.number().default(3),
|
|
253
|
+
...common
|
|
254
|
+
});
|
|
255
|
+
const HypergeometricBlock = lab("hypergeometric", "Hypergeometric", "With vs without replacement", "Same urn, draw n: binomial (with replacement) vs hypergeometric (without) as paired bars; same mean, hyper narrower, merging as N grows.", hyperSchema, (a) => /* @__PURE__ */ jsx(HypergeometricLab, { ...a }));
|
|
256
|
+
const evSchema = z.object({
|
|
257
|
+
outcomes: z.array(z.object({
|
|
258
|
+
label: z.string().optional(),
|
|
259
|
+
value: z.number(),
|
|
260
|
+
prob: z.number()
|
|
261
|
+
})).optional(),
|
|
262
|
+
cost: z.number().optional(),
|
|
263
|
+
mode: z.enum(["count", "probability"]).optional(),
|
|
264
|
+
...common
|
|
265
|
+
});
|
|
266
|
+
const ExpectedValueBlock = lab("expected-value", "ExpectedValue", "Expected value (is the game fair?)", "E[X] = Σ value·prob as a balance point of the payouts; cost marker shows the house edge; spin to watch the average converge.", evSchema, (a) => /* @__PURE__ */ jsx(ExpectedValueLab, { ...a }));
|
|
267
|
+
const llnSchema = z.object({
|
|
268
|
+
experiment: z.enum(["coin", "die"]).optional(),
|
|
269
|
+
...common
|
|
270
|
+
});
|
|
271
|
+
const LawOfLargeNumbersBlock = lab("lln", "LawOfLargeNumbers", "Law of large numbers", "A coin/die sampler: running frequencies converge onto the true probabilities as draws pile up.", llnSchema, (a) => /* @__PURE__ */ jsx(LawOfLargeNumbersLab, { ...a }));
|
|
272
|
+
const discreteBlocks = [
|
|
273
|
+
TruthTableBlock,
|
|
274
|
+
CountingTreeBlock,
|
|
275
|
+
VennBlock,
|
|
276
|
+
SampleSpaceBlock,
|
|
277
|
+
BooleanCircuitBlock,
|
|
278
|
+
KarnaughBlock,
|
|
279
|
+
MonteCarloBlock,
|
|
280
|
+
MontyHallBlock,
|
|
281
|
+
OutcomeBuilderBlock,
|
|
282
|
+
BayesBlock,
|
|
283
|
+
CountingSlotsBlock,
|
|
284
|
+
SelectionBlock,
|
|
285
|
+
ArrangementsBlock,
|
|
286
|
+
PascalBlock,
|
|
287
|
+
BinomialBlock,
|
|
288
|
+
HypergeometricBlock,
|
|
289
|
+
ExpectedValueBlock,
|
|
290
|
+
LawOfLargeNumbersBlock
|
|
291
|
+
];
|
|
292
|
+
const discreteComponents = {
|
|
293
|
+
TruthTable: TruthTableLab,
|
|
294
|
+
CountingTree: CountingTreeLab,
|
|
295
|
+
VennSetBoard: VennSetBoardLab,
|
|
296
|
+
SampleSpaceBoard: SampleSpaceBoardLab,
|
|
297
|
+
BooleanCircuit: BooleanCircuitLab,
|
|
298
|
+
KarnaughMap: KarnaughMapLab,
|
|
299
|
+
MonteCarlo: MonteCarloLab,
|
|
300
|
+
MontyHall: MontyHallLab,
|
|
301
|
+
OutcomeBuilder: OutcomeBuilderLab,
|
|
302
|
+
Bayes: BayesLab,
|
|
303
|
+
CountingSlots: CountingSlotsLab,
|
|
304
|
+
Selection: SelectionLab,
|
|
305
|
+
Arrangements: ArrangementsLab,
|
|
306
|
+
PascalTriangle: PascalTriangleLab,
|
|
307
|
+
Binomial: BinomialDistributionLab,
|
|
308
|
+
Hypergeometric: HypergeometricLab,
|
|
309
|
+
ExpectedValue: ExpectedValueLab,
|
|
310
|
+
LawOfLargeNumbers: LawOfLargeNumbersLab
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
//#endregion
|
|
314
|
+
export { ArrangementsBlock, BayesBlock, BinomialBlock, BooleanCircuitBlock, CountingSlotsBlock, CountingTreeBlock, ExpectedValueBlock, HypergeometricBlock, KarnaughBlock, LawOfLargeNumbersBlock, MonteCarloBlock, MontyHallBlock, OutcomeBuilderBlock, PascalBlock, SampleSpaceBlock, SelectionBlock, TruthTableBlock, VennBlock, discreteBlocks, discreteComponents };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { MarketEquilibriumLab } from "../commerce/economics/market-equilibrium.mjs";
|
|
2
|
+
import { ElasticityRevenueLab } from "../commerce/economics/elasticity-revenue.mjs";
|
|
3
|
+
import { DemandShiftVsMoveLab } from "../commerce/economics/demand-shift-vs-move.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
6
|
+
//#region src/blocks/economics.d.ts
|
|
7
|
+
declare const MarketEquilibriumBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
8
|
+
demandIntercept: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
demandSlope: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
supplyIntercept: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
supplySlope: z.ZodDefault<z.ZodNumber>;
|
|
12
|
+
shiftDemand: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
shiftSupply: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
goodLabel: z.ZodOptional<z.ZodString>;
|
|
15
|
+
title: z.ZodOptional<z.ZodString>;
|
|
16
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
declare const ElasticityRevenueBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
19
|
+
pivotP: z.ZodDefault<z.ZodNumber>;
|
|
20
|
+
pivotQ: z.ZodDefault<z.ZodNumber>;
|
|
21
|
+
title: z.ZodOptional<z.ZodString>;
|
|
22
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
declare const DemandShiftVsMoveBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
25
|
+
askPrediction: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
title: z.ZodOptional<z.ZodString>;
|
|
27
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
/** This domain's block specs + tag→component render map. */
|
|
30
|
+
declare const economicsBlocks: readonly [import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
31
|
+
demandIntercept: z.ZodDefault<z.ZodNumber>;
|
|
32
|
+
demandSlope: z.ZodDefault<z.ZodNumber>;
|
|
33
|
+
supplyIntercept: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
supplySlope: z.ZodDefault<z.ZodNumber>;
|
|
35
|
+
shiftDemand: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
shiftSupply: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
goodLabel: z.ZodOptional<z.ZodString>;
|
|
38
|
+
title: z.ZodOptional<z.ZodString>;
|
|
39
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
41
|
+
pivotP: z.ZodDefault<z.ZodNumber>;
|
|
42
|
+
pivotQ: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
title: z.ZodOptional<z.ZodString>;
|
|
44
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>>, import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
46
|
+
askPrediction: z.ZodDefault<z.ZodBoolean>;
|
|
47
|
+
title: z.ZodOptional<z.ZodString>;
|
|
48
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>>];
|
|
50
|
+
declare const economicsComponents: {
|
|
51
|
+
readonly MarketEquilibrium: typeof MarketEquilibriumLab;
|
|
52
|
+
readonly ElasticityRevenue: typeof ElasticityRevenueLab;
|
|
53
|
+
readonly DemandShiftVsMove: typeof DemandShiftVsMoveLab;
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
export { DemandShiftVsMoveBlock, ElasticityRevenueBlock, MarketEquilibriumBlock, economicsBlocks, economicsComponents };
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { MarketEquilibriumLab } from "../commerce/economics/market-equilibrium.mjs";
|
|
2
|
+
import { ElasticityRevenueLab } from "../commerce/economics/elasticity-revenue.mjs";
|
|
3
|
+
import { DemandShiftVsMoveLab } from "../commerce/economics/demand-shift-vs-move.mjs";
|
|
4
|
+
import { ChipToggle, ConfigPanel, ConfigRow, NumField, TextField } from "./authoring.mjs";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { defineBlock } from "@classytic/cms-ui/contract";
|
|
8
|
+
|
|
9
|
+
//#region src/blocks/economics.tsx
|
|
10
|
+
/**
|
|
11
|
+
* @classytic/labs/blocks — economics (commerce) lab block specs.
|
|
12
|
+
*
|
|
13
|
+
* `defineBlock` editor adapters for the economics labs. A creator/agent authors
|
|
14
|
+
* the curve parameters + which controls are on. One domain per file; assembled in
|
|
15
|
+
* `./index.ts` and exported at `@classytic/labs/blocks/economics`.
|
|
16
|
+
*/
|
|
17
|
+
const MarketEquilibriumBlock = defineBlock({
|
|
18
|
+
key: "market-equilibrium",
|
|
19
|
+
tag: "MarketEquilibrium",
|
|
20
|
+
void: true,
|
|
21
|
+
label: "Supply & demand equilibrium",
|
|
22
|
+
description: "Drag the price across fixed demand + supply lines; the lab shades the surplus (amber, above eq) or shortage (red, below eq) gap and marks where the market clears. Shift sliders move both P* and Q*. Author the curve parameters.",
|
|
23
|
+
category: "interactive",
|
|
24
|
+
schema: z.object({
|
|
25
|
+
demandIntercept: z.number().default(9),
|
|
26
|
+
demandSlope: z.number().default(.8),
|
|
27
|
+
supplyIntercept: z.number().default(1),
|
|
28
|
+
supplySlope: z.number().default(.7),
|
|
29
|
+
shiftDemand: z.boolean().default(true),
|
|
30
|
+
shiftSupply: z.boolean().default(true),
|
|
31
|
+
goodLabel: z.string().optional(),
|
|
32
|
+
title: z.string().optional(),
|
|
33
|
+
prompt: z.string().optional()
|
|
34
|
+
}),
|
|
35
|
+
Component: ({ attributes, mode, updateAttributes }) => {
|
|
36
|
+
const widget = /* @__PURE__ */ jsx(MarketEquilibriumLab, {
|
|
37
|
+
demand: {
|
|
38
|
+
intercept: attributes.demandIntercept ?? 9,
|
|
39
|
+
slope: attributes.demandSlope ?? .8
|
|
40
|
+
},
|
|
41
|
+
supply: {
|
|
42
|
+
intercept: attributes.supplyIntercept ?? 1,
|
|
43
|
+
slope: attributes.supplySlope ?? .7
|
|
44
|
+
},
|
|
45
|
+
shiftControls: {
|
|
46
|
+
demand: attributes.shiftDemand,
|
|
47
|
+
supply: attributes.shiftSupply
|
|
48
|
+
},
|
|
49
|
+
goodLabel: attributes.goodLabel,
|
|
50
|
+
title: attributes.title,
|
|
51
|
+
prompt: attributes.prompt
|
|
52
|
+
});
|
|
53
|
+
if (mode !== "editing" || !updateAttributes) return widget;
|
|
54
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs(ConfigPanel, { children: [
|
|
55
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
56
|
+
label: "title",
|
|
57
|
+
children: /* @__PURE__ */ jsx(TextField, {
|
|
58
|
+
value: attributes.title ?? "",
|
|
59
|
+
onChange: (v) => updateAttributes({ title: v }),
|
|
60
|
+
placeholder: "Where the market clears"
|
|
61
|
+
})
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
64
|
+
label: "demand intercept",
|
|
65
|
+
children: /* @__PURE__ */ jsx(NumField, {
|
|
66
|
+
value: attributes.demandIntercept ?? 9,
|
|
67
|
+
onChange: (v) => updateAttributes({ demandIntercept: v })
|
|
68
|
+
})
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
71
|
+
label: "demand slope",
|
|
72
|
+
children: /* @__PURE__ */ jsx(NumField, {
|
|
73
|
+
value: attributes.demandSlope ?? .8,
|
|
74
|
+
onChange: (v) => updateAttributes({ demandSlope: v })
|
|
75
|
+
})
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
78
|
+
label: "supply intercept",
|
|
79
|
+
children: /* @__PURE__ */ jsx(NumField, {
|
|
80
|
+
value: attributes.supplyIntercept ?? 1,
|
|
81
|
+
onChange: (v) => updateAttributes({ supplyIntercept: v })
|
|
82
|
+
})
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
85
|
+
label: "supply slope",
|
|
86
|
+
children: /* @__PURE__ */ jsx(NumField, {
|
|
87
|
+
value: attributes.supplySlope ?? .7,
|
|
88
|
+
onChange: (v) => updateAttributes({ supplySlope: v })
|
|
89
|
+
})
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
92
|
+
label: "shift sliders",
|
|
93
|
+
children: /* @__PURE__ */ jsx(ChipToggle, {
|
|
94
|
+
active: attributes.shiftDemand !== false,
|
|
95
|
+
onClick: () => updateAttributes({
|
|
96
|
+
shiftDemand: attributes.shiftDemand === false,
|
|
97
|
+
shiftSupply: attributes.shiftDemand === false
|
|
98
|
+
}),
|
|
99
|
+
children: "on"
|
|
100
|
+
})
|
|
101
|
+
})
|
|
102
|
+
] }), widget] });
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const ElasticityRevenueBlock = defineBlock({
|
|
106
|
+
key: "elasticity-revenue",
|
|
107
|
+
tag: "ElasticityRevenue",
|
|
108
|
+
void: true,
|
|
109
|
+
label: "Elasticity & total revenue",
|
|
110
|
+
description: "Rotate the demand line (substitutes) from steep (inelastic) to flat (elastic); drag the price and watch the total-revenue rectangle + the point-elasticity flip elastic→unit→inelastic down a single straight line.",
|
|
111
|
+
category: "interactive",
|
|
112
|
+
schema: z.object({
|
|
113
|
+
pivotP: z.number().default(5),
|
|
114
|
+
pivotQ: z.number().default(5),
|
|
115
|
+
title: z.string().optional(),
|
|
116
|
+
prompt: z.string().optional()
|
|
117
|
+
}),
|
|
118
|
+
Component: ({ attributes, mode, updateAttributes }) => {
|
|
119
|
+
const widget = /* @__PURE__ */ jsx(ElasticityRevenueLab, {
|
|
120
|
+
pivot: {
|
|
121
|
+
p: attributes.pivotP ?? 5,
|
|
122
|
+
q: attributes.pivotQ ?? 5
|
|
123
|
+
},
|
|
124
|
+
title: attributes.title,
|
|
125
|
+
prompt: attributes.prompt
|
|
126
|
+
});
|
|
127
|
+
if (mode !== "editing" || !updateAttributes) return widget;
|
|
128
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs(ConfigPanel, { children: [
|
|
129
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
130
|
+
label: "title",
|
|
131
|
+
children: /* @__PURE__ */ jsx(TextField, {
|
|
132
|
+
value: attributes.title ?? "",
|
|
133
|
+
onChange: (v) => updateAttributes({ title: v }),
|
|
134
|
+
placeholder: "The stretch test"
|
|
135
|
+
})
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
138
|
+
label: "pivot price",
|
|
139
|
+
children: /* @__PURE__ */ jsx(NumField, {
|
|
140
|
+
value: attributes.pivotP ?? 5,
|
|
141
|
+
onChange: (v) => updateAttributes({ pivotP: v })
|
|
142
|
+
})
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ jsx(ConfigRow, {
|
|
145
|
+
label: "pivot quantity",
|
|
146
|
+
children: /* @__PURE__ */ jsx(NumField, {
|
|
147
|
+
value: attributes.pivotQ ?? 5,
|
|
148
|
+
onChange: (v) => updateAttributes({ pivotQ: v })
|
|
149
|
+
})
|
|
150
|
+
})
|
|
151
|
+
] }), widget] });
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
const DemandShiftVsMoveBlock = defineBlock({
|
|
155
|
+
key: "demand-shift-vs-move",
|
|
156
|
+
tag: "DemandShiftVsMove",
|
|
157
|
+
void: true,
|
|
158
|
+
label: "Shift vs movement along (demand)",
|
|
159
|
+
description: "Dragging price slides a dot ALONG a fixed demand curve (Δ quantity demanded); clicking a non-price TRIBE factor SHIFTS the whole curve (Δ demand) → new equilibrium. Predict-then-check the P/Q direction.",
|
|
160
|
+
category: "interactive",
|
|
161
|
+
schema: z.object({
|
|
162
|
+
askPrediction: z.boolean().default(true),
|
|
163
|
+
title: z.string().optional(),
|
|
164
|
+
prompt: z.string().optional()
|
|
165
|
+
}),
|
|
166
|
+
Component: ({ attributes, mode, updateAttributes }) => {
|
|
167
|
+
const widget = /* @__PURE__ */ jsx(DemandShiftVsMoveLab, {
|
|
168
|
+
askPrediction: attributes.askPrediction,
|
|
169
|
+
title: attributes.title,
|
|
170
|
+
prompt: attributes.prompt
|
|
171
|
+
});
|
|
172
|
+
if (mode !== "editing" || !updateAttributes) return widget;
|
|
173
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs(ConfigPanel, { children: [/* @__PURE__ */ jsx(ConfigRow, {
|
|
174
|
+
label: "title",
|
|
175
|
+
children: /* @__PURE__ */ jsx(TextField, {
|
|
176
|
+
value: attributes.title ?? "",
|
|
177
|
+
onChange: (v) => updateAttributes({ title: v }),
|
|
178
|
+
placeholder: "Shift or move along?"
|
|
179
|
+
})
|
|
180
|
+
}), /* @__PURE__ */ jsx(ConfigRow, {
|
|
181
|
+
label: "ask prediction",
|
|
182
|
+
children: /* @__PURE__ */ jsx(ChipToggle, {
|
|
183
|
+
active: attributes.askPrediction !== false,
|
|
184
|
+
onClick: () => updateAttributes({ askPrediction: attributes.askPrediction === false }),
|
|
185
|
+
children: "predict-then-check"
|
|
186
|
+
})
|
|
187
|
+
})] }), widget] });
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
/** This domain's block specs + tag→component render map. */
|
|
191
|
+
const economicsBlocks = [
|
|
192
|
+
MarketEquilibriumBlock,
|
|
193
|
+
ElasticityRevenueBlock,
|
|
194
|
+
DemandShiftVsMoveBlock
|
|
195
|
+
];
|
|
196
|
+
const economicsComponents = {
|
|
197
|
+
MarketEquilibrium: MarketEquilibriumLab,
|
|
198
|
+
ElasticityRevenue: ElasticityRevenueLab,
|
|
199
|
+
DemandShiftVsMove: DemandShiftVsMoveLab
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
//#endregion
|
|
203
|
+
export { DemandShiftVsMoveBlock, ElasticityRevenueBlock, MarketEquilibriumBlock, economicsBlocks, economicsComponents };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CycleLab } from "../geography/cycle-lab/preset.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/blocks/geography.d.ts
|
|
5
|
+
declare const CycleBlock: import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
6
|
+
preset: z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
custom: "custom";
|
|
8
|
+
water: "water";
|
|
9
|
+
rock: "rock";
|
|
10
|
+
carbon: "carbon";
|
|
11
|
+
}>>;
|
|
12
|
+
challenge: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
trace: "trace";
|
|
14
|
+
"label-process": "label-process";
|
|
15
|
+
}>>;
|
|
16
|
+
nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
label: z.ZodString;
|
|
19
|
+
tone: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
from: z.ZodString;
|
|
23
|
+
to: z.ZodString;
|
|
24
|
+
label: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
title: z.ZodOptional<z.ZodString>;
|
|
27
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
/** This domain's block specs + tag→component render map. */
|
|
30
|
+
declare const geographyBlocks: readonly [import("@classytic/cms-ui/contract").CmsBlock<z.ZodObject<{
|
|
31
|
+
preset: z.ZodDefault<z.ZodEnum<{
|
|
32
|
+
custom: "custom";
|
|
33
|
+
water: "water";
|
|
34
|
+
rock: "rock";
|
|
35
|
+
carbon: "carbon";
|
|
36
|
+
}>>;
|
|
37
|
+
challenge: z.ZodDefault<z.ZodEnum<{
|
|
38
|
+
trace: "trace";
|
|
39
|
+
"label-process": "label-process";
|
|
40
|
+
}>>;
|
|
41
|
+
nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
label: z.ZodString;
|
|
44
|
+
tone: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
from: z.ZodString;
|
|
48
|
+
to: z.ZodString;
|
|
49
|
+
label: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
title: z.ZodOptional<z.ZodString>;
|
|
52
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>>];
|
|
54
|
+
declare const geographyComponents: {
|
|
55
|
+
readonly Cycle: typeof CycleLab;
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { CycleBlock, geographyBlocks, geographyComponents };
|