@adobe/alloy 2.30.1-beta.11 → 2.30.1-beta.13

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 (108) hide show
  1. package/libEs5/components/BrandConcierge/constants.js +15 -0
  2. package/libEs5/components/BrandConcierge/createBuildEndpointUrl.js +33 -0
  3. package/libEs5/components/BrandConcierge/createConversationServiceRequest.js +35 -0
  4. package/libEs5/components/BrandConcierge/createSendConversationEvent.js +132 -0
  5. package/libEs5/components/BrandConcierge/createSendConversationServiceRequest.js +85 -0
  6. package/libEs5/components/BrandConcierge/createStreamParser.js +96 -0
  7. package/libEs5/components/BrandConcierge/index.js +104 -0
  8. package/libEs5/components/BrandConcierge/utils.js +33 -0
  9. package/libEs5/components/BrandConcierge/validateMessage.js +41 -0
  10. package/libEs5/components/Context/createComponent.js +1 -2
  11. package/libEs5/components/Context/implementationDetails.js +7 -9
  12. package/libEs5/components/Context/index.js +4 -1
  13. package/libEs5/components/Context/injectDevice.js +2 -2
  14. package/libEs5/components/Context/injectEnvironment.js +2 -2
  15. package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +2 -2
  16. package/libEs5/components/Context/injectOneTimeAnalyticsReferrer.js +49 -0
  17. package/libEs5/components/Context/injectPlaceContext.js +2 -2
  18. package/libEs5/components/Context/injectTimestamp.js +2 -3
  19. package/libEs5/components/Context/injectWeb.js +9 -11
  20. package/libEs5/components/Personalization/createPersonalizationDetails.js +1 -1
  21. package/libEs5/components/Personalization/index.js +1 -1
  22. package/libEs5/constants/libraryVersion.js +1 -1
  23. package/libEs5/constants/surface.js +19 -0
  24. package/libEs5/core/componentCreators.js +8 -1
  25. package/libEs5/core/index.js +5 -1
  26. package/libEs5/utils/dom/createGetPageLocation.js +20 -0
  27. package/libEs5/utils/index.js +8 -1
  28. package/libEs5/utils/request/createRequest.js +5 -1
  29. package/libEs5/utils/surfaceUtils.js +82 -0
  30. package/libEs6/components/BrandConcierge/constants.js +12 -0
  31. package/libEs6/components/BrandConcierge/createBuildEndpointUrl.js +30 -0
  32. package/libEs6/components/BrandConcierge/createConversationServiceRequest.js +31 -0
  33. package/libEs6/components/BrandConcierge/createSendConversationEvent.js +128 -0
  34. package/libEs6/components/BrandConcierge/createSendConversationServiceRequest.js +81 -0
  35. package/libEs6/components/BrandConcierge/createStreamParser.js +92 -0
  36. package/libEs6/components/BrandConcierge/index.js +100 -0
  37. package/libEs6/components/BrandConcierge/utils.js +27 -0
  38. package/libEs6/components/BrandConcierge/validateMessage.js +37 -0
  39. package/libEs6/components/Context/createComponent.js +1 -2
  40. package/libEs6/components/Context/implementationDetails.js +7 -9
  41. package/libEs6/components/Context/index.js +4 -1
  42. package/libEs6/components/Context/injectDevice.js +3 -3
  43. package/libEs6/components/Context/injectEnvironment.js +3 -3
  44. package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +3 -3
  45. package/libEs6/components/Context/injectOneTimeAnalyticsReferrer.js +46 -0
  46. package/libEs6/components/Context/injectPlaceContext.js +3 -3
  47. package/libEs6/components/Context/injectTimestamp.js +2 -3
  48. package/libEs6/components/Context/injectWeb.js +9 -11
  49. package/libEs6/components/Personalization/createPersonalizationDetails.js +1 -1
  50. package/libEs6/components/Personalization/index.js +1 -1
  51. package/libEs6/constants/libraryVersion.js +1 -1
  52. package/libEs6/constants/surface.js +16 -0
  53. package/libEs6/core/componentCreators.js +2 -1
  54. package/libEs6/core/index.js +5 -1
  55. package/libEs6/utils/dom/createGetPageLocation.js +17 -0
  56. package/libEs6/utils/index.js +2 -1
  57. package/libEs6/utils/request/createRequest.js +5 -1
  58. package/libEs6/utils/surfaceUtils.js +76 -0
  59. package/package.json +1 -1
  60. package/types/components/BrandConcierge/constants.d.ts +2 -0
  61. package/types/components/BrandConcierge/constants.d.ts.map +1 -0
  62. package/types/components/BrandConcierge/createBuildEndpointUrl.d.ts +9 -0
  63. package/types/components/BrandConcierge/createBuildEndpointUrl.d.ts.map +1 -0
  64. package/types/components/BrandConcierge/createConversationServiceRequest.d.ts +7 -0
  65. package/types/components/BrandConcierge/createConversationServiceRequest.d.ts.map +1 -0
  66. package/types/components/BrandConcierge/createSendConversationEvent.d.ts +14 -0
  67. package/types/components/BrandConcierge/createSendConversationEvent.d.ts.map +1 -0
  68. package/types/components/BrandConcierge/createSendConversationServiceRequest.d.ts +11 -0
  69. package/types/components/BrandConcierge/createSendConversationServiceRequest.d.ts.map +1 -0
  70. package/types/components/BrandConcierge/createStreamParser.d.ts +3 -0
  71. package/types/components/BrandConcierge/createStreamParser.d.ts.map +1 -0
  72. package/types/components/BrandConcierge/index.d.ts +31 -0
  73. package/types/components/BrandConcierge/index.d.ts.map +1 -0
  74. package/types/components/BrandConcierge/utils.d.ts +6 -0
  75. package/types/components/BrandConcierge/utils.d.ts.map +1 -0
  76. package/types/components/BrandConcierge/validateMessage.d.ts +5 -0
  77. package/types/components/BrandConcierge/validateMessage.d.ts.map +1 -0
  78. package/types/components/Context/createComponent.d.ts +1 -1
  79. package/types/components/Context/createComponent.d.ts.map +1 -1
  80. package/types/components/Context/implementationDetails.d.ts +1 -1
  81. package/types/components/Context/implementationDetails.d.ts.map +1 -1
  82. package/types/components/Context/index.d.ts +1 -1
  83. package/types/components/Context/index.d.ts.map +1 -1
  84. package/types/components/Context/injectDevice.d.ts +1 -1
  85. package/types/components/Context/injectDevice.d.ts.map +1 -1
  86. package/types/components/Context/injectEnvironment.d.ts +1 -1
  87. package/types/components/Context/injectEnvironment.d.ts.map +1 -1
  88. package/types/components/Context/injectHighEntropyUserAgentHints.d.ts +1 -1
  89. package/types/components/Context/injectHighEntropyUserAgentHints.d.ts.map +1 -1
  90. package/types/components/Context/injectOneTimeAnalyticsReferrer.d.ts +3 -0
  91. package/types/components/Context/injectOneTimeAnalyticsReferrer.d.ts.map +1 -0
  92. package/types/components/Context/injectPlaceContext.d.ts +1 -1
  93. package/types/components/Context/injectPlaceContext.d.ts.map +1 -1
  94. package/types/components/Context/injectTimestamp.d.ts +1 -1
  95. package/types/components/Context/injectTimestamp.d.ts.map +1 -1
  96. package/types/components/Context/injectWeb.d.ts +1 -1
  97. package/types/components/Context/injectWeb.d.ts.map +1 -1
  98. package/types/components/Personalization/createPersonalizationDetails.d.ts.map +1 -1
  99. package/types/constants/surface.d.ts +5 -0
  100. package/types/constants/surface.d.ts.map +1 -0
  101. package/types/core/componentCreators.d.ts +1 -0
  102. package/types/core/index.d.ts.map +1 -1
  103. package/types/utils/dom/createGetPageLocation.d.ts +5 -0
  104. package/types/utils/dom/createGetPageLocation.d.ts.map +1 -0
  105. package/types/utils/index.d.ts +1 -0
  106. package/types/utils/request/createRequest.d.ts.map +1 -1
  107. package/types/utils/surfaceUtils.d.ts +4 -0
  108. package/types/utils/surfaceUtils.d.ts.map +1 -0
