@pitcher/js-api 1.23.0 → 1.24.0-beta.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 (172) hide show
  1. package/README.md +7 -0
  2. package/js-api.esm.js +17 -0
  3. package/js-api.esm.js.map +1 -1
  4. package/js-api.umd.min.js +9 -9
  5. package/js-api.umd.min.js.map +1 -1
  6. package/lib/apps/agenda-selector/App.vue.d.ts +9 -0
  7. package/lib/apps/agenda-selector/components/AgendaGroup.vue.d.ts +7 -0
  8. package/lib/apps/agenda-selector/components/AgendaItem.vue.d.ts +29 -0
  9. package/lib/apps/agenda-selector/components/AgendaToolbar.vue.d.ts +2 -0
  10. package/lib/apps/agenda-selector/components/AppFooter.vue.d.ts +8 -0
  11. package/lib/apps/agenda-selector/components/AppHeader.vue.d.ts +6 -0
  12. package/lib/apps/agenda-selector/components/modals/ApplicationBlockSelectorModal.vue.d.ts +8 -0
  13. package/lib/apps/agenda-selector/components/modals/MoveItemModal.vue.d.ts +15 -0
  14. package/lib/apps/agenda-selector/composables/application-block-selector-modal.use.d.ts +17 -0
  15. package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +128 -0
  16. package/lib/apps/agenda-selector/composables/table-input.use.d.ts +15 -0
  17. package/lib/apps/agenda-selector/stores/app.store.d.ts +32 -0
  18. package/lib/apps/agenda-selector/types/agenda.type.d.ts +28 -0
  19. package/lib/apps/agenda-selector/types/common.type.d.ts +8 -0
  20. package/lib/apps/agenda-selector/types/move-item-modal.type.d.ts +5 -0
  21. package/lib/apps/agenda-selector/utils/data.util.d.ts +14 -0
  22. package/lib/apps/agenda-selector/utils/theme-overrides.util.d.ts +8 -0
  23. package/lib/apps/browser/App.vue.d.ts +3 -1
  24. package/lib/apps/browser/components/UploadFilesDropzone/UploadFilesDropzone.vue.d.ts +5 -1
  25. package/lib/apps/browser/stores/api.d.ts +28 -6
  26. package/lib/apps/browser/stores/upload.d.ts +12 -12
  27. package/lib/apps/canvas-builder/App.vue.d.ts +56 -32
  28. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +9 -0
  29. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +10 -10
  30. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentLegacy.vue.d.ts +9 -0
  31. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentRevamp.vue.d.ts +13 -0
  32. package/lib/apps/canvas-builder/components/container/EditableComponent/ResizeHandles.vue.d.ts +23 -0
  33. package/lib/apps/canvas-builder/components/ui/Block/Block.helpers.d.ts +2 -0
  34. package/lib/apps/canvas-builder/components/ui/Block/Block.types.d.ts +7 -0
  35. package/lib/apps/canvas-builder/components/ui/{CollectionPlayer/CollectionSelector.vue.d.ts → Block/BlockToolbar.vue.d.ts} +6 -11
  36. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +4 -3
  37. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/{CollectionPlayer.edit.vue.d.ts → CollectionPlayerEmpty.vue.d.ts} +5 -5
  38. package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.raw.vue.d.ts +3 -1
  39. package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.vue.d.ts +4 -5
  40. package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +34 -0
  41. package/lib/apps/canvas-builder/components/ui/Scribble/scribble.helpers.d.ts +5 -0
  42. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelector.helpers.d.ts +6 -1
  43. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorSelected.vue.d.ts +2 -2
  44. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +519 -439
  45. package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +117 -94
  46. package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +1 -1
  47. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +104 -86
  48. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +1 -1
  49. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +1 -1
  50. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +38 -0
  51. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +1 -1
  52. package/lib/apps/canvas-builder/composables/useCollectionSelector.d.ts +9 -0
  53. package/lib/apps/canvas-builder/composables/useComponentStyle.d.ts +22 -0
  54. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +5 -14
  55. package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +28 -0
  56. package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +4 -2
  57. package/lib/apps/canvas-builder/types/canvas.d.ts +22 -31
  58. package/lib/apps/canvas-builder/util/canvas.util.d.ts +6 -5
  59. package/lib/apps/canvas-builder/util/url.d.ts +1 -0
  60. package/lib/apps/canvas-selector/stores/app.d.ts +28 -0
  61. package/lib/apps/collection-player/App.vue.d.ts +33 -0
  62. package/lib/apps/collection-player/components/AppFooter.vue.d.ts +2 -0
  63. package/lib/apps/collection-player/components/AppHeader.vue.d.ts +2 -0
  64. package/lib/apps/collection-player/components/AppWrapper.vue.d.ts +17 -0
  65. package/lib/apps/collection-player/components/MainContent.vue.d.ts +2 -0
  66. package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/components/MainImage.vue.d.ts +3 -3
  67. package/lib/apps/collection-player/components/TableOfContents.vue.d.ts +2 -0
  68. package/lib/apps/collection-player/composables/focus-trap.use.d.ts +9 -0
  69. package/lib/apps/collection-player/composables/fullscreen.use.d.ts +10 -0
  70. package/lib/apps/{canvas-builder/components/ui/CollectionPlayer/composables/gestures.use.d.ts → collection-player/composables/moving-group-gestures.use.d.ts} +6 -3
  71. package/lib/apps/collection-player/composables/slide-direction.use.d.ts +11 -0
  72. package/lib/apps/collection-player/composables/tracking.use.d.ts +10 -0
  73. package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/zoom.use.d.ts +2 -2
  74. package/lib/apps/collection-player/export.d.ts +3 -0
  75. package/lib/apps/collection-player/stores/app.store.d.ts +77 -0
  76. package/lib/apps/collection-player/types/collection-player.type.d.ts +26 -0
  77. package/lib/apps/collection-player/utils/node.util.d.ts +4 -0
  78. package/lib/apps/collection-player/utils/slide-type.util.d.ts +5 -0
  79. package/lib/apps/collection-selector/App.vue.d.ts +29 -0
  80. package/lib/apps/collection-selector/components/AppFooter.vue.d.ts +8 -0
  81. package/lib/apps/collection-selector/components/AppHeader.vue.d.ts +6 -0
  82. package/lib/apps/collection-selector/components/CollectionGroup.vue.d.ts +7 -0
  83. package/lib/apps/collection-selector/components/CollectionItem.vue.d.ts +21 -0
  84. package/lib/apps/collection-selector/components/CollectionToolbar.vue.d.ts +2 -0
  85. package/lib/apps/{canvas-builder/components/ui/CollectionPlayer/CollectionGroupSelector.vue.d.ts → collection-selector/components/modals/MoveSlideModal.vue.d.ts} +7 -13
  86. package/lib/apps/collection-selector/composables/move-slide-modal.use.d.ts +106 -0
  87. package/lib/apps/collection-selector/composables/table-input.use.d.ts +15 -0
  88. package/lib/apps/collection-selector/stores/app.store.d.ts +156 -0
  89. package/lib/apps/collection-selector/types/collection-selector.type.d.ts +12 -0
  90. package/lib/apps/collection-selector/types/common.type.d.ts +18 -0
  91. package/lib/apps/collection-selector/types/move-slide-modal.type.d.ts +5 -0
  92. package/lib/apps/collection-selector/utils/content-selector-adapter.util.d.ts +41 -0
  93. package/lib/apps/collection-selector/utils/data.util.d.ts +23 -0
  94. package/lib/apps/collection-selector/utils/theme-overrides.util.d.ts +8 -0
  95. package/lib/apps/content-selector/appTypes.d.ts +7 -29
  96. package/lib/apps/content-selector/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +2 -0
  97. package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts +6 -3
  98. package/lib/apps/content-selector/stores/api.d.ts +252 -0
  99. package/lib/apps/content-selector/stores/app.d.ts +42 -7
  100. package/lib/components/CBackgroundImageThemeOptions/CBackgroundImageThemeOptions.vue.d.ts +42 -0
  101. package/lib/components/CCanvasSelector/CCanvasSelector.vue.d.ts +3 -0
  102. package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +9 -2
  103. package/lib/components/CComponentThemeOptions/CComponentThemeOptions.vue.d.ts +55 -15
  104. package/lib/components/CDataTable/CDataTableEdit.use.d.ts +1 -1
  105. package/lib/components/CFileViewer/pdf/CFileViewerCopyPagesMetadata.pdf.vue.d.ts +5 -1
  106. package/lib/components/CGlobalSearch/CGlobalSearch.vue.d.ts +3 -2
  107. package/lib/components/CIcon/CIcon.vue.d.ts +1 -0
  108. package/lib/components/CInfoBadge/CInfoBadge.vue.d.ts +1 -1
  109. package/lib/components/CRichTextEditor/CRichTextEditor.vue.d.ts +8 -0
  110. package/lib/components/CRichTextEditor/components/CContentLinkToolbar.vue.d.ts +8 -0
  111. package/lib/components/CRichTextEditor/components/CEditorMenu.vue.d.ts +8 -0
  112. package/lib/components/CRichTextEditor/extensions/contentLink.d.ts +9 -3
  113. package/lib/components/CSearch/CSearchOnClick.vue.d.ts +15 -1
  114. package/lib/components/CSearchFilters/CSearchFilters.types.d.ts +5 -0
  115. package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +22 -1
  116. package/lib/components/CSingleFileSelector/CSingleFileSelector.vue.d.ts +9 -3
  117. package/lib/components/CTable/CTable.vue.d.ts +2 -2
  118. package/lib/components/CTableColumnsSettings/CTableColumnsSettings.vue.d.ts +2 -2
  119. package/lib/components/CTableTag/CTableTag.vue.d.ts +1 -1
  120. package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +6 -6
  121. package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +39 -54
  122. package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +26 -35
  123. package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +32 -43
  124. package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +1 -0
  125. package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +25 -33
  126. package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +11 -6
  127. package/lib/components/sections/CSectionManagement.vue.d.ts +6 -6
  128. package/lib/composables/useConfirmation.d.ts +1 -0
  129. package/lib/composables/useToast.d.ts +6 -5
  130. package/lib/constants/appsDb.const.d.ts +2 -0
  131. package/lib/main.lib.d.ts +10 -0
  132. package/lib/sdk/api/modules/admin/types.admin.d.ts +20 -1
  133. package/lib/sdk/api/modules/ui/content.ui.d.ts +31 -1
  134. package/lib/sdk/api/modules/ui/index.d.ts +2 -0
  135. package/lib/sdk/api/modules/ui/types.ui.d.ts +29 -2
  136. package/lib/sdk/interfaces.d.ts +6 -0
  137. package/lib/sdk/main.d.ts +6 -0
  138. package/lib/types/app.d.ts +1 -1
  139. package/lib/types/background.d.ts +5 -0
  140. package/lib/types/common.d.ts +2 -0
  141. package/lib/types/instanceSettings.types.d.ts +2 -0
  142. package/lib/types/launchDarkly.types.d.ts +3 -1
  143. package/lib/types/organizationSettings.types.d.ts +1 -1
  144. package/lib/types/selections.d.ts +19 -0
  145. package/lib/util/eval.d.ts +1 -0
  146. package/package.json +1 -1
  147. package/types/openapi/index.d.ts +2 -0
  148. package/types/openapi/models/Canvas.d.ts +2 -0
  149. package/types/openapi/models/CanvasCreate.d.ts +2 -0
  150. package/types/openapi/models/CanvasRecommendedFile.d.ts +4 -0
  151. package/types/openapi/models/CanvasRetrieve.d.ts +2 -0
  152. package/types/openapi/models/CanvasUpdate.d.ts +2 -0
  153. package/types/openapi/models/DeletedCanvas.d.ts +2 -0
  154. package/types/openapi/models/DeletedFavorite.d.ts +2 -2
  155. package/types/openapi/models/DeletedFile.d.ts +4 -0
  156. package/types/openapi/models/Favorite.d.ts +2 -2
  157. package/types/openapi/models/FavoriteCreate.d.ts +2 -2
  158. package/types/openapi/models/FavoriteFolder.d.ts +6 -0
  159. package/types/openapi/models/FavoriteFolderRequest.d.ts +3 -0
  160. package/types/openapi/models/FavoriteUpdate.d.ts +2 -2
  161. package/types/openapi/models/File.d.ts +4 -0
  162. package/types/openapi/models/FileCreate.d.ts +4 -0
  163. package/types/openapi/models/FileRetrieve.d.ts +4 -0
  164. package/types/openapi/models/FileUpdate.d.ts +4 -0
  165. package/types/openapi/models/SearchCanvas.d.ts +1 -0
  166. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionListItem.vue.d.ts +0 -37
  167. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.raw.vue.d.ts +0 -19
  168. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/tracking.use.d.ts +0 -4
  169. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +0 -5
  170. package/lib/apps/canvas-builder/composables/useCollectionPlayer.d.ts +0 -31
  171. /package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/arrow-keys.use.d.ts +0 -0
  172. /package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/image-cache.use.d.ts +0 -0
