@partium/js-sdk 14.3.0 → 14.4.1

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.
@@ -78,6 +78,14 @@ var PaginatedRequestServiceImpl = /** @class */ (function () {
78
78
  return this.paginatedList && this.paginatedList.moreResultsAvailable();
79
79
  };
80
80
  PaginatedRequestServiceImpl.prototype.loadMore = function () {
81
+ if (this.cursorPaginationEnabled) {
82
+ var url = new URL(this.paginatedList.nextPage);
83
+ var urlParams = new URLSearchParams(url.search);
84
+ var cursor = urlParams.get('cursor');
85
+ this.urlParams = this.removeUrlParam(this.urlParams, 'cursor');
86
+ this.urlParams = __spreadArray(__spreadArray([], this.urlParams, true), [{ cursor: cursor }], false);
87
+ return this.loadPage(null);
88
+ }
81
89
  if (!this.isInitialPageLoaded()) {
82
90
  // no search active/initial result not yet returned
83
91
  return (0, rxjs_1.throwError)(new error_1.SdkError(error_1.SDK_ERROR_CODES.INITIAL_ITEMS_NOT_YET_LOADED, null));
@@ -1,2 +1,2 @@
1
1
  // Copyright © 2022-2025 Partium, Inc. DBA Partium
2
- export declare const SDK_VERSION_NUMBER = "14.3.0";
2
+ export declare const SDK_VERSION_NUMBER = "14.4.1";
@@ -2,5 +2,5 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SDK_VERSION_NUMBER = void 0;
5
- exports.SDK_VERSION_NUMBER = '14.3.0';
5
+ exports.SDK_VERSION_NUMBER = '14.4.1';
6
6
  //# sourceMappingURL=sdk-version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partium/js-sdk",
3
- "version": "14.3.0",
3
+ "version": "14.4.1",
4
4
  "author": "Partium Inc.",
5
5
  "license": "See LICENSE.txt",
6
6
  "description": "The Partium Find SDK enables integration of Partium’s parts and materials search capabilities into JavaScript-based applications.",