@mx-cartographer/experiences 9.7.48 → 9.7.50
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 +11 -0
- package/dist/core/constants/Help.d.ts +4 -27
- package/dist/core/constants/Help.es.js +46 -15
- package/dist/core/constants/Help.es.js.map +1 -1
- package/dist/core/types/Help.d.ts +13 -0
- package/dist/core/utils/HelpUtil.es.js +7 -7
- package/dist/core/utils/HelpUtil.es.js.map +1 -1
- package/dist/help/components/Help.es.js +30 -29
- package/dist/help/components/Help.es.js.map +1 -1
- package/dist/help/components/content/ContentItem.es.js +24 -23
- package/dist/help/components/content/ContentItem.es.js.map +1 -1
- package/dist/help/components/content/section/General.es.js +37 -32
- package/dist/help/components/content/section/General.es.js.map +1 -1
- package/dist/help/components/content/section/LoginIssues.es.js +10 -7
- package/dist/help/components/content/section/LoginIssues.es.js.map +1 -1
- package/dist/help/components/content/section/index.es.js +24 -24
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js +24 -20
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js.map +1 -1
- package/dist/transactions/components/shared/TransactionDetails.es.js +186 -159
- package/dist/transactions/components/shared/TransactionDetails.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [9.7.50] - 10-27-2026
|
|
2
|
+
|
|
3
|
+
- **CHANGED** - Help Request Support: the Institution card no longer lists "Login Issues" (it went straight to ticket submission); Login Issues is its own card that opens the help articles (WEC-1877)
|
|
4
|
+
- **ADDED** - The four Login Issues help articles are also listed under General FAQs on the main help screen, opening the same article pages (General FAQs delegates those topics to the `LoginIssues` section) (WEC-1877)
|
|
5
|
+
- **CHANGED** - General FAQs lists the four Login Issues articles first. Topics can set `copyIndex` to read a specific copy label, so the display order changes without reordering the copy (WEC-1877)
|
|
6
|
+
- **FIXED** - Even line spacing in Request Support's Contact Your Bank bullets (the theme's 44px list-item minimum padded one-line bullets but not wrapped ones) and between Login Issues article steps, via an optional `itemGap` on the shared help `List` (WEC-1877)
|
|
7
|
+
|
|
8
|
+
## [9.7.49] - 10-26-2026
|
|
9
|
+
|
|
10
|
+
- **FIXED** - Transaction Details drilldown design QA (WEC-2137): the merchant logo no longer carries an elevation shadow (64px, radius 8, flat), and the account feed line is 9/12 bold 700 uppercase with 0.27px tracking in `text.secondary`, with the masked account number on that line instead of the account name line. A long feed description truncates in its line without pushing the number out, the number is omitted when the account has none, and the logo keeps a `background.paper` surface
|
|
11
|
+
|
|
1
12
|
## [9.7.48] - 10-26-2026
|
|
2
13
|
|
|
3
14
|
- **ADDED** - Cost of Living to Income's "View more" drawer on Insights 2.0 (MEW2-3368): the `transaction_history_block` `cost_living_to_income` entry, a double bar of the living-cost category vs income per month with month tabs and category / Income tabs, listing the tapped bar's transactions by its `aggregated_guids` and the empty state for a bar that names none. Configuration only, on the double-bar drawer from WEC-2101: the cost bar takes the beat category's colour and income chart4, as the pulse drawer did. Fixture (`CostOfLivingToIncomeBeats.ts` and its transactions in `CostOfLivingToIncomeTransactions.ts`, outside the shared mock generator), drawer story, contract test and `docs/action-blocks/transaction-history-block.md`
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import { HelpByCategoryDefinition } from '../types/Help';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
title: string;
|
|
6
|
-
topics: {
|
|
7
|
-
topicKey: string;
|
|
8
|
-
}[];
|
|
9
|
-
flags?: undefined;
|
|
10
|
-
} | {
|
|
11
|
-
flags: string[];
|
|
12
|
-
guid: string;
|
|
13
|
-
icon: string;
|
|
14
|
-
title: string;
|
|
15
|
-
topics: {
|
|
16
|
-
topicKey: string;
|
|
17
|
-
}[];
|
|
18
|
-
} | {
|
|
19
|
-
flags: string[];
|
|
20
|
-
guid: string;
|
|
21
|
-
icon: string;
|
|
22
|
-
title: string;
|
|
23
|
-
topics: {
|
|
24
|
-
label: string;
|
|
25
|
-
topicKey: string;
|
|
26
|
-
}[];
|
|
27
|
-
})[];
|
|
1
|
+
import { HelpByCategoryDefinition, HelpCategoryDefinition } from '../types/Help';
|
|
2
|
+
export declare const LOGIN_ISSUE_TOPIC_KEYS: readonly ["not-receiving-code", "wrong-phone-number", "outdated-contact-info", "new-code-or-token"];
|
|
3
|
+
export declare const isLoginIssueTopic: (topicKey: string) => boolean;
|
|
4
|
+
export declare const HELP_CATEGORIES: HelpCategoryDefinition[];
|
|
28
5
|
export declare const HELP_CONTENT: {
|
|
29
6
|
accounts: {
|
|
30
7
|
guid: string;
|
|
@@ -1,13 +1,46 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t = [
|
|
2
|
+
"not-receiving-code",
|
|
3
|
+
"wrong-phone-number",
|
|
4
|
+
"outdated-contact-info",
|
|
5
|
+
"new-code-or-token"
|
|
6
|
+
], i = (e) => t.includes(e), o = [
|
|
2
7
|
{
|
|
3
8
|
guid: "general",
|
|
4
9
|
icon: "info",
|
|
5
10
|
title: "General FAQs",
|
|
6
11
|
topics: [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
{
|
|
13
|
+
topicKey: "not-receiving-code",
|
|
14
|
+
copyIndex: 4
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
topicKey: "wrong-phone-number",
|
|
18
|
+
copyIndex: 5
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
topicKey: "outdated-contact-info",
|
|
22
|
+
copyIndex: 6
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
topicKey: "new-code-or-token",
|
|
26
|
+
copyIndex: 7
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
topicKey: "is-my-data-private-and-secure",
|
|
30
|
+
copyIndex: 0
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
topicKey: "why-are-some-of-my-transactions-uncategorized",
|
|
34
|
+
copyIndex: 1
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
topicKey: "why-cant-i-see-the-software",
|
|
38
|
+
copyIndex: 2
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
topicKey: "how-do-i-log-out-of-the-software",
|
|
42
|
+
copyIndex: 3
|
|
43
|
+
}
|
|
11
44
|
]
|
|
12
45
|
},
|
|
13
46
|
{
|
|
@@ -94,10 +127,7 @@ var e = [
|
|
|
94
127
|
guid: "recurring_transactions",
|
|
95
128
|
icon: "currency_exchange",
|
|
96
129
|
title: "Recurring Transactions",
|
|
97
|
-
topics: [{
|
|
98
|
-
label: "Recurring Transactions Widget Overview",
|
|
99
|
-
topicKey: "overview"
|
|
100
|
-
}]
|
|
130
|
+
topics: [{ topicKey: "overview" }]
|
|
101
131
|
},
|
|
102
132
|
{
|
|
103
133
|
flags: ["show_investments_widget_in_master"],
|
|
@@ -126,7 +156,7 @@ var e = [
|
|
|
126
156
|
title: "Mobile",
|
|
127
157
|
topics: [{ topicKey: "mobile-devices-overview" }]
|
|
128
158
|
}
|
|
129
|
-
],
|
|
159
|
+
], n = [
|
|
130
160
|
{
|
|
131
161
|
guid: "personal_information",
|
|
132
162
|
icon: "person",
|
|
@@ -153,7 +183,6 @@ var e = [
|
|
|
153
183
|
topics: [
|
|
154
184
|
{ type: "external" },
|
|
155
185
|
{ type: "other" },
|
|
156
|
-
{ type: "internal" },
|
|
157
186
|
{ type: "internal" }
|
|
158
187
|
]
|
|
159
188
|
},
|
|
@@ -181,7 +210,7 @@ var e = [
|
|
|
181
210
|
icon: "call",
|
|
182
211
|
topics: []
|
|
183
212
|
}
|
|
184
|
-
],
|
|
213
|
+
], c = [
|
|
185
214
|
{ type: "external" },
|
|
186
215
|
{ type: "external" },
|
|
187
216
|
{ type: "external" },
|
|
@@ -190,9 +219,11 @@ var e = [
|
|
|
190
219
|
{ type: "internal" }
|
|
191
220
|
];
|
|
192
221
|
export {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
222
|
+
n as HELP_BY_CATEGORY_LIST,
|
|
223
|
+
o as HELP_CATEGORIES,
|
|
224
|
+
t as LOGIN_ISSUE_TOPIC_KEYS,
|
|
225
|
+
c as POPULAR_TOPICS_LIST,
|
|
226
|
+
i as isLoginIssueTopic
|
|
196
227
|
};
|
|
197
228
|
|
|
198
229
|
//# sourceMappingURL=Help.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Help.es.js","names":[],"sources":["../../../src/core/constants/Help.ts"],"sourcesContent":["import type { HelpByCategoryDefinition } from '../types/Help'\n\nexport const HELP_CATEGORIES = [\n {\n guid: 'general',\n icon: 'info',\n title: 'General FAQs',\n topics: [\n {\n topicKey: 'is-my-data-private-and-secure',\n },\n {\n topicKey: 'why-are-some-of-my-transactions-uncategorized',\n },\n {\n topicKey: 'why-cant-i-see-the-software',\n },\n {\n topicKey: 'how-do-i-log-out-of-the-software',\n },\n ],\n },\n {\n flags: ['show_accounts_widget_in_master'],\n guid: 'accounts',\n icon: 'account_balance',\n title: 'Accounts',\n topics: [\n {\n topicKey: 'accounts-overview',\n },\n {\n topicKey: 'trouble-adding-an-account',\n },\n {\n topicKey: 'need-to-fix-a-broken-account',\n },\n {\n topicKey: 'seeing-outdated-accounts-or-paid-off-loans',\n },\n {\n topicKey: 'seeing-duplicate-accounts',\n },\n ],\n },\n {\n flags: ['show_transactions_widget_in_master'],\n guid: 'transactions',\n icon: 'receipt_long',\n title: 'Transactions',\n topics: [\n {\n topicKey: 'transactions-overview',\n },\n {\n topicKey: 'seeing-duplicate-transactions',\n },\n {\n topicKey: 'missing-transactions',\n },\n {\n topicKey: 'pending-transactions',\n },\n {\n topicKey: 'exporting-transactions',\n },\n ],\n },\n {\n flags: ['show_spending_widget_in_master'],\n guid: 'spending',\n icon: 'donut_small',\n title: 'Spending',\n topics: [\n {\n topicKey: 'spending-widget-overview',\n },\n {\n topicKey: 'not-seeing-all-spending-categories',\n },\n {\n topicKey: 'spending-categories-seem-inaccurate',\n },\n ],\n },\n {\n flags: ['show_budgets_widget_in_master'],\n guid: 'budgets',\n icon: 'bubble_chart',\n title: 'Budgets',\n topics: [\n {\n topicKey: 'budgets-overview',\n },\n ],\n },\n {\n flags: ['show_trends_widget_in_master'],\n guid: 'trends',\n icon: 'multiline_chart',\n title: 'Trends',\n topics: [\n {\n topicKey: 'trends-overview',\n },\n ],\n },\n {\n flags: ['show_debts_widget_in_master'],\n guid: 'debts',\n icon: 'note_stack',\n title: 'Debts',\n topics: [\n {\n topicKey: 'debts-overview',\n },\n ],\n },\n {\n flags: ['show_net_worth_widget_in_master'],\n guid: 'networth',\n icon: 'elevation',\n title: 'Net Worth',\n topics: [\n {\n topicKey: 'net-worth-overview',\n },\n ],\n },\n {\n flags: ['show_goals_widget_in_master'],\n guid: 'goals',\n icon: 'trophy',\n title: 'Goals',\n topics: [\n {\n topicKey: 'goals-overview',\n },\n ],\n },\n {\n flags: ['show_cash_flow_widget_in_master'],\n guid: 'cashflow',\n icon: 'flowsheet',\n title: 'Cash Flow',\n topics: [\n {\n topicKey: 'cash-flow-overview',\n },\n ],\n },\n {\n flags: ['show_recurring_transactions_widget_in_master'],\n guid: 'recurring_transactions',\n icon: 'currency_exchange',\n title: 'Recurring Transactions',\n topics: [\n {\n label: 'Recurring Transactions Widget Overview',\n topicKey: 'overview',\n },\n ],\n },\n {\n flags: ['show_investments_widget_in_master'],\n guid: 'investments',\n icon: 'bid_landscape',\n title: 'Investments',\n topics: [\n {\n topicKey: 'investments-overview',\n },\n ],\n },\n {\n flags: ['show_notifications_widget_in_master'],\n guid: 'alerts',\n icon: 'account_balance',\n title: 'Alerts',\n topics: [\n {\n topicKey: 'notifications-overview',\n },\n ],\n },\n {\n guid: 'insights',\n icon: 'lightbulb',\n title: 'Insights',\n topics: [\n {\n topicKey: 'insights-widget-overview',\n },\n ],\n },\n {\n flags: ['display_mobile_devices_in_settings'],\n guid: 'mobile',\n icon: 'phone_iphone',\n title: 'Mobile',\n topics: [\n {\n topicKey: 'mobile-devices-overview',\n },\n ],\n },\n]\n\nexport const HELP_CONTENT = {\n accounts: {\n guid: 'accounts',\n title: 'Accounts',\n topicTitle: 'Accounts Overview',\n content: {\n section1: {\n description:\n \"FinTech Solutions is committed to revolutionizing the way individuals and businesses manage their finances. By providing an integrated platform of smart tools, we make it easier to track personal expenses, manage investments, and optimize business finances all in one place. Our innovative technology empowers users to make informed decisions, whether it's monitoring their spending, analyzing investment performance, or ensuring smooth cash flow for their business operations. With a focus on security, simplicity, and efficiency, FinTech Solutions helps users navigate the complexities of finance with confidence and clarity. Our platform is designed to be intuitive, scalable, and adaptable, allowing users to customize their financial strategies according to their unique needs, ensuring long-term growth and financial success.\",\n image: 'https://assets.mx.com/images/company/careers/value-box-bg.png',\n title: 'Revolutionizing Financial Management',\n },\n section2: {\n description:\n \"FinTech Solutions is committed to revolutionizing the way individuals and businesses manage their finances. By providing an integrated platform of smart tools, we make it easier to track personal expenses, manage investments, and optimize business finances all in one place. Our innovative technology empowers users to make informed decisions, whether it's monitoring their spending, analyzing investment performance, or ensuring smooth cash flow for their business operations. With a focus on security, simplicity, and efficiency, FinTech Solutions helps users navigate the complexities of finance with confidence and clarity.\",\n image: 'https://assets.mx.com/images/company/careers/value-box-bg.png',\n listItems: [\n 'Easily track expenses and manage personal finances.',\n 'Easily track expenses and manage personal finances.',\n 'Manage cash flow and financial operations in one platform.',\n 'Ensure your financial data is protected with industry-leading security measures',\n ],\n listTitle: 'Effortless Financial Solutions',\n subDescription:\n 'FinTech Solutions combines advanced technology with intuitive tools to make financial management easy for both individuals and businesses. Our platform offers everything from budgeting features to real-time insights, empowering users to take control of their financial future with confidence and security.',\n subTitle: 'Simplifying Financial Management',\n title: 'Empowering Financial Management',\n },\n section3: {\n description:\n 'FinTech Solutions provides the tools and insights needed to make informed financial choices. From budgeting and investment tracking to comprehensive business financial management, our platform delivers real-time data and personalized recommendations. With a focus on ease of use and security, we help users navigate the complexities of finance and achieve their financial goals with confidence.',\n image: 'https://assets.mx.com/images/company/careers/value-box-bg.png',\n listItems: [\n 'Track expenses, set budgets, and achieve savings goals.',\n 'Monitor and analyze your investments with real-time updates.',\n 'Streamline cash flow management and financial reporting.',\n 'Protect your financial data with top-tier encryption and security protocols.',\n ],\n listTitle: 'Complete Financial Tools',\n title: 'Empowering Smarter Financial Decisions',\n },\n section4: {\n description:\n \"FinTech Solutions simplifies managing your finances with powerful tools designed for both individuals and businesses. Whether you're tracking personal spending, optimizing investments, or streamlining business operations, our platform provides the insights and features you need to make confident financial decisions. With a focus on ease of use and data security, we help you stay in control of your financial future. Our innovative solutions offer real-time updates, personalized recommendations, and automated reporting, ensuring you're always in the know. Plus, with scalable features tailored to your needs, our platform grows with you, making it the ideal choice for anyone looking to take charge of their financial journey.\",\n title: 'Seamless Financial Management',\n },\n },\n },\n}\n\n// TODO: Add more keys for additional logic\nexport const HELP_BY_CATEGORY_LIST: HelpByCategoryDefinition[] = [\n {\n guid: 'personal_information',\n icon: 'person',\n topics: [\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'internal',\n },\n {\n type: 'external',\n },\n ],\n },\n {\n guid: 'money_movement',\n icon: 'currency_exchange',\n topics: [\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n ],\n },\n {\n guid: 'institution',\n icon: 'account_balance',\n topics: [\n {\n type: 'external',\n },\n {\n type: 'other',\n },\n {\n type: 'internal',\n },\n {\n type: 'internal',\n },\n ],\n },\n {\n guid: 'transactions',\n icon: 'compare_arrows',\n topics: [\n {\n type: 'internal',\n },\n {\n type: 'external',\n },\n {\n type: 'internal',\n },\n ],\n },\n {\n guid: 'login_issues',\n icon: 'lock',\n topics: [\n { topicKey: 'not-receiving-code' },\n { topicKey: 'wrong-phone-number' },\n { topicKey: 'outdated-contact-info' },\n { topicKey: 'new-code-or-token' },\n ],\n },\n {\n guid: 'contact_your_bank',\n icon: 'call',\n topics: [],\n },\n]\n\n// TODO: Add more keys for additional logic\nexport const POPULAR_TOPICS_LIST = [\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'other',\n },\n {\n type: 'internal',\n },\n]\n"],"mappings":"AAEA,IAAa,IAAkB;AAAA,EAC7B;AAAA,IACE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,EACE,UAAU,gCACZ;AAAA,MACA,EACE,UAAU,gDACZ;AAAA,MACA,EACE,UAAU,8BACZ;AAAA,MACA,EACE,UAAU,mCACZ;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,gCAAgC;AAAA,IACxC,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,EACE,UAAU,oBACZ;AAAA,MACA,EACE,UAAU,4BACZ;AAAA,MACA,EACE,UAAU,+BACZ;AAAA,MACA,EACE,UAAU,6CACZ;AAAA,MACA,EACE,UAAU,4BACZ;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,oCAAoC;AAAA,IAC5C,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,EACE,UAAU,wBACZ;AAAA,MACA,EACE,UAAU,gCACZ;AAAA,MACA,EACE,UAAU,uBACZ;AAAA,MACA,EACE,UAAU,uBACZ;AAAA,MACA,EACE,UAAU,yBACZ;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,gCAAgC;AAAA,IACxC,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,MACN,EACE,UAAU,2BACZ;AAAA,MACA,EACE,UAAU,qCACZ;AAAA,MACA,EACE,UAAU,sCACZ;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,+BAA+B;AAAA,IACvC,MAAM;AAAA,IACN,MAAM;AAAA,IACN,O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UAAU,wBAAwB;AAAA,MACpC,EAAE,UAAU,oBAAoB;AAAA,IAClC;AAAA,EACF;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ,CAAC;AAAA,EACX;AACF,GAGa,IAAsB;AAAA,EACjC,EACE,MAAM,WACR;AAAA,EACA,EACE,MAAM,WACR;AAAA,EACA,EACE,MAAM,WACR;AAAA,EACA,EACE,MAAM,WACR;AAAA,EACA,EACE,MAAM,QACR;AAAA,EACA,EACE,MAAM,WACR;AACF"}
|
|
1
|
+
{"version":3,"file":"Help.es.js","names":[],"sources":["../../../src/core/constants/Help.ts"],"sourcesContent":["import type { HelpByCategoryDefinition, HelpCategoryDefinition } from '../types/Help'\n\n// Topic keys of the Login Issues articles. They are listed under General FAQs and the Login Issues\n// support card; the LoginIssues section renders them in both places.\nexport const LOGIN_ISSUE_TOPIC_KEYS = [\n 'not-receiving-code',\n 'wrong-phone-number',\n 'outdated-contact-info',\n 'new-code-or-token',\n] as const\n\nexport const isLoginIssueTopic = (topicKey: string) =>\n (LOGIN_ISSUE_TOPIC_KEYS as readonly string[]).includes(topicKey)\n\n// Topics pair with `copy.category_list[guid].topics` by position, so their order must match the\n// copy service's. A topic with `copyIndex` reads that copy label instead, so it can be shown in a\n// different order without reordering the copy.\nexport const HELP_CATEGORIES: HelpCategoryDefinition[] = [\n {\n guid: 'general',\n icon: 'info',\n title: 'General FAQs',\n topics: [\n // Login Issues articles first (rendered by the LoginIssues section); their copy labels sit\n // after the general ones, hence the explicit copyIndex.\n { topicKey: 'not-receiving-code', copyIndex: 4 },\n { topicKey: 'wrong-phone-number', copyIndex: 5 },\n { topicKey: 'outdated-contact-info', copyIndex: 6 },\n { topicKey: 'new-code-or-token', copyIndex: 7 },\n { topicKey: 'is-my-data-private-and-secure', copyIndex: 0 },\n {\n topicKey: 'why-are-some-of-my-transactions-uncategorized',\n copyIndex: 1,\n },\n { topicKey: 'why-cant-i-see-the-software', copyIndex: 2 },\n { topicKey: 'how-do-i-log-out-of-the-software', copyIndex: 3 },\n ],\n },\n {\n flags: ['show_accounts_widget_in_master'],\n guid: 'accounts',\n icon: 'account_balance',\n title: 'Accounts',\n topics: [\n {\n topicKey: 'accounts-overview',\n },\n {\n topicKey: 'trouble-adding-an-account',\n },\n {\n topicKey: 'need-to-fix-a-broken-account',\n },\n {\n topicKey: 'seeing-outdated-accounts-or-paid-off-loans',\n },\n {\n topicKey: 'seeing-duplicate-accounts',\n },\n ],\n },\n {\n flags: ['show_transactions_widget_in_master'],\n guid: 'transactions',\n icon: 'receipt_long',\n title: 'Transactions',\n topics: [\n {\n topicKey: 'transactions-overview',\n },\n {\n topicKey: 'seeing-duplicate-transactions',\n },\n {\n topicKey: 'missing-transactions',\n },\n {\n topicKey: 'pending-transactions',\n },\n {\n topicKey: 'exporting-transactions',\n },\n ],\n },\n {\n flags: ['show_spending_widget_in_master'],\n guid: 'spending',\n icon: 'donut_small',\n title: 'Spending',\n topics: [\n {\n topicKey: 'spending-widget-overview',\n },\n {\n topicKey: 'not-seeing-all-spending-categories',\n },\n {\n topicKey: 'spending-categories-seem-inaccurate',\n },\n ],\n },\n {\n flags: ['show_budgets_widget_in_master'],\n guid: 'budgets',\n icon: 'bubble_chart',\n title: 'Budgets',\n topics: [\n {\n topicKey: 'budgets-overview',\n },\n ],\n },\n {\n flags: ['show_trends_widget_in_master'],\n guid: 'trends',\n icon: 'multiline_chart',\n title: 'Trends',\n topics: [\n {\n topicKey: 'trends-overview',\n },\n ],\n },\n {\n flags: ['show_debts_widget_in_master'],\n guid: 'debts',\n icon: 'note_stack',\n title: 'Debts',\n topics: [\n {\n topicKey: 'debts-overview',\n },\n ],\n },\n {\n flags: ['show_net_worth_widget_in_master'],\n guid: 'networth',\n icon: 'elevation',\n title: 'Net Worth',\n topics: [\n {\n topicKey: 'net-worth-overview',\n },\n ],\n },\n {\n flags: ['show_goals_widget_in_master'],\n guid: 'goals',\n icon: 'trophy',\n title: 'Goals',\n topics: [\n {\n topicKey: 'goals-overview',\n },\n ],\n },\n {\n flags: ['show_cash_flow_widget_in_master'],\n guid: 'cashflow',\n icon: 'flowsheet',\n title: 'Cash Flow',\n topics: [\n {\n topicKey: 'cash-flow-overview',\n },\n ],\n },\n {\n flags: ['show_recurring_transactions_widget_in_master'],\n guid: 'recurring_transactions',\n icon: 'currency_exchange',\n title: 'Recurring Transactions',\n topics: [\n {\n topicKey: 'overview',\n },\n ],\n },\n {\n flags: ['show_investments_widget_in_master'],\n guid: 'investments',\n icon: 'bid_landscape',\n title: 'Investments',\n topics: [\n {\n topicKey: 'investments-overview',\n },\n ],\n },\n {\n flags: ['show_notifications_widget_in_master'],\n guid: 'alerts',\n icon: 'account_balance',\n title: 'Alerts',\n topics: [\n {\n topicKey: 'notifications-overview',\n },\n ],\n },\n {\n guid: 'insights',\n icon: 'lightbulb',\n title: 'Insights',\n topics: [\n {\n topicKey: 'insights-widget-overview',\n },\n ],\n },\n {\n flags: ['display_mobile_devices_in_settings'],\n guid: 'mobile',\n icon: 'phone_iphone',\n title: 'Mobile',\n topics: [\n {\n topicKey: 'mobile-devices-overview',\n },\n ],\n },\n]\n\nexport const HELP_CONTENT = {\n accounts: {\n guid: 'accounts',\n title: 'Accounts',\n topicTitle: 'Accounts Overview',\n content: {\n section1: {\n description:\n \"FinTech Solutions is committed to revolutionizing the way individuals and businesses manage their finances. By providing an integrated platform of smart tools, we make it easier to track personal expenses, manage investments, and optimize business finances all in one place. Our innovative technology empowers users to make informed decisions, whether it's monitoring their spending, analyzing investment performance, or ensuring smooth cash flow for their business operations. With a focus on security, simplicity, and efficiency, FinTech Solutions helps users navigate the complexities of finance with confidence and clarity. Our platform is designed to be intuitive, scalable, and adaptable, allowing users to customize their financial strategies according to their unique needs, ensuring long-term growth and financial success.\",\n image: 'https://assets.mx.com/images/company/careers/value-box-bg.png',\n title: 'Revolutionizing Financial Management',\n },\n section2: {\n description:\n \"FinTech Solutions is committed to revolutionizing the way individuals and businesses manage their finances. By providing an integrated platform of smart tools, we make it easier to track personal expenses, manage investments, and optimize business finances all in one place. Our innovative technology empowers users to make informed decisions, whether it's monitoring their spending, analyzing investment performance, or ensuring smooth cash flow for their business operations. With a focus on security, simplicity, and efficiency, FinTech Solutions helps users navigate the complexities of finance with confidence and clarity.\",\n image: 'https://assets.mx.com/images/company/careers/value-box-bg.png',\n listItems: [\n 'Easily track expenses and manage personal finances.',\n 'Easily track expenses and manage personal finances.',\n 'Manage cash flow and financial operations in one platform.',\n 'Ensure your financial data is protected with industry-leading security measures',\n ],\n listTitle: 'Effortless Financial Solutions',\n subDescription:\n 'FinTech Solutions combines advanced technology with intuitive tools to make financial management easy for both individuals and businesses. Our platform offers everything from budgeting features to real-time insights, empowering users to take control of their financial future with confidence and security.',\n subTitle: 'Simplifying Financial Management',\n title: 'Empowering Financial Management',\n },\n section3: {\n description:\n 'FinTech Solutions provides the tools and insights needed to make informed financial choices. From budgeting and investment tracking to comprehensive business financial management, our platform delivers real-time data and personalized recommendations. With a focus on ease of use and security, we help users navigate the complexities of finance and achieve their financial goals with confidence.',\n image: 'https://assets.mx.com/images/company/careers/value-box-bg.png',\n listItems: [\n 'Track expenses, set budgets, and achieve savings goals.',\n 'Monitor and analyze your investments with real-time updates.',\n 'Streamline cash flow management and financial reporting.',\n 'Protect your financial data with top-tier encryption and security protocols.',\n ],\n listTitle: 'Complete Financial Tools',\n title: 'Empowering Smarter Financial Decisions',\n },\n section4: {\n description:\n \"FinTech Solutions simplifies managing your finances with powerful tools designed for both individuals and businesses. Whether you're tracking personal spending, optimizing investments, or streamlining business operations, our platform provides the insights and features you need to make confident financial decisions. With a focus on ease of use and data security, we help you stay in control of your financial future. Our innovative solutions offer real-time updates, personalized recommendations, and automated reporting, ensuring you're always in the know. Plus, with scalable features tailored to your needs, our platform grows with you, making it the ideal choice for anyone looking to take charge of their financial journey.\",\n title: 'Seamless Financial Management',\n },\n },\n },\n}\n\n// TODO: Add more keys for additional logic\n// Topics pair with `copy.help_by_category_list[guid].topics` by position, so their order must match\n// the copy service's.\nexport const HELP_BY_CATEGORY_LIST: HelpByCategoryDefinition[] = [\n {\n guid: 'personal_information',\n icon: 'person',\n topics: [\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'internal',\n },\n {\n type: 'external',\n },\n ],\n },\n {\n guid: 'money_movement',\n icon: 'currency_exchange',\n topics: [\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n ],\n },\n {\n guid: 'institution',\n icon: 'account_balance',\n // Login Issues is its own card (articles), so it is no longer a ticket row here.\n topics: [\n {\n type: 'external',\n },\n {\n type: 'other',\n },\n {\n type: 'internal',\n },\n ],\n },\n {\n guid: 'transactions',\n icon: 'compare_arrows',\n topics: [\n {\n type: 'internal',\n },\n {\n type: 'external',\n },\n {\n type: 'internal',\n },\n ],\n },\n {\n guid: 'login_issues',\n icon: 'lock',\n topics: [\n { topicKey: 'not-receiving-code' },\n { topicKey: 'wrong-phone-number' },\n { topicKey: 'outdated-contact-info' },\n { topicKey: 'new-code-or-token' },\n ],\n },\n {\n guid: 'contact_your_bank',\n icon: 'call',\n topics: [],\n },\n]\n\n// TODO: Add more keys for additional logic\nexport const POPULAR_TOPICS_LIST = [\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'external',\n },\n {\n type: 'other',\n },\n {\n type: 'internal',\n },\n]\n"],"mappings":"AAIA,IAAa,IAAyB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEa,IAAA,CAAqB,MAC/B,EAA6C,SAAS,CAAQ,GAKpD,IAA4C;AAAA,EACvD;AAAA,IACE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,MAGN;AAAA,QAAE,UAAU;AAAA,QAAsB,WAAW;AAAA,MAAE;AAAA,MAC/C;AAAA,QAAE,UAAU;AAAA,QAAsB,WAAW;AAAA,MAAE;AAAA,M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,oBAAoB;AAAA,IAClC;AAAA,EACF;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ,CAAC;AAAA,EACX;AACF,GAGa,IAAsB;AAAA,EACjC,EACE,MAAM,WACR;AAAA,EACA,EACE,MAAM,WACR;AAAA,EACA,EACE,MAAM,WACR;AAAA,EACA,EACE,MAAM,WACR;AAAA,EACA,EACE,MAAM,QACR;AAAA,EACA,EACE,MAAM,WACR;AACF"}
|
|
@@ -14,6 +14,13 @@ export interface HelpCategory {
|
|
|
14
14
|
title: string;
|
|
15
15
|
topics: HelpTopic[];
|
|
16
16
|
}
|
|
17
|
+
export interface HelpCategoryDefinition {
|
|
18
|
+
flags?: string[];
|
|
19
|
+
guid: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
title: string;
|
|
22
|
+
topics: HelpTopicDefinition[];
|
|
23
|
+
}
|
|
17
24
|
export interface HelpByCategoryDefinition {
|
|
18
25
|
guid: keyof HelpByCategoryList;
|
|
19
26
|
icon: string;
|
|
@@ -34,6 +41,10 @@ export interface HelpTopic {
|
|
|
34
41
|
label: string;
|
|
35
42
|
topicKey: string;
|
|
36
43
|
}
|
|
44
|
+
export interface HelpTopicDefinition {
|
|
45
|
+
copyIndex?: number;
|
|
46
|
+
topicKey: string;
|
|
47
|
+
}
|
|
37
48
|
export type HelpType = 'external' | 'internal' | 'other' | undefined;
|
|
38
49
|
export interface ImageContentProps {
|
|
39
50
|
altImage: string;
|
|
@@ -71,6 +82,8 @@ export interface Ticket {
|
|
|
71
82
|
title: string;
|
|
72
83
|
}
|
|
73
84
|
export interface ListProps {
|
|
85
|
+
/** Space between items in px, so multi-line steps stay visibly separate. Defaults to none. */
|
|
86
|
+
itemGap?: number;
|
|
74
87
|
items: string[] | React.ReactNode[];
|
|
75
88
|
subItemPlacement?: number;
|
|
76
89
|
subItems?: string[] | React.ReactNode[];
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { HELP_CATEGORIES as
|
|
2
|
-
var
|
|
1
|
+
import { HELP_CATEGORIES as u } from "../constants/Help.es.js";
|
|
2
|
+
var p = (e, i) => e.guid === "general" || e.guid === "insights" ? !0 : e.flags ? e.flags.every((t) => i[t]) : !1, d = (e, i) => {
|
|
3
3
|
const t = [];
|
|
4
|
-
for (const s of
|
|
4
|
+
for (const s of u) {
|
|
5
5
|
const r = i[s.guid];
|
|
6
6
|
if (!r) continue;
|
|
7
7
|
const n = r.topics ?? {}, o = {
|
|
8
8
|
...s,
|
|
9
9
|
title: r.label,
|
|
10
|
-
topics: s.topics.flatMap(({ topicKey: a },
|
|
11
|
-
const l = n[c];
|
|
10
|
+
topics: s.topics.flatMap(({ topicKey: a, copyIndex: c }, f) => {
|
|
11
|
+
const l = n[c ?? f];
|
|
12
12
|
return l === void 0 ? [] : [{
|
|
13
13
|
topicKey: a,
|
|
14
14
|
label: l
|
|
15
15
|
}];
|
|
16
16
|
})
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
p(o, e) && t.push(o);
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
d as HelpUtil
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
//# sourceMappingURL=HelpUtil.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpUtil.es.js","names":[],"sources":["../../../src/core/utils/HelpUtil.ts"],"sourcesContent":["import type { HelpCategory, Profile } from '../types/Help'\nimport { CategoryList } from '../types/localization/HelpCopy'\nimport { HELP_CATEGORIES } from '../constants/Help'\n\nconst isCategoryAccessibleByProfile = (category: HelpCategory, profile: Profile): boolean => {\n if (category.guid === 'general' || category.guid === 'insights') return true\n if (!category.flags) return false\n return category.flags.every((flag) => profile[flag as keyof Profile])\n}\n\nexport const HelpUtil = (profile: Profile, categoryList: CategoryList): HelpCategory[] => {\n const accessibleCategories: HelpCategory[] = []\n\n for (const el of HELP_CATEGORIES) {\n const category = categoryList[el.guid as keyof CategoryList]\n if (!category) continue\n\n const topicLabels = category.topics ?? {}\n const updatedCategory = {\n ...el,\n title: category.label,\n // A definition entry whose copy is missing would otherwise produce a\n // focusable row with no name, so drop it.\n topics: el.topics.flatMap(({ topicKey }, index) => {\n const label = topicLabels[index]\n return label === undefined ? [] : [{ topicKey, label }]\n }),\n }\n if (isCategoryAccessibleByProfile(updatedCategory, profile))\n accessibleCategories.push(updatedCategory)\n }\n\n return accessibleCategories\n}\n"],"mappings":";AAIA,IAAM,IAAA,CAAiC,GAAwB,MACzD,EAAS,SAAS,aAAa,EAAS,SAAS,aAAmB,KACnE,EAAS,QACP,EAAS,MAAM,MAAA,CAAO,MAAS,EAAQ,CAAA,CAAsB,IADxC,IAIjB,IAAA,CAAY,GAAkB,MAA+C;AACxF,QAAM,IAAuC,CAAC;AAE9C,aAAW,KAAM,GAAiB;AAChC,UAAM,IAAW,EAAa,EAAG,IAAA;AACjC,QAAI,CAAC,EAAU;AAEf,UAAM,IAAc,EAAS,UAAU,CAAC,GAClC,IAAkB;AAAA,MACtB,GAAG;AAAA,MACH,OAAO,EAAS;AAAA,MAGhB,QAAQ,EAAG,OAAO,QAAA,CAAS,EAAE,UAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"HelpUtil.es.js","names":[],"sources":["../../../src/core/utils/HelpUtil.ts"],"sourcesContent":["import type { HelpCategory, Profile } from '../types/Help'\nimport { CategoryList } from '../types/localization/HelpCopy'\nimport { HELP_CATEGORIES } from '../constants/Help'\n\nconst isCategoryAccessibleByProfile = (category: HelpCategory, profile: Profile): boolean => {\n if (category.guid === 'general' || category.guid === 'insights') return true\n if (!category.flags) return false\n return category.flags.every((flag) => profile[flag as keyof Profile])\n}\n\nexport const HelpUtil = (profile: Profile, categoryList: CategoryList): HelpCategory[] => {\n const accessibleCategories: HelpCategory[] = []\n\n for (const el of HELP_CATEGORIES) {\n const category = categoryList[el.guid as keyof CategoryList]\n if (!category) continue\n\n const topicLabels = category.topics ?? {}\n const updatedCategory = {\n ...el,\n title: category.label,\n // A definition entry whose copy is missing would otherwise produce a\n // focusable row with no name, so drop it.\n topics: el.topics.flatMap(({ topicKey, copyIndex }, index) => {\n const label = topicLabels[copyIndex ?? index]\n return label === undefined ? [] : [{ topicKey, label }]\n }),\n }\n if (isCategoryAccessibleByProfile(updatedCategory, profile))\n accessibleCategories.push(updatedCategory)\n }\n\n return accessibleCategories\n}\n"],"mappings":";AAIA,IAAM,IAAA,CAAiC,GAAwB,MACzD,EAAS,SAAS,aAAa,EAAS,SAAS,aAAmB,KACnE,EAAS,QACP,EAAS,MAAM,MAAA,CAAO,MAAS,EAAQ,CAAA,CAAsB,IADxC,IAIjB,IAAA,CAAY,GAAkB,MAA+C;AACxF,QAAM,IAAuC,CAAC;AAE9C,aAAW,KAAM,GAAiB;AAChC,UAAM,IAAW,EAAa,EAAG,IAAA;AACjC,QAAI,CAAC,EAAU;AAEf,UAAM,IAAc,EAAS,UAAU,CAAC,GAClC,IAAkB;AAAA,MACtB,GAAG;AAAA,MACH,OAAO,EAAS;AAAA,MAGhB,QAAQ,EAAG,OAAO,QAAA,CAAS,EAAE,UAAA,GAAU,WAAA,EAAA,GAAa,MAAU;AAC5D,cAAM,IAAQ,EAAY,KAAa,CAAA;AACvC,eAAO,MAAU,SAAY,CAAC,IAAI,CAAC;AAAA,UAAE,UAAA;AAAA,UAAU,OAAA;AAAA,QAAM,CAAC;AAAA,MACxD,CAAC;AAAA,IACH;AACA,IAAI,EAA8B,GAAiB,CAAO,KACxD,EAAqB,KAAK,CAAe;AAAA,EAC7C;AAEA,SAAO;AACT"}
|
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { useAppConfig as
|
|
2
|
-
import { useScreenSize as
|
|
3
|
-
import { ANALYTICS_EVENTS as
|
|
4
|
-
import
|
|
1
|
+
import { useAppConfig as q, useEvent as y, useGlobalCopyStore as g, useHelpStore as R } from "../../common/context/hooks.es.js";
|
|
2
|
+
import { useScreenSize as d } from "../../common/hooks/useScreenSize.es.js";
|
|
3
|
+
import { ANALYTICS_EVENTS as b } from "../../common/constants/Analytics.es.js";
|
|
4
|
+
import { isLoginIssueTopic as x } from "../../core/constants/Help.es.js";
|
|
5
|
+
import H from "../../common/components/ErrorBoundary.es.js";
|
|
5
6
|
import { HelpList as E } from "./HelpList.es.js";
|
|
6
|
-
import { HelpContent as
|
|
7
|
-
import { RequestSupport as
|
|
7
|
+
import { HelpContent as I } from "./HelpContent.es.js";
|
|
8
|
+
import { RequestSupport as L } from "./requestsupport/RequestSupport.es.js";
|
|
8
9
|
import p from "react";
|
|
9
|
-
import { jsx as s, jsxs as
|
|
10
|
-
import
|
|
11
|
-
var
|
|
12
|
-
const { config: n } =
|
|
13
|
-
m(
|
|
14
|
-
feature: e.category,
|
|
10
|
+
import { jsx as s, jsxs as O } from "react/jsx-runtime";
|
|
11
|
+
import v from "@mui/material/Box";
|
|
12
|
+
var k = ({ sx: a = {} }) => {
|
|
13
|
+
const { config: n } = q(), { onEvent: m } = y(), { help: t } = g(), { helpCategories: f } = R(), { isMobile: S } = d(), [h, o] = p.useState(!1), [r, l] = p.useState(null), [T, i] = p.useState(""), u = (e) => {
|
|
14
|
+
m(b.HELP_CLICK_TOPIC, {
|
|
15
|
+
feature: x(e.topicKey) ? t.help_by_category_list?.login_issues?.label ?? e.category : e.category,
|
|
15
16
|
helpTopic: e.pageTitle
|
|
16
17
|
}), l(e);
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
o(!1),
|
|
18
|
+
}, c = () => o(!0), C = (e) => {
|
|
19
|
+
i(e), o(!0);
|
|
20
|
+
}, _ = () => {
|
|
21
|
+
o(!1), i("");
|
|
21
22
|
};
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ O(v, {
|
|
23
24
|
sx: {
|
|
24
25
|
pt: 24,
|
|
25
|
-
px:
|
|
26
|
+
px: S ? 24 : 0,
|
|
26
27
|
...a
|
|
27
28
|
},
|
|
28
|
-
children: [r ? /* @__PURE__ */ s(
|
|
29
|
+
children: [r ? /* @__PURE__ */ s(I, {
|
|
29
30
|
copy: t,
|
|
30
31
|
hasRequestButton: n.enable_support_requests,
|
|
31
32
|
onNavigateToList: () => l(null),
|
|
32
|
-
onOpenCase:
|
|
33
|
-
onRequestSupport:
|
|
33
|
+
onOpenCase: C,
|
|
34
|
+
onRequestSupport: c,
|
|
34
35
|
topicInfo: r
|
|
35
36
|
}) : /* @__PURE__ */ s(E, {
|
|
36
37
|
buttonText: t.request_support,
|
|
37
38
|
copy: t,
|
|
38
39
|
hasRequestButton: n.enable_support_requests,
|
|
39
|
-
helpCategories:
|
|
40
|
+
helpCategories: f,
|
|
40
41
|
helpContent: t.list_short_content,
|
|
41
42
|
helpTitle: t.list_title,
|
|
42
|
-
onRequestHelp:
|
|
43
|
-
onTopicSelect:
|
|
44
|
-
}), /* @__PURE__ */ s(
|
|
45
|
-
caseTopic:
|
|
43
|
+
onRequestHelp: c,
|
|
44
|
+
onTopicSelect: u
|
|
45
|
+
}), /* @__PURE__ */ s(H, { children: /* @__PURE__ */ s(L, {
|
|
46
|
+
caseTopic: T,
|
|
46
47
|
copy: t,
|
|
47
48
|
isOpen: h,
|
|
48
49
|
onTopicSelect: (e) => {
|
|
49
|
-
|
|
50
|
+
u(e), o(!1);
|
|
50
51
|
},
|
|
51
|
-
onClose:
|
|
52
|
+
onClose: _
|
|
52
53
|
}) })]
|
|
53
54
|
});
|
|
54
55
|
};
|
|
55
56
|
export {
|
|
56
|
-
|
|
57
|
+
k as Help
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
//# sourceMappingURL=Help.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Help.es.js","names":[],"sources":["../../../src/help/components/Help.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\n\nimport {\n ANALYTICS_EVENTS,\n ErrorBoundary,\n useAppConfig,\n useEvent,\n useGlobalCopyStore,\n useHelpStore,\n useScreenSize,\n} from '../../common'\nimport { type SelectedTopic } from '../../core'\n\nimport { HelpList } from './HelpList'\nimport { HelpContent } from './HelpContent'\nimport { RequestSupport } from './requestsupport'\nimport type { SxProps } from '@mui/material/styles'\n\ninterface HelpProps {\n sx?: SxProps\n}\n\nexport const Help = ({ sx = {} }: HelpProps) => {\n const { config } = useAppConfig()\n const { onEvent } = useEvent()\n const { help: helpCopy } = useGlobalCopyStore()\n const { helpCategories } = useHelpStore()\n const { isMobile } = useScreenSize()\n\n const [isRequestSupportOpen, setIsRequestSupportOpen] = React.useState(false)\n const [selectedTopic, setSelectedTopic] = React.useState<SelectedTopic | null>(null)\n const [caseTopic, setCaseTopic] = React.useState('')\n\n const handleTopicSelect = (topic: SelectedTopic) => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_TOPIC, {\n feature: topic.category,\n helpTopic: topic.pageTitle,\n })\n\n setSelectedTopic(topic)\n }\n const handleRequestHelp = () => setIsRequestSupportOpen(true)\n\n const handleOpenCase = (topic: string) => {\n setCaseTopic(topic)\n setIsRequestSupportOpen(true)\n }\n\n const handleCloseRequestSupport = () => {\n setIsRequestSupportOpen(false)\n setCaseTopic('')\n }\n\n return (\n <Box sx={{ pt: 24, px: isMobile ? 24 : 0, ...sx }}>\n {!selectedTopic ? (\n <HelpList\n buttonText={helpCopy.request_support}\n copy={helpCopy}\n hasRequestButton={config.enable_support_requests}\n helpCategories={helpCategories}\n helpContent={helpCopy.list_short_content}\n helpTitle={helpCopy.list_title}\n onRequestHelp={handleRequestHelp}\n onTopicSelect={handleTopicSelect}\n />\n ) : (\n <HelpContent\n copy={helpCopy}\n hasRequestButton={config.enable_support_requests}\n onNavigateToList={() => setSelectedTopic(null)}\n onOpenCase={handleOpenCase}\n onRequestSupport={handleRequestHelp}\n topicInfo={selectedTopic}\n />\n )}\n <ErrorBoundary>\n <RequestSupport\n caseTopic={caseTopic}\n copy={helpCopy}\n isOpen={isRequestSupportOpen}\n onTopicSelect={(topic) => {\n handleTopicSelect(topic)\n setIsRequestSupportOpen(false)\n }}\n onClose={handleCloseRequestSupport}\n />\n </ErrorBoundary>\n </Box>\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Help.es.js","names":[],"sources":["../../../src/help/components/Help.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\n\nimport {\n ANALYTICS_EVENTS,\n ErrorBoundary,\n useAppConfig,\n useEvent,\n useGlobalCopyStore,\n useHelpStore,\n useScreenSize,\n} from '../../common'\nimport { type SelectedTopic } from '../../core'\nimport { isLoginIssueTopic } from '../../core/constants/Help'\n\nimport { HelpList } from './HelpList'\nimport { HelpContent } from './HelpContent'\nimport { RequestSupport } from './requestsupport'\nimport type { SxProps } from '@mui/material/styles'\n\ninterface HelpProps {\n sx?: SxProps\n}\n\nexport const Help = ({ sx = {} }: HelpProps) => {\n const { config } = useAppConfig()\n const { onEvent } = useEvent()\n const { help: helpCopy } = useGlobalCopyStore()\n const { helpCategories } = useHelpStore()\n const { isMobile } = useScreenSize()\n\n const [isRequestSupportOpen, setIsRequestSupportOpen] = React.useState(false)\n const [selectedTopic, setSelectedTopic] = React.useState<SelectedTopic | null>(null)\n const [caseTopic, setCaseTopic] = React.useState('')\n\n const handleTopicSelect = (topic: SelectedTopic) => {\n onEvent(ANALYTICS_EVENTS.HELP_CLICK_TOPIC, {\n // A Login Issues article reports under Login Issues whether it was opened from that card or\n // from General FAQs, so its clicks are counted together.\n feature: isLoginIssueTopic(topic.topicKey)\n ? (helpCopy.help_by_category_list?.login_issues?.label ?? topic.category)\n : topic.category,\n helpTopic: topic.pageTitle,\n })\n\n setSelectedTopic(topic)\n }\n const handleRequestHelp = () => setIsRequestSupportOpen(true)\n\n const handleOpenCase = (topic: string) => {\n setCaseTopic(topic)\n setIsRequestSupportOpen(true)\n }\n\n const handleCloseRequestSupport = () => {\n setIsRequestSupportOpen(false)\n setCaseTopic('')\n }\n\n return (\n <Box sx={{ pt: 24, px: isMobile ? 24 : 0, ...sx }}>\n {!selectedTopic ? (\n <HelpList\n buttonText={helpCopy.request_support}\n copy={helpCopy}\n hasRequestButton={config.enable_support_requests}\n helpCategories={helpCategories}\n helpContent={helpCopy.list_short_content}\n helpTitle={helpCopy.list_title}\n onRequestHelp={handleRequestHelp}\n onTopicSelect={handleTopicSelect}\n />\n ) : (\n <HelpContent\n copy={helpCopy}\n hasRequestButton={config.enable_support_requests}\n onNavigateToList={() => setSelectedTopic(null)}\n onOpenCase={handleOpenCase}\n onRequestSupport={handleRequestHelp}\n topicInfo={selectedTopic}\n />\n )}\n <ErrorBoundary>\n <RequestSupport\n caseTopic={caseTopic}\n copy={helpCopy}\n isOpen={isRequestSupportOpen}\n onTopicSelect={(topic) => {\n handleTopicSelect(topic)\n setIsRequestSupportOpen(false)\n }}\n onClose={handleCloseRequestSupport}\n />\n </ErrorBoundary>\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;;;AAyBA,IAAa,IAAA,CAAQ,EAAE,IAAA,IAAK,CAAC,EAAA,MAAmB;AAC9C,QAAM,EAAE,QAAA,EAAA,IAAW,EAAa,GAC1B,EAAE,SAAA,EAAA,IAAY,EAAS,GACvB,EAAE,MAAM,EAAA,IAAa,EAAmB,GACxC,EAAE,gBAAA,EAAA,IAAmB,EAAa,GAClC,EAAE,UAAA,EAAA,IAAa,EAAc,GAE7B,CAAC,GAAsB,CAAA,IAA2B,EAAM,SAAS,EAAK,GACtE,CAAC,GAAe,CAAA,IAAoB,EAAM,SAA+B,IAAI,GAC7E,CAAC,GAAW,CAAA,IAAgB,EAAM,SAAS,EAAE,GAE7C,IAAA,CAAqB,MAAyB;AAClD,IAAA,EAAQ,EAAiB,kBAAkB;AAAA,MAGzC,SAAS,EAAkB,EAAM,QAAQ,IACpC,EAAS,uBAAuB,cAAc,SAAS,EAAM,WAC9D,EAAM;AAAA,MACV,WAAW,EAAM;AAAA,IACnB,CAAC,GAED,EAAiB,CAAK;AAAA,EACxB,GACM,IAAA,MAA0B,EAAwB,EAAI,GAEtD,IAAA,CAAkB,MAAkB;AACxC,IAAA,EAAa,CAAK,GAClB,EAAwB,EAAI;AAAA,EAC9B,GAEM,IAAA,MAAkC;AACtC,IAAA,EAAwB,EAAK,GAC7B,EAAa,EAAE;AAAA,EACjB;AAEA,SACE,gBAAA,EAAC,GAAD;AAAA,IAAK,IAAI;AAAA,MAAE,IAAI;AAAA,MAAI,IAAI,IAAW,KAAK;AAAA,MAAG,GAAG;AAAA,IAAG;AAAA,IAAhD,UAAA,CACI,IAYA,gBAAA,EAAC,GAAD;AAAA,MACE,MAAM;AAAA,MACN,kBAAkB,EAAO;AAAA,MACzB,kBAAA,MAAwB,EAAiB,IAAI;AAAA,MAC7C,YAAY;AAAA,MACZ,kBAAkB;AAAA,MAClB,WAAW;AAAA,IACZ,CAAA,IAlBD,gBAAA,EAAC,GAAD;AAAA,MACE,YAAY,EAAS;AAAA,MACrB,MAAM;AAAA,MACN,kBAAkB,EAAO;AAAA,MACT,gBAAA;AAAA,MAChB,aAAa,EAAS;AAAA,MACtB,WAAW,EAAS;AAAA,MACpB,eAAe;AAAA,MACf,eAAe;AAAA,IAChB,CAAA,GAWH,gBAAA,EAAC,GAAD,EAAA,UACE,gBAAA,EAAC,GAAD;AAAA,MACa,WAAA;AAAA,MACX,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,eAAA,CAAgB,MAAU;AACxB,QAAA,EAAkB,CAAK,GACvB,EAAwB,EAAK;AAAA,MAC/B;AAAA,MACA,SAAS;AAAA,IACV,CAAA,EACY,CAAA,CACZ;AAAA;AAET"}
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { H3 as
|
|
2
|
-
import { jsx as
|
|
1
|
+
import { H3 as d, P as f } from "@mxenabled/mxui";
|
|
2
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
3
3
|
import y from "@mui/material/Box";
|
|
4
|
-
var o = ({ content:
|
|
4
|
+
var o = ({ content: e, sx: l }) => /* @__PURE__ */ r(f, {
|
|
5
5
|
sx: {
|
|
6
6
|
lineHeight: "24px",
|
|
7
7
|
py: 6,
|
|
8
|
-
...
|
|
8
|
+
...l
|
|
9
9
|
},
|
|
10
|
-
children:
|
|
11
|
-
}),
|
|
10
|
+
children: e
|
|
11
|
+
}), w = ({ content: e, sx: l }) => /* @__PURE__ */ r(d, {
|
|
12
12
|
color: "text.primary",
|
|
13
13
|
sx: {
|
|
14
14
|
py: 12,
|
|
15
15
|
whiteSpace: { sm: "nowrap" },
|
|
16
|
-
...
|
|
16
|
+
...l
|
|
17
17
|
},
|
|
18
|
-
children:
|
|
19
|
-
}),
|
|
20
|
-
const
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
sx: { [
|
|
18
|
+
children: e
|
|
19
|
+
}), E = ({ itemGap: e, items: l, listType: n = "ul", subItemPlacement: c, subItems: m = [], subListType: t = "ol" }) => {
|
|
20
|
+
const p = n, x = t;
|
|
21
|
+
return /* @__PURE__ */ r(y, {
|
|
22
|
+
sx: { [n]: {
|
|
23
23
|
m: 0,
|
|
24
24
|
p: 0,
|
|
25
25
|
pl: 16,
|
|
26
|
-
"& li::marker": { fontSize: 15 }
|
|
26
|
+
"& li::marker": { fontSize: 15 },
|
|
27
|
+
...e != null && { "& > li + li": { mt: e } }
|
|
27
28
|
} },
|
|
28
|
-
children: /* @__PURE__ */
|
|
29
|
-
content:
|
|
29
|
+
children: /* @__PURE__ */ r(p, { children: l.map((a, i) => /* @__PURE__ */ u("li", { children: [/* @__PURE__ */ r(o, {
|
|
30
|
+
content: a,
|
|
30
31
|
sx: { py: 1 }
|
|
31
|
-
}),
|
|
32
|
-
...
|
|
33
|
-
children:
|
|
34
|
-
content:
|
|
32
|
+
}), c === i ? /* @__PURE__ */ r(x, {
|
|
33
|
+
...t === "ol" && { type: "a" },
|
|
34
|
+
children: m.map((s, h) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(o, {
|
|
35
|
+
content: s,
|
|
35
36
|
sx: { py: 1 }
|
|
36
|
-
}) },
|
|
37
|
-
}) : null] },
|
|
37
|
+
}) }, h))
|
|
38
|
+
}) : null] }, i)) })
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
E as List,
|
|
43
|
+
w as SectionTitle,
|
|
43
44
|
o as Text
|
|
44
45
|
};
|
|
45
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentItem.es.js","names":[],"sources":["../../../../src/help/components/content/ContentItem.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport { H3, P } from '@mxenabled/mxui'\n\nimport { ListProps, SectionTitleProps, TextProps } from '../../../core/types/Help'\n\nexport const Text: React.FC<TextProps> = ({ content, sx }) => (\n <P sx={{ lineHeight: '24px', py: 6, ...sx }}>{content}</P>\n)\n\nexport const SectionTitle: React.FC<SectionTitleProps> = ({ content, sx }) => (\n <H3 color=\"text.primary\" sx={{ py: 12, whiteSpace: { sm: 'nowrap' }, ...sx }}>\n {content}\n </H3>\n)\n\nexport const List: React.FC<ListProps> = ({\n items,\n listType = 'ul',\n subItemPlacement,\n subItems = [],\n subListType = 'ol',\n}) => {\n const Element = listType\n const SubElement = subListType\n\n return (\n <Box
|
|
1
|
+
{"version":3,"file":"ContentItem.es.js","names":[],"sources":["../../../../src/help/components/content/ContentItem.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport { H3, P } from '@mxenabled/mxui'\n\nimport { ListProps, SectionTitleProps, TextProps } from '../../../core/types/Help'\n\nexport const Text: React.FC<TextProps> = ({ content, sx }) => (\n <P sx={{ lineHeight: '24px', py: 6, ...sx }}>{content}</P>\n)\n\nexport const SectionTitle: React.FC<SectionTitleProps> = ({ content, sx }) => (\n <H3 color=\"text.primary\" sx={{ py: 12, whiteSpace: { sm: 'nowrap' }, ...sx }}>\n {content}\n </H3>\n)\n\nexport const List: React.FC<ListProps> = ({\n itemGap,\n items,\n listType = 'ul',\n subItemPlacement,\n subItems = [],\n subListType = 'ol',\n}) => {\n const Element = listType\n const SubElement = subListType\n\n return (\n <Box\n sx={{\n [listType]: {\n m: 0,\n p: 0,\n pl: 16,\n '& li::marker': { fontSize: 15 },\n ...(itemGap != null && { '& > li + li': { mt: itemGap } }),\n },\n }}\n >\n <Element>\n {items.map((elm, i) => (\n <li key={i}>\n <Text content={elm} sx={{ py: 1 }} />\n {subItemPlacement === i ? (\n <SubElement {...(subListType === 'ol' && { type: 'a' })}>\n {subItems.map((subElm, index) => (\n <li key={index}>\n <Text content={subElm} sx={{ py: 1 }} />\n </li>\n ))}\n </SubElement>\n ) : null}\n </li>\n ))}\n </Element>\n </Box>\n )\n}\n"],"mappings":";;;AAKA,IAAa,IAAA,CAA6B,EAAE,SAAA,GAAS,IAAA,EAAA,MACnD,gBAAA,EAAC,GAAD;AAAA,EAAG,IAAI;AAAA,IAAE,YAAY;AAAA,IAAQ,IAAI;AAAA,IAAG,GAAG;AAAA,EAAG;AAAA,EAAI,UAAA;AAAW,CAAA,GAG9C,IAAA,CAA6C,EAAE,SAAA,GAAS,IAAA,EAAA,MACnE,gBAAA,EAAC,GAAD;AAAA,EAAI,OAAM;AAAA,EAAe,IAAI;AAAA,IAAE,IAAI;AAAA,IAAI,YAAY,EAAE,IAAI,SAAS;AAAA,IAAG,GAAG;AAAA,EAAG;AAAA,EACxE,UAAA;AACC,CAAA,GAGO,IAAA,CAA6B,EACxC,SAAA,GACA,OAAA,GACA,UAAA,IAAW,MACX,kBAAA,GACA,UAAA,IAAW,CAAC,GACZ,aAAA,IAAc,KAAA,MACV;AACJ,QAAM,IAAU,GACV,IAAa;AAEnB,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI,EAAA,CACD,CAAA,GAAW;AAAA,MACV,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,gBAAgB,EAAE,UAAU,GAAG;AAAA,MAC/B,GAAI,KAAW,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAQ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