@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.
Files changed (295) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/dts/api/activitiesExplorer/hooks/index.d.ts +2 -0
  3. package/dist/dts/api/activitiesExplorer/hooks/useActivitiesExplorer.d.ts +63 -0
  4. package/dist/dts/api/activitiesExplorer/hooks/useActivitiesExplorerTable.d.ts +41 -0
  5. package/dist/dts/api/activitiesExplorer/index.d.ts +1 -0
  6. package/dist/dts/api/contentExplorer/components/index.d.ts +2 -0
  7. package/dist/dts/api/contentExplorer/components/propertiesGrid.d.ts +29 -0
  8. package/dist/dts/api/contentExplorer/components/propertiesList.d.ts +21 -0
  9. package/dist/dts/api/contentExplorer/hierarchy.d.ts +102 -0
  10. package/dist/dts/api/contentExplorer/hooks/index.d.ts +3 -0
  11. package/dist/dts/api/contentExplorer/hooks/useContentExplorer.d.ts +123 -0
  12. package/dist/dts/api/contentExplorer/hooks/useContentExplorerTable.d.ts +39 -0
  13. package/dist/dts/api/contentExplorer/hooks/useContentExplorerTree.d.ts +27 -0
  14. package/dist/dts/api/contentExplorer/index.d.ts +4 -0
  15. package/dist/dts/api/contentExplorer/utils/hierarchyUtils.d.ts +80 -0
  16. package/dist/dts/api/contentExplorer/utils/index.d.ts +1 -0
  17. package/dist/dts/api/editors/bundle/hooks/index.d.ts +1 -0
  18. package/dist/dts/api/editors/bundle/hooks/useBundleEditor.d.ts +32 -0
  19. package/dist/dts/api/editors/category/hooks/index.d.ts +1 -0
  20. package/dist/dts/api/editors/category/hooks/useCategoryEditor.d.ts +28 -0
  21. package/dist/dts/api/editors/component/hooks/index.d.ts +1 -0
  22. package/dist/dts/api/editors/component/hooks/useComponentEditor.d.ts +32 -0
  23. package/dist/dts/api/editors/folder/hooks/index.d.ts +1 -0
  24. package/dist/dts/api/editors/folder/hooks/useFolderEditor.d.ts +32 -0
  25. package/dist/dts/api/editors/hooks/index.d.ts +1 -0
  26. package/dist/dts/api/editors/hooks/useEditor.d.ts +40 -0
  27. package/dist/dts/api/editors/index.d.ts +8 -0
  28. package/dist/dts/api/editors/keyword/hooks/index.d.ts +1 -0
  29. package/dist/dts/api/editors/keyword/hooks/useKeywordEditor.d.ts +32 -0
  30. package/dist/dts/api/editors/page/hooks/index.d.ts +1 -0
  31. package/dist/dts/api/editors/page/hooks/usePageEditor.d.ts +40 -0
  32. package/dist/dts/api/editors/structureGroup/hooks/index.d.ts +1 -0
  33. package/dist/dts/api/editors/structureGroup/hooks/useStructureGroupEditor.d.ts +32 -0
  34. package/dist/dts/api/general/components/button.d.ts +33 -0
  35. package/dist/dts/api/general/components/icon.d.ts +19 -0
  36. package/dist/dts/api/general/components/index.d.ts +7 -0
  37. package/dist/dts/api/general/components/layout/block.d.ts +55 -0
  38. package/dist/dts/api/general/components/layout/center.d.ts +12 -0
  39. package/dist/dts/api/general/components/layout/flex.d.ts +50 -0
  40. package/dist/dts/api/general/components/layout/index.d.ts +4 -0
  41. package/dist/dts/api/general/components/layout/stack.d.ts +39 -0
  42. package/dist/dts/api/general/components/link.d.ts +29 -0
  43. package/dist/dts/api/general/components/modal.d.ts +61 -0
  44. package/dist/dts/api/general/components/text.d.ts +82 -0
  45. package/dist/dts/api/general/components/textLink.d.ts +16 -0
  46. package/dist/dts/api/general/globals/borderRadius.d.ts +15 -0
  47. package/dist/dts/api/general/globals/color.d.ts +41 -0
  48. package/dist/dts/api/general/globals/index.d.ts +6 -0
  49. package/dist/dts/api/general/globals/opacity.d.ts +16 -0
  50. package/dist/dts/api/general/globals/spacing.d.ts +19 -0
  51. package/dist/dts/api/general/globals/transitionDuration.d.ts +14 -0
  52. package/dist/dts/api/general/globals/zIndex.d.ts +18 -0
  53. package/dist/dts/api/general/hooks/index.d.ts +4 -0
  54. package/dist/dts/api/general/hooks/useConfirmation.d.ts +40 -0
  55. package/dist/dts/api/general/hooks/useModal.d.ts +68 -0
  56. package/dist/dts/api/general/hooks/useNotifications.d.ts +46 -0
  57. package/dist/dts/api/general/hooks/useUserProfile.d.ts +14 -0
  58. package/dist/dts/api/general/index.d.ts +6 -0
  59. package/dist/dts/api/general/mixins/accessibility.d.ts +50 -0
  60. package/dist/dts/api/general/mixins/backgroundColor.d.ts +10 -0
  61. package/dist/dts/api/general/mixins/clickable.d.ts +7 -0
  62. package/dist/dts/api/general/mixins/color.d.ts +10 -0
  63. package/dist/dts/api/general/mixins/customIcon.d.ts +10 -0
  64. package/dist/dts/api/general/mixins/focusBehavior.d.ts +13 -0
  65. package/dist/dts/api/general/mixins/index.d.ts +10 -0
  66. package/dist/dts/api/general/mixins/opacity.d.ts +11 -0
  67. package/dist/dts/api/general/mixins/sizing.d.ts +35 -0
  68. package/dist/dts/api/general/mixins/spacing.d.ts +16 -0
  69. package/dist/dts/api/general/mixins/tooltip.d.ts +9 -0
  70. package/dist/dts/api/general/mutations/batchMutationOptions.d.ts +6 -0
  71. package/dist/dts/api/general/mutations/index.d.ts +10 -0
  72. package/dist/dts/api/general/mutations/item/index.d.ts +24 -0
  73. package/dist/dts/api/general/mutations/item/useAutoClassifyItemMutation.d.ts +20 -0
  74. package/dist/dts/api/general/mutations/item/useAutoClassifyItemsMutation.d.ts +20 -0
  75. package/dist/dts/api/general/mutations/item/useCopyItemMutation.d.ts +20 -0
  76. package/dist/dts/api/general/mutations/item/useCopyItemsMutation.d.ts +20 -0
  77. package/dist/dts/api/general/mutations/item/useDeleteItemMutation.d.ts +20 -0
  78. package/dist/dts/api/general/mutations/item/useDeleteItemsMutation.d.ts +22 -0
  79. package/dist/dts/api/general/mutations/item/useDemoteItemMutation.d.ts +15 -0
  80. package/dist/dts/api/general/mutations/item/useDemoteItemsMutation.d.ts +15 -0
  81. package/dist/dts/api/general/mutations/item/useFinishEditingItemMutation.d.ts +20 -0
  82. package/dist/dts/api/general/mutations/item/useFinishEditingItemsMutation.d.ts +20 -0
  83. package/dist/dts/api/general/mutations/item/useLocalizeItemMutation.d.ts +20 -0
  84. package/dist/dts/api/general/mutations/item/useLocalizeItemsMutation.d.ts +20 -0
  85. package/dist/dts/api/general/mutations/item/useMoveItemMutation.d.ts +24 -0
  86. package/dist/dts/api/general/mutations/item/useMoveItemsMutation.d.ts +24 -0
  87. package/dist/dts/api/general/mutations/item/usePromoteItemMutation.d.ts +16 -0
  88. package/dist/dts/api/general/mutations/item/usePromoteItemsMutation.d.ts +16 -0
  89. package/dist/dts/api/general/mutations/item/usePublishItemsMutation.d.ts +62 -0
  90. package/dist/dts/api/general/mutations/item/useRevertItemMutation.d.ts +20 -0
  91. package/dist/dts/api/general/mutations/item/useRevertItemsMutation.d.ts +20 -0
  92. package/dist/dts/api/general/mutations/item/useRollbackItemMutation.d.ts +29 -0
  93. package/dist/dts/api/general/mutations/item/useUnlocalizeItemMutation.d.ts +21 -0
  94. package/dist/dts/api/general/mutations/item/useUnlocalizeItemsMutation.d.ts +20 -0
  95. package/dist/dts/api/general/mutations/item/useUnpublishItemsMutation.d.ts +46 -0
  96. package/dist/dts/api/general/mutations/item/useUpdateItemMutation.d.ts +16 -0
  97. package/dist/dts/api/general/mutations/mutationOptions.d.ts +38 -0
  98. package/dist/dts/api/general/mutations/mutationResult.d.ts +73 -0
  99. package/dist/dts/api/general/mutations/translation/index.d.ts +1 -0
  100. package/dist/dts/api/general/mutations/translation/useCreateTranslationJobMutation.d.ts +16 -0
  101. package/dist/dts/api/general/mutations/useAddToBundleMutation.d.ts +31 -0
  102. package/dist/dts/api/general/mutations/useChangeUserLanguageMutation.d.ts +20 -0
  103. package/dist/dts/api/general/mutations/useChangeUserLocaleMutation.d.ts +20 -0
  104. package/dist/dts/api/general/mutations/useRemoveFromBundleMutation.d.ts +20 -0
  105. package/dist/dts/api/general/mutations/useUploadMultimediaMutation.d.ts +52 -0
  106. package/dist/dts/api/general/mutations/workflow/index.d.ts +9 -0
  107. package/dist/dts/api/general/mutations/workflow/useAssignActivitiesMutation.d.ts +20 -0
  108. package/dist/dts/api/general/mutations/workflow/useAssignActivityMutation.d.ts +20 -0
  109. package/dist/dts/api/general/mutations/workflow/useFinishActivitiesMutation.d.ts +39 -0
  110. package/dist/dts/api/general/mutations/workflow/useFinishActivityMutation.d.ts +24 -0
  111. package/dist/dts/api/general/mutations/workflow/useRestartActivitiesMutation.d.ts +16 -0
  112. package/dist/dts/api/general/mutations/workflow/useRestartActivityMutation.d.ts +16 -0
  113. package/dist/dts/api/general/mutations/workflow/useStartActivitiesMutation.d.ts +16 -0
  114. package/dist/dts/api/general/mutations/workflow/useStartActivityMutation.d.ts +16 -0
  115. package/dist/dts/api/general/mutations/workflow/useStartWorkflowMutation.d.ts +16 -0
  116. package/dist/dts/api/general/queries/index.d.ts +10 -0
  117. package/dist/dts/api/general/queries/item/index.d.ts +14 -0
  118. package/dist/dts/api/general/queries/item/useItemBlueprintHierarchyQuery.d.ts +20 -0
  119. package/dist/dts/api/general/queries/item/useItemChildrenQuery.d.ts +20 -0
  120. package/dist/dts/api/general/queries/item/useItemClassifiedItemsQuery.d.ts +33 -0
  121. package/dist/dts/api/general/queries/item/useItemDefaultDataQuery.d.ts +26 -0
  122. package/dist/dts/api/general/queries/item/useItemHistoryQuery.d.ts +16 -0
  123. package/dist/dts/api/general/queries/item/useItemPublishUrlsQuery.d.ts +16 -0
  124. package/dist/dts/api/general/queries/item/useItemPublishedPagesQuery.d.ts +16 -0
  125. package/dist/dts/api/general/queries/item/useItemPublishedToQuery.d.ts +16 -0
  126. package/dist/dts/api/general/queries/item/useItemQuery.d.ts +20 -0
  127. package/dist/dts/api/general/queries/item/useItemTranslationInfoQuery.d.ts +16 -0
  128. package/dist/dts/api/general/queries/item/useItemUsedByQuery.d.ts +25 -0
  129. package/dist/dts/api/general/queries/item/useItemUsesQuery.d.ts +21 -0
  130. package/dist/dts/api/general/queries/item/useItemsQuery.d.ts +28 -0
  131. package/dist/dts/api/general/queries/item/usePublicationBlueprintHierarchyQuery.d.ts +20 -0
  132. package/dist/dts/api/general/queries/lists/index.d.ts +6 -0
  133. package/dist/dts/api/general/queries/lists/useContainerItems.d.ts +32 -0
  134. package/dist/dts/api/general/queries/lists/useFavoritesQuery.d.ts +7 -0
  135. package/dist/dts/api/general/queries/lists/useItemsInProgressQuery.d.ts +25 -0
  136. package/dist/dts/api/general/queries/lists/usePublicationsQuery.d.ts +7 -0
  137. package/dist/dts/api/general/queries/lists/useUserGroupsQuery.d.ts +33 -0
  138. package/dist/dts/api/general/queries/lists/useUsersQuery.d.ts +38 -0
  139. package/dist/dts/api/general/queries/loadingState.d.ts +10 -0
  140. package/dist/dts/api/general/queries/publishing/index.d.ts +5 -0
  141. package/dist/dts/api/general/queries/publishing/useItemsToPublishQuery.d.ts +8 -0
  142. package/dist/dts/api/general/queries/publishing/useItemsToUnpublishQuery.d.ts +8 -0
  143. package/dist/dts/api/general/queries/publishing/usePublishTransactionsQuery.d.ts +40 -0
  144. package/dist/dts/api/general/queries/publishing/usePublishableTargetTypesQuery.d.ts +16 -0
  145. package/dist/dts/api/general/queries/publishing/useTargetTypesQuery.d.ts +7 -0
  146. package/dist/dts/api/general/queries/queryOptions.d.ts +67 -0
  147. package/dist/dts/api/general/queries/queryResult.d.ts +93 -0
  148. package/dist/dts/api/general/queries/search/index.d.ts +2 -0
  149. package/dist/dts/api/general/queries/search/useSearchInContainerQuery.d.ts +27 -0
  150. package/dist/dts/api/general/queries/search/useSystemSearchQuery.d.ts +26 -0
  151. package/dist/dts/api/general/queries/translation/index.d.ts +1 -0
  152. package/dist/dts/api/general/queries/translation/useDefaultTranslationJobQuery.d.ts +17 -0
  153. package/dist/dts/api/general/queries/useUserProfileQuery.d.ts +7 -0
  154. package/dist/dts/api/general/queries/workflow/index.d.ts +1 -0
  155. package/dist/dts/api/general/queries/workflow/useActivityInstancesQuery.d.ts +37 -0
  156. package/dist/dts/api/index.d.ts +5 -0
  157. package/dist/dts/api/publishingQueueExplorer/hooks/index.d.ts +2 -0
  158. package/dist/dts/api/publishingQueueExplorer/hooks/usePublishingQueueExplorer.d.ts +62 -0
  159. package/dist/dts/api/publishingQueueExplorer/hooks/usePublishingQueueExplorerTable.d.ts +41 -0
  160. package/dist/dts/api/publishingQueueExplorer/index.d.ts +1 -0
  161. package/dist/dts/apiBridge/activitiesExplorerApiStorage.d.ts +16 -0
  162. package/dist/dts/apiBridge/contentExplorerApiStorage.d.ts +32 -0
  163. package/dist/dts/apiBridge/editors/bundleEditorApiStorage.d.ts +13 -0
  164. package/dist/dts/apiBridge/editors/categoryEditorApiStorage.d.ts +13 -0
  165. package/dist/dts/apiBridge/editors/componentEditorApiStorage.d.ts +13 -0
  166. package/dist/dts/apiBridge/editors/editorsApiStorage.d.ts +28 -0
  167. package/dist/dts/apiBridge/editors/folderEditorApiStorage.d.ts +13 -0
  168. package/dist/dts/apiBridge/editors/index.d.ts +8 -0
  169. package/dist/dts/apiBridge/editors/keywordEditorApiStorage.d.ts +13 -0
  170. package/dist/dts/apiBridge/editors/pageEditorApiStorage.d.ts +13 -0
  171. package/dist/dts/apiBridge/editors/structureGroupEditorApiStorage.d.ts +13 -0
  172. package/dist/dts/apiBridge/extensionApiBridge.d.ts +22 -0
  173. package/dist/dts/apiBridge/generalApiStorage.d.ts +144 -0
  174. package/dist/dts/apiBridge/index.d.ts +6 -0
  175. package/dist/dts/apiBridge/publishingQueueExplorerApiStorage.d.ts +16 -0
  176. package/dist/dts/apiWrappers/activitiesExplorer/hooks.d.ts +39 -0
  177. package/dist/dts/apiWrappers/activitiesExplorer/index.d.ts +1 -0
  178. package/dist/dts/apiWrappers/contentExplorer/components.d.ts +5 -0
  179. package/dist/dts/apiWrappers/contentExplorer/hooks.d.ts +58 -0
  180. package/dist/dts/apiWrappers/contentExplorer/index.d.ts +3 -0
  181. package/dist/dts/apiWrappers/contentExplorer/utils.d.ts +73 -0
  182. package/dist/dts/apiWrappers/editors/hooks.d.ts +63 -0
  183. package/dist/dts/apiWrappers/editors/index.d.ts +1 -0
  184. package/dist/dts/apiWrappers/general/components.d.ts +88 -0
  185. package/dist/dts/apiWrappers/general/globals.d.ts +37 -0
  186. package/dist/dts/apiWrappers/general/hooks.d.ts +25 -0
  187. package/dist/dts/apiWrappers/general/index.d.ts +5 -0
  188. package/dist/dts/apiWrappers/general/mutations/generalMutations.d.ts +30 -0
  189. package/dist/dts/apiWrappers/general/mutations/index.d.ts +4 -0
  190. package/dist/dts/apiWrappers/general/mutations/itemMutations.d.ts +137 -0
  191. package/dist/dts/apiWrappers/general/mutations/translationMutations.d.ts +5 -0
  192. package/dist/dts/apiWrappers/general/mutations/workflowMutations.d.ts +47 -0
  193. package/dist/dts/apiWrappers/general/queries/generalQueries.d.ts +7 -0
  194. package/dist/dts/apiWrappers/general/queries/index.d.ts +7 -0
  195. package/dist/dts/apiWrappers/general/queries/itemQueries.d.ts +85 -0
  196. package/dist/dts/apiWrappers/general/queries/listsQueries.d.ts +25 -0
  197. package/dist/dts/apiWrappers/general/queries/publishingQueries.d.ts +19 -0
  198. package/dist/dts/apiWrappers/general/queries/searchQueries.d.ts +13 -0
  199. package/dist/dts/apiWrappers/general/queries/translationQueries.d.ts +5 -0
  200. package/dist/dts/apiWrappers/general/queries/workflowQueries.d.ts +5 -0
  201. package/dist/dts/apiWrappers/index.d.ts +5 -0
  202. package/dist/dts/apiWrappers/publishingQueueExplorer/hooks.d.ts +39 -0
  203. package/dist/dts/apiWrappers/publishingQueueExplorer/index.d.ts +1 -0
  204. package/dist/dts/extensionPoints/actionsConfiguration/actionExtension.d.ts +43 -0
  205. package/dist/dts/extensionPoints/actionsConfiguration/actionGroup.d.ts +20 -0
  206. package/dist/dts/extensionPoints/actionsConfiguration/actionsConfigurationExtension.d.ts +10 -0
  207. package/dist/dts/extensionPoints/actionsConfiguration/actionsConfigurationExtensionsBuilder.d.ts +70 -0
  208. package/dist/dts/extensionPoints/actionsConfiguration/index.d.ts +4 -0
  209. package/dist/dts/extensionPoints/activitiesExplorer/activitiesExplorerActions.d.ts +40 -0
  210. package/dist/dts/extensionPoints/activitiesExplorer/activitiesExplorerExtensions.d.ts +11 -0
  211. package/dist/dts/extensionPoints/activitiesExplorer/activitiesExplorerExtensionsBuilder.d.ts +25 -0
  212. package/dist/dts/extensionPoints/activitiesExplorer/index.d.ts +5 -0
  213. package/dist/dts/extensionPoints/activitiesExplorer/insightsPanels/activitiesExplorerInsightsPanelsExtension.d.ts +18 -0
  214. package/dist/dts/extensionPoints/activitiesExplorer/insightsPanels/activitiesExplorerInsightsPanelsExtensions.d.ts +9 -0
  215. package/dist/dts/extensionPoints/activitiesExplorer/insightsPanels/activitiesExplorerInsightsPanelsExtensionsBuilder.d.ts +24 -0
  216. package/dist/dts/extensionPoints/activitiesExplorer/insightsPanels/index.d.ts +3 -0
  217. package/dist/dts/extensionPoints/activitiesExplorer/table/activitiesExplorerTableActions.d.ts +41 -0
  218. package/dist/dts/extensionPoints/activitiesExplorer/table/activitiesExplorerTableColumnExtension.d.ts +20 -0
  219. package/dist/dts/extensionPoints/activitiesExplorer/table/activitiesExplorerTableExtensions.d.ts +10 -0
  220. package/dist/dts/extensionPoints/activitiesExplorer/table/activitiesExplorerTableExtensionsBuilder.d.ts +26 -0
  221. package/dist/dts/extensionPoints/activitiesExplorer/table/index.d.ts +3 -0
  222. package/dist/dts/extensionPoints/contentEditor/contentEditorExtensions.d.ts +11 -0
  223. package/dist/dts/extensionPoints/contentEditor/contentEditorExtensionsBuilder.d.ts +15 -0
  224. package/dist/dts/extensionPoints/contentEditor/contentEditorFormFieldExtension.d.ts +85 -0
  225. package/dist/dts/extensionPoints/contentEditor/contentEditorViewExtension.d.ts +69 -0
  226. package/dist/dts/extensionPoints/contentEditor/index.d.ts +5 -0
  227. package/dist/dts/extensionPoints/contentEditor/richTextField/index.d.ts +2 -0
  228. package/dist/dts/extensionPoints/contentEditor/richTextField/richTextFieldExtensions.d.ts +64 -0
  229. package/dist/dts/extensionPoints/contentEditor/richTextField/richTextFieldExtensionsBuilder.d.ts +11 -0
  230. package/dist/dts/extensionPoints/contentExplorer/contentExplorerActions.d.ts +86 -0
  231. package/dist/dts/extensionPoints/contentExplorer/contentExplorerExtensions.d.ts +13 -0
  232. package/dist/dts/extensionPoints/contentExplorer/contentExplorerExtensionsBuilder.d.ts +30 -0
  233. package/dist/dts/extensionPoints/contentExplorer/index.d.ts +6 -0
  234. package/dist/dts/extensionPoints/contentExplorer/insightsPanels/contentExplorerInsightsPanelsExtension.d.ts +18 -0
  235. package/dist/dts/extensionPoints/contentExplorer/insightsPanels/contentExplorerInsightsPanelsExtensions.d.ts +9 -0
  236. package/dist/dts/extensionPoints/contentExplorer/insightsPanels/contentExplorerInsightsPanelsExtensionsBuilder.d.ts +24 -0
  237. package/dist/dts/extensionPoints/contentExplorer/insightsPanels/index.d.ts +3 -0
  238. package/dist/dts/extensionPoints/contentExplorer/table/contentExplorerTableColumnExtension.d.ts +20 -0
  239. package/dist/dts/extensionPoints/contentExplorer/table/contentExplorerTableExtensions.d.ts +10 -0
  240. package/dist/dts/extensionPoints/contentExplorer/table/contentExplorerTableExtensionsBuilder.d.ts +26 -0
  241. package/dist/dts/extensionPoints/contentExplorer/table/index.d.ts +3 -0
  242. package/dist/dts/extensionPoints/contentExplorer/tree/contentExplorerTreeExtensions.d.ts +7 -0
  243. package/dist/dts/extensionPoints/contentExplorer/tree/contentExplorerTreeExtensionsBuilder.d.ts +13 -0
  244. package/dist/dts/extensionPoints/contentExplorer/tree/index.d.ts +2 -0
  245. package/dist/dts/extensionPoints/extensionBuilder.d.ts +37 -0
  246. package/dist/dts/extensionPoints/extensionPoints.d.ts +17 -0
  247. package/dist/dts/extensionPoints/header/headerExtensions.d.ts +7 -0
  248. package/dist/dts/extensionPoints/header/headerExtensionsBuilder.d.ts +12 -0
  249. package/dist/dts/extensionPoints/header/index.d.ts +3 -0
  250. package/dist/dts/extensionPoints/header/navigation/index.d.ts +4 -0
  251. package/dist/dts/extensionPoints/header/navigation/navigationExtensions.d.ts +9 -0
  252. package/dist/dts/extensionPoints/header/navigation/navigationExtensionsBuilder.d.ts +24 -0
  253. package/dist/dts/extensionPoints/header/navigation/navigationItem.d.ts +65 -0
  254. package/dist/dts/extensionPoints/header/navigation/navigationItems.d.ts +20 -0
  255. package/dist/dts/extensionPoints/index.d.ts +12 -0
  256. package/dist/dts/extensionPoints/insightsPanels/index.d.ts +1 -0
  257. package/dist/dts/extensionPoints/insightsPanels/insightsPanelsExtension.d.ts +39 -0
  258. package/dist/dts/extensionPoints/listBuilder/index.d.ts +3 -0
  259. package/dist/dts/extensionPoints/listBuilder/listBuilder.d.ts +12 -0
  260. package/dist/dts/extensionPoints/listBuilder/listBuilderExtension.d.ts +12 -0
  261. package/dist/dts/extensionPoints/listBuilder/utils/addItem.d.ts +14 -0
  262. package/dist/dts/extensionPoints/listBuilder/utils/findItemIndex.d.ts +13 -0
  263. package/dist/dts/extensionPoints/listBuilder/utils/index.d.ts +5 -0
  264. package/dist/dts/extensionPoints/listBuilder/utils/moveItem.d.ts +14 -0
  265. package/dist/dts/extensionPoints/listBuilder/utils/removeItem.d.ts +13 -0
  266. package/dist/dts/extensionPoints/listBuilder/utils/replaceItem.d.ts +14 -0
  267. package/dist/dts/extensionPoints/publishingQueueExplorer/index.d.ts +5 -0
  268. package/dist/dts/extensionPoints/publishingQueueExplorer/insightsPanels/index.d.ts +3 -0
  269. package/dist/dts/extensionPoints/publishingQueueExplorer/insightsPanels/publishingQueueExplorerInsightsPanelsExtension.d.ts +18 -0
  270. package/dist/dts/extensionPoints/publishingQueueExplorer/insightsPanels/publishingQueueExplorerInsightsPanelsExtensions.d.ts +9 -0
  271. package/dist/dts/extensionPoints/publishingQueueExplorer/insightsPanels/publishingQueueExplorerInsightsPanelsExtensionsBuilder.d.ts +24 -0
  272. package/dist/dts/extensionPoints/publishingQueueExplorer/publishingQueueExplorerActions.d.ts +39 -0
  273. package/dist/dts/extensionPoints/publishingQueueExplorer/publishingQueueExplorerExtensions.d.ts +11 -0
  274. package/dist/dts/extensionPoints/publishingQueueExplorer/publishingQueueExplorerExtensionsBuilder.d.ts +25 -0
  275. package/dist/dts/extensionPoints/publishingQueueExplorer/table/index.d.ts +3 -0
  276. package/dist/dts/extensionPoints/publishingQueueExplorer/table/publishingQueueExplorerTableActions.d.ts +39 -0
  277. package/dist/dts/extensionPoints/publishingQueueExplorer/table/publishingQueueExplorerTableColumnExtension.d.ts +20 -0
  278. package/dist/dts/extensionPoints/publishingQueueExplorer/table/publishingQueueExplorerTableExtensions.d.ts +10 -0
  279. package/dist/dts/extensionPoints/publishingQueueExplorer/table/publishingQueueExplorerTableExtensionsBuilder.d.ts +26 -0
  280. package/dist/dts/extensionPoints/tableColumnConfiguration/index.d.ts +1 -0
  281. package/dist/dts/extensionPoints/tableColumnConfiguration/tableColumnExtension.d.ts +70 -0
  282. package/dist/dts/extensionPoints/translations/index.d.ts +3 -0
  283. package/dist/dts/extensionPoints/translations/translationExtensions.d.ts +7 -0
  284. package/dist/dts/extensionPoints/translations/translationExtensionsBuilder.d.ts +17 -0
  285. package/dist/dts/extensionPoints/translations/translationItem.d.ts +23 -0
  286. package/dist/dts/frameworkInfo.d.ts +7 -0
  287. package/dist/dts/index.d.ts +6 -0
  288. package/dist/dts/module/createExtensionGlobals.d.ts +11 -0
  289. package/dist/dts/module/extensionGlobals.d.ts +7 -0
  290. package/dist/dts/module/extensionModule.d.ts +11 -0
  291. package/dist/dts/module/index.d.ts +4 -0
  292. package/dist/dts/module/runtimeInformation.d.ts +7 -0
  293. package/dist/index.d.ts +529 -97
  294. package/dist/index.js +151 -27
  295. package/package.json +5 -5
