@valiantys/atlassian-app 3.2.0-alpha-8 → 3.2.0-alpha-9

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.
@@ -4,49 +4,6 @@
4
4
 
5
5
  ```ts
6
6
 
7
- // @public (undocumented)
8
- export interface AtlassianDocumentFormat {
9
- // (undocumented)
10
- content: AtlassianDocumentFormatNode[];
11
- // (undocumented)
12
- type: 'doc';
13
- // (undocumented)
14
- version: number;
15
- }
16
-
17
- // @public (undocumented)
18
- export interface AtlassianDocumentFormatBlockNode {
19
- // (undocumented)
20
- content: AtlassianDocumentFormatNode[];
21
- // (undocumented)
22
- type: string;
23
- }
24
-
25
- // @public (undocumented)
26
- export interface AtlassianDocumentFormatInlineNode {
27
- // (undocumented)
28
- type: string;
29
- }
30
-
31
- // @public (undocumented)
32
- export type AtlassianDocumentFormatNode = AtlassianDocumentFormatInlineNode | AtlassianDocumentFormatBlockNode;
33
-
34
- // @public (undocumented)
35
- export interface AtlassianDocumentFormatParagraphNode extends AtlassianDocumentFormatBlockNode {
36
- // (undocumented)
37
- content: AtlassianDocumentFormatInlineNode[];
38
- // (undocumented)
39
- type: 'paragraph';
40
- }
41
-
42
- // @public (undocumented)
43
- export interface AtlassianDocumentFormatTextNode extends AtlassianDocumentFormatInlineNode {
44
- // (undocumented)
45
- text: string;
46
- // (undocumented)
47
- type: 'text';
48
- }
49
-
50
7
  // @public (undocumented)
51
8
  export interface AvatarUrls {
52
9
  // (undocumented)
@@ -82,8 +39,10 @@ export interface CreatedIssue {
82
39
 
83
40
  // @public (undocumented)
84
41
  export interface CreateIssue {
42
+ // Warning: (ae-forgotten-export) The symbol "AdfDoc" needs to be exported by the entry point util-jira-v3-api.d.ts
43
+ //
85
44
  // (undocumented)
86
- fields: IssueFields<AtlassianDocumentFormat | string>;
45
+ fields: IssueFields<AdfDoc | string>;
87
46
  // (undocumented)
88
47
  historyMetadata?: HistoryMetadata;
89
48
  // (undocumented)
@@ -183,13 +142,7 @@ export interface HistoryMetadataParticipant {
183
142
  }
184
143
 
185
144
  // @public (undocumented)
186
- export function isAtlassianDocumentFormatParagraphNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatParagraphNode;
187
-
188
- // @public (undocumented)
189
- export function isAtlassianDocumentFormatTextNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatTextNode;
190
-
191
- // @public (undocumented)
192
- export interface Issue<T = AtlassianDocumentFormat> {
145
+ export interface Issue<T = AdfDoc> {
193
146
  // (undocumented)
194
147
  expand?: string;
195
148
  // (undocumented)
@@ -214,7 +167,7 @@ export type IssueAssetFieldValue = {
214
167
  // @public (undocumented)
215
168
  export type IssueComment = {
216
169
  author: User;
217
- body: AtlassianDocumentFormat;
170
+ body: AdfDoc;
218
171
  created: string;
219
172
  id: string;
220
173
  self: string;
@@ -224,7 +177,7 @@ export type IssueComment = {
224
177
  };
225
178
 
226
179
  // @public (undocumented)
227
- export type IssueFields<T = AtlassianDocumentFormat> = CustomFields & StaticIssueFields<T>;
180
+ export type IssueFields<T = AdfDoc> = CustomFields & StaticIssueFields<T>;
228
181
 
229
182
  // @public (undocumented)
230
183
  export interface IssueLink {
@@ -250,7 +203,7 @@ export interface IssueLink {
250
203
  export interface IssueLinkRequest {
251
204
  // (undocumented)
252
205
  comment?: {
253
- body: AtlassianDocumentFormat;
206
+ body: AdfDoc;
254
207
  };
255
208
  // (undocumented)
256
209
  inwardIssue: {
@@ -551,7 +504,7 @@ export interface RemoteIssueLink {
551
504
  }
552
505
 
553
506
  // @public (undocumented)
554
- export interface StaticIssueFields<T = AtlassianDocumentFormat> {
507
+ export interface StaticIssueFields<T = AdfDoc> {
555
508
  // (undocumented)
556
509
  aggregatetimespent?: number;
557
510
  // (undocumented)
@@ -657,7 +610,7 @@ export interface TransitionIssueRequest {
657
610
  // @public (undocumented)
658
611
  export interface UpdateIssue {
659
612
  // (undocumented)
660
- fields?: IssueFields<AtlassianDocumentFormat | string>;
613
+ fields?: IssueFields<AdfDoc | string>;
661
614
  // (undocumented)
662
615
  historyMetadata?: HistoryMetadata;
663
616
  // (undocumented)
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js"),t=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js");exports.FIX_VERSIONS_FIELD=e.FIX_VERSIONS_FIELD;exports.isAtlassianDocumentFormatParagraphNode=e.isAtlassianDocumentFormatParagraphNode;exports.isAtlassianDocumentFormatTextNode=e.isAtlassianDocumentFormatTextNode;exports.switchAtlassianApiUrlToUseSiteUrl=t.switchAtlassianApiUrlToUseSiteUrl;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js"),i=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js");exports.FIX_VERSIONS_FIELD=e.FIX_VERSIONS_FIELD;exports.switchAtlassianApiUrlToUseSiteUrl=i.switchAtlassianApiUrlToUseSiteUrl;
@@ -1,28 +1,42 @@
1
- export declare interface AtlassianDocumentFormat {
1
+ /** Root document node */
2
+ declare interface AdfDoc {
2
3
  type: 'doc';
3
- version: number;
4
- content: AtlassianDocumentFormatNode[];
4
+ version: 1;
5
+ content: AdfNode[];
5
6
  }
6
7
 
7
- export declare interface AtlassianDocumentFormatBlockNode {
8
+ /**
9
+ * TypeScript types for Atlassian Document Format (ADF)
10
+ * Conforms to https://unpkg.com/@atlaskit/adf-schema@52.4.0/dist/json-schema/v1/full.json
11
+ */
12
+ declare interface AdfMark {
8
13
  type: string;
9
- content: AtlassianDocumentFormatNode[];
14
+ attrs?: Record<string, unknown>;
10
15
  }
11
16
 
12
- export declare interface AtlassianDocumentFormatInlineNode {
17
+ /**
18
+ * Base for all ADF nodes. `content` is optional because many block nodes
19
+ * (paragraph, heading, codeBlock, etc.) define it as optional in the schema.
20
+ * `text` is only populated on text nodes. `attrs` is present on most non-text
21
+ * nodes. `marks` is present on nodes that support formatting.
22
+ */
23
+ declare interface AdfNode {
13
24
  type: string;
25
+ text?: string;
26
+ attrs?: AdfNodeAttrs;
27
+ content?: AdfNode[];
28
+ marks?: AdfMark[];
14
29
  }
15
30
 
16
- export declare type AtlassianDocumentFormatNode = AtlassianDocumentFormatInlineNode | AtlassianDocumentFormatBlockNode;
17
-
18
- export declare interface AtlassianDocumentFormatParagraphNode extends AtlassianDocumentFormatBlockNode {
19
- type: 'paragraph';
20
- content: AtlassianDocumentFormatInlineNode[];
21
- }
22
-
23
- export declare interface AtlassianDocumentFormatTextNode extends AtlassianDocumentFormatInlineNode {
24
- type: 'text';
25
- text: string;
31
+ /**
32
+ * Attrs common across node types. Many inline node types (emoji, mention,
33
+ * status, placeholder, hardBreak, inlineExtension, extension, bodiedExtension)
34
+ * store their display text in `attrs.text`.
35
+ */
36
+ declare interface AdfNodeAttrs {
37
+ text?: string;
38
+ localId?: string;
39
+ [key: string]: unknown;
26
40
  }
27
41
 
28
42
  export declare interface AvatarUrls {
@@ -49,7 +63,7 @@ export declare interface CreatedIssue {
49
63
  }
50
64
 
51
65
  export declare interface CreateIssue {
52
- fields: IssueFields<AtlassianDocumentFormat | string>;
66
+ fields: IssueFields<AdfDoc | string>;
53
67
  properties?: {
54
68
  key: string;
55
69
  value: unknown;
@@ -108,11 +122,7 @@ export declare interface HistoryMetadataParticipant {
108
122
  url: string;
109
123
  }
110
124
 
111
- export declare function isAtlassianDocumentFormatParagraphNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatParagraphNode;
112
-
113
- export declare function isAtlassianDocumentFormatTextNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatTextNode;
114
-
115
- export declare interface Issue<T = AtlassianDocumentFormat> {
125
+ export declare interface Issue<T = AdfDoc> {
116
126
  id: string;
117
127
  expand?: string;
118
128
  key: string;
@@ -129,7 +139,7 @@ export declare type IssueAssetFieldValue = {
129
139
 
130
140
  export declare type IssueComment = {
131
141
  author: User;
132
- body: AtlassianDocumentFormat;
142
+ body: AdfDoc;
133
143
  created: string;
134
144
  id: string;
135
145
  self: string;
@@ -138,7 +148,7 @@ export declare type IssueComment = {
138
148
  visibility: Visibility;
139
149
  };
140
150
 
141
- export declare type IssueFields<T = AtlassianDocumentFormat> = CustomFields & StaticIssueFields<T>;
151
+ export declare type IssueFields<T = AdfDoc> = CustomFields & StaticIssueFields<T>;
142
152
 
143
153
  export declare interface IssueLink {
144
154
  id: string;
@@ -164,7 +174,7 @@ export declare interface IssueLinkRequest {
164
174
  key?: string;
165
175
  };
166
176
  comment?: {
167
- body: AtlassianDocumentFormat;
177
+ body: AdfDoc;
168
178
  };
169
179
  type: {
170
180
  id?: string;
@@ -359,7 +369,7 @@ export declare interface RemoteIssueLink {
359
369
  self?: string;
360
370
  }
361
371
 
362
- export declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
372
+ export declare interface StaticIssueFields<T = AdfDoc> {
363
373
  statuscategorychangedate?: string;
364
374
  fixVersions?: FixVersions;
365
375
  resolution?: unknown;
@@ -430,7 +440,7 @@ export declare interface TransitionIssueRequest {
430
440
  }
431
441
 
432
442
  export declare interface UpdateIssue {
433
- fields?: IssueFields<AtlassianDocumentFormat | string>;
443
+ fields?: IssueFields<AdfDoc | string>;
434
444
  properties?: {
435
445
  key: string;
436
446
  value: unknown;
@@ -1,8 +1,6 @@
1
- import { FIX_VERSIONS_FIELD as o, isAtlassianDocumentFormatParagraphNode as r, isAtlassianDocumentFormatTextNode as s } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
1
+ import { FIX_VERSIONS_FIELD as t } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
2
2
  import { switchAtlassianApiUrlToUseSiteUrl as i } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js";
3
3
  export {
4
- o as FIX_VERSIONS_FIELD,
5
- r as isAtlassianDocumentFormatParagraphNode,
6
- s as isAtlassianDocumentFormatTextNode,
4
+ t as FIX_VERSIONS_FIELD,
7
5
  i as switchAtlassianApiUrlToUseSiteUrl
8
6
  };