@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.
@@ -1,4 +1,3 @@
1
- export * from "./ui";
2
1
  export * from "./defaults";
3
2
  export * from "./offline";
4
3
  export * from "./array";
@@ -8,7 +8,6 @@ var _a;
8
8
  import { DepGraph } from "dependency-graph";
9
9
  import { v4 } from "uuid";
10
10
  import { saveAs } from "file-saver";
11
- import React, { useRef, useEffect } from "react";
12
11
  import ColorCls from "color";
13
12
  import { gray, gold, brown, yellow, amber, orange, red, crimson, pink, plum, purple, violet, iris, indigo, blue, cyan, jade, grass, lime, mint, sky } from "@radix-ui/colors";
14
13
  import { offline as offline$1 } from "@redux-offline/redux-offline";
@@ -394,24 +393,6 @@ const createMultiPointGeometry = (coordinates) => {
394
393
  coordinates
395
394
  };
396
395
  };
397
- function classNames(...args) {
398
- const classes = [];
399
- for (const arg of args) {
400
- if (!arg) {
401
- continue;
402
- }
403
- if (typeof arg === "string") {
404
- classes.push(arg);
405
- } else if (typeof arg === "object") {
406
- for (const [key, value] of Object.entries(arg)) {
407
- if (value) {
408
- classes.push(key);
409
- }
410
- }
411
- }
412
- }
413
- return classes.join(" ");
414
- }
415
396
  function hex(buffer) {
416
397
  const hashArray = new Uint8Array(buffer);
417
398
  return hashArray.reduce((data, byte) => data + byte.toString(16).padStart(2, "0"), "");
@@ -524,14 +505,6 @@ function toOfflineIdRecord(array) {
524
505
  }
525
506
  return asMapping;
526
507
  }
527
- const issueToSearchResult = (issue, tag) => {
528
- return {
529
- label: issue.title || "",
530
- typeLabel: "issue",
531
- tag,
532
- item: issue
533
- };
534
- };
535
508
  function toFileNameSafeString(str, extension = void 0, maxLength = 255) {
536
509
  let ret = str.replace(/[^a-z0-9_\-.]/gi, "_").replace(/_{2,}/g, "_");
537
510
  if (!extension) {
@@ -575,7 +548,6 @@ function boundsContainPoint(bounds, coordinates) {
575
548
  return bounds[0][0] > coordinates[0] && bounds[1][0] < coordinates[0] && bounds[0][1] > coordinates[1] && bounds[1][1] < coordinates[1];
576
549
  }
577
550
  const emailRegex = /^.+@.+\..+$/;
578
- const fullAssetMarkerSize = 45;
579
551
  const DEFAULT_ISSUE_STATUS = IssueStatus.BACKLOG;
580
552
  const DEFAULT_ISSUE_PRIORITY = IssuePriority.MEDIUM;
581
553
  const OUTBOX_RETRY_DELAY = 6e4;
@@ -621,17 +593,6 @@ function memoize(func) {
621
593
  }
622
594
  };
623
595
  }
624
- function useMemoCompare(next, compare) {
625
- const previousRef = useRef(void 0);
626
- const previous = previousRef.current;
627
- const isEqual = compare(previous, next);
628
- useEffect(() => {
629
- if (!isEqual) {
630
- previousRef.current = next;
631
- }
632
- });
633
- return isEqual ? previous : next;
634
- }
635
596
  function areArraysEqual(first, second) {
636
597
  if (first.length !== second.length)
637
598
  return false;
@@ -641,7 +602,6 @@ function areArraysEqual(first, second) {
641
602
  }
642
603
  return true;
643
604
  }
644
- const genericMemo = React.memo;
645
605
  const fallbackToEmptyArray = (array) => {
646
606
  return array.length === 0 ? EMPTY_ARRAY : array;
647
607
  };
@@ -7547,7 +7507,6 @@ export {
7547
7507
  boundsContainPoint,
7548
7508
  categoryReducer,
7549
7509
  categorySlice,
7550
- classNames,
7551
7510
  clearTokens,
7552
7511
  constructUploadedFilePayloads,
7553
7512
  coordinatesAreEqual,
@@ -7633,9 +7592,7 @@ export {
7633
7592
  formSubmissionAttachmentSlice,
7634
7593
  formSubmissionReducer,
7635
7594
  formSubmissionSlice,
7636
- fullAssetMarkerSize,
7637
7595
  generateBadgeColors,
7638
- genericMemo,
7639
7596
  geoImageReducer,
7640
7597
  geoImageSlice,
7641
7598
  getFileIdentifier,
@@ -7682,7 +7639,6 @@ export {
7682
7639
  issueCommentSlice,
7683
7640
  issueReducer,
7684
7641
  issueSlice,
7685
- issueToSearchResult,
7686
7642
  issueTypeReducer,
7687
7643
  issueTypeSlice,
7688
7644
  issueUpdateReducer,
@@ -8007,7 +7963,6 @@ export {
8007
7963
  updateProjectAttachments,
8008
7964
  updateTeam,
8009
7965
  updateWorkspace,
8010
- useMemoCompare,
8011
7966
  userReducer,
8012
7967
  userSlice,
8013
7968
  versioningReducer,