@pitcher/js-api 1.25.0-beta.3 → 1.25.1

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 (316) hide show
  1. package/js-api.esm.js +126 -12
  2. package/js-api.esm.js.map +1 -1
  3. package/js-api.umd.min.js +10 -10
  4. package/js-api.umd.min.js.map +1 -1
  5. package/lib/apps/agenda-selector/components/modals/ApplicationBlockSelectorModal.vue.d.ts +4 -4
  6. package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +2 -0
  7. package/lib/apps/assets-manager/App.vue.d.ts +75 -0
  8. package/lib/apps/assets-manager/AssetsTab.vue.d.ts +22 -0
  9. package/lib/apps/assets-manager/components/AssetGridItem.vue.d.ts +16 -0
  10. package/lib/apps/browser/App.vue.d.ts +7 -5
  11. package/lib/apps/browser/appTypes.d.ts +4 -0
  12. package/lib/apps/browser/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +3 -0
  13. package/lib/apps/browser/components/Content/ActionsToolbar/BulkShareboxWarningModal.vue.d.ts +15 -0
  14. package/lib/apps/browser/components/Content/ActionsToolbar/SelectionActions.vue.d.ts +1 -1
  15. package/lib/apps/browser/components/Content/Common/SmartFolderListItem.vue.d.ts +4 -0
  16. package/lib/apps/browser/components/FileSmartFoldersToolbar.vue.d.ts +2 -2
  17. package/lib/apps/browser/components/UploadFilesModal/UploadFilesModal.vue.d.ts +9 -5
  18. package/lib/apps/browser/components/UploadFilesModal/UploadFilesModalProperties.vue.d.ts +5 -1
  19. package/lib/apps/browser/stores/api.d.ts +32 -12
  20. package/lib/apps/browser/stores/app.d.ts +3 -0
  21. package/lib/apps/browser/stores/upload.d.ts +16 -20
  22. package/lib/apps/browser/types/actionKeys.d.ts +22 -0
  23. package/lib/apps/canvas-builder/App.helpers.d.ts +2 -1
  24. package/lib/apps/canvas-builder/App.vue.d.ts +323 -262
  25. package/lib/apps/canvas-builder/components/container/AddComponentModal/AddComponentModal.vue.d.ts +4 -4
  26. package/lib/apps/canvas-builder/components/container/AnnotationMenu/AnnotationMenu.vue.d.ts +60 -0
  27. package/lib/apps/canvas-builder/components/container/CanvasCompletionWizard/CanvasCompletionWizard.vue.d.ts +12 -0
  28. package/lib/apps/canvas-builder/components/container/CanvasContent/AnnotationContent.vue.d.ts +8 -0
  29. package/lib/apps/canvas-builder/components/container/CanvasContent/CanvasContent.paginated.vue.d.ts +4 -1
  30. package/lib/apps/canvas-builder/components/container/CanvasContent/CanvasContent.vue.d.ts +1 -0
  31. package/lib/apps/canvas-builder/components/container/CanvasContent/page.paginated.vue.d.ts +13 -0
  32. package/lib/apps/canvas-builder/components/container/CanvasContent/pageWrapper.paginated.vue.d.ts +39 -0
  33. package/lib/apps/canvas-builder/components/container/ControlBar/AppGrid.vue.d.ts +1 -0
  34. package/lib/apps/canvas-builder/components/container/ControlBar/ControlBar.vue.d.ts +1 -3
  35. package/lib/apps/canvas-builder/components/container/ControlBar/ReorderContent.vue.d.ts +1 -1
  36. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +25 -0
  37. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +19 -0
  38. package/lib/apps/canvas-builder/components/container/EditableComponent/{EditableComponentRevamp.vue.d.ts → EditableComponentContent.vue.d.ts} +27 -0
  39. package/lib/apps/canvas-builder/components/container/EditableComponent/ResizeHandles.vue.d.ts +4 -0
  40. package/lib/apps/canvas-builder/components/container/LinkableComponent/LinkableComponent.vue.d.ts +4 -0
  41. package/lib/apps/canvas-builder/components/container/NavigationWrapper/NavigationWrapper.vue.d.ts +5 -1
  42. package/lib/apps/canvas-builder/components/container/Navigator/Navigator.vue.d.ts +5 -5
  43. package/lib/apps/canvas-builder/components/container/PopupApps/AdaptivePopupAppsButtons.vue.d.ts +17 -0
  44. package/lib/apps/canvas-builder/components/container/PopupApps/PopupAppsButtons.vue.d.ts +18 -0
  45. package/lib/apps/canvas-builder/components/container/SectionInfoProvider/SectionInfoProvider.vue.d.ts +1 -0
  46. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +2 -0
  47. package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridFileItem.vue.d.ts +2 -0
  48. package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridListItem.vue.d.ts +1 -0
  49. package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.edit.vue.d.ts +2 -0
  50. package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.raw.header.vue.d.ts +19 -0
  51. package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.raw.vue.d.ts +13 -0
  52. package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.settings.vue.d.ts +10 -0
  53. package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.utils.d.ts +32 -0
  54. package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.vue.d.ts +27 -0
  55. package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.raw.grouped.vue.d.ts +3 -1
  56. package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.raw.simple.vue.d.ts +3 -1
  57. package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.raw.vue.d.ts +4 -0
  58. package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.utils.d.ts +16 -0
  59. package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.vue.d.ts +2 -1
  60. package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.raw.vue.d.ts +1 -0
  61. package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.settings.vue.d.ts +9 -5
  62. package/lib/apps/canvas-builder/components/ui/Html/CAiHtmlActions.vue.d.ts +23 -0
  63. package/lib/apps/canvas-builder/components/ui/Html/Html.vue.d.ts +5 -2
  64. package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.raw.vue.d.ts +1 -0
  65. package/lib/apps/canvas-builder/components/ui/Root/Root.settings.vue.d.ts +9 -5
  66. package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.original.vue.d.ts +2 -1
  67. package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.responsive.vue.d.ts +2 -1
  68. package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +2 -1
  69. package/lib/apps/canvas-builder/components/ui/Scribble/scribble.helpers.d.ts +9 -0
  70. package/lib/apps/canvas-builder/components/ui/SectionList/SectionItemModal.vue.d.ts +39 -0
  71. package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.raw.vue.d.ts +4 -1
  72. package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.vue.d.ts +6 -1
  73. package/lib/apps/canvas-builder/components/ui/SectionList/SectionListCompact.vue.d.ts +18 -0
  74. package/lib/apps/canvas-builder/components/ui/SectionList/SectionListItem.vue.d.ts +27 -0
  75. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSearch.vue.d.ts +11 -0
  76. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +7 -7
  77. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorWithDragAndDrop.vue.d.ts +154 -0
  78. package/lib/apps/canvas-builder/composables/useAnnotation.d.ts +29 -0
  79. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +2509 -150
  80. package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +168 -20
  81. package/lib/apps/canvas-builder/composables/useCanvasCompletionWizard.d.ts +16 -0
  82. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +162 -8
  83. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +26 -8
  84. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +4 -2
  85. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +22 -4
  86. package/lib/apps/canvas-builder/composables/useCanvasThemeAssets.d.ts +8 -0
  87. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -1
  88. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +3 -0
  89. package/lib/apps/canvas-builder/composables/useControlBarCollapse.d.ts +8 -0
  90. package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +1 -2
  91. package/lib/apps/canvas-builder/composables/useCrmShapeWithSectionContext.d.ts +5 -0
  92. package/lib/apps/canvas-builder/composables/useEmbeddable.d.ts +7 -0
  93. package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +1 -0
  94. package/lib/apps/canvas-builder/composables/usePitcherEvents.d.ts +7 -1
  95. package/lib/apps/canvas-builder/composables/usePopupApps.d.ts +913 -0
  96. package/lib/apps/canvas-builder/composables/usePrintMode.d.ts +2 -0
  97. package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +7 -3
  98. package/lib/apps/canvas-builder/composables/useScribbleChild.d.ts +98 -0
  99. package/lib/apps/canvas-builder/composables/useScribbleToolbar.d.ts +11 -0
  100. package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +1 -0
  101. package/lib/apps/canvas-builder/composables/useTemporaryContext.d.ts +14 -0
  102. package/lib/apps/canvas-builder/constants/canvas.const.d.ts +3 -1
  103. package/lib/apps/canvas-builder/constants/theme.const.d.ts +34 -0
  104. package/lib/apps/canvas-builder/types/canvas.d.ts +66 -4
  105. package/lib/apps/canvas-builder/util/canvas.util.d.ts +9 -5
  106. package/lib/apps/canvas-builder/util/iframe.util.d.ts +16 -0
  107. package/lib/apps/canvas-builder/util/print.util.d.ts +22 -0
  108. package/lib/apps/canvas-selector/components/CanvasSelectionArea.vue.d.ts +171 -1
  109. package/lib/apps/canvas-selector/components/Sections.vue.d.ts +160 -1
  110. package/lib/apps/canvas-selector/stores/app.d.ts +14 -14
  111. package/lib/apps/collection-player/App.vue.d.ts +1 -0
  112. package/lib/apps/collection-player/components/ImageWithAnnotations.vue.d.ts +5 -1
  113. package/lib/apps/collection-player/stores/app.store.d.ts +3 -0
  114. package/lib/apps/collection-player/types/collection-player.type.d.ts +18 -0
  115. package/lib/apps/collection-selector/App.vue.d.ts +7 -7
  116. package/lib/apps/collection-selector/stores/app.store.d.ts +4 -2
  117. package/lib/apps/collection-selector/utils/content-selector-adapter.util.d.ts +20 -2
  118. package/lib/apps/collection-selector/utils/data.util.d.ts +4 -4
  119. package/lib/apps/content-selector/App.vue.d.ts +2 -0
  120. package/lib/apps/content-selector/appTypes.d.ts +2 -0
  121. package/lib/apps/content-selector/components/Assets.vue.d.ts +75 -1
  122. package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesList.vue.d.ts +3 -0
  123. package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts +1 -0
  124. package/lib/apps/content-selector/components/Content.vue.d.ts +74 -1
  125. package/lib/apps/content-selector/components/ui/GridItem.vue.d.ts +14 -2
  126. package/lib/apps/content-selector/stores/app.d.ts +34 -5
  127. package/lib/apps/content-selector/util/file.d.ts +6 -3
  128. package/lib/apps/ppt-conversion-selector/components/AppHeader.vue.d.ts +2 -0
  129. package/lib/apps/ppt-conversion-selector/composables/canvas.use.d.ts +3 -2
  130. package/lib/apps/ppt-conversion-selector/stores/app.store.d.ts +7 -3
  131. package/lib/apps/ppt-conversion-selector/utils/thumbnail.util.d.ts +1 -0
  132. package/lib/canvas-comments/components/CommentableComponent.vue.d.ts +6 -2
  133. package/lib/components/CAlgoliaSearch/CAlgoliaSearch.vue.d.ts +18 -0
  134. package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +5 -0
  135. package/lib/components/CCarousel/CCarousel.vue.d.ts +20 -0
  136. package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +9 -6
  137. package/lib/components/CConfigEditor/CConfigEditor.vue.d.ts +5 -3
  138. package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +4 -0
  139. package/lib/components/CContactSelector/CContactSelector.vue.d.ts +7 -0
  140. package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +53 -0
  141. package/lib/components/CContentError/CContentError.vue.d.ts +9 -0
  142. package/lib/components/CCreateCanvasModal/CCreateCanvasModalTemplatesSelectOption.vue.d.ts +3 -0
  143. package/lib/components/CCreateThemeModal/steps/CThemeSettingsStep.vue.d.ts +18 -16
  144. package/lib/components/CDataTable/CDataTable.vue.d.ts +12 -12
  145. package/lib/components/CEntitySelector/CEntitySelector.vue.d.ts +8 -0
  146. package/lib/components/CFileAccessManagement/CFileAccessManagement.vue.d.ts +6 -0
  147. package/lib/components/CFileViewer/CFileViewer.types.d.ts +1 -1
  148. package/lib/components/CFileViewer/CFileViewer.vue.d.ts +15 -9
  149. package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +2 -5
  150. package/lib/components/CFileViewer/pdf/CFileViewer.pdf.link.types.d.ts +3 -2
  151. package/lib/components/CFileViewer/pdf/CFileViewer.pdf.use.d.ts +3 -6
  152. package/lib/components/CFileViewer/pdf/CFileViewerBottom.pdf.vue.d.ts +3 -0
  153. package/lib/components/CFileViewer/pdf/CFileViewerPageDrawer.pdf.vue.d.ts +9 -5
  154. package/lib/components/CFilesAccessManage/CFilesAccessManage.vue.d.ts +1 -0
  155. package/lib/components/CGlobalSearch/CGlobalSearch.vue.d.ts +3 -0
  156. package/lib/components/CImage/CImage.vue.d.ts +11 -0
  157. package/lib/components/CInput/CInput.vue.d.ts +4 -4
  158. package/lib/components/CKnockNotificationsAppWrapper/CKnockNotificationsAppWrapper.vue.d.ts +1 -1
  159. package/lib/components/CMonacoEditor/CMonacoEditor.vue.d.ts +29 -0
  160. package/lib/components/CPdfDimensionsSelector/CPdfDimensionsSelector.vue.d.ts +27 -0
  161. package/lib/components/CPillSelect/CPillSelect.vue.d.ts +14 -0
  162. package/lib/components/CPopularityAndEngagementIcons/CPopularityAndEngagementExtended.vue.d.ts +1 -1
  163. package/lib/components/CProcessingOverlay/CProcessingOverlay.vue.d.ts +19 -0
  164. package/lib/components/CQuickFilters/CQuickFilters.vue.d.ts +4 -0
  165. package/lib/components/CRenameModal/CRenameModal.vue.d.ts +28 -0
  166. package/lib/components/CRichTextEditor/components/CDynamicValueTreeSelect.vue.d.ts +20 -5
  167. package/lib/components/CRichTextEditor/components/CFormatterWithFieldSelect.vue.d.ts +28 -8
  168. package/lib/components/CRichTextEditor/components/CHandlebarsHelperTreeSelect.vue.d.ts +14 -4
  169. package/lib/components/CRichTextEditor/components/CHyperLinkToolbar.vue.d.ts +4 -4
  170. package/lib/components/CSearch/CSearch.vue.d.ts +2 -0
  171. package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +1 -0
  172. package/lib/components/CSectionSelectionActions/CSectionSelectionActions.vue.d.ts +19 -0
  173. package/lib/components/CSectionSmartFolders/CSectionSmartFolders.vue.d.ts +135 -0
  174. package/lib/components/CSectionSmartFolders/CSectionSmartFoldersToolbar.vue.d.ts +44 -0
  175. package/lib/components/CSlideViewer/CSlideViewer.pdfjs.vue.d.ts +18 -0
  176. package/lib/components/CSlideViewer/CSlideViewer.pspdfkit.vue.d.ts +14 -0
  177. package/lib/components/CSlideViewer/CSlideViewer.vue.d.ts +12 -0
  178. package/lib/components/CTable/CTable.vue.d.ts +6 -9
  179. package/lib/components/CTableInput/CTableInput.vue.d.ts +10 -8
  180. package/lib/components/CTableTag/CTableTag.vue.d.ts +5 -4
  181. package/lib/components/CTags/CTags.vue.d.ts +4 -4
  182. package/lib/components/CThumbnail/CThumbnail.vue.d.ts +1 -0
  183. package/lib/components/CUserMenu/CUserMenu.vue.d.ts +4 -1
  184. package/lib/components/assignedCanvases/CAssignedCanvasesManagement.vue.d.ts +440 -0
  185. package/lib/components/assignedCanvases/CAssignedCanvasesManagementToolbar.vue.d.ts +41 -0
  186. package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +46 -68
  187. package/lib/components/canvas-blocks/CBlockManagementToolbar.vue.d.ts +13 -19
  188. package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +41 -41
  189. package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +9 -6
  190. package/lib/components/filters/CSearchFilter.vue.d.ts +9 -1
  191. package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +17 -23
  192. package/lib/components/savedCanvases/CSavedCanvasesManagementActionsCell.vue.d.ts +4 -2
  193. package/lib/components/savedCanvases/CSavedCanvasesManagementOwnerCell.vue.d.ts +4 -4
  194. package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +2 -0
  195. package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +12 -8
  196. package/lib/components/savedCanvases/smartFolders/SmartFolders.vue.d.ts +1 -4
  197. package/lib/components/savedCanvases/smartFolders/SmartFoldersMissingConfig.vue.d.ts +8 -3
  198. package/lib/components/sections/CSectionManagement.vue.d.ts +27 -9
  199. package/lib/components/sections/CSectionManagementToolbar.vue.d.ts +7 -0
  200. package/lib/components/themes/CThemeManagement.vue.d.ts +98 -18
  201. package/lib/components/themes/CThemeManagementToolbar.vue.d.ts +31 -3
  202. package/lib/composables/appsDb.use.d.ts +2 -2
  203. package/lib/composables/bulkActions.use.d.ts +2 -2
  204. package/lib/composables/useBindValidation.d.ts +1 -1
  205. package/lib/composables/useBroadcastRouteChange.d.ts +4 -0
  206. package/lib/composables/useCanvasStandardFilters.d.ts +35 -0
  207. package/lib/composables/useCollectionPlayerOverlay.d.ts +18 -0
  208. package/lib/composables/useDeleteUsedCanvasesConfirmation.d.ts +23 -0
  209. package/lib/composables/useElementSizeAfterDom.d.ts +5 -0
  210. package/lib/composables/useFileDisplayHelpers.d.ts +6 -2
  211. package/lib/composables/useFileInfo.d.ts +30 -0
  212. package/lib/composables/useFilterSuggestions.d.ts +48 -0
  213. package/lib/composables/useFolderNameDescription.d.ts +25 -0
  214. package/lib/composables/useImageAccessibility.d.ts +13 -0
  215. package/lib/composables/useLegacyCollectionFileLoader.d.ts +31 -0
  216. package/lib/composables/useMetadataSearch.d.ts +22 -1
  217. package/lib/composables/usePolling.d.ts +23 -0
  218. package/lib/composables/useWindowEvents.d.ts +1 -0
  219. package/lib/constants/cdp.const.d.ts +2 -0
  220. package/lib/constants/dimensions.const.d.ts +23 -0
  221. package/lib/constants/tables.const.d.ts +1 -1
  222. package/lib/custom-naive-locales/it.d.ts +124 -0
  223. package/lib/custom-naive-locales/ja.d.ts +124 -0
  224. package/lib/custom-naive-locales/nl.d.ts +124 -0
  225. package/lib/custom-naive-locales/pt-br.d.ts +124 -0
  226. package/lib/custom-naive-locales/pt.d.ts +124 -0
  227. package/lib/custom-naive-locales/th.d.ts +124 -0
  228. package/lib/custom-naive-locales/zh.d.ts +124 -0
  229. package/lib/directives/element-mounted.d.ts +4 -0
  230. package/lib/directives/vTrustedHtml.d.ts +6 -0
  231. package/lib/main.lib.d.ts +23 -3
  232. package/lib/sdk/api/HighLevelApi.d.ts +26 -2
  233. package/lib/sdk/api/modules/admin/canvas.admin.d.ts +24 -1
  234. package/lib/sdk/api/modules/admin/index.d.ts +1 -0
  235. package/lib/sdk/api/modules/admin/types.admin.d.ts +21 -0
  236. package/lib/sdk/api/modules/dsr/files.dsr.d.ts +12 -0
  237. package/lib/sdk/api/modules/dsr/index.d.ts +3 -0
  238. package/lib/sdk/api/modules/dsr/types.dsr.d.ts +6 -1
  239. package/lib/sdk/api/modules/env.d.ts +1 -0
  240. package/lib/sdk/api/modules/files.d.ts +12 -2
  241. package/lib/sdk/api/modules/share.d.ts +8 -1
  242. package/lib/sdk/api/modules/ui/canvas.ui.d.ts +59 -1
  243. package/lib/sdk/api/modules/ui/index.d.ts +3 -0
  244. package/lib/sdk/api/modules/ui/types.ui.d.ts +46 -0
  245. package/lib/sdk/api/modules/webView.d.ts +2 -1
  246. package/lib/sdk/interfaces.d.ts +102 -3
  247. package/lib/sdk/main.d.ts +53 -14
  248. package/lib/sdk/payload.types.d.ts +30 -0
  249. package/lib/stores/sectionSmartFolderStore.d.ts +112 -0
  250. package/lib/types/app.d.ts +20 -3
  251. package/lib/types/call.d.ts +2 -1
  252. package/lib/types/canvases.d.ts +1 -0
  253. package/lib/types/core/MetadataFilter.d.ts +2 -0
  254. package/lib/types/files.d.ts +2 -0
  255. package/lib/types/i18n.types.d.ts +1 -1
  256. package/lib/types/instanceSettings.types.d.ts +26 -4
  257. package/lib/types/launchDarkly.types.d.ts +2 -4
  258. package/lib/types/organizationMetadata.types.d.ts +3 -2
  259. package/lib/types/organizationSettings.types.d.ts +47 -2
  260. package/lib/types/sfdc.d.ts +1 -0
  261. package/lib/util/date.d.ts +1 -0
  262. package/lib/util/network.d.ts +8 -0
  263. package/lib/util/soql.util.d.ts +2 -0
  264. package/lib/util/storage.util.d.ts +2 -0
  265. package/lib/util/string.d.ts +1 -1
  266. package/lib/util/toCssClassKey.d.ts +1 -0
  267. package/lib/utils/defaultThumbnail.util.d.ts +3 -0
  268. package/lib/utils/iframeInitialize.d.ts +12 -0
  269. package/package.json +1 -1
  270. package/types/openapi/models/Canvas.d.ts +1 -1
  271. package/types/openapi/models/CanvasCreate.d.ts +2 -2
  272. package/types/openapi/models/CanvasCreateRequest.d.ts +2 -2
  273. package/types/openapi/models/CanvasRecommendedFile.d.ts +0 -2
  274. package/types/openapi/models/CanvasRetrieve.d.ts +2 -2
  275. package/types/openapi/models/CanvasSection.d.ts +1 -0
  276. package/types/openapi/models/CanvasUpdate.d.ts +2 -2
  277. package/types/openapi/models/CanvasUpdateRequest.d.ts +2 -2
  278. package/types/openapi/models/ContentDistributionGroup.d.ts +1 -0
  279. package/types/openapi/models/ContentDistributionGroupCreate.d.ts +1 -0
  280. package/types/openapi/models/DeletedCanvas.d.ts +1 -1
  281. package/types/openapi/models/DeletedContentDistributionGroup.d.ts +1 -0
  282. package/types/openapi/models/DeletedFile.d.ts +0 -2
  283. package/types/openapi/models/DeletedFolder.d.ts +3 -0
  284. package/types/openapi/models/FavoriteFolder.d.ts +3 -0
  285. package/types/openapi/models/FavoriteFolderRequest.d.ts +3 -0
  286. package/types/openapi/models/File.d.ts +0 -2
  287. package/types/openapi/models/FileCreate.d.ts +0 -2
  288. package/types/openapi/models/FileCreateRequest.d.ts +0 -1
  289. package/types/openapi/models/FileRetrieve.d.ts +0 -2
  290. package/types/openapi/models/FileUpdate.d.ts +0 -2
  291. package/types/openapi/models/FileUpdateRequest.d.ts +0 -1
  292. package/types/openapi/models/Folder.d.ts +3 -0
  293. package/types/openapi/models/FolderCreate.d.ts +2 -1
  294. package/types/openapi/models/FolderFolder.d.ts +5 -0
  295. package/types/openapi/models/FolderRetrieve.d.ts +5 -1
  296. package/types/openapi/models/FolderUpdate.d.ts +2 -1
  297. package/types/openapi/models/InstanceMembership.d.ts +4 -0
  298. package/types/openapi/models/InstanceMembershipCreate.d.ts +4 -0
  299. package/types/openapi/models/InstanceMembershipCreateRequest.d.ts +4 -0
  300. package/types/openapi/models/InstanceMembershipRequest.d.ts +4 -0
  301. package/types/openapi/models/InstanceMembershipUser.d.ts +0 -2
  302. package/types/openapi/models/InstanceRequest.d.ts +1 -1
  303. package/types/openapi/models/InstanceUpdateRequest.d.ts +1 -1
  304. package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +2 -2
  305. package/types/openapi/models/PatchedFileUpdateRequest.d.ts +0 -1
  306. package/types/openapi/models/PatchedInstanceMembershipRequest.d.ts +4 -0
  307. package/types/openapi/models/PatchedInstanceUpdateRequest.d.ts +1 -1
  308. package/types/openapi/models/SharedLinkCanvas.d.ts +1 -1
  309. package/types/openapi/models/SharedLinkCanvasRequest.d.ts +1 -1
  310. package/types/openapi/models/User.d.ts +1 -0
  311. package/lib/apps/canvas-builder/components/ui/Text/Text.vue.d.ts +0 -111
  312. package/lib/components/CFileViewer/pdf/CFileViewer.pageThumbFavorite.pdf.use.d.ts +0 -10
  313. package/lib/components/CImage/CBrokenImage.vue.d.ts +0 -10
  314. package/lib/components/CRichTextEditor/CRichTextEditor.vue.d.ts +0 -59
  315. package/lib/directives/usage-track.directive.d.ts +0 -10
  316. package/lib/util/usage-tracking.util.d.ts +0 -5
