unlayer-types 1.5.26 → 1.5.28
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/embed.d.ts +19 -12
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -134,6 +134,7 @@ declare module "editor/components/editors/types" {
|
|
134
134
|
embeddedValues: Record<string, any>;
|
135
135
|
isViewer: boolean;
|
136
136
|
variant: Variant;
|
137
|
+
type?: string;
|
137
138
|
}
|
138
139
|
];
|
139
140
|
export interface Head {
|
@@ -184,9 +185,10 @@ declare module "editor/components/editors/types" {
|
|
184
185
|
}
|
185
186
|
declare module "state/types/index" {
|
186
187
|
import { InputType } from 'reactstrap/lib/Input';
|
188
|
+
import { State as Design } from '../../state/reducer/design';
|
187
189
|
import { CollaborationThread } from "editor/components/editors/types";
|
188
190
|
export type DesignMode = 'live' | 'edit';
|
189
|
-
export type DisplayMode = 'web' | 'email' | 'popup';
|
191
|
+
export type DisplayMode = 'web' | 'email' | 'popup' | 'document';
|
190
192
|
export type Variant = 'amp' | null;
|
191
193
|
export type Device = 'desktop' | 'mobile' | 'tablet';
|
192
194
|
export type Theme = 'light' | 'dark';
|
@@ -292,7 +294,7 @@ declare module "state/types/index" {
|
|
292
294
|
export interface Translations {
|
293
295
|
[name: string]: object;
|
294
296
|
}
|
295
|
-
export type Collection = 'bodies' | 'columns' | 'contents' | 'pages' | 'rows';
|
297
|
+
export type Collection = 'bodies' | 'columns' | 'contents' | 'pages' | 'rows' | 'headers' | 'footers';
|
296
298
|
export type Container = 'body' | 'row' | 'column' | 'content';
|
297
299
|
export interface Location {
|
298
300
|
collection: Collection;
|
@@ -342,20 +344,23 @@ declare module "state/types/index" {
|
|
342
344
|
optimistic?: boolean;
|
343
345
|
}
|
344
346
|
export type ArrayItem<T> = T extends (infer I)[] ? I : T extends readonly (infer I)[] ? I : unknown;
|
347
|
+
export type BodyItem = Array<{
|
348
|
+
id: string;
|
349
|
+
cells: number[];
|
350
|
+
columns: Array<{
|
351
|
+
id: string;
|
352
|
+
contents: Array<Design['contents']['0']>;
|
353
|
+
values: {};
|
354
|
+
}>;
|
355
|
+
values: {};
|
356
|
+
}>;
|
345
357
|
export type JSONTemplate = {
|
346
358
|
counters: Record<string, number>;
|
347
359
|
body: {
|
348
360
|
id: string | undefined;
|
349
|
-
rows:
|
350
|
-
|
351
|
-
|
352
|
-
columns: Array<{
|
353
|
-
id: string;
|
354
|
-
contents: Array<{}>;
|
355
|
-
values: {};
|
356
|
-
}>;
|
357
|
-
values: {};
|
358
|
-
}>;
|
361
|
+
rows: BodyItem;
|
362
|
+
headers: BodyItem;
|
363
|
+
footers: BodyItem;
|
359
364
|
values: {};
|
360
365
|
};
|
361
366
|
schemaVersion?: number;
|
@@ -536,6 +541,8 @@ declare module "embed/Config" {
|
|
536
541
|
popupId?: string;
|
537
542
|
title?: string;
|
538
543
|
validateAmp?: boolean;
|
544
|
+
onlyHeader?: boolean;
|
545
|
+
onlyFooter?: boolean;
|
539
546
|
}
|
540
547
|
export interface ExportHtmlResult {
|
541
548
|
html: string;
|
package/package.json
CHANGED