ooxml-ui 1.35.0 → 1.37.0

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.
Files changed (145) hide show
  1. package/custom-elements.json +14 -1
  2. package/dist/chrome/tab-drag.d.ts +27 -0
  3. package/dist/chrome/tab-drag.d.ts.map +1 -0
  4. package/dist/chrome/tab-strip.d.ts +25 -1
  5. package/dist/chrome/tab-strip.d.ts.map +1 -1
  6. package/dist/{chunk-CDC5MAZS.js → chunk-6VF4FEMY.js} +1 -1
  7. package/dist/{chunk-D5IRYZLP.js → chunk-7RRN2GPO.js} +1 -1
  8. package/dist/{chunk-TGG36HHF.js → chunk-FQYCSYWH.js} +2 -2
  9. package/dist/{chunk-FFM3WVLU.js → chunk-O3P6UH4P.js} +1 -1
  10. package/dist/{chunk-KYXSQFDB.js → chunk-QAX4FAB7.js} +139 -4
  11. package/dist/controls.d.ts +1 -1
  12. package/dist/controls.d.ts.map +1 -1
  13. package/dist/controls.js +1 -1
  14. package/dist/docx/building-blocks-actions.d.ts +2 -2
  15. package/dist/docx/editable-region-view.d.ts +4 -0
  16. package/dist/docx/editor-chrome.d.ts +1 -1
  17. package/dist/docx/editor-core.d.ts +4 -0
  18. package/dist/docx/editor-plugins.d.ts +3 -0
  19. package/dist/docx/file-commands.d.ts +5 -0
  20. package/dist/docx/format-dialogs.d.ts +6 -1
  21. package/dist/docx/insert-controller.d.ts +5 -0
  22. package/dist/docx/list-commands.d.ts +3 -1
  23. package/dist/docx/list-marker-display.d.ts +1 -1
  24. package/dist/docx/locales/en-app.d.ts +0 -1
  25. package/dist/docx/locales/en-ribbon.d.ts +51 -0
  26. package/dist/docx/locales/en.d.ts +51 -1
  27. package/dist/docx/localization-strings.d.ts +51 -1
  28. package/dist/docx/paragraph-styles.d.ts +1 -1
  29. package/dist/docx/protection-controls.d.ts +4 -0
  30. package/dist/docx/restrict-editing-pane.d.ts +14 -0
  31. package/dist/docx/ribbon-action.d.ts +4 -0
  32. package/dist/docx/ribbon-icons.d.ts +1 -0
  33. package/dist/docx/search-controller.d.ts +12 -5
  34. package/dist/docx/search-document.d.ts +32 -0
  35. package/dist/docx.js +1182 -384
  36. package/dist/export/pdf-embedded-font.d.ts +65 -0
  37. package/dist/export/pdf-fonts.d.ts +14 -0
  38. package/dist/export/pdf-vector.d.ts +84 -0
  39. package/dist/fonts/catalog.d.ts +1 -0
  40. package/dist/index.js +4 -4
  41. package/dist/pptx/ai/bridge-factory.d.ts +4 -1
  42. package/dist/pptx/ai/bridge-factory.d.ts.map +1 -1
  43. package/dist/pptx/ai/config.d.ts +1 -1
  44. package/dist/pptx/ai/config.d.ts.map +1 -1
  45. package/dist/pptx/ai/host.cjs +36 -36
  46. package/dist/pptx/ai/host.mjs +1 -1
  47. package/dist/pptx/ai/index.cjs +50 -43
  48. package/dist/pptx/ai/index.mjs +10 -3
  49. package/dist/pptx/ai/system-prompt.d.ts +1 -1
  50. package/dist/pptx/ai/system-prompt.d.ts.map +1 -1
  51. package/dist/pptx/ai/tool-summary.d.ts.map +1 -1
  52. package/dist/pptx/ai/tools/mcp-registry.d.ts.map +1 -1
  53. package/dist/pptx/{chunk-KGDMMWIY.mjs → chunk-2AK5MS6H.mjs} +11 -0
  54. package/dist/pptx/{chunk-M55PNMFQ.cjs → chunk-4OKSYRYA.cjs} +11 -0
  55. package/dist/pptx/{chunk-GPQP2R5Y.mjs → chunk-4RSRCNRM.mjs} +177 -13
  56. package/dist/pptx/{chunk-NPYNJOK2.cjs → chunk-6JJD3LFT.cjs} +182 -17
  57. package/dist/pptx/{chunk-46HIE4IE.cjs → chunk-CRV7G4GC.cjs} +8 -0
  58. package/dist/pptx/{chunk-5EERUTDC.mjs → chunk-KNCCSPAV.mjs} +1 -1
  59. package/dist/pptx/{chunk-GKQULDFF.cjs → chunk-SI7GQYSL.cjs} +42 -42
  60. package/dist/pptx/{chunk-6MEBLCNK.mjs → chunk-WQI3NLMY.mjs} +8 -0
  61. package/dist/pptx/dom/index.cjs +384 -384
  62. package/dist/pptx/dom/index.mjs +6 -6
  63. package/dist/pptx/i18n/index.cjs +6 -6
  64. package/dist/pptx/i18n/index.mjs +1 -1
  65. package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
  66. package/dist/pptx/index.cjs +3037 -3033
  67. package/dist/pptx/index.mjs +2 -2
  68. package/dist/pptx/render/controller/custom-shows-controller.d.ts +93 -0
  69. package/dist/pptx/render/controller/custom-shows-controller.d.ts.map +1 -0
  70. package/dist/pptx/render/controller/index.d.ts +2 -0
  71. package/dist/pptx/render/controller/index.d.ts.map +1 -1
  72. package/dist/pptx/render/custom-shows.d.ts +10 -2
  73. package/dist/pptx/render/custom-shows.d.ts.map +1 -1
  74. package/dist/pptx/{smartart-insert-preview-6BITTUI4.mjs → smartart-insert-preview-JH5TXECK.mjs} +3 -3
  75. package/dist/pptx/{smartart-insert-preview-BUOS5XQR.cjs → smartart-insert-preview-QWROEVZL.cjs} +4 -4
  76. package/dist/teams.js +2 -2
  77. package/dist/theme-bridge.d.ts +1 -0
  78. package/dist/visio/binding.d.ts +2 -1
  79. package/dist/visio/canvas-editing.d.ts +4 -0
  80. package/dist/visio/controller.d.ts +3 -0
  81. package/dist/visio/locales/de-backstage.d.ts +2 -0
  82. package/dist/visio/locales/en-backstage.d.ts +2 -0
  83. package/dist/visio/locales/es-backstage.d.ts +2 -0
  84. package/dist/visio/locales/fr-backstage.d.ts +2 -0
  85. package/dist/visio/locales/zh-CN-backstage.d.ts +2 -0
  86. package/dist/visio/paragraph-layout.d.ts +6 -1
  87. package/dist/visio/pdf-path.d.ts +37 -0
  88. package/dist/visio/pdf-svg-gradient.d.ts +23 -0
  89. package/dist/visio/pdf-svg-style.d.ts +20 -0
  90. package/dist/visio/pdf-svg-text.d.ts +8 -0
  91. package/dist/visio/pdf-svg.d.ts +22 -0
  92. package/dist/visio/render-bevel.d.ts +15 -0
  93. package/dist/visio/ribbon-action.d.ts +47 -5
  94. package/dist/visio/ribbon-arrange.d.ts +9 -0
  95. package/dist/visio/ribbon-contextual-formats.d.ts +18 -0
  96. package/dist/visio/ribbon-localize.d.ts +6 -0
  97. package/dist/visio/ribbon-org-chart.d.ts +8 -0
  98. package/dist/visio/ribbon-router.d.ts +18 -0
  99. package/dist/visio/ribbon-shape-format.d.ts +7 -0
  100. package/dist/visio/ribbon-shape-styles.d.ts +2 -0
  101. package/dist/visio/ribbon-size-fields.d.ts +5 -0
  102. package/dist/visio/ribbon-swimlane.d.ts +9 -0
  103. package/dist/visio/ribbon-themes.d.ts +13 -3
  104. package/dist/visio/ribbon.d.ts +5 -1
  105. package/dist/visio/shapes-files-ui.d.ts +1 -1
  106. package/dist/visio/tab-layout.d.ts +15 -0
  107. package/dist/visio/template-thumbnails.d.ts +10 -0
  108. package/dist/visio/viewer-backstage.d.ts +13 -3
  109. package/dist/visio/viewer-contextual-tabs.d.ts +21 -0
  110. package/dist/visio/viewer-control-handles.d.ts +19 -0
  111. package/dist/visio/viewer-data-advanced.d.ts +25 -0
  112. package/dist/visio/viewer-data-fields.d.ts +16 -0
  113. package/dist/visio/viewer-data-labels.d.ts +8 -0
  114. package/dist/visio/viewer-data-visualizer.d.ts +25 -0
  115. package/dist/visio/viewer-data.d.ts +6 -0
  116. package/dist/visio/viewer-diagram-parts.d.ts +9 -1
  117. package/dist/visio/viewer-element.d.ts +10 -0
  118. package/dist/visio/viewer-export.d.ts +1 -6
  119. package/dist/visio/viewer-file-commands.d.ts +6 -1
  120. package/dist/visio/viewer-guides.d.ts +8 -1
  121. package/dist/visio/viewer-inline-size.d.ts +15 -0
  122. package/dist/visio/viewer-insert-dialog.d.ts +1 -0
  123. package/dist/visio/viewer-new-drawing.d.ts +3 -2
  124. package/dist/visio/viewer-org-chart.d.ts +30 -0
  125. package/dist/visio/viewer-pdf-options.d.ts +26 -0
  126. package/dist/visio/viewer-pdf.d.ts +47 -0
  127. package/dist/visio/viewer-picture-format.d.ts +20 -0
  128. package/dist/visio/viewer-resize-handles.d.ts +13 -1
  129. package/dist/visio/viewer-shape-actions.d.ts +12 -0
  130. package/dist/visio/viewer-shape-styles.d.ts +1 -1
  131. package/dist/visio/viewer-swimlanes.d.ts +34 -0
  132. package/dist/visio.js +6007 -1086
  133. package/dist/xlsx/dialogs/audit-dialogs.d.ts +9 -0
  134. package/dist/xlsx/dialogs/custom-lists.d.ts +6 -0
  135. package/dist/xlsx/dialogs/help-dialogs.d.ts +2 -2
  136. package/dist/xlsx/dialogs/sort-dialog.d.ts +3 -3
  137. package/dist/xlsx/dialogs/watch-window.d.ts +4 -0
  138. package/dist/xlsx/grid/audit-layer.d.ts +3 -0
  139. package/dist/xlsx/grid/grid-view.d.ts +23 -1
  140. package/dist/xlsx/grid/pane-chrome.d.ts +2 -0
  141. package/dist/xlsx/grid/split-bars.d.ts +2 -0
  142. package/dist/xlsx/grid/styles.d.ts +1 -1
  143. package/dist/xlsx/sheet-tabs/drag.d.ts +1 -2
  144. package/dist/xlsx.js +1074 -239
  145. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkM55PNMFQ_cjs = require('../chunk-M55PNMFQ.cjs');
