@faststore/core 4.4.0-dev.0 → 4.4.0-dev.2
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/.turbo/turbo-generate.log +3 -3
- package/.turbo/turbo-test.log +49 -48
- package/CHANGELOG.md +12 -0
- package/README.md +2 -1
- package/cms/faststore/my-account/README.md +36 -0
- package/cms/faststore/my-account/components/cms_component__accountnavigation.jsonc +59 -0
- package/cms/faststore/my-account/components/cms_component__accountorderbudgets.jsonc +39 -0
- package/cms/faststore/my-account/components/cms_component__accountorderdelivery.jsonc +69 -0
- package/cms/faststore/my-account/components/cms_component__accountorderdetails.jsonc +79 -0
- package/cms/faststore/my-account/components/cms_component__accountordermoreinfo.jsonc +19 -0
- package/cms/faststore/my-account/components/cms_component__accountorderorderedby.jsonc +19 -0
- package/cms/faststore/my-account/components/cms_component__accountorderpayment.jsonc +69 -0
- package/cms/faststore/my-account/components/cms_component__accountorderslist.jsonc +154 -0
- package/cms/faststore/my-account/components/cms_component__accountorderstatus.jsonc +44 -0
- package/cms/faststore/my-account/components/cms_component__accountordersummary.jsonc +29 -0
- package/cms/faststore/my-account/components/cms_component__accountprofile.jsonc +39 -0
- package/cms/faststore/my-account/components/cms_component__accountsecurity.jsonc +104 -0
- package/cms/faststore/my-account/components/cms_component__accountunauthorized.jsonc +29 -0
- package/cms/faststore/my-account/components/cms_component__accountuserdetails.jsonc +49 -0
- package/cms/faststore/my-account/pages/cms_content_type__myaccountorderdetails.jsonc +18 -0
- package/cms/faststore/my-account/pages/cms_content_type__myaccountorders.jsonc +18 -0
- package/cms/faststore/my-account/pages/cms_content_type__myaccountprofile.jsonc +18 -0
- package/cms/faststore/my-account/pages/cms_content_type__myaccountsecurity.jsonc +18 -0
- package/cms/faststore/my-account/pages/cms_content_type__myaccountunauthorized.jsonc +18 -0
- package/cms/faststore/my-account/pages/cms_content_type__myaccountuserdetails.jsonc +18 -0
- package/package.json +6 -6
- package/src/components/account/{MyAccountDrawer → Drawer}/OrganizationDrawer/OrganizationDrawerBody.tsx +15 -3
- package/src/components/account/{MyAccountDrawer → Drawer}/OrganizationSignInButton/OrganizationSignInButton.tsx +5 -1
- package/src/components/account/{MyAccountDrawer → Drawer}/ProfileSummary/ProfileSummary.tsx +12 -2
- package/src/components/account/Layout/Layout.tsx +46 -0
- package/src/components/account/Layout/index.ts +1 -0
- package/src/components/account/{MyAccountLayout → Layout}/styles.scss +2 -2
- package/src/components/account/{MyAccountMenu/MyAccountMenu.tsx → Menu/Menu.tsx} +8 -10
- package/src/components/account/Menu/index.ts +1 -0
- package/src/components/account/UserDetails/UserDetails.tsx +54 -0
- package/src/components/account/UserDetails/index.ts +1 -0
- package/src/components/account/{MyAccountUserDetails → UserDetails}/styles.module.scss +2 -2
- package/src/components/account/UserDetails/userDetailsLabels.ts +25 -0
- package/src/components/account/components/{MyAccountAccordion/MyAccountAccordion.tsx → Accordion/Accordion.tsx} +2 -4
- package/src/components/account/components/{MyAccountAccordion/MyAccountAccordionButton.tsx → Accordion/AccordionButton.tsx} +3 -7
- package/src/components/account/components/{MyAccountAccordion/MyAccountAccordionItem.tsx → Accordion/AccordionItem.tsx} +3 -7
- package/src/components/account/components/{MyAccountAccordion/MyAccountAccordionPanel.tsx → Accordion/AccordionPanel.tsx} +3 -3
- package/src/components/account/components/Accordion/index.ts +4 -0
- package/src/components/account/components/{MyAccountCard/MyAccountCard.tsx → Card/Card.tsx} +2 -4
- package/src/components/account/components/Card/index.ts +1 -0
- package/src/components/account/components/{MyAccountHeader/MyAccountHeader.tsx → Header/Header.tsx} +3 -3
- package/src/components/account/components/Header/index.ts +1 -0
- package/src/components/account/components/StatusBadge/StatusBadge.tsx +43 -0
- package/src/components/account/components/StatusBadge/index.ts +1 -0
- package/src/components/account/components/{MyAccountTable/MyAccountTable.tsx → Table/Table.tsx} +3 -3
- package/src/components/account/components/Table/index.ts +1 -0
- package/src/components/account/components/Tag/index.ts +1 -0
- package/src/components/account/index.ts +2 -2
- package/src/components/account/orders/ListOrders/FilterSlider/FilterFacetDateRange/FilterFacetDateRange.tsx +128 -0
- package/src/components/account/orders/ListOrders/FilterSlider/FilterFacetDateRange/index.ts +2 -0
- package/src/components/account/orders/{MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetPendingApproval/MyAccountFilterFacetPendingApproval.tsx → ListOrders/FilterSlider/FilterFacetPendingApproval/FilterFacetPendingApproval.tsx} +4 -4
- package/src/components/account/orders/ListOrders/FilterSlider/FilterFacetPendingApproval/index.ts +2 -0
- package/src/components/account/orders/{MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterSlider.tsx → ListOrders/FilterSlider/FilterSlider.tsx} +13 -4
- package/src/components/account/orders/ListOrders/FilterSlider/index.ts +1 -0
- package/src/components/account/orders/{MyAccountListOrders/MyAccountFilterSlider → ListOrders/FilterSlider}/section.module.scss +2 -2
- package/src/components/account/orders/{MyAccountListOrders/MyAccountListOrders.tsx → ListOrders/ListOrders.tsx} +53 -30
- package/src/components/account/orders/{MyAccountListOrders/MyAccountListOrdersTable → ListOrders/ListOrdersTable}/ExpandButton/ExpandButton.tsx +5 -1
- package/src/components/account/orders/{MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx → ListOrders/ListOrdersTable/ListOrdersTable.tsx} +35 -12
- package/src/components/account/orders/ListOrders/ListOrdersTable/index.ts +1 -0
- package/src/components/account/orders/{MyAccountListOrders/MyAccountSelectedTags/MyAccountSelectedTags.tsx → ListOrders/SelectedTags/SelectedTags.tsx} +24 -14
- package/src/components/account/orders/ListOrders/SelectedTags/index.ts +1 -0
- package/src/components/account/orders/ListOrders/index.ts +1 -0
- package/src/components/account/orders/ListOrders/listOrdersLabels.ts +112 -0
- package/src/components/account/orders/{MyAccountListOrders → ListOrders}/styles.module.scss +3 -3
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountBudgetsCard/MyAccountBudgetsCard.tsx → OrderDetails/BudgetsCard/BudgetsCard.tsx} +18 -11
- package/src/components/account/orders/OrderDetails/BudgetsCard/index.ts +1 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountBuyingPolicyAlert/MyAccountBuyingPolicyAlert.tsx → OrderDetails/BuyingPolicyAlert/BuyingPolicyAlert.tsx} +46 -20
- package/src/components/account/orders/OrderDetails/BuyingPolicyAlert/index.ts +1 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountDeliveryCard/MyAccountDeliveryCard.tsx → OrderDetails/DeliveryCard/DeliveryCard.tsx} +16 -15
- package/src/components/account/orders/OrderDetails/DeliveryCard/index.ts +1 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordion.tsx → OrderDetails/DeliveryOptionAccordion/DeliveryOptionAccordion.tsx} +38 -25
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordionDeliveryInfo.tsx → OrderDetails/DeliveryOptionAccordion/DeliveryOptionAccordionDeliveryInfo.tsx} +4 -4
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordionProducts.tsx → OrderDetails/DeliveryOptionAccordion/DeliveryOptionAccordionProducts.tsx} +7 -10
- package/src/components/account/orders/OrderDetails/DeliveryOptionAccordion/index.ts +6 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountMoreInformationCard/MyAccountMoreInformationCard.tsx → OrderDetails/MoreInformationCard/MoreInformationCard.tsx} +10 -7
- package/src/components/account/orders/OrderDetails/MoreInformationCard/index.ts +1 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountOrderActionModal/MyAccountOrderActionModal.tsx → OrderDetails/OrderActionModal/OrderActionModal.tsx} +3 -3
- package/src/components/account/orders/OrderDetails/OrderActionModal/index.ts +1 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountOrderActions/MyAccountOrderActions.tsx → OrderDetails/OrderActions/OrderActions.tsx} +19 -12
- package/src/components/account/orders/OrderDetails/OrderActions/index.ts +1 -0
- package/src/components/account/orders/OrderDetails/OrderDetails.tsx +92 -0
- package/src/components/account/orders/OrderDetails/OrderDetailsHeader.tsx +89 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountOrderedByCard/MyAccountOrderedByCard.tsx → OrderDetails/OrderedByCard/OrderedByCard.tsx} +9 -7
- package/src/components/account/orders/OrderDetails/OrderedByCard/index.ts +1 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountPaymentCard/MyAccountPaymentCard.tsx → OrderDetails/PaymentCard/PaymentCard.tsx} +42 -27
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountPaymentCard/MyAccountPaymentFlagsIcon.tsx → OrderDetails/PaymentCard/PaymentFlagsIcon.tsx} +3 -3
- package/src/components/account/orders/OrderDetails/PaymentCard/index.ts +1 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountReorderButton/MyAccountReorderButton.tsx → OrderDetails/ReorderButton/ReorderButton.tsx} +6 -4
- package/src/components/account/orders/OrderDetails/ReorderButton/index.ts +2 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountStatusCard/MyAccountStatusCard.tsx → OrderDetails/StatusCard/StatusCard.tsx} +29 -8
- package/src/components/account/orders/OrderDetails/StatusCard/index.ts +1 -0
- package/src/components/account/orders/{MyAccountOrderDetails/MyAccountSummaryCard/MyAccountSummaryCard.tsx → OrderDetails/SummaryCard/SummaryCard.tsx} +16 -9
- package/src/components/account/orders/OrderDetails/SummaryCard/index.ts +1 -0
- package/src/components/account/orders/OrderDetails/index.ts +10 -0
- package/src/components/account/orders/OrderDetails/orderDetailsLabels.ts +204 -0
- package/src/components/account/orders/{MyAccountOrderDetails → OrderDetails}/section.module.scss +14 -14
- package/src/components/account/profile/profile.module.scss +1 -1
- package/src/components/account/profile/profile.tsx +31 -8
- package/src/components/account/section.module.scss +1 -1
- package/src/components/account/security/SecurityDrawer.tsx +29 -20
- package/src/components/account/security/SecuritySection.tsx +17 -6
- package/src/components/account/security/securityLabels.ts +47 -0
- package/src/components/account/security/styles.module.scss +1 -1
- package/src/components/cms/account/Components.ts +53 -0
- package/src/components/navigation/Navbar/Navbar.tsx +1 -1
- package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +1 -1
- package/src/components/sections/Account/AccountNavigation.tsx +5 -0
- package/src/components/sections/Account/AccountOrderBudgets.tsx +35 -0
- package/src/components/sections/Account/AccountOrderDelivery.tsx +57 -0
- package/src/components/sections/Account/AccountOrderDetails.tsx +57 -0
- package/src/components/sections/Account/AccountOrderMoreInfo.tsx +39 -0
- package/src/components/sections/Account/AccountOrderOrderedBy.tsx +36 -0
- package/src/components/sections/Account/AccountOrderPayment.tsx +36 -0
- package/src/components/sections/Account/AccountOrderStatus.tsx +49 -0
- package/src/components/sections/Account/AccountOrderSummary.tsx +36 -0
- package/src/components/sections/Account/AccountOrdersList.tsx +89 -0
- package/src/components/sections/Account/AccountProfile.tsx +46 -0
- package/src/components/sections/Account/AccountSecurity.tsx +65 -0
- package/src/components/sections/Account/AccountUnauthorized.tsx +40 -0
- package/src/components/sections/Account/AccountUserDetails.tsx +43 -0
- package/src/experimental/index.ts +1 -1
- package/src/pages/_app.tsx +1 -1
- package/src/pages/pvt/account/403.tsx +43 -50
- package/src/pages/pvt/account/404.tsx +3 -3
- package/src/pages/pvt/account/orders/[id].tsx +58 -13
- package/src/pages/pvt/account/orders/index.tsx +59 -48
- package/src/pages/pvt/account/profile.tsx +64 -33
- package/src/pages/pvt/account/security.tsx +66 -32
- package/src/pages/pvt/account/user-details.tsx +67 -37
- package/src/sdk/account/accountPageContext.ts +73 -0
- package/src/sdk/account/getMyAccountRoutes.ts +48 -3
- package/src/sdk/account/useSetPassword.ts +2 -2
- package/src/sdk/overrides/PageProvider.tsx +3 -1
- package/src/server/cms/fetchMyAccountPageContent.ts +45 -0
- package/src/server/cms/myAccountDefaultSections.ts +73 -0
- package/src/utils/userOrderStatus.ts +129 -0
- package/test/sdk/account/useSetPassword.test.ts +2 -2
- package/test/utils/userOrderStatus.test.ts +36 -0
- package/src/components/account/MyAccountLayout/MyAccountLayout.tsx +0 -32
- package/src/components/account/MyAccountLayout/index.ts +0 -1
- package/src/components/account/MyAccountMenu/index.ts +0 -1
- package/src/components/account/MyAccountUserDetails/MyAccountUserDetails.tsx +0 -46
- package/src/components/account/MyAccountUserDetails/index.ts +0 -1
- package/src/components/account/components/MyAccountAccordion/index.ts +0 -4
- package/src/components/account/components/MyAccountCard/index.ts +0 -1
- package/src/components/account/components/MyAccountHeader/index.ts +0 -1
- package/src/components/account/components/MyAccountStatusBadge/MyAccountStatusBadge.tsx +0 -28
- package/src/components/account/components/MyAccountStatusBadge/index.ts +0 -1
- package/src/components/account/components/MyAccountTable/index.ts +0 -1
- package/src/components/account/components/MyAccountTag/index.ts +0 -1
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/MyAccountFilterFacetDateRange.tsx +0 -113
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/index.ts +0 -2
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetPendingApproval/index.ts +0 -2
- package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/index.ts +0 -1
- package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/index.ts +0 -1
- package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/index.ts +0 -1
- package/src/components/account/orders/MyAccountListOrders/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountBudgetsCard/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountBuyingPolicyAlert/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/index.ts +0 -6
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderDetails.tsx +0 -136
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountReorderButton/index.ts +0 -2
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/index.ts +0 -1
- package/src/components/account/orders/MyAccountOrderDetails/index.ts +0 -1
- package/src/components/account/profile/i18n.ts +0 -7
- /package/src/components/account/{MyAccountDrawer → Drawer}/OrganizationDrawer/OrganizationDrawer.tsx +0 -0
- /package/src/components/account/{MyAccountDrawer → Drawer}/OrganizationDrawer/OrganizationDrawerHeader.tsx +0 -0
- /package/src/components/account/{MyAccountDrawer → Drawer}/OrganizationDrawer/index.ts +0 -0
- /package/src/components/account/{MyAccountDrawer → Drawer}/OrganizationDrawer/section.module.scss +0 -0
- /package/src/components/account/{MyAccountDrawer → Drawer}/OrganizationDrawer/useReloadAfterLogoutReturn.ts +0 -0
- /package/src/components/account/{MyAccountDrawer → Drawer}/OrganizationSignInButton/index.ts +0 -0
- /package/src/components/account/{MyAccountDrawer → Drawer}/ProfileSummary/profile-summary.scss +0 -0
- /package/src/components/account/{MyAccountMenu → Menu}/styles.scss +0 -0
- /package/src/components/account/components/{MyAccountAccordion → Accordion}/styles.scss +0 -0
- /package/src/components/account/components/{MyAccountCard → Card}/styles.scss +0 -0
- /package/src/components/account/components/{MyAccountHeader → Header}/styles.scss +0 -0
- /package/src/components/account/components/{MyAccountStatusBadge → StatusBadge}/styles.scss +0 -0
- /package/src/components/account/components/{MyAccountTable → Table}/styles.scss +0 -0
- /package/src/components/account/components/{MyAccountTag/MyAccountTag.tsx → Tag/Tag.tsx} +0 -0
- /package/src/components/account/components/{MyAccountTag → Tag}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange → ListOrders/FilterSlider/FilterFacetDateRange}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetPendingApproval → ListOrders/FilterSlider/FilterFacetPendingApproval}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountListOrders/MyAccountListOrdersTable → ListOrders/ListOrdersTable}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountListOrders/MyAccountSelectedTags → ListOrders/SelectedTags}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountBudgetsCard → OrderDetails/BudgetsCard}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountBuyingPolicyAlert → OrderDetails/BuyingPolicyAlert}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountDeliveryCard → OrderDetails/DeliveryCard}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountDeliveryOptionAccordion → OrderDetails/DeliveryOptionAccordion}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountMoreInformationCard → OrderDetails/MoreInformationCard}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountOrderActionModal → OrderDetails/OrderActionModal}/styles.module.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountOrderActions → OrderDetails/OrderActions}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountOrderedByCard → OrderDetails/OrderedByCard}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountPaymentCard → OrderDetails/PaymentCard}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountReorderButton → OrderDetails/ReorderButton}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountStatusCard → OrderDetails/StatusCard}/styles.scss +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountStatusCard → OrderDetails/StatusCard}/useConnectorPositioning.ts +0 -0
- /package/src/components/account/orders/{MyAccountOrderDetails/MyAccountSummaryCard → OrderDetails/SummaryCard}/styles.scss +0 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extends": ["#/$defs/base-component"],
|
|
3
|
+
"$componentKey": "AccountOrdersList",
|
|
4
|
+
"$componentTitle": "Account Orders List",
|
|
5
|
+
"title": "Account Orders List",
|
|
6
|
+
"description": "Orders list section for My Account",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"pageTitle": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"title": "Page Title",
|
|
12
|
+
"default": "Orders"
|
|
13
|
+
},
|
|
14
|
+
"searchPlaceholder": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Search Placeholder",
|
|
17
|
+
"default": "Search"
|
|
18
|
+
},
|
|
19
|
+
"filtersLabel": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Filters Label",
|
|
22
|
+
"default": "Filters"
|
|
23
|
+
},
|
|
24
|
+
"clearAllLabel": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"title": "Clear All Label",
|
|
27
|
+
"default": "Clear All"
|
|
28
|
+
},
|
|
29
|
+
"viewResultsLabel": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "View Results Label",
|
|
32
|
+
"default": "View Results"
|
|
33
|
+
},
|
|
34
|
+
"noResultsLabel": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "No Results Label",
|
|
37
|
+
"default": "No results found"
|
|
38
|
+
},
|
|
39
|
+
"noOrdersLabel": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "No Orders Label",
|
|
42
|
+
"default": "You don't have any orders"
|
|
43
|
+
},
|
|
44
|
+
"startShoppingLabel": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "Start Shopping Label",
|
|
47
|
+
"default": "Start shopping"
|
|
48
|
+
},
|
|
49
|
+
"placedOnLabel": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"title": "Placed On Label",
|
|
52
|
+
"default": "Placed on"
|
|
53
|
+
},
|
|
54
|
+
"deliveryByLabel": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"title": "Delivery By Label",
|
|
57
|
+
"default": "Delivery by"
|
|
58
|
+
},
|
|
59
|
+
"pendingApprovalLabel": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"title": "Pending Approval Label",
|
|
62
|
+
"default": "Pending my approval"
|
|
63
|
+
},
|
|
64
|
+
"paginationOfLabel": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"title": "Pagination Of Label",
|
|
67
|
+
"default": "of"
|
|
68
|
+
},
|
|
69
|
+
"previousPageLabel": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"title": "Previous Page Label",
|
|
72
|
+
"default": "Previous Page"
|
|
73
|
+
},
|
|
74
|
+
"nextPageLabel": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"title": "Next Page Label",
|
|
77
|
+
"default": "Next Page"
|
|
78
|
+
},
|
|
79
|
+
"viewAllLabel": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"title": "View All Label",
|
|
82
|
+
"default": "View all"
|
|
83
|
+
},
|
|
84
|
+
"viewLessLabel": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"title": "View Less Label",
|
|
87
|
+
"default": "View less"
|
|
88
|
+
},
|
|
89
|
+
"fromLabel": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"title": "From Label",
|
|
92
|
+
"default": "From"
|
|
93
|
+
},
|
|
94
|
+
"toLabel": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"title": "To Label",
|
|
97
|
+
"default": "To"
|
|
98
|
+
},
|
|
99
|
+
"invalidDateRangeLabel": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"title": "Invalid Date Range Label",
|
|
102
|
+
"default": "Invalid date range"
|
|
103
|
+
},
|
|
104
|
+
"orderPlacedStatus": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"title": "Order Placed Status",
|
|
107
|
+
"default": "Order Placed"
|
|
108
|
+
},
|
|
109
|
+
"pendingApprovalStatus": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"title": "Pending Approval Status",
|
|
112
|
+
"default": "Pending approval"
|
|
113
|
+
},
|
|
114
|
+
"paymentPendingStatus": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"title": "Payment Pending Status",
|
|
117
|
+
"default": "Payment Pending"
|
|
118
|
+
},
|
|
119
|
+
"paymentApprovedStatus": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"title": "Payment Approved Status",
|
|
122
|
+
"default": "Payment Approved"
|
|
123
|
+
},
|
|
124
|
+
"paymentDeniedStatus": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"title": "Payment Denied Status",
|
|
127
|
+
"default": "Payment Denied"
|
|
128
|
+
},
|
|
129
|
+
"readyForDeliveryStatus": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"title": "Ready For Delivery Status",
|
|
132
|
+
"default": "Ready for Delivery"
|
|
133
|
+
},
|
|
134
|
+
"invoicedStatus": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"title": "Invoiced Status",
|
|
137
|
+
"default": "Invoiced"
|
|
138
|
+
},
|
|
139
|
+
"cancellationRequestedStatus": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"title": "Cancellation Requested Status",
|
|
142
|
+
"default": "Cancellation Requested"
|
|
143
|
+
},
|
|
144
|
+
"canceledStatus": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"title": "Canceled Status",
|
|
147
|
+
"default": "Canceled"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"readOnly": false,
|
|
151
|
+
"writeOnly": false,
|
|
152
|
+
"deprecated": false,
|
|
153
|
+
"$abstract": false
|
|
154
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extends": ["#/$defs/base-component"],
|
|
3
|
+
"$componentKey": "AccountOrderStatus",
|
|
4
|
+
"$componentTitle": "Account Order Status",
|
|
5
|
+
"title": "Account Order Status",
|
|
6
|
+
"description": "Order status timeline for My Account order details",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"statusTitle": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"title": "Status Title",
|
|
12
|
+
"default": "Status"
|
|
13
|
+
},
|
|
14
|
+
"orderPlacedStep": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Order Placed Step",
|
|
17
|
+
"default": "Order placed"
|
|
18
|
+
},
|
|
19
|
+
"paymentPendingStep": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Payment Pending Step",
|
|
22
|
+
"default": "Payment Pending"
|
|
23
|
+
},
|
|
24
|
+
"handlingStep": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"title": "Handling Step",
|
|
27
|
+
"default": "Handling order"
|
|
28
|
+
},
|
|
29
|
+
"invoicedStep": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "Invoiced Step",
|
|
32
|
+
"default": "Invoiced"
|
|
33
|
+
},
|
|
34
|
+
"deliveredStep": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "Delivered Step",
|
|
37
|
+
"default": "Delivered"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"readOnly": false,
|
|
41
|
+
"writeOnly": false,
|
|
42
|
+
"deprecated": false,
|
|
43
|
+
"$abstract": false
|
|
44
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extends": ["#/$defs/base-component"],
|
|
3
|
+
"$componentKey": "AccountOrderSummary",
|
|
4
|
+
"$componentTitle": "Account Order Summary",
|
|
5
|
+
"title": "Account Order Summary",
|
|
6
|
+
"description": "Order summary section for My Account order details",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"summaryTitle": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"title": "Summary Title",
|
|
12
|
+
"default": "Summary"
|
|
13
|
+
},
|
|
14
|
+
"totalLabel": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Total Label",
|
|
17
|
+
"default": "Total"
|
|
18
|
+
},
|
|
19
|
+
"interestLabel": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Interest Label",
|
|
22
|
+
"default": "Interest"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"readOnly": false,
|
|
26
|
+
"writeOnly": false,
|
|
27
|
+
"deprecated": false,
|
|
28
|
+
"$abstract": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extends": ["#/$defs/base-component"],
|
|
3
|
+
"$componentKey": "AccountProfile",
|
|
4
|
+
"$componentTitle": "Account Profile",
|
|
5
|
+
"title": "Account Profile",
|
|
6
|
+
"description": "Profile section for My Account page showing user information",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"pageTitle": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"title": "Page Title",
|
|
12
|
+
"default": "Profile"
|
|
13
|
+
},
|
|
14
|
+
"nameLabel": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Name Label",
|
|
17
|
+
"default": "Name"
|
|
18
|
+
},
|
|
19
|
+
"emailLabel": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Email Label",
|
|
22
|
+
"default": "Email"
|
|
23
|
+
},
|
|
24
|
+
"idLabel": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"title": "ID Label",
|
|
27
|
+
"default": "ID"
|
|
28
|
+
},
|
|
29
|
+
"createdDateLabel": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "Created Date Label",
|
|
32
|
+
"default": "Created date"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"readOnly": false,
|
|
36
|
+
"writeOnly": false,
|
|
37
|
+
"deprecated": false,
|
|
38
|
+
"$abstract": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extends": ["#/$defs/base-component"],
|
|
3
|
+
"$componentKey": "AccountSecurity",
|
|
4
|
+
"$componentTitle": "Account Security",
|
|
5
|
+
"title": "Account Security",
|
|
6
|
+
"description": "Security section for My Account",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"pageTitle": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"title": "Page Title",
|
|
12
|
+
"default": "Security"
|
|
13
|
+
},
|
|
14
|
+
"passwordLabel": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Password Label",
|
|
17
|
+
"default": "Password"
|
|
18
|
+
},
|
|
19
|
+
"resetPasswordLabel": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Reset Password Label",
|
|
22
|
+
"default": "Reset password"
|
|
23
|
+
},
|
|
24
|
+
"currentPasswordLabel": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"title": "Current Password Label",
|
|
27
|
+
"default": "Current Password"
|
|
28
|
+
},
|
|
29
|
+
"newPasswordLabel": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "New Password Label",
|
|
32
|
+
"default": "New Password"
|
|
33
|
+
},
|
|
34
|
+
"showPasswordAria": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "Show Password Aria Label",
|
|
37
|
+
"default": "Show Password"
|
|
38
|
+
},
|
|
39
|
+
"cancelLabel": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "Cancel Label",
|
|
42
|
+
"default": "Cancel"
|
|
43
|
+
},
|
|
44
|
+
"savePasswordLabel": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "Save Password Label",
|
|
47
|
+
"default": "Save Password"
|
|
48
|
+
},
|
|
49
|
+
"passwordRulesIntro": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"title": "Password Rules Intro",
|
|
52
|
+
"default": "Your password must have at least:"
|
|
53
|
+
},
|
|
54
|
+
"rule8Chars": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"title": "Rule 8 Characters",
|
|
57
|
+
"default": "8 characters"
|
|
58
|
+
},
|
|
59
|
+
"rule1Uppercase": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"title": "Rule 1 Uppercase",
|
|
62
|
+
"default": "1 uppercase letter"
|
|
63
|
+
},
|
|
64
|
+
"rule1Lowercase": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"title": "Rule 1 Lowercase",
|
|
67
|
+
"default": "1 lowercase letter"
|
|
68
|
+
},
|
|
69
|
+
"rule1Number": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"title": "Rule 1 Number",
|
|
72
|
+
"default": "1 number"
|
|
73
|
+
},
|
|
74
|
+
"emailRequiredError": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"title": "Email Required Error",
|
|
77
|
+
"default": "Email is required"
|
|
78
|
+
},
|
|
79
|
+
"allFieldsRequiredError": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"title": "All Fields Required Error",
|
|
82
|
+
"default": "All fields are required"
|
|
83
|
+
},
|
|
84
|
+
"samePasswordError": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"title": "Same Password Error",
|
|
87
|
+
"default": "New password cannot be the same as the current password"
|
|
88
|
+
},
|
|
89
|
+
"passwordUpdatedToast": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"title": "Password Updated Toast",
|
|
92
|
+
"default": "Password updated successfully"
|
|
93
|
+
},
|
|
94
|
+
"passwordFailedToast": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"title": "Password Failed Toast",
|
|
97
|
+
"default": "Failed to set password."
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"readOnly": false,
|
|
101
|
+
"writeOnly": false,
|
|
102
|
+
"deprecated": false,
|
|
103
|
+
"$abstract": false
|
|
104
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extends": ["#/$defs/base-component"],
|
|
3
|
+
"$componentKey": "AccountUnauthorized",
|
|
4
|
+
"$componentTitle": "Account Unauthorized",
|
|
5
|
+
"title": "Account Unauthorized",
|
|
6
|
+
"description": "Unauthorized access section for My Account 403 page",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"title": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"title": "Title",
|
|
12
|
+
"default": "Unauthorized Access"
|
|
13
|
+
},
|
|
14
|
+
"subtitle": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Subtitle",
|
|
17
|
+
"default": "You don't have permission to access this page."
|
|
18
|
+
},
|
|
19
|
+
"backLabel": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Back Label",
|
|
22
|
+
"default": "Back to Account"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"readOnly": false,
|
|
26
|
+
"writeOnly": false,
|
|
27
|
+
"deprecated": false,
|
|
28
|
+
"$abstract": false
|
|
29
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$extends": ["#/$defs/base-component"],
|
|
3
|
+
"$componentKey": "AccountUserDetails",
|
|
4
|
+
"$componentTitle": "Account User Details",
|
|
5
|
+
"title": "Account User Details",
|
|
6
|
+
"description": "User details section for My Account",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"pageTitle": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"title": "Page Title",
|
|
12
|
+
"default": "User details"
|
|
13
|
+
},
|
|
14
|
+
"nameLabel": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Name Label",
|
|
17
|
+
"default": "Name"
|
|
18
|
+
},
|
|
19
|
+
"usernameLabel": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Username Label",
|
|
22
|
+
"default": "Username"
|
|
23
|
+
},
|
|
24
|
+
"emailLabel": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"title": "Email Label",
|
|
27
|
+
"default": "Email"
|
|
28
|
+
},
|
|
29
|
+
"phoneLabel": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "Phone Label",
|
|
32
|
+
"default": "Phone number"
|
|
33
|
+
},
|
|
34
|
+
"roleLabel": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "Role Label",
|
|
37
|
+
"default": "Role"
|
|
38
|
+
},
|
|
39
|
+
"orgUnitLabel": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "Organizational Unit Label",
|
|
42
|
+
"default": "Organizational unit"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"readOnly": false,
|
|
46
|
+
"writeOnly": false,
|
|
47
|
+
"deprecated": false,
|
|
48
|
+
"$abstract": false
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"myAccountOrderDetails": {
|
|
3
|
+
"$extends": ["#/components/base-page-template"],
|
|
4
|
+
"$singleton": true,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "My Account — Order Details",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sections": {
|
|
9
|
+
"$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"readOnly": false,
|
|
13
|
+
"writeOnly": false,
|
|
14
|
+
"deprecated": false,
|
|
15
|
+
"$abstract": false,
|
|
16
|
+
"identifierKeys": []
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"myAccountOrders": {
|
|
3
|
+
"$extends": ["#/components/base-page-template"],
|
|
4
|
+
"$singleton": true,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "My Account — Orders",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sections": {
|
|
9
|
+
"$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"readOnly": false,
|
|
13
|
+
"writeOnly": false,
|
|
14
|
+
"deprecated": false,
|
|
15
|
+
"$abstract": false,
|
|
16
|
+
"identifierKeys": []
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"myAccountProfile": {
|
|
3
|
+
"$extends": ["#/components/base-page-template"],
|
|
4
|
+
"$singleton": true,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "My Account — Profile",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sections": {
|
|
9
|
+
"$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"readOnly": false,
|
|
13
|
+
"writeOnly": false,
|
|
14
|
+
"deprecated": false,
|
|
15
|
+
"$abstract": false,
|
|
16
|
+
"identifierKeys": []
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"myAccountSecurity": {
|
|
3
|
+
"$extends": ["#/components/base-page-template"],
|
|
4
|
+
"$singleton": true,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "My Account — Security",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sections": {
|
|
9
|
+
"$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"readOnly": false,
|
|
13
|
+
"writeOnly": false,
|
|
14
|
+
"deprecated": false,
|
|
15
|
+
"$abstract": false,
|
|
16
|
+
"identifierKeys": []
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"myAccountUnauthorized": {
|
|
3
|
+
"$extends": ["#/components/base-page-template"],
|
|
4
|
+
"$singleton": true,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "My Account — Unauthorized",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sections": {
|
|
9
|
+
"$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"readOnly": false,
|
|
13
|
+
"writeOnly": false,
|
|
14
|
+
"deprecated": false,
|
|
15
|
+
"$abstract": false,
|
|
16
|
+
"identifierKeys": []
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"myAccountUserDetails": {
|
|
3
|
+
"$extends": ["#/components/base-page-template"],
|
|
4
|
+
"$singleton": true,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "My Account — User Details",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sections": {
|
|
9
|
+
"$ref": "#/$defs/$ALLOW_ALL_COMPONENTS"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"readOnly": false,
|
|
13
|
+
"writeOnly": false,
|
|
14
|
+
"deprecated": false,
|
|
15
|
+
"$abstract": false,
|
|
16
|
+
"identifierKeys": []
|
|
17
|
+
}
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "4.4.0-dev.
|
|
3
|
+
"version": "4.4.0-dev.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"style-loader": "^3.3.1",
|
|
72
72
|
"swr": "^2.2.5",
|
|
73
73
|
"use-sync-external-store": "^1.6.0",
|
|
74
|
-
"@faststore/
|
|
75
|
-
"@faststore/
|
|
76
|
-
"@faststore/
|
|
77
|
-
"@faststore/
|
|
78
|
-
"@faststore/ui": "4.4.0-dev.
|
|
74
|
+
"@faststore/diagnostics": "4.4.0-dev.2",
|
|
75
|
+
"@faststore/api": "4.4.0-dev.2",
|
|
76
|
+
"@faststore/lighthouse": "4.4.0-dev.2",
|
|
77
|
+
"@faststore/sdk": "4.4.0-dev.2",
|
|
78
|
+
"@faststore/ui": "4.4.0-dev.2"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@cypress/code-coverage": "^3.12.1",
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
import { Link } from '@faststore/ui'
|
|
2
2
|
|
|
3
3
|
import menuRoutes from 'src/customizations/src/myAccount/navigation'
|
|
4
|
-
import {
|
|
4
|
+
import { useAccountNavigationLabels } from 'src/sdk/account/accountPageContext'
|
|
5
|
+
import {
|
|
6
|
+
USER_DETAILS_ROUTE,
|
|
7
|
+
getExtraMyAccountRoutes,
|
|
8
|
+
getMyAccountRoutes,
|
|
9
|
+
} from 'src/sdk/account/getMyAccountRoutes'
|
|
5
10
|
|
|
6
11
|
const ROUTES_ONLY_FOR_REPRESENTATIVE = [USER_DETAILS_ROUTE]
|
|
7
12
|
|
|
8
13
|
export const OrganizationDrawerBody = ({
|
|
9
14
|
isRepresentative,
|
|
10
15
|
}: { isRepresentative: boolean }) => {
|
|
16
|
+
const navigationLabels = useAccountNavigationLabels()
|
|
17
|
+
|
|
18
|
+
const menuItems = getMyAccountRoutes({
|
|
19
|
+
routes: getExtraMyAccountRoutes(menuRoutes),
|
|
20
|
+
labels: navigationLabels,
|
|
21
|
+
})
|
|
22
|
+
|
|
11
23
|
const routes = isRepresentative
|
|
12
|
-
?
|
|
13
|
-
:
|
|
24
|
+
? menuItems
|
|
25
|
+
: menuItems.filter(
|
|
14
26
|
({ route }) => !ROUTES_ONLY_FOR_REPRESENTATIVE.includes(route)
|
|
15
27
|
)
|
|
16
28
|
return (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button, Icon } from '@faststore/ui'
|
|
2
2
|
import { useState, type MouseEvent } from 'react'
|
|
3
|
+
import { useAccountNavigationLabels } from 'src/sdk/account/accountPageContext'
|
|
3
4
|
import { useSession } from 'src/sdk/session'
|
|
4
5
|
import { OrganizationDrawer } from '../OrganizationDrawer/OrganizationDrawer'
|
|
5
6
|
|
|
@@ -13,6 +14,9 @@ export const OrganizationSignInButton = ({
|
|
|
13
14
|
const [isOpen, setIsOpen] = useState(false)
|
|
14
15
|
|
|
15
16
|
const { person } = useSession()
|
|
17
|
+
const navigationLabels = useAccountNavigationLabels()
|
|
18
|
+
const companyLabel = navigationLabels?.companyLabel ?? 'Company'
|
|
19
|
+
const contractLabel = navigationLabels?.contractLabel ?? 'Contract'
|
|
16
20
|
|
|
17
21
|
const openDrawer = (
|
|
18
22
|
event: MouseEvent<HTMLAnchorElement> | MouseEvent<HTMLButtonElement>
|
|
@@ -41,7 +45,7 @@ export const OrganizationSignInButton = ({
|
|
|
41
45
|
icon={<Icon name={icon} width={18} height={18} weight="bold" />}
|
|
42
46
|
iconPosition="left"
|
|
43
47
|
>
|
|
44
|
-
{person?.id ?
|
|
48
|
+
{person?.id ? companyLabel : contractLabel}
|
|
45
49
|
</Button>
|
|
46
50
|
|
|
47
51
|
{isOpen && (
|