ochre-sdk 0.22.6 → 0.22.8

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.mts CHANGED
@@ -802,6 +802,7 @@ type StylesheetCategory = Extract<DataCategory, "propertyVariable" | "propertyVa
802
802
  type StylesheetItem = {
803
803
  uuid: string;
804
804
  category: "propertyVariable";
805
+ icon: string | null;
805
806
  styles: {
806
807
  default: Array<Style>;
807
808
  tablet: Array<Style>;
@@ -811,6 +812,7 @@ type StylesheetItem = {
811
812
  uuid: string;
812
813
  category: "propertyValue";
813
814
  variableUuid: string;
815
+ icon: string | null;
814
816
  styles: {
815
817
  default: Array<Style>;
816
818
  tablet: Array<Style>;
package/dist/index.mjs CHANGED
@@ -919,7 +919,6 @@ const setItemsParamsSchema = z.object({
919
919
  });
920
920
  //#endregion
921
921
  //#region src/utils/parse/index.ts
922
- const TRAILING_ELLIPSIS_REGEX = /\s*\.{3}$/;
923
922
  /**
924
923
  * Parses raw identification data into the standardized Identification type
925
924
  *
@@ -1426,7 +1425,7 @@ function parseProperty(property, language = "eng") {
1426
1425
  });
1427
1426
  return {
1428
1427
  uuid: property.label.uuid,
1429
- label: parseStringContent(property.label, language).replace(TRAILING_ELLIPSIS_REGEX, "").trim(),
1428
+ label: parseStringContent(property.label, language).trim(),
1430
1429
  values,
1431
1430
  comment: property.comment != null ? parseStringContent(property.comment) : null,
1432
1431
  properties: property.property ? parseProperties(ensureArray(property.property)) : []
@@ -3748,12 +3747,14 @@ function parseStylesheets(styles) {
3748
3747
  uuid: style.valueUuid,
3749
3748
  category: "propertyValue",
3750
3749
  variableUuid: style.variableUuid,
3750
+ icon: style.lucideIcon ?? null,
3751
3751
  styles: stylesByViewport
3752
3752
  };
3753
3753
  }
3754
3754
  return {
3755
3755
  uuid: style.variableUuid,
3756
3756
  category: "propertyVariable",
3757
+ icon: style.lucideIcon ?? null,
3757
3758
  styles: stylesByViewport
3758
3759
  };
3759
3760
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "0.22.6",
3
+ "version": "0.22.8",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",
@@ -49,12 +49,12 @@
49
49
  "zod": "^4.3.6"
50
50
  },
51
51
  "devDependencies": {
52
- "@antfu/eslint-config": "^8.1.1",
52
+ "@antfu/eslint-config": "^8.2.0",
53
53
  "@types/node": "^24.12.2",
54
54
  "bumpp": "^11.0.1",
55
55
  "eslint": "^10.2.0",
56
56
  "prettier": "^3.8.2",
57
- "tsdown": "^0.21.7",
57
+ "tsdown": "^0.21.8",
58
58
  "typescript": "^6.0.2",
59
59
  "vitest": "^4.1.4"
60
60
  },