pixelkiln 0.32.0 → 0.32.1

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/index.js CHANGED
@@ -1292,8 +1292,15 @@ import { randomUUID } from "crypto";
1292
1292
  import os from "os";
1293
1293
  import path from "path";
1294
1294
  function pixelLabObjectUrl(generator, objectId) {
1295
- if (!objectId || generator !== "map" && generator !== "1dir") return null;
1296
- return `https://www.pixellab.ai/objects/${encodeURIComponent(objectId)}`;
1295
+ if (!objectId) return null;
1296
+ if (generator === "map" || generator === "1dir") {
1297
+ return `https://www.pixellab.ai/create-object/${encodeURIComponent(objectId)}`;
1298
+ }
1299
+ if (generator === "tiles") {
1300
+ const setId = objectId.split("#")[0];
1301
+ return setId ? `https://www.pixellab.ai/maps/tiles/${encodeURIComponent(setId)}` : null;
1302
+ }
1303
+ return null;
1297
1304
  }
1298
1305
  var PixelLabProvider = class _PixelLabProvider {
1299
1306
  constructor(client) {
@@ -11643,9 +11650,11 @@ function upstreamSection(item) {
11643
11650
  if (item.upstreamUrl) {
11644
11651
  const a = el('a', null, 'Open in ' + item.provider + ' \u2197');
11645
11652
  a.href = item.upstreamUrl; a.target = '_blank'; a.rel = 'noopener';
11646
- row(dl, 'object', a);
11653
+ const tiles = item.generator === 'tiles';
11654
+ row(dl, tiles ? 'tile set' : 'object', a);
11647
11655
  row(dl, 'note', item.provider === 'pixellab'
11648
- ? 'The account object this generation came from. Edit it there with PixelLab\u2019s editor, then pull the changes back here; the lockfile records the new bytes as this generation.'
11656
+ ? (tiles ? 'The tile set this generation was chosen from. Edit it there with PixelLab\u2019s editor, then pull the changes back here; the lockfile records the new bytes as this generation.'
11657
+ : 'The account object this generation came from. Edit it there with PixelLab\u2019s editor, then pull the changes back here; the lockfile records the new bytes as this generation.')
11649
11658
  : 'The provider\u2019s page for this object.');
11650
11659
  }
11651
11660
  s.append(dl);