@stack-spot/portal-layout 2.36.3 → 2.37.1
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/CHANGELOG.md +15 -0
- package/dist/components/NotificationCenter/NotificationPanel.js +1 -1
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js +1 -1
- package/dist/components/NotificationCenter/NotificationsPanelFooter.js.map +1 -1
- package/dist/components/NotificationCenter/dictionary.d.ts +1 -1
- package/dist/components/NotificationCenter/dictionary.d.ts.map +1 -1
- package/dist/components/NotificationCenter/dictionary.js +2 -2
- package/dist/components/NotificationCenter/dictionary.js.map +1 -1
- package/dist/components/OverlayContent.js +1 -1
- package/dist/dictionary.js +2 -2
- package/dist/dictionary.js.map +1 -1
- package/package.json +3 -3
- package/src/components/NotificationCenter/NotificationPanel.tsx +1 -1
- package/src/components/NotificationCenter/NotificationsPanelFooter.tsx +1 -1
- package/src/components/NotificationCenter/dictionary.ts +2 -2
- package/src/components/OverlayContent.tsx +1 -1
- package/src/dictionary.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.37.1](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.37.0...portal-layout@v2.37.1) (2025-11-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* semantic for accessibility ([#1766](https://github.com/stack-spot/portal-commons/issues/1766)) ([578bc95](https://github.com/stack-spot/portal-commons/commit/578bc95698f5d707f4645693df22c4da57f8684e))
|
|
9
|
+
|
|
10
|
+
## [2.37.0](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.36.3...portal-layout@v2.37.0) (2025-09-30)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* 3156 notifications ([#1491](https://github.com/stack-spot/portal-commons/issues/1491)) ([3f9f6a6](https://github.com/stack-spot/portal-commons/commit/3f9f6a6b56004893cca4e0d53afe8eccdf615005))
|
|
16
|
+
* upgrades translation lib ([#1645](https://github.com/stack-spot/portal-commons/issues/1645)) ([838a740](https://github.com/stack-spot/portal-commons/commit/838a7404c9946e8804cebab6ba33a24a0cf52a80))
|
|
17
|
+
|
|
3
18
|
## [2.36.3](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.36.2...portal-layout@v2.36.3) (2025-09-02)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -8,7 +8,7 @@ import { NotificationPanelFooter } from './NotificationsPanelFooter.js';
|
|
|
8
8
|
import { StyledBackdrop } from './styled.js';
|
|
9
9
|
export const NotificationPanel = ({ filter, onFilter, loading, error, visible, onClose, ...props }) => {
|
|
10
10
|
const controller = useNotificationController();
|
|
11
|
-
return (_jsx(StyledBackdrop, { visible: visible, onClose: onClose, persistent: true, children: _jsx(AnimatedHeight, { className: "notification-panel", visible: visible, header: _jsx(NotificationPanelHeader, { filter: filter, onChangeFilter: onFilter, onClose: onClose }), footer: _jsx(NotificationPanelFooter, { onClose: onClose }), children: _jsx(ScrollView, { direction: "vertical", style: { maxHeight: 'calc(100vh -
|
|
11
|
+
return (_jsx(StyledBackdrop, { visible: visible, onClose: onClose, persistent: true, children: _jsx(AnimatedHeight, { className: "notification-panel", visible: visible, header: _jsx(NotificationPanelHeader, { filter: filter, onChangeFilter: onFilter, onClose: onClose }), footer: _jsx(NotificationPanelFooter, { onClose: onClose }), children: _jsx(ScrollView, { direction: "vertical", style: { maxHeight: 'calc(100vh - 200px)' }, children: error ? _jsx(ErrorFeedback, { code: error.code, direction: "column" }) : _jsx(NotificationList, { ...props, compact: true, loading: loading, onCommit: id => controller.markAsCommitted(id), onClickViewNotification: () => {
|
|
12
12
|
onClose();
|
|
13
13
|
controller.config.onClickViewNotification?.();
|
|
14
14
|
}, onClickAction: (id) => {
|
|
@@ -7,6 +7,6 @@ export const NotificationPanelFooter = ({ onClose }) => {
|
|
|
7
7
|
const t = useNotificationsDictionary();
|
|
8
8
|
const controller = useNotificationController();
|
|
9
9
|
const Link = useAnchorTag();
|
|
10
|
-
return (_jsx(Button, { as: Link, onClick: onClose, size: "sm", colorScheme: "inverse", appearance: "text", className: "see-all", href: controller.config.notificationsPath, children: _jsx(Text, { appearance: "microtext1", children: t.
|
|
10
|
+
return (_jsx(Button, { as: Link, onClick: onClose, size: "sm", colorScheme: "inverse", appearance: "text", className: "see-all", href: controller.config.notificationsPath, children: _jsx(Text, { appearance: "microtext1", children: t.viewAll }) }));
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=NotificationsPanelFooter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationsPanelFooter.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationsPanelFooter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAA;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AAEzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAE,OAAO,EAA2B,EAAE,EAAE;IAC9E,MAAM,CAAC,GAAG,0BAA0B,EAAE,CAAA;IACtC,MAAM,UAAU,GAAG,yBAAyB,EAAE,CAAA;IAC9C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;IAC3B,OAAO,CACL,KAAC,MAAM,IACL,EAAE,EAAE,IAAI,EACR,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,IAAI,EACT,WAAW,EAAC,SAAS,EACrB,UAAU,EAAC,MAAM,EACjB,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,iBAAiB,YAEzC,KAAC,IAAI,IAAC,UAAU,EAAC,YAAY,YAC1B,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"NotificationsPanelFooter.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationsPanelFooter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAA;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AAEzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAE,OAAO,EAA2B,EAAE,EAAE;IAC9E,MAAM,CAAC,GAAG,0BAA0B,EAAE,CAAA;IACtC,MAAM,UAAU,GAAG,yBAAyB,EAAE,CAAA;IAC9C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAA;IAC3B,OAAO,CACL,KAAC,MAAM,IACL,EAAE,EAAE,IAAI,EACR,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,IAAI,EACT,WAAW,EAAC,SAAS,EACrB,UAAU,EAAC,MAAM,EACjB,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,iBAAiB,YAEzC,KAAC,IAAI,IAAC,UAAU,EAAC,YAAY,YAC1B,CAAC,CAAC,OAAO,GACL,GACA,CACV,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useNotificationsDictionary: () => Record<"close" | "notifications" | "ALL.ariaLabel" | "UNREAD.ariaLabel" | "HIGH.ariaLabel" | "MEDIUM.ariaLabel" | "LOW.ariaLabel" | "ALL.label" | "UNREAD.label" | "HIGH.label" | "MEDIUM.label" | "LOW.label" | "
|
|
1
|
+
export declare const useNotificationsDictionary: () => Record<"close" | "notifications" | "ALL.ariaLabel" | "UNREAD.ariaLabel" | "HIGH.ariaLabel" | "MEDIUM.ariaLabel" | "LOW.ariaLabel" | "ALL.label" | "UNREAD.label" | "HIGH.label" | "MEDIUM.label" | "LOW.label" | "viewAll" | "openNotifications" | "hasUnread" | "loadingNotifications" | "tour", string>;
|
|
2
2
|
//# sourceMappingURL=dictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/dictionary.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/dictionary.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,0BAA0B,iTAAiC,CAAA"}
|
|
@@ -12,7 +12,7 @@ const dictionary = {
|
|
|
12
12
|
'HIGH.label': 'High',
|
|
13
13
|
'MEDIUM.label': 'Medium',
|
|
14
14
|
'LOW.label': 'Low',
|
|
15
|
-
|
|
15
|
+
viewAll: 'View all notifications',
|
|
16
16
|
openNotifications: 'View notifications',
|
|
17
17
|
hasUnread: 'Has Unread notifications',
|
|
18
18
|
close: 'Close',
|
|
@@ -31,7 +31,7 @@ const dictionary = {
|
|
|
31
31
|
'HIGH.label': 'Alto',
|
|
32
32
|
'MEDIUM.label': 'Médio',
|
|
33
33
|
'LOW.label': 'Baixo',
|
|
34
|
-
|
|
34
|
+
viewAll: 'Ver todas as notificações',
|
|
35
35
|
openNotifications: 'Visualizar notificações',
|
|
36
36
|
hasUnread: 'Existem notificações não lidas',
|
|
37
37
|
close: 'Fechar',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEvE,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,aAAa,EAAE,eAAe;QAC9B,eAAe,EAAE,wBAAwB;QACzC,kBAAkB,EAAE,2BAA2B;QAC/C,gBAAgB,EAAE,6BAA6B;QAC/C,kBAAkB,EAAE,4CAA4C;QAChE,eAAe,EAAE,yCAAyC;QAC1D,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,MAAM;QACpB,cAAc,EAAE,QAAQ;QACxB,WAAW,EAAE,KAAK;QAClB,
|
|
1
|
+
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEvE,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,aAAa,EAAE,eAAe;QAC9B,eAAe,EAAE,wBAAwB;QACzC,kBAAkB,EAAE,2BAA2B;QAC/C,gBAAgB,EAAE,6BAA6B;QAC/C,kBAAkB,EAAE,4CAA4C;QAChE,eAAe,EAAE,yCAAyC;QAC1D,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,QAAQ;QACxB,YAAY,EAAE,MAAM;QACpB,cAAc,EAAE,QAAQ;QACxB,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,wBAAwB;QACjC,iBAAiB,EAAE,oBAAoB;QACvC,SAAS,EAAE,0BAA0B;QACrC,KAAK,EAAE,OAAO;QACd,oBAAoB,EAAE,2FAA2F;QACjH,IAAI,EAAE,+IAA+I;KACtJ;IACD,EAAE,EAAE;QACF,aAAa,EAAE,cAAc;QAC7B,eAAe,EAAE,+BAA+B;QAChD,kBAAkB,EAAE,gCAAgC;QACpD,gBAAgB,EAAE,+BAA+B;QACjD,kBAAkB,EAAE,4CAA4C;QAChE,eAAe,EAAE,4CAA4C;QAC7D,WAAW,EAAE,OAAO;QACpB,cAAc,EAAE,WAAW;QAC3B,YAAY,EAAE,MAAM;QACpB,cAAc,EAAE,OAAO;QACvB,WAAW,EAAE,OAAO;QACpB,OAAO,EAAE,2BAA2B;QACpC,iBAAiB,EAAE,yBAAyB;QAC5C,SAAS,EAAE,gCAAgC;QAC3C,KAAK,EAAE,QAAQ;QACf,oBAAoB,EAAE,sFAAsF;QAC5G,IAAI,EAAE,2JAA2J;KAClK;CACmB,CAAA;AAEtB,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA"}
|
|
@@ -32,6 +32,6 @@ const ContentBox = styled.section `
|
|
|
32
32
|
*/
|
|
33
33
|
export const OverlayContent = ({ children, title, subtitle, className, style, onClose, onGoBack, type }) => {
|
|
34
34
|
const t = useDictionary();
|
|
35
|
-
return (_jsxs(ContentBox, { style: style, className: listToClass([className, type]), children: [_jsxs("header", { children: [_jsxs(Flex, { flexDirection: "column", flex: 1, children: [_jsxs(Flex, { style: { gap: '6px' }, children: [onGoBack && (_jsx(IconButton, { appearance: "circle", onClick: onGoBack, title: t.goBack, "aria-label": t.goBack, children: _jsx(ArrowLeft, {}) })), _jsx(Text, { as: "
|
|
35
|
+
return (_jsxs(ContentBox, { style: style, className: listToClass([className, type]), children: [_jsxs("header", { children: [_jsxs(Flex, { flexDirection: "column", flex: 1, children: [_jsxs(Flex, { style: { gap: '6px' }, children: [onGoBack && (_jsx(IconButton, { appearance: "circle", onClick: onGoBack, title: t.goBack, "aria-label": t.goBack, children: _jsx(ArrowLeft, {}) })), _jsx(Text, { as: "h1", appearance: type === 'modal' ? 'h3' : 'h4', children: title })] }), subtitle && _jsx(Text, { appearance: "body2", colorScheme: "light.700", children: subtitle })] }), _jsx(IconButton, { appearance: "circle", onClick: onClose, title: t.close, "aria-label": t.close, id: CLOSE_OVERLAY_ID, children: _jsx(TimesMini, {}) })] }), children] }));
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=OverlayContent.js.map
|
package/dist/dictionary.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getLanguage, useTranslate } from '@stack-spot/portal-translate';
|
|
1
|
+
import { getLanguage, ptEn, useTranslate } from '@stack-spot/portal-translate';
|
|
2
2
|
const dictionary = {
|
|
3
3
|
en: {
|
|
4
4
|
close: 'Close',
|
|
@@ -22,7 +22,7 @@ const dictionary = {
|
|
|
22
22
|
*/
|
|
23
23
|
export const useDictionary = () => useTranslate(dictionary);
|
|
24
24
|
export function getDictionary() {
|
|
25
|
-
const language = getLanguage();
|
|
25
|
+
const language = getLanguage(ptEn);
|
|
26
26
|
return dictionary[language];
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=dictionary.js.map
|
package/dist/dictionary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../src/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../src/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE1F,MAAM,UAAU,GAAG;IACjB,EAAE,EAAE;QACF,KAAK,EAAE,OAAO;QACd,eAAe,EAAE,kDAAkD;QACnE,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,QAAQ;KACjB;IACD,EAAE,EAAE;QACF,KAAK,EAAE,QAAQ;QACf,eAAe,EAAE,4DAA4D;QAC7E,OAAO,EAAE,WAAW;QACpB,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;KACjB;CACmB,CAAA;AAEtB;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;AAE3D,MAAM,UAAU,aAAa;IAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;IAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stack-spot/portal-layout",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"@citric/icons": "^5.9.0",
|
|
15
15
|
"@citric/ui": "^6.10.1",
|
|
16
16
|
"@stack-spot/portal-theme": "^1.1.1",
|
|
17
|
-
"@stack-spot/portal-translate": "
|
|
18
|
-
"@stack-spot/portal-components": "^2.
|
|
17
|
+
"@stack-spot/portal-translate": "~2.1.0",
|
|
18
|
+
"@stack-spot/portal-components": "^2.25.9",
|
|
19
19
|
"react": "^18.2.0",
|
|
20
20
|
"react-dom": "^18.2.0",
|
|
21
21
|
"styled-components": "^6.1.10"
|
|
@@ -17,7 +17,7 @@ export const NotificationPanel = ({ filter, onFilter, loading, error, visible, o
|
|
|
17
17
|
header={<NotificationPanelHeader filter={filter} onChangeFilter={onFilter} onClose={onClose} />}
|
|
18
18
|
footer={<NotificationPanelFooter onClose={onClose} />}
|
|
19
19
|
>
|
|
20
|
-
<ScrollView direction="vertical" style={{ maxHeight: 'calc(100vh -
|
|
20
|
+
<ScrollView direction="vertical" style={{ maxHeight: 'calc(100vh - 200px)' }}>
|
|
21
21
|
{error ? <ErrorFeedback code={error.code} direction="column" /> : <NotificationList
|
|
22
22
|
{...props}
|
|
23
23
|
compact
|
|
@@ -13,7 +13,7 @@ const dictionary = {
|
|
|
13
13
|
'HIGH.label': 'High',
|
|
14
14
|
'MEDIUM.label': 'Medium',
|
|
15
15
|
'LOW.label': 'Low',
|
|
16
|
-
|
|
16
|
+
viewAll: 'View all notifications',
|
|
17
17
|
openNotifications: 'View notifications',
|
|
18
18
|
hasUnread: 'Has Unread notifications',
|
|
19
19
|
close: 'Close',
|
|
@@ -32,7 +32,7 @@ const dictionary = {
|
|
|
32
32
|
'HIGH.label': 'Alto',
|
|
33
33
|
'MEDIUM.label': 'Médio',
|
|
34
34
|
'LOW.label': 'Baixo',
|
|
35
|
-
|
|
35
|
+
viewAll: 'Ver todas as notificações',
|
|
36
36
|
openNotifications: 'Visualizar notificações',
|
|
37
37
|
hasUnread: 'Existem notificações não lidas',
|
|
38
38
|
close: 'Fechar',
|
|
@@ -79,7 +79,7 @@ export const OverlayContent = ({ children, title, subtitle, className, style, on
|
|
|
79
79
|
<ArrowLeft />
|
|
80
80
|
</IconButton>
|
|
81
81
|
)}
|
|
82
|
-
<Text as="
|
|
82
|
+
<Text as="h1" appearance={type === 'modal' ? 'h3' : 'h4'}>{title}</Text>
|
|
83
83
|
</Flex>
|
|
84
84
|
{subtitle && <Text appearance="body2" colorScheme="light.700">{subtitle}</Text>}
|
|
85
85
|
</Flex>
|
package/src/dictionary.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dictionary, getLanguage, useTranslate } from '@stack-spot/portal-translate'
|
|
1
|
+
import { Dictionary, getLanguage, ptEn, useTranslate } from '@stack-spot/portal-translate'
|
|
2
2
|
|
|
3
3
|
const dictionary = {
|
|
4
4
|
en: {
|
|
@@ -25,6 +25,6 @@ const dictionary = {
|
|
|
25
25
|
export const useDictionary = () => useTranslate(dictionary)
|
|
26
26
|
|
|
27
27
|
export function getDictionary() {
|
|
28
|
-
const language = getLanguage()
|
|
28
|
+
const language = getLanguage(ptEn)
|
|
29
29
|
return dictionary[language]
|
|
30
30
|
}
|