@scaleflex/widget-pdf-js 0.3.0 → 4.0.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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [0.3.0](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.2.1...v0.3.0) (2025-08-12)
6
+ # [4.0.0](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.3.0...v4.0.0) (2025-08-26)
7
7
 
8
8
  **Note:** Version bump only for package @scaleflex/widget-pdf-js
9
9
 
@@ -12,6 +12,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
12
12
 
13
13
 
14
14
 
15
+ # [0.3.0](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.2.1...v0.3.0) (2025-08-12)
16
+
17
+ **Note:** Version bump only for package @scaleflex/widget-pdf-js
18
+
19
+
20
+
21
+
22
+
23
+
15
24
  ## [0.2.1](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.2.0...v0.2.1) (2025-08-06)
16
25
 
17
26
  **Note:** Version bump only for package @scaleflex/widget-pdf-js
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
 
11
11
  <div align='center'>
12
- <img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://cdn.scaleflex.com/plugins/filerobot-widget/assets/filerobot_widget_logo_with_fire.png?vh=b2ff09" width="140"/>
12
+ <img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
13
13
  </div>
14
14
 
15
15
  The pdf-js plugin provides functionality for preview pdf pages in [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core).
package/lib/index.js CHANGED
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
11
11
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
12
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
13
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
- import { Plugin, Filerobot } from '@scaleflex/widget-core';
14
+ import { Plugin, ScaleflexWidget } from '@scaleflex/widget-core';
15
15
  import Explorer from '@scaleflex/widget-explorer';
16
16
  import Translator from '@scaleflex/widget-utils/lib/Translator';
17
17
  import { PLUGINS_IDS } from '@scaleflex/widget-utils/lib/constants';
@@ -173,7 +173,7 @@ var PdfJs = /*#__PURE__*/function (_Plugin) {
173
173
  value: function render(_ref) {
174
174
  var file = _ref.file,
175
175
  setIsFailedToViewPdf = _ref.setIsFailedToViewPdf;
176
- var pdfSource = isUploadableFile(file) ? Filerobot.uploadFilesData[file.id] : getFileLink(file);
176
+ var pdfSource = isUploadableFile(file) ? ScaleflexWidget.uploadFilesData[file.id] : getFileLink(file);
177
177
  return PdfPreview({
178
178
  pdfSource: pdfSource,
179
179
  i18n: this.i18n,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/widget-pdf-js",
3
- "version": "0.3.0",
3
+ "version": "4.0.0",
4
4
  "description": "Pdf-js integration with Scaleflex",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@scaleflex/icons": "^3.0.0-beta.11",
17
17
  "@scaleflex/ui": "^3.0.0-beta.11",
18
- "@scaleflex/widget-common": "^0.3.0"
18
+ "@scaleflex/widget-common": "^4.0.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "react": "^19.0.0",
@@ -27,5 +27,5 @@
27
27
  "react": ">=19.0.0",
28
28
  "react-dom": ">=19.0.0"
29
29
  },
30
- "gitHead": "184ae299a77257f5dfd7e6e645e4003da18a75b4"
30
+ "gitHead": "bf4d9631c2695e70b94092490e4a9800b54b38b7"
31
31
  }