valtech-components 4.0.998 → 4.0.1000

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.
@@ -46,6 +46,9 @@ export declare class SurveyBuilderComponent implements OnInit {
46
46
  readonly editingId: import("@angular/core").WritableSignal<string>;
47
47
  readonly validationError: import("@angular/core").WritableSignal<string>;
48
48
  readonly saving: import("@angular/core").WritableSignal<boolean>;
49
+ readonly uploadingImage: import("@angular/core").WritableSignal<"" | "success" | "header">;
50
+ private readonly allowedImageTypes;
51
+ private readonly maxImageBytes;
49
52
  constructor();
50
53
  ngOnInit(): Promise<void>;
51
54
  t(key: string): string;
@@ -69,6 +72,8 @@ export declare class SurveyBuilderComponent implements OnInit {
69
72
  */
70
73
  draftQuestion(field: EditableFieldDef): void;
71
74
  applyQuestion(field: EditableFieldDef): void;
75
+ onPresentationFileSelected(slot: 'header' | 'success', event: Event): Promise<void>;
76
+ clearPresentationImage(slot: 'header' | 'success'): void;
72
77
  save(): Promise<void>;
73
78
  private hydrate;
74
79
  private presentationPayload;
@@ -46,6 +46,11 @@ export interface SurveyBuilderMetadata {
46
46
  allowAnonymous?: boolean;
47
47
  /** Acota el catálogo de `SURVEY_QUESTION_TYPES` si una app quiere ofrecer menos. */
48
48
  questionTypes?: string[];
49
+ /**
50
+ * Sube imágenes de presentación y devuelve la URL pública. Si no se pasa, el
51
+ * builder conserva solo el campo URL para consumidores sin Storage propio.
52
+ */
53
+ presentationImageUpload?: (slot: 'header' | 'success', file: File) => Promise<string>;
49
54
  /**
50
55
  * Si el builder guarda por su cuenta contra `/v2/request-types`.
51
56
  *
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.998";
5
+ export declare const VERSION = "4.0.1000";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.998",
3
+ "version": "4.0.1000",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"