Socket
Socket
Sign inDemoInstall

roosterjs-content-model-types

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roosterjs-content-model-types - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

5

lib-amd/context/DomToModelFormatContext.d.ts

@@ -8,3 +8,2 @@ import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';

import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import { ZoomScaleFormat } from '../format/formatParts/ZoomScaleFormat';
/**

@@ -44,6 +43,2 @@ * Represents the context object used when do DOM to Content Model conversion and processing a List

/**
* Zoom scale of the content
*/
zoomScaleFormat: ZoomScaleFormat;
/**
* Whether put the source element into Content Model when possible.

@@ -50,0 +45,0 @@ * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM

@@ -1,2 +0,1 @@

import { SelectionRangeEx } from 'roosterjs-editor-types';
import { DefaultStyleMap, ElementProcessorMap, FormatParsers, FormatParsersPerCategory } from './DomToModelSettings';

@@ -8,6 +7,2 @@ /**

/**
* Selection range to be included in Content Model
*/
selectionRange?: SelectionRangeEx;
/**
* Overrides default element processors

@@ -14,0 +9,0 @@ */

75

lib-amd/context/DomToModelSelectionContext.d.ts

@@ -1,54 +0,3 @@

import { Coordinates } from 'roosterjs-editor-types';
import { SelectionRangeEx } from 'roosterjs-editor-types';
/**
* Represents a regular selection for DOM to Content Model conversion
*/
export interface DomToModelRegularSelection {
/**
* Is the selection collapsed
*/
isSelectionCollapsed?: boolean;
/**
* Start container of this selection
*/
startContainer?: Node;
/**
* End container of this selection
*/
endContainer?: Node;
/**
* Start offset of this selection
*/
startOffset?: number;
/**
* End offset of this selection
*/
endOffset?: number;
}
/**
* Represents a table for DOM to Content Model conversion
*/
export interface DomToModelTableSelection {
/**
* Table where selection is located
*/
table: HTMLTableElement;
/**
* Coordinate of first selected cell
*/
firstCell: Coordinates;
/**
* Coordinate of last selected cell
*/
lastCell: Coordinates;
}
/**
* Represents an image for DOM to Content Model conversion
*/
export interface DomToModelImageSelection {
/**
* Selected image
*/
image: HTMLImageElement;
}
/**
* Represents the selection information of content used by DOM to Content Model conversion

@@ -60,23 +9,7 @@ */

*/
isInSelection: boolean;
isInSelection?: boolean;
/**
* Regular selection (selection with a highlight background provided by browser)
* Current selection range
*/
regularSelection?: DomToModelRegularSelection;
/**
* Table selection provided by editor
*/
tableSelection?: DomToModelTableSelection;
/**
* Image selection provided by editor
*/
imageSelection?: DomToModelImageSelection;
/**
* Root not that contains the selection.
* For regular selection, it is the common ancestor container of selection range.
* For table selection, it is the table node.
* For image selection, it is the image node.
* Otherwise, it is undefined.
*/
selectionRootNode?: Node;
rangeEx?: SelectionRangeEx;
}

8

lib-amd/context/EditorContext.d.ts

@@ -23,2 +23,10 @@ import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';

addDelimiterForEntity?: boolean;
/**
* Zoom scale number
*/
zoomScale?: number;
/**
* Whether the content is in Right-to-left from root level
*/
isRootRtl?: boolean;
}

@@ -44,3 +44,2 @@ export { ContentModelSegmentFormat } from './format/ContentModelSegmentFormat';

export { SizeFormat } from './format/formatParts/SizeFormat';
export { ZoomScaleFormat } from './format/formatParts/ZoomScaleFormat';
export { BoxShadowFormat } from './format/formatParts/BoxShadowFormat';

@@ -88,3 +87,3 @@ export { ListThreadFormat } from './format/formatParts/ListThreadFormat';

export { ElementProcessor } from './context/ElementProcessor';
export { DomToModelSelectionContext, DomToModelRegularSelection, DomToModelTableSelection, DomToModelImageSelection, } from './context/DomToModelSelectionContext';
export { DomToModelSelectionContext } from './context/DomToModelSelectionContext';
export { EditorContext } from './context/EditorContext';

@@ -91,0 +90,0 @@ export { DomToModelFormatContext, DomToModelDecoratorContext, DomToModelListFormat, } from './context/DomToModelFormatContext';

