chore(project): update to min-dom@2
This commit is contained in:
parent
81aa29e7c6
commit
e8e5e2ced9
|
@ -10,9 +10,9 @@ var assign = require('lodash/object/assign'),
|
||||||
omit = require('lodash/object/omit'),
|
omit = require('lodash/object/omit'),
|
||||||
isNumber = require('lodash/lang/isNumber');
|
isNumber = require('lodash/lang/isNumber');
|
||||||
|
|
||||||
var domify = require('min-dom/lib/domify'),
|
var domify = require('min-dom').domify,
|
||||||
domQuery = require('min-dom/lib/query'),
|
domQuery = require('min-dom').query,
|
||||||
domRemove = require('min-dom/lib/remove');
|
domRemove = require('min-dom').remove;
|
||||||
|
|
||||||
var innerSVG = require('tiny-svg/lib/innerSVG');
|
var innerSVG = require('tiny-svg/lib/innerSVG');
|
||||||
|
|
||||||
|
@ -472,7 +472,7 @@ Viewer.prototype._moddleExtensions = {};
|
||||||
/* <project-logo> */
|
/* <project-logo> */
|
||||||
|
|
||||||
var PoweredBy = require('./util/PoweredByUtil'),
|
var PoweredBy = require('./util/PoweredByUtil'),
|
||||||
domEvent = require('min-dom/lib/event');
|
domEvent = require('min-dom').event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the project logo to the diagram container as
|
* Adds the project logo to the diagram container as
|
||||||
|
|
|
@ -28,7 +28,7 @@ var getCirclePath = BpmnRenderUtil.getCirclePath,
|
||||||
getFillColor = BpmnRenderUtil.getFillColor,
|
getFillColor = BpmnRenderUtil.getFillColor,
|
||||||
getStrokeColor = BpmnRenderUtil.getStrokeColor;
|
getStrokeColor = BpmnRenderUtil.getStrokeColor;
|
||||||
|
|
||||||
var domQuery = require('min-dom/lib/query');
|
var domQuery = require('min-dom').query;
|
||||||
|
|
||||||
var svgAppend = require('tiny-svg/lib/append'),
|
var svgAppend = require('tiny-svg/lib/append'),
|
||||||
svgAttr = require('tiny-svg/lib/attr'),
|
svgAttr = require('tiny-svg/lib/attr'),
|
||||||
|
|
|
@ -7,7 +7,7 @@ var inherits = require('inherits');
|
||||||
var assign = require('lodash/object/assign'),
|
var assign = require('lodash/object/assign'),
|
||||||
forEach = require('lodash/collection/forEach');
|
forEach = require('lodash/collection/forEach');
|
||||||
|
|
||||||
var domQuery = require('min-dom/lib/query');
|
var domQuery = require('min-dom').query;
|
||||||
|
|
||||||
var svgAttr = require('tiny-svg/lib/attr');
|
var svgAttr = require('tiny-svg/lib/attr');
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var domify = require('min-dom/lib/domify');
|
var domify = require('min-dom').domify;
|
||||||
|
|
||||||
var domDelegate = require('min-dom/lib/delegate');
|
var domDelegate = require('min-dom').delegate;
|
||||||
|
|
||||||
|
|
||||||
// inlined ../../resources/logo.svg
|
// inlined ../../resources/logo.svg
|
||||||
|
|
|
@ -5326,9 +5326,9 @@
|
||||||
"integrity": "sha512-Ff3XvILu4wfeG7fw5A7Aazigwnyym/XKj0xSPI5LNHQ5ndFnTbDIOAU0/Dt8TjsHYnths4dqhcqhMZR3MbZm8Q=="
|
"integrity": "sha512-Ff3XvILu4wfeG7fw5A7Aazigwnyym/XKj0xSPI5LNHQ5ndFnTbDIOAU0/Dt8TjsHYnths4dqhcqhMZR3MbZm8Q=="
|
||||||
},
|
},
|
||||||
"min-dom": {
|
"min-dom": {
|
||||||
"version": "1.0.0",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/min-dom/-/min-dom-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/min-dom/-/min-dom-2.0.1.tgz",
|
||||||
"integrity": "sha512-YSr1ncvKSBDBV6yxNNzHTYBiqr19MSunlCBrwUkvWs6SGD9m0eRr2WR0s9vKACKALcJo7Ueu9SPQpcuET9tnSA==",
|
"integrity": "sha512-rbaR2x8XR1JyUI5mFcY+TAoLgUXPO7auRcoWAQR4F8eftAPBgZa4/xBDU2AZi6KHTMQb/QDciDXaIf3h4YCA/w==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"closest": "0.0.1",
|
"closest": "0.0.1",
|
||||||
"component-event": "0.1.4",
|
"component-event": "0.1.4",
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
"ids": "^0.2.0",
|
"ids": "^0.2.0",
|
||||||
"inherits": "^2.0.1",
|
"inherits": "^2.0.1",
|
||||||
"lodash": "^3.0.1",
|
"lodash": "^3.0.1",
|
||||||
"min-dom": "^1.0.0",
|
"min-dom": "^2.0.1",
|
||||||
"object-refs": "^0.1.1",
|
"object-refs": "^0.1.1",
|
||||||
"tiny-svg": "^0.1.3"
|
"tiny-svg": "^0.1.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ var coreModule = require('lib/core'),
|
||||||
rendererModule = require('lib/draw'),
|
rendererModule = require('lib/draw'),
|
||||||
modelingModule = require('lib/features/modeling');
|
modelingModule = require('lib/features/modeling');
|
||||||
|
|
||||||
var domQuery = require('min-dom/lib/query');
|
var domQuery = require('min-dom').query;
|
||||||
|
|
||||||
/* global bootstrapViewer, bootstrapModeler, inject */
|
/* global bootstrapViewer, bootstrapModeler, inject */
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@ var getBpmnJS = require('../../../TestHelper').getBpmnJS;
|
||||||
|
|
||||||
var TestContainer = require('mocha-test-container-support');
|
var TestContainer = require('mocha-test-container-support');
|
||||||
|
|
||||||
var domQuery = require('min-dom/lib/query');
|
var domQuery = require('min-dom').query,
|
||||||
|
domQueryAll = require('min-dom').queryAll;
|
||||||
|
|
||||||
var is = require('lib/util/ModelUtil').is;
|
var is = require('lib/util/ModelUtil').is;
|
||||||
|
|
||||||
|
@ -462,7 +463,7 @@ describe('features - context-pad', function() {
|
||||||
dragging.end(canvasEvent({ x: 50, y: 65 }, { ctrlKey: true, metaKey: true }));
|
dragging.end(canvasEvent({ x: 50, y: 65 }, { ctrlKey: true, metaKey: true }));
|
||||||
|
|
||||||
// then
|
// then
|
||||||
var replaceMenu = domQuery.all('[data-id$="-boundary"]', popupMenu._current.container);
|
var replaceMenu = domQueryAll('[data-id$="-boundary"]', popupMenu._current.container);
|
||||||
expect(replaceMenu).to.exist;
|
expect(replaceMenu).to.exist;
|
||||||
expect(replaceMenu.length).to.eql(13);
|
expect(replaceMenu.length).to.eql(13);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ var replacePreviewModule = require('lib/features/replace-preview'),
|
||||||
var is = require('lib/util/ModelUtil').is,
|
var is = require('lib/util/ModelUtil').is,
|
||||||
canvasEvent = require('../../../../util/MockEvents').createCanvasEvent;
|
canvasEvent = require('../../../../util/MockEvents').createCanvasEvent;
|
||||||
|
|
||||||
var domQuery = require('min-dom/lib/query');
|
var domQuery = require('min-dom').query;
|
||||||
|
|
||||||
var ATTACH = { attach: true };
|
var ATTACH = { attach: true };
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,8 @@ var modelingModule = require('lib/features/modeling'),
|
||||||
paletteModule = require('lib/features/palette'),
|
paletteModule = require('lib/features/palette'),
|
||||||
coreModule = require('lib/core');
|
coreModule = require('lib/core');
|
||||||
|
|
||||||
var domQuery = require('min-dom/lib/query');
|
var domQuery = require('min-dom').query,
|
||||||
|
domQueryAll = require('min-dom').queryAll;
|
||||||
|
|
||||||
|
|
||||||
describe('features/palette', function() {
|
describe('features/palette', function() {
|
||||||
|
@ -24,7 +25,7 @@ describe('features/palette', function() {
|
||||||
|
|
||||||
// when
|
// when
|
||||||
var paletteElement = domQuery('.djs-palette', canvas._container);
|
var paletteElement = domQuery('.djs-palette', canvas._container);
|
||||||
var entries = domQuery.all('.entry', paletteElement);
|
var entries = domQueryAll('.entry', paletteElement);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(entries.length).to.equal(13);
|
expect(entries.length).to.equal(13);
|
||||||
|
|
|
@ -11,8 +11,8 @@ var coreModule = require('lib/core'),
|
||||||
replaceMenuProviderModule = require('lib/features/popup-menu'),
|
replaceMenuProviderModule = require('lib/features/popup-menu'),
|
||||||
customRulesModule = require('../../../util/custom-rules');
|
customRulesModule = require('../../../util/custom-rules');
|
||||||
|
|
||||||
var domQuery = require('min-dom/lib/query'),
|
var domQuery = require('min-dom').query,
|
||||||
domClasses = require('min-dom/lib/classes'),
|
domClasses = require('min-dom').classes,
|
||||||
find = require('lodash/collection/find');
|
find = require('lodash/collection/find');
|
||||||
|
|
||||||
var is = require('lib/util/ModelUtil').is,
|
var is = require('lib/util/ModelUtil').is,
|
||||||
|
|
|
@ -7,7 +7,7 @@ var Diagram = require('diagram-js/lib/Diagram'),
|
||||||
importBpmnDiagram = require('lib/import/Importer').importBpmnDiagram,
|
importBpmnDiagram = require('lib/import/Importer').importBpmnDiagram,
|
||||||
Viewer = require('lib/Viewer');
|
Viewer = require('lib/Viewer');
|
||||||
|
|
||||||
var domMatches = require('min-dom/lib/matches');
|
var domMatches = require('min-dom').matches;
|
||||||
|
|
||||||
var getChildrenGfx = require('diagram-js/lib/util/GraphicsUtil').getChildren;
|
var getChildrenGfx = require('diagram-js/lib/util/GraphicsUtil').getChildren;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue