-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1712 from microsoft/u/juliaroldi/bump-version-8.45.0
U/juliaroldi/bump version 8.45.0
- Loading branch information
Showing
193 changed files
with
10,675 additions
and
2,892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mponents/model/ContentModelQuoteView.scss → ...odel/ContentModelFormatContainerView.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.modelQuote { | ||
.modelFormatContainer { | ||
background-color: #a8a; | ||
} |
36 changes: 36 additions & 0 deletions
36
demo/scripts/controls/contentModel/components/model/ContentModelFormatContainerView.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import * as React from 'react'; | ||
import { BlockFormatView } from '../format/BlockFormatView'; | ||
import { BlockGroupContentView } from './BlockGroupContentView'; | ||
import { ContentModelFormatContainer, hasSelectionInBlock } from 'roosterjs-content-model'; | ||
import { ContentModelView } from '../ContentModelView'; | ||
import { SegmentFormatView } from '../format/SegmentFormatView'; | ||
|
||
const styles = require('./ContentModelFormatContainerView.scss'); | ||
|
||
export function ContentModelFormatContainerView(props: { container: ContentModelFormatContainer }) { | ||
const { container } = props; | ||
const getContent = React.useCallback(() => { | ||
return <BlockGroupContentView group={container} />; | ||
}, [container]); | ||
|
||
const getFormat = React.useCallback(() => { | ||
return ( | ||
<> | ||
<BlockFormatView format={container.format} /> | ||
<SegmentFormatView format={container.format} /> | ||
</> | ||
); | ||
}, [container]); | ||
|
||
return ( | ||
<ContentModelView | ||
title="FormatContainer" | ||
subTitle={container.tagName} | ||
className={styles.modelFormatContainer} | ||
hasSelection={hasSelectionInBlock(container)} | ||
jsonSource={container} | ||
getContent={getContent} | ||
getFormat={getFormat} | ||
/> | ||
); | ||
} |
60 changes: 0 additions & 60 deletions
60
demo/scripts/controls/contentModel/components/model/ContentModelQuoteView.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.