@empathyco/x-components 6.0.0-alpha.44 → 6.0.0-alpha.46

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/design-system/deprecated-full-theme.css +825 -825
  3. package/docs/API-reference/api/{x-components.defaultpdpaddtocartservice._constructor_.md → x-components.defaultexternaltaggingservice._constructor_.md} +3 -3
  4. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.add_to_cart_id_key.md +13 -0
  5. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.instance.md +13 -0
  6. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.localstorageservice.md +11 -0
  7. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.md +43 -0
  8. package/docs/API-reference/api/{x-components.defaultpdpaddtocartservice.movetosessionstorage.md → x-components.defaultexternaltaggingservice.movetosessionstorage.md} +2 -2
  9. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.result_clicked_id_key.md +13 -0
  10. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.sessionstorageservice.md +11 -0
  11. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.storagekey.md +11 -0
  12. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.storagettlms.md +11 -0
  13. package/docs/API-reference/api/{x-components.defaultpdpaddtocartservice.store.md → x-components.defaultexternaltaggingservice.store.md} +2 -2
  14. package/docs/API-reference/api/x-components.defaultexternaltaggingservice.storeaddtocart.md +24 -0
  15. package/docs/API-reference/api/{x-components.defaultpdpaddtocartservice.storeresultclicked.md → x-components.defaultexternaltaggingservice.storeresultclicked.md} +3 -3
  16. package/docs/API-reference/api/{x-components.defaultpdpaddtocartservice.trackaddtocart.md → x-components.defaultexternaltaggingservice.trackaddtocart.md} +3 -3
  17. package/docs/API-reference/api/x-components.externaltaggingservice.md +23 -0
  18. package/docs/API-reference/api/{x-components.pdpaddtocartservice.movetosessionstorage.md → x-components.externaltaggingservice.movetosessionstorage.md} +2 -2
  19. package/docs/API-reference/api/x-components.externaltaggingservice.storeaddtocart.md +24 -0
  20. package/docs/API-reference/api/{x-components.pdpaddtocartservice.storeresultclicked.md → x-components.externaltaggingservice.storeresultclicked.md} +3 -3
  21. package/docs/API-reference/api/{x-components.pdpaddtocartservice.trackaddtocart.md → x-components.externaltaggingservice.trackaddtocart.md} +3 -3
  22. package/docs/API-reference/api/x-components.md +2 -2
  23. package/docs/API-reference/api/x-components.tagging.md +6 -6
  24. package/docs/API-reference/api/x-components.taggingconfig.md +2 -2
  25. package/docs/API-reference/api/{x-components.taggingconfig.clickedresultstoragekey.md → x-components.taggingconfig.storagekey.md} +3 -3
  26. package/docs/API-reference/api/x-components.taggingconfig.storagettlms.md +13 -0
  27. package/docs/API-reference/api/x-components.taggingxevents.md +1 -1
  28. package/docs/API-reference/api/x-components.taggingxevents.resulturltrackingenabled.md +1 -1
  29. package/docs/API-reference/components/tagging/x-components.tagging.md +15 -16
  30. package/js/index.js +1 -1
  31. package/js/x-modules/search/store/actions/save-search-response.action.js +1 -0
  32. package/js/x-modules/search/store/actions/save-search-response.action.js.map +1 -1
  33. package/js/x-modules/tagging/components/tagging.vue.js +8 -7
  34. package/js/x-modules/tagging/components/tagging.vue.js.map +1 -1
  35. package/js/x-modules/tagging/service/{pdp-add-to-cart.service.js → external-tagging.service.js} +56 -25
  36. package/js/x-modules/tagging/service/external-tagging.service.js.map +1 -0
  37. package/js/x-modules/tagging/store/emitters.js +1 -1
  38. package/js/x-modules/tagging/store/emitters.js.map +1 -1
  39. package/js/x-modules/tagging/store/module.js +2 -2
  40. package/js/x-modules/tagging/store/module.js.map +1 -1
  41. package/js/x-modules/tagging/wiring.js +14 -7
  42. package/js/x-modules/tagging/wiring.js.map +1 -1
  43. package/package.json +2 -2
  44. package/report/x-components.api.json +768 -639
  45. package/report/x-components.api.md +45 -41
  46. package/tagging/index.js +1 -1
  47. package/types/x-modules/search/store/actions/save-search-response.action.d.ts.map +1 -1
  48. package/types/x-modules/tagging/components/tagging.vue.d.ts +14 -12
  49. package/types/x-modules/tagging/components/tagging.vue.d.ts.map +1 -1
  50. package/types/x-modules/tagging/config.types.d.ts +3 -3
  51. package/types/x-modules/tagging/config.types.d.ts.map +1 -1
  52. package/types/x-modules/tagging/events.types.d.ts +2 -2
  53. package/types/x-modules/tagging/service/{pdp-add-to-cart.service.d.ts → external-tagging.service.d.ts} +31 -13
  54. package/types/x-modules/tagging/service/external-tagging.service.d.ts.map +1 -0
  55. package/types/x-modules/tagging/service/index.d.ts +1 -1
  56. package/types/x-modules/tagging/service/index.d.ts.map +1 -1
  57. package/types/x-modules/tagging/service/types.d.ts +13 -4
  58. package/types/x-modules/tagging/service/types.d.ts.map +1 -1
  59. package/types/x-modules/tagging/wiring.d.ts +1 -0
  60. package/types/x-modules/tagging/wiring.d.ts.map +1 -1
  61. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.clickedresultstoragekey.md +0 -11
  62. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.clickedresultstoragettlms.md +0 -11
  63. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.instance.md +0 -13
  64. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.localstorageservice.md +0 -11
  65. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.md +0 -41
  66. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.result_clicked_id_key.md +0 -13
  67. package/docs/API-reference/api/x-components.defaultpdpaddtocartservice.sessionstorageservice.md +0 -11
  68. package/docs/API-reference/api/x-components.pdpaddtocartservice.md +0 -22
  69. package/docs/API-reference/api/x-components.taggingconfig.clickedresultstoragettlms.md +0 -13
  70. package/js/x-modules/tagging/service/pdp-add-to-cart.service.js.map +0 -1
  71. package/types/x-modules/tagging/service/pdp-add-to-cart.service.d.ts.map +0 -1
@@ -14134,6 +14134,548 @@
14134
14134
  ],
14135
14135
  "name": "deepFlat"
14136
14136
  },
