@progress/telerik-react-report-viewer 30.26.615 → 30.26.707

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 CHANGED
@@ -23,7 +23,7 @@ While the component is not native (the theming mechanism uses Kendo UI for jQuer
23
23
  and has a dependency to jQuery itself), it brings reporting value to your React applications
24
24
  in no time.
25
25
 
26
- This version of the React Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 20.1.26.615
26
+ This version of the React Report Viewer requires Telerik Report Server or Telerik Reporting REST Service _REPORTING_VERSION_PLACEHOLDER_
27
27
 
28
28
  ## License
29
29
 
@@ -8,6 +8,11 @@ require("../dependencies/initExtDeps");
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _telerikReportViewer = require("../dependencies/telerikReportViewer.js");
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
16
  /**
12
17
  * Defines options for configuring report parameter editors in the React Report Viewer.
13
18
  *
@@ -517,6 +522,15 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
517
522
  * authenticationToken="YOUR_AUTH_TOKEN"
518
523
  * />
519
524
  *
525
+ * @property {string} [nonce] - If provided, a nonce used for CSP compliance.
526
+ * @example <propertyName>nonce</propertyName>
527
+ * // Set a nonce value for CSP compliance
528
+ * <TelerikReportViewer
529
+ * serviceUrl="api/reports/"
530
+ * reportSource={{ report: "Dashboard.trdp" }}
531
+ * nonce="NUMBER_USED_ONLY_ONCE"
532
+ * />
533
+ *
520
534
  * @property {string} [printMode] - Specifies how the viewer should print reports. Available values: "AUTO_SELECT" (automatically decide based on browser), "FORCE_PDF_FILE" (download as PDF file), "FORCE_PDF_PLUGIN" (use PDF plug-in). Default value is "AUTO_SELECT".
521
535
  * @example <propertyName>printMode</propertyName>
522
536
  * // Force PDF file download for printing
@@ -905,6 +919,7 @@ class TelerikReportViewer extends _react.default.Component {
905
919
  persistSession: this.props.persistSession,
906
920
  parameterEditors: this.props.parameterEditors,
907
921
  authenticationToken: this.props.authenticationToken,
922
+ nonce: this.props.nonce,
908
923
  ready: this.props.ready,
909
924
  printMode: this.props.printMode,
910
925
  selector: this.props.selector,
@@ -943,9 +958,7 @@ class TelerikReportViewer extends _react.default.Component {
943
958
  render() {
944
959
  return /*#__PURE__*/_react.default.createElement("div", {
945
960
  id: this.state.reportViewerID,
946
- style: {
947
- ...this.props.viewerContainerStyle
948
- },
961
+ style: _objectSpread({}, this.props.viewerContainerStyle),
949
962
  ref: el => this.el = el
950
963
  });
951
964
  }