@pitcher/js-api 1.21.0-beta.12 → 1.21.0-beta.14
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 +16 -3
- 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/composables/useCanvasOverlay.d.ts +20 -0
- package/lib/main.lib.d.ts +4 -0
- package/lib/sdk/api/HighLevelApi.d.ts +2 -1
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +20 -0
- package/lib/sdk/api/modules/admin/index.d.ts +7 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +2 -1
- package/lib/sdk/api/modules/files.d.ts +2 -1
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +20 -0
- package/lib/sdk/api/modules/ui/index.d.ts +7 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +1 -0
- package/lib/sdk/main.d.ts +41 -3
- package/package.json +1 -1
- package/lib/apps/canvas-builder/util/tsUtils.d.ts +0 -3
- package/lib/types/templateActions.d.ts +0 -10
- package/lib/util/gesture.util.d.ts +0 -6
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface CanvasOverlay {
|
|
2
|
+
id: string;
|
|
3
|
+
fullscreen?: boolean;
|
|
4
|
+
edit_mode?: boolean;
|
|
5
|
+
component_id?: string;
|
|
6
|
+
section_id?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: () => {
|
|
9
|
+
isCanvasOverlayOpen: import('vue').ComputedRef<boolean>;
|
|
10
|
+
initialCanvas: import('vue').ComputedRef<{
|
|
11
|
+
id: string;
|
|
12
|
+
fullscreen?: boolean;
|
|
13
|
+
edit_mode?: boolean;
|
|
14
|
+
component_id?: string;
|
|
15
|
+
section_id?: string;
|
|
16
|
+
} | undefined>;
|
|
17
|
+
openCanvasOverlay: ({ id, fullscreen, edit_mode, component_id, section_id }: CanvasOverlay) => void;
|
|
18
|
+
closeCanvasOverlay: () => void;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
package/lib/main.lib.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ export { default as CMovableWidget } from './components/CMovableWidget/CMovableW
|
|
|
88
88
|
export { default as CUserMenu } from './components/CUserMenu/CUserMenu.vue';
|
|
89
89
|
export { default as CList } from './components/CList/CList.vue';
|
|
90
90
|
export { default as CKnockNotificationsAppWrapper } from './components/CKnockNotificationsAppWrapper/CKnockNotificationsAppWrapper.vue';
|
|
91
|
+
export { default as CChip } from './components/CChip/CChip.vue';
|
|
92
|
+
export { default as CSettingsEditor } from './components/CSettingsEditor/CSettingsEditor.vue';
|
|
91
93
|
export { default as CanvasBuilderApp } from '@canvas-builder/App.vue';
|
|
92
94
|
export { type CanvasBuilderProps, CanvasBuilderMode } from '@canvas-builder/types/canvas';
|
|
93
95
|
export { default as Browser } from '@browser/App.vue';
|
|
@@ -99,6 +101,7 @@ export { default as useNotesApp } from '@notes/composables/useNotesApp';
|
|
|
99
101
|
export { default as useTheme } from './composables/useTheme';
|
|
100
102
|
export { default as useThemeVars } from './composables/useThemeVars';
|
|
101
103
|
export { default as useBindValidation } from './composables/useBindValidation';
|
|
104
|
+
export { default as useCanvasOverlay } from './composables/useCanvasOverlay';
|
|
102
105
|
export { default as useInfiniteScroll } from './composables/useInfiniteScroll';
|
|
103
106
|
export { default as useWindowEvents } from './composables/useWindowEvents';
|
|
104
107
|
export { default as useDetailsView } from './composables/useDetailsView';
|
|
@@ -158,6 +161,7 @@ export * from './types/call';
|
|
|
158
161
|
export * from './types/launchDarkly.types';
|
|
159
162
|
export * from './types/toast';
|
|
160
163
|
export * from './types/instanceSettings.types';
|
|
164
|
+
export * from './types/organizationSettings.types';
|
|
161
165
|
export * from './components/CConfigEditor/CConfigEditor.types';
|
|
162
166
|
export * from './constants/cdp.const';
|
|
163
167
|
export * from './constants/uploads.const';
|
|
@@ -56,7 +56,8 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
56
56
|
app_name: string;
|
|
57
57
|
}): Promise<Record<string, any>>;
|
|
58
58
|
getFile(payload: {
|
|
59
|
-
|
|
59
|
+
id?: import('../../main.lib').FileRetrieve["id"];
|
|
60
|
+
file_id?: import('../../main.lib').FileRetrieve["id"];
|
|
60
61
|
}): Promise<import('../../main.lib').FileRetrieve>;
|
|
61
62
|
updateFile(payload: import('../../main.lib').FileUpdateRequest & {
|
|
62
63
|
id: import('../../main.lib').File["id"];
|
|
@@ -67,3 +67,23 @@ export declare function updateCanvas(payload: PatchedCanvasUpdateRequest & {
|
|
|
67
67
|
instance_id?: Instance['id'];
|
|
68
68
|
fields?: string;
|
|
69
69
|
}): Promise<CanvasRetrieve>;
|
|
70
|
+
/**
|
|
71
|
+
* Opens a modal to view a canvas by ID.
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
* onMounted(() => {
|
|
75
|
+
* adminApi.openCanvasOverlay({
|
|
76
|
+
* id: '01HH4RCBH631K4JDHWAQB0RPR6',
|
|
77
|
+
* edit_mode: false,
|
|
78
|
+
* fullscreen: true,
|
|
79
|
+
* })
|
|
80
|
+
* })
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
export declare function openCanvasOverlay(payload: {
|
|
84
|
+
id: CanvasRetrieve['id'];
|
|
85
|
+
edit_mode?: boolean;
|
|
86
|
+
fullscreen?: boolean;
|
|
87
|
+
component_id?: string;
|
|
88
|
+
section_id?: string;
|
|
89
|
+
}): Promise<void>;
|
|
@@ -26,6 +26,13 @@ declare const _default: {
|
|
|
26
26
|
instance_id?: import('../../../../main.lib').Instance["id"];
|
|
27
27
|
fields?: string;
|
|
28
28
|
}): Promise<import('../../../../main.lib').CanvasRetrieve>;
|
|
29
|
+
openCanvasOverlay(payload: {
|
|
30
|
+
id: import('../../../../main.lib').CanvasRetrieve["id"];
|
|
31
|
+
edit_mode?: boolean;
|
|
32
|
+
fullscreen?: boolean;
|
|
33
|
+
component_id?: string;
|
|
34
|
+
section_id?: string;
|
|
35
|
+
}): Promise<void>;
|
|
29
36
|
getEnv(): Promise<import('./types.admin').AdminEnv>;
|
|
30
37
|
on: typeof on;
|
|
31
38
|
toast: typeof toast;
|
|
@@ -14,13 +14,14 @@ export declare const ADMIN_API_METHOD_TYPES: {
|
|
|
14
14
|
readonly GET_APP_CONFIG: "admin_get_app_config";
|
|
15
15
|
readonly GET_CANVAS: "admin_get_canvas";
|
|
16
16
|
readonly GET_CANVASES: "admin_get_canvases";
|
|
17
|
+
readonly OPEN_CANVAS_OVERLAY: "admin_open_canvas_overlay";
|
|
17
18
|
readonly GET_ENV: "admin_get_env";
|
|
18
19
|
readonly GET_FILE: "admin_get_file";
|
|
19
20
|
readonly GET_FILES: "admin_get_files";
|
|
20
|
-
readonly SELECT_CONTENT: "admin_select_content";
|
|
21
21
|
readonly GET_INSTANCE_METADATA_TEMPLATES: "admin_get_instance_metadata_templates";
|
|
22
22
|
readonly TOAST: "admin_toast";
|
|
23
23
|
readonly UPDATE_CANVAS: "admin_update_canvas";
|
|
24
|
+
readonly SELECT_CONTENT: "admin_select_content";
|
|
24
25
|
};
|
|
25
26
|
export type AdminMessagePayloads = {
|
|
26
27
|
[ADMIN_MESSAGE_TYPES.ENV_CHANGED]: AdminEnv;
|
|
@@ -14,7 +14,8 @@ export declare function getAppConfig(payload: {
|
|
|
14
14
|
app_name: string;
|
|
15
15
|
}): Promise<Record<string, any>>;
|
|
16
16
|
export declare function getFile(payload: {
|
|
17
|
-
|
|
17
|
+
id?: FileRetrieve['id'];
|
|
18
|
+
file_id?: FileRetrieve['id'];
|
|
18
19
|
}): Promise<FileRetrieve>;
|
|
19
20
|
export declare function updateFile(payload: FileUpdateRequest & {
|
|
20
21
|
id: File['id'];
|
|
@@ -7,3 +7,23 @@ export declare function app_resize(payload: UiAppResizeRequest): Promise<void>;
|
|
|
7
7
|
export declare function canvas_navigate_next_page(): Promise<void>;
|
|
8
8
|
export declare function canvas_navigate_previous_page(): Promise<void>;
|
|
9
9
|
export declare function canvas_navigate_page(payload: UiCanvasNavigatePageReuqest): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Opens a modal to view a canvas by ID.
|
|
12
|
+
*
|
|
13
|
+
* ```
|
|
14
|
+
* onMounted(() => {
|
|
15
|
+
* uiApi.openCanvasOverlay({
|
|
16
|
+
* id: '01HH4RCBH631K4JDHWAQB0RPR6',
|
|
17
|
+
* edit_mode: false,
|
|
18
|
+
* fullscreen: true,
|
|
19
|
+
* })
|
|
20
|
+
* })
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function openCanvasOverlay(payload: {
|
|
24
|
+
id: CanvasRetrieve['id'];
|
|
25
|
+
edit_mode?: boolean;
|
|
26
|
+
fullscreen?: boolean;
|
|
27
|
+
component_id?: string;
|
|
28
|
+
section_id?: string;
|
|
29
|
+
}): Promise<void>;
|
|
@@ -18,6 +18,13 @@ declare const _default: {
|
|
|
18
18
|
canvas_navigate_next_page(): Promise<void>;
|
|
19
19
|
canvas_navigate_previous_page(): Promise<void>;
|
|
20
20
|
canvas_navigate_page(payload: import('../../../../main.lib').UiCanvasNavigatePageReuqest): Promise<void>;
|
|
21
|
+
openCanvasOverlay(payload: {
|
|
22
|
+
id: import('../../../../main.lib').CanvasRetrieve["id"];
|
|
23
|
+
edit_mode?: boolean;
|
|
24
|
+
fullscreen?: boolean;
|
|
25
|
+
component_id?: string;
|
|
26
|
+
section_id?: string;
|
|
27
|
+
}): Promise<void>;
|
|
21
28
|
capture_app_error(payload: import('../../../../main.lib').UiCaptureAppErrorRequest): Promise<void>;
|
|
22
29
|
update_location(payload: import('../../../../main.lib').UpdateLocationPitcherEvent): Promise<any>;
|
|
23
30
|
embeddable_ready(): Promise<void>;
|
|
@@ -14,6 +14,7 @@ export declare const UI_API_METHOD_TYPES: {
|
|
|
14
14
|
readonly UI_TOAST: "ui_toast";
|
|
15
15
|
readonly UI_CAPTURE_APP_ERROR: "ui_capture_app_error";
|
|
16
16
|
readonly UI_UPDATE_CANVAS: "ui_update_canvas";
|
|
17
|
+
readonly UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay";
|
|
17
18
|
readonly UI_UPDATE_LOCATION: "ui_update_location";
|
|
18
19
|
readonly UI_PRESELECT_SFDC_MEETING_ID: "ui_preselect_sfdc_meeting_id";
|
|
19
20
|
readonly UI_SET_POSTCALL_STYLE: "ui_set_postcall_style";
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -19,6 +19,13 @@ export declare function useUi(): {
|
|
|
19
19
|
canvas_navigate_next_page(): Promise<void>;
|
|
20
20
|
canvas_navigate_previous_page(): Promise<void>;
|
|
21
21
|
canvas_navigate_page(payload: import('./api/modules/ui/types.ui').UiCanvasNavigatePageReuqest): Promise<void>;
|
|
22
|
+
openCanvasOverlay(payload: {
|
|
23
|
+
id: import('../main.lib').CanvasRetrieve["id"];
|
|
24
|
+
edit_mode?: boolean;
|
|
25
|
+
fullscreen?: boolean;
|
|
26
|
+
component_id?: string;
|
|
27
|
+
section_id?: string;
|
|
28
|
+
}): Promise<void>;
|
|
22
29
|
capture_app_error(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
23
30
|
update_location(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
24
31
|
embeddable_ready(): Promise<void>;
|
|
@@ -59,6 +66,13 @@ export declare function useAdmin(): {
|
|
|
59
66
|
instance_id?: import('../main.lib').Instance["id"];
|
|
60
67
|
fields?: string;
|
|
61
68
|
}): Promise<import('../main.lib').CanvasRetrieve>;
|
|
69
|
+
openCanvasOverlay(payload: {
|
|
70
|
+
id: import('../main.lib').CanvasRetrieve["id"];
|
|
71
|
+
edit_mode?: boolean;
|
|
72
|
+
fullscreen?: boolean;
|
|
73
|
+
component_id?: string;
|
|
74
|
+
section_id?: string;
|
|
75
|
+
}): Promise<void>;
|
|
62
76
|
getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
|
|
63
77
|
on: (type: typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES[keyof typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES], handler: (data: import('./api/modules/admin/types.admin').AdminMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
64
78
|
toast: (payload: import('./api/modules/admin/types.admin').AdminToastRequest) => Promise<void>;
|
|
@@ -125,7 +139,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
125
139
|
app_name: string;
|
|
126
140
|
}): Promise<Record<string, any>>;
|
|
127
141
|
getFile(payload: {
|
|
128
|
-
|
|
142
|
+
id?: import('../main.lib').FileRetrieve["id"];
|
|
143
|
+
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
129
144
|
}): Promise<import('../main.lib').FileRetrieve>;
|
|
130
145
|
updateFile(payload: import('../main.lib').FileUpdateRequest & {
|
|
131
146
|
id: import('../main.lib').File["id"];
|
|
@@ -219,6 +234,13 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
219
234
|
instance_id?: import('../main.lib').Instance["id"];
|
|
220
235
|
fields?: string;
|
|
221
236
|
}): Promise<import('../main.lib').CanvasRetrieve>;
|
|
237
|
+
openCanvasOverlay(payload: {
|
|
238
|
+
id: import('../main.lib').CanvasRetrieve["id"];
|
|
239
|
+
edit_mode?: boolean;
|
|
240
|
+
fullscreen?: boolean;
|
|
241
|
+
component_id?: string;
|
|
242
|
+
section_id?: string;
|
|
243
|
+
}): Promise<void>;
|
|
222
244
|
getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
|
|
223
245
|
on: (type: typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES[keyof typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES], handler: (data: import('./api/modules/admin/types.admin').AdminMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
224
246
|
toast: (payload: import('./api/modules/admin/types.admin').AdminToastRequest) => Promise<void>;
|
|
@@ -238,6 +260,13 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
238
260
|
canvas_navigate_next_page(): Promise<void>;
|
|
239
261
|
canvas_navigate_previous_page(): Promise<void>;
|
|
240
262
|
canvas_navigate_page(payload: import('./api/modules/ui/types.ui').UiCanvasNavigatePageReuqest): Promise<void>;
|
|
263
|
+
openCanvasOverlay(payload: {
|
|
264
|
+
id: import('../main.lib').CanvasRetrieve["id"];
|
|
265
|
+
edit_mode?: boolean;
|
|
266
|
+
fullscreen?: boolean;
|
|
267
|
+
component_id?: string;
|
|
268
|
+
section_id?: string;
|
|
269
|
+
}): Promise<void>;
|
|
241
270
|
capture_app_error(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
242
271
|
update_location(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
243
272
|
embeddable_ready(): Promise<void>;
|
|
@@ -309,7 +338,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
309
338
|
app_name: string;
|
|
310
339
|
}): Promise<Record<string, any>>;
|
|
311
340
|
getFile(payload: {
|
|
312
|
-
|
|
341
|
+
id?: import('../main.lib').FileRetrieve["id"];
|
|
342
|
+
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
313
343
|
}): Promise<import('../main.lib').FileRetrieve>;
|
|
314
344
|
updateFile(payload: import('../main.lib').FileUpdateRequest & {
|
|
315
345
|
id: import('../main.lib').File["id"];
|
|
@@ -390,6 +420,13 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
390
420
|
canvas_navigate_next_page(): Promise<void>;
|
|
391
421
|
canvas_navigate_previous_page(): Promise<void>;
|
|
392
422
|
canvas_navigate_page(payload: import('./api/modules/ui/types.ui').UiCanvasNavigatePageReuqest): Promise<void>;
|
|
423
|
+
openCanvasOverlay(payload: {
|
|
424
|
+
id: import('../main.lib').CanvasRetrieve["id"];
|
|
425
|
+
edit_mode?: boolean;
|
|
426
|
+
fullscreen?: boolean;
|
|
427
|
+
component_id?: string;
|
|
428
|
+
section_id?: string;
|
|
429
|
+
}): Promise<void>;
|
|
393
430
|
capture_app_error(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
394
431
|
update_location(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
|
|
395
432
|
embeddable_ready(): Promise<void>;
|
|
@@ -457,7 +494,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
457
494
|
app_name: string;
|
|
458
495
|
}): Promise<Record<string, any>>;
|
|
459
496
|
getFile(payload: {
|
|
460
|
-
|
|
497
|
+
id?: import('../main.lib').FileRetrieve["id"];
|
|
498
|
+
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
461
499
|
}): Promise<import('../main.lib').FileRetrieve>;
|
|
462
500
|
updateFile(payload: import('../main.lib').FileUpdateRequest & {
|
|
463
501
|
id: import('../main.lib').File["id"];
|
package/package.json
CHANGED