payload 3.0.0-canary.b8dd0db → 3.0.0-canary.bb00d64
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/dist/admin/RichText.d.ts +17 -26
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/elements/Cell.d.ts +7 -9
- package/dist/admin/elements/Cell.d.ts.map +1 -1
- package/dist/admin/elements/Cell.js.map +1 -1
- package/dist/admin/elements/Tab.d.ts +1 -1
- package/dist/admin/elements/Tab.d.ts.map +1 -1
- package/dist/admin/elements/Tab.js.map +1 -1
- package/dist/admin/fields/Array.d.ts +12 -7
- package/dist/admin/fields/Array.d.ts.map +1 -1
- package/dist/admin/fields/Array.js.map +1 -1
- package/dist/admin/fields/Blocks.d.ts +19 -13
- package/dist/admin/fields/Blocks.d.ts.map +1 -1
- package/dist/admin/fields/Blocks.js.map +1 -1
- package/dist/admin/fields/Checkbox.d.ts +12 -6
- package/dist/admin/fields/Checkbox.d.ts.map +1 -1
- package/dist/admin/fields/Checkbox.js.map +1 -1
- package/dist/admin/fields/Code.d.ts +12 -6
- package/dist/admin/fields/Code.d.ts.map +1 -1
- package/dist/admin/fields/Code.js.map +1 -1
- package/dist/admin/fields/Collapsible.d.ts +12 -5
- package/dist/admin/fields/Collapsible.d.ts.map +1 -1
- package/dist/admin/fields/Collapsible.js.map +1 -1
- package/dist/admin/fields/Date.d.ts +12 -6
- package/dist/admin/fields/Date.d.ts.map +1 -1
- package/dist/admin/fields/Date.js.map +1 -1
- package/dist/admin/fields/Email.d.ts +12 -7
- package/dist/admin/fields/Email.d.ts.map +1 -1
- package/dist/admin/fields/Email.js.map +1 -1
- package/dist/admin/fields/Group.d.ts +12 -5
- package/dist/admin/fields/Group.d.ts.map +1 -1
- package/dist/admin/fields/Group.js.map +1 -1
- package/dist/admin/fields/Hidden.d.ts +7 -6
- package/dist/admin/fields/Hidden.d.ts.map +1 -1
- package/dist/admin/fields/Hidden.js.map +1 -1
- package/dist/admin/fields/JSON.d.ts +12 -6
- package/dist/admin/fields/JSON.d.ts.map +1 -1
- package/dist/admin/fields/JSON.js.map +1 -1
- package/dist/admin/fields/Join.d.ts +20 -0
- package/dist/admin/fields/Join.d.ts.map +1 -0
- package/dist/admin/fields/Join.js +3 -0
- package/dist/admin/fields/Join.js.map +1 -0
- package/dist/admin/fields/Number.d.ts +12 -6
- package/dist/admin/fields/Number.d.ts.map +1 -1
- package/dist/admin/fields/Number.js.map +1 -1
- package/dist/admin/fields/Point.d.ts +12 -6
- package/dist/admin/fields/Point.d.ts.map +1 -1
- package/dist/admin/fields/Point.js.map +1 -1
- package/dist/admin/fields/Radio.d.ts +16 -6
- package/dist/admin/fields/Radio.d.ts.map +1 -1
- package/dist/admin/fields/Radio.js.map +1 -1
- package/dist/admin/fields/Relationship.d.ts +12 -6
- package/dist/admin/fields/Relationship.d.ts.map +1 -1
- package/dist/admin/fields/Relationship.js.map +1 -1
- package/dist/admin/fields/RichText.d.ts +13 -7
- package/dist/admin/fields/RichText.d.ts.map +1 -1
- package/dist/admin/fields/RichText.js.map +1 -1
- package/dist/admin/fields/Row.d.ts +11 -7
- package/dist/admin/fields/Row.d.ts.map +1 -1
- package/dist/admin/fields/Row.js.map +1 -1
- package/dist/admin/fields/Select.d.ts +12 -6
- package/dist/admin/fields/Select.d.ts.map +1 -1
- package/dist/admin/fields/Select.js.map +1 -1
- package/dist/admin/fields/Tabs.d.ts +15 -8
- package/dist/admin/fields/Tabs.d.ts.map +1 -1
- package/dist/admin/fields/Tabs.js.map +1 -1
- package/dist/admin/fields/Text.d.ts +12 -6
- package/dist/admin/fields/Text.d.ts.map +1 -1
- package/dist/admin/fields/Text.js.map +1 -1
- package/dist/admin/fields/Textarea.d.ts +12 -6
- package/dist/admin/fields/Textarea.d.ts.map +1 -1
- package/dist/admin/fields/Textarea.js.map +1 -1
- package/dist/admin/fields/UI.d.ts +8 -0
- package/dist/admin/fields/UI.d.ts.map +1 -0
- package/dist/admin/fields/UI.js +3 -0
- package/dist/admin/fields/UI.js.map +1 -0
- package/dist/admin/fields/Upload.d.ts +12 -6
- package/dist/admin/fields/Upload.d.ts.map +1 -1
- package/dist/admin/fields/Upload.js.map +1 -1
- package/dist/admin/forms/Description.d.ts +7 -9
- package/dist/admin/forms/Description.d.ts.map +1 -1
- package/dist/admin/forms/Description.js.map +1 -1
- package/dist/admin/forms/Error.d.ts +6 -9
- 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 +56 -20
- package/dist/admin/forms/Field.d.ts.map +1 -1
- package/dist/admin/forms/Field.js.map +1 -1
- package/dist/admin/forms/Form.d.ts +47 -4
- 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 +12 -12
- package/dist/admin/forms/Label.d.ts.map +1 -1
- package/dist/admin/forms/Label.js.map +1 -1
- package/dist/admin/functions/index.d.ts +44 -0
- package/dist/admin/functions/index.d.ts.map +1 -0
- package/dist/admin/functions/index.js +3 -0
- package/dist/admin/functions/index.js.map +1 -0
- package/dist/admin/types.d.ts +89 -45
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js +4 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/admin/views/types.d.ts +11 -7
- package/dist/admin/views/types.d.ts.map +1 -1
- package/dist/admin/views/types.js.map +1 -1
- package/dist/assets/images/github-banner-nextjs-native.jpg +0 -0
- package/dist/auth/cookies.d.ts +4 -5
- package/dist/auth/cookies.d.ts.map +1 -1
- package/dist/auth/cookies.js +11 -11
- package/dist/auth/cookies.js.map +1 -1
- package/dist/auth/ensureUsernameOrEmail.js +4 -4
- package/dist/auth/ensureUsernameOrEmail.js.map +1 -1
- package/dist/auth/executeAccess.d.ts.map +1 -1
- package/dist/auth/executeAccess.js +6 -2
- package/dist/auth/executeAccess.js.map +1 -1
- package/dist/auth/getAuthFields.d.ts.map +1 -1
- package/dist/auth/getAuthFields.js +3 -1
- package/dist/auth/getAuthFields.js.map +1 -1
- package/dist/auth/isLocked.d.ts.map +1 -1
- package/dist/auth/isLocked.js +3 -1
- package/dist/auth/isLocked.js.map +1 -1
- package/dist/auth/jwt.d.ts +9 -0
- package/dist/auth/jwt.d.ts.map +1 -0
- package/dist/auth/jwt.js +16 -0
- package/dist/auth/jwt.js.map +1 -0
- package/dist/auth/operations/auth.d.ts +1 -1
- package/dist/auth/operations/auth.d.ts.map +1 -1
- package/dist/auth/operations/auth.js +0 -4
- package/dist/auth/operations/auth.js.map +1 -1
- package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
- package/dist/auth/operations/forgotPassword.js +7 -3
- package/dist/auth/operations/forgotPassword.js.map +1 -1
- package/dist/auth/operations/local/auth.d.ts.map +1 -1
- package/dist/auth/operations/local/auth.js +2 -2
- package/dist/auth/operations/local/auth.js.map +1 -1
- package/dist/auth/operations/login.d.ts.map +1 -1
- package/dist/auth/operations/login.js +18 -20
- 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 +6 -2
- package/dist/auth/operations/logout.js.map +1 -1
- package/dist/auth/operations/me.d.ts.map +1 -1
- package/dist/auth/operations/me.js +11 -5
- package/dist/auth/operations/me.js.map +1 -1
- package/dist/auth/operations/refresh.d.ts.map +1 -1
- package/dist/auth/operations/refresh.js +14 -6
- package/dist/auth/operations/refresh.js.map +1 -1
- package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
- package/dist/auth/operations/registerFirstUser.js +6 -2
- package/dist/auth/operations/registerFirstUser.js.map +1 -1
- package/dist/auth/operations/resetPassword.d.ts.map +1 -1
- package/dist/auth/operations/resetPassword.js +28 -6
- package/dist/auth/operations/resetPassword.js.map +1 -1
- package/dist/auth/operations/unlock.d.ts.map +1 -1
- package/dist/auth/operations/unlock.js +3 -1
- 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 +6 -3
- package/dist/auth/operations/verifyEmail.js.map +1 -1
- package/dist/auth/strategies/jwt.js +3 -2
- package/dist/auth/strategies/jwt.js.map +1 -1
- package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
- package/dist/auth/strategies/local/authenticate.js +3 -1
- package/dist/auth/strategies/local/authenticate.js.map +1 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.js +2 -2
- package/dist/auth/strategies/local/generatePasswordSaltHash.js.map +1 -1
- package/dist/auth/strategies/local/register.d.ts +3 -2
- package/dist/auth/strategies/local/register.d.ts.map +1 -1
- package/dist/auth/strategies/local/register.js +10 -7
- package/dist/auth/strategies/local/register.js.map +1 -1
- package/dist/auth/strategies/local/resetLoginAttempts.d.ts.map +1 -1
- package/dist/auth/strategies/local/resetLoginAttempts.js +3 -1
- package/dist/auth/strategies/local/resetLoginAttempts.js.map +1 -1
- package/dist/auth/types.d.ts +58 -8
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/types.js.map +1 -1
- package/dist/bin/generateImportMap/index.d.ts.map +1 -1
- package/dist/bin/generateImportMap/index.js +34 -6
- package/dist/bin/generateImportMap/index.js.map +1 -1
- package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateConfig.js +4 -1
- package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
- package/dist/bin/generateImportMap/iterateFields.js.map +1 -1
- package/dist/bin/generateImportMap/parsePayloadComponent.d.ts +1 -1
- package/dist/bin/generateImportMap/parsePayloadComponent.js +5 -5
- package/dist/bin/generateImportMap/parsePayloadComponent.js.map +1 -1
- package/dist/bin/generateTypes.d.ts.map +1 -1
- package/dist/bin/generateTypes.js +11 -3
- package/dist/bin/generateTypes.js.map +1 -1
- package/dist/bin/index.d.ts +1 -1
- package/dist/bin/index.d.ts.map +1 -1
- package/dist/bin/index.js +33 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bin/info.d.ts +2 -0
- package/dist/bin/info.d.ts.map +1 -0
- package/dist/bin/info.js +56 -0
- package/dist/bin/info.js.map +1 -0
- package/dist/bin/loadEnv.d.ts.map +1 -1
- package/dist/bin/loadEnv.js +9 -6
- package/dist/bin/loadEnv.js.map +1 -1
- package/dist/checkPayloadDependencies.d.ts +2 -0
- package/dist/checkPayloadDependencies.d.ts.map +1 -0
- package/dist/checkPayloadDependencies.js +22 -0
- package/dist/checkPayloadDependencies.js.map +1 -0
- package/dist/collections/config/client.d.ts +25 -36
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/client.js +104 -1
- package/dist/collections/config/client.js.map +1 -1
- package/dist/collections/config/reservedFieldNames.spec.js +4 -4
- package/dist/collections/config/reservedFieldNames.spec.js.map +1 -1
- package/dist/collections/config/sanitize.d.ts.map +1 -1
- package/dist/collections/config/sanitize.js +30 -10
- package/dist/collections/config/sanitize.js.map +1 -1
- package/dist/collections/config/types.d.ts +49 -24
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/collections/config/useAsTitle.d.ts +6 -0
- package/dist/collections/config/useAsTitle.d.ts.map +1 -0
- package/dist/collections/config/useAsTitle.js +36 -0
- package/dist/collections/config/useAsTitle.js.map +1 -0
- package/dist/collections/config/useAsTitle.spec.js +186 -0
- package/dist/collections/config/useAsTitle.spec.js.map +1 -0
- package/dist/collections/dataloader.d.ts +4 -3
- package/dist/collections/dataloader.d.ts.map +1 -1
- package/dist/collections/dataloader.js +14 -8
- package/dist/collections/dataloader.js.map +1 -1
- package/dist/collections/operations/countVersions.d.ts +14 -0
- package/dist/collections/operations/countVersions.d.ts.map +1 -0
- package/dist/collections/operations/countVersions.js +74 -0
- package/dist/collections/operations/countVersions.js.map +1 -0
- package/dist/collections/operations/create.d.ts +6 -3
- package/dist/collections/operations/create.d.ts.map +1 -1
- package/dist/collections/operations/create.js +11 -14
- package/dist/collections/operations/create.js.map +1 -1
- package/dist/collections/operations/delete.d.ts +7 -9
- package/dist/collections/operations/delete.d.ts.map +1 -1
- package/dist/collections/operations/delete.js +19 -3
- package/dist/collections/operations/delete.js.map +1 -1
- package/dist/collections/operations/deleteByID.d.ts +7 -3
- package/dist/collections/operations/deleteByID.d.ts.map +1 -1
- package/dist/collections/operations/deleteByID.js +25 -5
- package/dist/collections/operations/deleteByID.js.map +1 -1
- package/dist/collections/operations/duplicate.d.ts +6 -3
- package/dist/collections/operations/duplicate.d.ts.map +1 -1
- package/dist/collections/operations/duplicate.js +48 -14
- package/dist/collections/operations/duplicate.js.map +1 -1
- package/dist/collections/operations/find.d.ts +9 -5
- package/dist/collections/operations/find.d.ts.map +1 -1
- package/dist/collections/operations/find.js +80 -3
- package/dist/collections/operations/find.js.map +1 -1
- package/dist/collections/operations/findByID.d.ts +8 -4
- package/dist/collections/operations/findByID.d.ts.map +1 -1
- package/dist/collections/operations/findByID.js +81 -9
- package/dist/collections/operations/findByID.js.map +1 -1
- package/dist/collections/operations/findVersionByID.d.ts +3 -1
- package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/findVersionByID.js +13 -4
- package/dist/collections/operations/findVersionByID.js.map +1 -1
- package/dist/collections/operations/findVersions.d.ts +4 -2
- package/dist/collections/operations/findVersions.d.ts.map +1 -1
- package/dist/collections/operations/findVersions.js +5 -2
- package/dist/collections/operations/findVersions.js.map +1 -1
- package/dist/collections/operations/local/count.d.ts +2 -2
- package/dist/collections/operations/local/count.d.ts.map +1 -1
- package/dist/collections/operations/local/count.js +1 -0
- package/dist/collections/operations/local/count.js.map +1 -1
- package/dist/collections/operations/local/countVersions.d.ts +20 -0
- package/dist/collections/operations/local/countVersions.d.ts.map +1 -0
- package/dist/collections/operations/local/countVersions.js +20 -0
- package/dist/collections/operations/local/countVersions.js.map +1 -0
- package/dist/collections/operations/local/create.d.ts +8 -5
- package/dist/collections/operations/local/create.d.ts.map +1 -1
- package/dist/collections/operations/local/create.js +4 -1
- package/dist/collections/operations/local/create.js.map +1 -1
- package/dist/collections/operations/local/delete.d.ts +16 -12
- package/dist/collections/operations/local/delete.d.ts.map +1 -1
- package/dist/collections/operations/local/delete.js +5 -1
- package/dist/collections/operations/local/delete.js.map +1 -1
- package/dist/collections/operations/local/duplicate.d.ts +8 -5
- package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
- package/dist/collections/operations/local/duplicate.js +5 -2
- package/dist/collections/operations/local/duplicate.js.map +1 -1
- package/dist/collections/operations/local/find.d.ts +10 -6
- package/dist/collections/operations/local/find.d.ts.map +1 -1
- package/dist/collections/operations/local/find.js +5 -1
- package/dist/collections/operations/local/find.js.map +1 -1
- package/dist/collections/operations/local/findByID.d.ts +10 -6
- package/dist/collections/operations/local/findByID.d.ts.map +1 -1
- package/dist/collections/operations/local/findByID.js +6 -2
- package/dist/collections/operations/local/findByID.js.map +1 -1
- package/dist/collections/operations/local/findVersionByID.d.ts +4 -2
- package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/local/findVersionByID.js +3 -1
- package/dist/collections/operations/local/findVersionByID.js.map +1 -1
- package/dist/collections/operations/local/findVersions.d.ts +5 -3
- package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
- package/dist/collections/operations/local/findVersions.js +3 -1
- package/dist/collections/operations/local/findVersions.js.map +1 -1
- package/dist/collections/operations/local/index.d.ts +2 -0
- package/dist/collections/operations/local/index.d.ts.map +1 -1
- package/dist/collections/operations/local/index.js +3 -1
- package/dist/collections/operations/local/index.js.map +1 -1
- package/dist/collections/operations/local/restoreVersion.d.ts +4 -2
- package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/local/restoreVersion.js +3 -1
- package/dist/collections/operations/local/restoreVersion.js.map +1 -1
- package/dist/collections/operations/local/update.d.ts +19 -12
- package/dist/collections/operations/local/update.d.ts.map +1 -1
- package/dist/collections/operations/local/update.js +7 -1
- package/dist/collections/operations/local/update.js.map +1 -1
- package/dist/collections/operations/restoreVersion.d.ts +3 -1
- package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/restoreVersion.js +11 -4
- package/dist/collections/operations/restoreVersion.js.map +1 -1
- package/dist/collections/operations/update.d.ts +8 -3
- package/dist/collections/operations/update.d.ts.map +1 -1
- package/dist/collections/operations/update.js +26 -11
- package/dist/collections/operations/update.js.map +1 -1
- package/dist/collections/operations/updateByID.d.ts +8 -3
- package/dist/collections/operations/updateByID.d.ts.map +1 -1
- package/dist/collections/operations/updateByID.js +61 -14
- package/dist/collections/operations/updateByID.js.map +1 -1
- package/dist/collections/operations/utils.d.ts +15 -9
- package/dist/collections/operations/utils.d.ts.map +1 -1
- package/dist/collections/operations/utils.js.map +1 -1
- package/dist/config/client.d.ts +12 -14
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js +39 -1
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +10 -1
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/find.d.ts +4 -0
- package/dist/config/find.d.ts.map +1 -1
- package/dist/config/find.js +27 -28
- package/dist/config/find.js.map +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/sanitize.js +33 -5
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +228 -53
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/database/combineQueries.d.ts +1 -1
- package/dist/database/combineQueries.d.ts.map +1 -1
- package/dist/database/combineQueries.js +9 -3
- package/dist/database/combineQueries.js.map +1 -1
- package/dist/database/defaultBeginTransaction.d.ts +6 -0
- package/dist/database/defaultBeginTransaction.d.ts.map +1 -0
- package/dist/database/defaultBeginTransaction.js +8 -0
- package/dist/database/defaultBeginTransaction.js.map +1 -0
- package/dist/database/getLocalizedPaths.d.ts.map +1 -1
- package/dist/database/getLocalizedPaths.js +3 -1
- package/dist/database/getLocalizedPaths.js.map +1 -1
- package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
- package/dist/database/migrations/migrateRefresh.js +47 -47
- package/dist/database/migrations/migrateRefresh.js.map +1 -1
- package/dist/database/migrations/migrateReset.js +1 -1
- package/dist/database/migrations/migrateReset.js.map +1 -1
- package/dist/database/migrations/migrationsCollection.d.ts.map +1 -1
- package/dist/database/migrations/migrationsCollection.js +2 -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 +3 -1
- package/dist/database/migrations/readMigrationFiles.js.map +1 -1
- package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
- package/dist/database/queryValidation/validateSearchParams.js +13 -1
- package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
- package/dist/database/sanitizeJoinQuery.d.ts +22 -0
- package/dist/database/sanitizeJoinQuery.d.ts.map +1 -0
- package/dist/database/sanitizeJoinQuery.js +61 -0
- package/dist/database/sanitizeJoinQuery.js.map +1 -0
- package/dist/database/types.d.ts +64 -11
- package/dist/database/types.d.ts.map +1 -1
- package/dist/database/types.js.map +1 -1
- package/dist/errors/InvalidFieldJoin.d.ts +6 -0
- package/dist/errors/InvalidFieldJoin.d.ts.map +1 -0
- package/dist/errors/InvalidFieldJoin.js +8 -0
- package/dist/errors/InvalidFieldJoin.js.map +1 -0
- package/dist/errors/Locked.d.ts +5 -0
- package/dist/errors/Locked.d.ts.map +1 -0
- package/dist/errors/Locked.js +9 -0
- package/dist/errors/Locked.js.map +1 -0
- package/dist/errors/ValidationError.d.ts +1 -1
- package/dist/errors/ValidationError.d.ts.map +1 -1
- package/dist/errors/ValidationError.js +1 -1
- package/dist/errors/ValidationError.js.map +1 -1
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +1 -0
- package/dist/errors/index.js.map +1 -1
- package/dist/exports/i18n/da.d.ts +2 -0
- package/dist/exports/i18n/da.d.ts.map +1 -0
- package/dist/exports/i18n/da.js +3 -0
- package/dist/exports/i18n/da.js.map +1 -0
- package/dist/exports/i18n/sl.d.ts +2 -0
- package/dist/exports/i18n/sl.d.ts.map +1 -0
- package/dist/exports/i18n/sl.js +3 -0
- package/dist/exports/i18n/sl.js.map +1 -0
- package/dist/exports/shared.d.ts +7 -2
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +7 -2
- package/dist/exports/shared.js.map +1 -1
- package/dist/fields/baseFields/baseIDField.d.ts.map +1 -1
- package/dist/fields/baseFields/baseIDField.js +5 -0
- package/dist/fields/baseFields/baseIDField.js.map +1 -1
- package/dist/fields/config/client.d.ts +17 -2
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +229 -1
- package/dist/fields/config/client.js.map +1 -1
- package/dist/fields/config/sanitize.d.ts +8 -2
- package/dist/fields/config/sanitize.d.ts.map +1 -1
- package/dist/fields/config/sanitize.js +47 -9
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/sanitize.spec.js.map +1 -1
- package/dist/fields/config/sanitizeJoinField.d.ts +10 -0
- package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -0
- package/dist/fields/config/sanitizeJoinField.js +72 -0
- package/dist/fields/config/sanitizeJoinField.js.map +1 -0
- package/dist/fields/config/types.d.ts +195 -251
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js +5 -2
- package/dist/fields/config/types.js.map +1 -1
- package/dist/fields/getFieldPaths.d.ts +25 -8
- package/dist/fields/getFieldPaths.d.ts.map +1 -1
- package/dist/fields/getFieldPaths.js +9 -37
- package/dist/fields/getFieldPaths.js.map +1 -1
- package/dist/fields/hooks/afterChange/index.d.ts +4 -3
- package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/index.js.map +1 -1
- package/dist/fields/hooks/afterChange/promise.d.ts +6 -4
- package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/promise.js +12 -8
- package/dist/fields/hooks/afterChange/promise.js.map +1 -1
- package/dist/fields/hooks/afterChange/traverseFields.d.ts +4 -3
- package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/traverseFields.js +2 -1
- package/dist/fields/hooks/afterChange/traverseFields.js.map +1 -1
- package/dist/fields/hooks/afterRead/index.d.ts +6 -3
- package/dist/fields/hooks/afterRead/index.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/index.js +8 -2
- package/dist/fields/hooks/afterRead/index.js.map +1 -1
- package/dist/fields/hooks/afterRead/promise.d.ts +9 -4
- package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/promise.js +88 -7
- package/dist/fields/hooks/afterRead/promise.js.map +1 -1
- package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts +5 -4
- package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js +23 -11
- package/dist/fields/hooks/afterRead/relationshipPopulationPromise.js.map +1 -1
- package/dist/fields/hooks/afterRead/traverseFields.d.ts +8 -4
- package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/traverseFields.js +6 -2
- package/dist/fields/hooks/afterRead/traverseFields.js.map +1 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.js +6 -2
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.js.map +1 -1
- package/dist/fields/hooks/beforeChange/index.d.ts +6 -8
- package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/index.js +1 -3
- package/dist/fields/hooks/beforeChange/index.js.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.d.ts +12 -9
- package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.js +30 -45
- package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
- package/dist/fields/hooks/beforeChange/traverseFields.d.ts +7 -9
- package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/traverseFields.js +3 -3
- package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
- package/dist/fields/hooks/beforeDuplicate/index.d.ts +20 -0
- package/dist/fields/hooks/beforeDuplicate/index.d.ts.map +1 -0
- package/dist/fields/hooks/beforeDuplicate/index.js +25 -0
- package/dist/fields/hooks/beforeDuplicate/index.js.map +1 -0
- package/dist/fields/hooks/beforeDuplicate/promise.d.ts +20 -0
- package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -0
- package/dist/fields/hooks/beforeDuplicate/promise.js +304 -0
- package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -0
- package/dist/fields/hooks/beforeDuplicate/runHook.d.ts +3 -0
- package/dist/fields/hooks/beforeDuplicate/runHook.d.ts.map +1 -0
- package/dist/fields/hooks/beforeDuplicate/runHook.js +6 -0
- package/dist/fields/hooks/beforeDuplicate/runHook.js.map +1 -0
- package/dist/fields/hooks/beforeDuplicate/traverseFields.d.ts +19 -0
- package/dist/fields/hooks/beforeDuplicate/traverseFields.d.ts.map +1 -0
- package/dist/fields/hooks/beforeDuplicate/traverseFields.js +22 -0
- package/dist/fields/hooks/beforeDuplicate/traverseFields.js.map +1 -0
- package/dist/fields/hooks/beforeValidate/index.d.ts +4 -3
- package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.d.ts +6 -4
- package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.js +29 -11
- package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +4 -3
- package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.js +2 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
- package/dist/fields/validations.d.ts +14 -4
- package/dist/fields/validations.d.ts.map +1 -1
- package/dist/fields/validations.js +57 -19
- package/dist/fields/validations.js.map +1 -1
- package/dist/globals/config/client.d.ts +18 -25
- package/dist/globals/config/client.d.ts.map +1 -1
- package/dist/globals/config/client.js +53 -1
- package/dist/globals/config/client.js.map +1 -1
- package/dist/globals/config/sanitize.d.ts.map +1 -1
- package/dist/globals/config/sanitize.js +47 -16
- package/dist/globals/config/sanitize.js.map +1 -1
- package/dist/globals/config/types.d.ts +12 -4
- package/dist/globals/config/types.d.ts.map +1 -1
- package/dist/globals/config/types.js.map +1 -1
- package/dist/globals/operations/countGlobalVersions.d.ts +13 -0
- package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -0
- package/dist/globals/operations/countGlobalVersions.js +49 -0
- package/dist/globals/operations/countGlobalVersions.js.map +1 -0
- package/dist/globals/operations/docAccess.d.ts.map +1 -1
- package/dist/globals/operations/docAccess.js +3 -1
- package/dist/globals/operations/docAccess.js.map +1 -1
- package/dist/globals/operations/findOne.d.ts +4 -1
- package/dist/globals/operations/findOne.d.ts.map +1 -1
- package/dist/globals/operations/findOne.js +58 -2
- package/dist/globals/operations/findOne.js.map +1 -1
- package/dist/globals/operations/findVersionByID.d.ts +3 -1
- package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/findVersionByID.js +16 -5
- package/dist/globals/operations/findVersionByID.js.map +1 -1
- package/dist/globals/operations/findVersions.d.ts +4 -2
- package/dist/globals/operations/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/findVersions.js +9 -4
- package/dist/globals/operations/findVersions.js.map +1 -1
- package/dist/globals/operations/local/countGlobalVersions.d.ts +20 -0
- package/dist/globals/operations/local/countGlobalVersions.d.ts.map +1 -0
- package/dist/globals/operations/local/countGlobalVersions.js +20 -0
- package/dist/globals/operations/local/countGlobalVersions.js.map +1 -0
- package/dist/globals/operations/local/findOne.d.ts +7 -4
- package/dist/globals/operations/local/findOne.d.ts.map +1 -1
- package/dist/globals/operations/local/findOne.js +4 -1
- package/dist/globals/operations/local/findOne.js.map +1 -1
- package/dist/globals/operations/local/findVersionByID.d.ts +3 -1
- package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersionByID.js +3 -1
- package/dist/globals/operations/local/findVersionByID.js.map +1 -1
- package/dist/globals/operations/local/findVersions.d.ts +4 -2
- package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersions.js +4 -2
- package/dist/globals/operations/local/findVersions.js.map +1 -1
- package/dist/globals/operations/local/index.d.ts +2 -0
- package/dist/globals/operations/local/index.d.ts.map +1 -1
- package/dist/globals/operations/local/index.js +2 -0
- package/dist/globals/operations/local/index.js.map +1 -1
- package/dist/globals/operations/local/restoreVersion.d.ts +2 -1
- package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/local/restoreVersion.js +3 -2
- package/dist/globals/operations/local/restoreVersion.js.map +1 -1
- package/dist/globals/operations/local/update.d.ts +8 -4
- package/dist/globals/operations/local/update.d.ts.map +1 -1
- package/dist/globals/operations/local/update.js +5 -1
- package/dist/globals/operations/local/update.js.map +1 -1
- package/dist/globals/operations/restoreVersion.d.ts +2 -1
- package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/restoreVersion.js +5 -2
- package/dist/globals/operations/restoreVersion.js.map +1 -1
- package/dist/globals/operations/update.d.ts +8 -3
- package/dist/globals/operations/update.d.ts.map +1 -1
- package/dist/globals/operations/update.js +67 -15
- package/dist/globals/operations/update.js.map +1 -1
- package/dist/index.d.ts +113 -36
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +66 -60
- package/dist/index.js.map +1 -1
- package/dist/lockedDocuments/lockedDocumentsCollection.d.ts +4 -0
- package/dist/lockedDocuments/lockedDocumentsCollection.d.ts.map +1 -0
- package/dist/lockedDocuments/lockedDocumentsCollection.js +32 -0
- package/dist/lockedDocuments/lockedDocumentsCollection.js.map +1 -0
- package/dist/preferences/operations/delete.d.ts +1 -2
- package/dist/preferences/operations/delete.d.ts.map +1 -1
- package/dist/preferences/operations/delete.js +2 -10
- package/dist/preferences/operations/delete.js.map +1 -1
- package/dist/preferences/operations/findOne.d.ts +1 -2
- package/dist/preferences/operations/findOne.d.ts.map +1 -1
- package/dist/preferences/operations/findOne.js +9 -4
- package/dist/preferences/operations/findOne.js.map +1 -1
- package/dist/preferences/operations/update.d.ts +1 -9
- package/dist/preferences/operations/update.d.ts.map +1 -1
- package/dist/preferences/operations/update.js +26 -36
- package/dist/preferences/operations/update.js.map +1 -1
- package/dist/preferences/preferencesCollection.d.ts.map +1 -1
- package/dist/preferences/preferencesCollection.js +2 -1
- package/dist/preferences/preferencesCollection.js.map +1 -1
- package/dist/preferences/requestHandlers/delete.js +1 -1
- package/dist/preferences/requestHandlers/delete.js.map +1 -1
- package/dist/preferences/requestHandlers/findOne.js +1 -1
- package/dist/preferences/requestHandlers/findOne.js.map +1 -1
- package/dist/preferences/requestHandlers/update.js +1 -1
- package/dist/preferences/requestHandlers/update.js.map +1 -1
- package/dist/preferences/types.d.ts.map +1 -1
- package/dist/preferences/types.js.map +1 -1
- package/dist/queues/config/generateJobsJSONSchemas.d.ts +18 -0
- package/dist/queues/config/generateJobsJSONSchemas.d.ts.map +1 -0
- package/dist/queues/config/generateJobsJSONSchemas.js +125 -0
- package/dist/queues/config/generateJobsJSONSchemas.js.map +1 -0
- package/dist/queues/config/jobsCollection.d.ts +4 -0
- package/dist/queues/config/jobsCollection.d.ts.map +1 -0
- package/dist/queues/config/jobsCollection.js +213 -0
- package/dist/queues/config/jobsCollection.js.map +1 -0
- package/dist/queues/config/types/index.d.ts +45 -0
- package/dist/queues/config/types/index.d.ts.map +1 -0
- package/dist/queues/config/types/index.js +3 -0
- package/dist/queues/config/types/index.js.map +1 -0
- package/dist/queues/config/types/taskTypes.d.ts +134 -0
- package/dist/queues/config/types/taskTypes.d.ts.map +1 -0
- package/dist/queues/config/types/taskTypes.js +3 -0
- package/dist/queues/config/types/taskTypes.js.map +1 -0
- package/dist/queues/config/types/workflowJSONTypes.d.ts +29 -0
- package/dist/queues/config/types/workflowJSONTypes.d.ts.map +1 -0
- package/dist/queues/config/types/workflowJSONTypes.js +3 -0
- package/dist/queues/config/types/workflowJSONTypes.js.map +1 -0
- package/dist/queues/config/types/workflowTypes.d.ts +98 -0
- package/dist/queues/config/types/workflowTypes.d.ts.map +1 -0
- package/dist/queues/config/types/workflowTypes.js +3 -0
- package/dist/queues/config/types/workflowTypes.js.map +1 -0
- package/dist/queues/localAPI.d.ts +23 -0
- package/dist/queues/localAPI.d.ts.map +1 -0
- package/dist/queues/localAPI.js +28 -0
- package/dist/queues/localAPI.js.map +1 -0
- package/dist/queues/operations/runJobs/index.d.ts +21 -0
- package/dist/queues/operations/runJobs/index.d.ts.map +1 -0
- package/dist/queues/operations/runJobs/index.js +180 -0
- package/dist/queues/operations/runJobs/index.js.map +1 -0
- package/dist/queues/operations/runJobs/runJSONJob/index.d.ts +18 -0
- package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -0
- package/dist/queues/operations/runJobs/runJSONJob/index.js +125 -0
- package/dist/queues/operations/runJobs/runJSONJob/index.js.map +1 -0
- package/dist/queues/operations/runJobs/runJob/calculateBackoffWaitUntil.d.ts +6 -0
- package/dist/queues/operations/runJobs/runJob/calculateBackoffWaitUntil.d.ts.map +1 -0
- package/dist/queues/operations/runJobs/runJob/calculateBackoffWaitUntil.js +26 -0
- package/dist/queues/operations/runJobs/runJob/calculateBackoffWaitUntil.js.map +1 -0
- package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.d.ts +26 -0
- package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.d.ts.map +1 -0
- package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +204 -0
- package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -0
- package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts +5 -0
- package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts.map +1 -0
- package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +18 -0
- package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.map +1 -0
- package/dist/queues/operations/runJobs/runJob/handleWorkflowError.d.ts +17 -0
- package/dist/queues/operations/runJobs/runJob/handleWorkflowError.d.ts.map +1 -0
- package/dist/queues/operations/runJobs/runJob/handleWorkflowError.js +43 -0
- package/dist/queues/operations/runJobs/runJob/handleWorkflowError.js.map +1 -0
- package/dist/queues/operations/runJobs/runJob/importHandlerPath.d.ts +2 -0
- package/dist/queues/operations/runJobs/runJob/importHandlerPath.d.ts.map +1 -0
- package/dist/queues/operations/runJobs/runJob/importHandlerPath.js +21 -0
- package/dist/queues/operations/runJobs/runJob/importHandlerPath.js.map +1 -0
- package/dist/queues/operations/runJobs/runJob/index.d.ts +17 -0
- package/dist/queues/operations/runJobs/runJob/index.d.ts.map +1 -0
- package/dist/queues/operations/runJobs/runJob/index.js +48 -0
- package/dist/queues/operations/runJobs/runJob/index.js.map +1 -0
- package/dist/queues/restEndpointRun.d.ts +3 -0
- package/dist/queues/restEndpointRun.d.ts.map +1 -0
- package/dist/queues/restEndpointRun.js +66 -0
- package/dist/queues/restEndpointRun.js.map +1 -0
- package/dist/queues/utilities/getJobTaskStatus.d.ts +9 -0
- package/dist/queues/utilities/getJobTaskStatus.d.ts.map +1 -0
- package/dist/queues/utilities/getJobTaskStatus.js +29 -0
- package/dist/queues/utilities/getJobTaskStatus.js.map +1 -0
- package/dist/types/index.d.ts +37 -10
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/uploads/cropImage.d.ts.map +1 -1
- package/dist/uploads/cropImage.js +3 -1
- package/dist/uploads/cropImage.js.map +1 -1
- package/dist/uploads/deleteAssociatedFiles.d.ts.map +1 -1
- package/dist/uploads/deleteAssociatedFiles.js +3 -1
- package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
- package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
- package/dist/uploads/docWithFilenameExists.js +3 -1
- package/dist/uploads/docWithFilenameExists.js.map +1 -1
- package/dist/uploads/formatFilesize.d.ts.map +1 -1
- package/dist/uploads/formatFilesize.js +3 -1
- package/dist/uploads/formatFilesize.js.map +1 -1
- package/dist/uploads/generateFileData.d.ts +2 -1
- package/dist/uploads/generateFileData.d.ts.map +1 -1
- package/dist/uploads/generateFileData.js +65 -21
- package/dist/uploads/generateFileData.js.map +1 -1
- package/dist/uploads/getBaseFields.d.ts.map +1 -1
- package/dist/uploads/getBaseFields.js +6 -2
- package/dist/uploads/getBaseFields.js.map +1 -1
- package/dist/uploads/getExternalFile.d.ts.map +1 -1
- package/dist/uploads/getExternalFile.js +3 -1
- package/dist/uploads/getExternalFile.js.map +1 -1
- package/dist/uploads/imageResizer.d.ts.map +1 -1
- package/dist/uploads/imageResizer.js +53 -14
- package/dist/uploads/imageResizer.js.map +1 -1
- package/dist/uploads/mimeTypeValidator.d.ts.map +1 -1
- package/dist/uploads/mimeTypeValidator.js +3 -2
- package/dist/uploads/mimeTypeValidator.js.map +1 -1
- package/dist/uploads/optionallyAppendMetadata.d.ts.map +1 -1
- package/dist/uploads/optionallyAppendMetadata.js +3 -1
- package/dist/uploads/optionallyAppendMetadata.js.map +1 -1
- package/dist/uploads/types.d.ts.map +1 -1
- package/dist/uploads/types.js.map +1 -1
- package/dist/utilities/addSelectGenericsToGeneratedTyoes.spec.js +562 -0
- package/dist/utilities/addSelectGenericsToGeneratedTyoes.spec.js.map +1 -0
- package/dist/utilities/addSelectGenericsToGeneretedTypes.d.ts +4 -0
- package/dist/utilities/addSelectGenericsToGeneretedTypes.d.ts.map +1 -0
- package/dist/utilities/addSelectGenericsToGeneretedTypes.js +41 -0
- package/dist/utilities/addSelectGenericsToGeneretedTypes.js.map +1 -0
- package/dist/utilities/checkDocumentLockStatus.d.ts +13 -0
- package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -0
- package/dist/utilities/checkDocumentLockStatus.js +69 -0
- package/dist/utilities/checkDocumentLockStatus.js.map +1 -0
- package/dist/utilities/configToJSONSchema.d.ts +6 -1
- package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
- package/dist/utilities/configToJSONSchema.js +246 -19
- package/dist/utilities/configToJSONSchema.js.map +1 -1
- package/dist/utilities/createArrayFromCommaDelineated.d.ts.map +1 -1
- package/dist/utilities/createArrayFromCommaDelineated.js +3 -1
- package/dist/utilities/createArrayFromCommaDelineated.js.map +1 -1
- package/dist/utilities/createLocalReq.d.ts +1 -1
- package/dist/utilities/createLocalReq.d.ts.map +1 -1
- package/dist/utilities/createLocalReq.js +28 -12
- package/dist/utilities/createLocalReq.js.map +1 -1
- package/dist/utilities/deepCopyObject.d.ts +1 -0
- package/dist/utilities/deepCopyObject.d.ts.map +1 -1
- package/dist/utilities/deepCopyObject.js +38 -5
- package/dist/utilities/deepCopyObject.js.map +1 -1
- package/dist/utilities/dependencies/dependencyChecker.d.ts +30 -0
- package/dist/utilities/dependencies/dependencyChecker.d.ts.map +1 -0
- package/dist/utilities/dependencies/dependencyChecker.js +55 -0
- package/dist/utilities/dependencies/dependencyChecker.js.map +1 -0
- package/dist/utilities/dependencies/getDependencies.d.ts.map +1 -1
- package/dist/utilities/dependencies/getDependencies.js +23 -22
- package/dist/utilities/dependencies/getDependencies.js.map +1 -1
- package/dist/utilities/dependencies/versionUtils.d.ts +20 -0
- package/dist/utilities/dependencies/versionUtils.d.ts.map +1 -0
- package/dist/utilities/dependencies/versionUtils.js +76 -0
- package/dist/utilities/dependencies/versionUtils.js.map +1 -0
- package/dist/utilities/findUp.d.ts +19 -0
- package/dist/utilities/findUp.d.ts.map +1 -0
- package/dist/utilities/findUp.js +102 -0
- package/dist/utilities/findUp.js.map +1 -0
- package/dist/utilities/formatErrors.d.ts +6 -0
- package/dist/utilities/formatErrors.d.ts.map +1 -0
- package/dist/utilities/formatErrors.js +56 -0
- package/dist/utilities/formatErrors.js.map +1 -0
- package/dist/utilities/getDataByPath.d.ts +1 -1
- package/dist/utilities/getDataByPath.d.ts.map +1 -1
- package/dist/utilities/getDataByPath.js.map +1 -1
- package/dist/utilities/getEntityPolicies.d.ts.map +1 -1
- package/dist/utilities/getEntityPolicies.js +15 -14
- package/dist/utilities/getEntityPolicies.js.map +1 -1
- package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
- package/dist/utilities/getObjectDotNotation.js +3 -1
- package/dist/utilities/getObjectDotNotation.js.map +1 -1
- package/dist/utilities/getSelectMode.d.ts +3 -0
- package/dist/utilities/getSelectMode.d.ts.map +1 -0
- package/dist/utilities/getSelectMode.js +14 -0
- package/dist/utilities/getSelectMode.js.map +1 -0
- package/dist/utilities/getSiblingData.d.ts +1 -1
- package/dist/utilities/getSiblingData.d.ts.map +1 -1
- package/dist/utilities/getSiblingData.js +3 -1
- package/dist/utilities/getSiblingData.js.map +1 -1
- package/dist/utilities/initTransaction.d.ts.map +1 -1
- package/dist/utilities/initTransaction.js +1 -2
- package/dist/utilities/initTransaction.js.map +1 -1
- package/dist/utilities/isReactComponent.d.ts +3 -3
- package/dist/utilities/isReactComponent.d.ts.map +1 -1
- package/dist/utilities/isReactComponent.js.map +1 -1
- package/dist/utilities/isValidID.d.ts +1 -1
- package/dist/utilities/isValidID.d.ts.map +1 -1
- package/dist/utilities/isValidID.js +3 -1
- package/dist/utilities/isValidID.js.map +1 -1
- package/dist/utilities/logger.d.ts +10 -4
- package/dist/utilities/logger.d.ts.map +1 -1
- package/dist/utilities/logger.js +22 -14
- package/dist/utilities/logger.js.map +1 -1
- package/dist/utilities/reduceFieldsToValues.d.ts +1 -1
- package/dist/utilities/reduceFieldsToValues.d.ts.map +1 -1
- package/dist/utilities/reduceFieldsToValues.js +3 -1
- package/dist/utilities/reduceFieldsToValues.js.map +1 -1
- package/dist/utilities/telemetry/conf/index.d.ts +1 -1
- package/dist/utilities/telemetry/conf/index.d.ts.map +1 -1
- package/dist/utilities/telemetry/conf/index.js +8 -8
- package/dist/utilities/telemetry/conf/index.js.map +1 -1
- package/dist/utilities/telemetry/index.d.ts +1 -0
- package/dist/utilities/telemetry/index.d.ts.map +1 -1
- package/dist/utilities/telemetry/index.js +38 -13
- package/dist/utilities/telemetry/index.js.map +1 -1
- package/dist/utilities/timestamp.d.ts.map +1 -1
- package/dist/utilities/timestamp.js +3 -1
- package/dist/utilities/timestamp.js.map +1 -1
- package/dist/utilities/traverseFields.d.ts +36 -0
- package/dist/utilities/traverseFields.d.ts.map +1 -0
- package/dist/utilities/traverseFields.js +124 -0
- package/dist/utilities/traverseFields.js.map +1 -0
- package/dist/utilities/validateMimeType.d.ts +2 -0
- package/dist/utilities/validateMimeType.d.ts.map +1 -0
- package/dist/utilities/validateMimeType.js +6 -0
- package/dist/utilities/validateMimeType.js.map +1 -0
- package/dist/versions/baseFields.d.ts +1 -0
- package/dist/versions/baseFields.d.ts.map +1 -1
- package/dist/versions/baseFields.js +14 -0
- package/dist/versions/baseFields.js.map +1 -1
- package/dist/versions/buildCollectionFields.d.ts +2 -1
- package/dist/versions/buildCollectionFields.d.ts.map +1 -1
- package/dist/versions/buildCollectionFields.js +27 -8
- package/dist/versions/buildCollectionFields.js.map +1 -1
- package/dist/versions/buildGlobalFields.d.ts +2 -1
- package/dist/versions/buildGlobalFields.d.ts.map +1 -1
- package/dist/versions/buildGlobalFields.js +31 -10
- package/dist/versions/buildGlobalFields.js.map +1 -1
- package/dist/versions/drafts/appendVersionToQueryKey.d.ts +1 -1
- package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
- package/dist/versions/drafts/appendVersionToQueryKey.js +2 -2
- package/dist/versions/drafts/appendVersionToQueryKey.js.map +1 -1
- package/dist/versions/drafts/getQueryDraftsSelect.d.ts +5 -0
- package/dist/versions/drafts/getQueryDraftsSelect.d.ts.map +1 -0
- package/dist/versions/drafts/getQueryDraftsSelect.js +18 -0
- package/dist/versions/drafts/getQueryDraftsSelect.js.map +1 -0
- package/dist/versions/drafts/getQueryDraftsSort.d.ts +6 -1
- package/dist/versions/drafts/getQueryDraftsSort.d.ts.map +1 -1
- package/dist/versions/drafts/getQueryDraftsSort.js +26 -8
- package/dist/versions/drafts/getQueryDraftsSort.js.map +1 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts +3 -2
- package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.js +23 -10
- package/dist/versions/drafts/replaceWithDraftIfAvailable.js.map +1 -1
- package/dist/versions/getLatestCollectionVersion.d.ts +2 -1
- package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
- package/dist/versions/getLatestCollectionVersion.js +42 -19
- package/dist/versions/getLatestCollectionVersion.js.map +1 -1
- package/dist/versions/getLatestGlobalVersion.d.ts +2 -1
- package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
- package/dist/versions/getLatestGlobalVersion.js +19 -9
- package/dist/versions/getLatestGlobalVersion.js.map +1 -1
- package/dist/versions/payloadPackageList.d.ts +2 -0
- package/dist/versions/payloadPackageList.d.ts.map +1 -0
- package/dist/versions/payloadPackageList.js +33 -0
- package/dist/versions/payloadPackageList.js.map +1 -0
- package/dist/versions/saveVersion.d.ts +5 -2
- package/dist/versions/saveVersion.d.ts.map +1 -1
- package/dist/versions/saveVersion.js +64 -30
- package/dist/versions/saveVersion.js.map +1 -1
- package/dist/versions/types.d.ts +7 -5
- package/dist/versions/types.d.ts.map +1 -1
- package/dist/versions/types.js.map +1 -1
- package/package.json +20 -22
- package/dist/fields/hooks/beforeChange/beforeDuplicate.d.ts +0 -3
- package/dist/fields/hooks/beforeChange/beforeDuplicate.d.ts.map +0 -1
- package/dist/fields/hooks/beforeChange/beforeDuplicate.js +0 -6
- package/dist/fields/hooks/beforeChange/beforeDuplicate.js.map +0 -1
- package/dist/utilities/mergeListSearchAndWhere.d.ts +0 -12
- package/dist/utilities/mergeListSearchAndWhere.d.ts.map +0 -1
- package/dist/utilities/mergeListSearchAndWhere.js +0 -57
- package/dist/utilities/mergeListSearchAndWhere.js.map +0 -1
package/dist/admin/RichText.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type { GenericLanguages, I18n
|
|
1
|
+
import type { GenericLanguages, I18n } from '@payloadcms/translations';
|
|
2
2
|
import type { JSONSchema4 } from 'json-schema';
|
|
3
|
-
import type { ImportMap } from '../bin/generateImportMap/index.js';
|
|
4
3
|
import type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js';
|
|
5
4
|
import type { Config, PayloadComponent, SanitizedConfig } from '../config/types.js';
|
|
6
|
-
import type {
|
|
5
|
+
import type { ValidationFieldError } from '../errors/ValidationError.js';
|
|
6
|
+
import type { FieldAffectingData, RichTextField, Validate } from '../fields/config/types.js';
|
|
7
7
|
import type { SanitizedGlobalConfig } from '../globals/config/types.js';
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
8
|
+
import type { RequestContext } from '../index.js';
|
|
9
|
+
import type { JsonObject, PayloadRequest, PopulateType } from '../types/index.js';
|
|
10
|
+
import type { RichTextFieldClientProps } from './fields/RichText.js';
|
|
11
|
+
import type { FieldSchemaMap } from './types.js';
|
|
11
12
|
export type AfterReadRichTextHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = {
|
|
12
13
|
currentDepth?: number;
|
|
13
14
|
depth?: number;
|
|
@@ -21,6 +22,7 @@ export type AfterReadRichTextHookArgs<TData extends TypeWithID = any, TValue = a
|
|
|
21
22
|
/** A string relating to which operation the field type is currently executing within. */
|
|
22
23
|
operation?: 'create' | 'delete' | 'read' | 'update';
|
|
23
24
|
overrideAccess?: boolean;
|
|
25
|
+
populate?: PopulateType;
|
|
24
26
|
populationPromises?: Promise<void>[];
|
|
25
27
|
showHiddenFields?: boolean;
|
|
26
28
|
triggerAccessControl?: boolean;
|
|
@@ -51,10 +53,7 @@ export type BeforeChangeRichTextHookArgs<TData extends TypeWithID = any, TValue
|
|
|
51
53
|
*/
|
|
52
54
|
docWithLocales?: JsonObject;
|
|
53
55
|
duplicate?: boolean;
|
|
54
|
-
errors?:
|
|
55
|
-
field: string;
|
|
56
|
-
message: string;
|
|
57
|
-
}[];
|
|
56
|
+
errors?: ValidationFieldError[];
|
|
58
57
|
/** Only available in `beforeChange` field hooks */
|
|
59
58
|
mergeLocaleActions?: (() => Promise<void>)[];
|
|
60
59
|
/** A string relating to which operation the field type is currently executing within. */
|
|
@@ -71,14 +70,14 @@ export type BeforeChangeRichTextHookArgs<TData extends TypeWithID = any, TValue
|
|
|
71
70
|
};
|
|
72
71
|
export type BaseRichTextHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = {
|
|
73
72
|
/** The collection which the field belongs to. If the field belongs to a global, this will be null. */
|
|
74
|
-
collection:
|
|
73
|
+
collection: null | SanitizedCollectionConfig;
|
|
75
74
|
context: RequestContext;
|
|
76
75
|
/** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */
|
|
77
76
|
data?: Partial<TData>;
|
|
78
77
|
/** The field which the hook is running against. */
|
|
79
78
|
field: FieldAffectingData;
|
|
80
79
|
/** The global which the field belongs to. If the field belongs to a collection, this will be null. */
|
|
81
|
-
global:
|
|
80
|
+
global: null | SanitizedGlobalConfig;
|
|
82
81
|
/** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */
|
|
83
82
|
originalDoc?: TData;
|
|
84
83
|
/**
|
|
@@ -106,25 +105,15 @@ export type RichTextHooks = {
|
|
|
106
105
|
beforeChange?: BeforeChangeRichTextHook[];
|
|
107
106
|
beforeValidate?: BeforeValidateRichTextHook[];
|
|
108
107
|
};
|
|
109
|
-
export type RichTextGenerateComponentMap = (args: {
|
|
110
|
-
clientField: RichTextFieldClient;
|
|
111
|
-
createMappedComponent: CreateMappedComponent;
|
|
112
|
-
field: RichTextField;
|
|
113
|
-
i18n: I18nClient;
|
|
114
|
-
importMap: ImportMap;
|
|
115
|
-
payload: Payload;
|
|
116
|
-
schemaPath: string;
|
|
117
|
-
}) => Map<string, unknown>;
|
|
118
108
|
type RichTextAdapterBase<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = {
|
|
119
|
-
generateComponentMap: PayloadComponent<any, never>;
|
|
120
109
|
generateImportMap?: Config['admin']['importMap']['generators'][0];
|
|
121
110
|
generateSchemaMap?: (args: {
|
|
122
111
|
config: SanitizedConfig;
|
|
123
112
|
field: RichTextField;
|
|
124
113
|
i18n: I18n<any, any>;
|
|
125
|
-
schemaMap:
|
|
114
|
+
schemaMap: FieldSchemaMap;
|
|
126
115
|
schemaPath: string;
|
|
127
|
-
}) =>
|
|
116
|
+
}) => FieldSchemaMap;
|
|
128
117
|
/**
|
|
129
118
|
* Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.
|
|
130
119
|
*
|
|
@@ -141,6 +130,7 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
|
|
|
141
130
|
findMany: boolean;
|
|
142
131
|
flattenLocales: boolean;
|
|
143
132
|
overrideAccess?: boolean;
|
|
133
|
+
populateArg?: PopulateType;
|
|
144
134
|
populationPromises: Promise<void>[];
|
|
145
135
|
req: PayloadRequest;
|
|
146
136
|
showHiddenFields: boolean;
|
|
@@ -164,9 +154,9 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
|
|
|
164
154
|
};
|
|
165
155
|
export type RichTextAdapter<Value extends object = any, AdapterProps = any, ExtraFieldProperties = any> = {
|
|
166
156
|
CellComponent: PayloadComponent<never>;
|
|
167
|
-
FieldComponent: PayloadComponent<never,
|
|
157
|
+
FieldComponent: PayloadComponent<never, RichTextFieldClientProps>;
|
|
168
158
|
} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>;
|
|
169
|
-
export type RichTextAdapterProvider<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = ({ config, isRoot, }: {
|
|
159
|
+
export type RichTextAdapterProvider<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = ({ config, isRoot, parentIsLocalized, }: {
|
|
170
160
|
config: SanitizedConfig;
|
|
171
161
|
/**
|
|
172
162
|
* Whether or not this is the root richText editor, defined in the payload.config.ts.
|
|
@@ -174,6 +164,7 @@ export type RichTextAdapterProvider<Value extends object = object, AdapterProps
|
|
|
174
164
|
* @default false
|
|
175
165
|
*/
|
|
176
166
|
isRoot?: boolean;
|
|
167
|
+
parentIsLocalized: boolean;
|
|
177
168
|
}) => Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>> | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>;
|
|
178
169
|
export {};
|
|
179
170
|
//# sourceMappingURL=RichText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/admin/RichText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/admin/RichText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAc,MAAM,0BAA0B,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAG9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3F,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EAEb,QAAQ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AAA;KACpB,KAAK,WAAW,CAAA;IACjB,QAAQ,EAAE,QAAQ,CAChB,KAAK,EACL,KAAK,EACL,OAAO,EACP,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CACzD,CAAA;CACF,CAAA;AAED,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,MAAM,GAAG,GAAG,EAC1B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,GAAG,IACxB;IACF,aAAa,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAA;IACtC,cAAc,EAAE,gBAAgB,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;CAClE,GAAG,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA;AAElE,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,MAAM,GAAG,MAAM,EAC7B,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,EAAE,IACvB,CAAC,EACH,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,EAAE;IACD,MAAM,EAAE,eAAe,CAAA;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,OAAO,CAAA;CAC3B,KACG,OAAO,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAC,GACnE,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,oBAAoB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["import type { GenericLanguages, I18n, I18nClient } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { ImportMap } from '../bin/generateImportMap/index.js'\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { Config, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type {\n
|
|
1
|
+
{"version":3,"sources":["../../src/admin/RichText.ts"],"sourcesContent":["import type { GenericLanguages, I18n, I18nClient } from '@payloadcms/translations'\nimport type { JSONSchema4 } from 'json-schema'\n\nimport type { ImportMap } from '../bin/generateImportMap/index.js'\nimport type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js'\nimport type { Config, PayloadComponent, SanitizedConfig } from '../config/types.js'\nimport type { ValidationFieldError } from '../errors/ValidationError.js'\nimport type {\n FieldAffectingData,\n RichTextField,\n RichTextFieldClient,\n Validate,\n} from '../fields/config/types.js'\nimport type { SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { RequestContext } from '../index.js'\nimport type { JsonObject, Payload, PayloadRequest, PopulateType } from '../types/index.js'\nimport type { RichTextFieldClientProps } from './fields/RichText.js'\nimport type { FieldSchemaMap } from './types.js'\n\nexport type AfterReadRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n currentDepth?: number\n\n depth?: number\n\n draft?: boolean\n\n fallbackLocale?: string\n fieldPromises?: Promise<void>[]\n\n /** Boolean to denote if this hook is running against finding one, or finding many within the afterRead hook. */\n findMany?: boolean\n\n flattenLocales?: boolean\n\n locale?: string\n\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n\n overrideAccess?: boolean\n\n populate?: PopulateType\n\n populationPromises?: Promise<void>[]\n showHiddenFields?: boolean\n triggerAccessControl?: boolean\n triggerHooks?: boolean\n}\n\nexport type AfterChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n /** The document before changes were applied. */\n previousDoc?: TData\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\nexport type BeforeValidateRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** A string relating to which operation the field type is currently executing within. */\n operation: 'create' | 'update'\n overrideAccess?: boolean\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n}\n\nexport type BeforeChangeRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /**\n * The original data with locales (not modified by any hooks). Only available in `beforeChange` and `beforeDuplicate` field hooks.\n */\n docWithLocales?: JsonObject\n\n duplicate?: boolean\n\n errors?: ValidationFieldError[]\n /** Only available in `beforeChange` field hooks */\n mergeLocaleActions?: (() => Promise<void>)[]\n /** A string relating to which operation the field type is currently executing within. */\n operation?: 'create' | 'delete' | 'read' | 'update'\n /** The sibling data of the document before changes being applied. */\n previousSiblingDoc?: TData\n /** The previous value of the field, before changes */\n previousValue?: TValue\n /**\n * The original siblingData with locales (not modified by any hooks).\n */\n siblingDocWithLocales?: JsonObject\n\n skipValidation?: boolean\n}\n\nexport type BaseRichTextHookArgs<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = {\n /** The collection which the field belongs to. If the field belongs to a global, this will be null. */\n collection: null | SanitizedCollectionConfig\n context: RequestContext\n /** The data passed to update the document within create and update operations, and the full document itself in the afterRead hook. */\n data?: Partial<TData>\n /** The field which the hook is running against. */\n field: FieldAffectingData\n /** The global which the field belongs to. If the field belongs to a collection, this will be null. */\n global: null | SanitizedGlobalConfig\n\n /** The full original document in `update` operations. In the `afterChange` hook, this is the resulting document of the operation. */\n originalDoc?: TData\n /**\n * The path of the field, e.g. [\"group\", \"myArray\", 1, \"textField\"]. The path is the schemaPath but with indexes and would be used in the context of field data, not field schemas.\n */\n path: (number | string)[]\n\n /** The Express request object. It is mocked for Local API operations. */\n req: PayloadRequest\n /**\n * The schemaPath of the field, e.g. [\"group\", \"myArray\", \"textField\"]. The schemaPath is the path but without indexes and would be used in the context of field schemas, not field data.\n */\n schemaPath: string[]\n /** The sibling data passed to a field that the hook is running against. */\n siblingData: Partial<TSiblingData>\n /** The value of the field. */\n value?: TValue\n}\n\nexport type AfterReadRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterReadRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type AfterChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: AfterChangeRichTextHookArgs<TData, TValue, TSiblingData> &\n BaseRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeChangeRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeChangeRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type BeforeValidateRichTextHook<\n TData extends TypeWithID = any,\n TValue = any,\n TSiblingData = any,\n> = (\n args: BaseRichTextHookArgs<TData, TValue, TSiblingData> &\n BeforeValidateRichTextHookArgs<TData, TValue, TSiblingData>,\n) => Promise<TValue> | TValue\n\nexport type RichTextHooks = {\n afterChange?: AfterChangeRichTextHook[]\n afterRead?: AfterReadRichTextHook[]\n beforeChange?: BeforeChangeRichTextHook[]\n beforeValidate?: BeforeValidateRichTextHook[]\n}\ntype RichTextAdapterBase<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = {\n generateImportMap?: Config['admin']['importMap']['generators'][0]\n generateSchemaMap?: (args: {\n config: SanitizedConfig\n field: RichTextField\n i18n: I18n<any, any>\n schemaMap: FieldSchemaMap\n schemaPath: string\n }) => FieldSchemaMap\n /**\n * Like an afterRead hook, but runs only for the GraphQL resolver. For populating data, this should be used, as afterRead hooks do not have a depth in graphQL.\n *\n * To populate stuff / resolve field hooks, mutate the incoming populationPromises or fieldPromises array. They will then be awaited in the correct order within payload itself.\n * @param data\n */\n graphQLPopulationPromises?: (data: {\n context: RequestContext\n currentDepth?: number\n depth: number\n draft: boolean\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n fieldPromises: Promise<void>[]\n findMany: boolean\n flattenLocales: boolean\n overrideAccess?: boolean\n populateArg?: PopulateType\n populationPromises: Promise<void>[]\n req: PayloadRequest\n showHiddenFields: boolean\n siblingDoc: JsonObject\n }) => void\n hooks?: RichTextHooks\n i18n?: Partial<GenericLanguages>\n outputSchema?: ({\n collectionIDFieldTypes,\n config,\n field,\n interfaceNameDefinitions,\n isRequired,\n }: {\n collectionIDFieldTypes: { [key: string]: 'number' | 'string' }\n config?: SanitizedConfig\n field: RichTextField<Value, AdapterProps, ExtraFieldProperties>\n /**\n * Allows you to define new top-level interfaces that can be re-used in the output schema.\n */\n interfaceNameDefinitions: Map<string, JSONSchema4>\n isRequired: boolean\n }) => JSONSchema4\n validate: Validate<\n Value,\n Value,\n unknown,\n RichTextField<Value, AdapterProps, ExtraFieldProperties>\n >\n}\n\nexport type RichTextAdapter<\n Value extends object = any,\n AdapterProps = any,\n ExtraFieldProperties = any,\n> = {\n CellComponent: PayloadComponent<never>\n FieldComponent: PayloadComponent<never, RichTextFieldClientProps>\n} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>\n\nexport type RichTextAdapterProvider<\n Value extends object = object,\n AdapterProps = any,\n ExtraFieldProperties = {},\n> = ({\n config,\n isRoot,\n parentIsLocalized,\n}: {\n config: SanitizedConfig\n /**\n * Whether or not this is the root richText editor, defined in the payload.config.ts.\n *\n * @default false\n */\n isRoot?: boolean\n parentIsLocalized: boolean\n}) =>\n | Promise<RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>>\n | RichTextAdapter<Value, AdapterProps, ExtraFieldProperties>\n"],"names":[],"mappings":"AAgQA,WAmB8D"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import type { ClientCollectionConfig } from '../../collections/config/client.js';
|
|
1
2
|
import type { SanitizedCollectionConfig } from '../../collections/config/types.js';
|
|
2
3
|
import type { ClientField } from '../../fields/config/client.js';
|
|
3
4
|
export type RowData = Record<string, any>;
|
|
4
|
-
export type
|
|
5
|
+
export type DefaultCellComponentProps<TCellData = any, TField extends ClientField = ClientField> = {
|
|
6
|
+
readonly cellData: TCellData;
|
|
5
7
|
readonly className?: string;
|
|
8
|
+
readonly collectionConfig: ClientCollectionConfig;
|
|
9
|
+
readonly columnIndex?: number;
|
|
10
|
+
readonly customCellProps?: Record<string, any>;
|
|
6
11
|
readonly field: TField;
|
|
7
12
|
readonly link?: boolean;
|
|
8
13
|
readonly onClick?: (args: {
|
|
@@ -10,13 +15,6 @@ export type CellComponentProps<TField extends ClientField = ClientField> = {
|
|
|
10
15
|
collectionSlug: SanitizedCollectionConfig['slug'];
|
|
11
16
|
rowData: RowData;
|
|
12
17
|
}) => void;
|
|
13
|
-
};
|
|
14
|
-
export type DefaultCellComponentProps<TCellData = any, TField extends ClientField = ClientField> = {
|
|
15
|
-
readonly cellData: TCellData;
|
|
16
|
-
readonly customCellContext?: {
|
|
17
|
-
collectionSlug?: SanitizedCollectionConfig['slug'];
|
|
18
|
-
uploadConfig?: SanitizedCollectionConfig['upload'];
|
|
19
|
-
};
|
|
20
18
|
readonly rowData: RowData;
|
|
21
|
-
}
|
|
19
|
+
};
|
|
22
20
|
//# sourceMappingURL=Cell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/Cell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAEzC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/Cell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAChF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAEzC,MAAM,MAAM,yBAAyB,CAAC,SAAS,GAAG,GAAG,EAAE,MAAM,SAAS,WAAW,GAAG,WAAW,IAAI;IACjG,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,gBAAgB,EAAE,sBAAsB,CAAA;IACjD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE;QACxB,QAAQ,EAAE,OAAO,CAAA;QACjB,cAAc,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAA;QACjD,OAAO,EAAE,OAAO,CAAA;KACjB,KAAK,IAAI,CAAA;IACV,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/elements/Cell.ts"],"sourcesContent":["import type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { ClientField } from '../../fields/config/client.js'\n\nexport type RowData = Record<string, any>\n\nexport type
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/elements/Cell.ts"],"sourcesContent":["import type { ClientCollectionConfig } from '../../collections/config/client.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { ClientField } from '../../fields/config/client.js'\n\nexport type RowData = Record<string, any>\n\nexport type DefaultCellComponentProps<TCellData = any, TField extends ClientField = ClientField> = {\n readonly cellData: TCellData\n readonly className?: string\n readonly collectionConfig: ClientCollectionConfig\n readonly columnIndex?: number\n readonly customCellProps?: Record<string, any>\n readonly field: TField\n readonly link?: boolean\n readonly onClick?: (args: {\n cellData: unknown\n collectionSlug: SanitizedCollectionConfig['slug']\n rowData: RowData\n }) => void\n readonly rowData: RowData\n}\n"],"names":[],"mappings":"AAMA,WAcC"}
|
|
@@ -20,7 +20,6 @@ export type DocumentTabCondition = (args: {
|
|
|
20
20
|
}) => boolean;
|
|
21
21
|
export type DocumentTabConfig = {
|
|
22
22
|
readonly Component?: DocumentTabComponent;
|
|
23
|
-
readonly Pill?: PayloadComponent;
|
|
24
23
|
readonly condition?: DocumentTabCondition;
|
|
25
24
|
readonly href?: ((args: {
|
|
26
25
|
apiURL: string;
|
|
@@ -36,6 +35,7 @@ export type DocumentTabConfig = {
|
|
|
36
35
|
t: (key: string) => string;
|
|
37
36
|
}) => string) | string;
|
|
38
37
|
readonly newTab?: boolean;
|
|
38
|
+
readonly Pill?: PayloadComponent;
|
|
39
39
|
};
|
|
40
40
|
export type DocumentTabComponent = PayloadComponent<{
|
|
41
41
|
path: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/admin/elements/Tab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,KAAK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E,gBAAgB,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;IAClD,IAAI,EAAE,MAAM,CAAA;CACb,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/elements/Tab.ts"],"sourcesContent":["import type { I18n } from '@payloadcms/translations'\n\nimport type { Permissions } from '../../auth/types.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { PayloadComponent, SanitizedConfig } from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { Payload } from '../../index.js'\n\nexport type DocumentTabProps = {\n readonly apiURL?: string\n readonly collectionConfig?: SanitizedCollectionConfig\n readonly globalConfig?: SanitizedGlobalConfig\n readonly i18n: I18n\n readonly payload: Payload\n readonly permissions: Permissions\n}\n\nexport type DocumentTabCondition = (args: {\n collectionConfig: SanitizedCollectionConfig\n config: SanitizedConfig\n globalConfig: SanitizedGlobalConfig\n permissions: Permissions\n}) => boolean\n\n// Everything is optional because we merge in the defaults\n// i.e. the config may override the `Default` view with a `label` but not an `href`\nexport type DocumentTabConfig = {\n readonly Component?: DocumentTabComponent\n readonly
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/elements/Tab.ts"],"sourcesContent":["import type { I18n } from '@payloadcms/translations'\n\nimport type { Permissions } from '../../auth/types.js'\nimport type { SanitizedCollectionConfig } from '../../collections/config/types.js'\nimport type { PayloadComponent, SanitizedConfig } from '../../config/types.js'\nimport type { SanitizedGlobalConfig } from '../../globals/config/types.js'\nimport type { Payload } from '../../index.js'\n\nexport type DocumentTabProps = {\n readonly apiURL?: string\n readonly collectionConfig?: SanitizedCollectionConfig\n readonly globalConfig?: SanitizedGlobalConfig\n readonly i18n: I18n\n readonly payload: Payload\n readonly permissions: Permissions\n}\n\nexport type DocumentTabCondition = (args: {\n collectionConfig: SanitizedCollectionConfig\n config: SanitizedConfig\n globalConfig: SanitizedGlobalConfig\n permissions: Permissions\n}) => boolean\n\n// Everything is optional because we merge in the defaults\n// i.e. the config may override the `Default` view with a `label` but not an `href`\nexport type DocumentTabConfig = {\n readonly Component?: DocumentTabComponent\n readonly condition?: DocumentTabCondition\n readonly href?:\n | ((args: {\n apiURL: string\n collection: SanitizedCollectionConfig\n global: SanitizedGlobalConfig\n id?: string\n routes: SanitizedConfig['routes']\n }) => string)\n | string\n readonly isActive?: ((args: { href: string }) => boolean) | boolean\n readonly label?: ((args: { t: (key: string) => string }) => string) | string\n readonly newTab?: boolean\n readonly Pill?: PayloadComponent\n}\n\nexport type DocumentTabComponent = PayloadComponent<{\n path: string\n}>\n"],"names":[],"mappings":"AA4CA,WAEE"}
|
|
@@ -2,17 +2,22 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
2
2
|
import type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { ArrayFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
7
|
type ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>;
|
|
7
|
-
|
|
8
|
-
readonly
|
|
8
|
+
type ArrayFieldBaseClientProps = {
|
|
9
|
+
readonly path?: string;
|
|
9
10
|
readonly validate?: ArrayFieldValidation;
|
|
10
|
-
} &
|
|
11
|
-
export type
|
|
11
|
+
} & Pick<ServerFieldBase, 'permissions'>;
|
|
12
|
+
export type ArrayFieldClientProps = ArrayFieldBaseClientProps & ClientFieldBase<ArrayFieldClientWithoutType>;
|
|
13
|
+
export type ArrayFieldServerProps = ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>;
|
|
14
|
+
export type ArrayFieldServerComponent = FieldServerComponent<ArrayField, ArrayFieldClientWithoutType>;
|
|
15
|
+
export type ArrayFieldClientComponent = FieldClientComponent<ArrayFieldClientWithoutType, ArrayFieldBaseClientProps>;
|
|
16
|
+
export type ArrayFieldLabelServerComponent = FieldLabelServerComponent<ArrayField, ArrayFieldClientWithoutType>;
|
|
12
17
|
export type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>;
|
|
13
|
-
export type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<ArrayField>;
|
|
18
|
+
export type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<ArrayField, ArrayFieldClientWithoutType>;
|
|
14
19
|
export type ArrayFieldDescriptionClientComponent = FieldDescriptionClientComponent<ArrayFieldClientWithoutType>;
|
|
15
|
-
export type ArrayFieldErrorServerComponent = FieldErrorServerComponent<ArrayField>;
|
|
20
|
+
export type ArrayFieldErrorServerComponent = FieldErrorServerComponent<ArrayField, ArrayFieldClientWithoutType>;
|
|
16
21
|
export type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>;
|
|
17
22
|
export {};
|
|
18
23
|
//# sourceMappingURL=Array.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAe,MAAM,8BAA8B,CAAA;AAC7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAC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AAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Array.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js'\nimport type { ArrayFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Array.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ArrayField, ArrayFieldClient, ClientField } from '../../fields/config/types.js'\nimport type { ArrayFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>\n\ntype ArrayFieldBaseClientProps = {\n readonly path?: string\n readonly validate?: ArrayFieldValidation\n} & Pick<ServerFieldBase, 'permissions'>\n\nexport type ArrayFieldClientProps = ArrayFieldBaseClientProps &\n ClientFieldBase<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerProps = ServerFieldBase<ArrayField, ArrayFieldClientWithoutType>\n\nexport type ArrayFieldServerComponent = FieldServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldClientComponent = FieldClientComponent<\n ArrayFieldClientWithoutType,\n ArrayFieldBaseClientProps\n>\n\nexport type ArrayFieldLabelServerComponent = FieldLabelServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldErrorServerComponent = FieldErrorServerComponent<\n ArrayField,\n ArrayFieldClientWithoutType\n>\n\nexport type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>\n"],"names":[],"mappings":"AA4DA,WAAmG"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { BlocksField, BlocksFieldClient } from '../../fields/config/types.js';
|
|
3
|
+
import type { BlocksFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type
|
|
13
|
-
export type
|
|
14
|
-
export type
|
|
15
|
-
export type
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
7
|
+
type BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>;
|
|
8
|
+
type BlocksFieldBaseClientProps = {
|
|
9
|
+
readonly path?: string;
|
|
10
|
+
readonly validate?: BlocksFieldValidation;
|
|
11
|
+
} & Pick<ServerFieldBase, 'permissions'>;
|
|
12
|
+
export type BlocksFieldClientProps = BlocksFieldBaseClientProps & ClientFieldBase<BlocksFieldClientWithoutType>;
|
|
13
|
+
export type BlocksFieldServerProps = ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>;
|
|
14
|
+
export type BlocksFieldServerComponent = FieldServerComponent<BlocksField, BlocksFieldClientWithoutType>;
|
|
15
|
+
export type BlocksFieldClientComponent = FieldClientComponent<BlocksFieldClientWithoutType, BlocksFieldBaseClientProps>;
|
|
16
|
+
export type BlocksFieldLabelServerComponent = FieldLabelServerComponent<BlocksField, BlocksFieldClientWithoutType>;
|
|
17
|
+
export type BlocksFieldLabelClientComponent = FieldLabelClientComponent<BlocksFieldClientWithoutType>;
|
|
18
|
+
export type BlocksFieldDescriptionServerComponent = FieldDescriptionServerComponent<BlocksField, BlocksFieldClientWithoutType>;
|
|
19
|
+
export type BlocksFieldDescriptionClientComponent = FieldDescriptionClientComponent<BlocksFieldClientWithoutType>;
|
|
20
|
+
export type BlocksFieldErrorServerComponent = FieldErrorServerComponent<BlocksField, BlocksFieldClientWithoutType>;
|
|
21
|
+
export type BlocksFieldErrorClientComponent = FieldErrorClientComponent<BlocksFieldClientWithoutType>;
|
|
16
22
|
export {};
|
|
17
23
|
//# sourceMappingURL=Blocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Blocks.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAe,MAAM,8BAA8B,CAAA;AAC/F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,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/admin/fields/Blocks.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Blocks.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { BlocksField, BlocksFieldClient, ClientField } from '../../fields/config/types.js'\nimport type { BlocksFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype BlocksFieldClientWithoutType = MarkOptional<BlocksFieldClient, 'type'>\n\ntype BlocksFieldBaseClientProps = {\n readonly path?: string\n readonly validate?: BlocksFieldValidation\n} & Pick<ServerFieldBase, 'permissions'>\n\nexport type BlocksFieldClientProps = BlocksFieldBaseClientProps &\n ClientFieldBase<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldServerProps = ServerFieldBase<BlocksField, BlocksFieldClientWithoutType>\n\nexport type BlocksFieldServerComponent = FieldServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldClientComponent = FieldClientComponent<\n BlocksFieldClientWithoutType,\n BlocksFieldBaseClientProps\n>\n\nexport type BlocksFieldLabelServerComponent = FieldLabelServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldLabelClientComponent =\n FieldLabelClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlocksFieldErrorServerComponent = FieldErrorServerComponent<\n BlocksField,\n BlocksFieldClientWithoutType\n>\n\nexport type BlocksFieldErrorClientComponent =\n FieldErrorClientComponent<BlocksFieldClientWithoutType>\n"],"names":[],"mappings":"AA6DA,WACyD"}
|
|
@@ -2,21 +2,27 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
2
2
|
import type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { CheckboxFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
7
|
type CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>;
|
|
7
|
-
|
|
8
|
+
type CheckboxFieldBaseClientProps = {
|
|
8
9
|
readonly checked?: boolean;
|
|
9
10
|
readonly disableFormData?: boolean;
|
|
10
11
|
readonly id?: string;
|
|
11
12
|
readonly onChange?: (value: boolean) => void;
|
|
12
13
|
readonly partialChecked?: boolean;
|
|
14
|
+
readonly path?: string;
|
|
13
15
|
readonly validate?: CheckboxFieldValidation;
|
|
14
|
-
}
|
|
15
|
-
export type
|
|
16
|
+
};
|
|
17
|
+
export type CheckboxFieldClientProps = CheckboxFieldBaseClientProps & ClientFieldBase<CheckboxFieldClientWithoutType>;
|
|
18
|
+
export type CheckboxFieldServerProps = ServerFieldBase<CheckboxField, CheckboxFieldClientWithoutType>;
|
|
19
|
+
export type CheckboxFieldServerComponent = FieldServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
|
|
20
|
+
export type CheckboxFieldClientComponent = FieldClientComponent<CheckboxFieldClientWithoutType, CheckboxFieldBaseClientProps>;
|
|
21
|
+
export type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
|
|
16
22
|
export type CheckboxFieldLabelClientComponent = FieldLabelClientComponent<CheckboxFieldClientWithoutType>;
|
|
17
|
-
export type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<CheckboxField>;
|
|
23
|
+
export type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
|
|
18
24
|
export type CheckboxFieldDescriptionClientComponent = FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>;
|
|
19
|
-
export type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<CheckboxField>;
|
|
25
|
+
export type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<CheckboxField, CheckboxFieldClientWithoutType>;
|
|
20
26
|
export type CheckboxFieldErrorClientComponent = FieldErrorClientComponent<CheckboxFieldClientWithoutType>;
|
|
21
27
|
export {};
|
|
22
28
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACt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M,MAAM,iCAAiC,GAC3C,yBAAyB,CAAC,8BAA8B,CAAC,CAAA;AAE3D,MAAM,MAAM,uCAAuC,GAAG,+BAA+B,CACnF,aAAa,EACb,8BAA8B,CAC/B,CAAA;AAED,MAAM,MAAM,uCAAuC,GACjD,+BAA+B,CAAC,8BAA8B,CAAC,CAAA;AAEjE,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,CACvE,aAAa,EACb,8BAA8B,CAC/B,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC3C,yBAAyB,CAAC,8BAA8B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Checkbox.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js'\nimport type { CheckboxFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Checkbox.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js'\nimport type { CheckboxFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>\n\ntype CheckboxFieldBaseClientProps = {\n readonly checked?: boolean\n readonly disableFormData?: boolean\n readonly id?: string\n readonly onChange?: (value: boolean) => void\n readonly partialChecked?: boolean\n readonly path?: string\n readonly validate?: CheckboxFieldValidation\n}\n\nexport type CheckboxFieldClientProps = CheckboxFieldBaseClientProps &\n ClientFieldBase<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldServerProps = ServerFieldBase<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldServerComponent = FieldServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldClientComponent = FieldClientComponent<\n CheckboxFieldClientWithoutType,\n CheckboxFieldBaseClientProps\n>\n\nexport type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldLabelClientComponent =\n FieldLabelClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<\n CheckboxField,\n CheckboxFieldClientWithoutType\n>\n\nexport type CheckboxFieldErrorClientComponent =\n FieldErrorClientComponent<CheckboxFieldClientWithoutType>\n"],"names":[],"mappings":"AAqEA,WAC2D"}
|
|
@@ -2,17 +2,23 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
2
2
|
import type { CodeField, CodeFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { CodeFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
7
|
type CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>;
|
|
7
|
-
|
|
8
|
+
type CodeFieldBaseClientProps = {
|
|
8
9
|
readonly autoComplete?: string;
|
|
10
|
+
readonly path?: string;
|
|
9
11
|
readonly validate?: CodeFieldValidation;
|
|
10
|
-
}
|
|
11
|
-
export type
|
|
12
|
+
};
|
|
13
|
+
export type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> & CodeFieldBaseClientProps;
|
|
14
|
+
export type CodeFieldServerProps = ServerFieldBase<CodeField, CodeFieldClientWithoutType>;
|
|
15
|
+
export type CodeFieldServerComponent = FieldServerComponent<CodeField, CodeFieldClientWithoutType>;
|
|
16
|
+
export type CodeFieldClientComponent = FieldClientComponent<CodeFieldClientWithoutType, CodeFieldBaseClientProps>;
|
|
17
|
+
export type CodeFieldLabelServerComponent = FieldLabelServerComponent<CodeField, CodeFieldClientWithoutType>;
|
|
12
18
|
export type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>;
|
|
13
|
-
export type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<CodeField>;
|
|
19
|
+
export type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<CodeField, CodeFieldClientWithoutType>;
|
|
14
20
|
export type CodeFieldDescriptionClientComponent = FieldDescriptionClientComponent<CodeFieldClientWithoutType>;
|
|
15
|
-
export type CodeFieldErrorServerComponent = FieldErrorServerComponent<CodeField>;
|
|
21
|
+
export type CodeFieldErrorServerComponent = FieldErrorServerComponent<CodeField, CodeFieldClientWithoutType>;
|
|
16
22
|
export type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>;
|
|
17
23
|
export {};
|
|
18
24
|
//# sourceMappingURL=Code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,O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AAA;AAEzF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAA;AAElG,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CACzD,0BAA0B,EAC1B,wBAAwB,CACzB,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CACnE,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA;AAEjG,MAAM,MAAM,mCAAmC,GAAG,+BAA+B,CAC/E,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC7C,+BAA+B,CAAC,0BAA0B,CAAC,CAAA;AAE7D,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CACnE,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeField, CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeField, CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>\n\ntype CodeFieldBaseClientProps = {\n readonly autoComplete?: string\n readonly path?: string\n readonly validate?: CodeFieldValidation\n}\n\nexport type CodeFieldClientProps = ClientFieldBase<CodeFieldClientWithoutType> &\n CodeFieldBaseClientProps\n\nexport type CodeFieldServerProps = ServerFieldBase<CodeField, CodeFieldClientWithoutType>\n\nexport type CodeFieldServerComponent = FieldServerComponent<CodeField, CodeFieldClientWithoutType>\n\nexport type CodeFieldClientComponent = FieldClientComponent<\n CodeFieldClientWithoutType,\n CodeFieldBaseClientProps\n>\n\nexport type CodeFieldLabelServerComponent = FieldLabelServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldErrorServerComponent = FieldErrorServerComponent<\n CodeField,\n CodeFieldClientWithoutType\n>\n\nexport type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>\n"],"names":[],"mappings":"AA0DA,WAAiG"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import type { MarkOptional } from 'ts-essentials';
|
|
2
2
|
import type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
5
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
|
+
type CollapsibleFieldBaseClientProps = {
|
|
7
|
+
readonly path?: string;
|
|
8
|
+
} & Pick<ServerFieldBase, 'permissions'>;
|
|
5
9
|
type CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>;
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
10
|
+
export type CollapsibleFieldClientProps = ClientFieldBase<CollapsibleFieldClientWithoutType> & CollapsibleFieldBaseClientProps;
|
|
11
|
+
export type CollapsibleFieldServerProps = ServerFieldBase<CollapsibleField, CollapsibleFieldClientWithoutType>;
|
|
12
|
+
export type CollapsibleFieldServerComponent = FieldServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
|
|
13
|
+
export type CollapsibleFieldClientComponent = FieldClientComponent<CollapsibleFieldClientWithoutType, CollapsibleFieldBaseClientProps>;
|
|
14
|
+
export type CollapsibleFieldLabelServerComponent = FieldLabelServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
|
|
8
15
|
export type CollapsibleFieldLabelClientComponent = FieldLabelClientComponent<CollapsibleFieldClientWithoutType>;
|
|
9
|
-
export type CollapsibleFieldDescriptionServerComponent = FieldDescriptionServerComponent<CollapsibleField>;
|
|
16
|
+
export type CollapsibleFieldDescriptionServerComponent = FieldDescriptionServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
|
|
10
17
|
export type CollapsibleFieldDescriptionClientComponent = FieldDescriptionClientComponent<CollapsibleFieldClientWithoutType>;
|
|
11
|
-
export type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<CollapsibleField>;
|
|
18
|
+
export type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<CollapsibleField, CollapsibleFieldClientWithoutType>;
|
|
12
19
|
export type CollapsibleFieldErrorClientComponent = FieldErrorClientComponent<CollapsibleFieldClientWithoutType>;
|
|
13
20
|
export {};
|
|
14
21
|
//# sourceMappingURL=Collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Collapsible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Collapsible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,+BAA+B,GAAG;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAA;AAExC,KAAK,iCAAiC,GAAG,YAAY,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAA;AAErF,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,iCAAiC,CAAC,GAC1F,+BAA+B,CAAA;AAEjC,MAAM,MAAM,2BAA2B,GAAG,eAAe,CACvD,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAChE,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAChE,iCAAiC,EACjC,+BAA+B,CAChC,CAAA;AAED,MAAM,MAAM,oCAAoC,GAAG,yBAAyB,CAC1E,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,oCAAoC,GAC9C,yBAAyB,CAAC,iCAAiC,CAAC,CAAA;AAE9D,MAAM,MAAM,0CAA0C,GAAG,+BAA+B,CACtF,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,0CAA0C,GACpD,+BAA+B,CAAC,iCAAiC,CAAC,CAAA;AAEpE,MAAM,MAAM,oCAAoC,GAAG,yBAAyB,CAC1E,gBAAgB,EAChB,iCAAiC,CAClC,CAAA;AAED,MAAM,MAAM,oCAAoC,GAC9C,yBAAyB,CAAC,iCAAiC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Collapsible.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Collapsible.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype CollapsibleFieldBaseClientProps = {\n readonly path?: string\n} & Pick<ServerFieldBase, 'permissions'>\n\ntype CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>\n\nexport type CollapsibleFieldClientProps = ClientFieldBase<CollapsibleFieldClientWithoutType> &\n CollapsibleFieldBaseClientProps\n\nexport type CollapsibleFieldServerProps = ServerFieldBase<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldServerComponent = FieldServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldClientComponent = FieldClientComponent<\n CollapsibleFieldClientWithoutType,\n CollapsibleFieldBaseClientProps\n>\n\nexport type CollapsibleFieldLabelServerComponent = FieldLabelServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldLabelClientComponent =\n FieldLabelClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<\n CollapsibleField,\n CollapsibleFieldClientWithoutType\n>\n\nexport type CollapsibleFieldErrorClientComponent =\n FieldErrorClientComponent<CollapsibleFieldClientWithoutType>\n"],"names":[],"mappings":"AA8DA,WAC8D"}
|