@treasure-ai/treasure-deck 2026.10.14 → 2026.10.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/editor.md CHANGED
@@ -58,7 +58,7 @@ Below the slide. Drag its top edge to resize it.
58
58
  - For the current slide: move up and down, hide, delete (a second click confirms), and its **layout**, picked from pictures of each layout and column widths. A layout with more columns than the slide has adds empty ones to type in (in a slide with rows, to its first row); columns are never taken away. **Add a row below** adds a full-width row, or one of two or three empty columns.
59
59
  - The slide's style: **Dark slide** (or Light slide in a dark deck), **Fit to slide** (content and columns slides), and **No number** (section slides).
60
60
  - **Preview** opens the deck as presented (`/present`) on the current slide: in a host app, where the app opens it, else in a new window. Its ▾ menu also opens it in your default browser or copies its link.
61
- - **Publish** (in Treasure Work) publishes the deck as a web page on Apps Script. Treasure Work builds it, asks who can open it the first time (only you, your organization, or anyone with the link), and deploys it with your Google account. After that the button reads **Update page**: it updates the same page, so a link you shared keeps working. Its ▾ menu shows the page's link, to open or copy. A published page is a snapshot, so update it after you edit. Outside Treasure Work there is no Publish button.
61
+ - **Publish** (in Treasure Work) publishes the deck as a web page on Apps Script. Treasure Work builds it, asks who can open it the first time (only you, your organization, or anyone with the link), and deploys it with your Google account. After that the button reads **Update page**: it updates the same page, so a link you shared keeps working. Its ▾ menu opens the page or copies its link. A published page is a snapshot, so update it after you edit. Outside Treasure Work there is no Publish button.
62
62
  - **Undo** and **Redo**, and the switch between the two views below.
63
63
  - A second row shows the controls for what is selected: the text row while typing, or an image's or diagram's controls.
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasure-ai/treasure-deck",
3
- "version": "2026.10.14",
3
+ "version": "2026.10.15",
4
4
  "description": "Markdown presentations without <div> markup: four layouts, themes, and a single-file HTML output that publishes to Apps Script",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://www.npmjs.com/package/@treasure-ai/treasure-deck",
package/runtime/embed.js CHANGED
@@ -159,7 +159,7 @@
159
159
  '.ly-menu .ly-toggles button.is-on{background:var(--ed-accent);border-color:var(--ed-accent);color:var(--ed-on-accent)}' +
160
160
  '.deck-slide-bar .dsb-present{display:inline-flex}.deck-slide-bar .dsb-present button:first-child{border-radius:5px 0 0 5px}' +
161
161
  '.deck-slide-bar .dsb-present button:last-child{border-radius:0 5px 5px 0;margin-left:-1px;padding:3px 3px}.pv-menu{position:fixed;z-index:1001}' +
162
- '.pb-menu .pb-url{max-width:320px;padding:6px 10px;font-size:12px;color:var(--ed-muted);overflow-wrap:anywhere;user-select:text}' +
162
+ '.pb-menu .pb-note{max-width:320px;padding:6px 10px;font-size:12px;color:var(--ed-muted)}' +
163
163
  '.deck-slide-bar .dsb-view{display:inline-flex}.deck-slide-bar .dsb-view button{border-radius:0}.deck-slide-bar .dsb-view button:first-child{border-radius:5px 0 0 5px}' +
164
164
  '.deck-slide-bar .dsb-view button:last-child{border-radius:0 5px 5px 0;margin-left:-1px}' +
165
165
  '.deck-src-popover{position:fixed;z-index:1000;display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:8px;' +
@@ -1401,7 +1401,7 @@
1401
1401
 
1402
1402
  // Publish (with a host process): POST /__publish waits while Treasure Work builds the deck, asks for the audience
1403
1403
  // the first time, and deploys it to Apps Script, then answers with the page's URL. Republishing updates the same
1404
- // page. Its ▾ menu shows the page: open it, or copy its link.
1404
+ // page. Treasure Work shows the result, so the ▾ menu stays closed; it opens the page or copies its link.
1405
1405
  var published = null, publishing = false;
1406
1406
  var publishMenu = document.createElement('div');
1407
1407
  publishMenu.className = 'ed-menu pv-menu pb-menu';
@@ -1440,7 +1440,6 @@
1440
1440
  if (r && r.ok && r.url) {
1441
1441
  showPublished({ url: r.url, scope: r.scope });
1442
1442
  toast(r.updated ? 'Page updated' : 'Published', 2500);
1443
- togglePublishMenu(bar.querySelector('[data-act="publish-menu"]'), true);
1444
1443
  return;
1445
1444
  }
1446
1445
  showPublished(published);
@@ -1453,14 +1452,13 @@
1453
1452
  toast('Couldn\u2019t publish: ' + e, 6000);
1454
1453
  });
1455
1454
  }
1456
- function togglePublishMenu(b, open) {
1457
- publishMenu.hidden = open ? false : !publishMenu.hidden;
1458
- if (publishMenu.hidden || !b) return;
1455
+ function togglePublishMenu(b) {
1456
+ publishMenu.hidden = !publishMenu.hidden;
1457
+ if (publishMenu.hidden) return;
1459
1458
  publishMenu.innerHTML = published
1460
- ? '<div class="pb-url"></div><button data-pb="open">' + icon('external-link', '') + 'Open the page</button>' +
1459
+ ? '<button data-pb="open">' + icon('external-link', '') + 'Open the page</button>' +
1461
1460
  '<button data-pb="copy">' + icon('copy', '') + 'Copy link</button>'
1462
- : '<div class="pb-url">Not published yet. Publish makes a web page of the deck with Treasure Work.</div>';
1463
- if (published) publishMenu.querySelector('.pb-url').textContent = published.url + (published.scope ? ' (' + published.scope + ')' : '');
1461
+ : '<div class="pb-note">Not published yet. Publish makes a web page of the deck with Treasure Work.</div>';
1464
1462
  var r = b.getBoundingClientRect();
1465
1463
  publishMenu.style.left = Math.max(8, Math.min(r.right - publishMenu.offsetWidth, window.innerWidth - publishMenu.offsetWidth - 8)) + 'px';
1466
1464
  publishMenu.style.top = (r.bottom + 4) + 'px';