@adobe/alloy 2.6.4-beta.4 → 2.8.0-beta.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/libEs5/components/ActivityCollector/utils.js +1 -1
- package/libEs5/components/Audiences/index.js +6 -8
- package/libEs5/components/Audiences/injectProcessResponse.js +44 -0
- package/libEs5/components/MachineLearning/index.js +30 -0
- package/libEs5/components/MachineLearning/processResponse.js +22 -0
- package/libEs5/components/Personalization/createCollect.js +1 -1
- package/libEs5/components/Personalization/createOnClickHandler.js +1 -1
- package/libEs5/components/Personalization/createViewCollect.js +1 -1
- package/libEs5/components/Personalization/dom-actions/action.js +25 -25
- package/libEs5/components/Personalization/dom-actions/appendHtml.js +1 -1
- package/libEs5/components/Personalization/dom-actions/dom/index.js +26 -26
- package/libEs5/components/Personalization/dom-actions/dom/querySelectorAll.js +22 -0
- package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +1 -1
- package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithShadow.js +80 -0
- package/libEs5/components/Personalization/dom-actions/index.js +4 -4
- package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +1 -1
- package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +1 -1
- package/libEs5/components/Personalization/dom-actions/prependHtml.js +1 -1
- package/libEs5/components/Personalization/dom-actions/scripts.js +6 -5
- package/libEs5/components/Personalization/dom-actions/setStyles.js +3 -1
- package/libEs5/components/Personalization/event.js +2 -2
- package/libEs5/components/Personalization/flicker/index.js +3 -3
- package/libEs5/components/Personalization/groupDecisions.js +1 -1
- package/libEs5/components/Privacy/computeConsentHash.js +1 -1
- package/libEs5/components/Privacy/createConsentHashStore.js +3 -1
- package/libEs5/components/Privacy/parseConsentCookie.js +1 -1
- package/libEs5/constants/cookieNameKey.js +1 -1
- package/libEs5/constants/httpHeaderNames.js +1 -1
- package/libEs5/constants/httpStatusCode.js +1 -1
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs5/constants/tagName.js +1 -1
- package/libEs5/core/componentCreators.js +3 -1
- package/libEs5/core/consent/createConsentStateMachine.js +1 -1
- package/libEs5/core/network/injectSendNetworkRequest.js +2 -2
- package/libEs5/utils/convertTimes.js +1 -1
- package/libEs5/utils/dom/awaitSelector.js +1 -1
- package/libEs5/utils/dom/index.js +4 -4
- package/libEs5/utils/dom/selectNodes.js +9 -2
- package/libEs5/utils/fireReferrerHideableImage.js +1 -1
- package/libEs5/utils/index.js +20 -20
- package/libEs5/utils/isObject.js +1 -1
- package/libEs5/utils/validation/index.js +1 -1
- package/libEs6/components/Audiences/index.js +5 -9
- package/libEs6/components/Audiences/injectProcessResponse.js +39 -0
- package/libEs6/components/MachineLearning/index.js +25 -0
- package/libEs6/components/MachineLearning/processResponse.js +17 -0
- package/libEs6/components/Personalization/createCollect.js +1 -1
- package/libEs6/components/Personalization/createOnClickHandler.js +1 -1
- package/libEs6/components/Personalization/createViewCollect.js +1 -1
- package/libEs6/components/Personalization/dom-actions/appendHtml.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/querySelectorAll.js +13 -0
- package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithShadow.js +67 -0
- package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +1 -1
- package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +1 -1
- package/libEs6/components/Personalization/dom-actions/prependHtml.js +1 -1
- package/libEs6/components/Personalization/dom-actions/scripts.js +5 -2
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/core/componentCreators.js +3 -2
- package/libEs6/utils/dom/selectNodes.js +7 -2
- package/package.json +10 -9
|
@@ -9,7 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
9
9
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import
|
|
12
|
+
import querySelectorAll from "../../components/Personalization/dom-actions/dom/querySelectorAll";
|
|
13
|
+
import selectNodesWithShadow, { isShadowSelector } from "../../components/Personalization/dom-actions/dom/selectNodesWithShadow";
|
|
13
14
|
/**
|
|
14
15
|
* Returns an array of matched DOM nodes.
|
|
15
16
|
* @param {String} selector
|
|
@@ -18,5 +19,9 @@ import toArray from "../toArray";
|
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
21
|
export default ((selector, context = document) => {
|
|
21
|
-
|
|
22
|
+
if (!isShadowSelector(selector)) {
|
|
23
|
+
return querySelectorAll(context, selector);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return selectNodesWithShadow(context, selector);
|
|
22
27
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/alloy",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0-beta.0",
|
|
4
4
|
"description": "Adobe Experience Platform Web SDK",
|
|
5
5
|
"main": "libEs5/index.js",
|
|
6
6
|
"module": "libEs6/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"test:unit:coverage": "karma start --single-run --reporters spec,coverage",
|
|
20
20
|
"test:functional": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe chrome",
|
|
21
21
|
"test:functional:watch": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" ./scripts/watchFunctionalTests.js --browsers chrome",
|
|
22
|
+
"test:functional:debug": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe --inspect-brk chrome",
|
|
22
23
|
"test:functional:build:int": "rollup -c --environment BASE_CODE_MIN,STANDALONE,NPM_PACKAGE_LOCAL",
|
|
23
24
|
"test:functional:build:prod": "rollup -c --environment BASE_CODE_MIN,NPM_PACKAGE_PROD",
|
|
24
25
|
"test:scripts": "jasmine --config=scripts/specs/jasmine.json",
|
|
@@ -63,20 +64,21 @@
|
|
|
63
64
|
"uuid": "^3.3.2"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
|
-
"@adobe/alloy": "^2.
|
|
67
|
+
"@adobe/alloy": "^2.7.0",
|
|
67
68
|
"@babel/cli": "^7.12.8",
|
|
68
69
|
"@babel/core": "^7.2.2",
|
|
69
70
|
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
|
|
71
|
+
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
70
72
|
"@babel/plugin-transform-template-literals": "^7.4.4",
|
|
71
73
|
"@babel/preset-env": "^7.4.5",
|
|
72
74
|
"@octokit/rest": "^18.3.5",
|
|
73
75
|
"babel-plugin-version": "^0.2.3",
|
|
74
76
|
"bundlesize": "^0.18.0",
|
|
75
77
|
"chalk": "^2.4.2",
|
|
76
|
-
"concurrently": "^5.
|
|
78
|
+
"concurrently": "^6.5.0",
|
|
77
79
|
"date-fns": "^2.23.0",
|
|
78
80
|
"dotenv": "^8.1.0",
|
|
79
|
-
"eslint": "^7.
|
|
81
|
+
"eslint": "^7.32.0",
|
|
80
82
|
"eslint-config-airbnb-base": "^14.0.0",
|
|
81
83
|
"eslint-config-prettier": "^6.4.0",
|
|
82
84
|
"eslint-plugin-ban": "^1.5.2",
|
|
@@ -86,7 +88,7 @@
|
|
|
86
88
|
"glob": "^7.1.3",
|
|
87
89
|
"husky": "^6.0.0",
|
|
88
90
|
"jasmine-core": "^3.4.0",
|
|
89
|
-
"karma": "^
|
|
91
|
+
"karma": "^6.3.9",
|
|
90
92
|
"karma-chrome-launcher": "^3.1.0",
|
|
91
93
|
"karma-coverage": "^2.0.1",
|
|
92
94
|
"karma-firefox-launcher": "^2.1.0",
|
|
@@ -95,7 +97,7 @@
|
|
|
95
97
|
"karma-jasmine-matchers": "^4.0.1",
|
|
96
98
|
"karma-rollup-preprocessor": "^7.0.5",
|
|
97
99
|
"karma-safari-launcher": "^1.0.0",
|
|
98
|
-
"karma-sauce-launcher": "^4.3.
|
|
100
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
99
101
|
"karma-spec-reporter": "0.0.32",
|
|
100
102
|
"lint-staged": "^10.5.4",
|
|
101
103
|
"prettier": "^1.16.4",
|
|
@@ -113,10 +115,9 @@
|
|
|
113
115
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
114
116
|
"rollup-plugin-terser": "^7.0.2",
|
|
115
117
|
"start-server-and-test": "^1.10.6",
|
|
116
|
-
"testcafe": "^1.
|
|
117
|
-
"testcafe-browser-provider-saucelabs": "^1.8.
|
|
118
|
+
"testcafe": "^1.17.1",
|
|
119
|
+
"testcafe-browser-provider-saucelabs": "^1.8.3",
|
|
118
120
|
"testcafe-reporter-testrail": "^0.6.3",
|
|
119
|
-
"ua-parser": "^0.3.5",
|
|
120
121
|
"url-exists-nodejs": "^0.1.0",
|
|
121
122
|
"url-parse": "^1.4.7",
|
|
122
123
|
"yargs": "^16.2.0"
|