@industry-theme/repository-composition-panels 0.7.6 → 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 (25) hide show
  1. package/dist/{BufferResource-C31ApAtI.js → BufferResource-BQ4EbO0E.js} +2 -2
  2. package/dist/{BufferResource-C31ApAtI.js.map → BufferResource-BQ4EbO0E.js.map} +1 -1
  3. package/dist/{CanvasRenderer-8qDPmI6y.js → CanvasRenderer-CShuXSaA.js} +3 -3
  4. package/dist/{CanvasRenderer-8qDPmI6y.js.map → CanvasRenderer-CShuXSaA.js.map} +1 -1
  5. package/dist/{Filter-BB0aq-Zy.js → Filter-BL8qMe6t.js} +2 -2
  6. package/dist/{Filter-BB0aq-Zy.js.map → Filter-BL8qMe6t.js.map} +1 -1
  7. package/dist/{RenderTargetSystem-aSToba5s.js → RenderTargetSystem-DhwDZ9FS.js} +3 -3
  8. package/dist/{RenderTargetSystem-aSToba5s.js.map → RenderTargetSystem-DhwDZ9FS.js.map} +1 -1
  9. package/dist/{WebGLRenderer-KD33jTG8.js → WebGLRenderer-Bm1hVYQ_.js} +4 -4
  10. package/dist/{WebGLRenderer-KD33jTG8.js.map → WebGLRenderer-Bm1hVYQ_.js.map} +1 -1
  11. package/dist/{WebGPURenderer-CgEpGyW-.js → WebGPURenderer-Bw59t4A5.js} +4 -4
  12. package/dist/{WebGPURenderer-CgEpGyW-.js.map → WebGPURenderer-Bw59t4A5.js.map} +1 -1
  13. package/dist/{browserAll-DsnGrrNf.js → browserAll-CjncPJpI.js} +3 -3
  14. package/dist/{browserAll-DsnGrrNf.js.map → browserAll-CjncPJpI.js.map} +1 -1
  15. package/dist/{index-mh2Usj7o.js → index-Dx2G4QAh.js} +108 -121
  16. package/dist/{index-mh2Usj7o.js.map → index-Dx2G4QAh.js.map} +1 -1
  17. package/dist/{init-BA0h7AnH.js → init-DgBWEJxJ.js} +3 -3
  18. package/dist/{init-BA0h7AnH.js.map → init-DgBWEJxJ.js.map} +1 -1
  19. package/dist/panels/overworld-map/OverworldMapPanel.d.ts.map +1 -1
  20. package/dist/panels.bundle.js +1 -1
  21. package/dist/webworkerAll-C4pMbFGR.js +3 -0
  22. package/dist/webworkerAll-C4pMbFGR.js.map +1 -0
  23. package/package.json +2 -1
  24. package/dist/webworkerAll-B1yAYeD0.js +0 -3
  25. package/dist/webworkerAll-B1yAYeD0.js.map +0 -1
@@ -10695,152 +10695,135 @@ function getDefaultExportFromCjs(x2) {
10695
10695
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
10696
10696
  }
10697
10697
  var withSelector = { exports: {} };
10698
- var withSelector_production = {};
10698
+ var withSelector_production_min = {};
10699
10699
  var shim = { exports: {} };
10700
- var useSyncExternalStoreShim_production = {};
10700
+ var useSyncExternalStoreShim_production_min = {};
10701
10701
  /**
10702
10702
  * @license React
10703
- * use-sync-external-store-shim.production.js
10703
+ * use-sync-external-store-shim.production.min.js
10704
10704
  *
10705
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10705
+ * Copyright (c) Facebook, Inc. and its affiliates.
10706
10706
  *
10707
10707
  * This source code is licensed under the MIT license found in the
10708
10708
  * LICENSE file in the root directory of this source tree.
10709
10709
  */
