@pitcher/js-api 1.25.0-beta.3 → 1.26.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.
- package/js-api.esm.js +29 -2
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/agenda-selector/components/modals/ApplicationBlockSelectorModal.vue.d.ts +4 -4
- package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +2 -0
- package/lib/apps/browser/App.vue.d.ts +4 -4
- package/lib/apps/browser/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +3 -0
- package/lib/apps/browser/components/Content/Common/SmartFolderListItem.vue.d.ts +4 -0
- package/lib/apps/browser/components/FileSmartFoldersToolbar.vue.d.ts +2 -2
- package/lib/apps/browser/stores/api.d.ts +3 -1
- package/lib/apps/canvas-builder/App.helpers.d.ts +2 -1
- package/lib/apps/canvas-builder/App.vue.d.ts +7 -2
- package/lib/apps/canvas-builder/components/container/AddComponentModal/AddComponentModal.vue.d.ts +4 -4
- package/lib/apps/canvas-builder/components/container/CanvasCompletionWizard/CanvasCompletionWizard.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/components/container/CanvasContent/CanvasContent.paginated.vue.d.ts +4 -1
- package/lib/apps/canvas-builder/components/container/CanvasContent/CanvasContent.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/container/CanvasContent/page.paginated.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/container/CanvasContent/pageWrapper.paginated.vue.d.ts +27 -0
- package/lib/apps/canvas-builder/components/container/ControlBar/AppGrid.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/container/ControlBar/ControlBar.vue.d.ts +1 -3
- package/lib/apps/canvas-builder/components/container/ControlBar/ReorderContent.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentRevamp.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/components/container/LinkableComponent/LinkableComponent.vue.d.ts +4 -0
- package/lib/apps/canvas-builder/components/container/Navigator/Navigator.vue.d.ts +5 -5
- package/lib/apps/canvas-builder/components/container/PopupApps/PopupAppsButtons.vue.d.ts +18 -0
- package/lib/apps/canvas-builder/components/container/SectionInfoProvider/SectionInfoProvider.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridFileItem.vue.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridListItem.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.raw.grouped.vue.d.ts +3 -1
- package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.raw.simple.vue.d.ts +3 -1
- package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.raw.vue.d.ts +4 -0
- package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.vue.d.ts +2 -1
- package/lib/apps/canvas-builder/components/ui/Html/Html.vue.d.ts +5 -2
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.original.vue.d.ts +2 -1
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.responsive.vue.d.ts +2 -1
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +2 -1
- package/lib/apps/canvas-builder/components/ui/Scribble/scribble.helpers.d.ts +9 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionItemModal.vue.d.ts +35 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.raw.vue.d.ts +4 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.vue.d.ts +6 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionListCompact.vue.d.ts +18 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionListItem.vue.d.ts +27 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSearch.vue.d.ts +11 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +1024 -28
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +6 -4
- package/lib/apps/canvas-builder/composables/useCanvasCompletionWizard.d.ts +14 -0
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +6 -4
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +23 -7
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +3 -1
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +1 -0
- package/lib/apps/canvas-builder/composables/useCanvasThemeAssets.d.ts +8 -0
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +3 -0
- package/lib/apps/canvas-builder/composables/useEmbeddable.d.ts +7 -0
- package/lib/apps/canvas-builder/composables/usePitcherEvents.d.ts +7 -1
- package/lib/apps/canvas-builder/composables/usePopupApps.d.ts +917 -0
- package/lib/apps/canvas-builder/composables/usePrintMode.d.ts +2 -0
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +4 -0
- package/lib/apps/canvas-builder/constants/canvas.const.d.ts +3 -1
- package/lib/apps/canvas-builder/types/canvas.d.ts +14 -3
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +4 -1
- package/lib/apps/collection-player/types/collection-player.type.d.ts +1 -0
- package/lib/apps/collection-selector/utils/content-selector-adapter.util.d.ts +10 -1
- package/lib/apps/content-selector/appTypes.d.ts +2 -0
- package/lib/apps/content-selector/components/Assets.vue.d.ts +75 -1
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesList.vue.d.ts +3 -0
- package/lib/apps/content-selector/components/ui/GridItem.vue.d.ts +2 -0
- package/lib/apps/content-selector/stores/app.d.ts +18 -4
- package/lib/apps/content-selector/util/file.d.ts +6 -3
- package/lib/apps/ppt-conversion-selector/components/AppHeader.vue.d.ts +2 -0
- package/lib/apps/ppt-conversion-selector/composables/canvas.use.d.ts +3 -2
- package/lib/apps/ppt-conversion-selector/stores/app.store.d.ts +3 -2
- package/lib/canvas-comments/components/CommentableComponent.vue.d.ts +6 -2
- package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +3 -0
- package/lib/components/CCreateThemeModal/steps/CThemeSettingsStep.vue.d.ts +18 -16
- package/lib/components/CDataTable/CDataTable.vue.d.ts +12 -12
- package/lib/components/CEntitySelector/CEntitySelector.vue.d.ts +8 -0
- package/lib/components/CFileViewer/CFileViewer.types.d.ts +1 -1
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +10 -0
- package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +2 -0
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.use.d.ts +1 -0
- package/lib/components/CFileViewer/pdf/CFileViewerBottom.pdf.vue.d.ts +2 -0
- package/lib/components/CFilesAccessManage/CFilesAccessManage.vue.d.ts +1 -0
- package/lib/components/CGlobalSearch/CGlobalSearch.vue.d.ts +3 -0
- package/lib/components/CInput/CInput.vue.d.ts +4 -4
- package/lib/components/CMonacoEditor/CMonacoEditor.vue.d.ts +27 -0
- package/lib/components/CQuickFilters/CQuickFilters.vue.d.ts +4 -0
- package/lib/components/CRichTextEditor/components/CDynamicValueTreeSelect.vue.d.ts +18 -5
- package/lib/components/CRichTextEditor/components/CFormatterWithFieldSelect.vue.d.ts +28 -8
- package/lib/components/CRichTextEditor/components/CHandlebarsHelperTreeSelect.vue.d.ts +14 -4
- package/lib/components/CRichTextEditor/components/CHyperLinkToolbar.vue.d.ts +4 -4
- package/lib/components/CSearch/CSearch.vue.d.ts +2 -0
- package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +1 -0
- package/lib/components/CSectionSmartFolders/CSectionSmartFolders.vue.d.ts +109 -0
- package/lib/components/CSectionSmartFolders/CSectionSmartFoldersToolbar.vue.d.ts +33 -0
- package/lib/components/CSlideViewer/CSlideViewer.vue.d.ts +17 -0
- package/lib/components/CTable/CTable.vue.d.ts +0 -4
- package/lib/components/CTableInput/CTableInput.vue.d.ts +10 -8
- package/lib/components/CTableTag/CTableTag.vue.d.ts +5 -4
- package/lib/components/CTags/CTags.vue.d.ts +4 -4
- package/lib/components/CThumbnail/CThumbnail.vue.d.ts +1 -0
- package/lib/components/CUserMenu/CUserMenu.vue.d.ts +3 -1
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +0 -8
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +22 -24
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +7 -4
- package/lib/components/filters/CSearchFilter.vue.d.ts +6 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +6 -16
- package/lib/components/savedCanvases/CSavedCanvasesManagementActionsCell.vue.d.ts +2 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementOwnerCell.vue.d.ts +4 -4
- package/lib/components/savedCanvases/smartFolders/SmartFolders.vue.d.ts +0 -4
- package/lib/components/savedCanvases/smartFolders/SmartFoldersMissingConfig.vue.d.ts +8 -3
- package/lib/components/sections/CSectionManagement.vue.d.ts +1 -9
- package/lib/components/themes/CThemeManagement.vue.d.ts +0 -8
- package/lib/composables/useBindValidation.d.ts +1 -1
- package/lib/composables/useElementSizeAfterDom.d.ts +5 -0
- package/lib/composables/useFilterSuggestions.d.ts +56 -0
- package/lib/composables/useImageAccessibility.d.ts +13 -0
- package/lib/composables/useMetadataSearch.d.ts +21 -1
- package/lib/directives/element-mounted.d.ts +4 -0
- package/lib/main.lib.d.ts +2 -0
- package/lib/sdk/api/HighLevelApi.d.ts +2 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +8 -0
- package/lib/sdk/api/modules/env.d.ts +1 -0
- package/lib/sdk/api/modules/share.d.ts +8 -1
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +25 -1
- package/lib/sdk/api/modules/ui/index.d.ts +2 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +22 -0
- package/lib/sdk/interfaces.d.ts +46 -2
- package/lib/sdk/main.d.ts +12 -0
- package/lib/sdk/payload.types.d.ts +13 -0
- package/lib/stores/sectionSmartFolderStore.d.ts +110 -0
- package/lib/types/app.d.ts +20 -3
- package/lib/types/call.d.ts +2 -1
- package/lib/types/core/MetadataFilter.d.ts +2 -0
- package/lib/types/instanceSettings.types.d.ts +16 -3
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/types/organizationSettings.types.d.ts +13 -0
- package/lib/util/date.d.ts +1 -0
- package/lib/util/network.d.ts +8 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +0 -7
- package/types/openapi/models/DeletedInstance.d.ts +0 -2
- package/types/openapi/models/Instance.d.ts +0 -2
- package/types/openapi/models/InstanceRequest.d.ts +0 -1
- package/types/openapi/models/InstanceUpdate.d.ts +0 -2
- package/types/openapi/models/InstanceUpdateRequest.d.ts +0 -1
- package/types/openapi/models/OrganizationAnalyticsInstance.d.ts +0 -2
- package/types/openapi/models/OrganizationAnalyticsTop3Instances.d.ts +0 -2
- package/types/openapi/models/PatchedInstanceUpdateRequest.d.ts +0 -1
- package/types/openapi/models/DeletedRegion.d.ts +0 -12
- package/types/openapi/models/MiniRegion.d.ts +0 -4
- package/types/openapi/models/MiniRegionRequest.d.ts +0 -3
- package/types/openapi/models/PaginatedRegionList.d.ts +0 -7
- package/types/openapi/models/PatchedRegionRequest.d.ts +0 -3
- package/types/openapi/models/Region.d.ts +0 -10
- package/types/openapi/models/RegionRequest.d.ts +0 -3
|
@@ -144,7 +144,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
144
144
|
readonly type: BooleanConstructor;
|
|
145
145
|
readonly default: true;
|
|
146
146
|
};
|
|
147
|
-
readonly status: import('vue').PropType<import('naive-ui
|
|
147
|
+
readonly status: import('vue').PropType<import('naive-ui').FormValidationStatus>;
|
|
148
148
|
readonly showCheckmark: {
|
|
149
149
|
readonly type: BooleanConstructor;
|
|
150
150
|
readonly default: true;
|
|
@@ -575,7 +575,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
575
575
|
}>;
|
|
576
576
|
}>>>;
|
|
577
577
|
}>> & Readonly<{}>, {
|
|
578
|
-
mergedStatus: import('vue').ComputedRef<import('naive-ui
|
|
578
|
+
mergedStatus: import('vue').ComputedRef<import('naive-ui').FormValidationStatus | undefined>;
|
|
579
579
|
mergedClsPrefix: import('vue').Ref<string, string>;
|
|
580
580
|
mergedBordered: import('vue').ComputedRef<boolean>;
|
|
581
581
|
namespace: import('vue').ComputedRef<string | undefined>;
|
|
@@ -1004,7 +1004,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
1004
1004
|
readonly type: BooleanConstructor;
|
|
1005
1005
|
readonly default: true;
|
|
1006
1006
|
};
|
|
1007
|
-
readonly status: import('vue').PropType<import('naive-ui
|
|
1007
|
+
readonly status: import('vue').PropType<import('naive-ui').FormValidationStatus>;
|
|
1008
1008
|
readonly showCheckmark: {
|
|
1009
1009
|
readonly type: BooleanConstructor;
|
|
1010
1010
|
readonly default: true;
|
|
@@ -1435,7 +1435,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
1435
1435
|
}>;
|
|
1436
1436
|
}>>>;
|
|
1437
1437
|
}>> & Readonly<{}>, {
|
|
1438
|
-
mergedStatus: import('vue').ComputedRef<import('naive-ui
|
|
1438
|
+
mergedStatus: import('vue').ComputedRef<import('naive-ui').FormValidationStatus | undefined>;
|
|
1439
1439
|
mergedClsPrefix: import('vue').Ref<string, string>;
|
|
1440
1440
|
mergedBordered: import('vue').ComputedRef<boolean>;
|
|
1441
1441
|
namespace: import('vue').ComputedRef<string | undefined>;
|
|
@@ -50,8 +50,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
50
50
|
selectedRowsCount: ComputedRef<number>;
|
|
51
51
|
pageRowsCount: ComputedRef<number>;
|
|
52
52
|
isRowDisabled: (id: string | number) => boolean;
|
|
53
|
-
saveScrollPosition: () => void;
|
|
54
|
-
restoreScrollPosition: () => void;
|
|
55
53
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
56
54
|
sortChanged: (s: import('@tanstack/table-core').SortingState) => any;
|
|
57
55
|
pageChanged: (p: import('@tanstack/table-core').PaginationState) => any;
|
|
@@ -119,8 +117,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
119
117
|
selectedRowsCount: ComputedRef<number>;
|
|
120
118
|
pageRowsCount: ComputedRef<number>;
|
|
121
119
|
isRowDisabled: (id: string | number) => boolean;
|
|
122
|
-
saveScrollPosition: () => void;
|
|
123
|
-
restoreScrollPosition: () => void;
|
|
124
120
|
}, {}, {}, {}, {
|
|
125
121
|
data: {
|
|
126
122
|
[x: string]: any;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
hideConfigurationButton?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
5
|
configure: () => any;
|
|
3
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
4
7
|
onConfigure?: (() => any) | undefined;
|
|
5
|
-
}>, {
|
|
8
|
+
}>, {
|
|
9
|
+
hideConfigurationButton: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
11
|
export default _default;
|
|
@@ -5,7 +5,7 @@ import { CLIENT_TYPE } from '../../constants/cdp.const';
|
|
|
5
5
|
import { GetCanvasesParams } from '../../types/canvases';
|
|
6
6
|
import { CanvasRetrieve, CanvasCreateRequest, PatchedCanvasUpdateRequest } from '../../../types/openapi';
|
|
7
7
|
type __VLS_Props = {
|
|
8
|
-
storageKey
|
|
8
|
+
storageKey: string;
|
|
9
9
|
myUserId?: CanvasRetrieve['created_by']['id'];
|
|
10
10
|
updater: (params: PatchedCanvasUpdateRequest & {
|
|
11
11
|
id: CanvasRetrieve['id'];
|
|
@@ -130,8 +130,6 @@ declare function __VLS_template(): {
|
|
|
130
130
|
selectedRowsCount: ComputedRef<number>;
|
|
131
131
|
pageRowsCount: ComputedRef<number>;
|
|
132
132
|
isRowDisabled: (id: string | number) => boolean;
|
|
133
|
-
saveScrollPosition: () => void;
|
|
134
|
-
restoreScrollPosition: () => void;
|
|
135
133
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
136
134
|
sortChanged: (s: SortingState) => any;
|
|
137
135
|
pageChanged: (p: PaginationState) => any;
|
|
@@ -199,8 +197,6 @@ declare function __VLS_template(): {
|
|
|
199
197
|
selectedRowsCount: ComputedRef<number>;
|
|
200
198
|
pageRowsCount: ComputedRef<number>;
|
|
201
199
|
isRowDisabled: (id: string | number) => boolean;
|
|
202
|
-
saveScrollPosition: () => void;
|
|
203
|
-
restoreScrollPosition: () => void;
|
|
204
200
|
}, {}, {}, {}, {
|
|
205
201
|
data: {
|
|
206
202
|
[x: string]: any;
|
|
@@ -335,8 +331,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
335
331
|
selectedRowsCount: ComputedRef<number>;
|
|
336
332
|
pageRowsCount: ComputedRef<number>;
|
|
337
333
|
isRowDisabled: (id: string | number) => boolean;
|
|
338
|
-
saveScrollPosition: () => void;
|
|
339
|
-
restoreScrollPosition: () => void;
|
|
340
334
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
341
335
|
sortChanged: (s: SortingState) => any;
|
|
342
336
|
pageChanged: (p: PaginationState) => any;
|
|
@@ -404,8 +398,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
404
398
|
selectedRowsCount: ComputedRef<number>;
|
|
405
399
|
pageRowsCount: ComputedRef<number>;
|
|
406
400
|
isRowDisabled: (id: string | number) => boolean;
|
|
407
|
-
saveScrollPosition: () => void;
|
|
408
|
-
restoreScrollPosition: () => void;
|
|
409
401
|
}, {}, {}, {}, {
|
|
410
402
|
data: {
|
|
411
403
|
[x: string]: any;
|
|
@@ -95,8 +95,6 @@ declare function __VLS_template(): {
|
|
|
95
95
|
selectedRowsCount: ComputedRef<number>;
|
|
96
96
|
pageRowsCount: ComputedRef<number>;
|
|
97
97
|
isRowDisabled: (id: string | number) => boolean;
|
|
98
|
-
saveScrollPosition: () => void;
|
|
99
|
-
restoreScrollPosition: () => void;
|
|
100
98
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
101
99
|
sortChanged: (s: SortingState) => any;
|
|
102
100
|
pageChanged: (p: PaginationState) => any;
|
|
@@ -164,8 +162,6 @@ declare function __VLS_template(): {
|
|
|
164
162
|
selectedRowsCount: ComputedRef<number>;
|
|
165
163
|
pageRowsCount: ComputedRef<number>;
|
|
166
164
|
isRowDisabled: (id: string | number) => boolean;
|
|
167
|
-
saveScrollPosition: () => void;
|
|
168
|
-
restoreScrollPosition: () => void;
|
|
169
165
|
}, {}, {}, {}, {
|
|
170
166
|
data: {
|
|
171
167
|
[x: string]: any;
|
|
@@ -267,8 +263,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
267
263
|
selectedRowsCount: ComputedRef<number>;
|
|
268
264
|
pageRowsCount: ComputedRef<number>;
|
|
269
265
|
isRowDisabled: (id: string | number) => boolean;
|
|
270
|
-
saveScrollPosition: () => void;
|
|
271
|
-
restoreScrollPosition: () => void;
|
|
272
266
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
273
267
|
sortChanged: (s: SortingState) => any;
|
|
274
268
|
pageChanged: (p: PaginationState) => any;
|
|
@@ -336,8 +330,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
336
330
|
selectedRowsCount: ComputedRef<number>;
|
|
337
331
|
pageRowsCount: ComputedRef<number>;
|
|
338
332
|
isRowDisabled: (id: string | number) => boolean;
|
|
339
|
-
saveScrollPosition: () => void;
|
|
340
|
-
restoreScrollPosition: () => void;
|
|
341
333
|
}, {}, {}, {}, {
|
|
342
334
|
data: {
|
|
343
335
|
[x: string]: any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { MetadataFilterRequest } from '../types/core/MetadataFilter';
|
|
3
|
+
interface FilterSuggestion {
|
|
4
|
+
name: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
usageCount?: number;
|
|
7
|
+
}
|
|
8
|
+
interface FilterSuggestionsData {
|
|
9
|
+
popular: FilterSuggestion[];
|
|
10
|
+
all: FilterSuggestion[];
|
|
11
|
+
}
|
|
12
|
+
interface FilterConstraint {
|
|
13
|
+
key: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}
|
|
16
|
+
interface UseFilterSuggestionsOptions {
|
|
17
|
+
entity?: MetadataFilterRequest['entity'];
|
|
18
|
+
filterKey?: string;
|
|
19
|
+
includeDraftValues?: boolean;
|
|
20
|
+
isSection?: boolean;
|
|
21
|
+
isTemplate?: boolean;
|
|
22
|
+
ownerId?: number | null;
|
|
23
|
+
limit?: number;
|
|
24
|
+
}
|
|
25
|
+
export default function useFilterSuggestions(options?: UseFilterSuggestionsOptions): {
|
|
26
|
+
suggestions: Ref<{
|
|
27
|
+
popular: {
|
|
28
|
+
name: string;
|
|
29
|
+
displayName: string;
|
|
30
|
+
usageCount?: number | undefined;
|
|
31
|
+
}[];
|
|
32
|
+
all: {
|
|
33
|
+
name: string;
|
|
34
|
+
displayName: string;
|
|
35
|
+
usageCount?: number | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
}, FilterSuggestionsData | {
|
|
38
|
+
popular: {
|
|
39
|
+
name: string;
|
|
40
|
+
displayName: string;
|
|
41
|
+
usageCount?: number | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
all: {
|
|
44
|
+
name: string;
|
|
45
|
+
displayName: string;
|
|
46
|
+
usageCount?: number | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
}>;
|
|
49
|
+
isLoading: Ref<boolean, boolean>;
|
|
50
|
+
isEnabled: ComputedRef<boolean | undefined>;
|
|
51
|
+
fetchSuggestions: (currentFilters?: Record<string, any>) => Promise<FilterSuggestionsData>;
|
|
52
|
+
debouncedFetch: (currentFilters?: Record<string, any>, delay?: number) => Promise<FilterSuggestionsData>;
|
|
53
|
+
buildConstraints: (currentFilters: Record<string, any>, excludeCurrentField?: boolean) => FilterConstraint[];
|
|
54
|
+
cleanup: () => void;
|
|
55
|
+
};
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
interface UseImageAccessibilityOptions {
|
|
3
|
+
thumbnailUrl: ComputedRef<string | null>;
|
|
4
|
+
hasAIEnabled: ComputedRef<boolean>;
|
|
5
|
+
hasFile: ComputedRef<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export default function useImageAccessibility({ thumbnailUrl, hasAIEnabled, hasFile }: UseImageAccessibilityOptions): {
|
|
8
|
+
imageAccessible: import('vue').Ref<boolean | null, boolean | null>;
|
|
9
|
+
hasValidThumbnail: ComputedRef<boolean>;
|
|
10
|
+
handleImageError: () => void;
|
|
11
|
+
checkImageAccessibility: () => Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { MetadataFilterRequest, MetadataSearchParams } from '../types/core/MetadataFilter';
|
|
2
2
|
import { StyledAutoCompleteOption } from '../types/search';
|
|
3
|
+
interface MetadataUniqueValuesResponse {
|
|
4
|
+
popular: Array<StyledAutoCompleteOption & {
|
|
5
|
+
usage_count: number;
|
|
6
|
+
}>;
|
|
7
|
+
all: StyledAutoCompleteOption[];
|
|
8
|
+
}
|
|
3
9
|
interface UseMetadataSearchOptions {
|
|
4
10
|
includeSearchTermAsOption?: boolean;
|
|
5
11
|
}
|
|
6
12
|
export default function useMetadataSearch(options?: UseMetadataSearchOptions): {
|
|
7
|
-
handleFetch: (searchTerm: string, entity: MetadataFilterRequest["entity"], { includeNameSearch, includeDraftValues, isSection, isTemplate, isBlock, key, ownerId, searchMode, threshold, fetchAllUnique, }?: {
|
|
13
|
+
handleFetch: (searchTerm: string, entity: MetadataFilterRequest["entity"], { includeNameSearch, includeDraftValues, isSection, isTemplate, isBlock, key, ownerId, searchMode, threshold, fetchAllUnique, contentType, }?: {
|
|
8
14
|
includeNameSearch?: boolean;
|
|
9
15
|
includeDraftValues?: boolean;
|
|
10
16
|
isSection?: boolean;
|
|
@@ -15,6 +21,20 @@ export default function useMetadataSearch(options?: UseMetadataSearchOptions): {
|
|
|
15
21
|
searchMode?: MetadataSearchParams["searchMode"];
|
|
16
22
|
threshold?: number;
|
|
17
23
|
fetchAllUnique?: boolean;
|
|
24
|
+
contentType?: string[];
|
|
18
25
|
}) => Promise<StyledAutoCompleteOption[]>;
|
|
26
|
+
fetchUniqueValues: (entity: MetadataFilterRequest["entity"], { includeDraftValues, isSection, isTemplate, isBlock, key, ownerId, limit, and, }?: {
|
|
27
|
+
includeDraftValues?: boolean;
|
|
28
|
+
isSection?: boolean;
|
|
29
|
+
isTemplate?: boolean;
|
|
30
|
+
isBlock?: boolean;
|
|
31
|
+
key?: MetadataSearchParams["key"];
|
|
32
|
+
ownerId?: number | null;
|
|
33
|
+
limit?: number;
|
|
34
|
+
and?: Array<{
|
|
35
|
+
key: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}>;
|
|
38
|
+
}) => Promise<MetadataUniqueValuesResponse>;
|
|
19
39
|
};
|
|
20
40
|
export {};
|
package/lib/main.lib.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export { default as CGlobalLoader } from './components/CGlobalLoader/CGlobalLoad
|
|
|
90
90
|
export { default as CFilesFolderDeleteDialogContent } from './components/CFilesFolderDeleteDialogContent/CFilesFolderDeleteDialogContent.vue';
|
|
91
91
|
export { default as CCatalogIqSwitcher } from './components/CCatalogIqSwitcher/CCatalogIqSwitcher.vue';
|
|
92
92
|
export { default as CCarousel } from './components/CCarousel/CCarousel.vue';
|
|
93
|
+
export { default as CSlideViewer } from './components/CSlideViewer/CSlideViewer.vue';
|
|
93
94
|
export { default as CTags } from './components/CTags/CTags.vue';
|
|
94
95
|
export { default as CMovableWidget } from './components/CMovableWidget/CMovableWidget.vue';
|
|
95
96
|
export { default as CUserMenu } from './components/CUserMenu/CUserMenu.vue';
|
|
@@ -236,5 +237,6 @@ export { default as clickOutsideDirective } from './directives/clickOutside';
|
|
|
236
237
|
export { default as autofocusDirective } from './directives/autofocus';
|
|
237
238
|
export { default as tooltipDirective } from './directives/tooltip';
|
|
238
239
|
export { default as usageTrackDirective } from './directives/usage-track.directive';
|
|
240
|
+
export { default as elementMountedDirective } from './directives/element-mounted';
|
|
239
241
|
export * from './constants/i18n.const';
|
|
240
242
|
export * from './types/i18n.types';
|
|
@@ -111,6 +111,7 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
111
111
|
updateMyUser(payload: {
|
|
112
112
|
language?: import('../../main.lib').LanguageEnum | undefined;
|
|
113
113
|
}): Promise<import('../../main.lib').User>;
|
|
114
|
+
isOffline(): Promise<boolean>;
|
|
114
115
|
getLanguages(): Promise<modules.Language[]>;
|
|
115
116
|
getEvents(payload: Partial<import('../../main.lib').EventRequest>): Promise<import('../../main.lib').PaginatedData<import('../../main.lib').Event>>;
|
|
116
117
|
createEvent(payload: import('../../main.lib').EventRequest): Promise<import('../../main.lib').Event>;
|
|
@@ -251,6 +252,7 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
251
252
|
close(): Promise<any>;
|
|
252
253
|
openWebViewAlwaysOnTop(payload: import('../payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
|
|
253
254
|
share(payload: import('../payload.types').SharePayload): Promise<import('../payload.types').ShareResponse>;
|
|
255
|
+
showPeerSession(payload: import('../payload.types').ShowPeerSessionRequestPayload): Promise<void>;
|
|
254
256
|
getThemes(payload: Partial<import('../../main.lib').CanvasThemeRetrieve>): Promise<import('../../main.lib').CanvasThemeRetrieve[]>;
|
|
255
257
|
assignCanvasTheme(payload: {
|
|
256
258
|
canvas_id: import('../../main.lib').CanvasRetrieve["id"];
|
|
@@ -148,6 +148,14 @@ export type AdminSelectContentRequest = {
|
|
|
148
148
|
* Disables files from selection which are not sharable (optional).
|
|
149
149
|
*/
|
|
150
150
|
disable_no_sharable?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Disables files from selection which do not have pptx_data in metadata object (optional).
|
|
153
|
+
*/
|
|
154
|
+
disable_no_pptx_data?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Only allow content pdf pages (optional). User will be forced to select a page from the pdf.
|
|
157
|
+
*/
|
|
158
|
+
only_allow_content_pdf_pages?: boolean;
|
|
151
159
|
};
|
|
152
160
|
/**
|
|
153
161
|
* Represents a response to a content selection request.
|
|
@@ -19,4 +19,5 @@ import { User } from '../../../../types/openapi';
|
|
|
19
19
|
export declare function getEnv(): Promise<PitcherEnv>;
|
|
20
20
|
type UpdateEnvParams = Pick<User, 'language'>;
|
|
21
21
|
export declare function updateMyUser(payload: UpdateEnvParams): Promise<User>;
|
|
22
|
+
export declare function isOffline(): Promise<boolean>;
|
|
22
23
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SharePayload, ShareResponse } from '../../payload.types';
|
|
1
|
+
import { SharePayload, ShareResponse, ShowPeerSessionRequestPayload } from '../../payload.types';
|
|
2
2
|
/**
|
|
3
3
|
* Dispatch iOS sharing dialog.
|
|
4
4
|
*
|
|
@@ -6,3 +6,10 @@ import { SharePayload, ShareResponse } from '../../payload.types';
|
|
|
6
6
|
* api.share({text: "example text", subject: "example subject"})
|
|
7
7
|
*/
|
|
8
8
|
export declare function share(payload: SharePayload): Promise<ShareResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Show peer session dialog with button coordinates, for local peer sharing feature.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* api.showPeerSession({x: 100, y: 200})
|
|
14
|
+
*/
|
|
15
|
+
export declare function showPeerSession(payload: ShowPeerSessionRequestPayload): Promise<void>;
|
|
@@ -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 } 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
|
*
|
|
@@ -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>;
|
|
@@ -21,6 +21,7 @@ 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";
|
|
25
26
|
readonly UI_SELECT_COLLECTION_PLAYER_CONTENT: "ui_select_collection_player_content";
|
|
26
27
|
readonly UI_SELECT_AGENDA_CONTENT: "ui_select_agenda_content";
|
|
@@ -40,6 +41,7 @@ export declare const UI_API_METHOD_TYPES: {
|
|
|
40
41
|
readonly UI_APP_LOADED: "ui_app_loaded";
|
|
41
42
|
readonly UI_APP_RESIZE: "ui_app_resize";
|
|
42
43
|
readonly UI_CLOSE_CANVAS_SECTION_EXECUTION: "ui_close_canvas_section_execution";
|
|
44
|
+
readonly UI_CLOSE_CANVAS_DRAWER: "ui_close_canvas_drawer";
|
|
43
45
|
};
|
|
44
46
|
export declare const UI_MESSAGE_TYPES: {
|
|
45
47
|
readonly UI_MEETING_CANCELED: "ui_meeting_canceled";
|
|
@@ -70,6 +72,14 @@ export type UiSelectContentRequest = {
|
|
|
70
72
|
* Disables files from selection which are not sharable (optional).
|
|
71
73
|
*/
|
|
72
74
|
disable_no_sharable?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Disables files from selection which do not have pptx_data in metadata object (optional).
|
|
77
|
+
*/
|
|
78
|
+
disable_no_pptx_data?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Only allow content pdf pages (optional). User will be forced to select a page from the pdf.
|
|
81
|
+
*/
|
|
82
|
+
only_allow_content_pdf_pages?: boolean;
|
|
73
83
|
};
|
|
74
84
|
export type UiSelectContentResponse = {
|
|
75
85
|
/** User action result */
|
|
@@ -136,6 +146,18 @@ export type UiUpdateCanvasRequest = Mutable<CanvasRetrieve> & {
|
|
|
136
146
|
/** Comma-separated list of field keys to return from the server */
|
|
137
147
|
fields?: string;
|
|
138
148
|
};
|
|
149
|
+
export type UiPrintCanvasRequest = {
|
|
150
|
+
/** Canvas ID to print */
|
|
151
|
+
id: CanvasRetrieve['id'];
|
|
152
|
+
/** Optional HTTPS URL for async download notifications */
|
|
153
|
+
notify_url?: string;
|
|
154
|
+
};
|
|
155
|
+
export type UiPrintCanvasResponse = {
|
|
156
|
+
/** Job ID for tracking the async download */
|
|
157
|
+
job_id?: string;
|
|
158
|
+
/** Indicates if the request was successful */
|
|
159
|
+
success: boolean;
|
|
160
|
+
};
|
|
139
161
|
export type UiOpenRequest = OpenRequestPayload & {
|
|
140
162
|
/** Name of the app to open */
|
|
141
163
|
app_name?: string;
|
package/lib/sdk/interfaces.d.ts
CHANGED
|
@@ -126,13 +126,21 @@ export declare enum PitcherEventName {
|
|
|
126
126
|
EXITED_FULLSCREEN = "exited_fullscreen",
|
|
127
127
|
SUBMIT_POSTCALL_CLICKED = "submit_postcall_clicked",
|
|
128
128
|
ANALYTICS_CAPTURED = "analytics_captured",
|
|
129
|
-
OPEN_FOLDER_REQUESTED = "open_folder_requested"
|
|
129
|
+
OPEN_FOLDER_REQUESTED = "open_folder_requested",
|
|
130
|
+
CANVAS_PAGE_NEXT_REQUESTED = "canvas_page_next_requested",
|
|
131
|
+
CANVAS_PAGE_PREVIOUS_REQUESTED = "canvas_page_previous_requested",
|
|
132
|
+
CANVAS_OPEN_REQUESTED = "canvas_open_requested",
|
|
133
|
+
CANVAS_CLOSE_REQUESTED = "canvas_close_requested"
|
|
130
134
|
}
|
|
131
135
|
export declare enum PitcherBroadcastedEventName {
|
|
132
136
|
UI_SHOW_MODAL = "ui:show-modal",
|
|
133
137
|
UI_HIDE_MODAL = "ui:hide-modal",
|
|
134
138
|
FAVORITES_CHANGED = "favorites:changed",
|
|
135
|
-
FILE_DOWNLOAD = "file:download"
|
|
139
|
+
FILE_DOWNLOAD = "file:download",
|
|
140
|
+
CANVAS_NEXT_BUTTON_CLICKED = "canvas_next_button_clicked",// NOTE: This event is separate from `CANVAS_PAGE_NEXT_REQUESTED`
|
|
141
|
+
CANVAS_PREVIOUS_BUTTON_CLICKED = "canvas_previous_button_clicked",// NOTE: This event is separate from `CANVAS_PAGE_PREVIOUS_REQUESTED`
|
|
142
|
+
CANVAS_OPENED = "canvas_opened",
|
|
143
|
+
CANVAS_CLOSED = "canvas_closed"
|
|
136
144
|
}
|
|
137
145
|
export declare enum PitcherExternalEventName {
|
|
138
146
|
CREATE_AND_OPEN_CANVAS = "create_and_open_canvas",
|
|
@@ -371,6 +379,20 @@ export interface PitcherEventMap {
|
|
|
371
379
|
view_id?: string;
|
|
372
380
|
};
|
|
373
381
|
[PitcherEventName.SUBMIT_POSTCALL_CLICKED]: void;
|
|
382
|
+
[PitcherEventName.CANVAS_PAGE_NEXT_REQUESTED]: {
|
|
383
|
+
canvas_id?: string;
|
|
384
|
+
current_page_index?: number;
|
|
385
|
+
};
|
|
386
|
+
[PitcherEventName.CANVAS_PAGE_PREVIOUS_REQUESTED]: {
|
|
387
|
+
canvas_id?: string;
|
|
388
|
+
current_page_index?: number;
|
|
389
|
+
};
|
|
390
|
+
[PitcherEventName.CANVAS_OPEN_REQUESTED]: {
|
|
391
|
+
canvas_id?: string;
|
|
392
|
+
};
|
|
393
|
+
[PitcherEventName.CANVAS_CLOSE_REQUESTED]: {
|
|
394
|
+
canvas_id?: string;
|
|
395
|
+
};
|
|
374
396
|
[PitcherBroadcastedEventName.UI_SHOW_MODAL]: void;
|
|
375
397
|
[PitcherBroadcastedEventName.UI_HIDE_MODAL]: void;
|
|
376
398
|
[PitcherBroadcastedEventName.FAVORITES_CHANGED]: {
|
|
@@ -379,6 +401,28 @@ export interface PitcherEventMap {
|
|
|
379
401
|
[PitcherBroadcastedEventName.FILE_DOWNLOAD]: {
|
|
380
402
|
body: File['id'];
|
|
381
403
|
};
|
|
404
|
+
[PitcherBroadcastedEventName.CANVAS_NEXT_BUTTON_CLICKED]: {
|
|
405
|
+
body: {
|
|
406
|
+
current_page_index: number;
|
|
407
|
+
canvas_id?: string;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
[PitcherBroadcastedEventName.CANVAS_PREVIOUS_BUTTON_CLICKED]: {
|
|
411
|
+
body: {
|
|
412
|
+
current_page_index: number;
|
|
413
|
+
canvas_id?: string;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
[PitcherBroadcastedEventName.CANVAS_OPENED]: {
|
|
417
|
+
body: {
|
|
418
|
+
canvas_id: string;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
[PitcherBroadcastedEventName.CANVAS_CLOSED]: {
|
|
422
|
+
body: {
|
|
423
|
+
canvas_id: string;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
382
426
|
[PitcherExternalEventName.OPEN_CANVAS]: OpenCanvasPitcherEvent;
|
|
383
427
|
[PitcherExternalEventName.START_CALL]: StartCallPitcherEvent;
|
|
384
428
|
[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>;
|
|
@@ -189,6 +191,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
189
191
|
updateMyUser(payload: {
|
|
190
192
|
language?: import('../main.lib').LanguageEnum | undefined;
|
|
191
193
|
}): Promise<import('../main.lib').User>;
|
|
194
|
+
isOffline(): Promise<boolean>;
|
|
192
195
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
193
196
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|
|
194
197
|
createEvent(payload: import('../main.lib').EventRequest): Promise<import('../main.lib').Event>;
|
|
@@ -329,6 +332,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
329
332
|
close(): Promise<any>;
|
|
330
333
|
openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
|
|
331
334
|
share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
|
|
335
|
+
showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
|
|
332
336
|
getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
|
|
333
337
|
assignCanvasTheme(payload: {
|
|
334
338
|
canvas_id: import('../main.lib').CanvasRetrieve["id"];
|
|
@@ -406,9 +410,11 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
406
410
|
disablePostcallSubmit(): Promise<void>;
|
|
407
411
|
setPostcallStyle(payload: import('./api/modules/ui/types.ui').UiSetPostcallStyleRequest): Promise<void>;
|
|
408
412
|
updateCanvas(payload: import('./api/modules/ui/types.ui').UiUpdateCanvasRequest): Promise<import('../main.lib').CanvasRetrieve>;
|
|
413
|
+
printCanvas(payload: import('./api/modules/ui/types.ui').UiPrintCanvasRequest): Promise<import('./api/modules/ui/types.ui').UiPrintCanvasResponse>;
|
|
409
414
|
appLoaded(): Promise<void>;
|
|
410
415
|
appResize(payload: import('./api/modules/ui/types.ui').UiAppResizeRequest): Promise<void>;
|
|
411
416
|
closeCanvasSectionExecution(): Promise<void>;
|
|
417
|
+
closeCanvasDrawer(): Promise<void>;
|
|
412
418
|
canvasNavigateNextPage(): Promise<void>;
|
|
413
419
|
canvasNavigatePreviousPage(): Promise<void>;
|
|
414
420
|
canvasNavigatePage(payload: import('./api/modules/ui/types.ui').UiCanvasNavigatePageRequest): Promise<void>;
|
|
@@ -462,6 +468,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
462
468
|
updateMyUser(payload: {
|
|
463
469
|
language?: import('../main.lib').LanguageEnum | undefined;
|
|
464
470
|
}): Promise<import('../main.lib').User>;
|
|
471
|
+
isOffline(): Promise<boolean>;
|
|
465
472
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
466
473
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|
|
467
474
|
createEvent(payload: import('../main.lib').EventRequest): Promise<import('../main.lib').Event>;
|
|
@@ -602,6 +609,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
602
609
|
close(): Promise<any>;
|
|
603
610
|
openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
|
|
604
611
|
share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
|
|
612
|
+
showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
|
|
605
613
|
getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
|
|
606
614
|
assignCanvasTheme(payload: {
|
|
607
615
|
canvas_id: import('../main.lib').CanvasRetrieve["id"];
|
|
@@ -621,9 +629,11 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
621
629
|
disablePostcallSubmit(): Promise<void>;
|
|
622
630
|
setPostcallStyle(payload: import('./api/modules/ui/types.ui').UiSetPostcallStyleRequest): Promise<void>;
|
|
623
631
|
updateCanvas(payload: import('./api/modules/ui/types.ui').UiUpdateCanvasRequest): Promise<import('../main.lib').CanvasRetrieve>;
|
|
632
|
+
printCanvas(payload: import('./api/modules/ui/types.ui').UiPrintCanvasRequest): Promise<import('./api/modules/ui/types.ui').UiPrintCanvasResponse>;
|
|
624
633
|
appLoaded(): Promise<void>;
|
|
625
634
|
appResize(payload: import('./api/modules/ui/types.ui').UiAppResizeRequest): Promise<void>;
|
|
626
635
|
closeCanvasSectionExecution(): Promise<void>;
|
|
636
|
+
closeCanvasDrawer(): Promise<void>;
|
|
627
637
|
canvasNavigateNextPage(): Promise<void>;
|
|
628
638
|
canvasNavigatePreviousPage(): Promise<void>;
|
|
629
639
|
canvasNavigatePage(payload: import('./api/modules/ui/types.ui').UiCanvasNavigatePageRequest): Promise<void>;
|
|
@@ -673,6 +683,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
673
683
|
updateMyUser(payload: {
|
|
674
684
|
language?: import('../main.lib').LanguageEnum | undefined;
|
|
675
685
|
}): Promise<import('../main.lib').User>;
|
|
686
|
+
isOffline(): Promise<boolean>;
|
|
676
687
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
677
688
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|
|
678
689
|
createEvent(payload: import('../main.lib').EventRequest): Promise<import('../main.lib').Event>;
|
|
@@ -804,6 +815,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
804
815
|
close(): Promise<any>;
|
|
805
816
|
openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
|
|
806
817
|
share(payload: import('./payload.types').SharePayload): Promise<import('./payload.types').ShareResponse>;
|
|
818
|
+
showPeerSession(payload: import('./payload.types').ShowPeerSessionRequestPayload): Promise<void>;
|
|
807
819
|
getThemes(payload: Partial<import('../main.lib').CanvasThemeRetrieve>): Promise<import('../main.lib').CanvasThemeRetrieve[]>;
|
|
808
820
|
assignCanvasTheme(payload: {
|
|
809
821
|
canvas_id: import('../main.lib').CanvasRetrieve["id"];
|
|
@@ -248,6 +248,19 @@ export type ShareResponse = {
|
|
|
248
248
|
*/
|
|
249
249
|
activity_type?: string;
|
|
250
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* Payload for showing peer session dialog.
|
|
253
|
+
*/
|
|
254
|
+
export interface ShowPeerSessionRequestPayload {
|
|
255
|
+
/**
|
|
256
|
+
* The x-coordinate of the button that triggered the action.
|
|
257
|
+
*/
|
|
258
|
+
x: number;
|
|
259
|
+
/**
|
|
260
|
+
* The y-coordinate of the button that triggered the action.
|
|
261
|
+
*/
|
|
262
|
+
y: number;
|
|
263
|
+
}
|
|
251
264
|
export type FolderListRequest = {
|
|
252
265
|
search?: string;
|
|
253
266
|
ordering?: string;
|