Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8ec6a7490 | ||
|
|
5ecee3f6f6 | ||
|
|
a09fefaed7 | ||
|
|
e97606a91b | ||
|
|
fde64094ac | ||
|
|
1b1d690874 | ||
|
|
09d715ff38 | ||
|
|
db51b4c5ab | ||
|
|
0ec5e096f3 | ||
|
|
c3f80aaa4b | ||
|
|
2ba5cae83e | ||
|
|
c2120c06bb | ||
|
|
9c6ab39bf4 | ||
|
|
965d3d8d47 | ||
|
|
34ce21c1f8 | ||
|
|
ca6725b4ec | ||
|
|
a54fc12189 | ||
|
|
cfe0fdf3f6 | ||
|
|
2e2013602d | ||
|
|
9f17391475 | ||
|
|
cd12963296 | ||
|
|
165442028c |
16
CHANGELOG.md
16
CHANGELOG.md
@@ -1,6 +1,18 @@
|
||||
## [2.32.1](https://github.com/payloadcms/payload/compare/v2.32.0...v2.32.1) (2025-03-14)
|
||||
## [2.32.3](https://github.com/payloadcms/payload/compare/v2.32.2...v2.32.3) (2025-05-08)
|
||||
|
||||
Bumps dependencies ([#11702](https://github.com/payloadcms/payload/pull/11702)) ([#11705](https://github.com/payloadcms/payload/pull/11705))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* filter state resetting when removing previous condition in WhereBuilder ([#12262](https://github.com/payloadcms/payload/issues/12262)) ([a09fefa](https://github.com/payloadcms/payload/commit/a09fefaed746ff945d16f41647f1fdb32200e35e))
|
||||
* **upload:** ensure only image files are read for preview ([#9562](https://github.com/payloadcms/payload/issues/9562)) ([5ecee3f](https://github.com/payloadcms/payload/commit/5ecee3f6f6cbaec06a0b48ca251a25c2993e8451)), closes [#9559](https://github.com/payloadcms/payload/issues/9559)
|
||||
|
||||
## [2.32.2](https://github.com/payloadcms/payload/compare/v2.32.1...v2.32.2) (2025-03-14)
|
||||
|
||||
- Bumps dependencies ([#11702](https://github.com/payloadcms/payload/pull/11702)) ([#11705](https://github.com/payloadcms/payload/pull/11705))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* remove collapsible label prefix from the FieldSelect dropdown component ([#10760](https://github.com/payloadcms/payload/issues/10760)) ([a5e6ea5](https://github.com/payloadcms/payload/commit/a5e6ea57373591ec90f452ad61b376f72f9ce304)), closes [#10757](https://github.com/payloadcms/payload/issues/10757)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
|
||||
21
package.json
21
package.json
@@ -116,7 +116,26 @@
|
||||
"dotenv": "$dotenv",
|
||||
"drizzle-orm": "$drizzle-orm",
|
||||
"ts-node": "$ts-node",
|
||||
"typescript": "$typescript"
|
||||
"typescript": "$typescript",
|
||||
"braces@<3.0.3": "^3.0.3",
|
||||
"ws@>=8.0.0 <8.17.1": "^8.17.1",
|
||||
"ws@>=7.0.0 <7.5.10": "^7.5.10",
|
||||
"micromatch@<4.0.8": "^4.0.8",
|
||||
"vite@>=4.0.0 <4.5.4": "^4.5.4",
|
||||
"vite@>=4.0.0 <=4.5.3": "^4.5.4",
|
||||
"rollup@>=3.0.0 <3.29.5": "^3.29.5",
|
||||
"@sentry/browser@<7.119.1": "^7.119.1",
|
||||
"send@<0.19.0": "^0.19.0",
|
||||
"serve-static@<1.16.0": "^1.16.0",
|
||||
"cross-spawn@<6.0.6": "^6.0.6",
|
||||
"cross-spawn@>=7.0.0 <7.0.5": "^7.0.5",
|
||||
"nanoid@<3.3.8": "^3.3.8",
|
||||
"path-to-regexp@>=0.2.0 <1.9.0": "^1.9.0",
|
||||
"esbuild@<=0.24.2": "^0.25.0",
|
||||
"vite@<=4.5.5": "^4.5.6",
|
||||
"prismjs@<1.30.0": "^1.30.0",
|
||||
"@babel/runtime@<7.26.10": "^7.26.10",
|
||||
"@babel/helpers@<7.26.10": "^7.26.10"
|
||||
}
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@payloadcms/bundler-vite",
|
||||
"version": "0.1.7",
|
||||
"version": "0.1.9",
|
||||
"description": "The officially supported Vite bundler adapter for Payload",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@payloadcms/bundler-webpack",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.9",
|
||||
"description": "The officially supported Webpack bundler adapter for Payload",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@payloadcms/db-mongodb",
|
||||
"version": "1.7.3",
|
||||
"version": "1.7.5",
|
||||
"description": "The officially supported MongoDB database adapter for Payload",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "payload",
|
||||
"version": "2.32.1",
|
||||
"version": "2.32.3",
|
||||
"description": "Node, React and MongoDB Headless CMS and Application Framework",
|
||||
"license": "MIT",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -122,7 +122,7 @@ const Condition: React.FC<Props> = (props) => {
|
||||
onChange: setInternalValue,
|
||||
operator: operatorValue,
|
||||
options: valueOptions,
|
||||
value: internalValue,
|
||||
value: internalValue ?? '',
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -273,19 +273,26 @@ const WhereBuilder: React.FC<Props> = (props) => {
|
||||
{orIndex !== 0 && <div className={`${baseClass}__label`}>{t('or')}</div>}
|
||||
<ul className={`${baseClass}__and-filters`}>
|
||||
{Array.isArray(or?.and) &&
|
||||
or.and.map((_, andIndex) => (
|
||||
<li key={andIndex}>
|
||||
{andIndex !== 0 && <div className={`${baseClass}__label`}>{t('and')}</div>}
|
||||
<Condition
|
||||
andIndex={andIndex}
|
||||
dispatch={dispatchConditions}
|
||||
fields={reducedFields}
|
||||
key={andIndex}
|
||||
orIndex={orIndex}
|
||||
value={conditions[orIndex].and[andIndex]}
|
||||
/>
|
||||
</li>
|
||||
))}
|
||||
or.and.map((_, andIndex) => {
|
||||
const condition = conditions[orIndex].and[andIndex]
|
||||
const fieldName = Object.keys(condition)[0]
|
||||
const operator = Object.keys(condition?.[fieldName] || {})?.[0]
|
||||
return (
|
||||
<li key={andIndex}>
|
||||
{andIndex !== 0 && (
|
||||
<div className={`${baseClass}__label`}>{t('and')}</div>
|
||||
)}
|
||||
<Condition
|
||||
andIndex={andIndex}
|
||||
dispatch={dispatchConditions}
|
||||
fields={reducedFields}
|
||||
key={`${fieldName}-${operator}-${andIndex}-${orIndex}`}
|
||||
orIndex={orIndex}
|
||||
value={condition}
|
||||
/>
|
||||
</li>
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
</li>
|
||||
))}
|
||||
|
||||
@@ -74,7 +74,7 @@ export const Upload: React.FC<Props> = (props) => {
|
||||
|
||||
const handleFileChange = useCallback(
|
||||
(newFile: File) => {
|
||||
if (newFile instanceof File) {
|
||||
if (newFile instanceof File && isImage(newFile.type)) {
|
||||
const fileReader = new FileReader()
|
||||
fileReader.onload = (e) => {
|
||||
const imgSrc = e.target?.result
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@payloadcms/plugin-cloud-storage",
|
||||
"description": "The official cloud storage plugin for Payload CMS",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.2",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@payloadcms/plugin-cloud",
|
||||
"description": "The official Payload Cloud plugin",
|
||||
"version": "3.0.2",
|
||||
"version": "3.0.4",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@payloadcms/plugin-relationship-object-ids",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.6",
|
||||
"homepage:": "https://payloadcms.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@payloadcms/plugin-sentry",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.8",
|
||||
"homepage:": "https://payloadcms.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@payloadcms/plugin-stripe",
|
||||
"version": "0.0.17",
|
||||
"version": "0.0.19",
|
||||
"homepage:": "https://payloadcms.com",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
1033
pnpm-lock.yaml
generated
1033
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user