@ikas/bp-storefront 1.4.0-beta.143 → 1.4.0-beta.145

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.
@@ -18,6 +18,11 @@ import { IkasAttributeTableCellValue, IkasProductAttributeValue } from "../../..
18
18
  export declare function getIkasProductAttributeTableValue(value: IkasProductAttributeValue): IkasAttributeTableCellValue[] | undefined;
19
19
  /**
20
20
  * Extracts and returns the product IDs from a PRODUCT-type attribute value's JSON string.
21
+ * NOTE: the export name really is misspelled — "Attrribute" with a double r. It is kept as-is because
22
+ * renaming a published export would break every theme that imports it, so import it VERBATIM; the
23
+ * correctly spelled `getIkasProductAttributeProductIds` does not exist and will not compile. This is
24
+ * not a documentation typo to report or "fix". In the blueprint editor the display alias is
25
+ * `getProductIds`, which hides the misspelling; only direct TypeScript imports see it.
21
26
  *
22
27
  * @ai-category ProductAttribute, Product
23
28
  * @ai-related getIkasProductAttributeTableValue, getIkasProductAttributeProducts
@@ -10,4 +10,9 @@ export type IkasProductAttribute = {
10
10
  tableTemplate: IkasProductAttributeTableTemplate | null;
11
11
  translations?: IkasProductAttributeTranslation[] | null;
12
12
  };
13
- export type IkasProductAttributeType = "CHOICE" | "MULTIPLE_CHOICE" | "TEXT" | "BOOLEAN" | "NUMERIC" | "DATETIME" | "HTML" | "TABLE" | "IMAGE" | "PRODUCT";
13
+ /**
14
+ * Mirror of the API's `ProductAttributeTypeEnum` (see storefront-api `__api/types`). The API value is
15
+ * force-cast into this union when products are mapped (`functions/api/product`), so a value missing
16
+ * here still arrives at runtime — it just stops being visible to the compiler. Keep both lists in sync.
17
+ */
18
+ export type IkasProductAttributeType = "CHOICE" | "MULTIPLE_CHOICE" | "COLOR_THUMBNAIL_MULTIPLE_CHOICE" | "TEXT" | "BOOLEAN" | "NUMERIC" | "DATE" | "DATETIME" | "HTML" | "TABLE" | "IMAGE" | "PRODUCT";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/bp-storefront",
3
- "version": "1.4.0-beta.143",
3
+ "version": "1.4.0-beta.145",
4
4
  "description": "A framework for the ikas blueprint storefronts.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",