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