@@ -0,0 +1,76 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { WEB, WEBAPP, SURFACE_TYPE_DELIMITER, FRAGMENT_DELIMITER } from "../constants/surface.js";
14
+ import { isNil, isNonEmptyString } from "./index.js";
15
+ const SURFACE_REGEX = /^(\w+):\/\/([^/#]+)(\/[^#]*)?(#.*)?$/;
16
+ const AUTHORITY_REGEX = /^(?:.*@)?(?:[a-z\d\u00a1-\uffff.-]+|\[[a-f\d:]+])(?::\d+)?$/;
17
+ const PATH_REGEX = /^\/(?:[/\w\u00a1-\uffff-.~]|%[a-fA-F\d]{2})*$/;
18
+ const FRAGMENT_REGEX = /^#(?:[/\w\u00a1-\uffff-.~]|%[a-fA-F\d]{2})+$/;
19
+ const normalizePath = (path = "/") => {
20
+ let end = path.length;
21
+ while (end > 0 && "/".indexOf(path.charAt(end - 1)) !== -1) {
22
+ end -= 1;
23
+ }
24
+ return path.substring(0, end) || "/";
25
+ };
26
+ const getSurfaceType = surfaceTypeMatch => isNonEmptyString(surfaceTypeMatch) ? surfaceTypeMatch.toLowerCase() : "";
27
+ const getAuthority = authorityMatch => isNonEmptyString(authorityMatch) ? authorityMatch.toLowerCase() : "";
28
+ const getPath = pathMatch => isNonEmptyString(pathMatch) ? normalizePath(pathMatch) : "/";
29
+ const parseSurface = surfaceString => {
30
+ const matched = surfaceString.match(SURFACE_REGEX);
31
+ return matched ? {
32
+ surfaceType: getSurfaceType(matched[1]),
33
+ authority: getAuthority(matched[2]),
34
+ path: getPath(matched[3]),
35
+ fragment: matched[4]
36
+ } : null;
37
+ };
38
+ const stringifySurface = surface => `${surface.surfaceType}${SURFACE_TYPE_DELIMITER}${surface.authority}${surface.path || ""}${surface.fragment || ""}`;
39
+ export const buildPageSurface = getPageLocation => {
40
+ const location = getPageLocation();
41
+ const host = location.host.toLowerCase();
42
+ const path = location.pathname;
43
+ return WEB + SURFACE_TYPE_DELIMITER + host + normalizePath(path);
44
+ };
45
+ const expandFragmentSurface = (surface, getPageLocation) => surface.startsWith(FRAGMENT_DELIMITER) ? buildPageSurface(getPageLocation) + surface : surface;
46
+ const validateSurface = (surface, getPageLocation, logger) => {
47
+ const invalidateSurface = validationError => {
48
+ logger.warn(validationError);
49
+ return null;
50
+ };
51
+ if (!isNonEmptyString(surface)) {
52
+ return invalidateSurface(`Invalid surface: ${surface}`);
53
+ }
54
+ const expanded = expandFragmentSurface(surface, getPageLocation);
55
+ const parsed = parseSurface(expanded);
56
+ if (parsed === null) {
57
+ return invalidateSurface(`Invalid surface: ${surface}`);
58
+ }
59
+ if (![WEB, WEBAPP].includes(parsed.surfaceType)) {
60
+ return invalidateSurface(`Unsupported surface type ${parsed.surfaceType} in surface: ${surface}`);
61
+ }
62
+ if (!parsed.authority || !AUTHORITY_REGEX.test(parsed.authority)) {
63
+ return invalidateSurface(`Invalid authority ${parsed.authority} in surface: ${surface}`);
64
+ }
65
+ if (parsed.path && !PATH_REGEX.test(parsed.path)) {
66
+ return invalidateSurface(`Invalid path ${parsed.path} in surface: ${surface}`);
67
+ }
68
+ if (parsed.fragment && !FRAGMENT_REGEX.test(parsed.fragment)) {
69
+ return invalidateSurface(`Invalid fragment ${parsed.fragment} in surface: ${surface}`);
70
+ }
71
+ return parsed;
72
+ };
73
+ export const isPageWideSurface = scope => !!scope && scope.indexOf(WEB + SURFACE_TYPE_DELIMITER) === 0 && scope.indexOf(FRAGMENT_DELIMITER) === -1;
74
+
75
+ // eslint-disable-next-line default-param-last
76
+ export const normalizeSurfaces = (surfaces = [], getPageLocation, logger) => surfaces.map(surface => validateSurface(surface, getPageLocation, logger)).filter(surface => !isNil(surface)).map(stringifySurface);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.30.1-beta.11",
3
+ "version": "2.30.1-beta.13",
4
4
  "description": "Adobe Experience Platform Web SDK",
5
5
  "type": "module",
6
6
  "main": "libEs5/index.js",
@@ -0,0 +1,2 @@
1
+ export const BC_SESSION_COOKIE_NAME: "bc_session_id";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/constants.js"],"names":[],"mappings":"AAWA,qCAAsC,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ declare function _default({ queryString }: {
2
+ queryString: any;
3
+ }): ({ edgeDomain, request, datastreamId }: {
4
+ edgeDomain: any;
5
+ request: any;
6
+ datastreamId: any;
7
+ }) => string;
8
+ export default _default;
9
+ //# sourceMappingURL=createBuildEndpointUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createBuildEndpointUrl.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/createBuildEndpointUrl.js"],"names":[],"mappings":"AAYe;;KACL;;;;CAAqC,YAS9C"}
@@ -0,0 +1,7 @@
1
+ declare function _default({ payload, action, sessionId }: {
2
+ payload: any;
3
+ action?: string;
4
+ sessionId: any;
5
+ }): import("../../utils/request/types.js").Request;
6
+ export default _default;
7
+ //# sourceMappingURL=createConversationServiceRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createConversationServiceRequest.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/createConversationServiceRequest.js"],"names":[],"mappings":"AAae;;;;mDAYd"}
@@ -0,0 +1,14 @@
1
+ declare function _default({ eventManager, loggingCookieJar, config, logger, sendConversationServiceRequest, buildEndpointUrl, cookieTransfer, createResponse, decodeKndctrCookie, lifecycle, }: {
2
+ eventManager: any;
3
+ loggingCookieJar: any;
4
+ config: any;
5
+ logger: any;
6
+ sendConversationServiceRequest: any;
7
+ buildEndpointUrl: any;
8
+ cookieTransfer: any;
9
+ createResponse: any;
10
+ decodeKndctrCookie: any;
11
+ lifecycle: any;
12
+ }): (options: any) => any;
13
+ export default _default;
14
+ //# sourceMappingURL=createSendConversationEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSendConversationEvent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/createSendConversationEvent.js"],"names":[],"mappings":"AAiBe;;;;;;;;;;;KAcL,YAAO,SAgGhB"}
@@ -0,0 +1,11 @@
1
+ declare function _default({ logger, fetch }: {
2
+ logger: any;
3
+ fetch: any;
4
+ }): ({ requestId, url, request, streamingEnabled }: {
5
+ requestId: any;
6
+ url: any;
7
+ request: any;
8
+ streamingEnabled?: boolean;
9
+ }) => Promise<any>;
10
+ export default _default;
11
+ //# sourceMappingURL=createSendConversationServiceRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSendConversationServiceRequest.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/createSendConversationServiceRequest.js"],"names":[],"mappings":"AAYe;;;KACC;;;;;CAAoD,kBAkEnE"}
@@ -0,0 +1,3 @@
1
+ declare function _default(): (stream: ReadableStream, onEvent: Function) => Promise<void>;
2
+ export default _default;
3
+ //# sourceMappingURL=createStreamParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createStreamParser.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/createStreamParser.js"],"names":[],"mappings":"AAWe,8BAsDC,QAHH,cAGS,EAAE,iBAAO,mBAoC9B"}
@@ -0,0 +1,31 @@
1
+ export default createConciergeComponent;
2
+ declare function createConciergeComponent({ loggingCookieJar, logger, eventManager, consent, instanceName, sendEdgeNetworkRequest, config, lifecycle, cookieTransfer, createResponse, apexDomain, }: {
3
+ loggingCookieJar: any;
4
+ logger: any;
5
+ eventManager: any;
6
+ consent: any;
7
+ instanceName: any;
8
+ sendEdgeNetworkRequest: any;
9
+ config: any;
10
+ lifecycle: any;
11
+ cookieTransfer: any;
12
+ createResponse: any;
13
+ apexDomain: any;
14
+ }): {
15
+ lifecycle: {
16
+ onBeforeEvent({ event }: {
17
+ event: any;
18
+ }): void;
19
+ };
20
+ commands: {
21
+ sendConversationEvent: {
22
+ optionsValidator: (options: any) => any;
23
+ run: (options: any) => any;
24
+ };
25
+ };
26
+ };
27
+ declare namespace createConciergeComponent {
28
+ let namespace: string;
29
+ let configValidators: any;
30
+ }
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/index.js"],"names":[],"mappings":";AAqBA;;;;;;;;;;;;;;;;;;;;;;;;EAkEC"}
@@ -0,0 +1,6 @@
1
+ export function getPageSurface(): string;
2
+ export function getConciergeSessionCookie({ loggingCookieJar, config }: {
3
+ loggingCookieJar: any;
4
+ config: any;
5
+ }): any;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/utils.js"],"names":[],"mappings":"AAkBO,yCAGN;AAEM;;;QAMN"}
@@ -0,0 +1,5 @@
1
+ declare function _default({ options }: {
2
+ options: any;
3
+ }): any;
4
+ export default _default;
5
+ //# sourceMappingURL=validateMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateMessage.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/BrandConcierge/validateMessage.js"],"names":[],"mappings":"AAkBe;;QA2Bd"}
@@ -3,7 +3,7 @@ declare function _default(config: any, logger: any, optionalContexts: any, requi
3
3
  lifecycle: {
4
4
  onBeforeEvent({ event }: {
5
5
  event: any;
6
- }): Promise<any>;
6
+ }): Promise<any[]>;
7
7
  };
8
8
  };
