@lofcz/pptist 2.0.4 → 2.0.6
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 +18398 -13318
- package/dist/types/components/FitText.vue.d.ts +25 -0
- package/dist/types/components/Select.vue.d.ts +3 -3
- package/dist/types/embed/createController.d.ts +1 -0
- package/dist/types/embed/types.d.ts +2 -0
- package/docs/EMBED.md +1 -0
- package/package.json +3 -2
|
@@ -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 {
|
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.6",
|
|
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",
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
"typescript": "^6.0.3",
|
|
127
128
|
"unplugin-icons": "^22.5.0",
|
|
128
129
|
"unplugin-vue-components": "^30.0.0",
|
|
129
|
-
"vite": "
|
|
130
|
+
"vite": "^8.0.14",
|
|
130
131
|
"vite-plus": "^0.1.23",
|
|
131
132
|
"vue-tsc": "^3.3.3"
|
|
132
133
|
}
|