@elisra-devops/docgen-skins 0.10.6 → 0.10.8
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/bin/index.js +5 -5
- package/bin/index.js.map +1 -1
- package/bin/models/json/JSONRun.js +35 -39
- package/bin/models/json/JSONRun.js.map +1 -1
- package/bin/models/json/default.js +9 -12
- package/bin/models/json/default.js.map +1 -1
- package/bin/models/json/paragraph/JSONRichTextParagraph.d.ts +2 -133
- package/bin/models/json/paragraph/JSONRichTextParagraph.js +58 -326
- package/bin/models/json/paragraph/JSONRichTextParagraph.js.map +1 -1
- package/bin/models/json/wordJsonModels.d.ts +4 -40
- package/package.json +1 -1
- package/src/index.ts +10 -5
- package/src/models/json/JSONRun.ts +32 -36
- package/src/models/json/default.ts +9 -12
- package/src/models/json/paragraph/JSONRichTextParagraph.ts +385 -321
- package/src/models/json/wordJsonModels.ts +5 -49
|
@@ -56,7 +56,8 @@ export interface Attachment {
|
|
|
56
56
|
IsFlattened?: boolean;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
interface
|
|
59
|
+
export interface Run {
|
|
60
|
+
text: string;
|
|
60
61
|
Bold: boolean;
|
|
61
62
|
Italic: boolean;
|
|
62
63
|
Underline: boolean;
|
|
@@ -65,13 +66,7 @@ interface TextStyle {
|
|
|
65
66
|
Font: string;
|
|
66
67
|
InsertLineBreak: boolean;
|
|
67
68
|
InsertSpace: boolean;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
export interface Run {
|
|
71
|
-
type: 'text' | 'image' | 'break' | 'other';
|
|
72
|
-
value?: string;
|
|
73
|
-
src?: string; // If type = 'image', you can store the URL or local path here
|
|
74
|
-
textStyling?: TextStyle; // If type = 'text', store style; if type = 'image', optional or partial
|
|
69
|
+
src?: string; //for image
|
|
75
70
|
}
|
|
76
71
|
export interface WorkItemData {}
|
|
77
72
|
|
|
@@ -116,7 +111,7 @@ export interface WIProperty {
|
|
|
116
111
|
attachmentLink?: string;
|
|
117
112
|
attachmentType?: string;
|
|
118
113
|
relativeAttachmentLink?: string;
|
|
119
|
-
|
|
114
|
+
richText?: any[];
|
|
120
115
|
}
|
|
121
116
|
export interface MultipeValuesWIProperty {
|
|
122
117
|
name: string;
|
|
@@ -128,49 +123,10 @@ export interface MultipeValuesWIProperty {
|
|
|
128
123
|
attachmentLink?: string;
|
|
129
124
|
attachmentType?: string;
|
|
130
125
|
relativeAttachmentLink?: string;
|
|
131
|
-
|
|
126
|
+
richText?: any[];
|
|
132
127
|
}
|
|
133
128
|
export interface WIColumns {
|
|
134
129
|
name: string;
|
|
135
130
|
referenceName: string;
|
|
136
131
|
url: string;
|
|
137
132
|
}
|
|
138
|
-
|
|
139
|
-
export type RichNode = ParagraphNode | TextNode | ImageNode | TableNode | ListNode | BreakNode | OtherNode;
|
|
140
|
-
|
|
141
|
-
export interface ParagraphNode {
|
|
142
|
-
type: 'paragraph';
|
|
143
|
-
children: RichNode[];
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface TextNode {
|
|
147
|
-
type: 'text';
|
|
148
|
-
value: string;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface ImageNode {
|
|
152
|
-
type: 'image';
|
|
153
|
-
src: string;
|
|
154
|
-
alt?: string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface BreakNode {
|
|
158
|
-
type: 'break';
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface TableNode {
|
|
162
|
-
type: 'table';
|
|
163
|
-
children: RichNode[];
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface ListNode {
|
|
167
|
-
type: 'list';
|
|
168
|
-
isOrdered: boolean;
|
|
169
|
-
children: RichNode[];
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export interface OtherNode {
|
|
173
|
-
type: 'other';
|
|
174
|
-
tagName: string;
|
|
175
|
-
children: RichNode[];
|
|
176
|
-
}
|