@payloadcms/ui 4.0.0-internal.d1cc1d3 → 4.0.0-internal.d21c039
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/css/app.css +1 -0
- package/dist/css/colors.css +7 -6
- package/dist/css/forms.css +1 -0
- package/dist/css/preflight.css +1 -0
- package/dist/css/spacing.css +18 -0
- package/dist/css/typography.css +158 -14
- package/dist/elements/APIKeyInput/index.d.ts +2 -0
- package/dist/elements/APIKeyInput/index.d.ts.map +1 -1
- package/dist/elements/APIKeyInput/index.js +27 -29
- package/dist/elements/APIKeyInput/index.js.map +1 -1
- package/dist/elements/AppHeader/EditViewWidthSettings/index.css +6 -0
- package/dist/elements/AppHeader/EditViewWidthSettings/index.d.ts +4 -0
- package/dist/elements/AppHeader/EditViewWidthSettings/index.d.ts.map +1 -0
- package/dist/elements/AppHeader/EditViewWidthSettings/index.js +96 -0
- package/dist/elements/AppHeader/EditViewWidthSettings/index.js.map +1 -0
- package/dist/elements/AppHeader/SettingsMenu/index.css +5 -0
- package/dist/elements/AppHeader/SettingsMenu/index.d.ts +4 -0
- package/dist/elements/AppHeader/SettingsMenu/index.d.ts.map +1 -0
- package/dist/elements/AppHeader/SettingsMenu/index.js +59 -0
- package/dist/elements/AppHeader/SettingsMenu/index.js.map +1 -0
- package/dist/elements/AppHeader/TypeSizeSettings/index.d.ts +3 -0
- package/dist/elements/AppHeader/TypeSizeSettings/index.d.ts.map +1 -0
- package/dist/elements/AppHeader/TypeSizeSettings/index.js +58 -0
- package/dist/elements/AppHeader/TypeSizeSettings/index.js.map +1 -0
- package/dist/elements/AppHeader/index.css +4 -0
- package/dist/elements/AppHeader/index.d.ts.map +1 -1
- package/dist/elements/AppHeader/index.js +3 -2
- package/dist/elements/AppHeader/index.js.map +1 -1
- package/dist/elements/ArrayAction/index.d.ts +1 -0
- package/dist/elements/ArrayAction/index.d.ts.map +1 -1
- package/dist/elements/ArrayAction/index.js +45 -32
- package/dist/elements/ArrayAction/index.js.map +1 -1
- package/dist/elements/Autosave/index.d.ts.map +1 -1
- package/dist/elements/Autosave/index.js +2 -3
- package/dist/elements/Autosave/index.js.map +1 -1
- package/dist/elements/Banner/index.css +4 -0
- package/dist/elements/Banner/index.d.ts.map +1 -1
- package/dist/elements/Banner/index.js +1 -0
- package/dist/elements/Banner/index.js.map +1 -1
- package/dist/elements/BulkUpload/ActionsBar/index.css +1 -0
- package/dist/elements/BulkUpload/AddFilesView/index.css +10 -4
- package/dist/elements/BulkUpload/AddFilesView/index.d.ts.map +1 -1
- package/dist/elements/BulkUpload/AddFilesView/index.js +71 -51
- package/dist/elements/BulkUpload/AddFilesView/index.js.map +1 -1
- package/dist/elements/BulkUpload/AddingFilesView/index.css +2 -4
- package/dist/elements/BulkUpload/FileSidebar/index.css +1 -0
- package/dist/elements/BulkUpload/FormsManager/createFormData.d.ts +1 -1
- package/dist/elements/BulkUpload/FormsManager/createFormData.d.ts.map +1 -1
- package/dist/elements/BulkUpload/FormsManager/createFormData.js +7 -3
- package/dist/elements/BulkUpload/FormsManager/createFormData.js.map +1 -1
- package/dist/elements/BulkUpload/FormsManager/index.d.ts.map +1 -1
- package/dist/elements/BulkUpload/FormsManager/index.js +18 -12
- package/dist/elements/BulkUpload/FormsManager/index.js.map +1 -1
- package/dist/elements/BulkUpload/index.css +2 -0
- package/dist/elements/Button/index.css +2 -2
- package/dist/elements/Button/index.d.ts.map +1 -1
- package/dist/elements/Button/index.js +2 -0
- package/dist/elements/Button/index.js.map +1 -1
- package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.d.ts +10 -0
- package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.d.ts.map +1 -1
- package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.js +65 -3
- package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.js.map +1 -1
- package/dist/elements/Collapsible/index.css +1 -0
- package/dist/elements/CopyLocaleData/index.d.ts.map +1 -1
- package/dist/elements/CopyLocaleData/index.js +8 -9
- package/dist/elements/CopyLocaleData/index.js.map +1 -1
- package/dist/elements/CopyToClipboard/index.d.ts +1 -0
- package/dist/elements/CopyToClipboard/index.d.ts.map +1 -1
- package/dist/elements/CopyToClipboard/index.js +10 -8
- package/dist/elements/CopyToClipboard/index.js.map +1 -1
- package/dist/elements/DatePicker/index.css +2 -0
- package/dist/elements/DeleteMany/index.d.ts.map +1 -1
- package/dist/elements/DeleteMany/index.js +2 -3
- package/dist/elements/DeleteMany/index.js.map +1 -1
- package/dist/elements/Dialog/index.css +1 -0
- package/dist/elements/DocumentControls/index.css +1 -0
- package/dist/elements/DocumentFields/index.css +2 -0
- package/dist/elements/DocumentHeader/DocumentHeaderRoot/index.js +4 -1
- package/dist/elements/DocumentHeader/DocumentHeaderRoot/index.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/index.d.ts +1 -0
- package/dist/elements/DocumentHeader/Tabs/Tab/index.d.ts.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/Tab/index.js +3 -2
- package/dist/elements/DocumentHeader/Tabs/Tab/index.js.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/index.css +1 -0
- package/dist/elements/DocumentHeader/Tabs/index.d.ts +1 -0
- package/dist/elements/DocumentHeader/Tabs/index.d.ts.map +1 -1
- package/dist/elements/DocumentHeader/Tabs/index.js +5 -3
- package/dist/elements/DocumentHeader/Tabs/index.js.map +1 -1
- package/dist/elements/DocumentHeader/index.css +22 -2
- package/dist/elements/DocumentHeader/index.d.ts +1 -0
- package/dist/elements/DocumentHeader/index.d.ts.map +1 -1
- package/dist/elements/DocumentHeader/index.js +6 -3
- package/dist/elements/DocumentHeader/index.js.map +1 -1
- package/dist/elements/Drawer/index.css +10 -4
- package/dist/elements/Dropzone/index.css +10 -4
- package/dist/elements/DuplicateDocument/SelectLocalesDrawer/index.js +3 -2
- package/dist/elements/DuplicateDocument/SelectLocalesDrawer/index.js.map +1 -1
- package/dist/elements/DuplicateDocument/index.d.ts.map +1 -1
- package/dist/elements/DuplicateDocument/index.js +2 -3
- package/dist/elements/DuplicateDocument/index.js.map +1 -1
- package/dist/elements/EditMany/DrawerContent.d.ts.map +1 -1
- package/dist/elements/EditMany/DrawerContent.js +2 -3
- package/dist/elements/EditMany/DrawerContent.js.map +1 -1
- package/dist/elements/EditUpload/index.css +1 -1
- package/dist/elements/FieldDiffContainer/index.css +1 -0
- package/dist/elements/FieldDiffLabel/index.css +1 -0
- package/dist/elements/FileDetails/StaticFileDetails/index.css +2 -0
- package/dist/elements/FileManager/FileToolbar/index.d.ts.map +1 -1
- package/dist/elements/FileManager/FileToolbar/index.js +3 -0
- package/dist/elements/FileManager/FileToolbar/index.js.map +1 -1
- package/dist/elements/FileManager/index.css +0 -30
- package/dist/elements/FileManager/index.d.ts.map +1 -1
- package/dist/elements/FileManager/index.js +379 -287
- package/dist/elements/FileManager/index.js.map +1 -1
- package/dist/elements/HTMLDiff/index.css +1 -0
- package/dist/elements/Hierarchy/MoveMany/index.d.ts.map +1 -1
- package/dist/elements/Hierarchy/MoveMany/index.js +2 -3
- package/dist/elements/Hierarchy/MoveMany/index.js.map +1 -1
- package/dist/elements/Hierarchy/Search/useHierarchySearch.d.ts.map +1 -1
- package/dist/elements/Hierarchy/Search/useHierarchySearch.js +2 -3
- package/dist/elements/Hierarchy/Search/useHierarchySearch.js.map +1 -1
- package/dist/elements/IDLabel/index.css +6 -0
- package/dist/elements/IDLabel/index.d.ts +1 -1
- package/dist/elements/IDLabel/index.d.ts.map +1 -1
- package/dist/elements/IDLabel/index.js +16 -21
- package/dist/elements/IDLabel/index.js.map +1 -1
- package/dist/elements/ItemsDrawer/index.css +3 -0
- package/dist/elements/ListControls/index.css +10 -4
- package/dist/elements/ListControls/index.d.ts.map +1 -1
- package/dist/elements/ListControls/index.js +7 -1
- package/dist/elements/ListControls/index.js.map +1 -1
- package/dist/elements/ListControls/types.d.ts +3 -1
- package/dist/elements/ListControls/types.d.ts.map +1 -1
- package/dist/elements/ListControls/types.js.map +1 -1
- package/dist/elements/ListControlsBar/index.css +8 -3
- package/dist/elements/ListControlsBar/index.js +4 -1
- package/dist/elements/ListControlsBar/index.js.map +1 -1
- package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.d.ts +1 -7
- package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.d.ts.map +1 -1
- package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.js +26 -32
- package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.js.map +1 -1
- package/dist/elements/ListHeader/TitleActions/ListEmptyTrashButton.d.ts.map +1 -1
- package/dist/elements/ListHeader/TitleActions/ListEmptyTrashButton.js +3 -4
- package/dist/elements/ListHeader/TitleActions/ListEmptyTrashButton.js.map +1 -1
- package/dist/elements/ListHeader/index.css +6 -1
- package/dist/elements/LivePreview/Window/index.css +1 -0
- package/dist/elements/LivePreview/Window/index.js +1 -1
- package/dist/elements/LivePreview/Window/index.js.map +1 -1
- package/dist/elements/Localizer/index.js +1 -1
- package/dist/elements/Localizer/index.js.map +1 -1
- package/dist/elements/Nav/SidebarTabs/renderTabServerFn.js +3 -2
- package/dist/elements/Nav/SidebarTabs/renderTabServerFn.js.map +1 -1
- package/dist/elements/Nav/index.css +2 -0
- package/dist/elements/PageControls/index.css +1 -0
- package/dist/elements/PillSelector/index.css +1 -0
- package/dist/elements/Popup/PopupButtonList/index.css +1 -1
- package/dist/elements/Popup/index.js +1 -1
- package/dist/elements/Popup/index.js.map +1 -1
- package/dist/elements/PreviewSizes/index.css +2 -0
- package/dist/elements/PublishButton/ScheduleDrawer/index.d.ts.map +1 -1
- package/dist/elements/PublishButton/ScheduleDrawer/index.js +9 -31
- package/dist/elements/PublishButton/ScheduleDrawer/index.js.map +1 -1
- package/dist/elements/PublishButton/ScheduleDrawer/types.d.ts +1 -1
- package/dist/elements/PublishButton/ScheduleDrawer/types.d.ts.map +1 -1
- package/dist/elements/PublishButton/ScheduleDrawer/types.js.map +1 -1
- package/dist/elements/PublishButton/index.css +1 -0
- package/dist/elements/PublishButton/index.d.ts.map +1 -1
- package/dist/elements/PublishButton/index.js +16 -31
- package/dist/elements/PublishButton/index.js.map +1 -1
- package/dist/elements/PublishMany/DrawerContent.d.ts.map +1 -1
- package/dist/elements/PublishMany/DrawerContent.js +2 -3
- package/dist/elements/PublishMany/DrawerContent.js.map +1 -1
- package/dist/elements/QueryPresets/QueryPresetBar/index.d.ts.map +1 -1
- package/dist/elements/QueryPresets/QueryPresetBar/index.js +15 -4
- package/dist/elements/QueryPresets/QueryPresetBar/index.js.map +1 -1
- package/dist/elements/QueryPresets/fields/Heading/index.css +1 -0
- package/dist/elements/RelationshipTable/index.d.ts.map +1 -1
- package/dist/elements/RelationshipTable/index.js +5 -2
- package/dist/elements/RelationshipTable/index.js.map +1 -1
- package/dist/elements/RenderTitle/index.css +12 -0
- package/dist/elements/RenderTitle/index.d.ts +1 -0
- package/dist/elements/RenderTitle/index.d.ts.map +1 -1
- package/dist/elements/RenderTitle/index.js +30 -17
- package/dist/elements/RenderTitle/index.js.map +1 -1
- package/dist/elements/RestoreMany/index.d.ts.map +1 -1
- package/dist/elements/RestoreMany/index.js +2 -3
- package/dist/elements/RestoreMany/index.js.map +1 -1
- package/dist/elements/SaveDraftButton/index.d.ts.map +1 -1
- package/dist/elements/SaveDraftButton/index.js +2 -3
- package/dist/elements/SaveDraftButton/index.js.map +1 -1
- package/dist/elements/SortHeader/index.d.ts.map +1 -1
- package/dist/elements/SortHeader/index.js +29 -26
- package/dist/elements/SortHeader/index.js.map +1 -1
- package/dist/elements/Status/index.d.ts.map +1 -1
- package/dist/elements/Status/index.js +2 -3
- package/dist/elements/Status/index.js.map +1 -1
- package/dist/elements/StepNav/index.css +64 -14
- package/dist/elements/StepNav/index.d.ts.map +1 -1
- package/dist/elements/StepNav/index.js +143 -69
- package/dist/elements/StepNav/index.js.map +1 -1
- package/dist/elements/Table/DefaultCell/index.d.ts.map +1 -1
- package/dist/elements/Table/DefaultCell/index.js +3 -11
- package/dist/elements/Table/DefaultCell/index.js.map +1 -1
- package/dist/elements/Table/OrderableTable.d.ts.map +1 -1
- package/dist/elements/Table/OrderableTable.js +2 -3
- package/dist/elements/Table/OrderableTable.js.map +1 -1
- package/dist/elements/Table/RelationshipProvider/index.d.ts.map +1 -1
- package/dist/elements/Table/RelationshipProvider/index.js +2 -3
- package/dist/elements/Table/RelationshipProvider/index.js.map +1 -1
- package/dist/elements/Table/index.css +1 -0
- package/dist/elements/TableSection/index.css +1 -0
- package/dist/elements/Tabs/index.css +1 -0
- package/dist/elements/Thumbnail/index.css +1 -0
- package/dist/elements/TimezonePicker/index.css +1 -0
- package/dist/elements/Tooltip/index.css +7 -0
- package/dist/elements/UnpublishButton/index.d.ts.map +1 -1
- package/dist/elements/UnpublishButton/index.js +3 -4
- package/dist/elements/UnpublishButton/index.js.map +1 -1
- package/dist/elements/UnpublishMany/DrawerContent.d.ts.map +1 -1
- package/dist/elements/UnpublishMany/DrawerContent.js +2 -3
- package/dist/elements/UnpublishMany/DrawerContent.js.map +1 -1
- package/dist/elements/Upload/UploadFromURLModal/index.d.ts +1 -1
- package/dist/elements/Upload/UploadFromURLModal/index.d.ts.map +1 -1
- package/dist/elements/Upload/UploadFromURLModal/index.js.map +1 -1
- package/dist/elements/Upload/index.css +39 -32
- package/dist/elements/Upload/index.d.ts.map +1 -1
- package/dist/elements/Upload/index.js +37 -99
- package/dist/elements/Upload/index.js.map +1 -1
- package/dist/elements/Upload/usePasteFromClipboard.d.ts +14 -0
- package/dist/elements/Upload/usePasteFromClipboard.d.ts.map +1 -0
- package/dist/elements/Upload/usePasteFromClipboard.js +93 -0
- package/dist/elements/Upload/usePasteFromClipboard.js.map +1 -0
- package/dist/elements/Upload/useUploadFromUrl.d.ts +20 -0
- package/dist/elements/Upload/useUploadFromUrl.d.ts.map +1 -0
- package/dist/elements/Upload/useUploadFromUrl.js +201 -0
- package/dist/elements/Upload/useUploadFromUrl.js.map +1 -0
- package/dist/elements/UploadDropzoneContent/index.css +31 -0
- package/dist/elements/UploadDropzoneContent/index.d.ts +17 -0
- package/dist/elements/UploadDropzoneContent/index.d.ts.map +1 -0
- package/dist/elements/UploadDropzoneContent/index.js +62 -0
- package/dist/elements/UploadDropzoneContent/index.js.map +1 -0
- package/dist/elements/WhereBuilder/Condition/Relationship/index.js +1 -1
- package/dist/elements/WhereBuilder/Condition/Relationship/index.js.map +1 -1
- package/dist/elements/WhereBuilder/Condition/index.css +1 -0
- package/dist/elements/WhereBuilder/conditionValue.d.ts +32 -0
- package/dist/elements/WhereBuilder/conditionValue.d.ts.map +1 -0
- package/dist/elements/WhereBuilder/conditionValue.js +32 -0
- package/dist/elements/WhereBuilder/conditionValue.js.map +1 -0
- package/dist/elements/WhereBuilder/index.css +2 -0
- package/dist/elements/WhereBuilder/index.d.ts.map +1 -1
- package/dist/elements/WhereBuilder/index.js +15 -4
- package/dist/elements/WhereBuilder/index.js.map +1 -1
- package/dist/exports/client/index.d.ts +4 -1
- package/dist/exports/client/index.d.ts.map +1 -1
- package/dist/exports/client/index.js +1 -1
- package/dist/exports/client/index.js.map +3 -3
- package/dist/exports/rsc/index.d.ts +2 -0
- package/dist/exports/rsc/index.d.ts.map +1 -1
- package/dist/exports/rsc/index.js +2 -0
- package/dist/exports/rsc/index.js.map +1 -1
- package/dist/fields/Array/ArrayRow.d.ts +1 -0
- package/dist/fields/Array/ArrayRow.d.ts.map +1 -1
- package/dist/fields/Array/ArrayRow.js +2 -0
- package/dist/fields/Array/ArrayRow.js.map +1 -1
- package/dist/fields/Array/index.css +1 -0
- package/dist/fields/Array/index.d.ts.map +1 -1
- package/dist/fields/Array/index.js +40 -13
- package/dist/fields/Array/index.js.map +1 -1
- package/dist/fields/Blocks/BlockRow.d.ts +1 -0
- package/dist/fields/Blocks/BlockRow.d.ts.map +1 -1
- package/dist/fields/Blocks/BlockRow.js +2 -0
- package/dist/fields/Blocks/BlockRow.js.map +1 -1
- package/dist/fields/Blocks/RowActions.d.ts +1 -0
- package/dist/fields/Blocks/RowActions.d.ts.map +1 -1
- package/dist/fields/Blocks/RowActions.js +22 -19
- package/dist/fields/Blocks/RowActions.js.map +1 -1
- package/dist/fields/Blocks/index.css +1 -0
- package/dist/fields/Blocks/index.d.ts.map +1 -1
- package/dist/fields/Blocks/index.js +37 -10
- package/dist/fields/Blocks/index.js.map +1 -1
- package/dist/fields/Checkbox/Input.d.ts +2 -2
- package/dist/fields/Checkbox/Input.js.map +1 -1
- package/dist/fields/Checkbox/index.css +48 -67
- package/dist/fields/FieldDescription/index.css +5 -0
- package/dist/fields/FieldLabel/index.css +22 -28
- package/dist/fields/FieldLabel/index.js +7 -8
- package/dist/fields/FieldLabel/index.js.map +1 -1
- package/dist/fields/Group/index.css +11 -4
- package/dist/fields/RadioGroup/Radio/index.css +42 -19
- package/dist/fields/RadioGroup/index.css +2 -20
- package/dist/fields/Relationship/Input.d.ts.map +1 -1
- package/dist/fields/Relationship/Input.js +2 -3
- package/dist/fields/Relationship/Input.js.map +1 -1
- package/dist/fields/Row/index.css +2 -0
- package/dist/fields/Slug/index.d.ts.map +1 -1
- package/dist/fields/Slug/index.js +2 -3
- package/dist/fields/Slug/index.js.map +1 -1
- package/dist/fields/Tabs/index.css +9 -0
- package/dist/fields/Textarea/index.css +1 -1
- package/dist/fields/Upload/Input.d.ts.map +1 -1
- package/dist/fields/Upload/Input.js +46 -19
- package/dist/fields/Upload/Input.js.map +1 -1
- package/dist/fields/shared/index.d.ts +1 -1
- package/dist/fields/shared/index.d.ts.map +1 -1
- package/dist/fields/shared/index.js.map +1 -1
- package/dist/forms/Form/context.d.ts +3 -1
- package/dist/forms/Form/context.d.ts.map +1 -1
- package/dist/forms/Form/context.js +3 -1
- package/dist/forms/Form/context.js.map +1 -1
- package/dist/forms/Form/index.d.ts.map +1 -1
- package/dist/forms/Form/index.js +19 -8
- package/dist/forms/Form/index.js.map +1 -1
- package/dist/forms/NullifyField/index.d.ts.map +1 -1
- package/dist/forms/NullifyField/index.js +2 -3
- package/dist/forms/NullifyField/index.js.map +1 -1
- package/dist/forms/RenderFields/index.css +1 -7
- package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js +1 -0
- package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/renderField.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/renderField.js +3 -2
- package/dist/forms/fieldSchemasToFormState/renderField.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/serverFunctions/mergeAllowedFieldOverrides.d.ts +12 -0
- package/dist/forms/fieldSchemasToFormState/serverFunctions/mergeAllowedFieldOverrides.d.ts.map +1 -0
- package/dist/forms/fieldSchemasToFormState/serverFunctions/mergeAllowedFieldOverrides.js +42 -0
- package/dist/forms/fieldSchemasToFormState/serverFunctions/mergeAllowedFieldOverrides.js.map +1 -0
- package/dist/forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.d.ts +8 -6
- package/dist/forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js +22 -9
- package/dist/forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/types.d.ts +1 -0
- package/dist/forms/fieldSchemasToFormState/types.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/types.js.map +1 -1
- package/dist/hooks/useControllableState.js +3 -3
- package/dist/hooks/useControllableState.js.map +1 -1
- package/dist/hooks/usePayloadAPI.d.ts.map +1 -1
- package/dist/hooks/usePayloadAPI.js +2 -3
- package/dist/hooks/usePayloadAPI.js.map +1 -1
- package/dist/icons/Edit/index.d.ts +0 -1
- package/dist/icons/Edit/index.d.ts.map +1 -1
- package/dist/icons/Edit/index.js +4 -4
- package/dist/icons/Edit/index.js.map +1 -1
- package/dist/layouts/Root/index.d.ts.map +1 -1
- package/dist/layouts/Root/index.js +22 -5
- package/dist/layouts/Root/index.js.map +1 -1
- package/dist/providers/Actions/index.d.ts +1 -0
- package/dist/providers/Actions/index.d.ts.map +1 -1
- package/dist/providers/Actions/index.js +43 -11
- package/dist/providers/Actions/index.js.map +1 -1
- package/dist/providers/Auth/AuthSessionDebug/index.css +48 -0
- package/dist/providers/Auth/AuthSessionDebug/index.d.ts +13 -0
- package/dist/providers/Auth/AuthSessionDebug/index.d.ts.map +1 -0
- package/dist/providers/Auth/AuthSessionDebug/index.js +93 -0
- package/dist/providers/Auth/AuthSessionDebug/index.js.map +1 -0
- package/dist/providers/Auth/AuthSessionDebug/utilities.d.ts +21 -0
- package/dist/providers/Auth/AuthSessionDebug/utilities.d.ts.map +1 -0
- package/dist/providers/Auth/AuthSessionDebug/utilities.js +53 -0
- package/dist/providers/Auth/AuthSessionDebug/utilities.js.map +1 -0
- package/dist/providers/Auth/authSessionRequests.d.ts +27 -0
- package/dist/providers/Auth/authSessionRequests.d.ts.map +1 -0
- package/dist/providers/Auth/authSessionRequests.js +119 -0
- package/dist/providers/Auth/authSessionRequests.js.map +1 -0
- package/dist/providers/Auth/index.d.ts +2 -56
- package/dist/providers/Auth/index.d.ts.map +1 -1
- package/dist/providers/Auth/index.js +283 -135
- package/dist/providers/Auth/index.js.map +1 -1
- package/dist/providers/Auth/sessionActivity.d.ts +23 -0
- package/dist/providers/Auth/sessionActivity.d.ts.map +1 -0
- package/dist/providers/Auth/sessionActivity.js +49 -0
- package/dist/providers/Auth/sessionActivity.js.map +1 -0
- package/dist/providers/Auth/sessionTiming.d.ts +11 -0
- package/dist/providers/Auth/sessionTiming.d.ts.map +1 -0
- package/dist/providers/Auth/sessionTiming.js +18 -0
- package/dist/providers/Auth/sessionTiming.js.map +1 -0
- package/dist/providers/Auth/tabSessionSync/index.d.ts +17 -0
- package/dist/providers/Auth/tabSessionSync/index.d.ts.map +1 -0
- package/dist/providers/Auth/tabSessionSync/index.js +263 -0
- package/dist/providers/Auth/tabSessionSync/index.js.map +1 -0
- package/dist/providers/Auth/tabSessionSync/types.d.ts +107 -0
- package/dist/providers/Auth/tabSessionSync/types.d.ts.map +1 -0
- package/dist/providers/Auth/tabSessionSync/types.js +6 -0
- package/dist/providers/Auth/tabSessionSync/types.js.map +1 -0
- package/dist/providers/Auth/tabSessionSync/useTabSessionSync.d.ts +11 -0
- package/dist/providers/Auth/tabSessionSync/useTabSessionSync.d.ts.map +1 -0
- package/dist/providers/Auth/tabSessionSync/useTabSessionSync.js +90 -0
- package/dist/providers/Auth/tabSessionSync/useTabSessionSync.js.map +1 -0
- package/dist/providers/Auth/tabSessionSync/utilities.d.ts +26 -0
- package/dist/providers/Auth/tabSessionSync/utilities.d.ts.map +1 -0
- package/dist/providers/Auth/tabSessionSync/utilities.js +159 -0
- package/dist/providers/Auth/tabSessionSync/utilities.js.map +1 -0
- package/dist/providers/Auth/types.d.ts +65 -0
- package/dist/providers/Auth/types.d.ts.map +1 -0
- package/dist/providers/Auth/types.js +2 -0
- package/dist/providers/Auth/types.js.map +1 -0
- package/dist/providers/Auth/useAuthSessionTimers.d.ts +26 -0
- package/dist/providers/Auth/useAuthSessionTimers.d.ts.map +1 -0
- package/dist/providers/Auth/useAuthSessionTimers.js +203 -0
- package/dist/providers/Auth/useAuthSessionTimers.js.map +1 -0
- package/dist/providers/DocumentInfo/index.d.ts.map +1 -1
- package/dist/providers/DocumentInfo/index.js +32 -22
- package/dist/providers/DocumentInfo/index.js.map +1 -1
- package/dist/providers/FormErrorHandler/index.d.ts +5 -1
- package/dist/providers/FormErrorHandler/index.d.ts.map +1 -1
- package/dist/providers/FormErrorHandler/index.js.map +1 -1
- package/dist/providers/LivePreview/index.d.ts.map +1 -1
- package/dist/providers/LivePreview/index.js +13 -6
- package/dist/providers/LivePreview/index.js.map +1 -1
- package/dist/providers/Locale/index.d.ts +1 -5
- package/dist/providers/Locale/index.d.ts.map +1 -1
- package/dist/providers/Locale/index.js +64 -138
- package/dist/providers/Locale/index.js.map +1 -1
- package/dist/providers/Root/index.d.ts +5 -1
- package/dist/providers/Root/index.d.ts.map +1 -1
- package/dist/providers/Root/index.js +32 -20
- package/dist/providers/Root/index.js.map +1 -1
- package/dist/providers/RouteTransition/ProgressBar/index.js +4 -1
- package/dist/providers/RouteTransition/ProgressBar/index.js.map +1 -1
- package/dist/providers/RouteTransition/index.d.ts +2 -0
- package/dist/providers/RouteTransition/index.d.ts.map +1 -1
- package/dist/providers/RouteTransition/index.js +42 -14
- package/dist/providers/RouteTransition/index.js.map +1 -1
- package/dist/providers/Selection/index.d.ts.map +1 -1
- package/dist/providers/Selection/index.js +2 -3
- package/dist/providers/Selection/index.js.map +1 -1
- package/dist/providers/ServerFunctions/index.d.ts +5 -1
- package/dist/providers/ServerFunctions/index.d.ts.map +1 -1
- package/dist/providers/ServerFunctions/index.js +15 -0
- package/dist/providers/ServerFunctions/index.js.map +1 -1
- package/dist/providers/TableColumns/buildColumnState/index.d.ts.map +1 -1
- package/dist/providers/TableColumns/buildColumnState/index.js +0 -1
- package/dist/providers/TableColumns/buildColumnState/index.js.map +1 -1
- package/dist/providers/Theme/index.d.ts +22 -1
- package/dist/providers/Theme/index.d.ts.map +1 -1
- package/dist/providers/Theme/index.js +313 -84
- package/dist/providers/Theme/index.js.map +1 -1
- package/dist/providers/Theme/shared.d.ts +8 -0
- package/dist/providers/Theme/shared.d.ts.map +1 -1
- package/dist/providers/Theme/shared.js +6 -0
- package/dist/providers/Theme/shared.js.map +1 -1
- package/dist/styles.css +186 -21
- package/dist/templates/Default/Wrapper/index.css +2 -0
- package/dist/templates/Default/index.css +1 -0
- package/dist/templates/Default/index.d.ts +1 -0
- package/dist/templates/Default/index.d.ts.map +1 -1
- package/dist/templates/Default/index.js +2 -0
- package/dist/templates/Default/index.js.map +1 -1
- package/dist/utilities/buildFormState.d.ts.map +1 -1
- package/dist/utilities/buildFormState.js +6 -2
- package/dist/utilities/buildFormState.js.map +1 -1
- package/dist/utilities/formatAbsoluteURL.d.ts +1 -1
- package/dist/utilities/formatAbsoluteURL.d.ts.map +1 -1
- package/dist/utilities/formatAbsoluteURL.js +18 -8
- package/dist/utilities/formatAbsoluteURL.js.map +1 -1
- package/dist/utilities/formatMetadata.d.ts.map +1 -1
- package/dist/utilities/formatMetadata.js +0 -5
- package/dist/utilities/formatMetadata.js.map +1 -1
- package/dist/utilities/getFilesFromClipboard.d.ts +10 -0
- package/dist/utilities/getFilesFromClipboard.d.ts.map +1 -0
- package/dist/utilities/getFilesFromClipboard.js +49 -0
- package/dist/utilities/getFilesFromClipboard.js.map +1 -0
- package/dist/utilities/getHasScheduledPublish.d.ts +2 -3
- package/dist/utilities/getHasScheduledPublish.d.ts.map +1 -1
- package/dist/utilities/getHasScheduledPublish.js +2 -5
- package/dist/utilities/getHasScheduledPublish.js.map +1 -1
- package/dist/utilities/handleAuthRedirect.d.ts.map +1 -1
- package/dist/utilities/handleAuthRedirect.js +4 -1
- package/dist/utilities/handleAuthRedirect.js.map +1 -1
- package/dist/utilities/handleServerFunctions.d.ts.map +1 -1
- package/dist/utilities/handleServerFunctions.js +4 -2
- package/dist/utilities/handleServerFunctions.js.map +1 -1
- package/dist/utilities/initReq.d.ts.map +1 -1
- package/dist/utilities/initReq.js +40 -5
- package/dist/utilities/initReq.js.map +1 -1
- package/dist/utilities/isAbsoluteURL.d.ts +3 -0
- package/dist/utilities/isAbsoluteURL.d.ts.map +1 -0
- package/dist/utilities/isAbsoluteURL.js +15 -0
- package/dist/utilities/isAbsoluteURL.js.map +1 -0
- package/dist/utilities/isHttpURL.d.ts +3 -0
- package/dist/utilities/isHttpURL.d.ts.map +1 -0
- package/dist/utilities/isHttpURL.js +12 -0
- package/dist/utilities/isHttpURL.js.map +1 -0
- package/dist/utilities/isPathMatchingRoute.d.ts.map +1 -1
- package/dist/utilities/isPathMatchingRoute.js +7 -5
- package/dist/utilities/isPathMatchingRoute.js.map +1 -1
- package/dist/utilities/isPublicAdminRoute.d.ts.map +1 -1
- package/dist/utilities/isPublicAdminRoute.js +9 -6
- package/dist/utilities/isPublicAdminRoute.js.map +1 -1
- package/dist/utilities/schedulePublishHandler.d.ts +8 -1
- package/dist/utilities/schedulePublishHandler.d.ts.map +1 -1
- package/dist/utilities/schedulePublishHandler.js +72 -5
- package/dist/utilities/schedulePublishHandler.js.map +1 -1
- package/dist/utilities/serverFunctionRegistry.d.ts.map +1 -1
- package/dist/utilities/serverFunctionRegistry.js +2 -1
- package/dist/utilities/serverFunctionRegistry.js.map +1 -1
- package/dist/utilities/slugify.d.ts.map +1 -1
- package/dist/utilities/slugify.js +3 -0
- package/dist/utilities/slugify.js.map +1 -1
- package/dist/views/API/index.client.d.ts.map +1 -1
- package/dist/views/API/index.client.js +2 -3
- package/dist/views/API/index.client.js.map +1 -1
- package/dist/views/API/index.css +9 -0
- package/dist/views/Account/index.d.ts +1 -1
- package/dist/views/Account/index.d.ts.map +1 -1
- package/dist/views/Account/index.js +8 -5
- package/dist/views/Account/index.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js +3 -2
- package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js +7 -7
- package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js +104 -66
- package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.css +35 -140
- package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/index.js +1 -0
- package/dist/views/Dashboard/Default/ModularDashboard/index.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js +3 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js +2 -0
- package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js.map +1 -1
- package/dist/views/Dashboard/index.d.ts.map +1 -1
- package/dist/views/Dashboard/index.js +2 -3
- package/dist/views/Dashboard/index.js.map +1 -1
- package/dist/views/Document/handleServerFunction.d.ts.map +1 -1
- package/dist/views/Document/handleServerFunction.js +2 -0
- package/dist/views/Document/handleServerFunction.js.map +1 -1
- package/dist/views/Document/index.d.ts +1 -1
- package/dist/views/Document/index.d.ts.map +1 -1
- package/dist/views/Document/index.js +10 -6
- package/dist/views/Document/index.js.map +1 -1
- package/dist/views/Document/renderDocumentSlots.d.ts +1 -0
- package/dist/views/Document/renderDocumentSlots.d.ts.map +1 -1
- package/dist/views/Document/renderDocumentSlots.js +7 -4
- package/dist/views/Document/renderDocumentSlots.js.map +1 -1
- package/dist/views/Edit/Auth/APIKey.d.ts +1 -1
- package/dist/views/Edit/Auth/APIKey.d.ts.map +1 -1
- package/dist/views/Edit/Auth/APIKey.js +233 -59
- package/dist/views/Edit/Auth/APIKey.js.map +1 -1
- package/dist/views/Edit/Auth/APIKeyGenerationModal.d.ts +12 -0
- package/dist/views/Edit/Auth/APIKeyGenerationModal.d.ts.map +1 -0
- package/dist/views/Edit/Auth/APIKeyGenerationModal.js +117 -0
- package/dist/views/Edit/Auth/APIKeyGenerationModal.js.map +1 -0
- package/dist/views/Edit/Auth/index.css +91 -0
- package/dist/views/Edit/Auth/index.d.ts.map +1 -1
- package/dist/views/Edit/Auth/index.js +10 -28
- package/dist/views/Edit/Auth/index.js.map +1 -1
- package/dist/views/Edit/Auth/types.d.ts +3 -1
- package/dist/views/Edit/Auth/types.d.ts.map +1 -1
- package/dist/views/Edit/Auth/types.js.map +1 -1
- package/dist/views/Edit/SetDocumentTitle/index.d.ts.map +1 -1
- package/dist/views/Edit/SetDocumentTitle/index.js +4 -1
- package/dist/views/Edit/SetDocumentTitle/index.js.map +1 -1
- package/dist/views/Edit/index.css +19 -0
- package/dist/views/Edit/index.d.ts.map +1 -1
- package/dist/views/Edit/index.js +16 -2
- package/dist/views/Edit/index.js.map +1 -1
- package/dist/views/Edit/useEditViewWidth.d.ts +8 -0
- package/dist/views/Edit/useEditViewWidth.d.ts.map +1 -0
- package/dist/views/Edit/useEditViewWidth.js +56 -0
- package/dist/views/Edit/useEditViewWidth.js.map +1 -0
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.css +14 -0
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +1 -1
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +209 -161
- package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +1 -1
- package/dist/views/ForgotPassword/index.d.ts.map +1 -1
- package/dist/views/ForgotPassword/index.js +2 -11
- package/dist/views/ForgotPassword/index.js.map +1 -1
- package/dist/views/HierarchyList/HierarchyTable/SlotTable.css +1 -0
- package/dist/views/HierarchyList/index.css +16 -0
- package/dist/views/List/ListHeader/index.css +6 -0
- package/dist/views/List/ListHeader/index.d.ts +1 -11
- package/dist/views/List/ListHeader/index.d.ts.map +1 -1
- package/dist/views/List/ListHeader/index.js +3 -9
- package/dist/views/List/ListHeader/index.js.map +1 -1
- package/dist/views/List/handleServerFunction.d.ts.map +1 -1
- package/dist/views/List/handleServerFunction.js +3 -1
- package/dist/views/List/handleServerFunction.js.map +1 -1
- package/dist/views/List/index.client.d.ts.map +1 -1
- package/dist/views/List/index.client.js +3 -16
- package/dist/views/List/index.client.js.map +1 -1
- package/dist/views/List/index.css +19 -0
- package/dist/views/List/index.d.ts.map +1 -1
- package/dist/views/List/index.js +2 -1
- package/dist/views/List/index.js.map +1 -1
- package/dist/views/NotFound/client.d.ts +2 -0
- package/dist/views/NotFound/client.d.ts.map +1 -0
- package/dist/views/NotFound/client.js +4 -0
- package/dist/views/NotFound/client.js.map +1 -0
- package/dist/views/NotFound/page.d.ts.map +1 -1
- package/dist/views/NotFound/page.js +4 -3
- package/dist/views/NotFound/page.js.map +1 -1
- package/dist/views/Root/getCustomCollectionViewByRoute.d.ts.map +1 -1
- package/dist/views/Root/getCustomCollectionViewByRoute.js.map +1 -1
- package/dist/views/Root/getCustomGlobalViewByRoute.d.ts.map +1 -1
- package/dist/views/Root/getCustomGlobalViewByRoute.js.map +1 -1
- package/dist/views/Root/getCustomViewByKey.d.ts.map +1 -1
- package/dist/views/Root/getCustomViewByKey.js.map +1 -1
- package/dist/views/Root/index.d.ts.map +1 -1
- package/dist/views/Root/index.js +32 -22
- package/dist/views/Root/index.js.map +1 -1
- package/dist/views/Verify/index.d.ts +1 -1
- package/dist/views/Verify/index.d.ts.map +1 -1
- package/dist/views/Verify/index.js +4 -4
- package/dist/views/Verify/index.js.map +1 -1
- package/dist/views/Version/Default/SetStepNav.d.ts.map +1 -1
- package/dist/views/Version/Default/SetStepNav.js +10 -13
- package/dist/views/Version/Default/SetStepNav.js.map +1 -1
- package/dist/views/Version/Default/index.css +29 -9
- package/dist/views/Version/Default/index.d.ts.map +1 -1
- package/dist/views/Version/Default/index.js +16 -13
- package/dist/views/Version/Default/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts +1 -0
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +56 -50
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +41 -27
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.css +8 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +10 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.css +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.css +1 -0
- package/dist/views/Version/RenderFieldsToDiff/index.css +2 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +33 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts +8 -2
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +17 -19
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +1 -1
- package/dist/views/Version/Restore/index.d.ts.map +1 -1
- package/dist/views/Version/Restore/index.js +9 -6
- package/dist/views/Version/Restore/index.js.map +1 -1
- package/dist/views/Version/generateVersionViewMetadata.js.map +1 -1
- package/dist/views/Versions/VersionPillLabel/VersionPillLabel.d.ts.map +1 -1
- package/dist/views/Versions/VersionPillLabel/VersionPillLabel.js +2 -3
- package/dist/views/Versions/VersionPillLabel/VersionPillLabel.js.map +1 -1
- package/dist/views/Versions/VersionPillLabel/index.css +1 -0
- package/dist/views/Versions/generateVersionsViewMetadata.js.map +1 -1
- package/dist/views/Versions/index.css +7 -0
- package/dist/widgets/CollectionCards/index.client.js +1 -1
- package/dist/widgets/CollectionCards/index.client.js.map +1 -1
- package/dist/widgets/CollectionCards/index.css +40 -35
- package/dist/widgets/CollectionCards/index.js +1 -1
- package/dist/widgets/CollectionCards/index.js.map +1 -1
- package/dist/widgets/RecentlyViewed/DocumentActivity/index.css +184 -0
- package/dist/widgets/RecentlyViewed/DocumentActivity/index.d.ts +5 -0
- package/dist/widgets/RecentlyViewed/DocumentActivity/index.d.ts.map +1 -0
- package/dist/widgets/RecentlyViewed/DocumentActivity/index.js +225 -0
- package/dist/widgets/RecentlyViewed/DocumentActivity/index.js.map +1 -0
- package/dist/widgets/RecentlyViewed/DocumentItem/index.css +180 -0
- package/dist/widgets/RecentlyViewed/DocumentItem/index.d.ts +11 -0
- package/dist/widgets/RecentlyViewed/DocumentItem/index.d.ts.map +1 -0
- package/dist/widgets/RecentlyViewed/DocumentItem/index.js +104 -0
- package/dist/widgets/RecentlyViewed/DocumentItem/index.js.map +1 -0
- package/dist/widgets/RecentlyViewed/getDocumentThumbnail.d.ts +10 -0
- package/dist/widgets/RecentlyViewed/getDocumentThumbnail.d.ts.map +1 -0
- package/dist/widgets/RecentlyViewed/getDocumentThumbnail.js +85 -0
- package/dist/widgets/RecentlyViewed/getDocumentThumbnail.js.map +1 -0
- package/dist/widgets/RecentlyViewed/getDocumentWidgetData.d.ts +7 -0
- package/dist/widgets/RecentlyViewed/getDocumentWidgetData.d.ts.map +1 -0
- package/dist/widgets/RecentlyViewed/getDocumentWidgetData.js +206 -0
- package/dist/widgets/RecentlyViewed/getDocumentWidgetData.js.map +1 -0
- package/dist/widgets/RecentlyViewed/index.d.ts +3 -5
- package/dist/widgets/RecentlyViewed/index.d.ts.map +1 -1
- package/dist/widgets/RecentlyViewed/index.js +10 -140
- package/dist/widgets/RecentlyViewed/index.js.map +1 -1
- package/dist/widgets/RecentlyViewed/shared.d.ts +38 -0
- package/dist/widgets/RecentlyViewed/shared.d.ts.map +1 -0
- package/dist/widgets/RecentlyViewed/shared.js +70 -0
- package/dist/widgets/RecentlyViewed/shared.js.map +1 -0
- package/dist/widgets/UploadDropzone/index.client.d.ts +7 -0
- package/dist/widgets/UploadDropzone/index.client.d.ts.map +1 -0
- package/dist/widgets/UploadDropzone/index.client.js +134 -0
- package/dist/widgets/UploadDropzone/index.client.js.map +1 -0
- package/dist/widgets/UploadDropzone/index.css +50 -0
- package/dist/widgets/UploadDropzone/index.d.ts +8 -0
- package/dist/widgets/UploadDropzone/index.d.ts.map +1 -0
- package/dist/widgets/UploadDropzone/index.js +29 -0
- package/dist/widgets/UploadDropzone/index.js.map +1 -0
- package/dist/widgets/Welcome/index.css +13 -0
- package/dist/widgets/Welcome/index.d.ts +5 -0
- package/dist/widgets/Welcome/index.d.ts.map +1 -0
- package/dist/widgets/Welcome/index.js +26 -0
- package/dist/widgets/Welcome/index.js.map +1 -0
- package/dist/widgets/WidgetIcon/assets/images.svg +3 -0
- package/dist/widgets/WidgetIcon/assets/pin-solid.svg +3 -0
- package/dist/widgets/WidgetIcon/assets/pin.svg +3 -0
- package/dist/widgets/WidgetIcon/assets/table.svg +3 -0
- package/dist/widgets/WidgetIcon/index.css +23 -0
- package/dist/widgets/WidgetIcon/index.d.ts +6 -0
- package/dist/widgets/WidgetIcon/index.d.ts.map +1 -0
- package/dist/widgets/WidgetIcon/index.js +10 -0
- package/dist/widgets/WidgetIcon/index.js.map +1 -0
- package/package.json +11 -5
- package/dist/elements/ClipboardAction/clipboardUtilities.spec.js +0 -120
- package/dist/elements/ClipboardAction/clipboardUtilities.spec.js.map +0 -1
- package/dist/elements/ClipboardAction/isClipboardDataValid.spec.js +0 -144
- package/dist/elements/ClipboardAction/isClipboardDataValid.spec.js.map +0 -1
- package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.spec.js +0 -541
- package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.spec.js.map +0 -1
- package/dist/elements/ColumnSelection/matchesColumnSearch.spec.js +0 -87
- package/dist/elements/ColumnSelection/matchesColumnSearch.spec.js.map +0 -1
- package/dist/elements/CommandPalette/buildActions.spec.js +0 -158
- package/dist/elements/CommandPalette/buildActions.spec.js.map +0 -1
- package/dist/elements/CommandPalette/highlightLabel.spec.js +0 -78
- package/dist/elements/CommandPalette/highlightLabel.spec.js.map +0 -1
- package/dist/elements/FieldSelect/reduceFieldOptions.spec.js +0 -143
- package/dist/elements/FieldSelect/reduceFieldOptions.spec.js.map +0 -1
- package/dist/elements/Toasts/fieldErrors.spec.js +0 -46
- package/dist/elements/Toasts/fieldErrors.spec.js.map +0 -1
- package/dist/elements/WhereBuilder/Condition/Relationship/optionsReducer.spec.js +0 -152
- package/dist/elements/WhereBuilder/Condition/Relationship/optionsReducer.spec.js.map +0 -1
- package/dist/forms/fieldSchemasToFormState/fieldSchemasToFormState.spec.d.ts +0 -2
- package/dist/forms/fieldSchemasToFormState/fieldSchemasToFormState.spec.d.ts.map +0 -1
- package/dist/forms/fieldSchemasToFormState/fieldSchemasToFormState.spec.js +0 -67
- package/dist/forms/fieldSchemasToFormState/fieldSchemasToFormState.spec.js.map +0 -1
- package/dist/layouts/Root/index.spec.js +0 -20
- package/dist/layouts/Root/index.spec.js.map +0 -1
- package/dist/providers/TableColumns/buildColumnState/index.spec.js +0 -40
- package/dist/providers/TableColumns/buildColumnState/index.spec.js.map +0 -1
- package/dist/utilities/appendCacheTag.spec.js +0 -34
- package/dist/utilities/appendCacheTag.spec.js.map +0 -1
- package/dist/utilities/formatMetadata.spec.js +0 -83
- package/dist/utilities/formatMetadata.spec.js.map +0 -1
- package/dist/utilities/fuzzyMatch.spec.js +0 -38
- package/dist/utilities/fuzzyMatch.spec.js.map +0 -1
- package/dist/utilities/isCustomAdminView.spec.js +0 -90
- package/dist/utilities/isCustomAdminView.spec.js.map +0 -1
- package/dist/utilities/isPathMatchingRoute.spec.js +0 -178
- package/dist/utilities/isPathMatchingRoute.spec.js.map +0 -1
- package/dist/utilities/normalizeRelationshipValue.spec.js +0 -373
- package/dist/utilities/normalizeRelationshipValue.spec.js.map +0 -1
- package/dist/utilities/recentlyViewed.spec.js +0 -92
- package/dist/utilities/recentlyViewed.spec.js.map +0 -1
- package/dist/views/Root/getCustomCollectionViewByRoute.spec.js +0 -168
- package/dist/views/Root/getCustomCollectionViewByRoute.spec.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js +0 -861
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js +0 -47
- package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +0 -135
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +0 -1
- package/dist/widgets/CollectionQuery/getCollectionFieldPaths.spec.js +0 -100
- package/dist/widgets/CollectionQuery/getCollectionFieldPaths.spec.js.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
4
|
import { email, formatAdminURL, text } from 'payload/shared';
|
|
6
|
-
import React, { useState } from 'react';
|
|
5
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
6
|
+
import { Button } from '../../../elements/Button/index.js';
|
|
7
7
|
import { FormHeader } from '../../../elements/FormHeader/index.js';
|
|
8
|
+
import { Link } from '../../../elements/Link/index.js';
|
|
8
9
|
import { EmailField } from '../../../fields/Email/index.js';
|
|
9
10
|
import { TextField } from '../../../fields/Text/index.js';
|
|
10
11
|
import { Form } from '../../../forms/Form/index.js';
|
|
@@ -13,181 +14,228 @@ import { useConfig } from '../../../providers/Config/index.js';
|
|
|
13
14
|
import { useTranslation } from '../../../providers/Translation/index.js';
|
|
14
15
|
import './index.css';
|
|
15
16
|
const baseClass = 'forgot-password__form';
|
|
17
|
+
const formatResendDelay = seconds => `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`;
|
|
18
|
+
const removeStoredRequest = sessionStorageKey => {
|
|
19
|
+
try {
|
|
20
|
+
window.sessionStorage.removeItem(sessionStorageKey);
|
|
21
|
+
} catch {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const saveStoredRequest = ({
|
|
26
|
+
request,
|
|
27
|
+
sessionStorageKey
|
|
28
|
+
}) => {
|
|
29
|
+
try {
|
|
30
|
+
window.sessionStorage.setItem(sessionStorageKey, JSON.stringify(request));
|
|
31
|
+
} catch {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
16
35
|
export const ForgotPasswordForm = () => {
|
|
17
|
-
const $ = _c(17);
|
|
18
36
|
const {
|
|
19
37
|
config,
|
|
20
38
|
getEntityConfig
|
|
21
39
|
} = useConfig();
|
|
22
40
|
const {
|
|
23
|
-
admin:
|
|
24
|
-
|
|
41
|
+
admin: {
|
|
42
|
+
routes: {
|
|
43
|
+
login: loginRoute
|
|
44
|
+
},
|
|
45
|
+
user: userSlug
|
|
46
|
+
},
|
|
47
|
+
routes: {
|
|
48
|
+
admin: adminRoute,
|
|
49
|
+
api: apiRoute
|
|
50
|
+
}
|
|
25
51
|
} = config;
|
|
26
|
-
const {
|
|
27
|
-
user: userSlug
|
|
28
|
-
} = t0;
|
|
29
|
-
const {
|
|
30
|
-
api: apiRoute
|
|
31
|
-
} = t1;
|
|
32
52
|
const {
|
|
33
53
|
t
|
|
34
54
|
} = useTranslation();
|
|
35
55
|
const [hasSubmitted, setHasSubmitted] = useState(false);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
$[2] = t2;
|
|
44
|
-
} else {
|
|
45
|
-
t2 = $[2];
|
|
46
|
-
}
|
|
47
|
-
const collectionConfig = t2;
|
|
56
|
+
const [resendDelay, setResendDelay] = useState(0);
|
|
57
|
+
const [storedRequest, setStoredRequest] = useState(null);
|
|
58
|
+
const resendAvailableAt = useRef(0);
|
|
59
|
+
const submittedIdentifier = useRef(null);
|
|
60
|
+
const collectionConfig = getEntityConfig({
|
|
61
|
+
collectionSlug: userSlug
|
|
62
|
+
});
|
|
48
63
|
const loginWithUsername = collectionConfig?.auth?.loginWithUsername;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
errorToast(loginWithUsername ? t("authentication:usernameNotValid") : t("authentication:emailNotValid"));
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
$[3] = loginWithUsername;
|
|
60
|
-
$[4] = t;
|
|
61
|
-
$[5] = t3;
|
|
62
|
-
} else {
|
|
63
|
-
t3 = $[5];
|
|
64
|
-
}
|
|
65
|
-
const handleResponse = t3;
|
|
66
|
-
let t4;
|
|
67
|
-
let t5;
|
|
68
|
-
if ($[6] !== apiRoute || $[7] !== config || $[8] !== handleResponse || $[9] !== hasSubmitted || $[10] !== loginWithUsername || $[11] !== t || $[12] !== userSlug) {
|
|
69
|
-
t5 = Symbol.for("react.early_return_sentinel");
|
|
70
|
-
bb0: {
|
|
71
|
-
const initialState = loginWithUsername ? {
|
|
72
|
-
username: {
|
|
73
|
-
initialValue: "",
|
|
74
|
-
valid: true,
|
|
75
|
-
value: undefined
|
|
76
|
-
}
|
|
77
|
-
} : {
|
|
78
|
-
email: {
|
|
79
|
-
initialValue: "",
|
|
80
|
-
valid: true,
|
|
81
|
-
value: undefined
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
if (hasSubmitted) {
|
|
85
|
-
let t6;
|
|
86
|
-
if ($[15] !== t) {
|
|
87
|
-
t6 = _jsx(FormHeader, {
|
|
88
|
-
description: t("authentication:checkYourEmailForPasswordReset"),
|
|
89
|
-
heading: t("authentication:emailSent")
|
|
90
|
-
});
|
|
91
|
-
$[15] = t;
|
|
92
|
-
$[16] = t6;
|
|
93
|
-
} else {
|
|
94
|
-
t6 = $[16];
|
|
95
|
-
}
|
|
96
|
-
t5 = t6;
|
|
97
|
-
break bb0;
|
|
64
|
+
const minRequestInterval = collectionConfig?.auth?.forgotPassword?.minRequestInterval ?? 15000;
|
|
65
|
+
const sessionStorageKey = `payload-forgot-password:${userSlug}`;
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
try {
|
|
68
|
+
const storedValue = window.sessionStorage.getItem(sessionStorageKey);
|
|
69
|
+
if (!storedValue) {
|
|
70
|
+
return;
|
|
98
71
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
72
|
+
const parsedValue = JSON.parse(storedValue);
|
|
73
|
+
if (typeof parsedValue.identifier !== 'string' || typeof parsedValue.resendAvailableAt !== 'number' || parsedValue.resendAvailableAt <= Date.now()) {
|
|
74
|
+
removeStoredRequest(sessionStorageKey);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
submittedIdentifier.current = parsedValue.identifier;
|
|
78
|
+
resendAvailableAt.current = parsedValue.resendAvailableAt;
|
|
79
|
+
setStoredRequest(parsedValue);
|
|
80
|
+
setResendDelay(Math.max(0, Math.ceil((parsedValue.resendAvailableAt - Date.now()) / 1000)));
|
|
81
|
+
setHasSubmitted(true);
|
|
82
|
+
} catch {
|
|
83
|
+
removeStoredRequest(sessionStorageKey);
|
|
84
|
+
}
|
|
85
|
+
}, [sessionStorageKey]);
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
if (resendDelay === 0) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const timeout = setTimeout(() => {
|
|
91
|
+
setResendDelay(Math.max(0, Math.ceil((resendAvailableAt.current - Date.now()) / 1000)));
|
|
92
|
+
}, 1050);
|
|
93
|
+
return () => clearTimeout(timeout);
|
|
94
|
+
}, [resendDelay]);
|
|
95
|
+
const handleResponse = (res, successToast, errorToast) => {
|
|
96
|
+
res.json().then(() => {
|
|
97
|
+
const nextResendAvailableAt = Date.now() + minRequestInterval;
|
|
98
|
+
const nextStoredRequest = submittedIdentifier.current ? {
|
|
99
|
+
identifier: submittedIdentifier.current,
|
|
100
|
+
resendAvailableAt: nextResendAvailableAt
|
|
101
|
+
} : null;
|
|
102
|
+
resendAvailableAt.current = nextResendAvailableAt;
|
|
103
|
+
setResendDelay(Math.ceil(minRequestInterval / 1000));
|
|
104
|
+
setStoredRequest(nextStoredRequest);
|
|
105
|
+
setHasSubmitted(true);
|
|
106
|
+
if (nextStoredRequest) {
|
|
107
|
+
saveStoredRequest({
|
|
108
|
+
request: nextStoredRequest,
|
|
109
|
+
sessionStorageKey
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
successToast(t('general:submissionSuccessful'));
|
|
113
|
+
}).catch(() => {
|
|
114
|
+
errorToast(loginWithUsername ? t('authentication:usernameNotValid') : t('authentication:emailNotValid'));
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
const initialState = loginWithUsername ? {
|
|
118
|
+
username: {
|
|
119
|
+
initialValue: storedRequest?.identifier ?? '',
|
|
120
|
+
valid: true,
|
|
121
|
+
value: storedRequest?.identifier
|
|
122
|
+
}
|
|
123
|
+
} : {
|
|
124
|
+
email: {
|
|
125
|
+
initialValue: storedRequest?.identifier ?? '',
|
|
126
|
+
valid: true,
|
|
127
|
+
value: storedRequest?.identifier
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
return /*#__PURE__*/_jsx(Form, {
|
|
131
|
+
action: formatAdminURL({
|
|
132
|
+
apiRoute,
|
|
133
|
+
path: `/${userSlug}/forgot-password`
|
|
134
|
+
}),
|
|
135
|
+
className: baseClass,
|
|
136
|
+
handleResponse: handleResponse,
|
|
137
|
+
initialState: initialState,
|
|
138
|
+
method: "POST",
|
|
139
|
+
onSubmit: (_, data) => {
|
|
140
|
+
const identifier = loginWithUsername ? data.username : data.email;
|
|
141
|
+
submittedIdentifier.current = typeof identifier === 'string' ? identifier : null;
|
|
142
|
+
},
|
|
143
|
+
children: hasSubmitted ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
144
|
+
children: [/*#__PURE__*/_jsx(FormHeader, {
|
|
145
|
+
description: t('authentication:checkYourEmailForPasswordReset'),
|
|
146
|
+
heading: t('authentication:emailSent')
|
|
147
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
148
|
+
className: `${baseClass}__actions`,
|
|
149
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
150
|
+
buttonStyle: "primary",
|
|
151
|
+
className: `${baseClass}__submit`,
|
|
152
|
+
disabled: resendDelay > 0,
|
|
153
|
+
type: "submit",
|
|
154
|
+
children: resendDelay > 0 ? `${t('authentication:resend')} (${formatResendDelay(resendDelay)})` : t('authentication:resend')
|
|
155
|
+
}), /*#__PURE__*/_jsx(Link, {
|
|
156
|
+
href: formatAdminURL({
|
|
157
|
+
adminRoute,
|
|
158
|
+
path: loginRoute
|
|
159
|
+
}),
|
|
160
|
+
prefetch: false,
|
|
161
|
+
children: t('authentication:backToLogin')
|
|
162
|
+
})]
|
|
163
|
+
})]
|
|
164
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
165
|
+
children: [/*#__PURE__*/_jsx(FormHeader, {
|
|
166
|
+
description: loginWithUsername ? t('authentication:forgotPasswordUsernameInstructions') : t('authentication:forgotPasswordEmailInstructions'),
|
|
167
|
+
heading: t('authentication:forgotPassword')
|
|
168
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
169
|
+
className: `${baseClass}__inputWrap`,
|
|
170
|
+
children: loginWithUsername ? /*#__PURE__*/_jsx(TextField, {
|
|
171
|
+
field: {
|
|
172
|
+
name: 'username',
|
|
173
|
+
label: t('authentication:username'),
|
|
174
|
+
required: true
|
|
175
|
+
},
|
|
176
|
+
path: "username",
|
|
177
|
+
validate: value => text(value, {
|
|
178
|
+
name: 'username',
|
|
179
|
+
type: 'text',
|
|
180
|
+
blockData: {},
|
|
181
|
+
data: {},
|
|
182
|
+
event: 'onChange',
|
|
183
|
+
path: ['username'],
|
|
184
|
+
preferences: {
|
|
185
|
+
fields: {}
|
|
118
186
|
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
type: "text",
|
|
123
|
-
blockData: {},
|
|
124
|
-
data: {},
|
|
125
|
-
event: "onChange",
|
|
126
|
-
path: ["username"],
|
|
127
|
-
preferences: {
|
|
128
|
-
fields: {}
|
|
129
|
-
},
|
|
130
|
-
req: {
|
|
131
|
-
payload: {
|
|
132
|
-
config
|
|
133
|
-
},
|
|
134
|
-
t
|
|
187
|
+
req: {
|
|
188
|
+
payload: {
|
|
189
|
+
config
|
|
135
190
|
},
|
|
136
|
-
|
|
137
|
-
siblingData: {}
|
|
138
|
-
})
|
|
139
|
-
}) : _jsx(EmailField, {
|
|
140
|
-
field: {
|
|
141
|
-
name: "email",
|
|
142
|
-
admin: {
|
|
143
|
-
autoComplete: "email"
|
|
144
|
-
},
|
|
145
|
-
label: t("general:email"),
|
|
146
|
-
required: true
|
|
191
|
+
t
|
|
147
192
|
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
193
|
+
required: true,
|
|
194
|
+
siblingData: {}
|
|
195
|
+
})
|
|
196
|
+
}) : /*#__PURE__*/_jsx(EmailField, {
|
|
197
|
+
field: {
|
|
198
|
+
name: 'email',
|
|
199
|
+
admin: {
|
|
200
|
+
autoComplete: 'email'
|
|
201
|
+
},
|
|
202
|
+
label: t('general:email'),
|
|
203
|
+
required: true
|
|
204
|
+
},
|
|
205
|
+
path: "email",
|
|
206
|
+
validate: value_0 => email(value_0, {
|
|
207
|
+
name: 'email',
|
|
208
|
+
type: 'email',
|
|
209
|
+
blockData: {},
|
|
210
|
+
data: {},
|
|
211
|
+
event: 'onChange',
|
|
212
|
+
path: ['email'],
|
|
213
|
+
preferences: {
|
|
214
|
+
fields: {}
|
|
215
|
+
},
|
|
216
|
+
req: {
|
|
217
|
+
payload: {
|
|
218
|
+
config
|
|
164
219
|
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
220
|
+
t
|
|
221
|
+
},
|
|
222
|
+
required: true,
|
|
223
|
+
siblingData: {}
|
|
168
224
|
})
|
|
169
|
-
})
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
})
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
} else {
|
|
185
|
-
t4 = $[13];
|
|
186
|
-
t5 = $[14];
|
|
187
|
-
}
|
|
188
|
-
if (t5 !== Symbol.for("react.early_return_sentinel")) {
|
|
189
|
-
return t5;
|
|
190
|
-
}
|
|
191
|
-
return t4;
|
|
225
|
+
})
|
|
226
|
+
}), /*#__PURE__*/_jsx(FormSubmit, {
|
|
227
|
+
className: `${baseClass}__submit`,
|
|
228
|
+
children: t('general:submit')
|
|
229
|
+
}), /*#__PURE__*/_jsx(Link, {
|
|
230
|
+
className: "forgot-password__back",
|
|
231
|
+
href: formatAdminURL({
|
|
232
|
+
adminRoute,
|
|
233
|
+
path: loginRoute
|
|
234
|
+
}),
|
|
235
|
+
prefetch: false,
|
|
236
|
+
children: t('authentication:backToLogin')
|
|
237
|
+
})]
|
|
238
|
+
})
|
|
239
|
+
}, `${hasSubmitted ? 'submitted' : 'editing'}:${storedRequest?.identifier ?? ''}`);
|
|
192
240
|
};
|
|
193
241
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["c","_c","email","formatAdminURL","text","React","useState","FormHeader","EmailField","TextField","Form","FormSubmit","useConfig","useTranslation","baseClass","ForgotPasswordForm","$","config","getEntityConfig","admin","t0","routes","t1","user","userSlug","api","apiRoute","t","hasSubmitted","setHasSubmitted","t2","collectionSlug","collectionConfig","loginWithUsername","auth","t3","res","successToast","errorToast","json","then","catch","handleResponse","t4","t5","Symbol","for","initialState","username","initialValue","valid","value","undefined","t6","_jsx","description","heading","_jsxs","action","path","className","method","children","field","name","label","required","validate","type","blockData","data","event","preferences","fields","req","payload","siblingData","autoComplete","value_0"],"sources":["../../../../src/views/ForgotPassword/ForgotPasswordForm/index.tsx"],"sourcesContent":["'use client'\n\nimport type { FormState, PayloadRequest } from 'payload'\n\nimport { email, formatAdminURL, text } from 'payload/shared'\nimport React, { useState } from 'react'\n\nimport type { FormProps } from '../../../forms/Form/index.js'\n\nimport { FormHeader } from '../../../elements/FormHeader/index.js'\nimport { EmailField } from '../../../fields/Email/index.js'\nimport { TextField } from '../../../fields/Text/index.js'\nimport { Form } from '../../../forms/Form/index.js'\nimport { FormSubmit } from '../../../forms/Submit/index.js'\nimport { useConfig } from '../../../providers/Config/index.js'\nimport { useTranslation } from '../../../providers/Translation/index.js'\nimport './index.css'\n\nconst baseClass = 'forgot-password__form'\n\nexport const ForgotPasswordForm: React.FC = () => {\n const { config, getEntityConfig } = useConfig()\n\n const {\n admin: { user: userSlug },\n routes: { api: apiRoute },\n } = config\n\n const { t } = useTranslation()\n const [hasSubmitted, setHasSubmitted] = useState(false)\n const collectionConfig = getEntityConfig({ collectionSlug: userSlug })\n const loginWithUsername = collectionConfig?.auth?.loginWithUsername\n\n const handleResponse: FormProps['handleResponse'] = (res, successToast, errorToast) => {\n res\n .json()\n .then(() => {\n setHasSubmitted(true)\n successToast(t('general:submissionSuccessful'))\n })\n .catch(() => {\n errorToast(\n loginWithUsername\n ? t('authentication:usernameNotValid')\n : t('authentication:emailNotValid'),\n )\n })\n }\n\n const initialState: FormState = loginWithUsername\n ? {\n username: {\n initialValue: '',\n valid: true,\n value: undefined,\n },\n }\n : {\n email: {\n initialValue: '',\n valid: true,\n value: undefined,\n },\n }\n\n if (hasSubmitted) {\n return (\n <FormHeader\n description={t('authentication:checkYourEmailForPasswordReset')}\n heading={t('authentication:emailSent')}\n />\n )\n }\n\n return (\n <Form\n action={formatAdminURL({\n apiRoute,\n path: `/${userSlug}/forgot-password`,\n })}\n className={baseClass}\n handleResponse={handleResponse}\n initialState={initialState}\n method=\"POST\"\n >\n <FormHeader\n description={\n loginWithUsername\n ? t('authentication:forgotPasswordUsernameInstructions')\n : t('authentication:forgotPasswordEmailInstructions')\n }\n heading={t('authentication:forgotPassword')}\n />\n\n <div className={`${baseClass}__inputWrap`}>\n {loginWithUsername ? (\n <TextField\n field={{\n name: 'username',\n label: t('authentication:username'),\n required: true,\n }}\n path=\"username\"\n validate={(value) =>\n text(value, {\n name: 'username',\n type: 'text',\n blockData: {},\n data: {},\n event: 'onChange',\n path: ['username'],\n preferences: { fields: {} },\n req: {\n payload: {\n config,\n },\n t,\n } as unknown as PayloadRequest,\n required: true,\n siblingData: {},\n })\n }\n />\n ) : (\n <EmailField\n field={{\n name: 'email',\n admin: {\n autoComplete: 'email',\n },\n label: t('general:email'),\n required: true,\n }}\n path=\"email\"\n validate={(value) =>\n email(value, {\n name: 'email',\n type: 'email',\n blockData: {},\n data: {},\n event: 'onChange',\n path: ['email'],\n preferences: { fields: {} },\n req: { payload: { config }, t } as unknown as PayloadRequest,\n required: true,\n siblingData: {},\n })\n }\n />\n )}\n </div>\n <FormSubmit className={`${baseClass}__submit`}>{t('general:submit')}</FormSubmit>\n </Form>\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC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,GAAA9C,SAAA,UAAsB;UAAAgD,QAAA,EAAGnC,CAAA,CAAE;QAAA,C;;;;;;;;;;;;;;;;;;;SA5EpDgB,E;CA+EJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["email","formatAdminURL","text","React","useEffect","useRef","useState","Button","FormHeader","Link","EmailField","TextField","Form","FormSubmit","useConfig","useTranslation","baseClass","formatResendDelay","seconds","Math","floor","String","padStart","removeStoredRequest","sessionStorageKey","window","sessionStorage","removeItem","saveStoredRequest","request","setItem","JSON","stringify","ForgotPasswordForm","config","getEntityConfig","admin","routes","login","loginRoute","user","userSlug","adminRoute","api","apiRoute","t","hasSubmitted","setHasSubmitted","resendDelay","setResendDelay","storedRequest","setStoredRequest","resendAvailableAt","submittedIdentifier","collectionConfig","collectionSlug","loginWithUsername","auth","minRequestInterval","forgotPassword","storedValue","getItem","parsedValue","parse","identifier","Date","now","current","max","ceil","timeout","setTimeout","clearTimeout","handleResponse","res","successToast","errorToast","json","then","nextResendAvailableAt","nextStoredRequest","catch","initialState","username","initialValue","valid","value","_jsx","action","path","className","method","onSubmit","_","data","_jsxs","_Fragment","description","heading","buttonStyle","disabled","type","href","prefetch","field","name","label","required","validate","blockData","event","preferences","fields","req","payload","siblingData","autoComplete"],"sources":["../../../../src/views/ForgotPassword/ForgotPasswordForm/index.tsx"],"sourcesContent":["'use client'\n\nimport type { FormState, PayloadRequest } from 'payload'\n\nimport { email, formatAdminURL, text } from 'payload/shared'\nimport React, { useEffect, useRef, useState } from 'react'\n\nimport type { FormProps } from '../../../forms/Form/index.js'\n\nimport { Button } from '../../../elements/Button/index.js'\nimport { FormHeader } from '../../../elements/FormHeader/index.js'\nimport { Link } from '../../../elements/Link/index.js'\nimport { EmailField } from '../../../fields/Email/index.js'\nimport { TextField } from '../../../fields/Text/index.js'\nimport { Form } from '../../../forms/Form/index.js'\nimport { FormSubmit } from '../../../forms/Submit/index.js'\nimport { useConfig } from '../../../providers/Config/index.js'\nimport { useTranslation } from '../../../providers/Translation/index.js'\nimport './index.css'\n\nconst baseClass = 'forgot-password__form'\n\ntype StoredForgotPasswordRequest = {\n identifier: string\n resendAvailableAt: number\n}\n\nconst formatResendDelay = (seconds: number): string =>\n `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`\n\nconst removeStoredRequest = (sessionStorageKey: string): void => {\n try {\n window.sessionStorage.removeItem(sessionStorageKey)\n } catch {\n return\n }\n}\n\nconst saveStoredRequest = ({\n request,\n sessionStorageKey,\n}: {\n request: StoredForgotPasswordRequest\n sessionStorageKey: string\n}): void => {\n try {\n window.sessionStorage.setItem(sessionStorageKey, JSON.stringify(request))\n } catch {\n return\n }\n}\n\nexport const ForgotPasswordForm: React.FC = () => {\n const { config, getEntityConfig } = useConfig()\n\n const {\n admin: {\n routes: { login: loginRoute },\n user: userSlug,\n },\n routes: { admin: adminRoute, api: apiRoute },\n } = config\n\n const { t } = useTranslation()\n const [hasSubmitted, setHasSubmitted] = useState(false)\n const [resendDelay, setResendDelay] = useState(0)\n const [storedRequest, setStoredRequest] = useState<null | StoredForgotPasswordRequest>(null)\n const resendAvailableAt = useRef(0)\n const submittedIdentifier = useRef<null | string>(null)\n const collectionConfig = getEntityConfig({ collectionSlug: userSlug })\n const loginWithUsername = collectionConfig?.auth?.loginWithUsername\n const minRequestInterval = collectionConfig?.auth?.forgotPassword?.minRequestInterval ?? 15000\n const sessionStorageKey = `payload-forgot-password:${userSlug}`\n\n useEffect(() => {\n try {\n const storedValue = window.sessionStorage.getItem(sessionStorageKey)\n\n if (!storedValue) {\n return\n }\n\n const parsedValue = JSON.parse(storedValue) as StoredForgotPasswordRequest\n\n if (\n typeof parsedValue.identifier !== 'string' ||\n typeof parsedValue.resendAvailableAt !== 'number' ||\n parsedValue.resendAvailableAt <= Date.now()\n ) {\n removeStoredRequest(sessionStorageKey)\n return\n }\n\n submittedIdentifier.current = parsedValue.identifier\n resendAvailableAt.current = parsedValue.resendAvailableAt\n setStoredRequest(parsedValue)\n setResendDelay(Math.max(0, Math.ceil((parsedValue.resendAvailableAt - Date.now()) / 1000)))\n setHasSubmitted(true)\n } catch {\n removeStoredRequest(sessionStorageKey)\n }\n }, [sessionStorageKey])\n\n useEffect(() => {\n if (resendDelay === 0) {\n return\n }\n const timeout = setTimeout(() => {\n setResendDelay(Math.max(0, Math.ceil((resendAvailableAt.current - Date.now()) / 1000)))\n }, 1050)\n return () => clearTimeout(timeout)\n }, [resendDelay])\n\n const handleResponse: FormProps['handleResponse'] = (res, successToast, errorToast) => {\n res\n .json()\n .then(() => {\n const nextResendAvailableAt = Date.now() + minRequestInterval\n const nextStoredRequest = submittedIdentifier.current\n ? {\n identifier: submittedIdentifier.current,\n resendAvailableAt: nextResendAvailableAt,\n }\n : null\n\n resendAvailableAt.current = nextResendAvailableAt\n setResendDelay(Math.ceil(minRequestInterval / 1000))\n setStoredRequest(nextStoredRequest)\n setHasSubmitted(true)\n\n if (nextStoredRequest) {\n saveStoredRequest({ request: nextStoredRequest, sessionStorageKey })\n }\n\n successToast(t('general:submissionSuccessful'))\n })\n .catch(() => {\n errorToast(\n loginWithUsername\n ? t('authentication:usernameNotValid')\n : t('authentication:emailNotValid'),\n )\n })\n }\n\n const initialState: FormState = loginWithUsername\n ? {\n username: {\n initialValue: storedRequest?.identifier ?? '',\n valid: true,\n value: storedRequest?.identifier,\n },\n }\n : {\n email: {\n initialValue: storedRequest?.identifier ?? '',\n valid: true,\n value: storedRequest?.identifier,\n },\n }\n\n return (\n <Form\n action={formatAdminURL({\n apiRoute,\n path: `/${userSlug}/forgot-password`,\n })}\n className={baseClass}\n handleResponse={handleResponse}\n initialState={initialState}\n key={`${hasSubmitted ? 'submitted' : 'editing'}:${storedRequest?.identifier ?? ''}`}\n method=\"POST\"\n onSubmit={(_, data) => {\n const identifier = loginWithUsername ? data.username : data.email\n\n submittedIdentifier.current = typeof identifier === 'string' ? identifier : null\n }}\n >\n {hasSubmitted ? (\n <>\n <FormHeader\n description={t('authentication:checkYourEmailForPasswordReset')}\n heading={t('authentication:emailSent')}\n />\n <div className={`${baseClass}__actions`}>\n <Button\n buttonStyle=\"primary\"\n className={`${baseClass}__submit`}\n disabled={resendDelay > 0}\n type=\"submit\"\n >\n {resendDelay > 0\n ? `${t('authentication:resend')} (${formatResendDelay(resendDelay)})`\n : t('authentication:resend')}\n </Button>\n <Link href={formatAdminURL({ adminRoute, path: loginRoute })} prefetch={false}>\n {t('authentication:backToLogin')}\n </Link>\n </div>\n </>\n ) : (\n <>\n <FormHeader\n description={\n loginWithUsername\n ? t('authentication:forgotPasswordUsernameInstructions')\n : t('authentication:forgotPasswordEmailInstructions')\n }\n heading={t('authentication:forgotPassword')}\n />\n\n <div className={`${baseClass}__inputWrap`}>\n {loginWithUsername ? (\n <TextField\n field={{\n name: 'username',\n label: t('authentication:username'),\n required: true,\n }}\n path=\"username\"\n validate={(value) =>\n text(value, {\n name: 'username',\n type: 'text',\n blockData: {},\n data: {},\n event: 'onChange',\n path: ['username'],\n preferences: { fields: {} },\n req: {\n payload: {\n config,\n },\n t,\n } as unknown as PayloadRequest,\n required: true,\n siblingData: {},\n })\n }\n />\n ) : (\n <EmailField\n field={{\n name: 'email',\n admin: {\n autoComplete: 'email',\n },\n label: t('general:email'),\n required: true,\n }}\n path=\"email\"\n validate={(value) =>\n email(value, {\n name: 'email',\n type: 'email',\n blockData: {},\n data: {},\n event: 'onChange',\n path: ['email'],\n preferences: { fields: {} },\n req: { payload: { config }, t } as unknown as PayloadRequest,\n required: true,\n siblingData: {},\n })\n }\n />\n )}\n </div>\n <FormSubmit className={`${baseClass}__submit`}>{t('general:submit')}</FormSubmit>\n <Link\n className=\"forgot-password__back\"\n href={formatAdminURL({ adminRoute, path: loginRoute })}\n prefetch={false}\n >\n {t('authentication:backToLogin')}\n </Link>\n </>\n )}\n </Form>\n )\n}\n"],"mappings":"AAAA;;;AAIA,SAASA,KAAK,EAAEC,cAAc,EAAEC,IAAI,QAAQ;AAC5C,OAAOC,KAAA,IAASC,SA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cAAGW;YAAE;YAC9B8D,QAAA,EAAU;YACVQ,WAAA,EAAa,CAAC;UAChB;;uBAKR5B,IAAA,CAAC1E,UAAA;QAAW6E,SAAA,EAAW,GAAG1E,SAAA,UAAmB;kBAAG6B,CAAA,CAAE;uBAClD0C,IAAA,CAAC9E,IAAA;QACCiF,SAAA,EAAU;QACVY,IAAA,EAAMrG,cAAA,CAAe;UAAEyC,UAAA;UAAY+C,IAAA,EAAMlD;QAAW;QACpDgE,QAAA,EAAU;kBAET1D,CAAA,CAAE;;;KAxGJ,GAAGC,YAAA,GAAe,cAAc,aAAaI,aAAA,EAAec,UAAA,IAAc,IAAI;AA8GzF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/ForgotPassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAGnD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAQvC,OAAO,aAAa,CAAA;AAEpB,eAAO,MAAM,uBAAuB,oBAAoB,CAAA;AAExD,wBAAgB,kBAAkB,CAAC,EAAE,cAAc,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/ForgotPassword/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAGnD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAQvC,OAAO,aAAa,CAAA;AAEpB,eAAO,MAAM,uBAAuB,oBAAoB,CAAA;AAExD,wBAAgB,kBAAkB,CAAC,EAAE,cAAc,EAAE,EAAE,oBAAoB,qBA6D1E"}
|
|
@@ -64,17 +64,8 @@ export function ForgotPasswordView({
|
|
|
64
64
|
})]
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
return /*#__PURE__*/
|
|
68
|
-
children:
|
|
69
|
-
buttonStyle: "ghost",
|
|
70
|
-
className: `${forgotPasswordBaseClass}__back`,
|
|
71
|
-
el: "link",
|
|
72
|
-
url: formatAdminURL({
|
|
73
|
-
adminRoute,
|
|
74
|
-
path: loginRoute
|
|
75
|
-
}),
|
|
76
|
-
children: i18n.t('authentication:backToLogin')
|
|
77
|
-
})]
|
|
67
|
+
return /*#__PURE__*/_jsx(Fragment, {
|
|
68
|
+
children: /*#__PURE__*/_jsx(ForgotPasswordForm, {})
|
|
78
69
|
});
|
|
79
70
|
}
|
|
80
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["formatAdminURL","React","Fragment","Button","FormHeader","Link","Translation","ForgotPasswordForm","forgotPasswordBaseClass","ForgotPasswordView","initPageResult","req","i18n","payload","config","user","admin","routes","account","accountRoute","login","loginRoute","adminRoute","_jsxs","_jsx","description","elements","0","children","href","path","prefetch","i18nKey","t","heading","buttonStyle","className","el","url"],"sources":["../../../src/views/ForgotPassword/index.tsx"],"sourcesContent":["import type { AdminViewServerProps } from 'payload'\n\nimport { formatAdminURL } from 'payload/shared'\nimport React, { Fragment } from 'react'\n\nimport { Button } from '../../elements/Button/index.js'\nimport { FormHeader } from '../../elements/FormHeader/index.js'\nimport { Link } from '../../elements/Link/index.js'\nimport { Translation } from '../../elements/Translation/index.js'\n// eslint-disable-next-line payload/no-imports-from-exports-dir -- Server component must reference exports/client bundle for proper client boundary in prod builds\nimport { ForgotPasswordForm } from '../../exports/client/index.js'\nimport './index.css'\n\nexport const forgotPasswordBaseClass = 'forgot-password'\n\nexport function ForgotPasswordView({ initPageResult }: AdminViewServerProps) {\n const {\n req: {\n i18n,\n payload: { config },\n user,\n },\n } = initPageResult\n\n const {\n admin: {\n routes: { account: accountRoute, login: loginRoute },\n },\n routes: { admin: adminRoute },\n } = config\n\n if (user) {\n return (\n <Fragment>\n <FormHeader\n description={\n <Translation\n elements={{\n '0': ({ children }) => (\n <Link\n href={formatAdminURL({\n adminRoute,\n path: accountRoute,\n })}\n prefetch={false}\n >\n {children}\n </Link>\n ),\n }}\n i18nKey=\"authentication:loggedInChangePassword\"\n t={i18n.t}\n />\n }\n heading={i18n.t('authentication:alreadyLoggedIn')}\n />\n <Button\n buttonStyle=\"ghost\"\n className={`${forgotPasswordBaseClass}__back`}\n el=\"link\"\n url={formatAdminURL({\n adminRoute,\n path: loginRoute,\n })}\n >\n {i18n.t('general:backToDashboard')}\n </Button>\n </Fragment>\n )\n }\n\n return (\n <Fragment>\n <ForgotPasswordForm />\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["formatAdminURL","React","Fragment","Button","FormHeader","Link","Translation","ForgotPasswordForm","forgotPasswordBaseClass","ForgotPasswordView","initPageResult","req","i18n","payload","config","user","admin","routes","account","accountRoute","login","loginRoute","adminRoute","_jsxs","_jsx","description","elements","0","children","href","path","prefetch","i18nKey","t","heading","buttonStyle","className","el","url"],"sources":["../../../src/views/ForgotPassword/index.tsx"],"sourcesContent":["import type { AdminViewServerProps } from 'payload'\n\nimport { formatAdminURL } from 'payload/shared'\nimport React, { Fragment } from 'react'\n\nimport { Button } from '../../elements/Button/index.js'\nimport { FormHeader } from '../../elements/FormHeader/index.js'\nimport { Link } from '../../elements/Link/index.js'\nimport { Translation } from '../../elements/Translation/index.js'\n// eslint-disable-next-line payload/no-imports-from-exports-dir -- Server component must reference exports/client bundle for proper client boundary in prod builds\nimport { ForgotPasswordForm } from '../../exports/client/index.js'\nimport './index.css'\n\nexport const forgotPasswordBaseClass = 'forgot-password'\n\nexport function ForgotPasswordView({ initPageResult }: AdminViewServerProps) {\n const {\n req: {\n i18n,\n payload: { config },\n user,\n },\n } = initPageResult\n\n const {\n admin: {\n routes: { account: accountRoute, login: loginRoute },\n },\n routes: { admin: adminRoute },\n } = config\n\n if (user) {\n return (\n <Fragment>\n <FormHeader\n description={\n <Translation\n elements={{\n '0': ({ children }) => (\n <Link\n href={formatAdminURL({\n adminRoute,\n path: accountRoute,\n })}\n prefetch={false}\n >\n {children}\n </Link>\n ),\n }}\n i18nKey=\"authentication:loggedInChangePassword\"\n t={i18n.t}\n />\n }\n heading={i18n.t('authentication:alreadyLoggedIn')}\n />\n <Button\n buttonStyle=\"ghost\"\n className={`${forgotPasswordBaseClass}__back`}\n el=\"link\"\n url={formatAdminURL({\n adminRoute,\n path: loginRoute,\n })}\n >\n {i18n.t('general:backToDashboard')}\n </Button>\n </Fragment>\n )\n }\n\n return (\n <Fragment>\n <ForgotPasswordForm />\n </Fragment>\n )\n}\n"],"mappings":";AAEA,SAASA,cAAc,QAAQ;AAC/B,OAAOC,KAAA,IAASC,QAAQ,QAAQ;AAEhC,SAASC,MAAM,QAAQ;AACvB,SAASC,UAAU,QAAQ;AAC3B,SAASC,IAAI,QAAQ;AACrB,SAASC,WAAW,QAAQ;AAC5B;AACA,SAASC,kBAAkB,QAAQ;AACnC,OAAO;AAEP,OAAO,MAAMC,uBAAA,GAA0B;AAEvC,OAAO,SAASC,mBAAmB;EAAEC;AAAc,CAAwB;EACzE,MAAM;IACJC,GAAA,EAAK;MACHC,IAAI;MACJC,OAAA,EAAS;QAAEC;MAAM,CAAE;MACnBC;IAAI;EACL,CACF,GAAGL,cAAA;EAEJ,MAAM;IACJM,KAAA,EAAO;MACLC,MAAA,EAAQ;QAAEC,OAAA,EAASC,YAAY;QAAEC,KAAA,EAAOC;MAAU;IAAE,CACrD;IACDJ,MAAA,EAAQ;MAAED,KAAA,EAAOM;IAAU;EAAE,CAC9B,GAAGR,MAAA;EAEJ,IAAIC,IAAA,EAAM;IACR,oBACEQ,KAAA,CAACrB,QAAA;8BACCsB,IAAA,CAACpB,UAAA;QACCqB,WAAA,eACED,IAAA,CAAClB,WAAA;UACCoB,QAAA,EAAU;YACR,KAAKC,CAAC;cAAEC;YAAQ,CAAE,kBAChBJ,IAAA,CAACnB,IAAA;cACCwB,IAAA,EAAM7B,cAAA,CAAe;gBACnBsB,UAAA;gBACAQ,IAAA,EAAMX;cACR;cACAY,QAAA,EAAU;wBAETH;;UAGP;UACAI,OAAA,EAAQ;UACRC,CAAA,EAAGrB,IAAA,CAAKqB;;QAGZC,OAAA,EAAStB,IAAA,CAAKqB,CAAC,CAAC;uBAElBT,IAAA,CAACrB,MAAA;QACCgC,WAAA,EAAY;QACZC,SAAA,EAAW,GAAG5B,uBAAA,QAA+B;QAC7C6B,EAAA,EAAG;QACHC,GAAA,EAAKtC,cAAA,CAAe;UAClBsB,UAAA;UACAQ,IAAA,EAAMT;QACR;kBAECT,IAAA,CAAKqB,CAAC,CAAC;;;EAIhB;EAEA,oBACET,IAAA,CAACtB,QAAA;cACC,aAAAsB,IAAA,CAACjB,kBAAA;;AAGP","ignoreList":[]}
|
|
@@ -6,6 +6,21 @@
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.hierarchy-list > :not(.hierarchy-list__wrap),
|
|
10
|
+
.hierarchy-list__wrap > :not(.list-header):not(.list-controls-bar),
|
|
11
|
+
.hierarchy-list__wrap
|
|
12
|
+
> .list-header
|
|
13
|
+
> :is(.list-header__content, .list-header__after-header-content),
|
|
14
|
+
.hierarchy-list__wrap > .list-controls-bar > .list-controls-bar__inner {
|
|
15
|
+
width: 100%;
|
|
16
|
+
max-inline-size: var(--list-view-max-width);
|
|
17
|
+
margin-inline: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.hierarchy-list__wrap > .no-results--with-margin {
|
|
21
|
+
width: calc(100% - (var(--gutter-h) * 2));
|
|
22
|
+
}
|
|
23
|
+
|
|
9
24
|
.hierarchy-list__wrap {
|
|
10
25
|
padding-bottom: var(--spacing-view-bottom);
|
|
11
26
|
flex: 1;
|
|
@@ -52,6 +67,7 @@
|
|
|
52
67
|
margin: 0;
|
|
53
68
|
}
|
|
54
69
|
|
|
70
|
+
/* stylelint-disable-next-line plugin/no-max-width-media-query -- TODO: pre-existing; migrate to a mobile-first min-width query */
|
|
55
71
|
@media (max-width: 768px) {
|
|
56
72
|
.hierarchy-list {
|
|
57
73
|
margin-top: var(--spacer-1);
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/* stylelint-disable-next-line plugin/no-max-width-media-query -- TODO: pre-existing; migrate to a mobile-first min-width query */
|
|
16
17
|
@media (max-width: 768px) {
|
|
17
18
|
.list-drawer__header {
|
|
18
19
|
margin-top: var(--spacer-5);
|
|
@@ -34,6 +35,11 @@
|
|
|
34
35
|
border-bottom: var(--stroke-width-small) solid var(--color-border);
|
|
35
36
|
background: var(--color-bg);
|
|
36
37
|
|
|
38
|
+
.list-header__content,
|
|
39
|
+
.list-header__after-header-content {
|
|
40
|
+
padding-inline: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
.list-header__title-and-actions {
|
|
38
44
|
align-items: center;
|
|
39
45
|
gap: var(--spacer-1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { I18nClient
|
|
1
|
+
import type { I18nClient } from '@payloadcms/translations';
|
|
2
2
|
import type { ClientCollectionConfig, ViewTypes } from 'payload';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import './index.css';
|
|
@@ -14,19 +14,9 @@ export type ListHeaderProps = {
|
|
|
14
14
|
hasTrashPermission?: boolean;
|
|
15
15
|
i18n: I18nClient;
|
|
16
16
|
isBulkUploadEnabled: boolean;
|
|
17
|
-
isTrashEnabled?: boolean;
|
|
18
17
|
newDocumentURL: string;
|
|
19
18
|
onBulkUploadSuccess?: () => void;
|
|
20
|
-
/** @deprecated This prop will be removed in the next major version.
|
|
21
|
-
*
|
|
22
|
-
* Opening of the bulk upload modal is handled internally.
|
|
23
|
-
*
|
|
24
|
-
* Prefer `onBulkUploadSuccess` usage to handle the success of the bulk upload.
|
|
25
|
-
*/
|
|
26
|
-
openBulkUpload: () => void;
|
|
27
19
|
smallBreak: boolean;
|
|
28
|
-
/** @deprecated This prop will be removed in the next major version. */
|
|
29
|
-
t?: TFunction;
|
|
30
20
|
TitleActions?: React.ReactNode[];
|
|
31
21
|
viewType?: ViewTypes;
|
|
32
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/List/ListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/List/ListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGhE,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,aAAa,CAAA;AAIpB,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,sBAAsB,CAAA;IACxC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,IAAI,EAAE,UAAU,CAAA;IAChB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,cAAc,EAAE,MAAM,CAAA;IACtB,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAA;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuF1D,CAAA"}
|
|
@@ -7,7 +7,7 @@ import { useListDrawerContext } from '../../../elements/ListDrawer/Provider.js';
|
|
|
7
7
|
import { DrawerRelationshipSelect } from '../../../elements/ListHeader/DrawerRelationshipSelect/index.js';
|
|
8
8
|
import { ListDrawerCreateNewDocButton } from '../../../elements/ListHeader/DrawerTitleActions/index.js';
|
|
9
9
|
import { ListHeader } from '../../../elements/ListHeader/index.js';
|
|
10
|
-
import { ListBulkUploadButton
|
|
10
|
+
import { ListBulkUploadButton } from '../../../elements/ListHeader/TitleActions/index.js';
|
|
11
11
|
import { useConfig } from '../../../providers/Config/index.js';
|
|
12
12
|
import { useListQuery } from '../../../providers/ListQuery/index.js';
|
|
13
13
|
import { ListSelection } from '../ListSelection/index.js';
|
|
@@ -24,9 +24,7 @@ export const CollectionListHeader = ({
|
|
|
24
24
|
hasTrashPermission,
|
|
25
25
|
i18n,
|
|
26
26
|
isBulkUploadEnabled,
|
|
27
|
-
isTrashEnabled,
|
|
28
27
|
onBulkUploadSuccess,
|
|
29
|
-
openBulkUpload,
|
|
30
28
|
smallBreak,
|
|
31
29
|
viewType
|
|
32
30
|
}) => {
|
|
@@ -84,12 +82,8 @@ export const CollectionListHeader = ({
|
|
|
84
82
|
collectionSlug: collectionConfig.slug,
|
|
85
83
|
hasCreatePermission: hasCreatePermission,
|
|
86
84
|
isBulkUploadEnabled: isBulkUploadEnabled,
|
|
87
|
-
onBulkUploadSuccess: onBulkUploadSuccess
|
|
88
|
-
|
|
89
|
-
}, "list-header-bulk-upload"), hasDeletePermission && isTrashEnabled && viewType === 'trash' && /*#__PURE__*/_jsx(ListEmptyTrashButton, {
|
|
90
|
-
collectionConfig: collectionConfig,
|
|
91
|
-
hasDeletePermission: hasDeletePermission
|
|
92
|
-
}, "list-header-empty-trash")].filter(Boolean)
|
|
85
|
+
onBulkUploadSuccess: onBulkUploadSuccess
|
|
86
|
+
}, "list-header-bulk-upload")].filter(Boolean)
|
|
93
87
|
});
|
|
94
88
|
};
|
|
95
89
|
//# sourceMappingURL=index.js.map
|