9
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/createComponent.js"],"names":[],"mappings":"AAWe;;;;;;;EAwBd"}
1
+ {"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/createComponent.js"],"names":[],"mappings":"AAWe;;;;;;;EAuBd"}
@@ -1,3 +1,3 @@
1
- declare function _default(xdm: any): void;
1
+ declare function _default(event: any): void;
2
2
  export default _default;
3
3
  //# sourceMappingURL=implementationDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"implementationDetails.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/implementationDetails.js"],"names":[],"mappings":"AAee,0CAOd"}
1
+ {"version":3,"file":"implementationDetails.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/implementationDetails.js"],"names":[],"mappings":"AAce,4CAQd"}
@@ -7,7 +7,7 @@ declare function createContext({ config, logger }: {
7
7
  lifecycle: {
8
8
  onBeforeEvent({ event }: {
9
9
  event: any;
10
- }): Promise<any>;
10
+ }): Promise<any[]>;
11
11
  };
12
12
  };
13
13
  declare namespace createContext {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/index.js"],"names":[],"mappings":";AA4CA;;;;;;;;;;EAEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/index.js"],"names":[],"mappings":";AA+CA;;;;;;;;;;EAEC"}
@@ -1,3 +1,3 @@
1
- declare function _default(window: any): (xdm: any) => void;
1
+ declare function _default(window: any): (event: any) => void;
2
2
  export default _default;
3
3
  //# sourceMappingURL=injectDevice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"injectDevice.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectDevice.js"],"names":[],"mappings":"AAiDe,yCACL,QAAG,UA0BZ"}
1
+ {"version":3,"file":"injectDevice.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectDevice.js"],"names":[],"mappings":"AAiDe,yCACL,UAAK,UA0Bd"}
@@ -1,3 +1,3 @@
1
- declare function _default(window: any): (xdm: any) => void;
1
+ declare function _default(window: any): (event: any) => void;
2
2
  export default _default;
