@payloadcms/ui
Advanced tools
Comparing version 3.12.1-canary.4fc872f to 3.12.1-canary.7fea7e5
@@ -54,3 +54,3 @@ 'use client'; | ||
const [fields] = useAllFormFields(); | ||
const formModified = useFormModified(); | ||
const modified = useFormModified(); | ||
const { | ||
@@ -69,3 +69,2 @@ code: locale | ||
const debouncedFields = useDebounce(fields, interval); | ||
const modified = useDebounce(formModified, interval); | ||
const fieldRef = useRef(fields); | ||
@@ -72,0 +71,0 @@ const modifiedRef = useRef(modified); |
@@ -126,3 +126,3 @@ 'use client'; | ||
andIndex: andIndex + 1, | ||
fieldName: fields[0].value, | ||
fieldName: fields.find(field_3 => !field_3.field.admin?.disableListFilter).value, | ||
orIndex, | ||
@@ -129,0 +129,0 @@ relation: 'and' |
@@ -275,3 +275,3 @@ 'use client'; | ||
andIndex: 0, | ||
fieldName: reducedFields[0].value, | ||
fieldName: reducedFields.find(_temp).value, | ||
orIndex: conditions.length, | ||
@@ -301,2 +301,5 @@ relation: "or" | ||
}; | ||
function _temp(field) { | ||
return !field.field.admin?.disableListFilter; | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -21,3 +21,3 @@ 'use client'; | ||
export const Auth = props => { | ||
const $ = _c(58); | ||
const $ = _c(60); | ||
const { | ||
@@ -52,2 +52,3 @@ className, | ||
docPermissions, | ||
isEditing, | ||
isInitializing | ||
@@ -190,5 +191,5 @@ } = useDocumentInfo(); | ||
let t9; | ||
if ($[20] !== apiKeyReadOnly || $[21] !== canReadApiKey || $[22] !== canReadEnableAPIKey || $[23] !== collectionSlug || $[24] !== disableLocalStrategy || $[25] !== disabled || $[26] !== docPermissions?.fields || $[27] !== enableAPIKey?.value || $[28] !== enableAPIKeyReadOnly || $[29] !== handleChangePassword || $[30] !== hasPermissionToUnlock || $[31] !== loginWithUsername || $[32] !== operation || $[33] !== readOnly || $[34] !== requirePassword || $[35] !== showPasswordFields_0 || $[36] !== t || $[37] !== t8 || $[38] !== unlock || $[39] !== useAPIKey || $[40] !== verify) { | ||
if ($[20] !== apiKeyReadOnly || $[21] !== canReadApiKey || $[22] !== canReadEnableAPIKey || $[23] !== collectionSlug || $[24] !== disableLocalStrategy || $[25] !== disabled || $[26] !== docPermissions?.fields || $[27] !== enableAPIKey?.value || $[28] !== enableAPIKeyReadOnly || $[29] !== handleChangePassword || $[30] !== hasPermissionToUnlock || $[31] !== isEditing || $[32] !== loginWithUsername || $[33] !== operation || $[34] !== readOnly || $[35] !== requirePassword || $[36] !== showPasswordFields_0 || $[37] !== t || $[38] !== t8 || $[39] !== unlock || $[40] !== useAPIKey || $[41] !== verify) { | ||
let t10; | ||
if ($[42] !== apiKeyReadOnly || $[43] !== canReadApiKey || $[44] !== canReadEnableAPIKey || $[45] !== collectionSlug || $[46] !== disabled || $[47] !== enableAPIKey?.value || $[48] !== enableAPIKeyReadOnly || $[49] !== t || $[50] !== useAPIKey) { | ||
if ($[43] !== apiKeyReadOnly || $[44] !== canReadApiKey || $[45] !== canReadEnableAPIKey || $[46] !== collectionSlug || $[47] !== disabled || $[48] !== enableAPIKey?.value || $[49] !== enableAPIKeyReadOnly || $[50] !== t || $[51] !== useAPIKey) { | ||
t10 = useAPIKey && _jsxs("div", { | ||
@@ -212,18 +213,18 @@ className: `${baseClass}__api-key`, | ||
}); | ||
$[42] = apiKeyReadOnly; | ||
$[43] = canReadApiKey; | ||
$[44] = canReadEnableAPIKey; | ||
$[45] = collectionSlug; | ||
$[46] = disabled; | ||
$[47] = enableAPIKey?.value; | ||
$[48] = enableAPIKeyReadOnly; | ||
$[49] = t; | ||
$[50] = useAPIKey; | ||
$[51] = t10; | ||
$[43] = apiKeyReadOnly; | ||
$[44] = canReadApiKey; | ||
$[45] = canReadEnableAPIKey; | ||
$[46] = collectionSlug; | ||
$[47] = disabled; | ||
$[48] = enableAPIKey?.value; | ||
$[49] = enableAPIKeyReadOnly; | ||
$[50] = t; | ||
$[51] = useAPIKey; | ||
$[52] = t10; | ||
} else { | ||
t10 = $[51]; | ||
t10 = $[52]; | ||
} | ||
let t11; | ||
if ($[52] !== collectionSlug || $[53] !== disabled || $[54] !== readOnly || $[55] !== t || $[56] !== verify) { | ||
t11 = verify && _jsx(CheckboxField, { | ||
if ($[53] !== collectionSlug || $[54] !== disabled || $[55] !== isEditing || $[56] !== readOnly || $[57] !== t || $[58] !== verify) { | ||
t11 = verify && isEditing && _jsx(CheckboxField, { | ||
field: { | ||
@@ -240,10 +241,11 @@ name: "_verified", | ||
}); | ||
$[52] = collectionSlug; | ||
$[53] = disabled; | ||
$[54] = readOnly; | ||
$[55] = t; | ||
$[56] = verify; | ||
$[57] = t11; | ||
$[53] = collectionSlug; | ||
$[54] = disabled; | ||
$[55] = isEditing; | ||
$[56] = readOnly; | ||
$[57] = t; | ||
$[58] = verify; | ||
$[59] = t11; | ||
} else { | ||
t11 = $[57]; | ||
t11 = $[59]; | ||
} | ||
@@ -312,15 +314,16 @@ t9 = _jsxs("div", { | ||
$[30] = hasPermissionToUnlock; | ||
$[31] = loginWithUsername; | ||
$[32] = operation; | ||
$[33] = readOnly; | ||
$[34] = requirePassword; | ||
$[35] = showPasswordFields_0; | ||
$[36] = t; | ||
$[37] = t8; | ||
$[38] = unlock; | ||
$[39] = useAPIKey; | ||
$[40] = verify; | ||
$[41] = t9; | ||
$[31] = isEditing; | ||
$[32] = loginWithUsername; | ||
$[33] = operation; | ||
$[34] = readOnly; | ||
$[35] = requirePassword; | ||
$[36] = showPasswordFields_0; | ||
$[37] = t; | ||
$[38] = t8; | ||
$[39] = unlock; | ||
$[40] = useAPIKey; | ||
$[41] = verify; | ||
$[42] = t9; | ||
} else { | ||
t9 = $[41]; | ||
t9 = $[42]; | ||
} | ||
@@ -327,0 +330,0 @@ return t9; |
{ | ||
"name": "@payloadcms/ui", | ||
"version": "3.12.1-canary.4fc872f", | ||
"version": "3.12.1-canary.7fea7e5", | ||
"homepage": "https://payloadcms.com", | ||
@@ -135,3 +135,3 @@ "repository": { | ||
"uuid": "10.0.0", | ||
"@payloadcms/translations": "3.12.1-canary.4fc872f" | ||
"@payloadcms/translations": "3.12.1-canary.7fea7e5" | ||
}, | ||
@@ -153,4 +153,4 @@ "devDependencies": { | ||
"eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124", | ||
"@payloadcms/eslint-config": "3.9.0", | ||
"payload": "3.12.1-canary.4fc872f" | ||
"payload": "3.12.1-canary.7fea7e5", | ||
"@payloadcms/eslint-config": "3.9.0" | ||
}, | ||
@@ -161,3 +161,3 @@ "peerDependencies": { | ||
"react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020", | ||
"payload": "3.12.1-canary.4fc872f" | ||
"payload": "3.12.1-canary.7fea7e5" | ||
}, | ||
@@ -164,0 +164,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9440814
46023
+ Added@payloadcms/translations@3.12.1-canary.7fea7e5(transitive)
+ Addedpayload@3.12.1-canary.7fea7e5(transitive)
- Removed@payloadcms/translations@3.12.1-canary.4fc872f(transitive)
- Removedpayload@3.12.1-canary.4fc872f(transitive)