@opencloud-eu/web-pkg 6.1.0 → 7.0.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 (132) hide show
  1. package/dist/assets/worker-B8V6K8WY.js +25 -0
  2. package/dist/assets/worker-BjLAp2qA.js +25 -0
  3. package/dist/assets/worker-Cz7k4ET0.js +25 -0
  4. package/dist/{composables-TkULFBg4.js → components-DGm07xAo.js} +8229 -10761
  5. package/dist/src/components/AppBar/AppBar.vue.d.ts +34 -91
  6. package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +1 -9
  7. package/dist/src/components/AppTopBar.vue.d.ts +3 -11
  8. package/dist/src/components/Avatars/AvatarUpload.vue.d.ts +0 -1
  9. package/dist/src/components/Avatars/UserAvatar.vue.d.ts +1 -9
  10. package/dist/src/components/ContextActions/ActionMenuDropItem.vue.d.ts +1 -9
  11. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +9 -27
  12. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +30 -134
  13. package/dist/src/components/CreateLinkModal.vue.d.ts +6 -14
  14. package/dist/src/components/CreateShortcutModal.vue.d.ts +34 -142
  15. package/dist/src/components/CustomComponentTarget.vue.d.ts +1 -9
  16. package/dist/src/components/FilesList/ContextActions.vue.d.ts +9 -27
  17. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -17
  18. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +1 -9
  19. package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +5 -12
  20. package/dist/src/components/FilesList/ResourceName.vue.d.ts +3 -9
  21. package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +1 -9
  22. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +8 -16
  23. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +6 -14
  24. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +7 -15
  25. package/dist/src/components/Filters/DateFilter.vue.d.ts +5 -13
  26. package/dist/src/components/ImageCropper.vue.d.ts +12 -0
  27. package/dist/src/components/ItemFilter.vue.d.ts +5 -13
  28. package/dist/src/components/NoContentMessage.vue.d.ts +1 -9
  29. package/dist/src/components/Search/ResourcePreview.vue.d.ts +1 -9
  30. package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +1 -1
  31. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +1 -9
  32. package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +1 -9
  33. package/dist/src/components/SideBar/SideBar.vue.d.ts +5 -13
  34. package/dist/src/components/SideBar/SideBarPanels.vue.d.ts +6 -14
  35. package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +1 -9
  36. package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +1 -9
  37. package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +5 -1
  38. package/dist/src/components/SpaceQuota.vue.d.ts +1 -9
  39. package/dist/src/components/Spaces/QuotaModal.vue.d.ts +3 -11
  40. package/dist/src/components/Spaces/SpaceImageModal.vue.d.ts +2 -11
  41. package/dist/src/components/ViewOptions.vue.d.ts +1 -9
  42. package/dist/src/components/index.d.ts +0 -2
  43. package/dist/src/composables/actions/files/index.d.ts +0 -21
  44. package/dist/src/composables/actions/spaces/index.d.ts +0 -12
  45. package/dist/src/composables/actions/types.d.ts +93 -2
  46. package/dist/src/composables/breadcrumbs/useBreadcrumbsFromPath.d.ts +1 -3
  47. package/dist/src/composables/driveResolver/useDriveResolver.d.ts +0 -1
  48. package/dist/src/composables/keyboardActions/useCropperKeyboardActions.d.ts +2 -1
  49. package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +1 -0
  50. package/dist/src/composables/piniaStores/auth.d.ts +24 -2
  51. package/dist/src/composables/piniaStores/avatars.d.ts +3 -3
  52. package/dist/src/composables/piniaStores/config/config.d.ts +1 -91
  53. package/dist/src/composables/piniaStores/config/types.d.ts +0 -20
  54. package/dist/src/composables/piniaStores/extensionRegistry/extensionRegistry.d.ts +4 -1
  55. package/dist/src/composables/piniaStores/messages.d.ts +12 -594
  56. package/dist/src/composables/piniaStores/spaces.d.ts +1 -3
  57. package/dist/src/composables/piniaStores/theme.d.ts +1 -1
  58. package/dist/src/composables/resources/useResourceViewDrag.d.ts +7 -17
  59. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +7 -17
  60. package/dist/src/composables/router/useFileRouteReplace.d.ts +0 -2
  61. package/dist/src/composables/spaces/useGetMatchingSpace.d.ts +0 -4
  62. package/dist/src/editor/components/SlashCommandMenu.vue.d.ts +9 -0
  63. package/dist/src/editor/components/TextEditorContent.vue.d.ts +7 -0
  64. package/dist/src/editor/components/TextEditorProvider.vue.d.ts +17 -0
  65. package/dist/src/editor/composables/index.d.ts +3 -0
  66. package/dist/src/editor/composables/strategies/html.d.ts +3 -0
  67. package/dist/src/editor/composables/strategies/index.d.ts +5 -0
  68. package/dist/src/editor/composables/strategies/markdown.d.ts +3 -0
  69. package/dist/src/editor/composables/strategies/plainText.d.ts +3 -0
  70. package/dist/src/editor/composables/strategies/tiptapJson.d.ts +3 -0
  71. package/dist/src/editor/composables/strategies/types.d.ts +10 -0
  72. package/dist/src/editor/composables/useContentStrategy.d.ts +5 -0
  73. package/dist/src/editor/composables/useEditorActions.d.ts +75 -0
  74. package/dist/src/editor/composables/useTextEditor.d.ts +2 -0
  75. package/dist/src/editor/extensions/index.d.ts +1 -0
  76. package/dist/src/editor/extensions/slashCommands.d.ts +16 -0
  77. package/dist/src/editor/index.d.ts +5 -0
  78. package/dist/src/editor/types.d.ts +29 -0
  79. package/dist/src/helpers/groupwareResponse.d.ts +1 -0
  80. package/dist/src/helpers/index.d.ts +2 -0
  81. package/dist/src/helpers/router/routeOptions.d.ts +1 -7
  82. package/dist/src/helpers/virtualCursorElement.d.ts +1 -0
  83. package/dist/src/router/index.d.ts +2 -1
  84. package/dist/src/router/utils.d.ts +1 -6
  85. package/dist/src/types.d.ts +1 -0
  86. package/dist/src/utils/dummyGettext.d.ts +6 -0
  87. package/dist/src/utils/index.d.ts +1 -0
  88. package/dist/web-pkg/editor.js +1360 -0
  89. package/dist/web-pkg.js +2956 -1661
  90. package/package.json +26 -9
  91. package/dist/TextEditor-B0ZZfO_w.js +0 -819
  92. package/dist/assets/worker-C-Nrpmiq.js +0 -24
  93. package/dist/assets/worker-CzI1mBNb.js +0 -24
  94. package/dist/assets/worker-DDmV-och.js +0 -24
  95. package/dist/src/components/Navigation/index.d.ts +0 -1
  96. package/dist/src/components/TextEditor/TextEditor.vue.d.ts +0 -26
  97. package/dist/src/components/TextEditor/index.d.ts +0 -39
  98. package/dist/src/components/TextEditor/l18n.d.ts +0 -3
  99. package/dist/src/composables/actions/files/useFileActionsCopy.d.ts +0 -4
  100. package/dist/src/composables/actions/files/useFileActionsCopyPermanentLink.d.ts +0 -4
  101. package/dist/src/composables/actions/files/useFileActionsCreateLink.d.ts +0 -6
  102. package/dist/src/composables/actions/files/useFileActionsCreateNewFile.d.ts +0 -10
  103. package/dist/src/composables/actions/files/useFileActionsCreateNewFolder.d.ts +0 -9
  104. package/dist/src/composables/actions/files/useFileActionsCreateNewShortcut.d.ts +0 -8
  105. package/dist/src/composables/actions/files/useFileActionsCreateSpaceFromResource.d.ts +0 -4
  106. package/dist/src/composables/actions/files/useFileActionsDisableSync.d.ts +0 -5
  107. package/dist/src/composables/actions/files/useFileActionsDownloadArchive.d.ts +0 -4
  108. package/dist/src/composables/actions/files/useFileActionsEmptyTrashBin.d.ts +0 -8
  109. package/dist/src/composables/actions/files/useFileActionsEnableSync.d.ts +0 -5
  110. package/dist/src/composables/actions/files/useFileActionsFavorite.d.ts +0 -4
  111. package/dist/src/composables/actions/files/useFileActionsMove.d.ts +0 -4
  112. package/dist/src/composables/actions/files/useFileActionsOpenShortcut.d.ts +0 -5
  113. package/dist/src/composables/actions/files/useFileActionsPaste.d.ts +0 -4
  114. package/dist/src/composables/actions/files/useFileActionsRename.d.ts +0 -6
  115. package/dist/src/composables/actions/files/useFileActionsSetImage.d.ts +0 -4
  116. package/dist/src/composables/actions/files/useFileActionsShowActions.d.ts +0 -4
  117. package/dist/src/composables/actions/files/useFileActionsShowDetails.d.ts +0 -4
  118. package/dist/src/composables/actions/files/useFileActionsShowShares.d.ts +0 -5
  119. package/dist/src/composables/actions/files/useFileActionsToggleHideShare.d.ts +0 -5
  120. package/dist/src/composables/actions/spaces/useSpaceActionsDelete.d.ts +0 -6
  121. package/dist/src/composables/actions/spaces/useSpaceActionsDeleteImage.d.ts +0 -8
  122. package/dist/src/composables/actions/spaces/useSpaceActionsDisable.d.ts +0 -6
  123. package/dist/src/composables/actions/spaces/useSpaceActionsDuplicate.d.ts +0 -6
  124. package/dist/src/composables/actions/spaces/useSpaceActionsEditDescription.d.ts +0 -6
  125. package/dist/src/composables/actions/spaces/useSpaceActionsEditQuota.d.ts +0 -4
  126. package/dist/src/composables/actions/spaces/useSpaceActionsEditReadmeContent.d.ts +0 -4
  127. package/dist/src/composables/actions/spaces/useSpaceActionsNavigateToTrash.d.ts +0 -4
  128. package/dist/src/composables/actions/spaces/useSpaceActionsRename.d.ts +0 -6
  129. package/dist/src/composables/actions/spaces/useSpaceActionsRestore.d.ts +0 -6
  130. package/dist/src/composables/actions/spaces/useSpaceActionsSetIcon.d.ts +0 -6
  131. package/dist/src/composables/actions/spaces/useSpaceActionsShowMembers.d.ts +0 -4
  132. /package/dist/src/{components/Navigation/MobileNav.vue.d.ts → editor/components/TextEditorToolbar.vue.d.ts} +0 -0