14137
+ {
14138
+ "kind": "Class",
14139
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService:class",
14140
+ "docComment": "/**\n * Default implementation for the {@link ExternalTaggingService}.\n *\n * @public\n */\n",
14141
+ "excerptTokens": [
14142
+ {
14143
+ "kind": "Content",
14144
+ "text": "export declare class DefaultExternalTaggingService implements "
14145
+ },
14146
+ {
14147
+ "kind": "Reference",
14148
+ "text": "ExternalTaggingService",
14149
+ "canonicalReference": "@empathyco/x-components!ExternalTaggingService:interface"
14150
+ },
14151
+ {
14152
+ "kind": "Content",
14153
+ "text": " "
14154
+ }
14155
+ ],
14156
+ "fileUrlPath": "src/x-modules/tagging/service/external-tagging.service.ts",
14157
+ "releaseTag": "Public",
14158
+ "isAbstract": false,
14159
+ "name": "DefaultExternalTaggingService",
14160
+ "preserveMemberOrder": false,
14161
+ "members": [
14162
+ {
14163
+ "kind": "Constructor",
14164
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService:constructor(1)",
14165
+ "docComment": "/**\n * Constructs a new instance of the `DefaultExternalTaggingService` class\n */\n",
14166
+ "excerptTokens": [
14167
+ {
14168
+ "kind": "Content",
14169
+ "text": "constructor(localStorageService?: "
14170
+ },
14171
+ {
14172
+ "kind": "Reference",
14173
+ "text": "StorageService",
14174
+ "canonicalReference": "@empathyco/x-storage-service!StorageService:interface"
14175
+ },
14176
+ {
14177
+ "kind": "Content",
14178
+ "text": ", sessionStorageService?: "
14179
+ },
14180
+ {
14181
+ "kind": "Reference",
14182
+ "text": "StorageService",
14183
+ "canonicalReference": "@empathyco/x-storage-service!StorageService:interface"
14184
+ },
14185
+ {
14186
+ "kind": "Content",
14187
+ "text": ");"
14188
+ }
14189
+ ],
14190
+ "releaseTag": "Public",
14191
+ "isProtected": false,
14192
+ "overloadIndex": 1,
14193
+ "parameters": [
14194
+ {
14195
+ "parameterName": "localStorageService",
14196
+ "parameterTypeTokenRange": {
14197
+ "startIndex": 1,
14198
+ "endIndex": 2
14199
+ },
14200
+ "isOptional": true
14201
+ },
14202
+ {
14203
+ "parameterName": "sessionStorageService",
14204
+ "parameterTypeTokenRange": {
14205
+ "startIndex": 3,
14206
+ "endIndex": 4
14207
+ },
14208
+ "isOptional": true
14209
+ }
14210
+ ]
14211
+ },
14212
+ {
14213
+ "kind": "Property",
14214
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService.ADD_TO_CART_ID_KEY:member",
14215
+ "docComment": "/**\n * Session id key to use as key in the storage for add to carts.\n *\n * @public\n */\n",
14216
+ "excerptTokens": [
14217
+ {
14218
+ "kind": "Content",
14219
+ "text": "static readonly ADD_TO_CART_ID_KEY = "
14220
+ },
14221
+ {
14222
+ "kind": "Content",
14223
+ "text": "\"checkout\""
14224
+ },
14225
+ {
14226
+ "kind": "Content",
14227
+ "text": ";"
14228
+ }
14229
+ ],
14230
+ "isReadonly": true,
14231
+ "isOptional": false,
14232
+ "releaseTag": "Public",
14233
+ "name": "ADD_TO_CART_ID_KEY",
14234
+ "propertyTypeTokenRange": {
14235
+ "startIndex": 0,
14236
+ "endIndex": 0
14237
+ },
14238
+ "initializerTokenRange": {
14239
+ "startIndex": 1,
14240
+ "endIndex": 2
14241
+ },
14242
+ "isStatic": true,
14243
+ "isProtected": false,
14244
+ "isAbstract": false
14245
+ },
14246
+ {
14247
+ "kind": "Property",
14248
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService.instance:member",
14249
+ "docComment": "/**\n * Global instance of the {@link ExternalTaggingService}.\n */\n",
14250
+ "excerptTokens": [
14251
+ {
14252
+ "kind": "Content",
14253
+ "text": "static instance: "
14254
+ },
14255
+ {
14256
+ "kind": "Reference",
14257
+ "text": "ExternalTaggingService",
14258
+ "canonicalReference": "@empathyco/x-components!ExternalTaggingService:interface"
14259
+ },
14260
+ {
14261
+ "kind": "Content",
14262
+ "text": ";"
14263
+ }
14264
+ ],
14265
+ "isReadonly": false,
14266
+ "isOptional": false,
14267
+ "releaseTag": "Public",
14268
+ "name": "instance",
14269
+ "propertyTypeTokenRange": {
14270
+ "startIndex": 1,
14271
+ "endIndex": 2
14272
+ },
14273
+ "isStatic": true,
14274
+ "isProtected": false,
14275
+ "isAbstract": false
14276
+ },
14277
+ {
14278
+ "kind": "Property",
14279
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#localStorageService:member",
14280
+ "docComment": "",
14281
+ "excerptTokens": [
14282
+ {
14283
+ "kind": "Content",
14284
+ "text": "protected localStorageService: "
14285
+ },
14286
+ {
14287
+ "kind": "Reference",
14288
+ "text": "StorageService",
14289
+ "canonicalReference": "@empathyco/x-storage-service!StorageService:interface"
14290
+ },
14291
+ {
14292
+ "kind": "Content",
14293
+ "text": ";"
14294
+ }
14295
+ ],
14296
+ "isReadonly": false,
14297
+ "isOptional": false,
14298
+ "releaseTag": "Public",
14299
+ "name": "localStorageService",
14300
+ "propertyTypeTokenRange": {
14301
+ "startIndex": 1,
14302
+ "endIndex": 2
14303
+ },
14304
+ "isStatic": false,
14305
+ "isProtected": true,
14306
+ "isAbstract": false
14307
+ },
14308
+ {
14309
+ "kind": "Method",
14310
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#moveToSessionStorage:member(1)",
14311
+ "docComment": "/**\n * Checks if the local storage contains a result information for the given id and moves the result info from the local storage to the session storage.\n *\n * @param id - The id of the result to move to the session storage.\n *\n * @public\n */\n",
14312
+ "excerptTokens": [
14313
+ {
14314
+ "kind": "Content",
14315
+ "text": "moveToSessionStorage(id?: "
14316
+ },
14317
+ {
14318
+ "kind": "Content",
14319
+ "text": "string"
14320
+ },
14321
+ {
14322
+ "kind": "Content",
14323
+ "text": "): "
14324
+ },
14325
+ {
14326
+ "kind": "Content",
14327
+ "text": "void"
14328
+ },
14329
+ {
14330
+ "kind": "Content",
14331
+ "text": ";"
14332
+ }
14333
+ ],
14334
+ "isStatic": false,
14335
+ "returnTypeTokenRange": {
14336
+ "startIndex": 3,
14337
+ "endIndex": 4
14338
+ },
14339
+ "releaseTag": "Public",
14340
+ "isProtected": false,
14341
+ "overloadIndex": 1,
14342
+ "parameters": [
14343
+ {
14344
+ "parameterName": "id",
14345
+ "parameterTypeTokenRange": {
14346
+ "startIndex": 1,
14347
+ "endIndex": 2
14348
+ },
14349
+ "isOptional": true
14350
+ }
14351
+ ],
14352
+ "isOptional": false,
14353
+ "isAbstract": false,
14354
+ "name": "moveToSessionStorage"
14355
+ },
14356
+ {
14357
+ "kind": "Property",
14358
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService.RESULT_CLICKED_ID_KEY:member",
14359
+ "docComment": "/**\n * Session id key to use as key in the storage for result clicks.\n *\n * @public\n */\n",
14360
+ "excerptTokens": [
14361
+ {
14362
+ "kind": "Content",
14363
+ "text": "static readonly RESULT_CLICKED_ID_KEY = "
14364
+ },
14365
+ {
14366
+ "kind": "Content",
14367
+ "text": "\"add-to-cart\""
14368
+ },
14369
+ {
14370
+ "kind": "Content",
14371
+ "text": ";"
14372
+ }
14373
+ ],
14374
+ "isReadonly": true,
14375
+ "isOptional": false,
14376
+ "releaseTag": "Public",
14377
+ "name": "RESULT_CLICKED_ID_KEY",
14378
+ "propertyTypeTokenRange": {
14379
+ "startIndex": 0,
14380
+ "endIndex": 0
14381
+ },
14382
+ "initializerTokenRange": {
14383
+ "startIndex": 1,
14384
+ "endIndex": 2
14385
+ },
14386
+ "isStatic": true,
14387
+ "isProtected": false,
14388
+ "isAbstract": false
14389
+ },
14390
+ {
14391
+ "kind": "Property",
14392
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#sessionStorageService:member",
14393
+ "docComment": "",
14394
+ "excerptTokens": [
14395
+ {
14396
+ "kind": "Content",
14397
+ "text": "protected sessionStorageService: "
14398
+ },
14399
+ {
14400
+ "kind": "Reference",
14401
+ "text": "StorageService",
14402
+ "canonicalReference": "@empathyco/x-storage-service!StorageService:interface"
14403
+ },
14404
+ {
14405
+ "kind": "Content",
14406
+ "text": ";"
14407
+ }
14408
+ ],
14409
+ "isReadonly": false,
14410
+ "isOptional": false,
14411
+ "releaseTag": "Public",
14412
+ "name": "sessionStorageService",
14413
+ "propertyTypeTokenRange": {
14414
+ "startIndex": 1,
14415
+ "endIndex": 2
14416
+ },
14417
+ "isStatic": false,
14418
+ "isProtected": true,
14419
+ "isAbstract": false
14420
+ },
14421
+ {
14422
+ "kind": "Property",
14423
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#storageKey:member",
14424
+ "docComment": "",
14425
+ "excerptTokens": [
14426
+ {
14427
+ "kind": "Content",
14428
+ "text": "protected get storageKey(): "
14429
+ },
14430
+ {
14431
+ "kind": "Content",
14432
+ "text": "string"
14433
+ },
14434
+ {
14435
+ "kind": "Content",
14436
+ "text": ";"
14437
+ }
14438
+ ],
14439
+ "isReadonly": true,
14440
+ "isOptional": false,
14441
+ "releaseTag": "Public",
14442
+ "name": "storageKey",
14443
+ "propertyTypeTokenRange": {
14444
+ "startIndex": 1,
14445
+ "endIndex": 2
14446
+ },
14447
+ "isStatic": false,
14448
+ "isProtected": true,
14449
+ "isAbstract": false
14450
+ },
14451
+ {
14452
+ "kind": "Property",
14453
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#storageTTLMs:member",
14454
+ "docComment": "",
14455
+ "excerptTokens": [
14456
+ {
14457
+ "kind": "Content",
14458
+ "text": "protected get storageTTLMs(): "
14459
+ },
14460
+ {
14461
+ "kind": "Content",
14462
+ "text": "number"
14463
+ },
14464
+ {
14465
+ "kind": "Content",
14466
+ "text": ";"
14467
+ }
14468
+ ],
14469
+ "isReadonly": true,
14470
+ "isOptional": false,
14471
+ "releaseTag": "Public",
14472
+ "name": "storageTTLMs",
14473
+ "propertyTypeTokenRange": {
14474
+ "startIndex": 1,
14475
+ "endIndex": 2
14476
+ },
14477
+ "isStatic": false,
14478
+ "isProtected": true,
14479
+ "isAbstract": false
14480
+ },
14481
+ {
14482
+ "kind": "Property",
14483
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#store:member",
14484
+ "docComment": "",
14485
+ "excerptTokens": [
14486
+ {
14487
+ "kind": "Content",
14488
+ "text": "protected get store(): "
14489
+ },
14490
+ {
14491
+ "kind": "Reference",
14492
+ "text": "Store",
14493
+ "canonicalReference": "vuex!Store:class"
14494
+ },
14495
+ {
14496
+ "kind": "Content",
14497
+ "text": "<"
14498
+ },
14499
+ {
14500
+ "kind": "Reference",
14501
+ "text": "RootXStoreState",
14502
+ "canonicalReference": "@empathyco/x-components!RootXStoreState:interface"
14503
+ },
14504
+ {
14505
+ "kind": "Content",
14506
+ "text": ">"
14507
+ },
14508
+ {
14509
+ "kind": "Content",
14510
+ "text": ";"
14511
+ }
14512
+ ],
14513
+ "isReadonly": true,
14514
+ "isOptional": false,
14515
+ "releaseTag": "Public",
14516
+ "name": "store",
14517
+ "propertyTypeTokenRange": {
14518
+ "startIndex": 1,
14519
+ "endIndex": 5
14520
+ },
14521
+ "isStatic": false,
14522
+ "isProtected": true,
14523
+ "isAbstract": false
14524
+ },
14525
+ {
14526
+ "kind": "Method",
14527
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#storeAddToCart:member(1)",
14528
+ "docComment": "/**\n * Stores in the session storage the information from the Result added to the cart by the user in order to be able to track the checkout later on when the checkout process has been completed by shopper.\n *\n * @param result - The result to store.\n *\n * @public\n */\n",
14529
+ "excerptTokens": [
14530
+ {
14531
+ "kind": "Content",
14532
+ "text": "storeAddToCart(result: "
14533
+ },
14534
+ {
14535
+ "kind": "Reference",
14536
+ "text": "Result",
14537
+ "canonicalReference": "@empathyco/x-components!Result:interface"
14538
+ },
14539
+ {
14540
+ "kind": "Content",
14541
+ "text": "): "
14542
+ },
14543
+ {
14544
+ "kind": "Content",
14545
+ "text": "void"
14546
+ },
14547
+ {
14548
+ "kind": "Content",
14549
+ "text": ";"
14550
+ }
14551
+ ],
14552
+ "isStatic": false,
14553
+ "returnTypeTokenRange": {
14554
+ "startIndex": 3,
14555
+ "endIndex": 4
14556
+ },
14557
+ "releaseTag": "Public",
14558
+ "isProtected": false,
14559
+ "overloadIndex": 1,
14560
+ "parameters": [
14561
+ {
14562
+ "parameterName": "result",
14563
+ "parameterTypeTokenRange": {
14564
+ "startIndex": 1,
14565
+ "endIndex": 2
14566
+ },
14567
+ "isOptional": false
14568
+ }
14569
+ ],
14570
+ "isOptional": false,
14571
+ "isAbstract": false,
14572
+ "name": "storeAddToCart"
14573
+ },
14574
+ {
14575
+ "kind": "Method",
14576
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#storeResultClicked:member(1)",
14577
+ "docComment": "/**\n * Stores in the local storage the information from the Result clicked by the user in order to be able to track the add to cart later on the result's PDP.\n *\n * @param result - The result to store.\n *\n * @public\n */\n",
14578
+ "excerptTokens": [
14579
+ {
14580
+ "kind": "Content",
14581
+ "text": "storeResultClicked(result: "
14582
+ },
14583
+ {
14584
+ "kind": "Reference",
14585
+ "text": "Result",
14586
+ "canonicalReference": "@empathyco/x-components!Result:interface"
14587
+ },
14588
+ {
14589
+ "kind": "Content",
14590
+ "text": "): "
14591
+ },
14592
+ {
14593
+ "kind": "Content",
14594
+ "text": "void"
14595
+ },
14596
+ {
14597
+ "kind": "Content",
14598
+ "text": ";"
14599
+ }
14600
+ ],
14601
+ "isStatic": false,
14602
+ "returnTypeTokenRange": {
14603
+ "startIndex": 3,
14604
+ "endIndex": 4
14605
+ },
14606
+ "releaseTag": "Public",
14607
+ "isProtected": false,
14608
+ "overloadIndex": 1,
14609
+ "parameters": [
14610
+ {
14611
+ "parameterName": "result",
14612
+ "parameterTypeTokenRange": {
14613
+ "startIndex": 1,
14614
+ "endIndex": 2
14615
+ },
14616
+ "isOptional": false
14617
+ }
14618
+ ],
14619
+ "isOptional": false,
14620
+ "isAbstract": false,
14621
+ "name": "storeResultClicked"
14622
+ },
14623
+ {
14624
+ "kind": "Method",
14625
+ "canonicalReference": "@empathyco/x-components!DefaultExternalTaggingService#trackAddToCart:member(1)",
14626
+ "docComment": "/**\n * Checks if the session storage contains a result information for a given id or the current url. If exists, it tracks the add to cart and saves the add to cart information into session storage.\n *\n * @param id - The id of the result to track.\n *\n * @public\n */\n",
14627
+ "excerptTokens": [
14628
+ {
14629
+ "kind": "Content",
14630
+ "text": "trackAddToCart(id?: "
14631
+ },
14632
+ {
14633
+ "kind": "Content",
14634
+ "text": "string"
14635
+ },
14636
+ {
14637
+ "kind": "Content",
14638
+ "text": "): "
14639
+ },
14640
+ {
14641
+ "kind": "Content",
14642
+ "text": "void"
14643
+ },
14644
+ {
14645
+ "kind": "Content",
14646
+ "text": ";"
14647
+ }
14648
+ ],
14649
+ "isStatic": false,
14650
+ "returnTypeTokenRange": {
14651
+ "startIndex": 3,
14652
+ "endIndex": 4
14653
+ },
14654
+ "releaseTag": "Public",
14655
+ "isProtected": false,
14656
+ "overloadIndex": 1,
14657
+ "parameters": [
14658
+ {
14659
+ "parameterName": "id",
14660
+ "parameterTypeTokenRange": {
14661
+ "startIndex": 1,
14662
+ "endIndex": 2
14663
+ },
14664
+ "isOptional": true
14665
+ }
14666
+ ],
14667
+ "isOptional": false,
14668
+ "isAbstract": false,
14669
+ "name": "trackAddToCart"
14670
+ }
14671
+ ],
14672
+ "implementsTokenRanges": [
14673
+ {
14674
+ "startIndex": 1,
14675
+ "endIndex": 2
14676
+ }
14677
+ ]
14678
+ },
14137
14679
  {
14138
14680
  "kind": "Class",
14139
14681
  "canonicalReference": "@empathyco/x-components!DefaultFacetsService:class",
@@ -14849,465 +15391,6 @@
14849
15391
  }
