@pitcher/js-api 1.26.0-beta.1 → 1.26.0-beta.2
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 +28 -5
- 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/apps/assets-manager/App.vue.d.ts +75 -0
- package/lib/apps/assets-manager/AssetsTab.vue.d.ts +22 -0
- package/lib/apps/assets-manager/components/AssetGridItem.vue.d.ts +16 -0
- package/lib/apps/browser/App.vue.d.ts +3 -1
- package/lib/apps/browser/appTypes.d.ts +4 -0
- package/lib/apps/browser/components/UploadFilesModal/UploadFilesModal.vue.d.ts +9 -5
- package/lib/apps/browser/stores/api.d.ts +29 -11
- package/lib/apps/browser/stores/app.d.ts +3 -0
- package/lib/apps/browser/stores/upload.d.ts +16 -20
- package/lib/apps/browser/types/actionKeys.d.ts +22 -0
- package/lib/apps/canvas-builder/App.vue.d.ts +302 -261
- package/lib/apps/canvas-builder/components/container/AnnotationMenu/AnnotationMenu.vue.d.ts +60 -0
- package/lib/apps/canvas-builder/components/container/CanvasContent/AnnotationContent.vue.d.ts +8 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +11 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +7 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/{EditableComponentRevamp.vue.d.ts → EditableComponentContent.vue.d.ts} +13 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/ResizeHandles.vue.d.ts +4 -0
- package/lib/apps/canvas-builder/components/container/PopupApps/AdaptivePopupAppsButtons.vue.d.ts +17 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.utils.d.ts +16 -0
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.raw.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.settings.vue.d.ts +9 -5
- package/lib/apps/canvas-builder/components/ui/Html/CAiHtmlActions.vue.d.ts +23 -0
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.raw.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/Root/Root.settings.vue.d.ts +9 -5
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionItemModal.vue.d.ts +6 -2
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +7 -7
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorWithDragAndDrop.vue.d.ts +154 -0
- package/lib/apps/canvas-builder/composables/useAnnotation.d.ts +29 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +631 -29
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +12 -16
- package/lib/apps/canvas-builder/composables/useCanvasCompletionWizard.d.ts +3 -1
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +6 -4
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +2 -0
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +18 -4
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -1
- package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +1 -2
- package/lib/apps/canvas-builder/composables/useCrmShapeWithSectionContext.d.ts +5 -0
- package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +1 -0
- package/lib/apps/canvas-builder/composables/usePopupApps.d.ts +0 -4
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useScribbleChild.d.ts +98 -0
- package/lib/apps/canvas-builder/composables/useScribbleToolbar.d.ts +11 -0
- package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +1 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +22 -0
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +1 -0
- package/lib/apps/canvas-builder/util/iframe.util.d.ts +16 -0
- package/lib/apps/canvas-selector/components/CanvasSelectionArea.vue.d.ts +171 -1
- package/lib/apps/canvas-selector/components/Sections.vue.d.ts +160 -1
- package/lib/apps/canvas-selector/stores/app.d.ts +14 -14
- package/lib/apps/collection-player/App.vue.d.ts +1 -0
- package/lib/apps/collection-player/components/ImageWithAnnotations.vue.d.ts +5 -1
- package/lib/apps/collection-player/stores/app.store.d.ts +3 -0
- package/lib/apps/collection-player/types/collection-player.type.d.ts +17 -0
- package/lib/apps/collection-selector/App.vue.d.ts +7 -7
- package/lib/apps/collection-selector/stores/app.store.d.ts +4 -2
- package/lib/apps/collection-selector/utils/content-selector-adapter.util.d.ts +16 -7
- package/lib/apps/collection-selector/utils/data.util.d.ts +4 -4
- package/lib/apps/content-selector/App.vue.d.ts +2 -0
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts +1 -0
- package/lib/apps/content-selector/components/Content.vue.d.ts +74 -1
- package/lib/apps/content-selector/components/ui/GridItem.vue.d.ts +12 -2
- package/lib/apps/content-selector/stores/app.d.ts +16 -1
- package/lib/apps/ppt-conversion-selector/stores/app.store.d.ts +4 -1
- package/lib/apps/ppt-conversion-selector/utils/thumbnail.util.d.ts +1 -0
- package/lib/components/CAlgoliaSearch/CAlgoliaSearch.vue.d.ts +15 -0
- package/lib/components/CCarousel/CCarousel.vue.d.ts +20 -0
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +3 -0
- package/lib/components/CConfigEditor/CConfigEditor.vue.d.ts +5 -3
- package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +2 -0
- package/lib/components/CContactSelector/CContactSelector.vue.d.ts +3 -0
- package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +31 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +1 -9
- package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +0 -5
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.use.d.ts +2 -6
- package/lib/components/CFileViewer/pdf/CFileViewerPageDrawer.pdf.vue.d.ts +9 -5
- package/lib/components/CImage/CImage.vue.d.ts +11 -0
- package/lib/components/CKnockNotificationsAppWrapper/CKnockNotificationsAppWrapper.vue.d.ts +1 -1
- package/lib/components/CPillSelect/CPillSelect.vue.d.ts +14 -0
- package/lib/components/CPopularityAndEngagementIcons/CPopularityAndEngagementExtended.vue.d.ts +1 -1
- package/lib/components/CProcessingOverlay/CProcessingOverlay.vue.d.ts +19 -0
- package/lib/components/CRenameModal/CRenameModal.vue.d.ts +28 -0
- package/lib/components/CRichTextEditor/components/CDynamicValueTreeSelect.vue.d.ts +2 -0
- package/lib/components/CSectionSelectionActions/CSectionSelectionActions.vue.d.ts +19 -0
- package/lib/components/CSectionSmartFolders/CSectionSmartFolders.vue.d.ts +27 -1
- package/lib/components/CSectionSmartFolders/CSectionSmartFoldersToolbar.vue.d.ts +11 -0
- package/lib/components/CSlideViewer/CSlideViewer.pdfjs.vue.d.ts +18 -0
- package/lib/components/CSlideViewer/CSlideViewer.pspdfkit.vue.d.ts +14 -0
- package/lib/components/CSlideViewer/CSlideViewer.vue.d.ts +2 -7
- package/lib/components/CUserMenu/CUserMenu.vue.d.ts +1 -0
- package/lib/components/assignedCanvases/CAssignedCanvasesManagement.vue.d.ts +438 -0
- package/lib/components/assignedCanvases/CAssignedCanvasesManagementToolbar.vue.d.ts +41 -0
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +44 -60
- package/lib/components/canvas-blocks/CBlockManagementToolbar.vue.d.ts +13 -19
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +17 -17
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +2 -2
- package/lib/components/filters/CSearchFilter.vue.d.ts +3 -1
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +7 -7
- package/lib/components/savedCanvases/CSavedCanvasesManagementActionsCell.vue.d.ts +2 -2
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +2 -0
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +12 -8
- package/lib/components/sections/CSectionManagement.vue.d.ts +24 -0
- package/lib/components/sections/CSectionManagementToolbar.vue.d.ts +7 -0
- package/lib/components/themes/CThemeManagement.vue.d.ts +96 -10
- package/lib/components/themes/CThemeManagementToolbar.vue.d.ts +31 -3
- package/lib/composables/appsDb.use.d.ts +2 -2
- package/lib/composables/bulkActions.use.d.ts +2 -2
- package/lib/composables/useBroadcastRouteChange.d.ts +4 -0
- package/lib/composables/useCanvasStandardFilters.d.ts +35 -0
- package/lib/composables/useDeleteUsedCanvasesConfirmation.d.ts +23 -0
- package/lib/composables/useFileDisplayHelpers.d.ts +6 -2
- package/lib/composables/useFileInfo.d.ts +30 -0
- package/lib/composables/useFilterSuggestions.d.ts +8 -16
- package/lib/composables/useFolderNameDescription.d.ts +25 -0
- package/lib/composables/useLegacyCollectionFileLoader.d.ts +31 -0
- package/lib/composables/useMetadataSearch.d.ts +1 -0
- package/lib/composables/usePolling.d.ts +23 -0
- package/lib/composables/useWindowEvents.d.ts +1 -0
- package/lib/constants/cdp.const.d.ts +2 -0
- package/lib/constants/tables.const.d.ts +1 -1
- package/lib/custom-naive-locales/it.d.ts +124 -0
- package/lib/custom-naive-locales/ja.d.ts +124 -0
- package/lib/custom-naive-locales/nl.d.ts +124 -0
- package/lib/custom-naive-locales/pt.d.ts +124 -0
- package/lib/custom-naive-locales/th.d.ts +124 -0
- package/lib/custom-naive-locales/zh.d.ts +124 -0
- package/lib/main.lib.d.ts +16 -3
- package/lib/modules/algolia-instantsearch.d.ts +1 -0
- package/lib/sdk/api/HighLevelApi.d.ts +3 -2
- package/lib/sdk/api/modules/dsr/files.dsr.d.ts +12 -0
- package/lib/sdk/api/modules/dsr/index.d.ts +3 -0
- package/lib/sdk/api/modules/dsr/types.dsr.d.ts +1 -0
- package/lib/sdk/api/modules/files.d.ts +2 -2
- package/lib/sdk/api/modules/ui/types.ui.d.ts +2 -0
- package/lib/sdk/api/modules/webView.d.ts +2 -1
- package/lib/sdk/interfaces.d.ts +46 -2
- package/lib/sdk/main.d.ts +15 -6
- package/lib/sdk/payload.types.d.ts +17 -0
- package/lib/stores/sectionSmartFolderStore.d.ts +2 -0
- package/lib/types/files.d.ts +2 -0
- package/lib/types/i18n.types.d.ts +1 -1
- package/lib/types/instanceSettings.types.d.ts +6 -1
- package/lib/types/launchDarkly.types.d.ts +2 -4
- package/lib/types/organizationSettings.types.d.ts +23 -0
- package/lib/types/sfdc.d.ts +1 -0
- package/lib/util/soql.util.d.ts +2 -0
- package/lib/util/storage.util.d.ts +2 -0
- package/lib/util/string.d.ts +1 -1
- package/lib/util/toCssClassKey.d.ts +1 -0
- package/lib/utils/defaultThumbnail.util.d.ts +3 -0
- package/lib/utils/iframeInitialize.d.ts +12 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +7 -0
- package/types/openapi/models/Canvas.d.ts +1 -1
- package/types/openapi/models/CanvasCreate.d.ts +2 -2
- package/types/openapi/models/CanvasCreateRequest.d.ts +2 -2
- package/types/openapi/models/CanvasRecommendedFile.d.ts +0 -2
- package/types/openapi/models/CanvasRetrieve.d.ts +2 -2
- package/types/openapi/models/CanvasSection.d.ts +1 -0
- package/types/openapi/models/CanvasUpdate.d.ts +2 -2
- package/types/openapi/models/CanvasUpdateRequest.d.ts +2 -2
- package/types/openapi/models/ContentDistributionGroup.d.ts +1 -0
- package/types/openapi/models/ContentDistributionGroupCreate.d.ts +1 -0
- package/types/openapi/models/DeletedCanvas.d.ts +1 -1
- package/types/openapi/models/DeletedContentDistributionGroup.d.ts +1 -0
- package/types/openapi/models/DeletedFile.d.ts +0 -2
- package/types/openapi/models/DeletedFolder.d.ts +3 -0
- package/types/openapi/models/DeletedInstance.d.ts +2 -0
- package/types/openapi/models/DeletedRegion.d.ts +12 -0
- package/types/openapi/models/FavoriteFolder.d.ts +3 -0
- package/types/openapi/models/FavoriteFolderRequest.d.ts +3 -0
- package/types/openapi/models/File.d.ts +0 -2
- package/types/openapi/models/FileCreate.d.ts +0 -2
- package/types/openapi/models/FileCreateRequest.d.ts +0 -1
- package/types/openapi/models/FileRetrieve.d.ts +0 -2
- package/types/openapi/models/FileUpdate.d.ts +0 -2
- package/types/openapi/models/FileUpdateRequest.d.ts +0 -1
- package/types/openapi/models/Folder.d.ts +3 -0
- package/types/openapi/models/FolderCreate.d.ts +2 -1
- package/types/openapi/models/FolderFolder.d.ts +5 -0
- package/types/openapi/models/FolderRetrieve.d.ts +5 -1
- package/types/openapi/models/FolderUpdate.d.ts +2 -1
- package/types/openapi/models/Instance.d.ts +2 -0
- package/types/openapi/models/InstanceMembership.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipCreate.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipCreateRequest.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipRequest.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +0 -2
- package/types/openapi/models/InstanceRequest.d.ts +1 -0
- package/types/openapi/models/InstanceUpdate.d.ts +2 -0
- package/types/openapi/models/InstanceUpdateRequest.d.ts +1 -0
- package/types/openapi/models/MiniRegion.d.ts +4 -0
- package/types/openapi/models/MiniRegionRequest.d.ts +3 -0
- package/types/openapi/models/OrganizationAnalyticsInstance.d.ts +2 -0
- package/types/openapi/models/OrganizationAnalyticsTop3Instances.d.ts +2 -0
- package/types/openapi/models/PaginatedRegionList.d.ts +7 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +2 -2
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +0 -1
- package/types/openapi/models/PatchedInstanceMembershipRequest.d.ts +4 -0
- package/types/openapi/models/PatchedInstanceUpdateRequest.d.ts +1 -0
- package/types/openapi/models/PatchedRegionRequest.d.ts +3 -0
- package/types/openapi/models/Region.d.ts +10 -0
- package/types/openapi/models/RegionRequest.d.ts +3 -0
- package/types/openapi/models/SharedLinkCanvas.d.ts +1 -1
- package/types/openapi/models/SharedLinkCanvasRequest.d.ts +1 -1
- package/types/openapi/models/User.d.ts +1 -0
- package/lib/components/CFileViewer/pdf/CFileViewer.pageThumbFavorite.pdf.use.d.ts +0 -10
- package/lib/components/CImage/CBrokenImage.vue.d.ts +0 -10
- package/lib/directives/usage-track.directive.d.ts +0 -10
- package/lib/util/usage-tracking.util.d.ts +0 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SelectedFile, SelectedPage } from '../../content-selector/stores/app';
|
|
2
2
|
import { Selection } from '../../../types/selections';
|
|
3
3
|
import { FileRetrieve } from '../../../../types/openapi';
|
|
4
|
-
import {
|
|
4
|
+
import { ContentGridProps } from '../../canvas-builder/types/canvas';
|
|
5
|
+
import { CollectionFile, CollectionPage, CollectionGroup, CollectionPlayerV2, CollectionSlideV2 } from '../../collection-player/types/collection-player.type';
|
|
5
6
|
import { I18nTranslate } from '../../../types/common';
|
|
6
7
|
export declare function parsePptxFileToCollectionPlayer(t: I18nTranslate, _file: FileRetrieve): {
|
|
7
8
|
name: string;
|
|
@@ -38,13 +39,21 @@ export declare function parseContentSelectorToCollectionPlayerSlides({ selectedI
|
|
|
38
39
|
selectedItems: (SelectedFile | SelectedPage)[];
|
|
39
40
|
filesById: Record<FileRetrieve['id'], FileRetrieve>;
|
|
40
41
|
}): (CollectionPage | CollectionFile)[];
|
|
41
|
-
export declare function parseCollectionPlayerSlidesToContentSelector(slides?: CollectionGroup['slides']): Selection[];
|
|
42
|
+
export declare function parseCollectionPlayerSlidesToContentSelector(slides?: CollectionGroup['slides'] | CollectionSlideV2[]): Selection[];
|
|
42
43
|
/**
|
|
43
|
-
* Transform an array of file data into
|
|
44
|
-
*
|
|
44
|
+
* Transform an array of file data into CollectionPlayerV2 format
|
|
45
|
+
* Returns minimal data structure with only file_id references
|
|
46
|
+
* Each file gets its own group to maintain proper structure for PPTX sections
|
|
45
47
|
* @param t - Translation function
|
|
46
|
-
* @param filesData - Array of file data with optional selectedPages
|
|
48
|
+
* @param filesData - Array of file data with id, name, and optional selectedPages
|
|
47
49
|
* @param name - Name for the collection (defaults to 'Collection')
|
|
48
|
-
* @returns Transformed
|
|
50
|
+
* @returns Transformed CollectionPlayerV2 data with file_id references
|
|
49
51
|
*/
|
|
50
|
-
export declare function transformFilesToCollectionPlayer(t: I18nTranslate, filesData: any[], name?: string):
|
|
52
|
+
export declare function transformFilesToCollectionPlayer(t: I18nTranslate, filesData: any[], name?: string): CollectionPlayerV2;
|
|
53
|
+
/**
|
|
54
|
+
* Transform an array of file data into ContentGrid format
|
|
55
|
+
* Handles the new data structure with file references and selectedPages arrays
|
|
56
|
+
* @param filesData - Array of file data with id, name, and optional selectedPages
|
|
57
|
+
* @returns Transformed ContentGridProps data
|
|
58
|
+
*/
|
|
59
|
+
export declare function transformFilesToContentGrid(filesData: any[]): ContentGridProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I18nTranslate } from '../../../types/common';
|
|
2
|
-
import { CollectionFile, CollectionPage, CollectionPlayer } from '../../collection-player/types/collection-player.type';
|
|
2
|
+
import { CollectionFile, CollectionPage, CollectionPlayer, CollectionPlayerV2 } from '../../collection-player/types/collection-player.type';
|
|
3
3
|
export declare const getDefaultNewGroupName: (t: I18nTranslate) => string;
|
|
4
4
|
export declare const getDefaultGroupName: (t: I18nTranslate) => string;
|
|
5
5
|
export declare const getDefaultCollectionName: (t: I18nTranslate) => string;
|
|
@@ -18,6 +18,6 @@ export declare const generateNewCollection: (t: I18nTranslate) => {
|
|
|
18
18
|
};
|
|
19
19
|
export declare const generateNewCollectionSlide: (payload: Pick<CollectionPage, "file" | "slide">) => CollectionPage;
|
|
20
20
|
export declare const generateNewCollectionFile: (file: CollectionFile["file"]) => CollectionFile;
|
|
21
|
-
export declare const getUniqueFilesCount: (data: CollectionPlayer) => number;
|
|
22
|
-
export declare const getGroupsCount: (data: CollectionPlayer) => number;
|
|
23
|
-
export declare const getSlidesCount: (data: CollectionPlayer) => number;
|
|
21
|
+
export declare const getUniqueFilesCount: (data: CollectionPlayer | CollectionPlayerV2) => number;
|
|
22
|
+
export declare const getGroupsCount: (data: CollectionPlayer | CollectionPlayerV2) => number;
|
|
23
|
+
export declare const getSlidesCount: (data: CollectionPlayer | CollectionPlayerV2) => number;
|
|
@@ -2,11 +2,13 @@ import { ContentSelectorSelectedItem } from './stores/app';
|
|
|
2
2
|
import { AppProps } from './appTypes';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<AppProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
cancel: () => any;
|
|
5
|
+
"asset-deleted": (id: string) => any;
|
|
5
6
|
"primary-action": (p: {
|
|
6
7
|
selectedItems: ContentSelectorSelectedItem[];
|
|
7
8
|
}) => any;
|
|
8
9
|
}, string, import('vue').PublicProps, Readonly<AppProps> & Readonly<{
|
|
9
10
|
onCancel?: (() => any) | undefined;
|
|
11
|
+
"onAsset-deleted"?: ((id: string) => any) | undefined;
|
|
10
12
|
"onPrimary-action"?: ((p: {
|
|
11
13
|
selectedItems: ContentSelectorSelectedItem[];
|
|
12
14
|
}) => any) | undefined;
|
package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ type __VLS_Props = {
|
|
|
16
16
|
selectedItems: (SelectedFile | SelectedFolder)[];
|
|
17
17
|
isDisabled?: boolean;
|
|
18
18
|
metadata: Record<string, any>;
|
|
19
|
+
hideFilesCount?: boolean;
|
|
19
20
|
};
|
|
20
21
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
22
|
"open-folder": (item: FolderFile) => any;
|
|
@@ -1,2 +1,75 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
sectionPanelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
readonly span: {
|
|
4
|
+
readonly type: import('vue').PropType<string | number>;
|
|
5
|
+
readonly default: 1;
|
|
6
|
+
};
|
|
7
|
+
readonly offset: {
|
|
8
|
+
readonly type: import('vue').PropType<string | number>;
|
|
9
|
+
readonly default: 0;
|
|
10
|
+
};
|
|
11
|
+
readonly suffix: BooleanConstructor;
|
|
12
|
+
readonly privateOffset: NumberConstructor;
|
|
13
|
+
readonly privateSpan: NumberConstructor;
|
|
14
|
+
readonly privateColStart: NumberConstructor;
|
|
15
|
+
readonly privateShow: {
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly default: true;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
overflow: import('vue').Ref<boolean, boolean>;
|
|
21
|
+
itemStyle: import('vue').Ref<string | import('vue').CSSProperties | undefined, string | import('vue').CSSProperties | undefined>;
|
|
22
|
+
layoutShiftDisabled: import('vue').Ref<boolean, boolean>;
|
|
23
|
+
mergedXGap: import('vue').ComputedRef<string>;
|
|
24
|
+
deriveStyle: () => {
|
|
25
|
+
display: string;
|
|
26
|
+
gridColumn: string;
|
|
27
|
+
marginLeft: string;
|
|
28
|
+
};
|
|
29
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
30
|
+
readonly span: string | number;
|
|
31
|
+
readonly offset: string | number;
|
|
32
|
+
readonly suffix: boolean;
|
|
33
|
+
readonly privateShow: boolean;
|
|
34
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
35
|
+
P: {};
|
|
36
|
+
B: {};
|
|
37
|
+
D: {};
|
|
38
|
+
C: {};
|
|
39
|
+
M: {};
|
|
40
|
+
Defaults: {};
|
|
41
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
readonly span: {
|
|
43
|
+
readonly type: import('vue').PropType<string | number>;
|
|
44
|
+
readonly default: 1;
|
|
45
|
+
};
|
|
46
|
+
readonly offset: {
|
|
47
|
+
readonly type: import('vue').PropType<string | number>;
|
|
48
|
+
readonly default: 0;
|
|
49
|
+
};
|
|
50
|
+
readonly suffix: BooleanConstructor;
|
|
51
|
+
readonly privateOffset: NumberConstructor;
|
|
52
|
+
readonly privateSpan: NumberConstructor;
|
|
53
|
+
readonly privateColStart: NumberConstructor;
|
|
54
|
+
readonly privateShow: {
|
|
55
|
+
readonly type: BooleanConstructor;
|
|
56
|
+
readonly default: true;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{}>, {
|
|
59
|
+
overflow: import('vue').Ref<boolean, boolean>;
|
|
60
|
+
itemStyle: import('vue').Ref<string | import('vue').CSSProperties | undefined, string | import('vue').CSSProperties | undefined>;
|
|
61
|
+
layoutShiftDisabled: import('vue').Ref<boolean, boolean>;
|
|
62
|
+
mergedXGap: import('vue').ComputedRef<string>;
|
|
63
|
+
deriveStyle: () => {
|
|
64
|
+
display: string;
|
|
65
|
+
gridColumn: string;
|
|
66
|
+
marginLeft: string;
|
|
67
|
+
};
|
|
68
|
+
}, {}, {}, {}, {
|
|
69
|
+
readonly span: string | number;
|
|
70
|
+
readonly offset: string | number;
|
|
71
|
+
readonly suffix: boolean;
|
|
72
|
+
readonly privateShow: boolean;
|
|
73
|
+
}> | null;
|
|
74
|
+
}, HTMLDivElement>;
|
|
2
75
|
export default _default;
|
|
@@ -13,21 +13,29 @@ type __VLS_Props = {
|
|
|
13
13
|
metadata?: Record<string, any>;
|
|
14
14
|
page_index?: number;
|
|
15
15
|
permissions?: File['permissions'];
|
|
16
|
-
id
|
|
16
|
+
id: string;
|
|
17
17
|
content_extension?: string | null;
|
|
18
18
|
created_by_user_id?: User['id'];
|
|
19
19
|
};
|
|
20
20
|
isSelected?: boolean;
|
|
21
21
|
isDeleteDisabled?: boolean;
|
|
22
22
|
deleteDisabledTooltip?: string;
|
|
23
|
+
movable?: boolean;
|
|
24
|
+
selectedIds?: (number | string)[];
|
|
23
25
|
};
|
|
24
26
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
move: (...args: any[]) => void;
|
|
28
|
+
dragOver: (...args: any[]) => void;
|
|
29
|
+
dragging: (...args: any[]) => void;
|
|
25
30
|
itemSelected: (...args: any[]) => void;
|
|
26
31
|
itemDeselected: (...args: any[]) => void;
|
|
27
32
|
itemClicked: (...args: any[]) => void;
|
|
28
33
|
itemExpanded: (...args: any[]) => void;
|
|
29
34
|
itemDeleted: (...args: any[]) => void;
|
|
30
35
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
+
onMove?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onDragOver?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onDragging?: ((...args: any[]) => any) | undefined;
|
|
31
39
|
onItemSelected?: ((...args: any[]) => any) | undefined;
|
|
32
40
|
onItemDeselected?: ((...args: any[]) => any) | undefined;
|
|
33
41
|
onItemClicked?: ((...args: any[]) => any) | undefined;
|
|
@@ -48,10 +56,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
48
56
|
metadata?: Record<string, any>;
|
|
49
57
|
page_index?: number;
|
|
50
58
|
permissions?: File["permissions"];
|
|
51
|
-
id
|
|
59
|
+
id: string;
|
|
52
60
|
content_extension?: string | null;
|
|
53
61
|
created_by_user_id?: User["id"];
|
|
54
62
|
};
|
|
63
|
+
selectedIds: (number | string)[];
|
|
64
|
+
movable: boolean;
|
|
55
65
|
isDeleteDisabled: boolean;
|
|
56
66
|
deleteDisabledTooltip: string;
|
|
57
67
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -4,6 +4,7 @@ import { RecentFile } from '../../../types/recentFiles.types';
|
|
|
4
4
|
import { ApiStore } from './api';
|
|
5
5
|
export type AppName = 'admin' | 'impact';
|
|
6
6
|
export type SelectorType = 'content' | 'assets' | 'external_links' | 'ai_images' | 'pexels_images' | 'theme' | `multimedia-selector-${string}`;
|
|
7
|
+
export type SortOption = 'nameAsc' | 'nameDesc' | 'modifiedAsc' | 'modifiedDesc';
|
|
7
8
|
export type SelectedPage = {
|
|
8
9
|
id: string;
|
|
9
10
|
name?: string;
|
|
@@ -77,8 +78,11 @@ export type AppStateProperties = {
|
|
|
77
78
|
search: Ref<string>;
|
|
78
79
|
searchMetadataFilters: Ref<Record<string, any>>;
|
|
79
80
|
isLocalSearch: Ref<boolean>;
|
|
81
|
+
selectedSortOption: Ref<SortOption>;
|
|
80
82
|
selectedItems: Ref<ContentSelectorSelectedItem[]>;
|
|
83
|
+
addedItems: Ref<ContentSelectorSelectedItem[]>;
|
|
81
84
|
selectedSection: Ref<BrowserSectionType>;
|
|
85
|
+
isDragNDropEnabled: ComputedRef<boolean>;
|
|
82
86
|
selectedFiles: ComputedRef<SelectedFile[]>;
|
|
83
87
|
selectedPages: ComputedRef<SelectedPage[]>;
|
|
84
88
|
selectedAssets: ComputedRef<SelectedAsset[]>;
|
|
@@ -93,6 +97,8 @@ export type AppStateProperties = {
|
|
|
93
97
|
activeFolderFolders: ComputedRef<FolderFolder[]>;
|
|
94
98
|
activeFolderFiles: ComputedRef<FolderFile[]>;
|
|
95
99
|
isAdmin: ComputedRef<boolean>;
|
|
100
|
+
allowMultimediaSelectorApp: Ref<boolean>;
|
|
101
|
+
sectionPanelRef: Ref<HTMLElement | null>;
|
|
96
102
|
activeFolder: Ref<FolderRetrieve | null>;
|
|
97
103
|
activeFile: Ref<FileRetrieve | null>;
|
|
98
104
|
disableNoSharable: Ref<boolean>;
|
|
@@ -100,14 +106,22 @@ export type AppStateProperties = {
|
|
|
100
106
|
recent: Ref<RecentFile[]>;
|
|
101
107
|
favorites: Ref<Record<MiniPage['id'] | File['id'] | Folder['id'], Favorite>>;
|
|
102
108
|
filteredItems: Ref<FolderItemWithFolderId[]>;
|
|
109
|
+
allowedSelectorTypes: Ref<SelectorType[]>;
|
|
103
110
|
};
|
|
104
111
|
export type AppStore = AppStateProperties & {
|
|
105
112
|
getThumbnailUrl: (file: Partial<File>) => string | null | undefined;
|
|
106
113
|
setAppName: (appName: AppName) => void;
|
|
107
114
|
resetSelectedItems: () => void;
|
|
108
|
-
|
|
115
|
+
resetAddedItems: () => void;
|
|
116
|
+
setItems: (variable: 'added' | 'selected', items: ContentSelectorSelectedItem[], maxSelections?: number) => Promise<void>;
|
|
109
117
|
setActiveSelectorType: (s?: SelectorType) => void;
|
|
118
|
+
setAllowedSelectorTypes: (s: SelectorType[]) => void;
|
|
110
119
|
selectItem: (i: ContentSelectorSelectedItem) => void;
|
|
120
|
+
handleItemClick: (item: ContentSelectorSelectedItem) => void;
|
|
121
|
+
addItems: (position?: 'top' | 'bottom' | number) => void;
|
|
122
|
+
deleteItems: () => void;
|
|
123
|
+
deleteItem: (item: ContentSelectorSelectedItem) => void;
|
|
124
|
+
setSectionPanelRef: (element: HTMLElement | null) => void;
|
|
111
125
|
selectAllFiles: (selection: SelectedFile[]) => void;
|
|
112
126
|
setDisableNoSharable: (disable: boolean) => void;
|
|
113
127
|
setDisableNoPptxData: (disable: boolean) => void;
|
|
@@ -123,6 +137,7 @@ export type AppStore = AppStateProperties & {
|
|
|
123
137
|
setSearchQuery: (searchQuery: string) => void;
|
|
124
138
|
setAllowedOriginalExtensions: (extensions: string[]) => void;
|
|
125
139
|
setSearchMetadataFilters: (filters: Record<string, any>) => void;
|
|
140
|
+
setSortOption: (sortOption: SortOption) => void;
|
|
126
141
|
setFavorites: (favorites: Record<MiniPage['id'] | File['id'] | Folder['id'], Favorite>) => void;
|
|
127
142
|
setRecentFiles: (recentFiles: RecentFile[]) => void;
|
|
128
143
|
setFilteredItems: (filteredItems: FolderItemWithFolderId[]) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmitFn, Ref } from 'vue';
|
|
1
|
+
import { ComputedRef, EmitFn, Ref } from 'vue';
|
|
2
2
|
import { default as useConfirmation } from '../../../composables/useConfirmation';
|
|
3
3
|
import { MetadataFilterRequest, UpsertPptxSlideImagesRequestPayload, UpsertPptxSlideImagesRequestParams, UpsertPptxSlideImagesResponse } from '../../../types/core';
|
|
4
4
|
import { CollectionPlayerWithPages, CollectionGroupWithPages } from '../types/model.type';
|
|
@@ -24,6 +24,7 @@ export type Api = {
|
|
|
24
24
|
instance_id?: Instance['id'];
|
|
25
25
|
fields?: string;
|
|
26
26
|
}) => Promise<CanvasRetrieve>;
|
|
27
|
+
markFileAsConverted: (fileId: string) => Promise<void>;
|
|
27
28
|
};
|
|
28
29
|
type StorePayload = {
|
|
29
30
|
initialCollection?: CollectionPlayerWithPages;
|
|
@@ -53,6 +54,7 @@ type StoreData = {
|
|
|
53
54
|
emit: EmitFn<Emit>;
|
|
54
55
|
isSaving: Ref<boolean>;
|
|
55
56
|
isInitialized: Ref<boolean>;
|
|
57
|
+
isDragDropDisabled: ComputedRef<boolean>;
|
|
56
58
|
};
|
|
57
59
|
export type SlideMetadata = {
|
|
58
60
|
title: string;
|
|
@@ -144,6 +146,7 @@ export declare function provideAppStore({ initialCollection, t, confirmation, zI
|
|
|
144
146
|
savePitcherSlides: () => Promise<CanvasRetrieve[] | false>;
|
|
145
147
|
saveAndClose: () => Promise<void>;
|
|
146
148
|
isSaving: Ref<boolean, boolean>;
|
|
149
|
+
isDragDropDisabled: ComputedRef<boolean>;
|
|
147
150
|
};
|
|
148
151
|
export declare function useAppStore(): StoreData;
|
|
149
152
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function transformToSmallThumbnail(url: string, accessToken?: string): Promise<string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
zIndex?: number;
|
|
3
|
+
instanceId?: string;
|
|
4
|
+
isAdmin?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
toggleSearch: (value: boolean) => any;
|
|
8
|
+
resultClick: (item: any, type: "file" | "canvas") => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
+
onToggleSearch?: ((value: boolean) => any) | undefined;
|
|
11
|
+
onResultClick?: ((item: any, type: "file" | "canvas") => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
instanceId: string;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -17,6 +17,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
17
17
|
aiImgDescription?: string;
|
|
18
18
|
objectFit?: "cover" | "contain" | "scale-down";
|
|
19
19
|
type?: "default" | "error";
|
|
20
|
+
fileData?: {
|
|
21
|
+
name?: string;
|
|
22
|
+
content_type?: import('../../main.lib').FileContentTypeEnum | null;
|
|
23
|
+
content_extension?: string | null;
|
|
24
|
+
} | null;
|
|
20
25
|
}> & Readonly<{
|
|
21
26
|
onError?: (() => any) | undefined;
|
|
22
27
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -24,6 +29,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
24
29
|
}, import('vue').PublicProps, {
|
|
25
30
|
type: "default" | "error";
|
|
26
31
|
objectFit: "cover" | "contain" | "scale-down";
|
|
32
|
+
fileData: {
|
|
33
|
+
name?: string;
|
|
34
|
+
content_type?: import('../../main.lib').FileContentTypeEnum | null;
|
|
35
|
+
content_extension?: string | null;
|
|
36
|
+
} | null;
|
|
27
37
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
28
38
|
imageRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
29
39
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
@@ -326,11 +336,21 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
326
336
|
aiImgDescription?: string;
|
|
327
337
|
objectFit?: "cover" | "contain" | "scale-down";
|
|
328
338
|
type?: "default" | "error";
|
|
339
|
+
fileData?: {
|
|
340
|
+
name?: string;
|
|
341
|
+
content_type?: import('../../main.lib').FileContentTypeEnum | null;
|
|
342
|
+
content_extension?: string | null;
|
|
343
|
+
} | null;
|
|
329
344
|
}> & Readonly<{
|
|
330
345
|
onError?: (() => any) | undefined;
|
|
331
346
|
}>, {}, {}, {}, {}, {
|
|
332
347
|
type: "default" | "error";
|
|
333
348
|
objectFit: "cover" | "contain" | "scale-down";
|
|
349
|
+
fileData: {
|
|
350
|
+
name?: string;
|
|
351
|
+
content_type?: import('../../main.lib').FileContentTypeEnum | null;
|
|
352
|
+
content_extension?: string | null;
|
|
353
|
+
} | null;
|
|
334
354
|
}> | null;
|
|
335
355
|
}, any>;
|
|
336
356
|
export default _default;
|
|
@@ -14,6 +14,7 @@ interface Props {
|
|
|
14
14
|
clickable?: boolean;
|
|
15
15
|
isClicked?: boolean;
|
|
16
16
|
isHome?: boolean;
|
|
17
|
+
showComponentManager?: boolean;
|
|
17
18
|
}
|
|
18
19
|
declare function __VLS_template(): {
|
|
19
20
|
attrs: Partial<{}>;
|
|
@@ -28,10 +29,12 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
28
29
|
removeComponent: (component: ComponentNode<import('../../main.lib').CollectionPlayer | import('../../apps/canvas-builder/types/canvas').GridProps | import('../../apps/canvas-builder/types/canvas').GridItemProps | import('../../apps/canvas-builder/types/canvas').TextProps | import('../../apps/canvas-builder/types/canvas').CarouselProps | import('../../apps/canvas-builder/types/canvas').MultimediaProps | import('../../apps/canvas-builder/types/canvas').EmbeddableProps | import('../../apps/canvas-builder/types/canvas').ContentGridProps | import('../../apps/canvas-builder/types/canvas').SectionListProps | import('../../apps/canvas-builder/types/canvas').HtmlProps | import('../../apps/canvas-builder/types/canvas').IFrameProps | import('../../apps/canvas-builder/types/canvas').LinkProps | import('../../apps/canvas-builder/types/canvas').PageBreakProps | import('../../apps/canvas-builder/types/canvas').PageProps | import('../../apps/canvas-builder/types/canvas').TimelineProps>) => any;
|
|
29
30
|
displayChildren: (component: ComponentNode<import('../../main.lib').CollectionPlayer | import('../../apps/canvas-builder/types/canvas').GridProps | import('../../apps/canvas-builder/types/canvas').GridItemProps | import('../../apps/canvas-builder/types/canvas').TextProps | import('../../apps/canvas-builder/types/canvas').CarouselProps | import('../../apps/canvas-builder/types/canvas').MultimediaProps | import('../../apps/canvas-builder/types/canvas').EmbeddableProps | import('../../apps/canvas-builder/types/canvas').ContentGridProps | import('../../apps/canvas-builder/types/canvas').SectionListProps | import('../../apps/canvas-builder/types/canvas').HtmlProps | import('../../apps/canvas-builder/types/canvas').IFrameProps | import('../../apps/canvas-builder/types/canvas').LinkProps | import('../../apps/canvas-builder/types/canvas').PageBreakProps | import('../../apps/canvas-builder/types/canvas').PageProps | import('../../apps/canvas-builder/types/canvas').TimelineProps>) => any;
|
|
30
31
|
selectComponent: (component: ComponentNode<import('../../main.lib').CollectionPlayer | import('../../apps/canvas-builder/types/canvas').GridProps | import('../../apps/canvas-builder/types/canvas').GridItemProps | import('../../apps/canvas-builder/types/canvas').TextProps | import('../../apps/canvas-builder/types/canvas').CarouselProps | import('../../apps/canvas-builder/types/canvas').MultimediaProps | import('../../apps/canvas-builder/types/canvas').EmbeddableProps | import('../../apps/canvas-builder/types/canvas').ContentGridProps | import('../../apps/canvas-builder/types/canvas').SectionListProps | import('../../apps/canvas-builder/types/canvas').HtmlProps | import('../../apps/canvas-builder/types/canvas').IFrameProps | import('../../apps/canvas-builder/types/canvas').LinkProps | import('../../apps/canvas-builder/types/canvas').PageBreakProps | import('../../apps/canvas-builder/types/canvas').PageProps | import('../../apps/canvas-builder/types/canvas').TimelineProps>) => any;
|
|
32
|
+
renameComponent: (component: ComponentNode<import('../../main.lib').CollectionPlayer | import('../../apps/canvas-builder/types/canvas').GridProps | import('../../apps/canvas-builder/types/canvas').GridItemProps | import('../../apps/canvas-builder/types/canvas').TextProps | import('../../apps/canvas-builder/types/canvas').CarouselProps | import('../../apps/canvas-builder/types/canvas').MultimediaProps | import('../../apps/canvas-builder/types/canvas').EmbeddableProps | import('../../apps/canvas-builder/types/canvas').ContentGridProps | import('../../apps/canvas-builder/types/canvas').SectionListProps | import('../../apps/canvas-builder/types/canvas').HtmlProps | import('../../apps/canvas-builder/types/canvas').IFrameProps | import('../../apps/canvas-builder/types/canvas').LinkProps | import('../../apps/canvas-builder/types/canvas').PageBreakProps | import('../../apps/canvas-builder/types/canvas').PageProps | import('../../apps/canvas-builder/types/canvas').TimelineProps>, newName: string) => any;
|
|
31
33
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
32
34
|
onRemoveComponent?: ((component: ComponentNode<import('../../main.lib').CollectionPlayer | import('../../apps/canvas-builder/types/canvas').GridProps | import('../../apps/canvas-builder/types/canvas').GridItemProps | import('../../apps/canvas-builder/types/canvas').TextProps | import('../../apps/canvas-builder/types/canvas').CarouselProps | import('../../apps/canvas-builder/types/canvas').MultimediaProps | import('../../apps/canvas-builder/types/canvas').EmbeddableProps | import('../../apps/canvas-builder/types/canvas').ContentGridProps | import('../../apps/canvas-builder/types/canvas').SectionListProps | import('../../apps/canvas-builder/types/canvas').HtmlProps | import('../../apps/canvas-builder/types/canvas').IFrameProps | import('../../apps/canvas-builder/types/canvas').LinkProps | import('../../apps/canvas-builder/types/canvas').PageBreakProps | import('../../apps/canvas-builder/types/canvas').PageProps | import('../../apps/canvas-builder/types/canvas').TimelineProps>) => any) | undefined;
|
|
33
35
|
onDisplayChildren?: ((component: ComponentNode<import('../../main.lib').CollectionPlayer | import('../../apps/canvas-builder/types/canvas').GridProps | import('../../apps/canvas-builder/types/canvas').GridItemProps | import('../../apps/canvas-builder/types/canvas').TextProps | import('../../apps/canvas-builder/types/canvas').CarouselProps | import('../../apps/canvas-builder/types/canvas').MultimediaProps | import('../../apps/canvas-builder/types/canvas').EmbeddableProps | import('../../apps/canvas-builder/types/canvas').ContentGridProps | import('../../apps/canvas-builder/types/canvas').SectionListProps | import('../../apps/canvas-builder/types/canvas').HtmlProps | import('../../apps/canvas-builder/types/canvas').IFrameProps | import('../../apps/canvas-builder/types/canvas').LinkProps | import('../../apps/canvas-builder/types/canvas').PageBreakProps | import('../../apps/canvas-builder/types/canvas').PageProps | import('../../apps/canvas-builder/types/canvas').TimelineProps>) => any) | undefined;
|
|
34
36
|
onSelectComponent?: ((component: ComponentNode<import('../../main.lib').CollectionPlayer | import('../../apps/canvas-builder/types/canvas').GridProps | import('../../apps/canvas-builder/types/canvas').GridItemProps | import('../../apps/canvas-builder/types/canvas').TextProps | import('../../apps/canvas-builder/types/canvas').CarouselProps | import('../../apps/canvas-builder/types/canvas').MultimediaProps | import('../../apps/canvas-builder/types/canvas').EmbeddableProps | import('../../apps/canvas-builder/types/canvas').ContentGridProps | import('../../apps/canvas-builder/types/canvas').SectionListProps | import('../../apps/canvas-builder/types/canvas').HtmlProps | import('../../apps/canvas-builder/types/canvas').IFrameProps | import('../../apps/canvas-builder/types/canvas').LinkProps | import('../../apps/canvas-builder/types/canvas').PageBreakProps | import('../../apps/canvas-builder/types/canvas').PageProps | import('../../apps/canvas-builder/types/canvas').TimelineProps>) => any) | undefined;
|
|
37
|
+
onRenameComponent?: ((component: ComponentNode<import('../../main.lib').CollectionPlayer | import('../../apps/canvas-builder/types/canvas').GridProps | import('../../apps/canvas-builder/types/canvas').GridItemProps | import('../../apps/canvas-builder/types/canvas').TextProps | import('../../apps/canvas-builder/types/canvas').CarouselProps | import('../../apps/canvas-builder/types/canvas').MultimediaProps | import('../../apps/canvas-builder/types/canvas').EmbeddableProps | import('../../apps/canvas-builder/types/canvas').ContentGridProps | import('../../apps/canvas-builder/types/canvas').SectionListProps | import('../../apps/canvas-builder/types/canvas').HtmlProps | import('../../apps/canvas-builder/types/canvas').IFrameProps | import('../../apps/canvas-builder/types/canvas').LinkProps | import('../../apps/canvas-builder/types/canvas').PageBreakProps | import('../../apps/canvas-builder/types/canvas').PageProps | import('../../apps/canvas-builder/types/canvas').TimelineProps>, newName: string) => any) | undefined;
|
|
35
38
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
36
39
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
40
|
export default _default;
|
|
@@ -9,16 +9,18 @@ type __VLS_Props = {
|
|
|
9
9
|
};
|
|
10
10
|
declare function validate(): Promise<{
|
|
11
11
|
config: Record<string, any>;
|
|
12
|
-
success:
|
|
12
|
+
success: true;
|
|
13
13
|
errors?: undefined;
|
|
14
|
+
firstErrorFieldName?: undefined;
|
|
14
15
|
} | {
|
|
15
16
|
config: Record<string, any>;
|
|
16
17
|
errors: unknown;
|
|
17
|
-
|
|
18
|
+
firstErrorFieldName: string | undefined;
|
|
19
|
+
success: false;
|
|
18
20
|
}>;
|
|
19
21
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
20
22
|
validate: typeof validate;
|
|
21
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
24
|
change: (config: Record<string, any>) => any;
|
|
23
25
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
26
|
onChange?: ((config: Record<string, any>) => any) | undefined;
|
|
@@ -2,6 +2,7 @@ type __VLS_Props = {
|
|
|
2
2
|
accountId: string;
|
|
3
3
|
name: string;
|
|
4
4
|
address?: string;
|
|
5
|
+
customFieldValue?: string | number | boolean | null;
|
|
5
6
|
contacts?: any[];
|
|
6
7
|
search?: string;
|
|
7
8
|
cardIcon?: string;
|
|
@@ -9,6 +10,7 @@ type __VLS_Props = {
|
|
|
9
10
|
selectedContactIds?: string[];
|
|
10
11
|
loading: boolean;
|
|
11
12
|
allowAccountChange?: boolean;
|
|
13
|
+
allowContactsFromDifferentAccounts?: boolean;
|
|
12
14
|
lastViewedDate?: string;
|
|
13
15
|
};
|
|
14
16
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -8,9 +8,12 @@ type __VLS_Props = {
|
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
singleColumnView?: boolean;
|
|
10
10
|
allowAccountChange?: boolean;
|
|
11
|
+
allowContactsFromDifferentAccounts?: boolean;
|
|
11
12
|
isDraggable?: boolean;
|
|
12
13
|
quickFiltersTitle?: string;
|
|
13
14
|
mutuallyExclusiveQuickFilters?: boolean;
|
|
15
|
+
customAccountDisplayField?: string;
|
|
16
|
+
getAccountSecondLine?: (account: any) => string;
|
|
14
17
|
search: string;
|
|
15
18
|
selectedQuickFilters?: string[];
|
|
16
19
|
selectedColleagueIds?: string[];
|
|
@@ -12,6 +12,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12
12
|
type: PropType<boolean>;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
|
+
allowContactsFromDifferentAccounts: {
|
|
16
|
+
type: PropType<boolean>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
15
19
|
search: {
|
|
16
20
|
type: PropType<string>;
|
|
17
21
|
required: true;
|
|
@@ -43,6 +47,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
43
47
|
type: PropType<any[]>;
|
|
44
48
|
required: true;
|
|
45
49
|
};
|
|
50
|
+
customAccountDisplayField: {
|
|
51
|
+
type: PropType<string>;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
getAccountSecondLine: {
|
|
55
|
+
type: PropType<(account: any) => string>;
|
|
56
|
+
default: (account: any) => any;
|
|
57
|
+
};
|
|
46
58
|
}>, {
|
|
47
59
|
accountsWithContacts: import('vue').ComputedRef<any[]>;
|
|
48
60
|
t: import('vue-i18n').ComposerTranslation<{
|
|
@@ -63,6 +75,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
63
75
|
type: PropType<boolean>;
|
|
64
76
|
default: boolean;
|
|
65
77
|
};
|
|
78
|
+
allowContactsFromDifferentAccounts: {
|
|
79
|
+
type: PropType<boolean>;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
66
82
|
search: {
|
|
67
83
|
type: PropType<string>;
|
|
68
84
|
required: true;
|
|
@@ -94,6 +110,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
94
110
|
type: PropType<any[]>;
|
|
95
111
|
required: true;
|
|
96
112
|
};
|
|
113
|
+
customAccountDisplayField: {
|
|
114
|
+
type: PropType<string>;
|
|
115
|
+
default: undefined;
|
|
116
|
+
};
|
|
117
|
+
getAccountSecondLine: {
|
|
118
|
+
type: PropType<(account: any) => string>;
|
|
119
|
+
default: (account: any) => any;
|
|
120
|
+
};
|
|
97
121
|
}>> & Readonly<{
|
|
98
122
|
"onRemove-contact"?: ((...args: any[]) => any) | undefined;
|
|
99
123
|
"onRemove-account"?: ((...args: any[]) => any) | undefined;
|
|
@@ -105,8 +129,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
105
129
|
selectedAccountIds: string[];
|
|
106
130
|
selectedContactIds: string[];
|
|
107
131
|
allowAccountChange: boolean;
|
|
132
|
+
allowContactsFromDifferentAccounts: boolean;
|
|
108
133
|
mutuallyExclusiveQuickFilters: boolean;
|
|
109
134
|
singleColumnView: boolean;
|
|
135
|
+
customAccountDisplayField: string;
|
|
136
|
+
getAccountSecondLine: (account: any) => string;
|
|
110
137
|
}, {}, {
|
|
111
138
|
DynamicScroller: any;
|
|
112
139
|
DynamicScrollerItem: any;
|
|
@@ -750,6 +777,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
750
777
|
accountId: string;
|
|
751
778
|
name: string;
|
|
752
779
|
address?: string;
|
|
780
|
+
customFieldValue?: string | number | boolean | null;
|
|
753
781
|
contacts?: any[];
|
|
754
782
|
search?: string;
|
|
755
783
|
cardIcon?: string;
|
|
@@ -757,6 +785,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
757
785
|
selectedContactIds?: string[];
|
|
758
786
|
loading: boolean;
|
|
759
787
|
allowAccountChange?: boolean;
|
|
788
|
+
allowContactsFromDifferentAccounts?: boolean;
|
|
760
789
|
lastViewedDate?: string;
|
|
761
790
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
762
791
|
"remove-contact": (contactId: string) => any;
|
|
@@ -767,6 +796,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
767
796
|
accountId: string;
|
|
768
797
|
name: string;
|
|
769
798
|
address?: string;
|
|
799
|
+
customFieldValue?: string | number | boolean | null;
|
|
770
800
|
contacts?: any[];
|
|
771
801
|
search?: string;
|
|
772
802
|
cardIcon?: string;
|
|
@@ -774,6 +804,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
774
804
|
selectedContactIds?: string[];
|
|
775
805
|
loading: boolean;
|
|
776
806
|
allowAccountChange?: boolean;
|
|
807
|
+
allowContactsFromDifferentAccounts?: boolean;
|
|
777
808
|
lastViewedDate?: string;
|
|
778
809
|
}> & Readonly<{
|
|
779
810
|
"onRemove-contact"?: ((contactId: string) => any) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { I18n } from 'vue-i18n';
|
|
3
3
|
import { feedbackIntegration as FeedbackIntegration } from '@sentry/vue';
|
|
4
|
-
import { File,
|
|
4
|
+
import { File, MiniPage, FileRetrieve, MetadataTemplate } from '../../../types/openapi';
|
|
5
5
|
import { RecentFile } from '../../types/recentFiles.types';
|
|
6
6
|
import { CLIENT_TYPE } from '../../constants/cdp.const';
|
|
7
7
|
import { AnnotationType } from './CFileViewer.types';
|
|
@@ -11,9 +11,6 @@ type __VLS_Props = {
|
|
|
11
11
|
file: PitcherFile | null;
|
|
12
12
|
initialPageNumber?: MiniPage['page_index'];
|
|
13
13
|
initialSearch?: string;
|
|
14
|
-
filePagesFavorites: Favorite[];
|
|
15
|
-
fileFavorite: Favorite | null;
|
|
16
|
-
isLoadingFavorite: boolean;
|
|
17
14
|
isPublishing?: boolean;
|
|
18
15
|
isSavingPagesMetadata?: boolean;
|
|
19
16
|
isLoadingInstanceMetadataTemplate?: boolean;
|
|
@@ -21,7 +18,6 @@ type __VLS_Props = {
|
|
|
21
18
|
hideActions?: boolean;
|
|
22
19
|
hideDownload?: boolean;
|
|
23
20
|
assetsPrefix?: string;
|
|
24
|
-
isFavoriteEnabled?: boolean;
|
|
25
21
|
clientType?: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
|
|
26
22
|
selectContent?: (fileId?: FileRetrieve['id'], pageIndex?: number) => Promise<FileRetrieve | null>;
|
|
27
23
|
appLocale?: SupportedLocale;
|
|
@@ -232,18 +228,14 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
232
228
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
233
229
|
file: PitcherFile | null;
|
|
234
230
|
isOverlay: boolean;
|
|
235
|
-
isLoadingFavorite: boolean;
|
|
236
231
|
isPublishing: boolean;
|
|
237
232
|
hideActions: boolean;
|
|
238
233
|
allowNoteTaking: boolean;
|
|
239
234
|
clientType: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
|
|
240
235
|
hideDownload: boolean;
|
|
241
|
-
isFavoriteEnabled: boolean;
|
|
242
|
-
filePagesFavorites: Favorite[];
|
|
243
236
|
assetsPrefix: string;
|
|
244
237
|
initialPageNumber: number;
|
|
245
238
|
initialSearch: string;
|
|
246
|
-
fileFavorite: Favorite | null;
|
|
247
239
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
248
240
|
pdfViewerEl: HTMLDivElement;
|
|
249
241
|
bottomBarRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -8,8 +8,6 @@ interface Props {
|
|
|
8
8
|
file: PitcherFile | null;
|
|
9
9
|
isPublishing: boolean;
|
|
10
10
|
areAnnotationsModified: boolean;
|
|
11
|
-
isFavorite: boolean;
|
|
12
|
-
isLoadingFavorite: boolean;
|
|
13
11
|
hideActions: boolean;
|
|
14
12
|
allowNoteTaking?: boolean;
|
|
15
13
|
clientType: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
|
|
@@ -18,7 +16,6 @@ interface Props {
|
|
|
18
16
|
track?: (eventName: string, payload: any) => void;
|
|
19
17
|
disableFullScreen?: boolean;
|
|
20
18
|
hideDownload?: boolean;
|
|
21
|
-
isFavoriteEnabled?: boolean;
|
|
22
19
|
isInSharebox?: boolean;
|
|
23
20
|
isPreviewMode?: boolean;
|
|
24
21
|
}
|
|
@@ -28,7 +25,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
28
25
|
downloadFile: () => any;
|
|
29
26
|
publishFile: () => any;
|
|
30
27
|
addToSharebox: (args_0: ShareboxItem) => any;
|
|
31
|
-
toggleFavoriteFile: () => any;
|
|
32
28
|
toggleNotes: () => any;
|
|
33
29
|
showRecentFiles: (args_0: string[]) => any;
|
|
34
30
|
toggleFullscreen: () => any;
|
|
@@ -44,7 +40,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
44
40
|
onDownloadFile?: (() => any) | undefined;
|
|
45
41
|
onPublishFile?: (() => any) | undefined;
|
|
46
42
|
onAddToSharebox?: ((args_0: ShareboxItem) => any) | undefined;
|
|
47
|
-
onToggleFavoriteFile?: (() => any) | undefined;
|
|
48
43
|
onToggleNotes?: (() => any) | undefined;
|
|
49
44
|
onShowRecentFiles?: ((args_0: string[]) => any) | undefined;
|
|
50
45
|
onToggleFullscreen?: (() => any) | undefined;
|