@valiantys/atlassian-app 3.2.0-alpha-12 → 3.2.0-alpha-13
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/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js +1 -1
- package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js +12 -18
- 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 +4 -5
- 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 +4 -5
- package/atlassian/shared/frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit/index.cjs.js +1 -0
- package/atlassian/shared/{frontend-ui-app-flags → frontend-ui-app-flags-atlaskit}/src/lib/app-flags-provider-atlaskit/index.es.js +1 -1
- package/package.json +6 -1
- package/ui-app-flags/atlassian-app-ui-app-flags.api.json +0 -59
- package/ui-app-flags/atlassian-app.api.md +0 -7
- package/ui-app-flags/index.cjs.js +1 -1
- package/ui-app-flags/index.d.ts +0 -6
- package/ui-app-flags/index.es.js +4 -6
- package/ui-app-flags-atlaskit/atlassian-app-ui-app-flags-atlaskit.api.json +242 -0
- package/ui-app-flags-atlaskit/atlassian-app.api.md +17 -0
- package/ui-app-flags-atlaskit/index.cjs.js +1 -0
- package/ui-app-flags-atlaskit/index.d.ts +8 -0
- package/ui-app-flags-atlaskit/index.es.js +4 -0
- package/ui-app-flags-atlaskit/tsdoc-metadata.json +11 -0
- package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js +0 -1
package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("@forge/bridge"),p=require("react"),u=require("../../../../../../shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");function d({children:r}){const[e,s]=p.useReducer(o,{});return t.jsx(u.AppFlagsDispatchContext.Provider,{value:s,children:r})}function o(r,e){var s;switch(e.type){case"add":return e.props?{...r,[e.props.id]:i.showFlag(e.props)}:(console.error("invalid flag action: ",JSON.stringify(e)),r);case"remove":return(s=r[e.id])==null||s.close(),{...r,[e.id]:void 0};default:throw Error("Unknown action: "+e.type)}}exports.AppFlagsProviderForge=d;exports.flagsReducer=o;
|
package/atlassian/forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js
CHANGED
|
@@ -1,32 +1,26 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { showFlag as t } from "@forge/bridge";
|
|
3
|
-
import { useReducer as
|
|
4
|
-
import { AppFlagsDispatchContext as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "@atlaskit/icon/glyph/info";
|
|
9
|
-
import "@atlaskit/icon/glyph/warning";
|
|
10
|
-
import "@atlaskit/tokens";
|
|
11
|
-
function w({ children: o }) {
|
|
12
|
-
const [r, e] = i(m, {});
|
|
13
|
-
return /* @__PURE__ */ p(s.Provider, { value: e, children: o });
|
|
3
|
+
import { useReducer as s } from "react";
|
|
4
|
+
import { AppFlagsDispatchContext as i } from "../../../../../../shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js";
|
|
5
|
+
function l({ children: e }) {
|
|
6
|
+
const [r, o] = s(d, {});
|
|
7
|
+
return /* @__PURE__ */ p(i.Provider, { value: o, children: e });
|
|
14
8
|
}
|
|
15
|
-
function
|
|
16
|
-
var
|
|
9
|
+
function d(e, r) {
|
|
10
|
+
var o;
|
|
17
11
|
switch (r.type) {
|
|
18
12
|
case "add":
|
|
19
13
|
return r.props ? {
|
|
20
|
-
...
|
|
14
|
+
...e,
|
|
21
15
|
[r.props.id]: t(r.props)
|
|
22
|
-
} : (console.error("invalid flag action: ", JSON.stringify(r)),
|
|
16
|
+
} : (console.error("invalid flag action: ", JSON.stringify(r)), e);
|
|
23
17
|
case "remove":
|
|
24
|
-
return (
|
|
18
|
+
return (o = e[r.id]) == null || o.close(), { ...e, [r.id]: void 0 };
|
|
25
19
|
default:
|
|
26
20
|
throw Error("Unknown action: " + r.type);
|
|
27
21
|
}
|
|
28
22
|
}
|
|
29
23
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
l as AppFlagsProviderForge,
|
|
25
|
+
d as flagsReducer
|
|
32
26
|
};
|
|
@@ -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");
|
|
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");const q=require("../../../../../frontend-ui-app-flags-atlaskit/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;
|
|
@@ -4,8 +4,7 @@ import { createClientSideForgeProductFetchService as t } from "../../../../../..
|
|
|
4
4
|
import { AppFlagsProviderForge as a } from "../../../../../../forge/shared/frontend-ui-app-flags/src/lib/app-flags-provider-forge/index.es.js";
|
|
5
5
|
import { FeatureChosenWorkspaceCheck as s } from "../../../../../frontend-feature-chosen-workspace-check/src/lib/feature-chosen-workspace-check/index.es.js";
|
|
6
6
|
import "../../../../../frontend-feature-chosen-workspace-check/src/lib/jira-workspace-provider/index.es.js";
|
|
7
|
-
import "../../../../../frontend-ui-app-flags/src/lib/app-flags-
|
|
8
|
-
import { AppFlagsProviderAtlasKit as u } from "../../../../../frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js";
|
|
7
|
+
import { AppFlagsProviderAtlasKit as u } from "../../../../../frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit/index.es.js";
|
|
9
8
|
import { RequestBitbucketProvider as f } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
|
|
10
9
|
import { RequestConfluenceProvider as v } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
|
|
11
10
|
import { RequestJiraProvider as h } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
|
|
@@ -25,7 +24,7 @@ const R = t("jira"), S = t("bitbucket"), g = t("confluence"), b = {
|
|
|
25
24
|
return new d(o).open();
|
|
26
25
|
}
|
|
27
26
|
};
|
|
28
|
-
function
|
|
27
|
+
function Q({
|
|
29
28
|
appName: o,
|
|
30
29
|
doCheckWorkspace: i,
|
|
31
30
|
invokeRemoteImpl: m,
|
|
@@ -54,6 +53,6 @@ function T({
|
|
|
54
53
|
), n ? /* @__PURE__ */ e(u, { children: r }) : /* @__PURE__ */ e(a, { children: r });
|
|
55
54
|
}
|
|
56
55
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
Q as AtlassianAppForge,
|
|
57
|
+
Q as default
|
|
59
58
|
};
|
|
@@ -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");
|
|
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");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"),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;
|
|
@@ -11,8 +11,7 @@ import "@atlaskit/heading";
|
|
|
11
11
|
import "@atlaskit/primitives";
|
|
12
12
|
import "@atlaskit/section-message";
|
|
13
13
|
import "@atlaskit/spinner";
|
|
14
|
-
import "../../../../../frontend-ui-app-flags/src/lib/app-flags-
|
|
15
|
-
import { AppFlagsProviderAtlasKit as b } from "../../../../../frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js";
|
|
14
|
+
import { AppFlagsProviderAtlasKit as b } from "../../../../../frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit/index.es.js";
|
|
16
15
|
import { RequestBitbucketProvider as j } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-bitbucket/index.es.js";
|
|
17
16
|
import { RequestConfluenceProvider as z } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-confluence/index.es.js";
|
|
18
17
|
import { RequestJiraProvider as K } from "../../../../../frontend-ui-atlassian-product-fetch/src/lib/request-jira/index.es.js";
|
|
@@ -33,7 +32,7 @@ import { MockViewContext as V } from "../../../../../frontend-ui-view-context/sr
|
|
|
33
32
|
const N = O(
|
|
34
33
|
() => import("../../../../../frontend-feature-chosen-resource-check/src/index/index.es.js")
|
|
35
34
|
);
|
|
36
|
-
function
|
|
35
|
+
function Ee({
|
|
37
36
|
initialMockViewContext: i,
|
|
38
37
|
backendUrl: c,
|
|
39
38
|
remoteUrl: l,
|
|
@@ -163,6 +162,6 @@ function ee({
|
|
|
163
162
|
)), p && (e = /* @__PURE__ */ r(N, { checkResource: q, children: e })), /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(b, { children: e }) });
|
|
164
163
|
}
|
|
165
164
|
export {
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
Ee as AtlassianAppStandalone,
|
|
166
|
+
Ee as default
|
|
168
167
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("@atlaskit/flag"),a=require("@atlaskit/icon/glyph/check-circle"),l=require("@atlaskit/icon/glyph/error"),p=require("@atlaskit/icon/glyph/info"),d=require("@atlaskit/icon/glyph/warning"),o=require("@atlaskit/tokens"),m=require("react"),y=require("../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js");function g({children:s}){const[r,n]=m.useReducer(h,[]);function t(e){n({type:"remove",id:e})}function u(e){switch(e){case"info":return i.jsx(p,{label:"Info",primaryColor:o.token("color.icon.information"),size:"large"});case"warning":return i.jsx(d,{label:"Warning",primaryColor:o.token("color.icon.warning"),size:"large"});case"error":return i.jsx(l,{label:"Error",primaryColor:o.token("color.icon.danger"),size:"large"});case"success":return i.jsx(a,{primaryColor:o.token("color.icon.success"),label:"Success",size:"large"})}}return i.jsxs(y.AppFlagsDispatchContext.Provider,{value:n,children:[s,i.jsx(c.FlagGroup,{onDismissed:t,children:r.map(e=>e.isAutoDismiss?i.jsx(c.AutoDismissFlag,{id:e.id,icon:u(e.type||"success"),title:e.title},e.id):i.jsx(c,{appearance:e.appearance||"normal",icon:u(e.type||"success"),id:e.id,title:e.title,description:e.description,actions:x(e.actions)},e.id))})]})}function x(s){return s==null?void 0:s.map(r=>({...r,content:r.text}))}function h(s,r){switch(r.type){case"add":if(r.props){const n=s.filter(t=>t.id!==r.id);return n.push(r.props),n}else return console.error("invalid flag action: ",JSON.stringify(r)),s;case"remove":return s.filter(n=>n.id!==r.id);default:throw Error("Unknown action: "+r.type)}}exports.AppFlagsProviderAtlasKit=g;
|
|
@@ -6,7 +6,7 @@ import f from "@atlaskit/icon/glyph/info";
|
|
|
6
6
|
import y from "@atlaskit/icon/glyph/warning";
|
|
7
7
|
import { token as s } from "@atlaskit/tokens";
|
|
8
8
|
import { useReducer as h } from "react";
|
|
9
|
-
import { AppFlagsDispatchContext as g } from "
|
|
9
|
+
import { AppFlagsDispatchContext as g } from "../../../../frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js";
|
|
10
10
|
function E({
|
|
11
11
|
children: o
|
|
12
12
|
}) {
|
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-13",
|
|
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": {
|
|
@@ -93,6 +93,11 @@
|
|
|
93
93
|
"require": "./ui-app-flags/index.cjs.js",
|
|
94
94
|
"types": "./ui-app-flags/index.d.ts"
|
|
95
95
|
},
|
|
96
|
+
"./ui-app-flags-atlaskit": {
|
|
97
|
+
"import": "./ui-app-flags-atlaskit/index.es.js",
|
|
98
|
+
"require": "./ui-app-flags-atlaskit/index.cjs.js",
|
|
99
|
+
"types": "./ui-app-flags-atlaskit/index.d.ts"
|
|
100
|
+
},
|
|
96
101
|
"./ui-app-flags-forge": {
|
|
97
102
|
"import": "./ui-app-flags-forge/index.es.js",
|
|
98
103
|
"require": "./ui-app-flags-forge/index.cjs.js",
|
|
@@ -407,65 +407,6 @@
|
|
|
407
407
|
"endIndex": 8
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
|
-
{
|
|
411
|
-
"kind": "Function",
|
|
412
|
-
"canonicalReference": "@valiantys/atlassian-app!AppFlagsProviderAtlasKit:function(1)",
|
|
413
|
-
"docComment": "",
|
|
414
|
-
"excerptTokens": [
|
|
415
|
-
{
|
|
416
|
-
"kind": "Content",
|
|
417
|
-
"text": "export declare function AppFlagsProviderAtlasKit({ children, }: "
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
"kind": "Content",
|
|
421
|
-
"text": "{\n children: "
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
"kind": "Reference",
|
|
425
|
-
"text": "ReactNode",
|
|
426
|
-
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"kind": "Content",
|
|
430
|
-
"text": ";\n}"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"kind": "Content",
|
|
434
|
-
"text": "): "
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"kind": "Content",
|
|
438
|
-
"text": "import(\"react/jsx-runtime\")."
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"kind": "Reference",
|
|
442
|
-
"text": "JSX.Element",
|
|
443
|
-
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"kind": "Content",
|
|
447
|
-
"text": ";"
|
|
448
|
-
}
|
|
449
|
-
],
|
|
450
|
-
"fileUrlPath": "../../shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit.d.ts",
|
|
451
|
-
"returnTypeTokenRange": {
|
|
452
|
-
"startIndex": 5,
|
|
453
|
-
"endIndex": 7
|
|
454
|
-
},
|
|
455
|
-
"releaseTag": "Public",
|
|
456
|
-
"overloadIndex": 1,
|
|
457
|
-
"parameters": [
|
|
458
|
-
{
|
|
459
|
-
"parameterName": "{ children, }",
|
|
460
|
-
"parameterTypeTokenRange": {
|
|
461
|
-
"startIndex": 1,
|
|
462
|
-
"endIndex": 4
|
|
463
|
-
},
|
|
464
|
-
"isOptional": false
|
|
465
|
-
}
|
|
466
|
-
],
|
|
467
|
-
"name": "AppFlagsProviderAtlasKit"
|
|
468
|
-
},
|
|
469
410
|
{
|
|
470
411
|
"kind": "TypeAlias",
|
|
471
412
|
"canonicalReference": "@valiantys/atlassian-app!AppFlagTypes:type",
|
|
@@ -9,8 +9,6 @@ import { Dispatch } from 'react';
|
|
|
9
9
|
import { FlagAction } from '@forge/bridge/out/flag/flag';
|
|
10
10
|
import { FlagAppearance } from '@forge/bridge/out/flag/flag';
|
|
11
11
|
import { FlagOptions } from '@forge/bridge/out/flag/flag';
|
|
12
|
-
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
13
|
-
import { ReactNode } from 'react';
|
|
14
12
|
|
|
15
13
|
// @public (undocumented)
|
|
16
14
|
export type ActionsType = FlagAction[];
|
|
@@ -34,11 +32,6 @@ export type AppFlagActions = 'add' | 'remove';
|
|
|
34
32
|
// @public (undocumented)
|
|
35
33
|
export const AppFlagsDispatchContext: Context<Dispatch<AppFlagAction> | undefined>;
|
|
36
34
|
|
|
37
|
-
// @public (undocumented)
|
|
38
|
-
export function AppFlagsProviderAtlasKit({ children, }: {
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
}): JSX_2.Element;
|
|
41
|
-
|
|
42
35
|
// @public (undocumented)
|
|
43
36
|
export type AppFlagTypes = FlagOptions;
|
|
44
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js"),p=require("../atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.cjs.js")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.cjs.js"),p=require("../atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.cjs.js");exports.AppFlagsDispatchContext=s.AppFlagsDispatchContext;exports.useAppFlagsDispatch=s.useAppFlagsDispatch;exports.useAppFlagsDispatchMethods=p.useAppFlagsDispatchMethods;
|
package/ui-app-flags/index.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import { Dispatch } from 'react';
|
|
|
3
3
|
import { FlagAction } from '@forge/bridge/out/flag/flag';
|
|
4
4
|
import { FlagAppearance } from '@forge/bridge/out/flag/flag';
|
|
5
5
|
import { FlagOptions } from '@forge/bridge/out/flag/flag';
|
|
6
|
-
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
7
|
-
import { ReactNode } from 'react';
|
|
8
6
|
|
|
9
7
|
export declare type ActionsType = FlagAction[];
|
|
10
8
|
|
|
@@ -20,10 +18,6 @@ export declare type AppFlagActions = 'add' | 'remove';
|
|
|
20
18
|
|
|
21
19
|
export declare const AppFlagsDispatchContext: Context<Dispatch<AppFlagAction> | undefined>;
|
|
22
20
|
|
|
23
|
-
export declare function AppFlagsProviderAtlasKit({ children, }: {
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
}): JSX_2.Element;
|
|
26
|
-
|
|
27
21
|
export declare type AppFlagTypes = FlagOptions;
|
|
28
22
|
|
|
29
23
|
export declare function useAppFlagsDispatch(): Dispatch<AppFlagAction>;
|
package/ui-app-flags/index.es.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { AppFlagsDispatchContext as t, useAppFlagsDispatch as
|
|
2
|
-
import { useAppFlagsDispatchMethods as
|
|
3
|
-
import { AppFlagsProviderAtlasKit as i } from "../atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.es.js";
|
|
1
|
+
import { AppFlagsDispatchContext as t, useAppFlagsDispatch as a } from "../atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch/index.es.js";
|
|
2
|
+
import { useAppFlagsDispatchMethods as o } from "../atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.es.js";
|
|
4
3
|
export {
|
|
5
4
|
t as AppFlagsDispatchContext,
|
|
6
|
-
|
|
7
|
-
o as
|
|
8
|
-
e as useAppFlagsDispatchMethods
|
|
5
|
+
a as useAppFlagsDispatch,
|
|
6
|
+
o as useAppFlagsDispatchMethods
|
|
9
7
|
};
|
|
@@ -0,0 +1,242 @@
|
|
|
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!AppFlagsProviderAtlasKit:function(1)",
|
|
178
|
+
"docComment": "",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "export declare function AppFlagsProviderAtlasKit({ children, }: "
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "Reference",
|
|
186
|
+
"text": "Readonly",
|
|
187
|
+
"canonicalReference": "!Readonly:type"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "Content",
|
|
191
|
+
"text": "<{\n children: "
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"kind": "Reference",
|
|
195
|
+
"text": "ReactNode",
|
|
196
|
+
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"kind": "Content",
|
|
200
|
+
"text": ";\n}>"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "Content",
|
|
204
|
+
"text": "): "
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"kind": "Content",
|
|
208
|
+
"text": "import(\"react/jsx-runtime\")."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"kind": "Reference",
|
|
212
|
+
"text": "JSX.Element",
|
|
213
|
+
"canonicalReference": "@types/react!JSX.Element:interface"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "Content",
|
|
217
|
+
"text": ";"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"fileUrlPath": "../../shared/frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit.d.ts",
|
|
221
|
+
"returnTypeTokenRange": {
|
|
222
|
+
"startIndex": 6,
|
|
223
|
+
"endIndex": 8
|
|
224
|
+
},
|
|
225
|
+
"releaseTag": "Public",
|
|
226
|
+
"overloadIndex": 1,
|
|
227
|
+
"parameters": [
|
|
228
|
+
{
|
|
229
|
+
"parameterName": "{ children, }",
|
|
230
|
+
"parameterTypeTokenRange": {
|
|
231
|
+
"startIndex": 1,
|
|
232
|
+
"endIndex": 5
|
|
233
|
+
},
|
|
234
|
+
"isOptional": false
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"name": "AppFlagsProviderAtlasKit"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
8
|
+
import { ReactNode } from 'react';
|
|
9
|
+
|
|
10
|
+
// @public (undocumented)
|
|
11
|
+
export function AppFlagsProviderAtlasKit({ children, }: Readonly<{
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}>): JSX_2.Element;
|
|
14
|
+
|
|
15
|
+
// (No @packageDocumentation comment for this package)
|
|
16
|
+
|
|
17
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../atlassian/shared/frontend-ui-app-flags-atlaskit/src/lib/app-flags-provider-atlaskit/index.cjs.js");exports.AppFlagsProviderAtlasKit=t.AppFlagsProviderAtlasKit;
|
|
@@ -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
|
+
}
|
package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-provider-atlaskit/index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("@atlaskit/flag"),a=require("@atlaskit/icon/glyph/check-circle"),l=require("@atlaskit/icon/glyph/error"),p=require("@atlaskit/icon/glyph/info"),d=require("@atlaskit/icon/glyph/warning"),o=require("@atlaskit/tokens"),m=require("react"),y=require("../app-flags-dispatch/index.cjs.js");function g({children:s}){const[r,n]=m.useReducer(h,[]);function t(e){n({type:"remove",id:e})}function u(e){switch(e){case"info":return i.jsx(p,{label:"Info",primaryColor:o.token("color.icon.information"),size:"large"});case"warning":return i.jsx(d,{label:"Warning",primaryColor:o.token("color.icon.warning"),size:"large"});case"error":return i.jsx(l,{label:"Error",primaryColor:o.token("color.icon.danger"),size:"large"});case"success":return i.jsx(a,{primaryColor:o.token("color.icon.success"),label:"Success",size:"large"})}}return i.jsxs(y.AppFlagsDispatchContext.Provider,{value:n,children:[s,i.jsx(c.FlagGroup,{onDismissed:t,children:r.map(e=>e.isAutoDismiss?i.jsx(c.AutoDismissFlag,{id:e.id,icon:u(e.type||"success"),title:e.title},e.id):i.jsx(c,{appearance:e.appearance||"normal",icon:u(e.type||"success"),id:e.id,title:e.title,description:e.description,actions:x(e.actions)},e.id))})]})}function x(s){return s==null?void 0:s.map(r=>({...r,content:r.text}))}function h(s,r){switch(r.type){case"add":if(r.props){const n=s.filter(t=>t.id!==r.id);return n.push(r.props),n}else return console.error("invalid flag action: ",JSON.stringify(r)),s;case"remove":return s.filter(n=>n.id!==r.id);default:throw Error("Unknown action: "+r.type)}}exports.AppFlagsProviderAtlasKit=g;
|