3
3
  //# sourceMappingURL=injectEnvironment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"injectEnvironment.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectEnvironment.js"],"names":[],"mappings":"AAce,yCACL,QAAG,UAsBZ"}
1
+ {"version":3,"file":"injectEnvironment.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectEnvironment.js"],"names":[],"mappings":"AAce,yCACL,UAAK,UAsBd"}
@@ -1,3 +1,3 @@
1
- declare function _default(navigator: any): (xdm: any, logger: any) => any;
1
+ declare function _default(navigator: any): (event: any, logger: any) => any;
2
2
  export default _default;
3
3
  //# sourceMappingURL=injectHighEntropyUserAgentHints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"injectHighEntropyUserAgentHints.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectHighEntropyUserAgentHints.js"],"names":[],"mappings":"AAmBe,0EAmCd"}
1
+ {"version":3,"file":"injectHighEntropyUserAgentHints.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectHighEntropyUserAgentHints.js"],"names":[],"mappings":"AAmBe,4EAmCd"}
@@ -0,0 +1,3 @@
1
+ declare function _default(window: any): (event: any) => void;
2
+ export default _default;
3
+ //# sourceMappingURL=injectOneTimeAnalyticsReferrer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injectOneTimeAnalyticsReferrer.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectOneTimeAnalyticsReferrer.js"],"names":[],"mappings":"AAYe,yCAGL,UAAK,UAsCd"}
@@ -1,3 +1,3 @@
1
- declare function _default(dateProvider: any): (xdm: any) => void;
1
+ declare function _default(dateProvider: any): (event: any) => void;
2
2
  export default _default;
