bb-plane-fork/apps/web/core/hooks
Aaryan Khandelwal 83679806fd
[WIKI-419] chore: new asset duplicate endpoint added (#7172)
* chore: new asset duplicate endpoint added

* chore: change the type in url

* chore: added rate limiting for image duplication endpoint

* chore: added rate limiting per asset id

* chore: added throttle class

* chore: added validations for entity

* chore: added extra validations

* chore: removed the comment

* chore: reverted the frontend code

* chore: added the response key

* feat: handle image duplication for web

* feat: custom image duplication update

* fix: remove paste logic for image

* fix : remove entity validation

* refactor: remove entity id for duplication

* feat: handle duplication in utils

* feat: add asset duplication registry

* chore: update the set attribute method

* fix: add ref for api check

* chore :remove logs

* chore : add entity types types

* refactor: rename duplication success status value

* chore: update attribute to enums

* chore: update variable name

* chore: set uploading state

* chore : update enum name

* chore : update replace command

* chore: fix retry UI

* chore: remove default logic

* refactor: optimize imports in custom image extension files and improve error handling in image duplication

* fix:type error

* Update packages/editor/src/core/extensions/custom-image/components/node-view.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix: enhance asset duplication handler to ignore HTTP sources

---------

Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
Co-authored-by: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com>
Co-authored-by: VipinDevelops <vipinchaudhary1809@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-11-20 15:05:01 +05:30
..
context [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
editor [WIKI-419] chore: new asset duplicate endpoint added (#7172) 2025-11-20 15:05:01 +05:30
store [WEB-5088] feat: Power K v2 (#7905) 2025-10-29 15:38:30 +05:30
use-app-rail.tsx [WEB-4328] feat: sidebar revamp (#7217) 2025-07-08 20:18:39 +05:30
use-app-router.tsx [WEB-5043] feat: web vite migration (#7973) 2025-11-06 14:08:48 +05:30
use-auto-save.tsx [WEB-5027] fix: replace lodash package with lodash-es (#7856) 2025-09-26 17:59:31 +05:30
use-auto-scroller.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-collaborative-page-actions.tsx regression: downgrade to tiptap v2 (#7982) 2025-10-21 18:28:16 +05:30
use-current-time.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-debounce.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-dropdown-key-down.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-dropdown.ts chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-extended-sidebar-overview-outside-click.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-favorite-item-details.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-group-dragndrop.ts [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-integration-popup.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-intersection-observer.ts [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-issue-layout-store.ts refactor: remove barrel exports from web app (#7577) 2025-08-15 13:10:26 +05:30
use-issue-peek-overview-redirection.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-issues-actions.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-keypress.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-local-storage.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-multiple-select.ts refactor: remove barrel exports from web app (#7577) 2025-08-15 13:10:26 +05:30
use-online-status.ts chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-page-fallback.ts [WEB-5381] fix: buffer issue with vite #8091 2025-11-10 20:33:41 +05:30
use-page-filters.ts refactor: remove barrel exports from web app (#7577) 2025-08-15 13:10:26 +05:30
use-page-operations.ts regression: downgrade to tiptap v2 (#7982) 2025-10-21 18:28:16 +05:30
use-parse-editor-content.ts [WIKI-788] fix: editor markdown copy rules (#8140) 2025-11-20 14:46:12 +05:30
use-peek-overview-outside-click.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-platform-os.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-project-issue-properties.ts feat: migrate to pnpm from yarn (#7593) 2025-08-19 20:06:42 +05:30
use-query-params.ts chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-realtime-page-events.tsx regression: downgrade to tiptap v2 (#7982) 2025-10-21 18:28:16 +05:30
use-reload-confirmation.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-stickies.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-table-keyboard-navigation.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-timeline-chart.ts [WEB-5390] refactor: gantt layout support in base layouts (#8089) 2025-11-13 14:33:24 +05:30
use-timer.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-timezone-converter.tsx fix: CI to include lint and format along with build (#7482) 2025-08-18 21:27:16 +05:30
use-timezone.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-window-size.tsx chore: move all services inside the apps folder (#7321) 2025-07-03 00:44:13 +05:30
use-workspace-invitation.tsx [WEB-5134] refactor: update web ESLint configuration and refactor imports to use type imports (#7957) 2025-10-14 16:45:07 +05:30
use-workspace-issue-properties.ts [PAI-923] fix: implemented fetch key functions for auth layouts #8067 2025-11-06 18:50:45 +05:30
use-workspace-paths.ts [WEB-4328] feat: sidebar revamp (#7217) 2025-07-08 20:18:39 +05:30