@valiantys/atlassian-app-frontend 3.0.0-alpha-9 → 3.0.0-alpha-11
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 +45 -42
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js +1 -1
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js +51 -29
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js +1 -1
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js +28 -17
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -1
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +93 -84
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -1
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +58 -66
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js +51 -0
- package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js +1 -1
- package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js +1 -1
- package/atlassian-app/index.d.ts +1 -0
- package/atlassian-app-standalone/atlassian-app-frontend-atlassian-app-standalone.api.json +29 -2
- package/atlassian-app-standalone/atlassian-app-frontend.api.md +3 -1
- package/atlassian-app-standalone/index.d.ts +3 -1
- package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend-data-access-atlassian-product-fetch-oauth.api.json +241 -2
- package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend.api.md +17 -1
- package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -1
- package/data-access-atlassian-product-fetch-oauth/index.d.ts +11 -1
- package/data-access-atlassian-product-fetch-oauth/index.es.js +9 -7
- package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +130 -11
- package/data-access-issue/atlassian-app-frontend.api.md +9 -7
- package/data-access-issue/index.d.ts +33 -17
- package/package.json +1 -1
- package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -2
- package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +25 -24
- package/ui-oauth-login/atlassian-app-frontend-ui-oauth-login.api.json +340 -0
- package/ui-oauth-login/atlassian-app-frontend.api.md +29 -0
- package/ui-oauth-login/index.cjs.js +1 -1
- package/ui-oauth-login/index.d.ts +23 -0
- package/ui-oauth-login/index.es.js +7 -3
- package/ui-page-loading-view/atlassian-app-frontend-ui-page-loading-view.api.json +10 -5
- package/ui-page-loading-view/atlassian-app-frontend.api.md +2 -2
- package/ui-page-loading-view/index.d.ts +2 -2
- package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +97 -2
- package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +9 -1
- package/util-atlassian-product-fetch/index.d.ts +6 -1
- package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +454 -86
- package/util-jira-v3-api/atlassian-app-frontend.api.md +51 -23
- package/util-jira-v3-api/index.d.ts +37 -18
|
@@ -12,6 +12,7 @@ export declare function OAuthProvider({ children, ...config }: PropsWithChildren
|
|
|
12
12
|
export declare interface OAuthProviderProps {
|
|
13
13
|
clientId: string;
|
|
14
14
|
codeTokenExchangeUrl: string;
|
|
15
|
+
appBaseContext?: string;
|
|
15
16
|
/**
|
|
16
17
|
* OAuth App Name
|
|
17
18
|
*/
|
|
@@ -19,6 +20,28 @@ export declare interface OAuthProviderProps {
|
|
|
19
20
|
oAuthScopes: AtlassianOAuthScopes[];
|
|
20
21
|
}
|
|
21
22
|
|
|
23
|
+
export declare function OAuthRedirectLogin(props: Readonly<OAuthRedirectLoginProps>): JSX_2.Element;
|
|
24
|
+
|
|
25
|
+
declare interface OAuthRedirectLoginProps {
|
|
26
|
+
clientId: string;
|
|
27
|
+
redirectUri: string;
|
|
28
|
+
oAuthScopes: AtlassianOAuthScopes[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare function OAuthRoutes({ codeTokenExchangeUrl, clientId, oAuthScopes, redirectUri, callbackPath, setAuth, }: Readonly<OAuthRoutesProps>): JSX_2.Element;
|
|
32
|
+
|
|
33
|
+
export declare interface OAuthRoutesProps {
|
|
34
|
+
codeTokenExchangeUrl: string;
|
|
35
|
+
clientId: string;
|
|
36
|
+
oAuthScopes: AtlassianOAuthScopes[];
|
|
37
|
+
redirectUri: string;
|
|
38
|
+
callbackPath: string;
|
|
39
|
+
setAuth: (auth: {
|
|
40
|
+
token: string;
|
|
41
|
+
expiresAt: number;
|
|
42
|
+
}) => void;
|
|
43
|
+
}
|
|
44
|
+
|
|
22
45
|
export declare const useOAuth: () => OAuth;
|
|
23
46
|
|
|
24
47
|
export { }
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { OAuthProvider as
|
|
1
|
+
import { OAuthProvider as t, useOAuth as e } from "../atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js";
|
|
2
|
+
import { OAuthRoutes as h } from "../atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js";
|
|
3
|
+
import { OAuthRedirectLogin as O } from "../atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.es.js";
|
|
2
4
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
t as OAuthProvider,
|
|
6
|
+
O as OAuthRedirectLogin,
|
|
7
|
+
h as OAuthRoutes,
|
|
8
|
+
e as useOAuth
|
|
5
9
|
};
|
|
@@ -181,9 +181,14 @@
|
|
|
181
181
|
"kind": "Content",
|
|
182
182
|
"text": "export declare function PageLoadingView({ label, loadingError, labelSize, }: "
|
|
183
183
|
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "Reference",
|
|
186
|
+
"text": "Readonly",
|
|
187
|
+
"canonicalReference": "!Readonly:type"
|
|
188
|
+
},
|
|
184
189
|
{
|
|
185
190
|
"kind": "Content",
|
|
186
|
-
"text": "{\n label: string;\n loadingError?: string;\n labelSize?: "
|
|
191
|
+
"text": "<{\n label: string;\n loadingError?: string;\n labelSize?: "
|
|
187
192
|
},
|
|
188
193
|
{
|
|
189
194
|
"kind": "Reference",
|
|
@@ -192,7 +197,7 @@
|
|
|
192
197
|
},
|
|
193
198
|
{
|
|
194
199
|
"kind": "Content",
|
|
195
|
-
"text": "['size'];\n}"
|
|
200
|
+
"text": "['size'];\n}>"
|
|
196
201
|
},
|
|
197
202
|
{
|
|
198
203
|
"kind": "Content",
|
|
@@ -214,8 +219,8 @@
|
|
|
214
219
|
],
|
|
215
220
|
"fileUrlPath": "../../shared/frontend-ui-page-loading-view/src/lib/page-loading-view.d.ts",
|
|
216
221
|
"returnTypeTokenRange": {
|
|
217
|
-
"startIndex":
|
|
218
|
-
"endIndex":
|
|
222
|
+
"startIndex": 6,
|
|
223
|
+
"endIndex": 8
|
|
219
224
|
},
|
|
220
225
|
"releaseTag": "Public",
|
|
221
226
|
"overloadIndex": 1,
|
|
@@ -224,7 +229,7 @@
|
|
|
224
229
|
"parameterName": "{ label, loadingError, labelSize, }",
|
|
225
230
|
"parameterTypeTokenRange": {
|
|
226
231
|
"startIndex": 1,
|
|
227
|
-
"endIndex":
|
|
232
|
+
"endIndex": 5
|
|
228
233
|
},
|
|
229
234
|
"isOptional": false
|
|
230
235
|
}
|
|
@@ -8,11 +8,11 @@ import { HeadingProps } from '@atlaskit/heading';
|
|
|
8
8
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// @public (undocumented)
|
|
11
|
-
export function PageLoadingView({ label, loadingError, labelSize, }: {
|
|
11
|
+
export function PageLoadingView({ label, loadingError, labelSize, }: Readonly<{
|
|
12
12
|
label: string;
|
|
13
13
|
loadingError?: string;
|
|
14
14
|
labelSize?: HeadingProps['size'];
|
|
15
|
-
}): JSX_2.Element;
|
|
15
|
+
}>): JSX_2.Element;
|
|
16
16
|
|
|
17
17
|
// (No @packageDocumentation comment for this package)
|
|
18
18
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HeadingProps } from '@atlaskit/heading';
|
|
2
2
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
|
-
export declare function PageLoadingView({ label, loadingError, labelSize, }: {
|
|
4
|
+
export declare function PageLoadingView({ label, loadingError, labelSize, }: Readonly<{
|
|
5
5
|
label: string;
|
|
6
6
|
loadingError?: string;
|
|
7
7
|
labelSize?: HeadingProps['size'];
|
|
8
|
-
}): JSX_2.Element;
|
|
8
|
+
}>): JSX_2.Element;
|
|
9
9
|
|
|
10
10
|
export { }
|
package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json
CHANGED
|
@@ -483,6 +483,84 @@
|
|
|
483
483
|
],
|
|
484
484
|
"extendsTokenRanges": []
|
|
485
485
|
},
|
|
486
|
+
{
|
|
487
|
+
"kind": "Interface",
|
|
488
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianProxyFetchRequest:interface",
|
|
489
|
+
"docComment": "",
|
|
490
|
+
"excerptTokens": [
|
|
491
|
+
{
|
|
492
|
+
"kind": "Content",
|
|
493
|
+
"text": "export interface AtlassianProxyFetchRequest "
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
"fileUrlPath": "../../shared/util-atlassian-product-fetch/src/lib/atlassian-product-fetch-service.d.ts",
|
|
497
|
+
"releaseTag": "Public",
|
|
498
|
+
"name": "AtlassianProxyFetchRequest",
|
|
499
|
+
"preserveMemberOrder": false,
|
|
500
|
+
"members": [
|
|
501
|
+
{
|
|
502
|
+
"kind": "PropertySignature",
|
|
503
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianProxyFetchRequest#body:member",
|
|
504
|
+
"docComment": "",
|
|
505
|
+
"excerptTokens": [
|
|
506
|
+
{
|
|
507
|
+
"kind": "Content",
|
|
508
|
+
"text": "body?: "
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"kind": "Reference",
|
|
512
|
+
"text": "Record",
|
|
513
|
+
"canonicalReference": "!Record:type"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"kind": "Content",
|
|
517
|
+
"text": "<string, any>"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"kind": "Content",
|
|
521
|
+
"text": ";"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"isReadonly": false,
|
|
525
|
+
"isOptional": true,
|
|
526
|
+
"releaseTag": "Public",
|
|
527
|
+
"name": "body",
|
|
528
|
+
"propertyTypeTokenRange": {
|
|
529
|
+
"startIndex": 1,
|
|
530
|
+
"endIndex": 3
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"kind": "PropertySignature",
|
|
535
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianProxyFetchRequest#request:member",
|
|
536
|
+
"docComment": "",
|
|
537
|
+
"excerptTokens": [
|
|
538
|
+
{
|
|
539
|
+
"kind": "Content",
|
|
540
|
+
"text": "request: "
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"kind": "Reference",
|
|
544
|
+
"text": "FetchRequest",
|
|
545
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!FetchRequest:interface"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"kind": "Content",
|
|
549
|
+
"text": ";"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"isReadonly": false,
|
|
553
|
+
"isOptional": false,
|
|
554
|
+
"releaseTag": "Public",
|
|
555
|
+
"name": "request",
|
|
556
|
+
"propertyTypeTokenRange": {
|
|
557
|
+
"startIndex": 1,
|
|
558
|
+
"endIndex": 2
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
"extendsTokenRanges": []
|
|
563
|
+
},
|
|
486
564
|
{
|
|
487
565
|
"kind": "Function",
|
|
488
566
|
"canonicalReference": "@valiantys/atlassian-app-frontend!bearerAuthFetch:function(1)",
|
|
@@ -1213,6 +1291,15 @@
|
|
|
1213
1291
|
"kind": "Content",
|
|
1214
1292
|
"text": "'json' | 'text'"
|
|
1215
1293
|
},
|
|
1294
|
+
{
|
|
1295
|
+
"kind": "Content",
|
|
1296
|
+
"text": ", includeCredentials?: "
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"kind": "Reference",
|
|
1300
|
+
"text": "RequestCredentials",
|
|
1301
|
+
"canonicalReference": "!RequestCredentials:type"
|
|
1302
|
+
},
|
|
1216
1303
|
{
|
|
1217
1304
|
"kind": "Content",
|
|
1218
1305
|
"text": "): "
|
|
@@ -1233,8 +1320,8 @@
|
|
|
1233
1320
|
],
|
|
1234
1321
|
"fileUrlPath": "../../../shared/util-fetch/src/lib/shared-util-fetch.d.ts",
|
|
1235
1322
|
"returnTypeTokenRange": {
|
|
1236
|
-
"startIndex":
|
|
1237
|
-
"endIndex":
|
|
1323
|
+
"startIndex": 17,
|
|
1324
|
+
"endIndex": 19
|
|
1238
1325
|
},
|
|
1239
1326
|
"releaseTag": "Public",
|
|
1240
1327
|
"overloadIndex": 1,
|
|
@@ -1278,6 +1365,14 @@
|
|
|
1278
1365
|
"endIndex": 14
|
|
1279
1366
|
},
|
|
1280
1367
|
"isOptional": true
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"parameterName": "includeCredentials",
|
|
1371
|
+
"parameterTypeTokenRange": {
|
|
1372
|
+
"startIndex": 15,
|
|
1373
|
+
"endIndex": 16
|
|
1374
|
+
},
|
|
1375
|
+
"isOptional": true
|
|
1281
1376
|
}
|
|
1282
1377
|
],
|
|
1283
1378
|
"typeParameters": [
|
|
@@ -26,6 +26,14 @@ export interface AtlassianProductFetchService<P extends Product> {
|
|
|
26
26
|
route: (template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]) => FetchRoute;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// @public (undocumented)
|
|
30
|
+
export interface AtlassianProxyFetchRequest {
|
|
31
|
+
// (undocumented)
|
|
32
|
+
body?: Record<string, any>;
|
|
33
|
+
// (undocumented)
|
|
34
|
+
request: FetchRequest;
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
// @public (undocumented)
|
|
30
38
|
export function bearerAuthFetch<T>(authToken: string, url: string, method: FetchMethod, body?: Record<string, unknown>, responseType?: 'json' | 'text', headers?: Record<string, string>): Promise<T>;
|
|
31
39
|
|
|
@@ -70,7 +78,7 @@ export type FetchRoute = {
|
|
|
70
78
|
export type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
|
|
71
79
|
|
|
72
80
|
// @public (undocumented)
|
|
73
|
-
export function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text'): Promise<T>;
|
|
81
|
+
export function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text', includeCredentials?: RequestCredentials): Promise<T>;
|
|
74
82
|
|
|
75
83
|
// @public (undocumented)
|
|
76
84
|
export interface PagedResponseValues<T> {
|
|
@@ -12,6 +12,11 @@ export declare interface AtlassianProductFetchService<P extends Product> {
|
|
|
12
12
|
fullUrl: (path: string) => string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export declare interface AtlassianProxyFetchRequest {
|
|
16
|
+
request: FetchRequest;
|
|
17
|
+
body?: Record<string, any>;
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
export declare function bearerAuthFetch<T>(authToken: string, url: string, method: FetchMethod, body?: Record<string, unknown>, responseType?: 'json' | 'text', headers?: Record<string, string>): Promise<T>;
|
|
16
21
|
|
|
17
22
|
export declare function bearerAuthFetchRaw(authToken: string, url: string, init: RequestInit): Promise<Response>;
|
|
@@ -41,7 +46,7 @@ export declare type FetchRoute = {
|
|
|
41
46
|
|
|
42
47
|
export declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
|
|
43
48
|
|
|
44
|
-
export declare function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text'): Promise<T>;
|
|
49
|
+
export declare function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text', includeCredentials?: RequestCredentials): Promise<T>;
|
|
45
50
|
|
|
46
51
|
export declare interface PagedResponseValues<T> {
|
|
47
52
|
startAt: number;
|