@docen/extensions 0.1.2 → 0.2.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/_chunks/types-or4xeozj.d.mts +890 -0
- package/dist/index.d.mts +9 -26
- package/dist/index.mjs +3627 -3629
- package/dist/types.d.mts +2 -682
- package/package.json +2 -2
package/dist/types.d.mts
CHANGED
|
@@ -1,682 +1,2 @@
|
|
|
1
|
-
import { JSONContent } from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/undio@0.2.0/node_modules/undio/dist/index.d.ts
|
|
5
|
-
type DataType = ArrayBufferLike | Base64 | Blob | DataView | Readable | number[] | ReadableStream | Response | string | Uint8Array;
|
|
6
|
-
type Base64 = string;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region ../../node_modules/.pnpm/docx-plus@0.0.13/node_modules/docx-plus/dist/index.d.mts
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/file/drawing/doc-properties/doc-properties.d.ts
|
|
11
|
-
interface DocPropertiesOptions {
|
|
12
|
-
readonly name: string;
|
|
13
|
-
readonly description?: string;
|
|
14
|
-
readonly title?: string;
|
|
15
|
-
readonly id?: string;
|
|
16
|
-
} //#endregion
|
|
17
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
|
|
18
|
-
interface SourceRectangleOptions {
|
|
19
|
-
readonly l?: number;
|
|
20
|
-
readonly t?: number;
|
|
21
|
-
readonly r?: number;
|
|
22
|
-
readonly b?: number;
|
|
23
|
-
} //#endregion
|
|
24
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/color-transform.d.ts
|
|
25
|
-
interface ColorTransformOptions {
|
|
26
|
-
readonly tint?: number;
|
|
27
|
-
readonly shade?: number;
|
|
28
|
-
readonly comp?: boolean;
|
|
29
|
-
readonly inv?: boolean;
|
|
30
|
-
readonly gray?: boolean;
|
|
31
|
-
readonly alpha?: number;
|
|
32
|
-
readonly alphaOff?: number;
|
|
33
|
-
readonly alphaMod?: number;
|
|
34
|
-
readonly hue?: number;
|
|
35
|
-
readonly hueOff?: number;
|
|
36
|
-
readonly hueMod?: number;
|
|
37
|
-
readonly sat?: number;
|
|
38
|
-
readonly satOff?: number;
|
|
39
|
-
readonly satMod?: number;
|
|
40
|
-
readonly lum?: number;
|
|
41
|
-
readonly lumOff?: number;
|
|
42
|
-
readonly lumMod?: number;
|
|
43
|
-
readonly red?: number;
|
|
44
|
-
readonly redOff?: number;
|
|
45
|
-
readonly redMod?: number;
|
|
46
|
-
readonly green?: number;
|
|
47
|
-
readonly greenOff?: number;
|
|
48
|
-
readonly greenMod?: number;
|
|
49
|
-
readonly blue?: number;
|
|
50
|
-
readonly blueOff?: number;
|
|
51
|
-
readonly blueMod?: number;
|
|
52
|
-
readonly gamma?: boolean;
|
|
53
|
-
readonly invGamma?: boolean;
|
|
54
|
-
} //#endregion
|
|
55
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/hsl-color.d.ts
|
|
56
|
-
interface HslColorOptions {
|
|
57
|
-
readonly hue: number;
|
|
58
|
-
readonly sat: number;
|
|
59
|
-
readonly lum: number;
|
|
60
|
-
readonly transforms?: ColorTransformOptions;
|
|
61
|
-
} //#endregion
|
|
62
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/preset-color.d.ts
|
|
63
|
-
declare const PresetColor: {
|
|
64
|
-
readonly ALICE_BLUE: "aliceBlue";
|
|
65
|
-
readonly ANTIQUE_WHITE: "antiqueWhite";
|
|
66
|
-
readonly AQUA: "aqua";
|
|
67
|
-
readonly AQUAMARINE: "aquamarine";
|
|
68
|
-
readonly AZURE: "azure";
|
|
69
|
-
readonly BEIGE: "beige";
|
|
70
|
-
readonly BISQUE: "bisque";
|
|
71
|
-
readonly BLACK: "black";
|
|
72
|
-
readonly BLANCHED_ALMOND: "blanchedAlmond";
|
|
73
|
-
readonly BLUE: "blue";
|
|
74
|
-
readonly BLUE_VIOLET: "blueViolet";
|
|
75
|
-
readonly BROWN: "brown";
|
|
76
|
-
readonly BURLY_WOOD: "burlyWood";
|
|
77
|
-
readonly CADET_BLUE: "cadetBlue";
|
|
78
|
-
readonly CHARTREUSE: "chartreuse";
|
|
79
|
-
readonly CHOCOLATE: "chocolate";
|
|
80
|
-
readonly CORAL: "coral";
|
|
81
|
-
readonly CORNFLOWER_BLUE: "cornflowerBlue";
|
|
82
|
-
readonly CORNSILK: "cornsilk";
|
|
83
|
-
readonly CRIMSON: "crimson";
|
|
84
|
-
readonly CYAN: "cyan";
|
|
85
|
-
readonly DARK_BLUE: "darkBlue";
|
|
86
|
-
readonly DARK_CYAN: "darkCyan";
|
|
87
|
-
readonly DARK_GOLDENROD: "darkGoldenrod";
|
|
88
|
-
readonly DARK_GRAY: "darkGray";
|
|
89
|
-
readonly DARK_GREY: "darkGrey";
|
|
90
|
-
readonly DARK_GREEN: "darkGreen";
|
|
91
|
-
readonly DARK_KHAKI: "darkKhaki";
|
|
92
|
-
readonly DARK_MAGENTA: "darkMagenta";
|
|
93
|
-
readonly DARK_OLIVE_GREEN: "darkOliveGreen";
|
|
94
|
-
readonly DARK_ORANGE: "darkOrange";
|
|
95
|
-
readonly DARK_ORCHID: "darkOrchid";
|
|
96
|
-
readonly DARK_RED: "darkRed";
|
|
97
|
-
readonly DARK_SALMON: "darkSalmon";
|
|
98
|
-
readonly DARK_SEA_GREEN: "darkSeaGreen";
|
|
99
|
-
readonly DARK_SLATE_BLUE: "darkSlateBlue";
|
|
100
|
-
readonly DARK_SLATE_GRAY: "darkSlateGray";
|
|
101
|
-
readonly DARK_SLATE_GREY: "darkSlateGrey";
|
|
102
|
-
readonly DARK_TURQUOISE: "darkTurquoise";
|
|
103
|
-
readonly DARK_VIOLET: "darkViolet";
|
|
104
|
-
readonly DEEP_PINK: "deepPink";
|
|
105
|
-
readonly DEEP_SKY_BLUE: "deepSkyBlue";
|
|
106
|
-
readonly DIM_GRAY: "dimGray";
|
|
107
|
-
readonly DIM_GREY: "dimGrey";
|
|
108
|
-
readonly DODGER_BLUE: "dodgerBlue";
|
|
109
|
-
readonly FIREBRICK: "firebrick";
|
|
110
|
-
readonly FLORAL_WHITE: "floralWhite";
|
|
111
|
-
readonly FOREST_GREEN: "forestGreen";
|
|
112
|
-
readonly FUCHSIA: "fuchsia";
|
|
113
|
-
readonly GAINSBORO: "gainsboro";
|
|
114
|
-
readonly GHOST_WHITE: "ghostWhite";
|
|
115
|
-
readonly GOLD: "gold";
|
|
116
|
-
readonly GOLDENROD: "goldenrod";
|
|
117
|
-
readonly GRAY: "gray";
|
|
118
|
-
readonly GREY: "grey";
|
|
119
|
-
readonly GREEN: "green";
|
|
120
|
-
readonly GREEN_YELLOW: "greenYellow";
|
|
121
|
-
readonly HONEYDEW: "honeydew";
|
|
122
|
-
readonly HOT_PINK: "hotPink";
|
|
123
|
-
readonly INDIAN_RED: "indianRed";
|
|
124
|
-
readonly INDIGO: "indigo";
|
|
125
|
-
readonly IVORY: "ivory";
|
|
126
|
-
readonly KHAKI: "khaki";
|
|
127
|
-
readonly LAVENDER: "lavender";
|
|
128
|
-
readonly LAVENDER_BLUSH: "lavenderBlush";
|
|
129
|
-
readonly LAWN_GREEN: "lawnGreen";
|
|
130
|
-
readonly LEMON_CHIFFON: "lemonChiffon";
|
|
131
|
-
readonly LIGHT_BLUE: "lightBlue";
|
|
132
|
-
readonly LIGHT_CORAL: "lightCoral";
|
|
133
|
-
readonly LIGHT_CYAN: "lightCyan";
|
|
134
|
-
readonly LIGHT_GOLDENROD_YELLOW: "lightGoldenrodYellow";
|
|
135
|
-
readonly LIGHT_GRAY: "lightGray";
|
|
136
|
-
readonly LIGHT_GREY: "lightGrey";
|
|
137
|
-
readonly LIGHT_GREEN: "lightGreen";
|
|
138
|
-
readonly LIGHT_PINK: "lightPink";
|
|
139
|
-
readonly LIGHT_SALMON: "lightSalmon";
|
|
140
|
-
readonly LIGHT_SEA_GREEN: "lightSeaGreen";
|
|
141
|
-
readonly LIGHT_SKY_BLUE: "lightSkyBlue";
|
|
142
|
-
readonly LIGHT_SLATE_GRAY: "lightSlateGray";
|
|
143
|
-
readonly LIGHT_SLATE_GREY: "lightSlateGrey";
|
|
144
|
-
readonly LIGHT_STEEL_BLUE: "lightSteelBlue";
|
|
145
|
-
readonly LIGHT_YELLOW: "lightYellow";
|
|
146
|
-
readonly LIME: "lime";
|
|
147
|
-
readonly LIME_GREEN: "limeGreen";
|
|
148
|
-
readonly LINEN: "linen";
|
|
149
|
-
readonly MAGENTA: "magenta";
|
|
150
|
-
readonly MAROON: "maroon";
|
|
151
|
-
readonly MEDIUM_AQUAMARINE: "mediumAquamarine";
|
|
152
|
-
readonly MEDIUM_BLUE: "mediumBlue";
|
|
153
|
-
readonly MEDIUM_ORCHID: "mediumOrchid";
|
|
154
|
-
readonly MEDIUM_PURPLE: "mediumPurple";
|
|
155
|
-
readonly MEDIUM_SEA_GREEN: "mediumSeaGreen";
|
|
156
|
-
readonly MEDIUM_SLATE_BLUE: "mediumSlateBlue";
|
|
157
|
-
readonly MEDIUM_SPRING_GREEN: "mediumSpringGreen";
|
|
158
|
-
readonly MEDIUM_TURQUOISE: "mediumTurquoise";
|
|
159
|
-
readonly MEDIUM_VIOLET_RED: "mediumVioletRed";
|
|
160
|
-
readonly MIDNIGHT_BLUE: "midnightBlue";
|
|
161
|
-
readonly MINT_CREAM: "mintCream";
|
|
162
|
-
readonly MISTY_ROSE: "mistyRose";
|
|
163
|
-
readonly MOCCASIN: "moccasin";
|
|
164
|
-
readonly NAVAJO_WHITE: "navajoWhite";
|
|
165
|
-
readonly NAVY: "navy";
|
|
166
|
-
readonly OLD_LACE: "oldLace";
|
|
167
|
-
readonly OLIVE: "olive";
|
|
168
|
-
readonly OLIVE_DRAB: "oliveDrab";
|
|
169
|
-
readonly ORANGE: "orange";
|
|
170
|
-
readonly ORANGE_RED: "orangeRed";
|
|
171
|
-
readonly ORCHID: "orchid";
|
|
172
|
-
readonly PALE_GOLDENROD: "paleGoldenrod";
|
|
173
|
-
readonly PALE_GREEN: "paleGreen";
|
|
174
|
-
readonly PALE_TURQUOISE: "paleTurquoise";
|
|
175
|
-
readonly PALE_VIOLET_RED: "paleVioletRed";
|
|
176
|
-
readonly PAPAYA_WHIP: "papayaWhip";
|
|
177
|
-
readonly PEACH_PUFF: "peachPuff";
|
|
178
|
-
readonly PERU: "peru";
|
|
179
|
-
readonly PINK: "pink";
|
|
180
|
-
readonly PLUM: "plum";
|
|
181
|
-
readonly POWDER_BLUE: "powderBlue";
|
|
182
|
-
readonly PURPLE: "purple";
|
|
183
|
-
readonly RED: "red";
|
|
184
|
-
readonly ROSY_BROWN: "rosyBrown";
|
|
185
|
-
readonly ROYAL_BLUE: "royalBlue";
|
|
186
|
-
readonly SADDLE_BROWN: "saddleBrown";
|
|
187
|
-
readonly SALMON: "salmon";
|
|
188
|
-
readonly SANDY_BROWN: "sandyBrown";
|
|
189
|
-
readonly SEA_GREEN: "seaGreen";
|
|
190
|
-
readonly SEA_SHELL: "seaShell";
|
|
191
|
-
readonly SIENNA: "sienna";
|
|
192
|
-
readonly SILVER: "silver";
|
|
193
|
-
readonly SKY_BLUE: "skyBlue";
|
|
194
|
-
readonly SLATE_BLUE: "slateBlue";
|
|
195
|
-
readonly SLATE_GRAY: "slateGray";
|
|
196
|
-
readonly SLATE_GREY: "slateGrey";
|
|
197
|
-
readonly SNOW: "snow";
|
|
198
|
-
readonly SPRING_GREEN: "springGreen";
|
|
199
|
-
readonly STEEL_BLUE: "steelBlue";
|
|
200
|
-
readonly TAN: "tan";
|
|
201
|
-
readonly TEAL: "teal";
|
|
202
|
-
readonly THISTLE: "thistle";
|
|
203
|
-
readonly TOMATO: "tomato";
|
|
204
|
-
readonly TURQUOISE: "turquoise";
|
|
205
|
-
readonly VIOLET: "violet";
|
|
206
|
-
readonly WHEAT: "wheat";
|
|
207
|
-
readonly WHITE: "white";
|
|
208
|
-
readonly WHITE_SMOKE: "whiteSmoke";
|
|
209
|
-
readonly YELLOW: "yellow";
|
|
210
|
-
readonly YELLOW_GREEN: "yellowGreen";
|
|
211
|
-
};
|
|
212
|
-
interface PresetColorOptions {
|
|
213
|
-
readonly value: (typeof PresetColor)[keyof typeof PresetColor];
|
|
214
|
-
readonly transforms?: ColorTransformOptions;
|
|
215
|
-
} //#endregion
|
|
216
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts
|
|
217
|
-
interface RgbColorOptions {
|
|
218
|
-
readonly value: string;
|
|
219
|
-
readonly transforms?: ColorTransformOptions;
|
|
220
|
-
} //#endregion
|
|
221
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts
|
|
222
|
-
interface SchemeColorOptions {
|
|
223
|
-
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
224
|
-
readonly transforms?: ColorTransformOptions;
|
|
225
|
-
}
|
|
226
|
-
declare const SchemeColor: {
|
|
227
|
-
readonly BG1: "bg1";
|
|
228
|
-
readonly TX1: "tx1";
|
|
229
|
-
readonly BG2: "bg2";
|
|
230
|
-
readonly TX2: "tx2";
|
|
231
|
-
readonly ACCENT1: "accent1";
|
|
232
|
-
readonly ACCENT2: "accent2";
|
|
233
|
-
readonly ACCENT3: "accent3";
|
|
234
|
-
readonly ACCENT4: "accent4";
|
|
235
|
-
readonly ACCENT5: "accent5";
|
|
236
|
-
readonly ACCENT6: "accent6";
|
|
237
|
-
readonly HLINK: "hlink";
|
|
238
|
-
readonly FOLHLINK: "folHlink";
|
|
239
|
-
readonly DK1: "dk1";
|
|
240
|
-
readonly LT1: "lt1";
|
|
241
|
-
readonly DK2: "dk2";
|
|
242
|
-
readonly LT2: "lt2";
|
|
243
|
-
readonly PHCLR: "phClr";
|
|
244
|
-
}; //#endregion
|
|
245
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/system-color.d.ts
|
|
246
|
-
declare const SystemColor: {
|
|
247
|
-
readonly SCROLL_BAR: "scrollBar";
|
|
248
|
-
readonly BACKGROUND: "background";
|
|
249
|
-
readonly ACTIVE_CAPTION: "activeCaption";
|
|
250
|
-
readonly INACTIVE_CAPTION: "inactiveCaption";
|
|
251
|
-
readonly MENU: "menu";
|
|
252
|
-
readonly WINDOW: "window";
|
|
253
|
-
readonly WINDOW_FRAME: "windowFrame";
|
|
254
|
-
readonly MENU_TEXT: "menuText";
|
|
255
|
-
readonly WINDOW_TEXT: "windowText";
|
|
256
|
-
readonly CAPTION_TEXT: "captionText";
|
|
257
|
-
readonly ACTIVE_BORDER: "activeBorder";
|
|
258
|
-
readonly INACTIVE_BORDER: "inactiveBorder";
|
|
259
|
-
readonly APP_WORKSPACE: "appWorkspace";
|
|
260
|
-
readonly HIGHLIGHT: "highlight";
|
|
261
|
-
readonly HIGHLIGHT_TEXT: "highlightText";
|
|
262
|
-
readonly BTN_FACE: "btnFace";
|
|
263
|
-
readonly BTN_SHADOW: "btnShadow";
|
|
264
|
-
readonly GRAY_TEXT: "grayText";
|
|
265
|
-
readonly BTN_TEXT: "btnText";
|
|
266
|
-
readonly INACTIVE_CAPTION_TEXT: "inactiveCaptionText";
|
|
267
|
-
readonly BTN_HIGHLIGHT: "btnHighlight";
|
|
268
|
-
readonly THREE_D_DK_SHADOW: "3dDkShadow";
|
|
269
|
-
readonly THREE_D_LIGHT: "3dLight";
|
|
270
|
-
readonly INFO_TEXT: "infoText";
|
|
271
|
-
readonly INFO_BK: "infoBk";
|
|
272
|
-
readonly HOT_LIGHT: "hotLight";
|
|
273
|
-
readonly GRADIENT_ACTIVE_CAPTION: "gradientActiveCaption";
|
|
274
|
-
readonly GRADIENT_INACTIVE_CAPTION: "gradientInactiveCaption";
|
|
275
|
-
readonly MENU_HIGHLIGHT: "menuHighlight";
|
|
276
|
-
readonly MENU_BAR: "menuBar";
|
|
277
|
-
};
|
|
278
|
-
interface SystemColorOptions {
|
|
279
|
-
readonly value: (typeof SystemColor)[keyof typeof SystemColor];
|
|
280
|
-
readonly lastClr?: string;
|
|
281
|
-
readonly transforms?: ColorTransformOptions;
|
|
282
|
-
} //#endregion
|
|
283
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
|
|
284
|
-
type SolidFillOptions = RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions; //#endregion
|
|
285
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
|
|
286
|
-
//#endregion
|
|
287
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts
|
|
288
|
-
declare const LineCap: {
|
|
289
|
-
readonly ROUND: "rnd";
|
|
290
|
-
readonly SQUARE: "sq";
|
|
291
|
-
readonly FLAT: "flat";
|
|
292
|
-
};
|
|
293
|
-
declare const CompoundLine: {
|
|
294
|
-
readonly SINGLE: "sng";
|
|
295
|
-
readonly DOUBLE: "dbl";
|
|
296
|
-
readonly THICK_THIN: "thickThin";
|
|
297
|
-
readonly THIN_THICK: "thinThick";
|
|
298
|
-
readonly TRI: "tri";
|
|
299
|
-
};
|
|
300
|
-
declare const PenAlignment: {
|
|
301
|
-
readonly CENTER: "ctr";
|
|
302
|
-
readonly INSET: "in";
|
|
303
|
-
};
|
|
304
|
-
declare const PresetDash: {
|
|
305
|
-
readonly SOLID: "solid";
|
|
306
|
-
readonly DOT: "dot";
|
|
307
|
-
readonly DASH: "dash";
|
|
308
|
-
readonly LG_DASH: "lgDash";
|
|
309
|
-
readonly DASH_DOT: "dashDot";
|
|
310
|
-
readonly LG_DASH_DOT: "lgDashDot";
|
|
311
|
-
readonly LG_DASH_DOT_DOT: "lgDashDotDot";
|
|
312
|
-
readonly SYS_DASH: "sysDash";
|
|
313
|
-
readonly SYS_DOT: "sysDot";
|
|
314
|
-
readonly SYS_DASH_DOT: "sysDashDot";
|
|
315
|
-
readonly SYS_DASH_DOT_DOT: "sysDashDotDot";
|
|
316
|
-
};
|
|
317
|
-
declare const LineJoin: {
|
|
318
|
-
readonly ROUND: "round";
|
|
319
|
-
readonly BEVEL: "bevel";
|
|
320
|
-
readonly MITER: "miter";
|
|
321
|
-
};
|
|
322
|
-
interface OutlineAttributes {
|
|
323
|
-
readonly width?: number;
|
|
324
|
-
readonly cap?: keyof typeof LineCap;
|
|
325
|
-
readonly compoundLine?: keyof typeof CompoundLine;
|
|
326
|
-
readonly align?: keyof typeof PenAlignment;
|
|
327
|
-
readonly dash?: keyof typeof PresetDash;
|
|
328
|
-
readonly join?: keyof typeof LineJoin;
|
|
329
|
-
readonly miterLimit?: number;
|
|
330
|
-
}
|
|
331
|
-
interface OutlineNoFill {
|
|
332
|
-
readonly type: "noFill";
|
|
333
|
-
}
|
|
334
|
-
interface OutlineSolidFill {
|
|
335
|
-
readonly type: "solidFill";
|
|
336
|
-
readonly color: SolidFillOptions;
|
|
337
|
-
}
|
|
338
|
-
type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
|
|
339
|
-
type OutlineOptions = OutlineAttributes & OutlineFillProperties; //#endregion
|
|
340
|
-
//#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
|
|
341
|
-
//#endregion
|
|
342
|
-
//#region src/file/drawing/text-wrap/text-wrapping.d.ts
|
|
343
|
-
declare const TextWrappingType: {
|
|
344
|
-
readonly NONE: 0;
|
|
345
|
-
readonly SQUARE: 1;
|
|
346
|
-
readonly TIGHT: 2;
|
|
347
|
-
readonly TOP_AND_BOTTOM: 3;
|
|
348
|
-
};
|
|
349
|
-
declare const TextWrappingSide: {
|
|
350
|
-
readonly BOTH_SIDES: "bothSides";
|
|
351
|
-
readonly LEFT: "left";
|
|
352
|
-
readonly RIGHT: "right";
|
|
353
|
-
readonly LARGEST: "largest";
|
|
354
|
-
};
|
|
355
|
-
interface ITextWrapping {
|
|
356
|
-
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
357
|
-
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
358
|
-
readonly margins?: IDistance;
|
|
359
|
-
} //#endregion
|
|
360
|
-
//#region src/file/drawing/text-wrap/wrap-none.d.ts
|
|
361
|
-
//#endregion
|
|
362
|
-
//#region src/file/shared/alignment.d.ts
|
|
363
|
-
declare const HorizontalPositionAlign: {
|
|
364
|
-
readonly CENTER: "center";
|
|
365
|
-
readonly INSIDE: "inside";
|
|
366
|
-
readonly LEFT: "left";
|
|
367
|
-
readonly OUTSIDE: "outside";
|
|
368
|
-
readonly RIGHT: "right";
|
|
369
|
-
};
|
|
370
|
-
declare const VerticalPositionAlign: {
|
|
371
|
-
readonly BOTTOM: "bottom";
|
|
372
|
-
readonly CENTER: "center";
|
|
373
|
-
readonly INSIDE: "inside";
|
|
374
|
-
readonly OUTSIDE: "outside";
|
|
375
|
-
readonly TOP: "top";
|
|
376
|
-
}; //#endregion
|
|
377
|
-
//#region src/file/drawing/floating/floating-position.d.ts
|
|
378
|
-
declare const HorizontalPositionRelativeFrom: {
|
|
379
|
-
readonly CHARACTER: "character";
|
|
380
|
-
readonly COLUMN: "column";
|
|
381
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
382
|
-
readonly LEFT_MARGIN: "leftMargin";
|
|
383
|
-
readonly MARGIN: "margin";
|
|
384
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
385
|
-
readonly PAGE: "page";
|
|
386
|
-
readonly RIGHT_MARGIN: "rightMargin";
|
|
387
|
-
};
|
|
388
|
-
declare const VerticalPositionRelativeFrom: {
|
|
389
|
-
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
390
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
391
|
-
readonly LINE: "line";
|
|
392
|
-
readonly MARGIN: "margin";
|
|
393
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
394
|
-
readonly PAGE: "page";
|
|
395
|
-
readonly PARAGRAPH: "paragraph";
|
|
396
|
-
readonly TOP_MARGIN: "topMargin";
|
|
397
|
-
};
|
|
398
|
-
interface IHorizontalPositionOptions {
|
|
399
|
-
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
400
|
-
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
401
|
-
readonly offset?: number;
|
|
402
|
-
}
|
|
403
|
-
interface IVerticalPositionOptions {
|
|
404
|
-
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
405
|
-
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
406
|
-
readonly offset?: number;
|
|
407
|
-
}
|
|
408
|
-
interface IMargins {
|
|
409
|
-
readonly left?: number;
|
|
410
|
-
readonly bottom?: number;
|
|
411
|
-
readonly top?: number;
|
|
412
|
-
readonly right?: number;
|
|
413
|
-
}
|
|
414
|
-
interface IFloating {
|
|
415
|
-
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
416
|
-
readonly verticalPosition: IVerticalPositionOptions;
|
|
417
|
-
readonly allowOverlap?: boolean;
|
|
418
|
-
readonly lockAnchor?: boolean;
|
|
419
|
-
readonly behindDocument?: boolean;
|
|
420
|
-
readonly layoutInCell?: boolean;
|
|
421
|
-
readonly margins?: IMargins;
|
|
422
|
-
readonly wrap?: ITextWrapping;
|
|
423
|
-
readonly zIndex?: number;
|
|
424
|
-
} //#endregion
|
|
425
|
-
//#region src/file/drawing/floating/simple-pos.d.ts
|
|
426
|
-
//#endregion
|
|
427
|
-
//#region src/file/media/media.d.ts
|
|
428
|
-
interface IMediaTransformation {
|
|
429
|
-
readonly offset?: {
|
|
430
|
-
readonly top?: number;
|
|
431
|
-
readonly left?: number;
|
|
432
|
-
};
|
|
433
|
-
readonly width: number;
|
|
434
|
-
readonly height: number;
|
|
435
|
-
readonly flip?: {
|
|
436
|
-
readonly vertical?: boolean;
|
|
437
|
-
readonly horizontal?: boolean;
|
|
438
|
-
};
|
|
439
|
-
readonly rotation?: number;
|
|
440
|
-
}
|
|
441
|
-
//#endregion
|
|
442
|
-
//#region src/file/drawing/drawing.d.ts
|
|
443
|
-
interface IDistance {
|
|
444
|
-
readonly distT?: number;
|
|
445
|
-
readonly distB?: number;
|
|
446
|
-
readonly distL?: number;
|
|
447
|
-
readonly distR?: number;
|
|
448
|
-
}
|
|
449
|
-
//#endregion
|
|
450
|
-
//#region src/file/paragraph/run/image-run.d.ts
|
|
451
|
-
interface CoreImageOptions {
|
|
452
|
-
readonly transformation: IMediaTransformation;
|
|
453
|
-
readonly floating?: IFloating;
|
|
454
|
-
readonly altText?: DocPropertiesOptions;
|
|
455
|
-
readonly outline?: OutlineOptions;
|
|
456
|
-
readonly solidFill?: SolidFillOptions;
|
|
457
|
-
readonly srcRect?: SourceRectangleOptions;
|
|
458
|
-
}
|
|
459
|
-
interface RegularImageOptions {
|
|
460
|
-
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
461
|
-
readonly data: DataType;
|
|
462
|
-
}
|
|
463
|
-
interface SvgMediaOptions {
|
|
464
|
-
readonly type: "svg";
|
|
465
|
-
readonly data: DataType;
|
|
466
|
-
readonly fallback: RegularImageOptions;
|
|
467
|
-
}
|
|
468
|
-
type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
469
|
-
//#endregion
|
|
470
|
-
//#region src/types.d.ts
|
|
471
|
-
/**
|
|
472
|
-
* Border definition (compatible with docx.js BorderOptions)
|
|
473
|
-
* Used by paragraphs, table cells, and blockquotes
|
|
474
|
-
*/
|
|
475
|
-
interface Border {
|
|
476
|
-
/** Border color (hex without #, e.g., "FF0000" or "auto") */
|
|
477
|
-
color?: string;
|
|
478
|
-
/** Border size (eighth-points, 1/8 pt) */
|
|
479
|
-
size?: number;
|
|
480
|
-
/** Border style */
|
|
481
|
-
style?: "single" | "dashed" | "dotted" | "double" | "dotDash" | "dotDotDash" | "none";
|
|
482
|
-
/** Space between border and content (points) */
|
|
483
|
-
space?: number;
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* Shading definition (compatible with docx.js ShadingOptions)
|
|
487
|
-
* Used for paragraph and table cell background colors
|
|
488
|
-
*/
|
|
489
|
-
interface Shading {
|
|
490
|
-
/** Fill color (hex without #, e.g., "FF0000") */
|
|
491
|
-
fill?: string;
|
|
492
|
-
/** Pattern color (hex without #) */
|
|
493
|
-
color?: string;
|
|
494
|
-
/** Shading pattern type (e.g., "clear", "percent-10") */
|
|
495
|
-
type?: string;
|
|
496
|
-
}
|
|
497
|
-
type ImageFloatingOptions = {
|
|
498
|
-
horizontalPosition: IHorizontalPositionOptions;
|
|
499
|
-
verticalPosition: IVerticalPositionOptions;
|
|
500
|
-
} & Partial<Omit<IFloating, "horizontalPosition" | "verticalPosition">>;
|
|
501
|
-
type ImageOutlineOptions = IImageOptions["outline"];
|
|
502
|
-
interface TextNode {
|
|
503
|
-
type: "text";
|
|
504
|
-
text: string;
|
|
505
|
-
marks?: Array<Mark>;
|
|
506
|
-
}
|
|
507
|
-
interface HardBreakNode {
|
|
508
|
-
type: "hardBreak";
|
|
509
|
-
marks?: Array<Mark>;
|
|
510
|
-
}
|
|
511
|
-
interface Mark {
|
|
512
|
-
type: "bold" | "italic" | "underline" | "strike" | "code" | "textStyle" | "link" | "highlight" | "subscript" | "superscript";
|
|
513
|
-
attrs?: {
|
|
514
|
-
color?: string;
|
|
515
|
-
backgroundColor?: string;
|
|
516
|
-
fontSize?: string;
|
|
517
|
-
fontFamily?: string;
|
|
518
|
-
lineHeight?: string;
|
|
519
|
-
href?: string;
|
|
520
|
-
target?: string;
|
|
521
|
-
rel?: string;
|
|
522
|
-
class?: string | null;
|
|
523
|
-
[key: string]: unknown;
|
|
524
|
-
};
|
|
525
|
-
}
|
|
526
|
-
interface DocumentNode extends JSONContent {
|
|
527
|
-
type: "doc";
|
|
528
|
-
content?: Array<BlockNode>;
|
|
529
|
-
}
|
|
530
|
-
interface ParagraphNode extends JSONContent {
|
|
531
|
-
type: "paragraph";
|
|
532
|
-
attrs?: {
|
|
533
|
-
textAlign?: "left" | "center" | "right" | "justify";
|
|
534
|
-
indentLeft?: string;
|
|
535
|
-
indentRight?: string;
|
|
536
|
-
indentFirstLine?: string;
|
|
537
|
-
spacingBefore?: string;
|
|
538
|
-
spacingAfter?: string;
|
|
539
|
-
shading?: Shading;
|
|
540
|
-
borderTop?: Border;
|
|
541
|
-
borderBottom?: Border;
|
|
542
|
-
borderLeft?: Border;
|
|
543
|
-
borderRight?: Border;
|
|
544
|
-
};
|
|
545
|
-
content?: Array<TextNode | HardBreakNode | ImageNode>;
|
|
546
|
-
}
|
|
547
|
-
interface HeadingNode extends JSONContent {
|
|
548
|
-
type: "heading";
|
|
549
|
-
attrs: {
|
|
550
|
-
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
551
|
-
indentLeft?: string;
|
|
552
|
-
indentRight?: string;
|
|
553
|
-
indentFirstLine?: string;
|
|
554
|
-
spacingBefore?: string;
|
|
555
|
-
spacingAfter?: string;
|
|
556
|
-
textAlign?: "left" | "right" | "center" | "justify";
|
|
557
|
-
shading?: Shading;
|
|
558
|
-
borderTop?: Border;
|
|
559
|
-
borderBottom?: Border;
|
|
560
|
-
borderLeft?: Border;
|
|
561
|
-
borderRight?: Border;
|
|
562
|
-
};
|
|
563
|
-
content?: Array<TextNode | HardBreakNode>;
|
|
564
|
-
}
|
|
565
|
-
interface BlockquoteNode extends JSONContent {
|
|
566
|
-
type: "blockquote";
|
|
567
|
-
content?: Array<ParagraphNode>;
|
|
568
|
-
}
|
|
569
|
-
interface CodeBlockNode extends JSONContent {
|
|
570
|
-
type: "codeBlock";
|
|
571
|
-
attrs?: {
|
|
572
|
-
language?: string;
|
|
573
|
-
};
|
|
574
|
-
content?: Array<TextNode>;
|
|
575
|
-
}
|
|
576
|
-
interface HorizontalRuleNode extends JSONContent {
|
|
577
|
-
type: "horizontalRule";
|
|
578
|
-
}
|
|
579
|
-
interface BulletListNode extends JSONContent {
|
|
580
|
-
type: "bulletList";
|
|
581
|
-
content?: Array<ListItemNode>;
|
|
582
|
-
}
|
|
583
|
-
interface OrderedListNode extends JSONContent {
|
|
584
|
-
type: "orderedList";
|
|
585
|
-
attrs?: {
|
|
586
|
-
start?: number;
|
|
587
|
-
order?: number;
|
|
588
|
-
type?: string | null;
|
|
589
|
-
};
|
|
590
|
-
content?: Array<ListItemNode>;
|
|
591
|
-
}
|
|
592
|
-
interface TaskListNode extends JSONContent {
|
|
593
|
-
type: "taskList";
|
|
594
|
-
content?: Array<TaskItemNode>;
|
|
595
|
-
}
|
|
596
|
-
interface ListItemNode extends JSONContent {
|
|
597
|
-
type: "listItem";
|
|
598
|
-
content?: Array<ParagraphNode>;
|
|
599
|
-
}
|
|
600
|
-
interface TaskItemNode extends JSONContent {
|
|
601
|
-
type: "taskItem";
|
|
602
|
-
attrs?: {
|
|
603
|
-
checked?: boolean;
|
|
604
|
-
};
|
|
605
|
-
content?: Array<ParagraphNode>;
|
|
606
|
-
}
|
|
607
|
-
interface TableNode extends JSONContent {
|
|
608
|
-
type: "table";
|
|
609
|
-
attrs?: {
|
|
610
|
-
marginTop?: number | null;
|
|
611
|
-
marginBottom?: number | null;
|
|
612
|
-
marginLeft?: number | null;
|
|
613
|
-
marginRight?: number | null;
|
|
614
|
-
};
|
|
615
|
-
content?: Array<TableRowNode>;
|
|
616
|
-
}
|
|
617
|
-
interface TableRowNode extends JSONContent {
|
|
618
|
-
type: "tableRow";
|
|
619
|
-
attrs?: {
|
|
620
|
-
rowHeight?: string | null;
|
|
621
|
-
};
|
|
622
|
-
content?: Array<TableCellNode | TableHeaderNode>;
|
|
623
|
-
}
|
|
624
|
-
interface TableCellNode extends JSONContent {
|
|
625
|
-
type: "tableCell";
|
|
626
|
-
attrs?: {
|
|
627
|
-
colspan?: number;
|
|
628
|
-
rowspan?: number;
|
|
629
|
-
colwidth?: number[] | null;
|
|
630
|
-
backgroundColor?: string | null;
|
|
631
|
-
verticalAlign?: "top" | "middle" | "bottom" | null;
|
|
632
|
-
borderTop?: Border;
|
|
633
|
-
borderBottom?: Border;
|
|
634
|
-
borderLeft?: Border;
|
|
635
|
-
borderRight?: Border;
|
|
636
|
-
};
|
|
637
|
-
content?: Array<ParagraphNode>;
|
|
638
|
-
}
|
|
639
|
-
interface TableHeaderNode extends JSONContent {
|
|
640
|
-
type: "tableHeader";
|
|
641
|
-
attrs?: {
|
|
642
|
-
colspan?: number;
|
|
643
|
-
rowspan?: number;
|
|
644
|
-
colwidth?: number[] | null;
|
|
645
|
-
backgroundColor?: string | null;
|
|
646
|
-
verticalAlign?: "top" | "middle" | "bottom" | null;
|
|
647
|
-
borderTop?: Border;
|
|
648
|
-
borderBottom?: Border;
|
|
649
|
-
borderLeft?: Border;
|
|
650
|
-
borderRight?: Border;
|
|
651
|
-
};
|
|
652
|
-
content?: Array<ParagraphNode>;
|
|
653
|
-
}
|
|
654
|
-
interface ImageNode extends JSONContent {
|
|
655
|
-
type: "image";
|
|
656
|
-
attrs?: {
|
|
657
|
-
src: string;
|
|
658
|
-
alt?: string | null;
|
|
659
|
-
title?: string | null;
|
|
660
|
-
width?: number | null;
|
|
661
|
-
height?: number | null;
|
|
662
|
-
rotation?: number;
|
|
663
|
-
floating?: ImageFloatingOptions;
|
|
664
|
-
outline?: ImageOutlineOptions;
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
interface DetailsNode extends JSONContent {
|
|
668
|
-
type: "details";
|
|
669
|
-
content?: Array<DetailsSummaryNode | DetailsContentNode>;
|
|
670
|
-
}
|
|
671
|
-
interface DetailsSummaryNode extends JSONContent {
|
|
672
|
-
type: "detailsSummary";
|
|
673
|
-
content?: Array<TextNode | HardBreakNode>;
|
|
674
|
-
}
|
|
675
|
-
interface DetailsContentNode extends JSONContent {
|
|
676
|
-
type: "detailsContent";
|
|
677
|
-
content?: Array<BlockNode>;
|
|
678
|
-
}
|
|
679
|
-
type TextContent = TextNode | HardBreakNode;
|
|
680
|
-
type BlockNode = ParagraphNode | HeadingNode | BlockquoteNode | CodeBlockNode | HorizontalRuleNode | BulletListNode | OrderedListNode | TaskListNode | TableNode | ImageNode | DetailsNode;
|
|
681
|
-
//#endregion
|
|
682
|
-
export { BlockNode, BlockquoteNode, Border, BulletListNode, CodeBlockNode, DetailsContentNode, DetailsNode, DetailsSummaryNode, DocumentNode, HardBreakNode, HeadingNode, HorizontalRuleNode, ImageFloatingOptions, ImageNode, ImageOutlineOptions, type JSONContent, ListItemNode, Mark, OrderedListNode, ParagraphNode, Shading, TableCellNode, TableHeaderNode, TableNode, TableRowNode, TaskItemNode, TaskListNode, TextContent, TextNode };
|
|
1
|
+
import { A as TextNode, C as TableCellNode, D as TaskItemNode, E as TableRowNode, O as TaskListNode, S as SourceRectangleOptions, T as TableNode, _ as ListItemNode, a as CodeBlockNode, b as ParagraphNode, c as DetailsSummaryNode, d as HeadingNode, f as HorizontalRuleNode, g as JSONContent, h as ImageOutlineOptions, i as BulletListNode, k as TextContent, l as DocumentNode, m as ImageNode, n as BlockquoteNode, o as DetailsContentNode, p as ImageFloatingOptions, r as Border, s as DetailsNode, t as BlockNode, u as HardBreakNode, v as Mark, w as TableHeaderNode, x as Shading, y as OrderedListNode } from "./_chunks/types-or4xeozj.mjs";
|
|
2
|
+
export { BlockNode, BlockquoteNode, Border, BulletListNode, CodeBlockNode, DetailsContentNode, DetailsNode, DetailsSummaryNode, DocumentNode, HardBreakNode, HeadingNode, HorizontalRuleNode, ImageFloatingOptions, ImageNode, ImageOutlineOptions, JSONContent, ListItemNode, Mark, OrderedListNode, ParagraphNode, Shading, SourceRectangleOptions, TableCellNode, TableHeaderNode, TableNode, TableRowNode, TaskItemNode, TaskListNode, TextContent, TextNode };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docen/extensions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Collection of TipTap extensions with TypeScript type definitions for Docen",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docen",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@tiptap/suggestion": "3.22.4"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"docx-plus": "0.
|
|
86
|
+
"docx-plus": "0.1.2"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"dev": "basis build --stub",
|