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/cli.js CHANGED
@@ -2285,8 +2285,15 @@ function lockKey(styleId, assetId) {
2285
2285
 
2286
2286
  // src/providers/pixellab.ts
2287
2287
  function pixelLabObjectUrl(generator, objectId) {
2288
- if (!objectId || generator !== "map" && generator !== "1dir") return null;
2289
- return `https://www.pixellab.ai/objects/${encodeURIComponent(objectId)}`;
2288
+ if (!objectId) return null;
2289
+ if (generator === "map" || generator === "1dir") {
2290
+ return `https://www.pixellab.ai/create-object/${encodeURIComponent(objectId)}`;
2291
+ }
2292
+ if (generator === "tiles") {
2293
+ const setId = objectId.split("#")[0];
2294
+ return setId ? `https://www.pixellab.ai/maps/tiles/${encodeURIComponent(setId)}` : null;
2295
+ }
2296
+ return null;
2290
2297
  }
2291
2298
  var PixelLabProvider = class _PixelLabProvider {
2292
2299
  constructor(client) {
@@ -10451,9 +10458,11 @@ function upstreamSection(item) {
10451
10458
  if (item.upstreamUrl) {
10452
10459
  const a = el('a', null, 'Open in ' + item.provider + ' \u2197');
10453
10460
  a.href = item.upstreamUrl; a.target = '_blank'; a.rel = 'noopener';
10454
- row(dl, 'object', a);
10461
+ const tiles = item.generator === 'tiles';
10462
+ row(dl, tiles ? 'tile set' : 'object', a);
10455
10463
  row(dl, 'note', item.provider === 'pixellab'
10456
- ? '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.'
10464
+ ? (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.'
10465
+ : '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.')
10457
10466
  : 'The provider\u2019s page for this object.');
10458
10467
  }
10459
10468
  s.append(dl);