@pitcher/js-api 1.26.0-beta.3 → 1.26.0-beta.4
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 +12 -0
- 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/canvas-builder/composables/useCanvas.d.ts +8 -0
- package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +1 -0
- package/lib/components/CContactSelector/CContactSelector.vue.d.ts +2 -0
- package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +11 -0
- package/lib/composables/useCollectionPlayerOverlay.d.ts +18 -0
- package/lib/custom-naive-locales/pt-br.d.ts +124 -0
- package/lib/main.lib.d.ts +1 -0
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +24 -1
- package/lib/sdk/api/modules/admin/index.d.ts +1 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +13 -0
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +35 -1
- package/lib/sdk/api/modules/ui/index.d.ts +1 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +20 -0
- package/lib/sdk/main.d.ts +5 -0
- package/lib/types/i18n.types.d.ts +1 -1
- package/lib/utils/iframeInitialize.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3952,6 +3952,7 @@ export default function useCanvas(): {
|
|
|
3952
3952
|
zh?: Record<string, string> | undefined;
|
|
3953
3953
|
it?: Record<string, string> | undefined;
|
|
3954
3954
|
pt?: Record<string, string> | undefined;
|
|
3955
|
+
"pt-br"?: Record<string, string> | undefined;
|
|
3955
3956
|
nl?: Record<string, string> | undefined;
|
|
3956
3957
|
} | undefined;
|
|
3957
3958
|
file_annotations_mode?: "admin" | "personal" | undefined;
|
|
@@ -4249,6 +4250,7 @@ export default function useCanvas(): {
|
|
|
4249
4250
|
zh?: Record<string, string> | undefined;
|
|
4250
4251
|
it?: Record<string, string> | undefined;
|
|
4251
4252
|
pt?: Record<string, string> | undefined;
|
|
4253
|
+
"pt-br"?: Record<string, string> | undefined;
|
|
4252
4254
|
nl?: Record<string, string> | undefined;
|
|
4253
4255
|
} | undefined;
|
|
4254
4256
|
file_annotations_mode?: "admin" | "personal" | undefined;
|
|
@@ -4539,6 +4541,9 @@ export default function useCanvas(): {
|
|
|
4539
4541
|
readonly pt?: {
|
|
4540
4542
|
readonly [x: string]: string;
|
|
4541
4543
|
} | undefined;
|
|
4544
|
+
readonly "pt-br"?: {
|
|
4545
|
+
readonly [x: string]: string;
|
|
4546
|
+
} | undefined;
|
|
4542
4547
|
readonly nl?: {
|
|
4543
4548
|
readonly [x: string]: string;
|
|
4544
4549
|
} | undefined;
|
|
@@ -4830,6 +4835,9 @@ export default function useCanvas(): {
|
|
|
4830
4835
|
readonly pt?: {
|
|
4831
4836
|
readonly [x: string]: string;
|
|
4832
4837
|
} | undefined;
|
|
4838
|
+
readonly "pt-br"?: {
|
|
4839
|
+
readonly [x: string]: string;
|
|
4840
|
+
} | undefined;
|
|
4833
4841
|
readonly nl?: {
|
|
4834
4842
|
readonly [x: string]: string;
|
|
4835
4843
|
} | undefined;
|
|
@@ -11,6 +11,7 @@ type __VLS_Props = {
|
|
|
11
11
|
loading: boolean;
|
|
12
12
|
allowAccountChange?: boolean;
|
|
13
13
|
allowContactsFromDifferentAccounts?: boolean;
|
|
14
|
+
restrictToSingleContact?: boolean;
|
|
14
15
|
lastViewedDate?: string;
|
|
15
16
|
};
|
|
16
17
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -9,6 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
singleColumnView?: boolean;
|
|
10
10
|
allowAccountChange?: boolean;
|
|
11
11
|
allowContactsFromDifferentAccounts?: boolean;
|
|
12
|
+
restrictToSingleContact?: boolean;
|
|
12
13
|
isDraggable?: boolean;
|
|
13
14
|
quickFiltersTitle?: string;
|
|
14
15
|
mutuallyExclusiveQuickFilters?: boolean;
|
|
@@ -43,6 +44,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
43
44
|
selectedContactIds: string[];
|
|
44
45
|
allowAccountChange: boolean;
|
|
45
46
|
isDraggable: boolean;
|
|
47
|
+
restrictToSingleContact: boolean;
|
|
46
48
|
mutuallyExclusiveQuickFilters: boolean;
|
|
47
49
|
singleColumnView: boolean;
|
|
48
50
|
selectedQuickFilters: string[];
|
|
@@ -16,6 +16,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
16
16
|
type: PropType<boolean>;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
|
+
restrictToSingleContact: {
|
|
20
|
+
type: PropType<boolean>;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
19
23
|
search: {
|
|
20
24
|
type: PropType<string>;
|
|
21
25
|
required: true;
|
|
@@ -79,6 +83,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
79
83
|
type: PropType<boolean>;
|
|
80
84
|
default: boolean;
|
|
81
85
|
};
|
|
86
|
+
restrictToSingleContact: {
|
|
87
|
+
type: PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
82
90
|
search: {
|
|
83
91
|
type: PropType<string>;
|
|
84
92
|
required: true;
|
|
@@ -130,6 +138,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
130
138
|
selectedContactIds: string[];
|
|
131
139
|
allowAccountChange: boolean;
|
|
132
140
|
allowContactsFromDifferentAccounts: boolean;
|
|
141
|
+
restrictToSingleContact: boolean;
|
|
133
142
|
mutuallyExclusiveQuickFilters: boolean;
|
|
134
143
|
singleColumnView: boolean;
|
|
135
144
|
customAccountDisplayField: string;
|
|
@@ -786,6 +795,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
786
795
|
loading: boolean;
|
|
787
796
|
allowAccountChange?: boolean;
|
|
788
797
|
allowContactsFromDifferentAccounts?: boolean;
|
|
798
|
+
restrictToSingleContact?: boolean;
|
|
789
799
|
lastViewedDate?: string;
|
|
790
800
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
791
801
|
"remove-contact": (contactId: string) => any;
|
|
@@ -805,6 +815,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
805
815
|
loading: boolean;
|
|
806
816
|
allowAccountChange?: boolean;
|
|
807
817
|
allowContactsFromDifferentAccounts?: boolean;
|
|
818
|
+
restrictToSingleContact?: boolean;
|
|
808
819
|
lastViewedDate?: string;
|
|
809
820
|
}> & Readonly<{
|
|
810
821
|
"onRemove-contact"?: ((contactId: string) => any) | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CollectionPlayer } from '../apps/collection-player/types/collection-player.type';
|
|
2
|
+
export interface CollectionPlayerOverlayGroup {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
slides?: Array<{
|
|
6
|
+
file_id: string;
|
|
7
|
+
slide_index: number;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export interface CollectionPlayerOverlay {
|
|
11
|
+
groups: CollectionPlayerOverlayGroup[];
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: () => {
|
|
15
|
+
setCollectionPlayerData: import('vue').Ref<((data: CollectionPlayer) => void) | null, ((data: CollectionPlayer) => void) | null>;
|
|
16
|
+
openCollectionPlayerOverlay: (data: CollectionPlayerOverlay, fetchFile: (fileId: string) => Promise<any>) => Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
global: {
|
|
4
|
+
undo: string;
|
|
5
|
+
redo: string;
|
|
6
|
+
confirm: string;
|
|
7
|
+
clear: string;
|
|
8
|
+
};
|
|
9
|
+
Popconfirm: {
|
|
10
|
+
positiveText: string;
|
|
11
|
+
negativeText: string;
|
|
12
|
+
};
|
|
13
|
+
Cascader: {
|
|
14
|
+
placeholder: string;
|
|
15
|
+
loading: string;
|
|
16
|
+
loadingRequiredMessage: (label: string) => string;
|
|
17
|
+
};
|
|
18
|
+
Time: {
|
|
19
|
+
dateFormat: string;
|
|
20
|
+
dateTimeFormat: string;
|
|
21
|
+
};
|
|
22
|
+
DatePicker: {
|
|
23
|
+
yearFormat: string;
|
|
24
|
+
monthFormat: string;
|
|
25
|
+
dayFormat: string;
|
|
26
|
+
yearTypeFormat: string;
|
|
27
|
+
monthTypeFormat: string;
|
|
28
|
+
dateFormat: string;
|
|
29
|
+
dateTimeFormat: string;
|
|
30
|
+
quarterFormat: string;
|
|
31
|
+
weekFormat: string;
|
|
32
|
+
clear: string;
|
|
33
|
+
now: string;
|
|
34
|
+
confirm: string;
|
|
35
|
+
selectTime: string;
|
|
36
|
+
selectDate: string;
|
|
37
|
+
datePlaceholder: string;
|
|
38
|
+
datetimePlaceholder: string;
|
|
39
|
+
monthPlaceholder: string;
|
|
40
|
+
yearPlaceholder: string;
|
|
41
|
+
quarterPlaceholder: string;
|
|
42
|
+
weekPlaceholder: string;
|
|
43
|
+
startDatePlaceholder: string;
|
|
44
|
+
endDatePlaceholder: string;
|
|
45
|
+
startDatetimePlaceholder: string;
|
|
46
|
+
endDatetimePlaceholder: string;
|
|
47
|
+
startMonthPlaceholder: string;
|
|
48
|
+
endMonthPlaceholder: string;
|
|
49
|
+
monthBeforeYear: boolean;
|
|
50
|
+
firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
51
|
+
today: string;
|
|
52
|
+
};
|
|
53
|
+
DataTable: {
|
|
54
|
+
checkTableAll: string;
|
|
55
|
+
uncheckTableAll: string;
|
|
56
|
+
confirm: string;
|
|
57
|
+
clear: string;
|
|
58
|
+
};
|
|
59
|
+
LegacyTransfer: {
|
|
60
|
+
sourceTitle: string;
|
|
61
|
+
targetTitle: string;
|
|
62
|
+
};
|
|
63
|
+
Transfer: {
|
|
64
|
+
selectAll: string;
|
|
65
|
+
unselectAll: string;
|
|
66
|
+
clearAll: string;
|
|
67
|
+
total: (num: number) => string;
|
|
68
|
+
selected: (num: number) => string;
|
|
69
|
+
};
|
|
70
|
+
Empty: {
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
Select: {
|
|
74
|
+
placeholder: string;
|
|
75
|
+
};
|
|
76
|
+
TimePicker: {
|
|
77
|
+
placeholder: string;
|
|
78
|
+
positiveText: string;
|
|
79
|
+
negativeText: string;
|
|
80
|
+
now: string;
|
|
81
|
+
clear: string;
|
|
82
|
+
};
|
|
83
|
+
Pagination: {
|
|
84
|
+
goto: string;
|
|
85
|
+
selectionSuffix: string;
|
|
86
|
+
};
|
|
87
|
+
DynamicTags: {
|
|
88
|
+
add: string;
|
|
89
|
+
};
|
|
90
|
+
Log: {
|
|
91
|
+
loading: string;
|
|
92
|
+
};
|
|
93
|
+
Input: {
|
|
94
|
+
placeholder: string;
|
|
95
|
+
};
|
|
96
|
+
InputNumber: {
|
|
97
|
+
placeholder: string;
|
|
98
|
+
};
|
|
99
|
+
DynamicInput: {
|
|
100
|
+
create: string;
|
|
101
|
+
};
|
|
102
|
+
ThemeEditor: {
|
|
103
|
+
title: string;
|
|
104
|
+
clearAllVars: string;
|
|
105
|
+
clearSearch: string;
|
|
106
|
+
filterCompName: string;
|
|
107
|
+
filterVarName: string;
|
|
108
|
+
import: string;
|
|
109
|
+
export: string;
|
|
110
|
+
restore: string;
|
|
111
|
+
};
|
|
112
|
+
Image: {
|
|
113
|
+
tipPrevious: string;
|
|
114
|
+
tipNext: string;
|
|
115
|
+
tipCounterclockwise: string;
|
|
116
|
+
tipClockwise: string;
|
|
117
|
+
tipZoomOut: string;
|
|
118
|
+
tipZoomIn: string;
|
|
119
|
+
tipDownload: string;
|
|
120
|
+
tipClose: string;
|
|
121
|
+
tipOriginalSize: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export default _default;
|
package/lib/main.lib.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ export { default as useBindValidation } from './composables/useBindValidation';
|
|
|
136
136
|
export { default as useFileDisplayHelpers } from './composables/useFileDisplayHelpers';
|
|
137
137
|
export { default as useFolderNameDescription } from './composables/useFolderNameDescription';
|
|
138
138
|
export { default as useCanvasOverlay } from './composables/useCanvasOverlay';
|
|
139
|
+
export { default as useCollectionPlayerOverlay, type CollectionPlayerOverlay, } from './composables/useCollectionPlayerOverlay';
|
|
139
140
|
export { default as useInfiniteScroll } from './composables/useInfiniteScroll';
|
|
140
141
|
export { default as useWindowEvents } from './composables/useWindowEvents';
|
|
141
142
|
export { default as useConfirmation } from './composables/useConfirmation';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CanvasRetrieve, PatchedCanvasUpdateRequest, Instance, CanvasCreateRequest } from '../../../../../types/openapi';
|
|
2
2
|
import { GetCanvasesParams } from '../../../../types/canvases';
|
|
3
3
|
import { PaginatedData } from '../../../../types/paginatedData';
|
|
4
|
-
import { AdminSelectCanvasesRequest, AdminSelectCanvasesResponse } from './types.admin';
|
|
4
|
+
import { AdminSelectCanvasesRequest, AdminSelectCanvasesResponse, AdminOpenCollectionPlayerOverlayRequest } from './types.admin';
|
|
5
5
|
/**
|
|
6
6
|
* Creates a new canvas.
|
|
7
7
|
*
|
|
@@ -103,6 +103,29 @@ export declare function openCanvasOverlay(payload: {
|
|
|
103
103
|
bottom?: number | string;
|
|
104
104
|
};
|
|
105
105
|
}): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Opens a modal to display collection player content.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* adminApi.openCollectionPlayerOverlay({
|
|
111
|
+
* name: 'My Collection',
|
|
112
|
+
* groups: [
|
|
113
|
+
* {
|
|
114
|
+
* id: 'file-id-1',
|
|
115
|
+
* name: 'Group 1',
|
|
116
|
+
* },
|
|
117
|
+
* {
|
|
118
|
+
* id: 'group-2',
|
|
119
|
+
* name: 'Group 2',
|
|
120
|
+
* slides: [
|
|
121
|
+
* { file_id: 'file-id-2', slide_index: 0 },
|
|
122
|
+
* { file_id: 'file-id-3', slide_index: 1 },
|
|
123
|
+
* ],
|
|
124
|
+
* },
|
|
125
|
+
* ],
|
|
126
|
+
* })
|
|
127
|
+
*/
|
|
128
|
+
export declare function openCollectionPlayerOverlay(payload: AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
106
129
|
/**
|
|
107
130
|
* Allows the user to select (and preselect) canvases from the instance.
|
|
108
131
|
*
|
|
@@ -55,6 +55,7 @@ declare const _default: {
|
|
|
55
55
|
bottom?: number | string;
|
|
56
56
|
};
|
|
57
57
|
}): Promise<void>;
|
|
58
|
+
openCollectionPlayerOverlay(payload: import('./types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
58
59
|
selectCanvases(payload?: import('./types.admin').AdminSelectCanvasesRequest): Promise<import('./types.admin').AdminSelectCanvasesResponse>;
|
|
59
60
|
getEnv(): Promise<import('./types.admin').AdminEnv>;
|
|
60
61
|
selectCollectionContent(payload?: import('./types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./types.admin').AdminSelectCollectionPlayerResponse>;
|
|
@@ -23,6 +23,7 @@ export declare const ADMIN_API_METHOD_TYPES: {
|
|
|
23
23
|
readonly GET_CANVAS: "admin_get_canvas";
|
|
24
24
|
readonly GET_CANVASES: "admin_get_canvases";
|
|
25
25
|
readonly OPEN_CANVAS_OVERLAY: "admin_open_canvas_overlay";
|
|
26
|
+
readonly OPEN_COLLECTION_PLAYER_OVERLAY: "admin_open_collection_player_overlay";
|
|
26
27
|
readonly GET_ENV: "admin_get_env";
|
|
27
28
|
readonly GET_FILE: "admin_get_file";
|
|
28
29
|
readonly OPEN: "admin_open_file_overlay";
|
|
@@ -257,6 +258,18 @@ export type AdminEnv = {
|
|
|
257
258
|
crm_shape?: Record<string, any>;
|
|
258
259
|
state?: PitcherEnv['state'];
|
|
259
260
|
};
|
|
261
|
+
export type AdminOpenCollectionPlayerOverlayGroup = {
|
|
262
|
+
id: string;
|
|
263
|
+
name: string;
|
|
264
|
+
slides?: Array<{
|
|
265
|
+
file_id: string;
|
|
266
|
+
slide_index: number;
|
|
267
|
+
}>;
|
|
268
|
+
};
|
|
269
|
+
export type AdminOpenCollectionPlayerOverlayRequest = {
|
|
270
|
+
groups: AdminOpenCollectionPlayerOverlayGroup[];
|
|
271
|
+
name: string;
|
|
272
|
+
};
|
|
260
273
|
export type AdminSelectCollectionPlayerRequest = {
|
|
261
274
|
initial_data?: CollectionSelectorProps['initialData'];
|
|
262
275
|
attach_to?: CollectionSelectorProps['attachTo'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CanvasRetrieve } from '../../../../../types/openapi';
|
|
2
|
-
import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest, UiPrintCanvasRequest, UiPrintCanvasResponse, UiSelectCanvasesRequest, UiSelectCanvasesResponse } from './types.ui';
|
|
2
|
+
import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest, UiPrintCanvasRequest, UiPrintCanvasResponse, UiSelectCanvasesRequest, UiSelectCanvasesResponse, UiOpenCollectionPlayerOverlayRequest } from './types.ui';
|
|
3
3
|
/**
|
|
4
4
|
* Modify the currently loaded canvas. On the web it sends
|
|
5
5
|
* an [update_canvas](https://pitcher.readme.io/reference/update_canvas) request to the server.
|
|
@@ -133,6 +133,40 @@ export declare function openCanvasOverlay(payload: {
|
|
|
133
133
|
bottom?: number | string;
|
|
134
134
|
};
|
|
135
135
|
}): Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Opens the collection player overlay to view a collection of files/slides.
|
|
138
|
+
*
|
|
139
|
+
* This method opens the native Pitcher collection player interface with the specified
|
|
140
|
+
* files and slides. You can show entire files or specific pages from files.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* // Open collection with full files
|
|
144
|
+
* useUi().openCollectionPlayerOverlay({
|
|
145
|
+
* groups: [
|
|
146
|
+
* { id: 'file-123-abc', name: 'Product Overview' },
|
|
147
|
+
* { id: 'file-456-def', name: 'Pricing Slides' }
|
|
148
|
+
* ],
|
|
149
|
+
* name: 'Sales Deck'
|
|
150
|
+
* })
|
|
151
|
+
*
|
|
152
|
+
* // Open collection with specific slides/pages
|
|
153
|
+
* useUi().openCollectionPlayerOverlay({
|
|
154
|
+
* groups: [
|
|
155
|
+
* {
|
|
156
|
+
* id: 'file-123-abc',
|
|
157
|
+
* name: 'Product Overview',
|
|
158
|
+
* slides: [
|
|
159
|
+
* { file_id: 'file-123-abc', slide_index: 0 },
|
|
160
|
+
* { file_id: 'file-123-abc', slide_index: 2 }
|
|
161
|
+
* ]
|
|
162
|
+
* }
|
|
163
|
+
* ],
|
|
164
|
+
* name: 'Custom Sales Presentation'
|
|
165
|
+
* })
|
|
166
|
+
*
|
|
167
|
+
* @param payload Object containing groups array and collection name
|
|
168
|
+
*/
|
|
169
|
+
export declare function openCollectionPlayerOverlay(payload: UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
136
170
|
/**
|
|
137
171
|
* Allows the user to select (and preselect) canvases from the instance.
|
|
138
172
|
*
|
|
@@ -143,6 +143,7 @@ declare const _default: {
|
|
|
143
143
|
bottom?: number | string;
|
|
144
144
|
};
|
|
145
145
|
}): Promise<void>;
|
|
146
|
+
openCollectionPlayerOverlay(payload: import('./types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
146
147
|
selectCanvases(payload?: import('./types.ui').UiSelectCanvasesRequest): Promise<import('./types.ui').UiSelectCanvasesResponse>;
|
|
147
148
|
captureAppError(payload: import('./types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
148
149
|
updateLocation(payload: import('../../../interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
@@ -23,6 +23,7 @@ export declare const UI_API_METHOD_TYPES: {
|
|
|
23
23
|
readonly UI_UPDATE_CANVAS: "ui_update_canvas";
|
|
24
24
|
readonly UI_PRINT_CANVAS: "ui_print_canvas";
|
|
25
25
|
readonly UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay";
|
|
26
|
+
readonly UI_OPEN_COLLECTION_PLAYER_OVERLAY: "ui_open_collection_player_overlay";
|
|
26
27
|
readonly UI_SELECT_COLLECTION_PLAYER_CONTENT: "ui_select_collection_player_content";
|
|
27
28
|
readonly UI_SELECT_AGENDA_CONTENT: "ui_select_agenda_content";
|
|
28
29
|
readonly UI_UPDATE_LOCATION: "ui_update_location";
|
|
@@ -219,6 +220,25 @@ export interface UiPreselectSfdcMeetingIdResponse {
|
|
|
219
220
|
/** Salesforce Event */
|
|
220
221
|
event: SfEvent | null;
|
|
221
222
|
}
|
|
223
|
+
export interface UiOpenCollectionPlayerOverlayGroup {
|
|
224
|
+
/** File ID */
|
|
225
|
+
id: string;
|
|
226
|
+
/** File name */
|
|
227
|
+
name: string;
|
|
228
|
+
/** Optional: specific slides/pages to show from the file */
|
|
229
|
+
slides?: Array<{
|
|
230
|
+
/** The file ID (same as parent group.id) */
|
|
231
|
+
file_id: string;
|
|
232
|
+
/** Zero-based page/slide index to show */
|
|
233
|
+
slide_index: number;
|
|
234
|
+
}>;
|
|
235
|
+
}
|
|
236
|
+
export interface UiOpenCollectionPlayerOverlayRequest {
|
|
237
|
+
/** Array of files/slides to be played in the collection */
|
|
238
|
+
groups: UiOpenCollectionPlayerOverlayGroup[];
|
|
239
|
+
/** The display name for the collection */
|
|
240
|
+
name: string;
|
|
241
|
+
}
|
|
222
242
|
export type UiMessagePayloads = {
|
|
223
243
|
[UI_MESSAGE_TYPES.UI_MEETING_CANCELED]: UiMeetingCanceledPayload;
|
|
224
244
|
[UI_MESSAGE_TYPES.UI_APP_SET_DATA]: UiAppSetDataPayload;
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare function useUi(): {
|
|
|
54
54
|
bottom?: number | string;
|
|
55
55
|
};
|
|
56
56
|
}): Promise<void>;
|
|
57
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
57
58
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
58
59
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
59
60
|
updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
@@ -127,6 +128,7 @@ export declare function useAdmin(): {
|
|
|
127
128
|
bottom?: number | string;
|
|
128
129
|
};
|
|
129
130
|
}): Promise<void>;
|
|
131
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/admin/types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
130
132
|
selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
|
|
131
133
|
getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
|
|
132
134
|
selectCollectionContent(payload?: import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerResponse>;
|
|
@@ -387,6 +389,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
387
389
|
bottom?: number | string;
|
|
388
390
|
};
|
|
389
391
|
}): Promise<void>;
|
|
392
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/admin/types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
390
393
|
selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
|
|
391
394
|
getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
|
|
392
395
|
selectCollectionContent(payload?: import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerResponse>;
|
|
@@ -438,6 +441,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
438
441
|
bottom?: number | string;
|
|
439
442
|
};
|
|
440
443
|
}): Promise<void>;
|
|
444
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
441
445
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
442
446
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
443
447
|
updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
@@ -658,6 +662,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
658
662
|
bottom?: number | string;
|
|
659
663
|
};
|
|
660
664
|
}): Promise<void>;
|
|
665
|
+
openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
|
|
661
666
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
662
667
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
663
668
|
updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type SupportedLocale = 'en' | 'de' | 'pl' | 'tr' | 'el' | 'fr' | 'es' | 'th' | 'ja' | 'zh' | 'it' | 'pt' | 'nl';
|
|
1
|
+
export type SupportedLocale = 'en' | 'de' | 'pl' | 'tr' | 'el' | 'fr' | 'es' | 'th' | 'ja' | 'zh' | 'it' | 'pt' | 'pt-br' | 'nl';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @param callback - Callback function to handle the response
|
|
6
6
|
* @param options - Additional options for initialization
|
|
7
7
|
*/
|
|
8
|
-
export declare function waitForIframeInitialize<InitT = any, CbT = any>(iframeRef: HTMLIFrameElement | null, initData: InitT, callback?: (data?: CbT) => void, options?: {
|
|
8
|
+
export declare function waitForIframeInitialize<InitT = any, CbT = any>(iframeRef: HTMLIFrameElement | null, initData: InitT, embedLocation: string, callback?: (data?: CbT) => void, options?: {
|
|
9
9
|
maxAttempts?: number;
|
|
10
10
|
retryInterval?: number;
|
|
11
11
|
componentName?: string;
|