@lofcz/pptist 2.0.5 → 2.0.7
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 +2 -2
- package/dist/embed/pptist-embed.css +1 -1
- package/dist/embed/pptist-embed.js +22811 -16301
- package/dist/types/components/FitText.vue.d.ts +25 -0
- package/dist/types/components/Select.vue.d.ts +3 -3
- package/dist/types/components/Tabs.vue.d.ts +1 -0
- package/dist/types/embed/createController.d.ts +1 -0
- package/dist/types/embed/types.d.ts +2 -0
- package/dist/types/i18n/i18n-types.d.ts +76 -0
- package/docs/EMBED.md +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
maxFontSize?: number;
|
|
4
|
+
minFontSize?: number;
|
|
5
|
+
fontWeight?: number | string;
|
|
6
|
+
fontStyle?: string;
|
|
7
|
+
fontFamily?: string;
|
|
8
|
+
textDecoration?: string;
|
|
9
|
+
lineHeight?: number;
|
|
10
|
+
letterSpacing?: number;
|
|
11
|
+
maxLines?: number;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
lineHeight: number;
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontStyle: string;
|
|
17
|
+
fontWeight: number | string;
|
|
18
|
+
letterSpacing: number;
|
|
19
|
+
maxLines: number;
|
|
20
|
+
textDecoration: string;
|
|
21
|
+
maxFontSize: number;
|
|
22
|
+
minFontSize: number;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
@@ -12,11 +12,11 @@ type __VLS_Props = {
|
|
|
12
12
|
search?: boolean;
|
|
13
13
|
searchLabel?: string;
|
|
14
14
|
};
|
|
15
|
-
declare var
|
|
15
|
+
declare var __VLS_6: {}, __VLS_43: {};
|
|
16
16
|
type __VLS_Slots = {} & {
|
|
17
|
-
icon?: (props: typeof
|
|
17
|
+
icon?: (props: typeof __VLS_6) => any;
|
|
18
18
|
} & {
|
|
19
|
-
icon?: (props: typeof
|
|
19
|
+
icon?: (props: typeof __VLS_43) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
22
|
"update:value": (payload: string | number) => any;
|
|
@@ -4,4 +4,5 @@ import type { PptistController, PptistDocument } from './types';
|
|
|
4
4
|
export declare function createController(pinia: Pinia, app: App, options: {
|
|
5
5
|
onChange?: (document: PptistDocument) => void;
|
|
6
6
|
onChangeDebounceMs?: number;
|
|
7
|
+
onPresentationModeChange?: (screening: boolean) => void;
|
|
7
8
|
}): PptistController;
|
|
@@ -28,6 +28,8 @@ export interface PptistMountOptions {
|
|
|
28
28
|
/** Fired when title, slides, or theme change (debounced). */
|
|
29
29
|
onChange?: (document: PptistDocument) => void;
|
|
30
30
|
onChangeDebounceMs?: number;
|
|
31
|
+
/** Fired when PPTist enters or exits slideshow/presentation mode. */
|
|
32
|
+
onPresentationModeChange?: (screening: boolean) => void;
|
|
31
33
|
}
|
|
32
34
|
/** Public embed controller: legacy host methods plus the generic command and domain APIs. */
|
|
33
35
|
export interface PptistController extends PptistAgentApi {
|
|
@@ -3579,6 +3579,44 @@ export type NamespaceEditorTranslation = {
|
|
|
3579
3579
|
*/
|
|
3580
3580
|
end: string;
|
|
3581
3581
|
};
|
|
3582
|
+
placeholderText: {
|
|
3583
|
+
/**
|
|
3584
|
+
* Template cover title
|
|
3585
|
+
*/
|
|
3586
|
+
coverTitle: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* Template cover subtitle
|
|
3589
|
+
*/
|
|
3590
|
+
coverSubtitle: string;
|
|
3591
|
+
/**
|
|
3592
|
+
* Contents
|
|
3593
|
+
*/
|
|
3594
|
+
contentsTitle: string;
|
|
3595
|
+
/**
|
|
3596
|
+
* Section title
|
|
3597
|
+
*/
|
|
3598
|
+
sectionTitle: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Title 1
|
|
3601
|
+
*/
|
|
3602
|
+
title1: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* Title 2
|
|
3605
|
+
*/
|
|
3606
|
+
title2: string;
|
|
3607
|
+
/**
|
|
3608
|
+
* Title 3
|
|
3609
|
+
*/
|
|
3610
|
+
title3: string;
|
|
3611
|
+
/**
|
|
3612
|
+
* Title 4
|
|
3613
|
+
*/
|
|
3614
|
+
title4: string;
|
|
3615
|
+
/**
|
|
3616
|
+
* Body text
|
|
3617
|
+
*/
|
|
3618
|
+
bodyText: string;
|
|
3619
|
+
};
|
|
3582
3620
|
/**
|
|
3583
3621
|
* Insert all
|
|
3584
3622
|
*/
|
|
@@ -8026,6 +8064,44 @@ export type TranslationFunctions = {
|
|
|
8026
8064
|
*/
|
|
8027
8065
|
end: () => LocalizedString;
|
|
8028
8066
|
};
|
|
8067
|
+
placeholderText: {
|
|
8068
|
+
/**
|
|
8069
|
+
* Template cover title
|
|
8070
|
+
*/
|
|
8071
|
+
coverTitle: () => LocalizedString;
|
|
8072
|
+
/**
|
|
8073
|
+
* Template cover subtitle
|
|
8074
|
+
*/
|
|
8075
|
+
coverSubtitle: () => LocalizedString;
|
|
8076
|
+
/**
|
|
8077
|
+
* Contents
|
|
8078
|
+
*/
|
|
8079
|
+
contentsTitle: () => LocalizedString;
|
|
8080
|
+
/**
|
|
8081
|
+
* Section title
|
|
8082
|
+
*/
|
|
8083
|
+
sectionTitle: () => LocalizedString;
|
|
8084
|
+
/**
|
|
8085
|
+
* Title 1
|
|
8086
|
+
*/
|
|
8087
|
+
title1: () => LocalizedString;
|
|
8088
|
+
/**
|
|
8089
|
+
* Title 2
|
|
8090
|
+
*/
|
|
8091
|
+
title2: () => LocalizedString;
|
|
8092
|
+
/**
|
|
8093
|
+
* Title 3
|
|
8094
|
+
*/
|
|
8095
|
+
title3: () => LocalizedString;
|
|
8096
|
+
/**
|
|
8097
|
+
* Title 4
|
|
8098
|
+
*/
|
|
8099
|
+
title4: () => LocalizedString;
|
|
8100
|
+
/**
|
|
8101
|
+
* Body text
|
|
8102
|
+
*/
|
|
8103
|
+
bodyText: () => LocalizedString;
|
|
8104
|
+
};
|
|
8029
8105
|
/**
|
|
8030
8106
|
* Insert all
|
|
8031
8107
|
*/
|
package/docs/EMBED.md
CHANGED
|
@@ -49,6 +49,7 @@ export function PptistEditor({ locale }: { locale: 'cs' | 'en' | 'sk' | 'pl' })
|
|
|
49
49
|
loadMockOnEmpty: true,
|
|
50
50
|
assetBaseUrl: import.meta.env.VITE_PPTIST_ASSET_BASE ?? '/pptist-assets',
|
|
51
51
|
onChange: (doc) => console.log('deck changed', doc.title),
|
|
52
|
+
onPresentationModeChange: (active) => console.log('presentation mode', active),
|
|
52
53
|
}).then(({ controller }) => {
|
|
53
54
|
if (cancelled) {
|
|
54
55
|
controller.destroy()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lofcz/pptist",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
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",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"homepage": "https://github.com/lofcz/PPTist#readme",
|
|
66
66
|
"dependencies": {
|
|
67
|
+
"@chenglou/pretext": "^0.0.7",
|
|
67
68
|
"animate.css": "^4.1.1",
|
|
68
69
|
"axios": "^1.7.9",
|
|
69
70
|
"clipboard": "^2.0.11",
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
"mitt": "^3.0.1",
|
|
82
83
|
"nanoid": "^5.0.7",
|
|
83
84
|
"number-precision": "^1.6.0",
|
|
85
|
+
"overlayscrollbars": "^2.16.0",
|
|
84
86
|
"pinia": "^3.0.2",
|
|
85
87
|
"pptxgenjs": "^3.12.0",
|
|
86
88
|
"pptxtojson": "^2.0.4",
|