@bigbinary/neeto-molecules 3.15.30 → 3.15.31
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/SubscriptionNotificationsContainer.js +77 -0
- package/dist/SubscriptionNotificationsContainer.js.map +1 -0
- package/dist/cjs/SubscriptionNotificationsContainer.js +79 -0
- package/dist/cjs/SubscriptionNotificationsContainer.js.map +1 -0
- package/package.json +1 -1
- package/src/translations/en.json +3 -0
- package/types/SubscriptionNotificationsContainer.d.ts +26 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { filterBy } from '@bigbinary/neeto-cist';
|
|
2
|
+
import { dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
|
|
3
|
+
import Callout from '@bigbinary/neetoui/Callout';
|
|
4
|
+
import Typography from '@bigbinary/neetoui/Typography';
|
|
5
|
+
import Button from '@bigbinary/neetoui/Button';
|
|
6
|
+
import { Trans } from 'react-i18next';
|
|
7
|
+
import { n } from './inject-css-DmrvuTKK.js';
|
|
8
|
+
import { useQuery } from '@tanstack/react-query';
|
|
9
|
+
import axios from 'axios';
|
|
10
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
var QUERY_KEYS = {
|
|
13
|
+
SUBSCRIPTIONS_LIST: "SUBSCRIPTIONS_LIST"
|
|
14
|
+
};
|
|
15
|
+
var SUBSCRIPTION_STATUS = {
|
|
16
|
+
past_due: "past_due"
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var css = ".neeto-molecules-subscription-notifications{border-radius:0}";
|
|
20
|
+
n(css,{});
|
|
21
|
+
|
|
22
|
+
var fetchSubscriptions = function fetchSubscriptions() {
|
|
23
|
+
return axios.get("neeto_sso/api/v1/server/subscriptions");
|
|
24
|
+
};
|
|
25
|
+
var subscriptionsApi = {
|
|
26
|
+
fetchSubscriptions: fetchSubscriptions
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var SUBSCRIPTIONS_LIST = QUERY_KEYS.SUBSCRIPTIONS_LIST;
|
|
30
|
+
var useFetchSubscriptions = function useFetchSubscriptions() {
|
|
31
|
+
return useQuery({
|
|
32
|
+
queryKey: [SUBSCRIPTIONS_LIST],
|
|
33
|
+
queryFn: subscriptionsApi.fetchSubscriptions
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var SubscriptionNotificationsContainer = function SubscriptionNotificationsContainer() {
|
|
38
|
+
var _useFetchSubscription = useFetchSubscriptions(),
|
|
39
|
+
_useFetchSubscription2 = _useFetchSubscription.data,
|
|
40
|
+
_useFetchSubscription3 = _useFetchSubscription2 === void 0 ? {} : _useFetchSubscription2,
|
|
41
|
+
_useFetchSubscription4 = _useFetchSubscription3.clientAppSubscriptions,
|
|
42
|
+
clientAppSubscriptions = _useFetchSubscription4 === void 0 ? [] : _useFetchSubscription4;
|
|
43
|
+
var visibleNotifications = filterBy({
|
|
44
|
+
status: SUBSCRIPTION_STATUS.past_due
|
|
45
|
+
}, clientAppSubscriptions);
|
|
46
|
+
return /*#__PURE__*/jsx(Fragment, {
|
|
47
|
+
children: visibleNotifications.map(function (_ref, index) {
|
|
48
|
+
var downgradeScheduledAt = _ref.downgradeScheduledAt,
|
|
49
|
+
customerPortalUrl = _ref.customerPortalUrl;
|
|
50
|
+
return /*#__PURE__*/jsx(Callout, {
|
|
51
|
+
className: "neeto-molecules-subscription-notifications w-full p-2.5",
|
|
52
|
+
"data-testid": "subscription-notifications",
|
|
53
|
+
style: "warning",
|
|
54
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
55
|
+
style: "body2",
|
|
56
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
57
|
+
i18nKey: "neetoMolecules.subscription.paymentFailedNotification",
|
|
58
|
+
components: {
|
|
59
|
+
a: /*#__PURE__*/jsx(Button, {
|
|
60
|
+
href: customerPortalUrl,
|
|
61
|
+
rel: "noreferrer",
|
|
62
|
+
style: "link",
|
|
63
|
+
target: "_blank"
|
|
64
|
+
})
|
|
65
|
+
},
|
|
66
|
+
values: {
|
|
67
|
+
downgradeScheduledAt: dateFormat.date(downgradeScheduledAt)
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
})
|
|
71
|
+
}, index);
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export { SubscriptionNotificationsContainer as default };
|
|
77
|
+
//# sourceMappingURL=SubscriptionNotificationsContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionNotificationsContainer.js","sources":["../src/components/SubscriptionNotificationsContainer/constants.js","../src/components/SubscriptionNotificationsContainer/api.js","../src/components/SubscriptionNotificationsContainer/useSubscriptionsApi.js","../src/components/SubscriptionNotificationsContainer/index.jsx"],"sourcesContent":["export const QUERY_KEYS = {\n SUBSCRIPTIONS_LIST: \"SUBSCRIPTIONS_LIST\",\n};\n\nexport const SUBSCRIPTION_STATUS = { past_due: \"past_due\" };\n","import axios from \"axios\";\n\nconst fetchSubscriptions = () =>\n axios.get(\"neeto_sso/api/v1/server/subscriptions\");\n\nconst subscriptionsApi = { fetchSubscriptions };\n\nexport default subscriptionsApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport subscriptionsApi from \"./api\";\nimport { QUERY_KEYS } from \"./constants\";\n\nconst { SUBSCRIPTIONS_LIST } = QUERY_KEYS;\n\nconst useFetchSubscriptions = () =>\n useQuery({\n queryKey: [SUBSCRIPTIONS_LIST],\n queryFn: subscriptionsApi.fetchSubscriptions,\n });\n\nexport { useFetchSubscriptions };\n","import { filterBy } from \"neetocist\";\nimport { dateFormat } from \"neetocommons/utils\";\nimport { Callout, Typography, Button } from \"neetoui\";\nimport { Trans } from \"react-i18next\";\n\nimport { SUBSCRIPTION_STATUS } from \"./constants\";\nimport \"./subscription-notifications.scss\";\nimport { useFetchSubscriptions } from \"./useSubscriptionsApi\";\n\nconst SubscriptionNotificationsContainer = () => {\n const { data: { clientAppSubscriptions = [] } = {} } =\n useFetchSubscriptions();\n\n const visibleNotifications = filterBy(\n { status: SUBSCRIPTION_STATUS.past_due },\n clientAppSubscriptions\n );\n\n return (\n <>\n {visibleNotifications.map(\n ({ downgradeScheduledAt, customerPortalUrl }, index) => (\n <Callout\n className=\"neeto-molecules-subscription-notifications w-full p-2.5\"\n data-testid=\"subscription-notifications\"\n key={index}\n style=\"warning\"\n >\n <Typography style=\"body2\">\n <Trans\n i18nKey=\"neetoMolecules.subscription.paymentFailedNotification\"\n components={{\n a: (\n <Button\n href={customerPortalUrl}\n rel=\"noreferrer\"\n style=\"link\"\n target=\"_blank\"\n />\n ),\n }}\n values={{\n downgradeScheduledAt: dateFormat.date(downgradeScheduledAt),\n }}\n />\n </Typography>\n </Callout>\n )\n )}\n </>\n );\n};\n\nexport default SubscriptionNotificationsContainer;\n"],"names":["QUERY_KEYS","SUBSCRIPTIONS_LIST","SUBSCRIPTION_STATUS","past_due","fetchSubscriptions","axios","get","subscriptionsApi","useFetchSubscriptions","useQuery","queryKey","queryFn","SubscriptionNotificationsContainer","_useFetchSubscription","_useFetchSubscription2","data","_useFetchSubscription3","_useFetchSubscription4","clientAppSubscriptions","visibleNotifications","filterBy","status","_jsx","_Fragment","children","map","_ref","index","downgradeScheduledAt","customerPortalUrl","Callout","className","style","Typography","Trans","i18nKey","components","a","Button","href","rel","target","values","dateFormat","date"],"mappings":";;;;;;;;;;;AAAO,IAAMA,UAAU,GAAG;AACxBC,EAAAA,kBAAkB,EAAE,oBAAA;AACtB,CAAC,CAAA;AAEM,IAAMC,mBAAmB,GAAG;AAAEC,EAAAA,QAAQ,EAAE,UAAA;AAAW,CAAC;;;;;ACF3D,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,GAAA;AAAA,EAAA,OACtBC,KAAK,CAACC,GAAG,CAAC,uCAAuC,CAAC,CAAA;AAAA,CAAA,CAAA;AAEpD,IAAMC,gBAAgB,GAAG;AAAEH,EAAAA,kBAAkB,E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BF,GAAA,CAACY,KAAK,EAAA;AACJC,YAAAA,OAAO,EAAC,uDAAuD;AAC/DC,YAAAA,UAAU,EAAE;cACVC,CAAC,eACCf,GAAA,CAACgB,MAAM,EAAA;AACLC,gBAAAA,IAAI,EAAEV,iBAAkB;AACxBW,gBAAAA,GAAG,EAAC,YAAY;AAChBR,gBAAAA,KAAK,EAAC,MAAM;AACZS,gBAAAA,MAAM,EAAC,QAAA;eACR,CAAA;aAEH;AACFC,YAAAA,MAAM,EAAE;AACNd,cAAAA,oBAAoB,EAAEe,UAAU,CAACC,IAAI,CAAChB,oBAAoB,CAAA;AAC5D,aAAA;WACD,CAAA;SACS,CAAA;AAAC,OAAA,EApBRD,KAqBE,CAAC,CAAA;KAEd,CAAA;AAAC,GACD,CAAC,CAAA;AAEP;;;;"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var neetoCist = require('@bigbinary/neeto-cist');
|
|
4
|
+
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
5
|
+
var Callout = require('@bigbinary/neetoui/Callout');
|
|
6
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
7
|
+
var Button = require('@bigbinary/neetoui/Button');
|
|
8
|
+
var reactI18next = require('react-i18next');
|
|
9
|
+
var injectCss = require('./inject-css-vQvjPR2x.js');
|
|
10
|
+
var reactQuery = require('@tanstack/react-query');
|
|
11
|
+
var axios = require('axios');
|
|
12
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
13
|
+
|
|
14
|
+
var QUERY_KEYS = {
|
|
15
|
+
SUBSCRIPTIONS_LIST: "SUBSCRIPTIONS_LIST"
|
|
16
|
+
};
|
|
17
|
+
var SUBSCRIPTION_STATUS = {
|
|
18
|
+
past_due: "past_due"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var css = ".neeto-molecules-subscription-notifications{border-radius:0}";
|
|
22
|
+
injectCss.n(css,{});
|
|
23
|
+
|
|
24
|
+
var fetchSubscriptions = function fetchSubscriptions() {
|
|
25
|
+
return axios.get("neeto_sso/api/v1/server/subscriptions");
|
|
26
|
+
};
|
|
27
|
+
var subscriptionsApi = {
|
|
28
|
+
fetchSubscriptions: fetchSubscriptions
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var SUBSCRIPTIONS_LIST = QUERY_KEYS.SUBSCRIPTIONS_LIST;
|
|
32
|
+
var useFetchSubscriptions = function useFetchSubscriptions() {
|
|
33
|
+
return reactQuery.useQuery({
|
|
34
|
+
queryKey: [SUBSCRIPTIONS_LIST],
|
|
35
|
+
queryFn: subscriptionsApi.fetchSubscriptions
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var SubscriptionNotificationsContainer = function SubscriptionNotificationsContainer() {
|
|
40
|
+
var _useFetchSubscription = useFetchSubscriptions(),
|
|
41
|
+
_useFetchSubscription2 = _useFetchSubscription.data,
|
|
42
|
+
_useFetchSubscription3 = _useFetchSubscription2 === void 0 ? {} : _useFetchSubscription2,
|
|
43
|
+
_useFetchSubscription4 = _useFetchSubscription3.clientAppSubscriptions,
|
|
44
|
+
clientAppSubscriptions = _useFetchSubscription4 === void 0 ? [] : _useFetchSubscription4;
|
|
45
|
+
var visibleNotifications = neetoCist.filterBy({
|
|
46
|
+
status: SUBSCRIPTION_STATUS.past_due
|
|
47
|
+
}, clientAppSubscriptions);
|
|
48
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
49
|
+
children: visibleNotifications.map(function (_ref, index) {
|
|
50
|
+
var downgradeScheduledAt = _ref.downgradeScheduledAt,
|
|
51
|
+
customerPortalUrl = _ref.customerPortalUrl;
|
|
52
|
+
return /*#__PURE__*/jsxRuntime.jsx(Callout, {
|
|
53
|
+
className: "neeto-molecules-subscription-notifications w-full p-2.5",
|
|
54
|
+
"data-testid": "subscription-notifications",
|
|
55
|
+
style: "warning",
|
|
56
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
57
|
+
style: "body2",
|
|
58
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
59
|
+
i18nKey: "neetoMolecules.subscription.paymentFailedNotification",
|
|
60
|
+
components: {
|
|
61
|
+
a: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
62
|
+
href: customerPortalUrl,
|
|
63
|
+
rel: "noreferrer",
|
|
64
|
+
style: "link",
|
|
65
|
+
target: "_blank"
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
values: {
|
|
69
|
+
downgradeScheduledAt: utils.dateFormat.date(downgradeScheduledAt)
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
}, index);
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
module.exports = SubscriptionNotificationsContainer;
|
|
79
|
+
//# sourceMappingURL=SubscriptionNotificationsContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionNotificationsContainer.js","sources":["../../src/components/SubscriptionNotificationsContainer/constants.js","../../src/components/SubscriptionNotificationsContainer/api.js","../../src/components/SubscriptionNotificationsContainer/useSubscriptionsApi.js","../../src/components/SubscriptionNotificationsContainer/index.jsx"],"sourcesContent":["export const QUERY_KEYS = {\n SUBSCRIPTIONS_LIST: \"SUBSCRIPTIONS_LIST\",\n};\n\nexport const SUBSCRIPTION_STATUS = { past_due: \"past_due\" };\n","import axios from \"axios\";\n\nconst fetchSubscriptions = () =>\n axios.get(\"neeto_sso/api/v1/server/subscriptions\");\n\nconst subscriptionsApi = { fetchSubscriptions };\n\nexport default subscriptionsApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport subscriptionsApi from \"./api\";\nimport { QUERY_KEYS } from \"./constants\";\n\nconst { SUBSCRIPTIONS_LIST } = QUERY_KEYS;\n\nconst useFetchSubscriptions = () =>\n useQuery({\n queryKey: [SUBSCRIPTIONS_LIST],\n queryFn: subscriptionsApi.fetchSubscriptions,\n });\n\nexport { useFetchSubscriptions };\n","import { filterBy } from \"neetocist\";\nimport { dateFormat } from \"neetocommons/utils\";\nimport { Callout, Typography, Button } from \"neetoui\";\nimport { Trans } from \"react-i18next\";\n\nimport { SUBSCRIPTION_STATUS } from \"./constants\";\nimport \"./subscription-notifications.scss\";\nimport { useFetchSubscriptions } from \"./useSubscriptionsApi\";\n\nconst SubscriptionNotificationsContainer = () => {\n const { data: { clientAppSubscriptions = [] } = {} } =\n useFetchSubscriptions();\n\n const visibleNotifications = filterBy(\n { status: SUBSCRIPTION_STATUS.past_due },\n clientAppSubscriptions\n );\n\n return (\n <>\n {visibleNotifications.map(\n ({ downgradeScheduledAt, customerPortalUrl }, index) => (\n <Callout\n className=\"neeto-molecules-subscription-notifications w-full p-2.5\"\n data-testid=\"subscription-notifications\"\n key={index}\n style=\"warning\"\n >\n <Typography style=\"body2\">\n <Trans\n i18nKey=\"neetoMolecules.subscription.paymentFailedNotification\"\n components={{\n a: (\n <Button\n href={customerPortalUrl}\n rel=\"noreferrer\"\n style=\"link\"\n target=\"_blank\"\n />\n ),\n }}\n values={{\n downgradeScheduledAt: dateFormat.date(downgradeScheduledAt),\n }}\n />\n </Typography>\n </Callout>\n )\n )}\n </>\n );\n};\n\nexport default SubscriptionNotificationsContainer;\n"],"names":["QUERY_KEYS","SUBSCRIPTIONS_LIST","SUBSCRIPTION_STATUS","past_due","fetchSubscriptions","axios","get","subscriptionsApi","useFetchSubscriptions","useQuery","queryKey","queryFn","SubscriptionNotificationsContainer","_useFetchSubscription","_useFetchSubscription2","data","_useFetchSubscription3","_useFetchSubscription4","clientAppSubscriptions","visibleNotifications","filterBy","status","_jsx","_Fragment","children","map","_ref","index","downgradeScheduledAt","customerPortalUrl","Callout","className","style","Typography","Trans","i18nKey","components","a","Button","href","rel","target","values","dateFormat","date"],"mappings":";;;;;;;;;;;;;AAAO,IAAMA,UAAU,GAAG;AACxBC,EAAAA,kBAAkB,EAA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ApBE,oBAAoB;QAAEC,iBAAiB,GAAAH,IAAA,CAAjBG,iBAAiB,CAAA;MAAA,oBACxCP,cAAA,CAACQ,OAAO,EAAA;AACNC,QAAAA,SAAS,EAAC,yDAAyD;AACnE,QAAA,aAAA,EAAY,4BAA4B;AAExCC,QAAAA,KAAK,EAAC,SAAS;QAAAR,QAAA,eAEfF,cAAA,CAACW,UAAU,EAAA;AAACD,UAAAA,KAAK,EAAC,OAAO;UAAAR,QAAA,eACvBF,cAAA,CAACY,kBAAK,EAAA;AACJC,YAAAA,OAAO,EAAC,uDAAuD;AAC/DC,YAAAA,UAAU,EAAE;cACVC,CAAC,eACCf,cAAA,CAACgB,MAAM,EAAA;AACLC,gBAAAA,IAAI,EAAEV,iBAAkB;AACxBW,gBAAAA,GAAG,EAAC,YAAY;AAChBR,gBAAAA,KAAK,EAAC,MAAM;AACZS,gBAAAA,MAAM,EAAC,QAAA;eACR,CAAA;aAEH;AACFC,YAAAA,MAAM,EAAE;AACNd,cAAAA,oBAAoB,EAAEe,gBAAU,CAACC,IAAI,CAAChB,oBAAoB,CAAA;AAC5D,aAAA;WACD,CAAA;SACS,CAAA;AAAC,OAAA,EApBRD,KAqBE,CAAC,CAAA;KAEd,CAAA;AAAC,GACD,CAAC,CAAA;AAEP;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.31",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
package/src/translations/en.json
CHANGED
|
@@ -845,6 +845,9 @@
|
|
|
845
845
|
"advancedSearch": "Advanced search",
|
|
846
846
|
"noDataTitle": "No matches found.",
|
|
847
847
|
"noDataDesc": "Try refining your keywords."
|
|
848
|
+
},
|
|
849
|
+
"subscription": {
|
|
850
|
+
"paymentFailedNotification": "<strong>Action required: </strong> Your subscription payment has failed. <a>Click here</a> for details. If no action is taken, your subscription will be downgraded by {{downgradeScheduledAt, anyCase}}."
|
|
848
851
|
}
|
|
849
852
|
}
|
|
850
853
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* A container that shows subscription notifications for the current workspace, if available.
|
|
6
|
+
*
|
|
7
|
+
* Notifications are automatically fetched from NeetoAuth and displayed within the container.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* import SubscriptionNotificationsContainer from "@bigbinary/neeto-molecules/SubscriptionNotificationsContainer";
|
|
12
|
+
*
|
|
13
|
+
* const Main = () => (
|
|
14
|
+
* <>
|
|
15
|
+
* <ToastContainer />
|
|
16
|
+
* <SubscriptionNotificationsContainer />
|
|
17
|
+
* <Switch>
|
|
18
|
+
* <Route />
|
|
19
|
+
* </Switch>
|
|
20
|
+
* </>
|
|
21
|
+
* );
|
|
22
|
+
* @endexample
|
|
23
|
+
*/
|
|
24
|
+
declare const SubscriptionNotificationsContainer: React.FC<{}>;
|
|
25
|
+
|
|
26
|
+
export { SubscriptionNotificationsContainer as default };
|