Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@floating-ui/react": "catalog:",
"@headlessui/react": "catalog:",
"@hocuspocus/provider": "catalog:",
"@makeplane/propel": "catalog:",
"@plane/constants": "workspace:*",
"@plane/hooks": "workspace:*",
"@plane/propel": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/links/link-edit-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import type { Node } from "@tiptap/pm/model";
import { Link2Off } from "lucide-react";
import { UnlinkOutline } from "@makeplane/propel/icons";
import { useCallback, useEffect, useRef, useState } from "react";
// components
import type { LinkViewProps, LinkViews } from "@/components/links";
Expand Down Expand Up @@ -148,7 +148,7 @@ export function LinkEditView({ viewProps }: LinkEditViewProps) {
<InputView label="Text" placeholder="Enter Text to display" value={localText} onChange={handleTextChange} />
<div className="bg-strong mb-1 h-[1px] w-full gap-2" />
<div className="flex items-center gap-2 text-13 text-secondary">
<Link2Off size={14} className="inline-block" />
<UnlinkOutline width={14} height={14} className="inline-block" />
<button onClick={removeLink} className="cursor-pointer transition-colors hover:text-placeholder">
Remove Link
</button>
Expand Down
11 changes: 5 additions & 6 deletions packages/editor/src/components/links/link-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
* See the LICENSE file for details.
*/

import { Link2Off } from "lucide-react";
import { CopyIcon, GlobeIcon, EditIcon } from "@plane/propel/icons";
import { CopyOutline, EditOutline, GlobeOutline, UnlinkOutline } from "@makeplane/propel/icons";
// components
import type { LinkViewProps, LinkViews } from "@/components/links";

Expand Down Expand Up @@ -36,22 +35,22 @@ export function LinkPreview({
}}
>
<div className="shadow-md flex items-center gap-3 rounded-sm border-2 border-subtle bg-layer-1 p-2 text-11 text-tertiary">
<GlobeIcon width={14} height={14} className="inline-block" />
<GlobeOutline width={14} height={14} className="inline-block" />
<p>{url?.length > 40 ? url.slice(0, 40) + "..." : url}</p>
<div className="flex gap-2">
<button onClick={copyLinkToClipboard} className="cursor-pointer transition-colors hover:text-primary">
<CopyIcon width={14} height={14} className="inline-block" />
<CopyOutline width={14} height={14} className="inline-block" />
</button>
{editor.isEditable && (
<>
<button
onClick={() => switchView("LinkEditView")}
className="cursor-pointer transition-colors hover:text-primary"
>
<EditIcon width={14} height={14} className="inline-block" />
<EditOutline width={14} height={14} className="inline-block" />
</button>
<button onClick={removeLink} className="cursor-pointer transition-colors hover:text-primary">
<Link2Off size={14} className="inline-block" />
<UnlinkOutline width={14} height={14} className="inline-block" />
</button>
</>
)}
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/menus/block-menu-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import type { Node as ProseMirrorNode } from "@tiptap/pm/model";
import { TableMap } from "@tiptap/pm/tables";
import type { Editor } from "@tiptap/react";
import { MoveHorizontal } from "lucide-react";
import { DragDropOutline } from "@makeplane/propel/icons";
// constants
import { CORE_EXTENSIONS } from "@/constants/extension";
// types
Expand Down Expand Up @@ -84,7 +84,7 @@ const setTableToFullWidth = (editor: Editor): void => {

export const getNodeOptions = (editor: Editor): BlockMenuOption[] => [
{
icon: MoveHorizontal,
icon: DragDropOutline,
key: "table-full-width",
label: "Fit to width",
isDisabled: !editor.isActive(CORE_EXTENSIONS.TABLE),
Expand Down
6 changes: 3 additions & 3 deletions packages/editor/src/components/menus/block-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import type { Editor } from "@tiptap/react";
import type { LucideIcon } from "lucide-react";
import { useCallback, useEffect, useRef, useState } from "react";
import { CopyIcon, TrashIcon } from "@plane/propel/icons";
import { CopyOutline, DeleteOutline } from "@makeplane/propel/icons";
import type { ISvgIcons } from "@plane/propel/icons";
import { cn } from "@plane/utils";
// constants
Expand Down Expand Up @@ -150,7 +150,7 @@ export function BlockMenu(props: Props) {

const MENU_ITEMS: BlockMenuOption[] = [
{
icon: TrashIcon,
icon: DeleteOutline,
key: "delete",
label: "Delete",
onClick: (_e) => {
Expand All @@ -159,7 +159,7 @@ export function BlockMenu(props: Props) {
},
},
{
icon: CopyIcon,
icon: CopyOutline,
key: "duplicate",
label: "Duplicate",
isDisabled:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

import type { Editor } from "@tiptap/core";
import type { LucideIcon } from "lucide-react";
import { AlignCenter, AlignLeft, AlignRight } from "lucide-react";
import type { ComponentType, SVGProps } from "react";
import { AlignCenterOutline, AlignLeftOutline, AlignRightOutline } from "@makeplane/propel/icons";
// plane utils
import { cn } from "@plane/utils";
// components
Expand All @@ -27,14 +27,14 @@ export function TextAlignmentSelector(props: Props) {
const textAlignmentOptions: {
itemKey: TEditorCommands;
renderKey: string;
icon: LucideIcon;
icon: ComponentType<SVGProps<SVGSVGElement>>;
command: () => void;
isActive: () => boolean;
}[] = [
{
itemKey: "text-align",
renderKey: "text-align-left",
icon: AlignLeft,
icon: AlignLeftOutline,
command: () =>
menuItem.command({
alignment: "left",
Expand All @@ -44,7 +44,7 @@ export function TextAlignmentSelector(props: Props) {
{
itemKey: "text-align",
renderKey: "text-align-center",
icon: AlignCenter,
icon: AlignCenterOutline,
command: () =>
menuItem.command({
alignment: "center",
Expand All @@ -54,7 +54,7 @@ export function TextAlignmentSelector(props: Props) {
{
itemKey: "text-align",
renderKey: "text-align-right",
icon: AlignRight,
icon: AlignRightOutline,
command: () =>
menuItem.command({
alignment: "right",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*/

import type { Editor } from "@tiptap/react";
import { ALargeSmall, Ban } from "lucide-react";
import { Ban } from "lucide-react";
import { TextOutline } from "@makeplane/propel/icons";
import { useMemo } from "react";
// plane utils
import { cn } from "@plane/utils";
Expand Down Expand Up @@ -48,7 +49,7 @@ export function BubbleMenuColorSelector(props: Props) {
backgroundColor: activeBackgroundColor ? activeBackgroundColor.backgroundColor : "transparent",
}}
>
<ALargeSmall
<TextOutline
className={cn("size-3.5", {
"text-primary": !activeTextColor,
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import type { Editor } from "@tiptap/core";

import { useCallback, useRef, useState } from "react";
import { LinkIcon, TrashIcon, CheckIcon } from "@plane/propel/icons";
import { DeleteOutline, LinkOutline, TickOutline } from "@makeplane/propel/icons";
// plane imports
import { cn } from "@plane/utils";
// constants
Expand Down Expand Up @@ -64,7 +64,7 @@ export function BubbleMenuLinkSelector(props: Props) {
menuButton={
<>
Link
<LinkIcon className="size-3 shrink-0" />
<LinkOutline className="size-3 shrink-0" />
</>
}
options={options}
Expand Down Expand Up @@ -102,7 +102,7 @@ export function BubbleMenuLinkSelector(props: Props) {
context.onOpenChange(false);
}}
>
<TrashIcon className="size-4" />
<DeleteOutline className="size-4" />
</button>
) : (
<button
Expand All @@ -113,7 +113,7 @@ export function BubbleMenuLinkSelector(props: Props) {
handleLinkSubmit();
}}
>
<CheckIcon className="size-4" />
<TickOutline className="size-4" />
</button>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import type { Editor } from "@tiptap/react";

import { CheckIcon, ChevronDownIcon } from "@plane/propel/icons";
import { ChevronDownOutline, TickOutline } from "@makeplane/propel/icons";
// plane utils
import { cn } from "@plane/utils";
// components
Expand Down Expand Up @@ -73,7 +73,7 @@ export function BubbleMenuNodeSelector(props: Props) {
menuButton={
<>
<span>{activeItem?.name}</span>
<ChevronDownIcon className="size-3 shrink-0" />
<ChevronDownOutline className="size-3 shrink-0" />
</>
}
options={options}
Expand Down Expand Up @@ -101,7 +101,7 @@ export function BubbleMenuNodeSelector(props: Props) {
<item.icon className="size-3 flex-shrink-0" />
<span>{item.name}</span>
</div>
{activeItem.name === item.name && <CheckIcon className="size-3 flex-shrink-0 text-tertiary" />}
{activeItem.name === item.name && <TickOutline className="size-3 flex-shrink-0 text-tertiary" />}
</button>
))}
</section>
Expand Down
Loading
Loading