ochre-sdk 1.0.11 → 1.0.12

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
@@ -480,6 +480,7 @@ type WebElementComponent<T extends LanguageCodes = LanguageCodes> = {
480
480
  paginationVariant: "default" | "numeric";
481
481
  loadingVariant: "spinner" | "skeleton" | "animation" | "none";
482
482
  imageLayout: "top" | "bottom" | "start" | "end" | null;
483
+ expectedItemCount: number | null;
483
484
  isSortDisplayed: boolean;
484
485
  isUsingQueryParams: boolean;
485
486
  filter: {
package/dist/index.mjs CHANGED
@@ -4572,6 +4572,7 @@ function parseWebElementProperties(componentProperty, elementResource, options)
4572
4572
  const variant = componentReader.valueOr("variant", "slide");
4573
4573
  const paginationVariant = componentReader.valueOr("pagination-variant", "default");
4574
4574
  const loadingVariant = componentReader.valueOr("loading-variant", "skeleton");
4575
+ const expectedItemCount = componentReader.valueOr("item-count", null);
4575
4576
  const isUsingQueryParams = componentReader.valueOr("is-using-query-params", false);
4576
4577
  const isFilterResultsBarDisplayed = componentReader.valueOr("filter-results-bar-displayed", false);
4577
4578
  const isFilterInputDisplayed = componentReader.valueOr("filter-input-displayed", false);
@@ -4593,6 +4594,7 @@ function parseWebElementProperties(componentProperty, elementResource, options)
4593
4594
  paginationVariant,
4594
4595
  loadingVariant,
4595
4596
  imageLayout,
4597
+ expectedItemCount,
4596
4598
  isUsingQueryParams,
4597
4599
  isSortDisplayed,
4598
4600
  filter: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
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",
@@ -42,6 +42,17 @@
42
42
  "files": [
43
43
  "dist"
44
44
  ],
45
+ "scripts": {
46
+ "dev": "tsdown src/index.ts --watch",
47
+ "build": "tsdown",
48
+ "lint": "eslint .",
49
+ "lint:fix": "eslint . --fix",
50
+ "format": "prettier --check .",
51
+ "format:fix": "prettier --write --list-different .",
52
+ "check-types": "tsc --noEmit",
53
+ "test": "vitest run",
54
+ "release": "bumpp"
55
+ },
45
56
  "dependencies": {
46
57
  "date-fns": "^4.2.1",
47
58
  "fast-equals": "^6.0.0",
@@ -56,17 +67,7 @@
56
67
  "prettier": "^3.8.3",
57
68
  "tsdown": "^0.22.0",
58
69
  "typescript": "^6.0.3",
59
- "vitest": "^4.1.6"
70
+ "vitest": "^4.1.7"
60
71
  },
61
- "scripts": {
62
- "dev": "tsdown src/index.ts --watch",
63
- "build": "tsdown",
64
- "lint": "eslint .",
65
- "lint:fix": "eslint . --fix",
66
- "format": "prettier --check .",
67
- "format:fix": "prettier --write --list-different .",
68
- "check-types": "tsc --noEmit",
69
- "test": "vitest run",
70
- "release": "bumpp"
71
- }
72
- }
72
+ "packageManager": "pnpm@11.2.1"
73
+ }