Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
slides: the embed element (#466)
nyblnetdf7c4e47a67a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 604bac83..bbdf6885 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -402,6 +402,16 @@ jobs:# behaviour (refusal, aborting what is already in flight, cross-tab).run: node scripts/test-offline.ts+ - name: Embed element rig+ # The `embed` element (docs/DECISIONS.md 2026-08-19 shape): the static+ # view always paints through the svg sanitiser; a live sandboxed frame+ # exists only online with the offline switch off, and drops back to+ # the view on error. Node half plus headless Chrome with a request log.+ run: |+ slides/node_modules/.bin/esbuild scripts/test-embed.ts --bundle --platform=node --format=esm \+ --outfile="$RUNNER_TEMP/test-embed.mjs"+ node --no-warnings "$RUNNER_TEMP/test-embed.mjs"+- name: Untrusted-markup sanitizer rig# Every deck is untrusted input somebody may open, paste or receive over# collab, and script in that page owns the collab keys, the plaintextdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex cc77874a..673bb46d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -42,6 +42,13 @@ pre-1.0.the slide number, and an audience following a live broadcast follows thesteps too. A deck opened in an older version shows every element at once.The other half of discussion #282, and the one its author wanted more.+- **Embed element.** A slide can carry an embedded artifact in the shared+ `bento/embed` shape: a static *view* that always paints, in any app and with+ no extra code; an optional source document behind it; and, for a web page,+ an opt-in live frame that loads only while online with offline mode off —+ otherwise the captured view shows. Embedded documents are stripped of+ envelope secrets at the shape gate, and a save keeps an embed's view and+ source (the asset prune learned the new reference form).## [1.0.19] — 2026-09-04diff --git a/scripts/build-modelkeys.mjs b/scripts/build-modelkeys.mjsindex f01262e5..41b9a4ba 100644--- a/scripts/build-modelkeys.mjs+++ b/scripts/build-modelkeys.mjs@@ -90,6 +90,7 @@ const ELEMENTS = {chart: 'ChartElement',table: 'TableElement',media: 'MediaElement',+ embed: 'EmbedElement', // the embed element (model.ts EmbedElement)}const tables = {diff --git a/scripts/test-embed.ts b/scripts/test-embed.tsnew file mode 100644index 00000000..bc3955fa--- /dev/null+++ b/scripts/test-embed.ts@@ -0,0 +1,395 @@+#!/usr/bin/env node+// SPDX-License-Identifier: MIT+// Copyright (c) 2026 The Bento authors+// The `embed` element.+//+// slides/node_modules/.bin/esbuild scripts/test-embed.ts --bundle \+// --platform=node --format=esm --outfile="$TMPDIR/test-embed.mjs" \+// && node --no-warnings "$TMPDIR/test-embed.mjs"+//+// (Bundled, not run directly: clipboard.ts and render.ts import './model'+// extensionless, the same reason test-clipboard.ts is bundled in CI. Source+// paths are therefore resolved from the REPO ROOT.)+//+// WHAT THIS PROVES. An embed is built to upstream's `bento/embed` shape+// (docs/DECISIONS.md, 2026-08-19): a static `view` that always paints, a+// `doc` source, and a live sandboxed iframe that is opt-in. Beta adds+// `app: 'web'` with a `url`. Four things have to hold or the element is a+// liability rather than a feature:+//+// 1. THE FORMAT KNOWS IT. modelkeys.generated.ts carries the embed keys, so+// validate() neither flags them as unknown nor goes quiet on a typo.+// 2. THE VIEW IS UNTRUSTED MARKUP. It is painted through the same sanitiser+// the svg element uses; a <script> inside it never reaches the DOM.+// 3. BOTH KINDS OF OFFLINE SUPPRESS THE FRAME. Bento's offline switch is a+// privacy promise ("nothing leaves this computer"); conference wifi is+// network absence. Different states, same answer: the view shows, no+// iframe is created, and the server sees no request.+// 4. IT ROUND-TRIPS. Paste carries `view` and `url`, mints a new id, and an+// `asset:` view travels with its bytes.+//+// The decision that gates the frame is a pure function (liveFrameAllowed), so+// the node half stubs `navigator.onLine` and the offline switch and inspects+// it directly. The DOM half runs in a real Chrome against the real+// renderSlide, with the frame's url pointing at a throwaway http server on+// 127.0.0.1, so "did anything leave" is answered by a request log. Where there+// is no Chrome it says so loudly and skips, as test-sanitize.ts does.++import { execFileSync, spawn, spawnSync } from 'node:child_process'+import fs from 'node:fs'+import http from 'node:http'+import os from 'node:os'+import path from 'node:path'+import { setOffline } from '../kernel/src/net.ts'+import type { BentoDoc, SlideElement } from '../slides/src/model.ts'+import { newDoc } from '../slides/src/model.ts'+import { MODEL_KEYS } from '../slides/src/modelkeys.generated.ts'+import { validateDoc } from '../slides/src/validate.ts'+import { sanitizeElement } from '../slides/src/untrusted.ts'+import { insertElements, parseClip, serializeElements } from '../slides/src/editor/clipboard.ts'++let failures = 0+let checks = 0+function ok(cond: boolean, msg: string) {+ checks+++ if (!cond) { failures++; console.log(` FAIL ${msg}`) }+ else console.log(` ok ${msg}`)+}++const repoFile = (rel: string): string => {+ const file = path.resolve(rel)+ if (!fs.existsSync(file)) throw new Error(`run this rig from the repo root, ${rel} not found`)+ return file+}++// render.ts is loaded dynamically so a build without the helper still reports+// every other check instead of failing at bundle time on a missing export.+const render = await import('../slides/src/render.ts') as Record<string, unknown>+const liveFrameAllowed = render.liveFrameAllowed as ((el: unknown) => boolean) | undefined++const VIEW = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><rect width="10" height="10"/></svg>'++const embed = (partial: Record<string, unknown> = {}) => ({+ id: 'em1', type: 'embed', x: 0, y: 0, w: 640, h: 360, rotation: 0, opacity: 1,+ app: 'web', view: VIEW, url: 'https://example.com/live', live: true,+ ...partial,+}) as unknown as SlideElement++const deckWith = (el: SlideElement): BentoDoc => {+ const doc = newDoc()+ doc.slides[0].elements = [el]+ return doc+}++const findings = (doc: BentoDoc, code: string) =>+ validateDoc(doc, { measure: false }).findings.filter((f) => f.code === code)++// ------------------------------------------------------------ 1. the format+console.log('\nthe format knows the element')++const embedKeys = (MODEL_KEYS.element as Record<string, readonly string[] | undefined>).embed+ok(!!embedKeys, 'modelkeys.generated.ts carries an `embed` element')+for (const k of ['app', 'view', 'doc', 'url', 'live', 'id', 'x', 'y', 'w', 'h', 'fx', 'themeRefs']) {+ ok(!!embedKeys?.includes(k), `embed key list includes "${k}"`)+}++ok(findings(deckWith(embed({ doc: { rows: [] } })), 'unknown-key').length === 0,+ 'validate() reports no unknown-key for app/view/doc/url/live')+// The discriminating half: an unknown TYPE skips the unknown-key loop+// entirely, so "no unknown-key" alone would pass on a build that has never+// heard of embeds. A bogus key on a known embed must still be reported.+ok(findings(deckWith(embed({ bogus: 1 })), 'unknown-key').some((f) => f.path === 'bogus'),+ 'and a bogus key on an embed IS reported: the element is known, not skipped')++ok(findings(deckWith(embed({ view: '' })), 'embed-missing-view').some((f) => f.severity === 'error'),+ 'a missing view is an error: the element would paint as a hole offline')+ok(findings(deckWith(embed({ view: 'https://example.com/poster.svg' })), 'embed-remote-view')+ .some((f) => f.severity === 'warning'),+ 'a remote view is a warning: it breaks the offline guarantee')+ok(findings(deckWith(embed({ view: 'asset:nope' })), 'missing-asset').some((f) => f.path === 'view'),+ 'an asset: view that is not in doc.assets is a missing-asset error')+ok(findings(deckWith(embed()), 'embed-missing-view').length === 0+ && findings(deckWith(embed()), 'embed-remote-view').length === 0,+ 'an inline svg view is clean')++// --------------------------------------------------------- 2. the intake+console.log('\nthe paste boundary keeps the shape')++const kept = sanitizeElement(embed({ doc: 'asset:src-1' })) as Record<string, unknown> | null+ok(!!kept && kept.type === 'embed', 'sanitizeElement keeps an embed')+ok(kept?.app === 'web' && kept?.view === VIEW && kept?.url === 'https://example.com/live' && kept?.live === true,+ 'and keeps app, view, url and live')+ok(kept?.doc === 'asset:src-1', 'a string doc (asset ref) survives')+ok((sanitizeElement(embed({ doc: { series: [1, 2] } })) as Record<string, unknown> | null)?.doc !== undefined,+ 'a plain-JSON doc survives')+// A source document's envelope never crosses the gate: `collab` (room, read+// key, private halves, saved sync state) and `docId` are another deck's+// secrets and identity, not content. Latent until an intake fills `doc` from+// a real deck — and unfixable afterwards, in a format with no server to+// migrate the decks that already carry them.+{+ const src = { title: 'other deck', slides: [], docId: 'other-id',+ collab: { room: 'w1', key: 'K', ownerPriv: 'P', writerPriv: 'P', invite: { pub: 'i', priv: 'P', role: 'writer', sig: 's' }, sync: { v: 2 } } }+ const out = (sanitizeElement(embed({ doc: src })) as Record<string, unknown> | null)?.doc as Record<string, unknown> | undefined+ ok(!!out && out.title === 'other deck', 'an embedded document keeps its content')+ ok(!!out && !('collab' in out) && !('docId' in out), 'and leaves the gate without its collab block or docId')+ ok(!JSON.stringify(out).includes('"P"'), 'no private half survives anywhere in it')+ ok('collab' in src, 'the caller\'s object is untouched (the gate copies)')+}+ok((sanitizeElement(embed({ url: 'javascript:alert(1)' })) as Record<string, unknown> | null)?.url === undefined,+ 'a javascript: url is dropped')+ok((sanitizeElement(embed({ live: 'yes' })) as Record<string, unknown> | null)?.live === undefined,+ 'a non-boolean live is dropped')++// -------------------------------------------------------- 3. copy / paste+console.log('\ncopy and paste round-trips')+{+ const source = newDoc()+ source.assets = { 'view-1': VIEW }+ const el = embed({ view: 'asset:view-1' })+ source.slides[0].elements = [el]+ const clip = parseClip(serializeElements([el], source))+ ok(!!clip?.elements?.length, 'a serialized embed parses back as a clip')+ ok(clip?.assets?.['view-1'] === VIEW, 'the asset: view travels with its bytes')++ const target = newDoc()+ target.assets = { 'view-1': '<svg xmlns="http://www.w3.org/2000/svg"><circle r="1"/></svg>' }+ const pasted = clip ? insertElements(clip, target, target.slides[0]) : []+ const p = pasted[0] as unknown as Record<string, unknown> | undefined+ ok(!!p && p.type === 'embed', 'insertElements pastes an embed')+ ok(p?.id !== 'em1' && typeof p?.id === 'string' && p.id.startsWith('e'), 'with a freshly minted id')+ ok(p?.url === 'https://example.com/live' && p?.live === true && p?.app === 'web', 'carrying url, live and app')+ ok(typeof p?.view === 'string' && (p.view as string).startsWith('asset:') && p.view !== 'asset:view-1'+ && target.assets?.[(p?.view as string).slice(6)] === VIEW,+ 'and a colliding asset key is remapped so the pasted view keeps ITS picture')+}++// ------------------------------------------------- 4. the frame decision+console.log('\nthe live frame decision')++const nav = (onLine: boolean) =>+ Object.defineProperty(globalThis, 'navigator', { value: { onLine }, configurable: true, writable: true })++ok(typeof liveFrameAllowed === 'function', 'render.ts exports liveFrameAllowed')+if (liveFrameAllowed) {+ setOffline(false)+ nav(true)+ ok(liveFrameAllowed(embed()), 'online, switch off, app web, https url, live: a frame is allowed')+ ok(!liveFrameAllowed(embed({ live: false })), 'live:false: no frame')+ ok(!liveFrameAllowed(embed({ live: undefined })), 'live absent: no frame (opt-in, never the default)')+ ok(!liveFrameAllowed(embed({ app: 'bento/dash' })), 'an app other than web: no frame (only web has a url)')+ ok(!liveFrameAllowed(embed({ url: undefined })), 'no url: no frame')+ ok(!liveFrameAllowed(embed({ url: 'javascript:alert(1)' })), 'a javascript: url, no frame')+ ok(!liveFrameAllowed(embed({ url: 'data:text/html,hi' })), 'a data: url, no frame')+ nav(false)+ ok(!liveFrameAllowed(embed()), 'AE2: navigator.onLine false, no frame, whatever the switch says')+ nav(true)+ setOffline(true)+ ok(!liveFrameAllowed(embed()), 'the offline switch on: no frame, even with a network')+ setOffline(false)+ ok(liveFrameAllowed(embed()), 'switch back off: the frame is allowed again')+ Object.defineProperty(globalThis, 'navigator', { value: undefined, configurable: true, writable: true })+ ok(liveFrameAllowed(embed()), 'no navigator at all (a headless render) counts as online')+}++// --------------------------------------------------------- 5. in a browser+//+// The DOM half. Written without backticks or a dollar-brace so it can live+// in a template literal; every regex backslash is doubled for the same reason+// (test-sanitize.ts learned both the hard way).++const CHROME = [+ process.env.BENTO_CHROME,+ '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',+ '/Applications/Chromium.app/Contents/MacOS/Chromium',+ '/usr/bin/google-chrome',+ '/usr/bin/google-chrome-stable',+ '/usr/bin/chromium',+ '/usr/bin/chromium-browser',+].find((p): p is string => !!p && fs.existsSync(p))+ ?? (spawnSync('which', ['google-chrome']).status === 0 ? 'google-chrome' : undefined)++const probeSource = (renderPath: string, modelPath: string, netPath: string) => `+import { renderSlide } from ${JSON.stringify(renderPath)}+import { newDoc } from ${JSON.stringify(modelPath)}+import { setOffline } from ${JSON.stringify(netPath)}++const O = location.origin+const results: Array<[string, boolean]> = []+const check = (name: string, pass: boolean) => { results.push([name, pass]) }+const VIEW = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><rect id="pic" width="10" height="10"/></svg>'++/** The shipping path: model → renderSlide → renderElement. */+function draw(partial: Record<string, unknown>, opts?: Record<string, unknown>): HTMLElement {+ const doc = newDoc()+ const slide = doc.slides[0]+ slide.elements = [{+ id: 'em1', type: 'embed', x: 0, y: 0, w: 320, h: 180, rotation: 0, opacity: 1,+ app: 'web', view: VIEW, live: true, ...partial,+ } as any]+ const surface = renderSlide(slide, doc, opts)+ document.body.appendChild(surface)+ return surface+}+const setOnLine = (v: boolean) =>+ Object.defineProperty(navigator, 'onLine', { get: () => v, configurable: true })++try {+ setOffline(false)+ setOnLine(true)++ // 1. the view is untrusted markup+ const hostile = draw({ live: false,+ view: '<svg viewBox="0 0 20 20"><rect id="pic" width="10" height="10"/><scr' + 'ipt>window.__pwn=1</scr' + 'ipt><rect onload="window.__pwn=2" width="1" height="1"/></svg>' })+ check('a <script> inside view is stripped, and the picture beside it is kept',+ hostile.querySelectorAll('script').length === 0 && !!hostile.querySelector('svg rect#pic')+ && !hostile.querySelector('[onload]') && !(window as any).__pwn)++ // 2. live, online, switch off: a sandboxed frame over the view+ const live = draw({ url: O + '/frame-online.html' }, { liveMedia: true })+ const frame = live.querySelector('iframe')+ check('online with the switch off: an iframe exists', !!frame)+ check('its src is the url', frame?.getAttribute('src') === O + '/frame-online.html')+ const sandbox = frame?.getAttribute('sandbox') ?? null+ check('it carries a sandbox attribute', sandbox !== null)+ check('and the sandbox lacks allow-same-origin', sandbox !== null && !/allow-same-origin/.test(sandbox)+ && !/allow-top-navigation/.test(sandbox))+ check('the view is still present under the frame', !!live.querySelector('svg rect#pic'))++ // 3. the frame fails: the handler removes it and the view shows+ frame?.dispatchEvent(new Event('error'))+ check('after error the frame is gone and the view remains',+ !live.querySelector('iframe') && !!live.querySelector('svg rect#pic'))++ // 4. AE2: no network+ setOnLine(false)+ const noNet = draw({ url: O + '/frame-offline.html' }, { liveMedia: true })+ check('navigator.onLine false: no iframe, view present',+ !noNet.querySelector('iframe') && !!noNet.querySelector('svg rect#pic'))+ setOnLine(true)++ // 5. the privacy switch, with a network+ setOffline(true)+ const switched = draw({ url: O + '/frame-switch.html' }, { liveMedia: true })+ check('offline switch on, network up: no iframe, view present',+ !switched.querySelector('iframe') && !!switched.querySelector('svg rect#pic'))+ setOffline(false)++ // 5b. the editor canvas (no liveMedia) never creates a frame: it re-renders+ // on every edit, and a frame there would re-navigate each time+ const canvas = draw({ url: O + '/frame-canvas.html' })+ check('a plain renderSlide (editor canvas) has no iframe and shows the view',+ !canvas.querySelector('iframe') && !!canvas.querySelector('svg rect#pic'))++ // 6. thumbnails never carry a frame+ const thumb = draw({ url: O + '/frame-thumb.html' }, { svgAsImage: true })+ check('a thumbnail render has no iframe and an inert <img> view',+ !thumb.querySelector('iframe') && !!thumb.querySelector('img'))++ // 7. an unknown app still paints its view: rendered, not rejected+ const foreign = draw({ app: 'bento/whatever', live: false })+ check('an unknown app renders its view', !!foreign.querySelector('svg rect#pic') && !foreign.querySelector('iframe'))++ // 8. no view at all: a placeholder, never an empty box+ const empty = draw({ view: '', live: false })+ check('an empty view shows a placeholder', (empty.textContent ?? '').trim().length > 0)+} catch (err) {+ check('the probe ran to the end (it threw: ' + String(err) + ')', false)+}++setTimeout(() => {+ const pre = document.createElement('pre')+ pre.id = 'bento-results'+ const utf8 = new TextEncoder().encode(JSON.stringify(results))+ pre.textContent = 'BENTO-RESULTS:' + btoa(String.fromCharCode(...utf8)) + ':END'+ document.body.appendChild(pre)+}, 400)+`++async function runBrowserSection(chrome: string) {+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'bento-embed-'))+ const entry = path.join(tmp, 'probe.ts')+ fs.writeFileSync(entry, probeSource(+ repoFile('slides/src/render.ts'), repoFile('slides/src/model.ts'), repoFile('kernel/src/net.ts')))+ execFileSync(repoFile('slides/node_modules/.bin/esbuild'), [+ entry, '--bundle', '--format=esm', '--outfile=' + path.join(tmp, 'probe.js'),+ ], { stdio: 'pipe' })+ const bundle = fs.readFileSync(path.join(tmp, 'probe.js'), 'utf8')++ // Written by concatenation: never a literal script-close in a source file+ // (AGENTS.md #1). The trailing <img> is a LOAD GATE: --dump-dom fires at the+ // load event, the server answers /slow.gif late, and the probe's timer lands+ // first.+ const page =+ '<!doctype html><meta charset="utf-8"><title>bento embed probe</title>' ++ '<body>BENTO-PROBE' ++ '<scr' + 'ipt type="module" src="/probe.js"></scr' + 'ipt>' ++ '<img src="/slow.gif" width="1" height="1" alt=""></body>'++ const hits: string[] = []+ const server = http.createServer((req, res) => {+ const url = (req.url ?? '/').split('?')[0]+ hits.push(url)+ if (url === '/probe.js') { res.writeHead(200, { 'content-type': 'text/javascript' }); res.end(bundle); return }+ if (url === '/probe.html') { res.writeHead(200, { 'content-type': 'text/html' }); res.end(page); return }+ if (url.startsWith('/frame-')) { res.writeHead(200, { 'content-type': 'text/html' }); res.end('<!doctype html>frame'); return }+ const gif = () => {+ res.writeHead(200, { 'content-type': 'image/gif' })+ res.end(Buffer.from('R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==', 'base64'))+ }+ if (url === '/slow.gif') { setTimeout(gif, 1500); return }+ gif()+ })+ await new Promise<void>((resolve) => server.listen(0, '127.0.0.1', resolve))+ const port = (server.address() as { port: number }).port++ // spawn, never spawnSync: the server lives in THIS process.+ const load = (route: string) => new Promise<string>((resolve) => {+ const child = spawn(chrome, [+ '--headless=new', '--disable-gpu', '--no-sandbox', '--no-first-run',+ '--no-default-browser-check', '--disable-background-networking',+ '--disable-component-update', '--disable-sync', '--disable-default-apps',+ '--user-data-dir=' + path.join(tmp, 'profile'),+ '--virtual-time-budget=4000', '--dump-dom',+ `http://127.0.0.1:${port}${route}`,+ ], { stdio: ['ignore', 'pipe', 'ignore'] })+ let dom = ''+ child.stdout.on('data', (b: Buffer) => { dom += b.toString('utf8') })+ const done = setTimeout(() => child.kill('SIGKILL'), 45_000)+ child.on('close', () => { clearTimeout(done); resolve(dom) })+ })++ try {+ const dom = await load('/probe.html')+ const blob = /BENTO-RESULTS:([A-Za-z0-9+/=]+):END/.exec(dom)+ if (!blob) {+ const dumped = path.join(os.tmpdir(), 'bento-embed-dump.html')+ fs.writeFileSync(dumped, dom)+ ok(false, `the browser probe reported results (it did not; dumped DOM in ${dumped})`)+ } else {+ for (const [name, pass] of JSON.parse(Buffer.from(blob[1], 'base64').toString('utf8')) as Array<[string, boolean]>) {+ ok(pass, name)+ }+ }+ // The request log is the proof that matters: not "no iframe in the DOM"+ // but "nothing left the machine".+ ok(hits.includes('/frame-online.html'), 'the allowed frame was actually requested')+ ok(!hits.includes('/frame-offline.html'), 'AE2: nothing was requested with navigator.onLine false')+ ok(!hits.includes('/frame-switch.html'), 'nothing was requested with the offline switch on')+ ok(!hits.includes('/frame-thumb.html'), 'nothing was requested for a thumbnail')+ } finally {+ server.close()+ fs.rmSync(tmp, { recursive: true, force: true })+ }+}++console.log('\nthe element, in a browser')+if (!CHROME) {+ console.log(' ⚠ SKIPPED, no Chrome found. Set BENTO_CHROME to a binary to run this section;')+ console.log(' it is the only half that can prove the frame is not created.')+} else {+ await runBrowserSection(CHROME)+}++console.log(`\n${checks - failures}/${checks} checks passed`)+if (failures) process.exit(1)diff --git a/scripts/test-export-secrets.ts b/scripts/test-export-secrets.tsindex 0a7e988f..9f6d2865 100644--- a/scripts/test-export-secrets.ts+++ b/scripts/test-export-secrets.ts@@ -178,6 +178,51 @@ for (const f of privateFields) {ok(/delete doc\.collab\b(?!\.)/.test(stripper),'stripCollabSecrets drops the whole block by default — the room key is a capability too')+// The other place a collab block can live: INSIDE an element. An embed's `doc`+// is another deck's JSON, and a deck's envelope carries its secrets. Nothing+// above walks elements, so this rig was blind to it. One rule at both+// boundaries (slides/src/envelope.ts): the shape gate applies it to pasted+// content on the way IN, stripCollabSecrets applies it to every copy on the+// way OUT — and both are RUN here, not grepped, so killing the behaviour while+// keeping the text goes red. (The gate itself needs a bundler to import; its+// call into the shared rule is pinned by name, and test-embed.ts runs it.)+{+ const { stripEnvelope, stripEmbeddedEnvelopes, EMBED_ENVELOPE } = await import('../slides/src/envelope.ts')+ const SECRETS = { ownerPriv: 'OWNER-PRIV', writerPriv: 'WRITER-PRIV', key: 'ROOM-KEY', room: 'ROOM-ID',+ invite: { pub: 'i', priv: 'INVITE-PRIV', role: 'writer', sig: 's' }, sync: { v: 2 } }+ const embedded = () => ({ title: 'inner deck', slides: [{ id: 'x' }], docId: 'INNER-DOCID', collab: JSON.parse(JSON.stringify(SECRETS)) })+ const leaks = (o: unknown) => ['OWNER-PRIV', 'WRITER-PRIV', 'INVITE-PRIV', 'ROOM-KEY', 'ROOM-ID', 'INNER-DOCID']+ .filter((needle) => JSON.stringify(o).includes(needle))++ ok(EMBED_ENVELOPE.includes('collab') && EMBED_ENVELOPE.includes('docId'), 'the envelope is collab + docId')+ const one = stripEnvelope(embedded())+ ok(leaks(one).length === 0 && (one as { title?: string }).title === 'inner deck',+ 'stripEnvelope: content kept, all six secrets gone')+ const plain = { title: 'no envelope' }+ ok(stripEnvelope(plain) === plain, 'stripEnvelope: an object with no envelope is returned as-is')++ const deck = {+ format: 'bento/slides', version: 1, docId: 'outer', title: 'outer',+ slides: [+ { id: 's1', elements: [{ id: 'e1', type: 'embed', x: 0, y: 0, w: 1, h: 1, app: 'web', doc: embedded() }] },+ { id: 's2', elements: [{ id: 'e2', type: 'embed', x: 0, y: 0, w: 1, h: 1, app: 'x', doc: 'asset:v' }] },+ ],+ layouts: [{ id: 'l1', elements: [{ id: 'e3', type: 'embed', x: 0, y: 0, w: 1, h: 1, app: 'x', doc: embedded() }] }],+ }+ const n = stripEmbeddedEnvelopes(deck as never)+ ok(n === 2, `stripEmbeddedEnvelopes walks slides AND layouts (${n} stripped)`)+ ok(leaks(deck).length === 0, 'end to end: a deck carrying an embedded envelope exports none of its six secrets')+ ok((deck.slides[0].elements[0] as { doc: { title: string } }).doc.title === 'inner deck', 'and the embedded content survives')+ ok(deck.slides[1].elements[0].doc === 'asset:v', 'an asset-ref source is untouched')++ // both boundaries call the shared rule — the gate cannot be run here, so its+ // call is pinned by name; the export strip is pinned by name AND run above+ ok(/const embedDoc[^\n]*stripEnvelope\(/.test(read('slides/src/untrusted.ts')),+ 'the shape gate (embedDoc) strips through the same rule')+ ok(/stripEmbeddedEnvelopes\(doc\)/.test(stripper) && stripper.indexOf('stripEmbeddedEnvelopes') < stripper.indexOf('if (!doc.collab)'),+ 'stripCollabSecrets walks embedded documents FIRST — before the early return for a copy with no collab of its own')+}+// --- 2. no export carries the session ---------------------------------------console.log('\nexports')diff --git a/scripts/test-sanitize.ts b/scripts/test-sanitize.tsindex 337b6797..6364f2b2 100644--- a/scripts/test-sanitize.ts+++ b/scripts/test-sanitize.ts@@ -322,6 +322,19 @@ function draw(markup: string, css?: string): HTMLElement {return surface}+/** The same path for an embed element's view. */+function drawEmbed(view: string): HTMLElement {+ const doc = newDoc()+ const slide = doc.slides[0]+ slide.elements = [{+ id: 'em1', type: 'embed', x: 0, y: 0, w: 200, h: 200,+ rotation: 0, opacity: 1, app: 'web', view,+ } as any]+ const surface = renderSlide(slide, doc)+ document.body.appendChild(surface)+ return surface+}+if (location.pathname === '/meta.html') {// Finding 2, the live half: if the meta survives the walk, Chrome navigates// this document to /pwned.html and the dumped DOM is somebody else's page.@@ -536,6 +549,18 @@ if (location.pathname === '/meta.html') {check('an unclosed tag still draws — text/html, not the fatal xml parser',!!sloppy.querySelector('svg') && !!sloppy.querySelector('circle'))+ // The embed element's view is the same kind of author markup+ // and goes through the same walk. Its whole purpose is to carry markup+ // someone else produced, which makes it the most attractive place in the+ // format to hide a script. (No backticks in this comment: it lives inside+ // probeSource's template literal.)+ const embedded = drawEmbed('<svg viewBox="0 0 20 20"><rect id="ev" width="10" height="10"/>' ++ '<scr' + 'ipt>window.__pwn(91)</scr' + 'ipt><rect onload="window.__pwn(92)" width="1" height="1"/>' ++ '<image href="' + O + '/embed-view.png" width="1" height="1"/></svg>')+ check('9 — an embed view drops its <script> and on* handler and keeps the picture',+ embedded.querySelectorAll('script').length === 0 && !embedded.querySelector('[onload]') &&+ !!embedded.querySelector('.bento-el-embed svg rect#ev'))+// Give every payload its chance: insertion alone is not the only trigger.// Measured on the pre-sanitizer build, where the difference showed: a// form-driven javascript: needs the submit button CLICKED, and an@@ -668,6 +693,7 @@ async function runBrowserSection(chrome: string) {ok(!hits.includes('/xlink.svg'), '7 — nor an xlink:href <use> pointing out of the document')ok(hits.includes('/remote.png'), 'an <image href="http(s)://…"> still loads — that one is allowed on purpose')ok(hits.includes('/xlink-remote.png'), 'and so does the xlink:href spelling of it — the policy is not a ban on pictures')+ ok(hits.includes('/embed-view.png'), '9 — an embed view is held to the svg policy, no stricter: its <image> loads too')} finally {server.close()fs.rmSync(tmp, { recursive: true, force: true })diff --git a/scripts/test-slides-assets.ts b/scripts/test-slides-assets.tsindex b0bc78be..f91a0de7 100644--- a/scripts/test-slides-assets.ts+++ b/scripts/test-slides-assets.ts@@ -44,12 +44,16 @@ console.log('every reference form keeps its asset')assets: {'img': PNG, 'poster': PNG, 'vid': PNG, 'svg': '<svg/>','gram': '{}', 'thm': '{}', 'font': PNG, 'layout-img': PNG,+ 'embed-view': '<svg/>', 'embed-doc': '{"rows":[]}',},slides: [{ id: 's1', elements: [el({ id: 'i', type: 'image', src: 'asset:img' }),el({ id: 'm', type: 'media', kind: 'video', src: 'asset:vid', poster: 'asset:poster' }),el({ id: 'v', type: 'svg', asset: 'svg' }),el({ id: 'c', type: 'code', grammarAssetId: 'gram', themeAssetId: 'thm' }),+ // an embed's view and source are both interned by "Capture view…", so a+ // prune that did not know this element would empty every embed on save+ el({ id: 'e', type: 'embed', app: 'bento/dash', view: 'asset:embed-view', doc: 'asset:embed-doc' }),] } as never],layouts: [{ id: 'L', elements: [el({ id: 'li', type: 'image', src: 'asset:layout-img' })] } as never],fonts: [{ family: 'F', asset: 'font' }],@@ -57,10 +61,14 @@ console.log('every reference form keeps its asset')const out = pruneUnusedAssets(d)ok(out === d, 'nothing to drop → the SAME object comes back (no copy, no allocation)')const used = referencedAssetKeys(d)- for (const k of ['img', 'poster', 'vid', 'svg', 'gram', 'thm', 'font', 'layout-img']) {+ for (const k of ['img', 'poster', 'vid', 'svg', 'gram', 'thm', 'font', 'layout-img', 'embed-view', 'embed-doc']) {ok(used.has(k), `referenced: ${k}`)}- ok(used.size === 8, `exactly the eight referenced keys, no strays (got ${used.size})`)+ ok(used.size === 10, `exactly the ten referenced keys, no strays (got ${used.size})`)+ // an embed whose view and doc are INLINE names no asset at all+ const inline = doc({ assets: { orphan: PNG }, slides: [{ id: 's', elements: [+ el({ id: 'e', type: 'embed', app: 'web', view: '<svg/>', doc: { rows: [] } }) ] } as never] })+ ok(pruneUnusedAssets(inline).assets === undefined, 'an inline embed references nothing; the orphan goes')}console.log('\nthe report: delete everything, save, and the deck is empty for real')diff --git a/slides/src/assets.ts b/slides/src/assets.tsindex 9fca372b..303cc39f 100644--- a/slides/src/assets.ts+++ b/slides/src/assets.ts@@ -32,6 +32,13 @@ export function referencedAssetKeys(doc: BentoDoc): Set<string> {case 'media': prefixed(el.src); prefixed(el.poster); breakcase 'svg': bare(el.asset); breakcase 'code': bare(el.grammarAssetId); bare(el.themeAssetId); break+ // Both may be inline (svg markup / a JSON object) or an asset ref;+ // only the ref form names an asset, and `prefixed` already ignores+ // anything that does not start with "asset:".+ case 'embed':+ prefixed(el.view)+ if (typeof el.doc === 'string') prefixed(el.doc)+ break}}}diff --git a/slides/src/editor/clipboard.ts b/slides/src/editor/clipboard.tsindex e477eb91..18bac45f 100644--- a/slides/src/editor/clipboard.ts+++ b/slides/src/editor/clipboard.ts@@ -35,6 +35,9 @@ function assetKeysOf(els: SlideElement[]): Set<string> {if ((el.type === 'image' || el.type === 'media') && typeof el.src === 'string' && el.src.startsWith('asset:')) keys.add(el.src.slice(6))const a = (el as { asset?: string }).assetif (typeof a === 'string') keys.add(a) // svg elements reference an asset key+ // embed: the view may live in doc.assets, and a paste that+ // kept the reference and lost the picture would paint a hole+ if (el.type === 'embed' && typeof el.view === 'string' && el.view.startsWith('asset:')) keys.add(el.view.slice(6))}return keys}@@ -159,6 +162,9 @@ function rewriteRefs(els: SlideElement[], remap: Map<string, string>) {}const a = (el as { asset?: string }).assetif (typeof a === 'string' && remap.has(a)) (el as { asset?: string }).asset = remap.get(a)+ if (el.type === 'embed' && typeof el.view === 'string' && el.view.startsWith('asset:')) {+ const k = el.view.slice(6); if (remap.has(k)) el.view = 'asset:' + remap.get(k)+ }}}diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.tsindex e18a7039..afae3337 100644--- a/slides/src/editor/editor.ts+++ b/slides/src/editor/editor.ts@@ -37,6 +37,7 @@ import { injectFonts } from '../fonts'import { appConfig } from '../../../kernel/src/app.ts'import { disconnectOnline, joinFromDoc, mintCollab, mintInvite, mintRoomKey, onlineTransport, rotateKeys, sharingOn, startSharing, stopSharing } from '../sync/online'import { projectDoc, projectOp, type AudienceTicket } from '../audience'+import { stripEmbeddedEnvelopes } from '../envelope'import { lsGet, lsJson, lsSet } from '../../../kernel/src/storage.ts'const i18nT = t@@ -3590,6 +3591,12 @@ function releaseNotes(notes: string): HTMLElement {* symmetric read key and the public keys, and lose only the private halves.*/function stripCollabSecrets(doc: import('../model').BentoDoc, opts: { keepRoom?: boolean } = {}) {+ // Embedded documents first, whether or not this copy keeps a session of+ // its own: an embed's `doc` is another deck's JSON and carries that deck's+ // envelope (collab + docId) if the file was authored with it in place. The+ // shape gate strips it on the way IN for pasted content; this strips it on+ // the way OUT for every copy — the same rule (envelope.ts).+ stripEmbeddedEnvelopes(doc)if (!doc.collab) returnif (!opts.keepRoom) {delete doc.collabdiff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.tsindex 42a76649..eec7633c 100644--- a/slides/src/editor/panels.ts+++ b/slides/src/editor/panels.ts@@ -5,7 +5,7 @@// into a single undo checkpoint.import type { Store } from '../store'-import { MEDIA_EMBED_BUDGET, applyChartPalette, defaultChart, internAsset, morphKey, paginates, tableStyleFor, uid, type ChartElement, type LineEnding, type MediaElement, type ShapeElement, type Slide, type SlideElement, type TableElement, type TextElement, type TransitionKind, type CodeElement } from '../model'+import { MEDIA_EMBED_BUDGET, applyChartPalette, defaultChart, internAsset, morphKey, paginates, tableStyleFor, uid, type ChartElement, type LineEnding, type MediaElement, type ShapeElement, type Slide, type SlideElement, type TableElement, type TextElement, type TransitionKind, type CodeElement, type BentoDoc, type EmbedElement } from '../model'import { LANGS } from '../../../kernel/src/tokenize.ts'import { resolveAsset } from '../render'import { measureElement } from '../measure'@@ -91,9 +91,29 @@ const ROW_TIPS: Record<string, string> = {'Fit': 'How the media fills its box — cover crops to fill, contain letterboxes','URL': 'Link a hosted file instead of embedding — keeps the deck small','Poster': 'Preview image shown before the video plays',+ 'Page URL': 'The web page the live frame loads while online (http or https)',+ 'Live': 'Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.','State of': 'Makes this slide a hidden state of another — reached by clicked links, skipped by arrow keys',}+/** An embed view from a raster: one <svg> around a data:image, sized to the+ * element so it fills the box the way `fit: cover` would. */+function rasterView(dataUri: string, w: number, h: number): string {+ const vw = Math.max(1, Math.round(w)), vh = Math.max(1, Math.round(h))+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${vw} ${vh}">`+ + `<image href="${dataUri.replace(/"/g, '')}" width="${vw}" height="${vh}" preserveAspectRatio="xMidYMid slice"/></svg>`+}++/** internAsset for raw svg markup: identical markup reuses its key. Callers+ * run inside a store.commit for the same reason internAsset's do. */+function internView(doc: BentoDoc, markup: string): string {+ const assets = (doc.assets ??= {})+ for (const k in assets) if (assets[k] === markup) return `asset:${k}`+ const key = uid('a')+ assets[key] = markup+ return `asset:${key}`+}+/*** Fill-style options: the stored model words are 'solid'/'gradient', only the* LABEL is localised. 'solid' here is a solid COLOUR, which in many languages@@ -454,7 +474,7 @@ export class PropsPanel {}private buildElementPanel(el: SlideElement) {- this.section(t({ text: 'Text', shape: 'Shape', image: 'Image', svg: 'Diagram', chart: 'Chart', table: 'Table', code: 'Code', media: el.type === 'media' && el.kind === 'audio' ? 'Audio' : 'Video' }[el.type]))+ this.section(t({ text: 'Text', shape: 'Shape', image: 'Image', svg: 'Diagram', chart: 'Chart', table: 'Table', code: 'Code', media: el.type === 'media' && el.kind === 'audio' ? 'Audio' : 'Video', embed: 'Embed' }[el.type]))this.opsRow([el])// Lead with the element's OWN controls — the reason it was selected —@@ -466,6 +486,7 @@ export class PropsPanel {if (el.type === 'table') this.buildTableProps(el)if (el.type === 'media') this.buildMediaProps(el)if (el.type === 'code') this.buildCodeProps(el)+ if (el.type === 'embed') this.buildEmbedProps(el)this.section(t('Position & size'))const geo = document.createElement('div')@@ -1779,6 +1800,80 @@ export class PropsPanel {}}+ /**+ * The `embed` element (model.ts EmbedElement). The view is the+ * tier that always paints; "Capture view" fills it from a picture the+ * author already has. It cannot be read off the live frame: the frame is+ * sandboxed without same-origin, so its pixels are not ours to take, and+ * that boundary is the point of the sandbox. A screenshot file is.+ */+ private buildEmbedProps(el: EmbedElement) {+ this.section(t('Web page'))++ const status = document.createElement('p')+ status.className = 'ed-hint'+ const view = (el.view ?? '').trim()+ if (!view) status.textContent = t('No view yet. Capture a picture of the page so it shows offline.')+ else if (view.startsWith('<') || view.startsWith('asset:')) status.textContent = t('View embedded in the file')+ else status.textContent = t('View is a link. It needs the network and shows nothing offline.')+ this.host.appendChild(status)++ const capture = document.createElement('button')+ capture.className = 'ed-btn ed-btn-block'+ capture.textContent = view ? t('Replace view…') : t('Capture view…')+ capture.addEventListener('click', () => {+ const input = document.createElement('input')+ input.type = 'file'+ input.accept = 'image/svg+xml,image/png,image/jpeg,image/webp,image/gif'+ input.addEventListener('change', () => {+ const file = input.files?.[0]+ if (!file) return+ const reader = new FileReader()+ const svg = file.type === 'image/svg+xml'+ reader.onload = () => this.mutate(el.id, (e) => {+ // an svg is the view as-is; a raster is wrapped so the view stays+ // one svg the sanitizer knows how to read (a data:image href is+ // on its allowlist). Interned, never inline: only doc.assets+ // entries reach the live-collab blob offload.+ const markup = svg ? String(reader.result) : rasterView(String(reader.result), e.w, e.h)+ ;(e as EmbedElement).view = internView(this.store.doc, markup)+ }, true)+ if (svg) reader.readAsText(file); else reader.readAsDataURL(file)+ })+ input.click()+ })+ this.host.appendChild(capture)++ // Labels stay RAW English: row() translates them and looks its tooltip+ // up by the English label (see buildMediaProps).+ const url = document.createElement('input')+ url.type = 'text'+ url.placeholder = 'https://'+ url.value = el.url ?? ''+ url.addEventListener('change', () =>+ this.mutate(el.id, (e) => {+ const m = e as EmbedElement+ const v = url.value.trim()+ if (v) m.url = v; else delete m.url+ }, true))+ this.row('Page URL', url)++ this.row('Live', this.select(['off', 'on'], el.live ? 'on' : 'off', (v) =>+ this.mutate(el.id, (e) => { (e as EmbedElement).live = v === 'on' || undefined }, true)))+ const note = document.createElement('p')+ note.className = 'ed-hint'+ note.textContent = t('The live frame loads only while online. Offline mode and a missing network show the captured view instead.')+ this.host.appendChild(note)+ // Two things a presenter finds out on stage otherwise: a focused frame+ // keeps the arrow keys until they click outside it, and a live frame means+ // every viewer who presents this deck requests the page from its author —+ // the same trade a linked media src makes, said here so it is a choice.+ const trade = document.createElement('p')+ trade.className = 'ed-hint'+ trade.textContent = t('While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.')+ this.host.appendChild(trade)+ }+private buildCodeProps(el: CodeElement) {this.section(t('Source Code'))const status = document.createElement('p')diff --git a/slides/src/envelope.ts b/slides/src/envelope.tsnew file mode 100644index 00000000..5649bf89--- /dev/null+++ b/slides/src/envelope.ts@@ -0,0 +1,52 @@+// SPDX-License-Identifier: MIT+// Copyright (c) 2026 The Bento authors+/**+ * A document's ENVELOPE is what makes it a document rather than content: its+ * collaboration block (`collab` — room, read key, private halves, the saved+ * sync state) and its identity (`docId`). An embed's `doc` is another deck's+ * JSON, and that deck's envelope must never ride inside this one — not on the+ * way in (the shape gate, untrusted.ts) and not on the way out (every export+ * that keeps the room, editor.ts stripCollabSecrets). One rule, both+ * boundaries, so they cannot drift; the export-secrets rig runs both.+ *+ * Node-importable on purpose (type-only imports): the rig drives it directly,+ * where the shape gate's module graph needs a bundler.+ */+import type { BentoDoc } from './model'++/** The keys that make a JSON object a document's envelope. */+export const EMBED_ENVELOPE = ['collab', 'docId'] as const++const isObj = (v: unknown): v is Record<string, unknown> =>+ typeof v === 'object' && v !== null && !Array.isArray(v)++/** The same object without its envelope — a copy when there is something to+ * drop, the input itself when there is not (callers may compare by identity). */+export function stripEnvelope<T>(v: T): T {+ if (!isObj(v) || !EMBED_ENVELOPE.some((k) => k in v)) return v+ const copy = { ...v }+ for (const k of EMBED_ENVELOPE) delete copy[k]+ return copy as T+}++/**+ * Walk a deck's elements and strip the envelope from every embedded document+ * (`elements[].doc` when it is an object). Mutates `doc` — it is called on+ * export CLONES, beside the top-level strip. Returns how many were stripped.+ */+export function stripEmbeddedEnvelopes(doc: BentoDoc): number {+ let n = 0+ const walk = (slides: BentoDoc['slides'] | undefined) => {+ for (const s of slides ?? []) {+ for (const el of s.elements ?? []) {+ const src = (el as { doc?: unknown }).doc+ if (!isObj(src)) continue+ const out = stripEnvelope(src)+ if (out !== src) { (el as { doc?: unknown }).doc = out; n++ }+ }+ }+ }+ walk(doc.slides)+ walk(doc.layouts)+ return n+}diff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.tsindex cd951d44..e2b375cc 100644--- a/slides/src/i18n/de.ts+++ b/slides/src/i18n/de.ts@@ -811,4 +811,16 @@ export const de: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Beim Klick animieren: bis zum n-ten → auf dieser Folie verborgen (0 = mit der Folie sichtbar)","hidden": "ausgeblendet","unnumbered": "ohne Nummer",+ "Embed": "Einbettung",+ "Web page": "Webseite",+ "No view yet. Capture a picture of the page so it shows offline.": "Noch keine Ansicht. Erfassen Sie ein Bild der Seite, damit sie offline angezeigt wird.",+ "View embedded in the file": "Ansicht in der Datei eingebettet",+ "View is a link. It needs the network and shows nothing offline.": "Die Ansicht ist ein Link. Sie braucht das Netzwerk und zeigt offline nichts an.",+ "Replace view…": "Ansicht ersetzen…",+ "Capture view…": "Ansicht erfassen…",+ "Page URL": "Seiten-URL",+ "The web page the live frame loads while online (http or https)": "Die Webseite, die der Live-Rahmen online lädt (http oder https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Lädt die Seite online in einem isolierten Rahmen. Offline oder bei aktiviertem Offline-Modus wird stattdessen die erfasste Ansicht angezeigt.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Der Live-Rahmen lädt nur online. Offline-Modus und fehlendes Netzwerk zeigen stattdessen die erfasste Ansicht.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Beim Präsentieren behält ein angeklickter Rahmen die Pfeiltasten, bis Sie außerhalb klicken. Jede Person, die dieses Deck präsentiert, lädt die Seite von deren Website.",}diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.tsindex ea033dab..1afbe12e 100644--- a/slides/src/i18n/es.ts+++ b/slides/src/i18n/es.ts@@ -811,4 +811,16 @@ export const es: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animar al hacer clic: oculto hasta la n-ésima → en esta diapositiva (0 = visible con la diapositiva)","hidden": "oculta","unnumbered": "sin número",+ "Embed": "Incrustación",+ "Web page": "Página web",+ "No view yet. Capture a picture of the page so it shows offline.": "Aún no hay vista. Capture una imagen de la página para que se muestre sin conexión.",+ "View embedded in the file": "Vista incrustada en el archivo",+ "View is a link. It needs the network and shows nothing offline.": "La vista es un enlace. Necesita red y no muestra nada sin conexión.",+ "Replace view…": "Reemplazar vista…",+ "Capture view…": "Capturar vista…",+ "Page URL": "URL de la página",+ "The web page the live frame loads while online (http or https)": "La página web que carga el marco en vivo mientras hay conexión (http o https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Carga la página en un marco aislado mientras hay conexión. Sin conexión, o con el modo sin conexión activado, se muestra la vista capturada.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "El marco en vivo solo carga con conexión. El modo sin conexión y la falta de red muestran la vista capturada.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Al presentar, un marco en el que hayas hecho clic retiene las teclas de flecha hasta que hagas clic fuera de él. Todo el que presente esta presentación carga la página desde su sitio.",}diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.tsindex fae832b7..e5249c56 100644--- a/slides/src/i18n/fr.ts+++ b/slides/src/i18n/fr.ts@@ -811,4 +811,16 @@ export const fr: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animer au clic : masqué jusqu’au n-ième → sur cette diapositive (0 = visible avec la diapositive)","hidden": "masquée","unnumbered": "sans numéro",+ "Embed": "Intégration",+ "Web page": "Page web",+ "No view yet. Capture a picture of the page so it shows offline.": "Pas encore de vue. Capturez une image de la page pour qu’elle s’affiche hors ligne.",+ "View embedded in the file": "Vue intégrée dans le fichier",+ "View is a link. It needs the network and shows nothing offline.": "La vue est un lien. Elle a besoin du réseau et n’affiche rien hors ligne.",+ "Replace view…": "Remplacer la vue…",+ "Capture view…": "Capturer la vue…",+ "Page URL": "URL de la page",+ "The web page the live frame loads while online (http or https)": "La page web que le cadre en direct charge en ligne (http ou https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Charge la page dans un cadre isolé en ligne. Hors ligne, ou avec le mode hors ligne activé, la vue capturée s’affiche à la place.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Le cadre en direct ne charge qu’en ligne. Le mode hors ligne et l’absence de réseau affichent la vue capturée.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Pendant la présentation, un cadre cliqué garde les touches fléchées jusqu’à ce que vous cliquiez en dehors. Toute personne qui présente cette présentation charge la page depuis son site.",}diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.tsindex d258b22a..2aeeb596 100644--- a/slides/src/i18n/it.ts+++ b/slides/src/i18n/it.ts@@ -811,4 +811,16 @@ export const it: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Anima al clic: nascosto fino all’n-esimo → su questa diapositiva (0 = visibile con la diapositiva)","hidden": "nascosta","unnumbered": "senza numero",+ "Embed": "Incorporamento",+ "Web page": "Pagina web",+ "No view yet. Capture a picture of the page so it shows offline.": "Nessuna vista ancora. Cattura un’immagine della pagina perché sia visibile offline.",+ "View embedded in the file": "Vista incorporata nel file",+ "View is a link. It needs the network and shows nothing offline.": "La vista è un link. Richiede la rete e offline non mostra nulla.",+ "Replace view…": "Sostituisci vista…",+ "Capture view…": "Cattura vista…",+ "Page URL": "URL della pagina",+ "The web page the live frame loads while online (http or https)": "La pagina web che il riquadro live carica quando sei online (http o https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Carica la pagina in un riquadro isolato quando sei online. Offline, o con la modalità offline attiva, viene mostrata la vista catturata.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Il riquadro live carica solo online. La modalità offline e l’assenza di rete mostrano la vista catturata.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Durante la presentazione, un riquadro su cui hai fatto clic trattiene i tasti freccia finché non fai clic fuori. Chiunque presenti questa presentazione carica la pagina dal suo sito.",}diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.tsindex 0cef4436..4c226ded 100644--- a/slides/src/i18n/ja.ts+++ b/slides/src/i18n/ja.ts@@ -811,4 +811,16 @@ export const ja: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "クリックでアニメーション:このスライドで n 回目の → まで非表示(0 = スライドと同時に表示)","hidden": "非表示","unnumbered": "番号なし",+ "Embed": "埋め込み",+ "Web page": "ウェブページ",+ "No view yet. Capture a picture of the page so it shows offline.": "ビューがまだありません。オフラインでも表示できるよう、ページの画像を取り込んでください。",+ "View embedded in the file": "ビューはファイルに埋め込まれています",+ "View is a link. It needs the network and shows nothing offline.": "ビューはリンクです。ネットワークが必要で、オフラインでは何も表示されません。",+ "Replace view…": "ビューを置き換え…",+ "Capture view…": "ビューを取り込む…",+ "Page URL": "ページURL",+ "The web page the live frame loads while online (http or https)": "オンライン時にライブフレームが読み込むウェブページ(http または https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "オンライン時にページをサンドボックス化されたフレームに読み込みます。オフライン時、またはオフラインモードが有効な場合は、取り込んだビューを表示します。",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "ライブフレームはオンライン時のみ読み込まれます。オフラインモードやネットワークがない場合は、取り込んだビューを表示します。",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "プレゼン中にフレームをクリックすると、その外側をクリックするまで矢印キーがフレームに取られます。このデッキを発表する人は全員、そのサイトからページを読み込みます。",}diff --git a/slides/src/i18n/packed.ts b/slides/src/i18n/packed.tsindex 4dc84331..e1d6d1b2 100644--- a/slides/src/i18n/packed.ts+++ b/slides/src/i18n/packed.ts@@ -817,4 +817,16 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": ["クリックでアニメーション:このスライドで n 回目の → まで非表示(0 = スライドと同時に表示)","单击时动画:在此幻灯片上按第 n 次 → 之前隐藏(0 = 随幻灯片显示)","點擊時動畫:在此投影片上按第 n 次 → 之前隱藏(0 = 隨投影片顯示)","Animar al hacer clic: oculto hasta la n-ésima → en esta diapositiva (0 = visible con la diapositiva)","Animer au clic : masqué jusqu’au n-ième → sur cette diapositive (0 = visible avec la diapositive)","Beim Klick animieren: bis zum n-ten → auf dieser Folie verborgen (0 = mit der Folie sichtbar)","Anima al clic: nascosto fino all’n-esimo → su questa diapositiva (0 = visibile con la diapositiva)","Animar ao clicar: oculto até ao n-ésimo → neste slide (0 = visível com o slide)"],"hidden": ["非表示","已隐藏","已隱藏","oculta","masquée","ausgeblendet","nascosta","oculto"],"unnumbered": ["番号なし","不编号","不編號","sin número","sans numéro","ohne Nummer","senza numero","sem número"],+ "Embed": ["埋め込み","嵌入","嵌入","Incrustación","Intégration","Einbettung","Incorporamento","Incorporação"],+ "Web page": ["ウェブページ","网页","網頁","Página web","Page web","Webseite","Pagina web","Página web"],+ "No view yet. Capture a picture of the page so it shows offline.": ["ビューがまだありません。オフラインでも表示できるよう、ページの画像を取り込んでください。","还没有视图。请截取页面图片,以便离线时显示。","還沒有檢視。請擷取頁面圖片,以便離線時顯示。","Aún no hay vista. Capture una imagen de la página para que se muestre sin conexión.","Pas encore de vue. Capturez une image de la page pour qu’elle s’affiche hors ligne.","Noch keine Ansicht. Erfassen Sie ein Bild der Seite, damit sie offline angezeigt wird.","Nessuna vista ancora. Cattura un’immagine della pagina perché sia visibile offline.","Ainda não há visualização. Capture uma imagem da página para que apareça offline."],+ "View embedded in the file": ["ビューはファイルに埋め込まれています","视图已嵌入文件","檢視已嵌入檔案","Vista incrustada en el archivo","Vue intégrée dans le fichier","Ansicht in der Datei eingebettet","Vista incorporata nel file","Visualização incorporada no arquivo"],+ "View is a link. It needs the network and shows nothing offline.": ["ビューはリンクです。ネットワークが必要で、オフラインでは何も表示されません。","视图是一个链接。它需要网络,离线时不显示任何内容。","檢視是一個連結。它需要網路,離線時不會顯示任何內容。","La vista es un enlace. Necesita red y no muestra nada sin conexión.","La vue est un lien. Elle a besoin du réseau et n’affiche rien hors ligne.","Die Ansicht ist ein Link. Sie braucht das Netzwerk und zeigt offline nichts an.","La vista è un link. Richiede la rete e offline non mostra nulla.","A visualização é um link. Precisa de rede e não mostra nada offline."],+ "Replace view…": ["ビューを置き換え…","替换视图…","取代檢視…","Reemplazar vista…","Remplacer la vue…","Ansicht ersetzen…","Sostituisci vista…","Substituir visualização…"],+ "Capture view…": ["ビューを取り込む…","截取视图…","擷取檢視…","Capturar vista…","Capturer la vue…","Ansicht erfassen…","Cattura vista…","Capturar visualização…"],+ "Page URL": ["ページURL","页面网址","頁面網址","URL de la página","URL de la page","Seiten-URL","URL della pagina","URL da página"],+ "The web page the live frame loads while online (http or https)": ["オンライン時にライブフレームが読み込むウェブページ(http または https)","联网时实时框架加载的网页(http 或 https)","連線時即時框架載入的網頁(http 或 https)","La página web que carga el marco en vivo mientras hay conexión (http o https)","La page web que le cadre en direct charge en ligne (http ou https)","Die Webseite, die der Live-Rahmen online lädt (http oder https)","La pagina web che il riquadro live carica quando sei online (http o https)","A página web que o quadro ao vivo carrega enquanto online (http ou https)"],+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": ["オンライン時にページをサンドボックス化されたフレームに読み込みます。オフライン時、またはオフラインモードが有効な場合は、取り込んだビューを表示します。","联网时在沙盒框架中加载页面。离线或开启离线模式时,改为显示截取的视图。","連線時在沙箱框架中載入頁面。離線或開啟離線模式時,改為顯示擷取的檢視。","Carga la página en un marco aislado mientras hay conexión. Sin conexión, o con el modo sin conexión activado, se muestra la vista capturada.","Charge la page dans un cadre isolé en ligne. Hors ligne, ou avec le mode hors ligne activé, la vue capturée s’affiche à la place.","Lädt die Seite online in einem isolierten Rahmen. Offline oder bei aktiviertem Offline-Modus wird stattdessen die erfasste Ansicht angezeigt.","Carica la pagina in un riquadro isolato quando sei online. Offline, o con la modalità offline attiva, viene mostrata la vista catturata.","Carrega a página em um quadro isolado enquanto online. Offline, ou com o modo offline ativado, a visualização capturada é mostrada."],+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": ["ライブフレームはオンライン時のみ読み込まれます。オフラインモードやネットワークがない場合は、取り込んだビューを表示します。","实时框架仅在联网时加载。离线模式和无网络时显示截取的视图。","即時框架僅在連線時載入。離線模式和沒有網路時會顯示擷取的檢視。","El marco en vivo solo carga con conexión. El modo sin conexión y la falta de red muestran la vista capturada.","Le cadre en direct ne charge qu’en ligne. Le mode hors ligne et l’absence de réseau affichent la vue capturée.","Der Live-Rahmen lädt nur online. Offline-Modus und fehlendes Netzwerk zeigen stattdessen die erfasste Ansicht.","Il riquadro live carica solo online. La modalità offline e l’assenza di rete mostrano la vista catturata.","O quadro ao vivo só carrega online. O modo offline e a falta de rede mostram a visualização capturada."],+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": ["プレゼン中にフレームをクリックすると、その外側をクリックするまで矢印キーがフレームに取られます。このデッキを発表する人は全員、そのサイトからページを読み込みます。","演示时,点击过的框架会占用方向键,直到你在其外部点击。所有演示此文稿的人都会从该网站加载页面。","簡報時,點擊過的框架會佔用方向鍵,直到你在其外部點擊。所有簡報此文稿的人都會從該網站載入頁面。","Al presentar, un marco en el que hayas hecho clic retiene las teclas de flecha hasta que hagas clic fuera de él. Todo el que presente esta presentación carga la página desde su sitio.","Pendant la présentation, un cadre cliqué garde les touches fléchées jusqu’à ce que vous cliquiez en dehors. Toute personne qui présente cette présentation charge la page depuis son site.","Beim Präsentieren behält ein angeklickter Rahmen die Pfeiltasten, bis Sie außerhalb klicken. Jede Person, die dieses Deck präsentiert, lädt die Seite von deren Website.","Durante la presentazione, un riquadro su cui hai fatto clic trattiene i tasti freccia finché non fai clic fuori. Chiunque presenti questa presentazione carica la pagina dal suo sito.","Ao apresentar, uma moldura em que clicou retém as teclas de seta até clicar fora dela. Quem apresentar esta apresentação carrega a página a partir do respetivo site."],}diff --git a/slides/src/i18n/packs/ar.ts b/slides/src/i18n/packs/ar.tsindex 173d798e..72ad5032 100644--- a/slides/src/i18n/packs/ar.ts+++ b/slides/src/i18n/packs/ar.ts@@ -757,4 +757,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "تحريك عند النقر: مخفي حتى الضغطة رقم n على سهم التالي في هذه الشريحة (0 = يظهر مع الشريحة)","hidden": "مخفية","unnumbered": "بدون رقم",+ "Embed": "تضمين",+ "Web page": "صفحة ويب",+ "No view yet. Capture a picture of the page so it shows offline.": "لا توجد معاينة بعد. التقط صورة للصفحة لتظهر دون اتصال.",+ "View embedded in the file": "المعاينة مضمّنة في الملف",+ "View is a link. It needs the network and shows nothing offline.": "المعاينة رابط. تحتاج إلى الشبكة ولا تُظهر شيئًا دون اتصال.",+ "Replace view…": "استبدال المعاينة…",+ "Capture view…": "التقاط المعاينة…",+ "Page URL": "عنوان الصفحة",+ "The web page the live frame loads while online (http or https)": "صفحة الويب التي يحمّلها الإطار المباشر أثناء الاتصال (http أو https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "تحميل الصفحة في إطار معزول أثناء الاتصال. دون اتصال، أو مع تفعيل وضع عدم الاتصال، تظهر المعاينة الملتقطة بدلًا منها.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "يحمّل الإطار المباشر أثناء الاتصال فقط. وضع عدم الاتصال وغياب الشبكة يُظهران المعاينة الملتقطة بدلًا منه.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "أثناء العرض، يحتفظ الإطار الذي نقرت عليه بمفاتيح الأسهم حتى تنقر خارجه. كل من يعرض هذا الملف يحمّل الصفحة من موقعها.",}diff --git a/slides/src/i18n/packs/bn.ts b/slides/src/i18n/packs/bn.tsindex 0dc3dc03..814c1aac 100644--- a/slides/src/i18n/packs/bn.ts+++ b/slides/src/i18n/packs/bn.ts@@ -760,4 +760,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "ক্লিকে অ্যানিমেট: এই স্লাইডে n-তম → পর্যন্ত লুকানো (0 = স্লাইডের সাথে দেখানো)","hidden": "লুকানো","unnumbered": "সংখ্যাহীন",+ "Embed": "এম্বেড",+ "Web page": "ওয়েব পেজ",+ "No view yet. Capture a picture of the page so it shows offline.": "এখনো কোনো ভিউ নেই। অফলাইনে দেখাতে পেজের একটি ছবি নিন।",+ "View embedded in the file": "ভিউ ফাইলে এম্বেড করা আছে",+ "View is a link. It needs the network and shows nothing offline.": "ভিউটি একটি লিঙ্ক। এর নেটওয়ার্ক লাগে এবং অফলাইনে কিছু দেখায় না।",+ "Replace view…": "ভিউ প্রতিস্থাপন…",+ "Capture view…": "ভিউ নিন…",+ "Page URL": "পেজ URL",+ "The web page the live frame loads while online (http or https)": "অনলাইনে থাকাকালীন লাইভ ফ্রেম যে ওয়েব পেজটি লোড করে (http বা https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "অনলাইনে থাকাকালীন পেজটি স্যান্ডবক্সড ফ্রেমে লোড করুন। অফলাইনে বা অফলাইন মোড চালু থাকলে নেওয়া ভিউটি দেখায়।",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "লাইভ ফ্রেম শুধু অনলাইনে লোড হয়। অফলাইন মোড ও নেটওয়ার্ক না থাকলে নেওয়া ভিউটি দেখায়।",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "উপস্থাপনার সময় ক্লিক করা ফ্রেম অ্যারো কী ধরে রাখে যতক্ষণ না আপনি এর বাইরে ক্লিক করেন। যিনিই এই ডেক উপস্থাপন করেন, তিনি পেজটি এর সাইট থেকে লোড করেন।",}diff --git a/slides/src/i18n/packs/da.ts b/slides/src/i18n/packs/da.tsindex 191ec7e6..16b9e831 100644--- a/slides/src/i18n/packs/da.ts+++ b/slides/src/i18n/packs/da.ts@@ -749,4 +749,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animér ved klik: skjult indtil det n'te → på dette dias (0 = vises med diasset)","hidden": "skjult","unnumbered": "unummereret",+ "Embed": "Indlejring",+ "Web page": "Webside",+ "No view yet. Capture a picture of the page so it shows offline.": "Ingen visning endnu. Tag et billede af siden, så den vises offline.",+ "View embedded in the file": "Visning indlejret i filen",+ "View is a link. It needs the network and shows nothing offline.": "Visningen er et link. Den kræver netværk og viser intet offline.",+ "Replace view…": "Erstat visning…",+ "Capture view…": "Optag visning…",+ "Page URL": "Sidens URL",+ "The web page the live frame loads while online (http or https)": "Websiden som den levende ramme indlæser når du er online (http eller https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Indlæs siden i en sandkasse-ramme når du er online. Offline, eller med offline-tilstand slået til, vises den optagne visning i stedet.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Den levende ramme indlæses kun online. Offline-tilstand og manglende netværk viser den optagne visning i stedet.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Under præsentationen beholder en klikket ramme piletasterne, indtil du klikker uden for den. Alle der præsenterer dette dæk, indlæser siden fra dens websted.",}diff --git a/slides/src/i18n/packs/fa.ts b/slides/src/i18n/packs/fa.tsindex fe25a84c..f53e887b 100644--- a/slides/src/i18n/packs/fa.ts+++ b/slides/src/i18n/packs/fa.ts@@ -753,4 +753,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "انیمیشن با کلیک: تا nامین فشار کلید بعدی در این اسلاید پنهان است (۰ = همراه اسلاید نمایش داده میشود)","hidden": "پنهان","unnumbered": "بدون شماره",+ "Embed": "جاسازی",+ "Web page": "صفحه وب",+ "No view yet. Capture a picture of the page so it shows offline.": "هنوز نمایی وجود ندارد. از صفحه عکس بگیرید تا آفلاین نمایش داده شود.",+ "View embedded in the file": "نما در فایل جاسازی شده",+ "View is a link. It needs the network and shows nothing offline.": "نما یک پیوند است. به شبکه نیاز دارد و آفلاین چیزی نشان نمیدهد.",+ "Replace view…": "جایگزینی نما…",+ "Capture view…": "گرفتن نما…",+ "Page URL": "نشانی صفحه",+ "The web page the live frame loads while online (http or https)": "صفحه وبی که قاب زنده هنگام آنلاین بودن بارگذاری میکند (http یا https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "صفحه را هنگام آنلاین بودن در قابی ایزوله بارگذاری کنید. آفلاین، یا با حالت آفلاین روشن، نمای گرفتهشده به جای آن نشان داده میشود.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "قاب زنده فقط هنگام آنلاین بودن بارگذاری میشود. حالت آفلاین و نبود شبکه، نمای گرفتهشده را به جای آن نشان میدهند.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "هنگام ارائه، قابی که روی آن کلیک شده کلیدهای جهتدار را نگه میدارد تا بیرون آن کلیک کنید. هر کس این دک را ارائه دهد، صفحه را از سایت آن بارگذاری میکند.",}diff --git a/slides/src/i18n/packs/fi.ts b/slides/src/i18n/packs/fi.tsindex 260a2189..6e3ec67b 100644--- a/slides/src/i18n/packs/fi.ts+++ b/slides/src/i18n/packs/fi.ts@@ -754,4 +754,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animoi napsautuksella: piilossa tämän dian n:nteen →-painallukseen asti (0 = näkyy dian mukana)","hidden": "piilotettu","unnumbered": "numeroimaton",+ "Embed": "Upotus",+ "Web page": "Verkkosivu",+ "No view yet. Capture a picture of the page so it shows offline.": "Ei vielä näkymää. Ota sivusta kuva, niin se näkyy offline-tilassa.",+ "View embedded in the file": "Näkymä on upotettu tiedostoon",+ "View is a link. It needs the network and shows nothing offline.": "Näkymä on linkki. Se tarvitsee verkon eikä näytä mitään offline-tilassa.",+ "Replace view…": "Korvaa näkymä…",+ "Capture view…": "Kaappaa näkymä…",+ "Page URL": "Sivun URL",+ "The web page the live frame loads while online (http or https)": "Verkkosivu, jonka live-kehys lataa verkossa (http tai https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Lataa sivu eristettyyn kehykseen verkossa. Offline-tilassa tai offline-tilan ollessa päällä näytetään kaapattu näkymä.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Live-kehys latautuu vain verkossa. Offline-tila ja puuttuva verkko näyttävät kaapatun näkymän.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Esityksen aikana napsautettu kehys pitää nuolinäppäimet, kunnes napsautat sen ulkopuolelle. Jokainen tämän pakan esittäjä lataa sivun sen sivustolta.",}diff --git a/slides/src/i18n/packs/fil.ts b/slides/src/i18n/packs/fil.tsindex a61d4a9e..f2621236 100644--- a/slides/src/i18n/packs/fil.ts+++ b/slides/src/i18n/packs/fil.ts@@ -766,4 +766,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "I-animate sa click: nakatago hanggang sa ika-n na → sa slide na ito (0 = ipinapakita kasabay ng slide)","hidden": "nakatago","unnumbered": "walang numero",+ "Embed": "Embed",+ "Web page": "Web page",+ "No view yet. Capture a picture of the page so it shows offline.": "Wala pang view. Kumuha ng larawan ng page para lumabas ito offline.",+ "View embedded in the file": "Naka-embed ang view sa file",+ "View is a link. It needs the network and shows nothing offline.": "Link ang view. Kailangan nito ng network at walang ipinapakita offline.",+ "Replace view…": "Palitan ang view…",+ "Capture view…": "Kunan ang view…",+ "Page URL": "URL ng page",+ "The web page the live frame loads while online (http or https)": "Ang web page na nilo-load ng live frame habang online (http o https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "I-load ang page sa isang sandboxed frame habang online. Offline, o kapag naka-on ang offline mode, ang nakuhang view ang lalabas.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Nilo-load lang ang live frame habang online. Ang offline mode at kawalan ng network ay nagpapakita ng nakuhang view.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Habang nagpe-present, hawak ng na-click na frame ang mga arrow key hanggang mag-click ka sa labas nito. Lahat ng nagpe-present ng deck na ito ay nilo-load ang page mula sa site nito.",}diff --git a/slides/src/i18n/packs/he.ts b/slides/src/i18n/packs/he.tsindex ed7df44c..a3b9e799 100644--- a/slides/src/i18n/packs/he.ts+++ b/slides/src/i18n/packs/he.ts@@ -750,4 +750,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "הנפשה בלחיצה: מוסתר עד הלחיצה ה-n על מקש הבא בשקופית זו (0 = מוצג עם השקופית)","hidden": "מוסתרת","unnumbered": "ללא מספר",+ "Embed": "הטמעה",+ "Web page": "דף אינטרנט",+ "No view yet. Capture a picture of the page so it shows offline.": "אין תצוגה עדיין. צלמו את הדף כדי שיוצג במצב לא מקוון.",+ "View embedded in the file": "התצוגה מוטמעת בקובץ",+ "View is a link. It needs the network and shows nothing offline.": "התצוגה היא קישור. היא זקוקה לרשת ואינה מציגה דבר במצב לא מקוון.",+ "Replace view…": "החלפת תצוגה…",+ "Capture view…": "לכידת תצוגה…",+ "Page URL": "כתובת הדף",+ "The web page the live frame loads while online (http or https)": "דף האינטרנט שהמסגרת החיה טוענת במצב מקוון (http או https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "טעינת הדף במסגרת מבודדת במצב מקוון. במצב לא מקוון, או כשמצב לא מקוון פעיל, מוצגת התצוגה שנלכדה במקומו.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "המסגרת החיה נטענת רק במצב מקוון. מצב לא מקוון וחוסר רשת מציגים את התצוגה שנלכדה במקומה.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "במהלך ההצגה, מסגרת שנלחצה שומרת על מקשי החצים עד שלוחצים מחוצה לה. כל מי שמציג מצגת זו טוען את הדף מהאתר שלו.",}diff --git a/slides/src/i18n/packs/hi.ts b/slides/src/i18n/packs/hi.tsindex c3a396e1..b11036e8 100644--- a/slides/src/i18n/packs/hi.ts+++ b/slides/src/i18n/packs/hi.ts@@ -757,4 +757,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "क्लिक पर एनिमेट: इस स्लाइड पर n-वें → तक छिपा (0 = स्लाइड के साथ दिखे)","hidden": "छिपी हुई","unnumbered": "बिना नंबर",+ "Embed": "एम्बेड",+ "Web page": "वेब पेज",+ "No view yet. Capture a picture of the page so it shows offline.": "अभी कोई व्यू नहीं। पेज की तस्वीर लें ताकि यह ऑफ़लाइन दिखे।",+ "View embedded in the file": "व्यू फ़ाइल में एम्बेड है",+ "View is a link. It needs the network and shows nothing offline.": "व्यू एक लिंक है। इसे नेटवर्क चाहिए और ऑफ़लाइन कुछ नहीं दिखाता।",+ "Replace view…": "व्यू बदलें…",+ "Capture view…": "व्यू कैप्चर करें…",+ "Page URL": "पेज URL",+ "The web page the live frame loads while online (http or https)": "वह वेब पेज जो लाइव फ़्रेम ऑनलाइन रहते हुए लोड करता है (http या https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "ऑनलाइन रहते हुए पेज को सैंडबॉक्स्ड फ़्रेम में लोड करें। ऑफ़लाइन, या ऑफ़लाइन मोड चालू होने पर, कैप्चर किया गया व्यू दिखता है।",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "लाइव फ़्रेम केवल ऑनलाइन लोड होता है। ऑफ़लाइन मोड और नेटवर्क न होने पर कैप्चर किया गया व्यू दिखता है।",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "प्रस्तुति के दौरान क्लिक किया गया फ़्रेम ऐरो कुंजियाँ तब तक रखता है जब तक आप उसके बाहर क्लिक न करें। इस डेक को प्रस्तुत करने वाला हर व्यक्ति पेज को उसकी साइट से लोड करता है।",}diff --git a/slides/src/i18n/packs/id.ts b/slides/src/i18n/packs/id.tsindex 5153ab7a..9ed1baf2 100644--- a/slides/src/i18n/packs/id.ts+++ b/slides/src/i18n/packs/id.ts@@ -747,4 +747,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animasikan saat klik: tersembunyi hingga → ke-n pada slide ini (0 = tampil bersama slide)","hidden": "tersembunyi","unnumbered": "tanpa nomor",+ "Embed": "Sematan",+ "Web page": "Halaman web",+ "No view yet. Capture a picture of the page so it shows offline.": "Belum ada tampilan. Ambil gambar halaman agar tampil saat offline.",+ "View embedded in the file": "Tampilan tersemat dalam berkas",+ "View is a link. It needs the network and shows nothing offline.": "Tampilan berupa tautan. Membutuhkan jaringan dan tidak menampilkan apa pun saat offline.",+ "Replace view…": "Ganti tampilan…",+ "Capture view…": "Ambil tampilan…",+ "Page URL": "URL halaman",+ "The web page the live frame loads while online (http or https)": "Halaman web yang dimuat bingkai langsung saat online (http atau https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Muat halaman dalam bingkai terisolasi saat online. Saat offline, atau dengan mode offline aktif, tampilan yang diambil ditampilkan sebagai gantinya.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Bingkai langsung hanya dimuat saat online. Mode offline dan tidak adanya jaringan menampilkan tampilan yang diambil.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Saat presentasi, bingkai yang diklik menahan tombol panah sampai Anda mengklik di luarnya. Semua yang mempresentasikan dek ini memuat halaman dari situsnya.",}diff --git a/slides/src/i18n/packs/ko.ts b/slides/src/i18n/packs/ko.tsindex f22e8711..e67ce8a5 100644--- a/slides/src/i18n/packs/ko.ts+++ b/slides/src/i18n/packs/ko.ts@@ -741,4 +741,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "클릭 시 애니메이션: 이 슬라이드에서 n번째 → 까지 숨김 (0 = 슬라이드와 함께 표시)","hidden": "숨김","unnumbered": "번호 없음",+ "Embed": "임베드",+ "Web page": "웹 페이지",+ "No view yet. Capture a picture of the page so it shows offline.": "아직 보기가 없습니다. 오프라인에서도 보이도록 페이지 그림을 캡처하세요.",+ "View embedded in the file": "보기가 파일에 포함되어 있습니다",+ "View is a link. It needs the network and shows nothing offline.": "보기가 링크입니다. 네트워크가 필요하며 오프라인에서는 아무것도 표시하지 않습니다.",+ "Replace view…": "보기 바꾸기…",+ "Capture view…": "보기 캡처…",+ "Page URL": "페이지 URL",+ "The web page the live frame loads while online (http or https)": "온라인일 때 라이브 프레임이 불러오는 웹 페이지 (http 또는 https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "온라인일 때 페이지를 샌드박스 프레임에 불러옵니다. 오프라인이거나 오프라인 모드가 켜져 있으면 캡처한 보기가 대신 표시됩니다.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "라이브 프레임은 온라인일 때만 불러옵니다. 오프라인 모드와 네트워크 없음은 캡처한 보기를 대신 표시합니다.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "발표 중 클릭한 프레임은 바깥을 클릭할 때까지 화살표 키를 가져갑니다. 이 덱을 발표하는 모든 사람이 해당 사이트에서 페이지를 불러옵니다.",}diff --git a/slides/src/i18n/packs/ms.ts b/slides/src/i18n/packs/ms.tsindex f088bf0a..a1d26eba 100644--- a/slides/src/i18n/packs/ms.ts+++ b/slides/src/i18n/packs/ms.ts@@ -750,4 +750,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animasikan apabila diklik: tersembunyi sehingga → ke-n pada slaid ini (0 = dipaparkan bersama slaid)","hidden": "tersembunyi","unnumbered": "tanpa nombor",+ "Embed": "Benam",+ "Web page": "Halaman web",+ "No view yet. Capture a picture of the page so it shows offline.": "Belum ada paparan. Ambil gambar halaman supaya ia dipaparkan luar talian.",+ "View embedded in the file": "Paparan dibenamkan dalam fail",+ "View is a link. It needs the network and shows nothing offline.": "Paparan ialah pautan. Ia memerlukan rangkaian dan tidak memaparkan apa-apa luar talian.",+ "Replace view…": "Ganti paparan…",+ "Capture view…": "Tangkap paparan…",+ "Page URL": "URL halaman",+ "The web page the live frame loads while online (http or https)": "Halaman web yang dimuatkan bingkai langsung semasa dalam talian (http atau https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Muatkan halaman dalam bingkai terpencil semasa dalam talian. Luar talian, atau dengan mod luar talian dihidupkan, paparan yang ditangkap dipaparkan sebaliknya.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Bingkai langsung hanya dimuatkan semasa dalam talian. Mod luar talian dan ketiadaan rangkaian memaparkan paparan yang ditangkap.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Semasa membentang, bingkai yang diklik mengekalkan kekunci anak panah sehingga anda mengklik di luarnya. Semua yang membentangkan dek ini memuatkan halaman daripada tapaknya.",}diff --git a/slides/src/i18n/packs/nb.ts b/slides/src/i18n/packs/nb.tsindex 27603d5c..b2dd7c5d 100644--- a/slides/src/i18n/packs/nb.ts+++ b/slides/src/i18n/packs/nb.ts@@ -751,4 +751,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animer ved klikk: skjult til det n-te → på dette lysbildet (0 = vises med lysbildet)","hidden": "skjult","unnumbered": "unummerert",+ "Embed": "Innebygging",+ "Web page": "Nettside",+ "No view yet. Capture a picture of the page so it shows offline.": "Ingen visning ennå. Ta et bilde av siden så den vises frakoblet.",+ "View embedded in the file": "Visningen er innebygd i filen",+ "View is a link. It needs the network and shows nothing offline.": "Visningen er en lenke. Den trenger nettverk og viser ingenting frakoblet.",+ "Replace view…": "Erstatt visning…",+ "Capture view…": "Ta visning…",+ "Page URL": "Sidens URL",+ "The web page the live frame loads while online (http or https)": "Nettsiden den levende rammen laster når du er tilkoblet (http eller https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Last siden i en isolert ramme når du er tilkoblet. Frakoblet, eller med frakoblet modus på, vises den lagrede visningen i stedet.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Den levende rammen lastes bare tilkoblet. Frakoblet modus og manglende nettverk viser den lagrede visningen i stedet.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Under presentasjonen beholder en klikket ramme piltastene til du klikker utenfor den. Alle som presenterer denne kortstokken laster siden fra nettstedet dens.",}diff --git a/slides/src/i18n/packs/nl.ts b/slides/src/i18n/packs/nl.tsindex decdb2bc..6bdf1280 100644--- a/slides/src/i18n/packs/nl.ts+++ b/slides/src/i18n/packs/nl.ts@@ -745,4 +745,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animeren bij klik: verborgen tot de n-de → op deze dia (0 = zichtbaar met de dia)","hidden": "verborgen","unnumbered": "ongenummerd",+ "Embed": "Insluiting",+ "Web page": "Webpagina",+ "No view yet. Capture a picture of the page so it shows offline.": "Nog geen weergave. Maak een afbeelding van de pagina zodat hij offline zichtbaar is.",+ "View embedded in the file": "Weergave ingesloten in het bestand",+ "View is a link. It needs the network and shows nothing offline.": "De weergave is een koppeling. Die heeft netwerk nodig en toont offline niets.",+ "Replace view…": "Weergave vervangen…",+ "Capture view…": "Weergave vastleggen…",+ "Page URL": "Pagina-URL",+ "The web page the live frame loads while online (http or https)": "De webpagina die het live frame laadt terwijl je online bent (http of https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Laad de pagina in een afgeschermd frame terwijl je online bent. Offline, of met offline-modus aan, wordt de vastgelegde weergave getoond.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Het live frame laadt alleen online. Offline-modus en een ontbrekend netwerk tonen de vastgelegde weergave.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Tijdens het presenteren houdt een aangeklikt frame de pijltjestoetsen vast tot je erbuiten klikt. Iedereen die dit deck presenteert, laadt de pagina van de site.",}diff --git a/slides/src/i18n/packs/pl.ts b/slides/src/i18n/packs/pl.tsindex 7ebac1e6..cb7516ff 100644--- a/slides/src/i18n/packs/pl.ts+++ b/slides/src/i18n/packs/pl.ts@@ -748,4 +748,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animuj po kliknięciu: ukryty do n-tego → na tym slajdzie (0 = widoczny wraz ze slajdem)","hidden": "ukryty","unnumbered": "bez numeru",+ "Embed": "Osadzenie",+ "Web page": "Strona internetowa",+ "No view yet. Capture a picture of the page so it shows offline.": "Brak widoku. Zrób zdjęcie strony, aby wyświetlała się offline.",+ "View embedded in the file": "Widok osadzony w pliku",+ "View is a link. It needs the network and shows nothing offline.": "Widok jest łączem. Wymaga sieci i offline niczego nie pokazuje.",+ "Replace view…": "Zastąp widok…",+ "Capture view…": "Przechwyć widok…",+ "Page URL": "URL strony",+ "The web page the live frame loads while online (http or https)": "Strona, którą żywa ramka ładuje w trybie online (http lub https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Załaduj stronę w izolowanej ramce w trybie online. Offline lub przy włączonym trybie offline pokazywany jest przechwycony widok.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Żywa ramka ładuje się tylko online. Tryb offline i brak sieci pokazują przechwycony widok.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Podczas prezentacji kliknięta ramka przejmuje klawisze strzałek, dopóki nie klikniesz poza nią. Każdy, kto prezentuje tę prezentację, ładuje stronę z jej witryny.",}diff --git a/slides/src/i18n/packs/ru.ts b/slides/src/i18n/packs/ru.tsindex cd865748..ac3cb487 100644--- a/slides/src/i18n/packs/ru.ts+++ b/slides/src/i18n/packs/ru.ts@@ -749,4 +749,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Анимация по щелчку: скрыт до n-го → на этом слайде (0 = показывается вместе со слайдом)","hidden": "скрыт","unnumbered": "без номера",+ "Embed": "Встраивание",+ "Web page": "Веб-страница",+ "No view yet. Capture a picture of the page so it shows offline.": "Пока нет вида. Сделайте снимок страницы, чтобы она показывалась офлайн.",+ "View embedded in the file": "Вид встроен в файл",+ "View is a link. It needs the network and shows nothing offline.": "Вид — это ссылка. Ему нужна сеть, и офлайн он ничего не показывает.",+ "Replace view…": "Заменить вид…",+ "Capture view…": "Снять вид…",+ "Page URL": "URL страницы",+ "The web page the live frame loads while online (http or https)": "Веб-страница, которую живая рамка загружает онлайн (http или https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Загружать страницу в изолированной рамке онлайн. Офлайн или при включённом автономном режиме вместо неё показывается снятый вид.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Живая рамка загружается только онлайн. Автономный режим и отсутствие сети показывают снятый вид.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Во время показа рамка, по которой щёлкнули, удерживает клавиши со стрелками, пока не щёлкнуть вне её. Каждый, кто показывает эту презентацию, загружает страницу с её сайта.",}diff --git a/slides/src/i18n/packs/sv.ts b/slides/src/i18n/packs/sv.tsindex 1b387884..03b99cec 100644--- a/slides/src/i18n/packs/sv.ts+++ b/slides/src/i18n/packs/sv.ts@@ -746,4 +746,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animera vid klick: dold fram till det n:te → på den här bilden (0 = visas med bilden)","hidden": "dold","unnumbered": "onumrerad",+ "Embed": "Inbäddning",+ "Web page": "Webbsida",+ "No view yet. Capture a picture of the page so it shows offline.": "Ingen vy ännu. Ta en bild av sidan så att den visas offline.",+ "View embedded in the file": "Vyn är inbäddad i filen",+ "View is a link. It needs the network and shows nothing offline.": "Vyn är en länk. Den behöver nätverk och visar inget offline.",+ "Replace view…": "Ersätt vy…",+ "Capture view…": "Fånga vy…",+ "Page URL": "Sidans URL",+ "The web page the live frame loads while online (http or https)": "Webbsidan som den levande ramen läser in när du är online (http eller https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Läs in sidan i en isolerad ram när du är online. Offline, eller med offlineläge på, visas den fångade vyn i stället.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Den levande ramen läses bara in online. Offlineläge och saknat nätverk visar den fångade vyn i stället.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Under presentationen behåller en klickad ram piltangenterna tills du klickar utanför den. Alla som presenterar den här presentationen läser in sidan från dess webbplats.",}diff --git a/slides/src/i18n/packs/th.ts b/slides/src/i18n/packs/th.tsindex 956757eb..f46f7d6e 100644--- a/slides/src/i18n/packs/th.ts+++ b/slides/src/i18n/packs/th.ts@@ -751,4 +751,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "เคลื่อนไหวเมื่อคลิก: ซ่อนอยู่จนกว่าจะกด → ครั้งที่ n ในสไลด์นี้ (0 = แสดงพร้อมสไลด์)","hidden": "ซ่อน","unnumbered": "ไม่มีเลขหน้า",+ "Embed": "ฝัง",+ "Web page": "หน้าเว็บ",+ "No view yet. Capture a picture of the page so it shows offline.": "ยังไม่มีมุมมอง จับภาพหน้าเพื่อให้แสดงแบบออฟไลน์",+ "View embedded in the file": "มุมมองฝังอยู่ในไฟล์",+ "View is a link. It needs the network and shows nothing offline.": "มุมมองเป็นลิงก์ ต้องใช้เครือข่ายและไม่แสดงอะไรเมื่อออฟไลน์",+ "Replace view…": "แทนที่มุมมอง…",+ "Capture view…": "จับภาพมุมมอง…",+ "Page URL": "URL ของหน้า",+ "The web page the live frame loads while online (http or https)": "หน้าเว็บที่เฟรมสดโหลดขณะออนไลน์ (http หรือ https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "โหลดหน้าในเฟรมแซนด์บ็อกซ์ขณะออนไลน์ เมื่อออฟไลน์หรือเปิดโหมดออฟไลน์ จะแสดงมุมมองที่จับภาพไว้แทน",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "เฟรมสดโหลดเฉพาะขณะออนไลน์ โหมดออฟไลน์และไม่มีเครือข่ายจะแสดงมุมมองที่จับภาพไว้แทน",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "ระหว่างนำเสนอ เฟรมที่คลิกจะยึดปุ่มลูกศรไว้จนกว่าคุณจะคลิกนอกเฟรม ทุกคนที่นำเสนอเด็คนี้จะโหลดหน้าจากเว็บไซต์ของหน้านั้น",}diff --git a/slides/src/i18n/packs/tk.ts b/slides/src/i18n/packs/tk.tsindex 5ef5b207..9a6a2f97 100644--- a/slides/src/i18n/packs/tk.ts+++ b/slides/src/i18n/packs/tk.ts@@ -5,8 +5,9 @@// downloadable JSON. See docs/i18n-packs.md.//// Translator: Mekan Soltanov (github.com/msoltanov). Complete at 706/706;-// the eight strings for unnumbered slides and reveal steps (2026-09-13)-// are machine-drafted, awaiting the translator's review. Corrections go+// the eight strings for unnumbered slides and reveal steps and the twelve+// for the embed element (2026-09-13/14) are machine-drafted, awaiting the+// translator's review. Corrections go// to the translator.//// Terminology follows the Latin-script conventions Turkmen speakers meet in@@ -770,4 +771,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Basylanda animasiýa: bu slaýdda n-nji → çenli gizlin (0 = slaýd bilen görkezilýär)","hidden": "gizlin","unnumbered": "belgisiz",+ "Embed": "Goşundy",+ "Web page": "Web sahypasy",+ "No view yet. Capture a picture of the page so it shows offline.": "Entek görnüş ýok. Oflaýn görkezilmegi üçin sahypanyň suratyny alyň.",+ "View embedded in the file": "Görnüş faýla goşulan",+ "View is a link. It needs the network and shows nothing offline.": "Görnüş salgydyr. Oňa tor gerek we oflaýn hiç zat görkezmeýär.",+ "Replace view…": "Görnüşi çalyşmak…",+ "Capture view…": "Görnüşi almak…",+ "Page URL": "Sahypa URL-i",+ "The web page the live frame loads while online (http or https)": "Onlaýn wagtynda janly çarçuwanyň ýükleýän web sahypasy (http ýa-da https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Onlaýn wagtynda sahypany izolirlenen çarçuwada ýükläň. Oflaýn ýa-da oflaýn tertip açyk bolanda alnan görnüş görkezilýär.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Janly çarçuwa diňe onlaýn ýüklenýär. Oflaýn tertip we toruň ýoklugy alnan görnüşi görkezýär.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Prezentasiýa wagtynda basylan çarçuwa daşyna basýançaňyz ok düwmelerini saklaýar. Bu topary görkezýän her kim sahypany onuň saýtyndan ýükleýär.",}diff --git a/slides/src/i18n/packs/tr.ts b/slides/src/i18n/packs/tr.tsindex bde6b38b..4ef56e13 100644--- a/slides/src/i18n/packs/tr.ts+++ b/slides/src/i18n/packs/tr.ts@@ -748,4 +748,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Tıklayınca canlandır: bu slaytta n’inci → tuşuna kadar gizli (0 = slaytla birlikte gösterilir)","hidden": "gizli","unnumbered": "numarasız",+ "Embed": "Gömme",+ "Web page": "Web sayfası",+ "No view yet. Capture a picture of the page so it shows offline.": "Henüz görünüm yok. Çevrimdışı görünmesi için sayfanın resmini yakalayın.",+ "View embedded in the file": "Görünüm dosyaya gömülü",+ "View is a link. It needs the network and shows nothing offline.": "Görünüm bir bağlantı. Ağ gerektirir ve çevrimdışı hiçbir şey göstermez.",+ "Replace view…": "Görünümü değiştir…",+ "Capture view…": "Görünümü yakala…",+ "Page URL": "Sayfa URL’si",+ "The web page the live frame loads while online (http or https)": "Canlı çerçevenin çevrimiçiyken yüklediği web sayfası (http veya https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Sayfayı çevrimiçiyken korumalı bir çerçevede yükle. Çevrimdışıyken ya da çevrimdışı mod açıkken bunun yerine yakalanan görünüm gösterilir.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Canlı çerçeve yalnızca çevrimiçiyken yüklenir. Çevrimdışı mod ve ağ yokluğu bunun yerine yakalanan görünümü gösterir.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Sunum sırasında tıklanan çerçeve, dışına tıklayana kadar ok tuşlarını tutar. Bu desteyi sunan herkes sayfayı kendi sitesinden yükler.",}diff --git a/slides/src/i18n/packs/uk.ts b/slides/src/i18n/packs/uk.tsindex 2502c2b0..574110c0 100644--- a/slides/src/i18n/packs/uk.ts+++ b/slides/src/i18n/packs/uk.ts@@ -757,4 +757,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Анімація за клацанням: приховано до n-го → на цьому слайді (0 = показується разом зі слайдом)","hidden": "прихований","unnumbered": "без номера",+ "Embed": "Вбудовування",+ "Web page": "Вебсторінка",+ "No view yet. Capture a picture of the page so it shows offline.": "Поки що немає вигляду. Зробіть знімок сторінки, щоб вона показувалася офлайн.",+ "View embedded in the file": "Вигляд вбудовано у файл",+ "View is a link. It needs the network and shows nothing offline.": "Вигляд — це посилання. Йому потрібна мережа, і офлайн він нічого не показує.",+ "Replace view…": "Замінити вигляд…",+ "Capture view…": "Зняти вигляд…",+ "Page URL": "URL сторінки",+ "The web page the live frame loads while online (http or https)": "Вебсторінка, яку жива рамка завантажує онлайн (http або https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Завантажувати сторінку в ізольованій рамці онлайн. Офлайн або з увімкненим автономним режимом замість неї показується знятий вигляд.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Жива рамка завантажується лише онлайн. Автономний режим і відсутність мережі показують знятий вигляд.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Під час показу рамка, на яку клацнули, утримує клавіші зі стрілками, доки не клацнути поза нею. Кожен, хто показує цю презентацію, завантажує сторінку з її сайту.",}diff --git a/slides/src/i18n/packs/ur.ts b/slides/src/i18n/packs/ur.tsindex a7ab549f..9bc7f328 100644--- a/slides/src/i18n/packs/ur.ts+++ b/slides/src/i18n/packs/ur.ts@@ -767,4 +767,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "کلک پر حرکت: اس سلائیڈ پر اگلی کلید کی n ویں دبانے تک پوشیدہ (0 = سلائیڈ کے ساتھ دکھایا جائے)","hidden": "پوشیدہ","unnumbered": "بغیر نمبر",+ "Embed": "ایمبیڈ",+ "Web page": "ویب صفحہ",+ "No view yet. Capture a picture of the page so it shows offline.": "ابھی کوئی منظر نہیں۔ صفحے کی تصویر لیں تاکہ یہ آف لائن دکھے۔",+ "View embedded in the file": "منظر فائل میں ایمبیڈ ہے",+ "View is a link. It needs the network and shows nothing offline.": "منظر ایک لنک ہے۔ اسے نیٹ ورک چاہیے اور آف لائن کچھ نہیں دکھاتا۔",+ "Replace view…": "منظر بدلیں…",+ "Capture view…": "منظر لیں…",+ "Page URL": "صفحے کا URL",+ "The web page the live frame loads while online (http or https)": "وہ ویب صفحہ جو لائیو فریم آن لائن ہوتے ہوئے لوڈ کرتا ہے (http یا https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "آن لائن ہوتے ہوئے صفحے کو سینڈ باکسڈ فریم میں لوڈ کریں۔ آف لائن، یا آف لائن موڈ آن ہونے پر، لیا گیا منظر دکھایا جاتا ہے۔",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "لائیو فریم صرف آن لائن لوڈ ہوتا ہے۔ آف لائن موڈ اور نیٹ ورک نہ ہونے پر لیا گیا منظر دکھایا جاتا ہے۔",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "پیش کرتے وقت کلک کیا گیا فریم تیر والی کلیدیں اپنے پاس رکھتا ہے جب تک آپ اس کے باہر کلک نہ کریں۔ اس ڈیک کو پیش کرنے والا ہر شخص صفحہ اس کی سائٹ سے لوڈ کرتا ہے۔",}diff --git a/slides/src/i18n/packs/vi.ts b/slides/src/i18n/packs/vi.tsindex ea993a59..68a2ffe7 100644--- a/slides/src/i18n/packs/vi.ts+++ b/slides/src/i18n/packs/vi.ts@@ -747,4 +747,16 @@ export const strings: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Hoạt ảnh khi nhấp: ẩn cho đến lần nhấn → thứ n trên trang chiếu này (0 = hiện cùng trang chiếu)","hidden": "đã ẩn","unnumbered": "không đánh số",+ "Embed": "Nhúng",+ "Web page": "Trang web",+ "No view yet. Capture a picture of the page so it shows offline.": "Chưa có ảnh xem. Chụp ảnh trang để hiển thị khi ngoại tuyến.",+ "View embedded in the file": "Ảnh xem được nhúng trong tệp",+ "View is a link. It needs the network and shows nothing offline.": "Ảnh xem là một liên kết. Cần mạng và không hiển thị gì khi ngoại tuyến.",+ "Replace view…": "Thay ảnh xem…",+ "Capture view…": "Chụp ảnh xem…",+ "Page URL": "URL trang",+ "The web page the live frame loads while online (http or https)": "Trang web mà khung trực tiếp tải khi trực tuyến (http hoặc https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Tải trang trong khung cách ly khi trực tuyến. Khi ngoại tuyến, hoặc bật chế độ ngoại tuyến, ảnh xem đã chụp sẽ hiển thị thay thế.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Khung trực tiếp chỉ tải khi trực tuyến. Chế độ ngoại tuyến và không có mạng sẽ hiển thị ảnh xem đã chụp.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Khi trình bày, khung được nhấp sẽ giữ các phím mũi tên cho đến khi bạn nhấp ra ngoài. Mọi người trình bày bộ trang chiếu này đều tải trang từ trang web của nó.",}diff --git a/slides/src/i18n/pt.ts b/slides/src/i18n/pt.tsindex 776aa2d4..1f738342 100644--- a/slides/src/i18n/pt.ts+++ b/slides/src/i18n/pt.ts@@ -809,4 +809,16 @@ export const pt: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Animar ao clicar: oculto até ao n-ésimo → neste slide (0 = visível com o slide)","hidden": "oculto","unnumbered": "sem número",+ "Embed": "Incorporação",+ "Web page": "Página web",+ "No view yet. Capture a picture of the page so it shows offline.": "Ainda não há visualização. Capture uma imagem da página para que apareça offline.",+ "View embedded in the file": "Visualização incorporada no arquivo",+ "View is a link. It needs the network and shows nothing offline.": "A visualização é um link. Precisa de rede e não mostra nada offline.",+ "Replace view…": "Substituir visualização…",+ "Capture view…": "Capturar visualização…",+ "Page URL": "URL da página",+ "The web page the live frame loads while online (http or https)": "A página web que o quadro ao vivo carrega enquanto online (http ou https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Carrega a página em um quadro isolado enquanto online. Offline, ou com o modo offline ativado, a visualização capturada é mostrada.",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "O quadro ao vivo só carrega online. O modo offline e a falta de rede mostram a visualização capturada.",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Ao apresentar, uma moldura em que clicou retém as teclas de seta até clicar fora dela. Quem apresentar esta apresentação carrega a página a partir do respetivo site.",}diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.tsindex a82f7b5d..17e2aab7 100644--- a/slides/src/i18n/zh-Hans.ts+++ b/slides/src/i18n/zh-Hans.ts@@ -811,4 +811,16 @@ export const zhHans: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "单击时动画:在此幻灯片上按第 n 次 → 之前隐藏(0 = 随幻灯片显示)","hidden": "已隐藏","unnumbered": "不编号",+ "Embed": "嵌入",+ "Web page": "网页",+ "No view yet. Capture a picture of the page so it shows offline.": "还没有视图。请截取页面图片,以便离线时显示。",+ "View embedded in the file": "视图已嵌入文件",+ "View is a link. It needs the network and shows nothing offline.": "视图是一个链接。它需要网络,离线时不显示任何内容。",+ "Replace view…": "替换视图…",+ "Capture view…": "截取视图…",+ "Page URL": "页面网址",+ "The web page the live frame loads while online (http or https)": "联网时实时框架加载的网页(http 或 https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "联网时在沙盒框架中加载页面。离线或开启离线模式时,改为显示截取的视图。",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "实时框架仅在联网时加载。离线模式和无网络时显示截取的视图。",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "演示时,点击过的框架会占用方向键,直到你在其外部点击。所有演示此文稿的人都会从该网站加载页面。",}diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.tsindex 4f9c02be..04d43f71 100644--- a/slides/src/i18n/zh-Hant.ts+++ b/slides/src/i18n/zh-Hant.ts@@ -811,4 +811,16 @@ export const zhHant: Catalog = {"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "點擊時動畫:在此投影片上按第 n 次 → 之前隱藏(0 = 隨投影片顯示)","hidden": "已隱藏","unnumbered": "不編號",+ "Embed": "嵌入",+ "Web page": "網頁",+ "No view yet. Capture a picture of the page so it shows offline.": "還沒有檢視。請擷取頁面圖片,以便離線時顯示。",+ "View embedded in the file": "檢視已嵌入檔案",+ "View is a link. It needs the network and shows nothing offline.": "檢視是一個連結。它需要網路,離線時不會顯示任何內容。",+ "Replace view…": "取代檢視…",+ "Capture view…": "擷取檢視…",+ "Page URL": "頁面網址",+ "The web page the live frame loads while online (http or https)": "連線時即時框架載入的網頁(http 或 https)",+ "Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "連線時在沙箱框架中載入頁面。離線或開啟離線模式時,改為顯示擷取的檢視。",+ "The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "即時框架僅在連線時載入。離線模式和沒有網路時會顯示擷取的檢視。",+ "While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "簡報時,點擊過的框架會佔用方向鍵,直到你在其外部點擊。所有簡報此文稿的人都會從該網站載入頁面。",}diff --git a/slides/src/model.ts b/slides/src/model.tsindex 4254e193..88090663 100644--- a/slides/src/model.ts+++ b/slides/src/model.ts@@ -342,8 +342,39 @@ export interface MediaElement extends ElementBase {controls?: boolean}+/**+ * An embedded artifact, built to the `bento/embed` shape+ * (docs/DECISIONS.md, 2026-08-19) so it round-trips through upstream shells.+ * Three tiers, and the ORDER is the design: `view` is a static render that+ * ALWAYS paints, with no extra code, in any app; `doc` is the source, so the+ * embed is not a screenshot; a live sandboxed iframe is OPT-IN per element.+ *+ * `app: 'web'` with a `url` is a live web surface on a slide. The+ * frame is created only while online AND with the offline switch off+ * (render.ts:liveFrameAllowed); otherwise the view shows. Unknown `app`+ * values are RENDERED (their view), never rejected.+ */+/** The one scheme test for an embed's `url`, shared by the paste gate+ * (untrusted.ts) and the live-frame gate (render.ts) so they cannot drift. */+export const isWebUrl = (v: string): boolean => /^https?:\/\//i.test(v)++export interface EmbedElement extends ElementBase {+ type: 'embed'+ /** the app that made it: 'bento/dash', 'bento/type', … or 'web' for a page */+ app: string+ /** the static render: raw <svg> markup, or "asset:<key>" holding it */+ view: string+ /** the source, when there is one: pure JSON, or "asset:<key>" */+ doc?: unknown+ /** app 'web' only: the page the live frame loads (http(s) only) */+ url?: string+ /** opt in to a sandboxed live iframe over the view while online */+ live?: boolean+}+export type SlideElement =| TextElement | ShapeElement | ImageElement | SvgElement | ChartElement | TableElement | MediaElement | CodeElement+ | EmbedElement/*** A review comment thread. Editor-only metadata: never rendered whilediff --git a/slides/src/modelkeys.generated.ts b/slides/src/modelkeys.generated.tsindex cc9aba83..b7f0e782 100644--- a/slides/src/modelkeys.generated.ts+++ b/slides/src/modelkeys.generated.ts@@ -21,6 +21,7 @@ export const MODEL_KEYS = {"chart": ["backdropFilter", "blend", "blur", "fx", "group", "groupId", "h", "id", "link", "morphId", "opacity", "option", "preset", "role", "rotation", "shadow", "showOnHover", "source", "themeRefs", "type", "w", "x", "y"],"table": ["backdropFilter", "blend", "blur", "columns", "fx", "group", "groupId", "h", "header", "id", "link", "morphId", "opacity", "role", "rotation", "rows", "shadow", "showOnHover", "style", "themeRefs", "type", "w", "x", "y"],"media": ["autoplay", "backdropFilter", "blend", "blur", "controls", "fit", "fx", "group", "groupId", "h", "id", "kind", "link", "loop", "morphId", "muted", "opacity", "poster", "radius", "role", "rotation", "shadow", "showOnHover", "src", "themeRefs", "type", "w", "x", "y"],+ "embed": ["app", "backdropFilter", "blend", "blur", "doc", "fx", "group", "groupId", "h", "id", "link", "live", "morphId", "opacity", "role", "rotation", "shadow", "showOnHover", "themeRefs", "type", "url", "view", "w", "x", "y"],},"fx": ["ambient", "countUp", "enter", "enterDur", "ken", "loop", "order", "step"],"fxKen": ["dir", "duration", "scale"],diff --git a/slides/src/render.ts b/slides/src/render.tsindex 61d435c9..ab07a1f2 100644--- a/slides/src/render.ts+++ b/slides/src/render.ts@@ -4,8 +4,8 @@// editor canvas, sidebar thumbnails, and Reveal.js sections.import { offlineEnabled, isRemoteUrl, remoteSrcBlocked } from '../../kernel/src/net.ts'-import type { BentoDoc, ShapeElement, Slide, SlideElement, SvgElement, TableElement } from './model'-import { morphKey, paginates } from './model'+import type { BentoDoc, EmbedElement, ShapeElement, Slide, SlideElement, SvgElement, TableElement } from './model'+import { morphKey, paginates, isWebUrl } from './model'import { chartSnapshotSvg } from './charts'import temml from 'temml'import { renderCodeInto } from './code'@@ -137,6 +137,48 @@ function svgMarkup(el: SvgElement, doc: BentoDoc): string {return (el.asset ? doc.assets?.[el.asset] : el.markup) ?? ''}+// --- embed -----------------------------------------------------++/** The only url a live frame will load. Judged here as well as at the paste+ * boundary, because a deck opened from disk never passes through untrusted.ts. */++/**+ * May this embed get a live iframe right now?+ *+ * Two different kinds of offline, one answer. Bento's offline switch is a+ * privacy promise ("nothing leaves this computer") and is asked through+ * net.ts, the one place that knows it; a missing network is `navigator.onLine`.+ * Both fall back to `view`, which is what makes the deck presentable on+ * conference wifi and what keeps the switch honest. Pure, so the rig can+ * inspect the decision without a DOM (scripts/test-embed.ts).+ */+export function liveFrameAllowed(el: EmbedElement): boolean {+ if (el.live !== true || el.app !== 'web') return false+ const url = typeof el.url === 'string' ? el.url.trim() : ''+ if (!isWebUrl(url) || remoteSrcBlocked(url)) return false+ const nav = typeof navigator !== 'undefined' ? navigator : undefined+ return !nav || nav.onLine !== false+}++/**+ * The live frame. Sandboxed with NO `allow-same-origin` and no top+ * navigation: every deck is untrusted input, and a page of someone else's+ * choosing gets a screen, never this document. `error` swaps back to the+ * view underneath; the view is never removed, so a frame that fails to paint+ * still leaves a picture.+ */+function liveFrame(el: EmbedElement, opts: RenderOpts): HTMLIFrameElement {+ const frame = document.createElement('iframe')+ frame.setAttribute('sandbox', 'allow-scripts allow-forms')+ frame.referrerPolicy = 'no-referrer'+ frame.title = el.url ?? ''+ frame.style.cssText = 'position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:transparent'+ + (opts.liveMedia ? '' : ';pointer-events:none') // inert on the canvas, same reason as media+ frame.addEventListener('error', () => frame.remove(), { once: true })+ frame.src = el.url!.trim()+ return frame+}+/*** Scope injected svg CSS to one element instance. svg <style> applies* document-wide, so unscoped rules from one diagram would leak into every@@ -1210,6 +1252,50 @@ export function renderElement(el: SlideElement, doc: BentoDoc, opts: RenderOpts}break}+ case 'embed': {+ // The view ALWAYS paints, by the svg element's own two+ // paths: an inert data-URI <img> for thumbnails, sanitizeSvg live. An+ // unknown `app` is rendered, not rejected: its view is still a picture.+ // The live frame is layered on top only when liveFrameAllowed says so,+ // and never in a thumbnail, which must not reach the network for a+ // sidebar.+ node.dataset.embed = '1'+ node.style.overflow = 'hidden' // .bento-el is already positioned; the frame sits over the view+ const markup = resolveAsset(doc, el.view ?? '')+ let painted = false+ if (markup) {+ if (opts.svgAsImage) {+ const img = document.createElement('img')+ img.src = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(markup)+ img.draggable = false+ img.style.cssText = 'width:100%;height:100%;object-fit:contain;display:block'+ node.appendChild(img)+ painted = true+ } else {+ node.appendChild(sanitizeSvg(markup, `[data-el-id="${CSS.escape(el.id)}"]`))+ const svg = node.querySelector('svg')+ if (svg) {+ svg.style.width = '100%'+ svg.style.height = '100%'+ svg.style.display = 'block'+ painted = true+ }+ }+ }+ if (!painted) {+ // Never an empty box: a view that is missing or was refused still+ // says what it is, and its source is still there to open elsewhere.+ const ph = document.createElement('div')+ ph.style.cssText = 'width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#eef2f7;color:#93a2b6;font-size:14px'+ ph.textContent = el.app === 'web' && el.url ? el.url : `⧉ ${el.app || 'embed'}`+ node.appendChild(ph)+ }+ // ...and only on a LIVE surface (present mode passes liveMedia). The+ // editor canvas re-renders on every edit; a frame there would navigate+ // to the author's URL on each repaint, inert or not.+ if (!opts.svgAsImage && opts.liveMedia && liveFrameAllowed(el)) node.appendChild(liveFrame(el, opts))+ break+ }case 'code': {node.style.display = 'flex'node.style.flexDirection = 'column'diff --git a/slides/src/untrusted.ts b/slides/src/untrusted.tsindex 979a96af..a4fb92f8 100644--- a/slides/src/untrusted.ts+++ b/slides/src/untrusted.ts@@ -39,7 +39,9 @@// untrusted intake — remote CRDT ops off the relay — can adopt the same// checks, key by key, through `checkElementProp`.+import { stripEnvelope } from './envelope'import type { Slide, SlideElement } from './model'+import { isWebUrl } from './model'import { parseThemeRef } from './palette.ts'import { MODEL_KEYS } from './modelkeys.generated'@@ -311,6 +313,30 @@ const chartOption: Check = (v) => {return pure(v, LIMITS.optionDepth) ? v : DROP}+/**+ * The `embed` element. `url` is what a live iframe LOADS, so it+ * is held to http(s) and nothing else: a `javascript:` or `data:` page in a+ * sandboxed frame cannot reach this document, but it would still be a page+ * of someone else's choosing running on the reader's screen. `view` is svg+ * markup or an `asset:` ref and gets the svg element's own ceiling; what the+ * renderer does with the markup is the renderer's business (sanitizeSvg).+ * `doc` is the source: an asset ref, or the same bounded plain JSON a chart+ * option is held to: a source is data, never code (docs/format.md).+ */+// Not held to CSS_BREAKOUT: a query string legitimately carries `;` and+// quotes, and the one consumer assigns it as a DOM property (`iframe.src`),+// where it is a value and never re-parsed as markup (the mediaRef argument).+const webUrl: Check = (v) =>+ typeof v === 'string' && v.length <= LIMITS.prose && isWebUrl(v) ? v : DROP+// An embedded document is another deck's JSON, and a deck's envelope carries+// its collaboration secrets: `collab` (room, read key, private halves, and the+// saved sync state) and `docId`. Neither is content. Left in place they would+// pass this gate, survive every save by additivity, and travel with every copy+// and export — and the export-secrets rig reads the top-level block only. So+// an object source leaves here without them, whatever put them there — by the+// same rule the export strip applies on the way out (envelope.ts).+const embedDoc: Check = (v) => (typeof v === 'string' ? cssValue()(v) : stripEnvelope(chartOption(v)))+// `el` is required: a connector end with no element to anchor to is dangling,// and editor.syncConnectors drops those anywayconst connectorEnd = shape(MODEL_KEYS.connectorEnd, {@@ -395,6 +421,8 @@ const ELEMENT_CHECKS: Record<string, Check> = {source: shape(['tableId'], { tableId: cssValue() }, ['tableId']),columns: list(LIMITS.cols, shape(['w'], { w: num(0, 1e6) }, ['w'])),rows: tableRows, header: bool, style: tableStyle,+ // embed+ app: cssValue(), view: str(LIMITS.markup), doc: embedDoc, url: webUrl, live: bool,type: oneOf(...Object.keys(MODEL_KEYS.element)),}@@ -424,7 +452,9 @@ const ELEMENT_CHECKS: Record<string, Check> = {* throwing — losing a whole pasted element over a defaultable number is the* worse trade. `svg` is absent for a different reason: its content comes from* `markup` OR `asset` (2 of the 4780 elements in a real deck use the asset- * form), and svgMarkup already falls back to ''.+ * form), and svgMarkup already falls back to ''. `embed` is+ * absent for the same reason: an empty or refused `view` paints a+ * placeholder, never throws.*/const REQUIRED_ELEMENT_KEYS: Record<string, readonly string[]> = {text: ['html'],diff --git a/slides/src/validate.ts b/slides/src/validate.tsindex 6ce7494a..a53df087 100644--- a/slides/src/validate.ts+++ b/slides/src/validate.ts@@ -24,6 +24,7 @@import type { BentoDoc, Slide, SlideElement, TextElement } from './model.ts'import { MODEL_KEYS } from './modelkeys.generated.ts'+import { isRemoteUrl } from '../../kernel/src/net.ts'import { measureElements } from './measure.ts'import { eachRef, paletteOf, parseThemeRef, resolveRef, _readPath } from './palette.ts'@@ -345,7 +346,7 @@ export function validateDoc(doc: BentoDoc, opts: ValidateOpts = {}): ValidateResmessage: `Connector ${side} references element "${end.el}", which is not on this slide — that end is dropped and stops following.` })}}- for (const key of ['src', 'asset', 'poster'] as const) {+ for (const key of ['src', 'asset', 'poster', 'view'] as const) {const ref = (el as any)[key]if (typeof ref === 'string' && ref.startsWith('asset:') && !assets[ref.slice(6)]) {add({ ...at, code: 'missing-asset', severity: 'error', path: key,@@ -353,6 +354,29 @@ export function validateDoc(doc: BentoDoc, opts: ValidateOpts = {}): ValidateRes}}+ // embed -------------------------------------------------+ // The view is the tier that ALWAYS paints: offline, in thumbnails, in+ // print and in an upstream shell that has never heard of `app`. Without+ // it the element is a hole; pointing it at the network breaks the+ // offline guarantee the whole shape exists to keep.+ if (el.type === 'embed') {+ const view = typeof el.view === 'string' ? el.view.trim() : ''+ if (!view) {+ add({ ...at, code: 'embed-missing-view', severity: 'error', path: 'view',+ message: 'Embed has no view. It renders as an empty box offline, in thumbnails and in print. Set view to inline <svg> markup or an "asset:" key holding it.' })+ } else if (!view.startsWith('<') && !view.startsWith('asset:') && isRemoteUrl(view)) {+ // markup and asset refs are judged first: in a browser isRemoteUrl+ // resolves any bare string against the page, and "<svg…" would+ // come back as a relative http url+ add({ ...at, code: 'embed-remote-view', severity: 'warning', path: 'view',+ message: 'Embed view is a URL. It needs the network to show and paints nothing offline. Capture the view into doc.assets instead.' })+ }+ if (el.live && el.app === 'web' && !(typeof el.url === 'string' && /^https?:\/\//i.test(el.url))) {+ add({ ...at, code: 'embed-live-no-url', severity: 'warning', path: 'url',+ message: 'live is on but url is not an http(s) address. No frame is created, only the view shows.' })+ }+ }+if (el.type === 'text') checkFamily((el as TextElement).fontFamily, at)// charts ---------------------------------------------------------------