@thefittingroom/shop-ui 5.0.37 → 5.0.38

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 (2) hide show
  1. package/dist/index.js +7 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -44818,13 +44818,10 @@ function FittingRoomOverlay({
44818
44818
  item
44819
44819
  }) => item);
44820
44820
  }, [resolved.items, selectedExternalIds]);
44821
- const canTuck = reactExports.useMemo(() => selectedItems.some((top) => {
44822
- const topCategory = top.styleCategory;
44823
- if (!topCategory?.tuckable) {
44824
- return false;
44825
- }
44826
- return selectedItems.some((other) => !!other.styleCategory && !other.styleCategory.tuckable && other.styleCategory.layer_order > topCategory.layer_order);
44827
- }), [selectedItems]);
44821
+ const canTuck = reactExports.useMemo(() => {
44822
+ const allCategories = selectedItems.flatMap((item) => item.effective.map((e) => e.category));
44823
+ return allCategories.some((top) => top.tuckable && allCategories.some((other) => !other.tuckable && other.layer_order > top.layer_order));
44824
+ }, [selectedItems]);
44828
44825
  const availabilityByExternalId = reactExports.useMemo(() => {
44829
44826
  const out = {};
44830
44827
  for (const item of resolved.items) {
@@ -48097,9 +48094,9 @@ const SHARED_CONFIG = {
48097
48094
  appGooglePlayUrl: "https://play.google.com/store/apps/details?id=com.thefittingroom.marketplace"
48098
48095
  },
48099
48096
  build: {
48100
- version: `${"5.0.37"}`,
48101
- commitHash: `${"ddb6050"}`,
48102
- date: `${"2026-07-18T08:43:24.829Z"}`
48097
+ version: `${"5.0.38"}`,
48098
+ commitHash: `${"dedd084"}`,
48099
+ date: `${"2026-07-18T08:50:04.778Z"}`
48103
48100
  }
48104
48101
  };
48105
48102
  const CONFIGS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefittingroom/shop-ui",
3
- "version": "5.0.37",
3
+ "version": "5.0.38",
4
4
  "description": "the fitting room UI library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",