@valiantys/atlassian-app 3.2.0-alpha-16 → 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/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 +44 -18
- 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 +1 -1
|
@@ -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
|
|
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,32 +1,58 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { view as o, invoke as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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";
|
|
8
13
|
o.theme.enable();
|
|
9
|
-
const
|
|
14
|
+
const b = t("jira"), g = t("bitbucket"), w = t("confluence"), S = {
|
|
10
15
|
open(r) {
|
|
11
|
-
return new
|
|
16
|
+
return new p(r).open();
|
|
12
17
|
}
|
|
13
18
|
};
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
function U({
|
|
20
|
+
children: r,
|
|
21
|
+
useForgeFlags: i
|
|
22
|
+
}) {
|
|
23
|
+
const n = u(
|
|
24
|
+
async (c, m) => l(c, {
|
|
25
|
+
...m
|
|
18
26
|
}),
|
|
19
27
|
[]
|
|
20
28
|
);
|
|
21
|
-
return /* @__PURE__ */ e(
|
|
22
|
-
|
|
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,
|
|
23
31
|
{
|
|
24
|
-
constructFeatureFlags: () => new
|
|
25
|
-
children:
|
|
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
|
+
)
|
|
26
52
|
}
|
|
27
53
|
) }) }) });
|
|
28
54
|
}
|
|
29
55
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
56
|
+
U as AtlassianAppForgeUiKit,
|
|
57
|
+
U as default
|
|
32
58
|
};
|
|
@@ -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": {
|