@comet/cms-admin 9.0.0-beta.2 → 9.0.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/lib/blocks/AnchorBlock.d.ts +1 -1
- package/lib/blocks/AnchorBlock.d.ts.map +1 -1
- package/lib/blocks/DamVideoBlock.d.ts +1 -1
- package/lib/blocks/DamVideoBlock.d.ts.map +1 -1
- package/lib/blocks/DamVideoBlock.js +6 -2
- package/lib/blocks/EmailLinkBlock.d.ts +1 -1
- package/lib/blocks/EmailLinkBlock.d.ts.map +1 -1
- package/lib/blocks/ExternalLinkBlock.d.ts +1 -1
- package/lib/blocks/ExternalLinkBlock.d.ts.map +1 -1
- package/lib/blocks/InternalLinkBlock.d.ts +1 -1
- package/lib/blocks/InternalLinkBlock.d.ts.map +1 -1
- package/lib/blocks/PhoneLinkBlock.d.ts +1 -1
- package/lib/blocks/PhoneLinkBlock.d.ts.map +1 -1
- package/lib/blocks/PixelImageBlock.d.ts +1 -1
- package/lib/blocks/PixelImageBlock.d.ts.map +1 -1
- package/lib/blocks/PixelImageBlock.fragment.d.ts +2 -0
- package/lib/blocks/PixelImageBlock.fragment.d.ts.map +1 -0
- package/lib/blocks/PixelImageBlock.fragment.generated.d.ts +20 -0
- package/lib/blocks/PixelImageBlock.fragment.generated.d.ts.map +1 -0
- package/lib/blocks/PixelImageBlock.fragment.generated.js +5 -0
- package/lib/blocks/PixelImageBlock.fragment.js +4 -0
- package/lib/blocks/PixelImageBlock.js +12 -5
- package/lib/blocks/SpaceBlock.d.ts +1 -1
- package/lib/blocks/SpaceBlock.d.ts.map +1 -1
- package/lib/blocks/SvgImageBlock.d.ts +1 -1
- package/lib/blocks/SvgImageBlock.d.ts.map +1 -1
- package/lib/blocks/SvgImageBlock.js +9 -3
- package/lib/blocks/VimeoVideoBlock.d.ts +1 -1
- package/lib/blocks/VimeoVideoBlock.d.ts.map +1 -1
- package/lib/blocks/VimeoVideoBlock.js +9 -3
- package/lib/blocks/YouTubeVideoBlock.d.ts +1 -1
- package/lib/blocks/YouTubeVideoBlock.d.ts.map +1 -1
- package/lib/blocks/YouTubeVideoBlock.js +9 -3
- package/lib/blocks/__stories__/RichTextBlock.stories.js +53 -0
- package/lib/blocks/clipboard/CannotPasteBlockDialog.d.ts +1 -1
- package/lib/blocks/clipboard/CannotPasteBlockDialog.d.ts.map +1 -1
- package/lib/blocks/clipboard/useBlockClipboard.d.ts +2 -2
- package/lib/blocks/clipboard/useBlockClipboard.d.ts.map +1 -1
- package/lib/blocks/common/AdminTabsTabContent.d.ts +1 -1
- package/lib/blocks/common/AdminTabsTabContent.d.ts.map +1 -1
- package/lib/blocks/common/AdminTabsTabContent.js +2 -2
- package/lib/blocks/common/BlockAdminComponentButton.d.ts +1 -1
- package/lib/blocks/common/BlockAdminComponentButton.d.ts.map +1 -1
- package/lib/blocks/common/BlockAdminComponentNestedButton.d.ts +1 -1
- package/lib/blocks/common/BlockAdminComponentNestedButton.d.ts.map +1 -1
- package/lib/blocks/common/BlockAdminComponentNestedButton.js +1 -1
- package/lib/blocks/common/BlockAdminComponentRoot.d.ts +1 -1
- package/lib/blocks/common/BlockAdminComponentRoot.d.ts.map +1 -1
- package/lib/blocks/common/BlockAdminComponentRoot.js +1 -1
- package/lib/blocks/common/BlockAdminComponentSection.d.ts +1 -1
- package/lib/blocks/common/BlockAdminComponentSection.d.ts.map +1 -1
- package/lib/blocks/common/BlockAdminComponentSection.js +2 -2
- package/lib/blocks/common/BlockAdminComponentSectionGroup.d.ts +1 -1
- package/lib/blocks/common/BlockAdminComponentSectionGroup.d.ts.map +1 -1
- package/lib/blocks/common/BlockAdminComponentSectionGroup.js +1 -1
- package/lib/blocks/common/BlockAdminTabLabel.d.ts +1 -1
- package/lib/blocks/common/BlockAdminTabLabel.d.ts.map +1 -1
- package/lib/blocks/common/BlockAdminTabLabel.js +1 -1
- package/lib/blocks/common/BlockAdminTabs.d.ts +1 -1
- package/lib/blocks/common/BlockAdminTabs.d.ts.map +1 -1
- package/lib/blocks/common/BlockAdminTabs.js +3 -3
- package/lib/blocks/common/Collapsible.d.ts +1 -1
- package/lib/blocks/common/Collapsible.d.ts.map +1 -1
- package/lib/blocks/common/CollapsibleSwitchButtonHeader.d.ts +1 -1
- package/lib/blocks/common/CollapsibleSwitchButtonHeader.d.ts.map +1 -1
- package/lib/blocks/common/CollapsibleSwitchButtonHeader.js +1 -1
- package/lib/blocks/common/HiddenInSubroute.d.ts +1 -1
- package/lib/blocks/common/HiddenInSubroute.d.ts.map +1 -1
- package/lib/blocks/common/blockRow/BlockPreviewContent.d.ts +1 -1
- package/lib/blocks/common/blockRow/BlockPreviewContent.d.ts.map +1 -1
- package/lib/blocks/common/blockRow/BlockRow.d.ts.map +1 -1
- package/lib/blocks/common/blockRow/BlockRow.js +3 -1
- package/lib/blocks/common/blockRow/image/StackedImages.d.ts +1 -1
- package/lib/blocks/common/blockRow/image/StackedImages.d.ts.map +1 -1
- package/lib/blocks/config/BlocksConfigContext.d.ts +2 -2
- package/lib/blocks/config/BlocksConfigContext.d.ts.map +1 -1
- package/lib/blocks/context/BlockContext.d.ts +2 -2
- package/lib/blocks/context/BlockContext.d.ts.map +1 -1
- package/lib/blocks/context/BlockContextProvider.d.ts +1 -1
- package/lib/blocks/context/BlockContextProvider.d.ts.map +1 -1
- package/lib/blocks/createImageLinkBlock.d.ts +1 -1
- package/lib/blocks/createImageLinkBlock.d.ts.map +1 -1
- package/lib/blocks/createLinkBlock.d.ts +1 -1
- package/lib/blocks/createLinkBlock.d.ts.map +1 -1
- package/lib/blocks/createLinkBlock.js +50 -1
- package/lib/blocks/createRichTextBlock.d.ts +1 -1
- package/lib/blocks/createRichTextBlock.d.ts.map +1 -1
- package/lib/blocks/createRichTextBlock.js +56 -20
- package/lib/blocks/createSeoBlock.d.ts +1 -1
- package/lib/blocks/createSeoBlock.d.ts.map +1 -1
- package/lib/blocks/createSeoBlock.js +6 -4
- package/lib/blocks/createTableBlock.d.ts +2 -2
- package/lib/blocks/createTableBlock.d.ts.map +1 -1
- package/lib/blocks/createTextImageBlock.d.ts +2 -2
- package/lib/blocks/createTextImageBlock.d.ts.map +1 -1
- package/lib/blocks/createTextLinkBlock.d.ts +1 -1
- package/lib/blocks/createTextLinkBlock.d.ts.map +1 -1
- package/lib/blocks/createTextLinkBlock.js +36 -1
- package/lib/blocks/factories/columnsBlock/FinalFormColumnsSelect.d.ts +1 -1
- package/lib/blocks/factories/columnsBlock/FinalFormColumnsSelect.d.ts.map +1 -1
- package/lib/blocks/factories/columnsBlock/FinalFormLayoutSelect.d.ts +2 -2
- package/lib/blocks/factories/columnsBlock/FinalFormLayoutSelect.d.ts.map +1 -1
- package/lib/blocks/factories/columnsBlock/FinalFormLayoutSelect.js +6 -6
- package/lib/blocks/factories/createBlocksBlock.d.ts +1 -1
- package/lib/blocks/factories/createBlocksBlock.d.ts.map +1 -1
- package/lib/blocks/factories/createBlocksBlock.js +70 -13
- package/lib/blocks/factories/createColumnsBlock.d.ts +2 -2
- package/lib/blocks/factories/createColumnsBlock.d.ts.map +1 -1
- package/lib/blocks/factories/createColumnsBlock.js +56 -6
- package/lib/blocks/factories/createCompositeBlock.d.ts +1 -1
- package/lib/blocks/factories/createCompositeBlock.d.ts.map +1 -1
- package/lib/blocks/factories/createCompositeBlock.js +3 -1
- package/lib/blocks/factories/createListBlock.d.ts +2 -2
- package/lib/blocks/factories/createListBlock.d.ts.map +1 -1
- package/lib/blocks/factories/createListBlock.js +59 -7
- package/lib/blocks/factories/createOneOfBlock.d.ts.map +1 -1
- package/lib/blocks/factories/createOneOfBlock.js +62 -5
- package/lib/blocks/factories/createOptionalBlock.d.ts +3 -3
- package/lib/blocks/factories/createOptionalBlock.d.ts.map +1 -1
- package/lib/blocks/factories/createOptionalBlock.js +38 -1
- package/lib/blocks/factories/listBlock/createUseAdminComponent.d.ts +2 -2
- package/lib/blocks/factories/listBlock/createUseAdminComponent.d.ts.map +1 -1
- package/lib/blocks/factories/spaceBlock/createSpaceBlock.d.ts +1 -1
- package/lib/blocks/factories/spaceBlock/createSpaceBlock.d.ts.map +1 -1
- package/lib/blocks/form/createFinalFormBlock.d.ts +2 -2
- package/lib/blocks/form/createFinalFormBlock.d.ts.map +1 -1
- package/lib/blocks/helpers/composeBlocks/composeBlocks.d.ts +4 -4
- package/lib/blocks/helpers/composeBlocks/composeBlocks.d.ts.map +1 -1
- package/lib/blocks/helpers/composeBlocks/composeBlocks.js +52 -16
- package/lib/blocks/helpers/composeBlocks/createCompositeBlockField.d.ts +3 -2
- package/lib/blocks/helpers/composeBlocks/createCompositeBlockField.d.ts.map +1 -1
- package/lib/blocks/helpers/composeBlocks/createCompositeBlockField.js +4 -2
- package/lib/blocks/helpers/composeBlocks/createCompositeBlockFields.d.ts +1 -1
- package/lib/blocks/helpers/composeBlocks/createCompositeBlockFields.d.ts.map +1 -1
- package/lib/blocks/helpers/composeBlocks/createSettingsBlock.d.ts +3 -2
- package/lib/blocks/helpers/composeBlocks/createSettingsBlock.d.ts.map +1 -1
- package/lib/blocks/helpers/composeBlocks/createSettingsBlock.js +5 -1
- package/lib/blocks/helpers/composeBlocks/types.d.ts +3 -3
- package/lib/blocks/helpers/composeBlocks/types.d.ts.map +1 -1
- package/lib/blocks/helpers/composeBlocks/utils.d.ts +2 -2
- package/lib/blocks/helpers/composeBlocks/utils.d.ts.map +1 -1
- package/lib/blocks/helpers/createBlockSkeleton.js +15 -1
- package/lib/blocks/helpers/createCompositeBlockSelectField.d.ts +1 -1
- package/lib/blocks/helpers/createCompositeBlockSelectField.d.ts.map +1 -1
- package/lib/blocks/helpers/createCompositeBlockSwitchField.d.ts +1 -1
- package/lib/blocks/helpers/createCompositeBlockSwitchField.d.ts.map +1 -1
- package/lib/blocks/helpers/createCompositeBlockTextField.d.ts +3 -2
- package/lib/blocks/helpers/createCompositeBlockTextField.d.ts.map +1 -1
- package/lib/blocks/helpers/createCompositeBlockTextField.js +20 -2
- package/lib/blocks/helpers/decomposeUpdateStateAction.d.ts +1 -1
- package/lib/blocks/helpers/decomposeUpdateStateAction.d.ts.map +1 -1
- package/lib/blocks/helpers/deduplicateBlockDependencies.d.ts +1 -1
- package/lib/blocks/helpers/deduplicateBlockDependencies.d.ts.map +1 -1
- package/lib/blocks/helpers/isBlockInterface.d.ts +1 -1
- package/lib/blocks/helpers/isBlockInterface.d.ts.map +1 -1
- package/lib/blocks/helpers/withAdditionalBlockAttributes.d.ts +1 -1
- package/lib/blocks/helpers/withAdditionalBlockAttributes.d.ts.map +1 -1
- package/lib/blocks/iframebridge/IFrameMessage.d.ts +1 -1
- package/lib/blocks/iframebridge/IFrameMessage.d.ts.map +1 -1
- package/lib/blocks/image/EditImageDialog.d.ts +1 -1
- package/lib/blocks/image/EditImageDialog.d.ts.map +1 -1
- package/lib/blocks/image/EditImageDialog.js +2 -2
- package/lib/blocks/rte/extension/CmsLink/Decorator.d.ts +1 -1
- package/lib/blocks/rte/extension/CmsLink/Decorator.d.ts.map +1 -1
- package/lib/blocks/rte/extension/CmsLink/EditorComponent.d.ts +2 -2
- package/lib/blocks/rte/extension/CmsLink/EditorComponent.d.ts.map +1 -1
- package/lib/blocks/rte/extension/CmsLink/createCmsLinkToolbarButton.d.ts +1 -1
- package/lib/blocks/rte/extension/CmsLink/createCmsLinkToolbarButton.d.ts.map +1 -1
- package/lib/blocks/rte/extension/CmsLink/createCmsLinkToolbarButton.js +2 -2
- package/lib/blocks/table/CellValue.d.ts +1 -1
- package/lib/blocks/table/CellValue.d.ts.map +1 -1
- package/lib/blocks/table/CellValue.js +6 -6
- package/lib/blocks/table/ColumnHeader.d.ts +4 -4
- package/lib/blocks/table/ColumnHeader.d.ts.map +1 -1
- package/lib/blocks/table/ColumnHeader.js +1 -1
- package/lib/blocks/table/EditCell.js +4 -4
- package/lib/blocks/table/RowActionsCell.d.ts +2 -2
- package/lib/blocks/table/RowActionsCell.d.ts.map +1 -1
- package/lib/blocks/table/TableBlockContext.d.ts +1 -1
- package/lib/blocks/table/TableBlockContext.d.ts.map +1 -1
- package/lib/blocks/table/TableBlockContext.js +3 -1
- package/lib/blocks/table/TableBlockGrid.d.ts +1 -1
- package/lib/blocks/table/TableBlockGrid.d.ts.map +1 -1
- package/lib/blocks/table/dataGridStyles.d.ts +1 -1
- package/lib/blocks/table/dataGridStyles.d.ts.map +1 -1
- package/lib/blocks/table/utils/column.d.ts +3 -3
- package/lib/blocks/table/utils/column.d.ts.map +1 -1
- package/lib/blocks/table/utils/ensureMinimumTableState.d.ts +2 -2
- package/lib/blocks/table/utils/ensureMinimumTableState.d.ts.map +1 -1
- package/lib/blocks/table/utils/getClipboardValueForSchema.d.ts +1 -1
- package/lib/blocks/table/utils/getClipboardValueForSchema.d.ts.map +1 -1
- package/lib/blocks/table/utils/row.d.ts +2 -2
- package/lib/blocks/table/utils/row.d.ts.map +1 -1
- package/lib/blocks/tipTap/BlockStyleContext.d.ts +3 -0
- package/lib/blocks/tipTap/BlockStyleContext.d.ts.map +1 -0
- package/lib/blocks/tipTap/BlockStyleContext.js +2 -0
- package/lib/blocks/tipTap/InlineStyleContext.d.ts +3 -0
- package/lib/blocks/tipTap/InlineStyleContext.d.ts.map +1 -0
- package/lib/blocks/tipTap/InlineStyleContext.js +2 -0
- package/lib/blocks/tipTap/TipTapLinkDialog.d.ts +10 -0
- package/lib/blocks/tipTap/TipTapLinkDialog.d.ts.map +1 -0
- package/lib/blocks/tipTap/TipTapLinkDialog.js +105 -0
- package/lib/blocks/tipTap/TipTapToolbar.d.ts +12 -0
- package/lib/blocks/tipTap/TipTapToolbar.d.ts.map +1 -0
- package/lib/blocks/tipTap/TipTapToolbar.js +611 -0
- package/lib/blocks/tipTap/__stories__/TipTapRichTextBlock.stories.js +1566 -0
- package/lib/blocks/tipTap/createTipTapRichTextBlock.d.ts +56 -0
- package/lib/blocks/tipTap/createTipTapRichTextBlock.d.ts.map +1 -0
- package/lib/blocks/tipTap/createTipTapRichTextBlock.js +418 -0
- package/lib/blocks/tipTap/extensions/BlockStyleHeading.d.ts +2 -0
- package/lib/blocks/tipTap/extensions/BlockStyleHeading.d.ts.map +1 -0
- package/lib/blocks/tipTap/extensions/BlockStyleHeading.js +57 -0
- package/lib/blocks/tipTap/extensions/BlockStyleParagraph.d.ts +2 -0
- package/lib/blocks/tipTap/extensions/BlockStyleParagraph.d.ts.map +1 -0
- package/lib/blocks/tipTap/extensions/BlockStyleParagraph.js +56 -0
- package/lib/blocks/tipTap/extensions/CmsLink.d.ts +13 -0
- package/lib/blocks/tipTap/extensions/CmsLink.d.ts.map +1 -0
- package/lib/blocks/tipTap/extensions/CmsLink.js +42 -0
- package/lib/blocks/tipTap/extensions/InlineStyleMark.d.ts +13 -0
- package/lib/blocks/tipTap/extensions/InlineStyleMark.d.ts.map +1 -0
- package/lib/blocks/tipTap/extensions/InlineStyleMark.js +71 -0
- package/lib/blocks/tipTap/extensions/NonBreakingSpace.d.ts +10 -0
- package/lib/blocks/tipTap/extensions/NonBreakingSpace.d.ts.map +1 -0
- package/lib/blocks/tipTap/extensions/NonBreakingSpace.js +57 -0
- package/lib/blocks/tipTap/extensions/SoftHyphen.d.ts +10 -0
- package/lib/blocks/tipTap/extensions/SoftHyphen.d.ts.map +1 -0
- package/lib/blocks/tipTap/extensions/SoftHyphen.js +51 -0
- package/lib/blocks/tipTap/listLevelMaxHelpers.d.ts +6 -0
- package/lib/blocks/tipTap/listLevelMaxHelpers.d.ts.map +1 -0
- package/lib/blocks/tipTap/listLevelMaxHelpers.js +108 -0
- package/lib/blocks/types.d.ts +9 -2
- package/lib/blocks/types.d.ts.map +1 -1
- package/lib/blocks/utils.d.ts +1 -1
- package/lib/blocks/utils.d.ts.map +1 -1
- package/lib/builds/BuildEntry.js +1 -1
- package/lib/builds/PublisherPage.js +1 -1
- package/lib/common/InsertInBetweenAction.d.ts +1 -1
- package/lib/common/InsertInBetweenAction.d.ts.map +1 -1
- package/lib/common/InsertInBetweenAction.js +3 -3
- package/lib/common/MasterMenuRoutes.d.ts +1 -1
- package/lib/common/MasterMenuRoutes.d.ts.map +1 -1
- package/lib/common/PageName.js +1 -1
- package/lib/common/errors/errorMessages.d.ts +1 -1
- package/lib/common/errors/errorMessages.d.ts.map +1 -1
- package/lib/common/header/Header.d.ts +1 -1
- package/lib/common/header/Header.d.ts.map +1 -1
- package/lib/common/header/Header.js +1 -1
- package/lib/common/header/about/AboutModal.d.ts +1 -1
- package/lib/common/header/about/AboutModal.d.ts.map +1 -1
- package/lib/common/header/about/AboutModal.js +6 -6
- package/lib/common/header/about/build-information/useBuildInformation.d.ts +1 -1
- package/lib/common/header/about/build-information/useBuildInformation.d.ts.map +1 -1
- package/lib/common/image/ChooseFocalPoint.d.ts +1 -1
- package/lib/common/image/ChooseFocalPoint.d.ts.map +1 -1
- package/lib/common/image/ImageCrop.sc.d.ts +1 -1
- package/lib/common/image/ImageCrop.sc.d.ts.map +1 -1
- package/lib/common/image/ImageCrop.sc.js +2 -2
- package/lib/common/signOutButton/SignOutButton.d.ts +1 -1
- package/lib/common/signOutButton/SignOutButton.d.ts.map +1 -1
- package/lib/common/useEditState.d.ts +1 -1
- package/lib/common/useEditState.d.ts.map +1 -1
- package/lib/config/CometConfigContext.d.ts +11 -10
- package/lib/config/CometConfigContext.d.ts.map +1 -1
- package/lib/config/CometConfigContext.js +9 -5
- package/lib/contentLanguage/contentLanguageConfig.d.ts +1 -1
- package/lib/contentLanguage/contentLanguageConfig.d.ts.map +1 -1
- package/lib/contentLanguage/useContentLanguage.d.ts +1 -1
- package/lib/contentLanguage/useContentLanguage.d.ts.map +1 -1
- package/lib/contentScope/ContentScopeIndicator.d.ts +1 -1
- package/lib/contentScope/ContentScopeIndicator.d.ts.map +1 -1
- package/lib/contentScope/ContentScopeIndicator.js +4 -4
- package/lib/contentScope/ContentScopeSelect.d.ts +1 -1
- package/lib/contentScope/ContentScopeSelect.d.ts.map +1 -1
- package/lib/contentScope/ContentScopeSelect.js +2 -3
- package/lib/contentScope/Controls.d.ts +1 -1
- package/lib/contentScope/Controls.d.ts.map +1 -1
- package/lib/contentScope/__stories__/ContentScopeProvider.stories.js +85 -0
- package/lib/contentScope/__stories__/ContentScopeSelect.stories.js +655 -0
- package/lib/contentScope/noContentScopeFallback/NoContentScopeFallback.d.ts +1 -1
- package/lib/contentScope/noContentScopeFallback/NoContentScopeFallback.d.ts.map +1 -1
- package/lib/contentScope/noContentScopeFallback/__stories__/NoContentScopeFallback.stories.js +7 -0
- package/lib/contentScope/utils/defaultCreatePath.d.ts +1 -1
- package/lib/contentScope/utils/defaultCreatePath.d.ts.map +1 -1
- package/lib/contentScope/utils/groupObjectsIntoArrays.d.ts +1 -1
- package/lib/contentScope/utils/groupObjectsIntoArrays.d.ts.map +1 -1
- package/lib/cronJobs/JobLogs.js +1 -1
- package/lib/cronJobs/JobStatus.d.ts +1 -1
- package/lib/cronJobs/JobStatus.d.ts.map +1 -1
- package/lib/cronJobs/JobStatus.js +1 -1
- package/lib/dam/DamPage.d.ts +1 -1
- package/lib/dam/DamPage.d.ts.map +1 -1
- package/lib/dam/DamTable.d.ts +9 -4
- package/lib/dam/DamTable.d.ts.map +1 -1
- package/lib/dam/DamTable.js +8 -18
- package/lib/dam/DataGrid/DamContextMenu.d.ts +1 -1
- package/lib/dam/DataGrid/DamContextMenu.d.ts.map +1 -1
- package/lib/dam/DataGrid/FolderDataGrid.d.ts +2 -2
- package/lib/dam/DataGrid/FolderDataGrid.d.ts.map +1 -1
- package/lib/dam/DataGrid/FolderDataGrid.js +285 -276
- package/lib/dam/DataGrid/duplicatedFilenames/ManualDuplicatedFilenamesHandler.d.ts +1 -1
- package/lib/dam/DataGrid/duplicatedFilenames/ManualDuplicatedFilenamesHandler.d.ts.map +1 -1
- package/lib/dam/DataGrid/duplicatedFilenames/ManuallyHandleDuplicatedFilenamesDialog.d.ts +1 -1
- package/lib/dam/DataGrid/duplicatedFilenames/ManuallyHandleDuplicatedFilenamesDialog.d.ts.map +1 -1
- package/lib/dam/DataGrid/duplicatedFilenames/ManuallyHandleDuplicatedFilenamesDialog.js +2 -2
- package/lib/dam/DataGrid/fileUpload/FileUploadContext.d.ts +1 -1
- package/lib/dam/DataGrid/fileUpload/FileUploadContext.d.ts.map +1 -1
- package/lib/dam/DataGrid/fileUpload/FileUploadErrorDialog.d.ts +1 -1
- package/lib/dam/DataGrid/fileUpload/FileUploadErrorDialog.d.ts.map +1 -1
- package/lib/dam/DataGrid/fileUpload/FileUploadErrorDialog.js +2 -2
- package/lib/dam/DataGrid/fileUpload/fileUpload.utils.d.ts +1 -1
- package/lib/dam/DataGrid/fileUpload/fileUpload.utils.d.ts.map +1 -1
- package/lib/dam/DataGrid/fileUpload/useDamFileUpload.d.ts +2 -2
- package/lib/dam/DataGrid/fileUpload/useDamFileUpload.d.ts.map +1 -1
- package/lib/dam/DataGrid/filter/DamTableFilter.d.ts +1 -1
- package/lib/dam/DataGrid/filter/DamTableFilter.d.ts.map +1 -1
- package/lib/dam/DataGrid/filter/DamTableFilter.js +0 -10
- package/lib/dam/DataGrid/footer/DamFooter.d.ts +1 -1
- package/lib/dam/DataGrid/footer/DamFooter.d.ts.map +1 -1
- package/lib/dam/DataGrid/footer/DamFooter.js +1 -1
- package/lib/dam/DataGrid/label/DamItemLabel.d.ts +1 -1
- package/lib/dam/DataGrid/label/DamItemLabel.d.ts.map +1 -1
- package/lib/dam/DataGrid/label/DamItemLabel.js +3 -3
- package/lib/dam/DataGrid/label/DamItemLabelColumn.d.ts +5 -5
- package/lib/dam/DataGrid/label/DamItemLabelColumn.d.ts.map +1 -1
- package/lib/dam/DataGrid/label/DamItemLabelColumn.js +2 -2
- package/lib/dam/DataGrid/selection/DamMoreActions.d.ts +2 -1
- package/lib/dam/DataGrid/selection/DamMoreActions.d.ts.map +1 -1
- package/lib/dam/DataGrid/selection/DamMoreActions.js +4 -3
- package/lib/dam/DataGrid/selection/DamSelectionContext.d.ts +8 -5
- package/lib/dam/DataGrid/selection/DamSelectionContext.d.ts.map +1 -1
- package/lib/dam/DataGrid/selection/DamSelectionContext.js +11 -3
- package/lib/dam/DataGrid/thumbnail/DamThumbnail.d.ts +2 -2
- package/lib/dam/DataGrid/thumbnail/DamThumbnail.d.ts.map +1 -1
- package/lib/dam/DataGrid/thumbnail/DamThumbnail.js +4 -4
- package/lib/dam/DataGrid/useDamSearchHighlighting.d.ts +1 -1
- package/lib/dam/DataGrid/useDamSearchHighlighting.d.ts.map +1 -1
- package/lib/dam/FileForm/CropSettingsFields.d.ts +1 -1
- package/lib/dam/FileForm/CropSettingsFields.d.ts.map +1 -1
- package/lib/dam/FileForm/CropSettingsFields.js +1 -1
- package/lib/dam/FileForm/Duplicates.js +5 -5
- package/lib/dam/FileForm/EditFile.d.ts +3 -3
- package/lib/dam/FileForm/EditFile.d.ts.map +1 -1
- package/lib/dam/FileForm/EditFile.js +2 -2
- package/lib/dam/FileForm/FilePreview.d.ts +1 -1
- package/lib/dam/FileForm/FilePreview.d.ts.map +1 -1
- package/lib/dam/FileForm/FilePreview.js +4 -4
- package/lib/dam/FileForm/FileSettingsFields.d.ts +1 -1
- package/lib/dam/FileForm/FileSettingsFields.d.ts.map +1 -1
- package/lib/dam/FileForm/FileSettingsFields.js +1 -1
- package/lib/dam/FileForm/ReplaceFileButton.d.ts +1 -1
- package/lib/dam/FileForm/ReplaceFileButton.d.ts.map +1 -1
- package/lib/dam/FileForm/licenseType.d.ts +2 -2
- package/lib/dam/FileForm/licenseType.d.ts.map +1 -1
- package/lib/dam/FileForm/previews/AudioPreview.d.ts +1 -1
- package/lib/dam/FileForm/previews/AudioPreview.d.ts.map +1 -1
- package/lib/dam/FileForm/previews/AudioPreview.js +5 -5
- package/lib/dam/FileForm/previews/DefaultFilePreview.d.ts +1 -1
- package/lib/dam/FileForm/previews/DefaultFilePreview.d.ts.map +1 -1
- package/lib/dam/FileForm/previews/DefaultFilePreview.js +3 -3
- package/lib/dam/FileForm/previews/ImagePreview.d.ts +1 -1
- package/lib/dam/FileForm/previews/ImagePreview.d.ts.map +1 -1
- package/lib/dam/FileForm/previews/PdfPreview.d.ts +1 -1
- package/lib/dam/FileForm/previews/PdfPreview.d.ts.map +1 -1
- package/lib/dam/FileForm/previews/PdfPreview.js +2 -2
- package/lib/dam/FileForm/previews/VideoPreview.d.ts +1 -1
- package/lib/dam/FileForm/previews/VideoPreview.d.ts.map +1 -1
- package/lib/dam/FileForm/previews/VideoPreview.js +2 -2
- package/lib/dam/MoveDamItemDialog/ChooseFolder.d.ts +2 -2
- package/lib/dam/MoveDamItemDialog/ChooseFolder.d.ts.map +1 -1
- package/lib/dam/MoveDamItemDialog/ChooseFolder.js +1 -1
- package/lib/dam/MoveDamItemDialog/MoveDamItemDialog.d.ts +1 -1
- package/lib/dam/MoveDamItemDialog/MoveDamItemDialog.d.ts.map +1 -1
- package/lib/dam/MoveDamItemDialog/MoveDamItemDialog.js +1 -1
- package/lib/dam/MoveDamItemDialog/useFolderTree.d.ts +1 -1
- package/lib/dam/MoveDamItemDialog/useFolderTree.d.ts.map +1 -1
- package/lib/dam/MoveDamItemDialog/useFolderTreeSearch.d.ts +2 -2
- package/lib/dam/MoveDamItemDialog/useFolderTreeSearch.d.ts.map +1 -1
- package/lib/dam/blocks/DamFileDownloadLinkBlock.d.ts +1 -1
- package/lib/dam/blocks/DamFileDownloadLinkBlock.d.ts.map +1 -1
- package/lib/dam/blocks/DamFileDownloadLinkBlock.js +6 -2
- package/lib/dam/config/DamScopeProvider.d.ts +1 -1
- package/lib/dam/config/DamScopeProvider.d.ts.map +1 -1
- package/lib/dam/config/damConfig.d.ts +1 -1
- package/lib/dam/config/damConfig.d.ts.map +1 -1
- package/lib/dam/dependencies/createDamFileDependency.d.ts +1 -1
- package/lib/dam/dependencies/createDamFileDependency.d.ts.map +1 -1
- package/lib/dam/helpers/clearDamItemCache.d.ts +1 -1
- package/lib/dam/helpers/clearDamItemCache.d.ts.map +1 -1
- package/lib/dam/helpers/isFile.d.ts +1 -1
- package/lib/dam/helpers/isFile.d.ts.map +1 -1
- package/lib/dam/helpers/isFolder.d.ts +1 -1
- package/lib/dam/helpers/isFolder.d.ts.map +1 -1
- package/lib/dam/mediaAlternatives/MediaAlternativeForm.d.ts +1 -1
- package/lib/dam/mediaAlternatives/MediaAlternativeForm.d.ts.map +1 -1
- package/lib/dam/mediaAlternatives/MediaAlternativesGrid.d.ts +1 -1
- package/lib/dam/mediaAlternatives/MediaAlternativesGrid.d.ts.map +1 -1
- package/lib/dam/mediaAlternatives/MediaAlternativesGrid.js +3 -1
- package/lib/dashboard/DashboardHeader.d.ts +1 -1
- package/lib/dashboard/DashboardHeader.d.ts.map +1 -1
- package/lib/dashboard/DashboardHeader.js +2 -2
- package/lib/dashboard/__stories__/DateTime.stories.js +7 -0
- package/lib/dashboard/widgets/DashboardWidgetRoot.d.ts +1 -1
- package/lib/dashboard/widgets/DashboardWidgetRoot.d.ts.map +1 -1
- package/lib/dashboard/widgets/DashboardWidgetRoot.js +1 -1
- package/lib/dependencies/DependenciesList.d.ts +1 -1
- package/lib/dependencies/DependenciesList.d.ts.map +1 -1
- package/lib/dependencies/DependenciesList.js +3 -1
- package/lib/dependencies/DependentsList.d.ts +1 -1
- package/lib/dependencies/DependentsList.d.ts.map +1 -1
- package/lib/dependencies/DependentsList.js +3 -1
- package/lib/dependencies/createDependencyMethods.d.ts +3 -3
- package/lib/dependencies/createDependencyMethods.d.ts.map +1 -1
- package/lib/dependencies/createDocumentDependencyMethods.d.ts +3 -3
- package/lib/dependencies/createDocumentDependencyMethods.d.ts.map +1 -1
- package/lib/dependencies/dependenciesConfig.d.ts +1 -1
- package/lib/dependencies/dependenciesConfig.d.ts.map +1 -1
- package/lib/dependencies/getDisplayNameString.d.ts.map +1 -1
- package/lib/dependencies/getDisplayNameString.js +3 -1
- package/lib/dependencies/types.d.ts +2 -2
- package/lib/dependencies/types.d.ts.map +1 -1
- package/lib/documents/createDocumentRootBlocksMethods.d.ts +2 -2
- package/lib/documents/createDocumentRootBlocksMethods.d.ts.map +1 -1
- package/lib/documents/types.d.ts +10 -6
- package/lib/documents/types.d.ts.map +1 -1
- package/lib/form/file/FileField.d.ts +17 -14
- package/lib/form/file/FileField.d.ts.map +1 -1
- package/lib/form/file/FileField.gql.d.ts +2 -0
- package/lib/form/file/FileField.gql.d.ts.map +1 -1
- package/lib/form/file/FileField.gql.generated.d.ts +40 -0
- package/lib/form/file/FileField.gql.generated.d.ts.map +1 -1
- package/lib/form/file/FileField.gql.generated.js +2 -1
- package/lib/form/file/FileField.gql.js +6 -3
- package/lib/form/file/FileField.js +172 -86
- package/lib/form/file/FileFieldMenu.d.ts +17 -0
- package/lib/form/file/FileFieldMenu.d.ts.map +1 -0
- package/lib/form/file/FileFieldMenu.js +91 -0
- package/lib/form/file/FileFieldRow.d.ts +12 -0
- package/lib/form/file/FileFieldRow.d.ts.map +1 -0
- package/lib/form/file/FileFieldRow.js +96 -0
- package/lib/form/file/FileUploadField.d.ts +1 -1
- package/lib/form/file/FileUploadField.d.ts.map +1 -1
- package/lib/form/file/FinalFormFileUpload.d.ts +2 -2
- package/lib/form/file/FinalFormFileUpload.d.ts.map +1 -1
- package/lib/form/file/chooseFile/BaseChooseDamFileDialog.d.ts +20 -0
- package/lib/form/file/chooseFile/BaseChooseDamFileDialog.d.ts.map +1 -0
- package/lib/form/file/chooseFile/BaseChooseDamFileDialog.js +106 -0
- package/lib/form/file/chooseFile/ChooseDamFileDialog.d.ts +10 -0
- package/lib/form/file/chooseFile/ChooseDamFileDialog.d.ts.map +1 -0
- package/lib/form/file/chooseFile/ChooseDamFileDialog.js +63 -0
- package/lib/form/file/chooseFile/ChooseDamFilesDialog.d.ts +9 -0
- package/lib/form/file/chooseFile/ChooseDamFilesDialog.d.ts.map +1 -0
- package/lib/form/file/chooseFile/ChooseDamFilesDialog.js +117 -0
- package/lib/form/file/upload.d.ts +1 -1
- package/lib/form/file/upload.d.ts.map +1 -1
- package/lib/form/queryUpdatedAt.d.ts.map +1 -1
- package/lib/form/useFormSaveConflict.d.ts +2 -2
- package/lib/form/useFormSaveConflict.d.ts.map +1 -1
- package/lib/graphql.generated.d.ts +19 -14
- package/lib/graphql.generated.d.ts.map +1 -1
- package/lib/index.d.ts +12 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -1
- package/lib/pages/createEditPageNode.d.ts +2 -2
- package/lib/pages/createEditPageNode.d.ts.map +1 -1
- package/lib/pages/createEditPageNode.js +1 -12
- package/lib/pages/createUsePage.d.ts +3 -2
- package/lib/pages/createUsePage.d.ts.map +1 -1
- package/lib/pages/createUsePage.js +135 -6
- package/lib/pages/pageSearch/PageSearch.d.ts +1 -1
- package/lib/pages/pageSearch/PageSearch.d.ts.map +1 -1
- package/lib/pages/pageSearch/usePageSearch.d.ts +3 -3
- package/lib/pages/pageSearch/usePageSearch.d.ts.map +1 -1
- package/lib/pages/pageTree/CopyPasteMenuItem.d.ts +1 -1
- package/lib/pages/pageTree/CopyPasteMenuItem.d.ts.map +1 -1
- package/lib/pages/pageTree/MovePageMenuItem.d.ts +1 -1
- package/lib/pages/pageTree/MovePageMenuItem.d.ts.map +1 -1
- package/lib/pages/pageTree/PageActions.d.ts +1 -1
- package/lib/pages/pageTree/PageActions.d.ts.map +1 -1
- package/lib/pages/pageTree/PageActions.js +24 -4
- package/lib/pages/pageTree/PageDeleteDialog.d.ts +1 -1
- package/lib/pages/pageTree/PageDeleteDialog.d.ts.map +1 -1
- package/lib/pages/pageTree/PageInfo.d.ts +2 -2
- package/lib/pages/pageTree/PageInfo.d.ts.map +1 -1
- package/lib/pages/pageTree/PageInfo.js +3 -3
- package/lib/pages/pageTree/PageLabel.d.ts +2 -2
- package/lib/pages/pageTree/PageLabel.d.ts.map +1 -1
- package/lib/pages/pageTree/PageLabel.js +5 -5
- package/lib/pages/pageTree/PageTree.d.ts +1 -1
- package/lib/pages/pageTree/PageTree.d.ts.map +1 -1
- package/lib/pages/pageTree/PageTree.js +2 -2
- package/lib/pages/pageTree/PageTreeContext.d.ts +4 -4
- package/lib/pages/pageTree/PageTreeContext.d.ts.map +1 -1
- package/lib/pages/pageTree/PageTreeRow.d.ts +3 -3
- package/lib/pages/pageTree/PageTreeRow.d.ts.map +1 -1
- package/lib/pages/pageTree/PageTreeService.d.ts +2 -2
- package/lib/pages/pageTree/PageTreeService.d.ts.map +1 -1
- package/lib/pages/pageTree/PageTypeIcon.d.ts +2 -2
- package/lib/pages/pageTree/PageTypeIcon.d.ts.map +1 -1
- package/lib/pages/pageTree/PageVisibility.d.ts +1 -1
- package/lib/pages/pageTree/PageVisibility.d.ts.map +1 -1
- package/lib/pages/pageTree/PageVisibilityIcon.d.ts +1 -1
- package/lib/pages/pageTree/PageVisibilityIcon.d.ts.map +1 -1
- package/lib/pages/pageTree/common/PageTreeTableRow.d.ts +1 -1
- package/lib/pages/pageTree/common/PageTreeTableRow.d.ts.map +1 -1
- package/lib/pages/pageTree/common/PageTreeTableRow.js +2 -2
- package/lib/pages/pageTree/findAvailableSlug.d.ts +11 -0
- package/lib/pages/pageTree/findAvailableSlug.d.ts.map +1 -0
- package/lib/pages/pageTree/findAvailableSlug.generated.d.ts +16 -0
- package/lib/pages/pageTree/findAvailableSlug.generated.d.ts.map +1 -0
- package/lib/pages/pageTree/findAvailableSlug.generated.js +5 -0
- package/lib/pages/pageTree/findAvailableSlug.js +62 -0
- package/lib/pages/pageTree/transformToSlug.d.ts +2 -0
- package/lib/pages/pageTree/transformToSlug.d.ts.map +1 -0
- package/lib/pages/pageTree/transformToSlug.js +12 -0
- package/lib/pages/pageTree/useCopyPastePages/sendPages.d.ts +4 -4
- package/lib/pages/pageTree/useCopyPastePages/sendPages.d.ts.map +1 -1
- package/lib/pages/pageTree/useCopyPastePages/sendPages.generated.d.ts +0 -10
- package/lib/pages/pageTree/useCopyPastePages/sendPages.generated.d.ts.map +1 -1
- package/lib/pages/pageTree/useCopyPastePages/sendPages.generated.js +0 -1
- package/lib/pages/pageTree/useCopyPastePages/sendPages.js +19 -40
- package/lib/pages/pageTree/useCopyPastePages.d.ts +3 -3
- package/lib/pages/pageTree/useCopyPastePages.d.ts.map +1 -1
- package/lib/pages/pageTree/useCopyPastePages.js +1 -1
- package/lib/pages/pageTree/useDndWindowScroll/useDndWindowScroll.d.ts +1 -1
- package/lib/pages/pageTree/useDndWindowScroll/useDndWindowScroll.d.ts.map +1 -1
- package/lib/pages/pageTree/usePageTree.d.ts +2 -2
- package/lib/pages/pageTree/usePageTree.d.ts.map +1 -1
- package/lib/pages/pageTree/{useCopyPastePages/ProgressDialog.d.ts → useProgressDialog.d.ts} +1 -1
- package/lib/pages/pageTree/useProgressDialog.d.ts.map +1 -0
- package/lib/pages/pageTree/useTranslatePagesAction.d.ts +16 -0
- package/lib/pages/pageTree/useTranslatePagesAction.d.ts.map +1 -0
- package/lib/pages/pageTree/useTranslatePagesAction.generated.d.ts +20 -0
- package/lib/pages/pageTree/useTranslatePagesAction.generated.d.ts.map +1 -0
- package/lib/pages/pageTree/useTranslatePagesAction.generated.js +5 -0
- package/lib/pages/pageTree/useTranslatePagesAction.js +339 -0
- package/lib/pages/pageTreeConfig.d.ts +3 -3
- package/lib/pages/pageTreeConfig.d.ts.map +1 -1
- package/lib/pages/pageTreeSelect/FinalFormPageTreeSelect.d.ts +2 -2
- package/lib/pages/pageTreeSelect/FinalFormPageTreeSelect.d.ts.map +1 -1
- package/lib/pages/pageTreeSelect/PageTreeSelectDialog.d.ts +2 -2
- package/lib/pages/pageTreeSelect/PageTreeSelectDialog.d.ts.map +1 -1
- package/lib/pages/pageTreeSelect/PageTreeSelectDialog.js +5 -5
- package/lib/pages/pagesPage/ConfirmPageActionDialog.d.ts +1 -1
- package/lib/pages/pagesPage/ConfirmPageActionDialog.d.ts.map +1 -1
- package/lib/pages/pagesPage/PagesPage.d.ts +2 -2
- package/lib/pages/pagesPage/PagesPage.d.ts.map +1 -1
- package/lib/pages/pagesPage/PagesPageActionToolbar.d.ts +1 -1
- package/lib/pages/pagesPage/PagesPageActionToolbar.d.ts.map +1 -1
- package/lib/pages/pagesPage/PagesPageActionToolbar.js +29 -2
- package/lib/pages/pagesPage/PagesPageActionToolbar.sc.d.ts +2 -2
- package/lib/pages/pagesPage/PagesPageActionToolbarBatchUpdateHelper.d.ts +3 -3
- package/lib/pages/pagesPage/PagesPageActionToolbarBatchUpdateHelper.d.ts.map +1 -1
- package/lib/pages/pagesPage/createPagesQuery.d.ts +1 -1
- package/lib/pages/pagesPage/createPagesQuery.d.ts.map +1 -1
- package/lib/pages/useSaveConflictQuery.d.ts.map +1 -1
- package/lib/preview/block/BlockPreview.d.ts +1 -1
- package/lib/preview/block/BlockPreview.d.ts.map +1 -1
- package/lib/preview/block/BlockPreview.js +6 -4
- package/lib/preview/block/BlockPreviewWithTabs.d.ts +2 -2
- package/lib/preview/block/BlockPreviewWithTabs.d.ts.map +1 -1
- package/lib/preview/block/SplitPreview.d.ts +1 -1
- package/lib/preview/block/SplitPreview.d.ts.map +1 -1
- package/lib/preview/block/useBlockPreview.d.ts +1 -1
- package/lib/preview/block/useBlockPreview.d.ts.map +1 -1
- package/lib/preview/common/DeviceToggle.js +1 -1
- package/lib/preview/site/OpenLinkDialog.d.ts +1 -1
- package/lib/preview/site/OpenLinkDialog.d.ts.map +1 -1
- package/lib/preview/site/OpenLinkDialog.js +1 -1
- package/lib/preview/site/SitePreview.d.ts.map +1 -1
- package/lib/preview/site/SitePreview.js +9 -3
- package/lib/preview/site/iframebridge/SitePreviewIFrameMessage.d.ts +1 -1
- package/lib/preview/site/iframebridge/SitePreviewIFrameMessage.d.ts.map +1 -1
- package/lib/redirects/RedirectActiveness.d.ts +1 -1
- package/lib/redirects/RedirectActiveness.d.ts.map +1 -1
- package/lib/redirects/RedirectForm.d.ts +3 -3
- package/lib/redirects/RedirectForm.d.ts.map +1 -1
- package/lib/redirects/RedirectForm.gql.generated.d.ts +4 -4
- package/lib/redirects/RedirectForm.gql.generated.d.ts.map +1 -1
- package/lib/redirects/RedirectsGrid.d.ts +1 -1
- package/lib/redirects/RedirectsGrid.d.ts.map +1 -1
- package/lib/redirects/RedirectsGrid.gql.generated.d.ts +2 -2
- package/lib/redirects/RedirectsGrid.gql.generated.d.ts.map +1 -1
- package/lib/redirects/RedirectsGrid.js +2 -2
- package/lib/redirects/createRedirectsPage.d.ts +2 -2
- package/lib/redirects/createRedirectsPage.d.ts.map +1 -1
- package/lib/redirects/submitMutation.d.ts +3 -3
- package/lib/redirects/submitMutation.d.ts.map +1 -1
- package/lib/siteConfigs/siteConfigsConfig.d.ts +1 -1
- package/lib/siteConfigs/siteConfigsConfig.d.ts.map +1 -1
- package/lib/siteConfigs/useSiteConfig.d.ts +2 -2
- package/lib/siteConfigs/useSiteConfig.d.ts.map +1 -1
- package/lib/siteConfigs/useSiteConfigs.d.ts +1 -1
- package/lib/siteConfigs/useSiteConfigs.d.ts.map +1 -1
- package/lib/testing/test-utils.d.ts +1 -1
- package/lib/testing/test-utils.d.ts.map +1 -1
- package/lib/translation/AzureAiTranslatorProvider.d.ts +2 -2
- package/lib/translation/AzureAiTranslatorProvider.d.ts.map +1 -1
- package/lib/translation/AzureAiTranslatorProvider.generated.d.ts +8 -0
- package/lib/translation/AzureAiTranslatorProvider.generated.d.ts.map +1 -1
- package/lib/translation/AzureAiTranslatorProvider.generated.js +2 -1
- package/lib/translation/AzureAiTranslatorProvider.js +31 -2
- package/lib/translation/TranslatableInterface.d.ts +4 -0
- package/lib/translation/TranslatableInterface.d.ts.map +1 -0
- package/lib/translation/TranslatableInterface.js +1 -0
- package/lib/translation/TranslateContentMenuItem.d.ts +7 -0
- package/lib/translation/TranslateContentMenuItem.d.ts.map +1 -0
- package/lib/translation/TranslateContentMenuItem.js +99 -0
- package/lib/translation/createDocumentTranslationMethods.d.ts +4 -0
- package/lib/translation/createDocumentTranslationMethods.d.ts.map +1 -0
- package/lib/translation/createDocumentTranslationMethods.js +62 -0
- package/lib/userPermissions/UserGrid.d.ts +1 -1
- package/lib/userPermissions/UserGrid.d.ts.map +1 -1
- package/lib/userPermissions/UserGrid.js +4 -2
- package/lib/userPermissions/hooks/currentUser.d.ts +1 -1
- package/lib/userPermissions/hooks/currentUser.d.ts.map +1 -1
- package/lib/userPermissions/hooks/currentUser.js +14 -6
- package/lib/userPermissions/user/ImpersonationButtons.d.ts.map +1 -1
- package/lib/userPermissions/user/ImpersonationButtons.js +3 -1
- package/lib/userPermissions/user/UserPageToolbar.js +2 -2
- package/lib/userPermissions/user/basicData/UserBasicData.js +1 -1
- package/lib/userPermissions/user/permissions/ContentScopeGrid.d.ts +1 -1
- package/lib/userPermissions/user/permissions/ContentScopeGrid.d.ts.map +1 -1
- package/lib/userPermissions/user/permissions/ContentScopeGrid.js +3 -1
- package/lib/userPermissions/user/permissions/PermissionGrid.d.ts.map +1 -1
- package/lib/userPermissions/user/permissions/PermissionGrid.js +3 -1
- package/lib/userPermissions/user/permissions/selectScopesDialogContent/SelectScopesDialogContent.d.ts +2 -2
- package/lib/userPermissions/user/permissions/selectScopesDialogContent/SelectScopesDialogContent.d.ts.map +1 -1
- package/lib/userPermissions/user/permissions/selectScopesDialogContent/SelectScopesDialogContent.js +3 -1
- package/lib/validation/validateJson.d.ts +2 -0
- package/lib/validation/validateJson.d.ts.map +1 -0
- package/lib/validation/validateJson.js +15 -0
- package/lib/warnings/WarningActions.d.ts.map +1 -1
- package/lib/warnings/WarningActions.js +3 -1
- package/lib/warnings/WarningMessage.d.ts +1 -1
- package/lib/warnings/WarningMessage.d.ts.map +1 -1
- package/lib/warnings/WarningSeverity.d.ts +1 -1
- package/lib/warnings/WarningSeverity.d.ts.map +1 -1
- package/lib/warnings/WarningsGrid.d.ts.map +1 -1
- package/lib/warnings/WarningsGrid.js +3 -1
- package/lib/warnings/warningsConfig.d.ts +1 -1
- package/lib/warnings/warningsConfig.d.ts.map +1 -1
- package/package.json +40 -23
- package/lib/dam/DataGrid/filter/DamSortPopover.d.ts +0 -8
- package/lib/dam/DataGrid/filter/DamSortPopover.d.ts.map +0 -1
- package/lib/dam/DataGrid/filter/DamSortPopover.js +0 -124
- package/lib/dam/DataGrid/filter/DamSortPopover.sc.d.ts +0 -20
- package/lib/dam/DataGrid/filter/DamSortPopover.sc.d.ts.map +0 -1
- package/lib/dam/DataGrid/filter/DamSortPopover.sc.js +0 -71
- package/lib/form/file/chooseFile/ChooseFileDialog.d.ts +0 -10
- package/lib/form/file/chooseFile/ChooseFileDialog.d.ts.map +0 -1
- package/lib/form/file/chooseFile/ChooseFileDialog.js +0 -115
- package/lib/pages/pageTree/useCopyPastePages/ProgressDialog.d.ts.map +0 -1
- /package/lib/pages/pageTree/{useCopyPastePages/ProgressDialog.js → useProgressDialog.js} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { Dialog, StackLink, SubRoute } from "@comet/admin";
|
|
8
|
+
import { styled } from "@mui/material/styles";
|
|
9
|
+
import { MemoryRouter } from "react-router";
|
|
10
|
+
import { useDamConfig } from "../../../dam/config/damConfig";
|
|
11
|
+
import { DamScopeProvider } from "../../../dam/config/DamScopeProvider";
|
|
12
|
+
import { useDamScope } from "../../../dam/config/useDamScope";
|
|
13
|
+
import { DamTable } from "../../../dam/DamTable";
|
|
14
|
+
import DamItemLabel from "../../../dam/DataGrid/label/DamItemLabel";
|
|
15
|
+
import { isFile } from "../../../dam/helpers/isFile";
|
|
16
|
+
import { RedirectToPersistedDamLocation } from "./RedirectToPersistedDamLocation";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
var FolderStackLink = /*#__PURE__*/styled(StackLink, process.env.NODE_ENV === "production" ? {
|
|
19
|
+
target: "ehecsb00"
|
|
20
|
+
} : {
|
|
21
|
+
target: "ehecsb00",
|
|
22
|
+
label: "FolderStackLink"
|
|
23
|
+
})("width:100%;height:100%;text-decoration:none;color:", function (_ref) {
|
|
24
|
+
var theme = _ref.theme;
|
|
25
|
+
return theme.palette.grey[900];
|
|
26
|
+
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9mb3JtL2ZpbGUvY2hvb3NlRmlsZS9CYXNlQ2hvb3NlRGFtRmlsZURpYWxvZy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZXlDIiwiZmlsZSI6Ii4uLy4uLy4uLy4uL3NyYy9mb3JtL2ZpbGUvY2hvb3NlRmlsZS9CYXNlQ2hvb3NlRGFtRm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biAgICAgICAgICAgICAgICAgICAgUGFwZXJQcm9wczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgc3g6IHsgaGVpZ2h0OiBcIjEwMCVcIiB9LCAvLyBUaGUgZml4ZWQgaGVpZ2h0IHByZXZlbnRzIHRoZSBoZWlnaHQgb2YgdGhlIGRpYWxvZyBmcm9tIGNoYW5naW5nIHdoZW4gbmF2aWdhdGluZyBiZXR3ZWVuIGZvbGRlcnMgd2hpY2ggbWF5IGhhdmUgZGlmZmVyZW50IGhlaWdodHMgZGVwZW5kaW5nIG9uIHRoZSBudW1iZXIgb2YgaXRlbXMgaW4gdGhlIGZvbGRlclxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9fVxuICAgICAgICA+XG4gICAgICAgICAgICA8RGFtU2NvcGVQcm92aWRlcj5cbiAgICAgICAgICAgICAgICA8TWVtb3J5Um91dGVyPlxuICAgICAgICAgICAgICAgICAgICA8U3ViUm91dGUgcGF0aD1cIlwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPFJlZGlyZWN0VG9QZXJzaXN0ZWREYW1Mb2NhdGlvbiBzdGF0ZUtleT17c2NvcGVkU3RhdGVLZXl9IC8+XG4gICAgICAgICAgICAgICAgICAgICAgICA8RGFtVGFibGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZW5kZXJEYW1MYWJlbD17KHJvdywgb3B0aW9ucykgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXNGaWxlKHJvdykpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiByZW5kZXJGaWxlTGFiZWwocm93LCB7IC4uLm9wdGlvbnMsIHNob3dMaWNlbnNlV2FybmluZ3M6IGVuYWJsZUxpY2Vuc2VGZWF0dXJlIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Rm9sZGVyU3RhY2tMaW5rXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFnZU5hbWU9XCJmb2xkZXJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBheWxvYWQ9e3Jvdy5pZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuZmlsdGVyQXBpLmZvcm1BcGkuY2hhbmdlKFwic2VhcmNoVGV4dFwiLCB1bmRlZmluZWQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPERhbUl0ZW1MYWJlbCBhc3NldD17cm93fSBtYXRjaGVzPXtvcHRpb25zLm1hdGNoZXN9IC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L0ZvbGRlclN0YWNrTGluaz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsbG93ZWRNaW1ldHlwZXM9e2FsbG93ZWRNaW1ldHlwZXN9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGlkZUNvbnRleHRNZW51PXt0cnVlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpZGVNdWx0aXNlbGVjdD17aGlkZU11bHRpc2VsZWN0fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhpZGVBcmNoaXZlRmlsdGVyPXt0cnVlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvb2xiYXJPcHRpb25zPXt7IGhpZGVTZWxlY3RpdmVBY3Rpb25zOiB0cnVlIH19XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlzYWJsZUZvbGRlclNlbGVjdGlvbj17ZGlzYWJsZUZvbGRlclNlbGVjdGlvbn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBrZWVwTm9uRXhpc3RlbnRSb3dzU2VsZWN0ZWQ9e2tlZXBOb25FeGlzdGVudFJvd3NTZWxlY3RlZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbml0aWFsU2VsZWN0aW9uPXtpbml0aWFsRmlsZUlkcyA/IG5ldyBNYXAoaW5pdGlhbEZpbGVJZHMubWFwKChpZCkgPT4gW2lkLCBcImZpbGVcIl0pKSA6IHVuZGVmaW5lZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvblNlbGVjdGlvbkNoYW5nZT17b25GaWxlSWRzQ2hhbmdlID8gKG1hcCkgPT4gb25GaWxlSWRzQ2hhbmdlKEFycmF5LmZyb20obWFwLmtleXMoKSkpIDogdW5kZWZpbmVkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFkZGl0aW9uYWxUb29sYmFySXRlbXM9e2FkZGl0aW9uYWxUb29sYmFySXRlbXN9XG4gICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICA8L1N1YlJvdXRlPlxuICAgICAgICAgICAgICAgIDwvTWVtb3J5Um91dGVyPlxuICAgICAgICAgICAgPC9EYW1TY29wZVByb3ZpZGVyPlxuICAgICAgICAgICAge2FjdGlvbnN9XG4gICAgICAgIDwvRGlhbG9nPlxuICAgICk7XG59O1xuIl19 */"));
|
|
27
|
+
export var BaseChooseDamFileDialog = function BaseChooseDamFileDialog(_ref2) {
|
|
28
|
+
var open = _ref2.open,
|
|
29
|
+
onClose = _ref2.onClose,
|
|
30
|
+
title = _ref2.title,
|
|
31
|
+
stateKey = _ref2.stateKey,
|
|
32
|
+
allowedMimetypes = _ref2.allowedMimetypes,
|
|
33
|
+
renderFileLabel = _ref2.renderFileLabel,
|
|
34
|
+
hideMultiselect = _ref2.hideMultiselect,
|
|
35
|
+
disableFolderSelection = _ref2.disableFolderSelection,
|
|
36
|
+
keepNonExistentRowsSelected = _ref2.keepNonExistentRowsSelected,
|
|
37
|
+
initialFileIds = _ref2.initialFileIds,
|
|
38
|
+
onFileIdsChange = _ref2.onFileIdsChange,
|
|
39
|
+
actions = _ref2.actions;
|
|
40
|
+
var _useDamConfig = useDamConfig(),
|
|
41
|
+
enableLicenseFeature = _useDamConfig.enableLicenseFeature,
|
|
42
|
+
additionalToolbarItems = _useDamConfig.additionalToolbarItems;
|
|
43
|
+
var scope = useDamScope();
|
|
44
|
+
var scopedStateKey = Object.keys(scope).length > 0 ? "".concat(Object.values(scope).join("-"), "-").concat(stateKey) : stateKey;
|
|
45
|
+
return /*#__PURE__*/_jsxs(Dialog, {
|
|
46
|
+
open: open,
|
|
47
|
+
onClose: onClose,
|
|
48
|
+
fullWidth: true,
|
|
49
|
+
maxWidth: "xl",
|
|
50
|
+
title: title,
|
|
51
|
+
slotProps: {
|
|
52
|
+
root: {
|
|
53
|
+
PaperProps: {
|
|
54
|
+
sx: {
|
|
55
|
+
height: "100%"
|
|
56
|
+
} // The fixed height prevents the height of the dialog from changing when navigating between folders which may have different heights depending on the number of items in the folder
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
children: [/*#__PURE__*/_jsx(DamScopeProvider, {
|
|
61
|
+
children: /*#__PURE__*/_jsx(MemoryRouter, {
|
|
62
|
+
children: /*#__PURE__*/_jsxs(SubRoute, {
|
|
63
|
+
path: "",
|
|
64
|
+
children: [/*#__PURE__*/_jsx(RedirectToPersistedDamLocation, {
|
|
65
|
+
stateKey: scopedStateKey
|
|
66
|
+
}), /*#__PURE__*/_jsx(DamTable, {
|
|
67
|
+
renderDamLabel: function renderDamLabel(row, options) {
|
|
68
|
+
if (isFile(row)) {
|
|
69
|
+
return renderFileLabel(row, _objectSpread(_objectSpread({}, options), {}, {
|
|
70
|
+
showLicenseWarnings: enableLicenseFeature
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
return /*#__PURE__*/_jsx(FolderStackLink, {
|
|
74
|
+
pageName: "folder",
|
|
75
|
+
payload: row.id,
|
|
76
|
+
onClick: function onClick() {
|
|
77
|
+
options.filterApi.formApi.change("searchText", undefined);
|
|
78
|
+
},
|
|
79
|
+
children: /*#__PURE__*/_jsx(DamItemLabel, {
|
|
80
|
+
asset: row,
|
|
81
|
+
matches: options.matches
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
allowedMimetypes: allowedMimetypes,
|
|
86
|
+
hideContextMenu: true,
|
|
87
|
+
hideMultiselect: hideMultiselect,
|
|
88
|
+
hideArchiveFilter: true,
|
|
89
|
+
toolbarOptions: {
|
|
90
|
+
hideSelectiveActions: true
|
|
91
|
+
},
|
|
92
|
+
disableFolderSelection: disableFolderSelection,
|
|
93
|
+
keepNonExistentRowsSelected: keepNonExistentRowsSelected,
|
|
94
|
+
initialSelection: initialFileIds ? new Map(initialFileIds.map(function (id) {
|
|
95
|
+
return [id, "file"];
|
|
96
|
+
})) : undefined,
|
|
97
|
+
onSelectionChange: onFileIdsChange ? function (map) {
|
|
98
|
+
return onFileIdsChange(Array.from(map.keys()));
|
|
99
|
+
} : undefined,
|
|
100
|
+
additionalToolbarItems: additionalToolbarItems
|
|
101
|
+
})]
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
}), actions]
|
|
105
|
+
});
|
|
106
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SyntheticEvent } from "react";
|
|
2
|
+
interface ChooseFileDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: (event: SyntheticEvent, reason: "backdropClick" | "escapeKeyDown") => void;
|
|
5
|
+
onChooseFile: (fileId: string) => void;
|
|
6
|
+
allowedMimetypes?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const ChooseDamFileDialog: ({ open, onClose, onChooseFile, allowedMimetypes }: ChooseFileDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ChooseDamFileDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChooseDamFileDialog.d.ts","sourceRoot":"","sources":["../../../../src/form/file/chooseFile/ChooseDamFileDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAkB5C,UAAU,qBAAqB;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,GAAG,eAAe,KAAK,IAAI,CAAC;IACpF,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAaD,eAAO,MAAM,mBAAmB,GAAI,mDAAmD,qBAAqB,4CAY3G,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { Button } from "@comet/admin";
|
|
8
|
+
import { styled } from "@mui/material/styles";
|
|
9
|
+
import { FormattedMessage } from "react-intl";
|
|
10
|
+
import DamItemLabel from "../../../dam/DataGrid/label/DamItemLabel";
|
|
11
|
+
import { BaseChooseDamFileDialog } from "./BaseChooseDamFileDialog";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var TableRowButton = /*#__PURE__*/styled(Button, process.env.NODE_ENV === "production" ? {
|
|
14
|
+
target: "e147a18d0"
|
|
15
|
+
} : {
|
|
16
|
+
target: "e147a18d0",
|
|
17
|
+
label: "TableRowButton"
|
|
18
|
+
})("padding:0;justify-content:left;color:", function (_ref) {
|
|
19
|
+
var theme = _ref.theme;
|
|
20
|
+
return theme.palette.grey[600];
|
|
21
|
+
}, ";&:hover{background-color:transparent;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9mb3JtL2ZpbGUvY2hvb3NlRmlsZS9DaG9vc2VEYW1GaWxlRGlhbG9nLnRze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Q2xvc2UsIG9uQ2hvb3NlRmlsZSwgYWxsb3dlZE1pbWV0eXBlcyB9OiBDaG9vc2VGaWxlRGlhbG9nUHJvcHMpID0+IHtcbiAgICByZXR1cm4gKFxuICAgICAgICA8QmFzZUNob29zZURhbUZpbGVEaWFsb2dcbiAgICAgICAgICAgIG9wZW49e29wZW59XG4gICAgICAgICAgICBvbkNsb3NlPXtvbkNsb3NlfVxuICAgICAgICAgICAgdGl0bGU9ezxGb3JtYXR0ZWRNZXNzYWdlIGlkPVwiY29tZXQuZm9ybS5maWxlLnNlbGVjdEZpbGVcIiBkZWZhdWx0TWVzc2FnZT1cIlNlbGVjdCBmaWxlIGZyb20gREFNXCIgLz59XG4gICAgICAgICAgICBzdGF0ZUtleT1cImNob29zZS1maWxlLWRhbS1sb2NhdGlvblwiXG4gICAgICAgICAgICBhbGxvd2VkTWltZXR5cGVzPXthbGxvd2VkTWltZXR5cGVzfVxuICAgICAgICAgICAgcmVuZGVyRmlsZUxhYmVsPXsoZmlsZSwgb3B0aW9ucykgPT4gPEZpbGVMYWJlbCBmaWxlPXtmaWxlfSBvbkNob29zZUZpbGU9e29uQ2hvb3NlRmlsZX0gey4uLm9wdGlvbnN9IC8+fVxuICAgICAgICAgICAgaGlkZU11bHRpc2VsZWN0PXt0cnVlfVxuICAgICAgICAvPlxuICAgICk7XG59O1xuIl19 */"));
|
|
22
|
+
var FileLabel = function FileLabel(_ref2) {
|
|
23
|
+
var file = _ref2.file,
|
|
24
|
+
onChooseFile = _ref2.onChooseFile,
|
|
25
|
+
matches = _ref2.matches,
|
|
26
|
+
showLicenseWarnings = _ref2.showLicenseWarnings;
|
|
27
|
+
return /*#__PURE__*/_jsx(TableRowButton, {
|
|
28
|
+
disableRipple: true,
|
|
29
|
+
variant: "textDark",
|
|
30
|
+
onClick: function onClick() {
|
|
31
|
+
return onChooseFile(file.id);
|
|
32
|
+
},
|
|
33
|
+
fullWidth: true,
|
|
34
|
+
children: /*#__PURE__*/_jsx(DamItemLabel, {
|
|
35
|
+
asset: file,
|
|
36
|
+
matches: matches,
|
|
37
|
+
showLicenseWarnings: showLicenseWarnings
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
export var ChooseDamFileDialog = function ChooseDamFileDialog(_ref3) {
|
|
42
|
+
var open = _ref3.open,
|
|
43
|
+
onClose = _ref3.onClose,
|
|
44
|
+
onChooseFile = _ref3.onChooseFile,
|
|
45
|
+
allowedMimetypes = _ref3.allowedMimetypes;
|
|
46
|
+
return /*#__PURE__*/_jsx(BaseChooseDamFileDialog, {
|
|
47
|
+
open: open,
|
|
48
|
+
onClose: onClose,
|
|
49
|
+
title: /*#__PURE__*/_jsx(FormattedMessage, {
|
|
50
|
+
id: "comet.form.file.selectFile",
|
|
51
|
+
defaultMessage: "Select file from DAM"
|
|
52
|
+
}),
|
|
53
|
+
stateKey: "choose-file-dam-location",
|
|
54
|
+
allowedMimetypes: allowedMimetypes,
|
|
55
|
+
renderFileLabel: function renderFileLabel(file, options) {
|
|
56
|
+
return /*#__PURE__*/_jsx(FileLabel, _objectSpread({
|
|
57
|
+
file: file,
|
|
58
|
+
onChooseFile: onChooseFile
|
|
59
|
+
}, options));
|
|
60
|
+
},
|
|
61
|
+
hideMultiselect: true
|
|
62
|
+
});
|
|
63
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ChooseDamFilesDialogProps {
|
|
2
|
+
onClose: () => void;
|
|
3
|
+
onConfirm: (fileIds: string[]) => void | Promise<void>;
|
|
4
|
+
initialFileIds: string[];
|
|
5
|
+
allowedMimetypes?: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare const ChooseDamFilesDialog: ({ onClose, onConfirm, initialFileIds, allowedMimetypes }: ChooseDamFilesDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ChooseDamFilesDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChooseDamFilesDialog.d.ts","sourceRoot":"","sources":["../../../../src/form/file/chooseFile/ChooseDamFilesDialog.tsx"],"names":[],"mappings":"AAUA,UAAU,yBAAyB;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAMD,eAAO,MAAM,oBAAoB,GAAI,0DAA0D,yBAAyB,4CAiDvH,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
8
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
9
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
10
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
11
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
12
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
|
+
import { Button } from "@comet/admin";
|
|
18
|
+
import { DialogActions } from "@mui/material";
|
|
19
|
+
import { useState } from "react";
|
|
20
|
+
import { FormattedMessage } from "react-intl";
|
|
21
|
+
import DamItemLabel from "../../../dam/DataGrid/label/DamItemLabel";
|
|
22
|
+
import { BaseChooseDamFileDialog } from "./BaseChooseDamFileDialog";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
var FileLabel = function FileLabel(_ref) {
|
|
25
|
+
var file = _ref.file,
|
|
26
|
+
matches = _ref.matches,
|
|
27
|
+
showLicenseWarnings = _ref.showLicenseWarnings;
|
|
28
|
+
return /*#__PURE__*/_jsx(DamItemLabel, {
|
|
29
|
+
asset: file,
|
|
30
|
+
matches: matches,
|
|
31
|
+
showLicenseWarnings: showLicenseWarnings
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export var ChooseDamFilesDialog = function ChooseDamFilesDialog(_ref2) {
|
|
35
|
+
var onClose = _ref2.onClose,
|
|
36
|
+
onConfirm = _ref2.onConfirm,
|
|
37
|
+
initialFileIds = _ref2.initialFileIds,
|
|
38
|
+
allowedMimetypes = _ref2.allowedMimetypes;
|
|
39
|
+
var _useState = useState(initialFileIds),
|
|
40
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41
|
+
selectedFileIds = _useState2[0],
|
|
42
|
+
setSelectedFileIds = _useState2[1];
|
|
43
|
+
var _useState3 = useState(false),
|
|
44
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
45
|
+
isConfirming = _useState4[0],
|
|
46
|
+
setIsConfirming = _useState4[1];
|
|
47
|
+
var handleConfirm = /*#__PURE__*/function () {
|
|
48
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
49
|
+
return _regenerator().w(function (_context) {
|
|
50
|
+
while (1) switch (_context.p = _context.n) {
|
|
51
|
+
case 0:
|
|
52
|
+
setIsConfirming(true);
|
|
53
|
+
_context.p = 1;
|
|
54
|
+
_context.n = 2;
|
|
55
|
+
return onConfirm(selectedFileIds);
|
|
56
|
+
case 2:
|
|
57
|
+
_context.p = 2;
|
|
58
|
+
setIsConfirming(false);
|
|
59
|
+
return _context.f(2);
|
|
60
|
+
case 3:
|
|
61
|
+
return _context.a(2);
|
|
62
|
+
}
|
|
63
|
+
}, _callee, null, [[1,, 2, 3]]);
|
|
64
|
+
}));
|
|
65
|
+
return function handleConfirm() {
|
|
66
|
+
return _ref3.apply(this, arguments);
|
|
67
|
+
};
|
|
68
|
+
}();
|
|
69
|
+
var handleClose = function handleClose() {
|
|
70
|
+
if (isConfirming) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
onClose();
|
|
74
|
+
};
|
|
75
|
+
return /*#__PURE__*/_jsx(BaseChooseDamFileDialog, {
|
|
76
|
+
open: true,
|
|
77
|
+
onClose: handleClose,
|
|
78
|
+
title: /*#__PURE__*/_jsx(FormattedMessage, {
|
|
79
|
+
id: "comet.form.file.selectFiles",
|
|
80
|
+
defaultMessage: "Select files from DAM"
|
|
81
|
+
}),
|
|
82
|
+
stateKey: "choose-files-dam-location",
|
|
83
|
+
allowedMimetypes: allowedMimetypes,
|
|
84
|
+
renderFileLabel: function renderFileLabel(file, options) {
|
|
85
|
+
return /*#__PURE__*/_jsx(FileLabel, _objectSpread({
|
|
86
|
+
file: file
|
|
87
|
+
}, options));
|
|
88
|
+
},
|
|
89
|
+
hideMultiselect: false,
|
|
90
|
+
disableFolderSelection: true,
|
|
91
|
+
keepNonExistentRowsSelected: true,
|
|
92
|
+
initialFileIds: selectedFileIds,
|
|
93
|
+
onFileIdsChange: setSelectedFileIds,
|
|
94
|
+
actions: /*#__PURE__*/_jsxs(DialogActions, {
|
|
95
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
96
|
+
variant: "textLight",
|
|
97
|
+
onClick: handleClose,
|
|
98
|
+
disabled: isConfirming,
|
|
99
|
+
children: /*#__PURE__*/_jsx(FormattedMessage, {
|
|
100
|
+
id: "comet.generic.cancel",
|
|
101
|
+
defaultMessage: "Cancel"
|
|
102
|
+
})
|
|
103
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
104
|
+
variant: "primary",
|
|
105
|
+
onClick: handleConfirm,
|
|
106
|
+
disabled: selectedFileIds.length === 0 || isConfirming,
|
|
107
|
+
children: /*#__PURE__*/_jsx(FormattedMessage, {
|
|
108
|
+
id: "comet.form.file.applyFileSelection",
|
|
109
|
+
defaultMessage: "Select {count, plural, one {# file} other {# files}}",
|
|
110
|
+
values: {
|
|
111
|
+
count: selectedFileIds.length
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/form/file/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/form/file/upload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,UAAU,cAAc;IACpB,IAAI,EAAE,IAAI,GACN,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG;QAAE,YAAY,CAAC,EAAE;YAAE,gBAAgB,EAAE,MAAM,CAAC;YAAC,cAAc,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IAC3I,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AACD,UAAU,gBAAgB;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;KAAE,CAAC;IAChE,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,MAAM,CAAC,YAAY,EAAE,gBAAgB,EAAE,gBAAgB;;GAItE;AAED,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,gBAAgB,EAAE,gBAAgB;;GAI1F;AA0CD,UAAU,mBAAmB;IACzB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IAC1E,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE;;GA0BxH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryUpdatedAt.d.ts","sourceRoot":"","sources":["../../src/form/queryUpdatedAt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,gBAAgB,CAAC;AAExD,wBAAsB,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"queryUpdatedAt.d.ts","sourceRoot":"","sources":["../../src/form/queryUpdatedAt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,gBAAgB,CAAC;AAExD,wBAAsB,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAkB7I"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { FormApi } from "final-form";
|
|
2
|
+
import type { RefObject } from "react";
|
|
3
3
|
interface FormSaveConflictOptions<FormValues, InitialFormValues> {
|
|
4
4
|
checkConflict: () => Promise<boolean>;
|
|
5
5
|
formApiRef: RefObject<FormApi<FormValues, InitialFormValues> | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormSaveConflict.d.ts","sourceRoot":"","sources":["../../src/form/useFormSaveConflict.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useFormSaveConflict.d.ts","sourceRoot":"","sources":["../../src/form/useFormSaveConflict.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,uBAAuB,CAAC,UAAU,EAAE,iBAAiB;IAC3D,aAAa,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,SAAS,CAAC,CAAC;IAC1E,iBAAiB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,iBAAiB,EAAE,EAC/D,aAAa,EACb,UAAU,EACV,iBAAiB,GACpB,EAAE,uBAAuB,CAAC,UAAU,EAAE,iBAAiB,CAAC,6DAgBxD"}
|
|
@@ -62,6 +62,10 @@ export type GQLAutoBuildStatus = {
|
|
|
62
62
|
lastCheck: Maybe<Scalars['DateTime']['output']>;
|
|
63
63
|
nextCheck: Scalars['DateTime']['output'];
|
|
64
64
|
};
|
|
65
|
+
export type GQLAzureAiTranslationBatchInput = {
|
|
66
|
+
targetLanguage: Scalars['String']['input'];
|
|
67
|
+
texts: Array<Scalars['String']['input']>;
|
|
68
|
+
};
|
|
65
69
|
export type GQLAzureAiTranslationInput = {
|
|
66
70
|
targetLanguage: Scalars['String']['input'];
|
|
67
71
|
text: Scalars['String']['input'];
|
|
@@ -284,10 +288,13 @@ export type GQLDocumentInterface = {
|
|
|
284
288
|
};
|
|
285
289
|
export type GQLEntityInfo = {
|
|
286
290
|
__typename?: 'EntityInfo';
|
|
291
|
+
entityName: Scalars['String']['output'];
|
|
292
|
+
id: Scalars['String']['output'];
|
|
287
293
|
name: Scalars['String']['output'];
|
|
288
294
|
secondaryInformation: Maybe<Scalars['String']['output']>;
|
|
289
295
|
};
|
|
290
296
|
export type GQLFileFilterInput = {
|
|
297
|
+
ids?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
291
298
|
mimetypes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
292
299
|
searchText?: InputMaybe<Scalars['String']['input']>;
|
|
293
300
|
};
|
|
@@ -401,7 +408,6 @@ export type GQLMutation = {
|
|
|
401
408
|
generateAltText: Scalars['String']['output'];
|
|
402
409
|
generateImageTitle: Scalars['String']['output'];
|
|
403
410
|
generateSeoTags: GQLSeoTags;
|
|
404
|
-
importDamFileByDownload: GQLDamFile;
|
|
405
411
|
moveDamFiles: Array<GQLDamFile>;
|
|
406
412
|
moveDamFolders: Array<GQLDamFolder>;
|
|
407
413
|
movePageTreeNodesByNeighbour: Array<GQLPageTreeNode>;
|
|
@@ -482,11 +488,6 @@ export type GQLMutationgenerateSeoTagsArgs = {
|
|
|
482
488
|
content: Scalars['String']['input'];
|
|
483
489
|
language: Scalars['String']['input'];
|
|
484
490
|
};
|
|
485
|
-
export type GQLMutationimportDamFileByDownloadArgs = {
|
|
486
|
-
input: GQLUpdateDamFileInput;
|
|
487
|
-
scope?: GQLDamScopeInput;
|
|
488
|
-
url: Scalars['String']['input'];
|
|
489
|
-
};
|
|
490
491
|
export type GQLMutationmoveDamFilesArgs = {
|
|
491
492
|
fileIds: Array<Scalars['ID']['input']>;
|
|
492
493
|
targetFolderId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -669,7 +670,7 @@ export type GQLPaginatedWarnings = {
|
|
|
669
670
|
nodes: Array<GQLWarning>;
|
|
670
671
|
totalCount: Scalars['Int']['output'];
|
|
671
672
|
};
|
|
672
|
-
export type GQLPermission = 'blockPreview' | 'builds' | 'cronJobs' | 'dam' | 'dependencies' | 'fileUploads' | 'impersonation' | 'pageTree' | 'prelogin' | 'sitePreview' | 'translation' | 'userPermissions' | 'warnings';
|
|
673
|
+
export type GQLPermission = 'blockPreview' | 'builds' | 'cronJobs' | 'dam' | 'dependencies' | 'fileUploads' | 'fullTextSearch' | 'impersonation' | 'pageTree' | 'prelogin' | 'sitePreview' | 'translation' | 'userPermissions' | 'warnings';
|
|
673
674
|
export type GQLPermissionFilter = {
|
|
674
675
|
equal?: InputMaybe<GQLPermission>;
|
|
675
676
|
isAnyOf?: InputMaybe<Array<GQLPermission>>;
|
|
@@ -679,6 +680,7 @@ export type GQLQuery = {
|
|
|
679
680
|
__typename?: 'Query';
|
|
680
681
|
autoBuildStatus: GQLAutoBuildStatus;
|
|
681
682
|
azureAiTranslate: Scalars['String']['output'];
|
|
683
|
+
azureAiTranslateBatch: Array<Scalars['String']['output']>;
|
|
682
684
|
blockPreviewJwt: Scalars['String']['output'];
|
|
683
685
|
buildTemplates: Array<GQLBuildTemplate>;
|
|
684
686
|
builds: Array<GQLBuild>;
|
|
@@ -727,6 +729,9 @@ export type GQLQuery = {
|
|
|
727
729
|
export type GQLQueryazureAiTranslateArgs = {
|
|
728
730
|
input: GQLAzureAiTranslationInput;
|
|
729
731
|
};
|
|
732
|
+
export type GQLQueryazureAiTranslateBatchArgs = {
|
|
733
|
+
input: GQLAzureAiTranslationBatchInput;
|
|
734
|
+
};
|
|
730
735
|
export type GQLQueryblockPreviewJwtArgs = {
|
|
731
736
|
includeInvisible: Scalars['Boolean']['input'];
|
|
732
737
|
scope: Scalars['JSONObject']['input'];
|
|
@@ -865,7 +870,7 @@ export type GQLQueryredirectArgs = {
|
|
|
865
870
|
export type GQLQueryredirectBySourceArgs = {
|
|
866
871
|
scope?: GQLRedirectScopeInput;
|
|
867
872
|
source: Scalars['String']['input'];
|
|
868
|
-
sourceType:
|
|
873
|
+
sourceType: GQLRedirectSourceType;
|
|
869
874
|
};
|
|
870
875
|
export type GQLQueryredirectSourceAvailableArgs = {
|
|
871
876
|
scope?: GQLRedirectScopeInput;
|
|
@@ -927,7 +932,7 @@ export type GQLRedirect = {
|
|
|
927
932
|
generationType: GQLRedirectGenerationType;
|
|
928
933
|
id: Scalars['ID']['output'];
|
|
929
934
|
source: Scalars['String']['output'];
|
|
930
|
-
sourceType:
|
|
935
|
+
sourceType: GQLRedirectSourceType;
|
|
931
936
|
target: Scalars['JSONObject']['output'];
|
|
932
937
|
updatedAt: Scalars['DateTime']['output'];
|
|
933
938
|
};
|
|
@@ -956,7 +961,7 @@ export type GQLRedirectInput = {
|
|
|
956
961
|
comment?: InputMaybe<Scalars['String']['input']>;
|
|
957
962
|
generationType: GQLRedirectGenerationType;
|
|
958
963
|
source: Scalars['String']['input'];
|
|
959
|
-
sourceType:
|
|
964
|
+
sourceType: GQLRedirectSourceType;
|
|
960
965
|
target: Scalars['JSONObject']['input'];
|
|
961
966
|
};
|
|
962
967
|
export type GQLRedirectScopeInput = {
|
|
@@ -967,12 +972,12 @@ export type GQLRedirectSort = {
|
|
|
967
972
|
field: GQLRedirectSortField;
|
|
968
973
|
};
|
|
969
974
|
export type GQLRedirectSortField = 'createdAt' | 'source' | 'updatedAt';
|
|
975
|
+
export type GQLRedirectSourceType = 'domain' | 'path';
|
|
970
976
|
export type GQLRedirectSourceTypeEnumFilter = {
|
|
971
|
-
equal?: InputMaybe<
|
|
972
|
-
isAnyOf?: InputMaybe<Array<
|
|
973
|
-
notEqual?: InputMaybe<
|
|
977
|
+
equal?: InputMaybe<GQLRedirectSourceType>;
|
|
978
|
+
isAnyOf?: InputMaybe<Array<GQLRedirectSourceType>>;
|
|
979
|
+
notEqual?: InputMaybe<GQLRedirectSourceType>;
|
|
974
980
|
};
|
|
975
|
-
export type GQLRedirectSourceTypeValues = 'domain' | 'path';
|
|
976
981
|
export type GQLRedirectUpdateActivenessInput = {
|
|
977
982
|
active: Scalars['Boolean']['input'];
|
|
978
983
|
};
|