@pitcher/js-api 1.21.0-beta.8 → 1.21.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 +274 -92
- 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/api/canvases/canvases.queries.d.ts +5 -5
- package/lib/apps/browser/stores/api.d.ts +215 -84
- package/lib/apps/browser/stores/app.d.ts +7 -26
- package/lib/apps/browser/stores/upload.d.ts +34 -24
- package/lib/apps/browser/util/file.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +550 -460
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +86 -74
- package/lib/apps/canvas-builder/composables/useCanvasHooks.d.ts +4 -4
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +24 -17
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +6 -4
- package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +4 -1
- package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +4 -4
- package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +2 -2
- package/lib/apps/canvas-builder/types/canvas.d.ts +19 -18
- package/lib/apps/canvas-builder/types/recommendations.types.d.ts +3 -3
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +5 -4
- package/lib/apps/content-selector/appTypes.d.ts +1 -0
- package/lib/apps/content-selector/stores/app.d.ts +8 -1
- package/lib/components/CFileViewer/CFileViewer.use.d.ts +2 -4
- package/lib/components/CFileViewer/CFileViewerFullScreen.use.d.ts +1 -1
- package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +5 -5
- package/lib/components/filters/filter.util.d.ts +1 -1
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +2 -2
- package/lib/composables/instanceTagsActions.use.d.ts +14 -0
- package/lib/composables/recentFiles.use.d.ts +1 -1
- package/lib/composables/suggestedTags.use.d.ts +3 -0
- package/lib/composables/tableColumnsSettings.use.d.ts +25 -0
- package/lib/composables/useCanvasOverlay.d.ts +20 -0
- package/lib/composables/useConfirmation.d.ts +1 -0
- package/lib/composables/useElementHeightResize.d.ts +5 -0
- package/lib/composables/useFiles.d.ts +11 -0
- package/lib/constants/pitcherSettings.const.d.ts +4 -0
- package/lib/main.lib.d.ts +27 -20
- package/lib/sdk/api/HighLevelApi.d.ts +106 -12
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +31 -15
- package/lib/sdk/api/modules/admin/env.admin.d.ts +3 -2
- package/lib/sdk/api/modules/admin/files.admin.d.ts +43 -4
- package/lib/sdk/api/modules/admin/index.d.ts +52 -5
- package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +1 -2
- package/lib/sdk/api/modules/admin/types.admin.d.ts +117 -3
- package/lib/sdk/api/modules/canvas.d.ts +12 -14
- package/lib/sdk/api/modules/dsr/env.dsr.d.ts +4 -3
- package/lib/sdk/api/modules/dsr/index.d.ts +14 -3
- package/lib/sdk/api/modules/dsr/loading.dsr.d.ts +6 -0
- package/lib/sdk/api/modules/env.d.ts +16 -0
- package/lib/sdk/api/modules/favorites.d.ts +9 -0
- package/lib/sdk/api/modules/feedback.d.ts +3 -0
- package/lib/sdk/api/modules/files.d.ts +3 -3
- package/lib/sdk/api/modules/folders.d.ts +29 -0
- package/lib/sdk/api/modules/open.d.ts +6 -0
- package/lib/sdk/api/modules/sync.d.ts +1 -2
- package/lib/sdk/api/modules/ui/app-errors.ui.d.ts +12 -0
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +75 -2
- package/lib/sdk/api/modules/ui/content.ui.d.ts +50 -0
- package/lib/sdk/api/modules/ui/index.d.ts +149 -13
- package/lib/sdk/api/modules/ui/loading.ui.d.ts +15 -0
- package/lib/sdk/api/modules/ui/location.ui.d.ts +17 -0
- package/lib/sdk/api/modules/ui/post-call.ui.d.ts +25 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +69 -6
- package/lib/sdk/api/modules/users.d.ts +4 -0
- package/lib/sdk/interfaces.d.ts +119 -2
- package/lib/sdk/main.d.ts +275 -141
- package/lib/sdk/payload.types.d.ts +134 -2
- package/lib/theme/light.d.ts +12 -0
- package/lib/types/app.d.ts +11 -0
- package/lib/types/call.d.ts +2 -2
- package/lib/types/files.d.ts +27 -1
- package/lib/types/filter.d.ts +5 -0
- package/lib/types/instanceSettings.types.d.ts +8 -2
- package/lib/types/launchDarkly.types.d.ts +4 -4
- package/lib/types/organizationSettings.types.d.ts +4 -0
- package/lib/types/recentFiles.types.d.ts +4 -1
- package/lib/types/users.d.ts +13 -0
- package/lib/util/fullscreen.util.d.ts +1 -1
- package/lib/util/string.d.ts +1 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +23 -17
- package/types/openapi/models/AccessTypeEnum.d.ts +3 -1
- package/types/openapi/models/App.d.ts +1 -0
- package/types/openapi/models/AppRelease.d.ts +1 -0
- package/types/openapi/models/AppsDBEntry.d.ts +4 -0
- package/types/openapi/models/AppsDBEntryRequest.d.ts +3 -0
- package/types/openapi/models/Canvas.d.ts +10 -15
- package/types/openapi/models/CanvasCreate.d.ts +14 -12
- package/types/openapi/models/CanvasCreateRequest.d.ts +6 -5
- package/types/openapi/models/CanvasRecommendedFile.d.ts +6 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +15 -13
- package/types/openapi/models/CanvasSection.d.ts +5 -2
- package/types/openapi/models/CanvasUpdate.d.ts +14 -12
- package/types/openapi/models/CanvasUpdateRequest.d.ts +5 -4
- package/types/openapi/models/CollaborationRoleEnum.d.ts +0 -4
- package/types/openapi/models/ContentDistributionGroupCreate.d.ts +1 -0
- package/types/openapi/models/DeletedApp.d.ts +1 -0
- package/types/openapi/models/{CanvasList.d.ts → DeletedCanvas.d.ts} +13 -9
- package/types/openapi/models/DeletedContentDistributionGroup.d.ts +1 -0
- package/types/openapi/models/DeletedEnvironment.d.ts +1 -0
- package/types/openapi/models/DeletedFavorite.d.ts +1 -0
- package/types/openapi/models/DeletedFile.d.ts +6 -0
- package/types/openapi/models/DeletedFolder.d.ts +4 -3
- package/types/openapi/models/DeletedInstance.d.ts +1 -0
- package/types/openapi/models/DeletedInstanceAssignmentGroup.d.ts +1 -0
- package/types/openapi/models/DeletedMetadataTemplate.d.ts +1 -0
- package/types/openapi/models/DeletedRegion.d.ts +1 -0
- package/types/openapi/models/Environment.d.ts +1 -0
- package/types/openapi/models/Favorite.d.ts +1 -0
- package/types/openapi/models/File.d.ts +6 -0
- package/types/openapi/models/FileCreate.d.ts +8 -0
- package/types/openapi/models/FileCreateRequest.d.ts +3 -0
- package/types/openapi/models/FilePermission.d.ts +4 -0
- package/types/openapi/models/FilePermissionRequest.d.ts +4 -0
- package/types/openapi/models/FileRetrieve.d.ts +8 -0
- package/types/openapi/models/FileRevision.d.ts +8 -0
- package/types/openapi/models/FileRevisionRequest.d.ts +3 -0
- package/types/openapi/models/FileUpdate.d.ts +8 -0
- package/types/openapi/models/FileUpdateRequest.d.ts +3 -0
- package/types/openapi/models/FileVersion.d.ts +5 -0
- package/types/openapi/models/Folder.d.ts +4 -3
- package/types/openapi/models/FolderCanvas.d.ts +11 -0
- package/types/openapi/models/FolderCreate.d.ts +8 -7
- package/types/openapi/models/FolderCreateRequest.d.ts +4 -2
- package/types/openapi/models/FolderFile.d.ts +3 -0
- package/types/openapi/models/FolderFolder.d.ts +5 -1
- package/types/openapi/models/FolderRetrieve.d.ts +8 -8
- package/types/openapi/models/FolderRule.d.ts +7 -0
- package/types/openapi/models/FolderRuleRequest.d.ts +7 -0
- package/types/openapi/models/FolderUpdate.d.ts +8 -8
- package/types/openapi/models/FolderUpdateRequest.d.ts +3 -0
- package/types/openapi/models/Instance.d.ts +1 -0
- package/types/openapi/models/InstanceUpdate.d.ts +1 -0
- package/types/openapi/models/MetadataTemplate.d.ts +1 -0
- package/types/openapi/models/OfflineSyncFolder.d.ts +17 -0
- package/types/openapi/models/OperatorEnum.d.ts +64 -0
- package/types/openapi/models/PaginatedCanvasList.d.ts +8 -0
- package/types/openapi/models/PaginatedFileRevisionList.d.ts +8 -0
- package/types/openapi/models/PaginatedOfflineSyncFolderList.d.ts +8 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +5 -4
- package/types/openapi/models/PatchedFileRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFileRevisionRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +3 -0
- package/types/openapi/models/Region.d.ts +1 -0
- package/types/openapi/models/SearchFile.d.ts +3 -0
- package/types/openapi/models/SharedLink.d.ts +6 -5
- package/types/openapi/models/SharedLinkCanvas.d.ts +11 -0
- package/types/openapi/models/SharedLinkCanvasRequest.d.ts +8 -0
- package/types/openapi/models/SharedLinkCreate.d.ts +6 -5
- package/types/openapi/models/{SharedLinkInstanceSerialzier.d.ts → SharedLinkInstance.d.ts} +1 -1
- package/types/openapi/models/SharedLinkInstanceRequest.d.ts +5 -0
- package/types/openapi/models/{SharedLinkOrganizationSerialzier.d.ts → SharedLinkOrganization.d.ts} +1 -1
- package/types/openapi/models/SharedLinkOrganizationRequest.d.ts +6 -0
- package/lib/apps/canvas-builder/util/tsUtils.d.ts +0 -3
- package/lib/composables/useDetailsView.d.ts +0 -19
- package/lib/types/templateActions.d.ts +0 -10
- package/lib/util/gesture.util.d.ts +0 -6
- package/types/openapi/models/AppsDBGlobalEntry.d.ts +0 -8
- package/types/openapi/models/AppsDBGlobalEntryRequest.d.ts +0 -3
- package/types/openapi/models/AppsDBUserEntry.d.ts +0 -9
- package/types/openapi/models/AppsDBUserEntryRequest.d.ts +0 -3
- package/types/openapi/models/CanvasSectionRetrieve.d.ts +0 -7
- package/types/openapi/models/CanvasSectionRetrieveRequest.d.ts +0 -5
- package/types/openapi/models/FileRequest.d.ts +0 -13
- package/types/openapi/models/InstanceStorageCredentials.d.ts +0 -6
- package/types/openapi/models/MiniAccount.d.ts +0 -4
- package/types/openapi/models/PSPDFKitAuthPayload.d.ts +0 -3
- package/types/openapi/models/PSPDFKitAuthPayloadRequest.d.ts +0 -3
- package/types/openapi/models/PSPDFKitToken.d.ts +0 -7
- package/types/openapi/models/PSPDFKitTokenRequest.d.ts +0 -3
- package/types/openapi/models/PaginatedCanvasListList.d.ts +0 -8
|
@@ -3,10 +3,10 @@ import { ComponentNode, CanvasHistoryAction, ComponentTypes } from '@canvas-buil
|
|
|
3
3
|
export default function useCanvasHistory(): {
|
|
4
4
|
activeHistoryItemIndex: import('vue').ComputedRef<number>;
|
|
5
5
|
canvasHistory: import('vue').Ref<{
|
|
6
|
-
active?: boolean;
|
|
6
|
+
active?: boolean | undefined;
|
|
7
7
|
action: CanvasHistoryAction;
|
|
8
8
|
componentType: ComponentTypes;
|
|
9
|
-
icon?: string;
|
|
9
|
+
icon?: string | undefined;
|
|
10
10
|
id: string;
|
|
11
11
|
snapshot: {
|
|
12
12
|
id: string;
|
|
@@ -18,153 +18,165 @@ export default function useCanvasHistory(): {
|
|
|
18
18
|
pdf: boolean;
|
|
19
19
|
web: boolean;
|
|
20
20
|
} | undefined;
|
|
21
|
-
allow_admins_to_overwrite?: boolean;
|
|
22
|
-
autofill?: "off" | "ai" | "matching_metadata" | "matching_tags" | "matching_metadata_or_tags";
|
|
23
|
-
autofill_content_types?: import('../../../main.lib').FileContentTypeEnum[] | null;
|
|
21
|
+
allow_admins_to_overwrite?: boolean | undefined;
|
|
22
|
+
autofill?: ("off" | "ai" | "matching_metadata" | "matching_tags" | "matching_metadata_or_tags") | undefined;
|
|
23
|
+
autofill_content_types?: (import('../../../main.lib').FileContentTypeEnum[] | null) | undefined;
|
|
24
24
|
data?: import('@canvas-builder/types/canvas').PageBreakProps | {
|
|
25
25
|
layout_type: import('@canvas-builder/types/canvas').GridLayoutTypes;
|
|
26
26
|
columns: number;
|
|
27
27
|
} | {
|
|
28
28
|
span: number;
|
|
29
29
|
tooltips?: {
|
|
30
|
-
content?: string;
|
|
31
|
-
content_style?: Record<string, any
|
|
32
|
-
trigger?: string;
|
|
33
|
-
trigger_style?: Record<string, any
|
|
30
|
+
content?: string | undefined;
|
|
31
|
+
content_style?: Record<string, any> | undefined;
|
|
32
|
+
trigger?: string | undefined;
|
|
33
|
+
trigger_style?: Record<string, any> | undefined;
|
|
34
34
|
}[] | undefined;
|
|
35
35
|
} | {
|
|
36
|
-
content?: string;
|
|
36
|
+
content?: string | undefined;
|
|
37
37
|
} | {
|
|
38
38
|
images?: {
|
|
39
39
|
url: string;
|
|
40
|
-
is_uploaded_asset?: boolean;
|
|
40
|
+
is_uploaded_asset?: boolean | undefined;
|
|
41
41
|
}[] | undefined;
|
|
42
|
-
placeholder_height?: string;
|
|
43
|
-
include_all_images_in_pdf?: boolean;
|
|
42
|
+
placeholder_height?: string | undefined;
|
|
43
|
+
include_all_images_in_pdf?: boolean | undefined;
|
|
44
44
|
} | {
|
|
45
45
|
asset_type: "external";
|
|
46
46
|
external_url: string;
|
|
47
47
|
type: "image" | "video";
|
|
48
|
-
horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions;
|
|
48
|
+
horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
|
|
49
49
|
} | {
|
|
50
50
|
asset_type: "pitcher_asset";
|
|
51
51
|
file: {
|
|
52
52
|
id: import('../../../main.lib').File["id"];
|
|
53
53
|
name: import('../../../main.lib').File["name"];
|
|
54
|
-
content_url?: import('../../../main.lib').File["content_url"];
|
|
54
|
+
content_url?: import('../../../main.lib').File["content_url"] | undefined;
|
|
55
55
|
};
|
|
56
56
|
type: "image" | "video";
|
|
57
|
-
horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions;
|
|
57
|
+
horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
|
|
58
58
|
} | {
|
|
59
59
|
type: "app";
|
|
60
60
|
app_name: string;
|
|
61
61
|
src: string | null;
|
|
62
|
-
height?: string;
|
|
63
|
-
width?: string;
|
|
64
|
-
embed_locations?: import('../../../main.lib').EmbedLocation[];
|
|
65
|
-
headless_locations?: import('../../../main.lib').EmbedLocation[];
|
|
62
|
+
height?: string | undefined;
|
|
63
|
+
width?: string | undefined;
|
|
64
|
+
embed_locations?: import('../../../main.lib').EmbedLocation[] | undefined;
|
|
65
|
+
headless_locations?: import('../../../main.lib').EmbedLocation[] | undefined;
|
|
66
66
|
properties_by_embed_location?: {
|
|
67
67
|
canvas?: {
|
|
68
|
-
start_in_loading_mode?: boolean;
|
|
68
|
+
start_in_loading_mode?: boolean | undefined;
|
|
69
69
|
} | undefined;
|
|
70
70
|
dsr?: {
|
|
71
|
-
start_in_loading_mode?: boolean;
|
|
71
|
+
start_in_loading_mode?: boolean | undefined;
|
|
72
72
|
} | undefined;
|
|
73
73
|
ui_app?: {
|
|
74
|
-
start_in_loading_mode?: boolean;
|
|
74
|
+
start_in_loading_mode?: boolean | undefined;
|
|
75
75
|
} | undefined;
|
|
76
76
|
admin_instance?: {
|
|
77
|
-
start_in_loading_mode?: boolean;
|
|
77
|
+
start_in_loading_mode?: boolean | undefined;
|
|
78
78
|
} | undefined;
|
|
79
79
|
} | undefined;
|
|
80
80
|
file: {
|
|
81
81
|
id: import('../../../main.lib').FileRetrieve["id"];
|
|
82
|
-
snapshot_id?: import('../../../main.lib').FileRetrieve["id"];
|
|
82
|
+
snapshot_id?: import('../../../main.lib').FileRetrieve["id"] | undefined;
|
|
83
83
|
name: import('../../../main.lib').FileRetrieve["name"];
|
|
84
|
-
is_deleted?: boolean;
|
|
84
|
+
is_deleted?: boolean | undefined;
|
|
85
85
|
content_url: import('../../../main.lib').FileRetrieve["content_url"];
|
|
86
86
|
content_type: import('../../../main.lib').FileContentTypeEnum | null;
|
|
87
87
|
content_extension: import('../../../main.lib').FileRetrieve["content_extension"];
|
|
88
|
-
|
|
88
|
+
permissions?: {
|
|
89
|
+
can_download?: boolean | undefined;
|
|
90
|
+
can_share?: boolean | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
thumbnail_url?: import('../../../main.lib').FileRetrieve["thumbnail_url"] | undefined;
|
|
89
93
|
content_length: import('../../../main.lib').FileRetrieve["content_length"];
|
|
90
|
-
content_thumbnails?: import('../../../main.lib').FileRetrieve["content_thumbnails"] | null;
|
|
91
|
-
readonly pspdfkit_server_url?: import('../../../components/CFileViewer/CFileViewer.types').FileModel["pspdfkit_server_url"];
|
|
92
|
-
readonly pspdfkit_auth_payload?: import('../../../components/CFileViewer/CFileViewer.types').FileModel["pspdfkit_auth_payload"];
|
|
94
|
+
content_thumbnails?: (import('../../../main.lib').FileRetrieve["content_thumbnails"] | null) | undefined;
|
|
95
|
+
readonly pspdfkit_server_url?: import('../../../components/CFileViewer/CFileViewer.types').FileModel["pspdfkit_server_url"] | undefined;
|
|
96
|
+
readonly pspdfkit_auth_payload?: import('../../../components/CFileViewer/CFileViewer.types').FileModel["pspdfkit_auth_payload"] | undefined;
|
|
93
97
|
} | null;
|
|
94
|
-
settings?: Record<string, unknown
|
|
98
|
+
settings?: Record<string, unknown> | undefined;
|
|
95
99
|
} | {
|
|
96
100
|
items: ({
|
|
97
101
|
file: {
|
|
98
102
|
id: import('../../../main.lib').FileRetrieve["id"];
|
|
99
|
-
snapshot_id?: import('../../../main.lib').FileRetrieve["id"];
|
|
103
|
+
snapshot_id?: import('../../../main.lib').FileRetrieve["id"] | undefined;
|
|
100
104
|
name: import('../../../main.lib').FileRetrieve["name"];
|
|
101
|
-
is_deleted?: boolean;
|
|
102
|
-
content_url?: import('../../../main.lib').FileRetrieve["content_url"];
|
|
103
|
-
content_type?: import('../../../main.lib').FileContentTypeEnum | null;
|
|
104
|
-
content_extension?: import('../../../main.lib').FileRetrieve["content_extension"];
|
|
105
|
+
is_deleted?: boolean | undefined;
|
|
106
|
+
content_url?: import('../../../main.lib').FileRetrieve["content_url"] | undefined;
|
|
107
|
+
content_type?: (import('../../../main.lib').FileContentTypeEnum | null) | undefined;
|
|
108
|
+
content_extension?: import('../../../main.lib').FileRetrieve["content_extension"] | undefined;
|
|
109
|
+
permissions?: {
|
|
110
|
+
can_download?: boolean | undefined;
|
|
111
|
+
can_share?: boolean | undefined;
|
|
112
|
+
} | undefined;
|
|
105
113
|
};
|
|
106
114
|
slide: {
|
|
107
115
|
index: number;
|
|
108
|
-
url?: import('../../../main.lib').FileRetrieve["content_thumbnails"][number];
|
|
116
|
+
url?: import('../../../main.lib').FileRetrieve["content_thumbnails"][number] | undefined;
|
|
109
117
|
};
|
|
110
118
|
type: "slide";
|
|
111
119
|
} | {
|
|
112
120
|
file: {
|
|
113
121
|
id: import('../../../main.lib').FileRetrieve["id"];
|
|
114
|
-
snapshot_id?: import('../../../main.lib').FileRetrieve["id"];
|
|
122
|
+
snapshot_id?: import('../../../main.lib').FileRetrieve["id"] | undefined;
|
|
115
123
|
name: import('../../../main.lib').FileRetrieve["name"];
|
|
116
|
-
is_deleted?: boolean;
|
|
124
|
+
is_deleted?: boolean | undefined;
|
|
117
125
|
content_url: import('../../../main.lib').FileRetrieve["content_url"];
|
|
118
126
|
content_type: import('../../../main.lib').FileContentTypeEnum | null;
|
|
119
127
|
content_extension: import('../../../main.lib').FileRetrieve["content_extension"];
|
|
120
|
-
|
|
128
|
+
permissions?: {
|
|
129
|
+
can_download?: boolean | undefined;
|
|
130
|
+
can_share?: boolean | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
thumbnail_url?: import('../../../main.lib').FileRetrieve["thumbnail_url"] | undefined;
|
|
121
133
|
content_length: import('../../../main.lib').FileRetrieve["content_length"];
|
|
122
|
-
content_thumbnails?: import('../../../main.lib').FileRetrieve["content_thumbnails"] | null;
|
|
123
|
-
readonly pspdfkit_server_url?: import('../../../components/CFileViewer/CFileViewer.types').FileModel["pspdfkit_server_url"];
|
|
124
|
-
readonly pspdfkit_auth_payload?: import('../../../components/CFileViewer/CFileViewer.types').FileModel["pspdfkit_auth_payload"];
|
|
134
|
+
content_thumbnails?: (import('../../../main.lib').FileRetrieve["content_thumbnails"] | null) | undefined;
|
|
135
|
+
readonly pspdfkit_server_url?: import('../../../components/CFileViewer/CFileViewer.types').FileModel["pspdfkit_server_url"] | undefined;
|
|
136
|
+
readonly pspdfkit_auth_payload?: import('../../../components/CFileViewer/CFileViewer.types').FileModel["pspdfkit_auth_payload"] | undefined;
|
|
125
137
|
};
|
|
126
138
|
type: "file";
|
|
127
139
|
})[];
|
|
128
|
-
size?: "medium";
|
|
129
|
-
layout_type?: import('@canvas-builder/types/canvas').ContentGridLayoutTypes;
|
|
140
|
+
size?: "medium" | undefined;
|
|
141
|
+
layout_type?: import('@canvas-builder/types/canvas').ContentGridLayoutTypes | undefined;
|
|
130
142
|
} | {
|
|
131
143
|
sections: {
|
|
132
144
|
id: string;
|
|
133
|
-
style?: Record<string, any
|
|
134
|
-
aspect_ratio?: "unlocked" | "16:9" | "16:10" | "4:3" | "1:1";
|
|
135
|
-
background_video_url?: string;
|
|
145
|
+
style?: Record<string, any> | undefined;
|
|
146
|
+
aspect_ratio?: ("unlocked" | "16:9" | "16:10" | "4:3" | "1:1") | undefined;
|
|
147
|
+
background_video_url?: string | undefined;
|
|
136
148
|
}[];
|
|
137
|
-
animation_in?: string;
|
|
149
|
+
animation_in?: string | undefined;
|
|
138
150
|
} | {
|
|
139
151
|
html: string;
|
|
140
152
|
} | {
|
|
141
|
-
alignment?: import('@canvas-builder/types/canvas').LinkAlignmentTypes;
|
|
142
|
-
background_color?: string;
|
|
143
|
-
canvas_anchor?: string;
|
|
144
|
-
color?: string;
|
|
145
|
-
display_text?: string;
|
|
146
|
-
font_family?: string;
|
|
147
|
-
font_size?: number;
|
|
148
|
-
link_type?: import('@canvas-builder/types/canvas').LinkAnchorTypes;
|
|
149
|
-
preview_type?: import('@canvas-builder/types/canvas').LinkPreviewTypes;
|
|
150
|
-
target?: "_self" | "_blank";
|
|
151
|
-
url?: string;
|
|
153
|
+
alignment?: import('@canvas-builder/types/canvas').LinkAlignmentTypes | undefined;
|
|
154
|
+
background_color?: string | undefined;
|
|
155
|
+
canvas_anchor?: string | undefined;
|
|
156
|
+
color?: string | undefined;
|
|
157
|
+
display_text?: string | undefined;
|
|
158
|
+
font_family?: string | undefined;
|
|
159
|
+
font_size?: number | undefined;
|
|
160
|
+
link_type?: import('@canvas-builder/types/canvas').LinkAnchorTypes | undefined;
|
|
161
|
+
preview_type?: import('@canvas-builder/types/canvas').LinkPreviewTypes | undefined;
|
|
162
|
+
target?: ("_self" | "_blank") | undefined;
|
|
163
|
+
url?: string | undefined;
|
|
152
164
|
} | {
|
|
153
|
-
aspect_ratio?: "unlocked" | "16:9" | "16:10" | "4:3" | "1:1";
|
|
154
|
-
background_video_url?: string;
|
|
165
|
+
aspect_ratio?: ("unlocked" | "16:9" | "16:10" | "4:3" | "1:1") | undefined;
|
|
166
|
+
background_video_url?: string | undefined;
|
|
155
167
|
} | {
|
|
156
168
|
events: {
|
|
157
|
-
top_hint?: string;
|
|
158
|
-
top_hint_style?: Record<string, any
|
|
159
|
-
title?: string;
|
|
160
|
-
title_style?: Record<string, any
|
|
161
|
-
description?: string;
|
|
162
|
-
description_style?: Record<string, any
|
|
163
|
-
image_url?: string;
|
|
164
|
-
image_style?: Record<string, any
|
|
165
|
-
icon?: string;
|
|
166
|
-
icon_style?: Record<string, any
|
|
167
|
-
card_style?: Record<string, any
|
|
169
|
+
top_hint?: string | undefined;
|
|
170
|
+
top_hint_style?: Record<string, any> | undefined;
|
|
171
|
+
title?: string | undefined;
|
|
172
|
+
title_style?: Record<string, any> | undefined;
|
|
173
|
+
description?: string | undefined;
|
|
174
|
+
description_style?: Record<string, any> | undefined;
|
|
175
|
+
image_url?: string | undefined;
|
|
176
|
+
image_style?: Record<string, any> | undefined;
|
|
177
|
+
icon?: string | undefined;
|
|
178
|
+
icon_style?: Record<string, any> | undefined;
|
|
179
|
+
card_style?: Record<string, any> | undefined;
|
|
168
180
|
}[];
|
|
169
181
|
layout: "vertical" | "horizontal";
|
|
170
182
|
} | undefined;
|
|
@@ -1767,7 +1779,7 @@ export default function useCanvasHistory(): {
|
|
|
1767
1779
|
"text-anchor"?: import("csstype").Property.TextAnchor | undefined;
|
|
1768
1780
|
"vector-effect"?: import("csstype").Property.VectorEffect | undefined;
|
|
1769
1781
|
} | undefined;
|
|
1770
|
-
tags?: string[];
|
|
1782
|
+
tags?: string[] | undefined;
|
|
1771
1783
|
}[];
|
|
1772
1784
|
timestamp: string;
|
|
1773
1785
|
}[]>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ComponentNode } from '@canvas-builder/types/canvas';
|
|
2
|
-
import {
|
|
2
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
3
|
import { AppFile } from '../../../types/app';
|
|
4
4
|
|
|
5
5
|
declare function onSectionListUpdateHook({ sectionHookIframes, sectionListIds, sectionListComponentId, activeCanvas, }: {
|
|
6
6
|
sectionHookIframes?: Record<string, HTMLIFrameElement>;
|
|
7
|
-
sectionListIds:
|
|
7
|
+
sectionListIds: CanvasRetrieve['id'][];
|
|
8
8
|
sectionListComponentId: ComponentNode['id'];
|
|
9
|
-
activeCanvas:
|
|
9
|
+
activeCanvas: CanvasRetrieve;
|
|
10
10
|
}): void;
|
|
11
11
|
declare function onCanvasUpdatedHook({ hookIframes, activeCanvas, }: {
|
|
12
12
|
hookIframes?: Record<string, HTMLIFrameElement>;
|
|
13
|
-
activeCanvas:
|
|
13
|
+
activeCanvas: CanvasRetrieve;
|
|
14
14
|
}): void;
|
|
15
15
|
declare function getEmbeddableSrc(app: AppFile): string | undefined;
|
|
16
16
|
declare function setHookRefs(iframeEl: HTMLIFrameElement | null, app: AppFile, hookEvent: string): void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
import { ComponentNode, SectionListProps } from '@canvas-builder/types/canvas';
|
|
3
|
-
import {
|
|
3
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
4
|
|
|
5
5
|
type AnimationDirection = 'Left' | 'Right';
|
|
6
6
|
declare function goToNextPage(): void;
|
|
7
7
|
declare function goToPreviousPage(): void;
|
|
8
|
-
declare function goToPage(componentId: ComponentNode['id'], sectionId?:
|
|
8
|
+
declare function goToPage(componentId: ComponentNode['id'], sectionId?: CanvasRetrieve['id'], options?: {
|
|
9
9
|
scrollToTop: boolean;
|
|
10
10
|
}): void;
|
|
11
11
|
declare function reset(): void;
|
|
12
12
|
export default function useCanvasPages(): {
|
|
13
13
|
activeSectionId: ComputedRef<string | null>;
|
|
14
|
-
activeSectionTheme: ComputedRef<any>;
|
|
14
|
+
activeSectionTheme: ComputedRef<Record<string, any> | null>;
|
|
15
15
|
canvasPages: ComputedRef<ComponentNode<import('@canvas-builder/types/canvas').GridProps | import('@canvas-builder/types/canvas').GridItemProps | import('@canvas-builder/types/canvas').TextProps | import('@canvas-builder/types/canvas').CarouselProps | import('@canvas-builder/types/canvas').MultimediaProps | import('@canvas-builder/types/canvas').EmbeddableProps | import('@canvas-builder/types/canvas').ContentGridProps | SectionListProps | import('@canvas-builder/types/canvas').HtmlProps | import('@canvas-builder/types/canvas').LinkProps | import('@canvas-builder/types/canvas').PageBreakProps | import('@canvas-builder/types/canvas').PageProps | import('@canvas-builder/types/canvas').TimelineProps>[][]>;
|
|
16
16
|
currentPageIndex: import('vue').Ref<number>;
|
|
17
17
|
currentSectionList: ComputedRef<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
3
|
import { ComponentNode, SectionComponentOverrides } from '@canvas-builder/types/canvas';
|
|
4
4
|
|
|
5
5
|
declare function discardOverridesConfirmationOptions(t: (input: string) => string, callback: () => void): {
|
|
@@ -12,13 +12,13 @@ declare function discardOverridesConfirmationOptions(t: (input: string) => strin
|
|
|
12
12
|
};
|
|
13
13
|
declare function cleanup(): void;
|
|
14
14
|
export default function useCanvasSectionOverrides(): {
|
|
15
|
-
getComponentOverrides: (data: Ref<ComponentNode["data"]>, id: Ref<ComponentNode["id"]>, sectionId?: Ref<
|
|
15
|
+
getComponentOverrides: (data: Ref<ComponentNode["data"]>, id: Ref<ComponentNode["id"]>, sectionId?: Ref<CanvasRetrieve["id"]>) => import('vue').ComputedRef<{
|
|
16
16
|
data: (import('@canvas-builder/types/canvas').GridProps | import('@canvas-builder/types/canvas').GridItemProps | import('@canvas-builder/types/canvas').TextProps | import('@canvas-builder/types/canvas').CarouselProps | import('@canvas-builder/types/canvas').MultimediaProps | import('@canvas-builder/types/canvas').EmbeddableProps | import('@canvas-builder/types/canvas').ContentGridProps | import('@canvas-builder/types/canvas').SectionListProps | import('@canvas-builder/types/canvas').HtmlProps | import('@canvas-builder/types/canvas').LinkProps | import('@canvas-builder/types/canvas').PageBreakProps | import('@canvas-builder/types/canvas').PageProps | import('@canvas-builder/types/canvas').TimelineProps) | undefined;
|
|
17
17
|
is_removed: boolean;
|
|
18
18
|
}>;
|
|
19
19
|
discardOverridesConfirmationOptions: typeof discardOverridesConfirmationOptions;
|
|
20
20
|
overrideSectionComponentData: ({ usedInSectionId, componentId, componentData, afterSiblingId, remove, }: {
|
|
21
|
-
usedInSectionId:
|
|
21
|
+
usedInSectionId: CanvasRetrieve["id"];
|
|
22
22
|
componentId: ComponentNode["id"];
|
|
23
23
|
componentData?: ComponentNode["data"];
|
|
24
24
|
afterSiblingId?: ComponentNode["id"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FileTypeEnum, File } from '../../../../types/openapi';
|
|
2
2
|
import { CanvasTheme } from '../../../main.lib';
|
|
3
3
|
|
|
4
4
|
export declare enum ThemeComponentOptionEnum {
|
|
@@ -15,7 +15,6 @@ export interface ThemePadding {
|
|
|
15
15
|
export declare const DEFAULT_GLOBAL_COMPONENT_SPACING = 32;
|
|
16
16
|
export declare const DEFAULT_GLOBAL_COMPONENT_SPACING_INTERVAL = 4;
|
|
17
17
|
declare function cleanup(): void;
|
|
18
|
-
declare function addFontStyleElements(fontName?: string, url?: string): Promise<void>;
|
|
19
18
|
declare function loadCustomFonts(listFiles: (params: any) => Promise<File[]>): Promise<void>;
|
|
20
19
|
declare function setFontAndFetchAsset(fontName?: string, url?: string): Promise<void>;
|
|
21
20
|
declare function updateThemeProperties(theme: Partial<CanvasTheme>): void;
|
|
@@ -26,48 +25,56 @@ export default function useCanvasTheme(): {
|
|
|
26
25
|
customFonts: import('vue').Ref<{
|
|
27
26
|
readonly id: string;
|
|
28
27
|
readonly global_id: string;
|
|
29
|
-
name?: string;
|
|
28
|
+
name?: string | undefined;
|
|
30
29
|
readonly type: FileTypeEnum;
|
|
31
30
|
readonly size: number | null;
|
|
32
|
-
readonly status: import('../../../../types/openapi
|
|
33
|
-
readonly content_type: import('../../../../types/openapi
|
|
31
|
+
readonly status: import('../../../../types/openapi').FileStatusEnum;
|
|
32
|
+
readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
|
|
34
33
|
readonly content_extension: string | null;
|
|
35
34
|
readonly content_length: number | null;
|
|
36
35
|
readonly content_url: string | null;
|
|
37
36
|
readonly original_extension: string | null;
|
|
38
37
|
readonly thumbnail_url: string | null;
|
|
39
|
-
download_type?: import('../../../../types/openapi
|
|
38
|
+
download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
|
|
40
39
|
readonly zip_size: number | null;
|
|
41
40
|
readonly zip_url: string | null;
|
|
42
|
-
access_type?: import('../../../../types/openapi
|
|
43
|
-
readonly role: import('../../../../types/openapi
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
42
|
+
readonly role: import('../../../../types/openapi').CollaborationRoleEnum;
|
|
43
|
+
permissions?: {
|
|
44
|
+
can_download?: boolean | undefined;
|
|
45
|
+
can_share?: boolean | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
metadata?: Record<string, any> | undefined;
|
|
48
|
+
app_metadata?: Record<string, any> | undefined;
|
|
49
|
+
tags?: Array<string> | undefined;
|
|
47
50
|
readonly published_at: string | null;
|
|
48
|
-
expires_at?: string | null;
|
|
51
|
+
expires_at?: (string | null) | undefined;
|
|
49
52
|
readonly instance_id: string;
|
|
50
|
-
folder_id?: string;
|
|
53
|
+
folder_id?: string | undefined;
|
|
51
54
|
readonly shared_link: {
|
|
52
55
|
readonly url: string;
|
|
53
|
-
short_url?: string | null;
|
|
56
|
+
short_url?: (string | null) | undefined;
|
|
57
|
+
};
|
|
58
|
+
readonly owned_by: {
|
|
59
|
+
readonly id: number;
|
|
60
|
+
readonly name: string;
|
|
61
|
+
email?: string | undefined;
|
|
54
62
|
};
|
|
55
63
|
readonly created_at: string;
|
|
56
64
|
readonly created_by: {
|
|
57
65
|
readonly id: number;
|
|
58
66
|
readonly name: string;
|
|
59
|
-
email?: string;
|
|
67
|
+
email?: string | undefined;
|
|
60
68
|
};
|
|
61
69
|
readonly modified_at: string;
|
|
62
70
|
readonly modified_by: {
|
|
63
71
|
readonly id: number;
|
|
64
72
|
readonly name: string;
|
|
65
|
-
email?: string;
|
|
73
|
+
email?: string | undefined;
|
|
66
74
|
};
|
|
67
75
|
}[]>;
|
|
68
76
|
isEditingCanvasTheme: import('vue').Ref<boolean>;
|
|
69
77
|
isFluid: import('vue').Ref<boolean>;
|
|
70
|
-
addFontStyleElements: typeof addFontStyleElements;
|
|
71
78
|
loadCustomFonts: typeof loadCustomFonts;
|
|
72
79
|
setFontAndFetchAsset: typeof setFontAndFetchAsset;
|
|
73
80
|
cleanup: typeof cleanup;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
2
2
|
import { ComponentNode, ComponentNodeVisible } from '@canvas-builder/types/canvas';
|
|
3
3
|
|
|
4
4
|
export default function useCanvasVisibility(): {
|
|
5
5
|
getComponentDefaultVisibility: (type: ComponentNode["type"], mode?: keyof ComponentNodeVisible) => boolean;
|
|
6
6
|
getVisibleCanvasContent: (data: ComponentNode[], mode?: keyof ComponentNodeVisible) => ComponentNode<import('@canvas-builder/types/canvas').GridProps | import('@canvas-builder/types/canvas').GridItemProps | import('@canvas-builder/types/canvas').TextProps | import('@canvas-builder/types/canvas').CarouselProps | import('@canvas-builder/types/canvas').MultimediaProps | import('@canvas-builder/types/canvas').EmbeddableProps | import('@canvas-builder/types/canvas').ContentGridProps | import('@canvas-builder/types/canvas').SectionListProps | import('@canvas-builder/types/canvas').HtmlProps | import('@canvas-builder/types/canvas').LinkProps | import('@canvas-builder/types/canvas').PageBreakProps | import('@canvas-builder/types/canvas').PageProps | import('@canvas-builder/types/canvas').TimelineProps>[];
|
|
7
7
|
getVisibleKey: () => keyof ComponentNodeVisible | undefined;
|
|
8
|
-
shouldRenderComponentWrapper: (c: ComponentNode, sectionId?:
|
|
8
|
+
shouldRenderComponentWrapper: (c: ComponentNode, sectionId?: CanvasRetrieve["id"]) => boolean | undefined;
|
|
9
9
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ComponentNode } from '@canvas-builder/types/canvas';
|
|
2
|
-
import {
|
|
2
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
3
|
|
|
4
4
|
declare function resetClickedOnSection(): void;
|
|
5
|
-
declare function setClickedOnSection(sectionListId: ComponentNode['id'], sectionId:
|
|
5
|
+
declare function setClickedOnSection(sectionListId: ComponentNode['id'], sectionId: CanvasRetrieve['id']): void;
|
|
6
6
|
export default function useCanvasTheme(): {
|
|
7
7
|
clickedOnSection: Readonly<import('vue').Ref<{
|
|
8
8
|
readonly sectionListId: ComponentNode["id"];
|
|
9
|
-
readonly sectionId:
|
|
9
|
+
readonly sectionId: CanvasRetrieve["id"];
|
|
10
10
|
} | undefined>>;
|
|
11
11
|
resetClickedOnSection: typeof resetClickedOnSection;
|
|
12
12
|
setClickedOnSection: typeof setClickedOnSection;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ComponentNode } from '@canvas-builder/types/canvas';
|
|
3
|
-
import {
|
|
3
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
4
|
|
|
5
5
|
export default function ({ id, usedInSectionId, when_used_in_section, }: {
|
|
6
6
|
id: Ref<ComponentNode['id']>;
|
|
7
|
-
usedInSectionId: Ref<
|
|
7
|
+
usedInSectionId: Ref<CanvasRetrieve['id']>;
|
|
8
8
|
when_used_in_section: Ref<ComponentNode['when_used_in_section']>;
|
|
9
9
|
}): import('vue').ComputedRef<{
|
|
10
10
|
hasSomethingEditable: boolean;
|
|
@@ -9,6 +9,7 @@ type ContentSelectorPayload = {
|
|
|
9
9
|
selections?: Selection[];
|
|
10
10
|
allowedSelectorTypes?: SelectorType[];
|
|
11
11
|
allowedContentTypes?: FileContentTypeEnum[];
|
|
12
|
+
allowedAssetContentTypes?: FileContentTypeEnum[];
|
|
12
13
|
maxSelections?: number;
|
|
13
14
|
};
|
|
14
15
|
declare function clearContentSelectorMode(): void;
|
|
@@ -29,7 +30,7 @@ export default function (): {
|
|
|
29
30
|
selections?: ({
|
|
30
31
|
fileId: FileRetrieve["id"];
|
|
31
32
|
type: "file" | "page";
|
|
32
|
-
pageIndex?: number;
|
|
33
|
+
pageIndex?: number | undefined;
|
|
33
34
|
} | {
|
|
34
35
|
url: string;
|
|
35
36
|
type: "external_link";
|
|
@@ -38,9 +39,10 @@ export default function (): {
|
|
|
38
39
|
fileId: FileRetrieve["id"];
|
|
39
40
|
type: "asset";
|
|
40
41
|
})[] | undefined;
|
|
41
|
-
allowedSelectorTypes?: SelectorType[];
|
|
42
|
-
allowedContentTypes?: FileContentTypeEnum[];
|
|
43
|
-
|
|
42
|
+
allowedSelectorTypes?: SelectorType[] | undefined;
|
|
43
|
+
allowedContentTypes?: FileContentTypeEnum[] | undefined;
|
|
44
|
+
allowedAssetContentTypes?: FileContentTypeEnum[] | undefined;
|
|
45
|
+
maxSelections?: number | undefined;
|
|
44
46
|
}>;
|
|
45
47
|
setContentSelectorMode: typeof setContentSelectorMode;
|
|
46
48
|
prepareContentGridNodeData: typeof prepareContentGridNodeData;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { AppFile } from '../../../types/app';
|
|
2
|
+
import { AppFile, EmbeddedAppShortcut } from '../../../types/app';
|
|
3
3
|
|
|
4
4
|
export declare function useInstalledEmbeddables(): {
|
|
5
5
|
isFetching: import('vue').Ref<boolean>;
|
|
6
6
|
installedEmbeddablesById: import('vue').Ref<Record<string, AppFile> | null>;
|
|
7
7
|
refetchedFor: Record<string, boolean>;
|
|
8
8
|
shouldUseDeviceUrl: ComputedRef<boolean | undefined>;
|
|
9
|
+
shortcuts: ComputedRef<Record<"edit" | "fullscreen" | "presentation", (EmbeddedAppShortcut & {
|
|
10
|
+
appName: string;
|
|
11
|
+
})[]>>;
|
|
9
12
|
refetch: (fileId?: AppFile["id"]) => void;
|
|
10
13
|
cleanup: () => void;
|
|
11
14
|
getDeviceUrl: (fileId?: AppFile["id"]) => string | undefined;
|
|
@@ -2,12 +2,12 @@ import { AxiosInstance } from 'axios';
|
|
|
2
2
|
import { PitcherInfo } from '../../../types/app';
|
|
3
3
|
import { ContentGridProps, CanvasBuilderProps } from '@canvas-builder/types/canvas';
|
|
4
4
|
import { RecommendedContent } from '@canvas-builder/types/recommendations.types';
|
|
5
|
-
import {
|
|
5
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
6
6
|
import { InstanceSettings } from '../../../types/instanceSettings.types';
|
|
7
7
|
|
|
8
8
|
declare function autofillCanvasContentGridsWithAi(filesFetcher: NonNullable<CanvasBuilderProps['listFiles']>): Promise<void>;
|
|
9
9
|
declare function autofillSectionContentGridsWithAi(filesFetcher: NonNullable<CanvasBuilderProps['listFiles']>): Promise<void>;
|
|
10
|
-
declare function autofillSectionContentGridsWithMatchingProperties(sectionId:
|
|
10
|
+
declare function autofillSectionContentGridsWithMatchingProperties(sectionId: CanvasRetrieve['id'], options: {
|
|
11
11
|
filesFetcher: NonNullable<CanvasBuilderProps['listFiles']>;
|
|
12
12
|
http: AxiosInstance;
|
|
13
13
|
pitcherInfo: PitcherInfo;
|
|
@@ -22,7 +22,7 @@ declare function autofillCanvasContentGridsWithMatchingProperties(options: {
|
|
|
22
22
|
declare function cleanup(): void;
|
|
23
23
|
export default function useRecommendations(): {
|
|
24
24
|
contextSections: import('vue').ComputedRef<{
|
|
25
|
-
id:
|
|
25
|
+
id: CanvasRetrieve["id"];
|
|
26
26
|
list_header_html?: string;
|
|
27
27
|
recommended?: boolean;
|
|
28
28
|
removed_by_user?: boolean;
|
|
@@ -32,7 +32,7 @@ export default function useRecommendations(): {
|
|
|
32
32
|
recommendedContent: import('vue').ComputedRef<{
|
|
33
33
|
content_grids?: RecommendedContent;
|
|
34
34
|
sections?: {
|
|
35
|
-
[key:
|
|
35
|
+
[key: CanvasRetrieve["id"]]: {
|
|
36
36
|
content_grids?: RecommendedContent;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
import { SectionPopularityCategory, SectionExtra } from '../../../types/sectionPopularity';
|
|
3
|
-
import {
|
|
3
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
4
|
|
|
5
|
-
type SorterFunction = (item:
|
|
5
|
+
type SorterFunction = (item: CanvasRetrieve) => string | number | boolean;
|
|
6
6
|
type OrderDirection = 'asc' | 'desc';
|
|
7
7
|
declare function calculateTrendline(data: number[]): number;
|
|
8
8
|
declare function getPopularityCategory(value: number): SectionPopularityCategory.NONE | SectionPopularityCategory.POPULAR;
|