@argent/x-shared 1.67.3 → 1.67.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../schema.cjs"),u=require("./isRejectOnChainActivity.cjs");function r(e,t,l=!1){var i,n;if(e.type===o.NativeActivityTypeNative){if(l&&((i=e.meta)!=null&&i.shortTitle))return t(e.meta.shortTitle);if((n=e.meta)!=null&&n.title)return t(e.meta.title)}else{if(u.isRejectOnChainActivity(e))return t("multisig.onChainRejection");if(e.title)return e.title}return t("activities.contractInteraction")}function c(e,t){return r(e,t,!0)}exports.getAnyActivityShortTitle=c;exports.getAnyActivityTitle=r;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
1
2
|
import { AnyActivity } from '../schema';
|
|
2
|
-
export declare function getAnyActivityTitle(activity: AnyActivity, short?: boolean): string;
|
|
3
|
-
export declare function getAnyActivityShortTitle(activity: AnyActivity): string;
|
|
3
|
+
export declare function getAnyActivityTitle(activity: AnyActivity, t: TFunction, short?: boolean): string;
|
|
4
|
+
export declare function getAnyActivityShortTitle(activity: AnyActivity, t: TFunction): string;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { NativeActivityTypeNative as
|
|
2
|
-
import { isRejectOnChainActivity as
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
if (e.type ===
|
|
6
|
-
if (n && ((
|
|
7
|
-
return e.meta.shortTitle;
|
|
1
|
+
import { NativeActivityTypeNative as o } from "../schema.js";
|
|
2
|
+
import { isRejectOnChainActivity as l } from "./isRejectOnChainActivity.js";
|
|
3
|
+
function f(e, t, n = !1) {
|
|
4
|
+
var i, r;
|
|
5
|
+
if (e.type === o) {
|
|
6
|
+
if (n && ((i = e.meta) != null && i.shortTitle))
|
|
7
|
+
return t(e.meta.shortTitle);
|
|
8
8
|
if ((r = e.meta) != null && r.title)
|
|
9
|
-
return e.meta.title;
|
|
9
|
+
return t(e.meta.title);
|
|
10
10
|
} else {
|
|
11
|
-
if (
|
|
12
|
-
return "
|
|
11
|
+
if (l(e))
|
|
12
|
+
return t("multisig.onChainRejection");
|
|
13
13
|
if (e.title)
|
|
14
14
|
return e.title;
|
|
15
15
|
}
|
|
16
|
-
return "
|
|
16
|
+
return t("activities.contractInteraction");
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function s(e, t) {
|
|
19
|
+
return f(e, t, !0);
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
s as getAnyActivityShortTitle,
|
|
23
|
+
f as getAnyActivityTitle
|
|
24
24
|
};
|