stable

Clone or download

Read-only

Fixes request #31566: Document clipboard should not be shared accross projects

Issue was introduced in git #tuleap/stable/2c127691cd7f63768a04fb24b12a797cca2e1ee6. `pinia-shared-state` was replaced with `@vueuse/core` because `pinia-shared-state` does not allow the granularity we need and VueUse is more likely to be maintained in the long run. Determining which element need to be kept is now done at the element level instead of the whole store. It makes the reactivity between the different layers easier to comprehend when troubleshooting something. Change-Id: I5bb1f3c68ea30dc8617290b7d8888cd928cfc9a3

Modified Files

Name
M plugins/document/package.json +1 −1 Go to diff View file
M plugins/document/pnpm-lock.yaml +49 −113 Go to diff View file
M plugins/document/scripts/document/components/Folder/Clipboard/ClipboardContentInformation.test.ts +20 −11 Go to diff View file
M plugins/document/scripts/document/components/Folder/Clipboard/ClipboardContentInformation.vue +6 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/CopyItem.test.ts +12 −3 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/CopyItem.vue +6 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/CutItem.test.ts +13 −3 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/CutItem.vue +6 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/PasteItem.test.ts +11 −6 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/PasteItem.vue +6 −2 Go to diff View file
M plugins/document/scripts/document/index.js +0 −3 Go to diff View file
D plugins/document/scripts/document/pinia-configuration.ts +0 −31 Go to diff View file
M plugins/document/scripts/document/stores/clipboard.test.ts +20 −15 Go to diff View file
M plugins/document/scripts/document/stores/clipboard.ts +144 −129 Go to diff View file
M plugins/document/scripts/document/stores/types.ts +7 −5 Go to diff View file