@faststore/core 4.8.1-dev.0 → 4.8.1-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.
Files changed (89) hide show
  1. package/.turbo/turbo-generate.log +3 -3
  2. package/.turbo/turbo-test.log +146 -105
  3. package/@generated/gql.ts +3 -3
  4. package/@generated/graphql.ts +4 -2
  5. package/@generated/persisted-documents.json +1 -1
  6. package/@generated/schema.graphql +4 -0
  7. package/CHANGELOG.md +16 -0
  8. package/cms/faststore/my-account/components/cms_component__accountnavigation.jsonc +10 -0
  9. package/cms/faststore/my-account/components/cms_component__accountorderdelivery.jsonc +80 -0
  10. package/cms/faststore/my-account/components/cms_component__accountorderdetails.jsonc +25 -0
  11. package/cms/faststore/my-account/components/cms_component__accountorderslist.jsonc +10 -0
  12. package/cms/faststore/my-account/components/cms_component__accountorderstatus.jsonc +90 -0
  13. package/cms/faststore/my-account/components/cms_component__accountordersummary.jsonc +25 -0
  14. package/package.json +6 -6
  15. package/src/components/account/Drawer/OrganizationDrawer/ContractSwitcher/ContractSwitcher.tsx +4 -6
  16. package/src/components/account/Drawer/OrganizationDrawer/OrganizationDrawer.tsx +18 -3
  17. package/src/components/account/Drawer/OrganizationDrawer/OrganizationDrawerFooter.tsx +13 -2
  18. package/src/components/account/Drawer/OrganizationDrawer/OrganizationDrawerHeader.tsx +1 -0
  19. package/src/components/account/Drawer/OrganizationDrawer/section.module.scss +7 -0
  20. package/src/components/account/Drawer/OrganizationSignInButton/OrganizationSignInButton.tsx +7 -9
  21. package/src/components/account/Menu/Menu.tsx +24 -7
  22. package/src/components/account/orders/ListOrders/FilterSlider/FilterFacetPendingApproval/FilterFacetPendingApproval.tsx +8 -3
  23. package/src/components/account/orders/ListOrders/FilterSlider/FilterSlider.tsx +1 -0
  24. package/src/components/account/orders/ListOrders/ListOrders.tsx +2 -2
  25. package/src/components/account/orders/ListOrders/listOrdersLabels.ts +4 -0
  26. package/src/components/account/orders/OrderDetails/BuyingPolicyAlert/BuyingPolicyAlert.tsx +45 -9
  27. package/src/components/account/orders/OrderDetails/DeliveryCard/DeliveryCard.tsx +14 -3
  28. package/src/components/account/orders/OrderDetails/DeliveryOptionAccordion/DeliveryOptionAccordion.tsx +4 -1
  29. package/src/components/account/orders/OrderDetails/DeliveryOptionAccordion/DeliveryOptionAccordionDeliveryInfo.tsx +14 -7
  30. package/src/components/account/orders/OrderDetails/DeliveryOptionAccordion/DeliveryOptionAccordionProducts.tsx +8 -5
  31. package/src/components/account/orders/OrderDetails/OrderDetailsHeader.tsx +5 -0
  32. package/src/components/account/orders/OrderDetails/StatusCard/StatusCard.tsx +26 -89
  33. package/src/components/account/orders/OrderDetails/StatusCard/statusCardLocalization.ts +114 -0
  34. package/src/components/account/orders/OrderDetails/SummaryCard/SummaryCard.tsx +2 -1
  35. package/src/components/account/orders/OrderDetails/SummaryCard/getOrderTotalLabel.ts +19 -0
  36. package/src/components/account/orders/OrderDetails/getDeliveryOptionLabel.ts +135 -0
  37. package/src/components/account/orders/OrderDetails/orderDetailsLabels.ts +73 -0
  38. package/src/components/navigation/Navbar/Navbar.tsx +17 -19
  39. package/src/components/navigation/Navbar/NavbarAccountArea.tsx +57 -0
  40. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +16 -18
  41. package/src/components/sections/Account/AccountOrderDelivery.tsx +3 -1
  42. package/src/components/sections/Account/AccountOrderDetails.tsx +16 -0
  43. package/src/components/sections/Account/AccountOrderStatus.tsx +27 -3
  44. package/src/components/sections/Account/AccountOrdersList.tsx +4 -0
  45. package/src/pages/api/fs/switch-contract.ts +194 -0
  46. package/src/pages/api/graphql.ts +108 -69
  47. package/src/sdk/account/accountPageContext.ts +14 -3
  48. package/src/sdk/account/changeContractToken.ts +19 -63
  49. package/src/sdk/account/clearPersistedSessionState.ts +13 -7
  50. package/src/sdk/account/getMyAccountRoutes.ts +2 -0
  51. package/src/sdk/account/useAvailableContracts.ts +1 -0
  52. package/src/sdk/account/useSwitchContract.ts +11 -3
  53. package/src/sdk/overrides/PageProvider.tsx +1 -1
  54. package/src/sdk/session/index.ts +2 -1
  55. package/src/sdk/session/isSignInAreaResolved.ts +12 -0
  56. package/test/components/account/ContractSwitcher.browser.test.tsx +42 -0
  57. package/test/components/account/Menu.browser.test.tsx +123 -0
  58. package/test/components/account/OrganizationDrawer.browser.test.tsx +148 -0
  59. package/test/components/account/OrganizationDrawerFooter.browser.test.tsx +95 -1
  60. package/test/components/account/OrganizationDrawerHeader.browser.test.tsx +2 -0
  61. package/test/components/account/OrganizationSignInButton.browser.test.tsx +49 -0
  62. package/test/components/account/orders/BuyingPolicyAlert.browser.test.tsx +342 -0
  63. package/test/components/account/orders/DeliveryCard.browser.test.tsx +36 -0
  64. package/test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx +76 -0
  65. package/test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx +41 -0
  66. package/test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx +35 -0
  67. package/test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx +25 -0
  68. package/test/components/account/orders/StatusCard.browser.test.tsx +37 -0
  69. package/test/components/account/orders/StatusCard.test.ts +101 -0
  70. package/test/components/account/orders/SummaryCard.browser.test.tsx +59 -0
  71. package/test/components/account/orders/getDeliveryOptionLabel.test.ts +129 -0
  72. package/test/components/account/orders/getOrderTotalLabel.test.ts +35 -0
  73. package/test/components/account/orders/listOrdersLabels.test.ts +23 -0
  74. package/test/components/account/orders/orderDetailsLabels.test.ts +13 -0
  75. package/test/components/navigation/Navbar.browser.test.tsx +183 -0
  76. package/test/components/navigation/NavbarAccountArea.browser.test.tsx +115 -0
  77. package/test/components/navigation/NavbarSlider.browser.test.tsx +143 -0
  78. package/test/components/sections/Account/AccountOrderDelivery.browser.test.tsx +72 -0
  79. package/test/components/sections/Account/AccountOrderDetails.browser.test.tsx +151 -0
  80. package/test/components/sections/Account/AccountOrderStatus.browser.test.tsx +59 -0
  81. package/test/components/sections/Account/AccountOrdersList.browser.test.tsx +67 -0
  82. package/test/pages/api/graphql.test.ts +27 -1
  83. package/test/pages/api/switch-contract.test.ts +385 -0
  84. package/test/sdk/account/changeContractToken.browser.test.ts +23 -71
  85. package/test/sdk/account/clearPersistedSessionState.browser.test.ts +24 -0
  86. package/test/sdk/account/getMyAccountRoutes.test.ts +11 -1
  87. package/test/sdk/account/useSwitchContract.browser.test.ts +21 -0
  88. package/test/sdk/session/isSignInAreaResolved.test.ts +22 -0
  89. package/test/utils/userOrderStatus.test.ts +22 -0
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.8.0 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.8.1-dev.1 generate /home/runner/work/faststore/faststore/packages/core
3
3
  > pnpm run gen-types && pnpm run cache-graphql