@@ -1,5 +1,5 @@
1
1
  import { CanvasRetrieve } from '../../../../../types/openapi';
2
- import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest, UiSelectCanvasesRequest, UiSelectCanvasesResponse } from './types.ui';
2
+ import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest, UiPrintCanvasRequest, UiPrintCanvasResponse, UiSelectCanvasesRequest, UiSelectCanvasesResponse, UiOpenCollectionPlayerOverlayRequest } from './types.ui';
3
3
  /**
4
4
  * Modify the currently loaded canvas. On the web it sends
5
5
  * an [update_canvas](https://pitcher.readme.io/reference/update_canvas) request to the server.
@@ -7,6 +7,20 @@ import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest,
7
7
  * @param payload parts of the canvas object to update with fields to return
8
8
  */
9
9
  export declare function updateCanvas(payload: UiUpdateCanvasRequest): Promise<CanvasRetrieve>;
10
+ /**
11
+ * Trigger async print/download of a canvas with optional notification URL.
12
+ * Calls the downloader-test endpoint to convert the canvas to PDF.
13
+ *
14
+ * @param payload Canvas ID and optional notify URL for async notifications
15
+ * @returns Promise with job ID and success status
16
+ *
17
+ * @example
18
+ * useUi().printCanvas({
19
+ * id: '01HH4RCBH631K4JDHWAQB0RPR6',
20
+ * notify_url: 'https://my-webhook.example.com/canvas-ready'
21
+ * })
22
+ */
23
+ export declare function printCanvas(payload: UiPrintCanvasRequest): Promise<UiPrintCanvasResponse>;
10
24
  /**
11
25
  * Notify the CatalogIQ instance that the app is loaded and ready to get the data. Triggering this method will trigger
12
26
  * the `on_app_set_data` event.
@@ -35,6 +49,16 @@ export declare function appResize(payload: UiAppResizeRequest): Promise<void>;
35
49
  * useUi().closeCanvasSectionExecution()
36
50
  */