@@ -2,14 +2,6 @@ import { SpaceResource } from '@opencloud-eu/web-client';
2
2
  type __VLS_Props = {
3
3
  space?: SpaceResource;
4
4
  };
5
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
8
- type __VLS_TypePropsToOption<T> = {
9
- [K in keyof T]-?: {} extends Pick<T, K> ? {
10
- type: import('vue').PropType<Required<T>[K]>;
11
- } : {
12
- type: import('vue').PropType<T[K]>;
13
- required: true;
14
- };
15
- };
@@ -1,14 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  isSubPanelActive?: boolean;
3
3
  };
4
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
5
  declare const _default: typeof __VLS_export;
6
6
  export default _default;
7
- type __VLS_TypePropsToOption<T> = {
8
- [K in keyof T]-?: {} extends Pick<T, K> ? {
9
- type: import('vue').PropType<Required<T>[K]>;
10
- } : {
11
- type: import('vue').PropType<T[K]>;
12
- required: true;
13
- };
14
- };
@@ -9,24 +9,16 @@ type __VLS_Slots = {
9
9
  rootHeader: () => unknown;
10
10
  subHeader: () => unknown;
11
11
  };
12
- declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- selectPanel: (panel: string) => void;
14
- close: () => void;
15
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
+ close: () => any;
14
+ selectPanel: (panel: string) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
16
  onClose?: () => any;
