labellife-design-tool 2.5.4 → 2.5.6

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.
@@ -417,15 +417,13 @@ function t(key, defaultValue) {
417
417
  return defaultValue || key;
418
418
  }
419
419
 
420
- // ── Unsplash backend endpoint URLs (used by background-panel.js's Unsplash proxy calls) ─
420
+ // ── Unsplash proxy endpoints (used by background-panel.js) ───────────────────
421
+ // The host app supplies the full endpoint URLs; the library only appends the query string.
421
422
  // Window-level singletons, same reasoning as translations/input-fields config above:
422
423
  // each Rollup output bundle (index, side-panel, toolbar, canvas...) gets its own copy
423
424
  // of this module, so a plain closure variable set from one bundle (e.g. via the host
424
425
  // app's top-level `labellife-design-tool/config` import) would never be seen by another
425
426
  // bundle (e.g. background-panel.js, built into the side-panel bundle).
426
- //
427
- // The host app owns the full endpoint URL (host + path); this lib only ever appends the
428
- // query string for the search endpoint and uses the track-download URL as given.
429
427
  var UNSPLASH_SEARCH_URL_KEY = '__labellife_unsplash_search_url__';
430
428
  var UNSPLASH_TRACK_DOWNLOAD_URL_KEY = '__labellife_unsplash_track_download_url__';
431
429
  function getUnsplashSearchUrl() {
@@ -1025,11 +1023,10 @@ var TextSection = {
1025
1023
  // labellife backend (see labellifeBackendRepo's UnsplashBackgroundSearchView /
1026
1024
  // UnsplashTrackDownloadView). Deliberately has no internal imports so it can be unit-tested
1027
1025
  // with plain `node`, following the same convention as ./fonts.js.
1028
- //
1029
- // The host app owns the full endpoint URL (via setUnsplashSearchUrl/setUnsplashTrackDownloadUrl
1030
- // in ../config) — this module only ever appends the search query string onto it.
1031
1026
 
1032
1027
  var UNSPLASH_UTM_SOURCE = 'labellife';
1028
+
1029
+ // `searchUrl` is the full endpoint supplied by the host app; only the query string is appended.
1033
1030
  function buildUnsplashSearchUrl(searchUrl, query) {
1034
1031
  var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
1035
1032
  var perPage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 20;