@stack-spot/portal-layout 2.21.1 → 2.22.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 +14 -0
- package/dist/components/NotificationCenter/NotificationPanel.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationPanel.js +4 -1
- package/dist/components/NotificationCenter/NotificationPanel.js.map +1 -1
- package/dist/components/tour/index.d.ts +3 -3
- package/dist/components/tour/index.d.ts.map +1 -1
- package/dist/components/tour/index.js +3 -3
- package/dist/components/tour/index.js.map +1 -1
- package/dist/components/tour/utils.d.ts +1 -0
- package/dist/components/tour/utils.d.ts.map +1 -1
- package/dist/components/tour/utils.js +1 -1
- package/dist/components/tour/utils.js.map +1 -1
- package/package.json +2 -2
- package/src/components/NotificationCenter/NotificationPanel.tsx +4 -0
- package/src/components/tour/index.ts +3 -3
- package/src/components/tour/utils.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.22.0](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.21.2...portal-layout@v2.22.0) (2025-01-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add new prop onClickViewNotification ([5252d3b](https://github.com/stack-spot/portal-commons/commit/5252d3bdd01d81735a56fbcbd2cd12ed4c1aff53))
|
|
9
|
+
|
|
10
|
+
## [2.21.2](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.21.1...portal-layout@v2.21.2) (2025-01-06)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* export getTourCookie ([6499879](https://github.com/stack-spot/portal-commons/commit/6499879a82149b3d4db0bd37b2177fd85dc20a2f))
|
|
16
|
+
|
|
3
17
|
## [2.21.1](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.21.0...portal-layout@v2.21.1) (2024-12-27)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,iBAAiB,qEAAsE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationPanel.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,eAAO,MAAM,iBAAiB,qEAAsE,sBAAsB,4CA6BzH,CAAA"}
|
|
@@ -8,7 +8,10 @@ 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 - 300px)' }, children: error ? _jsx(ErrorFeedback, { code: error.code, direction: "column" }) : _jsx(NotificationList, { ...props, compact: true, loading: loading, onCommit: id => controller.markAsCommitted(id),
|
|
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 - 300px)' }, children: error ? _jsx(ErrorFeedback, { code: error.code, direction: "column" }) : _jsx(NotificationList, { ...props, compact: true, loading: loading, onCommit: id => controller.markAsCommitted(id), onClickViewNotification: () => {
|
|
12
|
+
onClose();
|
|
13
|
+
controller.config.onClickViewNotification?.();
|
|
14
|
+
}, onClickAction: (id) => {
|
|
12
15
|
onClose();
|
|
13
16
|
controller.config.onClickAction?.(id);
|
|
14
17
|
} }) }) }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationPanel.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAA;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAA;AACzG,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAA;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAGzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,EAA0B,EAAE,EAAE;IAC5H,MAAM,UAAU,GAAG,yBAAyB,EAAE,CAAA;IAC9C,OAAO,CACL,KAAC,cAAc,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,kBAC5D,KAAC,cAAc,IACb,SAAS,EAAC,oBAAoB,EAC9B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAC,uBAAuB,IAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAI,EAC/F,MAAM,EAAE,KAAC,uBAAuB,IAAC,OAAO,EAAE,OAAO,GAAI,YAErD,KAAC,UAAU,IAAC,SAAS,EAAC,UAAU,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,YACzE,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,KAAC,gBAAgB,OAC7E,KAAK,EACT,OAAO,QACP,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC,EAC9C,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE;wBACpB,OAAO,EAAE,CAAA;wBACT,UAAU,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC,CAAA;oBACvC,CAAC,GACD,GACS,GACE,GACF,CAClB,CAAA;AACH,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"NotificationPanel.js","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAA;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAA;AACzG,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAA;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAGzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE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igListener, TourStep, WelcomeTour
|
|
4
|
-
export {
|
|
2
|
+
export { TourConfig, TourConfigListener, tourManager, TourStep, WelcomeTour } from './manager.js';
|
|
3
|
+
export { StepContainer } from './StepContainer.js';
|
|
4
|
+
export { getTourCookie, hasFinishedTourStep, isNewTourStep, StackspotTourStep, tourStepBuilder } from './utils.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tour/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tour/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC9F,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { StepContainer } from './StepContainer.js';
|
|
2
1
|
export { useTour } from './hook.js';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
2
|
+
export { tourManager, WelcomeTour } from './manager.js';
|
|
3
|
+
export { StepContainer } from './StepContainer.js';
|
|
4
|
+
export { getTourCookie, hasFinishedTourStep, isNewTourStep, tourStepBuilder } from './utils.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tour/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tour/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAkC,WAAW,EAAY,WAAW,EAAE,MAAM,WAAW,CAAA;AAC9F,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,aAAa,EAAqB,eAAe,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { ReactourStep } from 'reactour';
|
|
3
3
|
import { PointingArrowPosition } from './StepContainer.js';
|
|
4
4
|
import { NavigationProps } from './StepNavigation.js';
|
|
5
|
+
export declare const getTourCookie: () => string[];
|
|
5
6
|
/**
|
|
6
7
|
* Tutorial: marks the tour step as finished. This sets a cookie, preventing the tour from showing again.
|
|
7
8
|
* @param key the identifier for the step to mark as finished.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/tour/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,qBAAqB,EAAiB,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/tour/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,qBAAqB,EAAiB,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAOlD,eAAO,MAAM,aAAa,gBAGzB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAS,MAAM,SAIzC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,SAAU,YAAY,YAA6C,CAAA;AAE7F;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,QAAS,MAAM,YAG9C,CAAA;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACrC;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACjC;;OAEG;IACH;;OAEG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,yFAUzB,iBAAiB,KAAG,YAoBrB,CAAA"}
|
|
@@ -5,7 +5,7 @@ import { StepContainer } from './StepContainer.js';
|
|
|
5
5
|
const TOUR_COOKIE = 'guided-tour-global';
|
|
6
6
|
const defaultExpires = new Date();
|
|
7
7
|
defaultExpires.setFullYear(new Date().getFullYear() + 1);
|
|
8
|
-
const getTourCookie = () => {
|
|
8
|
+
export const getTourCookie = () => {
|
|
9
9
|
const currentTourObject = getCookie(TOUR_COOKIE);
|
|
10
10
|
return currentTourObject ? currentTourObject.split(',') : [];
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/tour/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAGhD,OAAO,EAAyB,aAAa,EAAE,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1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stack-spot/portal-layout",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@citric/ui": "^6.5.5",
|
|
16
16
|
"@stack-spot/portal-theme": "^1.0.0",
|
|
17
17
|
"@stack-spot/portal-translate": "^1.1.0",
|
|
18
|
-
"@stack-spot/portal-components": "^2.
|
|
18
|
+
"@stack-spot/portal-components": "^2.12.0",
|
|
19
19
|
"react": "^18.2.0",
|
|
20
20
|
"react-dom": "^18.2.0",
|
|
21
21
|
"styled-components": "^6.1.10"
|
|
@@ -23,6 +23,10 @@ export const NotificationPanel = ({ filter, onFilter, loading, error, visible, o
|
|
|
23
23
|
compact
|
|
24
24
|
loading={loading}
|
|
25
25
|
onCommit={id => controller.markAsCommitted(id)}
|
|
26
|
+
onClickViewNotification={() => {
|
|
27
|
+
onClose()
|
|
28
|
+
controller.config.onClickViewNotification?.()
|
|
29
|
+
}}
|
|
26
30
|
onClickAction={(id) => {
|
|
27
31
|
onClose()
|
|
28
32
|
controller.config.onClickAction?.(id)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
export { StepContainer } from './StepContainer'
|
|
3
2
|
export { useTour } from './hook'
|
|
4
|
-
export { TourConfig, TourConfigListener, TourStep, WelcomeTour
|
|
5
|
-
export {
|
|
3
|
+
export { TourConfig, TourConfigListener, tourManager, TourStep, WelcomeTour } from './manager'
|
|
4
|
+
export { StepContainer } from './StepContainer'
|
|
5
|
+
export { getTourCookie, hasFinishedTourStep, isNewTourStep, StackspotTourStep, tourStepBuilder } from './utils'
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ const TOUR_COOKIE = 'guided-tour-global'
|
|
|
10
10
|
const defaultExpires = new Date()
|
|
11
11
|
defaultExpires.setFullYear(new Date().getFullYear() + 1)
|
|
12
12
|
|
|
13
|
-
const getTourCookie = () => {
|
|
13
|
+
export const getTourCookie = () => {
|
|
14
14
|
const currentTourObject = getCookie(TOUR_COOKIE)
|
|
15
15
|
return currentTourObject ? currentTourObject.split(',') : []
|
|
16
16
|
}
|