Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remirror/core-utils

Package Overview
Dependencies
Maintainers
1
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/core-utils - npm Package Compare versions

Comparing version 1.0.0-next.42 to 1.0.0-next.43

8

CHANGELOG.md
# @remirror/core-utils
## 1.0.0-next.43
> 2020-09-28
### Minor Changes
- [`b030cb6e`](https://github.com/remirror/remirror/commit/b030cb6e50cb6fdc045a4680f4861ad145609197) [#728](https://github.com/remirror/remirror/pull/728) Thanks [@ifiokjr](https://github.com/ifiokjr)! - Add `text` property to the return value from `getMarkRange`. It's a common use case when getting the range of the mark to also extract the text content.
## 1.0.0-next.42

@@ -4,0 +12,0 @@

12

dist/core-utils.cjs.prod.js

@@ -7,8 +7,4 @@ "use strict";

var pm = require("@remirror/pm"), _createForOfIteratorHelper = require("@babel/runtime/helpers/createForOfIteratorHelper"), coreHelpers = require("@remirror/core-helpers"), state = require("@remirror/pm/state"), transform = require("@remirror/pm/transform"), _slicedToArray = require("@babel/runtime/helpers/slicedToArray"), _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"), _objectSpread = require("@babel/runtime/helpers/objectSpread2");
var pm = require("@remirror/pm"), _createForOfIteratorHelper = require("@babel/runtime/helpers/createForOfIteratorHelper"), coreHelpers = require("@remirror/core-helpers"), state = require("@remirror/pm/state"), transform = require("@remirror/pm/transform"), _slicedToArray = require("@babel/runtime/helpers/slicedToArray"), _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"), _objectSpread = require("@babel/runtime/helpers/objectSpread2"), coreConstants = require("@remirror/core-constants"), model = require("@remirror/pm/model"), inputrules = require("@remirror/pm/inputrules"), suggest = require("@remirror/pm/suggest");
require("@remirror/core-constants");
var model = require("@remirror/pm/model"), inputrules = require("@remirror/pm/inputrules"), suggest = require("@remirror/pm/suggest");
function _interopDefault(e) {

@@ -143,5 +139,7 @@ return e && e.__esModule ? e : {

startPos -= $pos.parent.child(startIndex).nodeSize;
var from = startPos, to = startPos + start.node.nodeSize;
return {
from: startPos,
to: startPos + start.node.nodeSize,
from: from,
to: to,
text: $pos.doc.textBetween(from, to, coreConstants.LEAF_NODE_REPLACING_CHARACTER, "\n\n"),
mark: mark

@@ -148,0 +146,0 @@ };

@@ -112,3 +112,3 @@ import type { AnchorHeadParameter, AnyConstructor, EditorSchema, EditorState, FromToParameter, MarkAttributes, MarkTypeParameter, PrimitiveSelection, ProsemirrorNode, ProsemirrorNodeParameter, RemirrorContentType, RemirrorJSON, RenderEnvironment, ResolvedPos, SchemaParameter, Selection, Transaction, TrStateParameter } from '@remirror/core-types';

export declare function getMarkAttributes(trState: EditorState | Transaction, type: MarkType): MarkAttributes | false;
interface GetMarkRangeParameter extends FromToParameter {
interface GetMarkRange extends FromToParameter {
/**

@@ -118,2 +118,6 @@ * The mark that was found within the active range.

mark: Mark;
/**
* The text contained by this mark.
*/
text: string;
}

@@ -129,3 +133,3 @@ /**

*/
export declare function getMarkRange($pos: ResolvedPos, type: MarkType): GetMarkRangeParameter | undefined;
export declare function getMarkRange($pos: ResolvedPos, type: MarkType): GetMarkRange | undefined;
/**

@@ -132,0 +136,0 @@ * Get all the ranges of changes for the provided transaction.

{
"name": "@remirror/core-utils",
"version": "1.0.0-next.42",
"version": "1.0.0-next.43",
"description": "Core utilities for dealing with the dom and prosemirror within remirror",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/core-utils",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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