3
3
  //# sourceMappingURL=injectPlaceContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"injectPlaceContext.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectPlaceContext.js"],"names":[],"mappings":"AAae,+CACL,QAAG,UAmBZ"}
1
+ {"version":3,"file":"injectPlaceContext.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectPlaceContext.js"],"names":[],"mappings":"AAae,+CACL,UAAK,UAmBd"}
@@ -1,3 +1,3 @@
1
- declare function _default(dateProvider: any): (xdm: any) => void;
1
+ declare function _default(dateProvider: any): (event: any) => void;
2
2
  export default _default;
3
3
  //# sourceMappingURL=injectTimestamp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"injectTimestamp.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectTimestamp.js"],"names":[],"mappings":"AAce,+CACL,QAAG,UAIZ"}
1
+ {"version":3,"file":"injectTimestamp.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectTimestamp.js"],"names":[],"mappings":"AAYe,+CACL,UAAK,UAId"}
@@ -1,3 +1,3 @@
1
- declare function _default(window: any): (xdm: any) => void;
1
+ declare function _default(window: any): (event: any) => void;
2
2
  export default _default;
3
3
  //# sourceMappingURL=injectWeb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"injectWeb.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectWeb.js"],"names":[],"mappings":"AAce,yCACL,QAAG,UAWZ"}
