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