@propeller-commerce/propeller-v2-react-ui 0.29.0 → 0.30.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 +19 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/shared.cjs +12 -5
- package/dist/shared.cjs.map +1 -1
- package/dist/shared.d.cts +27 -1
- package/dist/shared.d.ts +27 -1
- package/dist/shared.js +10 -0
- package/dist/shared.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,25 @@ once it reaches 1.0. Until then (the `0.x` line) the public API may change
|
|
|
8
8
|
between minor versions; breaking changes are called out below and in
|
|
9
9
|
[MIGRATION.md](./MIGRATION.md).
|
|
10
10
|
|
|
11
|
+
## [0.30.0] - 2026-10-06
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **`isPriceOnRequest` is exported from `/shared`.** It was only on the main
|
|
16
|
+
entry, so a Server Component could not ask "is this a quoted product?"
|
|
17
|
+
without drawing a client boundary — leaving server-rendered price blocks
|
|
18
|
+
unable to choose between an amount and the quote label. The function is plain
|
|
19
|
+
TS with no React, so `/shared` is where it belongs.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- **`<SearchBar>` resolves its placeholder from `labels`.** It read
|
|
24
|
+
`props.placeholder` and fell straight back to the English
|
|
25
|
+
`'Search products...'`, never consulting the label bag every other string in
|
|
26
|
+
the component goes through. A host that passed only `labels` therefore got an
|
|
27
|
+
English placeholder in an otherwise translated header. The explicit prop
|
|
28
|
+
still wins, then `labels.placeholder`, then English.
|
|
29
|
+
|
|
11
30
|
## [0.29.0] - 2026-10-05
|
|
12
31
|
|
|
13
32
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -19544,7 +19544,7 @@ function SearchBar(rawProps) {
|
|
|
19544
19544
|
"propeller-search-bar__input w-full pl-10 pr-10 py-2 bg-card text-foreground border border-input rounded-container focus:outline-none focus:ring-2 focus:ring-secondary placeholder:text-muted-foreground",
|
|
19545
19545
|
props.inputClassName
|
|
19546
19546
|
),
|
|
19547
|
-
placeholder: props.placeholder || "Search products...",
|
|
19547
|
+
placeholder: props.placeholder || propellerV2CoreUi.getLabel(props.labels, "placeholder", "Search products..."),
|
|
19548
19548
|
value: localTerm,
|
|
19549
19549
|
onChange: (e) => handleInputChange(e.target.value)
|
|
19550
19550
|
}
|