@tridion-sites/extensions 2.0.1 → 2.0.2
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/CHANGELOG.md +7 -0
- package/dist/dts/api/activitiesExplorer/hooks/index.d.ts +2 -0
- package/dist/dts/api/activitiesExplorer/hooks/useActivitiesExplorer.d.ts +63 -0
- package/dist/dts/api/activitiesExplorer/hooks/useActivitiesExplorerTable.d.ts +41 -0
- package/dist/dts/api/activitiesExplorer/index.d.ts +1 -0
- package/dist/dts/api/contentExplorer/components/index.d.ts +2 -0
- package/dist/dts/api/contentExplorer/components/propertiesGrid.d.ts +29 -0
- package/dist/dts/api/contentExplorer/components/propertiesList.d.ts +21 -0
- package/dist/dts/api/contentExplorer/hierarchy.d.ts +102 -0
- package/dist/dts/api/contentExplorer/hooks/index.d.ts +3 -0
- package/dist/dts/api/contentExplorer/hooks/useContentExplorer.d.ts +123 -0
- package/dist/dts/api/contentExplorer/hooks/useContentExplorerTable.d.ts +39 -0
- package/dist/dts/api/contentExplorer/hooks/useContentExplorerTree.d.ts +27 -0
- package/dist/dts/api/contentExplorer/index.d.ts +4 -0
- package/dist/dts/api/contentExplorer/utils/hierarchyUtils.d.ts +80 -0
- package/dist/dts/api/contentExplorer/utils/index.d.ts +1 -0
- package/dist/dts/api/editors/bundle/hooks/index.d.ts +1 -0
- package/dist/dts/api/editors/bundle/hooks/useBundleEditor.d.ts +32 -0
- package/dist/dts/api/editors/category/hooks/index.d.ts +1 -0
- package/dist/dts/api/editors/category/hooks/useCategoryEditor.d.ts +28 -0
- package/dist/dts/api/editors/component/hooks/index.d.ts +1 -0
- package/dist/dts/api/editors/component/hooks/useComponentEditor.d.ts +32 -0
- package/dist/dts/api/editors/folder/hooks/index.d.ts +1 -0
- package/dist/dts/api/editors/folder/hooks/useFolderEditor.d.ts +32 -0
- package/dist/dts/api/editors/hooks/index.d.ts +1 -0
- package/dist/dts/api/editors/hooks/useEditor.d.ts +40 -0
- package/dist/dts/api/editors/index.d.ts +8 -0
- package/dist/dts/api/editors/keyword/hooks/index.d.ts +1 -0
- package/dist/dts/api/editors/keyword/hooks/useKeywordEditor.d.ts +32 -0
- package/dist/dts/api/editors/page/hooks/index.d.ts +1 -0
- package/dist/dts/api/editors/page/hooks/usePageEditor.d.ts +40 -0
- package/dist/dts/api/editors/structureGroup/hooks/index.d.ts +1 -0
- package/dist/dts/api/editors/structureGroup/hooks/useStructureGroupEditor.d.ts +32 -0
- package/dist/dts/api/general/components/button.d.ts +33 -0
- package/dist/dts/api/general/components/icon.d.ts +19 -0
- package/dist/dts/api/general/components/index.d.ts +7 -0
- package/dist/dts/api/general/components/layout/block.d.ts +55 -0
- package/dist/dts/api/general/components/layout/center.d.ts +12 -0
- package/dist/dts/api/general/components/layout/flex.d.ts +50 -0
- package/dist/dts/api/general/components/layout/index.d.ts +4 -0
- package/dist/dts/api/general/components/layout/stack.d.ts +39 -0
- package/dist/dts/api/general/components/link.d.ts +29 -0
- package/dist/dts/api/general/components/modal.d.ts +61 -0
- package/dist/dts/api/general/components/text.d.ts +82 -0
- package/dist/dts/api/general/components/textLink.d.ts +16 -0
- package/dist/dts/api/general/globals/borderRadius.d.ts +15 -0
- package/dist/dts/api/general/globals/color.d.ts +41 -0
- package/dist/dts/api/general/globals/index.d.ts +6 -0
- package/dist/dts/api/general/globals/opacity.d.ts +16 -0
- package/dist/dts/api/general/globals/spacing.d.ts +19 -0
- package/dist/dts/api/general/globals/transitionDuration.d.ts +14 -0
- package/dist/dts/api/general/globals/zIndex.d.ts +18 -0
- package/dist/dts/api/general/hooks/index.d.ts +4 -0
- package/dist/dts/api/general/hooks/useConfirmation.d.ts +40 -0
- package/dist/dts/api/general/hooks/useModal.d.ts +68 -0
- package/dist/dts/api/general/hooks/useNotifications.d.ts +46 -0
- package/dist/dts/api/general/hooks/useUserProfile.d.ts +14 -0
- package/dist/dts/api/general/index.d.ts +6 -0
- package/dist/dts/api/general/mixins/accessibility.d.ts +50 -0
- package/dist/dts/api/general/mixins/backgroundColor.d.ts +10 -0
- package/dist/dts/api/general/mixins/clickable.d.ts +7 -0
- package/dist/dts/api/general/mixins/color.d.ts +10 -0
- package/dist/dts/api/general/mixins/customIcon.d.ts +10 -0
- package/dist/dts/api/general/mixins/focusBehavior.d.ts +13 -0
- package/dist/dts/api/general/mixins/index.d.ts +10 -0
- package/dist/dts/api/general/mixins/opacity.d.ts +11 -0
- package/dist/dts/api/general/mixins/sizing.d.ts +35 -0
- package/dist/dts/api/general/mixins/spacing.d.ts +16 -0
- package/dist/dts/api/general/mixins/tooltip.d.ts +9 -0
- package/dist/dts/api/general/mutations/batchMutationOptions.d.ts +6 -0
- package/dist/dts/api/general/mutations/index.d.ts +10 -0
- package/dist/dts/api/general/mutations/item/index.d.ts +24 -0
- package/dist/dts/api/general/mutations/item/useAutoClassifyItemMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useAutoClassifyItemsMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useCopyItemMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useCopyItemsMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useDeleteItemMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useDeleteItemsMutation.d.ts +22 -0
- package/dist/dts/api/general/mutations/item/useDemoteItemMutation.d.ts +15 -0
- package/dist/dts/api/general/mutations/item/useDemoteItemsMutation.d.ts +15 -0
- package/dist/dts/api/general/mutations/item/useFinishEditingItemMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useFinishEditingItemsMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useLocalizeItemMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useLocalizeItemsMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useMoveItemMutation.d.ts +24 -0
- package/dist/dts/api/general/mutations/item/useMoveItemsMutation.d.ts +24 -0
- package/dist/dts/api/general/mutations/item/usePromoteItemMutation.d.ts +16 -0
- package/dist/dts/api/general/mutations/item/usePromoteItemsMutation.d.ts +16 -0
- package/dist/dts/api/general/mutations/item/usePublishItemsMutation.d.ts +62 -0
- package/dist/dts/api/general/mutations/item/useRevertItemMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useRevertItemsMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useRollbackItemMutation.d.ts +29 -0
- package/dist/dts/api/general/mutations/item/useUnlocalizeItemMutation.d.ts +21 -0
- package/dist/dts/api/general/mutations/item/useUnlocalizeItemsMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/item/useUnpublishItemsMutation.d.ts +46 -0
- package/dist/dts/api/general/mutations/item/useUpdateItemMutation.d.ts +16 -0
- package/dist/dts/api/general/mutations/mutationOptions.d.ts +38 -0
- package/dist/dts/api/general/mutations/mutationResult.d.ts +73 -0
- package/dist/dts/api/general/mutations/translation/index.d.ts +1 -0
- package/dist/dts/api/general/mutations/translation/useCreateTranslationJobMutation.d.ts +16 -0
- package/dist/dts/api/general/mutations/useAddToBundleMutation.d.ts +31 -0
- package/dist/dts/api/general/mutations/useChangeUserLanguageMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/useChangeUserLocaleMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/useRemoveFromBundleMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/useUploadMultimediaMutation.d.ts +52 -0
- package/dist/dts/api/general/mutations/workflow/index.d.ts +9 -0
- package/dist/dts/api/general/mutations/workflow/useAssignActivitiesMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/workflow/useAssignActivityMutation.d.ts +20 -0
- package/dist/dts/api/general/mutations/workflow/useFinishActivitiesMutation.d.ts +39 -0
- package/dist/dts/api/general/mutations/workflow/useFinishActivityMutation.d.ts +24 -0
- package/dist/dts/api/general/mutations/workflow/useRestartActivitiesMutation.d.ts +16 -0
- package/dist/dts/api/general/mutations/workflow/useRestartActivityMutation.d.ts +16 -0
- package/dist/dts/api/general/mutations/workflow/useStartActivitiesMutation.d.ts +16 -0
- package/dist/dts/api/general/mutations/workflow/useStartActivityMutation.d.ts +16 -0
- package/dist/dts/api/general/mutations/workflow/useStartWorkflowMutation.d.ts +16 -0
- package/dist/dts/api/general/queries/index.d.ts +10 -0
- package/dist/dts/api/general/queries/item/index.d.ts +14 -0
- package/dist/dts/api/general/queries/item/useItemBlueprintHierarchyQuery.d.ts +20 -0
- package/dist/dts/api/general/queries/item/useItemChildrenQuery.d.ts +20 -0
- package/dist/dts/api/general/queries/item/useItemClassifiedItemsQuery.d.ts +33 -0
- package/dist/dts/api/general/queries/item/useItemDefaultDataQuery.d.ts +26 -0
- package/dist/dts/api/general/queries/item/useItemHistoryQuery.d.ts +16 -0
- package/dist/dts/api/general/queries/item/useItemPublishUrlsQuery.d.ts +16 -0
- package/dist/dts/api/general/queries/item/useItemPublishedPagesQuery.d.ts +16 -0
- package/dist/dts/api/general/queries/item/useItemPublishedToQuery.d.ts +16 -0
- package/dist/dts/api/general/queries/item/useItemQuery.d.ts +20 -0
- package/dist/dts/api/general/queries/item/useItemTranslationInfoQuery.d.ts +16 -0
- package/dist/dts/api/general/queries/item/useItemUsedByQuery.d.ts +25 -0
- package/dist/dts/api/general/queries/item/useItemUsesQuery.d.ts +21 -0
- package/dist/dts/api/general/queries/item/useItemsQuery.d.ts +28 -0
- package/dist/dts/api/general/queries/item/usePublicationBlueprintHierarchyQuery.d.ts +20 -0
- package/dist/dts/api/general/queries/lists/index.d.ts +6 -0
- package/dist/dts/api/general/queries/lists/useContainerItems.d.ts +32 -0
- package/dist/dts/api/general/queries/lists/useFavoritesQuery.d.ts +7 -0
- package/dist/dts/api/general/queries/lists/useItemsInProgressQuery.d.ts +25 -0
- package/dist/dts/api/general/queries/lists/usePublicationsQuery.d.ts +7 -0
- package/dist/dts/api/general/queries/lists/useUserGroupsQuery.d.ts +33 -0
- package/dist/dts/api/general/queries/lists/useUsersQuery.d.ts +38 -0
- package/dist/dts/api/general/queries/loadingState.d.ts +10 -0
- package/dist/dts/api/general/queries/publishing/index.d.ts +5 -0
- package/dist/dts/api/general/queries/publishing/useItemsToPublishQuery.d.ts +8 -0
- package/dist/dts/api/general/queries/publishing/useItemsToUnpublishQuery.d.ts +8 -0
- package/dist/dts/api/general/queries/publishing/usePublishTransactionsQuery.d.ts +40 -0
- package/dist/dts/api/general/queries/publishing/usePublishableTargetTypesQuery.d.ts +16 -0
- package/dist/dts/api/general/queries/publishing/useTargetTypesQuery.d.ts +7 -0
- package/dist/dts/api/general/queries/queryOptions.d.ts +67 -0
- package/dist/dts/api/general/queries/queryResult.d.ts +93 -0
- package/dist/dts/api/general/queries/search/index.d.ts +2 -0
- package/dist/dts/api/general/queries/search/useSearchInContainerQuery.d.ts +27 -0
- package/dist/dts/api/general/queries/search/useSystemSearchQuery.d.ts +26 -0
- package/dist/dts/api/general/queries/translation/index.d.ts +1 -0
- package/dist/dts/api/general/queries/translation/useDefaultTranslationJobQuery.d.ts +17 -0
- package/dist/dts/api/general/queries/useUserProfileQuery.d.ts +7 -0
- package/dist/dts/api/general/queries/workflow/index.d.ts +1 -0
- package/dist/dts/api/general/queries/workflow/useActivityInstancesQuery.d.ts +37 -0
- package/dist/dts/api/index.d.ts +5 -0
- package/dist/dts/api/publishingQueueExplorer/hooks/index.d.ts +2 -0
- package/dist/dts/api/publishingQueueExplorer/hooks/usePublishingQueueExplorer.d.ts +62 -0
- package/dist/dts/api/publishingQueueExplorer/hooks/usePublishingQueueExplorerTable.d.ts +41 -0
- package/dist/dts/api/publishingQueueExplorer/index.d.ts +1 -0
- package/dist/dts/apiBridge/activitiesExplorerApiStorage.d.ts +16 -0
- package/dist/dts/apiBridge/contentExplorerApiStorage.d.ts +32 -0
- package/dist/dts/apiBridge/editors/bundleEditorApiStorage.d.ts +13 -0
- package/dist/dts/apiBridge/editors/categoryEditorApiStorage.d.ts +13 -0
- package/dist/dts/apiBridge/editors/componentEditorApiStorage.d.ts +13 -0
- package/dist/dts/apiBridge/editors/editorsApiStorage.d.ts +28 -0
- package/dist/dts/apiBridge/editors/folderEditorApiStorage.d.ts +13 -0
- package/dist/dts/apiBridge/editors/index.d.ts +8 -0
- package/dist/dts/apiBridge/editors/keywordEditorApiStorage.d.ts +13 -0
- package/dist/dts/apiBridge/editors/pageEditorApiStorage.d.ts +13 -0
- package/dist/dts/apiBridge/editors/structureGroupEditorApiStorage.d.ts +13 -0
- package/dist/dts/apiBridge/extensionApiBridge.d.ts +22 -0
- package/dist/dts/apiBridge/generalApiStorage.d.ts +144 -0
- package/dist/dts/apiBridge/index.d.ts +6 -0
- package/dist/dts/apiBridge/publishingQueueExplorerApiStorage.d.ts +16 -0
- package/dist/dts/apiWrappers/activitiesExplorer/hooks.d.ts +39 -0
- package/dist/dts/apiWrappers/activitiesExplorer/index.d.ts +1 -0
- package/dist/dts/apiWrappers/contentExplorer/components.d.ts +5 -0
- package/dist/dts/apiWrappers/contentExplorer/hooks.d.ts +58 -0
- package/dist/dts/apiWrappers/contentExplorer/index.d.ts +3 -0
- package/dist/dts/apiWrappers/contentExplorer/utils.d.ts +73 -0
- package/dist/dts/apiWrappers/editors/hooks.d.ts +63 -0
- package/dist/dts/apiWrappers/editors/index.d.ts +1 -0
- package/dist/dts/apiWrappers/general/components.d.ts +88 -0
- package/dist/dts/apiWrappers/general/globals.d.ts +37 -0
- package/dist/dts/apiWrappers/general/hooks.d.ts +25 -0
- package/dist/dts/apiWrappers/general/index.d.ts +5 -0
- package/dist/dts/apiWrappers/general/mutations/generalMutations.d.ts +30 -0
- package/dist/dts/apiWrappers/general/mutations/index.d.ts +4 -0
- package/dist/dts/apiWrappers/general/mutations/itemMutations.d.ts +137 -0
- package/dist/dts/apiWrappers/general/mutations/translationMutations.d.ts +5 -0
- package/dist/dts/apiWrappers/general/mutations/workflowMutations.d.ts +47 -0
- package/dist/dts/apiWrappers/general/queries/generalQueries.d.ts +7 -0
- package/dist/dts/apiWrappers/general/queries/index.d.ts +7 -0
- package/dist/dts/apiWrappers/general/queries/itemQueries.d.ts +85 -0
- package/dist/dts/apiWrappers/general/queries/listsQueries.d.ts +25 -0
- package/dist/dts/apiWrappers/general/queries/publishingQueries.d.ts +19 -0
- package/dist/dts/apiWrappers/general/queries/searchQueries.d.ts +13 -0
- package/dist/dts/apiWrappers/general/queries/translationQueries.d.ts +5 -0
- package/dist/dts/apiWrappers/general/queries/workflowQueries.d.ts +5 -0
- package/dist/dts/apiWrappers/index.d.ts +5 -0
- package/dist/dts/apiWrappers/publishingQueueExplorer/hooks.d.ts +39 -0
- package/dist/dts/apiWrappers/publishingQueueExplorer/index.d.ts +1 -0
- package/dist/dts/extensionPoints/actionsConfiguration/actionExtension.d.ts +43 -0
- package/dist/dts/extensionPoints/actionsConfiguration/actionGroup.d.ts +20 -0
- package/dist/dts/extensionPoints/actionsConfiguration/actionsConfigurationExtension.d.ts +10 -0
- package/dist/dts/extensionPoints/actionsConfiguration/actionsConfigurationExtensionsBuilder.d.ts +70 -0
- package/dist/dts/extensionPoints/actionsConfiguration/index.d.ts +4 -0
- package/dist/dts/extensionPoints/activitiesExplorer/activitiesExplorerActions.d.ts +40 -0
- package/dist/dts/extensionPoints/activitiesExplorer/activitiesExplorerExtensions.d.ts +11 -0
- package/dist/dts/extensionPoints/activitiesExplorer/activitiesExplorerExtensionsBuilder.d.ts +25 -0
- package/dist/dts/extensionPoints/activitiesExplorer/index.d.ts +5 -0
- package/dist/dts/extensionPoints/activitiesExplorer/insightsPanels/activitiesExplorerInsightsPanelsExtension.d.ts +18 -0
- package/dist/dts/extensionPoints/activitiesExplorer/insightsPanels/activitiesExplorerInsightsPanelsExtensions.d.ts +9 -0
- package/dist/dts/extensionPoints/activitiesExplorer/insightsPanels/activitiesExplorerInsightsPanelsExtensionsBuilder.d.ts +24 -0
- package/dist/dts/extensionPoints/activitiesExplorer/insightsPanels/index.d.ts +3 -0
- package/dist/dts/extensionPoints/activitiesExplorer/table/activitiesExplorerTableActions.d.ts +41 -0
- package/dist/dts/extensionPoints/activitiesExplorer/table/activitiesExplorerTableColumnExtension.d.ts +20 -0
- package/dist/dts/extensionPoints/activitiesExplorer/table/activitiesExplorerTableExtensions.d.ts +10 -0
- package/dist/dts/extensionPoints/activitiesExplorer/table/activitiesExplorerTableExtensionsBuilder.d.ts +26 -0
- package/dist/dts/extensionPoints/activitiesExplorer/table/index.d.ts +3 -0
- package/dist/dts/extensionPoints/contentEditor/contentEditorExtensions.d.ts +11 -0
- package/dist/dts/extensionPoints/contentEditor/contentEditorExtensionsBuilder.d.ts +15 -0
- package/dist/dts/extensionPoints/contentEditor/contentEditorFormFieldExtension.d.ts +85 -0
- package/dist/dts/extensionPoints/contentEditor/contentEditorViewExtension.d.ts +69 -0
- package/dist/dts/extensionPoints/contentEditor/index.d.ts +5 -0
- package/dist/dts/extensionPoints/contentEditor/richTextField/index.d.ts +2 -0
- package/dist/dts/extensionPoints/contentEditor/richTextField/richTextFieldExtensions.d.ts +64 -0
- package/dist/dts/extensionPoints/contentEditor/richTextField/richTextFieldExtensionsBuilder.d.ts +11 -0
- package/dist/dts/extensionPoints/contentExplorer/contentExplorerActions.d.ts +86 -0
- package/dist/dts/extensionPoints/contentExplorer/contentExplorerExtensions.d.ts +13 -0
- package/dist/dts/extensionPoints/contentExplorer/contentExplorerExtensionsBuilder.d.ts +30 -0
- package/dist/dts/extensionPoints/contentExplorer/index.d.ts +6 -0
- package/dist/dts/extensionPoints/contentExplorer/insightsPanels/contentExplorerInsightsPanelsExtension.d.ts +18 -0
- package/dist/dts/extensionPoints/contentExplorer/insightsPanels/contentExplorerInsightsPanelsExtensions.d.ts +9 -0
- package/dist/dts/extensionPoints/contentExplorer/insightsPanels/contentExplorerInsightsPanelsExtensionsBuilder.d.ts +24 -0
- package/dist/dts/extensionPoints/contentExplorer/insightsPanels/index.d.ts +3 -0
- package/dist/dts/extensionPoints/contentExplorer/table/contentExplorerTableColumnExtension.d.ts +20 -0
- package/dist/dts/extensionPoints/contentExplorer/table/contentExplorerTableExtensions.d.ts +10 -0
- package/dist/dts/extensionPoints/contentExplorer/table/contentExplorerTableExtensionsBuilder.d.ts +26 -0
- package/dist/dts/extensionPoints/contentExplorer/table/index.d.ts +3 -0
- package/dist/dts/extensionPoints/contentExplorer/tree/contentExplorerTreeExtensions.d.ts +7 -0
- package/dist/dts/extensionPoints/contentExplorer/tree/contentExplorerTreeExtensionsBuilder.d.ts +13 -0
- package/dist/dts/extensionPoints/contentExplorer/tree/index.d.ts +2 -0
- package/dist/dts/extensionPoints/extensionBuilder.d.ts +37 -0
- package/dist/dts/extensionPoints/extensionPoints.d.ts +17 -0
- package/dist/dts/extensionPoints/header/headerExtensions.d.ts +7 -0
- package/dist/dts/extensionPoints/header/headerExtensionsBuilder.d.ts +12 -0
- package/dist/dts/extensionPoints/header/index.d.ts +3 -0
- package/dist/dts/extensionPoints/header/navigation/index.d.ts +4 -0
- package/dist/dts/extensionPoints/header/navigation/navigationExtensions.d.ts +9 -0
- package/dist/dts/extensionPoints/header/navigation/navigationExtensionsBuilder.d.ts +24 -0
- package/dist/dts/extensionPoints/header/navigation/navigationItem.d.ts +65 -0
- package/dist/dts/extensionPoints/header/navigation/navigationItems.d.ts +20 -0
- package/dist/dts/extensionPoints/index.d.ts +12 -0
- package/dist/dts/extensionPoints/insightsPanels/index.d.ts +1 -0
- package/dist/dts/extensionPoints/insightsPanels/insightsPanelsExtension.d.ts +39 -0
- package/dist/dts/extensionPoints/listBuilder/index.d.ts +3 -0
- package/dist/dts/extensionPoints/listBuilder/listBuilder.d.ts +12 -0
- package/dist/dts/extensionPoints/listBuilder/listBuilderExtension.d.ts +12 -0
- package/dist/dts/extensionPoints/listBuilder/utils/addItem.d.ts +14 -0
- package/dist/dts/extensionPoints/listBuilder/utils/findItemIndex.d.ts +13 -0
- package/dist/dts/extensionPoints/listBuilder/utils/index.d.ts +5 -0
- package/dist/dts/extensionPoints/listBuilder/utils/moveItem.d.ts +14 -0
- package/dist/dts/extensionPoints/listBuilder/utils/removeItem.d.ts +13 -0
- package/dist/dts/extensionPoints/listBuilder/utils/replaceItem.d.ts +14 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/index.d.ts +5 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/insightsPanels/index.d.ts +3 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/insightsPanels/publishingQueueExplorerInsightsPanelsExtension.d.ts +18 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/insightsPanels/publishingQueueExplorerInsightsPanelsExtensions.d.ts +9 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/insightsPanels/publishingQueueExplorerInsightsPanelsExtensionsBuilder.d.ts +24 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/publishingQueueExplorerActions.d.ts +39 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/publishingQueueExplorerExtensions.d.ts +11 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/publishingQueueExplorerExtensionsBuilder.d.ts +25 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/table/index.d.ts +3 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/table/publishingQueueExplorerTableActions.d.ts +39 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/table/publishingQueueExplorerTableColumnExtension.d.ts +20 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/table/publishingQueueExplorerTableExtensions.d.ts +10 -0
- package/dist/dts/extensionPoints/publishingQueueExplorer/table/publishingQueueExplorerTableExtensionsBuilder.d.ts +26 -0
- package/dist/dts/extensionPoints/tableColumnConfiguration/index.d.ts +1 -0
- package/dist/dts/extensionPoints/tableColumnConfiguration/tableColumnExtension.d.ts +70 -0
- package/dist/dts/extensionPoints/translations/index.d.ts +3 -0
- package/dist/dts/extensionPoints/translations/translationExtensions.d.ts +7 -0
- package/dist/dts/extensionPoints/translations/translationExtensionsBuilder.d.ts +17 -0
- package/dist/dts/extensionPoints/translations/translationItem.d.ts +23 -0
- package/dist/dts/frameworkInfo.d.ts +7 -0
- package/dist/dts/index.d.ts +6 -0
- package/dist/dts/module/createExtensionGlobals.d.ts +11 -0
- package/dist/dts/module/extensionGlobals.d.ts +7 -0
- package/dist/dts/module/extensionModule.d.ts +11 -0
- package/dist/dts/module/index.d.ts +4 -0
- package/dist/dts/module/runtimeInformation.d.ts +7 -0
- package/dist/index.d.ts +529 -97
- package/dist/index.js +151 -27
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { LoadingState } from "../..";
|
|
2
|
+
import type { ValuesOfArray } from '@tridion/graphene';
|
|
3
|
+
import type { ActivityInstance } from '@tridion-sites/models';
|
|
4
|
+
/**
|
|
5
|
+
* List of all built-in panel IDs of the Activities Explorer.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare const activitiesExplorerPanelIds: readonly ["information", "relatedItems", "processHistory"];
|
|
10
|
+
/**
|
|
11
|
+
* Type represents ID of a built-in panel of the Activities Explorer.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export type ActivitiesExplorerPanelId = ValuesOfArray<typeof activitiesExplorerPanelIds>;
|
|
16
|
+
/**
|
|
17
|
+
* All available built-in Activities Explorer panel IDs.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare const activitiesExplorerPanelId: {
|
|
22
|
+
information: "information";
|
|
23
|
+
relatedItems: "relatedItems";
|
|
24
|
+
processHistory: "processHistory";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Data of the Activities Explorer.
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface ActivitiesExplorerHookResult {
|
|
32
|
+
/**
|
|
33
|
+
* List of Activity Instances.
|
|
34
|
+
*/
|
|
35
|
+
items: ReadonlyArray<ActivityInstance>;
|
|
36
|
+
/**
|
|
37
|
+
* The loading state of the Activity Instances list.
|
|
38
|
+
*/
|
|
39
|
+
itemsLoadingState: LoadingState;
|
|
40
|
+
/**
|
|
41
|
+
* Currently active ActivityInstance.
|
|
42
|
+
*/
|
|
43
|
+
currentItem: ActivityInstance | undefined;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Hook for accessing Activities Explorer data.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* Should be used only inside Activities Explorer, otherwise throws an error.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
export type ActivitiesExplorerHook = () => ActivitiesExplorerHookResult;
|
|
54
|
+
/**
|
|
55
|
+
* Hook for accessing Activities Explorer data when available.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Safe to be used within or outside of the Activities Explorer.
|
|
59
|
+
* `undefined` is returned when used outside of Activities Explorer.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export type OptionalActivitiesExplorerHook = () => ActivitiesExplorerHookResult | undefined;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ActivityInstance, ItemUri } from '@tridion-sites/models';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ActivitiesExplorerTableSelection {
|
|
6
|
+
ids: ReadonlySet<ItemUri>;
|
|
7
|
+
selectedItems: ReadonlyArray<ActivityInstance>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Methods of the Activities Explorer Table.
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export interface ActivitiesExplorerTableHookResult {
|
|
14
|
+
/**
|
|
15
|
+
* Refetch list of Activity Instances.
|
|
16
|
+
*/
|
|
17
|
+
refresh: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Current state of selected Activity Instances in the Table.
|
|
20
|
+
*/
|
|
21
|
+
selection: ActivitiesExplorerTableSelection;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Hook for accessing Activities Explorer Table data and methods.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Should be used only inside Activities Explorer Table, otherwise throws an error.
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export type ActivitiesExplorerTableHook = () => ActivitiesExplorerTableHookResult;
|
|
32
|
+
/**
|
|
33
|
+
* Hook for accessing Activities Explorer Table data and methods when available.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Safe to be used within or outside of the Activities Explorer Table.
|
|
37
|
+
* `undefined` is returned when used outside of the Activities Explorer Table.
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export type OptionalActivitiesExplorerTableHook = () => ActivitiesExplorerTableHookResult | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hooks';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface PropertyItem {
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
value: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export interface PropertiesGridProps {
|
|
13
|
+
/**
|
|
14
|
+
* Data to be rendered inside the grid
|
|
15
|
+
*/
|
|
16
|
+
data: ReadonlyArray<PropertyItem>;
|
|
17
|
+
/**
|
|
18
|
+
* Space in pixels between grid rows
|
|
19
|
+
*/
|
|
20
|
+
rowGap?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Space in pixels between grid columns
|
|
23
|
+
*/
|
|
24
|
+
columnGap?: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export type PropertiesGridComponent = FunctionComponent<PropertiesGridProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface PropertyRow {
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
value: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export interface PropertiesListProps {
|
|
13
|
+
/**
|
|
14
|
+
* List of properties to be displayed
|
|
15
|
+
*/
|
|
16
|
+
properties: ReadonlyArray<PropertyRow>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export type PropertiesListComponent = FunctionComponent<PropertiesListProps>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { IconElementType, ReadonlyHierarchy, ReadonlyHierarchyNode } from '@tridion/graphene';
|
|
2
|
+
import type { IdentifiableObject } from '@tridion-sites/models';
|
|
3
|
+
/**
|
|
4
|
+
* Basic data contained in a Content Explorer hierarchy node.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface ContentExplorerNodeData {
|
|
9
|
+
/**
|
|
10
|
+
* Unique ID of the node.
|
|
11
|
+
*/
|
|
12
|
+
readonly nodeId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Title of the node.
|
|
15
|
+
*/
|
|
16
|
+
readonly title: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Node of the Content Explorer hierarchy.
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export type ContentExplorerNode = ReadonlyHierarchyNode<ContentExplorerNodeData>;
|
|
24
|
+
/**
|
|
25
|
+
* Data contained in a Content Explorer ItemNode.
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export interface ContentExplorerItemNodeData<TItem extends IdentifiableObject = IdentifiableObject> extends ContentExplorerNodeData {
|
|
30
|
+
/**
|
|
31
|
+
* Tridion item associated with the node.
|
|
32
|
+
*/
|
|
33
|
+
readonly item: TItem;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Tridion item node of the Content Explorer hierarchy.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export type ContentExplorerItemNode<TItem extends IdentifiableObject = IdentifiableObject> = ReadonlyHierarchyNode<ContentExplorerItemNodeData<TItem>>;
|
|
41
|
+
/**
|
|
42
|
+
* Data of Content Explorer structured in a hierarchy form.
|
|
43
|
+
*
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export type ContentExplorerHierarchy = ReadonlyHierarchy<ContentExplorerNodeData>;
|
|
47
|
+
/**
|
|
48
|
+
* Data contained in a Content Explorer SystemNode.
|
|
49
|
+
*
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export interface ContentExplorerSystemNodeData extends ContentExplorerNodeData {
|
|
53
|
+
/**
|
|
54
|
+
* Icon of the node.
|
|
55
|
+
*/
|
|
56
|
+
readonly icon: IconElementType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Predefined node of the Content Explorer hierarchy.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export type ContentExplorerSystemNode = ReadonlyHierarchyNode<ContentExplorerSystemNodeData>;
|
|
64
|
+
/**
|
|
65
|
+
* Data contained in a Content Explorer RootNode.
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export interface ContentExplorerRootNodeData extends ContentExplorerSystemNodeData {
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Root node of Content Explorer hierarchy.
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export type ContentExplorerRootNode = ReadonlyHierarchyNode<ContentExplorerRootNodeData>;
|
|
77
|
+
/**
|
|
78
|
+
* Data contained in a Content Explorer PublicationsNode.
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export interface ContentExplorerPublicationsNodeData extends ContentExplorerSystemNodeData {
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Content Explorer hierarchy node that has list of publications as a children.
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export type ContentExplorerPublicationsNode = ReadonlyHierarchyNode<ContentExplorerPublicationsNodeData>;
|
|
90
|
+
/**
|
|
91
|
+
* Data contained in a Content Explorer ItemsInProgressNode.
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export interface ContentExplorerItemsInProgressNodeData extends ContentExplorerSystemNodeData {
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Content Explorer hierarchy node that stores items in progress.
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export type ContentExplorerItemsInProgressNode = ReadonlyHierarchyNode<ContentExplorerItemsInProgressNodeData>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { type ValuesOfArray } from '@tridion/graphene';
|
|
2
|
+
import type { IdentifiableObject, ItemUri } from '@tridion-sites/models';
|
|
3
|
+
import type { ContentExplorerHierarchy, ContentExplorerNode } from '../hierarchy';
|
|
4
|
+
/**
|
|
5
|
+
* List of all built-in panel IDs of the Content Explorer.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare const contentExplorerInsightsPanelIds: readonly ["search", "information", "general", "metadata", "history", "blueprint", "where-used", "view-on-site", "published-to", "translations"];
|
|
10
|
+
/**
|
|
11
|
+
* Type represents ID of a built-in panel of the Content Explorer.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export type ContentExplorerInsightsPanelId = ValuesOfArray<typeof contentExplorerInsightsPanelIds>;
|
|
16
|
+
/**
|
|
17
|
+
* All available built-in Content Explorer panel IDs.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare const contentExplorerInsightsPanelId: {
|
|
22
|
+
information: "information";
|
|
23
|
+
history: "history";
|
|
24
|
+
search: "search";
|
|
25
|
+
general: "general";
|
|
26
|
+
metadata: "metadata";
|
|
27
|
+
blueprint: "blueprint";
|
|
28
|
+
"where-used": "where-used";
|
|
29
|
+
"view-on-site": "view-on-site";
|
|
30
|
+
"published-to": "published-to";
|
|
31
|
+
translations: "translations";
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export interface SetTargetContentExplorerProps {
|
|
37
|
+
/**
|
|
38
|
+
* Id of a container node to resolve to.
|
|
39
|
+
*/
|
|
40
|
+
containerNodeId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Item URI of an item to resolve to inside the `containerNodeId`.
|
|
43
|
+
*/
|
|
44
|
+
itemInContainerId: ItemUri | undefined;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export interface ContentExplorerHierarchyLoadingState {
|
|
50
|
+
loadedNodeIds: ReadonlySet<string>;
|
|
51
|
+
loadingNodeIds: ReadonlySet<string>;
|
|
52
|
+
reloadingNodeIds: ReadonlySet<string>;
|
|
53
|
+
firstTimeLoadingNodeIds: ReadonlySet<string>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Data and methods of the Content Explorer.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export interface ContentExplorerHookResult {
|
|
61
|
+
hierarchy: ContentExplorerHierarchy;
|
|
62
|
+
currentNode: ContentExplorerNode | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Currently active item.
|
|
65
|
+
*/
|
|
66
|
+
currentItem: IdentifiableObject | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Loading state of nodes of the Content Explorer hierarchy.
|
|
69
|
+
*/
|
|
70
|
+
hierarchyLoadingState: ContentExplorerHierarchyLoadingState;
|
|
71
|
+
/**
|
|
72
|
+
* Method to change current location of the Content Explorer.
|
|
73
|
+
*/
|
|
74
|
+
setTarget: (props: SetTargetContentExplorerProps) => void;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Hook for accessing Content Explorer data and methods.
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* Should be used only inside Content Explorer, otherwise throws an error.
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export type ContentExplorerHook = () => ContentExplorerHookResult;
|
|
85
|
+
/**
|
|
86
|
+
* Hook for accessing Content Explorer data and methods when available.
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Safe to be used within or outside of the Content Explorer.
|
|
90
|
+
* `undefined` is returned when used outside of Content Explorer.
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export type OptionalContentExplorerHook = () => ContentExplorerHookResult | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Backwards compatibility for `contentExplorerInsightsPanelIds`
|
|
97
|
+
*
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
export declare const contentExplorerPanelIds: readonly ["search", "information", "general", "metadata", "history", "blueprint", "where-used", "view-on-site", "published-to", "translations"];
|
|
101
|
+
/**
|
|
102
|
+
* Backwards compatibility for `contentExplorerInsightsPanelId`
|
|
103
|
+
*
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
export declare const contentExplorerPanelId: {
|
|
107
|
+
information: "information";
|
|
108
|
+
history: "history";
|
|
109
|
+
search: "search";
|
|
110
|
+
general: "general";
|
|
111
|
+
metadata: "metadata";
|
|
112
|
+
blueprint: "blueprint";
|
|
113
|
+
"where-used": "where-used";
|
|
114
|
+
"view-on-site": "view-on-site";
|
|
115
|
+
"published-to": "published-to";
|
|
116
|
+
translations: "translations";
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Backwards compatibility for `ContentExplorerInsightsPanelId`
|
|
120
|
+
*
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
export type ContentExplorerPanelId = ContentExplorerInsightsPanelId;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IdentifiableObject, ItemUri } from '@tridion-sites/models';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ContentExplorerTableSelection {
|
|
6
|
+
ids: ReadonlySet<ItemUri>;
|
|
7
|
+
selectedItems: ReadonlyArray<IdentifiableObject>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Methods of a Content Explorer Table.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export interface ContentExplorerTableHookResult {
|
|
15
|
+
refresh: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Current state of selected items in the Table.
|
|
18
|
+
*/
|
|
19
|
+
selection: ContentExplorerTableSelection;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Hook for accessing Content Explorer Table data and methods.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Should be used only inside Content Explorer Table, otherwise throws an error.
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export type ContentExplorerTableHook = () => ContentExplorerTableHookResult;
|
|
30
|
+
/**
|
|
31
|
+
* Hook for accessing Content Explorer Table data and methods when available.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Safe to be used within or outside of the Content Explorer Table.
|
|
35
|
+
* `undefined` is returned when used outside of Content Explorer Table.
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export type OptionalContentExplorerTableHook = () => ContentExplorerTableHookResult | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Methods of the Content Explorer Tree.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface ContentExplorerTreeHookResult {
|
|
7
|
+
refresh: () => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Hook for accessing Content Explorer Tree data and methods.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Should be used only inside Content Explorer Tree, otherwise throws an error.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type ContentExplorerTreeHook = () => ContentExplorerTreeHookResult;
|
|
18
|
+
/**
|
|
19
|
+
* Hook for accessing Content Explorer Tree data and methods when available.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Safe to be used within or outside of the Content Explorer Tree.
|
|
23
|
+
* `undefined` is returned when used outside of the Content Explorer Tree.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type OptionalContentExplorerTreeHook = () => ContentExplorerTreeHookResult | undefined;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { Constructor } from '@tridion/graphene';
|
|
2
|
+
import type { IdentifiableObject } from '@tridion-sites/models';
|
|
3
|
+
import type { ContentExplorerItemNode, ContentExplorerItemsInProgressNode, ContentExplorerNode, ContentExplorerPublicationsNode, ContentExplorerRootNode, ContentExplorerSystemNode } from '../hierarchy';
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface ContentExplorerHierarchyUtilsExtensionApi {
|
|
8
|
+
/**
|
|
9
|
+
* Checks if a node ID is favorites node ID.
|
|
10
|
+
*
|
|
11
|
+
* @param nodeId - The ID of the node to check.
|
|
12
|
+
* @returns A boolean value indicating whether the node ID is favorites node ID.
|
|
13
|
+
*/
|
|
14
|
+
isFavoritesNodeId: (nodeId: string) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if a node is item node.
|
|
17
|
+
*
|
|
18
|
+
* @param node - The node to check.
|
|
19
|
+
* @returns A boolean value indicating whether the node is item node.
|
|
20
|
+
*/
|
|
21
|
+
isItemNode: (node: ContentExplorerNode | undefined) => node is ContentExplorerItemNode;
|
|
22
|
+
/**
|
|
23
|
+
* Checks if a node is item node of a specific type.
|
|
24
|
+
*
|
|
25
|
+
* @typeParam T - The type of the item node.
|
|
26
|
+
* @param node - The node to check.
|
|
27
|
+
* @param ctor - The constructor function of the item type.
|
|
28
|
+
* @returns A boolean value indicating whether the node is item node of the specified type.
|
|
29
|
+
*/
|
|
30
|
+
isItemNodeOfType: <T extends IdentifiableObject>(node: ContentExplorerNode | undefined, ctor: Constructor<T>) => node is ContentExplorerItemNode<T>;
|
|
31
|
+
/**
|
|
32
|
+
* Checks if a node is "items in progress" node.
|
|
33
|
+
*
|
|
34
|
+
* @param node - The node to check.
|
|
35
|
+
* @returns A boolean value indicating whether the node is "items in progress" node.
|
|
36
|
+
*/
|
|
37
|
+
isItemsInProgressNode: (node: ContentExplorerNode | undefined) => node is ContentExplorerItemsInProgressNode;
|
|
38
|
+
/**
|
|
39
|
+
* Checks if a node ID is "items in progress" node ID.
|
|
40
|
+
*
|
|
41
|
+
* @param nodeId - The ID of the node to check.
|
|
42
|
+
* @returns A boolean value indicating whether the node ID is "items in progress" node ID.
|
|
43
|
+
*/
|
|
44
|
+
isItemsInProgressNodeId: (nodeId: string) => boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Checks if a node is publications node.
|
|
47
|
+
*
|
|
48
|
+
* @param node - The node to check.
|
|
49
|
+
* @returns A boolean value indicating whether the node is publications node.
|
|
50
|
+
*/
|
|
51
|
+
isPublicationsNode: (node: ContentExplorerNode | undefined) => node is ContentExplorerPublicationsNode;
|
|
52
|
+
/**
|
|
53
|
+
* Checks if a node ID is publications node ID.
|
|
54
|
+
*
|
|
55
|
+
* @param nodeId - The ID of the node to check.
|
|
56
|
+
* @returns A boolean value indicating whether the node ID is publications node ID.
|
|
57
|
+
*/
|
|
58
|
+
isPublicationsNodeId: (nodeId: string) => boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Checks if a node is root node.
|
|
61
|
+
*
|
|
62
|
+
* @param node - The node to check.
|
|
63
|
+
* @returns A boolean value indicating whether the node is root node.
|
|
64
|
+
*/
|
|
65
|
+
isRootNode: (node: ContentExplorerNode | undefined) => node is ContentExplorerRootNode;
|
|
66
|
+
/**
|
|
67
|
+
* Checks if a node ID is root node ID.
|
|
68
|
+
*
|
|
69
|
+
* @param nodeId - The ID of the node to check.
|
|
70
|
+
* @returns A boolean value indicating whether the node ID is root node ID.
|
|
71
|
+
*/
|
|
72
|
+
isRootNodeId: (nodeId: string) => boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Checks if a node is system node.
|
|
75
|
+
*
|
|
76
|
+
* @param node - The node to check.
|
|
77
|
+
* @returns A boolean value indicating whether the node is system node.
|
|
78
|
+
*/
|
|
79
|
+
isSystemNode: (node: ContentExplorerNode | undefined) => node is ContentExplorerSystemNode;
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hierarchyUtils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useBundleEditor';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Bundle, Schema } from '@tridion-sites/models';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface BundleEditorHookResult {
|
|
6
|
+
/**
|
|
7
|
+
* Editable Bundle.
|
|
8
|
+
*/
|
|
9
|
+
bundle: Bundle;
|
|
10
|
+
/**
|
|
11
|
+
* Bundle's metadata schema.
|
|
12
|
+
*/
|
|
13
|
+
metadataSchema: Schema | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Boolean that indicates that Bundle has unsaved changes.
|
|
16
|
+
*/
|
|
17
|
+
isChanged: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Boolean that indicates that Bundle can be edited.
|
|
20
|
+
*/
|
|
21
|
+
isEditing: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Hook for accessing Bundle Editor state when available.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Safe to be used within or outside of the Bundle Editor.
|
|
28
|
+
* `undefined` is returned when used outside of Bundle Editor.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type OptionalBundleEditorHook = () => BundleEditorHookResult | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useCategoryEditor';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { KeywordCategory } from '@tridion-sites/models';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface CategoryEditorHookResult {
|
|
6
|
+
/**
|
|
7
|
+
* Editable Category.
|
|
8
|
+
*/
|
|
9
|
+
category: KeywordCategory;
|
|
10
|
+
/**
|
|
11
|
+
* Boolean that indicates that Category has unsaved changes.
|
|
12
|
+
*/
|
|
13
|
+
isChanged: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Boolean that indicates that Category can be edited.
|
|
16
|
+
*/
|
|
17
|
+
isEditing: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Hook for accessing Keyword Editor data when available.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Safe to be used within or outside of the Keyword Editor.
|
|
24
|
+
* `undefined` is returned when used outside of Keyword Editor.
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export type OptionalCategoryEditorHook = () => CategoryEditorHookResult | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useComponentEditor';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Component, ExternalMultimediaComponent, MultimediaComponent, Schema } from '@tridion-sites/models';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ComponentEditorHookResult {
|
|
6
|
+
/**
|
|
7
|
+
* Editable Component.
|
|
8
|
+
*/
|
|
9
|
+
component: Component | MultimediaComponent | ExternalMultimediaComponent;
|
|
10
|
+
/**
|
|
11
|
+
* Component's content and metadata schema.
|
|
12
|
+
*/
|
|
13
|
+
schema: Schema | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Boolean that indicates that Component has unsaved changes.
|
|
16
|
+
*/
|
|
17
|
+
isChanged: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Boolean that indicates that Component can be edited.
|
|
20
|
+
*/
|
|
21
|
+
isEditing: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Hook for accessing Component Editor data when available.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Safe to be used within or outside of the Component Editor.
|
|
28
|
+
* `undefined` is returned when used outside of Component Editor.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type OptionalComponentEditorHook = () => ComponentEditorHookResult | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useFolderEditor';
|