@valiantys/atlassian-app-frontend 3.0.0-alpha-32 → 3.1.0-alpha-1
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 +1 -1
- 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 +6 -6
- package/package.json +6 -1
- package/ui-modal/atlassian-app-frontend-ui-modal.api.json +92 -7
- package/ui-modal/atlassian-app-frontend.api.md +9 -1
- package/ui-modal/index.cjs.js +1 -1
- package/ui-modal/index.d.ts +7 -2
- package/ui-modal/index.es.js +9 -9
- package/ui-modal-service/atlassian-app-frontend-ui-modal-service.api.json +809 -0
- package/ui-modal-service/atlassian-app-frontend.api.md +59 -0
- package/ui-modal-service/index.cjs.js +1 -0
- package/ui-modal-service/index.d.ts +41 -0
- package/ui-modal-service/index.es.js +7 -0
- package/ui-modal-service/tsdoc-metadata.json +11 -0
- package/valiantys-atlassian-app-frontend-3.1.0-alpha-1.tgz +0 -0
- /package/atlassian/shared/{frontend-ui-modal → frontend-ui-modal-service}/src/lib/modal-service/index.cjs.js +0 -0
- /package/atlassian/shared/{frontend-ui-modal → frontend-ui-modal-service}/src/lib/modal-service/index.es.js +0 -0
- /package/atlassian/shared/{frontend-ui-modal → frontend-ui-modal-service}/src/lib/modal-service-provider/index.cjs.js +0 -0
- /package/atlassian/shared/{frontend-ui-modal → frontend-ui-modal-service}/src/lib/modal-service-provider/index.es.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("@forge/bridge"),o=require("../../../../../../forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.cjs.js"),a=require("../../../../../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js"),d=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");require("../../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");const q=require("../../../../../frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js"),p=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js"),v=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js"),h=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js");require("@atlaskit/button/new");require("react");const F=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("@atlaskit/heading");require("@atlaskit/primitives");require("../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js");
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("@forge/bridge"),o=require("../../../../../../forge/shared/frontend-data-access-product-fetch-forge-bridge/src/lib/forge-bridge-product-fetch/index.cjs.js"),a=require("../../../../../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js"),d=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");require("../../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");const q=require("../../../../../frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js"),p=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.cjs.js"),v=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.cjs.js"),h=require("../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.cjs.js");require("@atlaskit/button/new");require("react");const F=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("@atlaskit/heading");require("@atlaskit/primitives");require("../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.cjs.js");require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js");const g=require("../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js"),m=require("../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js"),P=require("../../ui-kit/atlassian-app-forge-ui-kit/index.cjs.js"),S=o.createClientSideForgeProductFetchService("jira"),j=o.createClientSideForgeProductFetchService("bitbucket"),A=o.createClientSideForgeProductFetchService("confluence"),f={open(t){return new i.Modal(t).open()}};function c({appName:t,doCheckWorkspace:n,invokeRemoteImpl:s,useAtlasKitFlags:u,children:l}){let r=l;return n&&(r=e.jsx(d.FeatureChosenWorkspaceCheck,{appName:t,children:r})),r=e.jsx(m.RemoteAdapterProvider,{invokeRemoteImplementation:s||i.invokeRemote,children:e.jsx(P.AtlassianAppForgeUiKit,{children:e.jsx(F.HostRouterProvider,{hostRouter:i.router,children:e.jsx(p.RequestBitbucketProvider,{requestBitbucketImplementation:j,children:e.jsx(v.RequestConfluenceProvider,{requestConfluenceImplementation:A,children:e.jsx(h.RequestJiraProvider,{requestJiraImplementation:S,children:e.jsx(g.ModalServiceProvider,{modalService:f,children:r})})})})})})}),u?e.jsx(q.AppFlagsProviderAtlasKit,{children:r}):e.jsx(a.AppFlagsProviderForge,{children:r})}exports.AtlassianAppForge=c;exports.default=c;
|
|
@@ -16,8 +16,8 @@ import "../../../../../frontend-ui-modal/src/lib/modal-content/index.es.js";
|
|
|
16
16
|
import "@atlaskit/heading";
|
|
17
17
|
import "@atlaskit/primitives";
|
|
18
18
|
import "../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js";
|
|
19
|
-
import { ModalServiceProvider as P } from "../../../../../frontend-ui-modal/src/lib/modal-service-provider/index.es.js";
|
|
20
19
|
import "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
20
|
+
import { ModalServiceProvider as P } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
|
|
21
21
|
import { RemoteAdapterProvider as k } from "../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js";
|
|
22
22
|
import { AtlassianAppForgeUiKit as A } from "../../ui-kit/atlassian-app-forge-ui-kit/index.es.js";
|
|
23
23
|
const R = t("jira"), S = t("bitbucket"), g = t("confluence"), b = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),g=require("@atlaskit/app-provider"),o=require("react"),S=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 P=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");require("../../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");const W=require("../../../../../frontend-ui-app-flags/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"),y=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),M=require("../../../../../frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.cjs.js"),H=require("../../../../../frontend-ui-host-router/src/lib/host-router/index.cjs.js");require("@atlaskit/button/new");const _=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-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),g=require("@atlaskit/app-provider"),o=require("react"),S=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 P=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");require("../../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");const W=require("../../../../../frontend-ui-app-flags/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"),y=require("../../../../../frontend-ui-backend-adapter/src/lib/backend-adapter/index.cjs.js"),M=require("../../../../../frontend-ui-backend-adapter/src/lib/oauth-fetch-invoke/index.cjs.js"),H=require("../../../../../frontend-ui-host-router/src/lib/host-router/index.cjs.js");require("@atlaskit/button/new");const _=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"),z=require("../../../../../frontend-ui-modal-service/src/lib/modal-service/index.cjs.js"),K=require("../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js"),U=require("../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.cjs.js"),D=require("../../../../../frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.cjs.js"),G=require("../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.cjs.js"),L=require("../../../../../frontend-ui-view-context/src/lib/mock-view-context/index.cjs.js"),Q=o.lazy(()=>Promise.resolve().then(()=>require("../../../../../frontend-feature-chosen-resource-check/src/index/index.cjs.js")));function R({initialMockViewContext:c,backendUrl:u,remoteUrl:h,doCheckWorkspace:A,appName:i,doCheckResource:l,modalOpenerConfig:d,modalContextConfig:q,oauthConfig:n,atlassianResourceId:x,children:t}){const v=r.jsx(X,{appName:i,backendUrl:u,remoteUrl:h,initialMockViewContext:c,modalOpenerConfig:d,modalContextConfig:q,doCheckWorkspace:A,doCheckResource:l,oauthConfig:n,atlassianResourceId:x,children:t});return n?r.jsx(P.OAuthProvider,{clientId:n.clientId,codeTokenExchangeUrl:n.codeTokenExchangeUrl,appName:i,oAuthScopes:n.oAuthScopes,appBaseContext:n.appBaseContext,children:v}):v}function X({initialMockViewContext:c,backendUrl:u,remoteUrl:h,doCheckWorkspace:A,appName:i,doCheckResource:l,modalOpenerConfig:d,modalContextConfig:q,atlassianResourceId:n,children:x}){const[t,v]=o.useState(n),[a,j]=o.useState(),{getAuthToken:s}=P.useOAuth(),f=o.useCallback(()=>S.atlassianOAuthJiraFetch(s(),t??""),[s,t]),C=o.useCallback(()=>S.atlassianOAuthConfluenceFetch(s(),t??""),[s,t]),F=o.useCallback(()=>S.atlassianOAuthBitbucketFetch(s()),[s]),w=o.useCallback(async p=>{if(u&&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),v(k.resource.id)),k}else return{hasChosen:!0}},[u,s,i,l]);o.useEffect(()=>{const p=t??(c==null?void 0:c.cloudId)??"";if(!a||a.cloudId!==p){const I={...a||c,cloudId:p};j(I)}},[c,t,a]);const b=o.useCallback(()=>u?M.getOauthFetchInvokeImpl(u,s(),t??""):void 0,[t,s,u]);let e=x;A&&(e=r.jsx(O.FeatureChosenWorkspaceCheck,{appName:i,children:e})),d&&(e=r.jsx(K.ModalServiceProvider,{modalService:new z.WindowModalService(d.defaultUrl,d.resourceMap),children:e})),a&&(e=r.jsx(G.ViewContextProvider,{viewContext:q?new $.ModalViewContext(a,q.openerOrigin):new L.MockViewContext(a),children:e})),e=r.jsx(_.HostRouterProvider,{hostRouter:new H.WindowHostRouter,children:r.jsx(J.RequestBitbucketProvider,{requestBitbucketImplementation:F(),children:r.jsx(T.RequestConfluenceProvider,{requestConfluenceImplementation:C(),children:r.jsx(E.RequestJiraProvider,{requestJiraImplementation:f(),children:e})})})});const m=b();return m&&(e=r.jsx(y.BackendAdapterProvider,{invokeImplementation:m,children:e})),h&&(e=r.jsx(U.RemoteAdapterProvider,{invokeRemoteImplementation:D.oauthFetchInvokeRemote(h),children:e})),l&&(e=r.jsx(Q,{checkResource:w,children:e})),r.jsx(g,{children:r.jsx(W.AppFlagsProviderAtlasKit,{children:e})})}exports.AtlassianAppStandalone=R;exports.default=R;
|
|
@@ -23,9 +23,9 @@ import "@atlaskit/button/new";
|
|
|
23
23
|
import { HostRouterProvider as L } from "../../../../../frontend-ui-host-router/src/lib/host-router-provider/index.es.js";
|
|
24
24
|
import "../../../../../frontend-ui-modal/src/lib/modal-content/index.es.js";
|
|
25
25
|
import "../../../../../frontend-ui-iframe/src/lib/iframe-wrapper/index.es.js";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
26
|
+
import { ModalViewContext as Q } from "../../../../../frontend-ui-modal/src/lib/modal-view-context/index.es.js";
|
|
27
|
+
import { WindowModalService as U } from "../../../../../frontend-ui-modal-service/src/lib/modal-service/index.es.js";
|
|
28
|
+
import { ModalServiceProvider as X } from "../../../../../frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
|
|
29
29
|
import { RemoteAdapterProvider as Y } from "../../../../../frontend-ui-remote-adapter/src/lib/remote-adapter/index.es.js";
|
|
30
30
|
import { oauthFetchInvokeRemote as Z } from "../../../../../frontend-ui-remote-adapter/src/lib/oauth-fetch-invoke-remote/index.es.js";
|
|
31
31
|
import { ViewContextProvider as _ } from "../../../../../frontend-ui-view-context/src/lib/view-context-provider/index.es.js";
|
|
@@ -120,9 +120,9 @@ function ee({
|
|
|
120
120
|
);
|
|
121
121
|
let e = A;
|
|
122
122
|
I && (e = /* @__PURE__ */ r(y, { appName: s, children: e })), u && (e = /* @__PURE__ */ r(
|
|
123
|
-
|
|
123
|
+
X,
|
|
124
124
|
{
|
|
125
|
-
modalService: new
|
|
125
|
+
modalService: new U(
|
|
126
126
|
u.defaultUrl,
|
|
127
127
|
u.resourceMap
|
|
128
128
|
),
|
|
@@ -131,7 +131,7 @@ function ee({
|
|
|
131
131
|
)), m && (e = /* @__PURE__ */ r(
|
|
132
132
|
_,
|
|
133
133
|
{
|
|
134
|
-
viewContext: a ? new
|
|
134
|
+
viewContext: a ? new Q(m, a.openerOrigin) : new V(m),
|
|
135
135
|
children: e
|
|
136
136
|
}
|
|
137
137
|
)), e = /* @__PURE__ */ r(L, { hostRouter: new G(), children: /* @__PURE__ */ r(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiantys/atlassian-app-frontend",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0-alpha-1",
|
|
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": {
|
|
@@ -113,6 +113,11 @@
|
|
|
113
113
|
"require": "./ui-modal/index.cjs.js",
|
|
114
114
|
"types": "./ui-modal/index.d.ts"
|
|
115
115
|
},
|
|
116
|
+
"./ui-modal-service": {
|
|
117
|
+
"import": "./ui-modal-service/index.es.js",
|
|
118
|
+
"require": "./ui-modal-service/index.cjs.js",
|
|
119
|
+
"types": "./ui-modal-service/index.d.ts"
|
|
120
|
+
},
|
|
116
121
|
"./ui-page-loading-view": {
|
|
117
122
|
"import": "./ui-page-loading-view/index.es.js",
|
|
118
123
|
"require": "./ui-page-loading-view/index.cjs.js",
|
|
@@ -172,6 +172,91 @@
|
|
|
172
172
|
"name": "",
|
|
173
173
|
"preserveMemberOrder": false,
|
|
174
174
|
"members": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "Interface",
|
|
177
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ClosingMessage:interface",
|
|
178
|
+
"docComment": "",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "export interface ClosingMessage<P> "
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/closing-message.d.ts",
|
|
186
|
+
"releaseTag": "Public",
|
|
187
|
+
"typeParameters": [
|
|
188
|
+
{
|
|
189
|
+
"typeParameterName": "P",
|
|
190
|
+
"constraintTokenRange": {
|
|
191
|
+
"startIndex": 0,
|
|
192
|
+
"endIndex": 0
|
|
193
|
+
},
|
|
194
|
+
"defaultTypeTokenRange": {
|
|
195
|
+
"startIndex": 0,
|
|
196
|
+
"endIndex": 0
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"name": "ClosingMessage",
|
|
201
|
+
"preserveMemberOrder": false,
|
|
202
|
+
"members": [
|
|
203
|
+
{
|
|
204
|
+
"kind": "PropertySignature",
|
|
205
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ClosingMessage#closing:member",
|
|
206
|
+
"docComment": "",
|
|
207
|
+
"excerptTokens": [
|
|
208
|
+
{
|
|
209
|
+
"kind": "Content",
|
|
210
|
+
"text": "closing: "
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"kind": "Content",
|
|
214
|
+
"text": "true"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"kind": "Content",
|
|
218
|
+
"text": ";"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"isReadonly": false,
|
|
222
|
+
"isOptional": false,
|
|
223
|
+
"releaseTag": "Public",
|
|
224
|
+
"name": "closing",
|
|
225
|
+
"propertyTypeTokenRange": {
|
|
226
|
+
"startIndex": 1,
|
|
227
|
+
"endIndex": 2
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"kind": "PropertySignature",
|
|
232
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ClosingMessage#payload:member",
|
|
233
|
+
"docComment": "",
|
|
234
|
+
"excerptTokens": [
|
|
235
|
+
{
|
|
236
|
+
"kind": "Content",
|
|
237
|
+
"text": "payload?: "
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"kind": "Content",
|
|
241
|
+
"text": "P"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"kind": "Content",
|
|
245
|
+
"text": ";"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"isReadonly": false,
|
|
249
|
+
"isOptional": true,
|
|
250
|
+
"releaseTag": "Public",
|
|
251
|
+
"name": "payload",
|
|
252
|
+
"propertyTypeTokenRange": {
|
|
253
|
+
"startIndex": 1,
|
|
254
|
+
"endIndex": 2
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"extendsTokenRanges": []
|
|
259
|
+
},
|
|
175
260
|
{
|
|
176
261
|
"kind": "Interface",
|
|
177
262
|
"canonicalReference": "@valiantys/atlassian-app-frontend!IframeModalContextData:interface",
|
|
@@ -611,7 +696,7 @@
|
|
|
611
696
|
"text": "export interface ModalOptions<C, P> "
|
|
612
697
|
}
|
|
613
698
|
],
|
|
614
|
-
"fileUrlPath": "../../shared/frontend-ui-modal/src/lib/modal-service.d.ts",
|
|
699
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service.d.ts",
|
|
615
700
|
"releaseTag": "Public",
|
|
616
701
|
"typeParameters": [
|
|
617
702
|
{
|
|
@@ -816,7 +901,7 @@
|
|
|
816
901
|
"text": "export interface ModalService "
|
|
817
902
|
}
|
|
818
903
|
],
|
|
819
|
-
"fileUrlPath": "../../shared/frontend-ui-modal/src/lib/modal-service.d.ts",
|
|
904
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service.d.ts",
|
|
820
905
|
"releaseTag": "Public",
|
|
821
906
|
"name": "ModalService",
|
|
822
907
|
"preserveMemberOrder": false,
|
|
@@ -935,7 +1020,7 @@
|
|
|
935
1020
|
"text": ";"
|
|
936
1021
|
}
|
|
937
1022
|
],
|
|
938
|
-
"fileUrlPath": "../../shared/frontend-ui-modal/src/lib/modal-service-provider.d.ts",
|
|
1023
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service-provider.d.ts",
|
|
939
1024
|
"returnTypeTokenRange": {
|
|
940
1025
|
"startIndex": 3,
|
|
941
1026
|
"endIndex": 5
|
|
@@ -1074,7 +1159,7 @@
|
|
|
1074
1159
|
"excerptTokens": [
|
|
1075
1160
|
{
|
|
1076
1161
|
"kind": "Content",
|
|
1077
|
-
"text": "context: "
|
|
1162
|
+
"text": "readonly context: "
|
|
1078
1163
|
},
|
|
1079
1164
|
{
|
|
1080
1165
|
"kind": "Reference",
|
|
@@ -1086,7 +1171,7 @@
|
|
|
1086
1171
|
"text": ";"
|
|
1087
1172
|
}
|
|
1088
1173
|
],
|
|
1089
|
-
"isReadonly":
|
|
1174
|
+
"isReadonly": true,
|
|
1090
1175
|
"isOptional": false,
|
|
1091
1176
|
"releaseTag": "Public",
|
|
1092
1177
|
"name": "context",
|
|
@@ -1193,7 +1278,7 @@
|
|
|
1193
1278
|
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalService:interface"
|
|
1194
1279
|
}
|
|
1195
1280
|
],
|
|
1196
|
-
"fileUrlPath": "../../shared/frontend-ui-modal/src/lib/modal-service-provider.d.ts",
|
|
1281
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service-provider.d.ts",
|
|
1197
1282
|
"returnTypeTokenRange": {
|
|
1198
1283
|
"startIndex": 1,
|
|
1199
1284
|
"endIndex": 2
|
|
@@ -1222,7 +1307,7 @@
|
|
|
1222
1307
|
"text": " "
|
|
1223
1308
|
}
|
|
1224
1309
|
],
|
|
1225
|
-
"fileUrlPath": "../../shared/frontend-ui-modal/src/lib/modal-service.d.ts",
|
|
1310
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service.d.ts",
|
|
1226
1311
|
"releaseTag": "Public",
|
|
1227
1312
|
"isAbstract": false,
|
|
1228
1313
|
"name": "WindowModalService",
|
|
@@ -11,6 +11,14 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
11
11
|
import { PropsWithChildren } from 'react';
|
|
12
12
|
import { ReactNode } from 'react';
|
|
13
13
|
|
|
14
|
+
// @public (undocumented)
|
|
15
|
+
export interface ClosingMessage<P> {
|
|
16
|
+
// (undocumented)
|
|
17
|
+
closing: true;
|
|
18
|
+
// (undocumented)
|
|
19
|
+
payload?: P;
|
|
20
|
+
}
|
|
21
|
+
|
|
14
22
|
// @public (undocumented)
|
|
15
23
|
export interface IframeModalContextData {
|
|
16
24
|
// Warning: (ae-forgotten-export) The symbol "IframeProps" needs to be exported by the entry point ui-modal.d.ts
|
|
@@ -88,7 +96,7 @@ export class ModalViewContext extends MockViewContext {
|
|
|
88
96
|
// (undocumented)
|
|
89
97
|
close: (payload?: unknown) => Promise<void>;
|
|
90
98
|
// (undocumented)
|
|
91
|
-
context: FullContext;
|
|
99
|
+
readonly context: FullContext;
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
// @public (undocumented)
|
package/ui-modal/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.cjs.js"),t=require("../atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.cjs.js"),r=require("../atlassian/shared/frontend-ui-modal/src/lib/modal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.cjs.js"),t=require("../atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.cjs.js"),r=require("../atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.cjs.js"),a=require("../atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.cjs.js"),i=require("../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.cjs.js"),o=require("../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js");exports.ModalContent=e.ModalContent;exports.useModalContentService=e.useModalContentService;exports.ModalContentIframe=t.ModalContentIframe;exports.ModalViewContext=r.ModalViewContext;exports.ModalDialogLayout=a.ModalDialogLayout;exports.WindowModalService=i.WindowModalService;exports.ModalServiceProvider=o.ModalServiceProvider;exports.useModalService=o.useModalService;
|
package/ui-modal/index.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
5
5
|
import { PropsWithChildren } from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
|
8
|
+
export declare interface ClosingMessage<P> {
|
|
9
|
+
closing: true;
|
|
10
|
+
payload?: P;
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
export declare interface IframeModalContextData {
|
|
9
14
|
iframeProps: IframeProps;
|
|
10
15
|
modalHeader?: string;
|
|
@@ -81,8 +86,8 @@ declare interface ModalServiceProviderProps {
|
|
|
81
86
|
declare type ModalSize = 'small' | 'medium' | 'large' | 'xlarge' | 'max';
|
|
82
87
|
|
|
83
88
|
export declare class ModalViewContext extends MockViewContext {
|
|
84
|
-
context: FullContext;
|
|
85
|
-
private openerOrigin;
|
|
89
|
+
readonly context: FullContext;
|
|
90
|
+
private readonly openerOrigin;
|
|
86
91
|
constructor(context: FullContext, openerOrigin?: string);
|
|
87
92
|
close: (payload?: unknown) => Promise<void>;
|
|
88
93
|
}
|
package/ui-modal/index.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ModalContent as r, useModalContentService as t } from "../atlassian/shared/frontend-ui-modal/src/lib/modal-content/index.es.js";
|
|
2
2
|
import { ModalContentIframe as d } from "../atlassian/shared/frontend-ui-modal/src/lib/modal-content-iframe/index.es.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { ModalViewContext as i } from "../atlassian/shared/frontend-ui-modal/src/lib/modal-view-context/index.es.js";
|
|
4
|
+
import { ModalDialogLayout as M } from "../atlassian/shared/frontend-ui-modal/src/lib/modal-dialog-layout/index.es.js";
|
|
5
|
+
import { WindowModalService as m } from "../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.es.js";
|
|
6
|
+
import { ModalServiceProvider as p, useModalService as v } from "../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
|
|
7
7
|
export {
|
|
8
8
|
r as ModalContent,
|
|
9
9
|
d as ModalContentIframe,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
M as ModalDialogLayout,
|
|
11
|
+
p as ModalServiceProvider,
|
|
12
|
+
i as ModalViewContext,
|
|
13
|
+
m as WindowModalService,
|
|
14
14
|
t as useModalContentService,
|
|
15
|
-
|
|
15
|
+
v as useModalService
|
|
16
16
|
};
|
|
@@ -0,0 +1,809 @@
|
|
|
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-frontend!",
|
|
165
|
+
"docComment": "",
|
|
166
|
+
"name": "@valiantys/atlassian-app-frontend",
|
|
167
|
+
"preserveMemberOrder": false,
|
|
168
|
+
"members": [
|
|
169
|
+
{
|
|
170
|
+
"kind": "EntryPoint",
|
|
171
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!",
|
|
172
|
+
"name": "",
|
|
173
|
+
"preserveMemberOrder": false,
|
|
174
|
+
"members": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "Interface",
|
|
177
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ClosingMessage:interface",
|
|
178
|
+
"docComment": "",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "export interface ClosingMessage<P> "
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/closing-message.d.ts",
|
|
186
|
+
"releaseTag": "Public",
|
|
187
|
+
"typeParameters": [
|
|
188
|
+
{
|
|
189
|
+
"typeParameterName": "P",
|
|
190
|
+
"constraintTokenRange": {
|
|
191
|
+
"startIndex": 0,
|
|
192
|
+
"endIndex": 0
|
|
193
|
+
},
|
|
194
|
+
"defaultTypeTokenRange": {
|
|
195
|
+
"startIndex": 0,
|
|
196
|
+
"endIndex": 0
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"name": "ClosingMessage",
|
|
201
|
+
"preserveMemberOrder": false,
|
|
202
|
+
"members": [
|
|
203
|
+
{
|
|
204
|
+
"kind": "PropertySignature",
|
|
205
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ClosingMessage#closing:member",
|
|
206
|
+
"docComment": "",
|
|
207
|
+
"excerptTokens": [
|
|
208
|
+
{
|
|
209
|
+
"kind": "Content",
|
|
210
|
+
"text": "closing: "
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"kind": "Content",
|
|
214
|
+
"text": "true"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"kind": "Content",
|
|
218
|
+
"text": ";"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"isReadonly": false,
|
|
222
|
+
"isOptional": false,
|
|
223
|
+
"releaseTag": "Public",
|
|
224
|
+
"name": "closing",
|
|
225
|
+
"propertyTypeTokenRange": {
|
|
226
|
+
"startIndex": 1,
|
|
227
|
+
"endIndex": 2
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"kind": "PropertySignature",
|
|
232
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ClosingMessage#payload:member",
|
|
233
|
+
"docComment": "",
|
|
234
|
+
"excerptTokens": [
|
|
235
|
+
{
|
|
236
|
+
"kind": "Content",
|
|
237
|
+
"text": "payload?: "
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"kind": "Content",
|
|
241
|
+
"text": "P"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"kind": "Content",
|
|
245
|
+
"text": ";"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"isReadonly": false,
|
|
249
|
+
"isOptional": true,
|
|
250
|
+
"releaseTag": "Public",
|
|
251
|
+
"name": "payload",
|
|
252
|
+
"propertyTypeTokenRange": {
|
|
253
|
+
"startIndex": 1,
|
|
254
|
+
"endIndex": 2
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"extendsTokenRanges": []
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "Interface",
|
|
262
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions:interface",
|
|
263
|
+
"docComment": "",
|
|
264
|
+
"excerptTokens": [
|
|
265
|
+
{
|
|
266
|
+
"kind": "Content",
|
|
267
|
+
"text": "export interface ModalOptions<C, P> "
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service.d.ts",
|
|
271
|
+
"releaseTag": "Public",
|
|
272
|
+
"typeParameters": [
|
|
273
|
+
{
|
|
274
|
+
"typeParameterName": "C",
|
|
275
|
+
"constraintTokenRange": {
|
|
276
|
+
"startIndex": 0,
|
|
277
|
+
"endIndex": 0
|
|
278
|
+
},
|
|
279
|
+
"defaultTypeTokenRange": {
|
|
280
|
+
"startIndex": 0,
|
|
281
|
+
"endIndex": 0
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"typeParameterName": "P",
|
|
286
|
+
"constraintTokenRange": {
|
|
287
|
+
"startIndex": 0,
|
|
288
|
+
"endIndex": 0
|
|
289
|
+
},
|
|
290
|
+
"defaultTypeTokenRange": {
|
|
291
|
+
"startIndex": 0,
|
|
292
|
+
"endIndex": 0
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"name": "ModalOptions",
|
|
297
|
+
"preserveMemberOrder": false,
|
|
298
|
+
"members": [
|
|
299
|
+
{
|
|
300
|
+
"kind": "PropertySignature",
|
|
301
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions#closeOnEscape:member",
|
|
302
|
+
"docComment": "",
|
|
303
|
+
"excerptTokens": [
|
|
304
|
+
{
|
|
305
|
+
"kind": "Content",
|
|
306
|
+
"text": "closeOnEscape?: "
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"kind": "Content",
|
|
310
|
+
"text": "boolean"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"kind": "Content",
|
|
314
|
+
"text": ";"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"isReadonly": false,
|
|
318
|
+
"isOptional": true,
|
|
319
|
+
"releaseTag": "Public",
|
|
320
|
+
"name": "closeOnEscape",
|
|
321
|
+
"propertyTypeTokenRange": {
|
|
322
|
+
"startIndex": 1,
|
|
323
|
+
"endIndex": 2
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"kind": "PropertySignature",
|
|
328
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions#closeOnOverlayClick:member",
|
|
329
|
+
"docComment": "",
|
|
330
|
+
"excerptTokens": [
|
|
331
|
+
{
|
|
332
|
+
"kind": "Content",
|
|
333
|
+
"text": "closeOnOverlayClick?: "
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"kind": "Content",
|
|
337
|
+
"text": "boolean"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"kind": "Content",
|
|
341
|
+
"text": ";"
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"isReadonly": false,
|
|
345
|
+
"isOptional": true,
|
|
346
|
+
"releaseTag": "Public",
|
|
347
|
+
"name": "closeOnOverlayClick",
|
|
348
|
+
"propertyTypeTokenRange": {
|
|
349
|
+
"startIndex": 1,
|
|
350
|
+
"endIndex": 2
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"kind": "PropertySignature",
|
|
355
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions#context:member",
|
|
356
|
+
"docComment": "",
|
|
357
|
+
"excerptTokens": [
|
|
358
|
+
{
|
|
359
|
+
"kind": "Content",
|
|
360
|
+
"text": "context?: "
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"kind": "Content",
|
|
364
|
+
"text": "C"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"kind": "Content",
|
|
368
|
+
"text": ";"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"isReadonly": false,
|
|
372
|
+
"isOptional": true,
|
|
373
|
+
"releaseTag": "Public",
|
|
374
|
+
"name": "context",
|
|
375
|
+
"propertyTypeTokenRange": {
|
|
376
|
+
"startIndex": 1,
|
|
377
|
+
"endIndex": 2
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"kind": "PropertySignature",
|
|
382
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions#onClose:member",
|
|
383
|
+
"docComment": "",
|
|
384
|
+
"excerptTokens": [
|
|
385
|
+
{
|
|
386
|
+
"kind": "Content",
|
|
387
|
+
"text": "onClose?: "
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"kind": "Content",
|
|
391
|
+
"text": "(payload?: P) => any"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"kind": "Content",
|
|
395
|
+
"text": ";"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"isReadonly": false,
|
|
399
|
+
"isOptional": true,
|
|
400
|
+
"releaseTag": "Public",
|
|
401
|
+
"name": "onClose",
|
|
402
|
+
"propertyTypeTokenRange": {
|
|
403
|
+
"startIndex": 1,
|
|
404
|
+
"endIndex": 2
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"kind": "PropertySignature",
|
|
409
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions#resource:member",
|
|
410
|
+
"docComment": "",
|
|
411
|
+
"excerptTokens": [
|
|
412
|
+
{
|
|
413
|
+
"kind": "Content",
|
|
414
|
+
"text": "resource?: "
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"kind": "Content",
|
|
418
|
+
"text": "string | null"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"kind": "Content",
|
|
422
|
+
"text": ";"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"isReadonly": false,
|
|
426
|
+
"isOptional": true,
|
|
427
|
+
"releaseTag": "Public",
|
|
428
|
+
"name": "resource",
|
|
429
|
+
"propertyTypeTokenRange": {
|
|
430
|
+
"startIndex": 1,
|
|
431
|
+
"endIndex": 2
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"kind": "PropertySignature",
|
|
436
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions#size:member",
|
|
437
|
+
"docComment": "",
|
|
438
|
+
"excerptTokens": [
|
|
439
|
+
{
|
|
440
|
+
"kind": "Content",
|
|
441
|
+
"text": "size?: "
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"kind": "Reference",
|
|
445
|
+
"text": "ModalSize",
|
|
446
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~ModalSize:type"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"kind": "Content",
|
|
450
|
+
"text": ";"
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
"isReadonly": false,
|
|
454
|
+
"isOptional": true,
|
|
455
|
+
"releaseTag": "Public",
|
|
456
|
+
"name": "size",
|
|
457
|
+
"propertyTypeTokenRange": {
|
|
458
|
+
"startIndex": 1,
|
|
459
|
+
"endIndex": 2
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
],
|
|
463
|
+
"extendsTokenRanges": []
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"kind": "Interface",
|
|
467
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalService:interface",
|
|
468
|
+
"docComment": "",
|
|
469
|
+
"excerptTokens": [
|
|
470
|
+
{
|
|
471
|
+
"kind": "Content",
|
|
472
|
+
"text": "export interface ModalService "
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service.d.ts",
|
|
476
|
+
"releaseTag": "Public",
|
|
477
|
+
"name": "ModalService",
|
|
478
|
+
"preserveMemberOrder": false,
|
|
479
|
+
"members": [
|
|
480
|
+
{
|
|
481
|
+
"kind": "MethodSignature",
|
|
482
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalService#open:member(1)",
|
|
483
|
+
"docComment": "",
|
|
484
|
+
"excerptTokens": [
|
|
485
|
+
{
|
|
486
|
+
"kind": "Content",
|
|
487
|
+
"text": "open<C, P>(options: "
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"kind": "Reference",
|
|
491
|
+
"text": "ModalOptions",
|
|
492
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions:interface"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"kind": "Content",
|
|
496
|
+
"text": "<C, P>"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"kind": "Content",
|
|
500
|
+
"text": "): "
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"kind": "Reference",
|
|
504
|
+
"text": "Promise",
|
|
505
|
+
"canonicalReference": "!Promise:interface"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"kind": "Content",
|
|
509
|
+
"text": "<void>"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"kind": "Content",
|
|
513
|
+
"text": ";"
|
|
514
|
+
}
|
|
515
|
+
],
|
|
516
|
+
"isOptional": false,
|
|
517
|
+
"returnTypeTokenRange": {
|
|
518
|
+
"startIndex": 4,
|
|
519
|
+
"endIndex": 6
|
|
520
|
+
},
|
|
521
|
+
"releaseTag": "Public",
|
|
522
|
+
"overloadIndex": 1,
|
|
523
|
+
"parameters": [
|
|
524
|
+
{
|
|
525
|
+
"parameterName": "options",
|
|
526
|
+
"parameterTypeTokenRange": {
|
|
527
|
+
"startIndex": 1,
|
|
528
|
+
"endIndex": 3
|
|
529
|
+
},
|
|
530
|
+
"isOptional": false
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"typeParameters": [
|
|
534
|
+
{
|
|
535
|
+
"typeParameterName": "C",
|
|
536
|
+
"constraintTokenRange": {
|
|
537
|
+
"startIndex": 0,
|
|
538
|
+
"endIndex": 0
|
|
539
|
+
},
|
|
540
|
+
"defaultTypeTokenRange": {
|
|
541
|
+
"startIndex": 0,
|
|
542
|
+
"endIndex": 0
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"typeParameterName": "P",
|
|
547
|
+
"constraintTokenRange": {
|
|
548
|
+
"startIndex": 0,
|
|
549
|
+
"endIndex": 0
|
|
550
|
+
},
|
|
551
|
+
"defaultTypeTokenRange": {
|
|
552
|
+
"startIndex": 0,
|
|
553
|
+
"endIndex": 0
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"name": "open"
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
"extendsTokenRanges": []
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"kind": "Function",
|
|
564
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalServiceProvider:function(1)",
|
|
565
|
+
"docComment": "",
|
|
566
|
+
"excerptTokens": [
|
|
567
|
+
{
|
|
568
|
+
"kind": "Content",
|
|
569
|
+
"text": "export declare function ModalServiceProvider({ children, modalService, }: "
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"kind": "Reference",
|
|
573
|
+
"text": "ModalServiceProviderProps",
|
|
574
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~ModalServiceProviderProps:interface"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"kind": "Content",
|
|
578
|
+
"text": "): "
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"kind": "Content",
|
|
582
|
+
"text": "import(\"react/jsx-runtime\")."
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"kind": "Reference",
|
|
586
|
+
"text": "JSX.Element",
|
|
587
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"kind": "Content",
|
|
591
|
+
"text": ";"
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service-provider.d.ts",
|
|
595
|
+
"returnTypeTokenRange": {
|
|
596
|
+
"startIndex": 3,
|
|
597
|
+
"endIndex": 5
|
|
598
|
+
},
|
|
599
|
+
"releaseTag": "Public",
|
|
600
|
+
"overloadIndex": 1,
|
|
601
|
+
"parameters": [
|
|
602
|
+
{
|
|
603
|
+
"parameterName": "{ children, modalService, }",
|
|
604
|
+
"parameterTypeTokenRange": {
|
|
605
|
+
"startIndex": 1,
|
|
606
|
+
"endIndex": 2
|
|
607
|
+
},
|
|
608
|
+
"isOptional": false
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"name": "ModalServiceProvider"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"kind": "Function",
|
|
615
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!useModalService:function(1)",
|
|
616
|
+
"docComment": "",
|
|
617
|
+
"excerptTokens": [
|
|
618
|
+
{
|
|
619
|
+
"kind": "Content",
|
|
620
|
+
"text": "useModalService: () => "
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"kind": "Reference",
|
|
624
|
+
"text": "ModalService",
|
|
625
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalService:interface"
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service-provider.d.ts",
|
|
629
|
+
"returnTypeTokenRange": {
|
|
630
|
+
"startIndex": 1,
|
|
631
|
+
"endIndex": 2
|
|
632
|
+
},
|
|
633
|
+
"releaseTag": "Public",
|
|
634
|
+
"overloadIndex": 1,
|
|
635
|
+
"parameters": [],
|
|
636
|
+
"name": "useModalService"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"kind": "Class",
|
|
640
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!WindowModalService:class",
|
|
641
|
+
"docComment": "",
|
|
642
|
+
"excerptTokens": [
|
|
643
|
+
{
|
|
644
|
+
"kind": "Content",
|
|
645
|
+
"text": "export declare class WindowModalService implements "
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"kind": "Reference",
|
|
649
|
+
"text": "ModalService",
|
|
650
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalService:interface"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"kind": "Content",
|
|
654
|
+
"text": " "
|
|
655
|
+
}
|
|
656
|
+
],
|
|
657
|
+
"fileUrlPath": "../../shared/frontend-ui-modal-service/src/lib/modal-service.d.ts",
|
|
658
|
+
"releaseTag": "Public",
|
|
659
|
+
"isAbstract": false,
|
|
660
|
+
"name": "WindowModalService",
|
|
661
|
+
"preserveMemberOrder": false,
|
|
662
|
+
"members": [
|
|
663
|
+
{
|
|
664
|
+
"kind": "Constructor",
|
|
665
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!WindowModalService:constructor(1)",
|
|
666
|
+
"docComment": "/**\n * Constructs a new instance of the `WindowModalService` class\n */\n",
|
|
667
|
+
"excerptTokens": [
|
|
668
|
+
{
|
|
669
|
+
"kind": "Content",
|
|
670
|
+
"text": "constructor(defaultUrl: "
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"kind": "Content",
|
|
674
|
+
"text": "string"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"kind": "Content",
|
|
678
|
+
"text": ", resourceMap?: "
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"kind": "Reference",
|
|
682
|
+
"text": "Record",
|
|
683
|
+
"canonicalReference": "!Record:type"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"kind": "Content",
|
|
687
|
+
"text": "<string, string>"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"kind": "Content",
|
|
691
|
+
"text": ");"
|
|
692
|
+
}
|
|
693
|
+
],
|
|
694
|
+
"releaseTag": "Public",
|
|
695
|
+
"isProtected": false,
|
|
696
|
+
"overloadIndex": 1,
|
|
697
|
+
"parameters": [
|
|
698
|
+
{
|
|
699
|
+
"parameterName": "defaultUrl",
|
|
700
|
+
"parameterTypeTokenRange": {
|
|
701
|
+
"startIndex": 1,
|
|
702
|
+
"endIndex": 2
|
|
703
|
+
},
|
|
704
|
+
"isOptional": false
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"parameterName": "resourceMap",
|
|
708
|
+
"parameterTypeTokenRange": {
|
|
709
|
+
"startIndex": 3,
|
|
710
|
+
"endIndex": 5
|
|
711
|
+
},
|
|
712
|
+
"isOptional": true
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"kind": "Method",
|
|
718
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!WindowModalService#open:member(1)",
|
|
719
|
+
"docComment": "",
|
|
720
|
+
"excerptTokens": [
|
|
721
|
+
{
|
|
722
|
+
"kind": "Content",
|
|
723
|
+
"text": "open<C, P>(options: "
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"kind": "Reference",
|
|
727
|
+
"text": "ModalOptions",
|
|
728
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!ModalOptions:interface"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"kind": "Content",
|
|
732
|
+
"text": "<C, P>"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"kind": "Content",
|
|
736
|
+
"text": "): "
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"kind": "Reference",
|
|
740
|
+
"text": "Promise",
|
|
741
|
+
"canonicalReference": "!Promise:interface"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"kind": "Content",
|
|
745
|
+
"text": "<void>"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"kind": "Content",
|
|
749
|
+
"text": ";"
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
"typeParameters": [
|
|
753
|
+
{
|
|
754
|
+
"typeParameterName": "C",
|
|
755
|
+
"constraintTokenRange": {
|
|
756
|
+
"startIndex": 0,
|
|
757
|
+
"endIndex": 0
|
|
758
|
+
},
|
|
759
|
+
"defaultTypeTokenRange": {
|
|
760
|
+
"startIndex": 0,
|
|
761
|
+
"endIndex": 0
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"typeParameterName": "P",
|
|
766
|
+
"constraintTokenRange": {
|
|
767
|
+
"startIndex": 0,
|
|
768
|
+
"endIndex": 0
|
|
769
|
+
},
|
|
770
|
+
"defaultTypeTokenRange": {
|
|
771
|
+
"startIndex": 0,
|
|
772
|
+
"endIndex": 0
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
"isStatic": false,
|
|
777
|
+
"returnTypeTokenRange": {
|
|
778
|
+
"startIndex": 4,
|
|
779
|
+
"endIndex": 6
|
|
780
|
+
},
|
|
781
|
+
"releaseTag": "Public",
|
|
782
|
+
"isProtected": false,
|
|
783
|
+
"overloadIndex": 1,
|
|
784
|
+
"parameters": [
|
|
785
|
+
{
|
|
786
|
+
"parameterName": "options",
|
|
787
|
+
"parameterTypeTokenRange": {
|
|
788
|
+
"startIndex": 1,
|
|
789
|
+
"endIndex": 3
|
|
790
|
+
},
|
|
791
|
+
"isOptional": false
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"isOptional": false,
|
|
795
|
+
"isAbstract": false,
|
|
796
|
+
"name": "open"
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
"implementsTokenRanges": [
|
|
800
|
+
{
|
|
801
|
+
"startIndex": 1,
|
|
802
|
+
"endIndex": 2
|
|
803
|
+
}
|
|
804
|
+
]
|
|
805
|
+
}
|
|
806
|
+
]
|
|
807
|
+
}
|
|
808
|
+
]
|
|
809
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
## API Report File for "@valiantys/atlassian-app-frontend"
|
|
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 { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
8
|
+
import { ReactNode } from 'react';
|
|
9
|
+
|
|
10
|
+
// @public (undocumented)
|
|
11
|
+
export interface ClosingMessage<P> {
|
|
12
|
+
// (undocumented)
|
|
13
|
+
closing: true;
|
|
14
|
+
// (undocumented)
|
|
15
|
+
payload?: P;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// @public (undocumented)
|
|
19
|
+
export interface ModalOptions<C, P> {
|
|
20
|
+
// (undocumented)
|
|
21
|
+
closeOnEscape?: boolean;
|
|
22
|
+
// (undocumented)
|
|
23
|
+
closeOnOverlayClick?: boolean;
|
|
24
|
+
// (undocumented)
|
|
25
|
+
context?: C;
|
|
26
|
+
// (undocumented)
|
|
27
|
+
onClose?: (payload?: P) => any;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
resource?: string | null;
|
|
30
|
+
// Warning: (ae-forgotten-export) The symbol "ModalSize" needs to be exported by the entry point ui-modal-service.d.ts
|
|
31
|
+
//
|
|
32
|
+
// (undocumented)
|
|
33
|
+
size?: ModalSize;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// @public (undocumented)
|
|
37
|
+
export interface ModalService {
|
|
38
|
+
// (undocumented)
|
|
39
|
+
open<C, P>(options: ModalOptions<C, P>): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Warning: (ae-forgotten-export) The symbol "ModalServiceProviderProps" needs to be exported by the entry point ui-modal-service.d.ts
|
|
43
|
+
//
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
export function ModalServiceProvider({ children, modalService, }: ModalServiceProviderProps): JSX_2.Element;
|
|
46
|
+
|
|
47
|
+
// @public (undocumented)
|
|
48
|
+
export const useModalService: () => ModalService;
|
|
49
|
+
|
|
50
|
+
// @public (undocumented)
|
|
51
|
+
export class WindowModalService implements ModalService {
|
|
52
|
+
constructor(defaultUrl: string, resourceMap?: Record<string, string>);
|
|
53
|
+
// (undocumented)
|
|
54
|
+
open<C, P>(options: ModalOptions<C, P>): Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// (No @packageDocumentation comment for this package)
|
|
58
|
+
|
|
59
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.cjs.js"),e=require("../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js");exports.WindowModalService=r.WindowModalService;exports.ModalServiceProvider=e.ModalServiceProvider;exports.useModalService=e.useModalService;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare interface ClosingMessage<P> {
|
|
5
|
+
closing: true;
|
|
6
|
+
payload?: P;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare interface ModalOptions<C, P> {
|
|
10
|
+
resource?: string | null;
|
|
11
|
+
onClose?: (payload?: P) => any;
|
|
12
|
+
size?: ModalSize;
|
|
13
|
+
context?: C;
|
|
14
|
+
closeOnEscape?: boolean;
|
|
15
|
+
closeOnOverlayClick?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare interface ModalService {
|
|
19
|
+
open<C, P>(options: ModalOptions<C, P>): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare function ModalServiceProvider({ children, modalService, }: ModalServiceProviderProps): JSX_2.Element;
|
|
23
|
+
|
|
24
|
+
declare interface ModalServiceProviderProps {
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
modalService: ModalService;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare type ModalSize = 'small' | 'medium' | 'large' | 'xlarge' | 'max';
|
|
30
|
+
|
|
31
|
+
export declare const useModalService: () => ModalService;
|
|
32
|
+
|
|
33
|
+
export declare class WindowModalService implements ModalService {
|
|
34
|
+
private readonly defaultUrl;
|
|
35
|
+
private readonly resourceMap;
|
|
36
|
+
constructor(defaultUrl: string, resourceMap?: Record<string, string>);
|
|
37
|
+
open<C, P>(options: ModalOptions<C, P>): Promise<void>;
|
|
38
|
+
private features;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { }
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WindowModalService as r } from "../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.es.js";
|
|
2
|
+
import { ModalServiceProvider as i, useModalService as v } from "../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
|
|
3
|
+
export {
|
|
4
|
+
i as ModalServiceProvider,
|
|
5
|
+
r as WindowModalService,
|
|
6
|
+
v as useModalService
|
|
7
|
+
};
|
|
@@ -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
|
+
}
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|