@pitcher/js-api 1.21.0-beta.13 → 1.21.0-beta.15
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 +111 -6
- 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/browser/stores/api.d.ts +164 -104
- package/lib/apps/browser/stores/app.d.ts +6 -1
- package/lib/apps/browser/stores/upload.d.ts +30 -30
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +508 -421
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +86 -74
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +18 -20
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +5 -5
- package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +4 -1
- package/lib/apps/canvas-builder/types/canvas.d.ts +1 -0
- package/lib/apps/canvas-builder/util/canvas.util.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/filters/filter.util.d.ts +1 -1
- 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 +26 -20
- package/lib/sdk/api/HighLevelApi.d.ts +95 -2
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +24 -8
- package/lib/sdk/api/modules/admin/env.admin.d.ts +3 -2
- package/lib/sdk/api/modules/admin/files.admin.d.ts +10 -10
- package/lib/sdk/api/modules/admin/index.d.ts +20 -0
- package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +1 -2
- package/lib/sdk/api/modules/admin/types.admin.d.ts +94 -0
- package/lib/sdk/api/modules/canvas.d.ts +2 -4
- package/lib/sdk/api/modules/dsr/env.dsr.d.ts +4 -3
- package/lib/sdk/api/modules/dsr/index.d.ts +7 -0
- 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 +1 -2
- 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 +73 -0
- package/lib/sdk/api/modules/ui/content.ui.d.ts +36 -3
- package/lib/sdk/api/modules/ui/index.d.ts +114 -0
- 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 +60 -0
- package/lib/sdk/api/modules/users.d.ts +4 -0
- package/lib/sdk/interfaces.d.ts +117 -0
- package/lib/sdk/main.d.ts +102 -6
- package/lib/sdk/payload.types.d.ts +132 -0
- package/lib/types/app.d.ts +11 -0
- 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 +4 -5
- package/types/openapi/models/AccessTypeEnum.d.ts +3 -1
- package/types/openapi/models/Canvas.d.ts +1 -0
- package/types/openapi/models/CanvasCreate.d.ts +1 -0
- package/types/openapi/models/CanvasCreateRequest.d.ts +1 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +1 -0
- package/types/openapi/models/CanvasUpdate.d.ts +1 -0
- package/types/openapi/models/CanvasUpdateRequest.d.ts +1 -0
- package/types/openapi/models/DeletedCanvas.d.ts +1 -0
- package/types/openapi/models/DeletedFolder.d.ts +3 -3
- package/types/openapi/models/Folder.d.ts +3 -3
- package/types/openapi/models/FolderCanvas.d.ts +11 -0
- package/types/openapi/models/FolderCreate.d.ts +7 -7
- package/types/openapi/models/FolderCreateRequest.d.ts +3 -2
- package/types/openapi/models/FolderFile.d.ts +2 -0
- package/types/openapi/models/FolderFolder.d.ts +4 -2
- package/types/openapi/models/FolderRetrieve.d.ts +7 -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 +7 -8
- package/types/openapi/models/FolderUpdateRequest.d.ts +2 -0
- package/types/openapi/models/OperatorEnum.d.ts +64 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +1 -0
- package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +2 -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/FileRequest.d.ts +0 -16
- 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
|
@@ -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,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,57 +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
|
|
41
|
+
access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
42
|
+
readonly role: import('../../../../types/openapi').CollaborationRoleEnum;
|
|
44
43
|
permissions?: {
|
|
45
|
-
can_download?: boolean;
|
|
46
|
-
can_share?: boolean;
|
|
44
|
+
can_download?: boolean | undefined;
|
|
45
|
+
can_share?: boolean | undefined;
|
|
47
46
|
} | undefined;
|
|
48
|
-
metadata?: Record<string, any
|
|
49
|
-
app_metadata?: Record<string, any
|
|
50
|
-
tags?: Array<string
|
|
47
|
+
metadata?: Record<string, any> | undefined;
|
|
48
|
+
app_metadata?: Record<string, any> | undefined;
|
|
49
|
+
tags?: Array<string> | undefined;
|
|
51
50
|
readonly published_at: string | null;
|
|
52
|
-
expires_at?: string | null;
|
|
51
|
+
expires_at?: (string | null) | undefined;
|
|
53
52
|
readonly instance_id: string;
|
|
54
|
-
folder_id?: string;
|
|
53
|
+
folder_id?: string | undefined;
|
|
55
54
|
readonly shared_link: {
|
|
56
55
|
readonly url: string;
|
|
57
|
-
short_url?: string | null;
|
|
56
|
+
short_url?: (string | null) | undefined;
|
|
58
57
|
};
|
|
59
58
|
readonly owned_by: {
|
|
60
59
|
readonly id: number;
|
|
61
60
|
readonly name: string;
|
|
62
|
-
email?: string;
|
|
61
|
+
email?: string | undefined;
|
|
63
62
|
};
|
|
64
63
|
readonly created_at: string;
|
|
65
64
|
readonly created_by: {
|
|
66
65
|
readonly id: number;
|
|
67
66
|
readonly name: string;
|
|
68
|
-
email?: string;
|
|
67
|
+
email?: string | undefined;
|
|
69
68
|
};
|
|
70
69
|
readonly modified_at: string;
|
|
71
70
|
readonly modified_by: {
|
|
72
71
|
readonly id: number;
|
|
73
72
|
readonly name: string;
|
|
74
|
-
email?: string;
|
|
73
|
+
email?: string | undefined;
|
|
75
74
|
};
|
|
76
75
|
}[]>;
|
|
77
76
|
isEditingCanvasTheme: import('vue').Ref<boolean>;
|
|
78
77
|
isFluid: import('vue').Ref<boolean>;
|
|
79
|
-
addFontStyleElements: typeof addFontStyleElements;
|
|
80
78
|
loadCustomFonts: typeof loadCustomFonts;
|
|
81
79
|
setFontAndFetchAsset: typeof setFontAndFetchAsset;
|
|
82
80
|
cleanup: typeof cleanup;
|
|
@@ -30,7 +30,7 @@ export default function (): {
|
|
|
30
30
|
selections?: ({
|
|
31
31
|
fileId: FileRetrieve["id"];
|
|
32
32
|
type: "file" | "page";
|
|
33
|
-
pageIndex?: number;
|
|
33
|
+
pageIndex?: number | undefined;
|
|
34
34
|
} | {
|
|
35
35
|
url: string;
|
|
36
36
|
type: "external_link";
|
|
@@ -39,10 +39,10 @@ export default function (): {
|
|
|
39
39
|
fileId: FileRetrieve["id"];
|
|
40
40
|
type: "asset";
|
|
41
41
|
})[] | undefined;
|
|
42
|
-
allowedSelectorTypes?: SelectorType[];
|
|
43
|
-
allowedContentTypes?: FileContentTypeEnum[];
|
|
44
|
-
allowedAssetContentTypes?: FileContentTypeEnum[];
|
|
45
|
-
maxSelections?: number;
|
|
42
|
+
allowedSelectorTypes?: SelectorType[] | undefined;
|
|
43
|
+
allowedContentTypes?: FileContentTypeEnum[] | undefined;
|
|
44
|
+
allowedAssetContentTypes?: FileContentTypeEnum[] | undefined;
|
|
45
|
+
maxSelections?: number | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
setContentSelectorMode: typeof setContentSelectorMode;
|
|
48
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;
|
|
@@ -108,6 +108,7 @@ type ContentGridCommonFileProps = {
|
|
|
108
108
|
content_url?: FileRetrieve['content_url'];
|
|
109
109
|
content_type?: FileContentTypeEnum | null;
|
|
110
110
|
content_extension?: FileRetrieve['content_extension'];
|
|
111
|
+
permissions?: FileRetrieve['permissions'];
|
|
111
112
|
};
|
|
112
113
|
export type ContentGridFileProps = ContentGridCommonFileProps & {
|
|
113
114
|
thumbnail_url?: FileRetrieve['thumbnail_url'];
|
|
@@ -9,6 +9,7 @@ export declare function getComponentKeywords(type: ComponentTypes, t: (input: st
|
|
|
9
9
|
export declare function getComponentTitle(type: ComponentTypes | string, t: (input: string) => string): string;
|
|
10
10
|
export declare function getComponentDescription(type: ComponentTypes | string, t: (input: string) => string): string;
|
|
11
11
|
export declare function getNodeDisplayNameByComponentType(node: ComponentNode | null | undefined): string;
|
|
12
|
+
export declare function getSectionGlobalComponentSpacing(section: CanvasRetrieve['sections'][number]): string | undefined;
|
|
12
13
|
export declare function discardSectionComponentOverride(sectionId: CanvasRetrieve['id'], componentId: ComponentNode['id'], overrides: SectionComponentOverrides): SectionComponentOverrides;
|
|
13
14
|
export declare function addCanvasComponent(currentContent: ComponentNode[], add: {
|
|
14
15
|
type: ComponentTypes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref, ComputedRef, UnwrapNestedRefs } from 'vue';
|
|
2
|
-
import { FolderRetrieve, FolderFile, FileRetrieve, File } from '../../../../types/openapi';
|
|
2
|
+
import { FolderRetrieve, FolderFile, FileRetrieve, File, FolderFolder } from '../../../../types/openapi';
|
|
3
3
|
|
|
4
4
|
export type SelectorType = 'content' | 'assets' | 'external_links';
|
|
5
5
|
export type SelectedPage = {
|
|
@@ -9,12 +9,16 @@ export type SelectedPage = {
|
|
|
9
9
|
name: File['name'];
|
|
10
10
|
};
|
|
11
11
|
page_index: number;
|
|
12
|
+
permissions?: File['permissions'];
|
|
12
13
|
thumbnail_url?: string;
|
|
13
14
|
type: 'page';
|
|
14
15
|
};
|
|
15
16
|
export type SelectedFile = FolderFile & {
|
|
16
17
|
type: 'file';
|
|
17
18
|
};
|
|
19
|
+
export type SelectedFolder = FolderFolder & {
|
|
20
|
+
type: 'folder';
|
|
21
|
+
};
|
|
18
22
|
export type SelectedAsset = {
|
|
19
23
|
id: File['id'];
|
|
20
24
|
type: 'asset';
|
|
@@ -52,6 +56,7 @@ interface State {
|
|
|
52
56
|
isFetchingFolderItems: Ref<boolean>;
|
|
53
57
|
isFetchingFile: Ref<boolean>;
|
|
54
58
|
}
|
|
59
|
+
declare function deselectAllFiles(f: SelectedFile[] | Pick<FolderFile, 'id'>[]): void;
|
|
55
60
|
declare function deselectFile(f: SelectedFile | Pick<FolderFile, 'id'>): void;
|
|
56
61
|
declare function deselectPage(p: SelectedPage): void;
|
|
57
62
|
declare function deselectAsset(a: SelectedAsset): void;
|
|
@@ -61,6 +66,8 @@ export default function (): {
|
|
|
61
66
|
setSelectedItems(items: ContentSelectorSelectedItem[]): void;
|
|
62
67
|
setActiveSelectorType(s?: SelectorType): void;
|
|
63
68
|
selectItem(i: ContentSelectorSelectedItem): void;
|
|
69
|
+
selectAllFiles(selection: SelectedFile[]): void;
|
|
70
|
+
deselectAllFiles: typeof deselectAllFiles;
|
|
64
71
|
deselectFile: typeof deselectFile;
|
|
65
72
|
deselectPage: typeof deselectPage;
|
|
66
73
|
deselectAsset: typeof deselectAsset;
|
|
@@ -12,8 +12,7 @@ interface FileViewerActions {
|
|
|
12
12
|
onCloseFile: () => void;
|
|
13
13
|
onToggleFavoriteFilePage: (pageIndex: number) => void;
|
|
14
14
|
}
|
|
15
|
-
declare const _default: ({
|
|
16
|
-
videoPlayerEl: Ref<HTMLVideoElement | null>;
|
|
15
|
+
declare const _default: ({ pdfViewerEl, bottomBarRef, i18n, appLocale, actions, filePagesFavorites, assetsPrefix, isFavoriteEnabled, clientType, context, }: {
|
|
17
16
|
pdfViewerEl: Ref<HTMLElement | null>;
|
|
18
17
|
bottomBarRef: Ref<InstanceType<typeof CFileViewerBottomPdf> | null>;
|
|
19
18
|
filePagesFavorites: ComputedRef<Favorite[] | null>;
|
|
@@ -26,8 +25,7 @@ declare const _default: ({ videoPlayerEl, pdfViewerEl, bottomBarRef, i18n, appLo
|
|
|
26
25
|
context?: Record<string, any>;
|
|
27
26
|
}) => {
|
|
28
27
|
viewPdf: (file: FileModel | CanvasFile | null, pageIndex: MiniPage["page_index"]) => Promise<void | Instance>;
|
|
29
|
-
|
|
30
|
-
onPdfFullScreen: () => void;
|
|
28
|
+
onPdfFullScreen: (forceEnter?: boolean) => Promise<void>;
|
|
31
29
|
updateFileViewerSettings: (partialSettings: Partial<import('../../types/fileViewerSettings.types').FileViewerSettings>) => void;
|
|
32
30
|
cleanupPspdfKit: () => void;
|
|
33
31
|
isSearchOpen: Ref<boolean>;
|
|
@@ -11,6 +11,6 @@ declare const _default: ({ pdfViewerEl, bottomBarRef, instance, isThumbnailsOpen
|
|
|
11
11
|
}) => {
|
|
12
12
|
registerFullscreenChangeEvents: (callback: (event: Event) => void) => void;
|
|
13
13
|
removeFullscreenChangeEvents: (callback: (event: Event) => void) => void;
|
|
14
|
-
onFullScreen: () => void
|
|
14
|
+
onFullScreen: (forceEnter?: boolean) => Promise<void>;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function normalizeFilterParams(params: Record<string, any>): Record<string, any>;
|
|
2
|
-
export declare function normalizeNetworkFilterParams(params
|
|
2
|
+
export declare function normalizeNetworkFilterParams(params?: Record<string, any> | null): Record<string, any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Tag, Instance } from '../../types/openapi';
|
|
2
|
+
|
|
3
|
+
export default function useInstanceTagsActions(): {
|
|
4
|
+
fetchInstanceTags: ({ search, instanceId, page, pageSize, }: {
|
|
5
|
+
search: string;
|
|
6
|
+
instanceId?: Instance["id"];
|
|
7
|
+
page?: number;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
}) => Promise<Tag[]>;
|
|
10
|
+
fetchAllInstanceTags: ({ search, instanceId }: {
|
|
11
|
+
search?: string;
|
|
12
|
+
instanceId?: Instance["id"];
|
|
13
|
+
}) => Promise<Tag[]>;
|
|
14
|
+
};
|
|
@@ -8,5 +8,5 @@ export default function useRecentFiles({ instanceId, app, }: {
|
|
|
8
8
|
}): {
|
|
9
9
|
addRecentFile: (file: RecentFile) => void;
|
|
10
10
|
instanceRecentFiles: ComputedRef<RecentFile[]>;
|
|
11
|
-
updateRecentFiles: (files:
|
|
11
|
+
updateRecentFiles: (files: Partial<RecentFile>[]) => void;
|
|
12
12
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/vue-table';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
import { TableColumnSetting } from '../components/CTableColumnsSettings/CTableColumnsSettings.vue';
|
|
4
|
+
|
|
5
|
+
export type TableSettings = {
|
|
6
|
+
columns: {
|
|
7
|
+
[key: string]: {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
order: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare function useTableColumnsSettings(tableSettingsKey: string, columns: ColumnDef<Record<string, any>, any>[], excludeColumnIds?: string[]): {
|
|
14
|
+
tableColumnsSettings: ComputedRef<TableColumnSetting[]>;
|
|
15
|
+
columnsFromSettings: ComputedRef<ColumnDef<Record<string, any>, any>[]>;
|
|
16
|
+
onColumnsMove: ({ targetItemId, itemId }: {
|
|
17
|
+
targetItemId: string;
|
|
18
|
+
itemId: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
onColumnsSelect: ({ id, checked }: {
|
|
21
|
+
id: string;
|
|
22
|
+
checked: boolean;
|
|
23
|
+
}) => void;
|
|
24
|
+
restoreColumns: () => void;
|
|
25
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface CanvasOverlay {
|
|
2
|
+
id: string;
|
|
3
|
+
fullscreen?: boolean;
|
|
4
|
+
edit_mode?: boolean;
|
|
5
|
+
component_id?: string;
|
|
6
|
+
section_id?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: () => {
|
|
9
|
+
isCanvasOverlayOpen: import('vue').ComputedRef<boolean>;
|
|
10
|
+
initialCanvas: import('vue').ComputedRef<{
|
|
11
|
+
id: string;
|
|
12
|
+
fullscreen?: boolean | undefined;
|
|
13
|
+
edit_mode?: boolean | undefined;
|
|
14
|
+
component_id?: string | undefined;
|
|
15
|
+
section_id?: string | undefined;
|
|
16
|
+
} | undefined>;
|
|
17
|
+
openCanvasOverlay: ({ id, fullscreen, edit_mode, component_id, section_id }: CanvasOverlay) => void;
|
|
18
|
+
closeCanvasOverlay: () => void;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -18,6 +18,7 @@ declare const _default: () => {
|
|
|
18
18
|
create: (options: ConfirmationOptions) => import('naive-ui').DialogReactive;
|
|
19
19
|
warning: (options: ConfirmationOptions) => import('naive-ui').DialogReactive;
|
|
20
20
|
error: (options: ConfirmationOptions) => import('naive-ui').DialogReactive;
|
|
21
|
+
danger: (options: ConfirmationOptions) => import('naive-ui').DialogReactive;
|
|
21
22
|
info: (options: ConfirmationOptions) => import('naive-ui').DialogReactive;
|
|
22
23
|
};
|
|
23
24
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ViewCompactFolder } from '../types/files';
|
|
2
|
+
import { FileContentTypeEnum } from '../../types/openapi';
|
|
3
|
+
|
|
4
|
+
export declare function renderContentType(contentType: FileContentTypeEnum): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function getFolderDescription(item: Partial<ViewCompactFolder>): string;
|
|
8
|
+
export default function useFiles(): {
|
|
9
|
+
getFolderDescription: typeof getFolderDescription;
|
|
10
|
+
renderContentType: typeof renderContentType;
|
|
11
|
+
};
|