@pitcher/js-api 1.24.0-rc.0 → 1.25.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/impact-js-api.spec.json +1 -1
- package/js-api.esm.js +17 -3
- 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/composables/move-item-modal.use.d.ts +2 -0
- package/lib/apps/browser/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +12 -0
- package/lib/apps/browser/stores/api.d.ts +2 -0
- package/lib/apps/browser/stores/app.d.ts +2 -0
- package/lib/apps/browser/stores/upload.d.ts +4 -0
- package/lib/apps/canvas-builder/App.helpers.d.ts +2 -1
- package/lib/apps/canvas-builder/App.vue.d.ts +48 -0
- package/lib/apps/canvas-builder/components/container/AiPrompt/AiPromptModal.vue.d.ts +11 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/RestrictedSectionSelector.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.raw.vue.d.ts +3 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionListStrategySelector.vue.d.ts +7 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelector.vue.d.ts +4 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorWithDragAndDrop.vue.d.ts +5 -2
- package/lib/apps/canvas-builder/composables/useAiPrompt.d.ts +6 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +110 -8
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +6 -2
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +6 -2
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +18 -18
- package/lib/apps/canvas-builder/composables/usePrintMode.d.ts +5 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +14 -1
- package/lib/apps/collection-player/App.vue.d.ts +2 -0
- package/lib/apps/collection-player/composables/moving-group-gestures.use.d.ts +5 -5
- package/lib/apps/collection-player/stores/app.store.d.ts +4 -3
- package/lib/apps/collection-player/types/collection-player.type.d.ts +1 -0
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesList.vue.d.ts +12 -0
- package/lib/apps/content-selector/stores/api.d.ts +2 -0
- package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +6 -0
- package/lib/components/CCarousel/CCarousel.vue.d.ts +303 -2
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +1 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +3 -1
- package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +2 -0
- package/lib/components/CImage/CBrokenImage.vue.d.ts +4 -1
- package/lib/components/CImage/CImage.vue.d.ts +296 -1
- package/lib/components/CSearch/CSearchOnClickWithSuggestions.vue.d.ts +23 -0
- package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +7 -0
- package/lib/components/CSwitch/CSwitch.vue.d.ts +10 -1
- package/lib/components/CTableInput/CTableInput.vue.d.ts +2 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +380 -10
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +184 -3
- package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +19 -0
- package/lib/components/filters/CSearchFilter.vue.d.ts +14 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +4 -4
- package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +1 -1
- package/lib/composables/useCanvasLocks.d.ts +1 -0
- package/lib/composables/useCanvasOverlay.d.ts +13 -1
- package/lib/composables/useMetadataSearch.d.ts +19 -0
- package/lib/composables/useWindowEvents.d.ts +4 -3
- package/lib/constants/cdp.const.d.ts +2 -2
- package/lib/main.lib.d.ts +3 -0
- package/lib/sdk/api/HighLevelApi.d.ts +0 -1
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +20 -0
- package/lib/sdk/api/modules/admin/index.d.ts +6 -0
- package/lib/sdk/api/modules/env.d.ts +1 -1
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +20 -0
- package/lib/sdk/api/modules/ui/index.d.ts +6 -0
- package/lib/sdk/main.d.ts +30 -3
- package/lib/sdk/payload.types.d.ts +4 -0
- package/lib/sdk/utils/window.d.ts +1 -0
- package/lib/types/app.d.ts +3 -0
- package/lib/types/core/MetadataFilter.d.ts +32 -0
- package/lib/types/files.d.ts +3 -1
- package/lib/types/instanceSettings.types.d.ts +4 -0
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/types/organizationSettings.types.d.ts +3 -0
- package/lib/types/recentFiles.types.d.ts +2 -1
- package/lib/types/search.d.ts +5 -0
- package/lib/util/anchor.d.ts +1 -1
- package/lib/util/image.d.ts +6 -0
- package/lib/util/tree-transformation.util.d.ts +0 -1
- package/lib/util/url.d.ts +1 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +0 -2
- package/types/openapi/models/FileCreateRequest.d.ts +1 -0
- package/types/openapi/models/FileStatusEnum.d.ts +3 -1
- package/types/openapi/models/FileUpdateRequest.d.ts +1 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +1 -0
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +1 -0
- package/types/openapi/models/PatchedUserRequest.d.ts +1 -1
- package/types/openapi/models/SearchResult.d.ts +1 -3
- package/types/openapi/models/SharedLink.d.ts +0 -1
- package/types/openapi/models/SharedLinkCreate.d.ts +0 -1
- package/types/openapi/models/SharedLinkCreateRequest.d.ts +0 -1
- package/types/openapi/models/SharedLinkInstance.d.ts +1 -0
- package/types/openapi/models/User.d.ts +1 -1
- package/types/openapi/models/UserRequest.d.ts +1 -1
- package/types/openapi/models/SearchContentDistributionGroup.d.ts +0 -10
- package/types/openapi/models/SearchInstanceAssignmentGroup.d.ts +0 -10
|
@@ -14,6 +14,8 @@ type __VLS_Props = {
|
|
|
14
14
|
};
|
|
15
15
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
16
16
|
isFullscreen: import('vue').Ref<boolean, boolean>;
|
|
17
|
+
handleKeyAction: import('./composables/keyboard-bindings.use').ActionCallback;
|
|
18
|
+
element: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
17
19
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
20
|
click: (event: MouseEvent) => any;
|
|
19
21
|
close: () => any;
|
|
@@ -2,14 +2,14 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { UseSwipeDirection } from '@vueuse/core';
|
|
3
3
|
import { AxisDirection } from './slide-direction.use';
|
|
4
4
|
declare const _default: (element: Ref<HTMLElement | null>, actions: {
|
|
5
|
-
onSwipeLeft
|
|
6
|
-
onSwipeRight
|
|
7
|
-
onSwipeUp
|
|
8
|
-
onSwipeDown
|
|
5
|
+
onSwipeLeft: () => void;
|
|
6
|
+
onSwipeRight: () => void;
|
|
7
|
+
onSwipeUp: () => void;
|
|
8
|
+
onSwipeDown: () => void;
|
|
9
9
|
}, slideAxis: Ref<AxisDirection | undefined>) => {
|
|
10
10
|
touchDirection: import('vue').ComputedRef<UseSwipeDirection>;
|
|
11
11
|
gestureStyling: import('vue').ComputedRef<{
|
|
12
|
-
transform: string;
|
|
12
|
+
transform: string | undefined;
|
|
13
13
|
transition: string | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
};
|
|
@@ -5,7 +5,7 @@ import { File } from '../../../../types/openapi';
|
|
|
5
5
|
import { default as useZoom } from '../composables/zoom.use';
|
|
6
6
|
import { default as useFullscreen } from '../composables/fullscreen.use';
|
|
7
7
|
import { CollectionFileEntity, NodeInfo } from '../../canvas-builder/types/canvas';
|
|
8
|
-
import { default as useKeyboardBindings } from '../composables/keyboard-bindings.use';
|
|
8
|
+
import { ActionCallback, default as useKeyboardBindings } from '../composables/keyboard-bindings.use';
|
|
9
9
|
import { default as useSlideDirection } from '../composables/slide-direction.use';
|
|
10
10
|
import { useCacheNavigation } from '../composables/navigation-cache.use';
|
|
11
11
|
export type RenderPageAsImage = (payload: {
|
|
@@ -56,7 +56,7 @@ type StoreData = {
|
|
|
56
56
|
fullscreen: ReturnType<typeof useFullscreen>;
|
|
57
57
|
data: Ref<CollectionPlayer>;
|
|
58
58
|
visibleGroups: ComputedRef<CollectionGroup[]>;
|
|
59
|
-
|
|
59
|
+
hasManyGroups: ComputedRef<boolean>;
|
|
60
60
|
activeSlide: Ref<CollectionSlide | null>;
|
|
61
61
|
activeGroup: Ref<CollectionGroup | null>;
|
|
62
62
|
setActiveSlide: (group?: CollectionGroup, slide?: CollectionSlide) => void;
|
|
@@ -75,7 +75,8 @@ type StoreData = {
|
|
|
75
75
|
options?: Options;
|
|
76
76
|
cacheNavigation: ReturnType<typeof useCacheNavigation>;
|
|
77
77
|
nodeId?: string;
|
|
78
|
+
handleKeyAction: ActionCallback;
|
|
78
79
|
};
|
|
79
|
-
export declare function provideAppStore({ data, isEditMode, rootElement, api, emit,
|
|
80
|
+
export declare function provideAppStore({ data, isEditMode, rootElement, api, emit, options, isLoading, nodeId, inModal, }: StorePayload): StoreData;
|
|
80
81
|
export declare function useAppStore(): StoreData;
|
|
81
82
|
export {};
|
package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesList.vue.d.ts
CHANGED
|
@@ -4,9 +4,14 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
4
4
|
searchFiltersRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
engagingIds?: string[];
|
|
7
|
+
entity: import('../../../../../../main.lib').MetadataFilterRequest["entity"];
|
|
8
|
+
includeDraftValues?: boolean;
|
|
9
|
+
isSection?: import('../../../../../../main.lib').MetadataFilterRequest["is_section"];
|
|
10
|
+
isTemplate?: import('../../../../../../main.lib').MetadataFilterRequest["is_template"];
|
|
7
11
|
searchInOptions?: import('../../../../../../components/CSearchFilters/CSearchFilters.types').SearchInOption[];
|
|
8
12
|
filters?: Record<string, any>;
|
|
9
13
|
initialSearchValue?: string;
|
|
14
|
+
ownerId?: number | null;
|
|
10
15
|
placeholder?: string;
|
|
11
16
|
popularIds?: string[];
|
|
12
17
|
recommendedIds?: string[];
|
|
@@ -35,6 +40,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
35
40
|
filters: Record<string, any>;
|
|
36
41
|
placeholder: string;
|
|
37
42
|
initialSearchValue: string;
|
|
43
|
+
includeDraftValues: boolean;
|
|
38
44
|
engagingIds: string[];
|
|
39
45
|
popularIds: string[];
|
|
40
46
|
recommendedIds: string[];
|
|
@@ -126,9 +132,14 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
126
132
|
}, Readonly<{
|
|
127
133
|
disabled?: boolean;
|
|
128
134
|
engagingIds?: string[];
|
|
135
|
+
entity: import('../../../../../../main.lib').MetadataFilterRequest["entity"];
|
|
136
|
+
includeDraftValues?: boolean;
|
|
137
|
+
isSection?: import('../../../../../../main.lib').MetadataFilterRequest["is_section"];
|
|
138
|
+
isTemplate?: import('../../../../../../main.lib').MetadataFilterRequest["is_template"];
|
|
129
139
|
searchInOptions?: import('../../../../../../components/CSearchFilters/CSearchFilters.types').SearchInOption[];
|
|
130
140
|
filters?: Record<string, any>;
|
|
131
141
|
initialSearchValue?: string;
|
|
142
|
+
ownerId?: number | null;
|
|
132
143
|
placeholder?: string;
|
|
133
144
|
popularIds?: string[];
|
|
134
145
|
recommendedIds?: string[];
|
|
@@ -153,6 +164,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
153
164
|
filters: Record<string, any>;
|
|
154
165
|
placeholder: string;
|
|
155
166
|
initialSearchValue: string;
|
|
167
|
+
includeDraftValues: boolean;
|
|
156
168
|
engagingIds: string[];
|
|
157
169
|
popularIds: string[];
|
|
158
170
|
recommendedIds: string[];
|
|
@@ -43,6 +43,7 @@ declare const _default: () => {
|
|
|
43
43
|
readonly tags?: Readonly<string[] | undefined>;
|
|
44
44
|
readonly thumbnail_url?: string | null | undefined;
|
|
45
45
|
readonly page_index?: number | undefined;
|
|
46
|
+
readonly status?: import('../../../../types/openapi').FileStatusEnum | undefined;
|
|
46
47
|
}[];
|
|
47
48
|
readonly favorites: {
|
|
48
49
|
readonly [x: string]: {
|
|
@@ -170,6 +171,7 @@ declare const _default: () => {
|
|
|
170
171
|
tags?: Readonly<string[] | undefined>;
|
|
171
172
|
thumbnail_url?: string | null | undefined;
|
|
172
173
|
page_index?: number | undefined;
|
|
174
|
+
status?: import('../../../../types/openapi').FileStatusEnum | undefined;
|
|
173
175
|
}[];
|
|
174
176
|
favorites: Record<MiniPage["id"] | File["id"] | Folder["id"], Favorite>;
|
|
175
177
|
filteredItems: {
|
|
@@ -10,6 +10,8 @@ type __VLS_Props = {
|
|
|
10
10
|
manageAttributes?: boolean;
|
|
11
11
|
manageFileAttributes?: boolean;
|
|
12
12
|
removeTags?: boolean;
|
|
13
|
+
manageDistribution?: boolean;
|
|
14
|
+
manageFileDistributions?: boolean;
|
|
13
15
|
};
|
|
14
16
|
showMove?: boolean;
|
|
15
17
|
showDelete?: boolean;
|
|
@@ -38,6 +40,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
38
40
|
manageFileAttributes: () => any;
|
|
39
41
|
addTags: () => any;
|
|
40
42
|
removeTags: () => any;
|
|
43
|
+
manageDistribution: () => any;
|
|
44
|
+
manageFileDistributions: () => any;
|
|
41
45
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
42
46
|
onDelete?: (() => any) | undefined;
|
|
43
47
|
onMove?: (() => any) | undefined;
|
|
@@ -47,6 +51,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
47
51
|
onManageFileAttributes?: (() => any) | undefined;
|
|
48
52
|
onAddTags?: (() => any) | undefined;
|
|
49
53
|
onRemoveTags?: (() => any) | undefined;
|
|
54
|
+
onManageDistribution?: (() => any) | undefined;
|
|
55
|
+
onManageFileDistributions?: (() => any) | undefined;
|
|
50
56
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
51
57
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
58
|
export default _default;
|
|
@@ -14,11 +14,306 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
14
14
|
imageRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
15
15
|
src?: string | null;
|
|
16
16
|
fallbackSrc?: string | null;
|
|
17
|
+
aiImgDescription?: string;
|
|
18
|
+
objectFit?: "cover" | "contain" | "scale-down";
|
|
19
|
+
type?: "default" | "error";
|
|
17
20
|
}> & Readonly<{
|
|
18
21
|
onError?: (() => any) | undefined;
|
|
19
22
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
23
|
error: () => any;
|
|
21
|
-
}, import('vue').PublicProps, {
|
|
24
|
+
}, import('vue').PublicProps, {
|
|
25
|
+
type: "default" | "error";
|
|
26
|
+
objectFit: "cover" | "contain" | "scale-down";
|
|
27
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
28
|
+
imageRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
onPreviewPrev: import('vue').PropType<() => void>;
|
|
30
|
+
onPreviewNext: import('vue').PropType<() => void>;
|
|
31
|
+
showToolbar: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
showToolbarTooltip: BooleanConstructor;
|
|
36
|
+
renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
|
|
37
|
+
theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
|
|
38
|
+
toolbarIconColor: string;
|
|
39
|
+
toolbarColor: string;
|
|
40
|
+
toolbarBoxShadow: string;
|
|
41
|
+
toolbarBorderRadius: string;
|
|
42
|
+
}, {
|
|
43
|
+
Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
|
|
44
|
+
borderRadius: string;
|
|
45
|
+
boxShadow: string;
|
|
46
|
+
color: string;
|
|
47
|
+
textColor: string;
|
|
48
|
+
padding: string;
|
|
49
|
+
}, {
|
|
50
|
+
Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
|
|
51
|
+
fontSize: string;
|
|
52
|
+
borderRadius: string;
|
|
53
|
+
color: string;
|
|
54
|
+
dividerColor: string;
|
|
55
|
+
textColor: string;
|
|
56
|
+
boxShadow: string;
|
|
57
|
+
space: string;
|
|
58
|
+
spaceArrow: string;
|
|
59
|
+
arrowOffset: string;
|
|
60
|
+
arrowOffsetVertical: string;
|
|
61
|
+
arrowHeight: string;
|
|
62
|
+
padding: string;
|
|
63
|
+
}, any>;
|
|
64
|
+
}>;
|
|
65
|
+
}>>;
|
|
66
|
+
themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
|
|
67
|
+
toolbarIconColor: string;
|
|
68
|
+
toolbarColor: string;
|
|
69
|
+
toolbarBoxShadow: string;
|
|
70
|
+
toolbarBorderRadius: string;
|
|
71
|
+
}, {
|
|
72
|
+
Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
|
|
73
|
+
borderRadius: string;
|
|
74
|
+
boxShadow: string;
|
|
75
|
+
color: string;
|
|
76
|
+
textColor: string;
|
|
77
|
+
padding: string;
|
|
78
|
+
}, {
|
|
79
|
+
Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
|
|
80
|
+
fontSize: string;
|
|
81
|
+
borderRadius: string;
|
|
82
|
+
color: string;
|
|
83
|
+
dividerColor: string;
|
|
84
|
+
textColor: string;
|
|
85
|
+
boxShadow: string;
|
|
86
|
+
space: string;
|
|
87
|
+
spaceArrow: string;
|
|
88
|
+
arrowOffset: string;
|
|
89
|
+
arrowOffsetVertical: string;
|
|
90
|
+
arrowHeight: string;
|
|
91
|
+
padding: string;
|
|
92
|
+
}, any>;
|
|
93
|
+
}>;
|
|
94
|
+
}>>>;
|
|
95
|
+
builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
|
|
96
|
+
toolbarIconColor: string;
|
|
97
|
+
toolbarColor: string;
|
|
98
|
+
toolbarBoxShadow: string;
|
|
99
|
+
toolbarBorderRadius: string;
|
|
100
|
+
}, {
|
|
101
|
+
Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
|
|
102
|
+
borderRadius: string;
|
|
103
|
+
boxShadow: string;
|
|
104
|
+
color: string;
|
|
105
|
+
textColor: string;
|
|
106
|
+
padding: string;
|
|
107
|
+
}, {
|
|
108
|
+
Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
|
|
109
|
+
fontSize: string;
|
|
110
|
+
borderRadius: string;
|
|
111
|
+
color: string;
|
|
112
|
+
dividerColor: string;
|
|
113
|
+
textColor: string;
|
|
114
|
+
boxShadow: string;
|
|
115
|
+
space: string;
|
|
116
|
+
spaceArrow: string;
|
|
117
|
+
arrowOffset: string;
|
|
118
|
+
arrowOffsetVertical: string;
|
|
119
|
+
arrowHeight: string;
|
|
120
|
+
padding: string;
|
|
121
|
+
}, any>;
|
|
122
|
+
}>;
|
|
123
|
+
}>>>;
|
|
124
|
+
alt: StringConstructor;
|
|
125
|
+
height: import('vue').PropType<string | number>;
|
|
126
|
+
imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
|
|
127
|
+
previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
|
|
128
|
+
lazy: BooleanConstructor;
|
|
129
|
+
intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
|
|
130
|
+
objectFit: {
|
|
131
|
+
type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
previewSrc: StringConstructor;
|
|
135
|
+
fallbackSrc: StringConstructor;
|
|
136
|
+
width: import('vue').PropType<string | number>;
|
|
137
|
+
src: StringConstructor;
|
|
138
|
+
previewDisabled: BooleanConstructor;
|
|
139
|
+
loadDescription: StringConstructor;
|
|
140
|
+
onError: import('vue').PropType<(e: Event) => void>;
|
|
141
|
+
onLoad: import('vue').PropType<(e: Event) => void>;
|
|
142
|
+
}>> & Readonly<{}>, {
|
|
143
|
+
click: () => void;
|
|
144
|
+
mergedClsPrefix: import('vue').Ref<string, string>;
|
|
145
|
+
groupId: string | undefined;
|
|
146
|
+
previewInstRef: import('vue').Ref<{
|
|
147
|
+
setThumbnailEl: (e: HTMLImageElement | null) => void;
|
|
148
|
+
setPreviewSrc: (src?: string) => void;
|
|
149
|
+
toggleShow: () => void;
|
|
150
|
+
} | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
|
|
151
|
+
setThumbnailEl: (e: HTMLImageElement | null) => void;
|
|
152
|
+
setPreviewSrc: (src?: string) => void;
|
|
153
|
+
toggleShow: () => void;
|
|
154
|
+
} | null>;
|
|
155
|
+
imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
|
|
156
|
+
showError: import('vue').Ref<boolean, boolean>;
|
|
157
|
+
shouldStartLoading: import('vue').Ref<boolean, boolean>;
|
|
158
|
+
loaded: import('vue').Ref<boolean, boolean>;
|
|
159
|
+
mergedOnClick: (e: MouseEvent) => void;
|
|
160
|
+
mergedOnError: (e: Event) => void;
|
|
161
|
+
mergedOnLoad: (e: Event) => void;
|
|
162
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
163
|
+
objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
|
164
|
+
lazy: boolean;
|
|
165
|
+
showToolbar: boolean;
|
|
166
|
+
showToolbarTooltip: boolean;
|
|
167
|
+
previewDisabled: boolean;
|
|
168
|
+
}, true, {}, import('vue').SlotsType<import('naive-ui').ImageSlots>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
169
|
+
P: {};
|
|
170
|
+
B: {};
|
|
171
|
+
D: {};
|
|
172
|
+
C: {};
|
|
173
|
+
M: {};
|
|
174
|
+
Defaults: {};
|
|
175
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
176
|
+
onPreviewPrev: import('vue').PropType<() => void>;
|
|
177
|
+
onPreviewNext: import('vue').PropType<() => void>;
|
|
178
|
+
showToolbar: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
showToolbarTooltip: BooleanConstructor;
|
|
183
|
+
renderToolbar: import('vue').PropType<import('naive-ui').ImageRenderToolbar>;
|
|
184
|
+
theme: import('vue').PropType<import('naive-ui/es/_mixins').Theme<"Image", {
|
|
185
|
+
toolbarIconColor: string;
|
|
186
|
+
toolbarColor: string;
|
|
187
|
+
toolbarBoxShadow: string;
|
|
188
|
+
toolbarBorderRadius: string;
|
|
189
|
+
}, {
|
|
190
|
+
Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
|
|
191
|
+
borderRadius: string;
|
|
192
|
+
boxShadow: string;
|
|
193
|
+
color: string;
|
|
194
|
+
textColor: string;
|
|
195
|
+
padding: string;
|
|
196
|
+
}, {
|
|
197
|
+
Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
|
|
198
|
+
fontSize: string;
|
|
199
|
+
borderRadius: string;
|
|
200
|
+
color: string;
|
|
201
|
+
dividerColor: string;
|
|
202
|
+
textColor: string;
|
|
203
|
+
boxShadow: string;
|
|
204
|
+
space: string;
|
|
205
|
+
spaceArrow: string;
|
|
206
|
+
arrowOffset: string;
|
|
207
|
+
arrowOffsetVertical: string;
|
|
208
|
+
arrowHeight: string;
|
|
209
|
+
padding: string;
|
|
210
|
+
}, any>;
|
|
211
|
+
}>;
|
|
212
|
+
}>>;
|
|
213
|
+
themeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
|
|
214
|
+
toolbarIconColor: string;
|
|
215
|
+
toolbarColor: string;
|
|
216
|
+
toolbarBoxShadow: string;
|
|
217
|
+
toolbarBorderRadius: string;
|
|
218
|
+
}, {
|
|
219
|
+
Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
|
|
220
|
+
borderRadius: string;
|
|
221
|
+
boxShadow: string;
|
|
222
|
+
color: string;
|
|
223
|
+
textColor: string;
|
|
224
|
+
padding: string;
|
|
225
|
+
}, {
|
|
226
|
+
Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
|
|
227
|
+
fontSize: string;
|
|
228
|
+
borderRadius: string;
|
|
229
|
+
color: string;
|
|
230
|
+
dividerColor: string;
|
|
231
|
+
textColor: string;
|
|
232
|
+
boxShadow: string;
|
|
233
|
+
space: string;
|
|
234
|
+
spaceArrow: string;
|
|
235
|
+
arrowOffset: string;
|
|
236
|
+
arrowOffsetVertical: string;
|
|
237
|
+
arrowHeight: string;
|
|
238
|
+
padding: string;
|
|
239
|
+
}, any>;
|
|
240
|
+
}>;
|
|
241
|
+
}>>>;
|
|
242
|
+
builtinThemeOverrides: import('vue').PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Image", {
|
|
243
|
+
toolbarIconColor: string;
|
|
244
|
+
toolbarColor: string;
|
|
245
|
+
toolbarBoxShadow: string;
|
|
246
|
+
toolbarBorderRadius: string;
|
|
247
|
+
}, {
|
|
248
|
+
Tooltip: import('naive-ui/es/_mixins').Theme<"Tooltip", {
|
|
249
|
+
borderRadius: string;
|
|
250
|
+
boxShadow: string;
|
|
251
|
+
color: string;
|
|
252
|
+
textColor: string;
|
|
253
|
+
padding: string;
|
|
254
|
+
}, {
|
|
255
|
+
Popover: import('naive-ui/es/_mixins').Theme<"Popover", {
|
|
256
|
+
fontSize: string;
|
|
257
|
+
borderRadius: string;
|
|
258
|
+
color: string;
|
|
259
|
+
dividerColor: string;
|
|
260
|
+
textColor: string;
|
|
261
|
+
boxShadow: string;
|
|
262
|
+
space: string;
|
|
263
|
+
spaceArrow: string;
|
|
264
|
+
arrowOffset: string;
|
|
265
|
+
arrowOffsetVertical: string;
|
|
266
|
+
arrowHeight: string;
|
|
267
|
+
padding: string;
|
|
268
|
+
}, any>;
|
|
269
|
+
}>;
|
|
270
|
+
}>>>;
|
|
271
|
+
alt: StringConstructor;
|
|
272
|
+
height: import('vue').PropType<string | number>;
|
|
273
|
+
imgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
|
|
274
|
+
previewedImgProps: import('vue').PropType<import('vue').ImgHTMLAttributes>;
|
|
275
|
+
lazy: BooleanConstructor;
|
|
276
|
+
intersectionObserverOptions: import('vue').PropType<import('naive-ui/es/image/src/utils').IntersectionObserverOptions>;
|
|
277
|
+
objectFit: {
|
|
278
|
+
type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
279
|
+
default: string;
|
|
280
|
+
};
|
|
281
|
+
previewSrc: StringConstructor;
|
|
282
|
+
fallbackSrc: StringConstructor;
|
|
283
|
+
width: import('vue').PropType<string | number>;
|
|
284
|
+
src: StringConstructor;
|
|
285
|
+
previewDisabled: BooleanConstructor;
|
|
286
|
+
loadDescription: StringConstructor;
|
|
287
|
+
onError: import('vue').PropType<(e: Event) => void>;
|
|
288
|
+
onLoad: import('vue').PropType<(e: Event) => void>;
|
|
289
|
+
}>> & Readonly<{}>, {
|
|
290
|
+
click: () => void;
|
|
291
|
+
mergedClsPrefix: import('vue').Ref<string, string>;
|
|
292
|
+
groupId: string | undefined;
|
|
293
|
+
previewInstRef: import('vue').Ref<{
|
|
294
|
+
setThumbnailEl: (e: HTMLImageElement | null) => void;
|
|
295
|
+
setPreviewSrc: (src?: string) => void;
|
|
296
|
+
toggleShow: () => void;
|
|
297
|
+
} | null, import('naive-ui/es/image/src/ImagePreview').ImagePreviewInst | {
|
|
298
|
+
setThumbnailEl: (e: HTMLImageElement | null) => void;
|
|
299
|
+
setPreviewSrc: (src?: string) => void;
|
|
300
|
+
toggleShow: () => void;
|
|
301
|
+
} | null>;
|
|
302
|
+
imageRef: import('vue').Ref<HTMLImageElement | null, HTMLImageElement | null>;
|
|
303
|
+
showError: import('vue').Ref<boolean, boolean>;
|
|
304
|
+
shouldStartLoading: import('vue').Ref<boolean, boolean>;
|
|
305
|
+
loaded: import('vue').Ref<boolean, boolean>;
|
|
306
|
+
mergedOnClick: (e: MouseEvent) => void;
|
|
307
|
+
mergedOnError: (e: Event) => void;
|
|
308
|
+
mergedOnLoad: (e: Event) => void;
|
|
309
|
+
}, {}, {}, {}, {
|
|
310
|
+
objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
|
311
|
+
lazy: boolean;
|
|
312
|
+
showToolbar: boolean;
|
|
313
|
+
showToolbarTooltip: boolean;
|
|
314
|
+
previewDisabled: boolean;
|
|
315
|
+
}> | null;
|
|
316
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
22
317
|
P: {};
|
|
23
318
|
B: {};
|
|
24
319
|
D: {};
|
|
@@ -28,8 +323,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
28
323
|
}, Readonly<{
|
|
29
324
|
src?: string | null;
|
|
30
325
|
fallbackSrc?: string | null;
|
|
326
|
+
aiImgDescription?: string;
|
|
327
|
+
objectFit?: "cover" | "contain" | "scale-down";
|
|
328
|
+
type?: "default" | "error";
|
|
31
329
|
}> & Readonly<{
|
|
32
330
|
onError?: (() => any) | undefined;
|
|
33
|
-
}>, {}, {}, {}, {}, {
|
|
331
|
+
}>, {}, {}, {}, {}, {
|
|
332
|
+
type: "default" | "error";
|
|
333
|
+
objectFit: "cover" | "contain" | "scale-down";
|
|
334
|
+
}> | null;
|
|
34
335
|
}, any>;
|
|
35
336
|
export default _default;
|
|
@@ -19,6 +19,7 @@ type __VLS_Props = {
|
|
|
19
19
|
isLoadingInstanceMetadataTemplate?: boolean;
|
|
20
20
|
i18n: I18n;
|
|
21
21
|
hideActions?: boolean;
|
|
22
|
+
hideDownload?: boolean;
|
|
22
23
|
assetsPrefix?: string;
|
|
23
24
|
isFavoriteEnabled?: boolean;
|
|
24
25
|
clientType?: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
|
|
@@ -225,9 +226,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
225
226
|
hideActions: boolean;
|
|
226
227
|
allowNoteTaking: boolean;
|
|
227
228
|
clientType: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
|
|
229
|
+
hideDownload: boolean;
|
|
230
|
+
isFavoriteEnabled: boolean;
|
|
228
231
|
filePagesFavorites: Favorite[];
|
|
229
232
|
assetsPrefix: string;
|
|
230
|
-
isFavoriteEnabled: boolean;
|
|
231
233
|
initialPageNumber: number;
|
|
232
234
|
initialSearch: string;
|
|
233
235
|
fileFavorite: Favorite | null;
|
|
@@ -16,6 +16,8 @@ interface Props {
|
|
|
16
16
|
recentFiles?: RecentFile[];
|
|
17
17
|
track?: (eventName: string, payload: any) => void;
|
|
18
18
|
disableFullScreen?: boolean;
|
|
19
|
+
hideDownload?: boolean;
|
|
20
|
+
isFavoriteEnabled?: boolean;
|
|
19
21
|
}
|
|
20
22
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
23
|
search: () => any;
|
|
@@ -2,6 +2,9 @@ type __VLS_Props = {
|
|
|
2
2
|
iconSize?: string;
|
|
3
3
|
height?: string | number;
|
|
4
4
|
width?: string | number;
|
|
5
|
+
type?: 'default' | 'error';
|
|
5
6
|
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
type: "default" | "error";
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
10
|
export default _default;
|