17
17
  onSelectPanel?: (panel: string) => any;
18
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
22
- type __VLS_TypePropsToOption<T> = {
23
- [K in keyof T]-?: {} extends Pick<T, K> ? {
24
- type: import('vue').PropType<Required<T>[K]>;
25
- } : {
26
- type: import('vue').PropType<T[K]>;
27
- required: true;
28
- };
29
- };
30
22
  type __VLS_WithSlots<T, S> = T & {
31
23
  new (): {
32
24
  $slots: S;
@@ -10,26 +10,18 @@ type __VLS_Slots = {
10
10
  rootHeader: () => unknown;
11
11
  subHeader: () => unknown;
12
12
  };
13
- declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- selectPanel: (panel: string) => void;
15
- close: () => void;
16
- closePanel: () => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ close: () => any;
15
+ selectPanel: (panel: string) => any;
16
+ closePanel: () => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
18
  onClose?: () => any;
19
19
  onSelectPanel?: (panel: string) => any;
20
20
  onClosePanel?: () => any;
21
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
23
  declare const _default: typeof __VLS_export;
24
24
  export default _default;
25
- type __VLS_TypePropsToOption<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<Required<T>[K]>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
25
  type __VLS_WithSlots<T, S> = T & {
34
26
  new (): {
35
27
  $slots: S;
@@ -1,14 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  showShareIndicators?: boolean;
3
3
  };
4
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
5
  declare const _default: typeof __VLS_export;
6
6
  export default _default;
7
- type __VLS_TypePropsToOption<T> = {
8
- [K in keyof T]-?: {} extends Pick<T, K> ? {
9
- type: import('vue').PropType<Required<T>[K]>;
10
- } : {
11
- type: import('vue').PropType<T[K]>;
12
- required: true;
13
- };
14
- };
@@ -2,14 +2,6 @@ import { SpaceResource } from '@opencloud-eu/web-client';
2
2
  type __VLS_Props = {
3
3
  selectedSpaces: SpaceResource[];
4
4
  };
5
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
8
- type __VLS_TypePropsToOption<T> = {
9
- [K in keyof T]-?: {} extends Pick<T, K> ? {
10
- type: import('vue').PropType<Required<T>[K]>;
11
- } : {
12
- type: import('vue').PropType<T[K]>;
13
- required: true;
14
- };
15
- };
@@ -1,3 +1,7 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import { SpaceResource } from '@opencloud-eu/web-client';
2
+ type __VLS_Props = {
3
+ spaceResource?: SpaceResource | null;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
6
  declare const _default: typeof __VLS_export;
3
7
  export default _default;
@@ -2,14 +2,6 @@ import { Quota } from '@opencloud-eu/web-client/graph/generated';
2
2
  type __VLS_Props = {
3
3
  spaceQuota: Quota;
4
4
  };
5
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
8
- type __VLS_TypePropsToOption<T> = {
9
- [K in keyof T]-?: {} extends Pick<T, K> ? {
10
- type: import('vue').PropType<Required<T>[K]>;
11
- } : {
12
- type: import('vue').PropType<T[K]>;
13
- required: true;
14
- };
15
- };
@@ -8,20 +8,12 @@ type __VLS_Props = {
8
8
  warningMessageContextualHelperData?: ContextualHelperData;
9
9
  resourceType?: 'space' | 'user' | string;
10
10
  };
11
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
12
12
  onConfirm: () => Promise<void>;
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  "update:confirmDisabled": (...args: any[]) => void;
15
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
16
  "onUpdate:confirmDisabled"?: (...args: any[]) => any;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
20
- type __VLS_TypePropsToOption<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: import('vue').PropType<Required<T>[K]>;
23
- } : {
24
- type: import('vue').PropType<T[K]>;
25
- required: true;
26
- };
27
- };
@@ -1,21 +1,12 @@
1
1
  import { Modal } from '../../composables';
2
- import 'cropperjs/dist/cropper.css';
3
2
  import { SpaceResource } from '@opencloud-eu/web-client';
4
3
  type __VLS_Props = {
5
4
  modal: Modal;
6
5
  space: SpaceResource;
7
6
  file: File;
8
7
  };
9
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
10
9
  onConfirm: () => Promise<void>;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
11
  declare const _default: typeof __VLS_export;
13
12
  export default _default;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<Required<T>[K]>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -10,14 +10,6 @@ type __VLS_Props = {
10
10
  viewModeDefault?: string;
11
11
  viewModes?: FolderView[];
12
12
  };
13
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_TypePropsToOption<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<Required<T>[K]>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
22
- };
23
- };
@@ -5,11 +5,9 @@ export * from './FilesList';
5
5
  export * from './Filters';
