@markopolo_ai_inc/markopolo-email-editor 1.0.70 → 1.0.71
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/lib/core/index.d.ts +9 -7
- package/package.json +1 -1
package/lib/core/index.d.ts
CHANGED
|
@@ -42,6 +42,8 @@ export interface ExportIssue {
|
|
|
42
42
|
code: string;
|
|
43
43
|
message: string;
|
|
44
44
|
location?: string;
|
|
45
|
+
/** Id of the offending block, when the issue is tied to one (e.g. for focus-on-click). */
|
|
46
|
+
blockId?: string | null;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
export interface ExportPayload {
|
|
@@ -70,20 +72,20 @@ export declare function exportTemplateJsonAsync(
|
|
|
70
72
|
options?: { validate?: boolean }
|
|
71
73
|
): Promise<ExportResult>;
|
|
72
74
|
|
|
73
|
-
/** Synchronous, side-effect-free validation of an export payload. */
|
|
75
|
+
/** Synchronous, side-effect-free validation of an export payload. Returns the list of issues. */
|
|
74
76
|
export declare function validateExportPayload(payload: {
|
|
75
77
|
blockList: unknown[];
|
|
76
78
|
bodySettings: object | null;
|
|
77
79
|
aiContentRefs?: object;
|
|
78
|
-
}):
|
|
80
|
+
}): ExportIssue[];
|
|
79
81
|
|
|
80
|
-
/** Probes http(s) image-block URLs in the browser; resolves with reachability issues. */
|
|
82
|
+
/** Probes http(s) image-block URLs in the browser; resolves with the list of reachability issues. */
|
|
81
83
|
export declare function validateImageUrlsReachable(
|
|
82
84
|
blockList: unknown[],
|
|
83
85
|
options?: Record<string, unknown>
|
|
84
|
-
): Promise<
|
|
86
|
+
): Promise<ExportIssue[]>;
|
|
85
87
|
|
|
86
|
-
/** Merges sync payload validation with async image-reachability checks. */
|
|
88
|
+
/** Merges sync payload validation with async image-reachability checks into one issue list. */
|
|
87
89
|
export declare function validateExportPayloadComplete(
|
|
88
90
|
payload: {
|
|
89
91
|
blockList: unknown[];
|
|
@@ -91,7 +93,7 @@ export declare function validateExportPayloadComplete(
|
|
|
91
93
|
aiContentRefs?: object;
|
|
92
94
|
},
|
|
93
95
|
imageOptions?: Record<string, unknown>
|
|
94
|
-
): Promise<
|
|
96
|
+
): Promise<ExportIssue[]>;
|
|
95
97
|
|
|
96
98
|
/** Converts a template/normalizer payload into a self-contained HTML email string. */
|
|
97
99
|
export declare function exportNormalizerToHtml(input: object | string): string;
|
|
@@ -107,4 +109,4 @@ export declare function createDefaultTemplateData(
|
|
|
107
109
|
|
|
108
110
|
export declare function validateTemplateDataShape(
|
|
109
111
|
data: unknown
|
|
110
|
-
): {
|
|
112
|
+
): { ok: boolean; warnings: string[] };
|