@elisra-devops/docgen-skins 0.10.7 → 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.
@@ -56,7 +56,8 @@ export interface Attachment {
56
56
  IsFlattened?: boolean;
57
57
  }
58
58
 
59
- interface TextStyle {
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
- richTextNodes?: any[];
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
- richTextNodes?: any[];
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
- }