3
+ var chunk4OKSYRYA_cjs = require('../chunk-4OKSYRYA.cjs');
4
4
  var chunkA5MANNJR_cjs = require('../chunk-A5MANNJR.cjs');
5
5
  var chunk3RIGT7H6_cjs = require('../chunk-3RIGT7H6.cjs');
6
6
  require('../chunk-PBZWDEXQ.cjs');
@@ -315,7 +315,7 @@ var ProposalStore = class {
315
315
  const proposal = {
316
316
  id: nextId(),
317
317
  label,
318
- summary: chunkM55PNMFQ_cjs.diffSlides(before, after),
318
+ summary: chunk4OKSYRYA_cjs.diffSlides(before, after),
319
319
  createdAt: Date.now(),
320
320
  updater
321
321
  };
@@ -400,7 +400,7 @@ ask for one). They are grouped as:
400
400
  - Slides: add_slide, duplicate_slide, delete_slides, reorder_slides,
401
401
  update_slide_properties (background/notes/visibility), set_slide_transition.
402
402
  - Theme + presentation: apply_theme_preset, update_theme_colors,
403
- update_theme_fonts, set_canvas_size, update_metadata, manage_sections,
403
+ update_theme_fonts, set_canvas_size, update_metadata, manage_sections, manage_custom_shows,
404
404
  update_presentation_properties, apply_layout, import_from_json (replace the
405
405
  whole deck from a pptx-viewer-json document; destructive, confirm first).
