@annotation-studio/bridge
Advanced tools
Comparing version 1.0.0-next.5a1be109 to 1.0.0-next.5f131126
@@ -20,3 +20,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var boxSelector = parseTarget(target, scale); | ||
if (!boxSelector || typeof boxSelector.target === 'string') { | ||
if (!boxSelector || !boxSelector.target || !boxSelector.target.x || !boxSelector.target.y) { | ||
return { type: WHOLE_CANVAS_SELECTOR, target: boxSelector && boxSelector.target || '' }; | ||
@@ -23,0 +23,0 @@ } |
@@ -148,3 +148,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
dispatch(createDraft(scope, resources, captureModelId, motivation || defaultMotivation, selectors, draftDefaults, null, path, name)); | ||
dispatch(createDraft(scope, { | ||
emptyInput: resources, | ||
template: captureModelId, | ||
motivation: motivation || defaultMotivation, | ||
selectors: selectors, | ||
draftDefaults: draftDefaults, | ||
path: path, | ||
name: name | ||
})); | ||
}; | ||
@@ -151,0 +159,0 @@ } |
@@ -43,3 +43,3 @@ 'use strict'; | ||
var boxSelector = parseTarget(target, scale); | ||
if (!boxSelector || typeof boxSelector.target === 'string') { | ||
if (!boxSelector || !boxSelector.target || !boxSelector.target.x || !boxSelector.target.y) { | ||
return { type: _vocab.WHOLE_CANVAS_SELECTOR, target: boxSelector && boxSelector.target || '' }; | ||
@@ -46,0 +46,0 @@ } |
@@ -176,3 +176,11 @@ 'use strict'; | ||
dispatch((0, _drafts.createDraft)(scope, resources, captureModelId, motivation || defaultMotivation, selectors, draftDefaults, null, path, name)); | ||
dispatch((0, _drafts.createDraft)(scope, { | ||
emptyInput: resources, | ||
template: captureModelId, | ||
motivation: motivation || defaultMotivation, | ||
selectors: selectors, | ||
draftDefaults: draftDefaults, | ||
path: path, | ||
name: name | ||
})); | ||
}; | ||
@@ -179,0 +187,0 @@ } |
{ | ||
"name": "@annotation-studio/bridge", | ||
"version": "1.0.0-next.5a1be109", | ||
"version": "1.0.0-next.5f131126", | ||
"description": "Describe annotation-bridge here", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"watch": "./bin/watch", | ||
"watch": "nwb-watch-module", | ||
"build": "nwb build-web-module", | ||
@@ -20,3 +20,3 @@ "clean": "nwb clean-module", | ||
"test:watch": "npm run test -- --watch", | ||
"prepublish": "npm run build" | ||
"prepublish": "NODE_ENV=production npm run build" | ||
}, | ||
@@ -27,11 +27,12 @@ "dependencies": { | ||
"peerDependencies": { | ||
"@annotation-studio/redux": "^1.0.0-rc.13" | ||
"@annotation-studio/redux": "^1.0.0-rc.14" | ||
}, | ||
"devDependencies": { | ||
"@annotation-studio/redux": "^1.0.0-next.5a1be109", | ||
"@fesk/test-environment": "^1.0.0-next.5a1be109", | ||
"@annotation-studio/redux": "^1.0.0-next.5f131126", | ||
"@fesk/test-environment": "^1.0.0-next.5f131126", | ||
"babel-jest": "^20.0.3", | ||
"jest": "^20.0.0", | ||
"nwb": "^0.21.5", | ||
"react": "^15.6.1" | ||
"nwb-watch": "^1.0.0-next.5f131126", | ||
"react": "^15.6.2" | ||
}, | ||
@@ -38,0 +39,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
70105
34
1713
7