diff --git a/bower.json b/bower.json index 28fc923..52b43d9 100644 --- a/bower.json +++ b/bower.json @@ -1,8 +1,8 @@ { "name": "angular-json-editor", - "version": "0.0.1", + "version": "0.1.0", "authors": [ - "Rodik Hanukaev ", + "Rodik Hanukaev ", "Topaz Bar " ], "description": "angular.js directive for jdorn's json-editor", @@ -20,7 +20,7 @@ "node_modules" ], "dependencies": { - "json-editor": "~0.6.17", - "angular": "*" + "json-editor": "~0.7.13", + "angular": "1.*" } } diff --git a/dist/angular-json-editor.min.js b/dist/angular-json-editor.min.js index 67b9f99..8ecb49b 100644 --- a/dist/angular-json-editor.min.js +++ b/dist/angular-json-editor.min.js @@ -1,2 +1,2 @@ -// angular-json-editor v0.0.1 +// angular-json-editor v0.0.2 !function(a,b){"use strict";b.module("angular-json-editor",[]).constant("JsonEditorConfig",{iconlib:"bootstrap3",theme:"bootstrap3"}).directive("jsonEditor",["$q","JsonEditorConfig",function(a,c){return{restrict:"E",transclude:!0,scope:{schema:"=",startval:"=",buttonsController:"@"},controller:["$scope","$attrs","$controller",function(a,c,d){var e,f,g=c.buttonsController;if(!b.isString(g)||""===g)throw new Error("json-editor: buttons-controller attribute must be specified.");f={$scope:a};try{e=d(g,f)}catch(h){throw new Error("json-editor: buttons-controller attribute must be a valid controller.")}}],link:function(d,e,f,g,h){var i,j=a.when({}),k=a.when(null);if(d.isValid=!1,!b.isString(f.schema))throw new Error("json-editor: schema attribute has to be defined.");b.isObject(d.schema)&&(k=a.when(d.schema)),b.isObject(d.startval)&&(i=d.startval,j=a.when(b.isDefined(i.$promise)?i.$promise:i)),a.all([k,j]).then(function(a){var f=a[0].data||a[0],g=a[1];if(null===f)throw new Error("json-editor: could not resolve schema data.");b.extend(c,{startval:g,schema:f}),d.editor=new JSONEditor(e[0],c);var i=d.editor;i.on("ready",function(){d.isValid=0===i.validate().length}),i.on("change",function(){d.$apply(function(){d.isValid=0===i.validate().length})});var j=h(d,function(a){return a});e.append(j)})}}}])}(window,angular); \ No newline at end of file diff --git a/package.json b/package.json index 7634100..859e036 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,14 @@ { "name": "angular-json-editor", - "version": "0.0.1", + "version": "0.1.0", + "repository": { + "type": "git", + "url": "git://github.com/rodikh/angular-json-editor.git" + }, "devDependencies": { "grunt": "0.4.*", "grunt-contrib-jshint": "0.10.*", - "grunt-jscs-checker": "0.4.*", + "grunt-jscs": "0.8.*", "grunt-contrib-uglify": "0.4.*", "grunt-contrib-concat": "0.4.*", "grunt-contrib-clean": "0.5.*",