@bridgeline-digital/hawksearch-handlebars-ui 6.2.0-beta.6 → 6.2.0
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 +7 -0
- package/dist/hawksearch-handlebars-ui.cjs +1 -1
- package/dist/hawksearch-handlebars-ui.js +1 -1
- package/dist/hawksearch-handlebars-ui.min.js +1 -1
- package/dist/hawksearch-handlebars-ui.umd.cjs +1 -1
- package/dist/index.d.ts +120 -5
- package/docs/assets/search.js +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/Configuration.ConversationalSearchComponentConfig.html +29 -11
- package/docs/interfaces/Configuration.SmartResponseComponentConfig.html +32 -9
- package/docs/interfaces/Configuration.VisualSearchFieldComponentConfig.html +32 -4
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# 6.2.0
|
|
2
|
+
|
|
3
|
+
## Enhancements
|
|
4
|
+
|
|
5
|
+
1. Added Conversational Search component `hawksearch-conversationalsearch` that allows thread maintained prompt driven search.
|
|
6
|
+
2. Added SmartResponse component `hawksearch-smartresponse` that allows prompt driven analysis of search results.
|
|
7
|
+
|
|
1
8
|
# 6.1.13
|
|
2
9
|
|
|
3
10
|
## Bug Fixes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @bridgeline-digital/hawksearch-handlebars-ui
|
|
3
3
|
*
|
|
4
|
-
* version: v6.2.0
|
|
4
|
+
* version: v6.2.0
|
|
5
5
|
*
|
|
6
6
|
* description: The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @bridgeline-digital/hawksearch-handlebars-ui
|
|
3
3
|
*
|
|
4
|
-
* version: v6.2.0
|
|
4
|
+
* version: v6.2.0
|
|
5
5
|
*
|
|
6
6
|
* description: The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @bridgeline-digital/hawksearch-handlebars-ui
|
|
3
3
|
*
|
|
4
|
-
* version: v6.2.0
|
|
4
|
+
* version: v6.2.0
|
|
5
5
|
*
|
|
6
6
|
* description: The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @bridgeline-digital/hawksearch-handlebars-ui
|
|
3
3
|
*
|
|
4
|
-
* version: v6.2.0
|
|
4
|
+
* version: v6.2.0
|
|
5
5
|
*
|
|
6
6
|
* description: The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.
|
|
7
7
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -237,15 +237,37 @@ declare interface ContentZones {
|
|
|
237
237
|
declare interface ConversationalSearchComponentConfig extends BaseComponentConfig {
|
|
238
238
|
query?: string;
|
|
239
239
|
strings?: {
|
|
240
|
+
/**
|
|
241
|
+
* #### Default Value
|
|
242
|
+
* `Enter a message...`
|
|
243
|
+
*/
|
|
240
244
|
placeholder?: string;
|
|
245
|
+
/**
|
|
246
|
+
* #### Default Value
|
|
247
|
+
* ``
|
|
248
|
+
*/
|
|
241
249
|
resetLabel?: string;
|
|
250
|
+
/**
|
|
251
|
+
* #### Default Value
|
|
252
|
+
* ``
|
|
253
|
+
*/
|
|
242
254
|
sendLabel?: string;
|
|
243
255
|
};
|
|
244
256
|
prompt?: {
|
|
257
|
+
/**
|
|
258
|
+
* #### Default Value
|
|
259
|
+
* `
|
|
260
|
+
* You are a recommendation agent, specialized in finding the perfect match for a user.
|
|
261
|
+
* Answer the question from the user extensivelly.
|
|
262
|
+
* You will be provided with an array of products as DATA.
|
|
263
|
+
* Create 2 suggested questions that a user could ask about this data that follows.
|
|
264
|
+
* Use new lines to seperate them. Make them short.
|
|
265
|
+
* Say something like 'Try one of these suggested questions:' followed by the questions you generate.
|
|
266
|
+
* Only use the information passed to you as DATA to answer the questions asked.
|
|
267
|
+
* Do not provide any information on amount of DATA you currently have.
|
|
268
|
+
* `
|
|
269
|
+
*/
|
|
245
270
|
instructions?: string;
|
|
246
|
-
schema?: object;
|
|
247
|
-
onRequest?: any;
|
|
248
|
-
onResponse?: any;
|
|
249
271
|
};
|
|
250
272
|
}
|
|
251
273
|
|
|
@@ -1303,14 +1325,87 @@ declare interface SizeFacetComponentConfig extends BaseComponentConfig {
|
|
|
1303
1325
|
|
|
1304
1326
|
declare interface SmartResponseComponentConfig extends BaseComponentConfig {
|
|
1305
1327
|
strings?: {
|
|
1328
|
+
/**
|
|
1329
|
+
* #### Default Value
|
|
1330
|
+
* `SmartResponse`
|
|
1331
|
+
*/
|
|
1306
1332
|
header?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* #### Default Value
|
|
1335
|
+
* `No Results found`
|
|
1336
|
+
*/
|
|
1307
1337
|
noresults?: string;
|
|
1308
1338
|
};
|
|
1339
|
+
/**
|
|
1340
|
+
* Specifies the agent instructions provided to GenAI Bridge
|
|
1341
|
+
*/
|
|
1309
1342
|
prompt?: {
|
|
1343
|
+
/**
|
|
1344
|
+
* #### Default Value
|
|
1345
|
+
* `
|
|
1346
|
+
* You are a recommendation agent, specialized in finding the perfect match for a user.
|
|
1347
|
+
* Answer the question from the user extensivelly.
|
|
1348
|
+
* You will be provided with a user input and an array of products.
|
|
1349
|
+
* Based on the user input and products, determine a maximum of 3 of the most relevant products based on the user input.
|
|
1350
|
+
* Do not provide any information about amount of products you're returning.
|
|
1351
|
+
* `
|
|
1352
|
+
*/
|
|
1310
1353
|
instructions?: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* #### Default Value
|
|
1356
|
+
* `
|
|
1357
|
+
* {
|
|
1358
|
+
* "name": "smartresponse_summary",
|
|
1359
|
+
* "description": "Recommedation message and product details which includes name, description, url, price and imageUrl",
|
|
1360
|
+
* "strict": true,
|
|
1361
|
+
* "schema": {
|
|
1362
|
+
* "type": "object",
|
|
1363
|
+
* "properties": {
|
|
1364
|
+
* "recommendation": {
|
|
1365
|
+
* "type": "string"
|
|
1366
|
+
* },
|
|
1367
|
+
* "products": {
|
|
1368
|
+
* "type": "array",
|
|
1369
|
+
* "items": {
|
|
1370
|
+
* "type": "object",
|
|
1371
|
+
* "properties": {
|
|
1372
|
+
* "name": {
|
|
1373
|
+
* "type": "string"
|
|
1374
|
+
* },
|
|
1375
|
+
* "url": {
|
|
1376
|
+
* "type": "string"
|
|
1377
|
+
* },
|
|
1378
|
+
* "description": {
|
|
1379
|
+
* "type": "string"
|
|
1380
|
+
* },
|
|
1381
|
+
* "price": {
|
|
1382
|
+
* "type": "number"
|
|
1383
|
+
* },
|
|
1384
|
+
* "imageUrl": {
|
|
1385
|
+
* "type": "string"
|
|
1386
|
+
* }
|
|
1387
|
+
* },
|
|
1388
|
+
* "required": [
|
|
1389
|
+
* "name",
|
|
1390
|
+
* "url",
|
|
1391
|
+
* "description",
|
|
1392
|
+
* "price",
|
|
1393
|
+
* "imageUrl"
|
|
1394
|
+
* ],
|
|
1395
|
+
* "additionalProperties": false
|
|
1396
|
+
* }
|
|
1397
|
+
* }
|
|
1398
|
+
* },
|
|
1399
|
+
* "required": [
|
|
1400
|
+
* "recommendation",
|
|
1401
|
+
* "products"
|
|
1402
|
+
* ],
|
|
1403
|
+
* "additionalProperties": false
|
|
1404
|
+
* }
|
|
1405
|
+
* }
|
|
1406
|
+
* `
|
|
1407
|
+
*/
|
|
1311
1408
|
schema?: object;
|
|
1312
|
-
onRequest?: any;
|
|
1313
|
-
onResponse?: any;
|
|
1314
1409
|
};
|
|
1315
1410
|
}
|
|
1316
1411
|
|
|
@@ -1428,9 +1523,29 @@ declare interface VariantSelectorComponentConfig extends BaseComponentConfig {
|
|
|
1428
1523
|
|
|
1429
1524
|
declare interface VisualSearchFieldComponentConfig extends BaseComponentConfig {
|
|
1430
1525
|
strings?: {
|
|
1526
|
+
/**
|
|
1527
|
+
* #### Default Value
|
|
1528
|
+
* `Drag an image here or `
|
|
1529
|
+
* *For more information, see {@link Components}.*
|
|
1530
|
+
*/
|
|
1431
1531
|
dragImageMessage?: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* #### Default Value
|
|
1534
|
+
* `upload an image`
|
|
1535
|
+
* *For more information, see {@link Components}.*
|
|
1536
|
+
*/
|
|
1432
1537
|
uploadImageMessage?: string;
|
|
1538
|
+
/**
|
|
1539
|
+
* #### Default Value
|
|
1540
|
+
* `Drop an image here`
|
|
1541
|
+
* *For more information, see {@link Components}.*
|
|
1542
|
+
*/
|
|
1433
1543
|
dropImageMessage?: string;
|
|
1544
|
+
/**
|
|
1545
|
+
* #### Default Value
|
|
1546
|
+
* `Drop an image here`
|
|
1547
|
+
* *For more information, see {@link Components}.*
|
|
1548
|
+
*/
|
|
1434
1549
|
errorMessage?: string;
|
|
1435
1550
|
};
|
|
1436
1551
|
}
|