@faststore/core 3.91.2 → 3.91.3-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +77 -77
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/images-manifest.json +1 -1
  10. package/.next/prerender-manifest.js +1 -1
  11. package/.next/prerender-manifest.json +1 -1
  12. package/.next/react-loadable-manifest.json +10 -10
  13. package/.next/required-server-files.json +1 -1
  14. package/.next/routes-manifest.json +1 -1
  15. package/.next/server/chunks/3836.js +1 -1
  16. package/.next/server/chunks/4168.js +1 -1
  17. package/.next/server/chunks/4803.js +1 -1
  18. package/.next/server/chunks/5683.js +1 -1
  19. package/.next/server/chunks/6789.js +1 -1
  20. package/.next/server/chunks/7098.js +1 -1
  21. package/.next/server/chunks/870.js +1 -1
  22. package/.next/server/chunks/948.js +1 -1
  23. package/.next/server/chunks/9563.js +1 -1
  24. package/.next/server/chunks/9740.js +1 -1
  25. package/.next/server/chunks/UISKUMatrixSidebar.js +1 -1
  26. package/.next/server/functions-config-manifest.json +1 -1
  27. package/.next/server/middleware-build-manifest.js +1 -1
  28. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  29. package/.next/server/pages/[slug]/p.js +1 -1
  30. package/.next/server/pages/api/graphql.js +1 -1
  31. package/.next/server/pages/en-US/404.html +1 -1
  32. package/.next/server/pages/en-US/500.html +1 -1
  33. package/.next/server/pages/en-US/checkout.html +1 -1
  34. package/.next/server/pages/en-US/login.html +1 -1
  35. package/.next/server/pages/en-US/s.html +1 -1
  36. package/.next/server/pages/en-US.html +1 -1
  37. package/.next/server/pages/pvt/account/orders.js +1 -1
  38. package/.next/server/pages-manifest.json +1 -1
  39. package/.next/static/chunks/2284.dffe7b0e5a5bfb4a.js +1 -0
  40. package/.next/static/chunks/3836.612763339fc4c64c.js +1 -0
  41. package/.next/static/chunks/5859.1023ecc1175e7e5a.js +1 -0
  42. package/.next/static/chunks/{6031-a7dfc540189ff57c.js → 6031-b0b111f48a7d504d.js} +2 -2
  43. package/.next/static/chunks/6789.960162355435a81d.js +1 -0
  44. package/.next/static/chunks/7191-500e9959223756a8.js +1 -0
  45. package/.next/static/chunks/{9173-51ba7ca2f546f879.js → 9173-2dea6acd60aa8030.js} +1 -1
  46. package/.next/static/chunks/CartItem.092df07db9e8b271.js +1 -0
  47. package/.next/static/chunks/Gift.08db4da8c89cacf1.js +1 -0
  48. package/.next/static/chunks/UISKUMatrixSidebar.87ba393b7d738e99.js +1 -0
  49. package/.next/static/chunks/{main-595f5e3b626b9fff.js → main-ec03882c4375091d.js} +1 -1
  50. package/.next/static/chunks/pages/[slug]/p-28fab8021db28766.js +1 -0
  51. package/.next/static/chunks/pages/_app-812458b055482ec9.js +1 -0
  52. package/.next/static/chunks/pages/index-900b6104074a72b8.js +1 -0
  53. package/.next/static/chunks/pages/pvt/account/orders-369a813fa114b381.js +1 -0
  54. package/.next/static/chunks/{webpack-95c6847556354c4b.js → webpack-d6cf2499d0200c56.js} +1 -1
  55. package/.next/static/css/{244373752cfc52c7.css → 9f8fb1ef9b49d844.css} +1 -1
  56. package/.next/static/{e1Iy_PbcFsZ57QejzRzyL → k4WXbVPgcGEZjcUDnpapc}/_buildManifest.js +1 -1
  57. package/.next/trace +137 -138
  58. package/.turbo/turbo-build.log +13 -13
  59. package/.turbo/turbo-test.log +5 -5
  60. package/CHANGELOG.md +7 -0
  61. package/discovery.config.default.js +0 -1
  62. package/next.config.js +2 -0
  63. package/package.json +7 -7
  64. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterSlider.tsx +0 -8
  65. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/section.module.scss +0 -2
  66. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrders.tsx +1 -28
  67. package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/MyAccountSelectedTags.tsx +3 -20
  68. package/src/components/ui/Image/Image.tsx +4 -5
  69. package/src/components/ui/Image/loader.ts +60 -26
  70. package/src/pages/pvt/account/orders/index.tsx +0 -6
  71. package/src/sdk/search/useMyAccountFilter.ts +0 -7
  72. package/.next/static/chunks/2284.be64169724492654.js +0 -1
  73. package/.next/static/chunks/3836.5a76d717d95d1f2d.js +0 -1
  74. package/.next/static/chunks/5859.0b4ee873dc86bef7.js +0 -1
  75. package/.next/static/chunks/6789.856de844108ee5da.js +0 -1
  76. package/.next/static/chunks/7191-eef95438b827504b.js +0 -1
  77. package/.next/static/chunks/CartItem.afa42120880fcb94.js +0 -1
  78. package/.next/static/chunks/Gift.9d0570cbe866077f.js +0 -1
  79. package/.next/static/chunks/UISKUMatrixSidebar.2cfa8552a84d2f5f.js +0 -1
  80. package/.next/static/chunks/pages/[slug]/p-5f89d29d02064f15.js +0 -1
  81. package/.next/static/chunks/pages/_app-e8ac4d8f914feb94.js +0 -1
  82. package/.next/static/chunks/pages/index-f285046ed161df07.js +0 -1
  83. package/.next/static/chunks/pages/pvt/account/orders-34821345bd7401d9.js +0 -1
  84. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetPlacedBy/MyAccountFilterFacetPlacedBy.tsx +0 -172
  85. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetPlacedBy/index.ts +0 -2
  86. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetPlacedBy/styles.scss +0 -96
  87. package/src/sdk/account/useShopperSuggestions.ts +0 -151
  88. /package/.next/static/{e1Iy_PbcFsZ57QejzRzyL → k4WXbVPgcGEZjcUDnpapc}/_ssgManifest.js +0 -0
