instantsearch-ui-components 0.11.0 → 0.11.2

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.
@@ -150,7 +150,8 @@ function createCarouselComponent(_ref3) {
150
150
  sendEvent('click:internal', item, 'Item Clicked');
151
151
  }
152
152
  }, createElement(ItemComponent, {
153
- item: item
153
+ item: item,
154
+ sendEvent: sendEvent
154
155
  }));
155
156
  })), createElement("button", {
156
157
  ref: nextButtonRef,
@@ -27,7 +27,8 @@ function createListComponent(_ref) {
27
27
  sendEvent('click:internal', item, 'Item Clicked');
28
28
  }
29
29
  }, createElement(ItemComponent, {
30
- item: item
30
+ item: item,
31
+ sendEvent: sendEvent
31
32
  }));
32
33
  })));
33
34
  };
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = '0.11.0';
7
+ var _default = exports.default = '0.11.2';
@@ -142,7 +142,8 @@ export function createCarouselComponent(_ref3) {
142
142
  sendEvent('click:internal', item, 'Item Clicked');
143
143
  }
144
144
  }, createElement(ItemComponent, {
145
- item: item
145
+ item: item,
146
+ sendEvent: sendEvent
146
147
  }));
147
148
  })), createElement("button", {
148
149
  ref: nextButtonRef,
@@ -21,7 +21,8 @@ export function createListComponent(_ref) {
21
21
  sendEvent('click:internal', item, 'Item Clicked');
22
22
  }
23
23
  }, createElement(ItemComponent, {
24
- item: item
24
+ item: item,
25
+ sendEvent: sendEvent
25
26
  }));
26
27
  })));
27
28
  };
@@ -64,6 +64,7 @@ export type RecordWithObjectID<TObject = Record<string, unknown>> = TObject & {
64
64
  };
65
65
  export type RecommendItemComponentProps<TObject> = {
66
66
  item: TObject;
67
+ sendEvent: SendEventForHits;
67
68
  onClick?: () => void;
68
69
  onAuxClick?: () => void;
69
70
  };
@@ -1 +1,5 @@
1
- export type SendEventForHits = (...props: unknown[]) => void;
1
+ import type { RecordWithObjectID } from './Recommend';
2
+ type BuiltInSendEventForHits = (eventType: string, hits: RecordWithObjectID<any> | Array<RecordWithObjectID<any>>, eventName?: string, additionalData?: Record<string, any>) => void;
3
+ type CustomSendEventForHits = (customPayload: any) => void;
4
+ export type SendEventForHits = BuiltInSendEventForHits & CustomSendEventForHits;
5
+ export {};
@@ -1,2 +1,2 @@
1
- declare const _default: "0.11.0";
1
+ declare const _default: "0.11.2";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '0.11.0';
1
+ export default '0.11.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instantsearch-ui-components",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Common UI components for InstantSearch.",
5
5
  "types": "dist/es/index.d.ts",
6
6
  "main": "dist/cjs/index.js",
@@ -47,7 +47,7 @@
47
47
  "watch:es": "yarn --silent build:es:base --watch"
48
48
  },
49
49
  "dependencies": {
50
- "@babel/runtime": "^7.1.2"
50
+ "@babel/runtime": "^7.27.6"
51
51
  },
52
- "gitHead": "d3e46fedc5bba4482cfc5aadaf9b9c436681e93f"
52
+ "gitHead": "d0486032831c0b2ee22169aa1f5052b88b9543b0"
53
53
  }