14850
15392
  ]
14851
15393
  },
14852
- {
14853
- "kind": "Class",
14854
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService:class",
14855
- "docComment": "/**\n * Default implementation for the {@link PDPAddToCartService}.\n *\n * @public\n */\n",
14856
- "excerptTokens": [
14857
- {
14858
- "kind": "Content",
14859
- "text": "export declare class DefaultPDPAddToCartService implements "
14860
- },
14861
- {
14862
- "kind": "Reference",
14863
- "text": "PDPAddToCartService",
14864
- "canonicalReference": "@empathyco/x-components!PDPAddToCartService:interface"
14865
- },
14866
- {
14867
- "kind": "Content",
14868
- "text": " "
14869
- }
14870
- ],
14871
- "fileUrlPath": "src/x-modules/tagging/service/pdp-add-to-cart.service.ts",
14872
- "releaseTag": "Public",
14873
- "isAbstract": false,
14874
- "name": "DefaultPDPAddToCartService",
14875
- "preserveMemberOrder": false,
14876
- "members": [
14877
- {
14878
- "kind": "Constructor",
14879
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService:constructor(1)",
14880
- "docComment": "/**\n * Constructs a new instance of the `DefaultPDPAddToCartService` class\n */\n",
14881
- "excerptTokens": [
14882
- {
14883
- "kind": "Content",
14884
- "text": "constructor(localStorageService?: "
14885
- },
14886
- {
14887
- "kind": "Reference",
14888
- "text": "StorageService",
14889
- "canonicalReference": "@empathyco/x-storage-service!StorageService:interface"
14890
- },
14891
- {
14892
- "kind": "Content",
14893
- "text": ", sessionStorageService?: "
14894
- },
14895
- {
14896
- "kind": "Reference",
14897
- "text": "StorageService",
14898
- "canonicalReference": "@empathyco/x-storage-service!StorageService:interface"
14899
- },
14900
- {
14901
- "kind": "Content",
14902
- "text": ");"
14903
- }
14904
- ],
14905
- "releaseTag": "Public",
14906
- "isProtected": false,
14907
- "overloadIndex": 1,
14908
- "parameters": [
14909
- {
14910
- "parameterName": "localStorageService",
14911
- "parameterTypeTokenRange": {
14912
- "startIndex": 1,
14913
- "endIndex": 2
14914
- },
14915
- "isOptional": true
14916
- },
14917
- {
14918
- "parameterName": "sessionStorageService",
14919
- "parameterTypeTokenRange": {
14920
- "startIndex": 3,
14921
- "endIndex": 4
14922
- },
14923
- "isOptional": true
14924
- }
14925
- ]
14926
- },
14927
- {
14928
- "kind": "Property",
14929
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService#clickedResultStorageKey:member",
14930
- "docComment": "",
14931
- "excerptTokens": [
14932
- {
14933
- "kind": "Content",
14934
- "text": "protected get clickedResultStorageKey(): "
14935
- },
14936
- {
14937
- "kind": "Content",
14938
- "text": "string"
14939
- },
14940
- {
14941
- "kind": "Content",
14942
- "text": ";"
14943
- }
14944
- ],
14945
- "isReadonly": true,
14946
- "isOptional": false,
14947
- "releaseTag": "Public",
14948
- "name": "clickedResultStorageKey",
14949
- "propertyTypeTokenRange": {
14950
- "startIndex": 1,
14951
- "endIndex": 2
14952
- },
14953
- "isStatic": false,
14954
- "isProtected": true,
14955
- "isAbstract": false
14956
- },
14957
- {
14958
- "kind": "Property",
14959
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService#clickedResultStorageTTLMs:member",
14960
- "docComment": "",
14961
- "excerptTokens": [
14962
- {
14963
- "kind": "Content",
14964
- "text": "protected get clickedResultStorageTTLMs(): "
14965
- },
14966
- {
14967
- "kind": "Content",
14968
- "text": "number"
14969
- },
14970
- {
14971
- "kind": "Content",
14972
- "text": ";"
14973
- }
14974
- ],
14975
- "isReadonly": true,
14976
- "isOptional": false,
14977
- "releaseTag": "Public",
14978
- "name": "clickedResultStorageTTLMs",
14979
- "propertyTypeTokenRange": {
14980
- "startIndex": 1,
14981
- "endIndex": 2
14982
- },
14983
- "isStatic": false,
14984
- "isProtected": true,
14985
- "isAbstract": false
14986
- },
14987
- {
14988
- "kind": "Property",
14989
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService.instance:member",
14990
- "docComment": "/**\n * Global instance of the {@link PDPAddToCartService}.\n */\n",
14991
- "excerptTokens": [
14992
- {
14993
- "kind": "Content",
14994
- "text": "static instance: "
14995
- },
14996
- {
14997
- "kind": "Reference",
14998
- "text": "PDPAddToCartService",
14999
- "canonicalReference": "@empathyco/x-components!PDPAddToCartService:interface"
15000
- },
15001
- {
15002
- "kind": "Content",
15003
- "text": ";"
15004
- }
15005
- ],
15006
- "isReadonly": false,
15007
- "isOptional": false,
15008
- "releaseTag": "Public",
15009
- "name": "instance",
15010
- "propertyTypeTokenRange": {
15011
- "startIndex": 1,
15012
- "endIndex": 2
15013
- },
15014
- "isStatic": true,
15015
- "isProtected": false,
15016
- "isAbstract": false
15017
- },
15018
- {
15019
- "kind": "Property",
15020
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService#localStorageService:member",
15021
- "docComment": "",
15022
- "excerptTokens": [
15023
- {
15024
- "kind": "Content",
15025
- "text": "protected localStorageService: "
15026
- },
15027
- {
15028
- "kind": "Reference",
15029
- "text": "StorageService",
15030
- "canonicalReference": "@empathyco/x-storage-service!StorageService:interface"
15031
- },
15032
- {
15033
- "kind": "Content",
15034
- "text": ";"
15035
- }
15036
- ],
15037
- "isReadonly": false,
15038
- "isOptional": false,
15039
- "releaseTag": "Public",
15040
- "name": "localStorageService",
15041
- "propertyTypeTokenRange": {
15042
- "startIndex": 1,
15043
- "endIndex": 2
15044
- },
15045
- "isStatic": false,
15046
- "isProtected": true,
15047
- "isAbstract": false
15048
- },
15049
- {
15050
- "kind": "Method",
15051
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService#moveToSessionStorage:member(1)",
15052
- "docComment": "/**\n * Checks if the local storage contains a result information for the given id and moves the result info from the local storage to the session storage.\n *\n * @param id - The id of the result to move to the session storage.\n *\n * @public\n */\n",
15053
- "excerptTokens": [
15054
- {
15055
- "kind": "Content",
15056
- "text": "moveToSessionStorage(id?: "
15057
- },
15058
- {
15059
- "kind": "Content",
15060
- "text": "string"
15061
- },
15062
- {
15063
- "kind": "Content",
15064
- "text": "): "
15065
- },
15066
- {
15067
- "kind": "Content",
15068
- "text": "void"
15069
- },
15070
- {
15071
- "kind": "Content",
15072
- "text": ";"
15073
- }
15074
- ],
15075
- "isStatic": false,
15076
- "returnTypeTokenRange": {
15077
- "startIndex": 3,
15078
- "endIndex": 4
15079
- },
15080
- "releaseTag": "Public",
15081
- "isProtected": false,
15082
- "overloadIndex": 1,
15083
- "parameters": [
15084
- {
15085
- "parameterName": "id",
15086
- "parameterTypeTokenRange": {
15087
- "startIndex": 1,
15088
- "endIndex": 2
15089
- },
15090
- "isOptional": true
15091
- }
15092
- ],
15093
- "isOptional": false,
15094
- "isAbstract": false,
15095
- "name": "moveToSessionStorage"
15096
- },
15097
- {
15098
- "kind": "Property",
15099
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService.RESULT_CLICKED_ID_KEY:member",
15100
- "docComment": "/**\n * Session id key to use as key in the storage.\n *\n * @public\n */\n",
15101
- "excerptTokens": [
15102
- {
15103
- "kind": "Content",
15104
- "text": "static readonly RESULT_CLICKED_ID_KEY = "
15105
- },
15106
- {
15107
- "kind": "Content",
15108
- "text": "\"add-to-cart\""
15109
- },
15110
- {
15111
- "kind": "Content",
15112
- "text": ";"
15113
- }
15114
- ],
15115
- "isReadonly": true,
15116
- "isOptional": false,
15117
- "releaseTag": "Public",
15118
- "name": "RESULT_CLICKED_ID_KEY",
15119
- "propertyTypeTokenRange": {
15120
- "startIndex": 0,
15121
- "endIndex": 0
15122
- },
15123
- "initializerTokenRange": {
15124
- "startIndex": 1,
15125
- "endIndex": 2
15126
- },
15127
- "isStatic": true,
15128
- "isProtected": false,
15129
- "isAbstract": false
15130
- },
15131
- {
15132
- "kind": "Property",
15133
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService#sessionStorageService:member",
15134
- "docComment": "",
15135
- "excerptTokens": [
15136
- {
15137
- "kind": "Content",
15138
- "text": "protected sessionStorageService: "
15139
- },
15140
- {
15141
- "kind": "Reference",
15142
- "text": "StorageService",
15143
- "canonicalReference": "@empathyco/x-storage-service!StorageService:interface"
15144
- },
15145
- {
15146
- "kind": "Content",
15147
- "text": ";"
15148
- }
15149
- ],
15150
- "isReadonly": false,
15151
- "isOptional": false,
15152
- "releaseTag": "Public",
15153
- "name": "sessionStorageService",
15154
- "propertyTypeTokenRange": {
15155
- "startIndex": 1,
15156
- "endIndex": 2
15157
- },
15158
- "isStatic": false,
15159
- "isProtected": true,
15160
- "isAbstract": false
15161
- },
15162
- {
15163
- "kind": "Property",
15164
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService#store:member",
15165
- "docComment": "",
15166
- "excerptTokens": [
15167
- {
15168
- "kind": "Content",
15169
- "text": "protected get store(): "
15170
- },
15171
- {
15172
- "kind": "Reference",
15173
- "text": "Store",
15174
- "canonicalReference": "vuex!Store:class"
15175
- },
15176
- {
15177
- "kind": "Content",
15178
- "text": "<"
15179
- },
15180
- {
15181
- "kind": "Reference",
15182
- "text": "RootXStoreState",
15183
- "canonicalReference": "@empathyco/x-components!RootXStoreState:interface"
15184
- },
15185
- {
15186
- "kind": "Content",
15187
- "text": ">"
15188
- },
15189
- {
15190
- "kind": "Content",
15191
- "text": ";"
15192
- }
15193
- ],
15194
- "isReadonly": true,
15195
- "isOptional": false,
15196
- "releaseTag": "Public",
15197
- "name": "store",
15198
- "propertyTypeTokenRange": {
15199
- "startIndex": 1,
15200
- "endIndex": 5
15201
- },
15202
- "isStatic": false,
15203
- "isProtected": true,
15204
- "isAbstract": false
15205
- },
15206
- {
15207
- "kind": "Method",
15208
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService#storeResultClicked:member(1)",
15209
- "docComment": "/**\n * Stores in the local storage the information from the Result clicked by the user in order to be able to track later on.\n *\n * @param result - The result to store.\n *\n * @public\n */\n",
15210
- "excerptTokens": [
15211
- {
15212
- "kind": "Content",
15213
- "text": "storeResultClicked(result: "
15214
- },
15215
- {
15216
- "kind": "Reference",
15217
- "text": "Result",
15218
- "canonicalReference": "@empathyco/x-components!Result:interface"
15219
- },
15220
- {
15221
- "kind": "Content",
15222
- "text": "): "
15223
- },
15224
- {
15225
- "kind": "Content",
15226
- "text": "void"
15227
- },
15228
- {
15229
- "kind": "Content",
15230
- "text": ";"
15231
- }
15232
- ],
15233
- "isStatic": false,
15234
- "returnTypeTokenRange": {
15235
- "startIndex": 3,
15236
- "endIndex": 4
15237
- },
15238
- "releaseTag": "Public",
15239
- "isProtected": false,
15240
- "overloadIndex": 1,
15241
- "parameters": [
15242
- {
15243
- "parameterName": "result",
15244
- "parameterTypeTokenRange": {
15245
- "startIndex": 1,
15246
- "endIndex": 2
15247
- },
15248
- "isOptional": false
15249
- }
15250
- ],
15251
- "isOptional": false,
15252
- "isAbstract": false,
15253
- "name": "storeResultClicked"
15254
- },
15255
- {
15256
- "kind": "Method",
15257
- "canonicalReference": "@empathyco/x-components!DefaultPDPAddToCartService#trackAddToCart:member(1)",
15258
- "docComment": "/**\n * Checks if the session storage contains a result information for given id or the current url and tracks the add to cart if exists.\n *\n * @param id - The id of the result to track.\n *\n * @public\n */\n",
15259
- "excerptTokens": [
15260
- {
15261
- "kind": "Content",
15262
- "text": "trackAddToCart(id?: "
15263
- },
15264
- {
15265
- "kind": "Content",
15266
- "text": "string"
15267
- },
15268
- {
15269
- "kind": "Content",
15270
- "text": "): "
15271
- },
15272
- {
15273
- "kind": "Content",
15274
- "text": "void"
15275
- },
15276
- {
15277
- "kind": "Content",
15278
- "text": ";"
15279
- }
15280
- ],
15281
- "isStatic": false,
15282
- "returnTypeTokenRange": {
15283
- "startIndex": 3,
15284
- "endIndex": 4
15285
- },
15286
- "releaseTag": "Public",
15287
- "isProtected": false,
15288
- "overloadIndex": 1,
15289
- "parameters": [
15290
- {
15291
- "parameterName": "id",
15292
- "parameterTypeTokenRange": {
15293
- "startIndex": 1,
15294
- "endIndex": 2
15295
- },
15296
- "isOptional": true
15297
- }
15298
- ],
15299
- "isOptional": false,
15300
- "isAbstract": false,
15301
- "name": "trackAddToCart"
15302
- }
15303
- ],
15304
- "implementsTokenRanges": [
15305
- {
15306
- "startIndex": 1,
15307
- "endIndex": 2
15308
- }
15309
- ]
15310
- },
15311
15394
  {
15312
15395
  "kind": "Interface",
15313
15396
  "canonicalReference": "@empathyco/x-components!DeviceActions:interface",
@@ -18719,6 +18802,206 @@
18719
18802
  "endIndex": 11
18720
18803
  }