6
6
  export * from './Groupware';
7
7
  export * from './Modals';
8
- export * from './Navigation';
9
8
  export * from './SideBar';
10
9
  export * from './Search';
11
10
  export * from './Spaces';
12
- export * from './TextEditor';
13
11
  export * from './Avatars';
14
12
  export { default as AppLoadingSpinner } from './AppLoadingSpinner.vue';
15
13
  export { default as AppTopBar } from './AppTopBar.vue';
@@ -1,31 +1,10 @@
1
1
  export * from './useFileActions';
2
- export * from './useFileActionsCopy';
3
- export * from './useFileActionsCopyPermanentLink';
4
- export * from './useFileActionsCreateLink';
5
- export * from './useFileActionsCreateNewFile';
6
- export * from './useFileActionsCreateNewFolder';
7
- export * from './useFileActionsCreateNewShortcut';
8
- export * from './useFileActionsCreateSpaceFromResource';
9
2
  export * from './useFileActionsDelete';
10
- export * from './useFileActionsDisableSync';
11
- export * from './useFileActionsDownloadArchive';
12
3
  export * from './useFileActionsDownloadFile';
13
- export * from './useFileActionsEmptyTrashBin';
14
- export * from './useFileActionsEnableSync';
15
- export * from './useFileActionsFavorite';
16
- export * from './useFileActionsMove';
17
4
  export * from './useFileActionsNavigate';