1
+ {"version":3,"file":"injectWeb.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Context/injectWeb.js"],"names":[],"mappings":"AAYe,yCACL,UAAK,UAYd"}
@@ -1 +1 @@
1
- {"version":3,"file":"createPersonalizationDetails.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Personalization/createPersonalizationDetails.js"],"names":[],"mappings":"AA0Ce;;;;;;;;;;;;;;;;;;;;;;;;;EA4Fd"}
1
+ {"version":3,"file":"createPersonalizationDetails.d.ts","sourceRoot":"","sources":["../../../packages/core/src/components/Personalization/createPersonalizationDetails.js"],"names":[],"mappings":"AA6Ce;;;;;;;;;;;;;;;;;;;;;;;;;EA4Fd"}
@@ -0,0 +1,5 @@
1
+ export const WEB: "web";
2
+ export const WEBAPP: "webapp";
3
+ export const SURFACE_TYPE_DELIMITER: "://";
4
+ export const FRAGMENT_DELIMITER: "#";
5
+ //# sourceMappingURL=surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../packages/core/src/constants/surface.js"],"names":[],"mappings":"AAYA,kBAAmB,KAAK,CAAC;AACzB,qBAAsB,QAAQ,CAAC;AAC/B,qCAAsC,KAAK,CAAC;AAC5C,iCAAkC,GAAG,CAAC"}
@@ -8,4 +8,5 @@ export { default as rulesEngine } from "../components/RulesEngine/index.js";
8
8
  export { default as streamingMedia } from "../components/StreamingMedia/index.js";
