document-content-model 1.3.0 → 1.4.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/index.cjs +10 -0
- package/dist/index.d.cts +526 -1
- package/dist/index.d.ts +526 -1
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -529,6 +529,14 @@ const LayoutDocumentSchema = zod.z.object({
|
|
|
529
529
|
images: zod.z.record(zod.z.string(), LayoutImageAssetSchema)
|
|
530
530
|
});
|
|
531
531
|
//#endregion
|
|
532
|
+
//#region src/package.ts
|
|
533
|
+
const DOCUMENT_PACKAGE_FORMAT_VERSION = 1;
|
|
534
|
+
const DocumentPackageSchema = zod.z.object({
|
|
535
|
+
formatVersion: zod.z.literal(1),
|
|
536
|
+
content: ContentDocumentSchema,
|
|
537
|
+
layout: LayoutDocumentSchema.optional()
|
|
538
|
+
});
|
|
539
|
+
//#endregion
|
|
532
540
|
exports.AlignmentSchema = AlignmentSchema;
|
|
533
541
|
exports.BoxSchema = BoxSchema;
|
|
534
542
|
exports.COLOR_BLACK = COLOR_BLACK;
|
|
@@ -565,6 +573,8 @@ exports.ContentTableRowSchema = ContentTableRowSchema;
|
|
|
565
573
|
exports.ContentTableSchema = ContentTableSchema;
|
|
566
574
|
exports.ContentVectorSchema = ContentVectorSchema;
|
|
567
575
|
exports.DEFAULT_LAYOUT_FONT = DEFAULT_LAYOUT_FONT;
|
|
576
|
+
exports.DOCUMENT_PACKAGE_FORMAT_VERSION = DOCUMENT_PACKAGE_FORMAT_VERSION;
|
|
577
|
+
exports.DocumentPackageSchema = DocumentPackageSchema;
|
|
568
578
|
exports.LAYOUT_FORMAT_VERSION = LAYOUT_FORMAT_VERSION;
|
|
569
579
|
exports.LayoutDocumentSchema = LayoutDocumentSchema;
|
|
570
580
|
exports.LayoutEllipseSchema = LayoutEllipseSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1888,4 +1888,529 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
1888
1888
|
}, z.core.$strip>;
|
|
1889
1889
|
type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
|
|
1890
1890
|
//#endregion
|
|
1891
|
-
|
|
1891
|
+
//#region src/package.d.ts
|
|
1892
|
+
declare const DOCUMENT_PACKAGE_FORMAT_VERSION = 1;
|
|
1893
|
+
declare const DocumentPackageSchema: z.ZodObject<{
|
|
1894
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1895
|
+
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1896
|
+
kind: z.ZodLiteral<"wordprocessing">;
|
|
1897
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1898
|
+
metadata: z.ZodObject<{
|
|
1899
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1900
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1901
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1902
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1903
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
1904
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
}, z.core.$strip>;
|
|
1908
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
1909
|
+
pageSize: z.ZodObject<{
|
|
1910
|
+
widthPt: z.ZodNumber;
|
|
1911
|
+
heightPt: z.ZodNumber;
|
|
1912
|
+
}, z.core.$strip>;
|
|
1913
|
+
margins: z.ZodObject<{
|
|
1914
|
+
topPt: z.ZodNumber;
|
|
1915
|
+
rightPt: z.ZodNumber;
|
|
1916
|
+
bottomPt: z.ZodNumber;
|
|
1917
|
+
leftPt: z.ZodNumber;
|
|
1918
|
+
}, z.core.$strip>;
|
|
1919
|
+
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
1920
|
+
}, z.core.$strip>>;
|
|
1921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1922
|
+
kind: z.ZodLiteral<"presentation">;
|
|
1923
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1924
|
+
metadata: z.ZodObject<{
|
|
1925
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1927
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1928
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1929
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
1930
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
1931
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
1932
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
}, z.core.$strip>;
|
|
1934
|
+
slides: z.ZodArray<z.ZodObject<{
|
|
1935
|
+
size: z.ZodObject<{
|
|
1936
|
+
widthPt: z.ZodNumber;
|
|
1937
|
+
heightPt: z.ZodNumber;
|
|
1938
|
+
}, z.core.$strip>;
|
|
1939
|
+
shapes: z.ZodArray<z.ZodObject<{
|
|
1940
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1941
|
+
frame: z.ZodObject<{
|
|
1942
|
+
xPt: z.ZodNumber;
|
|
1943
|
+
yPt: z.ZodNumber;
|
|
1944
|
+
widthPt: z.ZodNumber;
|
|
1945
|
+
heightPt: z.ZodNumber;
|
|
1946
|
+
}, z.core.$strip>;
|
|
1947
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1948
|
+
insetLeftPt: z.ZodNumber;
|
|
1949
|
+
insetTopPt: z.ZodNumber;
|
|
1950
|
+
insetRightPt: z.ZodNumber;
|
|
1951
|
+
insetBottomPt: z.ZodNumber;
|
|
1952
|
+
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
1953
|
+
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
1954
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1955
|
+
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
1956
|
+
}, z.core.$strip>>;
|
|
1957
|
+
notes: z.ZodString;
|
|
1958
|
+
}, z.core.$strip>>;
|
|
1959
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1960
|
+
kind: z.ZodLiteral<"spreadsheet">;
|
|
1961
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1962
|
+
metadata: z.ZodObject<{
|
|
1963
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1967
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
1969
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
}, z.core.$strip>;
|
|
1972
|
+
sheets: z.ZodArray<z.ZodObject<{
|
|
1973
|
+
name: z.ZodString;
|
|
1974
|
+
cells: z.ZodArray<z.ZodObject<{
|
|
1975
|
+
row: z.ZodNumber;
|
|
1976
|
+
column: z.ZodNumber;
|
|
1977
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1978
|
+
kind: z.ZodLiteral<"number">;
|
|
1979
|
+
value: z.ZodNumber;
|
|
1980
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1981
|
+
kind: z.ZodLiteral<"percentage">;
|
|
1982
|
+
value: z.ZodNumber;
|
|
1983
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1984
|
+
kind: z.ZodLiteral<"currency">;
|
|
1985
|
+
value: z.ZodNumber;
|
|
1986
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1988
|
+
kind: z.ZodLiteral<"boolean">;
|
|
1989
|
+
value: z.ZodBoolean;
|
|
1990
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1991
|
+
kind: z.ZodLiteral<"date">;
|
|
1992
|
+
value: z.ZodString;
|
|
1993
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1994
|
+
kind: z.ZodLiteral<"time">;
|
|
1995
|
+
value: z.ZodString;
|
|
1996
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1997
|
+
kind: z.ZodLiteral<"string">;
|
|
1998
|
+
value: z.ZodString;
|
|
1999
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2000
|
+
kind: z.ZodLiteral<"error">;
|
|
2001
|
+
value: z.ZodString;
|
|
2002
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2003
|
+
kind: z.ZodLiteral<"empty">;
|
|
2004
|
+
}, z.core.$strip>], "kind">;
|
|
2005
|
+
formula: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
displayText: z.ZodString;
|
|
2007
|
+
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2008
|
+
text: z.ZodString;
|
|
2009
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
2010
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
2011
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
2012
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
2013
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2014
|
+
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
2015
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
2016
|
+
r: z.ZodNumber;
|
|
2017
|
+
g: z.ZodNumber;
|
|
2018
|
+
b: z.ZodNumber;
|
|
2019
|
+
}, z.core.$strip>>;
|
|
2020
|
+
hyperlink: z.ZodOptional<z.ZodString>;
|
|
2021
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2022
|
+
}, z.core.$strip>>>;
|
|
2023
|
+
colSpan: z.ZodOptional<z.ZodNumber>;
|
|
2024
|
+
rowSpan: z.ZodOptional<z.ZodNumber>;
|
|
2025
|
+
}, z.core.$strip>>;
|
|
2026
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
2027
|
+
index: z.ZodNumber;
|
|
2028
|
+
widthPt: z.ZodNumber;
|
|
2029
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2030
|
+
}, z.core.$strip>>;
|
|
2031
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
2032
|
+
index: z.ZodNumber;
|
|
2033
|
+
heightPt: z.ZodNumber;
|
|
2034
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2035
|
+
}, z.core.$strip>>;
|
|
2036
|
+
images: z.ZodArray<z.ZodObject<{
|
|
2037
|
+
kind: z.ZodLiteral<"image">;
|
|
2038
|
+
format: z.ZodEnum<{
|
|
2039
|
+
png: "png";
|
|
2040
|
+
jpeg: "jpeg";
|
|
2041
|
+
}>;
|
|
2042
|
+
base64: z.ZodString;
|
|
2043
|
+
widthPt: z.ZodNumber;
|
|
2044
|
+
heightPt: z.ZodNumber;
|
|
2045
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
2046
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
anchorRow: z.ZodNumber;
|
|
2048
|
+
anchorColumn: z.ZodNumber;
|
|
2049
|
+
offsetXPt: z.ZodNumber;
|
|
2050
|
+
offsetYPt: z.ZodNumber;
|
|
2051
|
+
}, z.core.$strip>>;
|
|
2052
|
+
printSettings: z.ZodObject<{
|
|
2053
|
+
pageSize: z.ZodObject<{
|
|
2054
|
+
widthPt: z.ZodNumber;
|
|
2055
|
+
heightPt: z.ZodNumber;
|
|
2056
|
+
}, z.core.$strip>;
|
|
2057
|
+
margins: z.ZodObject<{
|
|
2058
|
+
topPt: z.ZodNumber;
|
|
2059
|
+
rightPt: z.ZodNumber;
|
|
2060
|
+
bottomPt: z.ZodNumber;
|
|
2061
|
+
leftPt: z.ZodNumber;
|
|
2062
|
+
}, z.core.$strip>;
|
|
2063
|
+
printRange: z.ZodOptional<z.ZodObject<{
|
|
2064
|
+
startRow: z.ZodNumber;
|
|
2065
|
+
startColumn: z.ZodNumber;
|
|
2066
|
+
endRow: z.ZodNumber;
|
|
2067
|
+
endColumn: z.ZodNumber;
|
|
2068
|
+
}, z.core.$strip>>;
|
|
2069
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
2070
|
+
fitToPages: z.ZodOptional<z.ZodObject<{
|
|
2071
|
+
width: z.ZodNumber;
|
|
2072
|
+
height: z.ZodNumber;
|
|
2073
|
+
}, z.core.$strip>>;
|
|
2074
|
+
repeatRows: z.ZodOptional<z.ZodObject<{
|
|
2075
|
+
start: z.ZodNumber;
|
|
2076
|
+
end: z.ZodNumber;
|
|
2077
|
+
}, z.core.$strip>>;
|
|
2078
|
+
repeatColumns: z.ZodOptional<z.ZodObject<{
|
|
2079
|
+
start: z.ZodNumber;
|
|
2080
|
+
end: z.ZodNumber;
|
|
2081
|
+
}, z.core.$strip>>;
|
|
2082
|
+
gridlines: z.ZodBoolean;
|
|
2083
|
+
headers: z.ZodBoolean;
|
|
2084
|
+
pageOrder: z.ZodEnum<{
|
|
2085
|
+
downThenOver: "downThenOver";
|
|
2086
|
+
overThenDown: "overThenDown";
|
|
2087
|
+
}>;
|
|
2088
|
+
manualBreaks: z.ZodOptional<z.ZodObject<{
|
|
2089
|
+
rows: z.ZodArray<z.ZodNumber>;
|
|
2090
|
+
columns: z.ZodArray<z.ZodNumber>;
|
|
2091
|
+
}, z.core.$strip>>;
|
|
2092
|
+
}, z.core.$strip>;
|
|
2093
|
+
embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>>>;
|
|
2094
|
+
}, z.core.$strip>>;
|
|
2095
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2096
|
+
kind: z.ZodLiteral<"drawing">;
|
|
2097
|
+
formatVersion: z.ZodLiteral<1>;
|
|
2098
|
+
metadata: z.ZodObject<{
|
|
2099
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2101
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2103
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
2104
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
2105
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
2106
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2107
|
+
}, z.core.$strip>;
|
|
2108
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
2109
|
+
size: z.ZodObject<{
|
|
2110
|
+
widthPt: z.ZodNumber;
|
|
2111
|
+
heightPt: z.ZodNumber;
|
|
2112
|
+
}, z.core.$strip>;
|
|
2113
|
+
shapes: z.ZodArray<z.ZodObject<{
|
|
2114
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2115
|
+
frame: z.ZodObject<{
|
|
2116
|
+
xPt: z.ZodNumber;
|
|
2117
|
+
yPt: z.ZodNumber;
|
|
2118
|
+
widthPt: z.ZodNumber;
|
|
2119
|
+
heightPt: z.ZodNumber;
|
|
2120
|
+
}, z.core.$strip>;
|
|
2121
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
2122
|
+
insetLeftPt: z.ZodNumber;
|
|
2123
|
+
insetTopPt: z.ZodNumber;
|
|
2124
|
+
insetRightPt: z.ZodNumber;
|
|
2125
|
+
insetBottomPt: z.ZodNumber;
|
|
2126
|
+
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
2127
|
+
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
2128
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2129
|
+
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
2130
|
+
}, z.core.$strip>>;
|
|
2131
|
+
vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2132
|
+
kind: z.ZodLiteral<"rect">;
|
|
2133
|
+
frame: z.ZodObject<{
|
|
2134
|
+
xPt: z.ZodNumber;
|
|
2135
|
+
yPt: z.ZodNumber;
|
|
2136
|
+
widthPt: z.ZodNumber;
|
|
2137
|
+
heightPt: z.ZodNumber;
|
|
2138
|
+
}, z.core.$strip>;
|
|
2139
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2140
|
+
r: z.ZodNumber;
|
|
2141
|
+
g: z.ZodNumber;
|
|
2142
|
+
b: z.ZodNumber;
|
|
2143
|
+
}, z.core.$strip>>;
|
|
2144
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2145
|
+
color: z.ZodObject<{
|
|
2146
|
+
r: z.ZodNumber;
|
|
2147
|
+
g: z.ZodNumber;
|
|
2148
|
+
b: z.ZodNumber;
|
|
2149
|
+
}, z.core.$strip>;
|
|
2150
|
+
widthPt: z.ZodNumber;
|
|
2151
|
+
}, z.core.$strip>>;
|
|
2152
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2154
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
2155
|
+
frame: z.ZodObject<{
|
|
2156
|
+
xPt: z.ZodNumber;
|
|
2157
|
+
yPt: z.ZodNumber;
|
|
2158
|
+
widthPt: z.ZodNumber;
|
|
2159
|
+
heightPt: z.ZodNumber;
|
|
2160
|
+
}, z.core.$strip>;
|
|
2161
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2162
|
+
r: z.ZodNumber;
|
|
2163
|
+
g: z.ZodNumber;
|
|
2164
|
+
b: z.ZodNumber;
|
|
2165
|
+
}, z.core.$strip>>;
|
|
2166
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2167
|
+
color: z.ZodObject<{
|
|
2168
|
+
r: z.ZodNumber;
|
|
2169
|
+
g: z.ZodNumber;
|
|
2170
|
+
b: z.ZodNumber;
|
|
2171
|
+
}, z.core.$strip>;
|
|
2172
|
+
widthPt: z.ZodNumber;
|
|
2173
|
+
}, z.core.$strip>>;
|
|
2174
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2176
|
+
kind: z.ZodLiteral<"line">;
|
|
2177
|
+
from: z.ZodObject<{
|
|
2178
|
+
xPt: z.ZodNumber;
|
|
2179
|
+
yPt: z.ZodNumber;
|
|
2180
|
+
}, z.core.$strip>;
|
|
2181
|
+
to: z.ZodObject<{
|
|
2182
|
+
xPt: z.ZodNumber;
|
|
2183
|
+
yPt: z.ZodNumber;
|
|
2184
|
+
}, z.core.$strip>;
|
|
2185
|
+
stroke: z.ZodObject<{
|
|
2186
|
+
color: z.ZodObject<{
|
|
2187
|
+
r: z.ZodNumber;
|
|
2188
|
+
g: z.ZodNumber;
|
|
2189
|
+
b: z.ZodNumber;
|
|
2190
|
+
}, z.core.$strip>;
|
|
2191
|
+
widthPt: z.ZodNumber;
|
|
2192
|
+
}, z.core.$strip>;
|
|
2193
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2195
|
+
kind: z.ZodLiteral<"path">;
|
|
2196
|
+
frame: z.ZodObject<{
|
|
2197
|
+
xPt: z.ZodNumber;
|
|
2198
|
+
yPt: z.ZodNumber;
|
|
2199
|
+
widthPt: z.ZodNumber;
|
|
2200
|
+
heightPt: z.ZodNumber;
|
|
2201
|
+
}, z.core.$strip>;
|
|
2202
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
2203
|
+
start: z.ZodObject<{
|
|
2204
|
+
xPt: z.ZodNumber;
|
|
2205
|
+
yPt: z.ZodNumber;
|
|
2206
|
+
}, z.core.$strip>;
|
|
2207
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2208
|
+
kind: z.ZodLiteral<"line">;
|
|
2209
|
+
to: z.ZodObject<{
|
|
2210
|
+
xPt: z.ZodNumber;
|
|
2211
|
+
yPt: z.ZodNumber;
|
|
2212
|
+
}, z.core.$strip>;
|
|
2213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2214
|
+
kind: z.ZodLiteral<"cubic">;
|
|
2215
|
+
control1: z.ZodObject<{
|
|
2216
|
+
xPt: z.ZodNumber;
|
|
2217
|
+
yPt: z.ZodNumber;
|
|
2218
|
+
}, z.core.$strip>;
|
|
2219
|
+
control2: z.ZodObject<{
|
|
2220
|
+
xPt: z.ZodNumber;
|
|
2221
|
+
yPt: z.ZodNumber;
|
|
2222
|
+
}, z.core.$strip>;
|
|
2223
|
+
to: z.ZodObject<{
|
|
2224
|
+
xPt: z.ZodNumber;
|
|
2225
|
+
yPt: z.ZodNumber;
|
|
2226
|
+
}, z.core.$strip>;
|
|
2227
|
+
}, z.core.$strip>], "kind">>;
|
|
2228
|
+
closed: z.ZodBoolean;
|
|
2229
|
+
}, z.core.$strip>>;
|
|
2230
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2231
|
+
r: z.ZodNumber;
|
|
2232
|
+
g: z.ZodNumber;
|
|
2233
|
+
b: z.ZodNumber;
|
|
2234
|
+
}, z.core.$strip>>;
|
|
2235
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
2236
|
+
nonzero: "nonzero";
|
|
2237
|
+
evenodd: "evenodd";
|
|
2238
|
+
}>>;
|
|
2239
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2240
|
+
color: z.ZodObject<{
|
|
2241
|
+
r: z.ZodNumber;
|
|
2242
|
+
g: z.ZodNumber;
|
|
2243
|
+
b: z.ZodNumber;
|
|
2244
|
+
}, z.core.$strip>;
|
|
2245
|
+
widthPt: z.ZodNumber;
|
|
2246
|
+
}, z.core.$strip>>;
|
|
2247
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2248
|
+
}, z.core.$strip>], "kind">>;
|
|
2249
|
+
}, z.core.$strip>>;
|
|
2250
|
+
}, z.core.$strip>], "kind">;
|
|
2251
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
2252
|
+
formatVersion: z.ZodLiteral<1>;
|
|
2253
|
+
metadata: z.ZodObject<{
|
|
2254
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2255
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2256
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
2257
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2258
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
2259
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
2260
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
2261
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2262
|
+
}, z.core.$strip>;
|
|
2263
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
2264
|
+
widthPt: z.ZodNumber;
|
|
2265
|
+
heightPt: z.ZodNumber;
|
|
2266
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2267
|
+
kind: z.ZodLiteral<"text">;
|
|
2268
|
+
text: z.ZodString;
|
|
2269
|
+
xPt: z.ZodNumber;
|
|
2270
|
+
yPt: z.ZodNumber;
|
|
2271
|
+
font: z.ZodObject<{
|
|
2272
|
+
family: z.ZodString;
|
|
2273
|
+
weight: z.ZodEnum<{
|
|
2274
|
+
normal: "normal";
|
|
2275
|
+
bold: "bold";
|
|
2276
|
+
}>;
|
|
2277
|
+
style: z.ZodEnum<{
|
|
2278
|
+
normal: "normal";
|
|
2279
|
+
italic: "italic";
|
|
2280
|
+
}>;
|
|
2281
|
+
}, z.core.$strip>;
|
|
2282
|
+
sizePt: z.ZodNumber;
|
|
2283
|
+
color: z.ZodObject<{
|
|
2284
|
+
r: z.ZodNumber;
|
|
2285
|
+
g: z.ZodNumber;
|
|
2286
|
+
b: z.ZodNumber;
|
|
2287
|
+
}, z.core.$strip>;
|
|
2288
|
+
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
2289
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
2290
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
2291
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2293
|
+
kind: z.ZodLiteral<"image">;
|
|
2294
|
+
imageId: z.ZodString;
|
|
2295
|
+
xPt: z.ZodNumber;
|
|
2296
|
+
yPt: z.ZodNumber;
|
|
2297
|
+
widthPt: z.ZodNumber;
|
|
2298
|
+
heightPt: z.ZodNumber;
|
|
2299
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
2300
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2302
|
+
kind: z.ZodLiteral<"rect">;
|
|
2303
|
+
xPt: z.ZodNumber;
|
|
2304
|
+
yPt: z.ZodNumber;
|
|
2305
|
+
widthPt: z.ZodNumber;
|
|
2306
|
+
heightPt: z.ZodNumber;
|
|
2307
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2308
|
+
r: z.ZodNumber;
|
|
2309
|
+
g: z.ZodNumber;
|
|
2310
|
+
b: z.ZodNumber;
|
|
2311
|
+
}, z.core.$strip>>;
|
|
2312
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2313
|
+
color: z.ZodObject<{
|
|
2314
|
+
r: z.ZodNumber;
|
|
2315
|
+
g: z.ZodNumber;
|
|
2316
|
+
b: z.ZodNumber;
|
|
2317
|
+
}, z.core.$strip>;
|
|
2318
|
+
widthPt: z.ZodNumber;
|
|
2319
|
+
}, z.core.$strip>>;
|
|
2320
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2322
|
+
kind: z.ZodLiteral<"line">;
|
|
2323
|
+
x1Pt: z.ZodNumber;
|
|
2324
|
+
y1Pt: z.ZodNumber;
|
|
2325
|
+
x2Pt: z.ZodNumber;
|
|
2326
|
+
y2Pt: z.ZodNumber;
|
|
2327
|
+
color: z.ZodObject<{
|
|
2328
|
+
r: z.ZodNumber;
|
|
2329
|
+
g: z.ZodNumber;
|
|
2330
|
+
b: z.ZodNumber;
|
|
2331
|
+
}, z.core.$strip>;
|
|
2332
|
+
widthPt: z.ZodNumber;
|
|
2333
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2335
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
2336
|
+
xPt: z.ZodNumber;
|
|
2337
|
+
yPt: z.ZodNumber;
|
|
2338
|
+
widthPt: z.ZodNumber;
|
|
2339
|
+
heightPt: z.ZodNumber;
|
|
2340
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2341
|
+
r: z.ZodNumber;
|
|
2342
|
+
g: z.ZodNumber;
|
|
2343
|
+
b: z.ZodNumber;
|
|
2344
|
+
}, z.core.$strip>>;
|
|
2345
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2346
|
+
color: z.ZodObject<{
|
|
2347
|
+
r: z.ZodNumber;
|
|
2348
|
+
g: z.ZodNumber;
|
|
2349
|
+
b: z.ZodNumber;
|
|
2350
|
+
}, z.core.$strip>;
|
|
2351
|
+
widthPt: z.ZodNumber;
|
|
2352
|
+
}, z.core.$strip>>;
|
|
2353
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2355
|
+
kind: z.ZodLiteral<"path">;
|
|
2356
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
2357
|
+
startXPt: z.ZodNumber;
|
|
2358
|
+
startYPt: z.ZodNumber;
|
|
2359
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2360
|
+
kind: z.ZodLiteral<"line">;
|
|
2361
|
+
xPt: z.ZodNumber;
|
|
2362
|
+
yPt: z.ZodNumber;
|
|
2363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2364
|
+
kind: z.ZodLiteral<"cubic">;
|
|
2365
|
+
c1xPt: z.ZodNumber;
|
|
2366
|
+
c1yPt: z.ZodNumber;
|
|
2367
|
+
c2xPt: z.ZodNumber;
|
|
2368
|
+
c2yPt: z.ZodNumber;
|
|
2369
|
+
xPt: z.ZodNumber;
|
|
2370
|
+
yPt: z.ZodNumber;
|
|
2371
|
+
}, z.core.$strip>], "kind">>;
|
|
2372
|
+
closed: z.ZodBoolean;
|
|
2373
|
+
}, z.core.$strip>>;
|
|
2374
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2375
|
+
r: z.ZodNumber;
|
|
2376
|
+
g: z.ZodNumber;
|
|
2377
|
+
b: z.ZodNumber;
|
|
2378
|
+
}, z.core.$strip>>;
|
|
2379
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
2380
|
+
nonzero: "nonzero";
|
|
2381
|
+
evenodd: "evenodd";
|
|
2382
|
+
}>>;
|
|
2383
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2384
|
+
color: z.ZodObject<{
|
|
2385
|
+
r: z.ZodNumber;
|
|
2386
|
+
g: z.ZodNumber;
|
|
2387
|
+
b: z.ZodNumber;
|
|
2388
|
+
}, z.core.$strip>;
|
|
2389
|
+
widthPt: z.ZodNumber;
|
|
2390
|
+
}, z.core.$strip>>;
|
|
2391
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2392
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2393
|
+
kind: z.ZodLiteral<"link">;
|
|
2394
|
+
uri: z.ZodString;
|
|
2395
|
+
xPt: z.ZodNumber;
|
|
2396
|
+
yPt: z.ZodNumber;
|
|
2397
|
+
widthPt: z.ZodNumber;
|
|
2398
|
+
heightPt: z.ZodNumber;
|
|
2399
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2400
|
+
}, z.core.$strip>], "kind">>;
|
|
2401
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2402
|
+
}, z.core.$strip>>;
|
|
2403
|
+
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2404
|
+
format: z.ZodEnum<{
|
|
2405
|
+
png: "png";
|
|
2406
|
+
jpeg: "jpeg";
|
|
2407
|
+
}>;
|
|
2408
|
+
base64: z.ZodString;
|
|
2409
|
+
widthPx: z.ZodNumber;
|
|
2410
|
+
heightPx: z.ZodNumber;
|
|
2411
|
+
}, z.core.$strip>>;
|
|
2412
|
+
}, z.core.$strip>>;
|
|
2413
|
+
}, z.core.$strip>;
|
|
2414
|
+
type DocumentPackage = z.infer<typeof DocumentPackageSchema>;
|
|
2415
|
+
//#endregion
|
|
2416
|
+
export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DOCUMENT_PACKAGE_FORMAT_VERSION, DocumentPackage, DocumentPackageSchema, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
package/dist/index.d.ts
CHANGED
|
@@ -1888,4 +1888,529 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
1888
1888
|
}, z.core.$strip>;
|
|
1889
1889
|
type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
|
|
1890
1890
|
//#endregion
|
|
1891
|
-
|
|
1891
|
+
//#region src/package.d.ts
|
|
1892
|
+
declare const DOCUMENT_PACKAGE_FORMAT_VERSION = 1;
|
|
1893
|
+
declare const DocumentPackageSchema: z.ZodObject<{
|
|
1894
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1895
|
+
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1896
|
+
kind: z.ZodLiteral<"wordprocessing">;
|
|
1897
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1898
|
+
metadata: z.ZodObject<{
|
|
1899
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1900
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1901
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1902
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1903
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
1904
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
}, z.core.$strip>;
|
|
1908
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
1909
|
+
pageSize: z.ZodObject<{
|
|
1910
|
+
widthPt: z.ZodNumber;
|
|
1911
|
+
heightPt: z.ZodNumber;
|
|
1912
|
+
}, z.core.$strip>;
|
|
1913
|
+
margins: z.ZodObject<{
|
|
1914
|
+
topPt: z.ZodNumber;
|
|
1915
|
+
rightPt: z.ZodNumber;
|
|
1916
|
+
bottomPt: z.ZodNumber;
|
|
1917
|
+
leftPt: z.ZodNumber;
|
|
1918
|
+
}, z.core.$strip>;
|
|
1919
|
+
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
1920
|
+
}, z.core.$strip>>;
|
|
1921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1922
|
+
kind: z.ZodLiteral<"presentation">;
|
|
1923
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1924
|
+
metadata: z.ZodObject<{
|
|
1925
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1927
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1928
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1929
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
1930
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
1931
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
1932
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
}, z.core.$strip>;
|
|
1934
|
+
slides: z.ZodArray<z.ZodObject<{
|
|
1935
|
+
size: z.ZodObject<{
|
|
1936
|
+
widthPt: z.ZodNumber;
|
|
1937
|
+
heightPt: z.ZodNumber;
|
|
1938
|
+
}, z.core.$strip>;
|
|
1939
|
+
shapes: z.ZodArray<z.ZodObject<{
|
|
1940
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1941
|
+
frame: z.ZodObject<{
|
|
1942
|
+
xPt: z.ZodNumber;
|
|
1943
|
+
yPt: z.ZodNumber;
|
|
1944
|
+
widthPt: z.ZodNumber;
|
|
1945
|
+
heightPt: z.ZodNumber;
|
|
1946
|
+
}, z.core.$strip>;
|
|
1947
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1948
|
+
insetLeftPt: z.ZodNumber;
|
|
1949
|
+
insetTopPt: z.ZodNumber;
|
|
1950
|
+
insetRightPt: z.ZodNumber;
|
|
1951
|
+
insetBottomPt: z.ZodNumber;
|
|
1952
|
+
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
1953
|
+
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
1954
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1955
|
+
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
1956
|
+
}, z.core.$strip>>;
|
|
1957
|
+
notes: z.ZodString;
|
|
1958
|
+
}, z.core.$strip>>;
|
|
1959
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1960
|
+
kind: z.ZodLiteral<"spreadsheet">;
|
|
1961
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1962
|
+
metadata: z.ZodObject<{
|
|
1963
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
author: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1967
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
1969
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
}, z.core.$strip>;
|
|
1972
|
+
sheets: z.ZodArray<z.ZodObject<{
|
|
1973
|
+
name: z.ZodString;
|
|
1974
|
+
cells: z.ZodArray<z.ZodObject<{
|
|
1975
|
+
row: z.ZodNumber;
|
|
1976
|
+
column: z.ZodNumber;
|
|
1977
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1978
|
+
kind: z.ZodLiteral<"number">;
|
|
1979
|
+
value: z.ZodNumber;
|
|
1980
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1981
|
+
kind: z.ZodLiteral<"percentage">;
|
|
1982
|
+
value: z.ZodNumber;
|
|
1983
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1984
|
+
kind: z.ZodLiteral<"currency">;
|
|
1985
|
+
value: z.ZodNumber;
|
|
1986
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1988
|
+
kind: z.ZodLiteral<"boolean">;
|
|
1989
|
+
value: z.ZodBoolean;
|
|
1990
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1991
|
+
kind: z.ZodLiteral<"date">;
|
|
1992
|
+
value: z.ZodString;
|
|
1993
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1994
|
+
kind: z.ZodLiteral<"time">;
|
|
1995
|
+
value: z.ZodString;
|
|
1996
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1997
|
+
kind: z.ZodLiteral<"string">;
|
|
1998
|
+
value: z.ZodString;
|
|
1999
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2000
|
+
kind: z.ZodLiteral<"error">;
|
|
2001
|
+
value: z.ZodString;
|
|
2002
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2003
|
+
kind: z.ZodLiteral<"empty">;
|
|
2004
|
+
}, z.core.$strip>], "kind">;
|
|
2005
|
+
formula: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
displayText: z.ZodString;
|
|
2007
|
+
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2008
|
+
text: z.ZodString;
|
|
2009
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
2010
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
2011
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
2012
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
2013
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2014
|
+
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
2015
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
2016
|
+
r: z.ZodNumber;
|
|
2017
|
+
g: z.ZodNumber;
|
|
2018
|
+
b: z.ZodNumber;
|
|
2019
|
+
}, z.core.$strip>>;
|
|
2020
|
+
hyperlink: z.ZodOptional<z.ZodString>;
|
|
2021
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2022
|
+
}, z.core.$strip>>>;
|
|
2023
|
+
colSpan: z.ZodOptional<z.ZodNumber>;
|
|
2024
|
+
rowSpan: z.ZodOptional<z.ZodNumber>;
|
|
2025
|
+
}, z.core.$strip>>;
|
|
2026
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
2027
|
+
index: z.ZodNumber;
|
|
2028
|
+
widthPt: z.ZodNumber;
|
|
2029
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2030
|
+
}, z.core.$strip>>;
|
|
2031
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
2032
|
+
index: z.ZodNumber;
|
|
2033
|
+
heightPt: z.ZodNumber;
|
|
2034
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2035
|
+
}, z.core.$strip>>;
|
|
2036
|
+
images: z.ZodArray<z.ZodObject<{
|
|
2037
|
+
kind: z.ZodLiteral<"image">;
|
|
2038
|
+
format: z.ZodEnum<{
|
|
2039
|
+
png: "png";
|
|
2040
|
+
jpeg: "jpeg";
|
|
2041
|
+
}>;
|
|
2042
|
+
base64: z.ZodString;
|
|
2043
|
+
widthPt: z.ZodNumber;
|
|
2044
|
+
heightPt: z.ZodNumber;
|
|
2045
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
2046
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2047
|
+
anchorRow: z.ZodNumber;
|
|
2048
|
+
anchorColumn: z.ZodNumber;
|
|
2049
|
+
offsetXPt: z.ZodNumber;
|
|
2050
|
+
offsetYPt: z.ZodNumber;
|
|
2051
|
+
}, z.core.$strip>>;
|
|
2052
|
+
printSettings: z.ZodObject<{
|
|
2053
|
+
pageSize: z.ZodObject<{
|
|
2054
|
+
widthPt: z.ZodNumber;
|
|
2055
|
+
heightPt: z.ZodNumber;
|
|
2056
|
+
}, z.core.$strip>;
|
|
2057
|
+
margins: z.ZodObject<{
|
|
2058
|
+
topPt: z.ZodNumber;
|
|
2059
|
+
rightPt: z.ZodNumber;
|
|
2060
|
+
bottomPt: z.ZodNumber;
|
|
2061
|
+
leftPt: z.ZodNumber;
|
|
2062
|
+
}, z.core.$strip>;
|
|
2063
|
+
printRange: z.ZodOptional<z.ZodObject<{
|
|
2064
|
+
startRow: z.ZodNumber;
|
|
2065
|
+
startColumn: z.ZodNumber;
|
|
2066
|
+
endRow: z.ZodNumber;
|
|
2067
|
+
endColumn: z.ZodNumber;
|
|
2068
|
+
}, z.core.$strip>>;
|
|
2069
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
2070
|
+
fitToPages: z.ZodOptional<z.ZodObject<{
|
|
2071
|
+
width: z.ZodNumber;
|
|
2072
|
+
height: z.ZodNumber;
|
|
2073
|
+
}, z.core.$strip>>;
|
|
2074
|
+
repeatRows: z.ZodOptional<z.ZodObject<{
|
|
2075
|
+
start: z.ZodNumber;
|
|
2076
|
+
end: z.ZodNumber;
|
|
2077
|
+
}, z.core.$strip>>;
|
|
2078
|
+
repeatColumns: z.ZodOptional<z.ZodObject<{
|
|
2079
|
+
start: z.ZodNumber;
|
|
2080
|
+
end: z.ZodNumber;
|
|
2081
|
+
}, z.core.$strip>>;
|
|
2082
|
+
gridlines: z.ZodBoolean;
|
|
2083
|
+
headers: z.ZodBoolean;
|
|
2084
|
+
pageOrder: z.ZodEnum<{
|
|
2085
|
+
downThenOver: "downThenOver";
|
|
2086
|
+
overThenDown: "overThenDown";
|
|
2087
|
+
}>;
|
|
2088
|
+
manualBreaks: z.ZodOptional<z.ZodObject<{
|
|
2089
|
+
rows: z.ZodArray<z.ZodNumber>;
|
|
2090
|
+
columns: z.ZodArray<z.ZodNumber>;
|
|
2091
|
+
}, z.core.$strip>>;
|
|
2092
|
+
}, z.core.$strip>;
|
|
2093
|
+
embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>>>;
|
|
2094
|
+
}, z.core.$strip>>;
|
|
2095
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2096
|
+
kind: z.ZodLiteral<"drawing">;
|
|
2097
|
+
formatVersion: z.ZodLiteral<1>;
|
|
2098
|
+
metadata: z.ZodObject<{
|
|
2099
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2101
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2103
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
2104
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
2105
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
2106
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2107
|
+
}, z.core.$strip>;
|
|
2108
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
2109
|
+
size: z.ZodObject<{
|
|
2110
|
+
widthPt: z.ZodNumber;
|
|
2111
|
+
heightPt: z.ZodNumber;
|
|
2112
|
+
}, z.core.$strip>;
|
|
2113
|
+
shapes: z.ZodArray<z.ZodObject<{
|
|
2114
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2115
|
+
frame: z.ZodObject<{
|
|
2116
|
+
xPt: z.ZodNumber;
|
|
2117
|
+
yPt: z.ZodNumber;
|
|
2118
|
+
widthPt: z.ZodNumber;
|
|
2119
|
+
heightPt: z.ZodNumber;
|
|
2120
|
+
}, z.core.$strip>;
|
|
2121
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
2122
|
+
insetLeftPt: z.ZodNumber;
|
|
2123
|
+
insetTopPt: z.ZodNumber;
|
|
2124
|
+
insetRightPt: z.ZodNumber;
|
|
2125
|
+
insetBottomPt: z.ZodNumber;
|
|
2126
|
+
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
2127
|
+
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
2128
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2129
|
+
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
2130
|
+
}, z.core.$strip>>;
|
|
2131
|
+
vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2132
|
+
kind: z.ZodLiteral<"rect">;
|
|
2133
|
+
frame: z.ZodObject<{
|
|
2134
|
+
xPt: z.ZodNumber;
|
|
2135
|
+
yPt: z.ZodNumber;
|
|
2136
|
+
widthPt: z.ZodNumber;
|
|
2137
|
+
heightPt: z.ZodNumber;
|
|
2138
|
+
}, z.core.$strip>;
|
|
2139
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2140
|
+
r: z.ZodNumber;
|
|
2141
|
+
g: z.ZodNumber;
|
|
2142
|
+
b: z.ZodNumber;
|
|
2143
|
+
}, z.core.$strip>>;
|
|
2144
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2145
|
+
color: z.ZodObject<{
|
|
2146
|
+
r: z.ZodNumber;
|
|
2147
|
+
g: z.ZodNumber;
|
|
2148
|
+
b: z.ZodNumber;
|
|
2149
|
+
}, z.core.$strip>;
|
|
2150
|
+
widthPt: z.ZodNumber;
|
|
2151
|
+
}, z.core.$strip>>;
|
|
2152
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2154
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
2155
|
+
frame: z.ZodObject<{
|
|
2156
|
+
xPt: z.ZodNumber;
|
|
2157
|
+
yPt: z.ZodNumber;
|
|
2158
|
+
widthPt: z.ZodNumber;
|
|
2159
|
+
heightPt: z.ZodNumber;
|
|
2160
|
+
}, z.core.$strip>;
|
|
2161
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2162
|
+
r: z.ZodNumber;
|
|
2163
|
+
g: z.ZodNumber;
|
|
2164
|
+
b: z.ZodNumber;
|
|
2165
|
+
}, z.core.$strip>>;
|
|
2166
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2167
|
+
color: z.ZodObject<{
|
|
2168
|
+
r: z.ZodNumber;
|
|
2169
|
+
g: z.ZodNumber;
|
|
2170
|
+
b: z.ZodNumber;
|
|
2171
|
+
}, z.core.$strip>;
|
|
2172
|
+
widthPt: z.ZodNumber;
|
|
2173
|
+
}, z.core.$strip>>;
|
|
2174
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2176
|
+
kind: z.ZodLiteral<"line">;
|
|
2177
|
+
from: z.ZodObject<{
|
|
2178
|
+
xPt: z.ZodNumber;
|
|
2179
|
+
yPt: z.ZodNumber;
|
|
2180
|
+
}, z.core.$strip>;
|
|
2181
|
+
to: z.ZodObject<{
|
|
2182
|
+
xPt: z.ZodNumber;
|
|
2183
|
+
yPt: z.ZodNumber;
|
|
2184
|
+
}, z.core.$strip>;
|
|
2185
|
+
stroke: z.ZodObject<{
|
|
2186
|
+
color: z.ZodObject<{
|
|
2187
|
+
r: z.ZodNumber;
|
|
2188
|
+
g: z.ZodNumber;
|
|
2189
|
+
b: z.ZodNumber;
|
|
2190
|
+
}, z.core.$strip>;
|
|
2191
|
+
widthPt: z.ZodNumber;
|
|
2192
|
+
}, z.core.$strip>;
|
|
2193
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2195
|
+
kind: z.ZodLiteral<"path">;
|
|
2196
|
+
frame: z.ZodObject<{
|
|
2197
|
+
xPt: z.ZodNumber;
|
|
2198
|
+
yPt: z.ZodNumber;
|
|
2199
|
+
widthPt: z.ZodNumber;
|
|
2200
|
+
heightPt: z.ZodNumber;
|
|
2201
|
+
}, z.core.$strip>;
|
|
2202
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
2203
|
+
start: z.ZodObject<{
|
|
2204
|
+
xPt: z.ZodNumber;
|
|
2205
|
+
yPt: z.ZodNumber;
|
|
2206
|
+
}, z.core.$strip>;
|
|
2207
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2208
|
+
kind: z.ZodLiteral<"line">;
|
|
2209
|
+
to: z.ZodObject<{
|
|
2210
|
+
xPt: z.ZodNumber;
|
|
2211
|
+
yPt: z.ZodNumber;
|
|
2212
|
+
}, z.core.$strip>;
|
|
2213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2214
|
+
kind: z.ZodLiteral<"cubic">;
|
|
2215
|
+
control1: z.ZodObject<{
|
|
2216
|
+
xPt: z.ZodNumber;
|
|
2217
|
+
yPt: z.ZodNumber;
|
|
2218
|
+
}, z.core.$strip>;
|
|
2219
|
+
control2: z.ZodObject<{
|
|
2220
|
+
xPt: z.ZodNumber;
|
|
2221
|
+
yPt: z.ZodNumber;
|
|
2222
|
+
}, z.core.$strip>;
|
|
2223
|
+
to: z.ZodObject<{
|
|
2224
|
+
xPt: z.ZodNumber;
|
|
2225
|
+
yPt: z.ZodNumber;
|
|
2226
|
+
}, z.core.$strip>;
|
|
2227
|
+
}, z.core.$strip>], "kind">>;
|
|
2228
|
+
closed: z.ZodBoolean;
|
|
2229
|
+
}, z.core.$strip>>;
|
|
2230
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2231
|
+
r: z.ZodNumber;
|
|
2232
|
+
g: z.ZodNumber;
|
|
2233
|
+
b: z.ZodNumber;
|
|
2234
|
+
}, z.core.$strip>>;
|
|
2235
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
2236
|
+
nonzero: "nonzero";
|
|
2237
|
+
evenodd: "evenodd";
|
|
2238
|
+
}>>;
|
|
2239
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2240
|
+
color: z.ZodObject<{
|
|
2241
|
+
r: z.ZodNumber;
|
|
2242
|
+
g: z.ZodNumber;
|
|
2243
|
+
b: z.ZodNumber;
|
|
2244
|
+
}, z.core.$strip>;
|
|
2245
|
+
widthPt: z.ZodNumber;
|
|
2246
|
+
}, z.core.$strip>>;
|
|
2247
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2248
|
+
}, z.core.$strip>], "kind">>;
|
|
2249
|
+
}, z.core.$strip>>;
|
|
2250
|
+
}, z.core.$strip>], "kind">;
|
|
2251
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
2252
|
+
formatVersion: z.ZodLiteral<1>;
|
|
2253
|
+
metadata: z.ZodObject<{
|
|
2254
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2255
|
+
author: z.ZodOptional<z.ZodString>;
|
|
2256
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
2257
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2258
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
2259
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
2260
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
2261
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
2262
|
+
}, z.core.$strip>;
|
|
2263
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
2264
|
+
widthPt: z.ZodNumber;
|
|
2265
|
+
heightPt: z.ZodNumber;
|
|
2266
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2267
|
+
kind: z.ZodLiteral<"text">;
|
|
2268
|
+
text: z.ZodString;
|
|
2269
|
+
xPt: z.ZodNumber;
|
|
2270
|
+
yPt: z.ZodNumber;
|
|
2271
|
+
font: z.ZodObject<{
|
|
2272
|
+
family: z.ZodString;
|
|
2273
|
+
weight: z.ZodEnum<{
|
|
2274
|
+
normal: "normal";
|
|
2275
|
+
bold: "bold";
|
|
2276
|
+
}>;
|
|
2277
|
+
style: z.ZodEnum<{
|
|
2278
|
+
normal: "normal";
|
|
2279
|
+
italic: "italic";
|
|
2280
|
+
}>;
|
|
2281
|
+
}, z.core.$strip>;
|
|
2282
|
+
sizePt: z.ZodNumber;
|
|
2283
|
+
color: z.ZodObject<{
|
|
2284
|
+
r: z.ZodNumber;
|
|
2285
|
+
g: z.ZodNumber;
|
|
2286
|
+
b: z.ZodNumber;
|
|
2287
|
+
}, z.core.$strip>;
|
|
2288
|
+
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
2289
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
2290
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
2291
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2293
|
+
kind: z.ZodLiteral<"image">;
|
|
2294
|
+
imageId: z.ZodString;
|
|
2295
|
+
xPt: z.ZodNumber;
|
|
2296
|
+
yPt: z.ZodNumber;
|
|
2297
|
+
widthPt: z.ZodNumber;
|
|
2298
|
+
heightPt: z.ZodNumber;
|
|
2299
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
2300
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2302
|
+
kind: z.ZodLiteral<"rect">;
|
|
2303
|
+
xPt: z.ZodNumber;
|
|
2304
|
+
yPt: z.ZodNumber;
|
|
2305
|
+
widthPt: z.ZodNumber;
|
|
2306
|
+
heightPt: z.ZodNumber;
|
|
2307
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2308
|
+
r: z.ZodNumber;
|
|
2309
|
+
g: z.ZodNumber;
|
|
2310
|
+
b: z.ZodNumber;
|
|
2311
|
+
}, z.core.$strip>>;
|
|
2312
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2313
|
+
color: z.ZodObject<{
|
|
2314
|
+
r: z.ZodNumber;
|
|
2315
|
+
g: z.ZodNumber;
|
|
2316
|
+
b: z.ZodNumber;
|
|
2317
|
+
}, z.core.$strip>;
|
|
2318
|
+
widthPt: z.ZodNumber;
|
|
2319
|
+
}, z.core.$strip>>;
|
|
2320
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2322
|
+
kind: z.ZodLiteral<"line">;
|
|
2323
|
+
x1Pt: z.ZodNumber;
|
|
2324
|
+
y1Pt: z.ZodNumber;
|
|
2325
|
+
x2Pt: z.ZodNumber;
|
|
2326
|
+
y2Pt: z.ZodNumber;
|
|
2327
|
+
color: z.ZodObject<{
|
|
2328
|
+
r: z.ZodNumber;
|
|
2329
|
+
g: z.ZodNumber;
|
|
2330
|
+
b: z.ZodNumber;
|
|
2331
|
+
}, z.core.$strip>;
|
|
2332
|
+
widthPt: z.ZodNumber;
|
|
2333
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2335
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
2336
|
+
xPt: z.ZodNumber;
|
|
2337
|
+
yPt: z.ZodNumber;
|
|
2338
|
+
widthPt: z.ZodNumber;
|
|
2339
|
+
heightPt: z.ZodNumber;
|
|
2340
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2341
|
+
r: z.ZodNumber;
|
|
2342
|
+
g: z.ZodNumber;
|
|
2343
|
+
b: z.ZodNumber;
|
|
2344
|
+
}, z.core.$strip>>;
|
|
2345
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2346
|
+
color: z.ZodObject<{
|
|
2347
|
+
r: z.ZodNumber;
|
|
2348
|
+
g: z.ZodNumber;
|
|
2349
|
+
b: z.ZodNumber;
|
|
2350
|
+
}, z.core.$strip>;
|
|
2351
|
+
widthPt: z.ZodNumber;
|
|
2352
|
+
}, z.core.$strip>>;
|
|
2353
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2355
|
+
kind: z.ZodLiteral<"path">;
|
|
2356
|
+
subpaths: z.ZodArray<z.ZodObject<{
|
|
2357
|
+
startXPt: z.ZodNumber;
|
|
2358
|
+
startYPt: z.ZodNumber;
|
|
2359
|
+
segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2360
|
+
kind: z.ZodLiteral<"line">;
|
|
2361
|
+
xPt: z.ZodNumber;
|
|
2362
|
+
yPt: z.ZodNumber;
|
|
2363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2364
|
+
kind: z.ZodLiteral<"cubic">;
|
|
2365
|
+
c1xPt: z.ZodNumber;
|
|
2366
|
+
c1yPt: z.ZodNumber;
|
|
2367
|
+
c2xPt: z.ZodNumber;
|
|
2368
|
+
c2yPt: z.ZodNumber;
|
|
2369
|
+
xPt: z.ZodNumber;
|
|
2370
|
+
yPt: z.ZodNumber;
|
|
2371
|
+
}, z.core.$strip>], "kind">>;
|
|
2372
|
+
closed: z.ZodBoolean;
|
|
2373
|
+
}, z.core.$strip>>;
|
|
2374
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
2375
|
+
r: z.ZodNumber;
|
|
2376
|
+
g: z.ZodNumber;
|
|
2377
|
+
b: z.ZodNumber;
|
|
2378
|
+
}, z.core.$strip>>;
|
|
2379
|
+
fillRule: z.ZodOptional<z.ZodEnum<{
|
|
2380
|
+
nonzero: "nonzero";
|
|
2381
|
+
evenodd: "evenodd";
|
|
2382
|
+
}>>;
|
|
2383
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
2384
|
+
color: z.ZodObject<{
|
|
2385
|
+
r: z.ZodNumber;
|
|
2386
|
+
g: z.ZodNumber;
|
|
2387
|
+
b: z.ZodNumber;
|
|
2388
|
+
}, z.core.$strip>;
|
|
2389
|
+
widthPt: z.ZodNumber;
|
|
2390
|
+
}, z.core.$strip>>;
|
|
2391
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2392
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2393
|
+
kind: z.ZodLiteral<"link">;
|
|
2394
|
+
uri: z.ZodString;
|
|
2395
|
+
xPt: z.ZodNumber;
|
|
2396
|
+
yPt: z.ZodNumber;
|
|
2397
|
+
widthPt: z.ZodNumber;
|
|
2398
|
+
heightPt: z.ZodNumber;
|
|
2399
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
2400
|
+
}, z.core.$strip>], "kind">>;
|
|
2401
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2402
|
+
}, z.core.$strip>>;
|
|
2403
|
+
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2404
|
+
format: z.ZodEnum<{
|
|
2405
|
+
png: "png";
|
|
2406
|
+
jpeg: "jpeg";
|
|
2407
|
+
}>;
|
|
2408
|
+
base64: z.ZodString;
|
|
2409
|
+
widthPx: z.ZodNumber;
|
|
2410
|
+
heightPx: z.ZodNumber;
|
|
2411
|
+
}, z.core.$strip>>;
|
|
2412
|
+
}, z.core.$strip>>;
|
|
2413
|
+
}, z.core.$strip>;
|
|
2414
|
+
type DocumentPackage = z.infer<typeof DocumentPackageSchema>;
|
|
2415
|
+
//#endregion
|
|
2416
|
+
export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DOCUMENT_PACKAGE_FORMAT_VERSION, DocumentPackage, DocumentPackageSchema, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
package/dist/index.js
CHANGED
|
@@ -528,4 +528,12 @@ const LayoutDocumentSchema = z.object({
|
|
|
528
528
|
images: z.record(z.string(), LayoutImageAssetSchema)
|
|
529
529
|
});
|
|
530
530
|
//#endregion
|
|
531
|
-
|
|
531
|
+
//#region src/package.ts
|
|
532
|
+
const DOCUMENT_PACKAGE_FORMAT_VERSION = 1;
|
|
533
|
+
const DocumentPackageSchema = z.object({
|
|
534
|
+
formatVersion: z.literal(1),
|
|
535
|
+
content: ContentDocumentSchema,
|
|
536
|
+
layout: LayoutDocumentSchema.optional()
|
|
537
|
+
});
|
|
538
|
+
//#endregion
|
|
539
|
+
export { AlignmentSchema, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, ColorSchema, ContentBlockSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DOCUMENT_PACKAGE_FORMAT_VERSION, DocumentPackageSchema, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, LayoutEllipseSchema, LayoutFontSchema, LayoutImageAssetSchema, LayoutImageSchema, LayoutItemSchema, LayoutLineSchema, LayoutLinkSchema, LayoutMetadataSchema, LayoutPageSchema, LayoutPathSchema, LayoutPathSegmentSchema, LayoutRectSchema, LayoutSubpathSchema, LayoutTextSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-content-model",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "The canonical, format-agnostic content and layout schemas shared by ooxml.js, odf.js, and documents.js -- pure Zod schemas, no behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|