ember-mobiledoc-editor
Advanced tools
Comparing version 0.5.8-0 to 0.5.8-1
@@ -59,2 +59,3 @@ import Ember from 'ember'; | ||
autofocus: this.get('autofocus'), | ||
cardOptions: this.get('cardOptions'), | ||
cards: this.get('cards') || [], | ||
@@ -163,3 +164,3 @@ atoms: this.get('atoms') || [] | ||
editorOptions.mobiledoc = mobiledoc; | ||
editorOptions.cardOptions = { | ||
let componentHooks = { | ||
[ADD_CARD_HOOK]: ({env, options, payload}, isEditing=false) => { | ||
@@ -183,2 +184,3 @@ let cardId = Ember.uuid(); | ||
env, | ||
options, | ||
editor, | ||
@@ -208,2 +210,3 @@ postModel: env.postModel | ||
callbacks: env, | ||
options, | ||
editor, | ||
@@ -224,2 +227,7 @@ postModel: env.postModel | ||
}; | ||
if (editorOptions.cardOptions) { | ||
editorOptions.cardOptions = assign(editorOptions.cardOptions, componentHooks); | ||
} else { | ||
editorOptions.cardOptions = componentHooks; | ||
} | ||
editor = new Editor(editorOptions); | ||
@@ -226,0 +234,0 @@ editor.willRender(() => { |
@@ -0,4 +1,15 @@ | ||
<a name="0.5.8-1"></a> | ||
## 0.5.8-1 (2017-02-09) | ||
* Bump to ember-cli 2.12.0-beta.1 ([53f072e](https://github.com/bustlelabs/ember-mobiledoc-editor/commit/53f072e)) | ||
* cardHooks take priority over user card options ([d35a903](https://github.com/bustlelabs/ember-mobiledoc-editor/commit/d35a903)) | ||
* Pass card options to card/atom components ([b451a22](https://github.com/bustlelabs/ember-mobiledoc-editor/commit/b451a22)) | ||
* Update editor class in acceptance test example ([55616bc](https://github.com/bustlelabs/ember-mobiledoc-editor/commit/55616bc)) | ||
<a name="0.5.8-0"></a> | ||
## 0.5.8-0 (2016-11-17) | ||
* 0.5.8-0 ([050a8c9](https://github.com/bustlelabs/ember-mobiledoc-editor/commit/050a8c9)) | ||
* Bump deps to mobiledoc-kit beta ([2a4eead](https://github.com/bustlelabs/ember-mobiledoc-editor/commit/2a4eead)) | ||
@@ -5,0 +16,0 @@ * Schedule active setup into runloop afterRender ([9813a23](https://github.com/bustlelabs/ember-mobiledoc-editor/commit/9813a23)) |
@@ -1,2 +0,2 @@ | ||
/*jshint node:true*/ | ||
/* eslint-env node */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ |
The MIT License (MIT) | ||
Copyright (c) 2016 | ||
Copyright (c) 2017 | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
{ | ||
"name": "ember-mobiledoc-editor", | ||
"version": "0.5.8-0", | ||
"version": "0.5.8-1", | ||
"description": "A Mobiledoc editor for Ember.js apps", | ||
"keywords": [ | ||
"ember-addon" | ||
], | ||
"license": "MIT", | ||
"author": "", | ||
"directories": { | ||
@@ -9,27 +14,30 @@ "doc": "doc", | ||
}, | ||
"repository": "bustlelabs/ember-mobiledoc-editor", | ||
"scripts": { | ||
"build": "ember build", | ||
"start": "ember server", | ||
"test": "ember try:testall", | ||
"test": "ember try:each", | ||
"update-changelog": "conventional-changelog -i CHANGELOG.md -r 0 -s", | ||
"version": "npm run update-changelog && git add CHANGELOG.md" | ||
}, | ||
"repository": "bustlelabs/ember-mobiledoc-editor", | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
"dependencies": { | ||
"broccoli-funnel": "^1.0.1", | ||
"broccoli-merge-trees": "^1.1.1", | ||
"ember-cli-babel": "^5.1.7", | ||
"ember-cli-htmlbars": "^1.1.1", | ||
"ember-wormhole": "^0.5.0", | ||
"mobiledoc-kit": "^0.10.14-0" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"broccoli-asset-rev": "^2.4.2", | ||
"broccoli-asset-rev": "^2.4.5", | ||
"conventional-changelog": "^1.1.0", | ||
"conventional-changelog-cli": "^1.1.0", | ||
"ember-cli": "2.5.0", | ||
"ember-cli-app-version": "^1.0.0", | ||
"ember-cli-dependency-checker": "^1.2.0", | ||
"ember-cli-htmlbars-inline-precompile": "^0.3.1", | ||
"ember-cli-inject-live-reload": "^1.4.0", | ||
"ember-cli-jshint": "^1.0.0", | ||
"ember-cli-qunit": "^1.4.0", | ||
"ember-cli": "2.12.0-beta.1", | ||
"ember-cli-dependency-checker": "^1.3.0", | ||
"ember-cli-eslint": "^3.0.2", | ||
"ember-cli-htmlbars-inline-precompile": "^0.3.3", | ||
"ember-cli-inject-live-reload": "^1.4.1", | ||
"ember-cli-qunit": "^3.1.0", | ||
"ember-cli-release": "0.2.8", | ||
"ember-cli-shims": "^1.0.2", | ||
"ember-cli-sri": "^2.1.0", | ||
@@ -39,20 +47,10 @@ "ember-cli-uglify": "^1.2.0", | ||
"ember-export-application-global": "^1.0.5", | ||
"ember-load-initializers": "^0.5.1", | ||
"ember-load-initializers": "^0.6.0", | ||
"ember-resolver": "^2.0.3", | ||
"ember-try": "^0.2.2", | ||
"loader.js": "^4.0.1", | ||
"ember-source": "^2.12.0-beta.1", | ||
"loader.js": "^4.1.0", | ||
"mobiledoc-dom-renderer": "^0.5.4" | ||
}, | ||
"keywords": [ | ||
"ember-addon", | ||
"mobiledoc", | ||
"mobiledoc-editor" | ||
], | ||
"dependencies": { | ||
"broccoli-funnel": "^1.0.1", | ||
"broccoli-merge-trees": "^1.1.1", | ||
"ember-cli-babel": "^5.1.6", | ||
"ember-cli-htmlbars": "^1.1.0", | ||
"ember-wormhole": "^0.5.0", | ||
"mobiledoc-kit": "^0.10.14-0" | ||
"engines": { | ||
"node": ">= 4" | ||
}, | ||
@@ -59,0 +57,0 @@ "ember-addon": { |
@@ -311,3 +311,3 @@ ## ember-mobiledoc-editor | ||
andThen(() => { | ||
let editorEl = find('.mobiledoc-kit')[0]; | ||
let editorEl = find('.mobiledoc-editor__editor')[0]; | ||
return insertText(editorEl, 'here is some text'); | ||
@@ -314,0 +314,0 @@ /* Or: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
62657
40
606
+ Addedbrowserslist@4.24.2(transitive)
+ Addedcaniuse-lite@1.0.30001687(transitive)
+ Addeddunder-proto@1.0.0(transitive)
+ Addedelectron-to-chromium@1.5.73(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedresolve@1.22.8(transitive)
- Removedbrowserslist@4.24.3(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removedcaniuse-lite@1.0.30001689(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedelectron-to-chromium@1.5.74(transitive)
- Removedis-core-module@2.16.0(transitive)
- Removedjson-stable-stringify@1.2.0(transitive)
- Removedresolve@1.22.9(transitive)
Updatedember-cli-babel@^5.1.7
Updatedember-cli-htmlbars@^1.1.1