@valiantys/atlassian-app 3.2.0-alpha-15 → 3.2.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.
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.cjs.js +1 -1
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.es.js +19 -47
- 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 +77 -66
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.cjs.js +1 -1
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.es.js +49 -16
- package/atlassian/shared/frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.cjs.js +1 -0
- package/atlassian/shared/frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.es.js +29 -0
- package/frontend-app-ui-kit/atlassian-app-frontend-app-ui-kit.api.json +9 -5
- package/frontend-app-ui-kit/atlassian-app.api.md +3 -1
- package/frontend-app-ui-kit/index.d.ts +3 -1
- package/package.json +6 -1
- package/ui-forge-feature-flags/atlassian-app-ui-forge-feature-flags.api.json +276 -0
- package/ui-forge-feature-flags/atlassian-app.api.md +21 -0
- package/ui-forge-feature-flags/index.cjs.js +1 -0
- package/ui-forge-feature-flags/index.d.ts +11 -0
- package/ui-forge-feature-flags/index.es.js +5 -0
- package/ui-forge-feature-flags/tsdoc-metadata.json +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),i=require("@forge/bridge"),l=require("../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js");require("../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js");const c=require("../../../../../frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit/index.cjs.js");require("@atlaskit/button/new");require("react");const p=require("../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js"),d=require("../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js"),h=require("../../ui-kit/atlassian-app-forge-ui-kit/index.cjs.js");function o({appName:s,doCheckWorkspace:n,invokeRemoteImpl:u,useAtlasKitFlags:t,children:a}){let e=a;return n&&(e=r.jsx(l.FeatureChosenWorkspaceCheck,{appName:s,children:e})),e=r.jsx(d.RemoteAdapterProvider,{invokeRemoteImplementation:u||i.invokeRemote,children:r.jsx(h.AtlassianAppForgeUiKit,{useForgeFlags:!t,children:r.jsx(p.HostRouterProvider,{hostRouter:i.router,children:e})})}),t?r.jsx(c.AppFlagsProviderAtlasKit,{children:e}):e}exports.AtlassianAppForge=o;exports.default=o;
|
|
@@ -1,58 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { invokeRemote as
|
|
3
|
-
import {
|
|
4
|
-
import { AppFlagsProviderForge as a } from "../../../../../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js";
|
|
5
|
-
import { FeatureChosenWorkspaceCheck as s } from "../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js";
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { invokeRemote as n, router as l } from "@forge/bridge";
|
|
3
|
+
import { FeatureChosenWorkspaceCheck as a } from "../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js";
|
|
6
4
|
import "../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js";
|
|
7
|
-
import { AppFlagsProviderAtlasKit as
|
|
8
|
-
import { RequestBitbucketProvider as f } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
|
|
9
|
-
import { RequestConfluenceProvider as v } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
|
|
10
|
-
import { RequestJiraProvider as h } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
|
|
5
|
+
import { AppFlagsProviderAtlasKit as s } from "../../../../../frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit/index.es.js";
|
|
11
6
|
import "@atlaskit/button/new";
|
|
12
7
|
import "react";
|
|
13
|
-
import { HostRouterProvider as
|
|
14
|
-
import "../../../../../frontend-ui-
|
|
15
|
-
import "
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
19
|
-
import { ModalServiceProvider as P } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
|
|
20
|
-
import { RemoteAdapterProvider as k } from "../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js";
|
|
21
|
-
import { AtlassianAppForgeUiKit as A } from "../../ui-kit/atlassian-app-forge-ui-kit/index.es.js";
|
|
22
|
-
const R = t("jira"), S = t("bitbucket"), g = t("confluence"), b = {
|
|
23
|
-
open(o) {
|
|
24
|
-
return new d(o).open();
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
function Q({
|
|
28
|
-
appName: o,
|
|
8
|
+
import { HostRouterProvider as d } from "../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.es.js";
|
|
9
|
+
import { RemoteAdapterProvider as f } from "../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js";
|
|
10
|
+
import { AtlassianAppForgeUiKit as c } from "../../ui-kit/atlassian-app-forge-ui-kit/index.es.js";
|
|
11
|
+
function C({
|
|
12
|
+
appName: t,
|
|
29
13
|
doCheckWorkspace: i,
|
|
30
14
|
invokeRemoteImpl: m,
|
|
31
|
-
useAtlasKitFlags:
|
|
32
|
-
children:
|
|
15
|
+
useAtlasKitFlags: e,
|
|
16
|
+
children: p
|
|
33
17
|
}) {
|
|
34
|
-
let r =
|
|
35
|
-
return i && (r = /* @__PURE__ */
|
|
36
|
-
|
|
18
|
+
let r = p;
|
|
19
|
+
return i && (r = /* @__PURE__ */ o(a, { appName: t, children: r })), r = /* @__PURE__ */ o(
|
|
20
|
+
f,
|
|
37
21
|
{
|
|
38
|
-
invokeRemoteImplementation: m ||
|
|
39
|
-
children: /* @__PURE__ */
|
|
40
|
-
f,
|
|
41
|
-
{
|
|
42
|
-
requestBitbucketImplementation: S,
|
|
43
|
-
children: /* @__PURE__ */ e(
|
|
44
|
-
v,
|
|
45
|
-
{
|
|
46
|
-
requestConfluenceImplementation: g,
|
|
47
|
-
children: /* @__PURE__ */ e(h, { requestJiraImplementation: R, children: /* @__PURE__ */ e(P, { modalService: b, children: r }) })
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
) }) })
|
|
22
|
+
invokeRemoteImplementation: m || n,
|
|
23
|
+
children: /* @__PURE__ */ o(c, { useForgeFlags: !e, children: /* @__PURE__ */ o(d, { hostRouter: l, children: r }) })
|
|
52
24
|
}
|
|
53
|
-
),
|
|
25
|
+
), e ? /* @__PURE__ */ o(s, { children: r }) : r;
|
|
54
26
|
}
|
|
55
27
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
28
|
+
C as AtlassianAppForge,
|
|
29
|
+
C as default
|
|
58
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),b=require("@atlaskit/app-provider"),o=require("react"),m=require("../../../../../data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js"),B=require("../../../../../data-access-resources/src/lib/atlassian-user-resource-service/index.cjs.js"),O=require("../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.cjs.js");require("../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.cjs.js");const S=require("../../../../../frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js");require("../../../../../frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js");require("@atlaskit/heading");require("@atlaskit/primitives");require("@atlaskit/section-message");require("@atlaskit/spinner");const W=require("../../../../../frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit/index.cjs.js"),J=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js"),T=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js"),E=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js"),_=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),y=require("../../../../../frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.cjs.js"),z=require("../../../../../frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.cjs.js"),M=require("../../../../../frontend-ui-host-router/src/lib/host-router/index.cjs.js");require("@atlaskit/button/new");const H=require("../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.cjs.js");require("../../../../../frontend-ui-modal/src/lib/modal-content/index.cjs.js");require("../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js");const $=require("../../../../../frontend-ui-modal/src/lib/modal-view-context/index.cjs.js"),K=require("../../../../../frontend-ui-modal-service/src/lib/modal-service/index.cjs.js"),U=require("../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js"),D=require("../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js"),G=require("../../../../../frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js"),L=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js"),Q=require("../../../../../frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js"),V=o.lazy(()=>Promise.resolve().then(()=>require("../../../../../frontend-feature-chosen-resource-check/src/index/index.cjs.js")));function P({initialMockViewContext:n,backendUrl:c,remoteUrl:h,doCheckWorkspace:A,appName:i,doCheckResource:l,modalOpenerConfig:d,modalContextConfig:v,oauthConfig:u,atlassianResourceId:x,children:t}){const q=r.jsx(X,{appName:i,backendUrl:c,remoteUrl:h,initialMockViewContext:n,modalOpenerConfig:d,modalContextConfig:v,doCheckWorkspace:A,doCheckResource:l,oauthConfig:u,atlassianResourceId:x,children:t});return u?r.jsx(S.OAuthProvider,{clientId:u.clientId,codeTokenExchangeUrl:u.codeTokenExchangeUrl,appName:i,oAuthScopes:u.oAuthScopes,appBaseContext:u.appBaseContext,children:q}):q}function X({initialMockViewContext:n,backendUrl:c,remoteUrl:h,doCheckWorkspace:A,appName:i,doCheckResource:l,modalOpenerConfig:d,modalContextConfig:v,atlassianResourceId:u,children:x}){const[t,q]=o.useState(u),[a,f]=o.useState(),{getAuthToken:s}=S.useOAuth(),j=o.useCallback(()=>m.atlassianOAuthJiraFetch(s(),t??""),[s,t]),R=o.useCallback(()=>m.atlassianOAuthConfluenceFetch(s(),t??""),[s,t]),C=o.useCallback(()=>m.atlassianOAuthBitbucketFetch(s()),[s]),g=o.useCallback(async p=>{if(c&&l){const I=p??localStorage.getItem(`${i}-user-resource-id`)??"",k=await new B.AtlassianUserResourceService().checkUserChosenResource(s(),I);return k.hasChosen&&(localStorage.setItem(`${i}-user-resource-id`,k.resource.id),q(k.resource.id)),k}else return{hasChosen:!0}},[c,s,i,l]);o.useEffect(()=>{const p=t??(n==null?void 0:n.cloudId)??"";if(!a||a.cloudId!==p){const I={...a||n,cloudId:p};f(I)}},[n,t,a]);const w=o.useCallback(()=>c?y.getOauthFetchInvokeImpl(c,s(),t??""):void 0,[t,s,c]);let e=x;A&&(e=r.jsx(O.FeatureChosenWorkspaceCheck,{appName:i,children:e})),d&&(e=r.jsx(U.ModalServiceProvider,{modalService:new K.WindowModalService(d.defaultUrl,d.resourceMap),children:e})),a&&(e=r.jsx(L.ViewContextProvider,{viewContext:v?new $.ModalViewContext(a,v.openerOrigin):new Q.MockViewContext(a),children:r.jsx(z.FeatureFlagsProvider,{constructFeatureFlags:Y,children:e})})),e=r.jsx(H.HostRouterProvider,{hostRouter:new M.WindowHostRouter,children:r.jsx(J.RequestBitbucketProvider,{requestBitbucketImplementation:C(),children:r.jsx(T.RequestConfluenceProvider,{requestConfluenceImplementation:R(),children:r.jsx(E.RequestJiraProvider,{requestJiraImplementation:j(),children:e})})})});const F=w();return F&&(e=r.jsx(_.BackendAdapterProvider,{invokeImplementation:F,children:e})),h&&(e=r.jsx(D.RemoteAdapterProvider,{invokeRemoteImplementation:G.oauthFetchInvokeRemote(h),children:e})),l&&(e=r.jsx(V,{checkResource:g,children:e})),r.jsx(b,{children:r.jsx(W.AppFlagsProviderAtlasKit,{children:e})})}function Y(){return{initialize:()=>Promise.resolve(),checkFlag:(n,c)=>!0,shutdown:()=>{},isInitialized:()=>!0}}exports.AtlassianAppStandalone=P;exports.default=P;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { useState as
|
|
2
|
+
import x from "@atlaskit/app-provider";
|
|
3
|
+
import { useState as S, useCallback as a, useEffect as C, lazy as O } from "react";
|
|
4
4
|
import { atlassianOAuthJiraFetch as W, atlassianOAuthConfluenceFetch as E, atlassianOAuthBitbucketFetch as J } from "../../../../../data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js";
|
|
5
5
|
import { AtlassianUserResourceService as T } from "../../../../../data-access-resources/src/lib/atlassian-user-resource-service/index.es.js";
|
|
6
|
-
import { FeatureChosenWorkspaceCheck as
|
|
6
|
+
import { FeatureChosenWorkspaceCheck as z } from "../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js";
|
|
7
7
|
import "../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js";
|
|
8
|
-
import { OAuthProvider as
|
|
8
|
+
import { OAuthProvider as y, useOAuth as H } from "../../../../../frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js";
|
|
9
9
|
import "../../../../../frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js";
|
|
10
10
|
import "@atlaskit/heading";
|
|
11
11
|
import "@atlaskit/primitives";
|
|
12
12
|
import "@atlaskit/section-message";
|
|
13
13
|
import "@atlaskit/spinner";
|
|
14
|
-
import { AppFlagsProviderAtlasKit as
|
|
15
|
-
import { RequestBitbucketProvider as
|
|
16
|
-
import { RequestConfluenceProvider as
|
|
17
|
-
import { RequestJiraProvider as
|
|
18
|
-
import { BackendAdapterProvider as
|
|
19
|
-
import { getOauthFetchInvokeImpl as
|
|
14
|
+
import { AppFlagsProviderAtlasKit as _ } from "../../../../../frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit/index.es.js";
|
|
15
|
+
import { RequestBitbucketProvider as $ } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
|
|
16
|
+
import { RequestConfluenceProvider as b } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
|
|
17
|
+
import { RequestJiraProvider as j } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
|
|
18
|
+
import { BackendAdapterProvider as K } from "../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js";
|
|
19
|
+
import { getOauthFetchInvokeImpl as M } from "../../../../../frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.es.js";
|
|
20
|
+
import { FeatureFlagsProvider as D } from "../../../../../frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.es.js";
|
|
20
21
|
import { WindowHostRouter as G } from "../../../../../frontend-ui-host-router/src/lib/host-router/index.es.js";
|
|
21
22
|
import "@atlaskit/button/new";
|
|
22
23
|
import { HostRouterProvider as L } from "../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.es.js";
|
|
@@ -27,72 +28,72 @@ import { WindowModalService as U } from "../../../../../frontend-ui-modal-servic
|
|
|
27
28
|
import { ModalServiceProvider as X } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
|
|
28
29
|
import { RemoteAdapterProvider as Y } from "../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js";
|
|
29
30
|
import { oauthFetchInvokeRemote as Z } from "../../../../../frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.es.js";
|
|
30
|
-
import { ViewContextProvider as
|
|
31
|
-
import { MockViewContext as
|
|
32
|
-
const
|
|
31
|
+
import { ViewContextProvider as V } from "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
32
|
+
import { MockViewContext as N } from "../../../../../frontend-ui-view-context/src/lib/mock-view-context/index.es.js";
|
|
33
|
+
const ee = O(
|
|
33
34
|
() => import("../../../../../frontend-feature-chosen-resource-check/src/index/index.es.js")
|
|
34
35
|
);
|
|
35
|
-
function
|
|
36
|
+
function ze({
|
|
36
37
|
initialMockViewContext: i,
|
|
37
|
-
backendUrl:
|
|
38
|
+
backendUrl: n,
|
|
38
39
|
remoteUrl: l,
|
|
39
40
|
doCheckWorkspace: I,
|
|
40
41
|
appName: s,
|
|
41
|
-
doCheckResource:
|
|
42
|
-
modalOpenerConfig:
|
|
43
|
-
modalContextConfig:
|
|
44
|
-
oauthConfig:
|
|
42
|
+
doCheckResource: u,
|
|
43
|
+
modalOpenerConfig: p,
|
|
44
|
+
modalContextConfig: d,
|
|
45
|
+
oauthConfig: c,
|
|
45
46
|
atlassianResourceId: A,
|
|
46
47
|
children: t
|
|
47
48
|
}) {
|
|
48
49
|
const h = /* @__PURE__ */ r(
|
|
49
|
-
|
|
50
|
+
re,
|
|
50
51
|
{
|
|
51
52
|
appName: s,
|
|
52
|
-
backendUrl:
|
|
53
|
+
backendUrl: n,
|
|
53
54
|
remoteUrl: l,
|
|
54
55
|
initialMockViewContext: i,
|
|
55
|
-
modalOpenerConfig:
|
|
56
|
-
modalContextConfig:
|
|
56
|
+
modalOpenerConfig: p,
|
|
57
|
+
modalContextConfig: d,
|
|
57
58
|
doCheckWorkspace: I,
|
|
58
|
-
doCheckResource:
|
|
59
|
-
oauthConfig:
|
|
59
|
+
doCheckResource: u,
|
|
60
|
+
oauthConfig: c,
|
|
60
61
|
atlassianResourceId: A,
|
|
61
62
|
children: t
|
|
62
63
|
}
|
|
63
64
|
);
|
|
64
|
-
return
|
|
65
|
-
|
|
65
|
+
return c ? /* @__PURE__ */ r(
|
|
66
|
+
y,
|
|
66
67
|
{
|
|
67
|
-
clientId:
|
|
68
|
-
codeTokenExchangeUrl:
|
|
68
|
+
clientId: c.clientId,
|
|
69
|
+
codeTokenExchangeUrl: c.codeTokenExchangeUrl,
|
|
69
70
|
appName: s,
|
|
70
|
-
oAuthScopes:
|
|
71
|
-
appBaseContext:
|
|
71
|
+
oAuthScopes: c.oAuthScopes,
|
|
72
|
+
appBaseContext: c.appBaseContext,
|
|
72
73
|
children: h
|
|
73
74
|
}
|
|
74
75
|
) : h;
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function re({
|
|
77
78
|
initialMockViewContext: i,
|
|
78
|
-
backendUrl:
|
|
79
|
+
backendUrl: n,
|
|
79
80
|
remoteUrl: l,
|
|
80
81
|
doCheckWorkspace: I,
|
|
81
82
|
appName: s,
|
|
82
|
-
doCheckResource:
|
|
83
|
-
modalOpenerConfig:
|
|
84
|
-
modalContextConfig:
|
|
85
|
-
atlassianResourceId:
|
|
83
|
+
doCheckResource: u,
|
|
84
|
+
modalOpenerConfig: p,
|
|
85
|
+
modalContextConfig: d,
|
|
86
|
+
atlassianResourceId: c,
|
|
86
87
|
children: A
|
|
87
88
|
}) {
|
|
88
|
-
const [t, h] =
|
|
89
|
-
|
|
90
|
-
), [m,
|
|
89
|
+
const [t, h] = S(
|
|
90
|
+
c
|
|
91
|
+
), [m, P] = S(), { getAuthToken: o } = H(), R = a(() => W(o(), t ?? ""), [o, t]), g = a(() => E(o(), t ?? ""), [o, t]), w = a(() => J(o()), [o]), B = a(
|
|
91
92
|
async (f) => {
|
|
92
|
-
if (
|
|
93
|
-
const
|
|
93
|
+
if (n && u) {
|
|
94
|
+
const F = f ?? localStorage.getItem(`${s}-user-resource-id`) ?? "", v = await new T().checkUserChosenResource(
|
|
94
95
|
o(),
|
|
95
|
-
|
|
96
|
+
F
|
|
96
97
|
);
|
|
97
98
|
return v.hasChosen && (localStorage.setItem(
|
|
98
99
|
`${s}-user-resource-id`,
|
|
@@ -101,50 +102,50 @@ function ee({
|
|
|
101
102
|
} else
|
|
102
103
|
return { hasChosen: !0 };
|
|
103
104
|
},
|
|
104
|
-
[
|
|
105
|
+
[n, o, s, u]
|
|
105
106
|
);
|
|
106
107
|
C(() => {
|
|
107
108
|
const f = t ?? (i == null ? void 0 : i.cloudId) ?? "";
|
|
108
109
|
if (!m || m.cloudId !== f) {
|
|
109
|
-
const
|
|
110
|
+
const F = {
|
|
110
111
|
...m || i,
|
|
111
112
|
cloudId: f
|
|
112
113
|
};
|
|
113
|
-
F
|
|
114
|
+
P(F);
|
|
114
115
|
}
|
|
115
116
|
}, [i, t, m]);
|
|
116
|
-
const
|
|
117
|
-
() =>
|
|
118
|
-
[t, o,
|
|
117
|
+
const q = a(
|
|
118
|
+
() => n ? M(n, o(), t ?? "") : void 0,
|
|
119
|
+
[t, o, n]
|
|
119
120
|
);
|
|
120
121
|
let e = A;
|
|
121
|
-
I && (e = /* @__PURE__ */ r(
|
|
122
|
+
I && (e = /* @__PURE__ */ r(z, { appName: s, children: e })), p && (e = /* @__PURE__ */ r(
|
|
122
123
|
X,
|
|
123
124
|
{
|
|
124
125
|
modalService: new U(
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
p.defaultUrl,
|
|
127
|
+
p.resourceMap
|
|
127
128
|
),
|
|
128
129
|
children: e
|
|
129
130
|
}
|
|
130
131
|
)), m && (e = /* @__PURE__ */ r(
|
|
131
|
-
|
|
132
|
+
V,
|
|
132
133
|
{
|
|
133
|
-
viewContext:
|
|
134
|
-
children: e
|
|
134
|
+
viewContext: d ? new Q(m, d.openerOrigin) : new N(m),
|
|
135
|
+
children: /* @__PURE__ */ r(D, { constructFeatureFlags: te, children: e })
|
|
135
136
|
}
|
|
136
137
|
)), e = /* @__PURE__ */ r(L, { hostRouter: new G(), children: /* @__PURE__ */ r(
|
|
137
|
-
|
|
138
|
+
$,
|
|
138
139
|
{
|
|
139
|
-
requestBitbucketImplementation:
|
|
140
|
+
requestBitbucketImplementation: w(),
|
|
140
141
|
children: /* @__PURE__ */ r(
|
|
141
|
-
|
|
142
|
+
b,
|
|
142
143
|
{
|
|
143
|
-
requestConfluenceImplementation:
|
|
144
|
+
requestConfluenceImplementation: g(),
|
|
144
145
|
children: /* @__PURE__ */ r(
|
|
145
|
-
|
|
146
|
+
j,
|
|
146
147
|
{
|
|
147
|
-
requestJiraImplementation:
|
|
148
|
+
requestJiraImplementation: R(),
|
|
148
149
|
children: e
|
|
149
150
|
}
|
|
150
151
|
)
|
|
@@ -152,16 +153,26 @@ function ee({
|
|
|
152
153
|
)
|
|
153
154
|
}
|
|
154
155
|
) });
|
|
155
|
-
const k =
|
|
156
|
-
return k && (e = /* @__PURE__ */ r(
|
|
156
|
+
const k = q();
|
|
157
|
+
return k && (e = /* @__PURE__ */ r(K, { invokeImplementation: k, children: e })), l && (e = /* @__PURE__ */ r(
|
|
157
158
|
Y,
|
|
158
159
|
{
|
|
159
160
|
invokeRemoteImplementation: Z(l),
|
|
160
161
|
children: e
|
|
161
162
|
}
|
|
162
|
-
)),
|
|
163
|
+
)), u && (e = /* @__PURE__ */ r(ee, { checkResource: B, children: e })), /* @__PURE__ */ r(x, { children: /* @__PURE__ */ r(_, { children: e }) });
|
|
164
|
+
}
|
|
165
|
+
function te() {
|
|
166
|
+
return {
|
|
167
|
+
initialize: () => Promise.resolve(),
|
|
168
|
+
// TODO more sophisticated mock implemenation of checkFlag
|
|
169
|
+
checkFlag: (i, n) => !0,
|
|
170
|
+
shutdown: () => {
|
|
171
|
+
},
|
|
172
|
+
isInitialized: () => !0
|
|
173
|
+
};
|
|
163
174
|
}
|
|
164
175
|
export {
|
|
165
|
-
|
|
166
|
-
|
|
176
|
+
ze as AtlassianAppStandalone,
|
|
177
|
+
ze as default
|
|
167
178
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),r=require("@forge/bridge"),l=require("react"),i=require("../../../../../../forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.cjs.js"),d=require("../../../../../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js"),v=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js"),F=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js"),q=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js"),g=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),p=require("../../../../../frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.cjs.js"),P=require("../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js"),h=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js");r.view.theme.enable();const m=i.createClientSideForgeProductFetchService("jira"),S=i.createClientSideForgeProductFetchService("bitbucket"),b=i.createClientSideForgeProductFetchService("confluence"),j={open(t){return new r.Modal(t).open()}};function n({children:t,useForgeFlags:o}){const c=l.useCallback(async(s,a)=>r.invoke(s,{...a}),[]),u=e.jsx(P.ModalServiceProvider,{modalService:j,children:e.jsx(g.BackendAdapterProvider,{invokeImplementation:c,children:e.jsx(h.ViewContextProvider,{viewContext:r.view,children:e.jsx(p.FeatureFlagsProvider,{constructFeatureFlags:()=>new r.FeatureFlags,children:e.jsx(v.RequestBitbucketProvider,{requestBitbucketImplementation:S,children:e.jsx(F.RequestConfluenceProvider,{requestConfluenceImplementation:b,children:e.jsx(q.RequestJiraProvider,{requestJiraImplementation:m,children:t})})})})})})});return o??!0?e.jsx(d.AppFlagsProviderForge,{children:"viewElement"}):u}exports.AtlassianAppForgeUiKit=n;exports.default=n;
|
|
@@ -1,25 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { view as o, invoke as a, Modal as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { view as o, invoke as l, FeatureFlags as a, Modal as p } from "@forge/bridge";
|
|
3
|
+
import { useCallback as u } from "react";
|
|
4
|
+
import { createClientSideForgeProductFetchService as t } from "../../../../../../forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.es.js";
|
|
5
|
+
import { AppFlagsProviderForge as d } from "../../../../../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js";
|
|
6
|
+
import { RequestBitbucketProvider as v } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
|
|
7
|
+
import { RequestConfluenceProvider as s } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
|
|
8
|
+
import { RequestJiraProvider as f } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
|
|
9
|
+
import { BackendAdapterProvider as F } from "../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js";
|
|
10
|
+
import { FeatureFlagsProvider as h } from "../../../../../frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.es.js";
|
|
11
|
+
import { ModalServiceProvider as k } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
|
|
12
|
+
import { ViewContextProvider as P } from "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
7
13
|
o.theme.enable();
|
|
8
|
-
const
|
|
9
|
-
open(
|
|
10
|
-
return new
|
|
14
|
+
const b = t("jira"), g = t("bitbucket"), w = t("confluence"), S = {
|
|
15
|
+
open(r) {
|
|
16
|
+
return new p(r).open();
|
|
11
17
|
}
|
|
12
18
|
};
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
function U({
|
|
20
|
+
children: r,
|
|
21
|
+
useForgeFlags: i
|
|
22
|
+
}) {
|
|
23
|
+
const n = u(
|
|
24
|
+
async (c, m) => l(c, {
|
|
25
|
+
...m
|
|
17
26
|
}),
|
|
18
27
|
[]
|
|
19
28
|
);
|
|
20
|
-
return /* @__PURE__ */
|
|
29
|
+
return i ?? !0 ? /* @__PURE__ */ e(d, { children: "viewElement" }) : /* @__PURE__ */ e(k, { modalService: S, children: /* @__PURE__ */ e(F, { invokeImplementation: n, children: /* @__PURE__ */ e(P, { viewContext: o, children: /* @__PURE__ */ e(
|
|
30
|
+
h,
|
|
31
|
+
{
|
|
32
|
+
constructFeatureFlags: () => new a(),
|
|
33
|
+
children: /* @__PURE__ */ e(
|
|
34
|
+
v,
|
|
35
|
+
{
|
|
36
|
+
requestBitbucketImplementation: g,
|
|
37
|
+
children: /* @__PURE__ */ e(
|
|
38
|
+
s,
|
|
39
|
+
{
|
|
40
|
+
requestConfluenceImplementation: w,
|
|
41
|
+
children: /* @__PURE__ */ e(
|
|
42
|
+
f,
|
|
43
|
+
{
|
|
44
|
+
requestJiraImplementation: b,
|
|
45
|
+
children: r
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
) }) }) });
|
|
21
54
|
}
|
|
22
55
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
56
|
+
U as AtlassianAppForgeUiKit,
|
|
57
|
+
U as default
|
|
25
58
|
};
|
package/atlassian/shared/frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("react/jsx-runtime"),e=require("react"),g=require("../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js"),o=e.createContext(void 0),x=()=>e.useContext(o);function f({constructFeatureFlags:t,children:s}){const[r,a]=e.useState(void 0),i=g.useViewContext();return e.useEffect(()=>{(async()=>{const{accountId:u,cloudId:c,environmentType:l}=await i.getContext(),d={attributes:{installContext:`ari:cloud:confluence::site/${c}`},identifiers:{accountId:u}},v={environment:l.toLowerCase()},n=t();await n.initialize(d,v),a(n)})()},[t,i]),F.jsx(o.Provider,{value:r,children:s})}exports.FeatureFlagsProvider=f;exports.useFeatureFlags=x;
|
package/atlassian/shared/frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.es.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v, useEffect as F, createContext as m, useContext as x } from "react";
|
|
3
|
+
import { useViewContext as g } from "../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
4
|
+
const i = m(void 0), y = () => x(i);
|
|
5
|
+
function I({
|
|
6
|
+
constructFeatureFlags: e,
|
|
7
|
+
children: n
|
|
8
|
+
}) {
|
|
9
|
+
const [a, s] = v(void 0), t = g();
|
|
10
|
+
return F(() => {
|
|
11
|
+
(async () => {
|
|
12
|
+
const { accountId: r, cloudId: u, environmentType: c } = await t.getContext(), l = {
|
|
13
|
+
attributes: {
|
|
14
|
+
installContext: `ari:cloud:confluence::site/${u}`
|
|
15
|
+
},
|
|
16
|
+
identifiers: {
|
|
17
|
+
accountId: r
|
|
18
|
+
}
|
|
19
|
+
}, d = {
|
|
20
|
+
environment: c.toLowerCase()
|
|
21
|
+
}, o = e();
|
|
22
|
+
await o.initialize(l, d), s(o);
|
|
23
|
+
})();
|
|
24
|
+
}, [e, t]), /* @__PURE__ */ f(i.Provider, { value: a, children: n });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
I as FeatureFlagsProvider,
|
|
28
|
+
y as useFeatureFlags
|
|
29
|
+
};
|
|
@@ -179,13 +179,17 @@
|
|
|
179
179
|
"excerptTokens": [
|
|
180
180
|
{
|
|
181
181
|
"kind": "Content",
|
|
182
|
-
"text": "export declare function AtlassianAppForgeUiKit({ children }: "
|
|
182
|
+
"text": "export declare function AtlassianAppForgeUiKit({ children, useForgeFlags, }: "
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
"kind": "Reference",
|
|
186
186
|
"text": "PropsWithChildren",
|
|
187
187
|
"canonicalReference": "@types/react!React.PropsWithChildren:type"
|
|
188
188
|
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "Content",
|
|
191
|
+
"text": "<{\n useForgeFlags?: boolean;\n}>"
|
|
192
|
+
},
|
|
189
193
|
{
|
|
190
194
|
"kind": "Content",
|
|
191
195
|
"text": "): "
|
|
@@ -206,17 +210,17 @@
|
|
|
206
210
|
],
|
|
207
211
|
"fileUrlPath": "../../shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit.d.ts",
|
|
208
212
|
"returnTypeTokenRange": {
|
|
209
|
-
"startIndex":
|
|
210
|
-
"endIndex":
|
|
213
|
+
"startIndex": 4,
|
|
214
|
+
"endIndex": 6
|
|
211
215
|
},
|
|
212
216
|
"releaseTag": "Public",
|
|
213
217
|
"overloadIndex": 1,
|
|
214
218
|
"parameters": [
|
|
215
219
|
{
|
|
216
|
-
"parameterName": "{ children }",
|
|
220
|
+
"parameterName": "{ children, useForgeFlags, }",
|
|
217
221
|
"parameterTypeTokenRange": {
|
|
218
222
|
"startIndex": 1,
|
|
219
|
-
"endIndex":
|
|
223
|
+
"endIndex": 3
|
|
220
224
|
},
|
|
221
225
|
"isOptional": false
|
|
222
226
|
}
|
|
@@ -8,7 +8,9 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
8
8
|
import { PropsWithChildren } from 'react';
|
|
9
9
|
|
|
10
10
|
// @public (undocumented)
|
|
11
|
-
export function AtlassianAppForgeUiKit({ children }: PropsWithChildren
|
|
11
|
+
export function AtlassianAppForgeUiKit({ children, useForgeFlags, }: PropsWithChildren<{
|
|
12
|
+
useForgeFlags?: boolean;
|
|
13
|
+
}>): JSX_2.Element;
|
|
12
14
|
|
|
13
15
|
// (No @packageDocumentation comment for this package)
|
|
14
16
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
|
-
export declare function AtlassianAppForgeUiKit({ children }: PropsWithChildren
|
|
4
|
+
export declare function AtlassianAppForgeUiKit({ children, useForgeFlags, }: PropsWithChildren<{
|
|
5
|
+
useForgeFlags?: boolean;
|
|
6
|
+
}>): JSX_2.Element;
|
|
5
7
|
|
|
6
8
|
export { }
|
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-17",
|
|
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": {
|
|
@@ -173,6 +173,11 @@
|
|
|
173
173
|
"require": "./ui-expand-panel/index.cjs.js",
|
|
174
174
|
"types": "./ui-expand-panel/index.d.ts"
|
|
175
175
|
},
|
|
176
|
+
"./ui-forge-feature-flags": {
|
|
177
|
+
"import": "./ui-forge-feature-flags/index.es.js",
|
|
178
|
+
"require": "./ui-forge-feature-flags/index.cjs.js",
|
|
179
|
+
"types": "./ui-forge-feature-flags/index.d.ts"
|
|
180
|
+
},
|
|
176
181
|
"./ui-drop-target": {
|
|
177
182
|
"import": "./ui-drop-target/index.es.js",
|
|
178
183
|
"require": "./ui-drop-target/index.cjs.js",
|
|
@@ -0,0 +1,276 @@
|
|
|
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!FeatureFlagsProvider:function(1)",
|
|
178
|
+
"docComment": "",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "export declare function FeatureFlagsProvider({ constructFeatureFlags, children, }: "
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "Reference",
|
|
186
|
+
"text": "Readonly",
|
|
187
|
+
"canonicalReference": "!Readonly:type"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "Content",
|
|
191
|
+
"text": "<"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"kind": "Reference",
|
|
195
|
+
"text": "PropsWithChildren",
|
|
196
|
+
"canonicalReference": "@types/react!React.PropsWithChildren:type"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"kind": "Content",
|
|
200
|
+
"text": "<{\n constructFeatureFlags: () => "
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "Reference",
|
|
204
|
+
"text": "FeatureFlags",
|
|
205
|
+
"canonicalReference": "@forge/bridge!FeatureFlags:class"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"kind": "Content",
|
|
209
|
+
"text": ";\n}>>"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "Content",
|
|
213
|
+
"text": "): "
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "Reference",
|
|
217
|
+
"text": "React.JSX.Element",
|
|
218
|
+
"canonicalReference": "@types/react!React.JSX.Element:interface"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"kind": "Content",
|
|
222
|
+
"text": ";"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"fileUrlPath": "../../shared/frontend-ui-forge-feature-flags/src/lib/feature-flags-provider.d.ts",
|
|
226
|
+
"returnTypeTokenRange": {
|
|
227
|
+
"startIndex": 8,
|
|
228
|
+
"endIndex": 9
|
|
229
|
+
},
|
|
230
|
+
"releaseTag": "Public",
|
|
231
|
+
"overloadIndex": 1,
|
|
232
|
+
"parameters": [
|
|
233
|
+
{
|
|
234
|
+
"parameterName": "{ constructFeatureFlags, children, }",
|
|
235
|
+
"parameterTypeTokenRange": {
|
|
236
|
+
"startIndex": 1,
|
|
237
|
+
"endIndex": 7
|
|
238
|
+
},
|
|
239
|
+
"isOptional": false
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"name": "FeatureFlagsProvider"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"kind": "Function",
|
|
246
|
+
"canonicalReference": "@valiantys/atlassian-app!useFeatureFlags:function(1)",
|
|
247
|
+
"docComment": "",
|
|
248
|
+
"excerptTokens": [
|
|
249
|
+
{
|
|
250
|
+
"kind": "Content",
|
|
251
|
+
"text": "useFeatureFlags: () => "
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "Reference",
|
|
255
|
+
"text": "FeatureFlags",
|
|
256
|
+
"canonicalReference": "@forge/bridge!FeatureFlags:class"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"kind": "Content",
|
|
260
|
+
"text": " | undefined"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"fileUrlPath": "../../shared/frontend-ui-forge-feature-flags/src/lib/feature-flags-provider.d.ts",
|
|
264
|
+
"returnTypeTokenRange": {
|
|
265
|
+
"startIndex": 1,
|
|
266
|
+
"endIndex": 3
|
|
267
|
+
},
|
|
268
|
+
"releaseTag": "Public",
|
|
269
|
+
"overloadIndex": 1,
|
|
270
|
+
"parameters": [],
|
|
271
|
+
"name": "useFeatureFlags"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { default as default_2 } from 'react';
|
|
8
|
+
import { FeatureFlags } from '@forge/bridge/out/featureFlags/featureFlags.d.ts';
|
|
9
|
+
import { PropsWithChildren } from 'react';
|
|
10
|
+
|
|
11
|
+
// @public (undocumented)
|
|
12
|
+
export function FeatureFlagsProvider({ constructFeatureFlags, children, }: Readonly<PropsWithChildren<{
|
|
13
|
+
constructFeatureFlags: () => FeatureFlags;
|
|
14
|
+
}>>): default_2.JSX.Element;
|
|
15
|
+
|
|
16
|
+
// @public (undocumented)
|
|
17
|
+
export const useFeatureFlags: () => FeatureFlags | undefined;
|
|
18
|
+
|
|
19
|
+
// (No @packageDocumentation comment for this package)
|
|
20
|
+
|
|
21
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/shared/frontend-ui-forge-feature-flags/src/lib/feature-flags-provider/index.cjs.js");exports.FeatureFlagsProvider=e.FeatureFlagsProvider;exports.useFeatureFlags=e.useFeatureFlags;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { FeatureFlags } from '@forge/bridge/out/featureFlags/featureFlags.d.ts';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare function FeatureFlagsProvider({ constructFeatureFlags, children, }: Readonly<PropsWithChildren<{
|
|
6
|
+
constructFeatureFlags: () => FeatureFlags;
|
|
7
|
+
}>>): default_2.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export declare const useFeatureFlags: () => FeatureFlags | undefined;
|
|
10
|
+
|
|
11
|
+
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
|
+
}
|