@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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),e=require("@forge/bridge"),s=require("react"),u=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),c=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js");e.view.theme.enable();function t({children:i}){const n=s.useCallback(async(o,a)=>e.invoke(o,{...a}),[]);return r.jsx(u.BackendAdapterProvider,{invokeImplementation:n,children:r.jsx(c.ViewContextProvider,{viewContext:e.view,children:i})})}exports.AtlassianAppForgeUiKit=t;exports.default=t;
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 e } from "react/jsx-runtime";
2
- import { view as r, invoke as m } from "@forge/bridge";
3
- import { useCallback as a } from "react";
4
- import { BackendAdapterProvider as p } from "../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.es.js";
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
- r.theme.enable();
7
- function k({ children: o }) {
8
- const t = a(
9
- async (i, n) => m(i, {
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__ */ e(p, { invokeImplementation: t, children: /* @__PURE__ */ e(v, { viewContext: r, children: o }) });
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
- k as AtlassianAppForgeUiKit,
18
- k as default
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-1",
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": {