18
5
  export * from './useFileActionsOpenWithDefault';
19
- export * from './useFileActionsOpenShortcut';
20
6
  export * from './useFileActionsOpenWithApp';
21
- export * from './useFileActionsPaste';
22
- export * from './useFileActionsRename';
23
7
  export * from './useFileActionsRestore';
24
8
  export * from './useFileActionsSaveAs';
25
- export * from './useFileActionsSetImage';
26
- export * from './useFileActionsShowActions';
27
- export * from './useFileActionsShowDetails';
28
- export * from './useFileActionsShowShares';
29
- export * from './useFileActionsToggleHideShare';
30
9
  export * from './useFileActionsUndoDelete';
31
10
  export * from './useFileActionFallbackToDownload';
@@ -1,13 +1 @@
1
- export * from './useSpaceActionsDelete';
2
- export * from './useSpaceActionsDisable';
3
- export * from './useSpaceActionsDuplicate';
4
- export * from './useSpaceActionsEditDescription';
5
- export * from './useSpaceActionsEditQuota';
6
- export * from './useSpaceActionsEditReadmeContent';
7
- export * from './useSpaceActionsRename';
8
- export * from './useSpaceActionsRestore';
9
- export * from './useSpaceActionsShowMembers';
10
- export * from './useSpaceActionsNavigateToTrash';
11
- export * from './useSpaceActionsSetIcon';
12
- export * from './useSpaceActionsDeleteImage';
13
1
  export * from './useSpaceActionsCreate';
@@ -2,30 +2,120 @@ import { Resource, SpaceResource } from '@opencloud-eu/web-client';
2
2
  import { Group, User } from '@opencloud-eu/web-client/graph/generated';
3
3
  import { RouteLocationRaw } from 'vue-router';
4
4
  import { IconFillType } from '../../helpers';
5
- import { StringUnionOrAnyString } from '../../utils';
6
5
  import { AppearanceType } from '@opencloud-eu/design-system/helpers';
7
6
  export type ActionOptions = Record<string, unknown | unknown[]>;
