oolib 2.180.0 → 2.182.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.
@@ -23,14 +23,14 @@ var PDFEmbedClass = /** @class */ (function () {
23
23
  };
24
24
  PDFEmbedClass.prototype.previewFile = function (divId, viewerConfig, fileInfo) {
25
25
  var _this = this;
26
- var _a;
27
26
  var config = {
28
27
  /* Pass your registered client id */
29
28
  clientId: window.location.href.includes('localhost')
30
29
  ? 'd12aa56c7f9a4b57af2cd65bb4250760' /** creds created for localhost on https://www.adobe.io/apis/documentcloud/dcsdk/gettingstarted.html# */
31
- : process.env.REACT_APP_ENV === 'prod'
32
- ? process.env["REACT_APP_ADOBE_EMBED_API_KEY__".concat((_a = this.theme) === null || _a === void 0 ? void 0 : _a.getTenant())]
33
- : process.env.REACT_APP_ADOBE_EMBED_API_KEY //staging & dev
30
+ : this.theme.adobeKey
31
+ // process.env.REACT_APP_ENV === 'prod'
32
+ // ? process.env[`REACT_APP_ADOBE_EMBED_API_KEY__${this.theme?.getTenant()}`]
33
+ // : process.env.REACT_APP_ADOBE_EMBED_API_KEY //staging & dev
34
34
  };
35
35
  if (divId) {
36
36
  /* Optional only for Light Box embed mode */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.180.0",
3
+ "version": "2.182.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",