18721
18804
  },
18805
+ {
18806
+ "kind": "Interface",
18807
+ "canonicalReference": "@empathyco/x-components!ExternalTaggingService:interface",
18808
+ "docComment": "/**\n * Service to handle the workflow for tracking add to cart from PDP.\n *\n * @public\n */\n",
18809
+ "excerptTokens": [
18810
+ {
18811
+ "kind": "Content",
18812
+ "text": "export interface ExternalTaggingService "
18813
+ }
18814
+ ],
18815
+ "fileUrlPath": "src/x-modules/tagging/service/types.ts",
18816
+ "releaseTag": "Public",
18817
+ "name": "ExternalTaggingService",
18818
+ "preserveMemberOrder": false,
18819
+ "members": [
18820
+ {
18821
+ "kind": "MethodSignature",
18822
+ "canonicalReference": "@empathyco/x-components!ExternalTaggingService#moveToSessionStorage:member(1)",
18823
+ "docComment": "/**\n * Checks if the local storage contains a result information for the given id and moves the result info from the local storage to the session storage.\n *\n * @param id - The id of the result to move to the session storage.\n */\n",
18824
+ "excerptTokens": [
18825
+ {
18826
+ "kind": "Content",
18827
+ "text": "moveToSessionStorage(id?: "
18828
+ },
18829
+ {
18830
+ "kind": "Content",
18831
+ "text": "string"
18832
+ },
18833
+ {
18834
+ "kind": "Content",
18835
+ "text": "): "
18836
+ },
18837
+ {
18838
+ "kind": "Content",
18839
+ "text": "void"
18840
+ },
18841
+ {
18842
+ "kind": "Content",
18843
+ "text": ";"
18844
+ }
18845
+ ],
18846
+ "isOptional": false,
18847
+ "returnTypeTokenRange": {
18848
+ "startIndex": 3,
18849
+ "endIndex": 4
18850
+ },
18851
+ "releaseTag": "Public",
18852
+ "overloadIndex": 1,
18853
+ "parameters": [
18854
+ {
18855
+ "parameterName": "id",
18856
+ "parameterTypeTokenRange": {
18857
+ "startIndex": 1,
18858
+ "endIndex": 2
18859
+ },
18860
+ "isOptional": true
18861
+ }
18862
+ ],
18863
+ "name": "moveToSessionStorage"
18864
+ },
18865
+ {
18866
+ "kind": "MethodSignature",
18867
+ "canonicalReference": "@empathyco/x-components!ExternalTaggingService#storeAddToCart:member(1)",
18868
+ "docComment": "/**\n * Stores in the session storage the information from the Result added to the cart by the user in order to be able to track the checkout later on when the checkout process has been completed by shopper.\n *\n * @param result - The result to store.\n */\n",
18869
+ "excerptTokens": [
18870
+ {
18871
+ "kind": "Content",
18872
+ "text": "storeAddToCart(result: "
18873
+ },
18874
+ {
18875
+ "kind": "Reference",
18876
+ "text": "Result",
18877
+ "canonicalReference": "@empathyco/x-components!Result:interface"
18878
+ },
18879
+ {
18880
+ "kind": "Content",
18881
+ "text": "): "
18882
+ },
18883
+ {
18884
+ "kind": "Content",
18885
+ "text": "void"
18886
+ },
18887
+ {
18888
+ "kind": "Content",
18889
+ "text": ";"
18890
+ }
18891
+ ],
18892
+ "isOptional": false,
18893
+ "returnTypeTokenRange": {
18894
+ "startIndex": 3,
18895
+ "endIndex": 4
18896
+ },
18897
+ "releaseTag": "Public",
18898
+ "overloadIndex": 1,
18899
+ "parameters": [
18900
+ {
18901
+ "parameterName": "result",
18902
+ "parameterTypeTokenRange": {
18903
+ "startIndex": 1,
18904
+ "endIndex": 2
18905
+ },
18906
+ "isOptional": false
18907
+ }
18908
+ ],
18909
+ "name": "storeAddToCart"
18910
+ },
18911
+ {
18912
+ "kind": "MethodSignature",
18913
+ "canonicalReference": "@empathyco/x-components!ExternalTaggingService#storeResultClicked:member(1)",
18914
+ "docComment": "/**\n * Stores in the local storage the information from the Result clicked by the user in order to be able to track the add to cart later on the result's PDP.\n *\n * @param result - The result to store.\n */\n",
18915
+ "excerptTokens": [
18916
+ {
18917
+ "kind": "Content",
18918
+ "text": "storeResultClicked(result: "
18919
+ },
18920
+ {
18921
+ "kind": "Reference",
18922
+ "text": "Result",
18923
+ "canonicalReference": "@empathyco/x-components!Result:interface"
18924
+ },
18925
+ {
18926
+ "kind": "Content",
18927
+ "text": "): "
18928
+ },
18929
+ {
18930
+ "kind": "Content",
18931
+ "text": "void"
18932
+ },
18933
+ {
18934
+ "kind": "Content",
18935
+ "text": ";"
18936
+ }
18937
+ ],
18938
+ "isOptional": false,
18939
+ "returnTypeTokenRange": {
18940
+ "startIndex": 3,
18941
+ "endIndex": 4
18942
+ },
18943
+ "releaseTag": "Public",
18944
+ "overloadIndex": 1,
18945
+ "parameters": [
18946
+ {
18947
+ "parameterName": "result",
18948
+ "parameterTypeTokenRange": {
18949
+ "startIndex": 1,
18950
+ "endIndex": 2
18951
+ },
18952
+ "isOptional": false
18953
+ }
18954
+ ],
18955
+ "name": "storeResultClicked"
18956
+ },
18957
+ {
18958
+ "kind": "MethodSignature",
18959
+ "canonicalReference": "@empathyco/x-components!ExternalTaggingService#trackAddToCart:member(1)",
18960
+ "docComment": "/**\n * Checks if the session storage contains a result information for a given id or the current url. If exists, it tracks the add to cart and saves the add to cart information into session storage.\n *\n * @param id - The id of the result to track.\n */\n",
18961
+ "excerptTokens": [
18962
+ {
18963
+ "kind": "Content",
18964
+ "text": "trackAddToCart(id?: "
18965
+ },
18966
+ {
18967
+ "kind": "Content",
18968
+ "text": "string"
18969
+ },
18970
+ {
18971
+ "kind": "Content",
18972
+ "text": "): "
18973
+ },
18974
+ {
18975
+ "kind": "Content",
18976
+ "text": "void"
18977
+ },
18978
+ {
18979
+ "kind": "Content",
18980
+ "text": ";"
18981
+ }
18982
+ ],
18983
+ "isOptional": false,
18984
+ "returnTypeTokenRange": {
18985
+ "startIndex": 3,
18986
+ "endIndex": 4
18987
+ },
18988
+ "releaseTag": "Public",
18989
+ "overloadIndex": 1,
18990
+ "parameters": [
18991
+ {
18992
+ "parameterName": "id",
18993
+ "parameterTypeTokenRange": {
18994
+ "startIndex": 1,
18995
+ "endIndex": 2
18996
+ },
18997
+ "isOptional": true
18998
+ }
18999
+ ],
19000
+ "name": "trackAddToCart"
19001
+ }
19002
+ ],
19003
+ "extendsTokenRanges": []
19004
+ },
18722
19005
  {
18723
19006
  "kind": "TypeAlias",
18724
19007
  "canonicalReference": "@empathyco/x-components!ExtractActionPayload:type",
@@ -44741,160 +45024,6 @@
44741
45024
  "endIndex": 5
44742
45025
  }
