@retailcrm/embed-ui 0.2.7 → 0.2.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.2.8](https://github.com/retailcrm/embed-ui/compare/v0.2.7...v0.2.8) (2024-11-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * 'payload' argument of httpCall methods was made optional ([103b6a4](https://github.com/retailcrm/embed-ui/commit/103b6a4b608a252d6dc27334ae7bffdd8acbb23b))
11
+
5
12
  ### [0.2.7](https://github.com/retailcrm/embed-ui/compare/v0.2.6...v0.2.7) (2024-11-13)
6
13
 
7
14
 
package/dist/index.cjs CHANGED
@@ -163,8 +163,8 @@ const useInternal = pinia.defineStore("@retailcrm/embed-ui/_internal", {});
163
163
  const useHost = () => {
164
164
  const store = useInternal();
165
165
  return {
166
- httpCall(action, payload) {
167
- return store.endpoint.call.httpCall(action, payload);
166
+ httpCall(action, payload = void 0) {
167
+ return payload ? store.endpoint.call.httpCall(action, payload) : store.endpoint.call.httpCall(action);
168
168
  }
169
169
  };
170
170
  };
package/dist/index.mjs CHANGED
@@ -161,8 +161,8 @@ const useInternal = defineStore("@retailcrm/embed-ui/_internal", {});
161
161
  const useHost = () => {
162
162
  const store = useInternal();
163
163
  return {
164
- httpCall(action, payload) {
165
- return store.endpoint.call.httpCall(action, payload);
164
+ httpCall(action, payload = void 0) {
165
+ return payload ? store.endpoint.call.httpCall(action, payload) : store.endpoint.call.httpCall(action);
166
166
  }
167
167
  };
168
168
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.2.7",
4
+ "version": "0.2.8",
5
5
  "description": "API and components for creating RetailCRM UI extensions",
6
6
  "repository": "git@github.com:retailcrm/embed-ui.git",
7
7
  "author": "RetailDriverLLC <integration@retailcrm.ru>",
@@ -6,6 +6,6 @@ type Pojo = {
6
6
  export type Callable = {
7
7
  httpCall (
8
8
  action: string,
9
- payload: string | Pojo
9
+ payload?: string | Pojo
10
10
  ): Promise<{ body: string; status: number }>;
11
11
  }