@tryvitris/website-harness 0.0.0-stage → 0.1.0-beta.5
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/CONTRIBUTING.md +7 -0
- package/LICENSE +21 -0
- package/NOTICE +17 -0
- package/README.md +139 -2
- package/agent/EVALUATION.md +23 -0
- package/agent/PROMPT.md +13 -0
- package/agent/STATE.json +109 -0
- package/agent/WORKFLOW.md +108 -0
- package/agent/evals/preview.md +5 -0
- package/agent/graph.yaml +752 -0
- package/agent/guardrails.md +10 -0
- package/agent/refs/accessibility.md +9 -0
- package/agent/refs/art-direction.md +15 -0
- package/agent/refs/brand.md +3 -0
- package/agent/refs/browser.md +15 -0
- package/agent/refs/business.md +9 -0
- package/agent/refs/components.md +42 -0
- package/agent/refs/compose.md +10 -0
- package/agent/refs/contracts.md +32 -0
- package/agent/refs/copy.md +14 -0
- package/agent/refs/counterpoint.md +3 -0
- package/agent/refs/critic.md +29 -0
- package/agent/refs/design-calibration.md +31 -0
- package/agent/refs/design-feedback.md +13 -0
- package/agent/refs/design-quality.md +33 -0
- package/agent/refs/design-synthesis.md +9 -0
- package/agent/refs/direction.md +29 -0
- package/agent/refs/feedback-fulfillment.md +7 -0
- package/agent/refs/geo.md +7 -0
- package/agent/refs/harvest.md +7 -0
- package/agent/refs/icons.md +102 -0
- package/agent/refs/images.md +3 -0
- package/agent/refs/implement.md +24 -0
- package/agent/refs/industry-reference-shortlist.md +64 -0
- package/agent/refs/inspiration.md +17 -0
- package/agent/refs/interpret.md +3 -0
- package/agent/refs/jev.md +166 -0
- package/agent/refs/launch.md +11 -0
- package/agent/refs/layout.md +7 -0
- package/agent/refs/media.md +35 -0
- package/agent/refs/motif.md +3 -0
- package/agent/refs/motion-count.md +13 -0
- package/agent/refs/motion-image.md +12 -0
- package/agent/refs/motion-numeric.md +14 -0
- package/agent/refs/motion-page.md +23 -0
- package/agent/refs/motion-process.md +12 -0
- package/agent/refs/motion-sequence.md +7 -0
- package/agent/refs/motion-text.md +12 -0
- package/agent/refs/motion.md +11 -0
- package/agent/refs/narrative.md +9 -0
- package/agent/refs/performance.md +36 -0
- package/agent/refs/preview.md +3 -0
- package/agent/refs/production-quality.md +33 -0
- package/agent/refs/psychology.md +3 -0
- package/agent/refs/refine.md +14 -0
- package/agent/refs/research.md +7 -0
- package/agent/refs/sections.md +6 -0
- package/agent/refs/seo.md +9 -0
- package/agent/refs/storyboard.md +27 -0
- package/agent/refs/template-adaptation.md +42 -0
- package/agent/refs/template-from-url.md +91 -0
- package/agent/refs/template-library.md +32 -0
- package/agent/refs/template-motion.md +44 -0
- package/agent/refs/theme-selection.md +13 -0
- package/agent/refs/ui-ux.md +7 -0
- package/agent/refs/usability.md +5 -0
- package/agent/refs/variant-directions.md +20 -0
- package/agent/refs/write.md +6 -0
- package/agent/request.json +11 -0
- package/agent/workflow.json +4 -0
- package/bin/api/agent/artifacts.js +38 -0
- package/bin/api/agent/evaluate.js +55 -0
- package/bin/api/agent/grade.js +51 -0
- package/bin/api/agent/graph.js +16 -0
- package/bin/api/cli/api.js +104 -0
- package/bin/api/cli.js +48 -0
- package/bin/api/contracts.js +22 -0
- package/bin/api/engine.js +53 -0
- package/bin/api/hosting.js +40 -0
- package/bin/api/icons.js +57 -0
- package/bin/api/index.js +20 -0
- package/bin/api/references.js +45 -0
- package/bin/api/render.js +61 -0
- package/bin/api/schema.js +68 -0
- package/bin/api/theme.js +9 -0
- package/bin/api/types.js +8 -0
- package/bin/chunks/chunk-2NW7KSPA.js +17 -0
- package/bin/chunks/chunk-34H54KEY.js +45 -0
- package/bin/chunks/chunk-3CTBXY5K.js +22313 -0
- package/bin/chunks/chunk-42IXFXUD.js +1141 -0
- package/bin/chunks/chunk-4DM5TTLG.js +219 -0
- package/bin/chunks/chunk-4GZCAWWK.js +327 -0
- package/bin/chunks/chunk-54JC5L35.js +493 -0
- package/bin/chunks/chunk-5OOPJNGN.js +511 -0
- package/bin/chunks/chunk-6A3VWYMF.js +28 -0
- package/bin/chunks/chunk-6H3T46F5.js +25 -0
- package/bin/chunks/chunk-7FS67SRF.js +12 -0
- package/bin/chunks/chunk-7VLBEAFW.js +56 -0
- package/bin/chunks/chunk-ANMJRJQ5.js +31 -0
- package/bin/chunks/chunk-AUO5I56E.js +118774 -0
- package/bin/chunks/chunk-B5I45LFD.js +619 -0
- package/bin/chunks/chunk-BBV7PMFC.js +185 -0
- package/bin/chunks/chunk-BIEDSEL2.js +8 -0
- package/bin/chunks/chunk-CBEJZO4L.js +67 -0
- package/bin/chunks/chunk-DRJQ4OOU.js +514 -0
- package/bin/chunks/chunk-DSS2U2OM.js +115 -0
- package/bin/chunks/chunk-E5Y46VBX.js +678 -0
- package/bin/chunks/chunk-FOXUQXTV.js +278 -0
- package/bin/chunks/chunk-FYN4T4SV.js +4900 -0
- package/bin/chunks/chunk-G7MNMULR.js +192 -0
- package/bin/chunks/chunk-GVNIL34R.js +78 -0
- package/bin/chunks/chunk-GZDLXYZV.js +3425 -0
- package/bin/chunks/chunk-HNORQ74T.js +40 -0
- package/bin/chunks/chunk-IKNMBGGD.js +217 -0
- package/bin/chunks/chunk-JCRGE6AL.js +14 -0
- package/bin/chunks/chunk-LKN75JGA.js +63 -0
- package/bin/chunks/chunk-M2ETYSVJ.js +176 -0
- package/bin/chunks/chunk-M4LNHYYR.js +177 -0
- package/bin/chunks/chunk-PRLL7B63.js +113 -0
- package/bin/chunks/chunk-R7YELY3C.js +923 -0
- package/bin/chunks/chunk-T6PE4KN4.js +277 -0
- package/bin/chunks/chunk-T7DGRVTP.js +458 -0
- package/bin/chunks/chunk-TY33XMHW.js +239 -0
- package/bin/chunks/chunk-VH7PM7KJ.js +179 -0
- package/bin/chunks/chunk-WEFDVXFX.js +65 -0
- package/bin/chunks/chunk-XGTHGWPW.js +90 -0
- package/bin/chunks/chunk-XL2DRAYI.js +39 -0
- package/bin/chunks/chunk-YCVGD2CG.js +2751 -0
- package/bin/chunks/chunk-YQYHROLZ.js +1023 -0
- package/bin/chunks/chunk-YYPYYOEV.js +34 -0
- package/bin/chunks/chunk-Z2UNY47A.js +2418 -0
- package/bin/chunks/design-context-store-IAT2P2OC.js +39 -0
- package/bin/chunks/packets-VBMY4SQJ.js +53 -0
- package/bin/chunks/policy-2I37JUU3.js +18 -0
- package/bin/chunks/preparation-S4MG3RPL.js +93 -0
- package/bin/chunks/questions-HKELBDFL.js +120 -0
- package/bin/chunks/state-GDL6CCJI.js +20 -0
- package/bin/chunks/template-gallery-ET76ERZQ.js +140 -0
- package/bin/cloudflare/backend.js +24421 -0
- package/bin/cloudflare/blake3.wasm +0 -0
- package/bin/cloudflare/forms-test.js +429 -0
- package/bin/cloudflare/templates.js +100 -0
- package/bin/types/scripts/lib/r2.d.ts +7 -0
- package/bin/types/scripts/onboard/browser.d.ts +9 -0
- package/bin/types/scripts/onboard/crawl.d.ts +35 -0
- package/bin/types/scripts/onboard/images.d.ts +19 -0
- package/bin/types/scripts/onboard/prompt.d.ts +10 -0
- package/bin/types/scripts/onboard/run.d.ts +47 -0
- package/bin/types/src/agent/adaptation-checkpoint.d.ts +70 -0
- package/bin/types/src/agent/added-media.d.ts +31 -0
- package/bin/types/src/agent/api-contracts.d.ts +2 -0
- package/bin/types/src/agent/art-direction-policy.d.ts +9 -0
- package/bin/types/src/agent/art-direction.d.ts +253 -0
- package/bin/types/src/agent/artifacts.d.ts +602 -0
- package/bin/types/src/agent/browser-motion-journey.d.ts +59 -0
- package/bin/types/src/agent/browser-motion.d.ts +40 -0
- package/bin/types/src/agent/browser-timeout.d.ts +4 -0
- package/bin/types/src/agent/composition-authoring.d.ts +12 -0
- package/bin/types/src/agent/composition-context.d.ts +63 -0
- package/bin/types/src/agent/composition-contract.d.ts +4 -0
- package/bin/types/src/agent/composition-decisions.d.ts +43 -0
- package/bin/types/src/agent/composition-preflight.d.ts +16 -0
- package/bin/types/src/agent/creative-change-context.d.ts +21 -0
- package/bin/types/src/agent/creative-context.d.ts +56 -0
- package/bin/types/src/agent/creative-contract.d.ts +123 -0
- package/bin/types/src/agent/creative-efficiency.d.ts +18 -0
- package/bin/types/src/agent/creative-evidence.d.ts +57 -0
- package/bin/types/src/agent/creative-objective.d.ts +33 -0
- package/bin/types/src/agent/creative-profile.d.ts +81 -0
- package/bin/types/src/agent/creative-prompts.d.ts +7 -0
- package/bin/types/src/agent/creative-render-bindings.d.ts +13 -0
- package/bin/types/src/agent/creative-revision.d.ts +33 -0
- package/bin/types/src/agent/creative-skills.d.ts +25 -0
- package/bin/types/src/agent/cursor-hook.d.ts +182 -0
- package/bin/types/src/agent/design-bundle.d.ts +24 -0
- package/bin/types/src/agent/design-calibration.d.ts +43 -0
- package/bin/types/src/agent/design-cli.d.ts +5 -0
- package/bin/types/src/agent/design-comparison.d.ts +63 -0
- package/bin/types/src/agent/design-context-packet.d.ts +82 -0
- package/bin/types/src/agent/design-context-store.d.ts +14 -0
- package/bin/types/src/agent/design-context.d.ts +85 -0
- package/bin/types/src/agent/design-contracts.d.ts +35 -0
- package/bin/types/src/agent/design-copy.d.ts +29 -0
- package/bin/types/src/agent/design-feedback.d.ts +91 -0
- package/bin/types/src/agent/design-knowledge.d.ts +124 -0
- package/bin/types/src/agent/design-quality.d.ts +143 -0
- package/bin/types/src/agent/design-review-server.d.ts +13 -0
- package/bin/types/src/agent/design-run.d.ts +174 -0
- package/bin/types/src/agent/design-synthesis.d.ts +76 -0
- package/bin/types/src/agent/design-usage.d.ts +38 -0
- package/bin/types/src/agent/editorial.d.ts +11 -0
- package/bin/types/src/agent/evaluate.d.ts +28 -0
- package/bin/types/src/agent/grade.d.ts +16 -0
- package/bin/types/src/agent/graph.d.ts +82 -0
- package/bin/types/src/agent/industry/document.d.ts +10 -0
- package/bin/types/src/agent/industry/interactions.d.ts +2 -0
- package/bin/types/src/agent/industry/markup.d.ts +14 -0
- package/bin/types/src/agent/industry/registry.d.ts +2 -0
- package/bin/types/src/agent/industry/render-style.d.ts +3 -0
- package/bin/types/src/agent/industry/ridgeline/browse.d.ts +2 -0
- package/bin/types/src/agent/industry/ridgeline/diagrams.d.ts +9 -0
- package/bin/types/src/agent/industry/ridgeline/facts.d.ts +61 -0
- package/bin/types/src/agent/industry/ridgeline/pages/company.d.ts +5 -0
- package/bin/types/src/agent/industry/ridgeline/pages/home.d.ts +1 -0
- package/bin/types/src/agent/industry/ridgeline/pages/journal.d.ts +24 -0
- package/bin/types/src/agent/industry/ridgeline/pages/services.d.ts +6 -0
- package/bin/types/src/agent/industry/ridgeline/photo.d.ts +18 -0
- package/bin/types/src/agent/industry/ridgeline/script.d.ts +1 -0
- package/bin/types/src/agent/industry/ridgeline/site.d.ts +2 -0
- package/bin/types/src/agent/industry/ridgeline/style.d.ts +1 -0
- package/bin/types/src/agent/industry/ridgeline/theme.d.ts +4 -0
- package/bin/types/src/agent/industry/seven/barber-club.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/barber-corner.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/barber-form.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/browse.d.ts +4 -0
- package/bin/types/src/agent/industry/seven/construction-built.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/construction-craft.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/construction-siteworks.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/electrical-circuit.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/electrical-light.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/electrical-power.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/hvac-climate.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/hvac-dispatch.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/hvac-seasonal.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/interactions.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/landscape-atlas.d.ts +4 -0
- package/bin/types/src/agent/industry/seven/landscape-courtyard.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/landscape-seasons.d.ts +3 -0
- package/bin/types/src/agent/industry/seven/legal-casework.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/legal-counsel.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/legal-table.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/medical-continuum.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/medical-movement.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/medical-neighborhood.d.ts +2 -0
- package/bin/types/src/agent/industry/seven/primitives.d.ts +31 -0
- package/bin/types/src/agent/industry/seven/registry.d.ts +4 -0
- package/bin/types/src/agent/industry/seven/theme.d.ts +3 -0
- package/bin/types/src/agent/industry/sites/common-ground.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/coordination.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/everyday.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/independent.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/mainstage.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/neighborhood.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/next-chapter.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/practice-notes.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/property-desk.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/residence.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/risk-office.d.ts +2 -0
- package/bin/types/src/agent/industry/sites/workshop.d.ts +2 -0
- package/bin/types/src/agent/industry/types.d.ts +48 -0
- package/bin/types/src/agent/invocation-budget.d.ts +32 -0
- package/bin/types/src/agent/jev/agent-usage.d.ts +165 -0
- package/bin/types/src/agent/jev/batching.d.ts +101 -0
- package/bin/types/src/agent/jev/block-catalog.d.ts +95 -0
- package/bin/types/src/agent/jev/bounds.d.ts +30 -0
- package/bin/types/src/agent/jev/budget.d.ts +76 -0
- package/bin/types/src/agent/jev/business-draft.d.ts +103 -0
- package/bin/types/src/agent/jev/calibration.d.ts +131 -0
- package/bin/types/src/agent/jev/client.d.ts +52 -0
- package/bin/types/src/agent/jev/component-select.d.ts +102 -0
- package/bin/types/src/agent/jev/config.d.ts +52 -0
- package/bin/types/src/agent/jev/consistency.d.ts +105 -0
- package/bin/types/src/agent/jev/content-checks.d.ts +121 -0
- package/bin/types/src/agent/jev/creative.d.ts +81 -0
- package/bin/types/src/agent/jev/critic-report.d.ts +132 -0
- package/bin/types/src/agent/jev/extraction.d.ts +84 -0
- package/bin/types/src/agent/jev/goals.d.ts +43 -0
- package/bin/types/src/agent/jev/html-tree.d.ts +28 -0
- package/bin/types/src/agent/jev/indexing.d.ts +51 -0
- package/bin/types/src/agent/jev/ledger.d.ts +154 -0
- package/bin/types/src/agent/jev/media.d.ts +62 -0
- package/bin/types/src/agent/jev/observations.d.ts +26 -0
- package/bin/types/src/agent/jev/ownership.d.ts +74 -0
- package/bin/types/src/agent/jev/packets.d.ts +124 -0
- package/bin/types/src/agent/jev/policy.d.ts +83 -0
- package/bin/types/src/agent/jev/questions.d.ts +244 -0
- package/bin/types/src/agent/jev/ranking.d.ts +129 -0
- package/bin/types/src/agent/jev/repair.d.ts +73 -0
- package/bin/types/src/agent/jev/review.d.ts +37 -0
- package/bin/types/src/agent/jev/security.d.ts +28 -0
- package/bin/types/src/agent/jev/semantic-lifecycle.d.ts +19 -0
- package/bin/types/src/agent/jev/semantic-tasks.d.ts +89 -0
- package/bin/types/src/agent/jev/service-registry.d.ts +98 -0
- package/bin/types/src/agent/jev/state.d.ts +104 -0
- package/bin/types/src/agent/jev/types.d.ts +190 -0
- package/bin/types/src/agent/jev/visible-assertions.d.ts +84 -0
- package/bin/types/src/agent/kernel-commands.d.ts +2 -0
- package/bin/types/src/agent/kit-runtime.d.ts +12 -0
- package/bin/types/src/agent/legacy-definitions/theme-art.d.ts +5 -0
- package/bin/types/src/agent/legacy-definitions/theme-commissions.d.ts +1 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-extremes.d.ts +7 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-graphic.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-reading.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-extremes.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-people.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-programme.d.ts +3 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-project.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-service-season.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions-tactile.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-compositions.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-legacy-specimens.d.ts +8 -0
- package/bin/types/src/agent/legacy-definitions/theme-library-legacy.d.ts +20 -0
- package/bin/types/src/agent/legacy-definitions/theme-library-release2.d.ts +3 -0
- package/bin/types/src/agent/legacy-definitions/theme-service-art.d.ts +7 -0
- package/bin/types/src/agent/legacy-definitions/theme-service-commissions.d.ts +1 -0
- package/bin/types/src/agent/legacy-definitions/theme-specimen-base.d.ts +1 -0
- package/bin/types/src/agent/legacy-definitions/theme-specimens.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suite-data.d.ts +25 -0
- package/bin/types/src/agent/legacy-definitions/theme-suite-style.d.ts +1 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-checkpoint.d.ts +14 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-graphic.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-information.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-local.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-material.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-practice.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites-spatial.d.ts +2 -0
- package/bin/types/src/agent/legacy-definitions/theme-suites.d.ts +3 -0
- package/bin/types/src/agent/lifecycle.d.ts +136 -0
- package/bin/types/src/agent/lighthouse-browser.d.ts +5 -0
- package/bin/types/src/agent/media-format.d.ts +5 -0
- package/bin/types/src/agent/migration-links.d.ts +4 -0
- package/bin/types/src/agent/motion-composition.d.ts +22 -0
- package/bin/types/src/agent/motion-knowledge.d.ts +3 -0
- package/bin/types/src/agent/motion-plan.d.ts +6 -0
- package/bin/types/src/agent/performance.d.ts +52 -0
- package/bin/types/src/agent/playwright-runtime.d.ts +8 -0
- package/bin/types/src/agent/preparation.d.ts +193 -0
- package/bin/types/src/agent/preview.d.ts +1 -0
- package/bin/types/src/agent/production-quality.d.ts +72 -0
- package/bin/types/src/agent/reference-contract.d.ts +3 -0
- package/bin/types/src/agent/reference-fit.d.ts +50 -0
- package/bin/types/src/agent/reference-library.d.ts +313 -0
- package/bin/types/src/agent/reference-studies.d.ts +110 -0
- package/bin/types/src/agent/refine.d.ts +348 -0
- package/bin/types/src/agent/result-manifest.d.ts +38 -0
- package/bin/types/src/agent/runner.d.ts +10 -0
- package/bin/types/src/agent/site-inputs.d.ts +26 -0
- package/bin/types/src/agent/source-manifest.d.ts +9 -0
- package/bin/types/src/agent/state-transition.d.ts +16 -0
- package/bin/types/src/agent/storyboard-media.d.ts +11 -0
- package/bin/types/src/agent/study-render.d.ts +27 -0
- package/bin/types/src/agent/template-adaptation.d.ts +69 -0
- package/bin/types/src/agent/template-motion.d.ts +59 -0
- package/bin/types/src/agent/theme-art-direction.d.ts +2 -0
- package/bin/types/src/agent/theme-art.d.ts +1 -0
- package/bin/types/src/agent/theme-assets.d.ts +36 -0
- package/bin/types/src/agent/theme-browse.d.ts +67 -0
- package/bin/types/src/agent/theme-cloud-resources.d.ts +7 -0
- package/bin/types/src/agent/theme-cloud.d.ts +41 -0
- package/bin/types/src/agent/theme-commissions.d.ts +1 -0
- package/bin/types/src/agent/theme-compositions-extremes.d.ts +1 -0
- package/bin/types/src/agent/theme-compositions.d.ts +1 -0
- package/bin/types/src/agent/theme-identity.d.ts +23 -0
- package/bin/types/src/agent/theme-layout-roles.d.ts +7 -0
- package/bin/types/src/agent/theme-legacy-specimens.d.ts +1 -0
- package/bin/types/src/agent/theme-library-legacy.d.ts +1 -0
- package/bin/types/src/agent/theme-library-release2.d.ts +1 -0
- package/bin/types/src/agent/theme-library.d.ts +60 -0
- package/bin/types/src/agent/theme-page-manifest.d.ts +26 -0
- package/bin/types/src/agent/theme-picker-model.d.ts +51 -0
- package/bin/types/src/agent/theme-picker-runtime.d.ts +1 -0
- package/bin/types/src/agent/theme-picker-selection-runtime.d.ts +1 -0
- package/bin/types/src/agent/theme-picker-shell.d.ts +7 -0
- package/bin/types/src/agent/theme-picker-styles.d.ts +1 -0
- package/bin/types/src/agent/theme-picker.d.ts +20 -0
- package/bin/types/src/agent/theme-preview.d.ts +26 -0
- package/bin/types/src/agent/theme-release2/assets.d.ts +22 -0
- package/bin/types/src/agent/theme-release2/specimens.d.ts +2 -0
- package/bin/types/src/agent/theme-release2/theme-art.d.ts +5 -0
- package/bin/types/src/agent/theme-release2/theme-compositions-extremes.d.ts +7 -0
- package/bin/types/src/agent/theme-release2/theme-compositions-graphic.d.ts +2 -0
- package/bin/types/src/agent/theme-release2/theme-compositions-reading.d.ts +2 -0
- package/bin/types/src/agent/theme-release2/theme-compositions-tactile.d.ts +2 -0
- package/bin/types/src/agent/theme-release2/theme-compositions.d.ts +3 -0
- package/bin/types/src/agent/theme-release2/theme-specimen-base.d.ts +1 -0
- package/bin/types/src/agent/theme-release3/theme-art-direction.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-art.d.ts +5 -0
- package/bin/types/src/agent/theme-release3/theme-assets.d.ts +121 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-extremes.d.ts +7 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-graphic.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-reading.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-extremes.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-people.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-programme.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-project.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-service-season.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions-tactile.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-compositions.d.ts +2 -0
- package/bin/types/src/agent/theme-release3/theme-identity.d.ts +23 -0
- package/bin/types/src/agent/theme-release3/theme-library.d.ts +4 -0
- package/bin/types/src/agent/theme-release3/theme-service-art.d.ts +7 -0
- package/bin/types/src/agent/theme-release3/theme-specimen-base.d.ts +1 -0
- package/bin/types/src/agent/theme-release3/theme-specimens.d.ts +2 -0
- package/bin/types/src/agent/theme-selection.d.ts +75 -0
- package/bin/types/src/agent/theme-service-art.d.ts +1 -0
- package/bin/types/src/agent/theme-specimen-base.d.ts +1 -0
- package/bin/types/src/agent/theme-specimens.d.ts +1 -0
- package/bin/types/src/agent/theme-suite-data.d.ts +1 -0
- package/bin/types/src/agent/theme-suite-identity.d.ts +42 -0
- package/bin/types/src/agent/theme-suite-primitives.d.ts +14 -0
- package/bin/types/src/agent/theme-suite-renderer.d.ts +8 -0
- package/bin/types/src/agent/theme-suite-style.d.ts +1 -0
- package/bin/types/src/agent/theme-suites.d.ts +1 -0
- package/bin/types/src/agent/theme-thumbnails.d.ts +8 -0
- package/bin/types/src/agent/trace.d.ts +337 -0
- package/bin/types/src/agent/workflow-config.d.ts +25 -0
- package/bin/types/src/agent/workflow.d.ts +104 -0
- package/bin/types/src/blocks/library-profile.d.ts +9 -0
- package/bin/types/src/blocks/metadata.d.ts +65 -0
- package/bin/types/src/build/index.d.ts +29 -0
- package/bin/types/src/build/responsive-media.d.ts +19 -0
- package/bin/types/src/build/serve.d.ts +4 -0
- package/bin/types/src/build/static-output.d.ts +2 -0
- package/bin/types/src/build/verified.d.ts +1 -0
- package/bin/types/src/cli/api.d.ts +17 -0
- package/bin/types/src/cli/deploy.d.ts +21 -0
- package/bin/types/src/cli/doctor.d.ts +16 -0
- package/bin/types/src/cli/events.d.ts +16 -0
- package/bin/types/src/cli/feedback.d.ts +21 -0
- package/bin/types/src/cli/forms.d.ts +16 -0
- package/bin/types/src/cli/index.d.ts +1 -0
- package/bin/types/src/cli/lifecycle.d.ts +18 -0
- package/bin/types/src/cli/preserve.d.ts +8 -0
- package/bin/types/src/cli/preview.d.ts +14 -0
- package/bin/types/src/cli/refine.d.ts +41 -0
- package/bin/types/src/cli/root.d.ts +3 -0
- package/bin/types/src/cli/run.d.ts +30 -0
- package/bin/types/src/cli/share.d.ts +17 -0
- package/bin/types/src/cli/site-create.d.ts +24 -0
- package/bin/types/src/cli/site-migrate.d.ts +11 -0
- package/bin/types/src/cli/status.d.ts +8 -0
- package/bin/types/src/cli/types.d.ts +34 -0
- package/bin/types/src/cli/upgrade.d.ts +11 -0
- package/bin/types/src/cli/verify.d.ts +17 -0
- package/bin/types/src/cli/workflow-argv.d.ts +2 -0
- package/bin/types/src/compile/flatten.d.ts +23 -0
- package/bin/types/src/compile/frontmatter.d.ts +10 -0
- package/bin/types/src/compile/icons.d.ts +2 -0
- package/bin/types/src/compile/paths.d.ts +4 -0
- package/bin/types/src/compile/primitives.d.ts +2 -0
- package/bin/types/src/compile/scroll-motion.d.ts +14 -0
- package/bin/types/src/compile/site.d.ts +40 -0
- package/bin/types/src/editing/identity.d.ts +7 -0
- package/bin/types/src/editing/manifest.d.ts +38 -0
- package/bin/types/src/engine/checks.d.ts +2 -0
- package/bin/types/src/engine/contracts.d.ts +104 -0
- package/bin/types/src/engine/impact.d.ts +3 -0
- package/bin/types/src/engine/index.d.ts +70 -0
- package/bin/types/src/engine/revision.d.ts +5 -0
- package/bin/types/src/forms/cloudflare.d.ts +24 -0
- package/bin/types/src/forms/config.d.ts +34 -0
- package/bin/types/src/forms/frontend.d.ts +9 -0
- package/bin/types/src/html.d.ts +3 -0
- package/bin/types/src/icons/catalog.d.ts +28 -0
- package/bin/types/src/icons/coverage.d.ts +12 -0
- package/bin/types/src/icons/drawing.d.ts +7 -0
- package/bin/types/src/icons/duotone.d.ts +4 -0
- package/bin/types/src/icons/index.d.ts +37 -0
- package/bin/types/src/icons/industry-refinements-v4.d.ts +4 -0
- package/bin/types/src/icons/industry-review.d.ts +11 -0
- package/bin/types/src/icons/industry.d.ts +2 -0
- package/bin/types/src/icons/refinements.d.ts +5 -0
- package/bin/types/src/icons/studio-industry-review.d.ts +9 -0
- package/bin/types/src/icons/studio-industry.d.ts +5 -0
- package/bin/types/src/icons/studio.d.ts +34 -0
- package/bin/types/src/integrations/cloudflare-pages.d.ts +10 -0
- package/bin/types/src/integrations/deployment-smoke.d.ts +11 -0
- package/bin/types/src/integrations/hosting.d.ts +33 -0
- package/bin/types/src/integrations/wrangler-command.d.ts +5 -0
- package/bin/types/src/knowledge/artifact-order.d.ts +1 -0
- package/bin/types/src/knowledge/artifact.d.ts +11 -0
- package/bin/types/src/knowledge/composition.d.ts +54 -0
- package/bin/types/src/knowledge/contracts.d.ts +111 -0
- package/bin/types/src/knowledge/explain.d.ts +6 -0
- package/bin/types/src/knowledge/pack.d.ts +32 -0
- package/bin/types/src/knowledge/selection.d.ts +18 -0
- package/bin/types/src/knowledge/site-widgets.d.ts +6 -0
- package/bin/types/src/onboard/brief.d.ts +182 -0
- package/bin/types/src/onboard/classify.d.ts +31 -0
- package/bin/types/src/onboard/crawl-order.d.ts +7 -0
- package/bin/types/src/onboard/extract.d.ts +102 -0
- package/bin/types/src/onboard/harvest-inventory.d.ts +84 -0
- package/bin/types/src/onboard/outline.d.ts +13 -0
- package/bin/types/src/onboard/quality.d.ts +6 -0
- package/bin/types/src/onboard/shortlist.d.ts +11 -0
- package/bin/types/src/onboard/social.d.ts +15 -0
- package/bin/types/src/onboard/visual-hints.d.ts +12 -0
- package/bin/types/src/preserve/build.d.ts +1 -0
- package/bin/types/src/preserve/capture.d.ts +21 -0
- package/bin/types/src/preserve/components.d.ts +10 -0
- package/bin/types/src/preserve/config.d.ts +53 -0
- package/bin/types/src/preserve/embeds.d.ts +15 -0
- package/bin/types/src/preserve/hovers.d.ts +10 -0
- package/bin/types/src/preserve/react-capabilities.d.ts +2 -0
- package/bin/types/src/preserve/runtime.d.ts +2 -0
- package/bin/types/src/preserve/source-defects.d.ts +4 -0
- package/bin/types/src/preserve/supplement.d.ts +3 -0
- package/bin/types/src/preserve/verify.d.ts +29 -0
- package/bin/types/src/render.d.ts +10 -0
- package/bin/types/src/runtime/beacon.d.ts +2 -0
- package/bin/types/src/runtime/before-after.d.ts +2 -0
- package/bin/types/src/runtime/carousel.d.ts +2 -0
- package/bin/types/src/runtime/cookie-compliance.d.ts +14 -0
- package/bin/types/src/runtime/experience.d.ts +4 -0
- package/bin/types/src/runtime/header.d.ts +2 -0
- package/bin/types/src/runtime/leads.d.ts +2 -0
- package/bin/types/src/runtime/lightbox.d.ts +2 -0
- package/bin/types/src/runtime/scroll-motion.generated.d.ts +4 -0
- package/bin/types/src/runtime/tabs.d.ts +2 -0
- package/bin/types/src/schema.d.ts +27 -0
- package/bin/types/src/stock/library.d.ts +14 -0
- package/bin/types/src/stock/search.d.ts +30 -0
- package/bin/types/src/stock/selection.d.ts +30 -0
- package/bin/types/src/stock/types.d.ts +54 -0
- package/bin/types/src/theme.d.ts +3 -0
- package/bin/types/src/types.d.ts +115 -0
- package/bin/types/src/upgrade/kit.d.ts +48 -0
- package/bin/vitris-art.js +192 -0
- package/bin/vitris-blocks.js +238 -0
- package/bin/vitris-build.js +24 -0
- package/bin/vitris-catalog.js +49 -0
- package/bin/vitris-content-coverage.js +21 -0
- package/bin/vitris-create-site.js +86 -0
- package/bin/vitris-cursor-hook.js +61 -0
- package/bin/vitris-eval.js +76 -0
- package/bin/vitris-go.js +99 -0
- package/bin/vitris-harvest.js +184 -0
- package/bin/vitris-icons.js +168 -0
- package/bin/vitris-knowledge.js +43 -0
- package/bin/vitris-launch-preflight.js +964 -0
- package/bin/vitris-media-serve.js +50 -0
- package/bin/vitris-migrate-site.js +20 -0
- package/bin/vitris-motion-view.js +80 -0
- package/bin/vitris-prepare-media.js +64 -0
- package/bin/vitris-preview.js +36 -0
- package/bin/vitris-references.js +173 -0
- package/bin/vitris-refresh.js +50 -0
- package/bin/vitris-sign-publish-bundle.js +64 -0
- package/bin/vitris-stock.js +161 -0
- package/bin/vitris-templates.js +261 -0
- package/bin/vitris-themes.js +321 -0
- package/bin/vitris-upgrade.js +50 -0
- package/bin/vitris-verify-browser.js +662 -0
- package/bin/vitris-verify-performance.js +44 -0
- package/bin/vitris.js +50 -0
- package/blocks/CONVENTIONS.md +121 -0
- package/blocks/INDEX.md +130 -0
- package/blocks/about/about-awards/README.md +36 -0
- package/blocks/about/about-awards/styles.css +13 -0
- package/blocks/about/about-awards/template.html +1 -0
- package/blocks/about/about-credentials/README.md +33 -0
- package/blocks/about/about-credentials/block.meta.json +85 -0
- package/blocks/about/about-credentials/styles.css +4 -0
- package/blocks/about/about-credentials/template.html +1 -0
- package/blocks/about/about-founder/README.md +35 -0
- package/blocks/about/about-founder/styles.css +9 -0
- package/blocks/about/about-founder/template.html +1 -0
- package/blocks/about/about-mission/README.md +31 -0
- package/blocks/about/about-mission/styles.css +5 -0
- package/blocks/about/about-mission/template.html +1 -0
- package/blocks/about/about-statement/README.md +28 -0
- package/blocks/about/about-statement/styles.css +7 -0
- package/blocks/about/about-statement/template.html +1 -0
- package/blocks/about/about-story/README.md +35 -0
- package/blocks/about/about-story/styles.css +5 -0
- package/blocks/about/about-story/template.html +1 -0
- package/blocks/about/about-timeline/README.md +33 -0
- package/blocks/about/about-timeline/styles.css +8 -0
- package/blocks/about/about-timeline/template.html +1 -0
- package/blocks/about/about-values/README.md +31 -0
- package/blocks/about/about-values/styles.css +3 -0
- package/blocks/about/about-values/template.html +1 -0
- package/blocks/blog/blog-featured/README.md +39 -0
- package/blocks/blog/blog-featured/styles.css +12 -0
- package/blocks/blog/blog-featured/template.html +1 -0
- package/blocks/blog/blog-index/README.md +34 -0
- package/blocks/blog/blog-index/styles.css +6 -0
- package/blocks/blog/blog-index/template.html +1 -0
- package/blocks/blog/blog-post-header/README.md +31 -0
- package/blocks/blog/blog-post-header/styles.css +8 -0
- package/blocks/blog/blog-post-header/template.html +1 -0
- package/blocks/contact/contact-cards/README.md +32 -0
- package/blocks/contact/contact-cards/styles.css +7 -0
- package/blocks/contact/contact-cards/template.html +1 -0
- package/blocks/contact/contact-chips/README.md +41 -0
- package/blocks/contact/contact-chips/styles.css +13 -0
- package/blocks/contact/contact-chips/template.html +1 -0
- package/blocks/contact/contact-hours/README.md +41 -0
- package/blocks/contact/contact-hours/block.meta.json +87 -0
- package/blocks/contact/contact-hours/styles.css +8 -0
- package/blocks/contact/contact-hours/template.html +1 -0
- package/blocks/contact/contact-map/README.md +39 -0
- package/blocks/contact/contact-map/styles.css +10 -0
- package/blocks/contact/contact-map/template.html +1 -0
- package/blocks/contact/contact-offices/README.md +32 -0
- package/blocks/contact/contact-offices/styles.css +8 -0
- package/blocks/contact/contact-offices/template.html +1 -0
- package/blocks/contact/contact-phone-first/README.md +33 -0
- package/blocks/contact/contact-phone-first/block.meta.json +86 -0
- package/blocks/contact/contact-phone-first/styles.css +11 -0
- package/blocks/contact/contact-phone-first/template.html +1 -0
- package/blocks/contact/contact-split/README.md +43 -0
- package/blocks/contact/contact-split/styles.css +12 -0
- package/blocks/contact/contact-split/template.html +1 -0
- package/blocks/contact/contact-visit/README.md +36 -0
- package/blocks/contact/contact-visit/block.meta.json +88 -0
- package/blocks/contact/contact-visit/styles.css +13 -0
- package/blocks/contact/contact-visit/template.html +1 -0
- package/blocks/contact/service-areas/README.md +32 -0
- package/blocks/contact/service-areas/styles.css +9 -0
- package/blocks/contact/service-areas/template.html +1 -0
- package/blocks/content/glossary/README.md +35 -0
- package/blocks/content/glossary/styles.css +6 -0
- package/blocks/content/glossary/template.html +1 -0
- package/blocks/content/list-split/README.md +33 -0
- package/blocks/content/list-split/styles.css +13 -0
- package/blocks/content/list-split/template.html +1 -0
- package/blocks/content/prose-split/README.md +32 -0
- package/blocks/content/prose-split/styles.css +12 -0
- package/blocks/content/prose-split/template.html +1 -0
- package/blocks/content/specification-ledger/README.md +32 -0
- package/blocks/content/specification-ledger/block.meta.json +85 -0
- package/blocks/content/specification-ledger/styles.css +10 -0
- package/blocks/content/specification-ledger/template.html +1 -0
- package/blocks/cta/cta-band/README.md +33 -0
- package/blocks/cta/cta-band/styles.css +11 -0
- package/blocks/cta/cta-band/template.html +1 -0
- package/blocks/cta/cta-card/README.md +35 -0
- package/blocks/cta/cta-card/styles.css +8 -0
- package/blocks/cta/cta-card/template.html +1 -0
- package/blocks/cta/cta-floating-bar/README.md +28 -0
- package/blocks/cta/cta-floating-bar/styles.css +8 -0
- package/blocks/cta/cta-floating-bar/template.html +1 -0
- package/blocks/cta/cta-inline/README.md +30 -0
- package/blocks/cta/cta-inline/styles.css +9 -0
- package/blocks/cta/cta-inline/template.html +1 -0
- package/blocks/cta/cta-newsletter/README.md +34 -0
- package/blocks/cta/cta-newsletter/styles.css +8 -0
- package/blocks/cta/cta-newsletter/template.html +1 -0
- package/blocks/cta/cta-photo-fan/README.md +36 -0
- package/blocks/cta/cta-photo-fan/styles.css +14 -0
- package/blocks/cta/cta-photo-fan/template.html +1 -0
- package/blocks/cta/cta-split/README.md +38 -0
- package/blocks/cta/cta-split/styles.css +10 -0
- package/blocks/cta/cta-split/template.html +1 -0
- package/blocks/faq/faq-accordion/README.md +36 -0
- package/blocks/faq/faq-accordion/styles.css +6 -0
- package/blocks/faq/faq-accordion/template.html +1 -0
- package/blocks/faq/faq-grouped/README.md +40 -0
- package/blocks/faq/faq-grouped/styles.css +20 -0
- package/blocks/faq/faq-grouped/template.html +1 -0
- package/blocks/faq/faq-split/README.md +37 -0
- package/blocks/faq/faq-split/styles.css +5 -0
- package/blocks/faq/faq-split/template.html +1 -0
- package/blocks/faq/faq-tabs/README.md +36 -0
- package/blocks/faq/faq-tabs/styles.css +3 -0
- package/blocks/faq/faq-tabs/template.html +1 -0
- package/blocks/feature/feature-bento/README.md +33 -0
- package/blocks/feature/feature-bento/styles.css +7 -0
- package/blocks/feature/feature-bento/template.html +1 -0
- package/blocks/feature/feature-compare-table/README.md +44 -0
- package/blocks/feature/feature-compare-table/styles.css +15 -0
- package/blocks/feature/feature-compare-table/template.html +1 -0
- package/blocks/feature/feature-comparison/README.md +34 -0
- package/blocks/feature/feature-comparison/styles.css +6 -0
- package/blocks/feature/feature-comparison/template.html +1 -0
- package/blocks/feature/feature-grid-3/README.md +34 -0
- package/blocks/feature/feature-grid-3/styles.css +8 -0
- package/blocks/feature/feature-grid-3/template.html +1 -0
- package/blocks/feature/feature-icon-list/README.md +39 -0
- package/blocks/feature/feature-icon-list/styles.css +9 -0
- package/blocks/feature/feature-icon-list/template.html +1 -0
- package/blocks/feature/feature-spotlight/README.md +39 -0
- package/blocks/feature/feature-spotlight/styles.css +5 -0
- package/blocks/feature/feature-spotlight/template.html +1 -0
- package/blocks/feature/feature-stats-band/README.md +33 -0
- package/blocks/feature/feature-stats-band/styles.css +8 -0
- package/blocks/feature/feature-stats-band/template.html +1 -0
- package/blocks/feature/feature-tabs/README.md +38 -0
- package/blocks/feature/feature-tabs/styles.css +7 -0
- package/blocks/feature/feature-tabs/template.html +1 -0
- package/blocks/feature/feature-thumb-list/README.md +38 -0
- package/blocks/feature/feature-thumb-list/styles.css +13 -0
- package/blocks/feature/feature-thumb-list/template.html +1 -0
- package/blocks/feature/feature-zigzag/README.md +31 -0
- package/blocks/feature/feature-zigzag/styles.css +6 -0
- package/blocks/feature/feature-zigzag/template.html +1 -0
- package/blocks/footer/footer-columns/README.md +39 -0
- package/blocks/footer/footer-columns/styles.css +16 -0
- package/blocks/footer/footer-columns/template.html +1 -0
- package/blocks/footer/footer-compact/README.md +33 -0
- package/blocks/footer/footer-compact/styles.css +12 -0
- package/blocks/footer/footer-compact/template.html +1 -0
- package/blocks/footer/footer-cta/README.md +37 -0
- package/blocks/footer/footer-cta/styles.css +18 -0
- package/blocks/footer/footer-cta/template.html +1 -0
- package/blocks/footer/footer-social/README.md +37 -0
- package/blocks/footer/footer-social/styles.css +17 -0
- package/blocks/footer/footer-social/template.html +1 -0
- package/blocks/footer/footer-wordmark/README.md +40 -0
- package/blocks/footer/footer-wordmark/styles.css +19 -0
- package/blocks/footer/footer-wordmark/template.html +1 -0
- package/blocks/gallery/gallery-before-after/README.md +31 -0
- package/blocks/gallery/gallery-before-after/styles.css +6 -0
- package/blocks/gallery/gallery-before-after/template.html +1 -0
- package/blocks/gallery/gallery-carousel/README.md +32 -0
- package/blocks/gallery/gallery-carousel/styles.css +7 -0
- package/blocks/gallery/gallery-carousel/template.html +1 -0
- package/blocks/gallery/gallery-grid/README.md +39 -0
- package/blocks/gallery/gallery-grid/styles.css +13 -0
- package/blocks/gallery/gallery-grid/template.html +1 -0
- package/blocks/gallery/gallery-masonry/README.md +33 -0
- package/blocks/gallery/gallery-masonry/styles.css +4 -0
- package/blocks/gallery/gallery-masonry/template.html +1 -0
- package/blocks/gallery/gallery-mosaic-split/README.md +40 -0
- package/blocks/gallery/gallery-mosaic-split/styles.css +15 -0
- package/blocks/gallery/gallery-mosaic-split/template.html +1 -0
- package/blocks/hero/hero-asymmetric/README.md +34 -0
- package/blocks/hero/hero-asymmetric/styles.css +13 -0
- package/blocks/hero/hero-asymmetric/template.html +10 -0
- package/blocks/hero/hero-before-after/README.md +38 -0
- package/blocks/hero/hero-before-after/styles.css +8 -0
- package/blocks/hero/hero-before-after/template.html +19 -0
- package/blocks/hero/hero-editorial/README.md +34 -0
- package/blocks/hero/hero-editorial/block.meta.json +85 -0
- package/blocks/hero/hero-editorial/styles.css +6 -0
- package/blocks/hero/hero-editorial/template.html +10 -0
- package/blocks/hero/hero-evidence/README.md +32 -0
- package/blocks/hero/hero-evidence/block.meta.json +85 -0
- package/blocks/hero/hero-evidence/styles.css +13 -0
- package/blocks/hero/hero-evidence/template.html +1 -0
- package/blocks/hero/hero-form/README.md +46 -0
- package/blocks/hero/hero-form/styles.css +11 -0
- package/blocks/hero/hero-form/template.html +15 -0
- package/blocks/hero/hero-menu/README.md +36 -0
- package/blocks/hero/hero-menu/styles.css +7 -0
- package/blocks/hero/hero-menu/template.html +10 -0
- package/blocks/hero/hero-overlay/README.md +35 -0
- package/blocks/hero/hero-overlay/styles.css +14 -0
- package/blocks/hero/hero-overlay/template.html +10 -0
- package/blocks/hero/hero-page/README.md +35 -0
- package/blocks/hero/hero-page/styles.css +19 -0
- package/blocks/hero/hero-page/template.html +1 -0
- package/blocks/hero/hero-product/README.md +41 -0
- package/blocks/hero/hero-product/styles.css +11 -0
- package/blocks/hero/hero-product/template.html +14 -0
- package/blocks/hero/hero-service/README.md +37 -0
- package/blocks/hero/hero-service/block.meta.json +85 -0
- package/blocks/hero/hero-service/styles.css +17 -0
- package/blocks/hero/hero-service/template.html +1 -0
- package/blocks/hero/hero-split/README.md +36 -0
- package/blocks/hero/hero-split/styles.css +7 -0
- package/blocks/hero/hero-split/template.html +11 -0
- package/blocks/hero/hero-statement/README.md +33 -0
- package/blocks/hero/hero-statement/styles.css +8 -0
- package/blocks/hero/hero-statement/template.html +1 -0
- package/blocks/hero/hero-stats/README.md +37 -0
- package/blocks/hero/hero-stats/styles.css +10 -0
- package/blocks/hero/hero-stats/template.html +10 -0
- package/blocks/hero/hero-video-still/README.md +36 -0
- package/blocks/hero/hero-video-still/styles.css +9 -0
- package/blocks/hero/hero-video-still/template.html +13 -0
- package/blocks/icons.md +44 -0
- package/blocks/incentives/incentive-banner/README.md +28 -0
- package/blocks/incentives/incentive-banner/styles.css +7 -0
- package/blocks/incentives/incentive-banner/template.html +1 -0
- package/blocks/incentives/incentive-cards/README.md +31 -0
- package/blocks/incentives/incentive-cards/styles.css +4 -0
- package/blocks/incentives/incentive-cards/template.html +1 -0
- package/blocks/navbar/nav-announcement/README.md +35 -0
- package/blocks/navbar/nav-announcement/styles.css +10 -0
- package/blocks/navbar/nav-announcement/template.html +14 -0
- package/blocks/navbar/nav-centered/README.md +35 -0
- package/blocks/navbar/nav-centered/styles.css +11 -0
- package/blocks/navbar/nav-centered/template.html +12 -0
- package/blocks/navbar/nav-minimal/README.md +29 -0
- package/blocks/navbar/nav-minimal/styles.css +5 -0
- package/blocks/navbar/nav-minimal/template.html +6 -0
- package/blocks/navbar/nav-split/README.md +34 -0
- package/blocks/navbar/nav-split/styles.css +11 -0
- package/blocks/navbar/nav-split/template.html +11 -0
- package/blocks/navbar/nav-utility/README.md +37 -0
- package/blocks/navbar/nav-utility/styles.css +17 -0
- package/blocks/navbar/nav-utility/template.html +12 -0
- package/blocks/pricing/menu-featured/README.md +34 -0
- package/blocks/pricing/menu-featured/styles.css +4 -0
- package/blocks/pricing/menu-featured/template.html +1 -0
- package/blocks/pricing/menu-sections/README.md +33 -0
- package/blocks/pricing/menu-sections/styles.css +9 -0
- package/blocks/pricing/menu-sections/template.html +1 -0
- package/blocks/pricing/pricing-table/README.md +40 -0
- package/blocks/pricing/pricing-table/styles.css +9 -0
- package/blocks/pricing/pricing-table/template.html +1 -0
- package/blocks/pricing/pricing-tiers/README.md +34 -0
- package/blocks/pricing/pricing-tiers/styles.css +7 -0
- package/blocks/pricing/pricing-tiers/template.html +1 -0
- package/blocks/pricing/pricing-toggle/README.md +34 -0
- package/blocks/pricing/pricing-toggle/styles.css +10 -0
- package/blocks/pricing/pricing-toggle/template.html +1 -0
- package/blocks/process/process-carousel/README.md +33 -0
- package/blocks/process/process-carousel/styles.css +5 -0
- package/blocks/process/process-carousel/template.html +1 -0
- package/blocks/process/process-split/README.md +35 -0
- package/blocks/process/process-split/styles.css +6 -0
- package/blocks/process/process-split/template.html +1 -0
- package/blocks/process/process-stepper/README.md +40 -0
- package/blocks/process/process-stepper/styles.css +11 -0
- package/blocks/process/process-stepper/template.html +1 -0
- package/blocks/process/process-steps/README.md +35 -0
- package/blocks/process/process-steps/styles.css +6 -0
- package/blocks/process/process-steps/template.html +1 -0
- package/blocks/process/process-sticky/README.md +38 -0
- package/blocks/process/process-sticky/styles.css +12 -0
- package/blocks/process/process-sticky/template.html +1 -0
- package/blocks/process/process-timeline/README.md +35 -0
- package/blocks/process/process-timeline/styles.css +10 -0
- package/blocks/process/process-timeline/template.html +1 -0
- package/blocks/services/services-cards/README.md +34 -0
- package/blocks/services/services-cards/styles.css +3 -0
- package/blocks/services/services-cards/template.html +1 -0
- package/blocks/services/services-carousel/README.md +34 -0
- package/blocks/services/services-carousel/styles.css +6 -0
- package/blocks/services/services-carousel/template.html +1 -0
- package/blocks/services/services-list/README.md +32 -0
- package/blocks/services/services-list/block.meta.json +85 -0
- package/blocks/services/services-list/styles.css +10 -0
- package/blocks/services/services-list/template.html +1 -0
- package/blocks/services/services-menu/README.md +39 -0
- package/blocks/services/services-menu/styles.css +6 -0
- package/blocks/services/services-menu/template.html +1 -0
- package/blocks/services/services-packages/README.md +34 -0
- package/blocks/services/services-packages/styles.css +6 -0
- package/blocks/services/services-packages/template.html +1 -0
- package/blocks/services/services-panels/README.md +36 -0
- package/blocks/services/services-panels/styles.css +15 -0
- package/blocks/services/services-panels/template.html +1 -0
- package/blocks/services/services-photo-grid/README.md +39 -0
- package/blocks/services/services-photo-grid/styles.css +10 -0
- package/blocks/services/services-photo-grid/template.html +1 -0
- package/blocks/services/services-priority/README.md +33 -0
- package/blocks/services/services-priority/block.meta.json +86 -0
- package/blocks/services/services-priority/styles.css +16 -0
- package/blocks/services/services-priority/template.html +1 -0
- package/blocks/stats/stats-cards/README.md +31 -0
- package/blocks/stats/stats-cards/styles.css +4 -0
- package/blocks/stats/stats-cards/template.html +1 -0
- package/blocks/stats/stats-mosaic/README.md +27 -0
- package/blocks/stats/stats-mosaic/styles.css +9 -0
- package/blocks/stats/stats-mosaic/template.html +1 -0
- package/blocks/stats/stats-row/README.md +29 -0
- package/blocks/stats/stats-row/styles.css +8 -0
- package/blocks/stats/stats-row/template.html +1 -0
- package/blocks/stats/stats-split/README.md +35 -0
- package/blocks/stats/stats-split/styles.css +3 -0
- package/blocks/stats/stats-split/template.html +1 -0
- package/blocks/team/team-featured/README.md +42 -0
- package/blocks/team/team-featured/styles.css +9 -0
- package/blocks/team/team-featured/template.html +1 -0
- package/blocks/team/team-grid/README.md +35 -0
- package/blocks/team/team-grid/styles.css +8 -0
- package/blocks/team/team-grid/template.html +1 -0
- package/blocks/team/team-list/README.md +32 -0
- package/blocks/team/team-list/styles.css +7 -0
- package/blocks/team/team-list/template.html +1 -0
- package/blocks/testimonial/testimonial-carousel/README.md +32 -0
- package/blocks/testimonial/testimonial-carousel/styles.css +7 -0
- package/blocks/testimonial/testimonial-carousel/template.html +1 -0
- package/blocks/testimonial/testimonial-grid/README.md +32 -0
- package/blocks/testimonial/testimonial-grid/styles.css +5 -0
- package/blocks/testimonial/testimonial-grid/template.html +1 -0
- package/blocks/testimonial/testimonial-mosaic/README.md +38 -0
- package/blocks/testimonial/testimonial-mosaic/styles.css +14 -0
- package/blocks/testimonial/testimonial-mosaic/template.html +1 -0
- package/blocks/testimonial/testimonial-platform/README.md +34 -0
- package/blocks/testimonial/testimonial-platform/styles.css +17 -0
- package/blocks/testimonial/testimonial-platform/template.html +1 -0
- package/blocks/testimonial/testimonial-rating/README.md +28 -0
- package/blocks/testimonial/testimonial-rating/styles.css +6 -0
- package/blocks/testimonial/testimonial-rating/template.html +1 -0
- package/blocks/testimonial/testimonial-spotlight/README.md +31 -0
- package/blocks/testimonial/testimonial-spotlight/styles.css +9 -0
- package/blocks/testimonial/testimonial-spotlight/template.html +1 -0
- package/blocks/testimonial/testimonial-switcher/README.md +39 -0
- package/blocks/testimonial/testimonial-switcher/styles.css +23 -0
- package/blocks/testimonial/testimonial-switcher/template.html +1 -0
- package/blocks/testimonial/testimonial-wall/README.md +34 -0
- package/blocks/testimonial/testimonial-wall/styles.css +7 -0
- package/blocks/testimonial/testimonial-wall/template.html +1 -0
- package/blocks/trust-strip/trust-badges/README.md +30 -0
- package/blocks/trust-strip/trust-badges/styles.css +5 -0
- package/blocks/trust-strip/trust-badges/template.html +1 -0
- package/blocks/trust-strip/trust-certs/README.md +31 -0
- package/blocks/trust-strip/trust-certs/styles.css +12 -0
- package/blocks/trust-strip/trust-certs/template.html +1 -0
- package/blocks/trust-strip/trust-logos/README.md +32 -0
- package/blocks/trust-strip/trust-logos/styles.css +5 -0
- package/blocks/trust-strip/trust-logos/template.html +1 -0
- package/blocks/trust-strip/trust-quote/README.md +29 -0
- package/blocks/trust-strip/trust-quote/styles.css +5 -0
- package/blocks/trust-strip/trust-quote/template.html +1 -0
- package/blocks/trust-strip/trust-reviews/README.md +35 -0
- package/blocks/trust-strip/trust-reviews/styles.css +9 -0
- package/blocks/trust-strip/trust-reviews/template.html +1 -0
- package/blocks/work/case-alternating/README.md +34 -0
- package/blocks/work/case-alternating/block.meta.json +86 -0
- package/blocks/work/case-alternating/styles.css +7 -0
- package/blocks/work/case-alternating/template.html +1 -0
- package/blocks/work/case-carousel/README.md +26 -0
- package/blocks/work/case-carousel/styles.css +7 -0
- package/blocks/work/case-carousel/template.html +1 -0
- package/blocks/work/case-header/README.md +38 -0
- package/blocks/work/case-header/styles.css +18 -0
- package/blocks/work/case-header/template.html +1 -0
- package/blocks/work/project-evidence/README.md +35 -0
- package/blocks/work/project-evidence/block.meta.json +87 -0
- package/blocks/work/project-evidence/styles.css +12 -0
- package/blocks/work/project-evidence/template.html +1 -0
- package/blocks/work/project-grid/README.md +38 -0
- package/blocks/work/project-grid/styles.css +9 -0
- package/blocks/work/project-grid/template.html +1 -0
- package/cloudflare/wrangler.forms-test.jsonc +19 -0
- package/cloudflare/wrangler.jsonc +14 -0
- package/cloudflare/wrangler.templates.jsonc +6 -0
- package/design-system/MASTER.md +76 -0
- package/design-system/calibration/v2/accuracy.html +1 -0
- package/design-system/calibration/v2/accuracy.png +0 -0
- package/design-system/calibration/v2/manifest.json +88 -0
- package/design-system/calibration/v2/probe.png +0 -0
- package/design-system/calibration/v2/vitris-northline-counsel-home-1280-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-northline-counsel-home-375-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-northline-counsel-planning-1280-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-northline-counsel-planning-375-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-tide-and-slate-home-1280-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-tide-and-slate-home-375-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-tide-and-slate-project-1280-viewport.png +0 -0
- package/design-system/calibration/v2/vitris-tide-and-slate-project-375-viewport.png +0 -0
- package/design-system/compositions/v1/README.md +13 -0
- package/design-system/compositions/v1/northline-counsel/components/contact-phone-first/styles.css +11 -0
- package/design-system/compositions/v1/northline-counsel/components/contact-phone-first/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/contact-visit/styles.css +13 -0
- package/design-system/compositions/v1/northline-counsel/components/contact-visit/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/footer-compact/styles.css +12 -0
- package/design-system/compositions/v1/northline-counsel/components/footer-compact/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/hero-evidence/styles.css +13 -0
- package/design-system/compositions/v1/northline-counsel/components/hero-evidence/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/hero-page/styles.css +19 -0
- package/design-system/compositions/v1/northline-counsel/components/hero-page/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/nav-split/styles.css +11 -0
- package/design-system/compositions/v1/northline-counsel/components/nav-split/template.html +11 -0
- package/design-system/compositions/v1/northline-counsel/components/services-priority/styles.css +16 -0
- package/design-system/compositions/v1/northline-counsel/components/services-priority/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/components/specification-ledger/styles.css +10 -0
- package/design-system/compositions/v1/northline-counsel/components/specification-ledger/template.html +1 -0
- package/design-system/compositions/v1/northline-counsel/direction.md +5 -0
- package/design-system/compositions/v1/northline-counsel/fixture-brief.json +10 -0
- package/design-system/compositions/v1/northline-counsel/media-inventory.json +1 -0
- package/design-system/compositions/v1/northline-counsel/pages/index.html +11 -0
- package/design-system/compositions/v1/northline-counsel/pages/planning.html +11 -0
- package/design-system/compositions/v1/northline-counsel/selection-receipt.json +36 -0
- package/design-system/compositions/v1/northline-counsel/site.json +1 -0
- package/design-system/compositions/v1/northline-counsel/storyboard.md +12 -0
- package/design-system/compositions/v1/northline-counsel/theme/defaults.json +1 -0
- package/design-system/compositions/v1/source-ledger.json +18 -0
- package/design-system/compositions/v1/tide-and-slate/components/contact-phone-first/styles.css +11 -0
- package/design-system/compositions/v1/tide-and-slate/components/contact-phone-first/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/footer-compact/styles.css +12 -0
- package/design-system/compositions/v1/tide-and-slate/components/footer-compact/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/hero-page/styles.css +19 -0
- package/design-system/compositions/v1/tide-and-slate/components/hero-page/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/hero-split/styles.css +7 -0
- package/design-system/compositions/v1/tide-and-slate/components/hero-split/template.html +11 -0
- package/design-system/compositions/v1/tide-and-slate/components/nav-split/styles.css +11 -0
- package/design-system/compositions/v1/tide-and-slate/components/nav-split/template.html +11 -0
- package/design-system/compositions/v1/tide-and-slate/components/project-evidence/styles.css +12 -0
- package/design-system/compositions/v1/tide-and-slate/components/project-evidence/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/services-priority/styles.css +16 -0
- package/design-system/compositions/v1/tide-and-slate/components/services-priority/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/components/specification-ledger/styles.css +10 -0
- package/design-system/compositions/v1/tide-and-slate/components/specification-ledger/template.html +1 -0
- package/design-system/compositions/v1/tide-and-slate/direction.md +5 -0
- package/design-system/compositions/v1/tide-and-slate/fixture-brief.json +10 -0
- package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-finished.webp +0 -0
- package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-finished.webp.provenance.json +9 -0
- package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-work.webp +0 -0
- package/design-system/compositions/v1/tide-and-slate/media/teaching/slate-roof-work.webp.provenance.json +9 -0
- package/design-system/compositions/v1/tide-and-slate/media-inventory.json +7 -0
- package/design-system/compositions/v1/tide-and-slate/pages/index.html +10 -0
- package/design-system/compositions/v1/tide-and-slate/pages/project.html +10 -0
- package/design-system/compositions/v1/tide-and-slate/site.json +1 -0
- package/design-system/compositions/v1/tide-and-slate/storyboard.md +12 -0
- package/design-system/compositions/v1/tide-and-slate/theme/defaults.json +1 -0
- package/design-system/compositions/v2/catalog.json +4018 -0
- package/design-system/compositions/v2/clearwell-directory/components/study-clearwell-directory/styles.css +3 -0
- package/design-system/compositions/v2/clearwell-directory/components/study-clearwell-directory/template.html +1 -0
- package/design-system/compositions/v2/clearwell-directory/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/clearwell-directory/pages/index.html +5 -0
- package/design-system/compositions/v2/clearwell-directory/site.json +7 -0
- package/design-system/compositions/v2/clearwell-directory/study.json +244 -0
- package/design-system/compositions/v2/clearwell-directory/theme/defaults.json +16 -0
- package/design-system/compositions/v2/clearwell-letter/components/study-clearwell-letter/styles.css +2 -0
- package/design-system/compositions/v2/clearwell-letter/components/study-clearwell-letter/template.html +1 -0
- package/design-system/compositions/v2/clearwell-letter/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/clearwell-letter/pages/index.html +5 -0
- package/design-system/compositions/v2/clearwell-letter/site.json +7 -0
- package/design-system/compositions/v2/clearwell-letter/study.json +236 -0
- package/design-system/compositions/v2/clearwell-letter/theme/defaults.json +16 -0
- package/design-system/compositions/v2/dock-radio/components/study-dock-radio/styles.css +2 -0
- package/design-system/compositions/v2/dock-radio/components/study-dock-radio/template.html +1 -0
- package/design-system/compositions/v2/dock-radio/media/teaching/original-tone-study.wav +0 -0
- package/design-system/compositions/v2/dock-radio/media/teaching/original-tone-study.wav.provenance.json +6 -0
- package/design-system/compositions/v2/dock-radio/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/dock-radio/pages/index.html +5 -0
- package/design-system/compositions/v2/dock-radio/site.json +7 -0
- package/design-system/compositions/v2/dock-radio/study.json +288 -0
- package/design-system/compositions/v2/dock-radio/theme/defaults.json +16 -0
- package/design-system/compositions/v2/fen-repair/components/study-fen-repair/styles.css +2 -0
- package/design-system/compositions/v2/fen-repair/components/study-fen-repair/template.html +1 -0
- package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-finished.webp +0 -0
- package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-finished.webp.provenance.json +9 -0
- package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-work.webp +0 -0
- package/design-system/compositions/v2/fen-repair/media/teaching/slate-roof-work.webp.provenance.json +9 -0
- package/design-system/compositions/v2/fen-repair/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/fen-repair/pages/index.html +5 -0
- package/design-system/compositions/v2/fen-repair/site.json +7 -0
- package/design-system/compositions/v2/fen-repair/study.json +236 -0
- package/design-system/compositions/v2/fen-repair/theme/defaults.json +16 -0
- package/design-system/compositions/v2/hearth-plane/components/study-hearth-plane/styles.css +2 -0
- package/design-system/compositions/v2/hearth-plane/components/study-hearth-plane/template.html +1 -0
- package/design-system/compositions/v2/hearth-plane/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/hearth-plane/pages/index.html +5 -0
- package/design-system/compositions/v2/hearth-plane/site.json +7 -0
- package/design-system/compositions/v2/hearth-plane/study.json +238 -0
- package/design-system/compositions/v2/hearth-plane/theme/defaults.json +16 -0
- package/design-system/compositions/v2/lacuna-objects/components/study-lacuna-objects/styles.css +2 -0
- package/design-system/compositions/v2/lacuna-objects/components/study-lacuna-objects/template.html +1 -0
- package/design-system/compositions/v2/lacuna-objects/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/lacuna-objects/pages/index.html +5 -0
- package/design-system/compositions/v2/lacuna-objects/site.json +7 -0
- package/design-system/compositions/v2/lacuna-objects/study.json +242 -0
- package/design-system/compositions/v2/lacuna-objects/theme/defaults.json +16 -0
- package/design-system/compositions/v2/loop-room/components/study-loop-room/styles.css +2 -0
- package/design-system/compositions/v2/loop-room/components/study-loop-room/template.html +1 -0
- package/design-system/compositions/v2/loop-room/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/loop-room/pages/index.html +5 -0
- package/design-system/compositions/v2/loop-room/site.json +7 -0
- package/design-system/compositions/v2/loop-room/study.json +253 -0
- package/design-system/compositions/v2/loop-room/theme/defaults.json +16 -0
- package/design-system/compositions/v2/manifest.json +740 -0
- package/design-system/compositions/v2/mara-reading-room/components/study-mara-reading-room/styles.css +2 -0
- package/design-system/compositions/v2/mara-reading-room/components/study-mara-reading-room/template.html +1 -0
- package/design-system/compositions/v2/mara-reading-room/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/mara-reading-room/pages/index.html +5 -0
- package/design-system/compositions/v2/mara-reading-room/site.json +7 -0
- package/design-system/compositions/v2/mara-reading-room/study.json +246 -0
- package/design-system/compositions/v2/mara-reading-room/theme/defaults.json +16 -0
- package/design-system/compositions/v2/mara-specimen/components/study-mara-specimen/styles.css +3 -0
- package/design-system/compositions/v2/mara-specimen/components/study-mara-specimen/template.html +1 -0
- package/design-system/compositions/v2/mara-specimen/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/mara-specimen/pages/index.html +5 -0
- package/design-system/compositions/v2/mara-specimen/site.json +7 -0
- package/design-system/compositions/v2/mara-specimen/study.json +244 -0
- package/design-system/compositions/v2/mara-specimen/theme/defaults.json +16 -0
- package/design-system/compositions/v2/margin-journal/components/study-margin-journal/styles.css +2 -0
- package/design-system/compositions/v2/margin-journal/components/study-margin-journal/template.html +1 -0
- package/design-system/compositions/v2/margin-journal/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/margin-journal/pages/index.html +5 -0
- package/design-system/compositions/v2/margin-journal/site.json +7 -0
- package/design-system/compositions/v2/margin-journal/study.json +242 -0
- package/design-system/compositions/v2/margin-journal/theme/defaults.json +16 -0
- package/design-system/compositions/v2/night-orchard/components/study-night-orchard/styles.css +2 -0
- package/design-system/compositions/v2/night-orchard/components/study-night-orchard/template.html +1 -0
- package/design-system/compositions/v2/night-orchard/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/night-orchard/pages/index.html +5 -0
- package/design-system/compositions/v2/night-orchard/site.json +7 -0
- package/design-system/compositions/v2/night-orchard/study.json +247 -0
- package/design-system/compositions/v2/night-orchard/theme/defaults.json +16 -0
- package/design-system/compositions/v2/previews/clearwell-directory-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-directory-home-390.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-directory-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-directory-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-letter-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-letter-home-390.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-letter-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/clearwell-letter-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/dock-radio-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/dock-radio-home-390.png +0 -0
- package/design-system/compositions/v2/previews/dock-radio-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/dock-radio-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/fen-repair-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/fen-repair-home-390.png +0 -0
- package/design-system/compositions/v2/previews/fen-repair-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/fen-repair-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/hearth-plane-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/hearth-plane-home-390.png +0 -0
- package/design-system/compositions/v2/previews/hearth-plane-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/hearth-plane-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/lacuna-objects-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/lacuna-objects-home-390.png +0 -0
- package/design-system/compositions/v2/previews/lacuna-objects-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/lacuna-objects-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/loop-room-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/loop-room-home-390.png +0 -0
- package/design-system/compositions/v2/previews/loop-room-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/loop-room-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/mara-reading-room-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/mara-reading-room-home-390.png +0 -0
- package/design-system/compositions/v2/previews/mara-reading-room-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/mara-reading-room-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/mara-specimen-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/mara-specimen-home-390.png +0 -0
- package/design-system/compositions/v2/previews/mara-specimen-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/mara-specimen-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/margin-journal-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/margin-journal-home-390.png +0 -0
- package/design-system/compositions/v2/previews/margin-journal-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/margin-journal-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/night-orchard-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/night-orchard-home-390.png +0 -0
- package/design-system/compositions/v2/previews/night-orchard-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/night-orchard-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/relay-workflow-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/relay-workflow-home-390.png +0 -0
- package/design-system/compositions/v2/previews/relay-workflow-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/relay-workflow-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/rivet-components-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/rivet-components-home-390.png +0 -0
- package/design-system/compositions/v2/previews/rivet-components-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/rivet-components-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/signal-fair-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/signal-fair-home-390.png +0 -0
- package/design-system/compositions/v2/previews/signal-fair-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/signal-fair-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/sundial-goods-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/sundial-goods-home-390.png +0 -0
- package/design-system/compositions/v2/previews/sundial-goods-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/sundial-goods-interior-390.png +0 -0
- package/design-system/compositions/v2/previews/thread-mender-home-1440.png +0 -0
- package/design-system/compositions/v2/previews/thread-mender-home-390.png +0 -0
- package/design-system/compositions/v2/previews/thread-mender-interior-1440.png +0 -0
- package/design-system/compositions/v2/previews/thread-mender-interior-390.png +0 -0
- package/design-system/compositions/v2/relay-workflow/components/study-relay-workflow/styles.css +2 -0
- package/design-system/compositions/v2/relay-workflow/components/study-relay-workflow/template.html +1 -0
- package/design-system/compositions/v2/relay-workflow/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/relay-workflow/pages/index.html +5 -0
- package/design-system/compositions/v2/relay-workflow/site.json +7 -0
- package/design-system/compositions/v2/relay-workflow/study.json +283 -0
- package/design-system/compositions/v2/relay-workflow/theme/defaults.json +16 -0
- package/design-system/compositions/v2/rivet-components/components/study-rivet-components/styles.css +2 -0
- package/design-system/compositions/v2/rivet-components/components/study-rivet-components/template.html +1 -0
- package/design-system/compositions/v2/rivet-components/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/rivet-components/pages/index.html +5 -0
- package/design-system/compositions/v2/rivet-components/site.json +7 -0
- package/design-system/compositions/v2/rivet-components/study.json +241 -0
- package/design-system/compositions/v2/rivet-components/theme/defaults.json +16 -0
- package/design-system/compositions/v2/signal-fair/components/study-signal-fair/styles.css +2 -0
- package/design-system/compositions/v2/signal-fair/components/study-signal-fair/template.html +1 -0
- package/design-system/compositions/v2/signal-fair/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/signal-fair/pages/index.html +5 -0
- package/design-system/compositions/v2/signal-fair/site.json +7 -0
- package/design-system/compositions/v2/signal-fair/study.json +271 -0
- package/design-system/compositions/v2/signal-fair/theme/defaults.json +16 -0
- package/design-system/compositions/v2/sundial-goods/components/study-sundial-goods/styles.css +2 -0
- package/design-system/compositions/v2/sundial-goods/components/study-sundial-goods/template.html +1 -0
- package/design-system/compositions/v2/sundial-goods/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/sundial-goods/pages/index.html +5 -0
- package/design-system/compositions/v2/sundial-goods/site.json +7 -0
- package/design-system/compositions/v2/sundial-goods/study.json +247 -0
- package/design-system/compositions/v2/sundial-goods/theme/defaults.json +16 -0
- package/design-system/compositions/v2/thread-mender/components/study-thread-mender/styles.css +2 -0
- package/design-system/compositions/v2/thread-mender/components/study-thread-mender/template.html +1 -0
- package/design-system/compositions/v2/thread-mender/pages/detail/index.html +5 -0
- package/design-system/compositions/v2/thread-mender/pages/index.html +5 -0
- package/design-system/compositions/v2/thread-mender/site.json +7 -0
- package/design-system/compositions/v2/thread-mender/study.json +253 -0
- package/design-system/compositions/v2/thread-mender/theme/defaults.json +16 -0
- package/design-system/knowledge/v1/README.md +8 -0
- package/design-system/knowledge/v1/catalog.json +479 -0
- package/design-system/knowledge/v1/demonstrations/assets/teaching-slate-slope.png +0 -0
- package/design-system/knowledge/v1/demonstrations/assets/teaching-slate-slope.provenance.json +12 -0
- package/design-system/knowledge/v1/demonstrations/mobile-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/mobile-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/project-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/project-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/repeat-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/repeat-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/services-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/services-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/sparse-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/sparse-weak.html +50 -0
- package/design-system/knowledge/v1/demonstrations/type-strong.html +50 -0
- package/design-system/knowledge/v1/demonstrations/type-weak.html +50 -0
- package/design-system/knowledge/v1/manifest.json +88 -0
- package/design-system/knowledge/v1/observations/mobile-strong-1080.png +0 -0
- package/design-system/knowledge/v1/observations/mobile-strong-375.png +0 -0
- package/design-system/knowledge/v1/observations/mobile-weak-1080.png +0 -0
- package/design-system/knowledge/v1/observations/mobile-weak-375.png +0 -0
- package/design-system/knowledge/v1/observations/project-strong-1080.png +0 -0
- package/design-system/knowledge/v1/observations/project-strong-375.png +0 -0
- package/design-system/knowledge/v1/observations/project-weak-1080.png +0 -0
- package/design-system/knowledge/v1/observations/project-weak-375.png +0 -0
- package/design-system/knowledge/v1/observations/type-strong-1080.png +0 -0
- package/design-system/knowledge/v1/observations/type-strong-375.png +0 -0
- package/design-system/knowledge/v1/observations/type-weak-1080.png +0 -0
- package/design-system/knowledge/v1/observations/type-weak-375.png +0 -0
- package/design-system/knowledge/v2/added-lessons.json +30 -0
- package/design-system/knowledge/v2/assets.json +14 -0
- package/design-system/knowledge/v2/fixtures/contact-alternate.html +17 -0
- package/design-system/knowledge/v2/fixtures/contact-broken.html +15 -0
- package/design-system/knowledge/v2/fixtures/contact-valid.html +20 -0
- package/design-system/knowledge/v2/fixtures/contrast-cases.html +10 -0
- package/design-system/knowledge/v2/island-audit.json +12 -0
- package/design-system/knowledge/v2/lesson-extensions.json +158 -0
- package/design-system/knowledge/v2/manifest.json +52 -0
- package/design-system/knowledge/v2/replacements.json +14 -0
- package/design-system/knowledge/v2/requirements.json +345 -0
- package/design-system/knowledge/v2/sources.json +182 -0
- package/design-system/knowledge/v3/catalog.json +1232 -0
- package/design-system/knowledge/v3/examples/catalog.json +799 -0
- package/design-system/knowledge/v3/lessons/cmp-collection-structure.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-comparison.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-contextual-action.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-contrastive-critique.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-disclosure.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-evidence-form.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-image-art-direction.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-image-sequence.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-interactive-explanation.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-local-information.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-motion-continuity.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-narrative-continuity.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-navigation.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-page-rhythm.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-process.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-proof-adjacency.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-responsive-recomposition.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-semantic-grouping.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-shared-alignment.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-sparse-media.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-surfaces-motifs.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-text-shape.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-type-roles.md +17 -0
- package/design-system/knowledge/v3/lessons/cmp-unequal-emphasis.md +17 -0
- package/design-system/knowledge/v3/manifest.json +117 -0
- package/design-system/knowledge/v3/sources.json +425 -0
- package/design-system/references/v1/README.md +27 -0
- package/design-system/references/v1/catalog.json +20035 -0
- package/design-system/references/v1/manifest.json +10 -0
- package/design-system/references/v2/README.md +27 -0
- package/design-system/references/v2/catalog.json +27382 -0
- package/design-system/references/v2/manifest.json +11 -0
- package/design-system/references/v3/README.md +27 -0
- package/design-system/references/v3/catalog.json +27628 -0
- package/design-system/references/v3/manifest.json +11 -0
- package/docs/CLI.md +299 -0
- package/docs/CLOUDFLARE.md +53 -0
- package/docs/CONTACT-FORMS.md +161 -0
- package/docs/DISTRIBUTION.md +70 -0
- package/docs/ENGINE.md +28 -0
- package/docs/PRESERVE.md +59 -0
- package/docs/SECURITY.md +23 -0
- package/docs/STOCK-MEDIA.md +66 -0
- package/licenses/blake3-wasm-LICENSE +21 -0
- package/licenses/entities-LICENSE +11 -0
- package/licenses/parse5-LICENSE +19 -0
- package/migrations/0001_init.sql +90 -0
- package/migrations/0002_analytics.sql +50 -0
- package/migrations/0003_site_updates.sql +29 -0
- package/migrations/0004_contact_forms.sql +75 -0
- package/migrations/0005_auth.sql +20 -0
- package/package.json +229 -6
- package/src/runtime/beacon.ts +329 -0
- package/src/runtime/before-after.ts +48 -0
- package/src/runtime/carousel.ts +20 -0
- package/src/runtime/cookie-compliance.ts +50 -0
- package/src/runtime/counter.ts +2 -0
- package/src/runtime/editor.ts +72 -0
- package/src/runtime/experience.ts +57 -0
- package/src/runtime/header.ts +46 -0
- package/src/runtime/leads.ts +102 -0
- package/src/runtime/lightbox.ts +26 -0
- package/src/runtime/reveal.ts +2 -0
- package/src/runtime/scroll-motion.controller.js +100 -0
- package/src/runtime/scroll-motion.count.js +21 -0
- package/src/runtime/scroll-motion.generated.ts +5 -0
- package/src/runtime/scroll-motion.vanilla.js +45 -0
- package/src/runtime/tabs.ts +40 -0
- package/src/stock/catalog.json +5445 -0
- package/src/stock/coverage.json +18 -0
- package/src/stock/picker.css +118 -0
- package/src/stock/picker.js +191 -0
- package/templates/site/.env.example +6 -0
- package/templates/site/.github/workflows/deploy.yml +59 -0
- package/templates/site/AGENTS.md +35 -0
- package/templates/site/CLAUDE.md +5 -0
- package/templates/site/GEMINI.md +5 -0
- package/templates/site/README.md +55 -0
- package/templates/site/components/README.md +18 -0
- package/templates/site/gitignore +10 -0
- package/templates/site/launch.json +14 -0
- package/templates/site/package.json +36 -0
- package/templates/site/pages/README.md +31 -0
- package/templates/site/site.json +10 -0
- package/templates/site/theme/defaults.json +17 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export const COOKIE_COMPLIANCE_PATH = "/cookie-compliance";
|
|
2
|
+
|
|
3
|
+
export const COOKIE_COMPLIANCE_FOOTER_LINK = {
|
|
4
|
+
label: "Cookie compliance",
|
|
5
|
+
href: COOKIE_COMPLIANCE_PATH,
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
const BODY = [
|
|
9
|
+
"This website is powered by Vitris. Analytics run on the site’s own domain — there are no third-party ad or analytics tags.",
|
|
10
|
+
"If you allow analytics cookies, we set a first-party cookie named vitris_vid (about 13 months). It is a random visitor id so return visits can be counted without knowing who you are. We also keep a short-lived session id in session storage while you browse.",
|
|
11
|
+
"With that id we record page views, time on page, scroll depth, clicks on navigation and buttons, live presence while the tab is open, and core conversions such as form submits, phone, email, and map links. Form submissions may include the visitor id when present.",
|
|
12
|
+
"We do not sell this data. Site owners see aggregated reports in their Vitris dashboard so they can improve the site.",
|
|
13
|
+
"If your browser sends Global Privacy Control or Do Not Track, we do not set the analytics cookie and we do not send live presence pings. That hit may still be counted in a cookieless way for that day only.",
|
|
14
|
+
"Essential site cookies (for example an owner login session on the Vitris app) are separate from this public-site analytics cookie and are not controlled by the banner on this page.",
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Kernel-owned cookie compliance body (no site components).
|
|
19
|
+
* Sites should link here from their footer: /cookie-compliance
|
|
20
|
+
*/
|
|
21
|
+
export function cookieComplianceHtml(siteName: string): string {
|
|
22
|
+
const paras = BODY.map((p) => `<p>${p}</p>`).join("\n");
|
|
23
|
+
return `<main id="main" tabindex="-1" class="c-cookie-page">
|
|
24
|
+
<div class="wrap">
|
|
25
|
+
<h1>Cookie compliance</h1>
|
|
26
|
+
<p>First-party analytics on ${escapeText(siteName)}, and how to control them.</p>
|
|
27
|
+
<h2>What we store</h2>
|
|
28
|
+
${paras}
|
|
29
|
+
<h2>Change your preference</h2>
|
|
30
|
+
<p>Use Accept to allow the analytics cookie, or Reject to clear it and stop future analytics cookies and live pings in this browser. Your choice is saved in a first-party preference cookie named vitris_cc. You can return here anytime to change it.</p>
|
|
31
|
+
<div class="c-cookie-page__actions">
|
|
32
|
+
<button type="button" class="btn" data-vitris-cc="accept" data-cookie-accept>Accept analytics cookies</button>
|
|
33
|
+
<button type="button" class="btn-ghost" data-vitris-cc="reject" data-cookie-reject>Reject analytics cookies</button>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</main>`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function escapeText(value: string): string {
|
|
40
|
+
return value
|
|
41
|
+
.replace(/&/g, "&")
|
|
42
|
+
.replace(/</g, "<")
|
|
43
|
+
.replace(/>/g, ">")
|
|
44
|
+
.replace(/"/g, """);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** @deprecated Editor-era merge — kept as no-op helpers for transitional imports. */
|
|
48
|
+
export function withCookieComplianceSite<T extends { pages?: unknown }>(site: T): T {
|
|
49
|
+
return site;
|
|
50
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/** Preview-only click-to-edit overlay (injected when ?edit=1). */
|
|
2
|
+
export const editorCss = `.vitris-edit {
|
|
3
|
+
position: relative;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
outline: 2px solid transparent;
|
|
6
|
+
outline-offset: 2px;
|
|
7
|
+
transition: outline-color 160ms ease;
|
|
8
|
+
}
|
|
9
|
+
.vitris-edit:hover,
|
|
10
|
+
.vitris-edit:focus-visible,
|
|
11
|
+
.vitris-edit.is-on {
|
|
12
|
+
outline-color: #0891B2;
|
|
13
|
+
z-index: 5;
|
|
14
|
+
}
|
|
15
|
+
.vitris-edit:has(.c-header) {
|
|
16
|
+
position: sticky;
|
|
17
|
+
top: 0;
|
|
18
|
+
z-index: 22;
|
|
19
|
+
}
|
|
20
|
+
#vitris-cookie-banner { display: none !important; }
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
export const editorJs = `(() => {
|
|
24
|
+
const post = (payload) => {
|
|
25
|
+
try { parent.postMessage(Object.assign({ vitris: "edit" }, payload), location.origin); }
|
|
26
|
+
catch (_) {}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const bindOf = (el) => el && el.getAttribute("data-vitris-bind") || "";
|
|
30
|
+
|
|
31
|
+
document.addEventListener("click", (event) => {
|
|
32
|
+
const t = event.target;
|
|
33
|
+
if (!(t instanceof Element)) return;
|
|
34
|
+
const edit = t.closest(".vitris-edit");
|
|
35
|
+
if (t.closest("a, button, [data-quotes-prev], [data-quotes-next], [data-stage-prev], [data-stage-next]")) {
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
}
|
|
38
|
+
if (t.closest("form")) event.preventDefault();
|
|
39
|
+
if (!edit) return;
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
event.stopPropagation();
|
|
42
|
+
document.querySelectorAll(".vitris-edit.is-on").forEach((n) => n.classList.remove("is-on"));
|
|
43
|
+
edit.classList.add("is-on");
|
|
44
|
+
post({
|
|
45
|
+
bind: bindOf(edit),
|
|
46
|
+
component: edit.getAttribute("data-vitris-component") || "",
|
|
47
|
+
id: edit.getAttribute("data-vitris-id") || "",
|
|
48
|
+
});
|
|
49
|
+
}, true);
|
|
50
|
+
|
|
51
|
+
document.addEventListener("keydown", (event) => {
|
|
52
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
53
|
+
const t = event.target;
|
|
54
|
+
if (!(t instanceof Element) || !t.classList.contains("vitris-edit")) return;
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
t.click();
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
window.addEventListener("message", (event) => {
|
|
60
|
+
if (event.origin !== location.origin) return;
|
|
61
|
+
const data = event.data;
|
|
62
|
+
if (!data || data.vitris !== "highlight") return;
|
|
63
|
+
document.querySelectorAll(".vitris-edit.is-on").forEach((n) => n.classList.remove("is-on"));
|
|
64
|
+
if (!data.bind) return;
|
|
65
|
+
const el = document.querySelector('.vitris-edit[data-vitris-bind="' + CSS.escape(data.bind) + '"]');
|
|
66
|
+
if (el) {
|
|
67
|
+
el.classList.add("is-on");
|
|
68
|
+
el.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
})();
|
|
72
|
+
`;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** Before first paint: keep a route handoff covered, then fail open if runtime fails. */
|
|
2
|
+
export function experienceArrivalBootstrap(pauseKey='vitris-experience-paused'):string {
|
|
3
|
+
return `(()=>{try{if(matchMedia('(prefers-reduced-motion:reduce)').matches||document.documentElement.dataset.motionPolicy==='off'||localStorage.getItem(${JSON.stringify(pauseKey)})==='true')return;const key='vitris-experience-handoff',raw=sessionStorage.getItem(key);sessionStorage.removeItem(key);const handoff=raw?JSON.parse(raw):null;const route=handoff&&handoff.path===location.pathname&&Date.now()-handoff.at<15000;const initial=!sessionStorage.getItem('vitris-experience-arrived');if(!route&&!initial)return;document.documentElement.dataset.experienceArrival=route?'route':'initial';window.VitrisExperienceArrival={mode:route?'route':'initial',title:route?handoff.title:null,timer:setTimeout(()=>{delete document.documentElement.dataset.experienceArrival;delete window.VitrisExperienceArrival;},3500)};}catch{}})();`;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/** Opt-in interaction choreography. Customer markup/styles own the composition. */
|
|
7
|
+
export const experienceJs = String.raw`(()=>{
|
|
8
|
+
if(window.VitrisExperience)return;
|
|
9
|
+
let cleanup=()=>{};
|
|
10
|
+
const reduce=matchMedia('(prefers-reduced-motion:reduce)'),fine=matchMedia('(hover:hover) and (pointer:fine)');
|
|
11
|
+
const allowed=()=>!reduce.matches&&document.documentElement.dataset.motionPolicy!=='off'&&!document.hidden;
|
|
12
|
+
const clamp=(n,min,max)=>Math.max(min,Math.min(max,n));
|
|
13
|
+
function init(){
|
|
14
|
+
cleanup();const abort=new AbortController(),cancels=[];let raf=0;
|
|
15
|
+
const on=(el,event,fn,options={})=>el?.addEventListener(event,fn,{...options,signal:abort.signal});
|
|
16
|
+
const preview=document.querySelector('[data-experience-preview]'),cursor=document.querySelector('[data-experience-cursor]');
|
|
17
|
+
let active=null,mode='',last=0,target={x:0,y:0},position={x:0,y:0},cursorPosition={x:0,y:0};
|
|
18
|
+
const stop=()=>{active=null;cancelAnimationFrame(raf);raf=0;preview?.setAttribute('data-visible','false');cursor?.setAttribute('data-visible','false');};
|
|
19
|
+
function bounds(x,y){const w=preview?.offsetWidth||310,h=preview?.offsetHeight||230;return {x:clamp(x,w/2+12,innerWidth-w/2-12),y:clamp(y,h/2+12,innerHeight-h/2-12)};}
|
|
20
|
+
function paint(){if(preview)preview.style.transform='translate3d('+(position.x-(preview.offsetWidth/2))+'px,'+(position.y-(preview.offsetHeight/2))+'px,0)';if(cursor)cursor.style.transform='translate3d('+(cursorPosition.x-(cursor.offsetWidth/2))+'px,'+(cursorPosition.y-(cursor.offsetHeight/2))+'px,0)';}
|
|
21
|
+
function follow(t){if(!active||!allowed()){stop();return;}const dt=Math.min(48,t-last||16);last=t;const approach=(v,to,ms)=>v+(to-v)*(1-Math.exp(-dt/ms));position={x:approach(position.x,target.x,190),y:approach(position.y,target.y,190)};cursorPosition={x:approach(cursorPosition.x,target.x,110),y:approach(cursorPosition.y,target.y,110)};paint();if(Math.abs(position.x-target.x)+Math.abs(position.y-target.y)>.15){raf=requestAnimationFrame(follow);}else raf=0;}
|
|
22
|
+
const focusPosition=el=>{const r=el.getBoundingClientRect();return bounds(innerWidth*.72,r.top+r.height/2);};
|
|
23
|
+
function show(el,x,y,input){if(!preview||!fine.matches||!allowed()||innerWidth<=Number(preview.dataset.experienceMinWidth||1024)||el.closest('[data-view="grid"]'))return;active=el;mode=input;target=position=cursorPosition=bounds(x,y);last=0;const image=preview.querySelector('img');if(image){image.src=el.dataset.experienceImage;image.alt='';}const label=cursor?.querySelector('[data-experience-label]')||preview.querySelector('[data-experience-label]');if(label)label.textContent='View '+(el.dataset.experienceName||el.textContent.trim());paint();preview.dataset.visible='true';if(cursor)cursor.dataset.visible='true';}
|
|
24
|
+
document.querySelectorAll('[data-experience-image]').forEach(el=>{
|
|
25
|
+
on(el,'pointerenter',e=>show(el,e.clientX,e.clientY,'pointer'));
|
|
26
|
+
on(el,'pointermove',e=>{if(active!==el)return;target=bounds(e.clientX,e.clientY);if(!raf)raf=requestAnimationFrame(follow);});
|
|
27
|
+
on(el,'pointerleave',()=>{if(document.activeElement!==el)stop();});
|
|
28
|
+
on(el,'focus',()=>{const p=focusPosition(el);show(el,p.x,p.y,'keyboard');});on(el,'blur',stop);on(el,'click',stop);
|
|
29
|
+
});
|
|
30
|
+
on(window,'scroll',()=>{if(active&&mode==='keyboard'){target=position=cursorPosition=focusPosition(active);paint();}else stop();},{passive:true});on(window,'resize',stop);on(document,'visibilitychange',stop);on(reduce,'change',stop);on(fine,'change',stop);
|
|
31
|
+
const magnets=[...document.querySelectorAll('[data-experience-magnetic]')];
|
|
32
|
+
magnets.forEach(el=>{let x=0,y=0;const reset=()=>{x=y=0;el.style.transition=allowed()?'transform 1.2s cubic-bezier(.2,1.5,.5,1)':'none';el.style.transform='';};on(el,'pointermove',e=>{if(!allowed()||!fine.matches)return;const r=el.getBoundingClientRect();x=clamp((e.clientX-r.left-r.width/2+x)*.1,-8,8);y=clamp((e.clientY-r.top-r.height/2+y)*.1,-8,8);el.style.transition='transform .4s';el.style.transform='translate3d('+x+'px,'+y+'px,0)';});on(el,'pointerleave',reset);cancels.push(reset);});
|
|
33
|
+
const drifts=[...document.querySelectorAll('[data-experience-drift]')],tracks=[...document.querySelectorAll('[data-experience-marquee-speed]')];let previousY=scrollY,scrollRaf=0;
|
|
34
|
+
const settleDrift=()=>drifts.forEach(el=>{const trigger=document.getElementById(el.dataset.experienceTrigger)||el.parentElement;const r=trigger.getBoundingClientRect(),factor=Number(el.dataset.experienceDrift||.13),max=Number(el.dataset.experienceDriftMax||40);const value=allowed()&&r.bottom>0&&r.top<innerHeight?(el.dataset.experienceDriftMode==='center'?clamp((r.top-innerHeight*.5)*factor,-max,0):clamp(-r.top*factor,0,max)):0;el.style.transform=value?'translate3d(0,'+value+'px,0)':'';});
|
|
35
|
+
function sizeTracks(){tracks.forEach(el=>{const copy=el.firstElementChild;if(copy)el.style.animationDuration=(copy.getBoundingClientRect().width/Number(el.dataset.experienceMarqueeSpeed||73))+'s';});}
|
|
36
|
+
function scroll(){settleDrift();const delta=scrollY-previousY;if(Math.abs(delta)>2&&allowed())tracks.forEach(el=>{const animation=el.getAnimations()[0];if(!animation)return;const duration=Number(animation.effect.getTiming().duration);if(Number(animation.currentTime)<duration*2)animation.currentTime=Number(animation.currentTime)+duration*100;animation.updatePlaybackRate(delta>=0?1:-1);});previousY=scrollY;scrollRaf=0;}
|
|
37
|
+
on(window,'scroll',()=>{if(!scrollRaf)scrollRaf=requestAnimationFrame(scroll);},{passive:true});on(window,'resize',()=>{sizeTracks();settleDrift();});sizeTracks();document.fonts?.ready.then(()=>{if(!abort.signal.aborted)sizeTracks();});settleDrift();
|
|
38
|
+
const observer=new IntersectionObserver(entries=>entries.forEach(e=>{if(e.isIntersecting){e.target.classList.add('experience-seen');if(e.target.hasAttribute('data-experience-intro')&&allowed())e.target.querySelectorAll('[data-experience-line]').forEach((el,i)=>{const animation=el.animate([{transform:'translateY(24px)',opacity:.75},{transform:'none',opacity:1}],{duration:650,delay:Math.min(i*90,270),easing:'cubic-bezier(.2,1,.3,1)'});cancels.push(()=>animation.cancel());});observer.unobserve(e.target);}}),{threshold:.15});document.querySelectorAll('[data-experience-seam],[data-experience-intro]').forEach(el=>observer.observe(el));
|
|
39
|
+
const curtain=document.querySelector('[data-experience-transition]');let navigating=false;
|
|
40
|
+
const opening=()=>{if(allowed())document.querySelectorAll('[data-experience-opening]').forEach((el,i)=>{const a=el.animate([{transform:'translateY(32px)'},{transform:'translateY(0)'}],{duration:1000,delay:Math.min(i*60,180),easing:'cubic-bezier(.15,1,.2,1)',fill:'backwards'});cancels.push(()=>a.cancel());});};
|
|
41
|
+
const arrival=window.VitrisExperienceArrival;
|
|
42
|
+
if(arrival&&curtain){clearTimeout(arrival.timer);delete window.VitrisExperienceArrival;try{sessionStorage.setItem('vitris-experience-arrived','seen');}catch{}
|
|
43
|
+
if(allowed()){
|
|
44
|
+
const title=document.createElement('span');title.textContent=arrival.title||curtain.dataset.experienceArrival||document.title;curtain.replaceChildren(title);curtain.dataset.state='arrival-hold';curtain.style.visibility='visible';curtain.style.transform='translateY(0)';curtain.style.borderRadius='0';curtain.style.pointerEvents='auto';
|
|
45
|
+
const reveal=()=>{if(abort.signal.aborted)return;if(!allowed()){delete document.documentElement.dataset.experienceArrival;curtain.style.visibility='';curtain.style.transform='';curtain.style.borderRadius='';curtain.style.pointerEvents='';return;}opening();curtain.dataset.state='revealing';const a=curtain.animate([{transform:'translateY(0)',borderRadius:'0'},{transform:'translateY(-115%)',borderRadius:'0 0 50% 50% / 0 0 12% 12%'}],{duration:800,easing:'cubic-bezier(.65,0,.2,1)',fill:'forwards'});cancels.push(()=>a.cancel());a.finished.catch(()=>{}).finally(()=>{delete document.documentElement.dataset.experienceArrival;curtain.style.visibility='';curtain.style.transform='';curtain.style.borderRadius='';curtain.style.pointerEvents='';curtain.dataset.state='idle';a.cancel();});};
|
|
46
|
+
const timer=setTimeout(reveal,arrival.mode==='initial'?420:0);cancels.push(()=>clearTimeout(timer));
|
|
47
|
+
}else delete document.documentElement.dataset.experienceArrival;
|
|
48
|
+
}else opening();
|
|
49
|
+
const arrivalSettled=()=>new Promise(resolve=>{if(!document.documentElement.dataset.experienceArrival){resolve();return;}let timer;const done=()=>{observer.disconnect();clearTimeout(timer);abort.signal.removeEventListener('abort',done);resolve();};const observer=new MutationObserver(()=>{if(!document.documentElement.dataset.experienceArrival)done();});observer.observe(document.documentElement,{attributes:true,attributeFilter:['data-experience-arrival']});timer=setTimeout(done,3500);abort.signal.addEventListener('abort',done,{once:true});});
|
|
50
|
+
on(document,'click',async e=>{const a=e.target.closest('a[href]');if(!curtain||!a||e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||a.hasAttribute('download')||a.target&&a.target!=='_self'||!allowed())return;const url=new URL(a.href,location.href);if(url.origin!==location.origin||url.pathname===location.pathname||url.hash||!/^https?:$/.test(url.protocol))return;e.preventDefault();if(navigating)return;navigating=true;await arrivalSettled();if(abort.signal.aborted)return;if(!allowed()){location.assign(url.href);return;}document.dispatchEvent(new Event('vitris:before-navigate'));const label=document.createElement('span');label.textContent=a.dataset.experienceTitle||a.dataset.chapterName||a.textContent.trim().split('\n')[0];label.style.opacity='0';curtain.replaceChildren(label);curtain.dataset.state='covering';curtain.style.visibility='visible';curtain.style.pointerEvents='auto';try{const cover=curtain.animate([{transform:'translateY(115%)',borderRadius:'50% 50% 0 0 / 12% 12% 0 0'},{transform:'translateY(0)',borderRadius:'0'}],{duration:500,easing:'cubic-bezier(.7,0,.9,.4)',fill:'forwards'});cancels.push(()=>cover.cancel());await cover.finished;const title=label.animate([{opacity:0,transform:'translateY(20px)'},{opacity:1,transform:'none'}],{duration:650,fill:'forwards'});cancels.push(()=>title.cancel());await new Promise(resolve=>setTimeout(resolve,430));if(curtain.hasAttribute('data-experience-arrival')&&allowed())try{sessionStorage.setItem('vitris-experience-handoff',JSON.stringify({path:url.pathname,title:label.textContent,at:Date.now()}));}catch{}}catch{}finally{location.assign(url.href);}});
|
|
51
|
+
const settlePolicy=()=>{if(!allowed()){stop();magnets.forEach(el=>{el.style.transition='none';el.style.transform='';});document.querySelectorAll('[data-experience-opening],[data-experience-line]').forEach(el=>el.getAnimations().forEach(a=>a.cancel()));if(curtain){curtain.getAnimations().forEach(a=>a.cancel());delete document.documentElement.dataset.experienceArrival;curtain.style.visibility='';curtain.style.transform='';curtain.style.borderRadius='';curtain.style.pointerEvents='';}}settleDrift();};
|
|
52
|
+
const policy=new MutationObserver(settlePolicy);policy.observe(document.documentElement,{attributes:true,attributeFilter:['data-motion-policy']});on(reduce,'change',settlePolicy);on(fine,'change',()=>{magnets.forEach(el=>{el.style.transition='none';el.style.transform='';});});on(document,'visibilitychange',settlePolicy);
|
|
53
|
+
cleanup=()=>{stop();cancelAnimationFrame(scrollRaf);abort.abort();observer.disconnect();policy.disconnect();cancels.forEach(fn=>fn());drifts.forEach(el=>el.style.transform='');delete document.documentElement.dataset.experienceArrival;if(curtain){curtain.style.visibility='';curtain.style.pointerEvents='';curtain.style.transform='';curtain.style.borderRadius='';}};
|
|
54
|
+
}
|
|
55
|
+
window.VitrisExperience={init,dispose:()=>cleanup()};init();
|
|
56
|
+
addEventListener('pagehide',()=>cleanup());addEventListener('pageshow',e=>{if(e.persisted)init();});
|
|
57
|
+
})();`;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** Sticky header scroll state + mobile drawer. */
|
|
2
|
+
|
|
3
|
+
export const headerJs = `(() => {
|
|
4
|
+
const headers = [...document.querySelectorAll("[data-island=\\"header\\"]")];
|
|
5
|
+
if (!headers.length) return;
|
|
6
|
+
|
|
7
|
+
const onScroll = () => {
|
|
8
|
+
const scrolled = window.scrollY > 8;
|
|
9
|
+
for (const el of headers) el.classList.toggle("is-scrolled", scrolled);
|
|
10
|
+
};
|
|
11
|
+
onScroll();
|
|
12
|
+
window.addEventListener("scroll", onScroll, { passive: true });
|
|
13
|
+
|
|
14
|
+
for (const root of headers) {
|
|
15
|
+
const toggle = root.querySelector("[data-nav-toggle]");
|
|
16
|
+
const drawer = root.querySelector(".nav-drawer");
|
|
17
|
+
const panel = root.querySelector(".nav-drawer__panel");
|
|
18
|
+
if (!toggle || !drawer || !panel) continue;
|
|
19
|
+
|
|
20
|
+
const close = () => {
|
|
21
|
+
drawer.classList.remove("is-open");
|
|
22
|
+
toggle.setAttribute("aria-expanded", "false");
|
|
23
|
+
document.body.style.overflow = "";
|
|
24
|
+
};
|
|
25
|
+
const open = () => {
|
|
26
|
+
drawer.classList.add("is-open");
|
|
27
|
+
toggle.setAttribute("aria-expanded", "true");
|
|
28
|
+
document.body.style.overflow = "hidden";
|
|
29
|
+
const focusable = panel.querySelector("a,button,[tabindex]:not([tabindex='-1'])");
|
|
30
|
+
if (focusable instanceof HTMLElement) focusable.focus();
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
toggle.addEventListener("click", () => {
|
|
34
|
+
if (drawer.classList.contains("is-open")) close();
|
|
35
|
+
else open();
|
|
36
|
+
});
|
|
37
|
+
drawer.addEventListener("click", (e) => {
|
|
38
|
+
if (e.target === drawer) close();
|
|
39
|
+
});
|
|
40
|
+
document.addEventListener("keydown", (e) => {
|
|
41
|
+
if (e.key === "Escape") close();
|
|
42
|
+
});
|
|
43
|
+
panel.querySelectorAll("a").forEach((a) => a.addEventListener("click", close));
|
|
44
|
+
}
|
|
45
|
+
})();
|
|
46
|
+
`;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/** One shared client for generated and preserved contact forms. Lazy challenge keeps resting layouts intact. */
|
|
2
|
+
export const leadsJs = `(() => {
|
|
3
|
+
let challengeScript;
|
|
4
|
+
const loadChallenge = () => {
|
|
5
|
+
if (window.turnstile) return Promise.resolve(window.turnstile);
|
|
6
|
+
if (!challengeScript) challengeScript = new Promise((resolve, reject) => {
|
|
7
|
+
const script = document.createElement('script');
|
|
8
|
+
script.src = 'https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit';
|
|
9
|
+
script.onload = () => window.turnstile ? resolve(window.turnstile) : reject(new Error('challenge_unavailable'));
|
|
10
|
+
script.onerror = () => { script.remove(); challengeScript = null; reject(new Error('challenge_unavailable')); };
|
|
11
|
+
document.head.append(script);
|
|
12
|
+
});
|
|
13
|
+
return challengeScript;
|
|
14
|
+
};
|
|
15
|
+
document.querySelectorAll('form[data-lead-form][data-vitris-enhanced]').forEach(form => {
|
|
16
|
+
// Named controls can shadow native form properties and methods.
|
|
17
|
+
const data = Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'dataset').get.call(form);
|
|
18
|
+
const setAttribute = Element.prototype.setAttribute.bind(form);
|
|
19
|
+
const removeAttribute = Element.prototype.removeAttribute.bind(form);
|
|
20
|
+
const querySelectorAll = Element.prototype.querySelectorAll.bind(form);
|
|
21
|
+
if (data.vitrisInitialized) return;
|
|
22
|
+
data.vitrisInitialized = '1';
|
|
23
|
+
let submitting = false, key, signature, widget, token = '', challengeResolve, challengeReject, completedSignature;
|
|
24
|
+
const note = document.createElement('p'); note.className = 'c-lead-status';
|
|
25
|
+
note.setAttribute('role', 'status'); note.setAttribute('aria-live', 'polite'); note.tabIndex = -1;
|
|
26
|
+
note.style.display = 'none'; Element.prototype.after.call(form, note);
|
|
27
|
+
const say = (message, error = false) => {
|
|
28
|
+
note.style.display = ''; note.setAttribute('role', error ? 'alert' : 'status'); note.textContent = message;
|
|
29
|
+
if (error) note.focus();
|
|
30
|
+
};
|
|
31
|
+
let challengeBox;
|
|
32
|
+
const challenge = async () => {
|
|
33
|
+
const api = await loadChallenge();
|
|
34
|
+
if (challengeBox) challengeBox.style.display = '';
|
|
35
|
+
if (token) return token;
|
|
36
|
+
if (!challengeBox) { challengeBox = document.createElement('div'); challengeBox.className = 'vitris-challenge'; challengeBox.setAttribute('aria-label', 'Security verification'); Element.prototype.append.call(form, challengeBox); }
|
|
37
|
+
return new Promise((resolve, reject) => {
|
|
38
|
+
challengeResolve = resolve; challengeReject = reject;
|
|
39
|
+
if (widget !== undefined) api.reset(widget);
|
|
40
|
+
else widget = api.render(challengeBox, {
|
|
41
|
+
sitekey: data.vitrisSitekey, action: data.vitrisAction,
|
|
42
|
+
callback: value => { token = value; challengeResolve?.(value); },
|
|
43
|
+
'expired-callback': () => { token = ''; if (submitting) say('Security check expired. Please submit again.', true); challengeReject?.(new Error('challenge_expired')); },
|
|
44
|
+
'timeout-callback': () => { token = ''; challengeReject?.(new Error('challenge_expired')); },
|
|
45
|
+
'error-callback': () => { token = ''; challengeReject?.(new Error('challenge_unavailable')); }
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
EventTarget.prototype.addEventListener.call(form, 'submit', async event => {
|
|
50
|
+
if (event.defaultPrevented) return;
|
|
51
|
+
event.preventDefault(); if (submitting) return;
|
|
52
|
+
if (!HTMLFormElement.prototype.reportValidity.call(form)) return;
|
|
53
|
+
const values = new URLSearchParams(new FormData(form));
|
|
54
|
+
values.delete('cf-turnstile-response'); values.delete('idempotency_key');
|
|
55
|
+
const current = values.toString();
|
|
56
|
+
if (current === completedSignature) { say('Your message was already accepted.'); return; }
|
|
57
|
+
if (!data.vitrisForm || !data.vitrisSitekey) { say('This preview does not send messages. Please use the listed contact details.', true); return; }
|
|
58
|
+
if (current !== signature) { key = crypto.randomUUID(); signature = current; }
|
|
59
|
+
submitting = true;
|
|
60
|
+
const controls = [...querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], [data-vitrisid="emailSendButton"]')];
|
|
61
|
+
const prior = controls.map(c => c.disabled);
|
|
62
|
+
controls.forEach(c => { c.disabled = true; c.setAttribute('aria-disabled', 'true'); }); setAttribute('aria-busy', 'true');
|
|
63
|
+
let timeout;
|
|
64
|
+
try {
|
|
65
|
+
say('Please complete the security check.');
|
|
66
|
+
const challengeTimeout = new Promise((_, reject) => { timeout = setTimeout(() => reject(new Error('challenge_unavailable')), 120000); });
|
|
67
|
+
const verified = await Promise.race([challenge(), challengeTimeout]);
|
|
68
|
+
clearTimeout(timeout);
|
|
69
|
+
values.set('cf-turnstile-response', verified); values.set('idempotency_key', key);
|
|
70
|
+
say('Sending your inquiry…');
|
|
71
|
+
const controller = new AbortController();
|
|
72
|
+
timeout = setTimeout(() => controller.abort(), Math.max(100, Math.min(30000, Number(data.leadTimeoutMs) || 10000)));
|
|
73
|
+
const response = await fetch(Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'action').get.call(form), { method:'POST', body:values, headers:{accept:'application/json'}, signal:controller.signal, credentials:'omit' });
|
|
74
|
+
const result = response.headers.get('content-type')?.includes('application/json') ? await response.json() : null;
|
|
75
|
+
if (!response.ok || result?.ok !== true) throw new Error(result?.error || 'backend_unavailable');
|
|
76
|
+
say(result.mode === 'test' ? 'Test message accepted. No customer email will be sent.' : 'Message accepted. Your inquiry has been saved.');
|
|
77
|
+
completedSignature = current;
|
|
78
|
+
if (challengeBox) challengeBox.style.display = 'none';
|
|
79
|
+
} catch (error) {
|
|
80
|
+
const messages = {
|
|
81
|
+
challenge_required:'Please complete the security check and try again.',
|
|
82
|
+
challenge_invalid:'Security check expired or was invalid. Please try again.',
|
|
83
|
+
challenge_replayed:'Security check was already used. Please try again.',
|
|
84
|
+
challenge_expired:'Security check expired. Please try again.',
|
|
85
|
+
challenge_unavailable:'Security check is unavailable. Please try again or use the listed contact details.',
|
|
86
|
+
rate_limited:'Too many attempts. Please wait ten minutes and try again.',
|
|
87
|
+
validation_error:'Please check your form fields and try again.',
|
|
88
|
+
form_disabled:'This form is currently unavailable. Please use the listed contact details.',
|
|
89
|
+
configuration_unavailable:'This form is currently unavailable. Please use the listed contact details.',
|
|
90
|
+
idempotency_conflict:'This request changed during a retry. Please edit your message and try again.'
|
|
91
|
+
};
|
|
92
|
+
say(error?.name === 'AbortError' ? 'The request timed out. Your message is still here; please try again.' : (messages[error?.message] || 'Acceptance could not be confirmed. Your details are still here; please try again or use the listed contact options.'), true);
|
|
93
|
+
if (challengeBox) challengeBox.style.display = '';
|
|
94
|
+
} finally {
|
|
95
|
+
clearTimeout(timeout); token = ''; challengeResolve = null; challengeReject = null;
|
|
96
|
+
if (window.turnstile && widget !== undefined) window.turnstile.reset(widget);
|
|
97
|
+
controls.forEach((c, i) => { c.disabled = prior[i]; c.removeAttribute('aria-disabled'); });
|
|
98
|
+
removeAttribute('aria-busy'); submitting = false;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
})();`;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Gallery lightbox via <dialog>. */
|
|
2
|
+
|
|
3
|
+
export const lightboxJs = `(() => {
|
|
4
|
+
const roots = [...document.querySelectorAll("[data-island=\\"lightbox\\"]")];
|
|
5
|
+
for (const root of roots) {
|
|
6
|
+
const dialog = root.querySelector("dialog");
|
|
7
|
+
const img = dialog?.querySelector("img");
|
|
8
|
+
if (!(dialog instanceof HTMLDialogElement) || !(img instanceof HTMLImageElement)) continue;
|
|
9
|
+
|
|
10
|
+
root.querySelectorAll("[data-lightbox-src]").forEach((btn) => {
|
|
11
|
+
btn.addEventListener("click", () => {
|
|
12
|
+
const src = btn.getAttribute("data-lightbox-src");
|
|
13
|
+
const alt = btn.getAttribute("data-lightbox-alt") || "";
|
|
14
|
+
if (!src) return;
|
|
15
|
+
img.src = src;
|
|
16
|
+
img.alt = alt;
|
|
17
|
+
dialog.showModal();
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
dialog.addEventListener("click", (e) => {
|
|
21
|
+
if (e.target === dialog) dialog.close();
|
|
22
|
+
});
|
|
23
|
+
dialog.querySelector("[data-lightbox-close]")?.addEventListener("click", () => dialog.close());
|
|
24
|
+
}
|
|
25
|
+
})();
|
|
26
|
+
`;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Engine-independent lifecycle and authoring contract. Adapter selected by the matched benchmark.
|
|
2
|
+
export function bootMotion(adapter) {
|
|
3
|
+
window.VitrisMotion?.dispose();
|
|
4
|
+
let cleanup = () => {}, states = new Map(), watching=false;
|
|
5
|
+
const reduce = matchMedia('(prefers-reduced-motion: reduce)'), mobile = matchMedia('(max-width: 599px)');
|
|
6
|
+
const completed=new WeakSet(), onceEffects=['count','text','sequence','draw'], entrances=['entrance','stagger',...onceEffects];
|
|
7
|
+
const number = (el, key, fallback) => Number(el.getAttribute('data-motion-' + key) ?? fallback);
|
|
8
|
+
const init = () => {
|
|
9
|
+
if(!watching){reduce.addEventListener('change',init);watching=true;}
|
|
10
|
+
for(const [id,state]of states)if(onceEffects.includes(state.effect)&&state.phase==='playing'){const el=document.getElementById(id);if(el)completed.add(el);}
|
|
11
|
+
cleanup(); states = new Map();
|
|
12
|
+
const cancels = [], handlers = [], animations = new Map(); let disposed = false;
|
|
13
|
+
const listen = (target, name, fn, options) => { target.addEventListener(name, fn, options); handlers.push(() => target.removeEventListener(name, fn, options)); };
|
|
14
|
+
const finish = el => { animations.get(el)?.(); animations.delete(el); el.classList.add('is-in'); const state = states.get(el.id); if (state) state.phase = 'complete'; };
|
|
15
|
+
cleanup = () => { disposed = true; for (const cancel of cancels) cancel(); for (const cancel of animations.values()) cancel(); animations.clear(); for (const remove of handlers) remove(); };
|
|
16
|
+
if (document.documentElement.dataset.motionPolicy==='off' || reduce.matches || !window.IntersectionObserver || !Element.prototype.animate) return;
|
|
17
|
+
try {
|
|
18
|
+
const enabled=document.documentElement.dataset.motionPolicy==='enabled';
|
|
19
|
+
const selector=enabled?'[data-motion],[data-reveal],[data-island="counter"] [data-count-to]':'[data-reveal],[data-island="counter"] [data-count-to]';
|
|
20
|
+
const roots = [...document.querySelectorAll(selector)];
|
|
21
|
+
const arm = (el,state) => {
|
|
22
|
+
state.run = adapter.enter(state.children,state.options,()=>{if(!disposed){state.phase='complete';completed.add(el);el.classList.add('is-in');}},true);
|
|
23
|
+
animations.set(el,state.run.cancel);
|
|
24
|
+
};
|
|
25
|
+
const io = new IntersectionObserver(entries => {
|
|
26
|
+
try {
|
|
27
|
+
for (const entry of entries) {
|
|
28
|
+
const el = entry.target, state = states.get(el.id);
|
|
29
|
+
if (!state || state.static) continue;
|
|
30
|
+
if (entry.isIntersecting && (state.effect!=='count'||entry.intersectionRatio>=.35) && state.phase === 'pending') {
|
|
31
|
+
state.phase = 'playing';
|
|
32
|
+
if (!state.run) arm(el,state);
|
|
33
|
+
state.run.play();
|
|
34
|
+
if (!state.repeat) io.unobserve(el);
|
|
35
|
+
} else if (!entry.isIntersecting && state.phase==='playing' && onceEffects.includes(state.effect)) { completed.add(el);finish(el);
|
|
36
|
+
} else if (!entry.isIntersecting && state.repeat && state.phase === 'complete') {
|
|
37
|
+
finish(el); state.phase = 'pending'; state.run=null; arm(el,state);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
} catch(error) { cleanup(); states.clear(); console.warn('Motion playback failed; static content restored',error); }
|
|
41
|
+
}, { threshold: [0,.35], rootMargin: '0px 0px -10% 0px' });
|
|
42
|
+
cancels.push(() => io.disconnect());
|
|
43
|
+
for (const el of roots) {
|
|
44
|
+
if(!el.id)el.id=`motion-runtime-${roots.indexOf(el)}`;
|
|
45
|
+
const effect = (enabled && el.getAttribute('data-motion')) || (el.hasAttribute('data-count-to')?'count':el.hasAttribute('data-reveal-stagger') ? 'stagger' : 'entrance');
|
|
46
|
+
const rect = el.getBoundingClientRect(), style = getComputedStyle(el);
|
|
47
|
+
const nested = el.parentElement?.closest(selector);
|
|
48
|
+
const isStatic = effect === 'story' || !!nested || ['MAIN','HEADER','FOOTER','BODY','HTML'].includes(el.tagName) || /(?:^|\s)c-(?:site-)?(?:hero|header|footer)(?:\s|$)/.test(el.className) || rect.height > innerHeight * 2 || style.position === 'sticky' || style.position === 'fixed' || (mobile.matches && (el.getAttribute('data-motion-mobile') === 'static' || (effect === 'drift' && !el.hasAttribute('data-motion-mobile'))));
|
|
49
|
+
const childSelector=effect==='text'?'[data-motion-word]':effect==='draw'?'[data-motion-path]':enabled?'[data-motion-child],[data-reveal-child]':'[data-reveal-child]';
|
|
50
|
+
const marked = ['stagger','text','sequence','draw'].includes(effect) ? [...el.querySelectorAll(childSelector)].filter(child => child.closest(selector) === el && (effect!=='stagger' || !child.hasAttribute('data-motion-child') || child.parentElement===el)) : [];
|
|
51
|
+
const children=marked.length?marked:[el]; // Legacy zero-child groups retain their wrapper entrance; unmarked siblings of marked groups stay quiet.
|
|
52
|
+
const options = { effect, treatment:el.getAttribute('data-motion-treatment')||'phrase', duration: number(el,'duration', effect==='count'?900:Number.parseFloat(style.getPropertyValue('--reveal-dur')) || 550), delay: number(el,'delay',0), distance: number(el,'distance',effect==='text'?4:Number.parseFloat(style.getPropertyValue('--reveal-dist')) || 16), stagger: number(el,'stagger',70), from: el.getAttribute('data-motion-from') || el.getAttribute('data-reveal-from') || 'up', ease: el.getAttribute('data-motion-ease') || 'editorial' };
|
|
53
|
+
const state = { effect, static: isStatic, phase: 'pending', children, options, repeat: el.getAttribute('data-motion-replay') === 'repeat', progress: null };
|
|
54
|
+
states.set(el.id, state);
|
|
55
|
+
if (isStatic || (onceEffects.includes(effect)&&completed.has(el)) || (entrances.includes(effect) && (rect.bottom<=0 || location.hash.slice(1) === el.id || el.contains(document.activeElement))) || (['entrance','stagger','text','sequence'].includes(effect)&&rect.top<innerHeight)) { state.static = true; finish(el); continue; }
|
|
56
|
+
if (entrances.includes(effect)) io.observe(el);
|
|
57
|
+
else {
|
|
58
|
+
const trigger = document.getElementById(el.getAttribute('data-motion-trigger'));
|
|
59
|
+
if (!trigger) { state.static = true; continue; }
|
|
60
|
+
state.phase = 'linked';
|
|
61
|
+
const start = number(el,'range-start',0), end = number(el,'range-end',1);
|
|
62
|
+
state.progress = () => { const r = trigger.getBoundingClientRect(); return Math.max(0, Math.min(1, ((innerHeight-r.top)/(innerHeight+r.height)-start)/(end-start))); };
|
|
63
|
+
const linked = adapter.link(el, trigger, effect, { ...options, start, end }, state.progress);
|
|
64
|
+
animations.set(el, linked.cancel);
|
|
65
|
+
cancels.push(linked.cancel);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// Only after the observer and all targets validate do offscreen entrance states become hidden.
|
|
69
|
+
for(const el of roots){const state=states.get(el.id);if(state&&!state.static&&entrances.includes(state.effect))arm(el,state);}
|
|
70
|
+
const revealFocused = event => { for (const el of roots) if (el === event.target || el.contains(event.target)) finish(el); };
|
|
71
|
+
const revealAnchor = () => { const el = document.getElementById(decodeURIComponent(location.hash.slice(1))); if (el) revealFocused({ target: el }); };
|
|
72
|
+
listen(document, 'focusin', revealFocused); listen(window, 'hashchange', revealAnchor); revealAnchor();
|
|
73
|
+
listen(window, 'pageshow', event => { if (event.persisted) init(); });
|
|
74
|
+
listen(mobile, 'change', init);
|
|
75
|
+
// No cached line geometry: viewport/font changes finish copy in its natural responsive flow.
|
|
76
|
+
const readable=()=>{for(const el of roots){const state=states.get(el.id);if(state&&['text','sequence'].includes(state.effect)){completed.add(el);finish(el);}}};
|
|
77
|
+
listen(window,'resize',readable);
|
|
78
|
+
// FontFaceSet.ready can resolve before loadingdone is delivered. Pending
|
|
79
|
+
// offscreen copy has no cached line geometry and must retain its first
|
|
80
|
+
// visit choreography; finish only text already playing or completed.
|
|
81
|
+
listen(document.fonts,'loadingdone',()=>{for(const el of roots){const state=states.get(el.id);if(state&&state.phase!=='pending'&&['text','sequence'].includes(state.effect)){completed.add(el);finish(el);}}});
|
|
82
|
+
} catch (error) { cleanup(); states.clear(); console.warn('Motion initialization left static content readable', error); }
|
|
83
|
+
};
|
|
84
|
+
let startCanceled=false,startTimer=0;
|
|
85
|
+
const start=()=>{
|
|
86
|
+
let started=false;
|
|
87
|
+
const activate=()=>{if(started||startCanceled)return;started=true;clearTimeout(startTimer);init();};
|
|
88
|
+
// Preserve the static document while initial fonts settle. Initializing
|
|
89
|
+
// sooner lets loadingdone permanently finish every offscreen text/sequence.
|
|
90
|
+
startTimer=setTimeout(activate,1500);
|
|
91
|
+
const ready=document.fonts?.status==='loading'?document.fonts.ready:Promise.resolve();
|
|
92
|
+
ready.then(activate,activate);
|
|
93
|
+
};
|
|
94
|
+
window.VitrisMotion = { version: 1, engine: adapter.name, init, dispose() { startCanceled=true;clearTimeout(startTimer);document.removeEventListener('DOMContentLoaded',start);cleanup();states=new Map();reduce.removeEventListener('change',init);watching=false; }, inspect(id) { const s = states.get(id); return s ? { effect:s.effect, static:s.static, phase:s.phase, progress:typeof s.progress === 'function' ? s.progress() : null } : { static:true,phase:'static',progress:null }; } };
|
|
95
|
+
window.VitrisCounters={dispose(){window.VitrisMotion.dispose();}};
|
|
96
|
+
// Classic defer can execute before module islands. Their initial UI must settle before geometry reads.
|
|
97
|
+
// Late host loads still initialize immediately; failures always leave the static document readable.
|
|
98
|
+
if (document.readyState==='complete' || performance.getEntriesByType('navigation')[0]?.domContentLoadedEventStart>0) start();
|
|
99
|
+
else document.addEventListener('DOMContentLoaded',start,{once:true});
|
|
100
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// One demand-driven frame for all active counters. Canonical author text stays in the accessibility tree.
|
|
2
|
+
const active=new Set(); let frame=0;
|
|
3
|
+
function tick(now){frame=0;for(const item of [...active])item.update(now);if(active.size)frame=requestAnimationFrame(tick);}
|
|
4
|
+
export function countPresentation(el,options,complete){
|
|
5
|
+
const final=el.textContent, legacy=!el.hasAttribute('data-motion');
|
|
6
|
+
const value=Number(el.getAttribute(legacy?'data-count-to':'data-motion-value'));
|
|
7
|
+
const match=final.match(/[-+]?\d[\d,]*(?:\.\d+)?/);
|
|
8
|
+
if(!Number.isFinite(value)||!match||el.children.length)return {play(){complete();},cancel(){}};
|
|
9
|
+
const before=legacy?final.slice(0,match.index):el.getAttribute('data-motion-prefix')||'';
|
|
10
|
+
const after=legacy?final.slice(match.index+match[0].length):el.getAttribute('data-motion-suffix')||'';
|
|
11
|
+
const decimals=legacy?(match[0].split('.')[1]?.length||0):Number(el.getAttribute('data-motion-decimals')||0);
|
|
12
|
+
const grouped=legacy?match[0].includes(','):el.getAttribute('data-motion-group')!=='false';
|
|
13
|
+
const plus=legacy?match[0].startsWith('+'):el.getAttribute('data-motion-sign')==='always';
|
|
14
|
+
const format=n=>before+(plus&&n>=0?'+':'')+n.toLocaleString('en-US',{minimumFractionDigits:decimals,maximumFractionDigits:decimals,useGrouping:grouped})+after;
|
|
15
|
+
if(!legacy&&format(value)!==final)return {play(){complete();},cancel(){}};
|
|
16
|
+
let start=null,canonical=null,visual=null,stopped=false;
|
|
17
|
+
const originalStyle=el.getAttribute('style');
|
|
18
|
+
const restore=()=>{active.delete(item);if(!active.size){cancelAnimationFrame(frame);frame=0;}if(canonical){el.replaceChildren(...canonical.childNodes);canonical=null;visual=null;if(originalStyle===null)el.removeAttribute('style');else el.setAttribute('style',originalStyle);}};
|
|
19
|
+
const item={update(now){if(start===null)start=now;const p=Math.min(1,(now-start)/options.duration);if(p>=1){restore();stopped=true;complete();return;}visual.textContent=format(value*(1-Math.pow(1-p,3)));}};
|
|
20
|
+
return {play(){if(stopped||canonical)return;canonical=document.createElement('span');canonical.style.opacity='0';canonical.append(...el.childNodes);visual=document.createElement('span');visual.setAttribute('aria-hidden','true');visual.setAttribute('data-motion-visual','');visual.style.cssText='position:absolute;inset:0;user-select:none;pointer-events:none;white-space:inherit';visual.textContent=format(0);el.style.position='relative';el.style.display='inline-block';el.append(canonical,visual);active.add(item);if(!frame)frame=requestAnimationFrame(tick);},cancel(){stopped=true;restore();}};
|
|
21
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Generated by scripts/build-motion-runtime.mjs. Rebuild from the recorded engine decision.
|
|
2
|
+
export const motionEngine = "vanilla";
|
|
3
|
+
export const motionAssetHref = "/motion-465c0e1b6d85.js";
|
|
4
|
+
export const motionAssetHash = "465c0e1b6d851c4d2cb310d9b41a2bbd533728b4ab53910de78058d169ee7bbe";
|
|
5
|
+
export const motionJs = "(()=>{function W(a){window.VitrisMotion?.dispose();let n=()=>{},r=new Map,p=!1,u=matchMedia(\"(prefers-reduced-motion: reduce)\"),c=matchMedia(\"(max-width: 599px)\"),l=new WeakSet,b=[\"count\",\"text\",\"sequence\",\"draw\"],m=[\"entrance\",\"stagger\",...b],h=(o,s,w)=>Number(o.getAttribute(\"data-motion-\"+s)??w),v=()=>{p||(u.addEventListener(\"change\",v),p=!0);for(let[i,g]of r)if(b.includes(g.effect)&&g.phase===\"playing\"){let A=document.getElementById(i);A&&l.add(A)}n(),r=new Map;let o=[],s=[],w=new Map,I=!1,M=(i,g,A,$)=>{i.addEventListener(g,A,$),s.push(()=>i.removeEventListener(g,A,$))},L=i=>{w.get(i)?.(),w.delete(i),i.classList.add(\"is-in\");let g=r.get(i.id);g&&(g.phase=\"complete\")};if(n=()=>{I=!0;for(let i of o)i();for(let i of w.values())i();w.clear();for(let i of s)i()},!(document.documentElement.dataset.motionPolicy===\"off\"||u.matches||!window.IntersectionObserver||!Element.prototype.animate))try{let i=document.documentElement.dataset.motionPolicy===\"enabled\",g=i?'[data-motion],[data-reveal],[data-island=\"counter\"] [data-count-to]':'[data-reveal],[data-island=\"counter\"] [data-count-to]',A=[...document.querySelectorAll(g)],$=(e,t)=>{t.run=a.enter(t.children,t.options,()=>{I||(t.phase=\"complete\",l.add(e),e.classList.add(\"is-in\"))},!0),w.set(e,t.run.cancel)},O=new IntersectionObserver(e=>{try{for(let t of e){let x=t.target,d=r.get(x.id);!d||d.static||(t.isIntersecting&&(d.effect!==\"count\"||t.intersectionRatio>=.35)&&d.phase===\"pending\"?(d.phase=\"playing\",d.run||$(x,d),d.run.play(),d.repeat||O.unobserve(x)):!t.isIntersecting&&d.phase===\"playing\"&&b.includes(d.effect)?(l.add(x),L(x)):!t.isIntersecting&&d.repeat&&d.phase===\"complete\"&&(L(x),d.phase=\"pending\",d.run=null,$(x,d)))}}catch(t){n(),r.clear(),console.warn(\"Motion playback failed; static content restored\",t)}},{threshold:[0,.35],rootMargin:\"0px 0px -10% 0px\"});o.push(()=>O.disconnect());for(let e of A){e.id||(e.id=`motion-runtime-${A.indexOf(e)}`);let t=i&&e.getAttribute(\"data-motion\")||(e.hasAttribute(\"data-count-to\")?\"count\":e.hasAttribute(\"data-reveal-stagger\")?\"stagger\":\"entrance\"),x=e.getBoundingClientRect(),d=getComputedStyle(e),K=e.parentElement?.closest(g),R=t===\"story\"||!!K||[\"MAIN\",\"HEADER\",\"FOOTER\",\"BODY\",\"HTML\"].includes(e.tagName)||/(?:^|\\s)c-(?:site-)?(?:hero|header|footer)(?:\\s|$)/.test(e.className)||x.height>innerHeight*2||d.position===\"sticky\"||d.position===\"fixed\"||c.matches&&(e.getAttribute(\"data-motion-mobile\")===\"static\"||t===\"drift\"&&!e.hasAttribute(\"data-motion-mobile\")),Q=t===\"text\"?\"[data-motion-word]\":t===\"draw\"?\"[data-motion-path]\":i?\"[data-motion-child],[data-reveal-child]\":\"[data-reveal-child]\",V=[\"stagger\",\"text\",\"sequence\",\"draw\"].includes(t)?[...e.querySelectorAll(Q)].filter(S=>S.closest(g)===e&&(t!==\"stagger\"||!S.hasAttribute(\"data-motion-child\")||S.parentElement===e)):[],Z=V.length?V:[e],B={effect:t,treatment:e.getAttribute(\"data-motion-treatment\")||\"phrase\",duration:h(e,\"duration\",t===\"count\"?900:Number.parseFloat(d.getPropertyValue(\"--reveal-dur\"))||550),delay:h(e,\"delay\",0),distance:h(e,\"distance\",t===\"text\"?4:Number.parseFloat(d.getPropertyValue(\"--reveal-dist\"))||16),stagger:h(e,\"stagger\",70),from:e.getAttribute(\"data-motion-from\")||e.getAttribute(\"data-reveal-from\")||\"up\",ease:e.getAttribute(\"data-motion-ease\")||\"editorial\"},C={effect:t,static:R,phase:\"pending\",children:Z,options:B,repeat:e.getAttribute(\"data-motion-replay\")===\"repeat\",progress:null};if(r.set(e.id,C),R||b.includes(t)&&l.has(e)||m.includes(t)&&(x.bottom<=0||location.hash.slice(1)===e.id||e.contains(document.activeElement))||[\"entrance\",\"stagger\",\"text\",\"sequence\"].includes(t)&&x.top<innerHeight){C.static=!0,L(e);continue}if(m.includes(t))O.observe(e);else{let S=document.getElementById(e.getAttribute(\"data-motion-trigger\"));if(!S){C.static=!0;continue}C.phase=\"linked\";let T=h(e,\"range-start\",0),H=h(e,\"range-end\",1);C.progress=()=>{let U=S.getBoundingClientRect();return Math.max(0,Math.min(1,((innerHeight-U.top)/(innerHeight+U.height)-T)/(H-T)))};let Y=a.link(e,S,t,{...B,start:T,end:H},C.progress);w.set(e,Y.cancel),o.push(Y.cancel)}}for(let e of A){let t=r.get(e.id);t&&!t.static&&m.includes(t.effect)&&$(e,t)}let D=e=>{for(let t of A)(t===e.target||t.contains(e.target))&&L(t)},P=()=>{let e=document.getElementById(decodeURIComponent(location.hash.slice(1)));e&&D({target:e})};M(document,\"focusin\",D),M(window,\"hashchange\",P),P(),M(window,\"pageshow\",e=>{e.persisted&&v()}),M(c,\"change\",v),M(window,\"resize\",()=>{for(let e of A){let t=r.get(e.id);t&&[\"text\",\"sequence\"].includes(t.effect)&&(l.add(e),L(e))}}),M(document.fonts,\"loadingdone\",()=>{for(let e of A){let t=r.get(e.id);t&&t.phase!==\"pending\"&&[\"text\",\"sequence\"].includes(t.effect)&&(l.add(e),L(e))}})}catch(i){n(),r.clear(),console.warn(\"Motion initialization left static content readable\",i)}},f=!1,y=0,E=()=>{let o=!1,s=()=>{o||f||(o=!0,clearTimeout(y),v())};y=setTimeout(s,1500),(document.fonts?.status===\"loading\"?document.fonts.ready:Promise.resolve()).then(s,s)};window.VitrisMotion={version:1,engine:a.name,init:v,dispose(){f=!0,clearTimeout(y),document.removeEventListener(\"DOMContentLoaded\",E),n(),r=new Map,u.removeEventListener(\"change\",v),p=!1},inspect(o){let s=r.get(o);return s?{effect:s.effect,static:s.static,phase:s.phase,progress:typeof s.progress==\"function\"?s.progress():null}:{static:!0,phase:\"static\",progress:null}}},window.VitrisCounters={dispose(){window.VitrisMotion.dispose()}},document.readyState===\"complete\"||performance.getEntriesByType(\"navigation\")[0]?.domContentLoadedEventStart>0?E():document.addEventListener(\"DOMContentLoaded\",E,{once:!0})}var q=new Set,z=0;function X(a){z=0;for(let n of[...q])n.update(a);q.size&&(z=requestAnimationFrame(X))}function j(a,n,r){let p=a.textContent,u=!a.hasAttribute(\"data-motion\"),c=Number(a.getAttribute(u?\"data-count-to\":\"data-motion-value\")),l=p.match(/[-+]?\\d[\\d,]*(?:\\.\\d+)?/);if(!Number.isFinite(c)||!l||a.children.length)return{play(){r()},cancel(){}};let b=u?p.slice(0,l.index):a.getAttribute(\"data-motion-prefix\")||\"\",m=u?p.slice(l.index+l[0].length):a.getAttribute(\"data-motion-suffix\")||\"\",h=u?l[0].split(\".\")[1]?.length||0:Number(a.getAttribute(\"data-motion-decimals\")||0),v=u?l[0].includes(\",\"):a.getAttribute(\"data-motion-group\")!==\"false\",f=u?l[0].startsWith(\"+\"):a.getAttribute(\"data-motion-sign\")===\"always\",y=i=>b+(f&&i>=0?\"+\":\"\")+i.toLocaleString(\"en-US\",{minimumFractionDigits:h,maximumFractionDigits:h,useGrouping:v})+m;if(!u&&y(c)!==p)return{play(){r()},cancel(){}};let E=null,o=null,s=null,w=!1,I=a.getAttribute(\"style\"),M=()=>{q.delete(L),q.size||(cancelAnimationFrame(z),z=0),o&&(a.replaceChildren(...o.childNodes),o=null,s=null,I===null?a.removeAttribute(\"style\"):a.setAttribute(\"style\",I))},L={update(i){E===null&&(E=i);let g=Math.min(1,(i-E)/n.duration);if(g>=1){M(),w=!0,r();return}s.textContent=y(c*(1-Math.pow(1-g,3)))}};return{play(){w||o||(o=document.createElement(\"span\"),o.style.opacity=\"0\",o.append(...a.childNodes),s=document.createElement(\"span\"),s.setAttribute(\"aria-hidden\",\"true\"),s.setAttribute(\"data-motion-visual\",\"\"),s.style.cssText=\"position:absolute;inset:0;user-select:none;pointer-events:none;white-space:inherit\",s.textContent=y(0),a.style.position=\"relative\",a.style.display=\"inline-block\",a.append(o,s),q.add(L),z||(z=requestAnimationFrame(X)))},cancel(){w=!0,M()}}}var _={editorial:\"cubic-bezier(.22,1,.36,1)\",gentle:\"cubic-bezier(.25,.1,.25,1)\",linear:\"linear\"},G=a=>{let n=getComputedStyle(a).transform;return n===\"none\"?\"\":n},F=new Set,N=0,ee=()=>{N=0;let a=[...F].filter(n=>n.active||n.dirty).map(n=>[n,n.progress()]);for(let[n,r]of a)n.write(r),n.dirty=!1},k=()=>{N||(N=requestAnimationFrame(ee))},J={name:\"vanilla\",enter(a,n,r,p=!1){if(n.effect===\"count\")return j(a[0],n,r);let u=a.map((c,l)=>{let b=G(c),m=getComputedStyle(c).opacity,h=[\"left\",\"right\"].includes(n.from)?\"X\":\"Y\",v=[\"down\",\"left\"].includes(n.from)?-1:1,f={opacity:0,transform:`${b} translate${h}(${v*n.distance}px)`},y={opacity:m,transform:b||\"none\"};if(n.effect===\"text\"&&n.treatment===\"mask\"&&(f.clipPath=\"inset(0 0 100% 0)\",y.clipPath=\"inset(0 0 0% 0)\"),n.effect===\"sequence\"&&c.getAttribute(\"data-motion-role\")===\"image\"&&(f={opacity:m,transform:`${b} scale(1.015)`},y={opacity:m,transform:b||\"none\"}),n.effect===\"draw\"){let o=c.getTotalLength?.()||1;f={strokeDasharray:`${o} ${o}`,strokeDashoffset:o},y={strokeDasharray:`${o} ${o}`,strokeDashoffset:0}}let E=c.animate([f,y],{duration:n.duration,delay:Math.min(300,n.delay+l*n.stagger),easing:_[n.ease],fill:\"both\"});return p&&E.pause(),E});return Promise.all(u.map(c=>c.finished)).then(()=>{for(let c of u)c.cancel();r()}).catch(()=>{}),{play(){for(let c of u)c.play()},cancel(){for(let c of u)c.cancel()}}},link(a,n,r,p,u){let c=G(a),l=f=>r===\"drift\"?`${c} translateY(${p.distance*(2*f-1)}px)`:`${c} scaleX(${f})`;try{if(window.ViewTimeline){let f=new ViewTimeline({subject:n,axis:\"block\",inset:\"0px\"}),y=a.animate([{transform:l(0)},{transform:l(1)}],{timeline:f,rangeStart:`cover ${p.start*100}%`,rangeEnd:`cover ${p.end*100}%`,easing:\"linear\",fill:\"both\"});return{cancel(){y.cancel()}}}}catch{}let b=a.style.transform,m={active:!0,dirty:!0,progress:u,write:f=>{a.style.transform=l(f)}};F.size||(addEventListener(\"scroll\",k,{passive:!0}),addEventListener(\"resize\",k)),F.add(m);let h=new IntersectionObserver(f=>{m.active=f[0].isIntersecting,m.dirty=!0,k()});h.observe(n);let v=window.ResizeObserver?new ResizeObserver(()=>{m.dirty=!0,k()}):null;return v?.observe(n),document.fonts?.ready.then(()=>{F.has(m)&&(m.dirty=!0,k())}),k(),{cancel(){F.delete(m),F.size||(cancelAnimationFrame(N),N=0,removeEventListener(\"scroll\",k),removeEventListener(\"resize\",k)),h.disconnect(),v?.disconnect(),a.style.transform=b}}}};W(J);})();\n";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { countPresentation } from './scroll-motion.count.js';
|
|
2
|
+
// Shipping adapter selected by the matched benchmark; effects share the controller lifecycle.
|
|
3
|
+
const easing = { editorial:'cubic-bezier(.22,1,.36,1)', gentle:'cubic-bezier(.25,.1,.25,1)', linear:'linear' };
|
|
4
|
+
const base = el => { const value=getComputedStyle(el).transform; return value==='none' ? '' : value; };
|
|
5
|
+
// One frame for all fallback targets: read all geometry before any style writes.
|
|
6
|
+
const fallback = new Set(); let frame=0;
|
|
7
|
+
const update=()=>{frame=0;const writes=[...fallback].filter(t=>t.active||t.dirty).map(target=>[target,target.progress()]);for(const [target,p] of writes){target.write(p);target.dirty=false;}};
|
|
8
|
+
const schedule=()=>{if(!frame)frame=requestAnimationFrame(update);};
|
|
9
|
+
export const vanilla = {
|
|
10
|
+
name:'vanilla',
|
|
11
|
+
enter(children, options, complete, paused=false) {
|
|
12
|
+
if(options.effect==='count')return countPresentation(children[0],options,complete);
|
|
13
|
+
const animations=children.map((el,i) => {
|
|
14
|
+
const original=base(el), opacity=getComputedStyle(el).opacity;
|
|
15
|
+
const axis=['left','right'].includes(options.from)?'X':'Y', sign=['down','left'].includes(options.from)?-1:1;
|
|
16
|
+
let from={opacity:0,transform:`${original} translate${axis}(${sign*options.distance}px)`},to={opacity,transform:original||'none'};
|
|
17
|
+
if(options.effect==='text'&&options.treatment==='mask'){from.clipPath='inset(0 0 100% 0)';to.clipPath='inset(0 0 0% 0)';}
|
|
18
|
+
if(options.effect==='sequence'&&el.getAttribute('data-motion-role')==='image'){from={opacity,transform:`${original} scale(1.015)`};to={opacity,transform:original||'none'};}
|
|
19
|
+
if(options.effect==='draw'){const length=el.getTotalLength?.()||1;from={strokeDasharray:`${length} ${length}`,strokeDashoffset:length};to={strokeDasharray:`${length} ${length}`,strokeDashoffset:0};}
|
|
20
|
+
const animation=el.animate([from,to],{duration:options.duration,delay:Math.min(300,options.delay+i*options.stagger),easing:easing[options.ease],fill:'both'});
|
|
21
|
+
if(paused)animation.pause();return animation;
|
|
22
|
+
});
|
|
23
|
+
Promise.all(animations.map(a=>a.finished)).then(()=> { for(const a of animations)a.cancel(); complete(); }).catch(()=>{});
|
|
24
|
+
return {play(){for(const a of animations)a.play();},cancel(){ for(const a of animations)a.cancel(); }};
|
|
25
|
+
},
|
|
26
|
+
link(el, trigger, effect, options, progress) {
|
|
27
|
+
const original=base(el), transform=p=>effect==='drift'?`${original} translateY(${options.distance*(2*p-1)}px)`:`${original} scaleX(${p})`;
|
|
28
|
+
// Author controls the progress transform origin in CSS; transforms are composed with existing values.
|
|
29
|
+
try {
|
|
30
|
+
if(window.ViewTimeline) {
|
|
31
|
+
const timeline=new ViewTimeline({subject:trigger,axis:'block',inset:'0px'});
|
|
32
|
+
const animation=el.animate([{transform:transform(0)},{transform:transform(1)}],{timeline,rangeStart:`cover ${options.start*100}%`,rangeEnd:`cover ${options.end*100}%`,easing:'linear',fill:'both'});
|
|
33
|
+
return {cancel(){animation.cancel();}};
|
|
34
|
+
}
|
|
35
|
+
} catch { /* Bounded event-driven fallback below; equivalent effect remains present. */ }
|
|
36
|
+
const saved=el.style.transform, target={active:true,dirty:true,progress,write:p=>{el.style.transform=transform(p);}};
|
|
37
|
+
if(!fallback.size){addEventListener('scroll',schedule,{passive:true});addEventListener('resize',schedule);}
|
|
38
|
+
fallback.add(target);
|
|
39
|
+
const io=new IntersectionObserver(entries=>{target.active=entries[0].isIntersecting;target.dirty=true;schedule();});io.observe(trigger);
|
|
40
|
+
const ro=window.ResizeObserver?new ResizeObserver(()=>{target.dirty=true;schedule();}):null;ro?.observe(trigger);
|
|
41
|
+
document.fonts?.ready.then(()=>{if(fallback.has(target)){target.dirty=true;schedule();}});
|
|
42
|
+
schedule();
|
|
43
|
+
return {cancel(){fallback.delete(target);if(!fallback.size){cancelAnimationFrame(frame);frame=0;removeEventListener('scroll',schedule);removeEventListener('resize',schedule);}io.disconnect();ro?.disconnect();el.style.transform=saved;}};
|
|
44
|
+
}
|
|
45
|
+
};
|