@pitcher/js-api 1.24.0-rc.0 → 1.25.0-beta.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/impact-js-api.spec.json +1 -1
- package/js-api.esm.js +15 -2
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +8 -8
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +2 -0
- package/lib/apps/browser/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +12 -0
- package/lib/apps/browser/stores/api.d.ts +2 -0
- package/lib/apps/browser/stores/app.d.ts +2 -0
- package/lib/apps/browser/stores/upload.d.ts +4 -0
- package/lib/apps/canvas-builder/App.helpers.d.ts +2 -1
- package/lib/apps/canvas-builder/App.vue.d.ts +48 -0
- package/lib/apps/canvas-builder/components/container/AiPrompt/AiPromptModal.vue.d.ts +11 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/RestrictedSectionSelector.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.raw.vue.d.ts +3 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionListStrategySelector.vue.d.ts +7 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelector.vue.d.ts +4 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorWithDragAndDrop.vue.d.ts +5 -2
- package/lib/apps/canvas-builder/composables/useAiPrompt.d.ts +6 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +110 -8
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +6 -2
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +6 -2
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +18 -18
- package/lib/apps/canvas-builder/composables/usePrintMode.d.ts +5 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +14 -1
- package/lib/apps/collection-player/App.vue.d.ts +2 -0
- package/lib/apps/collection-player/composables/moving-group-gestures.use.d.ts +5 -5
- package/lib/apps/collection-player/stores/app.store.d.ts +4 -3
- package/lib/apps/collection-player/types/collection-player.type.d.ts +1 -0
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesList.vue.d.ts +12 -0
- package/lib/apps/content-selector/stores/api.d.ts +2 -0
- package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +6 -0
- package/lib/components/CCarousel/CCarousel.vue.d.ts +303 -2
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +1 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +3 -1
- package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +2 -0
- package/lib/components/CImage/CBrokenImage.vue.d.ts +4 -1
- package/lib/components/CImage/CImage.vue.d.ts +296 -1
- package/lib/components/CSearch/CSearchOnClickWithSuggestions.vue.d.ts +23 -0
- package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +7 -0
- package/lib/components/CSwitch/CSwitch.vue.d.ts +10 -1
- package/lib/components/CTableInput/CTableInput.vue.d.ts +2 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +380 -10
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +184 -3
- package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +19 -0
- package/lib/components/filters/CSearchFilter.vue.d.ts +14 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +4 -4
- package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +1 -1
- package/lib/composables/useCanvasLocks.d.ts +1 -0
- package/lib/composables/useCanvasOverlay.d.ts +13 -1
- package/lib/composables/useMetadataSearch.d.ts +19 -0
- package/lib/composables/useWindowEvents.d.ts +4 -3
- package/lib/constants/cdp.const.d.ts +2 -2
- package/lib/main.lib.d.ts +3 -0
- package/lib/sdk/api/HighLevelApi.d.ts +0 -1
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +20 -0
- package/lib/sdk/api/modules/admin/index.d.ts +6 -0
- package/lib/sdk/api/modules/env.d.ts +1 -1
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +20 -0
- package/lib/sdk/api/modules/ui/index.d.ts +6 -0
- package/lib/sdk/main.d.ts +30 -3
- package/lib/sdk/payload.types.d.ts +4 -0
- package/lib/types/app.d.ts +3 -0
- package/lib/types/core/MetadataFilter.d.ts +32 -0
- package/lib/types/files.d.ts +3 -1
- package/lib/types/instanceSettings.types.d.ts +4 -0
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/types/organizationSettings.types.d.ts +3 -0
- package/lib/types/recentFiles.types.d.ts +2 -1
- package/lib/types/search.d.ts +5 -0
- package/lib/util/anchor.d.ts +1 -1
- package/lib/util/image.d.ts +6 -0
- package/lib/util/tree-transformation.util.d.ts +0 -1
- package/lib/util/url.d.ts +1 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +0 -2
- package/types/openapi/models/FileCreateRequest.d.ts +1 -0
- package/types/openapi/models/FileStatusEnum.d.ts +3 -1
- package/types/openapi/models/FileUpdateRequest.d.ts +1 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +1 -0
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +1 -0
- package/types/openapi/models/PatchedUserRequest.d.ts +1 -1
- package/types/openapi/models/SearchResult.d.ts +1 -3
- package/types/openapi/models/SharedLink.d.ts +0 -1
- package/types/openapi/models/SharedLinkCreate.d.ts +0 -1
- package/types/openapi/models/SharedLinkCreateRequest.d.ts +0 -1
- package/types/openapi/models/SharedLinkInstance.d.ts +1 -0
- package/types/openapi/models/User.d.ts +1 -1
- package/types/openapi/models/UserRequest.d.ts +1 -1
- package/types/openapi/models/SearchContentDistributionGroup.d.ts +0 -10
- package/types/openapi/models/SearchInstanceAssignmentGroup.d.ts +0 -10
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { TableColumnSetting } from '../CTableColumnsSettings/CTableColumnsSettings.vue';
|
|
2
2
|
import { MetadataTemplateFieldTypeEnum } from '../../../types/openapi';
|
|
3
|
+
import { CanvasType } from '../../types/canvases';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
breadcrumbs: {
|
|
5
6
|
id: string;
|
|
6
7
|
name: string;
|
|
7
8
|
}[];
|
|
9
|
+
canvasType: Exclude<CanvasType, 'section' | 'canvas' | 'block'>;
|
|
8
10
|
search: string;
|
|
9
|
-
|
|
11
|
+
metadataFilterValues: Record<string, any>;
|
|
10
12
|
recommendedIds: string[];
|
|
11
13
|
tableColumnsSettings: TableColumnSetting[];
|
|
12
14
|
customFilterComponents: {
|
|
@@ -24,8 +26,12 @@ type __VLS_Props = {
|
|
|
24
26
|
field: string;
|
|
25
27
|
order: 'asc' | 'desc';
|
|
26
28
|
};
|
|
29
|
+
viewMode?: 'table' | 'list';
|
|
27
30
|
};
|
|
28
|
-
declare
|
|
31
|
+
declare function clearSearch(): void;
|
|
32
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
33
|
+
clearSearch: typeof clearSearch;
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
35
|
search: (s: string) => any;
|
|
30
36
|
select: (payload: {
|
|
31
37
|
id: TableColumnSetting["id"];
|
|
@@ -45,6 +51,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
45
51
|
convert: () => any;
|
|
46
52
|
"update:filter-values": (mf: Record<string, any>) => any;
|
|
47
53
|
"breadcrumb:click": (id: string | null) => any;
|
|
54
|
+
"toggle-view-mode": () => any;
|
|
48
55
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
49
56
|
onSearch?: ((s: string) => any) | undefined;
|
|
50
57
|
onSelect?: ((payload: {
|
|
@@ -65,6 +72,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
65
72
|
onConvert?: (() => any) | undefined;
|
|
66
73
|
"onUpdate:filter-values"?: ((mf: Record<string, any>) => any) | undefined;
|
|
67
74
|
"onBreadcrumb:click"?: ((id: string | null) => any) | undefined;
|
|
75
|
+
"onToggle-view-mode"?: (() => any) | undefined;
|
|
68
76
|
}>, {
|
|
69
77
|
breadcrumbs: {
|
|
70
78
|
id: string;
|
|
@@ -74,5 +82,178 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
74
82
|
field: string;
|
|
75
83
|
order: "asc" | "desc";
|
|
76
84
|
};
|
|
77
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
86
|
+
searchFiltersRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
engagingIds?: string[];
|
|
89
|
+
entity: import('../../main.lib').MetadataFilterRequest["entity"];
|
|
90
|
+
includeDraftValues?: boolean;
|
|
91
|
+
isSection?: import('../../main.lib').MetadataFilterRequest["is_section"];
|
|
92
|
+
isTemplate?: import('../../main.lib').MetadataFilterRequest["is_template"];
|
|
93
|
+
searchInOptions?: import('../CSearchFilters/CSearchFilters.types').SearchInOption[];
|
|
94
|
+
filters?: Record<string, any>;
|
|
95
|
+
initialSearchValue?: string;
|
|
96
|
+
ownerId?: number | null;
|
|
97
|
+
placeholder?: string;
|
|
98
|
+
popularIds?: string[];
|
|
99
|
+
recommendedIds?: string[];
|
|
100
|
+
showLatestFilter?: boolean;
|
|
101
|
+
hideMetadataFilters?: boolean;
|
|
102
|
+
hideFilters?: boolean;
|
|
103
|
+
customFilterComponents?: {
|
|
104
|
+
type: MetadataTemplateFieldTypeEnum;
|
|
105
|
+
name: string;
|
|
106
|
+
label: string;
|
|
107
|
+
options?: [];
|
|
108
|
+
}[];
|
|
109
|
+
enableDependentFilters?: boolean;
|
|
110
|
+
dependentFiltersEntity?: "file" | "canvas";
|
|
111
|
+
}> & Readonly<{
|
|
112
|
+
"onUpdate:search"?: ((search: string, filters?: Record<string, any> | undefined) => any) | undefined;
|
|
113
|
+
"onUpdate:filters"?: ((filters: Record<string, any>) => any) | undefined;
|
|
114
|
+
"onUpdate:searchIn"?: ((searchIn: string) => any) | undefined;
|
|
115
|
+
}>, {
|
|
116
|
+
clearSearch: () => void;
|
|
117
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
118
|
+
"update:search": (search: string, filters?: Record<string, any> | undefined) => any;
|
|
119
|
+
"update:filters": (filters: Record<string, any>) => any;
|
|
120
|
+
"update:searchIn": (searchIn: string) => any;
|
|
121
|
+
}, import('vue').PublicProps, {
|
|
122
|
+
filters: Record<string, any>;
|
|
123
|
+
placeholder: string;
|
|
124
|
+
initialSearchValue: string;
|
|
125
|
+
includeDraftValues: boolean;
|
|
126
|
+
engagingIds: string[];
|
|
127
|
+
popularIds: string[];
|
|
128
|
+
recommendedIds: string[];
|
|
129
|
+
showLatestFilter: boolean;
|
|
130
|
+
hideMetadataFilters: boolean;
|
|
131
|
+
hideFilters: boolean;
|
|
132
|
+
dependentFiltersEntity: "file" | "canvas";
|
|
133
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
134
|
+
searchOnClickRef: ({
|
|
135
|
+
$: import('vue').ComponentInternalInstance;
|
|
136
|
+
$data: {};
|
|
137
|
+
$props: {
|
|
138
|
+
readonly disabled?: boolean | undefined;
|
|
139
|
+
readonly placeholder?: string | undefined;
|
|
140
|
+
readonly fullWidth?: boolean | undefined;
|
|
141
|
+
readonly initialSearchValue?: string | undefined;
|
|
142
|
+
readonly onSearch?: ((s: string) => any) | undefined;
|
|
143
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
144
|
+
$attrs: {
|
|
145
|
+
[x: string]: unknown;
|
|
146
|
+
};
|
|
147
|
+
$refs: {
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
};
|
|
150
|
+
$slots: Readonly<{
|
|
151
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
154
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
155
|
+
$host: Element | null;
|
|
156
|
+
$emit: (event: "search", s: string) => void;
|
|
157
|
+
$el: HTMLDivElement;
|
|
158
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
159
|
+
disabled?: boolean;
|
|
160
|
+
placeholder?: string;
|
|
161
|
+
fullWidth?: boolean;
|
|
162
|
+
initialSearchValue?: string;
|
|
163
|
+
}> & Readonly<{
|
|
164
|
+
onSearch?: ((s: string) => any) | undefined;
|
|
165
|
+
}>, {
|
|
166
|
+
clear: () => Promise<void>;
|
|
167
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
168
|
+
search: (s: string) => any;
|
|
169
|
+
}, string, {
|
|
170
|
+
initialSearchValue: string;
|
|
171
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
172
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
173
|
+
created?: (() => void) | (() => void)[];
|
|
174
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
175
|
+
mounted?: (() => void) | (() => void)[];
|
|
176
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
177
|
+
updated?: (() => void) | (() => void)[];
|
|
178
|
+
activated?: (() => void) | (() => void)[];
|
|
179
|
+
deactivated?: (() => void) | (() => void)[];
|
|
180
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
181
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
182
|
+
destroyed?: (() => void) | (() => void)[];
|
|
183
|
+
unmounted?: (() => void) | (() => void)[];
|
|
184
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
185
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
186
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
187
|
+
};
|
|
188
|
+
$forceUpdate: () => void;
|
|
189
|
+
$nextTick: typeof import('vue').nextTick;
|
|
190
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
191
|
+
} & Readonly<{
|
|
192
|
+
initialSearchValue: string;
|
|
193
|
+
}> & Omit<Readonly<{
|
|
194
|
+
disabled?: boolean;
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
fullWidth?: boolean;
|
|
197
|
+
initialSearchValue?: string;
|
|
198
|
+
}> & Readonly<{
|
|
199
|
+
onSearch?: ((s: string) => any) | undefined;
|
|
200
|
+
}>, "clear" | "initialSearchValue"> & import('vue').ShallowUnwrapRef<{
|
|
201
|
+
clear: () => Promise<void>;
|
|
202
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
203
|
+
$slots: {
|
|
204
|
+
options?(_: {}): any;
|
|
205
|
+
};
|
|
206
|
+
}) | null;
|
|
207
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
208
|
+
P: {};
|
|
209
|
+
B: {};
|
|
210
|
+
D: {};
|
|
211
|
+
C: {};
|
|
212
|
+
M: {};
|
|
213
|
+
Defaults: {};
|
|
214
|
+
}, Readonly<{
|
|
215
|
+
disabled?: boolean;
|
|
216
|
+
engagingIds?: string[];
|
|
217
|
+
entity: import('../../main.lib').MetadataFilterRequest["entity"];
|
|
218
|
+
includeDraftValues?: boolean;
|
|
219
|
+
isSection?: import('../../main.lib').MetadataFilterRequest["is_section"];
|
|
220
|
+
isTemplate?: import('../../main.lib').MetadataFilterRequest["is_template"];
|
|
221
|
+
searchInOptions?: import('../CSearchFilters/CSearchFilters.types').SearchInOption[];
|
|
222
|
+
filters?: Record<string, any>;
|
|
223
|
+
initialSearchValue?: string;
|
|
224
|
+
ownerId?: number | null;
|
|
225
|
+
placeholder?: string;
|
|
226
|
+
popularIds?: string[];
|
|
227
|
+
recommendedIds?: string[];
|
|
228
|
+
showLatestFilter?: boolean;
|
|
229
|
+
hideMetadataFilters?: boolean;
|
|
230
|
+
hideFilters?: boolean;
|
|
231
|
+
customFilterComponents?: {
|
|
232
|
+
type: MetadataTemplateFieldTypeEnum;
|
|
233
|
+
name: string;
|
|
234
|
+
label: string;
|
|
235
|
+
options?: [];
|
|
236
|
+
}[];
|
|
237
|
+
enableDependentFilters?: boolean;
|
|
238
|
+
dependentFiltersEntity?: "file" | "canvas";
|
|
239
|
+
}> & Readonly<{
|
|
240
|
+
"onUpdate:search"?: ((search: string, filters?: Record<string, any> | undefined) => any) | undefined;
|
|
241
|
+
"onUpdate:filters"?: ((filters: Record<string, any>) => any) | undefined;
|
|
242
|
+
"onUpdate:searchIn"?: ((searchIn: string) => any) | undefined;
|
|
243
|
+
}>, {
|
|
244
|
+
clearSearch: () => void;
|
|
245
|
+
}, {}, {}, {}, {
|
|
246
|
+
filters: Record<string, any>;
|
|
247
|
+
placeholder: string;
|
|
248
|
+
initialSearchValue: string;
|
|
249
|
+
includeDraftValues: boolean;
|
|
250
|
+
engagingIds: string[];
|
|
251
|
+
popularIds: string[];
|
|
252
|
+
recommendedIds: string[];
|
|
253
|
+
showLatestFilter: boolean;
|
|
254
|
+
hideMetadataFilters: boolean;
|
|
255
|
+
hideFilters: boolean;
|
|
256
|
+
dependentFiltersEntity: "file" | "canvas";
|
|
257
|
+
}> | null;
|
|
258
|
+
}, HTMLDivElement>;
|
|
78
259
|
export default _default;
|
|
@@ -48,5 +48,24 @@ export default function useCanvasesManagementBulk(): {
|
|
|
48
48
|
bulkUpdateFileAttributes: ({ selectedRows, fileNames, metadataFetcher, noMetadataErrorText, title, subtitle, isBulkUpdating, onComplete, confirmText, cancelText, }: BulkUpdateFileAttributeProps) => Promise<void>;
|
|
49
49
|
bulkAddTagsDialog: ({ filteredData, selectedRows, isBulkUpdating, canvasType, onComplete, isReadonly, title, confirmText, cancelText, }: BulkTagsProps) => Promise<void>;
|
|
50
50
|
bulkRemoveTagsDialog: ({ filteredData, selectedRows, isBulkUpdating, canvasType, onComplete, isReadonly, title, confirmText, cancelText, }: BulkTagsProps) => Promise<void>;
|
|
51
|
+
bulkUpdateDistributionDialog: ({ selectedCount, isBulkUpdating, canvasType, selectedRows, onComplete, title, confirmText, cancelText, }: {
|
|
52
|
+
selectedCount: number;
|
|
53
|
+
isBulkUpdating: Ref<boolean>;
|
|
54
|
+
canvasType: CanvasType;
|
|
55
|
+
selectedRows: Ref<Record<string, boolean>>;
|
|
56
|
+
onComplete: () => void | Promise<void>;
|
|
57
|
+
title?: string;
|
|
58
|
+
confirmText?: string;
|
|
59
|
+
cancelText?: string;
|
|
60
|
+
}) => Promise<void>;
|
|
61
|
+
bulkUpdateFileDistributionDialog: ({ selectedCount, isBulkUpdating, selectedRows, onComplete, title, confirmText, cancelText, }: {
|
|
62
|
+
selectedCount: number;
|
|
63
|
+
isBulkUpdating: Ref<boolean>;
|
|
64
|
+
selectedRows: Ref<Record<string, boolean>>;
|
|
65
|
+
onComplete: () => void | Promise<void>;
|
|
66
|
+
title?: string;
|
|
67
|
+
confirmText?: string;
|
|
68
|
+
cancelText?: string;
|
|
69
|
+
}) => Promise<void>;
|
|
51
70
|
};
|
|
52
71
|
export {};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { MetadataFilterRequest } from '../../types/core/MetadataFilter';
|
|
1
2
|
type Props = {
|
|
2
3
|
disabled?: boolean;
|
|
4
|
+
entity?: MetadataFilterRequest['entity'];
|
|
3
5
|
inline?: boolean;
|
|
6
|
+
includeDraftValues?: boolean;
|
|
4
7
|
name?: string;
|
|
5
8
|
modelValue?: string;
|
|
9
|
+
filterKey?: string;
|
|
10
|
+
isCustom?: boolean;
|
|
11
|
+
isSection?: boolean;
|
|
12
|
+
isTemplate?: boolean;
|
|
13
|
+
ownerId?: number | null;
|
|
6
14
|
};
|
|
7
15
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
16
|
clear: () => any;
|
|
@@ -15,6 +23,12 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
15
23
|
disabled: boolean;
|
|
16
24
|
inline: boolean;
|
|
17
25
|
modelValue: string;
|
|
26
|
+
isSection: boolean;
|
|
27
|
+
isTemplate: boolean;
|
|
28
|
+
includeDraftValues: boolean;
|
|
29
|
+
ownerId: number | null;
|
|
30
|
+
filterKey: string;
|
|
31
|
+
isCustom: boolean;
|
|
18
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
33
|
searchOnClickRef: ({
|
|
20
34
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -38,7 +38,7 @@ declare function __VLS_template(): {
|
|
|
38
38
|
refs: {
|
|
39
39
|
toolbarWrapper: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
40
40
|
search: string;
|
|
41
|
-
|
|
41
|
+
metadataFilterValues: Record<string, any>;
|
|
42
42
|
tableColumnsSettings: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting[];
|
|
43
43
|
customFilterComponents: {
|
|
44
44
|
type: MetadataTemplateFieldTypeEnum;
|
|
@@ -86,7 +86,7 @@ declare function __VLS_template(): {
|
|
|
86
86
|
Defaults: {};
|
|
87
87
|
}, Readonly<{
|
|
88
88
|
search: string;
|
|
89
|
-
|
|
89
|
+
metadataFilterValues: Record<string, any>;
|
|
90
90
|
tableColumnsSettings: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting[];
|
|
91
91
|
customFilterComponents: {
|
|
92
92
|
type: MetadataTemplateFieldTypeEnum;
|
|
@@ -402,7 +402,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
402
402
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
403
403
|
toolbarWrapper: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
404
404
|
search: string;
|
|
405
|
-
|
|
405
|
+
metadataFilterValues: Record<string, any>;
|
|
406
406
|
tableColumnsSettings: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting[];
|
|
407
407
|
customFilterComponents: {
|
|
408
408
|
type: MetadataTemplateFieldTypeEnum;
|
|
@@ -450,7 +450,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
450
450
|
Defaults: {};
|
|
451
451
|
}, Readonly<{
|
|
452
452
|
search: string;
|
|
453
|
-
|
|
453
|
+
metadataFilterValues: Record<string, any>;
|
|
454
454
|
tableColumnsSettings: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting[];
|
|
455
455
|
customFilterComponents: {
|
|
456
456
|
type: MetadataTemplateFieldTypeEnum;
|
|
@@ -2,7 +2,7 @@ import { TableColumnSetting } from '../CTableColumnsSettings/CTableColumnsSettin
|
|
|
2
2
|
import { MetadataTemplateFieldTypeEnum } from '../../../types/openapi';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
search: string;
|
|
5
|
-
|
|
5
|
+
metadataFilterValues: Record<string, any>;
|
|
6
6
|
tableColumnsSettings: TableColumnSetting[];
|
|
7
7
|
customFilterComponents: {
|
|
8
8
|
type: MetadataTemplateFieldTypeEnum;
|
|
@@ -41,6 +41,7 @@ export default function useCanvasLocks(options?: {
|
|
|
41
41
|
}[]>;
|
|
42
42
|
isFetching: import('vue').Ref<boolean, boolean>;
|
|
43
43
|
isChangingLock: import('vue').Ref<boolean, boolean>;
|
|
44
|
+
isOrgAdmin: ComputedRef<boolean>;
|
|
44
45
|
error: import('vue').Ref<Error | null, Error | null>;
|
|
45
46
|
canvasLockMap: ComputedRef<Record<string, CanvasLock>>;
|
|
46
47
|
isCanvasLocked: (canvasId: string) => boolean;
|
|
@@ -4,6 +4,12 @@ interface CanvasOverlay {
|
|
|
4
4
|
edit_mode?: boolean;
|
|
5
5
|
component_id?: string;
|
|
6
6
|
section_id?: string;
|
|
7
|
+
position?: {
|
|
8
|
+
left?: number | string;
|
|
9
|
+
right?: number | string;
|
|
10
|
+
top?: number | string;
|
|
11
|
+
bottom?: number | string;
|
|
12
|
+
};
|
|
7
13
|
}
|
|
8
14
|
declare const _default: () => {
|
|
9
15
|
isCanvasOverlayOpen: import('vue').ComputedRef<boolean>;
|
|
@@ -13,8 +19,14 @@ declare const _default: () => {
|
|
|
13
19
|
edit_mode?: boolean | undefined;
|
|
14
20
|
component_id?: string | undefined;
|
|
15
21
|
section_id?: string | undefined;
|
|
22
|
+
position?: {
|
|
23
|
+
left?: number | string | undefined;
|
|
24
|
+
right?: number | string | undefined;
|
|
25
|
+
top?: number | string | undefined;
|
|
26
|
+
bottom?: number | string | undefined;
|
|
27
|
+
} | undefined;
|
|
16
28
|
} | undefined>;
|
|
17
|
-
openCanvasOverlay: ({ id, fullscreen, edit_mode, component_id, section_id }: CanvasOverlay) => void;
|
|
29
|
+
openCanvasOverlay: ({ id, fullscreen, edit_mode, component_id, section_id, position }: CanvasOverlay) => void;
|
|
18
30
|
closeCanvasOverlay: () => void;
|
|
19
31
|
};
|
|
20
32
|
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MetadataFilterRequest, MetadataSearchParams } from '../types/core/MetadataFilter';
|
|
2
|
+
import { StyledAutoCompleteOption } from '../types/search';
|
|
3
|
+
interface UseMetadataSearchOptions {
|
|
4
|
+
includeSearchTermAsOption?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export default function useMetadataSearch(options?: UseMetadataSearchOptions): {
|
|
7
|
+
handleFetch: (searchTerm: string, entity: MetadataFilterRequest["entity"], { includeNameSearch, includeDraftValues, isSection, isTemplate, isBlock, key, ownerId, searchMode, threshold, }?: {
|
|
8
|
+
includeNameSearch?: boolean;
|
|
9
|
+
includeDraftValues?: boolean;
|
|
10
|
+
isSection?: boolean;
|
|
11
|
+
isTemplate?: boolean;
|
|
12
|
+
isBlock?: boolean;
|
|
13
|
+
key?: MetadataSearchParams["key"];
|
|
14
|
+
ownerId?: number | null;
|
|
15
|
+
searchMode?: MetadataSearchParams["searchMode"];
|
|
16
|
+
threshold?: number;
|
|
17
|
+
}) => Promise<StyledAutoCompleteOption[]>;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PLATFORM_TYPE, CLIENT_TYPE, CDP_EVENT_TYPE } from '../constants/cdp.const';
|
|
2
2
|
import { usePitcherApi } from '../sdk/main';
|
|
3
3
|
type EventType = 'active' | 'passive';
|
|
4
|
+
type EventLifecycle = 'enter' | 'exit';
|
|
4
5
|
export type InactiveEventPayload = {
|
|
5
6
|
platform?: (typeof PLATFORM_TYPE)[keyof typeof PLATFORM_TYPE];
|
|
6
7
|
client?: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
|
|
@@ -10,11 +11,11 @@ export type InactiveEventPayload = {
|
|
|
10
11
|
export default function (track: (eventName: string, payload: any) => void, pitcherApi?: ReturnType<typeof usePitcherApi>): {
|
|
11
12
|
registerInactiveEvent: ({ id, payload, enterEvent, exitEvent, type, }: {
|
|
12
13
|
id: string;
|
|
13
|
-
payload: InactiveEventPayload | (() => InactiveEventPayload);
|
|
14
|
+
payload: InactiveEventPayload | ((type?: EventLifecycle) => InactiveEventPayload);
|
|
14
15
|
enterEvent: (typeof CDP_EVENT_TYPE)[keyof typeof CDP_EVENT_TYPE];
|
|
15
16
|
exitEvent: (typeof CDP_EVENT_TYPE)[keyof typeof CDP_EVENT_TYPE];
|
|
16
17
|
type?: EventType;
|
|
17
|
-
}) => void;
|
|
18
|
-
unregisterInactiveEvent: (id: string) => void;
|
|
18
|
+
}) => string | void;
|
|
19
|
+
unregisterInactiveEvent: (id: string, canvas_correlation_id?: string) => void;
|
|
19
20
|
};
|
|
20
21
|
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export declare const CDP_EVENT_TYPE: {
|
|
2
|
-
readonly instanceEntered: "Instance Entered";
|
|
3
|
-
readonly instanceExited: "Instance Exited";
|
|
4
2
|
readonly fileEntered: "File Entered";
|
|
5
3
|
readonly fileExited: "File Exited";
|
|
6
4
|
readonly webFileEntered: "Web File Entered";
|
|
@@ -8,6 +6,8 @@ export declare const CDP_EVENT_TYPE: {
|
|
|
8
6
|
readonly pageEntered: "Page Entered";
|
|
9
7
|
readonly pageExited: "Page Exited";
|
|
10
8
|
readonly pageViewed: "Page Viewed";
|
|
9
|
+
readonly appEntered: "App Entered";
|
|
10
|
+
readonly appExited: "App Exited";
|
|
11
11
|
readonly canvasEntered: "Canvas Entered";
|
|
12
12
|
readonly canvasExited: "Canvas Exited";
|
|
13
13
|
readonly canvasShared: "Canvas Shared";
|
package/lib/main.lib.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { default as CModal } from './components/CModal/CModal.vue';
|
|
|
26
26
|
export { default as CPopover } from './components/CPopover/CPopover.vue';
|
|
27
27
|
export { default as CSearch } from './components/CSearch/CSearch.vue';
|
|
28
28
|
export { default as CSearchOnClick } from './components/CSearch/CSearchOnClick.vue';
|
|
29
|
+
export { default as CSearchOnClickWithSuggestions } from './components/CSearch/CSearchOnClickWithSuggestions.vue';
|
|
29
30
|
export { default as CSelect } from './components/CSelect/CSelect.vue';
|
|
30
31
|
export { default as CTag } from './components/CTag/CTag.vue';
|
|
31
32
|
export { default as CThemeEditor } from './components/CThemeEditor/CThemeEditor.vue';
|
|
@@ -135,6 +136,7 @@ export { default as useOpenFileStack } from './composables/openFileStack.use';
|
|
|
135
136
|
export { useAdminAndDsrState } from './composables/useAdminAndDsrState';
|
|
136
137
|
export { default as useCanvasVisibility } from './apps/canvas-builder/composables/useCanvasVisibility';
|
|
137
138
|
export { default as useMetadataTemplates } from './composables/useMetadataTemplates';
|
|
139
|
+
export { default as useMetadataSearch } from './composables/useMetadataSearch';
|
|
138
140
|
export * from './composables/appsDb.use';
|
|
139
141
|
export { default as useCanvasLocks } from './composables/useCanvasLocks';
|
|
140
142
|
export * from './plugins/vueQuery';
|
|
@@ -202,6 +204,7 @@ export * from './types/toast';
|
|
|
202
204
|
export * from './types/instanceSettings.types';
|
|
203
205
|
export * from './types/organizationSettings.types';
|
|
204
206
|
export * from './components/CConfigEditor/CConfigEditor.types';
|
|
207
|
+
export * from './types/search';
|
|
205
208
|
export * from './types/selections';
|
|
206
209
|
export * from './apps/agenda-selector/types/agenda.type';
|
|
207
210
|
export * from './apps/collection-player/types/collection-player.type';
|
|
@@ -110,7 +110,6 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
110
110
|
getEnv(): Promise<import('../interfaces').PitcherEnv>;
|
|
111
111
|
updateMyUser(payload: {
|
|
112
112
|
language?: import('../../main.lib').LanguageEnum | undefined;
|
|
113
|
-
dark_mode?: boolean | undefined;
|
|
114
113
|
}): Promise<import('../../main.lib').User>;
|
|
115
114
|
getLanguages(): Promise<modules.Language[]>;
|
|
116
115
|
getEvents(payload: Partial<import('../../main.lib').EventRequest>): Promise<import('../../main.lib').PaginatedData<import('../../main.lib').Event>>;
|
|
@@ -75,6 +75,20 @@ export declare function updateCanvas(payload: PatchedCanvasUpdateRequest & {
|
|
|
75
75
|
* })
|
|
76
76
|
* })
|
|
77
77
|
* ```
|
|
78
|
+
*
|
|
79
|
+
* You can also specify a position for the canvas overlay:
|
|
80
|
+
*
|
|
81
|
+
* ```
|
|
82
|
+
* adminApi.openCanvasOverlay({
|
|
83
|
+
* id: '01HH4RCBH631K4JDHWAQB0RPR6',
|
|
84
|
+
* position: {
|
|
85
|
+
* top: '10px',
|
|
86
|
+
* left: '20px',
|
|
87
|
+
* right: '20px',
|
|
88
|
+
* bottom: '10px'
|
|
89
|
+
* }
|
|
90
|
+
* })
|
|
91
|
+
* ```
|
|
78
92
|
*/
|
|
79
93
|
export declare function openCanvasOverlay(payload: {
|
|
80
94
|
id: CanvasRetrieve['id'];
|
|
@@ -82,6 +96,12 @@ export declare function openCanvasOverlay(payload: {
|
|
|
82
96
|
fullscreen?: boolean;
|
|
83
97
|
component_id?: string;
|
|
84
98
|
section_id?: string;
|
|
99
|
+
position?: {
|
|
100
|
+
left?: number | string;
|
|
101
|
+
right?: number | string;
|
|
102
|
+
top?: number | string;
|
|
103
|
+
bottom?: number | string;
|
|
104
|
+
};
|
|
85
105
|
}): Promise<void>;
|
|
86
106
|
/**
|
|
87
107
|
* Allows the user to select (and preselect) canvases from the instance.
|
|
@@ -47,6 +47,12 @@ declare const _default: {
|
|
|
47
47
|
fullscreen?: boolean;
|
|
48
48
|
component_id?: string;
|
|
49
49
|
section_id?: string;
|
|
50
|
+
position?: {
|
|
51
|
+
left?: number | string;
|
|
52
|
+
right?: number | string;
|
|
53
|
+
top?: number | string;
|
|
54
|
+
bottom?: number | string;
|
|
55
|
+
};
|
|
50
56
|
}): Promise<void>;
|
|
51
57
|
selectCanvases(payload?: import('./types.admin').AdminSelectCanvasesRequest): Promise<import('./types.admin').AdminSelectCanvasesResponse>;
|
|
52
58
|
getEnv(): Promise<import('./types.admin').AdminEnv>;
|
|
@@ -17,6 +17,6 @@ import { User } from '../../../../types/openapi';
|
|
|
17
17
|
* })
|
|
18
18
|
*/
|
|
19
19
|
export declare function getEnv(): Promise<PitcherEnv>;
|
|
20
|
-
type UpdateEnvParams = Pick<User, 'language'
|
|
20
|
+
type UpdateEnvParams = Pick<User, 'language'>;
|
|
21
21
|
export declare function updateMyUser(payload: UpdateEnvParams): Promise<User>;
|
|
22
22
|
export {};
|
|
@@ -81,6 +81,20 @@ export declare function canvasNavigatePage(payload: UiCanvasNavigatePageRequest)
|
|
|
81
81
|
* })
|
|
82
82
|
* })
|
|
83
83
|
* ```
|
|
84
|
+
*
|
|
85
|
+
* You can also specify a position for the canvas overlay:
|
|
86
|
+
*
|
|
87
|
+
* ```
|
|
88
|
+
* uiApi.openCanvasOverlay({
|
|
89
|
+
* id: '01HH4RCBH631K4JDHWAQB0RPR6',
|
|
90
|
+
* position: {
|
|
91
|
+
* top: '10px',
|
|
92
|
+
* left: '20px',
|
|
93
|
+
* right: '20px',
|
|
94
|
+
* bottom: '10px'
|
|
95
|
+
* }
|
|
96
|
+
* })
|
|
97
|
+
* ```
|
|
84
98
|
*/
|
|
85
99
|
export declare function openCanvasOverlay(payload: {
|
|
86
100
|
id: CanvasRetrieve['id'];
|
|
@@ -88,6 +102,12 @@ export declare function openCanvasOverlay(payload: {
|
|
|
88
102
|
fullscreen?: boolean;
|
|
89
103
|
component_id?: string;
|
|
90
104
|
section_id?: string;
|
|
105
|
+
position?: {
|
|
106
|
+
left?: number | string;
|
|
107
|
+
right?: number | string;
|
|
108
|
+
top?: number | string;
|
|
109
|
+
bottom?: number | string;
|
|
110
|
+
};
|
|
91
111
|
}): Promise<void>;
|
|
92
112
|
/**
|
|
93
113
|
* Allows the user to select (and preselect) canvases from the instance.
|
|
@@ -134,6 +134,12 @@ declare const _default: {
|
|
|
134
134
|
fullscreen?: boolean;
|
|
135
135
|
component_id?: string;
|
|
136
136
|
section_id?: string;
|
|
137
|
+
position?: {
|
|
138
|
+
left?: number | string;
|
|
139
|
+
right?: number | string;
|
|
140
|
+
top?: number | string;
|
|
141
|
+
bottom?: number | string;
|
|
142
|
+
};
|
|
137
143
|
}): Promise<void>;
|
|
138
144
|
selectCanvases(payload?: import('./types.ui').UiSelectCanvasesRequest): Promise<import('./types.ui').UiSelectCanvasesResponse>;
|
|
139
145
|
captureAppError(payload: import('./types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -45,6 +45,12 @@ export declare function useUi(): {
|
|
|
45
45
|
fullscreen?: boolean;
|
|
46
46
|
component_id?: string;
|
|
47
47
|
section_id?: string;
|
|
48
|
+
position?: {
|
|
49
|
+
left?: number | string;
|
|
50
|
+
right?: number | string;
|
|
51
|
+
top?: number | string;
|
|
52
|
+
bottom?: number | string;
|
|
53
|
+
};
|
|
48
54
|
}): Promise<void>;
|
|
49
55
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
50
56
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
@@ -111,6 +117,12 @@ export declare function useAdmin(): {
|
|
|
111
117
|
fullscreen?: boolean;
|
|
112
118
|
component_id?: string;
|
|
113
119
|
section_id?: string;
|
|
120
|
+
position?: {
|
|
121
|
+
left?: number | string;
|
|
122
|
+
right?: number | string;
|
|
123
|
+
top?: number | string;
|
|
124
|
+
bottom?: number | string;
|
|
125
|
+
};
|
|
114
126
|
}): Promise<void>;
|
|
115
127
|
selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
|
|
116
128
|
getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
|
|
@@ -174,7 +186,6 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
174
186
|
getEnv(): Promise<import('./interfaces').PitcherEnv>;
|
|
175
187
|
updateMyUser(payload: {
|
|
176
188
|
language?: import('../main.lib').LanguageEnum | undefined;
|
|
177
|
-
dark_mode?: boolean | undefined;
|
|
178
189
|
}): Promise<import('../main.lib').User>;
|
|
179
190
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
180
191
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|
|
@@ -356,6 +367,12 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
356
367
|
fullscreen?: boolean;
|
|
357
368
|
component_id?: string;
|
|
358
369
|
section_id?: string;
|
|
370
|
+
position?: {
|
|
371
|
+
left?: number | string;
|
|
372
|
+
right?: number | string;
|
|
373
|
+
top?: number | string;
|
|
374
|
+
bottom?: number | string;
|
|
375
|
+
};
|
|
359
376
|
}): Promise<void>;
|
|
360
377
|
selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
|
|
361
378
|
getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
|
|
@@ -395,6 +412,12 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
395
412
|
fullscreen?: boolean;
|
|
396
413
|
component_id?: string;
|
|
397
414
|
section_id?: string;
|
|
415
|
+
position?: {
|
|
416
|
+
left?: number | string;
|
|
417
|
+
right?: number | string;
|
|
418
|
+
top?: number | string;
|
|
419
|
+
bottom?: number | string;
|
|
420
|
+
};
|
|
398
421
|
}): Promise<void>;
|
|
399
422
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
400
423
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
@@ -432,7 +455,6 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
432
455
|
getEnv(): Promise<import('./interfaces').PitcherEnv>;
|
|
433
456
|
updateMyUser(payload: {
|
|
434
457
|
language?: import('../main.lib').LanguageEnum | undefined;
|
|
435
|
-
dark_mode?: boolean | undefined;
|
|
436
458
|
}): Promise<import('../main.lib').User>;
|
|
437
459
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
438
460
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|
|
@@ -603,6 +625,12 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
603
625
|
fullscreen?: boolean;
|
|
604
626
|
component_id?: string;
|
|
605
627
|
section_id?: string;
|
|
628
|
+
position?: {
|
|
629
|
+
left?: number | string;
|
|
630
|
+
right?: number | string;
|
|
631
|
+
top?: number | string;
|
|
632
|
+
bottom?: number | string;
|
|
633
|
+
};
|
|
606
634
|
}): Promise<void>;
|
|
607
635
|
selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
|
|
608
636
|
captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
|
|
@@ -636,7 +664,6 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
636
664
|
getEnv(): Promise<import('./interfaces').PitcherEnv>;
|
|
637
665
|
updateMyUser(payload: {
|
|
638
666
|
language?: import('../main.lib').LanguageEnum | undefined;
|
|
639
|
-
dark_mode?: boolean | undefined;
|
|
640
667
|
}): Promise<import('../main.lib').User>;
|
|
641
668
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
642
669
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|