@pitcher/js-api 1.23.0-rc.1 → 1.24.0-beta.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 +18 -0
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +9 -9
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/agenda-selector/App.vue.d.ts +9 -0
- package/lib/apps/agenda-selector/components/AgendaGroup.vue.d.ts +7 -0
- package/lib/apps/agenda-selector/components/AgendaItem.vue.d.ts +29 -0
- package/lib/apps/agenda-selector/components/AgendaToolbar.vue.d.ts +2 -0
- package/lib/apps/agenda-selector/components/AppFooter.vue.d.ts +8 -0
- package/lib/apps/agenda-selector/components/AppHeader.vue.d.ts +6 -0
- package/lib/apps/agenda-selector/components/modals/ApplicationBlockSelectorModal.vue.d.ts +8 -0
- package/lib/apps/agenda-selector/components/modals/MoveItemModal.vue.d.ts +15 -0
- package/lib/apps/agenda-selector/composables/application-block-selector-modal.use.d.ts +17 -0
- package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +128 -0
- package/lib/apps/agenda-selector/composables/table-input.use.d.ts +15 -0
- package/lib/apps/agenda-selector/stores/app.store.d.ts +32 -0
- package/lib/apps/agenda-selector/types/agenda.type.d.ts +28 -0
- package/lib/apps/agenda-selector/types/common.type.d.ts +8 -0
- package/lib/apps/agenda-selector/types/move-item-modal.type.d.ts +5 -0
- package/lib/apps/agenda-selector/utils/data.util.d.ts +14 -0
- package/lib/apps/agenda-selector/utils/theme-overrides.util.d.ts +8 -0
- package/lib/apps/browser/App.vue.d.ts +3 -1
- package/lib/apps/browser/components/UploadFilesDropzone/UploadFilesDropzone.vue.d.ts +5 -1
- package/lib/apps/browser/stores/api.d.ts +28 -6
- package/lib/apps/browser/stores/upload.d.ts +12 -12
- package/lib/apps/canvas-builder/App.vue.d.ts +56 -32
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +9 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +10 -10
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentLegacy.vue.d.ts +9 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentRevamp.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/ResizeHandles.vue.d.ts +23 -0
- package/lib/apps/canvas-builder/components/ui/Block/Block.helpers.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/Block/Block.types.d.ts +7 -0
- package/lib/apps/canvas-builder/components/ui/{CollectionPlayer/CollectionSelector.vue.d.ts → Block/BlockToolbar.vue.d.ts} +6 -11
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +4 -3
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/{CollectionPlayer.edit.vue.d.ts → CollectionPlayerEmpty.vue.d.ts} +5 -5
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.raw.vue.d.ts +3 -1
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.vue.d.ts +4 -5
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +34 -0
- package/lib/apps/canvas-builder/components/ui/Scribble/scribble.helpers.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelector.helpers.d.ts +6 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorSelected.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +519 -439
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +117 -94
- package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +104 -86
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +38 -0
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCollectionSelector.d.ts +9 -0
- package/lib/apps/canvas-builder/composables/useComponentStyle.d.ts +22 -0
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +5 -14
- package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +28 -0
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +4 -2
- package/lib/apps/canvas-builder/types/canvas.d.ts +22 -31
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +6 -5
- package/lib/apps/canvas-builder/util/url.d.ts +1 -0
- package/lib/apps/canvas-selector/stores/app.d.ts +28 -0
- package/lib/apps/collection-player/App.vue.d.ts +33 -0
- package/lib/apps/collection-player/components/AppFooter.vue.d.ts +2 -0
- package/lib/apps/collection-player/components/AppHeader.vue.d.ts +2 -0
- package/lib/apps/collection-player/components/AppWrapper.vue.d.ts +17 -0
- package/lib/apps/collection-player/components/MainContent.vue.d.ts +2 -0
- package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/components/MainImage.vue.d.ts +3 -3
- package/lib/apps/collection-player/components/TableOfContents.vue.d.ts +2 -0
- package/lib/apps/collection-player/composables/focus-trap.use.d.ts +9 -0
- package/lib/apps/collection-player/composables/fullscreen.use.d.ts +10 -0
- package/lib/apps/{canvas-builder/components/ui/CollectionPlayer/composables/gestures.use.d.ts → collection-player/composables/moving-group-gestures.use.d.ts} +6 -3
- package/lib/apps/collection-player/composables/slide-direction.use.d.ts +11 -0
- package/lib/apps/collection-player/composables/tracking.use.d.ts +10 -0
- package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/zoom.use.d.ts +2 -2
- package/lib/apps/collection-player/export.d.ts +3 -0
- package/lib/apps/collection-player/stores/app.store.d.ts +77 -0
- package/lib/apps/collection-player/types/collection-player.type.d.ts +26 -0
- package/lib/apps/collection-player/utils/node.util.d.ts +4 -0
- package/lib/apps/collection-player/utils/slide-type.util.d.ts +5 -0
- package/lib/apps/collection-selector/App.vue.d.ts +29 -0
- package/lib/apps/collection-selector/components/AppFooter.vue.d.ts +8 -0
- package/lib/apps/collection-selector/components/AppHeader.vue.d.ts +6 -0
- package/lib/apps/collection-selector/components/CollectionGroup.vue.d.ts +7 -0
- package/lib/apps/collection-selector/components/CollectionItem.vue.d.ts +21 -0
- package/lib/apps/collection-selector/components/CollectionToolbar.vue.d.ts +2 -0
- package/lib/apps/{canvas-builder/components/ui/CollectionPlayer/CollectionGroupSelector.vue.d.ts → collection-selector/components/modals/MoveSlideModal.vue.d.ts} +7 -13
- package/lib/apps/collection-selector/composables/move-slide-modal.use.d.ts +106 -0
- package/lib/apps/collection-selector/composables/table-input.use.d.ts +15 -0
- package/lib/apps/collection-selector/stores/app.store.d.ts +156 -0
- package/lib/apps/collection-selector/types/collection-selector.type.d.ts +12 -0
- package/lib/apps/collection-selector/types/common.type.d.ts +18 -0
- package/lib/apps/collection-selector/types/move-slide-modal.type.d.ts +5 -0
- package/lib/apps/collection-selector/utils/content-selector-adapter.util.d.ts +41 -0
- package/lib/apps/collection-selector/utils/data.util.d.ts +23 -0
- package/lib/apps/collection-selector/utils/theme-overrides.util.d.ts +8 -0
- package/lib/apps/content-selector/appTypes.d.ts +7 -29
- package/lib/apps/content-selector/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +2 -0
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts +6 -3
- package/lib/apps/content-selector/stores/api.d.ts +252 -0
- package/lib/apps/content-selector/stores/app.d.ts +42 -7
- package/lib/components/CBackgroundImageThemeOptions/CBackgroundImageThemeOptions.vue.d.ts +42 -0
- package/lib/components/CCanvasSelector/CCanvasSelector.vue.d.ts +3 -0
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +9 -2
- package/lib/components/CComponentThemeOptions/CComponentThemeOptions.vue.d.ts +55 -15
- package/lib/components/CDataTable/CDataTableEdit.use.d.ts +1 -1
- package/lib/components/CEntitySelector/CEntitySelector.vue.d.ts +4 -0
- package/lib/components/CFileViewer/pdf/CFileViewerCopyPagesMetadata.pdf.vue.d.ts +5 -1
- package/lib/components/CGlobalSearch/CGlobalSearch.vue.d.ts +3 -2
- package/lib/components/CIcon/CIcon.vue.d.ts +1 -0
- package/lib/components/CInfoBadge/CInfoBadge.vue.d.ts +1 -1
- package/lib/components/CRichTextEditor/CRichTextEditor.vue.d.ts +8 -0
- package/lib/components/CRichTextEditor/components/CContentLinkToolbar.vue.d.ts +8 -0
- package/lib/components/CRichTextEditor/components/CEditorMenu.vue.d.ts +8 -0
- package/lib/components/CRichTextEditor/extensions/contentLink.d.ts +9 -3
- package/lib/components/CSearch/CSearch.vue.d.ts +2 -0
- package/lib/components/CSearch/CSearchOnClick.vue.d.ts +15 -1
- package/lib/components/CSearchFilters/CSearchFilters.types.d.ts +5 -0
- package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +22 -1
- package/lib/components/CSingleFileSelector/CSingleFileSelector.vue.d.ts +9 -3
- package/lib/components/CTable/CTable.vue.d.ts +2 -2
- package/lib/components/CTableColumnsSettings/CTableColumnsSettings.vue.d.ts +2 -2
- package/lib/components/CTableTag/CTableTag.vue.d.ts +1 -1
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +6 -6
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +39 -54
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +26 -35
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +32 -43
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +1 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +25 -33
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +16 -18
- package/lib/components/sections/CSectionManagement.vue.d.ts +6 -6
- package/lib/composables/useConfirmation.d.ts +1 -0
- package/lib/composables/useToast.d.ts +6 -5
- package/lib/constants/appsDb.const.d.ts +2 -0
- package/lib/main.lib.d.ts +10 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +20 -1
- package/lib/sdk/api/modules/ui/content.ui.d.ts +31 -1
- package/lib/sdk/api/modules/ui/index.d.ts +2 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +29 -2
- package/lib/sdk/interfaces.d.ts +6 -0
- package/lib/sdk/main.d.ts +6 -0
- package/lib/types/app.d.ts +1 -1
- package/lib/types/background.d.ts +5 -0
- package/lib/types/canvases.d.ts +1 -0
- package/lib/types/common.d.ts +2 -0
- package/lib/types/instanceSettings.types.d.ts +2 -0
- package/lib/types/launchDarkly.types.d.ts +3 -1
- package/lib/types/organizationSettings.types.d.ts +7 -0
- package/lib/types/selections.d.ts +19 -0
- package/lib/util/eval.d.ts +1 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +2 -0
- package/types/openapi/models/Canvas.d.ts +2 -0
- package/types/openapi/models/CanvasCreate.d.ts +2 -0
- package/types/openapi/models/CanvasRecommendedFile.d.ts +4 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +2 -0
- package/types/openapi/models/CanvasUpdate.d.ts +2 -0
- package/types/openapi/models/DeletedCanvas.d.ts +2 -0
- package/types/openapi/models/DeletedFavorite.d.ts +2 -2
- package/types/openapi/models/DeletedFile.d.ts +4 -0
- package/types/openapi/models/Favorite.d.ts +2 -2
- package/types/openapi/models/FavoriteCreate.d.ts +2 -2
- package/types/openapi/models/FavoriteFolder.d.ts +6 -0
- package/types/openapi/models/FavoriteFolderRequest.d.ts +3 -0
- package/types/openapi/models/FavoriteUpdate.d.ts +2 -2
- package/types/openapi/models/File.d.ts +4 -0
- package/types/openapi/models/FileCreate.d.ts +4 -0
- package/types/openapi/models/FileRetrieve.d.ts +4 -0
- package/types/openapi/models/FileUpdate.d.ts +4 -0
- package/types/openapi/models/SearchCanvas.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionListItem.vue.d.ts +0 -37
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.raw.vue.d.ts +0 -19
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/tracking.use.d.ts +0 -4
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +0 -5
- package/lib/apps/canvas-builder/composables/useCollectionPlayer.d.ts +0 -31
- /package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/arrow-keys.use.d.ts +0 -0
- /package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/image-cache.use.d.ts +0 -0
|
@@ -111,12 +111,12 @@ declare function __VLS_template(): {
|
|
|
111
111
|
data: {
|
|
112
112
|
[x: string]: any;
|
|
113
113
|
}[];
|
|
114
|
+
loading: boolean;
|
|
114
115
|
columns: ColumnDef<{
|
|
115
116
|
[x: string]: any;
|
|
116
117
|
}, any>[];
|
|
117
|
-
pageIndex: number;
|
|
118
|
-
loading: boolean;
|
|
119
118
|
pageSize: number;
|
|
119
|
+
pageIndex: number;
|
|
120
120
|
initialSorting: SortingState;
|
|
121
121
|
serverSide: boolean;
|
|
122
122
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -160,12 +160,12 @@ declare function __VLS_template(): {
|
|
|
160
160
|
data: {
|
|
161
161
|
[x: string]: any;
|
|
162
162
|
}[];
|
|
163
|
+
loading: boolean;
|
|
163
164
|
columns: ColumnDef<{
|
|
164
165
|
[x: string]: any;
|
|
165
166
|
}, any>[];
|
|
166
|
-
pageIndex: number;
|
|
167
|
-
loading: boolean;
|
|
168
167
|
pageSize: number;
|
|
168
|
+
pageIndex: number;
|
|
169
169
|
initialSorting: SortingState;
|
|
170
170
|
serverSide: boolean;
|
|
171
171
|
}> | null;
|
|
@@ -198,8 +198,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
198
198
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
199
199
|
create: () => any;
|
|
200
200
|
edit: (canvas: CanvasRetrieve) => any;
|
|
201
|
-
open: (canvas: CanvasRetrieve, newTab?: boolean | undefined) => any;
|
|
202
201
|
details: (canvas: CanvasRetrieve) => any;
|
|
202
|
+
open: (canvas: CanvasRetrieve, newTab?: boolean | undefined) => any;
|
|
203
203
|
}, string, import('vue').PublicProps, Readonly<{
|
|
204
204
|
storageKey?: string;
|
|
205
205
|
myUserId?: CanvasRetrieve["created_by"]["id"];
|
|
@@ -223,8 +223,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
223
223
|
}> & Readonly<{
|
|
224
224
|
onCreate?: (() => any) | undefined;
|
|
225
225
|
onEdit?: ((canvas: CanvasRetrieve) => any) | undefined;
|
|
226
|
-
onOpen?: ((canvas: CanvasRetrieve, newTab?: boolean | undefined) => any) | undefined;
|
|
227
226
|
onDetails?: ((canvas: CanvasRetrieve) => any) | undefined;
|
|
227
|
+
onOpen?: ((canvas: CanvasRetrieve, newTab?: boolean | undefined) => any) | undefined;
|
|
228
228
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
229
229
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
230
230
|
export default _default;
|
|
@@ -10,6 +10,7 @@ interface ConfirmationOptions extends DialogOptions {
|
|
|
10
10
|
onConfirm?: () => Promise<boolean | void> | boolean | void;
|
|
11
11
|
onExit?: () => Promise<void> | void;
|
|
12
12
|
onCancel?: () => Promise<void> | void;
|
|
13
|
+
zIndex?: number;
|
|
13
14
|
}
|
|
14
15
|
declare const _default: () => {
|
|
15
16
|
dialog: import('naive-ui').DialogApi;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { MessageApiInjection } from 'naive-ui/es/message/src/MessageProvider';
|
|
2
2
|
import { UiToastRequest } from '../sdk/api/modules/ui/types.ui';
|
|
3
|
+
import { MessageOptions } from 'naive-ui/es/message/src/types';
|
|
3
4
|
export default function useToast(): {
|
|
4
5
|
initMessageProvider: () => void;
|
|
5
6
|
getMessageProvider: () => MessageApiInjection | null;
|
|
6
7
|
toast: ((data: UiToastRequest) => void) & {
|
|
7
|
-
info: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
8
|
-
error: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
9
|
-
warning: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
10
|
-
success: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
11
|
-
loading: (message: string) => import('naive-ui').MessageReactive | undefined;
|
|
8
|
+
info: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
9
|
+
error: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
10
|
+
warning: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
11
|
+
success: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
12
|
+
loading: (message: string, options?: MessageOptions) => import('naive-ui').MessageReactive | undefined;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export declare const APPS_DB: {
|
|
2
2
|
readonly STORES: {
|
|
3
3
|
readonly SMART_FOLDERS: "smart-folders";
|
|
4
|
+
readonly BLOCK_OVERRIDES: "block-overrides";
|
|
4
5
|
};
|
|
5
6
|
readonly ENTRIES: {
|
|
6
7
|
readonly CONFIGURATION: "configuration";
|
|
8
|
+
readonly BLOCK_OVERRIDES: "block_overrides_by_block_id";
|
|
7
9
|
};
|
|
8
10
|
readonly GLOBAL_STORES: {};
|
|
9
11
|
readonly GLOBAL_ENTRIES: {};
|
package/lib/main.lib.d.ts
CHANGED
|
@@ -95,6 +95,9 @@ export { default as CChip } from './components/CChip/CChip.vue';
|
|
|
95
95
|
export { default as CSettingsEditor } from './components/CSettingsEditor/CSettingsEditor.vue';
|
|
96
96
|
export { default as CFilePanel } from './components/CFilePanel/CFilePanel.vue';
|
|
97
97
|
export { default as CanvasBuilderApp } from './apps/canvas-builder/App.vue';
|
|
98
|
+
export { default as CollectionSelectorApp } from './apps/collection-selector/App.vue';
|
|
99
|
+
export { default as CollectionPlayerApp } from './apps/collection-player/App.vue';
|
|
100
|
+
export { default as AgendaSelectorApp } from './apps/agenda-selector/App.vue';
|
|
98
101
|
export { type CanvasBuilderProps, CanvasBuilderMode } from './apps/canvas-builder/types/canvas';
|
|
99
102
|
export { type FontAwesomeType } from './apps/canvas-builder/types/font-awesome.types';
|
|
100
103
|
export { default as Browser } from './apps/browser/App.vue';
|
|
@@ -150,6 +153,8 @@ export * from './util/user';
|
|
|
150
153
|
export * from './util/userAgents';
|
|
151
154
|
export * from './util/usage-tracking.util';
|
|
152
155
|
export * from './util/pitcher-settings.util';
|
|
156
|
+
export * from './util/eval';
|
|
157
|
+
export * from './apps/collection-selector/utils/content-selector-adapter.util';
|
|
153
158
|
export * from './sdk/main';
|
|
154
159
|
export * from '../types/openapi';
|
|
155
160
|
export * from './components/CGlobalSearch/CGlobalSearch.types';
|
|
@@ -179,6 +184,11 @@ export * from './types/toast';
|
|
|
179
184
|
export * from './types/instanceSettings.types';
|
|
180
185
|
export * from './types/organizationSettings.types';
|
|
181
186
|
export * from './components/CConfigEditor/CConfigEditor.types';
|
|
187
|
+
export * from './types/selections';
|
|
188
|
+
export * from './apps/agenda-selector/types/agenda.type';
|
|
189
|
+
export * from './apps/collection-player/types/collection-player.type';
|
|
190
|
+
export * from './apps/collection-selector/types/collection-selector.type';
|
|
191
|
+
export * as collectionPlayer from './apps/collection-player/export';
|
|
182
192
|
export * from './constants/cdp.const';
|
|
183
193
|
export * from './constants/uploads.const';
|
|
184
194
|
export * from './constants/tables.const';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { PitcherEnv } from '../../../interfaces';
|
|
2
2
|
import { SelectedPage as ContentSelectorSelectedPage, SelectedFile as ContentSelectorSelectedFile } from '../../../../apps/content-selector/stores/app';
|
|
3
|
-
import { Selection as ContentSelectorSelection } from '../../../../
|
|
3
|
+
import { Selection as ContentSelectorSelection } from '../../../../types/selections';
|
|
4
4
|
import { Canvas } from '../../../../../types/openapi';
|
|
5
5
|
import { CanvasSelection } from '../../../../apps/canvas-selector/appTypes';
|
|
6
6
|
import { CLIENT_TYPE } from '../../../../constants/cdp.const';
|
|
7
7
|
import { LaunchDarklyEnv } from '../../../../types/launchDarkly.types';
|
|
8
|
+
import { CollectionSelectorProps } from '../../../../apps/collection-selector/types/collection-selector.type';
|
|
9
|
+
import { CollectionPlayer } from '../../../../apps/collection-player/types/collection-player.type';
|
|
10
|
+
import { Agenda, AgendaSelectorProps } from '../../../../apps/agenda-selector/types/agenda.type';
|
|
8
11
|
export declare const ADMIN_MESSAGE: "ADMIN_MESSAGE";
|
|
9
12
|
export declare const ADMIN_MESSAGE_TYPES: {
|
|
10
13
|
readonly ENV_CHANGED: "admin_env_changed";
|
|
@@ -27,6 +30,8 @@ export declare const ADMIN_API_METHOD_TYPES: {
|
|
|
27
30
|
readonly GET_INSTANCE_METADATA_TEMPLATES: "admin_get_instance_metadata_templates";
|
|
28
31
|
readonly TOAST: "admin_toast";
|
|
29
32
|
readonly UPDATE_CANVAS: "admin_update_canvas";
|
|
33
|
+
readonly SELECT_COLLECTION_PLAYER_CONTENT: "admin_select_collection_player_content";
|
|
34
|
+
readonly SELECT_AGENDA_CONTENT: "admin_select_agenda_content";
|
|
30
35
|
readonly SELECT_CONTENT: "admin_select_content";
|
|
31
36
|
readonly SELECT_CANVASES: "admin_select_canvases";
|
|
32
37
|
};
|
|
@@ -197,3 +202,17 @@ export type AdminEnv = {
|
|
|
197
202
|
crm_shape?: Record<string, any>;
|
|
198
203
|
state?: PitcherEnv['state'];
|
|
199
204
|
};
|
|
205
|
+
export type AdminSelectCollectionPlayerRequest = Pick<CollectionSelectorProps, 'initialData' | 'attachTo' | 'openSettings'>;
|
|
206
|
+
export type AdminSelectCollectionPlayerResponse = {
|
|
207
|
+
/** User action result */
|
|
208
|
+
user_action: 'cancelled' | 'selected';
|
|
209
|
+
/** Selected content */
|
|
210
|
+
content?: CollectionPlayer;
|
|
211
|
+
};
|
|
212
|
+
export type AdminSelectAgendaRequest = Pick<AgendaSelectorProps, 'initialAgenda' | 'attachTo'>;
|
|
213
|
+
export type AdminSelectAgendaResponse = {
|
|
214
|
+
/** User action result */
|
|
215
|
+
user_action: 'cancelled' | 'selected';
|
|
216
|
+
/** Selected content */
|
|
217
|
+
content?: Agenda;
|
|
218
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiSelectContentRequest, UiSelectContentResponse, UiOpenRequest, UiToastRequest, UiPreselectSfdcMeetingIdRequest, UiPreselectSfdcMeetingIdResponse } from './types.ui';
|
|
1
|
+
import { UiSelectAgendaRequest, UiSelectAgendaResponse, UiSelectCollectionPlayerRequest, UiSelectCollectionPlayerResponse, UiSelectContentRequest, UiSelectContentResponse, UiOpenRequest, UiToastRequest, UiPreselectSfdcMeetingIdRequest, UiPreselectSfdcMeetingIdResponse } from './types.ui';
|
|
2
2
|
/**
|
|
3
3
|
* @hidden
|
|
4
4
|
* @deprecated
|
|
@@ -54,3 +54,33 @@ export declare function toast(payload: UiToastRequest): Promise<void>;
|
|
|
54
54
|
* })
|
|
55
55
|
*/
|
|
56
56
|
export declare function preselectSfdcMeetingId(payload: UiPreselectSfdcMeetingIdRequest): Promise<UiPreselectSfdcMeetingIdResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Opens the collection player selector modal to allow the user to select collection player content and handle the outcome.
|
|
59
|
+
* ```
|
|
60
|
+
* const api = useApi() // or useUi() if you know that you 're in UI context
|
|
61
|
+
*
|
|
62
|
+
* uiApi.selectCollectionContent({
|
|
63
|
+
* // optional payload
|
|
64
|
+
* initialData: {
|
|
65
|
+
* name: 'test',
|
|
66
|
+
* groups: []
|
|
67
|
+
* }
|
|
68
|
+
* })
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare function selectCollectionContent(payload?: UiSelectCollectionPlayerRequest): Promise<UiSelectCollectionPlayerResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Opens the agenda selector modal to allow the user to select agenda content and handle the outcome.
|
|
74
|
+
* ```
|
|
75
|
+
* const api = useApi() // or useUi() if you know that you 're in UI context
|
|
76
|
+
*
|
|
77
|
+
* uiApi.selectAgendaContent({
|
|
78
|
+
* // optional payload
|
|
79
|
+
* initialAgenda: {
|
|
80
|
+
* name: 'test',
|
|
81
|
+
* groups: []
|
|
82
|
+
* }
|
|
83
|
+
* })
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export declare function selectAgendaContent(payload?: UiSelectAgendaRequest): Promise<UiSelectAgendaResponse>;
|
|
@@ -144,6 +144,8 @@ declare const _default: {
|
|
|
144
144
|
open(payload: import('./types.ui').UiOpenRequest): Promise<void>;
|
|
145
145
|
toast(payload: import('./types.ui').UiToastRequest): Promise<void>;
|
|
146
146
|
preselectSfdcMeetingId(payload: import('./types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./types.ui').UiPreselectSfdcMeetingIdResponse>;
|
|
147
|
+
selectCollectionContent(payload?: import('./types.ui').UiSelectCollectionPlayerRequest): Promise<import('./types.ui').UiSelectCollectionPlayerResponse>;
|
|
148
|
+
selectAgendaContent(payload?: import('./types.ui').UiSelectAgendaRequest): Promise<import('./types.ui').UiSelectAgendaResponse>;
|
|
147
149
|
on: typeof on;
|
|
148
150
|
onMeetingCanceled: typeof onMeetingCanceled;
|
|
149
151
|
onCanvasUpdated: typeof onCanvasUpdated;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectedPage as ContentSelectorSelectedPage, SelectedFile as ContentSelectorSelectedFile, SelectorType } from '../../../../apps/content-selector/stores/app';
|
|
2
|
-
import { Selection } from '../../../../
|
|
2
|
+
import { Selection } from '../../../../types/selections';
|
|
3
3
|
import { CanvasSelection } from '../../../../apps/canvas-selector/appTypes';
|
|
4
4
|
import { ComponentNode, EmbeddableProps } from '../../../../apps/canvas-builder/types/canvas';
|
|
5
5
|
import { SfEvent } from '../../../../types/sfdc';
|
|
@@ -7,6 +7,10 @@ import { Mutable } from '../../../../types/ts';
|
|
|
7
7
|
import { CanvasRetrieve, User, Canvas, CanvasSection, FileContentTypeEnum } from '../../../../../types/openapi';
|
|
8
8
|
import { OpenRequestPayload } from '../../../payload.types';
|
|
9
9
|
import { Range } from '../../../../util/tsHelpers';
|
|
10
|
+
import { Agenda, AgendaSelectorProps } from '../../../../apps/agenda-selector/types/agenda.type';
|
|
11
|
+
import { CollectionSelectorProps } from '../../../../apps/collection-selector/types/collection-selector.type';
|
|
12
|
+
import { CollectionPlayer } from '../../../../apps/collection-player/types/collection-player.type';
|
|
13
|
+
import { EmbedLocation } from '../../../../types/app';
|
|
10
14
|
export declare const UI_MESSAGE: "UI_MESSAGE";
|
|
11
15
|
export declare const UI_API_METHOD_TYPES: {
|
|
12
16
|
readonly UI_BROADCAST: "ui_broadcast";
|
|
@@ -18,6 +22,8 @@ export declare const UI_API_METHOD_TYPES: {
|
|
|
18
22
|
readonly UI_CAPTURE_APP_ERROR: "ui_capture_app_error";
|
|
19
23
|
readonly UI_UPDATE_CANVAS: "ui_update_canvas";
|
|
20
24
|
readonly UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay";
|
|
25
|
+
readonly UI_SELECT_COLLECTION_PLAYER_CONTENT: "ui_select_collection_player_content";
|
|
26
|
+
readonly UI_SELECT_AGENDA_CONTENT: "ui_select_agenda_content";
|
|
21
27
|
readonly UI_UPDATE_LOCATION: "ui_update_location";
|
|
22
28
|
readonly UI_PRESELECT_SFDC_MEETING_ID: "ui_preselect_sfdc_meeting_id";
|
|
23
29
|
readonly UI_SET_POSTCALL_STYLE: "ui_set_postcall_style";
|
|
@@ -61,6 +67,20 @@ export type UiSelectContentResponse = {
|
|
|
61
67
|
/** Selected content */
|
|
62
68
|
content?: (ContentSelectorSelectedFile | ContentSelectorSelectedPage)[];
|
|
63
69
|
};
|
|
70
|
+
export type UiSelectCollectionPlayerRequest = Pick<CollectionSelectorProps, 'initialData' | 'attachTo' | 'openSettings'>;
|
|
71
|
+
export type UiSelectCollectionPlayerResponse = {
|
|
72
|
+
/** User action result */
|
|
73
|
+
user_action: 'cancelled' | 'selected';
|
|
74
|
+
/** Selected content */
|
|
75
|
+
content?: CollectionPlayer;
|
|
76
|
+
};
|
|
77
|
+
export type UiSelectAgendaRequest = Pick<AgendaSelectorProps, 'initialAgenda' | 'attachTo'>;
|
|
78
|
+
export type UiSelectAgendaResponse = {
|
|
79
|
+
/** User action result */
|
|
80
|
+
user_action: 'cancelled' | 'selected';
|
|
81
|
+
/** Selected content */
|
|
82
|
+
content?: Agenda;
|
|
83
|
+
};
|
|
64
84
|
export type UiSelectCanvasesRequest = {
|
|
65
85
|
/** Array of selections */
|
|
66
86
|
selections?: CanvasSelection[];
|
|
@@ -92,7 +112,14 @@ export type UiUpdateCanvasRequest = Mutable<CanvasRetrieve> & {
|
|
|
92
112
|
/** Comma-separated list of field keys to return from the server */
|
|
93
113
|
fields?: string;
|
|
94
114
|
};
|
|
95
|
-
export type UiOpenRequest = OpenRequestPayload
|
|
115
|
+
export type UiOpenRequest = OpenRequestPayload & {
|
|
116
|
+
/** Name of the app to open */
|
|
117
|
+
app_name?: string;
|
|
118
|
+
/** Context to pass to the app */
|
|
119
|
+
app_context?: Record<string, any>;
|
|
120
|
+
/** Embed location of the app */
|
|
121
|
+
app_embed_location?: EmbedLocation;
|
|
122
|
+
};
|
|
96
123
|
export type UiCompletePostcallRequest = {
|
|
97
124
|
/** Indicates if the postcall was successfully submitted */
|
|
98
125
|
was_successfully_submitted?: boolean;
|
package/lib/sdk/interfaces.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export declare enum PitcherEventName {
|
|
|
95
95
|
CANVAS_UPDATED = "canvas_updated",
|
|
96
96
|
CANVAS_UPDATED_SUCCESS = "canvas_updated_success",
|
|
97
97
|
FILE_CLOSED = "file_closed",
|
|
98
|
+
FILE_OPENED = "file_opened",
|
|
98
99
|
APP_BACKGROUNDED = "app_backgrounded",
|
|
99
100
|
APP_FOREGROUNDED = "app_foregrounded",
|
|
100
101
|
NON_FILES_SYNC_FINISHED = "non_files_sync_finished",
|
|
@@ -339,6 +340,11 @@ export interface PitcherEventMap {
|
|
|
339
340
|
[PitcherEventName.UPDATE_LOCATION]: UpdateLocationPitcherEvent;
|
|
340
341
|
[PitcherEventName.FILE_CLOSED]: {
|
|
341
342
|
file_id?: string;
|
|
343
|
+
view_id?: string;
|
|
344
|
+
};
|
|
345
|
+
[PitcherEventName.FILE_OPENED]: {
|
|
346
|
+
file_id?: string;
|
|
347
|
+
view_id?: string;
|
|
342
348
|
};
|
|
343
349
|
[PitcherEventName.SUBMIT_POSTCALL_CLICKED]: void;
|
|
344
350
|
[PitcherBroadcastedEventName.UI_SHOW_MODAL]: void;
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ export declare function useUi(): {
|
|
|
55
55
|
open(payload: import('./api/modules/ui/types.ui').UiOpenRequest): Promise<void>;
|
|
56
56
|
toast(payload: import('./api/modules/ui/types.ui').UiToastRequest): Promise<void>;
|
|
57
57
|
preselectSfdcMeetingId(payload: import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdResponse>;
|
|
58
|
+
selectCollectionContent(payload?: import('./api/modules/ui/types.ui').UiSelectCollectionPlayerRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCollectionPlayerResponse>;
|
|
59
|
+
selectAgendaContent(payload?: import('./api/modules/ui/types.ui').UiSelectAgendaRequest): Promise<import('./api/modules/ui/types.ui').UiSelectAgendaResponse>;
|
|
58
60
|
on: <T extends keyof import('./api/modules/ui/types.ui').UiMessagePayloads>(type: T, handler: (data: import('./api/modules/ui/types.ui').UiMessagePayloads[T]) => Promise<void>) => Promise<() => void>;
|
|
59
61
|
onMeetingCanceled: (handler: (data: import('./api/modules/ui/types.ui').UiMeetingCanceledPayload) => Promise<void>) => Promise<() => void>;
|
|
60
62
|
onCanvasUpdated: (handler: (data: import('./api/modules/ui/types.ui').UiCanvasUpdatedPayload) => Promise<void>) => Promise<() => void>;
|
|
@@ -379,6 +381,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
379
381
|
open(payload: import('./api/modules/ui/types.ui').UiOpenRequest): Promise<void>;
|
|
380
382
|
toast(payload: import('./api/modules/ui/types.ui').UiToastRequest): Promise<void>;
|
|
381
383
|
preselectSfdcMeetingId(payload: import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdResponse>;
|
|
384
|
+
selectCollectionContent(payload?: import('./api/modules/ui/types.ui').UiSelectCollectionPlayerRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCollectionPlayerResponse>;
|
|
385
|
+
selectAgendaContent(payload?: import('./api/modules/ui/types.ui').UiSelectAgendaRequest): Promise<import('./api/modules/ui/types.ui').UiSelectAgendaResponse>;
|
|
382
386
|
on: <T extends keyof import('./api/modules/ui/types.ui').UiMessagePayloads>(type: T, handler: (data: import('./api/modules/ui/types.ui').UiMessagePayloads[T]) => Promise<void>) => Promise<() => void>;
|
|
383
387
|
onMeetingCanceled: (handler: (data: import('./api/modules/ui/types.ui').UiMeetingCanceledPayload) => Promise<void>) => Promise<() => void>;
|
|
384
388
|
onCanvasUpdated: (handler: (data: import('./api/modules/ui/types.ui').UiCanvasUpdatedPayload) => Promise<void>) => Promise<() => void>;
|
|
@@ -565,6 +569,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
565
569
|
open(payload: import('./api/modules/ui/types.ui').UiOpenRequest): Promise<void>;
|
|
566
570
|
toast(payload: import('./api/modules/ui/types.ui').UiToastRequest): Promise<void>;
|
|
567
571
|
preselectSfdcMeetingId(payload: import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdRequest): Promise<import('./api/modules/ui/types.ui').UiPreselectSfdcMeetingIdResponse>;
|
|
572
|
+
selectCollectionContent(payload?: import('./api/modules/ui/types.ui').UiSelectCollectionPlayerRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCollectionPlayerResponse>;
|
|
573
|
+
selectAgendaContent(payload?: import('./api/modules/ui/types.ui').UiSelectAgendaRequest): Promise<import('./api/modules/ui/types.ui').UiSelectAgendaResponse>;
|
|
568
574
|
on: <T extends keyof import('./api/modules/ui/types.ui').UiMessagePayloads>(type: T, handler: (data: import('./api/modules/ui/types.ui').UiMessagePayloads[T]) => Promise<void>) => Promise<() => void>;
|
|
569
575
|
onMeetingCanceled: (handler: (data: import('./api/modules/ui/types.ui').UiMeetingCanceledPayload) => Promise<void>) => Promise<() => void>;
|
|
570
576
|
onCanvasUpdated: (handler: (data: import('./api/modules/ui/types.ui').UiCanvasUpdatedPayload) => Promise<void>) => Promise<() => void>;
|
package/lib/types/app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { File, MetadataTemplateFieldTypeEnum } from '../../types/openapi';
|
|
2
|
-
export type EmbedLocation = 'ui_app' | 'canvas' | 'dsr' | 'admin_instance' | 'overlay_app' | 'canvas_section_execution';
|
|
2
|
+
export type EmbedLocation = 'ui_app' | 'canvas' | 'dsr' | 'admin_instance' | 'overlay_app' | 'canvas_section_execution' | 'canvas_drawer';
|
|
3
3
|
export type ModuleSettingsOption = {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type BackgroundPositionX = 'left' | 'center' | 'right';
|
|
2
|
+
export type BackgroundPositionY = 'top' | 'center' | 'bottom';
|
|
3
|
+
export type BackgroundRepeat = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
4
|
+
export type BackgroundSize = 'auto' | 'contain' | 'cover' | '100% 100%';
|
|
5
|
+
export type BackgroundAttachment = 'scroll' | 'fixed' | 'local';
|
package/lib/types/canvases.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export type InstanceSettings = OrganizationSettings & {
|
|
|
27
27
|
show_fallback_section_name_on_collapsibles?: boolean;
|
|
28
28
|
capture_component_enter_exit_events?: 'all' | 'named_components';
|
|
29
29
|
enable_collection_player_component?: boolean;
|
|
30
|
+
autoselect_selected_canvas_account?: boolean;
|
|
31
|
+
require_account_on_canvas_creation?: boolean;
|
|
30
32
|
};
|
|
31
33
|
ios?: InstanceSettings;
|
|
32
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type LaunchDarklyBooleanFlagKey = 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_duplication' | 'allow_canvas_history' | 'allow_canvas_ownership_change' | 'allow_content_grid_autofill' | 'allow_creating_canvas_with_no_template' | 'allow_embeddable_hiding' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_rating' | 'allow_rep_file_upload' | 'are_sections_system_controlled' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'enable_analytics' | 'enable_bulk_update_file_attributes' | 'enable_canvas_node_debugging' | 'enable_canvas_tokens' | '
|
|
1
|
+
export type LaunchDarklyBooleanFlagKey = 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_duplication' | 'allow_canvas_history' | 'allow_canvas_ownership_change' | 'allow_canvases_tables_columns_settings' | 'allow_content_grid_autofill' | 'allow_creating_canvas_with_no_template' | 'allow_embeddable_hiding' | 'allow_multimedia_for_scribble_component' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_rating' | 'allow_rep_file_upload' | 'allow_saving_annotations_in_personal_layer' | 'are_sections_system_controlled' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'enable_analytics' | 'enable_app_developer_role' | 'enable_background_image_theme_options' | 'enable_bulk_update_file_attributes' | 'enable_canvas_blocks' | 'enable_canvas_node_debugging' | 'enable_canvas_tokens' | 'enable_create_section_from_section_template' | 'enable_default_crm_shape' | 'enable_embedded_video_autoplay' | 'enable_embedded_video' | 'enable_enhanced_indicators' | 'enable_experimental_canvas_builder_dnd' | 'enable_file_pages_metadata' | 'enable_file_revisions' | 'enable_folder_details_edit' | 'enable_instance_editor_role' | 'enable_knock_notifications' | 'enable_metadata_in_file_uploads_with_default_values' | 'enable_multimedia_component_ai_images' | 'enable_pipe_character_multi_search' | 'enable_revamped_component_toolbar' | 'enable_saved_canvases_filters' | 'enable_scribble_component' | 'enable_search_and_filters_in_multimedia_component' | 'enable_section_selector_drag_n_drop' | 'enable_smart_folders' | 'enable_suggested_tags' | 'hide_asset_uploader' | 'include_files_content_in_print' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_meeting_bar_account_selection_disabled' | 'is_meeting_bar_hidden' | 'is_rep_canvas_creation_disabled' | 'is_shared_link_creation_disabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'launch_in_present_mode_on_creation' | 'prefer_online_handlers' | 'reorder_component_in_drawer' | 'show_asset_manager_for_multimedia' | 'show_clear_all_annotations_button' | 'show_content_selector_list_view' | 'show_popularity_icons' | 'show_system_filters' | 'use_short_url_for_shared_link';
|
|
2
2
|
export type LaunchDarklyNumberFlagKey = 'canvas_section_selector_page_size' | 'canvas_section_selector_selected_items_with_thumbnail_size';
|
|
3
3
|
type LaunchDarklyObjectFlags = {
|
|
4
4
|
canvas_table_pagination: CanvasTablePagination;
|
|
@@ -13,6 +13,8 @@ declare const LaunchDarklyStringFlags: {
|
|
|
13
13
|
readonly batch_open_content_grid_ar_files: readonly ["off", "simultaneous", "swap"];
|
|
14
14
|
readonly section_selector_drag_n_drop_batch_add_style: readonly ["button", "buttons", "dropdown"];
|
|
15
15
|
readonly pspdfkit_client_version: readonly ["2024.6.0", "2024.7.0"];
|
|
16
|
+
readonly slotty_ui_remote_script_url: readonly ["https://anyvalidurl.xyz", ""];
|
|
17
|
+
readonly dsr_remote_script_url: readonly ["https://anyvalidurl.xyz", ""];
|
|
16
18
|
};
|
|
17
19
|
type LaunchDarklyStringFlagValue<K extends LaunchDarklyStringFlagKey = LaunchDarklyStringFlagKey> = K extends LaunchDarklyStringFlagKey ? (typeof LaunchDarklyStringFlags)[K][number] : never;
|
|
18
20
|
type CanvasManagerVisibility = {
|
|
@@ -7,6 +7,7 @@ type SmartFolderRuleAttribute = {
|
|
|
7
7
|
display_name: string;
|
|
8
8
|
};
|
|
9
9
|
type SmartFolderRuleAttributes = {
|
|
10
|
+
sync?: boolean;
|
|
10
11
|
max_sync_limit?: number;
|
|
11
12
|
sync_chunk_size?: number;
|
|
12
13
|
files?: SmartFolderRuleAttribute[];
|
|
@@ -29,5 +30,11 @@ export type OrganizationSettings = {
|
|
|
29
30
|
enable_indicators?: boolean;
|
|
30
31
|
smart_folder_rule_attributes?: SmartFolderRuleAttributes;
|
|
31
32
|
ios?: OrganizationSettings;
|
|
33
|
+
full_text_search_config?: string;
|
|
34
|
+
include_file_content_in_full_text_search?: boolean;
|
|
35
|
+
include_file_metadata_in_full_text_search?: boolean;
|
|
36
|
+
include_canvas_content_in_full_text_search?: boolean;
|
|
37
|
+
include_canvas_metadata_in_full_text_search?: boolean;
|
|
38
|
+
use_collection_player_as_default_file_viewer?: boolean;
|
|
32
39
|
};
|
|
33
40
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FileRetrieve } from '../../types/openapi';
|
|
2
|
+
export type ContentSelection = {
|
|
3
|
+
fileId: FileRetrieve['id'];
|
|
4
|
+
type: 'file' | 'page';
|
|
5
|
+
pageIndex?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
file?: Pick<FileRetrieve, 'id' | 'name'>;
|
|
8
|
+
};
|
|
9
|
+
export type ExternalLinkSelection = {
|
|
10
|
+
url: string;
|
|
11
|
+
type: 'external_link';
|
|
12
|
+
content_type: 'video' | 'image';
|
|
13
|
+
from: 'custom' | 'pexels' | 'unsplash' | 'ai';
|
|
14
|
+
};
|
|
15
|
+
export type AssetSelection = {
|
|
16
|
+
fileId: FileRetrieve['id'];
|
|
17
|
+
type: 'asset';
|
|
18
|
+
};
|
|
19
|
+
export type Selection = ContentSelection | ExternalLinkSelection | AssetSelection;
|
package/lib/util/eval.d.ts
CHANGED
package/package.json
CHANGED
package/types/openapi/index.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ export type { FavoriteCreate } from './models/FavoriteCreate';
|
|
|
72
72
|
export type { FavoriteCreateRequest } from './models/FavoriteCreateRequest';
|
|
73
73
|
export type { FavoriteFile } from './models/FavoriteFile';
|
|
74
74
|
export type { FavoriteFileRequest } from './models/FavoriteFileRequest';
|
|
75
|
+
export type { FavoriteFolder } from './models/FavoriteFolder';
|
|
76
|
+
export type { FavoriteFolderRequest } from './models/FavoriteFolderRequest';
|
|
75
77
|
export type { FavoriteUpdate } from './models/FavoriteUpdate';
|
|
76
78
|
export type { FavoriteUpdateRequest } from './models/FavoriteUpdateRequest';
|
|
77
79
|
export type { File } from './models/File';
|
|
@@ -23,6 +23,8 @@ export type Canvas = {
|
|
|
23
23
|
readonly shared_link: MiniSharedLink;
|
|
24
24
|
account?: Account | null;
|
|
25
25
|
folder_id?: string | null;
|
|
26
|
+
readonly search_rank: string;
|
|
27
|
+
readonly search_headline: string;
|
|
26
28
|
readonly owned_by: MiniUser;
|
|
27
29
|
readonly created_at: string;
|
|
28
30
|
readonly created_by: MiniUser;
|
|
@@ -30,6 +30,8 @@ export type CanvasCreate = {
|
|
|
30
30
|
account?: Account | null;
|
|
31
31
|
readonly events: Array<MiniEvent>;
|
|
32
32
|
folder_id?: string | null;
|
|
33
|
+
readonly search_rank: string;
|
|
34
|
+
readonly search_headline: string;
|
|
33
35
|
readonly owned_by: MiniUser;
|
|
34
36
|
readonly created_at: string;
|
|
35
37
|
readonly created_by: MiniUser;
|
|
@@ -5,6 +5,7 @@ import { FileContentTypeEnum } from './FileContentTypeEnum';
|
|
|
5
5
|
import { FilePermission } from './FilePermission';
|
|
6
6
|
import { FileStatusEnum } from './FileStatusEnum';
|
|
7
7
|
import { FileTypeEnum } from './FileTypeEnum';
|
|
8
|
+
import { MiniFolder } from './MiniFolder';
|
|
8
9
|
import { MiniSharedLink } from './MiniSharedLink';
|
|
9
10
|
import { MiniUser } from './MiniUser';
|
|
10
11
|
export type CanvasRecommendedFile = {
|
|
@@ -36,7 +37,10 @@ export type CanvasRecommendedFile = {
|
|
|
36
37
|
expires_at?: string | null;
|
|
37
38
|
readonly instance_id: string;
|
|
38
39
|
folder_id?: string;
|
|
40
|
+
readonly folder: MiniFolder;
|
|
39
41
|
readonly shared_link: MiniSharedLink;
|
|
42
|
+
readonly search_rank: string;
|
|
43
|
+
readonly search_headline: string;
|
|
40
44
|
readonly owned_by: MiniUser;
|
|
41
45
|
readonly created_at: string;
|
|
42
46
|
readonly created_by: MiniUser;
|
|
@@ -30,6 +30,8 @@ export type CanvasRetrieve = {
|
|
|
30
30
|
account?: Account | null;
|
|
31
31
|
readonly events: Array<MiniEvent>;
|
|
32
32
|
folder_id?: string | null;
|
|
33
|
+
readonly search_rank: string;
|
|
34
|
+
readonly search_headline: string;
|
|
33
35
|
readonly owned_by: MiniUser;
|
|
34
36
|
readonly created_at: string;
|
|
35
37
|
readonly created_by: MiniUser;
|
|
@@ -30,6 +30,8 @@ export type CanvasUpdate = {
|
|
|
30
30
|
account?: Account | null;
|
|
31
31
|
readonly events: Array<MiniEvent>;
|
|
32
32
|
folder_id?: string | null;
|
|
33
|
+
readonly search_rank: string;
|
|
34
|
+
readonly search_headline: string;
|
|
33
35
|
readonly owned_by: MiniUser;
|
|
34
36
|
readonly created_at: string;
|
|
35
37
|
readonly created_by: MiniUser;
|
|
@@ -23,6 +23,8 @@ export type DeletedCanvas = {
|
|
|
23
23
|
readonly shared_link: MiniSharedLink;
|
|
24
24
|
account?: Account | null;
|
|
25
25
|
folder_id?: string | null;
|
|
26
|
+
readonly search_rank: string;
|
|
27
|
+
readonly search_headline: string;
|
|
26
28
|
readonly owned_by: MiniUser;
|
|
27
29
|
readonly created_at: string;
|
|
28
30
|
readonly created_by: MiniUser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FavoriteFile } from './FavoriteFile';
|
|
2
|
-
import {
|
|
2
|
+
import { FavoriteFolder } from './FavoriteFolder';
|
|
3
3
|
import { MiniPage } from './MiniPage';
|
|
4
4
|
import { MiniUser } from './MiniUser';
|
|
5
5
|
export type DeletedFavorite = {
|
|
@@ -8,7 +8,7 @@ export type DeletedFavorite = {
|
|
|
8
8
|
readonly thumbnail_url: string;
|
|
9
9
|
readonly file: FavoriteFile | null;
|
|
10
10
|
readonly page: MiniPage | null;
|
|
11
|
-
readonly folder:
|
|
11
|
+
readonly folder: FavoriteFolder | null;
|
|
12
12
|
readonly created_at: string;
|
|
13
13
|
readonly created_by: MiniUser;
|
|
14
14
|
readonly modified_at: string;
|
|
@@ -5,6 +5,7 @@ import { FileContentTypeEnum } from './FileContentTypeEnum';
|
|
|
5
5
|
import { FilePermission } from './FilePermission';
|
|
6
6
|
import { FileStatusEnum } from './FileStatusEnum';
|
|
7
7
|
import { FileTypeEnum } from './FileTypeEnum';
|
|
8
|
+
import { MiniFolder } from './MiniFolder';
|
|
8
9
|
import { MiniSharedLink } from './MiniSharedLink';
|
|
9
10
|
import { MiniUser } from './MiniUser';
|
|
10
11
|
export type DeletedFile = {
|
|
@@ -36,7 +37,10 @@ export type DeletedFile = {
|
|
|
36
37
|
expires_at?: string | null;
|
|
37
38
|
readonly instance_id: string;
|
|
38
39
|
folder_id?: string;
|
|
40
|
+
readonly folder: MiniFolder;
|
|
39
41
|
readonly shared_link: MiniSharedLink;
|
|
42
|
+
readonly search_rank: string;
|
|
43
|
+
readonly search_headline: string;
|
|
40
44
|
readonly owned_by: MiniUser;
|
|
41
45
|
readonly created_at: string;
|
|
42
46
|
readonly created_by: MiniUser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FavoriteFile } from './FavoriteFile';
|
|
2
|
-
import {
|
|
2
|
+
import { FavoriteFolder } from './FavoriteFolder';
|
|
3
3
|
import { MiniPage } from './MiniPage';
|
|
4
4
|
import { MiniUser } from './MiniUser';
|
|
5
5
|
export type Favorite = {
|
|
@@ -8,7 +8,7 @@ export type Favorite = {
|
|
|
8
8
|
readonly thumbnail_url: string;
|
|
9
9
|
readonly file: FavoriteFile | null;
|
|
10
10
|
readonly page: MiniPage | null;
|
|
11
|
-
readonly folder:
|
|
11
|
+
readonly folder: FavoriteFolder | null;
|
|
12
12
|
readonly created_at: string;
|
|
13
13
|
readonly created_by: MiniUser;
|
|
14
14
|
readonly modified_at: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FavoriteFile } from './FavoriteFile';
|
|
2
|
-
import {
|
|
2
|
+
import { FavoriteFolder } from './FavoriteFolder';
|
|
3
3
|
import { MiniPage } from './MiniPage';
|
|
4
4
|
export type FavoriteCreate = {
|
|
5
5
|
id?: string;
|
|
@@ -7,5 +7,5 @@ export type FavoriteCreate = {
|
|
|
7
7
|
readonly thumbnail_url: string;
|
|
8
8
|
readonly file: FavoriteFile | null;
|
|
9
9
|
readonly page: MiniPage | null;
|
|
10
|
-
readonly folder:
|
|
10
|
+
readonly folder: FavoriteFolder | null;
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FavoriteFile } from './FavoriteFile';
|
|
2
|
-
import {
|
|
2
|
+
import { FavoriteFolder } from './FavoriteFolder';
|
|
3
3
|
import { MiniPage } from './MiniPage';
|
|
4
4
|
export type FavoriteUpdate = {
|
|
5
5
|
readonly id: string;
|
|
@@ -7,5 +7,5 @@ export type FavoriteUpdate = {
|
|
|
7
7
|
readonly thumbnail_url: string;
|
|
8
8
|
readonly file: FavoriteFile | null;
|
|
9
9
|
readonly page: MiniPage | null;
|
|
10
|
-
readonly folder:
|
|
10
|
+
readonly folder: FavoriteFolder | null;
|
|
11
11
|
};
|