@stack-spot/portal-layout 2.36.3 → 2.37.0

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.37.0](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.36.3...portal-layout@v2.37.0) (2025-09-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * 3156 notifications ([#1491](https://github.com/stack-spot/portal-commons/issues/1491)) ([3f9f6a6](https://github.com/stack-spot/portal-commons/commit/3f9f6a6b56004893cca4e0d53afe8eccdf615005))
9
+ * upgrades translation lib ([#1645](https://github.com/stack-spot/portal-commons/issues/1645)) ([838a740](https://github.com/stack-spot/portal-commons/commit/838a7404c9946e8804cebab6ba33a24a0cf52a80))
10
+
3
11
  ## [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
12
 
5
13
 
@@ -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.seeAll }) }));
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,MAAM,GACJ,GACA,CACV,CAAA;AACH,CAAC,CAAA"}
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" | "seeAll" | "openNotifications" | "hasUnread" | "loadingNotifications" | "tour", string>;
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,gTAAiC,CAAA"}
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
- seeAll: 'See all notifications',
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
- seeAll: 'Ver todas as notificações',
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,MAAM,EAAE,uBAAuB;QAC/B,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,MAAM,EAAE,2BAA2B;QACnC,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"}
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"}
@@ -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
@@ -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;AAEpF,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,EAAE,CAAA;IAC9B,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC7B,CAAC"}
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.36.3",
3
+ "version": "2.37.0",
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": "^1.1.0",
18
- "@stack-spot/portal-components": "^2.22.4",
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"
@@ -18,7 +18,7 @@ export const NotificationPanelFooter = ({ onClose }: { onClose: () => void }) =>
18
18
  href={controller.config.notificationsPath}
19
19
  >
20
20
  <Text appearance="microtext1">
21
- {t.seeAll}
21
+ {t.viewAll}
22
22
  </Text>
23
23
  </Button>
24
24
  )
@@ -13,7 +13,7 @@ const dictionary = {
13
13
  'HIGH.label': 'High',
14
14
  'MEDIUM.label': 'Medium',
15
15
  'LOW.label': 'Low',
16
- seeAll: 'See all notifications',
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
- seeAll: 'Ver todas as notificações',
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',
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
  }