Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

slides: Save ▾ — Import PowerPoint… opens /convert?from=pptx; add Export for PowerPoint… (#680)

nyblnete6eb50d4f8e1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 166fe4c3..4c817206 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2283,9 +2283,11 @@ jobs:
# unknown-role copy arriving in a running editor (dropped, loadDoc) gets
# no write actions and is locked; owner and writer copies keep theirs.
run: node scripts/test-slides-audience-gate-browser.mjs
- - name: Import PowerPoint link in Chromium
- # Save as → Import PowerPoint… opens only the bento.page importer, in a
- # new tab with no opener, and its tooltip says it needs the network.
+ - name: PowerPoint converter links in Chromium
+ # Save as → Import PowerPoint… (/convert?from=pptx) and Export for
+ # PowerPoint… (/convert), in that order after Replace from JSON…, each
+ # opens only its URL in a new tab with no opener, and says it needs
+ # the network.
run: node scripts/test-slides-import-link-browser.mjs
- name: Under-specified documents boot in Chromium
# parseDoc fills required fields only where absent and drops elements
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7bea667e..a02d807b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,7 +29,10 @@ pre-1.0.
dropped and offers what it can become; there's a sample deck to try. As
before, nothing is uploaded: the conversion runs in your browser, and the
page only downloads the signed bento/slides release when it makes a deck.
- bento.page/import now opens this page, so its links keep working.
+ bento.page/import now opens this page, so its links keep working. In
+ slides, the Save menu has both ways in: "Import PowerPoint…" opens the page
+ ready for a .pptx, and "Export for PowerPoint…" opens it for this deck's
+ saved file.
- **Saving as PowerPoint keeps more of your deck.** Speaker notes, links,
tables, charts, pictures and hidden slides come across, and now code
diff --git a/scripts/test-slides-import-link-browser.mjs b/scripts/test-slides-import-link-browser.mjs
index 978efdd5..a0bb8135 100644
--- a/scripts/test-slides-import-link-browser.mjs
+++ b/scripts/test-slides-import-link-browser.mjs
@@ -1,20 +1,24 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 The Bento authors
-// Save as → Import PowerPoint… opens the importer on bento.page, and says so.
+// Save as → Import PowerPoint… and Export for PowerPoint… open the converter
+// on bento.page, and say so.
//
// npm run build:single --prefix slides && node scripts/test-slides-import-link-browser.mjs
//
// WHAT THIS PROVES, in the packaged document:
-// 1. the Save-as menu has "Import PowerPoint…" as ONE line, directly after
-// "Replace from JSON…" (where spaces keeps Import Markdown…);
-// 2. its description is the hover tooltip, and names bento.page, a new tab
-// and the internet connection it needs;
-// 3. clicking it opens exactly the importer URL in a new tab, with no
-// opener (the page cannot reach back into this document), and leaves
-// this document where it was;
-// 4. the entry is translated in every catalog (checked in German).
-// The network is blocked throughout: the click is measured by the tab it
-// asks for, not by the page loading.
+// 1. the Save-as menu has "Import PowerPoint…" directly after "Replace from
+// JSON…" (where spaces keeps Import Markdown…) and "Export for
+// PowerPoint…" directly after it, each ONE line;
+// 2. each description is the hover tooltip, naming bento.page, a new tab and
+// the internet connection; the export one also says the deck is not
+// uploaded;
+// 3. clicking each opens exactly its URL in a new tab, with no opener (the
+// page cannot reach back into this document), and leaves this document
+// where it was: import → /convert?from=pptx (new shells go straight to
+// the page; /import only redirects for old ones), export → /convert;
+// 4. both entries are translated in every catalog (checked in German).
+// The network is blocked throughout: a click is measured by the tab it asks
+// for, not by the page loading.
const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright')
let checks = 0
@@ -23,7 +27,10 @@ function ok(cond, msg) {
checks++
if (!cond) { failures++; console.log(` FAIL ${msg}`) } else console.log(` ok ${msg}`)
}
-const URL_EXPECTED = 'https://bento.page/import'
+const ENTRIES = [
+ { name: 'Import PowerPoint…', url: 'https://bento.page/convert?from=pptx', de: 'PowerPoint importieren' },
+ { name: 'Export for PowerPoint…', url: 'https://bento.page/convert', de: 'Für PowerPoint exportieren', tipAlso: /not uploaded/ },
+]
const browser = await chromium.launch({ executablePath: process.env.CHROME_PATH, headless: true })
try {
@@ -37,40 +44,51 @@ try {
const shell = new URL('../slides/dist-single/Bento_Slides.bento.html', import.meta.url).href
await p.goto(shell)
await p.waitForFunction(() => window.bento?.doc && document.querySelector('.ed-split-caret'))
-
- console.log('the entry\n')
- await p.evaluate(() => document.querySelector('.ed-split-caret').click())
- const rows = await p.evaluate(() => [...document.querySelectorAll('.ed-save-menu > .ed-btn')].map((b) => ({
+ const openSave = () => p.evaluate(() => document.querySelector('.ed-split-caret').click())
+ const rowsNow = () => p.evaluate(() => [...document.querySelectorAll('.ed-save-menu > .ed-btn')].map((b) => ({
name: b.getAttribute('aria-label') ?? b.querySelector('span')?.firstChild?.textContent?.trim() ?? b.textContent.trim(),
title: b.title, h: Math.round(b.getBoundingClientRect().height),
})))
- const i = rows.findIndex((r) => r.name.startsWith('Import PowerPoint'))
- ok(i >= 0, `"Import PowerPoint…" is in the Save-as menu (${rows.map((r) => r.name).join(' · ')})`)
- ok(i > 0 && rows[i - 1].name.startsWith('Replace from JSON'), 'it sits directly after Replace from JSON…, the other import')
- ok(i >= 0 && rows[i].h <= 32, `one line (${rows[i]?.h}px)`)
- const tip = rows[i]?.title ?? ''
- ok(/bento\.page/.test(tip) && /new tab/.test(tip) && /internet/.test(tip), `its tooltip names bento.page, a new tab and the connection ("${tip}")`)
- console.log('\nthe click\n')
- const [popup] = await Promise.all([
- ctx.waitForEvent('page', { timeout: 5000 }).catch(() => null),
- p.evaluate(() => [...document.querySelectorAll('.ed-save-menu > .ed-btn')].find((b) => (b.getAttribute('aria-label') ?? b.textContent).includes('Import PowerPoint')).click()),
- ])
- ok(!!popup, 'it opens a new tab')
- if (popup) {
- await popup.waitForLoadState('domcontentloaded').catch(() => {})
- ok(asked.length === 1 && asked[0] === URL_EXPECTED, `the tab asks for the importer, and only it (${asked.join(', ') || 'nothing'})`)
- ok(await popup.evaluate(() => window.opener === null).catch(() => true), 'the new tab has no opener')
- await popup.close()
+ console.log('the entries\n')
+ await openSave()
+ const rows = await rowsNow()
+ const names = rows.map((r) => r.name)
+ const at = names.indexOf('Replace from JSON…')
+ ok(at >= 0 && names[at + 1] === ENTRIES[0].name && names[at + 2] === ENTRIES[1].name,
+ `Replace from JSON… · Import PowerPoint… · Export for PowerPoint…, in that order (${names.join(' · ')})`)
+ for (const e of ENTRIES) {
+ const r = rows.find((x) => x.name === e.name)
+ ok(!!r && r.h <= 32, `${e.name}: one line (${r?.h}px)`)
+ const tip = r?.title ?? ''
+ ok(/bento\.page/.test(tip) && /new tab/.test(tip) && /internet/.test(tip) && (!e.tipAlso || e.tipAlso.test(tip)),
+ `${e.name}: tooltip names bento.page, a new tab and the connection${e.tipAlso ? ', and that the deck is not uploaded' : ''} ("${tip}")`)
+ }
+
+ console.log('\nthe clicks\n')
+ for (const e of ENTRIES) {
+ asked.length = 0
+ if (!(await p.evaluate(() => document.querySelector('.ed-save-menu')?.closest('.ed-dropdown')?.classList.contains('open')))) await openSave()
+ const [popup] = await Promise.all([
+ ctx.waitForEvent('page', { timeout: 5000 }).catch(() => null),
+ p.evaluate((n) => [...document.querySelectorAll('.ed-save-menu > .ed-btn')].find((b) => b.getAttribute('aria-label') === n || b.textContent.trim().startsWith(n)).click(), e.name),
+ ])
+ ok(!!popup, `${e.name}: opens a new tab`)
+ if (popup) {
+ await popup.waitForLoadState('domcontentloaded').catch(() => {})
+ ok(asked.length === 1 && asked[0] === e.url, `${e.name}: the tab asks for ${e.url}, and only it (${asked.join(', ') || 'nothing'})`)
+ ok(await popup.evaluate(() => window.opener === null).catch(() => true), `${e.name}: the new tab has no opener`)
+ await popup.close()
+ }
+ ok(p.url() === shell, `${e.name}: this document stays where it was`)
+ ok(!(await p.evaluate(() => document.querySelector('.ed-save-menu')?.closest('.ed-dropdown')?.classList.contains('open'))), `${e.name}: the menu closes`)
}
- ok(p.url() === shell, 'this document stays where it was')
- ok(!(await p.evaluate(() => document.querySelector('.ed-save-menu')?.closest('.ed-dropdown')?.classList.contains('open'))), 'the menu closes')
console.log('\ntranslated\n')
await p.evaluate(() => [...document.querySelectorAll('.ed-lang-menu .ed-btn')].find((b) => b.textContent.trim() === 'Deutsch').click())
- await p.evaluate(() => document.querySelector('.ed-split-caret').click())
- const de = await p.evaluate(() => [...document.querySelectorAll('.ed-save-menu > .ed-btn')].map((b) => b.textContent.trim()))
- ok(de.some((x) => x.startsWith('PowerPoint importieren')), 'German shows "PowerPoint importieren…"')
+ await openSave()
+ const de = await p.evaluate(() => [...document.querySelectorAll('.ed-save-menu > .ed-btn')].map((b) => b.getAttribute('aria-label') ?? b.textContent.trim()))
+ for (const e of ENTRIES) ok(de.some((x) => x.startsWith(e.de)), `German shows "${e.de}…"`)
await p.evaluate(() => [...document.querySelectorAll('.ed-lang-menu .ed-btn')].find((b) => b.textContent.trim() === 'English').click())
ok(errors.length === 0, `no page errors${errors.length ? ': ' + errors.join('; ') : ''}`)
diff --git a/scripts/test-spaces-chrome.ts b/scripts/test-spaces-chrome.ts
index 304f13a0..1f3126d0 100644
--- a/scripts/test-spaces-chrome.ts
+++ b/scripts/test-spaces-chrome.ts
@@ -166,6 +166,8 @@ const EQUIV: Record<string, string | null> = {
'Copy compact JSON (for agents)': null, 'Replace from JSON…': 'Replace from JSON…', 'Start from scratch…': null,
// slides' way in from another format, in the slot spaces gives its own
'Import PowerPoint…': 'Import Markdown…',
+ // the converter's other direction; spaces has no PowerPoint form to export
+ 'Export for PowerPoint…': null,
}
const unmapped = slidesSave.filter((l) => !(l in EQUIV))
ok(slidesSave.length >= 9 && unmapped.length === 0, `every row of slides' Save menu has an entry in the equivalence table (${slidesSave.length} rows; new: ${unmapped.join(', ') || 'none'})`)
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index 7cdbaaaa..6468986b 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -91,13 +91,16 @@ const SHAPE_MENU: Array<{ kind: ShapeKind; label: string; icon: string; heads?:
]
/**
- * The PowerPoint importer on the site (bento/convert's page, #589). A LINK,
- * not a feature of this file: the conversion needs the network, and a saved
- * deck never loads anything on its own, so the entry opens the page in a new
- * tab and says so in its tooltip. Slides' release carries the site, so the
- * entry and the page ship together.
+ * The PowerPoint converter on the site (bento/convert's page, #589): one page,
+ * in and out. LINKS, not features of this file: the conversion needs the
+ * network, and a saved deck never loads anything on its own, so each entry
+ * opens the page in a new tab and says so in its tooltip. Slides' release
+ * carries the site, so the entries and the page ship together. Import opens
+ * the page straight on its .pptx side; the old /import path still redirects
+ * there for shells that predate this.
*/
-export const IMPORT_PPTX_URL = 'https://bento.page/import'
+export const IMPORT_PPTX_URL = 'https://bento.page/convert?from=pptx'
+export const EXPORT_PPTX_URL = 'https://bento.page/convert'
/**
* May this copy write? An ALLOWLIST that fails closed: a deck with no live
@@ -1004,6 +1007,9 @@ export class Editor {
item(ICONS.importDoc, t('Import PowerPoint…'),
t('Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.'),
() => { window.open(IMPORT_PPTX_URL, '_blank', 'noopener,noreferrer') })
+ item(ICONS.exportDoc, t('Export for PowerPoint…'),
+ t('Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.'),
+ () => { window.open(EXPORT_PPTX_URL, '_blank', 'noopener,noreferrer') })
item(ICONS.template, t('Start from scratch…'),
t('Replace every slide with one blank slide. Keeps the deck’s theme, name and live session — ⌘Z undoes.'),
() => this.startFromScratch())
diff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.ts
index db4d3e49..731ddb57 100644
--- a/slides/src/i18n/de.ts
+++ b/slides/src/i18n/de.ts
@@ -608,6 +608,8 @@ export const de: Catalog = {
"Replace from JSON…": "Aus JSON ersetzen…",
"Import PowerPoint…": "PowerPoint importieren…",
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": "Öffnet den PowerPoint-Import auf bento.page in einem neuen Tab – er macht aus einer .pptx eine Bento-Präsentation. Benötigt eine Internetverbindung.",
+ "Export for PowerPoint…": "Für PowerPoint exportieren…",
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": "Öffnet den Konverter auf bento.page in einem neuen Tab – zieh die gespeicherte Datei dieser Präsentation hinein, um eine .pptx zu erhalten. Die Präsentation wird nicht hochgeladen. Benötigt eine Internetverbindung.",
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": "Zugriff zurücksetzen? Alle gesendeten Kopien synchronisieren nicht mehr; nur danach gespeicherte können beitreten.",
"Reset access…": "Zugriff zurücksetzen…",
"Save a copy…": "Kopie speichern…",
diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.ts
index 2d9ad628..5ed4f67d 100644
--- a/slides/src/i18n/es.ts
+++ b/slides/src/i18n/es.ts
@@ -608,6 +608,8 @@ export const es: Catalog = {
"Replace from JSON…": "Reemplazar desde JSON…",
"Import PowerPoint…": "Importar PowerPoint…",
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": "Abre el importador de PowerPoint de bento.page en una pestaña nueva: convierte un .pptx en una presentación de Bento. Necesita conexión a internet.",
+ "Export for PowerPoint…": "Exportar para PowerPoint…",
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": "Abre el conversor de bento.page en una pestaña nueva: suelta allí el archivo guardado de esta presentación para obtener un .pptx. La presentación no se sube. Necesita conexión a internet.",
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": "¿Restablecer el acceso? Todas las copias enviadas dejarán de sincronizarse; solo podrán unirse las guardadas después.",
"Reset access…": "Restablecer acceso…",
"Save a copy…": "Guardar una copia…",
diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.ts
index d274bd56..74ffc5b7 100644
--- a/slides/src/i18n/fr.ts
+++ b/slides/src/i18n/fr.ts
@@ -608,6 +608,8 @@ export const fr: Catalog = {
"Replace from JSON…": "Remplacer depuis JSON…",
"Import PowerPoint…": "Importer un PowerPoint…",
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": "Ouvre l’importateur PowerPoint de bento.page dans un nouvel onglet : il convertit un .pptx en présentation Bento. Nécessite une connexion Internet.",
+ "Export for PowerPoint…": "Exporter pour PowerPoint…",
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": "Ouvre le convertisseur de bento.page dans un nouvel onglet : déposez-y le fichier enregistré de ce deck pour obtenir un .pptx. Le deck n’est pas envoyé. Nécessite une connexion Internet.",
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": "Réinitialiser l’accès ? Toutes les copies envoyées cesseront de se synchroniser ; seules celles enregistrées ensuite pourront rejoindre.",
"Reset access…": "Réinitialiser l’accès…",
"Save a copy…": "Enregistrer une copie…",
diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.ts
index 98ee5f58..d814751b 100644
--- a/slides/src/i18n/it.ts
+++ b/slides/src/i18n/it.ts
@@ -608,6 +608,8 @@ export const it: Catalog = {
"Replace from JSON…": "Sostituisci da JSON…",
"Import PowerPoint…": "Importa PowerPoint…",
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": "Apre l’importatore PowerPoint di bento.page in una nuova scheda: trasforma un .pptx in una presentazione Bento. Richiede una connessione a Internet.",
+ "Export for PowerPoint…": "Esporta per PowerPoint…",
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": "Apre il convertitore di bento.page in una nuova scheda: trascina lì il file salvato di questa presentazione per ottenere un .pptx. La presentazione non viene caricata. Richiede una connessione a Internet.",
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": "Reimpostare l’accesso? Tutte le copie inviate smetteranno di sincronizzarsi; solo quelle salvate dopo potranno unirsi.",
"Reset access…": "Reimposta accesso…",
"Save a copy…": "Salva una copia…",
diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.ts
index f507e94f..fd7bd974 100644
--- a/slides/src/i18n/ja.ts
+++ b/slides/src/i18n/ja.ts
@@ -608,6 +608,8 @@ export const ja: Catalog = {
"Replace from JSON…": "JSON から置き換え…",
"Import PowerPoint…": "PowerPoint を読み込む…",
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": "bento.page の PowerPoint 読み込みページを新しいタブで開きます。.pptx を Bento のデッキに変換します。インターネット接続が必要です。",
+ "Export for PowerPoint…": "PowerPoint 用に書き出す…",
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": "bento.page の変換ページを新しいタブで開きます。このデッキの保存済みファイルをドロップすると .pptx になります。デッキはアップロードされません。インターネット接続が必要です。",
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": "アクセスをリセットしますか?送信済みのすべてのコピーが同期を停止し、以後保存したコピーだけが参加できます。",
"Reset access…": "アクセスをリセット…",
"Save a copy…": "コピーを保存…",
diff --git a/slides/src/i18n/packed.ts b/slides/src/i18n/packed.ts
index aaf16df8..54947cc7 100644
--- a/slides/src/i18n/packed.ts
+++ b/slides/src/i18n/packed.ts
@@ -616,6 +616,8 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Replace from JSON…": ["JSON から置き換え…","从 JSON 替换…","從 JSON 取代…","Reemplazar desde JSON…","Remplacer depuis JSON…","Aus JSON ersetzen…","Sostituisci da JSON…","Substituir a partir de JSON…"],
"Import PowerPoint…": ["PowerPoint を読み込む…","导入 PowerPoint…","匯入 PowerPoint…","Importar PowerPoint…","Importer un PowerPoint…","PowerPoint importieren…","Importa PowerPoint…","Importar PowerPoint…"],
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": ["bento.page の PowerPoint 読み込みページを新しいタブで開きます。.pptx を Bento のデッキに変換します。インターネット接続が必要です。","在新标签页打开 bento.page 上的 PowerPoint 导入工具,将 .pptx 转换为 Bento 演示文稿。需要联网。","在新分頁開啟 bento.page 上的 PowerPoint 匯入工具,將 .pptx 轉換為 Bento 簡報。需要網路連線。","Abre el importador de PowerPoint de bento.page en una pestaña nueva: convierte un .pptx en una presentación de Bento. Necesita conexión a internet.","Ouvre l’importateur PowerPoint de bento.page dans un nouvel onglet : il convertit un .pptx en présentation Bento. Nécessite une connexion Internet.","Öffnet den PowerPoint-Import auf bento.page in einem neuen Tab – er macht aus einer .pptx eine Bento-Präsentation. Benötigt eine Internetverbindung.","Apre l’importatore PowerPoint di bento.page in una nuova scheda: trasforma un .pptx in una presentazione Bento. Richiede una connessione a Internet.","Abre o importador de PowerPoint do bento.page em uma nova aba: converte um .pptx em uma apresentação Bento. Requer conexão com a internet."],
+ "Export for PowerPoint…": ["PowerPoint 用に書き出す…","导出为 PowerPoint…","匯出為 PowerPoint…","Exportar para PowerPoint…","Exporter pour PowerPoint…","Für PowerPoint exportieren…","Esporta per PowerPoint…","Exportar para PowerPoint…"],
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": ["bento.page の変換ページを新しいタブで開きます。このデッキの保存済みファイルをドロップすると .pptx になります。デッキはアップロードされません。インターネット接続が必要です。","在新标签页打开 bento.page 上的转换工具,把这份演示文稿已保存的文件拖进去即可得到 .pptx。演示文稿不会被上传。需要联网。","在新分頁開啟 bento.page 上的轉換工具,把這份簡報已儲存的檔案拖進去即可得到 .pptx。簡報不會被上傳。需要網路連線。","Abre el conversor de bento.page en una pestaña nueva: suelta allí el archivo guardado de esta presentación para obtener un .pptx. La presentación no se sube. Necesita conexión a internet.","Ouvre le convertisseur de bento.page dans un nouvel onglet : déposez-y le fichier enregistré de ce deck pour obtenir un .pptx. Le deck n’est pas envoyé. Nécessite une connexion Internet.","Öffnet den Konverter auf bento.page in einem neuen Tab – zieh die gespeicherte Datei dieser Präsentation hinein, um eine .pptx zu erhalten. Die Präsentation wird nicht hochgeladen. Benötigt eine Internetverbindung.","Apre il convertitore di bento.page in una nuova scheda: trascina lì il file salvato di questa presentazione per ottenere un .pptx. La presentazione non viene caricata. Richiede una connessione a Internet.","Abre o conversor do bento.page em uma nova aba: solte ali o arquivo salvo desta apresentação para obter um .pptx. A apresentação não é enviada. Requer conexão com a internet."],
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": ["アクセスをリセットしますか?送信済みのすべてのコピーが同期を停止し、以後保存したコピーだけが参加できます。","重置访问权限?已发送的所有副本将停止同步;只有此后保存的副本才能加入。","重設存取權限?已傳送的所有副本將停止同步;只有此後儲存的副本才能加入。","¿Restablecer el acceso? Todas las copias enviadas dejarán de sincronizarse; solo podrán unirse las guardadas después.","Réinitialiser l’accès ? Toutes les copies envoyées cesseront de se synchroniser ; seules celles enregistrées ensuite pourront rejoindre.","Zugriff zurücksetzen? Alle gesendeten Kopien synchronisieren nicht mehr; nur danach gespeicherte können beitreten.","Reimpostare l’accesso? Tutte le copie inviate smetteranno di sincronizzarsi; solo quelle salvate dopo potranno unirsi.","Redefinir o acesso? Toda cópia que você enviou para de sincronizar; apenas cópias salvas depois disso podem entrar."],
"Reset access…": ["アクセスをリセット…","重置访问权限…","重設存取權限…","Restablecer acceso…","Réinitialiser l’accès…","Zugriff zurücksetzen…","Reimposta accesso…","Redefinir acesso…"],
"Save a copy…": ["コピーを保存…","保存副本…","儲存副本…","Guardar una copia…","Enregistrer une copie…","Kopie speichern…","Salva una copia…","Salvar uma cópia…"],
diff --git a/slides/src/i18n/pt.ts b/slides/src/i18n/pt.ts
index 33800a23..4d54ee4b 100644
--- a/slides/src/i18n/pt.ts
+++ b/slides/src/i18n/pt.ts
@@ -597,6 +597,8 @@ export const pt: Catalog = {
"Replace from JSON…": "Substituir a partir de JSON…",
"Import PowerPoint…": "Importar PowerPoint…",
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": "Abre o importador de PowerPoint do bento.page em uma nova aba: converte um .pptx em uma apresentação Bento. Requer conexão com a internet.",
+ "Export for PowerPoint…": "Exportar para PowerPoint…",
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": "Abre o conversor do bento.page em uma nova aba: solte ali o arquivo salvo desta apresentação para obter um .pptx. A apresentação não é enviada. Requer conexão com a internet.",
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": "Redefinir o acesso? Toda cópia que você enviou para de sincronizar; apenas cópias salvas depois disso podem entrar.",
"Reset access…": "Redefinir acesso…",
"Save a copy…": "Salvar uma cópia…",
diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.ts
index 8bd8477b..18e5b69f 100644
--- a/slides/src/i18n/zh-Hans.ts
+++ b/slides/src/i18n/zh-Hans.ts
@@ -608,6 +608,8 @@ export const zhHans: Catalog = {
"Replace from JSON…": "从 JSON 替换…",
"Import PowerPoint…": "导入 PowerPoint…",
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": "在新标签页打开 bento.page 上的 PowerPoint 导入工具,将 .pptx 转换为 Bento 演示文稿。需要联网。",
+ "Export for PowerPoint…": "导出为 PowerPoint…",
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": "在新标签页打开 bento.page 上的转换工具,把这份演示文稿已保存的文件拖进去即可得到 .pptx。演示文稿不会被上传。需要联网。",
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": "重置访问权限?已发送的所有副本将停止同步;只有此后保存的副本才能加入。",
"Reset access…": "重置访问权限…",
"Save a copy…": "保存副本…",
diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.ts
index 873cfe58..efde9e99 100644
--- a/slides/src/i18n/zh-Hant.ts
+++ b/slides/src/i18n/zh-Hant.ts
@@ -608,6 +608,8 @@ export const zhHant: Catalog = {
"Replace from JSON…": "從 JSON 取代…",
"Import PowerPoint…": "匯入 PowerPoint…",
"Opens the PowerPoint importer on bento.page in a new tab — it turns a .pptx into a Bento deck. Needs an internet connection.": "在新分頁開啟 bento.page 上的 PowerPoint 匯入工具,將 .pptx 轉換為 Bento 簡報。需要網路連線。",
+ "Export for PowerPoint…": "匯出為 PowerPoint…",
+ "Opens the converter on bento.page in a new tab — drop this deck’s saved file there to get a .pptx. The deck is not uploaded. Needs an internet connection.": "在新分頁開啟 bento.page 上的轉換工具,把這份簡報已儲存的檔案拖進去即可得到 .pptx。簡報不會被上傳。需要網路連線。",
"Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.": "重設存取權限?已傳送的所有副本將停止同步;只有此後儲存的副本才能加入。",
"Reset access…": "重設存取權限…",
"Save a copy…": "儲存副本…",
diff --git a/slides/src/icons.ts b/slides/src/icons.ts
index db02b428..cbb648e1 100644
--- a/slides/src/icons.ts
+++ b/slides/src/icons.ts
@@ -45,6 +45,7 @@ export const ICONS = {
globe: svg('<circle cx="12" cy="12" r="9"/><path d="M3 12 h18"/><ellipse cx="12" cy="12" rx="4.2" ry="9"/>'),
code: svg('<polyline points="8 6 4 12 8 18"/><polyline points="16 6 20 12 16 18"/>'),
history: svg('<circle cx="12" cy="12" r="8.5"/><polyline points="12 7 12 12 15.5 14"/>'),
+ exportDoc: svg('<path d="M19 13V8l-5-5H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7"/><path d="M14 3v5h5"/><path d="M13 17h9"/><path d="m19 14 3 3-3 3"/>'),
importDoc: svg('<path d="M5 9V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-4"/><path d="M14 3v5h5"/><path d="M2 12h9"/><path d="m8 9 3 3-3 3"/>'),
share: svg('<circle cx="9" cy="8" r="3.2"/><path d="M3.5 20c.6-3.2 2.8-5 5.5-5s4.9 1.8 5.5 5"/><circle cx="17.5" cy="10.5" r="2.4"/><path d="M15.8 15.6c1.9.3 3.6 1.6 4.4 3.9"/>'),
table: svg('<rect x="3" y="4" width="18" height="16" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="3" y1="14.5" x2="21" y2="14.5"/><line x1="9" y1="4" x2="9" y2="20"/><line x1="15" y1="4" x2="15" y2="20"/>'),