@pitcher/js-api 1.23.0 → 1.24.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/js-api.esm.js +18 -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/agenda-selector/App.vue.d.ts +9 -0
- package/lib/apps/agenda-selector/components/AgendaGroup.vue.d.ts +7 -0
- package/lib/apps/agenda-selector/components/AgendaItem.vue.d.ts +29 -0
- package/lib/apps/agenda-selector/components/AgendaToolbar.vue.d.ts +2 -0
- package/lib/apps/agenda-selector/components/AppFooter.vue.d.ts +8 -0
- package/lib/apps/agenda-selector/components/AppHeader.vue.d.ts +6 -0
- package/lib/apps/agenda-selector/components/modals/ApplicationBlockSelectorModal.vue.d.ts +8 -0
- package/lib/apps/agenda-selector/components/modals/MoveItemModal.vue.d.ts +15 -0
- package/lib/apps/agenda-selector/composables/application-block-selector-modal.use.d.ts +17 -0
- package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +128 -0
- package/lib/apps/agenda-selector/composables/table-input.use.d.ts +15 -0
- package/lib/apps/agenda-selector/stores/app.store.d.ts +32 -0
- package/lib/apps/agenda-selector/types/agenda.type.d.ts +28 -0
- package/lib/apps/agenda-selector/types/common.type.d.ts +8 -0
- package/lib/apps/agenda-selector/types/move-item-modal.type.d.ts +5 -0
- package/lib/apps/agenda-selector/utils/data.util.d.ts +14 -0
- package/lib/apps/agenda-selector/utils/theme-overrides.util.d.ts +8 -0
- package/lib/apps/browser/App.vue.d.ts +3 -1
- package/lib/apps/browser/components/UploadFilesDropzone/UploadFilesDropzone.vue.d.ts +5 -1
- package/lib/apps/browser/stores/api.d.ts +28 -6
- package/lib/apps/browser/stores/upload.d.ts +12 -12
- package/lib/apps/canvas-builder/App.vue.d.ts +56 -32
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +9 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +10 -10
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentLegacy.vue.d.ts +9 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentRevamp.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/ResizeHandles.vue.d.ts +23 -0
- package/lib/apps/canvas-builder/components/ui/Block/Block.helpers.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/Block/Block.types.d.ts +7 -0
- package/lib/apps/canvas-builder/components/ui/{CollectionPlayer/CollectionSelector.vue.d.ts → Block/BlockToolbar.vue.d.ts} +6 -11
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +4 -3
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/{CollectionPlayer.edit.vue.d.ts → CollectionPlayerEmpty.vue.d.ts} +5 -5
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.raw.vue.d.ts +3 -1
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.vue.d.ts +4 -5
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +34 -0
- package/lib/apps/canvas-builder/components/ui/Scribble/scribble.helpers.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelector.helpers.d.ts +6 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorSelected.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +519 -439
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +117 -94
- package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +104 -86
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +38 -0
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCollectionSelector.d.ts +9 -0
- package/lib/apps/canvas-builder/composables/useComponentStyle.d.ts +22 -0
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +5 -14
- package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +28 -0
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +4 -2
- package/lib/apps/canvas-builder/types/canvas.d.ts +22 -31
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +6 -5
- package/lib/apps/canvas-builder/util/url.d.ts +1 -0
- package/lib/apps/canvas-selector/stores/app.d.ts +28 -0
- package/lib/apps/collection-player/App.vue.d.ts +33 -0
- package/lib/apps/collection-player/components/AppFooter.vue.d.ts +2 -0
- package/lib/apps/collection-player/components/AppHeader.vue.d.ts +2 -0
- package/lib/apps/collection-player/components/AppWrapper.vue.d.ts +17 -0
- package/lib/apps/collection-player/components/MainContent.vue.d.ts +2 -0
- package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/components/MainImage.vue.d.ts +3 -3
- package/lib/apps/collection-player/components/TableOfContents.vue.d.ts +2 -0
- package/lib/apps/collection-player/composables/focus-trap.use.d.ts +9 -0
- package/lib/apps/collection-player/composables/fullscreen.use.d.ts +10 -0
- package/lib/apps/{canvas-builder/components/ui/CollectionPlayer/composables/gestures.use.d.ts → collection-player/composables/moving-group-gestures.use.d.ts} +6 -3
- package/lib/apps/collection-player/composables/slide-direction.use.d.ts +11 -0
- package/lib/apps/collection-player/composables/tracking.use.d.ts +10 -0
- package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/zoom.use.d.ts +2 -2
- package/lib/apps/collection-player/export.d.ts +3 -0
- package/lib/apps/collection-player/stores/app.store.d.ts +77 -0
- package/lib/apps/collection-player/types/collection-player.type.d.ts +26 -0
- package/lib/apps/collection-player/utils/node.util.d.ts +4 -0
- package/lib/apps/collection-player/utils/slide-type.util.d.ts +5 -0
- package/lib/apps/collection-selector/App.vue.d.ts +29 -0
- package/lib/apps/collection-selector/components/AppFooter.vue.d.ts +8 -0
- package/lib/apps/collection-selector/components/AppHeader.vue.d.ts +6 -0
- package/lib/apps/collection-selector/components/CollectionGroup.vue.d.ts +7 -0
- package/lib/apps/collection-selector/components/CollectionItem.vue.d.ts +21 -0
- package/lib/apps/collection-selector/components/CollectionToolbar.vue.d.ts +2 -0
- package/lib/apps/{canvas-builder/components/ui/CollectionPlayer/CollectionGroupSelector.vue.d.ts → collection-selector/components/modals/MoveSlideModal.vue.d.ts} +7 -13
- package/lib/apps/collection-selector/composables/move-slide-modal.use.d.ts +106 -0
- package/lib/apps/collection-selector/composables/table-input.use.d.ts +15 -0
- package/lib/apps/collection-selector/stores/app.store.d.ts +156 -0
- package/lib/apps/collection-selector/types/collection-selector.type.d.ts +12 -0
- package/lib/apps/collection-selector/types/common.type.d.ts +18 -0
- package/lib/apps/collection-selector/types/move-slide-modal.type.d.ts +5 -0
- package/lib/apps/collection-selector/utils/content-selector-adapter.util.d.ts +41 -0
- package/lib/apps/collection-selector/utils/data.util.d.ts +23 -0
- package/lib/apps/collection-selector/utils/theme-overrides.util.d.ts +8 -0
- package/lib/apps/content-selector/appTypes.d.ts +7 -29
- package/lib/apps/content-selector/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +2 -0
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts +6 -3
- package/lib/apps/content-selector/stores/api.d.ts +252 -0
- package/lib/apps/content-selector/stores/app.d.ts +42 -7
- package/lib/components/CBackgroundImageThemeOptions/CBackgroundImageThemeOptions.vue.d.ts +42 -0
- package/lib/components/CCanvasSelector/CCanvasSelector.vue.d.ts +3 -0
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +9 -2
- package/lib/components/CComponentThemeOptions/CComponentThemeOptions.vue.d.ts +55 -15
- package/lib/components/CDataTable/CDataTableEdit.use.d.ts +1 -1
- package/lib/components/CFileViewer/pdf/CFileViewerCopyPagesMetadata.pdf.vue.d.ts +5 -1
- package/lib/components/CGlobalSearch/CGlobalSearch.vue.d.ts +3 -2
- package/lib/components/CIcon/CIcon.vue.d.ts +1 -0
- package/lib/components/CInfoBadge/CInfoBadge.vue.d.ts +1 -1
- package/lib/components/CRichTextEditor/CRichTextEditor.vue.d.ts +8 -0
- package/lib/components/CRichTextEditor/components/CContentLinkToolbar.vue.d.ts +8 -0
- package/lib/components/CRichTextEditor/components/CEditorMenu.vue.d.ts +8 -0
- package/lib/components/CRichTextEditor/extensions/contentLink.d.ts +9 -3
- package/lib/components/CSearch/CSearchOnClick.vue.d.ts +15 -1
- package/lib/components/CSearchFilters/CSearchFilters.types.d.ts +5 -0
- package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +22 -1
- package/lib/components/CSingleFileSelector/CSingleFileSelector.vue.d.ts +9 -3
- package/lib/components/CTable/CTable.vue.d.ts +2 -2
- package/lib/components/CTableColumnsSettings/CTableColumnsSettings.vue.d.ts +2 -2
- package/lib/components/CTableTag/CTableTag.vue.d.ts +1 -1
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +6 -6
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +39 -54
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +26 -35
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +32 -43
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +1 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +25 -33
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +11 -6
- package/lib/components/sections/CSectionManagement.vue.d.ts +6 -6
- package/lib/composables/useConfirmation.d.ts +1 -0
- package/lib/composables/useToast.d.ts +6 -5
- package/lib/constants/appsDb.const.d.ts +2 -0
- package/lib/main.lib.d.ts +10 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +20 -1
- package/lib/sdk/api/modules/ui/content.ui.d.ts +31 -1
- package/lib/sdk/api/modules/ui/index.d.ts +2 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +29 -2
- package/lib/sdk/interfaces.d.ts +6 -0
- package/lib/sdk/main.d.ts +6 -0
- package/lib/types/app.d.ts +1 -1
- package/lib/types/background.d.ts +5 -0
- package/lib/types/common.d.ts +2 -0
- package/lib/types/instanceSettings.types.d.ts +2 -0
- package/lib/types/launchDarkly.types.d.ts +3 -1
- package/lib/types/organizationSettings.types.d.ts +1 -1
- package/lib/types/selections.d.ts +19 -0
- package/lib/util/eval.d.ts +1 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +2 -0
- package/types/openapi/models/Canvas.d.ts +2 -0
- package/types/openapi/models/CanvasCreate.d.ts +2 -0
- package/types/openapi/models/CanvasRecommendedFile.d.ts +4 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +2 -0
- package/types/openapi/models/CanvasUpdate.d.ts +2 -0
- package/types/openapi/models/DeletedCanvas.d.ts +2 -0
- package/types/openapi/models/DeletedFavorite.d.ts +2 -2
- package/types/openapi/models/DeletedFile.d.ts +4 -0
- package/types/openapi/models/Favorite.d.ts +2 -2
- package/types/openapi/models/FavoriteCreate.d.ts +2 -2
- package/types/openapi/models/FavoriteFolder.d.ts +6 -0
- package/types/openapi/models/FavoriteFolderRequest.d.ts +3 -0
- package/types/openapi/models/FavoriteUpdate.d.ts +2 -2
- package/types/openapi/models/File.d.ts +4 -0
- package/types/openapi/models/FileCreate.d.ts +4 -0
- package/types/openapi/models/FileRetrieve.d.ts +4 -0
- package/types/openapi/models/FileUpdate.d.ts +4 -0
- package/types/openapi/models/SearchCanvas.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionListItem.vue.d.ts +0 -37
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.raw.vue.d.ts +0 -19
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/tracking.use.d.ts +0 -4
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +0 -5
- package/lib/apps/canvas-builder/composables/useCollectionPlayer.d.ts +0 -31
- /package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/arrow-keys.use.d.ts +0 -0
- /package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/image-cache.use.d.ts +0 -0
|
@@ -1,67 +1,58 @@
|
|
|
1
1
|
import { TableColumnSetting } from '../CTableColumnsSettings/CTableColumnsSettings.vue';
|
|
2
|
-
import {
|
|
3
|
-
import { SystemFilter } from '../../types/sectionPopularity';
|
|
2
|
+
import { MetadataTemplateFieldTypeEnum } from '../../../types/openapi';
|
|
4
3
|
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
search: string;
|
|
5
|
+
filterValues: Record<string, any>;
|
|
6
|
+
recommendedIds: string[];
|
|
7
|
+
tableColumnsSettings: TableColumnSetting[];
|
|
8
|
+
customFilterComponents: {
|
|
9
|
+
type: MetadataTemplateFieldTypeEnum;
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
options?: [];
|
|
13
|
+
}[];
|
|
5
14
|
hideCreate?: boolean;
|
|
6
15
|
hideView?: boolean;
|
|
7
16
|
isLoadingItems?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
tag: FilterCategory;
|
|
11
|
-
status: FilterCategory;
|
|
12
|
-
createdBy: FilterCategory;
|
|
13
|
-
[SystemFilter.ENGAGING]: FilterCategory;
|
|
14
|
-
[SystemFilter.POPULAR]: FilterCategory;
|
|
15
|
-
[SystemFilter.RECOMMENDED]: FilterCategory;
|
|
16
|
-
};
|
|
17
|
-
tableColumnsSettings: TableColumnSetting[];
|
|
18
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
search: (s: string) => any;
|
|
19
19
|
select: (payload: {
|
|
20
20
|
id: TableColumnSetting["id"];
|
|
21
21
|
checked: boolean;
|
|
22
22
|
}) => any;
|
|
23
|
-
"update:modelValue": (value: string) => any;
|
|
24
23
|
move: (payload: {
|
|
25
24
|
targetItemId: TableColumnSetting["id"];
|
|
26
25
|
itemId: string;
|
|
27
26
|
}) => any;
|
|
28
|
-
"update:filters": (value: {
|
|
29
|
-
tag: string[];
|
|
30
|
-
status: string[];
|
|
31
|
-
createdBy: string[];
|
|
32
|
-
}) => any;
|
|
33
27
|
restoreColumns: () => any;
|
|
34
28
|
"create:template": () => any;
|
|
29
|
+
"update:filter-values": (mf: Record<string, any>) => any;
|
|
35
30
|
}, string, import('vue').PublicProps, Readonly<{
|
|
31
|
+
search: string;
|
|
32
|
+
filterValues: Record<string, any>;
|
|
33
|
+
recommendedIds: string[];
|
|
34
|
+
tableColumnsSettings: TableColumnSetting[];
|
|
35
|
+
customFilterComponents: {
|
|
36
|
+
type: MetadataTemplateFieldTypeEnum;
|
|
37
|
+
name: string;
|
|
38
|
+
label: string;
|
|
39
|
+
options?: [];
|
|
40
|
+
}[];
|
|
36
41
|
hideCreate?: boolean;
|
|
37
42
|
hideView?: boolean;
|
|
38
43
|
isLoadingItems?: boolean;
|
|
39
|
-
modelValue: string;
|
|
40
|
-
filters: {
|
|
41
|
-
tag: FilterCategory;
|
|
42
|
-
status: FilterCategory;
|
|
43
|
-
createdBy: FilterCategory;
|
|
44
|
-
[SystemFilter.ENGAGING]: FilterCategory;
|
|
45
|
-
[SystemFilter.POPULAR]: FilterCategory;
|
|
46
|
-
[SystemFilter.RECOMMENDED]: FilterCategory;
|
|
47
|
-
};
|
|
48
|
-
tableColumnsSettings: TableColumnSetting[];
|
|
49
44
|
}> & Readonly<{
|
|
45
|
+
onSearch?: ((s: string) => any) | undefined;
|
|
50
46
|
onSelect?: ((payload: {
|
|
51
47
|
id: TableColumnSetting["id"];
|
|
52
48
|
checked: boolean;
|
|
53
49
|
}) => any) | undefined;
|
|
54
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
55
50
|
onMove?: ((payload: {
|
|
56
51
|
targetItemId: TableColumnSetting["id"];
|
|
57
52
|
itemId: string;
|
|
58
53
|
}) => any) | undefined;
|
|
59
|
-
"onUpdate:filters"?: ((value: {
|
|
60
|
-
tag: string[];
|
|
61
|
-
status: string[];
|
|
62
|
-
createdBy: string[];
|
|
63
|
-
}) => any) | undefined;
|
|
64
54
|
onRestoreColumns?: (() => any) | undefined;
|
|
65
55
|
"onCreate:template"?: (() => any) | undefined;
|
|
56
|
+
"onUpdate:filter-values"?: ((mf: Record<string, any>) => any) | undefined;
|
|
66
57
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
67
58
|
export default _default;
|
|
@@ -3,24 +3,25 @@ import { ColumnDef, PaginationState, SortingState } from '@tanstack/table-core';
|
|
|
3
3
|
import { PaginatedData } from '../../types/paginatedData';
|
|
4
4
|
import { GetCanvasesParams } from '../../types/canvases';
|
|
5
5
|
import { SharingHandler } from './CSavedCanvasesManagementShareCanvas.use';
|
|
6
|
-
import { CanvasRetrieve, CanvasCreateRequest, PatchedCanvasUpdateRequest, User } from '../../../types/openapi';
|
|
6
|
+
import { CanvasRetrieve, CanvasCreateRequest, PatchedCanvasUpdateRequest, User, MetadataTemplateFieldTypeEnum } from '../../../types/openapi';
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
8
|
slots: {
|
|
9
9
|
default?(_: {}): any;
|
|
10
10
|
};
|
|
11
11
|
refs: {
|
|
12
12
|
toolbarWrapper: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
isCreateHidden?: boolean;
|
|
16
|
-
isViewHidden?: boolean;
|
|
17
|
-
filters: {
|
|
18
|
-
tag: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
19
|
-
status: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
20
|
-
template: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
21
|
-
ownedBy: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
22
|
-
};
|
|
13
|
+
search: string;
|
|
14
|
+
filterValues: Record<string, any>;
|
|
23
15
|
tableColumnsSettings: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting[];
|
|
16
|
+
customFilterComponents: {
|
|
17
|
+
type: MetadataTemplateFieldTypeEnum;
|
|
18
|
+
name: string;
|
|
19
|
+
label: string;
|
|
20
|
+
options?: [];
|
|
21
|
+
}[];
|
|
22
|
+
isLoadingItems?: boolean;
|
|
23
|
+
hideCreate?: boolean;
|
|
24
|
+
hideView?: boolean;
|
|
24
25
|
}> & Readonly<{
|
|
25
26
|
onSearch?: ((s: string) => any) | undefined;
|
|
26
27
|
onSelect?: ((payload: {
|
|
@@ -31,13 +32,8 @@ declare function __VLS_template(): {
|
|
|
31
32
|
targetItemId: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting["id"];
|
|
32
33
|
itemId: string;
|
|
33
34
|
}) => any) | undefined;
|
|
34
|
-
"onUpdate:filters"?: ((value: {
|
|
35
|
-
tag: string[];
|
|
36
|
-
status: string[];
|
|
37
|
-
template: string[];
|
|
38
|
-
ownedBy: string[];
|
|
39
|
-
}) => any) | undefined;
|
|
40
35
|
onRestoreColumns?: (() => any) | undefined;
|
|
36
|
+
"onUpdate:filter-values"?: ((mf: Record<string, any>) => any) | undefined;
|
|
41
37
|
"onCreate:canvas"?: (() => any) | undefined;
|
|
42
38
|
onConfigureSmartFolders?: (() => any) | undefined;
|
|
43
39
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -50,13 +46,8 @@ declare function __VLS_template(): {
|
|
|
50
46
|
targetItemId: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting["id"];
|
|
51
47
|
itemId: string;
|
|
52
48
|
}) => any;
|
|
53
|
-
"update:filters": (value: {
|
|
54
|
-
tag: string[];
|
|
55
|
-
status: string[];
|
|
56
|
-
template: string[];
|
|
57
|
-
ownedBy: string[];
|
|
58
|
-
}) => any;
|
|
59
49
|
restoreColumns: () => any;
|
|
50
|
+
"update:filter-values": (mf: Record<string, any>) => any;
|
|
60
51
|
"create:canvas": () => any;
|
|
61
52
|
configureSmartFolders: () => any;
|
|
62
53
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -67,17 +58,18 @@ declare function __VLS_template(): {
|
|
|
67
58
|
M: {};
|
|
68
59
|
Defaults: {};
|
|
69
60
|
}, Readonly<{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
isCreateHidden?: boolean;
|
|
73
|
-
isViewHidden?: boolean;
|
|
74
|
-
filters: {
|
|
75
|
-
tag: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
76
|
-
status: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
77
|
-
template: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
78
|
-
ownedBy: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
79
|
-
};
|
|
61
|
+
search: string;
|
|
62
|
+
filterValues: Record<string, any>;
|
|
80
63
|
tableColumnsSettings: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting[];
|
|
64
|
+
customFilterComponents: {
|
|
65
|
+
type: MetadataTemplateFieldTypeEnum;
|
|
66
|
+
name: string;
|
|
67
|
+
label: string;
|
|
68
|
+
options?: [];
|
|
69
|
+
}[];
|
|
70
|
+
isLoadingItems?: boolean;
|
|
71
|
+
hideCreate?: boolean;
|
|
72
|
+
hideView?: boolean;
|
|
81
73
|
}> & Readonly<{
|
|
82
74
|
onSearch?: ((s: string) => any) | undefined;
|
|
83
75
|
onSelect?: ((payload: {
|
|
@@ -88,13 +80,8 @@ declare function __VLS_template(): {
|
|
|
88
80
|
targetItemId: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting["id"];
|
|
89
81
|
itemId: string;
|
|
90
82
|
}) => any) | undefined;
|
|
91
|
-
"onUpdate:filters"?: ((value: {
|
|
92
|
-
tag: string[];
|
|
93
|
-
status: string[];
|
|
94
|
-
template: string[];
|
|
95
|
-
ownedBy: string[];
|
|
96
|
-
}) => any) | undefined;
|
|
97
83
|
onRestoreColumns?: (() => any) | undefined;
|
|
84
|
+
"onUpdate:filter-values"?: ((mf: Record<string, any>) => any) | undefined;
|
|
98
85
|
"onCreate:canvas"?: (() => any) | undefined;
|
|
99
86
|
onConfigureSmartFolders?: (() => any) | undefined;
|
|
100
87
|
}>, {}, {}, {}, {}, {}> | null;
|
|
@@ -159,12 +146,12 @@ declare function __VLS_template(): {
|
|
|
159
146
|
data: {
|
|
160
147
|
[x: string]: any;
|
|
161
148
|
}[];
|
|
149
|
+
loading: boolean;
|
|
162
150
|
columns: ColumnDef<{
|
|
163
151
|
[x: string]: any;
|
|
164
152
|
}, any>[];
|
|
165
|
-
pageIndex: number;
|
|
166
|
-
loading: boolean;
|
|
167
153
|
pageSize: number;
|
|
154
|
+
pageIndex: number;
|
|
168
155
|
initialSorting: SortingState;
|
|
169
156
|
serverSide: boolean;
|
|
170
157
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -208,12 +195,12 @@ declare function __VLS_template(): {
|
|
|
208
195
|
data: {
|
|
209
196
|
[x: string]: any;
|
|
210
197
|
}[];
|
|
198
|
+
loading: boolean;
|
|
211
199
|
columns: ColumnDef<{
|
|
212
200
|
[x: string]: any;
|
|
213
201
|
}, any>[];
|
|
214
|
-
pageIndex: number;
|
|
215
|
-
loading: boolean;
|
|
216
202
|
pageSize: number;
|
|
203
|
+
pageIndex: number;
|
|
217
204
|
initialSorting: SortingState;
|
|
218
205
|
serverSide: boolean;
|
|
219
206
|
}> | null;
|
|
@@ -228,6 +215,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
228
215
|
}) => Promise<CanvasRetrieve>;
|
|
229
216
|
creator: (params: Omit<CanvasCreateRequest, "instance_id">) => Promise<CanvasRetrieve>;
|
|
230
217
|
fetcher: (params: GetCanvasesParams & {
|
|
218
|
+
filters?: Record<string, any>;
|
|
231
219
|
fields?: string;
|
|
232
220
|
}) => Promise<PaginatedData<CanvasRetrieve>>;
|
|
233
221
|
deleter: (id: CanvasRetrieve["id"]) => Promise<CanvasRetrieve>;
|
|
@@ -261,6 +249,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
261
249
|
}) => Promise<CanvasRetrieve>;
|
|
262
250
|
creator: (params: Omit<CanvasCreateRequest, "instance_id">) => Promise<CanvasRetrieve>;
|
|
263
251
|
fetcher: (params: GetCanvasesParams & {
|
|
252
|
+
filters?: Record<string, any>;
|
|
264
253
|
fields?: string;
|
|
265
254
|
}) => Promise<PaginatedData<CanvasRetrieve>>;
|
|
266
255
|
deleter: (id: CanvasRetrieve["id"]) => Promise<CanvasRetrieve>;
|
|
@@ -2,6 +2,7 @@ import { CanvasRetrieve, Canvas, SharedLink } from '../../../types/openapi';
|
|
|
2
2
|
export type SharingHandler = (canvasId: string) => Promise<SharedLink>;
|
|
3
3
|
declare const _default: (sharingHandler: SharingHandler, options?: {
|
|
4
4
|
useShortUrl?: boolean;
|
|
5
|
+
contextUpdater?: (id: CanvasRetrieve["id"]) => Promise<void>;
|
|
5
6
|
}) => {
|
|
6
7
|
copySharingUrlToClipboard: (canvas: CanvasRetrieve | Canvas) => Promise<{
|
|
7
8
|
copied: boolean;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { TableColumnSetting } from '../CTableColumnsSettings/CTableColumnsSettings.vue';
|
|
2
|
-
import {
|
|
2
|
+
import { MetadataTemplateFieldTypeEnum } from '../../../types/openapi';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isCreateHidden?: boolean;
|
|
7
|
-
isViewHidden?: boolean;
|
|
8
|
-
filters: {
|
|
9
|
-
tag: FilterCategory;
|
|
10
|
-
status: FilterCategory;
|
|
11
|
-
template: FilterCategory;
|
|
12
|
-
ownedBy: FilterCategory;
|
|
13
|
-
};
|
|
4
|
+
search: string;
|
|
5
|
+
filterValues: Record<string, any>;
|
|
14
6
|
tableColumnsSettings: TableColumnSetting[];
|
|
7
|
+
customFilterComponents: {
|
|
8
|
+
type: MetadataTemplateFieldTypeEnum;
|
|
9
|
+
name: string;
|
|
10
|
+
label: string;
|
|
11
|
+
options?: [];
|
|
12
|
+
}[];
|
|
13
|
+
isLoadingItems?: boolean;
|
|
14
|
+
hideCreate?: boolean;
|
|
15
|
+
hideView?: boolean;
|
|
15
16
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
17
|
search: (s: string) => any;
|
|
17
18
|
select: (payload: {
|
|
@@ -22,27 +23,23 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
23
|
targetItemId: TableColumnSetting["id"];
|
|
23
24
|
itemId: string;
|
|
24
25
|
}) => any;
|
|
25
|
-
"update:filters": (value: {
|
|
26
|
-
tag: string[];
|
|
27
|
-
status: string[];
|
|
28
|
-
template: string[];
|
|
29
|
-
ownedBy: string[];
|
|
30
|
-
}) => any;
|
|
31
26
|
restoreColumns: () => any;
|
|
27
|
+
"update:filter-values": (mf: Record<string, any>) => any;
|
|
32
28
|
"create:canvas": () => any;
|
|
33
29
|
configureSmartFolders: () => any;
|
|
34
30
|
}, string, import('vue').PublicProps, Readonly<{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
isCreateHidden?: boolean;
|
|
38
|
-
isViewHidden?: boolean;
|
|
39
|
-
filters: {
|
|
40
|
-
tag: FilterCategory;
|
|
41
|
-
status: FilterCategory;
|
|
42
|
-
template: FilterCategory;
|
|
43
|
-
ownedBy: FilterCategory;
|
|
44
|
-
};
|
|
31
|
+
search: string;
|
|
32
|
+
filterValues: Record<string, any>;
|
|
45
33
|
tableColumnsSettings: TableColumnSetting[];
|
|
34
|
+
customFilterComponents: {
|
|
35
|
+
type: MetadataTemplateFieldTypeEnum;
|
|
36
|
+
name: string;
|
|
37
|
+
label: string;
|
|
38
|
+
options?: [];
|
|
39
|
+
}[];
|
|
40
|
+
isLoadingItems?: boolean;
|
|
41
|
+
hideCreate?: boolean;
|
|
42
|
+
hideView?: boolean;
|
|
46
43
|
}> & Readonly<{
|
|
47
44
|
onSearch?: ((s: string) => any) | undefined;
|
|
48
45
|
onSelect?: ((payload: {
|
|
@@ -53,13 +50,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
53
50
|
targetItemId: TableColumnSetting["id"];
|
|
54
51
|
itemId: string;
|
|
55
52
|
}) => any) | undefined;
|
|
56
|
-
"onUpdate:filters"?: ((value: {
|
|
57
|
-
tag: string[];
|
|
58
|
-
status: string[];
|
|
59
|
-
template: string[];
|
|
60
|
-
ownedBy: string[];
|
|
61
|
-
}) => any) | undefined;
|
|
62
53
|
onRestoreColumns?: (() => any) | undefined;
|
|
54
|
+
"onUpdate:filter-values"?: ((mf: Record<string, any>) => any) | undefined;
|
|
63
55
|
"onCreate:canvas"?: (() => any) | undefined;
|
|
64
56
|
onConfigureSmartFolders?: (() => any) | undefined;
|
|
65
57
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -53,9 +53,6 @@ export type SmartFolderProperty = {
|
|
|
53
53
|
export interface SmartFolderConfig {
|
|
54
54
|
enabledSmartFolderProperties: SmartFolderProperty['name'][];
|
|
55
55
|
}
|
|
56
|
-
declare function toggleViewMode(): void;
|
|
57
|
-
declare function setSmartFoldersView(): void;
|
|
58
|
-
declare function setNormalView(): void;
|
|
59
56
|
export default function useSmartFolders(emit?: (event: 'open', ...args: any[]) => void): {
|
|
60
57
|
currentGroupingData: ComputedRef<{
|
|
61
58
|
readonly id: string;
|
|
@@ -101,6 +98,8 @@ export default function useSmartFolders(emit?: (event: 'open', ...args: any[]) =
|
|
|
101
98
|
subject: string;
|
|
102
99
|
}[];
|
|
103
100
|
folder_id?: (string | null) | undefined;
|
|
101
|
+
readonly search_rank: string;
|
|
102
|
+
readonly search_headline: string;
|
|
104
103
|
readonly owned_by: {
|
|
105
104
|
readonly id: number;
|
|
106
105
|
readonly name: string;
|
|
@@ -182,6 +181,8 @@ export default function useSmartFolders(emit?: (event: 'open', ...args: any[]) =
|
|
|
182
181
|
subject: string;
|
|
183
182
|
}[];
|
|
184
183
|
folder_id?: (string | null) | undefined;
|
|
184
|
+
readonly search_rank: string;
|
|
185
|
+
readonly search_headline: string;
|
|
185
186
|
readonly owned_by: {
|
|
186
187
|
readonly id: number;
|
|
187
188
|
readonly name: string;
|
|
@@ -243,6 +244,8 @@ export default function useSmartFolders(emit?: (event: 'open', ...args: any[]) =
|
|
|
243
244
|
subject: string;
|
|
244
245
|
}[];
|
|
245
246
|
folder_id?: (string | null) | undefined;
|
|
247
|
+
readonly search_rank: string;
|
|
248
|
+
readonly search_headline: string;
|
|
246
249
|
readonly owned_by: {
|
|
247
250
|
readonly id: number;
|
|
248
251
|
readonly name: string;
|
|
@@ -305,6 +308,8 @@ export default function useSmartFolders(emit?: (event: 'open', ...args: any[]) =
|
|
|
305
308
|
subject: string;
|
|
306
309
|
}[];
|
|
307
310
|
folder_id?: (string | null) | undefined;
|
|
311
|
+
readonly search_rank: string;
|
|
312
|
+
readonly search_headline: string;
|
|
308
313
|
readonly owned_by: {
|
|
309
314
|
readonly id: number;
|
|
310
315
|
readonly name: string;
|
|
@@ -360,9 +365,9 @@ export default function useSmartFolders(emit?: (event: 'open', ...args: any[]) =
|
|
|
360
365
|
saveConfiguration: (config: SmartFolderConfig) => Promise<void>;
|
|
361
366
|
loadConfiguration: () => Promise<void>;
|
|
362
367
|
createGroupings: (canvases: CanvasRetrieve[], properties: SmartFolderProperty[]) => Record<string, any>;
|
|
363
|
-
toggleViewMode:
|
|
364
|
-
setSmartFoldersView:
|
|
365
|
-
setNormalView:
|
|
368
|
+
toggleViewMode: () => void;
|
|
369
|
+
setSmartFoldersView: () => void;
|
|
370
|
+
setNormalView: () => void;
|
|
366
371
|
searchTerm: Ref<string, string>;
|
|
367
372
|
handleSearch: (term: string) => void;
|
|
368
373
|
};
|
|
@@ -111,12 +111,12 @@ declare function __VLS_template(): {
|
|
|
111
111
|
data: {
|
|
112
112
|
[x: string]: any;
|
|
113
113
|
}[];
|
|
114
|
+
loading: boolean;
|
|
114
115
|
columns: ColumnDef<{
|
|
115
116
|
[x: string]: any;
|
|
116
117
|
}, any>[];
|
|
117
|
-
pageIndex: number;
|
|
118
|
-
loading: boolean;
|
|
119
118
|
pageSize: number;
|
|
119
|
+
pageIndex: number;
|
|
120
120
|
initialSorting: SortingState;
|
|
121
121
|
serverSide: boolean;
|
|
122
122
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -160,12 +160,12 @@ declare function __VLS_template(): {
|
|
|
160
160
|
data: {
|
|
161
161
|
[x: string]: any;
|
|
162
162
|
}[];
|
|
163
|
+
loading: boolean;
|
|
163
164
|
columns: ColumnDef<{
|
|
164
165
|
[x: string]: any;
|
|
165
166
|
}, any>[];
|
|
166
|
-
pageIndex: number;
|
|
167
|
-
loading: boolean;
|
|
168
167
|
pageSize: number;
|
|
168
|
+
pageIndex: number;
|
|
169
169
|
initialSorting: SortingState;
|
|
170
170
|
serverSide: boolean;
|
|
171
171
|
}> | null;
|
|
@@ -198,8 +198,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
198
198
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
199
199
|
create: () => any;
|
|
200
200
|
edit: (canvas: CanvasRetrieve) => any;
|
|
201
|
-
open: (canvas: CanvasRetrieve, newTab?: boolean | undefined) => any;
|
|
202
201
|
details: (canvas: CanvasRetrieve) => any;
|
|
202
|
+
open: (canvas: CanvasRetrieve, newTab?: boolean | undefined) => any;
|
|
203
203
|
}, string, import('vue').PublicProps, Readonly<{
|
|
204
204
|
storageKey?: string;
|
|
205
205
|
myUserId?: CanvasRetrieve["created_by"]["id"];
|
|
@@ -223,8 +223,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
223
223
|
}> & Readonly<{
|
|
224
224
|
onCreate?: (() => any) | undefined;
|
|
225
225
|
onEdit?: ((canvas: CanvasRetrieve) => any) | undefined;
|
|
226
|
-
onOpen?: ((canvas: CanvasRetrieve, newTab?: boolean | undefined) => any) | undefined;
|
|
227
226
|
onDetails?: ((canvas: CanvasRetrieve) => any) | undefined;
|
|
227
|
+
onOpen?: ((canvas: CanvasRetrieve, newTab?: boolean | undefined) => any) | undefined;
|
|
228
228
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
229
229
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
230
230
|
export default _default;
|
|
@@ -10,6 +10,7 @@ interface ConfirmationOptions extends DialogOptions {
|
|
|
10
10
|
onConfirm?: () => Promise<boolean | void> | boolean | void;
|
|
11
11
|
onExit?: () => Promise<void> | void;
|
|
12
12
|
onCancel?: () => Promise<void> | void;
|
|
13
|
+
zIndex?: number;
|
|
13
14
|
}
|
|
14
15
|
declare const _default: () => {
|
|
15
16
|
dialog: import('naive-ui').DialogApi;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { MessageApiInjection } from 'naive-ui/es/message/src/MessageProvider';
|
|
2
2
|
import { UiToastRequest } from '../sdk/api/modules/ui/types.ui';
|
|
3
|
+
import { MessageOptions } from 'naive-ui/es/message/src/types';
|
|
3
4
|
export default function useToast(): {
|
|
4
5
|
initMessageProvider: () => void;
|
|
5
6
|
getMessageProvider: () => MessageApiInjection | null;
|
|
6
7
|
toast: ((data: UiToastRequest) => void) & {
|
|
7
|
-
info: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
8
|
-
error: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
9
|
-
warning: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
10
|
-
success: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
11
|
-
loading: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
8
|
+
info: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
9
|
+
error: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
10
|
+
warning: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
11
|
+
success: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
12
|
+
loading: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export declare const APPS_DB: {
|
|
2
2
|
readonly STORES: {
|
|
3
3
|
readonly SMART_FOLDERS: "smart-folders";
|
|
4
|
+
readonly BLOCK_OVERRIDES: "block-overrides";
|
|
4
5
|
};
|
|
5
6
|
readonly ENTRIES: {
|
|
6
7
|
readonly CONFIGURATION: "configuration";
|
|
8
|
+
readonly BLOCK_OVERRIDES: "block_overrides_by_block_id";
|
|
7
9
|
};
|
|
8
10
|
readonly GLOBAL_STORES: {};
|
|
9
11
|
readonly GLOBAL_ENTRIES: {};
|
package/lib/main.lib.d.ts
CHANGED
|
@@ -95,6 +95,9 @@ export { default as CChip } from './components/CChip/CChip.vue';
|
|
|
95
95
|
export { default as CSettingsEditor } from './components/CSettingsEditor/CSettingsEditor.vue';
|
|
96
96
|
export { default as CFilePanel } from './components/CFilePanel/CFilePanel.vue';
|
|
97
97
|
export { default as CanvasBuilderApp } from './apps/canvas-builder/App.vue';
|
|
98
|
+
export { default as CollectionSelectorApp } from './apps/collection-selector/App.vue';
|
|
99
|
+
export { default as CollectionPlayerApp } from './apps/collection-player/App.vue';
|
|
100
|
+
export { default as AgendaSelectorApp } from './apps/agenda-selector/App.vue';
|
|
98
101
|
export { type CanvasBuilderProps, CanvasBuilderMode } from './apps/canvas-builder/types/canvas';
|
|
99
102
|
export { type FontAwesomeType } from './apps/canvas-builder/types/font-awesome.types';
|
|
100
103
|
export { default as Browser } from './apps/browser/App.vue';
|
|
@@ -150,6 +153,8 @@ export * from './util/user';
|
|
|
150
153
|
export * from './util/userAgents';
|
|
151
154
|
export * from './util/usage-tracking.util';
|
|
152
155
|
export * from './util/pitcher-settings.util';
|
|
156
|
+
export * from './util/eval';
|
|
157
|
+
export * from './apps/collection-selector/utils/content-selector-adapter.util';
|
|
153
158
|
export * from './sdk/main';
|
|
154
159
|
export * from '../types/openapi';
|
|
155
160
|
export * from './components/CGlobalSearch/CGlobalSearch.types';
|
|
@@ -179,6 +184,11 @@ export * from './types/toast';
|
|
|
179
184
|
export * from './types/instanceSettings.types';
|
|
180
185
|
export * from './types/organizationSettings.types';
|
|
181
186
|
export * from './components/CConfigEditor/CConfigEditor.types';
|
|
187
|
+
export * from './types/selections';
|
|
188
|
+
export * from './apps/agenda-selector/types/agenda.type';
|
|
189
|
+
export * from './apps/collection-player/types/collection-player.type';
|
|
190
|
+
export * from './apps/collection-selector/types/collection-selector.type';
|
|
191
|
+
export * as collectionPlayer from './apps/collection-player/export';
|
|
182
192
|
export * from './constants/cdp.const';
|
|
183
193
|
export * from './constants/uploads.const';
|
|
184
194
|
export * from './constants/tables.const';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { PitcherEnv } from '../../../interfaces';
|
|
2
2
|
import { SelectedPage as ContentSelectorSelectedPage, SelectedFile as ContentSelectorSelectedFile } from '../../../../apps/content-selector/stores/app';
|
|
3
|
-
import { Selection as ContentSelectorSelection } from '../../../../
|
|
3
|
+
import { Selection as ContentSelectorSelection } from '../../../../types/selections';
|
|
4
4
|
import { Canvas } from '../../../../../types/openapi';
|
|
5
5
|
import { CanvasSelection } from '../../../../apps/canvas-selector/appTypes';
|
|
6
6
|
import { CLIENT_TYPE } from '../../../../constants/cdp.const';
|
|
7
7
|
import { LaunchDarklyEnv } from '../../../../types/launchDarkly.types';
|
|
8
|
+
import { CollectionSelectorProps } from '../../../../apps/collection-selector/types/collection-selector.type';
|
|
9
|
+
import { CollectionPlayer } from '../../../../apps/collection-player/types/collection-player.type';
|
|
10
|
+
import { Agenda, AgendaSelectorProps } from '../../../../apps/agenda-selector/types/agenda.type';
|
|
8
11
|
export declare const ADMIN_MESSAGE: "ADMIN_MESSAGE";
|
|
9
12
|
export declare const ADMIN_MESSAGE_TYPES: {
|
|
10
13
|
readonly ENV_CHANGED: "admin_env_changed";
|
|
@@ -27,6 +30,8 @@ export declare const ADMIN_API_METHOD_TYPES: {
|
|
|
27
30
|
readonly GET_INSTANCE_METADATA_TEMPLATES: "admin_get_instance_metadata_templates";
|
|
28
31
|
readonly TOAST: "admin_toast";
|
|
29
32
|
readonly UPDATE_CANVAS: "admin_update_canvas";
|
|
33
|
+
readonly SELECT_COLLECTION_PLAYER_CONTENT: "admin_select_collection_player_content";
|
|
34
|
+
readonly SELECT_AGENDA_CONTENT: "admin_select_agenda_content";
|
|
30
35
|
readonly SELECT_CONTENT: "admin_select_content";
|
|
31
36
|
readonly SELECT_CANVASES: "admin_select_canvases";
|
|
32
37
|
};
|
|
@@ -197,3 +202,17 @@ export type AdminEnv = {
|
|
|
197
202
|
crm_shape?: Record<string, any>;
|
|
198
203
|
state?: PitcherEnv['state'];
|
|
199
204
|
};
|
|
205
|
+
export type AdminSelectCollectionPlayerRequest = Pick<CollectionSelectorProps, 'initialData' | 'attachTo' | 'openSettings'>;
|
|
206
|
+
export type AdminSelectCollectionPlayerResponse = {
|
|
207
|
+
/** User action result */
|
|
208
|
+
user_action: 'cancelled' | 'selected';
|
|
209
|
+
/** Selected content */
|
|
210
|
+
content?: CollectionPlayer;
|
|
211
|
+
};
|
|
212
|
+
export type AdminSelectAgendaRequest = Pick<AgendaSelectorProps, 'initialAgenda' | 'attachTo'>;
|
|
213
|
+
export type AdminSelectAgendaResponse = {
|
|
214
|
+
/** User action result */
|
|
215
|
+
user_action: 'cancelled' | 'selected';
|
|
216
|
+
/** Selected content */
|
|
217
|
+
content?: Agenda;
|
|
218
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiSelectContentRequest, UiSelectContentResponse, UiOpenRequest, UiToastRequest, UiPreselectSfdcMeetingIdRequest, UiPreselectSfdcMeetingIdResponse } from './types.ui';
|
|
1
|
+
import { UiSelectAgendaRequest, UiSelectAgendaResponse, UiSelectCollectionPlayerRequest, UiSelectCollectionPlayerResponse, UiSelectContentRequest, UiSelectContentResponse, UiOpenRequest, UiToastRequest, UiPreselectSfdcMeetingIdRequest, UiPreselectSfdcMeetingIdResponse } from './types.ui';
|
|
2
2
|
/**
|
|
3
3
|
* @hidden
|
|
4
4
|
* @deprecated
|
|
@@ -54,3 +54,33 @@ export declare function toast(payload: UiToastRequest): Promise<void>;
|
|
|
54
54
|
* })
|
|
55
55
|
*/
|
|
56
56
|
export declare function preselectSfdcMeetingId(payload: UiPreselectSfdcMeetingIdRequest): Promise<UiPreselectSfdcMeetingIdResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Opens the collection player selector modal to allow the user to select collection player content and handle the outcome.
|
|
59
|
+
* ```
|
|
60
|
+
* const api = useApi() // or useUi() if you know that you 're in UI context
|
|
61
|
+
*
|
|
62
|
+
* uiApi.selectCollectionContent({
|
|
63
|
+
* // optional payload
|
|
64
|
+
* initialData: {
|
|
65
|
+
* name: 'test',
|
|
66
|
+
* groups: []
|
|
67
|
+
* }
|
|
68
|
+
* })
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare function selectCollectionContent(payload?: UiSelectCollectionPlayerRequest): Promise<UiSelectCollectionPlayerResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Opens the agenda selector modal to allow the user to select agenda content and handle the outcome.
|
|
74
|
+
* ```
|
|
75
|
+
* const api = useApi() // or useUi() if you know that you 're in UI context
|
|
76
|
+
*
|
|
77
|
+
* uiApi.selectAgendaContent({
|
|
78
|
+
* // optional payload
|
|
79
|
+
* initialAgenda: {
|
|
80
|
+
* name: 'test',
|
|
81
|
+
* groups: []
|
|
82
|
+
* }
|
|
83
|
+
* })
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export declare function selectAgendaContent(payload?: UiSelectAgendaRequest): Promise<UiSelectAgendaResponse>;
|
|
@@ -144,6 +144,8 @@ declare const _default: {
|
|
|
144
144
|
open(payload: import('./types.ui').UiOpenRequest): Promise<void>;
|
|
145
145
|
toast(payload: import('./types.ui').UiToastRequest): Promise<void>;
|
|
146
146
|
preselectSfdcMeetingId(payload: import('./types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./types.ui').UiPreselectSfdcMeetingIdResponse>;
|
|
147
|
+
selectCollectionContent(payload?: import('./types.ui').UiSelectCollectionPlayerRequest): Promise<import('./types.ui').UiSelectCollectionPlayerResponse>;
|
|
148
|
+
selectAgendaContent(payload?: import('./types.ui').UiSelectAgendaRequest): Promise<import('./types.ui').UiSelectAgendaResponse>;
|
|
147
149
|
on: typeof on;
|
|
148
150
|
onMeetingCanceled: typeof onMeetingCanceled;
|
|
149
151
|
onCanvasUpdated: typeof onCanvasUpdated;
|