@servicetitan/notifications 19.3.0 → 20.1.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/dist/api/notifications.api.js +3 -7
- package/dist/api/notifications.api.js.map +1 -1
- package/dist/common.js +7 -13
- package/dist/common.js.map +1 -1
- package/dist/components/container.js +11 -15
- package/dist/components/container.js.map +1 -1
- package/dist/components/default-notification.js +9 -31
- package/dist/components/default-notification.js.map +1 -1
- package/dist/components/no-ssr.js +4 -8
- package/dist/components/no-ssr.js.map +1 -1
- package/dist/components/notifications-unwrapped.js +16 -19
- package/dist/components/notifications-unwrapped.js.map +1 -1
- package/dist/components/notifications.js +25 -29
- package/dist/components/notifications.js.map +1 -1
- package/dist/components/shadow-dom.js +11 -18
- package/dist/components/shadow-dom.js.map +1 -1
- package/dist/components/use-style-sheets.js +5 -9
- package/dist/components/use-style-sheets.js.map +1 -1
- package/dist/create-element.js +1 -5
- package/dist/create-element.js.map +1 -1
- package/dist/date-from-string.js +1 -5
- package/dist/date-from-string.js.map +1 -1
- package/dist/demo/action-button-preview.js +7 -11
- package/dist/demo/action-button-preview.js.map +1 -1
- package/dist/demo/action-button.js +4 -8
- package/dist/demo/action-button.js.map +1 -1
- package/dist/demo/basic-preview.js +7 -11
- package/dist/demo/basic-preview.js.map +1 -1
- package/dist/demo/basic.js +4 -8
- package/dist/demo/basic.js.map +1 -1
- package/dist/demo/container.js +11 -15
- package/dist/demo/container.js.map +1 -1
- package/dist/demo/duration-preview.js +7 -11
- package/dist/demo/duration-preview.js.map +1 -1
- package/dist/demo/duration.js +4 -8
- package/dist/demo/duration.js.map +1 -1
- package/dist/demo/index.js +9 -21
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/multiline-message-preview.js +7 -11
- package/dist/demo/multiline-message-preview.js.map +1 -1
- package/dist/demo/multiline-message.js +4 -8
- package/dist/demo/multiline-message.js.map +1 -1
- package/dist/demo/prevent-duplicates-preview.js +7 -11
- package/dist/demo/prevent-duplicates-preview.js.map +1 -1
- package/dist/demo/prevent-duplicates.js +4 -8
- package/dist/demo/prevent-duplicates.js.map +1 -1
- package/dist/demo/progress-preview.js +7 -11
- package/dist/demo/progress-preview.js.map +1 -1
- package/dist/demo/progress.js +4 -8
- package/dist/demo/progress.js.map +1 -1
- package/dist/demo/server-custom-preview.js +5 -7
- package/dist/demo/server-custom-preview.js.map +1 -1
- package/dist/demo/server-custom.js +9 -13
- package/dist/demo/server-custom.js.map +1 -1
- package/dist/demo/server-default.js +10 -14
- package/dist/demo/server-default.js.map +1 -1
- package/dist/demo/status-variations-preview.js +7 -11
- package/dist/demo/status-variations-preview.js.map +1 -1
- package/dist/demo/status-variations.js +4 -8
- package/dist/demo/status-variations.js.map +1 -1
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/notifications-channel.js +2 -5
- package/dist/notifications-channel.js.map +1 -1
- package/dist/notifications-service.js +11 -14
- package/dist/notifications-service.js.map +1 -1
- package/dist/register.js +3 -7
- package/dist/register.js.map +1 -1
- package/dist/stores/notifications.store.js +28 -31
- package/dist/stores/notifications.store.js.map +1 -1
- package/package.json +16 -13
package/dist/demo/basic.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../src/demo/basic.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../src/demo/basic.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,CAAC,MAAM,YAAY,GAAO,GAAG,EAAE,CAAC,KAAC,SAAS,cAAE,GAAG,EAAE,CAAC,KAAC,YAAY,aAAG,WAAa,CAAC"}
|
package/dist/demo/container.js
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const react_1 = require("react");
|
6
|
-
const react_ioc_1 = require("@servicetitan/react-ioc");
|
7
|
-
const __1 = require("..");
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { useEffect, useMemo } from 'react';
|
3
|
+
import { Provider, useDependencies } from '@servicetitan/react-ioc';
|
4
|
+
import { NOTIFICATIONS_CHANNEL_TOKEN, Notifications, NotificationsService } from '..';
|
8
5
|
class Publisher {
|
9
6
|
constructor() {
|
10
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
@@ -50,20 +47,19 @@ class Publisher {
|
|
50
47
|
}
|
51
48
|
}
|
52
49
|
const NotificationsInitializer = () => {
|
53
|
-
const [notifications] =
|
54
|
-
|
50
|
+
const [notifications] = useDependencies(NotificationsService);
|
51
|
+
useEffect(() => {
|
55
52
|
notifications.initialize();
|
56
53
|
}, [notifications]);
|
57
54
|
return null;
|
58
55
|
};
|
59
|
-
const Container = ({ children }) => {
|
60
|
-
const publisherInstance =
|
61
|
-
return ((
|
56
|
+
export const Container = ({ children }) => {
|
57
|
+
const publisherInstance = useMemo(() => new Publisher(), []);
|
58
|
+
return (_jsx(Provider, Object.assign({ singletons: [
|
62
59
|
{
|
63
|
-
provide:
|
60
|
+
provide: NOTIFICATIONS_CHANNEL_TOKEN,
|
64
61
|
useValue: () => publisherInstance,
|
65
62
|
},
|
66
|
-
] }, { children: (
|
63
|
+
] }, { children: _jsxs(Notifications, { children: [_jsx(NotificationsInitializer, {}, void 0), children(publisherInstance)] }, void 0) }), void 0));
|
67
64
|
};
|
68
|
-
exports.Container = Container;
|
69
65
|
//# sourceMappingURL=container.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../src/demo/container.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../src/demo/container.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAM,MAAM,OAAO,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAIpE,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAMtF,MAAM,SAAS;IAAf;QACI,gEAAgE;QAChE;;;;mBAAiB;gBACb,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;gBACd,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;aACnB;WAAC;QAEF;;;;;WAAqC;QAErC;;;;mBAAO,CAAC,EAAU,EAAE,QAAuB,EAAE,EAAE;gBAC3C,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC;YACjC,CAAC;WAAC;QAEF;;;;mBAAS,GAAG,EAAE,GAAE,CAAC;WAAC;QAElB;;;;mBAAO,CAAC,YAA0B,EAAE,EAAE;gBAClC,IAAI,IAAI,CAAC,YAAY,EAAE;oBACnB,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;iBACnC;YACL,CAAC;WAAC;IACN,CAAC;CAAA;AAED,MAAM,wBAAwB,GAAO,GAAG,EAAE;IACtC,MAAM,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACX,aAAa,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;IAE7D,OAAO,CACH,KAAC,QAAQ,kBACL,UAAU,EAAE;YACR;gBACI,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,iBAAiB;aACpC;SACJ,gBAED,MAAC,aAAa,eACV,KAAC,wBAAwB,aAAG,EAC3B,QAAQ,CAAC,iBAAiB,CAAC,YAChB,YACT,CACd,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,12 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const __1 = require("..");
|
8
|
-
const DurationPreview = () => {
|
9
|
-
const [notifications] = (0, react_ioc_1.useDependencies)(__1.NotificationsService);
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { useDependencies } from '@servicetitan/react-ioc';
|
3
|
+
import { ButtonGroup, Button } from '@servicetitan/design-system';
|
4
|
+
import { NotificationsService } from '..';
|
5
|
+
export const DurationPreview = () => {
|
6
|
+
const [notifications] = useDependencies(NotificationsService);
|
10
7
|
const handleOneSecondClick = () => notifications.show({
|
11
8
|
title: 'This message will be closed in 1 second.',
|
12
9
|
duration: 1000,
|
@@ -15,7 +12,6 @@ const DurationPreview = () => {
|
|
15
12
|
title: "This message won't be closed automatically.",
|
16
13
|
duration: 0,
|
17
14
|
});
|
18
|
-
return ((
|
15
|
+
return (_jsxs(ButtonGroup, { children: [_jsx(Button, Object.assign({ onClick: handleOneSecondClick }, { children: "1 second" }), void 0), _jsx(Button, Object.assign({ onClick: handleUnlimitedClick }, { children: "Unlimited" }), void 0)] }, void 0));
|
19
16
|
};
|
20
|
-
exports.DurationPreview = DurationPreview;
|
21
17
|
//# sourceMappingURL=duration-preview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"duration-preview.js","sourceRoot":"","sources":["../../src/demo/duration-preview.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"duration-preview.js","sourceRoot":"","sources":["../../src/demo/duration-preview.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAO,GAAG,EAAE;IACpC,MAAM,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAE9D,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAC9B,aAAa,CAAC,IAAI,CAAC;QACf,KAAK,EAAE,0CAA0C;QACjD,QAAQ,EAAE,IAAI;KACjB,CAAC,CAAC;IAEP,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAC9B,aAAa,CAAC,IAAI,CAAC;QACf,KAAK,EAAE,6CAA6C;QACpD,QAAQ,EAAE,CAAC;KACd,CAAC,CAAC;IAEP,OAAO,CACH,MAAC,WAAW,eACR,KAAC,MAAM,kBAAC,OAAO,EAAE,oBAAoB,sCAAmB,EACxD,KAAC,MAAM,kBAAC,OAAO,EAAE,oBAAoB,uCAAoB,YAC/C,CACjB,CAAC;AACN,CAAC,CAAC"}
|
package/dist/demo/duration.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
const container_1 = require("./container");
|
6
|
-
const duration_preview_1 = require("./duration-preview");
|
7
|
-
const DurationExample = () => (0, jsx_runtime_1.jsx)(container_1.Container, { children: () => (0, jsx_runtime_1.jsx)(duration_preview_1.DurationPreview, {}, void 0) }, void 0);
|
8
|
-
exports.DurationExample = DurationExample;
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Container } from './container';
|
3
|
+
import { DurationPreview } from './duration-preview';
|
4
|
+
export const DurationExample = () => _jsx(Container, { children: () => _jsx(DurationPreview, {}, void 0) }, void 0);
|
9
5
|
//# sourceMappingURL=duration.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"duration.js","sourceRoot":"","sources":["../../src/demo/duration.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"duration.js","sourceRoot":"","sources":["../../src/demo/duration.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAO,GAAG,EAAE,CAAC,KAAC,SAAS,cAAE,GAAG,EAAE,CAAC,KAAC,eAAe,aAAG,WAAa,CAAC"}
|
package/dist/demo/index.js
CHANGED
@@ -1,22 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
|
-
};
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
__exportStar(require("./basic"), exports);
|
14
|
-
__exportStar(require("./status-variations"), exports);
|
15
|
-
__exportStar(require("./duration"), exports);
|
16
|
-
__exportStar(require("./action-button"), exports);
|
17
|
-
__exportStar(require("./progress"), exports);
|
18
|
-
__exportStar(require("./prevent-duplicates"), exports);
|
19
|
-
__exportStar(require("./multiline-message"), exports);
|
20
|
-
__exportStar(require("./server-default"), exports);
|
21
|
-
__exportStar(require("./server-custom"), exports);
|
1
|
+
export * from './basic';
|
2
|
+
export * from './status-variations';
|
3
|
+
export * from './duration';
|
4
|
+
export * from './action-button';
|
5
|
+
export * from './progress';
|
6
|
+
export * from './prevent-duplicates';
|
7
|
+
export * from './multiline-message';
|
8
|
+
export * from './server-default';
|
9
|
+
export * from './server-custom';
|
22
10
|
//# sourceMappingURL=index.js.map
|
package/dist/demo/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
@@ -1,17 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const __1 = require("..");
|
8
|
-
const MultilineMessagePreview = () => {
|
9
|
-
const [notifications] = (0, react_ioc_1.useDependencies)(__1.NotificationsService);
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useDependencies } from '@servicetitan/react-ioc';
|
3
|
+
import { ButtonGroup, Button } from '@servicetitan/design-system';
|
4
|
+
import { NotificationsService } from '..';
|
5
|
+
export const MultilineMessagePreview = () => {
|
6
|
+
const [notifications] = useDependencies(NotificationsService);
|
10
7
|
const handleClick = () => notifications.show({
|
11
8
|
title: 'Notification with multiline message',
|
12
9
|
message: '1. First\r\n2. Second\r\n3. Third',
|
13
10
|
});
|
14
|
-
return ((
|
11
|
+
return (_jsx(ButtonGroup, { children: _jsx(Button, Object.assign({ onClick: handleClick }, { children: "Show" }), void 0) }, void 0));
|
15
12
|
};
|
16
|
-
exports.MultilineMessagePreview = MultilineMessagePreview;
|
17
13
|
//# sourceMappingURL=multiline-message-preview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multiline-message-preview.js","sourceRoot":"","sources":["../../src/demo/multiline-message-preview.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"multiline-message-preview.js","sourceRoot":"","sources":["../../src/demo/multiline-message-preview.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAE1C,MAAM,CAAC,MAAM,uBAAuB,GAAO,GAAG,EAAE;IAC5C,MAAM,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,GAAG,EAAE,CACrB,aAAa,CAAC,IAAI,CAAC;QACf,KAAK,EAAE,qCAAqC;QAC5C,OAAO,EAAE,mCAAmC;KAC/C,CAAC,CAAC;IAEP,OAAO,CACH,KAAC,WAAW,cACR,KAAC,MAAM,kBAAC,OAAO,EAAE,WAAW,kCAAe,WACjC,CACjB,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
const container_1 = require("./container");
|
6
|
-
const multiline_message_preview_1 = require("./multiline-message-preview");
|
7
|
-
const MultilineMessageExample = () => ((0, jsx_runtime_1.jsx)(container_1.Container, { children: () => (0, jsx_runtime_1.jsx)(multiline_message_preview_1.MultilineMessagePreview, {}, void 0) }, void 0));
|
8
|
-
exports.MultilineMessageExample = MultilineMessageExample;
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Container } from './container';
|
3
|
+
import { MultilineMessagePreview } from './multiline-message-preview';
|
4
|
+
export const MultilineMessageExample = () => (_jsx(Container, { children: () => _jsx(MultilineMessagePreview, {}, void 0) }, void 0));
|
9
5
|
//# sourceMappingURL=multiline-message.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multiline-message.js","sourceRoot":"","sources":["../../src/demo/multiline-message.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"multiline-message.js","sourceRoot":"","sources":["../../src/demo/multiline-message.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,MAAM,CAAC,MAAM,uBAAuB,GAAO,GAAG,EAAE,CAAC,CAC7C,KAAC,SAAS,cAAE,GAAG,EAAE,CAAC,KAAC,uBAAuB,aAAG,WAAa,CAC7D,CAAC"}
|
@@ -1,16 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const __1 = require("..");
|
8
|
-
const PreventDuplicatesPreview = () => {
|
9
|
-
const [notifications] = (0, react_ioc_1.useDependencies)(__1.NotificationsService);
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useDependencies } from '@servicetitan/react-ioc';
|
3
|
+
import { ButtonGroup, Button } from '@servicetitan/design-system';
|
4
|
+
import { NotificationsService } from '..';
|
5
|
+
export const PreventDuplicatesPreview = () => {
|
6
|
+
const [notifications] = useDependencies(NotificationsService);
|
10
7
|
const handleClick = () => notifications.show({
|
11
8
|
title: 'Equal notifications will be skipped.',
|
12
9
|
}, true);
|
13
|
-
return ((
|
10
|
+
return (_jsx(ButtonGroup, { children: _jsx(Button, Object.assign({ onClick: handleClick }, { children: "Show" }), void 0) }, void 0));
|
14
11
|
};
|
15
|
-
exports.PreventDuplicatesPreview = PreventDuplicatesPreview;
|
16
12
|
//# sourceMappingURL=prevent-duplicates-preview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prevent-duplicates-preview.js","sourceRoot":"","sources":["../../src/demo/prevent-duplicates-preview.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"prevent-duplicates-preview.js","sourceRoot":"","sources":["../../src/demo/prevent-duplicates-preview.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAE1C,MAAM,CAAC,MAAM,wBAAwB,GAAO,GAAG,EAAE;IAC7C,MAAM,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,GAAG,EAAE,CACrB,aAAa,CAAC,IAAI,CACd;QACI,KAAK,EAAE,sCAAsC;KAChD,EACD,IAAI,CACP,CAAC;IAEN,OAAO,CACH,KAAC,WAAW,cACR,KAAC,MAAM,kBAAC,OAAO,EAAE,WAAW,kCAAe,WACjC,CACjB,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
const container_1 = require("./container");
|
6
|
-
const prevent_duplicates_preview_1 = require("./prevent-duplicates-preview");
|
7
|
-
const PreventDuplicatesExample = () => ((0, jsx_runtime_1.jsx)(container_1.Container, { children: () => (0, jsx_runtime_1.jsx)(prevent_duplicates_preview_1.PreventDuplicatesPreview, {}, void 0) }, void 0));
|
8
|
-
exports.PreventDuplicatesExample = PreventDuplicatesExample;
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Container } from './container';
|
3
|
+
import { PreventDuplicatesPreview } from './prevent-duplicates-preview';
|
4
|
+
export const PreventDuplicatesExample = () => (_jsx(Container, { children: () => _jsx(PreventDuplicatesPreview, {}, void 0) }, void 0));
|
9
5
|
//# sourceMappingURL=prevent-duplicates.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prevent-duplicates.js","sourceRoot":"","sources":["../../src/demo/prevent-duplicates.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"prevent-duplicates.js","sourceRoot":"","sources":["../../src/demo/prevent-duplicates.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,CAAC,MAAM,wBAAwB,GAAO,GAAG,EAAE,CAAC,CAC9C,KAAC,SAAS,cAAE,GAAG,EAAE,CAAC,KAAC,wBAAwB,aAAG,WAAa,CAC9D,CAAC"}
|
@@ -1,17 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const __1 = require("..");
|
8
|
-
const ProgressPreview = () => {
|
9
|
-
const [notifications] = (0, react_ioc_1.useDependencies)(__1.NotificationsService);
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useDependencies } from '@servicetitan/react-ioc';
|
3
|
+
import { ButtonGroup, Button } from '@servicetitan/design-system';
|
4
|
+
import { NotificationsService } from '..';
|
5
|
+
export const ProgressPreview = () => {
|
6
|
+
const [notifications] = useDependencies(NotificationsService);
|
10
7
|
const handleClick = () => notifications.show({
|
11
8
|
title: 'This message contains progress.',
|
12
9
|
progress: 25,
|
13
10
|
});
|
14
|
-
return ((
|
11
|
+
return (_jsx(ButtonGroup, { children: _jsx(Button, Object.assign({ onClick: handleClick }, { children: "Show" }), void 0) }, void 0));
|
15
12
|
};
|
16
|
-
exports.ProgressPreview = ProgressPreview;
|
17
13
|
//# sourceMappingURL=progress-preview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress-preview.js","sourceRoot":"","sources":["../../src/demo/progress-preview.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"progress-preview.js","sourceRoot":"","sources":["../../src/demo/progress-preview.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAO,GAAG,EAAE;IACpC,MAAM,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAE9D,MAAM,WAAW,GAAG,GAAG,EAAE,CACrB,aAAa,CAAC,IAAI,CAAC;QACf,KAAK,EAAE,iCAAiC;QACxC,QAAQ,EAAE,EAAE;KACf,CAAC,CAAC;IAEP,OAAO,CACH,KAAC,WAAW,cACR,KAAC,MAAM,kBAAC,OAAO,EAAE,WAAW,kCAAe,WACjC,CACjB,CAAC;AACN,CAAC,CAAC"}
|
package/dist/demo/progress.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
const container_1 = require("./container");
|
6
|
-
const progress_preview_1 = require("./progress-preview");
|
7
|
-
const ProgressExample = () => (0, jsx_runtime_1.jsx)(container_1.Container, { children: () => (0, jsx_runtime_1.jsx)(progress_preview_1.ProgressPreview, {}, void 0) }, void 0);
|
8
|
-
exports.ProgressExample = ProgressExample;
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Container } from './container';
|
3
|
+
import { ProgressPreview } from './progress-preview';
|
4
|
+
export const ProgressExample = () => _jsx(Container, { children: () => _jsx(ProgressPreview, {}, void 0) }, void 0);
|
9
5
|
//# sourceMappingURL=progress.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/demo/progress.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/demo/progress.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAO,GAAG,EAAE,CAAC,KAAC,SAAS,cAAE,GAAG,EAAE,CAAC,KAAC,eAAe,aAAG,WAAa,CAAC"}
|
@@ -1,10 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const __1 = require("..");
|
6
|
-
(0, __1.register)('CustomServerNotification', ({ notification, onClose }) => {
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Toast, Avatar, Stack } from '@servicetitan/design-system';
|
3
|
+
import { register } from '..';
|
4
|
+
register('CustomServerNotification', ({ notification, onClose }) => {
|
7
5
|
const { username, message } = notification.payload;
|
8
|
-
return ((
|
6
|
+
return (_jsx(Toast, Object.assign({ title: "You have a new message", portal: false, onClose: onClose }, { children: _jsxs(Stack, Object.assign({ alignItems: "center" }, { children: [_jsx(Avatar, { name: username, className: "m-r-1" }, void 0), _jsx(Stack.Item, Object.assign({ fill: true }, { children: message }), void 0)] }), void 0) }), void 0));
|
9
7
|
});
|
10
8
|
//# sourceMappingURL=server-custom-preview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server-custom-preview.js","sourceRoot":"","sources":["../../src/demo/server-custom-preview.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"server-custom-preview.js","sourceRoot":"","sources":["../../src/demo/server-custom-preview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAE9B,QAAQ,CAAC,0BAA0B,EAAE,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/D,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC;IAEnD,OAAO,CACH,KAAC,KAAK,kBAAC,KAAK,EAAC,wBAAwB,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,gBACjE,MAAC,KAAK,kBAAC,UAAU,EAAC,QAAQ,iBACtB,KAAC,MAAM,IAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAC,OAAO,WAAG,EAC5C,KAAC,KAAK,CAAC,IAAI,kBAAC,IAAI,sBAAE,OAAO,YAAc,aACnC,YACJ,CACX,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -1,22 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
const
|
7
|
-
const container_1 = require("./container");
|
8
|
-
require("./server-custom-preview");
|
9
|
-
const ServerCustomExample = () => ((0, jsx_runtime_1.jsx)(container_1.Container, { children: publisher => {
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Button } from '@servicetitan/design-system';
|
3
|
+
import { NotificationProcessStatus } from '..';
|
4
|
+
import { Container } from './container';
|
5
|
+
import './server-custom-preview';
|
6
|
+
export const ServerCustomExample = () => (_jsx(Container, { children: publisher => {
|
10
7
|
const handleClick = () => {
|
11
8
|
const notification = {
|
12
9
|
id: Date.now(),
|
13
10
|
userId: 0,
|
14
11
|
type: 'CustomServerNotification',
|
15
|
-
status:
|
12
|
+
status: NotificationProcessStatus.Info,
|
16
13
|
isRead: false,
|
17
14
|
createdOn: new Date(),
|
18
15
|
modifiedOn: new Date(),
|
19
|
-
version:
|
16
|
+
version: NotificationProcessStatus.Info,
|
20
17
|
payload: JSON.stringify({
|
21
18
|
username: 'Jane',
|
22
19
|
message: 'Hello, your order completed.',
|
@@ -24,7 +21,6 @@ const ServerCustomExample = () => ((0, jsx_runtime_1.jsx)(container_1.Container,
|
|
24
21
|
};
|
25
22
|
publisher.fire(notification);
|
26
23
|
};
|
27
|
-
return (
|
24
|
+
return _jsx(Button, Object.assign({ onClick: handleClick }, { children: "Show" }), void 0);
|
28
25
|
} }, void 0));
|
29
|
-
exports.ServerCustomExample = ServerCustomExample;
|
30
26
|
//# sourceMappingURL=server-custom.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server-custom.js","sourceRoot":"","sources":["../../src/demo/server-custom.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"server-custom.js","sourceRoot":"","sources":["../../src/demo/server-custom.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,IAAI,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,mBAAmB,GAAO,GAAG,EAAE,CAAC,CACzC,KAAC,SAAS,cACL,SAAS,CAAC,EAAE;QACT,MAAM,WAAW,GAAG,GAAG,EAAE;YACrB,MAAM,YAAY,GAAG;gBACjB,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE;gBACd,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,0BAA0B;gBAChC,MAAM,EAAE,yBAAyB,CAAC,IAAI;gBACtC,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,UAAU,EAAE,IAAI,IAAI,EAAE;gBACtB,OAAO,EAAE,yBAAyB,CAAC,IAAI;gBACvC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;oBACpB,QAAQ,EAAE,MAAM;oBAChB,OAAO,EAAE,8BAA8B;iBAC1C,CAAC;aACL,CAAC;YAEF,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACjC,CAAC,CAAC;QAEF,OAAO,KAAC,MAAM,kBAAC,OAAO,EAAE,WAAW,kCAAe,CAAC;IACvD,CAAC,WACO,CACf,CAAC"}
|
@@ -1,21 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
const __1 = require("..");
|
7
|
-
const container_1 = require("./container");
|
8
|
-
const ServerDefaultExample = () => ((0, jsx_runtime_1.jsx)(container_1.Container, { children: publisher => {
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Button } from '@servicetitan/design-system';
|
3
|
+
import { NotificationProcessStatus } from '..';
|
4
|
+
import { Container } from './container';
|
5
|
+
export const ServerDefaultExample = () => (_jsx(Container, { children: publisher => {
|
9
6
|
const handleClick = () => {
|
10
7
|
let notification = {
|
11
8
|
id: Date.now(),
|
12
9
|
userId: 0,
|
13
10
|
type: 'DefaultServerNotification',
|
14
|
-
status:
|
11
|
+
status: NotificationProcessStatus.Info,
|
15
12
|
isRead: false,
|
16
13
|
createdOn: new Date(),
|
17
14
|
modifiedOn: new Date(),
|
18
|
-
version:
|
15
|
+
version: NotificationProcessStatus.Info,
|
19
16
|
payload: JSON.stringify({
|
20
17
|
title: 'Server Notification',
|
21
18
|
message: 'Task was pushed into queue.',
|
@@ -24,7 +21,7 @@ const ServerDefaultExample = () => ((0, jsx_runtime_1.jsx)(container_1.Container
|
|
24
21
|
publisher.fire(notification);
|
25
22
|
setTimeout(() => {
|
26
23
|
let progress = 0;
|
27
|
-
notification = Object.assign(Object.assign({}, notification), { status:
|
24
|
+
notification = Object.assign(Object.assign({}, notification), { status: NotificationProcessStatus.InProgress, isRead: false, modifiedOn: new Date(), version: NotificationProcessStatus.InProgress, payload: JSON.stringify(Object.assign(Object.assign({}, JSON.parse(notification.payload)), { progress, message: 'Task is running.' })) });
|
28
25
|
publisher.fire(notification);
|
29
26
|
const intervalId = setInterval(() => {
|
30
27
|
if (progress < 100) {
|
@@ -33,14 +30,13 @@ const ServerDefaultExample = () => ((0, jsx_runtime_1.jsx)(container_1.Container
|
|
33
30
|
publisher.fire(notification);
|
34
31
|
}
|
35
32
|
else {
|
36
|
-
notification = Object.assign(Object.assign({}, notification), { status:
|
33
|
+
notification = Object.assign(Object.assign({}, notification), { status: NotificationProcessStatus.Success, isRead: false, modifiedOn: new Date(), version: NotificationProcessStatus.Success, payload: JSON.stringify(Object.assign(Object.assign({}, JSON.parse(notification.payload)), { message: 'Task was successfully completed.', progress: undefined })) });
|
37
34
|
publisher.fire(notification);
|
38
35
|
clearInterval(intervalId);
|
39
36
|
}
|
40
37
|
}, 250);
|
41
38
|
}, 2000);
|
42
39
|
};
|
43
|
-
return (
|
40
|
+
return _jsx(Button, Object.assign({ onClick: handleClick }, { children: "Show" }), void 0);
|
44
41
|
} }, void 0));
|
45
|
-
exports.ServerDefaultExample = ServerDefaultExample;
|
46
42
|
//# sourceMappingURL=server-default.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server-default.js","sourceRoot":"","sources":["../../src/demo/server-default.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"server-default.js","sourceRoot":"","sources":["../../src/demo/server-default.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,IAAI,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,MAAM,oBAAoB,GAAO,GAAG,EAAE,CAAC,CAC1C,KAAC,SAAS,cACL,SAAS,CAAC,EAAE;QACT,MAAM,WAAW,GAAG,GAAG,EAAE;YACrB,IAAI,YAAY,GAAG;gBACf,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE;gBACd,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,2BAA2B;gBACjC,MAAM,EAAE,yBAAyB,CAAC,IAAI;gBACtC,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,UAAU,EAAE,IAAI,IAAI,EAAE;gBACtB,OAAO,EAAE,yBAAyB,CAAC,IAAI;gBACvC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;oBACpB,KAAK,EAAE,qBAAqB;oBAC5B,OAAO,EAAE,6BAA6B;iBACzC,CAAC;aACL,CAAC;YAEF,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAE7B,UAAU,CAAC,GAAG,EAAE;gBACZ,IAAI,QAAQ,GAAG,CAAC,CAAC;gBAEjB,YAAY,mCACL,YAAY,KACf,MAAM,EAAE,yBAAyB,CAAC,UAAU,EAC5C,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,IAAI,IAAI,EAAE,EACtB,OAAO,EAAE,yBAAyB,CAAC,UAAU,EAC7C,OAAO,EAAE,IAAI,CAAC,SAAS,iCAChB,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,KACnC,QAAQ,EACR,OAAO,EAAE,kBAAkB,IAC7B,GACL,CAAC;gBAEF,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBAE7B,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;oBAChC,IAAI,QAAQ,GAAG,GAAG,EAAE;wBAChB,QAAQ,IAAI,CAAC,CAAC;wBAEd,YAAY,mCACL,YAAY,KACf,UAAU,EAAE,IAAI,IAAI,EAAE,EACtB,OAAO,EAAE,IAAI,CAAC,SAAS,iCAChB,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,KACnC,QAAQ,IACV,GACL,CAAC;wBAEF,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;qBAChC;yBAAM;wBACH,YAAY,mCACL,YAAY,KACf,MAAM,EAAE,yBAAyB,CAAC,OAAO,EACzC,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,IAAI,IAAI,EAAE,EACtB,OAAO,EAAE,yBAAyB,CAAC,OAAO,EAC1C,OAAO,EAAE,IAAI,CAAC,SAAS,iCAChB,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,KACnC,OAAO,EAAE,kCAAkC,EAC3C,QAAQ,EAAE,SAAS,IACrB,GACL,CAAC;wBAEF,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;wBAE7B,aAAa,CAAC,UAAU,CAAC,CAAC;qBAC7B;gBACL,CAAC,EAAE,GAAG,CAAC,CAAC;YACZ,CAAC,EAAE,IAAI,CAAC,CAAC;QACb,CAAC,CAAC;QAEF,OAAO,KAAC,MAAM,kBAAC,OAAO,EAAE,WAAW,kCAAe,CAAC;IACvD,CAAC,WACO,CACf,CAAC"}
|
@@ -1,12 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const __1 = require("..");
|
8
|
-
const StatusVariationsPreview = () => {
|
9
|
-
const [notifications] = (0, react_ioc_1.useDependencies)(__1.NotificationsService);
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { useDependencies } from '@servicetitan/react-ioc';
|
3
|
+
import { ButtonGroup, Button } from '@servicetitan/design-system';
|
4
|
+
import { NotificationsService } from '..';
|
5
|
+
export const StatusVariationsPreview = () => {
|
6
|
+
const [notifications] = useDependencies(NotificationsService);
|
10
7
|
const handleInfoClick = () => notifications.info({
|
11
8
|
title: "You've successfully clicked the 'Info' button.",
|
12
9
|
});
|
@@ -19,7 +16,6 @@ const StatusVariationsPreview = () => {
|
|
19
16
|
const handleErrorClick = () => notifications.error({
|
20
17
|
title: "You've successfully clicked the 'Error' button.",
|
21
18
|
});
|
22
|
-
return ((
|
19
|
+
return (_jsxs(ButtonGroup, { children: [_jsx(Button, Object.assign({ onClick: handleInfoClick }, { children: "Info" }), void 0), _jsx(Button, Object.assign({ onClick: handleSuccessClick }, { children: "Success" }), void 0), _jsx(Button, Object.assign({ onClick: handleWarningClick }, { children: "Warning" }), void 0), _jsx(Button, Object.assign({ onClick: handleErrorClick }, { children: "Error" }), void 0)] }, void 0));
|
23
20
|
};
|
24
|
-
exports.StatusVariationsPreview = StatusVariationsPreview;
|
25
21
|
//# sourceMappingURL=status-variations-preview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"status-variations-preview.js","sourceRoot":"","sources":["../../src/demo/status-variations-preview.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"status-variations-preview.js","sourceRoot":"","sources":["../../src/demo/status-variations-preview.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAE1C,MAAM,CAAC,MAAM,uBAAuB,GAAO,GAAG,EAAE;IAC5C,MAAM,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAE9D,MAAM,eAAe,GAAG,GAAG,EAAE,CACzB,aAAa,CAAC,IAAI,CAAC;QACf,KAAK,EAAE,gDAAgD;KAC1D,CAAC,CAAC;IAEP,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAC5B,aAAa,CAAC,OAAO,CAAC;QAClB,KAAK,EAAE,mDAAmD;KAC7D,CAAC,CAAC;IAEP,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAC5B,aAAa,CAAC,OAAO,CAAC;QAClB,KAAK,EAAE,mDAAmD;KAC7D,CAAC,CAAC;IAEP,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAC1B,aAAa,CAAC,KAAK,CAAC;QAChB,KAAK,EAAE,iDAAiD;KAC3D,CAAC,CAAC;IAEP,OAAO,CACH,MAAC,WAAW,eACR,KAAC,MAAM,kBAAC,OAAO,EAAE,eAAe,kCAAe,EAC/C,KAAC,MAAM,kBAAC,OAAO,EAAE,kBAAkB,qCAAkB,EACrD,KAAC,MAAM,kBAAC,OAAO,EAAE,kBAAkB,qCAAkB,EACrD,KAAC,MAAM,kBAAC,OAAO,EAAE,gBAAgB,mCAAgB,YACvC,CACjB,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
const container_1 = require("./container");
|
6
|
-
const status_variations_preview_1 = require("./status-variations-preview");
|
7
|
-
const StatusVariationsExample = () => ((0, jsx_runtime_1.jsx)(container_1.Container, { children: () => (0, jsx_runtime_1.jsx)(status_variations_preview_1.StatusVariationsPreview, {}, void 0) }, void 0));
|
8
|
-
exports.StatusVariationsExample = StatusVariationsExample;
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Container } from './container';
|
3
|
+
import { StatusVariationsPreview } from './status-variations-preview';
|
4
|
+
export const StatusVariationsExample = () => (_jsx(Container, { children: () => _jsx(StatusVariationsPreview, {}, void 0) }, void 0));
|
9
5
|
//# sourceMappingURL=status-variations.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"status-variations.js","sourceRoot":"","sources":["../../src/demo/status-variations.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"status-variations.js","sourceRoot":"","sources":["../../src/demo/status-variations.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,MAAM,CAAC,MAAM,uBAAuB,GAAO,GAAG,EAAE,CAAC,CAC7C,KAAC,SAAS,cAAE,GAAG,EAAE,CAAC,KAAC,uBAAuB,aAAG,WAAa,CAC7D,CAAC"}
|
package/dist/index.js
CHANGED
@@ -1,18 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
var notifications_1 = require("./components/notifications");
|
9
|
-
Object.defineProperty(exports, "Notifications", { enumerable: true, get: function () { return notifications_1.Notifications; } });
|
10
|
-
var common_1 = require("./common");
|
11
|
-
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return common_1.Status; } });
|
12
|
-
var notifications_channel_1 = require("./notifications-channel");
|
13
|
-
Object.defineProperty(exports, "NOTIFICATIONS_CHANNEL_TOKEN", { enumerable: true, get: function () { return notifications_channel_1.NOTIFICATIONS_CHANNEL_TOKEN; } });
|
14
|
-
var notifications_service_1 = require("./notifications-service");
|
15
|
-
Object.defineProperty(exports, "NotificationsService", { enumerable: true, get: function () { return notifications_service_1.NotificationsService; } });
|
16
|
-
var register_1 = require("./register");
|
17
|
-
Object.defineProperty(exports, "register", { enumerable: true, get: function () { return register_1.register; } });
|
1
|
+
export { NotificationProcessStatus } from './api/notifications.api';
|
2
|
+
export { DefaultNotification } from './components/default-notification';
|
3
|
+
export { Notifications } from './components/notifications';
|
4
|
+
export { Status } from './common';
|
5
|
+
export { NOTIFICATIONS_CHANNEL_TOKEN } from './notifications-channel';
|
6
|
+
export { NotificationsService } from './notifications-service';
|
7
|
+
export { register } from './register';
|
18
8
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAA4B,MAAM,mCAAmC,CAAC;AAClG,OAAO,EAAE,aAAa,EAAsB,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAA8B,MAAM,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAwB,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAyB,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.NOTIFICATIONS_CHANNEL_TOKEN = void 0;
|
4
|
-
const react_ioc_1 = require("@servicetitan/react-ioc");
|
5
|
-
exports.NOTIFICATIONS_CHANNEL_TOKEN = (0, react_ioc_1.symbolToken)('NOTIFICATIONS_CHANNEL_TOKEN');
|
1
|
+
import { symbolToken } from '@servicetitan/react-ioc';
|
2
|
+
export const NOTIFICATIONS_CHANNEL_TOKEN = symbolToken('NOTIFICATIONS_CHANNEL_TOKEN');
|
6
3
|
//# sourceMappingURL=notifications-channel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notifications-channel.js","sourceRoot":"","sources":["../src/notifications-channel.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"notifications-channel.js","sourceRoot":"","sources":["../src/notifications-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAoBtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAClD,6BAA6B,CAChC,CAAC"}
|