@nanoporetech-digital/components 5.12.1 → 6.0.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 +25 -0
- package/dist/cjs/{local-my-account-d79ed0a2.js → local-my-account-1dfd69a0.js} +123 -15
- package/dist/{esm/local-my-account-6662da72.js.map → cjs/local-my-account-1dfd69a0.js.map} +1 -1
- package/dist/cjs/nano-algolia.cjs.entry.js +3 -0
- package/dist/cjs/nano-algolia.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +10 -8
- package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-search-results.cjs.entry.js +17 -43
- package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
- package/dist/collection/components/algolia/algolia-interface.js.map +1 -1
- package/dist/collection/components/algolia/algolia.js +1 -0
- package/dist/collection/components/algolia/algolia.js.map +1 -1
- package/dist/collection/components/algolia/lib/template.js +2 -0
- package/dist/collection/components/algolia/lib/template.js.map +1 -1
- package/dist/collection/components/global-nav/assets/local-my-account.json +120 -14
- package/dist/collection/components/global-nav/global-nav-interface.js.map +1 -1
- package/dist/collection/components/global-nav/global-nav.js +10 -8
- package/dist/collection/components/global-nav/global-nav.js.map +1 -1
- package/dist/collection/components/global-search-results/global-search-results.js +17 -43
- package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
- package/dist/components/algolia.js +3 -0
- package/dist/components/algolia.js.map +1 -1
- package/dist/components/local-my-account.js +122 -15
- package/dist/components/local-my-account.js.map +1 -1
- package/dist/components/nano-global-nav.js +9 -7
- package/dist/components/nano-global-nav.js.map +1 -1
- package/dist/components/nano-global-search-results.js +17 -43
- package/dist/components/nano-global-search-results.js.map +1 -1
- package/dist/esm/{local-my-account-6662da72.js → local-my-account-ddb62cc1.js} +123 -16
- package/dist/{cjs/local-my-account-d79ed0a2.js.map → esm/local-my-account-ddb62cc1.js.map} +1 -1
- package/dist/esm/nano-algolia.entry.js +3 -0
- package/dist/esm/nano-algolia.entry.js.map +1 -1
- package/dist/esm/nano-global-nav.entry.js +10 -8
- package/dist/esm/nano-global-nav.entry.js.map +1 -1
- package/dist/esm/nano-global-search-results.entry.js +17 -43
- package/dist/esm/nano-global-search-results.entry.js.map +1 -1
- package/dist/nano-assets/hash.txt +1 -1
- package/dist/nano-assets/local-my-account.json +120 -14
- package/dist/nano-components/assets/local-my-account.json +120 -14
- package/dist/nano-components/local-my-account-ddb62cc1.js +5 -0
- package/dist/nano-components/nano-algolia.entry.js +1 -1
- package/dist/nano-components/nano-algolia.entry.js.map +1 -1
- package/dist/nano-components/nano-global-nav.entry.js +1 -1
- package/dist/nano-components/nano-global-nav.entry.js.map +1 -1
- package/dist/nano-components/nano-global-search-results.entry.js +1 -1
- package/dist/nano-components/nano-global-search-results.entry.js.map +1 -1
- package/dist/types/components/algolia/algolia-interface.d.ts +9 -0
- package/dist/types/components/global-nav/global-nav-interface.d.ts +4 -0
- package/dist/types/interface.d.ts +5 -0
- package/docs-json.json +2 -2
- package/hydrate/index.js +151 -64
- package/package.json +2 -2
- package/dist/nano-components/local-my-account-6662da72.js +0 -5
- /package/dist/nano-components/{local-my-account-6662da72.js.map → local-my-account-ddb62cc1.js.map} +0 -0
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,31 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [6.0.0](https://git.oxfordnanolabs.local/Digital/nano-components/compare/v5.12.2...v6.0.0) (2024-04-05)
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* **global-nav:** `searchIndex` to set default search index uses the identifiable 'title' instead of the algolia index name. ([b747109](https://git.oxfordnanolabs.local/Digital/nano-components/commits/b747109f695e507695d15bf624395928d28d2fcb))
|
12
|
+
* **global-nav:** `searchIndex` to set default search index uses the... ([1ba6e85](https://git.oxfordnanolabs.local/Digital/nano-components/commits/1ba6e8579568ec77925026823eb6aaf6fd47bedc))
|
13
|
+
|
14
|
+
|
15
|
+
### BREAKING CHANGES
|
16
|
+
|
17
|
+
* **global-nav:** property `searchIndex` should now use the identifiable index 'title' instead of the algolia index name. E.g. 'All' instead of 'all_prod_en'
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
## [5.12.2](https://git.oxfordnanolabs.local/Digital/nano-components/compare/v5.12.1...v5.12.2) (2024-03-26)
|
24
|
+
|
25
|
+
**Note:** Version bump only for package @nanoporetech-digital/components
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
6
31
|
## [5.12.1](https://git.oxfordnanolabs.local/Digital/nano-components/compare/v5.12.0...v5.12.1) (2024-03-26)
|
7
32
|
|
8
33
|
|
@@ -4,21 +4,23 @@
|
|
4
4
|
'use strict';
|
5
5
|
|
6
6
|
const user = {
|
7
|
-
id: "
|
7
|
+
id: "john.jenkins",
|
8
8
|
uuid: "2589690E-A907-50BB-9551-55E18ABB1273",
|
9
|
-
name: "
|
10
|
-
first_name: "
|
11
|
-
last_name: "
|
12
|
-
email: "
|
13
|
-
|
14
|
-
|
15
|
-
small_avatar_url: "https://picsum.photos/75",
|
16
|
-
is_nanopore_user: false,
|
17
|
-
lifecycle_stage: "Lead",
|
9
|
+
name: "John Jenkins",
|
10
|
+
first_name: "John",
|
11
|
+
last_name: "Jenkins",
|
12
|
+
email: "john.jenkins@nanoporetech.com",
|
13
|
+
company: "Oxford Nanopore Technologies",
|
14
|
+
lifecycle_stage: "Other",
|
18
15
|
indirect_customer: false,
|
19
16
|
registration: {
|
20
17
|
next_url: null
|
21
|
-
}
|
18
|
+
},
|
19
|
+
covid19_store_access: false,
|
20
|
+
ncm20_user_group: false,
|
21
|
+
job_title: "Tester",
|
22
|
+
small_avatar_url: "https://myaccount-dev.nanoporetech.com/assets/generic-user-f6fcf06f5177e63bec5a3e34f7aa4adec5de3777bdaefdf4706220cdd99ca340.png",
|
23
|
+
country_code: "GB"
|
22
24
|
};
|
23
25
|
const domains = [
|
24
26
|
{
|
@@ -288,20 +290,38 @@ const urls = {
|
|
288
290
|
logout: "https://myaccount-dev.nanoporetech.com/sso/logout?RelayState=",
|
289
291
|
login: null,
|
290
292
|
messages: "https://myaccount-dev.nanoporetech.com/message_centre",
|
291
|
-
cart: "https://
|
293
|
+
cart: "https://test.store.nanoporetech.com/cart"
|
292
294
|
};
|
293
295
|
const search = {
|
294
296
|
app_id: "N8NZI5A47F",
|
295
297
|
api_key: "b38860b015b02c9cb6993cf0367ed203",
|
296
298
|
indeces: [
|
297
299
|
{
|
298
|
-
index: "
|
300
|
+
index: "ont_dev_en_v3",
|
299
301
|
name: "All",
|
300
302
|
domain: "nanoporetech.com",
|
301
303
|
all_group: true,
|
302
304
|
filters: [
|
303
305
|
"tags",
|
304
306
|
"type"
|
307
|
+
],
|
308
|
+
replicas: [
|
309
|
+
{
|
310
|
+
name: "Sort by: Most relevant",
|
311
|
+
index: "ont_dev_en_v3"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
name: "Sort by: Newest",
|
315
|
+
index: "ont_dev_en_v3_date_desc"
|
316
|
+
},
|
317
|
+
{
|
318
|
+
name: "Sort by: Oldest",
|
319
|
+
index: "ont_dev_en_v3_date_asc"
|
320
|
+
},
|
321
|
+
{
|
322
|
+
name: "Sort by: Recent activity",
|
323
|
+
index: "ont_dev_en_v3_activity_date_desc"
|
324
|
+
}
|
305
325
|
]
|
306
326
|
},
|
307
327
|
{
|
@@ -311,6 +331,24 @@ const search = {
|
|
311
331
|
filters: [
|
312
332
|
"tags",
|
313
333
|
"type"
|
334
|
+
],
|
335
|
+
replicas: [
|
336
|
+
{
|
337
|
+
name: "Sort by: Most relevant",
|
338
|
+
index: "cws_english_en"
|
339
|
+
},
|
340
|
+
{
|
341
|
+
name: "Sort by: Newest",
|
342
|
+
index: "cws_english_en_date_desc"
|
343
|
+
},
|
344
|
+
{
|
345
|
+
name: "Sort by: Oldest",
|
346
|
+
index: "cws_english_en_date_asc"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
name: "Sort by: Recent activity",
|
350
|
+
index: "cws_english_en_activity_date_desc"
|
351
|
+
}
|
314
352
|
]
|
315
353
|
},
|
316
354
|
{
|
@@ -319,6 +357,20 @@ const search = {
|
|
319
357
|
domain: "store.nanoporetech.com",
|
320
358
|
filters: [
|
321
359
|
"type"
|
360
|
+
],
|
361
|
+
replicas: [
|
362
|
+
{
|
363
|
+
name: "Sort by: Most relevant",
|
364
|
+
index: "store_prod"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
name: "Sort by: Newest",
|
368
|
+
index: "store_date_desc"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
name: "Sort by: Oldest",
|
372
|
+
index: "store_date_asc"
|
373
|
+
}
|
322
374
|
]
|
323
375
|
},
|
324
376
|
{
|
@@ -327,6 +379,20 @@ const search = {
|
|
327
379
|
domain: "nanoporetech.com",
|
328
380
|
filters: [
|
329
381
|
"tags"
|
382
|
+
],
|
383
|
+
replicas: [
|
384
|
+
{
|
385
|
+
name: "Sort by: Most relevant",
|
386
|
+
index: "cws_english_resources_en"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
name: "Sort by: Newest",
|
390
|
+
index: "cws_english_resources_en_date_desc"
|
391
|
+
},
|
392
|
+
{
|
393
|
+
name: "Sort by: Oldest",
|
394
|
+
index: "cws_english_resources_en_date_asc"
|
395
|
+
}
|
330
396
|
]
|
331
397
|
},
|
332
398
|
{
|
@@ -338,10 +404,50 @@ const search = {
|
|
338
404
|
"channel",
|
339
405
|
"authors",
|
340
406
|
"tags"
|
407
|
+
],
|
408
|
+
replicas: [
|
409
|
+
{
|
410
|
+
name: "Sort by: Most relevant",
|
411
|
+
index: "community_prod"
|
412
|
+
},
|
413
|
+
{
|
414
|
+
name: "Sort by: Newest",
|
415
|
+
index: "community_prod_date_desc"
|
416
|
+
},
|
417
|
+
{
|
418
|
+
name: "Sort by: Oldest",
|
419
|
+
index: "community_prod_date_asc"
|
420
|
+
},
|
421
|
+
{
|
422
|
+
name: "Sort by: Recent activity",
|
423
|
+
index: "community_prod_activity_date_desc"
|
424
|
+
}
|
341
425
|
]
|
342
426
|
}
|
343
427
|
]
|
344
428
|
};
|
429
|
+
const promotion = {
|
430
|
+
header: {
|
431
|
+
img: "https://nanoporetech.com/sites/default/files/s3/gn-promotion-lc20.png",
|
432
|
+
label: "London Calling 2020 Online",
|
433
|
+
url: "https://londoncallingconf.co.uk/lc20"
|
434
|
+
},
|
435
|
+
description: "A conference hosted by Oxford Nanopore Technologies",
|
436
|
+
meta: [
|
437
|
+
{
|
438
|
+
icon: "calendar",
|
439
|
+
label: "18th - 19th June 2020"
|
440
|
+
},
|
441
|
+
{
|
442
|
+
icon: "map-marker",
|
443
|
+
label: "Online"
|
444
|
+
}
|
445
|
+
],
|
446
|
+
cta: {
|
447
|
+
label: "Register Now",
|
448
|
+
url: "https://nanoporetech.com/lc-online/register"
|
449
|
+
}
|
450
|
+
};
|
345
451
|
const localMyAccount = {
|
346
452
|
user: user,
|
347
453
|
domains: domains,
|
@@ -349,7 +455,8 @@ const localMyAccount = {
|
|
349
455
|
notifications: notifications,
|
350
456
|
links: links,
|
351
457
|
urls: urls,
|
352
|
-
search: search
|
458
|
+
search: search,
|
459
|
+
promotion: promotion
|
353
460
|
};
|
354
461
|
|
355
462
|
exports.cart = cart;
|
@@ -357,8 +464,9 @@ exports.default = localMyAccount;
|
|
357
464
|
exports.domains = domains;
|
358
465
|
exports.links = links;
|
359
466
|
exports.notifications = notifications;
|
467
|
+
exports.promotion = promotion;
|
360
468
|
exports.search = search;
|
361
469
|
exports.urls = urls;
|
362
470
|
exports.user = user;
|
363
471
|
|
364
|
-
//# sourceMappingURL=local-my-account-
|
472
|
+
//# sourceMappingURL=local-my-account-1dfd69a0.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"local-my-account-
|
1
|
+
{"file":"local-my-account-1dfd69a0.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1160,6 +1160,8 @@ filters.define('abs_url', (str, index = null, result) => {
|
|
1160
1160
|
domain = index.domain;
|
1161
1161
|
if (!domain)
|
1162
1162
|
return str;
|
1163
|
+
if (!str.startsWith('/'))
|
1164
|
+
str = '/' + str;
|
1163
1165
|
return str.match(/^http/) ? str : location.protocol + '//' + domain + str;
|
1164
1166
|
});
|
1165
1167
|
filters.define('replace', (str, search, replace) => str.replace(search, replace));
|
@@ -1282,6 +1284,7 @@ const Algolia = class {
|
|
1282
1284
|
appliedFilters: this.makeAppliedFilters(),
|
1283
1285
|
indexName: this.searchIndex.name || null,
|
1284
1286
|
index: this.searchIndex.index,
|
1287
|
+
searchIndex: this.searchIndex,
|
1285
1288
|
};
|
1286
1289
|
}
|
1287
1290
|
this.indexResults.dynFilters = result.facets;
|