Skip to content

Commit

Permalink
Merge pull request #1934 from microsoft/biwu/version630
Browse files Browse the repository at this point in the history
Roosterjs bump-up 8.51.0
  • Loading branch information
flyingbee2012 authored Jun 30, 2023
2 parents a464ce6 + 2d5204c commit 65adaf2
Show file tree
Hide file tree
Showing 789 changed files with 5,134 additions and 2,876 deletions.
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.14.0/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fluentui-react/8.60.1/fluentui-react.min.js"></script>
<script src="rooster-min.js"></script>
<script src="rooster-content-model-min.js"></script>
<script src="rooster-react-min.js"></script>
<script src="demo.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion demo/scripts/controls/ContentModelEditorMainPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import SidePane from './sidePane/SidePane';
import SnapshotPlugin from './sidePane/snapshot/SnapshotPlugin';
import TitleBar from './titleBar/TitleBar';
import { arrayPush } from 'roosterjs-editor-dom';
import { ContentModelEditor } from 'roosterjs-content-model';
import { ContentModelEditor } from 'roosterjs-content-model-editor';
import { ContentModelRibbonPlugin } from './ribbonButtons/contentModel/ContentModelRibbonPlugin';
import { EditorOptions, EditorPlugin } from 'roosterjs-editor-types';
import { PartialTheme } from '@fluentui/react/lib/Theme';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
ContentModelGeneralBlock,
ContentModelWithDataset,
DatasetFormat,
} from 'roosterjs-content-model';
} from 'roosterjs-content-model-types';

const styles = require('./ContentModelView.scss');
const MetadataKey = 'editingInfo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { BackgroundColorFormatRenderer } from './formatPart/BackgroundColorFormatRenderer';
import { BorderFormatRenderers } from './formatPart/BorderFormatRenderers';
import { ContentModelBlockFormat, ContentModelSegmentFormat } from 'roosterjs-content-model';
import { ContentModelBlockFormat, ContentModelSegmentFormat } from 'roosterjs-content-model-types';
import { DirectionFormatRenderer } from './formatPart/DirectionFormatRenderer';
import { FormatRenderer } from './utils/FormatRenderer';
import { FormatView } from './FormatView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ContentModelHyperLinkFormat, LinkFormat } from 'roosterjs-content-model';
import { ContentModelHyperLinkFormat, LinkFormat } from 'roosterjs-content-model-types';
import { createTextFormatRenderer } from './utils/createTextFormatRenderer';
import { DisplayFormatRenderer } from './formatPart/DisplayFormatRenderer';
import { FormatRenderer } from './utils/FormatRenderer';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ContentModelWithDataset } from 'roosterjs-content-model';
import { ContentModelWithDataset } from 'roosterjs-content-model-types';
import { FormatRenderer } from './utils/FormatRenderer';

const styles = require('./FormatView.scss');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { BackgroundColorFormatRenderer } from './formatPart/BackgroundColorFormatRenderer';
import { ContentModelSegmentFormat } from 'roosterjs-content-model';
import { ContentModelSegmentFormat } from 'roosterjs-content-model-types';
import { FontFamilyFormatRenderer } from './formatPart/FontFamilyFormatRenderer';
import { FontSizeFormatRenderer } from './formatPart/FontSizeFormatRenderer';
import { FormatRenderer } from './utils/FormatRenderer';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BackgroundColorFormat } from 'roosterjs-content-model';
import { BackgroundColorFormat } from 'roosterjs-content-model-types';
import { createColorFormatRenderer } from '../utils/createColorFormatRender';
import { FormatRenderer } from '../utils/FormatRenderer';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
StrikeFormat,
SuperOrSubScriptFormat,
UnderlineFormat,
} from 'roosterjs-content-model';
} from 'roosterjs-content-model-types';

export const BoldFormatRenderer: FormatRenderer<BoldFormat> = createTextFormatRenderer<BoldFormat>(
'Bold',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BorderBoxFormat } from 'roosterjs-content-model';
import { BorderBoxFormat } from 'roosterjs-content-model-types';
import { createCheckboxFormatRenderer } from '../utils/createCheckboxFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { BorderFormat, combineBorderValue, extractBorderValues } from 'roosterjs-content-model';
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer';
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { BorderFormat } from 'roosterjs-content-model-types';
import { combineBorderValue, extractBorderValues } from 'roosterjs-content-model-editor';