package/README.md CHANGED
@@ -31,3 +31,10 @@ This is the JavaScript API to interact with the data layer of the NG platform.
31
31
 
32
32
  For more details, please visit the [documentation](https://pitcherag.github.io/canvas-ui).
33
33
 
34
+ ## Beta deployment
35
+ 1. Go to canvas-ui folder
36
+ 2. Edit `src/assets/jsApiAssets/package.json` and change version in package json to beta eg. `1.0.0-beta.0`
37
+ 3. Run `yarn`
38
+ 4. Run `yarn js-api:build`
39
+ 5. Run `cd builds/js-api`
40
+ 6. Run `npm publish --tag beta`
package/js-api.esm.js CHANGED
@@ -2709,6 +2709,7 @@ var PitcherEventName = /* @__PURE__ */ ((PitcherEventName2) => {
2709
2709
  PitcherEventName2["CANVAS_UPDATED"] = "canvas_updated";
2710
2710
  PitcherEventName2["CANVAS_UPDATED_SUCCESS"] = "canvas_updated_success";
2711
2711
  PitcherEventName2["FILE_CLOSED"] = "file_closed";
2712
+ PitcherEventName2["FILE_OPENED"] = "file_opened";
2712
2713
  PitcherEventName2["APP_BACKGROUNDED"] = "app_backgrounded";
2713
2714
  PitcherEventName2["APP_FOREGROUNDED"] = "app_foregrounded";
2714
2715
  PitcherEventName2["NON_FILES_SYNC_FINISHED"] = "non_files_sync_finished";
@@ -3316,6 +3317,8 @@ const UI_API_METHOD_TYPES = {
3316
3317
  UI_CAPTURE_APP_ERROR: "ui_capture_app_error",
3317
3318
  UI_UPDATE_CANVAS: "ui_update_canvas",
3318
3319
  UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay",
3320
+ UI_SELECT_COLLECTION_PLAYER_CONTENT: "ui_select_collection_player_content",
3321
+ UI_SELECT_AGENDA_CONTENT: "ui_select_agenda_content",
3319
3322
  UI_UPDATE_LOCATION: "ui_update_location",
3320
3323
  UI_PRESELECT_SFDC_MEETING_ID: "ui_preselect_sfdc_meeting_id",
3321
3324
  UI_SET_POSTCALL_STYLE: "ui_set_postcall_style",
@@ -3373,11 +3376,23 @@ async function preselectSfdcMeetingId(payload) {
3373
3376
  const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_PRESELECT_SFDC_MEETING_ID, payload);
3374
3377
  return response.data;
3375
3378
  }
3379
+ async function selectCollectionContent(payload = {}) {
3380
+ const pr = await usePostRobot();
3381
+ const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_SELECT_COLLECTION_PLAYER_CONTENT, payload);
3382
+ return response.data;
3383
+ }
3384
+ async function selectAgendaContent(payload = {}) {
3385
+ const pr = await usePostRobot();
3386
+ const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_SELECT_AGENDA_CONTENT, payload);
3387
+ return response.data;
3388
+ }
3376
3389
 
3377
3390
  const contentUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3378
3391
  __proto__: null,
3379
3392
  open: open$1,
3380
3393
  preselectSfdcMeetingId,
3394
+ selectAgendaContent,
3395
+ selectCollectionContent,
3381
3396
  selectContent: selectContent$1,
3382
3397
  toast: toast$1,
3383
3398
  ui_select_content
@@ -3590,6 +3605,8 @@ const ADMIN_API_METHOD_TYPES = {
3590
3605
  GET_INSTANCE_METADATA_TEMPLATES: "admin_get_instance_metadata_templates",
3591
3606
  TOAST: "admin_toast",
3592
3607
  UPDATE_CANVAS: "admin_update_canvas",
3608
+ SELECT_COLLECTION_PLAYER_CONTENT: "admin_select_collection_player_content",
3609
+ SELECT_AGENDA_CONTENT: "admin_select_agenda_content",
3593
3610
  SELECT_CONTENT: "admin_select_content",
3594
3611
  SELECT_CANVASES: "admin_select_canvases"
3595
3612
  };