@pitcher/js-api 1.23.0 → 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.
Files changed (171) hide show
  1. package/js-api.esm.js +18 -0
  2. package/js-api.esm.js.map +1 -1
  3. package/js-api.umd.min.js +9 -9
  4. package/js-api.umd.min.js.map +1 -1
  5. package/lib/apps/agenda-selector/App.vue.d.ts +9 -0
  6. package/lib/apps/agenda-selector/components/AgendaGroup.vue.d.ts +7 -0
  7. package/lib/apps/agenda-selector/components/AgendaItem.vue.d.ts +29 -0
  8. package/lib/apps/agenda-selector/components/AgendaToolbar.vue.d.ts +2 -0
  9. package/lib/apps/agenda-selector/components/AppFooter.vue.d.ts +8 -0
  10. package/lib/apps/agenda-selector/components/AppHeader.vue.d.ts +6 -0
  11. package/lib/apps/agenda-selector/components/modals/ApplicationBlockSelectorModal.vue.d.ts +8 -0
  12. package/lib/apps/agenda-selector/components/modals/MoveItemModal.vue.d.ts +15 -0
  13. package/lib/apps/agenda-selector/composables/application-block-selector-modal.use.d.ts +17 -0
  14. package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +128 -0
  15. package/lib/apps/agenda-selector/composables/table-input.use.d.ts +15 -0
  16. package/lib/apps/agenda-selector/stores/app.store.d.ts +32 -0
  17. package/lib/apps/agenda-selector/types/agenda.type.d.ts +28 -0
  18. package/lib/apps/agenda-selector/types/common.type.d.ts +8 -0
  19. package/lib/apps/agenda-selector/types/move-item-modal.type.d.ts +5 -0
  20. package/lib/apps/agenda-selector/utils/data.util.d.ts +14 -0
  21. package/lib/apps/agenda-selector/utils/theme-overrides.util.d.ts +8 -0
  22. package/lib/apps/browser/App.vue.d.ts +3 -1
  23. package/lib/apps/browser/components/UploadFilesDropzone/UploadFilesDropzone.vue.d.ts +5 -1
  24. package/lib/apps/browser/stores/api.d.ts +28 -6
  25. package/lib/apps/browser/stores/upload.d.ts +12 -12
  26. package/lib/apps/canvas-builder/App.vue.d.ts +56 -32
  27. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +9 -0
  28. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +10 -10
  29. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentLegacy.vue.d.ts +9 -0
  30. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentRevamp.vue.d.ts +13 -0
  31. package/lib/apps/canvas-builder/components/container/EditableComponent/ResizeHandles.vue.d.ts +23 -0
  32. package/lib/apps/canvas-builder/components/ui/Block/Block.helpers.d.ts +2 -0
  33. package/lib/apps/canvas-builder/components/ui/Block/Block.types.d.ts +7 -0
  34. package/lib/apps/canvas-builder/components/ui/{CollectionPlayer/CollectionSelector.vue.d.ts → Block/BlockToolbar.vue.d.ts} +6 -11
  35. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +4 -3
  36. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/{CollectionPlayer.edit.vue.d.ts → CollectionPlayerEmpty.vue.d.ts} +5 -5
  37. package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.raw.vue.d.ts +3 -1
  38. package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.vue.d.ts +4 -5
  39. package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +34 -0
  40. package/lib/apps/canvas-builder/components/ui/Scribble/scribble.helpers.d.ts +5 -0
  41. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelector.helpers.d.ts +6 -1
  42. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorSelected.vue.d.ts +2 -2
  43. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +519 -439
  44. package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +117 -94
  45. package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +1 -1
  46. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +104 -86
  47. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +1 -1
  48. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +1 -1
  49. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +38 -0
  50. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +1 -1
  51. package/lib/apps/canvas-builder/composables/useCollectionSelector.d.ts +9 -0
  52. package/lib/apps/canvas-builder/composables/useComponentStyle.d.ts +22 -0
  53. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +5 -14
  54. package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +28 -0
  55. package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +4 -2
  56. package/lib/apps/canvas-builder/types/canvas.d.ts +22 -31
  57. package/lib/apps/canvas-builder/util/canvas.util.d.ts +6 -5
  58. package/lib/apps/canvas-builder/util/url.d.ts +1 -0
  59. package/lib/apps/canvas-selector/stores/app.d.ts +28 -0
  60. package/lib/apps/collection-player/App.vue.d.ts +33 -0
  61. package/lib/apps/collection-player/components/AppFooter.vue.d.ts +2 -0
  62. package/lib/apps/collection-player/components/AppHeader.vue.d.ts +2 -0
  63. package/lib/apps/collection-player/components/AppWrapper.vue.d.ts +17 -0
  64. package/lib/apps/collection-player/components/MainContent.vue.d.ts +2 -0
  65. package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/components/MainImage.vue.d.ts +3 -3
  66. package/lib/apps/collection-player/components/TableOfContents.vue.d.ts +2 -0
  67. package/lib/apps/collection-player/composables/focus-trap.use.d.ts +9 -0
  68. package/lib/apps/collection-player/composables/fullscreen.use.d.ts +10 -0
  69. package/lib/apps/{canvas-builder/components/ui/CollectionPlayer/composables/gestures.use.d.ts → collection-player/composables/moving-group-gestures.use.d.ts} +6 -3
  70. package/lib/apps/collection-player/composables/slide-direction.use.d.ts +11 -0
  71. package/lib/apps/collection-player/composables/tracking.use.d.ts +10 -0
  72. package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/zoom.use.d.ts +2 -2
  73. package/lib/apps/collection-player/export.d.ts +3 -0
  74. package/lib/apps/collection-player/stores/app.store.d.ts +77 -0
  75. package/lib/apps/collection-player/types/collection-player.type.d.ts +26 -0
  76. package/lib/apps/collection-player/utils/node.util.d.ts +4 -0
  77. package/lib/apps/collection-player/utils/slide-type.util.d.ts +5 -0
  78. package/lib/apps/collection-selector/App.vue.d.ts +29 -0
  79. package/lib/apps/collection-selector/components/AppFooter.vue.d.ts +8 -0
  80. package/lib/apps/collection-selector/components/AppHeader.vue.d.ts +6 -0
  81. package/lib/apps/collection-selector/components/CollectionGroup.vue.d.ts +7 -0
  82. package/lib/apps/collection-selector/components/CollectionItem.vue.d.ts +21 -0
  83. package/lib/apps/collection-selector/components/CollectionToolbar.vue.d.ts +2 -0
  84. package/lib/apps/{canvas-builder/components/ui/CollectionPlayer/CollectionGroupSelector.vue.d.ts → collection-selector/components/modals/MoveSlideModal.vue.d.ts} +7 -13
  85. package/lib/apps/collection-selector/composables/move-slide-modal.use.d.ts +106 -0
  86. package/lib/apps/collection-selector/composables/table-input.use.d.ts +15 -0
  87. package/lib/apps/collection-selector/stores/app.store.d.ts +156 -0
  88. package/lib/apps/collection-selector/types/collection-selector.type.d.ts +12 -0
  89. package/lib/apps/collection-selector/types/common.type.d.ts +18 -0
  90. package/lib/apps/collection-selector/types/move-slide-modal.type.d.ts +5 -0
  91. package/lib/apps/collection-selector/utils/content-selector-adapter.util.d.ts +41 -0
  92. package/lib/apps/collection-selector/utils/data.util.d.ts +23 -0
  93. package/lib/apps/collection-selector/utils/theme-overrides.util.d.ts +8 -0
  94. package/lib/apps/content-selector/appTypes.d.ts +7 -29
  95. package/lib/apps/content-selector/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +2 -0
  96. package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesListItem.vue.d.ts +6 -3
  97. package/lib/apps/content-selector/stores/api.d.ts +252 -0
  98. package/lib/apps/content-selector/stores/app.d.ts +42 -7
  99. package/lib/components/CBackgroundImageThemeOptions/CBackgroundImageThemeOptions.vue.d.ts +42 -0
  100. package/lib/components/CCanvasSelector/CCanvasSelector.vue.d.ts +3 -0
  101. package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +9 -2
  102. package/lib/components/CComponentThemeOptions/CComponentThemeOptions.vue.d.ts +55 -15
  103. package/lib/components/CDataTable/CDataTableEdit.use.d.ts +1 -1
  104. package/lib/components/CFileViewer/pdf/CFileViewerCopyPagesMetadata.pdf.vue.d.ts +5 -1
  105. package/lib/components/CGlobalSearch/CGlobalSearch.vue.d.ts +3 -2
  106. package/lib/components/CIcon/CIcon.vue.d.ts +1 -0
  107. package/lib/components/CInfoBadge/CInfoBadge.vue.d.ts +1 -1
  108. package/lib/components/CRichTextEditor/CRichTextEditor.vue.d.ts +8 -0
  109. package/lib/components/CRichTextEditor/components/CContentLinkToolbar.vue.d.ts +8 -0
  110. package/lib/components/CRichTextEditor/components/CEditorMenu.vue.d.ts +8 -0
  111. package/lib/components/CRichTextEditor/extensions/contentLink.d.ts +9 -3
  112. package/lib/components/CSearch/CSearchOnClick.vue.d.ts +15 -1
  113. package/lib/components/CSearchFilters/CSearchFilters.types.d.ts +5 -0
  114. package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +22 -1
  115. package/lib/components/CSingleFileSelector/CSingleFileSelector.vue.d.ts +9 -3
  116. package/lib/components/CTable/CTable.vue.d.ts +2 -2
  117. package/lib/components/CTableColumnsSettings/CTableColumnsSettings.vue.d.ts +2 -2
  118. package/lib/components/CTableTag/CTableTag.vue.d.ts +1 -1
  119. package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +6 -6
  120. package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +39 -54
  121. package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +26 -35
  122. package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +32 -43
  123. package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +1 -0
  124. package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +25 -33
  125. package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +11 -6
  126. package/lib/components/sections/CSectionManagement.vue.d.ts +6 -6
  127. package/lib/composables/useConfirmation.d.ts +1 -0
  128. package/lib/composables/useToast.d.ts +6 -5
  129. package/lib/constants/appsDb.const.d.ts +2 -0
  130. package/lib/main.lib.d.ts +10 -0
  131. package/lib/sdk/api/modules/admin/types.admin.d.ts +20 -1
  132. package/lib/sdk/api/modules/ui/content.ui.d.ts +31 -1
  133. package/lib/sdk/api/modules/ui/index.d.ts +2 -0
  134. package/lib/sdk/api/modules/ui/types.ui.d.ts +29 -2
  135. package/lib/sdk/interfaces.d.ts +6 -0
  136. package/lib/sdk/main.d.ts +6 -0
  137. package/lib/types/app.d.ts +1 -1
  138. package/lib/types/background.d.ts +5 -0
  139. package/lib/types/common.d.ts +2 -0
  140. package/lib/types/instanceSettings.types.d.ts +2 -0
  141. package/lib/types/launchDarkly.types.d.ts +3 -1
  142. package/lib/types/organizationSettings.types.d.ts +1 -1
  143. package/lib/types/selections.d.ts +19 -0
  144. package/lib/util/eval.d.ts +1 -0
  145. package/package.json +1 -1
  146. package/types/openapi/index.d.ts +2 -0
  147. package/types/openapi/models/Canvas.d.ts +2 -0
  148. package/types/openapi/models/CanvasCreate.d.ts +2 -0
  149. package/types/openapi/models/CanvasRecommendedFile.d.ts +4 -0
  150. package/types/openapi/models/CanvasRetrieve.d.ts +2 -0
  151. package/types/openapi/models/CanvasUpdate.d.ts +2 -0
  152. package/types/openapi/models/DeletedCanvas.d.ts +2 -0
  153. package/types/openapi/models/DeletedFavorite.d.ts +2 -2
  154. package/types/openapi/models/DeletedFile.d.ts +4 -0
  155. package/types/openapi/models/Favorite.d.ts +2 -2
  156. package/types/openapi/models/FavoriteCreate.d.ts +2 -2
  157. package/types/openapi/models/FavoriteFolder.d.ts +6 -0
  158. package/types/openapi/models/FavoriteFolderRequest.d.ts +3 -0
  159. package/types/openapi/models/FavoriteUpdate.d.ts +2 -2
  160. package/types/openapi/models/File.d.ts +4 -0
  161. package/types/openapi/models/FileCreate.d.ts +4 -0
  162. package/types/openapi/models/FileRetrieve.d.ts +4 -0
  163. package/types/openapi/models/FileUpdate.d.ts +4 -0
  164. package/types/openapi/models/SearchCanvas.d.ts +1 -0
  165. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionListItem.vue.d.ts +0 -37
  166. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.raw.vue.d.ts +0 -19
  167. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/tracking.use.d.ts +0 -4
  168. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +0 -5
  169. package/lib/apps/canvas-builder/composables/useCollectionPlayer.d.ts +0 -31
  170. /package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/arrow-keys.use.d.ts +0 -0
  171. /package/lib/apps/{canvas-builder/components/ui/CollectionPlayer → collection-player}/composables/image-cache.use.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ import { Agenda, AgendaSelectorProps } from './types/agenda.type';