@@ -0,0 +1,32 @@
1
+ import type { Folder, Schema } from '@tridion-sites/models';
2
+ /**
3
+ * @public
4
+ */
5
+ export interface FolderEditorHookResult {
6
+ /**
7
+ * Editable Folder.
8
+ */
9
+ folder: Folder;
10
+ /**
11
+ * Folder's metadata schema.
12
+ */
13
+ metadataSchema: Schema | undefined;
14
+ /**
15
+ * Boolean that indicates that Folder has unsaved changes.
16
+ */
17
+ isChanged: boolean;
18
+ /**
19
+ * Boolean that indicates that Folder can be edited.
20
+ */
21
+ isEditing: boolean;
22
+ }
23
+ /**
24
+ * Hook for accessing Folder Editor data when available.
25
+ *
26
+ * @remarks
27
+ * Safe to be used within or outside of the Folder Editor.
28
+ * `undefined` is returned when used outside of Folder Editor.
29
+ *
30
+ * @public
31
+ */
32
+ export type OptionalFolderEditorHook = () => FolderEditorHookResult | undefined;
@@ -0,0 +1 @@
1
+ export * from './useEditor';
@@ -0,0 +1,40 @@
1
+ import type { Bundle, Component, Folder, Keyword, KeywordCategory, MultimediaComponent, Page, Schema, StructureGroup } from '@tridion-sites/models';
2
+ /**
3
+ * @public
4
+ */
5
+ export interface EditorHookResult {
6
+ /**
7
+ * Editable item.
8
+ */
9
+ item: Bundle | KeywordCategory | Component | MultimediaComponent | Folder | Keyword | Page | StructureGroup;
10
+ /**
11
+ * Item's metadata schema.
12
+ */
13
+ schema: Schema | undefined;
14
+ /**
15
+ * Boolean that indicates that Item has unsaved changes.
16
+ */
17
+ isChanged: boolean;
18
+ /**
19
+ * Boolean that indicates that item can be edited.
20
+ */
21
+ isEditing: boolean;
22
+ /**
23
+ * Callback to update internal editor state.
24
+ */
25
+ onUpdate: (item: Bundle | KeywordCategory | Component | MultimediaComponent | Folder | Keyword | Page | StructureGroup) => void;
26
+ }
27
+ /**
28
+ * @public
29
+ */
30
+ export type EditorHook = () => EditorHookResult;
31
+ /**
32
+ * Hook for accessing Item Editor data when available.
33
+ *
34
+ * @remarks
35
+ * Safe to be used within or outside of the Item Editor.
36
+ * `undefined` is returned when used outside of Item Editor.
37
+ *
38
+ * @public
39
+ */
40
+ export type OptionalEditorHook = () => EditorHookResult | undefined;
@@ -0,0 +1,8 @@
1
+ export * from './component/hooks';
2
+ export * from './bundle/hooks';
3
+ export * from './category/hooks';
4
+ export * from './folder/hooks';
5
+ export * from './hooks';
6
+ export * from './keyword/hooks';
7
+ export * from './page/hooks';
8
+ export * from './structureGroup/hooks';
@@ -0,0 +1 @@
1
+ export * from './useKeywordEditor';
@@ -0,0 +1,32 @@
1
+ import type { Keyword, Schema } from '@tridion-sites/models';
2
+ /**
3
+ * @public
4
+ */
5
+ export interface KeywordEditorHookResult {
6
+ /**
7
+ * Editable Keyword.
8
+ */
9
+ keyword: Keyword;
10
+ /**
11
+ * Keyword's metadata schema.
12
+ */
13
+ metadataSchema: Schema | undefined;
14
+ /**
15
+ * Boolean that indicates that Keyword has unsaved changes.
16
+ */
17
+ isChanged: boolean;
18
+ /**
19
+ * Boolean that indicates that Keyword can be edited.
20
+ */
21
+ isEditing: boolean;
22
+ }
23
+ /**
24
+ * Hook for accessing Keyword Editor data when available.
25
+ *
26
+ * @remarks
27
+ * Safe to be used within or outside of the Keyword Editor.
28
+ * `undefined` is returned when used outside of Keyword Editor.
29
+ *
30
+ * @public
31
+ */
32
+ export type OptionalKeywordEditorHook = () => KeywordEditorHookResult | undefined;
@@ -0,0 +1 @@
1
+ export * from './usePageEditor';
@@ -0,0 +1,40 @@
1
+ import type { Page, PageTemplate, Schema } from '@tridion-sites/models';
2
+ /**
3
+ * @public
4
+ */
5
+ export interface PageEditorHookResult {
6
+ /**
7
+ * Editable Page.
8
+ */
9
+ page: Page;
10
+ /**
11
+ * Template that is used to publish Page with.
12
+ */
13
+ pageTemplate: PageTemplate | undefined;
14
+ /**
15
+ * Page's metadata schema.
16
+ */
17
+ metadataSchema: Schema | undefined;
18
+ /**
19
+ * Boolean that indicates that Page has unsaved changes.
20
+ */
21
+ isChanged: boolean;
22
+ /**
23
+ * Boolean that indicates that Page can be edited.
24
+ */
25
+ isEditing: boolean;
26
+ /**
27
+ * Boolean that indicates whether any components in the page have unsaved changes.
28
+ */
29
+ hasUnsavedRelatives: boolean;
30
+ }
31
+ /**
32
+ * Hook for accessing Page Editor data when available.
33
+ *
34
+ * @remarks
35
+ * Safe to be used within or outside of the Page Editor.
36
+ * `undefined` is returned when used outside of Page Editor.
37
+ *
38
+ * @public
39
+ */
40
+ export type OptionalPageEditorHook = () => PageEditorHookResult | undefined;
@@ -0,0 +1 @@
1
+ export * from './useStructureGroupEditor';
@@ -0,0 +1,32 @@
1
+ import type { Schema, StructureGroup } from '@tridion-sites/models';
2
+ /**
3
+ * @public
4
+ */
5
+ export interface StructureGroupEditorHookResult {
6
+ /**
7
+ * Editable Structure Group.
8
+ */
9
+ structureGroup: StructureGroup;
10
+ /**
11
+ * Structure Group's metadata schema.
12
+ */
13
+ metadataSchema: Schema | undefined;
14
+ /**
15
+ * Boolean that indicates that Structure Group has unsaved changes.
16
+ */
17
+ isChanged: boolean;
18
+ /**
19
+ * Boolean that indicates that Structure Group can be edited.
20
+ */
21
+ isEditing: boolean;
22
+ }
23
+ /**
24
+ * Hook for accessing Structure Group Editor data when available.
25
+ *
26
+ * @remarks
27
+ * Safe to be used within or outside of the Structure Group Editor.
28
+ * `undefined` is returned when used outside of Structure Group Editor.
29
+ *
30
+ * @public
31
+ */
32
+ export type OptionalStructureGroupEditorHook = () => StructureGroupEditorHookResult | undefined;
@@ -0,0 +1,33 @@
1
+ import type { ForwardRefExoticComponent, MouseEvent, RefAttributes } from 'react';
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ButtonProps extends RefAttributes<HTMLElement> {
6
+ /**
7
+ * Callback executed when the button is clicked.
8
+ */
9
+ onClick: (event: MouseEvent) => void;
10
+ /**
11
+ * If `true`, the element is displayed in a disabled state.
12
+ */
13
+ isDisabled?: boolean;
14
+ /**
15
+ * If `true`, the element shows a processing indicator.
16
+ */
17
+ isProcessing?: boolean;
18
+ /**
19
+ * Text that is displayed inside button, i.e., the button label.
20
+ * If omitted, you must provide a `tooltip`.
21
+ */
22
+ label?: string;
23
+ /**
24
+ * A tooltip text that is displayed when the element is hovered.
25
+ * Can be omitted if `label` is specified. Required if there is no `label` specified.
26
+ * For accessibility purposes, the tooltip is only displayed when it differs from the label.
27
+ */
28
+ tooltip?: string;
29
+ }
30
+ /**
31
+ * @public
32
+ */
33
+ export type ButtonComponent = ForwardRefExoticComponent<ButtonProps>;
@@ -0,0 +1,19 @@
1
+ import type { FunctionComponent, ReactNode } from 'react';
2
+ import type { ColorProps, SizeProps, SpaceProps, TooltipProps } from "../..";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface IconProps extends TooltipProps, SpaceProps, SizeProps, ColorProps {
7
+ /**
8
+ * ViewBox of the provided content.
9
+ */
10
+ viewBox: string;
11
+ /**
12
+ * SVG content to render.
13
+ */
14
+ children: ReactNode;
15
+ }
16
+ /**
17
+ * @public
18
+ */
19
+ export type IconComponent = FunctionComponent<IconProps>;
@@ -0,0 +1,7 @@
1
+ export * from './button';
2
+ export * from './icon';
3
+ export * from './layout';
4
+ export * from './link';
5
+ export * from './modal';
6
+ export * from './text';
7
+ export * from './textLink';
@@ -0,0 +1,55 @@
1
+ import type { CSSProperties, DragEvent, FocusEvent, ForwardRefExoticComponent, KeyboardEvent, MouseEvent, ReactHTML, ReactNode, RefAttributes } from 'react';
2
+ import type { AriaProps, BackgroundColorProps, ClickableProps, FocusBehaviorProps, OpacityProps, SizeProps, SpaceProps, TooltipProps } from "../../..";
3
+ /**
4
+ * @public
5
+ */
6
+ export type Tag = keyof ReactHTML;
7
+ /**
8
+ * @public
9
+ */
10
+ export interface BlockProps extends RefAttributes<HTMLElement>, SpaceProps, SizeProps, ClickableProps, BackgroundColorProps, OpacityProps, TooltipProps, FocusBehaviorProps {
11
+ /**
12
+ * Accessibility-related props.
13
+ */
14
+ aria?: Partial<AriaProps>;
15
+ /**
16
+ * The Block's content.
17
+ */
18
+ children?: ReactNode;
19
+ /**
20
+ * Custom CSS class that should be passed to the node.
21
+ * Should be used for custom styling that is not covered by other properties.
22
+ */
23
+ className?: string;
24
+ /**
25
+ * Custom CSS style that would be applied to the node directly.
26
+ * Useful for frequently changing styles, e.g., animation.
27
+ * In the case of less frequent updates it is preferable to use 'className' prop.
28
+ */
29
+ cssStyle?: CSSProperties;
30
+ /**
31
+ * Should content be scrollable?
32
+ * Scrollbar will not appear if content doesn't overflow Block (i.e: if Block's size is not restricted).
33
+ */
34
+ hasScroll?: boolean;
35
+ /**
36
+ * The HTML tag that should be used for this component.
37
+ */
38
+ tag?: Tag;
39
+ onBlur?: (event: FocusEvent<HTMLElement>) => void;
40
+ onFocus?: (event: FocusEvent<HTMLElement>) => void;
41
+ onKeyDown?: (event: KeyboardEvent<HTMLElement>) => void;
42
+ onMouseDown?: (event: MouseEvent<HTMLElement>) => void;
43
+ onMouseEnter?: (event: MouseEvent<HTMLElement>) => void;
44
+ onMouseLeave?: (event: MouseEvent<HTMLElement>) => void;
45
+ onDragEnter?: (event: DragEvent<HTMLElement>) => void;
46
+ onDragLeave?: (event: DragEvent<HTMLElement>) => void;
47
+ onDragOver?: (event: DragEvent<HTMLElement>) => void;
48
+ onDrop?: (event: DragEvent<HTMLElement>) => void;
49
+ onDoubleClick?: (event: MouseEvent<HTMLElement>) => void;
50
+ onContextMenu?: (event: MouseEvent<HTMLElement>) => void;
51
+ }
52
+ /**
53
+ * @public
54
+ */
55
+ export type BlockComponent = ForwardRefExoticComponent<BlockProps>;
@@ -0,0 +1,12 @@
1
+ import type { ForwardRefExoticComponent } from 'react';
2
+ import type { FlexProps } from "../../..";
3
+ import type { Without } from '@tridion/graphene';
4
+ /**
5
+ * @public
6
+ */
7
+ export interface CenterProps extends Without<FlexProps, 'mainAxis' | 'crossAxis'> {
8
+ }
9
+ /**
10
+ * @public
11
+ */
12
+ export type CenterComponent = ForwardRefExoticComponent<CenterProps>;
@@ -0,0 +1,50 @@
1
+ import type { ForwardRefExoticComponent } from 'react';
2
+ import type { BlockProps } from "../../..";
3
+ /**
4
+ * @public
5
+ */
6
+ export type AxisDirection = 'row' | 'column';
7
+ /**
8
+ * @public
9
+ */
10
+ export type MainAxisAlignment = 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
11
+ /**
12
+ * @public
13
+ */
14
+ export type CrossAxisAlignment = 'start' | 'center' | 'end' | 'stretch';
15
+ /**
16
+ * @public
17
+ */
18
+ export interface FlexProps extends BlockProps {
19
+ /**
20
+ * Defines how items are placed in the container.
21
+ */
22
+ direction?: AxisDirection;
23
+ /**
24
+ * Item alignment on the main axis.
25
+ */
26
+ mainAxis?: MainAxisAlignment;
27
+ /**
28
+ * Item alignment on the cross axis.
29
+ * Items are centered by default if direction="row".
30
+ */
31
+ crossAxis?: CrossAxisAlignment;
32
+ /**
33
+ * Render as an inline-level element or as a block-level one?
34
+ */
35
+ inline?: boolean;
36
+ /**
37
+ * Whether flex items are forced onto one line or can wrap onto multiple lines.
38
+ */
39
+ shouldWrap?: boolean;
40
+ /**
41
+ * Take available space in the parent.
42
+ * The parent is required to be Flex for this property to work.
43
+ * Multiple components with this property set to true are going to split available space equally between them.
44
+ */
45
+ shouldFill?: boolean;
46
+ }
47
+ /**
48
+ * @public
49
+ */
50
+ export type FlexComponent = ForwardRefExoticComponent<FlexProps>;
@@ -0,0 +1,4 @@
1
+ export * from './block';
2
+ export * from './center';
3
+ export * from './flex';
4
+ export * from './stack';
@@ -0,0 +1,39 @@
1
+ import type { ForwardRefExoticComponent } from 'react';
2
+ import type { BlockProps, SpacingUnit } from "../../..";
3
+ /**
4
+ * @public
5
+ */
6
+ export type StackAlignment = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
7
+ /**
8
+ * @public
9
+ */
10
+ export type StackDirection = 'row' | 'column';
11
+ /**
12
+ * @public
13
+ */
14
+ export interface StackProps extends BlockProps {
15
+ /**
16
+ * The direction in which items are going to stack.
17
+ */
18
+ direction: StackDirection;
19
+ /**
20
+ * The spacing between items in the stack.
21
+ */
22
+ itemGap: SpacingUnit;
23
+ /**
24
+ * How items should be aligned vertically.
25
+ */
26
+ verticalAlignment?: StackAlignment;
27
+ /**
28
+ * How items should be aligned horizontally.
29
+ */
30
+ horizontalAlignment?: StackAlignment;
31
+ /**
32
+ * Render as an inline-level element or as a block-level one?
33
+ */
34
+ inline?: boolean;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export type StackComponent = ForwardRefExoticComponent<StackProps>;
@@ -0,0 +1,29 @@
1
+ import type { FunctionComponent, ReactNode } from 'react';
2
+ /**
3
+ * @public
4
+ */
5
+ export interface LinkProps {
6
+ /**
7
+ * String that represents a valid path to the external or internal source. The relative path always starts with `/`, otherwise it's treated as an absolute path.
8
+ * Relative to the current directory path is not supported (ex. `subfolder`).
9
+ *
10
+ * @example `/explorer` or `https://www.website.com`.
11
+ */
12
+ to: string;
13
+ /**
14
+ * Boolean that indicates whether a link should be opened in new tab.
15
+ */
16
+ openInNewTab?: boolean;
17
+ /**
18
+ * String that is shown as tooltip on hover.
19
+ */
20
+ tooltip?: string;
21
+ /**
22
+ * The content to be rendered inside the Link component.
23
+ */
24
+ children?: ReactNode;
25
+ }
26
+ /**
27
+ * @public
28
+ */
29
+ export type LinkComponent = FunctionComponent<LinkProps>;
@@ -0,0 +1,61 @@
1
+ import type { FunctionComponent, ReactNode } from 'react';
2
+ import type { FlexProps } from './layout';
3
+ /**
4
+ * @public
5
+ */
6
+ export interface ModalHeaderComponentProps {
7
+ /**
8
+ * React node that is rendered as a title of the Modal component, includes expand and close buttons by default.
9
+ */
10
+ title?: ReactNode;
11
+ }
12
+ /**
13
+ * @public
14
+ */
15
+ export type ModalHeaderComponent = FunctionComponent<ModalHeaderComponentProps>;
16
+ /**
17
+ * @public
18
+ */
19
+ export interface ModalFooterComponentProps {
20
+ /**
21
+ * Label for the Cancel button of the Modal.
22
+ */
23
+ cancelButtonLabel?: string;
24
+ /**
25
+ * Boolean that indicates disabled state of the Cancel button.
26
+ */
27
+ isCancelButtonDisabled?: boolean;
28
+ /**
29
+ * Boolean that indicates disabled state of the Ok button.
30
+ */
31
+ isOkButtonDisabled?: boolean;
32
+ /**
33
+ * Label for the Ok button of the Modal.
34
+ */
35
+ okButtonLabel?: string;
36
+ /**
37
+ * Callback executed when Ok button clicked.
38
+ */
39
+ onOk?: () => void;
40
+ /**
41
+ * Callback executed when Cancel button clicked.
42
+ */
43
+ onCancel?: () => void;
44
+ }
45
+ /**
46
+ * @public
47
+ */
48
+ export type ModalFooterComponent = FunctionComponent<ModalFooterComponentProps>;
49
+ /**
50
+ * @public
51
+ */
52
+ export interface ModalContentComponentProps extends FlexProps {
53
+ /**
54
+ * Content of the Modal.
55
+ */
56
+ children: ReactNode;
57
+ }
58
+ /**
59
+ * @public
60
+ */
61
+ export type ModalContentComponent = FunctionComponent<ModalContentComponentProps>;
@@ -0,0 +1,82 @@
1
+ import type { FunctionComponent, ReactNode } from 'react';
2
+ import type { ColorProps, TooltipProps } from '../mixins';
3
+ /**
4
+ * @public
5
+ */
6
+ export type TextTag = 'div' | 'span' | 'h1' | 'h2' | 'h3';
7
+ /**
8
+ * @public
9
+ */
10
+ export type TextAlignment = 'left' | 'center' | 'right' | 'justify';
11
+ /**
12
+ * @public
13
+ */
14
+ export type TextDirection = 'leftToRight' | 'rightToLeft';
15
+ /**
16
+ * @public
17
+ */
18
+ export type TextType = 'heading1' | 'heading2' | 'heading3' | 'default' | 'defaultBold' | 'small' | 'smallBold';
19
+ /**
20
+ * @public
21
+ */
22
+ export interface TextProps extends ColorProps, TooltipProps {
23
+ /**
24
+ * The alignment of the text in the container.
25
+ */
26
+ alignment?: TextAlignment;
27
+ /**
28
+ * Determines whether the text should break words if they exceed the container width.
29
+ * Note that it can be used in combination with `multiLine: true` only, since single line text is truncated by default.
30
+ */
31
+ breakWord?: boolean;
32
+ /**
33
+ * The content to be rendered inside the Text component.
34
+ */
35
+ children?: ReactNode;
36
+ /**
37
+ * Determines whether the Text component should have compact spacing.
38
+ * If set to `true`, the line height of the text will be reduced.
39
+ */
40
+ compact?: boolean;
41
+ /**
42
+ * The direction of the text.
43
+ */
44
+ direction?: TextDirection;
45
+ /**
46
+ * Allow text to flow over multiple lines.
47
+ * By default it's a single line text with truncation enabled.
48
+ */
49
+ multiLine?: boolean;
50
+ /**
51
+ * Option to make text non-selectable by the user.
52
+ */
53
+ notSelectable?: boolean;
54
+ /**
55
+ * The HTML tag to be used for rendering the Text component. Overrides default tag defined by `type`.
56
+ */
57
+ tag?: TextTag;
58
+ /**
59
+ * Preset that consist of specific styling (size, weight, etc) and HTML tag.
60
+ *
61
+ * - `heading1` - usually represents a top-level heading or title. It is styled as a large and prominent text. By default `<h1>` HTML tag is used.
62
+ * - `heading2` - a secondary-level heading. It is styled as a slightly smaller text compared to `heading1`. By default `<h2>` HTML tag is used.
63
+ * - `heading3` - a tertiary-level heading. It is styled as a smaller text compared to `heading2`. By default `<h3>` HTML tag is used.
64
+ * - `default` - default style for regular text. It is styled as a standard paragraph text. By default `<div>` HTML tag used.
65
+ * - `defaultBold` - the default style for bold text. It is styled similarly to `default` but with added font-weight. By default `<div>` HTML tag is used.
66
+ * - `small` - a smaller size for text. It is typically used for captions, footnotes, or other smaller pieces of text. By default `<div>` HTML tag is used.
67
+ * - `smallBold` - a smaller size for bold text. It combines the smaller size of 'small' with the added font-weight. By default `<div>` HTML tag is used.
68
+ */
69
+ type?: TextType;
70
+ /**
71
+ * Determines whether the text should have an underline.
72
+ */
73
+ underline?: boolean;
74
+ /**
75
+ * Determines whether the text should be displayed in uppercase.
76
+ */
77
+ uppercase?: boolean;
78
+ }
79
+ /**
80
+ * @public
81
+ */
82
+ export type TextComponent = FunctionComponent<TextProps>;
@@ -0,0 +1,16 @@
1
+ import type { FunctionComponent } from 'react';
2
+ import type { LinkProps } from './link';
3
+ import type { TextProps } from './text';
4
+ /**
5
+ * @public
6
+ */
7
+ export interface TextLinkProps extends TextProps, LinkProps {
8
+ /**
9
+ * String that is rendered as a link.
10
+ */
11
+ text: string;
12
+ }
13
+ /**
14
+ * @public
15
+ */
16
+ export type TextLinkComponent = FunctionComponent<TextLinkProps>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @public
3
+ */
4
+ export interface BorderRadius {
5
+ small: number;
6
+ large: number;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export type BorderRadiusGetter = () => BorderRadius;
12
+ /**
13
+ * @public
14
+ */
15
+ export type BorderRadiusUnit = keyof BorderRadius;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @public
3
+ */
4
+ export interface ColorPalette {
5
+ transparent: string;
6
+ brandLight: string;
7
+ brandPrimary: string;
8
+ brandAccessible: string;
9
+ brandDark: string;
10
+ gray0: string;
11
+ gray10: string;
12
+ gray20: string;
13
+ gray50: string;
14
+ gray80: string;
15
+ gray100: string;
16
+ gray120: string;
17
+ gray180: string;
18
+ blue50: string;
19
+ blue100: string;
20
+ red50: string;
21
+ red100: string;
22
+ red120: string;
23
+ orange50: string;
24
+ orange100: string;
25
+ magenta50: string;
26
+ magenta100: string;
27
+ magenta120: string;
28
+ yellow10: string;
29
+ yellow50: string;
30
+ yellow100: string;
31
+ yellow120: string;
32
+ yellow140: string;
33
+ }
34
+ /**
35
+ * @public
36
+ */
37
+ export type ColorPaletteGetter = () => ColorPalette;
38
+ /**
39
+ * @public
40
+ */
41
+ export type Color = keyof ColorPalette;