9
9
  export { default as advertising } from "../components/Advertising/index.js";
10
10
  export { default as pushNotifications } from "../components/PushNotifications/index.js";
11
+ export { default as brandConcierge } from "../components/BrandConcierge/index.js";
11
12
  //# sourceMappingURL=componentCreators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/core/src/core/index.js"],"names":[],"mappings":"AAwEO;;;;;;;;qDA0IN;AAEc;;SA4Bd"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/core/src/core/index.js"],"names":[],"mappings":"AAwEO;;;;;;;;qDA8IN;AAEc;;SA4Bd"}
@@ -0,0 +1,5 @@
1
+ declare function _default({ window }: {
2
+ window: any;
3
+ }): () => any;
4
+ export default _default;
5
+ //# sourceMappingURL=createGetPageLocation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createGetPageLocation.d.ts","sourceRoot":"","sources":["../../../packages/core/src/utils/dom/createGetPageLocation.js"],"names":[],"mappings":"AAYe;;cAGZ"}
@@ -48,5 +48,6 @@ export { default as uuid } from "./uuid.js";
48
48
  export { default as updateErrorMessage } from "./updateErrorMessage.js";
49
49
  export { default as validateIdentityMap } from "./validateIdentityMap.js";
50
50
  export { default as validateConfigOverride } from "./validateConfigOverride.js";
51
+ export { default as createGetPageLocation } from "./dom/createGetPageLocation.js";
51
52
  export { base64ToBytes, bytesToBase64 } from "./bytes.js";
52
53
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createRequest.d.ts","sourceRoot":"","sources":["../../../packages/core/src/utils/request/createRequest.js"],"names":[],"mappings":"AA2Ce,mCArBZ;IAAgC,OAAO,EAA/B,cAAc;IAC8C,SAAS,EAArE,CAAS,IAAgC,EAAhC;QAAC,qBAAqB,EAAE,OAAO,CAAA;KAAC,KAAG,MAAM;IACW,gBAAgB,EAA7E,CAAS,IAAgC,EAAhC;QAAC,qBAAqB,EAAE,OAAO,CAAA;KAAC,KAAG,OAAO;IAClC,oBAAoB,GAArC,MAAM;IACW,WAAW,GAA5B,MAAM;CAEd,GAAU,OAAO,CA4DnB;;oCA5E4C,YAAY;6BAAZ,YAAY"}
1
+ {"version":3,"file":"createRequest.d.ts","sourceRoot":"","sources":["../../../packages/core/src/utils/request/createRequest.js"],"names":[],"mappings":"AA2Ce,mCArBZ;IAAgC,OAAO,EAA/B,cAAc;IAC8C,SAAS,EAArE,CAAS,IAAgC,EAAhC;QAAC,qBAAqB,EAAE,OAAO,CAAA;KAAC,KAAG,MAAM;IACW,gBAAgB,EAA7E,CAAS,IAAgC,EAAhC;QAAC,qBAAqB,EAAE,OAAO,CAAA;KAAC,KAAG,OAAO;IAClC,oBAAoB,GAArC,MAAM;IACW,WAAW,GAA5B,MAAM;CAEd,GAAU,OAAO,CAgEnB;;oCAhF4C,YAAY;6BAAZ,YAAY"}
@@ -0,0 +1,4 @@
1
+ export function buildPageSurface(getPageLocation: any): string;
2
+ export function isPageWideSurface(scope: any): boolean;
3
+ export function normalizeSurfaces(surfaces: any[], getPageLocation: any, logger: any): string[];
4
+ //# sourceMappingURL=surfaceUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaceUtils.d.ts","sourceRoot":"","sources":["../../packages/core/src/utils/surfaceUtils.js"],"names":[],"mappings":"AA2DO,+DAKN;AA4CM,uDAGmC;AAGnC,gGAImB"}