umap-project 2.4.0__py3-none-any.whl → 2.4.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- umap/.DS_Store +0 -0
- umap/__init__.py +1 -1
- umap/locale/en/LC_MESSAGES/django.po +11 -11
- umap/locale/fr/LC_MESSAGES/django.mo +0 -0
- umap/locale/fr/LC_MESSAGES/django.po +11 -12
- umap/static/.DS_Store +0 -0
- umap/static/umap/.DS_Store +0 -0
- umap/static/umap/base.css +28 -20
- umap/static/umap/css/importers.css +1 -8
- umap/static/umap/css/panel.css +1 -0
- umap/static/umap/favicons/.DS_Store +0 -0
- umap/static/umap/fonts/.DS_Store +0 -0
- umap/static/umap/img/.DS_Store +0 -0
- umap/static/umap/img/16-white.svg +3 -1
- umap/static/umap/img/source/.DS_Store +0 -0
- umap/static/umap/img/source/16-white.svg +4 -2
- umap/static/umap/js/modules/browser.js +5 -5
- umap/static/umap/js/modules/caption.js +1 -1
- umap/static/umap/js/modules/importer.js +9 -20
- umap/static/umap/js/modules/importers/datasets.js +0 -1
- umap/static/umap/js/modules/utils.js +3 -3
- umap/static/umap/js/umap.features.js +3 -11
- umap/static/umap/js/umap.js +48 -47
- umap/static/umap/js/umap.layer.js +0 -10
- umap/static/umap/js/umap.popup.js +1 -1
- umap/static/umap/locale/en.js +1 -2
- umap/static/umap/locale/en.json +1 -2
- umap/static/umap/locale/fr.js +15 -16
- umap/static/umap/locale/fr.json +15 -16
- umap/static/umap/map.css +13 -14
- umap/static/umap/unittests/utils.js +5 -5
- umap/static/umap/vars.css +1 -2
- umap/static/umap/vendors/dompurify/purify.es.js +5 -59
- umap/static/umap/vendors/dompurify/purify.es.mjs.map +1 -1
- umap/static/umap/vendors/formbuilder/Leaflet.FormBuilder.js +2 -2
- umap/tests/.DS_Store +0 -0
- umap/tests/integration/.DS_Store +0 -0
- umap/tests/integration/test_browser.py +3 -76
- umap/tests/integration/test_import.py +0 -47
- umap/tests/integration/test_map.py +0 -29
- umap/tests/integration/test_view_marker.py +2 -2
- {umap_project-2.4.0.dist-info → umap_project-2.4.0b1.dist-info}/METADATA +5 -5
- {umap_project-2.4.0.dist-info → umap_project-2.4.0b1.dist-info}/RECORD +46 -37
- {umap_project-2.4.0.dist-info → umap_project-2.4.0b1.dist-info}/WHEEL +1 -1
- {umap_project-2.4.0.dist-info → umap_project-2.4.0b1.dist-info}/entry_points.txt +0 -0
- {umap_project-2.4.0.dist-info → umap_project-2.4.0b1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.1.
|
|
1
|
+
/*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
|
|
2
2
|
|
|
3
3
|
const {
|
|
4
4
|
entries,
|
|
@@ -48,7 +48,6 @@ const stringTrim = unapply(String.prototype.trim);
|
|
|
48
48
|
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
49
49
|
const regExpTest = unapply(RegExp.prototype.test);
|
|
50
50
|
const typeErrorCreate = unconstruct(TypeError);
|
|
51
|
-
const numberIsNaN = unapply(Number.isNaN);
|
|
52
51
|
|
|
53
52
|
/**
|
|
54
53
|
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
|
@@ -197,7 +196,7 @@ const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mgly
|
|
|
197
196
|
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
198
197
|
const text = freeze(['#text']);
|
|
199
198
|
|
|
200
|
-
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
199
|
+
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
201
200
|
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
202
201
|
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
203
202
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
@@ -301,7 +300,7 @@ function createDOMPurify() {
|
|
|
301
300
|
* Version label, exposed for easier checks
|
|
302
301
|
* if DOMPurify is up to date or not
|
|
303
302
|
*/
|
|
304
|
-
DOMPurify.version = '3.1.
|
|
303
|
+
DOMPurify.version = '3.1.5';
|
|
305
304
|
|
|
306
305
|
/**
|
|
307
306
|
* Array of elements that DOMPurify removed during sanitation.
|
|
@@ -534,9 +533,6 @@ function createDOMPurify() {
|
|
|
534
533
|
/* Keep a reference to config to pass to hooks */
|
|
535
534
|
let CONFIG = null;
|
|
536
535
|
|
|
537
|
-
/* Specify the maximum element nesting depth to prevent mXSS */
|
|
538
|
-
const MAX_NESTING_DEPTH = 255;
|
|
539
|
-
|
|
540
536
|
/* Ideally, do not touch anything below this line */
|
|
541
537
|
/* ______________________________________________ */
|
|
542
538
|
|
|
@@ -947,11 +943,7 @@ function createDOMPurify() {
|
|
|
947
943
|
* @return {Boolean} true if clobbered, false if safe
|
|
948
944
|
*/
|
|
949
945
|
const _isClobbered = function _isClobbered(elm) {
|
|
950
|
-
return elm instanceof HTMLFormElement && (
|
|
951
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined
|
|
952
|
-
typeof elm.__depth !== 'undefined' && typeof elm.__depth !== 'number' ||
|
|
953
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined
|
|
954
|
-
typeof elm.__removalCount !== 'undefined' && typeof elm.__removalCount !== 'number' || typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');
|
|
946
|
+
return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');
|
|
955
947
|
};
|
|
956
948
|
|
|
957
949
|
/**
|
|
@@ -1102,7 +1094,7 @@ function createDOMPurify() {
|
|
|
1102
1094
|
// eslint-disable-next-line complexity
|
|
1103
1095
|
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
1104
1096
|
/* Make sure attribute cannot clobber */
|
|
1105
|
-
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement
|
|
1097
|
+
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
1106
1098
|
return false;
|
|
1107
1099
|
}
|
|
1108
1100
|
|
|
@@ -1293,32 +1285,9 @@ function createDOMPurify() {
|
|
|
1293
1285
|
if (_sanitizeElements(shadowNode)) {
|
|
1294
1286
|
continue;
|
|
1295
1287
|
}
|
|
1296
|
-
const parentNode = getParentNode(shadowNode);
|
|
1297
|
-
|
|
1298
|
-
/* Set the nesting depth of an element */
|
|
1299
|
-
if (shadowNode.nodeType === NODE_TYPE.element) {
|
|
1300
|
-
if (parentNode && parentNode.__depth) {
|
|
1301
|
-
/*
|
|
1302
|
-
We want the depth of the node in the original tree, which can
|
|
1303
|
-
change when it's removed from its parent.
|
|
1304
|
-
*/
|
|
1305
|
-
shadowNode.__depth = (shadowNode.__removalCount || 0) + parentNode.__depth + 1;
|
|
1306
|
-
} else {
|
|
1307
|
-
shadowNode.__depth = 1;
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
/*
|
|
1312
|
-
* Remove an element if nested too deeply to avoid mXSS
|
|
1313
|
-
* or if the __depth might have been tampered with
|
|
1314
|
-
*/
|
|
1315
|
-
if (shadowNode.__depth >= MAX_NESTING_DEPTH || shadowNode.__depth < 0 || numberIsNaN(shadowNode.__depth)) {
|
|
1316
|
-
_forceRemove(shadowNode);
|
|
1317
|
-
}
|
|
1318
1288
|
|
|
1319
1289
|
/* Deep shadow DOM detected */
|
|
1320
1290
|
if (shadowNode.content instanceof DocumentFragment) {
|
|
1321
|
-
shadowNode.content.__depth = shadowNode.__depth;
|
|
1322
1291
|
_sanitizeShadowDOM(shadowNode.content);
|
|
1323
1292
|
}
|
|
1324
1293
|
|
|
@@ -1434,32 +1403,9 @@ function createDOMPurify() {
|
|
|
1434
1403
|
if (_sanitizeElements(currentNode)) {
|
|
1435
1404
|
continue;
|
|
1436
1405
|
}
|
|
1437
|
-
const parentNode = getParentNode(currentNode);
|
|
1438
|
-
|
|
1439
|
-
/* Set the nesting depth of an element */
|
|
1440
|
-
if (currentNode.nodeType === NODE_TYPE.element) {
|
|
1441
|
-
if (parentNode && parentNode.__depth) {
|
|
1442
|
-
/*
|
|
1443
|
-
We want the depth of the node in the original tree, which can
|
|
1444
|
-
change when it's removed from its parent.
|
|
1445
|
-
*/
|
|
1446
|
-
currentNode.__depth = (currentNode.__removalCount || 0) + parentNode.__depth + 1;
|
|
1447
|
-
} else {
|
|
1448
|
-
currentNode.__depth = 1;
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
/*
|
|
1453
|
-
* Remove an element if nested too deeply to avoid mXSS
|
|
1454
|
-
* or if the __depth might have been tampered with
|
|
1455
|
-
*/
|
|
1456
|
-
if (currentNode.__depth >= MAX_NESTING_DEPTH || currentNode.__depth < 0 || numberIsNaN(currentNode.__depth)) {
|
|
1457
|
-
_forceRemove(currentNode);
|
|
1458
|
-
}
|
|
1459
1406
|
|
|
1460
1407
|
/* Shadow DOM detected, sanitize it */
|
|
1461
1408
|
if (currentNode.content instanceof DocumentFragment) {
|
|
1462
|
-
currentNode.content.__depth = currentNode.__depth;
|
|
1463
1409
|
_sanitizeShadowDOM(currentNode.content);
|
|
1464
1410
|
}
|
|
1465
1411
|
|