44743
45026
  },
44744
- {
44745
- "kind": "Interface",
44746
- "canonicalReference": "@empathyco/x-components!PDPAddToCartService:interface",
44747
- "docComment": "/**\n * Service to handle the workflow for tracking add to cart from PDP.\n *\n * @public\n */\n",
44748
- "excerptTokens": [
44749
- {
44750
- "kind": "Content",
44751
- "text": "export interface PDPAddToCartService "
44752
- }
44753
- ],
44754
- "fileUrlPath": "src/x-modules/tagging/service/types.ts",
44755
- "releaseTag": "Public",
44756
- "name": "PDPAddToCartService",
44757
- "preserveMemberOrder": false,
44758
- "members": [
44759
- {
44760
- "kind": "MethodSignature",
44761
- "canonicalReference": "@empathyco/x-components!PDPAddToCartService#moveToSessionStorage:member(1)",
44762
- "docComment": "/**\n * Checks if the local storage contains a result information for the given id and moves the result info from the local storage to the session storage.\n *\n * @param id - The id of the result to move to the session storage.\n */\n",
44763
- "excerptTokens": [
44764
- {
44765
- "kind": "Content",
44766
- "text": "moveToSessionStorage(id?: "
44767
- },
44768
- {
44769
- "kind": "Content",
44770
- "text": "string"
44771
- },
44772
- {
44773
- "kind": "Content",
44774
- "text": "): "
44775
- },
44776
- {
44777
- "kind": "Content",
44778
- "text": "void"
44779
- },
44780
- {
44781
- "kind": "Content",
44782
- "text": ";"
44783
- }
44784
- ],
44785
- "isOptional": false,
44786
- "returnTypeTokenRange": {
44787
- "startIndex": 3,
44788
- "endIndex": 4
44789
- },
44790
- "releaseTag": "Public",
44791
- "overloadIndex": 1,
44792
- "parameters": [
44793
- {
44794
- "parameterName": "id",
44795
- "parameterTypeTokenRange": {
44796
- "startIndex": 1,
44797
- "endIndex": 2
44798
- },
44799
- "isOptional": true
44800
- }
44801
- ],
44802
- "name": "moveToSessionStorage"
44803
- },
44804
- {
44805
- "kind": "MethodSignature",
44806
- "canonicalReference": "@empathyco/x-components!PDPAddToCartService#storeResultClicked:member(1)",
44807
- "docComment": "/**\n * Stores in the local storage the information from the Result clicked by the user in order to be able to track later on.\n *\n * @param result - The result to store.\n */\n",
44808
- "excerptTokens": [
44809
- {
44810
- "kind": "Content",
44811
- "text": "storeResultClicked(result: "
44812
- },
44813
- {
44814
- "kind": "Reference",
44815
- "text": "Result",
44816
- "canonicalReference": "@empathyco/x-components!Result:interface"
44817
- },
44818
- {
44819
- "kind": "Content",
44820
- "text": "): "
44821
- },
44822
- {
44823
- "kind": "Content",
44824
- "text": "void"
44825
- },
44826
- {
44827
- "kind": "Content",
44828
- "text": ";"
44829
- }
44830
- ],
44831
- "isOptional": false,
44832
- "returnTypeTokenRange": {
44833
- "startIndex": 3,
44834
- "endIndex": 4
44835
- },
44836
- "releaseTag": "Public",
44837
- "overloadIndex": 1,
44838
- "parameters": [
44839
- {
44840
- "parameterName": "result",
44841
- "parameterTypeTokenRange": {
44842
- "startIndex": 1,
44843
- "endIndex": 2
44844
- },
44845
- "isOptional": false
44846
- }
44847
- ],
44848
- "name": "storeResultClicked"
44849
- },
44850
- {
44851
- "kind": "MethodSignature",
44852
- "canonicalReference": "@empathyco/x-components!PDPAddToCartService#trackAddToCart:member(1)",
44853
- "docComment": "/**\n * Checks if the session storage contains a result information for given id or the current url and tracks the add to cart if exists.\n *\n * @param id - The id of the result to track.\n */\n",
44854
- "excerptTokens": [
44855
- {
44856
- "kind": "Content",
44857
- "text": "trackAddToCart(id?: "
44858
- },
44859
- {
44860
- "kind": "Content",
44861
- "text": "string"
44862
- },
44863
- {
44864
- "kind": "Content",
44865
- "text": "): "
44866
- },
44867
- {
44868
- "kind": "Content",
44869
- "text": "void"
44870
- },
44871
- {
44872
- "kind": "Content",
44873
- "text": ";"
44874
- }
44875
- ],
44876
- "isOptional": false,
44877
- "returnTypeTokenRange": {
44878
- "startIndex": 3,
44879
- "endIndex": 4
44880
- },
44881
- "releaseTag": "Public",
44882
- "overloadIndex": 1,
44883
- "parameters": [
44884
- {
44885
- "parameterName": "id",
44886
- "parameterTypeTokenRange": {
44887
- "startIndex": 1,
44888
- "endIndex": 2
44889
- },
44890
- "isOptional": true
44891
- }
44892
- ],
44893
- "name": "trackAddToCart"
44894
- }
44895
- ],
44896
- "extendsTokenRanges": []
44897
- },
44898
45027
  {
44899
45028
  "kind": "Variable",
44900
45029
  "canonicalReference": "@empathyco/x-components!PopularSearch:var",
@@ -74783,7 +74912,7 @@
74783
74912
  },
