@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.
Files changed (43) hide show
  1. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -1
  2. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +45 -42
  3. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js +1 -1
  4. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js +51 -29
  5. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js +1 -1
  6. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js +28 -17
  7. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -1
  8. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +93 -84
  9. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -1
  10. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +58 -66
  11. package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js +1 -0
  12. package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js +51 -0
  13. package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js +1 -1
  14. package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js +1 -1
  15. package/atlassian-app/index.d.ts +1 -0
  16. package/atlassian-app-standalone/atlassian-app-frontend-atlassian-app-standalone.api.json +29 -2
  17. package/atlassian-app-standalone/atlassian-app-frontend.api.md +3 -1
  18. package/atlassian-app-standalone/index.d.ts +3 -1
  19. package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend-data-access-atlassian-product-fetch-oauth.api.json +241 -2
  20. package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend.api.md +17 -1
  21. package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -1
  22. package/data-access-atlassian-product-fetch-oauth/index.d.ts +11 -1
  23. package/data-access-atlassian-product-fetch-oauth/index.es.js +9 -7
  24. package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +130 -11
  25. package/data-access-issue/atlassian-app-frontend.api.md +9 -7
  26. package/data-access-issue/index.d.ts +33 -17
  27. package/package.json +1 -1
  28. package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -2
  29. package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +25 -24
  30. package/ui-oauth-login/atlassian-app-frontend-ui-oauth-login.api.json +340 -0
  31. package/ui-oauth-login/atlassian-app-frontend.api.md +29 -0
  32. package/ui-oauth-login/index.cjs.js +1 -1
  33. package/ui-oauth-login/index.d.ts +23 -0
  34. package/ui-oauth-login/index.es.js +7 -3
  35. package/ui-page-loading-view/atlassian-app-frontend-ui-page-loading-view.api.json +10 -5
  36. package/ui-page-loading-view/atlassian-app-frontend.api.md +2 -2
  37. package/ui-page-loading-view/index.d.ts +2 -2
  38. package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +97 -2
  39. package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +9 -1
  40. package/util-atlassian-product-fetch/index.d.ts +6 -1
  41. package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +454 -86
  42. package/util-jira-v3-api/atlassian-app-frontend.api.md +51 -23
  43. package/util-jira-v3-api/index.d.ts +37 -18
@@ -49,7 +49,7 @@ declare interface CreatedIssue {
49
49
  }
50
50
 