7
+ type ActionCategory = 'primary' | 'secondary' | 'tertiary' | 'quaternary';
8
+ /**
9
+ * Generic action interface.
10
+ * When implementing actions on your own, it's recommended to use the `ActionMenuItem`
11
+ * component from `web-pkg` to ensure the defaults are being set properly.
12
+ */
8
13
  export interface Action<T = ActionOptions> {
14
+ /**
15
+ * The unique name of the action. This is used for identifying it.
16
+ */
9
17
  name: string;
10
- category?: StringUnionOrAnyString<'context' | 'share' | 'actions' | 'sidebar'>;
18
+ /**
19
+ * Determines where an action will be displayed in the resource context menu.
20
+ * Doesn't have an effect on actions that are not shown in the context menu.
21
+ *
22
+ * Categories:
23
+ * - primary: action will appear in primary action sections.
24
+ * - secondary: action will appear in secondary action sections.
25
+ * - tertiary: action will appear in tertiary action sections.
26
+ * - quaternary: action will appear in quaternary action sections.
27
+ *
28
+ * @default tertiary
29
+ */
30
+ category?: ActionCategory;
31
+ /**
32
+ * The name of an icon from the OpenCloud icon set or a function
33
+ * that returns the icon name based on the given options.
34
+ */
11
35
  icon: string | ((options?: ActionOptions) => string);
36
+ /**
37
+ * Determines the fill type of the icon in the UI.
38
+ * @default line
39
+ */
12
40
  iconFillType?: IconFillType;
41
+ /**
42
+ * The appearance of the action element in the UI.
43
+ * @default raw
44
+ */
13
45
  appearance?: AppearanceType;
46
+ /**
47
+ * ID of the action, used as DOM selector.
48
+ */
14
49
  id?: string;
50
+ /**
51
+ * @deprecated this is unused.
52
+ */
15
53
  img?: string;
54
+ /**
55
+ * Additional CSS classes to apply to the action element in the UI.
56
+ */
16
57
  class?: string;
58
+ /**
59
+ * Setting this to true will make the action more prominent in the UI
60
+ * as well as in the order for default actions.
61
+ */
17
62
  hasPriority?: boolean;
63
+ /**
64
+ * Setting this to true will hide the action label in the UI and only show the icon.
65
+ */
18
66
  hideLabel?: boolean;
67
+ /**
68
+ * Specify a shortcut label that will be shown in the UI.
69
+ * This does not automatically register a keyboard shortcut for the action.
70
+ */
19
71
  shortcut?: string;
72
+ /**
73
+ * Setting this will call `stopPropagation()` on the click event.
74
+ * @default false
75
+ * @deprecated This should not be used anymore, as it can lead to unexpected behavior.
76
+ */
20
77
  keepOpen?: boolean;
78
+ /**
79
+ * External actions come first in the "New" context menu. Therefore, this flag only has
80
+ * an effect for actions appearing in that menu.
81
+ * @default false
82
+ */
21
83
  isExternal?: boolean;
84
+ /**
85
+ * This determines the file icon for the action in the "New" menu and will show as
86
+ * file extension label.
87
+ */
22
88
  ext?: string;
89
+ /**
90
+ * The label of the action in the UI.
91
+ * This can be a string or a function that returns a string based on the given options.
92
+ */
23
93
  label(options?: T): string;
94
+ /**
95
+ * Determines whether the action should be visible in the UI based on the given options.
96
+ */
24
97
  isVisible(options?: T): boolean;
98
+ /**
99
+ * Actions with a handler will be rendered as buttons in the UI.
100
+ */
25
101
  handler?(options?: T): Promise<void> | void;
102
+ /**
103
+ * Actions with a route will be rendered as anchor elements in the UI.
104
+ * This is intended for internal links.
105
+ */
26
106
  route?(options?: T): RouteLocationRaw | undefined;
107
+ /**
108
+ * Actions with a href will be rendered as anchor elements in the UI.
109
+ * This is intended for external links.
110
+ */
27
111
  href?(options?: T): string;
112
+ /**
113
+ * Determines whether the action should be disabled in the UI based on the given options.
114
+ */
28
115
  isDisabled?(options?: T): boolean;
116
+ /**
117
+ * If specified, this will show a tooltip with the given message when the action is disabled.
118
+ */
29
119
  disabledTooltip?(options?: T): string;
30
120
  }