10710
- var hasRequiredUseSyncExternalStoreShim_production;
10711
- function requireUseSyncExternalStoreShim_production() {
10712
- if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
10713
- hasRequiredUseSyncExternalStoreShim_production = 1;
10714
- var React = React2__default;
10715
- function is(x2, y2) {
10716
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
10717
- }
10718
- var objectIs = "function" === typeof Object.is ? Object.is : is, useState2 = React.useState, useEffect2 = React.useEffect, useLayoutEffect2 = React.useLayoutEffect, useDebugValue2 = React.useDebugValue;
10719
- function useSyncExternalStore$2(subscribe, getSnapshot) {
10720
- var value = getSnapshot(), _useState = useState2({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
10721
- useLayoutEffect2(
10722
- function() {
10723
- inst.value = value;
10724
- inst.getSnapshot = getSnapshot;
10725
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10726
- },
10727
- [subscribe, value, getSnapshot]
10728
- );
10729
- useEffect2(
10730
- function() {
10731
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10732
- return subscribe(function() {
10733
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
10734
- });
10735
- },
10736
- [subscribe]
10737
- );
10738
- useDebugValue2(value);
10739
- 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;
10740
10734
  }
10741
- function checkIfSnapshotChanged(inst) {
10742
- var latestGetSnapshot = inst.getSnapshot;
10743
- inst = inst.value;
10735
+ function r2(a2) {
10736
+ var b2 = a2.getSnapshot;
10737
+ a2 = a2.value;
10744
10738
  try {
10745
- var nextValue = latestGetSnapshot();
10746
- return !objectIs(inst, nextValue);
10747
- } catch (error) {
10739
+ var d2 = b2();
10740
+ return !k2(a2, d2);
10741
+ } catch (f2) {
10748
10742
  return true;
10749
10743
  }
10750
10744
  }
10751
- function useSyncExternalStore$1(subscribe, getSnapshot) {
10752
- return getSnapshot();
10745
+ function t2(a2, b2) {
10746
+ return b2();
10753
10747
  }
10754
- var shim2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
10755
- useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim2;
10756
- 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;
10757
10751
  }
10758
10752
  var hasRequiredShim;
10759
10753
  function requireShim() {
10760
10754
  if (hasRequiredShim) return shim.exports;
10761
10755
  hasRequiredShim = 1;
10762
10756
  {
10763
- shim.exports = requireUseSyncExternalStoreShim_production();
10757
+ shim.exports = requireUseSyncExternalStoreShim_production_min();
10764
10758
  }
10765
10759
  return shim.exports;
10766
10760
  }
10767
10761
  /**
10768
10762
  * @license React
10769
- * use-sync-external-store-shim/with-selector.production.js
10763
+ * use-sync-external-store-shim/with-selector.production.min.js
10770
10764
  *
10771
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10765
+ * Copyright (c) Facebook, Inc. and its affiliates.
10772
10766
  *
10773
10767
  * This source code is licensed under the MIT license found in the
10774
10768
  * LICENSE file in the root directory of this source tree.
10775
10769
  */
10776
- var hasRequiredWithSelector_production;
10777
- function requireWithSelector_production() {
10778
- if (hasRequiredWithSelector_production) return withSelector_production;
10779
- hasRequiredWithSelector_production = 1;
10780
- var React = React2__default, shim2 = requireShim();
10781
- function is(x2, y2) {
10782
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
10783
- }
10784
- var objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim2.useSyncExternalStore, useRef2 = React.useRef, useEffect2 = React.useEffect, useMemo2 = React.useMemo, useDebugValue2 = React.useDebugValue;
10785
- withSelector_production.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector2, isEqual) {
10786
- var instRef = useRef2(null);
10787
- if (null === instRef.current) {
10788
- var inst = { hasValue: false, value: null };
10789
- instRef.current = inst;
10790
- } else inst = instRef.current;
10791
- instRef = useMemo2(
10792
- function() {
10793
- function memoizedSelector(nextSnapshot) {
10794
- if (!hasMemo) {
10795
- hasMemo = true;
10796
- memoizedSnapshot = nextSnapshot;
10797
- nextSnapshot = selector2(nextSnapshot);
10798
- if (void 0 !== isEqual && inst.hasValue) {
10799
- var currentSelection = inst.value;
10800
- if (isEqual(currentSelection, nextSnapshot))
10801
- return memoizedSelection = currentSelection;
10802
- }
10803
- 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;
10804
10794
  }
10805
- currentSelection = memoizedSelection;
10806
- if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
10807
- var nextSelection = selector2(nextSnapshot);
10808
- if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
10809
- return memoizedSnapshot = nextSnapshot, currentSelection;
10810
- memoizedSnapshot = nextSnapshot;
10811
- return memoizedSelection = nextSelection;
10812
- }
10813
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
10814
- return [
10815
- function() {
10816
- return memoizedSelector(getSnapshot());
10817
- },
10818
- null === maybeGetServerSnapshot ? void 0 : function() {
10819
- return memoizedSelector(maybeGetServerSnapshot());
10820
- }
10821
- ];
10822
- },
10823
- [getSnapshot, getServerSnapshot, selector2, isEqual]
10824
- );
10825
- var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
10826
- useEffect2(
10827
- function() {
10828
- inst.hasValue = true;
10829
- inst.value = value;
10830
- },
10831
- [value]
10832
- );
10833
- useDebugValue2(value);
10834
- return value;
10835
- };
10836
- 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;
10837
10820
  }
10838
10821
  var hasRequiredWithSelector;
10839
10822
  function requireWithSelector() {
10840
10823
  if (hasRequiredWithSelector) return withSelector.exports;
10841
10824
  hasRequiredWithSelector = 1;
10842
10825
  {
10843
- withSelector.exports = requireWithSelector_production();
10826
+ withSelector.exports = requireWithSelector_production_min();
10844
10827
  }
10845
10828
  return withSelector.exports;
10846
10829
  }
@@ -10906,7 +10889,8 @@ function shallow$1(objA, objB) {
10906
10889
  return false;
10907
10890
  }
10908
10891
  if (objA instanceof Map && objB instanceof Map) {
10909
- if (objA.size !== objB.size) return false;
10892
+ if (objA.size !== objB.size)
10893
+ return false;
10910
10894
  for (const [key, value] of objA) {
10911
10895
  if (!Object.is(value, objB.get(key))) {
10912
10896
  return false;
@@ -10915,7 +10899,8 @@ function shallow$1(objA, objB) {
10915
10899
  return true;
10916
10900
  }
10917
10901
  if (objA instanceof Set && objB instanceof Set) {
10918
- if (objA.size !== objB.size) return false;
10902
+ if (objA.size !== objB.size)
10903
+ return false;
10919
10904
  for (const value of objA) {
10920
10905
  if (!objB.has(value)) {
10921
10906
  return false;
@@ -10927,8 +10912,8 @@ function shallow$1(objA, objB) {
10927
10912
  if (keysA.length !== Object.keys(objB).length) {
10928
10913
  return false;
10929
10914
  }
10930
- for (const keyA of keysA) {
10931
- 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]])) {
10932
10917
  return false;
10933
10918
  }
10934
10919
  }
@@ -106250,7 +106235,7 @@ const browserExt = {
106250
106235
  },
106251
106236
  test: () => true,
106252
106237
  load: async () => {
106253
- await import("./browserAll-DsnGrrNf.js");
106238
+ await import("./browserAll-CjncPJpI.js");
106254
106239
  }
106255
106240
  };
106256
106241
  const webworkerExt = {
@@ -106261,7 +106246,7 @@ const webworkerExt = {
106261
106246
  },
106262
106247
  test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
106263
106248
  load: async () => {
106264
- await import("./webworkerAll-B1yAYeD0.js");
106249
+ await import("./webworkerAll-C4pMbFGR.js");
106265
106250
  }
106266
106251
  };
106267
106252
  class ObservablePoint {
@@ -118504,19 +118489,19 @@ async function autoDetectRenderer(options) {
118504
118489
  for (let i2 = 0; i2 < preferredOrder.length; i2++) {
118505
118490
  const rendererType = preferredOrder[i2];
118506
118491
  if (rendererType === "webgpu" && await isWebGPUSupported()) {
118507
- const { WebGPURenderer } = await import("./WebGPURenderer-CgEpGyW-.js");
118492
+ const { WebGPURenderer } = await import("./WebGPURenderer-Bw59t4A5.js");
118508
118493
  RendererClass = WebGPURenderer;
118509
118494
  finalOptions = { ...options, ...options.webgpu };
118510
118495
  break;
118511
118496
  } else if (rendererType === "webgl" && isWebGLSupported(
118512
118497
  options.failIfMajorPerformanceCaveat ?? AbstractRenderer.defaultOptions.failIfMajorPerformanceCaveat
118513
118498
  )) {
118514
- const { WebGLRenderer } = await import("./WebGLRenderer-KD33jTG8.js");
118499
+ const { WebGLRenderer } = await import("./WebGLRenderer-Bm1hVYQ_.js");
118515
118500
  RendererClass = WebGLRenderer;
118516
118501
  finalOptions = { ...options, ...options.webgl };
118517
118502
  break;
118518
118503
  } else if (rendererType === "canvas") {
118519
- const { CanvasRenderer } = await import("./CanvasRenderer-8qDPmI6y.js");
118504
+ const { CanvasRenderer } = await import("./CanvasRenderer-CShuXSaA.js");
118520
118505
  RendererClass = CanvasRenderer;
118521
118506
  finalOptions = { ...options, ...options.canvasOptions };
118522
118507
  break;
@@ -135923,6 +135908,7 @@ const OverworldMapPanelContent = ({
135923
135908
  collectionKey,
135924
135909
  onViewportReady
135925
135910
  }) => {
135911
+ const wrapperRef = useRef(null);
135926
135912
  const canvasRef = useRef(null);
135927
135913
  const appRef = useRef(null);
135928
135914
  const viewportRef = useRef(null);
@@ -136015,8 +136001,8 @@ const OverworldMapPanelContent = ({
136015
136001
  }
136016
136002
  const canvasWidth = window.innerWidth;
136017
136003
  const canvasHeight = window.innerHeight;
136018
- const visibleWidth = ((_a = canvasRef.current) == null ? void 0 : _a.clientWidth) || width || 800;
136019
- 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;
136020
136006
  visibleDimensionsRef.current = {
136021
136007
  width: visibleWidth,
136022
136008
  height: visibleHeight
@@ -136599,6 +136585,7 @@ const OverworldMapPanelContent = ({
136599
136585
  return /* @__PURE__ */ jsxs(
136600
136586
  "div",
136601
136587
  {
136588
+ ref: wrapperRef,
136602
136589
  style: {
136603
136590
  position: "relative",
136604
136591
  width: "100%",
@@ -138904,4 +138891,4 @@ export {
138904
138891
  UPDATE_PRIORITY as y,
138905
138892
  removeItems as z
138906
138893
  };
138907
- //# sourceMappingURL=index-mh2Usj7o.js.map
138894
+ //# sourceMappingURL=index-Dx2G4QAh.js.map