payload 3.0.0-beta.8 → 3.0.0-beta.80
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/bin.js +33 -7
- package/dist/admin/LanguageOptions.d.ts +6 -0
- package/dist/admin/LanguageOptions.d.ts.map +1 -0
- package/dist/admin/LanguageOptions.js +3 -0
- package/dist/admin/LanguageOptions.js.map +1 -0
- package/dist/admin/RichText.d.ts +155 -36
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/elements/Cell.d.ts +11 -30
- package/dist/admin/elements/Cell.d.ts.map +1 -1
- package/dist/admin/elements/Cell.js.map +1 -1
- package/dist/admin/elements/DatePicker.d.ts +7 -7
- package/dist/admin/elements/DatePicker.d.ts.map +1 -1
- package/dist/admin/elements/DatePicker.js.map +1 -1
- package/dist/admin/elements/PreviewButton.js.map +1 -1
- package/dist/admin/elements/PublishButton.js.map +1 -1
- package/dist/admin/elements/SaveButton.js.map +1 -1
- package/dist/admin/elements/SaveDraftButton.js.map +1 -1
- package/dist/admin/elements/Tab.d.ts +18 -14
- package/dist/admin/elements/Tab.d.ts.map +1 -1
- package/dist/admin/elements/Tab.js.map +1 -1
- package/dist/admin/elements/Upload.d.ts +3 -0
- package/dist/admin/elements/Upload.d.ts.map +1 -0
- package/dist/admin/elements/Upload.js +3 -0
- package/dist/admin/elements/Upload.js.map +1 -0
- package/dist/admin/elements/WithServerSideProps.d.ts +6 -2
- package/dist/admin/elements/WithServerSideProps.d.ts.map +1 -1
- package/dist/admin/elements/WithServerSideProps.js.map +1 -1
- package/dist/admin/fields/Array.d.ts +14 -0
- package/dist/admin/fields/Array.d.ts.map +1 -0
- package/dist/admin/fields/Array.js +3 -0
- package/dist/admin/fields/Array.js.map +1 -0
- package/dist/admin/fields/Blocks.d.ts +13 -0
- package/dist/admin/fields/Blocks.d.ts.map +1 -0
- package/dist/admin/fields/Blocks.js +3 -0
- package/dist/admin/fields/Blocks.js.map +1 -0
- package/dist/admin/fields/Checkbox.d.ts +18 -0
- package/dist/admin/fields/Checkbox.d.ts.map +1 -0
- package/dist/admin/fields/Checkbox.js +3 -0
- package/dist/admin/fields/Checkbox.js.map +1 -0
- package/dist/admin/fields/Code.d.ts +14 -0
- package/dist/admin/fields/Code.d.ts.map +1 -0
- package/dist/admin/fields/Code.js +3 -0
- package/dist/admin/fields/Code.js.map +1 -0
- package/dist/admin/fields/Collapsible.d.ts +11 -0
- package/dist/admin/fields/Collapsible.d.ts.map +1 -0
- package/dist/admin/fields/Collapsible.js +3 -0
- package/dist/admin/fields/Collapsible.js.map +1 -0
- package/dist/admin/fields/Date.d.ts +13 -0
- package/dist/admin/fields/Date.d.ts.map +1 -0
- package/dist/admin/fields/Date.js +3 -0
- package/dist/admin/fields/Date.js.map +1 -0
- package/dist/admin/fields/Email.d.ts +14 -0
- package/dist/admin/fields/Email.d.ts.map +1 -0
- package/dist/admin/fields/Email.js +3 -0
- package/dist/admin/fields/Email.js.map +1 -0
- package/dist/admin/fields/Group.d.ts +11 -0
- package/dist/admin/fields/Group.d.ts.map +1 -0
- package/dist/admin/fields/Group.js +3 -0
- package/dist/admin/fields/Group.js.map +1 -0
- package/dist/admin/fields/Hidden.d.ts +15 -0
- package/dist/admin/fields/Hidden.d.ts.map +1 -0
- package/dist/admin/fields/Hidden.js +3 -0
- package/dist/admin/fields/Hidden.js.map +1 -0
- package/dist/admin/fields/JSON.d.ts +13 -0
- package/dist/admin/fields/JSON.d.ts.map +1 -0
- package/dist/admin/fields/JSON.js +3 -0
- package/dist/admin/fields/JSON.js.map +1 -0
- package/dist/admin/fields/Number.d.ts +14 -0
- package/dist/admin/fields/Number.d.ts.map +1 -0
- package/dist/admin/fields/Number.js +3 -0
- package/dist/admin/fields/Number.js.map +1 -0
- package/dist/admin/fields/Point.d.ts +13 -0
- package/dist/admin/fields/Point.d.ts.map +1 -0
- package/dist/admin/fields/Point.js +3 -0
- package/dist/admin/fields/Point.js.map +1 -0
- package/dist/admin/fields/Radio.d.ts +16 -0
- package/dist/admin/fields/Radio.d.ts.map +1 -0
- package/dist/admin/fields/Radio.js +3 -0
- package/dist/admin/fields/Radio.js.map +1 -0
- package/dist/admin/fields/Relationship.d.ts +13 -0
- package/dist/admin/fields/Relationship.d.ts.map +1 -0
- package/dist/admin/fields/Relationship.js +3 -0
- package/dist/admin/fields/Relationship.js.map +1 -0
- package/dist/admin/fields/RichText.d.ts +13 -0
- package/dist/admin/fields/RichText.d.ts.map +1 -0
- package/dist/admin/fields/RichText.js +3 -0
- package/dist/admin/fields/RichText.js.map +1 -0
- package/dist/admin/fields/Row.d.ts +13 -0
- package/dist/admin/fields/Row.d.ts.map +1 -0
- package/dist/admin/fields/Row.js +3 -0
- package/dist/admin/fields/Row.js.map +1 -0
- package/dist/admin/fields/Select.d.ts +15 -0
- package/dist/admin/fields/Select.d.ts.map +1 -0
- package/dist/admin/fields/Select.js +3 -0
- package/dist/admin/fields/Select.js.map +1 -0
- package/dist/admin/fields/Tabs.d.ts +16 -0
- package/dist/admin/fields/Tabs.d.ts.map +1 -0
- package/dist/admin/fields/Tabs.js +3 -0
- package/dist/admin/fields/Tabs.js.map +1 -0
- package/dist/admin/fields/Text.d.ts +16 -0
- package/dist/admin/fields/Text.d.ts.map +1 -0
- package/dist/admin/fields/Text.js +3 -0
- package/dist/admin/fields/Text.js.map +1 -0
- package/dist/admin/fields/Textarea.d.ts +16 -0
- package/dist/admin/fields/Textarea.d.ts.map +1 -0
- package/dist/admin/fields/Textarea.js +3 -0
- package/dist/admin/fields/Textarea.js.map +1 -0
- package/dist/admin/fields/Upload.d.ts +13 -0
- package/dist/admin/fields/Upload.d.ts.map +1 -0
- package/dist/admin/fields/Upload.js +3 -0
- package/dist/admin/fields/Upload.js.map +1 -0
- package/dist/admin/forms/Error.d.ts +13 -6
- package/dist/admin/forms/Error.d.ts.map +1 -1
- package/dist/admin/forms/Error.js.map +1 -1
- package/dist/admin/forms/Field.d.ts +25 -0
- package/dist/admin/forms/Field.d.ts.map +1 -0
- package/dist/admin/forms/Field.js +4 -0
- package/dist/admin/forms/Field.js.map +1 -0
- package/dist/admin/forms/FieldDescription.d.ts +14 -11
- package/dist/admin/forms/FieldDescription.d.ts.map +1 -1
- package/dist/admin/forms/FieldDescription.js.map +1 -1
- package/dist/admin/forms/Form.d.ts +2 -2
- package/dist/admin/forms/Form.d.ts.map +1 -1
- package/dist/admin/forms/Form.js.map +1 -1
- package/dist/admin/forms/Label.d.ts +15 -8
- package/dist/admin/forms/Label.d.ts.map +1 -1
- package/dist/admin/forms/Label.js.map +1 -1
- package/dist/admin/forms/RowLabel.d.ts +1 -1
- package/dist/admin/forms/RowLabel.d.ts.map +1 -1
- package/dist/admin/forms/RowLabel.js.map +1 -1
- package/dist/admin/types.d.ts +54 -6
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/admin/views/types.d.ts +26 -16
- package/dist/admin/views/types.d.ts.map +1 -1
- package/dist/admin/views/types.js.map +1 -1
- package/dist/assets/assets.d.js.map +1 -1
- package/dist/auth/baseFields/accountLock.d.ts +1 -2
- package/dist/auth/baseFields/accountLock.d.ts.map +1 -1
- package/dist/auth/baseFields/accountLock.js +1 -1
- package/dist/auth/baseFields/accountLock.js.map +1 -1
- package/dist/auth/baseFields/apiKey.d.ts +1 -2
- package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
- package/dist/auth/baseFields/apiKey.js +9 -8
- package/dist/auth/baseFields/apiKey.js.map +1 -1
- package/dist/auth/baseFields/auth.d.ts +1 -2
- package/dist/auth/baseFields/auth.d.ts.map +1 -1
- package/dist/auth/baseFields/auth.js +1 -16
- package/dist/auth/baseFields/auth.js.map +1 -1
- package/dist/auth/baseFields/email.d.ts +3 -0
- package/dist/auth/baseFields/email.d.ts.map +1 -0
- package/dist/auth/baseFields/email.js +25 -0
- package/dist/auth/baseFields/email.js.map +1 -0
- package/dist/auth/baseFields/username.d.ts +3 -0
- package/dist/auth/baseFields/username.d.ts.map +1 -0
- package/dist/auth/baseFields/username.js +25 -0
- package/dist/auth/baseFields/username.js.map +1 -0
- package/dist/auth/baseFields/verification.d.ts +1 -2
- package/dist/auth/baseFields/verification.d.ts.map +1 -1
- package/dist/auth/baseFields/verification.js +2 -2
- package/dist/auth/baseFields/verification.js.map +1 -1
- package/dist/auth/cookies.d.ts +17 -5
- package/dist/auth/cookies.d.ts.map +1 -1
- package/dist/auth/cookies.js +45 -14
- package/dist/auth/cookies.js.map +1 -1
- package/dist/auth/crypto.js.map +1 -1
- package/dist/auth/defaultAccess.js.map +1 -1
- package/dist/auth/defaultUser.js.map +1 -1
- package/dist/auth/ensureUsernameOrEmail.d.ts +17 -0
- package/dist/auth/ensureUsernameOrEmail.d.ts.map +1 -0
- package/dist/auth/ensureUsernameOrEmail.js +43 -0
- package/dist/auth/ensureUsernameOrEmail.js.map +1 -0
- package/dist/auth/executeAccess.d.ts.map +1 -1
- package/dist/auth/executeAccess.js.map +1 -1
- package/dist/auth/executeAuthStrategies.d.ts +2 -3
- package/dist/auth/executeAuthStrategies.d.ts.map +1 -1
- package/dist/auth/executeAuthStrategies.js +6 -4
- package/dist/auth/executeAuthStrategies.js.map +1 -1
- package/dist/auth/extractJWT.d.ts +1 -1
- package/dist/auth/extractJWT.d.ts.map +1 -1
- package/dist/auth/extractJWT.js.map +1 -1
- package/dist/auth/getAccessResults.d.ts.map +1 -1
- package/dist/auth/getAccessResults.js +3 -8
- package/dist/auth/getAccessResults.js.map +1 -1
- package/dist/auth/getAuthFields.d.ts +4 -0
- package/dist/auth/getAuthFields.d.ts.map +1 -0
- package/dist/auth/getAuthFields.js +43 -0
- package/dist/auth/getAuthFields.js.map +1 -0
- package/dist/auth/getFieldsToSign.d.ts +1 -1
- package/dist/auth/getFieldsToSign.d.ts.map +1 -1
- package/dist/auth/getFieldsToSign.js +1 -1
- package/dist/auth/getFieldsToSign.js.map +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/isLocked.d.ts.map +1 -1
- package/dist/auth/isLocked.js +4 -1
- package/dist/auth/isLocked.js.map +1 -1
- package/dist/auth/operations/access.d.ts.map +1 -1
- package/dist/auth/operations/access.js +1 -6
- package/dist/auth/operations/access.js.map +1 -1
- package/dist/auth/operations/auth.d.ts +3 -3
- package/dist/auth/operations/auth.d.ts.map +1 -1
- package/dist/auth/operations/auth.js +3 -5
- package/dist/auth/operations/auth.js.map +1 -1
- package/dist/auth/operations/forgotPassword.d.ts +5 -5
- package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
- package/dist/auth/operations/forgotPassword.js +34 -20
- package/dist/auth/operations/forgotPassword.js.map +1 -1
- package/dist/auth/operations/init.d.ts.map +1 -1
- package/dist/auth/operations/init.js.map +1 -1
- package/dist/auth/operations/local/auth.d.ts.map +1 -1
- package/dist/auth/operations/local/auth.js.map +1 -1
- package/dist/auth/operations/local/forgotPassword.d.ts +3 -3
- package/dist/auth/operations/local/forgotPassword.d.ts.map +1 -1
- package/dist/auth/operations/local/forgotPassword.js.map +1 -1
- package/dist/auth/operations/local/index.js.map +1 -1
- package/dist/auth/operations/local/login.d.ts +6 -10
- package/dist/auth/operations/local/login.d.ts.map +1 -1
- package/dist/auth/operations/local/login.js.map +1 -1
- package/dist/auth/operations/local/resetPassword.d.ts +3 -4
- package/dist/auth/operations/local/resetPassword.d.ts.map +1 -1
- package/dist/auth/operations/local/resetPassword.js.map +1 -1
- package/dist/auth/operations/local/unlock.d.ts +5 -8
- package/dist/auth/operations/local/unlock.d.ts.map +1 -1
- package/dist/auth/operations/local/unlock.js.map +1 -1
- package/dist/auth/operations/local/verifyEmail.d.ts +3 -4
- package/dist/auth/operations/local/verifyEmail.d.ts.map +1 -1
- package/dist/auth/operations/local/verifyEmail.js.map +1 -1
- package/dist/auth/operations/login.d.ts +7 -10
- package/dist/auth/operations/login.d.ts.map +1 -1
- package/dist/auth/operations/login.js +108 -11
- package/dist/auth/operations/login.js.map +1 -1
- package/dist/auth/operations/logout.d.ts.map +1 -1
- package/dist/auth/operations/logout.js.map +1 -1
- package/dist/auth/operations/me.d.ts +2 -1
- package/dist/auth/operations/me.d.ts.map +1 -1
- package/dist/auth/operations/me.js +25 -9
- package/dist/auth/operations/me.js.map +1 -1
- package/dist/auth/operations/refresh.d.ts +3 -3
- package/dist/auth/operations/refresh.d.ts.map +1 -1
- package/dist/auth/operations/refresh.js +35 -17
- package/dist/auth/operations/refresh.js.map +1 -1
- package/dist/auth/operations/registerFirstUser.d.ts +7 -13
- package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
- package/dist/auth/operations/registerFirstUser.js +8 -0
- package/dist/auth/operations/registerFirstUser.js.map +1 -1
- package/dist/auth/operations/resetPassword.d.ts +0 -1
- package/dist/auth/operations/resetPassword.d.ts.map +1 -1
- package/dist/auth/operations/resetPassword.js +4 -3
- package/dist/auth/operations/resetPassword.js.map +1 -1
- package/dist/auth/operations/unlock.d.ts +5 -7
- package/dist/auth/operations/unlock.d.ts.map +1 -1
- package/dist/auth/operations/unlock.js +22 -15
- package/dist/auth/operations/unlock.js.map +1 -1
- package/dist/auth/operations/verifyEmail.d.ts.map +1 -1
- package/dist/auth/operations/verifyEmail.js.map +1 -1
- package/dist/auth/sendVerificationEmail.d.ts +5 -6
- package/dist/auth/sendVerificationEmail.d.ts.map +1 -1
- package/dist/auth/sendVerificationEmail.js +7 -8
- package/dist/auth/sendVerificationEmail.js.map +1 -1
- package/dist/auth/strategies/apiKey.d.ts.map +1 -1
- package/dist/auth/strategies/apiKey.js +9 -3
- package/dist/auth/strategies/apiKey.js.map +1 -1
- package/dist/auth/strategies/jwt.d.ts.map +1 -1
- package/dist/auth/strategies/jwt.js +71 -3
- package/dist/auth/strategies/jwt.js.map +1 -1
- package/dist/auth/strategies/local/authenticate.d.ts +1 -1
- package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
- package/dist/auth/strategies/local/authenticate.js.map +1 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts +5 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.js +23 -14
- package/dist/auth/strategies/local/generatePasswordSaltHash.js.map +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.d.ts +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.d.ts.map +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.js +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.js.map +1 -1
- package/dist/auth/strategies/local/register.d.ts +2 -2
- package/dist/auth/strategies/local/register.d.ts.map +1 -1
- package/dist/auth/strategies/local/register.js +43 -12
- package/dist/auth/strategies/local/register.js.map +1 -1
- package/dist/auth/strategies/local/resetLoginAttempts.d.ts +1 -1
- package/dist/auth/strategies/local/resetLoginAttempts.d.ts.map +1 -1
- package/dist/auth/strategies/local/resetLoginAttempts.js.map +1 -1
- package/dist/auth/types.d.ts +28 -13
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/types.js.map +1 -1
- package/dist/bin/generateImportMap/index.d.ts +47 -0
- package/dist/bin/generateImportMap/index.d.ts.map +1 -0
- package/dist/bin/generateImportMap/index.js +129 -0
- package/dist/bin/generateImportMap/index.js.map +1 -0
- package/dist/bin/generateImportMap/iterateCollections.d.ts +12 -0
- package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -0
- package/dist/bin/generateImportMap/iterateCollections.js +41 -0
- package/dist/bin/generateImportMap/iterateCollections.js.map +1 -0
- package/dist/bin/generateImportMap/iterateConfig.d.ts +10 -0
- package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -0
- package/dist/bin/generateImportMap/iterateConfig.js +75 -0
- package/dist/bin/generateImportMap/iterateConfig.js.map +1 -0
- package/dist/bin/generateImportMap/iterateFields.d.ts +12 -0
- package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -0
- package/dist/bin/generateImportMap/iterateFields.js +56 -0
- package/dist/bin/generateImportMap/iterateFields.js.map +1 -0
- package/dist/bin/generateImportMap/iterateGlobals.d.ts +12 -0
- package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +1 -0
- package/dist/bin/generateImportMap/iterateGlobals.js +34 -0
- package/dist/bin/generateImportMap/iterateGlobals.js.map +1 -0
- package/dist/bin/generateImportMap/parsePayloadComponent.d.ts +6 -0
- package/dist/bin/generateImportMap/parsePayloadComponent.d.ts.map +1 -0
- package/dist/bin/generateImportMap/parsePayloadComponent.js +19 -0
- package/dist/bin/generateImportMap/parsePayloadComponent.js.map +1 -0
- package/dist/bin/generateTypes.d.ts +3 -1
- package/dist/bin/generateTypes.d.ts.map +1 -1
- package/dist/bin/generateTypes.js +25 -11
- package/dist/bin/generateTypes.js.map +1 -1
- package/dist/bin/index.d.ts.map +1 -1
- package/dist/bin/index.js +35 -4
- package/dist/bin/index.js.map +1 -1
- package/dist/bin/loadEnv.d.ts +2 -2
- package/dist/bin/loadEnv.d.ts.map +1 -1
- package/dist/bin/loadEnv.js +18 -17
- package/dist/bin/loadEnv.js.map +1 -1
- package/dist/bin/migrate.d.ts.map +1 -1
- package/dist/bin/migrate.js.map +1 -1
- package/dist/collections/config/build.js.map +1 -1
- package/dist/collections/config/client.d.ts +33 -310
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/client.js +1 -70
- package/dist/collections/config/client.js.map +1 -1
- package/dist/collections/config/defaults.d.ts +5 -64
- package/dist/collections/config/defaults.d.ts.map +1 -1
- package/dist/collections/config/defaults.js +10 -1
- package/dist/collections/config/defaults.js.map +1 -1
- package/dist/collections/config/reservedFieldNames.d.ts +15 -0
- package/dist/collections/config/reservedFieldNames.d.ts.map +1 -0
- package/dist/collections/config/reservedFieldNames.js +104 -0
- package/dist/collections/config/reservedFieldNames.js.map +1 -0
- package/dist/collections/config/reservedFieldNames.spec.js +148 -0
- package/dist/collections/config/reservedFieldNames.spec.js.map +1 -0
- package/dist/collections/config/sanitize.d.ts +2 -3
- package/dist/collections/config/sanitize.d.ts.map +1 -1
- package/dist/collections/config/sanitize.js +52 -40
- package/dist/collections/config/sanitize.js.map +1 -1
- package/dist/collections/config/types.d.ts +79 -25
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/collections/dataloader.d.ts +14 -0
- package/dist/collections/dataloader.d.ts.map +1 -1
- package/dist/collections/dataloader.js +27 -12
- package/dist/collections/dataloader.js.map +1 -1
- package/dist/collections/operations/count.d.ts +14 -0
- package/dist/collections/operations/count.d.ts.map +1 -0
- package/dist/collections/operations/count.js +71 -0
- package/dist/collections/operations/count.js.map +1 -0
- package/dist/collections/operations/create.d.ts +5 -9
- package/dist/collections/operations/create.d.ts.map +1 -1
- package/dist/collections/operations/create.js +16 -17
- package/dist/collections/operations/create.js.map +1 -1
- package/dist/collections/operations/delete.d.ts +5 -5
- package/dist/collections/operations/delete.d.ts.map +1 -1
- package/dist/collections/operations/delete.js +2 -1
- package/dist/collections/operations/delete.js.map +1 -1
- package/dist/collections/operations/deleteByID.d.ts +4 -3
- package/dist/collections/operations/deleteByID.d.ts.map +1 -1
- package/dist/collections/operations/deleteByID.js +1 -0
- package/dist/collections/operations/deleteByID.js.map +1 -1
- package/dist/collections/operations/docAccess.d.ts.map +1 -1
- package/dist/collections/operations/docAccess.js +0 -4
- package/dist/collections/operations/docAccess.js.map +1 -1
- package/dist/collections/operations/duplicate.d.ts +3 -3
- package/dist/collections/operations/duplicate.d.ts.map +1 -1
- package/dist/collections/operations/duplicate.js +3 -1
- package/dist/collections/operations/duplicate.js.map +1 -1
- package/dist/collections/operations/find.d.ts +3 -2
- package/dist/collections/operations/find.d.ts.map +1 -1
- package/dist/collections/operations/find.js +1 -4
- package/dist/collections/operations/find.js.map +1 -1
- package/dist/collections/operations/findByID.d.ts +3 -2
- package/dist/collections/operations/findByID.d.ts.map +1 -1
- package/dist/collections/operations/findByID.js +4 -8
- package/dist/collections/operations/findByID.js.map +1 -1
- package/dist/collections/operations/findVersionByID.d.ts +1 -1
- package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/findVersionByID.js +2 -5
- package/dist/collections/operations/findVersionByID.js.map +1 -1
- package/dist/collections/operations/findVersions.d.ts +1 -1
- package/dist/collections/operations/findVersions.d.ts.map +1 -1
- package/dist/collections/operations/findVersions.js +1 -4
- package/dist/collections/operations/findVersions.js.map +1 -1
- package/dist/collections/operations/local/count.d.ts +20 -0
- package/dist/collections/operations/local/count.d.ts.map +1 -0
- package/dist/collections/operations/local/count.js +19 -0
- package/dist/collections/operations/local/count.js.map +1 -0
- package/dist/collections/operations/local/create.d.ts +7 -8
- package/dist/collections/operations/local/create.d.ts.map +1 -1
- package/dist/collections/operations/local/create.js.map +1 -1
- package/dist/collections/operations/local/delete.d.ts +15 -17
- package/dist/collections/operations/local/delete.d.ts.map +1 -1
- package/dist/collections/operations/local/delete.js.map +1 -1
- package/dist/collections/operations/local/duplicate.d.ts +6 -5
- package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
- package/dist/collections/operations/local/duplicate.js.map +1 -1
- package/dist/collections/operations/local/find.d.ts +7 -6
- package/dist/collections/operations/local/find.d.ts.map +1 -1
- package/dist/collections/operations/local/find.js +1 -1
- package/dist/collections/operations/local/find.js.map +1 -1
- package/dist/collections/operations/local/findByID.d.ts +7 -6
- package/dist/collections/operations/local/findByID.d.ts.map +1 -1
- package/dist/collections/operations/local/findByID.js.map +1 -1
- package/dist/collections/operations/local/findVersionByID.d.ts +7 -6
- package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/local/findVersionByID.js.map +1 -1
- package/dist/collections/operations/local/findVersions.d.ts +7 -6
- package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
- package/dist/collections/operations/local/findVersions.js.map +1 -1
- package/dist/collections/operations/local/index.d.ts +4 -2
- package/dist/collections/operations/local/index.d.ts.map +1 -1
- package/dist/collections/operations/local/index.js +4 -2
- package/dist/collections/operations/local/index.js.map +1 -1
- package/dist/collections/operations/local/restoreVersion.d.ts +7 -6
- package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/local/restoreVersion.js.map +1 -1
- package/dist/collections/operations/local/update.d.ts +14 -14
- package/dist/collections/operations/local/update.d.ts.map +1 -1
- package/dist/collections/operations/local/update.js.map +1 -1
- package/dist/collections/operations/restoreVersion.d.ts +2 -1
- package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/restoreVersion.js +8 -7
- package/dist/collections/operations/restoreVersion.js.map +1 -1
- package/dist/collections/operations/update.d.ts +5 -6
- package/dist/collections/operations/update.d.ts.map +1 -1
- package/dist/collections/operations/update.js +17 -3
- package/dist/collections/operations/update.js.map +1 -1
- package/dist/collections/operations/updateByID.d.ts +5 -7
- package/dist/collections/operations/updateByID.d.ts.map +1 -1
- package/dist/collections/operations/updateByID.js +19 -3
- package/dist/collections/operations/updateByID.js.map +1 -1
- package/dist/collections/operations/utils.d.ts +42 -33
- package/dist/collections/operations/utils.d.ts.map +1 -1
- package/dist/collections/operations/utils.js +0 -1
- package/dist/collections/operations/utils.js.map +1 -1
- package/dist/config/build.d.ts.map +1 -1
- package/dist/config/build.js +3 -4
- package/dist/config/build.js.map +1 -1
- package/dist/config/client.d.ts +17 -10
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js +17 -63
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +21 -4
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/find.d.ts.map +1 -1
- package/dist/config/find.js +20 -23
- package/dist/config/find.js.map +1 -1
- package/dist/config/sanitize.d.ts +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/sanitize.js +79 -15
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +289 -139
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +7 -13
- package/dist/config/types.js.map +1 -1
- package/dist/database/combineQueries.js.map +1 -1
- package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
- package/dist/database/createDatabaseAdapter.js +1 -1
- package/dist/database/createDatabaseAdapter.js.map +1 -1
- package/dist/database/flattenWhereToOperators.js.map +1 -1
- package/dist/database/getLocalizedPaths.d.ts.map +1 -1
- package/dist/database/getLocalizedPaths.js +2 -3
- package/dist/database/getLocalizedPaths.js.map +1 -1
- package/dist/database/migrations/createMigration.d.ts.map +1 -1
- package/dist/database/migrations/createMigration.js +6 -2
- package/dist/database/migrations/createMigration.js.map +1 -1
- package/dist/database/migrations/getMigrations.js.map +1 -1
- package/dist/database/migrations/getPredefinedMigration.d.ts +12 -0
- package/dist/database/migrations/getPredefinedMigration.d.ts.map +1 -0
- package/dist/database/migrations/getPredefinedMigration.js +41 -0
- package/dist/database/migrations/getPredefinedMigration.js.map +1 -0
- package/dist/database/migrations/migrate.d.ts +1 -1
- package/dist/database/migrations/migrate.d.ts.map +1 -1
- package/dist/database/migrations/migrate.js +5 -5
- package/dist/database/migrations/migrate.js.map +1 -1
- package/dist/database/migrations/migrateDown.d.ts.map +1 -1
- package/dist/database/migrations/migrateDown.js +1 -1
- package/dist/database/migrations/migrateDown.js.map +1 -1
- package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
- package/dist/database/migrations/migrateRefresh.js +1 -1
- package/dist/database/migrations/migrateRefresh.js.map +1 -1
- package/dist/database/migrations/migrateReset.d.ts.map +1 -1
- package/dist/database/migrations/migrateReset.js +1 -1
- package/dist/database/migrations/migrateReset.js.map +1 -1
- package/dist/database/migrations/migrateStatus.js +0 -1
- package/dist/database/migrations/migrateStatus.js.map +1 -1
- package/dist/database/migrations/migrationTemplate.js.map +1 -1
- package/dist/database/migrations/migrationsCollection.js.map +1 -1
- package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
- package/dist/database/migrations/readMigrationFiles.js +1 -1
- package/dist/database/migrations/readMigrationFiles.js.map +1 -1
- package/dist/database/migrations/writeMigrationIndex.d.ts +4 -0
- package/dist/database/migrations/writeMigrationIndex.d.ts.map +1 -0
- package/dist/database/migrations/writeMigrationIndex.js +32 -0
- package/dist/database/migrations/writeMigrationIndex.js.map +1 -0
- package/dist/database/queryValidation/types.js.map +1 -1
- package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
- package/dist/database/queryValidation/validateQueryPaths.js +4 -4
- package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
- package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
- package/dist/database/queryValidation/validateSearchParams.js +0 -3
- package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
- package/dist/database/types.d.ts +34 -24
- package/dist/database/types.d.ts.map +1 -1
- package/dist/database/types.js.map +1 -1
- package/dist/email/consoleEmailAdapter.d.ts +3 -0
- package/dist/email/consoleEmailAdapter.d.ts.map +1 -0
- package/dist/email/consoleEmailAdapter.js +17 -0
- package/dist/email/consoleEmailAdapter.js.map +1 -0
- package/dist/email/defaults.d.ts +2 -2
- package/dist/email/defaults.d.ts.map +1 -1
- package/dist/email/defaults.js +3 -3
- package/dist/email/defaults.js.map +1 -1
- package/dist/email/getStringifiedToAddress.d.ts +3 -0
- package/dist/email/getStringifiedToAddress.d.ts.map +1 -0
- package/dist/email/getStringifiedToAddress.js +20 -0
- package/dist/email/getStringifiedToAddress.js.map +1 -0
- package/dist/email/sendEmail.d.ts +3 -2
- package/dist/email/sendEmail.d.ts.map +1 -1
- package/dist/email/sendEmail.js +8 -4
- package/dist/email/sendEmail.js.map +1 -1
- package/dist/email/types.d.ts +26 -18
- package/dist/email/types.d.ts.map +1 -1
- package/dist/email/types.js +5 -1
- package/dist/email/types.js.map +1 -1
- package/dist/errors/APIError.d.ts +3 -2
- package/dist/errors/APIError.d.ts.map +1 -1
- package/dist/errors/APIError.js +9 -4
- package/dist/errors/APIError.js.map +1 -1
- package/dist/errors/AuthenticationError.d.ts +3 -4
- package/dist/errors/AuthenticationError.d.ts.map +1 -1
- package/dist/errors/AuthenticationError.js +4 -5
- package/dist/errors/AuthenticationError.js.map +1 -1
- package/dist/errors/DuplicateCollection.d.ts +2 -3
- package/dist/errors/DuplicateCollection.d.ts.map +1 -1
- package/dist/errors/DuplicateCollection.js +2 -3
- package/dist/errors/DuplicateCollection.js.map +1 -1
- package/dist/errors/DuplicateFieldName.d.ts +2 -3
- package/dist/errors/DuplicateFieldName.d.ts.map +1 -1
- package/dist/errors/DuplicateFieldName.js +2 -3
- package/dist/errors/DuplicateFieldName.js.map +1 -1
- package/dist/errors/DuplicateGlobal.d.ts +2 -3
- package/dist/errors/DuplicateGlobal.d.ts.map +1 -1
- package/dist/errors/DuplicateGlobal.js +2 -3
- package/dist/errors/DuplicateGlobal.js.map +1 -1
- package/dist/errors/ErrorDeletingFile.d.ts +2 -3
- package/dist/errors/ErrorDeletingFile.d.ts.map +1 -1
- package/dist/errors/ErrorDeletingFile.js +2 -3
- package/dist/errors/ErrorDeletingFile.js.map +1 -1
- package/dist/errors/FileRetrievalError.d.ts +6 -0
- package/dist/errors/FileRetrievalError.d.ts.map +1 -0
- package/dist/errors/FileRetrievalError.js +13 -0
- package/dist/errors/FileRetrievalError.js.map +1 -0
- package/dist/errors/FileUploadError.d.ts +2 -3
- package/dist/errors/FileUploadError.d.ts.map +1 -1
- package/dist/errors/FileUploadError.js +2 -3
- package/dist/errors/FileUploadError.js.map +1 -1
- package/dist/errors/Forbidden.d.ts +2 -3
- package/dist/errors/Forbidden.d.ts.map +1 -1
- package/dist/errors/Forbidden.js +2 -3
- package/dist/errors/Forbidden.js.map +1 -1
- package/dist/errors/InvalidConfiguration.d.ts +2 -3
- package/dist/errors/InvalidConfiguration.d.ts.map +1 -1
- package/dist/errors/InvalidConfiguration.js +2 -3
- package/dist/errors/InvalidConfiguration.js.map +1 -1
- package/dist/errors/InvalidFieldName.d.ts +2 -3
- package/dist/errors/InvalidFieldName.d.ts.map +1 -1
- package/dist/errors/InvalidFieldName.js +2 -3
- package/dist/errors/InvalidFieldName.js.map +1 -1
- package/dist/errors/InvalidFieldRelationship.d.ts +2 -3
- package/dist/errors/InvalidFieldRelationship.d.ts.map +1 -1
- package/dist/errors/InvalidFieldRelationship.js +2 -3
- package/dist/errors/InvalidFieldRelationship.js.map +1 -1
- package/dist/errors/InvalidSchema.d.ts +2 -3
- package/dist/errors/InvalidSchema.d.ts.map +1 -1
- package/dist/errors/InvalidSchema.js +2 -3
- package/dist/errors/InvalidSchema.js.map +1 -1
- package/dist/errors/LockedAuth.d.ts +2 -3
- package/dist/errors/LockedAuth.d.ts.map +1 -1
- package/dist/errors/LockedAuth.js +2 -3
- package/dist/errors/LockedAuth.js.map +1 -1
- package/dist/errors/MissingCollectionLabel.d.ts +2 -3
- package/dist/errors/MissingCollectionLabel.d.ts.map +1 -1
- package/dist/errors/MissingCollectionLabel.js +2 -3
- package/dist/errors/MissingCollectionLabel.js.map +1 -1
- package/dist/errors/MissingEditorProp.d.ts +2 -3
- package/dist/errors/MissingEditorProp.d.ts.map +1 -1
- package/dist/errors/MissingEditorProp.js +3 -4
- package/dist/errors/MissingEditorProp.js.map +1 -1
- package/dist/errors/MissingFieldInputOptions.d.ts +2 -3
- package/dist/errors/MissingFieldInputOptions.d.ts.map +1 -1
- package/dist/errors/MissingFieldInputOptions.js +2 -3
- package/dist/errors/MissingFieldInputOptions.js.map +1 -1
- package/dist/errors/MissingFieldType.d.ts +2 -3
- package/dist/errors/MissingFieldType.d.ts.map +1 -1
- package/dist/errors/MissingFieldType.js +2 -3
- package/dist/errors/MissingFieldType.js.map +1 -1
- package/dist/errors/MissingFile.d.ts +2 -3
- package/dist/errors/MissingFile.d.ts.map +1 -1
- package/dist/errors/MissingFile.js +2 -3
- package/dist/errors/MissingFile.js.map +1 -1
- package/dist/errors/NotFound.d.ts +2 -3
- package/dist/errors/NotFound.d.ts.map +1 -1
- package/dist/errors/NotFound.js +2 -3
- package/dist/errors/NotFound.js.map +1 -1
- package/dist/errors/QueryError.d.ts +2 -3
- package/dist/errors/QueryError.d.ts.map +1 -1
- package/dist/errors/QueryError.js +2 -3
- package/dist/errors/QueryError.js.map +1 -1
- package/dist/errors/ReservedFieldName.d.ts +6 -0
- package/dist/errors/ReservedFieldName.d.ts.map +1 -0
- package/dist/errors/ReservedFieldName.js +8 -0
- package/dist/errors/ReservedFieldName.js.map +1 -0
- package/dist/errors/TimestampsRequired.d.ts +2 -3
- package/dist/errors/TimestampsRequired.d.ts.map +1 -1
- package/dist/errors/TimestampsRequired.js +2 -3
- package/dist/errors/TimestampsRequired.js.map +1 -1
- package/dist/errors/UnathorizedError.d.ts +2 -3
- package/dist/errors/UnathorizedError.d.ts.map +1 -1
- package/dist/errors/UnathorizedError.js +2 -3
- package/dist/errors/UnathorizedError.js.map +1 -1
- package/dist/errors/ValidationError.d.ts +13 -7
- package/dist/errors/ValidationError.d.ts.map +1 -1
- package/dist/errors/ValidationError.js +8 -6
- package/dist/errors/ValidationError.js.map +1 -1
- package/dist/errors/index.d.ts +23 -19
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +22 -19
- package/dist/errors/index.js.map +1 -1
- package/dist/errors/types.js.map +1 -1
- package/dist/exports/components/utilities.js.map +1 -1
- package/dist/exports/i18n/ar.js.map +1 -1
- package/dist/exports/i18n/az.js.map +1 -1
- package/dist/exports/i18n/bg.js.map +1 -1
- package/dist/exports/i18n/cs.js.map +1 -1
- package/dist/exports/i18n/de.js.map +1 -1
- package/dist/exports/i18n/en.js.map +1 -1
- package/dist/exports/i18n/es.js.map +1 -1
- package/dist/exports/i18n/fa.js.map +1 -1
- package/dist/exports/i18n/fr.js.map +1 -1
- package/dist/exports/i18n/he.d.ts +2 -0
- package/dist/exports/i18n/he.d.ts.map +1 -0
- package/dist/exports/i18n/he.js +3 -0
- package/dist/exports/i18n/he.js.map +1 -0
- package/dist/exports/i18n/hr.js.map +1 -1
- package/dist/exports/i18n/hu.js.map +1 -1
- package/dist/exports/i18n/it.js.map +1 -1
- package/dist/exports/i18n/ja.js.map +1 -1
- package/dist/exports/i18n/ko.js.map +1 -1
- package/dist/exports/i18n/my.js.map +1 -1
- package/dist/exports/i18n/nb.js.map +1 -1
- package/dist/exports/i18n/nl.js.map +1 -1
- package/dist/exports/i18n/pl.js.map +1 -1
- package/dist/exports/i18n/pt.js.map +1 -1
- package/dist/exports/i18n/ro.js.map +1 -1
- package/dist/exports/i18n/rs.js.map +1 -1
- package/dist/exports/i18n/rsLatin.js.map +1 -1
- package/dist/exports/i18n/ru.js.map +1 -1
- package/dist/exports/i18n/sv.js.map +1 -1
- package/dist/exports/i18n/th.js.map +1 -1
- package/dist/exports/i18n/tr.js.map +1 -1
- package/dist/exports/i18n/uk.js.map +1 -1
- package/dist/exports/i18n/vi.js.map +1 -1
- package/dist/exports/i18n/zh.js.map +1 -1
- package/dist/exports/i18n/zhTw.js.map +1 -1
- package/dist/exports/node.d.ts +5 -1
- package/dist/exports/node.d.ts.map +1 -1
- package/dist/exports/node.js +5 -2
- package/dist/exports/node.js.map +1 -1
- package/dist/exports/shared.d.ts +24 -0
- package/dist/exports/shared.d.ts.map +1 -0
- package/dist/exports/shared.js +25 -0
- package/dist/exports/shared.js.map +1 -0
- package/dist/fields/baseFields/baseBlockFields.js.map +1 -1
- package/dist/fields/baseFields/baseIDField.js.map +1 -1
- package/dist/fields/config/client.d.ts +4 -1288
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +1 -77
- package/dist/fields/config/client.js.map +1 -1
- package/dist/fields/config/sanitize.d.ts +9 -2
- package/dist/fields/config/sanitize.d.ts.map +1 -1
- package/dist/fields/config/sanitize.js +69 -47
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/sanitize.spec.js +130 -139
- package/dist/fields/config/sanitize.spec.js.map +1 -1
- package/dist/fields/config/types.d.ts +669 -207
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js +4 -1
- package/dist/fields/config/types.js.map +1 -1
- package/dist/fields/getDefaultValue.d.ts +5 -5
- package/dist/fields/getDefaultValue.d.ts.map +1 -1
- package/dist/fields/getDefaultValue.js +4 -6
- package/dist/fields/getDefaultValue.js.map +1 -1
- package/dist/fields/getFieldPaths.d.ts +10 -0
- package/dist/fields/getFieldPaths.d.ts.map +1 -0
- package/dist/fields/getFieldPaths.js +45 -0
- package/dist/fields/getFieldPaths.js.map +1 -0
- package/dist/fields/hooks/afterChange/index.d.ts +12 -6
- package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/index.js +4 -2
- package/dist/fields/hooks/afterChange/index.js.map +1 -1
- package/dist/fields/hooks/afterChange/promise.d.ts +16 -8
- package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/promise.js +67 -3
- package/dist/fields/hooks/afterChange/promise.js.map +1 -1
- package/dist/fields/hooks/afterChange/traverseFields.d.ts +10 -8
- package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/traverseFields.js +3 -1
- package/dist/fields/hooks/afterChange/traverseFields.js.map +1 -1
- package/dist/fields/hooks/afterRead/index.d.ts +6 -5
- package/dist/fields/hooks/afterRead/index.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/index.js +7 -4
- package/dist/fields/hooks/afterRead/index.js.map +1 -1
- package/dist/fields/hooks/afterRead/promise.d.ts +16 -4
- package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/promise.js +152 -37
- package/dist/fields/hooks/afterRead/promise.js.map +1 -1
- package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts +2 -1
- package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js +26 -20
- package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js.map +1 -1
- package/dist/fields/hooks/afterRead/traverseFields.d.ts +10 -4
- package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/traverseFields.js +4 -1
- package/dist/fields/hooks/afterRead/traverseFields.js.map +1 -1
- package/dist/fields/hooks/beforeChange/beforeDuplicate.js.map +1 -1
- package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts +2 -1
- package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.js.map +1 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts +2 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.js.map +1 -1
- package/dist/fields/hooks/beforeChange/index.d.ts +7 -7
- package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/index.js +10 -5
- package/dist/fields/hooks/beforeChange/index.js.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.d.ts +16 -9
- package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.js +86 -19
- package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
- package/dist/fields/hooks/beforeChange/traverseFields.d.ts +23 -10
- package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/traverseFields.js +4 -3
- package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/index.d.ts +5 -5
- package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/index.js +4 -2
- package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.d.ts +12 -4
- package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.js +73 -6
- package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +12 -4
- package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.js +3 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
- package/dist/fields/mergeBaseFields.d.ts.map +1 -1
- package/dist/fields/mergeBaseFields.js +2 -2
- package/dist/fields/mergeBaseFields.js.map +1 -1
- package/dist/fields/setDefaultBeforeDuplicate.js.map +1 -1
- package/dist/fields/sortableFieldTypes.js.map +1 -1
- package/dist/fields/validations.d.ts +66 -62
- package/dist/fields/validations.d.ts.map +1 -1
- package/dist/fields/validations.js +108 -11
- package/dist/fields/validations.js.map +1 -1
- package/dist/fields/validations.spec.js +16 -15
- package/dist/fields/validations.spec.js.map +1 -1
- package/dist/globals/config/client.d.ts +30 -18
- package/dist/globals/config/client.d.ts.map +1 -1
- package/dist/globals/config/client.js +1 -46
- package/dist/globals/config/client.js.map +1 -1
- package/dist/globals/config/sanitize.d.ts +2 -3
- package/dist/globals/config/sanitize.d.ts.map +1 -1
- package/dist/globals/config/sanitize.js +48 -41
- package/dist/globals/config/sanitize.js.map +1 -1
- package/dist/globals/config/types.d.ts +15 -10
- package/dist/globals/config/types.d.ts.map +1 -1
- package/dist/globals/config/types.js.map +1 -1
- package/dist/globals/operations/docAccess.d.ts.map +1 -1
- package/dist/globals/operations/docAccess.js.map +1 -1
- package/dist/globals/operations/findOne.d.ts.map +1 -1
- package/dist/globals/operations/findOne.js +1 -7
- package/dist/globals/operations/findOne.js.map +1 -1
- package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/findVersionByID.js +4 -9
- package/dist/globals/operations/findVersionByID.js.map +1 -1
- package/dist/globals/operations/findVersions.d.ts +1 -0
- package/dist/globals/operations/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/findVersions.js +3 -5
- package/dist/globals/operations/findVersions.js.map +1 -1
- package/dist/globals/operations/local/findOne.d.ts +7 -6
- package/dist/globals/operations/local/findOne.d.ts.map +1 -1
- package/dist/globals/operations/local/findOne.js.map +1 -1
- package/dist/globals/operations/local/findVersionByID.d.ts +7 -6
- package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersionByID.js.map +1 -1
- package/dist/globals/operations/local/findVersions.d.ts +7 -6
- package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersions.js.map +1 -1
- package/dist/globals/operations/local/index.js.map +1 -1
- package/dist/globals/operations/local/restoreVersion.d.ts +7 -6
- package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/local/restoreVersion.js.map +1 -1
- package/dist/globals/operations/local/update.d.ts +7 -6
- package/dist/globals/operations/local/update.d.ts.map +1 -1
- package/dist/globals/operations/local/update.js.map +1 -1
- package/dist/globals/operations/restoreVersion.d.ts +1 -0
- package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/restoreVersion.js +16 -1
- package/dist/globals/operations/restoreVersion.js.map +1 -1
- package/dist/globals/operations/update.d.ts +5 -7
- package/dist/globals/operations/update.d.ts.map +1 -1
- package/dist/globals/operations/update.js +5 -2
- package/dist/globals/operations/update.js.map +1 -1
- package/dist/index.d.ts +227 -54
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +221 -23
- package/dist/index.js.map +1 -1
- package/dist/preferences/deleteUserPreferences.js.map +1 -1
- package/dist/preferences/operations/delete.js +2 -2
- package/dist/preferences/operations/delete.js.map +1 -1
- package/dist/preferences/operations/findOne.d.ts +2 -2
- package/dist/preferences/operations/findOne.d.ts.map +1 -1
- package/dist/preferences/operations/findOne.js.map +1 -1
- package/dist/preferences/operations/update.js +1 -1
- package/dist/preferences/operations/update.js.map +1 -1
- package/dist/preferences/preferencesCollection.js.map +1 -1
- package/dist/preferences/requestHandlers/delete.d.ts.map +1 -1
- package/dist/preferences/requestHandlers/delete.js +18 -5
- package/dist/preferences/requestHandlers/delete.js.map +1 -1
- package/dist/preferences/requestHandlers/findOne.d.ts.map +1 -1
- package/dist/preferences/requestHandlers/findOne.js +18 -5
- package/dist/preferences/requestHandlers/findOne.js.map +1 -1
- package/dist/preferences/requestHandlers/update.d.ts.map +1 -1
- package/dist/preferences/requestHandlers/update.js +19 -7
- package/dist/preferences/requestHandlers/update.js.map +1 -1
- package/dist/preferences/types.d.ts +2 -2
- package/dist/preferences/types.d.ts.map +1 -1
- package/dist/preferences/types.js.map +1 -1
- package/dist/translations/getLocalI18n.d.ts +1 -1
- package/dist/translations/getLocalI18n.d.ts.map +1 -1
- package/dist/translations/getLocalI18n.js +1 -1
- package/dist/translations/getLocalI18n.js.map +1 -1
- package/dist/types/constants.js.map +1 -1
- package/dist/types/index.d.ts +42 -33
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/uploads/canResizeImage.d.ts +1 -1
- package/dist/uploads/canResizeImage.d.ts.map +1 -1
- package/dist/uploads/canResizeImage.js +1 -1
- package/dist/uploads/canResizeImage.js.map +1 -1
- package/dist/uploads/cropImage.d.ts +22 -6
- package/dist/uploads/cropImage.d.ts.map +1 -1
- package/dist/uploads/cropImage.js +18 -5
- package/dist/uploads/cropImage.js.map +1 -1
- package/dist/uploads/deleteAssociatedFiles.d.ts.map +1 -1
- package/dist/uploads/deleteAssociatedFiles.js +0 -2
- package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
- package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
- package/dist/uploads/docWithFilenameExists.js.map +1 -1
- package/dist/uploads/fileExists.d.ts.map +1 -1
- package/dist/uploads/fileExists.js.map +1 -1
- package/dist/uploads/formatFilesize.js.map +1 -1
- package/dist/uploads/generateFileData.d.ts +3 -1
- package/dist/uploads/generateFileData.d.ts.map +1 -1
- package/dist/uploads/generateFileData.js +97 -36
- package/dist/uploads/generateFileData.js.map +1 -1
- package/dist/uploads/getBaseFields.d.ts.map +1 -1
- package/dist/uploads/getBaseFields.js +28 -6
- package/dist/uploads/getBaseFields.js.map +1 -1
- package/dist/uploads/getExternalFile.d.ts +4 -3
- package/dist/uploads/getExternalFile.d.ts.map +1 -1
- package/dist/uploads/getExternalFile.js +10 -6
- package/dist/uploads/getExternalFile.js.map +1 -1
- package/dist/uploads/getFileByPath.d.ts +2 -2
- package/dist/uploads/getFileByPath.d.ts.map +1 -1
- package/dist/uploads/getFileByPath.js +2 -3
- package/dist/uploads/getFileByPath.js.map +1 -1
- package/dist/uploads/getImageSize.d.ts +1 -1
- package/dist/uploads/getImageSize.d.ts.map +1 -1
- package/dist/uploads/getImageSize.js +19 -5
- package/dist/uploads/getImageSize.js.map +1 -1
- package/dist/uploads/getSafeFilename.d.ts +2 -2
- package/dist/uploads/getSafeFilename.d.ts.map +1 -1
- package/dist/uploads/getSafeFilename.js +1 -3
- package/dist/uploads/getSafeFilename.js.map +1 -1
- package/dist/uploads/imageResizer.d.ts +11 -11
- package/dist/uploads/imageResizer.d.ts.map +1 -1
- package/dist/uploads/imageResizer.js +190 -120
- package/dist/uploads/imageResizer.js.map +1 -1
- package/dist/uploads/isImage.d.ts +1 -1
- package/dist/uploads/isImage.d.ts.map +1 -1
- package/dist/uploads/isImage.js +1 -1
- package/dist/uploads/isImage.js.map +1 -1
- package/dist/uploads/mimeTypeValidator.js.map +1 -1
- package/dist/uploads/mimeTypeValidator.spec.js.map +1 -1
- package/dist/uploads/optionallyAppendMetadata.d.ts +12 -0
- package/dist/uploads/optionallyAppendMetadata.d.ts.map +1 -0
- package/dist/uploads/optionallyAppendMetadata.js +15 -0
- package/dist/uploads/optionallyAppendMetadata.js.map +1 -0
- package/dist/uploads/saveBufferToFile.d.ts +0 -1
- package/dist/uploads/saveBufferToFile.d.ts.map +1 -1
- package/dist/uploads/saveBufferToFile.js.map +1 -1
- package/dist/uploads/tempFile.d.ts +7 -0
- package/dist/uploads/tempFile.d.ts.map +1 -0
- package/dist/uploads/tempFile.js +39 -0
- package/dist/uploads/tempFile.js.map +1 -0
- package/dist/uploads/types.d.ts +141 -12
- package/dist/uploads/types.d.ts.map +1 -1
- package/dist/uploads/types.js.map +1 -1
- package/dist/uploads/unlinkTempFiles.js.map +1 -1
- package/dist/uploads/uploadFiles.d.ts.map +1 -1
- package/dist/uploads/uploadFiles.js.map +1 -1
- package/dist/utilities/checkDuplicateCollections.js +1 -1
- package/dist/utilities/checkDuplicateCollections.js.map +1 -1
- package/dist/utilities/commitTransaction.js.map +1 -1
- package/dist/utilities/configToJSONSchema.d.ts +1 -0
- package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
- package/dist/utilities/configToJSONSchema.js +242 -5
- package/dist/utilities/configToJSONSchema.js.map +1 -1
- package/dist/utilities/configToJSONSchema.spec.js +165 -11
- package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
- package/dist/utilities/createArrayFromCommaDelineated.js.map +1 -1
- package/dist/utilities/createLocalReq.d.ts.map +1 -1
- package/dist/utilities/createLocalReq.js +10 -6
- package/dist/utilities/createLocalReq.js.map +1 -1
- package/dist/utilities/deepCopyObject.d.ts +18 -1
- package/dist/utilities/deepCopyObject.d.ts.map +1 -1
- package/dist/utilities/deepCopyObject.js +147 -16
- package/dist/utilities/deepCopyObject.js.map +1 -1
- package/dist/utilities/deepMerge.d.ts +18 -1
- package/dist/utilities/deepMerge.d.ts.map +1 -1
- package/dist/utilities/deepMerge.js +38 -13
- package/dist/utilities/deepMerge.js.map +1 -1
- package/dist/utilities/dependencies/getDependencies.d.ts +9 -0
- package/dist/utilities/dependencies/getDependencies.d.ts.map +1 -0
- package/dist/utilities/dependencies/getDependencies.js +71 -0
- package/dist/utilities/dependencies/getDependencies.js.map +1 -0
- package/dist/utilities/dependencies/isError.d.ts +5 -0
- package/dist/utilities/dependencies/isError.d.ts.map +1 -0
- package/dist/utilities/dependencies/isError.js +19 -0
- package/dist/utilities/dependencies/isError.js.map +1 -0
- package/dist/utilities/dependencies/realPath.d.ts +3 -0
- package/dist/utilities/dependencies/realPath.d.ts.map +1 -0
- package/dist/utilities/dependencies/realPath.js +23 -0
- package/dist/utilities/dependencies/realPath.js.map +1 -0
- package/dist/utilities/dependencies/resolveFrom.d.ts +2 -0
- package/dist/utilities/dependencies/resolveFrom.d.ts.map +1 -0
- package/dist/utilities/dependencies/resolveFrom.js +58 -0
- package/dist/utilities/dependencies/resolveFrom.js.map +1 -0
- package/dist/utilities/fieldSchemaToJSON.d.ts +4 -4
- package/dist/utilities/fieldSchemaToJSON.d.ts.map +1 -1
- package/dist/utilities/fieldSchemaToJSON.js +0 -10
- package/dist/utilities/fieldSchemaToJSON.js.map +1 -1
- package/dist/utilities/flattenTopLevelFields.d.ts +4 -3
- package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
- package/dist/utilities/flattenTopLevelFields.js +12 -7
- package/dist/utilities/flattenTopLevelFields.js.map +1 -1
- package/dist/utilities/formatLabels.js.map +1 -1
- package/dist/utilities/formatLabels.spec.js.map +1 -1
- package/dist/utilities/getCollectionIDFieldTypes.js.map +1 -1
- package/dist/utilities/getDataByPath.d.ts +3 -0
- package/dist/utilities/getDataByPath.d.ts.map +1 -0
- package/dist/utilities/getDataByPath.js +18 -0
- package/dist/utilities/getDataByPath.js.map +1 -0
- package/dist/utilities/getEntityPolicies.d.ts.map +1 -1
- package/dist/utilities/getEntityPolicies.js +12 -6
- package/dist/utilities/getEntityPolicies.js.map +1 -1
- package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
- package/dist/utilities/getObjectDotNotation.js.map +1 -1
- package/dist/utilities/getSiblingData.d.ts +3 -0
- package/dist/utilities/getSiblingData.d.ts.map +1 -0
- package/dist/utilities/getSiblingData.js +33 -0
- package/dist/utilities/getSiblingData.js.map +1 -0
- package/dist/utilities/getUniqueListBy.d.ts +1 -1
- package/dist/utilities/getUniqueListBy.d.ts.map +1 -1
- package/dist/utilities/getUniqueListBy.js +1 -1
- package/dist/utilities/getUniqueListBy.js.map +1 -1
- package/dist/utilities/initTransaction.d.ts.map +1 -1
- package/dist/utilities/initTransaction.js +9 -9
- package/dist/utilities/initTransaction.js.map +1 -1
- package/dist/utilities/isEntityHidden.d.ts +3 -3
- package/dist/utilities/isEntityHidden.d.ts.map +1 -1
- package/dist/utilities/isEntityHidden.js.map +1 -1
- package/dist/utilities/isNumber.js.map +1 -1
- package/dist/utilities/isPlainObject.d.ts +1 -1
- package/dist/utilities/isPlainObject.d.ts.map +1 -1
- package/dist/utilities/isPlainObject.js +4 -18
- package/dist/utilities/isPlainObject.js.map +1 -1
- package/dist/utilities/isReactComponent.d.ts +2 -3
- package/dist/utilities/isReactComponent.d.ts.map +1 -1
- package/dist/utilities/isReactComponent.js +17 -11
- package/dist/utilities/isReactComponent.js.map +1 -1
- package/dist/utilities/isValidID.d.ts +1 -1
- package/dist/utilities/isValidID.js.map +1 -1
- package/dist/utilities/isolateObjectProperty.d.ts +1 -1
- package/dist/utilities/isolateObjectProperty.d.ts.map +1 -1
- package/dist/utilities/isolateObjectProperty.js +14 -5
- package/dist/utilities/isolateObjectProperty.js.map +1 -1
- package/dist/utilities/killTransaction.d.ts.map +1 -1
- package/dist/utilities/killTransaction.js +6 -2
- package/dist/utilities/killTransaction.js.map +1 -1
- package/dist/utilities/logger.d.ts +5 -7
- package/dist/utilities/logger.d.ts.map +1 -1
- package/dist/utilities/logger.js +4 -7
- package/dist/utilities/logger.js.map +1 -1
- package/dist/utilities/mapAsync.js.map +1 -1
- package/dist/utilities/mergeListSearchAndWhere.js.map +1 -1
- package/dist/utilities/parseCookies.d.ts +1 -1
- package/dist/utilities/parseCookies.d.ts.map +1 -1
- package/dist/utilities/parseCookies.js +1 -1
- package/dist/utilities/parseCookies.js.map +1 -1
- package/dist/utilities/reduceFieldsToValues.d.ts +10 -0
- package/dist/utilities/reduceFieldsToValues.d.ts.map +1 -0
- package/dist/utilities/reduceFieldsToValues.js +22 -0
- package/dist/utilities/reduceFieldsToValues.js.map +1 -0
- package/dist/utilities/sanitizeInternalFields.d.ts.map +1 -1
- package/dist/utilities/sanitizeInternalFields.js.map +1 -1
- package/dist/utilities/setsAreEqual.d.ts.map +1 -1
- package/dist/utilities/setsAreEqual.js.map +1 -1
- package/dist/utilities/telemetry/conf/envPaths.d.ts +23 -0
- package/dist/utilities/telemetry/conf/envPaths.d.ts.map +1 -0
- package/dist/utilities/telemetry/conf/envPaths.js +70 -0
- package/dist/utilities/telemetry/conf/envPaths.js.map +1 -0
- package/dist/utilities/telemetry/conf/index.d.ts +84 -0
- package/dist/utilities/telemetry/conf/index.d.ts.map +1 -0
- package/dist/utilities/telemetry/conf/index.js +144 -0
- package/dist/utilities/telemetry/conf/index.js.map +1 -0
- package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/adminInit.js.map +1 -1
- package/dist/utilities/telemetry/events/serverInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/serverInit.js.map +1 -1
- package/dist/utilities/telemetry/index.d.ts +9 -0
- package/dist/utilities/telemetry/index.d.ts.map +1 -1
- package/dist/utilities/telemetry/index.js +64 -17
- package/dist/utilities/telemetry/index.js.map +1 -1
- package/dist/utilities/telemetry/oneWayHash.d.ts +0 -1
- package/dist/utilities/telemetry/oneWayHash.d.ts.map +1 -1
- package/dist/utilities/telemetry/oneWayHash.js.map +1 -1
- package/dist/utilities/timestamp.js.map +1 -1
- package/dist/utilities/toKebabCase.js.map +1 -1
- package/dist/utilities/unflatten.d.ts +9 -0
- package/dist/utilities/unflatten.d.ts.map +1 -0
- package/dist/utilities/unflatten.js +64 -0
- package/dist/utilities/unflatten.js.map +1 -0
- package/dist/utilities/wait.js.map +1 -1
- package/dist/utilities/wordBoundariesRegex.js.map +1 -1
- package/dist/versions/baseFields.d.ts.map +1 -1
- package/dist/versions/baseFields.js +2 -1
- package/dist/versions/baseFields.js.map +1 -1
- package/dist/versions/buildCollectionFields.js.map +1 -1
- package/dist/versions/buildGlobalFields.js.map +1 -1
- package/dist/versions/defaults.d.ts +4 -0
- package/dist/versions/defaults.d.ts.map +1 -0
- package/dist/versions/defaults.js +5 -0
- package/dist/versions/defaults.js.map +1 -0
- package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
- package/dist/versions/deleteCollectionVersions.js.map +1 -1
- package/dist/versions/drafts/appendVersionToQueryKey.js.map +1 -1
- package/dist/versions/drafts/getQueryDraftsSort.js.map +1 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.js +2 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.js.map +1 -1
- package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
- package/dist/versions/enforceMaxVersions.js +3 -1
- package/dist/versions/enforceMaxVersions.js.map +1 -1
- package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
- package/dist/versions/getLatestCollectionVersion.js.map +1 -1
- package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
- package/dist/versions/getLatestGlobalVersion.js +0 -1
- package/dist/versions/getLatestGlobalVersion.js.map +1 -1
- package/dist/versions/saveVersion.d.ts.map +1 -1
- package/dist/versions/saveVersion.js +4 -3
- package/dist/versions/saveVersion.js.map +1 -1
- package/dist/versions/types.d.ts +2 -0
- package/dist/versions/types.d.ts.map +1 -1
- package/dist/versions/types.js.map +1 -1
- package/package.json +88 -121
- package/dist/admin/forms/FieldTypes.d.ts +0 -27
- package/dist/admin/forms/FieldTypes.d.ts.map +0 -1
- package/dist/admin/forms/FieldTypes.js +0 -3
- package/dist/admin/forms/FieldTypes.js.map +0 -1
- package/dist/bin/loader/clientExtensions.d.ts +0 -2
- package/dist/bin/loader/clientExtensions.d.ts.map +0 -1
- package/dist/bin/loader/clientExtensions.js +0 -13
- package/dist/bin/loader/clientExtensions.js.map +0 -1
- package/dist/bin/loader/compile.d.ts +0 -5
- package/dist/bin/loader/compile.d.ts.map +0 -1
- package/dist/bin/loader/compile.js +0 -27
- package/dist/bin/loader/compile.js.map +0 -1
- package/dist/bin/loader/index.d.ts +0 -34
- package/dist/bin/loader/index.d.ts.map +0 -1
- package/dist/bin/loader/index.js +0 -117
- package/dist/bin/loader/index.js.map +0 -1
- package/dist/bin/loader/read-default-tsconfig.d.ts +0 -4
- package/dist/bin/loader/read-default-tsconfig.d.ts.map +0 -1
- package/dist/bin/loader/read-default-tsconfig.js +0 -92
- package/dist/bin/loader/read-default-tsconfig.js.map +0 -1
- package/dist/collections/config/schema.d.ts +0 -4
- package/dist/collections/config/schema.d.ts.map +0 -1
- package/dist/collections/config/schema.js +0 -176
- package/dist/collections/config/schema.js.map +0 -1
- package/dist/config/schema.d.ts +0 -5
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js +0 -146
- package/dist/config/schema.js.map +0 -1
- package/dist/config/shared/adminViewSchema.d.ts +0 -3
- package/dist/config/shared/adminViewSchema.d.ts.map +0 -1
- package/dist/config/shared/adminViewSchema.js +0 -11
- package/dist/config/shared/adminViewSchema.js.map +0 -1
- package/dist/config/shared/componentSchema.d.ts +0 -16
- package/dist/config/shared/componentSchema.d.ts.map +0 -1
- package/dist/config/shared/componentSchema.js +0 -27
- package/dist/config/shared/componentSchema.js.map +0 -1
- package/dist/config/validate.d.ts +0 -4
- package/dist/config/validate.d.ts.map +0 -1
- package/dist/config/validate.js +0 -89
- package/dist/config/validate.js.map +0 -1
- package/dist/email/build.d.ts +0 -5
- package/dist/email/build.d.ts.map +0 -1
- package/dist/email/build.js +0 -63
- package/dist/email/build.js.map +0 -1
- package/dist/email/mockHandler.d.ts +0 -5
- package/dist/email/mockHandler.d.ts.map +0 -1
- package/dist/email/mockHandler.js +0 -24
- package/dist/email/mockHandler.js.map +0 -1
- package/dist/exports/auth.d.ts +0 -6
- package/dist/exports/auth.d.ts.map +0 -1
- package/dist/exports/auth.js +0 -6
- package/dist/exports/auth.js.map +0 -1
- package/dist/exports/config.d.ts +0 -14
- package/dist/exports/config.d.ts.map +0 -1
- package/dist/exports/config.js +0 -14
- package/dist/exports/config.js.map +0 -1
- package/dist/exports/database.d.ts +0 -23
- package/dist/exports/database.d.ts.map +0 -1
- package/dist/exports/database.js +0 -22
- package/dist/exports/database.js.map +0 -1
- package/dist/exports/errors.d.ts +0 -2
- package/dist/exports/errors.d.ts.map +0 -1
- package/dist/exports/errors.js +0 -3
- package/dist/exports/errors.js.map +0 -1
- package/dist/exports/fields/index.d.ts +0 -3
- package/dist/exports/fields/index.d.ts.map +0 -1
- package/dist/exports/fields/index.js +0 -4
- package/dist/exports/fields/index.js.map +0 -1
- package/dist/exports/fields/validations.d.ts +0 -2
- package/dist/exports/fields/validations.d.ts.map +0 -1
- package/dist/exports/fields/validations.js +0 -3
- package/dist/exports/fields/validations.js.map +0 -1
- package/dist/exports/operations.d.ts +0 -30
- package/dist/exports/operations.d.ts.map +0 -1
- package/dist/exports/operations.js +0 -31
- package/dist/exports/operations.js.map +0 -1
- package/dist/exports/types.d.ts +0 -17
- package/dist/exports/types.d.ts.map +0 -1
- package/dist/exports/types.js +0 -5
- package/dist/exports/types.js.map +0 -1
- package/dist/exports/uploads.d.ts +0 -2
- package/dist/exports/uploads.d.ts.map +0 -1
- package/dist/exports/uploads.js +0 -3
- package/dist/exports/uploads.js.map +0 -1
- package/dist/exports/utilities.d.ts +0 -31
- package/dist/exports/utilities.d.ts.map +0 -1
- package/dist/exports/utilities.js +0 -32
- package/dist/exports/utilities.js.map +0 -1
- package/dist/exports/versions.d.ts +0 -9
- package/dist/exports/versions.d.ts.map +0 -1
- package/dist/exports/versions.js +0 -9
- package/dist/exports/versions.js.map +0 -1
- package/dist/fields/config/schema.d.ts +0 -29
- package/dist/fields/config/schema.d.ts.map +0 -1
- package/dist/fields/config/schema.js +0 -477
- package/dist/fields/config/schema.js.map +0 -1
- package/dist/globals/config/schema.d.ts +0 -4
- package/dist/globals/config/schema.d.ts.map +0 -1
- package/dist/globals/config/schema.js +0 -69
- package/dist/globals/config/schema.js.map +0 -1
- package/dist/utilities/combineMerge.d.ts +0 -2
- package/dist/utilities/combineMerge.d.ts.map +0 -1
- package/dist/utilities/combineMerge.js +0 -16
- package/dist/utilities/combineMerge.js.map +0 -1
- package/dist/utilities/convertData.d.ts +0 -5
- package/dist/utilities/convertData.d.ts.map +0 -1
- package/dist/utilities/convertData.js +0 -16
- package/dist/utilities/convertData.js.map +0 -1
- package/dist/utilities/getCSSVariable.d.ts +0 -3
- package/dist/utilities/getCSSVariable.d.ts.map +0 -1
- package/dist/utilities/getCSSVariable.js +0 -3
- package/dist/utilities/getCSSVariable.js.map +0 -1
- package/dist/utilities/importWithoutClientFiles.d.ts +0 -7
- package/dist/utilities/importWithoutClientFiles.d.ts.map +0 -1
- package/dist/utilities/importWithoutClientFiles.js +0 -41
- package/dist/utilities/importWithoutClientFiles.js.map +0 -1
- package/dist/utilities/overwriteMerge.d.ts +0 -3
- package/dist/utilities/overwriteMerge.d.ts.map +0 -1
- package/dist/utilities/overwriteMerge.js +0 -4
- package/dist/utilities/overwriteMerge.js.map +0 -1
- package/src/index.ts +0 -499
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
3
|
+
import type { TextFieldClient } from '../../fields/config/types.js';
|
|
4
|
+
import type { TextFieldValidation } from '../../fields/validations.js';
|
|
5
|
+
import type { ErrorComponent } from '../forms/Error.js';
|
|
6
|
+
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
7
|
+
export type TextFieldProps = {
|
|
8
|
+
readonly field: MarkOptional<TextFieldClient, 'type'>;
|
|
9
|
+
readonly inputRef?: React.RefObject<HTMLInputElement>;
|
|
10
|
+
readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
11
|
+
readonly validate?: TextFieldValidation;
|
|
12
|
+
} & Omit<FormFieldBase, 'validate'>;
|
|
13
|
+
export type TextFieldLabelComponent = LabelComponent<'text'>;
|
|
14
|
+
export type TextFieldDescriptionComponent = DescriptionComponent<'text'>;
|
|
15
|
+
export type TextFieldErrorComponent = ErrorComponent<'text'>;
|
|
16
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Text.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextFieldClient } from '../../fields/config/types.js'\nimport type { TextFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type TextFieldProps = {\n readonly field: MarkOptional<TextFieldClient, 'type'>\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type TextFieldLabelComponent = LabelComponent<'text'>\n\nexport type TextFieldDescriptionComponent = DescriptionComponent<'text'>\n\nexport type TextFieldErrorComponent = ErrorComponent<'text'>\n"],"names":[],"mappings":"AAmBA,WAA4D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
3
|
+
import type { TextareaFieldClient } from '../../fields/config/types.js';
|
|
4
|
+
import type { TextareaFieldValidation } from '../../fields/validations.js';
|
|
5
|
+
import type { ErrorComponent } from '../forms/Error.js';
|
|
6
|
+
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
7
|
+
export type TextareaFieldProps = {
|
|
8
|
+
readonly field: MarkOptional<TextareaFieldClient, 'type'>;
|
|
9
|
+
readonly inputRef?: React.Ref<HTMLInputElement>;
|
|
10
|
+
readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
11
|
+
readonly validate?: TextareaFieldValidation;
|
|
12
|
+
} & Omit<FormFieldBase, 'validate'>;
|
|
13
|
+
export type TextareaFieldLabelComponent = LabelComponent<'textarea'>;
|
|
14
|
+
export type TextareaFieldDescriptionComponent = DescriptionComponent<'textarea'>;
|
|
15
|
+
export type TextareaFieldErrorComponent = ErrorComponent<'textarea'>;
|
|
16
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Textarea.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;CAC5C,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAEpE,MAAM,MAAM,iCAAiC,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;AAEhF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Textarea.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextareaFieldClient } from '../../fields/config/types.js'\nimport type { TextareaFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type TextareaFieldProps = {\n readonly field: MarkOptional<TextareaFieldClient, 'type'>\n readonly inputRef?: React.Ref<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextareaFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type TextareaFieldLabelComponent = LabelComponent<'textarea'>\n\nexport type TextareaFieldDescriptionComponent = DescriptionComponent<'textarea'>\n\nexport type TextareaFieldErrorComponent = ErrorComponent<'textarea'>\n"],"names":[],"mappings":"AAmBA,WAAoE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { UploadFieldClient } from '../../fields/config/types.js';
|
|
3
|
+
import type { UploadFieldValidation } from '../../fields/validations.js';
|
|
4
|
+
import type { ErrorComponent } from '../forms/Error.js';
|
|
5
|
+
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
6
|
+
export type UploadFieldProps = {
|
|
7
|
+
readonly field: MarkOptional<UploadFieldClient, 'type'>;
|
|
8
|
+
readonly validate?: UploadFieldValidation;
|
|
9
|
+
} & Omit<FormFieldBase, 'validate'>;
|
|
10
|
+
export type UploadFieldLabelComponent = LabelComponent<'upload'>;
|
|
11
|
+
export type UploadFieldDescriptionComponent = DescriptionComponent<'upload'>;
|
|
12
|
+
export type UploadFieldErrorComponent = ErrorComponent<'upload'>;
|
|
13
|
+
//# sourceMappingURL=Upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Upload.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Upload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;IACvD,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAA;CAC1C,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE5E,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Upload.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { UploadFieldClient } from '../../fields/config/types.js'\nimport type { UploadFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type UploadFieldProps = {\n readonly field: MarkOptional<UploadFieldClient, 'type'>\n readonly validate?: UploadFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type UploadFieldLabelComponent = LabelComponent<'upload'>\n\nexport type UploadFieldDescriptionComponent = DescriptionComponent<'upload'>\n\nexport type UploadFieldErrorComponent = ErrorComponent<'upload'>\n"],"names":[],"mappings":"AAgBA,WAAgE"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { CustomComponent, ServerProps } from '../../config/types.js';
|
|
2
|
+
import type { FieldTypes } from '../../fields/config/types.js';
|
|
3
|
+
import type { MappedComponent } from '../types.js';
|
|
4
|
+
export type GenericErrorProps = {
|
|
5
|
+
readonly CustomError?: MappedComponent;
|
|
6
|
+
readonly alignCaret?: 'center' | 'left' | 'right';
|
|
7
|
+
readonly message?: string;
|
|
8
|
+
readonly path?: string;
|
|
9
|
+
readonly showError?: boolean;
|
|
7
10
|
};
|
|
11
|
+
export type ErrorProps<T extends 'hidden' | FieldTypes = any> = {
|
|
12
|
+
type: T;
|
|
13
|
+
} & GenericErrorProps & Partial<ServerProps>;
|
|
14
|
+
export type ErrorComponent<T extends 'hidden' | FieldTypes = any> = CustomComponent<ErrorProps<T>>;
|
|
8
15
|
//# sourceMappingURL=Error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Error.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAA;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IACjD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,GAAG,UAAU,GAAG,GAAG,IAAI;IAC9D,IAAI,EAAE,CAAC,CAAA;CACR,GAAG,iBAAiB,GACnB,OAAO,CAAC,WAAW,CAAC,CAAA;AAEtB,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,QAAQ,GAAG,UAAU,GAAG,GAAG,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/forms/Error.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/forms/Error.ts"],"sourcesContent":["import type { CustomComponent, ServerProps } from '../../config/types.js'\nimport type { FieldTypes } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\n\nexport type GenericErrorProps = {\n readonly CustomError?: MappedComponent\n readonly alignCaret?: 'center' | 'left' | 'right'\n readonly message?: string\n readonly path?: string\n readonly showError?: boolean\n}\n\nexport type ErrorProps<T extends 'hidden' | FieldTypes = any> = {\n type: T\n} & GenericErrorProps &\n Partial<ServerProps>\n\nexport type ErrorComponent<T extends 'hidden' | FieldTypes = any> = CustomComponent<ErrorProps<T>>\n"],"names":[],"mappings":"AAiBA,WAAkG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { User } from '../../auth/types.js';
|
|
2
|
+
import type { Locale } from '../../config/types.js';
|
|
3
|
+
import type { Validate } from '../../fields/config/types.js';
|
|
4
|
+
import type { DocumentPreferences } from '../../preferences/types.js';
|
|
5
|
+
import type { ErrorProps } from './Error.js';
|
|
6
|
+
import type { FieldDescriptionProps } from './FieldDescription.js';
|
|
7
|
+
import type { LabelProps } from './Label.js';
|
|
8
|
+
export type FormFieldBase = {
|
|
9
|
+
readonly descriptionProps?: FieldDescriptionProps;
|
|
10
|
+
readonly docPreferences?: DocumentPreferences;
|
|
11
|
+
readonly errorProps?: ErrorProps;
|
|
12
|
+
/**
|
|
13
|
+
* forceRender is added by RenderField automatically
|
|
14
|
+
*/
|
|
15
|
+
readonly forceRender?: boolean;
|
|
16
|
+
readonly labelProps?: LabelProps;
|
|
17
|
+
readonly locale?: Locale;
|
|
18
|
+
/**
|
|
19
|
+
* forceRender is added by RenderField automatically. This should be used instead of field.admin.readOnly
|
|
20
|
+
*/
|
|
21
|
+
readonly readOnly?: boolean;
|
|
22
|
+
readonly user?: User;
|
|
23
|
+
readonly validate?: Validate;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAG5C,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,qBAAqB,CAAA;IACjD,QAAQ,CAAC,cAAc,CAAC,EAAE,mBAAmB,CAAA;IAC7C,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAA;IAChC;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAA;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAA;IACpB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAC7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/forms/Field.ts"],"sourcesContent":["import type { User } from '../../auth/types.js'\nimport type { Locale } from '../../config/types.js'\nimport type { Validate } from '../../fields/config/types.js'\nimport type { DocumentPreferences } from '../../preferences/types.js'\nimport type { ErrorProps } from './Error.js'\nimport type { FieldDescriptionProps } from './FieldDescription.js'\nimport type { LabelProps } from './Label.js'\n\n// TODO: Check if we still need this. Shouldnt most of it be present in the field type?\nexport type FormFieldBase = {\n readonly descriptionProps?: FieldDescriptionProps\n readonly docPreferences?: DocumentPreferences\n readonly errorProps?: ErrorProps\n /**\n * forceRender is added by RenderField automatically\n */\n readonly forceRender?: boolean\n readonly labelProps?: LabelProps\n readonly locale?: Locale\n /**\n * forceRender is added by RenderField automatically. This should be used instead of field.admin.readOnly\n */\n readonly readOnly?: boolean\n readonly user?: User\n readonly validate?: Validate\n}\n"],"names":[],"mappings":"AAQA,uFAAuF;AACvF,WAgBC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { CustomComponent, LabelFunction, ServerProps } from '../../config/types.js';
|
|
2
|
+
import type { FieldTypes } from '../../fields/config/types.js';
|
|
3
|
+
import type { MappedComponent } from '../types.js';
|
|
4
4
|
export type DescriptionFunction = LabelFunction;
|
|
5
|
-
export type DescriptionComponent = CustomComponent<FieldDescriptionProps
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
export type DescriptionComponent<T extends 'hidden' | FieldTypes = any> = CustomComponent<FieldDescriptionProps<T>>;
|
|
6
|
+
export type StaticDescription = Record<string, string> | string;
|
|
7
|
+
export type Description = DescriptionFunction | StaticDescription;
|
|
8
|
+
export type GenericDescriptionProps = {
|
|
9
|
+
readonly Description?: MappedComponent;
|
|
10
|
+
readonly className?: string;
|
|
11
|
+
readonly description?: StaticDescription;
|
|
12
|
+
readonly marginPlacement?: 'bottom' | 'top';
|
|
13
13
|
};
|
|
14
|
+
export type FieldDescriptionProps<T extends 'hidden' | FieldTypes = any> = {
|
|
15
|
+
type: T;
|
|
16
|
+
} & GenericDescriptionProps & Partial<ServerProps>;
|
|
14
17
|
//# sourceMappingURL=FieldDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldDescription.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/FieldDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"FieldDescription.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/FieldDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAA;AAE/C,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,QAAQ,GAAG,UAAU,GAAG,GAAG,IAAI,eAAe,CACvF,qBAAqB,CAAC,CAAC,CAAC,CACzB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;AAE/D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG,iBAAiB,CAAA;AACjE,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAA;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IACxC,QAAQ,CAAC,eAAe,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAA;CAC5C,CAAA;AACD,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,QAAQ,GAAG,UAAU,GAAG,GAAG,IAAI;IACzE,IAAI,EAAE,CAAC,CAAA;CACR,GAAG,uBAAuB,GACzB,OAAO,CAAC,WAAW,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/forms/FieldDescription.ts"],"sourcesContent":["import type
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/forms/FieldDescription.ts"],"sourcesContent":["import type { CustomComponent, LabelFunction, ServerProps } from '../../config/types.js'\nimport type { FieldTypes } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\n\nexport type DescriptionFunction = LabelFunction\n\nexport type DescriptionComponent<T extends 'hidden' | FieldTypes = any> = CustomComponent<\n FieldDescriptionProps<T>\n>\n\nexport type StaticDescription = Record<string, string> | string\n\nexport type Description = DescriptionFunction | StaticDescription\nexport type GenericDescriptionProps = {\n readonly Description?: MappedComponent\n readonly className?: string\n readonly description?: StaticDescription\n readonly marginPlacement?: 'bottom' | 'top'\n}\nexport type FieldDescriptionProps<T extends 'hidden' | FieldTypes = any> = {\n type: T\n} & GenericDescriptionProps &\n Partial<ServerProps>\n"],"names":[],"mappings":"AAmBA,WAGsB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Field, Validate } from '../../fields/config/types.js';
|
|
2
2
|
import type { Where } from '../../types/index.js';
|
|
3
3
|
export type Data = {
|
|
4
4
|
[key: string]: any;
|
|
@@ -21,7 +21,7 @@ export type FormField = {
|
|
|
21
21
|
passesCondition?: boolean;
|
|
22
22
|
rows?: Row[];
|
|
23
23
|
valid: boolean;
|
|
24
|
-
validate?:
|
|
24
|
+
validate?: Validate;
|
|
25
25
|
value: unknown;
|
|
26
26
|
};
|
|
27
27
|
export type FormState = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,MAAM,IAAI,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,GAAG,GAAG;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,WAAW,CAAC,EAAE,KAAK,CAAA;IACnB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,YAAY,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IACZ,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/forms/Form.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/forms/Form.ts"],"sourcesContent":["import type { Field, Validate } from '../../fields/config/types.js'\nimport type { Where } from '../../types/index.js'\n\nexport type Data = {\n [key: string]: any\n}\n\nexport type Row = {\n blockType?: string\n collapsed?: boolean\n id: string\n}\n\nexport type FilterOptionsResult = {\n [relation: string]: Where | boolean\n}\n\nexport type FormField = {\n disableFormData?: boolean\n errorMessage?: string\n errorPaths?: string[]\n fieldSchema?: Field\n filterOptions?: FilterOptionsResult\n initialValue: unknown\n passesCondition?: boolean\n rows?: Row[]\n valid: boolean\n validate?: Validate\n value: unknown\n}\n\nexport type FormState = {\n [path: string]: FormField\n}\n"],"names":[],"mappings":"AA+BA,WAEC"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { CustomComponent, ServerProps, StaticLabel } from '../../config/types.js';
|
|
2
|
+
import type { FieldTypes } from '../../fields/config/types.js';
|
|
3
|
+
import type { MappedComponent } from '../types.js';
|
|
4
|
+
export type GenericLabelProps = {
|
|
5
|
+
readonly Label?: MappedComponent;
|
|
6
|
+
readonly as?: 'label' | 'span';
|
|
7
|
+
readonly htmlFor?: string;
|
|
8
|
+
readonly label?: StaticLabel;
|
|
9
|
+
readonly required?: boolean;
|
|
10
|
+
readonly unstyled?: boolean;
|
|
9
11
|
};
|
|
12
|
+
export type LabelProps<T extends 'hidden' | FieldTypes = any> = {
|
|
13
|
+
type: T;
|
|
14
|
+
} & GenericLabelProps & Partial<ServerProps>;
|
|
15
|
+
export type SanitizedLabelProps<T extends 'hidden' | FieldTypes = any> = Omit<LabelProps<T>, 'label' | 'required'>;
|
|
16
|
+
export type LabelComponent<T extends 'hidden' | FieldTypes = any> = CustomComponent<LabelProps<T>>;
|
|
10
17
|
//# sourceMappingURL=Label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Label.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Label.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACtF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,eAAe,CAAA;IAChC,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,GAAG,UAAU,GAAG,GAAG,IAAI;IAC9D,IAAI,EAAE,CAAC,CAAA;CACR,GAAG,iBAAiB,GACnB,OAAO,CAAC,WAAW,CAAC,CAAA;AAEtB,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,QAAQ,GAAG,UAAU,GAAG,GAAG,IAAI,IAAI,CAC3E,UAAU,CAAC,CAAC,CAAC,EACb,OAAO,GAAG,UAAU,CACrB,CAAA;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,QAAQ,GAAG,UAAU,GAAG,GAAG,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/forms/Label.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/forms/Label.ts"],"sourcesContent":["import type { CustomComponent, ServerProps, StaticLabel } from '../../config/types.js'\nimport type { FieldTypes } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\n\nexport type GenericLabelProps = {\n readonly Label?: MappedComponent\n readonly as?: 'label' | 'span'\n readonly htmlFor?: string\n readonly label?: StaticLabel\n readonly required?: boolean\n readonly unstyled?: boolean\n}\n\nexport type LabelProps<T extends 'hidden' | FieldTypes = any> = {\n type: T\n} & GenericLabelProps &\n Partial<ServerProps>\n\nexport type SanitizedLabelProps<T extends 'hidden' | FieldTypes = any> = Omit<\n LabelProps<T>,\n 'label' | 'required'\n>\n\nexport type LabelComponent<T extends 'hidden' | FieldTypes = any> = CustomComponent<LabelProps<T>>\n"],"names":[],"mappings":"AAuBA,WAAkG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CustomComponent } from '../../config/types.js';
|
|
2
2
|
export type RowLabelComponent = CustomComponent;
|
|
3
|
-
export type RowLabel = Record<string, string> |
|
|
3
|
+
export type RowLabel = Record<string, string> | string;
|
|
4
4
|
//# sourceMappingURL=RowLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowLabel.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/RowLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAE/C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"RowLabel.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/RowLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAE/C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/forms/RowLabel.ts"],"sourcesContent":["import type { CustomComponent } from '../../config/types.js'\n\nexport type RowLabelComponent = CustomComponent\n\nexport type RowLabel = Record<string, string> |
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/forms/RowLabel.ts"],"sourcesContent":["import type { CustomComponent } from '../../config/types.js'\n\nexport type RowLabelComponent = CustomComponent\n\nexport type RowLabel = Record<string, string> | string\n"],"names":[],"mappings":"AAIA,WAAsD"}
|
package/dist/admin/types.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { PayloadComponent } from '../config/types.js';
|
|
3
|
+
import type { JsonObject } from '../types/index.js';
|
|
4
|
+
export type { LanguageOptions } from './LanguageOptions.js';
|
|
5
|
+
export type { RichTextAdapter, RichTextAdapterProvider, RichTextGenerateComponentMap, RichTextHooks, } from './RichText.js';
|
|
2
6
|
export type { CellComponentProps, DefaultCellComponentProps } from './elements/Cell.js';
|
|
3
7
|
export type { ConditionalDateProps } from './elements/DatePicker.js';
|
|
4
8
|
export type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js';
|
|
@@ -6,12 +10,56 @@ export type { CustomPreviewButton } from './elements/PreviewButton.js';
|
|
|
6
10
|
export type { CustomPublishButton } from './elements/PublishButton.js';
|
|
7
11
|
export type { CustomSaveButton } from './elements/SaveButton.js';
|
|
8
12
|
export type { CustomSaveDraftButton } from './elements/SaveDraftButton.js';
|
|
9
|
-
export type {
|
|
10
|
-
export type {
|
|
11
|
-
export type {
|
|
12
|
-
export type {
|
|
13
|
+
export type { DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabProps, } from './elements/Tab.js';
|
|
14
|
+
export type { CustomUpload } from './elements/Upload.js';
|
|
15
|
+
export type { WithServerSidePropsComponent, WithServerSidePropsComponentProps, } from './elements/WithServerSideProps.js';
|
|
16
|
+
export type { ArrayFieldDescriptionComponent, ArrayFieldErrorComponent, ArrayFieldLabelComponent, ArrayFieldProps, } from './fields/Array.js';
|
|
17
|
+
export type { BlockFieldDescriptionComponent, BlockFieldErrorComponent, BlockFieldLabelComponent, BlockFieldProps, } from './fields/Blocks.js';
|
|
18
|
+
export type { CheckboxFieldDescriptionComponent, CheckboxFieldErrorComponent, CheckboxFieldLabelComponent, CheckboxFieldProps, } from './fields/Checkbox.js';
|
|
19
|
+
export type { CodeFieldDescriptionComponent, CodeFieldErrorComponent, CodeFieldLabelComponent, CodeFieldProps, } from './fields/Code.js';
|
|
20
|
+
export type { CollapsibleFieldDescriptionComponent, CollapsibleFieldErrorComponent, CollapsibleFieldLabelComponent, CollapsibleFieldProps, } from './fields/Collapsible.js';
|
|
21
|
+
export type { DateFieldDescriptionComponent, DateFieldErrorComponent, DateFieldLabelComponent, DateFieldProps, } from './fields/Date.js';
|
|
22
|
+
export type { EmailFieldDescriptionComponent, EmailFieldErrorComponent, EmailFieldLabelComponent, EmailFieldProps, } from './fields/Email.js';
|
|
23
|
+
export type { GroupFieldDescriptionComponent, GroupFieldErrorComponent, GroupFieldLabelComponent, GroupFieldProps, } from './fields/Group.js';
|
|
24
|
+
export type { HiddenFieldDescriptionComponent, HiddenFieldErrorComponent, HiddenFieldLabelComponent, HiddenFieldProps, } from './fields/Hidden.js';
|
|
25
|
+
export type { JSONFieldDescriptionComponent, JSONFieldErrorComponent, JSONFieldLabelComponent, JSONFieldProps, } from './fields/JSON.js';
|
|
26
|
+
export type { NumberFieldDescriptionComponent, NumberFieldErrorComponent, NumberFieldLabelComponent, NumberFieldProps, } from './fields/Number.js';
|
|
27
|
+
export type { PointFieldDescriptionComponent, PointFieldErrorComponent, PointFieldLabelComponent, PointFieldProps, } from './fields/Point.js';
|
|
28
|
+
export type { RadioFieldDescriptionComponent, RadioFieldErrorComponent, RadioFieldLabelComponent, RadioFieldProps, } from './fields/Radio.js';
|
|
29
|
+
export type { RelationshipFieldDescriptionComponent, RelationshipFieldErrorComponent, RelationshipFieldLabelComponent, RelationshipFieldProps, } from './fields/Relationship.js';
|
|
30
|
+
export type { RichTextFieldDescriptionComponent, RichTextFieldErrorComponent, RichTextFieldLabelComponent, RichTextFieldProps, } from './fields/RichText.js';
|
|
31
|
+
export type { RowFieldDescriptionComponent, RowFieldErrorComponent, RowFieldLabelComponent, RowFieldProps, } from './fields/Row.js';
|
|
32
|
+
export type { SelectFieldDescriptionComponent, SelectFieldErrorComponent, SelectFieldLabelComponent, SelectFieldProps, } from './fields/Select.js';
|
|
33
|
+
export type { ClientTab, TabsFieldDescriptionComponent, TabsFieldErrorComponent, TabsFieldLabelComponent, TabsFieldProps, } from './fields/Tabs.js';
|
|
34
|
+
export type { TextFieldDescriptionComponent, TextFieldErrorComponent, TextFieldLabelComponent, TextFieldProps, } from './fields/Text.js';
|
|
35
|
+
export type { TextareaFieldDescriptionComponent, TextareaFieldErrorComponent, TextareaFieldLabelComponent, TextareaFieldProps, } from './fields/Textarea.js';
|
|
36
|
+
export type { UploadFieldDescriptionComponent, UploadFieldErrorComponent, UploadFieldLabelComponent, UploadFieldProps, } from './fields/Upload.js';
|
|
37
|
+
export type { ErrorComponent, ErrorProps, GenericErrorProps } from './forms/Error.js';
|
|
38
|
+
export type { FormFieldBase } from './forms/Field.js';
|
|
39
|
+
export type { Description, DescriptionComponent, DescriptionFunction, FieldDescriptionProps, GenericDescriptionProps, StaticDescription, } from './forms/FieldDescription.js';
|
|
13
40
|
export type { Data, FilterOptionsResult, FormField, FormState, Row } from './forms/Form.js';
|
|
14
|
-
export type { LabelProps } from './forms/Label.js';
|
|
41
|
+
export type { GenericLabelProps, LabelComponent, LabelProps, SanitizedLabelProps, } from './forms/Label.js';
|
|
15
42
|
export type { RowLabel, RowLabelComponent } from './forms/RowLabel.js';
|
|
16
43
|
export type { AdminViewComponent, AdminViewProps, EditViewProps, InitPageResult, ServerSideEditViewProps, VisibleEntities, } from './views/types.js';
|
|
44
|
+
export type MappedServerComponent<TComponentClientProps extends JsonObject = JsonObject> = {
|
|
45
|
+
Component: React.ComponentType<TComponentClientProps>;
|
|
46
|
+
RenderedComponent: React.ReactNode;
|
|
47
|
+
props?: Partial<any>;
|
|
48
|
+
type: 'server';
|
|
49
|
+
};
|
|
50
|
+
export type MappedClientComponent<TComponentClientProps extends JsonObject = JsonObject> = {
|
|
51
|
+
Component: React.ComponentType<TComponentClientProps>;
|
|
52
|
+
RenderedComponent?: React.ReactNode;
|
|
53
|
+
props?: Partial<TComponentClientProps>;
|
|
54
|
+
type: 'client';
|
|
55
|
+
};
|
|
56
|
+
export type MappedComponent<TComponentClientProps extends JsonObject = JsonObject> = MappedClientComponent<TComponentClientProps> | MappedServerComponent<TComponentClientProps> | undefined;
|
|
57
|
+
export type CreateMappedComponent = {
|
|
58
|
+
<T extends JsonObject>(component: {
|
|
59
|
+
Component: React.FC<T>;
|
|
60
|
+
} | PayloadComponent<T> | null, props: object, fallback: React.FC, identifier: string): MappedComponent<T>;
|
|
61
|
+
<T extends JsonObject>(components: ({
|
|
62
|
+
Component: React.FC<T>;
|
|
63
|
+
} | PayloadComponent<T>)[], props: object, fallback: React.FC, identifier: string): MappedComponent<T>[];
|
|
64
|
+
};
|
|
17
65
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/admin/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/admin/types.ts"],"names":[],"mappings":"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"}
|
package/dist/admin/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/admin/types.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../src/admin/types.ts"],"sourcesContent":["import type React from 'react'\n\nimport type { PayloadComponent } from '../config/types.js'\nimport type { JsonObject } from '../types/index.js'\n\nexport type { LanguageOptions } from './LanguageOptions.js'\nexport type {\n RichTextAdapter,\n RichTextAdapterProvider,\n RichTextGenerateComponentMap,\n RichTextHooks,\n} from './RichText.js'\nexport type { CellComponentProps, DefaultCellComponentProps } from './elements/Cell.js'\nexport type { ConditionalDateProps } from './elements/DatePicker.js'\nexport type { DayPickerProps, SharedProps, TimePickerProps } from './elements/DatePicker.js'\nexport type { CustomPreviewButton } from './elements/PreviewButton.js'\nexport type { CustomPublishButton } from './elements/PublishButton.js'\nexport type { CustomSaveButton } from './elements/SaveButton.js'\nexport type { CustomSaveDraftButton } from './elements/SaveDraftButton.js'\n\nexport type {\n DocumentTabComponent,\n DocumentTabCondition,\n DocumentTabConfig,\n DocumentTabProps,\n} from './elements/Tab.js'\n\nexport type { CustomUpload } from './elements/Upload.js'\n\nexport type {\n WithServerSidePropsComponent,\n WithServerSidePropsComponentProps,\n} from './elements/WithServerSideProps.js'\n\nexport type {\n ArrayFieldDescriptionComponent,\n ArrayFieldErrorComponent,\n ArrayFieldLabelComponent,\n ArrayFieldProps,\n} from './fields/Array.js'\n\nexport type {\n BlockFieldDescriptionComponent,\n BlockFieldErrorComponent,\n BlockFieldLabelComponent,\n BlockFieldProps,\n} from './fields/Blocks.js'\n\nexport type {\n CheckboxFieldDescriptionComponent,\n CheckboxFieldErrorComponent,\n CheckboxFieldLabelComponent,\n CheckboxFieldProps,\n} from './fields/Checkbox.js'\n\nexport type {\n CodeFieldDescriptionComponent,\n CodeFieldErrorComponent,\n CodeFieldLabelComponent,\n CodeFieldProps,\n} from './fields/Code.js'\n\nexport type {\n CollapsibleFieldDescriptionComponent,\n CollapsibleFieldErrorComponent,\n CollapsibleFieldLabelComponent,\n CollapsibleFieldProps,\n} from './fields/Collapsible.js'\n\nexport type {\n DateFieldDescriptionComponent,\n DateFieldErrorComponent,\n DateFieldLabelComponent,\n DateFieldProps,\n} from './fields/Date.js'\n\nexport type {\n EmailFieldDescriptionComponent,\n EmailFieldErrorComponent,\n EmailFieldLabelComponent,\n EmailFieldProps,\n} from './fields/Email.js'\n\nexport type {\n GroupFieldDescriptionComponent,\n GroupFieldErrorComponent,\n GroupFieldLabelComponent,\n GroupFieldProps,\n} from './fields/Group.js'\n\nexport type {\n HiddenFieldDescriptionComponent,\n HiddenFieldErrorComponent,\n HiddenFieldLabelComponent,\n HiddenFieldProps,\n} from './fields/Hidden.js'\n\nexport type {\n JSONFieldDescriptionComponent,\n JSONFieldErrorComponent,\n JSONFieldLabelComponent,\n JSONFieldProps,\n} from './fields/JSON.js'\n\nexport type {\n NumberFieldDescriptionComponent,\n NumberFieldErrorComponent,\n NumberFieldLabelComponent,\n NumberFieldProps,\n} from './fields/Number.js'\n\nexport type {\n PointFieldDescriptionComponent,\n PointFieldErrorComponent,\n PointFieldLabelComponent,\n PointFieldProps,\n} from './fields/Point.js'\n\nexport type {\n RadioFieldDescriptionComponent,\n RadioFieldErrorComponent,\n RadioFieldLabelComponent,\n RadioFieldProps,\n} from './fields/Radio.js'\n\nexport type {\n RelationshipFieldDescriptionComponent,\n RelationshipFieldErrorComponent,\n RelationshipFieldLabelComponent,\n RelationshipFieldProps,\n} from './fields/Relationship.js'\n\nexport type {\n RichTextFieldDescriptionComponent,\n RichTextFieldErrorComponent,\n RichTextFieldLabelComponent,\n RichTextFieldProps,\n} from './fields/RichText.js'\n\nexport type {\n RowFieldDescriptionComponent,\n RowFieldErrorComponent,\n RowFieldLabelComponent,\n RowFieldProps,\n} from './fields/Row.js'\n\nexport type {\n SelectFieldDescriptionComponent,\n SelectFieldErrorComponent,\n SelectFieldLabelComponent,\n SelectFieldProps,\n} from './fields/Select.js'\n\nexport type {\n ClientTab,\n TabsFieldDescriptionComponent,\n TabsFieldErrorComponent,\n TabsFieldLabelComponent,\n TabsFieldProps,\n} from './fields/Tabs.js'\n\nexport type {\n TextFieldDescriptionComponent,\n TextFieldErrorComponent,\n TextFieldLabelComponent,\n TextFieldProps,\n} from './fields/Text.js'\n\nexport type {\n TextareaFieldDescriptionComponent,\n TextareaFieldErrorComponent,\n TextareaFieldLabelComponent,\n TextareaFieldProps,\n} from './fields/Textarea.js'\n\nexport type {\n UploadFieldDescriptionComponent,\n UploadFieldErrorComponent,\n UploadFieldLabelComponent,\n UploadFieldProps,\n} from './fields/Upload.js'\n\nexport type { ErrorComponent, ErrorProps, GenericErrorProps } from './forms/Error.js'\n\nexport type { FormFieldBase } from './forms/Field.js'\n\nexport type {\n Description,\n DescriptionComponent,\n DescriptionFunction,\n FieldDescriptionProps,\n GenericDescriptionProps,\n StaticDescription,\n} from './forms/FieldDescription.js'\n\nexport type { Data, FilterOptionsResult, FormField, FormState, Row } from './forms/Form.js'\n\nexport type {\n GenericLabelProps,\n LabelComponent,\n LabelProps,\n SanitizedLabelProps,\n} from './forms/Label.js'\n\nexport type { RowLabel, RowLabelComponent } from './forms/RowLabel.js'\n\nexport type {\n AdminViewComponent,\n AdminViewProps,\n EditViewProps,\n InitPageResult,\n ServerSideEditViewProps,\n VisibleEntities,\n} from './views/types.js'\n\nexport type MappedServerComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component: React.ComponentType<TComponentClientProps>\n RenderedComponent: React.ReactNode\n props?: Partial<any>\n type: 'server'\n}\n\nexport type MappedClientComponent<TComponentClientProps extends JsonObject = JsonObject> = {\n Component: React.ComponentType<TComponentClientProps>\n RenderedComponent?: React.ReactNode\n props?: Partial<TComponentClientProps>\n type: 'client'\n}\n\nexport type MappedComponent<TComponentClientProps extends JsonObject = JsonObject> =\n | MappedClientComponent<TComponentClientProps>\n | MappedServerComponent<TComponentClientProps>\n | undefined\n\nexport type CreateMappedComponent = {\n <T extends JsonObject>(\n component: { Component: React.FC<T> } | PayloadComponent<T> | null,\n props: object,\n fallback: React.FC,\n identifier: string,\n ): MappedComponent<T>\n\n <T extends JsonObject>(\n components: ({ Component: React.FC<T> } | PayloadComponent<T>)[],\n props: object,\n fallback: React.FC,\n identifier: string,\n ): MappedComponent<T>[]\n}\n"],"names":[],"mappings":"AA0OA,WAcC"}
|
|
@@ -1,31 +1,40 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ClientTranslationsObject } from '@payloadcms/translations';
|
|
2
2
|
import type { Permissions } from '../../auth/index.js';
|
|
3
|
+
import type { ImportMap } from '../../bin/generateImportMap/index.js';
|
|
3
4
|
import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
|
|
4
|
-
import type {
|
|
5
|
+
import type { ClientConfig } from '../../config/client.js';
|
|
6
|
+
import type { Locale, PayloadComponent } from '../../config/types.js';
|
|
5
7
|
import type { SanitizedGlobalConfig } from '../../globals/config/types.js';
|
|
6
8
|
import type { PayloadRequest } from '../../types/index.js';
|
|
9
|
+
import type { LanguageOptions } from '../LanguageOptions.js';
|
|
10
|
+
import type { MappedComponent } from '../types.js';
|
|
7
11
|
export type AdminViewConfig = {
|
|
8
12
|
Component: AdminViewComponent;
|
|
9
13
|
/** Whether the path should be matched exactly or as a prefix */
|
|
10
14
|
exact?: boolean;
|
|
11
|
-
path
|
|
15
|
+
path?: string;
|
|
12
16
|
sensitive?: boolean;
|
|
13
17
|
strict?: boolean;
|
|
14
18
|
};
|
|
19
|
+
export type MappedView = {
|
|
20
|
+
Component: MappedComponent;
|
|
21
|
+
actions?: MappedComponent[];
|
|
22
|
+
};
|
|
15
23
|
export type AdminViewProps = {
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
readonly clientConfig: ClientConfig;
|
|
25
|
+
readonly importMap: ImportMap;
|
|
26
|
+
readonly initPageResult: InitPageResult;
|
|
27
|
+
readonly params?: {
|
|
18
28
|
[key: string]: string | string[] | undefined;
|
|
19
29
|
};
|
|
20
|
-
searchParams: {
|
|
30
|
+
readonly searchParams: {
|
|
21
31
|
[key: string]: string | string[] | undefined;
|
|
22
32
|
};
|
|
23
33
|
};
|
|
24
|
-
export type AdminViewComponent =
|
|
25
|
-
export type AdminView = AdminViewComponent | AdminViewConfig;
|
|
34
|
+
export type AdminViewComponent = PayloadComponent<AdminViewProps>;
|
|
26
35
|
export type EditViewProps = {
|
|
27
|
-
collectionSlug?: string;
|
|
28
|
-
globalSlug?: string;
|
|
36
|
+
readonly collectionSlug?: string;
|
|
37
|
+
readonly globalSlug?: string;
|
|
29
38
|
};
|
|
30
39
|
export type VisibleEntities = {
|
|
31
40
|
collections: SanitizedCollectionConfig['slug'][];
|
|
@@ -36,19 +45,20 @@ export type InitPageResult = {
|
|
|
36
45
|
cookies: Map<string, string>;
|
|
37
46
|
docID?: string;
|
|
38
47
|
globalConfig?: SanitizedGlobalConfig;
|
|
39
|
-
|
|
48
|
+
languageOptions: LanguageOptions;
|
|
49
|
+
locale?: Locale;
|
|
40
50
|
permissions: Permissions;
|
|
41
51
|
req: PayloadRequest;
|
|
42
|
-
translations:
|
|
52
|
+
translations: ClientTranslationsObject;
|
|
43
53
|
visibleEntities: VisibleEntities;
|
|
44
54
|
};
|
|
45
55
|
export type ServerSideEditViewProps = {
|
|
46
|
-
initPageResult: InitPageResult;
|
|
47
|
-
params: {
|
|
56
|
+
readonly initPageResult: InitPageResult;
|
|
57
|
+
readonly params: {
|
|
48
58
|
[key: string]: string | string[] | undefined;
|
|
49
59
|
};
|
|
50
|
-
routeSegments: string[];
|
|
51
|
-
searchParams: {
|
|
60
|
+
readonly routeSegments: string[];
|
|
61
|
+
readonly searchParams: {
|
|
52
62
|
[key: string]: string | string[] | undefined;
|
|
53
63
|
};
|
|
54
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/admin/views/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/admin/views/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/views/types.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/views/types.ts"],"sourcesContent":["import type { ClientTranslationsObject } from '@payloadcms/translations'\n\nimport type { Permissions } from '../../auth/index.js'\nimport type { ImportMap } from '../../bin/generateImportMap/index.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { ClientConfig } from '../../config/client.js'\nimport type { Locale, PayloadComponent } from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { PayloadRequest } from '../../types/index.js'\nimport type { LanguageOptions } from '../LanguageOptions.js'\nimport type { MappedComponent } from '../types.js'\n\nexport type AdminViewConfig = {\n Component: AdminViewComponent\n /** Whether the path should be matched exactly or as a prefix */\n exact?: boolean\n path?: string\n sensitive?: boolean\n strict?: boolean\n}\n\nexport type MappedView = {\n Component: MappedComponent\n actions?: MappedComponent[]\n}\n\nexport type AdminViewProps = {\n readonly clientConfig: ClientConfig\n readonly importMap: ImportMap\n readonly initPageResult: InitPageResult\n readonly params?: { [key: string]: string | string[] | undefined }\n readonly searchParams: { [key: string]: string | string[] | undefined }\n}\n\nexport type AdminViewComponent = PayloadComponent<AdminViewProps>\n\nexport type EditViewProps = {\n readonly collectionSlug?: string\n readonly globalSlug?: string\n}\n\nexport type VisibleEntities = {\n collections: SanitizedCollectionConfig['slug'][]\n globals: SanitizedGlobalConfig['slug'][]\n}\n\nexport type InitPageResult = {\n collectionConfig?: SanitizedCollectionConfig\n cookies: Map<string, string>\n docID?: string\n globalConfig?: SanitizedGlobalConfig\n languageOptions: LanguageOptions\n locale?: Locale\n permissions: Permissions\n req: PayloadRequest\n translations: ClientTranslationsObject\n visibleEntities: VisibleEntities\n}\n\nexport type ServerSideEditViewProps = {\n readonly initPageResult: InitPageResult\n readonly params: { [key: string]: string | string[] | undefined }\n readonly routeSegments: string[]\n readonly searchParams: { [key: string]: string | string[] | undefined }\n}\n"],"names":[],"mappings":"AA2DA,WAKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/assets/assets.d.ts"],"names":[],"
|
|
1
|
+
{"version":3,"sources":["../../src/assets/assets.d.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountLock.d.ts","sourceRoot":"","sources":["../../../src/auth/baseFields/accountLock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA
|
|
1
|
+
{"version":3,"file":"accountLock.d.ts","sourceRoot":"","sources":["../../../src/auth/baseFields/accountLock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAEzD,eAAO,MAAM,iBAAiB,EAAE,KAAK,EAYzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/auth/baseFields/accountLock.ts"],"sourcesContent":["import type { Field } from '../../fields/config/types.js'\n\nexport
|
|
1
|
+
{"version":3,"sources":["../../../src/auth/baseFields/accountLock.ts"],"sourcesContent":["import type { Field } from '../../fields/config/types.js'\n\nexport const accountLockFields: Field[] = [\n {\n name: 'loginAttempts',\n type: 'number',\n defaultValue: 0,\n hidden: true,\n },\n {\n name: 'lockUntil',\n type: 'date',\n hidden: true,\n },\n] as Field[]\n"],"names":["accountLockFields","name","type","defaultValue","hidden"],"mappings":"AAEA,OAAO,MAAMA,oBAA6B;IACxC;QACEC,MAAM;QACNC,MAAM;QACNC,cAAc;QACdC,QAAQ;IACV;IACA;QACEH,MAAM;QACNC,MAAM;QACNE,QAAQ;IACV;CACD,CAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../src/auth/baseFields/apiKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,8BAA8B,CAAA
|
|
1
|
+
{"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../src/auth/baseFields/apiKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,8BAA8B,CAAA;AAOpE,eAAO,MAAM,YAAY,EAoDpB,KAAK,EAAE,CAAA"}
|