2
+ declare const _default: import('vue').DefineComponent<AgendaSelectorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ cancel: () => any;
4
+ close: (agenda: Agenda) => any;
5
+ }, string, import('vue').PublicProps, Readonly<AgendaSelectorProps> & Readonly<{
6
+ onCancel?: (() => any) | undefined;
7
+ onClose?: ((agenda: Agenda) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { AgendaGroup } from '../types/agenda.type';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ group: AgendaGroup;
4
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
+ group: AgendaGroup;
6
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { ValuesOf } from '../../../types/common';
2
+ import { CollectionPlayer } from '../../collection-player/types/collection-player.type';
3
+ import { ContentType } from '../types/agenda.type';
4
+ declare const _default: import('vue').DefineComponent<{
5
+ content: CollectionPlayer;
6
+ type: ValuesOf<ContentType>;
7
+ isFirst?: boolean;
8
+ isLast?: boolean;
9
+ disabledMoveToGroup?: boolean;
10
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ delete: () => any;
12
+ edit: () => any;
13
+ moveUp: () => any;
14
+ moveDown: () => any;
15
+ moveToGroup: () => any;
16
+ }, string, import('vue').PublicProps, Readonly<{
17
+ content: CollectionPlayer;
18
+ type: ValuesOf<ContentType>;
19
+ isFirst?: boolean;
20
+ isLast?: boolean;
21
+ disabledMoveToGroup?: boolean;
22
+ }> & Readonly<{
23
+ onDelete?: (() => any) | undefined;
24
+ onEdit?: (() => any) | undefined;
25
+ onMoveUp?: (() => any) | undefined;
26
+ onMoveDown?: (() => any) | undefined;
27
+ onMoveToGroup?: (() => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ cancel: () => any;
3
+ close: () => any;
4
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
5
+ onCancel?: (() => any) | undefined;
6
+ onClose?: (() => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ close: () => any;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ onClose?: (() => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ items: [];
3
+ zIndex?: number;
4
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
+ items: [];
6
+ zIndex?: number;
7
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { AgendaGroup, AgendaItem } from '../../types/agenda.type';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ zIndex?: number;
4
+ groups: AgendaGroup[];
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ close: () => any;
7
+ moveToGroup: (fromGroup: string, toGroup: string, item: AgendaItem) => any;
8
+ }, string, import('vue').PublicProps, Readonly<{
9
+ zIndex?: number;
10
+ groups: AgendaGroup[];
11
+ }> & Readonly<{
12
+ onClose?: (() => any) | undefined;
13
+ onMoveToGroup?: ((fromGroup: string, toGroup: string, item: AgendaItem) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { ValuesOf } from '@tiptap/core';
3
+ import { ContentType } from '../types/agenda.type';
4
+ type ApplicationBlockSelectorModal = {
5
+ open: (type: ValuesOf<ContentType>) => void;
6
+ close: () => void;
7
+ isOpen: Readonly<ComputedRef<boolean>>;
8
+ activeElement: Readonly<Ref<ValuesOf<ContentType> | null>>;
9
+ };
10
+ export declare function provideApplicationBlockSelectorModal(): {
11
+ activeElement: Ref<ValuesOf<ContentType> | null, ValuesOf<ContentType> | null>;
12
+ isOpen: ComputedRef<boolean>;
13
+ open: (type: ValuesOf<ContentType>) => void;
14
+ close: () => null;
15
+ };
16
+ export declare function useApplicationBlockSelectorModal(): ApplicationBlockSelectorModal;
17
+ export {};
@@ -0,0 +1,128 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { ActiveElement } from '../types/move-item-modal.type';
3
+ type MoveItemModal = {
4
+ open: (type: ActiveElement) => void;
5
+ close: () => void;
6
+ isOpen: Readonly<ComputedRef<boolean>>;
7
+ activeElement: Readonly<Ref<ActiveElement | null>>;
8
+ };
9
+ export declare function provideMoveItemModal(): {
10
+ isOpen: ComputedRef<boolean>;
11
+ activeElement: Ref<{
12
+ groupId: string;
13
+ item: {
14
+ id: string;
15
+ content: {
16
+ groups: {
17
+ id: string;
18
+ name: string;
19
+ slides: ({
20
+ id: string;
21
+ type: "slide";
22
+ file: {
23
+ metadata?: Record<string, any> | undefined;
24
+ readonly id: string;
25
+ name?: string | undefined;
26
+ readonly type: import('../../../main.lib').FileTypeEnum;
27
+ readonly thumbnail_url: string | null;
28
+ permissions?: {
29
+ can_download?: boolean | undefined;
30
+ can_share?: boolean | undefined;
31
+ } | undefined;
32
+ readonly content_url: string | null;
33
+ readonly content_type: import('../../../main.lib').FileContentTypeEnum;
34
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
35
+ readonly pspdfkit_document_id: string | null;
36
+ readonly pspdfkit_server_url: string | null;
37
+ };
38
+ slide: {
39
+ index: number;
40
+ url: import('../../../main.lib').FileRetrieve["thumbnail_url"];
41
+ };
42
+ } | {
43
+ id: string;
44
+ type: "file";
45
+ file: {
46
+ metadata?: Record<string, any> | undefined;
47
+ readonly id: string;
48
+ name?: string | undefined;
49
+ readonly type: import('../../../main.lib').FileTypeEnum;
50
+ readonly thumbnail_url: string | null;
51
+ permissions?: {
52
+ can_download?: boolean | undefined;
53
+ can_share?: boolean | undefined;
54
+ } | undefined;
55
+ readonly content_url: string | null;
56
+ readonly content_type: import('../../../main.lib').FileContentTypeEnum;
57
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
58
+ readonly pspdfkit_document_id: string | null;
59
+ readonly pspdfkit_server_url: string | null;
60
+ };
61
+ })[];
62
+ }[];
63
+ name: string;
64
+ };
65
+ type: import('../../../types/common').ValuesOf<import('../types/agenda.type').ContentType>;
66
+ };
67
+ } | null, ActiveElement | {
68
+ groupId: string;
69
+ item: {
70
+ id: string;
71
+ content: {
72
+ groups: {
73
+ id: string;
74
+ name: string;
75
+ slides: ({
76
+ id: string;
77
+ type: "slide";
78
+ file: {
79
+ metadata?: Record<string, any> | undefined;
80
+ readonly id: string;
81
+ name?: string | undefined;
82
+ readonly type: import('../../../main.lib').FileTypeEnum;
83
+ readonly thumbnail_url: string | null;
84
+ permissions?: {
85
+ can_download?: boolean | undefined;
86
+ can_share?: boolean | undefined;
87
+ } | undefined;
88
+ readonly content_url: string | null;
89
+ readonly content_type: import('../../../main.lib').FileContentTypeEnum;
90
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
91
+ readonly pspdfkit_document_id: string | null;
92
+ readonly pspdfkit_server_url: string | null;
93
+ };
94
+ slide: {
95
+ index: number;
96
+ url: import('../../../main.lib').FileRetrieve["thumbnail_url"];
97
+ };
98
+ } | {
99
+ id: string;
100
+ type: "file";
101
+ file: {
102
+ metadata?: Record<string, any> | undefined;
103
+ readonly id: string;
104
+ name?: string | undefined;
105
+ readonly type: import('../../../main.lib').FileTypeEnum;
106
+ readonly thumbnail_url: string | null;
107
+ permissions?: {
108
+ can_download?: boolean | undefined;
109
+ can_share?: boolean | undefined;
110
+ } | undefined;
111
+ readonly content_url: string | null;
112
+ readonly content_type: import('../../../main.lib').FileContentTypeEnum;
113
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
114
+ readonly pspdfkit_document_id: string | null;
115
+ readonly pspdfkit_server_url: string | null;
116
+ };
117
+ })[];
118
+ }[];
119
+ name: string;
120
+ };
121
+ type: import('../../../types/common').ValuesOf<import('../types/agenda.type').ContentType>;
122
+ };
123
+ } | null>;
124
+ open: (type: ActiveElement) => void;
125
+ close: () => null;
126
+ };
127
+ export declare function useMoveItemModal(): MoveItemModal;
128
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Ref } from 'vue';
2
+ type TableInput = {
3
+ activeInputId: Ref<string | null>;
4
+ setActiveInput: (id: string) => void;
5
+ clearActiveInput: () => void;
6
+ getInputState: (isEdit: boolean) => 'edit' | 'view';
7
+ };
8
+ export declare function provideTableInput(): {
9
+ activeInputId: Ref<string | null, string | null>;
10
+ setActiveInput: (id: string) => string;
11
+ clearActiveInput: () => void;
12
+ getInputState: (isEdit: boolean) => "edit" | "view";
13
+ };
14
+ export declare function useTableInput(): TableInput;
15
+ export {};
@@ -0,0 +1,32 @@
1
+ import { Ref } from 'vue';
2
+ import { default as useConfirmation } from '../../../composables/useConfirmation';
3
+ import { Agenda, AgendaGroup, AgendaItem } from '../types/agenda.type';
4
+ import { SelectCollectionContent } from '../types/common.type';
5
+ type StorePayload = {
6
+ initialAgenda?: Agenda;
7
+ t: (key: string, values?: Record<string, string | number>) => string;
8
+ confirmation: ReturnType<typeof useConfirmation>;
9
+ selectCollectionContent: SelectCollectionContent;
10
+ attachTo?: HTMLElement | string;
11
+ zIndex?: number;
12
+ };
13
+ type StoreData = {
14
+ agenda: Ref<Agenda>;
15
+ expandedGroups: Ref<string[]>;
16
+ addGroup: (group?: Partial<AgendaGroup>) => AgendaGroup | undefined;
17
+ deleteGroup: (groupId: string, groupName: string) => void;
18
+ updateGroup: (group: Partial<Omit<AgendaGroup, 'id'>> & Pick<AgendaGroup, 'id'>) => void;
19
+ updateGroups: (groups: AgendaGroup[]) => void;
20
+ updateItems: (groupId: string, items: AgendaItem[]) => void;
21
+ updateAgendaName: (name: string) => void;
22
+ updateGroupName: (groupId: string, name: string) => void;
23
+ deleteItem: (groupId: string, item: AgendaItem) => void;
24
+ editItem: (groupId: string, item: AgendaItem) => Promise<void>;
25
+ addItem: (groupId: string) => Promise<AgendaItem | undefined>;
26
+ moveItemToGroup: (fromGroup: string, toGroup: string, item: AgendaItem) => void;
27
+ selectCollectionContent: SelectCollectionContent;
28
+ childModalZIndex?: number;
29
+ };
30
+ export declare function provideAppStore({ initialAgenda, t, confirmation, selectCollectionContent, attachTo, zIndex, }: StorePayload): StoreData;
31
+ export declare function useAppStore(): StoreData;
32
+ export {};
@@ -0,0 +1,28 @@
1
+ import { CollectionPlayer } from '../../collection-player/types/collection-player.type';
2
+ import { ValuesOf } from '../../../types/common';
3
+ import { SelectCollectionContent } from './common.type';
4
+ export declare enum ContentType {
5
+ Collection = "collection",
6
+ Application = "application",
7
+ Block = "block"
8
+ }
9
+ export type AgendaItem = {
10
+ id: string;
11
+ content: CollectionPlayer;
12
+ type: ValuesOf<ContentType>;
13
+ };
14
+ export type AgendaGroup = {
15
+ id: string;
16
+ name: string;
17
+ items: AgendaItem[];
18
+ };
19
+ export type Agenda = {
20
+ name: string;
21
+ groups: AgendaGroup[];
22
+ };
23
+ export type AgendaSelectorProps = {
24
+ zIndex?: number;
25
+ attachTo?: string | HTMLElement;
26
+ initialAgenda?: Agenda;
27
+ selectCollectionContent: SelectCollectionContent;
28
+ };
@@ -0,0 +1,8 @@
1
+ import { CollectionPlayer } from '../../collection-player/types/collection-player.type';
2
+ export type SelectCollectionContent = (payload: {
3
+ initialData?: CollectionPlayer;
4
+ attachTo?: HTMLElement | string;
5
+ }) => Promise<{
6
+ user_action: string;
7
+ content?: CollectionPlayer;
8
+ }>;
@@ -0,0 +1,5 @@
1
+ import { AgendaItem } from './agenda.type';
2
+ export type ActiveElement = {
3
+ groupId: string;
4
+ item: AgendaItem;
5
+ };
@@ -0,0 +1,14 @@
1
+ import { I18nTranslate } from '../../../types/common';
2
+ export declare const generateNewAgenda: (t: I18nTranslate) => {
3
+ name: string;
4
+ groups: {
5
+ id: string;
6
+ name: string;
7
+ items: never[];
8
+ }[];
9
+ };
10
+ export declare const generateNewGroup: (t: I18nTranslate) => {
11
+ id: string;
12
+ name: string;
13
+ items: never[];
14
+ };
@@ -0,0 +1,8 @@
1
+ export declare const dropdownThemeOverrides: {
2
+ padding: string;
3
+ peers: {
4
+ Popover: {
5
+ boxShadow: string;
6
+ };
7
+ };
8
+ };
@@ -6,7 +6,9 @@ declare function __VLS_template(): {
6
6
  slots: {
7
7
  "single-file-details"?(_: {}): any;
8
8
  };
9
- refs: {};
9
+ refs: {
10
+ app: HTMLDivElement;
11
+ };
10
12
  attrs: Partial<{}>;
11
13
  };
12
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -1,2 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{
2
+ area?: HTMLElement;
3
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
4
+ area?: HTMLElement;
5
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
6
  export default _default;
@@ -129,10 +129,10 @@ declare const _default: () => {
129
129
  readonly files: readonly {
130
130
  readonly id: string;
131
131
  readonly name?: string | undefined;
132
+ readonly thumbnail_url: string | null;
133
+ readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
132
134
  readonly tags?: readonly string[] | undefined;
133
135
  readonly status: FileStatusEnum;
134
- readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
135
- readonly thumbnail_url: string | null;
136
136
  readonly created_by: {
137
137
  readonly id: number;
138
138
  readonly name: string;
@@ -193,10 +193,16 @@ declare const _default: () => {
193
193
  readonly expires_at?: (string | null) | undefined;
194
194
  readonly instance_id: string;
195
195
  readonly folder_id?: string | undefined;
196
+ readonly folder: {
197
+ readonly id: string;
198
+ readonly name: string;
199
+ };
196
200
  readonly shared_link: {
197
201
  readonly url: string;
198
202
  readonly short_url?: (string | null) | undefined;
199
203
  };
204
+ readonly search_rank: string;
205
+ readonly search_headline: string;
200
206
  readonly owned_by: {
201
207
  readonly id: number;
202
208
  readonly name: string;
@@ -325,6 +331,8 @@ declare const _default: () => {
325
331
  readonly folder: {
326
332
  readonly id: string;
327
333
  readonly name: string;
334
+ readonly thumbnail_url: string | null;
335
+ readonly file_thumbnail_urls: readonly string[];
328
336
  } | null;
329
337
  readonly created_at: string;
330
338
  readonly created_by: {
@@ -390,16 +398,20 @@ declare const _default: () => {
390
398
  };
391
399
  readonly modified_at: string;
392
400
  readonly folder_id?: string | undefined;
401
+ readonly folder: {
402
+ readonly id: string;
403
+ readonly name: string;
404
+ };
393
405
  }[];
394
406
  };
395
407
  getters: {
396
408
  readonly sortedFiles: readonly {
397
409
  readonly id: string;
398
410
  readonly name?: string | undefined;
411
+ readonly thumbnail_url: string | null;
412
+ readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
399
413
  readonly tags?: readonly string[] | undefined;
400
414
  readonly status: FileStatusEnum;
401
- readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
402
- readonly thumbnail_url: string | null;
403
415
  readonly created_by: {
404
416
  readonly id: number;
405
417
  readonly name: string;
@@ -520,10 +532,10 @@ declare const _default: () => {
520
532
  files: {
521
533
  readonly id: string;
522
534
  name?: string | undefined;
535
+ readonly thumbnail_url: string | null;
536
+ readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
523
537
  tags?: Array<string> | undefined;
524
538
  readonly status: FileStatusEnum;
525
- readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
526
- readonly thumbnail_url: string | null;
527
539
  readonly created_by: {
528
540
  readonly id: number;
529
541
  readonly name: string;
@@ -578,10 +590,16 @@ declare const _default: () => {
578
590
  expires_at?: (string | null) | undefined;
579
591
  readonly instance_id: string;
580
592
  folder_id?: string | undefined;
593
+ readonly folder: {
594
+ readonly id: string;
595
+ name: string;
596
+ };
581
597
  readonly shared_link: {
582
598
  readonly url: string;
583
599
  short_url?: (string | null) | undefined;
584
600
  };
601
+ readonly search_rank: string;
602
+ readonly search_headline: string;
585
603
  readonly owned_by: {
586
604
  readonly id: number;
587
605
  readonly name: string;
@@ -730,6 +748,10 @@ declare const _default: () => {
730
748
  };
731
749
  readonly modified_at: string;
732
750
  folder_id?: string | undefined;
751
+ folder: {
752
+ id: string;
753
+ name: string;
754
+ };
733
755
  }[];
734
756
  } & {
735
757
  fileOpener: null;
@@ -21,13 +21,13 @@ export default function (): {
21
21
  metadata?: Record<string, any> | undefined;
22
22
  name?: string | undefined;
23
23
  type?: import('../../../../types/openapi').FileTypeEnum | undefined;
24
- tags?: Array<string> | undefined;
25
- download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
26
- access_type?: AccessTypeEnum | undefined;
27
24
  permissions?: {
28
25
  can_download?: boolean | undefined;
29
26
  can_share?: boolean | undefined;
30
27
  } | undefined;
28
+ tags?: Array<string> | undefined;
29
+ download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
30
+ access_type?: AccessTypeEnum | undefined;
31
31
  app_metadata?: Record<string, any> | undefined;
32
32
  expires_at?: (string | null) | undefined;
33
33
  folder_id?: string | undefined;
@@ -62,13 +62,13 @@ export default function (): {
62
62
  metadata?: Record<string, any> | undefined;
63
63
  name?: string | undefined;
64
64
  type?: import('../../../../types/openapi').FileTypeEnum | undefined;
65
- tags?: Array<string> | undefined;
66
- download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
67
- access_type?: AccessTypeEnum | undefined;
68
65
  permissions?: {
69
66
  can_download?: boolean | undefined;
70
67
  can_share?: boolean | undefined;
71
68
  } | undefined;
69
+ tags?: Array<string> | undefined;
70
+ download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
71
+ access_type?: AccessTypeEnum | undefined;
72
72
  app_metadata?: Record<string, any> | undefined;
73
73
  expires_at?: (string | null) | undefined;
74
74
  folder_id?: string | undefined;
@@ -102,13 +102,13 @@ export default function (): {
102
102
  metadata?: Record<string, any> | undefined;
103
103
  name?: string | undefined;
104
104
  type?: import('../../../../types/openapi').FileTypeEnum | undefined;
105
- tags?: Array<string> | undefined;
106
- download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
107
- access_type?: AccessTypeEnum | undefined;
108
105
  permissions?: {
109
106
  can_download?: boolean | undefined;
110
107
  can_share?: boolean | undefined;
111
108
  } | undefined;
109
+ tags?: Array<string> | undefined;
110
+ download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
111
+ access_type?: AccessTypeEnum | undefined;
112
112
  app_metadata?: Record<string, any> | undefined;
113
113
  expires_at?: (string | null) | undefined;
114
114
  folder_id?: string | undefined;
@@ -143,13 +143,13 @@ export default function (): {
143
143
  metadata?: Record<string, any> | undefined;
144
144
  name?: string | undefined;
145
145
  type?: import('../../../../types/openapi').FileTypeEnum | undefined;
146
- tags?: Array<string> | undefined;
147
- download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
148
- access_type?: AccessTypeEnum | undefined;
149
146
  permissions?: {
150
147
  can_download?: boolean | undefined;
151
148
  can_share?: boolean | undefined;
152
149
  } | undefined;
150
+ tags?: Array<string> | undefined;
151
+ download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
152
+ access_type?: AccessTypeEnum | undefined;
153
153
  app_metadata?: Record<string, any> | undefined;
154
154
  expires_at?: (string | null) | undefined;
155
155
  folder_id?: string | undefined;