@pitcher/js-api 1.22.0 → 1.23.0
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 +52 -43
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +9 -9
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/browser/stores/api.d.ts +0 -12
- package/lib/apps/canvas-builder/App.vue.d.ts +256 -177
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +0 -2
- package/lib/apps/canvas-builder/components/ui/Block/Block.vue.d.ts +11 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/tracking.use.d.ts +4 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +4 -4
- package/lib/apps/canvas-builder/components/ui/SectionList/Execution/SectionListExecution.vue.d.ts +10 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorItem.vue.d.ts +3 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +570 -0
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +837 -0
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +126 -0
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +9 -5
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +23 -4
- package/lib/apps/canvas-builder/types/canvas.d.ts +40 -4
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +6 -2
- package/lib/apps/canvas-selector/stores/app.d.ts +14 -0
- package/lib/apps/content-selector/appTypes.d.ts +2 -0
- package/lib/apps/content-selector/stores/app.d.ts +1 -0
- package/lib/components/CApexChart/CApexChartLine.vue.d.ts +7 -3
- package/lib/components/CConfigEditor/CConfigEditor.validators.d.ts +3 -1
- package/lib/components/CConfigEditor/CConfigEditor.vue.d.ts +3 -0
- package/lib/components/{CCreateTemplateOrSectionModal/CCreateTemplateOrSectionModal.vue.d.ts → CCreateTemplateSectionBlockModal/CCreateTemplateSectionBlockModal.vue.d.ts} +2 -1
- package/lib/components/CEntitySelector/CEntitySelector.vue.d.ts +4 -0
- package/lib/components/CFilePanel/CFilePanel.use.d.ts +12 -0
- package/lib/components/CFilePanel/CFilePanel.vue.d.ts +14 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +196 -6
- package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +6 -4
- package/lib/components/CFileViewer/pdf/CFileViewer.pageThumbMetadata.pdf.use.d.ts +8 -0
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.annotations.use.d.ts +2 -0
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.use.d.ts +4 -2
- package/lib/components/CFileViewer/pdf/CFileViewerBottom.pdf.vue.d.ts +5 -4
- package/lib/components/CFileViewer/pdf/CFileViewerCopyPagesMetadata.pdf.vue.d.ts +13 -0
- package/lib/components/CFileViewer/pdf/CFileViewerPageDrawer.pdf.vue.d.ts +26 -0
- package/lib/components/CFileViewer/pdf/CFileViewerPageDrawerSelectPage.vue.d.ts +15 -0
- package/lib/components/CInfoBadge/CInfoBadge.vue.d.ts +5 -2
- package/lib/components/CJsonEditor/CJsonEditor.vue.d.ts +5 -1
- package/lib/components/CRichTextEditor/components/CContentLinkToolbar.vue.d.ts +10 -0
- package/lib/components/CRichTextEditor/components/CInsertDropdown.vue.d.ts +2 -0
- package/lib/components/CRichTextEditor/extensions/contentLink.d.ts +22 -0
- package/lib/components/CSearch/CSearch.vue.d.ts +2 -0
- package/lib/components/CSingleFileSelector/CSingleFileSelector.vue.d.ts +28 -0
- package/lib/components/CTableInput/CTableInput.vue.d.ts +2 -0
- package/lib/components/CTags/CTags.vue.d.ts +1 -0
- package/lib/components/CVideo/CVideo.types.d.ts +7 -0
- package/lib/components/CVideo/CVideo.vue.d.ts +3 -7
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +253 -0
- package/lib/components/canvas-blocks/CBlockManagementActionsCell.vue.d.ts +32 -0
- package/lib/components/canvas-blocks/CBlockManagementToolbar.vue.d.ts +60 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -2
- package/lib/components/savedCanvases/CSavedCanvasesManagementIndicatorsCell.vue.d.ts +7 -0
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +9 -12
- package/lib/constants/cdp.const.d.ts +1 -0
- package/lib/main.lib.d.ts +4 -1
- package/lib/sdk/api/HighLevelApi.d.ts +5 -0
- package/lib/sdk/api/modules/canvas.d.ts +26 -1
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +10 -0
- package/lib/sdk/api/modules/ui/index.d.ts +1 -0
- package/lib/sdk/api/modules/ui/post-call.ui.d.ts +1 -1
- package/lib/sdk/api/modules/ui/types.ui.d.ts +1 -0
- package/lib/sdk/main.d.ts +18 -0
- package/lib/types/app.d.ts +1 -1
- package/lib/types/canvases.d.ts +10 -1
- package/lib/types/file.types.d.ts +15 -0
- package/lib/types/launchDarkly.types.d.ts +3 -1
- package/lib/types/organizationSettings.types.d.ts +8 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +1 -0
- package/types/openapi/models/Canvas.d.ts +1 -0
- package/types/openapi/models/CanvasCreate.d.ts +1 -0
- package/types/openapi/models/CanvasCreateRequest.d.ts +1 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +1 -0
- package/types/openapi/models/CanvasUpdate.d.ts +1 -0
- package/types/openapi/models/CanvasUpdateRequest.d.ts +1 -0
- package/types/openapi/models/DeletedCanvas.d.ts +1 -0
- package/types/openapi/models/PatchedCanvasIndicatorsRequest.d.ts +3 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +1 -0
- package/lib/apps/browser/components/Content/Panel/FilePanel/FilePanel.vue.d.ts +0 -2
- /package/lib/apps/canvas-builder/components/ui/CollectionPlayer/components/{PreviewImage.vue.d.ts → MainImage.vue.d.ts} +0 -0
- /package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/{cache.use.d.ts → image-cache.use.d.ts} +0 -0
- /package/lib/{apps/browser/components/Content/Panel/FilePanel → components/CFilePanel}/BasicInfo.vue.d.ts +0 -0
- /package/lib/{apps/browser/components/Content/Panel/FilePanel → components/CFilePanel}/Details.vue.d.ts +0 -0
- /package/lib/{apps/browser/components/Content/Panel/FilePanel → components/CFilePanel}/Metadata.vue.d.ts +0 -0
- /package/lib/{apps/browser/components/Content/Panel/FilePanel → components/CFilePanel}/Tags.vue.d.ts +0 -0
- /package/lib/components/CFileViewer/pdf/{CFileViewer.pageFavorite.pdf.use.d.ts → CFileViewer.pageThumbFavorite.pdf.use.d.ts} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CanvasBuilderMode, ComponentNode } from './types/canvas';
|
|
2
|
-
import { FileRetrieve } from '../../../types/openapi';
|
|
3
2
|
import { AppFile } from '../../types/app';
|
|
4
3
|
declare const _default: import('vue').DefineComponent<import('./types/canvas').SharingBuilderProps | ({
|
|
5
4
|
openOnStart?: {
|
|
@@ -14,31 +13,41 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
14
13
|
baseStackingContext?: number;
|
|
15
14
|
startInMode?: import("../../main.lib").CanvasActions.Present | import("../../main.lib").CanvasActions.Edit;
|
|
16
15
|
};
|
|
17
|
-
activeCanvas: import('
|
|
16
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
18
17
|
templates: {
|
|
19
|
-
label: import('
|
|
20
|
-
value: import('
|
|
18
|
+
label: import('../../main.lib').CanvasRetrieve["name"];
|
|
19
|
+
value: import('../../main.lib').CanvasRetrieve["id"];
|
|
21
20
|
}[];
|
|
22
21
|
onExit: () => void;
|
|
23
22
|
onEnter?: () => void;
|
|
24
|
-
onComponentEnter?: (data: ComponentNode | import('
|
|
25
|
-
onComponentExit?: (data: ComponentNode | import('
|
|
23
|
+
onComponentEnter?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
24
|
+
onComponentExit?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
26
25
|
onPageEnter?: (data: ComponentNode[], pageIndex: number) => void;
|
|
27
26
|
onPageExit?: (data: ComponentNode[], pageIndex: number) => void;
|
|
28
|
-
|
|
27
|
+
onFileEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
28
|
+
onFileExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
29
|
+
onFilePageEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
30
|
+
onFilePageExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
31
|
+
onCollectionPlayerContentChange?: (payload: {
|
|
32
|
+
componentId: string;
|
|
33
|
+
uniqueFilesCount: number;
|
|
34
|
+
groupsCount: number;
|
|
35
|
+
slidesCount: number;
|
|
36
|
+
}) => void;
|
|
37
|
+
onSave: (canvasId: import('../../main.lib').CanvasRetrieve["id"], canvas: import('../../main.lib').PatchedCanvasUpdateRequest & {
|
|
29
38
|
fields?: string;
|
|
30
|
-
}, showToast?: boolean) => Promise<import('
|
|
39
|
+
}, showToast?: boolean) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
31
40
|
onFileOpen: (file: import('./types/canvas').FileOpenParams) => void;
|
|
32
|
-
deleteFile: (fileId: FileRetrieve["id"]) => Promise<string | void>;
|
|
33
|
-
listFiles: (params?: any) => Promise<import('
|
|
34
|
-
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('
|
|
35
|
-
fetchFolder: (folderId: import('
|
|
36
|
-
fetchFile: (fileId: FileRetrieve["id"]) => Promise<FileRetrieve>;
|
|
37
|
-
fetchCanvas: (canvasId: import('
|
|
38
|
-
fetchInstanceMetadataTemplate: () => Promise<import('
|
|
41
|
+
deleteFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<string | void>;
|
|
42
|
+
listFiles: (params?: any) => Promise<import('../../main.lib').File[]>;
|
|
43
|
+
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('../../main.lib').CanvasRetrieve>>;
|
|
44
|
+
fetchFolder: (folderId: import('../../main.lib').Folder["id"] | undefined) => Promise<import('../../main.lib').FolderRetrieve>;
|
|
45
|
+
fetchFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<import('../../main.lib').FileRetrieve>;
|
|
46
|
+
fetchCanvas: (canvasId: import('../../main.lib').CanvasRetrieve["id"], params?: Record<string, any>) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
47
|
+
fetchInstanceMetadataTemplate: () => Promise<import('../../main.lib').MetadataTemplate>;
|
|
39
48
|
renderPageAsImageUrl?: (payload: {
|
|
40
|
-
fileId: import('
|
|
41
|
-
documentId?: import('
|
|
49
|
+
fileId: import('../../main.lib').File["id"];
|
|
50
|
+
documentId?: import('../../main.lib').File["id"];
|
|
42
51
|
pageIndex: number;
|
|
43
52
|
params: {
|
|
44
53
|
width: number;
|
|
@@ -48,12 +57,12 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
48
57
|
}) => Promise<ArrayBuffer>;
|
|
49
58
|
getEnv?: () => Promise<import('../../main.lib').PitcherEnv>;
|
|
50
59
|
onEditMode?: (isEditMode: boolean) => void;
|
|
51
|
-
onTrackShare?: (canvasId: import('
|
|
60
|
+
onTrackShare?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<void>;
|
|
52
61
|
onOpenExternalUrl: (payload: import('../../main.lib').OpenExternalUrlRequestPayload) => Promise<void>;
|
|
53
|
-
share?: (canvasId: import('
|
|
62
|
+
share?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<import('../../main.lib').SharedLink>;
|
|
54
63
|
isCRM: boolean;
|
|
55
|
-
onDownloadFile?: (file: import('
|
|
56
|
-
onDownloadCanvas?: (canvas: import('
|
|
64
|
+
onDownloadFile?: (file: import('../../main.lib').File | import('./types/canvas').ContentGridFileProps | import('./types/canvas').ContentGridCommonFileProps) => Promise<void>;
|
|
65
|
+
onDownloadCanvas?: (canvas: import('../../main.lib').CanvasRetrieve) => Promise<void>;
|
|
57
66
|
} & {
|
|
58
67
|
isCRM: false;
|
|
59
68
|
onSfdcAccountSearch?: never;
|
|
@@ -76,31 +85,41 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
76
85
|
baseStackingContext?: number;
|
|
77
86
|
startInMode?: import("../../main.lib").CanvasActions.Present | import("../../main.lib").CanvasActions.Edit;
|
|
78
87
|
};
|
|
79
|
-
activeCanvas: import('
|
|
88
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
80
89
|
templates: {
|
|
81
|
-
label: import('
|
|
82
|
-
value: import('
|
|
90
|
+
label: import('../../main.lib').CanvasRetrieve["name"];
|
|
91
|
+
value: import('../../main.lib').CanvasRetrieve["id"];
|
|
83
92
|
}[];
|
|
84
93
|
onExit: () => void;
|
|
85
94
|
onEnter?: () => void;
|
|
86
|
-
onComponentEnter?: (data: ComponentNode | import('
|
|
87
|
-
onComponentExit?: (data: ComponentNode | import('
|
|
95
|
+
onComponentEnter?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
96
|
+
onComponentExit?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
88
97
|
onPageEnter?: (data: ComponentNode[], pageIndex: number) => void;
|
|
89
98
|
onPageExit?: (data: ComponentNode[], pageIndex: number) => void;
|
|
90
|
-
|
|
99
|
+
onFileEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
100
|
+
onFileExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
101
|
+
onFilePageEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
102
|
+
onFilePageExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
103
|
+
onCollectionPlayerContentChange?: (payload: {
|
|
104
|
+
componentId: string;
|
|
105
|
+
uniqueFilesCount: number;
|
|
106
|
+
groupsCount: number;
|
|
107
|
+
slidesCount: number;
|
|
108
|
+
}) => void;
|
|
109
|
+
onSave: (canvasId: import('../../main.lib').CanvasRetrieve["id"], canvas: import('../../main.lib').PatchedCanvasUpdateRequest & {
|
|
91
110
|
fields?: string;
|
|
92
|
-
}, showToast?: boolean) => Promise<import('
|
|
111
|
+
}, showToast?: boolean) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
93
112
|
onFileOpen: (file: import('./types/canvas').FileOpenParams) => void;
|
|
94
|
-
deleteFile: (fileId: FileRetrieve["id"]) => Promise<string | void>;
|
|
95
|
-
listFiles: (params?: any) => Promise<import('
|
|
96
|
-
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('
|
|
97
|
-
fetchFolder: (folderId: import('
|
|
98
|
-
fetchFile: (fileId: FileRetrieve["id"]) => Promise<FileRetrieve>;
|
|
99
|
-
fetchCanvas: (canvasId: import('
|
|
100
|
-
fetchInstanceMetadataTemplate: () => Promise<import('
|
|
113
|
+
deleteFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<string | void>;
|
|
114
|
+
listFiles: (params?: any) => Promise<import('../../main.lib').File[]>;
|
|
115
|
+
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('../../main.lib').CanvasRetrieve>>;
|
|
116
|
+
fetchFolder: (folderId: import('../../main.lib').Folder["id"] | undefined) => Promise<import('../../main.lib').FolderRetrieve>;
|
|
117
|
+
fetchFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<import('../../main.lib').FileRetrieve>;
|
|
118
|
+
fetchCanvas: (canvasId: import('../../main.lib').CanvasRetrieve["id"], params?: Record<string, any>) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
119
|
+
fetchInstanceMetadataTemplate: () => Promise<import('../../main.lib').MetadataTemplate>;
|
|
101
120
|
renderPageAsImageUrl?: (payload: {
|
|
102
|
-
fileId: import('
|
|
103
|
-
documentId?: import('
|
|
121
|
+
fileId: import('../../main.lib').File["id"];
|
|
122
|
+
documentId?: import('../../main.lib').File["id"];
|
|
104
123
|
pageIndex: number;
|
|
105
124
|
params: {
|
|
106
125
|
width: number;
|
|
@@ -110,12 +129,12 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
110
129
|
}) => Promise<ArrayBuffer>;
|
|
111
130
|
getEnv?: () => Promise<import('../../main.lib').PitcherEnv>;
|
|
112
131
|
onEditMode?: (isEditMode: boolean) => void;
|
|
113
|
-
onTrackShare?: (canvasId: import('
|
|
132
|
+
onTrackShare?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<void>;
|
|
114
133
|
onOpenExternalUrl: (payload: import('../../main.lib').OpenExternalUrlRequestPayload) => Promise<void>;
|
|
115
|
-
share?: (canvasId: import('
|
|
134
|
+
share?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<import('../../main.lib').SharedLink>;
|
|
116
135
|
isCRM: boolean;
|
|
117
|
-
onDownloadFile?: (file: import('
|
|
118
|
-
onDownloadCanvas?: (canvas: import('
|
|
136
|
+
onDownloadFile?: (file: import('../../main.lib').File | import('./types/canvas').ContentGridFileProps | import('./types/canvas').ContentGridCommonFileProps) => Promise<void>;
|
|
137
|
+
onDownloadCanvas?: (canvas: import('../../main.lib').CanvasRetrieve) => Promise<void>;
|
|
119
138
|
} & import('./types/canvas').CRMBuilderProps & {
|
|
120
139
|
isRedirectEvent?: never;
|
|
121
140
|
mode: CanvasBuilderMode.ADMIN;
|
|
@@ -135,31 +154,41 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
135
154
|
baseStackingContext?: number;
|
|
136
155
|
startInMode?: import("../../main.lib").CanvasActions.Present | import("../../main.lib").CanvasActions.Edit;
|
|
137
156
|
};
|
|
138
|
-
activeCanvas: import('
|
|
157
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
139
158
|
templates: {
|
|
140
|
-
label: import('
|
|
141
|
-
value: import('
|
|
159
|
+
label: import('../../main.lib').CanvasRetrieve["name"];
|
|
160
|
+
value: import('../../main.lib').CanvasRetrieve["id"];
|
|
142
161
|
}[];
|
|
143
162
|
onExit: () => void;
|
|
144
163
|
onEnter?: () => void;
|
|
145
|
-
onComponentEnter?: (data: ComponentNode | import('
|
|
146
|
-
onComponentExit?: (data: ComponentNode | import('
|
|
164
|
+
onComponentEnter?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
165
|
+
onComponentExit?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
147
166
|
onPageEnter?: (data: ComponentNode[], pageIndex: number) => void;
|
|
148
167
|
onPageExit?: (data: ComponentNode[], pageIndex: number) => void;
|
|
149
|
-
|
|
168
|
+
onFileEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
169
|
+
onFileExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
170
|
+
onFilePageEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
171
|
+
onFilePageExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
172
|
+
onCollectionPlayerContentChange?: (payload: {
|
|
173
|
+
componentId: string;
|
|
174
|
+
uniqueFilesCount: number;
|
|
175
|
+
groupsCount: number;
|
|
176
|
+
slidesCount: number;
|
|
177
|
+
}) => void;
|
|
178
|
+
onSave: (canvasId: import('../../main.lib').CanvasRetrieve["id"], canvas: import('../../main.lib').PatchedCanvasUpdateRequest & {
|
|
150
179
|
fields?: string;
|
|
151
|
-
}, showToast?: boolean) => Promise<import('
|
|
180
|
+
}, showToast?: boolean) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
152
181
|
onFileOpen: (file: import('./types/canvas').FileOpenParams) => void;
|
|
153
|
-
deleteFile: (fileId: FileRetrieve["id"]) => Promise<string | void>;
|
|
154
|
-
listFiles: (params?: any) => Promise<import('
|
|
155
|
-
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('
|
|
156
|
-
fetchFolder: (folderId: import('
|
|
157
|
-
fetchFile: (fileId: FileRetrieve["id"]) => Promise<FileRetrieve>;
|
|
158
|
-
fetchCanvas: (canvasId: import('
|
|
159
|
-
fetchInstanceMetadataTemplate: () => Promise<import('
|
|
182
|
+
deleteFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<string | void>;
|
|
183
|
+
listFiles: (params?: any) => Promise<import('../../main.lib').File[]>;
|
|
184
|
+
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('../../main.lib').CanvasRetrieve>>;
|
|
185
|
+
fetchFolder: (folderId: import('../../main.lib').Folder["id"] | undefined) => Promise<import('../../main.lib').FolderRetrieve>;
|
|
186
|
+
fetchFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<import('../../main.lib').FileRetrieve>;
|
|
187
|
+
fetchCanvas: (canvasId: import('../../main.lib').CanvasRetrieve["id"], params?: Record<string, any>) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
188
|
+
fetchInstanceMetadataTemplate: () => Promise<import('../../main.lib').MetadataTemplate>;
|
|
160
189
|
renderPageAsImageUrl?: (payload: {
|
|
161
|
-
fileId: import('
|
|
162
|
-
documentId?: import('
|
|
190
|
+
fileId: import('../../main.lib').File["id"];
|
|
191
|
+
documentId?: import('../../main.lib').File["id"];
|
|
163
192
|
pageIndex: number;
|
|
164
193
|
params: {
|
|
165
194
|
width: number;
|
|
@@ -169,12 +198,12 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
169
198
|
}) => Promise<ArrayBuffer>;
|
|
170
199
|
getEnv?: () => Promise<import('../../main.lib').PitcherEnv>;
|
|
171
200
|
onEditMode?: (isEditMode: boolean) => void;
|
|
172
|
-
onTrackShare?: (canvasId: import('
|
|
201
|
+
onTrackShare?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<void>;
|
|
173
202
|
onOpenExternalUrl: (payload: import('../../main.lib').OpenExternalUrlRequestPayload) => Promise<void>;
|
|
174
|
-
share?: (canvasId: import('
|
|
203
|
+
share?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<import('../../main.lib').SharedLink>;
|
|
175
204
|
isCRM: boolean;
|
|
176
|
-
onDownloadFile?: (file: import('
|
|
177
|
-
onDownloadCanvas?: (canvas: import('
|
|
205
|
+
onDownloadFile?: (file: import('../../main.lib').File | import('./types/canvas').ContentGridFileProps | import('./types/canvas').ContentGridCommonFileProps) => Promise<void>;
|
|
206
|
+
onDownloadCanvas?: (canvas: import('../../main.lib').CanvasRetrieve) => Promise<void>;
|
|
178
207
|
} & {
|
|
179
208
|
isCRM: false;
|
|
180
209
|
onSfdcAccountSearch?: never;
|
|
@@ -183,11 +212,11 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
183
212
|
mode: CanvasBuilderMode.IMPACT;
|
|
184
213
|
inCall?: boolean;
|
|
185
214
|
call?: import('../../main.lib').Call;
|
|
186
|
-
myUserId?: import('
|
|
215
|
+
myUserId?: import('../../main.lib').User["id"];
|
|
187
216
|
listRecommendedFiles: (params: {
|
|
188
|
-
sectionId: import('
|
|
217
|
+
sectionId: import('../../main.lib').CanvasRetrieve["id"];
|
|
189
218
|
matchingStrategy: ("tags" | "metadata")[];
|
|
190
|
-
}) => Promise<import('
|
|
219
|
+
}) => Promise<import('../../main.lib').File[]>;
|
|
191
220
|
}) | ({
|
|
192
221
|
openOnStart?: {
|
|
193
222
|
component?: string;
|
|
@@ -201,31 +230,41 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
201
230
|
baseStackingContext?: number;
|
|
202
231
|
startInMode?: import("../../main.lib").CanvasActions.Present | import("../../main.lib").CanvasActions.Edit;
|
|
203
232
|
};
|
|
204
|
-
activeCanvas: import('
|
|
233
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
205
234
|
templates: {
|
|
206
|
-
label: import('
|
|
207
|
-
value: import('
|
|
235
|
+
label: import('../../main.lib').CanvasRetrieve["name"];
|
|
236
|
+
value: import('../../main.lib').CanvasRetrieve["id"];
|
|
208
237
|
}[];
|
|
209
238
|
onExit: () => void;
|
|
210
239
|
onEnter?: () => void;
|
|
211
|
-
onComponentEnter?: (data: ComponentNode | import('
|
|
212
|
-
onComponentExit?: (data: ComponentNode | import('
|
|
240
|
+
onComponentEnter?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
241
|
+
onComponentExit?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
213
242
|
onPageEnter?: (data: ComponentNode[], pageIndex: number) => void;
|
|
214
243
|
onPageExit?: (data: ComponentNode[], pageIndex: number) => void;
|
|
215
|
-
|
|
244
|
+
onFileEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
245
|
+
onFileExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
246
|
+
onFilePageEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
247
|
+
onFilePageExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
248
|
+
onCollectionPlayerContentChange?: (payload: {
|
|
249
|
+
componentId: string;
|
|
250
|
+
uniqueFilesCount: number;
|
|
251
|
+
groupsCount: number;
|
|
252
|
+
slidesCount: number;
|
|
253
|
+
}) => void;
|
|
254
|
+
onSave: (canvasId: import('../../main.lib').CanvasRetrieve["id"], canvas: import('../../main.lib').PatchedCanvasUpdateRequest & {
|
|
216
255
|
fields?: string;
|
|
217
|
-
}, showToast?: boolean) => Promise<import('
|
|
256
|
+
}, showToast?: boolean) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
218
257
|
onFileOpen: (file: import('./types/canvas').FileOpenParams) => void;
|
|
219
|
-
deleteFile: (fileId: FileRetrieve["id"]) => Promise<string | void>;
|
|
220
|
-
listFiles: (params?: any) => Promise<import('
|
|
221
|
-
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('
|
|
222
|
-
fetchFolder: (folderId: import('
|
|
223
|
-
fetchFile: (fileId: FileRetrieve["id"]) => Promise<FileRetrieve>;
|
|
224
|
-
fetchCanvas: (canvasId: import('
|
|
225
|
-
fetchInstanceMetadataTemplate: () => Promise<import('
|
|
258
|
+
deleteFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<string | void>;
|
|
259
|
+
listFiles: (params?: any) => Promise<import('../../main.lib').File[]>;
|
|
260
|
+
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('../../main.lib').CanvasRetrieve>>;
|
|
261
|
+
fetchFolder: (folderId: import('../../main.lib').Folder["id"] | undefined) => Promise<import('../../main.lib').FolderRetrieve>;
|
|
262
|
+
fetchFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<import('../../main.lib').FileRetrieve>;
|
|
263
|
+
fetchCanvas: (canvasId: import('../../main.lib').CanvasRetrieve["id"], params?: Record<string, any>) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
264
|
+
fetchInstanceMetadataTemplate: () => Promise<import('../../main.lib').MetadataTemplate>;
|
|
226
265
|
renderPageAsImageUrl?: (payload: {
|
|
227
|
-
fileId: import('
|
|
228
|
-
documentId?: import('
|
|
266
|
+
fileId: import('../../main.lib').File["id"];
|
|
267
|
+
documentId?: import('../../main.lib').File["id"];
|
|
229
268
|
pageIndex: number;
|
|
230
269
|
params: {
|
|
231
270
|
width: number;
|
|
@@ -235,39 +274,39 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
235
274
|
}) => Promise<ArrayBuffer>;
|
|
236
275
|
getEnv?: () => Promise<import('../../main.lib').PitcherEnv>;
|
|
237
276
|
onEditMode?: (isEditMode: boolean) => void;
|
|
238
|
-
onTrackShare?: (canvasId: import('
|
|
277
|
+
onTrackShare?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<void>;
|
|
239
278
|
onOpenExternalUrl: (payload: import('../../main.lib').OpenExternalUrlRequestPayload) => Promise<void>;
|
|
240
|
-
share?: (canvasId: import('
|
|
279
|
+
share?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<import('../../main.lib').SharedLink>;
|
|
241
280
|
isCRM: boolean;
|
|
242
|
-
onDownloadFile?: (file: import('
|
|
243
|
-
onDownloadCanvas?: (canvas: import('
|
|
281
|
+
onDownloadFile?: (file: import('../../main.lib').File | import('./types/canvas').ContentGridFileProps | import('./types/canvas').ContentGridCommonFileProps) => Promise<void>;
|
|
282
|
+
onDownloadCanvas?: (canvas: import('../../main.lib').CanvasRetrieve) => Promise<void>;
|
|
244
283
|
} & import('./types/canvas').CRMBuilderProps & {
|
|
245
284
|
isRedirectEvent?: boolean;
|
|
246
285
|
mode: CanvasBuilderMode.IMPACT;
|
|
247
286
|
inCall?: boolean;
|
|
248
287
|
call?: import('../../main.lib').Call;
|
|
249
|
-
myUserId?: import('
|
|
288
|
+
myUserId?: import('../../main.lib').User["id"];
|
|
250
289
|
listRecommendedFiles: (params: {
|
|
251
|
-
sectionId: import('
|
|
290
|
+
sectionId: import('../../main.lib').CanvasRetrieve["id"];
|
|
252
291
|
matchingStrategy: ("tags" | "metadata")[];
|
|
253
|
-
}) => Promise<import('
|
|
292
|
+
}) => Promise<import('../../main.lib').File[]>;
|
|
254
293
|
}), {
|
|
255
294
|
hooks: {
|
|
256
295
|
onCanvasUpdated: ({ hookIframes, activeCanvas, }: {
|
|
257
296
|
hookIframes?: Record<string, HTMLIFrameElement>;
|
|
258
|
-
activeCanvas: import('
|
|
297
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
259
298
|
}) => void;
|
|
260
299
|
onSectionListUpdate: ({ sectionHookIframes, sectionListIds, sectionListComponentId, activeCanvas, }: {
|
|
261
300
|
sectionHookIframes?: Record<string, HTMLIFrameElement>;
|
|
262
|
-
sectionListIds: import('
|
|
301
|
+
sectionListIds: import('../../main.lib').CanvasRetrieve["id"][];
|
|
263
302
|
sectionListComponentId: ComponentNode["id"];
|
|
264
|
-
activeCanvas: import('
|
|
303
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
265
304
|
}) => void;
|
|
266
305
|
};
|
|
267
306
|
switchToPresentation: () => Promise<void>;
|
|
268
307
|
goToPage: ({ componentId, sectionId, scrollTo, }: {
|
|
269
308
|
componentId: ComponentNode["id"];
|
|
270
|
-
sectionId?: import('
|
|
309
|
+
sectionId?: import('../../main.lib').CanvasRetrieve["id"];
|
|
271
310
|
scrollTo?: "component" | "top";
|
|
272
311
|
}) => void;
|
|
273
312
|
goToPreviousPage: () => void;
|
|
@@ -291,31 +330,41 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
291
330
|
baseStackingContext?: number;
|
|
292
331
|
startInMode?: import("../../main.lib").CanvasActions.Present | import("../../main.lib").CanvasActions.Edit;
|
|
293
332
|
};
|
|
294
|
-
activeCanvas: import('
|
|
333
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
295
334
|
templates: {
|
|
296
|
-
label: import('
|
|
297
|
-
value: import('
|
|
335
|
+
label: import('../../main.lib').CanvasRetrieve["name"];
|
|
336
|
+
value: import('../../main.lib').CanvasRetrieve["id"];
|
|
298
337
|
}[];
|
|
299
338
|
onExit: () => void;
|
|
300
339
|
onEnter?: () => void;
|
|
301
|
-
onComponentEnter?: (data: ComponentNode | import('
|
|
302
|
-
onComponentExit?: (data: ComponentNode | import('
|
|
340
|
+
onComponentEnter?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
341
|
+
onComponentExit?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
303
342
|
onPageEnter?: (data: ComponentNode[], pageIndex: number) => void;
|
|
304
343
|
onPageExit?: (data: ComponentNode[], pageIndex: number) => void;
|
|
305
|
-
|
|
344
|
+
onFileEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
345
|
+
onFileExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
346
|
+
onFilePageEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
347
|
+
onFilePageExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
348
|
+
onCollectionPlayerContentChange?: (payload: {
|
|
349
|
+
componentId: string;
|
|
350
|
+
uniqueFilesCount: number;
|
|
351
|
+
groupsCount: number;
|
|
352
|
+
slidesCount: number;
|
|
353
|
+
}) => void;
|
|
354
|
+
onSave: (canvasId: import('../../main.lib').CanvasRetrieve["id"], canvas: import('../../main.lib').PatchedCanvasUpdateRequest & {
|
|
306
355
|
fields?: string;
|
|
307
|
-
}, showToast?: boolean) => Promise<import('
|
|
356
|
+
}, showToast?: boolean) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
308
357
|
onFileOpen: (file: import('./types/canvas').FileOpenParams) => void;
|
|
309
|
-
deleteFile: (fileId: FileRetrieve["id"]) => Promise<string | void>;
|
|
310
|
-
listFiles: (params?: any) => Promise<import('
|
|
311
|
-
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('
|
|
312
|
-
fetchFolder: (folderId: import('
|
|
313
|
-
fetchFile: (fileId: FileRetrieve["id"]) => Promise<FileRetrieve>;
|
|
314
|
-
fetchCanvas: (canvasId: import('
|
|
315
|
-
fetchInstanceMetadataTemplate: () => Promise<import('
|
|
358
|
+
deleteFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<string | void>;
|
|
359
|
+
listFiles: (params?: any) => Promise<import('../../main.lib').File[]>;
|
|
360
|
+
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('../../main.lib').CanvasRetrieve>>;
|
|
361
|
+
fetchFolder: (folderId: import('../../main.lib').Folder["id"] | undefined) => Promise<import('../../main.lib').FolderRetrieve>;
|
|
362
|
+
fetchFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<import('../../main.lib').FileRetrieve>;
|
|
363
|
+
fetchCanvas: (canvasId: import('../../main.lib').CanvasRetrieve["id"], params?: Record<string, any>) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
364
|
+
fetchInstanceMetadataTemplate: () => Promise<import('../../main.lib').MetadataTemplate>;
|
|
316
365
|
renderPageAsImageUrl?: (payload: {
|
|
317
|
-
fileId: import('
|
|
318
|
-
documentId?: import('
|
|
366
|
+
fileId: import('../../main.lib').File["id"];
|
|
367
|
+
documentId?: import('../../main.lib').File["id"];
|
|
319
368
|
pageIndex: number;
|
|
320
369
|
params: {
|
|
321
370
|
width: number;
|
|
@@ -325,12 +374,12 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
325
374
|
}) => Promise<ArrayBuffer>;
|
|
326
375
|
getEnv?: () => Promise<import('../../main.lib').PitcherEnv>;
|
|
327
376
|
onEditMode?: (isEditMode: boolean) => void;
|
|
328
|
-
onTrackShare?: (canvasId: import('
|
|
377
|
+
onTrackShare?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<void>;
|
|
329
378
|
onOpenExternalUrl: (payload: import('../../main.lib').OpenExternalUrlRequestPayload) => Promise<void>;
|
|
330
|
-
share?: (canvasId: import('
|
|
379
|
+
share?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<import('../../main.lib').SharedLink>;
|
|
331
380
|
isCRM: boolean;
|
|
332
|
-
onDownloadFile?: (file: import('
|
|
333
|
-
onDownloadCanvas?: (canvas: import('
|
|
381
|
+
onDownloadFile?: (file: import('../../main.lib').File | import('./types/canvas').ContentGridFileProps | import('./types/canvas').ContentGridCommonFileProps) => Promise<void>;
|
|
382
|
+
onDownloadCanvas?: (canvas: import('../../main.lib').CanvasRetrieve) => Promise<void>;
|
|
334
383
|
} & {
|
|
335
384
|
isCRM: false;
|
|
336
385
|
onSfdcAccountSearch?: never;
|
|
@@ -353,31 +402,41 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
353
402
|
baseStackingContext?: number;
|
|
354
403
|
startInMode?: import("../../main.lib").CanvasActions.Present | import("../../main.lib").CanvasActions.Edit;
|
|
355
404
|
};
|
|
356
|
-
activeCanvas: import('
|
|
405
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
357
406
|
templates: {
|
|
358
|
-
label: import('
|
|
359
|
-
value: import('
|
|
407
|
+
label: import('../../main.lib').CanvasRetrieve["name"];
|
|
408
|
+
value: import('../../main.lib').CanvasRetrieve["id"];
|
|
360
409
|
}[];
|
|
361
410
|
onExit: () => void;
|
|
362
411
|
onEnter?: () => void;
|
|
363
|
-
onComponentEnter?: (data: ComponentNode | import('
|
|
364
|
-
onComponentExit?: (data: ComponentNode | import('
|
|
412
|
+
onComponentEnter?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
413
|
+
onComponentExit?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
365
414
|
onPageEnter?: (data: ComponentNode[], pageIndex: number) => void;
|
|
366
415
|
onPageExit?: (data: ComponentNode[], pageIndex: number) => void;
|
|
367
|
-
|
|
416
|
+
onFileEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
417
|
+
onFileExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
418
|
+
onFilePageEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
419
|
+
onFilePageExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
420
|
+
onCollectionPlayerContentChange?: (payload: {
|
|
421
|
+
componentId: string;
|
|
422
|
+
uniqueFilesCount: number;
|
|
423
|
+
groupsCount: number;
|
|
424
|
+
slidesCount: number;
|
|
425
|
+
}) => void;
|
|
426
|
+
onSave: (canvasId: import('../../main.lib').CanvasRetrieve["id"], canvas: import('../../main.lib').PatchedCanvasUpdateRequest & {
|
|
368
427
|
fields?: string;
|
|
369
|
-
}, showToast?: boolean) => Promise<import('
|
|
428
|
+
}, showToast?: boolean) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
370
429
|
onFileOpen: (file: import('./types/canvas').FileOpenParams) => void;
|
|
371
|
-
deleteFile: (fileId: FileRetrieve["id"]) => Promise<string | void>;
|
|
372
|
-
listFiles: (params?: any) => Promise<import('
|
|
373
|
-
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('
|
|
374
|
-
fetchFolder: (folderId: import('
|
|
375
|
-
fetchFile: (fileId: FileRetrieve["id"]) => Promise<FileRetrieve>;
|
|
376
|
-
fetchCanvas: (canvasId: import('
|
|
377
|
-
fetchInstanceMetadataTemplate: () => Promise<import('
|
|
430
|
+
deleteFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<string | void>;
|
|
431
|
+
listFiles: (params?: any) => Promise<import('../../main.lib').File[]>;
|
|
432
|
+
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('../../main.lib').CanvasRetrieve>>;
|
|
433
|
+
fetchFolder: (folderId: import('../../main.lib').Folder["id"] | undefined) => Promise<import('../../main.lib').FolderRetrieve>;
|
|
434
|
+
fetchFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<import('../../main.lib').FileRetrieve>;
|
|
435
|
+
fetchCanvas: (canvasId: import('../../main.lib').CanvasRetrieve["id"], params?: Record<string, any>) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
436
|
+
fetchInstanceMetadataTemplate: () => Promise<import('../../main.lib').MetadataTemplate>;
|
|
378
437
|
renderPageAsImageUrl?: (payload: {
|
|
379
|
-
fileId: import('
|
|
380
|
-
documentId?: import('
|
|
438
|
+
fileId: import('../../main.lib').File["id"];
|
|
439
|
+
documentId?: import('../../main.lib').File["id"];
|
|
381
440
|
pageIndex: number;
|
|
382
441
|
params: {
|
|
383
442
|
width: number;
|
|
@@ -387,12 +446,12 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
387
446
|
}) => Promise<ArrayBuffer>;
|
|
388
447
|
getEnv?: () => Promise<import('../../main.lib').PitcherEnv>;
|
|
389
448
|
onEditMode?: (isEditMode: boolean) => void;
|
|
390
|
-
onTrackShare?: (canvasId: import('
|
|
449
|
+
onTrackShare?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<void>;
|
|
391
450
|
onOpenExternalUrl: (payload: import('../../main.lib').OpenExternalUrlRequestPayload) => Promise<void>;
|
|
392
|
-
share?: (canvasId: import('
|
|
451
|
+
share?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<import('../../main.lib').SharedLink>;
|
|
393
452
|
isCRM: boolean;
|
|
394
|
-
onDownloadFile?: (file: import('
|
|
395
|
-
onDownloadCanvas?: (canvas: import('
|
|
453
|
+
onDownloadFile?: (file: import('../../main.lib').File | import('./types/canvas').ContentGridFileProps | import('./types/canvas').ContentGridCommonFileProps) => Promise<void>;
|
|
454
|
+
onDownloadCanvas?: (canvas: import('../../main.lib').CanvasRetrieve) => Promise<void>;
|
|
396
455
|
} & import('./types/canvas').CRMBuilderProps & {
|
|
397
456
|
isRedirectEvent?: never;
|
|
398
457
|
mode: CanvasBuilderMode.ADMIN;
|
|
@@ -412,31 +471,41 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
412
471
|
baseStackingContext?: number;
|
|
413
472
|
startInMode?: import("../../main.lib").CanvasActions.Present | import("../../main.lib").CanvasActions.Edit;
|
|
414
473
|
};
|
|
415
|
-
activeCanvas: import('
|
|
474
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
416
475
|
templates: {
|
|
417
|
-
label: import('
|
|
418
|
-
value: import('
|
|
476
|
+
label: import('../../main.lib').CanvasRetrieve["name"];
|
|
477
|
+
value: import('../../main.lib').CanvasRetrieve["id"];
|
|
419
478
|
}[];
|
|
420
479
|
onExit: () => void;
|
|
421
480
|
onEnter?: () => void;
|
|
422
|
-
onComponentEnter?: (data: ComponentNode | import('
|
|
423
|
-
onComponentExit?: (data: ComponentNode | import('
|
|
481
|
+
onComponentEnter?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
482
|
+
onComponentExit?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
424
483
|
onPageEnter?: (data: ComponentNode[], pageIndex: number) => void;
|
|
425
484
|
onPageExit?: (data: ComponentNode[], pageIndex: number) => void;
|
|
426
|
-
|
|
485
|
+
onFileEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
486
|
+
onFileExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
487
|
+
onFilePageEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
488
|
+
onFilePageExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
489
|
+
onCollectionPlayerContentChange?: (payload: {
|
|
490
|
+
componentId: string;
|
|
491
|
+
uniqueFilesCount: number;
|
|
492
|
+
groupsCount: number;
|
|
493
|
+
slidesCount: number;
|
|
494
|
+
}) => void;
|
|
495
|
+
onSave: (canvasId: import('../../main.lib').CanvasRetrieve["id"], canvas: import('../../main.lib').PatchedCanvasUpdateRequest & {
|
|
427
496
|
fields?: string;
|
|
428
|
-
}, showToast?: boolean) => Promise<import('
|
|
497
|
+
}, showToast?: boolean) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
429
498
|
onFileOpen: (file: import('./types/canvas').FileOpenParams) => void;
|
|
430
|
-
deleteFile: (fileId: FileRetrieve["id"]) => Promise<string | void>;
|
|
431
|
-
listFiles: (params?: any) => Promise<import('
|
|
432
|
-
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('
|
|
433
|
-
fetchFolder: (folderId: import('
|
|
434
|
-
fetchFile: (fileId: FileRetrieve["id"]) => Promise<FileRetrieve>;
|
|
435
|
-
fetchCanvas: (canvasId: import('
|
|
436
|
-
fetchInstanceMetadataTemplate: () => Promise<import('
|
|
499
|
+
deleteFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<string | void>;
|
|
500
|
+
listFiles: (params?: any) => Promise<import('../../main.lib').File[]>;
|
|
501
|
+
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('../../main.lib').CanvasRetrieve>>;
|
|
502
|
+
fetchFolder: (folderId: import('../../main.lib').Folder["id"] | undefined) => Promise<import('../../main.lib').FolderRetrieve>;
|
|
503
|
+
fetchFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<import('../../main.lib').FileRetrieve>;
|
|
504
|
+
fetchCanvas: (canvasId: import('../../main.lib').CanvasRetrieve["id"], params?: Record<string, any>) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
505
|
+
fetchInstanceMetadataTemplate: () => Promise<import('../../main.lib').MetadataTemplate>;
|
|
437
506
|
renderPageAsImageUrl?: (payload: {
|
|
438
|
-
fileId: import('
|
|
439
|
-
documentId?: import('
|
|
507
|
+
fileId: import('../../main.lib').File["id"];
|
|
508
|
+
documentId?: import('../../main.lib').File["id"];
|
|
440
509
|
pageIndex: number;
|
|
441
510
|
params: {
|
|
442
511
|
width: number;
|
|
@@ -446,12 +515,12 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
446
515
|
}) => Promise<ArrayBuffer>;
|
|
447
516
|
getEnv?: () => Promise<import('../../main.lib').PitcherEnv>;
|
|
448
517
|
onEditMode?: (isEditMode: boolean) => void;
|
|
449
|
-
onTrackShare?: (canvasId: import('
|
|
518
|
+
onTrackShare?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<void>;
|
|
450
519
|
onOpenExternalUrl: (payload: import('../../main.lib').OpenExternalUrlRequestPayload) => Promise<void>;
|
|
451
|
-
share?: (canvasId: import('
|
|
520
|
+
share?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<import('../../main.lib').SharedLink>;
|
|
452
521
|
isCRM: boolean;
|
|
453
|
-
onDownloadFile?: (file: import('
|
|
454
|
-
onDownloadCanvas?: (canvas: import('
|
|
522
|
+
onDownloadFile?: (file: import('../../main.lib').File | import('./types/canvas').ContentGridFileProps | import('./types/canvas').ContentGridCommonFileProps) => Promise<void>;
|
|
523
|
+
onDownloadCanvas?: (canvas: import('../../main.lib').CanvasRetrieve) => Promise<void>;
|
|
455
524
|
} & {
|
|
456
525
|
isCRM: false;
|
|
457
526
|
onSfdcAccountSearch?: never;
|
|
@@ -460,11 +529,11 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
460
529
|
mode: CanvasBuilderMode.IMPACT;
|
|
461
530
|
inCall?: boolean;
|
|
462
531
|
call?: import('../../main.lib').Call;
|
|
463
|
-
myUserId?: import('
|
|
532
|
+
myUserId?: import('../../main.lib').User["id"];
|
|
464
533
|
listRecommendedFiles: (params: {
|
|
465
|
-
sectionId: import('
|
|
534
|
+
sectionId: import('../../main.lib').CanvasRetrieve["id"];
|
|
466
535
|
matchingStrategy: ("tags" | "metadata")[];
|
|
467
|
-
}) => Promise<import('
|
|
536
|
+
}) => Promise<import('../../main.lib').File[]>;
|
|
468
537
|
}) | ({
|
|
469
538
|
openOnStart?: {
|
|
470
539
|
component?: string;
|
|
@@ -478,31 +547,41 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
478
547
|
baseStackingContext?: number;
|
|
479
548
|
startInMode?: import("../../main.lib").CanvasActions.Present | import("../../main.lib").CanvasActions.Edit;
|
|
480
549
|
};
|
|
481
|
-
activeCanvas: import('
|
|
550
|
+
activeCanvas: import('../../main.lib').CanvasRetrieve;
|
|
482
551
|
templates: {
|
|
483
|
-
label: import('
|
|
484
|
-
value: import('
|
|
552
|
+
label: import('../../main.lib').CanvasRetrieve["name"];
|
|
553
|
+
value: import('../../main.lib').CanvasRetrieve["id"];
|
|
485
554
|
}[];
|
|
486
555
|
onExit: () => void;
|
|
487
556
|
onEnter?: () => void;
|
|
488
|
-
onComponentEnter?: (data: ComponentNode | import('
|
|
489
|
-
onComponentExit?: (data: ComponentNode | import('
|
|
557
|
+
onComponentEnter?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
558
|
+
onComponentExit?: (data: ComponentNode | import('../../main.lib').CanvasRetrieve, params: import('./types/canvas').ComponentTrackingParams) => void;
|
|
490
559
|
onPageEnter?: (data: ComponentNode[], pageIndex: number) => void;
|
|
491
560
|
onPageExit?: (data: ComponentNode[], pageIndex: number) => void;
|
|
492
|
-
|
|
561
|
+
onFileEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
562
|
+
onFileExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity) => void;
|
|
563
|
+
onFilePageEnter?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
564
|
+
onFilePageExit?: (node: import('./types/canvas').NodeInfo, file: import('./types/canvas').CollectionFileEntity, pageIndex: number) => void;
|
|
565
|
+
onCollectionPlayerContentChange?: (payload: {
|
|
566
|
+
componentId: string;
|
|
567
|
+
uniqueFilesCount: number;
|
|
568
|
+
groupsCount: number;
|
|
569
|
+
slidesCount: number;
|
|
570
|
+
}) => void;
|
|
571
|
+
onSave: (canvasId: import('../../main.lib').CanvasRetrieve["id"], canvas: import('../../main.lib').PatchedCanvasUpdateRequest & {
|
|
493
572
|
fields?: string;
|
|
494
|
-
}, showToast?: boolean) => Promise<import('
|
|
573
|
+
}, showToast?: boolean) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
495
574
|
onFileOpen: (file: import('./types/canvas').FileOpenParams) => void;
|
|
496
|
-
deleteFile: (fileId: FileRetrieve["id"]) => Promise<string | void>;
|
|
497
|
-
listFiles: (params?: any) => Promise<import('
|
|
498
|
-
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('
|
|
499
|
-
fetchFolder: (folderId: import('
|
|
500
|
-
fetchFile: (fileId: FileRetrieve["id"]) => Promise<FileRetrieve>;
|
|
501
|
-
fetchCanvas: (canvasId: import('
|
|
502
|
-
fetchInstanceMetadataTemplate: () => Promise<import('
|
|
575
|
+
deleteFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<string | void>;
|
|
576
|
+
listFiles: (params?: any) => Promise<import('../../main.lib').File[]>;
|
|
577
|
+
listCanvases: (params?: any) => Promise<import('../../main.lib').PaginatedData<import('../../main.lib').CanvasRetrieve>>;
|
|
578
|
+
fetchFolder: (folderId: import('../../main.lib').Folder["id"] | undefined) => Promise<import('../../main.lib').FolderRetrieve>;
|
|
579
|
+
fetchFile: (fileId: import('../../main.lib').FileRetrieve["id"]) => Promise<import('../../main.lib').FileRetrieve>;
|
|
580
|
+
fetchCanvas: (canvasId: import('../../main.lib').CanvasRetrieve["id"], params?: Record<string, any>) => Promise<import('../../main.lib').CanvasRetrieve>;
|
|
581
|
+
fetchInstanceMetadataTemplate: () => Promise<import('../../main.lib').MetadataTemplate>;
|
|
503
582
|
renderPageAsImageUrl?: (payload: {
|
|
504
|
-
fileId: import('
|
|
505
|
-
documentId?: import('
|
|
583
|
+
fileId: import('../../main.lib').File["id"];
|
|
584
|
+
documentId?: import('../../main.lib').File["id"];
|
|
506
585
|
pageIndex: number;
|
|
507
586
|
params: {
|
|
508
587
|
width: number;
|
|
@@ -512,22 +591,22 @@ declare const _default: import('vue').DefineComponent<import('./types/canvas').S
|
|
|
512
591
|
}) => Promise<ArrayBuffer>;
|
|
513
592
|
getEnv?: () => Promise<import('../../main.lib').PitcherEnv>;
|
|
514
593
|
onEditMode?: (isEditMode: boolean) => void;
|
|
515
|
-
onTrackShare?: (canvasId: import('
|
|
594
|
+
onTrackShare?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<void>;
|
|
516
595
|
onOpenExternalUrl: (payload: import('../../main.lib').OpenExternalUrlRequestPayload) => Promise<void>;
|
|
517
|
-
share?: (canvasId: import('
|
|
596
|
+
share?: (canvasId: import('../../main.lib').CanvasRetrieve["id"]) => Promise<import('../../main.lib').SharedLink>;
|
|
518
597
|
isCRM: boolean;
|
|
519
|
-
onDownloadFile?: (file: import('
|
|
520
|
-
onDownloadCanvas?: (canvas: import('
|
|
598
|
+
onDownloadFile?: (file: import('../../main.lib').File | import('./types/canvas').ContentGridFileProps | import('./types/canvas').ContentGridCommonFileProps) => Promise<void>;
|
|
599
|
+
onDownloadCanvas?: (canvas: import('../../main.lib').CanvasRetrieve) => Promise<void>;
|
|
521
600
|
} & import('./types/canvas').CRMBuilderProps & {
|
|
522
601
|
isRedirectEvent?: boolean;
|
|
523
602
|
mode: CanvasBuilderMode.IMPACT;
|
|
524
603
|
inCall?: boolean;
|
|
525
604
|
call?: import('../../main.lib').Call;
|
|
526
|
-
myUserId?: import('
|
|
605
|
+
myUserId?: import('../../main.lib').User["id"];
|
|
527
606
|
listRecommendedFiles: (params: {
|
|
528
|
-
sectionId: import('
|
|
607
|
+
sectionId: import('../../main.lib').CanvasRetrieve["id"];
|
|
529
608
|
matchingStrategy: ("tags" | "metadata")[];
|
|
530
|
-
}) => Promise<import('
|
|
609
|
+
}) => Promise<import('../../main.lib').File[]>;
|
|
531
610
|
})> & Readonly<{
|
|
532
611
|
onToggleNotes?: (() => any) | undefined;
|
|
533
612
|
onToggleFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|