Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore: remove dead code (#1167)

teof53d08243f43
diff --git a/js/app/packages/app/component/GlobalHotkeys.tsx b/js/app/packages/app/component/GlobalHotkeys.tsx
index cc880cc532..6654a6406c 100644
--- a/js/app/packages/app/component/GlobalHotkeys.tsx
+++ b/js/app/packages/app/component/GlobalHotkeys.tsx
@@ -17,7 +17,6 @@ import {
} from '../../block-theme/signals/themeSignals';
import { applyTheme } from '../../block-theme/utils/themeUtils';
import { globalSplitManager } from '../signal/splitLayout';
-import { playSound } from '../util/sound';
import {
konsoleOpen,
resetKonsoleMode,
@@ -34,14 +33,8 @@ export default function GlobalShortcuts() {
const { toggleSettings } = useSettingsState();
const handleCommandMenu = () => {
- const wasOpen = konsoleOpen();
resetKonsoleMode();
toggleKonsoleVisibility();
- // Play sound when opening (not closing)
- if (!wasOpen) {
- playSound('Kick - Struct - Tight Minimal 4');
- }
- return;
};
const createCommandScope = registerHotkey({
diff --git a/js/app/packages/app/component/Root.tsx b/js/app/packages/app/component/Root.tsx
index 1e09a6c173..5f0780bd97 100644
--- a/js/app/packages/app/component/Root.tsx
+++ b/js/app/packages/app/component/Root.tsx
@@ -1,5 +1,5 @@
import { DEFAULT_ROUTE } from '@app/constants/defaultRoute';
-import { setHotkeyRoot, useSubscribeToKeypress } from '@app/signal/hotkeyRoot';
+import { setHotkeyRoot } from '@app/signal/hotkeyRoot';
import { globalSplitManager } from '@app/signal/splitLayout';
import { withAnalytics } from '@coparse/analytics';
import { ChannelsContextProvider } from '@core/context/channels';
@@ -10,7 +10,6 @@ import { ToastRegion } from '@core/component/Toast/ToastRegion';
import { WebsocketDebugger } from '@core/component/WebsocketDebugger';
import {
ENABLE_WEBSOCKET_DEBUGGER,
- ENABLE_WHICHKEY_OVERLAY,
PROD_MODE_ENV,
} from '@core/constant/featureFlags';
import { isNativeMobilePlatform } from '@core/mobile/isNativeMobilePlatform';
@@ -65,7 +64,6 @@ import {
systemThemeEffect,
} from '../../block-theme/utils/themeUtils';
import { TauriRouteListener } from '../../tauri/src/TauriProvider';
-import { useSoundHover } from '../util/soundHover';
import { getLoginCookieOptions, updateCookie } from '@core/util/cookies';
import { Login } from './auth/Login';
import { setCookie } from './auth/Shared';
@@ -77,7 +75,6 @@ import Onboarding from './Onboarding';
import { SuspenseContextComp } from './SuspenseContext';
import { LAYOUT_ROUTE } from './split-layout/SplitLayoutRoute';
import Visor from './Visor';
-import { setOpenWhichKey, WhichKey } from './WhichKey';
import { ReactiveFavicon } from './ReactiveFavicon';
const { track, identify, TrackingEvents } = withAnalytics();
@@ -344,14 +341,6 @@ const clearBodyInlineStyleColor = () => {
export function Root() {
setHotkeyRoot(useHotKeyRoot());
- useSubscribeToKeypress((context) => {
- if (ENABLE_WHICHKEY_OVERLAY && context.commandScopeActivated) {
- setOpenWhichKey(true);
- }
- });
-
- useSoundHover();
-
clearBodyInlineStyleColor();
createEffect(() => {
@@ -407,9 +396,6 @@ export function Root() {
<Title>{tabTitle()}</Title>
<MacroJump />
<Visor />
- <Show when={ENABLE_WHICHKEY_OVERLAY}>
- <WhichKey />
- </Show>
<SuspenseContextComp fallback={<RootSuspenseFallback />}>
<IsomorphicRouter
transformUrl={transformShortIdInUrlPathname}
diff --git a/js/app/packages/app/component/Soup.tsx b/js/app/packages/app/component/Soup.tsx
index 7c6442cb6a..f4f8a9485c 100644
--- a/js/app/packages/app/component/Soup.tsx
+++ b/js/app/packages/app/component/Soup.tsx
@@ -3,13 +3,11 @@ import {
useGlobalNotificationSource,
} from '@app/component/GlobalAppState';
import { useHandleFileUpload } from '@app/util/handleFileUpload';
-import { playSound } from '@app/util/sound';
import { useIsAuthenticated } from '@core/context/user';
import { getIconConfig } from '@core/component/EntityIcon';
import { FileDropOverlay } from '@core/component/FileDropOverlay';
import { SegmentedControl } from '@core/component/FormControls/SegmentControls';
import { LabelAndHotKey, Tooltip } from '@core/component/Tooltip';
-import { ENABLE_UNIFIED_LIST_AI_INPUT } from '@core/constant/featureFlags';
import { IS_MAC } from '@core/constant/isMac';
import { useSettingsState } from '@core/constant/SettingsState';
import { fileFolderDrop } from '@core/directive/fileFolderDrop';
@@ -56,7 +54,6 @@ import {
Switch,
} from 'solid-js';
import { PreviewPanel } from './PreviewPanel';
-import { SoupChatInput } from './SoupChatInput';
import { SuspenseContextComp } from './SuspenseContext';
import {
SplitHeaderLeft,
@@ -399,7 +396,6 @@ function EntityTypeIconFilter() {
'text-ink-muted hover:text-accent hover:bg-accent/20': !preview(),
}}
onClick={() => {
- playSound('open');
setPreview((prev) => !prev);
}}
>
@@ -650,7 +646,6 @@ export function Soup() {
description: 'Toggle Preview',
hotkeyToken: TOKENS.unifiedList.togglePreview,
keyDownHandler: () => {
- playSound('open');
setPreview((prev) => !prev);
return true;
},
@@ -770,9 +765,6 @@ export function Soup() {
/>
</Show>
</div>
- <Show when={ENABLE_UNIFIED_LIST_AI_INPUT}>
- <SoupChatInput />
- </Show>
</div>
</Show>
);
diff --git a/js/app/packages/app/component/SoupContext.tsx b/js/app/packages/app/component/SoupContext.tsx
index c4f9a60190..b6f5006bcc 100644
--- a/js/app/packages/app/component/SoupContext.tsx
+++ b/js/app/packages/app/component/SoupContext.tsx
@@ -51,7 +51,6 @@ import {
import { ENTITY_HEIGHT } from '../../macro-entity/src/components/EntityWithEverything';
import { useUserId } from '../../macro-entity/src/queries/auth';
import { createBulkCopyDssEntityMutation } from '../../macro-entity/src/queries/dss';
-import { playSound } from '../util/sound';
import { openBulkEditModal } from './bulk-edit-entity/BulkEditEntityModal';
import {
resetCommandCategoryIndex,
@@ -1203,7 +1202,6 @@ export function createNavigationEntityListShortcut({
});
function stepDown() {
- playSound('down');
navigateThroughList({ axis: 'end', mode: 'step' });
return true;
}
@@ -1243,7 +1241,6 @@ export function createNavigationEntityListShortcut({
});
function stepUp() {
- playSound('up');
navigateThroughList({ axis: 'start', mode: 'step' });
return true;
}
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsx
index 5928b328e8..29a2cb1b24 100644
--- a/js/app/packages/app/component/UnifiedListView.tsx
+++ b/js/app/packages/app/component/UnifiedListView.tsx
@@ -25,7 +25,6 @@ import {
fileTypeToBlockName,
} from '@core/constant/allBlocks';
import {
- ENABLE_FRECENCY,
ENABLE_PROPERTY_DISPLAY,
ENABLE_PROPERTY_FILTER,
ENABLE_SOUP_FROM_FILTER,
@@ -62,7 +61,6 @@ import {
type SearchLocation,
type SortOption,
sortByCreatedAt,
- sortByFrecencyScore,
sortByUpdatedAt,
sortByViewedAt,
unreadFilterFn,
@@ -195,15 +193,6 @@ const sortOptions = [
label: 'Created',
sortFn: sortByCreatedAt,
},
- ...(ENABLE_FRECENCY
- ? [
- {
- value: 'frecency' as const,
- label: 'Frecency',
- sortFn: sortByFrecencyScore,
- },
- ]
- : []),
] satisfies SortOption<EntityData, SystemSortOption>[];
export type UnifiedListViewProps = {
diff --git a/js/app/packages/app/component/ViewConfig.tsx b/js/app/packages/app/component/ViewConfig.tsx
index c871800f13..7cf1d849bc 100644
--- a/js/app/packages/app/component/ViewConfig.tsx
+++ b/js/app/packages/app/component/ViewConfig.tsx
@@ -1,7 +1,4 @@
-import {
- ENABLE_FRECENCY,
- ENABLE_TASKS_TABS,
-} from '@core/constant/featureFlags';
+import { ENABLE_TASKS_TABS } from '@core/constant/featureFlags';
import {
DEFAULT_VIEWS,
type DefaultView,
@@ -361,7 +358,6 @@ export const VIEWCONFIG_SORT_BY: readonly SystemSortOption[] = [
'updated_at',
'created_at',
'viewed_at',
- ...(ENABLE_FRECENCY ? (['frecency'] as const) : []),
] as const;
export const VIEWCONFIG_SORT_ORDER: readonly SortOptions['sortOrder'][] = [
'ascending',
diff --git a/js/app/packages/app/component/auth/Login.tsx b/js/app/packages/app/component/auth/Login.tsx
index d8ce7c2aad..b9cdfe8cc7 100644
--- a/js/app/packages/app/component/auth/Login.tsx
+++ b/js/app/packages/app/component/auth/Login.tsx
@@ -1,5 +1,4 @@
import { useIsAuthenticated } from '@core/auth';
-import { ENABLE_NAME_IN_LOGIN } from '@core/constant/featureFlags';
import { setActiveModal } from '@core/signal/activeModal';
import type { RedirectLocation } from '@core/util/authRedirect';
import { unsetTokenPromise } from '@core/util/fetchWithToken';
@@ -18,7 +17,7 @@ import {
import { updateCookie } from '@core/util/cookies';
import { EmailForm } from './EmailForm';
import { LoginOptions } from './LoginOptions';
-import { Input, identifyUser, Stage } from './Shared';
+import { identifyUser, Stage } from './Shared';
import ThreeWireframe from './ThreeWireframe';
import { VerifyForm } from './VerifyForm';
@@ -94,11 +93,6 @@ export function Login() {
<Show when={!authenticated()} fallback={<Navigate href="/" />}>
<div class="grid w-full h-[100dvh] items-center justify-center font-mono text-[15px]">
<div class="grid w-min bg-[var(--color-surface)]">
- {ENABLE_NAME_IN_LOGIN && (
- <div class="flex py-2 border-edge items-end justify-start overflow-hidden">
- <Input id="name" placeholder="Your full name" />
- </div>
- )}
<div class="border border-dashed border-[var(--color-ink)] box-border w-[350px]">
<ThreeWireframe src="m" scale={9.5} clockwise={false} />
</div>
diff --git a/js/app/packages/app/component/custom-cursor/CursorTooltip.tsx b/js/app/packages/app/component/custom-cursor/CursorTooltip.tsx
deleted file mode 100644
index bbb8b54237..0000000000
--- a/js/app/packages/app/component/custom-cursor/CursorTooltip.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * NOTE:
- * This component is intentionally a no-op placeholder.
- *
- * We previously had an experimental cursor tooltip implementation here, but it
- * does not belong in this PR and is not currently used by the app.
- *
- * Keeping the file (as an inert stub) avoids Biome `ci --changed` crashing on
- * deleted files in some environments.
- */
-export function CursorTooltip() {
- return null;
-}
diff --git a/js/app/packages/app/component/custom-cursor/README.md b/js/app/packages/app/component/custom-cursor/README.md
deleted file mode 100644
index b5ef89798d..0000000000
--- a/js/app/packages/app/component/custom-cursor/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# Custom Cursor
-
-## ATTENTION use Tailind cursor-\* variant or css variable --cursor-\*
-
-Using default tailwind cursor variant, such as `cursor-pointer`, works because it is overriden by the vite plugin that replaces value to use custom cursor css variable.
-
-Otherwise use custom cursor variable `--cursor-<value-of-cursor>`, instead of default value.
-
-```css
-.pointer-on-img {
- cursor: pointer /* <--- DONT DO THIS otherwise it will show default cursor instead of custom */
-
- /* replace with custom cursor variable, variable uses native value as fallback */
- cursor: var(--cursor-pointer);
-}
-```
-
-```html
-<div style="cursor: var(--cursor-not-allowed)"></div>
-```
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/busy.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/busy.svg
deleted file mode 100644
index a1d04eb250..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/busy.svg
+++ /dev/null
@@ -1,21 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-<style>
-@keyframes rotate {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
-}
-.animate-rotate {
- animation: rotate;
- animation-iteration-count: infinite;
- animation-duration: 1000ms;
- animation-timing-function: linear;
- transform-origin: center center;
- transform-box: content-box;
-}
-
-</style>
-<linearGradient id="busya" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#4ab4ef"/><stop offset="1" stop-color="#3582e5"/></linearGradient><linearGradient id="busyb" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#3481e4"/><stop offset="1" stop-color="#2051db"/></linearGradient><linearGradient id="busyc" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#6bdcfc"/><stop offset="1" stop-color="#4dc6fa"/></linearGradient><linearGradient id="busyd" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#4bc5f9"/><stop offset="1" stop-color="#2fb0f8"/></linearGradient><mask id="busye" fill="#fff"><path d="m1 23c0 4.971 4.03 9 9 9 4.97 0 9-4.029 9-9 0-4.971-4.03-9-9-9-4.97 0-9 4.029-9 9z" fill="#fff" fill-rule="evenodd"/></mask><g fill="none" fill-rule="evenodd" transform="translate(7)"><g mask="url(#busye)" class="animate-rotate"><g transform="translate(1 14)"><path d="m0 0h9v9h-9z" fill="url(#busya)"/><path d="m9 9h9v9h-9z" fill="url(#busyb)"/><path d="m9 0h9v9h-9z" fill="url(#busyc)"/><path d="m0 9h9v9h-9z" fill="url(#busyd)"/></g></g><g fill-rule="nonzero"><path d="m0 16.422v-16.015l11.591 11.619h-7.041l-.151.124z" fill="%COLOR-ACCENT%"/><path d="m1 2.814v11.188l2.969-2.866.16-.139h5.036z" fill="#000"/></g></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/cell.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/cell.svg
deleted file mode 100644
index 8c62c7fea8..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/cell.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(9 9)"><path d="m8.992 14h-3.98v-14h3.98z" fill="#000"/><path d="m0 5.005h13.985v3.98h-13.985z" fill="#000"/><g fill="%COLOR-ACCENT%"><path d="m7.969 13h-1.969v-11.986h1.969z"/><path d="m1.016 6.031h11.967v1.969h-11.967z"/></g></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/contextualmenu.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/contextualmenu.svg
deleted file mode 100644
index 72fa08db96..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/contextualmenu.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 7)"><g fill="%COLOR-ACCENT%"><path d="m8 17.47v.53h9v-10h-9v.427z"/><path d="m9.085 17.096-3.606 1.535-4.682-11.089 3.687-1.553z"/><path d="m0 16.422v-16.015l11.591 11.619h-6.781l-.411.124z"/></g><path d="m15 12h-5v-1h5zm0 2h-5v-1h5zm0 2h-5v-1h5zm-6 1h7v-8h-7z" fill="#000"/><path d="m7.751 16.416-1.844.773-3.1-7.373 1.841-.776z" fill="#000"/><path d="m1 2.814v11.188l2.969-2.866.428-.139h4.768z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/copy.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/copy.svg
deleted file mode 100644
index dc4ad9f368..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/copy.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="copya" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#5bd230"/><stop offset="1" stop-color="#068b03"/></linearGradient><g fill="none" transform="translate(7)"><g transform="translate(1 14)"><path d="m0 9c0 4.97 4.03 9 9 9 4.97 0 9-4.03 9-9 0-4.971-4.03-9-9-9-4.97 0-9 4.029-9 9" fill="url(#copya)"/><path d="m13 8h-3v-3c0-.552-.448-1-1-1s-1 .448-1 1v3h-3c-.552 0-1 .448-1 1s.448 1 1 1h3v3c0 .552.448 1 1 1s1-.448 1-1v-3h3c.552 0 1-.448 1-1s-.448-1-1-1" fill="#fff"/></g><path d="m0 16.422v-16.015l11.591 11.619h-7.041l-.151.124z" fill="%COLOR-ACCENT%"/><path d="m1 2.814v11.188l2.969-2.866.16-.139h5.036z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/cross.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/cross.svg
deleted file mode 100644
index 354292120c..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/cross.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(9 9)"><path d="m15 6h-6.01v-6h-2.98v6h-6.01v3h6.01v6h2.98v-6h6.01z" fill="%COLOR-ACCENT%"/><path d="m13.99 7.01h-6v-6.01h-.98v6.01h-6v.98h6v6.01h.98v-6.01h6z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/default.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/default.svg
deleted file mode 100644
index 8bcf6ab6c5..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/default.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(10 7)"><path d="m6.148 18.473 1.863-1.003 1.615-.839-2.568-4.816h4.332l-11.379-11.408v16.015l3.316-3.221z" fill="%COLOR-ACCENT%"/><path d="m6.431 17 1.765-.941-2.775-5.202h3.604l-8.025-8.043v11.188l2.53-2.442z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/handgrabbing.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/handgrabbing.svg
deleted file mode 100644
index 7971384290..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/handgrabbing.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 9)"><path d="m3.44281398 1.68449726c-.74326136.27630142-1.05584685.8131257-1.07636853 1.38003696-.01344897.37336893.06665513.72649286.23114214 1.18694303-.02596219-.07267623.09676488.29282004.12116236.37362273.05052942.16918921-.4865367-.05865774-.81377307.00741883-.36363321.07113868-.84783757.38332307-1.10006887.79754775-.29643467.48542737-.3109609 1.04368567-.08235979 2.04824266.12491868.54736183.36572145 1.00836814.71076689 1.44594879.15329951.1944118.5713628.64726015.60307236.6875974l.84854343.94062339c.15080214.1358526.25794954.2361946.57590427.5380259.3147558.2987762.4647038.4380078.60308951.555976.05846214.0492474.10784267.1797116.12740685.3736249.01609788.1595565.01049553.3375341-.0090192.5090254-.00674888.0593077-.01325791.1020883-.01698742.1224696-.04189161.228932.13269563.4403386.36541902.4424835.21585671.0019894.38528595.0046546.82216479.0123538.09483476.0016698.09483476.0016698.18993053.0033129 1.16876447.0200186 1.75308289.0147904 2.17807912-.0385723.45429894-.0572869.92650915-.6110188 1.32698393-1.2957591.34289141.6108338.81859723 1.2057867 1.2995685 1.2820532.1510118.0244148.3353555.0322555.548787.0275887.1606725-.0035131.3307029-.0140241.5021961-.0293376.1276907-.0114022.2293359-.0228648.29003-.0307451.2258836-.0293282.373669-.251611.3133108-.4712481-.0130351-.0474332-.0339838-.1345011-.0551094-.2441635-.0245945-.1276687-.0423383-.2523857-.0503381-.365988-.0050217-.0713101-.0059948-.1359317-.0027687-.1918983.0059157-.0980798.0077938-.1530073.0108033-.281125.0010795-.0448938.0010795-.0448938.0024606-.0845172.0054208-.1364475.0233824-.2649146.0815132-.544638.0250088-.1201275.1473169-.352189.3398902-.639435.0571394-.0852302.1195783-.1742239.1864664-.26609712.1272143-.17473362.2641361-.35131772.4011075-.52030772.082051-.10123129.145482-.17695689.1808122-.21807676.2967593-.42378347.612817-1.11823437.7291396-1.52536348.1117407-.39153936.202351-1.12501196.254373-1.81690429.029923-.39968605.0410555-.72381216.0410555-1.23011613.0000742-.09758414.0000742-.09758414.0002975-.17670236.0003569-.11115478.0003569-.11115478.000115-.20711835-.0008934-.15683883-.0055282-.31323355-.0207085-.69507578-.0313109-.81293139-.4771727-1.33911388-1.1344906-1.44058831-.559108-.08631314-1.0586051.08188477-1.2779293.31625977-.0755526.08073733.0036753-.2781823-.2159489-.62316278-.1644465-.25841586-.593184-.58905957-.9209287-.65355552-.335487-.06535532-.73539548-.05811715-1.1017193.00667481-.32093157.05742909-.68608434.33741751-.87176225.64688068-.12411885.20686477.03884667-.00592296-.09368743-.23401341-.18231052-.31422641-.60754287-.59486422-1.01411454-.67799709-.34643562-.07139428-.74182572-.04452925-1.09945614.0633873-.43336319.1291117-1.01795827.61460976-.94899189 1.15552627-.34375-.54091651-1.25026717-.691379-1.97906097-.42111797z" fill="#000"/><path d="m7.31951013 1.62138197c.20710357.04234751.44724204.20083012.51632974.31990811.08404358.1446387.15562749.36413806.21048667.6366124.02933373.14569467.12179446 1.2125285.29383112 1.32370243.41279229.04533731.41279229.04533731.52658055-.12364345.03545705-.07383858.03545705-.07383858.04226523-.1029106.01416796-.06009544.02463332-.12677987.0351322-.21754028l.00854738-.07915386.00047673-.00942804.00327525-.03167185c.01085148-.11424313.04184125-.4312127.05388392-.53034902.03788792-.31189663.08766449-.52757784.13944093-.6138719.0713024-.11883734.31942298-.28274442.43149612-.30279961.2804398-.04960082.58940103-.05519288.82623993-.00905543.1084394.02134018.3709471.22378689.432331.32024744.1291079.20279957.2524316.84889766.3225486 1.4970065-.0102194.04624251-.0102194.04624251.1640069.28984194.5843296-.06677889.5843296-.06677889.5703629-.17490247.0159511-.03856429.0284824-.08294031.045969-.15118961.0423876-.16089067.0697594-.25204451.111066-.35549917.0288558-.07227096.0592914-.13391873.0904889-.18278042.1209187-.19031132.4335712-.319392.7077174-.27707028.2943447.04543991.4816904.26653537.4994912.72869815.0148821.37434892.0193146.5239164.0201469.6700184l-.0004247.37954865c0 .48831141-.0104951.79388164-.0389535 1.17400348-.0480918.63962116-.1348512 1.34192123-.227649 1.66708484-.0946325.33121345-.3766371.95084197-.6003915 1.27298482-.0161892.01580846-.0841508.09694273-.1710333.20413492-.1445842.17838247-.2892181.36491271-.4247891.5511244-.0723398.09936149-.1402862.19620479-.2030964.2898938-.2440054.36396314-.400553.66098894-.4512157.90434304-.0659304.3172546-.0893838.4850003-.0966379.6675968-.0017072.0490782-.0017072.0490782-.002845.096677-.0028064.119476-.004437.1671639-.0097087.2545848-.0052654.091322-.0038193.187354.00332.2887353.0103318.1467182.1058713.3478531.1058713.3478531s-.2321503-.0119819-.3742084-.0088758c-.1718098.0037567-.3147843-.0023244-.4138162-.0183342-.1440353-.0228411-.53014068-.5057331-.7278511-.8821737-.30227042-.5764228-1.03604858-.5484427-1.33684295-.0394061-.26854779.4591613-.65918083.9172326-.7740684.9317199-.37404082.0469647-.94643778.0520862-2.07160079.0328144-.09480875-.0016381-.46003446-.0128683-.64600494-.0157445-.18597048-.0028763.05008807-.1790283.02786486-.399297-.03726222-.36933-.15125405-.6704984-.38877094-.8705429-.12241569-.1043631-.26774964-.2393104-.56509654-.5215613-.33323493-.3163366-.44236499-.4185353-.57290215-.533275l-.80130455-.89071892c-.03955779-.05174211-.45812831-.5051399-.5872217-.6688539-.28069963-.35597842-.47062947-.71959073-.56844755-1.14820437-.18921973-.83150113-.1793328-1.21146622-.00855589-1.49112273.13743587-.2257023.43815377-.4195862.60596039-.45241793.17165981-.03465512.55153059-.01648617.62179422.02229321.09902279.05401056.13357243.07300285.16379074.09097645.03572494.02124891.05965747.03799198.08182912.05708809.03426437.02951139.07235014.07170412.12420211.14044502.03611591.04821025.07806642.1053997.1423779.19304882.06054643.0816627.09183576.12069421.13369221.1590035.28038907.25662728.68391532.03238058.65052057-.32606956-.00567036-.06086415-.02203766-.12694598-.05458621-.23708502-.04356824-.15021272.00433013-.05284275-.26002629-.56642281-.08720664-.16942124-.13955864-.28835362-.17428227-.4046158l-.03412852-.10219113c-.03838756-.11059767-.09558223-.26854489-.12612861-.35199347l-.02009957-.05467087.002.008-.05974804-.17751191c-.09232236-.28807194-.13413567-.51358087-.12645475-.72681781.01040781-.28751553.16037753-.54506871.58790983-.70400047.40142488-.1488616 1.07786076.00117106 1.20581167.27856864.04319814.09369738.08927466.21199471.13900415.35457792l.03930997.11680217c.05539717.16759437.13470873.41493582.13860471.42816881.02724222.08344874.0471839.13860719.06943813.18441246.00217869.06301886.00217869.06301886.35429398.23177937.41699479-.29154152.41699479-.29154152.38019201-.37525838.00571063-.08773482.00758408-.17356287.00965287-.37317647.00242546-.23402898.00423842-.33154773.00994479-.45966208.01316411-.29554918.0437926-.51142116.09291227-.63864415.09160418-.23801371.25279279-.40993649.4432431-.46667832.24458613-.07380253.51465245-.09215236.73323569-.04710649zm1.21356228 4.27672201c-.20710459.00095412-.37422255.16961903-.37326843.37672361l.016 3.473c.00095412.20710459.16961903.37422251.37672361.37326841.20710459-.0009541.37422255-.16961901.37326843-.37672359l-.016-3.473c-.00095412-.20710459-.16961903-.37422255-.37672361-.37326843zm2.03332759.00229602c-.2071068 0-.375.16789322-.375.375v3.459c0 .20710678.1678932.375.375.375s.375-.16789322.375-.375v-3.459c0-.20710678-.1678932-.375-.375-.375zm-4.01399856.02930704c-.20710289.00126946-.37396385.17018863-.3726944.37729152l.021 3.426c.00126946.20710289.17018863.37396384.37729152.37269444.20710289-.0012695.37396385-.17018867.3726944-.37729156l-.021-3.426c-.00126946-.20710289-.17018863-.37396385-.37729152-.3726944z" fill="%COLOR-ACCENT%"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/handopen.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/handopen.svg
deleted file mode 100644
index 073f3b5a08..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/handopen.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(7 6)"><path d="m4.5557 8.5742c-.098-.375-.196-.847-.406-1.552-.167-.557-.342-.859-.47-1.233-.155-.455-.303-.721-.496-1.181-.139-.329-.364-1.048-.457-1.44-.119-.509.033-.924.244-1.206.253-.339.962-.49 1.357-.351.371.13.744.512.916.788.288.46.357.632.717 1.542.393.992.564 1.918.611 2.231l.085.452c-.001-.04-.043-1.122-.044-1.162-.035-1.029-.06-1.823-.038-2.939.002-.126.064-.587.084-.715.078-.5.305-.8.673-.979.412-.201.926-.215 1.401-.017.423.173.626.55.687 1.022.014.109.094.987.093 1.107-.013 1.025.006 1.641.015 2.174.004.231.003 1.625.017 1.469.061-.656.094-3.189.344-3.942.144-.433.405-.746.794-.929.431-.203 1.113-.07 1.404.243.285.305.446.692.482 1.153.032.405-.019.897-.02 1.245 0 .867-.021 1.324-.037 2.121-.001.038-.015.298.023.182.094-.28.188-.542.266-.745.049-.125.241-.614.359-.859.114-.234.211-.369.415-.688.2-.313.415-.448.668-.561.54-.235 1.109.112 1.301.591.086.215.009.713-.028 1.105-.061.647-.254 1.306-.352 1.648-.128.447-.274 1.235-.34 1.601-.072.394-.234 1.382-.359 1.82-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.192 1.812-.117.563-.078.567-.101.965-.024.399.121.923.121.923s-.802.104-1.234.034c-.391-.062-.875-.841-1-1.078-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.03-3.139.02 0 0 .185-1.011-.227-1.358-.305-.26-.83-.784-1.144-1.06l-.832-.921c-.284-.36-.629-1.093-1.243-1.985-.348-.504-1.027-1.085-1.284-1.579-.223-.425-.331-.954-.19-1.325.225-.594.675-.897 1.362-.832.519.05.848.206 1.238.537.225.19.573.534.75.748.163.195.203.276.377.509.23.307.302.459.214.121" fill="%COLOR-ACCENT%"/><g stroke="#000" stroke-linecap="round" stroke-width=".75"><path d="m4.5557 8.5742c-.098-.375-.196-.847-.406-1.552-.167-.557-.342-.859-.47-1.233-.155-.455-.303-.721-.496-1.181-.139-.329-.364-1.048-.457-1.44-.119-.509.033-.924.244-1.206.253-.339.962-.49 1.357-.351.371.13.744.512.916.788.288.46.357.632.717 1.542.393.992.564 1.918.611 2.231l.085.452c-.001-.04-.043-1.122-.044-1.162-.035-1.029-.06-1.823-.038-2.939.002-.126.064-.587.084-.715.078-.5.305-.8.673-.979.412-.201.926-.215 1.401-.017.423.173.626.55.687 1.022.014.109.094.987.093 1.107-.013 1.025.006 1.641.015 2.174.004.231.003 1.625.017 1.469.061-.656.094-3.189.344-3.942.144-.433.405-.746.794-.929.431-.203 1.113-.07 1.404.243.285.305.446.692.482 1.153.032.405-.019.897-.02 1.245 0 .867-.021 1.324-.037 2.121-.001.038-.015.298.023.182.094-.28.188-.542.266-.745.049-.125.241-.614.359-.859.114-.234.211-.369.415-.688.2-.313.415-.448.668-.561.54-.235 1.109.112 1.301.591.086.215.009.713-.028 1.105-.061.647-.254 1.306-.352 1.648-.128.447-.274 1.235-.34 1.601-.072.394-.234 1.382-.359 1.82-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.192 1.812-.117.563-.078.567-.101.965-.024.399.121.923.121.923s-.802.104-1.234.034c-.391-.062-.875-.841-1-1.078-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.03-3.139.02 0 0 .185-1.011-.227-1.358-.305-.26-.83-.784-1.144-1.06l-.832-.921c-.284-.36-.629-1.093-1.243-1.985-.348-.504-1.027-1.085-1.284-1.579-.223-.425-.331-.954-.19-1.325.225-.594.675-.897 1.362-.832.519.05.848.206 1.238.537.225.19.573.534.75.748.163.195.203.276.377.509.23.307.302.459.214.121" stroke-linejoin="round"/><path d="m11.566 12.734v-3.459"/><path d="m9.551 12.746-.016-3.473"/><path d="m7.555 9.305.021 3.426"/></g></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/handpointing.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/handpointing.svg
deleted file mode 100644
index 52af0b984e..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/handpointing.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(9 8)"><path d="m3.8852309 13.5522788c.15029277.1354048.25406355.2326609.57471053.5372549.31406586.2983172.46594413.439273.60482646.5572091.05791893.0487853.10729946.1792495.12686364.3731628.01609788.1595565.01049553.3375341-.0090192.5090254-.00674888.0593077-.01325791.1020883-.01698742.1224696-.04186639.2287942.13249226.4401222.36507344.4424801.20929712.0021219.37056581.00472.79741331.0123273.10679864.0019014.10679864.0019014.21395196.0037648 1.16029156.0199598 1.75290683.01448 2.1782236-.039003.45462139-.05716.92282087-.6061887 1.32754658-1.2951218.3429437.6096032.818651 1.2048784 1.2990136 1.282277.1525992.0243739.3372104.0319365.5511764.0270146.1595258-.0036697.328349-.0141847.4987188-.0294071.1284742-.0114791.2308379-.0230173.2919821-.0309462.2259121-.0292954.3737346-.2515956.31337-.4712558-.0130388-.0474468-.0339905-.1345046-.0551176-.2441066-.0244927-.1270617-.0421932-.2511642-.0502379-.3642189-.0051002-.0716765-.0061057-.1365707-.0028638-.1926702.0056365-.097781.007395-.1525378.0101327-.2790463.0010457-.0470941.0010457-.0470941.0024433-.0883088.0052898-.134881.0234093-.2629524.0820463-.5422232.0251901-.1212103.1472903-.3531692.3395862-.6402332.0572734-.0854992.1198813-.1747825.1869659-.2669588.127207-.1747861.2641214-.3514011.4010853-.5204043.0820457-.1012383.1454717-.1769623.1807968-.2180763.2962199-.424403.6120842-1.1191696.7281396-1.5253635.111416-.3904017.2005405-1.10937558.2553074-1.81604479.0300143-.40088807.0411211-.72405394.0411211-1.23097561.0000507-.08891816.0000507-.08891816.0002032-.16234685.0002858-.12025251.0003032-.16573976-.0000887-.22195195-.0010706-.15358041-.0055478-.30580145-.0203882-.6940256-.0319191-.81365149-.4778003-1.3396911-1.1348711-1.44115781-.5589865-.08632026-1.2393839.37795756-1.2393839.37795756s-.1514404-.5228127-.2537197-.6842075c-.1661957-.25934741-.5941748-.58982828-.9213451-.65421118-.3365014-.0653413-.7354024-.05811592-1.1017193.00667481-.3207944.05740454-.64034865.34382687-.82518751.65277182-.13223727.22039488-.00786932-.01169164-.14013104-.2396787-.1830552-.31402315-.60932935-.59522407-1.01524567-.67822294-.34396352-.07112559-.73801897-.04403625-1.09795562.06293793-.46304125.13836397-.53675291.49073282-.55516748.38984626-.06158674-.3382385-.06727482-.3160095-.105656-.55729603-.14258072-.89527436-.30213161-1.51473549-.54406219-2.05528331.01391678.0310773-.08860981-.20214701-.12592279-.28256779-.06461002-.13925416-.12910532-.2652956-.19999629-.38652204-.21850342-.37364978-.46891278-.65340904-.7830908-.81233894-.54561037-.27629378-1.3634177-.14183064-1.75105565.31064856-.38495968.44966797-.4491432 1.20149287-.3521966 2.13184003.03702376.36121263.16678627 1.02066144.28444961 1.50812387.04160602.1691894.07805979.32348903.14491578.60851331.01149723.04848415.01149723.04848415.02309483.09698036.05172236.21571896.09707607.39320067.15122332.5879629-.00568154-.02030261.09701461.344086.11888835.42472961.00727686.02691587.00727686.02691587.01448296.05395339.04082856.15377935.08074083.31959314.14309954.5963099.03412572.1521447.06742545.31468601.09999775.48699018.08883553.46993091.089274.37207374.00375852.27186198-.05907319-.06922522-.11463055-.13209255-.16830659-.19003644-.09976937-.10770214-.19148509-.19677225-.2785569-.2678141-.6343975-.51905295-1.02312991-.74839425-1.55681885-.79878106-.87541567-.08410158-1.70619803.53426712-1.83111632 1.36882761-.07682697.51169638-.05207639.74723271.18463583 1.19942735.13026223.24432805.35060714.53942202.76172732 1.04735429.02515953.031068.02515953.031068.05030428.06206416.50464537.62186746.55962098.69095396.67961467.86473786.32435479.4706845 1.1139501 1.8221455 1.25748612 2.0035872z" fill="#000"/><path d="m1.68266944 9.2716401c-.02488625-.03067752-.02488625-.03067752-.04970567-.06132555-.37729166-.46613768-.58418002-.74321015-.68156241-.9258495-.15281729-.29195235-.1611316-.37107459-.10605794-.73788601.06473349-.43247455.53181583-.78013371 1.01829549-.73339767.33660502.03178017.63068475.20527903 1.15339692.63295262.0565942.04617564.12482853.1124417.20288232.19670163.04616569.04983637.09513192.10524534.14800114.16720042.0794093.0930562.34702847.42052231.30761424.37286894.05814283.06991619.09971852.12407704.14721655.19045018.0941062.13434104.14705111.20894642.21874992.30454484-.0336171-.04487143.21473082.29843305.26732159.34863333.27859812.26593456.68203289.04195871.65675979-.31244785-.00421914-.05916537-.01812774-.12308431-.04717934-.23466885-.11487425-.81923739-.15505751-1.08218312-.24678252-1.56739907-.03407352-.18024544-.06905328-.35098727-.10521102-.5121905-.06435409-.28557213-.10635725-.46007245-.14994794-.62425526-.00774801-.02907063-.00774801-.02907063-.01552357-.05783095-.02300644-.08481964-.12725123-.45470311-.12030828-.42989063-.05134381-.18468043-.0945453-.35373996-.14431997-.56133562-.01130896-.04728909-.01130896-.04728909-.02259904-.09489949-.06649254-.28350912-.10387999-.44176072-.14606063-.6132721-.10998732-.45567652-.23425389-1.08719519-.2671036-1.40768017-.07546665-.72422018-.02339381-1.33418457.17582284-1.56688778.15554834-.1815673.59641015-.25405339.84271752-.12932486.16107512.0814814.32204278.26131571.47435101.521769.05764302.09857191.11172763.20426801.16708381.32357735.0335256.07225783.13292567.29837003.12172905.27336705.21032209.46992469.354801 1.03086841.48791736 1.86671535.03939531.24766201.08813662.52823537.15063928.87150416.01857903.10178746.01857903.10178746.03722922.20314381.30139226 1.63533599.27933797 1.51139381.28367122 1.64182468.01580667.47578071.71810567.4869267.74900255.01188722.00979855-.15065269.00630989-.2851661-.01107827-.67146517-.00245496-.05465243-.00245496-.05465243-.00481877-.10910149-.01521525-.35590459-.01433687-.56066672.00670546-.67705709.03834708-.21223125.22887-.4499778.40434754-.50241339.24641865-.07323589.51640341-.09179599.73269877-.04707051.20703808.0423346.44864736.20171736.51796318.32062499.08353628.14399789.15516008.36337367.21006107.63530456.04431149.21947986.07480439.45493493.0962536.70624261.00667352.0781897.01103024.13859819.01772256.23854675.00285005.04183594.00285005.04183594.00568968.07635213.00160285.01731471.00160285.01731471.00551199.04467336.00303535.01917374.00303535.01917374.01734216.06773608.00727602.13782339.00727602.13782339.56081544.18893151.16530264-.19982737.16530264-.19982737.16077268-.23486454.02708074-.1183491.04365279-.250265.06727822-.49813693.01508098-.16112409.02268576-.24033521.03157416-.32249887.036794-.34012028.0835164-.55621578.140511-.65120691.0707148-.11819408.3197845-.28280909.4314962-.30279961.2805348-.04961763.5886064-.0551978.8264635-.00901194.1077347.021202.3705429.22413969.4327499.32121002.1277282.20156171.2519621.8513817.3219188 1.49611734-.0110122.04228902-.0110122.04228902.1607163.28760404.5903408-.06730286.5903408-.06730286.5737568-.17389206.0155734-.03799147.0279666-.08191522.0455068-.15013809.0421947-.1597068.0701719-.25243998.1118273-.35635899.0288165-.07188915.0591935-.13335501.0903398-.18227881.120675-.18992919.4330876-.31896311.7070596-.2766556.2942545.0454396.4817569.26665023.4998934.72896761.0145423.38042999.0188438.52667972.0198445.67022961.0003693.0529684.0003531.09548963.0000723.21509672-.0001536.07391241-.0001536.07391241-.000205.16397385 0 .48892448-.010469.79353263-.0389535 1.17400348-.0506294.653266-.1361064 1.34281542-.228649 1.66708482-.094456.330596-.3764591.9508823-.5997469 1.2734975-.0158389.0153017-.0838055.0964468-.1706932.2036597-.1445918.1784155-.2892331.364998-.4248114.5512865-.0725632.099704-.140705.1968792-.2036767.2908847-.2436695.3637558-.4000227.6607868-.4506249.9042828-.0664376.3164194-.0901813.4842425-.0973169.666189-.0017426.0515155-.0017426.0515155-.0028439.1014735-.0025547.1180556-.0040857.165727-.0090621.2520573-.0052398.0906702-.0037444.1871795.0035093.2891187.0103883.145992.0000001.3454812.0000001.3454812s-.1266332-.0118299-.2678551-.0085813c-.1725177.0039685-.3159859-.0019087-.4151297-.0177442-.143046-.0230487-.5293508-.5064503-.7271506-.8830611-.3022704-.5764228-1.03604858-.5484427-1.33684295-.0394061-.27130191.4618137-.65965243.9172085-.77493336.9317029-.37460536.047106-.95471158.0524702-2.07175566.0332544-.10679478-.0018572-.10679478-.0018572-.21348729-.0037567-.42889761-.0076439-.41241496.0647655-.40363307-.0124079.02506967-.2203068.02222332-.1790312.00000011-.3992999-.03726222-.36933-.15125405-.6704984-.38877094-.8705429-.12286946-.1043424-.26983033-.2407345-.56500741-.5211097-.33722428-.3203411-.44283686-.4193233-.57299128-.5337266l-.80130455-.8907189c-.08795856-.1124788-.86002339-1.4339349-1.21248613-1.9454077-.13710846-.19857111-.18839645-.26302343-.71461353-.9114734zm9.50873056.0037599v3.459c0 .5.75.5.75 0v-3.459c0-.5-.75-.5-.75 0zm-2.03159602-.00057241.016 3.47300001c.00230346.4999947.7522955.4965395.74999204-.0034552l-.016-3.47299999c-.00230346-.4999947-.7522955-.49653951-.74999204.00345518zm-1.20911102 3.45357381-.021-3.42599996c-.00306475-.4999906-.75305066-.49539349-.74998592.00459712l.021 3.42600004c.00306475.4999906.75305066.4953935.74998592-.0045972z" fill="%COLOR-ACCENT%"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/help.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/help.svg
deleted file mode 100644
index 0b3041f56d..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/help.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(12 10)"><path d="m2.752 9.863h2.474v2.395h-2.474z" stroke="%COLOR-ACCENT%" stroke-width="1.5"/><path d="m1.3154.9409c.606-.488 1.73-.875 2.686-.881 1.514-.009 2.311.456 3.026 1.151.688.669 1.004 1.352.953 2.4-.041.853-.267 1.348-.604 1.811-.198.281-.577.641-1.138 1.078l-.533.43c-.33.32-.474.463-.6.82-.094.266-.116.506-.121.922h-1.977c-.003-1.016-.019-1.375.09-1.813.107-.426.502-.734 1.063-1.171l.568-.446c.188-.14.494-.414.608-.581.208-.286.334-.682.351-1.025.016-.323-.081-.699-.344-1.027-.312-.39-.703-.638-1.465-.604-.601.027-1.061.333-1.342.622-.33.34-.474.904-.498 1.35h-1.977c.062-1.484.354-2.312 1.254-3.036z" stroke="%COLOR-ACCENT%" stroke-width="2"/><g fill="#000" fill-rule="nonzero"><path d="m3.013 10.016h1.979v1.984h-1.979z"/><path d="m1.5156.9209c.697-.449 1.342-.794 2.426-.794 1.617 0 1.983.242 2.812.904.75.599 1.207 1.376 1.207 2.48 0 .677-.364 1.408-.702 1.871-.197.281-.459.56-1.02.998l-.612.47c-.3.234-.598.588-.697.9-.062.198-.058.623-.062 1.039h-1.86c.031-.88.034-1.605.169-1.941s.483-.723 1.044-1.16l.547-.446c.187-.14.475-.354.589-.521.208-.286.389-.701.389-1.045 0-.396.022-.676-.209-1.002-.27-.378-.516-.794-1.678-.814-.905-.016-1.291.447-1.542.847-.252.402-.338.858-.338 1.29h-1.978c.063-1.484.541-2.456 1.515-3.076"/></g></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/makealias.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/makealias.svg
deleted file mode 100644
index b9904320f3..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/makealias.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(10 9)"><path d="m11 .0781-10.25.078 3.494 3.12c-.289.312-.527.571-.572.63-.156.203-.781 1.125-.969 1.516-.187.39-.562 1.39-.672 2.031-.1.589-.094 1.656-.078 2.109.015.423.16 1.258.297 1.641.219.609.344.938.625 1.375.316.492.593.767 1.031 1.188.391.375 2.188 1.234 2.188 1.234-.282-.359-.813-1.391-.938-1.75-.066-.19-.239-1.111-.281-1.531-.047-.469-.078-1.125-.063-1.594.014-.409.102-.809.204-1.172.109-.391.428-.907.687-1.266.203-.281.448-.572.797-.906.254-.244.551-.503.854-.727l3.615 3.227z" fill="%COLOR-ACCENT%"/><path d="m9.9648 7.2402-.004-6.184-6.161.004 1.798 1.802c-.138.146-.326.345-.437.484-.277.347-.443.537-.61.732-.118.138-.262.317-.377.474-.159.217-.28.43-.361.575-.111.196-.226.46-.367.75-.196.404-.262.746-.319.982-.039.16-.13.571-.166.953-.028.29-.008.624-.008.759 0 .236-.024.52.027.98.047.421.296 1.351.482 1.722.156.313.462.93.462.93s-.17-1.518-.116-2.285c.032-.438.235-1.183.493-1.728.045-.093.053-.21.186-.422.103-.162.24-.386.355-.568.214-.337.654-.875.759-1.015.169-.225.66-.672.938-.917.142-.125.493-.419.793-.668z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/move.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/move.svg
deleted file mode 100644
index e762d75365..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/move.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 8)"><path d="m9.97732426 4.98866213h.99773244v.99773243h-.99773244zm.99773244 5.98639457h-.99773244v-.99773244h.99773244zm-4.98866214-4.98866214h-.99773243v-.99773243h.99773243zm0 4.98866214h-.99773243v-.99773244h.99773243zm1.99546485-10.96208618-7.96689342 7.96988662 5.21015873 5.20916096 2.75673469 2.7567347 7.96589569-7.96689339z" fill="%COLOR-ACCENT%"/><path d="m11.982 7.001v-1.825l2.551 2.803-2.552 2.802.001-1.804h-3.015v2.998h1.801l-2.799 2.57-2.8-2.571 1.823.001v-2.998h-3.002l.001 1.804-2.566-2.802 2.565-2.803v1.825h2.994v-3.011h-1.804l2.802-2.564 2.801 2.565-1.803-.001v3.011z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/notallowed.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/notallowed.svg
deleted file mode 100644
index eead7347a3..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/notallowed.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="notalloweda" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0" stop-color="#f0f0f0"/><stop offset="1" stop-color="#d5d5d5"/></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(7)"><path d="m1 23c0 4.97 4.03 9 9 9 4.97 0 9-4.03 9-9 0-4.971-4.03-9-9-9-4.97 0-9 4.029-9 9zm4.826-5.61c1.167-.869 2.608-1.39 4.174-1.39 3.866 0 7 3.134 7 7 0 1.567-.52 3.008-1.39 4.174zm-2.826 5.61c0-1.578.529-3.029 1.409-4.199l9.79 9.79c-1.171.881-2.622 1.409-4.199 1.409-3.866 0-7-3.134-7-7z" fill="url(#notalloweda)"/><path d="m0 16.422v-16.015l11.591 11.619h-7.041l-.151.124z" fill="%COLOR-ACCENT%"/><path d="m1 2.814v11.188l2.969-2.866.16-.139h5.036z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resize northsouth.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resize northsouth.svg
deleted file mode 100644
index 57e444d8a4..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resize northsouth.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 8)"><path d="m6 0-6 5.98h4v2.02 2h-4l6 6 6-6h-4v-2-2.02h4zm0 1.414 3.586 3.567h-2.586v2.52 3.499h2.586l-3.586 3.586-3.586-3.586h2.586v-3.499-2.52h-2.586z" fill="%COLOR-ACCENT%"/><path d="m7 7.5v-2.52h2.586l-3.586-3.566-3.586 3.566h2.586v2.52 3.5h-2.586l3.586 3.586 3.586-3.586h-2.586z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizedown.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizedown.svg
deleted file mode 100644
index 3fd938a0d1..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizedown.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(8 11)"><path d="m0 .001v3.98h6.006v1.059h-3.466l5.472 5.961 5.461-5.961h-3.478v-1.059h6.005v-3.98z" fill="%COLOR-ACCENT%"/><path d="m1 2.98h6v3.04h-2.24l3.251 3.32 3.223-3.32h-2.254v-3.04h6v-1.96h-13.98z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeeast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeeast.svg
deleted file mode 100644
index 31b57ee9a6..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeeast.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 10)"><path d="m7 12 6-6-6-6v4h-7v4h7z" fill="%COLOR-ACCENT%"/><path d="m1 5h7v-2.586l3.586 3.586-3.586 3.586v-2.586h-7z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleft.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleft.svg
deleted file mode 100644
index 751cfdc492..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleft.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 8)"><path d="m7.02 0v6.006h-1.02v-3.866l-6 5.872 6 5.89v-3.907h1.02v6.005h3.98v-16z" fill="%COLOR-ACCENT%"/><path d="m8 1v6h-3.02v-2.24l-3.32 3.251 3.32 3.223v-2.254h3.02v6h1.98v-13.98z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleftright.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleftright.svg
deleted file mode 100644
index 3d62f81564..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeleftright.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(7 8)"><path d="m7 0v6.006h-1.021v-3.466l-5.979 5.472 5.979 5.461v-3.478h1.021v6.005h.02 3.961v-6.006h1.058v3.467l5.961-5.473-5.961-5.461v3.478h-1.058v-6.005z" fill="%COLOR-ACCENT%"/><path d="m16.34 7.989-3.32-3.223v2.254h-3.02v-5.96h-.019v-.02h-1.941v6h-3.06v-2.28l-3.32 3.251 3.32 3.224v-2.254h3.06v6h.02 1.921.019v-6h3.02v2.259z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorth.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorth.svg
deleted file mode 100644
index b5b17838fe..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorth.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 10)"><path d="m12 6-6-6-6 6h4v7h4v-7z" fill="%COLOR-ACCENT%"/><path d="m5 12v-7h-2.586l3.586-3.586 3.586 3.586h-2.586v7z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheast.svg
deleted file mode 100644
index bc36e80c4b..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheast.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 11)"><path d="m11 8.486v-8.486h-8.485l2.829 2.829-4.95 4.95 2.828 2.828 4.95-4.95z" fill="%COLOR-ACCENT%"/><path d="m1.808 7.779 4.95-4.951-1.828-1.828h5.071v5.071l-1.829-1.829-4.95 4.951z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheastsouthwest.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheastsouthwest.svg
deleted file mode 100644
index 3650443fc3..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenortheastsouthwest.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(9 9)"><path d="m9.743 7.087-4.072 4.068 2.829 2.828-8.473-.013-.013-8.47 2.841 2.842 4.075-4.068 1.414-1.415-2.844-2.842h8.486v8.484l-2.83-2.827z" fill="%COLOR-ACCENT%"/><path d="m8.683 6.733-4.427 4.424 1.828 1.828-5.056-.016-.014-5.054 1.842 1.841 4.428-4.422 2.474-2.475-1.844-1.843h5.073v5.071l-1.83-1.828z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthsouth.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthsouth.svg
deleted file mode 100644
index 57e444d8a4..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthsouth.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 8)"><path d="m6 0-6 5.98h4v2.02 2h-4l6 6 6-6h-4v-2-2.02h4zm0 1.414 3.586 3.567h-2.586v2.52 3.499h2.586l-3.586 3.586-3.586-3.586h2.586v-3.499-2.52h-2.586z" fill="%COLOR-ACCENT%"/><path d="m7 7.5v-2.52h2.586l-3.586-3.566-3.586 3.566h2.586v2.52 3.5h-2.586l3.586 3.586 3.586-3.586h-2.586z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwest.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwest.svg
deleted file mode 100644
index e63d340d07..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwest.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 11)"><path d="m0 0v8.485l2.829-2.829 4.951 4.949 2.827-2.827-4.95-4.949 2.829-2.829z" fill="%COLOR-ACCENT%"/><path d="m7.779 9.191-4.951-4.949-1.828 1.828v-5.071h5.071l-1.829 1.829 4.951 4.949z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwestsoutheast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwestsoutheast.svg
deleted file mode 100644
index 7a7344072c..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizenorthwestsoutheast.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(9 9)"><path d="m4.257 7.087 4.072 4.068-2.829 2.828 8.473-.013.013-8.47-2.841 2.842-4.075-4.068-1.414-1.415 2.844-2.842h-8.486v8.484l2.829-2.827z" fill="%COLOR-ACCENT%"/><path d="m5.317 6.733 4.427 4.424-1.828 1.828 5.056-.016.014-5.054-1.842 1.841-4.428-4.422-2.474-2.475 1.844-1.843h-5.073v5.071l1.83-1.828z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeright.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeright.svg
deleted file mode 100644
index 0ecdb87383..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeright.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 8)"><path d="m.001 0v16h3.98v-6.006h1.059v3.467l5.961-5.473-5.961-5.461v3.478h-1.059v-6.005z" fill="%COLOR-ACCENT%"/><path d="m3 14.98v-6h3.02v2.261l3.32-3.252-3.32-3.223v2.253h-3.02v-5.999h-1.98v13.96z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouth.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouth.svg
deleted file mode 100644
index 4e1b4afccd..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouth.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="none" transform="translate(10 10)"><polygon fill="%COLOR-ACCENT%" points="4.001 .001 4 7 0 7 5.999 13.001 12 7 8 7 8 .001"/><polygon fill="#000" points="7 1 7 8 9.586 8 6 11.586 2.414 8 5 8 5.001 1"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesoutheast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesoutheast.svg
deleted file mode 100644
index 70714856df..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesoutheast.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 11)"><path d="m.395 3.22 4.948 4.952-2.828 2.828h8.486v-8.486l-2.83 2.829-4.948-4.951z" fill="%COLOR-ACCENT%"/><path d="m3.223 1.807 4.949 4.95 1.828-1.829v5.072h-5.07l1.828-1.829-4.949-4.95z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouthwest.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouthwest.svg
deleted file mode 100644
index 2d6a7a592a..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizesouthwest.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(11 11)"><path d="m2.829 5.343-2.828-2.829-.001 8.485 8.485.001-2.827-2.828 4.949-4.951-2.826-2.826z" fill="%COLOR-ACCENT%"/><path d="m9.192 3.221-4.949 4.95 1.828 1.829-5.071-.001v-5.071l1.829 1.829 4.951-4.948z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeup.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeup.svg
deleted file mode 100644
index c070a46909..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeup.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(8 10)"><path d="m2.527 6.961h3.478v1.058h-6.005v3.981h16v-3.981h-6.006v-1.058h3.467l-5.473-5.962z" fill="%COLOR-ACCENT%"/><path d="m15 9.02h-6v-3.039h2.24l-3.251-3.321-3.223 3.321h2.254v3.039h-6v1.96h13.98z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeupdown.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizeupdown.svg
deleted file mode 100644
index db422fbbfa..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizeupdown.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(8 7)"><path d="m7.988 0-5.461 5.962h3.478v1.038h-6.005v.019 3.942.02h6.005v1.058h-3.466l5.472 5.961 5.462-5.961h-3.478v-1.058h6.005v-3.981h-6.006v-1.038h3.467z" fill="%COLOR-ACCENT%"/><path d="m14.961 8.02h-5.981v-3.039h2.26l-3.251-3.32-3.223 3.32h2.254v3.039h-5.98-.02v1.96h.02 6v3.04h-2.28l3.251 3.32 3.223-3.32h-2.253v-3.04h5.98.02v-1.96z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizewest.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizewest.svg
deleted file mode 100644
index 19734d70ec..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizewest.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(10 10)"><path d="m0 6 5.999 6.001.001-4.001h7v-3.996l-7-.002v-4.002z" fill="%COLOR-ACCENT%"/><path d="m12 7h-7v2.587l-3.586-3.587 3.586-3.585v2.586l7 .003z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/resizewesteast.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/resizewesteast.svg
deleted file mode 100644
index 6e9b574c07..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/resizewesteast.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" transform="translate(8 10)"><path d="m0 6.9907v.005l5.997 5.996.001-3.999h1.999 2.02v4l5.98-6.001-5.98-5.999.001 4.019-2.021.002h-2l.001-4.022zm1.411.003 3.587-3.588-.001 2.587h3.5 2.521v-2.585l3.565 3.586-3.564 3.585-.001-2.585h-2.521l-3.499-.001-.001 2.586z" fill="%COLOR-ACCENT%"/><path d="m8.497 7.993h2.521v2.586l3.565-3.586-3.565-3.585v2.605h-2.521-3.5v-2.607l-3.586 3.587 3.586 3.586v-2.587z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/textcursor.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/textcursor.svg
deleted file mode 100644
index 435dff9e1e..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/textcursor.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><path d="m6.12306605-.48331676c.43304536-.02942018.89723494-.01586641 1.23506765.01110645l.09836607 2.00031187c-.52088553-.02633116-.86402421-.03615261-1.16297111-.01823278-.57216322.1246759-.83397559.26379885-1.13476879.47262866-.20678677.14251521-.54543639.60542479-.68837291.9244994v4.53970853h.998v1.984h-.998v3.57686113c.14285978.3186299.48159131.7805976.69278827.9256073.28177652.1964385.52739561.3374074.74486623.4121252.92617851.1117241.86141186.0439655 1.38886347.0608526l.24148845 1.9771822c-.63869922.0316331-1.03914186.0381475-1.41606129.0122618-.31198863-.0214264-.57343006-.0643378-.77405544-.129216-.41684626-.1296585-.85258908-.3604995-1.32295099-.6884424-.16852556-.1156905-.3571101-.2906327-.54285865-.4981462-.17040902.2017941-.33955796.3725205-.48392771.4855461-.40405946.3138676-.86631905.544191-1.35971316.6990619-.21164232.068207-.47249574.1108318-.78353769.1322303-.43450358.0298922-.90002831.0163041-1.23810501-.010835l-.09691742-2.0002571c.51770616.0263348.86168069.0362399 1.16109487.0181487.6186734-.1394818.87678125-.2519735 1.08726671-.4154673.19712987-.1543365.58456002-.6802379.70170954-.9838289l.01232275-3.57368433h-1.00027293v-1.984h1.002v-4.53315423c-.13203427-.30699537-.51655024-.83390163-.71128328-.98567507-.2013222-.15578504-.43877755-.27368925-.70166256-.36109174-.92774648-.11104657-.86334532-.04378063-1.3908609-.06035307l-.24301648-1.97729129c.64057546-.03160079 1.04058994-.03810767 1.41699023-.01249118.31067274.02114331.57118123.06339129.7795926.13006754.50016024.15848101.96025701.38783055 1.36565801.70154178.14340254.11176212.31252725.28238091.4832615.48453047.18451625-.20650555.37147758-.38041205.53791304-.49511426.47467546-.32956039.90822271-.55967002 1.31895768-.68980909.21133301-.06776711.4720386-.11004715.78312925-.13118199z" fill-rule="evenodd" stroke="%COLOR-ACCENT%" stroke-linejoin="round" transform="translate(13 8)"/></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/textcursorvertical.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/textcursorvertical.svg
deleted file mode 100644
index bddf998b44..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/textcursorvertical.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><path d="m11.123066-4.48331676c.4330454-.02942018.897235-.01586641 1.2350677.01110645l.0983661 2.00031187c-.5208856-.02633116-.8640242-.03615261-1.1629711-.01823278-.5721633.1246759-.8339756.26379885-1.1347688.47262866-.2067868.14251521-.54543642.60542479-.68837294.9244994v4.53970853h.99800004v1.984h-.99800004v3.5768611c.14285978.31862996.48159131.78059759.69278824.92560737.2817766.19643846.5273956.33740736.7448663.41212516.9261785.1117241.8614118.0439655 1.3888634.0608526l.2414885 1.9771822c-.6386992.0316331-1.0391419.0381475-1.4160613.0122618-.3119886-.0214264-.5734301-.0643378-.7740554-.129216-.41684631-.1296585-.85258913-.3604995-1.32295104-.6884424-.16852556-.1156905-.3571101-.2906327-.54285865-.4981462-.17040902.2017941-.33955796.3725205-.48392771.4855461-.40405946.3138676-.86631905.544191-1.35971316.6990619-.21164232.068207-.47249574.1108318-.78353769.1322303-.43450358.0298922-.90002831.0163041-1.23810501-.010835l-.09691742-2.0002571c.51770616.0263348.86168069.0362399 1.16109487.0181487.6186734-.1394818.87678125-.2519735 1.08726671-.41546726.19712987-.15433655.58456002-.68023797.70170954-.98382894l.01232275-3.57368433h-1.00027293v-1.984h1.002v-4.53315423c-.13203427-.30699537-.51655024-.83390163-.71128328-.98567507-.2013222-.15578504-.43877755-.27368925-.70166256-.36109174-.92774648-.11104657-.86334533-.04378063-1.3908609-.06035307l-.24301648-1.97729129c.64057546-.03160079 1.04058994-.03810766 1.41699023-.01249117.31067274.0211433.57118123.06339128.7795926.13006753.50016024.15848101.96025701.38783055 1.36565801.70154178.14340254.11176212.31252725.28238091.4832615.48453047.18451625-.20650555.37147758-.38041205.53791304-.49511426.47467546-.32956039.90822271-.55967002 1.31895768-.68980909.211333-.06776711.4720386-.11004715.7831292-.13118199z" fill-rule="evenodd" stroke="%COLOR-ACCENT%" stroke-linejoin="round" transform="matrix(0 -1 1 0 12.1 23.976)"/></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/zoomin.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/zoomin.svg
deleted file mode 100644
index 7f53747f7c..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/zoomin.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 8)"><path d="m11.5 6c0 3.038-2.462 5.5-5.5 5.5s-5.5-2.462-5.5-5.5 2.462-5.5 5.5-5.5 5.5 2.462 5.5 5.5" fill="%COLOR-ACCENT%"/><path d="m15.9999 14.586-1.414 1.414-5.10915001-5.10915c-.98080594.6984179-2.18073805 1.10915-3.47674999 1.10915-3.31414237 0-6-2.68585763-6-6s2.68585763-6 6-6 6 2.68585763 6 6c0 1.29606339-.4107647 2.49603933-1.1092332 3.4768668zm-9.9999-13.586c2.76185763 0 5 2.23814237 5 5s-2.23814237 5-5 5-5-2.23814237-5-5 2.23814237-5 5-5zm1 2h-2v2h-2v1.98h2v2.02h2v-2.02h2v-1.98h-2z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/cursor-svg/zoomout.svg b/js/app/packages/app/component/custom-cursor/cursor-svg/zoomout.svg
deleted file mode 100644
index 0daeac4189..0000000000
--- a/js/app/packages/app/component/custom-cursor/cursor-svg/zoomout.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(8 8)"><path d="m11.5 6c0 3.038-2.462 5.5-5.5 5.5s-5.5-2.462-5.5-5.5 2.462-5.5 5.5-5.5 5.5 2.462 5.5 5.5" fill="%COLOR-ACCENT%"/><path d="m15.9999 14.586-1.414 1.414-5.10915001-5.10915c-.98080594.6984179-2.18073805 1.10915-3.47674999 1.10915-3.31414237 0-6-2.68585763-6-6s2.68585763-6 6-6 6 2.68585763 6 6c0 1.29606339-.4107647 2.49603933-1.1092332 3.4768668zm-9.9999-13.586c2.76185763 0 5 2.23814237 5 5s-2.23814237 5-5 5-5-2.23814237-5-5 2.23814237-5 5-5zm3 4h-6v1.98h6z" fill="#000"/></g></svg>
\ No newline at end of file
diff --git a/js/app/packages/app/component/custom-cursor/custom-cursor.css b/js/app/packages/app/component/custom-cursor/custom-cursor.css
deleted file mode 100644
index fa38885ec7..0000000000
--- a/js/app/packages/app/component/custom-cursor/custom-cursor.css
+++ /dev/null
@@ -1,89 +0,0 @@
-/* This sheet is imported into base layer in index.css and during runtime injected into shadowRoot style element */
-
-:root {
- /* custom cursor fallback */
- --cursor-auto: auto;
- --cursor-default: default;
- --cursor-none: none;
- --cursor-context-menu: context-menu;
- --cursor-help: help;
- --cursor-pointer: pointer;
- --cursor-progress: progress;
- --cursor-wait: wait;
- --cursor-cell: cell;
- --cursor-crosshair: crosshair;
- --cursor-text: text;
- --cursor-vertical-text: vertical-text;
- --cursor-alias: alias;
- --cursor-copy: copy;
- --cursor-move: move;
- --cursor-no-drop: no-drop;
- --cursor-not-allowed: not-allowed;
- --cursor-grab: grab;
- --cursor-grabbing: grabbing;
- --cursor-all-scroll: all-scroll;
- --cursor-col-resize: col-resize;
- --cursor-row-resize: row-resize;
- --cursor-n-resize: n-resize;
- --cursor-s-resize: s-resize;
- --cursor-e-resize: e-resize;
- --cursor-w-resize: w-resize;
- --cursor-ne-resize: ne-resize;
- --cursor-nw-resize: nw-resize;
- --cursor-se-resize: se-resize;
- --cursor-sw-resize: sw-resize;
- --cursor-ew-resize: ew-resize;
- --cursor-ns-resize: ns-resize;
- --cursor-nesw-resize: nesw-resize;
- --cursor-nwse-resize: nwse-resize;
- --cursor-zoom-in: zoom-in;
- --cursor-zoom-out: zoom-out;
-}
-
-a[href] {
- cursor: var(--cursor-pointer);
-}
-button,
-[role="button"] {
- cursor: var(--cursor-default);
-}
-summary {
- cursor: var(--cursor-pointer);
-} /* collapsible <details> */
-label {
- cursor: var(--cursor-pointer);
-} /* when linked to a control */
-input[type="button"],
-input[type="submit"],
-input[type="reset"] {
- cursor: var(--cursor-pointer);
-}
-select {
- cursor: var(--cursor-pointer);
-}
-option {
- cursor: var(--cursor-pointer);
-} /* some browsers */
-optgroup {
- cursor: var(--cursor-pointer);
-}
-
-input[type=text],
-input:not([type]), /* default type="text" */
-input[type=password],
-input[type=search],
-input[type=email],
-input[type=tel],
-input[type=url],
-input[type=number], /* on the text area, not the spin box */
-textarea,
-[contenteditable] {
- cursor: var(--cursor-text);
-}
-
-button:disabled,
-input:disabled,
-select:disabled,
-textarea:disabled {
- cursor: var(--cursor-not-allowed);
-}
diff --git a/js/app/packages/app/component/custom-cursor/custom-cursor.ts b/js/app/packages/app/component/custom-cursor/custom-cursor.ts
deleted file mode 100644
index 18b7878f3d..0000000000
--- a/js/app/packages/app/component/custom-cursor/custom-cursor.ts
+++ /dev/null
@@ -1,518 +0,0 @@
-import {
- ENABLE_CUSTOM_CURSOR,
- ENABLE_CUSTOM_CURSOR_TEXT_GLYPH_DETECTION,
-} from '@core/constant/featureFlags';
-import { isMobile } from '@solid-primitives/platform';
-import { throttle } from '@solid-primitives/scheduled';
-import {
- createEffect,
- createRoot,
- createSignal,
- createUniqueId,
-} from 'solid-js';
-import { themeReactive } from '../../../block-theme/signals/themeReactive';
-import busySvgRaw from './cursor-svg/busy.svg?raw';
-import cellSvgRaw from './cursor-svg/cell.svg?raw';
-import contextualmenuSvgRaw from './cursor-svg/contextualmenu.svg?raw';
-import copySvgRaw from './cursor-svg/copy.svg?raw';
-import crossSvgRaw from './cursor-svg/cross.svg?raw';
-import defaultSvgRaw from './cursor-svg/default.svg?raw';
-import handgrabbingSvgRaw from './cursor-svg/handgrabbing.svg?raw';
-import handopenSvgRaw from './cursor-svg/handopen.svg?raw';
-import handpointingSvgRaw from './cursor-svg/handpointing.svg?raw';
-import helpSvgRaw from './cursor-svg/help.svg?raw';
-// Import cursor SVGs as raw text so we can replace white fills with accent color
-import aliasSvgRaw from './cursor-svg/makealias.svg?raw';
-import moveSvgRaw from './cursor-svg/move.svg?raw';
-import notallowedSvgRaw from './cursor-svg/notallowed.svg?raw';
-// import resizedownSvgRaw from './cursor-svg/resizedown.svg?raw';
-import resizeeastSvgRaw from './cursor-svg/resizeeast.svg?raw';
-// import resizeleftSvgRaw from './cursor-svg/resizeleft.svg?raw';
-import resizeleftrightSvgRaw from './cursor-svg/resizeleftright.svg?raw';
-import resizenorthSvgRaw from './cursor-svg/resizenorth.svg?raw';
-import resizenortheastSvgRaw from './cursor-svg/resizenortheast.svg?raw';
-import resizenortheastsouthwestSvgRaw from './cursor-svg/resizenortheastsouthwest.svg?raw';
-import resizenorthsouthSvgRaw from './cursor-svg/resizenorthsouth.svg?raw';
-import resizenorthwestSvgRaw from './cursor-svg/resizenorthwest.svg?raw';
-// import resizenorthwestsoutheastSvgRaw from './cursor-svg/resizenorthwestsoutheast.svg?raw';
-// import resizerightSvgRaw from './cursor-svg/resizeright.svg?raw';
-import resizesouthSvgRaw from './cursor-svg/resizesouth.svg?raw';
-import resizesoutheastSvgRaw from './cursor-svg/resizesoutheast.svg?raw';
-import resizesouthwestSvgRaw from './cursor-svg/resizesouthwest.svg?raw';
-// import resizeupSvgRaw from './cursor-svg/resizeup.svg?raw';
-import resizeupdownSvgRaw from './cursor-svg/resizeupdown.svg?raw';
-import resizewestSvgRaw from './cursor-svg/resizewest.svg?raw';
-import resizewesteastSvgRaw from './cursor-svg/resizewesteast.svg?raw';
-import textcursorSvgRaw from './cursor-svg/textcursor.svg?raw';
-import textcursorverticalSvgRaw from './cursor-svg/textcursorvertical.svg?raw';
-import zoominSvgRaw from './cursor-svg/zoomin.svg?raw';
-import zoomoutSvgRaw from './cursor-svg/zoomout.svg?raw';
-import customCursorCSSFileRaw from './custom-cursor.css?raw';
-
-let defaultCursor: string = '';
-let hexColor: string = '';
-let cursorCache: Record<string, string> = {};
-let _currentCursorType: string | null = 'auto';
-const styleElements = new Set<HTMLStyleElement>();
-
-export const [customCursorEnabled, setCustomCursorEnabled] = createSignal(true);
-
-// Extract fallback cursor from custom cursor string (e.g., 'url(...) 11 9, auto' -> 'auto')
-function extractFallbackCursor(cursor: string): string {
- // If cursor is a custom cursor (starts with 'url('), extract the fallback
- if (cursor.trim().startsWith('url(')) {
- // Pattern: url(...) <hotspot>, <fallback>
- // Extract everything after the last comma
- const lastCommaIndex = cursor.lastIndexOf(',');
- if (lastCommaIndex !== -1) {
- const fallback = cursor.substring(lastCommaIndex + 1).trim();
- return fallback || cursor;
- }
- }
- return cursor;
-}
-
-// Recursively find element at point, traversing into shadow roots
-function deepElementFromPoint(
- x: number,
- y: number,
- root: Document | ShadowRoot = document
-): Element | null {
- const el = root.elementFromPoint(x, y);
- if (!el) return null;
-
- if (el.shadowRoot) {
- const deeper = deepElementFromPoint(x, y, el.shadowRoot);
- return deeper || el;
- }
-
- return el;
-}
-
-// Get all text nodes from an element
-function getTextNodes(el: Element): Text[] {
- const nodes: Text[] = [];
- const tw = document.createTreeWalker(el, NodeFilter.SHOW_TEXT, {
- acceptNode(node: Node) {
- return (node.nodeValue?.trim().length ?? 0) > 0
- ? NodeFilter.FILTER_ACCEPT
- : NodeFilter.FILTER_REJECT;
- },
- });
-
- let n: Node | null;
- // biome-ignore lint/suspicious/noAssignInExpressions: <explanation_for_suppression>
- while ((n = tw.nextNode())) {
- nodes.push(n as Text);
- }
- return nodes;
-}
-
-// Check if a point is within a text node's bounding rects
-function isPointInTextLine(textNode: Text, x: number, y: number): boolean {
- const range = document.createRange();
- range.setStart(textNode, 0);
- range.setEnd(textNode, textNode.length);
-
- const rects = range.getClientRects();
- for (const r of rects) {
- if (y >= r.top && y <= r.bottom && x >= r.left && x <= r.right) {
- return true;
- }
- }
- return false;
-}
-
-// Detect if mouse is over text glyph (I-beam cursor)
-function isOverTextGlyph(clientX: number, clientY: number): boolean {
- const node = deepElementFromPoint(clientX, clientY);
- if (!node) return false;
-
- const textNodes = getTextNodes(node);
- if (!textNodes.length) return false;
-
- const isOverText = textNodes.some((tn) =>
- isPointInTextLine(tn, clientX, clientY)
- );
- return isOverText;
-}
-
-// Convert CSS color (oklch/rgb/etc) to hex using canvas
-function getHexColor(cssColor: string): string {
- if (!cssColor) return '';
-
- const canvas = document.createElement('canvas');
- canvas.width = canvas.height = 1;
- const ctx = canvas.getContext('2d');
- if (!ctx) return '';
-
- ctx.fillStyle = cssColor;
- ctx.fillRect(0, 0, 1, 1);
- const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data;
- return '#' + [r, g, b].map((x) => x.toString(16).padStart(2, '0')).join('');
-}
-
-function replaceColorAttrWithAccent(
- svgContent: string,
- accentHex: string
-): string {
- if (!accentHex) return svgContent;
- return svgContent.replace(/%COLOR-ACCENT%/gi, accentHex);
-}
-
-// Convert SVG string to data URL cursor CSS
-function svgToCursor(
- svgContent: string,
- fallback: string,
- position: string = '11 9'
-): string {
- const encodedSvg = encodeURIComponent(svgContent);
- return `url('data:image/svg+xml;utf8,${encodedSvg}') ${position}, ${fallback}`;
-}
-
-// Map of cursor states to SVG raw content and fallback cursor
-const cursorSvgMap: Record<
- string,
- { svg: string; fallback: string; position: string }
-> = {
- // general cursors
- auto: { svg: defaultSvgRaw, fallback: 'auto', position: '11 9' },
- default: { svg: defaultSvgRaw, fallback: 'default', position: '11 9' }, // Will be set dynamically
- none: { svg: '', fallback: 'none', position: '11 9' },
- // link and status cursors
- 'context-menu': {
- svg: contextualmenuSvgRaw,
- fallback: 'context-menu',
- position: '11 9',
- },
- help: { svg: helpSvgRaw, fallback: 'help', position: '11 9' },
- pointer: { svg: handpointingSvgRaw, fallback: 'pointer', position: '11 9' },
- progress: { svg: busySvgRaw, fallback: 'progress', position: '11 9' },
- wait: { svg: busySvgRaw, fallback: 'wait', position: '11 9' },
- // selection cursors
- cell: { svg: cellSvgRaw, fallback: 'cell', position: '11 9' },
- crosshair: { svg: crossSvgRaw, fallback: 'crosshair', position: '11 9' },
- text: { svg: textcursorSvgRaw, fallback: 'text', position: '16 16' },
- 'vertical-text': {
- svg: textcursorverticalSvgRaw,
- fallback: 'vertical-text',
- position: '11 9',
- },
- // drag-and-drop cursors
- alias: { svg: aliasSvgRaw, fallback: 'alias', position: '11 9' },
- copy: { svg: copySvgRaw, fallback: 'copy', position: '11 9' },
- move: { svg: moveSvgRaw, fallback: 'move', position: '11 9' },
- 'no-drop': { svg: notallowedSvgRaw, fallback: 'no-drop', position: '8 0' },
- 'not-allowed': {
- svg: notallowedSvgRaw,
- fallback: 'not-allowed',
- position: '8 0',
- },
- grab: { svg: handopenSvgRaw, fallback: 'grab', position: '11 9' },
- grabbing: { svg: handgrabbingSvgRaw, fallback: 'grabbing', position: '11 9' },
- // resizing and scrolling cursors
- 'all-scroll': { svg: moveSvgRaw, fallback: 'all-scroll', position: '11 9' },
- 'col-resize': {
- svg: resizeleftrightSvgRaw,
- fallback: 'col-resize',
- position: '16 16',
- },
- 'row-resize': {
- svg: resizeupdownSvgRaw,
- fallback: 'row-resize',
- position: '11 9',
- },
- 'n-resize': {
- svg: resizenorthSvgRaw,
- fallback: 'n-resize',
- position: '11 9',
- },
- 's-resize': {
- svg: resizesouthSvgRaw,
- fallback: 's-resize',
- position: '11 9',
- },
- 'e-resize': { svg: resizeeastSvgRaw, fallback: 'e-resize', position: '11 9' },
- 'w-resize': { svg: resizewestSvgRaw, fallback: 'w-resize', position: '11 9' },
- 'ns-resize': {
- svg: resizenorthsouthSvgRaw,
- fallback: 'ns-resize',
- position: '11 9',
- },
- 'ew-resize': {
- svg: resizewesteastSvgRaw,
- fallback: 'ew-resize',
- position: '11 9',
- },
- 'ne-resize': {
- svg: resizenortheastSvgRaw,
- fallback: 'ne-resize',
- position: '11 9',
- },
- 'nw-resize': {
- svg: resizenorthwestSvgRaw,
- fallback: 'nw-resize',
- position: '11 9',
- },
- 'se-resize': {
- svg: resizesoutheastSvgRaw,
- fallback: 'se-resize',
- position: '11 9',
- },
- 'sw-resize': {
- svg: resizesouthwestSvgRaw,
- fallback: 'sw-resize',
- position: '11 9',
- },
- 'nesw-resize': {
- svg: resizenortheastsouthwestSvgRaw,
- fallback: 'nesw-resize',
- position: '11 9',
- },
- // zooming cursors
- 'zoom-in': { svg: zoominSvgRaw, fallback: 'zoom-in', position: '11 9' },
- 'zoom-out': { svg: zoomoutSvgRaw, fallback: 'zoom-out', position: '11 9' },
-};
-
-// Map of cursor states to custom cursor URLs (dynamically generated)
-const cursorMap: Record<string, string> = {};
-
-// Get cursor CSS for a given cursor type
-function getCursor(cursorType: string): string {
- const cursorDef = cursorSvgMap[cursorType];
- if (!cursorDef) return cursorMap.default || '';
-
- if (!cursorDef.svg) {
- // For auto, none, all-scroll - return empty or fallback
- if (cursorType === 'auto') return cursorMap.default || '';
- if (cursorType === 'none') return 'none';
- return '';
- }
-
- // Check cache first
- const cacheKey = `${cursorType}-${hexColor}`;
- if (cursorCache[cacheKey]) {
- return cursorCache[cacheKey];
- }
-
- // Process SVG: replace white fills with accent color
- let processedSvg = cursorDef.svg;
- if (hexColor) {
- processedSvg = replaceColorAttrWithAccent(processedSvg, hexColor);
- }
-
- // Convert to cursor CSS
- const cursorCss = svgToCursor(
- processedSvg,
- cursorDef.fallback,
- cursorDef.position
- );
- cursorCache[cacheKey] = cursorCss;
- return cursorCss;
-}
-
-const cursorClassPrefix = createUniqueId();
-const getCursorClassFromKey = (key: string) => {
- return `${cursorClassPrefix}-${key}`;
-};
-const _allCustomCursorClasses = Object.keys(cursorSvgMap).map((key) =>
- getCursorClassFromKey(key)
-);
-
-function generateCustomCursorStyleTextContent(isRoot?: boolean) {
- let styleTextContent = !isRoot ? customCursorCSSFileRaw : '';
- styleTextContent += `html { cursor: ${getCursor('auto')} }`;
- styleTextContent += `:root { `;
- styleTextContent += Object.keys(cursorSvgMap)
- .map((key) => {
- return `
- --cursor-${key}: ${getCursor(key)};
- `;
- })
- .join('');
- styleTextContent += ` }`;
- styleTextContent += Object.keys(cursorSvgMap)
- .map((key) => {
- return `
- .${getCursorClassFromKey(key)} {
- cursor: ${getCursor(key)};
- }`;
- })
- .join('');
- return styleTextContent;
-}
-function createCustomCursorStylesheetEl(
- element: HTMLElement | ShadowRoot,
- isRoot?: boolean
-) {
- const styleEl = document.createElement('style');
- if (isRoot) {
- rootStyleSheet = styleEl;
- }
- styleElements.add(styleEl);
- styleEl.textContent = generateCustomCursorStyleTextContent(isRoot);
- element.appendChild(styleEl);
-}
-
-function updateAllCustomCursorStylesheetEls() {
- styleElements.forEach((styleEl) => {
- if (!styleEl.isConnected) {
- styleElements.delete(styleEl);
- return;
- }
- const isRoot = styleEl === rootStyleSheet;
- styleEl.textContent = generateCustomCursorStyleTextContent(isRoot);
- });
-}
-
-const clearAllCustomCursorStylesheetEls = () => {
- styleElements.forEach((styleEl) => {
- styleEl.textContent = '';
- });
-};
-
-function updateCursor() {
- updateCustomCursor();
- updateAllCustomCursorStylesheetEls();
-}
-
-function updateCustomCursor() {
- const { l, c, h } = themeReactive.a0;
- const col = `oklch(${l[0]()} ${c[0]()} ${h[0]()}deg)`;
-
- const accentColor = col;
- if (!accentColor) {
- defaultCursor = '';
- hexColor = '';
- cursorCache = {}; // Clear cache when accent color is removed
- cursorMap.default = '';
- return;
- }
-
- // Convert CSS color to hex
- const newHexColor = getHexColor(accentColor);
-
- // If hex color changed, clear cache and update
- if (newHexColor !== hexColor) {
- hexColor = newHexColor;
- cursorCache = {}; // Clear cache when accent color changes
- }
-
- // Use the default cursor SVG with accent color for white fill
- const svgContent = `<svg height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(10 7)"><path id="outline" d="m6.148 18.473 1.863-1.003 1.615-.839-2.568-4.816h4.332l-11.379-11.408v16.015l3.316-3.221z" fill="${hexColor}"/><path d="m6.431 17 1.765-.941-2.775-5.202h3.604l-8.025-8.043v11.188l2.53-2.442z" fill="#000"/></g></svg>`;
- const encodedSvg = encodeURIComponent(svgContent);
- // Hot spot is at the tip of the cursor pointer, accounting for the translate(10 7) transform
- defaultCursor = `url('data:image/svg+xml;utf8,${encodedSvg}') 11 9, auto`;
- cursorMap.default = defaultCursor;
-}
-
-const textNodeMap = new WeakMap<Element, (e: MouseEvent) => void>();
-
-let rootStyleSheet!: HTMLStyleElement;
-// Initialize cursor
-function initCursor() {
- if (!ENABLE_CUSTOM_CURSOR) return;
-
- if (isMobile) return;
- updateCustomCursor();
-
- const isRoot = true;
- createCustomCursorStylesheetEl(document.head, isRoot);
- const holdsDirectTextNode = (target: HTMLElement) => {
- const childNodes = target.childNodes;
-
- for (let i = 0; i < childNodes.length; i++) {
- const node = childNodes[i];
-
- if (node.nodeValue && node.nodeName === '#text') return true;
- }
-
- return false;
- };
-
- const ifTextNodeThenAddMouseMoveToTarget = (target: HTMLElement) => {
- if (!holdsDirectTextNode(target)) return;
-
- const onMouseMove =
- textNodeMap.get(target) ||
- ((e: MouseEvent) => {
- // left mouse held down, such as dragging column or scrollbar
- if (e.buttons === 1) {
- return;
- }
-
- if (!customCursorEnabled()) {
- return;
- }
-
- const computedStyle = getComputedStyle(e.target as HTMLElement);
- const currentTarget = e.currentTarget as HTMLElement;
- const cursor = extractFallbackCursor(computedStyle.cursor);
-
- if (computedStyle.userSelect === 'none') {
- currentTarget.removeEventListener('mousemove', onMouseMove);
- return;
- }
- if (cursor !== 'auto' && cursor !== 'text') {
- currentTarget.removeEventListener('mousemove', onMouseMove);
- return;
- }
-
- if (isOverTextGlyph(e.clientX, e.clientY)) {
- currentTarget.classList.add(getCursorClassFromKey('text'));
- } else {
- target.classList.remove(getCursorClassFromKey('text'));
- }
- });
- textNodeMap.set(target, onMouseMove);
- target.addEventListener('mousemove', onMouseMove, { passive: true });
- };
-
- // Add mouseover listener to handle text glyph detection
- // The mouseover event should be computationally cheap, just checks if node has as text nodes
- // If it does then that node adds mousemove event that determines the boundary box of the text glyph, that could be expensive
- const onMouseOver = (e: MouseEvent) => {
- if (!customCursorEnabled()) {
- return;
- }
-
- const target = e.target as HTMLElement;
-
- if (target.shadowRoot) {
- createCustomCursorStylesheetEl(target.shadowRoot);
-
- [...target.shadowRoot.children].forEach((child) => {
- ifTextNodeThenAddMouseMoveToTarget(child as HTMLElement);
- child.addEventListener('mouseover', onMouseOver, { passive: true });
- });
- return;
- }
- ifTextNodeThenAddMouseMoveToTarget(target);
- };
-
- if (ENABLE_CUSTOM_CURSOR_TEXT_GLYPH_DETECTION) {
- document.addEventListener('mouseover', onMouseOver, { passive: true });
- }
-}
-
-if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', initCursor);
-} else {
- initCursor();
-}
-
-createRoot(() => {
- if (!ENABLE_CUSTOM_CURSOR) return;
-
- const throttledUpdateCursor = throttle(updateCursor, 250);
-
- createEffect(() => {
- const { l, c, h } = themeReactive.a0;
- const _col = `oklch(${l[0]()} ${c[0]()} ${h[0]()}deg)`;
- if (!customCursorEnabled()) {
- clearAllCustomCursorStylesheetEls();
- return;
- }
- throttledUpdateCursor();
- });
-});
diff --git a/js/app/packages/app/component/custom-cursor/vite-plugin-cursor-override.ts b/js/app/packages/app/component/custom-cursor/vite-plugin-cursor-override.ts
deleted file mode 100644
index 153092af31..0000000000
--- a/js/app/packages/app/component/custom-cursor/vite-plugin-cursor-override.ts
+++ /dev/null
@@ -1,133 +0,0 @@
-import type { Plugin } from 'vite';
-
-/**
- * Vite plugin that transforms cursor declarations to use CSS variables
- *
- * Transforms: cursor: grab; → cursor: var(--cursor-grab, grab);
- *
- * Runs after lightningcss processes CSS, so it works with lightningcss transformer
- */
-
-// List of all standard cursor values that should be transformed
-const cursorValues = new Set([
- 'auto',
- 'default',
- 'none',
- 'context-menu',
- 'help',
- 'pointer',
- 'progress',
- 'wait',
- 'cell',
- 'crosshair',
- 'text',
- 'vertical-text',
- 'alias',
- 'copy',
- 'move',
- 'no-drop',
- 'not-allowed',
- 'grab',
- 'grabbing',
- 'all-scroll',
- 'col-resize',
- 'row-resize',
- 'n-resize',
- 's-resize',
- 'e-resize',
- 'w-resize',
- 'ne-resize',
- 'nw-resize',
- 'se-resize',
- 'sw-resize',
- 'ew-resize',
- 'ns-resize',
- 'nesw-resize',
- 'nwse-resize',
- 'zoom-in',
- 'zoom-out',
-]);
-
-/**
- * Transform a cursor value to use CSS variable if it's a standard cursor value
- */
-function transformCursorValue(value: string): string {
- // Skip if already using CSS variables
- if (value.includes('var(')) {
- return value;
- }
-
- // Skip complex values like url(...) or other function calls
- if (value.includes('(') && !value.startsWith('var(')) {
- return value;
- }
-
- // Handle multiple cursor values (fallback chain)
- const values = value
- .split(',')
- .map((v) => v.trim())
- .filter(Boolean);
- const transformedValues = values.map((v) => {
- if (cursorValues.has(v)) {
- const varName = `--cursor-${v}`;
- return `var(${varName})`;
- }
- return v;
- });
-
- if (transformedValues.some((tv, i) => tv !== values[i])) {
- return transformedValues.join(', ');
- }
-
- return value;
-}
-
-/**
- * Transform cursor declarations in CSS content
- */
-function transformCssContent(css: string): string {
- // Match cursor declarations with !important support
- // This regex matches: cursor: <value> [ !important];
- const cursorRegex = /cursor\s*:\s*([^;!]+?)(\s+!important)?\s*;/gi;
-
- return css.replace(cursorRegex, (_match, value, important = '') => {
- const transformedValue = transformCursorValue(value.trim());
- return `cursor: ${transformedValue}${important};`;
- });
-}
-
-export function vitePluginCursorOverride(): Plugin {
- return {
- name: 'vite-plugin-cursor-override',
- enforce: 'post', // Run after lightningcss processes CSS
-
- // Transform CSS after lightningcss is done
- transform(code, id) {
- // Only process CSS files
- if (!id.match(/\.(css|scss|sass|less|styl)$/)) {
- return null;
- }
-
- // Debug: log when we process a CSS file
- if (process.env.DEBUG_CURSOR_PLUGIN) {
- console.log(`[cursor-override] Transforming CSS file: ${id}`);
- }
-
- // Transform cursor declarations
- const transformed = transformCssContent(code);
-
- // Only return if something changed
- if (transformed !== code) {
- if (process.env.DEBUG_CURSOR_PLUGIN) {
- console.log(`[cursor-override] Transformed cursor values in: ${id}`);
- }
- return {
- code: transformed,
- map: null,
- };
- }
-
- return null;
- },
- };
-}
diff --git a/js/app/packages/app/component/dock/Dock.tsx b/js/app/packages/app/component/dock/Dock.tsx
index 3b964bd691..3f8e65d84b 100644
--- a/js/app/packages/app/component/dock/Dock.tsx
+++ b/js/app/packages/app/component/dock/Dock.tsx
@@ -1,14 +1,12 @@
-import { ENABLE_DOCK_NOTITIFCATIONS, ENABLE_JACK_IN } from '@core/constant/featureFlags';
+import { ENABLE_DOCK_NOTITIFCATIONS } from '@core/constant/featureFlags';
import { GlobalNotificationBell } from '@core/component/GlobalNotificationBell';
-import { createMemo, createSignal, onCleanup, onMount, Show } from 'solid-js';
+import { Show } from 'solid-js';
import { isRightPanelOpen, useToggleRightPanel } from '@core/signal/layout';
import { useSettingsState } from '@core/constant/SettingsState';
import { useGlobalNotificationSource } from '../GlobalAppState';
-import IconPower from '@phosphor-icons/core/regular/power.svg';
import MacroCreateIcon from '@macro-icons/macro-create-b.svg';
import { globalSplitManager } from '@app/signal/splitLayout';
import { ClippedPanel } from '@core/component/ClippedPanel';
-import { PresentModeGlitch } from './PresentModeGlitch';
import { withAnalytics } from '@coparse/analytics';
import SplitIcon from '@macro-icons/new-split.svg';
import IconAI from '@macro-icons/wide/star.svg';
@@ -19,18 +17,13 @@ import { setKonsoleOpen } from '../command/state';
import { Hotkey } from '@core/component/Hotkey';
import { setCreateMenuOpen } from '../Launcher';
import { useHasPaidAccess } from '@core/auth';
-import { isTauri } from '@core/util/platform';
import { TOKENS } from '@core/hotkey/tokens';
-import { playSound } from '@app/util/sound';
import { QuickAccess } from './QuickAccess';
import { Button } from '@ui/components/Button';
import { LabelAndHotKey } from '@core/component/Tooltip';
import { isMobile } from '@core/mobile/isMobile';
export function Dock() {
- const activeSplitId = createMemo(() => globalSplitManager()?.activeSplitId());
- const [showGlitchEffect, setShowGlitchEffect] = createSignal(false);
- const [isPresentMode, setIsPresentMode] = createSignal(false);
const notificationSource = useGlobalNotificationSource();
const isRightPanelCollapsed = () => !isRightPanelOpen();
// const [debugOpen, setDebugOpen] = createSignal(false);
@@ -39,72 +32,6 @@ export function Dock() {
const { settingsOpen, toggleSettings } = useSettingsState();
const hasPaid = useHasPaidAccess();
- async function enterPresentMode() {
- try {
- playSound('Stab_Destruct');
- const element = document.documentElement;
- if (element.requestFullscreen) { await element.requestFullscreen() }
- else if ((element as any).webkitRequestFullscreen) { await (element as any).webkitRequestFullscreen() }// Safari
- else if ((element as any).mozRequestFullScreen) { await (element as any).mozRequestFullScreen() }// Firefox
- else if ((element as any).msRequestFullscreen) { await (element as any).msRequestFullscreen() }// IE/Edge
- focusActiveSplit();
- }
- catch (error) {
- console.error('Error entering present mode:', error);
- }
- };
-
- async function exitPresentMode() {
- try {
- if (document.exitFullscreen) { await document.exitFullscreen() }
- else if ((document as any).webkitExitFullscreen) { await (document as any).webkitExitFullscreen() }// Safari
- else if ((document as any).mozCancelFullScreen) { await (document as any).mozCancelFullScreen() }// Firefox
- else if ((document as any).msExitFullscreen) { await (document as any).msExitFullscreen() }// IE/Edge
- focusActiveSplit();
- }
- catch (error) {
- console.error('Error exiting present mode:', error);
- }
- };
-
- async function focusActiveSplit() {
- const id = activeSplitId();
- if (!id) return null;
- const splitEl = document.querySelector(`[data-split-id="${id}"]`) as HTMLElement;
- splitEl?.focus();
- };
-
- function togglePresentMode() {
- if (isPresentMode()) {
- exitPresentMode();
- setShowGlitchEffect(false);
- }
- else {
- setShowGlitchEffect(true); // Show glitch effect before entering fullscreen
- setTimeout(() => { enterPresentMode() }, 200); // Enter fullscreen after a brief delay to let glitch start
- }
- };
-
- // Check if we're in fullscreen
- function checkFullscreen() {
- const isFullscreen = document.fullscreenElement || (document as any).webkitFullscreenElement || (document as any).mozFullScreenElement || (document as any).msFullscreenElement;
- setIsPresentMode(!!isFullscreen);
- };
-
- // Listen for fullscreen changes
- onMount(() => {
- const events = ['fullscreenchange', 'webkitfullscreenchange', 'mozfullscreenchange', 'MSFullscreenChange'];
-
- events.forEach((event) => { document.addEventListener(event, checkFullscreen) });
- const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape' && isPresentMode()) { exitPresentMode() } };
- document.addEventListener('keydown', handleKeyDown);
-
- onCleanup(() => {
- events.forEach((event) => { document.removeEventListener(event, checkFullscreen) });
- document.removeEventListener('keydown', handleKeyDown);
- });
- });
-
return (
<>
<style>{`
@@ -304,19 +231,6 @@ export function Dock() {
</Button>
</div>
- <Show when={ENABLE_JACK_IN && !isTauri()}>
- <Button
- tooltip={isPresentMode() ? 'Exit Present Mode' : 'Enter Present Mode'}
- onClick={togglePresentMode}
- class="p-1 size-6"
- classList={{
- "bg-accent/20 text-accent": isPresentMode(),
- }}
- >
- <IconPower />
- </Button>
- </Show>
-
<Button
tooltip={<LabelAndHotKey label={settingsOpen() ? 'Close Settings' : 'Open Settings'} hotkeyToken={TOKENS.global.toggleSettings} />}
onClick={() => { toggleSettings() }}
@@ -332,14 +246,6 @@ export function Dock() {
</ClippedPanel>
</div>
- <Show when={ENABLE_JACK_IN}>
-
- <PresentModeGlitch
- show={showGlitchEffect()}
- onComplete={() => setShowGlitchEffect(false)}
- />
- </Show>
-
{/*<Show when={DEV_MODE_ENV}>
<Debug/>
</Show>*/}
diff --git a/js/app/packages/app/component/settings/Appearance.tsx b/js/app/packages/app/component/settings/Appearance.tsx
index 17372fab93..404b228baa 100644
--- a/js/app/packages/app/component/settings/Appearance.tsx
+++ b/js/app/packages/app/component/settings/Appearance.tsx
@@ -1,15 +1,9 @@
-// import { customCursorEnabled, setCustomCursorEnabled } from '../custom-cursor/custom-cursor';
import { ThemeEditorAdvanced } from '../../../block-theme/components/ThemeEditorAdvanced';
import { ThemeEditorBasic } from '../../../block-theme/components/ThemeEditorBasic';
-// import { ENABLE_CUSTOM_CURSOR, ENABLE_SOUND } from '@core/constant/featureFlags';
-// import { ToggleSwitch } from '@core/component/FormControls/ToggleSwitch';
-// import { ComputeTokens } from '../../../block-theme/ComputeTokens';
import ThemeTools from '../../../block-theme/components/ThemeTools';
import ThemeList from '../../../block-theme/components/ThemeList';
export function Appearance() {
- // const [cursorEnabled, setCursorEnabled] = createSignal(customCursorEnabled());
-
return (
<div
class="absolute inset-0 overflow-hidden bg-edge-muted @container gap-px grid grid-cols-1 grid-rows-[min-content_min-content_1fr_1fr] @[650px]:grid-cols-2 @[650px]:grid-rows-[min-content_min-content_1fr] touch:mobile-width:flex"
@@ -18,27 +12,6 @@ export function Appearance() {
<div class="touch:mobile-width:hidden @[650px]:col-span-2"><ThemeEditorBasic /></div>
<div class="touch:mobile-width:flex-1 overflow-hidden"><ThemeList/></div>
<div class="touch:mobile-width:hidden overflow-hidden"><ThemeEditorAdvanced /></div>
-
- {/*<Show when={ENABLE_CUSTOM_CURSOR}>
- <div
- style={{
- 'justify-content': 'space-between',
- 'font-family': 'var(--font-mono)',
- border: '1px solid var(--b4)',
- 'box-sizing': 'border-box',
- 'align-items': 'center',
- padding: '12px 20px',
- 'font-size': '14px',
- display: 'flex',
- }}
- >
- <span>Themed cursor</span>
- <ToggleSwitch
- checked={cursorEnabled()}
- onChange={(enabled) => setCursorEnabled(enabled)}
- />
- </div>
- </Show>*/}
</div>
);
}
diff --git a/js/app/packages/app/component/settings/Organization/OrganizationSettings/OrganizationSettings.tsx b/js/app/packages/app/component/settings/Organization/OrganizationSettings/OrganizationSettings.tsx
index ef058f0f7a..d0d0b74468 100644
--- a/js/app/packages/app/component/settings/Organization/OrganizationSettings/OrganizationSettings.tsx
+++ b/js/app/packages/app/component/settings/Organization/OrganizationSettings/OrganizationSettings.tsx
@@ -1,4 +1,3 @@
-import { ENABLE_ORG_SETTING_DEFAULT_SHARE } from '@core/constant/featureFlags';
import ArrowDown from '@icon/regular/arrow-down.svg';
import Close from '@icon/regular/x-circle.svg';
import { type JSX, Show } from 'solid-js';
@@ -36,7 +35,6 @@ const OrganizationSettings = () => {
const {
orgSettings,
loading,
- changeSharePermissions,
// changePublicAccessLevel,
changeRetentionDays,
updateRetentionDays,
@@ -54,29 +52,6 @@ const OrganizationSettings = () => {
</Show>
}
/>
- <Show when={ENABLE_ORG_SETTING_DEFAULT_SHARE}>
- <Row
- text="Default Share Permissions"
- subtext="This setting determines the default sharing permissions applied to new documents created within the system."
- component={
- <Show when={!loading()}>
- <div class="flex items-center relative min-w-20 hover:bg-hover hover-transition-bg rounded-lg transition">
- <select
- class="cursor-default min-w-28 w-auto bg-transparent appearance-none text-xs border-none text-ink pl-2 pr-4 py-1"
- onChange={changeSharePermissions}
- value={orgSettings.default_share_permission.toLowerCase()}
- >
- <option value="public">Public</option>
- <option value="private">Private</option>
- <option value="organization">Organization</option>
- </select>
- <ArrowDown class="w-5 h-5 pr-2 pointer-events-none absolute right-0" />
- </div>
- </Show>
- }
- />
- </Show>
-
<Row
text="Document Retention"
subtext="This setting determines the number of days documents are retained in the system."
diff --git a/js/app/packages/app/component/settings/Organization/OrganizationSettings/useOrganizationSettings.ts b/js/app/packages/app/component/settings/Organization/OrganizationSettings/useOrganizationSettings.ts
index f6631f4a13..3c66974c52 100644
--- a/js/app/packages/app/component/settings/Organization/OrganizationSettings/useOrganizationSettings.ts
+++ b/js/app/packages/app/component/settings/Organization/OrganizationSettings/useOrganizationSettings.ts
@@ -30,27 +30,6 @@ const useOrganizationSettings = createSingletonRoot(() => {
setLoading(false);
});
- const changeSharePermissions = async (e: Event) => {
- const target = e.target as HTMLSelectElement;
- if (!target) return;
- const share_type = target.value as 'public' | 'private' | 'organization';
-
- try {
- const data =
- await organizationServiceClient.updateSharePermissions(share_type);
- if (isErr(data)) {
- throw new Error('Failed to update share permissions');
- }
- setStore('default_share_permission', share_type);
- track(TrackingEvents.ORGANIZATION.SETTINGS.PERMISSIONS, {
- plubic: target.value === 'public',
- });
- } catch (e) {
- console.error(e);
- return;
- }
- };
-
// const changePublicAccessLevel = async (e: Event) => {
// const target = e.target as HTMLSelectElement;
// if (!target) return;
@@ -132,7 +111,6 @@ const useOrganizationSettings = createSingletonRoot(() => {
return {
orgSettings: store,
loading,
- changeSharePermissions,
// changePublicAccessLevel,
changeRetentionDays,
updateRetentionDays,
diff --git a/js/app/packages/app/component/split-layout/components/SplitTabs.tsx b/js/app/packages/app/component/split-layout/components/SplitTabs.tsx
index 637ff1e29f..3a19ebb24d 100644
--- a/js/app/packages/app/component/split-layout/components/SplitTabs.tsx
+++ b/js/app/packages/app/component/split-layout/components/SplitTabs.tsx
@@ -1,4 +1,3 @@
-import { playSound } from '@app/util/sound';
import { TOKENS } from '@core/hotkey/tokens';
import type { ViewId } from '@core/types/view';
import { Tabs } from '@kobalte/core';
@@ -95,16 +94,6 @@ export function SplitTabs(props: {
updateClipIndicators();
});
- // Play sound when tab changes
- let previousActive: ViewId | undefined;
- createEffect(() => {
- const currentActive = props.active();
- if (previousActive !== undefined && previousActive !== currentActive) {
- playSound('open');
- }
- previousActive = currentActive;
- });
-
return (
<div class="touch:mobile-width:hidden relative isolate h-full shrink grow-2 @container-normal">
{/* Left clip boundary indicator */}
diff --git a/js/app/packages/app/index.css b/js/app/packages/app/index.css
index 8bb968a616..7d7a393a1c 100644
--- a/js/app/packages/app/index.css
+++ b/js/app/packages/app/index.css
@@ -6,12 +6,6 @@
/* Legacy PDF viewer stackingContext stuff. Should be deprecated. */
@plugin '../../tailwind-plugins/zIndex.ts';
-/* custom cursor */
-/* must be imported inside base layer to prevent tag element default properties overriding TW cursor utility */
-@layer base {
- @import "./component/custom-cursor/custom-cursor.css";
-}
-
@property --a0l { syntax: "<number>"; inherits: false; initial-value: 0.88; }
@property --a0c { syntax: "<number>"; inherits: false; initial-value: 0.20; }
@property --a0h { syntax: "<angle>"; inherits: false; initial-value: 145deg; }
diff --git a/js/app/packages/app/index.tsx b/js/app/packages/app/index.tsx
index 8026f88f9a..add2813f2c 100644
--- a/js/app/packages/app/index.tsx
+++ b/js/app/packages/app/index.tsx
@@ -28,8 +28,6 @@ if (isTauri()) {
});
}
-import './component/custom-cursor/custom-cursor';
-
initializeLexical();
const renderApp = () => {
diff --git a/js/app/packages/app/util/docxTemplate.ts b/js/app/packages/app/util/docxTemplate.ts
deleted file mode 100644
index 0159da3bda..0000000000
--- a/js/app/packages/app/util/docxTemplate.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { platformFetch } from 'core/util/platformFetch';
-
-async function loadDocumentTemplate(): Promise<File | undefined> {
- try {
- // Using Vite's import.meta.url to get the correct path resolution
- const response = await platformFetch(
- new URL('../asset/blank.docx', import.meta.url)
- );
-
- if (!response.ok) {
- console.error('Failed to load document template:', response.statusText);
- }
-
- return new File([await response.blob()], 'New Document.docx', {
- type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
- });
- } catch (error) {
- console.error('Error loading document template:', error);
- }
- return;
-}
-
-export const docxTemplate = () => loadDocumentTemplate();
diff --git a/js/app/packages/app/util/getUtmParams.ts b/js/app/packages/app/util/getUtmParams.ts
deleted file mode 100644
index 9ce3ab78a4..0000000000
--- a/js/app/packages/app/util/getUtmParams.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-export const getUtmParams = (): Record<string, string> => {
- // Helper to parse document.cookie string into an object.
- const parseCookies = (cookieString: string): Record<string, string> =>
- cookieString.split('; ').reduce(
- (acc, cookie) => {
- // Use the first '=' as the separator.
- const separatorIndex = cookie.indexOf('=');
- if (separatorIndex === -1) return acc;
- const key = cookie.substring(0, separatorIndex);
- const value = cookie.substring(separatorIndex + 1);
- acc[key] = value;
- return acc;
- },
- {} as Record<string, string>
- );
-
- let cookies: Record<string, string> = {};
- try {
- cookies = parseCookies(document.cookie);
- } catch (error) {
- console.error('Error parsing cookies:', error);
- return {};
- }
-
- const marketingKeys = [
- 'rdt_cid',
- 'gclid',
- 'twclid',
- 'utm_source',
- 'utm_medium',
- 'utm_campaign',
- 'utm_term',
- 'utm_content',
- '_fbc',
- '_fbp',
- ];
-
- const utmObj: Record<string, string> = {};
- marketingKeys.forEach((key) => {
- if (key in cookies && cookies[key]) {
- utmObj[key] = cookies[key];
- }
- });
-
- return utmObj;
-};
diff --git a/js/app/packages/app/util/sound.ts b/js/app/packages/app/util/sound.ts
deleted file mode 100644
index 3090bc137e..0000000000
--- a/js/app/packages/app/util/sound.ts
+++ /dev/null
@@ -1,123 +0,0 @@
-/**
- * Sound utility for playing UI sounds
- * Caches Audio objects to avoid reloading
- */
-
-import { getSoundEffectsEnabled, getSoundEffectsVolume } from './soundSettings';
-
-const soundCache = new Map<string, HTMLAudioElement>();
-const _DEFAULT_VOLUME = 0.3;
-
-// Update cached audio volumes when preference changes
-if (typeof window !== 'undefined') {
- window.addEventListener('sound-preference-changed', () => {
- const newVolume = getSoundEffectsVolume();
- soundCache.forEach((audio) => {
- audio.volume = newVolume;
- });
- });
-}
-
-/**
- * Normalize BASE_URL to always end with a trailing slash
- */
-function getBasePath(): string {
- const base = import.meta.env.BASE_URL;
- return base.endsWith('/') ? base : `${base}/`;
-}
-
-/**
- * Get the sound file path, trying .wav first, then .mp3
- * @param name - The name of the sound file (without extension)
- */
-function _getSoundPath(name: string): string {
- // Try .wav first, then fallback to .mp3
- // This allows both formats to work seamlessly
- // Use BASE_URL to respect Vite's base path configuration
- const base = getBasePath();
- return `${base}sounds/${name}.wav`;
-}
-
-/**
- * Play a sound by name
- * @param name - The name of the sound file (without extension)
- * @param volume - Optional volume (0-1), defaults to user preference or 0.3
- */
-export function playSound(name: string, volume?: number): void {
- // Check if sound effects are enabled
- if (!getSoundEffectsEnabled()) {
- return;
- }
-
- // Use user preference volume if not specified, otherwise use provided volume
- const finalVolume = volume ?? getSoundEffectsVolume();
- // Get or create audio element
- let audio = soundCache.get(name);
-
- if (!audio) {
- // Try .wav first, fallback to .mp3 if needed
- // Use BASE_URL to respect Vite's base path configuration
- const base = getBasePath();
- const wavPath = `${base}sounds/${name}.wav`;
- const mp3Path = `${base}sounds/${name}.mp3`;
-
- // Create audio element - try .wav first
- audio = new Audio(wavPath);
- audio.volume = finalVolume;
- audio.preload = 'auto';
-
- // Handle errors gracefully - try mp3 fallback if .wav fails
- const errorHandler = () => {
- // If .wav fails, try .mp3
- const fallbackAudio = new Audio(mp3Path);
- fallbackAudio.volume = finalVolume;
- fallbackAudio.preload = 'auto';
-
- fallbackAudio.addEventListener('error', () => {
- console.warn(
- `Failed to load sound: ${name} (tried both .wav and .mp3)`
- );
- });
-
- // Replace the cached audio with the fallback
- soundCache.set(name, fallbackAudio);
- };
-
- audio.addEventListener('error', errorHandler, { once: true });
- soundCache.set(name, audio);
- }
-
- // Reset to beginning and play
- audio.currentTime = 0;
- audio.volume = finalVolume;
-
- // Play with error handling
- audio.play().catch((error) => {
- // Ignore play() errors (e.g., user hasn't interacted with page yet)
- if (error.name !== 'NotAllowedError') {
- console.warn(`Failed to play sound: ${name}`, error);
- }
- });
-}
-
-/**
- * Preload a sound file
- * @param name - The name of the sound file (without extension)
- */
-export function preloadSound(name: string): void {
- if (soundCache.has(name)) {
- return;
- }
-
- // Use BASE_URL to respect Vite's base path configuration
- const base = getBasePath();
- const audio = new Audio(`${base}sounds/${name}.wav`);
- audio.preload = 'auto';
- audio.addEventListener('error', () => {
- // Fallback to mp3
- const fallbackAudio = new Audio(`${base}sounds/${name}.mp3`);
- fallbackAudio.preload = 'auto';
- soundCache.set(name, fallbackAudio);
- });
- soundCache.set(name, audio);
-}
diff --git a/js/app/packages/app/util/soundHover.ts b/js/app/packages/app/util/soundHover.ts
deleted file mode 100644
index e6c1ee337d..0000000000
--- a/js/app/packages/app/util/soundHover.ts
+++ /dev/null
@@ -1,117 +0,0 @@
-/**
- * Global hover sound system
- * Detects hover events on elements with a `sound` attribute and plays sounds
- */
-
-import { onCleanup, onMount } from 'solid-js';
-import { playSound } from './sound';
-
-let hoverListenerAttached = false;
-let lastHoveredElement: Element | null = null;
-let lastHoveredY: number | null = null;
-let hoverTimeout: ReturnType<typeof setTimeout> | null = null;
-
-/**
- * Initialize the global sound hover listener
- * Should be called once when the app mounts
- */
-export function useSoundHover(): void {
- if (hoverListenerAttached) {
- return;
- }
-
- const handleMouseOver = (event: MouseEvent) => {
- const target = event.target as Element;
- if (!target) return;
-
- // Find the closest element with a sound attribute
- const soundElement = target.closest('[sound]');
-
- if (!soundElement) {
- // Clear hover state if we moved away from a sound element
- if (lastHoveredElement) {
- lastHoveredElement = null;
- lastHoveredY = null;
- if (hoverTimeout) {
- clearTimeout(hoverTimeout);
- hoverTimeout = null;
- }
- }
- return;
- }
-
- // If we're already hovering over this element, don't play again
- if (soundElement === lastHoveredElement) {
- return;
- }
-
- // Clear any pending timeout
- if (hoverTimeout) {
- clearTimeout(hoverTimeout);
- hoverTimeout = null;
- }
-
- // Get the sound name from the attribute
- const soundName = soundElement.getAttribute('sound');
- if (!soundName) return;
-
- // Determine sound based on vertical direction
- const currentY = event.clientY;
- let soundToPlay = soundName;
-
- if (lastHoveredY !== null && lastHoveredElement) {
- // Determine direction: if moving down (Y increases), play "down", if moving up (Y decreases), play "up"
- if (currentY > lastHoveredY) {
- soundToPlay = 'down';
- } else if (currentY < lastHoveredY) {
- soundToPlay = 'up';
- }
- // If Y is the same, use the original sound name
- }
-
- // Update last hovered element and position
- lastHoveredElement = soundElement;
- lastHoveredY = currentY;
-
- // Small debounce to prevent rapid playback when moving between child elements
- hoverTimeout = setTimeout(() => {
- playSound(soundToPlay);
- hoverTimeout = null;
- }, 50);
- };
-
- const handleMouseOut = (event: MouseEvent) => {
- const target = event.target as Element;
- if (!target) return;
-
- // Check if we're leaving a sound element
- const soundElement = target.closest('[sound]');
- if (!soundElement && lastHoveredElement) {
- // Clear hover state
- lastHoveredElement = null;
- lastHoveredY = null;
- if (hoverTimeout) {
- clearTimeout(hoverTimeout);
- hoverTimeout = null;
- }
- }
- };
-
- onMount(() => {
- hoverListenerAttached = true;
- document.addEventListener('mouseover', handleMouseOver, { passive: true });
- document.addEventListener('mouseout', handleMouseOut, { passive: true });
- });
-
- onCleanup(() => {
- hoverListenerAttached = false;
- document.removeEventListener('mouseover', handleMouseOver);
- document.removeEventListener('mouseout', handleMouseOut);
- if (hoverTimeout) {
- clearTimeout(hoverTimeout);
- hoverTimeout = null;
- }
- lastHoveredElement = null;
- lastHoveredY = null;
- });
-}
diff --git a/js/app/packages/app/util/soundSettings.ts b/js/app/packages/app/util/soundSettings.ts
deleted file mode 100644
index 374a9a7d82..0000000000
--- a/js/app/packages/app/util/soundSettings.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { ENABLE_SOUND } from '@core/constant/featureFlags';
-
-const SOUND_ENABLED_KEY = 'sound-effects-enabled';
-const SOUND_VOLUME_KEY = 'sound-effects-volume';
-
-const DEFAULT_ENABLED = true;
-const DEFAULT_VOLUME = 0.5; // 50%
-
-export function getSoundEffectsEnabled(): boolean {
- if (!ENABLE_SOUND) return false;
- const stored = localStorage.getItem(SOUND_ENABLED_KEY);
- return stored === null ? DEFAULT_ENABLED : stored === 'true';
-}
-
-export function setSoundEffectsEnabled(enabled: boolean) {
- localStorage.setItem(SOUND_ENABLED_KEY, String(enabled));
- // Dispatch event to notify sound code of preference change
- window.dispatchEvent(new CustomEvent('sound-preference-changed'));
-}
-
-export function getSoundEffectsVolume(): number {
- const stored = localStorage.getItem(SOUND_VOLUME_KEY);
- if (stored === null) return DEFAULT_VOLUME;
- const volume = parseFloat(stored);
- // Clamp between 0 and 1
- return isNaN(volume) ? DEFAULT_VOLUME : Math.max(0, Math.min(1, volume));
-}
-
-export function setSoundEffectsVolume(volume: number) {
- // Clamp between 0 and 1
- const clampedVolume = Math.max(0, Math.min(1, volume));
- localStorage.setItem(SOUND_VOLUME_KEY, String(clampedVolume));
- // Dispatch event to notify sound code of preference change
- window.dispatchEvent(new CustomEvent('sound-preference-changed'));
-}
diff --git a/js/app/packages/block-md/component/RewritePopup.tsx b/js/app/packages/block-md/component/RewritePopup.tsx
deleted file mode 100644
index d3df8eb787..0000000000
--- a/js/app/packages/block-md/component/RewritePopup.tsx
+++ /dev/null
@@ -1,179 +0,0 @@
-// import { rewriteMarkdown } from '@block-md/signal/rewriteSignal';
-// import { createBlockSignal, useBlockId } from '@core/block';
-// import { Dialog } from '@kobalte/core/dialog';
-// import { RadioGroup } from '@kobalte/core/radio-group';
-// import { createEffect, createSignal, For, Show } from 'solid-js';
-
-// export const rewritePopupOpenSignal = createBlockSignal<boolean>(false);
-
-// export function RewritePopup() {
-// const [rewritePopupOpen, setRewritePopupOpen] = rewritePopupOpenSignal;
-// const [input, setInput] = createSignal<string>('');
-// const [inputRef, setInputRef] = createSignal<HTMLTextAreaElement | undefined>(
-// undefined
-// );
-
-// const REWRITE_OPTIONS = new Map([
-// [
-// 'CUSTOM',
-// {
-// label: 'Custom',
-// description:
-// "Provide specific instructions for how you'd like your text transformed.",
-// },
-// ],
-// [
-// 'SPELLING_GRAMMAR',
-// {
-// label: 'Check Spelling & Grammar',
-// description:
-// 'Correct errors in spelling, grammar, and punctuation for error-free text.',
-// },
-// ],
-// [
-// 'SIMPLIFY_CLARIFY',
-// {
-// label: 'Simplify & Clarify',
-// description:
-// 'Reduce complexity, eliminate jargon, and improve readability for wider audiences.',
-// },
-// ],
-// [
-// 'PROFESSIONAL_POLISH',
-// {
-// label: 'Professional Polish',
-// description:
-// 'Enhance business-appropriate language, structure, and tone for workplace communication.',
-// },
-// ],
-// ]);
-
-// const [selectedOption, setSelectedOption] = createSignal<string>(
-// Array.from(REWRITE_OPTIONS.keys())[0]
-// );
-
-// const handleRewrite = () => {
-// setRewritePopupOpen(false);
-
-// const option = selectedOption();
-// let rewriteInstructions = '';
-// if (option === 'CUSTOM') {
-// const _input = input();
-// if (!_input) {
-// return;
-// }
-// rewriteInstructions = _input;
-// } else {
-// const description = REWRITE_OPTIONS.get(option)?.description;
-// if (!description) {
-// return;
-// }
-// rewriteInstructions = description;
-// }
-
-// rewriteMarkdown({ input: rewriteInstructions });
-// };
-
-// createEffect(() => {
-// const isOpen = rewritePopupOpen();
-// if (isOpen) {
-// inputRef()?.focus();
-// setInput('');
-// setSelectedOption(Array.from(REWRITE_OPTIONS.keys())[0]);
-// }
-// });
-
-// return (
-// <Dialog open={rewritePopupOpen()} onOpenChange={setRewritePopupOpen}>
-// <Dialog.Overlay class="fixed flex inset-0 bg-modal-overlay items-center justify-center z-modal-overlay portal-scope">
-// <Dialog.Content class="w-[440px] text-ink max-h-[100%] my-auto overflow-y-auto z-modal-content">
-// <div class="bg-dialog w-full shadow-xl rounded-xl p-2.5 ring-1 ring-edge">
-// <div class="flex flex-col gap-2 p-2">
-// <label class="text-ink font-medium text-xl mb-1">
-// How would you like document rewritten?
-// </label>
-
-// <RadioGroup
-// value={selectedOption()}
-// onChange={setSelectedOption}
-// class="-space-y-px rounded-md bg-menu"
-// >
-// <div>
-// <For each={Array.from(REWRITE_OPTIONS.keys())}>
-// {(_option: string) => {
-// const option = REWRITE_OPTIONS.get(_option);
-// if (!option) {
-// return;
-// }
-
-// return (
-// <RadioGroup.Item
-// value={_option}
-// disabled={false}
-// onClick={() => {
-// setSelectedOption(_option);
-// }}
-// class="group relative flex cursor-pointer p-2 rounded-md focus:outline-none data-[checked]:bg-active"
-// >
-// <RadioGroup.ItemInput class="peer" />
-// <RadioGroup.ItemControl class="relative mt-0.5 h-4 w-4 shrink-0 rounded-full border border-edge bg-menu">
-// <RadioGroup.ItemIndicator class="absolute inset-0 flex items-center justify-center">
-// <div class="h-2 w-2 rounded-full bg-ink" />
-// </RadioGroup.ItemIndicator>
-// </RadioGroup.ItemControl>
-// <span class="ml-3 mr-2 flex flex-col w-full">
-// <RadioGroup.ItemLabel class="block text-sm font-medium text-ink group-data-[checked]:text-ink">
-// {option.label}
-// </RadioGroup.ItemLabel>
-// <Show
-// when={_option === 'CUSTOM'}
-// fallback={
-// <RadioGroup.ItemDescription class="block text-sm text-ink-muted group-data-[checked]:text-ink">
-// {option.description}
-// </RadioGroup.ItemDescription>
-// }
-// >
-// <textarea
-// class={`flex resize-none rounded-md w-full p-[0.35rem] my-3 text-sm h-max-[800px] overflow-hidden border-[1.5] border-edge`}
-// ref={setInputRef}
-// rows={5}
-// onSubmit={(e) => e.preventDefault()}
-// placeholder={
-// "Provide instructions for how you'd like your document revised."
-// }
-// onInput={(e) => {
-// setInput(e.currentTarget.value);
-// e.target.style.height = 'auto';
-// e.target.style.height = `${e.target.scrollHeight}px`;
-// }}
-// onKeyDown={(e) => {
-// if (e.key === 'Enter' && !e.shiftKey) {
-// e.preventDefault();
-// handleRewrite();
-// }
-// }}
-// onMouseDown={() => {
-// setSelectedOption('CUSTOM');
-// }}
-// />
-// </Show>
-// </span>
-// </RadioGroup.Item>
-// );
-// }}
-// </For>
-// </div>
-// </RadioGroup>
-// <button
-// class="bg-accent/90 text-ink rounded px-3 py-[0.375rem] text-sm mt-1 hover:bg-active hover-transition-bg transition w-[95%] mx-auto"
-// onClick={handleRewrite}
-// >
-// Rewrite Document
-// </button>
-// </div>
-// </div>
-// </Dialog.Content>
-// </Dialog.Overlay>
-// </Dialog>
-// );
-// }
diff --git a/js/app/packages/block-pdf/PdfViewer/InternalPDFViewer.ts b/js/app/packages/block-pdf/PdfViewer/InternalPDFViewer.ts
index af78b1458e..16f9c650aa 100644
--- a/js/app/packages/block-pdf/PdfViewer/InternalPDFViewer.ts
+++ b/js/app/packages/block-pdf/PdfViewer/InternalPDFViewer.ts
@@ -1,8 +1,4 @@
-import {
- ENABLE_FORM_EDITING,
- ENABLE_SCRIPTING,
- ENABLE_THUMBNAIL_VIEWER,
-} from '@core/constant/featureFlags';
+import { ENABLE_SCRIPTING } from '@core/constant/featureFlags';
import * as stackingContext from '@core/constant/stackingContext';
import { showMessageBoxSync } from '@core/util/dialog';
import debounce from 'lodash/debounce';
@@ -14,7 +10,7 @@ import {
type PDFPageView,
PDFRenderingQueue,
PDFScriptingManager,
- PDFThumbnailViewer,
+ type PDFThumbnailViewer,
TextLayerBuilder,
} from 'pdfjs-dist/web/pdf_viewer';
import { PageModel } from '../model/Page';
@@ -204,32 +200,9 @@ export class InternalPDFViewer {
* from the {@link AnnotationStorage}-instance; useful e.g. for printing.
* The default value is `AnnotationMode.ENABLE`.
*/
- annotationMode: ENABLE_FORM_EDITING
- ? AnnotationMode.ENABLE_FORMS
- : AnnotationMode.ENABLE, // lets us view but not edit forms
+ annotationMode: AnnotationMode.ENABLE,
});
- if (
- ENABLE_THUMBNAIL_VIEWER &&
- popupViewer != null &&
- this._renderingQueue != null
- ) {
- const thumbnailContainer = this.#buildThumbnailViewerContainer();
- this._thumbnailViewerContainer = thumbnailContainer;
-
- const thumbnailViewer = new PDFThumbnailViewer({
- container: thumbnailContainer,
- eventBus: this._eventBus,
- renderingQueue: this._renderingQueue,
- linkService: this._linkService,
- l10n: this._viewer.l10n,
- thumbnailWidth: DEFAULT_THUMBNAIL_WIDTH,
- });
- this._thumbnailViewer = thumbnailViewer;
-
- this._renderingQueue.setThumbnailViewer(thumbnailViewer);
- }
-
renderingQueue.setViewer(this._viewer);
linkService.setViewer(this._viewer);
scriptingManager?.setViewer(this._viewer);
@@ -407,13 +380,6 @@ export class InternalPDFViewer {
}
}
- #buildThumbnailViewerContainer(): HTMLDivElement {
- const div = document.createElement('div');
- div.className = 'pdfThumbnailViewerContainer';
-
- return div;
- }
-
#buildPopupContainer() {
const outer = document.createElement('div');
outer.className = 'pdfPopupOuter';
diff --git a/js/app/packages/block-pdf/component/DefinitionLookup/index.tsx b/js/app/packages/block-pdf/component/DefinitionLookup/index.tsx
index 1915a11fde..251beb23b5 100644
--- a/js/app/packages/block-pdf/component/DefinitionLookup/index.tsx
+++ b/js/app/packages/block-pdf/component/DefinitionLookup/index.tsx
@@ -1,4 +1,3 @@
-import { ENABLE_PINS } from '@core/constant/featureFlags';
import {
zPopupViewer,
zViewerDefinitionLookup,
@@ -10,9 +9,6 @@ import {
offset,
shift,
} from '@floating-ui/dom';
-// import TiPin from '@icon/filled/push-pin.svg';
-// import TiPinOutline from '@icon/regular/push-pin.svg';
-import TiDeleteOutline from '@icon/regular/x-circle.svg';
import { createEffect, createMemo, type JSX, onCleanup, Show } from 'solid-js';
import { createStore, produce } from 'solid-js/store';
import { styled } from 'solid-styled-components';
@@ -38,12 +34,6 @@ import { parseDefinitionMetadata } from './shared';
// import { ILocation } from '../../models/Location';
// import SectionPreview from '../SectionPreview';
-const iconStyles: JSX.CSSProperties = {
- 'margin-right': '8px',
- 'margin-top': '8px',
- cursor: 'var(--cursor-pointer)',
-};
-
const DefinitionLabelWrapper = styled.div`
margin-right: auto;
overflow: hidden;
@@ -286,94 +276,6 @@ export function DefinitionLookup(props: IProps) {
>
Uses
</TabButton>
- <div>
- {ENABLE_PINS && (
- // biome-ignore lint/complexity/noUselessFragments: fix later
- <>
- {props.isPinsWindow ? (
- // <Tooltip
- // placement={'bottom'}
- // label={'Unpin this term'}
- // small={true}
- // >
- <span class="flex">
- <TiDeleteOutline
- // onClick={() => {
- // doEdit(
- // widgetDispatch({
- // type: 'REMOVE_PINNED_TERM',
- // term: props.term,
- // })
- // );
- // }}
- style={{
- ...iconStyles,
- width: '20px',
- height: '20px',
- }}
- />
- </span>
- // </Tooltip>
- ) : (
- <div>
- {/* {pinnedTerms
- .map((t) => t.name)
- .includes(props.term.name) ? (
- // <Tooltip
- // placement={'bottom'}
- // label={'Unpin this definition'}
- // small={true}
- // >
- <span class="flex">
- <TiPin
- width="1.5em"
- height="1.5em"
- style={iconStyles}
- class="text-success"
- onClick={(e) => {
- e.stopPropagation();
- doEdit(
- widgetDispatch({
- type: 'REMOVE_PINNED_TERM',
- term: props.term,
- })
- );
- }}
- />
- </span>
- // </Tooltip>
- ) : (
- // <Tooltip
- // placement={'bottom'}
- // label={'Pin this definition'}
- // small={true}
- // >
- <span class="flex">
- <TiPinOutline
- onClick={(e) => {
- e.stopPropagation();
- doEdit(
- widgetDispatch({
- type: 'ADD_PINNED_TERM',
- term: props.term,
- index: null,
- })
- );
- }}
- style={{
- ...iconStyles,
- width: '1.5em',
- height: '1.5em',
- }}
- />
- </span>
- // </Tooltip>
- )} */}
- </div>
- )}
- </>
- )}
- </div>
</div>
</div>
{state.activeTab === 'DEFINITION_TAB' ? (
diff --git a/js/app/packages/block-pdf/component/Document.tsx b/js/app/packages/block-pdf/component/Document.tsx
index a9e2fe828c..333aea22dd 100644
--- a/js/app/packages/block-pdf/component/Document.tsx
+++ b/js/app/packages/block-pdf/component/Document.tsx
@@ -18,7 +18,6 @@ import {
import { useBlockId, useIsNestedBlock } from '@core/block';
import { LoadingSpinner } from '@core/component/LoadingSpinner';
import {
- ENABLE_FORM_EDITING,
ENABLE_PDF_LOCATION_AUTOSAVE,
ENABLE_PDF_MODIFICATION_DATA_AUTOSAVE,
} from '@core/constant/featureFlags';
@@ -27,7 +26,6 @@ import { observedSize } from '@core/directive/observedSize';
import { blockElementSignal } from '@core/signal/blockElement';
import { blockMetadataSignal } from '@core/signal/load';
import { tempRedirectLocation } from '@core/signal/location';
-import { useReadOnly } from '@core/signal/permissions';
import { isInDOMRect } from '@core/util/rect';
import { createCallback } from '@solid-primitives/rootless';
import { debounce } from '@solid-primitives/scheduled';
@@ -102,7 +100,6 @@ const PDF = 72.0;
const PDF_TO_CSS_UNITS = CSS / PDF;
function InnerDocument() {
- const readOnly = useReadOnly();
const getViewer = useGetPopupContextViewer();
// attach new tab listeners
@@ -133,38 +130,6 @@ function InnerDocument() {
getViewer()?.setOverlays(overlays);
});
- // For PDF autosave we've disabled the annotation layer completely
- if (ENABLE_FORM_EDITING) {
- createEffect(() => {
- const viewer_ = getViewer();
- if (!viewer_ || !viewerReadySignal()) return;
-
- const isReadOnly = readOnly();
-
- const annotationSections = viewer_
- .container()
- .querySelectorAll('[data-annotation-id]');
-
- annotationSections.forEach((section) => {
- const inputs = section.querySelectorAll(
- 'input, textarea, select, button'
- );
-
- inputs.forEach((input) => {
- if (
- input instanceof HTMLInputElement ||
- input instanceof HTMLTextAreaElement ||
- input instanceof HTMLSelectElement ||
- input instanceof HTMLButtonElement
- ) {
- input.disabled = isReadOnly;
- input.style.pointerEvents = isReadOnly ? 'none' : 'auto';
- }
- });
- });
- });
- }
-
const isPopup = useIsPopup();
if (!isPopup) {
usePdfCommentEffects();
diff --git a/js/app/packages/block-pdf/type/coParse.ts b/js/app/packages/block-pdf/type/coParse.ts
index 134d186aab..0c562af0a3 100644
--- a/js/app/packages/block-pdf/type/coParse.ts
+++ b/js/app/packages/block-pdf/type/coParse.ts
@@ -1,5 +1,4 @@
import { isThreadPlaceable } from '@block-pdf/store/comments/freeComments';
-import { ENABLE_PINS } from '@core/constant/featureFlags';
import { v7 as uuid7 } from 'uuid';
import { z } from 'zod';
import {
@@ -184,20 +183,10 @@ export const CoParseSchema: z.ZodType<ICoParse, z.ZodTypeDef, any> = z.object({
defs: z.string().optional(),
overlays: z.array(z.string()),
anomalies: z.array(TAnomalySchema).optional(),
- pinnedTermsNames: z.preprocess((data) => {
- if (!ENABLE_PINS) return undefined;
-
- // TODO: remove this when the API is fixed
- if (data === '[]' || data === '') {
- return [];
- }
-
- if (typeof data === 'string') {
- return JSON.parse(data);
- }
-
- return data;
- }, z.array(z.string()).optional()),
+ pinnedTermsNames: z.preprocess(
+ () => undefined,
+ z.array(z.string()).optional()
+ ),
documentData: TDocumentDataSchema.optional(),
});
diff --git a/js/app/packages/block-pdf/util/pdfjsUtils.ts b/js/app/packages/block-pdf/util/pdfjsUtils.ts
index 3217f720c3..caa31f19b7 100644
--- a/js/app/packages/block-pdf/util/pdfjsUtils.ts
+++ b/js/app/packages/block-pdf/util/pdfjsUtils.ts
@@ -8,27 +8,8 @@ import {
import { PageModel } from '@block-pdf/model/Page';
import type { PDFViewer } from '@block-pdf/PdfViewer';
import type { ThreadPayload } from '@block-pdf/type/comments';
-// import {
-// type Annotation,
-// AnnotationFlag,
-// AnnotationType,
-// type QuadCoord,
-// type Rect,
-// } from '@block-pdf/type/pdfJs';
-// import type { TextItem } from 'pdfjs-dist/types/src/display/api';
import { v7 as uuid7 } from 'uuid';
-// const MARGIN_Y_PERCENT = 0.12;
-// const MARGIN_Y_MIN = 4;
-// const MARGIN_X = 1;
-// const PARTIAL_MARGIN_LEFT = 3;
-// const PARTIAL_MARGIN_RIGHT = 0;
-
-// type TextRect = TextItem & {
-// rawStr: [string, number][];
-// rect: Rect;
-// };
-
// Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
// For coordinate systems whose origin lies in the bottom-left, this
// means normalization to (BL,TR) ordering. For systems with origin in the
@@ -48,77 +29,6 @@ export function normalizeRect<
return r;
}
-// function intersect_compare(a: number, b: number) {
-// return a - b;
-// }
-
-// function intersects(rect1: Rect, rect2: Rect): boolean {
-// // Order points along the axes
-// const orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(
-// intersect_compare
-// );
-// const orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(
-// intersect_compare
-// );
-//
-// return (
-// // X: first and second points belong to different rectangles?
-// ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
-// (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) &&
-// // Y: first and second points belong to different rectangles?
-// ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
-// (orderedY[0] === rect2[1] && orderedY[1] === rect1[1]))
-// );
-// }
-
-// function quadToRect(quad: QuadCoord): Rect {
-// const x = quad.map((q) => q.x);
-// const y = quad.map((q) => q.y);
-// return [Math.min(...x), Math.min(...y), Math.max(...x), Math.max(...y)];
-// }
-
-// function rectContainsY(container: Rect, target: Rect): boolean {
-// const MARGIN_Y = Math.max(
-// MARGIN_Y_MIN,
-// (container[3] - container[1]) * MARGIN_Y_PERCENT
-// );
-// return (
-// container[1] - MARGIN_Y <= target[1] && container[3] + MARGIN_Y >= target[3]
-// );
-// }
-
-// function rectContainsX(container: Rect, target: Rect): boolean {
-// return (
-// container[0] - MARGIN_X <= target[0] && container[2] + MARGIN_X >= target[2]
-// );
-// }
-
-// function rectContains(container: Rect, target: Rect) {
-// return rectContainsX(container, target) && rectContainsY(container, target);
-// }
-
-// function extractPartialText(annotRect: Rect, textRect: TextRect) {
-// const str: string[] = [];
-// const x1 = annotRect[0];
-// const x2 = annotRect[2];
-// const { rawStr, rect, width } = textRect;
-// if (rawStr == null || rawStr.length === 0) return '';
-//
-// // The scale dim isn't correctly reported from pdf.js
-// const xScale = width / rawStr[rawStr.length - 1][1];
-// const x1Offset = rawStr[0][1];
-// const x2Offset = rect[0];
-// for (let [glyph, g_x1] of rawStr) {
-// // The glyph advance (g_x1) is the right side of the character
-// const g_x2 = g_x1 * xScale + x2Offset;
-// if (g_x2 + PARTIAL_MARGIN_RIGHT >= x2) break;
-// if (g_x2 - x1Offset + PARTIAL_MARGIN_LEFT >= x1) {
-// str.push(glyph);
-// }
-// }
-// return str.join('');
-// }
-
function domRectContains(container: DOMRect, target: DOMRect) {
return (
container.top <= target.top &&
@@ -425,153 +335,6 @@ function rangeToHighlightByPageIndex(
return pages;
}
-// export function highlightsFromPDFjs({
-// pageIndex,
-// pageViewport,
-// textContent,
-// annotations,
-// }: {
-// pageIndex: number;
-// pageViewport: WH;
-// textContent: TextContent;
-// annotations: Annotation[];
-// }): Highlight[] {
-// const { height, width } = pageViewport;
-// const pageRect = normalizeRect([0, 0, width, height]);
-//
-// const results: Highlight[] = [];
-// const textRects: TextRect[] = (textContent.items as TextItem[]).map(
-// (text) => {
-// const x = text.transform[4];
-// const y = text.transform[5];
-// return {
-// ...text,
-// rect: normalizeRect([x, y, x + text.width, y + text.height]),
-// } as TextRect;
-// }
-// );
-//
-// // Organize all highlight threads
-// let threads: Array<Thread> = new Array<Thread>();
-// for (let annot of annotations) {
-// if (
-// (annot.annotationType !== AnnotationType.HIGHLIGHT &&
-// annot.annotationType !== AnnotationType.UNDERLINE &&
-// annot.annotationType !== AnnotationType.STRIKEOUT) ||
-// annot.inReplyTo != null ||
-// !annot.contentsObj?.str
-// )
-// continue;
-// let newThread = new Thread(annot.id, pageIndex);
-// newThread.isResolved = annot.annotationFlags === AnnotationFlag.HIDDEN;
-// let editDate: Date = reformatPdfjsDate(
-// annot.modificationDate,
-// annot.creationDate
-// );
-// newThread.comments.push({
-// id: annot.id,
-// sender: annot.titleObj?.str ?? '',
-// content: annot.contentsObj.str,
-// editDate,
-// });
-// threads.push(newThread);
-// }
-// for (let annot of annotations) {
-// if (!annot.contentsObj?.str) continue;
-// const index = threads.findIndex((t) => t.headID === annot.inReplyTo);
-// if (index > -1) {
-// let editDate: Date = reformatPdfjsDate(
-// annot.modificationDate,
-// annot.creationDate
-// );
-// threads[index].comments.push({
-// id: annot.id,
-// sender: annot.titleObj?.str ?? '',
-// content: annot.contentsObj.str,
-// editDate,
-// });
-// }
-// }
-//
-// for (let annot of annotations) {
-// if (
-// (annot.annotationType !== AnnotationType.HIGHLIGHT &&
-// annot.annotationType !== AnnotationType.UNDERLINE &&
-// annot.annotationType !== AnnotationType.STRIKEOUT) ||
-// annot.inReplyTo != null
-// )
-// continue;
-// if (annot.quadPoints == null || annot.quadPoints.length === 0) continue;
-//
-// let type: (typeof HighlightType)[keyof typeof HighlightType] =
-// HighlightType.HIGHLIGHT;
-// if (annot.annotationType === AnnotationType.UNDERLINE)
-// type = HighlightType.UNDERLINE;
-// if (annot.annotationType === AnnotationType.STRIKEOUT)
-// type = HighlightType.STRIKEOUT;
-//
-// const color =
-// annot.color == null
-// ? type === HighlightType.UNDERLINE
-// ? this.defaultGreen
-// : type === HighlightType.STRIKEOUT
-// ? this.defaultRed
-// : this.defaultYellow
-// : type === HighlightType.UNDERLINE || type === HighlightType.STRIKEOUT
-// ? new Color(annot.color[0], annot.color[1], annot.color[2], 1)
-// : new Color(annot.color[0], annot.color[1], annot.color[2], 0.4);
-//
-// const rects = annot.quadPoints
-// .map(quadToRect)
-// .filter((x) => rectContains(pageRect, x)); // sometimes annotations are out-of-bounds
-//
-// let thread: Thread | undefined = threads.find((t) => t.headID === annot.id);
-//
-// const str: string[] = [];
-//
-// for (let annotRect of rects) {
-// for (let textRect of textRects) {
-// if (intersects(annotRect, textRect.rect)) {
-// if (rectContains(annotRect, textRect.rect)) {
-// if (textRect.hasEOL) str.push(' ');
-// str.push(textRect.str);
-// } else if (rectContainsY(annotRect, textRect.rect)) {
-// if (textRect.hasEOL) str.push(' ');
-// str.push(extractPartialText(annotRect, textRect));
-// }
-// }
-// }
-// }
-//
-// const highlight = new Highlight({
-// uuid: uuid7(),
-// pageNum: pageIndex,
-// // highlight coordinates are expected to be relative to the page dimensions and top/left
-// rects: rects.map(
-// (rect) =>
-// new HighlightRect(
-// (height - rect[1] - (rect[3] - rect[1])) / height,
-// rect[0] / width,
-// (rect[2] - rect[0]) / width,
-// (rect[3] - rect[1]) / height
-// )
-// ),
-// pageViewport,
-// color,
-// type,
-// thread,
-// text: str
-// .join('')
-// .trim()
-// .replace(/[ ]{2,}/g, ' '),
-// });
-//
-// results.push(highlight);
-// }
-//
-// return results;
-// }
-
/** @returns Map of page index to highlights on that page */
export function getHighlightsFromSelection(
selection: Selection,
diff --git a/js/app/packages/block-project/component/Block.tsx b/js/app/packages/block-project/component/Block.tsx
index 695f242d22..e0c84b7989 100644
--- a/js/app/packages/block-project/component/Block.tsx
+++ b/js/app/packages/block-project/component/Block.tsx
@@ -4,7 +4,6 @@ import { SplitPanelContext } from '@app/component/split-layout/context';
import { useSplitPanelOrThrow } from '@app/component/split-layout/layoutUtils';
import { UnifiedListView } from '@app/component/UnifiedListView';
import { PROJECT_VIEWCONFIG_BASE } from '@app/component/ViewConfig';
-import { playSound } from '@app/util/sound';
import { getIsSpecialProject } from '@block-project/isSpecial';
import { useBlockId } from '@core/block';
import { DocumentBlockContainer } from '@core/component/DocumentBlockContainer';
@@ -111,7 +110,6 @@ const Block: Component = () => {
description: 'Toggle Preview',
hotkeyToken: TOKENS.unifiedList.togglePreview,
keyDownHandler: () => {
- playSound('open');
setPreview((prev) => !prev);
return true;
},
diff --git a/js/app/packages/block-theme/components/ComputeTokens.tsx b/js/app/packages/block-theme/components/ComputeTokens.tsx
deleted file mode 100644
index 5b8f67a3df..0000000000
--- a/js/app/packages/block-theme/components/ComputeTokens.tsx
+++ /dev/null
@@ -1,128 +0,0 @@
-// import { createEffect, createSignal, For, onMount } from 'solid-js';
-// import { computeToken } from './colorUtil';
-// import { themeUpdate } from './themeReactive';
-
-// export async function copyTokens() {
-// let tokenList: string[] = [];
-// const rootStyles = getComputedStyle(document.documentElement);
-// Object.entries(rootStyles).forEach(([_property, value]) => {
-// if (value.startsWith('--color')) {
-// tokenList.push(value);
-// }
-// });
-// tokenList.forEach((token) => {
-// token = computeToken(rootStyles.getPropertyValue(token));
-// });
-// try {
-// const jsonString = JSON.stringify(tokenList, null, 2);
-// await navigator.clipboard.writeText(jsonString);
-// } catch (err) {
-// console.error('Failed to copy: ', err);
-// }
-// }
-
-// export function ComputeTokens() {
-// const [computed, setComputed] = createSignal<Record<string, string>>({});
-// let copyRef!: HTMLInputElement;
-// let tokenList: string[] = [];
-
-// function getTokens() {
-// const rootStyles = getComputedStyle(document.documentElement);
-// Object.entries(rootStyles).forEach(([_property, value]) => {
-// if (value.startsWith('--color')) {
-// tokenList.push(value);
-// }
-// });
-// }
-
-// async function copyTokens() {
-// try {
-// const jsonString = JSON.stringify(computed(), null, 2);
-// await navigator.clipboard.writeText(jsonString);
-// copyRef.innerHTML = '&nbsp;&nbsp;copied!&nbsp;&nbsp;';
-// setTimeout(() => {
-// copyRef.innerHTML = 'copy tokens';
-// }, 500);
-// } catch (err) {
-// console.error('Failed to copy: ', err);
-// }
-// }
-
-// function computeTokens() {
-// const rootStyles = getComputedStyle(document.documentElement);
-// setComputed((prev) => {
-// tokenList.forEach((token) => {
-// prev[token] = computeToken(rootStyles.getPropertyValue(token));
-// });
-// return { ...prev };
-// });
-// console.log('compute tokens');
-// }
-
-// onMount(() => {
-// getTokens();
-// });
-
-// createEffect(() => {
-// themeUpdate();
-// computeTokens();
-// });
-
-// return (
-// <>
-// <style>{`
-// .compute-theme{
-// font-family: "Forma DJR Mono";
-// border: 1px solid var(--b4);
-// box-sizing: border-box;
-// position: relative;
-// font-size: 14px;
-// display: grid;
-// height: 100%;
-// }
-// .copy-button{
-// transform: translateX(calc(-100% - 20px));
-// background-color: var(--a0);
-// position: absolute;
-// line-height: 20px;
-// text-wrap: nowrap;
-// padding: 0px 20px;
-// user-select: none;
-// color: var(--b0);
-// cursor: var(--cursor-copy);
-// left: 100%;
-// top: 20px;
-// }
-// .compute-tokens{
-// overscroll-behavior: none;
-// box-sizing: border-box;
-// scrollbar-width: none;
-// overflow-y: scroll;
-// min-height: 0;
-// padding: 20px;
-// width: 100%;
-// }
-// .token-item{
-// margin-bottom: 8px;
-// color: var(--c0);
-// }
-// `}</style>
-
-// <div class="compute-theme">
-// <div class="copy-button" ref={copyRef} onPointerDown={copyTokens}>
-// copy tokens
-// </div>
-// <div class="compute-tokens">
-// <For each={Object.entries(computed())}>
-// {([token, value]) => (
-// <>
-// {token}: {value}
-// <br />
-// </>
-// )}
-// </For>
-// </div>
-// </div>
-// </>
-// );
-// }
diff --git a/js/app/packages/block-theme/utils/colorUtil.ts b/js/app/packages/block-theme/utils/colorUtil.ts
index a3106fa1f7..559a89a14f 100644
--- a/js/app/packages/block-theme/utils/colorUtil.ts
+++ b/js/app/packages/block-theme/utils/colorUtil.ts
@@ -1,27 +1,5 @@
import Color from 'colorjs.io';
-// const testColorDiv = document.createElement('canvas');
-// testColorDiv.style.display = 'none';
-// testColorDiv.style.height = '1px';
-// testColorDiv.style.width = '1px';
-// document.body.appendChild(testColorDiv);
-// const ctx = testColorDiv.getContext('2d')!;
-// testColorDiv.height = 1;
-// testColorDiv.width = 1;
-
-// export function computeToken(token: string) {
-// ctx.clearRect(0, 0, 1, 1);
-// ctx.fillStyle = token;
-// ctx.fillRect(0, 0, 1, 1);
-// let imageData = ctx?.getImageData(0, 0, 1, 1);
-// const color = new Color(
-// 'srgb',
-// [imageData.data[0] / 255, imageData.data[1] / 255, imageData.data[2] / 255],
-// imageData.data[3] / 255
-// );
-// return color.toString({ format: 'hex' }).substring(0, 7);
-// }
-
export function validateColor(color: string): boolean{
return CSS.supports('color', color);
}
diff --git a/js/app/packages/core/client/rewriteDiffs.ts b/js/app/packages/core/client/rewriteDiffs.ts
deleted file mode 100644
index 952353245c..0000000000
--- a/js/app/packages/core/client/rewriteDiffs.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-// import { isErr } from '@core/util/maybeResult';
-// import { cognitionApiServiceClient } from '@service-cognition/client';
-
-// type StructuredOutputSchema = {
-// type: string;
-// properties: Record<string, any>;
-// required: string[];
-// additionalProperties: boolean;
-// };
-
-// export const DiffsSchema: StructuredOutputSchema = {
-// type: 'object',
-// properties: {
-// diffs: {
-// type: 'array',
-// items: {
-// type: 'object',
-// properties: {
-// operation: {
-// type: 'string',
-// description: 'The type of operation performed in this diff',
-// enum: ['INSERT_AFTER', 'INSERT_BEFORE', 'DELETE', 'MODIFY'],
-// },
-// node_key: {
-// type: 'string',
-// description: 'Identifier for the node affected by this diff',
-// },
-// markdown_text: {
-// type: 'string',
-// description:
-// 'The text content associated with this diff. Leave empty for DELETE operations.',
-// },
-// },
-// required: ['operation', 'node_id'],
-// additionalProperties: false,
-// },
-// },
-// },
-// required: ['diffs'],
-// additionalProperties: false,
-// };
-
-// export async function rewriteDiffs<T>(prompt: string): Promise<T | undefined> {
-// const schema_name = 'diffs_schema';
-
-// let response = await cognitionApiServiceClient.getAIDiffs({
-// prompt,
-// schema: DiffsSchema,
-// schema_name,
-// });
-
-// if (isErr(response)) {
-// console.error('Error in rewrite diffs');
-// return;
-// }
-
-// const diffs = response.at(1)?.diffs;
-// if (!diffs) {
-// console.error('No content in rewrite diffs');
-// return undefined;
-// }
-
-// return diffs as T;
-// }
diff --git a/js/app/packages/core/component/AI/component/tool/MarkdownRewrite.tsx b/js/app/packages/core/component/AI/component/tool/MarkdownRewrite.tsx
deleted file mode 100644
index 11a768f02f..0000000000
--- a/js/app/packages/core/component/AI/component/tool/MarkdownRewrite.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-// MarkdownRewrite tool has been flagged off - this file is kept for reference
-// but the tool is no longer registered in the toolset.
-
-// import { useGlobalBlockOrchestrator } from '@app/component/GlobalAppState';
-// import { useSplitLayout } from '@app/component/split-layout/layout';
-// import Pencil from '@phosphor-icons/core/regular/pencil.svg';
-// import { BaseTool } from './BaseTool';
-// import { createToolRenderer } from './ToolRenderer';
-
-// const toolTargetMap: Record<string, string> = {};
-
-// export const rewriteHandler = createToolRenderer({
-// name: 'MarkdownRewrite',
-// handleCall: async (ctx) => {
-// // cringe
-// toolTargetMap[ctx.tool.id] = ctx.tool.data.markdown_file_id;
-// },
-
-// handleResponse: async (ctx) => {
-// const orchestrator = useGlobalBlockOrchestrator();
-// const targetId = toolTargetMap[ctx.tool.id];
-// delete toolTargetMap[ctx.tool.id];
-// const { insertSplit } = useSplitLayout();
-// insertSplit({ type: 'md', id: targetId });
-// const handle = await orchestrator.getBlockHandle(targetId, 'md');
-// if (!handle) {
-// return;
-// }
-// handle.setIsRewriting();
-// handle.setPatches({ patches: ctx.tool.data.diffs });
-// },
-
-// renderCall: (ctx) => (
-// <BaseTool
-// icon={Pencil}
-// text="Rewriting"
-// renderContext={ctx.renderContext}
-// type="call"
-// />
-// ),
-// renderResponse: (ctx) => (
-// <BaseTool
-// icon={Pencil}
-// text="Rewrite Complete"
-// renderContext={ctx.renderContext}
-// type="response"
-// />
-// ),
-// });
diff --git a/js/app/packages/core/component/EntityIcon.tsx b/js/app/packages/core/component/EntityIcon.tsx
index d2f2e1a2c0..9b4d3ca3bd 100644
--- a/js/app/packages/core/component/EntityIcon.tsx
+++ b/js/app/packages/core/component/EntityIcon.tsx
@@ -4,10 +4,7 @@ import {
fileTypeToBlockName,
isBlockAlias,
} from '@core/constant/allBlocks';
-import {
- USE_PIXEL_BLOCK_ICONS,
- USE_WIDE_ICONS,
-} from '@core/constant/featureFlags';
+import { USE_WIDE_ICONS } from '@core/constant/featureFlags';
import Building from '@icon/duotone/building-duotone.svg';
import Chat from '@icon/duotone/chat-duotone.svg';
import FileCode from '@icon/duotone/code-duotone.svg';
@@ -28,24 +25,6 @@ import Users from '@icon/duotone/users-duotone.svg';
import Folder from '@icon/fill/folder-simple-fill.svg';
import FolderUser from '@icon/fill/folder-user-fill.svg';
import Check from '@icon/regular/check-fat.svg';
-import PixelChat from '@macro-icons/pixel/ai.svg';
-import PixelBuilding from '@macro-icons/pixel/building.svg';
-import PixelCanvas from '@macro-icons/pixel/canvas.svg';
-import PixelChannel from '@macro-icons/pixel/channel.svg';
-import PixelCode from '@macro-icons/pixel/code.svg';
-import PixelEmail from '@macro-icons/pixel/email.svg';
-import PixelEmailRead from '@macro-icons/pixel/email-read.svg';
-import PixelFile from '@macro-icons/pixel/file.svg';
-import PixelFolder from '@macro-icons/pixel/folder-alt.svg';
-import PixelHtml from '@macro-icons/pixel/html.svg';
-import PixelImage from '@macro-icons/pixel/image.svg';
-import PixelMd from '@macro-icons/pixel/notes.svg';
-import PixelPdf from '@macro-icons/pixel/pdf.svg';
-import PixelUnknown from '@macro-icons/pixel/unknown.svg';
-import PixelUser from '@macro-icons/pixel/user.svg';
-import PixelUsers from '@macro-icons/pixel/users.svg';
-import PixelVideo from '@macro-icons/pixel/video.svg';
-import PixelWord from '@macro-icons/pixel/write.svg';
import WideBook from '@macro-icons/wide/book.svg';
import WideChannel from '@macro-icons/wide/channel.svg';
import WideChat from '@macro-icons/wide/chat.svg';
@@ -258,32 +237,6 @@ function validateEntity(entity: string): EntityWithValidIcon {
}
}
-export const PIXEL_ICONS: Record<EntityWithValidIcon, Component> = {
- canvas: PixelCanvas,
- html: PixelHtml,
- channel: PixelChannel,
- company: PixelBuilding,
- email: PixelEmail,
- code: PixelCode,
- csv: PixelCode,
- pdf: PixelPdf,
- md: PixelMd,
- image: PixelImage,
- write: PixelWord,
- chat: PixelChat,
- project: PixelFolder,
- sharedProject: PixelFolder,
- unknown: PixelUnknown,
- archive: PixelUnknown,
- video: PixelVideo,
- contact: PixelUser,
- default: PixelFile,
- directMessage: PixelUsers,
- user: PixelUser,
- emailRead: PixelEmailRead,
- task: Check,
-};
-
export const WIDE_ICONS: Record<EntityWithValidIcon, Component> = {
canvas: WideDiagram,
html: WideFileCode,
@@ -372,9 +325,7 @@ export function EntityIcon(props: EntityIconProps) {
const config = () => ENTITY_ICON_CONFIGS[getName()];
const icon = () => {
- if (USE_PIXEL_BLOCK_ICONS) {
- return PIXEL_ICONS[getName()];
- } else if (USE_WIDE_ICONS) {
+ if (USE_WIDE_ICONS) {
return WIDE_ICONS[getName()];
} else {
return config().icon;
@@ -430,9 +381,7 @@ export function getIconConfig(
) {
const key = validateEntity(targetType);
const config = { ...ENTITY_ICON_CONFIGS[key] };
- if (USE_PIXEL_BLOCK_ICONS) {
- config.icon = PIXEL_ICONS[key];
- } else if (USE_WIDE_ICONS) {
+ if (USE_WIDE_ICONS) {
config.icon = WIDE_ICONS[key];
}
return config;
diff --git a/js/app/packages/core/constant/featureFlags.ts b/js/app/packages/core/constant/featureFlags.ts
index 916222c46d..9d6bdff98f 100644
--- a/js/app/packages/core/constant/featureFlags.ts
+++ b/js/app/packages/core/constant/featureFlags.ts
@@ -19,18 +19,10 @@ export const DEV_MODE_ENV = import.meta.env.MODE === 'development';
*/
export const PROD_MODE_ENV = import.meta.env.MODE === 'production';
-export const ENABLE_FORM_EDITING = false;
-
export const ENABLE_PDF_MODIFICATION_DATA_AUTOSAVE = true;
export const ENABLE_PDF_LOCATION_AUTOSAVE = true;
-// TODO: fix highlights when pane pins are enabled
-// See HighlightCard component for more details
-export const ENABLE_PINS = false;
-
-export const ENABLE_THUMBNAIL_VIEWER = false;
-
export const ENABLE_PDF_TABS = true;
export const ENABLE_PDF_MARKUP = true;
@@ -50,10 +42,6 @@ export const ENABLE_CANVAS_FILES = true;
export const ENABLE_CANVAS_TEXT = true;
-export const ENABLE_ORG_SETTING_DEFAULT_SHARE = false;
-
-export const ENABLE_NAME_IN_LOGIN = false;
-
export const ENABLE_LIVE_INDICATORS = true;
export const ENABLE_CONTACTS = true;
@@ -71,8 +59,6 @@ export const ENABLE_EMAIL = true;
export const ENABLE_BLOCK_IN_BLOCK = true;
-export const EDITABLE_SMART_INSIGHTS = false;
-
export const ENABLE_SEARCH_SERVICE = true;
export const ENABLE_MARKDOWN_DIFF = true;
@@ -108,8 +94,6 @@ export const ENABLE_WEBSOCKET_DEBUGGER = false;
export const ENABLE_SVG_PREVIEW = true;
-export const USE_PIXEL_BLOCK_ICONS = false;
-
export const USE_WIDE_ICONS = true;
export const ENABLE_PROPERTY_DISPLAY = DEV_MODE_ENV;
@@ -125,21 +109,7 @@ export const ENABLE_PROJECT_VIEW_PREVIEW = true;
export const ENABLE_DOCK_NOTITIFCATIONS = DEV_MODE_ENV;
export const ENABLE_TTFT = DEV_MODE_ENV;
-export const ENABLE_SOUND = false;
-export const ENABLE_JACK_IN = false;
-
-export const ENABLE_WHICHKEY_OVERLAY = false;
-
-// pure css based custom cursor
-export const ENABLE_CUSTOM_CURSOR = false;
-// uses javascript to detect selectable text to switch to "text" cursor type (ibeam)
-export const ENABLE_CUSTOM_CURSOR_TEXT_GLYPH_DETECTION = true;
-
export const ENABLE_CREATE_TASK = true;
export const ENABLE_TASKS_TABS = true;
export const ENABLE_EMAIL_SHARING = true;
-
-export const ENABLE_FRECENCY = false;
-
-export const ENABLE_UNIFIED_LIST_AI_INPUT = false;
diff --git a/js/app/packages/macro-entity/src/components/Sort.tsx b/js/app/packages/macro-entity/src/components/Sort.tsx
index b8b43c3e9a..9d3c89da5f 100644
--- a/js/app/packages/macro-entity/src/components/Sort.tsx
+++ b/js/app/packages/macro-entity/src/components/Sort.tsx
@@ -1,9 +1,5 @@
-import {
- ENABLE_FRECENCY,
- ENABLE_PROPERTY_SORT,
-} from '@core/constant/featureFlags';
+import { ENABLE_PROPERTY_SORT } from '@core/constant/featureFlags';
import ClockIcon from '@phosphor-icons/core/assets/regular/clock.svg';
-import LightningIcon from '@phosphor-icons/core/assets/regular/lightning.svg';
import MagnifyingGlassIcon from '@phosphor-icons/core/assets/regular/magnifying-glass.svg';
import SortAscendingIcon from '@phosphor-icons/core/assets/regular/sort-ascending.svg';
import SortDescendingIcon from '@phosphor-icons/core/assets/regular/sort-descending.svg';
@@ -232,15 +228,6 @@ export const defaultSortOptions: SortOption<WithNotification<EntityData>>[] = [
{ value: 'important', label: 'Important', sortFn: notifiedSortFn },
{ value: 'updatedAt', label: 'Updated', sortFn: sortByUpdatedAt },
{ value: 'viewedAt', label: 'Viewed', sortFn: sortByViewedAt },
- ...(ENABLE_FRECENCY
- ? [
- {
- value: 'frecency' as const,
- label: 'Frecency',
- sortFn: sortByFrecencyScore,
- },
- ]
- : []),
];
type InferSortFn<Options extends SortOption<any, string>[]> =
@@ -450,22 +437,6 @@ export function createSort<
<ClockIcon class="size-3.5" />
Created
</button>
- <Show when={ENABLE_FRECENCY}>
- <button
- type="button"
- onClick={() => props.onSelect('frecency')}
- disabled={props.disabled?.()}
- class={pillClass}
- classList={{
- 'bg-ink text-panel border-ink': isSelected('frecency'),
- 'bg-transparent text-ink border-edge hover:bg-hover':
- !isSelected('frecency'),
- }}
- >
- <LightningIcon class="size-3.5" />
- Frecency
- </button>
- </Show>
</div>
);
};