@lofcz/pptist 2.0.6 → 2.0.8
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/dist/embed/agentic-manifest.json +3 -3
- package/dist/embed/chunks/template_1-Da5v5HdQ.js +7429 -0
- package/dist/embed/chunks/template_2-CXDIr9yV.js +7830 -0
- package/dist/embed/chunks/template_3-B0SGSdw0.js +6439 -0
- package/dist/embed/chunks/template_4-hVVDva6Z.js +7625 -0
- package/dist/embed/chunks/template_5-Cav8q_jj.js +6982 -0
- package/dist/embed/chunks/template_6-_7mlxnAc.js +5216 -0
- package/dist/embed/chunks/template_7-orFwg943.js +5508 -0
- package/dist/embed/chunks/template_8-gRMy0PRC.js +10183 -0
- package/dist/embed/pptist-embed.css +1 -1
- package/dist/embed/pptist-embed.js +20344 -18577
- package/dist/types/components/Tabs.vue.d.ts +1 -0
- package/dist/types/configs/font.d.ts +1 -0
- package/dist/types/configs/starterPresentation.d.ts +28 -0
- package/dist/types/configs/templateAssets.d.ts +1 -0
- package/dist/types/configs/templates.d.ts +20 -0
- package/dist/types/embed/index.d.ts +1 -1
- package/dist/types/embed/types.d.ts +35 -9
- package/dist/types/i18n/i18n-types.d.ts +199 -0
- package/dist/types/store/main.d.ts +8 -0
- package/dist/types/store/slides.d.ts +16 -0
- package/dist/types/types/slides.d.ts +4 -0
- package/dist/types/utils/element.d.ts +4 -0
- package/dist/types/views/components/element/ProsemirrorEditor.vue.d.ts +2 -0
- package/dist/types/views/components/element/TextElement/TextPlaceholder.vue.d.ts +17 -0
- package/package.json +2 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TranslationFunctions } from '../i18n/i18n-types';
|
|
2
|
+
import type { Slide, SlideTheme } from '../types/slides';
|
|
3
|
+
export interface StarterPresentationOptions {
|
|
4
|
+
title?: string;
|
|
5
|
+
titlePlaceholder?: string;
|
|
6
|
+
subtitlePlaceholder?: string;
|
|
7
|
+
bodyPlaceholder?: string;
|
|
8
|
+
/** Title-slide (cover) title size. PowerPoint default ≈ 40. */
|
|
9
|
+
titleFontSize?: number;
|
|
10
|
+
/** Title-slide (cover) subtitle size. PowerPoint default ≈ 20. */
|
|
11
|
+
subtitleFontSize?: number;
|
|
12
|
+
/** Content-slide title size. PowerPoint default ≈ 28. */
|
|
13
|
+
contentTitleFontSize?: number;
|
|
14
|
+
/** Content-slide body (level 1) size. PowerPoint default ≈ 20. */
|
|
15
|
+
bodyFontSize?: number;
|
|
16
|
+
placeholderColor?: string;
|
|
17
|
+
fontName?: string;
|
|
18
|
+
fontColor?: string;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface StarterPresentationDocument {
|
|
22
|
+
title: string;
|
|
23
|
+
slides: Slide[];
|
|
24
|
+
theme?: Partial<SlideTheme>;
|
|
25
|
+
}
|
|
26
|
+
export declare const buildTitleSlide: (LL: TranslationFunctions, options?: StarterPresentationOptions) => Slide;
|
|
27
|
+
export declare const buildContentSlide: (LL: TranslationFunctions, options?: StarterPresentationOptions) => Slide;
|
|
28
|
+
export declare const buildStarterPresentation: (LL: TranslationFunctions, options?: StarterPresentationOptions) => StarterPresentationDocument;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const resolveTemplateAssetUrl: (asset: string) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TranslationFunctions } from '../i18n/i18n-types';
|
|
2
|
+
import type { Slide, SlideTheme } from '../types/slides';
|
|
3
|
+
export type BuiltInTemplateId = 'template_1' | 'template_2' | 'template_3' | 'template_4' | 'template_5' | 'template_6' | 'template_7' | 'template_8';
|
|
4
|
+
export interface TemplatePayload {
|
|
5
|
+
title?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
slides: Slide[];
|
|
9
|
+
theme?: Partial<SlideTheme>;
|
|
10
|
+
}
|
|
11
|
+
export type TemplatePayloadLoader = () => Promise<TemplatePayload | Slide[]>;
|
|
12
|
+
export interface TemplateNormalizationConfig {
|
|
13
|
+
stripFontFamiliesWhenExtrasDisabled: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare const setCustomTemplateLoaders: (loaders?: Record<string, TemplatePayloadLoader>) => void;
|
|
16
|
+
export declare const TEMPLATE_NORMALIZATION_CONFIG: TemplateNormalizationConfig;
|
|
17
|
+
export declare const isBuiltInTemplateId: (id: string) => id is BuiltInTemplateId;
|
|
18
|
+
export declare const loadBuiltInTemplate: (id: string) => Promise<TemplatePayload | null>;
|
|
19
|
+
export declare const loadConfiguredTemplate: (id: string) => Promise<Slide[] | TemplatePayload | null>;
|
|
20
|
+
export declare const normalizeTemplatePayload: (payload: TemplatePayload | Slide[], LL: TranslationFunctions, config?: TemplateNormalizationConfig) => TemplatePayload;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { mountPptist, unmountPptist } from './mount';
|
|
2
|
-
export type { PptistController, PptistDocument, PptistMountOptions, PptistMountResult, } from './types';
|
|
2
|
+
export type { PptistController, PptistDocument, PptistMountOptions, PptistMountResult, PptistDocumentLoader, PptistStarterPresentationOptions, PptistTemplateLoader, PptistTemplatePayload, } from './types';
|
|
3
3
|
export type * from './agentic/types';
|
|
4
4
|
export type { Locales as PptistLocales } from '../i18n/locale';
|
|
5
5
|
export type { ChartData, ChartOptions, ChartType, Note, NoteReply, PPTAnimation, PPTAudioElement, PPTChartElement, PPTElement, PPTElementLink, PPTImageElement, PPTLatexElement, PPTLineElement, PPTShapeElement, PPTTableElement, PPTTextElement, PPTVideoElement, ShapeText, Slide, SlideBackground, SlideTemplate, SlideTheme, TableCell, TableCellStyle, TextAlign, TurningMode, } from '../types/slides';
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import type { Locales } from '../i18n/locale';
|
|
2
2
|
import type { Slide, SlideTheme, SlideTemplate } from '../types/slides';
|
|
3
3
|
import type { PptistAgentApi, PptistSlideReference } from './agentic/types';
|
|
4
|
+
export interface PptistTemplatePayload {
|
|
5
|
+
title?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
slides: Slide[];
|
|
9
|
+
theme?: Partial<SlideTheme>;
|
|
10
|
+
}
|
|
11
|
+
export type PptistTemplateLoader = () => Promise<PptistTemplatePayload | Slide[]>;
|
|
12
|
+
export type PptistDocumentLoader = () => Promise<PptistDocument | null | undefined>;
|
|
13
|
+
export interface PptistStarterPresentationOptions {
|
|
14
|
+
title?: string;
|
|
15
|
+
titlePlaceholder?: string;
|
|
16
|
+
subtitlePlaceholder?: string;
|
|
17
|
+
bodyPlaceholder?: string;
|
|
18
|
+
titleFontSize?: number;
|
|
19
|
+
subtitleFontSize?: number;
|
|
20
|
+
contentTitleFontSize?: number;
|
|
21
|
+
bodyFontSize?: number;
|
|
22
|
+
placeholderColor?: string;
|
|
23
|
+
fontName?: string;
|
|
24
|
+
fontColor?: string;
|
|
25
|
+
backgroundColor?: string;
|
|
26
|
+
}
|
|
4
27
|
/** Serializable deck passed between sciobot-next and PPTist. */
|
|
5
28
|
export interface PptistDocument {
|
|
6
29
|
title: string;
|
|
@@ -10,21 +33,24 @@ export interface PptistDocument {
|
|
|
10
33
|
export interface PptistMountOptions {
|
|
11
34
|
/** UI locale — same union as sciobot-next (`cs` | `en` | `sk` | `pl`). */
|
|
12
35
|
locale?: Locales;
|
|
13
|
-
/** Initial deck;
|
|
36
|
+
/** Initial deck; takes precedence over `loadDocument` and the starter slide. */
|
|
14
37
|
document?: PptistDocument;
|
|
15
|
-
/**
|
|
38
|
+
/** Optional async document loader for hosts that resolve a deck from the current URL/session. */
|
|
39
|
+
loadDocument?: PptistDocumentLoader;
|
|
40
|
+
/** Legacy demo behavior: when explicitly true, load `mocks/slides.json` instead of the starter slide. */
|
|
16
41
|
loadMockOnEmpty?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*/
|
|
42
|
+
/** Customize the default one-slide starter deck used when no existing document is loaded. */
|
|
43
|
+
starterPresentation?: PptistStarterPresentationOptions;
|
|
44
|
+
/** Base URL for runtime image/font assets and fallback mock decks. */
|
|
21
45
|
assetBaseUrl?: string;
|
|
22
46
|
/**
|
|
23
|
-
* Style/template catalog shown in the design picker.
|
|
24
|
-
*
|
|
25
|
-
*
|
|
47
|
+
* Style/template catalog shown in the design picker. Built-in template ids are
|
|
48
|
+
* loaded from lazy bundled JSON chunks. Custom ids can be resolved with
|
|
49
|
+
* `templateLoaders`, or as a fallback from `mocks/<id>.json` at `assetBaseUrl`.
|
|
26
50
|
*/
|
|
27
51
|
templates?: SlideTemplate[];
|
|
52
|
+
/** Optional custom template payload loaders keyed by `templates[].id`. */
|
|
53
|
+
templateLoaders?: Record<string, PptistTemplateLoader>;
|
|
28
54
|
/** Fired when title, slides, or theme change (debounced). */
|
|
29
55
|
onChange?: (document: PptistDocument) => void;
|
|
30
56
|
onChangeDebounceMs?: number;
|
|
@@ -3495,6 +3495,18 @@ export type NamespaceEditorTranslation = {
|
|
|
3495
3495
|
* Untitled presentation
|
|
3496
3496
|
*/
|
|
3497
3497
|
untitled: string;
|
|
3498
|
+
/**
|
|
3499
|
+
* Click to add title
|
|
3500
|
+
*/
|
|
3501
|
+
clickToAddTitle: string;
|
|
3502
|
+
/**
|
|
3503
|
+
* Click to add subtitle
|
|
3504
|
+
*/
|
|
3505
|
+
clickToAddSubtitle: string;
|
|
3506
|
+
/**
|
|
3507
|
+
* Click to add text
|
|
3508
|
+
*/
|
|
3509
|
+
clickToAddText: string;
|
|
3498
3510
|
};
|
|
3499
3511
|
templates: {
|
|
3500
3512
|
/**
|
|
@@ -3579,6 +3591,93 @@ export type NamespaceEditorTranslation = {
|
|
|
3579
3591
|
*/
|
|
3580
3592
|
end: string;
|
|
3581
3593
|
};
|
|
3594
|
+
placeholderText: {
|
|
3595
|
+
/**
|
|
3596
|
+
* Template cover title
|
|
3597
|
+
*/
|
|
3598
|
+
coverTitle: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Template cover subtitle
|
|
3601
|
+
*/
|
|
3602
|
+
coverSubtitle: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* Brief presentation summary
|
|
3605
|
+
*/
|
|
3606
|
+
coverDescription: string;
|
|
3607
|
+
/**
|
|
3608
|
+
* Presenter: XXX
|
|
3609
|
+
*/
|
|
3610
|
+
presenter: string;
|
|
3611
|
+
/**
|
|
3612
|
+
* Date: XXX
|
|
3613
|
+
*/
|
|
3614
|
+
date: string;
|
|
3615
|
+
/**
|
|
3616
|
+
* Time: XXX
|
|
3617
|
+
*/
|
|
3618
|
+
time: string;
|
|
3619
|
+
/**
|
|
3620
|
+
* Business report | Work summary | Work plan
|
|
3621
|
+
*/
|
|
3622
|
+
businessReport: string;
|
|
3623
|
+
/**
|
|
3624
|
+
* Contents
|
|
3625
|
+
*/
|
|
3626
|
+
contentsTitle: string;
|
|
3627
|
+
/**
|
|
3628
|
+
* Section {index}
|
|
3629
|
+
* @param {unknown} index
|
|
3630
|
+
*/
|
|
3631
|
+
contentsItem: RequiredParams<'index'>;
|
|
3632
|
+
/**
|
|
3633
|
+
* Section title
|
|
3634
|
+
*/
|
|
3635
|
+
sectionTitle: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* Brief section introduction
|
|
3638
|
+
*/
|
|
3639
|
+
sectionBody: string;
|
|
3640
|
+
/**
|
|
3641
|
+
* Content page title
|
|
3642
|
+
*/
|
|
3643
|
+
contentTitle: string;
|
|
3644
|
+
/**
|
|
3645
|
+
* Key point
|
|
3646
|
+
*/
|
|
3647
|
+
itemTitle: string;
|
|
3648
|
+
/**
|
|
3649
|
+
* Supporting detail
|
|
3650
|
+
*/
|
|
3651
|
+
itemBody: string;
|
|
3652
|
+
/**
|
|
3653
|
+
* Thank you
|
|
3654
|
+
*/
|
|
3655
|
+
thankYou: string;
|
|
3656
|
+
/**
|
|
3657
|
+
* Welcome
|
|
3658
|
+
*/
|
|
3659
|
+
welcome: string;
|
|
3660
|
+
/**
|
|
3661
|
+
* Title 1
|
|
3662
|
+
*/
|
|
3663
|
+
title1: string;
|
|
3664
|
+
/**
|
|
3665
|
+
* Title 2
|
|
3666
|
+
*/
|
|
3667
|
+
title2: string;
|
|
3668
|
+
/**
|
|
3669
|
+
* Title 3
|
|
3670
|
+
*/
|
|
3671
|
+
title3: string;
|
|
3672
|
+
/**
|
|
3673
|
+
* Title 4
|
|
3674
|
+
*/
|
|
3675
|
+
title4: string;
|
|
3676
|
+
/**
|
|
3677
|
+
* Body text
|
|
3678
|
+
*/
|
|
3679
|
+
bodyText: string;
|
|
3680
|
+
};
|
|
3582
3681
|
/**
|
|
3583
3682
|
* Insert all
|
|
3584
3683
|
*/
|
|
@@ -7942,6 +8041,18 @@ export type TranslationFunctions = {
|
|
|
7942
8041
|
* Untitled presentation
|
|
7943
8042
|
*/
|
|
7944
8043
|
untitled: () => LocalizedString;
|
|
8044
|
+
/**
|
|
8045
|
+
* Click to add title
|
|
8046
|
+
*/
|
|
8047
|
+
clickToAddTitle: () => LocalizedString;
|
|
8048
|
+
/**
|
|
8049
|
+
* Click to add subtitle
|
|
8050
|
+
*/
|
|
8051
|
+
clickToAddSubtitle: () => LocalizedString;
|
|
8052
|
+
/**
|
|
8053
|
+
* Click to add text
|
|
8054
|
+
*/
|
|
8055
|
+
clickToAddText: () => LocalizedString;
|
|
7945
8056
|
};
|
|
7946
8057
|
templates: {
|
|
7947
8058
|
/**
|
|
@@ -8026,6 +8137,94 @@ export type TranslationFunctions = {
|
|
|
8026
8137
|
*/
|
|
8027
8138
|
end: () => LocalizedString;
|
|
8028
8139
|
};
|
|
8140
|
+
placeholderText: {
|
|
8141
|
+
/**
|
|
8142
|
+
* Template cover title
|
|
8143
|
+
*/
|
|
8144
|
+
coverTitle: () => LocalizedString;
|
|
8145
|
+
/**
|
|
8146
|
+
* Template cover subtitle
|
|
8147
|
+
*/
|
|
8148
|
+
coverSubtitle: () => LocalizedString;
|
|
8149
|
+
/**
|
|
8150
|
+
* Brief presentation summary
|
|
8151
|
+
*/
|
|
8152
|
+
coverDescription: () => LocalizedString;
|
|
8153
|
+
/**
|
|
8154
|
+
* Presenter: XXX
|
|
8155
|
+
*/
|
|
8156
|
+
presenter: () => LocalizedString;
|
|
8157
|
+
/**
|
|
8158
|
+
* Date: XXX
|
|
8159
|
+
*/
|
|
8160
|
+
date: () => LocalizedString;
|
|
8161
|
+
/**
|
|
8162
|
+
* Time: XXX
|
|
8163
|
+
*/
|
|
8164
|
+
time: () => LocalizedString;
|
|
8165
|
+
/**
|
|
8166
|
+
* Business report | Work summary | Work plan
|
|
8167
|
+
*/
|
|
8168
|
+
businessReport: () => LocalizedString;
|
|
8169
|
+
/**
|
|
8170
|
+
* Contents
|
|
8171
|
+
*/
|
|
8172
|
+
contentsTitle: () => LocalizedString;
|
|
8173
|
+
/**
|
|
8174
|
+
* Section {index}
|
|
8175
|
+
*/
|
|
8176
|
+
contentsItem: (arg: {
|
|
8177
|
+
index: unknown;
|
|
8178
|
+
}) => LocalizedString;
|
|
8179
|
+
/**
|
|
8180
|
+
* Section title
|
|
8181
|
+
*/
|
|
8182
|
+
sectionTitle: () => LocalizedString;
|
|
8183
|
+
/**
|
|
8184
|
+
* Brief section introduction
|
|
8185
|
+
*/
|
|
8186
|
+
sectionBody: () => LocalizedString;
|
|
8187
|
+
/**
|
|
8188
|
+
* Content page title
|
|
8189
|
+
*/
|
|
8190
|
+
contentTitle: () => LocalizedString;
|
|
8191
|
+
/**
|
|
8192
|
+
* Key point
|
|
8193
|
+
*/
|
|
8194
|
+
itemTitle: () => LocalizedString;
|
|
8195
|
+
/**
|
|
8196
|
+
* Supporting detail
|
|
8197
|
+
*/
|
|
8198
|
+
itemBody: () => LocalizedString;
|
|
8199
|
+
/**
|
|
8200
|
+
* Thank you
|
|
8201
|
+
*/
|
|
8202
|
+
thankYou: () => LocalizedString;
|
|
8203
|
+
/**
|
|
8204
|
+
* Welcome
|
|
8205
|
+
*/
|
|
8206
|
+
welcome: () => LocalizedString;
|
|
8207
|
+
/**
|
|
8208
|
+
* Title 1
|
|
8209
|
+
*/
|
|
8210
|
+
title1: () => LocalizedString;
|
|
8211
|
+
/**
|
|
8212
|
+
* Title 2
|
|
8213
|
+
*/
|
|
8214
|
+
title2: () => LocalizedString;
|
|
8215
|
+
/**
|
|
8216
|
+
* Title 3
|
|
8217
|
+
*/
|
|
8218
|
+
title3: () => LocalizedString;
|
|
8219
|
+
/**
|
|
8220
|
+
* Title 4
|
|
8221
|
+
*/
|
|
8222
|
+
title4: () => LocalizedString;
|
|
8223
|
+
/**
|
|
8224
|
+
* Body text
|
|
8225
|
+
*/
|
|
8226
|
+
bodyText: () => LocalizedString;
|
|
8227
|
+
};
|
|
8029
8228
|
/**
|
|
8030
8229
|
* Insert all
|
|
8031
8230
|
*/
|
|
@@ -153,6 +153,10 @@ export declare const useMainStore: import("pinia").StoreDefinition<"main", MainS
|
|
|
153
153
|
content: string;
|
|
154
154
|
defaultFontName: string;
|
|
155
155
|
defaultColor: string;
|
|
156
|
+
placeholder?: string | undefined;
|
|
157
|
+
placeholderFontSize?: number | undefined;
|
|
158
|
+
placeholderColor?: string | undefined;
|
|
159
|
+
placeholderAlign?: import("../embed").TextAlign | undefined;
|
|
156
160
|
outline?: {
|
|
157
161
|
style?: import("../types/slides").LineStyleType | undefined;
|
|
158
162
|
width?: number | undefined;
|
|
@@ -576,6 +580,10 @@ export declare const useMainStore: import("pinia").StoreDefinition<"main", MainS
|
|
|
576
580
|
content: string;
|
|
577
581
|
defaultFontName: string;
|
|
578
582
|
defaultColor: string;
|
|
583
|
+
placeholder?: string | undefined;
|
|
584
|
+
placeholderFontSize?: number | undefined;
|
|
585
|
+
placeholderColor?: string | undefined;
|
|
586
|
+
placeholderAlign?: import("../embed").TextAlign | undefined;
|
|
579
587
|
outline?: {
|
|
580
588
|
style?: import("../types/slides").LineStyleType | undefined;
|
|
581
589
|
width?: number | undefined;
|
|
@@ -49,6 +49,10 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
|
|
|
49
49
|
content: string;
|
|
50
50
|
defaultFontName: string;
|
|
51
51
|
defaultColor: string;
|
|
52
|
+
placeholder?: string | undefined;
|
|
53
|
+
placeholderFontSize?: number | undefined;
|
|
54
|
+
placeholderColor?: string | undefined;
|
|
55
|
+
placeholderAlign?: import("../types/slides").TextAlign | undefined;
|
|
52
56
|
outline?: {
|
|
53
57
|
style?: import("../types/slides").LineStyleType | undefined;
|
|
54
58
|
width?: number | undefined;
|
|
@@ -418,6 +422,10 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
|
|
|
418
422
|
content: string;
|
|
419
423
|
defaultFontName: string;
|
|
420
424
|
defaultColor: string;
|
|
425
|
+
placeholder?: string | undefined;
|
|
426
|
+
placeholderFontSize?: number | undefined;
|
|
427
|
+
placeholderColor?: string | undefined;
|
|
428
|
+
placeholderAlign?: import("../types/slides").TextAlign | undefined;
|
|
421
429
|
outline?: {
|
|
422
430
|
style?: import("../types/slides").LineStyleType | undefined;
|
|
423
431
|
width?: number | undefined;
|
|
@@ -797,6 +805,10 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
|
|
|
797
805
|
content: string;
|
|
798
806
|
defaultFontName: string;
|
|
799
807
|
defaultColor: string;
|
|
808
|
+
placeholder?: string | undefined;
|
|
809
|
+
placeholderFontSize?: number | undefined;
|
|
810
|
+
placeholderColor?: string | undefined;
|
|
811
|
+
placeholderAlign?: import("../types/slides").TextAlign | undefined;
|
|
800
812
|
outline?: {
|
|
801
813
|
style?: import("../types/slides").LineStyleType | undefined;
|
|
802
814
|
width?: number | undefined;
|
|
@@ -1193,6 +1205,10 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
|
|
|
1193
1205
|
content: string;
|
|
1194
1206
|
defaultFontName: string;
|
|
1195
1207
|
defaultColor: string;
|
|
1208
|
+
placeholder?: string | undefined;
|
|
1209
|
+
placeholderFontSize?: number | undefined;
|
|
1210
|
+
placeholderColor?: string | undefined;
|
|
1211
|
+
placeholderAlign?: import("../types/slides").TextAlign | undefined;
|
|
1196
1212
|
outline?: {
|
|
1197
1213
|
style?: import("../types/slides").LineStyleType | undefined;
|
|
1198
1214
|
width?: number | undefined;
|
|
@@ -170,6 +170,10 @@ export interface PPTTextElement extends PPTBaseElement {
|
|
|
170
170
|
content: string;
|
|
171
171
|
defaultFontName: string;
|
|
172
172
|
defaultColor: string;
|
|
173
|
+
placeholder?: string;
|
|
174
|
+
placeholderFontSize?: number;
|
|
175
|
+
placeholderColor?: string;
|
|
176
|
+
placeholderAlign?: TextAlign;
|
|
173
177
|
outline?: PPTElementOutline;
|
|
174
178
|
fill?: string;
|
|
175
179
|
lineHeight?: number;
|
|
@@ -91,6 +91,10 @@ export declare const rotateRectLikeElement: (element: Exclude<PPTElement, PPTLin
|
|
|
91
91
|
content: string;
|
|
92
92
|
defaultFontName: string;
|
|
93
93
|
defaultColor: string;
|
|
94
|
+
placeholder?: string;
|
|
95
|
+
placeholderFontSize?: number;
|
|
96
|
+
placeholderColor?: string;
|
|
97
|
+
placeholderAlign?: import("../types/slides").TextAlign;
|
|
94
98
|
outline?: import("../types/slides").PPTElementOutline;
|
|
95
99
|
fill?: string;
|
|
96
100
|
lineHeight?: number;
|
|
@@ -16,6 +16,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
16
16
|
value: string;
|
|
17
17
|
ignore: boolean;
|
|
18
18
|
}) => any;
|
|
19
|
+
emptyChange: (empty: boolean) => any;
|
|
19
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
21
|
onBlur?: (() => any) | undefined;
|
|
21
22
|
onFocus?: (() => any) | undefined;
|
|
@@ -24,6 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
24
25
|
value: string;
|
|
25
26
|
ignore: boolean;
|
|
26
27
|
}) => any) | undefined;
|
|
28
|
+
onEmptyChange?: ((empty: boolean) => any) | undefined;
|
|
27
29
|
}>, {
|
|
28
30
|
editable: boolean;
|
|
29
31
|
autoFocus: boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TextAlign, TextType } from '../../../../types/slides';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
contentType: TextType;
|
|
5
|
+
fontSize: number;
|
|
6
|
+
color: string;
|
|
7
|
+
align?: TextAlign;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
activate: (payload: MouseEvent) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onActivate?: ((payload: MouseEvent) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
align: TextAlign;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lofcz/pptist",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "PPTist presentation editor embed bundle with a typed agentic bridge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/embed/pptist-embed.js",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"mitt": "^3.0.1",
|
|
83
83
|
"nanoid": "^5.0.7",
|
|
84
84
|
"number-precision": "^1.6.0",
|
|
85
|
+
"overlayscrollbars": "^2.16.0",
|
|
85
86
|
"pinia": "^3.0.2",
|
|
86
87
|
"pptxgenjs": "^3.12.0",
|
|
87
88
|
"pptxtojson": "^2.0.4",
|