Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

slides: clickable web links, * and indented bullets, and a complete shortcut list (#465)

nyblnetc7e303098af9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 975a802f..1f5e48fe 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1331,6 +1331,14 @@ jobs:
# step. Decisions in slides/src/steps.ts, DOM-free (#282, option 2).
run: node scripts/test-slides-steps.ts
+ - name: Web links and bullets rig
+ # A link is one thing in four places — isWebUrl — and every surface
+ # that lets a URL in or out asks it: the shape gate, the text
+ # sanitizer, the markdown converters, and the show before it opens a
+ # NEW tab with noopener,noreferrer. javascript:/data: are text.
+ # Bullets from "- " and "* ", indented sub-bullets. (#421, #255, #368)
+ run: node scripts/test-slides-links.ts
+
- name: Audience projection rig
# Live broadcast: the handout, the join snapshot and every streamed op
# go through slides/src/audience.ts, which keeps back speaker notes
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 79453214..83eaa9be 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -42,6 +42,20 @@ pre-1.0.
the slide number, and an audience following a live broadcast follows the
steps 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.
+- **Clickable links.** Give any element a *Web link* in the Presenting
+ section, or type `[caption](https://…)` in a text box, and clicking it
+ during the show opens the page in a new tab — never navigating the deck
+ away, never telling the page where it came from. Only `https://` and
+ `http://` count as links; anything else stays plain text. In the editor a
+ link is just text to edit. Offline mode keeps its promise: links are off
+ while it is on. Asked for by Hermholtz (#373, #374, #421).
+- **`*` makes a bullet, and bullets can indent.** Typing `* ` at the start
+ of a line makes a bullet like `- ` does, and two or more spaces before
+ either makes an indented sub-bullet — while typing and when pasting
+ markdown. (#255 and #368.)
+- **The `?` shortcut list is complete.** It now names black screen (`B`),
+ the all-slides grid (`G`), the side-panel toggles (`[` `]`), bold/italic/
+ underline, the zoom keys, and the arrow keys' two jobs. (#269.)
- **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,
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md
index 6a08d4d2..76a95ed1 100644
--- a/docs/DECISIONS.md
+++ b/docs/DECISIONS.md
@@ -6851,3 +6851,36 @@ says plaintext, and a chat AI reads it); subsetting fonts to used glyphs
`#bento-doc` (an old shell re-serialises from the doc alone and would drop
them). The next lever is photos — there is no downscale or recompression at
insert today — and that is format-neutral.
+## 2026-09-14 — Web links: one scheme test, a new tab, and never from the editor
+
+Issue #421 (discussions #373, #374). A deck can now link out: an element's
+`link` may be an http(s) URL as well as a slide id, and `[caption](https://…)`
+in a text box becomes an `<a href>`. The decisions, because each one is a
+place a later change could quietly loosen:
+
+**One scheme test, four callers.** `isWebUrl` in `model.ts` — http and https
+only, bounded length, no quote or angle bracket — is asked by the shape gate
+(an element `link` is a web URL or a slide id), the text sanitizer (an `<a>`
+keeps its href only when it passes, and is UNWRAPPED to its text otherwise —
+never kept href-less), the markdown converters, and the show before it opens
+anything. `javascript:` and `data:` are text everywhere. Measured in Chrome
+against the sanitizer: a web anchor keeps exactly its href and no other
+attribute; `javascript:`/`data:`/attribute-less anchors become plain text.
+
+**Always a new tab, never a navigation.** The file IS the presentation; a
+same-tab navigation would end the show and, on a `file://` deck, leave
+nothing to come back to. `window.open(url, '_blank', 'noopener,noreferrer')`
+— `noopener` so the page cannot reach this window, `noreferrer` so the deck's
+location is not sent. `target`/`rel` are decided at click time and never
+stored in the document, so no document can ask for `_top` or `opener`.
+
+**Never from the editor.** A click on a link in the canvas edits text; it
+does not follow the link. Links open only from the show.
+
+**The offline switch is honoured.** A viewer who asked for no network activity
+does not get a browser tab making a request on a click; the show says so in a
+toast. Measured: with the switch on, a click opens nothing.
+
+Also in the same change, unrelated to security: `* ` makes a bullet like `- `
+(#255), two or more leading spaces make an indented sub-bullet (#368), and the
+`?` overlay lists the shortcuts it had been missing (#269).
diff --git a/scripts/test-sanitize.ts b/scripts/test-sanitize.ts
index 6364f2b2..9f23d192 100644
--- a/scripts/test-sanitize.ts
+++ b/scripts/test-sanitize.ts
@@ -371,24 +371,44 @@ if (location.pathname === '/meta.html') {
check('3 — no <base> survives the walk', based.querySelectorAll('base').length === 0)
check('3 — relative urls still resolve against this document', document.baseURI === baseBefore)
+ // --- 3b. links in text ---------------------------------------------------
+ // <a href> is allowed now (issue #421) — with a web URL only, and no
+ // other attribute. The three shapes that would matter: a javascript:
+ // href, an event handler on an allowed anchor, and a target that would
+ // let the page reach this window. All decided at click time in present.ts;
+ // none stored.
+ const linked = sanitizeHtml('<a href="https://bento.page/" onclick="window.__pwn(31)" target="_top" rel="opener">ok</a>' +
+ '<a href="javascript:window.__pwn(32)">bad</a><a href="data:text/html,x">bad2</a><a>plain</a>')
+ const box = document.createElement('div'); box.innerHTML = linked
+ const anchors = Array.from(box.querySelectorAll('a'))
+ check('3b — a web link keeps exactly its href and nothing else',
+ anchors.length === 1 && anchors[0].getAttribute('href') === 'https://bento.page/' && anchors[0].attributes.length === 1)
+ check('3b — javascript:/data:/attribute-less anchors are unwrapped to their text',
+ box.textContent === 'okbadbad2plain' && !linked.includes('javascript:') && !linked.includes('data:'))
+ // NOT clicked: a click on the surviving https anchor navigates the probe
+ // away and it reports nothing (the same trap the click loop below avoids).
+ // The handler cannot survive without the attribute, which is asserted.
+ check('3b — no handler attribute survives on the surviving anchor', !linked.includes('onclick') && !linked.includes('__pwn(31)'))
+
// --- 3c. nested markup is walked like top-level markup -----------------
// An allowed tag inside a tag the walk does not know, at any depth, is
- // held to the same rule as one at the top level. Control: the same child
- // under an allowed parent.
+ // held to the same rule as one at the top level; a refused anchor's
+ // contents likewise. Control: the same child under an allowed parent.
const nested = sanitizeHtml(
'<section><b onclick="window.__pwn(41)">a</b></section>' +
'<foo><span style="position:fixed;inset:0">b</span></foo>' +
'<div><foo><bar><i onmouseover="window.__pwn(42)">c</i></bar></foo></div>' +
+ '<a href="javascript:window.__pwn(43)"><b onclick="window.__pwn(44)">d</b></a>' +
'<div><b onclick="window.__pwn(45)">e</b></div>')
const nbox = document.createElement('div'); nbox.innerHTML = nested
check('3c — nested markup is walked like top-level markup: no attribute survives at any depth',
- !nbox.querySelector('[onclick],[onmouseover],[style]') && nbox.textContent === 'abce')
+ !nbox.querySelector('[onclick],[onmouseover],[style]') && nbox.textContent === 'abcde')
document.body.appendChild(nbox)
for (const el of Array.from(nbox.querySelectorAll('b, i, span'))) {
el.dispatchEvent(new MouseEvent('click', { bubbles: true }))
el.dispatchEvent(new MouseEvent('mouseover', { bubbles: true }))
}
- check('3c — and clicking or hovering the lifted elements runs nothing', ![41, 42, 45].some((n) => pwned.includes(n)))
+ check('3c — and clicking or hovering the lifted elements runs nothing', ![41, 42, 44, 45].some((n) => pwned.includes(n)))
// --- 4. network out of a self-contained file -------------------------------
draw('<div>x</div><link rel="stylesheet" href="' + O + '/tracker.css">' +
diff --git a/scripts/test-slides-links.ts b/scripts/test-slides-links.ts
new file mode 100644
index 00000000..aa66ded1
--- /dev/null
+++ b/scripts/test-slides-links.ts
@@ -0,0 +1,81 @@
+#!/usr/bin/env node
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+// Web links and bullets in text (discussions #373/#374 → issue #421; #255, #368).
+//
+// node scripts/test-slides-links.ts
+//
+// WHAT THIS PROVES. A link is one thing in four places — `isWebUrl` — and
+// every surface that lets a URL in or out asks it: the shape gate for an
+// element `link`, the text sanitizer for an `<a href>`, the markdown
+// converters for `[caption](url)`, and the show before it opens anything.
+// http and https only; `javascript:` is text, `data:` is text. What opens is
+// a NEW tab with noopener+noreferrer, never a navigation of the deck, and
+// never in the editor (a click on a link there edits text). The offline
+// switch is honoured. The pure halves run here; the DOM halves are pinned by
+// shape against their files, and test-sanitize.ts drives the sanitizer in a
+// real browser.
+
+import { readFileSync } from 'node:fs'
+import { fileURLToPath } from 'node:url'
+import { dirname, join } from 'node:path'
+import { isWebUrl } from '../slides/src/model.ts'
+import { markdownToHtml } from '../slides/src/editor/markdown.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}`)
+}
+
+console.log('isWebUrl — the one scheme test\n')
+ok(isWebUrl('https://bento.page/') && isWebUrl('http://localhost:5199/x?y=1#z'), 'http and https are links')
+ok(!isWebUrl('javascript:alert(1)') && !isWebUrl('data:text/html,hi') && !isWebUrl('file:///etc/passwd'), 'javascript:, data: and file: are not')
+ok(!isWebUrl('bento.page') && !isWebUrl('slide-3') && !isWebUrl(''), 'a bare host or a slide id is not a web URL (so element links keep meaning slides)')
+ok(!isWebUrl('https://x.y/"onclick=1') && !isWebUrl('https://x.y/<script>'), 'a URL carrying a quote or angle bracket is refused (attribute breakout)')
+ok(!isWebUrl('https://' + 'a'.repeat(2100)), 'length is bounded')
+ok(!isWebUrl(42) && !isWebUrl(null), 'non-strings are not links')
+
+console.log('\nmarkdownToHtml — bullets\n')
+ok(markdownToHtml('- one\n- two') === '• one<br>• two', '"- " makes a bullet')
+ok(markdownToHtml('* one\n* two') === '• one<br>• two', '"* " makes a bullet too (#255)')
+ok(markdownToHtml('- top\n - sub\n * subsub') === '• top<br>  ◦ sub<br>    ◦ subsub',
+ 'two or more leading spaces make an indented sub-bullet, indent kept as NBSPs (#368)')
+ok(markdownToHtml('\\- not a bullet') === '- not a bullet' && markdownToHtml('\\* not a bullet') === '* not a bullet', 'escaped markers stay literal')
+ok(markdownToHtml('2 * 3 = 6') === '2 * 3 = 6', 'a * mid-line is arithmetic, not a bullet')
+ok(markdownToHtml('*em*') === '<i>em</i>', '*italic* still works — a bullet needs the trailing space at line start')
+
+console.log('\nmarkdownToHtml — links\n')
+ok(markdownToHtml('see [Bento](https://bento.page/) now') === 'see <a href="https://bento.page/">Bento</a> now', '[caption](https://…) becomes an anchor')
+ok(markdownToHtml('[x](javascript:alert(1))') === '[x](javascript:alert(1))', 'a javascript: "link" stays literal text')
+ok(markdownToHtml('[x](data:text/html,hi)') === '[x](data:text/html,hi)', 'so does data:')
+ok(markdownToHtml('[q](https://x.y/?a=1&b=2)') === '<a href="https://x.y/?a=1&amp;b=2">q</a>', 'an ampersand in the URL is escaped for the attribute')
+ok(markdownToHtml('[**bold**](https://x.y/)') === '<a href="https://x.y/"><b>bold</b></a>', 'inline formatting inside the caption survives')
+ok(markdownToHtml('a [b](https://x.y/) and - c') === 'a <a href="https://x.y/">b</a> and - c', 'a link mid-line, a dash mid-line: only the link converts')
+
+console.log('\nevery surface asks isWebUrl\n')
+const root = join(dirname(fileURLToPath(import.meta.url)), '..')
+const read = (f: string) => readFileSync(join(root, f), 'utf8')
+const render = read('slides/src/render.ts')
+ok(/'H1', 'H2', 'A',/.test(render) && /elChild\.tagName === 'A'[\s\S]{0,300}isWebUrl\(href\)/.test(render),
+ 'render.ts sanitizeHtml: <a> is allowed, keeps href only when isWebUrl, and is unwrapped otherwise')
+ok(/if \(isWebUrl\(href\)\) elChild\.setAttribute\('href', href\)[\s\S]{0,80}else \{ walk\(elChild\); while \(elChild\.firstChild\)/.test(render),
+ 'render.ts: an anchor with a non-web href is unwrapped to its text, not kept without href')
+const present = read('slides/src/present.ts')
+ok(/window\.open\(url, '_blank', 'noopener,noreferrer'\)/.test(present), 'present.ts opens a NEW tab with noopener,noreferrer')
+ok(/const openWeb = \(url: string\) => \{\s*if \(offlineEnabled\(\)\)/.test(present), 'present.ts honours the offline switch before opening')
+ok(/closest<HTMLAnchorElement>\('a\[href\]'\)[\s\S]{0,200}ev\.preventDefault\(\)[\s\S]{0,200}if \(isWebUrl\(href\)\) openWeb\(href\)/.test(present),
+ 'present.ts intercepts anchors inside text: preventDefault always, open only a web URL')
+ok(/const link = target\.dataset\.link \?\? ''\s*if \(isWebUrl\(link\)\)/.test(present), 'present.ts: an element link that is a web URL opens; a slide id still jumps')
+ok(/closest\('a\[href\]'\)\) ev\.preventDefault\(\)/.test(read('slides/src/editor/canvas.ts')), 'canvas.ts: a link click in the editor never navigates')
+ok(/addEventListener\('auxclick'[\s\S]{0,300}ev\.preventDefault\(\)[\s\S]{0,200}if \(isWebUrl\(href\)\) openWeb\(href\)/.test(present),
+ 'present.ts: a middle-click on an anchor goes through the same door (auxclick would otherwise bypass the offline gate and noreferrer)')
+ok(/link: \(v\) => \(isWebUrl\(v\) \? v : cssValue\(\)\(v\)\)/.test(read('slides/src/untrusted.ts')), 'untrusted.ts: the shape gate accepts a link that is a web URL or a slide id')
+ok(!/target="_blank"|rel="noopener"/.test(render), 'render.ts stores no target/rel — those are decided at click time, never in the document')
+ok(/querySelectorAll<HTMLAnchorElement>\('a\[href\]'\)\)\) a\.rel = 'noopener noreferrer'/.test(present),
+ 'present.ts sets rel at MOUNT on show anchors — the context-menu and drag routes, which bypass the click handler, then send no referrer')
+
+console.log(`\n${checks - failures}/${checks} checks passed`)
+process.exit(failures ? 1 : 0)
diff --git a/slides/src/editor/canvas.ts b/slides/src/editor/canvas.ts
index b6fd4e65..2fcb9f74 100644
--- a/slides/src/editor/canvas.ts
+++ b/slides/src/editor/canvas.ts
@@ -78,6 +78,12 @@ export class SlideCanvas {
this.scroller.className = 'ed-scroll'
this.stage = document.createElement('div')
this.stage.className = 'ed-stage'
+ // A link in text (<a href>, from [caption](url)) is content here, not a
+ // control: a click selects and edits like any other text, and never
+ // navigates the editor away. Links open only from the show (present.ts).
+ this.stage.addEventListener('click', (ev) => {
+ if ((ev.target as HTMLElement).closest('a[href]')) ev.preventDefault()
+ }, true)
this.scaleHost = document.createElement('div')
this.scaleHost.className = 'ed-stage-scale'
this.stage.appendChild(this.scaleHost)
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index afae3337..2849b670 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -2746,6 +2746,8 @@ export class Editor {
[`${mod}C · ${mod}V`, t('Copy · paste — elements, or the whole slide when nothing is selected')],
[`${mod}D`, t('Duplicate selection')],
[`${mod}G · ${mod}⇧G`, t('Group · ungroup')],
+ [`${mod}B · ${mod}I · ${mod}U`, t('Bold · italic · underline while editing text')],
+ ['[ · ]', t('Collapse · expand the side panels')],
['C', t('Comment mode')],
['?', t('This help')],
])
@@ -2753,6 +2755,8 @@ export class Editor {
[t('Space-drag'), t('Pan the canvas, including past the edges of the slide')],
[t('Middle-drag'), t('Pan as well, if your mouse has a middle button')],
[`${mod}-${t('scroll')}`, t('Zoom in and out')],
+ [`${mod}+ · ${mod}− · ${mod}0`, t('Zoom in · out · fit the slide')],
+ ['← · →', t('Walk the slides when nothing is selected; nudge the selection otherwise')],
])
section(colR, t('Lines & curves'), [
[t('Shape ▾'), t('Draw a line, curved line or connector — then drag on the canvas')],
@@ -2774,7 +2778,9 @@ export class Editor {
['S', t('Speaker view — notes on a second screen if you have one')],
['L', t('Toggle laser pointer while presenting')],
['M', t('Reduce motion — pause animations (also honours your OS setting)')],
- ['← · →', t('Previous · next slide')],
+ ['B', t('Black screen — and back')],
+ ['G', t('All slides in the speaker view — pick one to jump to')],
+ ['← · →', t('Previous · next slide, or the next reveal step on a slide that has them')],
['Esc', t('End the show')],
])
const tips = div('ed-help-sec')
diff --git a/slides/src/editor/markdown.ts b/slides/src/editor/markdown.ts
index ad05d2ca..131a6676 100644
--- a/slides/src/editor/markdown.ts
+++ b/slides/src/editor/markdown.ts
@@ -3,8 +3,9 @@
// Lightweight markdown affordances for text editing. Two entry points:
// - autoformatAtCaret: called on every input; when the text just before the
// caret completes an inline pattern (**bold**, *italic*, `code`, ~~strike~~)
-// the markers collapse into the real element, Notion-style. "- " at the
-// start of a line becomes a bullet glyph.
+// the markers collapse into the real element, Notion-style. "- " or "* " at
+// the start of a line becomes a bullet glyph (indented: a sub-bullet), and
+// [caption](https://…) becomes a link.
// - markdownToHtml: converts pasted plain text (inline patterns + bullets +
// line breaks) into the sanitized inline-HTML subset text elements store.
//
@@ -15,6 +16,8 @@
// list item moves the caret and captures Enter from then on. The bar is where
// a list is asked for explicitly; this is where a bullet is typed.
+import { isWebUrl } from '../model.ts'
+
const INLINE: Array<{ re: RegExp; tag: string }> = [
{ re: /\*\*([^*\n]+)\*\*$/, tag: 'b' },
{ re: /__([^_\n]+)__$/, tag: 'b' },
@@ -63,15 +66,37 @@ export function autoformatAtCaret(): boolean {
const off = sel.anchorOffset // capture — DOM mutation below resets the live selection
const upto = node.data.slice(0, off)
- // "- " at line start → bullet glyph (contentEditable renders the trailing
- // space as NBSP, so match both; keep NBSP so the glyph's gap can't collapse)
- if (/(?:^|\n)-[  ]$/.test(upto) && off >= 2 && isLineStart(node, off - 2)) {
+ // "- " or "* " at line start → bullet glyph (contentEditable renders the
+ // trailing space as NBSP, so match both; keep NBSP so the glyph's gap can't
+ // collapse). Indented by two or more spaces → a hollow sub-bullet, the
+ // indent kept (discussions #255, #368).
+ const bullet = upto.match(/(?:^|\n)([  ]{2,})?[-*][  ]$/)
+ if (bullet && off >= 2 && isLineStart(node, off - 2 - (bullet[1]?.length ?? 0))) {
const source = node.data.slice(off - 2, off)
- node.replaceData(off - 2, 2, '• ')
+ node.replaceData(off - 2, 2, bullet[1] ? '◦ ' : '• ')
placeCaret(node, off)
lastFormat = { kind: 'bullet', node, offset: off - 2, source }
return true
}
+ // [caption](https://…) → a link. Only a web URL: the same test the show and
+ // the sanitizer apply, so a javascript: "link" is just the literal text.
+ const link = upto.match(/\[([^\[\]\n]+)\]\((https?:\/\/[^\s()]+)\)$/i)
+ if (link && isWebUrl(link[2])) {
+ const start = off - link[0].length
+ const a = document.createElement('a')
+ a.setAttribute('href', link[2])
+ a.textContent = link[1]
+ const tail = document.createTextNode('\u200b')
+ const range = document.createRange()
+ range.setStart(node, start)
+ range.setEnd(node, off)
+ range.deleteContents()
+ range.insertNode(tail)
+ range.insertNode(a)
+ placeCaret(tail, 1)
+ lastFormat = { kind: 'inline', el: a, source: link[0], tail }
+ return true
+ }
for (const { re, tag } of INLINE) {
const m = upto.match(re)
@@ -133,7 +158,12 @@ export function markdownToHtml(text: string): string {
const out = withParked
.split('\n')
.map((line) => {
- let s = escapeHtml(line).replace(/^(\s*)- /, '$1• ')
+ // "- " / "* " → bullet; indented two+ spaces → sub-bullet, indent kept as
+ // NBSPs so it survives HTML whitespace collapsing
+ let s = escapeHtml(line).replace(/^( {2,})[-*] /, (_, sp: string) => '\u00a0'.repeat(sp.length) + '◦ ')
+ .replace(/^( ?)[-*] /, '$1• ')
+ s = s.replace(/\[([^\[\]]+)\]\((https?:\/\/[^\s()]+)\)/gi, (m, cap: string, href: string) =>
+ isWebUrl(href) ? `<a href="${href.replaceAll('"', '&quot;')}">${cap}</a>` : m)
s = s.replace(/\*\*([^*]+)\*\*/g, '<b>$1</b>')
s = s.replace(/__([^_]+)__/g, '<b>$1</b>')
s = s.replace(/(?<![*\w])\*([^*]+)\*/g, '<i>$1</i>')
diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.ts
index eec7633c..c272015f 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, type BentoDoc, type EmbedElement } from '../model'
+import { MEDIA_EMBED_BUDGET, applyChartPalette, defaultChart, internAsset, morphKey, paginates, isWebUrl, 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'
@@ -64,6 +64,7 @@ const ROW_TIPS: Record<string, string> = {
'Show on hover': 'Puts this element in a hover set — visible only while that set is active',
'Group': 'Presentation group — with focus-group hover, the other groups dim',
'Link to': 'Clicking this element during the show jumps to the chosen slide',
+ 'Web link': 'Clicking this element during the show opens this web page in a new tab (https:// only)',
'Font': 'Typeface for this text',
'Size (pt)': 'Font size in points',
'Weight': 'Font weight — 400 regular, 700 bold',
@@ -840,12 +841,37 @@ export class PropsPanel {
if (el.link === s.id) o.selected = true
sel.appendChild(o)
})
+ if (isWebUrl(el.link)) {
+ const web = document.createElement('option')
+ web.value = el.link
+ web.textContent = t('web page (below)')
+ web.selected = true
+ sel.appendChild(web)
+ }
sel.addEventListener('change', () =>
this.mutate(el.id, (e) => {
if (sel.value) e.link = sel.value
else delete e.link
}, true))
this.row('Link to', sel)
+ // Or a web page: opens in a new tab while presenting (discussion #373).
+ const url = document.createElement('input')
+ url.type = 'url'
+ url.placeholder = 'https://…'
+ url.value = isWebUrl(el.link) ? el.link : ''
+ url.addEventListener('change', () => {
+ const v = url.value.trim()
+ if (v && !isWebUrl(v)) {
+ this.toast(t('That doesn’t look like a web address — it should start with https://'))
+ url.value = isWebUrl(el.link) ? el.link : ''
+ return
+ }
+ this.mutate(el.id, (e) => {
+ if (v) e.link = v
+ else if (isWebUrl(e.link)) delete e.link
+ }, true)
+ })
+ this.row('Web link', url)
// one-click interactivity: duplicate this slide as a hidden state
// (element ids preserved ⇒ it morphs) and link this element to it
diff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.ts
index e2b375cc..880fbc0b 100644
--- a/slides/src/i18n/de.ts
+++ b/slides/src/i18n/de.ts
@@ -811,6 +811,22 @@ 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",
+ "Web link": "Weblink",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Ein Klick auf dieses Element öffnet in der Vorführung diese Webseite in einem neuen Tab (nur https://)",
+ "web page (below)": "Webseite (unten)",
+ "That doesn’t look like a web address — it should start with https://": "Das sieht nicht wie eine Webadresse aus — sie sollte mit https:// beginnen",
+ "Links are off in offline mode": "Links sind im Offline-Modus aus",
+ "Bold · italic · underline while editing text": "Fett · kursiv · unterstrichen beim Bearbeiten von Text",
+ "Collapse · expand the side panels": "Seitenleisten ein- · ausklappen",
+ "Zoom in · out · fit the slide": "Vergrößern · verkleinern · Folie einpassen",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Folien durchgehen, wenn nichts ausgewählt ist; sonst die Auswahl verschieben",
+ "Black screen — and back": "Schwarzer Bildschirm — und zurück",
+ "All slides in the speaker view — pick one to jump to": "Alle Folien in der Referentenansicht — eine auswählen, um dorthin zu springen",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Vorherige · nächste Folie, oder der nächste Aufdeckschritt auf einer Folie mit Schritten",
+ "Add a code snippet": "Codeausschnitt hinzufügen",
+ "Source Code": "Quellcode",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Kopiert dieses Deck als reines JSON — nur Inhalt, keine Live-Sitzungsschlüssel. In einem anderen Werkzeug bearbeiten und mit „Aus JSON ersetzen“ zurückholen.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Der Offline-Modus ist für diesen Tab an, konnte aber nicht gespeichert werden — dieser Browser blockiert Website-Daten, daher übersteht er kein Neuladen",
"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.",
diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.ts
index 1afbe12e..a319a2c7 100644
--- a/slides/src/i18n/es.ts
+++ b/slides/src/i18n/es.ts
@@ -811,6 +811,22 @@ 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",
+ "Web link": "Enlace web",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Al hacer clic en este elemento durante la presentación se abre esta página web en una pestaña nueva (solo https://)",
+ "web page (below)": "página web (abajo)",
+ "That doesn’t look like a web address — it should start with https://": "Eso no parece una dirección web: debería empezar por https://",
+ "Links are off in offline mode": "Los enlaces están desactivados en modo sin conexión",
+ "Bold · italic · underline while editing text": "Negrita · cursiva · subrayado al editar texto",
+ "Collapse · expand the side panels": "Contraer · expandir los paneles laterales",
+ "Zoom in · out · fit the slide": "Acercar · alejar · ajustar la diapositiva",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Recorre las diapositivas cuando no hay nada seleccionado; si no, desplaza la selección",
+ "Black screen — and back": "Pantalla en negro — y volver",
+ "All slides in the speaker view — pick one to jump to": "Todas las diapositivas en la vista del presentador: elige una para saltar a ella",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Diapositiva anterior · siguiente, o el siguiente paso de revelado en una diapositiva que los tenga",
+ "Add a code snippet": "Añadir un fragmento de código",
+ "Source Code": "Código fuente",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Copia esta presentación como JSON plano: solo contenido, sin claves de sesión en directo. Edítalo en otra herramienta y tráelo de vuelta con Reemplazar desde JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "El modo sin conexión está activado en esta pestaña, pero no se pudo guardar: este navegador bloquea los datos del sitio, así que no sobrevivirá a una recarga",
"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.",
diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.ts
index e5249c56..76137841 100644
--- a/slides/src/i18n/fr.ts
+++ b/slides/src/i18n/fr.ts
@@ -811,6 +811,22 @@ 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",
+ "Web link": "Lien web",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Cliquer sur cet élément pendant la présentation ouvre cette page web dans un nouvel onglet (https:// uniquement)",
+ "web page (below)": "page web (ci-dessous)",
+ "That doesn’t look like a web address — it should start with https://": "Cela ne ressemble pas à une adresse web — elle devrait commencer par https://",
+ "Links are off in offline mode": "Les liens sont désactivés en mode hors ligne",
+ "Bold · italic · underline while editing text": "Gras · italique · souligné pendant l’édition du texte",
+ "Collapse · expand the side panels": "Replier · déployer les panneaux latéraux",
+ "Zoom in · out · fit the slide": "Zoom avant · arrière · ajuster la diapositive",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Parcourt les diapositives quand rien n’est sélectionné ; sinon, déplace la sélection",
+ "Black screen — and back": "Écran noir — et retour",
+ "All slides in the speaker view — pick one to jump to": "Toutes les diapositives dans la vue présentateur — choisissez-en une pour y aller",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Diapositive précédente · suivante, ou l’étape de révélation suivante sur une diapositive qui en a",
+ "Add a code snippet": "Ajouter un extrait de code",
+ "Source Code": "Code source",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Copie cette présentation en JSON brut — contenu seulement, sans clés de session en direct. Modifiez-le dans un autre outil, puis ramenez-le avec Remplacer depuis JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Le mode hors ligne est activé pour cet onglet mais n’a pas pu être enregistré — ce navigateur bloque les données de site, il ne survivra donc pas à un rechargement",
"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.",
diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.ts
index 2aeeb596..1ca43f21 100644
--- a/slides/src/i18n/it.ts
+++ b/slides/src/i18n/it.ts
@@ -811,6 +811,22 @@ 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",
+ "Web link": "Link web",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Cliccando questo elemento durante lo show si apre questa pagina web in una nuova scheda (solo https://)",
+ "web page (below)": "pagina web (sotto)",
+ "That doesn’t look like a web address — it should start with https://": "Non sembra un indirizzo web — dovrebbe iniziare con https://",
+ "Links are off in offline mode": "I link sono disattivati in modalità offline",
+ "Bold · italic · underline while editing text": "Grassetto · corsivo · sottolineato durante la modifica del testo",
+ "Collapse · expand the side panels": "Comprimi · espandi i pannelli laterali",
+ "Zoom in · out · fit the slide": "Ingrandisci · riduci · adatta la diapositiva",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Scorre le diapositive quando non c’è nulla di selezionato; altrimenti sposta la selezione",
+ "Black screen — and back": "Schermo nero — e ritorno",
+ "All slides in the speaker view — pick one to jump to": "Tutte le diapositive nella vista relatore — scegline una per saltarci",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Diapositiva precedente · successiva, oppure il prossimo passo di rivelazione su una diapositiva che ne ha",
+ "Add a code snippet": "Aggiungi uno snippet di codice",
+ "Source Code": "Codice sorgente",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Copia questa presentazione come JSON semplice — solo contenuto, senza chiavi di sessione dal vivo. Modificalo in un altro strumento e riportalo con Sostituisci da JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "La modalità offline è attiva per questa scheda ma non è stato possibile salvarla — questo browser blocca i dati del sito, quindi non sopravviverà a un ricaricamento",
"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.",
diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.ts
index 4c226ded..5aa5a940 100644
--- a/slides/src/i18n/ja.ts
+++ b/slides/src/i18n/ja.ts
@@ -811,6 +811,22 @@ export const ja: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "クリックでアニメーション:このスライドで n 回目の → まで非表示(0 = スライドと同時に表示)",
"hidden": "非表示",
"unnumbered": "番号なし",
+ "Web link": "ウェブリンク",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "発表中にこの要素をクリックすると、このウェブページを新しいタブで開きます(https:// のみ)",
+ "web page (below)": "ウェブページ(下記)",
+ "That doesn’t look like a web address — it should start with https://": "ウェブアドレスのようには見えません — https:// で始まる必要があります",
+ "Links are off in offline mode": "オフラインモードではリンクは無効です",
+ "Bold · italic · underline while editing text": "テキスト編集中の太字・斜体・下線",
+ "Collapse · expand the side panels": "サイドパネルを折りたたむ・展開する",
+ "Zoom in · out · fit the slide": "拡大・縮小・スライドに合わせる",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "何も選択していないときはスライドを移動、選択中は選択範囲を微調整",
+ "Black screen — and back": "ブラックスクリーン — そして戻る",
+ "All slides in the speaker view — pick one to jump to": "発表者ビューで全スライドを表示 — 選ぶとそこへ移動",
+ "Previous · next slide, or the next reveal step on a slide that has them": "前・次のスライド、またはステップのあるスライドでは次の表示ステップ",
+ "Add a code snippet": "コードスニペットを追加",
+ "Source Code": "ソースコード",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "このデッキをプレーン JSON としてコピーします — 内容のみで、ライブセッションの鍵は含みません。別のツールで編集し、「JSON から置き換え」で戻してください。",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "このタブではオフラインモードがオンですが保存できませんでした — このブラウザーはサイトデータをブロックしているため、再読み込みすると失われます",
"Embed": "埋め込み",
"Web page": "ウェブページ",
"No view yet. Capture a picture of the page so it shows offline.": "ビューがまだありません。オフラインでも表示できるよう、ページの画像を取り込んでください。",
diff --git a/slides/src/i18n/packed.ts b/slides/src/i18n/packed.ts
index e1d6d1b2..84d37d6c 100644
--- a/slides/src/i18n/packed.ts
+++ b/slides/src/i18n/packed.ts
@@ -817,6 +817,22 @@ 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"],
+ "Web link": ["ウェブリンク","网页链接","網頁連結","Enlace web","Lien web","Weblink","Link web","Ligação web"],
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": ["発表中にこの要素をクリックすると、このウェブページを新しいタブで開きます(https:// のみ)","放映时点击此元素会在新标签页中打开此网页(仅限 https://)","簡報時點擊此元素會在新分頁中開啟此網頁(僅限 https://)","Al hacer clic en este elemento durante la presentación se abre esta página web en una pestaña nueva (solo https://)","Cliquer sur cet élément pendant la présentation ouvre cette page web dans un nouvel onglet (https:// uniquement)","Ein Klick auf dieses Element öffnet in der Vorführung diese Webseite in einem neuen Tab (nur https://)","Cliccando questo elemento durante lo show si apre questa pagina web in una nuova scheda (solo https://)","Clicar neste elemento durante a apresentação abre esta página web num novo separador (apenas https://)"],
+ "web page (below)": ["ウェブページ(下記)","网页(见下方)","網頁(見下方)","página web (abajo)","page web (ci-dessous)","Webseite (unten)","pagina web (sotto)","página web (abaixo)"],
+ "That doesn’t look like a web address — it should start with https://": ["ウェブアドレスのようには見えません — https:// で始まる必要があります","这看起来不像网址 — 应以 https:// 开头","這看起來不像網址 — 應以 https:// 開頭","Eso no parece una dirección web: debería empezar por https://","Cela ne ressemble pas à une adresse web — elle devrait commencer par https://","Das sieht nicht wie eine Webadresse aus — sie sollte mit https:// beginnen","Non sembra un indirizzo web — dovrebbe iniziare con https://","Isso não parece um endereço web — devia começar por https://"],
+ "Links are off in offline mode": ["オフラインモードではリンクは無効です","离线模式下链接已关闭","離線模式下連結已關閉","Los enlaces están desactivados en modo sin conexión","Les liens sont désactivés en mode hors ligne","Links sind im Offline-Modus aus","I link sono disattivati in modalità offline","As ligações estão desligadas no modo offline"],
+ "Bold · italic · underline while editing text": ["テキスト編集中の太字・斜体・下線","编辑文本时加粗 · 斜体 · 下划线","編輯文字時粗體 · 斜體 · 底線","Negrita · cursiva · subrayado al editar texto","Gras · italique · souligné pendant l’édition du texte","Fett · kursiv · unterstrichen beim Bearbeiten von Text","Grassetto · corsivo · sottolineato durante la modifica del testo","Negrito · itálico · sublinhado ao editar texto"],
+ "Collapse · expand the side panels": ["サイドパネルを折りたたむ・展開する","折叠 · 展开侧边面板","收合 · 展開側邊面板","Contraer · expandir los paneles laterales","Replier · déployer les panneaux latéraux","Seitenleisten ein- · ausklappen","Comprimi · espandi i pannelli laterali","Recolher · expandir os painéis laterais"],
+ "Zoom in · out · fit the slide": ["拡大・縮小・スライドに合わせる","放大 · 缩小 · 适应幻灯片","放大 · 縮小 · 符合投影片","Acercar · alejar · ajustar la diapositiva","Zoom avant · arrière · ajuster la diapositive","Vergrößern · verkleinern · Folie einpassen","Ingrandisci · riduci · adatta la diapositiva","Ampliar · reduzir · ajustar o slide"],
+ "Walk the slides when nothing is selected; nudge the selection otherwise": ["何も選択していないときはスライドを移動、選択中は選択範囲を微調整","未选中任何内容时切换幻灯片;否则微调所选内容","未選取任何內容時切換投影片;否則微調所選內容","Recorre las diapositivas cuando no hay nada seleccionado; si no, desplaza la selección","Parcourt les diapositives quand rien n’est sélectionné ; sinon, déplace la sélection","Folien durchgehen, wenn nichts ausgewählt ist; sonst die Auswahl verschieben","Scorre le diapositive quando non c’è nulla di selezionato; altrimenti sposta la selezione","Percorre os slides quando nada está selecionado; caso contrário, desloca a seleção"],
+ "Black screen — and back": ["ブラックスクリーン — そして戻る","黑屏 — 再返回","黑畫面 — 再返回","Pantalla en negro — y volver","Écran noir — et retour","Schwarzer Bildschirm — und zurück","Schermo nero — e ritorno","Ecrã preto — e voltar"],
+ "All slides in the speaker view — pick one to jump to": ["発表者ビューで全スライドを表示 — 選ぶとそこへ移動","在演讲者视图中显示全部幻灯片 — 选择一张跳转","在講者檢視中顯示全部投影片 — 選擇一張跳轉","Todas las diapositivas en la vista del presentador: elige una para saltar a ella","Toutes les diapositives dans la vue présentateur — choisissez-en une pour y aller","Alle Folien in der Referentenansicht — eine auswählen, um dorthin zu springen","Tutte le diapositive nella vista relatore — scegline una per saltarci","Todos os slides na vista do apresentador — escolha um para saltar"],
+ "Previous · next slide, or the next reveal step on a slide that has them": ["前・次のスライド、またはステップのあるスライドでは次の表示ステップ","上一张 · 下一张幻灯片,或在有显示步骤的幻灯片上进入下一步","上一張 · 下一張投影片,或在有顯示步驟的投影片上進入下一步","Diapositiva anterior · siguiente, o el siguiente paso de revelado en una diapositiva que los tenga","Diapositive précédente · suivante, ou l’étape de révélation suivante sur une diapositive qui en a","Vorherige · nächste Folie, oder der nächste Aufdeckschritt auf einer Folie mit Schritten","Diapositiva precedente · successiva, oppure il prossimo passo di rivelazione su una diapositiva che ne ha","Slide anterior · seguinte, ou o próximo passo de revelação num slide que os tenha"],
+ "Add a code snippet": ["コードスニペットを追加","添加代码片段","新增程式碼片段","Añadir un fragmento de código","Ajouter un extrait de code","Codeausschnitt hinzufügen","Aggiungi uno snippet di codice","Adicionar um excerto de código"],
+ "Source Code": ["ソースコード","源代码","原始碼","Código fuente","Code source","Quellcode","Codice sorgente","Código-fonte"],
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": ["このデッキをプレーン JSON としてコピーします — 内容のみで、ライブセッションの鍵は含みません。別のツールで編集し、「JSON から置き換え」で戻してください。","将此文稿复制为纯 JSON — 仅内容,不含实时会话密钥。在其他工具中编辑后,用“从 JSON 替换”带回来。","將此文稿複製為純 JSON — 僅內容,不含即時工作階段金鑰。在其他工具中編輯後,用「從 JSON 取代」帶回來。","Copia esta presentación como JSON plano: solo contenido, sin claves de sesión en directo. Edítalo en otra herramienta y tráelo de vuelta con Reemplazar desde JSON.","Copie cette présentation en JSON brut — contenu seulement, sans clés de session en direct. Modifiez-le dans un autre outil, puis ramenez-le avec Remplacer depuis JSON.","Kopiert dieses Deck als reines JSON — nur Inhalt, keine Live-Sitzungsschlüssel. In einem anderen Werkzeug bearbeiten und mit „Aus JSON ersetzen“ zurückholen.","Copia questa presentazione come JSON semplice — solo contenuto, senza chiavi di sessione dal vivo. Modificalo in un altro strumento e riportalo con Sostituisci da JSON.","Copia esta apresentação como JSON simples — apenas conteúdo, sem chaves de sessão ao vivo. Edite-o noutra ferramenta e traga-o de volta com Substituir a partir de JSON."],
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": ["このタブではオフラインモードがオンですが保存できませんでした — このブラウザーはサイトデータをブロックしているため、再読み込みすると失われます","此标签页已开启离线模式,但无法保存 — 此浏览器阻止了站点数据,因此重新加载后不会保留","此分頁已開啟離線模式,但無法儲存 — 此瀏覽器封鎖了網站資料,因此重新載入後不會保留","El modo sin conexión está activado en esta pestaña, pero no se pudo guardar: este navegador bloquea los datos del sitio, así que no sobrevivirá a una recarga","Le mode hors ligne est activé pour cet onglet mais n’a pas pu être enregistré — ce navigateur bloque les données de site, il ne survivra donc pas à un rechargement","Der Offline-Modus ist für diesen Tab an, konnte aber nicht gespeichert werden — dieser Browser blockiert Website-Daten, daher übersteht er kein Neuladen","La modalità offline è attiva per questa scheda ma non è stato possibile salvarla — questo browser blocca i dati del sito, quindi non sopravviverà a un ricaricamento","O modo offline está ligado para este separador, mas não pôde ser guardado — este navegador bloqueia os dados do site, por isso não sobreviverá a um recarregamento"],
"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."],
diff --git a/slides/src/i18n/packs/ar.ts b/slides/src/i18n/packs/ar.ts
index 72ad5032..bc66ba9b 100644
--- a/slides/src/i18n/packs/ar.ts
+++ b/slides/src/i18n/packs/ar.ts
@@ -757,6 +757,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "تحريك عند النقر: مخفي حتى الضغطة رقم n على سهم التالي في هذه الشريحة (0 = يظهر مع الشريحة)",
"hidden": "مخفية",
"unnumbered": "بدون رقم",
+ "Web link": "رابط ويب",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "النقر على هذا العنصر أثناء العرض يفتح صفحة الويب هذه في علامة تبويب جديدة (https:// فقط)",
+ "web page (below)": "صفحة ويب (أدناه)",
+ "That doesn’t look like a web address — it should start with https://": "لا يبدو هذا عنوان ويب — يجب أن يبدأ بـ https://",
+ "Links are off in offline mode": "الروابط معطّلة في وضع عدم الاتصال",
+ "Bold · italic · underline while editing text": "عريض · مائل · مسطّر أثناء تحرير النص",
+ "Collapse · expand the side panels": "طيّ · توسيع اللوحات الجانبية",
+ "Zoom in · out · fit the slide": "تكبير · تصغير · ملاءمة الشريحة",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "التنقل بين الشرائح عندما لا يوجد تحديد؛ وإلا تحريك التحديد",
+ "Black screen — and back": "شاشة سوداء — والعودة",
+ "All slides in the speaker view — pick one to jump to": "كل الشرائح في عرض المتحدث — اختر واحدة للانتقال إليها",
+ "Previous · next slide, or the next reveal step on a slide that has them": "الشريحة السابقة · التالية، أو خطوة الكشف التالية في شريحة تحتوي عليها",
+ "Add a code snippet": "إضافة مقتطف كود",
+ "Source Code": "الكود المصدري",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "ينسخ هذا العرض كـ JSON عادي — المحتوى فقط، بلا مفاتيح جلسة مباشرة. حرّره في أداة أخرى ثم أعده عبر «استبدال من JSON».",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "وضع عدم الاتصال مفعّل لعلامة التبويب هذه لكن تعذّر حفظه — هذا المتصفح يحظر بيانات الموقع، لذا لن يبقى بعد إعادة التحميل",
"Embed": "تضمين",
"Web page": "صفحة ويب",
"No view yet. Capture a picture of the page so it shows offline.": "لا توجد معاينة بعد. التقط صورة للصفحة لتظهر دون اتصال.",
diff --git a/slides/src/i18n/packs/bn.ts b/slides/src/i18n/packs/bn.ts
index 814c1aac..4e71c604 100644
--- a/slides/src/i18n/packs/bn.ts
+++ b/slides/src/i18n/packs/bn.ts
@@ -760,6 +760,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "ক্লিকে অ্যানিমেট: এই স্লাইডে n-তম → পর্যন্ত লুকানো (0 = স্লাইডের সাথে দেখানো)",
"hidden": "লুকানো",
"unnumbered": "সংখ্যাহীন",
+ "Web link": "ওয়েব লিঙ্ক",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "শো চলাকালীন এই উপাদানে ক্লিক করলে এই ওয়েবপেজটি নতুন ট্যাবে খোলে (শুধু https://)",
+ "web page (below)": "ওয়েবপেজ (নিচে)",
+ "That doesn’t look like a web address — it should start with https://": "এটি ওয়েব ঠিকানার মতো দেখাচ্ছে না — https:// দিয়ে শুরু হওয়া উচিত",
+ "Links are off in offline mode": "অফলাইন মোডে লিঙ্ক বন্ধ",
+ "Bold · italic · underline while editing text": "টেক্সট সম্পাদনার সময় বোল্ড · ইটালিক · আন্ডারলাইন",
+ "Collapse · expand the side panels": "সাইড প্যানেল ভাঁজ · প্রসারিত",
+ "Zoom in · out · fit the slide": "জুম ইন · আউট · স্লাইডে মানানসই",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "কিছু নির্বাচিত না থাকলে স্লাইড পরিবর্তন; নইলে নির্বাচন সরানো",
+ "Black screen — and back": "কালো পর্দা — এবং ফেরা",
+ "All slides in the speaker view — pick one to jump to": "স্পিকার ভিউতে সব স্লাইড — একটি বেছে নিয়ে যান",
+ "Previous · next slide, or the next reveal step on a slide that has them": "আগের · পরের স্লাইড, বা ধাপযুক্ত স্লাইডে পরের প্রকাশ ধাপ",
+ "Add a code snippet": "কোড স্নিপেট যোগ করুন",
+ "Source Code": "সোর্স কোড",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "এই ডেকটি সাধারণ JSON হিসেবে কপি করে — শুধু বিষয়বস্তু, লাইভ সেশনের কী নয়। অন্য টুলে সম্পাদনা করে “JSON থেকে প্রতিস্থাপন” দিয়ে ফিরিয়ে আনুন।",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "এই ট্যাবে অফলাইন মোড চালু, কিন্তু সংরক্ষণ করা যায়নি — এই ব্রাউজার সাইট ডেটা ব্লক করছে, তাই রিলোড করলে থাকবে না",
"Embed": "এম্বেড",
"Web page": "ওয়েব পেজ",
"No view yet. Capture a picture of the page so it shows offline.": "এখনো কোনো ভিউ নেই। অফলাইনে দেখাতে পেজের একটি ছবি নিন।",
diff --git a/slides/src/i18n/packs/da.ts b/slides/src/i18n/packs/da.ts
index 16b9e831..18ce16ee 100644
--- a/slides/src/i18n/packs/da.ts
+++ b/slides/src/i18n/packs/da.ts
@@ -749,6 +749,22 @@ 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",
+ "Web link": "Weblink",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Et klik på dette element under showet åbner denne webside i en ny fane (kun https://)",
+ "web page (below)": "webside (nedenfor)",
+ "That doesn’t look like a web address — it should start with https://": "Det ligner ikke en webadresse — den bør starte med https://",
+ "Links are off in offline mode": "Links er slået fra i offline-tilstand",
+ "Bold · italic · underline while editing text": "Fed · kursiv · understreget under tekstredigering",
+ "Collapse · expand the side panels": "Fold sidepanelerne sammen · ud",
+ "Zoom in · out · fit the slide": "Zoom ind · ud · tilpas diasset",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Gå gennem dias når intet er valgt; ellers flyttes markeringen",
+ "Black screen — and back": "Sort skærm — og tilbage",
+ "All slides in the speaker view — pick one to jump to": "Alle dias i talervisningen — vælg ét for at springe dertil",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Forrige · næste dias, eller næste afsløringstrin på et dias der har dem",
+ "Add a code snippet": "Tilføj et kodestykke",
+ "Source Code": "Kildekode",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Kopierer dette dæk som ren JSON — kun indhold, ingen live-sessionsnøgler. Redigér det i et andet værktøj, og hent det tilbage med Erstat fra JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Offline-tilstand er slået til for denne fane, men kunne ikke gemmes — denne browser blokerer webstedsdata, så den overlever ikke en genindlæsning",
"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.",
diff --git a/slides/src/i18n/packs/fa.ts b/slides/src/i18n/packs/fa.ts
index f53e887b..c78f3728 100644
--- a/slides/src/i18n/packs/fa.ts
+++ b/slides/src/i18n/packs/fa.ts
@@ -753,6 +753,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "انیمیشن با کلیک: تا n‌امین فشار کلید بعدی در این اسلاید پنهان است (۰ = همراه اسلاید نمایش داده می‌شود)",
"hidden": "پنهان",
"unnumbered": "بدون شماره",
+ "Web link": "پیوند وب",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "کلیک روی این عنصر هنگام نمایش، این صفحه وب را در زبانه‌ای جدید باز می‌کند (فقط https://)",
+ "web page (below)": "صفحه وب (پایین)",
+ "That doesn’t look like a web address — it should start with https://": "این شبیه نشانی وب نیست — باید با https:// شروع شود",
+ "Links are off in offline mode": "پیوندها در حالت آفلاین خاموش‌اند",
+ "Bold · italic · underline while editing text": "پررنگ · کج · زیرخط هنگام ویرایش متن",
+ "Collapse · expand the side panels": "جمع · باز کردن پنل‌های کناری",
+ "Zoom in · out · fit the slide": "بزرگ‌نمایی · کوچک‌نمایی · جا دادن اسلاید",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "وقتی چیزی انتخاب نشده بین اسلایدها حرکت کنید؛ وگرنه انتخاب را جابه‌جا کنید",
+ "Black screen — and back": "صفحه سیاه — و بازگشت",
+ "All slides in the speaker view — pick one to jump to": "همه اسلایدها در نمای ارائه‌دهنده — یکی را برای پرش انتخاب کنید",
+ "Previous · next slide, or the next reveal step on a slide that has them": "اسلاید قبلی · بعدی، یا گام آشکارسازی بعدی در اسلایدی که گام دارد",
+ "Add a code snippet": "افزودن قطعه کد",
+ "Source Code": "کد منبع",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "این دک را به‌صورت JSON ساده کپی می‌کند — فقط محتوا، بدون کلیدهای جلسه زنده. آن را در ابزاری دیگر ویرایش کنید و با «جایگزینی از JSON» برگردانید.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "حالت آفلاین برای این زبانه روشن است اما ذخیره نشد — این مرورگر داده‌های سایت را مسدود می‌کند، پس پس از بارگذاری مجدد باقی نمی‌ماند",
"Embed": "جاسازی",
"Web page": "صفحه وب",
"No view yet. Capture a picture of the page so it shows offline.": "هنوز نمایی وجود ندارد. از صفحه عکس بگیرید تا آفلاین نمایش داده شود.",
diff --git a/slides/src/i18n/packs/fi.ts b/slides/src/i18n/packs/fi.ts
index 6e3ec67b..9203d8a1 100644
--- a/slides/src/i18n/packs/fi.ts
+++ b/slides/src/i18n/packs/fi.ts
@@ -754,6 +754,22 @@ 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",
+ "Web link": "Verkkolinkki",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Tämän elementin napsautus esityksen aikana avaa tämän verkkosivun uuteen välilehteen (vain https://)",
+ "web page (below)": "verkkosivu (alla)",
+ "That doesn’t look like a web address — it should start with https://": "Tuo ei näytä verkko-osoitteelta — sen pitäisi alkaa https://",
+ "Links are off in offline mode": "Linkit ovat pois käytöstä offline-tilassa",
+ "Bold · italic · underline while editing text": "Lihavointi · kursivointi · alleviivaus tekstiä muokattaessa",
+ "Collapse · expand the side panels": "Sivupaneelien pienennys · laajennus",
+ "Zoom in · out · fit the slide": "Lähennä · loitonna · sovita dia",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Selaa dioja, kun mitään ei ole valittu; muuten siirrä valintaa",
+ "Black screen — and back": "Musta ruutu — ja takaisin",
+ "All slides in the speaker view — pick one to jump to": "Kaikki diat esittäjän näkymässä — valitse yksi siirtyäksesi siihen",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Edellinen · seuraava dia, tai seuraava paljastusvaihe dialla, jolla niitä on",
+ "Add a code snippet": "Lisää koodikatkelma",
+ "Source Code": "Lähdekoodi",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Kopioi tämän pakan pelkkänä JSON:na — vain sisältö, ei live-istunnon avaimia. Muokkaa sitä toisessa työkalussa ja tuo takaisin toiminnolla Korvaa JSON:sta.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Offline-tila on päällä tässä välilehdessä, mutta sitä ei voitu tallentaa — tämä selain estää sivustotiedot, joten se ei säily uudelleenlatauksessa",
"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.",
diff --git a/slides/src/i18n/packs/fil.ts b/slides/src/i18n/packs/fil.ts
index f2621236..b8452180 100644
--- a/slides/src/i18n/packs/fil.ts
+++ b/slides/src/i18n/packs/fil.ts
@@ -766,6 +766,22 @@ 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",
+ "Web link": "Web link",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Ang pag-click sa elementong ito habang nagpe-present ay nagbubukas ng web page na ito sa bagong tab (https:// lamang)",
+ "web page (below)": "web page (sa ibaba)",
+ "That doesn’t look like a web address — it should start with https://": "Hindi iyon mukhang web address — dapat itong magsimula sa https://",
+ "Links are off in offline mode": "Naka-off ang mga link sa offline mode",
+ "Bold · italic · underline while editing text": "Bold · italic · underline habang nag-e-edit ng text",
+ "Collapse · expand the side panels": "I-collapse · i-expand ang mga side panel",
+ "Zoom in · out · fit the slide": "Zoom in · out · ipasya sa slide",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Lumipat sa mga slide kapag walang napili; kung hindi, iusog ang napili",
+ "Black screen — and back": "Black screen — at bumalik",
+ "All slides in the speaker view — pick one to jump to": "Lahat ng slide sa speaker view — pumili ng isa para lumipat",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Nakaraang · susunod na slide, o ang susunod na hakbang ng pagbubunyag sa slide na mayroon nito",
+ "Add a code snippet": "Magdagdag ng code snippet",
+ "Source Code": "Source Code",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Kinokopya ang deck na ito bilang plain JSON — nilalaman lamang, walang live-session key. I-edit ito sa ibang tool, saka ibalik gamit ang Replace from JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Naka-on ang offline mode para sa tab na ito, pero hindi ito ma-save — hinaharang ng browser na ito ang site data, kaya hindi ito mananatili pagkatapos ng reload",
"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.",
diff --git a/slides/src/i18n/packs/he.ts b/slides/src/i18n/packs/he.ts
index a3b9e799..20f09aa7 100644
--- a/slides/src/i18n/packs/he.ts
+++ b/slides/src/i18n/packs/he.ts
@@ -750,6 +750,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "הנפשה בלחיצה: מוסתר עד הלחיצה ה-n על מקש הבא בשקופית זו (0 = מוצג עם השקופית)",
"hidden": "מוסתרת",
"unnumbered": "ללא מספר",
+ "Web link": "קישור לאתר",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "לחיצה על רכיב זה במהלך המצגת פותחת דף אינטרנט זה בלשונית חדשה (https:// בלבד)",
+ "web page (below)": "דף אינטרנט (למטה)",
+ "That doesn’t look like a web address — it should start with https://": "זה לא נראה כמו כתובת אינטרנט — היא צריכה להתחיל ב-https://",
+ "Links are off in offline mode": "קישורים כבויים במצב לא מקוון",
+ "Bold · italic · underline while editing text": "מודגש · נטוי · קו תחתון בעת עריכת טקסט",
+ "Collapse · expand the side panels": "כיווץ · הרחבה של החלוניות הצדדיות",
+ "Zoom in · out · fit the slide": "הגדלה · הקטנה · התאמה לשקופית",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "מעבר בין שקופיות כשלא נבחר דבר; אחרת הזזת הבחירה",
+ "Black screen — and back": "מסך שחור — וחזרה",
+ "All slides in the speaker view — pick one to jump to": "כל השקופיות בתצוגת המרצה — בחרו אחת כדי לקפוץ אליה",
+ "Previous · next slide, or the next reveal step on a slide that has them": "שקופית קודמת · הבאה, או שלב החשיפה הבא בשקופית שיש בה שלבים",
+ "Add a code snippet": "הוספת קטע קוד",
+ "Source Code": "קוד מקור",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "מעתיק מצגת זו כ-JSON פשוט — תוכן בלבד, בלי מפתחות של הפעלה חיה. ערכו אותו בכלי אחר והחזירו אותו באמצעות ״החלפה מ-JSON״.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "מצב לא מקוון פעיל ללשונית זו אך לא ניתן היה לשמור אותו — דפדפן זה חוסם נתוני אתר, ולכן הוא לא ישרוד טעינה מחדש",
"Embed": "הטמעה",
"Web page": "דף אינטרנט",
"No view yet. Capture a picture of the page so it shows offline.": "אין תצוגה עדיין. צלמו את הדף כדי שיוצג במצב לא מקוון.",
diff --git a/slides/src/i18n/packs/hi.ts b/slides/src/i18n/packs/hi.ts
index b11036e8..ad7b607c 100644
--- a/slides/src/i18n/packs/hi.ts
+++ b/slides/src/i18n/packs/hi.ts
@@ -757,6 +757,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "क्लिक पर एनिमेट: इस स्लाइड पर n-वें → तक छिपा (0 = स्लाइड के साथ दिखे)",
"hidden": "छिपी हुई",
"unnumbered": "बिना नंबर",
+ "Web link": "वेब लिंक",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "शो के दौरान इस तत्व पर क्लिक करने से यह वेब पेज नए टैब में खुलता है (केवल https://)",
+ "web page (below)": "वेब पेज (नीचे)",
+ "That doesn’t look like a web address — it should start with https://": "यह वेब पता जैसा नहीं लगता — इसे https:// से शुरू होना चाहिए",
+ "Links are off in offline mode": "ऑफ़लाइन मोड में लिंक बंद हैं",
+ "Bold · italic · underline while editing text": "टेक्स्ट संपादित करते समय बोल्ड · इटैलिक · अंडरलाइन",
+ "Collapse · expand the side panels": "साइड पैनल समेटें · फैलाएँ",
+ "Zoom in · out · fit the slide": "ज़ूम इन · आउट · स्लाइड फ़िट करें",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "कुछ चयनित न होने पर स्लाइड बदलें; अन्यथा चयन खिसकाएँ",
+ "Black screen — and back": "काली स्क्रीन — और वापस",
+ "All slides in the speaker view — pick one to jump to": "स्पीकर व्यू में सभी स्लाइड — किसी एक को चुनकर वहाँ जाएँ",
+ "Previous · next slide, or the next reveal step on a slide that has them": "पिछली · अगली स्लाइड, या चरण वाली स्लाइड पर अगला प्रकटीकरण चरण",
+ "Add a code snippet": "कोड स्निपेट जोड़ें",
+ "Source Code": "स्रोत कोड",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "इस डेक को सादे JSON के रूप में कॉपी करता है — केवल सामग्री, कोई लाइव-सत्र कुंजी नहीं। इसे किसी और टूल में संपादित करें, फिर “JSON से बदलें” से वापस लाएँ।",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "इस टैब के लिए ऑफ़लाइन मोड चालू है, पर सहेजा नहीं जा सका — यह ब्राउज़र साइट डेटा रोक रहा है, इसलिए रीलोड के बाद यह नहीं रहेगा",
"Embed": "एम्बेड",
"Web page": "वेब पेज",
"No view yet. Capture a picture of the page so it shows offline.": "अभी कोई व्यू नहीं। पेज की तस्वीर लें ताकि यह ऑफ़लाइन दिखे।",
diff --git a/slides/src/i18n/packs/id.ts b/slides/src/i18n/packs/id.ts
index 9ed1baf2..24d4d886 100644
--- a/slides/src/i18n/packs/id.ts
+++ b/slides/src/i18n/packs/id.ts
@@ -747,6 +747,22 @@ 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",
+ "Web link": "Tautan web",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Mengklik elemen ini saat presentasi membuka halaman web ini di tab baru (hanya https://)",
+ "web page (below)": "halaman web (di bawah)",
+ "That doesn’t look like a web address — it should start with https://": "Itu tidak tampak seperti alamat web — seharusnya diawali https://",
+ "Links are off in offline mode": "Tautan nonaktif dalam mode offline",
+ "Bold · italic · underline while editing text": "Tebal · miring · garis bawah saat mengedit teks",
+ "Collapse · expand the side panels": "Ciutkan · bentangkan panel samping",
+ "Zoom in · out · fit the slide": "Perbesar · perkecil · paskan slide",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Berpindah slide saat tidak ada yang dipilih; jika tidak, geser pilihan",
+ "Black screen — and back": "Layar hitam — dan kembali",
+ "All slides in the speaker view — pick one to jump to": "Semua slide di tampilan pembicara — pilih satu untuk melompat",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Slide sebelumnya · berikutnya, atau langkah pengungkapan berikutnya pada slide yang memilikinya",
+ "Add a code snippet": "Tambahkan cuplikan kode",
+ "Source Code": "Kode Sumber",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Menyalin dek ini sebagai JSON polos — hanya konten, tanpa kunci sesi langsung. Edit di alat lain, lalu kembalikan dengan Ganti dari JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Mode offline aktif untuk tab ini, tetapi tidak dapat disimpan — browser ini memblokir data situs, sehingga tidak akan bertahan setelah dimuat ulang",
"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.",
diff --git a/slides/src/i18n/packs/ko.ts b/slides/src/i18n/packs/ko.ts
index e67ce8a5..6d809f4f 100644
--- a/slides/src/i18n/packs/ko.ts
+++ b/slides/src/i18n/packs/ko.ts
@@ -741,6 +741,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "클릭 시 애니메이션: 이 슬라이드에서 n번째 → 까지 숨김 (0 = 슬라이드와 함께 표시)",
"hidden": "숨김",
"unnumbered": "번호 없음",
+ "Web link": "웹 링크",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "발표 중 이 요소를 클릭하면 이 웹 페이지가 새 탭에서 열립니다 (https:// 만)",
+ "web page (below)": "웹 페이지 (아래)",
+ "That doesn’t look like a web address — it should start with https://": "웹 주소처럼 보이지 않습니다 — https:// 로 시작해야 합니다",
+ "Links are off in offline mode": "오프라인 모드에서는 링크가 꺼져 있습니다",
+ "Bold · italic · underline while editing text": "텍스트 편집 중 굵게 · 기울임 · 밑줄",
+ "Collapse · expand the side panels": "사이드 패널 접기 · 펼치기",
+ "Zoom in · out · fit the slide": "확대 · 축소 · 슬라이드에 맞춤",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "선택된 것이 없으면 슬라이드 이동, 있으면 선택 항목 미세 이동",
+ "Black screen — and back": "검은 화면 — 그리고 복귀",
+ "All slides in the speaker view — pick one to jump to": "발표자 보기에서 모든 슬라이드 — 하나를 골라 이동",
+ "Previous · next slide, or the next reveal step on a slide that has them": "이전 · 다음 슬라이드, 또는 단계가 있는 슬라이드에서 다음 공개 단계",
+ "Add a code snippet": "코드 스니펫 추가",
+ "Source Code": "소스 코드",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "이 덱을 일반 JSON으로 복사합니다 — 내용만, 라이브 세션 키는 제외. 다른 도구에서 편집한 뒤 ‘JSON에서 바꾸기’로 되돌리세요.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "이 탭에서 오프라인 모드가 켜져 있지만 저장할 수 없었습니다 — 이 브라우저가 사이트 데이터를 차단하므로 새로 고침 후에는 유지되지 않습니다",
"Embed": "임베드",
"Web page": "웹 페이지",
"No view yet. Capture a picture of the page so it shows offline.": "아직 보기가 없습니다. 오프라인에서도 보이도록 페이지 그림을 캡처하세요.",
diff --git a/slides/src/i18n/packs/ms.ts b/slides/src/i18n/packs/ms.ts
index a1d26eba..b16f9079 100644
--- a/slides/src/i18n/packs/ms.ts
+++ b/slides/src/i18n/packs/ms.ts
@@ -750,6 +750,22 @@ 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",
+ "Web link": "Pautan web",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Mengklik elemen ini semasa persembahan membuka halaman web ini dalam tab baharu (https:// sahaja)",
+ "web page (below)": "halaman web (di bawah)",
+ "That doesn’t look like a web address — it should start with https://": "Itu tidak kelihatan seperti alamat web — ia sepatutnya bermula dengan https://",
+ "Links are off in offline mode": "Pautan dimatikan dalam mod luar talian",
+ "Bold · italic · underline while editing text": "Tebal · condong · garis bawah semasa menyunting teks",
+ "Collapse · expand the side panels": "Runtuhkan · kembangkan panel sisi",
+ "Zoom in · out · fit the slide": "Zum masuk · keluar · muatkan slaid",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Beralih slaid apabila tiada yang dipilih; jika tidak, anjak pilihan",
+ "Black screen — and back": "Skrin hitam — dan kembali",
+ "All slides in the speaker view — pick one to jump to": "Semua slaid dalam paparan penceramah — pilih satu untuk melompat",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Slaid sebelumnya · seterusnya, atau langkah pendedahan seterusnya pada slaid yang mempunyainya",
+ "Add a code snippet": "Tambah coretan kod",
+ "Source Code": "Kod Sumber",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Menyalin dek ini sebagai JSON biasa — kandungan sahaja, tiada kunci sesi langsung. Sunting dalam alat lain, kemudian bawa kembali dengan Ganti daripada JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Mod luar talian dihidupkan untuk tab ini, tetapi tidak dapat disimpan — pelayar ini menyekat data tapak, jadi ia tidak akan kekal selepas muat semula",
"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.",
diff --git a/slides/src/i18n/packs/nb.ts b/slides/src/i18n/packs/nb.ts
index b2dd7c5d..61c6f9e6 100644
--- a/slides/src/i18n/packs/nb.ts
+++ b/slides/src/i18n/packs/nb.ts
@@ -751,6 +751,22 @@ 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",
+ "Web link": "Weblenke",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Et klikk på dette elementet under visningen åpner denne nettsiden i en ny fane (kun https://)",
+ "web page (below)": "nettside (nedenfor)",
+ "That doesn’t look like a web address — it should start with https://": "Det ser ikke ut som en nettadresse — den bør starte med https://",
+ "Links are off in offline mode": "Lenker er slått av i frakoblet modus",
+ "Bold · italic · underline while editing text": "Fet · kursiv · understreket under tekstredigering",
+ "Collapse · expand the side panels": "Skjul · vis sidepanelene",
+ "Zoom in · out · fit the slide": "Zoom inn · ut · tilpass lysbildet",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Bla gjennom lysbildene når ingenting er valgt; ellers flyttes utvalget",
+ "Black screen — and back": "Svart skjerm — og tilbake",
+ "All slides in the speaker view — pick one to jump to": "Alle lysbilder i foredragsholdervisningen — velg ett for å hoppe dit",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Forrige · neste lysbilde, eller neste avsløringstrinn på et lysbilde som har dem",
+ "Add a code snippet": "Legg til en kodesnutt",
+ "Source Code": "Kildekode",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Kopierer denne kortstokken som ren JSON — bare innhold, ingen nøkler for direkteøkt. Rediger den i et annet verktøy, og hent den tilbake med Erstatt fra JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Frakoblet modus er på for denne fanen, men kunne ikke lagres — denne nettleseren blokkerer nettstedsdata, så den overlever ikke en ny innlasting",
"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.",
diff --git a/slides/src/i18n/packs/nl.ts b/slides/src/i18n/packs/nl.ts
index 6bdf1280..bb0995b0 100644
--- a/slides/src/i18n/packs/nl.ts
+++ b/slides/src/i18n/packs/nl.ts
@@ -745,6 +745,22 @@ 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",
+ "Web link": "Weblink",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Een klik op dit element tijdens de show opent deze webpagina in een nieuw tabblad (alleen https://)",
+ "web page (below)": "webpagina (hieronder)",
+ "That doesn’t look like a web address — it should start with https://": "Dat ziet er niet uit als een webadres — het moet met https:// beginnen",
+ "Links are off in offline mode": "Links staan uit in offline-modus",
+ "Bold · italic · underline while editing text": "Vet · cursief · onderstreept tijdens het bewerken van tekst",
+ "Collapse · expand the side panels": "Zijpanelen inklappen · uitklappen",
+ "Zoom in · out · fit the slide": "Inzoomen · uitzoomen · dia passend maken",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Door de dia's lopen als niets is geselecteerd; anders de selectie verschuiven",
+ "Black screen — and back": "Zwart scherm — en terug",
+ "All slides in the speaker view — pick one to jump to": "Alle dia's in de sprekersweergave — kies er een om ernaartoe te springen",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Vorige · volgende dia, of de volgende onthulstap op een dia die ze heeft",
+ "Add a code snippet": "Een codefragment toevoegen",
+ "Source Code": "Broncode",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Kopieert dit deck als platte JSON — alleen inhoud, geen sleutels van de live-sessie. Bewerk het in een ander programma en haal het terug met Vervangen uit JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Offline-modus staat aan voor dit tabblad, maar kon niet worden opgeslagen — deze browser blokkeert sitegegevens, dus het overleeft geen herlaadactie",
"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.",
diff --git a/slides/src/i18n/packs/pl.ts b/slides/src/i18n/packs/pl.ts
index cb7516ff..11d17acc 100644
--- a/slides/src/i18n/packs/pl.ts
+++ b/slides/src/i18n/packs/pl.ts
@@ -748,6 +748,22 @@ 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",
+ "Web link": "Łącze internetowe",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Kliknięcie tego elementu podczas pokazu otwiera tę stronę w nowej karcie (tylko https://)",
+ "web page (below)": "strona internetowa (poniżej)",
+ "That doesn’t look like a web address — it should start with https://": "To nie wygląda na adres internetowy — powinien zaczynać się od https://",
+ "Links are off in offline mode": "W trybie offline łącza są wyłączone",
+ "Bold · italic · underline while editing text": "Pogrubienie · kursywa · podkreślenie podczas edycji tekstu",
+ "Collapse · expand the side panels": "Zwiń · rozwiń panele boczne",
+ "Zoom in · out · fit the slide": "Powiększ · pomniejsz · dopasuj slajd",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Przechodzi między slajdami, gdy nic nie jest zaznaczone; w przeciwnym razie przesuwa zaznaczenie",
+ "Black screen — and back": "Czarny ekran — i z powrotem",
+ "All slides in the speaker view — pick one to jump to": "Wszystkie slajdy w widoku prelegenta — wybierz jeden, aby do niego przejść",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Poprzedni · następny slajd albo następny krok odsłaniania na slajdzie, który je ma",
+ "Add a code snippet": "Dodaj fragment kodu",
+ "Source Code": "Kod źródłowy",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Kopiuje tę prezentację jako zwykły JSON — tylko treść, bez kluczy sesji na żywo. Edytuj go w innym narzędziu, a potem przywróć przez Zastąp z JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Tryb offline jest włączony dla tej karty, ale nie udało się go zapisać — ta przeglądarka blokuje dane witryny, więc nie przetrwa przeładowania",
"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.",
diff --git a/slides/src/i18n/packs/ru.ts b/slides/src/i18n/packs/ru.ts
index ac3cb487..6e861a8a 100644
--- a/slides/src/i18n/packs/ru.ts
+++ b/slides/src/i18n/packs/ru.ts
@@ -749,6 +749,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Анимация по щелчку: скрыт до n-го → на этом слайде (0 = показывается вместе со слайдом)",
"hidden": "скрыт",
"unnumbered": "без номера",
+ "Web link": "Веб-ссылка",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Щелчок по этому элементу во время показа открывает эту веб-страницу в новой вкладке (только https://)",
+ "web page (below)": "веб-страница (ниже)",
+ "That doesn’t look like a web address — it should start with https://": "Это не похоже на веб-адрес — он должен начинаться с https://",
+ "Links are off in offline mode": "В автономном режиме ссылки отключены",
+ "Bold · italic · underline while editing text": "Жирный · курсив · подчёркнутый при редактировании текста",
+ "Collapse · expand the side panels": "Свернуть · развернуть боковые панели",
+ "Zoom in · out · fit the slide": "Приблизить · отдалить · вписать слайд",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Переход между слайдами, когда ничего не выбрано; иначе сдвиг выделения",
+ "Black screen — and back": "Чёрный экран — и обратно",
+ "All slides in the speaker view — pick one to jump to": "Все слайды в режиме докладчика — выберите один, чтобы перейти",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Предыдущий · следующий слайд, или следующий шаг раскрытия на слайде, где они есть",
+ "Add a code snippet": "Добавить фрагмент кода",
+ "Source Code": "Исходный код",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Копирует эту презентацию как простой JSON — только содержимое, без ключей живой сессии. Отредактируйте в другом инструменте и верните через «Заменить из JSON».",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Автономный режим включён для этой вкладки, но сохранить его не удалось — этот браузер блокирует данные сайта, поэтому после перезагрузки он не сохранится",
"Embed": "Встраивание",
"Web page": "Веб-страница",
"No view yet. Capture a picture of the page so it shows offline.": "Пока нет вида. Сделайте снимок страницы, чтобы она показывалась офлайн.",
diff --git a/slides/src/i18n/packs/sv.ts b/slides/src/i18n/packs/sv.ts
index 03b99cec..87ba3b3b 100644
--- a/slides/src/i18n/packs/sv.ts
+++ b/slides/src/i18n/packs/sv.ts
@@ -746,6 +746,22 @@ 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",
+ "Web link": "Webblänk",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Ett klick på det här elementet under visningen öppnar webbsidan i en ny flik (endast https://)",
+ "web page (below)": "webbsida (nedan)",
+ "That doesn’t look like a web address — it should start with https://": "Det ser inte ut som en webbadress — den bör börja med https://",
+ "Links are off in offline mode": "Länkar är avstängda i offlineläge",
+ "Bold · italic · underline while editing text": "Fet · kursiv · understruken vid textredigering",
+ "Collapse · expand the side panels": "Fäll ihop · fäll ut sidopanelerna",
+ "Zoom in · out · fit the slide": "Zooma in · ut · anpassa bilden",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Bläddra bland bilderna när inget är markerat; annars knuffas markeringen",
+ "Black screen — and back": "Svart skärm — och tillbaka",
+ "All slides in the speaker view — pick one to jump to": "Alla bilder i talarvyn — välj en för att hoppa dit",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Föregående · nästa bild, eller nästa avslöjandesteg på en bild som har sådana",
+ "Add a code snippet": "Lägg till ett kodavsnitt",
+ "Source Code": "Källkod",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Kopierar den här presentationen som ren JSON — bara innehåll, inga nycklar för livesessionen. Redigera den i ett annat verktyg och hämta tillbaka den med Ersätt från JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Offlineläge är på för den här fliken men kunde inte sparas — den här webbläsaren blockerar webbplatsdata, så det överlever inte en omladdning",
"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.",
diff --git a/slides/src/i18n/packs/th.ts b/slides/src/i18n/packs/th.ts
index f46f7d6e..17cc91da 100644
--- a/slides/src/i18n/packs/th.ts
+++ b/slides/src/i18n/packs/th.ts
@@ -751,6 +751,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "เคลื่อนไหวเมื่อคลิก: ซ่อนอยู่จนกว่าจะกด → ครั้งที่ n ในสไลด์นี้ (0 = แสดงพร้อมสไลด์)",
"hidden": "ซ่อน",
"unnumbered": "ไม่มีเลขหน้า",
+ "Web link": "ลิงก์เว็บ",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "การคลิกองค์ประกอบนี้ระหว่างนำเสนอจะเปิดหน้าเว็บนี้ในแท็บใหม่ (เฉพาะ https://)",
+ "web page (below)": "หน้าเว็บ (ด้านล่าง)",
+ "That doesn’t look like a web address — it should start with https://": "ดูไม่เหมือนที่อยู่เว็บ — ควรขึ้นต้นด้วย https://",
+ "Links are off in offline mode": "ลิงก์ปิดอยู่ในโหมดออฟไลน์",
+ "Bold · italic · underline while editing text": "ตัวหนา · ตัวเอียง · ขีดเส้นใต้ ขณะแก้ไขข้อความ",
+ "Collapse · expand the side panels": "ยุบ · ขยายแผงด้านข้าง",
+ "Zoom in · out · fit the slide": "ซูมเข้า · ซูมออก · พอดีสไลด์",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "เลื่อนสไลด์เมื่อไม่ได้เลือกอะไร มิฉะนั้นขยับสิ่งที่เลือก",
+ "Black screen — and back": "จอดำ — และกลับมา",
+ "All slides in the speaker view — pick one to jump to": "สไลด์ทั้งหมดในมุมมองผู้บรรยาย — เลือกหนึ่งแผ่นเพื่อข้ามไป",
+ "Previous · next slide, or the next reveal step on a slide that has them": "สไลด์ก่อนหน้า · ถัดไป หรือขั้นการเปิดเผยถัดไปในสไลด์ที่มี",
+ "Add a code snippet": "เพิ่มโค้ดสนิปเป็ต",
+ "Source Code": "ซอร์สโค้ด",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "คัดลอกเด็คนี้เป็น JSON ธรรมดา — เฉพาะเนื้อหา ไม่มีคีย์เซสชันสด แก้ไขในเครื่องมืออื่นแล้วนำกลับด้วย แทนที่จาก JSON",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "โหมดออฟไลน์เปิดอยู่สำหรับแท็บนี้ แต่บันทึกไม่ได้ — เบราว์เซอร์นี้บล็อกข้อมูลไซต์ จึงจะไม่คงอยู่หลังโหลดซ้ำ",
"Embed": "ฝัง",
"Web page": "หน้าเว็บ",
"No view yet. Capture a picture of the page so it shows offline.": "ยังไม่มีมุมมอง จับภาพหน้าเพื่อให้แสดงแบบออฟไลน์",
diff --git a/slides/src/i18n/packs/tk.ts b/slides/src/i18n/packs/tk.ts
index 9a6a2f97..102f66aa 100644
--- a/slides/src/i18n/packs/tk.ts
+++ b/slides/src/i18n/packs/tk.ts
@@ -5,6 +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 and the sixteen
+// for web links, the help overlay and the code panel (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
@@ -771,6 +774,22 @@ 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",
+ "Web link": "Web salgysy",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Görkeziş wagtynda bu elemente basmak bu web sahypasyny täze goýmada açýar (diňe https://)",
+ "web page (below)": "web sahypasy (aşakda)",
+ "That doesn’t look like a web address — it should start with https://": "Bu web salgysyna meňzemeýär — https:// bilen başlamaly",
+ "Links are off in offline mode": "Oflaýn tertipde salgylar öçürilen",
+ "Bold · italic · underline while editing text": "Tekst redaktirlenende galyň · gyşyk · aşagy çyzykly",
+ "Collapse · expand the side panels": "Gapdal panelleri ýygnamak · ýaýmak",
+ "Zoom in · out · fit the slide": "Ulaltmak · kiçeltmek · slaýdy ýerleşdirmek",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Hiç zat saýlanmadyk bolsa slaýdlaryň arasynda geçmek; bolmasa saýlanany süýşürmek",
+ "Black screen — and back": "Gara ekran — we yza",
+ "All slides in the speaker view — pick one to jump to": "Çykyş edýäniň görnüşinde ähli slaýdlar — birini saýlap geçiň",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Öňki · indiki slaýd, ýa-da ädimli slaýdda indiki açyş ädimi",
+ "Add a code snippet": "Kod bölegini goşmak",
+ "Source Code": "Çeşme kody",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Bu topary ýönekeý JSON görnüşinde göçürýär — diňe mazmun, janly sessiýa açarlary ýok. Başga gural bilen redaktirläp, «JSON-dan çalyşmak» arkaly yzyna getiriň.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Bu goýma üçin oflaýn tertip açyk, ýöne ýatda saklap bolmady — bu brauzer saýt maglumatlaryny böwetleýär, şonuň üçin täzeden ýüklenende saklanmaz",
"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ň.",
diff --git a/slides/src/i18n/packs/tr.ts b/slides/src/i18n/packs/tr.ts
index 4ef56e13..1436ddd0 100644
--- a/slides/src/i18n/packs/tr.ts
+++ b/slides/src/i18n/packs/tr.ts
@@ -748,6 +748,22 @@ 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",
+ "Web link": "Web bağlantısı",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Gösteri sırasında bu öğeye tıklamak bu web sayfasını yeni sekmede açar (yalnızca https://)",
+ "web page (below)": "web sayfası (aşağıda)",
+ "That doesn’t look like a web address — it should start with https://": "Bu bir web adresine benzemiyor — https:// ile başlamalı",
+ "Links are off in offline mode": "Çevrimdışı modda bağlantılar kapalı",
+ "Bold · italic · underline while editing text": "Metin düzenlerken kalın · italik · altı çizili",
+ "Collapse · expand the side panels": "Yan panelleri daralt · genişlet",
+ "Zoom in · out · fit the slide": "Yakınlaştır · uzaklaştır · slayda sığdır",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Hiçbir şey seçili değilken slaytlar arasında geçer; aksi hâlde seçimi kaydırır",
+ "Black screen — and back": "Siyah ekran — ve geri",
+ "All slides in the speaker view — pick one to jump to": "Sunucu görünümünde tüm slaytlar — birini seçip oraya atlayın",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Önceki · sonraki slayt ya da adımları olan bir slaytta sonraki açığa çıkarma adımı",
+ "Add a code snippet": "Kod parçacığı ekle",
+ "Source Code": "Kaynak Kodu",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Bu desteyi düz JSON olarak kopyalar — yalnızca içerik, canlı oturum anahtarları yok. Başka bir araçta düzenleyip JSON’dan Değiştir ile geri getirin.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Bu sekme için çevrimdışı mod açık ama kaydedilemedi — bu tarayıcı site verilerini engelliyor, bu yüzden yeniden yüklemede kalmaz",
"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.",
diff --git a/slides/src/i18n/packs/uk.ts b/slides/src/i18n/packs/uk.ts
index 574110c0..ed5eb822 100644
--- a/slides/src/i18n/packs/uk.ts
+++ b/slides/src/i18n/packs/uk.ts
@@ -757,6 +757,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "Анімація за клацанням: приховано до n-го → на цьому слайді (0 = показується разом зі слайдом)",
"hidden": "прихований",
"unnumbered": "без номера",
+ "Web link": "Вебпосилання",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Клацання на цьому елементі під час показу відкриває цю вебсторінку в новій вкладці (лише https://)",
+ "web page (below)": "вебсторінка (нижче)",
+ "That doesn’t look like a web address — it should start with https://": "Це не схоже на вебадресу — вона має починатися з https://",
+ "Links are off in offline mode": "В автономному режимі посилання вимкнено",
+ "Bold · italic · underline while editing text": "Жирний · курсив · підкреслений під час редагування тексту",
+ "Collapse · expand the side panels": "Згорнути · розгорнути бічні панелі",
+ "Zoom in · out · fit the slide": "Збільшити · зменшити · вписати слайд",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Перехід між слайдами, коли нічого не вибрано; інакше зсув виділення",
+ "Black screen — and back": "Чорний екран — і назад",
+ "All slides in the speaker view — pick one to jump to": "Усі слайди в режимі доповідача — виберіть один, щоб перейти",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Попередній · наступний слайд, або наступний крок розкриття на слайді, де вони є",
+ "Add a code snippet": "Додати фрагмент коду",
+ "Source Code": "Початковий код",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Копіює цю презентацію як простий JSON — лише вміст, без ключів живого сеансу. Відредагуйте в іншому інструменті та поверніть через «Замінити з JSON».",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Автономний режим увімкнено для цієї вкладки, але зберегти його не вдалося — цей браузер блокує дані сайту, тож після перезавантаження він не збережеться",
"Embed": "Вбудовування",
"Web page": "Вебсторінка",
"No view yet. Capture a picture of the page so it shows offline.": "Поки що немає вигляду. Зробіть знімок сторінки, щоб вона показувалася офлайн.",
diff --git a/slides/src/i18n/packs/ur.ts b/slides/src/i18n/packs/ur.ts
index 9bc7f328..45e1999c 100644
--- a/slides/src/i18n/packs/ur.ts
+++ b/slides/src/i18n/packs/ur.ts
@@ -767,6 +767,22 @@ export const strings: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "کلک پر حرکت: اس سلائیڈ پر اگلی کلید کی n ویں دبانے تک پوشیدہ (0 = سلائیڈ کے ساتھ دکھایا جائے)",
"hidden": "پوشیدہ",
"unnumbered": "بغیر نمبر",
+ "Web link": "ویب لنک",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "شو کے دوران اس عنصر پر کلک کرنے سے یہ ویب صفحہ نئے ٹیب میں کھلتا ہے (صرف https://)",
+ "web page (below)": "ویب صفحہ (نیچے)",
+ "That doesn’t look like a web address — it should start with https://": "یہ ویب پتہ نہیں لگتا — اسے https:// سے شروع ہونا چاہیے",
+ "Links are off in offline mode": "آف لائن موڈ میں لنکس بند ہیں",
+ "Bold · italic · underline while editing text": "متن میں ترمیم کرتے وقت بولڈ · ترچھا · انڈرلائن",
+ "Collapse · expand the side panels": "سائیڈ پینل سمیٹیں · پھیلائیں",
+ "Zoom in · out · fit the slide": "زوم اِن · آؤٹ · سلائیڈ کے مطابق",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "کچھ منتخب نہ ہو تو سلائیڈز بدلیں؛ ورنہ انتخاب کھسکائیں",
+ "Black screen — and back": "سیاہ اسکرین — اور واپس",
+ "All slides in the speaker view — pick one to jump to": "اسپیکر ویو میں تمام سلائیڈز — ایک چنیں اور وہاں جائیں",
+ "Previous · next slide, or the next reveal step on a slide that has them": "پچھلی · اگلی سلائیڈ، یا مراحل والی سلائیڈ پر نمائش کا اگلا مرحلہ",
+ "Add a code snippet": "کوڈ سنپٹ شامل کریں",
+ "Source Code": "سورس کوڈ",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "اس ڈیک کو سادہ JSON کے طور پر کاپی کرتا ہے — صرف مواد، لائیو سیشن کی کلیدیں نہیں۔ اسے کسی اور ٹول میں ترمیم کریں، پھر ”JSON سے بدلیں“ کے ذریعے واپس لائیں۔",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "اس ٹیب کے لیے آف لائن موڈ آن ہے مگر محفوظ نہ ہو سکا — یہ براؤزر سائٹ ڈیٹا روک رہا ہے، اس لیے دوبارہ لوڈ کرنے پر باقی نہیں رہے گا",
"Embed": "ایمبیڈ",
"Web page": "ویب صفحہ",
"No view yet. Capture a picture of the page so it shows offline.": "ابھی کوئی منظر نہیں۔ صفحے کی تصویر لیں تاکہ یہ آف لائن دکھے۔",
diff --git a/slides/src/i18n/packs/vi.ts b/slides/src/i18n/packs/vi.ts
index 68a2ffe7..0d63dfb6 100644
--- a/slides/src/i18n/packs/vi.ts
+++ b/slides/src/i18n/packs/vi.ts
@@ -747,6 +747,22 @@ 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ố",
+ "Web link": "Liên kết web",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Nhấp vào phần tử này khi trình chiếu sẽ mở trang web này trong thẻ mới (chỉ https://)",
+ "web page (below)": "trang web (bên dưới)",
+ "That doesn’t look like a web address — it should start with https://": "Đó không giống địa chỉ web — nó phải bắt đầu bằng https://",
+ "Links are off in offline mode": "Liên kết bị tắt ở chế độ ngoại tuyến",
+ "Bold · italic · underline while editing text": "Đậm · nghiêng · gạch chân khi chỉnh sửa văn bản",
+ "Collapse · expand the side panels": "Thu gọn · mở rộng các bảng bên",
+ "Zoom in · out · fit the slide": "Phóng to · thu nhỏ · vừa trang chiếu",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Chuyển trang chiếu khi không chọn gì; nếu không, dịch chuyển phần đã chọn",
+ "Black screen — and back": "Màn hình đen — và quay lại",
+ "All slides in the speaker view — pick one to jump to": "Tất cả trang chiếu trong chế độ người trình bày — chọn một để chuyển tới",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Trang chiếu trước · sau, hoặc bước hé lộ tiếp theo trên trang chiếu có các bước",
+ "Add a code snippet": "Thêm đoạn mã",
+ "Source Code": "Mã nguồn",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Sao chép bộ trang chiếu này dưới dạng JSON thuần — chỉ nội dung, không có khóa phiên trực tiếp. Chỉnh sửa trong công cụ khác rồi đưa về bằng Thay thế từ JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "Chế độ ngoại tuyến đang bật cho thẻ này nhưng không lưu được — trình duyệt này chặn dữ liệu trang, nên sẽ không giữ lại sau khi tải lại",
"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.",
diff --git a/slides/src/i18n/pt.ts b/slides/src/i18n/pt.ts
index 1f738342..f756a849 100644
--- a/slides/src/i18n/pt.ts
+++ b/slides/src/i18n/pt.ts
@@ -809,6 +809,22 @@ 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",
+ "Web link": "Ligação web",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "Clicar neste elemento durante a apresentação abre esta página web num novo separador (apenas https://)",
+ "web page (below)": "página web (abaixo)",
+ "That doesn’t look like a web address — it should start with https://": "Isso não parece um endereço web — devia começar por https://",
+ "Links are off in offline mode": "As ligações estão desligadas no modo offline",
+ "Bold · italic · underline while editing text": "Negrito · itálico · sublinhado ao editar texto",
+ "Collapse · expand the side panels": "Recolher · expandir os painéis laterais",
+ "Zoom in · out · fit the slide": "Ampliar · reduzir · ajustar o slide",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "Percorre os slides quando nada está selecionado; caso contrário, desloca a seleção",
+ "Black screen — and back": "Ecrã preto — e voltar",
+ "All slides in the speaker view — pick one to jump to": "Todos os slides na vista do apresentador — escolha um para saltar",
+ "Previous · next slide, or the next reveal step on a slide that has them": "Slide anterior · seguinte, ou o próximo passo de revelação num slide que os tenha",
+ "Add a code snippet": "Adicionar um excerto de código",
+ "Source Code": "Código-fonte",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "Copia esta apresentação como JSON simples — apenas conteúdo, sem chaves de sessão ao vivo. Edite-o noutra ferramenta e traga-o de volta com Substituir a partir de JSON.",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "O modo offline está ligado para este separador, mas não pôde ser guardado — este navegador bloqueia os dados do site, por isso não sobreviverá a um recarregamento",
"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.",
diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.ts
index 17e2aab7..c8a1e6bc 100644
--- a/slides/src/i18n/zh-Hans.ts
+++ b/slides/src/i18n/zh-Hans.ts
@@ -811,6 +811,22 @@ export const zhHans: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "单击时动画:在此幻灯片上按第 n 次 → 之前隐藏(0 = 随幻灯片显示)",
"hidden": "已隐藏",
"unnumbered": "不编号",
+ "Web link": "网页链接",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "放映时点击此元素会在新标签页中打开此网页(仅限 https://)",
+ "web page (below)": "网页(见下方)",
+ "That doesn’t look like a web address — it should start with https://": "这看起来不像网址 — 应以 https:// 开头",
+ "Links are off in offline mode": "离线模式下链接已关闭",
+ "Bold · italic · underline while editing text": "编辑文本时加粗 · 斜体 · 下划线",
+ "Collapse · expand the side panels": "折叠 · 展开侧边面板",
+ "Zoom in · out · fit the slide": "放大 · 缩小 · 适应幻灯片",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "未选中任何内容时切换幻灯片;否则微调所选内容",
+ "Black screen — and back": "黑屏 — 再返回",
+ "All slides in the speaker view — pick one to jump to": "在演讲者视图中显示全部幻灯片 — 选择一张跳转",
+ "Previous · next slide, or the next reveal step on a slide that has them": "上一张 · 下一张幻灯片,或在有显示步骤的幻灯片上进入下一步",
+ "Add a code snippet": "添加代码片段",
+ "Source Code": "源代码",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "将此文稿复制为纯 JSON — 仅内容,不含实时会话密钥。在其他工具中编辑后,用“从 JSON 替换”带回来。",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "此标签页已开启离线模式,但无法保存 — 此浏览器阻止了站点数据,因此重新加载后不会保留",
"Embed": "嵌入",
"Web page": "网页",
"No view yet. Capture a picture of the page so it shows offline.": "还没有视图。请截取页面图片,以便离线时显示。",
diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.ts
index 04d43f71..138a3703 100644
--- a/slides/src/i18n/zh-Hant.ts
+++ b/slides/src/i18n/zh-Hant.ts
@@ -811,6 +811,22 @@ export const zhHant: Catalog = {
"Animate on click: hidden until the n-th → on this slide (0 = shown with the slide)": "點擊時動畫:在此投影片上按第 n 次 → 之前隱藏(0 = 隨投影片顯示)",
"hidden": "已隱藏",
"unnumbered": "不編號",
+ "Web link": "網頁連結",
+ "Clicking this element during the show opens this web page in a new tab (https:// only)": "簡報時點擊此元素會在新分頁中開啟此網頁(僅限 https://)",
+ "web page (below)": "網頁(見下方)",
+ "That doesn’t look like a web address — it should start with https://": "這看起來不像網址 — 應以 https:// 開頭",
+ "Links are off in offline mode": "離線模式下連結已關閉",
+ "Bold · italic · underline while editing text": "編輯文字時粗體 · 斜體 · 底線",
+ "Collapse · expand the side panels": "收合 · 展開側邊面板",
+ "Zoom in · out · fit the slide": "放大 · 縮小 · 符合投影片",
+ "Walk the slides when nothing is selected; nudge the selection otherwise": "未選取任何內容時切換投影片;否則微調所選內容",
+ "Black screen — and back": "黑畫面 — 再返回",
+ "All slides in the speaker view — pick one to jump to": "在講者檢視中顯示全部投影片 — 選擇一張跳轉",
+ "Previous · next slide, or the next reveal step on a slide that has them": "上一張 · 下一張投影片,或在有顯示步驟的投影片上進入下一步",
+ "Add a code snippet": "新增程式碼片段",
+ "Source Code": "原始碼",
+ "Copies this deck as plain JSON — content only, no live-session keys. Edit it in another tool, then bring it back with Replace from JSON.": "將此文稿複製為純 JSON — 僅內容,不含即時工作階段金鑰。在其他工具中編輯後,用「從 JSON 取代」帶回來。",
+ "Offline mode is on for this tab, but could not be saved — this browser is blocking site data, so it will not survive a reload": "此分頁已開啟離線模式,但無法儲存 — 此瀏覽器封鎖了網站資料,因此重新載入後不會保留",
"Embed": "嵌入",
"Web page": "網頁",
"No view yet. Capture a picture of the page so it shows offline.": "還沒有檢視。請擷取頁面圖片,以便離線時顯示。",
diff --git a/slides/src/model.ts b/slides/src/model.ts
index 367044a1..6071cfbd 100644
--- a/slides/src/model.ts
+++ b/slides/src/model.ts
@@ -93,6 +93,12 @@ export interface ElementBase {
}
}
/** while presenting, clicking this element jumps to the slide with this id */
+ /**
+ * Click target while presenting: a slide id (jump there — the state-slide
+ * idiom), or an http(s) URL (opens in a NEW tab, never navigating the deck
+ * away; `isWebUrl` is the whole scheme test, so `javascript:` and `data:`
+ * are not links). Discussion #373/#374. Editor clicks never follow it.
+ */
link?: string
/** semantic group tag — hover focus and multi-element behaviours target it */
group?: string
@@ -354,9 +360,17 @@ export interface MediaElement extends ElementBase {
* (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)
+/**
+ * The one scheme test for anything that opens or loads a web page — an
+ * embed's `url` (the paste gate and the live-frame gate), an element `link`,
+ * a text `<a href>` — shared so no surface is looser than another. http and
+ * https only, bounded, no quote or angle bracket (attribute breakout); a URL
+ * that is merely well-formed but `javascript:`/`data:`/`file:` is not one.
+ */
+export const isWebUrl = (v: unknown): v is string =>
+ // (the quote characters are written as escapes: a bare quote inside a regex
+ // literal reads as an unterminated string to the source-shape rigs' masker)
+ typeof v === 'string' && v.length <= 2048 && /^https?:\/\/[^\s\x22\x27<>]+$/i.test(v)
export interface EmbedElement extends ElementBase {
type: 'embed'
diff --git a/slides/src/present.ts b/slides/src/present.ts
index fc55bb77..f4f574e4 100644
--- a/slides/src/present.ts
+++ b/slides/src/present.ts
@@ -9,7 +9,7 @@ import 'reveal.js/dist/reveal.css'
import { anim, resetXform } from './anim'
import { chartSnapshotSvg, mountChart } from './charts'
import type { BentoDoc, GradientFill, ShapeElement, Slide, SlideElement } from './model'
-import { morphKey, paginates, inLinearFlow } from './model'
+import { morphKey, paginates, inLinearFlow, isWebUrl } from './model'
import { applyElementFrame, gradientLineCoords, renderSlide } from './render'
import { paintSpeaker, setSpeakerWindow, speakerIdleBody, speakerWindow } from './screens'
import { ICONS } from './icons'
@@ -118,6 +118,11 @@ export function startPresentation(
slide.transition === 'morph' || morphNext ? 'none' : slide.transition
if (!inLinearFlow(slide)) section.dataset.bentoState = '1' // dimmed in overview
const surface = renderSlide(slide, doc, { hidePlaceholders: true, liveMedia: true })
+ // Web links: rel set AT MOUNT, in the show only, never stored — a click
+ // goes through openWeb, but the browser's own routes to an anchor (the
+ // context menu's "open in new tab", a drag) do not, and on a hosted deck
+ // they would otherwise send this page's location as the referrer.
+ for (const a of Array.from(surface.querySelectorAll<HTMLAnchorElement>('a[href]'))) a.rel = 'noopener noreferrer'
// reveal slides start with only the default hover set visible
if (slide.hover?.type === 'reveal') applyRevealSet(surface, slide.hover.default ?? null, slide.hover.default)
section.appendChild(surface)
@@ -1353,17 +1358,56 @@ export function startPresentation(
updateSpeaker()
}) as any)
- // Clicking an element with a link jumps to its target slide.
+ // Open a web page from the show — always a NEW tab, never navigating the
+ // deck away (the file IS the presentation; a same-tab navigation would end
+ // it and, on a file:// deck, leave nothing to come back to). noopener so the
+ // page cannot reach this window; noreferrer so the deck's location is not
+ // sent. The offline switch is honoured: a viewer who asked for no network
+ // activity does not get a browser tab making a request on a click.
+ const openWeb = (url: string) => {
+ if (offlineEnabled()) { flashPresentMsg(t('Links are off in offline mode')); return }
+ window.open(url, '_blank', 'noopener,noreferrer')
+ }
+ // Clicking an element with a link jumps to its target slide, or opens a web
+ // page; an <a href> inside text (the [caption](url) markdown) opens too.
slidesEl.addEventListener('click', (ev) => {
+ const anchor = (ev.target as HTMLElement).closest<HTMLAnchorElement>('a[href]')
+ if (anchor && slidesEl.contains(anchor)) {
+ ev.preventDefault()
+ ev.stopPropagation()
+ const href = anchor.getAttribute('href') ?? ''
+ if (isWebUrl(href)) openWeb(href)
+ return
+ }
const target = (ev.target as HTMLElement).closest<HTMLElement>('[data-link]')
if (!target) return
- const idx = doc.slides.findIndex((s) => s.id === target.dataset.link)
+ const link = target.dataset.link ?? ''
+ if (isWebUrl(link)) {
+ ev.preventDefault()
+ ev.stopPropagation()
+ openWeb(link)
+ return
+ }
+ const idx = doc.slides.findIndex((s) => s.id === link)
if (idx >= 0) {
ev.preventDefault()
ev.stopPropagation()
deck.slide(idx, 0)
}
})
+ // A middle-click fires `auxclick`, not `click`, and the browser's default
+ // for it on an anchor is "open in a new tab" — straight past the offline
+ // gate and the noreferrer flag. Route it through the same door.
+ slidesEl.addEventListener('auxclick', (ev) => {
+ const anchor = (ev.target as HTMLElement).closest<HTMLAnchorElement>('a[href]')
+ if (!anchor) return
+ ev.preventDefault()
+ ev.stopPropagation()
+ if (ev.button === 1) {
+ const href = anchor.getAttribute('href') ?? ''
+ if (isWebUrl(href)) openWeb(href)
+ }
+ })
const goTo = (index: number) => {
if (deckReady) deck.slide(index, 0)
diff --git a/slides/src/render.ts b/slides/src/render.ts
index ab07a1f2..4c6da9a9 100644
--- a/slides/src/render.ts
+++ b/slides/src/render.ts
@@ -542,7 +542,7 @@ export function resolveMath(html: string): string {
*/
const ALLOWED_TAGS = new Set([
'B', 'I', 'U', 'BR', 'SPAN', 'DIV', 'P', 'STRONG', 'EM', 'S', 'CODE',
- 'UL', 'OL', 'LI', 'H1', 'H2',
+ 'UL', 'OL', 'LI', 'H1', 'H2', 'A',
])
/** Keep pasted/edited rich text down to a safe inline subset. */
@@ -562,7 +562,15 @@ export function sanitizeHtml(html: string): string {
elChild.remove()
continue
}
+ // No attribute survives — except an anchor's href when it is a web
+ // URL (isWebUrl: http/https only, so javascript:/data: never land in
+ // a document). target/rel are decided at click time, never stored.
+ const href = elChild.tagName === 'A' ? elChild.getAttribute('href') : null
for (const attr of Array.from(elChild.attributes)) elChild.removeAttribute(attr.name)
+ if (elChild.tagName === 'A') {
+ if (isWebUrl(href)) elChild.setAttribute('href', href)
+ else { walk(elChild); while (elChild.firstChild) node.insertBefore(elChild.firstChild, elChild); elChild.remove(); continue }
+ }
walk(elChild)
} else if (child.nodeType !== Node.TEXT_NODE) {
child.remove()
diff --git a/slides/src/styles.css b/slides/src/styles.css
index 85140734..99c1dc34 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -477,6 +477,10 @@ a.ed-btn { text-decoration: none; } /* the update block's "What's new" link is
.bento-slide { position: relative; overflow: hidden; }
.bento-el { position: absolute; contain: layout style; }
+/* A web link inside text: underlined in the author's colour, a pointer only
+ in the show (the editor treats it as text — canvas.ts swallows the click). */
+.bento-el a[href] { color: inherit; text-decoration: underline; text-underline-offset: 0.12em; }
+.bento-present-overlay .bento-el a[href] { cursor: pointer; }
/* Formulas are left on the browser's own `math` family ON PURPOSE — naming a
maths font here fixes nothing and has been reverted three times. The
diff --git a/slides/src/untrusted.ts b/slides/src/untrusted.ts
index a4fb92f8..c16dd02c 100644
--- a/slides/src/untrusted.ts
+++ b/slides/src/untrusted.ts
@@ -386,7 +386,9 @@ const ELEMENT_CHECKS: Record<string, Check> = {
themeRefs,
// identity + geometry
id: cssValue(), morphId: cssValue(), role: cssValue(), group: cssValue(),
- groupId: cssValue(), showOnHover: cssValue(), link: cssValue(),
+ groupId: cssValue(), showOnHover: cssValue(),
+ // a slide id, or an http(s) URL — the same test the renderer and the show apply
+ link: (v) => (isWebUrl(v) ? v : cssValue()(v)),
x: num(-1e6, 1e6), y: num(-1e6, 1e6), w: num(0, 1e6), h: num(0, 1e6),
rotation: num(-3600, 3600), opacity: num(0, 1),
shadow: (v) => (Array.isArray(v) ? list(16, shadowSpec)(v) : shadowSpec(v)),