@valiantys/atlassian-app 3.2.0-alpha-7 → 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.
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -1
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +9 -0
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js +1 -1
- package/atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js +2 -10
- package/atlassian/shared/util-adf/src/lib/adf/index.cjs.js +1 -0
- package/atlassian/shared/util-adf/src/lib/adf/index.es.js +59 -0
- package/backend-trigger/index.d.ts +34 -10
- package/data-access-issue/atlassian-app-data-access-issue.api.json +84 -6
- package/data-access-issue/atlassian-app.api.md +6 -4
- package/data-access-issue/index.d.ts +44 -19
- package/package.json +6 -1
- package/util-adf/atlassian-app-util-adf.api.json +1002 -0
- package/util-adf/atlassian-app.api.md +73 -0
- package/util-adf/index.cjs.js +1 -0
- package/util-adf/index.d.ts +57 -0
- package/util-adf/index.es.js +7 -0
- package/util-adf/tsdoc-metadata.json +11 -0
- package/util-jira-v3-api/atlassian-app-util-jira-v3-api.api.json +40 -565
- package/util-jira-v3-api/atlassian-app.api.md +16 -56
- package/util-jira-v3-api/index.cjs.js +1 -1
- package/util-jira-v3-api/index.d.ts +43 -27
- package/util-jira-v3-api/index.es.js +2 -4
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
## API Report File for "@valiantys/atlassian-app"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
// @public
|
|
8
|
+
export interface AdfDoc {
|
|
9
|
+
// (undocumented)
|
|
10
|
+
content: AdfNode[];
|
|
11
|
+
// (undocumented)
|
|
12
|
+
type: 'doc';
|
|
13
|
+
// (undocumented)
|
|
14
|
+
version: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// @public
|
|
18
|
+
export interface AdfMark {
|
|
19
|
+
// (undocumented)
|
|
20
|
+
attrs?: Record<string, unknown>;
|
|
21
|
+
// (undocumented)
|
|
22
|
+
type: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// @public
|
|
26
|
+
export interface AdfNode {
|
|
27
|
+
// (undocumented)
|
|
28
|
+
attrs?: AdfNodeAttrs;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
content?: AdfNode[];
|
|
31
|
+
// (undocumented)
|
|
32
|
+
marks?: AdfMark[];
|
|
33
|
+
// (undocumented)
|
|
34
|
+
text?: string;
|
|
35
|
+
// (undocumented)
|
|
36
|
+
type: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @public
|
|
40
|
+
export interface AdfNodeAttrs {
|
|
41
|
+
// (undocumented)
|
|
42
|
+
[key: string]: unknown;
|
|
43
|
+
// (undocumented)
|
|
44
|
+
localId?: string;
|
|
45
|
+
// (undocumented)
|
|
46
|
+
text?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// @public
|
|
50
|
+
export interface AdfTextNode extends AdfNode {
|
|
51
|
+
// (undocumented)
|
|
52
|
+
attrs?: never;
|
|
53
|
+
// (undocumented)
|
|
54
|
+
text: string;
|
|
55
|
+
// (undocumented)
|
|
56
|
+
type: 'text';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
export function appendParagraph(doc: AdfDoc, value: string): AdfDoc;
|
|
61
|
+
|
|
62
|
+
// @public (undocumented)
|
|
63
|
+
export function replaceInAdf(doc: AdfDoc, searchText: string, replacement: string): AdfDoc;
|
|
64
|
+
|
|
65
|
+
// @public (undocumented)
|
|
66
|
+
export function searchAdf(doc: AdfDoc, searchText: string): boolean;
|
|
67
|
+
|
|
68
|
+
// @public (undocumented)
|
|
69
|
+
export function toAdfDoc(value: string): AdfDoc;
|
|
70
|
+
|
|
71
|
+
// (No @packageDocumentation comment for this package)
|
|
72
|
+
|
|
73
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/shared/util-adf/src/lib/adf/index.cjs.js");exports.appendParagraph=e.appendParagraph;exports.replaceInAdf=e.replaceInAdf;exports.searchAdf=e.searchAdf;exports.toAdfDoc=e.toAdfDoc;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** Root document node */
|
|
2
|
+
export declare interface AdfDoc {
|
|
3
|
+
type: 'doc';
|
|
4
|
+
version: 1;
|
|
5
|
+
content: AdfNode[];
|
|
6
|
+
}
|
|
7
|
+
|
|
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
|
+
export declare interface AdfMark {
|
|
13
|
+
type: string;
|
|
14
|
+
attrs?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
|
|
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
|
+
export declare interface AdfNode {
|
|
24
|
+
type: string;
|
|
25
|
+
text?: string;
|
|
26
|
+
attrs?: AdfNodeAttrs;
|
|
27
|
+
content?: AdfNode[];
|
|
28
|
+
marks?: AdfMark[];
|
|
29
|
+
}
|
|
30
|
+
|
|
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
|
+
export declare interface AdfNodeAttrs {
|
|
37
|
+
text?: string;
|
|
38
|
+
localId?: string;
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** text node — text is a required top-level property, not in attrs */
|
|
43
|
+
export declare interface AdfTextNode extends AdfNode {
|
|
44
|
+
type: 'text';
|
|
45
|
+
text: string;
|
|
46
|
+
attrs?: never;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare function appendParagraph(doc: AdfDoc, value: string): AdfDoc;
|
|
50
|
+
|
|
51
|
+
export declare function replaceInAdf(doc: AdfDoc, searchText: string, replacement: string): AdfDoc;
|
|
52
|
+
|
|
53
|
+
export declare function searchAdf(doc: AdfDoc, searchText: string): boolean;
|
|
54
|
+
|
|
55
|
+
export declare function toAdfDoc(value: string): AdfDoc;
|
|
56
|
+
|
|
57
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.8"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|