37
51
  export declare function closeCanvasSectionExecution(): Promise<void>;
52
+ /**
53
+ * Close the Canvas Drawer modal. Only takes effect for apps running in `canvas_drawer` embed location
54
+ *
55
+ * Note that this method simply closes the drawer and will result in the app calling it being unmounted from the DOM and
56
+ * destroyed. Make sure your app has finished updating data before you call this method.
57
+ *
58
+ * @example
59
+ * useUi().closeCanvasDrawer()
60
+ */
61
+ export declare function closeCanvasDrawer(): Promise<void>;
38
62
  /**
39
63
  * Navigate to the next page in the current canvas. Noop if the current page is the last one.
40
64
  *
@@ -109,6 +133,40 @@ export declare function openCanvasOverlay(payload: {
109
133
  bottom?: number | string;
110
134
  };
111
135
  }): Promise<void>;
136
+ /**
137
+ * Opens the collection player overlay to view a collection of files/slides.
138
+ *
139
+ * This method opens the native Pitcher collection player interface with the specified
140
+ * files and slides. You can show entire files or specific pages from files.
141
+ *
142
+ * @example
143
+ * // Open collection with full files
144
+ * useUi().openCollectionPlayerOverlay({
145
+ * groups: [
146
+ * { id: 'file-123-abc', name: 'Product Overview' },
147
+ * { id: 'file-456-def', name: 'Pricing Slides' }
148
+ * ],
149
+ * name: 'Sales Deck'
150
+ * })
151
+ *
152
+ * // Open collection with specific slides/pages
153
+ * useUi().openCollectionPlayerOverlay({
154
+ * groups: [
155
+ * {
156
+ * id: 'file-123-abc',
157
+ * name: 'Product Overview',
158
+ * slides: [
159
+ * { file_id: 'file-123-abc', slide_index: 0 },
160
+ * { file_id: 'file-123-abc', slide_index: 2 }
161
+ * ]
162
+ * }
163
+ * ],
164
+ * name: 'Custom Sales Presentation'
165
+ * })
166
+ *
167
+ * @param payload Object containing groups array and collection name
168
+ */
169
+ export declare function openCollectionPlayerOverlay(payload: UiOpenCollectionPlayerOverlayRequest): Promise<void>;
112
170
  /**
113
171
  * Allows the user to select (and preselect) canvases from the instance.
114
172
  *
@@ -122,9 +122,11 @@ declare const _default: {
122
122
  disablePostcallSubmit(): Promise<void>;
123
123
  setPostcallStyle(payload: import('./types.ui').UiSetPostcallStyleRequest): Promise<void>;
124
124
  updateCanvas(payload: import('./types.ui').UiUpdateCanvasRequest): Promise<import('../../../../main.lib').CanvasRetrieve>;
125
+ printCanvas(payload: import('./types.ui').UiPrintCanvasRequest): Promise<import('./types.ui').UiPrintCanvasResponse>;
125
126
  appLoaded(): Promise<void>;
126
127
  appResize(payload: import('./types.ui').UiAppResizeRequest): Promise<void>;
127
128
  closeCanvasSectionExecution(): Promise<void>;
129
+ closeCanvasDrawer(): Promise<void>;
128
130
  canvasNavigateNextPage(): Promise<void>;
129
131
  canvasNavigatePreviousPage(): Promise<void>;
130
132
  canvasNavigatePage(payload: import('./types.ui').UiCanvasNavigatePageRequest): Promise<void>;
@@ -141,6 +143,7 @@ declare const _default: {
141
143
  bottom?: number | string;
142
144
  };
143
145
  }): Promise<void>;
146
+ openCollectionPlayerOverlay(payload: import('./types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
144
147
  selectCanvases(payload?: import('./types.ui').UiSelectCanvasesRequest): Promise<import('./types.ui').UiSelectCanvasesResponse>;
145
148
  captureAppError(payload: import('./types.ui').UiCaptureAppErrorRequest): Promise<void>;
146
149
  updateLocation(payload: import('../../../interfaces').UpdateLocationPitcherEvent): Promise<any>;
@@ -21,7 +21,9 @@ export declare const UI_API_METHOD_TYPES: {
21
21
  readonly UI_TOAST: "ui_toast";
22
22
  readonly UI_CAPTURE_APP_ERROR: "ui_capture_app_error";
23
23
  readonly UI_UPDATE_CANVAS: "ui_update_canvas";
24
+ readonly UI_PRINT_CANVAS: "ui_print_canvas";
24
25
  readonly UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay";
26
+ readonly UI_OPEN_COLLECTION_PLAYER_OVERLAY: "ui_open_collection_player_overlay";
25
27
  readonly UI_SELECT_COLLECTION_PLAYER_CONTENT: "ui_select_collection_player_content";
26
28
  readonly UI_SELECT_AGENDA_CONTENT: "ui_select_agenda_content";
27
29
  readonly UI_UPDATE_LOCATION: "ui_update_location";
@@ -40,6 +42,7 @@ export declare const UI_API_METHOD_TYPES: {
40
42
  readonly UI_APP_LOADED: "ui_app_loaded";
41
43
  readonly UI_APP_RESIZE: "ui_app_resize";
42
44
  readonly UI_CLOSE_CANVAS_SECTION_EXECUTION: "ui_close_canvas_section_execution";
45
+ readonly UI_CLOSE_CANVAS_DRAWER: "ui_close_canvas_drawer";
43
46
  };
44
47
  export declare const UI_MESSAGE_TYPES: {
45
48
  readonly UI_MEETING_CANCELED: "ui_meeting_canceled";
@@ -70,6 +73,14 @@ export type UiSelectContentRequest = {
70
73
  * Disables files from selection which are not sharable (optional).
71
74
  */
