@tryvitris/website-harness 0.0.0-stage → 0.1.0-beta.6
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 +141 -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,678 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildSite,
|
|
3
|
+
connectForms,
|
|
4
|
+
loadSiteDir
|
|
5
|
+
} from "./chunk-4GZCAWWK.js";
|
|
6
|
+
import {
|
|
7
|
+
findHarnessRoot
|
|
8
|
+
} from "./chunk-HNORQ74T.js";
|
|
9
|
+
import {
|
|
10
|
+
leadsJs
|
|
11
|
+
} from "./chunk-YCVGD2CG.js";
|
|
12
|
+
import {
|
|
13
|
+
files,
|
|
14
|
+
fingerprint,
|
|
15
|
+
json,
|
|
16
|
+
replacePath,
|
|
17
|
+
save,
|
|
18
|
+
sourceHash,
|
|
19
|
+
within
|
|
20
|
+
} from "./chunk-T6PE4KN4.js";
|
|
21
|
+
import {
|
|
22
|
+
escapeHtml
|
|
23
|
+
} from "./chunk-7FS67SRF.js";
|
|
24
|
+
|
|
25
|
+
// src/preserve/config.ts
|
|
26
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
27
|
+
import { join } from "node:path";
|
|
28
|
+
|
|
29
|
+
// src/preserve/embeds.ts
|
|
30
|
+
import { parse } from "parse5";
|
|
31
|
+
function approvedEmbedUrl(raw) {
|
|
32
|
+
let url;
|
|
33
|
+
try {
|
|
34
|
+
url = new URL(raw, raw.startsWith("//") ? "https://preserve.invalid/" : void 0);
|
|
35
|
+
} catch {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (url.protocol !== "https:" || url.username || url.password || url.port) return;
|
|
39
|
+
if (url.hostname === "www.google.com" && (url.pathname === "/maps/embed" || /^\/maps\/embed\/v1\/(place|view|directions|streetview|search)$/.test(url.pathname))) return url.href;
|
|
40
|
+
if (["www.google.com", "maps.google.com"].includes(url.hostname) && url.pathname === "/maps" && url.searchParams.get("output") === "embed") return url.href;
|
|
41
|
+
if (["www.youtube.com", "www.youtube-nocookie.com"].includes(url.hostname) && /^\/embed\/[a-zA-Z0-9_-]{11}$/.test(url.pathname)) return url.href;
|
|
42
|
+
if (url.hostname === "www.massagebook.com" && /^\/therapists\/[a-z0-9-]+\/widget\/reviews$/.test(url.pathname) && !url.search) return url.href;
|
|
43
|
+
}
|
|
44
|
+
function readOnlyEmbedProvider(raw) {
|
|
45
|
+
const approved = approvedEmbedUrl(raw);
|
|
46
|
+
if (!approved) return;
|
|
47
|
+
const host = new URL(approved).hostname;
|
|
48
|
+
return host.includes("youtube") ? "youtube" : host === "www.massagebook.com" ? "massagebook-reviews" : "google-maps";
|
|
49
|
+
}
|
|
50
|
+
function providerConsoleWarning(text, location, approved) {
|
|
51
|
+
if (!/^Permissions policy violation: compute-pressure is not allowed in this document\.?$/.test(text)) return false;
|
|
52
|
+
let url;
|
|
53
|
+
try {
|
|
54
|
+
url = new URL(location);
|
|
55
|
+
} catch {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return ["www.youtube.com", "www.youtube-nocookie.com"].includes(url.hostname) && url.pathname.startsWith("/s/player/") && [...approved].some((src) => readOnlyEmbedProvider(src) === "youtube");
|
|
59
|
+
}
|
|
60
|
+
function cancelledReviewTelemetry(request, error, approved) {
|
|
61
|
+
if (error !== "net::ERR_ABORTED") return false;
|
|
62
|
+
let url;
|
|
63
|
+
try {
|
|
64
|
+
url = new URL(request.url());
|
|
65
|
+
} catch {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
if (url.origin !== "https://www.google.com" || url.pathname !== "/measurement/conversion") return false;
|
|
69
|
+
try {
|
|
70
|
+
let frame = request.frame();
|
|
71
|
+
for (let depth = 0; frame && depth < 8; depth++, frame = frame.parentFrame()) if (frame.parentFrame() && approved.has(frame.url()) && readOnlyEmbedProvider(frame.url()) === "massagebook-reviews") return true;
|
|
72
|
+
} catch {
|
|
73
|
+
}
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
function iframeSources(html) {
|
|
77
|
+
const sources = [];
|
|
78
|
+
const visit = (node) => {
|
|
79
|
+
if (node.tagName === "iframe" && !node.attrs.some((a) => a.name === "srcdoc")) {
|
|
80
|
+
const src = node.attrs.find((a) => a.name === "src")?.value;
|
|
81
|
+
if (src) sources.push(src);
|
|
82
|
+
}
|
|
83
|
+
for (const child of node.childNodes || []) visit(child);
|
|
84
|
+
};
|
|
85
|
+
visit(parse(html));
|
|
86
|
+
return sources;
|
|
87
|
+
}
|
|
88
|
+
function isReadOnlyEmbedRequest(request, approved) {
|
|
89
|
+
if (approved.has(request.url()) && readOnlyEmbedProvider(request.url())) return true;
|
|
90
|
+
try {
|
|
91
|
+
let frame = request.frame();
|
|
92
|
+
for (let depth = 0; frame && depth < 8; depth++, frame = frame.parentFrame()) {
|
|
93
|
+
if (frame.parentFrame() && approved.has(frame.url()) && readOnlyEmbedProvider(frame.url())) return true;
|
|
94
|
+
}
|
|
95
|
+
} catch {
|
|
96
|
+
}
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// src/preserve/config.ts
|
|
101
|
+
function preserveConfig(root) {
|
|
102
|
+
return existsSync(join(root, "launch.json")) ? JSON.parse(readFileSync(join(root, "launch.json"), "utf8")) : {};
|
|
103
|
+
}
|
|
104
|
+
var isPreserveSite = (root) => preserveConfig(root).mode === "preserve";
|
|
105
|
+
var PRESERVE_WIDTHS = [1440, 390];
|
|
106
|
+
var PRESERVE_HEIGHT = 1e3;
|
|
107
|
+
var SUPPORTED_REACT_BLOCKS = /* @__PURE__ */ new Set(["cta", "cf", "html", "h", "bf", "g"]);
|
|
108
|
+
function unresolvedCaptureBlockers(manifest, staticComponents = /* @__PURE__ */ new Map(), resolvedNavigationAssets = /* @__PURE__ */ new Set(), reactComponents = /* @__PURE__ */ new Map(), repairedNavigation = /* @__PURE__ */ new Set()) {
|
|
109
|
+
return (manifest.blockers || []).filter((blocker) => {
|
|
110
|
+
const failedNavigation = blocker.match(/^(\/[^\n]*): Source (?:page failed|returned a soft 404|navigation failed)/)?.[1];
|
|
111
|
+
if (failedNavigation && repairedNavigation.has(failedNavigation)) return false;
|
|
112
|
+
const navigationAsset = blocker.match(/^Asset (?:returned HTML|failed): (\S+)(?: \(\d+\))?; missing authored asset retained as an empty placeholder, not claimed as preserved bytes$/)?.[1];
|
|
113
|
+
if (navigationAsset && resolvedNavigationAssets.has(navigationAsset)) return false;
|
|
114
|
+
const components = blocker.match(/^(\/[^\n]*): Legacy components need preservation support: ([a-zA-Z0-9, -]+)$/);
|
|
115
|
+
if (components && components[2].split(",").every((kind) => staticComponents.get(components[1])?.has(kind.trim()))) return false;
|
|
116
|
+
const blocks = blocker.match(/^(\/[^\n]*): Legacy React blocks need preservation support: ([a-z0-9, -]+)$/);
|
|
117
|
+
if (blocks && blocks[2].split(",").every((bt) => SUPPORTED_REACT_BLOCKS.has(bt.trim()) || reactComponents.get(blocks[1])?.has(bt.trim()))) return false;
|
|
118
|
+
const form = blocker.match(/^(\/[^\n]*): Unrelated form requires an explicit preservation adapter; it cannot be routed to contact forms$/);
|
|
119
|
+
if (form && reactComponents.get(form[1])?.has("cform")) return false;
|
|
120
|
+
const embeds = blocker.match(/^\/[^\n]*: Unsupported interactive content: (.+)\. Add an adapter before publishing\.$/)?.[1];
|
|
121
|
+
if (embeds && embeds.split(", ").every((item) => item.startsWith("iframe:") && !!readOnlyEmbedProvider(item.slice(7)))) return false;
|
|
122
|
+
return true;
|
|
123
|
+
}).map((blocker) => {
|
|
124
|
+
const components = blocker.match(/^(\/[^\n]*): Legacy components need preservation support: ([a-zA-Z0-9, -]+)$/);
|
|
125
|
+
if (components) {
|
|
126
|
+
const remaining = components[2].split(",").map((k) => k.trim()).filter((k) => !staticComponents.get(components[1])?.has(k));
|
|
127
|
+
return `${components[1]}: Legacy components need preservation support: ${remaining.join(", ")}`;
|
|
128
|
+
}
|
|
129
|
+
const blocks = blocker.match(/^(\/[^\n]*): Legacy React blocks need preservation support: ([a-z0-9, -]+)$/);
|
|
130
|
+
if (blocks) {
|
|
131
|
+
const remaining = blocks[2].split(",").map((k) => k.trim()).filter((k) => !SUPPORTED_REACT_BLOCKS.has(k) && !reactComponents.get(blocks[1])?.has(k));
|
|
132
|
+
return `${blocks[1]}: Legacy React blocks need preservation support: ${remaining.join(", ")}`;
|
|
133
|
+
}
|
|
134
|
+
const embeds = blocker.match(/^(\/[^\n]*): Unsupported interactive content: (.+)\. Add an adapter before publishing\.$/);
|
|
135
|
+
if (embeds) {
|
|
136
|
+
const remaining = embeds[2].split(", ").filter((item) => !item.startsWith("iframe:") || !readOnlyEmbedProvider(item.slice(7)));
|
|
137
|
+
return `${embeds[1]}: Unsupported interactive content: ${remaining.join(", ")}. Add an adapter before publishing.`;
|
|
138
|
+
}
|
|
139
|
+
return blocker;
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function pageFile(path) {
|
|
143
|
+
const url = new URL(path, "https://preserve.invalid");
|
|
144
|
+
if (url.search) throw new Error(`Query-dependent page needs a preservation adapter: ${path}`);
|
|
145
|
+
const decoded = decodeURIComponent(url.pathname);
|
|
146
|
+
if (/[\\\x00-\x1f:*?"<>|]/.test(decoded) || decoded.split("/").some((p) => p === "." || p === ".." || /[. ]$/.test(p) || /^(con|prn|aux|nul|com\d|lpt\d)(\.|$)/i.test(p))) throw new Error(`Unsupported route: ${path}`);
|
|
147
|
+
return decoded === "/" ? "index.html" : `${decoded.replace(/^\/|\/$/g, "")}/index.html`;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// src/build/verified.ts
|
|
151
|
+
import { cpSync as cpSync2, existsSync as existsSync6, mkdirSync as mkdirSync4, readFileSync as readFileSync6 } from "node:fs";
|
|
152
|
+
import { dirname as dirname4, join as join6, resolve as resolve2, sep as sep2 } from "node:path";
|
|
153
|
+
import { writeFileSync as writeFileSync4 } from "node:fs";
|
|
154
|
+
|
|
155
|
+
// src/preserve/build.ts
|
|
156
|
+
import { cpSync, existsSync as existsSync3, mkdirSync, readFileSync as readFileSync3, writeFileSync } from "node:fs";
|
|
157
|
+
import { dirname, join as join3, resolve, sep } from "node:path";
|
|
158
|
+
import { randomUUID } from "node:crypto";
|
|
159
|
+
|
|
160
|
+
// src/preserve/runtime.ts
|
|
161
|
+
var preserveRuntime = `(() => {
|
|
162
|
+
const bottomNav = document.getElementById('navbar-bottom-nav');
|
|
163
|
+
const footer = document.getElementById('vitris-footer');
|
|
164
|
+
if (bottomNav && footer) {
|
|
165
|
+
const reserveBottomNav = () => { footer.style.paddingBottom = bottomNav.getBoundingClientRect().height + 'px'; };
|
|
166
|
+
new ResizeObserver(reserveBottomNav).observe(bottomNav);
|
|
167
|
+
window.addEventListener('resize', reserveBottomNav); document.fonts.ready.then(reserveBottomNav); reserveBottomNav();
|
|
168
|
+
}
|
|
169
|
+
let openModal, opener;
|
|
170
|
+
const reactClosedClasses = new WeakMap();
|
|
171
|
+
const notice=(container,text)=>{
|
|
172
|
+
let note=container.querySelector('[data-preserve-status]');
|
|
173
|
+
if(!note){note=document.createElement('p');note.dataset.preserveStatus='';note.setAttribute('role','status');container.append(note);}note.textContent=text;
|
|
174
|
+
};
|
|
175
|
+
document.querySelectorAll('services-general[data-preserve-service-cards]').forEach(block=>{
|
|
176
|
+
const cards=JSON.parse(block.dataset.preserveServiceCards),grid=block.querySelector('[data-preserve-service-grid]'),select=block.querySelector('[data-vitrisid="servicesPerPage"]'),search=block.querySelector('[data-vitrisid="servicesSearch"]'),left=block.querySelector('[data-vitrisid="servicesLeftArrow"]'),right=block.querySelector('[data-vitrisid="servicesRightArrow"]');let offset=0;
|
|
177
|
+
const render=()=>{const filtered=cards.filter(card=>!search?.value||card.toLowerCase().includes(search.value.toLowerCase())),size=Number(select?.value||5);offset=Math.max(0,Math.min(offset,Math.max(0,Math.ceil(filtered.length/size)-1)));grid.innerHTML=filtered.slice(offset*size,(offset+1)*size).join('');grid.querySelectorAll('[data-toggle="modal"]').forEach(el=>{el.tabIndex=0;el.setAttribute('role','button');});bindHovers(grid);left?.parentElement.classList.toggle('disabled',offset===0);right?.parentElement.classList.toggle('disabled',(offset+1)*size>=filtered.length);};
|
|
178
|
+
select?.addEventListener('change',()=>{offset=0;render();});search?.addEventListener('input',()=>{offset=0;render();});left?.addEventListener('click',event=>{event.preventDefault();if(offset>0){offset--;render();}});right?.addEventListener('click',event=>{event.preventDefault();if((offset+1)*Number(select?.value||5)<cards.length){offset++;render();}});
|
|
179
|
+
});
|
|
180
|
+
// The original React renderer leaves below-fold images unloaded until scrolling
|
|
181
|
+
// or resizing. Keep its deferred loading while using only captured local bytes.
|
|
182
|
+
const deferred=[...document.querySelectorAll('img[data-preserve-deferred-src]')];
|
|
183
|
+
const loadImage=img=>{if(!img.dataset.preserveDeferredSrc)return;img.src=img.dataset.preserveDeferredSrc;img.removeAttribute('data-preserve-deferred-src');};
|
|
184
|
+
const observer=new IntersectionObserver(entries=>entries.forEach(entry=>{if(entry.isIntersecting){loadImage(entry.target);observer.unobserve(entry.target);}}),{rootMargin:'0px 0px 200px 0px'});
|
|
185
|
+
deferred.forEach(img=>observer.observe(img));
|
|
186
|
+
if(window.innerWidth<992)deferred.forEach(loadImage);
|
|
187
|
+
window.addEventListener('resize',()=>deferred.filter(img=>img.hasAttribute('data-preserve-deferred-src')).forEach(loadImage));
|
|
188
|
+
document.querySelectorAll('[data-preserve-product-states]').forEach(panel=>{
|
|
189
|
+
const states=JSON.parse(panel.dataset.preserveProductStates),initial=states[0].values;let values=[...initial];
|
|
190
|
+
const bind=()=>panel.querySelectorAll('select').forEach((select,index)=>{if(index>=values.length)return;select.value=values[index];select.addEventListener('change',()=>{
|
|
191
|
+
values[index]=select.value;
|
|
192
|
+
if(index===0)values=values.map((v,i)=>i===0?v:'');
|
|
193
|
+
const state=states.find(s=>JSON.stringify(s.values)===JSON.stringify(values));
|
|
194
|
+
if(state){panel.innerHTML=state.html;bind();bindHovers(panel);}
|
|
195
|
+
});});bind();
|
|
196
|
+
});
|
|
197
|
+
document.querySelectorAll('.carousel[data-preserve-carousel]').forEach(carousel=>{
|
|
198
|
+
const slides=[...carousel.querySelectorAll('.carousel__slide')],dots=[...carousel.querySelectorAll('.carousel__dot')];let selected=0;
|
|
199
|
+
const choose=index=>{selected=(index+slides.length)%slides.length;carousel.querySelector('.carousel__slider-tray').style.transform='translateX(-'+(selected*100/slides.length)+'%) translateX(0px)';
|
|
200
|
+
slides.forEach((slide,i)=>{slide.classList.toggle('carousel__slide--visible',i===selected);slide.classList.toggle('carousel__slide--hidden',i!==selected);slide.setAttribute('aria-selected',String(i===selected));slide.tabIndex=i===selected?0:-1;});
|
|
201
|
+
dots.forEach((dot,i)=>{dot.disabled=i===selected;dot.classList.toggle('carousel__dot--selected',i===selected);});};
|
|
202
|
+
dots.forEach((dot,i)=>dot.addEventListener('click',()=>choose(i)));
|
|
203
|
+
const slider=carousel.querySelector('.carousel__slider');slider.addEventListener('keydown',event=>{if(['ArrowRight','ArrowLeft'].includes(event.key)){event.preventDefault();choose(selected+(event.key==='ArrowRight'?1:-1));}});
|
|
204
|
+
let start;slider.addEventListener('touchstart',event=>{start=event.touches[0]?.clientX;},{passive:true});slider.addEventListener('touchend',event=>{const end=event.changedTouches[0]?.clientX;if(start!==undefined&&Math.abs(end-start)>30)choose(selected+(end<start?1:-1));},{passive:true});
|
|
205
|
+
});
|
|
206
|
+
const boundHovers=new WeakSet();
|
|
207
|
+
const bindHovers=container=>container.querySelectorAll('[data-preserve-hover]').forEach(button=>{
|
|
208
|
+
if(boundHovers.has(button))return;boundHovers.add(button);
|
|
209
|
+
const hover=JSON.parse(button.dataset.preserveHover);let resting;
|
|
210
|
+
button.addEventListener('mouseenter',()=>{resting=button.getAttribute('style');for(const [property,value]of Object.entries(hover))button.style.setProperty(property,value);});
|
|
211
|
+
button.addEventListener('mouseleave',()=>{if(resting===null)button.removeAttribute('style');else if(resting!==undefined)button.setAttribute('style',resting);});
|
|
212
|
+
});bindHovers(document);
|
|
213
|
+
document.querySelectorAll('iframe[data-preserve-disabled-embed]').forEach(frame => {
|
|
214
|
+
const notice = () => {
|
|
215
|
+
const doc = frame.contentDocument;
|
|
216
|
+
if (!doc || doc.querySelector('[data-preserve-embed-notice]')) return;
|
|
217
|
+
const note = doc.createElement('p'); note.dataset.preserveEmbedNotice = ''; note.setAttribute('role','status');
|
|
218
|
+
note.textContent = 'This preview does not run this embedded application. Please use the listed contact details.';
|
|
219
|
+
doc.body.append(note);
|
|
220
|
+
};
|
|
221
|
+
frame.addEventListener('load', notice); notice();
|
|
222
|
+
});
|
|
223
|
+
const close = () => {
|
|
224
|
+
if (!openModal) return;
|
|
225
|
+
openModal.classList.remove('show'); openModal.style.display = 'none';
|
|
226
|
+
openModal.setAttribute('aria-hidden', 'true'); openModal.removeAttribute('aria-modal');
|
|
227
|
+
document.querySelector('[data-preserve-backdrop]')?.remove();
|
|
228
|
+
document.body.classList.remove('modal-open'); openModal = null; opener?.focus();
|
|
229
|
+
};
|
|
230
|
+
document.querySelectorAll('[data-toggle="modal"]').forEach(el => { el.tabIndex = 0; el.setAttribute('role','button'); });
|
|
231
|
+
document.querySelectorAll('.dropdown-toggle').forEach(el => { el.tabIndex = 0; el.setAttribute('role','button'); el.setAttribute('aria-expanded','false'); });
|
|
232
|
+
document.addEventListener('click', event => {
|
|
233
|
+
const disabled=event.target.closest('[data-preserve-disabled-action]');
|
|
234
|
+
if(disabled){event.preventDefault();const booking=disabled.dataset.preserveDisabledAction==='booking',container=disabled.closest('[data-preserve-disabled-booking], #vb, form')||disabled.parentElement;notice(container,booking?(container.querySelector('#days-container')?'This preview cannot book appointments. Calendar availability is a captured snapshot. Please use the listed contact details.':'This preview cannot book appointments. Please use the listed contact details.'):'This preview cannot place orders or accept payments. Please use the listed contact details.');return;}
|
|
235
|
+
if(event.target.closest('[data-preserve-inert-action]')){event.preventDefault();return;}
|
|
236
|
+
const dropdown = event.target.closest('.dropdown-toggle');
|
|
237
|
+
if (dropdown) {
|
|
238
|
+
const menu = dropdown.parentElement.querySelector('.dropdown-menu');
|
|
239
|
+
if (menu) {
|
|
240
|
+
event.preventDefault();
|
|
241
|
+
const wasOpen = !!document.querySelector('.dropdown-menu.show');
|
|
242
|
+
document.querySelectorAll('.dropdown-menu.show').forEach(el=>el.classList.remove('show'));
|
|
243
|
+
document.querySelectorAll('.dropdown-toggle').forEach(el=>el.setAttribute('aria-expanded','false'));
|
|
244
|
+
if (!wasOpen) { menu.classList.add('show'); dropdown.setAttribute('aria-expanded','true'); }
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
const toggle = event.target.closest('[data-toggle]');
|
|
248
|
+
if (toggle) {
|
|
249
|
+
const selector = toggle.getAttribute('data-target') || toggle.getAttribute('href');
|
|
250
|
+
const target = selector?.startsWith('#') ? document.getElementById(selector.slice(1)) : null;
|
|
251
|
+
if (!target) return;
|
|
252
|
+
if (toggle.dataset.toggle === 'collapse') {
|
|
253
|
+
event.preventDefault();
|
|
254
|
+
const groupSelector=toggle.getAttribute('data-parent')||target.getAttribute('data-parent');
|
|
255
|
+
const group=groupSelector?.startsWith('#')?document.getElementById(groupSelector.slice(1)):null;
|
|
256
|
+
if(group&&!target.classList.contains('show'))group.querySelectorAll('.collapse.show').forEach(sibling=>{
|
|
257
|
+
if(sibling===target)return;sibling.classList.remove('show');
|
|
258
|
+
group.querySelectorAll('[data-toggle="collapse"]').forEach(control=>{if((control.getAttribute('data-target')||control.getAttribute('href'))==='#'+sibling.id)control.setAttribute('aria-expanded','false');});
|
|
259
|
+
});
|
|
260
|
+
const reactNav = target.classList.contains('navbar-collapse');
|
|
261
|
+
if (reactNav && !reactClosedClasses.has(target)) reactClosedClasses.set(target, target.className);
|
|
262
|
+
target.classList.toggle('show');
|
|
263
|
+
if (reactNav) {
|
|
264
|
+
if (target.classList.contains('show')) { target.classList.remove('d-none'); target.classList.add('d-block','in'); }
|
|
265
|
+
else target.className = reactClosedClasses.get(target);
|
|
266
|
+
}
|
|
267
|
+
toggle.setAttribute('aria-expanded', String(target.classList.contains('show')));
|
|
268
|
+
} else if (toggle.dataset.toggle === 'modal') {
|
|
269
|
+
event.preventDefault(); close(); opener = toggle; openModal = target;
|
|
270
|
+
target.style.display = 'block'; target.classList.add('show'); target.removeAttribute('aria-hidden');
|
|
271
|
+
target.setAttribute('aria-modal','true'); target.tabIndex = -1;
|
|
272
|
+
const backdrop = document.createElement('div'); backdrop.className = 'modal-backdrop fade show';
|
|
273
|
+
backdrop.dataset.preserveBackdrop = ''; backdrop.onclick = close; document.body.append(backdrop);
|
|
274
|
+
document.body.classList.add('modal-open'); target.focus();
|
|
275
|
+
if (toggle.closest('services-general[uniquecomponent="service-1"]') && !target.querySelector('[data-preserve-booking-notice]')) {
|
|
276
|
+
const note = document.createElement('p'); note.dataset.preserveBookingNotice = ''; note.setAttribute('role','status');
|
|
277
|
+
note.textContent = 'This preview cannot book appointments. Please use the listed contact details.';
|
|
278
|
+
(target.querySelector('.modal-content, .modal-dialog') || target).append(note);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (event.target.closest('[data-dismiss="modal"]') || event.target === openModal) close();
|
|
283
|
+
const send = event.target.closest('[data-vitrisid="emailSendButton"]');
|
|
284
|
+
if (send) { event.preventDefault();const form=send.closest('form');if(form?.hasAttribute('data-preserve-disabled-custom-form'))notice(form,'This preview does not send messages or upload files. Please use the listed contact details.');else form?.requestSubmit(); }
|
|
285
|
+
});
|
|
286
|
+
document.addEventListener('keydown', event => {
|
|
287
|
+
if (event.key === 'Escape') close();
|
|
288
|
+
if ((event.key === 'Enter' || event.key === ' ') && event.target.matches('[data-toggle="modal"], [data-vitrisid="emailSendButton"], .dropdown-toggle, [data-preserve-disabled-action]')) { event.preventDefault(); event.target.click(); }
|
|
289
|
+
if (event.key === 'Tab' && openModal) { event.preventDefault(); openModal.focus(); }
|
|
290
|
+
});
|
|
291
|
+
document.querySelectorAll('form[data-preserve-forms]').forEach(form => {
|
|
292
|
+
form.removeAttribute('novalidate');
|
|
293
|
+
const send = form.querySelector('[data-vitrisid="emailSendButton"]');
|
|
294
|
+
if (send) { send.tabIndex = 0; send.setAttribute('role','button'); }
|
|
295
|
+
form.addEventListener('submit', event => {
|
|
296
|
+
if (form.dataset.preserveForms === 'live') return;
|
|
297
|
+
event.preventDefault();
|
|
298
|
+
if(form.hasAttribute('data-preserve-disabled-custom-form')){notice(form,'This preview does not send messages or upload files. Please use the listed contact details.');return;}
|
|
299
|
+
let note = form.querySelector('[data-preserve-status]');
|
|
300
|
+
if (!note) { note = document.createElement('p'); note.dataset.preserveStatus = ''; note.setAttribute('role','status'); form.append(note); }
|
|
301
|
+
note.textContent = 'This preview does not send messages. Please use the listed contact details.';
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
})();`;
|
|
305
|
+
|
|
306
|
+
// src/preserve/supplement.ts
|
|
307
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
308
|
+
import { join as join2 } from "node:path";
|
|
309
|
+
function preserveManifest(root) {
|
|
310
|
+
const manifest = JSON.parse(readFileSync2(join2(root, "onboarding/preserve.json"), "utf8"));
|
|
311
|
+
const index = join2(root, "onboarding/preserve-supplements.json");
|
|
312
|
+
if (existsSync2(index)) for (const file of JSON.parse(readFileSync2(index, "utf8")).files) {
|
|
313
|
+
const supplement = JSON.parse(readFileSync2(within(root, file), "utf8"));
|
|
314
|
+
if (supplement.sourceUrl !== manifest.sourceUrl || supplement.capturedAt !== manifest.capturedAt) throw Error("Asset supplement does not match the original capture");
|
|
315
|
+
manifest.warnings = [.../* @__PURE__ */ new Set([...manifest.warnings, ...supplement.warnings || []])];
|
|
316
|
+
if (supplement.blockers?.length) manifest.blockers = [.../* @__PURE__ */ new Set([...manifest.blockers || [], ...supplement.blockers])];
|
|
317
|
+
for (const page of supplement.pages || []) {
|
|
318
|
+
within(join2(root, "preserved"), page.file);
|
|
319
|
+
page.references.forEach((r) => within(root, r.file));
|
|
320
|
+
if (page.sourceFailure) within(root, page.sourceFailure.responseFile);
|
|
321
|
+
if (new URL(page.url).origin !== new URL(manifest.sourceUrl).origin || new URL(page.url).pathname !== page.path || manifest.pages.some((p) => p.path === page.path || p.file.toLowerCase() === page.file.toLowerCase())) throw Error("Page supplement would replace a captured route or leave its source");
|
|
322
|
+
manifest.pages.push(page);
|
|
323
|
+
}
|
|
324
|
+
for (const asset of supplement.assets || []) {
|
|
325
|
+
within(root, asset.referenceFile);
|
|
326
|
+
within(join2(root, "preserved"), asset.file);
|
|
327
|
+
if (manifest.assets.some((a) => a.file === asset.file || a.url === asset.url)) throw Error("Asset supplement would replace a captured asset");
|
|
328
|
+
manifest.assets.push(asset);
|
|
329
|
+
if (asset.captureError) manifest.blockers = [.../* @__PURE__ */ new Set([...manifest.blockers || [], asset.captureError + "; missing authored asset retained as an empty placeholder, not claimed as preserved bytes"])];
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return manifest;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// src/preserve/build.ts
|
|
336
|
+
async function buildPreservedSite(siteRoot, output = join3(siteRoot, "dist")) {
|
|
337
|
+
const root = resolve(siteRoot), out = resolve(output), source = join3(root, "preserved");
|
|
338
|
+
if (out === root || root.startsWith(out + sep) || ["preserved", "agent", "onboarding", "public", "pages", "components", "media", "theme", "artifacts"].some((p) => out === join3(root, p) || out.startsWith(join3(root, p) + sep))) throw new Error("Preserve build output cannot overwrite site source");
|
|
339
|
+
const config = preserveConfig(root);
|
|
340
|
+
const manifest = preserveManifest(root);
|
|
341
|
+
if (config.mode !== "preserve" || !["vitris-v1", "vitris-v2"].includes(manifest.adapter) || !manifest.pages.length) throw new Error("Missing preserve capture; run vitris run first");
|
|
342
|
+
if (new URL(config.sourceUrl).href !== manifest.sourceUrl) throw new Error("Source URL differs from the captured site; create a new preservation directory");
|
|
343
|
+
files(source);
|
|
344
|
+
const stage = `${out}.stage-${randomUUID()}`;
|
|
345
|
+
mkdirSync(dirname(stage), { recursive: true });
|
|
346
|
+
cpSync(source, stage, { recursive: true });
|
|
347
|
+
let backend = "";
|
|
348
|
+
if (config.backendOrigin) {
|
|
349
|
+
const url = new URL(config.backendOrigin);
|
|
350
|
+
if (!/^https?:$/.test(url.protocol) || url.username || url.password || url.search || url.hash || url.pathname !== "/") throw new Error("backendOrigin must be an HTTP(S) origin");
|
|
351
|
+
backend = url.origin;
|
|
352
|
+
}
|
|
353
|
+
for (const file of files(stage).filter((f) => f.endsWith(".html"))) {
|
|
354
|
+
let html = readFileSync3(file, "utf8");
|
|
355
|
+
if (backend && config.forms?.length) {
|
|
356
|
+
const path = manifest.pages.find((p) => join3(stage, p.file) === file)?.path || "/";
|
|
357
|
+
html = connectForms(html, backend, path, config.forms);
|
|
358
|
+
html = html.replace(/<\/head>/i, "<style>.c-lead-status:empty{display:none}</style></head>");
|
|
359
|
+
html = html.replace(/<\/body>/i, '<script src="/_preserve/leads.js" defer></script></body>');
|
|
360
|
+
}
|
|
361
|
+
writeFileSync(file, html);
|
|
362
|
+
}
|
|
363
|
+
if (backend && config.forms?.length) writeFileSync(join3(stage, "_preserve/leads.js"), leadsJs);
|
|
364
|
+
writeFileSync(join3(stage, "_preserve/runtime.js"), preserveRuntime);
|
|
365
|
+
writeFileSync(join3(stage, "robots.txt"), "User-agent: *\nDisallow: /\n");
|
|
366
|
+
const rewrites = manifest.pages.filter((p) => p.file.startsWith("_preserve/routes/")).map((p) => `${p.path} /${p.file} 200`);
|
|
367
|
+
if (rewrites.length) writeFileSync(join3(stage, "_redirects"), rewrites.join("\n") + "\n");
|
|
368
|
+
const connected = backend && config.forms?.length;
|
|
369
|
+
const frameOrigins = [...new Set(files(stage).filter((f) => f.endsWith(".html")).flatMap((f) => iframeSources(readFileSync3(f, "utf8")).filter((src) => readOnlyEmbedProvider(src)).map((src) => new URL(approvedEmbedUrl(src)).origin)))];
|
|
370
|
+
if (connected) frameOrigins.push("https://challenges.cloudflare.com");
|
|
371
|
+
writeFileSync(join3(stage, "_headers"), `/*
|
|
372
|
+
X-Robots-Tag: noindex, nofollow
|
|
373
|
+
Content-Security-Policy: default-src 'self'; img-src 'self' data: blob:; font-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'${connected ? " https://challenges.cloudflare.com" : ""}; connect-src 'self'${connected ? " " + backend + " https://challenges.cloudflare.com" : ""}; frame-src ${frameOrigins.length ? frameOrigins.join(" ") : "'none'"}; object-src 'none'; base-uri 'self'; form-action 'self'${connected ? " " + backend : ""}
|
|
374
|
+
`);
|
|
375
|
+
writeFileSync(join3(stage, "404.html"), '<!doctype html><html><head><meta name="robots" content="noindex"></head><body><h1>Page not found</h1></body></html>');
|
|
376
|
+
save(join3(stage, "build-evidence.json"), { version: 1, mode: "preserve", compilerHash: fingerprint(findHarnessRoot(), ["src/preserve", "src/forms", "src/runtime/leads.ts", "src/compile/flatten.ts"]) });
|
|
377
|
+
const previous = `${out}.previous-${randomUUID()}`;
|
|
378
|
+
if (existsSync3(out)) replacePath(out, previous);
|
|
379
|
+
try {
|
|
380
|
+
replacePath(stage, out);
|
|
381
|
+
} catch (error) {
|
|
382
|
+
if (existsSync3(previous)) replacePath(previous, out);
|
|
383
|
+
throw error;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// src/build/responsive-media.ts
|
|
388
|
+
import { createHash } from "node:crypto";
|
|
389
|
+
import { existsSync as existsSync4, mkdirSync as mkdirSync2, readFileSync as readFileSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
390
|
+
import { dirname as dirname2, join as join4, relative } from "node:path";
|
|
391
|
+
import { parse as parse2 } from "parse5";
|
|
392
|
+
import sharp from "sharp";
|
|
393
|
+
var hash = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
394
|
+
var attr = (el, name) => el.attrs.find((a) => a.name === name)?.value;
|
|
395
|
+
function set(el, name, value) {
|
|
396
|
+
const old = el.attrs.find((a) => a.name === name);
|
|
397
|
+
if (old) old.value = value;
|
|
398
|
+
else el.attrs.push({ name, value });
|
|
399
|
+
}
|
|
400
|
+
function elements(node) {
|
|
401
|
+
return [..."tagName" in node ? [node] : [], ..."childNodes" in node ? node.childNodes.flatMap(elements) : [], ..."content" in node ? elements(node.content) : []];
|
|
402
|
+
}
|
|
403
|
+
async function responsiveMedia(dist, cacheDir) {
|
|
404
|
+
const report = { version: 1, images: [], warnings: [] };
|
|
405
|
+
const generated = /* @__PURE__ */ new Map();
|
|
406
|
+
for (const file of files(dist).filter((p) => p.endsWith(".html"))) {
|
|
407
|
+
let html = readFileSync4(file, "utf8");
|
|
408
|
+
const edits = [];
|
|
409
|
+
const images = elements(parse2(html, { sourceCodeLocationInfo: true })).filter((el) => el.tagName === "img");
|
|
410
|
+
if (images.filter((el) => attr(el, "data-media-priority") === "critical").length > 1) report.warnings.push(`${relative(dist, file)}: more than one critical image; check mobile/desktop visibility`);
|
|
411
|
+
for (const el of images) {
|
|
412
|
+
const loc = el.sourceCodeLocation?.startTag;
|
|
413
|
+
if (!loc) continue;
|
|
414
|
+
const priority = attr(el, "data-media-priority");
|
|
415
|
+
if (priority && !["critical", "deferred", "auto"].includes(priority)) throw new Error(`Invalid data-media-priority: ${priority}`);
|
|
416
|
+
if (priority === "critical") {
|
|
417
|
+
set(el, "loading", "eager");
|
|
418
|
+
set(el, "fetchpriority", "high");
|
|
419
|
+
}
|
|
420
|
+
if (priority === "deferred") {
|
|
421
|
+
set(el, "loading", "lazy");
|
|
422
|
+
set(el, "fetchpriority", "low");
|
|
423
|
+
}
|
|
424
|
+
if (!attr(el, "decoding")) set(el, "decoding", "async");
|
|
425
|
+
const src = attr(el, "src") || "";
|
|
426
|
+
const picture = el.parentNode && "tagName" in el.parentNode && el.parentNode.tagName === "picture";
|
|
427
|
+
if (src && !/^(?:[a-z]+:|\/\/|#)/i.test(src) && /\.(?:jpe?g|png|webp|avif)$/i.test(src) && !attr(el, "srcset") && !picture && attr(el, "data-media-optimize") !== "off") {
|
|
428
|
+
const decoded = decodeURIComponent(src);
|
|
429
|
+
const source = within(dist, decoded.startsWith("/") ? decoded.slice(1) : join4(relative(dist, dirname2(file)), decoded));
|
|
430
|
+
if (!existsSync4(source)) throw new Error(`Missing asset (image): ${src} in ${relative(dist, file)}`);
|
|
431
|
+
const format = attr(el, "data-media-format") === "avif" ? "avif" : "webp";
|
|
432
|
+
const bytes = readFileSync4(source), digest2 = hash(bytes), key = digest2 + "-" + format;
|
|
433
|
+
if (!generated.has(key)) {
|
|
434
|
+
const meta = await sharp(bytes, { limitInputPixels: 8e7 }).metadata();
|
|
435
|
+
if ((meta.pages || 1) > 1 || !meta.width || !meta.height) generated.set(key, null);
|
|
436
|
+
else {
|
|
437
|
+
const rotated = [5, 6, 7, 8].includes(meta.orientation || 1);
|
|
438
|
+
const width = rotated ? meta.height : meta.width;
|
|
439
|
+
const variants2 = [];
|
|
440
|
+
const widths = [...new Set([480, 768, 1280, 1920].filter((w) => w < width).concat(Math.min(width, 1920)))];
|
|
441
|
+
for (const w of widths) {
|
|
442
|
+
const cache = join4(cacheDir, `v1-sharp-${sharp.versions.sharp}-${key}-${w}`);
|
|
443
|
+
let output;
|
|
444
|
+
if (existsSync4(cache)) output = readFileSync4(cache);
|
|
445
|
+
else {
|
|
446
|
+
const pipeline = sharp(bytes).rotate().resize({ width: w, withoutEnlargement: true });
|
|
447
|
+
output = await (format === "avif" ? pipeline.avif({ quality: 52, effort: 4 }) : pipeline.webp({ quality: 78, effort: 4 })).toBuffer();
|
|
448
|
+
mkdirSync2(cacheDir, { recursive: true });
|
|
449
|
+
writeFileSync2(cache, output);
|
|
450
|
+
}
|
|
451
|
+
const sha256 = hash(output), url = `/media/optimized/${sha256}.${format}`;
|
|
452
|
+
const dimensions = await sharp(output).metadata();
|
|
453
|
+
mkdirSync2(join4(dist, "media/optimized"), { recursive: true });
|
|
454
|
+
writeFileSync2(join4(dist, url.slice(1)), output);
|
|
455
|
+
variants2.push({ url, width: dimensions.width, height: dimensions.height, bytes: output.length, sha256 });
|
|
456
|
+
}
|
|
457
|
+
generated.set(key, variants2);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
const variants = generated.get(key);
|
|
461
|
+
if (variants?.length) {
|
|
462
|
+
const sourceUrl = "/" + relative(dist, source).replaceAll("\\", "/");
|
|
463
|
+
if (!report.images.some((image) => image.source === sourceUrl && image.variants[0]?.url === variants[0]?.url)) report.images.push({ source: sourceUrl, sha256: digest2, bytes: bytes.length, variants });
|
|
464
|
+
set(el, "data-media-source", sourceUrl);
|
|
465
|
+
const fallback = variants.find((v) => v.width >= 768) || variants.at(-1);
|
|
466
|
+
set(el, "src", fallback.url);
|
|
467
|
+
set(el, "srcset", variants.map((v) => `${v.url} ${v.width}w`).join(", "));
|
|
468
|
+
if (!attr(el, "sizes")) {
|
|
469
|
+
set(el, "sizes", "100vw");
|
|
470
|
+
report.warnings.push(`${relative(dist, file)}: ${src} uses conservative sizes=100vw; author gallery/card sizes`);
|
|
471
|
+
}
|
|
472
|
+
if (!attr(el, "width") && !attr(el, "height")) {
|
|
473
|
+
const largest = variants.at(-1);
|
|
474
|
+
set(el, "width", String(largest.width));
|
|
475
|
+
set(el, "height", String(largest.height));
|
|
476
|
+
}
|
|
477
|
+
if (priority === "critical" && fallback.bytes > 250 * 1024) report.warnings.push(`${relative(dist, file)}: critical image exceeds 250 KiB at ${fallback.width}px`);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
edits.push({ start: loc.startOffset, end: loc.endOffset, value: "<img" + el.attrs.map((a) => ` ${a.name}="${escapeHtml(a.value)}"`).join("") + ">" });
|
|
481
|
+
}
|
|
482
|
+
for (const edit of edits.sort((a, b) => b.start - a.start)) html = html.slice(0, edit.start) + edit.value + html.slice(edit.end);
|
|
483
|
+
writeFileSync2(file, html);
|
|
484
|
+
}
|
|
485
|
+
writeFileSync2(join4(dist, "media-manifest.json"), JSON.stringify(report, null, 2) + "\n");
|
|
486
|
+
return report;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
// src/build/static-output.ts
|
|
490
|
+
import { createHash as createHash2 } from "node:crypto";
|
|
491
|
+
import { existsSync as existsSync5, readFileSync as readFileSync5, writeFileSync as writeFileSync3, mkdirSync as mkdirSync3, unlinkSync } from "node:fs";
|
|
492
|
+
import { dirname as dirname3, join as join5, relative as relative2 } from "node:path";
|
|
493
|
+
import { parse as parse3 } from "parse5";
|
|
494
|
+
var digest = (bytes) => createHash2("sha256").update(bytes).digest("hex");
|
|
495
|
+
function finalizeStaticOutput(dist, publicOrigin) {
|
|
496
|
+
mkdirSync3(join5(dist, "assets/immutable"), { recursive: true });
|
|
497
|
+
if (!existsSync5(join5(dist, "404.html"))) writeFileSync3(join5(dist, "404.html"), existsSync5(join5(dist, "404/index.html")) ? readFileSync5(join5(dist, "404/index.html")) : '<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><meta name="robots" content="noindex"><title>Page not found</title></head><body><main><h1>Page not found</h1><p>This address is unavailable.</p><a href="/">Return home</a></main></body></html>');
|
|
498
|
+
const mapped = /* @__PURE__ */ new Map();
|
|
499
|
+
const immutable = /* @__PURE__ */ new Set();
|
|
500
|
+
for (const file of files(dist).filter((f) => f.endsWith(".css"))) {
|
|
501
|
+
let css = readFileSync5(file, "utf8");
|
|
502
|
+
css = css.replace(/url\(\s*(["']?)data:(?:font\/woff2?|application\/(?:font-woff|x-font-woff));base64,([a-z0-9+/=\s]+)\1\s*\)/gi, (match, _quote, encoded) => {
|
|
503
|
+
const bytes = Buffer.from(encoded.replace(/\s/g, ""), "base64");
|
|
504
|
+
const signature = bytes.subarray(0, 4).toString();
|
|
505
|
+
if (!["wOF2", "wOFF"].includes(signature)) return match;
|
|
506
|
+
const url = `/assets/immutable/${digest(bytes)}.${signature === "wOF2" ? "woff2" : "woff"}`;
|
|
507
|
+
mkdirSync3(join5(dist, "assets/immutable"), { recursive: true });
|
|
508
|
+
writeFileSync3(join5(dist, url.slice(1)), bytes);
|
|
509
|
+
immutable.add(url);
|
|
510
|
+
return `url("${url}")`;
|
|
511
|
+
});
|
|
512
|
+
if (dirname3(file) === join5(dist, "assets/immutable")) css = css.replace(/url\(\s*(["']?)(?![a-z]+:|\/|#)([^)'"\s]+)\1\s*\)/gi, (_m, _q, url) => `url("/${url}")`);
|
|
513
|
+
css = css.replace(/url\(\s*(["']?)([^)'"\s]+\.woff2?)\1\s*\)/gi, (match, _q, url) => {
|
|
514
|
+
if (/^(?:[a-z]+:|\/\/)/i.test(url)) return match;
|
|
515
|
+
const path = within(dist, url.startsWith("/") ? url.slice(1) : join5(relative2(dist, dirname3(file)), url));
|
|
516
|
+
if (!existsSync5(path)) return match;
|
|
517
|
+
const bytes = readFileSync5(path), next2 = `/assets/immutable/${digest(bytes)}.${url.split(".").at(-1)}`;
|
|
518
|
+
writeFileSync3(join5(dist, next2.slice(1)), bytes);
|
|
519
|
+
immutable.add(next2);
|
|
520
|
+
return `url("${next2}")`;
|
|
521
|
+
});
|
|
522
|
+
css = css.replace(/@font-face\s*\{[^}]*\}/gi, (rule) => /font-display\s*:/.test(rule) ? rule : rule.slice(0, -1) + ";font-display:swap}");
|
|
523
|
+
writeFileSync3(file, css);
|
|
524
|
+
const rel = "/" + relative2(dist, file).replaceAll("\\", "/");
|
|
525
|
+
const next = `/assets/immutable/${digest(css)}.css`;
|
|
526
|
+
writeFileSync3(join5(dist, next.slice(1)), css);
|
|
527
|
+
mapped.set(rel, next);
|
|
528
|
+
immutable.add(next);
|
|
529
|
+
if (rel !== next && /^\/assets\/immutable\/[a-f0-9]{64}\.css$/.test(rel)) unlinkSync(file);
|
|
530
|
+
}
|
|
531
|
+
for (const name of ["islands.js", "beacon.js"]) {
|
|
532
|
+
if (!existsSync5(join5(dist, name))) continue;
|
|
533
|
+
const bytes = readFileSync5(join5(dist, name)), url = `/assets/immutable/${digest(bytes)}.js`;
|
|
534
|
+
writeFileSync3(join5(dist, url.slice(1)), bytes);
|
|
535
|
+
mapped.set("/" + name, url);
|
|
536
|
+
immutable.add(url);
|
|
537
|
+
}
|
|
538
|
+
for (const file of files(dist)) {
|
|
539
|
+
const rel = "/" + relative2(dist, file).replaceAll("\\", "/");
|
|
540
|
+
if (/^\/assets\/immutable\/[a-f0-9]{64}\.js$/.test(rel)) immutable.add(rel);
|
|
541
|
+
}
|
|
542
|
+
const routes = new Set(files(dist).filter((f) => f.endsWith("index.html")).map((f) => "/" + relative2(dist, f).replaceAll("\\", "/").replace(/index\.html$/, "")));
|
|
543
|
+
for (const file of files(dist).filter((f) => f.endsWith(".html"))) {
|
|
544
|
+
let html = readFileSync5(file, "utf8");
|
|
545
|
+
for (const [old, next] of mapped) html = html.replaceAll(`"${old}"`, `"${next}"`).replaceAll(`'${old}'`, `'${next}'`);
|
|
546
|
+
const edits = [];
|
|
547
|
+
let hasIcon = false;
|
|
548
|
+
const walk = (node) => {
|
|
549
|
+
if ("tagName" in node) {
|
|
550
|
+
if (node.tagName === "link" && node.attrs.find((a) => a.name === "rel")?.value.toLowerCase().split(/\s+/).includes("icon")) hasIcon = true;
|
|
551
|
+
const href = node.attrs.find((a) => a.name === "href");
|
|
552
|
+
const location = node.sourceCodeLocation?.attrs?.href;
|
|
553
|
+
if (href && location) {
|
|
554
|
+
try {
|
|
555
|
+
const base = publicOrigin || "https://vitris.invalid";
|
|
556
|
+
const route = "/" + relative2(dist, file).replaceAll("\\", "/").replace(/index\.html$/, "");
|
|
557
|
+
const url = new URL(href.value, base + route);
|
|
558
|
+
if (url.origin === new URL(base).origin && routes.has(url.pathname.replace(/\/$/, "") + "/") && url.pathname !== "/" && !url.pathname.endsWith("/")) {
|
|
559
|
+
const value = href.value.startsWith("http") ? url.origin + url.pathname + "/" + url.search + url.hash : url.pathname + "/" + url.search + url.hash;
|
|
560
|
+
edits.push({ start: location.startOffset, end: location.endOffset, value: `href="${escapeHtml(value)}"` });
|
|
561
|
+
}
|
|
562
|
+
} catch {
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
if ("childNodes" in node) node.childNodes.forEach(walk);
|
|
567
|
+
};
|
|
568
|
+
walk(parse3(html, { sourceCodeLocationInfo: true }));
|
|
569
|
+
for (const edit of edits.sort((a, b) => b.start - a.start)) html = html.slice(0, edit.start) + edit.value + html.slice(edit.end);
|
|
570
|
+
if (!hasIcon) {
|
|
571
|
+
const icon = existsSync5(join5(dist, "favicon.ico")) ? "/favicon.ico" : "/favicon.svg";
|
|
572
|
+
if (!existsSync5(join5(dist, icon.slice(1)))) writeFileSync3(join5(dist, "favicon.svg"), '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#20252c"/><g fill="none" stroke="#fff" stroke-width="3"><circle cx="32" cy="32" r="20"/><ellipse cx="32" cy="32" rx="9" ry="20"/><path d="M12 32h40M16 21h32M16 43h32"/></g></svg>');
|
|
573
|
+
html = html.replace(/<\/head\s*>/i, `<link rel="icon" href="${icon}" type="${icon.endsWith(".ico") ? "image/x-icon" : "image/svg+xml"}"></head>`);
|
|
574
|
+
}
|
|
575
|
+
writeFileSync3(file, html);
|
|
576
|
+
}
|
|
577
|
+
const sitemap = join5(dist, "sitemap.xml");
|
|
578
|
+
if (existsSync5(sitemap)) writeFileSync3(sitemap, readFileSync5(sitemap, "utf8").replace(/<loc>([^<]+)<\/loc>/g, (_m, loc) => {
|
|
579
|
+
const path = publicOrigin && loc.startsWith(publicOrigin.replace(/\/$/, "")) ? loc.slice(publicOrigin.replace(/\/$/, "").length) : loc;
|
|
580
|
+
return `<loc>${loc}${path !== "/" && routes.has(path.replace(/\/$/, "") + "/") && !loc.endsWith("/") ? "/" : ""}</loc>`;
|
|
581
|
+
}));
|
|
582
|
+
const headersPath = join5(dist, "_headers");
|
|
583
|
+
const headers = existsSync5(headersPath) ? readFileSync5(headersPath, "utf8") : "";
|
|
584
|
+
writeFileSync3(headersPath, headers + "\n# Vitris content-addressed build assets\n/assets/immutable/*\n Cache-Control: public, max-age=31536000, immutable\n/media/optimized/*\n Cache-Control: public, max-age=31536000, immutable\n");
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// src/build/verified.ts
|
|
588
|
+
async function buildVerified(siteRoot, output = join6(siteRoot, "dist"), origin, slug) {
|
|
589
|
+
if (isPreserveSite(siteRoot)) return buildPreservedSite(siteRoot, output);
|
|
590
|
+
const root = resolve2(siteRoot), out = resolve2(output);
|
|
591
|
+
if (out === root || root.startsWith(out + sep2)) throw new Error("Build output cannot contain site source");
|
|
592
|
+
for (const path of ["pages", "components", "theme", "media", "public", "agent", "onboarding"]) {
|
|
593
|
+
const source = join6(root, path);
|
|
594
|
+
if (out === source || out.startsWith(source + sep2)) throw new Error("Build output cannot overwrite source directories");
|
|
595
|
+
}
|
|
596
|
+
const stage = out + `.stage-${Date.now()}-${process.pid}`;
|
|
597
|
+
mkdirSync4(dirname4(stage), { recursive: true });
|
|
598
|
+
const local = await loadSiteDir(root);
|
|
599
|
+
if (slug) local.site = { ...local.site, slug };
|
|
600
|
+
const launch = existsSync6(join6(root, "launch.json")) ? json(join6(root, "launch.json")) : {};
|
|
601
|
+
await buildSite({ ...local, webAnalyticsToken: launch.webAnalyticsToken, forms: launch.forms, kernelOrigin: origin || process.env.VITRIS_BACKEND_ORIGIN || process.env.KERNEL_ORIGIN || launch.backendOrigin || launch.kernelOrigin || "", publicOrigin: process.env.VITRIS_PUBLIC_ORIGIN || launch.publicOrigin, outDir: stage });
|
|
602
|
+
for (const path of ["media", "public"]) {
|
|
603
|
+
const source = within(root, path);
|
|
604
|
+
if (!existsSync6(source)) continue;
|
|
605
|
+
files(source);
|
|
606
|
+
if (path === "media") cpSync2(source, join6(stage, path), { recursive: true });
|
|
607
|
+
else for (const file of files(source)) {
|
|
608
|
+
const rel = file.slice(source.length + 1);
|
|
609
|
+
if (existsSync6(join6(stage, rel))) throw new Error(`Public asset conflicts with compiled output: ${rel}`);
|
|
610
|
+
mkdirSync4(dirname4(join6(stage, rel)), { recursive: true });
|
|
611
|
+
cpSync2(file, join6(stage, rel));
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
await responsiveMedia(stage, join6(root, ".vitris/cache/media"));
|
|
615
|
+
finalizeStaticOutput(stage, process.env.VITRIS_PUBLIC_ORIGIN || launch.publicOrigin);
|
|
616
|
+
const errors = [];
|
|
617
|
+
const storyboardPath = join6(root, "onboarding/storyboard.json");
|
|
618
|
+
if (existsSync6(storyboardPath)) {
|
|
619
|
+
const plan = json(storyboardPath);
|
|
620
|
+
const redirectPath = join6(stage, "_redirects");
|
|
621
|
+
let redirects = existsSync6(redirectPath) ? readFileSync6(redirectPath, "utf8") : "";
|
|
622
|
+
for (const route of plan.routes || []) {
|
|
623
|
+
if (!["redirect", "consolidate"].includes(route.disposition) || !route.target) continue;
|
|
624
|
+
const from = new URL(route.source).pathname.replace(/\/$/, "") || "/";
|
|
625
|
+
if (!route.target.startsWith("/") || /\s/.test(from + route.target)) throw new Error("Invalid redirect contract");
|
|
626
|
+
if (from === route.target) continue;
|
|
627
|
+
const existing = redirects.split(/\r?\n/).find((line) => line.trim().split(/\s+/)[0] === from);
|
|
628
|
+
if (existing && existing.trim().split(/\s+/)[1] !== route.target) throw new Error(`Storyboard conflicts with public redirect: ${from}`);
|
|
629
|
+
if (!existing) redirects += `
|
|
630
|
+
${from} ${route.target} 301`;
|
|
631
|
+
}
|
|
632
|
+
if (redirects.trim()) writeFileSync4(redirectPath, redirects.trim() + "\n");
|
|
633
|
+
}
|
|
634
|
+
for (const file of files(stage).filter((p) => /\.(html|css)$/.test(p))) {
|
|
635
|
+
const content = readFileSync6(file, "utf8");
|
|
636
|
+
const refs = file.endsWith(".html") ? [...content.matchAll(/(?:src|poster)=["']([^"']+)["']/g)].map((m) => m[1]) : [...content.matchAll(/url\(["']?([^)'"\s]+)["']?\)/g)].map((m) => m[1]);
|
|
637
|
+
for (const ref of refs) {
|
|
638
|
+
if (/^(https?:|data:|blob:|#|\/\/)/.test(ref)) continue;
|
|
639
|
+
const path = ref.split(/[?#]/)[0];
|
|
640
|
+
const target = within(stage, path.startsWith("/") ? path.slice(1) : join6(dirname4(file).slice(stage.length + 1), path));
|
|
641
|
+
if (!existsSync6(target)) errors.push(`Missing asset ${ref} in ${file}`);
|
|
642
|
+
}
|
|
643
|
+
if (file.endsWith(".html") && /<slot\b/.test(content)) errors.push(`Unresolved slots: ${file}`);
|
|
644
|
+
}
|
|
645
|
+
if (errors.length) throw new Error(errors.join("\n"));
|
|
646
|
+
save(join6(stage, "package-manifest.json"), { slug: local.site.slug || "", site: local.site });
|
|
647
|
+
const kernelParent = resolve2(import.meta.dirname, "..");
|
|
648
|
+
const kernelSource = existsSync6(join6(kernelParent, "compile")) ? kernelParent : join6(kernelParent, "src");
|
|
649
|
+
save(join6(stage, "build-evidence.json"), { version: 2, sourceHash: sourceHash(root), compilerHash: fingerprint(kernelSource, ["compile", "build", "runtime", "forms", "theme.ts"]) });
|
|
650
|
+
const previous = out + `.previous-${Date.now()}-${process.pid}`;
|
|
651
|
+
if (existsSync6(out)) replacePath(out, previous);
|
|
652
|
+
try {
|
|
653
|
+
replacePath(stage, out);
|
|
654
|
+
} catch (error) {
|
|
655
|
+
if (existsSync6(previous)) replacePath(previous, out);
|
|
656
|
+
throw error;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export {
|
|
661
|
+
approvedEmbedUrl,
|
|
662
|
+
readOnlyEmbedProvider,
|
|
663
|
+
providerConsoleWarning,
|
|
664
|
+
cancelledReviewTelemetry,
|
|
665
|
+
iframeSources,
|
|
666
|
+
isReadOnlyEmbedRequest,
|
|
667
|
+
preserveConfig,
|
|
668
|
+
isPreserveSite,
|
|
669
|
+
PRESERVE_WIDTHS,
|
|
670
|
+
PRESERVE_HEIGHT,
|
|
671
|
+
SUPPORTED_REACT_BLOCKS,
|
|
672
|
+
unresolvedCaptureBlockers,
|
|
673
|
+
pageFile,
|
|
674
|
+
preserveRuntime,
|
|
675
|
+
preserveManifest,
|
|
676
|
+
buildPreservedSite,
|
|
677
|
+
buildVerified
|
|
678
|
+
};
|