/**
* The built-in starter HTML. The "+ New box" menu no longer reads TEMPLATES
* directly: it lists saved components, and TEMPLATES is what the Components
* panel's "Import built-ins" turns into components (stores/components.js), so
* they can be edited and deleted like any other. Changing an entry here only
* reaches a site whose admin imports it again (after deleting the old one).
* The helpers at the bottom are still used directly, by dropped uploads and
* the starter layouts.
*
* Each runs inside the sandboxed iframe (see HtmlBox.vue), so scripts work but
* can only reach APIs that allow cross-origin requests from an opaque origin —
* i.e. that answer with `Access-Control-Allow-Origin: *` and need no key.
* Open-Meteo is one.
*
* The site's colour and font tokens are already defined in the frame
* (frameStyles.js), so templates use var(--color-…) freely.
*/
const CLOCK = `
`;
// A sticky note for reminders to self. Unframed, since the note is its own
// frame; the menu entry makes it adminOnly.
const NOTE = `
TODO
Something to implement
`;
const HEADING = `
Title
subtitle
`;
const TEXT = `
Heading
A paragraph about it. Bold, italic and
links all work.
“A quote you like.”
`;
// Links. An HTML box is its own document in a sandboxed frame, so a link
// must name where it opens: target="_top" replaces the site page (a full
// load, not a router navigation — fine for leaving the page), and
// target="_blank" a new tab. Without a target it would load inside the box.
const LINK_STYLE = ``;
const linkHtml = (links) => `${LINK_STYLE}
`;
// A scrolling grid of images. "Insert upload" in the editor adds more.
const galleryHtml = (srcs) => `