@valiantys/atlassian-app 3.2.0-alpha-10 → 3.2.0-alpha-12
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/shared/util-adf/src/lib/adf/index.cjs.js +1 -1
- package/atlassian/shared/util-adf/src/lib/adf/index.es.js +63 -49
- package/package.json +6 -1
- package/ui-app-flags-forge/atlassian-app-ui-app-flags-forge.api.json +314 -0
- package/ui-app-flags-forge/atlassian-app.api.md +25 -0
- package/ui-app-flags-forge/index.cjs.js +1 -0
- package/ui-app-flags-forge/index.d.ts +24 -0
- package/ui-app-flags-forge/index.es.js +5 -0
- package/ui-app-flags-forge/tsdoc-metadata.json +11 -0
- package/util-adf/atlassian-app-util-adf.api.json +63 -0
- package/util-adf/atlassian-app.api.md +3 -0
- package/util-adf/index.cjs.js +1 -1
- package/util-adf/index.d.ts +2 -0
- package/util-adf/index.es.js +7 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(t,e){var r,n;for(const u of t)if(u.text!==void 0&&u.text.includes(e)||(n=(r=u.attrs)==null?void 0:r.text)!=null&&n.includes(e)||u.content&&i(u.content,e))return!0;return!1}function g(t,e){return i(t.content,e)}function f(t,e,r){return t.map(n=>{var u;return n.text!==void 0?{...n,text:n.text.replaceAll(e,r)}:((u=n.attrs)==null?void 0:u.text)!==void 0?{...n,attrs:{...n.attrs,text:n.attrs.text.replaceAll(e,r)}}:n.content?{...n,content:f(n.content,e,r)}:n})}function y(t,e,r){return{...t,content:f(t.content,e,r)}}function $(t,e){const r={type:"text",text:e};return{...t,content:[...t.content,{type:"paragraph",content:[r]}]}}function l(t){return t.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""")}function A(t,e){return e?e.reduce((r,n)=>{var u,s,c;switch(n.type){case"strong":return`<strong>${r}</strong>`;case"em":return`<em>${r}</em>`;case"code":return`<code>${r}</code>`;case"strike":return`<s>${r}</s>`;case"underline":return`<u>${r}</u>`;case"link":return`<a href="${l(String(((u=n.attrs)==null?void 0:u.href)??""))}">${r}</a>`;case"textColor":return`<span style="color:${l(String(((s=n.attrs)==null?void 0:s.color)??""))}">${r}</span>`;case"subsup":return((c=n.attrs)==null?void 0:c.type)==="sub"?`<sub>${r}</sub>`:`<sup>${r}</sup>`;default:return r}},t):t}function a(t){return(t==null?void 0:t.map(b).join(""))??""}function b(t){var e,r,n,u;switch(t.type){case"text":return A(l(t.text??""),t.marks);case"hardBreak":return"<br>";case"rule":return"<hr>";case"paragraph":return`<p>${a(t.content)}</p>`;case"heading":{const s=Number(((e=t.attrs)==null?void 0:e.level)??1);return`<h${s}>${a(t.content)}</h${s}>`}case"blockquote":return`<blockquote>${a(t.content)}</blockquote>`;case"bulletList":return`<ul>${a(t.content)}</ul>`;case"orderedList":return`<ol>${a(t.content)}</ol>`;case"listItem":return`<li>${a(t.content)}</li>`;case"codeBlock":return`<pre${(r=t.attrs)!=null&&r.language?` data-language="${l(String(t.attrs.language))}"`:""}><code>${a(t.content)}</code></pre>`;case"emoji":case"mention":case"status":return l(String(((n=t.attrs)==null?void 0:n.text)??""));case"inlineCard":{const s=l(String(((u=t.attrs)==null?void 0:u.url)??""));return`<a href="${s}">${s}</a>`}case"table":return`<table>${a(t.content)}</table>`;case"tableRow":return`<tr>${a(t.content)}</tr>`;case"tableHeader":return`<th>${a(t.content)}</th>`;case"tableCell":return`<td>${a(t.content)}</td>`;default:return a(t.content)}}function o(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!="object"||typeof e!="object"||Array.isArray(t)!==Array.isArray(e))return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length!==e.length?!1:t.every((c,p)=>o(c,e[p]));const r=t,n=e,u=Object.keys(r),s=Object.keys(n);return u.length!==s.length?!1:u.every(c=>o(r[c],n[c]))}function h(t,e){return e.content.every(r=>t.content.some(n=>o(r,n)))}function d(t){return a(t.content)}function x(t){return{type:"doc",version:1,content:[{type:"paragraph",content:[{type:"text",text:t}]}]}}exports.adfToHtml=d;exports.appendParagraph=$;exports.isAdfSubset=h;exports.replaceInAdf=y;exports.searchAdf=g;exports.toAdfDoc=x;
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
function
|
|
2
|
-
var
|
|
1
|
+
function i(t, e) {
|
|
2
|
+
var r, n;
|
|
3
3
|
for (const u of t)
|
|
4
|
-
if (u.text !== void 0 && u.text.includes(
|
|
4
|
+
if (u.text !== void 0 && u.text.includes(e) || (n = (r = u.attrs) == null ? void 0 : r.text) != null && n.includes(e) || u.content && i(u.content, e))
|
|
5
5
|
return !0;
|
|
6
6
|
return !1;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
return
|
|
8
|
+
function y(t, e) {
|
|
9
|
+
return i(t.content, e);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
return t.map((
|
|
11
|
+
function f(t, e, r) {
|
|
12
|
+
return t.map((n) => {
|
|
13
13
|
var u;
|
|
14
|
-
return
|
|
15
|
-
...
|
|
14
|
+
return n.text !== void 0 ? { ...n, text: n.text.replaceAll(e, r) } : ((u = n.attrs) == null ? void 0 : u.text) !== void 0 ? {
|
|
15
|
+
...n,
|
|
16
16
|
attrs: {
|
|
17
|
-
...
|
|
18
|
-
text:
|
|
17
|
+
...n.attrs,
|
|
18
|
+
text: n.attrs.text.replaceAll(e, r)
|
|
19
19
|
}
|
|
20
|
-
} :
|
|
21
|
-
...
|
|
22
|
-
content:
|
|
23
|
-
} :
|
|
20
|
+
} : n.content ? {
|
|
21
|
+
...n,
|
|
22
|
+
content: f(n.content, e, r)
|
|
23
|
+
} : n;
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function b(t, e, r) {
|
|
27
27
|
return {
|
|
28
28
|
...t,
|
|
29
|
-
content:
|
|
29
|
+
content: f(t.content, e, r)
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
const
|
|
32
|
+
function A(t, e) {
|
|
33
|
+
const r = { type: "text", text: e };
|
|
34
34
|
return {
|
|
35
35
|
...t,
|
|
36
|
-
content: [...t.content, { type: "paragraph", content: [
|
|
36
|
+
content: [...t.content, { type: "paragraph", content: [r] }]
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function l(t) {
|
|
40
40
|
return t.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var u,
|
|
45
|
-
switch (
|
|
42
|
+
function $(t, e) {
|
|
43
|
+
return e ? e.reduce((r, n) => {
|
|
44
|
+
var u, s, c;
|
|
45
|
+
switch (n.type) {
|
|
46
46
|
case "strong":
|
|
47
|
-
return `<strong>${
|
|
47
|
+
return `<strong>${r}</strong>`;
|
|
48
48
|
case "em":
|
|
49
|
-
return `<em>${
|
|
49
|
+
return `<em>${r}</em>`;
|
|
50
50
|
case "code":
|
|
51
|
-
return `<code>${
|
|
51
|
+
return `<code>${r}</code>`;
|
|
52
52
|
case "strike":
|
|
53
|
-
return `<s>${
|
|
53
|
+
return `<s>${r}</s>`;
|
|
54
54
|
case "underline":
|
|
55
|
-
return `<u>${
|
|
55
|
+
return `<u>${r}</u>`;
|
|
56
56
|
case "link":
|
|
57
|
-
return `<a href="${
|
|
57
|
+
return `<a href="${l(String(((u = n.attrs) == null ? void 0 : u.href) ?? ""))}">${r}</a>`;
|
|
58
58
|
case "textColor":
|
|
59
|
-
return `<span style="color:${
|
|
59
|
+
return `<span style="color:${l(String(((s = n.attrs) == null ? void 0 : s.color) ?? ""))}">${r}</span>`;
|
|
60
60
|
case "subsup":
|
|
61
|
-
return ((
|
|
61
|
+
return ((c = n.attrs) == null ? void 0 : c.type) === "sub" ? `<sub>${r}</sub>` : `<sup>${r}</sup>`;
|
|
62
62
|
default:
|
|
63
|
-
return
|
|
63
|
+
return r;
|
|
64
64
|
}
|
|
65
65
|
}, t) : t;
|
|
66
66
|
}
|
|
67
67
|
function a(t) {
|
|
68
|
-
return (t == null ? void 0 : t.map(
|
|
68
|
+
return (t == null ? void 0 : t.map(g).join("")) ?? "";
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
var
|
|
70
|
+
function g(t) {
|
|
71
|
+
var e, r, n, u;
|
|
72
72
|
switch (t.type) {
|
|
73
73
|
case "text":
|
|
74
|
-
return
|
|
74
|
+
return $(l(t.text ?? ""), t.marks);
|
|
75
75
|
case "hardBreak":
|
|
76
76
|
return "<br>";
|
|
77
77
|
case "rule":
|
|
@@ -79,8 +79,8 @@ function f(t) {
|
|
|
79
79
|
case "paragraph":
|
|
80
80
|
return `<p>${a(t.content)}</p>`;
|
|
81
81
|
case "heading": {
|
|
82
|
-
const
|
|
83
|
-
return `<h${
|
|
82
|
+
const s = Number(((e = t.attrs) == null ? void 0 : e.level) ?? 1);
|
|
83
|
+
return `<h${s}>${a(t.content)}</h${s}>`;
|
|
84
84
|
}
|
|
85
85
|
case "blockquote":
|
|
86
86
|
return `<blockquote>${a(t.content)}</blockquote>`;
|
|
@@ -91,14 +91,14 @@ function f(t) {
|
|
|
91
91
|
case "listItem":
|
|
92
92
|
return `<li>${a(t.content)}</li>`;
|
|
93
93
|
case "codeBlock":
|
|
94
|
-
return `<pre${(
|
|
94
|
+
return `<pre${(r = t.attrs) != null && r.language ? ` data-language="${l(String(t.attrs.language))}"` : ""}><code>${a(t.content)}</code></pre>`;
|
|
95
95
|
case "emoji":
|
|
96
96
|
case "mention":
|
|
97
97
|
case "status":
|
|
98
|
-
return
|
|
98
|
+
return l(String(((n = t.attrs) == null ? void 0 : n.text) ?? ""));
|
|
99
99
|
case "inlineCard": {
|
|
100
|
-
const
|
|
101
|
-
return `<a href="${
|
|
100
|
+
const s = l(String(((u = t.attrs) == null ? void 0 : u.url) ?? ""));
|
|
101
|
+
return `<a href="${s}">${s}</a>`;
|
|
102
102
|
}
|
|
103
103
|
case "table":
|
|
104
104
|
return `<table>${a(t.content)}</table>`;
|
|
@@ -112,10 +112,23 @@ function f(t) {
|
|
|
112
112
|
return a(t.content);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
function o(t, e) {
|
|
116
|
+
if (t === e) return !0;
|
|
117
|
+
if (t === null || e === null || typeof t != "object" || typeof e != "object" || Array.isArray(t) !== Array.isArray(e)) return !1;
|
|
118
|
+
if (Array.isArray(t) && Array.isArray(e))
|
|
119
|
+
return t.length !== e.length ? !1 : t.every((c, p) => o(c, e[p]));
|
|
120
|
+
const r = t, n = e, u = Object.keys(r), s = Object.keys(n);
|
|
121
|
+
return u.length !== s.length ? !1 : u.every((c) => o(r[c], n[c]));
|
|
122
|
+
}
|
|
123
|
+
function h(t, e) {
|
|
124
|
+
return e.content.every(
|
|
125
|
+
(r) => t.content.some((n) => o(r, n))
|
|
126
|
+
);
|
|
127
|
+
}
|
|
115
128
|
function x(t) {
|
|
116
129
|
return a(t.content);
|
|
117
130
|
}
|
|
118
|
-
function
|
|
131
|
+
function v(t) {
|
|
119
132
|
return {
|
|
120
133
|
type: "doc",
|
|
121
134
|
version: 1,
|
|
@@ -132,8 +145,9 @@ function h(t) {
|
|
|
132
145
|
}
|
|
133
146
|
export {
|
|
134
147
|
x as adfToHtml,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
148
|
+
A as appendParagraph,
|
|
149
|
+
h as isAdfSubset,
|
|
150
|
+
b as replaceInAdf,
|
|
151
|
+
y as searchAdf,
|
|
152
|
+
v as toAdfDoc
|
|
139
153
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiantys/atlassian-app",
|
|
3
|
-
"version": "3.2.0-alpha-
|
|
3
|
+
"version": "3.2.0-alpha-12",
|
|
4
4
|
"description": "This library provides Atlassian Forge components, wrappers, and utilities to support writing Forge apps that can run deployed or in standalone mode",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./frontend-app": {
|
|
@@ -93,6 +93,11 @@
|
|
|
93
93
|
"require": "./ui-app-flags/index.cjs.js",
|
|
94
94
|
"types": "./ui-app-flags/index.d.ts"
|
|
95
95
|
},
|
|
96
|
+
"./ui-app-flags-forge": {
|
|
97
|
+
"import": "./ui-app-flags-forge/index.es.js",
|
|
98
|
+
"require": "./ui-app-flags-forge/index.cjs.js",
|
|
99
|
+
"types": "./ui-app-flags-forge/index.d.ts"
|
|
100
|
+
},
|
|
96
101
|
"./ui-atlaskit-forms": {
|
|
97
102
|
"import": "./ui-atlaskit-forms/index.es.js",
|
|
98
103
|
"require": "./ui-atlaskit-forms/index.cjs.js",
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
+
"toolVersion": "7.52.8",
|
|
5
|
+
"schemaVersion": 1011,
|
|
6
|
+
"oldestForwardsCompatibleVersion": 1001,
|
|
7
|
+
"tsdocConfig": {
|
|
8
|
+
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
9
|
+
"noStandardTags": true,
|
|
10
|
+
"tagDefinitions": [
|
|
11
|
+
{
|
|
12
|
+
"tagName": "@alpha",
|
|
13
|
+
"syntaxKind": "modifier"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"tagName": "@beta",
|
|
17
|
+
"syntaxKind": "modifier"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"tagName": "@defaultValue",
|
|
21
|
+
"syntaxKind": "block"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"tagName": "@decorator",
|
|
25
|
+
"syntaxKind": "block",
|
|
26
|
+
"allowMultiple": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"tagName": "@deprecated",
|
|
30
|
+
"syntaxKind": "block"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"tagName": "@eventProperty",
|
|
34
|
+
"syntaxKind": "modifier"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"tagName": "@example",
|
|
38
|
+
"syntaxKind": "block",
|
|
39
|
+
"allowMultiple": true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"tagName": "@experimental",
|
|
43
|
+
"syntaxKind": "modifier"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"tagName": "@inheritDoc",
|
|
47
|
+
"syntaxKind": "inline"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"tagName": "@internal",
|
|
51
|
+
"syntaxKind": "modifier"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"tagName": "@label",
|
|
55
|
+
"syntaxKind": "inline"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"tagName": "@link",
|
|
59
|
+
"syntaxKind": "inline",
|
|
60
|
+
"allowMultiple": true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"tagName": "@override",
|
|
64
|
+
"syntaxKind": "modifier"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"tagName": "@packageDocumentation",
|
|
68
|
+
"syntaxKind": "modifier"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"tagName": "@param",
|
|
72
|
+
"syntaxKind": "block",
|
|
73
|
+
"allowMultiple": true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"tagName": "@privateRemarks",
|
|
77
|
+
"syntaxKind": "block"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"tagName": "@public",
|
|
81
|
+
"syntaxKind": "modifier"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"tagName": "@readonly",
|
|
85
|
+
"syntaxKind": "modifier"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"tagName": "@remarks",
|
|
89
|
+
"syntaxKind": "block"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"tagName": "@returns",
|
|
93
|
+
"syntaxKind": "block"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"tagName": "@sealed",
|
|
97
|
+
"syntaxKind": "modifier"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"tagName": "@see",
|
|
101
|
+
"syntaxKind": "block"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"tagName": "@throws",
|
|
105
|
+
"syntaxKind": "block",
|
|
106
|
+
"allowMultiple": true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"tagName": "@typeParam",
|
|
110
|
+
"syntaxKind": "block",
|
|
111
|
+
"allowMultiple": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"tagName": "@virtual",
|
|
115
|
+
"syntaxKind": "modifier"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"tagName": "@betaDocumentation",
|
|
119
|
+
"syntaxKind": "modifier"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"tagName": "@internalRemarks",
|
|
123
|
+
"syntaxKind": "block"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"tagName": "@preapproved",
|
|
127
|
+
"syntaxKind": "modifier"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"supportForTags": {
|
|
131
|
+
"@alpha": true,
|
|
132
|
+
"@beta": true,
|
|
133
|
+
"@defaultValue": true,
|
|
134
|
+
"@decorator": true,
|
|
135
|
+
"@deprecated": true,
|
|
136
|
+
"@eventProperty": true,
|
|
137
|
+
"@example": true,
|
|
138
|
+
"@experimental": true,
|
|
139
|
+
"@inheritDoc": true,
|
|
140
|
+
"@internal": true,
|
|
141
|
+
"@label": true,
|
|
142
|
+
"@link": true,
|
|
143
|
+
"@override": true,
|
|
144
|
+
"@packageDocumentation": true,
|
|
145
|
+
"@param": true,
|
|
146
|
+
"@privateRemarks": true,
|
|
147
|
+
"@public": true,
|
|
148
|
+
"@readonly": true,
|
|
149
|
+
"@remarks": true,
|
|
150
|
+
"@returns": true,
|
|
151
|
+
"@sealed": true,
|
|
152
|
+
"@see": true,
|
|
153
|
+
"@throws": true,
|
|
154
|
+
"@typeParam": true,
|
|
155
|
+
"@virtual": true,
|
|
156
|
+
"@betaDocumentation": true,
|
|
157
|
+
"@internalRemarks": true,
|
|
158
|
+
"@preapproved": true
|
|
159
|
+
},
|
|
160
|
+
"reportUnsupportedHtmlElements": false
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"kind": "Package",
|
|
164
|
+
"canonicalReference": "@valiantys/atlassian-app!",
|
|
165
|
+
"docComment": "",
|
|
166
|
+
"name": "@valiantys/atlassian-app",
|
|
167
|
+
"preserveMemberOrder": false,
|
|
168
|
+
"members": [
|
|
169
|
+
{
|
|
170
|
+
"kind": "EntryPoint",
|
|
171
|
+
"canonicalReference": "@valiantys/atlassian-app!",
|
|
172
|
+
"name": "",
|
|
173
|
+
"preserveMemberOrder": false,
|
|
174
|
+
"members": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "Function",
|
|
177
|
+
"canonicalReference": "@valiantys/atlassian-app!AppFlagsProviderForge:function(1)",
|
|
178
|
+
"docComment": "",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "export declare function AppFlagsProviderForge({ children }: "
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "Content",
|
|
186
|
+
"text": "{\n children: "
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"kind": "Reference",
|
|
190
|
+
"text": "ReactNode",
|
|
191
|
+
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"kind": "Content",
|
|
195
|
+
"text": ";\n}"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "Content",
|
|
199
|
+
"text": "): "
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"kind": "Content",
|
|
203
|
+
"text": "import(\"react/jsx-runtime\")."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"kind": "Reference",
|
|
207
|
+
"text": "JSX.Element",
|
|
208
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"kind": "Content",
|
|
212
|
+
"text": ";"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"fileUrlPath": "../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge.d.ts",
|
|
216
|
+
"returnTypeTokenRange": {
|
|
217
|
+
"startIndex": 5,
|
|
218
|
+
"endIndex": 7
|
|
219
|
+
},
|
|
220
|
+
"releaseTag": "Public",
|
|
221
|
+
"overloadIndex": 1,
|
|
222
|
+
"parameters": [
|
|
223
|
+
{
|
|
224
|
+
"parameterName": "{ children }",
|
|
225
|
+
"parameterTypeTokenRange": {
|
|
226
|
+
"startIndex": 1,
|
|
227
|
+
"endIndex": 4
|
|
228
|
+
},
|
|
229
|
+
"isOptional": false
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"name": "AppFlagsProviderForge"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"kind": "Function",
|
|
236
|
+
"canonicalReference": "@valiantys/atlassian-app!flagsReducer:function(1)",
|
|
237
|
+
"docComment": "",
|
|
238
|
+
"excerptTokens": [
|
|
239
|
+
{
|
|
240
|
+
"kind": "Content",
|
|
241
|
+
"text": "export declare function flagsReducer(flags: "
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"kind": "Reference",
|
|
245
|
+
"text": "Record",
|
|
246
|
+
"canonicalReference": "!Record:type"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"kind": "Content",
|
|
250
|
+
"text": "<string | number, "
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"kind": "Reference",
|
|
254
|
+
"text": "Flag",
|
|
255
|
+
"canonicalReference": "@forge/bridge!Flag:interface"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"kind": "Content",
|
|
259
|
+
"text": ">"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"kind": "Content",
|
|
263
|
+
"text": ", action: "
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"kind": "Reference",
|
|
267
|
+
"text": "AppFlagAction",
|
|
268
|
+
"canonicalReference": "@valiantys/atlassian-app!~AppFlagAction:interface"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"kind": "Content",
|
|
272
|
+
"text": "): "
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"kind": "Reference",
|
|
276
|
+
"text": "Flags",
|
|
277
|
+
"canonicalReference": "@valiantys/atlassian-app!~Flags:type"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"kind": "Content",
|
|
281
|
+
"text": ";"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"fileUrlPath": "../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge.d.ts",
|
|
285
|
+
"returnTypeTokenRange": {
|
|
286
|
+
"startIndex": 8,
|
|
287
|
+
"endIndex": 9
|
|
288
|
+
},
|
|
289
|
+
"releaseTag": "Public",
|
|
290
|
+
"overloadIndex": 1,
|
|
291
|
+
"parameters": [
|
|
292
|
+
{
|
|
293
|
+
"parameterName": "flags",
|
|
294
|
+
"parameterTypeTokenRange": {
|
|
295
|
+
"startIndex": 1,
|
|
296
|
+
"endIndex": 5
|
|
297
|
+
},
|
|
298
|
+
"isOptional": false
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"parameterName": "action",
|
|
302
|
+
"parameterTypeTokenRange": {
|
|
303
|
+
"startIndex": 6,
|
|
304
|
+
"endIndex": 7
|
|
305
|
+
},
|
|
306
|
+
"isOptional": false
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"name": "flagsReducer"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { Flag } from '@forge/bridge/out/flag/flag';
|
|
8
|
+
import { FlagOptions } from '@forge/bridge/out/flag/flag';
|
|
9
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
10
|
+
import { ReactNode } from 'react';
|
|
11
|
+
|
|
12
|
+
// @public (undocumented)
|
|
13
|
+
export function AppFlagsProviderForge({ children }: {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): JSX_2.Element;
|
|
16
|
+
|
|
17
|
+
// Warning: (ae-forgotten-export) The symbol "AppFlagAction" needs to be exported by the entry point ui-app-flags-forge.d.ts
|
|
18
|
+
// Warning: (ae-forgotten-export) The symbol "Flags" needs to be exported by the entry point ui-app-flags-forge.d.ts
|
|
19
|
+
//
|
|
20
|
+
// @public (undocumented)
|
|
21
|
+
export function flagsReducer(flags: Record<string | number, Flag>, action: AppFlagAction): Flags;
|
|
22
|
+
|
|
23
|
+
// (No @packageDocumentation comment for this package)
|
|
24
|
+
|
|
25
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js");exports.AppFlagsProviderForge=e.AppFlagsProviderForge;exports.flagsReducer=e.flagsReducer;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Flag } from '@forge/bridge/out/flag/flag';
|
|
2
|
+
import { FlagOptions } from '@forge/bridge/out/flag/flag';
|
|
3
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
declare interface AppFlagAction {
|
|
7
|
+
type: AppFlagActions;
|
|
8
|
+
id: string | number;
|
|
9
|
+
props?: AppFlagTypes;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare type AppFlagActions = 'add' | 'remove';
|
|
13
|
+
|
|
14
|
+
export declare function AppFlagsProviderForge({ children }: {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}): JSX_2.Element;
|
|
17
|
+
|
|
18
|
+
declare type AppFlagTypes = FlagOptions;
|
|
19
|
+
|
|
20
|
+
declare type Flags = Record<string | number, Flag>;
|
|
21
|
+
|
|
22
|
+
export declare function flagsReducer(flags: Record<string | number, Flag>, action: AppFlagAction): Flags;
|
|
23
|
+
|
|
24
|
+
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
|
+
}
|
|
@@ -855,6 +855,69 @@
|
|
|
855
855
|
],
|
|
856
856
|
"name": "appendParagraph"
|
|
857
857
|
},
|
|
858
|
+
{
|
|
859
|
+
"kind": "Function",
|
|
860
|
+
"canonicalReference": "@valiantys/atlassian-app!isAdfSubset:function(1)",
|
|
861
|
+
"docComment": "",
|
|
862
|
+
"excerptTokens": [
|
|
863
|
+
{
|
|
864
|
+
"kind": "Content",
|
|
865
|
+
"text": "export declare function isAdfSubset(superset: "
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"kind": "Reference",
|
|
869
|
+
"text": "AdfDoc",
|
|
870
|
+
"canonicalReference": "@valiantys/atlassian-app!AdfDoc:interface"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"kind": "Content",
|
|
874
|
+
"text": ", subset: "
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"kind": "Reference",
|
|
878
|
+
"text": "AdfDoc",
|
|
879
|
+
"canonicalReference": "@valiantys/atlassian-app!AdfDoc:interface"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"kind": "Content",
|
|
883
|
+
"text": "): "
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"kind": "Content",
|
|
887
|
+
"text": "boolean"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"kind": "Content",
|
|
891
|
+
"text": ";"
|
|
892
|
+
}
|
|
893
|
+
],
|
|
894
|
+
"fileUrlPath": "../../shared/util-adf/src/lib/adf.d.ts",
|
|
895
|
+
"returnTypeTokenRange": {
|
|
896
|
+
"startIndex": 5,
|
|
897
|
+
"endIndex": 6
|
|
898
|
+
},
|
|
899
|
+
"releaseTag": "Public",
|
|
900
|
+
"overloadIndex": 1,
|
|
901
|
+
"parameters": [
|
|
902
|
+
{
|
|
903
|
+
"parameterName": "superset",
|
|
904
|
+
"parameterTypeTokenRange": {
|
|
905
|
+
"startIndex": 1,
|
|
906
|
+
"endIndex": 2
|
|
907
|
+
},
|
|
908
|
+
"isOptional": false
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"parameterName": "subset",
|
|
912
|
+
"parameterTypeTokenRange": {
|
|
913
|
+
"startIndex": 3,
|
|
914
|
+
"endIndex": 4
|
|
915
|
+
},
|
|
916
|
+
"isOptional": false
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
"name": "isAdfSubset"
|
|
920
|
+
},
|
|
858
921
|
{
|
|
859
922
|
"kind": "Function",
|
|
860
923
|
"canonicalReference": "@valiantys/atlassian-app!replaceInAdf:function(1)",
|
|
@@ -62,6 +62,9 @@ export function adfToHtml(doc: AdfDoc): string;
|
|
|
62
62
|
// @public (undocumented)
|
|
63
63
|
export function appendParagraph(doc: AdfDoc, value: string): AdfDoc;
|
|
64
64
|
|
|
65
|
+
// @public (undocumented)
|
|
66
|
+
export function isAdfSubset(superset: AdfDoc, subset: AdfDoc): boolean;
|
|
67
|
+
|
|
65
68
|
// @public (undocumented)
|
|
66
69
|
export function replaceInAdf(doc: AdfDoc, searchText: string, replacement: string): AdfDoc;
|
|
67
70
|
|
package/util-adf/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/shared/util-adf/src/lib/adf/index.cjs.js");exports.adfToHtml=e.adfToHtml;exports.appendParagraph=e.appendParagraph;exports.isAdfSubset=e.isAdfSubset;exports.replaceInAdf=e.replaceInAdf;exports.searchAdf=e.searchAdf;exports.toAdfDoc=e.toAdfDoc;
|
package/util-adf/index.d.ts
CHANGED
|
@@ -50,6 +50,8 @@ export declare function adfToHtml(doc: AdfDoc): string;
|
|
|
50
50
|
|
|
51
51
|
export declare function appendParagraph(doc: AdfDoc, value: string): AdfDoc;
|
|
52
52
|
|
|
53
|
+
export declare function isAdfSubset(superset: AdfDoc, subset: AdfDoc): boolean;
|
|
54
|
+
|
|
53
55
|
export declare function replaceInAdf(doc: AdfDoc, searchText: string, replacement: string): AdfDoc;
|
|
54
56
|
|
|
55
57
|
export declare function searchAdf(doc: AdfDoc, searchText: string): boolean;
|
package/util-adf/index.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { adfToHtml as
|
|
1
|
+
import { adfToHtml as e, appendParagraph as f, isAdfSubset as r, replaceInAdf as o, searchAdf as p, toAdfDoc as t } from "../atlassian/shared/util-adf/src/lib/adf/index.es.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
o as
|
|
7
|
-
p as
|
|
3
|
+
e as adfToHtml,
|
|
4
|
+
f as appendParagraph,
|
|
5
|
+
r as isAdfSubset,
|
|
6
|
+
o as replaceInAdf,
|
|
7
|
+
p as searchAdf,
|
|
8
|
+
t as toAdfDoc
|
|
8
9
|
};
|