@@ -8,3 +8,2 @@ import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';

import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import { ZoomScaleFormat } from '../format/formatParts/ZoomScaleFormat';
/**

@@ -44,6 +43,2 @@ * Represents the context object used when do DOM to Content Model conversion and processing a List

/**
* Zoom scale of the content
*/
zoomScaleFormat: ZoomScaleFormat;
/**
* Whether put the source element into Content Model when possible.

@@ -50,0 +45,0 @@ * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM

@@ -1,2 +0,1 @@

import { SelectionRangeEx } from 'roosterjs-editor-types';
import { DefaultStyleMap, ElementProcessorMap, FormatParsers, FormatParsersPerCategory } from './DomToModelSettings';

@@ -8,6 +7,2 @@ /**

/**
* Selection range to be included in Content Model
*/
selectionRange?: SelectionRangeEx;
/**
* Overrides default element processors

@@ -14,0 +9,0 @@ */

@@ -1,54 +0,3 @@

import { Coordinates } from 'roosterjs-editor-types';
import { SelectionRangeEx } from 'roosterjs-editor-types';
/**
* Represents a regular selection for DOM to Content Model conversion
*/
export interface DomToModelRegularSelection {
/**
* Is the selection collapsed
*/
isSelectionCollapsed?: boolean;
/**
* Start container of this selection
*/
startContainer?: Node;
/**
* End container of this selection
*/
endContainer?: Node;
/**
* Start offset of this selection
*/
startOffset?: number;
/**
* End offset of this selection
*/
endOffset?: number;
}
/**
* Represents a table for DOM to Content Model conversion
*/
export interface DomToModelTableSelection {
/**
* Table where selection is located
*/
table: HTMLTableElement;
/**
* Coordinate of first selected cell
*/
firstCell: Coordinates;
/**
* Coordinate of last selected cell
*/
lastCell: Coordinates;
}
/**
* Represents an image for DOM to Content Model conversion
*/
export interface DomToModelImageSelection {
/**
* Selected image
*/
image: HTMLImageElement;
}
/**
* Represents the selection information of content used by DOM to Content Model conversion

@@ -60,23 +9,7 @@ */

*/
isInSelection: boolean;
isInSelection?: boolean;
/**
* Regular selection (selection with a highlight background provided by browser)
* Current selection range
*/
regularSelection?: DomToModelRegularSelection;
/**
* Table selection provided by editor
*/
tableSelection?: DomToModelTableSelection;
/**
* Image selection provided by editor
*/
imageSelection?: DomToModelImageSelection;
/**
* Root not that contains the selection.
* For regular selection, it is the common ancestor container of selection range.
* For table selection, it is the table node.
* For image selection, it is the image node.
* Otherwise, it is undefined.
*/
selectionRootNode?: Node;
rangeEx?: SelectionRangeEx;
}

@@ -23,2 +23,10 @@ import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';

addDelimiterForEntity?: boolean;
/**
* Zoom scale number
*/
zoomScale?: number;
/**
* Whether the content is in Right-to-left from root level
*/
isRootRtl?: boolean;
}

@@ -44,3 +44,2 @@ export { ContentModelSegmentFormat } from './format/ContentModelSegmentFormat';

export { SizeFormat } from './format/formatParts/SizeFormat';
export { ZoomScaleFormat } from './format/formatParts/ZoomScaleFormat';
export { BoxShadowFormat } from './format/formatParts/BoxShadowFormat';

@@ -88,3 +87,3 @@ export { ListThreadFormat } from './format/formatParts/ListThreadFormat';

export { ElementProcessor } from './context/ElementProcessor';
export { DomToModelSelectionContext, DomToModelRegularSelection, DomToModelTableSelection, DomToModelImageSelection, } from './context/DomToModelSelectionContext';
export { DomToModelSelectionContext } from './context/DomToModelSelectionContext';
export { EditorContext } from './context/EditorContext';

@@ -91,0 +90,0 @@ export { DomToModelFormatContext, DomToModelDecoratorContext, DomToModelListFormat, } from './context/DomToModelFormatContext';

@@ -8,3 +8,2 @@ import { ContentModelBlockFormat } from '../format/ContentModelBlockFormat';

