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 +13 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/docs/PIXELLAB.md +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1545,8 +1545,15 @@ var import_node_crypto = require("crypto");
|
|
|
1545
1545
|
var import_node_os = __toESM(require("os"), 1);
|
|
1546
1546
|
var import_node_path = __toESM(require("path"), 1);
|
|
1547
1547
|
function pixelLabObjectUrl(generator, objectId) {
|
|
1548
|
-
if (!objectId
|
|
1549
|
-
|
|
1548
|
+
if (!objectId) return null;
|
|
1549
|
+
if (generator === "map" || generator === "1dir") {
|
|
1550
|
+
return `https://www.pixellab.ai/create-object/${encodeURIComponent(objectId)}`;
|
|
1551
|
+
}
|
|
1552
|
+
if (generator === "tiles") {
|
|
1553
|
+
const setId = objectId.split("#")[0];
|
|
1554
|
+
return setId ? `https://www.pixellab.ai/maps/tiles/${encodeURIComponent(setId)}` : null;
|
|
1555
|
+
}
|
|
1556
|
+
return null;
|
|
1550
1557
|
}
|
|
1551
1558
|
var PixelLabProvider = class _PixelLabProvider {
|
|
1552
1559
|
constructor(client) {
|
|
@@ -11897,9 +11904,11 @@ function upstreamSection(item) {
|
|
|
11897
11904
|
if (item.upstreamUrl) {
|
|
11898
11905
|
const a = el('a', null, 'Open in ' + item.provider + ' \u2197');
|
|
11899
11906
|
a.href = item.upstreamUrl; a.target = '_blank'; a.rel = 'noopener';
|
|
11900
|
-
|
|
11907
|
+
const tiles = item.generator === 'tiles';
|
|
11908
|
+
row(dl, tiles ? 'tile set' : 'object', a);
|
|
11901
11909
|
row(dl, 'note', item.provider === 'pixellab'
|
|
11902
|
-
? 'The
|
|
11910
|
+
? (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.'
|
|
11911
|
+
: '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.')
|
|
11903
11912
|
: 'The provider\u2019s page for this object.');
|
|
11904
11913
|
}
|
|
11905
11914
|
s.append(dl);
|