@streamoid/catalogix-chat 0.2.23 → 0.2.24

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.ts CHANGED
@@ -89,6 +89,7 @@ declare const catalogixManifest: readonly [{
89
89
  */
90
90
  interface ApiConfig {
91
91
  catalogixBaseUrl: string;
92
+ catalogingBaseUrl: string;
92
93
  keplerProxyPrefix: string;
93
94
  }
94
95
  declare function configureApi(config: Partial<ApiConfig>): void;
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import { useEffect as useEffect9 } from "react";
4
4
  // src/api.ts
5
5
  var _config = {
6
6
  catalogixBaseUrl: "",
7
+ catalogingBaseUrl: "https://cataloging.streamoid.com",
7
8
  keplerProxyPrefix: "/kepler-api"
8
9
  };
9
10
  function configureApi(config) {
@@ -3154,13 +3155,13 @@ async function mergeFeed(fileUrl, feedFormat, changes) {
3154
3155
  );
3155
3156
  }
3156
3157
  async function fetchValidValues(sourceMp, marketplaceOv, category, attribute) {
3157
- const { catalogixBaseUrl } = getApiConfig();
3158
+ const { catalogingBaseUrl } = getApiConfig();
3158
3159
  const params = new URLSearchParams({
3159
3160
  response_style: "light",
3160
3161
  category,
3161
3162
  attribute
3162
3163
  });
3163
- const url = `${catalogixBaseUrl}/marketplaces/${sourceMp}/versions/${marketplaceOv}/structure?${params}`;
3164
+ const url = `${catalogingBaseUrl}/marketplaces/${sourceMp}/versions/${marketplaceOv}/structure?${params}`;
3164
3165
  const resp = await fetchJson(url);
3165
3166
  return resp[attribute] ?? Object.values(resp)[0] ?? [];
3166
3167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/catalogix-chat",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
4
4
  "description": "Catalogix chat components for the Streamoid chat host — store creation, product selection, automations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",