@dropins/storefront-requisition-list 2.0.0-alpha-20261013100839 → 2.0.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 (2) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,66 @@
1
1
  # @dropins/storefront-requisition-list
2
2
 
3
- ## 2.0.0-alpha-20261013100839
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 974d998: feat: add public requisition list sharing
8
+
9
+ Requisition lists can now be marked public, generating a shareable link that
10
+ does not require sign-in, gated by store config.
11
+
12
+ - Adds `requisition_list_public_sharing_enabled`,
13
+ `requisition_list_public_share_link_validity_days`,
14
+ `requisition_list_public_share_max_recipients` and
15
+ `requisition_list_public_share_storefront_path` to `getStoreConfig`, with a
16
+ backward-compatible fallback for backends that don't yet expose these
17
+ fields. Legacy `"0"`/`"1"` string scalars are normalized to plain
18
+ booleans/numbers.
19
+ - `createRequisitionList` and `updateRequisitionList` accept an `isPublic`
20
+ argument to create or update a list's public sharing status.
21
+ - Adds a "Make Public" / "Make Private" toggle to the requisition list
22
+ detail-view header, shown only when
23
+ `requisition_list_public_sharing_enabled` is enabled.
24
+ - Adds a read-only "Public" status tag to the requisition list grid rows and
25
+ the detail-view header when a list is public.
26
+ - Adds a "Make this requisition list public" checkbox to `RequisitionListForm`
27
+ when creating or renaming a list, under the same config flag.
28
+ - Toggle controls expose `aria-pressed` for accessibility.
29
+
30
+ ### Minor Changes
31
+
32
+ - 974d998: feat: share public requisition lists via email and let recipients add
33
+ items to cart
34
+
35
+ - Public lists can be shared with arbitrary email addresses or a reusable
36
+ public link, independently of company-only sharing.
37
+ - Adds `getPublicRequisitionList`, `getPublicRequisitionListToken`,
38
+ `sharePublicRequisitionList`, and `addPublicRequisitionListItemsToCart`
39
+ APIs.
40
+ - `SharedRequisitionList` accepts `isPublic`, `getCartId`, and `onCartUpdated`
41
+ for guest/customer public previews with item selection, pagination, and
42
+ add-to-cart actions. Public recipients cannot import the list.
43
+ - `ShareRequisitionListContent` switches to a free-text email field and the
44
+ owner's public token when sharing a public list.
45
+ - The public email field validates each address and enforces the configured
46
+ max-recipients limit as soon as it's exceeded, rather than waiting for all
47
+ addresses to be well-formed first.
48
+ - Submitting a share (public or private) now shows an inline spinner in place
49
+ of the email field/Submit button instead of a full-modal overlay, keeping
50
+ the already-generated share link visible and consistent between both flows.
51
+
52
+ - 974d998: feat: link product name/image to the PDP on the public share preview
53
+
54
+ - `GET_PUBLIC_REQUISITION_LIST_QUERY` now fetches `url_key` for each item's
55
+ product.
56
+ - `SharedRequisitionList` accepts a new optional `routeProduct` prop
57
+ (`(urlKey: string, sku: string) => string`) used to build the PDP link. The
58
+ `sku` passed is the resolved variant sku (same one shown in the SKU column),
59
+ not the parent sku, so configurable items link to the correct variant.
60
+ Product name/image render as a link when both `routeProduct` and the item's
61
+ `urlKey` are available, and fall back to plain text/image otherwise.
62
+
63
+ ## 2.0.0-beta.0
4
64
 
5
65
  ### Major Changes
6
66
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@dropins/storefront-requisition-list",
3
- "version": "2.0.0-alpha-20261013100839",
3
+ "version": "2.0.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md"
5
5
  }