406
406
 
@@ -1096,6 +1096,13 @@ var MCP_TOOL_ENTRIES = {
1096
1096
  "deck",
1097
1097
  "Manage sections"
1098
1098
  ),
1099
+ manage_custom_shows: entry(
1100
+ "List, create, rename, copy or delete custom shows, or edit their slide lists.",
1101
+ mcpSchemas__namespace.ManageCustomShowsSchema,
1102
+ mcp__namespace.manageCustomShows,
1103
+ "deck",
1104
+ "Manage custom shows"
1105
+ ),
1099
1106
  update_presentation_properties: entry(
1100
1107
  "Update slideshow properties (show type, loop, advance mode, pen colour).",
1101
1108
  mcpSchemas__namespace.UpdatePresentationPropertiesSchema,
@@ -1217,7 +1224,7 @@ async function createAiChatSession(bridge, config) {
1217
1224
  'The optional "ai" SDK is not installed. Install `ai` (>=6 <8) to enable the assistant.'
1218
1225
  );
1219
1226
  }
1220
- const changeAnimator = chunkM55PNMFQ_cjs.createAiChangeAnimator(config.changeAnimation);
1227
+ const changeAnimator = chunk4OKSYRYA_cjs.createAiChangeAnimator(config.changeAnimation);
1221
1228
  const proposals = new ProposalStore(bridge, changeAnimator);
1222
1229
  const executors = buildToolExecutors(bridge, proposals, config, changeAnimator);
1223
1230
  const tools = buildToolSet(sdk, config, executors, { withExecute: false });
