Skip to content

Commit

Permalink
Using block-heading in editor sample (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
cohitre authored Feb 26, 2024
1 parent 31c5ee8 commit fa46ff2
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 47 deletions.
11 changes: 11 additions & 0 deletions packages/editor-sample/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/editor-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.15.10",
"@mui/material": "^5.15.10",
"@usewaypoint/block-heading": "^0.0.1",
"@usewaypoint/document-core": "^0.0.1",
"react": "^18.2.0",
"react-colorful": "^5.6.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { useState } from 'react';

import { ToggleButton } from '@mui/material';

import { HeadingProps, HeadingPropsSchema } from '../../../../documents/blocks/Heading';
import { HeadingProps, HeadingPropsSchema } from '@usewaypoint/block-heading';

import BaseSidebarPanel from './helpers/BaseSidebarPanel';
import RadioGroupInput from './helpers/inputs/RadioGroupInput';
Expand Down
42 changes: 0 additions & 42 deletions packages/editor-sample/src/documents/blocks/Heading.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import {
SmartButtonOutlined,
ViewColumnOutlined,
} from '@mui/icons-material';
import { HeadingPropsSchema } from '@usewaypoint/block-heading';

import { TEditorBlock } from '../../../../editor/core';
import { AvatarPropsSchema } from '../../../Avatar';
import { ButtonPropsSchema } from '../../../Button';
import ColumnsContainerPropsSchema from '../../../ColumnsContainer/ColumnsContainerPropsSchema';
import { ContainerPropsSchema } from '../../../Container';
import { DividerPropsSchema } from '../../../Divider';
import { HeadingPropsSchema } from '../../../Heading';
import { HtmlPropsSchema } from '../../../Html';
import { ImagePropsSchema } from '../../../Image';
import { SpacerPropsSchema } from '../../../Spacer';
Expand Down
2 changes: 1 addition & 1 deletion packages/editor-sample/src/documents/editor/core.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { z } from 'zod';

import { Heading, HeadingPropsSchema } from '@usewaypoint/block-heading';
import { buildBlockComponent, buildBlockConfigurationSchema } from '@usewaypoint/document-core';

import { Avatar, AvatarPropsSchema } from '../blocks/Avatar';
Expand All @@ -10,7 +11,6 @@ import ColumnsContainerPropsSchema from '../blocks/ColumnsContainer/ColumnsConta
import { ContainerPropsSchema, EditorContainer } from '../blocks/Container';
import { Divider, DividerPropsSchema } from '../blocks/Divider';
import { EditorEmailLayout, EmailLayoutProps, EmailLayoutPropsSchema } from '../blocks/EmailLayout';
import { Heading, HeadingPropsSchema } from '../blocks/Heading';
import { addEditorBlockWrapper } from '../blocks/helpers/block-wrappers';
import { Html, HtmlPropsSchema } from '../blocks/Html';
import { Image, ImagePropsSchema } from '../blocks/Image';
Expand Down
2 changes: 1 addition & 1 deletion packages/editor-sample/src/documents/reader/core.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { z } from 'zod';

import { Heading, HeadingPropsSchema } from '@usewaypoint/block-heading';
import { buildBlockComponent, buildBlockConfigurationSchema } from '@usewaypoint/document-core';

import { Avatar, AvatarPropsSchema } from '../blocks/Avatar';
Expand All @@ -9,7 +10,6 @@ import ColumnsContainerPropsSchema from '../blocks/ColumnsContainer/ColumnsConta
import { Container, ContainerPropsSchema } from '../blocks/Container';
import { Divider, DividerPropsSchema } from '../blocks/Divider';
import { EmailLayout, EmailLayoutPropsSchema } from '../blocks/EmailLayout';
import { Heading, HeadingPropsSchema } from '../blocks/Heading';
import { addReaderBlockWrapper } from '../blocks/helpers/block-wrappers';
import { Html, HtmlPropsSchema } from '../blocks/Html';
import { Image, ImagePropsSchema } from '../blocks/Image';
Expand Down

0 comments on commit fa46ff2

Please sign in to comment.