Skip to content

Commit

Permalink
Merge pull request #1620 from vivid-planet/merge-main-into-next
Browse files Browse the repository at this point in the history
Merge main into next
  • Loading branch information
thomasdax98 authored Jan 30, 2024
2 parents 84e3e1f + fc8e475 commit 6f0fa5c
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 138 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-carpets-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/admin-icons": patch
---

Fix broken `Logout` icon
5 changes: 5 additions & 0 deletions .changeset/plenty-dots-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/admin-rte": patch
---

Retain headings 4 - 6, blockquote and strikethrough formatting when copying from one RTE to another
13 changes: 0 additions & 13 deletions docs/docs/story-poc.mdx

This file was deleted.

90 changes: 0 additions & 90 deletions docs/src/stories/Checkbox.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions docs/src/stories/sub/Test.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions packages/admin/admin-icons/icons/logout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import changeBlockType from "./utils/changeBlockType";

const removeUnsupportedBlockTypes: FilterEditorStateBeforeUpdateFn = (newState, { supports, standardBlockType }) => {
// unstyle all core-blocks which are not supported
const blackListBlocks: DraftBlockType[] = ["paragraph", "header-four", "header-five", "header-six", "blockquote", "code-block", "atomic"]; // these are not supported at all by our rte
const blackListBlocks: DraftBlockType[] = ["paragraph", "code-block", "atomic"]; // these are not supported at all by our rte

const supportsToBlockMap: Partial<Record<SupportedThings, DraftBlockType>> = {
"header-one": "header-one",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import removeInlineStyles from "./utils/removeInlineStyles";

const removeUnsupportedInlineStyles: FilterEditorStateBeforeUpdateFn = (newState, { supports }) => {
// unstyle all core-blocks which are not supported
const blackListInlineStyles: InlineStyleType[] = ["STRIKETHROUGH", "CODE"]; // these are not supported at all by our rte
const blackListInlineStyles: InlineStyleType[] = ["CODE"]; // these are not supported at all by our rte

const supportsToInlineStyleMap: Partial<Record<SupportedThings, InlineStyleType>> = {
bold: "BOLD",
Expand Down
11 changes: 0 additions & 11 deletions packages/admin/cms-admin/src/pages/pageTree/CopyPasteMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@ export const CopyPasteMenuItem = ({ page }: Props): React.ReactElement => {
>
<FormattedMessage id="comet.pages.pages.page.paste" defaultMessage="Paste" />
</RowActionsItem>
<RowActionsItem
icon={<Copy />}
onClick={async () => {
const subTree = subTreeFromNode(page, tree);
const pagesAsArray = treeMapToArray(subTree, "root");
const pages = await prepareForClipboard(pagesAsArray);
await sendPages(page.parentId, pages, { targetPos: page.pos + 1 });
}}
>
<FormattedMessage id="comet.pageTree.duplicate" defaultMessage="Duplicate" />
</RowActionsItem>
</>
);
};
9 changes: 0 additions & 9 deletions packages/admin/cms-admin/src/pages/pageTree/PageActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ export default function PageActions({ page, editDialog, children, siteUrl }: Pro
]}
<RowActionsMenu>
{page.visibility !== "Archived" && [
<RowActionsItem
key="edit"
icon={<Edit />}
onClick={() => {
stackSwitchApi.activatePage("edit", String(page.id));
}}
>
<FormattedMessage id="comet.pages.pages.page.editContent" defaultMessage="Edit content" />
</RowActionsItem>,
<RowActionsItem
key="pageProperties"
icon={<Settings />}
Expand Down

0 comments on commit 6f0fa5c

Please sign in to comment.