@@ -1365,159 +1372,159 @@ function buildPptxAiSystemPrompt(options = {}) {
1365
1372
 
1366
1373
  Object.defineProperty(exports, "AI_CHANGE_ATTR", {
1367
1374
  enumerable: true,
1368
- get: function () { return chunkM55PNMFQ_cjs.AI_CHANGE_ATTR; }
1375
+ get: function () { return chunk4OKSYRYA_cjs.AI_CHANGE_ATTR; }
1369
1376
  });
1370
1377
  Object.defineProperty(exports, "AI_TOOL_FLASH_MS", {
1371
1378
  enumerable: true,
1372
- get: function () { return chunkM55PNMFQ_cjs.AI_TOOL_FLASH_MS; }
1379
+ get: function () { return chunk4OKSYRYA_cjs.AI_TOOL_FLASH_MS; }
1373
1380
  });
1374
1381
  Object.defineProperty(exports, "aiChangeAnimationCss", {
1375
1382
  enumerable: true,
1376
- get: function () { return chunkM55PNMFQ_cjs.aiChangeAnimationCss; }
1383
+ get: function () { return chunk4OKSYRYA_cjs.aiChangeAnimationCss; }
1377
1384
  });
1378
1385
  Object.defineProperty(exports, "aiFixDirective", {
1379
1386
  enumerable: true,
1380
- get: function () { return chunkM55PNMFQ_cjs.aiFixDirective; }
1387
+ get: function () { return chunk4OKSYRYA_cjs.aiFixDirective; }
1381
1388
  });
1382
1389
  Object.defineProperty(exports, "applyElementUpdate", {
1383
1390
  enumerable: true,
1384
- get: function () { return chunkM55PNMFQ_cjs.applyElementUpdate; }
1391
+ get: function () { return chunk4OKSYRYA_cjs.applyElementUpdate; }
1385
1392
  });
1386
1393
  Object.defineProperty(exports, "applyShapeStyleUpdate", {
1387
1394
  enumerable: true,
1388
- get: function () { return chunkM55PNMFQ_cjs.applyShapeStyleUpdate; }
1395
+ get: function () { return chunk4OKSYRYA_cjs.applyShapeStyleUpdate; }
1389
1396
  });
1390
1397
  Object.defineProperty(exports, "applyTextUpdate", {
1391
1398
  enumerable: true,
1392
- get: function () { return chunkM55PNMFQ_cjs.applyTextUpdate; }
1399
+ get: function () { return chunk4OKSYRYA_cjs.applyTextUpdate; }
1393
1400
  });
1394
1401
  Object.defineProperty(exports, "buildChatLogExport", {
1395
1402
  enumerable: true,
1396
- get: function () { return chunkM55PNMFQ_cjs.buildChatLogExport; }
1403
+ get: function () { return chunk4OKSYRYA_cjs.buildChatLogExport; }
1397
1404
  });
1398
1405
  Object.defineProperty(exports, "buildChatLogMarkdown", {
1399
1406
  enumerable: true,
1400
- get: function () { return chunkM55PNMFQ_cjs.buildChatLogMarkdown; }
1407
+ get: function () { return chunk4OKSYRYA_cjs.buildChatLogMarkdown; }
1401
1408
  });
1402
1409
  Object.defineProperty(exports, "changeGhostStyle", {
1403
1410
  enumerable: true,
1404
- get: function () { return chunkM55PNMFQ_cjs.changeGhostStyle; }
1411
+ get: function () { return chunk4OKSYRYA_cjs.changeGhostStyle; }
1405
1412
  });
1406
1413
  Object.defineProperty(exports, "collectStoredChats", {
1407
1414
  enumerable: true,
1408
- get: function () { return chunkM55PNMFQ_cjs.collectStoredChats; }
1415
+ get: function () { return chunk4OKSYRYA_cjs.collectStoredChats; }
1409
1416
  });
1410
1417
  Object.defineProperty(exports, "computeFocusTargets", {
1411
1418
  enumerable: true,
1412
- get: function () { return chunkM55PNMFQ_cjs.computeFocusTargets; }
1419
+ get: function () { return chunk4OKSYRYA_cjs.computeFocusTargets; }
1413
1420
  });
1414
1421
  Object.defineProperty(exports, "createAiChangeAnimator", {
1415
1422
  enumerable: true,
1416
- get: function () { return chunkM55PNMFQ_cjs.createAiChangeAnimator; }
1423
+ get: function () { return chunk4OKSYRYA_cjs.createAiChangeAnimator; }
1417
1424
  });
1418
1425
  Object.defineProperty(exports, "createAiChatHistoryController", {
1419
1426
  enumerable: true,
1420
- get: function () { return chunkM55PNMFQ_cjs.createAiChatHistoryController; }
1427
+ get: function () { return chunk4OKSYRYA_cjs.createAiChatHistoryController; }
1421
1428
  });
1422
1429
  Object.defineProperty(exports, "createPptxAiBridge", {
1423
1430
  enumerable: true,
1424
- get: function () { return chunkM55PNMFQ_cjs.createPptxAiBridge; }
1431
+ get: function () { return chunk4OKSYRYA_cjs.createPptxAiBridge; }
1425
1432
  });
1426
1433
  Object.defineProperty(exports, "createPptxAiPanelController", {
1427
1434
  enumerable: true,
1428
- get: function () { return chunkM55PNMFQ_cjs.createPptxAiPanelController; }
1435
+ get: function () { return chunk4OKSYRYA_cjs.createPptxAiPanelController; }
1429
1436
  });
1430
1437
  Object.defineProperty(exports, "deckDataFieldChanged", {
1431
1438
  enumerable: true,
1432
- get: function () { return chunkM55PNMFQ_cjs.deckDataFieldChanged; }
1439
+ get: function () { return chunk4OKSYRYA_cjs.deckDataFieldChanged; }
1433
1440
  });
1434
1441
  Object.defineProperty(exports, "deckIdFromBridge", {
1435
1442
  enumerable: true,
1436
- get: function () { return chunkM55PNMFQ_cjs.deckIdFromBridge; }
1443
+ get: function () { return chunk4OKSYRYA_cjs.deckIdFromBridge; }
1437
1444
  });
1438
1445
  Object.defineProperty(exports, "deriveChatTitle", {
1439
1446
  enumerable: true,
1440
- get: function () { return chunkM55PNMFQ_cjs.deriveChatTitle; }
1447
+ get: function () { return chunk4OKSYRYA_cjs.deriveChatTitle; }
1441
1448
  });
1442
1449
  Object.defineProperty(exports, "describeToolActivity", {
1443
1450
  enumerable: true,
1444
- get: function () { return chunkM55PNMFQ_cjs.describeToolActivity; }
1451
+ get: function () { return chunk4OKSYRYA_cjs.describeToolActivity; }
1445
1452
  });
1446
1453
  Object.defineProperty(exports, "diffChangedElements", {
1447
1454
  enumerable: true,
1448
- get: function () { return chunkM55PNMFQ_cjs.diffChangedElements; }
1455
+ get: function () { return chunk4OKSYRYA_cjs.diffChangedElements; }
1449
1456
  });
1450
1457
  Object.defineProperty(exports, "diffSlides", {
1451
1458
  enumerable: true,
1452
- get: function () { return chunkM55PNMFQ_cjs.diffSlides; }
1459
+ get: function () { return chunk4OKSYRYA_cjs.diffSlides; }
1453
1460
  });
1454
1461
  Object.defineProperty(exports, "exportAiChatLogs", {
1455
1462
  enumerable: true,
1456
- get: function () { return chunkM55PNMFQ_cjs.exportAiChatLogs; }
1463
+ get: function () { return chunk4OKSYRYA_cjs.exportAiChatLogs; }
1457
1464
  });
1458
1465
  Object.defineProperty(exports, "extractReadyToolCalls", {
1459
1466
  enumerable: true,
1460
- get: function () { return chunkM55PNMFQ_cjs.extractReadyToolCalls; }
1467
+ get: function () { return chunk4OKSYRYA_cjs.extractReadyToolCalls; }
1461
1468
  });
1462
1469
  Object.defineProperty(exports, "focusTargetChips", {
1463
1470
  enumerable: true,
1464
- get: function () { return chunkM55PNMFQ_cjs.focusTargetChips; }
1471
+ get: function () { return chunk4OKSYRYA_cjs.focusTargetChips; }
1465
1472
  });
1466
1473
  Object.defineProperty(exports, "humanizeDiffLine", {
1467
1474
  enumerable: true,
1468
- get: function () { return chunkM55PNMFQ_cjs.humanizeDiffLine; }
1475
+ get: function () { return chunk4OKSYRYA_cjs.humanizeDiffLine; }
1469
1476
  });
1470
1477
  Object.defineProperty(exports, "isAiFocusPinned", {
1471
1478
  enumerable: true,
1472
- get: function () { return chunkM55PNMFQ_cjs.isAiFocusPinned; }
1479
+ get: function () { return chunk4OKSYRYA_cjs.isAiFocusPinned; }
1473
1480
  });
1474
1481
  Object.defineProperty(exports, "isTwoTableFocus", {
1475
1482
  enumerable: true,
1476
- get: function () { return chunkM55PNMFQ_cjs.isTwoTableFocus; }
1483
+ get: function () { return chunk4OKSYRYA_cjs.isTwoTableFocus; }
1477
1484
  });
1478
1485
  Object.defineProperty(exports, "mergeTablesDirective", {
1479
1486
  enumerable: true,
1480
- get: function () { return chunkM55PNMFQ_cjs.mergeTablesDirective; }
1487
+ get: function () { return chunk4OKSYRYA_cjs.mergeTablesDirective; }
1481
1488
  });
1482
1489
  Object.defineProperty(exports, "newChatId", {
1483
1490
  enumerable: true,
1484
- get: function () { return chunkM55PNMFQ_cjs.newChatId; }
1491
+ get: function () { return chunk4OKSYRYA_cjs.newChatId; }
1485
1492
  });
1486
1493
  Object.defineProperty(exports, "pptxAiDeckTitle", {
1487
1494
  enumerable: true,
1488
- get: function () { return chunkM55PNMFQ_cjs.pptxAiDeckTitle; }
1495
+ get: function () { return chunk4OKSYRYA_cjs.pptxAiDeckTitle; }
1489
1496
  });
1490
1497
  Object.defineProperty(exports, "resolveAiEffectiveTargets", {
1491
1498
  enumerable: true,
1492
- get: function () { return chunkM55PNMFQ_cjs.resolveAiEffectiveTargets; }
1499
+ get: function () { return chunk4OKSYRYA_cjs.resolveAiEffectiveTargets; }
1493
1500
  });
1494
1501
  Object.defineProperty(exports, "resolveChangeAnimationConfig", {
1495
1502
  enumerable: true,
1496
- get: function () { return chunkM55PNMFQ_cjs.resolveChangeAnimationConfig; }
1503
+ get: function () { return chunk4OKSYRYA_cjs.resolveChangeAnimationConfig; }
1497
1504
  });
1498
1505
  Object.defineProperty(exports, "summarizeToolArgs", {
1499
1506
  enumerable: true,
1500
- get: function () { return chunkM55PNMFQ_cjs.summarizeToolArgs; }
1507
+ get: function () { return chunk4OKSYRYA_cjs.summarizeToolArgs; }
1501
1508
  });
1502
1509
  Object.defineProperty(exports, "toLogChat", {
1503
1510
  enumerable: true,
1504
- get: function () { return chunkM55PNMFQ_cjs.toLogChat; }
1511
+ get: function () { return chunk4OKSYRYA_cjs.toLogChat; }
1505
1512
  });
1506
1513
  Object.defineProperty(exports, "toRenderableParts", {
1507
1514
  enumerable: true,
1508
- get: function () { return chunkM55PNMFQ_cjs.toRenderableParts; }
1515
+ get: function () { return chunk4OKSYRYA_cjs.toRenderableParts; }
1509
1516
  });
1510
1517
  Object.defineProperty(exports, "toolCallLine", {
1511
1518
  enumerable: true,
1512
- get: function () { return chunkM55PNMFQ_cjs.toolCallLine; }
1519
+ get: function () { return chunk4OKSYRYA_cjs.toolCallLine; }
1513
1520
  });
1514
1521
  Object.defineProperty(exports, "toolCanvasTarget", {
1515
1522
  enumerable: true,
1516
- get: function () { return chunkM55PNMFQ_cjs.toolCanvasTarget; }
1523
+ get: function () { return chunk4OKSYRYA_cjs.toolCanvasTarget; }
1517
1524
  });
1518
1525
  Object.defineProperty(exports, "toolLabel", {
1519
1526
  enumerable: true,
1520
- get: function () { return chunkM55PNMFQ_cjs.toolLabel; }
1527
+ get: function () { return chunk4OKSYRYA_cjs.toolLabel; }
1521
1528
  });
1522
1529
  Object.defineProperty(exports, "createChatHistoryStore", {
1523
1530
  enumerable: true,
@@ -1,5 +1,5 @@
1
- import { diffSlides, createAiChangeAnimator } from '../chunk-KGDMMWIY.mjs';
2
- export { AI_CHANGE_ATTR, AI_TOOL_FLASH_MS, aiChangeAnimationCss, aiFixDirective, applyElementUpdate, applyShapeStyleUpdate, applyTextUpdate, buildChatLogExport, buildChatLogMarkdown, changeGhostStyle, collectStoredChats, computeFocusTargets, createAiChangeAnimator, createAiChatHistoryController, createPptxAiBridge, createPptxAiPanelController, deckDataFieldChanged, deckIdFromBridge, deriveChatTitle, describeToolActivity, diffChangedElements, diffSlides, exportAiChatLogs, extractReadyToolCalls, focusTargetChips, humanizeDiffLine, isAiFocusPinned, isTwoTableFocus, mergeTablesDirective, newChatId, pptxAiDeckTitle, resolveAiEffectiveTargets, resolveChangeAnimationConfig, summarizeToolArgs, toLogChat, toRenderableParts, toolCallLine, toolCanvasTarget, toolLabel } from '../chunk-KGDMMWIY.mjs';
1
+ import { diffSlides, createAiChangeAnimator } from '../chunk-2AK5MS6H.mjs';
2
+ export { AI_CHANGE_ATTR, AI_TOOL_FLASH_MS, aiChangeAnimationCss, aiFixDirective, applyElementUpdate, applyShapeStyleUpdate, applyTextUpdate, buildChatLogExport, buildChatLogMarkdown, changeGhostStyle, collectStoredChats, computeFocusTargets, createAiChangeAnimator, createAiChatHistoryController, createPptxAiBridge, createPptxAiPanelController, deckDataFieldChanged, deckIdFromBridge, deriveChatTitle, describeToolActivity, diffChangedElements, diffSlides, exportAiChatLogs, extractReadyToolCalls, focusTargetChips, humanizeDiffLine, isAiFocusPinned, isTwoTableFocus, mergeTablesDirective, newChatId, pptxAiDeckTitle, resolveAiEffectiveTargets, resolveChangeAnimationConfig, summarizeToolArgs, toLogChat, toRenderableParts, toolCallLine, toolCanvasTarget, toolLabel } from '../chunk-2AK5MS6H.mjs';
3
3
  export { createChatHistoryStore } from '../chunk-LVDF75JU.mjs';
4
4
  export { createAiAssistantRegistry } from '../chunk-PM2SOLK3.mjs';
5
5
  import '../chunk-PEDGPFLR.mjs';
@@ -379,7 +379,7 @@ ask for one). They are grouped as:
379
379
  - Slides: add_slide, duplicate_slide, delete_slides, reorder_slides,
380
380
  update_slide_properties (background/notes/visibility), set_slide_transition.
381
381
  - Theme + presentation: apply_theme_preset, update_theme_colors,
382
- update_theme_fonts, set_canvas_size, update_metadata, manage_sections,
382
+ update_theme_fonts, set_canvas_size, update_metadata, manage_sections, manage_custom_shows,
383
383
  update_presentation_properties, apply_layout, import_from_json (replace the
384
384
  whole deck from a pptx-viewer-json document; destructive, confirm first).
385
385
 
@@ -1075,6 +1075,13 @@ var MCP_TOOL_ENTRIES = {
1075
1075
  "deck",
1076
1076
  "Manage sections"
1077
1077
  ),
1078
+ manage_custom_shows: entry(
1079
+ "List, create, rename, copy or delete custom shows, or edit their slide lists.",
1080
+ mcpSchemas.ManageCustomShowsSchema,
1081
+ mcp.manageCustomShows,
1082
+ "deck",
1083
+ "Manage custom shows"
1084
+ ),
1078
1085
  update_presentation_properties: entry(
1079
1086
  "Update slideshow properties (show type, loop, advance mode, pen colour).",
1080
1087
  mcpSchemas.UpdatePresentationPropertiesSchema,
@@ -6,7 +6,7 @@
6
6
  * a request, and the etiquette for staged (review-before-apply) writes.
7
7
  */
8
8
  import type { PptxAiWritePolicy } from './config.js';
9
- declare const BASE_SYSTEM_PROMPT = "You are the AI assistant embedded inside a PowerPoint (.pptx) viewer and editor.\nYou help the user understand and edit the presentation that is open in front of them.\n\nYour tools are the same tools the \"pptx-viewer-tools\" (pptx-viewer-mcp) server\nexposes, run directly against the open deck (there is no file path; you never\nask for one). They are grouped as:\n- Read/inspect: get_deck_overview (whole-deck outline), get_slide (one slide as\n markdown + an element inventory with ids, types, bounds, z-order), get_element,\n get_speaker_notes, find_text, get_theme, get_metadata, get_layouts,\n find_placeholders, get_presentation_properties, run_accessibility_check,\n convert_to_markdown, export_to_json (portable pptx-viewer-json document).\n- Navigate the user's view: go_to_slide, select_elements (highlights elements for\n the user).\n- Edit elements: update_element, update_element_style, move/resize via\n update_element, add_element, delete_elements, arrange_elements, clone_element,\n group_elements/ungroup_elements, batch_update_elements, set_element_animation,\n set_element_lock, replace_geometry, manage_hyperlinks.\n- Text, tables, charts, SmartArt: replace_text, manage_comments,\n update_table_cells, manage_table_structure, merge_tables, create_chart,\n update_chart, add_chart_series, remove_chart_series, update_chart_series_data,\n manage_smart_art, apply_template.\n- Slides: add_slide, duplicate_slide, delete_slides, reorder_slides,\n update_slide_properties (background/notes/visibility), set_slide_transition.\n- Theme + presentation: apply_theme_preset, update_theme_colors,\n update_theme_fonts, set_canvas_size, update_metadata, manage_sections,\n update_presentation_properties, apply_layout, import_from_json (replace the\n whole deck from a pptx-viewer-json document; destructive, confirm first).\n\nWorking with the user's SELECTION (focus):\n- The user can scope you to specific slides or elements: by selecting them on the\n canvas, or with the chat's \"point at an element\" pick mode. When they do, each\n turn includes a \"The user has selected the following to focus on\" block listing\n those targets with their exact ids, types, and bounds.\n- Treat that focus as the scope of the request. Prefer the ids GIVEN there over\n ids you guess or remember; act on those elements unless the user clearly asks\n about something else. Example: two tables are focused and the user says \"merge\n these\" -> call merge_tables with those two ids.\n- When no focus block is present, work from the active slide and the user's\n words, inspecting first to find the right ids.\n\nHow to work:\n- Before editing, inspect the relevant slide(s) with get_slide / get_element so\n you use correct element ids and coordinates. Coordinates and sizes are in CSS\n pixels; rotation is in degrees; colours are hex strings such as #1a1a1a.\n- Prefer the most specific tool for a change, and make one focused edit per tool\n call. Use batch_update_elements when applying the same change to several\n elements.\n- After acting, briefly tell the user what you did or are proposing, in plain\n language, and cite slide numbers 1-based for the user (tool indexes are 0-based).\n- If a request is ambiguous or destructive (e.g. deleting slides), ask a short\n clarifying question first.\n- Theme changes are the exception to staging: apply_theme_preset,\n update_theme_colors, and update_theme_fonts take effect IMMEDIATELY and are\n undoable. Say you HAVE applied them (e.g. \"I've set the accent colour to red\"),\n never that you are proposing them.\n- Some viewers cannot apply presentation-level changes (metadata, sections,\n layout, canvas size); if such a tool reports it is unavailable, tell the user\n plainly instead of retrying.";
9
+ declare const BASE_SYSTEM_PROMPT = "You are the AI assistant embedded inside a PowerPoint (.pptx) viewer and editor.\nYou help the user understand and edit the presentation that is open in front of them.\n\nYour tools are the same tools the \"pptx-viewer-tools\" (pptx-viewer-mcp) server\nexposes, run directly against the open deck (there is no file path; you never\nask for one). They are grouped as:\n- Read/inspect: get_deck_overview (whole-deck outline), get_slide (one slide as\n markdown + an element inventory with ids, types, bounds, z-order), get_element,\n get_speaker_notes, find_text, get_theme, get_metadata, get_layouts,\n find_placeholders, get_presentation_properties, run_accessibility_check,\n convert_to_markdown, export_to_json (portable pptx-viewer-json document).\n- Navigate the user's view: go_to_slide, select_elements (highlights elements for\n the user).\n- Edit elements: update_element, update_element_style, move/resize via\n update_element, add_element, delete_elements, arrange_elements, clone_element,\n group_elements/ungroup_elements, batch_update_elements, set_element_animation,\n set_element_lock, replace_geometry, manage_hyperlinks.\n- Text, tables, charts, SmartArt: replace_text, manage_comments,\n update_table_cells, manage_table_structure, merge_tables, create_chart,\n update_chart, add_chart_series, remove_chart_series, update_chart_series_data,\n manage_smart_art, apply_template.\n- Slides: add_slide, duplicate_slide, delete_slides, reorder_slides,\n update_slide_properties (background/notes/visibility), set_slide_transition.\n- Theme + presentation: apply_theme_preset, update_theme_colors,\n update_theme_fonts, set_canvas_size, update_metadata, manage_sections, manage_custom_shows,\n update_presentation_properties, apply_layout, import_from_json (replace the\n whole deck from a pptx-viewer-json document; destructive, confirm first).\n\nWorking with the user's SELECTION (focus):\n- The user can scope you to specific slides or elements: by selecting them on the\n canvas, or with the chat's \"point at an element\" pick mode. When they do, each\n turn includes a \"The user has selected the following to focus on\" block listing\n those targets with their exact ids, types, and bounds.\n- Treat that focus as the scope of the request. Prefer the ids GIVEN there over\n ids you guess or remember; act on those elements unless the user clearly asks\n about something else. Example: two tables are focused and the user says \"merge\n these\" -> call merge_tables with those two ids.\n- When no focus block is present, work from the active slide and the user's\n words, inspecting first to find the right ids.\n\nHow to work:\n- Before editing, inspect the relevant slide(s) with get_slide / get_element so\n you use correct element ids and coordinates. Coordinates and sizes are in CSS\n pixels; rotation is in degrees; colours are hex strings such as #1a1a1a.\n- Prefer the most specific tool for a change, and make one focused edit per tool\n call. Use batch_update_elements when applying the same change to several\n elements.\n- After acting, briefly tell the user what you did or are proposing, in plain\n language, and cite slide numbers 1-based for the user (tool indexes are 0-based).\n- If a request is ambiguous or destructive (e.g. deleting slides), ask a short\n clarifying question first.\n- Theme changes are the exception to staging: apply_theme_preset,\n update_theme_colors, and update_theme_fonts take effect IMMEDIATELY and are\n undoable. Say you HAVE applied them (e.g. \"I've set the accent colour to red\"),\n never that you are proposing them.\n- Some viewers cannot apply presentation-level changes (metadata, sections,\n layout, canvas size); if such a tool reports it is unavailable, tell the user\n plainly instead of retrying.";
10
10
  /**
11
11
  * Build the full system prompt for a session: the base prompt, a write-policy
12
12
  * note, and any host-supplied extras.
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../../src/pptx/ai/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,QAAA,MAAM,kBAAkB,ktHAyDO,CAAC;AAehC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IAC1C,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,MAAM,CAOT;AAED,8EAA8E;AAC9E,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../../src/pptx/ai/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,QAAA,MAAM,kBAAkB,uuHAyDO,CAAC;AAehC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IAC1C,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,MAAM,CAOT;AAED,8EAA8E;AAC9E,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tool-summary.d.ts","sourceRoot":"","sources":["../../../src/pptx/ai/tool-summary.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2DAA2D;AAC3D,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMlD;AAkBD,iEAAiE;AACjE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAuBxD;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GACzB,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,WAAW,GACX,OAAO,GACP,MAAM,CAAC;AAEV,sDAAsD;AACtD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAAC;AAEnD,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC5B,0DAA0D;IAC1D,IAAI,EAAE,gBAAgB,CAAC;IACvB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;CACd;AA6VD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,KAAK,GAAE,iBAA0B,GAC/B,YAAY,CAOd"}
1
+ {"version":3,"file":"tool-summary.d.ts","sourceRoot":"","sources":["../../../src/pptx/ai/tool-summary.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2DAA2D;AAC3D,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMlD;AAkBD,iEAAiE;AACjE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAuBxD;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GACzB,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,WAAW,GACX,OAAO,GACP,MAAM,CAAC;AAEV,sDAAsD;AACtD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAAC;AAEnD,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC5B,0DAA0D;IAC1D,IAAI,EAAE,gBAAgB,CAAC;IACvB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;CACd;AAkWD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,KAAK,GAAE,iBAA0B,GAC/B,YAAY,CAOd"}
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-registry.d.ts","sourceRoot":"","sources":["../../../../src/pptx/ai/tools/mcp-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAkC,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3F,sDAAsD;AACtD,MAAM,WAAW,YAAY;IAC5B,gCAAgC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC;IACrB,sDAAsD;IACtD,IAAI,EAAE,cAAc,CAAC;CACrB;AA6BD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAgazD,CAAC;AAEF,iCAAiC;AACjC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,gBAAgB,CAAC"}
1
+ {"version":3,"file":"mcp-registry.d.ts","sourceRoot":"","sources":["../../../../src/pptx/ai/tools/mcp-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAkC,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3F,sDAAsD;AACtD,MAAM,WAAW,YAAY;IAC5B,gCAAgC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC;IACrB,sDAAsD;IACtD,IAAI,EAAE,cAAc,CAAC;CACrB;AA6BD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAuazD,CAAC;AAEF,iCAAiC;AACjC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,gBAAgB,CAAC"}
@@ -124,6 +124,7 @@ function readDeckData(port) {
124
124
  height: canvas.height,
125
125
  theme: port.getTheme(),
126
126
  sections: copy(port.getSections()),
127
+ customShows: copy(port.getCustomShows?.()),
127
128
  presentationProperties: port.getPresentationProperties(),
128
129
  customProperties: copy(port.getCustomProperties()),
129
130
  coreProperties: port.getCoreProperties(),
@@ -165,6 +166,11 @@ function commitDeckData(port, before, after, label) {
165
166
  port.setSections(sections);
166
167
  changed = true;
167
168
  }
169
+ const customShows = after.customShows ?? before.customShows ?? [];
170
+ if (port.setCustomShows && differs(before.customShows, customShows)) {
171
+ port.setCustomShows(customShows);
172
+ changed = true;
173
+ }
168
174
  const presentation = after.presentationProperties ?? before.presentationProperties ?? {};
169
175
  if (differs(before.presentationProperties, presentation)) {
170
176
  port.setPresentationProperties(presentation);
@@ -1358,6 +1364,11 @@ var TOOL_PHRASES = {
1358
1364
  present: () => "Organising the sections",
1359
1365
  past: () => "Organised the sections"
1360
1366
  },
1367
+ manage_custom_shows: {
1368
+ icon: "slide",
1369
+ present: () => "Editing the custom shows",
1370
+ past: () => "Edited the custom shows"
1371
+ },
1361
1372
  update_presentation_properties: {
1362
1373
  icon: "tool",
1363
1374
  present: () => "Updating the slideshow settings",
@@ -126,6 +126,7 @@ function readDeckData(port) {
126
126
  height: canvas.height,
127
127
  theme: port.getTheme(),
128
128
  sections: copy(port.getSections()),
129
+ customShows: copy(port.getCustomShows?.()),
129
130
  presentationProperties: port.getPresentationProperties(),
130
131
  customProperties: copy(port.getCustomProperties()),
131
132
  coreProperties: port.getCoreProperties(),
@@ -167,6 +168,11 @@ function commitDeckData(port, before, after, label) {
167
168
  port.setSections(sections);
168
169
  changed = true;
169
170
  }
171
+ const customShows = after.customShows ?? before.customShows ?? [];
172
+ if (port.setCustomShows && differs(before.customShows, customShows)) {
173
+ port.setCustomShows(customShows);
174
+ changed = true;
175
+ }
170
176
  const presentation = after.presentationProperties ?? before.presentationProperties ?? {};
171
177
  if (differs(before.presentationProperties, presentation)) {
172
178
  port.setPresentationProperties(presentation);
@@ -1360,6 +1366,11 @@ var TOOL_PHRASES = {
1360
1366
  present: () => "Organising the sections",
1361
1367
  past: () => "Organised the sections"
1362
1368
  },
1369
+ manage_custom_shows: {
1370
+ icon: "slide",
1371
+ present: () => "Editing the custom shows",
1372
+ past: () => "Edited the custom shows"
1373
+ },
1363
1374
  update_presentation_properties: {
1364
1375
  icon: "tool",
1365
1376
  present: () => "Updating the slideshow settings",