@bigbinary/neeto-commons-frontend 4.13.160 → 4.13.162-beta1
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/dist/.ready +1 -1
- package/dist/cjs/v2/react-utils/index.js +5 -0
- package/dist/cjs/v2/react-utils/index.js.map +1 -1
- package/dist/cjs/v2/react-utils/useGlobalSearch.js +68 -0
- package/dist/cjs/v2/react-utils/useGlobalSearch.js.map +1 -0
- package/dist/translations/en.json +5 -0
- package/dist/v2/react-utils/index.js +4 -0
- package/dist/v2/react-utils/index.js.map +1 -1
- package/dist/v2/react-utils/useGlobalSearch.js +63 -0
- package/dist/v2/react-utils/useGlobalSearch.js.map +1 -0
- package/package.json +7 -6
- package/src/translations/en.json +5 -0
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-09-
|
|
1
|
+
Built at 2026-09-26T19:32:16.480Z
|
|
@@ -35,6 +35,7 @@ var v2_reactUtils_QueryClientProvider_queryClient = require('./QueryClientProvid
|
|
|
35
35
|
var v2_reactUtils_AppContainer_AppContainer = require('./AppContainer/AppContainer.js');
|
|
36
36
|
var v2_reactUtils_lazyWithRetry_lazyWithRetry = require('./lazyWithRetry/lazyWithRetry.js');
|
|
37
37
|
var v2_reactUtils_mount_mount = require('./mount/mount.js');
|
|
38
|
+
var v2_reactUtils_useGlobalSearch = require('./useGlobalSearch.js');
|
|
38
39
|
require('react');
|
|
39
40
|
require('@honeybadger-io/react');
|
|
40
41
|
require('../initializers/honeybadger/index.js');
|
|
@@ -104,6 +105,9 @@ require('@bigbinary/neeto-molecules/v2/BrowserSupport');
|
|
|
104
105
|
require('@bigbinary/neeto-molecules/v2/StickyRibbonsContainer');
|
|
105
106
|
require('../utils/retryImport.js');
|
|
106
107
|
require('react-dom/client');
|
|
108
|
+
require('dayjs/plugin/isToday');
|
|
109
|
+
require('dayjs/plugin/isYesterday');
|
|
110
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
107
111
|
|
|
108
112
|
|
|
109
113
|
|
|
@@ -150,4 +154,5 @@ exports.queryClient = v2_reactUtils_QueryClientProvider_queryClient;
|
|
|
150
154
|
exports.AppContainer = v2_reactUtils_AppContainer_AppContainer;
|
|
151
155
|
exports.lazyWithRetry = v2_reactUtils_lazyWithRetry_lazyWithRetry;
|
|
152
156
|
exports.mount = v2_reactUtils_mount_mount;
|
|
157
|
+
exports.useGlobalSearch = v2_reactUtils_useGlobalSearch.default;
|
|
153
158
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var toConsumableArray = require('../../toConsumableArray-tBKHqzE3.js');
|
|
6
|
+
var defineProperty = require('../../defineProperty-COGyJ6Og.js');
|
|
7
|
+
var reactQuery = require('@tanstack/react-query');
|
|
8
|
+
var isToday = require('dayjs/plugin/isToday');
|
|
9
|
+
var isYesterday = require('dayjs/plugin/isYesterday');
|
|
10
|
+
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
11
|
+
var reactI18next = require('react-i18next');
|
|
12
|
+
require('../../unsupportedIterableToArray-BoHMiKNA.js');
|
|
13
|
+
require('../../toPropertyKey-DW-YC76_.js');
|
|
14
|
+
require('../../typeof-D4ZZ_FlZ.js');
|
|
15
|
+
|
|
16
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { defineProperty._defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
+
utils.dayjs.extend(isToday);
|
|
19
|
+
utils.dayjs.extend(isYesterday);
|
|
20
|
+
var groupMatchesByDate = function groupMatchesByDate(matches, t) {
|
|
21
|
+
if (!matches || !matches.length) return {};
|
|
22
|
+
var grouped = {};
|
|
23
|
+
matches.forEach(function (item) {
|
|
24
|
+
var groupName = "";
|
|
25
|
+
if (!item.updatedAt) {
|
|
26
|
+
groupName = t("neetoCommons.globalSearch.unknownDate", "Unknown date");
|
|
27
|
+
} else {
|
|
28
|
+
var date = utils.dayjs(item.updatedAt);
|
|
29
|
+
if (date.isToday()) {
|
|
30
|
+
groupName = t("neetoCommons.globalSearch.today", "Today");
|
|
31
|
+
} else if (date.isYesterday()) {
|
|
32
|
+
groupName = t("neetoCommons.globalSearch.yesterday", "Yesterday");
|
|
33
|
+
} else {
|
|
34
|
+
groupName = date.format("ll");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (!grouped[groupName]) {
|
|
38
|
+
grouped[groupName] = [];
|
|
39
|
+
}
|
|
40
|
+
grouped[groupName].push(item);
|
|
41
|
+
});
|
|
42
|
+
return grouped;
|
|
43
|
+
};
|
|
44
|
+
var useGlobalSearch = function useGlobalSearch(_ref) {
|
|
45
|
+
var fetcher = _ref.fetcher,
|
|
46
|
+
queryKey = _ref.queryKey,
|
|
47
|
+
params = _ref.params,
|
|
48
|
+
_ref$options = _ref.options,
|
|
49
|
+
options = _ref$options === void 0 ? {} : _ref$options;
|
|
50
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
51
|
+
t = _useTranslation.t;
|
|
52
|
+
return reactQuery.useQuery(_objectSpread({
|
|
53
|
+
queryKey: [].concat(toConsumableArray._toConsumableArray(queryKey), [params]),
|
|
54
|
+
placeholderData: {
|
|
55
|
+
matches: []
|
|
56
|
+
},
|
|
57
|
+
queryFn: function queryFn() {
|
|
58
|
+
return fetcher(params);
|
|
59
|
+
},
|
|
60
|
+
select: function select(data) {
|
|
61
|
+
return groupMatchesByDate((data === null || data === void 0 ? void 0 : data.matches) || [], t);
|
|
62
|
+
}
|
|
63
|
+
}, options));
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
exports.default = useGlobalSearch;
|
|
67
|
+
exports.useGlobalSearch = useGlobalSearch;
|
|
68
|
+
//# sourceMappingURL=useGlobalSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalSearch.js","sources":["../../../../src/v2/react-utils/useGlobalSearch.js"],"sourcesContent":["import { useQuery } from \"@tanstack/react-query\";\nimport isToday from \"dayjs/plugin/isToday\";\nimport isYesterday from \"dayjs/plugin/isYesterday\";\nimport { dayjs } from \"neetocommons/utils\";\nimport { useTranslation } from \"react-i18next\";\n\ndayjs.extend(isToday);\ndayjs.extend(isYesterday);\n\nconst groupMatchesByDate = (matches, t) => {\n if (!matches || !matches.length) return {};\n\n const grouped = {};\n\n matches.forEach(item => {\n let groupName = \"\";\n if (!item.updatedAt) {\n groupName = t(\"neetoCommons.globalSearch.unknownDate\", \"Unknown date\");\n } else {\n const date = dayjs(item.updatedAt);\n if (date.isToday()) {\n groupName = t(\"neetoCommons.globalSearch.today\", \"Today\");\n } else if (date.isYesterday()) {\n groupName = t(\"neetoCommons.globalSearch.yesterday\", \"Yesterday\");\n } else {\n groupName = date.format(\"ll\");\n }\n }\n\n if (!grouped[groupName]) {\n grouped[groupName] = [];\n }\n grouped[groupName].push(item);\n });\n\n return grouped;\n};\n\nexport const useGlobalSearch = ({\n fetcher,\n queryKey,\n params,\n options = {},\n}) => {\n const { t } = useTranslation();\n\n return useQuery({\n queryKey: [...queryKey, params],\n placeholderData: { matches: [] },\n queryFn: () => fetcher(params),\n select: data => groupMatchesByDate(data?.matches || [], t),\n ...options,\n });\n};\n\nexport default useGlobalSearch;\n"],"names":["dayjs","extend","isToday","isYesterday","groupMatchesByDate","matches","t","length","grouped","forEach","item","groupName","updatedAt","date","format","push","useGlobalSearch","_ref","fetcher","queryKey","params","_ref$options","options","_useTranslation","useTranslation","useQuery","_objectSpread","concat","_toConsumableArray","placeholderData","queryFn","select","data"],"mappings":";;;;;;;;;;;;;;;;;AAMAA,WAAK,CAACC,MAAM,CAACC,OAAO,CAAC;AACrBF,WAAK,CAACC,MAAM,CAACE,WAAW,CAAC;AAEzB,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,OAAO,EAAEC,CAAC,EAAK;EACzC,IAAI,CAACD,OAAO,IAAI,CAACA,OAAO,CAACE,MAAM,EAAE,OAAO,EAAE;EAE1C,IAAMC,OAAO,GAAG,EAAE;AAElBH,EAAAA,OAAO,CAACI,OAAO,CAAC,UAAAC,IAAI,EAAI;IACtB,IAAIC,SAAS,GAAG,EAAE;AAClB,IAAA,IAAI,CAACD,IAAI,CAACE,SAAS,EAAE;AACnBD,MAAAA,SAAS,GAAGL,CAAC,CAAC,uCAAuC,EAAE,cAAc,CAAC;AACxE,IAAA,CAAC,MAAM;AACL,MAAA,IAAMO,IAAI,GAAGb,WAAK,CAACU,IAAI,CAACE,SAAS,CAAC;AAClC,MAAA,IAAIC,IAAI,CAACX,OAAO,EAAE,EAAE;AAClBS,QAAAA,SAAS,GAAGL,CAAC,CAAC,iCAAiC,EAAE,OAAO,CAAC;AAC3D,MAAA,CAAC,MAAM,IAAIO,IAAI,CAACV,WA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B,IAAI,aAAJA,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJA,IAAI,CAAE3B,OAAO,KAAI,EAAE,EAAEC,CAAC,CAAC;AAAA,IAAA;GAAA,EACvDgB,OAAO,CACX,CAAC;AACJ;;;;;"}
|
|
@@ -104,6 +104,11 @@
|
|
|
104
104
|
"mustNotContainSpecialCharactersExceptHyphen": "{{what}} must not contain any special characters, except '-'",
|
|
105
105
|
"mustNotStartOrEndWithSpecialCharacters": "{{what}} must not start or end with special characters."
|
|
106
106
|
},
|
|
107
|
+
"globalSearch": {
|
|
108
|
+
"unknownDate": "Unknown date",
|
|
109
|
+
"today": "Today",
|
|
110
|
+
"yesterday": "Yesterday"
|
|
111
|
+
},
|
|
107
112
|
"copyToClipboard": {
|
|
108
113
|
"failed": "Failed to copy to clipboard"
|
|
109
114
|
}
|
|
@@ -33,6 +33,7 @@ export { default as queryClient } from './QueryClientProvider/queryClient.js';
|
|
|
33
33
|
export { default as AppContainer } from './AppContainer/AppContainer.js';
|
|
34
34
|
export { default as lazyWithRetry } from './lazyWithRetry/lazyWithRetry.js';
|
|
35
35
|
export { default as mount } from './mount/mount.js';
|
|
36
|
+
export { default as useGlobalSearch } from './useGlobalSearch.js';
|
|
36
37
|
import 'react';
|
|
37
38
|
import '@honeybadger-io/react';
|
|
38
39
|
import '../initializers/honeybadger/index.js';
|
|
@@ -102,4 +103,7 @@ import '@bigbinary/neeto-molecules/v2/BrowserSupport';
|
|
|
102
103
|
import '@bigbinary/neeto-molecules/v2/StickyRibbonsContainer';
|
|
103
104
|
import '../utils/retryImport.js';
|
|
104
105
|
import 'react-dom/client';
|
|
106
|
+
import 'dayjs/plugin/isToday';
|
|
107
|
+
import 'dayjs/plugin/isYesterday';
|
|
108
|
+
import '@bigbinary/neeto-commons-frontend/utils';
|
|
105
109
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { _ as _toConsumableArray } from '../../toConsumableArray-B7CFjjkW.js';
|
|
2
|
+
import { _ as _defineProperty } from '../../defineProperty-Dcer7TUY.js';
|
|
3
|
+
import { useQuery } from '@tanstack/react-query';
|
|
4
|
+
import isToday from 'dayjs/plugin/isToday';
|
|
5
|
+
import isYesterday from 'dayjs/plugin/isYesterday';
|
|
6
|
+
import { dayjs } from '@bigbinary/neeto-commons-frontend/utils';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
|
|
9
|
+
import '../../toPropertyKey-BAXkSB3z.js';
|
|
10
|
+
import '../../typeof-D-UKOauR.js';
|
|
11
|
+
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
dayjs.extend(isToday);
|
|
15
|
+
dayjs.extend(isYesterday);
|
|
16
|
+
var groupMatchesByDate = function groupMatchesByDate(matches, t) {
|
|
17
|
+
if (!matches || !matches.length) return {};
|
|
18
|
+
var grouped = {};
|
|
19
|
+
matches.forEach(function (item) {
|
|
20
|
+
var groupName = "";
|
|
21
|
+
if (!item.updatedAt) {
|
|
22
|
+
groupName = t("neetoCommons.globalSearch.unknownDate", "Unknown date");
|
|
23
|
+
} else {
|
|
24
|
+
var date = dayjs(item.updatedAt);
|
|
25
|
+
if (date.isToday()) {
|
|
26
|
+
groupName = t("neetoCommons.globalSearch.today", "Today");
|
|
27
|
+
} else if (date.isYesterday()) {
|
|
28
|
+
groupName = t("neetoCommons.globalSearch.yesterday", "Yesterday");
|
|
29
|
+
} else {
|
|
30
|
+
groupName = date.format("ll");
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (!grouped[groupName]) {
|
|
34
|
+
grouped[groupName] = [];
|
|
35
|
+
}
|
|
36
|
+
grouped[groupName].push(item);
|
|
37
|
+
});
|
|
38
|
+
return grouped;
|
|
39
|
+
};
|
|
40
|
+
var useGlobalSearch = function useGlobalSearch(_ref) {
|
|
41
|
+
var fetcher = _ref.fetcher,
|
|
42
|
+
queryKey = _ref.queryKey,
|
|
43
|
+
params = _ref.params,
|
|
44
|
+
_ref$options = _ref.options,
|
|
45
|
+
options = _ref$options === void 0 ? {} : _ref$options;
|
|
46
|
+
var _useTranslation = useTranslation(),
|
|
47
|
+
t = _useTranslation.t;
|
|
48
|
+
return useQuery(_objectSpread({
|
|
49
|
+
queryKey: [].concat(_toConsumableArray(queryKey), [params]),
|
|
50
|
+
placeholderData: {
|
|
51
|
+
matches: []
|
|
52
|
+
},
|
|
53
|
+
queryFn: function queryFn() {
|
|
54
|
+
return fetcher(params);
|
|
55
|
+
},
|
|
56
|
+
select: function select(data) {
|
|
57
|
+
return groupMatchesByDate((data === null || data === void 0 ? void 0 : data.matches) || [], t);
|
|
58
|
+
}
|
|
59
|
+
}, options));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { useGlobalSearch as default, useGlobalSearch };
|
|
63
|
+
//# sourceMappingURL=useGlobalSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalSearch.js","sources":["../../../src/v2/react-utils/useGlobalSearch.js"],"sourcesContent":["import { useQuery } from \"@tanstack/react-query\";\nimport isToday from \"dayjs/plugin/isToday\";\nimport isYesterday from \"dayjs/plugin/isYesterday\";\nimport { dayjs } from \"neetocommons/utils\";\nimport { useTranslation } from \"react-i18next\";\n\ndayjs.extend(isToday);\ndayjs.extend(isYesterday);\n\nconst groupMatchesByDate = (matches, t) => {\n if (!matches || !matches.length) return {};\n\n const grouped = {};\n\n matches.forEach(item => {\n let groupName = \"\";\n if (!item.updatedAt) {\n groupName = t(\"neetoCommons.globalSearch.unknownDate\", \"Unknown date\");\n } else {\n const date = dayjs(item.updatedAt);\n if (date.isToday()) {\n groupName = t(\"neetoCommons.globalSearch.today\", \"Today\");\n } else if (date.isYesterday()) {\n groupName = t(\"neetoCommons.globalSearch.yesterday\", \"Yesterday\");\n } else {\n groupName = date.format(\"ll\");\n }\n }\n\n if (!grouped[groupName]) {\n grouped[groupName] = [];\n }\n grouped[groupName].push(item);\n });\n\n return grouped;\n};\n\nexport const useGlobalSearch = ({\n fetcher,\n queryKey,\n params,\n options = {},\n}) => {\n const { t } = useTranslation();\n\n return useQuery({\n queryKey: [...queryKey, params],\n placeholderData: { matches: [] },\n queryFn: () => fetcher(params),\n select: data => groupMatchesByDate(data?.matches || [], t),\n ...options,\n });\n};\n\nexport default useGlobalSearch;\n"],"names":["dayjs","extend","isToday","isYesterday","groupMatchesByDate","matches","t","length","grouped","forEach","item","groupName","updatedAt","date","format","push","useGlobalSearch","_ref","fetcher","queryKey","params","_ref$options","options","_useTranslation","useTranslation","useQuery","_objectSpread","concat","_toConsumableArray","placeholderData","queryFn","select","data"],"mappings":";;;;;;;;;;;;;AAMAA,KAAK,CAACC,MAAM,CAACC,OAAO,CAAC;AACrBF,KAAK,CAACC,MAAM,CAACE,WAAW,CAAC;AAEzB,IAAMC,kBAAkB,GAAG,SAArBA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IAAAC,YAAA,GAAAJ,IAAA,CACNK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,YAAA;AAEZ,EAAA,IAAAE,eAAA,GAAcC,cAAc,EAAE;IAAtBlB,CAAC,GAAAiB,eAAA,CAADjB,CAAC;EAET,OAAOmB,QAAQ,CAAAC,aAAA,CAAA;IACbP,QAAQ,EAAA,EAAA,CAAAQ,MAAA,CAAAC,kBAAA,CAAMT,QAAQ,CAAA,EAAA,CAAEC,MAAM,CAAA,CAAC;AAC/BS,IAAAA,eAAe,EAAE;AAAExB,MAAAA,OAAO,EAAE;KAAI;IAChCyB,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQZ,OAAO,CAACE,MAAM,CAAC;AAAA,IAAA,CAAA;AAC9BW,IAAAA,MAAM,EAAE,SAARA,MAAMA,CAAEC,IAAI,EAAA;AAAA,MAAA,OAAI5B,kBAAkB,CAAC,CAAA4B,IAAI,aAAJA,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJA,IAAI,CAAE3B,OAAO,KAAI,EAAE,EAAEC,CAAC,CAAC;AAAA,IAAA;GAAA,EACvDgB,OAAO,CACX,CAAC;AACJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.162-beta1",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "yarn build:jsdoc && NODE_ENV=production rollup --bundleConfigAsCjs -c rollup.config.js --environment production",
|
|
14
|
-
"build:jsdoc": "node
|
|
14
|
+
"build:jsdoc": "node ./bin/jsdoc-builder.mjs",
|
|
15
15
|
"prepare": "husky install",
|
|
16
|
-
"sync_with_wheel": "
|
|
16
|
+
"sync_with_wheel": "./bin/sync_with_wheel.sh",
|
|
17
17
|
"test": "TZ=UTC jest"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"lint-staged": {
|
|
25
25
|
"**/*.{js,jsx,json,mjs}": [
|
|
26
|
-
"
|
|
26
|
+
"bin/fix-lints.sh"
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
29
|
"exports": {
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"lucide-react": "0.577.0",
|
|
212
212
|
"nock": "^14.0.11",
|
|
213
213
|
"platform": "1.3.6",
|
|
214
|
-
"postcss": "8.5.
|
|
214
|
+
"postcss": "8.5.18",
|
|
215
215
|
"postcss-import": "^15.0.0",
|
|
216
216
|
"postcss-loader": "^7.0.1",
|
|
217
217
|
"postcss-preset-env": "7.8.2",
|
|
@@ -313,7 +313,8 @@
|
|
|
313
313
|
},
|
|
314
314
|
"resolutions": {
|
|
315
315
|
"dompurify": "^3.2.4",
|
|
316
|
-
"eslint-plugin-sonarjs/minimatch": "10.2.4"
|
|
316
|
+
"eslint-plugin-sonarjs/minimatch": "10.2.4",
|
|
317
|
+
"@modyfi/vite-plugin-yaml/js-yaml": "^4.3.2"
|
|
317
318
|
},
|
|
318
319
|
"packageManager": "yarn@1.22.22"
|
|
319
320
|
}
|
package/src/translations/en.json
CHANGED
|
@@ -104,6 +104,11 @@
|
|
|
104
104
|
"mustNotContainSpecialCharactersExceptHyphen": "{{what}} must not contain any special characters, except '-'",
|
|
105
105
|
"mustNotStartOrEndWithSpecialCharacters": "{{what}} must not start or end with special characters."
|
|
106
106
|
},
|
|
107
|
+
"globalSearch": {
|
|
108
|
+
"unknownDate": "Unknown date",
|
|
109
|
+
"today": "Today",
|
|
110
|
+
"yesterday": "Yesterday"
|
|
111
|
+
},
|
|
107
112
|
"copyToClipboard": {
|
|
108
113
|
"failed": "Failed to copy to clipboard"
|
|
109
114
|
}
|