@valiantys/atlassian-app-frontend 3.1.0-alpha-1 → 3.1.0-alpha-2
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/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 +17 -11
- package/package.json +1 -1
- package/valiantys-atlassian-app-frontend-3.1.0-alpha-2.tgz +0 -0
- package/valiantys-atlassian-app-frontend-3.1.0-alpha-1.tgz +0 -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 i=require("react/jsx-runtime"),e=require("@forge/bridge"),c=require("react"),d=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),s=require("../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js"),l=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js");e.view.theme.enable();const u={open(r){return new e.Modal(r).open()}};function o({children:r}){const t=c.useCallback(async(n,a)=>e.invoke(n,{...a}),[]);return i.jsx(s.ModalServiceProvider,{modalService:u,children:i.jsx(d.BackendAdapterProvider,{invokeImplementation:t,children:i.jsx(l.ViewContextProvider,{viewContext:e.view,children:r})})})}exports.AtlassianAppForgeUiKit=o;exports.default=o;
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { view as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import { BackendAdapterProvider as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { view as o, invoke as a, Modal as m } from "@forge/bridge";
|
|
3
|
+
import { useCallback as p } from "react";
|
|
4
|
+
import { BackendAdapterProvider as d } from "../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js";
|
|
5
|
+
import { ModalServiceProvider as l } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
|
|
5
6
|
import { ViewContextProvider as v } from "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
o.theme.enable();
|
|
8
|
+
const c = {
|
|
9
|
+
open(e) {
|
|
10
|
+
return new m(e).open();
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
function h({ children: e }) {
|
|
14
|
+
const i = p(
|
|
15
|
+
async (t, n) => a(t, {
|
|
10
16
|
...n
|
|
11
17
|
}),
|
|
12
18
|
[]
|
|
13
19
|
);
|
|
14
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ r(l, { modalService: c, children: /* @__PURE__ */ r(d, { invokeImplementation: i, children: /* @__PURE__ */ r(v, { viewContext: o, children: e }) }) });
|
|
15
21
|
}
|
|
16
22
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
h as AtlassianAppForgeUiKit,
|
|
24
|
+
h as default
|
|
19
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiantys/atlassian-app-frontend",
|
|
3
|
-
"version": "3.1.0-alpha-
|
|
3
|
+
"version": "3.1.0-alpha-2",
|
|
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": {
|
|
Binary file
|
|
Binary file
|