@webiny/app-headless-cms 5.40.0-beta.2 → 5.40.0-beta.4
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/ContentEntryEditorConfig.d.ts +138 -0
- package/ContentEntryEditorConfig.js +43 -0
- package/ContentEntryEditorConfig.js.map +1 -0
- package/ContentEntryListConfig.d.ts +78 -0
- package/ContentEntryListConfig.js +16 -0
- package/ContentEntryListConfig.js.map +1 -0
- package/HeadlessCMS.d.ts +1 -1
- package/HeadlessCMS.js +2 -6
- package/HeadlessCMS.js.map +1 -1
- package/admin/components/ContentEntries/BulkActions/ActionDelete.d.ts +2 -2
- package/admin/components/ContentEntries/BulkActions/ActionDelete.js +15 -18
- package/admin/components/ContentEntries/BulkActions/ActionDelete.js.map +1 -1
- package/admin/components/ContentEntries/BulkActions/ActionMove.d.ts +2 -2
- package/admin/components/ContentEntries/BulkActions/ActionMove.js +1 -2
- package/admin/components/ContentEntries/BulkActions/ActionMove.js.map +1 -1
- package/admin/components/ContentEntries/BulkActions/ActionPublish.d.ts +2 -2
- package/admin/components/ContentEntries/BulkActions/ActionPublish.js +7 -10
- package/admin/components/ContentEntries/BulkActions/ActionPublish.js.map +1 -1
- package/admin/components/ContentEntries/BulkActions/ActionUnpublish.d.ts +2 -2
- package/admin/components/ContentEntries/BulkActions/ActionUnpublish.js +7 -10
- package/admin/components/ContentEntries/BulkActions/ActionUnpublish.js.map +1 -1
- package/admin/components/ContentEntries/BulkActions/BulkActions.d.ts +2 -2
- package/admin/components/ContentEntries/BulkActions/BulkActions.js +2 -4
- package/admin/components/ContentEntries/BulkActions/BulkActions.js.map +1 -1
- package/admin/components/ContentEntries/BulkActions/BulkActions.styled.d.ts +3 -3
- package/admin/components/ContentEntries/BulkActions/BulkActions.styled.js +35 -15
- package/admin/components/ContentEntries/BulkActions/BulkActions.styled.js.map +1 -1
- package/admin/components/ContentEntries/BulkActions/index.js.map +1 -1
- package/admin/components/ContentEntries/Empty/index.d.ts +1 -1
- package/admin/components/ContentEntries/Empty/index.js +8 -6
- package/admin/components/ContentEntries/Empty/index.js.map +1 -1
- package/admin/components/ContentEntries/Empty/styled.d.ts +1 -3
- package/admin/components/ContentEntries/Empty/styled.js +21 -10
- package/admin/components/ContentEntries/Empty/styled.js.map +1 -1
- package/admin/components/ContentEntries/Filters/FieldsMapper.js +4 -6
- package/admin/components/ContentEntries/Filters/FieldsMapper.js.map +1 -1
- package/admin/components/ContentEntries/Filters/FilterByStatus.d.ts +2 -2
- package/admin/components/ContentEntries/Filters/FilterByStatus.js +1 -2
- package/admin/components/ContentEntries/Filters/FilterByStatus.js.map +1 -1
- package/admin/components/ContentEntries/Filters/Filters.d.ts +2 -2
- package/admin/components/ContentEntries/Filters/Filters.js +1 -3
- package/admin/components/ContentEntries/Filters/Filters.js.map +1 -1
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/EntriesGatewayInterface.d.ts +5 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/EntriesGatewayInterface.js +7 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/EntriesGatewayInterface.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/EntriesGraphQLGateway.d.ts +8 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/EntriesGraphQLGateway.js +68 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/EntriesGraphQLGateway.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/entries.gql.d.ts +2 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/entries.gql.js +16 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/entries.gql.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/entries.types.d.ts +25 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/entries.types.js +7 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/entries.types.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/index.d.ts +2 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/index.js +29 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/adapters/index.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/AutoComplete.d.ts +8 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/AutoComplete.js +43 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/AutoComplete.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/Ref.d.ts +2 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/Ref.js +55 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/Ref.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/RefPresenter.d.ts +38 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/RefPresenter.js +76 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/RefPresenter.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/RefPresenter.test.d.ts +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/RefPresenter.test.js +159 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/RefPresenter.test.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/index.d.ts +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/index.js +18 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/components/index.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/Entry.d.ts +22 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/Entry.js +26 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/Entry.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryMapper.d.ts +5 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryMapper.js +37 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryMapper.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryRepository.d.ts +16 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryRepository.js +78 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryRepository.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryRepositoryFactory.d.ts +9 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryRepositoryFactory.js +39 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/EntryRepositoryFactory.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/Loading.d.ts +14 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/Loading.js +75 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/Loading.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/index.d.ts +5 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/index.js +62 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/domain/index.js.map +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/index.d.ts +1 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/index.js +18 -0
- package/admin/components/ContentEntries/Filters/RefFieldRenderer/index.js.map +1 -0
- package/admin/components/ContentEntries/Filters/index.js.map +1 -1
- package/admin/components/ContentEntries/Filters/styles.d.ts +3 -3
- package/admin/components/ContentEntries/Filters/styles.js +43 -15
- package/admin/components/ContentEntries/Filters/styles.js.map +1 -1
- package/admin/components/ContentEntries/Header/ButtonFilters/ButtonFilters.d.ts +2 -2
- package/admin/components/ContentEntries/Header/ButtonFilters/ButtonFilters.js +17 -7
- package/admin/components/ContentEntries/Header/ButtonFilters/ButtonFilters.js.map +1 -1
- package/admin/components/ContentEntries/Header/ButtonFilters/index.js.map +1 -1
- package/admin/components/ContentEntries/Header/ButtonsCreate/ButtonsCreate.d.ts +1 -1
- package/admin/components/ContentEntries/Header/ButtonsCreate/ButtonsCreate.js +6 -4
- package/admin/components/ContentEntries/Header/ButtonsCreate/ButtonsCreate.js.map +1 -1
- package/admin/components/ContentEntries/Header/ButtonsCreate/index.js.map +1 -1
- package/admin/components/ContentEntries/Header/ButtonsCreate/styled.d.ts +1 -1
- package/admin/components/ContentEntries/Header/ButtonsCreate/styled.js +15 -5
- package/admin/components/ContentEntries/Header/ButtonsCreate/styled.js.map +1 -1
- package/admin/components/ContentEntries/Header/Header.d.ts +1 -1
- package/admin/components/ContentEntries/Header/Header.js +4 -15
- package/admin/components/ContentEntries/Header/Header.js.map +1 -1
- package/admin/components/ContentEntries/Header/Title/Title.d.ts +2 -2
- package/admin/components/ContentEntries/Header/Title/Title.js +1 -2
- package/admin/components/ContentEntries/Header/Title/Title.js.map +1 -1
- package/admin/components/ContentEntries/Header/Title/index.js.map +1 -1
- package/admin/components/ContentEntries/Header/Title/styled.js +15 -5
- package/admin/components/ContentEntries/Header/Title/styled.js.map +1 -1
- package/admin/components/ContentEntries/Header/index.js.map +1 -1
- package/admin/components/ContentEntries/Header/styled.d.ts +10 -2
- package/admin/components/ContentEntries/Header/styled.js +58 -11
- package/admin/components/ContentEntries/Header/styled.js.map +1 -1
- package/admin/components/ContentEntries/LoadMoreButton/LoadMoreButton.d.ts +2 -2
- package/admin/components/ContentEntries/LoadMoreButton/LoadMoreButton.js +1 -2
- package/admin/components/ContentEntries/LoadMoreButton/LoadMoreButton.js.map +1 -1
- package/admin/components/ContentEntries/LoadMoreButton/index.js.map +1 -1
- package/admin/components/ContentEntries/LoadMoreButton/styled.d.ts +1 -1
- package/admin/components/ContentEntries/LoadMoreButton/styled.js +15 -5
- package/admin/components/ContentEntries/LoadMoreButton/styled.js.map +1 -1
- package/admin/components/ContentEntries/LoadingMore/index.d.ts +2 -2
- package/admin/components/ContentEntries/LoadingMore/index.js +1 -2
- package/admin/components/ContentEntries/LoadingMore/index.js.map +1 -1
- package/admin/components/ContentEntries/LoadingMore/styled.d.ts +2 -2
- package/admin/components/ContentEntries/LoadingMore/styled.js +29 -10
- package/admin/components/ContentEntries/LoadingMore/styled.js.map +1 -1
- package/admin/components/ContentEntries/Table/Actions/ChangeEntryStatus.d.ts +2 -2
- package/admin/components/ContentEntries/Table/Actions/ChangeEntryStatus.js +14 -9
- package/admin/components/ContentEntries/Table/Actions/ChangeEntryStatus.js.map +1 -1
- package/admin/components/ContentEntries/Table/Actions/DeleteEntry.d.ts +2 -2
- package/admin/components/ContentEntries/Table/Actions/DeleteEntry.js +9 -8
- package/admin/components/ContentEntries/Table/Actions/DeleteEntry.js.map +1 -1
- package/admin/components/ContentEntries/Table/Actions/EditEntry.d.ts +2 -2
- package/admin/components/ContentEntries/Table/Actions/EditEntry.js +1 -2
- package/admin/components/ContentEntries/Table/Actions/EditEntry.js.map +1 -1
- package/admin/components/ContentEntries/Table/Actions/MoveEntry.d.ts +2 -2
- package/admin/components/ContentEntries/Table/Actions/MoveEntry.js +1 -2
- package/admin/components/ContentEntries/Table/Actions/MoveEntry.js.map +1 -1
- package/admin/components/ContentEntries/Table/Actions/index.js.map +1 -1
- package/admin/components/ContentEntries/Table/Cells/CellActions.d.ts +8 -2
- package/admin/components/ContentEntries/Table/Cells/CellActions.js +2 -2
- package/admin/components/ContentEntries/Table/Cells/CellActions.js.map +1 -1
- package/admin/components/ContentEntries/Table/Cells/CellAuthor.d.ts +2 -2
- package/admin/components/ContentEntries/Table/Cells/CellAuthor.js +1 -2
- package/admin/components/ContentEntries/Table/Cells/CellAuthor.js.map +1 -1
- package/admin/components/ContentEntries/Table/Cells/CellCreated.d.ts +2 -2
- package/admin/components/ContentEntries/Table/Cells/CellCreated.js +1 -2
- package/admin/components/ContentEntries/Table/Cells/CellCreated.js.map +1 -1
- package/admin/components/ContentEntries/Table/Cells/CellModified.d.ts +2 -2
- package/admin/components/ContentEntries/Table/Cells/CellModified.js +1 -2
- package/admin/components/ContentEntries/Table/Cells/CellModified.js.map +1 -1
- package/admin/components/ContentEntries/Table/Cells/CellName.d.ts +4 -4
- package/admin/components/ContentEntries/Table/Cells/CellName.js +3 -6
- package/admin/components/ContentEntries/Table/Cells/CellName.js.map +1 -1
- package/admin/components/ContentEntries/Table/Cells/CellStatus.d.ts +2 -2
- package/admin/components/ContentEntries/Table/Cells/CellStatus.js +1 -2
- package/admin/components/ContentEntries/Table/Cells/CellStatus.js.map +1 -1
- package/admin/components/ContentEntries/Table/Cells/Cells.styled.d.ts +2 -4
- package/admin/components/ContentEntries/Table/Cells/Cells.styled.js +57 -20
- package/admin/components/ContentEntries/Table/Cells/Cells.styled.js.map +1 -1
- package/admin/components/ContentEntries/Table/Cells/index.js.map +1 -1
- package/admin/components/ContentEntries/Table/index.js +1 -2
- package/admin/components/ContentEntries/Table/index.js.map +1 -1
- package/admin/components/ContentEntries/Table/styled.js +16 -7
- package/admin/components/ContentEntries/Table/styled.js.map +1 -1
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinDeleteItemGraphQLGateway.d.ts +9 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinDeleteItemGraphQLGateway.js +42 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinDeleteItemGraphQLGateway.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinItemMapper.d.ts +5 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinItemMapper.js +33 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinItemMapper.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinListGraphQLGateway.d.ts +11 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinListGraphQLGateway.js +49 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinListGraphQLGateway.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinRestoreItemGraphQLGateway.d.ts +9 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinRestoreItemGraphQLGateway.js +41 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinRestoreItemGraphQLGateway.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinRestoreItemGraphQLGatewayWithCallback.d.ts +8 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinRestoreItemGraphQLGatewayWithCallback.js +30 -0
- package/admin/components/ContentEntries/TrashBin/adapters/TrashBinRestoreItemGraphQLGatewayWithCallback.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/adapters/index.d.ts +5 -0
- package/admin/components/ContentEntries/TrashBin/adapters/index.js +62 -0
- package/admin/components/ContentEntries/TrashBin/adapters/index.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBin.d.ts +2 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBin.js +59 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBin.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBin.styled.d.ts +14 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBin.styled.js +54 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBin.styled.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBinButton.d.ts +5 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBinButton.js +19 -0
- package/admin/components/ContentEntries/TrashBin/components/TrashBinButton.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/components/index.d.ts +1 -0
- package/admin/components/ContentEntries/TrashBin/components/index.js +18 -0
- package/admin/components/ContentEntries/TrashBin/components/index.js.map +1 -0
- package/admin/components/ContentEntries/TrashBin/index.d.ts +1 -0
- package/admin/components/ContentEntries/TrashBin/index.js +18 -0
- package/admin/components/ContentEntries/TrashBin/index.js.map +1 -0
- package/admin/components/ContentEntryForm/ContentEntryForm.d.ts +37 -7
- package/admin/components/ContentEntryForm/ContentEntryForm.js +62 -136
- package/admin/components/ContentEntryForm/ContentEntryForm.js.map +1 -1
- package/admin/components/ContentEntryForm/ContentEntryFormPreview.d.ts +9 -4
- package/admin/components/ContentEntryForm/ContentEntryFormPreview.js +36 -65
- package/admin/components/ContentEntryForm/ContentEntryFormPreview.js.map +1 -1
- package/admin/components/ContentEntryForm/ContentEntryFormProvider.d.ts +27 -0
- package/admin/components/ContentEntryForm/ContentEntryFormProvider.js +187 -0
- package/admin/components/ContentEntryForm/ContentEntryFormProvider.js.map +1 -0
- package/admin/components/ContentEntryForm/CustomLayout.d.ts +8 -0
- package/admin/components/ContentEntryForm/CustomLayout.js +43 -0
- package/admin/components/ContentEntryForm/CustomLayout.js.map +1 -0
- package/admin/components/ContentEntryForm/DefaultLayout.d.ts +7 -0
- package/admin/components/ContentEntryForm/DefaultLayout.js +27 -0
- package/admin/components/ContentEntryForm/DefaultLayout.js.map +1 -0
- package/admin/components/ContentEntryForm/FieldElement.d.ts +5 -3
- package/admin/components/ContentEntryForm/FieldElement.js +16 -12
- package/admin/components/ContentEntryForm/FieldElement.js.map +1 -1
- package/admin/components/ContentEntryForm/Fields.d.ts +2 -2
- package/admin/components/ContentEntryForm/Fields.js +3 -3
- package/admin/components/ContentEntryForm/Fields.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/ContentFormOptionsMenu/ContentFormOptionsMenu.d.ts +2 -2
- package/admin/components/ContentEntryForm/Header/ContentFormOptionsMenu/ContentFormOptionsMenu.js +1 -2
- package/admin/components/ContentEntryForm/Header/ContentFormOptionsMenu/ContentFormOptionsMenu.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/ContentFormOptionsMenu/ContentFormOptionsMenu.styles.d.ts +1 -1
- package/admin/components/ContentEntryForm/Header/ContentFormOptionsMenu/ContentFormOptionsMenu.styles.js +15 -5
- package/admin/components/ContentEntryForm/Header/ContentFormOptionsMenu/ContentFormOptionsMenu.styles.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/ContentFormOptionsMenu/index.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/DeleteEntry/DeleteEntry.d.ts +2 -2
- package/admin/components/ContentEntryForm/Header/DeleteEntry/DeleteEntry.js +23 -24
- package/admin/components/ContentEntryForm/Header/DeleteEntry/DeleteEntry.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/DeleteEntry/index.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/Header.d.ts +2 -2
- package/admin/components/ContentEntryForm/Header/Header.js +33 -28
- package/admin/components/ContentEntryForm/Header/Header.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.d.ts +2 -2
- package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.js +1 -2
- package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.styles.d.ts +17 -16
- package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.styles.js +29 -10
- package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.styles.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/RevisionSelector/index.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/SaveAndPublishContent.d.ts +2 -7
- package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/SaveAndPublishContent.js +16 -9
- package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/SaveAndPublishContent.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/index.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/SaveContent/SaveContent.d.ts +2 -2
- package/admin/components/ContentEntryForm/Header/SaveContent/SaveContent.js +10 -9
- package/admin/components/ContentEntryForm/Header/SaveContent/SaveContent.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/SaveContent/index.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/index.js.map +1 -1
- package/admin/components/ContentEntryForm/Label.d.ts +1 -1
- package/admin/components/ContentEntryForm/Label.js +3 -4
- package/admin/components/ContentEntryForm/Label.js.map +1 -1
- package/admin/components/ContentEntryForm/ParentValue.d.ts +1 -1
- package/admin/components/ContentEntryForm/ParentValue.js +1 -2
- package/admin/components/ContentEntryForm/ParentValue.js.map +1 -1
- package/admin/components/ContentEntryForm/functions/getValue.js +1 -2
- package/admin/components/ContentEntryForm/functions/getValue.js.map +1 -1
- package/admin/components/ContentEntryForm/functions/setValue.js +1 -2
- package/admin/components/ContentEntryForm/functions/setValue.js.map +1 -1
- package/admin/components/ContentEntryForm/useBind.d.ts +1 -1
- package/admin/components/ContentEntryForm/useBind.js +19 -10
- package/admin/components/ContentEntryForm/useBind.js.map +1 -1
- package/admin/components/ContentEntryForm/useContentEntryForm.d.ts +8 -20
- package/admin/components/ContentEntryForm/useContentEntryForm.js +10 -346
- package/admin/components/ContentEntryForm/useContentEntryForm.js.map +1 -1
- package/admin/components/ContentEntryForm/useDefaultValues.d.ts +2 -0
- package/admin/components/ContentEntryForm/useDefaultValues.js +95 -0
- package/admin/components/ContentEntryForm/useDefaultValues.js.map +1 -0
- package/admin/components/ContentEntryForm/useFormRenderer.d.ts +2 -0
- package/admin/components/ContentEntryForm/useFormRenderer.js +14 -0
- package/admin/components/ContentEntryForm/useFormRenderer.js.map +1 -0
- package/admin/components/ContentEntryForm/useGoToRevision.d.ts +3 -0
- package/admin/components/ContentEntryForm/useGoToRevision.js +26 -0
- package/admin/components/ContentEntryForm/useGoToRevision.js.map +1 -0
- package/admin/components/ContentEntryForm/useRenderPlugins.js.map +1 -1
- package/admin/components/ContentModelEditor/ContentModelEditor.d.ts +12 -0
- package/admin/components/ContentModelEditor/ContentModelEditor.js +172 -0
- package/admin/components/ContentModelEditor/ContentModelEditor.js.map +1 -0
- package/admin/components/ContentModelEditor/ContentModelEditorProvider.d.ts +1 -1
- package/admin/components/ContentModelEditor/ContentModelEditorProvider.js +3 -6
- package/admin/components/ContentModelEditor/ContentModelEditorProvider.js.map +1 -1
- package/admin/components/ContentModelEditor/FieldsSidebar.d.ts +2 -2
- package/admin/components/ContentModelEditor/FieldsSidebar.js +63 -40
- package/admin/components/ContentModelEditor/FieldsSidebar.js.map +1 -1
- package/admin/components/ContentModelEditor/Header.d.ts +2 -2
- package/admin/components/ContentModelEditor/Header.js +3 -4
- package/admin/components/ContentModelEditor/Header.js.map +1 -1
- package/admin/components/ContentModelEditor/PreviewTab.js +5 -6
- package/admin/components/ContentModelEditor/PreviewTab.js.map +1 -1
- package/admin/components/ContentModelEditor/index.js.map +1 -1
- package/admin/components/ContentModelEditor/useModelEditor.js.map +1 -1
- package/admin/components/Decorators/ShowConfirmationOnDelete.d.ts +2 -0
- package/admin/components/Decorators/ShowConfirmationOnDelete.js +101 -0
- package/admin/components/Decorators/ShowConfirmationOnDelete.js.map +1 -0
- package/admin/components/Decorators/ShowConfirmationOnPublish.d.ts +2 -0
- package/admin/components/Decorators/ShowConfirmationOnPublish.js +106 -0
- package/admin/components/Decorators/ShowConfirmationOnPublish.js.map +1 -0
- package/admin/components/Decorators/ShowConfirmationOnUnpublish.d.ts +2 -0
- package/admin/components/Decorators/ShowConfirmationOnUnpublish.js +106 -0
- package/admin/components/Decorators/ShowConfirmationOnUnpublish.js.map +1 -0
- package/admin/components/Dialog.js +15 -5
- package/admin/components/Dialog.js.map +1 -1
- package/admin/components/DragPreview.d.ts +2 -2
- package/admin/components/DragPreview.js +1 -2
- package/admin/components/DragPreview.js.map +1 -1
- package/admin/components/Draggable.js +8 -13
- package/admin/components/Draggable.js.map +1 -1
- package/admin/components/DropZone/Center.d.ts +1 -1
- package/admin/components/DropZone/Center.js +7 -6
- package/admin/components/DropZone/Center.js.map +1 -1
- package/admin/components/DropZone/Horizontal.d.ts +2 -2
- package/admin/components/DropZone/Horizontal.js +36 -37
- package/admin/components/DropZone/Horizontal.js.map +1 -1
- package/admin/components/DropZone/Vertical.d.ts +2 -2
- package/admin/components/DropZone/Vertical.js +37 -37
- package/admin/components/DropZone/Vertical.js.map +1 -1
- package/admin/components/DropZone/index.js.map +1 -1
- package/admin/components/Droppable.d.ts +6 -2
- package/admin/components/Droppable.js +1 -2
- package/admin/components/Droppable.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab/LegacyRichTextInput.d.ts +2 -0
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab/LegacyRichTextInput.js +21 -0
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab/LegacyRichTextInput.js.map +1 -0
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab/RendererOptions.d.ts +7 -0
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab/RendererOptions.js +29 -0
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab/RendererOptions.js.map +1 -0
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.js +49 -63
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/GeneralTab.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog/GeneralTab.js +2 -3
- package/admin/components/FieldEditor/EditFieldDialog/GeneralTab.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.js +6 -7
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/ValidationsSection.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog/ValidationsSection.js +1 -2
- package/admin/components/FieldEditor/EditFieldDialog/ValidationsSection.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/ValidatorsList.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog/ValidatorsList.js +35 -13
- package/admin/components/FieldEditor/EditFieldDialog/ValidatorsList.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.js +2 -4
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.js +6 -9
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/getValidators.js +2 -4
- package/admin/components/FieldEditor/EditFieldDialog/getValidators.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/useRendererPlugins.d.ts +2 -0
- package/admin/components/FieldEditor/EditFieldDialog/useRendererPlugins.js +39 -0
- package/admin/components/FieldEditor/EditFieldDialog/useRendererPlugins.js.map +1 -0
- package/admin/components/FieldEditor/EditFieldDialog.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog.js +22 -20
- package/admin/components/FieldEditor/EditFieldDialog.js.map +1 -1
- package/admin/components/FieldEditor/Field.d.ts +1 -1
- package/admin/components/FieldEditor/Field.js +81 -50
- package/admin/components/FieldEditor/Field.js.map +1 -1
- package/admin/components/FieldEditor/FieldEditor.d.ts +2 -2
- package/admin/components/FieldEditor/FieldEditor.js +1 -2
- package/admin/components/FieldEditor/FieldEditor.js.map +1 -1
- package/admin/components/FieldEditor/FieldEditorContext.d.ts +3 -3
- package/admin/components/FieldEditor/FieldEditorContext.js +4 -7
- package/admin/components/FieldEditor/FieldEditorContext.js.map +1 -1
- package/admin/components/FieldEditor/Styled.d.ts +2 -2
- package/admin/components/FieldEditor/Styled.js +33 -24
- package/admin/components/FieldEditor/Styled.js.map +1 -1
- package/admin/components/FieldEditor/index.js.map +1 -1
- package/admin/components/FieldEditor/useModelFieldEditor.js.map +1 -1
- package/admin/components/FieldEditor/utils/deleteField.js +1 -2
- package/admin/components/FieldEditor/utils/deleteField.js.map +1 -1
- package/admin/components/FieldEditor/utils/getFieldPosition.js +1 -2
- package/admin/components/FieldEditor/utils/getFieldPosition.js.map +1 -1
- package/admin/components/FieldEditor/utils/index.js.map +1 -1
- package/admin/components/FieldEditor/utils/moveField.js +1 -2
- package/admin/components/FieldEditor/utils/moveField.js.map +1 -1
- package/admin/components/FieldEditor/utils/moveRow.js +1 -2
- package/admin/components/FieldEditor/utils/moveRow.js.map +1 -1
- package/admin/components/IconPicker.d.ts +1 -1
- package/admin/components/IconPicker.js +37 -20
- package/admin/components/IconPicker.js.map +1 -1
- package/admin/components/LexicalCmsEditor/LexicalCmsEditor.d.ts +2 -2
- package/admin/components/LexicalCmsEditor/LexicalCmsEditor.js +1 -2
- package/admin/components/LexicalCmsEditor/LexicalCmsEditor.js.map +1 -1
- package/admin/components/LexicalCmsEditor/LexicalEditorCmsPlugin.js +1 -2
- package/admin/components/LexicalCmsEditor/LexicalEditorCmsPlugin.js.map +1 -1
- package/admin/components/LexicalCmsEditor/TypographyDropDown.d.ts +2 -2
- package/admin/components/LexicalCmsEditor/TypographyDropDown.js +1 -2
- package/admin/components/LexicalCmsEditor/TypographyDropDown.js.map +1 -1
- package/admin/components/ModelFieldProvider/ModelFieldContext.d.ts +12 -2
- package/admin/components/ModelFieldProvider/ModelFieldContext.js +16 -5
- package/admin/components/ModelFieldProvider/ModelFieldContext.js.map +1 -1
- package/admin/components/ModelFieldProvider/index.js.map +1 -1
- package/admin/components/ModelFieldProvider/useModelField.d.ts +11 -21
- package/admin/components/ModelFieldProvider/useModelField.js +8 -6
- package/admin/components/ModelFieldProvider/useModelField.js.map +1 -1
- package/admin/components/ModelProvider/ModelContext.d.ts +1 -1
- package/admin/components/ModelProvider/ModelContext.js +2 -4
- package/admin/components/ModelProvider/ModelContext.js.map +1 -1
- package/admin/components/ModelProvider/index.js.map +1 -1
- package/admin/components/ModelProvider/useModel.js.map +1 -1
- package/admin/config/IsApplicableToCurrentModel.d.ts +6 -0
- package/admin/config/IsApplicableToCurrentModel.js +21 -0
- package/admin/config/IsApplicableToCurrentModel.js.map +1 -0
- package/admin/config/contentEntries/editor/Actions/BaseAction.d.ts +1 -1
- package/admin/config/contentEntries/editor/Actions/BaseAction.js +1 -2
- package/admin/config/contentEntries/editor/Actions/BaseAction.js.map +1 -1
- package/admin/config/contentEntries/editor/Actions/ButtonAction.d.ts +15 -3
- package/admin/config/contentEntries/editor/Actions/ButtonAction.js +3 -5
- package/admin/config/contentEntries/editor/Actions/ButtonAction.js.map +1 -1
- package/admin/config/contentEntries/editor/Actions/MenuItemAction.d.ts +15 -3
- package/admin/config/contentEntries/editor/Actions/MenuItemAction.js +3 -5
- package/admin/config/contentEntries/editor/Actions/MenuItemAction.js.map +1 -1
- package/admin/config/contentEntries/editor/Actions/index.d.ts +14 -2
- package/admin/config/contentEntries/editor/Actions/index.js +1 -2
- package/admin/config/contentEntries/editor/Actions/index.js.map +1 -1
- package/admin/config/contentEntries/editor/ContentEntryEditorConfig.d.ts +18 -6
- package/admin/config/contentEntries/editor/ContentEntryEditorConfig.js +2 -4
- package/admin/config/contentEntries/editor/ContentEntryEditorConfig.js.map +1 -1
- package/admin/config/contentEntries/editor/FieldElement.d.ts +2 -2
- package/admin/config/contentEntries/editor/FieldElement.js +1 -2
- package/admin/config/contentEntries/editor/FieldElement.js.map +1 -1
- package/admin/config/contentEntries/editor/index.js.map +1 -1
- package/admin/config/contentEntries/index.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer.d.ts +10 -0
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer.js +39 -0
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer.js.map +1 -0
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/index.d.ts +11 -0
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/index.js +12 -0
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/index.js.map +1 -0
- package/admin/config/contentEntries/list/Browser/BulkAction.d.ts +14 -2
- package/admin/config/contentEntries/list/Browser/BulkAction.js +3 -5
- package/admin/config/contentEntries/list/Browser/BulkAction.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/EntryAction.d.ts +9 -3
- package/admin/config/contentEntries/list/Browser/EntryAction.js +7 -11
- package/admin/config/contentEntries/list/Browser/EntryAction.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/Filter.d.ts +3 -2
- package/admin/config/contentEntries/list/Browser/Filter.js +1 -2
- package/admin/config/contentEntries/list/Browser/Filter.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/FiltersToWhere.d.ts +2 -2
- package/admin/config/contentEntries/list/Browser/FiltersToWhere.js +1 -2
- package/admin/config/contentEntries/list/Browser/FiltersToWhere.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/FolderAction.d.ts +2 -2
- package/admin/config/contentEntries/list/Browser/FolderAction.js +1 -2
- package/admin/config/contentEntries/list/Browser/FolderAction.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/Table/Column.d.ts +8 -2
- package/admin/config/contentEntries/list/Browser/Table/Column.js +8 -11
- package/admin/config/contentEntries/list/Browser/Table/Column.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/Table/index.d.ts +8 -2
- package/admin/config/contentEntries/list/Browser/Table/index.js +1 -2
- package/admin/config/contentEntries/list/Browser/Table/index.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/index.d.ts +38 -11
- package/admin/config/contentEntries/list/Browser/index.js +3 -2
- package/admin/config/contentEntries/list/Browser/index.js.map +1 -1
- package/admin/config/contentEntries/list/ContentEntryListConfig.d.ts +39 -13
- package/admin/config/contentEntries/list/ContentEntryListConfig.js +2 -4
- package/admin/config/contentEntries/list/ContentEntryListConfig.js.map +1 -1
- package/admin/config/contentEntries/list/index.js.map +1 -1
- package/admin/constants.d.ts +6 -6
- package/admin/constants.js +6 -14
- package/admin/constants.js.map +1 -1
- package/admin/contexts/Cms/NetworkError.js +1 -2
- package/admin/contexts/Cms/NetworkError.js.map +1 -1
- package/admin/contexts/Cms/index.d.ts +46 -54
- package/admin/contexts/Cms/index.js +232 -59
- package/admin/contexts/Cms/index.js.map +1 -1
- package/admin/elements/ContentGroupMenuElement.js +4 -6
- package/admin/elements/ContentGroupMenuElement.js.map +1 -1
- package/admin/elements/ContentModelMenuElement.js +4 -6
- package/admin/elements/ContentModelMenuElement.js.map +1 -1
- package/admin/elements/NothingToShowElement.js +16 -21
- package/admin/elements/NothingToShowElement.js.map +1 -1
- package/admin/graphql/contentModels.d.ts +1 -1
- package/admin/graphql/contentModels.js +6 -8
- package/admin/graphql/contentModels.js.map +1 -1
- package/admin/hooks/index.d.ts +0 -2
- package/admin/hooks/index.js +0 -16
- package/admin/hooks/index.js.map +1 -1
- package/admin/hooks/useApolloClient.js +1 -2
- package/admin/hooks/useApolloClient.js.map +1 -1
- package/admin/hooks/useCms.js +1 -2
- package/admin/hooks/useCms.js.map +1 -1
- package/admin/hooks/useContentModels.js +2 -4
- package/admin/hooks/useContentModels.js.map +1 -1
- package/admin/hooks/useEntry.d.ts +1 -1
- package/admin/hooks/useEntry.js +3 -6
- package/admin/hooks/useEntry.js.map +1 -1
- package/admin/hooks/useLazyQuery.js +1 -2
- package/admin/hooks/useLazyQuery.js.map +1 -1
- package/admin/hooks/useModelFieldGraphqlContext.d.ts +2 -1
- package/admin/hooks/useModelFieldGraphqlContext.js +1 -2
- package/admin/hooks/useModelFieldGraphqlContext.js.map +1 -1
- package/admin/hooks/useMutation.js +1 -2
- package/admin/hooks/useMutation.js.map +1 -1
- package/admin/hooks/usePermission.d.ts +2 -1
- package/admin/hooks/usePermission.js +15 -4
- package/admin/hooks/usePermission.js.map +1 -1
- package/admin/hooks/useQuery.js +1 -2
- package/admin/hooks/useQuery.js.map +1 -1
- package/admin/hooks/useQueryLocale.js +1 -2
- package/admin/hooks/useQueryLocale.js.map +1 -1
- package/admin/lexicalConfig/LexicalEditorConfig.d.ts +4 -4
- package/admin/lexicalConfig/LexicalEditorConfig.js +1 -2
- package/admin/lexicalConfig/LexicalEditorConfig.js.map +1 -1
- package/admin/menus/CmsMenuLoader.js +1 -2
- package/admin/menus/CmsMenuLoader.js.map +1 -1
- package/admin/menus/ContentGroupsMenuItems.d.ts +2 -2
- package/admin/menus/ContentGroupsMenuItems.js +1 -2
- package/admin/menus/ContentGroupsMenuItems.js.map +1 -1
- package/admin/menus/GlobalSearchPlugins.js +1 -2
- package/admin/menus/GlobalSearchPlugins.js.map +1 -1
- package/admin/menus/NothingToShowElement.d.ts +2 -2
- package/admin/menus/NothingToShowElement.js +9 -12
- package/admin/menus/NothingToShowElement.js.map +1 -1
- package/admin/plugins/apiInformation/index.js +1 -2
- package/admin/plugins/apiInformation/index.js.map +1 -1
- package/admin/plugins/arrayUtils.js.map +1 -1
- package/admin/plugins/definitions/CmsEditorFieldValidatorFileTypePlugin.js +5 -8
- package/admin/plugins/definitions/CmsEditorFieldValidatorFileTypePlugin.js.map +1 -1
- package/admin/plugins/definitions/CmsFieldValidatorFileTypePlugin.js +5 -8
- package/admin/plugins/definitions/CmsFieldValidatorFileTypePlugin.js.map +1 -1
- package/admin/plugins/editor/defaultBar/BackButton.d.ts +1 -1
- package/admin/plugins/editor/defaultBar/BackButton.js +19 -9
- package/admin/plugins/editor/defaultBar/BackButton.js.map +1 -1
- package/admin/plugins/editor/defaultBar/CreateContentButton.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/CreateContentButton.js +1 -2
- package/admin/plugins/editor/defaultBar/CreateContentButton.js.map +1 -1
- package/admin/plugins/editor/defaultBar/Divider.d.ts +1 -1
- package/admin/plugins/editor/defaultBar/Divider.js +14 -9
- package/admin/plugins/editor/defaultBar/Divider.js.map +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettings.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettings.js +1 -2
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettings.js.map +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsButton.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsButton.js +1 -2
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsButton.js.map +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.d.ts +3 -3
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.js +34 -24
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.js.map +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/index.js.map +1 -1
- package/admin/plugins/editor/defaultBar/Name/Name.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/Name/Name.js +1 -2
- package/admin/plugins/editor/defaultBar/Name/Name.js.map +1 -1
- package/admin/plugins/editor/defaultBar/Name/NameStyled.d.ts +3 -3
- package/admin/plugins/editor/defaultBar/Name/NameStyled.js +39 -43
- package/admin/plugins/editor/defaultBar/Name/NameStyled.js.map +1 -1
- package/admin/plugins/editor/defaultBar/Name/index.js.map +1 -1
- package/admin/plugins/editor/defaultBar/SaveContentModelButton.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/SaveContentModelButton.js +1 -2
- package/admin/plugins/editor/defaultBar/SaveContentModelButton.js.map +1 -1
- package/admin/plugins/editor/defaultBar/index.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/index.js +1 -2
- package/admin/plugins/editor/defaultBar/index.js.map +1 -1
- package/admin/plugins/editor/formSettings/components/GeneralSettings.d.ts +2 -2
- package/admin/plugins/editor/formSettings/components/GeneralSettings.js +1 -2
- package/admin/plugins/editor/formSettings/components/GeneralSettings.js.map +1 -1
- package/admin/plugins/editor/formSettings/components/GroupSelect.d.ts +2 -2
- package/admin/plugins/editor/formSettings/components/GroupSelect.js.map +1 -1
- package/admin/plugins/editor/formSettings/index.js +1 -2
- package/admin/plugins/editor/formSettings/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/Accordion.js +9 -9
- package/admin/plugins/fieldRenderers/Accordion.js.map +1 -1
- package/admin/plugins/fieldRenderers/DynamicSection.d.ts +1 -1
- package/admin/plugins/fieldRenderers/DynamicSection.js +13 -13
- package/admin/plugins/fieldRenderers/DynamicSection.js.map +1 -1
- package/admin/plugins/fieldRenderers/boolean/booleanSwitch.d.ts +2 -2
- package/admin/plugins/fieldRenderers/boolean/booleanSwitch.js +1 -2
- package/admin/plugins/fieldRenderers/boolean/booleanSwitch.js.map +1 -1
- package/admin/plugins/fieldRenderers/boolean/index.js +1 -2
- package/admin/plugins/fieldRenderers/boolean/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/checkboxes.d.ts +2 -2
- package/admin/plugins/fieldRenderers/checkboxes.js +1 -2
- package/admin/plugins/fieldRenderers/checkboxes.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/DateOnly.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/DateOnly.js +1 -2
- package/admin/plugins/fieldRenderers/dateTime/DateOnly.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.js +2 -3
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.js +2 -3
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/Input.d.ts +1 -1
- package/admin/plugins/fieldRenderers/dateTime/Input.js +1 -2
- package/admin/plugins/fieldRenderers/dateTime/Input.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/Select.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/Select.js +1 -2
- package/admin/plugins/fieldRenderers/dateTime/Select.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/Time.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/Time.js +2 -3
- package/admin/plugins/fieldRenderers/dateTime/Time.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/dateTimeField.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/dateTimeField.js +1 -2
- package/admin/plugins/fieldRenderers/dateTime/dateTimeField.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/dateTimeFields.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/dateTimeFields.js +1 -2
- package/admin/plugins/fieldRenderers/dateTime/dateTimeFields.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/index.js +1 -2
- package/admin/plugins/fieldRenderers/dateTime/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/utils.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/utils.js +8 -14
- package/admin/plugins/fieldRenderers/dateTime/utils.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/AddTemplate.d.ts +5 -5
- package/admin/plugins/fieldRenderers/dynamicZone/AddTemplate.js +52 -17
- package/admin/plugins/fieldRenderers/dynamicZone/AddTemplate.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/MultiValueDynamicZone.d.ts +7 -4
- package/admin/plugins/fieldRenderers/dynamicZone/MultiValueDynamicZone.js +24 -16
- package/admin/plugins/fieldRenderers/dynamicZone/MultiValueDynamicZone.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/SingleValueDynamicZone.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dynamicZone/SingleValueDynamicZone.js +9 -4
- package/admin/plugins/fieldRenderers/dynamicZone/SingleValueDynamicZone.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateGallery.d.ts +20 -35
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateGallery.js +16 -6
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateGallery.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateIcon.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateIcon.js +1 -2
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateIcon.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateItem.d.ts +3 -2
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateItem.js +86 -26
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateItem.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateProvider.d.ts +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateProvider.js +1 -2
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateProvider.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/dynamicZoneRenderer.d.ts +4 -3
- package/admin/plugins/fieldRenderers/dynamicZone/dynamicZoneRenderer.js +5 -5
- package/admin/plugins/fieldRenderers/dynamicZone/dynamicZoneRenderer.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/useTemplateTypename.d.ts +4 -0
- package/admin/plugins/fieldRenderers/dynamicZone/useTemplateTypename.js +37 -0
- package/admin/plugins/fieldRenderers/dynamicZone/useTemplateTypename.js.map +1 -0
- package/admin/plugins/fieldRenderers/hidden.d.ts +2 -0
- package/admin/plugins/fieldRenderers/hidden.js +23 -0
- package/admin/plugins/fieldRenderers/hidden.js.map +1 -0
- package/admin/plugins/fieldRenderers/lexicalText/index.js +1 -2
- package/admin/plugins/fieldRenderers/lexicalText/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/lexicalText/lexicalTextInput.d.ts +2 -2
- package/admin/plugins/fieldRenderers/lexicalText/lexicalTextInput.js +20 -12
- package/admin/plugins/fieldRenderers/lexicalText/lexicalTextInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/lexicalText/lexicalTextInputs.d.ts +2 -2
- package/admin/plugins/fieldRenderers/lexicalText/lexicalTextInputs.js +30 -20
- package/admin/plugins/fieldRenderers/lexicalText/lexicalTextInputs.js.map +1 -1
- package/admin/plugins/fieldRenderers/lexicalText/utils.js +1 -2
- package/admin/plugins/fieldRenderers/lexicalText/utils.js.map +1 -1
- package/admin/plugins/fieldRenderers/longText/index.js +1 -2
- package/admin/plugins/fieldRenderers/longText/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/longText/longText.d.ts +2 -2
- package/admin/plugins/fieldRenderers/longText/longText.js +9 -4
- package/admin/plugins/fieldRenderers/longText/longText.js.map +1 -1
- package/admin/plugins/fieldRenderers/longText/longTexts.d.ts +2 -2
- package/admin/plugins/fieldRenderers/longText/longTexts.js +11 -3
- package/admin/plugins/fieldRenderers/longText/longTexts.js.map +1 -1
- package/admin/plugins/fieldRenderers/number/index.js +1 -2
- package/admin/plugins/fieldRenderers/number/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/number/numberInput.d.ts +2 -2
- package/admin/plugins/fieldRenderers/number/numberInput.js +11 -9
- package/admin/plugins/fieldRenderers/number/numberInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/number/numberInputs.d.ts +2 -2
- package/admin/plugins/fieldRenderers/number/numberInputs.js +11 -6
- package/admin/plugins/fieldRenderers/number/numberInputs.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/FieldSettings.d.ts +2 -1
- package/admin/plugins/fieldRenderers/object/FieldSettings.js +2 -4
- package/admin/plugins/fieldRenderers/object/FieldSettings.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/StyledComponents.d.ts +2 -2
- package/admin/plugins/fieldRenderers/object/StyledComponents.js +26 -17
- package/admin/plugins/fieldRenderers/object/StyledComponents.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/index.js +1 -2
- package/admin/plugins/fieldRenderers/object/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/multipleObjects.js +5 -6
- package/admin/plugins/fieldRenderers/object/multipleObjects.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/multipleObjectsAccordion.js +6 -11
- package/admin/plugins/fieldRenderers/object/multipleObjectsAccordion.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/singleObjectAccordion.js +5 -3
- package/admin/plugins/fieldRenderers/object/singleObjectAccordion.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/singleObjectInline.js +5 -3
- package/admin/plugins/fieldRenderers/object/singleObjectInline.js.map +1 -1
- package/admin/plugins/fieldRenderers/radioButtons.d.ts +2 -2
- package/admin/plugins/fieldRenderers/radioButtons.js +1 -2
- package/admin/plugins/fieldRenderers/radioButtons.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceField.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceField.js +57 -34
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceField.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceSettings.d.ts +5 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceSettings.js +28 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceSettings.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedSingleReferenceField.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedSingleReferenceField.js +28 -14
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedSingleReferenceField.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entries.d.ts +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entries.js +23 -14
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entries.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entry.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entry.js +69 -53
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entry.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/Loader.d.ts +3 -3
- package/admin/plugins/fieldRenderers/ref/advanced/components/Loader.js +28 -20
- package/admin/plugins/fieldRenderers/ref/advanced/components/Loader.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/Options.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/Options.js +63 -68
- package/admin/plugins/fieldRenderers/ref/advanced/components/Options.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/ReferencesDialog.d.ts +4 -3
- package/admin/plugins/fieldRenderers/ref/advanced/components/ReferencesDialog.js +56 -30
- package/admin/plugins/fieldRenderers/ref/advanced/components/ReferencesDialog.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/Search.d.ts +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/Search.js +38 -36
- package/admin/plugins/fieldRenderers/ref/advanced/components/Search.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Box.d.ts +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Box.js +62 -37
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Box.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/CreatedBy.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/CreatedBy.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/CreatedBy.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Description.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Description.js +14 -13
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Description.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Image.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Image.js +27 -32
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Image.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModelName.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModelName.js +14 -11
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModelName.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModifiedBy.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModifiedBy.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModifiedBy.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveDown.d.ts +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveDown.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveDown.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveUp.d.ts +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveUp.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveUp.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Remove.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Remove.js +14 -11
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Remove.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Select.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Select.js +44 -37
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Select.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Status.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Status.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Status.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Title.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Title.js +14 -10
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Title.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/View.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/View.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/View.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/elements/ButtonLink.d.ts +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/elements/ButtonLink.js +20 -27
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/elements/ButtonLink.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelList.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelList.js +27 -25
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelList.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelListItem.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelListItem.js +63 -56
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelListItem.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferenceRenderer.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferenceRenderer.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferencesRenderer.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferencesRenderer.js +6 -3
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferencesRenderer.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/graphql.js +2 -4
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/graphql.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useEntries.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useEntries.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useReferences.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useReferences.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/index.js +1 -2
- package/admin/plugins/fieldRenderers/ref/advanced/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.js +1 -3
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.js +1 -2
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/EntryStatus.d.ts +1 -1
- package/admin/plugins/fieldRenderers/ref/components/EntryStatus.js +38 -17
- package/admin/plugins/fieldRenderers/ref/components/EntryStatus.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/MissingEntryHelpText.d.ts +3 -3
- package/admin/plugins/fieldRenderers/ref/components/MissingEntryHelpText.js +17 -8
- package/admin/plugins/fieldRenderers/ref/components/MissingEntryHelpText.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/NewEntryButton.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/components/NewEntryButton.js +16 -6
- package/admin/plugins/fieldRenderers/ref/components/NewEntryButton.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/NewReferencedEntryDialog.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/components/NewReferencedEntryDialog.js +109 -57
- package/admin/plugins/fieldRenderers/ref/components/NewReferencedEntryDialog.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/createEntryUrl.js +2 -4
- package/admin/plugins/fieldRenderers/ref/components/createEntryUrl.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/dialog/Dialog.d.ts +0 -4
- package/admin/plugins/fieldRenderers/ref/components/dialog/Dialog.js +26 -24
- package/admin/plugins/fieldRenderers/ref/components/dialog/Dialog.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/dialog/DialogHeader.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/components/dialog/DialogHeader.js +75 -57
- package/admin/plugins/fieldRenderers/ref/components/dialog/DialogHeader.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/graphql.js +5 -6
- package/admin/plugins/fieldRenderers/ref/components/graphql.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/helpers.js +4 -8
- package/admin/plugins/fieldRenderers/ref/components/helpers.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/renderItem.d.ts +3 -3
- package/admin/plugins/fieldRenderers/ref/components/renderItem.js +17 -10
- package/admin/plugins/fieldRenderers/ref/components/renderItem.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/types.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/useReference.js +1 -2
- package/admin/plugins/fieldRenderers/ref/components/useReference.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/useReferences.js +1 -2
- package/admin/plugins/fieldRenderers/ref/components/useReferences.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/hooks/useNewRefEntry.js +1 -2
- package/admin/plugins/fieldRenderers/ref/hooks/useNewRefEntry.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/index.js +1 -2
- package/admin/plugins/fieldRenderers/ref/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/refInput.js +1 -2
- package/admin/plugins/fieldRenderers/ref/refInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/refInputs.js +7 -6
- package/admin/plugins/fieldRenderers/ref/refInputs.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleItems.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleItems.js +28 -12
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleItems.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleMultipleRenderer.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleMultipleRenderer.js +1 -2
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleMultipleRenderer.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleSingleRenderer.d.ts +3 -2
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleSingleRenderer.js +4 -2
- package/admin/plugins/fieldRenderers/ref/simple/components/SimpleSingleRenderer.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/simple/components/useContentModels.js +1 -2
- package/admin/plugins/fieldRenderers/ref/simple/components/useContentModels.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/simple/components/useReferences.js +1 -2
- package/admin/plugins/fieldRenderers/ref/simple/components/useReferences.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/simple/index.js +1 -2
- package/admin/plugins/fieldRenderers/ref/simple/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/simple/simpleMultipleRenderer.js +1 -2
- package/admin/plugins/fieldRenderers/ref/simple/simpleMultipleRenderer.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/simple/simpleSingleRenderer.js +1 -2
- package/admin/plugins/fieldRenderers/ref/simple/simpleSingleRenderer.js.map +1 -1
- package/admin/plugins/fieldRenderers/richText/index.js +1 -2
- package/admin/plugins/fieldRenderers/richText/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/richText/richTextInput.d.ts +2 -2
- package/admin/plugins/fieldRenderers/richText/richTextInput.js +14 -15
- package/admin/plugins/fieldRenderers/richText/richTextInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/richText/richTextInputs.d.ts +2 -2
- package/admin/plugins/fieldRenderers/richText/richTextInputs.js +23 -17
- package/admin/plugins/fieldRenderers/richText/richTextInputs.js.map +1 -1
- package/admin/plugins/fieldRenderers/richText/utils.js +3 -6
- package/admin/plugins/fieldRenderers/richText/utils.js.map +1 -1
- package/admin/plugins/fieldRenderers/select.d.ts +2 -2
- package/admin/plugins/fieldRenderers/select.js +1 -2
- package/admin/plugins/fieldRenderers/select.js.map +1 -1
- package/admin/plugins/fieldRenderers/text/index.js +1 -2
- package/admin/plugins/fieldRenderers/text/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/text/textInput.d.ts +2 -2
- package/admin/plugins/fieldRenderers/text/textInput.js +10 -5
- package/admin/plugins/fieldRenderers/text/textInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/text/textInputs.d.ts +2 -2
- package/admin/plugins/fieldRenderers/text/textInputs.js +12 -4
- package/admin/plugins/fieldRenderers/text/textInputs.js.map +1 -1
- package/admin/plugins/fieldValidators/date/availableValidators.js +1 -2
- package/admin/plugins/fieldValidators/date/availableValidators.js.map +1 -1
- package/admin/plugins/fieldValidators/date/createDateInputField.d.ts +2 -2
- package/admin/plugins/fieldValidators/date/createDateInputField.js +1 -2
- package/admin/plugins/fieldValidators/date/createDateInputField.js.map +1 -1
- package/admin/plugins/fieldValidators/dateGte.js +1 -2
- package/admin/plugins/fieldValidators/dateGte.js.map +1 -1
- package/admin/plugins/fieldValidators/dateLte.js +1 -2
- package/admin/plugins/fieldValidators/dateLte.js.map +1 -1
- package/admin/plugins/fieldValidators/dynamicZone.js +1 -2
- package/admin/plugins/fieldValidators/dynamicZone.js.map +1 -1
- package/admin/plugins/fieldValidators/gte.js +1 -2
- package/admin/plugins/fieldValidators/gte.js.map +1 -1
- package/admin/plugins/fieldValidators/in.js +1 -2
- package/admin/plugins/fieldValidators/in.js.map +1 -1
- package/admin/plugins/fieldValidators/lte.js +1 -2
- package/admin/plugins/fieldValidators/lte.js.map +1 -1
- package/admin/plugins/fieldValidators/maxLength.js +1 -2
- package/admin/plugins/fieldValidators/maxLength.js.map +1 -1
- package/admin/plugins/fieldValidators/minLength.js +1 -2
- package/admin/plugins/fieldValidators/minLength.js.map +1 -1
- package/admin/plugins/fieldValidators/pattern.js +1 -2
- package/admin/plugins/fieldValidators/pattern.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/email.js +1 -2
- package/admin/plugins/fieldValidators/patternPlugins/email.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/lowerCase.js +1 -2
- package/admin/plugins/fieldValidators/patternPlugins/lowerCase.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/lowerCaseSpace.js +1 -2
- package/admin/plugins/fieldValidators/patternPlugins/lowerCaseSpace.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/upperCase.js +1 -2
- package/admin/plugins/fieldValidators/patternPlugins/upperCase.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/upperCaseSpace.js +1 -2
- package/admin/plugins/fieldValidators/patternPlugins/upperCaseSpace.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/url.js +1 -2
- package/admin/plugins/fieldValidators/patternPlugins/url.js.map +1 -1
- package/admin/plugins/fieldValidators/required.js +1 -2
- package/admin/plugins/fieldValidators/required.js.map +1 -1
- package/admin/plugins/fieldValidators/unique.js +1 -2
- package/admin/plugins/fieldValidators/unique.js.map +1 -1
- package/admin/plugins/fields/PredefinedValuesDynamicFieldset.d.ts +1 -1
- package/admin/plugins/fields/PredefinedValuesDynamicFieldset.js +37 -27
- package/admin/plugins/fields/PredefinedValuesDynamicFieldset.js.map +1 -1
- package/admin/plugins/fields/boolean.js +1 -2
- package/admin/plugins/fields/boolean.js.map +1 -1
- package/admin/plugins/fields/dateTime.js +20 -29
- package/admin/plugins/fields/dateTime.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/AddTemplate.d.ts +3 -3
- package/admin/plugins/fields/dynamicZone/AddTemplate.js +45 -16
- package/admin/plugins/fields/dynamicZone/AddTemplate.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/DynamicZone.d.ts +2 -2
- package/admin/plugins/fields/dynamicZone/DynamicZone.js +1 -2
- package/admin/plugins/fields/dynamicZone/DynamicZone.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/DynamicZoneTemplate.d.ts +2 -2
- package/admin/plugins/fields/dynamicZone/DynamicZoneTemplate.js +1 -2
- package/admin/plugins/fields/dynamicZone/DynamicZoneTemplate.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/TemplateDialog.d.ts +2 -2
- package/admin/plugins/fields/dynamicZone/TemplateDialog.js +1 -2
- package/admin/plugins/fields/dynamicZone/TemplateDialog.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/commonValidators.js +1 -2
- package/admin/plugins/fields/dynamicZone/commonValidators.js.map +1 -1
- package/admin/plugins/fields/dynamicZone.js +1 -2
- package/admin/plugins/fields/dynamicZone.js.map +1 -1
- package/admin/plugins/fields/longText.js +1 -2
- package/admin/plugins/fields/longText.js.map +1 -1
- package/admin/plugins/fields/number.js +1 -2
- package/admin/plugins/fields/number.js.map +1 -1
- package/admin/plugins/fields/object/ObjectFields.d.ts +2 -2
- package/admin/plugins/fields/object/ObjectFields.js +1 -2
- package/admin/plugins/fields/object/ObjectFields.js.map +1 -1
- package/admin/plugins/fields/object.js +1 -2
- package/admin/plugins/fields/object.js.map +1 -1
- package/admin/plugins/fields/ref/graphql.js +1 -2
- package/admin/plugins/fields/ref/graphql.js.map +1 -1
- package/admin/plugins/fields/ref/renderInfo.d.ts +2 -2
- package/admin/plugins/fields/ref/renderInfo.js +38 -34
- package/admin/plugins/fields/ref/renderInfo.js.map +1 -1
- package/admin/plugins/fields/ref.js +9 -11
- package/admin/plugins/fields/ref.js.map +1 -1
- package/admin/plugins/fields/richText.js +1 -2
- package/admin/plugins/fields/richText.js.map +1 -1
- package/admin/plugins/fields/text.js +1 -2
- package/admin/plugins/fields/text.js.map +1 -1
- package/admin/plugins/getObjectId.d.ts +1 -1
- package/admin/plugins/getObjectId.js +1 -2
- package/admin/plugins/getObjectId.js.map +1 -1
- package/admin/plugins/icons.js +1 -2
- package/admin/plugins/icons.js.map +1 -1
- package/admin/plugins/index.d.ts +4 -3
- package/admin/plugins/index.js +1 -2
- package/admin/plugins/index.js.map +1 -1
- package/admin/plugins/install.js +14 -7
- package/admin/plugins/install.js.map +1 -1
- package/admin/plugins/permissionRenderer/CmsPermissions.d.ts +6 -2
- package/admin/plugins/permissionRenderer/CmsPermissions.js +2 -4
- package/admin/plugins/permissionRenderer/CmsPermissions.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/ContentEntryPermission.d.ts +2 -2
- package/admin/plugins/permissionRenderer/components/ContentEntryPermission.js +1 -2
- package/admin/plugins/permissionRenderer/components/ContentEntryPermission.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/ContentModelGroupPermission.d.ts +2 -2
- package/admin/plugins/permissionRenderer/components/ContentModelGroupPermission.js +1 -2
- package/admin/plugins/permissionRenderer/components/ContentModelGroupPermission.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/ContentModelList.d.ts +2 -2
- package/admin/plugins/permissionRenderer/components/ContentModelList.js +5 -6
- package/admin/plugins/permissionRenderer/components/ContentModelList.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.d.ts +2 -2
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.js +1 -2
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.d.ts +1 -1
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.js +1 -2
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/PermissionSelector.d.ts +2 -2
- package/admin/plugins/permissionRenderer/components/PermissionSelector.js +2 -4
- package/admin/plugins/permissionRenderer/components/PermissionSelector.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/StyledComponents.d.ts +1 -1
- package/admin/plugins/permissionRenderer/components/StyledComponents.js +13 -8
- package/admin/plugins/permissionRenderer/components/StyledComponents.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/types.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/useCmsData.js +1 -2
- package/admin/plugins/permissionRenderer/components/useCmsData.js.map +1 -1
- package/admin/plugins/permissionRenderer/index.js +1 -2
- package/admin/plugins/permissionRenderer/index.js.map +1 -1
- package/admin/plugins/routes.js +1 -2
- package/admin/plugins/routes.js.map +1 -1
- package/admin/plugins/transformers/dateTransformer.js +1 -2
- package/admin/plugins/transformers/dateTransformer.js.map +1 -1
- package/admin/plugins/transformers/dynamicZoneTransformer.js +1 -2
- package/admin/plugins/transformers/dynamicZoneTransformer.js.map +1 -1
- package/admin/plugins/transformers/index.js +1 -2
- package/admin/plugins/transformers/index.js.map +1 -1
- package/admin/plugins/transformers/numberTransformer.js +1 -2
- package/admin/plugins/transformers/numberTransformer.js.map +1 -1
- package/admin/plugins/transformers/objectTransformer.js +1 -2
- package/admin/plugins/transformers/objectTransformer.js.map +1 -1
- package/admin/plugins/welcomeScreenWidget.js +5 -6
- package/admin/plugins/welcomeScreenWidget.js.map +1 -1
- package/admin/views/contentEntries/ContentEntries.d.ts +8 -2
- package/admin/views/contentEntries/ContentEntries.js +5 -5
- package/admin/views/contentEntries/ContentEntries.js.map +1 -1
- package/admin/views/contentEntries/ContentEntriesContainer.d.ts +1 -1
- package/admin/views/contentEntries/ContentEntriesContainer.js +1 -2
- package/admin/views/contentEntries/ContentEntriesContainer.js.map +1 -1
- package/admin/views/contentEntries/ContentEntriesContext.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntriesContext.js +4 -6
- package/admin/views/contentEntries/ContentEntriesContext.js.map +1 -1
- package/admin/views/contentEntries/ContentEntriesModule.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntriesModule.js +10 -3
- package/admin/views/contentEntries/ContentEntriesModule.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.d.ts +31 -12
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.js +145 -60
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/{PublishEntryRevisionListItem.d.ts → RevisionsList/PublishEntryRevisionListItem.d.ts} +3 -2
- package/admin/views/contentEntries/ContentEntry/{PublishEntryRevisionListItem.js → RevisionsList/PublishEntryRevisionListItem.js} +2 -3
- package/admin/views/contentEntries/ContentEntry/{PublishEntryRevisionListItem.js.map → RevisionsList/PublishEntryRevisionListItem.js.map} +1 -1
- package/admin/views/contentEntries/ContentEntry/{RevisionListItem.d.ts → RevisionsList/RevisionListItem.d.ts} +3 -3
- package/admin/views/contentEntries/ContentEntry/{RevisionListItem.js → RevisionsList/RevisionListItem.js} +26 -35
- package/admin/views/contentEntries/ContentEntry/RevisionsList/RevisionListItem.js.map +1 -0
- package/admin/views/contentEntries/ContentEntry/RevisionsList/RevisionsList.d.ts +2 -0
- package/admin/views/contentEntries/ContentEntry/{RevisionsList.js → RevisionsList/RevisionsList.js} +9 -11
- package/admin/views/contentEntries/ContentEntry/RevisionsList/RevisionsList.js.map +1 -0
- package/admin/views/contentEntries/ContentEntry/{useRevision.d.ts → RevisionsList/useRevision.d.ts} +8 -8
- package/admin/views/contentEntries/ContentEntry/RevisionsList/useRevision.js +105 -0
- package/admin/views/contentEntries/ContentEntry/RevisionsList/useRevision.js.map +1 -0
- package/admin/views/contentEntries/ContentEntry/useMockRecords.d.ts +14 -0
- package/admin/views/contentEntries/ContentEntry/useMockRecords.js +11 -0
- package/admin/views/contentEntries/ContentEntry/useMockRecords.js.map +1 -0
- package/admin/views/contentEntries/ContentEntry.d.ts +7 -1
- package/admin/views/contentEntries/ContentEntry.js +35 -58
- package/admin/views/contentEntries/ContentEntry.js.map +1 -1
- package/admin/views/contentEntries/Table/Main.d.ts +2 -2
- package/admin/views/contentEntries/Table/Main.js +1 -2
- package/admin/views/contentEntries/Table/Main.js.map +1 -1
- package/admin/views/contentEntries/Table/Sidebar.d.ts +2 -2
- package/admin/views/contentEntries/Table/Sidebar.js +33 -14
- package/admin/views/contentEntries/Table/Sidebar.js.map +1 -1
- package/admin/views/contentEntries/Table/index.d.ts +2 -2
- package/admin/views/contentEntries/Table/index.js +4 -3
- package/admin/views/contentEntries/Table/index.js.map +1 -1
- package/admin/views/contentEntries/Table/styled.d.ts +11 -3
- package/admin/views/contentEntries/Table/styled.js +72 -16
- package/admin/views/contentEntries/Table/styled.js.map +1 -1
- package/admin/views/contentEntries/hooks/index.js.map +1 -1
- package/admin/views/contentEntries/hooks/useContentEntries.d.ts +2 -1
- package/admin/views/contentEntries/hooks/useContentEntries.js +1 -1
- package/admin/views/contentEntries/hooks/useContentEntries.js.map +1 -1
- package/admin/views/contentEntries/hooks/useContentEntriesList.d.ts +10 -2
- package/admin/views/contentEntries/hooks/useContentEntriesList.js +12 -7
- package/admin/views/contentEntries/hooks/useContentEntriesList.js.map +1 -1
- package/admin/views/contentEntries/hooks/useContentEntry.d.ts +8 -1
- package/admin/views/contentEntries/hooks/useContentEntry.js +5 -4
- package/admin/views/contentEntries/hooks/useContentEntry.js.map +1 -1
- package/admin/views/contentEntries/hooks/useMoveContentEntryToFolder.js.map +1 -1
- package/admin/views/contentModelGroups/ContentModelGroups.d.ts +2 -2
- package/admin/views/contentModelGroups/ContentModelGroups.js +1 -2
- package/admin/views/contentModelGroups/ContentModelGroups.js.map +1 -1
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.d.ts +2 -2
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.js +1 -2
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.js.map +1 -1
- package/admin/views/contentModelGroups/ContentModelGroupsForm.d.ts +2 -2
- package/admin/views/contentModelGroups/ContentModelGroupsForm.js +14 -7
- package/admin/views/contentModelGroups/ContentModelGroupsForm.js.map +1 -1
- package/admin/views/contentModelGroups/graphql.js +9 -10
- package/admin/views/contentModelGroups/graphql.js.map +1 -1
- package/admin/views/contentModels/CloneContentModelDialog.d.ts +2 -2
- package/admin/views/contentModels/CloneContentModelDialog.js +1 -2
- package/admin/views/contentModels/CloneContentModelDialog.js.map +1 -1
- package/admin/views/contentModels/ContentModelEditor.d.ts +2 -2
- package/admin/views/contentModels/ContentModelEditor.js +5 -6
- package/admin/views/contentModels/ContentModelEditor.js.map +1 -1
- package/admin/views/contentModels/ContentModels.d.ts +2 -2
- package/admin/views/contentModels/ContentModels.js +7 -8
- package/admin/views/contentModels/ContentModels.js.map +1 -1
- package/admin/views/contentModels/ContentModelsDataList.d.ts +2 -2
- package/admin/views/contentModels/ContentModelsDataList.js +33 -25
- package/admin/views/contentModels/ContentModelsDataList.js.map +1 -1
- package/admin/views/contentModels/NewContentModelDialog.d.ts +2 -2
- package/admin/views/contentModels/NewContentModelDialog.js +16 -6
- package/admin/views/contentModels/NewContentModelDialog.js.map +1 -1
- package/admin/views/contentModels/OptionsMenu.d.ts +2 -1
- package/admin/views/contentModels/OptionsMenu.js +3 -4
- package/admin/views/contentModels/OptionsMenu.js.map +1 -1
- package/admin/views/contentModels/cache.js +5 -10
- package/admin/views/contentModels/cache.js.map +1 -1
- package/admin/views/contentModels/exporting/download.js +1 -2
- package/admin/views/contentModels/exporting/download.js.map +1 -1
- package/admin/views/contentModels/exporting/graphql.js +1 -2
- package/admin/views/contentModels/exporting/graphql.js.map +1 -1
- package/admin/views/contentModels/exporting/runExport.js +1 -2
- package/admin/views/contentModels/exporting/runExport.js.map +1 -1
- package/admin/views/contentModels/exporting/useModelExport.js +1 -2
- package/admin/views/contentModels/exporting/useModelExport.js.map +1 -1
- package/admin/views/contentModels/helpers/apiNameValidator.js +1 -2
- package/admin/views/contentModels/helpers/apiNameValidator.js.map +1 -1
- package/admin/views/contentModels/helpers/nameValidator.js +1 -2
- package/admin/views/contentModels/helpers/nameValidator.js.map +1 -1
- package/admin/views/contentModels/importing/ImportContentModelsDialog.d.ts +2 -2
- package/admin/views/contentModels/importing/ImportContentModelsDialog.js +1 -2
- package/admin/views/contentModels/importing/ImportContentModelsDialog.js.map +1 -1
- package/admin/views/contentModels/importing/ImportContext.d.ts +1 -1
- package/admin/views/contentModels/importing/ImportContext.js +61 -61
- package/admin/views/contentModels/importing/ImportContext.js.map +1 -1
- package/admin/views/contentModels/importing/components/DataList.d.ts +2 -2
- package/admin/views/contentModels/importing/components/DataList.js +1 -2
- package/admin/views/contentModels/importing/components/DataList.js.map +1 -1
- package/admin/views/contentModels/importing/components/DataListGroup.d.ts +2 -2
- package/admin/views/contentModels/importing/components/DataListGroup.js +27 -15
- package/admin/views/contentModels/importing/components/DataListGroup.js.map +1 -1
- package/admin/views/contentModels/importing/components/Errors.d.ts +2 -2
- package/admin/views/contentModels/importing/components/Errors.js +15 -11
- package/admin/views/contentModels/importing/components/Errors.js.map +1 -1
- package/admin/views/contentModels/importing/components/FileUpload.d.ts +2 -2
- package/admin/views/contentModels/importing/components/FileUpload.js +27 -18
- package/admin/views/contentModels/importing/components/FileUpload.js.map +1 -1
- package/admin/views/contentModels/importing/components/ImportButton.d.ts +2 -2
- package/admin/views/contentModels/importing/components/ImportButton.js +1 -2
- package/admin/views/contentModels/importing/components/ImportButton.js.map +1 -1
- package/admin/views/contentModels/importing/components/Model/DataListInstructions.d.ts +2 -2
- package/admin/views/contentModels/importing/components/Model/DataListInstructions.js +14 -7
- package/admin/views/contentModels/importing/components/Model/DataListInstructions.js.map +1 -1
- package/admin/views/contentModels/importing/components/Model/DataListModelItem.d.ts +2 -2
- package/admin/views/contentModels/importing/components/Model/DataListModelItem.js +89 -66
- package/admin/views/contentModels/importing/components/Model/DataListModelItem.js.map +1 -1
- package/admin/views/contentModels/importing/components/Model/DataListModelItemError.d.ts +2 -2
- package/admin/views/contentModels/importing/components/Model/DataListModelItemError.js +38 -20
- package/admin/views/contentModels/importing/components/Model/DataListModelItemError.js.map +1 -1
- package/admin/views/contentModels/importing/components/Model/DataListModelItemInfo.d.ts +2 -2
- package/admin/views/contentModels/importing/components/Model/DataListModelItemInfo.js +14 -10
- package/admin/views/contentModels/importing/components/Model/DataListModelItemInfo.js.map +1 -1
- package/admin/views/contentModels/importing/components/Model/DataListModels.d.ts +2 -2
- package/admin/views/contentModels/importing/components/Model/DataListModels.js +14 -9
- package/admin/views/contentModels/importing/components/Model/DataListModels.js.map +1 -1
- package/admin/views/contentModels/importing/components/Model/index.js.map +1 -1
- package/admin/views/contentModels/importing/graphql.js +2 -4
- package/admin/views/contentModels/importing/graphql.js.map +1 -1
- package/admin/views/contentModels/importing/types.js +1 -2
- package/admin/views/contentModels/importing/types.js.map +1 -1
- package/admin/views/contentModels/importing/useImport.js +1 -2
- package/admin/views/contentModels/importing/useImport.js.map +1 -1
- package/admin/views/contentModels/types.js.map +1 -1
- package/admin/views/utils.js +1 -2
- package/admin/views/utils.js.map +1 -1
- package/admin/viewsGraphql.js +9 -10
- package/admin/viewsGraphql.js.map +1 -1
- package/allPlugins.d.ts +4 -3
- package/allPlugins.js +2 -2
- package/allPlugins.js.map +1 -1
- package/index.d.ts +6 -193
- package/index.js +15 -18
- package/index.js.map +1 -1
- package/package.json +44 -41
- package/types.d.ts +25 -0
- package/types.js.map +1 -1
- package/utils/CmsModelFieldValidatorConfigAdapter.js +2 -4
- package/utils/CmsModelFieldValidatorConfigAdapter.js.map +1 -1
- package/utils/allowCmsLegacyRichTextInput.js +1 -2
- package/utils/allowCmsLegacyRichTextInput.js.map +1 -1
- package/utils/createTypeName.js +1 -2
- package/utils/createTypeName.js.map +1 -1
- package/utils/createValidators.d.ts +1 -1
- package/utils/createValidators.js +5 -2
- package/utils/createValidators.js.map +1 -1
- package/utils/getFetchPolicy.js +1 -2
- package/utils/getFetchPolicy.js.map +1 -1
- package/utils/getModelTitleFieldId.js +1 -2
- package/utils/getModelTitleFieldId.js.map +1 -1
- package/admin/components/ContentEntryForm/Header/DeleteEntry/useDeleteEntry.d.ts +0 -9
- package/admin/components/ContentEntryForm/Header/DeleteEntry/useDeleteEntry.js +0 -68
- package/admin/components/ContentEntryForm/Header/DeleteEntry/useDeleteEntry.js.map +0 -1
- package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/useSaveAndPublish.d.ts +0 -11
- package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/useSaveAndPublish.js +0 -47
- package/admin/components/ContentEntryForm/Header/SaveAndPublishContent/useSaveAndPublish.js.map +0 -1
- package/admin/components/ContentEntryForm/Header/SaveContent/useSave.d.ts +0 -6
- package/admin/components/ContentEntryForm/Header/SaveContent/useSave.js +0 -27
- package/admin/components/ContentEntryForm/Header/SaveContent/useSave.js.map +0 -1
- package/admin/components/ContentModelEditor/Editor.d.ts +0 -6
- package/admin/components/ContentModelEditor/Editor.js +0 -141
- package/admin/components/ContentModelEditor/Editor.js.map +0 -1
- package/admin/components/DelayedOnChange.d.ts +0 -42
- package/admin/components/DelayedOnChange.js +0 -121
- package/admin/components/DelayedOnChange.js.map +0 -1
- package/admin/hooks/useChangeEntryStatus.d.ts +0 -9
- package/admin/hooks/useChangeEntryStatus.js +0 -74
- package/admin/hooks/useChangeEntryStatus.js.map +0 -1
- package/admin/hooks/useDeleteEntry.d.ts +0 -10
- package/admin/hooks/useDeleteEntry.js +0 -68
- package/admin/hooks/useDeleteEntry.js.map +0 -1
- package/admin/plugins/entry/DefaultOnEntryDelete.d.ts +0 -2
- package/admin/plugins/entry/DefaultOnEntryDelete.js +0 -103
- package/admin/plugins/entry/DefaultOnEntryDelete.js.map +0 -1
- package/admin/plugins/entry/DefaultOnEntryPublish.d.ts +0 -2
- package/admin/plugins/entry/DefaultOnEntryPublish.js +0 -84
- package/admin/plugins/entry/DefaultOnEntryPublish.js.map +0 -1
- package/admin/plugins/entry/DefaultOnEntryUnpublish.d.ts +0 -2
- package/admin/plugins/entry/DefaultOnEntryUnpublish.js +0 -84
- package/admin/plugins/entry/DefaultOnEntryUnpublish.js.map +0 -1
- package/admin/views/contentEntries/ContentEntry/RevisionListItem.js.map +0 -1
- package/admin/views/contentEntries/ContentEntry/RevisionsList.d.ts +0 -3
- package/admin/views/contentEntries/ContentEntry/RevisionsList.js.map +0 -1
- package/admin/views/contentEntries/ContentEntry/useRevision.js +0 -155
- package/admin/views/contentEntries/ContentEntry/useRevision.js.map +0 -1
- package/components.d.ts +0 -88
- package/components.js +0 -31
- package/components.js.map +0 -1
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _dotPropImmutable = _interopRequireDefault(require("dot-prop-immutable"));
|
|
9
|
-
var _default = function _default(params) {
|
|
9
|
+
var _default = exports.default = function _default(params) {
|
|
10
10
|
var field = params.field,
|
|
11
11
|
prev = params.data;
|
|
12
12
|
// Remove the field from fields list...
|
|
@@ -40,6 +40,5 @@ var _default = function _default(params) {
|
|
|
40
40
|
return newLayout;
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
exports.default = _default;
|
|
44
43
|
|
|
45
44
|
//# sourceMappingURL=deleteField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_dotPropImmutable","_interopRequireDefault","require","_default","params","field","prev","data","fieldIndex","fields","findIndex","item","id","dot","delete","concat","set","layout","newLayout","currentRowIndex","forEach","row","fieldId","find","Array","isArray","push","length"
|
|
1
|
+
{"version":3,"names":["_dotPropImmutable","_interopRequireDefault","require","_default","exports","default","params","field","prev","data","fieldIndex","fields","findIndex","item","id","dot","delete","concat","set","layout","newLayout","currentRowIndex","forEach","row","fieldId","find","Array","isArray","push","length"],"sources":["deleteField.ts"],"sourcesContent":["import dot from \"dot-prop-immutable\";\nimport { CmsModelField, CmsModel } from \"~/types\";\n\ntype DeleteFieldParamsData = Pick<CmsModel, \"fields\" | \"layout\">;\ninterface DeleteFieldParams {\n field: Pick<CmsModelField, \"id\">;\n data: DeleteFieldParamsData;\n}\nexport default (params: DeleteFieldParams) => {\n const { field, data: prev } = params;\n // Remove the field from fields list...\n const fieldIndex = prev.fields.findIndex(item => item.id === field.id);\n const data = dot.delete(prev, `fields.${fieldIndex}`) as DeleteFieldParamsData;\n\n // ...and rebuild the layout object.\n return dot.set(data, \"layout\", (layout: DeleteFieldParamsData[\"layout\"]) => {\n if (!layout) {\n return [];\n }\n const newLayout: DeleteFieldParamsData[\"layout\"] = [];\n let currentRowIndex = 0;\n layout.forEach(row => {\n row.forEach(fieldId => {\n const field = data.fields.find(item => item.id === fieldId);\n if (!field) {\n return;\n }\n if (!Array.isArray(newLayout[currentRowIndex])) {\n newLayout[currentRowIndex] = [];\n }\n\n newLayout[currentRowIndex].push(fieldId);\n });\n newLayout[currentRowIndex] && newLayout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AAS,CAACC,eAAe,CAAC,IAAID,SAAS,CAACC,eAAe,CAAC,CAACQ,MAAM,IAAIR,eAAe,EAAE;IACxF,CAAC,CAAC;IAEF,OAAOD,SAAS;EACpB,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _default = function _default(params) {
|
|
7
|
+
var _default = exports.default = function _default(params) {
|
|
8
8
|
var field = params.field,
|
|
9
9
|
data = params.data;
|
|
10
10
|
var id = typeof field === "string" ? field : field.id;
|
|
@@ -22,6 +22,5 @@ var _default = function _default(params) {
|
|
|
22
22
|
}
|
|
23
23
|
return null;
|
|
24
24
|
};
|
|
25
|
-
exports.default = _default;
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=getFieldPosition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_default","params","field","data","id","layout","i","length","row","j","index"
|
|
1
|
+
{"version":3,"names":["_default","params","field","data","id","layout","i","length","row","j","index"],"sources":["getFieldPosition.ts"],"sourcesContent":["import { CmsModelField, CmsModel, FieldLayoutPosition } from \"~/types\";\n\ninterface GetFieldPositionParams {\n field: string | CmsModelField;\n data: Pick<CmsModel, \"layout\">;\n}\nexport default (params: GetFieldPositionParams): FieldLayoutPosition | null => {\n const { field, data } = params;\n const id = typeof field === \"string\" ? field : field.id;\n const layout = data.layout ? data.layout : [];\n for (let i = 0; i < layout.length; i++) {\n const row = layout[i];\n for (let j = 0; j < row.length; j++) {\n if (row[j] === id) {\n return { row: i, index: j };\n }\n }\n }\n\n return null;\n};\n"],"mappings":";;;;;;iCAMe,SAAAA,SAACC,MAA8B,EAAiC;EAC3E,IAAQC,KAAK,GAAWD,MAAM,CAAtBC,KAAK;IAAEC,IAAI,GAAKF,MAAM,CAAfE,IAAI;EACnB,IAAMC,EAAE,GAAG,OAAOF,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGA,KAAK,CAACE,EAAE;EACvD,IAAMC,MAAM,GAAGF,IAAI,CAACE,MAAM,GAAGF,IAAI,CAACE,MAAM,GAAG,EAAE;EAC7C,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,MAAM,CAACE,MAAM,EAAED,CAAC,EAAE,EAAE;IACpC,IAAME,GAAG,GAAGH,MAAM,CAACC,CAAC,CAAC;IACrB,KAAK,IAAIG,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,GAAG,CAACD,MAAM,EAAEE,CAAC,EAAE,EAAE;MACjC,IAAID,GAAG,CAACC,CAAC,CAAC,KAAKL,EAAE,EAAE;QACf,OAAO;UAAEI,GAAG,EAAEF,CAAC;UAAEI,KAAK,EAAED;QAAE,CAAC;MAC/B;IACJ;EACJ;EAEA,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_getFieldPosition","_interopRequireDefault","require","_moveField","_deleteField","_moveRow"],"sources":["index.ts"],"sourcesContent":["export { default as getFieldPosition } from \"./getFieldPosition\";\nexport { default as moveField } from \"./moveField\";\nexport { default as deleteField } from \"./deleteField\";\nexport { default as moveRow } from \"./moveRow\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAJ,sBAAA,CAAAC,OAAA"}
|
|
1
|
+
{"version":3,"names":["_getFieldPosition","_interopRequireDefault","require","_moveField","_deleteField","_moveRow"],"sources":["index.ts"],"sourcesContent":["export { default as getFieldPosition } from \"./getFieldPosition\";\nexport { default as moveField } from \"./moveField\";\nexport { default as deleteField } from \"./deleteField\";\nexport { default as moveRow } from \"./moveRow\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAJ,sBAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -47,13 +47,12 @@ var moveField = function moveField(params) {
|
|
|
47
47
|
return newLayout;
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
var _default = function _default(params) {
|
|
50
|
+
var _default = exports.default = function _default(params) {
|
|
51
51
|
return _dotPropImmutable.default.set(moveField(params), "layout", function (layout) {
|
|
52
52
|
return (0, _toConsumableArray2.default)(layout).filter(function (row) {
|
|
53
53
|
return row.length > 0;
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
|
-
exports.default = _default;
|
|
58
57
|
|
|
59
58
|
//# sourceMappingURL=moveField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_dotPropImmutable","_interopRequireDefault","require","_getFieldPosition","moveField","params","field","position","prev","data","row","index","fieldId","id","next","_objectSpread2","default","layout","existingPosition","getFieldPosition","dot","delete","concat","set","newLayout","_toConsumableArray2","splice","_default","
|
|
1
|
+
{"version":3,"names":["_dotPropImmutable","_interopRequireDefault","require","_getFieldPosition","moveField","params","field","position","prev","data","row","index","fieldId","id","next","_objectSpread2","default","layout","existingPosition","getFieldPosition","dot","delete","concat","set","newLayout","_toConsumableArray2","splice","_default","exports","filter","length"],"sources":["moveField.ts"],"sourcesContent":["import dot from \"dot-prop-immutable\";\nimport {\n CmsModelField,\n CmsEditorFieldId,\n CmsModel as BaseCmsModel,\n FieldLayoutPosition\n} from \"~/types\";\nimport getFieldPosition from \"./getFieldPosition\";\n\ntype CmsModel = Required<Pick<BaseCmsModel, \"fields\" | \"layout\">>;\n\ninterface MoveFieldParams<T> {\n field: CmsEditorFieldId | Pick<CmsModelField, \"id\">;\n position: FieldLayoutPosition;\n data: T;\n}\n\nconst moveField = <T extends CmsModel>(params: MoveFieldParams<T>) => {\n const { field, position, data: prev } = params;\n const { row, index } = position;\n const fieldId = typeof field === \"string\" ? field : field.id;\n\n let next: T = {\n ...prev,\n layout: prev.layout ? prev.layout || [] : []\n };\n\n const existingPosition = getFieldPosition({ field: fieldId, data: prev });\n\n if (existingPosition) {\n next = dot.delete(prev, `layout.${existingPosition.row}.${existingPosition.index}`) as T;\n }\n\n // Setting a form field into a new non-existing row.\n if (!next.layout[row]) {\n return dot.set(next, `layout.${row}`, [fieldId]);\n }\n\n // Drop the field at the specified index.\n if (index === null) {\n // Create a new row with the new field at the given row index,\n return dot.set(next, \"layout\", (layout: string[][]) => {\n const newLayout = [...layout];\n newLayout.splice(row, 0, [fieldId]);\n return newLayout;\n });\n }\n\n return dot.set(next, `layout.${row}`, (layout: string[]) => {\n const newLayout = [...layout];\n newLayout.splice(index, 0, fieldId);\n return newLayout;\n });\n};\n\nexport default <T extends CmsModel>(params: MoveFieldParams<T>): T => {\n return dot.set(moveField<T>(params), \"layout\", (layout: string[][]) => {\n return [...layout].filter(row => row.length > 0);\n });\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAOA,IAAAC,iBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAUA,IAAME,SAAS,GAAG,SAAZA,SAASA,CAAwBC,MAA0B,EAAK;EAClE,IAAQC,KAAK,GAA2BD,MAAM,CAAtCC,KAAK;IAAEC,QAAQ,GAAiBF,MAAM,CAA/BE,QAAQ;IAAQC,IAAI,GAAKH,MAAM,CAArBI,IAAI;EAC7B,IAAQC,GAAG,GAAYH,QAAQ,CAAvBG,GAAG;IAAEC,KAAK,GAAKJ,QAAQ,CAAlBI,KAAK;EAClB,IAAMC,OAAO,GAAG,OAAON,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGA,KAAK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,SAAS;EACpB,CAAC,CAAC;AACN,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAZ,OAAA,GAEa,SAAAW,SAAqBtB,MAA0B,EAAQ;EAClE,OAAOe,yBAAG,CAACG,GAAG,CAACnB,SAAS,CAAIC,MAAM,CAAC,EAAE,QAAQ,EAAE,UAACY,MAAkB,EAAK;IACnE,OAAO,IAAAQ,mBAAA,CAAAT,OAAA,EAAIC,MAAM,EAAEY,MAAM,CAAC,UAAAnB,GAAG;MAAA,OAAIA,GAAG,CAACoB,MAAM,GAAG,CAAC;IAAA,EAAC;EACpD,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _dotPropImmutable = _interopRequireDefault(require("dot-prop-immutable"));
|
|
10
|
-
var _default = function _default(_ref) {
|
|
10
|
+
var _default = exports.default = function _default(_ref) {
|
|
11
11
|
var data = _ref.data,
|
|
12
12
|
source = _ref.source,
|
|
13
13
|
destination = _ref.destination;
|
|
@@ -15,6 +15,5 @@ var _default = function _default(_ref) {
|
|
|
15
15
|
return source < destination ? [].concat((0, _toConsumableArray2.default)(layout.slice(0, source)), (0, _toConsumableArray2.default)(layout.slice(source + 1, destination)), [layout[source]], (0, _toConsumableArray2.default)(layout.slice(destination))) : [].concat((0, _toConsumableArray2.default)(layout.slice(0, destination)), [layout[source]], (0, _toConsumableArray2.default)(layout.slice(destination, source)), (0, _toConsumableArray2.default)(layout.slice(source + 1)));
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
-
exports.default = _default;
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=moveRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_dotPropImmutable","_interopRequireDefault","require","_default","_ref","data","source","destination","dot","set","layout","concat","_toConsumableArray2","
|
|
1
|
+
{"version":3,"names":["_dotPropImmutable","_interopRequireDefault","require","_default","exports","default","_ref","data","source","destination","dot","set","layout","concat","_toConsumableArray2","slice"],"sources":["moveRow.ts"],"sourcesContent":["import dot from \"dot-prop-immutable\";\nimport { CmsModel } from \"~/types\";\n\ninterface Params {\n source: number;\n destination: number;\n data: Pick<CmsModel, \"layout\">;\n}\nexport default ({ data, source, destination }: Params) => {\n return dot.set(data, \"layout\", (layout: string[][]) => {\n return source < destination\n ? [\n ...layout.slice(0, source),\n ...layout.slice(source + 1, destination),\n layout[source],\n ...layout.slice(destination)\n ]\n : [\n ...layout.slice(0, destination),\n layout[source],\n ...layout.slice(destination, source),\n ...layout.slice(source + 1)\n ];\n });\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAqC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAQtB,SAAAF,SAAAG,IAAA,EAA2C;EAAA,IAAxCC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,MAAM,GAAAF,IAAA,CAANE,MAAM;IAAEC,WAAW,GAAAH,IAAA,CAAXG,WAAW;EACvC,OAAOC,yBAAG,CAACC,GAAG,CAACJ,IAAI,EAAE,QAAQ,EAAE,UAACK,MAAkB,EAAK;IACnD,OAAOJ,MAAM,GAAGC,WAAW,MAAAI,MAAA,KAAAC,mBAAA,CAAAT,OAAA,EAEdO,MAAM,CAACG,KAAK,CAAC,CAAC,EAAEP,MAAM,CAAC,OAAAM,mBAAA,CAAAT,OAAA,EACvBO,MAAM,CAACG,KAAK,CAACP,MAAM,GAAG,CAAC,EAAEC,WAAW,CAAC,IACxCG,MAAM,CAACJ,MAAM,CAAC,OAAAM,mBAAA,CAAAT,OAAA,EACXO,MAAM,CAACG,KAAK,CAACN,WAAW,CAAC,QAAAI,MAAA,KAAAC,mBAAA,CAAAT,OAAA,EAGzBO,MAAM,CAACG,KAAK,CAAC,CAAC,EAAEN,WAAW,CAAC,IAC/BG,MAAM,CAACJ,MAAM,CAAC,OAAAM,mBAAA,CAAAT,OAAA,EACXO,MAAM,CAACG,KAAK,CAACN,WAAW,EAAED,MAAM,CAAC,OAAAM,mBAAA,CAAAT,OAAA,EACjCO,MAAM,CAACG,KAAK,CAACP,MAAM,GAAG,CAAC,CAAC,EAC9B;EACX,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
|
@@ -4,4 +4,4 @@ export interface IconPickerProps extends FormComponentProps {
|
|
|
4
4
|
label?: React.ReactNode;
|
|
5
5
|
description?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const IconPicker: ({ value, onChange, label, description, validation }: IconPickerProps) => JSX.Element;
|
|
7
|
+
export declare const IconPicker: ({ value, onChange, label, description, validation }: IconPickerProps) => React.JSX.Element;
|
|
@@ -15,28 +15,37 @@ var _plugins = require("@webiny/plugins");
|
|
|
15
15
|
var _Typography = require("@webiny/ui/Typography");
|
|
16
16
|
var _reactVirtualized = require("react-virtualized");
|
|
17
17
|
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
18
|
-
var _DelayedOnChange =
|
|
18
|
+
var _DelayedOnChange = require("@webiny/ui/DelayedOnChange");
|
|
19
19
|
var _Menu = require("@webiny/ui/Menu");
|
|
20
20
|
var _Input = require("@webiny/ui/Input");
|
|
21
21
|
var _FormElementMessage = require("@webiny/ui/FormElementMessage");
|
|
22
22
|
var _templateObject;
|
|
23
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
23
24
|
/**
|
|
24
25
|
* Controls the helper text below the checkbox.
|
|
25
26
|
* @type {string}
|
|
26
27
|
*/
|
|
27
|
-
var iconPickerLabel =
|
|
28
|
+
var iconPickerLabel = (0, _emotion.css)({
|
|
28
29
|
marginBottom: 5,
|
|
29
30
|
marginLeft: 2
|
|
30
|
-
}
|
|
31
|
-
var globalStyles =
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
});
|
|
32
|
+
var globalStyles = process.env.NODE_ENV === "production" ? {
|
|
33
|
+
name: "1qtvsqr",
|
|
34
|
+
styles: "#rmwcPortal>.mdc-menu-surface{z-index:1000;}"
|
|
35
|
+
} : {
|
|
36
|
+
name: "wxw4zd-globalStyles",
|
|
37
|
+
styles: "#rmwcPortal>.mdc-menu-surface{z-index:1000;};label:globalStyles;",
|
|
38
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkljb25QaWNrZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCNkIiLCJmaWxlIjoiSWNvblBpY2tlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgdXNlQ2FsbGJhY2ssIHVzZUVmZmVjdCwgdXNlTWVtbywgdXNlUmVmLCB1c2VTdGF0ZSB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSBcImVtb3Rpb25cIjtcbmltcG9ydCB7IGNzcyBhcyByZWFjdENzcywgR2xvYmFsIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBwbHVnaW5zIH0gZnJvbSBcIkB3ZWJpbnkvcGx1Z2luc1wiO1xuaW1wb3J0IHsgVHlwb2dyYXBoeSB9IGZyb20gXCJAd2ViaW55L3VpL1R5cG9ncmFwaHlcIjtcbmltcG9ydCB7IEdyaWQgfSBmcm9tIFwicmVhY3QtdmlydHVhbGl6ZWRcIjtcbmltcG9ydCB7IEZvbnRBd2Vzb21lSWNvbiB9IGZyb20gXCJAZm9ydGF3ZXNvbWUvcmVhY3QtZm9udGF3ZXNvbWVcIjtcbmltcG9ydCB7IERlbGF5ZWRPbkNoYW5nZSwgT25DaGFuZ2VDYWxsYWJsZS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sbGFibGU+KFxuICAgICAgICAodmFsdWUsIGNiKSA9PiB7XG4gICAgICAgICAgICBzZXRGaWx0ZXIodmFsdWUpO1xuICAgICAgICAgICAgaWYgKGNiKSB7XG4gICAgICAgICAgICAgICAgY2IodmFsdWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBbZmlsdGVyXVxuICAgICk7XG5cbiAgICBjb25zdCBhbGxJY29uczogQ21zSWNvbltdID0gdXNlTWVtbygoKSA9PiB7XG4gICAgICAgIGNvbnN0IGljb25QbHVnaW5zID0gcGx1Z2lucy5ieVR5cGU8Q21zSWNvbnNQbHVnaW4+KFwiY21zLWljb25zXCIpO1xuICAgICAgICByZXR1cm4gaWNvblBsdWdpbnMucmVkdWNlKChpY29uczogQXJyYXk8Q21zSWNvbj4sIHBsKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gaWNvbnMuY29uY2F0KHBsLmdldEljb25zKCkpO1xuICAgICAgICB9LCBbXSk7XG4gICAgfSwgW10pO1xuXG4gICAgY29uc3QgaWNvbnMgPSB1c2VNZW1vKCgpID0+IHtcbiAgICAgICAgcmV0dXJuIGZpbHRlciA/IGFsbEljb25zLmZpbHRlcihpYyA9PiBpYy5uYW1lLmluY2x1ZGVzKGZpbHRlcikpIDogYWxsSWNvbnM7XG4gICAgfSwgW2ZpbHRlcl0pO1xuXG4gICAgY29uc3QgcmVuZGVyQ2VsbCA9IHVzZUNhbGxiYWNrKFxuICAgICAgICAoeyBjbG9zZU1lbnUgfTogUmVuZGVyQ2VsbFBhcmFtcykgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uIHJlbmRlckNlbGwoe1xuICAgICAgICAgICAgICAgIGNvbHVtbkluZGV4LFxuICAgICAgICAgICAgICAgIGtleSxcbiAgICAgICAgICAgICAgICByb3dJbmRleCxcbiAgICAgICAgICAgICAgICBzdHlsZVxuICAgICAgICAgICAgfTogR3JpZENlbGxQcm9wcyk6IFJlYWN0LlJlYWN0Tm9kZSB7XG4gICAgICAgICAgICAgICAgY29uc3QgaXRlbSA9IGljb25zW3Jvd0luZGV4ICogQ09MVU1OX0NPVU5UICsgY29sdW1uSW5kZXhdO1xuICAgICAgICAgICAgICAgIGlmICghaXRlbSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgICAgICBrZXk9e2tleX1cbiAgICAgICAgICAgICAgICAgICAgICAgIHN0eWxlPXtzdHlsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Z3JpZEl0ZW19XG4gICAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9uQ2hhbmdlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlKGl0ZW0uaWQuam9pbihcIi9cIikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbG9zZU1lbnUoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxGb250QXdlc29tZUljb24gaWNvbj17aXRlbS5pZH0gc2l6ZT17XCIyeFwifSAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgPFR5cG9ncmFwaHkgdXNlPXtcImJvZHkyXCJ9PntpdGVtLm5hbWV9PC9UeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfTtcbiAgICAgICAgfSxcbiAgICAgICAgW2ljb25zXVxuICAgICk7XG5cbiAgICBjb25zdCByZW5kZXJHcmlkID0gdXNlQ2FsbGJhY2s8UmVuZGVyYWJsZU1lbnVDaGlsZHJlbj4oXG4gICAgICAgICh7IGNsb3NlTWVudSB9KSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICAgIDw+XG4gICAgICAgICAgICAgICAgICAgIDxHbG9iYWwgc3R5bGVzPXtnbG9iYWxTdHlsZXN9IC8+XG4gICAgICAgICAgICAgICAgICAgIDxEZWxheWVkT25DaGFuZ2UgdmFsdWU9e2ZpbHRlcn0gb25DaGFuZ2U9e29uRmlsdGVyQ2hhbmdlfT5cbiAgICAgICAgICAgICAgICAgICAgICAgIHsoeyB2YWx1ZSwgb25DaGFuZ2UgfSkgPT4gKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxJbnB1dFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbnB1dFJlZj17aW5wdXRSZWZ9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17c2VhcmNoSW5wdXR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlPXt2YWx1ZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U9e29uQ2hhbmdlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17XCJTZWFyY2ggaWNvbnMuLi5cIn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgPC9EZWxheWVkT25DaGFuZ2U+XG4gICAgICAgICAgICAgICAgICAgIHtpY29ucy5sZW5ndGggPT09IDAgPyAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17Tm9SZXN1bHRXcmFwcGVyfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9XCJib2R5MVwiPk5vIHJlc3VsdHMgZm91bmQuPC9UeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICkgOiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8R3JpZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Z3JpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjZWxsUmVuZGVyZXI9e3JlbmRlckNlbGwoeyBjbG9zZU1lbnUgfSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uQ291bnQ9e0NPTFVNTl9DT1VOVH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2x1bW5XaWR0aD17MTAwfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlaWdodD17NDQwfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvd0NvdW50PXtNYXRoLmNlaWwoaWNvbnMubGVuZ3RoIC8gQ09MVU1OX0NPVU5UKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByb3dIZWlnaHQ9ezEwMH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWR0aD17NjQwfVxuICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICA8Lz5cbiAgICAgICAgICAgICk7XG4gICAgICAgIH0sXG4gICAgICAgIFtpY29uc11cbiAgICApO1xuXG4gICAgY29uc3QgZm9udEF3ZXNvbWVJY29uVmFsdWU6IGFueSA9XG4gICAgICAgIHR5cGVvZiB2YWx1ZSA9PT0gXCJzdHJpbmdcIiAmJiB2YWx1ZS5pbmNsdWRlcyhcIi9cIikgPyB2YWx1ZS5zcGxpdChcIi9cIikgOiBbXCJmYXNcIiwgXCJzdGFyXCJdO1xuXG4gICAgY29uc3QgeyBpc1ZhbGlkOiB2YWxpZGF0aW9uSXNWYWxpZCwgbWVzc2FnZTogdmFsaWRhdGlvbk1lc3NhZ2UgfSA9IHZhbGlkYXRpb24gfHwge307XG5cbiAgICByZXR1cm4gKFxuICAgICAgICA8PlxuICAgICAgICAgICAge2xhYmVsICYmIChcbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17aWNvblBpY2tlckxhYmVsfT5cbiAgICAgICAgICAgICAgICAgICAgPFR5cG9ncmFwaHkgdXNlPXtcImJvZHkxXCJ9PntsYWJlbH08L1R5cG9ncmFwaHk+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICApfVxuXG4gICAgICAgICAgICA8TWVudVxuICAgICAgICAgICAgICAgIG9uT3Blbj17KCkgPT4gc2V0TXVzdFJlbmRlckdyaWQodHJ1ZSl9XG4gICAgICAgICAgICAgICAgb25DbG9zZT17KCkgPT4gc2V0TXVzdFJlbmRlckdyaWQoZmFsc2UpfVxuICAgICAgICAgICAgICAgIHJlbmRlclRvUG9ydGFsPXt0cnVlfVxuICAgICAgICAgICAgICAgIGhhbmRsZT17XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPXtNZW51V3JhcHBlcn0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17cGlja0ljb259PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxGb250QXdlc29tZUljb24gaWNvbj17Zm9udEF3ZXNvbWVJY29uVmFsdWV9IHNpemU9e1wiMnhcIn0gLz5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICogVW5mb3J0dW5hdGVseSB3ZSBuZWVkIHRvIGNhc3QgZm9yIGJ1aWxkIHRvIHBhc3MuXG4gICAgICAgICAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgICAgICAgICAqIHJlYWwgdHlwZSBpcyBSZW5kZXJhYmxlTWVudUNoaWxkcmVuLCBidXQgdGhlIFRTIGlzIGNvbXBsYWluaW5nLlxuICAgICAgICAgICAgICAgICAgICAgKiBAVE9ETyBicnVubyBmaXhcbiAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgIG11c3RSZW5kZXJHcmlkICYmIChyZW5kZXJHcmlkIGFzIHVua25vd24gYXMgUmVhY3QuUmVhY3ROb2RlKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDwvTWVudT5cblxuICAgICAgICAgICAge3ZhbGlkYXRpb25Jc1ZhbGlkID09PSBmYWxzZSAmJiAoXG4gICAgICAgICAgICAgICAgPEZvcm1FbGVtZW50TWVzc2FnZSBlcnJvcj57dmFsaWRhdGlvbk1lc3NhZ2V9PC9Gb3JtRWxlbWVudE1lc3NhZ2U+XG4gICAgICAgICAgICApfVxuICAgICAgICAgICAge3ZhbGlkYXRpb25Jc1ZhbGlkICE9PSBmYWxzZSAmJiBkZXNjcmlwdGlvbiAmJiAoXG4gICAgICAgICAgICAgICAgPEZvcm1FbGVtZW50TWVzc2FnZT57ZGVzY3JpcHRpb259PC9Gb3JtRWxlbWVudE1lc3NhZ2U+XG4gICAgICAgICAgICApfVxuICAgICAgICA8Lz5cbiAgICApO1xufTtcbiJdfQ== */",
|
|
39
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
|
+
};
|
|
41
|
+
var MenuWrapper = (0, _emotion.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: var(--mdc-theme-text-secondary-on-background);\n background-color: var(--mdc-theme-on-background);\n border-bottom: 1px solid var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54));\n padding: 16px 8px;\n cursor: pointer;\n :hover {\n border-bottom: 1px solid rgba(0, 0, 0, 1);\n }\n"])));
|
|
42
|
+
var NoResultWrapper = (0, _emotion.css)({
|
|
34
43
|
width: 640,
|
|
35
44
|
color: "var(--mdc-theme-text-secondary-on-background)",
|
|
36
45
|
padding: "16px 12px"
|
|
37
|
-
}
|
|
46
|
+
});
|
|
38
47
|
var COLUMN_COUNT = 6;
|
|
39
|
-
var gridItem =
|
|
48
|
+
var gridItem = (0, _emotion.css)({
|
|
40
49
|
display: "flex",
|
|
41
50
|
flexDirection: "column",
|
|
42
51
|
justifyContent: "flex-start",
|
|
@@ -72,21 +81,21 @@ var gridItem = /*#__PURE__*/(0, _emotion.css)({
|
|
|
72
81
|
width: 42,
|
|
73
82
|
marginBottom: 5
|
|
74
83
|
}
|
|
75
|
-
}
|
|
76
|
-
var grid =
|
|
84
|
+
});
|
|
85
|
+
var grid = (0, _emotion.css)({
|
|
77
86
|
padding: 20
|
|
78
|
-
}
|
|
79
|
-
var pickIcon =
|
|
87
|
+
});
|
|
88
|
+
var pickIcon = (0, _emotion.css)({
|
|
80
89
|
width: 50,
|
|
81
90
|
textAlign: "center",
|
|
82
91
|
cursor: "pointer"
|
|
83
|
-
}
|
|
84
|
-
var searchInput =
|
|
92
|
+
});
|
|
93
|
+
var searchInput = (0, _emotion.css)({
|
|
85
94
|
input: {
|
|
86
95
|
padding: "20px 12px 20px"
|
|
87
96
|
}
|
|
88
|
-
}
|
|
89
|
-
var IconPicker = function IconPicker(_ref) {
|
|
97
|
+
});
|
|
98
|
+
var IconPicker = exports.IconPicker = function IconPicker(_ref) {
|
|
90
99
|
var value = _ref.value,
|
|
91
100
|
onChange = _ref.onChange,
|
|
92
101
|
label = _ref.label,
|
|
@@ -110,7 +119,9 @@ var IconPicker = function IconPicker(_ref) {
|
|
|
110
119
|
}, [mustRenderGrid]);
|
|
111
120
|
var onFilterChange = (0, _react.useCallback)(function (value, cb) {
|
|
112
121
|
setFilter(value);
|
|
113
|
-
cb
|
|
122
|
+
if (cb) {
|
|
123
|
+
cb(value);
|
|
124
|
+
}
|
|
114
125
|
}, [filter]);
|
|
115
126
|
var allIcons = (0, _react.useMemo)(function () {
|
|
116
127
|
var iconPlugins = _plugins.plugins.byType("cms-icons");
|
|
@@ -156,7 +167,7 @@ var IconPicker = function IconPicker(_ref) {
|
|
|
156
167
|
var closeMenu = _ref4.closeMenu;
|
|
157
168
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_react2.Global, {
|
|
158
169
|
styles: globalStyles
|
|
159
|
-
}), /*#__PURE__*/_react.default.createElement(_DelayedOnChange.
|
|
170
|
+
}), /*#__PURE__*/_react.default.createElement(_DelayedOnChange.DelayedOnChange, {
|
|
160
171
|
value: filter,
|
|
161
172
|
onChange: onFilterChange
|
|
162
173
|
}, function (_ref5) {
|
|
@@ -210,10 +221,16 @@ var IconPicker = function IconPicker(_ref) {
|
|
|
210
221
|
icon: fontAwesomeIconValue,
|
|
211
222
|
size: "2x"
|
|
212
223
|
})))
|
|
213
|
-
},
|
|
224
|
+
},
|
|
225
|
+
/**
|
|
226
|
+
* Unfortunately we need to cast for build to pass.
|
|
227
|
+
*
|
|
228
|
+
* real type is RenderableMenuChildren, but the TS is complaining.
|
|
229
|
+
* @TODO bruno fix
|
|
230
|
+
*/
|
|
231
|
+
mustRenderGrid && renderGrid), validationIsValid === false && /*#__PURE__*/_react.default.createElement(_FormElementMessage.FormElementMessage, {
|
|
214
232
|
error: true
|
|
215
233
|
}, validationMessage), validationIsValid !== false && description && /*#__PURE__*/_react.default.createElement(_FormElementMessage.FormElementMessage, null, description));
|
|
216
234
|
};
|
|
217
|
-
exports.IconPicker = IconPicker;
|
|
218
235
|
|
|
219
236
|
//# sourceMappingURL=IconPicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_emotion","_react2","_plugins","_Typography","_reactVirtualized","_reactFontawesome","_DelayedOnChange","_interopRequireDefault","_Menu","_Input","_FormElementMessage","_templateObject","iconPickerLabel","css","marginBottom","marginLeft","globalStyles","reactCss","_taggedTemplateLiteral2","default","MenuWrapper","NoResultWrapper","width","color","padding","COLUMN_COUNT","gridItem","display","flexDirection","justifyContent","boxSizing","paddingTop","alignItems","textAlign","cursor","transform","borderRadius","transition","boxShadow","content","position","top","left","height","zIndex","opacity","backgroundColor","grid","pickIcon","searchInput","input","IconPicker","_ref","value","onChange","label","description","validation","_useState","useState","_useState2","_slicedToArray2","filter","setFilter","_useState3","_useState4","mustRenderGrid","setMustRenderGrid","inputRef","useRef","useEffect","setTimeout","current","focus","onFilterChange","useCallback","cb","allIcons","useMemo","iconPlugins","plugins","byType","reduce","icons","pl","concat","getIcons","ic","name","includes","renderCell","_ref2","closeMenu","_ref3","columnIndex","key","rowIndex","style","item","createElement","className","onClick","id","join","FontAwesomeIcon","icon","size","Typography","use","renderGrid","_ref4","Fragment","Global","styles","_ref5","Input","placeholder","length","Grid","cellRenderer","columnCount","columnWidth","rowCount","Math","ceil","rowHeight","fontAwesomeIconValue","split","_ref6","validationIsValid","isValid","validationMessage","message","Menu","onOpen","onClose","renderToPortal","handle","FormElementMessage","error","exports"],"sources":["IconPicker.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState, useCallback, useMemo } from \"react\";\nimport { css } from \"emotion\";\nimport { Global, css as reactCss } from \"@emotion/react\";\nimport { plugins } from \"@webiny/plugins\";\nimport { Typography } from \"@webiny/ui/Typography\";\nimport { Grid } from \"react-virtualized\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport DelayedOnChange from \"./DelayedOnChange\";\nimport { Menu } from \"@webiny/ui/Menu\";\nimport { Input } from \"@webiny/ui/Input\";\nimport { CmsIcon, CmsIconsPlugin } from \"~/types\";\nimport { FormComponentProps } from \"@webiny/ui/types\";\nimport { FormElementMessage } from \"@webiny/ui/FormElementMessage\";\nimport { GridCellProps } from \"react-virtualized/dist/es/Grid\";\n\n/**\n * Controls the helper text below the checkbox.\n * @type {string}\n */\nconst iconPickerLabel = css({ marginBottom: 5, marginLeft: 2 });\n\nconst globalStyles = reactCss`\n #rmwcPortal > .mdc-menu-surface {\n z-index: 1000;\n }\n`;\n\nconst MenuWrapper = css`\n color: var(--mdc-theme-text-secondary-on-background);\n background-color: var(--mdc-theme-on-background);\n border-bottom: 1px solid var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54));\n padding: 16px 8px;\n cursor: pointer;\n :hover {\n border-bottom: 1px solid rgba(0, 0, 0, 1);\n }\n`;\n\nconst NoResultWrapper = css({\n width: 640,\n color: \"var(--mdc-theme-text-secondary-on-background)\",\n padding: \"16px 12px\"\n});\n\nconst COLUMN_COUNT = 6;\n\nconst gridItem = css({\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n boxSizing: \"border-box\",\n paddingTop: 15,\n alignItems: \"center\",\n textAlign: \"center\",\n cursor: \"pointer\",\n transform: \"translateZ(0)\",\n borderRadius: 2,\n color: \"var(--mdc-theme-text-secondary-on-background)\",\n transition: \"all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1)\",\n \"&::after\": {\n boxShadow: \"0 0.25rem 0.125rem 0 rgba(0,0,0,0.05)\",\n transition: \"opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1)\",\n content: '\"\"',\n position: \"absolute\",\n top: 0,\n left: 0,\n width: \"100%\",\n height: \"100%\",\n zIndex: -1,\n opacity: 0\n },\n \"&:hover\": {\n backgroundColor: \"var(--mdc-theme-background)\",\n color: \"var(--mdc-theme-text-primary-on-background)\",\n \"&::after\": {\n opacity: 1\n }\n },\n \">svg\": {\n width: 42,\n marginBottom: 5\n }\n});\n\nconst grid = css({\n padding: 20\n});\n\nconst pickIcon = css({\n width: 50,\n textAlign: \"center\",\n cursor: \"pointer\"\n});\n\nconst searchInput = css({\n input: {\n padding: \"20px 12px 20px\"\n }\n});\n\nexport interface IconPickerProps extends FormComponentProps {\n label?: React.ReactNode;\n description?: React.ReactNode;\n}\n\nexport const IconPicker = ({\n value,\n onChange,\n label,\n description,\n validation\n}: IconPickerProps) => {\n const [filter, setFilter] = useState(\"\");\n const [mustRenderGrid, setMustRenderGrid] = useState(false);\n const inputRef = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n setTimeout(() => {\n if (mustRenderGrid && inputRef.current) {\n inputRef.current.focus();\n }\n }, 50);\n }, [mustRenderGrid]);\n\n const onFilterChange = useCallback(\n (value, cb) => {\n setFilter(value);\n cb();\n },\n [filter]\n );\n\n const allIcons: CmsIcon[] = useMemo(() => {\n const iconPlugins = plugins.byType<CmsIconsPlugin>(\"cms-icons\");\n return iconPlugins.reduce((icons: Array<CmsIcon>, pl) => {\n return icons.concat(pl.getIcons());\n }, []);\n }, []);\n\n const icons = useMemo(() => {\n return filter ? allIcons.filter(ic => ic.name.includes(filter)) : allIcons;\n }, [filter]);\n\n const renderCell = useCallback(\n ({ closeMenu }) => {\n return function renderCell({\n columnIndex,\n key,\n rowIndex,\n style\n }: GridCellProps): React.ReactNode {\n const item = icons[rowIndex * COLUMN_COUNT + columnIndex];\n if (!item) {\n return null;\n }\n\n return (\n <div\n key={key}\n style={style}\n className={gridItem}\n onClick={() => {\n if (onChange) {\n onChange(item.id.join(\"/\"));\n }\n closeMenu();\n }}\n >\n <FontAwesomeIcon icon={item.id} size={\"2x\"} />\n <Typography use={\"body2\"}>{item.name}</Typography>\n </div>\n );\n };\n },\n [icons]\n );\n\n const renderGrid = useCallback(\n ({ closeMenu }) => {\n return (\n <>\n <Global styles={globalStyles} />\n <DelayedOnChange value={filter} onChange={onFilterChange}>\n {({ value, onChange }) => (\n <Input\n inputRef={inputRef}\n className={searchInput}\n value={value}\n onChange={onChange}\n placeholder={\"Search icons...\"}\n />\n )}\n </DelayedOnChange>\n {icons.length === 0 ? (\n <div className={NoResultWrapper}>\n <Typography use=\"body1\">No results found.</Typography>\n </div>\n ) : (\n <Grid\n className={grid}\n cellRenderer={renderCell({ closeMenu })}\n columnCount={COLUMN_COUNT}\n columnWidth={100}\n height={440}\n rowCount={Math.ceil(icons.length / COLUMN_COUNT)}\n rowHeight={100}\n width={640}\n />\n )}\n </>\n );\n },\n [icons]\n );\n\n const fontAwesomeIconValue: any =\n typeof value === \"string\" && value.includes(\"/\") ? value.split(\"/\") : [\"fas\", \"star\"];\n\n const { isValid: validationIsValid, message: validationMessage } = validation || {};\n\n return (\n <>\n {label && (\n <div className={iconPickerLabel}>\n <Typography use={\"body1\"}>{label}</Typography>\n </div>\n )}\n\n <Menu\n onOpen={() => setMustRenderGrid(true)}\n onClose={() => setMustRenderGrid(false)}\n renderToPortal={true}\n handle={\n <div className={MenuWrapper}>\n <div className={pickIcon}>\n <FontAwesomeIcon icon={fontAwesomeIconValue} size={\"2x\"} />\n </div>\n </div>\n }\n >\n {mustRenderGrid && renderGrid}\n </Menu>\n\n {validationIsValid === false && (\n <FormElementMessage error>{validationMessage}</FormElementMessage>\n )}\n {validationIsValid !== false && description && (\n <FormElementMessage>{description}</FormElementMessage>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAC,sBAAA,CAAAR,OAAA;AACA,IAAAS,KAAA,GAAAT,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AAGA,IAAAW,mBAAA,GAAAX,OAAA;AAAmE,IAAAY,eAAA;AAGnE;AACA;AACA;AACA;AACA,IAAMC,eAAe,gBAAG,IAAAC,YAAG,EAAC;EAAEC,YAAY,EAAE,CAAC;EAAEC,UAAU,EAAE;AAAE,CAAC,2BAAC;AAE/D,IAAMC,YAAY,OAAGC,WAAQ,EAAAN,eAAA,KAAAA,eAAA,OAAAO,uBAAA,CAAAC,OAAA,iFAI5B;AAED,IAAMC,WAAW,oBAAGP,YAA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,CAAChG,WAAA,CAAAwG,UAAU;IAACC,GAAG,EAAE;EAAQ,GAAErD,KAAkB,CAC5C,CACR,eAED1D,MAAA,CAAAsB,OAAA,CAAAgF,aAAA,CAAC3F,KAAA,CAAA6H,IAAI;IACDC,MAAM,EAAE,SAAAA,OAAA;MAAA,OAAMnE,iBAAiB,CAAC,IAAI,CAAC;IAAA,CAAC;IACtCoE,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAMpE,iBAAiB,CAAC,KAAK,CAAC;IAAA,CAAC;IACxCqE,cAAc,EAAE,IAAK;IACrBC,MAAM,eACF5I,MAAA,CAAAsB,OAAA,CAAAgF,aAAA;MAAKC,SAAS,EAAEhF;IAAY,gBACxBvB,MAAA,CAAAsB,OAAA,CAAAgF,aAAA;MAAKC,SAAS,EAAEpD;IAAS,gBACrBnD,MAAA,CAAAsB,OAAA,CAAAgF,aAAA,CAAC9F,iBAAA,CAAAmG,eAAe;MAACC,IAAI,EAAEqB,oBAAqB;MAACpB,IAAI,EAAE;IAAK,CAAE,CACzD,CACJ;EACR,GAEAxC,cAAc,IAAI2C,UACjB,CAAC,EAENoB,iBAAiB,KAAK,KAAK,iBACxBpI,MAAA,CAAAsB,OAAA,CAAAgF,aAAA,CAACzF,mBAAA,CAAAgI,kBAAkB;IAACC,KAAK;EAAA,GAAER,iBAAsC,CACpE,EACAF,iBAAiB,KAAK,KAAK,IAAIzE,WAAW,iBACvC3D,MAAA,CAAAsB,OAAA,CAAAgF,aAAA,CAACzF,mBAAA,CAAAgI,kBAAkB,QAAElF,WAAgC,CAE3D,CAAC;AAEX,CAAC;AAACoF,OAAA,CAAAzF,UAAA,GAAAA,UAAA"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_emotion","_react2","_plugins","_Typography","_reactVirtualized","_reactFontawesome","_DelayedOnChange","_Menu","_Input","_FormElementMessage","_templateObject","_EMOTION_STRINGIFIED_CSS_ERROR__","iconPickerLabel","css","marginBottom","marginLeft","globalStyles","process","env","NODE_ENV","name","styles","map","toString","MenuWrapper","_taggedTemplateLiteral2","default","NoResultWrapper","width","color","padding","COLUMN_COUNT","gridItem","display","flexDirection","justifyContent","boxSizing","paddingTop","alignItems","textAlign","cursor","transform","borderRadius","transition","boxShadow","content","position","top","left","height","zIndex","opacity","backgroundColor","grid","pickIcon","searchInput","input","IconPicker","exports","_ref","value","onChange","label","description","validation","_useState","useState","_useState2","_slicedToArray2","filter","setFilter","_useState3","_useState4","mustRenderGrid","setMustRenderGrid","inputRef","useRef","useEffect","setTimeout","current","focus","onFilterChange","useCallback","cb","allIcons","useMemo","iconPlugins","plugins","byType","reduce","icons","pl","concat","getIcons","ic","includes","renderCell","_ref2","closeMenu","_ref3","columnIndex","key","rowIndex","style","item","createElement","className","onClick","id","join","FontAwesomeIcon","icon","size","Typography","use","renderGrid","_ref4","Fragment","Global","DelayedOnChange","_ref5","Input","placeholder","length","Grid","cellRenderer","columnCount","columnWidth","rowCount","Math","ceil","rowHeight","fontAwesomeIconValue","split","_ref6","validationIsValid","isValid","validationMessage","message","Menu","onOpen","onClose","renderToPortal","handle","FormElementMessage","error"],"sources":["IconPicker.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { css } from \"emotion\";\nimport { css as reactCss, Global } from \"@emotion/react\";\nimport { plugins } from \"@webiny/plugins\";\nimport { Typography } from \"@webiny/ui/Typography\";\nimport { Grid } from \"react-virtualized\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport { DelayedOnChange, OnChangeCallable } from \"@webiny/ui/DelayedOnChange\";\nimport { Menu, RenderableMenuChildren } from \"@webiny/ui/Menu\";\nimport { Input } from \"@webiny/ui/Input\";\nimport { CmsIcon, CmsIconsPlugin } from \"~/types\";\nimport { FormComponentProps } from \"@webiny/ui/types\";\nimport { FormElementMessage } from \"@webiny/ui/FormElementMessage\";\nimport { GridCellProps } from \"react-virtualized/dist/es/Grid\";\n\n/**\n * Controls the helper text below the checkbox.\n * @type {string}\n */\nconst iconPickerLabel = css({ marginBottom: 5, marginLeft: 2 });\n\nconst globalStyles = reactCss`\n #rmwcPortal > .mdc-menu-surface {\n z-index: 1000;\n }\n`;\n\nconst MenuWrapper = css`\n color: var(--mdc-theme-text-secondary-on-background);\n background-color: var(--mdc-theme-on-background);\n border-bottom: 1px solid var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54));\n padding: 16px 8px;\n cursor: pointer;\n :hover {\n border-bottom: 1px solid rgba(0, 0, 0, 1);\n }\n`;\n\nconst NoResultWrapper = css({\n width: 640,\n color: \"var(--mdc-theme-text-secondary-on-background)\",\n padding: \"16px 12px\"\n});\n\nconst COLUMN_COUNT = 6;\n\nconst gridItem = css({\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n boxSizing: \"border-box\",\n paddingTop: 15,\n alignItems: \"center\",\n textAlign: \"center\",\n cursor: \"pointer\",\n transform: \"translateZ(0)\",\n borderRadius: 2,\n color: \"var(--mdc-theme-text-secondary-on-background)\",\n transition: \"all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1)\",\n \"&::after\": {\n boxShadow: \"0 0.25rem 0.125rem 0 rgba(0,0,0,0.05)\",\n transition: \"opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1)\",\n content: '\"\"',\n position: \"absolute\",\n top: 0,\n left: 0,\n width: \"100%\",\n height: \"100%\",\n zIndex: -1,\n opacity: 0\n },\n \"&:hover\": {\n backgroundColor: \"var(--mdc-theme-background)\",\n color: \"var(--mdc-theme-text-primary-on-background)\",\n \"&::after\": {\n opacity: 1\n }\n },\n \">svg\": {\n width: 42,\n marginBottom: 5\n }\n});\n\nconst grid = css({\n padding: 20\n});\n\nconst pickIcon = css({\n width: 50,\n textAlign: \"center\",\n cursor: \"pointer\"\n});\n\nconst searchInput = css({\n input: {\n padding: \"20px 12px 20px\"\n }\n});\n\nexport interface IconPickerProps extends FormComponentProps {\n label?: React.ReactNode;\n description?: React.ReactNode;\n}\n\ninterface RenderCellParams {\n closeMenu: () => void;\n}\n\nexport const IconPicker = ({\n value,\n onChange,\n label,\n description,\n validation\n}: IconPickerProps) => {\n const [filter, setFilter] = useState(\"\");\n const [mustRenderGrid, setMustRenderGrid] = useState(false);\n const inputRef = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n setTimeout(() => {\n if (mustRenderGrid && inputRef.current) {\n inputRef.current.focus();\n }\n }, 50);\n }, [mustRenderGrid]);\n\n const onFilterChange = useCallback<OnChangeCallable>(\n (value, cb) => {\n setFilter(value);\n if (cb) {\n cb(value);\n }\n },\n [filter]\n );\n\n const allIcons: CmsIcon[] = useMemo(() => {\n const iconPlugins = plugins.byType<CmsIconsPlugin>(\"cms-icons\");\n return iconPlugins.reduce((icons: Array<CmsIcon>, pl) => {\n return icons.concat(pl.getIcons());\n }, []);\n }, []);\n\n const icons = useMemo(() => {\n return filter ? allIcons.filter(ic => ic.name.includes(filter)) : allIcons;\n }, [filter]);\n\n const renderCell = useCallback(\n ({ closeMenu }: RenderCellParams) => {\n return function renderCell({\n columnIndex,\n key,\n rowIndex,\n style\n }: GridCellProps): React.ReactNode {\n const item = icons[rowIndex * COLUMN_COUNT + columnIndex];\n if (!item) {\n return null;\n }\n\n return (\n <div\n key={key}\n style={style}\n className={gridItem}\n onClick={() => {\n if (onChange) {\n onChange(item.id.join(\"/\"));\n }\n closeMenu();\n }}\n >\n <FontAwesomeIcon icon={item.id} size={\"2x\"} />\n <Typography use={\"body2\"}>{item.name}</Typography>\n </div>\n );\n };\n },\n [icons]\n );\n\n const renderGrid = useCallback<RenderableMenuChildren>(\n ({ closeMenu }) => {\n return (\n <>\n <Global styles={globalStyles} />\n <DelayedOnChange value={filter} onChange={onFilterChange}>\n {({ value, onChange }) => (\n <Input\n inputRef={inputRef}\n className={searchInput}\n value={value}\n onChange={onChange}\n placeholder={\"Search icons...\"}\n />\n )}\n </DelayedOnChange>\n {icons.length === 0 ? (\n <div className={NoResultWrapper}>\n <Typography use=\"body1\">No results found.</Typography>\n </div>\n ) : (\n <Grid\n className={grid}\n cellRenderer={renderCell({ closeMenu })}\n columnCount={COLUMN_COUNT}\n columnWidth={100}\n height={440}\n rowCount={Math.ceil(icons.length / COLUMN_COUNT)}\n rowHeight={100}\n width={640}\n />\n )}\n </>\n );\n },\n [icons]\n );\n\n const fontAwesomeIconValue: any =\n typeof value === \"string\" && value.includes(\"/\") ? value.split(\"/\") : [\"fas\", \"star\"];\n\n const { isValid: validationIsValid, message: validationMessage } = validation || {};\n\n return (\n <>\n {label && (\n <div className={iconPickerLabel}>\n <Typography use={\"body1\"}>{label}</Typography>\n </div>\n )}\n\n <Menu\n onOpen={() => setMustRenderGrid(true)}\n onClose={() => setMustRenderGrid(false)}\n renderToPortal={true}\n handle={\n <div className={MenuWrapper}>\n <div className={pickIcon}>\n <FontAwesomeIcon icon={fontAwesomeIconValue} size={\"2x\"} />\n </div>\n </div>\n }\n >\n {\n /**\n * Unfortunately we need to cast for build to pass.\n *\n * real type is RenderableMenuChildren, but the TS is complaining.\n * @TODO bruno fix\n */\n mustRenderGrid && (renderGrid as unknown as React.ReactNode)\n }\n </Menu>\n\n {validationIsValid === false && (\n <FormElementMessage error>{validationMessage}</FormElementMessage>\n )}\n {validationIsValid !== false && description && (\n <FormElementMessage>{description}</FormElementMessage>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AAGA,IAAAU,mBAAA,GAAAV,OAAA;AAAmE,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A,CAAA6B,OAAA,CAAA+E,aAAA,CAAChG,mBAAA,CAAAuI,kBAAkB;IAACC,KAAK;EAAA,GAAER,iBAAsC,CACpE,EACAF,iBAAiB,KAAK,KAAK,IAAIxE,WAAW,iBACvClE,MAAA,CAAA6B,OAAA,CAAA+E,aAAA,CAAChG,mBAAA,CAAAuI,kBAAkB,QAAEjF,WAAgC,CAE3D,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { RichTextEditorProps } from "@webiny/lexical-editor/types";
|
|
3
|
-
export declare const LexicalCmsEditor: (props: Omit<RichTextEditorProps, "theme">) => JSX.Element;
|
|
3
|
+
export declare const LexicalCmsEditor: (props: Omit<RichTextEditorProps, "theme">) => React.JSX.Element;
|
|
@@ -29,7 +29,7 @@ var styles = {
|
|
|
29
29
|
var toolbar = /*#__PURE__*/_react.default.createElement(_reactComposition.CompositionScope, {
|
|
30
30
|
name: "cms"
|
|
31
31
|
}, /*#__PURE__*/_react.default.createElement(_lexicalEditor.StaticToolbar, null));
|
|
32
|
-
var LexicalCmsEditor = function LexicalCmsEditor(props) {
|
|
32
|
+
var LexicalCmsEditor = exports.LexicalCmsEditor = function LexicalCmsEditor(props) {
|
|
33
33
|
var onChange = (0, _react.useCallback)(function (jsonString) {
|
|
34
34
|
if (props?.onChange) {
|
|
35
35
|
props?.onChange(JSON.parse(jsonString));
|
|
@@ -47,6 +47,5 @@ var LexicalCmsEditor = function LexicalCmsEditor(props) {
|
|
|
47
47
|
styles: styles
|
|
48
48
|
}));
|
|
49
49
|
};
|
|
50
|
-
exports.LexicalCmsEditor = LexicalCmsEditor;
|
|
51
50
|
|
|
52
51
|
//# sourceMappingURL=LexicalCmsEditor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_lexicalEditor","_reactComposition","_LexicalEditor","placeholderStyles","position","top","left","contentEditableStyles","minHeight","display","padding","styles","backgroundColor","border","maxHeight","toolbar","default","createElement","CompositionScope","name","StaticToolbar","LexicalCmsEditor","props","onChange","useCallback","jsonString","JSON","parse","LexicalEditor","Object","assign","focus","value","stringify","staticToolbar","tag","placeholder"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_lexicalEditor","_reactComposition","_LexicalEditor","placeholderStyles","position","top","left","contentEditableStyles","minHeight","display","padding","styles","backgroundColor","border","maxHeight","toolbar","default","createElement","CompositionScope","name","StaticToolbar","LexicalCmsEditor","exports","props","onChange","useCallback","jsonString","JSON","parse","LexicalEditor","Object","assign","focus","value","stringify","staticToolbar","tag","placeholder"],"sources":["LexicalCmsEditor.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { StaticToolbar } from \"@webiny/lexical-editor\";\nimport { RichTextEditorProps } from \"@webiny/lexical-editor/types\";\nimport { CompositionScope } from \"@webiny/react-composition\";\nimport { LexicalEditor } from \"@webiny/app-admin/components/LexicalEditor\";\n\nconst placeholderStyles: React.CSSProperties = { position: \"absolute\", top: 40, left: 25 };\n\nconst contentEditableStyles: React.CSSProperties = {\n minHeight: 200,\n display: \"block\",\n padding: 10\n};\n\nconst styles: React.CSSProperties = {\n backgroundColor: \"#fff\",\n border: \"1px solid #e1e1e1\",\n padding: \"10px 14px\",\n minHeight: 200,\n maxHeight: 350\n};\n\nconst toolbar = (\n <CompositionScope name={\"cms\"}>\n <StaticToolbar />\n </CompositionScope>\n);\n\nexport const LexicalCmsEditor = (props: Omit<RichTextEditorProps, \"theme\">) => {\n const onChange = useCallback(\n (jsonString: string) => {\n if (props?.onChange) {\n props?.onChange(JSON.parse(jsonString));\n }\n },\n [props?.onChange]\n );\n\n return (\n <LexicalEditor\n {...props}\n focus={true}\n value={JSON.stringify(props.value)}\n onChange={onChange}\n staticToolbar={toolbar}\n tag={\"p\"}\n placeholder={props?.placeholder || \"Enter your text here...\"}\n placeholderStyles={placeholderStyles}\n contentEditableStyles={contentEditableSty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EAAE,IAAK;IACZC,KAAK,EAAEN,IAAI,CAACO,SAAS,CAACX,KAAK,CAACU,KAAK,CAAE;IACnCT,QAAQ,EAAEA,QAAS;IACnBW,aAAa,EAAEpB,OAAQ;IACvBqB,GAAG,EAAE,GAAI;IACTC,WAAW,EAAEd,KAAK,EAAEc,WAAW,IAAI,yBAA0B;IAC7DlC,iBAAiB,EAAEA,iBAAkB;IACrCI,qBAAqB,EAAEA,qBAAsB;IAC7CI,MAAM,EAAEA;EAAO,EAClB,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -11,7 +11,7 @@ var _TypographyDropDown = require("./TypographyDropDown");
|
|
|
11
11
|
var _reactComposition = require("@webiny/react-composition");
|
|
12
12
|
var ToolbarElement = _lexicalEditor.LexicalEditorConfig.ToolbarElement,
|
|
13
13
|
Plugin = _lexicalEditor.LexicalEditorConfig.Plugin;
|
|
14
|
-
var LexicalEditorCmsPlugin = function LexicalEditorCmsPlugin() {
|
|
14
|
+
var LexicalEditorCmsPlugin = exports.LexicalEditorCmsPlugin = function LexicalEditorCmsPlugin() {
|
|
15
15
|
return /*#__PURE__*/_react.default.createElement(_reactComposition.CompositionScope, {
|
|
16
16
|
name: "cms"
|
|
17
17
|
}, /*#__PURE__*/_react.default.createElement(_lexicalEditor.LexicalEditorConfig, null, /*#__PURE__*/_react.default.createElement(ToolbarElement, {
|
|
@@ -95,6 +95,5 @@ var LexicalEditorCmsPlugin = function LexicalEditorCmsPlugin() {
|
|
|
95
95
|
element: /*#__PURE__*/_react.default.createElement(_TypographyDropDown.TypographyDropDown, null)
|
|
96
96
|
})));
|
|
97
97
|
};
|
|
98
|
-
exports.LexicalEditorCmsPlugin = LexicalEditorCmsPlugin;
|
|
99
98
|
|
|
100
99
|
//# sourceMappingURL=LexicalEditorCmsPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_lexicalEditor","_TypographyDropDown","_reactComposition","ToolbarElement","LexicalEditorConfig","Plugin","LexicalEditorCmsPlugin","default","createElement","CompositionScope","name","element","FontSizeAction","FontColorAction","TypographyAction","TextAlignmentAction","Divider","BoldAction","ItalicAction","UnderlineAction","CodeHighlightAction","NumberedListAction","BulletListAction","ImageAction","LinkAction","QuoteAction","FontColorPlugin","ListPlugin","CodeHighlightPlugin","TypographyPlugin","LinkPlugin","FloatingLinkEditorPlugin","anchorElem","document","body","ImagesPlugin","QuotePlugin","TypographyDropDown"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_lexicalEditor","_TypographyDropDown","_reactComposition","ToolbarElement","LexicalEditorConfig","Plugin","LexicalEditorCmsPlugin","exports","default","createElement","CompositionScope","name","element","FontSizeAction","FontColorAction","TypographyAction","TextAlignmentAction","Divider","BoldAction","ItalicAction","UnderlineAction","CodeHighlightAction","NumberedListAction","BulletListAction","ImageAction","LinkAction","QuoteAction","FontColorPlugin","ListPlugin","CodeHighlightPlugin","TypographyPlugin","LinkPlugin","FloatingLinkEditorPlugin","anchorElem","document","body","ImagesPlugin","QuotePlugin","TypographyDropDown"],"sources":["LexicalEditorCmsPlugin.tsx"],"sourcesContent":["import React, { FC } from \"react\";\nimport {\n TypographyAction,\n LexicalEditorConfig,\n FontSizeAction,\n FontColorAction,\n Divider,\n BoldAction,\n ItalicAction,\n UnderlineAction,\n CodeHighlightAction,\n NumberedListAction,\n BulletListAction,\n ImageAction,\n LinkAction,\n QuoteAction,\n ImagesPlugin,\n QuotePlugin,\n CodeHighlightPlugin,\n FloatingLinkEditorPlugin,\n LinkPlugin,\n ListPlugin,\n TypographyPlugin,\n FontColorPlugin,\n TextAlignmentAction\n} from \"@webiny/lexical-editor\";\nimport { TypographyDropDown } from \"~/admin/components/LexicalCmsEditor/TypographyDropDown\";\nimport { CompositionScope } from \"@webiny/react-composition\";\n\nconst { ToolbarElement, Plugin } = LexicalEditorConfig;\n\nexport const LexicalEditorCmsPlugin: FC = () => {\n return (\n <CompositionScope name={\"cms\"}>\n <LexicalEditorConfig>\n <ToolbarElement name=\"fontSize\" element={<FontSizeAction />} />\n <ToolbarElement name=\"fontColor\" element={<FontColorAction />} />\n <ToolbarElement name=\"typography\" element={<TypographyAction />} />\n <ToolbarElement name=\"textAlignment\" element={<TextAlignmentAction />} />\n <ToolbarElement name=\"divider1\" element={<Divider />} />\n <ToolbarElement name=\"boldAction\" element={<BoldAction />} />\n <ToolbarElement name=\"italic\" element={<ItalicAction />} />\n <ToolbarElement name=\"underline\" element={<UnderlineAction />} />\n <ToolbarElement name=\"codeHighlight\" element={<CodeHighlightAction />} />\n <ToolbarElement name=\"divider2\" element={<Divider />} />\n <ToolbarElement name=\"numberedList\" element={<NumberedListAction />} />\n <ToolbarElement name=\"bulletList\" element={<BulletListAction />} />\n <ToolbarElement name=\"divider\" element={<Divider />} />\n <ToolbarElement name=\"image\" element={<ImageAction />} />\n <ToolbarElement name=\"divider3\" element={<Divider />} />\n <ToolbarElement name=\"link\" element={<LinkAction />} />\n <ToolbarElement name=\"quote\" element={<QuoteAction />} />\n <Plugin name={\"fontColor\"} element={<FontColorPlugin />} />\n <Plugin name={\"list\"} element={<ListPlugin />} />\n <Plugin name={\"codeHighlight\"} element={<CodeHighlightPlugin />} />\n <Plugin name={\"typography\"} element={<TypographyPlugin />} />\n <Plugin name={\"link\"} element={<LinkPlugin />} />\n <Plugin\n name={\"floatingLinkEditor\"}\n element={<FloatingLinkEditorPlugin anchorElem={document.body} />}\n />\n <Plugin name={\"images\"} element={<ImagesPlugin />} />\n <Plugin name={\"quote\"} element={<QuotePlugin />} />\n <TypographyAction.TypographyDropDown element={<TypographyDropDown />} />\n </LexicalEditorConfig>\n </CompositionScope>\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAyBA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,IAAQI,cAAc,GAAaC,kCA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AAC,aAAA,CAACT,cAAA,CAAAe,gBAAgB,CAACuB,kBAAkB;IAAC1B,OAAO,eAAEf,MAAA,CAAAW,OAAA,CAAAC,aAAA,CAACR,mBAAA,CAAAqC,kBAAkB,MAAE;EAAE,CAAE,CACtD,CACP,CAAC;AAE3B,CAAC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const TypographyDropDown: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const TypographyDropDown: () => React.JSX.Element;
|
|
@@ -14,7 +14,7 @@ var _utils = require("@lexical/utils");
|
|
|
14
14
|
var _lexicalEditor = require("@webiny/lexical-editor");
|
|
15
15
|
var _lexicalNodes = require("@webiny/lexical-nodes");
|
|
16
16
|
var _appAdmin = require("@webiny/app-admin");
|
|
17
|
-
var TypographyDropDown = function TypographyDropDown() {
|
|
17
|
+
var TypographyDropDown = exports.TypographyDropDown = function TypographyDropDown() {
|
|
18
18
|
var _useTypographyAction = (0, _lexicalEditor.useTypographyAction)(),
|
|
19
19
|
value = _useTypographyAction.value,
|
|
20
20
|
applyTypography = _useTypographyAction.applyTypography;
|
|
@@ -108,6 +108,5 @@ var TypographyDropDown = function TypographyDropDown() {
|
|
|
108
108
|
}, option.name));
|
|
109
109
|
})) : null);
|
|
110
110
|
};
|
|
111
|
-
exports.TypographyDropDown = TypographyDropDown;
|
|
112
111
|
|
|
113
112
|
//# sourceMappingURL=TypographyDropDown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_utils","_lexicalEditor","_lexicalNodes","_appAdmin","TypographyDropDown","_useTypographyAction","useTypographyAction","value","applyTypography","_useTheme","useTheme","theme","_useState","useState","_useState2","_slicedToArray2","default","styles","setStyles","_useCurrentElement","useCurrentElement","element","_useCurrentSelection","useCurrentSelection","rangeSelection","getAllTextStyles","typography","headingsStyles","headings","paragraphStyles","paragraphs","concat","_toConsumableArray2","useEffect","getListStyles","tag","listStyles","lists","filter","x","length","fallbackTag","$isHeadingNode","$isParagraphNode","$isListNode","type","anchorNode","anchor","getNode","parentList","$getNearestNodeOfType","ListNode","getListType","_unused","$isQuoteNode","quotes","createElement","Fragment","DropDown","buttonClassName","buttonAriaLabel","buttonLabel","name","stopCloseOnClickSelf","disabled","showScroll","map","option","DropDownItem","className","id","onClick","_objectSpread2","css","key"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_utils","_lexicalEditor","_lexicalNodes","_appAdmin","TypographyDropDown","exports","_useTypographyAction","useTypographyAction","value","applyTypography","_useTheme","useTheme","theme","_useState","useState","_useState2","_slicedToArray2","default","styles","setStyles","_useCurrentElement","useCurrentElement","element","_useCurrentSelection","useCurrentSelection","rangeSelection","getAllTextStyles","typography","headingsStyles","headings","paragraphStyles","paragraphs","concat","_toConsumableArray2","useEffect","getListStyles","tag","listStyles","lists","filter","x","length","fallbackTag","$isHeadingNode","$isParagraphNode","$isListNode","type","anchorNode","anchor","getNode","parentList","$getNearestNodeOfType","ListNode","getListType","_unused","$isQuoteNode","quotes","createElement","Fragment","DropDown","buttonClassName","buttonAriaLabel","buttonLabel","name","stopCloseOnClickSelf","disabled","showScroll","map","option","DropDownItem","className","id","onClick","_objectSpread2","css","key"],"sources":["TypographyDropDown.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport { $getNearestNodeOfType } from \"@lexical/utils\";\nimport {\n DropDown,\n DropDownItem,\n useCurrentSelection,\n useCurrentElement,\n useTypographyAction\n} from \"@webiny/lexical-editor\";\nimport {\n $isHeadingNode,\n $isParagraphNode,\n $isQuoteNode,\n $isListNode,\n ListNode\n} from \"@webiny/lexical-nodes\";\nimport { TypographyStyle } from \"@webiny/theme/types\";\nimport { TypographyValue } from \"@webiny/lexical-theme\";\nimport { useTheme } from \"@webiny/app-admin\";\n\nexport const TypographyDropDown = () => {\n const { value, applyTypography } = useTypographyAction();\n const { theme } = useTheme();\n const [styles, setStyles] = useState<TypographyStyle[]>([]);\n const { element } = useCurrentElement();\n const { rangeSelection } = useCurrentSelection();\n\n const getAllTextStyles = (): TypographyStyle[] => {\n if (!theme?.styles.typography) {\n return [];\n }\n const headingsStyles = theme.styles.typography?.headings || [];\n const paragraphStyles = theme.styles.typography?.paragraphs || [];\n return [...headingsStyles, ...paragraphStyles];\n };\n\n useEffect(() => {\n // In static toolbar typography, styles always need to be visible.\n if (theme?.styles) {\n setStyles(getAllTextStyles());\n }\n }, [theme?.styles]);\n\n const getListStyles = (tag: string): TypographyStyle[] => {\n const listStyles = theme?.styles.typography.lists?.filter(x => x.tag === tag) || [];\n if (listStyles.length > 0) {\n return listStyles;\n }\n\n const fallbackTag = tag === \"ul\" ? \"ol\" : \"ul\";\n return theme?.styles.typography.lists?.filter(x => x.tag === fallbackTag) || [];\n };\n\n useEffect(() => {\n if (!element || !rangeSelection) {\n return;\n }\n\n switch (true) {\n case $isHeadingNode(element):\n case $isParagraphNode(element):\n setStyles(getAllTextStyles());\n break;\n case $isListNode(element):\n let type;\n try {\n const anchorNode = rangeSelection.anchor.getNode();\n const parentList = $getNearestNodeOfType<ListNode>(anchorNode, ListNode);\n if (parentList) {\n type = parentList.getListType();\n }\n } catch {\n type = element.getListType();\n }\n\n if (type === \"bullet\") {\n setStyles(getListStyles(\"ul\"));\n } else {\n setStyles(getListStyles(\"ol\"));\n }\n break;\n case $isQuoteNode(element):\n setStyles(theme?.styles.typography?.quotes || []);\n break;\n default:\n setStyles([]);\n }\n }, [element]);\n\n return (\n <>\n {!!styles?.length ? (\n <DropDown\n buttonClassName=\"toolbar-item typography-dropdown\"\n buttonAriaLabel={\"Typography formatting options\"}\n buttonLabel={value?.name || \"Typography\"}\n stopCloseOnClickSelf={true}\n disabled={false}\n showScroll={true}\n >\n {styles?.map(option => (\n <DropDownItem\n className={`item typography-item ${\n value?.id === option.id ? \"active dropdown-item-active\" : \"\"\n }`}\n onClick={() =>\n applyTypography({\n ...option,\n css: option.styles\n } as TypographyValue)\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