@valiantys/atlassian-app 3.2.0-alpha-13 → 3.2.0-alpha-15
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-app-flags/src/lib/app-flags-dispatch-methods/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 n=require("react"),u=require("../app-flags-dispatch/index.cjs.js");function d(){const s=u.useAppFlagsDispatch();return n.useMemo(()=>{function i(e){s({type:"add",id:e.id,props:e})}function a(e){s({type:"remove",id:e})}function o(e,r,t,c){i({id:e,isAutoDismiss:!1,type:"error",title:r,description:t instanceof Error?t.message:typeof t=="string"?t:"Uncaught error occurred!",actions:c})}return{addFlag:i,removeFlag:a,addErrorFlag:o}},[s])}exports.useAppFlagsDispatchMethods=d;
|
package/atlassian/shared/frontend-ui-app-flags/src/lib/app-flags-dispatch-methods/index.es.js
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
|
+
import { useMemo as d } from "react";
|
|
1
2
|
import { useAppFlagsDispatch as c } from "../app-flags-dispatch/index.es.js";
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
3
|
+
function f() {
|
|
4
|
+
const i = c();
|
|
5
|
+
return d(() => {
|
|
6
|
+
function o(t) {
|
|
7
|
+
i({
|
|
8
|
+
type: "add",
|
|
9
|
+
id: t.id,
|
|
10
|
+
props: t
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function s(t) {
|
|
14
|
+
i({
|
|
15
|
+
type: "remove",
|
|
16
|
+
id: t
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function r(t, a, e, n) {
|
|
20
|
+
o({
|
|
21
|
+
id: t,
|
|
22
|
+
isAutoDismiss: !1,
|
|
23
|
+
type: "error",
|
|
24
|
+
title: a,
|
|
25
|
+
description: e instanceof Error ? e.message : typeof e == "string" ? e : "Uncaught error occurred!",
|
|
26
|
+
actions: n
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
addFlag: o,
|
|
31
|
+
removeFlag: s,
|
|
32
|
+
addErrorFlag: r
|
|
33
|
+
};
|
|
34
|
+
}, [i]);
|
|
32
35
|
}
|
|
33
36
|
export {
|
|
34
|
-
|
|
37
|
+
f as useAppFlagsDispatchMethods
|
|
35
38
|
};
|
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-15",
|
|
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": {
|
|
@@ -263,8 +263,8 @@
|
|
|
263
263
|
"@atlaskit/select": "^21.6.4",
|
|
264
264
|
"@atlaskit/spinner": "^19.0.8",
|
|
265
265
|
"@atlaskit/tokens": "^9.1.2",
|
|
266
|
-
"@forge/api": "^
|
|
267
|
-
"@forge/bridge": "^5.
|
|
266
|
+
"@forge/api": "^7.1.2",
|
|
267
|
+
"@forge/bridge": "^5.15.0",
|
|
268
268
|
"@forge/resolver": "^1.7.1",
|
|
269
269
|
"cors": "^2.8.5",
|
|
270
270
|
"express": "^4.21.2",
|