@industry-theme/repository-composition-panels 0.7.5 → 0.7.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.
Files changed (27) hide show
  1. package/dist/{BufferResource-CHhoaerO.js → BufferResource-BQ4EbO0E.js} +2 -2
  2. package/dist/{BufferResource-CHhoaerO.js.map → BufferResource-BQ4EbO0E.js.map} +1 -1
  3. package/dist/{CanvasRenderer-ByT5AV8x.js → CanvasRenderer-CShuXSaA.js} +3 -3
  4. package/dist/{CanvasRenderer-ByT5AV8x.js.map → CanvasRenderer-CShuXSaA.js.map} +1 -1
  5. package/dist/{Filter-Dhhy5IL7.js → Filter-BL8qMe6t.js} +2 -2
  6. package/dist/{Filter-Dhhy5IL7.js.map → Filter-BL8qMe6t.js.map} +1 -1
  7. package/dist/{RenderTargetSystem-BEQsi09b.js → RenderTargetSystem-DhwDZ9FS.js} +3 -3
  8. package/dist/{RenderTargetSystem-BEQsi09b.js.map → RenderTargetSystem-DhwDZ9FS.js.map} +1 -1
  9. package/dist/{WebGLRenderer-BnHZE5Mp.js → WebGLRenderer-Bm1hVYQ_.js} +4 -4
  10. package/dist/{WebGLRenderer-BnHZE5Mp.js.map → WebGLRenderer-Bm1hVYQ_.js.map} +1 -1
  11. package/dist/{WebGPURenderer-Bggk73-1.js → WebGPURenderer-Bw59t4A5.js} +4 -4
  12. package/dist/{WebGPURenderer-Bggk73-1.js.map → WebGPURenderer-Bw59t4A5.js.map} +1 -1
  13. package/dist/{browserAll-DMDsy2el.js → browserAll-CjncPJpI.js} +3 -3
  14. package/dist/{browserAll-DMDsy2el.js.map → browserAll-CjncPJpI.js.map} +1 -1
  15. package/dist/{index-7aQ4t9XI.js → index-Dx2G4QAh.js} +120 -125
  16. package/dist/{index-7aQ4t9XI.js.map → index-Dx2G4QAh.js.map} +1 -1
  17. package/dist/{init-BFRc255S.js → init-DgBWEJxJ.js} +3 -3
  18. package/dist/{init-BFRc255S.js.map → init-DgBWEJxJ.js.map} +1 -1
  19. package/dist/panels/components/PackageLoadingGraph.d.ts.map +1 -1
  20. package/dist/panels/overworld-map/OverworldMapPanel.d.ts.map +1 -1
  21. package/dist/panels/overworld-map/isometricUtils.d.ts.map +1 -1
  22. package/dist/panels.bundle.js +1 -1
  23. package/dist/webworkerAll-C4pMbFGR.js +3 -0
  24. package/dist/webworkerAll-C4pMbFGR.js.map +1 -0
  25. package/package.json +2 -1
  26. package/dist/webworkerAll-D8hIL1sE.js +0 -3
  27. package/dist/webworkerAll-D8hIL1sE.js.map +0 -1
