venue-js 1.4.0-next.14 → 1.4.0-next.16

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/index.mjs CHANGED
@@ -291,7 +291,11 @@ __export(occupant_helper_exports, {
291
291
  getOccupantMainLocation: () => getOccupantMainLocation,
292
292
  getOccupantMarkerLocations: () => getOccupantMarkerLocations
293
293
  });
294
- import { compact } from "lodash";
294
+
295
+ // src/data/utils/lodash/compact.ts
296
+ var compact = (arr) => arr.filter((item) => Boolean(item));
297
+
298
+ // src/data/utils/occupant-helper.ts
295
299
  var getOccupantMainLocation = (occupant) => {
296
300
  return occupant.properties.kiosk || occupant.properties.unit;
297
301
  };
@@ -322,7 +326,6 @@ import {
322
326
  } from "@tanstack/query-core";
323
327
 
324
328
  // src/data/populator/index.ts
325
- import { compact as compact2 } from "lodash";
326
329
  import { booleanWithin } from "@turf/boolean-within";
327
330
  var createPopulator = ({
328
331
  internalFindById,
@@ -480,7 +483,7 @@ var createPopulator = ({
480
483
  ...occupant.properties,
481
484
  anchor: anchor ? await populateAnchor(anchor) : null,
482
485
  local_categories: await Promise.all(
483
- compact2(localCategories).map(populateTaxonomy)
486
+ compact(localCategories).map(populateTaxonomy)
484
487
  ),
485
488
  venue,
486
489
  promotions,
@@ -2083,6 +2086,7 @@ var getDataClient = (options) => {
2083
2086
  destroyObservers,
2084
2087
  createFilterByTypeQueryOptions,
2085
2088
  createFindByIdQueryOptions,
2089
+ _internalFindById: internalFindById,
2086
2090
  filterByType,
2087
2091
  findById,
2088
2092
  search: searchFn
@@ -4070,7 +4074,7 @@ var CameraManager = class {
4070
4074
  };
4071
4075
 
4072
4076
  // src/IndoorMap/renderer/RendererManager.ts
4073
- import { min, compact as compact3, isFunction } from "lodash";
4077
+ import { min, compact as compact2, isFunction } from "lodash";
4074
4078
  import { center as turfCenter2 } from "@turf/center";
4075
4079
  import * as THREE4 from "three";
4076
4080
 
@@ -5863,7 +5867,7 @@ var RendererManager = class extends EventTarget {
5863
5867
  });
5864
5868
  units.filter((u4) => u4.properties.category === "room").forEach((unit) => {
5865
5869
  const openingRelationships = relationships.filter((r) => r.properties.origin?.id === unit.id || r.properties.destination?.id === unit.id);
5866
- const roomOpenings = compact3(openingRelationships.map((rel) => {
5870
+ const roomOpenings = compact2(openingRelationships.map((rel) => {
5867
5871
  const openingId = rel?.properties.intermediary[0].id;
5868
5872
  return openings.find((o) => o.id === openingId);
5869
5873
  }));