type BorderStyle =
| 'dashed'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer';
import { DirectionFormat } from 'roosterjs-content-model';
import { DirectionFormat } from 'roosterjs-content-model-types';

export const DirectionFormatRenderer = createDropDownFormatRenderer<DirectionFormat, 'ltr' | 'rtl'>(
'Direction',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { DisplayFormat } from 'roosterjs-content-model';
import { DisplayFormat } from 'roosterjs-content-model-types';
import { FormatRenderer } from '../utils/FormatRenderer';

export const DisplayFormatRenderer: FormatRenderer<DisplayFormat> = createTextFormatRenderer<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FontFamilyFormat } from 'roosterjs-content-model';
import { FontFamilyFormat } from 'roosterjs-content-model-types';
import { FormatRenderer } from '../utils/FormatRenderer';

export const FontFamilyFormatRenderer: FormatRenderer<FontFamilyFormat> = createTextFormatRenderer<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FontSizeFormat } from 'roosterjs-content-model';
import { FontSizeFormat } from 'roosterjs-content-model-types';
import { FormatRenderer } from '../utils/FormatRenderer';

export const FontSizeFormatRenderer: FormatRenderer<FontSizeFormat> = createTextFormatRenderer<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer';
import { HtmlAlignFormat } from 'roosterjs-content-model';
import { HtmlAlignFormat } from 'roosterjs-content-model-types';

export const HtmlAlignFormatRenderer = createDropDownFormatRenderer<
HtmlAlignFormat,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { IdFormat } from 'roosterjs-content-model';
import { IdFormat } from 'roosterjs-content-model-types';