72
75
  disable_no_sharable?: boolean;
76
+ /**
77
+ * Disables files from selection which do not have pptx_data in metadata object (optional).
78
+ */
79
+ disable_no_pptx_data?: boolean;
80
+ /**
81
+ * Only allow content pdf pages (optional). User will be forced to select a page from the pdf.
82
+ */
83
+ only_allow_content_pdf_pages?: boolean;
73
84
  };
74
85
  export type UiSelectContentResponse = {
75
86
  /** User action result */
@@ -136,6 +147,18 @@ export type UiUpdateCanvasRequest = Mutable<CanvasRetrieve> & {
136
147
  /** Comma-separated list of field keys to return from the server */
137
148
  fields?: string;
138
149
  };
150
+ export type UiPrintCanvasRequest = {
151
+ /** Canvas ID to print */
152
+ id: CanvasRetrieve['id'];
153
+ /** Optional HTTPS URL for async download notifications */
154
+ notify_url?: string;
155
+ };
156
+ export type UiPrintCanvasResponse = {
157
+ /** Job ID for tracking the async download */
158
+ job_id?: string;
159
+ /** Indicates if the request was successful */
160
+ success: boolean;
161
+ };
139
162
  export type UiOpenRequest = OpenRequestPayload & {
140
163
  /** Name of the app to open */
141
164
  app_name?: string;
@@ -197,6 +220,25 @@ export interface UiPreselectSfdcMeetingIdResponse {
197
220
  /** Salesforce Event */
198
221
  event: SfEvent | null;
199
222
  }
223
+ export interface UiOpenCollectionPlayerOverlayGroup {
224
+ /** File ID */
225
+ id: string;
226
+ /** File name */
227
+ name: string;
228
+ /** Optional: specific slides/pages to show from the file */
229
+ slides?: Array<{
230
+ /** The file ID (same as parent group.id) */
231
+ file_id: string;
232
+ /** Zero-based page/slide index to show */
233
+ slide_index: number;
234
+ }>;
235
+ }
236
+ export interface UiOpenCollectionPlayerOverlayRequest {
237
+ /** Array of files/slides to be played in the collection */
238
+ groups: UiOpenCollectionPlayerOverlayGroup[];
239
+ /** The display name for the collection */
240
+ name: string;
241
+ }
200
242
  export type UiMessagePayloads = {
201
243
  [UI_MESSAGE_TYPES.UI_MEETING_CANCELED]: UiMeetingCanceledPayload;
202
244
  [UI_MESSAGE_TYPES.UI_APP_SET_DATA]: UiAppSetDataPayload;
@@ -240,12 +282,16 @@ export type UiAppSetDataPayload = {
240
282
  width: string | undefined;
241
283
  /** Height of the canvas */
242
284
  height: string | undefined;
285
+ /** Full screen mode status */
286
+ full_screen_mode: boolean | undefined;
243
287
  /** Display mode */
244
288
  display_mode: string | undefined;
245
289
  /** Section index in section list */
246
290
  section_index: number | null;
247
291
  /** Section list ID */
248
292
  section_list_id: string | null;
293
+ /** Canvas correlation ID for tracking */
294
+ canvas_correlation_id: string | undefined;
249
295
  };
250
296
  export type UiAppUpdateDataPayload = {
251
297
  /** Call status */
@@ -1,3 +1,4 @@
1
- import { OpenWebViewAlwaysOnTop } from '../../payload.types';
1
+ import { OpenWebViewAlwaysOnTop, ShowSyncboxRequestPayload } from '../../payload.types';
2
2
  export declare function close(): Promise<any>;
3
3
  export declare function openWebViewAlwaysOnTop(payload: OpenWebViewAlwaysOnTop): Promise<void>;
4
+ export declare function showSyncbox(payload: ShowSyncboxRequestPayload): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { Emitter } from './utils/eventEmitter';
2
- import { Favorite, File, User, CanvasRetrieve } from '../../types/openapi';
2
+ import { Favorite, File, User, CanvasRetrieve, CanvasSection } from '../../types/openapi';
3
3
  import { PitcherOrg } from '../types/organization.types';
4
4
  import { PitcherInstance } from '../types/instance.types';
5
5
  import { PaginatedData } from '../types/paginatedData';
@@ -65,8 +65,12 @@ export interface PitcherEnv {
65
65
  active_file?: {
66
66
  id: File['id'];
67
67
  };
68
+ active_section_id?: CanvasSection['id'];
69
+ active_canvas_id?: CanvasRetrieve['id'];
70
+ canvas_correlation_id?: string;
68
71
  };
69
72
  device_locale?: string;
73
+ sync_badge_value?: number;
70
74
  }
71
75
  export interface PitcherAPI extends Emitter<ApiEventMap> {
72
76
  request(type: string, body: any, callback: () => any): Promise<PitcherResponse>;
@@ -106,9 +110,14 @@ export interface StartCallPitcherEvent {
106
110
  post_action?: string;
107
111
  post_action_path?: string;
108
112
  }
113
+ export interface RouteChangedPitcherEvent {
114
+ route_name: string;
115
+ route_path: string;
116
+ }
109
117
  export declare enum PitcherEventName {
110
118
  ENV_CHANGED = "env_changed",
111
119
  PHOTOS_CAPTURED = "photos_captured",
120
+ GLOBAL_PHOTO_CAPTURED = "global_photo_captured",
112
121
  FILE_DOWNLOADED = "file_downloaded",
113
122
  FILE_UPLOAD_PROGRESS = "file_upload_progress",
114
123
  UPDATE_LOCATION = "update_location",
@@ -126,13 +135,28 @@ export declare enum PitcherEventName {
126
135
  EXITED_FULLSCREEN = "exited_fullscreen",
127
136
  SUBMIT_POSTCALL_CLICKED = "submit_postcall_clicked",
128
137
  ANALYTICS_CAPTURED = "analytics_captured",
129
- OPEN_FOLDER_REQUESTED = "open_folder_requested"
138
+ OPEN_FOLDER_REQUESTED = "open_folder_requested",
139
+ CANVAS_PAGE_NEXT_REQUESTED = "canvas_page_next_requested",
140
+ CANVAS_PAGE_PREVIOUS_REQUESTED = "canvas_page_previous_requested",
141
+ CANVAS_OPEN_REQUESTED = "canvas_open_requested",
142
+ CANVAS_CLOSE_REQUESTED = "canvas_close_requested",
143
+ ROUTE_CHANGE_REQUESTED = "route_change_requested",
144
+ ITEM_SHAREBOX_STATUS_REQUESTED = "item_sharebox_status_requested",
145
+ ITEM_SHAREBOX_STATUS_UPDATED = "item_sharebox_status_updated",
146
+ ITEM_SHAREBOX_ADD_REQUESTED = "item_sharebox_add_requested",
147
+ ITEM_SHAREBOX_ADD_COMPLETED = "item_sharebox_add_completed",
148
+ SYNC_BADGE_VALUE_REPORTED = "sync_badge_value_reported"
130
149
  }
131
150
  export declare enum PitcherBroadcastedEventName {
132
151
  UI_SHOW_MODAL = "ui:show-modal",
133
152
  UI_HIDE_MODAL = "ui:hide-modal",
134
153
  FAVORITES_CHANGED = "favorites:changed",
135
- FILE_DOWNLOAD = "file:download"
154
+ FILE_DOWNLOAD = "file:download",
155
+ CANVAS_NEXT_BUTTON_CLICKED = "canvas_next_button_clicked",// NOTE: This event is separate from `CANVAS_PAGE_NEXT_REQUESTED`
156
+ CANVAS_PREVIOUS_BUTTON_CLICKED = "canvas_previous_button_clicked",// NOTE: This event is separate from `CANVAS_PAGE_PREVIOUS_REQUESTED`
157
+ CANVAS_OPENED = "canvas_opened",
158
+ CANVAS_CLOSED = "canvas_closed",
159
+ ROUTE_CHANGED = "route_changed"
136
160
  }
137
161
  export declare enum PitcherExternalEventName {
138
162
  CREATE_AND_OPEN_CANVAS = "create_and_open_canvas",
@@ -315,6 +339,13 @@ export interface PitcherEventMap {
315
339
  * @see iOS-only
316
340
  */
317
341
  [PitcherEventName.PHOTOS_CAPTURED]: void;
342
+ /**
343
+ * @see iOS-only
344
+ */
345
+ [PitcherEventName.GLOBAL_PHOTO_CAPTURED]: {
346
+ url: string;
347
+ section_id?: string;
348
+ };
318
349
  /**
319
350
  * @see iOS-only
320
351
  */
@@ -371,6 +402,46 @@ export interface PitcherEventMap {
371
402
  view_id?: string;
372
403
  };
373
404
  [PitcherEventName.SUBMIT_POSTCALL_CLICKED]: void;
405
+ [PitcherEventName.CANVAS_PAGE_NEXT_REQUESTED]: {
406
+ canvas_id?: string;
407
+ current_page_index?: number;
408
+ };
409
+ [PitcherEventName.CANVAS_PAGE_PREVIOUS_REQUESTED]: {
410
+ canvas_id?: string;
411
+ current_page_index?: number;
412
+ };
413
+ [PitcherEventName.CANVAS_OPEN_REQUESTED]: {
414
+ canvas_id?: string;
415
+ };
416
+ [PitcherEventName.CANVAS_CLOSE_REQUESTED]: {
417
+ canvas_id?: string;
418
+ };
419
+ /**
420
+ * @see iOS-only
421
+ */
422
+ [PitcherEventName.ROUTE_CHANGE_REQUESTED]: RouteChangedPitcherEvent;
423
+ [PitcherEventName.ITEM_SHAREBOX_STATUS_REQUESTED]: {
424
+ item_id: string;
425
+ };
426
+ [PitcherEventName.ITEM_SHAREBOX_STATUS_UPDATED]: {
427
+ item_id: string;
428
+ is_in_sharebox: boolean;
429
+ };
430
+ [PitcherEventName.ITEM_SHAREBOX_ADD_REQUESTED]: {
431
+ item_id: string;
432
+ };
433
+ [PitcherEventName.ITEM_SHAREBOX_ADD_COMPLETED]: {
434
+ item_id: string;
435
+ success: boolean;
436
+ is_in_sharebox: boolean;
437
+ error?: string;
438
+ };
439
+ /**
440
+ * @see iOS-only
441
+ */
442
+ [PitcherEventName.SYNC_BADGE_VALUE_REPORTED]: {
443
+ count: number;
444
+ };
374
445
  [PitcherBroadcastedEventName.UI_SHOW_MODAL]: void;
375
446
  [PitcherBroadcastedEventName.UI_HIDE_MODAL]: void;
376
447
  [PitcherBroadcastedEventName.FAVORITES_CHANGED]: {
@@ -379,6 +450,34 @@ export interface PitcherEventMap {
379
450
  [PitcherBroadcastedEventName.FILE_DOWNLOAD]: {
380
451
  body: File['id'];
381
452
  };
453
+ [PitcherBroadcastedEventName.CANVAS_NEXT_BUTTON_CLICKED]: {
454
+ body: {
455
+ current_page_index: number;
456
+ canvas_id?: string;
457
+ };
458
+ };
459
+ [PitcherBroadcastedEventName.CANVAS_PREVIOUS_BUTTON_CLICKED]: {
460
+ body: {
461
+ current_page_index: number;
462
+ canvas_id?: string;
463
+ };
464
+ };
465
+ [PitcherBroadcastedEventName.CANVAS_OPENED]: {
466
+ body: {
467
+ canvas_id: string;
468
+ };
469
+ };
470
+ [PitcherBroadcastedEventName.CANVAS_CLOSED]: {
471
+ body: {
472
+ canvas_id: string;
473
+ };
474
+ };
475
+ [PitcherBroadcastedEventName.ROUTE_CHANGED]: {
476
+ body: {
477
+ route_name: string;
478
+ route_path: string;
479
+ };
480
+ };
382
481
  [PitcherExternalEventName.OPEN_CANVAS]: OpenCanvasPitcherEvent;
383
482
  [PitcherExternalEventName.START_CALL]: StartCallPitcherEvent;
384
483
  [PitcherExternalEventName.CREATE_AND_OPEN_CANVAS]: CreateAndOpenCanvasEvent;
package/lib/sdk/main.d.ts CHANGED
@@ -33,9 +33,11 @@ export declare function useUi(): {
33
33
  disablePostcallSubmit(): Promise<void>;
34
34
  setPostcallStyle(payload: import('./api/modules/ui/types.ui').UiSetPostcallStyleRequest): Promise<void>;
35
35
  updateCanvas(payload: import('./api/modules/ui/types.ui').UiUpdateCanvasRequest): Promise<import('../main.lib').CanvasRetrieve>;
36
+ printCanvas(payload: import('./api/modules/ui/types.ui').UiPrintCanvasRequest): Promise<import('./api/modules/ui/types.ui').UiPrintCanvasResponse>;
36
37
  appLoaded(): Promise<void>;
37
38
  appResize(payload: import('./api/modules/ui/types.ui').UiAppResizeRequest): Promise<void>;
38
39
  closeCanvasSectionExecution(): Promise<void>;
40
+ closeCanvasDrawer(): Promise<void>;
39
41
  canvasNavigateNextPage(): Promise<void>;
40
42
  canvasNavigatePreviousPage(): Promise<void>;
41
43
  canvasNavigatePage(payload: import('./api/modules/ui/types.ui').UiCanvasNavigatePageRequest): Promise<void>;
@@ -52,6 +54,7 @@ export declare function useUi(): {
52
54
  bottom?: number | string;
53
55
  };
54
56
  }): Promise<void>;
57
+ openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
55
58
  selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
56
59
  captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
57
60
  updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
@@ -125,6 +128,7 @@ export declare function useAdmin(): {
125
128
  bottom?: number | string;
126
129
  };
127
130
  }): Promise<void>;
131
+ openCollectionPlayerOverlay(payload: import('./api/modules/admin/types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
128
132
  selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
129
133
  getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
130
134
  selectCollectionContent(payload?: import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerResponse>;
@@ -152,6 +156,9 @@ export declare function useDsr(): {
152
156
  getFile(payload: {
153
157
  id: import('../main.lib').File["id"];
154
158
  }): Promise<import('../main.lib').File>;
159
+ getAppConfig(payload?: {
160
+ app_name?: string;
161
+ }): Promise<Record<string, any>>;
155
162
  embeddableReady(): Promise<void>;
156
163
  getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
157
164
  on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
@@ -181,6 +188,7 @@ export declare function useApi(options?: ApiOptions): {
181
188
  quitInstance: () => Promise<any>;
182
189
  getRequestTypes: () => Promise<any>;
183
190
  broadcast: (event: import('./interfaces').PitcherEvent) => Promise<any>;
191
+ broadcastToWebviews: (event: import('./interfaces').PitcherEvent) => Promise<any>;
184
192
  subscribe: () => Promise<any>;
185
193
  unsubscribe: () => Promise<any>;
186
194
  open(payload?: import('./payload.types').OpenRequestPayload): Promise<string>;
@@ -189,6 +197,7 @@ export declare function useApi(options?: ApiOptions): {
189
197
  updateMyUser(payload: {
190
198
  language?: import('../main.lib').LanguageEnum | undefined;
191
199
  }): Promise<import('../main.lib').User>;
200
+ isOffline(): Promise<boolean>;
192
201
  getLanguages(): Promise<import('./api/modules').Language[]>;
193
202
  getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
194
203
  createEvent(payload: import('../main.lib').EventRequest): Promise<import('../main.lib').Event>;
@@ -237,8 +246,8 @@ export declare function useApi(options?: ApiOptions): {
237
246
  downloadFile(payload: {
238
247
  file_id: import('../main.lib').File["id"];
239
248
  }): Promise<null>;
240
- getAppConfig(payload: {
241
- app_name: string;
249
+ getAppConfig(payload?: {
250
+ app_name?: string;
242
251
  }): Promise<Record<string, any>>;
243
252
  getFile(payload: {
244
253
  id?: import('../main.lib').FileRetrieve["id"];
@@ -256,6 +265,9 @@ export declare function useApi(options?: ApiOptions): {
256
265
  }): Promise<import('../main.lib').File["id"]>;
257
266
  createFile(payload: Omit<import('../main.lib').AllFileCreateRequest, "instance_id">): Promise<import('../main.lib').FileRetrieve>;
258
267
  selectDeviceFile(): Promise<import('../main.lib').DeviceFile>;
268
+ deleteLocalFile(payload: {
269
+ url: string;
270
+ }): Promise<void>;
259
271
  getFileRevisions(payload: {
260
272
  id?: import('../main.lib').FileRetrieve["id"];
261
273
  file_id?: import('../main.lib').FileRetrieve["id"];
@@ -328,7 +340,9 @@ export declare function useApi(options?: ApiOptions): {
328
340
  submitUserFeedback(payload: import('./payload.types').SubmitUserFeedbackPayload): Promise<any>;
329
341
  close(): Promise<any>;
330
342
  openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
343
+ showSyncbox(payload: import('./payload.types').ShowSyncboxRequestPayload): Promise<void>;
331
344
  share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
345
+ showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
332
346
  getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
333
347
  assignCanvasTheme(payload: {
334
348
  canvas_id: import('../main.lib').CanvasRetrieve["id"];
@@ -379,6 +393,7 @@ export declare function useApi(options?: ApiOptions): {
379
393
  bottom?: number | string;
380
394
  };
381
395
  }): Promise<void>;
396
+ openCollectionPlayerOverlay(payload: import('./api/modules/admin/types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
382
397
  selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
383
398
  getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
384
399
  selectCollectionContent(payload?: import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerResponse>;
@@ -387,14 +402,6 @@ export declare function useApi(options?: ApiOptions): {
387
402
  captureAppError(payload: import('./api/modules/admin/types.admin').AdminCaptureAppErrorRequest): Promise<void>;
388
403
  on: (type: typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES[keyof typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES], handler: (data: import('./api/modules/admin/types.admin').AdminMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
389
404
  toast: (payload: import('./api/modules/admin/types.admin').AdminToastRequest) => Promise<void>;
390
- } | {
391
- close(): Promise<void>;
392
- getFile(payload: {
393
- id: import('../main.lib').File["id"];
394
- }): Promise<import('../main.lib').File>;
395
- embeddableReady(): Promise<void>;
396
- getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
397
- on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
398
405
  } | {
399
406
  ui: {
400
407
  promptPia(payload: import('./api/modules/ui/types.ui').UiPromptPiaRequest): Promise<import('./api/modules/ui/types.ui').UiPromptPiaResponse>;
@@ -406,9 +413,11 @@ export declare function useApi(options?: ApiOptions): {
406
413
  disablePostcallSubmit(): Promise<void>;
407
414
  setPostcallStyle(payload: import('./api/modules/ui/types.ui').UiSetPostcallStyleRequest): Promise<void>;
408
415
  updateCanvas(payload: import('./api/modules/ui/types.ui').UiUpdateCanvasRequest): Promise<import('../main.lib').CanvasRetrieve>;
416
+ printCanvas(payload: import('./api/modules/ui/types.ui').UiPrintCanvasRequest): Promise<import('./api/modules/ui/types.ui').UiPrintCanvasResponse>;
409
417
  appLoaded(): Promise<void>;
410
418
  appResize(payload: import('./api/modules/ui/types.ui').UiAppResizeRequest): Promise<void>;
411
419
  closeCanvasSectionExecution(): Promise<void>;
420
+ closeCanvasDrawer(): Promise<void>;
412
421
  canvasNavigateNextPage(): Promise<void>;
413
422
  canvasNavigatePreviousPage(): Promise<void>;
414
423
  canvasNavigatePage(payload: import('./api/modules/ui/types.ui').UiCanvasNavigatePageRequest): Promise<void>;
@@ -425,6 +434,7 @@ export declare function useApi(options?: ApiOptions): {
425
434
  bottom?: number | string;
426
435
  };
427
436
  }): Promise<void>;
437
+ openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
428
438
  selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
429
439
  captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
430
440
  updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
@@ -454,6 +464,7 @@ export declare function useApi(options?: ApiOptions): {
454
464
  quitInstance: () => Promise<any>;
455
465
  getRequestTypes: () => Promise<any>;
456
466
  broadcast: (event: import('./interfaces').PitcherEvent) => Promise<any>;
467
+ broadcastToWebviews: (event: import('./interfaces').PitcherEvent) => Promise<any>;
457
468
  subscribe: () => Promise<any>;
458
469
  unsubscribe: () => Promise<any>;
459
470
  open(payload?: import('./payload.types').OpenRequestPayload): Promise<string>;
@@ -462,6 +473,7 @@ export declare function useApi(options?: ApiOptions): {
462
473
  updateMyUser(payload: {
463
474
  language?: import('../main.lib').LanguageEnum | undefined;
464
475
  }): Promise<import('../main.lib').User>;
476
+ isOffline(): Promise<boolean>;
465
477
  getLanguages(): Promise<import('./api/modules').Language[]>;
466
478
  getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
467
479
  createEvent(payload: import('../main.lib').EventRequest): Promise<import('../main.lib').Event>;
@@ -510,8 +522,8 @@ export declare function useApi(options?: ApiOptions): {
510
522
  downloadFile(payload: {
511
523
  file_id: import('../main.lib').File["id"];
512
524
  }): Promise<null>;
513
- getAppConfig(payload: {
514
- app_name: string;
525
+ getAppConfig(payload?: {
526
+ app_name?: string;
515
527
  }): Promise<Record<string, any>>;
516
528
  getFile(payload: {
517
529
  id?: import('../main.lib').FileRetrieve["id"];
@@ -529,6 +541,9 @@ export declare function useApi(options?: ApiOptions): {
529
541
  }): Promise<import('../main.lib').File["id"]>;
530
542
  createFile(payload: Omit<import('../main.lib').AllFileCreateRequest, "instance_id">): Promise<import('../main.lib').FileRetrieve>;
531
543
  selectDeviceFile(): Promise<import('../main.lib').DeviceFile>;
544
+ deleteLocalFile(payload: {
545
+ url: string;
546
+ }): Promise<void>;
532
547
  getFileRevisions(payload: {
533
548
  id?: import('../main.lib').FileRetrieve["id"];
534
549
  file_id?: import('../main.lib').FileRetrieve["id"];
@@ -601,7 +616,9 @@ export declare function useApi(options?: ApiOptions): {
601
616
  submitUserFeedback(payload: import('./payload.types').SubmitUserFeedbackPayload): Promise<any>;
602
617
  close(): Promise<any>;
603
618
  openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
619
+ showSyncbox(payload: import('./payload.types').ShowSyncboxRequestPayload): Promise<void>;
604
620
  share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
621
+ showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
605
622
  getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
606
623
  assignCanvasTheme(payload: {
607
624
  canvas_id: import('../main.lib').CanvasRetrieve["id"];
@@ -621,9 +638,11 @@ export declare function useApi(options?: ApiOptions): {
621
638
  disablePostcallSubmit(): Promise<void>;
622
639
  setPostcallStyle(payload: import('./api/modules/ui/types.ui').UiSetPostcallStyleRequest): Promise<void>;
623
640
  updateCanvas(payload: import('./api/modules/ui/types.ui').UiUpdateCanvasRequest): Promise<import('../main.lib').CanvasRetrieve>;
641
+ printCanvas(payload: import('./api/modules/ui/types.ui').UiPrintCanvasRequest): Promise<import('./api/modules/ui/types.ui').UiPrintCanvasResponse>;
624
642
  appLoaded(): Promise<void>;
625
643
  appResize(payload: import('./api/modules/ui/types.ui').UiAppResizeRequest): Promise<void>;
626
644
  closeCanvasSectionExecution(): Promise<void>;
645
+ closeCanvasDrawer(): Promise<void>;
627
646
  canvasNavigateNextPage(): Promise<void>;
628
647
  canvasNavigatePreviousPage(): Promise<void>;
629
648
  canvasNavigatePage(payload: import('./api/modules/ui/types.ui').UiCanvasNavigatePageRequest): Promise<void>;
@@ -640,6 +659,7 @@ export declare function useApi(options?: ApiOptions): {
640
659
  bottom?: number | string;
641
660
  };
642
661
  }): Promise<void>;
662
+ openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
643
663
  selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
644
664
  captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
645
665
  updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
@@ -666,6 +686,7 @@ export declare function useApi(options?: ApiOptions): {
666
686
  quitInstance: () => Promise<any>;
667
687
  getRequestTypes: () => Promise<any>;
668
688
  broadcast: (event: import('./interfaces').PitcherEvent) => Promise<any>;
689
+ broadcastToWebviews: (event: import('./interfaces').PitcherEvent) => Promise<any>;
669
690
  subscribe: () => Promise<any>;
670
691
  unsubscribe: () => Promise<any>;
671
692
  openExternalUrl(payload: import('./payload.types').OpenExternalUrlRequestPayload): Promise<void>;
@@ -673,6 +694,7 @@ export declare function useApi(options?: ApiOptions): {
673
694
  updateMyUser(payload: {
674
695
  language?: import('../main.lib').LanguageEnum | undefined;
675
696
  }): Promise<import('../main.lib').User>;
697
+ isOffline(): Promise<boolean>;
676
698
  getLanguages(): Promise<import('./api/modules').Language[]>;
677
699
  getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
678
700
  createEvent(payload: import('../main.lib').EventRequest): Promise<import('../main.lib').Event>;
@@ -716,8 +738,8 @@ export declare function useApi(options?: ApiOptions): {
716
738
  downloadFile(payload: {
717
739
  file_id: import('../main.lib').File["id"];
718
740
  }): Promise<null>;
719
- getAppConfig(payload: {
720
- app_name: string;
741
+ getAppConfig(payload?: {
742
+ app_name?: string;
721
743
  }): Promise<Record<string, any>>;
722
744
  getFile(payload: {
723
745
  id?: import('../main.lib').FileRetrieve["id"];
@@ -735,6 +757,9 @@ export declare function useApi(options?: ApiOptions): {
735
757
  }): Promise<import('../main.lib').File["id"]>;
736
758
  createFile(payload: Omit<import('../main.lib').AllFileCreateRequest, "instance_id">): Promise<import('../main.lib').FileRetrieve>;
737
759
  selectDeviceFile(): Promise<import('../main.lib').DeviceFile>;
760
+ deleteLocalFile(payload: {
761
+ url: string;
762
+ }): Promise<void>;
738
763
  getFileRevisions(payload: {
739
764
  id?: import('../main.lib').FileRetrieve["id"];
740
765
  file_id?: import('../main.lib').FileRetrieve["id"];
@@ -803,7 +828,9 @@ export declare function useApi(options?: ApiOptions): {
803
828
  submitUserFeedback(payload: import('./payload.types').SubmitUserFeedbackPayload): Promise<any>;
804
829
  close(): Promise<any>;
805
830
  openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
831
+ showSyncbox(payload: import('./payload.types').ShowSyncboxRequestPayload): Promise<void>;
806
832
  share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
833
+ showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
807
834
  getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
808
835
  assignCanvasTheme(payload: {
809
836
  canvas_id: import('../main.lib').CanvasRetrieve["id"];
@@ -813,4 +840,16 @@ export declare function useApi(options?: ApiOptions): {
813
840
  theme_id: import('../main.lib').CanvasThemeRetrieve["id"];
814
841
  }>;
815
842
  API: import('./api/LowLevelApi').LowLevelApi;
843
+ } | {
844
+ broadcast: (event: import('./interfaces').PitcherEvent) => Promise<any>;
845
+ close(): Promise<void>;
846
+ getFile(payload: {
847
+ id: import('../main.lib').File["id"];
848
+ }): Promise<import('../main.lib').File>;
849
+ getAppConfig(payload?: {
850
+ app_name?: string;
851
+ }): Promise<Record<string, any>>;
852
+ embeddableReady(): Promise<void>;
853
+ getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
854
+ on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
816
855
  };
@@ -234,6 +234,10 @@ export interface SharePayload {
234
234
  * Subject
235
235
  */
236
236
  subject?: string;
237
+ /**
238
+ * Body
239
+ */
240
+ body?: string;
237
241
  }
238
242
  /**
239
243
  * Represents a response to a iOS sharing dialog.
@@ -248,6 +252,32 @@ export type ShareResponse = {
248
252
  */
249
253
  activity_type?: string;
250
254
  };
255
+ /**
256
+ * Payload for showing peer session dialog.
257
+ */
258
+ export interface ShowPeerSessionRequestPayload {
259
+ /**
260
+ * The x-coordinate of the button that triggered the action.
261
+ */
262
+ x: number;
263
+ /**
264
+ * The y-coordinate of the button that triggered the action.
265
+ */
266
+ y: number;
267
+ }
268
+ /**
269
+ * Payload for showing syncbox dialog.
270
+ */
271
+ export interface ShowSyncboxRequestPayload {
272
+ /**
273
+ * The x-coordinate of the button that triggered the action.
274
+ */
275
+ x: number;
276
+ /**
277
+ * The y-coordinate of the button that triggered the action.
278
+ */
279
+ y: number;
280
+ }
251
281
  export type FolderListRequest = {
252
282
  search?: string;
253
283
  ordering?: string;