diff --git a/CHANGELOG.md b/CHANGELOG.md index 274a04a..bc1617f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release notes +## 7.7.5 + +* We've fixed a broken `rollup.config.js` which resulted in unusable UMD development bundle + ## 7.7.4 ### Breaking changes diff --git a/examples/es-module/main.js b/examples/es-module/main.js index d5cb890..9c54bbc 100644 --- a/examples/es-module/main.js +++ b/examples/es-module/main.js @@ -39,6 +39,14 @@ function main() // 2. Create instance of SDK load settings with your license key const loadSettings = new PhotoPaySDK.WasmSDKLoadSettings( licenseKey ); + /* [TEMPORARY FIX] + * Use basic WebAssembly builds since most performant option requires server setup and unpkg.com, which is used + * for examples, doesn't support COOP and COEP headers. + * + * For more information see "Integration" section in the official documentation. + */ + loadSettings.wasmType = "BASIC"; + // [OPTIONAL] Change default settings // Show or hide hello message in browser console when WASM is successfully loaded diff --git a/examples/typescript/package.json b/examples/typescript/package.json index 6650250..2021eb1 100644 --- a/examples/typescript/package.json +++ b/examples/typescript/package.json @@ -19,6 +19,6 @@ "typescript": "^3.9.5" }, "dependencies": { - "@microblink/photopay-in-browser-sdk": "~7.7.4" + "@microblink/photopay-in-browser-sdk": "~7.7.5" } } \ No newline at end of file diff --git a/examples/typescript/src/app.ts b/examples/typescript/src/app.ts index 8c97fe1..99202f3 100644 --- a/examples/typescript/src/app.ts +++ b/examples/typescript/src/app.ts @@ -38,6 +38,14 @@ function main() // 2. Create instance of SDK load settings with your license key const loadSettings = new PhotoPaySDK.WasmSDKLoadSettings( licenseKey ); + /* [TEMPORARY FIX] + * Use basic WebAssembly builds since most performant option requires server setup and unpkg.com, which is used + * for examples, doesn't support COOP and COEP headers. + * + * For more information see "Integration" section in the official documentation. + */ + loadSettings.wasmType = "BASIC"; + // [OPTIONAL] Change default settings // Show or hide hello message in browser console when WASM is successfully loaded diff --git a/examples/umd/index.html b/examples/umd/index.html index 5bf3b35..5252fd7 100644 --- a/examples/umd/index.html +++ b/examples/umd/index.html @@ -23,7 +23,7 @@

Loading...

- + - + + diff --git a/ui/examples/javascript/index.html b/ui/examples/javascript/index.html index 04f6072..7e5254f 100644 --- a/ui/examples/javascript/index.html +++ b/ui/examples/javascript/index.html @@ -44,6 +44,14 @@ // Important: if attributes or properties are changed, whole component is rerendered const photopay = document.querySelector( "photopay-in-browser" ); + /* [TEMPORARY FIX] + * Use basic WebAssembly builds since most performant option requires server setup and unpkg.com, which is used + * for examples, doesn't support COOP and COEP headers. + * + * For more information see "Integration" section in the official documentation. + */ + photopay.wasmType = "BASIC"; + photopay.engineLocation = window.location.origin + "/resources/"; photopay.addEventListener diff --git a/ui/examples/typescript/package.json b/ui/examples/typescript/package.json index b45495a..904813e 100644 --- a/ui/examples/typescript/package.json +++ b/ui/examples/typescript/package.json @@ -19,6 +19,6 @@ "typescript": "^3.9.5" }, "dependencies": { - "@microblink/photopay-in-browser-sdk": "~7.7.4" + "@microblink/photopay-in-browser-sdk": "~7.7.5" } } \ No newline at end of file diff --git a/ui/examples/typescript/src/app.ts b/ui/examples/typescript/src/app.ts index 9e173ff..cfa74bf 100644 --- a/ui/examples/typescript/src/app.ts +++ b/ui/examples/typescript/src/app.ts @@ -22,6 +22,14 @@ function initializeUiComponent() throw "Could not find UI component!"; } + /* [TEMPORARY FIX] + * Use basic WebAssembly builds since most performant option requires server setup and unpkg.com, which is used + * for examples, doesn't support COOP and COEP headers. + * + * For more information see "Integration" section in the official documentation. + */ + photopay.wasmType = "BASIC"; + photopay.licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPk4/w35CpHlVKjc9YGS1TbhKMOp/628Nz+3wucEKOKiY/6REBB0awpfPXXng8x6oFT8mEe+eFZwM6UTZKMO58PYWB2BUoq3KuLZWA0iIrN5l0EOTf4y0aTFs1KXROvrx2TbPyeNjYtPqtuMZq7Mo6L0GGWp5zehmxpUnuWBsW8/tR/8NLpfFQHucZnA+nnsS3Oj/qzbaf96oTjl1Ov4T4WVRbNK4yjzUre+L+NleOrZygXTQnqPLtPnhKmoHjJ9dtyTRp1C89NxNHUqVeacwp0Q8v+plPxr+fS8zSCMVeEWgumsmmLhFiaFLxHQ14VPYB+ycRpMi6FAZVPNXPbXtfjWi0g=="; photopay.engineLocation = window.location.origin; photopay.recognizers = [ "CroatiaPdf417PaymentRecognizer" ]; diff --git a/ui/package-lock.json b/ui/package-lock.json index 03896db..adbd52d 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -76,9 +76,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001211", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001211.tgz", - "integrity": "sha512-v3GXWKofIkN3PkSidLI5d1oqeKNsam9nQkqieoMhP87nxOY0RPDC8X2+jcv8pjV4dRozPLSoMqNii9sDViOlIg==", + "version": "1.0.30001212", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001212.tgz", + "integrity": "sha512-f0GclV7Sya6QkQW2uNHe9kq4hLG5u/zXCGIyQgvk6MB+61g2enOUJjaY5p25VZDLaQXIk8vWUenMjxGEWg06SQ==", "dev": true }, "colorette": {