51
51
  declare interface CreateIssue {
52
- fields: IssueFields;
52
+ fields: IssueFields<AtlassianDocumentFormat | string>;
53
53
  properties?: {
54
54
  key: string;
55
55
  value: unknown;
@@ -113,12 +113,13 @@ declare interface HistoryMetadataParticipant {
113
113
  url: string;
114
114
  }
115
115
 
116
- declare interface Issue {
116
+ declare interface Issue<T = AtlassianDocumentFormat> {
117
117
  id: string;
118
118
  expand?: string;
119
119
  key: string;
120
120
  self?: string;
121
- fields: IssueFields;
121
+ fields: IssueFields<T>;
122
+ renderedFields?: IssueFields<string>;
122
123
  }
123
124
 
124
125
  declare type IssueComment = {
@@ -132,7 +133,7 @@ declare type IssueComment = {
132
133
  visibility: Visibility;
133
134
  };
134
135
 
135
- declare type IssueFields = CustomFields & StaticIssueFields;
136
+ declare type IssueFields<T = AtlassianDocumentFormat> = CustomFields & StaticIssueFields<T>;
136
137
 
137
138
  declare interface IssueLink {
138
139
  outwardIssue?: Issue;
@@ -175,7 +176,7 @@ declare interface IssueStatus {
175
176
 
176
177
  declare interface IssueTransition {
177
178
  id: string;
178
- looped: boolean;
179
+ looped?: boolean;
179
180
  }
180
181
 
181
182
  declare type JiraCommentResponse = {
@@ -186,21 +187,22 @@ declare type JiraCommentResponse = {
186
187
  };
187
188
 
188
189
  export declare class JiraIssueService {
189
- private fetchSvc;
190
+ private readonly fetchSvc;
190
191
  static readonly issueUrl = "/rest/api/3/issue";
191
192
  constructor(fetchSvc: AtlassianProductFetchService<'jira'>);
193
+ updateProperty(issueIdOrKey: string, propertyName: string, value: any): Promise<void>;
192
194
  updateField(issueIdOrKey: string, fieldName: string, value: unknown): Promise<void>;
193
195
  updateFields(issueIdOrKey: string, fields: Record<string, unknown>): Promise<void>;
194
196
  getIssueField<T>(issueIdOrKey: string, field: string): Promise<T | undefined>;
195
197
  getIssueFields(issueIdOrKey: string, fields: string[]): Promise<IssueFields | undefined>;
196
- getIssue(issueIdOrKey: string, fields?: string[]): Promise<Issue | undefined>;
197
- issueSearch(jql: string, fields: string[], maxResults?: number): Promise<Issue[]>;
198
+ getIssue(issueIdOrKey: string, fields?: string[], rendered?: boolean): Promise<Issue | undefined>;
199
+ issueSearch(jql: string, fields: string[], maxResults?: number): Promise<Issue<AtlassianDocumentFormat>[]>;
198
200
  addWorklog(issueIdOrKey: string, worklog: WorklogCreateRequest): Promise<Worklog>;
199
- queryForIssuesInProjects(projectIds: number[]): Promise<Issue[]>;
201
+ queryForIssuesInProjects(projectIdsOrKeys: string[]): Promise<Issue<AtlassianDocumentFormat>[]>;
200
202
  createIssue(body: CreateIssue): Promise<CreatedIssue>;
201
203
  updateIssue(issueIdOrKey: string, body: UpdateIssue): Promise<void>;
202
- getIssueComments(issueIdOrKey: string, startAt?: number): Promise<JiraCommentResponse | undefined>;
203
- getIssueCommentById(issueIdOrKey: string, commentId: string): Promise<IssueComment | undefined>;
204
+ getIssueComments(issueIdOrKey: string, startAt?: number): Promise<JiraCommentResponse>;
205
+ getIssueCommentById(issueIdOrKey: string, commentId: string): Promise<IssueComment>;
204
206
  addIssueComment(issueIdOrKey: string, body: AtlassianDocumentFormat): Promise<IssueComment>;
205
207
  transitionIssue(issueIdOrKey: string, body: TransitionIssueRequest): Promise<void>;
206
208
  createIssueLink(issueLinkRequest: IssueLinkRequest): Promise<void>;
@@ -221,7 +223,7 @@ declare interface Project {
221
223
 
222
224
  declare type RequestProductMethod = (url: FetchRoute, init: RequestInit) => Promise<APIResponse>;
223
225
 
224
- declare interface StaticIssueFields {
226
+ declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
225
227
  statuscategorychangedate?: string;
226
228
  fixVersions?: FixVersions;
227
229
  resolution?: unknown;
@@ -231,7 +233,7 @@ declare interface StaticIssueFields {
231
233
  maxResults: number;
232
234
  worklogs: Worklog[];
233
235
  };
234
- issuetype: {
236
+ issuetype?: {
235
237
  self?: string;
236
238
  id: string;
237
239
  description?: string;
@@ -242,7 +244,7 @@ declare interface StaticIssueFields {
242
244
  hierarchyLevel?: number;
243
245
  };
244
246
  timespent?: number;
245
- project: Project;
247
+ project?: Project;
246
248
  aggregatetimespent?: number;
247
249
  resolutiondate?: string;
248
250
  lastViewed?: string;
@@ -262,19 +264,23 @@ declare interface StaticIssueFields {
262
264
  };
263
265
  created?: string;
264
266
  updated?: string;
265
- description?: AtlassianDocumentFormat;
267
+ description?: T;
266
268
  timetracking?: {
267
269
  remainingEstimate: string;
268
270
  timeSpent: string;
269
271
  remainingEstimateSeconds: number;
270
272
  timeSpentSeconds: number;
271
273
  };
272
- summary: string;
274
+ summary?: string;
273
275
  status?: IssueStatus;
274
276
  creator?: User;
275
277
  assignee?: User;
276
278
  reporter?: User;
277
279
  issuelinks?: IssueLink[];
280
+ components?: {
281
+ id: string;
282
+ name: string;
283
+ }[];
278
284
  }
279
285
 
280
286
  declare interface TransitionIssueRequest {
@@ -285,7 +291,7 @@ declare interface TransitionIssueRequest {
285
291
  update?: any;
286
292
  }
287
293
 
288
- declare type UpdateIssue = CreatedIssue;
294
+ declare type UpdateIssue = CreateIssue;
289
295
 
290
296
  declare interface User {
291
297
  accountId: string;
@@ -296,6 +302,16 @@ declare interface User {
296
302
  avatarUrls?: AvatarUrls;
297
303
  accountType?: string;
298
304
  self?: string;
305
+ groups?: {
306
+ items?: UserGroupName[];
307
+ size?: number;
308
+ };
309
+ }
310
+
311
+ declare interface UserGroupName {
312
+ groupId: string;
313
+ name: string;
314
+ self: string;
299
315
  }
300
316
 
301
317
  declare type Visibility = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valiantys/atlassian-app-frontend",
3
- "version": "3.0.0-alpha-9",
3
+ "version": "3.0.0-alpha-11",
4
4
  "description": "This library provides an Atlassian Forge Custom UI wrapper component that handles all the setup necessary to support an app that can run deployed or in standalone mode",
5
5
  "exports": {
6
6
  "./atlassian-app": {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class h extends Error{constructor(t,e,a=t){super(a),this.statusText=t,this.statusCode=e,this.statusCode=e,this.statusText=t}toJSON(){return{statusCode:this.statusCode,statusText:this.statusText}}}function c(s,t){const e={Authorization:s.startsWith("Bearer ")?s:`Bearer ${s}`};return t?{...t,...e}:e}async function l(s,t,e){const a=c(s,e.headers||{});return fetch(t,{...e,headers:a})}async function j(s,t,e,a,o="json",n={}){return d(t,e,c(s,n),a,o)}async function d(s,t,e,a,o="json"){const n={...e||{},Accept:o==="json"?"application/json":"text/html","Content-Type":o==="json"?"application/json":"text/html"},f=a?JSON.stringify(a):void 0,r=await fetch(s,{method:t,headers:n,body:f});if(r.ok)return t==="DELETE"||r.status===204?void 0:o==="text"?await r.text():await r.json();{let i="";try{i=await r.text()}catch{}const u=`${r.status} ${r.statusText} - ${t} ${s}
2
- ${i}`;throw console.error(u),new h(r.statusText,r.status,u)}}exports.FetchError=h;exports.addAuthHeader=c;exports.bearerAuthFetch=j;exports.bearerAuthFetchRaw=l;exports.jsonFetch=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class h extends Error{constructor(t,e,a=t){super(a),this.statusText=t,this.statusCode=e,this.statusCode=e,this.statusText=t}toJSON(){return{statusCode:this.statusCode,statusText:this.statusText}}}function c(r,t){const e={Authorization:r.startsWith("Bearer ")?r:`Bearer ${r}`};return t?{...t,...e}:e}async function j(r,t,e){const a=c(r,e.headers||{});return fetch(t,{...e,headers:a})}async function x(r,t,e,a,n="json",o={}){return d(t,e,c(r,o),a,n)}async function d(r,t,e,a,n="json",o){const f={...e??{},Accept:n==="json"?"application/json":"text/html","Content-Type":n==="json"?"application/json":"text/html"},l=a?JSON.stringify(a):void 0,s=await fetch(r,{method:t,headers:f,body:l,credentials:o});if(s.ok)return t==="DELETE"||s.status===204?void 0:n==="text"?await s.text():await s.json();{let u="";try{u=await s.text()}catch{}const i=`${s.status} ${s.statusText} - ${t} ${r}
2
+ ${u}`;throw console.error(i),new h(s.statusText,s.status,i)}}exports.FetchError=h;exports.addAuthHeader=c;exports.bearerAuthFetch=x;exports.bearerAuthFetchRaw=j;exports.jsonFetch=d;
@@ -1,6 +1,6 @@
1
1
  class f extends Error {
2
- constructor(t, s, o = t) {
3
- super(o), this.statusText = t, this.statusCode = s, this.statusCode = s, this.statusText = t;
2
+ constructor(t, e, a = t) {
3
+ super(a), this.statusText = t, this.statusCode = e, this.statusCode = e, this.statusText = t;
4
4
  }
5
5
  toJSON() {
6
6
  return {
@@ -9,37 +9,38 @@ class f extends Error {
9
9
  };
10
10
  }
11
11
  }
12
- function u(e, t) {
13
- const s = {
14
- Authorization: e.startsWith("Bearer ") ? e : `Bearer ${e}`
12
+ function u(s, t) {
13
+ const e = {
14
+ Authorization: s.startsWith("Bearer ") ? s : `Bearer ${s}`
15
15
  };
16
- return t ? { ...t, ...s } : s;
16
+ return t ? { ...t, ...e } : e;
17
17
  }
18
- async function l(e, t, s) {
19
- const o = u(
20
- e,
21
- s.headers || {}
18
+ async function l(s, t, e) {
19
+ const a = u(
20
+ s,
21
+ e.headers || {}
22
22
  );
23
- return fetch(t, { ...s, headers: o });
23
+ return fetch(t, { ...e, headers: a });
24
24
  }
25
- async function j(e, t, s, o, n = "json", a = {}) {
26
- return d(
25
+ async function j(s, t, e, a, n = "json", o = {}) {
26
+ return x(
27
27
  t,
28
- s,
29
- u(e, a),
30
- o,
28
+ e,
29
+ u(s, o),
30
+ a,
31
31
  n
32
32
  );
33
33
  }
34
- async function d(e, t, s, o, n = "json") {
35
- const a = {
36
- ...s || {},
34
+ async function x(s, t, e, a, n = "json", o) {
35
+ const h = {
36
+ ...e ?? {},
37
37
  Accept: n === "json" ? "application/json" : "text/html",
38
38
  "Content-Type": n === "json" ? "application/json" : "text/html"
39
- }, h = o ? JSON.stringify(o) : void 0, r = await fetch(e, {
39
+ }, d = a ? JSON.stringify(a) : void 0, r = await fetch(s, {
40
40
  method: t,
41
- headers: a,
42
- body: h
41
+ headers: h,
42
+ body: d,
43
+ credentials: o
43
44
  });
44
45
  if (r.ok)
45
46
  return t === "DELETE" || r.status === 204 ? void 0 : n === "text" ? await r.text() : await r.json();
@@ -49,7 +50,7 @@ async function d(e, t, s, o, n = "json") {
49
50
  c = await r.text();
50
51
  } catch {
51
52
  }
52
- const i = `${r.status} ${r.statusText} - ${t} ${e}
53
+ const i = `${r.status} ${r.statusText} - ${t} ${s}
53
54
  ${c}`;
54
55
  throw console.error(i), new f(r.statusText, r.status, i);
55
56
  }
@@ -59,5 +60,5 @@ export {
59
60
  u as addAuthHeader,
60
61
  j as bearerAuthFetch,
61
62
  l as bearerAuthFetchRaw,
62
- d as jsonFetch
63
+ x as jsonFetch
63
64
  };
@@ -322,6 +322,33 @@
322
322
  "name": "OAuthProviderProps",
323
323
  "preserveMemberOrder": false,
324
324
  "members": [
325
+ {
326
+ "kind": "PropertySignature",
327
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthProviderProps#appBaseContext:member",
328
+ "docComment": "",
329
+ "excerptTokens": [
330
+ {
331
+ "kind": "Content",
332
+ "text": "appBaseContext?: "
333
+ },
334
+ {
335
+ "kind": "Content",
336
+ "text": "string"
337
+ },
338
+ {
339
+ "kind": "Content",
340
+ "text": ";"
341
+ }
342
+ ],
343
+ "isReadonly": false,
344
+ "isOptional": true,
345
+ "releaseTag": "Public",
346
+ "name": "appBaseContext",
347
+ "propertyTypeTokenRange": {
348
+ "startIndex": 1,
349
+ "endIndex": 2
350
+ }
351
+ },
325
352
  {
326
353
  "kind": "PropertySignature",
327
354
  "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthProviderProps#appName:member",
@@ -438,6 +465,319 @@
438
465
  ],
439
466
  "extendsTokenRanges": []
440
467
  },
468
+ {
469
+ "kind": "Function",
470
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRedirectLogin:function(1)",
471
+ "docComment": "",
472
+ "excerptTokens": [
473
+ {
474
+ "kind": "Content",
475
+ "text": "export declare function OAuthRedirectLogin(props: "
476
+ },
477
+ {
478
+ "kind": "Reference",
479
+ "text": "Readonly",
480
+ "canonicalReference": "!Readonly:type"
481
+ },
482
+ {
483
+ "kind": "Content",
484
+ "text": "<"
485
+ },
486
+ {
487
+ "kind": "Reference",
488
+ "text": "OAuthRedirectLoginProps",
489
+ "canonicalReference": "@valiantys/atlassian-app-frontend!~OAuthRedirectLoginProps:interface"
490
+ },
491
+ {
492
+ "kind": "Content",
493
+ "text": ">"
494
+ },
495
+ {
496
+ "kind": "Content",
497
+ "text": "): "
498
+ },
499
+ {
500
+ "kind": "Content",
501
+ "text": "import(\"react/jsx-runtime\")."
502
+ },
503
+ {
504
+ "kind": "Reference",
505
+ "text": "JSX.Element",
506
+ "canonicalReference": "@types/react!JSX.Element:interface"
507
+ },
508
+ {
509
+ "kind": "Content",
510
+ "text": ";"
511
+ }
512
+ ],
513
+ "fileUrlPath": "../../shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login.d.ts",
514
+ "returnTypeTokenRange": {
515
+ "startIndex": 6,
516
+ "endIndex": 8
517
+ },
518
+ "releaseTag": "Public",
519
+ "overloadIndex": 1,
520
+ "parameters": [
521
+ {
522
+ "parameterName": "props",
523
+ "parameterTypeTokenRange": {
524
+ "startIndex": 1,
525
+ "endIndex": 5
526
+ },
527
+ "isOptional": false
528
+ }
529
+ ],
530
+ "name": "OAuthRedirectLogin"
531
+ },
532
+ {
533
+ "kind": "Function",
534
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutes:function(1)",
535
+ "docComment": "",
536
+ "excerptTokens": [
537
+ {
538
+ "kind": "Content",
539
+ "text": "export declare function OAuthRoutes({ codeTokenExchangeUrl, clientId, oAuthScopes, redirectUri, callbackPath, setAuth, }: "
540
+ },
541
+ {
542
+ "kind": "Reference",
543
+ "text": "Readonly",
544
+ "canonicalReference": "!Readonly:type"
545
+ },
546
+ {
547
+ "kind": "Content",
548
+ "text": "<"
549
+ },
550
+ {
551
+ "kind": "Reference",
552
+ "text": "OAuthRoutesProps",
553
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutesProps:interface"
554
+ },
555
+ {
556
+ "kind": "Content",
557
+ "text": ">"
558
+ },
559
+ {
560
+ "kind": "Content",
561
+ "text": "): "
562
+ },
563
+ {
564
+ "kind": "Content",
565
+ "text": "import(\"react/jsx-runtime\")."
566
+ },
567
+ {
568
+ "kind": "Reference",
569
+ "text": "JSX.Element",
570
+ "canonicalReference": "@types/react!JSX.Element:interface"
571
+ },
572
+ {
573
+ "kind": "Content",
574
+ "text": ";"
575
+ }
576
+ ],
577
+ "fileUrlPath": "../../shared/frontend-feature-oauth-login/src/lib/oauth-routes.d.ts",
578
+ "returnTypeTokenRange": {
579
+ "startIndex": 6,
580
+ "endIndex": 8
581
+ },
582
+ "releaseTag": "Public",
583
+ "overloadIndex": 1,
584
+ "parameters": [
585
+ {
586
+ "parameterName": "{ codeTokenExchangeUrl, clientId, oAuthScopes, redirectUri, callbackPath, setAuth, }",
587
+ "parameterTypeTokenRange": {
588
+ "startIndex": 1,
589
+ "endIndex": 5
590
+ },
591
+ "isOptional": false
592
+ }
593
+ ],
594
+ "name": "OAuthRoutes"
595
+ },
596
+ {
597
+ "kind": "Interface",
598
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutesProps:interface",
599
+ "docComment": "",
600
+ "excerptTokens": [
601
+ {
602
+ "kind": "Content",
603
+ "text": "export interface OAuthRoutesProps "
604
+ }
605
+ ],
606
+ "fileUrlPath": "../../shared/frontend-feature-oauth-login/src/lib/oauth-routes.d.ts",
607
+ "releaseTag": "Public",
608
+ "name": "OAuthRoutesProps",
609
+ "preserveMemberOrder": false,
610
+ "members": [
611
+ {
612
+ "kind": "PropertySignature",
613
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutesProps#callbackPath:member",
614
+ "docComment": "",
615
+ "excerptTokens": [
616
+ {
617
+ "kind": "Content",
618
+ "text": "callbackPath: "
619
+ },
620
+ {
621
+ "kind": "Content",
622
+ "text": "string"
623
+ },
624
+ {
625
+ "kind": "Content",
626
+ "text": ";"
627
+ }
628
+ ],
629
+ "isReadonly": false,
630
+ "isOptional": false,
631
+ "releaseTag": "Public",
632
+ "name": "callbackPath",
633
+ "propertyTypeTokenRange": {
634
+ "startIndex": 1,
635
+ "endIndex": 2
636
+ }
637
+ },
638
+ {
639
+ "kind": "PropertySignature",
640
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutesProps#clientId:member",
641
+ "docComment": "",
642
+ "excerptTokens": [
643
+ {
644
+ "kind": "Content",
645
+ "text": "clientId: "
646
+ },
647
+ {
648
+ "kind": "Content",
649
+ "text": "string"
650
+ },
651
+ {
652
+ "kind": "Content",
653
+ "text": ";"
654
+ }
655
+ ],
656
+ "isReadonly": false,
657
+ "isOptional": false,
658
+ "releaseTag": "Public",
659
+ "name": "clientId",
660
+ "propertyTypeTokenRange": {
661
+ "startIndex": 1,
662
+ "endIndex": 2
663
+ }
664
+ },
665
+ {
666
+ "kind": "PropertySignature",
667
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutesProps#codeTokenExchangeUrl:member",
668
+ "docComment": "",
669
+ "excerptTokens": [
670
+ {
671
+ "kind": "Content",
672
+ "text": "codeTokenExchangeUrl: "
673
+ },
674
+ {
675
+ "kind": "Content",
676
+ "text": "string"
677
+ },
678
+ {
679
+ "kind": "Content",
680
+ "text": ";"
681
+ }
682
+ ],
683
+ "isReadonly": false,
684
+ "isOptional": false,
685
+ "releaseTag": "Public",
686
+ "name": "codeTokenExchangeUrl",
687
+ "propertyTypeTokenRange": {
688
+ "startIndex": 1,
689
+ "endIndex": 2
690
+ }
691
+ },
692
+ {
693
+ "kind": "PropertySignature",
694
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutesProps#oAuthScopes:member",
695
+ "docComment": "",
696
+ "excerptTokens": [
697
+ {
698
+ "kind": "Content",
699
+ "text": "oAuthScopes: "
700
+ },
701
+ {
702
+ "kind": "Reference",
703
+ "text": "AtlassianOAuthScopes",
704
+ "canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianOAuthScopes:type"
705
+ },
706
+ {
707
+ "kind": "Content",
708
+ "text": "[]"
709
+ },
710
+ {
711
+ "kind": "Content",
712
+ "text": ";"
713
+ }
714
+ ],
715
+ "isReadonly": false,
716
+ "isOptional": false,
717
+ "releaseTag": "Public",
718
+ "name": "oAuthScopes",
719
+ "propertyTypeTokenRange": {
720
+ "startIndex": 1,
721
+ "endIndex": 3
722
+ }
723
+ },
724
+ {
725
+ "kind": "PropertySignature",
726
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutesProps#redirectUri:member",
727
+ "docComment": "",
728
+ "excerptTokens": [
729
+ {
730
+ "kind": "Content",
731
+ "text": "redirectUri: "
732
+ },
733
+ {
734
+ "kind": "Content",
735
+ "text": "string"
736
+ },
737
+ {
738
+ "kind": "Content",
739
+ "text": ";"
740
+ }
741
+ ],
742
+ "isReadonly": false,
743
+ "isOptional": false,
744
+ "releaseTag": "Public",
745
+ "name": "redirectUri",
746
+ "propertyTypeTokenRange": {
747
+ "startIndex": 1,
748
+ "endIndex": 2
749
+ }
750
+ },
751
+ {
752
+ "kind": "PropertySignature",
753
+ "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthRoutesProps#setAuth:member",
754
+ "docComment": "",
755
+ "excerptTokens": [
756
+ {
757
+ "kind": "Content",
758
+ "text": "setAuth: "
759
+ },
760
+ {
761
+ "kind": "Content",
762
+ "text": "(auth: {\n token: string;\n expiresAt: number;\n }) => void"
763
+ },
764
+ {
765
+ "kind": "Content",
766
+ "text": ";"
767
+ }
768
+ ],
769
+ "isReadonly": false,
770
+ "isOptional": false,
771
+ "releaseTag": "Public",
772
+ "name": "setAuth",
773
+ "propertyTypeTokenRange": {
774
+ "startIndex": 1,
775
+ "endIndex": 2
776
+ }
777
+ }
778
+ ],
779
+ "extendsTokenRanges": []
780
+ },
441
781
  {
442
782
  "kind": "Function",
443
783
  "canonicalReference": "@valiantys/atlassian-app-frontend!useOAuth:function(1)",
@@ -21,6 +21,8 @@ export function OAuthProvider({ children, ...config }: PropsWithChildren<OAuthPr
21
21
 
22
22
  // @public (undocumented)
23
23
  export interface OAuthProviderProps {
24
+ // (undocumented)
25
+ appBaseContext?: string;
24
26
  appName: string;
25
27
  // (undocumented)
26
28
  clientId: string;
@@ -30,6 +32,33 @@ export interface OAuthProviderProps {
30
32
  oAuthScopes: AtlassianOAuthScopes[];
31
33
  }
32
34
 
35
+ // Warning: (ae-forgotten-export) The symbol "OAuthRedirectLoginProps" needs to be exported by the entry point ui-oauth-login.d.ts
36
+ //
37
+ // @public (undocumented)
38
+ export function OAuthRedirectLogin(props: Readonly<OAuthRedirectLoginProps>): JSX_2.Element;
39
+
40
+ // @public (undocumented)
41
+ export function OAuthRoutes({ codeTokenExchangeUrl, clientId, oAuthScopes, redirectUri, callbackPath, setAuth, }: Readonly<OAuthRoutesProps>): JSX_2.Element;
42
+
43
+ // @public (undocumented)
44
+ export interface OAuthRoutesProps {
45
+ // (undocumented)
46
+ callbackPath: string;
47
+ // (undocumented)
48
+ clientId: string;
49
+ // (undocumented)
50
+ codeTokenExchangeUrl: string;
51
+ // (undocumented)
52
+ oAuthScopes: AtlassianOAuthScopes[];
53
+ // (undocumented)
54
+ redirectUri: string;
55
+ // (undocumented)
56
+ setAuth: (auth: {
57
+ token: string;
58
+ expiresAt: number;
59
+ }) => void;
60
+ }
61
+
33
62
  // @public (undocumented)
34
63
  export const useOAuth: () => OAuth;
35
64
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js");exports.OAuthProvider=e.OAuthProvider;exports.useOAuth=e.useOAuth;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js"),t=require("../atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js"),u=require("../atlassian/shared/frontend-feature-oauth-login/src/lib/ui-oauth-redirect-login/index.cjs.js");exports.OAuthProvider=e.OAuthProvider;exports.useOAuth=e.useOAuth;exports.OAuthRoutes=t.OAuthRoutes;exports.OAuthRedirectLogin=u.OAuthRedirectLogin;