import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';
import { ZoomScaleFormat } from '../format/formatParts/ZoomScaleFormat';
/**

@@ -44,6 +43,2 @@ * Represents the context object used when do DOM to Content Model conversion and processing a List

/**
* Zoom scale of the content
*/
zoomScaleFormat: ZoomScaleFormat;
/**
* Whether put the source element into Content Model when possible.

@@ -50,0 +45,0 @@ * When pass true, this cached element will be used to create DOM tree back when convert Content Model to DOM

@@ -1,2 +0,1 @@

import { SelectionRangeEx } from 'roosterjs-editor-types';
import { DefaultStyleMap, ElementProcessorMap, FormatParsers, FormatParsersPerCategory } from './DomToModelSettings';

@@ -8,6 +7,2 @@ /**

/**
* Selection range to be included in Content Model
*/
selectionRange?: SelectionRangeEx;
/**
* Overrides default element processors

@@ -14,0 +9,0 @@ */

@@ -1,54 +0,3 @@

import { Coordinates } from 'roosterjs-editor-types';
import { SelectionRangeEx } from 'roosterjs-editor-types';
/**
* Represents a regular selection for DOM to Content Model conversion
*/
export interface DomToModelRegularSelection {
/**
* Is the selection collapsed
*/
isSelectionCollapsed?: boolean;
/**
* Start container of this selection
*/
startContainer?: Node;
/**
* End container of this selection
*/
endContainer?: Node;
/**
* Start offset of this selection
*/
startOffset?: number;
/**
* End offset of this selection
*/
endOffset?: number;
}
/**
* Represents a table for DOM to Content Model conversion
*/
export interface DomToModelTableSelection {
/**
* Table where selection is located
*/
table: HTMLTableElement;
/**
* Coordinate of first selected cell
*/
firstCell: Coordinates;
/**
* Coordinate of last selected cell
*/
lastCell: Coordinates;
}
/**
* Represents an image for DOM to Content Model conversion
*/
export interface DomToModelImageSelection {
/**
* Selected image
*/
image: HTMLImageElement;
}
/**
* Represents the selection information of content used by DOM to Content Model conversion

@@ -60,23 +9,7 @@ */

*/
isInSelection: boolean;
isInSelection?: boolean;
/**
* Regular selection (selection with a highlight background provided by browser)
* Current selection range
*/
regularSelection?: DomToModelRegularSelection;
/**
* Table selection provided by editor
*/
tableSelection?: DomToModelTableSelection;
/**
* Image selection provided by editor
*/
imageSelection?: DomToModelImageSelection;
/**
* Root not that contains the selection.
* For regular selection, it is the common ancestor container of selection range.
* For table selection, it is the table node.
* For image selection, it is the image node.
* Otherwise, it is undefined.
*/
selectionRootNode?: Node;
rangeEx?: SelectionRangeEx;
}

@@ -23,2 +23,10 @@ import { ContentModelSegmentFormat } from '../format/ContentModelSegmentFormat';

addDelimiterForEntity?: boolean;
/**
* Zoom scale number
*/
zoomScale?: number;
/**
* Whether the content is in Right-to-left from root level
*/
isRootRtl?: boolean;
}

@@ -44,3 +44,2 @@ export { ContentModelSegmentFormat } from './format/ContentModelSegmentFormat';

export { SizeFormat } from './format/formatParts/SizeFormat';
export { ZoomScaleFormat } from './format/formatParts/ZoomScaleFormat';
export { BoxShadowFormat } from './format/formatParts/BoxShadowFormat';

@@ -88,3 +87,3 @@ export { ListThreadFormat } from './format/formatParts/ListThreadFormat';

export { ElementProcessor } from './context/ElementProcessor';
export { DomToModelSelectionContext, DomToModelRegularSelection, DomToModelTableSelection, DomToModelImageSelection, } from './context/DomToModelSelectionContext';
export { DomToModelSelectionContext } from './context/DomToModelSelectionContext';
export { EditorContext } from './context/EditorContext';

@@ -91,0 +90,0 @@ export { DomToModelFormatContext, DomToModelDecoratorContext, DomToModelListFormat, } from './context/DomToModelFormatContext';

@@ -5,6 +5,6 @@ {

"dependencies": {
"roosterjs-editor-types": "^8.51.0"
"roosterjs-editor-types": "^8.51.1"
},
"main": "./lib/index.js",
"version": "0.10.0",
"version": "0.11.0",
"typings": "./lib/index.d.ts",

@@ -11,0 +11,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc