@websolutespa/bom-core 1.8.19 → 1.8.21

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @websolutespa/bom-core
2
2
 
3
+ ## 1.8.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: IMeta
8
+
9
+ ## 1.8.20
10
+
11
+ ### Patch Changes
12
+
13
+ - Modified: isMedia, category, route
14
+
3
15
  ## 1.8.19
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -232,6 +232,7 @@ type IMeta = {
232
232
  description?: string;
233
233
  keywords?: string;
234
234
  robots?: string;
235
+ image?: IMedia;
235
236
  };
236
237
 
237
238
  type ICategory = IEntity & {
@@ -262,6 +263,7 @@ type ICategorized = IEntity & {
262
263
  markets?: string[];
263
264
  createdAt?: Date;
264
265
  updatedAt?: Date;
266
+ _status?: string;
265
267
  };
266
268
 
267
269
  type IClassNameValue = string | boolean | number | null | undefined;
package/dist/index.js CHANGED
@@ -579,7 +579,7 @@ function isMediaPdf(media) {
579
579
  return false;
580
580
  }
581
581
  function isMedia(item) {
582
- return isObject(item) && "type" in item && (isValidString(item.url) || isValidString(item.src));
582
+ return isObject(item) && ("mimeType" in item || "type" in item) && (isValidString(item.url) || isValidString(item.src));
583
583
  }
584
584
 
585
585
  // src/types/menu.ts
@@ -1686,7 +1686,10 @@ function getPickedProps(item) {
1686
1686
  "order",
1687
1687
  "template",
1688
1688
  "updatedAt",
1689
- "useSplat"
1689
+ "useSplat",
1690
+ // 'createdAt',
1691
+ "updatedAt",
1692
+ "_status"
1690
1693
  ].includes(k)));
1691
1694
  return pickedProps;
1692
1695
  }
package/dist/index.mjs CHANGED
@@ -410,7 +410,7 @@ function isMediaPdf(media) {
410
410
  return false;
411
411
  }
412
412
  function isMedia(item) {
413
- return isObject(item) && "type" in item && (isValidString(item.url) || isValidString(item.src));
413
+ return isObject(item) && ("mimeType" in item || "type" in item) && (isValidString(item.url) || isValidString(item.src));
414
414
  }
415
415
 
416
416
  // src/types/menu.ts
@@ -1517,7 +1517,10 @@ function getPickedProps(item) {
1517
1517
  "order",
1518
1518
  "template",
1519
1519
  "updatedAt",
1520
- "useSplat"
1520
+ "useSplat",
1521
+ // 'createdAt',
1522
+ "updatedAt",
1523
+ "_status"
1521
1524
  ].includes(k)));
1522
1525
  return pickedProps;
1523
1526
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-core",
3
- "version": "1.8.19",
3
+ "version": "1.8.21",
4
4
  "description": "Core module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",