74784
74913
  {
74785
74914
  "kind": "Content",
74786
- "text": "<{\n clickedResultStorageTTLMs: {\n type: "
74915
+ "text": "<{\n storageTTLMs: {\n type: "
74787
74916
  },
74788
74917
  {
74789
74918
  "kind": "Reference",
@@ -74792,7 +74921,7 @@
74792
74921
  },
74793
74922
  {
74794
74923
  "kind": "Content",
74795
- "text": ";\n default: number;\n };\n clickedResultStorageKey: {\n type: "
74924
+ "text": ";\n default: number;\n };\n storageKey: {\n type: "
74796
74925
  },
74797
74926
  {
74798
74927
  "kind": "Reference",
@@ -74873,7 +75002,7 @@
74873
75002
  },
74874
75003
  {
74875
75004
  "kind": "Content",
74876
- "text": "<{\n clickedResultStorageTTLMs: {\n type: "
75005
+ "text": "<{\n storageTTLMs: {\n type: "
74877
75006
  },
74878
75007
  {
74879
75008
  "kind": "Reference",
@@ -74882,7 +75011,7 @@
74882
75011
  },
74883
75012
  {
74884
75013
  "kind": "Content",
74885
- "text": ";\n default: number;\n };\n clickedResultStorageKey: {\n type: "
75014
+ "text": ";\n default: number;\n };\n storageKey: {\n type: "
74886
75015
  },
