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

mobiledoc-kit

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobiledoc-kit - npm Package Compare versions

Comparing version 0.10.21 to 0.11.0

tmp/babel-output_path-tzkVIYGF.tmp/mobiledoc-kit/index.js

12

dist/commonjs/mobiledoc-kit/editor/event-manager.js

@@ -34,5 +34,3 @@ 'use strict';

this.modifierKeys = {
shift: false,
alt: false,
ctrl: false
shift: false
};

@@ -250,5 +248,5 @@

var unit = 'char';
if (this.modifierKeys.alt && _utilsBrowser['default'].isMac()) {
if (key.altKey && _utilsBrowser['default'].isMac()) {
unit = 'word';
} else if (this.modifierKeys.ctrl && _utilsBrowser['default'].isWin()) {
} else if (key.ctrlKey && _utilsBrowser['default'].isWin()) {
unit = 'word';

@@ -368,6 +366,2 @@ }

this.modifierKeys.shift = isDown;
} else if (key.isAltKey()) {
this.modifierKeys.alt = isDown;
} else if (key.isCtrlKey()) {
this.modifierKeys.ctrl = isDown;
}

@@ -374,0 +368,0 @@ }

@@ -347,3 +347,5 @@ 'use strict';

var visitor = new Visitor(this, cursorPosition);
visitor.visit(newPost);
if (!newPost.isBlank) {
visitor.visit(newPost);
}
return visitor.cursorPosition;

@@ -350,0 +352,0 @@ }

'use strict';
exports['default'] = '0.10.21';
exports['default'] = '0.11.0';
{
"name": "mobiledoc-kit",
"version": "0.10.21",
"version": "0.11.0",
"description": "A toolkit for building WYSIWYG editors with Mobiledoc",
"repository": "https://github.com/bustle/mobiledoc-kit",
"scripts": {
"start": "broccoli serve --host 0.0.0.0",
"test:ci": "npm run build:docs && npm run build && testem ci -f testem-ci.js",
"test": "npm run build:docs && npm run build && testem ci -f testem.js",
"build": "rm -rf dist && broccoli build dist",
"build:docs": "jsdoc -c ./.jsdoc",
"start": "./node_modules/.bin/broccoli serve --host 0.0.0.0",
"test:ci": "npm run build:docs && npm run build && ./node_modules/.bin/testem ci -f testem-ci.js",
"test": "npm run build:docs && npm run build && ./node_modules/.bin/testem ci -f testem.js",
"build": "rm -rf dist && ./node_modules/.bin/broccoli build dist",
"build:docs": "./node_modules/.bin/jsdoc -c ./.jsdoc",
"build:website": "npm run build && npm run build:docs && ./bin/build-website.sh",
"deploy:website": "./bin/deploy-website.sh",
"update-changelog": "conventional-changelog -i CHANGELOG.md -r 0 -s",
"update-changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -r 0 -s",
"version": "npm run update-changelog && git add CHANGELOG.md",

@@ -47,5 +47,5 @@ "prepublish": "npm run build"

"broccoli-cli": "^1.0.0",
"broccoli-funnel": "^1.2.0",
"broccoli-funnel": "^2.0.0",
"broccoli-livereload": "^1.0.0",
"broccoli-merge-trees": "^2.0.0",
"broccoli-merge-trees": "^3.0.0",
"broccoli-multi-builder": "^0.3.0",

@@ -60,5 +60,5 @@ "broccoli-sane-watcher": "^1.1.4",

"saucie": "^3.3.0",
"testem": "^1.18.4"
"testem": "^2.0.0"
},
"main": "dist/commonjs/mobiledoc-kit/index.js"
}

@@ -34,2 +34,3 @@ # Mobiledoc Kit

| In-Browser (DOM) Rendering, with Ember | [ember-mobiledoc-dom-renderer](https://github.com/bustle/ember-mobiledoc-dom-renderer) |
| React Server and Browser Renderer | [mobiledoc-react-renderer](https://github.com/dailybeast/mobiledoc-react-renderer) |

@@ -97,3 +98,3 @@ Mobiledoc is a deliberately simple and terse format, and you are encouraged to write your own renderer if you have other target output formats (e.g., a PDF renderer, an iOS Native Views Renderer, etc.).

* `modiledoc` - [object] A mobiledoc object to load and edit.
* `mobiledoc` - [object] A mobiledoc object to load and edit.
* `placeholder` - [string] default text to show before a user starts typing.

@@ -100,0 +101,0 @@ * `spellcheck` - [boolean] whether to enable spellcheck. Defaults to true.

@@ -24,5 +24,3 @@ import assert from 'mobiledoc-kit/utils/assert';

this.modifierKeys = {
shift: false,
alt: false,
ctrl: false
shift: false
};

@@ -188,5 +186,5 @@

let unit = 'char';
if (this.modifierKeys.alt && Browser.isMac()) {
if (key.altKey && Browser.isMac()) {
unit = 'word';
} else if (this.modifierKeys.ctrl && Browser.isWin()) {
} else if (key.ctrlKey && Browser.isWin()) {
unit = 'word';

@@ -289,6 +287,2 @@ }

this.modifierKeys.shift = isDown;
} else if (key.isAltKey()) {
this.modifierKeys.alt = isDown;
} else if (key.isCtrlKey()) {
this.modifierKeys.ctrl = isDown;
}

@@ -295,0 +289,0 @@ }

@@ -281,5 +281,7 @@ import assert from 'mobiledoc-kit/utils/assert';

let visitor = new Visitor(this, cursorPosition);
visitor.visit(newPost);
if (!newPost.isBlank) {
visitor.visit(newPost);
}
return visitor.cursorPosition;
}
}

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 not supported yet

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

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