@dropins/storefront-pdp 3.4.0-beta.0 → 3.4.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.
- package/CHANGELOG.md +57 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# @dropins/storefront-pdp
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4b7a9aa: Add a typed data model for the `ac_customizable_options` product
|
|
8
|
+
attribute (Magento Customizable Options: priced selectable choices and
|
|
9
|
+
shopper-input fields). Adds `getCustomizableOptionsAttribute()` in
|
|
10
|
+
`useProductData` for typed, JSON-string-or-object-safe access, coercing string
|
|
11
|
+
`price` fields to numbers, and exports `isCustomOptionUID` from
|
|
12
|
+
`getRefinedProduct` for reuse.
|
|
13
|
+
- bd4f3a7: Render priced selectable customizable options
|
|
14
|
+
(drop_down/radio/checkbox/multiple) from the `ac_customizable_options` product
|
|
15
|
+
attribute. Adds a `CustomizableOptions` component and
|
|
16
|
+
`ProductCustomizableOptions` container, and wires an equivalent
|
|
17
|
+
`renderCustomizableOptions()` into the deprecated `ProductDetails`/`Product`
|
|
18
|
+
components. Selecting a value toggles its `custom-option/<optionId>/<valueId>`
|
|
19
|
+
UID in `values.optionsUIDs`; required options are shown with a "Required"
|
|
20
|
+
label. Products with no `ac_customizable_options` attribute render nothing
|
|
21
|
+
extra. Required-option enforcement/Add-to-Cart gating and a live price-delta
|
|
22
|
+
preview are out of scope for this change and tracked separately.
|
|
23
|
+
- a5e4a7e: Support text, multiline text, date, local date-time, and time
|
|
24
|
+
customizable options in both PDP rendering paths. Preserve entered option UIDs
|
|
25
|
+
and values alongside selectable options and bundle quantities, and display a
|
|
26
|
+
disabled placeholder for file options.
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- b489882: Fix accessibility issues in the product image preview modal: keyboard
|
|
31
|
+
focus is now trapped inside the dialog while open and restored to the trigger
|
|
32
|
+
on close, and the carousel slide indicators now expose their selected state to
|
|
33
|
+
assistive technology and meet minimum color contrast requirements.
|
|
34
|
+
- 8307ce4: Upgrade `@adobe-commerce/elsie` from `~1.9.0` to
|
|
35
|
+
`3.0.0-alpha-20261007160511` and migrate the repository from Yarn to pnpm
|
|
36
|
+
11.17.0. This combines the v1→v2 and v2→v3 elsie toolchain migrations:
|
|
37
|
+
`.elsie.js` moves to `elsie.config.js`, `.eslintrc.js` is replaced by a flat
|
|
38
|
+
`eslint.config.js` composed from Elsie's named layers, `jest.config.js` uses
|
|
39
|
+
the `defineConfig({ preset: 'preact' })` factory, and
|
|
40
|
+
`prettier.config.js`/Husky are replaced by the `"prettier"` package.json key,
|
|
41
|
+
Elsie's `format`/`format:check` scripts, and a native `.githooks/pre-commit`
|
|
42
|
+
hook. Tests import `render`/`fireEvent`/etc. from
|
|
43
|
+
`@adobe-commerce/elsie/tests/preact` instead of the removed
|
|
44
|
+
`@adobe-commerce/elsie/lib/tests`. The pnpm migration adds a seven-day
|
|
45
|
+
dependency release-age gate (`minimumReleaseAge`) and explicit build-script
|
|
46
|
+
permissions (`allowBuilds`) in `pnpm-workspace.yaml`, for both the package
|
|
47
|
+
root and the `cypress/` sub-project. Storybook resolves its framework, addons,
|
|
48
|
+
and a11y test-runner hooks through Elsie's `storybook/config` and
|
|
49
|
+
`storybook/test-runner` entry points.
|
|
50
|
+
|
|
51
|
+
Because Elsie now supplies `axe-playwright`, the Storybook accessibility
|
|
52
|
+
checks run for the first time and surfaced a contrast issue in the regular
|
|
53
|
+
price shown next to a special price. `.pdp-price__amount--grey` and
|
|
54
|
+
`.pdp-product__price--grey` used `--color-neutral-500`, documented in the
|
|
55
|
+
design system as "Disabled text" and measuring 1.95:1 against white. Both now
|
|
56
|
+
use `--color-neutral-700` ("Secondary text"), measuring 5.7:1 and meeting the
|
|
57
|
+
WCAG 2 AA 4.5:1 minimum. The affected element is meaningful content labelled
|
|
58
|
+
`Regular Price` for assistive technology, not a disabled control.
|
|
59
|
+
|
|
3
60
|
## 3.4.0-beta.0
|
|
4
61
|
|
|
5
62
|
### Minor Changes
|