@overmap-ai/core 1.0.65-asset-models-improvements.6 → 1.0.65-asset-models-improvements.7
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.
- package/dist/constants/index.d.ts +0 -1
- package/dist/overmap-core.js +0 -45
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +2 -46
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/optimization.d.ts +0 -3
- package/package.json +1 -1
- package/dist/constants/ui.d.ts +0 -1
- package/dist/typings/base.d.ts +0 -0
- package/dist/utils/css.d.ts +0 -5
- package/dist/utils/search.d.ts +0 -3
|
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
(function(global, factory) {
|
|
8
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("dependency-graph"), require("uuid"), require("file-saver"), require("
|
|
9
|
-
})(this, function(exports2, dependencyGraph, uuid, fileSaver,
|
|
8
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("dependency-graph"), require("uuid"), require("file-saver"), require("color"), require("@radix-ui/colors"), require("@redux-offline/redux-offline"), require("@redux-offline/redux-offline/lib/defaults"), require("localforage"), require("redux-persist-migrate"), require("@reduxjs/toolkit"), require("superagent"), require("@redux-offline/redux-offline/lib/constants"), require("jwt-decode"), require("idb"), require("@overmap-ai/blocks")) : typeof define === "function" && define.amd ? define(["exports", "dependency-graph", "uuid", "file-saver", "color", "@radix-ui/colors", "@redux-offline/redux-offline", "@redux-offline/redux-offline/lib/defaults", "localforage", "redux-persist-migrate", "@reduxjs/toolkit", "superagent", "@redux-offline/redux-offline/lib/constants", "jwt-decode", "idb", "@overmap-ai/blocks"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["overmap-core"] = {}, global.dependencyGraph, global.uuid, global.fileSaver, global.ColorCls, global.colors, global.reduxOffline, global.offlineConfig, global.localforage, global.createMigration, global.toolkit, global.request, global.constants, global.jwtDecode, global.idb, global.blocks));
|
|
9
|
+
})(this, function(exports2, dependencyGraph, uuid, fileSaver, ColorCls, colors, reduxOffline, offlineConfig, localforage, createMigration, toolkit, request, constants, jwtDecode, idb, blocks) {
|
|
10
10
|
var _a;
|
|
11
11
|
"use strict";
|
|
12
12
|
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
@@ -382,24 +382,6 @@ var __publicField = (obj, key, value) => {
|
|
|
382
382
|
coordinates
|
|
383
383
|
};
|
|
384
384
|
};
|
|
385
|
-
function classNames(...args) {
|
|
386
|
-
const classes = [];
|
|
387
|
-
for (const arg of args) {
|
|
388
|
-
if (!arg) {
|
|
389
|
-
continue;
|
|
390
|
-
}
|
|
391
|
-
if (typeof arg === "string") {
|
|
392
|
-
classes.push(arg);
|
|
393
|
-
} else if (typeof arg === "object") {
|
|
394
|
-
for (const [key, value] of Object.entries(arg)) {
|
|
395
|
-
if (value) {
|
|
396
|
-
classes.push(key);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
return classes.join(" ");
|
|
402
|
-
}
|
|
403
385
|
function hex(buffer) {
|
|
404
386
|
const hashArray = new Uint8Array(buffer);
|
|
405
387
|
return hashArray.reduce((data, byte) => data + byte.toString(16).padStart(2, "0"), "");
|
|
@@ -512,14 +494,6 @@ var __publicField = (obj, key, value) => {
|
|
|
512
494
|
}
|
|
513
495
|
return asMapping;
|
|
514
496
|
}
|
|
515
|
-
const issueToSearchResult = (issue, tag) => {
|
|
516
|
-
return {
|
|
517
|
-
label: issue.title || "",
|
|
518
|
-
typeLabel: "issue",
|
|
519
|
-
tag,
|
|
520
|
-
item: issue
|
|
521
|
-
};
|
|
522
|
-
};
|
|
523
497
|
function toFileNameSafeString(str, extension = void 0, maxLength = 255) {
|
|
524
498
|
let ret = str.replace(/[^a-z0-9_\-.]/gi, "_").replace(/_{2,}/g, "_");
|
|
525
499
|
if (!extension) {
|
|
@@ -563,7 +537,6 @@ var __publicField = (obj, key, value) => {
|
|
|
563
537
|
return bounds[0][0] > coordinates[0] && bounds[1][0] < coordinates[0] && bounds[0][1] > coordinates[1] && bounds[1][1] < coordinates[1];
|
|
564
538
|
}
|
|
565
539
|
const emailRegex = /^.+@.+\..+$/;
|
|
566
|
-
const fullAssetMarkerSize = 45;
|
|
567
540
|
const DEFAULT_ISSUE_STATUS = IssueStatus.BACKLOG;
|
|
568
541
|
const DEFAULT_ISSUE_PRIORITY = IssuePriority.MEDIUM;
|
|
569
542
|
const OUTBOX_RETRY_DELAY = 6e4;
|
|
@@ -609,17 +582,6 @@ var __publicField = (obj, key, value) => {
|
|
|
609
582
|
}
|
|
610
583
|
};
|
|
611
584
|
}
|
|
612
|
-
function useMemoCompare(next, compare) {
|
|
613
|
-
const previousRef = React.useRef(void 0);
|
|
614
|
-
const previous = previousRef.current;
|
|
615
|
-
const isEqual = compare(previous, next);
|
|
616
|
-
React.useEffect(() => {
|
|
617
|
-
if (!isEqual) {
|
|
618
|
-
previousRef.current = next;
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
return isEqual ? previous : next;
|
|
622
|
-
}
|
|
623
585
|
function areArraysEqual(first, second) {
|
|
624
586
|
if (first.length !== second.length)
|
|
625
587
|
return false;
|
|
@@ -629,7 +591,6 @@ var __publicField = (obj, key, value) => {
|
|
|
629
591
|
}
|
|
630
592
|
return true;
|
|
631
593
|
}
|
|
632
|
-
const genericMemo = React.memo;
|
|
633
594
|
const fallbackToEmptyArray = (array) => {
|
|
634
595
|
return array.length === 0 ? EMPTY_ARRAY : array;
|
|
635
596
|
};
|
|
@@ -7534,7 +7495,6 @@ var __publicField = (obj, key, value) => {
|
|
|
7534
7495
|
exports2.boundsContainPoint = boundsContainPoint;
|
|
7535
7496
|
exports2.categoryReducer = categoryReducer;
|
|
7536
7497
|
exports2.categorySlice = categorySlice;
|
|
7537
|
-
exports2.classNames = classNames;
|
|
7538
7498
|
exports2.clearTokens = clearTokens;
|
|
7539
7499
|
exports2.constructUploadedFilePayloads = constructUploadedFilePayloads;
|
|
7540
7500
|
exports2.coordinatesAreEqual = coordinatesAreEqual;
|
|
@@ -7620,9 +7580,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7620
7580
|
exports2.formSubmissionAttachmentSlice = formSubmissionAttachmentSlice;
|
|
7621
7581
|
exports2.formSubmissionReducer = formSubmissionReducer;
|
|
7622
7582
|
exports2.formSubmissionSlice = formSubmissionSlice;
|
|
7623
|
-
exports2.fullAssetMarkerSize = fullAssetMarkerSize;
|
|
7624
7583
|
exports2.generateBadgeColors = generateBadgeColors;
|
|
7625
|
-
exports2.genericMemo = genericMemo;
|
|
7626
7584
|
exports2.geoImageReducer = geoImageReducer;
|
|
7627
7585
|
exports2.geoImageSlice = geoImageSlice;
|
|
7628
7586
|
exports2.getFileIdentifier = getFileIdentifier;
|
|
@@ -7669,7 +7627,6 @@ var __publicField = (obj, key, value) => {
|
|
|
7669
7627
|
exports2.issueCommentSlice = issueCommentSlice;
|
|
7670
7628
|
exports2.issueReducer = issueReducer;
|
|
7671
7629
|
exports2.issueSlice = issueSlice;
|
|
7672
|
-
exports2.issueToSearchResult = issueToSearchResult;
|
|
7673
7630
|
exports2.issueTypeReducer = issueTypeReducer;
|
|
7674
7631
|
exports2.issueTypeSlice = issueTypeSlice;
|
|
7675
7632
|
exports2.issueUpdateReducer = issueUpdateReducer;
|
|
@@ -7994,7 +7951,6 @@ var __publicField = (obj, key, value) => {
|
|
|
7994
7951
|
exports2.updateProjectAttachments = updateProjectAttachments;
|
|
7995
7952
|
exports2.updateTeam = updateTeam;
|
|
7996
7953
|
exports2.updateWorkspace = updateWorkspace;
|
|
7997
|
-
exports2.useMemoCompare = useMemoCompare;
|
|
7998
7954
|
exports2.userReducer = userReducer;
|
|
7999
7955
|
exports2.userSlice = userSlice;
|
|
8000
7956
|
exports2.versioningReducer = versioningReducer;
|