Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
slides: code colours in the Theme panel; empty accent slots hidden (#469)
nyblnet68e27727b080
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 1f5e48fe..1467c420 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1317,6 +1317,14 @@ jobs:# keeps its bytes; the live document is untouched; measured saving.run: node scripts/test-slides-fonts.ts+ - name: Slides code colours rig+ # theme.codePalette's editor: one row per token scope from one list+ # (code.ts CODE_SCOPES), built-in colour shown when the deck has+ # none, the field written only on a change; plain literals, not+ # palette references. And accent 2–6 rows/swatches only for slots+ # the deck carries (six identical peach swatches were not choices).+ run: node scripts/test-code-palette.ts+- name: Slides pagination rig# Three ways a slide declines a page number (state, hidden, unnumbered)# and only one of them stays in the walk; every surface — page fields,diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 36ac6d25..388dc4a0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -94,6 +94,15 @@ pre-1.0.will draw from (menu, side panel, dialog, tooltip), and — from JohanHøgåsen-Hallesby (#423) — a build that runs its own release channel andrelay can now configure both without patching the kernel.+- **Code colours have an editor.** The Theme section gains a *Code colours*+ group — one colour per kind of token (comments, strings, numbers, keywords,+ calls, punctuation, diff added and removed) — so the palette Rahul Ravikumar+ added in #450 no longer needs a JSON round-trip to change. A deck without one+ shows the built-in scheme and keeps rendering exactly as before until you+ change a colour; a deck with one gets a button back to the built-in scheme.+- **Empty accent slots stay out of the way.** Accent 2–6 rows and quick-pick+ swatches appear only when the deck actually sets that slot; a fresh deck no+ longer shows six identical copies of accent 1. The format keeps all six.## [1.0.19] — 2026-09-04diff --git a/scripts/test-code-palette.ts b/scripts/test-code-palette.tsnew file mode 100644index 00000000..c97b5eaa--- /dev/null+++ b/scripts/test-code-palette.ts@@ -0,0 +1,77 @@+#!/usr/bin/env node+// SPDX-License-Identifier: MIT+// Copyright (c) 2026 The Bento authors+// Code colours rig: the Theme panel's rows for theme.codePalette (#450).+//+// node scripts/test-code-palette.ts+//+// WHAT THIS PROVES. The eight token scopes are ONE list (code.ts CODE_SCOPES)+// that the built-in colours, the model's codePalette keys, the starter deck's+// palette and the Theme panel all agree with — the panel builds one row per+// entry, shows the built-in colour when the deck has none, and writes the+// field only when a colour is changed, so a deck without a codePalette keeps+// rendering exactly as before. Code colours are plain literals, not palette+// references (stated in the panel; asserted here so nobody adds a second+// reference mechanism quietly).++import { readFileSync } from 'node:fs'+import { fileURLToPath } from 'node:url'+import { dirname, join } from 'node:path'+import { CODE_SCOPES, DEFAULT_CODE_COLORS } from '../slides/src/code.ts'++let failures = 0+let checks = 0+function ok(cond: boolean, msg: string) {+ checks+++ if (!cond) { failures++; console.log(` FAIL ${msg}`) }+ else console.log(` ok ${msg}`)+}+const root = join(dirname(fileURLToPath(import.meta.url)), '..')+const read = (f: string) => readFileSync(join(root, f), 'utf8')++console.log('one list of scopes\n')+const keys = CODE_SCOPES.map((s) => s.key)+ok(keys.length === 8 && new Set(keys).size === 8, 'eight scopes, no duplicates')+ok(keys.every((k) => /^#[0-9a-f]{6}$/i.test(DEFAULT_CODE_COLORS[k])), 'every scope has a built-in colour')+ok(Object.keys(DEFAULT_CODE_COLORS).filter((k) => k !== 'x').sort().join() === [...keys].sort().join(),+ 'the built-in scheme colours exactly the scopes (plus x, the plain-text passthrough)')+const model = read('slides/src/model.ts')+const block = model.slice(model.indexOf('codePalette?: {'), model.indexOf('}', model.indexOf('codePalette?: {')))+const modelKeys = [...block.matchAll(/^\s*([a-z])\?: string/gm)].map((m) => m[1])+ok(modelKeys.sort().join() === [...keys].sort().join(), `the model's codePalette keys are the same eight (${modelKeys.join(',')})`)+ok(CODE_SCOPES.every((s) => s.label.length > 0 && /^[A-Z]/.test(s.label)), 'every scope has a panel label')++console.log('\nthe starter deck\n')+const starter = read('slides/src/starterdeck.ts')+const sblock = starter.slice(starter.indexOf('doc.theme.codePalette = {'), starter.indexOf('}', starter.indexOf('doc.theme.codePalette = {')))+const sKeys = [...sblock.matchAll(/^\s*([a-z]):/gm)].map((m) => m[1])+ok(sKeys.length > 0 && sKeys.every((k) => keys.includes(k as never)), `the starter deck's palette uses only known scopes (${sKeys.join(',')})`)++console.log('\nthe panel\n')+const panels = read('slides/src/editor/panels.ts')+const theme = panels.slice(panels.indexOf('private buildThemeProps()'), panels.indexOf('private colorAlpha('))+ok(/for \(const scope of CODE_SCOPES\)/.test(theme), 'the Theme section builds one row per CODE_SCOPES entry')+ok(/codePalette\?\.\[scope\.key\] \?\? DEFAULT_CODE_COLORS\[scope\.key\]/.test(theme), 'a row shows the deck\'s colour, else the built-in one')+ok(/\(t2\.codePalette \?\?= \{\}\)\[scope\.key\] = v/.test(theme), 'the field is created only when a colour is written')+ok(!/codePalette \?\?= \{\}/.test(theme.slice(0, theme.indexOf('for (const scope of CODE_SCOPES)'))), 'nothing writes codePalette before a row is edited')+ok(/delete this\.store\.doc\.theme\.codePalette/.test(theme) && /if \(this\.store\.doc\.theme\.codePalette\)/.test(theme), 'a deck with a palette gets a reset back to the built-in scheme')+const codeRows = theme.slice(theme.indexOf('for (const scope of CODE_SCOPES)'))+ok(!/ref:|setRef\(|paletteSwatches\(/.test(codeRows), 'code colours are plain literals — no palette reference wiring')++console.log('\nthe renderer\n')+ok(/codePalette\?\.\[token\.scopes\[0\]\] \?\? DEFAULT_CODE_COLORS\[token\.scopes\[0\] \?\? 'x'\]/.test(read('slides/src/code.ts')),+ 'code.ts colours a token from the deck\'s palette, else the built-in scheme')++console.log('\nempty accent slots stay out of the panel\n')+const { slotIsSet, paletteOf, OPTIONAL_ACCENTS } = await import('../slides/src/palette.ts')+const fresh = { theme: { background: '#fff', color: '#111', accent: '#f7a600', fontFamily: 'x' } } as never+const authored = { theme: { background: '#fff', color: '#111', accent: '#f7a600', fontFamily: 'x', palette: { accent2: '#2266cc' } } } as never+ok(OPTIONAL_ACCENTS.every((k) => !slotIsSet(fresh, k)), 'a fresh deck sets none of accent 2–6')+ok(OPTIONAL_ACCENTS.every((k) => paletteOf(fresh)[k] === '#f7a600'), '…though paletteOf still resolves each of them to accent 1 (the format is untouched)')+ok(slotIsSet(authored, 'accent2') && !slotIsSet(authored, 'accent3'), 'a deck carrying accent2 sets that slot and not the next')+ok(slotIsSet(fresh, 'accent1') && slotIsSet(fresh, 'bg1') && slotIsSet(fresh, 'tx1'), 'the three canonical slots are always set')+ok(/if \(!slotIsSet\(this\.store\.doc, key\)\) continue/.test(theme), 'the Theme section shows an Accent N row only for a set slot')+ok(/if \(!slotIsSet\(this\.store\.doc, slot\)\) continue/.test(panels.slice(panels.indexOf('private paletteSwatches('))), 'the quick-pick swatch row skips unset accents, the way it skips unset hlink')++console.log(`\n${checks - failures}/${checks} checks passed`)+process.exit(failures ? 1 : 0)diff --git a/slides/src/code.ts b/slides/src/code.tsindex f62d45d6..07848a86 100644--- a/slides/src/code.ts+++ b/slides/src/code.ts@@ -14,15 +14,15 @@// tweened on exit (present.ts cacheSlideSymbols/morphMathSymbols), which is// what makes a moved line travel.-import { BentoDoc, CodeElement } from './model'-import { HeckelDiff, type Match, type Insert, type Delete } from './diff'+import type { BentoDoc, CodeElement } from './model.ts'+import { HeckelDiff, type Match, type Insert, type Delete } from './diff.ts'/*** 8 Colors, not four hundred scopes — the zero-cost tier. When the* signed-extension tier lands, grammarAssetId/themeAssetId select real* TextMate rendering and this map becomes the fallback.*/-const DEFAULT_CODE_COLORS: Record<string, string> = {+export const DEFAULT_CODE_COLORS: Record<string, string> = {c: '#6b7f8f', // comments: '#c98a3e', // stringn: '#b0688f', // number@@ -34,6 +34,22 @@ const DEFAULT_CODE_COLORS: Record<string, string> = {x: '', // plain: inherit the element colour}+/**+ * The eight token scopes a deck's `theme.codePalette` can colour, in the+ * order the Theme panel lists them — one source for the panel, the rig and+ * the defaults above (keys must agree with the model's codePalette).+ */+export const CODE_SCOPES: ReadonlyArray<{ key: 'c' | 's' | 'n' | 'k' | 'f' | 'p' | 'a' | 'd'; label: string }> = [+ { key: 'c', label: 'Comments' },+ { key: 's', label: 'Strings' },+ { key: 'n', label: 'Numbers' },+ { key: 'k', label: 'Code keywords' },+ { key: 'f', label: 'Calls' },+ { key: 'p', label: 'Punctuation' },+ { key: 'a', label: 'Diff: added' },+ { key: 'd', label: 'Diff: removed' },+]+/*** Memoized per (morph group, content). The previous module-level singleton was* cached forever — built from the first document it saw and never invalidated,diff --git a/slides/src/diff.ts b/slides/src/diff.tsindex b04ac622..4144f46d 100644--- a/slides/src/diff.ts+++ b/slides/src/diff.ts@@ -9,7 +9,7 @@// import type, deliberately: only type names are used, and the erased import// is what lets scripts/test-codediff.ts run this file under plain node// (extensionless runtime imports do not resolve there).-import type { BentoDoc, Slide } from "./model"+import type { BentoDoc, Slide } from "./model.ts"import { tokenize, type Tok } from "../../kernel/src/tokenize.ts"// The stable token that we can diff between slides.diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.tsindex c272015f..933881cf 100644--- a/slides/src/editor/panels.ts+++ b/slides/src/editor/panels.ts@@ -9,10 +9,11 @@ import { MEDIA_EMBED_BUDGET, applyChartPalette, defaultChart, internAsset, morphimport { LANGS } from '../../../kernel/src/tokenize.ts'import { resolveAsset } from '../render'import { measureElement } from '../measure'-import { PALETTE_SLOTS, paletteOf, refAt, setColor } from '../palette'+import { PALETTE_SLOTS, paletteOf, refAt, setColor, slotIsSet } from '../palette'import { isMacOS } from '../screens'import { CHART_PRESETS } from '../charts'import { FONT_CHOICES, firstFamily, injectFonts } from '../fonts'+import { CODE_SCOPES, DEFAULT_CODE_COLORS } from '../code'import { ICONS } from '../icons'import { t } from '../i18n'import { lsJson, lsSet } from '../../../kernel/src/storage.ts'@@ -2229,6 +2230,7 @@ export class PropsPanel {for (const slot of PALETTE_SLOTS) {const base = palette[slot]if (!base) continue // hlink/folHlink are usually unset — don't show empties+ if (!slotIsSet(this.store.doc, slot)) continue // accent 2–6 unset: a copy of accent 1, not a choiceconst b = document.createElement('button')b.type = 'button'b.className = 'ed-swatch'@@ -2261,13 +2263,42 @@ export class PropsPanel {slot('Background', () => theme.background, (v) => { this.store.doc.theme.background = v })slot('Text', () => theme.color, (v) => { this.store.doc.theme.color = v })slot('Accent', () => theme.accent, (v) => { this.store.doc.theme.accent = v })+ // Accent 2–6 rows only for slots the deck carries (palette.ts slotIsSet):+ // an unset one resolves to accent 1 and showed as a sixth identical swatch.for (const n of [2, 3, 4, 5, 6] as const) {const key = `accent${n}` as const+ if (!slotIsSet(this.store.doc, key)) continueslot(t('Accent {n}', { n: String(n) }), () => paletteOf(this.store.doc)[key], (v) => {const t2 = this.store.doc.theme;(t2.palette ??= {})[key] = v})}+ // Code colours: theme.codePalette (#450), one row per token scope. Plain+ // literals, deliberately — the palette-swatch reference (themeRefs) is a+ // per-element/per-slide path resolved through resolveRef, and codePalette+ // is a doc-level map that code.ts reads as literals; wiring a second+ // reference shape for eight keys would be a mechanism, not a row. A deck+ // with no codePalette shows the built-in scheme as its starting values and+ // the field is written only when a colour is changed, so a deck without+ // one keeps rendering exactly as before.+ const codeHead = document.createElement('p')+ codeHead.className = 'ed-hint'+ codeHead.textContent = t('Code colours — one per kind of token in code snippets.')+ this.host.appendChild(codeHead)+ for (const scope of CODE_SCOPES) {+ slot(t(scope.label), () => this.store.doc.theme.codePalette?.[scope.key] ?? DEFAULT_CODE_COLORS[scope.key], (v) => {+ const t2 = this.store.doc.theme+ ;(t2.codePalette ??= {})[scope.key] = v+ })+ }+ if (this.store.doc.theme.codePalette) {+ const reset = document.createElement('button')+ reset.className = 'ed-btn ed-btn-block'+ reset.textContent = t('Use the built-in code colours')+ reset.title = t('Removes the deck’s code palette; snippets render with the standard scheme again')+ reset.addEventListener('click', () => this.edit(() => { delete this.store.doc.theme.codePalette }, true))+ this.host.appendChild(reset)+ }}/** Color swatch + opacity %. Native color inputs have no alpha channel, sodiff --git a/slides/src/i18n/de.ts b/slides/src/i18n/de.tsindex 880fbc0b..b466b42b 100644--- a/slides/src/i18n/de.ts+++ b/slides/src/i18n/de.ts@@ -839,4 +839,15 @@ export const de: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Lädt die Seite online in einem isolierten Rahmen. Offline oder bei aktiviertem Offline-Modus wird stattdessen die erfasste Ansicht angezeigt.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Der Live-Rahmen lädt nur online. Offline-Modus und fehlendes Netzwerk zeigen stattdessen die erfasste Ansicht.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Beim Präsentieren behält ein angeklickter Rahmen die Pfeiltasten, bis Sie außerhalb klicken. Jede Person, die dieses Deck präsentiert, lädt die Seite von deren Website.",+ "Code colours — one per kind of token in code snippets.": "Codefarben — eine je Token-Art in Codeausschnitten.",+ "Comments": "Kommentare",+ "Strings": "Zeichenketten",+ "Numbers": "Zahlen",+ "Calls": "Aufrufe",+ "Punctuation": "Satzzeichen",+ "Diff: added": "Diff: hinzugefügt",+ "Diff: removed": "Diff: entfernt",+ "Use the built-in code colours": "Eingebaute Codefarben verwenden",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Entfernt die Codepalette des Decks; Ausschnitte werden wieder im Standardschema dargestellt",+ "Code keywords": "Schlüsselwörter im Code",}diff --git a/slides/src/i18n/es.ts b/slides/src/i18n/es.tsindex a319a2c7..087da5a2 100644--- a/slides/src/i18n/es.ts+++ b/slides/src/i18n/es.ts@@ -839,4 +839,15 @@ export const es: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Carga la página en un marco aislado mientras hay conexión. Sin conexión, o con el modo sin conexión activado, se muestra la vista capturada.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "El marco en vivo solo carga con conexión. El modo sin conexión y la falta de red muestran la vista capturada.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Al presentar, un marco en el que hayas hecho clic retiene las teclas de flecha hasta que hagas clic fuera de él. Todo el que presente esta presentación carga la página desde su sitio.",+ "Code colours — one per kind of token in code snippets.": "Colores de código: uno por tipo de token en los fragmentos.",+ "Comments": "Comentarios",+ "Strings": "Cadenas",+ "Numbers": "Números",+ "Calls": "Llamadas",+ "Punctuation": "Puntuación",+ "Diff: added": "Diff: añadido",+ "Diff: removed": "Diff: eliminado",+ "Use the built-in code colours": "Usar los colores de código integrados",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Quita la paleta de código de la presentación; los fragmentos vuelven al esquema estándar",+ "Code keywords": "Palabras clave del código",}diff --git a/slides/src/i18n/fr.ts b/slides/src/i18n/fr.tsindex 76137841..896f9090 100644--- a/slides/src/i18n/fr.ts+++ b/slides/src/i18n/fr.ts@@ -839,4 +839,15 @@ export const fr: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Charge la page dans un cadre isolé en ligne. Hors ligne, ou avec le mode hors ligne activé, la vue capturée s’affiche à la place.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Le cadre en direct ne charge qu’en ligne. Le mode hors ligne et l’absence de réseau affichent la vue capturée.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Pendant la présentation, un cadre cliqué garde les touches fléchées jusqu’à ce que vous cliquiez en dehors. Toute personne qui présente cette présentation charge la page depuis son site.",+ "Code colours — one per kind of token in code snippets.": "Couleurs du code — une par type de jeton dans les extraits.",+ "Comments": "Commentaires",+ "Strings": "Chaînes",+ "Numbers": "Nombres",+ "Calls": "Appels",+ "Punctuation": "Ponctuation",+ "Diff: added": "Diff : ajouté",+ "Diff: removed": "Diff : supprimé",+ "Use the built-in code colours": "Utiliser les couleurs de code intégrées",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Retire la palette de code de la présentation ; les extraits reprennent le schéma standard",+ "Code keywords": "Mots-clés du code",}diff --git a/slides/src/i18n/it.ts b/slides/src/i18n/it.tsindex 1ca43f21..64a85f63 100644--- a/slides/src/i18n/it.ts+++ b/slides/src/i18n/it.ts@@ -839,4 +839,15 @@ export const it: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Carica la pagina in un riquadro isolato quando sei online. Offline, o con la modalità offline attiva, viene mostrata la vista catturata.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Il riquadro live carica solo online. La modalità offline e l’assenza di rete mostrano la vista catturata.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Durante la presentazione, un riquadro su cui hai fatto clic trattiene i tasti freccia finché non fai clic fuori. Chiunque presenti questa presentazione carica la pagina dal suo sito.",+ "Code colours — one per kind of token in code snippets.": "Colori del codice — uno per tipo di token negli snippet.",+ "Comments": "Commenti",+ "Strings": "Stringhe",+ "Numbers": "Numeri",+ "Calls": "Chiamate",+ "Punctuation": "Punteggiatura",+ "Diff: added": "Diff: aggiunto",+ "Diff: removed": "Diff: rimosso",+ "Use the built-in code colours": "Usa i colori del codice integrati",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Rimuove la palette del codice della presentazione; gli snippet tornano allo schema standard",+ "Code keywords": "Parole chiave del codice",}diff --git a/slides/src/i18n/ja.ts b/slides/src/i18n/ja.tsindex 5aa5a940..f348d183 100644--- a/slides/src/i18n/ja.ts+++ b/slides/src/i18n/ja.ts@@ -839,4 +839,15 @@ export const ja: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "オンライン時にページをサンドボックス化されたフレームに読み込みます。オフライン時、またはオフラインモードが有効な場合は、取り込んだビューを表示します。","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "ライブフレームはオンライン時のみ読み込まれます。オフラインモードやネットワークがない場合は、取り込んだビューを表示します。","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "プレゼン中にフレームをクリックすると、その外側をクリックするまで矢印キーがフレームに取られます。このデッキを発表する人は全員、そのサイトからページを読み込みます。",+ "Code colours — one per kind of token in code snippets.": "コードの配色 — コードスニペット内のトークンの種類ごとに1色。",+ "Comments": "コメント",+ "Strings": "文字列",+ "Numbers": "数値",+ "Calls": "呼び出し",+ "Punctuation": "句読点",+ "Diff: added": "差分: 追加",+ "Diff: removed": "差分: 削除",+ "Use the built-in code colours": "組み込みのコード配色を使う",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "デッキのコードパレットを削除し、スニペットを標準の配色で表示します",+ "Code keywords": "コードのキーワード",}diff --git a/slides/src/i18n/packed.ts b/slides/src/i18n/packed.tsindex 84d37d6c..d3749d6f 100644--- a/slides/src/i18n/packed.ts+++ b/slides/src/i18n/packed.ts@@ -845,4 +845,15 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": ["オンライン時にページをサンドボックス化されたフレームに読み込みます。オフライン時、またはオフラインモードが有効な場合は、取り込んだビューを表示します。","联网时在沙盒框架中加载页面。离线或开启离线模式时,改为显示截取的视图。","連線時在沙箱框架中載入頁面。離線或開啟離線模式時,改為顯示擷取的檢視。","Carga la página en un marco aislado mientras hay conexión. Sin conexión, o con el modo sin conexión activado, se muestra la vista capturada.","Charge la page dans un cadre isolé en ligne. Hors ligne, ou avec le mode hors ligne activé, la vue capturée s’affiche à la place.","Lädt die Seite online in einem isolierten Rahmen. Offline oder bei aktiviertem Offline-Modus wird stattdessen die erfasste Ansicht angezeigt.","Carica la pagina in un riquadro isolato quando sei online. Offline, o con la modalità offline attiva, viene mostrata la vista catturata.","Carrega a página em um quadro isolado enquanto online. Offline, ou com o modo offline ativado, a visualização capturada é mostrada."],"The live frame loads only while online. Offline mode and a missing network show the captured view instead.": ["ライブフレームはオンライン時のみ読み込まれます。オフラインモードやネットワークがない場合は、取り込んだビューを表示します。","实时框架仅在联网时加载。离线模式和无网络时显示截取的视图。","即時框架僅在連線時載入。離線模式和沒有網路時會顯示擷取的檢視。","El marco en vivo solo carga con conexión. El modo sin conexión y la falta de red muestran la vista capturada.","Le cadre en direct ne charge qu’en ligne. Le mode hors ligne et l’absence de réseau affichent la vue capturée.","Der Live-Rahmen lädt nur online. Offline-Modus und fehlendes Netzwerk zeigen stattdessen die erfasste Ansicht.","Il riquadro live carica solo online. La modalità offline e l’assenza di rete mostrano la vista catturata.","O quadro ao vivo só carrega online. O modo offline e a falta de rede mostram a visualização capturada."],"While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": ["プレゼン中にフレームをクリックすると、その外側をクリックするまで矢印キーがフレームに取られます。このデッキを発表する人は全員、そのサイトからページを読み込みます。","演示时,点击过的框架会占用方向键,直到你在其外部点击。所有演示此文稿的人都会从该网站加载页面。","簡報時,點擊過的框架會佔用方向鍵,直到你在其外部點擊。所有簡報此文稿的人都會從該網站載入頁面。","Al presentar, un marco en el que hayas hecho clic retiene las teclas de flecha hasta que hagas clic fuera de él. Todo el que presente esta presentación carga la página desde su sitio.","Pendant la présentation, un cadre cliqué garde les touches fléchées jusqu’à ce que vous cliquiez en dehors. Toute personne qui présente cette présentation charge la page depuis son site.","Beim Präsentieren behält ein angeklickter Rahmen die Pfeiltasten, bis Sie außerhalb klicken. Jede Person, die dieses Deck präsentiert, lädt die Seite von deren Website.","Durante la presentazione, un riquadro su cui hai fatto clic trattiene i tasti freccia finché non fai clic fuori. Chiunque presenti questa presentazione carica la pagina dal suo sito.","Ao apresentar, uma moldura em que clicou retém as teclas de seta até clicar fora dela. Quem apresentar esta apresentação carrega a página a partir do respetivo site."],+ "Code colours — one per kind of token in code snippets.": ["コードの配色 — コードスニペット内のトークンの種類ごとに1色。","代码颜色 — 代码片段中每种标记一种颜色。","程式碼顏色 — 程式碼片段中每種標記一種顏色。","Colores de código: uno por tipo de token en los fragmentos.","Couleurs du code — une par type de jeton dans les extraits.","Codefarben — eine je Token-Art in Codeausschnitten.","Colori del codice — uno per tipo di token negli snippet.","Cores do código — uma por tipo de token nos excertos."],+ "Comments": ["コメント","注释","註解","Comentarios","Commentaires","Kommentare","Commenti","Comentários"],+ "Strings": ["文字列","字符串","字串","Cadenas","Chaînes","Zeichenketten","Stringhe","Cadeias"],+ "Numbers": ["数値","数字","數字","Números","Nombres","Zahlen","Numeri","Números"],+ "Calls": ["呼び出し","调用","呼叫","Llamadas","Appels","Aufrufe","Chiamate","Chamadas"],+ "Punctuation": ["句読点","标点","標點","Puntuación","Ponctuation","Satzzeichen","Punteggiatura","Pontuação"],+ "Diff: added": ["差分: 追加","差异:新增","差異:新增","Diff: añadido","Diff : ajouté","Diff: hinzugefügt","Diff: aggiunto","Diff: adicionado"],+ "Diff: removed": ["差分: 削除","差异:删除","差異:刪除","Diff: eliminado","Diff : supprimé","Diff: entfernt","Diff: rimosso","Diff: removido"],+ "Use the built-in code colours": ["組み込みのコード配色を使う","使用内置代码颜色","使用內建程式碼顏色","Usar los colores de código integrados","Utiliser les couleurs de code intégrées","Eingebaute Codefarben verwenden","Usa i colori del codice integrati","Usar as cores de código incorporadas"],+ "Removes the deck’s code palette; snippets render with the standard scheme again": ["デッキのコードパレットを削除し、スニペットを標準の配色で表示します","移除文稿的代码调色板;片段恢复为标准配色","移除文稿的程式碼調色盤;片段恢復為標準配色","Quita la paleta de código de la presentación; los fragmentos vuelven al esquema estándar","Retire la palette de code de la présentation ; les extraits reprennent le schéma standard","Entfernt die Codepalette des Decks; Ausschnitte werden wieder im Standardschema dargestellt","Rimuove la palette del codice della presentazione; gli snippet tornano allo schema standard","Remove a paleta de código da apresentação; os excertos voltam ao esquema padrão"],+ "Code keywords": ["コードのキーワード","代码关键字","程式碼關鍵字","Palabras clave del código","Mots-clés du code","Schlüsselwörter im Code","Parole chiave del codice","Palavras-chave do código"],}diff --git a/slides/src/i18n/packs/ar.ts b/slides/src/i18n/packs/ar.tsindex bc66ba9b..adc8f5c4 100644--- a/slides/src/i18n/packs/ar.ts+++ b/slides/src/i18n/packs/ar.ts@@ -785,4 +785,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "تحميل الصفحة في إطار معزول أثناء الاتصال. دون اتصال، أو مع تفعيل وضع عدم الاتصال، تظهر المعاينة الملتقطة بدلًا منها.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "يحمّل الإطار المباشر أثناء الاتصال فقط. وضع عدم الاتصال وغياب الشبكة يُظهران المعاينة الملتقطة بدلًا منه.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "أثناء العرض، يحتفظ الإطار الذي نقرت عليه بمفاتيح الأسهم حتى تنقر خارجه. كل من يعرض هذا الملف يحمّل الصفحة من موقعها.",+ "Code colours — one per kind of token in code snippets.": "ألوان الكود — لون لكل نوع رمز في مقتطفات الكود.",+ "Comments": "التعليقات",+ "Strings": "السلاسل النصية",+ "Numbers": "الأرقام",+ "Calls": "الاستدعاءات",+ "Punctuation": "علامات الترقيم",+ "Diff: added": "الفرق: مضاف",+ "Diff: removed": "الفرق: محذوف",+ "Use the built-in code colours": "استخدام ألوان الكود المضمّنة",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "يزيل لوحة ألوان الكود من العرض؛ تعود المقتطفات إلى النظام القياسي",+ "Code keywords": "الكلمات المفتاحية في الكود",}diff --git a/slides/src/i18n/packs/bn.ts b/slides/src/i18n/packs/bn.tsindex 4e71c604..9765fea9 100644--- a/slides/src/i18n/packs/bn.ts+++ b/slides/src/i18n/packs/bn.ts@@ -788,4 +788,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "অনলাইনে থাকাকালীন পেজটি স্যান্ডবক্সড ফ্রেমে লোড করুন। অফলাইনে বা অফলাইন মোড চালু থাকলে নেওয়া ভিউটি দেখায়।","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "লাইভ ফ্রেম শুধু অনলাইনে লোড হয়। অফলাইন মোড ও নেটওয়ার্ক না থাকলে নেওয়া ভিউটি দেখায়।","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "উপস্থাপনার সময় ক্লিক করা ফ্রেম অ্যারো কী ধরে রাখে যতক্ষণ না আপনি এর বাইরে ক্লিক করেন। যিনিই এই ডেক উপস্থাপন করেন, তিনি পেজটি এর সাইট থেকে লোড করেন।",+ "Code colours — one per kind of token in code snippets.": "কোডের রং — কোড স্নিপেটে প্রতিটি টোকেন ধরনের জন্য একটি।",+ "Comments": "মন্তব্য",+ "Strings": "স্ট্রিং",+ "Numbers": "সংখ্যা",+ "Calls": "কল",+ "Punctuation": "যতিচিহ্ন",+ "Diff: added": "ডিফ: যোগ",+ "Diff: removed": "ডিফ: বাদ",+ "Use the built-in code colours": "অন্তর্নির্মিত কোডের রং ব্যবহার করুন",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "ডেকের কোড প্যালেট সরায়; স্নিপেট আবার মানক স্কিমে দেখায়",+ "Code keywords": "কোডের কীওয়ার্ড",}diff --git a/slides/src/i18n/packs/da.ts b/slides/src/i18n/packs/da.tsindex 18ce16ee..21c5a6f2 100644--- a/slides/src/i18n/packs/da.ts+++ b/slides/src/i18n/packs/da.ts@@ -777,4 +777,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Indlæs siden i en sandkasse-ramme når du er online. Offline, eller med offline-tilstand slået til, vises den optagne visning i stedet.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Den levende ramme indlæses kun online. Offline-tilstand og manglende netværk viser den optagne visning i stedet.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Under præsentationen beholder en klikket ramme piletasterne, indtil du klikker uden for den. Alle der præsenterer dette dæk, indlæser siden fra dens websted.",+ "Code colours — one per kind of token in code snippets.": "Kodefarver — én pr. slags token i kodestykker.",+ "Comments": "Kommentarer",+ "Strings": "Strenge",+ "Numbers": "Tal",+ "Calls": "Kald",+ "Punctuation": "Tegnsætning",+ "Diff: added": "Diff: tilføjet",+ "Diff: removed": "Diff: fjernet",+ "Use the built-in code colours": "Brug de indbyggede kodefarver",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Fjerner dækkets kodepalet; kodestykker vises igen med standardskemaet",+ "Code keywords": "Nøgleord i koden",}diff --git a/slides/src/i18n/packs/fa.ts b/slides/src/i18n/packs/fa.tsindex c78f3728..31eb99b1 100644--- a/slides/src/i18n/packs/fa.ts+++ b/slides/src/i18n/packs/fa.ts@@ -781,4 +781,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "صفحه را هنگام آنلاین بودن در قابی ایزوله بارگذاری کنید. آفلاین، یا با حالت آفلاین روشن، نمای گرفتهشده به جای آن نشان داده میشود.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "قاب زنده فقط هنگام آنلاین بودن بارگذاری میشود. حالت آفلاین و نبود شبکه، نمای گرفتهشده را به جای آن نشان میدهند.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "هنگام ارائه، قابی که روی آن کلیک شده کلیدهای جهتدار را نگه میدارد تا بیرون آن کلیک کنید. هر کس این دک را ارائه دهد، صفحه را از سایت آن بارگذاری میکند.",+ "Code colours — one per kind of token in code snippets.": "رنگهای کد — یکی برای هر نوع توکن در قطعهکدها.",+ "Comments": "توضیحات",+ "Strings": "رشتهها",+ "Numbers": "اعداد",+ "Calls": "فراخوانیها",+ "Punctuation": "علائم نگارشی",+ "Diff: added": "تفاوت: افزوده",+ "Diff: removed": "تفاوت: حذفشده",+ "Use the built-in code colours": "استفاده از رنگهای کد داخلی",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "پالت کد دک را حذف میکند؛ قطعهکدها دوباره با طرح استاندارد نمایش داده میشوند",+ "Code keywords": "کلیدواژههای کد",}diff --git a/slides/src/i18n/packs/fi.ts b/slides/src/i18n/packs/fi.tsindex 9203d8a1..9b3f69f8 100644--- a/slides/src/i18n/packs/fi.ts+++ b/slides/src/i18n/packs/fi.ts@@ -782,4 +782,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Lataa sivu eristettyyn kehykseen verkossa. Offline-tilassa tai offline-tilan ollessa päällä näytetään kaapattu näkymä.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Live-kehys latautuu vain verkossa. Offline-tila ja puuttuva verkko näyttävät kaapatun näkymän.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Esityksen aikana napsautettu kehys pitää nuolinäppäimet, kunnes napsautat sen ulkopuolelle. Jokainen tämän pakan esittäjä lataa sivun sen sivustolta.",+ "Code colours — one per kind of token in code snippets.": "Koodin värit — yksi kutakin merkkityyppiä kohti koodikatkelmissa.",+ "Comments": "Kommentit",+ "Strings": "Merkkijonot",+ "Numbers": "Luvut",+ "Calls": "Kutsut",+ "Punctuation": "Välimerkit",+ "Diff: added": "Diff: lisätty",+ "Diff: removed": "Diff: poistettu",+ "Use the built-in code colours": "Käytä sisäänrakennettuja koodin värejä",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Poistaa pakan koodipaletin; katkelmat näytetään taas vakiovärein",+ "Code keywords": "Koodin avainsanat",}diff --git a/slides/src/i18n/packs/fil.ts b/slides/src/i18n/packs/fil.tsindex b8452180..f7bcd88f 100644--- a/slides/src/i18n/packs/fil.ts+++ b/slides/src/i18n/packs/fil.ts@@ -794,4 +794,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "I-load ang page sa isang sandboxed frame habang online. Offline, o kapag naka-on ang offline mode, ang nakuhang view ang lalabas.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Nilo-load lang ang live frame habang online. Ang offline mode at kawalan ng network ay nagpapakita ng nakuhang view.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Habang nagpe-present, hawak ng na-click na frame ang mga arrow key hanggang mag-click ka sa labas nito. Lahat ng nagpe-present ng deck na ito ay nilo-load ang page mula sa site nito.",+ "Code colours — one per kind of token in code snippets.": "Mga kulay ng code — isa bawat uri ng token sa mga code snippet.",+ "Comments": "Mga komento",+ "Strings": "Mga string",+ "Numbers": "Mga numero",+ "Calls": "Mga call",+ "Punctuation": "Bantas",+ "Diff: added": "Diff: idinagdag",+ "Diff: removed": "Diff: inalis",+ "Use the built-in code colours": "Gamitin ang built-in na mga kulay ng code",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Tinatanggal ang code palette ng deck; babalik ang mga snippet sa karaniwang scheme",+ "Code keywords": "Mga keyword ng code",}diff --git a/slides/src/i18n/packs/he.ts b/slides/src/i18n/packs/he.tsindex 20f09aa7..9b093329 100644--- a/slides/src/i18n/packs/he.ts+++ b/slides/src/i18n/packs/he.ts@@ -778,4 +778,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "טעינת הדף במסגרת מבודדת במצב מקוון. במצב לא מקוון, או כשמצב לא מקוון פעיל, מוצגת התצוגה שנלכדה במקומו.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "המסגרת החיה נטענת רק במצב מקוון. מצב לא מקוון וחוסר רשת מציגים את התצוגה שנלכדה במקומה.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "במהלך ההצגה, מסגרת שנלחצה שומרת על מקשי החצים עד שלוחצים מחוצה לה. כל מי שמציג מצגת זו טוען את הדף מהאתר שלו.",+ "Code colours — one per kind of token in code snippets.": "צבעי קוד — אחד לכל סוג אסימון בקטעי קוד.",+ "Comments": "הערות",+ "Strings": "מחרוזות",+ "Numbers": "מספרים",+ "Calls": "קריאות",+ "Punctuation": "פיסוק",+ "Diff: added": "הבדל: נוסף",+ "Diff: removed": "הבדל: הוסר",+ "Use the built-in code colours": "שימוש בצבעי הקוד המובנים",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "מסיר את פלטת הקוד של המצגת; קטעי הקוד יוצגו שוב בסכמה הרגילה",+ "Code keywords": "מילות מפתח בקוד",}diff --git a/slides/src/i18n/packs/hi.ts b/slides/src/i18n/packs/hi.tsindex ad7b607c..75421fc2 100644--- a/slides/src/i18n/packs/hi.ts+++ b/slides/src/i18n/packs/hi.ts@@ -785,4 +785,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "ऑनलाइन रहते हुए पेज को सैंडबॉक्स्ड फ़्रेम में लोड करें। ऑफ़लाइन, या ऑफ़लाइन मोड चालू होने पर, कैप्चर किया गया व्यू दिखता है।","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "लाइव फ़्रेम केवल ऑनलाइन लोड होता है। ऑफ़लाइन मोड और नेटवर्क न होने पर कैप्चर किया गया व्यू दिखता है।","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "प्रस्तुति के दौरान क्लिक किया गया फ़्रेम ऐरो कुंजियाँ तब तक रखता है जब तक आप उसके बाहर क्लिक न करें। इस डेक को प्रस्तुत करने वाला हर व्यक्ति पेज को उसकी साइट से लोड करता है।",+ "Code colours — one per kind of token in code snippets.": "कोड के रंग — कोड स्निपेट में हर तरह के टोकन के लिए एक।",+ "Comments": "टिप्पणियाँ",+ "Strings": "स्ट्रिंग",+ "Numbers": "संख्याएँ",+ "Calls": "कॉल",+ "Punctuation": "विराम चिह्न",+ "Diff: added": "डिफ़: जोड़ा गया",+ "Diff: removed": "डिफ़: हटाया गया",+ "Use the built-in code colours": "बिल्ट-इन कोड रंग इस्तेमाल करें",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "डेक का कोड पैलेट हटाता है; स्निपेट फिर मानक योजना में दिखते हैं",+ "Code keywords": "कोड के कीवर्ड",}diff --git a/slides/src/i18n/packs/id.ts b/slides/src/i18n/packs/id.tsindex 24d4d886..893d1260 100644--- a/slides/src/i18n/packs/id.ts+++ b/slides/src/i18n/packs/id.ts@@ -775,4 +775,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Muat halaman dalam bingkai terisolasi saat online. Saat offline, atau dengan mode offline aktif, tampilan yang diambil ditampilkan sebagai gantinya.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Bingkai langsung hanya dimuat saat online. Mode offline dan tidak adanya jaringan menampilkan tampilan yang diambil.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Saat presentasi, bingkai yang diklik menahan tombol panah sampai Anda mengklik di luarnya. Semua yang mempresentasikan dek ini memuat halaman dari situsnya.",+ "Code colours — one per kind of token in code snippets.": "Warna kode — satu per jenis token dalam cuplikan kode.",+ "Comments": "Komentar",+ "Strings": "String",+ "Numbers": "Angka",+ "Calls": "Panggilan",+ "Punctuation": "Tanda baca",+ "Diff: added": "Diff: ditambahkan",+ "Diff: removed": "Diff: dihapus",+ "Use the built-in code colours": "Gunakan warna kode bawaan",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Menghapus palet kode dek; cuplikan kembali ke skema standar",+ "Code keywords": "Kata kunci kode",}diff --git a/slides/src/i18n/packs/ko.ts b/slides/src/i18n/packs/ko.tsindex 6d809f4f..6972bbd2 100644--- a/slides/src/i18n/packs/ko.ts+++ b/slides/src/i18n/packs/ko.ts@@ -769,4 +769,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "온라인일 때 페이지를 샌드박스 프레임에 불러옵니다. 오프라인이거나 오프라인 모드가 켜져 있으면 캡처한 보기가 대신 표시됩니다.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "라이브 프레임은 온라인일 때만 불러옵니다. 오프라인 모드와 네트워크 없음은 캡처한 보기를 대신 표시합니다.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "발표 중 클릭한 프레임은 바깥을 클릭할 때까지 화살표 키를 가져갑니다. 이 덱을 발표하는 모든 사람이 해당 사이트에서 페이지를 불러옵니다.",+ "Code colours — one per kind of token in code snippets.": "코드 색 — 코드 스니펫의 토큰 종류마다 하나.",+ "Comments": "주석",+ "Strings": "문자열",+ "Numbers": "숫자",+ "Calls": "호출",+ "Punctuation": "구두점",+ "Diff: added": "차이: 추가됨",+ "Diff: removed": "차이: 제거됨",+ "Use the built-in code colours": "기본 코드 색 사용",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "덱의 코드 팔레트를 제거하고 스니펫을 표준 배색으로 표시합니다",+ "Code keywords": "코드 키워드",}diff --git a/slides/src/i18n/packs/ms.ts b/slides/src/i18n/packs/ms.tsindex b16f9079..5732e6ec 100644--- a/slides/src/i18n/packs/ms.ts+++ b/slides/src/i18n/packs/ms.ts@@ -778,4 +778,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Muatkan halaman dalam bingkai terpencil semasa dalam talian. Luar talian, atau dengan mod luar talian dihidupkan, paparan yang ditangkap dipaparkan sebaliknya.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Bingkai langsung hanya dimuatkan semasa dalam talian. Mod luar talian dan ketiadaan rangkaian memaparkan paparan yang ditangkap.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Semasa membentang, bingkai yang diklik mengekalkan kekunci anak panah sehingga anda mengklik di luarnya. Semua yang membentangkan dek ini memuatkan halaman daripada tapaknya.",+ "Code colours — one per kind of token in code snippets.": "Warna kod — satu bagi setiap jenis token dalam coretan kod.",+ "Comments": "Komen",+ "Strings": "Rentetan",+ "Numbers": "Nombor",+ "Calls": "Panggilan",+ "Punctuation": "Tanda baca",+ "Diff: added": "Diff: ditambah",+ "Diff: removed": "Diff: dibuang",+ "Use the built-in code colours": "Guna warna kod terbina dalam",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Membuang palet kod dek; coretan kembali kepada skema piawai",+ "Code keywords": "Kata kunci kod",}diff --git a/slides/src/i18n/packs/nb.ts b/slides/src/i18n/packs/nb.tsindex 61c6f9e6..25877504 100644--- a/slides/src/i18n/packs/nb.ts+++ b/slides/src/i18n/packs/nb.ts@@ -779,4 +779,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Last siden i en isolert ramme når du er tilkoblet. Frakoblet, eller med frakoblet modus på, vises den lagrede visningen i stedet.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Den levende rammen lastes bare tilkoblet. Frakoblet modus og manglende nettverk viser den lagrede visningen i stedet.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Under presentasjonen beholder en klikket ramme piltastene til du klikker utenfor den. Alle som presenterer denne kortstokken laster siden fra nettstedet dens.",+ "Code colours — one per kind of token in code snippets.": "Kodefarger — én per type token i kodesnutter.",+ "Comments": "Kommentarer",+ "Strings": "Strenger",+ "Numbers": "Tall",+ "Calls": "Kall",+ "Punctuation": "Tegnsetting",+ "Diff: added": "Diff: lagt til",+ "Diff: removed": "Diff: fjernet",+ "Use the built-in code colours": "Bruk de innebygde kodefargene",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Fjerner kortstokkens kodepalett; kodesnutter vises igjen med standardskjemaet",+ "Code keywords": "Nøkkelord i koden",}diff --git a/slides/src/i18n/packs/nl.ts b/slides/src/i18n/packs/nl.tsindex bb0995b0..ed2dbc8b 100644--- a/slides/src/i18n/packs/nl.ts+++ b/slides/src/i18n/packs/nl.ts@@ -773,4 +773,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Laad de pagina in een afgeschermd frame terwijl je online bent. Offline, of met offline-modus aan, wordt de vastgelegde weergave getoond.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Het live frame laadt alleen online. Offline-modus en een ontbrekend netwerk tonen de vastgelegde weergave.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Tijdens het presenteren houdt een aangeklikt frame de pijltjestoetsen vast tot je erbuiten klikt. Iedereen die dit deck presenteert, laadt de pagina van de site.",+ "Code colours — one per kind of token in code snippets.": "Codekleuren — één per soort token in codefragmenten.",+ "Comments": "Opmerkingen",+ "Strings": "Tekenreeksen",+ "Numbers": "Getallen",+ "Calls": "Aanroepen",+ "Punctuation": "Leestekens",+ "Diff: added": "Diff: toegevoegd",+ "Diff: removed": "Diff: verwijderd",+ "Use the built-in code colours": "De ingebouwde codekleuren gebruiken",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Verwijdert het codepalet van het deck; fragmenten gebruiken weer het standaardschema",+ "Code keywords": "Sleutelwoorden in code",}diff --git a/slides/src/i18n/packs/pl.ts b/slides/src/i18n/packs/pl.tsindex 11d17acc..afc0e242 100644--- a/slides/src/i18n/packs/pl.ts+++ b/slides/src/i18n/packs/pl.ts@@ -776,4 +776,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Załaduj stronę w izolowanej ramce w trybie online. Offline lub przy włączonym trybie offline pokazywany jest przechwycony widok.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Żywa ramka ładuje się tylko online. Tryb offline i brak sieci pokazują przechwycony widok.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Podczas prezentacji kliknięta ramka przejmuje klawisze strzałek, dopóki nie klikniesz poza nią. Każdy, kto prezentuje tę prezentację, ładuje stronę z jej witryny.",+ "Code colours — one per kind of token in code snippets.": "Kolory kodu — po jednym na rodzaj tokenu we fragmentach kodu.",+ "Comments": "Komentarze",+ "Strings": "Ciągi znaków",+ "Numbers": "Liczby",+ "Calls": "Wywołania",+ "Punctuation": "Interpunkcja",+ "Diff: added": "Diff: dodane",+ "Diff: removed": "Diff: usunięte",+ "Use the built-in code colours": "Użyj wbudowanych kolorów kodu",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Usuwa paletę kodu prezentacji; fragmenty wracają do standardowego schematu",+ "Code keywords": "Słowa kluczowe kodu",}diff --git a/slides/src/i18n/packs/ru.ts b/slides/src/i18n/packs/ru.tsindex 6e861a8a..fa1be34d 100644--- a/slides/src/i18n/packs/ru.ts+++ b/slides/src/i18n/packs/ru.ts@@ -777,4 +777,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Загружать страницу в изолированной рамке онлайн. Офлайн или при включённом автономном режиме вместо неё показывается снятый вид.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Живая рамка загружается только онлайн. Автономный режим и отсутствие сети показывают снятый вид.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Во время показа рамка, по которой щёлкнули, удерживает клавиши со стрелками, пока не щёлкнуть вне её. Каждый, кто показывает эту презентацию, загружает страницу с её сайта.",+ "Code colours — one per kind of token in code snippets.": "Цвета кода — по одному на вид токена во фрагментах кода.",+ "Comments": "Комментарии",+ "Strings": "Строки",+ "Numbers": "Числа",+ "Calls": "Вызовы",+ "Punctuation": "Пунктуация",+ "Diff: added": "Diff: добавлено",+ "Diff: removed": "Diff: удалено",+ "Use the built-in code colours": "Использовать встроенные цвета кода",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Удаляет палитру кода презентации; фрагменты снова показываются в стандартной схеме",+ "Code keywords": "Ключевые слова кода",}diff --git a/slides/src/i18n/packs/sv.ts b/slides/src/i18n/packs/sv.tsindex 87ba3b3b..c91444e3 100644--- a/slides/src/i18n/packs/sv.ts+++ b/slides/src/i18n/packs/sv.ts@@ -774,4 +774,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Läs in sidan i en isolerad ram när du är online. Offline, eller med offlineläge på, visas den fångade vyn i stället.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Den levande ramen läses bara in online. Offlineläge och saknat nätverk visar den fångade vyn i stället.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Under presentationen behåller en klickad ram piltangenterna tills du klickar utanför den. Alla som presenterar den här presentationen läser in sidan från dess webbplats.",+ "Code colours — one per kind of token in code snippets.": "Kodfärger — en per slags token i kodsnuttar.",+ "Comments": "Kommentarer",+ "Strings": "Strängar",+ "Numbers": "Tal",+ "Calls": "Anrop",+ "Punctuation": "Skiljetecken",+ "Diff: added": "Diff: tillagt",+ "Diff: removed": "Diff: borttaget",+ "Use the built-in code colours": "Använd de inbyggda kodfärgerna",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Tar bort presentationens kodpalett; kodsnuttar visas åter med standardschemat",+ "Code keywords": "Nyckelord i koden",}diff --git a/slides/src/i18n/packs/th.ts b/slides/src/i18n/packs/th.tsindex 17cc91da..0b84fa43 100644--- a/slides/src/i18n/packs/th.ts+++ b/slides/src/i18n/packs/th.ts@@ -779,4 +779,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "โหลดหน้าในเฟรมแซนด์บ็อกซ์ขณะออนไลน์ เมื่อออฟไลน์หรือเปิดโหมดออฟไลน์ จะแสดงมุมมองที่จับภาพไว้แทน","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "เฟรมสดโหลดเฉพาะขณะออนไลน์ โหมดออฟไลน์และไม่มีเครือข่ายจะแสดงมุมมองที่จับภาพไว้แทน","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "ระหว่างนำเสนอ เฟรมที่คลิกจะยึดปุ่มลูกศรไว้จนกว่าคุณจะคลิกนอกเฟรม ทุกคนที่นำเสนอเด็คนี้จะโหลดหน้าจากเว็บไซต์ของหน้านั้น",+ "Code colours — one per kind of token in code snippets.": "สีของโค้ด — หนึ่งสีต่อชนิดโทเค็นในสนิปเป็ตโค้ด",+ "Comments": "ความคิดเห็น",+ "Strings": "สตริง",+ "Numbers": "ตัวเลข",+ "Calls": "การเรียก",+ "Punctuation": "เครื่องหมายวรรคตอน",+ "Diff: added": "ดิฟ: เพิ่ม",+ "Diff: removed": "ดิฟ: ลบ",+ "Use the built-in code colours": "ใช้สีโค้ดในตัว",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "นำจานสีโค้ดของเด็คออก สนิปเป็ตจะแสดงด้วยชุดสีมาตรฐานอีกครั้ง",+ "Code keywords": "คีย์เวิร์ดของโค้ด",}diff --git a/slides/src/i18n/packs/tk.ts b/slides/src/i18n/packs/tk.tsindex 102f66aa..fa241019 100644--- a/slides/src/i18n/packs/tk.ts+++ b/slides/src/i18n/packs/tk.ts@@ -802,4 +802,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Onlaýn wagtynda sahypany izolirlenen çarçuwada ýükläň. Oflaýn ýa-da oflaýn tertip açyk bolanda alnan görnüş görkezilýär.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Janly çarçuwa diňe onlaýn ýüklenýär. Oflaýn tertip we toruň ýoklugy alnan görnüşi görkezýär.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Prezentasiýa wagtynda basylan çarçuwa daşyna basýançaňyz ok düwmelerini saklaýar. Bu topary görkezýän her kim sahypany onuň saýtyndan ýükleýär.",+ "Code colours — one per kind of token in code snippets.": "Kod reňkleri — kod böleklerinde her token görnüşi üçin bir.",+ "Comments": "Teswirler",+ "Strings": "Setirler",+ "Numbers": "Sanlar",+ "Calls": "Çagyryşlar",+ "Punctuation": "Dyngy belgileri",+ "Diff: added": "Tapawut: goşuldy",+ "Diff: removed": "Tapawut: aýryldy",+ "Use the built-in code colours": "Gurlan kod reňklerini ulanmak",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Toparyň kod palitrasyny aýyrýar; bölekler ýene standart shema bilen görkezilýär",+ "Code keywords": "Kod açar sözleri",}diff --git a/slides/src/i18n/packs/tr.ts b/slides/src/i18n/packs/tr.tsindex 1436ddd0..0b64a43d 100644--- a/slides/src/i18n/packs/tr.ts+++ b/slides/src/i18n/packs/tr.ts@@ -776,4 +776,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Sayfayı çevrimiçiyken korumalı bir çerçevede yükle. Çevrimdışıyken ya da çevrimdışı mod açıkken bunun yerine yakalanan görünüm gösterilir.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Canlı çerçeve yalnızca çevrimiçiyken yüklenir. Çevrimdışı mod ve ağ yokluğu bunun yerine yakalanan görünümü gösterir.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Sunum sırasında tıklanan çerçeve, dışına tıklayana kadar ok tuşlarını tutar. Bu desteyi sunan herkes sayfayı kendi sitesinden yükler.",+ "Code colours — one per kind of token in code snippets.": "Kod renkleri — kod parçacıklarındaki her belirteç türü için bir tane.",+ "Comments": "Yorumlar",+ "Strings": "Dizeler",+ "Numbers": "Sayılar",+ "Calls": "Çağrılar",+ "Punctuation": "Noktalama",+ "Diff: added": "Fark: eklendi",+ "Diff: removed": "Fark: kaldırıldı",+ "Use the built-in code colours": "Yerleşik kod renklerini kullan",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Destenin kod paletini kaldırır; parçacıklar yeniden standart şemayla gösterilir",+ "Code keywords": "Kod anahtar sözcükleri",}diff --git a/slides/src/i18n/packs/uk.ts b/slides/src/i18n/packs/uk.tsindex ed5eb822..2b1ad1e5 100644--- a/slides/src/i18n/packs/uk.ts+++ b/slides/src/i18n/packs/uk.ts@@ -785,4 +785,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Завантажувати сторінку в ізольованій рамці онлайн. Офлайн або з увімкненим автономним режимом замість неї показується знятий вигляд.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Жива рамка завантажується лише онлайн. Автономний режим і відсутність мережі показують знятий вигляд.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Під час показу рамка, на яку клацнули, утримує клавіші зі стрілками, доки не клацнути поза нею. Кожен, хто показує цю презентацію, завантажує сторінку з її сайту.",+ "Code colours — one per kind of token in code snippets.": "Кольори коду — по одному на вид токена у фрагментах коду.",+ "Comments": "Коментарі",+ "Strings": "Рядки",+ "Numbers": "Числа",+ "Calls": "Виклики",+ "Punctuation": "Пунктуація",+ "Diff: added": "Diff: додано",+ "Diff: removed": "Diff: вилучено",+ "Use the built-in code colours": "Використати вбудовані кольори коду",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Вилучає палітру коду презентації; фрагменти знову показуються у стандартній схемі",+ "Code keywords": "Ключові слова коду",}diff --git a/slides/src/i18n/packs/ur.ts b/slides/src/i18n/packs/ur.tsindex 45e1999c..630aee17 100644--- a/slides/src/i18n/packs/ur.ts+++ b/slides/src/i18n/packs/ur.ts@@ -795,4 +795,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "آن لائن ہوتے ہوئے صفحے کو سینڈ باکسڈ فریم میں لوڈ کریں۔ آف لائن، یا آف لائن موڈ آن ہونے پر، لیا گیا منظر دکھایا جاتا ہے۔","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "لائیو فریم صرف آن لائن لوڈ ہوتا ہے۔ آف لائن موڈ اور نیٹ ورک نہ ہونے پر لیا گیا منظر دکھایا جاتا ہے۔","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "پیش کرتے وقت کلک کیا گیا فریم تیر والی کلیدیں اپنے پاس رکھتا ہے جب تک آپ اس کے باہر کلک نہ کریں۔ اس ڈیک کو پیش کرنے والا ہر شخص صفحہ اس کی سائٹ سے لوڈ کرتا ہے۔",+ "Code colours — one per kind of token in code snippets.": "کوڈ کے رنگ — کوڈ سنپٹس میں ہر قسم کے ٹوکن کے لیے ایک۔",+ "Comments": "تبصرے",+ "Strings": "سٹرنگز",+ "Numbers": "نمبر",+ "Calls": "کالز",+ "Punctuation": "اوقاف",+ "Diff: added": "فرق: شامل",+ "Diff: removed": "فرق: حذف",+ "Use the built-in code colours": "بلٹ اِن کوڈ رنگ استعمال کریں",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "ڈیک کا کوڈ پیلٹ ہٹاتا ہے؛ سنپٹس دوبارہ معیاری اسکیم میں دکھتے ہیں",+ "Code keywords": "کوڈ کے کلیدی الفاظ",}diff --git a/slides/src/i18n/packs/vi.ts b/slides/src/i18n/packs/vi.tsindex 0d63dfb6..5a1e31e7 100644--- a/slides/src/i18n/packs/vi.ts+++ b/slides/src/i18n/packs/vi.ts@@ -775,4 +775,15 @@ export const strings: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Tải trang trong khung cách ly khi trực tuyến. Khi ngoại tuyến, hoặc bật chế độ ngoại tuyến, ảnh xem đã chụp sẽ hiển thị thay thế.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "Khung trực tiếp chỉ tải khi trực tuyến. Chế độ ngoại tuyến và không có mạng sẽ hiển thị ảnh xem đã chụp.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Khi trình bày, khung được nhấp sẽ giữ các phím mũi tên cho đến khi bạn nhấp ra ngoài. Mọi người trình bày bộ trang chiếu này đều tải trang từ trang web của nó.",+ "Code colours — one per kind of token in code snippets.": "Màu mã — một màu cho mỗi loại token trong đoạn mã.",+ "Comments": "Chú thích",+ "Strings": "Chuỗi",+ "Numbers": "Số",+ "Calls": "Lời gọi",+ "Punctuation": "Dấu câu",+ "Diff: added": "Diff: đã thêm",+ "Diff: removed": "Diff: đã xóa",+ "Use the built-in code colours": "Dùng màu mã có sẵn",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Xóa bảng màu mã của bộ trang chiếu; các đoạn mã hiển thị lại theo lược đồ chuẩn",+ "Code keywords": "Từ khóa mã",}diff --git a/slides/src/i18n/pt.ts b/slides/src/i18n/pt.tsindex f756a849..0a210615 100644--- a/slides/src/i18n/pt.ts+++ b/slides/src/i18n/pt.ts@@ -837,4 +837,15 @@ export const pt: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "Carrega a página em um quadro isolado enquanto online. Offline, ou com o modo offline ativado, a visualização capturada é mostrada.","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "O quadro ao vivo só carrega online. O modo offline e a falta de rede mostram a visualização capturada.","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "Ao apresentar, uma moldura em que clicou retém as teclas de seta até clicar fora dela. Quem apresentar esta apresentação carrega a página a partir do respetivo site.",+ "Code colours — one per kind of token in code snippets.": "Cores do código — uma por tipo de token nos excertos.",+ "Comments": "Comentários",+ "Strings": "Cadeias",+ "Numbers": "Números",+ "Calls": "Chamadas",+ "Punctuation": "Pontuação",+ "Diff: added": "Diff: adicionado",+ "Diff: removed": "Diff: removido",+ "Use the built-in code colours": "Usar as cores de código incorporadas",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "Remove a paleta de código da apresentação; os excertos voltam ao esquema padrão",+ "Code keywords": "Palavras-chave do código",}diff --git a/slides/src/i18n/zh-Hans.ts b/slides/src/i18n/zh-Hans.tsindex c8a1e6bc..d9a67ba7 100644--- a/slides/src/i18n/zh-Hans.ts+++ b/slides/src/i18n/zh-Hans.ts@@ -839,4 +839,15 @@ export const zhHans: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "联网时在沙盒框架中加载页面。离线或开启离线模式时,改为显示截取的视图。","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "实时框架仅在联网时加载。离线模式和无网络时显示截取的视图。","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "演示时,点击过的框架会占用方向键,直到你在其外部点击。所有演示此文稿的人都会从该网站加载页面。",+ "Code colours — one per kind of token in code snippets.": "代码颜色 — 代码片段中每种标记一种颜色。",+ "Comments": "注释",+ "Strings": "字符串",+ "Numbers": "数字",+ "Calls": "调用",+ "Punctuation": "标点",+ "Diff: added": "差异:新增",+ "Diff: removed": "差异:删除",+ "Use the built-in code colours": "使用内置代码颜色",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "移除文稿的代码调色板;片段恢复为标准配色",+ "Code keywords": "代码关键字",}diff --git a/slides/src/i18n/zh-Hant.ts b/slides/src/i18n/zh-Hant.tsindex 138a3703..28e93bb5 100644--- a/slides/src/i18n/zh-Hant.ts+++ b/slides/src/i18n/zh-Hant.ts@@ -839,4 +839,15 @@ export const zhHant: Catalog = {"Load the page in a sandboxed frame while online. Offline, or with offline mode on, the captured view shows instead.": "連線時在沙箱框架中載入頁面。離線或開啟離線模式時,改為顯示擷取的檢視。","The live frame loads only while online. Offline mode and a missing network show the captured view instead.": "即時框架僅在連線時載入。離線模式和沒有網路時會顯示擷取的檢視。","While presenting, a clicked frame keeps the arrow keys until you click outside it. Everyone who presents this deck loads the page from its site.": "簡報時,點擊過的框架會佔用方向鍵,直到你在其外部點擊。所有簡報此文稿的人都會從該網站載入頁面。",+ "Code colours — one per kind of token in code snippets.": "程式碼顏色 — 程式碼片段中每種標記一種顏色。",+ "Comments": "註解",+ "Strings": "字串",+ "Numbers": "數字",+ "Calls": "呼叫",+ "Punctuation": "標點",+ "Diff: added": "差異:新增",+ "Diff: removed": "差異:刪除",+ "Use the built-in code colours": "使用內建程式碼顏色",+ "Removes the deck’s code palette; snippets render with the standard scheme again": "移除文稿的程式碼調色盤;片段恢復為標準配色",+ "Code keywords": "程式碼關鍵字",}diff --git a/slides/src/palette.ts b/slides/src/palette.tsindex f39dc3e8..9803544e 100644--- a/slides/src/palette.ts+++ b/slides/src/palette.ts@@ -173,6 +173,19 @@ export function paletteOf(doc: BentoDoc): Palette {}}+/**+ * Is this slot carried by the document, rather than filled in by `paletteOf`+ * from accent 1? The editor shows a row/swatch for accent 2–6 only when the+ * deck actually sets it (an imported or hand-authored palette): six identical+ * peach swatches on a fresh deck were noise, not choices. The FORMAT keeps all+ * six slots and `paletteOf` still resolves every reference; this is panel-only.+ */+export const OPTIONAL_ACCENTS = ['accent2', 'accent3', 'accent4', 'accent5', 'accent6'] as const+export function slotIsSet(doc: BentoDoc, slot: keyof Palette): boolean {+ if (slot === 'bg1' || slot === 'tx1' || slot === 'accent1') return true+ return !!doc.theme.palette?.[slot as keyof NonNullable<BentoDoc['theme']['palette']>]+}+/** The literal a reference resolves to, or null when the slot is empty. */export function resolveRef(token: string, palette: Palette): string | null {const ref = parseThemeRef(token)