From d57188addf5cb61d38d10730ee8b79b6d6cc1ee9 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 18 Apr 2025 20:36:25 +0200 Subject: [PATCH] Update to shlink-web-component 0.13.3 --- CHANGELOG.md | 1 + package-lock.json | 14 +++++++------- package.json | 2 +- src/api/services/ShlinkApiClientBuilder.ts | 3 ++- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 071dee88..560dbd8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Added * [shlink-web-component#637](https://github.com/shlinkio/shlink-web-component/pull/637) QR codes are now generated client-side, without hitting Shlink. * [shlink-web-component#641](https://github.com/shlinkio/shlink-web-component/issues/641) It is now possible to provide any logo to be used with QR codes. +* [shlink-web-component#640](https://github.com/shlinkio/shlink-web-component/issues/640) Allow default QR code settings to be handled via app settings. * [#1510](https://github.com/shlinkio/shlink-web-client/issues/1510) Existing HTTP credentials (cookies, TLS certs, authentication headers) are now automatically forwarded to the API server if appropriate [CORS headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Credentials) are set ### Changed diff --git a/package-lock.json b/package-lock.json index d619eb34..d1ecd497 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@shlinkio/data-manipulation": "^1.0.3", "@shlinkio/shlink-frontend-kit": "^0.8.10", "@shlinkio/shlink-js-sdk": "^2.1.0", - "@shlinkio/shlink-web-component": "^0.13.2", + "@shlinkio/shlink-web-component": "^0.13.3", "bootstrap": "5.2.3", "bottlejs": "^2.0.1", "clsx": "^2.1.1", @@ -3444,9 +3444,9 @@ "license": "MIT" }, "node_modules/@shlinkio/shlink-web-component": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/@shlinkio/shlink-web-component/-/shlink-web-component-0.13.2.tgz", - "integrity": "sha512-cF8MynPEUYV7Nk3zCGqcVrZeADD8h1FD72o8/16BTbOgQMcKVKXy3e5ybeSMltCoInPIAbp35B7oHPf/awQVOA==", + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/@shlinkio/shlink-web-component/-/shlink-web-component-0.13.3.tgz", + "integrity": "sha512-BXDzjAOucIOHentKoOf1gG5qmZGfDHJlkvqZdt/KwQ0Mp2OO/VJcKBFkmLhWwRDE4qli7QHv0dPK+Qey0NSVPA==", "license": "MIT", "dependencies": { "@formkit/drag-and-drop": "^0.4.2", @@ -13543,9 +13543,9 @@ "integrity": "sha512-K6zmA/A7Ux9hTn+ZjAm85YmMl7/v5XgZBM62syCxCsK7Tdw7Gg4+C06cZ2gUv+HWrHtv5IXsi4ax00++8Kg5vw==" }, "@shlinkio/shlink-web-component": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/@shlinkio/shlink-web-component/-/shlink-web-component-0.13.2.tgz", - "integrity": "sha512-cF8MynPEUYV7Nk3zCGqcVrZeADD8h1FD72o8/16BTbOgQMcKVKXy3e5ybeSMltCoInPIAbp35B7oHPf/awQVOA==", + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/@shlinkio/shlink-web-component/-/shlink-web-component-0.13.3.tgz", + "integrity": "sha512-BXDzjAOucIOHentKoOf1gG5qmZGfDHJlkvqZdt/KwQ0Mp2OO/VJcKBFkmLhWwRDE4qli7QHv0dPK+Qey0NSVPA==", "requires": { "@formkit/drag-and-drop": "^0.4.2", "@json2csv/plainjs": "^7.0.6", diff --git a/package.json b/package.json index fddce42d..f9431583 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@shlinkio/data-manipulation": "^1.0.3", "@shlinkio/shlink-frontend-kit": "^0.8.10", "@shlinkio/shlink-js-sdk": "^2.1.0", - "@shlinkio/shlink-web-component": "^0.13.2", + "@shlinkio/shlink-web-component": "^0.13.3", "bootstrap": "5.2.3", "bottlejs": "^2.0.1", "clsx": "^2.1.1", diff --git a/src/api/services/ShlinkApiClientBuilder.ts b/src/api/services/ShlinkApiClientBuilder.ts index 144d0ca4..cf468bd9 100644 --- a/src/api/services/ShlinkApiClientBuilder.ts +++ b/src/api/services/ShlinkApiClientBuilder.ts @@ -26,7 +26,8 @@ export const buildShlinkApiClient = (httpClient: HttpClient) => (getStateOrSelec const apiClient = apiClients[serverKey] ?? new ShlinkApiClient( httpClient, { apiKey, baseUrl }, - { requestCredentials: 'include' }, + // FIXME Disabling this as it's breaking existing Shlink servers as configured out of the box + // { requestCredentials: 'include' }, ); apiClients[serverKey] = apiClient;