@sitecore-jss/sitecore-jss-angular 20.0.0-canary.97 → 21.0.0-canary.2
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/README.md +8 -3
- package/dist/README.md +8 -3
- package/dist/bundles/sitecore-jss-sitecore-jss-angular.umd.js +28 -62
- package/dist/bundles/sitecore-jss-sitecore-jss-angular.umd.js.map +1 -1
- package/dist/bundles/sitecore-jss-sitecore-jss-angular.umd.min.js +2 -2
- package/dist/bundles/sitecore-jss-sitecore-jss-angular.umd.min.js.map +1 -1
- package/dist/esm2015/public_api.js +2 -3
- package/dist/fesm2015/sitecore-jss-sitecore-jss-angular.js +2 -40
- package/dist/fesm2015/sitecore-jss-sitecore-jss-angular.js.map +1 -1
- package/dist/package.json +2 -2
- package/dist/public_api.d.ts +1 -2
- package/dist/sitecore-jss-sitecore-jss-angular.metadata.json +1 -1
- package/package.json +3 -3
- package/dist/esm2015/utils.js +0 -38
- package/dist/utils.d.ts +0 -10
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
# Sitecore JavaScript
|
|
1
|
+
# Sitecore JavaScript Rendering SDK for Angular
|
|
2
2
|
|
|
3
|
-
This module is provided as a part of Sitecore JavaScript
|
|
3
|
+
This module is provided as a part of Sitecore JavaScript Rendering SDK (JSS). It contains Angular integration components and services for JSS.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!---
|
|
6
|
+
@TODO: Update to version 20.0.0 docs before release
|
|
7
|
+
-->
|
|
8
|
+
[Documentation](https://doc.sitecore.com/xp/en/developers/hd/190/sitecore-headless-development/sitecore-javascript-rendering-sdk--jss--for-angular.html)
|
|
9
|
+
|
|
10
|
+
[API reference documentation](/ref-docs/sitecore-jss-angular/).
|
package/dist/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
# Sitecore JavaScript
|
|
1
|
+
# Sitecore JavaScript Rendering SDK for Angular
|
|
2
2
|
|
|
3
|
-
This module is provided as a part of Sitecore JavaScript
|
|
3
|
+
This module is provided as a part of Sitecore JavaScript Rendering SDK (JSS). It contains Angular integration components and services for JSS.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!---
|
|
6
|
+
@TODO: Update to version 20.0.0 docs before release
|
|
7
|
+
-->
|
|
8
|
+
[Documentation](https://doc.sitecore.com/xp/en/developers/hd/190/sitecore-headless-development/sitecore-javascript-rendering-sdk--jss--for-angular.html)
|
|
9
|
+
|
|
10
|
+
[API reference documentation](/ref-docs/sitecore-jss-angular/).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@sitecore-jss/sitecore-jss/media'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@sitecore-jss/sitecore-jss/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@sitecore-jss/sitecore-jss-angular', ['exports', '@angular/core', '@sitecore-jss/sitecore-jss/media', '@angular/router', 'rxjs', 'rxjs/operators', '@angular/common', '@sitecore-jss/sitecore-jss/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["sitecore-jss"] = global["sitecore-jss"] || {}, global["sitecore-jss"]["sitecore-jss-angular"] = {}), global.ng.core, global.media, global.ng.router, global.rxjs, global.rxjs.operators, global.ng.common, global.
|
|
5
|
-
})(this, (function (exports, core, media, router, rxjs, operators, common,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@sitecore-jss/sitecore-jss/media'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@sitecore-jss/sitecore-jss/i18n'), require('@sitecore-jss/sitecore-jss/layout'), require('@sitecore-jss/sitecore-jss'), require('@sitecore-jss/sitecore-jss/utils')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sitecore-jss/sitecore-jss-angular', ['exports', '@angular/core', '@sitecore-jss/sitecore-jss/media', '@angular/router', 'rxjs', 'rxjs/operators', '@angular/common', '@sitecore-jss/sitecore-jss/i18n', '@sitecore-jss/sitecore-jss/layout', '@sitecore-jss/sitecore-jss', '@sitecore-jss/sitecore-jss/utils'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["sitecore-jss"] = global["sitecore-jss"] || {}, global["sitecore-jss"]["sitecore-jss-angular"] = {}), global.ng.core, global.media, global.ng.router, global.rxjs, global.rxjs.operators, global.ng.common, global.i18n, global.layout, global["@sitecore-jss/sitecore-jss"], global.utils));
|
|
5
|
+
})(this, (function (exports, core, media, router, rxjs, operators, common, i18n, layout, sitecoreJss, utils) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* File fields cannot be managed via the EE. We never output "editable."
|
|
@@ -1484,43 +1484,6 @@
|
|
|
1484
1484
|
},] }
|
|
1485
1485
|
];
|
|
1486
1486
|
|
|
1487
|
-
/**
|
|
1488
|
-
* @description in Experience Editor with an Angular sample app, anchor tags
|
|
1489
|
-
* with both onclick and href attributes will use the href, blocking the onclick from firing.
|
|
1490
|
-
* This function makes it so the anchor tags function as intended in an Angular sample when using Experience Editor
|
|
1491
|
-
*
|
|
1492
|
-
* The Mutation Observer API is used to observe changes to the body, then select all elements with href="#" and an onclick,
|
|
1493
|
-
* and replaces the # value with javascript:void(0); which prevents the anchor tag from blocking the onclick event handler.
|
|
1494
|
-
* @see Mutation Observer API: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/MutationObserver
|
|
1495
|
-
*/
|
|
1496
|
-
var handleEditorAnchors = function () {
|
|
1497
|
-
// Angular gives the href attribute priority over the onclick attribute if both are present, so we must replace
|
|
1498
|
-
// the href attribute to avoid overriding the onclick in Experience Editor
|
|
1499
|
-
if (!window || !utils.ExperienceEditor.isActive()) {
|
|
1500
|
-
return;
|
|
1501
|
-
}
|
|
1502
|
-
var targetNode = document.querySelector('body');
|
|
1503
|
-
var callback = function (mutationList) {
|
|
1504
|
-
mutationList.forEach(function (mutation) {
|
|
1505
|
-
var btns = document.querySelectorAll('.scChromeDropDown > a[href="#"], a[onclick]');
|
|
1506
|
-
if (mutation.type === 'childList') {
|
|
1507
|
-
btns.forEach(function (link) {
|
|
1508
|
-
link.href = 'javascript:void(0);';
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
return;
|
|
1512
|
-
});
|
|
1513
|
-
};
|
|
1514
|
-
var observer = new MutationObserver(callback);
|
|
1515
|
-
var observerOptions = {
|
|
1516
|
-
childList: true,
|
|
1517
|
-
subtree: true,
|
|
1518
|
-
};
|
|
1519
|
-
if (targetNode) {
|
|
1520
|
-
observer.observe(targetNode, observerOptions);
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
|
|
1524
1487
|
/**
|
|
1525
1488
|
* Generated bundle index. Do not edit.
|
|
1526
1489
|
*/
|
|
@@ -1529,26 +1492,6 @@
|
|
|
1529
1492
|
enumerable: true,
|
|
1530
1493
|
get: function () { return media.mediaApi; }
|
|
1531
1494
|
});
|
|
1532
|
-
Object.defineProperty(exports, 'isEditorActive', {
|
|
1533
|
-
enumerable: true,
|
|
1534
|
-
get: function () { return utils.isEditorActive; }
|
|
1535
|
-
});
|
|
1536
|
-
Object.defineProperty(exports, 'isExperienceEditorActive', {
|
|
1537
|
-
enumerable: true,
|
|
1538
|
-
get: function () { return utils.isExperienceEditorActive; }
|
|
1539
|
-
});
|
|
1540
|
-
Object.defineProperty(exports, 'isServer', {
|
|
1541
|
-
enumerable: true,
|
|
1542
|
-
get: function () { return utils.isServer; }
|
|
1543
|
-
});
|
|
1544
|
-
Object.defineProperty(exports, 'resetEditorChromes', {
|
|
1545
|
-
enumerable: true,
|
|
1546
|
-
get: function () { return utils.resetEditorChromes; }
|
|
1547
|
-
});
|
|
1548
|
-
Object.defineProperty(exports, 'resetExperienceEditorChromes', {
|
|
1549
|
-
enumerable: true,
|
|
1550
|
-
get: function () { return utils.resetExperienceEditorChromes; }
|
|
1551
|
-
});
|
|
1552
1495
|
Object.defineProperty(exports, 'GraphQLDictionaryService', {
|
|
1553
1496
|
enumerable: true,
|
|
1554
1497
|
get: function () { return i18n.GraphQLDictionaryService; }
|
|
@@ -1577,6 +1520,30 @@
|
|
|
1577
1520
|
enumerable: true,
|
|
1578
1521
|
get: function () { return sitecoreJss.constants; }
|
|
1579
1522
|
});
|
|
1523
|
+
Object.defineProperty(exports, 'handleEditorAnchors', {
|
|
1524
|
+
enumerable: true,
|
|
1525
|
+
get: function () { return utils.handleEditorAnchors; }
|
|
1526
|
+
});
|
|
1527
|
+
Object.defineProperty(exports, 'isEditorActive', {
|
|
1528
|
+
enumerable: true,
|
|
1529
|
+
get: function () { return utils.isEditorActive; }
|
|
1530
|
+
});
|
|
1531
|
+
Object.defineProperty(exports, 'isExperienceEditorActive', {
|
|
1532
|
+
enumerable: true,
|
|
1533
|
+
get: function () { return utils.isExperienceEditorActive; }
|
|
1534
|
+
});
|
|
1535
|
+
Object.defineProperty(exports, 'isServer', {
|
|
1536
|
+
enumerable: true,
|
|
1537
|
+
get: function () { return utils.isServer; }
|
|
1538
|
+
});
|
|
1539
|
+
Object.defineProperty(exports, 'resetEditorChromes', {
|
|
1540
|
+
enumerable: true,
|
|
1541
|
+
get: function () { return utils.resetEditorChromes; }
|
|
1542
|
+
});
|
|
1543
|
+
Object.defineProperty(exports, 'resetExperienceEditorChromes', {
|
|
1544
|
+
enumerable: true,
|
|
1545
|
+
get: function () { return utils.resetExperienceEditorChromes; }
|
|
1546
|
+
});
|
|
1580
1547
|
exports.ComponentNameAndType = ComponentNameAndType;
|
|
1581
1548
|
exports.DYNAMIC_COMPONENT = DYNAMIC_COMPONENT;
|
|
1582
1549
|
exports.FileDirective = FileDirective;
|
|
@@ -1589,7 +1556,6 @@
|
|
|
1589
1556
|
exports.RichTextDirective = RichTextDirective;
|
|
1590
1557
|
exports.RouterLinkDirective = RouterLinkDirective;
|
|
1591
1558
|
exports.TextDirective = TextDirective;
|
|
1592
|
-
exports.handleEditorAnchors = handleEditorAnchors;
|
|
1593
1559
|
exports.isRawRendering = isRawRendering;
|
|
1594
1560
|
exports["ɵb"] = PLACEHOLDER_COMPONENTS;
|
|
1595
1561
|
exports["ɵc"] = PLACEHOLDER_LAZY_COMPONENTS;
|