create-cartbase 0.1.22 → 0.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cartbase",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Scaffold a Cartbase storefront: npm create cartbase my-store",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -565,12 +565,18 @@ code-first through the error-copy maps, never raw API strings.
565
565
  `-locker`. Nearest three by haversine distance to the typed address, each
566
566
  with its distance, and a door to search the whole catalogue. The shape
567
567
  Alenika's checkout has carried since it was built.
568
- - **SDK calls** — `integrations.listPickupPoints(client, provider, {mode,
569
- q, limit})`, one door for all of them. Where the SEARCH happens is the
570
- platform's business: carriers that search are asked (Speedy by office
571
- name and by town, Pigeon compensated with town and postcode), carriers
572
- that publish whole catalogues are held per store and ranked there (Econt,
573
- BoxNow). The component types into one query parameter either way.
568
+ - **SDK calls** — `integrations.listPickupPoints(client, provider, {mode,
569
+ catalogue: true, locale})`, one door for all carriers. The complete eligible
570
+ catalogue is cached per SDK client, carrier, mode and language for ten
571
+ minutes, then ranked by distance BEFORE taking three results. Search runs
572
+ over the same complete list, matching name, city, street and postcode in
573
+ Latin or Cyrillic. BoxNow restricts both lists to the checkout city, as in
574
+ Alenika's picker; offices search the whole catalogue. Without a geocoded
575
+ address, results fall back to the typed city without displaying distances.
576
+ The mounted locale pack selects Speedy's BG/EN names and addresses.
577
+ Speedy APT lockers and Econt APS stations never appear as offices.
578
+ Pigeon's adapter reads every page. The original `{mode, q, limit}` search
579
+ call remains available to other consumers.
574
580
  - **Props contract** — `{client, provider, mode, userCity, userAddress,
575
581
  selectedPoint, onSelect}`. `onSelect` receives the point AND the carrier's
576
582
  own key names, which arrive with the answer from the platform's
@@ -9,7 +9,7 @@
9
9
  "typecheck": "tsc --noEmit"
10
10
  },
11
11
  "dependencies": {
12
- "@cartbase/storefront": "^0.22.0",
12
+ "@cartbase/storefront": "^0.22.1",
13
13
  "next": "16.2.4",
14
14
  "react": "19.2.4",
15
15
  "react-dom": "19.2.4"