@pitcher/js-api 1.22.0-rc.2 → 1.22.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.map +1 -1
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/browser/App.vue.d.ts +2 -2
- package/lib/apps/browser/components/UploadFilesWidget/UploadFilesWidget.vue.d.ts +1 -1
- package/lib/apps/browser/stores/upload.d.ts +5 -5
- package/lib/apps/canvas-builder/App.helpers.d.ts +2 -2
- package/lib/apps/canvas-builder/App.vue.d.ts +39 -39
- package/lib/apps/canvas-builder/components/container/ComponentDrawer/ComponentDrawer.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentLegacy.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentRevamp.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/Carousel/Carousel.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Carousel/Carousel.settings.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Carousel/Carousel.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionGroupSelector.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionListItem.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.edit.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionSelector.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/components/PreviewImage.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/arrow-keys.use.d.ts +6 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/gestures.use.d.ts +13 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/zoom.use.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +2 -2
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGrid.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGrid.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridCarousel.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridFileItem.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGridItem.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.edit.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.settings.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Grid/Grid.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Grid/GridItemTooltip.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Html/Html.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.edit.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.settings.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Link/Link.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Link/Link.settings.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Link/Link.util.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Link/Link.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.settings.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Page/Page.settings.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Page/Page.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/PageBreak/PageBreak.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionListCollapsibles.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Text/Text.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Timeline/Timeline.raw.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/components/ui/Timeline/Timeline.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +68 -66
- package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +17 -17
- package/lib/apps/canvas-builder/composables/useCanvasHooks.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCollectionPlayer.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +3 -3
- package/lib/apps/canvas-builder/constants/canvas.const.d.ts +1 -1
- package/lib/apps/canvas-builder/types/canvas.d.ts +2 -2
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +7 -7
- package/lib/apps/canvas-builder/util/tree.d.ts +1 -1
- package/lib/apps/canvas-selector/App.vue.d.ts +1 -1
- package/lib/apps/canvas-selector/constants/index.d.ts +1 -1
- package/lib/apps/canvas-selector/stores/app.d.ts +29 -15
- package/lib/apps/content-selector/App.vue.d.ts +2 -2
- package/lib/apps/content-selector/appTypes.d.ts +1 -1
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts +1 -1
- package/lib/apps/content-selector/stores/app.d.ts +1 -1
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +4 -4
- package/lib/components/CError/CErrorFullScreen.vue.d.ts +1 -1
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.use.d.ts +1 -1
- package/lib/components/CFilesAccessManage/CFilesAccessManage.vue.d.ts +1 -1
- package/lib/components/CIcon/CIcon.vue.d.ts +1 -1
- package/lib/components/CInfoBadge/CInfoBadge.vue.d.ts +1 -1
- package/lib/components/CPaddingInput/CPaddingInput.vue.d.ts +1 -1
- package/lib/components/canvas-templates/CTemplateManagementActionsCellIconWrapper.vue.d.ts +1 -1
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +12 -26
- package/lib/composables/useTheme.d.ts +1 -1
- package/lib/main.lib.d.ts +15 -14
- package/lib/sdk/api/modules/admin/types.admin.d.ts +3 -3
- package/lib/sdk/api/modules/dsr/files.dsr.d.ts +1 -1
- package/lib/sdk/api/modules/ui/types.ui.d.ts +4 -4
- package/lib/theme/light.const.d.ts +1 -1
- package/lib/theme/light.d.ts +1 -1
- package/lib/theme/theme-overrides.d.ts +1 -1
- package/lib/theme/theme.utils.d.ts +1 -1
- package/lib/types/files.d.ts +1 -1
- package/lib/types/organizationSettings.types.d.ts +2 -0
- package/lib/util/font.util.d.ts +1 -1
- package/lib/util/network.d.ts +1 -1
- package/lib/util/pitcher-settings.util.d.ts +3 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +1 -1
- package/types/openapi/models/Account.d.ts +1 -1
- package/types/openapi/models/AccountRequest.d.ts +1 -1
- package/types/openapi/models/AppsDBEntry.d.ts +1 -1
- package/types/openapi/models/AppsDBEntryRequest.d.ts +1 -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/FolderCreateRequest.d.ts +1 -1
- package/types/openapi/models/FolderUpdateRequest.d.ts +1 -1
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +1 -0
- package/types/openapi/models/PatchedFilePublishRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +1 -1
- package/types/openapi/models/SharedLinkInstance.d.ts +1 -0
- package/types/openapi/models/SharedLinkInstanceRequest.d.ts +1 -0
- package/types/openapi/models/SharedLinkOrganization.d.ts +1 -0
- package/types/openapi/models/SharedLinkOrganizationRequest.d.ts +1 -0
- package/types/openapi/models/PatchedFileRequest.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CanvasHistoryItem, ComponentNode, CanvasHistoryAction, ComponentTypes } from '
|
|
1
|
+
import { CanvasHistoryItem, ComponentNode, CanvasHistoryAction, ComponentTypes } from '../types/canvas';
|
|
2
2
|
export default function useCanvasHistory(): {
|
|
3
3
|
activeHistoryItemIndex: import('vue').ComputedRef<number>;
|
|
4
4
|
canvasHistory: import('vue').Ref<{
|
|
@@ -20,8 +20,8 @@ export default function useCanvasHistory(): {
|
|
|
20
20
|
allow_admins_to_overwrite?: boolean | undefined;
|
|
21
21
|
autofill?: ("off" | "ai" | "matching_metadata" | "matching_tags" | "matching_metadata_or_tags") | undefined;
|
|
22
22
|
autofill_content_types?: (import('../../../main.lib').FileContentTypeEnum[] | null) | undefined;
|
|
23
|
-
data?: import('
|
|
24
|
-
layout_type: import('
|
|
23
|
+
data?: import('../types/canvas').PageBreakProps | {
|
|
24
|
+
layout_type: import('../types/canvas').GridLayoutTypes;
|
|
25
25
|
columns: number;
|
|
26
26
|
} | {
|
|
27
27
|
span: number;
|
|
@@ -44,7 +44,7 @@ export default function useCanvasHistory(): {
|
|
|
44
44
|
asset_type: "external";
|
|
45
45
|
external_url: string;
|
|
46
46
|
type: "image" | "video";
|
|
47
|
-
horizontal_alignment?: import('
|
|
47
|
+
horizontal_alignment?: import('../types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
|
|
48
48
|
from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
|
|
49
49
|
} | {
|
|
50
50
|
asset_type: "pitcher_asset";
|
|
@@ -54,7 +54,7 @@ export default function useCanvasHistory(): {
|
|
|
54
54
|
content_url?: import('../../../main.lib').File["content_url"] | undefined;
|
|
55
55
|
};
|
|
56
56
|
type: "image" | "video";
|
|
57
|
-
horizontal_alignment?: import('
|
|
57
|
+
horizontal_alignment?: import('../types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
|
|
58
58
|
} | {
|
|
59
59
|
type: "app";
|
|
60
60
|
app_name: string;
|
|
@@ -141,7 +141,7 @@ export default function useCanvasHistory(): {
|
|
|
141
141
|
type: "file";
|
|
142
142
|
})[];
|
|
143
143
|
size?: "medium" | undefined;
|
|
144
|
-
layout_type?: import('
|
|
144
|
+
layout_type?: import('../types/canvas').ContentGridLayoutTypes | undefined;
|
|
145
145
|
} | {
|
|
146
146
|
sections: {
|
|
147
147
|
id: string;
|
|
@@ -158,15 +158,15 @@ export default function useCanvasHistory(): {
|
|
|
158
158
|
width?: string | undefined;
|
|
159
159
|
add_session_context?: boolean | undefined;
|
|
160
160
|
} | {
|
|
161
|
-
alignment?: import('
|
|
161
|
+
alignment?: import('../types/canvas').LinkAlignmentTypes | undefined;
|
|
162
162
|
background_color?: string | undefined;
|
|
163
163
|
canvas_anchor?: string | undefined;
|
|
164
164
|
color?: string | undefined;
|
|
165
165
|
display_text?: string | undefined;
|
|
166
166
|
font_family?: string | undefined;
|
|
167
167
|
font_size?: number | undefined;
|
|
168
|
-
link_type?: import('
|
|
169
|
-
preview_type?: import('
|
|
168
|
+
link_type?: import('../types/canvas').LinkAnchorTypes | undefined;
|
|
169
|
+
preview_type?: import('../types/canvas').LinkPreviewTypes | undefined;
|
|
170
170
|
target?: ("_self" | "_blank") | undefined;
|
|
171
171
|
url?: string | undefined;
|
|
172
172
|
} | {
|
|
@@ -259,8 +259,8 @@ export default function useCanvasHistory(): {
|
|
|
259
259
|
allow_admins_to_overwrite?: boolean | undefined;
|
|
260
260
|
autofill?: ("off" | "ai" | "matching_metadata" | "matching_tags" | "matching_metadata_or_tags") | undefined;
|
|
261
261
|
autofill_content_types?: (import('../../../main.lib').FileContentTypeEnum[] | null) | undefined;
|
|
262
|
-
data?: import('
|
|
263
|
-
layout_type: import('
|
|
262
|
+
data?: import('../types/canvas').PageBreakProps | {
|
|
263
|
+
layout_type: import('../types/canvas').GridLayoutTypes;
|
|
264
264
|
columns: number;
|
|
265
265
|
} | {
|
|
266
266
|
span: number;
|
|
@@ -283,7 +283,7 @@ export default function useCanvasHistory(): {
|
|
|
283
283
|
asset_type: "external";
|
|
284
284
|
external_url: string;
|
|
285
285
|
type: "image" | "video";
|
|
286
|
-
horizontal_alignment?: import('
|
|
286
|
+
horizontal_alignment?: import('../types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
|
|
287
287
|
from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
|
|
288
288
|
} | {
|
|
289
289
|
asset_type: "pitcher_asset";
|
|
@@ -293,7 +293,7 @@ export default function useCanvasHistory(): {
|
|
|
293
293
|
content_url?: import('../../../main.lib').File["content_url"] | undefined;
|
|
294
294
|
};
|
|
295
295
|
type: "image" | "video";
|
|
296
|
-
horizontal_alignment?: import('
|
|
296
|
+
horizontal_alignment?: import('../types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
|
|
297
297
|
} | {
|
|
298
298
|
type: "app";
|
|
299
299
|
app_name: string;
|
|
@@ -380,7 +380,7 @@ export default function useCanvasHistory(): {
|
|
|
380
380
|
type: "file";
|
|
381
381
|
})[];
|
|
382
382
|
size?: "medium" | undefined;
|
|
383
|
-
layout_type?: import('
|
|
383
|
+
layout_type?: import('../types/canvas').ContentGridLayoutTypes | undefined;
|
|
384
384
|
} | {
|
|
385
385
|
sections: {
|
|
386
386
|
id: string;
|
|
@@ -397,15 +397,15 @@ export default function useCanvasHistory(): {
|
|
|
397
397
|
width?: string | undefined;
|
|
398
398
|
add_session_context?: boolean | undefined;
|
|
399
399
|
} | {
|
|
400
|
-
alignment?: import('
|
|
400
|
+
alignment?: import('../types/canvas').LinkAlignmentTypes | undefined;
|
|
401
401
|
background_color?: string | undefined;
|
|
402
402
|
canvas_anchor?: string | undefined;
|
|
403
403
|
color?: string | undefined;
|
|
404
404
|
display_text?: string | undefined;
|
|
405
405
|
font_family?: string | undefined;
|
|
406
406
|
font_size?: number | undefined;
|
|
407
|
-
link_type?: import('
|
|
408
|
-
preview_type?: import('
|
|
407
|
+
link_type?: import('../types/canvas').LinkAnchorTypes | undefined;
|
|
408
|
+
preview_type?: import('../types/canvas').LinkPreviewTypes | undefined;
|
|
409
409
|
target?: ("_self" | "_blank") | undefined;
|
|
410
410
|
url?: string | undefined;
|
|
411
411
|
} | {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentNode } from '
|
|
1
|
+
import { ComponentNode } from '../types/canvas';
|
|
2
2
|
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
3
|
import { AppFile } from '../../../types/app';
|
|
4
4
|
declare function onSectionListUpdateHook({ sectionHookIframes, sectionListIds, sectionListComponentId, activeCanvas, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { ComponentNode, SectionListProps } from '
|
|
2
|
+
import { ComponentNode, SectionListProps } from '../types/canvas';
|
|
3
3
|
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
4
|
type AnimationDirection = 'Left' | 'Right';
|
|
5
5
|
declare function goToNextPage(): void;
|
|
@@ -13,7 +13,7 @@ declare function reset(): void;
|
|
|
13
13
|
export default function useCanvasPages(): {
|
|
14
14
|
activeSectionId: ComputedRef<string | null>;
|
|
15
15
|
activeSectionTheme: ComputedRef<Record<string, any> | null>;
|
|
16
|
-
canvasPages: ComputedRef<ComponentNode<import('
|
|
16
|
+
canvasPages: ComputedRef<ComponentNode<import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').CollectionPlayerProps>[][]>;
|
|
17
17
|
currentPageIndex: import('vue').Ref<number, number>;
|
|
18
18
|
currentSectionList: ComputedRef<{
|
|
19
19
|
sectionListId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
|
-
import { ComponentNode, SectionComponentOverrides } from '
|
|
3
|
+
import { ComponentNode, SectionComponentOverrides } from '../types/canvas';
|
|
4
4
|
declare function discardOverridesConfirmationOptions(t: (input: string) => string, callback: () => void): {
|
|
5
5
|
title: string;
|
|
6
6
|
content: string;
|
|
@@ -12,7 +12,7 @@ declare function discardOverridesConfirmationOptions(t: (input: string) => strin
|
|
|
12
12
|
declare function cleanup(): void;
|
|
13
13
|
export default function useCanvasSectionOverrides(): {
|
|
14
14
|
getComponentOverrides: (data: Ref<ComponentNode["data"]>, id: Ref<ComponentNode["id"]>, sectionId?: Ref<CanvasRetrieve["id"]>) => import('vue').ComputedRef<{
|
|
15
|
-
data: (import('
|
|
15
|
+
data: (import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').CollectionPlayerProps) | undefined;
|
|
16
16
|
is_removed: boolean;
|
|
17
17
|
}>;
|
|
18
18
|
discardOverridesConfirmationOptions: typeof discardOverridesConfirmationOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileTypeEnum, File } from '../../../../types/openapi';
|
|
2
|
-
import { CanvasTheme } from '
|
|
2
|
+
import { CanvasTheme } from '../types/canvas.ts';
|
|
3
3
|
import { CanvasTypographyPreset, CanvasTypographyPresetId } from '../../../types/canvasTheme';
|
|
4
4
|
export declare enum ThemeComponentOptionEnum {
|
|
5
5
|
'COLOR_PICKER' = 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
2
|
-
import { ComponentNode, ComponentNodeVisible } from '
|
|
2
|
+
import { ComponentNode, ComponentNodeVisible } from '../types/canvas';
|
|
3
3
|
export default function useCanvasVisibility(): {
|
|
4
4
|
getComponentDefaultVisibility: (type: ComponentNode["type"], mode?: keyof ComponentNodeVisible) => boolean;
|
|
5
|
-
getVisibleCanvasContent: (data: ComponentNode[], mode?: keyof ComponentNodeVisible) => ComponentNode<import('
|
|
5
|
+
getVisibleCanvasContent: (data: ComponentNode[], mode?: keyof ComponentNodeVisible) => ComponentNode<import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').CollectionPlayerProps>[];
|
|
6
6
|
getVisibleKey: () => keyof ComponentNodeVisible | undefined;
|
|
7
7
|
shouldRenderComponentWrapper: (c: ComponentNode, sectionId?: CanvasRetrieve["id"]) => boolean | undefined;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentNode } from '
|
|
1
|
+
import { ComponentNode } from '../types/canvas';
|
|
2
2
|
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
3
|
declare function resetClickedOnSection(): void;
|
|
4
4
|
declare function setClickedOnSection(sectionListId: ComponentNode['id'], sectionId: CanvasRetrieve['id']): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import { CollectionFile, CollectionPage, CollectionPlayerProps, CollectionSelectorGroup, CollectionSelectorSlide } from '
|
|
2
|
+
import { CollectionFile, CollectionPage, CollectionPlayerProps, CollectionSelectorGroup, CollectionSelectorSlide } from '../types/canvas';
|
|
3
3
|
import { default as useConfirmation } from '../../../composables/useConfirmation';
|
|
4
4
|
type UseCollectionPlayerProps = {
|
|
5
5
|
nodeId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { ComponentNode } from '
|
|
2
|
+
import { ComponentNode } from '../types/canvas';
|
|
3
3
|
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
4
|
export default function ({ id, usedInSectionId, when_used_in_section, }: {
|
|
5
5
|
id: Ref<ComponentNode['id']>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentTypes, MultimediaProps, ComponentNode, ContentGridProps, CollectionSelectorGroup, CollectionPage, CollectionFile } from '
|
|
2
|
-
import { Selection } from '
|
|
1
|
+
import { ComponentTypes, MultimediaProps, ComponentNode, ContentGridProps, CollectionSelectorGroup, CollectionPage, CollectionFile } from '../types/canvas';
|
|
2
|
+
import { Selection } from '../../content-selector/appTypes';
|
|
3
3
|
import { FileContentTypeEnum, FileRetrieve } from '../../../../types/openapi';
|
|
4
|
-
import { SelectedPage, SelectedFile, SelectorType, SelectedExternalLink, SelectedAsset } from '
|
|
4
|
+
import { SelectedPage, SelectedFile, SelectorType, SelectedExternalLink, SelectedAsset } from '../../content-selector/stores/app';
|
|
5
5
|
type ContentSelectorPayload = {
|
|
6
6
|
id: ComponentNode['id'] | null;
|
|
7
7
|
componentType: Extract<ComponentTypes, ComponentTypes.ContentGrid | ComponentTypes.Multimedia | ComponentTypes.CollectionPlayer>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContentGridProps, CanvasBuilderProps } from '
|
|
2
|
-
import { RecommendedContent } from '
|
|
1
|
+
import { ContentGridProps, CanvasBuilderProps } from '../types/canvas';
|
|
2
|
+
import { RecommendedContent } from '../types/recommendations.types';
|
|
3
3
|
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
4
|
import { InstanceSettings } from '../../../types/instanceSettings.types';
|
|
5
5
|
declare function autofillCanvasContentGridsWithAi(filesFetcher: NonNullable<CanvasBuilderProps['listFiles']>): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentNode } from '
|
|
1
|
+
import { ComponentNode } from '../types/canvas';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
3
|
export default function useReorderComponent(): {
|
|
4
|
-
activeComponent: Ref<ComponentNode<import('
|
|
5
|
-
activeChildren: import('vue').WritableComputedRef<ComponentNode<import('
|
|
4
|
+
activeComponent: Ref<ComponentNode<import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').CollectionPlayerProps> | null, ComponentNode<import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').CollectionPlayerProps> | null>;
|
|
5
|
+
activeChildren: import('vue').WritableComputedRef<ComponentNode<import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').CollectionPlayerProps>[], ComponentNode<import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').CollectionPlayerProps>[]>;
|
|
6
6
|
activeTitle: ComputedRef<string>;
|
|
7
7
|
isNewFeatureEnabled: ComputedRef<boolean>;
|
|
8
8
|
isContentVisible: Ref<boolean, boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentMeta, ComponentTypes } from '
|
|
1
|
+
import { ComponentMeta, ComponentTypes } from '../types/canvas';
|
|
2
2
|
export declare const componentMeta: Record<ComponentTypes, ComponentMeta>;
|
|
3
3
|
export declare const defaultWhenUsedInSection: {
|
|
4
4
|
is_editable: boolean;
|
|
@@ -7,10 +7,10 @@ import { PaginatedData } from '../../../types/paginatedData';
|
|
|
7
7
|
import { OpenExternalUrlRequestPayload, PitcherEnv } from '../../../sdk/main';
|
|
8
8
|
import { EmbedLocation, EmbeddedLocationProperties } from '../../../types/app';
|
|
9
9
|
import { FileModel } from '../../../components/CFileViewer/CFileViewer.types';
|
|
10
|
-
import { aspectRatios } from '
|
|
10
|
+
import { aspectRatios } from '../constants';
|
|
11
11
|
import { OpenRequestPayload } from '../../../sdk/payload.types';
|
|
12
12
|
import { CanvasTypographyPreset } from '../../../types/canvasTheme';
|
|
13
|
-
import { FontAwesomeType } from '
|
|
13
|
+
import { FontAwesomeType } from './font-awesome.types';
|
|
14
14
|
type AvailableAspectRatio = (typeof aspectRatios)[number];
|
|
15
15
|
export declare enum HtmlLayoutTypes {
|
|
16
16
|
PREVIEW = "preview",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UnwrapRef } from 'vue';
|
|
2
|
-
import { ComponentTypes, CarouselProps, ComponentNode, ContentGridProps, EmbeddableProps, GridItemProps, GridProps, HtmlProps, IFrameProps, MultimediaProps, SectionComponentOverrides, SectionListProps, TextProps, CanvasBuilderMode, ComponentNodeVisible, LinkProps, CollectionPlayerProps } from '
|
|
2
|
+
import { ComponentTypes, CarouselProps, ComponentNode, ContentGridProps, EmbeddableProps, GridItemProps, GridProps, HtmlProps, IFrameProps, MultimediaProps, SectionComponentOverrides, SectionListProps, TextProps, CanvasBuilderMode, ComponentNodeVisible, LinkProps, CollectionPlayerProps } from '../types/canvas';
|
|
3
3
|
import { CanvasRetrieve, FileRetrieve } from '../../../../types/openapi';
|
|
4
4
|
import { EmbedLocation } from '../../../types/app';
|
|
5
|
-
import { SectionComponentNodesBySectionId, ComponentNodesById } from '
|
|
6
|
-
import { SelectedPage, SelectedFile } from '
|
|
5
|
+
import { SectionComponentNodesBySectionId, ComponentNodesById } from '../composables/useCanvas';
|
|
6
|
+
import { SelectedPage, SelectedFile } from '../../content-selector/stores/app';
|
|
7
7
|
export declare function createNodeId(type?: ComponentTypes): string;
|
|
8
8
|
export declare function getComponentKeywords(type: ComponentTypes, t: (input: string) => string): string[];
|
|
9
9
|
export declare function getComponentTitle(type: ComponentTypes | string, t: (input: string) => string): string;
|
|
@@ -20,13 +20,13 @@ export declare function addCanvasComponent(currentContent: ComponentNode[], add:
|
|
|
20
20
|
withChildren?: ComponentNode['children'];
|
|
21
21
|
withExtraNodeData?: Partial<ComponentNode>;
|
|
22
22
|
}): {
|
|
23
|
-
newContent: ComponentNode<GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('
|
|
23
|
+
newContent: ComponentNode<GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | CollectionPlayerProps>[];
|
|
24
24
|
newComponentId: null;
|
|
25
25
|
} | {
|
|
26
|
-
newContent: ComponentNode<GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('
|
|
26
|
+
newContent: ComponentNode<GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | CollectionPlayerProps>[];
|
|
27
27
|
newComponentId: string;
|
|
28
28
|
};
|
|
29
|
-
export declare function getAllPages(canvasContent: ComponentNode[], currentEmbedLocation: EmbedLocation, isEditMode?: boolean): ComponentNode<GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('
|
|
29
|
+
export declare function getAllPages(canvasContent: ComponentNode[], currentEmbedLocation: EmbedLocation, isEditMode?: boolean): ComponentNode<GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | CollectionPlayerProps>[][];
|
|
30
30
|
export declare function getPageQuantity(canvasContent: ComponentNode[][]): number;
|
|
31
31
|
export declare const getPageRange: (canvasContent: ComponentNode[], currentEmbedLocation: EmbedLocation, start?: number, end?: number) => ComponentNode[][];
|
|
32
32
|
export declare function scrollCanvasToTop(): void;
|
|
@@ -43,5 +43,5 @@ export declare function findEmbeddableInSectionsContent(canvasPages: ComponentNo
|
|
|
43
43
|
export declare function findAllEmbeddableTypesInCanvasContent(componentNodesById: UnwrapRef<ComponentNodesById>): Set<string>;
|
|
44
44
|
export declare function findEmbeddableInCanvasContent(componentNodesById: UnwrapRef<ComponentNodesById>, appName: string): FoundComponent;
|
|
45
45
|
export declare function scrollToComponentById(id: ComponentNode['id'] | null | undefined, delay?: number): void;
|
|
46
|
-
export declare function updateFirstContentGridWithShareboxItems(canvasContent: ComponentNode[], selectedItems: (SelectedFile | SelectedPage)[], filesById: Record<FileRetrieve['id'], FileRetrieve>): ComponentNode<GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('
|
|
46
|
+
export declare function updateFirstContentGridWithShareboxItems(canvasContent: ComponentNode[], selectedItems: (SelectedFile | SelectedPage)[], filesById: Record<FileRetrieve['id'], FileRetrieve>): ComponentNode<GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | CollectionPlayerProps>[];
|
|
47
47
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Canvas } from '../../../types/openapi';
|
|
2
|
-
import { AppProps } from '
|
|
2
|
+
import { AppProps } from './appTypes';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<AppProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
cancel: () => any;
|
|
5
5
|
"primary-action": (selection: Canvas[]) => any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CanvasSelectionType } from '
|
|
1
|
+
import { CanvasSelectionType } from '../appTypes';
|
|
2
2
|
export declare const availableSelectorTypes: CanvasSelectionType[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CanvasSelectionType } from '
|
|
1
|
+
import { CanvasSelectionType } from '../appTypes';
|
|
2
2
|
import { Canvas } from '../../../../types/openapi';
|
|
3
3
|
declare function cleanup(): void;
|
|
4
4
|
export default function useApp(): {
|
|
@@ -7,6 +7,7 @@ export default function useApp(): {
|
|
|
7
7
|
canvases?: {
|
|
8
8
|
readonly id: string;
|
|
9
9
|
name: string;
|
|
10
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
10
11
|
is_draft?: boolean | undefined;
|
|
11
12
|
is_template?: boolean | undefined;
|
|
12
13
|
is_section?: boolean | undefined;
|
|
@@ -28,7 +29,7 @@ export default function useApp(): {
|
|
|
28
29
|
};
|
|
29
30
|
account?: {
|
|
30
31
|
id: string;
|
|
31
|
-
name
|
|
32
|
+
name?: string | undefined;
|
|
32
33
|
} | null | undefined;
|
|
33
34
|
folder_id?: (string | null) | undefined;
|
|
34
35
|
readonly owned_by: {
|
|
@@ -52,6 +53,7 @@ export default function useApp(): {
|
|
|
52
53
|
canvasTemplates?: {
|
|
53
54
|
readonly id: string;
|
|
54
55
|
name: string;
|
|
56
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
55
57
|
is_draft?: boolean | undefined;
|
|
56
58
|
is_template?: boolean | undefined;
|
|
57
59
|
is_section?: boolean | undefined;
|
|
@@ -73,7 +75,7 @@ export default function useApp(): {
|
|
|
73
75
|
};
|
|
74
76
|
account?: {
|
|
75
77
|
id: string;
|
|
76
|
-
name
|
|
78
|
+
name?: string | undefined;
|
|
77
79
|
} | null | undefined;
|
|
78
80
|
folder_id?: (string | null) | undefined;
|
|
79
81
|
readonly owned_by: {
|
|
@@ -97,6 +99,7 @@ export default function useApp(): {
|
|
|
97
99
|
sections?: {
|
|
98
100
|
readonly id: string;
|
|
99
101
|
name: string;
|
|
102
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
100
103
|
is_draft?: boolean | undefined;
|
|
101
104
|
is_template?: boolean | undefined;
|
|
102
105
|
is_section?: boolean | undefined;
|
|
@@ -118,7 +121,7 @@ export default function useApp(): {
|
|
|
118
121
|
};
|
|
119
122
|
account?: {
|
|
120
123
|
id: string;
|
|
121
|
-
name
|
|
124
|
+
name?: string | undefined;
|
|
122
125
|
} | null | undefined;
|
|
123
126
|
folder_id?: (string | null) | undefined;
|
|
124
127
|
readonly owned_by: {
|
|
@@ -142,6 +145,7 @@ export default function useApp(): {
|
|
|
142
145
|
sectionTemplates?: {
|
|
143
146
|
readonly id: string;
|
|
144
147
|
name: string;
|
|
148
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
145
149
|
is_draft?: boolean | undefined;
|
|
146
150
|
is_template?: boolean | undefined;
|
|
147
151
|
is_section?: boolean | undefined;
|
|
@@ -163,7 +167,7 @@ export default function useApp(): {
|
|
|
163
167
|
};
|
|
164
168
|
account?: {
|
|
165
169
|
id: string;
|
|
166
|
-
name
|
|
170
|
+
name?: string | undefined;
|
|
167
171
|
} | null | undefined;
|
|
168
172
|
folder_id?: (string | null) | undefined;
|
|
169
173
|
readonly owned_by: {
|
|
@@ -193,6 +197,7 @@ export default function useApp(): {
|
|
|
193
197
|
canvases?: {
|
|
194
198
|
readonly id: string;
|
|
195
199
|
name: string;
|
|
200
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
196
201
|
is_draft?: boolean | undefined;
|
|
197
202
|
is_template?: boolean | undefined;
|
|
198
203
|
is_section?: boolean | undefined;
|
|
@@ -214,7 +219,7 @@ export default function useApp(): {
|
|
|
214
219
|
};
|
|
215
220
|
account?: {
|
|
216
221
|
id: string;
|
|
217
|
-
name
|
|
222
|
+
name?: string | undefined;
|
|
218
223
|
} | null | undefined;
|
|
219
224
|
folder_id?: (string | null) | undefined;
|
|
220
225
|
readonly owned_by: {
|
|
@@ -238,6 +243,7 @@ export default function useApp(): {
|
|
|
238
243
|
canvasTemplates?: {
|
|
239
244
|
readonly id: string;
|
|
240
245
|
name: string;
|
|
246
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
241
247
|
is_draft?: boolean | undefined;
|
|
242
248
|
is_template?: boolean | undefined;
|
|
243
249
|
is_section?: boolean | undefined;
|
|
@@ -259,7 +265,7 @@ export default function useApp(): {
|
|
|
259
265
|
};
|
|
260
266
|
account?: {
|
|
261
267
|
id: string;
|
|
262
|
-
name
|
|
268
|
+
name?: string | undefined;
|
|
263
269
|
} | null | undefined;
|
|
264
270
|
folder_id?: (string | null) | undefined;
|
|
265
271
|
readonly owned_by: {
|
|
@@ -283,6 +289,7 @@ export default function useApp(): {
|
|
|
283
289
|
sections?: {
|
|
284
290
|
readonly id: string;
|
|
285
291
|
name: string;
|
|
292
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
286
293
|
is_draft?: boolean | undefined;
|
|
287
294
|
is_template?: boolean | undefined;
|
|
288
295
|
is_section?: boolean | undefined;
|
|
@@ -304,7 +311,7 @@ export default function useApp(): {
|
|
|
304
311
|
};
|
|
305
312
|
account?: {
|
|
306
313
|
id: string;
|
|
307
|
-
name
|
|
314
|
+
name?: string | undefined;
|
|
308
315
|
} | null | undefined;
|
|
309
316
|
folder_id?: (string | null) | undefined;
|
|
310
317
|
readonly owned_by: {
|
|
@@ -328,6 +335,7 @@ export default function useApp(): {
|
|
|
328
335
|
sectionTemplates?: {
|
|
329
336
|
readonly id: string;
|
|
330
337
|
name: string;
|
|
338
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
331
339
|
is_draft?: boolean | undefined;
|
|
332
340
|
is_template?: boolean | undefined;
|
|
333
341
|
is_section?: boolean | undefined;
|
|
@@ -349,7 +357,7 @@ export default function useApp(): {
|
|
|
349
357
|
};
|
|
350
358
|
account?: {
|
|
351
359
|
id: string;
|
|
352
|
-
name
|
|
360
|
+
name?: string | undefined;
|
|
353
361
|
} | null | undefined;
|
|
354
362
|
folder_id?: (string | null) | undefined;
|
|
355
363
|
readonly owned_by: {
|
|
@@ -374,6 +382,7 @@ export default function useApp(): {
|
|
|
374
382
|
selectedItems: import('vue').Ref<{
|
|
375
383
|
readonly id: string;
|
|
376
384
|
name: string;
|
|
385
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
377
386
|
is_draft?: boolean | undefined;
|
|
378
387
|
is_template?: boolean | undefined;
|
|
379
388
|
is_section?: boolean | undefined;
|
|
@@ -395,7 +404,7 @@ export default function useApp(): {
|
|
|
395
404
|
};
|
|
396
405
|
account?: {
|
|
397
406
|
id: string;
|
|
398
|
-
name
|
|
407
|
+
name?: string | undefined;
|
|
399
408
|
} | null | undefined;
|
|
400
409
|
folder_id?: (string | null) | undefined;
|
|
401
410
|
readonly owned_by: {
|
|
@@ -418,6 +427,7 @@ export default function useApp(): {
|
|
|
418
427
|
}[], Canvas[] | {
|
|
419
428
|
readonly id: string;
|
|
420
429
|
name: string;
|
|
430
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
421
431
|
is_draft?: boolean | undefined;
|
|
422
432
|
is_template?: boolean | undefined;
|
|
423
433
|
is_section?: boolean | undefined;
|
|
@@ -439,7 +449,7 @@ export default function useApp(): {
|
|
|
439
449
|
};
|
|
440
450
|
account?: {
|
|
441
451
|
id: string;
|
|
442
|
-
name
|
|
452
|
+
name?: string | undefined;
|
|
443
453
|
} | null | undefined;
|
|
444
454
|
folder_id?: (string | null) | undefined;
|
|
445
455
|
readonly owned_by: {
|
|
@@ -463,6 +473,7 @@ export default function useApp(): {
|
|
|
463
473
|
selectedCanvases: import('vue').ComputedRef<{
|
|
464
474
|
readonly id: string;
|
|
465
475
|
name: string;
|
|
476
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
466
477
|
is_draft?: boolean | undefined;
|
|
467
478
|
is_template?: boolean | undefined;
|
|
468
479
|
is_section?: boolean | undefined;
|
|
@@ -484,7 +495,7 @@ export default function useApp(): {
|
|
|
484
495
|
};
|
|
485
496
|
account?: {
|
|
486
497
|
id: string;
|
|
487
|
-
name
|
|
498
|
+
name?: string | undefined;
|
|
488
499
|
} | null | undefined;
|
|
489
500
|
folder_id?: (string | null) | undefined;
|
|
490
501
|
readonly owned_by: {
|
|
@@ -508,6 +519,7 @@ export default function useApp(): {
|
|
|
508
519
|
selectedCanvasTemplates: import('vue').ComputedRef<{
|
|
509
520
|
readonly id: string;
|
|
510
521
|
name: string;
|
|
522
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
511
523
|
is_draft?: boolean | undefined;
|
|
512
524
|
is_template?: boolean | undefined;
|
|
513
525
|
is_section?: boolean | undefined;
|
|
@@ -529,7 +541,7 @@ export default function useApp(): {
|
|
|
529
541
|
};
|
|
530
542
|
account?: {
|
|
531
543
|
id: string;
|
|
532
|
-
name
|
|
544
|
+
name?: string | undefined;
|
|
533
545
|
} | null | undefined;
|
|
534
546
|
folder_id?: (string | null) | undefined;
|
|
535
547
|
readonly owned_by: {
|
|
@@ -553,6 +565,7 @@ export default function useApp(): {
|
|
|
553
565
|
selectedSections: import('vue').ComputedRef<{
|
|
554
566
|
readonly id: string;
|
|
555
567
|
name: string;
|
|
568
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
556
569
|
is_draft?: boolean | undefined;
|
|
557
570
|
is_template?: boolean | undefined;
|
|
558
571
|
is_section?: boolean | undefined;
|
|
@@ -574,7 +587,7 @@ export default function useApp(): {
|
|
|
574
587
|
};
|
|
575
588
|
account?: {
|
|
576
589
|
id: string;
|
|
577
|
-
name
|
|
590
|
+
name?: string | undefined;
|
|
578
591
|
} | null | undefined;
|
|
579
592
|
folder_id?: (string | null) | undefined;
|
|
580
593
|
readonly owned_by: {
|
|
@@ -598,6 +611,7 @@ export default function useApp(): {
|
|
|
598
611
|
selectedSectionTemplates: import('vue').ComputedRef<{
|
|
599
612
|
readonly id: string;
|
|
600
613
|
name: string;
|
|
614
|
+
indicators?: (Record<string, any> | null) | undefined;
|
|
601
615
|
is_draft?: boolean | undefined;
|
|
602
616
|
is_template?: boolean | undefined;
|
|
603
617
|
is_section?: boolean | undefined;
|
|
@@ -619,7 +633,7 @@ export default function useApp(): {
|
|
|
619
633
|
};
|
|
620
634
|
account?: {
|
|
621
635
|
id: string;
|
|
622
|
-
name
|
|
636
|
+
name?: string | undefined;
|
|
623
637
|
} | null | undefined;
|
|
624
638
|
folder_id?: (string | null) | undefined;
|
|
625
639
|
readonly owned_by: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContentSelectorSelectedItem } from '
|
|
2
|
-
import { AppProps } from '
|
|
1
|
+
import { ContentSelectorSelectedItem } from './stores/app';
|
|
2
|
+
import { AppProps } from './appTypes';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<AppProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
cancel: () => any;
|
|
5
5
|
"primary-action": (p: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FolderRetrieve, Folder, File, FileRetrieve, FileContentTypeEnum } from '../../../types/openapi';
|
|
2
2
|
import { Range } from '../../util/tsHelpers';
|
|
3
|
-
import { SelectorType } from '
|
|
3
|
+
import { SelectorType } from './stores/app';
|
|
4
4
|
export type FileFetcher = (fileId: FileRetrieve['id']) => Promise<FileRetrieve>;
|
|
5
5
|
export type FolderItemsFetcher = (folderId: Folder['id'] | undefined) => Promise<FolderRetrieve>;
|
|
6
6
|
type FileListFetcher = (params?: any) => Promise<File[]>;
|
package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
2
|
import { FolderFile, FolderFolder } from '../../../../../../../types/openapi';
|
|
3
|
-
import { SelectedFile, SelectedFolder } from '
|
|
3
|
+
import { SelectedFile, SelectedFolder } from '../../../../stores/app';
|
|
4
4
|
declare const _default: import('vue').DefineComponent<{
|
|
5
5
|
filters: ComputedRef<Record<string, any>>;
|
|
6
6
|
highlightText?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref, ComputedRef, UnwrapNestedRefs } from 'vue';
|
|
2
2
|
import { FolderRetrieve, FolderFile, FileRetrieve, File, FolderFolder } from '../../../../types/openapi';
|
|
3
|
-
import { FileFetcher, FolderItemsFetcher } from '
|
|
3
|
+
import { FileFetcher, FolderItemsFetcher } from '../appTypes';
|
|
4
4
|
export type SelectorType = 'content' | 'assets' | 'external_links' | 'ai_images';
|
|
5
5
|
export type SelectedPage = {
|
|
6
6
|
id: string;
|