@lofcz/pptist 2.0.7 → 2.0.9

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.
@@ -41,6 +41,7 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
41
41
  blur: number;
42
42
  color: string;
43
43
  };
44
+ styleId?: string | undefined;
44
45
  };
45
46
  slides: {
46
47
  id: string;
@@ -49,6 +50,10 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
49
50
  content: string;
50
51
  defaultFontName: string;
51
52
  defaultColor: string;
53
+ placeholder?: string | undefined;
54
+ placeholderFontSize?: number | undefined;
55
+ placeholderColor?: string | undefined;
56
+ placeholderAlign?: import("../types/slides").TextAlign | undefined;
52
57
  outline?: {
53
58
  style?: import("../types/slides").LineStyleType | undefined;
54
59
  width?: number | undefined;
@@ -418,6 +423,10 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
418
423
  content: string;
419
424
  defaultFontName: string;
420
425
  defaultColor: string;
426
+ placeholder?: string | undefined;
427
+ placeholderFontSize?: number | undefined;
428
+ placeholderColor?: string | undefined;
429
+ placeholderAlign?: import("../types/slides").TextAlign | undefined;
421
430
  outline?: {
422
431
  style?: import("../types/slides").LineStyleType | undefined;
423
432
  width?: number | undefined;
@@ -789,6 +798,7 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
789
798
  blur: number;
790
799
  color: string;
791
800
  };
801
+ styleId?: string | undefined;
792
802
  };
793
803
  slides: {
794
804
  id: string;
@@ -797,6 +807,10 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
797
807
  content: string;
798
808
  defaultFontName: string;
799
809
  defaultColor: string;
810
+ placeholder?: string | undefined;
811
+ placeholderFontSize?: number | undefined;
812
+ placeholderColor?: string | undefined;
813
+ placeholderAlign?: import("../types/slides").TextAlign | undefined;
800
814
  outline?: {
801
815
  style?: import("../types/slides").LineStyleType | undefined;
802
816
  width?: number | undefined;
@@ -1185,6 +1199,7 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
1185
1199
  blur: number;
1186
1200
  color: string;
1187
1201
  };
1202
+ styleId?: string | undefined;
1188
1203
  };
1189
1204
  slides: {
1190
1205
  id: string;
@@ -1193,6 +1208,10 @@ export declare const useSlidesStore: import("pinia").StoreDefinition<"slides", S
1193
1208
  content: string;
1194
1209
  defaultFontName: string;
1195
1210
  defaultColor: string;
1211
+ placeholder?: string | undefined;
1212
+ placeholderFontSize?: number | undefined;
1213
+ placeholderColor?: string | undefined;
1214
+ placeholderAlign?: import("../types/slides").TextAlign | undefined;
1196
1215
  outline?: {
1197
1216
  style?: import("../types/slides").LineStyleType | undefined;
1198
1217
  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;
@@ -734,6 +738,13 @@ export interface SlideTheme {
734
738
  fontName: string;
735
739
  outline: PPTElementOutline;
736
740
  shadow: PPTElementShadow;
741
+ /**
742
+ * Id of the agentic style preset last applied via `deck.applyStyle`. Additive
743
+ * and optional: it lets `slides.createFromLayout` inherit the active preset's
744
+ * role tokens (colors, fonts, type scale) without re-specifying them. It is a
745
+ * plain string so it survives theme merges and document (de)serialization.
746
+ */
747
+ styleId?: string;
737
748
  }
738
749
  export interface SlideTemplate {
739
750
  name: string;
@@ -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.7",
3
+ "version": "2.0.9",
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",