@remirror/core-constants
Advanced tools
Comparing version 1.0.0-next.13 to 1.0.0-next.16
# @remirror/core-constants | ||
## 1.0.0-next.16 | ||
> 2020-08-01 | ||
### Major Changes | ||
- 6c6d524e: **Breaking Changes** 💥 | ||
Rename `contains` to `containsNodesOfType`. | ||
Make `isValidPresetConstructor` internal only. | ||
Remove `EMPTY_CSS_VALUE`, `CSS_ROTATE_PATTERN` from `@remirror/core-constants`. | ||
Remove method: | ||
`clean() | coerce() | fragment() | markFactory() | nodeFactory() | offsetTags() | sequence() | slice() | text() | isTaggedNode() | replaceSelection()` | ||
and type: | ||
`BaseFactoryParameter | MarkWithAttributes | MarkWithoutAttributes | NodeWithAttributes | NodeWithoutAttributes | TagTracker | TaggedContent | TaggedContentItem | TaggedContentWithText | Tags` | ||
exports from `jest-remirror`. | ||
Remove `SPECIAL_INPUT_KEYS | SPECIAL_KEYS | SPECIAL_MENU_KEYS | SPECIAL_TOGGLE_BUTTON_KEYS` from | ||
`multishift`. | ||
### Patch Changes | ||
- a7037832: Use exact versions for `@remirror` package `dependencies` and `peerDepedencies`. | ||
Closes #435 | ||
- dcccc5fc: Add browser entrypoint to packages and shrink bundle size. | ||
- 231f664b: Upgrade dependencies. | ||
- 6c6d524e: Remove use of `export *` for better tree shaking. | ||
Closes #406 | ||
## 1.0.0-next.13 | ||
@@ -4,0 +39,0 @@ |
@@ -223,90 +223,12 @@ 'use strict'; | ||
/** | ||
* The size of the default indentation size (in pt). | ||
*/ | ||
var INDENT_MARGIN_PT_SIZE = 36; | ||
/** | ||
* The levels of indentation supported by default. Can be overridden. | ||
*/ | ||
var INDENT_LEVELS = [0, 7]; | ||
/** | ||
* The min indentation level. | ||
*/ | ||
var MIN_INDENT_LEVEL = 0; | ||
/** | ||
* The default maximum level of indentation allowed. | ||
*/ | ||
var MAX_INDENT_LEVEL = 7; | ||
/** | ||
* The attribute to use for storing the indent value. | ||
*/ | ||
var INDENT_ATTRIBUTE = 'data-indent'; | ||
/** | ||
* Values which can safely be ignored when styling nodes. | ||
*/ | ||
var EMPTY_CSS_VALUE = /*#__PURE__*/new Set(['', '0%', '0pt', '0px']); | ||
/** | ||
* The default line spacing values. | ||
*/ | ||
var LINE_SPACING_VALUES = ['100%', '115%', '150%', // Default value. | ||
'200%']; | ||
/** | ||
* Regex for accepting a value as a valid alignment name. | ||
*/ | ||
var ALIGN_PATTERN = /(left|right|center|justify)/; | ||
/** | ||
* Regex for matching sizes in the DOM. | ||
*/ | ||
var SIZE_PATTERN = /([\d.]+)(px|pt)/i; | ||
/** | ||
* The default pixel to pt font size ratio. | ||
* | ||
* @see https://github.com/chanzuckerberg/czi-prosemirror/blob/52e34840d73fccc46637314bf4b4be71147112d4/src/convertToCSSPTValue.js#L7 | ||
*/ | ||
var PIXEL_TO_PT_RATIO = 0.7518796992481203; // 1 / 1.33. | ||
/** | ||
* The default pt to pixel ratio. | ||
*/ | ||
var PT_TO_PIXEL_RATIO = 1.33; | ||
/** | ||
* The default font sizes for the editor. | ||
*/ | ||
var FONT_PT_SIZES = [8, 9, 10, 11, 12, 14, 18, 24, 30, 36, 48, 60, 72, 90]; | ||
var CSS_ROTATE_PATTERN = /rotate\(([\d.]+)rad\)/i; | ||
exports.ALIGN_PATTERN = ALIGN_PATTERN; | ||
exports.CSS_ROTATE_PATTERN = CSS_ROTATE_PATTERN; | ||
exports.EDITOR_CLASS_NAME = EDITOR_CLASS_NAME; | ||
exports.EDITOR_CLASS_SELECTOR = EDITOR_CLASS_SELECTOR; | ||
exports.EMPTY_CSS_VALUE = EMPTY_CSS_VALUE; | ||
exports.EMPTY_NODE = EMPTY_NODE; | ||
exports.EMPTY_PARAGRAPH_NODE = EMPTY_PARAGRAPH_NODE; | ||
exports.FONT_PT_SIZES = FONT_PT_SIZES; | ||
exports.INDENT_ATTRIBUTE = INDENT_ATTRIBUTE; | ||
exports.INDENT_LEVELS = INDENT_LEVELS; | ||
exports.INDENT_MARGIN_PT_SIZE = INDENT_MARGIN_PT_SIZE; | ||
exports.LEAF_NODE_REPLACING_CHARACTER = LEAF_NODE_REPLACING_CHARACTER; | ||
exports.LINE_SPACING_VALUES = LINE_SPACING_VALUES; | ||
exports.MAX_INDENT_LEVEL = MAX_INDENT_LEVEL; | ||
exports.MIN_INDENT_LEVEL = MIN_INDENT_LEVEL; | ||
exports.NON_BREAKING_SPACE_CHAR = NON_BREAKING_SPACE_CHAR; | ||
exports.NULL_CHARACTER = NULL_CHARACTER; | ||
exports.PIXEL_TO_PT_RATIO = PIXEL_TO_PT_RATIO; | ||
exports.PT_TO_PIXEL_RATIO = PT_TO_PIXEL_RATIO; | ||
exports.SELECTED_NODE_CLASS_NAME = SELECTED_NODE_CLASS_NAME; | ||
exports.SELECTED_NODE_CLASS_SELECTOR = SELECTED_NODE_CLASS_SELECTOR; | ||
exports.SIZE_PATTERN = SIZE_PATTERN; | ||
exports.ZERO_WIDTH_SPACE_CHAR = ZERO_WIDTH_SPACE_CHAR; | ||
exports.__INTERNAL_REMIRROR_IDENTIFIER_KEY__ = __INTERNAL_REMIRROR_IDENTIFIER_KEY__; |
@@ -64,17 +64,7 @@ "use strict"; | ||
ErrorConstant.I18N_CONTEXT = "RMR0300"; | ||
}(exports.ErrorConstant || (exports.ErrorConstant = {})); | ||
var INDENT_MARGIN_PT_SIZE = 36, INDENT_LEVELS = [ 0, 7 ], MIN_INDENT_LEVEL = 0, MAX_INDENT_LEVEL = 7, INDENT_ATTRIBUTE = "data-indent", EMPTY_CSS_VALUE = new Set([ "", "0%", "0pt", "0px" ]), LINE_SPACING_VALUES = [ "100%", "115%", "150%", "200%" ], ALIGN_PATTERN = /(left|right|center|justify)/, SIZE_PATTERN = /([\d.]+)(px|pt)/i, PIXEL_TO_PT_RATIO = .7518796992481203, PT_TO_PIXEL_RATIO = 1.33, FONT_PT_SIZES = [ 8, 9, 10, 11, 12, 14, 18, 24, 30, 36, 48, 60, 72, 90 ], CSS_ROTATE_PATTERN = /rotate\(([\d.]+)rad\)/i; | ||
exports.ALIGN_PATTERN = ALIGN_PATTERN, exports.CSS_ROTATE_PATTERN = CSS_ROTATE_PATTERN, | ||
exports.EDITOR_CLASS_NAME = EDITOR_CLASS_NAME, exports.EDITOR_CLASS_SELECTOR = EDITOR_CLASS_SELECTOR, | ||
exports.EMPTY_CSS_VALUE = EMPTY_CSS_VALUE, exports.EMPTY_NODE = EMPTY_NODE, exports.EMPTY_PARAGRAPH_NODE = EMPTY_PARAGRAPH_NODE, | ||
exports.FONT_PT_SIZES = FONT_PT_SIZES, exports.INDENT_ATTRIBUTE = INDENT_ATTRIBUTE, | ||
exports.INDENT_LEVELS = INDENT_LEVELS, exports.INDENT_MARGIN_PT_SIZE = INDENT_MARGIN_PT_SIZE, | ||
exports.LEAF_NODE_REPLACING_CHARACTER = LEAF_NODE_REPLACING_CHARACTER, exports.LINE_SPACING_VALUES = LINE_SPACING_VALUES, | ||
exports.MAX_INDENT_LEVEL = MAX_INDENT_LEVEL, exports.MIN_INDENT_LEVEL = MIN_INDENT_LEVEL, | ||
}(exports.ErrorConstant || (exports.ErrorConstant = {})), exports.EDITOR_CLASS_NAME = EDITOR_CLASS_NAME, | ||
exports.EDITOR_CLASS_SELECTOR = EDITOR_CLASS_SELECTOR, exports.EMPTY_NODE = EMPTY_NODE, | ||
exports.EMPTY_PARAGRAPH_NODE = EMPTY_PARAGRAPH_NODE, exports.LEAF_NODE_REPLACING_CHARACTER = LEAF_NODE_REPLACING_CHARACTER, | ||
exports.NON_BREAKING_SPACE_CHAR = NON_BREAKING_SPACE_CHAR, exports.NULL_CHARACTER = NULL_CHARACTER, | ||
exports.PIXEL_TO_PT_RATIO = PIXEL_TO_PT_RATIO, exports.PT_TO_PIXEL_RATIO = PT_TO_PIXEL_RATIO, | ||
exports.SELECTED_NODE_CLASS_NAME = SELECTED_NODE_CLASS_NAME, exports.SELECTED_NODE_CLASS_SELECTOR = SELECTED_NODE_CLASS_SELECTOR, | ||
exports.SIZE_PATTERN = SIZE_PATTERN, exports.ZERO_WIDTH_SPACE_CHAR = ZERO_WIDTH_SPACE_CHAR, | ||
exports.__INTERNAL_REMIRROR_IDENTIFIER_KEY__ = __INTERNAL_REMIRROR_IDENTIFIER_KEY__; | ||
exports.ZERO_WIDTH_SPACE_CHAR = ZERO_WIDTH_SPACE_CHAR, exports.__INTERNAL_REMIRROR_IDENTIFIER_KEY__ = __INTERNAL_REMIRROR_IDENTIFIER_KEY__; |
@@ -253,67 +253,2 @@ /** | ||
/** | ||
* The size of the default indentation size (in pt). | ||
*/ | ||
var INDENT_MARGIN_PT_SIZE = 36; | ||
/** | ||
* The levels of indentation supported by default. Can be overridden. | ||
*/ | ||
var INDENT_LEVELS = [0, 7]; | ||
/** | ||
* The min indentation level. | ||
*/ | ||
var MIN_INDENT_LEVEL = 0; | ||
/** | ||
* The default maximum level of indentation allowed. | ||
*/ | ||
var MAX_INDENT_LEVEL = 7; | ||
/** | ||
* The attribute to use for storing the indent value. | ||
*/ | ||
var INDENT_ATTRIBUTE = 'data-indent'; | ||
/** | ||
* Values which can safely be ignored when styling nodes. | ||
*/ | ||
var EMPTY_CSS_VALUE = /*#__PURE__*/new Set(['', '0%', '0pt', '0px']); | ||
/** | ||
* The default line spacing values. | ||
*/ | ||
var LINE_SPACING_VALUES = ['100%', '115%', '150%', // Default value. | ||
'200%']; | ||
/** | ||
* Regex for accepting a value as a valid alignment name. | ||
*/ | ||
var ALIGN_PATTERN = /(left|right|center|justify)/; | ||
/** | ||
* Regex for matching sizes in the DOM. | ||
*/ | ||
var SIZE_PATTERN = /([\d.]+)(px|pt)/i; | ||
/** | ||
* The default pixel to pt font size ratio. | ||
* | ||
* @see https://github.com/chanzuckerberg/czi-prosemirror/blob/52e34840d73fccc46637314bf4b4be71147112d4/src/convertToCSSPTValue.js#L7 | ||
*/ | ||
var PIXEL_TO_PT_RATIO = 0.7518796992481203; // 1 / 1.33. | ||
/** | ||
* The default pt to pixel ratio. | ||
*/ | ||
var PT_TO_PIXEL_RATIO = 1.33; | ||
/** | ||
* The default font sizes for the editor. | ||
*/ | ||
var FONT_PT_SIZES = [8, 9, 10, 11, 12, 14, 18, 24, 30, 36, 48, 60, 72, 90]; | ||
var CSS_ROTATE_PATTERN = /rotate\(([\d.]+)rad\)/i; | ||
export { ALIGN_PATTERN, CSS_ROTATE_PATTERN, EDITOR_CLASS_NAME, EDITOR_CLASS_SELECTOR, EMPTY_CSS_VALUE, EMPTY_NODE, EMPTY_PARAGRAPH_NODE, ErrorConstant, ExtensionPriority, ExtensionTag, ExtensionType, FONT_PT_SIZES, INDENT_ATTRIBUTE, INDENT_LEVELS, INDENT_MARGIN_PT_SIZE, LEAF_NODE_REPLACING_CHARACTER, LINE_SPACING_VALUES, MAX_INDENT_LEVEL, MIN_INDENT_LEVEL, ManagerPhase, MarkGroup, NON_BREAKING_SPACE_CHAR, NULL_CHARACTER, NodeGroup, PIXEL_TO_PT_RATIO, PT_TO_PIXEL_RATIO, RemirrorIdentifier, SELECTED_NODE_CLASS_NAME, SELECTED_NODE_CLASS_SELECTOR, SIZE_PATTERN, ZERO_WIDTH_SPACE_CHAR, __INTERNAL_REMIRROR_IDENTIFIER_KEY__ }; | ||
export { EDITOR_CLASS_NAME, EDITOR_CLASS_SELECTOR, EMPTY_NODE, EMPTY_PARAGRAPH_NODE, ErrorConstant, ExtensionPriority, ExtensionTag, ExtensionType, LEAF_NODE_REPLACING_CHARACTER, ManagerPhase, MarkGroup, NON_BREAKING_SPACE_CHAR, NULL_CHARACTER, NodeGroup, RemirrorIdentifier, SELECTED_NODE_CLASS_NAME, SELECTED_NODE_CLASS_SELECTOR, ZERO_WIDTH_SPACE_CHAR, __INTERNAL_REMIRROR_IDENTIFIER_KEY__ }; |
@@ -1,3 +0,2 @@ | ||
export * from './core-constants'; | ||
export * from './error-constants'; | ||
export * from './node-constants'; | ||
export { EDITOR_CLASS_NAME, EDITOR_CLASS_SELECTOR, EMPTY_NODE, EMPTY_PARAGRAPH_NODE, ExtensionPriority, ExtensionTag, ExtensionType, LEAF_NODE_REPLACING_CHARACTER, ManagerPhase, MarkGroup, NON_BREAKING_SPACE_CHAR, NULL_CHARACTER, NodeGroup, RemirrorIdentifier, SELECTED_NODE_CLASS_NAME, SELECTED_NODE_CLASS_SELECTOR, ZERO_WIDTH_SPACE_CHAR, __INTERNAL_REMIRROR_IDENTIFIER_KEY__, } from './core-constants'; | ||
export { ErrorConstant } from './error-constants'; |
{ | ||
"name": "@remirror/core-constants", | ||
"version": "1.0.0-next.13", | ||
"version": "1.0.0-next.16", | ||
"description": "The core constants used throughout the remirror codebase", | ||
@@ -14,2 +14,6 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/core-constants", | ||
"module": "dist/core-constants.esm.js", | ||
"browser": { | ||
"./dist/core-constants.cjs.js": "./dist/core-constants.browser.cjs.js", | ||
"./dist/core-constants.esm.js": "./dist/core-constants.browser.esm.js" | ||
}, | ||
"types": "dist/core-constants.cjs.d.ts", | ||
@@ -20,3 +24,3 @@ "files": [ | ||
"dependencies": { | ||
"@babel/runtime": "^7.10.5" | ||
"@babel/runtime": "^7.11.0" | ||
}, | ||
@@ -23,0 +27,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58667
14
1390
Updated@babel/runtime@^7.11.0