@@ -1663,12 +1663,14 @@ const PackageLoadingGraph = () => {
1663
1663
  {
1664
1664
  style: {
1665
1665
  height: "100%",
1666
+ minHeight: "200px",
1666
1667
  display: "flex",
1667
1668
  flexDirection: "column",
1668
1669
  alignItems: "center",
1669
1670
  justifyContent: "center",
1670
1671
  color: theme2.colors.textSecondary,
1671
- padding: theme2.space[5]
1672
+ padding: theme2.space[5],
1673
+ overflow: "hidden"
1672
1674
  },
1673
1675
  children: [
1674
1676
  /* @__PURE__ */ jsx("style", { children: `
@@ -1741,7 +1743,9 @@ const PackageLoadingGraph = () => {
1741
1743
  position: "relative",
1742
1744
  width: "100%",
1743
1745
  maxWidth: "400px",
1746
+ minWidth: "340px",
1744
1747
  height: "220px",
1748
+ flexShrink: 0,
1745
1749
  marginBottom: theme2.space[4]
1746
1750
  },
1747
1751
  children: [
@@ -1807,7 +1811,8 @@ const PackageLoadingGraph = () => {
1807
1811
  fontWeight: theme2.fontWeights.medium,
1808
1812
  color: theme2.colors.text,
1809
1813
  textAlign: "center",
1810
- marginBottom: theme2.space[2]
1814
+ marginBottom: theme2.space[2],
1815
+ flexShrink: 0
1811
1816
  },
1812
1817
  children: "Loading packages..."
1813
1818
  }
@@ -1819,7 +1824,8 @@ const PackageLoadingGraph = () => {
1819
1824
  fontSize: theme2.fontSizes[1],
1820
1825
  fontFamily: theme2.fonts.body,
1821
1826
  color: theme2.colors.textSecondary,
1822
- textAlign: "center"
1827
+ textAlign: "center",
1828
+ flexShrink: 0
1823
1829
  },
1824
1830
  children: "Discovering dependencies and configurations"
1825
1831
  }
@@ -10689,152 +10695,135 @@ function getDefaultExportFromCjs(x2) {
10689
10695
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
10690
10696
  }
10691
10697
  var withSelector = { exports: {} };
10692
- var withSelector_production = {};
10698
+ var withSelector_production_min = {};
10693
10699
  var shim = { exports: {} };
10694
- var useSyncExternalStoreShim_production = {};
10700
+ var useSyncExternalStoreShim_production_min = {};
10695
10701
  /**
10696
10702
  * @license React
10697
- * use-sync-external-store-shim.production.js
10703
+ * use-sync-external-store-shim.production.min.js
10698
10704
  *
10699
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10705
+ * Copyright (c) Facebook, Inc. and its affiliates.
10700
10706
  *
10701
10707
  * This source code is licensed under the MIT license found in the
10702
10708
  * LICENSE file in the root directory of this source tree.
10703
10709
  */
10704
- var hasRequiredUseSyncExternalStoreShim_production;
10705
- function requireUseSyncExternalStoreShim_production() {
10706
- if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
10707
- hasRequiredUseSyncExternalStoreShim_production = 1;
10708
- var React = React2__default;
10709
- function is(x2, y2) {
10710
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
10711
- }
10712
- var objectIs = "function" === typeof Object.is ? Object.is : is, useState2 = React.useState, useEffect2 = React.useEffect, useLayoutEffect2 = React.useLayoutEffect, useDebugValue2 = React.useDebugValue;
10713
- function useSyncExternalStore$2(subscribe, getSnapshot) {
10714
- var value = getSnapshot(), _useState = useState2({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
10715
- useLayoutEffect2(
10716
- function() {
10717
- inst.value = value;
10718
- inst.getSnapshot = getSnapshot;
10719
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10720
- },
10721
- [subscribe, value, getSnapshot]
10722
- );
10723
- useEffect2(
10724
- function() {
10725
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10726
- return subscribe(function() {
10727
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10728
- });
10729
- },
10730
- [subscribe]
10731
- );
10732
- useDebugValue2(value);
10733
- return value;
10710
+ var hasRequiredUseSyncExternalStoreShim_production_min;
10711
+ function requireUseSyncExternalStoreShim_production_min() {
10712
+ if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
10713
+ hasRequiredUseSyncExternalStoreShim_production_min = 1;
10714
+ var e2 = React2__default;
10715
+ function h2(a2, b2) {
10716
+ return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
10717
+ }
10718
+ var k2 = "function" === typeof Object.is ? Object.is : h2, l2 = e2.useState, m2 = e2.useEffect, n2 = e2.useLayoutEffect, p2 = e2.useDebugValue;
10719
+ function q2(a2, b2) {
10720
+ var d2 = b2(), f2 = l2({ inst: { value: d2, getSnapshot: b2 } }), c2 = f2[0].inst, g2 = f2[1];
10721
+ n2(function() {
10722
+ c2.value = d2;
10723
+ c2.getSnapshot = b2;
10724
+ r2(c2) && g2({ inst: c2 });
10725
+ }, [a2, d2, b2]);
10726
+ m2(function() {
10727
+ r2(c2) && g2({ inst: c2 });
10728
+ return a2(function() {
10729
+ r2(c2) && g2({ inst: c2 });
10730
+ });
10731
+ }, [a2]);
10732
+ p2(d2);
10733
+ return d2;
10734
10734
  }
10735
- function checkIfSnapshotChanged(inst) {
10736
- var latestGetSnapshot = inst.getSnapshot;
10737
- inst = inst.value;
10735
+ function r2(a2) {
10736
+ var b2 = a2.getSnapshot;
10737
+ a2 = a2.value;
10738
10738
  try {
10739
- var nextValue = latestGetSnapshot();
10740
- return !objectIs(inst, nextValue);
10741
- } catch (error) {
10739
+ var d2 = b2();
10740
+ return !k2(a2, d2);
10741
+ } catch (f2) {
10742
10742
  return true;
10743
10743
  }
10744
10744
  }
10745
- function useSyncExternalStore$1(subscribe, getSnapshot) {
10746
- return getSnapshot();
10745
+ function t2(a2, b2) {
10746
+ return b2();
10747
10747
  }
10748
- var shim2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
10749
- useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim2;
10750
- return useSyncExternalStoreShim_production;
10748
+ var u2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t2 : q2;
10749
+ useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e2.useSyncExternalStore ? e2.useSyncExternalStore : u2;
10750
+ return useSyncExternalStoreShim_production_min;
10751
10751
  }
10752
10752
  var hasRequiredShim;
10753
10753
  function requireShim() {
10754
10754
  if (hasRequiredShim) return shim.exports;
10755
10755
  hasRequiredShim = 1;
10756
10756
  {
10757
- shim.exports = requireUseSyncExternalStoreShim_production();
10757
+ shim.exports = requireUseSyncExternalStoreShim_production_min();
10758
10758
  }
10759
10759
  return shim.exports;
10760
10760
  }
10761
10761
  /**
10762
10762
  * @license React
10763
- * use-sync-external-store-shim/with-selector.production.js
10763
+ * use-sync-external-store-shim/with-selector.production.min.js
10764
10764
  *
10765
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10765
+ * Copyright (c) Facebook, Inc. and its affiliates.
10766
10766
  *
10767
10767
  * This source code is licensed under the MIT license found in the
10768
10768
  * LICENSE file in the root directory of this source tree.
10769
10769
  */
10770
- var hasRequiredWithSelector_production;
10771
- function requireWithSelector_production() {
10772
- if (hasRequiredWithSelector_production) return withSelector_production;
10773
- hasRequiredWithSelector_production = 1;
10774
- var React = React2__default, shim2 = requireShim();
10775
- function is(x2, y2) {
10776
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
10777
- }
10778
- var objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim2.useSyncExternalStore, useRef2 = React.useRef, useEffect2 = React.useEffect, useMemo2 = React.useMemo, useDebugValue2 = React.useDebugValue;
10779
- withSelector_production.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector2, isEqual) {
10780
- var instRef = useRef2(null);
10781
- if (null === instRef.current) {
10782
- var inst = { hasValue: false, value: null };
10783
- instRef.current = inst;
10784
- } else inst = instRef.current;
10785
- instRef = useMemo2(
10786
- function() {
10787
- function memoizedSelector(nextSnapshot) {
10788
- if (!hasMemo) {
10789
- hasMemo = true;
10790
- memoizedSnapshot = nextSnapshot;
10791
- nextSnapshot = selector2(nextSnapshot);
10792
- if (void 0 !== isEqual && inst.hasValue) {
10793
- var currentSelection = inst.value;
10794
- if (isEqual(currentSelection, nextSnapshot))
10795
- return memoizedSelection = currentSelection;
10796
- }
10797
- return memoizedSelection = nextSnapshot;
10770
+ var hasRequiredWithSelector_production_min;
10771
+ function requireWithSelector_production_min() {
10772
+ if (hasRequiredWithSelector_production_min) return withSelector_production_min;
10773
+ hasRequiredWithSelector_production_min = 1;
10774
+ var h2 = React2__default, n2 = requireShim();
10775
+ function p2(a2, b2) {
10776
+ return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
10777
+ }
10778
+ var q2 = "function" === typeof Object.is ? Object.is : p2, r2 = n2.useSyncExternalStore, t2 = h2.useRef, u2 = h2.useEffect, v2 = h2.useMemo, w2 = h2.useDebugValue;
10779
+ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2, e2, l2, g2) {
10780
+ var c2 = t2(null);
10781
+ if (null === c2.current) {
10782
+ var f2 = { hasValue: false, value: null };
10783
+ c2.current = f2;
10784
+ } else f2 = c2.current;
10785
+ c2 = v2(function() {
10786
+ function a3(a4) {
10787
+ if (!c3) {
10788
+ c3 = true;
10789
+ d3 = a4;
10790
+ a4 = l2(a4);
10791
+ if (void 0 !== g2 && f2.hasValue) {
10792
+ var b3 = f2.value;
10793
+ if (g2(b3, a4)) return k2 = b3;
10798
10794
  }
10799
- currentSelection = memoizedSelection;
10800
- if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
10801
- var nextSelection = selector2(nextSnapshot);
10802
- if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
10803
- return memoizedSnapshot = nextSnapshot, currentSelection;
10804
- memoizedSnapshot = nextSnapshot;
10805
- return memoizedSelection = nextSelection;
10806
- }
10807
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
10808
- return [
10809
- function() {
10810
- return memoizedSelector(getSnapshot());
10811
- },
10812
- null === maybeGetServerSnapshot ? void 0 : function() {
10813
- return memoizedSelector(maybeGetServerSnapshot());
10814
- }
10815
- ];
10816
- },
10817
- [getSnapshot, getServerSnapshot, selector2, isEqual]
10818
- );
10819
- var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
10820
- useEffect2(
10821
- function() {
10822
- inst.hasValue = true;
10823
- inst.value = value;
10824
- },
10825
- [value]
10826
- );
10827
- useDebugValue2(value);
10828
- return value;
10829
- };
10830
- return withSelector_production;
10795
+ return k2 = a4;
10796
+ }
10797
+ b3 = k2;
10798
+ if (q2(d3, a4)) return b3;
10799
+ var e3 = l2(a4);
10800
+ if (void 0 !== g2 && g2(b3, e3)) return b3;
10801
+ d3 = a4;
10802
+ return k2 = e3;
10803
+ }
10804
+ var c3 = false, d3, k2, m2 = void 0 === e2 ? null : e2;
10805
+ return [function() {
10806
+ return a3(b2());
10807
+ }, null === m2 ? void 0 : function() {
10808
+ return a3(m2());
10809
+ }];
10810
+ }, [b2, e2, l2, g2]);
10811
+ var d2 = r2(a2, c2[0], c2[1]);
10812
+ u2(function() {
10813
+ f2.hasValue = true;
10814
+ f2.value = d2;
10815
+ }, [d2]);
10816
+ w2(d2);
10817
+ return d2;
10818
+ };
10819
+ return withSelector_production_min;
10831
10820
  }
10832
10821
  var hasRequiredWithSelector;
10833
10822
  function requireWithSelector() {
10834
10823
  if (hasRequiredWithSelector) return withSelector.exports;
10835
10824
  hasRequiredWithSelector = 1;
10836
10825
  {
10837
- withSelector.exports = requireWithSelector_production();
10826
+ withSelector.exports = requireWithSelector_production_min();
10838
10827
  }
10839
10828
  return withSelector.exports;
10840
10829
  }
@@ -10900,7 +10889,8 @@ function shallow$1(objA, objB) {
10900
10889
  return false;
10901
10890
  }
10902
10891
  if (objA instanceof Map && objB instanceof Map) {
10903
- if (objA.size !== objB.size) return false;
10892
+ if (objA.size !== objB.size)
10893
+ return false;
10904
10894
  for (const [key, value] of objA) {
10905
10895
  if (!Object.is(value, objB.get(key))) {
10906
10896
  return false;
@@ -10909,7 +10899,8 @@ function shallow$1(objA, objB) {
10909
10899
  return true;
10910
10900
  }
10911
10901
  if (objA instanceof Set && objB instanceof Set) {
10912
- if (objA.size !== objB.size) return false;
10902
+ if (objA.size !== objB.size)
10903
+ return false;
10913
10904
  for (const value of objA) {
10914
10905
  if (!objB.has(value)) {
10915
10906
  return false;
@@ -10921,8 +10912,8 @@ function shallow$1(objA, objB) {
10921
10912
  if (keysA.length !== Object.keys(objB).length) {
10922
10913
  return false;
10923
10914
  }
10924
- for (const keyA of keysA) {
10925
- if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
10915
+ for (let i2 = 0; i2 < keysA.length; i2++) {
10916
+ if (!Object.prototype.hasOwnProperty.call(objB, keysA[i2]) || !Object.is(objA[keysA[i2]], objB[keysA[i2]])) {
10926
10917
  return false;
10927
10918
  }
10928
10919
  }
@@ -106244,7 +106235,7 @@ const browserExt = {
106244
106235
  },
106245
106236
  test: () => true,
106246
106237
  load: async () => {
106247
- await import("./browserAll-DMDsy2el.js");
106238
+ await import("./browserAll-CjncPJpI.js");
106248
106239
  }
106249
106240
  };
106250
106241
  const webworkerExt = {
@@ -106255,7 +106246,7 @@ const webworkerExt = {
106255
106246
  },
106256
106247
  test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
106257
106248
  load: async () => {
106258
- await import("./webworkerAll-D8hIL1sE.js");
106249
+ await import("./webworkerAll-C4pMbFGR.js");
106259
106250
  }
106260
106251
  };
106261
106252
  class ObservablePoint {
@@ -118498,19 +118489,19 @@ async function autoDetectRenderer(options) {
118498
118489
  for (let i2 = 0; i2 < preferredOrder.length; i2++) {
118499
118490
  const rendererType = preferredOrder[i2];
118500
118491
  if (rendererType === "webgpu" && await isWebGPUSupported()) {
118501
- const { WebGPURenderer } = await import("./WebGPURenderer-Bggk73-1.js");
118492
+ const { WebGPURenderer } = await import("./WebGPURenderer-Bw59t4A5.js");
118502
118493
  RendererClass = WebGPURenderer;
118503
118494
  finalOptions = { ...options, ...options.webgpu };
118504
118495
  break;
118505
118496
  } else if (rendererType === "webgl" && isWebGLSupported(
118506
118497
  options.failIfMajorPerformanceCaveat ?? AbstractRenderer.defaultOptions.failIfMajorPerformanceCaveat
118507
118498
  )) {
118508
- const { WebGLRenderer } = await import("./WebGLRenderer-BnHZE5Mp.js");
118499
+ const { WebGLRenderer } = await import("./WebGLRenderer-Bm1hVYQ_.js");
118509
118500
  RendererClass = WebGLRenderer;
118510
118501
  finalOptions = { ...options, ...options.webgl };
118511
118502
  break;
118512
118503
  } else if (rendererType === "canvas") {
118513
- const { CanvasRenderer } = await import("./CanvasRenderer-ByT5AV8x.js");
118504
+ const { CanvasRenderer } = await import("./CanvasRenderer-CShuXSaA.js");
118514
118505
  RendererClass = CanvasRenderer;
118515
118506
  finalOptions = { ...options, ...options.canvasOptions };
118516
118507
  break;
@@ -132997,7 +132988,9 @@ function calculateRegionCameraPosition(regionCenterX, regionCenterY, bounds) {
132997
132988
  }
132998
132989
  function domEventToGridCoords(clientX, clientY, viewport, canvasElement) {
132999
132990
  if (!viewport || !canvasElement) {
133000
- console.warn("[domEventToGridCoords] Missing viewport or canvas element, returning (0, 0)");
132991
+ console.warn(
132992
+ "[domEventToGridCoords] Missing viewport or canvas element, returning (0, 0)"
132993
+ );
133001
132994
  return { gridX: 0, gridY: 0 };
133002
132995
  }
133003
132996
  const rect = canvasElement.getBoundingClientRect();
@@ -135915,6 +135908,7 @@ const OverworldMapPanelContent = ({
135915
135908
  collectionKey,
135916
135909
  onViewportReady
135917
135910
  }) => {
135911
+ const wrapperRef = useRef(null);
135918
135912
  const canvasRef = useRef(null);
135919
135913
  const appRef = useRef(null);
135920
135914
  const viewportRef = useRef(null);
@@ -136007,8 +136001,8 @@ const OverworldMapPanelContent = ({
136007
136001
  }
136008
136002
  const canvasWidth = window.innerWidth;
136009
136003
  const canvasHeight = window.innerHeight;
136010
- const visibleWidth = ((_a = canvasRef.current) == null ? void 0 : _a.clientWidth) || width || 800;
136011
- const visibleHeight = ((_b = canvasRef.current) == null ? void 0 : _b.clientHeight) || height || 600;
136004
+ const visibleWidth = ((_a = wrapperRef.current) == null ? void 0 : _a.clientWidth) || width || 800;
136005
+ const visibleHeight = ((_b = wrapperRef.current) == null ? void 0 : _b.clientHeight) || height || 600;
136012
136006
  visibleDimensionsRef.current = {
136013
136007
  width: visibleWidth,
136014
136008
  height: visibleHeight
@@ -136591,6 +136585,7 @@ const OverworldMapPanelContent = ({
136591
136585
  return /* @__PURE__ */ jsxs(
136592
136586
  "div",
136593
136587
  {
136588
+ ref: wrapperRef,
136594
136589
  style: {
136595
136590
  position: "relative",
136596
136591
  width: "100%",
@@ -138896,4 +138891,4 @@ export {
138896
138891
  UPDATE_PRIORITY as y,
138897
138892
  removeItems as z
138898
138893
  };
138899
- //# sourceMappingURL=index-7aQ4t9XI.js.map
138894
+ //# sourceMappingURL=index-Dx2G4QAh.js.map