@unlayer/types 1.386.0
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/dist/containers/body.d.ts +162 -0
- package/dist/containers/column.d.ts +85 -0
- package/dist/containers/content.d.ts +62 -0
- package/dist/containers/footer.d.ts +79 -0
- package/dist/containers/header.d.ts +79 -0
- package/dist/containers/index.d.ts +6 -0
- package/dist/containers/row.d.ts +100 -0
- package/dist/design.d.ts +102 -0
- package/dist/editor/audit.d.ts +31 -0
- package/dist/editor/config.d.ts +41 -0
- package/dist/editor/design.d.ts +16 -0
- package/dist/editor/display-conditions.d.ts +5 -0
- package/dist/editor/editor.d.ts +467 -0
- package/dist/editor/export.d.ts +104 -0
- package/dist/editor/features.d.ts +122 -0
- package/dist/editor/font.d.ts +24 -0
- package/dist/editor/index.d.ts +15 -0
- package/dist/editor/intl.d.ts +16 -0
- package/dist/editor/link-types.d.ts +72 -0
- package/dist/editor/merge-tags.d.ts +28 -0
- package/dist/editor/style-guide.d.ts +20 -0
- package/dist/editor/theme.d.ts +775 -0
- package/dist/editor/types.d.ts +23 -0
- package/dist/editor/utils.d.ts +88 -0
- package/dist/index.d.ts +3 -0
- package/dist/tools/button.d.ts +111 -0
- package/dist/tools/carousel.d.ts +52 -0
- package/dist/tools/divider.d.ts +54 -0
- package/dist/tools/form.d.ts +159 -0
- package/dist/tools/heading.d.ts +79 -0
- package/dist/tools/html.d.ts +48 -0
- package/dist/tools/image.d.ts +75 -0
- package/dist/tools/index.d.ts +17 -0
- package/dist/tools/menu.d.ts +91 -0
- package/dist/tools/page-break.d.ts +57 -0
- package/dist/tools/paragraph.d.ts +76 -0
- package/dist/tools/social.d.ts +58 -0
- package/dist/tools/table.d.ts +178 -0
- package/dist/tools/text.d.ts +76 -0
- package/dist/tools/timer.d.ts +87 -0
- package/dist/tools/video.d.ts +72 -0
- package/package.json +44 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Auto-generated by build-values-types.js. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
import type { DisplayMode, ExporterName } from '../editor/types';
|
|
4
|
+
|
|
5
|
+
export type VideoValues<
|
|
6
|
+
TDisplayMode extends DisplayMode | undefined = undefined,
|
|
7
|
+
> = {
|
|
8
|
+
synced: {
|
|
9
|
+
id: string;
|
|
10
|
+
dirty: boolean;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
};
|
|
13
|
+
video: {
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
playIconColor?: string;
|
|
16
|
+
playIconSize?: number;
|
|
17
|
+
playIconType?: "fab-youtube" | "fa-play-circle" | "fa-play" | "fa-video";
|
|
18
|
+
thumbnail?: string;
|
|
19
|
+
type?: "youtube" | "vimeo";
|
|
20
|
+
url?: string;
|
|
21
|
+
videoId?: string;
|
|
22
|
+
};
|
|
23
|
+
href: {
|
|
24
|
+
name: string;
|
|
25
|
+
attrs?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
href?: string;
|
|
28
|
+
target?: string;
|
|
29
|
+
onClick?: unknown;
|
|
30
|
+
class?: string;
|
|
31
|
+
download?: boolean;
|
|
32
|
+
};
|
|
33
|
+
values?: Record<string, string | number | {
|
|
34
|
+
label?: string;
|
|
35
|
+
value?: string | number;
|
|
36
|
+
}[]>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
import type { BodyValues } from '../containers/body';
|
|
41
|
+
import type { ColumnValues } from '../containers/column';
|
|
42
|
+
import type { ContentValues } from '../containers/content';
|
|
43
|
+
import type { RowValues } from '../containers/row';
|
|
44
|
+
import type { MergeTagsValues } from '../editor/merge-tags';
|
|
45
|
+
|
|
46
|
+
type VideoExporter = (
|
|
47
|
+
renderValues: ContentValues & VideoValues,
|
|
48
|
+
index: number, // @deprecated use last param instead
|
|
49
|
+
columnIndex: number, // @deprecated use last param instead
|
|
50
|
+
rowCells: number[], // @deprecated use last param instead
|
|
51
|
+
bodyValues: BodyValues, // @deprecated use last param instead
|
|
52
|
+
rowValues: RowValues, // @deprecated use last param instead
|
|
53
|
+
embeddedValues: Record<string, unknown>, // @deprecated use last param instead
|
|
54
|
+
meta: {
|
|
55
|
+
index: number;
|
|
56
|
+
columnIndex: number;
|
|
57
|
+
columnValues: ColumnValues;
|
|
58
|
+
rowIndex: number;
|
|
59
|
+
rowCells: number[];
|
|
60
|
+
rowValues: RowValues;
|
|
61
|
+
bodyValues: BodyValues;
|
|
62
|
+
|
|
63
|
+
embeddedValues: Record<string, unknown>;
|
|
64
|
+
mergeTagState: {
|
|
65
|
+
mergeTagGroup: string;
|
|
66
|
+
mergeTagRule: string;
|
|
67
|
+
mergeTags: MergeTagsValues;
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
) => string;
|
|
71
|
+
|
|
72
|
+
export type VideoExporters = Partial<Record<ExporterName, VideoExporter>>;
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unlayer/types",
|
|
3
|
+
"version": "1.386.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./editor": {
|
|
14
|
+
"types": "./dist/editor/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./editor/*": {
|
|
17
|
+
"types": "./dist/editor/*.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./containers": {
|
|
20
|
+
"types": "./dist/containers/index.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./containers/*": {
|
|
23
|
+
"types": "./dist/containers/*.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./tools": {
|
|
26
|
+
"types": "./dist/tools/index.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./tools/*": {
|
|
29
|
+
"types": "./dist/tools/*.d.ts"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"clean": "rm -rf dist __generated__",
|
|
34
|
+
"prebuild": "npm run clean && npm run build:legacy-unlayer-types",
|
|
35
|
+
"build": "node scripts/build-types.js && node scripts/build-values-types.js",
|
|
36
|
+
"prebuild:legacy-unlayer-types": "npm run clean",
|
|
37
|
+
"build:legacy-unlayer-types": "cd ../../packages/editor/src/embed; npx tsc > /dev/null; cd ../../../../packages/unlayer-types; mkdir -p ../../packages/unlayer-types/__generated__/; cp -r ../../packages/editor/src/embed/__generated__/embed.d.ts ../../packages/unlayer-types/__generated__/legacy-unlayer-types.d.ts",
|
|
38
|
+
"test": "node scripts/test-types.js",
|
|
39
|
+
"release": "node scripts/release.js"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"typescript": "5.9.3"
|
|
43
|
+
}
|
|
44
|
+
}
|