4
4
 
5
5
 
6
- > @faststore/core@4.8.0 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.8.1-dev.1 gen-types /home/runner/work/faststore/faststore/packages/core
7
7
  > node ../cli/bin/run generate-types .
8
8
 
9
9
  [STARTED] Parse Configuration
@@ -19,7 +19,7 @@
19
19
  [COMPLETED] Generate to @generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.8.0 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.8.1-dev.1 cache-graphql /home/runner/work/faststore/faststore/packages/core
23
23
  > node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json
24
24
 
25
25
  [Info] - Config file location: /home/runner/work/faststore/faststore/packages/core/discovery.config.default.js
@@ -1,5 +1,5 @@
1
1
 
2
- > @faststore/core@4.8.0 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.8.1-dev.1 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
@@ -10,16 +10,20 @@ Not implemented: navigation to another Document
10
10
  Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
11
11
  npx update-browserslist-db@latest
12
12
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
13
- ✓  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 855ms
14
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 427ms
15
- ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 2153ms
16
- ✓ shows the tab bar and renders Personal cards by default  848ms
17
- ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 136ms
18
- ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (13 tests) 1926ms
19
- ✓ shows an error state when the list fails to load  570ms
20
- ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  309ms
21
- ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 187ms
22
- ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 17ms
13
+ ✓  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 1066ms
14
+ ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 2228ms
15
+ ✓ shows the tab bar and renders Personal cards by default  862ms
16
+ ✓ paginates when there are more than 25 cards  310ms
17
+ ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 2131ms
18
+ ✓ opens the reject confirmation modal with the default English copy  850ms
19
+ ✓ opens the reject confirmation modal with CMS-provided labels  365ms
20
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 208ms
21
+ ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (14 tests) 1758ms
22
+ ✓ shows an error state when the list fails to load  667ms
23
+ ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1228ms
24
+ ✓ renders the menu view with contract details and manage footer  613ms
25
+ ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 106ms
26
+ ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 93ms
23
27
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
24
28
  Error in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=3c71b0d3fc2bade14df68abfa271858beb361b12