74887
75016
  {
74888
75017
  "kind": "Reference",
@@ -74918,7 +75047,7 @@
74918
75047
  },
74919
75048
  {
74920
75049
  "kind": "Content",
74921
- "text": ";\n default: null;\n };\n}>>, {\n clickedResultStorageTTLMs: number;\n clickedResultStorageKey: string;\n queryTaggingDebounceMs: number;\n consent: boolean;\n}, {}>"
75050
+ "text": ";\n default: null;\n };\n}>>, {\n storageTTLMs: number;\n storageKey: string;\n queryTaggingDebounceMs: number;\n consent: boolean;\n}, {}>"
74922
75051
  }
74923
75052
  ],
74924
75053
  "fileUrlPath": "dist/types/x-modules/tagging/components/tagging.vue.d.ts",
@@ -75024,16 +75153,16 @@
75024
75153
  "members": [
75025
75154
  {
75026
75155
  "kind": "PropertySignature",
75027
- "canonicalReference": "@empathyco/x-components!TaggingConfig#clickedResultStorageKey:member",
75028
- "docComment": "/**\n * Field of the {@link @empathyco/x-types#Result | result} to use as id for storing the information.\n */\n",
75156
+ "canonicalReference": "@empathyco/x-components!TaggingConfig#queryTaggingDebounceMs:member",
75157
+ "docComment": "/**\n * Time in milliseconds to track the query.\n */\n",
75029
75158
  "excerptTokens": [
75030
75159
  {
75031
75160
  "kind": "Content",
75032
- "text": "clickedResultStorageKey: "
75161
+ "text": "queryTaggingDebounceMs: "
75033
75162
  },
75034
75163
  {
75035
75164
  "kind": "Content",
75036
- "text": "string | null"
75165
+ "text": "number"
75037
75166
  },
75038
75167
  {
75039
75168
  "kind": "Content",
@@ -75043,7 +75172,7 @@
75043
75172
  "isReadonly": false,
75044
75173
  "isOptional": false,
75045
75174
  "releaseTag": "Public",
75046
- "name": "clickedResultStorageKey",
75175
+ "name": "queryTaggingDebounceMs",
75047
75176
  "propertyTypeTokenRange": {
75048
75177
  "startIndex": 1,
75049
75178
  "endIndex": 2
@@ -75051,16 +75180,16 @@
75051
75180
  },
75052
75181
  {
75053
75182
  "kind": "PropertySignature",
75054
- "canonicalReference": "@empathyco/x-components!TaggingConfig#clickedResultStorageTTLMs:member",
75055
- "docComment": "/**\n * Time in milliseconds to keep the information for a result clicked by the user.\n */\n",
75183
+ "canonicalReference": "@empathyco/x-components!TaggingConfig#sessionTTLMs:member",
75184
+ "docComment": "/**\n * Time in milliseconds to keep the session alive. After this time has passed with no user interaction, the session will be cleared.\n */\n",
75056
75185
  "excerptTokens": [
75057
75186
  {
75058
75187
  "kind": "Content",
75059
- "text": "clickedResultStorageTTLMs: "
75188
+ "text": "sessionTTLMs: "
75060
75189
  },
75061
75190
  {
75062
75191
  "kind": "Content",
75063
- "text": "number | null"
75192
+ "text": "number"
75064
75193
  },
75065
75194
  {
75066
75195
  "kind": "Content",
@@ -75070,7 +75199,7 @@
75070
75199
  "isReadonly": false,
75071
75200
  "isOptional": false,
75072
75201
  "releaseTag": "Public",
75073
- "name": "clickedResultStorageTTLMs",
75202
+ "name": "sessionTTLMs",
75074
75203
  "propertyTypeTokenRange": {
75075
75204
  "startIndex": 1,
75076
75205
  "endIndex": 2
@@ -75078,16 +75207,16 @@
75078
75207
  },
75079
75208
  {
75080
75209
  "kind": "PropertySignature",
75081
- "canonicalReference": "@empathyco/x-components!TaggingConfig#queryTaggingDebounceMs:member",
75082
- "docComment": "/**\n * Time in milliseconds to track the query.\n */\n",
75210
+ "canonicalReference": "@empathyco/x-components!TaggingConfig#storageKey:member",
75211
+ "docComment": "/**\n * Field of the {@link @empathyco/x-types#Result | result} to use as id for storing the information.\n */\n",
75083
75212
  "excerptTokens": [
75084
75213
  {
75085
75214
  "kind": "Content",
75086
- "text": "queryTaggingDebounceMs: "
75215
+ "text": "storageKey: "
75087
75216
  },
75088
75217
  {
75089
75218
  "kind": "Content",
75090
- "text": "number"
75219
+ "text": "string | null"
75091
75220
  },
75092
75221
  {
75093
75222
  "kind": "Content",
@@ -75097,7 +75226,7 @@
75097
75226
  "isReadonly": false,
75098
75227
  "isOptional": false,
75099
75228
  "releaseTag": "Public",
75100
- "name": "queryTaggingDebounceMs",
75229
+ "name": "storageKey",
75101
75230
  "propertyTypeTokenRange": {
75102
75231
  "startIndex": 1,
75103
75232
  "endIndex": 2
@@ -75105,16 +75234,16 @@
75105
75234
  },
75106
75235
  {
75107
75236
  "kind": "PropertySignature",
75108
- "canonicalReference": "@empathyco/x-components!TaggingConfig#sessionTTLMs:member",
75109
- "docComment": "/**\n * Time in milliseconds to keep the session alive. After this time has passed with no user interaction, the session will be cleared.\n */\n",
75237
+ "canonicalReference": "@empathyco/x-components!TaggingConfig#storageTTLMs:member",
75238
+ "docComment": "/**\n * Time in milliseconds to keep the information for a result.\n */\n",
75110
75239
  "excerptTokens": [
75111
75240
  {
75112
75241
  "kind": "Content",
75113
- "text": "sessionTTLMs: "
75242
+ "text": "storageTTLMs: "
75114
75243
  },
75115
75244
  {
75116
75245
  "kind": "Content",
75117
- "text": "number"
75246
+ "text": "number | null"
75118
75247
  },
75119
75248
  {
75120
75249
  "kind": "Content",
@@ -75124,7 +75253,7 @@
75124
75253
  "isReadonly": false,
75125
75254
  "isOptional": false,
75126
75255
  "releaseTag": "Public",
75127
- "name": "sessionTTLMs",
75256
+ "name": "storageTTLMs",
75128
75257
  "propertyTypeTokenRange": {
75129
75258
  "startIndex": 1,
75130
75259
  "endIndex": 2
@@ -75563,7 +75692,7 @@
75563
75692
  {
75564
75693
  "kind": "PropertySignature",
75565
75694
  "canonicalReference": "@empathyco/x-components!TaggingXEvents#ResultURLTrackingEnabled:member",
75566
- "docComment": "/**\n * ClickedResultStorageKey has been configured to use the {@link @empathyco/x-types#Result | result} url. Payload: The new clickedResultStorageKey.\n */\n",
75695
+ "docComment": "/**\n * StorageKey has been configured to use the {@link @empathyco/x-types#Result | result} url. Payload: The new storageKey.\n */\n",
75567
75696
  "excerptTokens": [
75568
75697
  {
75569
75698
  "kind": "Content",