31
121
  export type FileActionOptions<T extends Resource = Resource> = {
@@ -45,3 +135,4 @@ export type UserActionOptions = {
45
135
  resources: User[];
46
136
  };
47
137
  export type UserAction = Action<UserActionOptions>;
138
+ export {};
@@ -1,12 +1,10 @@
1
1
  import { RouteLocation } from 'vue-router';
2
2
  import { BreadcrumbItem } from '@opencloud-eu/design-system/helpers';
3
- import { SpaceResource } from '@opencloud-eu/web-client';
4
3
  import { Ref } from 'vue';
5
4
  import { AncestorMetaData } from '../../types';
6
5
  export declare const useBreadcrumbsFromPath: () => {
7
- breadcrumbsFromPath: ({ route, space, resourcePath, ancestorMetaData }: {
6
+ breadcrumbsFromPath: ({ route, resourcePath, ancestorMetaData }: {
8
7
  route: RouteLocation;
9
- space: Ref<SpaceResource>;
10
8
  resourcePath: string;
11
9
  ancestorMetaData?: Ref<AncestorMetaData>;
12
10
  }) => BreadcrumbItem[];
@@ -7,7 +7,6 @@ interface DriveResolverResult {
7
7
  space: Ref<SpaceResource>;
8
8
  item: Ref<string>;
9
9
  itemId: Ref<string>;
10
- loading: Ref<boolean>;
11
10
  }
12
11
  export declare const useDriveResolver: (options?: DriveResolverOptions) => DriveResolverResult;
13
12
  export {};
@@ -1,4 +1,5 @@
1
1
  import { Ref } from 'vue';
2
+ import type { CropperSelection, CropperImage } from 'cropperjs';
2
3
  export declare const useCropperKeyboardActions: () => {
3
- setCropperInstance: (cropper: Ref<Cropper>) => void;
4
+ setCropperInstance: (cropper: Ref<CropperSelection>, image?: Ref<CropperImage | null>) => void;
4
5
  };
@@ -12,6 +12,7 @@ export declare enum Key {
12
12
  Plus = "+",
13
13
  Minus = "-",
14
14
  Space = " ",
15
+ Slash = "/",
15
16
  ArrowUp = "ArrowUp",
16
17
  ArrowDown = "ArrowDown",
17
18
  ArrowLeft = "ArrowLeft",
@@ -1,4 +1,19 @@
1
1
  import { PublicLinkType } from '@opencloud-eu/web-client';
2
+ import { HttpClient } from '../../http';
3
+ import { z } from 'zod';
4
+ export declare const webFingerResponseSchema: z.ZodObject<{
5
+ subject: z.ZodString;
6
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ rel: z.ZodString;
8
+ href: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>>>;
10
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
11
+ }, z.core.$strip>;
12
+ interface WebfingerDiscoveryData {
13
+ authority: string;
14
+ client_id: string;
15
+ scope: string;
16
+ }
2
17
  export declare const useAuthStore: import("pinia").StoreDefinition<"auth", Pick<{
3
18
  accessToken: import("vue").Ref<string, string>;
4
19
  sessionId: import("vue").Ref<string, string>;
@@ -8,6 +23,7 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"auth", Pick<
8
23
  publicLinkPassword: import("vue").Ref<string, string>;
9
24
  publicLinkType: import("vue").Ref<PublicLinkType, PublicLinkType>;
10
25
  publicLinkContextReady: import("vue").Ref<boolean, boolean>;
26
+ webfingerDiscoveryData: import("vue").Ref<WebfingerDiscoveryData, WebfingerDiscoveryData>;
11
27
  setAccessToken: (value: string) => void;
12
28
  setSessionId: (value: string) => void;
13
29
  setIdpContextReady: (value: boolean) => void;
@@ -20,7 +36,8 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"auth", Pick<
20
36
  }) => void;
21
37
  clearUserContext: () => void;
22
38
  clearPublicLinkContext: () => void;
23
- }, "publicLinkPassword" | "publicLinkType" | "accessToken" | "sessionId" | "idpContextReady" | "userContextReady" | "publicLinkToken" | "publicLinkContextReady">, Pick<{
39
+ loadWebfingerDiscoveryData: (serverUrl: string, client: HttpClient) => Promise<void>;
40
+ }, "publicLinkPassword" | "publicLinkType" | "accessToken" | "sessionId" | "idpContextReady" | "userContextReady" | "publicLinkToken" | "publicLinkContextReady" | "webfingerDiscoveryData">, Pick<{
24
41
  accessToken: import("vue").Ref<string, string>;
25
42
  sessionId: import("vue").Ref<string, string>;
26
43
  idpContextReady: import("vue").Ref<boolean, boolean>;
@@ -29,6 +46,7 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"auth", Pick<
29
46
  publicLinkPassword: import("vue").Ref<string, string>;
30
47
  publicLinkType: import("vue").Ref<PublicLinkType, PublicLinkType>;
31
48
  publicLinkContextReady: import("vue").Ref<boolean, boolean>;
49
+ webfingerDiscoveryData: import("vue").Ref<WebfingerDiscoveryData, WebfingerDiscoveryData>;
32
50
  setAccessToken: (value: string) => void;
33
51
  setSessionId: (value: string) => void;
34
52
  setIdpContextReady: (value: boolean) => void;
@@ -41,6 +59,7 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"auth", Pick<
41
59
  }) => void;
42
60
  clearUserContext: () => void;
43
61
  clearPublicLinkContext: () => void;
62
+ loadWebfingerDiscoveryData: (serverUrl: string, client: HttpClient) => Promise<void>;
44
63
  }, never>, Pick<{
45
64
  accessToken: import("vue").Ref<string, string>;
46
65
  sessionId: import("vue").Ref<string, string>;
@@ -50,6 +69,7 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"auth", Pick<
50
69
  publicLinkPassword: import("vue").Ref<string, string>;
51
70
  publicLinkType: import("vue").Ref<PublicLinkType, PublicLinkType>;
52
71
  publicLinkContextReady: import("vue").Ref<boolean, boolean>;
72
+ webfingerDiscoveryData: import("vue").Ref<WebfingerDiscoveryData, WebfingerDiscoveryData>;
53
73
  setAccessToken: (value: string) => void;
54
74
  setSessionId: (value: string) => void;
55
75
  setIdpContextReady: (value: boolean) => void;
@@ -62,5 +82,7 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"auth", Pick<
62
82
  }) => void;
