@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.
@@ -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 __VLS_1: {}, __VLS_28: {};
15
+ declare var __VLS_6: {}, __VLS_43: {};
16
16
  type __VLS_Slots = {} & {
17
- icon?: (props: typeof __VLS_1) => any;
17
+ icon?: (props: typeof __VLS_6) => any;
18
18
  } & {
19
- icon?: (props: typeof __VLS_28) => any;
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;
@@ -1,4 +1,5 @@
1
1
  import { type CSSProperties } from 'vue';
2
+ import 'overlayscrollbars/overlayscrollbars.css';
2
3
  interface TabItem {
3
4
  key: string;
4
5
  label: string;
@@ -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
+ * T​e​m​p​l​a​t​e​ ​c​o​v​e​r​ ​t​i​t​l​e
3585
+ */
3586
+ coverTitle: string;
3587
+ /**
3588
+ * T​e​m​p​l​a​t​e​ ​c​o​v​e​r​ ​s​u​b​t​i​t​l​e
3589
+ */
3590
+ coverSubtitle: string;
3591
+ /**
3592
+ * C​o​n​t​e​n​t​s
3593
+ */
3594
+ contentsTitle: string;
3595
+ /**
3596
+ * S​e​c​t​i​o​n​ ​t​i​t​l​e
3597
+ */
3598
+ sectionTitle: string;
3599
+ /**
3600
+ * T​i​t​l​e​ ​1
3601
+ */
3602
+ title1: string;
3603
+ /**
3604
+ * T​i​t​l​e​ ​2
3605
+ */
3606
+ title2: string;
3607
+ /**
3608
+ * T​i​t​l​e​ ​3
3609
+ */
3610
+ title3: string;
3611
+ /**
3612
+ * T​i​t​l​e​ ​4
3613
+ */
3614
+ title4: string;
3615
+ /**
3616
+ * B​o​d​y​ ​t​e​x​t
3617
+ */
3618
+ bodyText: string;
3619
+ };
3582
3620
  /**
3583
3621
  * I​n​s​e​r​t​ ​a​l​l
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.5",
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",