@@ -1,96 +0,0 @@
1
- [data-fs-list-orders-filters-placed-by] {
2
- --fs-list-orders-filters-placed-by-dropdown-bkg : var(--fs-color-neutral-0);
3
- --fs-list-orders-filters-placed-by-dropdown-border : 1px solid var(--fs-border-color-light);
4
- --fs-list-orders-filters-placed-by-dropdown-radius : var(--fs-border-radius);
5
- --fs-list-orders-filters-placed-by-option-padding : var(--fs-spacing-2) var(--fs-spacing-3);
6
- --fs-list-orders-filters-placed-by-selected-height : var(--fs-control-height);
7
- --fs-list-orders-filters-placed-by-selected-padding : 0 var(--fs-spacing-3);
8
- --fs-list-orders-filters-placed-by-selected-border : var(--fs-input-border-width) solid var(--fs-input-border-color);
9
- --fs-list-orders-filters-placed-by-selected-radius : var(--fs-input-border-radius);
10
- --fs-list-orders-filters-placed-by-empty-text-color : var(--fs-color-text-light);
11
- --fs-list-orders-filters-placed-by-loader-size : 1.25rem;
12
- --fs-list-orders-filters-placed-by-dropdown-shadow : 0 2px 8px rgb(0 0 0 / 10%);
13
-
14
- position: relative;
15
-
16
- // Clear icon inside input when actionable
17
- [data-fs-list-orders-filters-placed-by-input] {
18
- position: relative;
19
-
20
- [data-fs-input] {
21
- width: 100%;
22
- }
23
-
24
- [data-fs-icon-button] {
25
- position: absolute;
26
- top: 50%;
27
- right: var(--fs-spacing-2);
28
- transform: translateY(-50%);
29
- }
30
-
31
- [data-fs-list-orders-filters-placed-by-loader] {
32
- position: absolute;
33
- top: 50%;
34
- right: var(--fs-spacing-2);
35
- display: flex;
36
- align-items: center;
37
- justify-content: center;
38
- transform: translateY(-50%);
39
-
40
- [data-fs-loader] {
41
- width: var(--fs-list-orders-filters-placed-by-loader-size);
42
- height: var(--fs-list-orders-filters-placed-by-loader-size);
43
- }
44
- }
45
- }
46
-
47
- [data-fs-list-orders-filters-placed-by-dropdown] {
48
- position: absolute;
49
- z-index: 10;
50
- width: 100%;
51
- margin-top: var(--fs-spacing-1);
52
- background: var(--fs-list-orders-filters-placed-by-dropdown-bkg);
53
- border: var(--fs-list-orders-filters-placed-by-dropdown-border);
54
- border-radius: var(--fs-list-orders-filters-placed-by-dropdown-radius);
55
- box-shadow: var(--fs-list-orders-filters-placed-by-dropdown-shadow);
56
-
57
- &[data-fs-list-orders-filters-placed-by-empty] {
58
- padding: var(--fs-spacing-3);
59
-
60
- p {
61
- margin: 0;
62
- font-size: var(--fs-text-size-body);
63
- font-style: italic;
64
- color: var(--fs-list-orders-filters-placed-by-empty-text-color);
65
- text-align: center;
66
- }
67
- }
68
-
69
- ul {
70
- max-height: 220px;
71
- padding: 0;
72
- margin: 0;
73
- overflow: auto;
74
- list-style: none;
75
- }
76
-
77
- [data-fs-list-orders-filters-placed-by-option] {
78
- display: flex;
79
- justify-content: flex-start;
80
- width: 100%;
81
- padding: var(--fs-list-orders-filters-placed-by-option-padding);
82
- text-align: left;
83
- cursor: pointer;
84
- background: transparent;
85
- border: 0;
86
-
87
- &:hover, &:focus {
88
- background: var(--fs-color-neutral-bkg);
89
- }
90
-
91
- [data-fs-list-orders-filters-placed-by-option-name] {
92
- font-weight: var(--fs-text-weight-regular);
93
- }
94
- }
95
- }
96
- }
@@ -1,151 +0,0 @@
1
- import { useMemo, useState, useCallback, useEffect } from 'react'
2
-
3
- // This will be replaced with an imported type from a GraphQL schema in the future
4
- export type Shopper = {
5
- purchase_agent_id: string
6
- name: string
7
- email: string
8
- }
9
-
10
- // Mock data for now, will be fetched from API in the future
11
- const MOCK_SHOPPERS: Shopper[] = [
12
- {
13
- purchase_agent_id: '1',
14
- name: 'Robert Fox',
15
- email: 'robert.fox@example.com',
16
- },
17
- {
18
- purchase_agent_id: '2',
19
- name: 'Ronald Wilson',
20
- email: 'ronald.wilson@example.com',
21
- },
22
- {
23
- purchase_agent_id: '3',
24
- name: 'Cameron Williamson',
25
- email: 'cameron.williamson@example.com',
26
- },
27
- {
28
- purchase_agent_id: '4',
29
- name: 'Brooklyn Simmons',
30
- email: 'brooklyn.simmons@example.com',
31
- },
32
- ]
33
-
34
- interface ShopperSuggestionsData {
35
- /**
36
- * Array of shoppers that match the search term
37
- */
38
- shoppers: Shopper[]
39
- }
40
-
41
- interface ShopperSuggestionsResult {
42
- /**
43
- * The data containing matched shoppers
44
- */
45
- data: ShopperSuggestionsData | null
46
- /**
47
- * Error message if any
48
- */
49
- error: Error | null
50
- /**
51
- * Whether the data is currently being loaded
52
- */
53
- isLoading: boolean
54
- /**
55
- * Function to find a shopper by ID
56
- */
57
- findShopperById: (id: string) => Shopper | undefined
58
- }
59
-
60
- /**
61
- * Hook to search for shoppers by name or email
62
- *
63
- * @param searchTerm - The term to search for
64
- * @param options - Additional options for the hook
65
- * @returns Result object with data, loading state, and error
66
- */
67
- export function useShopperSuggestions(
68
- searchTerm = ''
69
- ): ShopperSuggestionsResult {
70
- const [data, setData] = useState<ShopperSuggestionsData | null>({
71
- shoppers: MOCK_SHOPPERS,
72
- })
73
- const [error, setError] = useState<Error | null>(null)
74
- const [isLoading, setIsLoading] = useState(false)
75
-
76
- // Function to search for shoppers
77
- const searchShoppers = useCallback(
78
- async (term: string) => {
79
- // Don't search if term is empty or null
80
- if (!term?.trim()) {
81
- setData({ shoppers: MOCK_SHOPPERS })
82
- setIsLoading(false)
83
- return
84
- }
85
-
86
- setIsLoading(true)
87
- setError(null)
88
-
89
- try {
90
- // Simulate API call with timeout
91
- const results = await new Promise<Shopper[]>((resolve) => {
92
- setTimeout(() => {
93
- // Filter logic to simulate server-side filtering
94
- const q = term.trim().toLowerCase()
95
- const filtered = MOCK_SHOPPERS.filter(
96
- (shopper) =>
97
- shopper.name.toLowerCase().includes(q) ||
98
- shopper.email.toLowerCase().includes(q)
99
- )
100
- resolve(filtered)
101
- }, 300) // Simulate network delay
102
- })
103
-
104
- setData({ shoppers: results })
105
- } catch (err) {
106
- setError(
107
- err instanceof Error
108
- ? err
109
- : new Error('Failed to search for shoppers')
110
- )
111
- setData({ shoppers: [] })
112
- } finally {
113
- setIsLoading(false)
114
- }
115
- },
116
- [] // No dependencies needed for this mock implementation
117
- )
118
-
119
- // Setup debouncing for the search term
120
- useEffect(() => {
121
- // Don't run search if term is empty and we already have null data
122
- if (!searchTerm && data === null) return
123
-
124
- const handler = setTimeout(() => {
125
- searchShoppers(searchTerm)
126
- }, 300)
127
-
128
- return () => {
129
- clearTimeout(handler)
130
- }
131
- }, [searchTerm])
132
-
133
- // Helper function to find a shopper by ID
134
- // We use useMemo instead of useCallback to ensure this function has a stable reference
135
- // and doesn't cause infinite loops in dependencies of other hooks
136
- const findShopperById = useMemo(() => {
137
- // Return a stable function that won't change between renders
138
- return (id: string): Shopper | undefined => {
139
- return data?.shoppers.find((s) => s.purchase_agent_id === id)
140
- }
141
- }, [])
142
-
143
- return {
144
- data,
145
- error,
146
- isLoading,
147
- findShopperById,
148
- }
149
- }
150
-
151
- export default useShopperSuggestions