@valiantys/atlassian-app 3.2.0-alpha-4 → 3.2.0-alpha-5
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-ui-expand-panel/src/lib/panel/index.cjs.js +1 -1
- package/atlassian/shared/frontend-ui-expand-panel/src/lib/panel/index.es.js +20 -17
- package/data-access-serverinfo/index.d.ts +1 -1
- package/frontend-app/atlassian-app.api.md +1 -1
- package/package.json +1 -1
- package/ui-async-queue-job-log/atlassian-app.api.md +1 -1
- package/ui-expand-panel/index.d.ts +6 -0
- package/valiantys-atlassian-app-3.2.0-alpha-4.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),r=require("react"),x=require("../panel-stateless/index.cjs.js"),f=({isDefaultExpanded:t=!1,lazyLoadContent:o=!1,children:a,header:c,headingSize:u,onChange:n})=>{const[s,l]=r.useState(t),[i,d]=r.useState(t||!o),S=()=>{const e=!s;l(e),e&&d(!0),n&&n(e)};return h.jsx(x,{header:c,isExpanded:s,headingSize:u,onChange:S,children:i?a:null})};module.exports=f;
|
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s } from "react";
|
|
3
|
+
import m from "../panel-stateless/index.es.js";
|
|
4
4
|
const x = ({
|
|
5
|
-
isDefaultExpanded:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
isDefaultExpanded: t = !1,
|
|
6
|
+
lazyLoadContent: a = !1,
|
|
7
|
+
children: r,
|
|
8
|
+
header: l,
|
|
9
|
+
headingSize: d,
|
|
10
|
+
onChange: n
|
|
10
11
|
}) => {
|
|
11
|
-
const [t,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
const [o, f] = s(t), [h, i] = s(
|
|
13
|
+
t || !a
|
|
14
|
+
);
|
|
15
|
+
return /* @__PURE__ */ c(
|
|
16
|
+
m,
|
|
14
17
|
{
|
|
15
|
-
header:
|
|
16
|
-
isExpanded:
|
|
17
|
-
headingSize:
|
|
18
|
+
header: l,
|
|
19
|
+
isExpanded: o,
|
|
20
|
+
headingSize: d,
|
|
18
21
|
onChange: () => {
|
|
19
|
-
const
|
|
20
|
-
|
|
22
|
+
const e = !o;
|
|
23
|
+
f(e), e && i(!0), n && n(e);
|
|
21
24
|
},
|
|
22
|
-
children:
|
|
25
|
+
children: h ? r : null
|
|
23
26
|
}
|
|
24
27
|
);
|
|
25
28
|
};
|
|
@@ -47,7 +47,7 @@ declare interface JiraServerInfo {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export declare class JiraServerInfoService {
|
|
50
|
-
private fetchSvc;
|
|
50
|
+
private readonly fetchSvc;
|
|
51
51
|
static readonly serverInfoUrl = "/rest/api/3/serverInfo";
|
|
52
52
|
constructor(fetchSvc: AtlassianProductFetchService<'jira'>);
|
|
53
53
|
getServerInfo(): Promise<JiraServerInfo>;
|
|
@@ -49,7 +49,7 @@ export const IS_STANDALONE: boolean;
|
|
|
49
49
|
|
|
50
50
|
// Warnings were encountered during analysis:
|
|
51
51
|
//
|
|
52
|
-
// /Users/chris.hardin/code/od/engineering-monorepo
|
|
52
|
+
// /Users/chris.hardin/code/od/engineering-monorepo/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app-config.d.ts:65:9 - (ae-forgotten-export) The symbol "InvokeRemoteSignature" needs to be exported by the entry point frontend-app.d.ts
|
|
53
53
|
|
|
54
54
|
// (No @packageDocumentation comment for this package)
|
|
55
55
|
|
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-5",
|
|
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": {
|
|
@@ -15,7 +15,7 @@ export function JobLogTable(props: {
|
|
|
15
15
|
|
|
16
16
|
// Warnings were encountered during analysis:
|
|
17
17
|
//
|
|
18
|
-
// /Users/chris.hardin/code/od/engineering-monorepo
|
|
18
|
+
// /Users/chris.hardin/code/od/engineering-monorepo/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table.d.ts:4:9 - (ae-forgotten-export) The symbol "JobLogEntry" needs to be exported by the entry point ui-async-queue-job-log.d.ts
|
|
19
19
|
|
|
20
20
|
// (No @packageDocumentation comment for this package)
|
|
21
21
|
|
|
@@ -26,6 +26,12 @@ declare type Props = BasePanelProps & {
|
|
|
26
26
|
/** Defines whether the panel is expanded by default. */
|
|
27
27
|
isDefaultExpanded?: boolean;
|
|
28
28
|
onChange?: (isExpanded: boolean) => void;
|
|
29
|
+
/**
|
|
30
|
+
* If true, the content of the panel will not be rendered until the panel is expanded.
|
|
31
|
+
* This is useful for cases where the content of the panel is expensive to render,
|
|
32
|
+
* and the panel is not initially expanded.
|
|
33
|
+
*/
|
|
34
|
+
lazyLoadContent?: boolean;
|
|
29
35
|
};
|
|
30
36
|
|
|
31
37
|
export { }
|
|
Binary file
|