63
83
  clearUserContext: () => void;
64
84
  clearPublicLinkContext: () => void;
65
- }, "setAccessToken" | "setSessionId" | "setIdpContextReady" | "setUserContextReady" | "setPublicLinkContext" | "clearUserContext" | "clearPublicLinkContext">>;
85
+ loadWebfingerDiscoveryData: (serverUrl: string, client: HttpClient) => Promise<void>;
86
+ }, "setAccessToken" | "setSessionId" | "setIdpContextReady" | "setUserContextReady" | "setPublicLinkContext" | "clearUserContext" | "clearPublicLinkContext" | "loadWebfingerDiscoveryData">>;
66
87
  export type AuthStore = ReturnType<typeof useAuthStore>;
88
+ export {};
@@ -5,7 +5,7 @@ export declare const useAvatarsStore: import("pinia").StoreDefinition<"avatars",
5
5
  addAvatar: (userId: string, avatar: string) => void;
6
6
  removeAvatar: (userId: string) => void;
7
7
  reset: () => void;
8
- avatarsQueue: import("vue").Raw<PQueue<import("node_modules/p-queue/dist/priority-queue").default, import("p-queue").QueueAddOptions>>;
8
+ avatarsQueue: import("vue").Raw<PQueue<import("p-queue").PriorityQueue, import("p-queue").QueueAddOptions>>;
9
9
  pendingAvatarsRequests: Map<string, Promise<any>>;
10
10
  }, "avatarMap" | "avatarsQueue" | "pendingAvatarsRequests">, Pick<{
11
11
  avatarMap: import("vue").Ref<Record<string, string>, Record<string, string>>;
@@ -13,7 +13,7 @@ export declare const useAvatarsStore: import("pinia").StoreDefinition<"avatars",
13
13
  addAvatar: (userId: string, avatar: string) => void;
14
14
  removeAvatar: (userId: string) => void;
15
15
  reset: () => void;
16
- avatarsQueue: import("vue").Raw<PQueue<import("node_modules/p-queue/dist/priority-queue").default, import("p-queue").QueueAddOptions>>;
16
+ avatarsQueue: import("vue").Raw<PQueue<import("p-queue").PriorityQueue, import("p-queue").QueueAddOptions>>;
17
17
  pendingAvatarsRequests: Map<string, Promise<any>>;
18
18
  }, never>, Pick<{
19
19
  avatarMap: import("vue").Ref<Record<string, string>, Record<string, string>>;
@@ -21,7 +21,7 @@ export declare const useAvatarsStore: import("pinia").StoreDefinition<"avatars",
21
21
  addAvatar: (userId: string, avatar: string) => void;
22
22
  removeAvatar: (userId: string) => void;
23
23
  reset: () => void;
24
- avatarsQueue: import("vue").Raw<PQueue<import("node_modules/p-queue/dist/priority-queue").default, import("p-queue").QueueAddOptions>>;
24
+ avatarsQueue: import("vue").Raw<PQueue<import("p-queue").PriorityQueue, import("p-queue").QueueAddOptions>>;
25
25
  pendingAvatarsRequests: Map<string, Promise<any>>;
26
26
  }, "reset" | "getAvatar" | "addAvatar" | "removeAvatar">>;
27
27
  export type AvatarsStore = ReturnType<typeof useAvatarsStore>;