export const IdFormatRenderer: FormatRenderer<IdFormat> = createTextFormatRenderer<IdFormat>(
'Id',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { ImageMetadataFormat } from 'roosterjs-content-model';
import { ImageMetadataFormat } from 'roosterjs-content-model-types';

export const ImageMetadataFormatRenderers: FormatRenderer<ImageMetadataFormat>[] = [
createTextFormatRenderer<ImageMetadataFormat>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { LetterSpacingFormat } from 'roosterjs-content-model';
import { LetterSpacingFormat } from 'roosterjs-content-model-types';

export const LetterSpacingFormatRenderer: FormatRenderer<LetterSpacingFormat> = createTextFormatRenderer<
LetterSpacingFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { LineHeightFormat } from 'roosterjs-content-model';
import { LineHeightFormat } from 'roosterjs-content-model-types';

export const LineHeightFormatRenderer: FormatRenderer<LineHeightFormat> = createTextFormatRenderer<
LineHeightFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { ListMetadataFormat } from 'roosterjs-content-model';
import { ListMetadataFormat } from 'roosterjs-content-model-types';

export const ListMetadataFormatRenderers: FormatRenderer<ListMetadataFormat>[] = [
createTextFormatRenderer(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { ListStylePositionFormat } from 'roosterjs-content-model';
import { ListStylePositionFormat } from 'roosterjs-content-model-types';

export const ListStylePositionFormatRenderer: FormatRenderer<ListStylePositionFormat> = createDropDownFormatRenderer(
'List Type',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { ListThreadFormat } from 'roosterjs-content-model';
import { ListThreadFormat } from 'roosterjs-content-model-types';

export const ListThreadFormatRenderers: FormatRenderer<ListThreadFormat>[] = [
createTextFormatRenderer(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { ListTypeFormat } from 'roosterjs-content-model';
import { ListTypeFormat } from 'roosterjs-content-model-types';

export const ListTypeFormatRenderer: FormatRenderer<ListTypeFormat> = createDropDownFormatRenderer(
'List Type',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRendererGroup } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { MarginFormat } from 'roosterjs-content-model';
import { MarginFormat } from 'roosterjs-content-model-types';

type MarginName = keyof MarginFormat;
const MarginNames: MarginName[] = ['marginTop', 'marginRight', 'marginBottom', 'marginLeft'];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRendererGroup } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { PaddingFormat } from 'roosterjs-content-model';
import { PaddingFormat } from 'roosterjs-content-model-types';

type PaddingName = keyof PaddingFormat;
const PaddingNames: PaddingName[] = ['paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft'];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { SizeFormat } from 'roosterjs-content-model';
import { SizeFormat } from 'roosterjs-content-model-types';

export const SizeFormatRenderers: FormatRenderer<SizeFormat>[] = [
createTextFormatRenderer<SizeFormat>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createCheckboxFormatRenderer } from '../utils/createCheckboxFormatRenderer';
import { SpacingFormat } from 'roosterjs-content-model';
import { SpacingFormat } from 'roosterjs-content-model-types';

export const SpacingFormatRenderer = createCheckboxFormatRenderer<SpacingFormat>(
'BorderCollapsed',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { TableLayoutFormat } from 'roosterjs-content-model';
import { TableLayoutFormat } from 'roosterjs-content-model-types';

export const TableLayoutFormatRenderer: FormatRenderer<TableLayoutFormat> = createTextFormatRenderer<
TableLayoutFormat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createCheckboxFormatRenderer } from '../utils/createCheckboxFormatRende
import { createColorFormatRenderer } from '../utils/createColorFormatRender';
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer';
import { FormatRenderer } from '../utils/FormatRenderer';
import { TableMetadataFormat } from 'roosterjs-content-model';
import { TableMetadataFormat } from 'roosterjs-content-model-types';

export const TableMetadataFormatRenders: FormatRenderer<TableMetadataFormat>[] = [
createColorFormatRenderer<TableMetadataFormat>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer';
import { TextAlignFormat } from 'roosterjs-content-model';
import { TextAlignFormat } from 'roosterjs-content-model-types';

export const TextAlignFormatRenderer = createDropDownFormatRenderer<
TextAlignFormat,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Color from 'color';
import { createColorFormatRenderer } from '../utils/createColorFormatRender';
import { FormatRenderer } from '../utils/FormatRenderer';
import { TextColorFormat } from 'roosterjs-content-model';
import { TextColorFormat } from 'roosterjs-content-model-types';

export const TextColorFormatRenderer: FormatRenderer<TextColorFormat> = createColorFormatRenderer<
TextColorFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createDropDownFormatRenderer } from '../utils/createDropDownFormatRenderer';
import { VerticalAlignFormat } from 'roosterjs-content-model';
import { VerticalAlignFormat } from 'roosterjs-content-model-types';

export const VerticalAlignFormatRenderer = createDropDownFormatRenderer<
VerticalAlignFormat,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { WhiteSpaceFormat } from 'roosterjs-content-model';
import { WhiteSpaceFormat } from 'roosterjs-content-model-types';

export const WhiteSpaceFormatRenderer = createTextFormatRenderer<WhiteSpaceFormat>(
'White space',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createTextFormatRenderer } from '../utils/createTextFormatRenderer';
import { WordBreakFormat } from 'roosterjs-content-model';
import { WordBreakFormat } from 'roosterjs-content-model-types';

export const WordBreakFormatRenderer = createTextFormatRenderer<WordBreakFormat>(
'Word break',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ContentModelBlockGroup } from 'roosterjs-content-model';
import { ContentModelBlockGroup } from 'roosterjs-content-model-types';
import { ContentModelBlockView } from './ContentModelBlockView';

export function BlockGroupContentView(props: { group: ContentModelBlockGroup }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ContentModelBlockGroup } from 'roosterjs-content-model';
import { ContentModelBlockGroup } from 'roosterjs-content-model-types';
import { ContentModelDocumentView } from './ContentModelDocumentView';
import { ContentModelFormatContainerView } from './ContentModelFormatContainerView';
import { ContentModelGeneralView } from './ContentModelGeneralView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ContentModelBlock } from 'roosterjs-content-model';
import { ContentModelBlock } from 'roosterjs-content-model-types';
import { ContentModelBlockGroupView } from './ContentModelBlockGroupView';
import { ContentModelDividerView } from './ContentModelDividerView';
import { ContentModelEntityView } from './ContentModelEntityView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ContentModelBr } from 'roosterjs-content-model';
import { ContentModelBr } from 'roosterjs-content-model-types';
import { ContentModelView } from '../ContentModelView';
import { SegmentFormatView } from '../format/SegmentFormatView';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ContentModelCode, ContentModelCodeFormat } from 'roosterjs-content-model';
import { ContentModelCode, ContentModelCodeFormat } from 'roosterjs-content-model-types';
import { ContentModelView } from '../ContentModelView';
import { DisplayFormatRenderer } from '../format/formatPart/DisplayFormatRenderer';
import { FontFamilyFormatRenderer } from '../format/formatPart/FontFamilyFormatRenderer';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { BackgroundColorFormatRenderer } from '../format/formatPart/BackgroundColorFormatRenderer';
import { BorderFormatRenderers } from '../format/formatPart/BorderFormatRenderers';
import { ContentModelDivider, ContentModelDividerFormat } from 'roosterjs-content-model';
import { ContentModelDivider, ContentModelDividerFormat } from 'roosterjs-content-model-types';
import { ContentModelView } from '../ContentModelView';
import { DirectionFormatRenderer } from '../format/formatPart/DirectionFormatRenderer';
import { DisplayFormatRenderer } from '../format/formatPart/DisplayFormatRenderer';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import { BlockGroupContentView } from './BlockGroupContentView';
import { ContentModelDocument, hasSelectionInBlockGroup } from 'roosterjs-content-model';
import { ContentModelDocument } from 'roosterjs-content-model-types';
import { ContentModelView } from '../ContentModelView';
import { hasSelectionInBlockGroup } from 'roosterjs-content-model-editor';

const styles = require('./ContentModelDocumentView.scss');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { BlockFormatView } from '../format/BlockFormatView';
import { ContentModelEntity } from 'roosterjs-content-model';
import { ContentModelEntity } from 'roosterjs-content-model-types';
import { ContentModelView } from '../ContentModelView';
import { SegmentFormatView } from '../format/SegmentFormatView';
import { useProperty } from '../../hooks/useProperty';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { ContentModelView } from '../ContentModelView';
import { DisplayFormatRenderer } from '../format/formatPart/DisplayFormatRenderer';
import { FormatRenderer } from '../format/utils/FormatRenderer';
import { FormatView } from '../format/FormatView';
import { hasSelectionInBlock } from 'roosterjs-content-model-editor';
import { SegmentFormatView } from '../format/SegmentFormatView';
import { SizeFormatRenderers } from '../format/formatPart/SizeFormatRenderers';
import {
ContentModelFormatContainer,
ContentModelFormatContainerFormat,
hasSelectionInBlock,
} from 'roosterjs-content-model';
} from 'roosterjs-content-model-types';

const styles = require('./ContentModelFormatContainerView.scss');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { BlockGroupContentView } from './BlockGroupContentView';
import { ContentModelCodeView } from './ContentModelCodeView';
import { ContentModelLinkView } from './ContentModelLinkView';
import { ContentModelView } from '../ContentModelView';
import { hasSelectionInBlock } from 'roosterjs-content-model-editor';
import { SegmentFormatView } from '../format/SegmentFormatView';
import {
ContentModelGeneralBlock,
ContentModelGeneralSegment,
hasSelectionInBlock,
} from 'roosterjs-content-model';
} from 'roosterjs-content-model-types';

const styles = require('./ContentModelGeneralView.scss');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { ContentModelCodeView } from './ContentModelCodeView';
import { ContentModelImage, ContentModelImageFormat } from 'roosterjs-content-model';
import { ContentModelImage, ContentModelImageFormat } from 'roosterjs-content-model-types';
import { ContentModelLinkView } from './ContentModelLinkView';
import { ContentModelView } from '../ContentModelView';
import { FormatRenderer } from '../format/utils/FormatRenderer';
Expand All @@ -12,7 +12,7 @@ import { MetadataView } from '../format/MetadataView';
import { PaddingFormatRenderer } from '../format/formatPart/PaddingFormatRenderer';
import { SegmentFormatView } from '../format/SegmentFormatView';
import { SizeFormatRenderers } from '../format/formatPart/SizeFormatRenderers';
import { updateImageMetadata } from 'roosterjs-content-model';
import { updateImageMetadata } from 'roosterjs-content-model-editor';
import { useProperty } from '../../hooks/useProperty';

const styles = require('./ContentModelImageView.scss');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ContentModelLink } from 'roosterjs-content-model';
import { ContentModelLink } from 'roosterjs-content-model-types';
import { ContentModelView } from '../ContentModelView';
import { LinkFormatView } from '../format/LinkFormatView';

Expand Down
Loading

0 comments on commit 65adaf2

Please sign in to comment.