@depict-ai/portal-components 2.8.1 → 2.8.2

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.d.ts CHANGED
@@ -4,7 +4,7 @@ import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
4
4
  import { Locale } from "@depict-ai/react-ui/locales/latest";
5
5
  import { ReactNode } from "react";
6
6
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
7
- export const version = "2.8.1";
7
+ export const version = "2.8.2";
8
8
  type TextOptions = {
9
9
  /** Enabled */
10
10
  enabled: boolean;
package/dist/main.js CHANGED
@@ -20,7 +20,7 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
20
20
  $parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
21
21
  $parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
22
22
  /*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
23
- const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.8.1";
23
+ const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.8.2";
24
24
 
25
25
 
26
26
 
@@ -1069,7 +1069,7 @@ function $3375ddd88f77967d$var$sortSizes(sizesToSort) {
1069
1069
  if (numericMatch) // It's a numeric size or a range like "44/46", we sort by the first number.
1070
1070
  return {
1071
1071
  size: size,
1072
- numericValue: parseInt(numericMatch[1], 10)
1072
+ numericValue_: parseInt(numericMatch[1], 10)
1073
1073
  };
1074
1074
  return {
1075
1075
  size: size
@@ -1081,9 +1081,9 @@ function $3375ddd88f77967d$var$sortSizes(sizesToSort) {
1081
1081
  // Both sizes are in the predefined list
1082
1082
  if (indexA !== -1 && indexB !== -1) return indexA - indexB;
1083
1083
  // Handle numeric and mixed sorting
1084
- if (a.numericValue != null && b.numericValue != null) return a.numericValue - b.numericValue;
1085
- if (a.numericValue != null && indexB === -1) return -1; // numeric values come before unknown text
1086
- if (b.numericValue != null && indexA === -1) return 1; // numeric values come before unknown text
1084
+ if (a.numericValue_ != null && b.numericValue_ != null) return a.numericValue_ - b.numericValue_;
1085
+ if (a.numericValue_ != null && indexB === -1) return -1; // numeric values come before unknown text
1086
+ if (b.numericValue_ != null && indexA === -1) return 1; // numeric values come before unknown text
1087
1087
  // Fallback if both are unrecognized, sort alphabetically
1088
1088
  return a.size.localeCompare(b.size);
1089
1089
  });
package/dist/module.js CHANGED
@@ -7,7 +7,7 @@ import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo,
7
7
  import {createPortal as $2MCgq$createPortal} from "react-dom";
8
8
 
9
9
  /*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
10
- const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.8.1";
10
+ const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.8.2";
11
11
 
12
12
 
13
13
 
@@ -1056,7 +1056,7 @@ function $29535f590238371c$var$sortSizes(sizesToSort) {
1056
1056
  if (numericMatch) // It's a numeric size or a range like "44/46", we sort by the first number.
1057
1057
  return {
1058
1058
  size: size,
1059
- numericValue: parseInt(numericMatch[1], 10)
1059
+ numericValue_: parseInt(numericMatch[1], 10)
1060
1060
  };
1061
1061
  return {
1062
1062
  size: size
@@ -1068,9 +1068,9 @@ function $29535f590238371c$var$sortSizes(sizesToSort) {
1068
1068
  // Both sizes are in the predefined list
1069
1069
  if (indexA !== -1 && indexB !== -1) return indexA - indexB;
1070
1070
  // Handle numeric and mixed sorting
1071
- if (a.numericValue != null && b.numericValue != null) return a.numericValue - b.numericValue;
1072
- if (a.numericValue != null && indexB === -1) return -1; // numeric values come before unknown text
1073
- if (b.numericValue != null && indexA === -1) return 1; // numeric values come before unknown text
1071
+ if (a.numericValue_ != null && b.numericValue_ != null) return a.numericValue_ - b.numericValue_;
1072
+ if (a.numericValue_ != null && indexB === -1) return -1; // numeric values come before unknown text
1073
+ if (b.numericValue_ != null && indexA === -1) return 1; // numeric values come before unknown text
1074
1074
  // Fallback if both are unrecognized, sort alphabetically
1075
1075
  return a.size.localeCompare(b.size);
1076
1076
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/portal-components",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -103,9 +103,9 @@
103
103
  "@babel/runtime": "latest",
104
104
  "@babel/runtime-corejs3": "^7.22.6",
105
105
  "@depict-ai/plp-styling": "^4.5.1",
106
- "@depict-ai/react-ui": "^4.9.3",
106
+ "@depict-ai/react-ui": "^4.9.4",
107
107
  "@depict-ai/types": "^5.5.1",
108
- "@depict-ai/ui": "^4.9.1",
108
+ "@depict-ai/ui": "^4.9.2",
109
109
  "@depict-ai/utilishared": "^2.5.1",
110
110
  "parcel": "^2.10.3",
111
111
  "solid-js": "^1.8.16"
@@ -1043,12 +1043,12 @@ function isLightColor(anyCssColor: string) {
1043
1043
  function sortSizes(sizesToSort: string[]): string[] {
1044
1044
  const sizeEntries: {
1045
1045
  size: string;
1046
- numericValue?: number;
1046
+ numericValue_?: number;
1047
1047
  }[] = sizesToSort.map(size => {
1048
1048
  const numericMatch = size.match(/^(\d+)(?:\/\d+)?$/);
1049
1049
  if (numericMatch) {
1050
1050
  // It's a numeric size or a range like "44/46", we sort by the first number.
1051
- return { size, numericValue: parseInt(numericMatch[1], 10) };
1051
+ return { size, numericValue_: parseInt(numericMatch[1], 10) };
1052
1052
  }
1053
1053
  return { size };
1054
1054
  });
@@ -1062,13 +1062,13 @@ function sortSizes(sizesToSort: string[]): string[] {
1062
1062
  return indexA - indexB;
1063
1063
  }
1064
1064
  // Handle numeric and mixed sorting
1065
- if (a.numericValue != null && b.numericValue != null) {
1066
- return a.numericValue - b.numericValue;
1065
+ if (a.numericValue_ != null && b.numericValue_ != null) {
1066
+ return a.numericValue_ - b.numericValue_;
1067
1067
  }
1068
- if (a.numericValue != null && indexB === -1) {
1068
+ if (a.numericValue_ != null && indexB === -1) {
1069
1069
  return -1; // numeric values come before unknown text
1070
1070
  }
1071
- if (b.numericValue != null && indexA === -1) {
1071
+ if (b.numericValue_ != null && indexA === -1) {
1072
1072
  return 1; // numeric values come before unknown text
1073
1073
  }
1074
1074
  // Fallback if both are unrecognized, sort alphabetically