25
29
   at node:internal/deps/undici/undici:16416:13
@@ -49,9 +53,11 @@ Browserslist: browsers data (caniuse-lite) is 7 months old. Please run:
49
53
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
50
54
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
51
55
 
52
- ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 82ms
53
- ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 149ms
54
- ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 63ms
56
+ ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 133ms
57
+ ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (5 tests) 18ms
58
+ ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 38ms
59
+ ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 97ms
60
+ ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 49ms
55
61
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
56
62
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
57
63
 
@@ -89,6 +95,8 @@ act(() => {
89
95
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
90
96
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
91
97
 
98
+ ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 46ms
99
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 7ms
92
100
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > defaults returnTo to root and shows API validation errors
93
101
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
94
102
 
@@ -281,13 +289,9 @@ act(() => {
281
289
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
282
290
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
283
291
 
284
- ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 630ms
285
- ✓ renders the password protection form  306ms
286
- ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (5 tests) 709ms
287
- ✓ renders the menu view with contract details and manage footer  327ms
288
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 13ms
289
- ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 64ms
290
- stderr | test/sdk/localization/store-url.browser.test.ts
292
+ ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 420ms
293
+ ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 34ms
294
+ stderr | test/components/cms/RenderSections.browser.test.tsx
291
295
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
292
296
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
293
297
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
@@ -295,9 +299,10 @@ This ensures that you're testing the behavior the user would see in the browser.
295
299
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
296
300
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
297
301
 
298
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 4ms
299
- ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 28ms
300
- stderr | test/components/cms/RenderSections.browser.test.tsx
302
+ ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 263ms
303
+ ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 66ms
304
+ ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 33ms
305
+ stderr | test/sdk/localization/store-url.browser.test.ts
301
306
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
302
307
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
303
308
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:120:9)
@@ -305,11 +310,14 @@ This ensures that you're testing the behavior the user would see in the browser.
305
310
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
306
311
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
307
312
 
308
- ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 54ms
313
+ ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 252ms
314
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 5ms
315
+ ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 32ms
309
316
  ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 31ms
310
- ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 125ms
311
- ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (4 tests) 33ms
312
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 40ms
317
+ ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 129ms
318
+ ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 49ms
319
+ ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 17ms
320
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 35ms
313
321
  stderr | test/components/account/doLogout.browser.test.ts
314
322
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
315
323
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -318,10 +326,7 @@ This ensures that you're testing the behavior the user would see in the browser.
318
326
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
319
327
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
320
328
 
321
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 21ms
322
- ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 39ms
323
- ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 50ms
324
- ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 247ms
329
+ ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 15ms
325
330
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
326
331
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
327
332
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -330,12 +335,24 @@ This ensures that you're testing the behavior the user would see in the browser.
330
335
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
331
336
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
332
337
 
333
- ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (1 test) 7ms
334
- ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (3 tests) 227ms
338
+ ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 16ms
339
+ ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 29ms
340
+ ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 83ms
341
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 71ms
342
+ ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 88ms
343
+ ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 61ms
344
+ ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 30ms
345
+ ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (3 tests) 218ms
346
+ ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 61ms
347
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 34ms
348
+ ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (2 tests) 194ms
349
+ ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 87ms
335
350
  ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 4ms
336
351
  ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 3ms
337
- ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 29ms
338
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 21ms
352
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 33ms
353
+ ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 38ms
354
+ ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 32ms
355
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 20ms
339
356
  stderr | test/sdk/account/refreshToken.browser.test.ts
340
357
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
341
358
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -344,12 +361,14 @@ This ensures that you're testing the behavior the user would see in the browser.
344
361
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:354:23)
345
362
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
346
363
 
347
- ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 6ms
348
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 29ms
364
+ ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 5ms
365
+ ✓  node  test/server/password-protection-service.test.ts (22 tests) 43ms
366
+ ✓  node  test/pages/api/switch-contract.test.ts (25 tests) 67ms
367
+ ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 160ms
349
368
  ✓  node  test/utils/match-url.test.ts (10 tests) 7ms
350
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 11ms
351
- ✓  node  test/pages/api/unlock.test.ts (15 tests) 117ms
352
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 5ms
369
+ ✓  node  test/pages/api/unlock.test.ts (15 tests) 109ms
370
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 13ms
371
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 11ms
353
372
  stderr | test/components/search/SearchInputComponent.test.tsx
354
373
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
355
374
 
@@ -413,19 +432,16 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
413
432
  at Suspense
414
433
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
415
434
 
416
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 67ms
417
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 46ms
418
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 12ms
419
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 21ms
435
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 58ms
436
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 37ms
437
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 10ms
420
438
  stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > redirects to /pvt/account/403 when the query fails with 401/403
421
439
  { extensions: { status: 401 } }
422
440
 
423
441
  stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > renders the error state (no redirect) when the query fails with a non-auth status
424
442
  { extensions: { status: 502 } }
425
443
 
426
- ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 13ms
427
- ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 9ms
428
- ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 344ms
444
+ ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 7ms
429
445
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
430
446
  Graphql execution returned with error: [
431
447
  {
@@ -472,11 +488,14 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
472
488
  { message: 'bad', status: 400, type: 'BadRequestError' }
473
489
  ]
474
490
 
491
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > sets cache-control: no-store on error responses so a bare 404/410 is not cached by intermediaries
492
+ Graphql execution returned with error: [ { message: 'missing', status: 404, type: 'NotFoundError' } ]
493
+
475
494
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps BadRequestError thrown by execute to its status
476
495
  Something unexpected occurred querying Graphql endpoint:
477
496
  E [FastStoreError]: malformed
478
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:190:31
479
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:196:39
497
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:201:31
498
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:207:39
480
499
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1024:60
481
500
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
482
501
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
@@ -491,8 +510,8 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
491
510
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps UnauthorizedError thrown by execute to its status
492
511
  Something unexpected occurred querying Graphql endpoint:
493
512
  ie [FastStoreError]: expired
494
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:191:33
495
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:196:39
513
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:202:33
514
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:207:39
496
515
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1024:60
497
516
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
498
517
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
@@ -507,8 +526,8 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
507
526
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps an unexpected failure thrown by execute to its status
508
527
  Something unexpected occurred querying Graphql endpoint:
509
528
  Error: socket hang up
510
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:192:37
511
- at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:196:39
529
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:203:37
530
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:207:39
512
531
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1024:60
513
532
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
514
533
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
@@ -518,69 +537,91 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
518
537
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:37
519
538
  at Traces.$ (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@20.19.13_jiti@2.6.1_jsdom@27.4.0_sas_13be941c57d55f08f06eeaf1c180ddfe/node_modules/vitest/dist/chunks/traces.CCmnQaNT.js:142:27)
520
539
 
521
- ✓  node  test/pages/api/graphql.test.ts (17 tests) 18ms
540
+ stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > skips the cache-control header when headers were already sent
541
+ Something unexpected occurred querying Graphql endpoint:
542
+ Error: boom after flush
543
+ at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:219:37
544
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
545
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:915:26
546
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1243:20
547
+ at new Promise (<anonymous>)
548
+ at runWithTimeout (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1209:10)
549
+ at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:37
550
+ at Traces.$ (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@20.19.13_jiti@2.6.1_jsdom@27.4.0_sas_13be941c57d55f08f06eeaf1c180ddfe/node_modules/vitest/dist/chunks/traces.CCmnQaNT.js:142:27)
551
+ at trace (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@20.19.13_jiti@2.6.1_jsdom@27.4.0_sas_13be941c57d55f08f06eeaf1c180ddfe/node_modules/vitest/dist/chunks/test.B8ej_ZHS.js:239:21)
552
+ at runTest (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:12)
553
+
554
+ ✓  node  test/pages/api/graphql.test.ts (19 tests) 29ms
555
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 16ms
556
+ ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 8ms
522
557
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
523
558
  Set password request failed: Bad Request
524
559
 
525
- ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 22ms
526
- ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 791ms
527
- ✓ navigates with the search term on blur  360ms
528
- ✓ navigates without a label param when the search is cleared  359ms
529
- ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 22ms
530
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 27ms
531
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 4ms
532
- ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 5ms
533
- ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 6ms
534
- ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (12 tests) 7ms
535
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 41ms
536
- ✓  node  test/sdk/redirects/index.test.ts (7 tests) 46ms
537
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 124ms
538
- ✓  node  test/utils/productJsonLd.test.ts (17 tests) 9ms
539
- ✓  node  test/proxy.localization.test.ts (5 tests) 33ms
540
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 33ms
541
- ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 12ms
542
- ✓  node  test/server/index.test.ts (7 tests) 972ms
543
- ✓ should handle options and execute  558ms
544
- ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (6 tests) 6ms
545
- ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 46ms
546
- ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 86ms
547
- ✓  node  test/server/webops-api.test.ts (9 tests) 9ms
548
- ✓  node  test/proxy.test.ts (4 tests) 19ms
549
- ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 4ms
550
- ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 34ms
551
- ✓  node  test/server/content/service.test.ts (5 tests) 4ms
552
- ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 9ms
560
+ ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 35ms
561
+ ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (12 tests) 271ms
562
+ ✓  node  test/components/quotes/quoteFilters.test.ts (23 tests) 18ms
563
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 3ms
564
+ ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 3ms
565
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 31ms
566
+ ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (9 tests) 814ms
567
+ ✓ navigates with the search term on blur  363ms
568
+ ✓ navigates without a label param when the search is cleared  360ms
569
+ ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 7ms
570
+ ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 8ms
571
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 35ms
572
+ ✓  node  test/sdk/redirects/index.test.ts (7 tests) 40ms
573
+ ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (5 tests) 117ms
574
+ ✓  node  test/utils/productJsonLd.test.ts (17 tests) 8ms
575
+ ✓  node  test/proxy.localization.test.ts (5 tests) 50ms
576
+ ✓  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 6ms
577
+ ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 15ms
578
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 34ms
579
+ ✓  node  test/server/index.test.ts (7 tests) 716ms
580
+ ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (6 tests) 7ms
581
+ ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 43ms
582
+ ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (8 tests) 89ms
583
+ ✓  node  test/proxy.test.ts (4 tests) 15ms
584
+ ✓  node  test/server/webops-api.test.ts (9 tests) 13ms
585
+ ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 21ms
586
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 37ms
587
+ ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 5ms
588
+ ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 10ms
553
589
  ✓  node  test/server/cms/myAccountDefaultSections.test.ts (7 tests) 5ms
554
- ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 8ms
555
590
  ✓  node  test/utils/productJsonLdRendering.test.tsx (4 tests) 11ms
556
- ✓  node  test/server/cms/global.test.ts (3 tests) 3ms
557
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 28ms
558
- ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 90ms
591
+ ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 7ms
592
+ ✓  node  test/server/content/service.test.ts (5 tests) 4ms
593
+ ✓  node  test/server/cms/global.test.ts (3 tests) 4ms
594
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 25ms
595
+ ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (6 tests) 115ms
559
596
  ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 4ms
560
- ✓  node  test/server/rootSpan.test.ts (4 tests) 32ms
597
+ ✓  node  test/server/rootSpan.test.ts (4 tests) 31ms
561
598
  ✓  node  test/pages/api/preview.test.ts (2 tests) 7ms
599
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 3ms
562
600
  ✓  node  test/components/search/SearchInput.test.ts (6 tests) 6ms
563
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 5ms
564
- ✓  node  test/components/account/Layout.test.tsx (6 tests) 55ms
601
+ ✓  node  test/components/account/Layout.test.tsx (6 tests) 54ms
565
602
  ✓  node  test/sdk/recommendations/vrn.test.ts (5 tests) 5ms
566
- ✓  node  test/utils/retry.test.ts (5 tests) 12ms
567
- ✓  node  test/server/cms/index.test.ts (2 tests) 4ms
568
- ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 4ms
569
- ✓  node  test/utils/unlockResponse.test.ts (11 tests) 5ms
570
- ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 3ms
571
- ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 172ms
572
- ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 40ms
603
+ ✓  node  test/server/cms/index.test.ts (2 tests) 7ms
604
+ ✓  node  test/utils/retry.test.ts (5 tests) 11ms
605
+ ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 5ms
606
+ ✓  node  test/utils/userOrderStatus.test.ts (4 tests) 5ms
607
+ ✓  node  test/utils/unlockResponse.test.ts (11 tests) 3ms
608
+ ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 4ms
609
+ ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 185ms
610
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 38ms
573
611
  ✓  node  test/utils/isLocalHost.test.ts (7 tests) 4ms
574
- ✓  node  test/utils/userOrderStatus.test.ts (3 tests) 3ms
612
+ ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 4ms
613
+ ✓  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 3ms
575
614
  ✓  node  test/utils/getCookie.test.ts (4 tests) 4ms
576
- ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 3ms
577
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 37ms
615
+ ✓  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 3ms
616
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 35ms
617
+ ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 2ms
618
+ ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 31ms
578
619
  ✓  node  test/instrumentation.test.ts (3 tests) 3ms
620
+ ✓  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 3ms
579
621
  ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 8ms
580
- ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (2 tests) 25ms
581
622
 
582
-  Test Files  98 passed (98)
583
-  Tests  795 passed (795)
584
-  Start at  00:32:50
585
-  Duration  36.50s (transform 9.42s, setup 0ms, import 32.90s, tests 12.04s, environment 44.24s)
623
+  Test Files  122 passed (122)
624
+  Tests  926 passed (926)
625
+  Start at  23:47:19
626
+  Duration  42.97s (transform 10.45s, setup 0ms, import 38.63s, tests 15.36s, environment 52.12s)
586
627
 
package/@generated/gql.ts CHANGED
@@ -40,7 +40,7 @@ type Documents = {
40
40
  "\n query ServerQuotesOrganizationMemberQuery {\n isOrganizationMember\n }\n": typeof types.ServerQuotesOrganizationMemberQueryDocument,
41
41
  "\n query ServerSecurity {\n accountProfile {\n name\n }\n userDetails {\n email\n }\n }\n": typeof types.ServerSecurityDocument,
42
42
  "\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n username\n name\n email\n phone\n role\n orgUnit\n }\n }\n": typeof types.ServerUserDetailsQueryDocument,
43
- "\n query AvailableContractsQuery($orgUnitId: String!) {\n availableContracts(orgUnitId: $orgUnitId) {\n id\n corporateName\n isActive\n }\n }\n": typeof types.AvailableContractsQueryDocument,
43
+ "\n query AvailableContractsQuery($orgUnitId: String!) {\n availableContracts(orgUnitId: $orgUnitId) {\n id\n corporateName\n isActive\n isDefault\n }\n }\n": typeof types.AvailableContractsQueryDocument,
44
44
  "\n mutation CancelOrderMutation($data: IUserOrderCancel!) {\n cancelOrder(data: $data) {\n data\n }\n }\n": typeof types.CancelOrderMutationDocument,
45
45
  "\n mutation ProcessOrderAuthorizationMutation($data: IProcessOrderAuthorization!) {\n processOrderAuthorization(data: $data) {\n isPendingForOtherAuthorizer\n ruleForAuthorization {\n orderAuthorizationId\n dimensionId\n rule {\n id\n name\n status\n doId\n authorizedEmails\n priority\n trigger {\n condition {\n conditionType\n description\n lessThan\n greatherThan\n expression\n }\n effect {\n description\n effectType\n funcPath\n }\n }\n timeout\n notification\n scoreInterval {\n accept\n deny\n }\n authorizationData {\n requireAllApprovals\n authorizers {\n id\n email\n type\n authorizationDate\n }\n }\n isUserAuthorized\n isUserNextAuthorizer\n }\n }\n }\n }\n": typeof types.ProcessOrderAuthorizationMutationDocument,
46
46
  "\n query ValidateUser {\n validateUser {\n isValid\n }\n }\n": typeof types.ValidateUserDocument,
@@ -93,7 +93,7 @@ const documents: Documents = {
93
93
  "\n query ServerQuotesOrganizationMemberQuery {\n isOrganizationMember\n }\n": types.ServerQuotesOrganizationMemberQueryDocument,
94
94
  "\n query ServerSecurity {\n accountProfile {\n name\n }\n userDetails {\n email\n }\n }\n": types.ServerSecurityDocument,
95
95
  "\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n username\n name\n email\n phone\n role\n orgUnit\n }\n }\n": types.ServerUserDetailsQueryDocument,
96
- "\n query AvailableContractsQuery($orgUnitId: String!) {\n availableContracts(orgUnitId: $orgUnitId) {\n id\n corporateName\n isActive\n }\n }\n": types.AvailableContractsQueryDocument,
96
+ "\n query AvailableContractsQuery($orgUnitId: String!) {\n availableContracts(orgUnitId: $orgUnitId) {\n id\n corporateName\n isActive\n isDefault\n }\n }\n": types.AvailableContractsQueryDocument,
97
97
  "\n mutation CancelOrderMutation($data: IUserOrderCancel!) {\n cancelOrder(data: $data) {\n data\n }\n }\n": types.CancelOrderMutationDocument,
98
98
  "\n mutation ProcessOrderAuthorizationMutation($data: IProcessOrderAuthorization!) {\n processOrderAuthorization(data: $data) {\n isPendingForOtherAuthorizer\n ruleForAuthorization {\n orderAuthorizationId\n dimensionId\n rule {\n id\n name\n status\n doId\n authorizedEmails\n priority\n trigger {\n condition {\n conditionType\n description\n lessThan\n greatherThan\n expression\n }\n effect {\n description\n effectType\n funcPath\n }\n }\n timeout\n notification\n scoreInterval {\n accept\n deny\n }\n authorizationData {\n requireAllApprovals\n authorizers {\n id\n email\n type\n authorizationDate\n }\n }\n isUserAuthorized\n isUserNextAuthorizer\n }\n }\n }\n }\n": types.ProcessOrderAuthorizationMutationDocument,
99
99
  "\n query ValidateUser {\n validateUser {\n isValid\n }\n }\n": types.ValidateUserDocument,
@@ -224,7 +224,7 @@ export function gql(source: "\n query ServerUserDetailsQuery {\n accountProf
224
224
  /**
225
225
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
226
226
  */
227
- export function gql(source: "\n query AvailableContractsQuery($orgUnitId: String!) {\n availableContracts(orgUnitId: $orgUnitId) {\n id\n corporateName\n isActive\n }\n }\n"): typeof import('./graphql').AvailableContractsQueryDocument;
227
+ export function gql(source: "\n query AvailableContractsQuery($orgUnitId: String!) {\n availableContracts(orgUnitId: $orgUnitId) {\n id\n corporateName\n isActive\n isDefault\n }\n }\n"): typeof import('./graphql').AvailableContractsQueryDocument;
228
228
  /**
229
229
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
230
230
  */
@@ -1447,6 +1447,8 @@ export type StoreContract = {
1447
1447
  id: Scalars['ID']['output'];
1448
1448
  /** Indicates whether this contract is the one currently active in the session. */
1449
1449
  isActive: Scalars['Boolean']['output'];
1450
+ /** Indicates whether this contract is the Organization Unit's default contract. */
1451
+ isDefault: Scalars['Boolean']['output'];
1450
1452
  };
1451
1453
 
1452
1454
  /** Currency information. */
@@ -2907,7 +2909,7 @@ export type AvailableContractsQueryQueryVariables = Exact<{
2907
2909
  }>;
2908
2910
 
2909
2911
 
2910
- export type AvailableContractsQueryQuery = { availableContracts: Array<{ id: string, corporateName: string, isActive: boolean }> };
2912
+ export type AvailableContractsQueryQuery = { availableContracts: Array<{ id: string, corporateName: string, isActive: boolean, isDefault: boolean }> };
2911
2913
 
2912
2914
  export type CancelOrderMutationMutationVariables = Exact<{
2913
2915
  data: IUserOrderCancel;
@@ -3645,7 +3647,7 @@ export const ServerListQuotesQueryDocument = {"__meta__":{"operationName":"Serve
3645
3647
  export const ServerQuotesOrganizationMemberQueryDocument = {"__meta__":{"operationName":"ServerQuotesOrganizationMemberQuery","operationHash":"9ba9119f2a361c83af8ecc703cb28f915df10ac8"}} as unknown as TypedDocumentString<ServerQuotesOrganizationMemberQueryQuery, ServerQuotesOrganizationMemberQueryQueryVariables>;
3646
3648
  export const ServerSecurityDocument = {"__meta__":{"operationName":"ServerSecurity","operationHash":"0890ba3456c40a426893b80b698df7a84cfdd6a1"}} as unknown as TypedDocumentString<ServerSecurityQuery, ServerSecurityQueryVariables>;
3647
3649
  export const ServerUserDetailsQueryDocument = {"__meta__":{"operationName":"ServerUserDetailsQuery","operationHash":"630ec1f47f2710ce3d7895e9131482641f30c837"}} as unknown as TypedDocumentString<ServerUserDetailsQueryQuery, ServerUserDetailsQueryQueryVariables>;
3648
- export const AvailableContractsQueryDocument = {"__meta__":{"operationName":"AvailableContractsQuery","operationHash":"011619bb1be93a21f6530fe4d193dec96a89e88a"}} as unknown as TypedDocumentString<AvailableContractsQueryQuery, AvailableContractsQueryQueryVariables>;
3650
+ export const AvailableContractsQueryDocument = {"__meta__":{"operationName":"AvailableContractsQuery","operationHash":"e9dd3c5b658d90cf6b6028837131273d3560cb32"}} as unknown as TypedDocumentString<AvailableContractsQueryQuery, AvailableContractsQueryQueryVariables>;
3649
3651
  export const CancelOrderMutationDocument = {"__meta__":{"operationName":"CancelOrderMutation","operationHash":"e2b06da6840614d3c72768e56579b9d3b8e80802"}} as unknown as TypedDocumentString<CancelOrderMutationMutation, CancelOrderMutationMutationVariables>;
3650
3652
  export const ProcessOrderAuthorizationMutationDocument = {"__meta__":{"operationName":"ProcessOrderAuthorizationMutation","operationHash":"8c25d37c8d6e7c20ab21bb8a4f4e6a2fe320ea8d"}} as unknown as TypedDocumentString<ProcessOrderAuthorizationMutationMutation, ProcessOrderAuthorizationMutationMutationVariables>;
3651
3653
  export const ValidateUserDocument = {"__meta__":{"operationName":"ValidateUser","operationHash":"32f99c73c3de958b64d6bece1afe800469f54548"}} as unknown as TypedDocumentString<ValidateUserQuery, ValidateUserQueryVariables>;
@@ -10,7 +10,7 @@
10
10
  "9ba9119f2a361c83af8ecc703cb28f915df10ac8": "query ServerQuotesOrganizationMemberQuery { isOrganizationMember }",
11
11
  "0890ba3456c40a426893b80b698df7a84cfdd6a1": "query ServerSecurity { accountProfile { name } userDetails { email } }",
12
12
  "630ec1f47f2710ce3d7895e9131482641f30c837": "query ServerUserDetailsQuery { accountProfile { name } userDetails { email name orgUnit phone role username } }",
13
- "011619bb1be93a21f6530fe4d193dec96a89e88a": "query AvailableContractsQuery($orgUnitId: String!) { availableContracts(orgUnitId: $orgUnitId) { corporateName id isActive } }",
13
+ "e9dd3c5b658d90cf6b6028837131273d3560cb32": "query AvailableContractsQuery($orgUnitId: String!) { availableContracts(orgUnitId: $orgUnitId) { corporateName id isActive isDefault } }",
14
14
  "e2b06da6840614d3c72768e56579b9d3b8e80802": "mutation CancelOrderMutation($data: IUserOrderCancel!) { cancelOrder(data: $data) { data } }",
15
15
  "8c25d37c8d6e7c20ab21bb8a4f4e6a2fe320ea8d": "mutation ProcessOrderAuthorizationMutation($data: IProcessOrderAuthorization!) { processOrderAuthorization(data: $data) { isPendingForOtherAuthorizer ruleForAuthorization { dimensionId orderAuthorizationId rule { authorizationData { authorizers { authorizationDate email id type } requireAllApprovals } authorizedEmails doId id isUserAuthorized isUserNextAuthorizer name notification priority scoreInterval { accept deny } status timeout trigger { condition { conditionType description expression greatherThan lessThan } effect { description effectType funcPath } } } } } }",
16
16
  "32f99c73c3de958b64d6bece1afe800469f54548": "query ValidateUser { validateUser { isValid } }",
@@ -1435,6 +1435,10 @@ type StoreContract {
1435
1435
  Indicates whether this contract is the one currently active in the session.
1436
1436
  """
1437
1437
  isActive: Boolean!
1438
+ """
1439
+ Indicates whether this contract is the Organization Unit's default contract.
1440
+ """
1441
+ isDefault: Boolean!
1438
1442
  }
1439
1443
 
1440
1444
  """Currency information."""
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.8.1-dev.2](https://github.com/vtex/faststore/compare/v4.8.1-dev.1...v4.8.1-dev.2) (2026-09-21)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **core:** SUMA review fixes — reset cart/orderForm on contract switch, default contract in switcher, no Sign-in flash (B2BTEAM-3827) ([#3479](https://github.com/vtex/faststore/issues/3479)) ([d015186](https://github.com/vtex/faststore/commit/d015186f66bc5cdfce55d3da1c21b2d4dbb3d39e))
11
+
12
+ ## [4.8.1-dev.1](https://github.com/vtex/faststore/compare/v4.8.1-dev.0...v4.8.1-dev.1) (2026-09-18)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **core:** avoid negated ternary condition flagged by Sonar ([c3fa734](https://github.com/vtex/faststore/commit/c3fa73440d9b98286b4ea1f7dfa737a44b06446b))
17
+ - **core:** guard the catch-path no-store header with headersSent ([48c21b8](https://github.com/vtex/faststore/commit/48c21b89d345e1a376c578f3171a0d10461f1689)), closes [#3485](https://github.com/vtex/faststore/issues/3485)
18
+ - **core:** localize My Account order copy ([#3490](https://github.com/vtex/faststore/issues/3490)) ([f77d3cf](https://github.com/vtex/faststore/commit/f77d3cfd1ca5b160ff003d090cb7c4413e2b0c56))
19
+ - **core:** set cache-control: no-store on GraphQL error responses ([dbb7d26](https://github.com/vtex/faststore/commit/dbb7d26078a04ebf9eee5a16e8cc3b6774acee73))
20
+ - **core:** set cache-control: no-store on the catch-path error responses ([5eec369](https://github.com/vtex/faststore/commit/5eec369bebc3b930e45078914e3e1d57bd22208d)), closes [#3485](https://github.com/vtex/faststore/issues/3485)
21
+
6
22
  ## [4.8.1-dev.0](https://github.com/vtex/faststore/compare/v4.8.0...v4.8.1-dev.0) (2026-09-15)
7
23
 
8
24
  **Note:** Version bump only for package @faststore/core
@@ -26,6 +26,16 @@
26
26
  "title": "Security Menu Label",
27
27
  "default": "Security"
28
28
  },
29
+ "cardsLabel": {
30
+ "type": "string",
31
+ "title": "Cards Menu Label",
32
+ "default": "Cards"
33
+ },
34
+ "quotesLabel": {
35
+ "type": "string",
36
+ "title": "Quotes Menu Label",
37
+ "default": "Quotes"
38
+ },
29
39
  "manageLabel": {
30
40
  "type": "string",
31
41
  "title": "Manage Button Label",