@valiantys/atlassian-app-frontend 3.0.0-alpha-10 → 3.0.0-alpha-17

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 (48) 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 +36 -22
  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 +74 -28
  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/atlassian-app-test/index.d.ts +1 -1
  20. package/data-access-assets/index.d.ts +1 -1
  21. package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend-data-access-atlassian-product-fetch-oauth.api.json +354 -2
  22. package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend.api.md +20 -1
  23. package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -1
  24. package/data-access-atlassian-product-fetch-oauth/index.d.ts +14 -2
  25. package/data-access-atlassian-product-fetch-oauth/index.es.js +10 -7
  26. package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +238 -9
  27. package/data-access-issue/atlassian-app-frontend.api.md +12 -5
  28. package/data-access-issue/index.d.ts +40 -17
  29. package/data-access-jql/index.d.ts +1 -1
  30. package/data-access-workspaces/index.d.ts +1 -1
  31. package/package.json +1 -1
  32. package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -2
  33. package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +25 -24
  34. package/ui-atlassian-product-fetch/index.d.ts +1 -1
  35. package/ui-oauth-login/atlassian-app-frontend-ui-oauth-login.api.json +340 -0
  36. package/ui-oauth-login/atlassian-app-frontend.api.md +29 -0
  37. package/ui-oauth-login/index.cjs.js +1 -1
  38. package/ui-oauth-login/index.d.ts +23 -0
  39. package/ui-oauth-login/index.es.js +7 -3
  40. package/ui-page-loading-view/atlassian-app-frontend-ui-page-loading-view.api.json +10 -5
  41. package/ui-page-loading-view/atlassian-app-frontend.api.md +2 -2
  42. package/ui-page-loading-view/index.d.ts +2 -2
  43. package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +106 -20
  44. package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +13 -5
  45. package/util-atlassian-product-fetch/index.d.ts +10 -5
  46. package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +695 -80
  47. package/util-jira-v3-api/atlassian-app-frontend.api.md +71 -24
  48. package/util-jira-v3-api/index.d.ts +46 -19
@@ -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;
@@ -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 o, useOAuth as t } from "../atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js";
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
- o as OAuthProvider,
4
- t as useOAuth
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": 5,
218
- "endIndex": 7
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": 4
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 { }