pptx-svelte-viewer 2.13.2 → 2.14.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.
- package/CHANGELOG.md +2 -0
- package/dist/AiChatPanel-CxiPgWT5.js +1269 -0
- package/dist/{export-Oh-2dcFv.js → export-XXVZWCfW.js} +35610 -28444
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +44 -2
- package/dist/index.js +17 -17
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{translator-DqUAMimH.js → translator-CUlfH48o.js} +73 -2
- package/dist/viewer/ai/ai-chat-history.svelte.d.ts +32 -0
- package/dist/viewer/ai/ai-chat-history.svelte.d.ts.map +1 -0
- package/dist/viewer/ai/chat.svelte.d.ts +2 -0
- package/dist/viewer/ai/chat.svelte.d.ts.map +1 -1
- package/dist/viewer/collab/collaboration-presence.svelte.d.ts.map +1 -1
- package/dist/viewer/components/props-elements.d.ts +9 -0
- package/dist/viewer/components/props-elements.d.ts.map +1 -1
- package/dist/viewer/components/props-stage.d.ts +14 -1
- package/dist/viewer/components/props-stage.d.ts.map +1 -1
- package/dist/viewer/components/viewer-body-props.d.ts +9 -3
- package/dist/viewer/components/viewer-body-props.d.ts.map +1 -1
- package/dist/viewer/editor/editor-insert-chart.d.ts +7 -3
- package/dist/viewer/editor/editor-insert-chart.d.ts.map +1 -1
- package/dist/viewer/editor/editor-slide-ops.d.ts +11 -0
- package/dist/viewer/editor/editor-slide-ops.d.ts.map +1 -1
- package/dist/viewer/editor/editor-slides-controller.d.ts +10 -0
- package/dist/viewer/editor/editor-slides-controller.d.ts.map +1 -1
- package/dist/viewer/export/export-controller.svelte.d.ts +11 -1
- package/dist/viewer/export/export-controller.svelte.d.ts.map +1 -1
- package/dist/viewer/export/export-ui.svelte.d.ts +5 -0
- package/dist/viewer/export/export-ui.svelte.d.ts.map +1 -1
- package/dist/viewer/export/export-wiring.svelte.d.ts +5 -1
- package/dist/viewer/export/export-wiring.svelte.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +103 -4
- package/dist/viewer/index.js +15 -15
- package/dist/viewer/render/chart-view.d.ts +8 -2
- package/dist/viewer/render/chart-view.d.ts.map +1 -1
- package/dist/viewer/state/create-viewer-state-export-notes.svelte.d.ts +2 -0
- package/dist/viewer/state/create-viewer-state-export-notes.svelte.d.ts.map +1 -1
- package/dist/viewer/state/create-viewer-state.svelte.d.ts.map +1 -1
- package/dist/viewer/state/deck-export-data.d.ts +11 -0
- package/dist/viewer/state/deck-export-data.d.ts.map +1 -0
- package/dist/viewer/state/render-context.d.ts +10 -1
- package/dist/viewer/state/render-context.d.ts.map +1 -1
- package/dist/viewer/state/viewer-state.svelte.d.ts +4 -2
- package/dist/viewer/state/viewer-state.svelte.d.ts.map +1 -1
- package/dist/viewer/state/viewer-store.svelte.d.ts +12 -0
- package/dist/viewer/state/viewer-store.svelte.d.ts.map +1 -0
- package/dist/viewer/style/element-style.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/AiChatPanel-DhIVPoPf.js +0 -1109
- package/dist/viewer/ai/ai-chat-persistence.svelte.d.ts +0 -23
- package/dist/viewer/ai/ai-chat-persistence.svelte.d.ts.map +0 -1
- package/dist/viewer/ai/ai-history-persist.d.ts +0 -13
- package/dist/viewer/ai/ai-history-persist.d.ts.map +0 -1
|
@@ -618,6 +618,7 @@ var n = {
|
|
|
618
618
|
"pptx.presentation.pen": "Pen",
|
|
619
619
|
"pptx.presentation.highlighter": "Highlighter",
|
|
620
620
|
"pptx.presentation.eraser": "Eraser",
|
|
621
|
+
"pptx.presentation.blackboard": "Blackboard",
|
|
621
622
|
"pptx.presentation.laserPointer": "Laser Pointer",
|
|
622
623
|
"pptx.presentation.endOfSlideShow": "End of slide show, click to exit.",
|
|
623
624
|
"pptx.presentation.pointerTools": "Pointer Options",
|
|
@@ -896,6 +897,10 @@ var n = {
|
|
|
896
897
|
"pptx.zoom.sectionZoom": "Section Zoom",
|
|
897
898
|
"pptx.zoom.ariaLabel": "Zoom to slide {{number}}",
|
|
898
899
|
"pptx.zoom.ariaLabelSection": "Zoom to slide {{number}} (section: {{section}})",
|
|
900
|
+
"pptx.zoom.summaryZoom": "Summary Zoom",
|
|
901
|
+
"pptx.zoom.slideNumber": "Slide {{number}}",
|
|
902
|
+
"pptx.zoom.ariaLabelSummary": "Summary Zoom with {{count}} sections",
|
|
903
|
+
"pptx.zoom.ariaLabelSummaryTile": "Zoom to section {{section}}, slide {{number}}",
|
|
899
904
|
"pptx.canvas.slide": "Slide",
|
|
900
905
|
"pptx.themes.gallery.title": "Themes",
|
|
901
906
|
"pptx.themes.gallery.description": "Pick a built-in theme to recolour every slide in the deck.",
|
|
@@ -1100,6 +1105,10 @@ var n = {
|
|
|
1100
1105
|
"pptx.media.bookmarkLabel": "Bookmark label",
|
|
1101
1106
|
"pptx.media.addBookmark": "Add bookmark",
|
|
1102
1107
|
"pptx.shape.quickStyles": "Quick Styles",
|
|
1108
|
+
"pptx.shape.quickStyleAccent": "Accent",
|
|
1109
|
+
"pptx.shape.quickStyleSubtle": "Subtle",
|
|
1110
|
+
"pptx.shape.quickStyleOutline": "Outline",
|
|
1111
|
+
"pptx.shape.quickStyleDark": "Dark",
|
|
1103
1112
|
"pptx.slideBackground.colour": "Colour",
|
|
1104
1113
|
"pptx.slideBackground.colourAriaLabel": "Slide background colour",
|
|
1105
1114
|
"pptx.slideBackground.image": "Image",
|
|
@@ -1771,6 +1780,7 @@ Item 3`,
|
|
|
1771
1780
|
"pptx.documentProperties.modified": "Modified",
|
|
1772
1781
|
"pptx.selectionPane.showElement": "Show element",
|
|
1773
1782
|
"pptx.selectionPane.hideElement": "Hide element",
|
|
1783
|
+
"pptx.selectionPane.renameElement": "Rename element",
|
|
1774
1784
|
"pptx.share.activeTitle": "Collaboration active",
|
|
1775
1785
|
"pptx.share.connecting": "Connecting",
|
|
1776
1786
|
"pptx.share.participantSingular": "participant",
|
|
@@ -1895,7 +1905,6 @@ Item 3`,
|
|
|
1895
1905
|
"pptx.ribbon.toggleGridOverlay": "Toggle grid overlay",
|
|
1896
1906
|
"pptx.ribbon.guides": "Guides",
|
|
1897
1907
|
"pptx.ribbon.toggleGuides": "Toggle center guide lines",
|
|
1898
|
-
"pptx.ribbon.toggleSelectionPane": "Show/hide the Selection pane",
|
|
1899
1908
|
"pptx.ribbon.snapToGridTitle": "Snap elements to grid while moving",
|
|
1900
1909
|
"pptx.ribbon.templatesOn": "Templates On",
|
|
1901
1910
|
"pptx.ribbon.templatesOff": "Templates Off",
|
|
@@ -1944,6 +1953,7 @@ Item 3`,
|
|
|
1944
1953
|
"pptx.ribbon.bulletList": "Bullet list",
|
|
1945
1954
|
"pptx.ribbon.justify": "Justify",
|
|
1946
1955
|
"pptx.toolbar.findAndReplace": "Find and replace",
|
|
1956
|
+
"pptx.chart.typeColumn": "Column",
|
|
1947
1957
|
"pptx.chart.typeBar": "Bar",
|
|
1948
1958
|
"pptx.chart.typeLine": "Line",
|
|
1949
1959
|
"pptx.chart.typePie": "Pie",
|
|
@@ -2205,6 +2215,59 @@ Item 3`,
|
|
|
2205
2215
|
"pptx.headerFooter.updateAutomatically": "Update automatically",
|
|
2206
2216
|
"pptx.home.chooseLayout": "Choose layout",
|
|
2207
2217
|
"pptx.home.newSlide": "New Slide",
|
|
2218
|
+
"pptx.home.slideTemplates": "Slide Templates",
|
|
2219
|
+
"pptx.slideTemplates.galleryTitle": "Slide Templates",
|
|
2220
|
+
"pptx.slideTemplates.galleryDescription": "Pick a starter slide; it inherits the deck theme.",
|
|
2221
|
+
"pptx.slideTemplates.gallery": "Slide template gallery",
|
|
2222
|
+
"pptx.slideTemplates.close": "Close",
|
|
2223
|
+
"pptx.slideTemplates.cancel": "Cancel",
|
|
2224
|
+
"pptx.slideTemplates.insert": "Insert",
|
|
2225
|
+
"pptx.undoAction.insertTemplateSlide": "Insert slide from template",
|
|
2226
|
+
"pptx.slideTemplates.title.name": "Title Slide",
|
|
2227
|
+
"pptx.slideTemplates.title.description": "Large title with subtitle and accent bar",
|
|
2228
|
+
"pptx.slideTemplates.titleAndContent.name": "Title and Content",
|
|
2229
|
+
"pptx.slideTemplates.titleAndContent.description": "Heading with a bulleted content area",
|
|
2230
|
+
"pptx.slideTemplates.sectionHeader.name": "Section Header",
|
|
2231
|
+
"pptx.slideTemplates.sectionHeader.description": "Accent side panel with section number and title",
|
|
2232
|
+
"pptx.slideTemplates.agenda.name": "Agenda",
|
|
2233
|
+
"pptx.slideTemplates.agenda.description": "Numbered agenda rows with dividers",
|
|
2234
|
+
"pptx.slideTemplates.twoContent.name": "Two Content",
|
|
2235
|
+
"pptx.slideTemplates.twoContent.description": "Heading with two side-by-side content panels",
|
|
2236
|
+
"pptx.slideTemplates.comparison.name": "Comparison",
|
|
2237
|
+
"pptx.slideTemplates.comparison.description": "Two headed columns for contrasting options",
|
|
2238
|
+
"pptx.slideTemplates.quote.name": "Quote",
|
|
2239
|
+
"pptx.slideTemplates.quote.description": "Centred quotation with attribution",
|
|
2240
|
+
"pptx.slideTemplates.timeline.name": "Timeline",
|
|
2241
|
+
"pptx.slideTemplates.timeline.description": "Horizontal timeline with four milestones",
|
|
2242
|
+
"pptx.slideTemplates.keyMetrics.name": "Key Metrics",
|
|
2243
|
+
"pptx.slideTemplates.keyMetrics.description": "Three stat tiles with big numbers",
|
|
2244
|
+
"pptx.slideTemplates.titleOnly.name": "Title Only",
|
|
2245
|
+
"pptx.slideTemplates.titleOnly.description": "Just a heading, room for anything below",
|
|
2246
|
+
"pptx.slideTemplates.blank.name": "Blank",
|
|
2247
|
+
"pptx.slideTemplates.blank.description": "An empty slide",
|
|
2248
|
+
"pptx.slideTemplates.closing.name": "Closing",
|
|
2249
|
+
"pptx.slideTemplates.closing.description": "Thank-you slide with contact line",
|
|
2250
|
+
"pptx.slideTemplates.content.presentationTitle": "Presentation Title",
|
|
2251
|
+
"pptx.slideTemplates.content.presentationSubtitle": "Subtitle or speaker name",
|
|
2252
|
+
"pptx.slideTemplates.content.slideTitle": "Slide Title",
|
|
2253
|
+
"pptx.slideTemplates.content.point1": "First key point",
|
|
2254
|
+
"pptx.slideTemplates.content.point2": "Second key point",
|
|
2255
|
+
"pptx.slideTemplates.content.point3": "Third key point",
|
|
2256
|
+
"pptx.slideTemplates.content.sectionTitle": "Section Title",
|
|
2257
|
+
"pptx.slideTemplates.content.sectionCaption": "A short introduction to this section",
|
|
2258
|
+
"pptx.slideTemplates.content.agendaTitle": "Agenda",
|
|
2259
|
+
"pptx.slideTemplates.content.agendaItem": "Agenda item",
|
|
2260
|
+
"pptx.slideTemplates.content.leftContent": "First content area",
|
|
2261
|
+
"pptx.slideTemplates.content.rightContent": "Second content area",
|
|
2262
|
+
"pptx.slideTemplates.content.optionA": "Option A",
|
|
2263
|
+
"pptx.slideTemplates.content.optionB": "Option B",
|
|
2264
|
+
"pptx.slideTemplates.content.quoteText": "A memorable quote that captures the message of this presentation.",
|
|
2265
|
+
"pptx.slideTemplates.content.quoteAttribution": "Speaker Name, Role",
|
|
2266
|
+
"pptx.slideTemplates.content.milestoneStep": "Step",
|
|
2267
|
+
"pptx.slideTemplates.content.milestoneCaption": "What happens at this milestone",
|
|
2268
|
+
"pptx.slideTemplates.content.metricCaption": "What this metric measures",
|
|
2269
|
+
"pptx.slideTemplates.content.thankYou": "Thank You",
|
|
2270
|
+
"pptx.slideTemplates.content.contactLine": "Questions? Reach out any time.",
|
|
2208
2271
|
"pptx.hyperlink.linkTo": "Link to",
|
|
2209
2272
|
"pptx.hyperlink.urlPlaceholder": "https://example.com",
|
|
2210
2273
|
"pptx.insert.addShape": "Add shape",
|
|
@@ -2605,7 +2668,6 @@ Item 3`,
|
|
|
2605
2668
|
"pptx.paragraph.rightToLeft": "Right to Left",
|
|
2606
2669
|
"pptx.paragraph.textDirection": "Text Direction",
|
|
2607
2670
|
"pptx.print.handoutPerPageTitle": "Handout {{count}} per page",
|
|
2608
|
-
"pptx.resizeHandles.rotateAria": "Rotate",
|
|
2609
2671
|
"pptx.ribbon.columns1": "1 Column",
|
|
2610
2672
|
"pptx.ribbon.columns2": "2 Columns",
|
|
2611
2673
|
"pptx.ribbon.columns3": "3 Columns",
|
|
@@ -3193,6 +3255,8 @@ Item 3`,
|
|
|
3193
3255
|
"pptx.backstage.card.video.body": "Export slide timings and animations as WebM.",
|
|
3194
3256
|
"pptx.backstage.card.gif.title": "Create an Animated GIF",
|
|
3195
3257
|
"pptx.backstage.card.gif.body": "Make a compact looping preview.",
|
|
3258
|
+
"pptx.backstage.card.json.title": "Export as JSON",
|
|
3259
|
+
"pptx.backstage.card.json.body": "Save a portable JSON document that re-imports with full fidelity.",
|
|
3196
3260
|
"pptx.backstage.card.copyImage.title": "Copy as Image",
|
|
3197
3261
|
"pptx.backstage.card.copyImage.body": "Copy the current slide to the clipboard.",
|
|
3198
3262
|
"pptx.backstage.card.print.title": "Print Presentation",
|
|
@@ -3213,6 +3277,12 @@ Item 3`,
|
|
|
3213
3277
|
"pptx.themeColor.accent6": "Accent 6",
|
|
3214
3278
|
"pptx.themeColor.hyperlink": "Hyperlink",
|
|
3215
3279
|
"pptx.themeColor.followedHyperlink": "Followed Hyperlink",
|
|
3280
|
+
"pptx.themeColor.tintBase": "Base",
|
|
3281
|
+
"pptx.themeColor.tintLighter80": "Lighter 80%",
|
|
3282
|
+
"pptx.themeColor.tintLighter60": "Lighter 60%",
|
|
3283
|
+
"pptx.themeColor.tintLighter40": "Lighter 40%",
|
|
3284
|
+
"pptx.themeColor.tintDarker25": "Darker 25%",
|
|
3285
|
+
"pptx.themeColor.tintDarker50": "Darker 50%",
|
|
3216
3286
|
"pptx.smartart.schemeColorful1": "Colourful 1",
|
|
3217
3287
|
"pptx.smartart.schemeColorful2": "Colourful 2",
|
|
3218
3288
|
"pptx.smartart.schemeColorful3": "Colourful 3",
|
|
@@ -3243,6 +3313,7 @@ Item 3`,
|
|
|
3243
3313
|
"pptx.chart.typeBoxWhisker": "Box and Whisker",
|
|
3244
3314
|
"pptx.chart.typeRegionMap": "Filled Map",
|
|
3245
3315
|
"pptx.chart.typeUnknown": "Unknown",
|
|
3316
|
+
"pptx.chart.placeholderLabel": "Chart: {{type}}",
|
|
3246
3317
|
"pptx.chart.groupingStandard": "Standard",
|
|
3247
3318
|
"pptx.chart.seriesAxis": "Series axis",
|
|
3248
3319
|
"pptx.chart.labelPosAbove": "Above",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PptxAiBridge, PptxAiChatStore, PptxAiChatSummary, PptxAiUIMessage } from 'pptx-viewer-shared/ai';
|
|
2
|
+
export interface AiChatHistoryDeps {
|
|
3
|
+
bridge: PptxAiBridge;
|
|
4
|
+
/** The live transcript (read reactively by the auto-save effect). */
|
|
5
|
+
getMessages(): PptxAiUIMessage[];
|
|
6
|
+
/** Replace the transcript in the chat engine (resume / new chat / clear). */
|
|
7
|
+
setMessages(messages: PptxAiUIMessage[]): void;
|
|
8
|
+
/** Title used until the transcript has enough text to derive one from. */
|
|
9
|
+
getUntitledLabel(): string;
|
|
10
|
+
/** Injectable for tests; defaults to the shared IndexedDB-first store. */
|
|
11
|
+
store?: PptxAiChatStore;
|
|
12
|
+
}
|
|
13
|
+
export interface AiChatHistory {
|
|
14
|
+
/** Saved chats for this deck, newest first (reactive). */
|
|
15
|
+
readonly chats: PptxAiChatSummary[];
|
|
16
|
+
/** Id the running transcript is (or will be) saved under (reactive). */
|
|
17
|
+
readonly activeChatId: string;
|
|
18
|
+
newChat(): void;
|
|
19
|
+
resumeChat(id: string): Promise<void>;
|
|
20
|
+
deleteChat(id: string): Promise<void>;
|
|
21
|
+
clearCurrent(): void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Chat history for the Svelte AI panel: a runes wrapper over the shared
|
|
25
|
+
* framework-free `createAiChatHistoryController`. Debounce-saves the running
|
|
26
|
+
* transcript under a per-deck id, lists prior chats, and swaps the active
|
|
27
|
+
* transcript on resume / new chat / delete (via `deps.setMessages`).
|
|
28
|
+
*
|
|
29
|
+
* Registers `$effect`s, so it must be called during component initialization.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useAiChatHistory(deps: AiChatHistoryDeps): AiChatHistory;
|
|
32
|
+
//# sourceMappingURL=ai-chat-history.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-chat-history.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/ai/ai-chat-history.svelte.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,YAAY,CAAC;IACrB,qEAAqE;IACrE,WAAW,IAAI,eAAe,EAAE,CAAC;IACjC,6EAA6E;IAC7E,WAAW,CAAC,QAAQ,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAC/C,0EAA0E;IAC1E,gBAAgB,IAAI,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,KAAK,CAAC,EAAE,eAAe,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC7B,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,iBAAiB,EAAE,CAAC;IACpC,wEAAwE;IACxE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,OAAO,IAAI,IAAI,CAAC;IAChB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,YAAY,IAAI,IAAI,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG,aAAa,CAoDvE"}
|
|
@@ -34,6 +34,8 @@ export declare class SvelteAiChat {
|
|
|
34
34
|
init(): Promise<void>;
|
|
35
35
|
send(text: string): void;
|
|
36
36
|
stop(): void;
|
|
37
|
+
/** Replace the whole transcript (chat-history resume / new chat). */
|
|
38
|
+
setMessages(messages: PptxAiUIMessage[]): void;
|
|
37
39
|
clearError(): void;
|
|
38
40
|
refreshProposals(): void;
|
|
39
41
|
applyProposal(id: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/ai/chat.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAErC,OAAO,KAAK,EACX,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,MAAM,uBAAuB,CAAC;AAE/B,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC;AAkB7E,oEAAoE;AACpE,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACxC,gEAAgE;IAChE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC3F;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;CACzD;AAED,qBAAa,YAAY;;IACxB,SAAS,kBAAuC;IAChD,SAAS,oBAAwC;IACjD,yEAAyE;IACzE,SAAS,iBAA8B;gBAQ3B,IAAI,EAAE,gBAAgB;IAIlC,IAAI,QAAQ,IAAI,eAAe,EAAE,CAEhC;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,KAAK,IAAI,KAAK,GAAG,SAAS,CAE7B;IAED,IAAI,WAAW,I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Y;;IACxB,SAAS,kBAAuC;IAChD,SAAS,oBAAwC;IACjD,yEAAyE;IACzE,SAAS,iBAA8B;gBAQ3B,IAAI,EAAE,gBAAgB;IAIlC,IAAI,QAAQ,IAAI,eAAe,EAAE,CAEhC;IAED,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,IAAI,KAAK,IAAI,KAAK,GAAG,SAAS,CAE7B;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,0EAA0E;IAC1E,IAAI,OAAO,IAAI,iBAAiB,GAAG,SAAS,CAE3C;IAED,kFAAkF;IAC5E,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAmD3B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAQxB,IAAI,IAAI,IAAI;IAIZ,qEAAqE;IACrE,WAAW,CAAC,QAAQ,EAAE,eAAe,EAAE,GAAG,IAAI;IAM9C,UAAU,IAAI,IAAI;IAIlB,gBAAgB,IAAI,IAAI;IAIxB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAK/B,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKhC,kBAAkB,IAAI,IAAI;CAI1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration-presence.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/collab/collaboration-presence.svelte.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"collaboration-presence.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/collab/collaboration-presence.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EACX,aAAa,EACb,gBAAgB,EAEhB,YAAY,EACZ,iBAAiB,EACjB,MAAM,oBAAoB,CAAC;AAa5B,qBAAa,qBAAqB;;IACjC,OAAO,iBAA8B;IACrC,eAAe,sBAAmC;IAClD,gBAAgB,gBAA+B;gBAWnC,aAAa,EAAE,MAAM;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAIpE,sGAAsG;IACtG,KAAK,CAAC,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAWjE,6DAA6D;IAC7D,IAAI,IAAI,IAAI;IAkBZ,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,GAAE,MAA+B,GAAG,IAAI;IAKxF,YAAY,CACX,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,gBAAgB,GAAE,MAA+B,GAC/C,IAAI;IAKP,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMnC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;CA6BzC"}
|
|
@@ -29,6 +29,15 @@ export interface ElementRendererProps {
|
|
|
29
29
|
* Defaults to `false`.
|
|
30
30
|
*/
|
|
31
31
|
interactive?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Emit the `data-pptx-element` marker even though `interactive` is off.
|
|
34
|
+
* The dispatcher sets this for interaction-locked template (master/layout)
|
|
35
|
+
* elements on the main canvas: they are still rendered slide elements as far
|
|
36
|
+
* as the contract is concerned (the marker means "carries the element
|
|
37
|
+
* contract", not "editable right now"), matching the other four bindings.
|
|
38
|
+
* Defaults to `false`.
|
|
39
|
+
*/
|
|
40
|
+
marked?: boolean;
|
|
32
41
|
/** Whether inherited layout/master nodes participate in pointer editing. */
|
|
33
42
|
editTemplateMode?: boolean;
|
|
34
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props-elements.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/props-elements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjF;;;;;GAKG;AAEH,oDAAoD;AACpD,MAAM,WAAW,oBAAoB;IACpC,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,iBAAiB,CAAC,EAAE,CACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,KACR,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjF,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/E;AAED,MAAM,WAAW,cAAc;IAC9B,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,wDAAwD;IACxD,SAAS,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;CAClE"}
|
|
1
|
+
{"version":3,"file":"props-elements.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/props-elements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;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
|
1
|
-
import { PptxSlide } from 'pptx-viewer-core';
|
|
1
|
+
import { PptxComment, PptxSlide } from 'pptx-viewer-core';
|
|
2
2
|
import { CanvasSize } from 'pptx-viewer-shared';
|
|
3
3
|
/**
|
|
4
4
|
* Prop contracts for the slide surfaces: the pure `SlideStage` (used by the
|
|
@@ -35,6 +35,15 @@ export interface SlideStageProps {
|
|
|
35
35
|
ontablecellcommit?: (elementId: string, rowIndex: number, cellIndex: number, text: string) => void;
|
|
36
36
|
onsmartartnodecommit?: (elementId: string, nodeId: string, text: string) => void;
|
|
37
37
|
onsmartartnodefill?: (elementId: string, nodeId: string, fill: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Comments drawn as numbered marker dots INSIDE the stage (the
|
|
40
|
+
* `aria-roledescription="slide"` region, the framework-neutral e2e hook).
|
|
41
|
+
* The host passes the active slide's comments only while it is editable
|
|
42
|
+
* (Vue's visibility semantics), so thumbnails and the show stay clean.
|
|
43
|
+
*/
|
|
44
|
+
comments?: readonly PptxComment[];
|
|
45
|
+
/** A marker dot was clicked; the host brings its comments UI on screen. */
|
|
46
|
+
oncommentmarkerclick?: (commentId: string) => void;
|
|
38
47
|
}
|
|
39
48
|
export interface SlideCanvasProps {
|
|
40
49
|
slide: PptxSlide | undefined;
|
|
@@ -50,6 +59,10 @@ export interface SlideCanvasProps {
|
|
|
50
59
|
ontablecellcommit?: (elementId: string, rowIndex: number, cellIndex: number, text: string) => void;
|
|
51
60
|
onsmartartnodecommit?: (elementId: string, nodeId: string, text: string) => void;
|
|
52
61
|
onsmartartnodefill?: (elementId: string, nodeId: string, fill: string) => void;
|
|
62
|
+
/** Passed through to `SlideStage`; see {@link SlideStageProps.comments}. */
|
|
63
|
+
comments?: readonly PptxComment[];
|
|
64
|
+
/** Passed through to `SlideStage`; see {@link SlideStageProps.oncommentmarkerclick}. */
|
|
65
|
+
oncommentmarkerclick?: (commentId: string) => void;
|
|
53
66
|
/** Reports the stage-holder node to the host on mount/teardown (editing hit-surface, export capture anchor). */
|
|
54
67
|
onstageholder?: (el: HTMLDivElement | null) => void;
|
|
55
68
|
onstagepointerdown?: (event: PointerEvent) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props-stage.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/props-stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"props-stage.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/props-stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;GAMG;AAEH,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;;OAQG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,CACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,KACR,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjF,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI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AC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACnD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACjD,sFAAsF;IACtF,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,QAAQ,EAAE,OAAO,CAAC;CACpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PptxHandler, PptxSlide, PptxTheme, TextSegment } from 'pptx-viewer-core';
|
|
2
|
-
import { CanvasSize, RemoteCursor, RulerUnit, SanitizedPresence } from 'pptx-viewer-shared';
|
|
2
|
+
import { CanvasSize, PresentationBlackout, RemoteCursor, RulerUnit, SanitizedPresence } from 'pptx-viewer-shared';
|
|
3
3
|
import { AiChangeBatch } from 'pptx-viewer-shared/ai';
|
|
4
4
|
import { Translator } from '../../i18n/translator';
|
|
5
5
|
import { AiCanvasHighlight } from '../ai/ai-panel-controller.svelte';
|
|
@@ -55,6 +55,12 @@ export interface ViewerBodyProps {
|
|
|
55
55
|
*/
|
|
56
56
|
onAdvance: (event: MouseEvent) => void;
|
|
57
57
|
editingActive: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Presenter blackout state, mirrored from the presenter session's snapshot.
|
|
60
|
+
* The annotation overlay reads it to raise the ink above the blank sheet
|
|
61
|
+
* (shared `annotationOverlayZIndex`), so blackboard strokes stay visible.
|
|
62
|
+
*/
|
|
63
|
+
blackout?: PresentationBlackout;
|
|
58
64
|
controller: EditorController;
|
|
59
65
|
onstageresize: (width: number, height: number) => void;
|
|
60
66
|
onstageholder: (el: HTMLDivElement | null) => void;
|
|
@@ -101,13 +107,13 @@ export interface ViewerBodyProps {
|
|
|
101
107
|
* about the slide surface itself, none of the surrounding chrome (thumbnail
|
|
102
108
|
* rail, notes panel, inspector).
|
|
103
109
|
*/
|
|
104
|
-
export type ViewerStageProps = Pick<ViewerBodyProps, 't' | 'editor' | 'controller' | 'canvasSize' | 'mediaDataUrls' | 'current' | 'loading' | 'isEncrypted' | 'error' | 'activeSlide' | 'scale' | 'presenting' | 'presentationTransition' | 'onTransitionDone' | 'onAdvance' | 'editingActive' | 'onstageholder' | 'collabCursors' | 'collabPresences' | 'contextMenu' | 'onContextMenuClose' | 'annotations' | 'guides' | 'onchangeguide' | 'onaddguide' | 'showRulers' | 'rulerUnit' | 'spellCheck' | 'chromeUi' | 'aiPickMode' | 'aiActive' | 'aiHighlights' | 'aiChangeBatch' | 'onaipickelement' | 'onaskai' | 'onfixai'>;
|
|
110
|
+
export type ViewerStageProps = Pick<ViewerBodyProps, 't' | 'editor' | 'controller' | 'canvasSize' | 'mediaDataUrls' | 'current' | 'loading' | 'isEncrypted' | 'error' | 'activeSlide' | 'scale' | 'presenting' | 'presentationTransition' | 'onTransitionDone' | 'onAdvance' | 'editingActive' | 'blackout' | 'onstageholder' | 'collabCursors' | 'collabPresences' | 'contextMenu' | 'onContextMenuClose' | 'annotations' | 'guides' | 'onchangeguide' | 'onaddguide' | 'showRulers' | 'rulerUnit' | 'spellCheck' | 'chromeUi' | 'aiPickMode' | 'aiActive' | 'aiHighlights' | 'aiChangeBatch' | 'onaipickelement' | 'onaskai' | 'onfixai'>;
|
|
105
111
|
/**
|
|
106
112
|
* The overlay stack painted inside the scaled stage. Every member is authored
|
|
107
113
|
* in unscaled slide coordinates, so they all take `scale`/`canvasSize` rather
|
|
108
114
|
* than positioning themselves off the DOM.
|
|
109
115
|
*/
|
|
110
|
-
export type SlideOverlaysProps = Pick<ViewerStageProps, 'editor' | 'controller' | 'canvasSize' | 'mediaDataUrls' | 'current' | 'activeSlide' | 'scale' | 'presenting' | 'presentationTransition' | 'onTransitionDone' | 'editingActive' | 'collabCursors' | 'collabPresences' | 'annotations' | 'guides' | 'onchangeguide' | 'spellCheck' | 'aiHighlights' | 'aiChangeBatch'>;
|
|
116
|
+
export type SlideOverlaysProps = Pick<ViewerStageProps, 'editor' | 'controller' | 'canvasSize' | 'mediaDataUrls' | 'current' | 'activeSlide' | 'scale' | 'presenting' | 'presentationTransition' | 'onTransitionDone' | 'editingActive' | 'blackout' | 'collabCursors' | 'collabPresences' | 'annotations' | 'guides' | 'onchangeguide' | 'spellCheck' | 'aiHighlights' | 'aiChangeBatch'>;
|
|
111
117
|
/** Props of the horizontal + vertical ruler strips drawn around the stage. */
|
|
112
118
|
export interface RulerStripsProps {
|
|
113
119
|
/** Slide dimensions in unscaled CSS px. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-body-props.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/viewer-body-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"viewer-body-props.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/viewer-body-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,KAAK,EACX,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KA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AG,IAAI,CACpC,gBAAgB,EACd,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,SAAS,GACT,aAAa,GACb,OAAO,GACP,YAAY,GACZ,wBAAwB,GACxB,kBAAkB,GAClB,eAAe,GACf,UAAU,GACV,eAAe,GACf,iBAAiB,GACjB,aAAa,GACb,QAAQ,GACR,eAAe,GACf,YAAY,GACZ,cAAc,GACd,eAAe,CACjB,CAAC;AAEF,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAChC,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAC;IACvB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,kEAAkE;IAClE,cAAc,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAChF,6EAA6E;IAC7E,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5D"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { PptxChartType, PptxElement } from 'pptx-viewer-core';
|
|
2
|
-
import { CanvasSize } from 'pptx-viewer-shared';
|
|
2
|
+
import { CanvasSize, InsertChartKind } from 'pptx-viewer-shared';
|
|
3
3
|
/**
|
|
4
4
|
* Pure factory for the Insert > Chart action: wraps the shared
|
|
5
5
|
* `createDefaultChartElement` (fully-populated sample data, ready to render)
|
|
6
6
|
* and centres the result on the slide canvas.
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Build a new, centred chart element for the given insert-dropdown entry.
|
|
10
|
+
* `'column'` yields vertical columns, `'bar'` horizontal bars; a raw
|
|
11
|
+
* `PptxChartType` is still accepted for API callers.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildChartInsertElement(chartKind: InsertChartKind | PptxChartType, canvasSize: CanvasSize): PptxElement;
|
|
10
14
|
//# sourceMappingURL=editor-insert-chart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-insert-chart.d.ts","sourceRoot":"","sources":["../../../src/viewer/editor/editor-insert-chart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"editor-insert-chart.d.ts","sourceRoot":"","sources":["../../../src/viewer/editor/editor-insert-chart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKtE;;;;GAIG;AAEH;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,SAAS,EAAE,eAAe,GAAG,aAAa,EAC1C,UAAU,EAAE,UAAU,GACpB,WAAW,CAIb"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { PptxSlide } from 'pptx-viewer-core';
|
|
2
|
+
import { SlideTemplateBuildOptions, SlideTemplateId } from 'pptx-viewer-shared';
|
|
2
3
|
/** Insert a new blank slide immediately after `afterIndex`. Returns its index. */
|
|
3
4
|
export declare function insertBlankSlideAfter(slides: readonly PptxSlide[], afterIndex: number): {
|
|
4
5
|
slides: PptxSlide[];
|
|
5
6
|
newIndex: number;
|
|
6
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Insert a pre-designed template slide immediately after `afterIndex`.
|
|
10
|
+
* The slide content comes from the shared catalogue (`buildSlideTemplateSlide`),
|
|
11
|
+
* so what the gallery previews is exactly what lands in the deck. Pass the
|
|
12
|
+
* deck's scheme/canvas size in `options` so the new slide inherits the theme.
|
|
13
|
+
*/
|
|
14
|
+
export declare function insertTemplateSlideAfter(slides: readonly PptxSlide[], afterIndex: number, templateId: SlideTemplateId, options?: SlideTemplateBuildOptions): {
|
|
15
|
+
slides: PptxSlide[];
|
|
16
|
+
newIndex: number;
|
|
17
|
+
};
|
|
7
18
|
/** Duplicate the slide at `index` (fresh slide + element ids). Returns the new index. */
|
|
8
19
|
export declare function duplicateSlideAt(slides: readonly PptxSlide[], index: number): {
|
|
9
20
|
slides: PptxSlide[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-slide-ops.d.ts","sourceRoot":"","sources":["../../../src/viewer/editor/editor-slide-ops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"editor-slide-ops.d.ts","sourceRoot":"","sources":["../../../src/viewer/editor/editor-slide-ops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,KAAK,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAgBrF,kFAAkF;AAClF,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,UAAU,EAAE,MAAM,GAChB;IAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAK3C;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yBAA8B,GACrC;IAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAS3C;AAED,yFAAyF;AACzF,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,KAAK,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAUlD;AAED,uGAAuG;AACvG,wBAAgB,aAAa,CAC5B,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,KAAK,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAMlD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACxB,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACb,SAAS,EAAE,GAAG,IAAI,CAcpB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PptxLayoutOption } from 'pptx-viewer-core';
|
|
2
|
+
import { SlideTemplateBuildOptions, SlideTemplateId } from 'pptx-viewer-shared';
|
|
2
3
|
import { EditorState } from './editor-state.svelte';
|
|
3
4
|
/**
|
|
4
5
|
* The Home tab's Slides group (new / duplicate / delete slide), split out of
|
|
@@ -13,6 +14,15 @@ export declare class EditorSlidesController {
|
|
|
13
14
|
constructor(editor: EditorState);
|
|
14
15
|
/** Insert a blank slide after the current one. Returns its new index, or null when not editable. */
|
|
15
16
|
insertSlideAfterCurrent(): number | null;
|
|
17
|
+
/**
|
|
18
|
+
* Insert a shared-catalogue template slide after the current one, as one
|
|
19
|
+
* undoable step (Home > Slide Templates gallery). The caller (the gallery
|
|
20
|
+
* launcher, which can read the render context) passes the deck's scheme and
|
|
21
|
+
* canvas size in `options` so the slide inherits the theme; without them
|
|
22
|
+
* the shared builder falls back to the Office default scheme at 1280x720.
|
|
23
|
+
* Returns the new index, or null when not editable.
|
|
24
|
+
*/
|
|
25
|
+
insertSlideFromTemplate(templateId: SlideTemplateId, options?: SlideTemplateBuildOptions): number | null;
|
|
16
26
|
/** Duplicate the current slide. Returns its new index, or null when not editable. */
|
|
17
27
|
duplicateCurrentSlide(): number | null;
|
|
18
28
|
/** Delete the current slide. Returns the new active index, or null (not editable / only slide). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-slides-controller.d.ts","sourceRoot":"","sources":["../../../src/viewer/editor/editor-slides-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"editor-slides-controller.d.ts","sourceRoot":"","sources":["../../../src/viewer/editor/editor-slides-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AASrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;;;;GAOG;AACH,qBAAa,sBAAsB;;gBAGtB,MAAM,EAAE,WAAW;IAI/B,oGAAoG;IACpG,uBAAuB,IAAI,MAAM,GAAG,IAAI;IAYxC;;;;;;;OAOG;IACH,uBAAuB,CACtB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,yBAA8B,GACrC,MAAM,GAAG,IAAI;IAchB,qFAAqF;IACrF,qBAAqB,IAAI,MAAM,GAAG,IAAI;IAkBtC,mGAAmG;IACnG,kBAAkB,IAAI,MAAM,GAAG,IAAI;IAiBnC;;;;OAIG;IACG,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAQrD,gGAAgG;IAC1F,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgB7D;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAQ1C,uFAAuF;IACvF,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAY5D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PptxSlide } from 'pptx-viewer-core';
|
|
1
|
+
import { PptxData, PptxSlide } from 'pptx-viewer-core';
|
|
2
2
|
import { CanvasSize } from 'pptx-viewer-shared';
|
|
3
3
|
import { ExportGifOptions } from './export-gif';
|
|
4
4
|
import { OpenPrintWindow, PrintOptions } from './export-print';
|
|
@@ -29,6 +29,10 @@ export interface ExportControllerDeps {
|
|
|
29
29
|
openPrintWindow?: OpenPrintWindow;
|
|
30
30
|
/** Base file name (without extension) for downloads. Defaults to `presentation`. */
|
|
31
31
|
fileName?: string;
|
|
32
|
+
/** Live presentation data for the deck-JSON export; undefined before a load. */
|
|
33
|
+
getDeckData?(): PptxData | undefined;
|
|
34
|
+
/** Source file name for the deck-JSON download (`deck.pptx` -> `deck.json`). */
|
|
35
|
+
getFileName?(): string | undefined;
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
34
38
|
* Export controller (runes class): render slides to PNG / PDF / animated GIF /
|
|
@@ -54,6 +58,12 @@ export declare class ExportController {
|
|
|
54
58
|
exportSlidePng(index?: number): Promise<void>;
|
|
55
59
|
/** Copy a slide to the system clipboard as a PNG image. */
|
|
56
60
|
copySlideAsImage(index?: number): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Serialize the live deck to `pptx-viewer-json` and trigger the download.
|
|
63
|
+
* Pure data serialization (shared `exportDeckJson`): synchronous, no
|
|
64
|
+
* rasterization pipeline, no progress modal, no `exporting` toggle.
|
|
65
|
+
*/
|
|
66
|
+
exportJson(): void;
|
|
57
67
|
/** Export every slide as a multi-page PDF download (one slide per page). */
|
|
58
68
|
exportPdf(options?: ExportPdfOptions): Promise<void>;
|
|
59
69
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-controller.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/export/export-controller.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,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AAS,CAAC;IACrC,gFAAgF;IAChF,WAAW,CAAC,IAAI,MAAM,GAAG,SAAS,CAAC;CACnC;AAUD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,gBAAgB;;IAC5B,qEAAqE;IACrE,SAAS,UAAiB;gBAId,IAAI,EAAE,oBAAoB;IAItC,8EAA8E;IACxE,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBnD,2DAA2D;IACrD,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyBrD;;;;OAIG;IACH,UAAU,IAAI,IAAI;IAQlB,4EAA4E;IACtE,SAAS,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IA6B9D;;;;OAIG;IACG,SAAS,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB9D;;;;OAIG;IACG,WAAW,CAAC,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBlE;;;;;OAKG;IACG,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;CAoBzD"}
|
|
@@ -37,6 +37,11 @@ export declare class ExportUiState {
|
|
|
37
37
|
get exporting(): boolean;
|
|
38
38
|
/** Export the current slide as PNG (no modal; quick single capture). */
|
|
39
39
|
runPng(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Export the deck as a `pptx-viewer-json` download (no modal; a pure,
|
|
42
|
+
* synchronous serialization with no capture pipeline).
|
|
43
|
+
*/
|
|
44
|
+
runJson(): void;
|
|
40
45
|
/** Copy the current slide to the system image clipboard. */
|
|
41
46
|
runCopyImage(): void;
|
|
42
47
|
/** Run the PDF export with the progress modal wired. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-ui.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/export/export-ui.svelte.ts"],"names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AAEnD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC5B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,aAAa,IAAI,UAAU,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,IAAI,IAAI,CAAC;CACpB;AAED,qBAAa,aAAa;;IACzB,6CAA6C;IAC7C,IAAI,UAAiB;IACrB,4CAA4C;IAC5C,KAAK,SAAc;IACnB,+BAA+B;IAC/B,QAAQ,SAAa;IACrB,qEAAqE;IACrE,MAAM,SAAc;gBAKR,IAAI,EAAE,YAAY;IAI9B,8DAA8D;IAC9D,IAAI,SAAS,IAAI,OAAO,CAEvB;IA4BD,wEAAwE;IACxE,MAAM,IAAI,IAAI;IAOd;;;OAGG;IACH,OAAO,IAAI,IAAI;IASf,4DAA4D;IAC5D,YAAY,IAAI,IAAI;IAOpB,wDAAwD;IAClD,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB7B,iEAAiE;IAC3D,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAmB7B,+DAA+D;IACzD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAuB/B,mEAAmE;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAItC,uEAAuE;IACvE,MAAM,IAAI,IAAI;CAMd"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PptxSlide } from 'pptx-viewer-core';
|
|
1
|
+
import { PptxData, PptxSlide } from 'pptx-viewer-core';
|
|
2
2
|
import { CanvasSize, FieldSubstitutionContext } from 'pptx-viewer-shared';
|
|
3
3
|
import { Translator } from '../../i18n/translator';
|
|
4
4
|
import { ExportController } from './export-controller.svelte';
|
|
@@ -23,6 +23,10 @@ export interface ExportWiringDeps {
|
|
|
23
23
|
* authored placeholder text, as before.
|
|
24
24
|
*/
|
|
25
25
|
getFieldContext?(): FieldSubstitutionContext | undefined;
|
|
26
|
+
/** Live presentation data for the deck-JSON export; undefined before a load. */
|
|
27
|
+
getDeckData?(): PptxData | undefined;
|
|
28
|
+
/** Source file name for the deck-JSON download (`deck.pptx` -> `deck.json`). */
|
|
29
|
+
getFileName?(): string | undefined;
|
|
26
30
|
}
|
|
27
31
|
export interface ExportWiring {
|
|
28
32
|
/** The reactive PNG/PDF export controller (`exporting` drives a spinner). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-wiring.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/export/export-wiring.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"export-wiring.svelte.d.ts","sourceRoot":"","sources":["../../../src/viewer/export/export-wiring.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAI9D,MAAM,WAAW,gBAAgB;IAChC;;;;;OAKG;IACH,YAAY,IAAI,WAAW,GAAG,SAAS,CAAC;IACxC,SAAS,IAAI,SAAS,EAAE,CAAC;IACzB,aAAa,IAAI,UAAU,CAAC;IAC5B,gBAAgB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,UAAU,IAAI,MAAM,CAAC;IACrB,aAAa,IAAI,UAAU,CAAC;IAC5B,aAAa,IAAI,OAAO,CAAC;IACzB;;;;;OAKG;IACH,eAAe,CAAC,IAAI,wBAAwB,GAAG,SAAS,CAAC;IACzD,gFAAgF;IAChF,WAAW,CAAC,IAAI,QAAQ,GAAG,SAAS,CAAC;IACrC,gFAAgF;IAChF,WAAW,CAAC,IAAI,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,WAAW,YAAY;IAC5B,6EAA6E;IAC7E,UAAU,EAAE,gBAAgB,CAAC;IAC7B,kEAAkE;IAClE,OAAO,IAAI,IAAI,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,GAAG,YAAY,CAoCvE"}
|